@univerjs-pro/collaboration-client 0.4.0-alpha.1 → 0.4.0-nightly.202410131605

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1100bd=_0x75d2;(function(_0x1704d6,_0x578fcf){const _0x48300c=_0x75d2,_0x4b5a95=_0x1704d6();while(!![]){try{const _0xa0d2a3=-parseInt(_0x48300c(0x457))/0x1+parseInt(_0x48300c(0x479))/0x2*(parseInt(_0x48300c(0x242))/0x3)+-parseInt(_0x48300c(0x31c))/0x4+parseInt(_0x48300c(0x2df))/0x5*(-parseInt(_0x48300c(0x217))/0x6)+-parseInt(_0x48300c(0x545))/0x7*(parseInt(_0x48300c(0x4a8))/0x8)+-parseInt(_0x48300c(0x28a))/0x9+parseInt(_0x48300c(0x4b3))/0xa*(parseInt(_0x48300c(0x584))/0xb);if(_0xa0d2a3===_0x578fcf)break;else _0x4b5a95['push'](_0x4b5a95['shift']());}catch(_0x26f3ee){_0x4b5a95['push'](_0x4b5a95['shift']());}}}(_0x1ae8,0xe9171));var kt=Object[_0x1100bd(0x4ed)],Bt=(_0x2e4ccd,_0x126c98,_0x10e1a9)=>_0x126c98 in _0x2e4ccd?kt(_0x2e4ccd,_0x126c98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10e1a9}):_0x2e4ccd[_0x126c98]=_0x10e1a9,d=(_0x26b29e,_0x4616d8,_0x1ab47d)=>Bt(_0x26b29e,typeof _0x4616d8!=_0x1100bd(0x5a6)?_0x4616d8+'':_0x4616d8,_0x1ab47d);Object[_0x1100bd(0x4ed)](exports,Symbol[_0x1100bd(0x4a2)],{'value':_0x1100bd(0x5c9)});const a=require(_0x1100bd(0x33b)),v=require(_0x1100bd(0x3ea)),E=require('rxjs/operators'),X=require(_0x1100bd(0x4d8)),N=require('@univerjs/ui'),P=require(_0x1100bd(0x40f)),_=require(_0x1100bd(0x302)),Vt=require('@univerjs/telemetry'),V=require(_0x1100bd(0x544)),w=require('@univerjs/docs-ui'),C=require(_0x1100bd(0x4fa)),R=require(_0x1100bd(0x56f)),L=require(_0x1100bd(0x4a1)),Je=require(_0x1100bd(0x1ee)),te=require('@univerjs/sheets-ui'),U=require(_0x1100bd(0x510)),Wt=require(_0x1100bd(0x1cc)),Ft=require(_0x1100bd(0x55b)),ht=_0x1100bd(0x550),Gt=_0x1100bd(0x296),_t=_0x1100bd(0x527),Yt=_0x1100bd(0x5aa),Kt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Xt=_0x1100bd(0x55a),dt=_0x1100bd(0x598),qt=0x7530,Ve=_0x1100bd(0x421),St=0x4e20,zt=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x1100bd(0x546),Qt=_0x1100bd(0x454),mt='LOGIN_URL_KEY',es=_0x1100bd(0x361);var It=(_0x5ea52c=>(_0x5ea52c[_0x5ea52c[_0x1100bd(0x3eb)]=0x0]=_0x1100bd(0x3eb),_0x5ea52c[_0x5ea52c['OK']=0x1]='OK',_0x5ea52c[_0x5ea52c['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x5ea52c[_0x5ea52c[_0x1100bd(0x2bf)]=0x3]=_0x1100bd(0x2bf),_0x5ea52c[_0x5ea52c['NOT_FOUND']=0x4]=_0x1100bd(0x30a),_0x5ea52c[_0x5ea52c[_0x1100bd(0x26f)]=0x5]='UNAUTHENTICATED',_0x5ea52c[_0x5ea52c['ALREADY_EXISTS']=0x6]=_0x1100bd(0x2c9),_0x5ea52c[_0x5ea52c['INVALID_ARGUMENT']=0x7]=_0x1100bd(0x252),_0x5ea52c[_0x5ea52c[_0x1100bd(0x21e)]=0x8]='TOO_MANY_REQUESTS',_0x5ea52c[_0x5ea52c[_0x1100bd(0x3f1)]=0x9]=_0x1100bd(0x3f1),_0x5ea52c[_0x5ea52c[_0x1100bd(0x201)]=0x1389]=_0x1100bd(0x201),_0x5ea52c[_0x5ea52c[_0x1100bd(0x47a)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x5ea52c[_0x5ea52c[_0x1100bd(0x320)]=0x1772]=_0x1100bd(0x320),_0x5ea52c[_0x5ea52c[_0x1100bd(0x352)]=0x1b59]=_0x1100bd(0x352),_0x5ea52c[_0x5ea52c[_0x1100bd(0x4d1)]=0x1b5a]=_0x1100bd(0x4d1),_0x5ea52c[_0x5ea52c[_0x1100bd(0x463)]=0x1b5b]=_0x1100bd(0x463),_0x5ea52c[_0x5ea52c['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x5ea52c[_0x5ea52c[_0x1100bd(0x2c6)]=0x1f41]=_0x1100bd(0x2c6),_0x5ea52c[_0x5ea52c[_0x1100bd(0x539)]=0x2329]=_0x1100bd(0x539),_0x5ea52c[_0x5ea52c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1100bd(0x5be),_0x5ea52c[_0x5ea52c[_0x1100bd(0x303)]=0x232b]=_0x1100bd(0x303),_0x5ea52c[_0x5ea52c[_0x1100bd(0x29b)]=0x232c]=_0x1100bd(0x29b),_0x5ea52c[_0x5ea52c[_0x1100bd(0x5ab)]=0x232d]=_0x1100bd(0x5ab),_0x5ea52c[_0x5ea52c[_0x1100bd(0x34d)]=0x2711]=_0x1100bd(0x34d),_0x5ea52c[_0x5ea52c[_0x1100bd(0x4ac)]=0x2712]=_0x1100bd(0x4ac),_0x5ea52c[_0x5ea52c[_0x1100bd(0x1b3)]=0x2713]=_0x1100bd(0x1b3),_0x5ea52c[_0x5ea52c[_0x1100bd(0x274)]=0x2714]=_0x1100bd(0x274),_0x5ea52c[_0x5ea52c[_0x1100bd(0x35d)]=-0x1]='UNRECOGNIZED',_0x5ea52c))(It||{}),j=(_0x434760=>(_0x434760[_0x434760[_0x1100bd(0x54a)]=0x0]=_0x1100bd(0x54a),_0x434760[_0x434760['UNIVER_DOC']=0x1]=_0x1100bd(0x22b),_0x434760[_0x434760[_0x1100bd(0x293)]=0x2]=_0x1100bd(0x293),_0x434760[_0x434760['UNIVER_SLIDE']=0x3]=_0x1100bd(0x3b9),_0x434760[_0x434760[_0x1100bd(0x291)]=0x4]=_0x1100bd(0x291),_0x434760[_0x434760[_0x1100bd(0x35d)]=-0x1]=_0x1100bd(0x35d),_0x434760))(j||{}),b=(_0xbac49d=>(_0xbac49d[_0xbac49d['UNKNOWN_CMD']=0x0]=_0x1100bd(0x347),_0xbac49d[_0xbac49d[_0x1100bd(0x432)]=0x1]='HELLO',_0xbac49d[_0xbac49d[_0x1100bd(0x44a)]=0x2]=_0x1100bd(0x44a),_0xbac49d[_0xbac49d[_0x1100bd(0x1bc)]=0x3]=_0x1100bd(0x1bc),_0xbac49d[_0xbac49d['INGEST']=0x4]=_0x1100bd(0x556),_0xbac49d[_0xbac49d[_0x1100bd(0x396)]=0x5]=_0x1100bd(0x396),_0xbac49d[_0xbac49d[_0x1100bd(0x50b)]=0x6]='RECV',_0xbac49d[_0xbac49d[_0x1100bd(0x35d)]=-0x1]=_0x1100bd(0x35d),_0xbac49d))(b||{}),We=(_0x36732b=>(_0x36732b[_0x36732b[_0x1100bd(0x594)]=0x0]='UNKNOWN_CODE',_0x36732b[_0x36732b['OK']=0x1]='OK',_0x36732b[_0x36732b['FAIL']=0x2]=_0x1100bd(0x48e),_0x36732b[_0x36732b['UNRECOGNIZED']=-0x1]=_0x1100bd(0x35d),_0x36732b))(We||{}),pt=(_0x206eb0=>(_0x206eb0[_0x206eb0[_0x1100bd(0x3e5)]=0x0]=_0x1100bd(0x3e5),_0x206eb0[_0x206eb0[_0x1100bd(0x370)]=0x1]=_0x1100bd(0x370),_0x206eb0[_0x206eb0[_0x1100bd(0x4f6)]=0x2]=_0x1100bd(0x4f6),_0x206eb0[_0x206eb0['UnitEmbedded']=0x3]='UnitEmbedded',_0x206eb0[_0x206eb0['UnitSnapshot']=0x4]=_0x1100bd(0x42d),_0x206eb0[_0x206eb0[_0x1100bd(0x35d)]=-0x1]=_0x1100bd(0x35d),_0x206eb0))(pt||{});const A=_0x1100bd(0x2c7),ts={};function Ct(_0x5d2106){const _0x2bb8f8=_0x1100bd;var _0x199c56,_0x3e5dc6,_0x3728fc,_0x1e72b6;const _0x5f3f54=_0x5d2106[_0x2bb8f8(0x47d)],_0x511f61=JSON['parse'](_0x5f3f54);switch(_0x511f61['cmd']){case b['HEARTBEAT']:case b[_0x2bb8f8(0x432)]:{const _0x3031e0=_0x511f61[_0x2bb8f8(0x32c)];return{..._0x511f61,'data':_0x3031e0,'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};}case b[_0x2bb8f8(0x44a)]:{const _0x32faf4=_0x511f61[_0x2bb8f8(0x559)];return{..._0x511f61,'data':_0x32faf4,'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};}case b[_0x2bb8f8(0x50b)]:{const _0x360dba=_0x511f61[_0x2bb8f8(0x1b4)];switch(_0x360dba[_0x2bb8f8(0x39c)]){case _[_0x2bb8f8(0x55c)]['PERMISSION_REJ']:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x199c56=_0x360dba[_0x2bb8f8(0x3c4)])==null?void 0x0:_0x199c56['cs']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _['CollaborationEvent'][_0x2bb8f8(0x3d6)]:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x3e5dc6=_0x360dba['csAckEvent'])==null?void 0x0:_0x3e5dc6['cs']},'cmd':_0x511f61['cmd']};case _[_0x2bb8f8(0x55c)]['NEW_CHANGESETS']:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x3728fc=_0x360dba['newCsEvent'])==null?void 0x0:_0x3728fc['cs']},'cmd':_0x511f61['cmd']};case _[_0x2bb8f8(0x55c)]['CHANGESET_REJ']:return{..._0x511f61,'data':{..._0x360dba,'data':(_0x1e72b6=_0x360dba[_0x2bb8f8(0x581)])==null?void 0x0:_0x1e72b6['cs']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)]['UPDATE_CURSOR']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x54b)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)]['USERS_ENTER']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x36a)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)]['USERS_LEAVE']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba['leaveEvent']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x384)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba['liveShareNewHost']},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x2fb)]:case _[_0x2bb8f8(0x55c)]['LIVESHARE_OPERATION']:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x26d)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x270)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x44b)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x52e)]:return{..._0x511f61,'data':_0x360dba,'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _['CollaborationEvent'][_0x2bb8f8(0x508)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x21f)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _['CollaborationEvent'][_0x2bb8f8(0x403)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x2ff)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};case _[_0x2bb8f8(0x55c)][_0x2bb8f8(0x5cc)]:return{..._0x511f61,'data':{..._0x360dba,'data':_0x360dba[_0x2bb8f8(0x2de)]},'cmd':_0x511f61[_0x2bb8f8(0x2cd)]};default:return _0x511f61;}}default:return _0x511f61;}}function Et(_0x147a16){const _0x4f5dcd=_0x1100bd;switch(_0x147a16[_0x4f5dcd(0x2cd)]){case b[_0x4f5dcd(0x396)]:case b['HELLO']:return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16[_0x4f5dcd(0x417)]});case b[_0x4f5dcd(0x556)]:{let _0x52cfc4;switch(_0x147a16[_0x4f5dcd(0x47d)]['eventID']){case _['CollaborationEvent'][_0x4f5dcd(0x2ce)]:{_0x52cfc4={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x47d)]};break;}case _['CollaborationEvent'][_0x4f5dcd(0x529)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)][_0x4f5dcd(0x529)],'leaveEvent':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _['CollaborationEvent']['USERS_ENTER']:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)][_0x4f5dcd(0x3fa)],'joinEvent':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _[_0x4f5dcd(0x55c)][_0x4f5dcd(0x384)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x47d)]};break;}case _[_0x4f5dcd(0x55c)][_0x4f5dcd(0x250)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x47d)]};break;}case _[_0x4f5dcd(0x55c)][_0x4f5dcd(0x270)]:{_0x52cfc4={'eventID':_['CollaborationEvent'][_0x4f5dcd(0x270)],'liveShareTerminate':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _['CollaborationEvent'][_0x4f5dcd(0x46c)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x147a16[_0x4f5dcd(0x47d)]['data']};break;}case _['CollaborationEvent'][_0x4f5dcd(0x2fb)]:{_0x52cfc4={'eventID':_[_0x4f5dcd(0x55c)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x52cfc4={'eventID':_0x147a16[_0x4f5dcd(0x47d)][_0x4f5dcd(0x39c)]};}return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16['routeKey'],'collaMsg':_0x52cfc4});}case b[_0x4f5dcd(0x44a)]:return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16[_0x4f5dcd(0x417)],'joinReq':_0x147a16[_0x4f5dcd(0x47d)]});case b[_0x4f5dcd(0x1bc)]:return JSON[_0x4f5dcd(0x203)]({'cmd':_0x147a16[_0x4f5dcd(0x2cd)],'routeKey':_0x147a16[_0x4f5dcd(0x417)],'leaveReq':_0x147a16[_0x4f5dcd(0x47d)]});default:throw new Error(_0x4f5dcd(0x43e));}}var ss=Object['defineProperty'],is=Object[_0x1100bd(0x444)],ns=(_0x1f246d,_0x2093bc,_0x363a84,_0x2a573e)=>{const _0x1d6045=_0x1100bd;for(var _0x592a22=_0x2a573e>0x1?void 0x0:_0x2a573e?is(_0x2093bc,_0x363a84):_0x2093bc,_0x392aea=_0x1f246d[_0x1d6045(0x46d)]-0x1,_0xc72ade;_0x392aea>=0x0;_0x392aea--)(_0xc72ade=_0x1f246d[_0x392aea])&&(_0x592a22=(_0x2a573e?_0xc72ade(_0x2093bc,_0x363a84,_0x592a22):_0xc72ade(_0x592a22))||_0x592a22);return _0x2a573e&&_0x592a22&&ss(_0x2093bc,_0x363a84,_0x592a22),_0x592a22;},oe=(_0x2c1326,_0x1239ab)=>(_0x57ad26,_0x1e5697)=>_0x1239ab(_0x57ad26,_0x1e5697,_0x2c1326);const Fe=a[_0x1100bd(0x1be)](_0x1100bd(0x2e3));function rs(_0x53cf96,_0x2363fa,_0x1305b6){const _0x2679ec=_0x1100bd;return _0x53cf96+'/'+_0x2363fa+_0x2679ec(0x4c6)+_0x1305b6+_0x2679ec(0x40e);}exports[_0x1100bd(0x439)]=class extends a[_0x1100bd(0x4e4)]{constructor(_0x470861,_0xeb5f79,_0x283b98,_0x2b1dd9,_0x59b6fe){const _0x41b38f=_0x1100bd;super(),this['_http']=_0x470861,this[_0x41b38f(0x298)]=_0xeb5f79,this['_configService']=_0x283b98,this[_0x41b38f(0x340)]=_0x2b1dd9,this[_0x41b38f(0x3df)]=_0x59b6fe;}[_0x1100bd(0x2d0)](_0x1084b4){const _0x14fbb2=_0x1100bd,_0xd3e670=this[_0x14fbb2(0x298)][_0x14fbb2(0x2d0)](_0x1084b4);if(!_0xd3e670)throw new Error(_0x14fbb2(0x586));const _0x237f8e=new a[(_0x14fbb2(0x4d3))](),_0x1d0b37=new v[(_0x14fbb2(0x43a))]();_0x237f8e['add'](_0xd3e670[_0x14fbb2(0x3e1)][_0x14fbb2(0x1f3)](_0x1c1437=>_0x1d0b37[_0x14fbb2(0x496)](_0x1c1437))),_0x237f8e['add'](a[_0x14fbb2(0x480)](()=>_0x1d0b37[_0x14fbb2(0x3dc)]()));const _0x2f0668=new v[(_0x14fbb2(0x43a))]();_0x237f8e[_0x14fbb2(0x1e0)](_0xd3e670[_0x14fbb2(0x516)][_0x14fbb2(0x1f3)](_0x19d704=>_0x2f0668['next'](_0x19d704))),_0x237f8e[_0x14fbb2(0x1e0)](a[_0x14fbb2(0x480)](()=>_0x2f0668['complete']()));const _0x295ec5=new v['Subject']();_0x237f8e[_0x14fbb2(0x1e0)](_0xd3e670[_0x14fbb2(0x1b6)][_0x14fbb2(0x1f3)](_0x44c3b2=>{const _0x1671d1=Ct(_0x44c3b2);_0x295ec5['next'](_0x1671d1);})),_0x237f8e[_0x14fbb2(0x1e0)](a['toDisposable'](()=>_0x295ec5[_0x14fbb2(0x3dc)]()));let _0x163659;const _0x262161=()=>{const _0x4bc3e7=_0x14fbb2;_0x2f0668[_0x4bc3e7(0x496)](new Event(_0x4bc3e7(0x42a))),_0x1d0b37[_0x4bc3e7(0x496)](new CloseEvent(_0x4bc3e7(0x42a))),_0x163659[_0x4bc3e7(0x3cb)]();};return _0x163659={'memberID':'','close$':_0x1d0b37['asObservable'](),'error$':_0x2f0668[_0x14fbb2(0x4c2)](),'open$':_0xd3e670[_0x14fbb2(0x4ef)],'message$':_0x295ec5[_0x14fbb2(0x4c2)](),'send':_0x402521=>{const _0x36438d=_0x14fbb2;if(_0x402521['cmd']===b['INGEST']){if(_0x402521[_0x36438d(0x47d)][_0x36438d(0x39c)]===_[_0x36438d(0x55c)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x163659,_0x402521[_0x36438d(0x47d)])[_0x36438d(0x28d)](_0x5bdf77=>{const _0x1096f0=_0x36438d;this[_0x1096f0(0x340)][_0x1096f0(0x3d1)](_0x5bdf77),_0x262161();});return;}if(_0x402521['data'][_0x36438d(0x39c)]===_['CollaborationEvent'][_0x36438d(0x258)]){const _0x4ec879=_0x402521[_0x36438d(0x47d)];this[_0x36438d(0x269)](_0x4ec879)['then'](_0x52a1cf=>{const _0x428833=_0x36438d;_0x295ec5[_0x428833(0x496)]({'cmd':b[_0x428833(0x50b)],'code':We['OK'],'routeKey':_0x4ec879[_0x428833(0x47d)]['unitID'],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x428833(0x255)],'data':{'changesets':_0x52a1cf}}});})[_0x36438d(0x28d)](_0x3c2967=>{const _0x3f1644=_0x36438d;this[_0x3f1644(0x340)][_0x3f1644(0x3d1)](_0x3c2967),_0x262161();});return;}}_0xd3e670['send'](Et(_0x402521));},'close':()=>{const _0x3d1143=_0x14fbb2;_0xd3e670[_0x3d1143(0x3cb)](),_0x237f8e['dispose']();}},_0x163659;}async[_0x1100bd(0x2da)](_0x584a5e,_0x330587){const _0x313ffd=_0x1100bd;var _0xc4d8e6,_0x377a64;const {unitType:_0x41ffe8,unitID:_0x4b6482,changeset:_0x237f32}=_0x330587['data'],_0x256b83={'unitID':_0x4b6482,'memberID':_0x584a5e[_0x313ffd(0x2dc)],'type':_0x41ffe8,'changeset':_[_0x313ffd(0x4a9)](_0x237f32)},_0x4a8199=this[_0x313ffd(0x4c0)]['getConfig'](gt),_0x5a387c=this[_0x313ffd(0x4c0)]['getConfig'](A),_0x22a95e=rs((_0x377a64=(_0xc4d8e6=_0x5a387c==null?void 0x0:_0x5a387c['collabSubmitChangesetUrl'])!=null?_0xc4d8e6:_0x4a8199)!=null?_0x377a64:Qt,_0x41ffe8,_0x4b6482);try{await this['_http'][_0x313ffd(0x569)](_0x22a95e,{'body':_0x256b83});}catch(_0xc52f73){throw this[_0x313ffd(0x340)][_0x313ffd(0x3d1)](_0x313ffd(0x281),_0x313ffd(0x4bc)),_0xc52f73;}}async[_0x1100bd(0x269)](_0x16bba2){const _0x553b93=_0x1100bd,{unitID:_0x343c3c,from:_0x357721,to:_0x1b5229,unitType:_0xabbaae}=_0x16bba2['data'];return(await this[_0x553b93(0x3df)][_0x553b93(0x509)]({'metadata':void 0x0},{'unitID':_0x343c3c,'type':_0xabbaae,'from':_0x357721,'to':_0x1b5229}))[_0x553b93(0x32d)];}},exports[_0x1100bd(0x439)]=ns([oe(0x0,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)])),oe(0x1,a['Inject'](P['WebSocketService'])),oe(0x2,a[_0x1100bd(0x32b)]),oe(0x3,a['ILogService']),oe(0x4,_['ISnapshotServerService'])],exports[_0x1100bd(0x439)]);const os=_0x1100bd(0x4ca);function as(_0x20db4e){return JSON['stringify'](_0x20db4e)['length'];}class Ge{constructor(){const _0x493842=_0x1100bd;d(this,_0x493842(0x2bc),new v[(_0x493842(0x43a))]()),d(this,_0x493842(0x45d),this[_0x493842(0x2bc)]['asObservable']());}['onCommentUpdate'](_0xf6ff6d){const _0x155706=_0x1100bd;this[_0x155706(0x2bc)][_0x155706(0x496)](_0xf6ff6d);}}var cs=Object[_0x1100bd(0x4ed)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x2d6dc1,_0x5e4b4e,_0x194704,_0x599254)=>{const _0x43609c=_0x1100bd;for(var _0x58fe89=_0x599254>0x1?void 0x0:_0x599254?ls(_0x5e4b4e,_0x194704):_0x5e4b4e,_0x44a5cb=_0x2d6dc1[_0x43609c(0x46d)]-0x1,_0xb4ce0e;_0x44a5cb>=0x0;_0x44a5cb--)(_0xb4ce0e=_0x2d6dc1[_0x44a5cb])&&(_0x58fe89=(_0x599254?_0xb4ce0e(_0x5e4b4e,_0x194704,_0x58fe89):_0xb4ce0e(_0x58fe89))||_0x58fe89);return _0x599254&&_0x58fe89&&cs(_0x5e4b4e,_0x194704,_0x58fe89),_0x58fe89;},Ze=(_0x285b0f,_0x2f9b14)=>(_0x4ae45f,_0x161bdb)=>_0x2f9b14(_0x4ae45f,_0x161bdb,_0x285b0f);let q=class extends a[_0x1100bd(0x4e4)]{constructor(_0x537d26,_0x467280){const _0x36357e=_0x1100bd;super(),d(this,'_roomMembers',new Map()),(this[_0x36357e(0x56b)]=_0x537d26,this[_0x36357e(0x290)]=_0x467280,this[_0x36357e(0x40b)](a['toDisposable'](v[_0x36357e(0x4e9)](this[_0x36357e(0x56b)][_0x36357e(0x2a4)](a[_0x36357e(0x2e9)][_0x36357e(0x293)])['pipe'](E[_0x36357e(0x4c4)](_0x5bae70=>_0x5bae70['getUnitId']())),this[_0x36357e(0x56b)]['getTypeOfUnitDisposed$'](a[_0x36357e(0x2e9)][_0x36357e(0x22b)])[_0x36357e(0x32e)](E['map'](_0x3a7b2e=>_0x3a7b2e[_0x36357e(0x401)]())),this['_univerInstanceService'][_0x36357e(0x2a4)](a['UniverInstanceType'][_0x36357e(0x3b9)])['pipe'](E[_0x36357e(0x4c4)](_0x2f07f5=>_0x2f07f5[_0x36357e(0x401)]())))[_0x36357e(0x1f3)](_0x27d0ff=>this['_removeRoom'](_0x27d0ff)))));}[_0x1100bd(0x4b5)](_0x298bd4){const _0x201ab2=_0x1100bd;this['_userManagerService'][_0x201ab2(0x4b5)](_0x298bd4);}[_0x1100bd(0x1b2)](){const _0x2cb3f0=_0x1100bd;return this[_0x2cb3f0(0x290)]['getCurrentUser']();}[_0x1100bd(0x1d6)](_0x334808,_0x5098ba){const _0x58b90e=_0x1100bd;let _0x3cbcd0=this[_0x58b90e(0x34a)]['get'](_0x334808);_0x3cbcd0||(_0x3cbcd0=new _s(),this['_roomMembers'][_0x58b90e(0x57e)](_0x334808,_0x3cbcd0)),_0x3cbcd0[_0x58b90e(0x1d6)](_0x5098ba);}[_0x1100bd(0x33e)](_0x3b82e6,_0x50295b){const _0x430d04=_0x1100bd,_0x15b86a=this[_0x430d04(0x34a)]['get'](_0x3b82e6);_0x15b86a&&_0x15b86a[_0x430d04(0x33e)](_0x50295b);}[_0x1100bd(0x1b7)](_0x40dd99){const _0x47ad06=_0x1100bd;return this[_0x47ad06(0x34a)][_0x47ad06(0x1f4)](_0x40dd99);}['getMember'](_0x4f0bfe,_0x3ee3fa){const _0xfc72fd=_0x1100bd,_0x17c8f0=this[_0xfc72fd(0x34a)][_0xfc72fd(0x1f4)](_0x4f0bfe);if(_0x17c8f0)return _0x17c8f0[_0xfc72fd(0x379)](_0x3ee3fa);}[_0x1100bd(0x1dc)](_0x3360ca){const _0x14204f=_0x1100bd,_0x3973ab=this[_0x14204f(0x34a)][_0x14204f(0x1f4)](_0x3360ca);_0x3973ab&&(_0x3973ab['dispose'](),this[_0x14204f(0x34a)]['delete'](_0x3360ca));}[_0x1100bd(0x3d2)](){this['_roomMembers']['forEach'](_0x4ca252=>_0x4ca252['dispose']()),this['_roomMembers']['clear']();}};q=hs([Ze(0x0,a[_0x1100bd(0x472)]),Ze(0x1,a[_0x1100bd(0x583)](a['UserManagerService']))],q);class _s extends a['Disposable']{constructor(){const _0x38c50d=_0x1100bd;super(...arguments),d(this,_0x38c50d(0x2d3),new Map());}[_0x1100bd(0x3d2)](){const _0x3b713e=_0x1100bd;this['_members'][_0x3b713e(0x27d)]();}[_0x1100bd(0x1d6)](_0x266ecc){const _0x134789=_0x1100bd;this[_0x134789(0x2d3)][_0x134789(0x57e)](_0x266ecc[_0x134789(0x2dc)],_0x266ecc);}[_0x1100bd(0x33e)](_0x4308ee){const _0x5f0c39=_0x1100bd;this[_0x5f0c39(0x2d3)][_0x5f0c39(0x5bf)](_0x4308ee);}[_0x1100bd(0x379)](_0x52f64e){const _0x5f0f7f=_0x1100bd;return this[_0x5f0f7f(0x2d3)][_0x5f0f7f(0x1f4)](_0x52f64e);}}var us=Object[_0x1100bd(0x4ed)],ds=Object[_0x1100bd(0x444)],Ss=(_0x44bf68,_0x189b6b,_0x297e6a,_0x3852ac)=>{const _0x4a45e1=_0x1100bd;for(var _0x11a4b6=_0x3852ac>0x1?void 0x0:_0x3852ac?ds(_0x189b6b,_0x297e6a):_0x189b6b,_0x5a0d3e=_0x44bf68[_0x4a45e1(0x46d)]-0x1,_0x316edb;_0x5a0d3e>=0x0;_0x5a0d3e--)(_0x316edb=_0x44bf68[_0x5a0d3e])&&(_0x11a4b6=(_0x3852ac?_0x316edb(_0x189b6b,_0x297e6a,_0x11a4b6):_0x316edb(_0x11a4b6))||_0x11a4b6);return _0x3852ac&&_0x11a4b6&&us(_0x189b6b,_0x297e6a,_0x11a4b6),_0x11a4b6;},B=(_0x256f86,_0x1aa01e)=>(_0x2e5dbb,_0x25fa09)=>_0x1aa01e(_0x2e5dbb,_0x25fa09,_0x256f86),$=(_0x51b4ca=>(_0x51b4ca[_0x51b4ca[_0x1100bd(0x4e6)]=0x0]=_0x1100bd(0x4e6),_0x51b4ca[_0x51b4ca[_0x1100bd(0x228)]=0x1]=_0x1100bd(0x228),_0x51b4ca[_0x51b4ca[_0x1100bd(0x4ad)]=0x2]=_0x1100bd(0x4ad),_0x51b4ca[_0x51b4ca['ONLINE']=0x3]=_0x1100bd(0x48c),_0x51b4ca))($||{});function _0x1ae8(){const _0x1e0c73=['_initEventListeners','_snapshotServerService','localeService','close$','_online','parse','handleIRemoveCol','Undefined','change$','every','collabStatus.fetchMiss','[PendingState]:\x20received\x20rejection.','rxjs','UNDEFINED','resend','ILocalStorageService','title','NodePositionConvertToCursor','saveChangeset','COMPLETION_FINISHED','SUCCUSS','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','setWaitCount','sendChangesetTimeout','_getAPIPrefixPath','enableAuthServer','SYNCED','_applyRemoteChangeset','USERS_ENTER','exhaustSavingTask','[CollaborationSessionService]','serializeRangeWithSheet','unknown','_scheduleTimestamp','on-line-single','getUnitId','useRef','UPDATE_PERMISSION_OBJ','_schedule','patch','visibilitychange','loadDoc','_substituteUndoStack','reject','session','disposeWithMe','transformChangesets','ICollaborationSocketService','/new_changes','@univerjs/network','pushState','IMessageService','_eventUnsubscribe','getUnitType','push','setAlpha','idSuffix','routeKey','_localeService','text','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','image/jpg','FromArray','resize','OffLineSingle','HEADER_MENU','_createHandler','HEARTBEAT_TIMEOUT','COMPRESS_MUTATION_APPLY','handleDeleteRangeMoveLeft','workbook','getUnit','objectType','deepClone','_loadDoc','newValue','connection\x20error','_transformSelections','roomMembers','UnitSnapshot','encode','_updateLocalCache','displayName','toString','HELLO','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursorInfo$','onlineStatus','revision','onTransformChange$','onSendChangeset','CollaborationSocketService','Subject','_drawAnchor','_sendHeartbeatTimer','reverse','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','measureText','_onCursorUpdate','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','status','sessionStatus','getOwnPropertyDescriptor','_sessions','session.connection-failed','_onRemoteACK','event$','XHRHTTPImplementation','JOIN','liveShareNewHost','_setupBeforeClosingHandler','[CollaborationState]:\x20apply\x20error!','onlyLocal','update','1em','retryConnectingInterval','\x20-\x20','_HTTPService','/universer-api/comb','_anchorDot','_pendingMutations','1095634lqlLGk','_status$','_state$','assign','_drawTextRange','mutations','commentUpdate$','collaboration-session-retry','_localCacheService','_updateLocalCursor','_id','_retryConnectingTimer','APPLY_REVISION_CONFILICT','collabStatus.synced','mapTo','_undoStacks','forwardRef','hasOwnProperty','ImageIoService','INotificationService','now','LIVESHARE_REQUEST_HOST','length','_rescheduleHeartbeat','SUBMIT_CHANGESET','visibilityState','_collabCursorController','IUniverInstanceService','_handleEvent','getColor','online','RemoveColCommandId','ISnapshotServerService','_onJoinRoomEvent','1255532TQWhnt','SNAPSHOT_INVALID_SNAPSHOT','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','requestParams','data','save','_getCtorByUniverType','toDisposable','authzUrl','TEXT_RANGE_LAYER_INDEX','transformIMECache','collaboration-client.offline-data-not-saved','_onUserLeave','concat','_range','Vector2','loginUrlKey','sessionStatus$','...','ONLINE','cursorInfo$','FAIL','_onCombEvent','LOCAL_CACHE_INTERVAL_KEY','indexOf','moveTo','getUndoRedoMutationParamsCache','div','filter','next','LocaleService','InsertRangeMoveDownCommandId','telemetry\x20info\x20is\x20not\x20initialized','#FFF','ILogService','_awaitingChangeset','endRow','searchParams','getViewport','_init','@univerjs/drawing','toStringTag','_scene','_sessionStatus$','disableLocalCache','_labelPosition','_listenToOfflineEvent','15528xGiZMc','parseChangesetToProtocol','snapshot','LocalUndoRedoService','YUUMI_URL_COL_OUT_OF_RANGE','OFFLINE','transformUndoRedo','defIds','VIEW_MAIN','_socket$','MessageType','670KzNHMr','pluginName','setCurrentUser','_saveTaskMap','_httpService','addImageSourceCache','_hover','_isPermissionRej','red300','submit\x20changeset\x20error!','_selfUnitIDs','_color','ERROR_EXCEED_SIZE','_configService','isTransformMutationFailure','asObservable','href','map','useObservable','/unit/','getCurrentRevOfUnit','EXCHANGE_SIGN_URL_SERVER_URL_KEY','fillText','collaboration_new_changeset','DocIMEInputManagerService','_onLocalMutation','_handler','univer-offline','registerHTTPInterceptor','colorChannel1','APPLY_NON_SEQUENTIAL_REVISION','HTTPRequest','DisposableCollection','_updateCollabCursors','\x20to\x20','DEFAULT_FILE_NAME','IPermissionService','@univerjs/design','_acknowledgedAwaitingChangeset','getSkeleton','SheetCollaborationEntity','_registerRenderDependencies','lineTo','onRendered','univer-pro.collaboration-client.single-active-unit-service','onRemoteRej','_render','purple300','getAncestorScale','Disposable','fromCollab','IDLE','syncEditingCollabCursor','reduce','merge','incrementRevOfUnit','onMissedChangesetFetched','socket$','defineProperty','_shouldReportTelemetry','open$','setTimeout','getUnitStatus$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','setUndoRedoMutationParamsCache','collaboration.single-unit.warning','_updateStatus','HttpExport','apply','onStateChange','DataLoaderController','@univerjs/sheets','Tools','getMemberID','unshift','onStarting','clipPath','addObject','current','_onFetchMissResult','top','subunit','ICommandService','substring','rgba(255,\x20255,\x20255,\x200.01)','COMMENT_UPDATE','fetchMissingChangesets','registerBeforeClose','RECV','_listenToOnlineEvent','InsertColCommandId','ThresholdInterceptorFactory','transformStack\x20failed!','react','RefRangeService','_transformPreviousActiveRange','isInternalEditorID','_getAnchorBounding','_telemetryInfo','error$','interceptor','pending','unit-cache-','_remoteChangesetQueue','ranges','LOGIN_URL_KEY','_entities','_type','activeSheet$','_scheduleSaving','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.conflict','Optional','_tryReconnect','type','_change$','SNAPSHOT_URL_KEY','range','USERS_LEAVE','HEARTBEAT_INTERVAL_KEY','getActiveRange','ERROR_IMAGE_TYPE','SheetsSelectionsService','MSG_FOR_ERROR','prototype','_onRemoteRejected','/block/','CollaborationSessionService','_scheduleHeartbeat','_clearScheduledTask','SetWorksheetActivateCommand','initWorkbookPermissionChange','UniverCollaborationPlugin','_transformIMECache','LICENSE_MAX_UNITS_EXCEEDED','_commandService','getRangePointData','storage','_getUploadFileURL','/-/object/list','sequenceExecute','_colorIndex','_toggleOnline','take','onTransformSelections','@univerjs/docs','3983EdQBUc','COLLAB_SUBMIT_CHANGESET_URL','ITelemetryService','/-/object/-/batch_allowed','fromEvent','UNIVER_UNKNOWN','updateCursorEvent','string','handleIRemoveRow','_executeRemoteChangeset','image/bmp','SNAPSHOT_SERVER_URL_KEY','dispose$','generateRandomId','makeDirty','parseProtocolChangeset','collab-client.tooltip.reconnect','INGEST','number','COLORS','joinRsp','ws://127.0.0.1:8000/universer-api/comb/connect','@univerjs-pro/license','CollaborationEvent','session.collaboration-timeout','addObjects','_initRequestHeader','socketService','WorkbookEditablePermission','fetchThroughInterceptors','IUndoRedoService','[SyncedState]:\x20received\x20acknowledgement.','_event$','getInterceptPoints','evenodd','_entityInit$','post','IRenderManagerService','_univerInstanceService','combineLatest','compose','collabStatus.syncing','@univerjs/engine-render','_compressMutationService','COLLAB_SUBMIT_CHANGESET_URL_KEY','isValidRectRange','session.room-full','_anchor','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','encodeURIComponent','_transformStack','m1Prime','CHANGESET_REJ','_session','objects','isArray','ACTIVE_UNIT_EVENT_CHANNEL','set','url(#$1','_retryCount','csRejEvent','POST','Inject','921932OfLxXK','_substituteRedoStack','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','PERMISSION_REJ','_updateSubUnitFromURLParams','isTransformChangesetsSuccess','SetDocZoomRatioOperation','_initResize','_registerDependencies','CollaborationEntity','CollaborationStatus','onReady','collaborators','endColumn','_clearRedo','round','UNKNOWN_CODE','unsubscribe','_cursorShapes','_getSignURL','HEARTBEAT_INTERVAL','_showConflictNotification','send','unitID','socket\x20open.','univer-online','OTHER_CLIENTS_EDITING','_collaborationTimeoutTimer','headers','isTransformMutationsWithChangesetSuccess','_handleJoinEvent','has','_collaborationSessionService','handleDeleteRangeMoveUp','symbol','#fff','_getCurrentRevision','registerOnClose','SEND_CHANGESET_TIMEOUT','LICENSE_DISTRO_REJECTED','_docTransformSelectionsService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','?url=','CompressMutationService','find','RemoveRowCommandId','isEditing','collab-text-range-','getTime','deserializeRangeWithSheet','ThemeService','_initMergeInterceptor','put','fill','roomMembers$','[DataLoaderController]','AWAITING','SnapshotServerOverHTTPService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','delete','mapDocumentTypeToUniverType','EffectRefRangId','conflict','init','unit','_getMergeRange','touchDependencies','findNodePositionByCharIndex','Plugin','Module','debounceTime','awaiting_with_pending','SHOULD_CLOSE_CONN','getCurrentUnitForType','_handleLeaveEvent','_sendHeartbeat','_initUnitPermissionChange','_socketMessageSubscription','_undoRedoService','subUnitId','getCurrentUser','YUUMI_RATE_OVER_LIMIT','collaMsg','_themeService','message$','getRoom','_getRedoStack','_timeoutTimer','roomInfos','height','LEAVE','_telemetryService','createIdentifier','xlink:href','refreshPermission','[PendingState]:\x20received\x20acknowledgement.','_removeCollabCursors','_onOffline','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_initCommandExecutedListener','UNIVER_COLLABORATION_CLIENT_PLUGIN','RxDisposable','actions','_lockTransition','m2Prime','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','@univerjs/rpc','_clearHeartbeatTimer','_transformService','fillStyle','IUIPartsService','unitId','/object','_createSocket','selections','/universer-api/snapshot/','updateMember','_instanceService','_injector','show','SheetCollabCursorShape','off-line-single','_removeRoom','MoveRangeCommandId','UUID','onMissingChangesets','add','_incrementRevisionNumber','handleInsertRangeMoveRight','_cursor','_memberService','_saveCache','saveSheetBlock','reconnect','_joinRoom','bottom','getParam','_sheetSkeletonManagerService','getRelativeToViewportCoord','_startDocCollabCursor','@univerjs/engine-formula','_clearUndo','triggerDblclick','_onUserJoin','_clearOtherTimers','subscribe','get','Unknown\x20user','column','baseRev','setItem','_onConnectionFailed','flatMap','Shape','_sheetTransformSelectionsService','SEND_CHANGESET_TIMEOUT_KEY','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','[SyncedState]:\x20received\x20rejection.','_collaborationPaused','CHANGESET_REVISION_CONFILICT','subscribeEvent','stringify','getConfig','children','_getAPIPrefix','NO_OTHER_CLIENTS_EDITING','entries','LocalCacheService','currentSkeleton$','IContextService','userID','target','c1Prime','ERROR_IMAGE','none','_getSendChangesetTimeout','max','all','_state','useDependency','synced','4470lUqqAH','_cachedData','UniverIcon','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','FETCH_MISS','_waitForHeartbeatResponse','path','TOO_MANY_REQUESTS','commentUpdateEvent','getVpScrollXYInfoByPosToVp','_getSheetObject','_roomMembers$','getCollabEntity$','setParam','_stopTelemetryCollaborationNewChangeset','loadOfflineData','COMPRESS_MUTATION_SEND','JOINING','_getSnapshotAPIPrefix','image/gif','UNIVER_DOC','action','_disabled','toRgbString','saveSnapshot','onRemoteChangeset','onCommandExecuted','onMouseMove','getRenderById','_transformUndoRedoStack','getDeserializedSheetBlock','_loadSheet','_clearTimeoutTimer','_socket','uni.network.url-service','DeleteRangeMoveLeftCommandId','handleInsertCol','some','defs','_replayCachedMutations','takeUntil','BehaviorSubject','_checkMissing','6VLKtSt','_unitStatus','connectInjector','IAuthzIoService','_snapshotService','[OfflineState]:\x20received\x20changeset.','&assign=','RichTextEditingMutation','CommentService','delay','_docSyncEditingCollabCursorService','params','c2Prime','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','LIVESHARE_OPERATION','onlineStatusIcon','INVALID_ARGUMENT','getSheetObject','onRemoteAck','PSEUDO_FETCH_MISSING_RESULT','_transformUndoredo','_decreaseWaiting','FETCH_MISSING','Tooltip','_scheduleClearOtherTimer','awaitingChangeset','onPointerEnter$','CONFLICT','translate(.97)','\x0aAfter:\x20','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','setActiveRange','_docTransformIMECacheService','_onConnectionOpen','PENDING','_startSheetCollabCursor','_queuedRemoteChangesets','_createInitialStateImpl','ImageUploadStatusType','_fetchMissChangesets','_initCloseConn','/allowed','fetchMiss','liveShareOperation','readAsDataURL','UNAUTHENTICATED','LIVESHARE_TERMINATE','getCollabCursors$','permission.title','trim','YUUMI_SUBSCRIPTION_NOT_FOUND','distinctUntilChanged','conflict.title','tag','/fetchmissing?from=','startRow','_setupSubUnitSync','CommandType','closeSession','clear','WebURLService','getItem','transformByState','[CollaborationSession]','updateOfflineData','AWAITING_WITH_PENDING','status$','[OfflineState]:\x20received\x20rejection.','_scheduleCollaborationTimeoutTimer','cursorInfo','_syncEditingCollabCursorService','_sendingTimer','14550957hVFMAz','_notificationService','call','catch','NEW_CHANGESETS','onCommentUpdate','_userManagerService','UNIVER_PROJECT','JSONX','UNIVER_SHEET','_replaceFileID','_backgroundColor','/universer-api/snapshot','registerRenderModule','_ws','collab-rect-range-','updateCollaborator','LICENSE_EXPORT_SIZE_EXCEEDED','isPermissionRej','univer-online-status-icon','getCollabEntity','responseType','throttleTime','Injector','_cursors','_createInitialState','getTypeOfUnitDisposed$','onTransformRemoteChangesetByIMECache','doc.mutation.rich-text-editing','NOT_COLLAB','_startTelemetryCollaborationNewChangeset','getSheetBySheetId','FileId','getCurrentSelections','getOwnPropertySymbols','awaiting','putCollaborators','/object/','HTTPService','serializeCombRequest','/collaborator','gold400','[CollaborationEntity]','_socketService','_toggleOffline','size','body','_assignedColors','0\x200\x2016\x2016','univerjs-icon\x20univerjs-icon-','_commentUpdate$','snapshotServerUrl','forEach','PERMISSION_DENIED','from','verdancy600','_context','getCurrent','ImageSourceType','_shapes','CONNECTOR_DATA_TOO_LARGE','collaboration-client.config','enableSingleActiveInstanceLock','ALREADY_EXISTS','_renderManagerService','/resources','skeleton','cmd','UPDATE_CURSOR','_initModules','createSocket','RETRY_CONNECTING_MAX_COUNT_KEY','Error','_members','selection','getOffsetConfig','_collabSessionService','history','currentTheme$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_submitChangeset','getCoordByCell','memberID','attrs','shouldCloseConn','7165SIElrX','saveOfflineData','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','DependentOn','univer-pro.collaboration-client-socket-service','failed\x20to\x20apply\x20missed\x20changesets!','IBeforeCloseService','className','Error\x20on\x20receiving\x20event','svg','UniverInstanceType','executeCommand','_handleHeartbeatEvent','debounce','transformSelections','\x0aCurrent:\x20','_transformRemoteChangesetByIMECache','getValue','/universer-api/stream/file/upload','_handleHover','Warning','_getSaveTimeout','_getUndoStack','DocSkeletonManagerService','drawWith','_refRangeService','originalMeta','textRanges','LIVESHARE_FETCH_OPERATIONS','clearInterval','black','collabStatus.offline','updatePermissionObjEvent','_urlService','setInterval','@univerjs-pro/collaboration','LICENSE_IMPORT_SIZE_EXCEEDED','_getDownloadEndpointURL','&source=','sheetID','_singleActiveUnitService','onPointerLeave$','on-line-single_clip0_910_349','NOT_FOUND','getUnhiddenWorksheets','ColorKit','roles','extend','replaceTextRanges','0\x200\x2017\x2016','DocStateChangeManagerService','_tryEnsureSocket','urlChange$','collaboration.closeRoom','values','startsWith','createInstance','_transitionLocked','toggleOffline','then','requireSession','4127112eQLsZs','getFocusedUnit','with','CollaborationStatusDisplay','SNAPSHOT_HAS_BEEN_REMOVED','_ensureSubject','offline','RevisionService','_updateState','_clearLocalCache','getDocRanges','_document','debug','rev','color','IConfigService','infoRsp','changesets','pipe','UnitEmbedded','_unlockTransition','jiqing500','isTransformMutationsWithChangesetFailure','_colorAssignService','_textBubble','_socketReady','_uiPartsService','DeleteRangeMoveUpCommandId','_onMessage','_unitOnClients','replaceState','@univerjs/core','_startCollaboration','shareReplay','removeMember','_syncEditingCollabCursor','_logService','collab-text-anchor-','_removeClearOtherTimer','result','SheetSkeletonManagerService','handleInsertRow','closePath','UNKNOWN_CMD','isActive','transformRemoteChangeset','_roomMembers','getActiveSheet','HEARTBEAT_TIMEOUT_KEY','YUUMI_UNABLE_LOAD_URL','/rev/','getUniverSheetInstance','_onRemoteChangeset','slice','APPLY_REJECT','code','origin','disposeUnit','transformMutation','handleInsertRangeMoveDown','src','IImageIoService','\x20in\x20_schedule.','saveImage','not_collab','UNRECOGNIZED','fetch_missing','switchMap','includes','/universer-api/oidc/authpage','_initStatusComponent','_send','objectID','batchAllowed','_onRecvEvent','_commentService','_docSkeleton','_name','joinEvent','min','_onConflict','AuthzIoHttpService','url','_collabCursorState$','HttpImport','VIEWPORT_KEY','_exhaustRemoteChangesetQueue','object','UniverCollaborationClientPlugin','unload','stopTime','DocSelectionManagerService','focused$','getMember','SessionStatus','location','_messageService','width','IURLService','createElement','getSheetId','_unitID','getTypeOfUnitAdded$','confirm','LIVESHARE_NEW_HOST','onPointerMove$','off-line-single_clip0_910_343','hide','_throwTelemetryCollaborationNewChangeset','allowed','_hideTimer','CollaborationSession','CollaborationController','ITransformService','hidden','name','_updateURLWithCurrentState','IRemoteInstanceService','members','clearTimeout','addEventListener','_config','HEARTBEAT','[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.','appendMutation','session.will-retry','sheets','state$','eventID','override','M0\x200H16V16H0z','_permissionService','_lastPointer','onTransformIME','_getLoginPath','_docStateChangeManagerService','deserializeToCombResponse','updatePermissionPoint','signUrlServerUrl','assignAColorForMemberID','OnLineSingle','url(#on-line-single_clip0_910_349)','toggleOnline','restore','createCollaborator','getAttachHeader','_heartbeatTimer','x-univer-host','_revisionService','_localStorageService','getUnitOnRev','b64DecodeUnicode','save\x20fail\x20reason\x20is\x20','getSheetBlock','icon','SetSelectionsOperation','state','UNIVER_SLIDE','create','onSyncEditingCollabCursor','split','_beforeCloseService','getWorkbookSelections','setShapeProps','_docSkeletonManagerService','BASE64','transformMutationsWithChangeset','handleMoveRange','permissionRejEvent','Rect','collabCursorState$','RegularPolygon','_draw','arc','getImage','close','_clearCollaborationTimeoutTimer','DocCollaborationEntity','_candidateSocket','[CollaborationUndoRedoService]','_onCursorDelete','error','dispose','DesktopCollaborationStatusDisplayController','blue400','_hovered','CHANGESET_ACK','_getScale','MUTATION','/universer-api/file/{fileID}/sign-url','_imageSourceCache','{fileID}','complete','_waitCount'];_0x1ae8=function(){return _0x1e0c73;};return _0x1ae8();}exports[_0x1100bd(0x38b)]=class extends a[_0x1100bd(0x1c7)]{constructor(_0x16d816,_0x4956e6,_0xf7c865,_0x24eae6,_0x18b390,_0x378231,_0x26542b,_0x272a64,_0x234de4,_0x4977bc){const _0x3c6f87=_0x1100bd;super(),d(this,_0x3c6f87(0x4a4),new v[(_0x3c6f87(0x240))](0x0)),d(this,_0x3c6f87(0x48a),this[_0x3c6f87(0x4a4)][_0x3c6f87(0x4c2)]()),d(this,_0x3c6f87(0x565),new v[(_0x3c6f87(0x43a))]()),d(this,_0x3c6f87(0x448),this[_0x3c6f87(0x565)]['asObservable']()),d(this,_0x3c6f87(0x238)),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),d(this,_0x3c6f87(0x4ee),!0x1),d(this,_0x3c6f87(0x515),null),(this[_0x3c6f87(0x381)]=_0x16d816,this[_0x3c6f87(0x340)]=_0xf7c865,this[_0x3c6f87(0x3bd)]=_0x24eae6,this[_0x3c6f87(0x37c)]=_0x18b390,this[_0x3c6f87(0x4c0)]=_0x378231,this[_0x3c6f87(0x418)]=_0x26542b,this[_0x3c6f87(0x1e4)]=_0x272a64,this[_0x3c6f87(0x367)]=_0x234de4,this[_0x3c6f87(0x1bd)]=_0x4977bc,this['_shouldReportTelemetry']=!!this[_0x3c6f87(0x1bd)],_0x4956e6[_0x3c6f87(0x32e)](v[_0x3c6f87(0x23f)](this['dispose$']))['subscribe'](_0x3b2b99=>{const _0x4e8c23=_0x3c6f87;var _0x544994;typeof _0x3b2b99>'u'||(this[_0x4e8c23(0x238)]=_0x3b2b99,_0x3b2b99?(this['_joinRoom'](_0x3b2b99),this[_0x4e8c23(0x1af)]=_0x3b2b99[_0x4e8c23(0x1b6)][_0x4e8c23(0x1f3)](_0xcbb345=>{const _0x499ef0=_0x4e8c23;_0xcbb345[_0x499ef0(0x417)]===this['_unitID']&&this[_0x499ef0(0x48f)](_0xcbb345);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4e8c23(0x4a4)][_0x4e8c23(0x496)](0x2),(_0x544994=this['_socketMessageSubscription'])==null||_0x544994[_0x4e8c23(0x595)](),this['_socketMessageSubscription']=null));}),this[_0x3c6f87(0x40b)](this[_0x3c6f87(0x3bd)][_0x3c6f87(0x5a9)](()=>{const _0x17cb08=_0x3c6f87;var _0x252f0c;(_0x252f0c=this[_0x17cb08(0x238)])==null||_0x252f0c[_0x17cb08(0x59a)]({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x1de5f7=_0x1100bd;return this[_0x1de5f7(0x4a4)][_0x1de5f7(0x2f0)]();}[_0x1100bd(0x4fc)](){const _0x102720=_0x1100bd;var _0x36ce68,_0x480b11;return(_0x480b11=(_0x36ce68=this['_socket'])==null?void 0x0:_0x36ce68[_0x102720(0x2dc)])!=null?_0x480b11:null;}[_0x1100bd(0x3d2)](){const _0x37d9b5=_0x1100bd;super['dispose'](),this['dispose$'][_0x37d9b5(0x496)](),this[_0x37d9b5(0x551)][_0x37d9b5(0x3dc)]();}[_0x1100bd(0x3cb)](){const _0x5f3cfe=_0x1100bd;var _0x5cda9e,_0x5b4928;this[_0x5f3cfe(0x388)](),(_0x5cda9e=this[_0x5f3cfe(0x238)])==null||_0x5cda9e[_0x5f3cfe(0x59a)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x5f3cfe(0x381)]}}),(_0x5b4928=this['_socket'])==null||_0x5b4928[_0x5f3cfe(0x3cb)](),this['_event$'][_0x5f3cfe(0x3dc)](),this[_0x5f3cfe(0x4a4)]['complete'](),this[_0x5f3cfe(0x3d2)]();}[_0x1100bd(0x48f)](_0xbe754a){const _0x378da1=_0x1100bd;_0xbe754a['cmd']===b[_0x378da1(0x44a)]?this['_onJoinRoomEvent'](_0xbe754a):_0xbe754a['cmd']===b[_0x378da1(0x50b)]&&this['_onRecvEvent'](_0xbe754a);}[_0x1100bd(0x1e8)](_0x24c15f){const _0x2f9401=_0x1100bd;this['_sessionStatus$'][_0x2f9401(0x496)](0x1),_0x24c15f['send']({'cmd':b[_0x2f9401(0x44a)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x2f9401(0x381)]}]}});}[_0x1100bd(0x478)](_0x6b87bf){const _0x401c47=_0x1100bd;var _0x323aba;if(_0x6b87bf[_0x401c47(0x353)]===We[_0x401c47(0x48e)]){this[_0x401c47(0x37c)][_0x401c47(0x1d9)]({'type':X[_0x401c47(0x4b2)]['Warning'],'content':this[_0x401c47(0x418)]['t'](_0x401c47(0x573))}),this[_0x401c47(0x4a4)][_0x401c47(0x496)](0x2);return;}this['_sessionStatus$'][_0x401c47(0x496)](0x3);const _0x30fdcc=(_0x323aba=_0x6b87bf['data'][_0x401c47(0x1ba)][this[_0x401c47(0x381)]])==null?void 0x0:_0x323aba[_0x401c47(0x392)];_0x30fdcc&&_0x30fdcc['forEach'](_0x781293=>this[_0x401c47(0x1e4)][_0x401c47(0x1d6)](this[_0x401c47(0x381)],_0x781293));}[_0x1100bd(0x366)](_0x1f5a2b){const _0x5be276=_0x1100bd;try{const _0x240fb3=_0x1f5a2b[_0x5be276(0x47d)];switch(_0x240fb3[_0x5be276(0x39c)]){case _[_0x5be276(0x55c)]['USERS_ENTER']:this['_onUserJoin'](_0x240fb3),this['_event$'][_0x5be276(0x496)](_0x240fb3);break;case _[_0x5be276(0x55c)][_0x5be276(0x529)]:this['_onUserLeave'](_0x240fb3),this[_0x5be276(0x565)]['next'](_0x240fb3);break;case _[_0x5be276(0x55c)][_0x5be276(0x3d6)]:this[_0x5be276(0x225)](),this[_0x5be276(0x3cc)](),this[_0x5be276(0x565)]['next'](_0x240fb3);break;case _[_0x5be276(0x55c)]['MSG_FOR_ERROR']:this[_0x5be276(0x340)][_0x5be276(0x3d1)](_0x5be276(0x3b4)+JSON[_0x5be276(0x203)](_0x240fb3)),this[_0x5be276(0x565)]['next'](_0x240fb3);break;case _[_0x5be276(0x55c)][_0x5be276(0x508)]:this['_commentService'][_0x5be276(0x28f)](_0x240fb3['data']),this[_0x5be276(0x565)]['next'](_0x240fb3);break;default:this[_0x5be276(0x565)][_0x5be276(0x496)](_0x240fb3);}}catch(_0x2e2c22){this['_logService']['error'](_0x2e2c22,_0x1f5a2b);}}[_0x1100bd(0x1f1)](_0x138db3){const _0x586b7e=_0x1100bd;this[_0x586b7e(0x1e4)][_0x586b7e(0x1d6)](this['_unitID'],_0x138db3['data']);}[_0x1100bd(0x485)](_0x58dbd6){const _0x35269d=_0x1100bd;this[_0x35269d(0x1e4)][_0x35269d(0x33e)](this[_0x35269d(0x381)],_0x58dbd6[_0x35269d(0x47d)][_0x35269d(0x2dc)]);}async[_0x1100bd(0x59a)](_0x52e1b4,_0x5db2cf){const _0x37db14=_0x1100bd;if(this[_0x37db14(0x443)]!==0x3||!this[_0x37db14(0x238)])throw new Error(_0x37db14(0x47b));try{_0x52e1b4['eventID']===_[_0x37db14(0x55c)][_0x37db14(0x46f)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x52e1b4)),this[_0x37db14(0x238)]['send']({'cmd':b[_0x37db14(0x556)],'routeKey':_0x5db2cf,'routeType':'','data':_0x52e1b4});}catch(_0x5dc4fb){this['_logService'][_0x37db14(0x3d1)](_0x5dc4fb);}}[_0x1100bd(0x286)](){const _0x387abe=_0x1100bd;var _0x1c46e2;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x9cb2b=_0x75d2;this[_0x9cb2b(0x59f)]=null,this[_0x9cb2b(0x37c)][_0x9cb2b(0x1d9)]({'type':X[_0x9cb2b(0x4b2)][_0x9cb2b(0x2d2)],'content':this[_0x9cb2b(0x418)]['t'](_0x9cb2b(0x55d))});},(_0x1c46e2=this[_0x387abe(0x4c0)][_0x387abe(0x204)](Ve))!=null?_0x1c46e2:St);}['_clearCollaborationTimeoutTimer'](){const _0x398fd9=_0x1100bd;this[_0x398fd9(0x59f)]&&(clearTimeout(this[_0x398fd9(0x59f)]),this[_0x398fd9(0x59f)]=null);}[_0x1100bd(0x2a8)](_0x4c130f){const _0x47ebc1=_0x1100bd;if(!this[_0x47ebc1(0x4ee)])return;const {data:_0x5495f6}=_0x4c130f,{unitID:_0x4cd457,changeset:_0x1205a9}=_0x5495f6,{mutations:_0x4e0ebf,type:_0x27ba1b}=_0x1205a9;this[_0x47ebc1(0x515)]={'unitId':_0x4cd457,'type':_0x27ba1b,'startTime':performance[_0x47ebc1(0x46b)](),'stopTime':0x0,'duration':0x0,'size':as(_0x4e0ebf)};}[_0x1100bd(0x225)](){const _0x24f74a=_0x1100bd;if(this[_0x24f74a(0x4ee)]){if(!this[_0x24f74a(0x515)]){this[_0x24f74a(0x340)]['error'](_0x24f74a(0x281),_0x24f74a(0x499));return;}this[_0x24f74a(0x515)]['stopTime']=performance[_0x24f74a(0x46b)](),this[_0x24f74a(0x515)]['duration']=this[_0x24f74a(0x515)][_0x24f74a(0x376)]-this[_0x24f74a(0x515)]['startTime'],this['_telemetryService']['capture'](os,this['_telemetryInfo']),this[_0x24f74a(0x515)]=null;}}[_0x1100bd(0x388)](){const _0x17889c=_0x1100bd;this[_0x17889c(0x515)]=null;}},exports[_0x1100bd(0x38b)]=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x1100bd(0x2e5)]),B(0x4,N[_0x1100bd(0x411)]),B(0x5,a[_0x1100bd(0x32b)]),B(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),B(0x7,a[_0x1100bd(0x583)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0x1100bd(0x523)](Vt[_0x1100bd(0x547)]))],exports[_0x1100bd(0x38b)]);var vs=Object['defineProperty'],fs=Object[_0x1100bd(0x444)],gs=(_0x2e3498,_0x428dcd,_0xa510a,_0x3d5aa9)=>{for(var _0x4a0788=_0x3d5aa9>0x1?void 0x0:_0x3d5aa9?fs(_0x428dcd,_0xa510a):_0x428dcd,_0x53acea=_0x2e3498['length']-0x1,_0x34f24b;_0x53acea>=0x0;_0x53acea--)(_0x34f24b=_0x2e3498[_0x53acea])&&(_0x4a0788=(_0x3d5aa9?_0x34f24b(_0x428dcd,_0xa510a,_0x4a0788):_0x34f24b(_0x4a0788))||_0x4a0788);return _0x3d5aa9&&_0x4a0788&&vs(_0x428dcd,_0xa510a,_0x4a0788),_0x4a0788;},Z=(_0x4d3b3a,_0x3a559e)=>(_0xef908b,_0x5bebc3)=>_0x3a559e(_0xef908b,_0x5bebc3,_0x4d3b3a);exports['CollaborationSessionService']=class extends a[_0x1100bd(0x4e4)]{constructor(_0x3b4819,_0x441bd6,_0xab1b58,_0x2c400c,_0x4bfe06,_0xd64685){const _0x232ab4=_0x1100bd;super(),d(this,_0x232ab4(0x4b1),new v[(_0x232ab4(0x240))](void 0x0)),d(this,_0x232ab4(0x4ec),this[_0x232ab4(0x4b1)][_0x232ab4(0x4c2)]()),d(this,_0x232ab4(0x3ce),null),d(this,_0x232ab4(0x445),new Map()),d(this,_0x232ab4(0x458),new v[(_0x232ab4(0x240))]($[_0x232ab4(0x4e6)])),d(this,_0x232ab4(0x284),this[_0x232ab4(0x458)][_0x232ab4(0x4c2)]()),d(this,_0x232ab4(0x335),!0x1),d(this,'_retryConnectingTimer'),d(this,_0x232ab4(0x580),0x0),d(this,'_sendHeartbeatTimer'),d(this,_0x232ab4(0x1b9)),(this['_injector']=_0x3b4819,this[_0x232ab4(0x418)]=_0x441bd6,this['_messageService']=_0xab1b58,this[_0x232ab4(0x340)]=_0x2c400c,this[_0x232ab4(0x4c0)]=_0x4bfe06,this[_0x232ab4(0x2b5)]=_0xd64685,this[_0x232ab4(0x3de)]());}get[_0x1100bd(0x238)](){const _0x4d56d2=_0x1100bd;return this[_0x4d56d2(0x4b1)][_0x4d56d2(0x2f0)]();}[_0x1100bd(0x3de)](){const _0x3d945a=_0x1100bd;this[_0x3d945a(0x4a7)](),this[_0x3d945a(0x50c)]();}[_0x1100bd(0x3d2)](){const _0x14ebdb=_0x1100bd;super[_0x14ebdb(0x3d2)](),this[_0x14ebdb(0x445)][_0x14ebdb(0x2be)](_0x1afb35=>_0x1afb35[_0x14ebdb(0x3d2)]()),this[_0x14ebdb(0x445)][_0x14ebdb(0x27d)](),this['_status$'][_0x14ebdb(0x3dc)]();}async['requireSession'](_0x5d462b){const _0x2bbc63=_0x1100bd;if(this[_0x2bbc63(0x445)][_0x2bbc63(0x5a3)](_0x5d462b))return this[_0x2bbc63(0x445)][_0x2bbc63(0x1f4)](_0x5d462b);this[_0x2bbc63(0x312)]();const _0x8359fa=this[_0x2bbc63(0x1d8)][_0x2bbc63(0x317)](exports[_0x2bbc63(0x38b)],_0x5d462b,this['_socket$'][_0x2bbc63(0x4c2)]());return this[_0x2bbc63(0x445)][_0x2bbc63(0x57e)](_0x5d462b,_0x8359fa),_0x8359fa;}[_0x1100bd(0x27c)](_0x2c5dab){const _0x596430=_0x1100bd;var _0x51c8ca;const _0x3e2310=this[_0x596430(0x445)][_0x596430(0x1f4)](_0x2c5dab);_0x3e2310&&(this[_0x596430(0x445)][_0x596430(0x5bf)](_0x2c5dab),_0x3e2310[_0x596430(0x3cb)]()),this[_0x596430(0x445)][_0x596430(0x2b7)]||(_0x51c8ca=this['_socket'])==null||_0x51c8ca[_0x596430(0x3cb)]();}[_0x1100bd(0x1e7)](){const _0x209a7c=_0x1100bd;this[_0x209a7c(0x580)]=0x0,this[_0x209a7c(0x462)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x209a7c(0x462)]=null),this[_0x209a7c(0x524)]();}[_0x1100bd(0x1d3)](){const _0x21103d=_0x1100bd;var _0x1b824b,_0x22523a;const _0x501375=this[_0x21103d(0x4c0)][_0x21103d(0x204)](ut),_0x4ab265=this['_configService']['getConfig'](A),_0x44bd01=(_0x22523a=(_0x1b824b=_0x4ab265==null?void 0x0:_0x4ab265['collabWebSocketUrl'])!=null?_0x1b824b:_0x501375)!=null?_0x22523a:Xt,_0x3c7eb4=this[_0x21103d(0x2b5)][_0x21103d(0x2d0)](_0x44bd01);return this[_0x21103d(0x3ce)]=_0x3c7eb4,_0x3c7eb4;}[_0x1100bd(0x312)](){const _0x411f60=_0x1100bd;var _0x2d46b4,_0x489abc;try{const _0x416365=(_0x489abc=(_0x2d46b4=this[_0x411f60(0x238)])!=null?_0x2d46b4:this['_candidateSocket'])!=null?_0x489abc:this[_0x411f60(0x1d3)]();if(_0x416365){const _0x4d181f=_0x416365['send'];_0x416365[_0x411f60(0x59a)]=_0x157b25=>(this[_0x411f60(0x46e)](),_0x4d181f[_0x411f60(0x4f7)](_0x416365,[_0x157b25])),_0x416365[_0x411f60(0x1b6)][_0x411f60(0x1f3)](_0x14e2e7=>this[_0x411f60(0x338)](_0x416365,_0x14e2e7)),_0x416365[_0x411f60(0x516)][_0x411f60(0x32e)](E[_0x411f60(0x542)](0x1))['subscribe'](_0x382781=>this[_0x411f60(0x340)][_0x411f60(0x3d1)]('[CollaborationSessionService]:\x20socket\x20error',_0x382781)),_0x416365[_0x411f60(0x4ef)][_0x411f60(0x32e)](E['take'](0x1))[_0x411f60(0x1f3)](()=>{const _0x413e5a=_0x411f60;this[_0x413e5a(0x263)](_0x416365);}),_0x416365[_0x411f60(0x3e1)][_0x411f60(0x32e)](E[_0x411f60(0x542)](0x1))[_0x411f60(0x1f3)](_0xba1778=>{const _0x16ffd2=_0x411f60;this[_0x16ffd2(0x340)][_0x16ffd2(0x328)](_0x16ffd2(0x3fc),'socket\x20close',_0xba1778),this[_0x16ffd2(0x1f9)]();});}}catch(_0x534a47){this['_logService']['error'](_0x534a47),this[_0x411f60(0x1f9)]();}}[_0x1100bd(0x263)](_0x22bab5){const _0x33074f=_0x1100bd;this[_0x33074f(0x340)][_0x33074f(0x328)](_0x33074f(0x3fc),_0x33074f(0x59c)),_0x22bab5['send']({'cmd':b['HELLO']}),this[_0x33074f(0x46e)]();}['_listenToOfflineEvent'](){const _0x4791aa=_0x1100bd;window[_0x4791aa(0x394)]('offline',()=>this['_onOffline']());}[_0x1100bd(0x1c3)](){const _0x1291e4=_0x1100bd;this[_0x1291e4(0x335)]=!0x1,this[_0x1291e4(0x3ce)]=null,this[_0x1291e4(0x458)][_0x1291e4(0x496)]($[_0x1291e4(0x4ad)]),this[_0x1291e4(0x4b1)]['next'](null),this[_0x1291e4(0x237)](),this[_0x1291e4(0x1cd)]();}[_0x1100bd(0x1f9)](){const _0x5576fc=_0x1100bd;var _0x3f574f;this[_0x5576fc(0x1c3)](),this[_0x5576fc(0x580)]<((_0x3f574f=this[_0x5576fc(0x4c0)][_0x5576fc(0x204)](vt))!=null?_0x3f574f:Jt)?(this[_0x5576fc(0x37c)][_0x5576fc(0x1d9)]({'key':_0x5576fc(0x45e),'type':X[_0x5576fc(0x4b2)][_0x5576fc(0x2f3)],'content':this['_localeService']['t'](_0x5576fc(0x399))}),this[_0x5576fc(0x524)]()):this[_0x5576fc(0x37c)][_0x5576fc(0x1d9)]({'key':'collaboration-session-retry','type':X[_0x5576fc(0x4b2)]['Error'],'content':this[_0x5576fc(0x418)]['t'](_0x5576fc(0x446))});}[_0x1100bd(0x50c)](){const _0x5f15ab=_0x1100bd,_0x5045fe=()=>{const _0x3f4a55=_0x75d2;this[_0x3f4a55(0x238)]||this['reconnect']();},_0x450fee=()=>{const _0x6129d3=_0x75d2;this['_socket']||document[_0x6129d3(0x470)]===_0x6129d3(0x38e)||this[_0x6129d3(0x1e7)]();};window[_0x5f15ab(0x394)](_0x5f15ab(0x475),_0x5045fe),document['addEventListener'](_0x5f15ab(0x406),_0x450fee);}[_0x1100bd(0x524)](){const _0x453c6e=_0x1100bd;var _0x29bae9;const _0x4f6904=this[_0x453c6e(0x580)],_0x418c11=this[_0x453c6e(0x4c0)][_0x453c6e(0x204)](A),_0x171890=_0x4f6904===0x0?0x0:((_0x29bae9=_0x418c11==null?void 0x0:_0x418c11[_0x453c6e(0x451)])!=null?_0x29bae9:zt)*0x2**_0x4f6904;this[_0x453c6e(0x462)]=window[_0x453c6e(0x4f0)](()=>{const _0x59d45e=_0x453c6e;clearTimeout(this[_0x59d45e(0x462)]),this[_0x59d45e(0x462)]=null,this['_tryEnsureSocket']();},_0x171890),this['_retryCount']+=0x1;}['_onMessage'](_0x5230d5,_0x3b4945){const _0x50f212=_0x1100bd,{cmd:_0x330b55}=_0x3b4945;_0x330b55===b[_0x50f212(0x432)]&&!this[_0x50f212(0x335)]&&(_0x5230d5[_0x50f212(0x2dc)]=_0x3b4945[_0x50f212(0x47d)][_0x50f212(0x2dc)],this[_0x50f212(0x4b1)][_0x50f212(0x496)](_0x5230d5),this[_0x50f212(0x458)][_0x50f212(0x496)]($[_0x50f212(0x48c)]),this[_0x50f212(0x335)]=!0x0,this[_0x50f212(0x3ce)]=null),_0x330b55===b[_0x50f212(0x396)]&&this[_0x50f212(0x237)](),this[_0x50f212(0x46e)]();}[_0x1100bd(0x46e)](){const _0x5d9211=_0x1100bd;var _0x1b07a3;this[_0x5d9211(0x1cd)](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x5d9211(0x1ad)](),(_0x1b07a3=this[_0x5d9211(0x4c0)][_0x5d9211(0x204)](dt))!=null?_0x1b07a3:qt);}[_0x1100bd(0x1ad)](){const _0x4f430b=_0x1100bd;this[_0x4f430b(0x238)][_0x4f430b(0x59a)]({'cmd':b[_0x4f430b(0x396)]}),this[_0x4f430b(0x21c)]();}[_0x1100bd(0x21c)](){const _0x27f614=_0x1100bd;var _0x1cbc61;this[_0x27f614(0x1b9)]=window['setTimeout'](()=>this[_0x27f614(0x1f9)](),(_0x1cbc61=this[_0x27f614(0x4c0)][_0x27f614(0x204)](Ve))!=null?_0x1cbc61:St);}[_0x1100bd(0x1cd)](){const _0x416576=_0x1100bd;this[_0x416576(0x43c)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x416576(0x43c)]=null);}['_clearTimeoutTimer'](){const _0x5a7a3f=_0x1100bd;this[_0x5a7a3f(0x1b9)]!=null&&(clearTimeout(this[_0x5a7a3f(0x1b9)]),this['_timeoutTimer']=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a[_0x1100bd(0x583)](a['Injector'])),Z(0x1,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),Z(0x2,N[_0x1100bd(0x411)]),Z(0x3,a[_0x1100bd(0x49b)]),Z(0x4,a[_0x1100bd(0x32b)]),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x1100bd(0x4ed)],Is=Object[_0x1100bd(0x444)],ps=(_0x1ee027,_0x2899e8,_0xb51f80,_0x46640f)=>{for(var _0x4f98be=_0x46640f>0x1?void 0x0:_0x46640f?Is(_0x2899e8,_0xb51f80):_0x2899e8,_0x2c5166=_0x1ee027['length']-0x1,_0x4012fc;_0x2c5166>=0x0;_0x2c5166--)(_0x4012fc=_0x1ee027[_0x2c5166])&&(_0x4f98be=(_0x46640f?_0x4012fc(_0x2899e8,_0xb51f80,_0x4f98be):_0x4012fc(_0x4f98be))||_0x4f98be);return _0x46640f&&_0x4f98be&&ms(_0x2899e8,_0xb51f80,_0x4f98be),_0x4f98be;},De=(_0x3f1fad,_0x381e68)=>(_0x2e4a92,_0x77bff7)=>_0x381e68(_0x2e4a92,_0x77bff7,_0x3f1fad);let fe=class{constructor(_0x59242f,_0x1cca8e,_0x36e199){const _0x12f44e=_0x1100bd;this['_injector']=_0x59242f,this['_transformService']=_0x1cca8e,this[_0x12f44e(0x2ca)]=_0x36e199;}[_0x1100bd(0x483)](_0x25a5a6){const _0x528093=_0x1100bd;this[_0x528093(0x234)](_0x25a5a6),this[_0x528093(0x512)](_0x25a5a6);}[_0x1100bd(0x349)](_0x2106bf){const _0x4ccfd2=_0x1100bd,{unitID:_0x2b6512}=_0x2106bf,_0x27c37a=this[_0x4ccfd2(0x2ca)]['getRenderById'](_0x2b6512)[_0x4ccfd2(0x31e)](w[_0x4ccfd2(0x4cb)]),{redoCache:_0xd951d7}=_0x27c37a[_0x4ccfd2(0x493)]();if(_0xd951d7[_0x4ccfd2(0x46d)]===0x0)return _0x2106bf;let _0x438f9b=a[_0x4ccfd2(0x4fb)][_0x4ccfd2(0x427)](_0x2106bf[_0x4ccfd2(0x45c)][0x0]);for(let _0x5d35fa=0x0;_0x5d35fa<_0xd951d7[_0x4ccfd2(0x46d)];_0x5d35fa++){const _0x28106f={'id':_0x4ccfd2(0x2a6),'params':{..._0xd951d7[_0x5d35fa]}},_0x11b6c6=this[_0x4ccfd2(0x1ce)][_0x4ccfd2(0x356)](_0x438f9b,_0x28106f,!0x1);if(_[_0x4ccfd2(0x4c1)](_0x11b6c6))throw _0x11b6c6['error'];_0x438f9b=_0x11b6c6[_0x4ccfd2(0x578)];}return{...a[_0x4ccfd2(0x4fb)]['deepClone'](_0x2106bf),'mutations':[_0x438f9b]};}[_0x1100bd(0x234)](_0x2092d2){const _0xac6a47=_0x1100bd,{unitID:_0x5c2590}=_0x2092d2,_0x488882=this[_0xac6a47(0x2ca)][_0xac6a47(0x233)](_0x5c2590)[_0xac6a47(0x31e)](w[_0xac6a47(0x4cb)]),{undoCache:_0x5a62eb,redoCache:_0x34b7eb}=_0x488882[_0xac6a47(0x493)]();if(_0x5a62eb[_0xac6a47(0x46d)]===0x0||_0x34b7eb[_0xac6a47(0x46d)]===0x0)return;const _0x4eefb4=[],_0x3c5dea=[];let _0x200dea=a[_0xac6a47(0x4fb)]['deepClone'](_0x2092d2[_0xac6a47(0x45c)][0x0]),_0x41b498=a[_0xac6a47(0x4fb)]['deepClone'](_0x2092d2['mutations'][0x0]);for(let _0x100573=_0x5a62eb[_0xac6a47(0x46d)]-0x1;_0x100573>=0x0;_0x100573--){const _0x2de22a={'id':'doc.mutation.rich-text-editing','params':{..._0x5a62eb[_0x100573]}},_0xaecc6a={'id':_0xac6a47(0x2a6),'params':{..._0x34b7eb[_0x100573]}},_0x2762c6=this[_0xac6a47(0x1ce)][_0xac6a47(0x356)](_0x200dea,_0x2de22a,!0x1),_0x39c386=this[_0xac6a47(0x1ce)][_0xac6a47(0x356)](_0x41b498,_0xaecc6a,!0x1);if(_[_0xac6a47(0x4c1)](_0x2762c6))throw _0x2762c6['error'];if(_[_0xac6a47(0x4c1)](_0x39c386))throw _0x39c386[_0xac6a47(0x3d1)];_0x4eefb4[_0xac6a47(0x4fd)](_0x2762c6[_0xac6a47(0x1ca)][_0xac6a47(0x24d)]),_0x3c5dea[_0xac6a47(0x4fd)](_0x39c386[_0xac6a47(0x1ca)][_0xac6a47(0x24d)]),_0x200dea=_0x2762c6['m1Prime'],_0x41b498=_0x39c386[_0xac6a47(0x578)];}_0x488882[_0xac6a47(0x4f3)]({'undoCache':_0x4eefb4,'redoCache':_0x3c5dea});}[_0x1100bd(0x512)](_0x524763){const _0x14d98f=_0x1100bd,{unitID:_0x2bd90e}=_0x524763,_0x22b3ed=this[_0x14d98f(0x2ca)][_0x14d98f(0x233)](_0x2bd90e)[_0x14d98f(0x31e)](w[_0x14d98f(0x4cb)]),_0x4f0aab=_0x22b3ed[_0x14d98f(0x52b)]();if(_0x4f0aab==null)return;const _0x5f2346=[{'id':_0x14d98f(0x2a6),'params':{'unitId':_0x524763[_0x14d98f(0x59b)],'actions':null,'textRanges':[_0x4f0aab]}}],_0x24a455=this[_0x14d98f(0x1ce)][_0x14d98f(0x3c2)](_0x524763,_0x5f2346);if(!_[_0x14d98f(0x5a1)](_0x24a455))throw _0x24a455[_0x14d98f(0x3d1)];const _0x279be4=_0x24a455['m2Prime'][0x0]['params'][_0x14d98f(0x2fa)];Array[_0x14d98f(0x57c)](_0x279be4)&&_0x279be4[_0x14d98f(0x46d)]&&_0x22b3ed[_0x14d98f(0x261)](_0x279be4[0x0]);}};fe=ps([De(0x0,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),De(0x1,_['ITransformService']),De(0x2,R[_0x1100bd(0x56a)])],fe);var Cs=Object[_0x1100bd(0x4ed)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x2503a8,_0x1e3a5e,_0x37edbc,_0x159ea8)=>{const _0x1c4053=_0x1100bd;for(var _0x539f1e=_0x159ea8>0x1?void 0x0:_0x159ea8?Es(_0x1e3a5e,_0x37edbc):_0x1e3a5e,_0x14ee01=_0x2503a8[_0x1c4053(0x46d)]-0x1,_0x57b41d;_0x14ee01>=0x0;_0x14ee01--)(_0x57b41d=_0x2503a8[_0x14ee01])&&(_0x539f1e=(_0x159ea8?_0x57b41d(_0x1e3a5e,_0x37edbc,_0x539f1e):_0x57b41d(_0x539f1e))||_0x539f1e);return _0x159ea8&&_0x539f1e&&Cs(_0x1e3a5e,_0x37edbc,_0x539f1e),_0x539f1e;},ae=(_0x236da7,_0x5b9b07)=>(_0xb066c7,_0x45760d)=>_0x5b9b07(_0xb066c7,_0x45760d,_0x236da7);exports[_0x1100bd(0x209)]=class extends a['Disposable']{constructor(_0x459b0b,_0x4422b1,_0x187eb3,_0x592a42,_0x4b873e){const _0x5bb7a3=_0x1100bd;super(),d(this,'_cachedData',new Map()),d(this,_0x5bb7a3(0x4b6),new Map()),d(this,_0x5bb7a3(0x22d),!0x1),(this[_0x5bb7a3(0x4c0)]=_0x459b0b,this[_0x5bb7a3(0x3b1)]=_0x4422b1,this['_beforeCloseService']=_0x187eb3,this[_0x5bb7a3(0x418)]=_0x592a42,this[_0x5bb7a3(0x3b0)]=_0x4b873e,this[_0x5bb7a3(0x44c)]());}['disableLocalCache'](){const _0x16ad7d=_0x1100bd;this[_0x16ad7d(0x22d)]=!0x0;}['enableLocalCache'](){const _0x57781e=_0x1100bd;this[_0x57781e(0x22d)]=!0x1;}[_0x1100bd(0x3d2)](){const _0x1189f1=_0x1100bd;this[_0x1189f1(0x3fb)]()[_0x1189f1(0x31a)](()=>super[_0x1189f1(0x3d2)]());}async['loadOfflineData'](_0x1e5b49){const _0x7009f1=_0x1100bd;return this['_disabled']?null:this[_0x7009f1(0x3b1)][_0x7009f1(0x27f)](Qe(_0x1e5b49));}async[_0x1100bd(0x2e0)](_0x240bbd,_0x284521){const _0x1c65ed=_0x1100bd;return!!this[_0x1c65ed(0x3b1)]['setItem'](_0x240bbd,_0x284521);}[_0x1100bd(0x282)](_0xe456,_0x57ed38,_0x4e0cdd,_0x23085f){const _0x2a6073=_0x1100bd,_0x302201=this[_0x2a6073(0x3b0)][_0x2a6073(0x4c7)](_0xe456);this[_0x2a6073(0x218)]['set'](_0xe456,{'unitID':_0xe456,'type':_0x57ed38,'awaitingChangeset':_0x4e0cdd,'mutations':_0x23085f,'rev':_0x302201}),this[_0x2a6073(0x4b6)][_0x2a6073(0x5a3)](_0xe456)||this[_0x2a6073(0x520)](_0xe456);}['_scheduleSaving'](_0x174fd1){const _0x3d5971=_0x1100bd,_0x53f030=this[_0x3d5971(0x2f4)]();_0x53f030===0x0?this[_0x3d5971(0x1e5)](_0x174fd1):this[_0x3d5971(0x4b6)][_0x3d5971(0x57e)](_0x174fd1,setTimeout(()=>this['_saveCache'](_0x174fd1),_0x53f030));}['_getSaveTimeout'](){const _0x141378=_0x1100bd;var _0x472ae8;return(_0x472ae8=this[_0x141378(0x4c0)][_0x141378(0x204)](ft))!=null?_0x472ae8:Zt;}[_0x1100bd(0x1e5)](_0x592376){const _0x82dd44=_0x1100bd,_0x2ec9ff=this['_saveTaskMap']['get'](_0x592376);return _0x2ec9ff!==void 0x0&&window['clearTimeout'](_0x2ec9ff),this['_localStorageService'][_0x82dd44(0x1f8)](Qe(_0x592376),this[_0x82dd44(0x218)][_0x82dd44(0x1f4)](_0x592376))[_0x82dd44(0x31a)](()=>this[_0x82dd44(0x4b6)][_0x82dd44(0x5bf)](_0x592376));}async[_0x1100bd(0x3fb)](){const _0xd20c7=_0x1100bd,_0x3526b4=[];this[_0xd20c7(0x4b6)]['forEach']((_0x534763,_0xeda769)=>{const _0x4efe9f=_0xd20c7;window[_0x4efe9f(0x393)](_0x534763),_0x3526b4[_0x4efe9f(0x414)](this[_0x4efe9f(0x1e5)](_0xeda769)[_0x4efe9f(0x31a)](()=>{const _0x4b35a7=_0x4efe9f;this[_0x4b35a7(0x4b6)][_0x4b35a7(0x5bf)](_0xeda769);}));}),await Promise[_0xd20c7(0x213)](_0x3526b4);}['_setupBeforeClosingHandler'](){const _0x53d8ba=_0x1100bd;this[_0x53d8ba(0x40b)](this[_0x53d8ba(0x3bd)][_0x53d8ba(0x50a)](()=>{const _0x334fc1=_0x53d8ba;if(this[_0x334fc1(0x4b6)][_0x334fc1(0x2b7)])return this['_localeService']['t'](_0x334fc1(0x484));}));}},exports[_0x1100bd(0x209)]=bs([ae(0x0,a[_0x1100bd(0x32b)]),ae(0x1,a[_0x1100bd(0x3ed)]),ae(0x2,N[_0x1100bd(0x2e5)]),ae(0x3,a['Inject'](a['LocaleService'])),ae(0x4,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)]))],exports['LocalCacheService']);function Qe(_0x2fbdcd){const _0x179bac=_0x1100bd;return _0x179bac(0x519)+_0x2fbdcd;}var Ts=Object[_0x1100bd(0x4ed)],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x59a0fd,_0x158dba,_0x3b5c98,_0x44350a)=>{const _0x58f964=_0x1100bd;for(var _0x3207df=_0x44350a>0x1?void 0x0:_0x44350a?Rs(_0x158dba,_0x3b5c98):_0x158dba,_0x3e3235=_0x59a0fd[_0x58f964(0x46d)]-0x1,_0x2a6639;_0x3e3235>=0x0;_0x3e3235--)(_0x2a6639=_0x59a0fd[_0x3e3235])&&(_0x3207df=(_0x44350a?_0x2a6639(_0x158dba,_0x3b5c98,_0x3207df):_0x2a6639(_0x3207df))||_0x3207df);return _0x44350a&&_0x3207df&&Ts(_0x158dba,_0x3b5c98,_0x3207df),_0x3207df;},ye=(_0x3a2963,_0xf90ecf)=>(_0x43eb38,_0x537389)=>_0xf90ecf(_0x43eb38,_0x537389,_0x3a2963);function Ds(_0x42c9c1){const _0x17b139=_0x1100bd,{unitID:_0x1950d9,mutations:_0x2a95b2}=_0x42c9c1;return{'unitId':_0x1950d9,'subUnitId':_0x2a95b2[0x0][_0x17b139(0x24d)][_0x17b139(0x1b1)]};}let ge=class{constructor(_0x203894,_0x58e82e,_0x4bf4bf){const _0x54efa1=_0x1100bd;this['_injector']=_0x203894,this[_0x54efa1(0x1ce)]=_0x58e82e,this[_0x54efa1(0x1d7)]=_0x4bf4bf;}[_0x1100bd(0x2ed)](_0x29811a){const _0x40f751=_0x1100bd;var _0x559f90,_0x395825,_0x16eea9,_0x146972;const _0x88ff94=this[_0x40f751(0x1d8)][_0x40f751(0x1f4)](C[_0x40f751(0x52d)]),{unitId:_0x2cc49d,subUnitId:_0x49265}=Ds(_0x29811a),_0x55ec8b=_0x88ff94[_0x40f751(0x3be)](_0x2cc49d)['getCurrentSelections'](),_0x344ec7=(_0x395825=(_0x559f90=this[_0x40f751(0x1d7)][_0x40f751(0x425)](_0x2cc49d))==null?void 0x0:_0x559f90['getActiveSheet']())==null?void 0x0:_0x395825[_0x40f751(0x380)]();if(_0x55ec8b[_0x40f751(0x46d)]===0x0||!_0x2cc49d||!_0x49265)return;const _0x436bd8=[{'id':C[_0x40f751(0x3b7)]['id'],'params':{'unitId':_0x2cc49d,'subUnitId':_0x344ec7,'selections':a[_0x40f751(0x4fb)]['deepClone'](_0x55ec8b)}}],_0x2add93=this[_0x40f751(0x1ce)][_0x40f751(0x3c2)](_0x29811a,_0x436bd8);if(!_[_0x40f751(0x5a1)](_0x2add93))throw _0x2add93['error'];const _0x207c2a=(_0x146972=(_0x16eea9=_0x2add93[_0x40f751(0x1ca)][0x0])==null?void 0x0:_0x16eea9[_0x40f751(0x24d)])==null?void 0x0:_0x146972[_0x40f751(0x1d4)];Array['isArray'](_0x207c2a)&&_0x207c2a[_0x40f751(0x46d)]&&this[_0x40f751(0x1d8)]['get'](a[_0x40f751(0x505)])[_0x40f751(0x2ea)](C[_0x40f751(0x3b7)]['id'],{'unitId':_0x2cc49d,'subUnitId':_0x344ec7,'selections':_0x207c2a});}};ge=Os([ye(0x0,a['Inject'](a[_0x1100bd(0x2a1)])),ye(0x1,_[_0x1100bd(0x38d)]),ye(0x2,a['IUniverInstanceService'])],ge);const be=a[_0x1100bd(0x1be)](_0x1100bd(0x4df));var bt=(_0x2bc7cd=>(_0x2bc7cd[_0x2bc7cd[_0x1100bd(0x207)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2bc7cd[_0x2bc7cd[_0x1100bd(0x59e)]=0x1]=_0x1100bd(0x59e),_0x2bc7cd))(bt||{});const et=0x7530,tt=_0x1100bd(0x57d);class ys extends a[_0x1100bd(0x4e4)]{constructor(){const _0x4545ed=_0x1100bd;super(),d(this,_0x4545ed(0x461),a['Tools'][_0x4545ed(0x552)]()),d(this,_0x4545ed(0x4bd),new Set()),d(this,_0x4545ed(0x339),new Map()),d(this,_0x4545ed(0x3ae),null),d(this,_0x4545ed(0x1f2),new Map()),d(this,_0x4545ed(0x243),new Map()),this['_init']();}['dispose'](){const _0xbf75e5=_0x1100bd;super[_0xbf75e5(0x3d2)](),this[_0xbf75e5(0x1f2)]['forEach']((_0x376bbc,_0x5b7ce2)=>this['_removeClearOtherTimer'](_0x5b7ce2)),this[_0xbf75e5(0x3ae)]&&window[_0xbf75e5(0x2fc)](this[_0xbf75e5(0x3ae)]);}[_0x1100bd(0x4f1)](_0x2d270a){const _0x2b9b22=_0x1100bd;return this['_ensureSubject'](_0x2d270a)['pipe'](v[_0x2b9b22(0x275)]());}['editingUnit'](_0x3d5b38){const _0x31711e=_0x1100bd;this['_selfUnitIDs']['size']===0x0&&this[_0x31711e(0x533)](),this['_selfUnitIDs'][_0x31711e(0x1e0)](_0x3d5b38),this[_0x31711e(0x363)]({'type':0x0,'memberID':this[_0x31711e(0x461)],'unitIDs':[_0x3d5b38],'isForwarded':!0x1});}[_0x1100bd(0x355)](_0x45b7fd){const _0x4f3286=_0x1100bd;this[_0x4f3286(0x4bd)][_0x4f3286(0x5bf)](_0x45b7fd),this[_0x4f3286(0x4bd)][_0x4f3286(0x2b7)]===0x0&&this[_0x4f3286(0x3ae)]&&window[_0x4f3286(0x2fc)](this['_heartbeatTimer']);}[_0x1100bd(0x4a0)](){const _0x5e4a23=_0x1100bd;this[_0x5e4a23(0x40b)](a['toDisposable'](v[_0x5e4a23(0x549)](window,_0x5e4a23(0x53c))[_0x5e4a23(0x1f3)](_0x55e823=>{const _0x126159=_0x5e4a23;if(_0x55e823['key']!==tt||!_0x55e823[_0x126159(0x429)])return;const _0x444cd6=JSON[_0x126159(0x3e3)](_0x55e823[_0x126159(0x429)]);this[_0x126159(0x473)](_0x444cd6);}))),window[_0x5e4a23(0x394)](_0x5e4a23(0x375),()=>this['_send']({'type':0x1,'memberID':this[_0x5e4a23(0x461)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x1f7db9){const _0x1302b6=_0x1100bd;switch(_0x1f7db9['type']){case 0x0:this[_0x1302b6(0x5a2)](_0x1f7db9);break;case 0x1:this['_handleLeaveEvent'](_0x1f7db9);break;case 0x2:this['_handleHeartbeatEvent'](_0x1f7db9);break;}}['_handleJoinEvent'](_0x2487f7){const _0x1e05be=_0x1100bd,{unitIDs:_0x511058,memberID:_0xa9073,isForwarded:_0x129a40}=_0x2487f7;_0x511058[_0x1e05be(0x2be)](_0x5e0bb1=>{const _0xcd6686=_0x1e05be;if(!_0x129a40&&this[_0xcd6686(0x339)]['has'](_0x5e0bb1)&&this['_ensureSubject'](_0x5e0bb1)[_0xcd6686(0x496)](0x1),!this['_unitOnClients'][_0xcd6686(0x5a3)](_0x5e0bb1)||!this[_0xcd6686(0x339)][_0xcd6686(0x1f4)](_0x5e0bb1)[_0xcd6686(0x5a3)](_0xa9073)){const _0x1c4910=this[_0xcd6686(0x339)][_0xcd6686(0x1f4)](_0x5e0bb1)||new Set();_0x1c4910[_0xcd6686(0x1e0)](_0xa9073),this[_0xcd6686(0x339)][_0xcd6686(0x57e)](_0x5e0bb1,_0x1c4910),this[_0xcd6686(0x25a)](_0xa9073);}}),_0x129a40||this[_0x1e05be(0x363)]({'type':0x0,'memberID':this[_0x1e05be(0x461)],'unitIDs':[...this[_0x1e05be(0x4bd)]],'isForwarded':!0x0});}[_0x1100bd(0x25a)](_0x51aae9){const _0x6a2b38=_0x1100bd;this[_0x6a2b38(0x342)](_0x51aae9);const _0x505af9=window[_0x6a2b38(0x4f0)](()=>{const _0x1ce6aa=_0x6a2b38;this[_0x1ce6aa(0x339)][_0x1ce6aa(0x2be)](_0x5b81df=>{const _0xe5cc55=_0x1ce6aa;_0x5b81df[_0xe5cc55(0x5bf)](_0x51aae9);});},et*0x2);this[_0x6a2b38(0x1f2)][_0x6a2b38(0x57e)](_0x51aae9,_0x505af9);}[_0x1100bd(0x342)](_0x297d5f){const _0x45d4c0=_0x1100bd;if(this[_0x45d4c0(0x1f2)]['has'](_0x297d5f)){const _0x193e95=this[_0x45d4c0(0x1f2)][_0x45d4c0(0x1f4)](_0x297d5f);_0x193e95&&window[_0x45d4c0(0x393)](_0x193e95),this[_0x45d4c0(0x1f2)][_0x45d4c0(0x57e)](_0x297d5f,null);}}[_0x1100bd(0x5ce)](_0x462135){const _0x5b3cdf=_0x1100bd,{memberID:_0x5a8e60,unitIDs:_0x5dcac2}=_0x462135;_0x5dcac2['forEach'](_0x4c8271=>{const _0x478ea0=_0x75d2;var _0x268a55;const _0x356880=this['_unitOnClients'][_0x478ea0(0x1f4)](_0x4c8271);_0x356880&&(_0x356880[_0x478ea0(0x5bf)](_0x5a8e60),(_0x268a55=this[_0x478ea0(0x321)](_0x4c8271))==null||_0x268a55[_0x478ea0(0x496)](_0x356880[_0x478ea0(0x2b7)]===0x0?0x0:0x1));}),this[_0x5b3cdf(0x342)](_0x5a8e60);}[_0x1100bd(0x2eb)](_0x5ccc61){const _0x349352=_0x1100bd;this[_0x349352(0x25a)](_0x5ccc61[_0x349352(0x2dc)]);}[_0x1100bd(0x363)](_0x35e023){const _0x50602c=_0x1100bd;localStorage[_0x50602c(0x1f8)](tt,JSON[_0x50602c(0x203)](_0x35e023));}[_0x1100bd(0x533)](){const _0x596e32=_0x1100bd;this['_heartbeatTimer']=window[_0x596e32(0x301)](()=>{const _0x1565f1=_0x596e32;this['_send']({'type':0x2,'memberID':this[_0x1565f1(0x461)]});},et);}[_0x1100bd(0x321)](_0x1b627b){const _0x9f30b2=_0x1100bd;return this[_0x9f30b2(0x243)][_0x9f30b2(0x5a3)](_0x1b627b)||this[_0x9f30b2(0x243)]['set'](_0x1b627b,new v[(_0x9f30b2(0x240))](0x0)),this[_0x9f30b2(0x243)]['get'](_0x1b627b);}}function Tt(_0x344b19){const _0x5bd77d=_0x1100bd;let _0xff4c50='';for(const _0x291ed5 of _0x344b19){const {startOffset:_0x1cb9eb,endOffset:_0x2332b9,isActive:_0x4b3054}=_0x291ed5;_0xff4c50[_0x5bd77d(0x46d)]&&(_0xff4c50+=','),_0xff4c50+=_0x1cb9eb+':'+_0x2332b9+':'+(_0x4b3054?'1':'0');}return _0xff4c50;}function Us(_0x1eb823){const _0x4f7355=_0x1100bd,_0x1d3d1a=_0x1eb823[_0x4f7355(0x3bc)](','),_0xdeb8e9=[];for(const _0x2e4f4d of _0x1d3d1a){const [_0x34ca40,_0x3736ee,_0x21a643]=_0x2e4f4d[_0x4f7355(0x3bc)](':');_0xdeb8e9[_0x4f7355(0x414)]({'startOffset':Number(_0x34ca40),'endOffset':Number(_0x3736ee),'collapsed':_0x34ca40===_0x3736ee,'isActive':_0x21a643==='1'});}return _0xdeb8e9[_0x4f7355(0x23c)](_0x5ee066=>_0x5ee066[_0x4f7355(0x348)])||(_0xdeb8e9[0x0]['isActive']=!0x0),_0xdeb8e9;}class Ye extends a[_0x1100bd(0x1c7)]{constructor(){const _0x20b920=_0x1100bd;super(...arguments),d(this,'_collabCursorState$',new v[(_0x20b920(0x240))](null)),d(this,'collabCursorState$',this[_0x20b920(0x36f)][_0x20b920(0x4c2)]());}['syncEditingCollabCursor'](_0x110503){const _0x51a18f=_0x1100bd,{unitID:_0x5ade00,memberID:_0x362357,textRanges:_0x3bf6cf}=_0x110503,_0x82f5e2=Tt(_0x3bf6cf),_0x3d99aa={'unitID':_0x5ade00,'memberID':_0x362357,'selection':_0x82f5e2};this['_collabCursorState$'][_0x51a18f(0x496)](_0x3d99aa);}}var Ps=Object[_0x1100bd(0x4ed)],ws=Object[_0x1100bd(0x444)],Ms=(_0x47b3f6,_0x48018f,_0x431f10,_0x56c94b)=>{const _0x4b3ec7=_0x1100bd;for(var _0x571bf0=_0x56c94b>0x1?void 0x0:_0x56c94b?ws(_0x48018f,_0x431f10):_0x48018f,_0x41ad93=_0x47b3f6[_0x4b3ec7(0x46d)]-0x1,_0x2043b7;_0x41ad93>=0x0;_0x41ad93--)(_0x2043b7=_0x47b3f6[_0x41ad93])&&(_0x571bf0=(_0x56c94b?_0x2043b7(_0x48018f,_0x431f10,_0x571bf0):_0x2043b7(_0x571bf0))||_0x571bf0);return _0x56c94b&&_0x571bf0&&Ps(_0x48018f,_0x431f10,_0x571bf0),_0x571bf0;},st=(_0x12fea0,_0x18a692)=>(_0x33fa43,_0x3adf94)=>_0x18a692(_0x33fa43,_0x3adf94,_0x12fea0);let me=class{constructor(_0x4bfa18,_0x2fa056){const _0x57c81c=_0x1100bd;this[_0x57c81c(0x1d8)]=_0x4bfa18,this[_0x57c81c(0x1ce)]=_0x2fa056;}[_0x1100bd(0x2ed)](_0x2a5f8e){const _0x1d88c9=_0x1100bd;var _0x2c7957;const _0x381c79=this[_0x1d88c9(0x1d8)][_0x1d88c9(0x1f4)](V[_0x1d88c9(0x377)]),_0x527049=(_0x2c7957=_0x381c79[_0x1d88c9(0x326)]())!=null?_0x2c7957:[];if(_0x527049[_0x1d88c9(0x46d)]===0x0)return;const _0x4df281=[{'id':_0x1d88c9(0x2a6),'params':{'unitId':_0x2a5f8e[_0x1d88c9(0x59b)],'actions':null,'textRanges':_0x527049}}],_0x435595=this[_0x1d88c9(0x1ce)]['transformMutationsWithChangeset'](_0x2a5f8e,_0x4df281);if(!_[_0x1d88c9(0x5a1)](_0x435595))throw _0x435595[_0x1d88c9(0x3d1)];const _0x26ebac=_0x435595['m2Prime'][0x0][_0x1d88c9(0x24d)][_0x1d88c9(0x2fa)];Array['isArray'](_0x26ebac)&&_0x26ebac['length']&&_0x381c79[_0x1d88c9(0x30f)](_0x26ebac,!0x1);}};me=Ms([st(0x0,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),st(0x1,_[_0x1100bd(0x38d)])],me);const Ns=new Set([C['InsertSheetMutation']['id']]);function it(_0x4c9219,_0x1bb58f,_0x207a2f,_0x44279b,_0x4e27d3){const _0x43dc2e=_0x1100bd;var _0x253ea6,_0x2352ed,_0x3c20bd,_0x15155c;const _0x5edf4a=[];for(const _0x648b3a of _0x4c9219)if(Ns[_0x43dc2e(0x5a3)](_0x648b3a['id'])){if(_0x5edf4a[_0x43dc2e(0x46d)]>0x0)break;_0x5edf4a[_0x43dc2e(0x414)](_0x648b3a);break;}else _0x5edf4a[_0x43dc2e(0x414)](_0x648b3a);const _0x3f081a=(_0x2352ed=(_0x253ea6=_0x4e27d3[_0x43dc2e(0x1b2)]())==null?void 0x0:_0x253ea6[_0x43dc2e(0x20c)])!=null?_0x2352ed:_0x43dc2e(0x3fe),_0x4c8b5b=(_0x15155c=(_0x3c20bd=_0x4e27d3[_0x43dc2e(0x1b2)]())==null?void 0x0:_0x3c20bd[_0x43dc2e(0x2dc)])!=null?_0x15155c:_0x43dc2e(0x3fe);return{'changeset':{'unitID':_0x1bb58f,'type':_[_0x43dc2e(0x5c0)](_0x207a2f[_0x43dc2e(0x413)](_0x1bb58f)),'baseRev':_0x44279b[_0x43dc2e(0x4c7)](_0x1bb58f),'revision':0x0,'userID':_0x3f081a,'memberID':_0x4c8b5b,'mutations':_0x5edf4a},'pendingMutations':_0x4c9219[_0x43dc2e(0x351)](_0x5edf4a[_0x43dc2e(0x46d)])};}function As(_0x5002de,_0x2f1d3c,_0x3893b0,_0x383c19,_0x5a73f1){const _0x535c60=_0x1100bd;var _0xeb4f07,_0x1d7dbe,_0x5359c7,_0x160248;const _0x50119b=[_0x5002de[_0x535c60(0x4e8)]((_0x42eaab,_0x3535b1)=>{const _0x2d3f90=_0x535c60;var _0x3b5ee9;const {id:_0x5443ea}=_0x42eaab,{id:_0x59fb18,type:_0x36c4d9}=_0x3535b1,_0x230387=(_0x3b5ee9=_0x42eaab[_0x2d3f90(0x24d)])!=null?_0x3b5ee9:{'actions':null},_0x26d1fa=_0x3535b1[_0x2d3f90(0x24d)];if(_0x5443ea&&_0x5443ea!==_0x59fb18)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5443ea+_0x2d3f90(0x452)+_0x59fb18+'.');return{..._0x42eaab,'id':_0x59fb18,'type':_0x36c4d9,'params':{'unitId':_0x26d1fa[_0x2d3f90(0x1d1)],'textRanges':_0x26d1fa[_0x2d3f90(0x2fa)],'actions':a[_0x2d3f90(0x292)][_0x2d3f90(0x56d)](_0x230387[_0x2d3f90(0x1c8)],_0x26d1fa['actions'])}};},{})],_0x2ecfc5=(_0x1d7dbe=(_0xeb4f07=_0x5a73f1[_0x535c60(0x1b2)]())==null?void 0x0:_0xeb4f07[_0x535c60(0x20c)])!=null?_0x1d7dbe:_0x535c60(0x3fe),_0x75926a=(_0x160248=(_0x5359c7=_0x5a73f1[_0x535c60(0x1b2)]())==null?void 0x0:_0x5359c7[_0x535c60(0x2dc)])!=null?_0x160248:'unknown';return{'changeset':{'unitID':_0x2f1d3c,'type':_[_0x535c60(0x5c0)](_0x3893b0[_0x535c60(0x413)](_0x2f1d3c)),'baseRev':_0x383c19[_0x535c60(0x4c7)](_0x2f1d3c),'revision':0x0,'userID':_0x2ecfc5,'memberID':_0x75926a,'mutations':_0x50119b},'pendingMutations':[]};}const Ls={'id':C['EmptyMutation']['id'],'type':a[_0x1100bd(0x27b)][_0x1100bd(0x3d8)],'params':{}};var js=Object[_0x1100bd(0x4ed)],$s=Object[_0x1100bd(0x444)],z=(_0x45fe03,_0x2bcdd4,_0x3f457e,_0x35d1f8)=>{const _0x52a4d7=_0x1100bd;for(var _0x3d09cf=_0x35d1f8>0x1?void 0x0:_0x35d1f8?$s(_0x2bcdd4,_0x3f457e):_0x2bcdd4,_0x1a48fb=_0x45fe03[_0x52a4d7(0x46d)]-0x1,_0x270888;_0x1a48fb>=0x0;_0x1a48fb--)(_0x270888=_0x45fe03[_0x1a48fb])&&(_0x3d09cf=(_0x35d1f8?_0x270888(_0x2bcdd4,_0x3f457e,_0x3d09cf):_0x270888(_0x3d09cf))||_0x3d09cf);return _0x35d1f8&&_0x3d09cf&&js(_0x2bcdd4,_0x3f457e,_0x3d09cf),_0x3d09cf;},g=(_0xc922c,_0x5b6b4f)=>(_0x39a22f,_0x3ebbfe)=>_0x5b6b4f(_0x39a22f,_0x3ebbfe,_0xc922c),y=(_0x1c57bf=>(_0x1c57bf[_0x1100bd(0x2a7)]=_0x1100bd(0x35c),_0x1c57bf[_0x1100bd(0x3f8)]=_0x1100bd(0x216),_0x1c57bf[_0x1100bd(0x264)]=_0x1100bd(0x518),_0x1c57bf[_0x1100bd(0x5bc)]=_0x1100bd(0x2ad),_0x1c57bf['AWAITING_WITH_PENDING']=_0x1100bd(0x5cb),_0x1c57bf[_0x1100bd(0x21b)]='fetch_missing',_0x1c57bf[_0x1100bd(0x25d)]=_0x1100bd(0x5c2),_0x1c57bf[_0x1100bd(0x4ad)]='offline',_0x1c57bf))(y||{});class J{constructor(_0x35af89,_0x38227b,_0x486c04,_0x3dda4e,_0x1bf7f0,_0x4c7093,_0xaafc26,_0x5be491,_0x4bb8b1){const _0x97aa6c=_0x1100bd;d(this,'_awaitingChangeset',null),d(this,_0x97aa6c(0x456),[]),(this[_0x97aa6c(0x59b)]=_0x35af89,this[_0x97aa6c(0x525)]=_0x38227b,this[_0x97aa6c(0x4cd)]=_0x1bf7f0,this[_0x97aa6c(0x53a)]=_0x4c7093,this[_0x97aa6c(0x1b0)]=_0xaafc26,this['_revisionService']=_0x5be491,this[_0x97aa6c(0x45f)]=_0x4bb8b1,this['_awaitingChangeset']=_0x486c04,this[_0x97aa6c(0x456)]=_0x3dda4e);}['_checkMissing'](_0x548adf){const _0x1c22f8=_0x1100bd,_0x33fd01=this[_0x1c22f8(0x3b0)][_0x1c22f8(0x4c7)](this[_0x1c22f8(0x59b)]);return _0x548adf[_0x1c22f8(0x436)]>_0x33fd01+0x1?(this[_0x1c22f8(0x4cd)][_0x1c22f8(0x1df)]({'from':_0x33fd01,'to':_0x548adf[_0x1c22f8(0x436)]-0x1}),!0x0):!0x1;}[_0x1100bd(0x256)](_0xc815da){const _0x2a2c17=_0x1100bd;this['_undoRedoService'][_0x2a2c17(0x4ae)](this[_0x2a2c17(0x59b)],_0xc815da);}[_0x1100bd(0x42b)](_0x4666d3){const _0x1bdb98=_0x1100bd;var _0x2af8e2,_0x25d9d1;(_0x25d9d1=(_0x2af8e2=this[_0x1bdb98(0x4cd)])['onTransformSelections'])==null||_0x25d9d1['call'](_0x2af8e2,_0x4666d3);}['_transformIMECache'](_0x44a17c){const _0x511ce=_0x1100bd;var _0x462e5a,_0x4bcace;return(_0x4bcace=(_0x462e5a=this[_0x511ce(0x4cd)])[_0x511ce(0x3a1)])==null?void 0x0:_0x4bcace['call'](_0x462e5a,_0x44a17c);}['_transformRemoteChangesetByIMECache'](_0x4ca8c0){const _0x1a7d4c=_0x1100bd;var _0x2539f2,_0x89d9bc,_0x2c76ee;return(_0x2c76ee=(_0x89d9bc=(_0x2539f2=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x89d9bc[_0x1a7d4c(0x28c)](_0x2539f2,_0x4ca8c0))!=null?_0x2c76ee:_0x4ca8c0;}['_syncEditingCollabCursor'](_0x3ec290){const _0x49e9e9=_0x1100bd;var _0x54f65a,_0x2f111a;if(this[_0x49e9e9(0x525)]===j[_0x49e9e9(0x22b)]){const {unitID:_0x175bb7,mutations:_0x2a41b8,memberID:_0x25b8b3}=_0x3ec290,_0x5f22d4=_0x2a41b8[0x0][_0x49e9e9(0x24d)]['textRanges'];Array[_0x49e9e9(0x57c)](_0x5f22d4)&&_0x5f22d4[_0x49e9e9(0x46d)]>0x0&&((_0x2f111a=(_0x54f65a=this['_handler'])[_0x49e9e9(0x3bb)])==null||_0x2f111a['call'](_0x54f65a,{'unitID':_0x175bb7,'memberID':_0x25b8b3,'textRanges':_0x5f22d4}));}}['_updateLocalCache'](){const _0x228cb2=_0x1100bd;this[_0x228cb2(0x45f)][_0x228cb2(0x282)](this[_0x228cb2(0x59b)],this[_0x228cb2(0x525)],this['_awaitingChangeset'],this[_0x228cb2(0x456)]);}[_0x1100bd(0x5a8)](){return this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);}[_0x1100bd(0x1e1)](){const _0x56dbe0=_0x1100bd;this[_0x56dbe0(0x3b0)][_0x56dbe0(0x4ea)](this[_0x56dbe0(0x59b)]);}[_0x1100bd(0x54e)](_0x531d2d){const _0x5513f0=_0x1100bd;var _0x2d5334;const _0x15d167=this[_0x5513f0(0x2ef)](_0x531d2d),_0x326725=a[_0x5513f0(0x53f)](_0x15d167[_0x5513f0(0x45c)],this[_0x5513f0(0x53a)],{'fromCollab':!0x0});if(!_0x326725[_0x5513f0(0x343)])throw _0x326725[_0x5513f0(0x3d1)]instanceof Error?_0x326725['error']:new Error((_0x2d5334=_0x326725[_0x5513f0(0x3d1)])!=null?_0x2d5334:_0x5513f0(0x44d));this[_0x5513f0(0x538)](_0x15d167),this[_0x5513f0(0x256)](_0x531d2d),this['_transformSelections'](_0x15d167),this[_0x5513f0(0x33f)](_0x15d167),this[_0x5513f0(0x1e1)]();}}let se=class extends J{constructor(_0x580155,_0x24ea75,_0x573d1f,_0x365754,_0x381e23,_0x5670d1,_0x2552ab,_0x4ff580,_0x369cd7,_0x4f0724){const _0x4ec8f4=_0x1100bd;super(_0x580155,_0x24ea75,null,[],_0x573d1f,_0x4ff580,_0x2552ab,_0x365754,_0x381e23),d(this,_0x4ec8f4(0x442),_0x4ec8f4(0x216)),(this[_0x4ec8f4(0x1d8)]=_0x5670d1,this[_0x4ec8f4(0x340)]=_0x369cd7,this[_0x4ec8f4(0x1ce)]=_0x4f0724);}[_0x1100bd(0x398)](_0x2ac095){const _0x337b1a=_0x1100bd,_0x529f53=this[_0x337b1a(0x1d8)][_0x337b1a(0x317)](x,this['unitID'],this[_0x337b1a(0x525)],[_0x2ac095],this[_0x337b1a(0x4cd)]);return _0x529f53[_0x337b1a(0x404)](),_0x529f53[_0x337b1a(0x42f)](),_0x529f53;}['onRemoteChangeset'](_0x280210){const _0x478e25=_0x1100bd;if(this[_0x478e25(0x241)](_0x280210))return this[_0x478e25(0x1d8)][_0x478e25(0x317)](H,this[_0x478e25(0x59b)],this['type'],null,[],null,[_0x280210],this[_0x478e25(0x4cd)]);try{const _0xe71a1a=this['_transformService']['transformMutationsWithChangeset'](_0x280210,[Ls]);if(_[_0x478e25(0x5a1)](_0xe71a1a)){const {c1Prime:_0x23ccd1}=_0xe71a1a;return this['_executeRemoteChangeset'](_0x23ccd1),this;}throw _0xe71a1a['error'];}catch(_0x462ad7){return this[_0x478e25(0x340)]['error'](_0x462ad7),this[_0x478e25(0x36c)](!0x1);}}['_onConflict'](_0x29ffdf){const _0x3c5b27=_0x1100bd;return this['_injector'][_0x3c5b27(0x317)](F,this[_0x3c5b27(0x59b)],this[_0x3c5b27(0x525)],null,[],this[_0x3c5b27(0x4cd)],_0x29ffdf);}[_0x1100bd(0x254)](){const _0x39ba34=_0x1100bd;throw new Error(_0x39ba34(0x564));}['onRemoteRej'](){const _0x2db201=_0x1100bd;throw new Error(_0x2db201(0x1ff));}[_0x1100bd(0x319)](){const _0x1ae12d=_0x1100bd;return this[_0x1ae12d(0x1d8)][_0x1ae12d(0x317)](G,this[_0x1ae12d(0x59b)],this[_0x1ae12d(0x525)],null,[],this[_0x1ae12d(0x4cd)]);}[_0x1100bd(0x3aa)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1100bd(0x26c)](){const _0x21c3b2=_0x1100bd,_0x3a3c82=this['_revisionService'][_0x21c3b2(0x4c7)](this[_0x21c3b2(0x59b)]);return this[_0x21c3b2(0x4cd)]['onMissingChangesets']({'from':_0x3a3c82,'to':0x0}),this[_0x21c3b2(0x1d8)][_0x21c3b2(0x317)](H,this['unitID'],this['type'],null,[],null,[],this[_0x21c3b2(0x4cd)]);}};se=z([g(0x3,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x4,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x5,a['Inject'](a[_0x1100bd(0x2a1)])),g(0x6,a[_0x1100bd(0x563)]),g(0x7,a[_0x1100bd(0x505)]),g(0x8,a['ILogService']),g(0x9,_[_0x1100bd(0x38d)])],se);let x=class extends J{constructor(_0x3b25fb,_0x391ca0,_0x548978,_0x552b65,_0x3d54b8,_0x41470a,_0x5d139c,_0x2dc855,_0x21e37f,_0x399983,_0x10c06f,_0x3da03f,_0x26c05f,_0x2dc2f5){const _0x257ad2=_0x1100bd;super(_0x3b25fb,_0x391ca0,null,_0x548978,_0x552b65,_0x399983,_0x2dc2f5,_0x41470a,_0x5d139c),d(this,_0x257ad2(0x442),_0x257ad2(0x518)),d(this,_0x257ad2(0x3ff),null),d(this,_0x257ad2(0x289),null),(this[_0x257ad2(0x1d8)]=_0x3d54b8,this[_0x257ad2(0x1e4)]=_0x2dc855,this[_0x257ad2(0x340)]=_0x21e37f,this[_0x257ad2(0x4c0)]=_0x10c06f,this[_0x257ad2(0x1ce)]=_0x3da03f,this[_0x257ad2(0x56b)]=_0x26c05f);}[_0x1100bd(0x398)](_0x4e5608){const _0x989bd9=_0x1100bd;return this['_pendingMutations'][_0x989bd9(0x414)](_0x4e5608),this[_0x989bd9(0x42f)](),this;}[_0x1100bd(0x230)](_0x4a2fb4){const _0x256b3d=_0x1100bd;if(this[_0x256b3d(0x241)](_0x4a2fb4))return this[_0x256b3d(0x534)](),this['_injector'][_0x256b3d(0x317)](H,this[_0x256b3d(0x59b)],this[_0x256b3d(0x525)],null,this[_0x256b3d(0x456)],null,[_0x4a2fb4],this[_0x256b3d(0x4cd)]);try{const _0x5a3e95=this[_0x256b3d(0x1ce)][_0x256b3d(0x3c2)](_0x4a2fb4,this[_0x256b3d(0x456)]);if(_[_0x256b3d(0x5a1)](_0x5a3e95)){const {c1Prime:_0x1aa137,m2Prime:_0x52648b}=_0x5a3e95;this[_0x256b3d(0x54e)](_0x1aa137);const _0x457499=this[_0x256b3d(0x1d8)][_0x256b3d(0x317)](x,this[_0x256b3d(0x59b)],this[_0x256b3d(0x525)],_0x52648b,this['_handler']);return this['_clearScheduledTask'](),_0x457499[_0x256b3d(0x404)](this['_scheduleTimestamp']?Math[_0x256b3d(0x212)](0x0,new Date()['getTime']()-this[_0x256b3d(0x3ff)]):this[_0x256b3d(0x211)]()),_0x457499;}throw _0x5a3e95[_0x256b3d(0x3d1)];}catch(_0x46fa5b){return this['_logService'][_0x256b3d(0x3d1)](_0x46fa5b),this[_0x256b3d(0x36c)](!0x1);}}[_0x1100bd(0x254)](){const _0x17499a=_0x1100bd;throw new Error(_0x17499a(0x1c1));}[_0x1100bd(0x4e0)](){const _0x4a839d=_0x1100bd;throw new Error(_0x4a839d(0x3e9));}[_0x1100bd(0x319)](){const _0x5a7200=_0x1100bd;return this['_clearScheduledTask'](),this['_injector'][_0x5a7200(0x317)](G,this[_0x5a7200(0x59b)],this[_0x5a7200(0x525)],null,this[_0x5a7200(0x456)],this[_0x5a7200(0x4cd)]);}['toggleOnline'](){return this;}[_0x1100bd(0x404)](_0x2e3b6e){const _0x2b1110=_0x1100bd,_0x2e6ca5=_0x2e3b6e!=null?_0x2e3b6e:this[_0x2b1110(0x211)]();this[_0x2b1110(0x3ff)]=new Date()[_0x2b1110(0x5b4)](),this['_sendingTimer']=window[_0x2b1110(0x4f0)](()=>{const _0x3d6ca0=_0x2b1110;this[_0x3d6ca0(0x534)]();let _0x165ed7=null;switch(this[_0x3d6ca0(0x525)]){case j[_0x3d6ca0(0x293)]:{_0x165ed7=it(this[_0x3d6ca0(0x456)],this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x56b)],this['_revisionService'],this['_memberService']);break;}case j['UNIVER_DOC']:{this[_0x3d6ca0(0x456)][_0x3d6ca0(0x3e7)](_0x27675e=>_0x27675e['id']===V['RichTextEditingMutation']['id'])?_0x165ed7=As(this[_0x3d6ca0(0x456)],this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x56b)],this[_0x3d6ca0(0x3b0)],this['_memberService']):_0x165ed7=it(this[_0x3d6ca0(0x456)],this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x56b)],this[_0x3d6ca0(0x3b0)],this['_memberService']);break;}default:throw new Error(_0x3d6ca0(0x4f2)+this[_0x3d6ca0(0x525)]+_0x3d6ca0(0x35a));}const {changeset:_0x561ac7,pendingMutations:_0x56dc63}=_0x165ed7;this[_0x3d6ca0(0x4cd)]['onSendChangeset'](_0x561ac7);const _0x32fb71=_0x56dc63[_0x3d6ca0(0x46d)]?this[_0x3d6ca0(0x1d8)][_0x3d6ca0(0x317)](k,this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x525)],_0x561ac7,_0x56dc63,this['_handler']):this[_0x3d6ca0(0x1d8)]['createInstance'](W,this[_0x3d6ca0(0x59b)],this[_0x3d6ca0(0x525)],_0x561ac7,this['_handler']);_0x32fb71[_0x3d6ca0(0x42f)](),this[_0x3d6ca0(0x4cd)][_0x3d6ca0(0x4f8)](this,_0x32fb71);},_0x2e6ca5);}['_getSendChangesetTimeout'](){const _0x207d75=_0x1100bd;var _0x1f9a0b;const _0x253910=this[_0x207d75(0x4c0)][_0x207d75(0x204)](A);return(_0x1f9a0b=_0x253910==null?void 0x0:_0x253910[_0x207d75(0x3f5)])!=null?_0x1f9a0b:Kt;}[_0x1100bd(0x3ec)](){const _0x4347ae=_0x1100bd;throw new Error(_0x4347ae(0x2d9));}[_0x1100bd(0x534)](){const _0x3ed470=_0x1100bd;this[_0x3ed470(0x289)]!=null&&(clearTimeout(this[_0x3ed470(0x289)]),this['_sendingTimer']=null);}[_0x1100bd(0x36c)](_0x4ae390){const _0x514e2d=_0x1100bd;return this[_0x514e2d(0x534)](),this[_0x514e2d(0x1d8)][_0x514e2d(0x317)](F,this[_0x514e2d(0x59b)],this[_0x514e2d(0x525)],null,this['_pendingMutations'],this[_0x514e2d(0x4cd)],_0x4ae390);}};x=z([g(0x4,a[_0x1100bd(0x583)](a['Injector'])),g(0x5,a[_0x1100bd(0x583)](_['RevisionService'])),g(0x6,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x7,a[_0x1100bd(0x583)](q)),g(0x8,a[_0x1100bd(0x49b)]),g(0x9,a[_0x1100bd(0x505)]),g(0xa,a[_0x1100bd(0x32b)]),g(0xb,_[_0x1100bd(0x38d)]),g(0xc,a[_0x1100bd(0x472)]),g(0xd,a[_0x1100bd(0x563)])],x);let W=class extends J{constructor(_0x22e37a,_0x176dce,_0x1ff0ed,_0x466ab9,_0x5c4079,_0x539708,_0x53c0e2,_0x4f6147,_0x28df2e,_0x285670,_0x8824c8){const _0x2b48bb=_0x1100bd;super(_0x22e37a,_0x176dce,_0x1ff0ed,[],_0x466ab9,_0x4f6147,_0x8824c8,_0x539708,_0x53c0e2),d(this,_0x2b48bb(0x442),_0x2b48bb(0x2ad)),(this[_0x2b48bb(0x1d8)]=_0x5c4079,this[_0x2b48bb(0x340)]=_0x28df2e,this[_0x2b48bb(0x1ce)]=_0x285670);}[_0x1100bd(0x398)](_0x24ba6a){const _0x3fa22f=_0x1100bd,_0x13be2e=this[_0x3fa22f(0x1d8)][_0x3fa22f(0x317)](k,this[_0x3fa22f(0x59b)],this[_0x3fa22f(0x525)],this[_0x3fa22f(0x49c)],[_0x24ba6a],this[_0x3fa22f(0x4cd)]);return _0x13be2e[_0x3fa22f(0x42f)](),_0x13be2e;}[_0x1100bd(0x230)](_0x1af849){const _0x5c0b95=_0x1100bd;if(this[_0x5c0b95(0x241)](_0x1af849))return this[_0x5c0b95(0x1d8)][_0x5c0b95(0x317)](H,this[_0x5c0b95(0x59b)],this['type'],this[_0x5c0b95(0x49c)],[],null,[_0x1af849],this[_0x5c0b95(0x4cd)]);try{const _0x30be74=this[_0x5c0b95(0x1ce)][_0x5c0b95(0x40c)]([_0x1af849],[this[_0x5c0b95(0x49c)]],!0x1);if(_[_0x5c0b95(0x589)](_0x30be74)){const {c1Prime:_0x3ef603,c2Prime:_0x18e4c0}=_0x30be74;this[_0x5c0b95(0x54e)](_0x3ef603[0x0]),_0x18e4c0[0x0]['baseRev']=this['_getCurrentRevision']();const _0x240cda=this[_0x5c0b95(0x1d8)][_0x5c0b95(0x317)](W,this[_0x5c0b95(0x59b)],this[_0x5c0b95(0x525)],_0x18e4c0[0x0],this[_0x5c0b95(0x4cd)]);return _0x240cda[_0x5c0b95(0x42f)](),_0x240cda;}return this[_0x5c0b95(0x36c)](!0x1);}catch(_0x4e3c3c){return this[_0x5c0b95(0x340)]['error'](_0x4e3c3c),this[_0x5c0b95(0x36c)](!0x1);}}[_0x1100bd(0x254)](_0x3e4416){const _0x102375=_0x1100bd,_0xaf85bf=this[_0x102375(0x3b0)]['getCurrentRevOfUnit'](this['unitID']);if(_0x3e4416[_0x102375(0x436)]<_0xaf85bf-0x1)return this;if(this[_0x102375(0x241)](_0x3e4416))return this['_injector'][_0x102375(0x317)](H,this[_0x102375(0x59b)],this['type'],null,[],this[_0x102375(0x49c)],[],this[_0x102375(0x4cd)]);this[_0x102375(0x1e1)]();const _0x426b93=this[_0x102375(0x1d8)][_0x102375(0x317)](se,this[_0x102375(0x59b)],this['type'],this[_0x102375(0x4cd)]);return _0x426b93[_0x102375(0x42f)](),_0x426b93;}[_0x1100bd(0x4e0)](_0x33bfed){const _0x32437a=_0x1100bd;return this[_0x32437a(0x36c)](!!(_0x33bfed!=null&&_0x33bfed[_0x32437a(0x29c)]));}[_0x1100bd(0x319)](){const _0x250911=_0x1100bd;return this[_0x250911(0x1d8)][_0x250911(0x317)](G,this[_0x250911(0x59b)],this[_0x250911(0x525)],this[_0x250911(0x49c)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x1100bd(0x3ec)](){const _0x169442=_0x1100bd;this[_0x169442(0x4cd)]['onSendChangeset'](this[_0x169442(0x49c)]);}['_onConflict'](_0x395000){const _0x4ca44e=_0x1100bd;return this[_0x4ca44e(0x1d8)][_0x4ca44e(0x317)](F,this['unitID'],this[_0x4ca44e(0x525)],this[_0x4ca44e(0x49c)],[],this['_handler'],_0x395000);}};W=z([g(0x4,a[_0x1100bd(0x583)](a['Injector'])),g(0x5,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x6,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x7,a[_0x1100bd(0x505)]),g(0x8,a['ILogService']),g(0x9,_[_0x1100bd(0x38d)]),g(0xa,a['IUndoRedoService'])],W);let k=class extends J{constructor(_0x354ddc,_0x7f8d97,_0x176ced,_0x5d2c3d,_0x11c04c,_0x1db3fd,_0x4777fb,_0x8ae74b,_0x40adc7,_0x5eda74,_0x34b9d9,_0xaa77c9){const _0x31625d=_0x1100bd;super(_0x354ddc,_0x7f8d97,_0x176ced,_0x5d2c3d,_0x11c04c,_0x40adc7,_0xaa77c9,_0x4777fb,_0x8ae74b),d(this,_0x31625d(0x442),_0x31625d(0x5cb)),(this[_0x31625d(0x1d8)]=_0x1db3fd,this[_0x31625d(0x340)]=_0x5eda74,this['_transformService']=_0x34b9d9);}[_0x1100bd(0x398)](_0x560d7f){const _0x1c86ad=_0x1100bd;return this[_0x1c86ad(0x456)]['push'](_0x560d7f),this;}[_0x1100bd(0x230)](_0x41b32a){const _0x2d8673=_0x1100bd;if(this[_0x2d8673(0x241)](_0x41b32a))return this['_injector']['createInstance'](H,this['unitID'],this[_0x2d8673(0x525)],this[_0x2d8673(0x49c)],this['_pendingMutations'],null,[_0x41b32a],this[_0x2d8673(0x4cd)]);try{const _0xdba054=this[_0x2d8673(0x1ce)]['transformChangesets']([_0x41b32a],[this[_0x2d8673(0x49c)]],!0x1);if(_[_0x2d8673(0x589)](_0xdba054)){const {c1Prime:_0x7cae4b,c2Prime:_0x41dc01}=_0xdba054,_0xe4bf8e=this[_0x2d8673(0x1ce)][_0x2d8673(0x3c2)](_0x7cae4b[0x0],this[_0x2d8673(0x456)]);if(_['isTransformMutationsWithChangesetSuccess'](_0xe4bf8e)){const {c1Prime:_0x4f5aba,m2Prime:_0x29598b}=_0xe4bf8e;return this[_0x2d8673(0x54e)](_0x4f5aba),_0x41dc01[0x0][_0x2d8673(0x1f7)]=this['_getCurrentRevision'](),this['_injector'][_0x2d8673(0x317)](k,this[_0x2d8673(0x59b)],this[_0x2d8673(0x525)],_0x41dc01[0x0],_0x29598b,this['_handler']);}throw _0xe4bf8e[_0x2d8673(0x3d1)];}throw _0xdba054[_0x2d8673(0x3d1)];}catch(_0x456b69){return this[_0x2d8673(0x340)][_0x2d8673(0x3d1)](_0x456b69),this['_onConflict'](!0x1);}}[_0x1100bd(0x254)](_0x4149eb){const _0x1abd35=_0x1100bd;if(this['_checkMissing'](_0x4149eb))return this[_0x1abd35(0x1d8)]['createInstance'](H,this['unitID'],this[_0x1abd35(0x525)],null,this[_0x1abd35(0x456)],this['_awaitingChangeset'],[],this[_0x1abd35(0x4cd)]);this[_0x1abd35(0x1e1)]();const _0x392a3f=this['_injector']['createInstance'](x,this[_0x1abd35(0x59b)],this['type'],this[_0x1abd35(0x456)],this[_0x1abd35(0x4cd)]);return _0x392a3f[_0x1abd35(0x404)](),_0x392a3f[_0x1abd35(0x42f)](),_0x392a3f;}[_0x1100bd(0x4e0)](_0x562c32){const _0x1ca4b6=_0x1100bd;return this['_onConflict'](!!(_0x562c32!=null&&_0x562c32[_0x1ca4b6(0x29c)]));}[_0x1100bd(0x319)](){const _0x2935ff=_0x1100bd;return this[_0x2935ff(0x1d8)][_0x2935ff(0x317)](G,this[_0x2935ff(0x59b)],this[_0x2935ff(0x525)],this[_0x2935ff(0x49c)],this[_0x2935ff(0x456)],this['_handler']);}[_0x1100bd(0x3aa)](){return this;}[_0x1100bd(0x3ec)](){const _0x11b9b3=_0x1100bd;this[_0x11b9b3(0x4cd)][_0x11b9b3(0x438)](this['_awaitingChangeset']);}[_0x1100bd(0x36c)](_0x4d4947){const _0x5914b4=_0x1100bd;return this[_0x5914b4(0x1d8)][_0x5914b4(0x317)](F,this[_0x5914b4(0x59b)],this[_0x5914b4(0x525)],null,this[_0x5914b4(0x456)],this[_0x5914b4(0x4cd)],_0x4d4947);}};k=z([g(0x5,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),g(0x6,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x7,a['Inject'](exports[_0x1100bd(0x209)])),g(0x8,a[_0x1100bd(0x505)]),g(0x9,a[_0x1100bd(0x49b)]),g(0xa,_[_0x1100bd(0x38d)]),g(0xb,a[_0x1100bd(0x563)])],k);let F=class extends J{constructor(_0x10192d,_0x1c8e40,_0x559a4c,_0x35d64d,_0x19fb65,_0x553770=!0x1,_0x21535d,_0x274915,_0x3f9198,_0x2bce2b,_0x2e4712,_0x40f875,_0x4a5aa5){const _0x5e3235=_0x1100bd;super(_0x10192d,_0x1c8e40,_0x559a4c,_0x35d64d,_0x19fb65,_0x274915,_0x3f9198,_0x2e4712,_0x2bce2b),d(this,'status',_0x5e3235(0x5c2)),(this[_0x5e3235(0x4ba)]=_0x553770,this['_permissionService']=_0x21535d,this[_0x5e3235(0x418)]=_0x40f875,this[_0x5e3235(0x28b)]=_0x4a5aa5,this['_showConflictNotification'](),this[_0x5e3235(0x325)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x1100bd(0x230)](){return this;}[_0x1100bd(0x254)](){return this;}[_0x1100bd(0x4e0)](){return this;}[_0x1100bd(0x319)](){return this;}['toggleOnline'](){return this;}[_0x1100bd(0x3ec)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1100bd(0x325)](){const _0x17cd7a=_0x1100bd;this['_localCacheService'][_0x17cd7a(0x282)](this[_0x17cd7a(0x59b)],this[_0x17cd7a(0x525)],null,[]);}[_0x1100bd(0x599)](){const _0x32d8f2=_0x1100bd;this[_0x32d8f2(0x4ba)]?this[_0x32d8f2(0x28b)][_0x32d8f2(0x1d9)]({'title':this[_0x32d8f2(0x418)]['t'](_0x32d8f2(0x272)),'content':this[_0x32d8f2(0x418)]['t']('permission.content'),'type':_0x32d8f2(0x3d1),'duration':0x0}):this['_notificationService'][_0x32d8f2(0x1d9)]({'title':this[_0x32d8f2(0x418)]['t'](_0x32d8f2(0x276)),'content':this['_localeService']['t']('conflict.content'),'type':_0x32d8f2(0x3d1),'duration':0x0});}['_disableEditing'](){const _0x1b339d=_0x1100bd;this[_0x1b339d(0x39f)][_0x1b339d(0x3a5)](new C[(_0x1b339d(0x561))](this[_0x1b339d(0x59b)])['id'],!0x1);}};F=z([g(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x4d7)])),g(0x7,a['ICommandService']),g(0x8,a[_0x1100bd(0x563)]),g(0x9,a['Inject'](exports[_0x1100bd(0x209)])),g(0xa,a['Inject'](_[_0x1100bd(0x323)])),g(0xb,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),g(0xc,N[_0x1100bd(0x46a)])],F);let G=class extends J{constructor(_0x2ba731,_0x525847,_0x3509bd,_0xcabece,_0x53a294,_0x39fd4f,_0x4a7022,_0x32523d,_0x27fba4,_0x4862cb){const _0xfb8540=_0x1100bd;super(_0x2ba731,_0x525847,_0x3509bd,_0xcabece,_0x53a294,_0x27fba4,_0x4862cb,_0x4a7022,_0x32523d),d(this,_0xfb8540(0x442),_0xfb8540(0x322)),this[_0xfb8540(0x1d8)]=_0x39fd4f;}[_0x1100bd(0x398)](_0x299718){const _0x43ddd2=_0x1100bd;return this['_pendingMutations'][_0x43ddd2(0x414)](_0x299718),this[_0x43ddd2(0x42f)](),this;}[_0x1100bd(0x230)](_0x33177){const _0x5c15a0=_0x1100bd;throw new Error(_0x5c15a0(0x247));}[_0x1100bd(0x254)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1100bd(0x4e0)](){const _0x2242ba=_0x1100bd;throw new Error(_0x2242ba(0x285));}[_0x1100bd(0x319)](){return this;}[_0x1100bd(0x3aa)](){const _0x922b5=_0x1100bd,{_injector:_0x909cd0,_pendingMutations:_0x3409dc,_awaitingChangeset:_0x32455d,unitID:_0x3ddcb4,_handler:_0x1a257e,type:_0x2cf7ec}=this,_0x34df2a=Rt(_0x909cd0,_0x3ddcb4,_0x2cf7ec,_0x32455d,_0x3409dc,_0x1a257e);return _0x34df2a instanceof x?_0x34df2a['_schedule']():(_0x34df2a instanceof k||_0x34df2a instanceof W)&&_0x34df2a[_0x922b5(0x3ec)](),_0x34df2a;}[_0x1100bd(0x3ec)](){const _0x291937=_0x1100bd;throw new Error(_0x291937(0x5ad));}};G=z([g(0x5,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),g(0x6,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x7,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),g(0x8,a[_0x1100bd(0x505)]),g(0x9,a[_0x1100bd(0x563)])],G);let H=class extends J{constructor(_0x3ee745,_0x2a8704,_0x5246a0,_0x50d339,_0x780c01,_0x5929f4,_0x430f15,_0x47534a,_0x3965a2,_0x2f276d,_0x40b1d5,_0x368cc5,_0x5d7c24,_0x38465d){const _0x32e8d8=_0x1100bd;super(_0x3ee745,_0x2a8704,_0x5246a0,_0x50d339,_0x430f15,_0x368cc5,_0x5d7c24,_0x3965a2,_0x2f276d),d(this,_0x32e8d8(0x442),_0x32e8d8(0x35e)),(this[_0x32e8d8(0x4d9)]=_0x780c01,this[_0x32e8d8(0x266)]=_0x5929f4,this[_0x32e8d8(0x1d8)]=_0x47534a,this['_logService']=_0x40b1d5,this[_0x32e8d8(0x1ce)]=_0x38465d);}[_0x1100bd(0x4eb)](_0x5062e4){const _0x5b2b92=_0x1100bd;try{const _0x18bf68=[..._0x5062e4,...this[_0x5b2b92(0x266)]],_0x44467e=[this[_0x5b2b92(0x49c)]||this[_0x5b2b92(0x4d9)]][_0x5b2b92(0x495)](_0x328faf=>!!_0x328faf);let _0x26db4c,_0x3913b6;if(_0x44467e['length']){const _0x1da16c=this[_0x5b2b92(0x1ce)][_0x5b2b92(0x40c)](_0x18bf68,_0x44467e,!0x1);if(!_['isTransformChangesetsSuccess'](_0x1da16c))throw _0x1da16c[_0x5b2b92(0x3d1)];_0x26db4c=_0x1da16c[_0x5b2b92(0x20e)],_0x3913b6=_0x1da16c[_0x5b2b92(0x24e)];}else _0x26db4c=_0x18bf68,_0x3913b6=[];let _0x1e7e2e=this[_0x5b2b92(0x456)];_0x26db4c['forEach'](_0x3f0c55=>{const _0x259c69=_0x5b2b92;let _0x1d021b;if(_0x1e7e2e[_0x259c69(0x46d)]){const _0x4e382d=this[_0x259c69(0x1ce)][_0x259c69(0x3c2)](_0x3f0c55,_0x1e7e2e);if(!_[_0x259c69(0x5a1)](_0x4e382d))throw _0x4e382d[_0x259c69(0x3d1)];_0x1d021b=_0x4e382d[_0x259c69(0x20e)],_0x1e7e2e=_0x4e382d[_0x259c69(0x1ca)];}else _0x1d021b=_0x3f0c55;this[_0x259c69(0x54e)](_0x1d021b);}),this[_0x5b2b92(0x4d9)]&&this['_incrementRevisionNumber'](),this[_0x5b2b92(0x49c)]&&_0x3913b6[_0x5b2b92(0x46d)]&&(_0x3913b6[0x0][_0x5b2b92(0x1f7)]=this[_0x5b2b92(0x5a8)]());let _0x4908d3;if(this[_0x5b2b92(0x49c)]&&_0x1e7e2e[_0x5b2b92(0x46d)]!==0x0)_0x4908d3=this['_injector'][_0x5b2b92(0x317)](k,this[_0x5b2b92(0x59b)],this[_0x5b2b92(0x525)],_0x3913b6[0x0],_0x1e7e2e,this[_0x5b2b92(0x4cd)]);else{if(this[_0x5b2b92(0x49c)]&&_0x1e7e2e[_0x5b2b92(0x46d)]===0x0)_0x3913b6[0x0][_0x5b2b92(0x1f7)]=this[_0x5b2b92(0x5a8)](),_0x4908d3=this[_0x5b2b92(0x1d8)][_0x5b2b92(0x317)](W,this[_0x5b2b92(0x59b)],this['type'],_0x3913b6[0x0],this[_0x5b2b92(0x4cd)]);else{if(_0x1e7e2e[_0x5b2b92(0x46d)]!==0x0){const _0x266f2b=this['_injector'][_0x5b2b92(0x317)](x,this['unitID'],this[_0x5b2b92(0x525)],_0x1e7e2e,this[_0x5b2b92(0x4cd)]);_0x266f2b[_0x5b2b92(0x404)](),_0x4908d3=_0x266f2b;}else _0x4908d3=this[_0x5b2b92(0x1d8)][_0x5b2b92(0x317)](se,this[_0x5b2b92(0x59b)],this[_0x5b2b92(0x525)],this[_0x5b2b92(0x4cd)]);}}return _0x4908d3['_updateLocalCache'](),_0x4908d3;}catch(_0x4d3cd1){return this['_logService'][_0x5b2b92(0x3d1)]('[FetchMissState]',_0x5b2b92(0x2e4),_0x4d3cd1),this[_0x5b2b92(0x1d8)]['createInstance'](F,this[_0x5b2b92(0x59b)],this[_0x5b2b92(0x525)],this[_0x5b2b92(0x49c)],this[_0x5b2b92(0x456)],this[_0x5b2b92(0x4cd)],!0x1);}}[_0x1100bd(0x3ec)](){const _0x1a8750=_0x1100bd;throw new Error(_0x1a8750(0x433));}[_0x1100bd(0x398)](_0xac4d18){const _0x245d77=_0x1100bd;return this['_pendingMutations'][_0x245d77(0x414)](_0xac4d18),this;}[_0x1100bd(0x230)](_0x16c32d){const _0x2717ab=_0x1100bd;return this[_0x2717ab(0x266)][_0x2717ab(0x414)](_0x16c32d),this;}[_0x1100bd(0x254)](_0xa4f507){const _0x5025d7=_0x1100bd;if(this['_awaitingChangeset'])return this[_0x5025d7(0x4d9)]=this[_0x5025d7(0x49c)],this[_0x5025d7(0x49c)]=null,this;throw new Error(_0x5025d7(0x1c4));}[_0x1100bd(0x4e0)](_0x5aff75){const _0x58a0fe=_0x1100bd;return this[_0x58a0fe(0x36c)](!!(_0x5aff75!=null&&_0x5aff75[_0x58a0fe(0x29c)]));}[_0x1100bd(0x319)](){const _0x24cd29=_0x1100bd;return this[_0x24cd29(0x1d8)]['createInstance'](G,this[_0x24cd29(0x59b)],this['type'],this[_0x24cd29(0x49c)],this[_0x24cd29(0x456)],this['_handler']);}[_0x1100bd(0x3aa)](){return this;}['_onConflict'](_0x3fa8eb){const _0xc80ca5=_0x1100bd;return this['_injector']['createInstance'](F,this['unitID'],this[_0xc80ca5(0x525)],this[_0xc80ca5(0x49c)],this[_0xc80ca5(0x456)],this[_0xc80ca5(0x4cd)],_0x3fa8eb);}};H=z([g(0x7,a['Inject'](a['Injector'])),g(0x8,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),g(0x9,a['Inject'](exports[_0x1100bd(0x209)])),g(0xa,a[_0x1100bd(0x49b)]),g(0xb,a[_0x1100bd(0x505)]),g(0xc,a[_0x1100bd(0x563)]),g(0xd,_[_0x1100bd(0x38d)])],H);function Rt(_0x451002,_0x22e395,_0x5174d7,_0x5f8c79,_0x16c63f,_0x660fc4){const _0x240072=_0x1100bd;return _0x5f8c79&&_0x16c63f['length']?_0x451002[_0x240072(0x317)](k,_0x22e395,_0x5174d7,_0x5f8c79,_0x16c63f,_0x660fc4):_0x5f8c79?_0x451002[_0x240072(0x317)](W,_0x22e395,_0x5174d7,_0x5f8c79,_0x660fc4):_0x16c63f[_0x240072(0x46d)]?_0x451002[_0x240072(0x317)](x,_0x22e395,_0x5174d7,_0x16c63f,_0x660fc4):_0x451002[_0x240072(0x317)](se,_0x22e395,_0x5174d7,_0x660fc4);}var Hs=Object['defineProperty'],xs=Object[_0x1100bd(0x444)],Ke=(_0x21fbd2,_0x1c375f,_0x374af1,_0x4dbb43)=>{const _0x35936b=_0x1100bd;for(var _0xb27da0=_0x4dbb43>0x1?void 0x0:_0x4dbb43?xs(_0x1c375f,_0x374af1):_0x1c375f,_0x3ef5b4=_0x21fbd2[_0x35936b(0x46d)]-0x1,_0x3f7862;_0x3ef5b4>=0x0;_0x3ef5b4--)(_0x3f7862=_0x21fbd2[_0x3ef5b4])&&(_0xb27da0=(_0x4dbb43?_0x3f7862(_0x1c375f,_0x374af1,_0xb27da0):_0x3f7862(_0xb27da0))||_0xb27da0);return _0x4dbb43&&_0xb27da0&&Hs(_0x1c375f,_0x374af1,_0xb27da0),_0xb27da0;},I=(_0x2258fd,_0x36f2fe)=>(_0x35d9e0,_0x3bf8e2)=>_0x36f2fe(_0x35d9e0,_0x3bf8e2,_0x2258fd);function _0x75d2(_0x300d4b,_0x27ace7){const _0x1ae8b9=_0x1ae8();return _0x75d2=function(_0x75d29c,_0x1353c2){_0x75d29c=_0x75d29c-0x1ad;let _0x5c742a=_0x1ae8b9[_0x75d29c];return _0x5c742a;},_0x75d2(_0x300d4b,_0x27ace7);}exports['CollaborationEntity']=class extends a[_0x1100bd(0x1c7)]{constructor(_0x420d4f,_0x5a5407,_0x365c05,_0x19dc7a,_0x287a1a,_0x1bf29e,_0x1881f2,_0xb85bf,_0x123a71,_0x106dde,_0x4b97e8,_0x1be7b5,_0xd6ca48){const _0x59bfcb=_0x1100bd;super(),d(this,_0x59bfcb(0x459),new v[(_0x59bfcb(0x240))](null)),d(this,_0x59bfcb(0x39b),this[_0x59bfcb(0x459)]['asObservable']()),d(this,_0x59bfcb(0x214)),d(this,_0x59bfcb(0x200),!0x1),d(this,_0x59bfcb(0x284),this[_0x59bfcb(0x39b)][_0x59bfcb(0x32e)](v[_0x59bfcb(0x4c4)](_0x477399=>_0x477399?_0x477399['status']:y['OFFLINE']),v['shareReplay'](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x59bfcb(0x51a),[]),(this[_0x59bfcb(0x59b)]=_0x420d4f,this['session']=_0x5a5407,this[_0x59bfcb(0x51e)]=_0x365c05,this['_injector']=_0x19dc7a,this[_0x59bfcb(0x45f)]=_0x287a1a,this[_0x59bfcb(0x570)]=_0x1bf29e,this[_0x59bfcb(0x418)]=_0x1881f2,this[_0x59bfcb(0x3b0)]=_0xb85bf,this[_0x59bfcb(0x340)]=_0x123a71,this[_0x59bfcb(0x53a)]=_0x106dde,this[_0x59bfcb(0x37c)]=_0x4b97e8,this[_0x59bfcb(0x39f)]=_0x1be7b5,this['_singleActiveUnitService']=_0xd6ca48);}get[_0x1100bd(0x3b8)](){return this['_state'];}async[_0x1100bd(0x5c3)](){const _0x4f9a9b=_0x1100bd;if(this[_0x4f9a9b(0x3b8)])throw new Error(_0x4f9a9b(0x1cb));await this[_0x4f9a9b(0x4a0)]();}['pauseCollaboration'](){const _0x7ba171=_0x1100bd;return this[_0x7ba171(0x200)]=!0x0,a[_0x7ba171(0x480)](()=>{const _0x6d4794=_0x7ba171;this[_0x6d4794(0x200)]=!0x1,this[_0x6d4794(0x372)]();});}['_updateState'](_0x44179c){const _0x303d55=_0x1100bd;this['_state']=_0x44179c,this[_0x303d55(0x459)][_0x303d55(0x496)](_0x44179c);}async['_init'](){const _0x1e50b3=_0x1100bd;var _0x3d3cfb;this[_0x1e50b3(0x324)](await this['_createInitialState']()),this[_0x1e50b3(0x307)]&&((_0x3d3cfb=this[_0x1e50b3(0x307)])==null||_0x3d3cfb['editingUnit'](this['unitID']),this[_0x1e50b3(0x40b)](this[_0x1e50b3(0x307)][_0x1e50b3(0x4f1)](this[_0x1e50b3(0x59b)])[_0x1e50b3(0x1f3)](_0x2359bf=>{const _0x29d591=_0x1e50b3;this[_0x29d591(0x340)][_0x29d591(0x328)](_0x29d591(0x2b4),'editing\x20status\x20changed\x20to',_0x2359bf),_0x2359bf===bt[_0x29d591(0x59e)]?(this[_0x29d591(0x37c)][_0x29d591(0x1d9)]({'content':this[_0x29d591(0x418)]['t'](_0x29d591(0x4f4)),'type':X[_0x29d591(0x4b2)]['Warning']}),this['_permissionService'][_0x29d591(0x3a5)](new C[(_0x29d591(0x561))](this[_0x29d591(0x59b)])['id'],!0x1)):this[_0x29d591(0x39f)][_0x29d591(0x3a5)](new C['WorkbookEditablePermission'](this[_0x29d591(0x59b)])['id'],!0x0);})));let _0x15f932=!0x1;return this['disposeWithMe'](this[_0x1e50b3(0x40a)][_0x1e50b3(0x48a)][_0x1e50b3(0x1f3)](_0x3932f1=>{const _0xd7db55=_0x1e50b3;_0x3932f1===$[_0xd7db55(0x48c)]?this[_0xd7db55(0x541)](_0x15f932):_0x3932f1===$['OFFLINE']&&(_0x15f932=!0x0,this[_0xd7db55(0x2b6)]());})),this[_0x1e50b3(0x40b)](this[_0x1e50b3(0x40a)][_0x1e50b3(0x448)][_0x1e50b3(0x1f3)](_0x501afa=>{const _0x3526b0=_0x1e50b3;try{switch(_0x501afa[_0x3526b0(0x39c)]){case _[_0x3526b0(0x55c)][_0x3526b0(0x28e)]:{this[_0x3526b0(0x350)](_[_0x3526b0(0x554)](_0x501afa[_0x3526b0(0x47d)]));break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x3d6)]:{this[_0x3526b0(0x447)](_0x501afa['data']);break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x579)]:{this[_0x3526b0(0x530)]();break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x255)]:{this[_0x3526b0(0x502)](_0x501afa['data']['changesets']['map'](_0x45c787=>_[_0x3526b0(0x554)](_0x45c787)));break;}case _[_0x3526b0(0x55c)][_0x3526b0(0x587)]:this[_0x3526b0(0x530)]({'isPermissionRej':!0x0});}}catch(_0x1007c5){throw console['error'](_0x3526b0(0x2e7),_0x1007c5),_0x1007c5;}})),this[_0x1e50b3(0x214)];}[_0x1100bd(0x330)](){this['_transitionLocked']=!0x1;}[_0x1100bd(0x1c9)](){const _0x210363=_0x1100bd;if(this[_0x210363(0x318)])throw new Error(_0x210363(0x397));this[_0x210363(0x318)]=!0x0;}[_0x1100bd(0x4cc)](_0x13ba6d){const _0xcbc3e3=_0x1100bd;this['_lockTransition'](),this[_0xcbc3e3(0x324)](this[_0xcbc3e3(0x214)][_0xcbc3e3(0x398)](_0x13ba6d)),this[_0xcbc3e3(0x330)]();}[_0x1100bd(0x350)](_0x298202){const _0x477a6d=_0x1100bd;if(!(_0x298202[_0x477a6d(0x436)]<=this[_0x477a6d(0x3b0)][_0x477a6d(0x4c7)](this[_0x477a6d(0x59b)]))){if(this['_collaborationPaused']){this[_0x477a6d(0x51a)][_0x477a6d(0x414)](_0x298202);return;}this[_0x477a6d(0x3f9)](_0x298202);}}[_0x1100bd(0x372)](){const _0x46a0f3=_0x1100bd;this[_0x46a0f3(0x51a)]['forEach'](_0x2b2c72=>this['_applyRemoteChangeset'](_0x2b2c72)),this[_0x46a0f3(0x51a)]=[];}[_0x1100bd(0x3f9)](_0x50f4df){const _0x359d33=_0x1100bd,_0x5a0e7e=this[_0x359d33(0x570)][_0x359d33(0x517)][_0x359d33(0x562)](this[_0x359d33(0x570)][_0x359d33(0x517)][_0x359d33(0x566)]()[_0x359d33(0x422)])(_0x50f4df['mutations'],null)||_0x50f4df[_0x359d33(0x45c)],_0x38e239={..._0x50f4df,'mutations':_0x5a0e7e};this[_0x359d33(0x1c9)](),this[_0x359d33(0x324)](this[_0x359d33(0x214)][_0x359d33(0x230)](_0x38e239)),this[_0x359d33(0x330)]();}[_0x1100bd(0x447)](_0x36a3f3){const _0xf25bf6=_0x1100bd;this[_0xf25bf6(0x1c9)](),this['_updateState'](this[_0xf25bf6(0x214)][_0xf25bf6(0x254)](_0x36a3f3)),this['_unlockTransition']();}[_0x1100bd(0x530)](_0x3d8d03){const _0x5dad7e=_0x1100bd;this[_0x5dad7e(0x1c9)](),this[_0x5dad7e(0x324)](this[_0x5dad7e(0x214)][_0x5dad7e(0x4e0)](_0x3d8d03)),this[_0x5dad7e(0x330)]();}[_0x1100bd(0x502)](_0x5da009){const _0x3e9f70=_0x1100bd;if(!(this[_0x3e9f70(0x214)]instanceof H))throw new TypeError(_0x3e9f70(0x3f3));const _0x4a3595=_0x5da009[_0x3e9f70(0x4c4)](_0x5a140e=>{const _0x4d1255=_0x3e9f70,_0x159c3b=this[_0x4d1255(0x570)]['interceptor'][_0x4d1255(0x562)](this['_compressMutationService'][_0x4d1255(0x517)][_0x4d1255(0x566)]()[_0x4d1255(0x422)])(_0x5a140e['mutations'],null)||_0x5a140e[_0x4d1255(0x45c)];return{..._0x5a140e,'mutations':_0x159c3b};});this[_0x3e9f70(0x1c9)](),this[_0x3e9f70(0x324)](this[_0x3e9f70(0x214)][_0x3e9f70(0x4eb)](_0x4a3595)),this[_0x3e9f70(0x330)]();}[_0x1100bd(0x2b6)](){const _0x43a0a9=_0x1100bd;this['_lockTransition'](),this[_0x43a0a9(0x324)](this[_0x43a0a9(0x214)][_0x43a0a9(0x319)]()),this[_0x43a0a9(0x330)]();}['_toggleOnline'](_0x113cd4=!0x1){const _0xdd5114=_0x1100bd;this[_0xdd5114(0x1c9)](),this[_0xdd5114(0x324)](this[_0xdd5114(0x214)]['toggleOnline']()),this[_0xdd5114(0x330)]();const _0x755ae1=this[_0xdd5114(0x214)];_0x113cd4&&_0x755ae1 instanceof se&&(this[_0xdd5114(0x1c9)](),this[_0xdd5114(0x324)](_0x755ae1[_0xdd5114(0x26c)]()),this[_0xdd5114(0x330)]());}async[_0x1100bd(0x2a3)](){return new Promise(_0x2f13b9=>{const _0x41940f=_0x75d2;this[_0x41940f(0x40a)][_0x41940f(0x48a)]['pipe'](v[_0x41940f(0x542)](0x1))[_0x41940f(0x1f3)](async _0x29c387=>{const _0x2d3874=_0x41940f;_0x2f13b9(await this[_0x2d3874(0x267)](_0x29c387===$[_0x2d3874(0x48c)]));});});}[_0x1100bd(0x420)](){const _0x2d87a2=this['unitID'];return{'onStateChange':(_0x5a30e6,_0x326328)=>{const _0x4e70b6=_0x75d2;if(_0x5a30e6!==this[_0x4e70b6(0x214)])throw new Error(_0x4e70b6(0x575)+_0x5a30e6[_0x4e70b6(0x442)]+_0x4e70b6(0x25f)+_0x326328[_0x4e70b6(0x442)]+_0x4e70b6(0x2ee)+this[_0x4e70b6(0x214)][_0x4e70b6(0x442)]);this[_0x4e70b6(0x324)](_0x326328);},'onSendChangeset':_0x40fe8a=>{const _0x34b9c4=_0x75d2,_0x4db1d6={'eventID':_['CollaborationEvent'][_0x34b9c4(0x46f)],'data':{'unitID':_0x40fe8a[_0x34b9c4(0x59b)],'unitType':this[_0x34b9c4(0x51e)],'changeset':_0x40fe8a,'memberID':this[_0x34b9c4(0x40a)][_0x34b9c4(0x4fc)]()}};this[_0x34b9c4(0x40a)][_0x34b9c4(0x59a)](_0x4db1d6,this[_0x34b9c4(0x59b)]);},'onMissingChangesets':({from:_0x5afeac,to:_0x39e046})=>{const _0x1e7bc5=_0x75d2;this[_0x1e7bc5(0x340)][_0x1e7bc5(0x328)](_0x1e7bc5(0x2b4),'fetching\x20missing\x20changesets\x20from\x20'+_0x5afeac+_0x1e7bc5(0x4d5)+_0x39e046);const _0x271836={'eventID':_[_0x1e7bc5(0x55c)][_0x1e7bc5(0x258)],'data':{'unitID':_0x2d87a2,'unitType':this[_0x1e7bc5(0x51e)],'from':_0x5afeac,'to':_0x39e046}};this[_0x1e7bc5(0x40a)]['send'](_0x271836,this[_0x1e7bc5(0x59b)]);}};}async[_0x1100bd(0x267)](_0x47787e){const _0x5c5a49=_0x1100bd;var _0x577fde,_0x290011;const _0x4cda0c=await this[_0x5c5a49(0x45f)][_0x5c5a49(0x226)](this[_0x5c5a49(0x59b)]),_0x4756c1=(_0x577fde=_0x4cda0c==null?void 0x0:_0x4cda0c[_0x5c5a49(0x45c)])!=null?_0x577fde:[],_0x4e5ea4=(_0x290011=_0x4cda0c==null?void 0x0:_0x4cda0c[_0x5c5a49(0x25b)])!=null?_0x290011:null,_0x236243=this[_0x5c5a49(0x59b)];try{this[_0x5c5a49(0x23e)](_0x4e5ea4,_0x4756c1);}catch(_0x3097d4){this['_logService'][_0x5c5a49(0x3d1)](_0x3097d4);}const _0x73e92f=this[_0x5c5a49(0x420)]();if(_0x47787e){const _0x220d5a=Rt(this['_injector'],_0x236243,this[_0x5c5a49(0x51e)],_0x4e5ea4,_0x4756c1,_0x73e92f);return _0x220d5a instanceof x?_0x220d5a['_schedule']():(_0x220d5a instanceof k||_0x220d5a instanceof W)&&_0x220d5a[_0x5c5a49(0x3ec)](),_0x220d5a;}return this[_0x5c5a49(0x1d8)][_0x5c5a49(0x317)](G,_0x236243,this[_0x5c5a49(0x51e)],_0x4e5ea4,_0x4756c1,_0x73e92f);}[_0x1100bd(0x23e)](_0xbd83b8,_0x596c7e){const _0x4296fb=_0x1100bd;var _0x527f22,_0x521b2e;const _0x27343c=this[_0x4296fb(0x570)][_0x4296fb(0x517)][_0x4296fb(0x562)](this[_0x4296fb(0x570)]['interceptor']['getInterceptPoints']()[_0x4296fb(0x422)]);(_0x527f22=_0x27343c((_0xbd83b8==null?void 0x0:_0xbd83b8[_0x4296fb(0x45c)])||[],null))==null||_0x527f22[_0x4296fb(0x2be)](_0xbcab92=>this[_0x4296fb(0x53a)][_0x4296fb(0x2ea)](_0xbcab92['id'],_0xbcab92[_0x4296fb(0x24d)])),(_0x521b2e=_0x27343c(_0x596c7e||[],null))==null||_0x521b2e['forEach'](_0x48beb8=>this[_0x4296fb(0x53a)][_0x4296fb(0x2ea)](_0x48beb8['id'],_0x48beb8[_0x4296fb(0x24d)]));}},exports[_0x1100bd(0x58d)]=Ke([I(0x3,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a['Inject'](a['LocaleService'])),I(0x7,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),I(0x8,a[_0x1100bd(0x49b)]),I(0x9,a['ICommandService']),I(0xa,N[_0x1100bd(0x411)]),I(0xb,a['IPermissionService']),I(0xc,a['Optional'](be))],exports[_0x1100bd(0x58d)]),exports['DocCollaborationEntity']=class extends exports[_0x1100bd(0x58d)]{constructor(_0xe7c921,_0x231ed5,_0x256396,_0x3eee7b,_0x4d4e10,_0x38dab7,_0x191aab,_0x29a30a,_0x138b8e,_0x2ca0f2,_0x20a776,_0x5a7710,_0x24ed5a,_0x39cc7d,_0xcc1f2f,_0x181dc7,_0x4b0fd0){const _0x305593=_0x1100bd;super(_0xe7c921,_0x256396,_0x231ed5,_0x3eee7b,_0x4d4e10,_0x38dab7,_0x191aab,_0x29a30a,_0x24ed5a,_0x39cc7d,_0xcc1f2f,_0x181dc7,_0x4b0fd0),this[_0x305593(0x59b)]=_0xe7c921,this['type']=_0x231ed5,this[_0x305593(0x3a3)]=_0x138b8e,this['_docTransformIMECacheService']=_0x2ca0f2,this['_docTransformSelectionsService']=_0x20a776,this[_0x305593(0x24c)]=_0x5a7710;}[_0x1100bd(0x420)](){const _0x4cb330=_0x1100bd,_0x12d11b=super[_0x4cb330(0x420)]();return _0x12d11b['onTransformIME']=_0x545aa6=>this[_0x4cb330(0x262)]['transformIMECache'](_0x545aa6),_0x12d11b[_0x4cb330(0x543)]=_0x59e55d=>this[_0x4cb330(0x5ac)][_0x4cb330(0x2ed)](_0x59e55d),_0x12d11b[_0x4cb330(0x3bb)]=_0x790a35=>this['_docSyncEditingCollabCursorService'][_0x4cb330(0x4e7)](_0x790a35),_0x12d11b[_0x4cb330(0x2a5)]=_0xc59d28=>this[_0x4cb330(0x262)][_0x4cb330(0x349)](_0xc59d28),_0x12d11b;}async[_0x1100bd(0x4a0)](){const _0x758d4a=_0x1100bd,_0x19fad8=await super[_0x758d4a(0x4a0)]();return this[_0x758d4a(0x40b)](this['_commandService']['onCommandExecuted']((_0x2dcc1e,_0xeb61ab)=>{const _0x6efcc4=_0x758d4a;if(_0x2dcc1e[_0x6efcc4(0x525)]!==a[_0x6efcc4(0x27b)][_0x6efcc4(0x3d8)]||_0xeb61ab!=null&&_0xeb61ab[_0x6efcc4(0x4e5)]||_0xeb61ab!=null&&_0xeb61ab[_0x6efcc4(0x44e)])return;const _0x1eccb7=_0x2dcc1e[_0x6efcc4(0x24d)];if((_0x1eccb7==null?void 0x0:_0x1eccb7[_0x6efcc4(0x1d1)])!==this[_0x6efcc4(0x59b)])return;let _0x3e67bd=_0x2dcc1e;if(_0x3e67bd['id']===V['RichTextEditingMutation']['id']){const _0x586511=_0x3e67bd[_0x6efcc4(0x24d)];_0x3e67bd={'id':V[_0x6efcc4(0x249)]['id'],'type':a[_0x6efcc4(0x27b)]['MUTATION'],'params':{'unitId':_0x586511[_0x6efcc4(0x1d1)],'actions':_0x586511[_0x6efcc4(0x1c8)],'textRanges':null}};}const _0x9adab8=this[_0x6efcc4(0x570)][_0x6efcc4(0x517)][_0x6efcc4(0x562)](this['_compressMutationService'][_0x6efcc4(0x517)][_0x6efcc4(0x566)]()[_0x6efcc4(0x227)])([_0x3e67bd],null)||[_0x3e67bd];this['_onLocalMutation'](_0x9adab8[0x0]);})),_0x19fad8;}},exports['DocCollaborationEntity']=Ke([I(0x3,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a[_0x1100bd(0x583)](_[_0x1100bd(0x5af)])),I(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),I(0x7,a[_0x1100bd(0x583)](_[_0x1100bd(0x323)])),I(0x8,a[_0x1100bd(0x583)](w[_0x1100bd(0x311)])),I(0x9,a[_0x1100bd(0x583)](fe)),I(0xa,a[_0x1100bd(0x583)](me)),I(0xb,a[_0x1100bd(0x583)](Ye)),I(0xc,a['ILogService']),I(0xd,a['ICommandService']),I(0xe,N[_0x1100bd(0x411)]),I(0xf,a['IPermissionService']),I(0x10,a['Optional'](be))],exports['DocCollaborationEntity']),exports[_0x1100bd(0x4db)]=class extends exports[_0x1100bd(0x58d)]{constructor(_0x3901a1,_0x2e8fd9,_0x2935e5,_0xa0bc0a,_0x395f50,_0x16fd36,_0x12fa88,_0x3990a0,_0x1e4fa6,_0x381b7b,_0x459db5,_0x22dfea,_0x39cc6b,_0x586c6d){const _0x13a827=_0x1100bd;super(_0x3901a1,_0x2935e5,_0x2e8fd9,_0xa0bc0a,_0x395f50,_0x16fd36,_0x12fa88,_0x3990a0,_0x381b7b,_0x459db5,_0x22dfea,_0x39cc6b,_0x586c6d),this[_0x13a827(0x59b)]=_0x3901a1,this['type']=_0x2e8fd9,this[_0x13a827(0x1fc)]=_0x1e4fa6;}[_0x1100bd(0x420)](){const _0x3fbed2=_0x1100bd,_0x802639=super[_0x3fbed2(0x420)]();return _0x802639[_0x3fbed2(0x543)]=_0x5c8333=>this[_0x3fbed2(0x1fc)][_0x3fbed2(0x2ed)](_0x5c8333),_0x802639;}async[_0x1100bd(0x4a0)](){const _0x1756cc=_0x1100bd,_0x569734=await super[_0x1756cc(0x4a0)]();return this[_0x1756cc(0x40b)](this['_commandService']['onCommandExecuted']((_0x3614e4,_0x199f59)=>{const _0x44c41c=_0x1756cc;if(_0x3614e4[_0x44c41c(0x525)]!==a['CommandType'][_0x44c41c(0x3d8)]||_0x199f59!=null&&_0x199f59[_0x44c41c(0x4e5)]||_0x199f59!=null&&_0x199f59[_0x44c41c(0x44e)])return;const _0x10660a=_0x3614e4[_0x44c41c(0x24d)];if((_0x10660a==null?void 0x0:_0x10660a['unitId'])!==this['unitID'])return;const _0x44fc9c=_0x3614e4,_0x4fafff=this['_compressMutationService']['interceptor'][_0x44c41c(0x562)](this['_compressMutationService'][_0x44c41c(0x517)][_0x44c41c(0x566)]()[_0x44c41c(0x227)])([_0x44fc9c],null)||[_0x44fc9c];this['_onLocalMutation'](_0x4fafff[0x0]);})),_0x569734;}},exports[_0x1100bd(0x4db)]=Ke([I(0x3,a['Inject'](a[_0x1100bd(0x2a1)])),I(0x4,a[_0x1100bd(0x583)](exports[_0x1100bd(0x209)])),I(0x5,a[_0x1100bd(0x583)](_[_0x1100bd(0x5af)])),I(0x6,a[_0x1100bd(0x583)](a[_0x1100bd(0x497)])),I(0x7,a[_0x1100bd(0x583)](_['RevisionService'])),I(0x8,a['Inject'](ge)),I(0x9,a[_0x1100bd(0x49b)]),I(0xa,a[_0x1100bd(0x505)]),I(0xb,N['IMessageService']),I(0xc,a['IPermissionService']),I(0xd,a['Optional'](be))],exports['SheetCollaborationEntity']);var ks=Object[_0x1100bd(0x4ed)],Bs=Object[_0x1100bd(0x444)],Vs=(_0x3a9925,_0x1526a4,_0x2e5077,_0x4ff39e)=>{const _0x9e33a4=_0x1100bd;for(var _0x453ee9=_0x4ff39e>0x1?void 0x0:_0x4ff39e?Bs(_0x1526a4,_0x2e5077):_0x1526a4,_0x75896b=_0x3a9925[_0x9e33a4(0x46d)]-0x1,_0x167634;_0x75896b>=0x0;_0x75896b--)(_0x167634=_0x3a9925[_0x75896b])&&(_0x453ee9=(_0x4ff39e?_0x167634(_0x1526a4,_0x2e5077,_0x453ee9):_0x167634(_0x453ee9))||_0x453ee9);return _0x4ff39e&&_0x453ee9&&ks(_0x1526a4,_0x2e5077,_0x453ee9),_0x453ee9;},Ue=(_0xd7e898,_0x272b69)=>(_0x3bddb0,_0x3a1eb5)=>_0x272b69(_0x3bddb0,_0x3a1eb5,_0xd7e898);exports[_0x1100bd(0x38c)]=class extends a['RxDisposable']{constructor(_0x327f87,_0x4f09e5,_0x35ff49){const _0x25938c=_0x1100bd;super(),d(this,'_entities',new Map()),d(this,_0x25938c(0x568),new v[(_0x25938c(0x43a))]()),(this['_injector']=_0x327f87,this[_0x25938c(0x2d6)]=_0x4f09e5,this[_0x25938c(0x56b)]=_0x35ff49,this['_init']());}[_0x1100bd(0x3d2)](){const _0x5beba8=_0x1100bd;super['dispose'](),this[_0x5beba8(0x51d)][_0x5beba8(0x2be)](_0xb5a374=>_0xb5a374[_0x5beba8(0x3d2)]()),this[_0x5beba8(0x51d)][_0x5beba8(0x27d)]();}['getCollabEntity'](_0x170509){const _0x5a21df=_0x1100bd;var _0x36ccd9;return(_0x36ccd9=this[_0x5a21df(0x51d)][_0x5a21df(0x1f4)](_0x170509))!=null?_0x36ccd9:null;}[_0x1100bd(0x223)](_0x4d2194){const _0x4ba97f=_0x1100bd,_0x344dae=this[_0x4ba97f(0x29e)](_0x4d2194);return _0x344dae?v['of'](_0x344dae):this[_0x4ba97f(0x568)][_0x4ba97f(0x32e)](E[_0x4ba97f(0x495)](_0x4d020c=>_0x4d020c['unitID']===_0x4d2194));}[_0x1100bd(0x4a0)](){const _0x5bf936=_0x1100bd;this[_0x5bf936(0x56b)][_0x5bf936(0x382)](a[_0x5bf936(0x2e9)]['UNIVER_SHEET'])['pipe'](v[_0x5bf936(0x23f)](this[_0x5bf936(0x551)]),E[_0x5bf936(0x24b)](0x10))['subscribe'](async _0x851ef0=>{const _0x3c6573=_0x5bf936,_0x3ab80e=_0x851ef0[_0x3c6573(0x401)](),_0x249aa3=await this[_0x3c6573(0x33c)](_0x3ab80e,j[_0x3c6573(0x293)]);this['_entities'][_0x3c6573(0x57e)](_0x3ab80e,_0x249aa3);}),this[_0x5bf936(0x56b)][_0x5bf936(0x382)](a[_0x5bf936(0x2e9)][_0x5bf936(0x22b)])[_0x5bf936(0x32e)](v[_0x5bf936(0x23f)](this[_0x5bf936(0x551)]),E[_0x5bf936(0x24b)](0x10))['pipe'](E[_0x5bf936(0x495)](_0x24217a=>!_0x24217a[_0x5bf936(0x401)]()[_0x5bf936(0x316)]('__')))[_0x5bf936(0x1f3)](async _0x237a12=>{const _0x3ce928=_0x5bf936,_0x57795a=_0x237a12[_0x3ce928(0x401)](),_0x262881=await this['_startCollaboration'](_0x57795a,j[_0x3ce928(0x22b)]);this[_0x3ce928(0x51d)]['set'](_0x57795a,_0x262881);}),v[_0x5bf936(0x4e9)](this[_0x5bf936(0x56b)][_0x5bf936(0x2a4)](a[_0x5bf936(0x2e9)][_0x5bf936(0x293)]),this[_0x5bf936(0x56b)]['getTypeOfUnitDisposed$'](a[_0x5bf936(0x2e9)][_0x5bf936(0x22b)]))[_0x5bf936(0x32e)](v[_0x5bf936(0x23f)](this[_0x5bf936(0x551)]))[_0x5bf936(0x1f3)](_0x8a00bb=>{const _0x3df890=_0x5bf936,_0x1c3fd6=_0x8a00bb['getUnitId'](),_0x4e1185=this[_0x3df890(0x51d)][_0x3df890(0x1f4)](_0x1c3fd6);_0x4e1185&&(_0x4e1185[_0x3df890(0x3d2)](),this[_0x3df890(0x51d)][_0x3df890(0x5bf)](_0x1c3fd6));});}async['_startCollaboration'](_0x20b5d4,_0x439cc6){const _0x2f72a4=_0x1100bd,_0x78e497=await this[_0x2f72a4(0x2d6)][_0x2f72a4(0x31b)](_0x20b5d4),_0x4bf568=this[_0x2f72a4(0x1d8)][_0x2f72a4(0x317)](this[_0x2f72a4(0x47f)](_0x439cc6),_0x20b5d4,_0x439cc6,_0x78e497);return await _0x4bf568['init'](),this['_entityInit$'][_0x2f72a4(0x496)](_0x4bf568),_0x4bf568;}[_0x1100bd(0x47f)](_0x4a3270){const _0x2dd072=_0x1100bd;switch(_0x4a3270){case j[_0x2dd072(0x22b)]:return exports[_0x2dd072(0x3cd)];case j['UNIVER_SHEET']:return exports[_0x2dd072(0x4db)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4a3270);}}},exports['CollaborationController']=Vs([Ue(0x0,a[_0x1100bd(0x583)](a['Injector'])),Ue(0x1,a[_0x1100bd(0x583)](exports[_0x1100bd(0x532)])),Ue(0x2,a['IUniverInstanceService'])],exports['CollaborationController']);const nt=[_0x1100bd(0x4e2),_0x1100bd(0x331),_0x1100bd(0x2c1),_0x1100bd(0x4bb),_0x1100bd(0x3d4),_0x1100bd(0x2b3)];class Xe extends a[_0x1100bd(0x4e4)]{constructor(){const _0x2e75d7=_0x1100bd;super(...arguments),d(this,_0x2e75d7(0x2b9),new Map()),d(this,'_colorIndex',0x0);}[_0x1100bd(0x3a7)](_0x4d4da4){const _0x4f14d7=_0x1100bd;if(this[_0x4f14d7(0x2b9)]['has'](_0x4d4da4))return this[_0x4f14d7(0x2b9)]['get'](_0x4d4da4);const _0x26db79=nt[this['_colorIndex']];return this[_0x4f14d7(0x540)]=(this['_colorIndex']+0x1)%nt['length'],this[_0x4f14d7(0x2b9)][_0x4f14d7(0x57e)](_0x4d4da4,_0x26db79),_0x26db79;}}var Ws=Object[_0x1100bd(0x4ed)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x5bc33f,_0x5ac0a8,_0x573540,_0x48cc36)=>{const _0x33e2a9=_0x1100bd;for(var _0x59ac18=_0x48cc36>0x1?void 0x0:_0x48cc36?Fs(_0x5ac0a8,_0x573540):_0x5ac0a8,_0x3f8674=_0x5bc33f[_0x33e2a9(0x46d)]-0x1,_0x2071ec;_0x3f8674>=0x0;_0x3f8674--)(_0x2071ec=_0x5bc33f[_0x3f8674])&&(_0x59ac18=(_0x48cc36?_0x2071ec(_0x5ac0a8,_0x573540,_0x59ac18):_0x2071ec(_0x59ac18))||_0x59ac18);return _0x48cc36&&_0x59ac18&&Ws(_0x5ac0a8,_0x573540,_0x59ac18),_0x59ac18;},K=(_0x5e47cf,_0xdb0bc5)=>(_0x3f3163,_0x541eb2)=>_0xdb0bc5(_0x3f3163,_0x541eb2,_0x5e47cf);const Ys=0x12c,Ks=0x64;let $e=class extends a['RxDisposable']{constructor(_0x3686e2,_0x30d6ba,_0x286935,_0x4a2ab1,_0x365212,_0x4e5666,_0x4ceae1,_0x3a7106,_0x531d4c){const _0x16c2b0=_0x1100bd;super(),d(this,_0x16c2b0(0x3e2),!0x1),d(this,_0x16c2b0(0x4a0),!0x1),d(this,_0x16c2b0(0x434),new v['BehaviorSubject'](new Map())),d(this,_0x16c2b0(0x48d),this[_0x16c2b0(0x434)][_0x16c2b0(0x4c2)]()),d(this,_0x16c2b0(0x222),new v[(_0x16c2b0(0x240))]([])),d(this,_0x16c2b0(0x5ba),this['_roomMembers$']['pipe'](v['debounceTime'](Ys))),d(this,_0x16c2b0(0x460),a[_0x16c2b0(0x2ec)](_0x3a168c=>{const _0x3148cb=_0x16c2b0,_0x2e6da2={'eventID':_[_0x3148cb(0x55c)][_0x3148cb(0x2ce)],'data':{'unitID':this[_0x3148cb(0x59b)],'memberID':this['_session'][_0x3148cb(0x4fc)](),'selection':Tt(_0x3a168c)}};this[_0x3148cb(0x57a)]['send'](_0x2e6da2,this[_0x3148cb(0x59b)]);},Ks)),(this[_0x16c2b0(0x59b)]=_0x3686e2,this['_session']=_0x30d6ba,this[_0x16c2b0(0x1d8)]=_0x286935,this['_colorAssignService']=_0x4a2ab1,this['_memberService']=_0x365212,this[_0x16c2b0(0x288)]=_0x4e5666,this[_0x16c2b0(0x1ce)]=_0x4ceae1,this[_0x16c2b0(0x56b)]=_0x3a7106,this[_0x16c2b0(0x53a)]=_0x531d4c);}get['cursorInfo'](){const _0x29ee59=_0x1100bd;return this[_0x29ee59(0x434)][_0x29ee59(0x2f0)]();}get[_0x1100bd(0x42c)](){const _0x3cc5f1=_0x1100bd;return this[_0x3cc5f1(0x222)]['getValue']();}[_0x1100bd(0x3d2)](){const _0x50a941=_0x1100bd;super['dispose'](),this['_cursorInfo$'][_0x50a941(0x496)](new Map()),this[_0x50a941(0x434)][_0x50a941(0x3dc)](),this[_0x50a941(0x222)][_0x50a941(0x496)]([]),this[_0x50a941(0x222)][_0x50a941(0x3dc)]();}[_0x1100bd(0x5c3)](){const _0x2f2aa1=_0x1100bd;this[_0x2f2aa1(0x4a0)]||(this[_0x2f2aa1(0x4a0)]=!0x0,this['_session'][_0x2f2aa1(0x48a)][_0x2f2aa1(0x32e)](v['takeUntil'](this[_0x2f2aa1(0x551)]))[_0x2f2aa1(0x1f3)](_0x183f44=>{const _0x3b1382=_0x2f2aa1;_0x183f44===$[_0x3b1382(0x48c)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2f2aa1(0x57a)][_0x2f2aa1(0x448)][_0x2f2aa1(0x32e)](v[_0x2f2aa1(0x23f)](this[_0x2f2aa1(0x551)]))[_0x2f2aa1(0x1f3)](_0x4dd0b2=>{const _0x504b75=_0x2f2aa1,_0x15c4e8=_0x4dd0b2[_0x504b75(0x39c)];_0x15c4e8===_['CollaborationEvent'][_0x504b75(0x2ce)]&&this[_0x504b75(0x440)](_0x4dd0b2),_0x15c4e8===_[_0x504b75(0x55c)][_0x504b75(0x529)]&&this[_0x504b75(0x3d0)](_0x4dd0b2);}),this[_0x2f2aa1(0x40b)](this[_0x2f2aa1(0x53a)]['onCommandExecuted'](_0x2d4b83=>{const _0x194b1a=_0x2f2aa1,_0xed771=_0x2d4b83[_0x194b1a(0x24d)];_0xed771!=null&&this[_0x194b1a(0x3e2)]&&_0x2d4b83['id']===V['SetTextSelectionsOperation']['id']&&_0xed771[_0x194b1a(0x1d1)]===this[_0x194b1a(0x59b)]&&_0xed771[_0x194b1a(0x5b2)]===!0x1&&this['_updateLocalCursor'](_0xed771['ranges']);})),this[_0x2f2aa1(0x288)][_0x2f2aa1(0x3c6)][_0x2f2aa1(0x32e)](v[_0x2f2aa1(0x23f)](this[_0x2f2aa1(0x551)]))[_0x2f2aa1(0x1f3)](_0x34ed2b=>{const _0xe17cd6=_0x2f2aa1;if((_0x34ed2b==null?void 0x0:_0x34ed2b[_0xe17cd6(0x59b)])!==this[_0xe17cd6(0x59b)])return;const _0xf37a26={'eventID':_['CollaborationEvent'][_0xe17cd6(0x2ce)],'data':_0x34ed2b};this[_0xe17cd6(0x440)](_0xf37a26);}),this[_0x2f2aa1(0x40b)](this[_0x2f2aa1(0x53a)]['onCommandExecuted'](_0x4fcefc=>{const _0xab9190=_0x2f2aa1;if(_0x4fcefc['params']==null)return;const _0x4fc7cd=_0x4fcefc['params'];if(_0x4fcefc['id']!==V[_0xab9190(0x249)]['id']||_0x4fc7cd[_0xab9190(0x1d1)]!==this[_0xab9190(0x59b)])return;const _0x21a5f0={'id':_0xab9190(0x2a6),'params':_0x4fc7cd},_0x148489=this[_0xab9190(0x287)];for(const [_0x38ec40,_0x5722da]of _0x148489){const _0x5d2160={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0xab9190(0x59b)],'actions':null,'textRanges':_0x5722da[_0xab9190(0x51b)]}},_0x3bac0c=this[_0xab9190(0x1ce)][_0xab9190(0x356)](_0x21a5f0,_0x5d2160,!0x1);if(_[_0xab9190(0x4c1)](_0x3bac0c))throw _0x3bac0c[_0xab9190(0x3d1)];_0x148489[_0xab9190(0x57e)](_0x38ec40,{..._0x5722da,'ranges':_0x3bac0c[_0xab9190(0x1ca)]['params'][_0xab9190(0x2fa)]});}queueMicrotask(()=>{const _0x5f39a8=_0xab9190;this['_cursorInfo$'][_0x5f39a8(0x496)](_0x148489);});})));}['_onCursorUpdate'](_0x1b46c7){const _0x1289a4=_0x1100bd;var _0x51f38c,_0x38093a;const {memberID:_0x57bc9f,selection:_0x4d6080}=_0x1b46c7['data'],_0x59cd99=Us(_0x4d6080),_0x40fda1=(_0x38093a=(_0x51f38c=this[_0x1289a4(0x1e4)]['getMember'](this[_0x1289a4(0x59b)],_0x57bc9f))==null?void 0x0:_0x51f38c[_0x1289a4(0x38f)])!=null?_0x38093a:_0x1289a4(0x1f5),_0x36426b={'color':this[_0x1289a4(0x333)][_0x1289a4(0x3a7)](_0x57bc9f),'name':_0x40fda1,'ranges':_0x59cd99},_0x193764=this[_0x1289a4(0x287)];_0x193764[_0x1289a4(0x57e)](_0x57bc9f,_0x36426b),this[_0x1289a4(0x434)][_0x1289a4(0x496)](_0x193764);}['_onCursorDelete'](_0x162633){const _0x5a19dd=_0x1100bd,{memberID:_0x11a015}=_0x162633[_0x5a19dd(0x47d)],_0x50d6b0=this[_0x5a19dd(0x287)];_0x50d6b0['delete'](_0x11a015),this[_0x5a19dd(0x434)]['next'](_0x50d6b0);}[_0x1100bd(0x541)](){const _0x4906c0=_0x1100bd;var _0xe502c9;if(this[_0x4906c0(0x3e2)]=!0x0,((_0xe502c9=this[_0x4906c0(0x56b)][_0x4906c0(0x31d)]())==null?void 0x0:_0xe502c9[_0x4906c0(0x401)]())!==this['unitID'])return;const _0x2f5795=this[_0x4906c0(0x1d8)][_0x4906c0(0x1f4)](V[_0x4906c0(0x377)])[_0x4906c0(0x326)]();Array[_0x4906c0(0x57c)](_0x2f5795)&&_0x2f5795[_0x4906c0(0x46d)]>0x0&&this[_0x4906c0(0x460)](_0x2f5795);}[_0x1100bd(0x2b6)](){const _0xd47e8b=_0x1100bd;this[_0xd47e8b(0x3e2)]=!0x1;}};$e=Gs([K(0x2,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),K(0x3,a[_0x1100bd(0x583)](Xe)),K(0x4,a[_0x1100bd(0x583)](q)),K(0x5,a['Inject'](Ye)),K(0x6,_[_0x1100bd(0x38d)]),K(0x7,a[_0x1100bd(0x472)]),K(0x8,a['ICommandService'])],$e);var Xs=Object[_0x1100bd(0x4ed)],qs=Object['getOwnPropertyDescriptor'],zs=(_0x4a0679,_0x273e3e,_0x2702ed,_0x42e0a9)=>{const _0x1a5789=_0x1100bd;for(var _0x557efb=_0x42e0a9>0x1?void 0x0:_0x42e0a9?qs(_0x273e3e,_0x2702ed):_0x273e3e,_0x47620e=_0x4a0679[_0x1a5789(0x46d)]-0x1,_0x1a1823;_0x47620e>=0x0;_0x47620e--)(_0x1a1823=_0x4a0679[_0x47620e])&&(_0x557efb=(_0x42e0a9?_0x1a1823(_0x273e3e,_0x2702ed,_0x557efb):_0x1a1823(_0x557efb))||_0x557efb);return _0x42e0a9&&_0x557efb&&Xs(_0x273e3e,_0x2702ed,_0x557efb),_0x557efb;},Q=(_0x59514e,_0x4b5c5e)=>(_0x4d523e,_0x514b00)=>_0x4b5c5e(_0x4d523e,_0x514b00,_0x59514e);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x161c81=[],_0x53dd72=!0x1;return _0x31d8a3=>{_0x161c81['push'](_0x31d8a3),_0x53dd72||(_0x53dd72=!0x0,setTimeout(()=>{const _0xfb0693=_0x75d2;_0x161c81[_0xfb0693(0x2be)](_0x3cecdd=>_0x3cecdd()),_0x161c81=[],_0x53dd72=!0x1;}));};};let He=class extends a[_0x1100bd(0x1c7)]{constructor(_0x5aa55b,_0x2856b4,_0x2da367,_0x562c4f,_0xf038ce,_0x356619,_0x97b0bc,_0x4ac1e7){const _0x2f1539=_0x1100bd;super(),d(this,_0x2f1539(0x3e2),!0x1),d(this,_0x2f1539(0x4a0),!0x1),d(this,_0x2f1539(0x434),new v[(_0x2f1539(0x240))](new Map())),d(this,_0x2f1539(0x48d),this[_0x2f1539(0x434)][_0x2f1539(0x4c2)]()),d(this,_0x2f1539(0x222),new v[(_0x2f1539(0x240))]([])),d(this,_0x2f1539(0x5ba),this[_0x2f1539(0x222)][_0x2f1539(0x32e)](v[_0x2f1539(0x5ca)](Js))),d(this,_0x2f1539(0x460),a[_0x2f1539(0x2ec)]((_0x42f24e,_0x479725)=>{const _0x17d54b=_0x2f1539,_0x20fbaa={'eventID':_[_0x17d54b(0x55c)][_0x17d54b(0x2ce)],'data':{'unitID':this[_0x17d54b(0x59b)],'memberID':this[_0x17d54b(0x57a)][_0x17d54b(0x4fc)](),'selection':Je[_0x17d54b(0x3fd)](_0x42f24e,_0x479725['range'])}};this[_0x17d54b(0x57a)][_0x17d54b(0x59a)](_0x20fbaa,this['unitID']);},Zs)),(this[_0x2f1539(0x59b)]=_0x5aa55b,this[_0x2f1539(0x57a)]=_0x2856b4,this['_injector']=_0x2da367,this[_0x2f1539(0x333)]=_0x562c4f,this[_0x2f1539(0x1e4)]=_0xf038ce,this['_univerInstanceService']=_0x356619,this['_commandService']=_0x97b0bc,this[_0x2f1539(0x2f8)]=_0x4ac1e7);}get[_0x1100bd(0x287)](){const _0x5b3967=_0x1100bd;return this[_0x5b3967(0x434)][_0x5b3967(0x2f0)]();}get[_0x1100bd(0x42c)](){const _0x3957b5=_0x1100bd;return this[_0x3957b5(0x222)][_0x3957b5(0x2f0)]();}[_0x1100bd(0x3d2)](){const _0x372099=_0x1100bd;super['dispose'](),this[_0x372099(0x434)][_0x372099(0x496)](new Map()),this[_0x372099(0x434)]['complete'](),this['_roomMembers$'][_0x372099(0x496)]([]),this[_0x372099(0x222)][_0x372099(0x3dc)]();}['init'](){const _0x286f5a=_0x1100bd;this[_0x286f5a(0x4a0)]||(this[_0x286f5a(0x4a0)]=!0x0,this[_0x286f5a(0x57a)][_0x286f5a(0x48a)][_0x286f5a(0x32e)](v[_0x286f5a(0x23f)](this['dispose$']))[_0x286f5a(0x1f3)](_0x1827c1=>{const _0x1c0dfc=_0x286f5a;_0x1827c1===$[_0x1c0dfc(0x48c)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x286f5a(0x57a)][_0x286f5a(0x448)][_0x286f5a(0x32e)](v['takeUntil'](this[_0x286f5a(0x551)]))[_0x286f5a(0x1f3)](_0x508c49=>{const _0x479779=_0x286f5a,_0x4aa6fb=_0x508c49[_0x479779(0x39c)];_0x4aa6fb===_[_0x479779(0x55c)][_0x479779(0x2ce)]&&this[_0x479779(0x440)](_0x508c49),_0x4aa6fb===_[_0x479779(0x55c)][_0x479779(0x529)]&&this[_0x479779(0x3d0)](_0x508c49);}),this['_onRefRangeChange'](),this[_0x286f5a(0x40b)](this[_0x286f5a(0x53a)][_0x286f5a(0x231)](_0x263798=>{const _0x1e1cfe=_0x286f5a;if(this[_0x1e1cfe(0x3e2)]&&_0x263798['id']===C[_0x1e1cfe(0x3b7)]['id']&&_0x263798[_0x1e1cfe(0x24d)][_0x1e1cfe(0x1d1)]===this[_0x1e1cfe(0x59b)]){const _0xa3ef21=_0x263798[_0x1e1cfe(0x24d)];this[_0x1e1cfe(0x460)](_0xa3ef21[_0x1e1cfe(0x1b1)],_0xa3ef21['selections'][0x0]);}})));}[_0x1100bd(0x440)](_0x545a93){const _0x10e711=_0x1100bd;var _0x5b8163,_0x22e090;const {memberID:_0x1e5e2d,selection:_0x366001}=_0x545a93['data'],{sheetName:_0x50c919,range:_0x48a003}=Je[_0x10e711(0x5b5)](_0x366001),_0xc53712={'name':(_0x22e090=(_0x5b8163=this[_0x10e711(0x1e4)][_0x10e711(0x379)](this[_0x10e711(0x59b)],_0x1e5e2d))==null?void 0x0:_0x5b8163[_0x10e711(0x38f)])!=null?_0x22e090:_0x10e711(0x1f5),'range':this['_getMergeRange'](_0x50c919,_0x48a003),'sheetID':_0x50c919,'color':this['_colorAssignService'][_0x10e711(0x3a7)](_0x1e5e2d),'selection':_0x366001},_0x5049ca=this[_0x10e711(0x287)];_0x5049ca[_0x10e711(0x57e)](_0x1e5e2d,_0xc53712),this[_0x10e711(0x434)]['next'](_0x5049ca);}['_onCursorDelete'](_0x554782){const _0x3fbc83=_0x1100bd,{memberID:_0x2ebd0f}=_0x554782[_0x3fbc83(0x47d)],_0x5a9ad3=this[_0x3fbc83(0x287)];_0x5a9ad3[_0x3fbc83(0x5bf)](_0x2ebd0f),this['_cursorInfo$'][_0x3fbc83(0x496)](_0x5a9ad3);}[_0x1100bd(0x5c5)](_0x1b5752,_0x1afe65){const _0x2b129a=_0x1100bd;var _0x3eee4b,_0x412134;const _0x4d4f91=(_0x412134=(_0x3eee4b=this[_0x2b129a(0x56b)][_0x2b129a(0x34f)](this[_0x2b129a(0x59b)]))==null?void 0x0:_0x3eee4b[_0x2b129a(0x2a9)](_0x1b5752))==null?void 0x0:_0x412134['getMergeData']();return(_0x4d4f91==null?void 0x0:_0x4d4f91['find'](_0x48c5f1=>a['Rectangle']['contains'](_0x48c5f1,_0x1afe65)))||_0x1afe65;}['_onRefRangeChange'](){const _0x569a3c=_0x1100bd,_0x3fa653=new a['DisposableCollection'](),_0x59df84=Qs(),_0x420eb0=()=>{const _0xd7b883=_0x75d2;_0x3fa653['dispose']();const _0x18a3ae=(_0x4ee339,_0x1f8f18,_0xb6cde8,_0x1f2700)=>{const _0x386cab=_0x75d2;let _0x525e00=[];switch(_0x4ee339['id']){case C[_0x386cab(0x5c1)][_0x386cab(0x23a)]:{_0x525e00=C[_0x386cab(0x423)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)][_0x386cab(0x337)]:{_0x525e00=C[_0x386cab(0x5a5)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x50d)]:{_0x525e00=C[_0x386cab(0x23b)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)][_0x386cab(0x498)]:{_0x525e00=C[_0x386cab(0x357)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)]['InsertRangeMoveRightCommandId']:{_0x525e00=C[_0x386cab(0x1e2)](_0x4ee339,_0x1f2700);break;}case C[_0x386cab(0x5c1)]['InsertRowCommandId']:{_0x525e00=C[_0x386cab(0x345)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x1dd)]:{_0x525e00=C[_0x386cab(0x3c3)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x476)]:{_0x525e00=C[_0x386cab(0x3e4)](_0x4ee339,_0x1f2700);break;}case C['EffectRefRangId'][_0x386cab(0x5b1)]:{_0x525e00=C[_0x386cab(0x54d)](_0x4ee339,_0x1f2700);break;}}const _0x156ff6=C['runRefRangeMutations'](_0x525e00,_0x1f2700),_0x566320=this[_0x386cab(0x287)][_0x386cab(0x1f4)](_0x1f8f18);if(_0x566320&&_0x156ff6){const _0xe5d483={..._0x566320,'range':_0x156ff6};this[_0x386cab(0x287)][_0x386cab(0x57e)](_0x1f8f18,_0xe5d483),_0x59df84(()=>{const _0x184f99=_0x386cab,_0x38a376=this[_0x184f99(0x2f8)]['registerRefRange'](_0x156ff6,_0x15c765=>(_0x38a376[_0x184f99(0x3d2)](),_0x18a3ae(_0x15c765,_0x1f8f18,_0xb6cde8,_0x156ff6)));_0x3fa653[_0x184f99(0x1e0)](_0x38a376);});}return{'redos':[],'undos':[]};};this[_0xd7b883(0x287)]['forEach']((_0x1df220,_0x3b07fb)=>{const _0x41cfb=_0xd7b883,{range:_0x1986fe,sheetID:_0x68a32e}=_0x1df220,_0x2f9d4e=this['_refRangeService']['registerRefRange'](_0x1986fe,_0x10b419=>(_0x2f9d4e['dispose'](),_0x18a3ae(_0x10b419,_0x3b07fb,_0x68a32e,_0x1986fe)));_0x3fa653[_0x41cfb(0x1e0)](_0x2f9d4e);});};this[_0x569a3c(0x40b)](a[_0x569a3c(0x480)](this[_0x569a3c(0x434)][_0x569a3c(0x1f3)](()=>{_0x420eb0();})));}[_0x1100bd(0x541)](){const _0x1e0bf8=_0x1100bd;var _0x538bff,_0x3d3c06;if(this[_0x1e0bf8(0x3e2)]=!0x0,((_0x538bff=this[_0x1e0bf8(0x56b)]['getFocusedUnit']())==null?void 0x0:_0x538bff[_0x1e0bf8(0x401)]())!==this[_0x1e0bf8(0x59b)])return;const _0x47c800=(_0x3d3c06=this[_0x1e0bf8(0x1d8)]['get'](C[_0x1e0bf8(0x52d)])[_0x1e0bf8(0x2ab)]())==null?void 0x0:_0x3d3c06[0x0],_0x1dd23b=this[_0x1e0bf8(0x56b)][_0x1e0bf8(0x5cd)](a[_0x1e0bf8(0x2e9)][_0x1e0bf8(0x293)])[_0x1e0bf8(0x34b)]();_0x47c800&&_0x1dd23b&&this[_0x1e0bf8(0x460)](_0x1dd23b[_0x1e0bf8(0x380)](),_0x47c800);}[_0x1100bd(0x2b6)](){this['_online']=!0x1;}};He=zs([Q(0x2,a[_0x1100bd(0x583)](a['Injector'])),Q(0x3,a[_0x1100bd(0x583)](Xe)),Q(0x4,a[_0x1100bd(0x583)](q)),Q(0x5,a[_0x1100bd(0x472)]),Q(0x6,a[_0x1100bd(0x505)]),Q(0x7,a[_0x1100bd(0x583)](C[_0x1100bd(0x511)]))],He);var ei=Object[_0x1100bd(0x4ed)],ti=Object['getOwnPropertyDescriptor'],si=(_0x59d81f,_0x5400a0,_0x151576,_0x5bdf6d)=>{const _0xf8f3aa=_0x1100bd;for(var _0x30fed1=_0x5bdf6d>0x1?void 0x0:_0x5bdf6d?ti(_0x5400a0,_0x151576):_0x5400a0,_0x2741e4=_0x59d81f[_0xf8f3aa(0x46d)]-0x1,_0x2ae2ff;_0x2741e4>=0x0;_0x2741e4--)(_0x2ae2ff=_0x59d81f[_0x2741e4])&&(_0x30fed1=(_0x5bdf6d?_0x2ae2ff(_0x5400a0,_0x151576,_0x30fed1):_0x2ae2ff(_0x30fed1))||_0x30fed1);return _0x5bdf6d&&_0x30fed1&&ei(_0x5400a0,_0x151576,_0x30fed1),_0x30fed1;},Pe=(_0x3f5dc5,_0x654c9)=>(_0x1e9a4,_0x19da35)=>_0x654c9(_0x1e9a4,_0x19da35,_0x3f5dc5);let ie=class extends a[_0x1100bd(0x1c7)]{constructor(_0x15fd59,_0x8ab495,_0x3087c6){const _0x22f559=_0x1100bd;super(),d(this,_0x22f559(0x51d),new Map()),d(this,'_entityInit$',new v['Subject']()),(this[_0x22f559(0x56b)]=_0x15fd59,this['_injector']=_0x8ab495,this['_collabSessionService']=_0x3087c6,this['_init']());}[_0x1100bd(0x3d2)](){const _0x3d38da=_0x1100bd;super[_0x3d38da(0x3d2)](),this[_0x3d38da(0x568)][_0x3d38da(0x3dc)](),this[_0x3d38da(0x51d)][_0x3d38da(0x2be)](_0xdf9a3a=>_0xdf9a3a['dispose']());}[_0x1100bd(0x271)](_0x53ff09){const _0x2bf628=_0x1100bd;return this[_0x2bf628(0x51d)]['has'](_0x53ff09)?this[_0x2bf628(0x51d)][_0x2bf628(0x1f4)](_0x53ff09)['cursorInfo$']:this['_entityInit$'][_0x2bf628(0x32e)](v[_0x2bf628(0x495)](_0x5d131a=>_0x5d131a[_0x2bf628(0x59b)]===_0x53ff09),v[_0x2bf628(0x35f)](_0x3297ef=>_0x3297ef['cursorInfo$']));}[_0x1100bd(0x4a0)](){const _0x2df713=_0x1100bd;this[_0x2df713(0x56b)][_0x2df713(0x382)](a[_0x2df713(0x2e9)]['UNIVER_SHEET'])[_0x2df713(0x32e)](v[_0x2df713(0x23f)](this['dispose$']))[_0x2df713(0x1f3)](async _0x299be5=>{const _0x33d9d4=_0x2df713,_0x5d1263=_0x299be5[_0x33d9d4(0x401)](),_0x13d3e4=await this[_0x33d9d4(0x265)](_0x5d1263);this[_0x33d9d4(0x568)]['next'](_0x13d3e4),this[_0x33d9d4(0x51d)][_0x33d9d4(0x57e)](_0x5d1263,_0x13d3e4);}),this[_0x2df713(0x56b)][_0x2df713(0x382)](a['UniverInstanceType'][_0x2df713(0x22b)])['pipe'](v[_0x2df713(0x23f)](this['dispose$']))['pipe'](v[_0x2df713(0x495)](_0x3f227b=>!_0x3f227b[_0x2df713(0x401)]()[_0x2df713(0x316)]('__')))[_0x2df713(0x1f3)](async _0x6283cd=>{const _0x1fb65e=_0x2df713,_0xe36588=_0x6283cd[_0x1fb65e(0x401)](),_0x1adc3f=await this['_startDocCollabCursor'](_0xe36588);this[_0x1fb65e(0x568)][_0x1fb65e(0x496)](_0x1adc3f),this[_0x1fb65e(0x51d)][_0x1fb65e(0x57e)](_0xe36588,_0x1adc3f);}),v[_0x2df713(0x4e9)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x2df713(0x2e9)][_0x2df713(0x22b)]),this[_0x2df713(0x56b)]['getTypeOfUnitDisposed$'](a[_0x2df713(0x2e9)][_0x2df713(0x293)]))['pipe'](v[_0x2df713(0x23f)](this['dispose$']))[_0x2df713(0x1f3)](_0x32711a=>{const _0x4d3b5f=_0x2df713,_0x54ec7=_0x32711a['getUnitId'](),_0x47e38a=this[_0x4d3b5f(0x51d)][_0x4d3b5f(0x1f4)](_0x54ec7);_0x47e38a&&(_0x47e38a[_0x4d3b5f(0x3d2)](),this['_entities'][_0x4d3b5f(0x5bf)](_0x54ec7));});}async[_0x1100bd(0x265)](_0x450635){const _0x426267=_0x1100bd,_0x216bad=await this['_collabSessionService'][_0x426267(0x31b)](_0x450635),_0x2ea78f=this[_0x426267(0x1d8)][_0x426267(0x317)](He,_0x450635,_0x216bad);return _0x2ea78f[_0x426267(0x5c3)](),_0x2ea78f;}async[_0x1100bd(0x1ed)](_0x5c4343){const _0x4c53dd=_0x1100bd,_0x3ffbaf=await this[_0x4c53dd(0x2d6)][_0x4c53dd(0x31b)](_0x5c4343),_0x46c5f7=this[_0x4c53dd(0x1d8)]['createInstance']($e,_0x5c4343,_0x3ffbaf);return _0x46c5f7['init'](),_0x46c5f7;}};ie=si([Pe(0x0,a[_0x1100bd(0x472)]),Pe(0x1,a['Inject'](a['Injector'])),Pe(0x2,a[_0x1100bd(0x583)](exports[_0x1100bd(0x532)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x1b355b,_0x59c2c9){const _0x4e70a8=_0x1100bd;let {radius:_0x2b3986,width:_0x40f092,height:_0xf86325}=_0x59c2c9;_0x2b3986=_0x2b3986!=null?_0x2b3986:0x0,_0x40f092=_0x40f092!=null?_0x40f092:0x1e,_0xf86325=_0xf86325!=null?_0xf86325:0x1e;let _0x12d266=0x0,_0x1cc2be=0x0,_0x419812=0x0;_0x12d266=_0x1cc2be=_0x419812=Math[_0x4e70a8(0x36b)](_0x2b3986,_0x40f092/0x2,_0xf86325/0x2),_0x1b355b['beginPath'](),_0x1b355b[_0x4e70a8(0x492)](_0x12d266,0x0),_0x1b355b['lineTo'](_0x40f092-_0x1cc2be,0x0),_0x1b355b[_0x4e70a8(0x3c9)](_0x40f092-_0x1cc2be,_0x1cc2be,_0x1cc2be,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b355b[_0x4e70a8(0x4dd)](_0x40f092,_0xf86325-_0x419812),_0x1b355b['arc'](_0x40f092-_0x419812,_0xf86325-_0x419812,_0x419812,0x0,Math['PI']/0x2,!0x1),_0x1b355b[_0x4e70a8(0x4dd)](0x0,_0xf86325),_0x1b355b[_0x4e70a8(0x4dd)](0x0,_0x12d266),_0x1b355b['arc'](_0x12d266,_0x12d266,_0x12d266,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b355b[_0x4e70a8(0x346)](),_0x59c2c9['fill']&&(_0x1b355b[_0x4e70a8(0x47e)](),_0x1b355b[_0x4e70a8(0x1cf)]=_0x59c2c9['fill'],_0x59c2c9['fillRule']===_0x4e70a8(0x567)?_0x1b355b[_0x4e70a8(0x5b9)]('evenodd'):_0x1b355b[_0x4e70a8(0x5b9)](),_0x1b355b[_0x4e70a8(0x3ab)]());}class Te extends R['Shape']{constructor(_0x2d31fa,_0x5dc394){const _0x11a860=_0x1100bd;super(_0x2d31fa,_0x5dc394),d(this,_0x11a860(0x32a)),d(this,_0x11a860(0x419)),(this[_0x11a860(0x32a)]=_0x5dc394==null?void 0x0:_0x5dc394[_0x11a860(0x32a)],this[_0x11a860(0x419)]=_0x5dc394==null?void 0x0:_0x5dc394[_0x11a860(0x419)]);}static['drawWith'](_0x388b33,_0x328704){const _0x1f2ee5=_0x1100bd,{text:_0xb3d1f0,color:_0x4d9714}=_0x328704;_0x388b33[_0x1f2ee5(0x47e)](),_0x388b33['font']=_0x1f2ee5(0x441);const _0x5b4d90=_0x388b33[_0x1f2ee5(0x43f)](_0xb3d1f0)['width'],_0x5f101b=Math[_0x1f2ee5(0x36b)](_0x5b4d90+0x2*we,rt);ni(_0x388b33,{'height':ue,'radius':0x4,'width':_0x5f101b,'fill':_0x4d9714,'evented':!0x1}),_0x388b33[_0x1f2ee5(0x1cf)]=_0x1f2ee5(0x49a);const _0x487708=we,_0x27edc3=ue-ii,_0x2d8db5=rt-0x2*we;if(_0x5b4d90>_0x2d8db5){let _0x821dad='',_0x224665=0x0;for(const _0x173cea of _0xb3d1f0){const _0x206b45=_0x388b33[_0x1f2ee5(0x43f)](_0x173cea)[_0x1f2ee5(0x37d)];if(_0x224665+_0x206b45<=_0x2d8db5-_0x388b33['measureText']('...')[_0x1f2ee5(0x37d)])_0x821dad+=_0x173cea,_0x224665+=_0x206b45;else{_0x821dad+=_0x1f2ee5(0x48b);break;}}_0x388b33['fillText'](_0x821dad,_0x487708,_0x27edc3);}else _0x388b33[_0x1f2ee5(0x4c9)](_0xb3d1f0,_0x487708,_0x27edc3);_0x388b33[_0x1f2ee5(0x3ab)]();}[_0x1100bd(0x3c8)](_0xfdca0c){Te['drawWith'](_0xfdca0c,this);}}const Me=_0x1100bd(0x341),ri=_0x1100bd(0x5b3),oi=_0x1100bd(0x299),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x1100bd(0x507);class ot{constructor(_0x13419e,_0x2a3d12,_0x18c2a6,_0x5e3dd5){const _0x414ec1=_0x1100bd;d(this,_0x414ec1(0x2c5),[]),d(this,_0x414ec1(0x574),null),d(this,_0x414ec1(0x334),null),d(this,_0x414ec1(0x455),null),d(this,_0x414ec1(0x38a),null),d(this,'_eventUnsubscribe',null),(this[_0x414ec1(0x1e3)]=_0x13419e,this[_0x414ec1(0x4a3)]=_0x2a3d12,this[_0x414ec1(0x368)]=_0x18c2a6,this[_0x414ec1(0x327)]=_0x5e3dd5,this[_0x414ec1(0x4e1)]());}set['_hover'](_0x707536){const _0x2a820d=_0x1100bd;_0x707536?(this[_0x2a820d(0x455)]&&this[_0x2a820d(0x455)]['hide'](),this[_0x2a820d(0x334)]&&this['_textBubble']['show']()):(this[_0x2a820d(0x455)]&&this['_anchorDot'][_0x2a820d(0x1d9)](),this['_textBubble']&&this[_0x2a820d(0x334)][_0x2a820d(0x387)]());}['dispose'](){const _0x19b940=_0x1100bd;for(const _0x1d60f0 of this[_0x19b940(0x2c5)])_0x1d60f0[_0x19b940(0x3d2)]();this[_0x19b940(0x334)]&&this[_0x19b940(0x334)][_0x19b940(0x3d2)](),this['_anchorDot']&&this[_0x19b940(0x455)]['dispose'](),this[_0x19b940(0x574)]&&this['_anchor'][_0x19b940(0x3d2)](),this[_0x19b940(0x412)]&&this[_0x19b940(0x412)]();}[_0x1100bd(0x4e1)](){const _0x5d4887=_0x1100bd;var _0x1a5ba1;const {_docSkeleton:_0x30d83e,_document:_0x407817}=this,{color:_0x2a48ef,name:_0x18792b,ranges:_0x1646bf}=this[_0x5d4887(0x1e3)],_0x3060b4=_0x407817[_0x5d4887(0x2d5)](),{docsLeft:_0x52970f,docsTop:_0x89db56}=_0x3060b4,_0x42d4c9=new w[(_0x5d4887(0x3ef))](_0x3060b4,_0x30d83e);for(const {startOffset:_0x520b20,endOffset:_0x43f5fb,collapsed:_0x2b36d4,isActive:_0x4859fb}of _0x1646bf){const _0x21098b=_0x30d83e[_0x5d4887(0x5c7)](_0x520b20),_0x43bf31=_0x30d83e[_0x5d4887(0x5c7)](_0x43f5fb);if(_0x4859fb){const {contentBoxPointGroup:_0x23bab7}=_0x42d4c9['getRangePointData'](_0x43bf31,_0x43bf31);if(_0x23bab7['length']===0x0)continue;this[_0x5d4887(0x43b)](_0x2a48ef,_0x23bab7,_0x52970f,_0x89db56,_0x18792b),this[_0x5d4887(0x412)]=this[_0x5d4887(0x2f2)]();}if(!_0x2b36d4&&_0x21098b&&_0x43bf31){if(w[_0x5d4887(0x572)](_0x21098b,_0x43bf31)){const _0x2647c9=new w['NodePositionConvertToRectRange'](_0x3060b4,_0x30d83e),{pointGroup:_0x2ac4e4}=(_0x1a5ba1=_0x2647c9[_0x5d4887(0x53b)](_0x21098b,_0x43bf31))!=null?_0x1a5ba1:{};if(_0x2ac4e4==null||_0x2ac4e4[_0x5d4887(0x46d)]===0x0)continue;this['_drawRectRange'](_0x2a48ef,_0x2ac4e4,_0x52970f,_0x89db56);}else{const {contentBoxPointGroup:_0x2ed598}=_0x42d4c9[_0x5d4887(0x53b)](_0x21098b,_0x43bf31);if(_0x2ed598[_0x5d4887(0x46d)]===0x0)continue;this[_0x5d4887(0x45b)](_0x2a48ef,_0x2ed598,_0x52970f,_0x89db56);}}}}['_drawAnchor'](_0x29b283,_0x245b50,_0x2a4437,_0x1ffcc9,_0xd767b4){const _0x2f651a=_0x1100bd,_0x176c98=this[_0x2f651a(0x514)](_0x245b50),{left:_0x19b6ca,top:_0x9f5b6b,height:_0x57ef69}=_0x176c98,_0x17a698=this[_0x2f651a(0x3d7)](),_0x5d793c=ci/_0x17a698,_0x17abec=new R[(_0x2f651a(0x3c5))](Me+a[_0x2f651a(0x4fb)]['generateRandomId'](ce),{'left':_0x19b6ca+_0x2a4437-_0x5d793c,'top':_0x9f5b6b+_0x1ffcc9,'height':_0x57ef69,'width':ai,'fill':_0x29b283||R[_0x2f651a(0x474)](a[_0x2f651a(0x558)][_0x2f651a(0x2fd)],0x0),'strokeWidth':_0x5d793c,'stroke':li,'evented':!0x0});this[_0x2f651a(0x574)]=_0x17abec,this[_0x2f651a(0x4a3)][_0x2f651a(0x500)](_0x17abec,w[_0x2f651a(0x482)]);const _0x3a70f5=new R['Rect'](Me+a[_0x2f651a(0x4fb)][_0x2f651a(0x552)](ce),{'left':_0x19b6ca+_0x2a4437-_0x5d793c,'top':_0x9f5b6b+_0x1ffcc9-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x29b283||R[_0x2f651a(0x474)](a[_0x2f651a(0x558)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x29b283||R[_0x2f651a(0x474)](a['COLORS'][_0x2f651a(0x2fd)],0x0),'evented':!0x1});this[_0x2f651a(0x455)]=_0x3a70f5,this[_0x2f651a(0x4a3)][_0x2f651a(0x500)](_0x3a70f5,w[_0x2f651a(0x482)]);const _0x2aad7d=new Te(Me+a['Tools'][_0x2f651a(0x552)](ce),{'left':_0x19b6ca+_0x2a4437-_0x5d793c,'top':_0x9f5b6b+_0x1ffcc9-ue,'text':_0xd767b4,'color':_0x29b283});this[_0x2f651a(0x334)]=_0x2aad7d,this['_scene'][_0x2f651a(0x500)](_0x2aad7d,w['TEXT_RANGE_LAYER_INDEX']),this[_0x2f651a(0x4b9)]=!0x1;}['_handleHover'](){const _0x5cee7d=_0x1100bd,_0x4e2476=this[_0x5cee7d(0x574)][_0x5cee7d(0x25c)][_0x5cee7d(0x202)](()=>{const _0x45efd=_0x5cee7d;this[_0x45efd(0x4b9)]=!0x0;}),_0x529d33=this[_0x5cee7d(0x574)]['onPointerLeave$'][_0x5cee7d(0x202)](()=>{const _0x1882dd=_0x5cee7d;this[_0x1882dd(0x38a)]&&clearTimeout(this[_0x1882dd(0x38a)]),this[_0x1882dd(0x38a)]=setTimeout(()=>{const _0x234227=_0x1882dd;this[_0x234227(0x4b9)]=!0x1;},0x7d0);});return()=>{const _0x296c09=_0x5cee7d;_0x4e2476[_0x296c09(0x595)](),_0x529d33[_0x296c09(0x595)]();};}[_0x1100bd(0x45b)](_0x1dc304,_0x2a85aa,_0x312cae,_0x111190){const _0x5d2d65=_0x1100bd,_0x526bca=new a[(_0x5d2d65(0x30c))](_0x1dc304)['setAlpha'](0.2)[_0x5d2d65(0x22e)](),_0x5c635a=new R[(_0x5d2d65(0x3c7))](ri+a[_0x5d2d65(0x4fb)][_0x5d2d65(0x552)](ce),{'pointsGroup':_0x2a85aa,'fill':_0x526bca||R[_0x5d2d65(0x474)](a['COLORS']['black'],0.2),'left':_0x312cae,'top':_0x111190,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5d2d65(0x2c5)]['push'](_0x5c635a),this['_scene'][_0x5d2d65(0x500)](_0x5c635a,w['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x27e471,_0x401289,_0x55d48a,_0x23bf98){const _0x586bf8=_0x1100bd,_0x5cfc2c=new a[(_0x586bf8(0x30c))](_0x27e471)[_0x586bf8(0x415)](0.2)['toRgbString'](),_0x126af0=new R[(_0x586bf8(0x3c7))](oi+a[_0x586bf8(0x4fb)][_0x586bf8(0x552)](ce),{'pointsGroup':_0x401289,'fill':_0x5cfc2c||R[_0x586bf8(0x474)](a[_0x586bf8(0x558)][_0x586bf8(0x2fd)],0.2),'left':_0x55d48a,'top':_0x23bf98,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x586bf8(0x2c5)]['push'](_0x126af0),this[_0x586bf8(0x4a3)]['addObject'](_0x126af0,w[_0x586bf8(0x482)]);}[_0x1100bd(0x514)](_0x499f4b){const _0x33bd9b=_0x499f4b[0x0],_0x3e2d84=_0x33bd9b[0x0],_0x58754f=_0x33bd9b[0x2],{x:_0x49d483,y:_0x2f9009}=_0x3e2d84,{x:_0x34a424,y:_0x5a8cfb}=_0x58754f;return{'left':_0x49d483,'top':_0x2f9009,'width':_0x34a424-_0x49d483,'height':_0x5a8cfb-_0x2f9009};}[_0x1100bd(0x3d7)](){const _0x27eb51=_0x1100bd,{scaleX:_0x2dde12,scaleY:_0x2cd8a8}=this['_scene'][_0x27eb51(0x4e3)]();return Math[_0x27eb51(0x212)](_0x2dde12,_0x2cd8a8);}}var hi=Object[_0x1100bd(0x4ed)],_i=Object[_0x1100bd(0x444)],ui=(_0x4b21ac,_0x5826ca,_0x3a8dc2,_0x2b9cb9)=>{for(var _0x39139b=_0x2b9cb9>0x1?void 0x0:_0x2b9cb9?_i(_0x5826ca,_0x3a8dc2):_0x5826ca,_0x4768bd=_0x4b21ac['length']-0x1,_0x350fe5;_0x4768bd>=0x0;_0x4768bd--)(_0x350fe5=_0x4b21ac[_0x4768bd])&&(_0x39139b=(_0x2b9cb9?_0x350fe5(_0x5826ca,_0x3a8dc2,_0x39139b):_0x350fe5(_0x39139b))||_0x39139b);return _0x2b9cb9&&_0x39139b&&hi(_0x5826ca,_0x3a8dc2,_0x39139b),_0x39139b;},de=(_0x48669d,_0x5915a9)=>(_0x384fa1,_0x32dce5)=>_0x5915a9(_0x384fa1,_0x32dce5,_0x48669d);let xe=class extends a[_0x1100bd(0x1c7)]{constructor(_0x3d57d4,_0x647a5a,_0x3c7cce,_0x5c15af,_0x2103d7){const _0x4c914d=_0x1100bd;super(),d(this,_0x4c914d(0x596),[]),d(this,'_cursors',[]),(this[_0x4c914d(0x2c2)]=_0x3d57d4,this[_0x4c914d(0x3c0)]=_0x647a5a,this[_0x4c914d(0x471)]=_0x3c7cce,this['_commandService']=_0x5c15af,this[_0x4c914d(0x1b5)]=_0x2103d7,this[_0x4c914d(0x4a0)]());}[_0x1100bd(0x4a0)](){const _0x456053=_0x1100bd,_0x295e13=this[_0x456053(0x2c2)]['unitId'],_0x274988=this[_0x456053(0x3c0)];this[_0x456053(0x40b)](v[_0x456053(0x56c)]([this['_collabCursorController'][_0x456053(0x271)](_0x295e13),this[_0x456053(0x1b5)][_0x456053(0x2d8)]])['pipe'](E[_0x456053(0x4c4)](([_0x43f5fa,_0x228315])=>({'skeleton':_0x274988[_0x456053(0x4da)](),'cursors':[..._0x43f5fa[_0x456053(0x315)]()][_0x456053(0x1fa)](_0x115e12=>({..._0x115e12,'color':_0x228315[_0x115e12['color']]}))})))['subscribe'](_0x5173d6=>{const _0x2e3055=_0x456053;if(this[_0x2e3055(0x1c2)](),_0x5173d6){const {skeleton:_0x2445db,cursors:_0x1b9dba}=_0x5173d6;this[_0x2e3055(0x4d4)](_0x2445db,_0x1b9dba);}})),this[_0x456053(0x58b)](),this[_0x456053(0x1c5)]();}['_updateCollabCursors'](_0x7c01a8,_0x1e7664){const _0x4785c7=_0x1100bd,{scene:_0x10768e,mainComponent:_0x5cc882}=this[_0x4785c7(0x2c2)],_0x214ab6=_0x1e7664['map'](_0x51625a=>new ot(_0x51625a,_0x10768e,_0x7c01a8,_0x5cc882));this[_0x4785c7(0x596)]=_0x214ab6,this[_0x4785c7(0x2a2)]=_0x1e7664;}['_refreshCollabCursors'](){const _0x5b5ef5=_0x1100bd;this[_0x5b5ef5(0x1c2)]();const {scene:_0x1d6c9e,mainComponent:_0x53b148}=this[_0x5b5ef5(0x2c2)],_0x2099d0=this[_0x5b5ef5(0x3c0)][_0x5b5ef5(0x4da)](),_0x527183=this[_0x5b5ef5(0x2a2)][_0x5b5ef5(0x4c4)](_0x159e4e=>new ot(_0x159e4e,_0x1d6c9e,_0x2099d0,_0x53b148));this[_0x5b5ef5(0x596)]=_0x527183;}[_0x1100bd(0x1c2)](){const _0x521b65=_0x1100bd;this[_0x521b65(0x596)][_0x521b65(0x2be)](_0x6db467=>_0x6db467[_0x521b65(0x3d2)]()),this[_0x521b65(0x596)]=[];}[_0x1100bd(0x1c5)](){const _0x23a27d=_0x1100bd,_0x18b62f=[w[_0x23a27d(0x58a)]['id']];this[_0x23a27d(0x40b)](this[_0x23a27d(0x53a)][_0x23a27d(0x231)](_0x2313b0=>{const _0x31a3dd=_0x23a27d;_0x18b62f[_0x31a3dd(0x360)](_0x2313b0['id'])&&_0x2313b0[_0x31a3dd(0x24d)][_0x31a3dd(0x1d1)]===this[_0x31a3dd(0x2c2)][_0x31a3dd(0x1d1)]&&this['_refreshCollabCursors']();}));}[_0x1100bd(0x58b)](){const _0x3b6104=_0x1100bd;this[_0x3b6104(0x40b)](a['fromEventSubject'](this[_0x3b6104(0x2c2)]['engine'][_0x3b6104(0x437)])['pipe'](E[_0x3b6104(0x495)](_0x329c64=>_0x329c64[_0x3b6104(0x525)]===R[_0x3b6104(0x521)][_0x3b6104(0x41d)]),E[_0x3b6104(0x2a0)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};xe=ui([de(0x1,a[_0x1100bd(0x583)](V[_0x1100bd(0x2f6)])),de(0x2,a[_0x1100bd(0x583)](ie)),de(0x3,a[_0x1100bd(0x505)]),de(0x4,a[_0x1100bd(0x583)](a['ThemeService']))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x1100bd(0x1fb)]{constructor(_0x2255d3,_0x3b2413){const _0x5774ad=_0x1100bd;super(_0x2255d3,_0x3b2413),d(this,_0x5774ad(0x4be)),d(this,_0x5774ad(0x3d5),!0x1),d(this,_0x5774ad(0x487)),d(this,_0x5774ad(0x369),''),d(this,_0x5774ad(0x4a6),_0x5774ad(0x503)),d(this,'_backgroundColor'),(_0x3b2413&&this[_0x5774ad(0x3bf)](_0x3b2413),this[_0x5774ad(0x25c)][_0x5774ad(0x202)](()=>this[_0x5774ad(0x3bf)]({'hovered':!0x0})),this[_0x5774ad(0x308)]['subscribeEvent'](()=>this[_0x5774ad(0x3bf)]({'hovered':!0x1})));}[_0x1100bd(0x3bf)](_0x30828d){const _0x3b40bd=_0x1100bd;var _0x531e84,_0x327ba1,_0x1ee149,_0x5cbe75,_0x555529,_0x31aaad;this['_color']=(_0x531e84=_0x30828d['color'])!=null?_0x531e84:this['_color'],this[_0x3b40bd(0x3d5)]=(_0x327ba1=_0x30828d['hovered'])!=null?_0x327ba1:this[_0x3b40bd(0x3d5)],this[_0x3b40bd(0x487)]=(_0x1ee149=_0x30828d[_0x3b40bd(0x528)])!=null?_0x1ee149:this[_0x3b40bd(0x487)],this['_name']=(_0x5cbe75=_0x30828d[_0x3b40bd(0x38f)])!=null?_0x5cbe75:this[_0x3b40bd(0x369)],this['_labelPosition']=(_0x555529=_0x30828d['labelPosition'])!=null?_0x555529:this[_0x3b40bd(0x4a6)],this[_0x3b40bd(0x295)]=(_0x31aaad=_0x30828d['backgroundColor'])!=null?_0x31aaad:this[_0x3b40bd(0x295)],this[_0x3b40bd(0x280)]({'width':_0x30828d[_0x3b40bd(0x37d)],'height':_0x30828d['height']});}[_0x1100bd(0x232)](_0x39d5cf){const _0x4e2bc8=_0x1100bd,{row:_0x19685e,column:_0x56c6e2}=_0x39d5cf;if(_0x19685e>=this[_0x4e2bc8(0x487)][_0x4e2bc8(0x279)]&&_0x19685e<=this['_range'][_0x4e2bc8(0x49d)]&&_0x56c6e2>=this[_0x4e2bc8(0x487)]['startColumn']&&_0x56c6e2<=this[_0x4e2bc8(0x487)][_0x4e2bc8(0x591)]){this[_0x4e2bc8(0x3bf)]({'hovered':!0x0});return;}this[_0x4e2bc8(0x3bf)]({'hovered':!0x1});}[_0x1100bd(0x1f0)](_0x493249){return!0x1;}[_0x1100bd(0x3c8)](_0x345414){const _0x5d3b82=_0x1100bd;R[_0x5d3b82(0x3c5)][_0x5d3b82(0x2f7)](_0x345414,{'width':this['width'],'height':this[_0x5d3b82(0x1bb)],'strokeWidth':Si,'stroke':this[_0x5d3b82(0x4be)],'evented':!0x1,'fill':this[_0x5d3b82(0x295)]}),this[_0x5d3b82(0x3d5)]&&(_0x345414['save'](),_0x345414['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x5d3b82(0x1e9)?0x0:-ue),Te[_0x5d3b82(0x2f7)](_0x345414,{'text':this[_0x5d3b82(0x369)],'color':this[_0x5d3b82(0x4be)]}),_0x345414[_0x5d3b82(0x3ab)]());}}var vi=Object[_0x1100bd(0x4ed)],fi=Object[_0x1100bd(0x444)],gi=(_0x8bb7ec,_0x354539,_0x3f3ed3,_0x1ff44d)=>{for(var _0x142853=_0x1ff44d>0x1?void 0x0:_0x1ff44d?fi(_0x354539,_0x3f3ed3):_0x354539,_0x5dd140=_0x8bb7ec['length']-0x1,_0x2b201d;_0x5dd140>=0x0;_0x5dd140--)(_0x2b201d=_0x8bb7ec[_0x5dd140])&&(_0x142853=(_0x1ff44d?_0x2b201d(_0x354539,_0x3f3ed3,_0x142853):_0x2b201d(_0x142853))||_0x142853);return _0x1ff44d&&_0x142853&&vi(_0x354539,_0x3f3ed3,_0x142853),_0x142853;},Ae=(_0x45482b,_0x232aa8)=>(_0x57479b,_0x454e0c)=>_0x232aa8(_0x57479b,_0x454e0c,_0x45482b);const mi=0x1389;let ke=class extends a[_0x1100bd(0x1c7)]{constructor(_0x19b9ab,_0x41c869,_0x524726,_0xd93ea){const _0x2047a6=_0x1100bd;super(),d(this,_0x2047a6(0x2a2),new Set()),d(this,_0x2047a6(0x3a0),null),(this[_0x2047a6(0x2c2)]=_0x19b9ab,this['_sheetSkeletonManagerService']=_0x41c869,this[_0x2047a6(0x471)]=_0x524726,this[_0x2047a6(0x1b5)]=_0xd93ea,this[_0x2047a6(0x4a0)]());}[_0x1100bd(0x4a0)](){const _0xccefe2=_0x1100bd;this[_0xccefe2(0x1eb)][_0xccefe2(0x20a)][_0xccefe2(0x32e)](E[_0xccefe2(0x23f)](this[_0xccefe2(0x551)]),E[_0xccefe2(0x35f)](_0x592cb3=>{const _0x405113=_0xccefe2;if(_0x592cb3){const _0x3d528b=_0x592cb3['sheetId'];return v[_0x405113(0x56c)](this[_0x405113(0x471)][_0x405113(0x271)](this['_context'][_0x405113(0x1d1)]),this[_0x405113(0x1b5)][_0x405113(0x2d8)])[_0x405113(0x32e)](E[_0x405113(0x4c4)](([_0x532c2e,_0x148fc2])=>{const _0x5a3b8f=_0x405113,_0x58fa71=new Map();return _0x532c2e[_0x5a3b8f(0x2be)]((_0x5853b0,_0x34fce)=>{const _0x409052=_0x5a3b8f;if(_0x5853b0[_0x409052(0x306)]===_0x3d528b){const _0x5101d6={..._0x5853b0};_0x5101d6[_0x409052(0x32a)]=_0x148fc2[_0x5853b0['color']],_0x58fa71[_0x409052(0x57e)](_0x34fce,_0x5101d6);}}),{'skeleton':_0x592cb3,'cursors':_0x58fa71};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1bf2fe,cursors:_0x260cf2})=>{const _0x1dd25f=_0xccefe2;this[_0x1dd25f(0x1c2)](),_0x1bf2fe&&this[_0x1dd25f(0x4d4)](_0x1bf2fe,_0x260cf2);}),this[_0xccefe2(0x1eb)][_0xccefe2(0x20a)][_0xccefe2(0x1f3)](_0x543963=>{const _0xc979a2=_0xccefe2;if(_0x543963==null)return;const {skeleton:_0x14ff5e}=_0x543963,{scene:_0x3196e9}=this[_0xc979a2(0x2c2)];_0x3196e9[_0xc979a2(0x385)][_0xc979a2(0x202)](a[_0xc979a2(0x2ec)](_0x2ada08=>{const _0x3719a3=_0xc979a2;var _0x46784f,_0x273c1f;const {offsetX:_0x8a1ba4,offsetY:_0x355ec8}=_0x2ada08,{x:_0x41d821,y:_0x304779}=_0x3196e9[_0x3719a3(0x1ec)](R['Vector2'][_0x3719a3(0x41c)]([_0x8a1ba4,_0x355ec8])),{scaleX:_0x4a5d89,scaleY:_0x4b13fe}=_0x3196e9[_0x3719a3(0x4e3)](),_0x1a585e=_0x3196e9[_0x3719a3(0x49f)](te[_0x3719a3(0x371)][_0x3719a3(0x4b0)]),_0xf13ead=_0x3196e9[_0x3719a3(0x220)](R[_0x3719a3(0x488)][_0x3719a3(0x41c)]([_0x41d821,_0x304779]),_0x1a585e),_0x298d68=_0x14ff5e['getCellPositionByOffset'](_0x8a1ba4,_0x355ec8,_0x4a5d89,_0x4b13fe,_0xf13ead);((_0x46784f=this[_0x3719a3(0x3a0)])==null?void 0x0:_0x46784f[_0x3719a3(0x1f6)])===_0x298d68['column']&&((_0x273c1f=this[_0x3719a3(0x3a0)])==null?void 0x0:_0x273c1f['row'])===_0x298d68['row']||this[_0x3719a3(0x2a2)][_0x3719a3(0x2be)](_0xc99b00=>{const _0x2e3a70=_0x3719a3;_0xc99b00[_0x2e3a70(0x232)](_0x298d68);});},0x64));});}[_0x1100bd(0x4d4)](_0x39c77f,_0x177824){const _0x2a5056=_0x1100bd;var _0x31dfb0;const _0x32e5a6=(_0x31dfb0=this[_0x2a5056(0x1eb)][_0x2a5056(0x2c3)]())==null?void 0x0:_0x31dfb0[_0x2a5056(0x2cc)];if(!_0x32e5a6)return;const _0x5251d0=this[_0x2a5056(0x221)]();if(!_0x5251d0)return;this[_0x2a5056(0x2a2)][_0x2a5056(0x2be)](_0x3cf64c=>{const _0x3a3834=_0x2a5056;_0x3cf64c[_0x3a3834(0x553)]();});const {scene:_0x3ea911}=_0x5251d0,_0x29f325=Ii(Array[_0x2a5056(0x2c0)](_0x177824[_0x2a5056(0x315)]()))['map'](_0x49875a=>{const _0x31a3fb=_0x2a5056,{color:_0x180c51,range:_0x307db3,name:_0xeb76ed,selection:_0x53cff0,sheetID:_0xf87dd1}=_0x49875a,{startColumn:_0x768b49,startRow:_0x3ed2e8,endColumn:_0x1abb2d,endRow:_0x54686b}=_0x307db3,_0x3557d2=te[_0x31a3fb(0x2db)](_0x3ed2e8,_0x768b49,_0x3ea911,_0x32e5a6),_0x3b3e7f=te['getCoordByCell'](_0x54686b,_0x1abb2d,_0x3ea911,_0x32e5a6),{columnHeaderHeightAndMarginTop:_0x12b006}=_0x32e5a6,{startX:_0x201956,startY:_0x8209fa}=_0x3557d2,{endX:_0x1ae6fc,endY:_0x24bf9b}=_0x3b3e7f,_0x67e3c2=_0x1ae6fc-_0x201956,_0x501ec6=_0x24bf9b-_0x8209fa,_0x5b87f7={'labelPosition':_0x8209fa-_0x12b006>=ue?_0x31a3fb(0x503):_0x31a3fb(0x1e9),'sheetID':_0xf87dd1,'range':_0x307db3,'color':_0x180c51,'name':_0xeb76ed,'selection':_0x53cff0,'left':_0x201956,'top':_0x8209fa,'width':_0x67e3c2,'height':_0x501ec6,'evented':!0x1,'zIndex':mi};return new Ot(_0xeb76ed,_0x5b87f7);});_0x3ea911[_0x2a5056(0x55e)](_0x29f325,di),this['_cursors']=new Set(_0x29f325);}['_removeCollabCursors'](){const _0x3fddaa=_0x1100bd;var _0x475924;(_0x475924=this['_cursors'])==null||_0x475924['forEach'](_0xbc20=>_0xbc20[_0x3fddaa(0x3d2)]());}[_0x1100bd(0x221)](){const _0x584bde=_0x1100bd;return te[_0x584bde(0x253)](this[_0x584bde(0x2c2)]['unit'],this[_0x584bde(0x2c2)]);}};ke=gi([Ae(0x1,a[_0x1100bd(0x583)](te[_0x1100bd(0x344)])),Ae(0x2,a[_0x1100bd(0x583)](ie)),Ae(0x3,a[_0x1100bd(0x583)](a[_0x1100bd(0x5b6)]))],ke);function Ii(_0x724f0){const _0x2703c8=_0x1100bd,_0x3cd546=new Map();return _0x724f0[_0x2703c8(0x2be)](_0x8b18ee=>{const _0x204b44=_0x2703c8;if(_0x3cd546['has'](_0x8b18ee[_0x204b44(0x2d4)])){const _0x29cf17=_0x3cd546[_0x204b44(0x1f4)](_0x8b18ee['selection']);_0x29cf17['name']+=',\x20'+_0x8b18ee[_0x204b44(0x38f)];}else _0x3cd546['set'](_0x8b18ee[_0x204b44(0x2d4)],_0x8b18ee);}),Array[_0x2703c8(0x2c0)](_0x3cd546[_0x2703c8(0x315)]());}var M=function(){const _0x1c9690=_0x1100bd;return M=Object[_0x1c9690(0x45a)]||function(_0x4d5ee1){const _0x58648c=_0x1c9690;for(var _0x234044,_0x3e862b=0x1,_0x50ec08=arguments[_0x58648c(0x46d)];_0x3e862b<_0x50ec08;_0x3e862b++){_0x234044=arguments[_0x3e862b];for(var _0x4746bf in _0x234044)Object['prototype'][_0x58648c(0x468)][_0x58648c(0x28c)](_0x234044,_0x4746bf)&&(_0x4d5ee1[_0x4746bf]=_0x234044[_0x4746bf]);}return _0x4d5ee1;},M[_0x1c9690(0x4f7)](this,arguments);},pi=function(_0x4635c6,_0x4433bf){const _0x377475=_0x1100bd;var _0x1bbd75={};for(var _0x6f81ce in _0x4635c6)Object[_0x377475(0x52f)][_0x377475(0x468)]['call'](_0x4635c6,_0x6f81ce)&&_0x4433bf[_0x377475(0x491)](_0x6f81ce)<0x0&&(_0x1bbd75[_0x6f81ce]=_0x4635c6[_0x6f81ce]);if(_0x4635c6!=null&&typeof Object[_0x377475(0x2ac)]=='function'){for(var _0x330111=0x0,_0x6f81ce=Object['getOwnPropertySymbols'](_0x4635c6);_0x330111<_0x6f81ce[_0x377475(0x46d)];_0x330111++)_0x4433bf[_0x377475(0x491)](_0x6f81ce[_0x330111])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x377475(0x28c)](_0x4635c6,_0x6f81ce[_0x330111])&&(_0x1bbd75[_0x6f81ce[_0x330111]]=_0x4635c6[_0x6f81ce[_0x330111]]);}return _0x1bbd75;},qe=U['forwardRef'](function(_0x24fbd4,_0x434180){const _0xbd0db9=_0x1100bd;var _0x2855aa=_0x24fbd4[_0xbd0db9(0x3b6)],_0x45001a=_0x24fbd4['id'],_0xf024b6=_0x24fbd4[_0xbd0db9(0x2e6)],_0x1ec45f=_0x24fbd4[_0xbd0db9(0x30e)],_0xa0e4bf=pi(_0x24fbd4,[_0xbd0db9(0x3b6),'id',_0xbd0db9(0x2e6),'extend']),_0x1c3d5b=_0xbd0db9(0x2bb)[_0xbd0db9(0x486)](_0x45001a,'\x20')['concat'](_0xf024b6||'')[_0xbd0db9(0x273)](),_0x1fca53=U[_0xbd0db9(0x402)]('_'['concat'](bi()));return Dt(_0x2855aa,''['concat'](_0x45001a),{'defIds':_0x2855aa[_0xbd0db9(0x4af)],'idSuffix':_0x1fca53[_0xbd0db9(0x501)]},M({'ref':_0x434180,'className':_0x1c3d5b},_0xa0e4bf),_0x1ec45f);});function Dt(_0x1011d8,_0xaf868c,_0x256270,_0x489f42,_0x369a73){const _0x266b87=_0x1100bd;return U['createElement'](_0x1011d8[_0x266b87(0x277)],M(M({'key':_0xaf868c},Ci(_0x1011d8,_0x256270,_0x369a73)),_0x489f42),(Ei(_0x1011d8,_0x256270)[_0x266b87(0x205)]||[])[_0x266b87(0x4c4)](function(_0x1ebd8b,_0x1545ca){const _0x4b2dc6=_0x266b87;return Dt(_0x1ebd8b,''['concat'](_0xaf868c,'-')['concat'](_0x1011d8[_0x4b2dc6(0x277)],'-')[_0x4b2dc6(0x486)](_0x1545ca),_0x256270,void 0x0,_0x369a73);}));}function Ci(_0xf7a023,_0x1478a4,_0x3a4638){const _0x396260=_0x1100bd;var _0x5833ed=M({},_0xf7a023['attrs']);_0x3a4638!=null&&_0x3a4638['colorChannel1']&&_0x5833ed[_0x396260(0x5b9)]===_0x396260(0x4d0)&&(_0x5833ed[_0x396260(0x5b9)]=_0x3a4638[_0x396260(0x4d0)]);var _0x54fa6a=_0x1478a4[_0x396260(0x4af)];return!_0x54fa6a||_0x54fa6a['length']===0x0||(_0xf7a023['tag']==='use'&&_0x5833ed[_0x396260(0x1bf)]&&(_0x5833ed['xlink:href']=_0x5833ed[_0x396260(0x1bf)]+_0x1478a4[_0x396260(0x416)]),Object[_0x396260(0x208)](_0x5833ed)[_0x396260(0x2be)](function(_0x5b138f){const _0x420cb3=_0x396260;var _0x1d92e5=_0x5b138f[0x0],_0x3aa45d=_0x5b138f[0x1];typeof _0x3aa45d==_0x420cb3(0x54c)&&(_0x5833ed[_0x1d92e5]=_0x3aa45d['replace'](/url\(#(.*)\)/,_0x420cb3(0x57f)[_0x420cb3(0x486)](_0x1478a4[_0x420cb3(0x416)],')')));})),_0x5833ed;}function Ei(_0x21d633,_0x4dda7b){const _0x2c150d=_0x1100bd;var _0x5ba466,_0x4467ef=_0x4dda7b['defIds'];return!_0x4467ef||_0x4467ef[_0x2c150d(0x46d)]===0x0?_0x21d633:_0x21d633[_0x2c150d(0x277)]===_0x2c150d(0x23d)&&(!((_0x5ba466=_0x21d633['children'])===null||_0x5ba466===void 0x0)&&_0x5ba466[_0x2c150d(0x46d)])?M(M({},_0x21d633),{'children':_0x21d633[_0x2c150d(0x205)][_0x2c150d(0x4c4)](function(_0x20fbd5){const _0x6e52ad=_0x2c150d;return typeof _0x20fbd5[_0x6e52ad(0x2dd)]['id']=='string'&&_0x4467ef&&_0x4467ef[_0x6e52ad(0x491)](_0x20fbd5[_0x6e52ad(0x2dd)]['id'])>-0x1?M(M({},_0x20fbd5),{'attrs':M(M({},_0x20fbd5[_0x6e52ad(0x2dd)]),{'id':_0x20fbd5['attrs']['id']+_0x4dda7b[_0x6e52ad(0x416)]})}):_0x20fbd5;})}):_0x21d633;}function bi(){const _0x3e772a=_0x1100bd;return Math['random']()[_0x3e772a(0x431)](0x24)[_0x3e772a(0x506)](0x2,0x8);}qe[_0x1100bd(0x430)]=_0x1100bd(0x219);var Ti={'tag':_0x1100bd(0x2e8),'attrs':{'fill':_0x1100bd(0x210),'viewBox':_0x1100bd(0x2ba),'width':_0x1100bd(0x450),'height':_0x1100bd(0x450)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x1100bd(0x593),'strokeLinejoin':_0x1100bd(0x593),'strokeWidth':1.2}}]},{'tag':_0x1100bd(0x23d),'attrs':{},'children':[{'tag':_0x1100bd(0x4ff),'attrs':{'id':_0x1100bd(0x386)},'children':[{'tag':_0x1100bd(0x21d),'attrs':{'fill':_0x1100bd(0x5a7),'d':_0x1100bd(0x39e)}}]}]}],'defIds':[_0x1100bd(0x386)]},yt=U[_0x1100bd(0x467)](function(_0x36d226,_0x49b08c){const _0x25f4ae=_0x1100bd;return U[_0x25f4ae(0x37f)](qe,Object[_0x25f4ae(0x45a)]({},_0x36d226,{'id':_0x25f4ae(0x1db),'ref':_0x49b08c,'icon':Ti}));});yt[_0x1100bd(0x430)]=_0x1100bd(0x41e);var Ri={'tag':_0x1100bd(0x2e8),'attrs':{'fill':_0x1100bd(0x210),'viewBox':_0x1100bd(0x310),'width':_0x1100bd(0x450),'height':_0x1100bd(0x450)},'children':[{'tag':'g','attrs':{'clipPath':_0x1100bd(0x3a9)},'children':[{'tag':_0x1100bd(0x21d),'attrs':{'stroke':'currentColor','d':_0x1100bd(0x260),'strokeLinecap':_0x1100bd(0x593),'strokeLinejoin':_0x1100bd(0x593),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1100bd(0x4ff),'attrs':{'id':_0x1100bd(0x309)},'children':[{'tag':_0x1100bd(0x21d),'attrs':{'fill':_0x1100bd(0x5a7),'d':_0x1100bd(0x39e),'transform':_0x1100bd(0x25e)}}]}]}],'defIds':[_0x1100bd(0x309)]},Ut=U[_0x1100bd(0x467)](function(_0x2294c1,_0x447ca7){const _0x4eda80=_0x1100bd;return U[_0x4eda80(0x37f)](qe,Object[_0x4eda80(0x45a)]({},_0x2294c1,{'id':_0x4eda80(0x400),'ref':_0x447ca7,'icon':Ri}));});Ut[_0x1100bd(0x430)]=_0x1100bd(0x3a8);function Pt(_0x498266){const _0x4c6839=_0x1100bd;var _0x4a4c3d,_0xe003d0,_0x22d5f1='';if(typeof _0x498266==_0x4c6839(0x54c)||typeof _0x498266==_0x4c6839(0x557))_0x22d5f1+=_0x498266;else{if(typeof _0x498266==_0x4c6839(0x373)){if(Array[_0x4c6839(0x57c)](_0x498266)){var _0x335e87=_0x498266['length'];for(_0x4a4c3d=0x0;_0x4a4c3d<_0x335e87;_0x4a4c3d++)_0x498266[_0x4a4c3d]&&(_0xe003d0=Pt(_0x498266[_0x4a4c3d]))&&(_0x22d5f1&&(_0x22d5f1+='\x20'),_0x22d5f1+=_0xe003d0);}else{for(_0xe003d0 in _0x498266)_0x498266[_0xe003d0]&&(_0x22d5f1&&(_0x22d5f1+='\x20'),_0x22d5f1+=_0xe003d0);}}}return _0x22d5f1;}function Oi(){const _0x543abc=_0x1100bd;for(var _0x298dae,_0x4f27c0,_0x232b9f=0x0,_0x267599='',_0x5be471=arguments[_0x543abc(0x46d)];_0x232b9f<_0x5be471;_0x232b9f++)(_0x298dae=arguments[_0x232b9f])&&(_0x4f27c0=Pt(_0x298dae))&&(_0x267599&&(_0x267599+='\x20'),_0x267599+=_0x4f27c0);return _0x267599;}const Di=_0x1100bd(0x29d),yi='univer-online-status-title',Ui='univer-online-status',Pi=_0x1100bd(0x59d),wi=_0x1100bd(0x4ce),le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0xd91d91){const _0x30c097=_0x1100bd;switch(_0xd91d91){case y[_0x30c097(0x4ad)]:return _0x30c097(0x2fe);case y['CONFLICT']:return _0x30c097(0x522);case y[_0x30c097(0x21b)]:return _0x30c097(0x3e8);case y[_0x30c097(0x2a7)]:return'collabStatus.notCollab';case y[_0x30c097(0x264)]:case y[_0x30c097(0x5bc)]:case y[_0x30c097(0x283)]:return _0x30c097(0x56e);case y['SYNCED']:return _0x30c097(0x464);}}function wt(_0x36c05b){const _0x5bb3ff=_0x1100bd,{status$:_0x4449a2}=_0x36c05b,_0x2ab67a=N[_0x5bb3ff(0x4c5)](_0x4449a2,y[_0x5bb3ff(0x2a7)]),_0x468632=a[_0x5bb3ff(0x215)](a[_0x5bb3ff(0x497)]),_0xe8a46a=a['useDependency'](exports[_0x5bb3ff(0x532)]),_0x239823=_0x2ab67a!==y['OFFLINE'],_0x25dc86=_0x468632['t'](Mi(_0x2ab67a)),_0x26d70a=Oi(le[_0x5bb3ff(0x435)],{[le['online']]:_0x239823,[le[_0x5bb3ff(0x322)]]:!_0x239823}),_0x475a6a=_0x239823?U['createElement'](Ut,null):U[_0x5bb3ff(0x37f)](yt,null),_0x357f28=U['useCallback'](()=>{const _0x4044a0=_0x5bb3ff;_0x239823||_0xe8a46a[_0x4044a0(0x1e7)]();},[_0x239823,_0xe8a46a]);function _0x5e08c0(){const _0x15e5fe=_0x5bb3ff;return U['createElement'](_0x15e5fe(0x494),{'className':_0x26d70a,'onClick':_0x357f28},U['createElement'](_0x15e5fe(0x494),{'className':le[_0x15e5fe(0x251)]},_0x475a6a),U[_0x15e5fe(0x37f)]('div',{'className':le['onlineStatusTitle']},_0x25dc86));}return _0x239823?_0x5e08c0():U[_0x5bb3ff(0x37f)](X[_0x5bb3ff(0x259)],{'title':_0x468632['t'](_0x5bb3ff(0x555))},_0x5e08c0());}var Ni=Object['defineProperty'],Ai=Object[_0x1100bd(0x444)],Li=(_0x1fd78f,_0x54d281,_0x57a712,_0x2e3c76)=>{const _0x1f4b63=_0x1100bd;for(var _0x370832=_0x2e3c76>0x1?void 0x0:_0x2e3c76?Ai(_0x54d281,_0x57a712):_0x54d281,_0x475807=_0x1fd78f[_0x1f4b63(0x46d)]-0x1,_0x545e35;_0x475807>=0x0;_0x475807--)(_0x545e35=_0x1fd78f[_0x475807])&&(_0x370832=(_0x2e3c76?_0x545e35(_0x54d281,_0x57a712,_0x370832):_0x545e35(_0x370832))||_0x370832);return _0x2e3c76&&_0x370832&&Ni(_0x54d281,_0x57a712,_0x370832),_0x370832;},Se=(_0x3f10fc,_0x8869f0)=>(_0x315fd1,_0x22e991)=>_0x8869f0(_0x315fd1,_0x22e991,_0x3f10fc);exports[_0x1100bd(0x3d3)]=class extends a[_0x1100bd(0x4e4)]{constructor(_0x149c47,_0xef6ee,_0x20bb75,_0x445c74){const _0xba75c2=_0x1100bd;super(),d(this,_0xba75c2(0x458),new v['BehaviorSubject'](y['NOT_COLLAB'])),(this[_0xba75c2(0x56b)]=_0x149c47,this['_uiPartsService']=_0xef6ee,this[_0xba75c2(0x1d8)]=_0x20bb75,this['_collaborationController']=_0x445c74,this[_0xba75c2(0x362)](),this['_initStatusListener']());}['_initStatusListener'](){const _0x10ef4e=_0x1100bd;this['disposeWithMe'](this[_0x10ef4e(0x56b)][_0x10ef4e(0x378)][_0x10ef4e(0x32e)](v['switchMap'](()=>{const _0x258ce8=_0x10ef4e,_0x17fe6f=this[_0x258ce8(0x56b)][_0x258ce8(0x31d)]();return _0x17fe6f?this['_collaborationController'][_0x258ce8(0x223)](_0x17fe6f[_0x258ce8(0x401)]()):v['of'](null);}),v[_0x10ef4e(0x35f)](_0x714a65=>_0x714a65?_0x714a65[_0x10ef4e(0x284)]:v['of'](y[_0x10ef4e(0x2a7)])))[_0x10ef4e(0x1f3)](_0x128cc6=>{const _0x3f47fd=_0x10ef4e;this[_0x3f47fd(0x458)][_0x3f47fd(0x496)](_0x128cc6);}));}['_initStatusComponent'](){const _0x3da64c=_0x1100bd;this[_0x3da64c(0x40b)](this[_0x3da64c(0x336)]['registerComponent'](N['BuiltInUIPart'][_0x3da64c(0x41f)],()=>a[_0x3da64c(0x244)](ji({'status$':this[_0x3da64c(0x458)]['asObservable']()}),this[_0x3da64c(0x1d8)])));}},exports[_0x1100bd(0x3d3)]=Li([Se(0x0,a[_0x1100bd(0x472)]),Se(0x1,N[_0x1100bd(0x1d0)]),Se(0x2,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),Se(0x3,a[_0x1100bd(0x583)](exports[_0x1100bd(0x38c)]))],exports[_0x1100bd(0x3d3)]);function ji(_0x30ad6e){const {status$:_0x5ee5b0}=_0x30ad6e;return function(){return U['createElement'](wt,{'status$':_0x5ee5b0});};}const ze=a[_0x1100bd(0x1be)](_0x1100bd(0x239));var $i=Object['defineProperty'],Hi=Object['getOwnPropertyDescriptor'],xi=(_0x5e2bd5,_0x4e3198,_0x17b153,_0x25fcb5)=>{const _0x33084f=_0x1100bd;for(var _0x4265d4=_0x25fcb5>0x1?void 0x0:_0x25fcb5?Hi(_0x4e3198,_0x17b153):_0x4e3198,_0x54cf9d=_0x5e2bd5[_0x33084f(0x46d)]-0x1,_0x863738;_0x54cf9d>=0x0;_0x54cf9d--)(_0x863738=_0x5e2bd5[_0x54cf9d])&&(_0x4265d4=(_0x25fcb5?_0x863738(_0x4e3198,_0x17b153,_0x4265d4):_0x863738(_0x4265d4))||_0x4265d4);return _0x25fcb5&&_0x4265d4&&$i(_0x4e3198,_0x17b153,_0x4265d4),_0x4265d4;},ee=(_0x1dc4d1,_0x216de3)=>(_0xb8b6db,_0x596aba)=>_0x216de3(_0xb8b6db,_0x596aba,_0x1dc4d1);exports[_0x1100bd(0x4f9)]=class extends a['RxDisposable']{constructor(_0x3d2906,_0x3f308c,_0x229936,_0x428088,_0x2b0976,_0x1f1696){const _0xc4de1c=_0x1100bd;super(),this[_0xc4de1c(0x300)]=_0x3d2906,this[_0xc4de1c(0x340)]=_0x3f308c,this[_0xc4de1c(0x53a)]=_0x229936,this['_localCacheService']=_0x428088,this[_0xc4de1c(0x246)]=_0x2b0976,_0x1f1696?_0x1f1696==null||_0x1f1696['whenReady']()[_0xc4de1c(0x31a)](()=>this['_init']()):(this[_0xc4de1c(0x340)][_0xc4de1c(0x328)](_0xc4de1c(0x5bb),_0xc4de1c(0x41a)),this['_init']());}async[_0x1100bd(0x4a0)](){const _0x842fa7=_0x1100bd,_0x1653c7=this[_0x842fa7(0x300)][_0x842fa7(0x1ea)](_0x842fa7(0x5c4)),_0x1cb6eb=this[_0x842fa7(0x300)][_0x842fa7(0x1ea)](_0x842fa7(0x525));if(!_0x1653c7||!_0x1cb6eb){this[_0x842fa7(0x340)]['debug'](_0x842fa7(0x5bb),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x1cb6eb)){case j[_0x842fa7(0x293)]:{const _0x489282=await this[_0x842fa7(0x236)](_0x1653c7);this['_setupSubUnitSync'](_0x489282);break;}case j[_0x842fa7(0x22b)]:{await this['_loadDoc'](_0x1653c7);break;}default:{this['_logService']['error']('[DataLoaderController]',_0x842fa7(0x2e1));break;}}}async[_0x1100bd(0x27a)](_0x18c5bb){const _0x5ed914=_0x1100bd;await this[_0x5ed914(0x588)](_0x18c5bb),_0x18c5bb[_0x5ed914(0x51f)]['pipe'](v[_0x5ed914(0x23f)](this[_0x5ed914(0x551)]))['subscribe'](_0x4af0ca=>{_0x4af0ca&&this['_updateURLWithCurrentState'](_0x4af0ca);}),this[_0x5ed914(0x300)][_0x5ed914(0x313)][_0x5ed914(0x32e)](v['takeUntil'](this[_0x5ed914(0x551)]))['subscribe'](()=>this[_0x5ed914(0x588)](_0x18c5bb));}[_0x1100bd(0x390)](_0x2e7e33,_0x48fdaf=!0x1){const _0x49a312=_0x1100bd,_0x15813c=this[_0x49a312(0x300)][_0x49a312(0x1ea)](_0x49a312(0x504));_0x2e7e33[_0x49a312(0x380)]()!==_0x15813c&&this[_0x49a312(0x300)]['setParam'](_0x49a312(0x504),_0x2e7e33[_0x49a312(0x380)](),_0x48fdaf);}async['_updateSubUnitFromURLParams'](_0x2f0cfe){const _0x3d1516=_0x1100bd;var _0x40924c;const _0x2724d8=this[_0x3d1516(0x300)][_0x3d1516(0x1ea)](_0x3d1516(0x504));if(!_0x2724d8||!_0x2f0cfe[_0x3d1516(0x2a9)](_0x2724d8)){const _0x11e932=_0x2f0cfe[_0x3d1516(0x30b)]()[0x0],_0x4a771f=_0x2f0cfe[_0x3d1516(0x2a9)](_0x11e932);if(!_0x4a771f)return;this[_0x3d1516(0x390)](_0x4a771f,!0x0),await this[_0x3d1516(0x53a)]['executeCommand'](C[_0x3d1516(0x535)]['id'],{'unitId':_0x2f0cfe[_0x3d1516(0x401)](),'subUnitId':_0x11e932});return;}((_0x40924c=_0x2f0cfe[_0x3d1516(0x34b)]())==null?void 0x0:_0x40924c['getSheetId']())!==_0x2724d8&&await this['_commandService']['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x2f0cfe[_0x3d1516(0x401)](),'subUnitId':_0x2724d8});}async[_0x1100bd(0x236)](_0x557e4c){const _0x2686ef=_0x1100bd;let _0x398be5=0x0;const _0xaa9aa2=await this[_0x2686ef(0x45f)][_0x2686ef(0x226)](_0x557e4c);return _0xaa9aa2&&(_0xaa9aa2[_0x2686ef(0x25b)]||_0xaa9aa2[_0x2686ef(0x45c)]['length']!==0x0)&&(_0x398be5=_0xaa9aa2[_0x2686ef(0x329)]),_0x398be5===0x0&&this['_logService'][_0x2686ef(0x328)](_0x2686ef(0x5bb),_0x2686ef(0x1fe)),this[_0x2686ef(0x246)]['loadSheet'](_0x557e4c,_0x398be5);}async[_0x1100bd(0x428)](_0x329607){const _0x5b837a=_0x1100bd;let _0x596254=0x0;const _0x5d63d7=await this[_0x5b837a(0x45f)][_0x5b837a(0x226)](_0x329607);return _0x5d63d7&&(_0x5d63d7[_0x5b837a(0x25b)]||_0x5d63d7[_0x5b837a(0x45c)]['length']!==0x0)&&(_0x596254=_0x5d63d7[_0x5b837a(0x329)]),_0x596254===0x0&&this[_0x5b837a(0x340)]['debug'](_0x5b837a(0x5bb),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x5b837a(0x246)][_0x5b837a(0x407)](_0x329607,_0x596254);}},exports['DataLoaderController']=xi([ee(0x0,ze),ee(0x1,a['ILogService']),ee(0x2,a[_0x1100bd(0x505)]),ee(0x3,a[_0x1100bd(0x583)](exports['LocalCacheService'])),ee(0x4,a[_0x1100bd(0x583)](_['SnapshotService'])),ee(0x5,a[_0x1100bd(0x523)](Wt[_0x1100bd(0x391)]))],exports[_0x1100bd(0x4f9)]);var ki=Object[_0x1100bd(0x4ed)],Bi=Object['getOwnPropertyDescriptor'],Vi=(_0x262d2a,_0x878191,_0x1b9e80,_0x322116)=>{const _0x562af4=_0x1100bd;for(var _0x28ce68=_0x322116>0x1?void 0x0:_0x322116?Bi(_0x878191,_0x1b9e80):_0x878191,_0x366e08=_0x262d2a[_0x562af4(0x46d)]-0x1,_0x5df30c;_0x366e08>=0x0;_0x366e08--)(_0x5df30c=_0x262d2a[_0x366e08])&&(_0x28ce68=(_0x322116?_0x5df30c(_0x878191,_0x1b9e80,_0x28ce68):_0x5df30c(_0x28ce68))||_0x28ce68);return _0x322116&&_0x28ce68&&ki(_0x878191,_0x1b9e80,_0x28ce68),_0x28ce68;},at=(_0x3d7593,_0x25a44e)=>(_0x1a76b6,_0x5e3fa4)=>_0x25a44e(_0x1a76b6,_0x5e3fa4,_0x3d7593);const Wi=_0x1100bd(0x4d6),Fi='Univer';let Ie=class extends a[_0x1100bd(0x4e4)]{constructor(_0xcb79b0,_0x3a305a){const _0x4f6656=_0x1100bd;super(),this[_0x4f6656(0x56b)]=_0xcb79b0,this[_0x4f6656(0x4c0)]=_0x3a305a,this[_0x4f6656(0x4a0)]();}['_init'](){const _0x83937a=_0x1100bd;this[_0x83937a(0x40b)](this[_0x83937a(0x56b)]['focused$'][_0x83937a(0x1f3)](()=>{const _0x1ce227=_0x83937a;var _0x5d51b2;const _0x5c6110=this[_0x1ce227(0x56b)][_0x1ce227(0x31d)]();let _0x5687c3=(_0x5d51b2=this['_configService'][_0x1ce227(0x204)](Wi))!=null?_0x5d51b2:Fi;_0x5c6110 instanceof a['Workbook']&&(_0x5687c3=_0x5c6110[_0x1ce227(0x38f)]),document[_0x1ce227(0x3ee)]=_0x5687c3;}));}};Ie=Vi([at(0x0,a[_0x1100bd(0x472)]),at(0x1,a[_0x1100bd(0x32b)])],Ie);var Gi=Object[_0x1100bd(0x4ed)],Yi=Object[_0x1100bd(0x444)],Ki=(_0xae457b,_0x3f3568,_0x1d27b1,_0x4d2f6a)=>{const _0x1e3be3=_0x1100bd;for(var _0x43d647=_0x4d2f6a>0x1?void 0x0:_0x4d2f6a?Yi(_0x3f3568,_0x1d27b1):_0x3f3568,_0x1e6ec9=_0xae457b[_0x1e3be3(0x46d)]-0x1,_0x254fca;_0x1e6ec9>=0x0;_0x1e6ec9--)(_0x254fca=_0xae457b[_0x1e6ec9])&&(_0x43d647=(_0x4d2f6a?_0x254fca(_0x3f3568,_0x1d27b1,_0x43d647):_0x254fca(_0x43d647))||_0x43d647);return _0x4d2f6a&&_0x43d647&&Gi(_0x3f3568,_0x1d27b1,_0x43d647),_0x43d647;},Le=(_0x4a1fd1,_0x5963c9)=>(_0x3c2559,_0xf78fdd)=>_0x5963c9(_0x3c2559,_0xf78fdd,_0x4a1fd1);let pe=class{constructor(_0x249b76,_0x119106,_0x2c4ea0){const _0x445b54=_0x1100bd;this[_0x445b54(0x4c0)]=_0x249b76,this[_0x445b54(0x4b7)]=_0x119106,this[_0x445b54(0x3e0)]=_0x2c4ea0,this['init']();}[_0x1100bd(0x5c3)](){const _0xe742a9=_0x1100bd;this['_httpService'][_0xe742a9(0x4cf)]({'priority':0x1,'interceptor':(_0x5ca027,_0x258f52)=>_0x258f52(_0x5ca027)[_0xe742a9(0x32e)](v['concatMap'](async _0x3f9e45=>{const _0x311f74=_0xe742a9,_0x5e31d5=_0x3f9e45;if(_0x5e31d5['status']===0x191&&window[_0x311f74(0x383)](this[_0x311f74(0x3e0)]['t']('auth.needGotoLoginAlert'))){const _0x53f4a8=window[_0x311f74(0x576)](window['location'][_0x311f74(0x4c3)]);window[_0x311f74(0x37b)][_0x311f74(0x4c3)]=this[_0x311f74(0x3a2)]()+_0x311f74(0x5ae)+_0x53f4a8;}return _0x5e31d5;}))});}[_0x1100bd(0x3a2)](){const _0xf8391d=_0x1100bd;var _0x1d1819,_0x2fc6cd;const _0x587b37=this[_0xf8391d(0x4c0)][_0xf8391d(0x204)](mt),_0x479849=this[_0xf8391d(0x4c0)][_0xf8391d(0x204)](A);return(_0x2fc6cd=(_0x1d1819=_0x479849==null?void 0x0:_0x479849[_0xf8391d(0x489)])!=null?_0x1d1819:_0x587b37)!=null?_0x2fc6cd:es;}};pe=Ki([Le(0x0,a['IConfigService']),Le(0x1,a['Inject'](P[_0x1100bd(0x2b0)])),Le(0x2,a[_0x1100bd(0x583)](a['LocaleService']))],pe);var Xi=Object[_0x1100bd(0x4ed)],qi=Object[_0x1100bd(0x444)],zi=(_0xd8c5cf,_0x2b6404,_0x4b129c,_0xfbf62f)=>{const _0x340e0e=_0x1100bd;for(var _0x50dd51=_0xfbf62f>0x1?void 0x0:_0xfbf62f?qi(_0x2b6404,_0x4b129c):_0x2b6404,_0x2e7a0b=_0xd8c5cf[_0x340e0e(0x46d)]-0x1,_0x33078c;_0x2e7a0b>=0x0;_0x2e7a0b--)(_0x33078c=_0xd8c5cf[_0x2e7a0b])&&(_0x50dd51=(_0xfbf62f?_0x33078c(_0x2b6404,_0x4b129c,_0x50dd51):_0x33078c(_0x50dd51))||_0x50dd51);return _0xfbf62f&&_0x50dd51&&Xi(_0x2b6404,_0x4b129c,_0x50dd51),_0x50dd51;},ct=(_0x15418c,_0x561d0c)=>(_0x45ac47,_0x5c8df8)=>_0x561d0c(_0x45ac47,_0x5c8df8,_0x15418c);const Mt='AUTHZ_URL_KEY',Ji='/universer-api/authz';exports[_0x1100bd(0x36d)]=class extends a[_0x1100bd(0x4e4)]{constructor(_0x311474,_0x285d10){const _0x391674=_0x1100bd;super(),this['_HTTPService']=_0x311474,this[_0x391674(0x4c0)]=_0x285d10,this[_0x391674(0x5b7)]();}[_0x1100bd(0x5b7)](){const _0x19e68a=_0x1100bd,_0x2fdb75=this;this[_0x19e68a(0x40b)](this[_0x19e68a(0x453)][_0x19e68a(0x4cf)]({'priority':0x3e7,'interceptor':P['MergeInterceptorFactory']({'isMatch'(_0x5c5619){const _0x119ab8=_0x19e68a;var _0x26d785;if(_0x5c5619['method']===_0x119ab8(0x582)&&((_0x26d785=_0x5c5619['requestParams'])!=null&&_0x26d785[_0x119ab8(0x2b8)])){const {objectID:_0x3dc86a,objectType:_0x33e538}=_0x5c5619[_0x119ab8(0x47c)][_0x119ab8(0x2b8)]||{};if(!_0x3dc86a||_0x33e538===void 0x0)return!0x1;const _0x460851=_0x2fdb75[_0x119ab8(0x3f6)]()+'/'+_0x33e538+_0x119ab8(0x2af)+_0x3dc86a+_0x119ab8(0x26b);if(_0x5c5619[_0x119ab8(0x36e)]===_0x460851)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x506a94){const _0x22099a=_0x19e68a;var _0x5895fd;return(_0x5895fd=_0x506a94['requestParams'])==null?void 0x0:_0x5895fd[_0x22099a(0x2b8)];},'mergeParamsToRequest'(_0x3e27a2,_0xbd167a){const _0x377df4=_0x19e68a,_0x2bf7f0=_0x2fdb75[_0x377df4(0x3f6)]()+_0x377df4(0x548),_0xfb1dc5=_0x3e27a2[_0x377df4(0x4e8)]((_0x427397,_0x513248)=>{const _0x43edeb=_0x377df4,{unitID:_0x3a4db8,objectID:_0x4f173e,objectType:_0x39783f,actions:_0x10df31}=_0x513248;return _0x427397[_0x3a4db8]||(_0x427397[_0x3a4db8]={}),_0x427397[_0x3a4db8][_0x4f173e]||(_0x427397[_0x3a4db8][_0x4f173e]={'objectID':_0x4f173e,'objectType':_0x39783f,'actions':[]}),_0x427397[_0x3a4db8][_0x4f173e][_0x43edeb(0x1c8)][_0x43edeb(0x414)](..._0x10df31),_0x427397;},{}),_0x13553a=[];for(const _0x2f940f in _0xfb1dc5)for(const _0x2789bf in _0xfb1dc5[_0x2f940f]){const {actions:_0x4aa058,objectType:_0x993fd}=_0xfb1dc5[_0x2f940f][_0x2789bf],_0x3ff937=[...new Set(_0x4aa058)];_0x13553a[_0x377df4(0x414)]({'unitID':_0x2f940f,'objectID':_0x2789bf,'objectType':_0x993fd,'actions':_0x3ff937});}return new P[(_0x377df4(0x4d2))](_0x377df4(0x582),_0x2bf7f0,{'headers':_0xbd167a[_0x377df4(0x5a0)],'withCredentials':_0xbd167a['withCredentials'],'responseType':_0xbd167a[_0x377df4(0x29f)],'body':{'requests':_0x13553a}});}},{'distributeResult'(_0x292f08,_0x54d803){const _0x326110=_0x19e68a,{objectActions:_0xf4b668}=_0x292f08;return _0x54d803[_0x326110(0x4c4)](_0x16ebae=>{const _0x177b42=_0x326110,{unitID:_0x2013a8,objectID:_0x250c18,actions:_0x4b5703}=_0x16ebae,_0x5cae97=_0xf4b668[_0x177b42(0x5b0)](_0x7b6d14=>_0x7b6d14[_0x177b42(0x59b)]===_0x2013a8&&_0x7b6d14[_0x177b42(0x364)]===_0x250c18),_0x19e0e9=_0x4b5703['map'](_0x4ebadc=>_0x5cae97==null?void 0x0:_0x5cae97[_0x177b42(0x1c8)]['find'](_0xa2da2a=>_0xa2da2a[_0x177b42(0x22c)]===_0x4ebadc))[_0x177b42(0x495)](_0x1436cc=>!!_0x1436cc);return{'config':_0x16ebae,'result':{'actions':_0x19e0e9,'error':_0x292f08['error']}};});}})}));}[_0x1100bd(0x3f6)](){const _0x2829a5=_0x1100bd;var _0x4b9dd1,_0x3ee9c1;const _0x5f2917=this['_configService']['getConfig'](Mt),_0x1dd9b6=this[_0x2829a5(0x4c0)][_0x2829a5(0x204)](A);return(_0x3ee9c1=(_0x4b9dd1=_0x1dd9b6==null?void 0x0:_0x1dd9b6[_0x2829a5(0x481)])!=null?_0x4b9dd1:_0x5f2917)!=null?_0x3ee9c1:Ji;}async[_0x1100bd(0x3ba)](_0x2b325c){const _0xc1de83=_0x1100bd,_0x12386f=this['_getAPIPrefixPath']()+'/'+_0x2b325c[_0xc1de83(0x426)]+_0xc1de83(0x1d2);return(await this['_HTTPService'][_0xc1de83(0x569)](_0x12386f,{'body':_0x2b325c}))[_0xc1de83(0x2b8)][_0xc1de83(0x364)]||'';}async['list'](_0x4674eb){const _0x3a301b=_0x1100bd,_0x140d4e=this[_0x3a301b(0x3f6)]()+_0x3a301b(0x53e);return(await this[_0x3a301b(0x453)][_0x3a301b(0x569)](_0x140d4e,{'body':_0x4674eb}))[_0x3a301b(0x2b8)][_0x3a301b(0x57b)];}async[_0x1100bd(0x44f)](_0x21eba8){const _0x33920b=_0x1100bd,_0x12cd96=this[_0x33920b(0x3f6)]()+'/'+_0x21eba8['objectType']+_0x33920b(0x2af)+_0x21eba8[_0x33920b(0x364)];await this[_0x33920b(0x453)][_0x33920b(0x5b8)](_0x12cd96,{'body':_0x21eba8});}async[_0x1100bd(0x389)](_0x843dfe){const _0x1bec94=_0x1100bd,_0x2c70fd=this[_0x1bec94(0x3f6)]()+'/'+_0x843dfe[_0x1bec94(0x426)]+_0x1bec94(0x2af)+_0x843dfe[_0x1bec94(0x364)]+_0x1bec94(0x26b);return(await this['_HTTPService'][_0x1bec94(0x569)](_0x2c70fd,{'body':_0x843dfe}))[_0x1bec94(0x2b8)][_0x1bec94(0x1c8)];}async[_0x1100bd(0x365)](_0x1993de){const _0x3025a3=_0x1100bd,_0x5aa4e1=this['_getAPIPrefixPath']()+_0x3025a3(0x548);return(await this['_HTTPService'][_0x3025a3(0x569)](_0x5aa4e1,{'body':{'requests':_0x1993de}}))[_0x3025a3(0x2b8)]['objectActions'];}async['listRoles'](_0xc8b6db){const _0x3e9bea=_0x1100bd,_0x5db1e4=this[_0x3e9bea(0x3f6)]()+'/'+_0xc8b6db[_0x3e9bea(0x426)]+'/role',_0x1ff6fd=await this[_0x3e9bea(0x453)][_0x3e9bea(0x569)](_0x5db1e4,{'body':_0xc8b6db});return{'roles':_0x1ff6fd[_0x3e9bea(0x2b8)][_0x3e9bea(0x30d)],'actions':_0x1ff6fd[_0x3e9bea(0x2b8)][_0x3e9bea(0x1c8)]};}async['deleteCollaborator'](_0x58cf70){const _0x3c216e=_0x1100bd,_0x4c0db7=this[_0x3c216e(0x3f6)]()+_0x3c216e(0x2b2);await this[_0x3c216e(0x453)][_0x3c216e(0x5bf)](_0x4c0db7,{'params':{'collaboratorID':_0x58cf70['collaboratorID'],'objectID':_0x58cf70[_0x3c216e(0x364)],'unitID':_0x58cf70[_0x3c216e(0x59b)]}});}async[_0x1100bd(0x29a)](_0x25ef05){const _0x1b94ce=_0x1100bd,_0x18a3bb=this[_0x1b94ce(0x3f6)]()+_0x1b94ce(0x2b2);await this['_HTTPService'][_0x1b94ce(0x405)](_0x18a3bb,{'body':_0x25ef05});}async[_0x1100bd(0x3ac)](_0x5d35f1){const _0x2c3cbd=_0x1100bd,_0x117a6a=this[_0x2c3cbd(0x3f6)]()+_0x2c3cbd(0x2b2);await this[_0x2c3cbd(0x453)]['post'](_0x117a6a,{'body':_0x5d35f1});}async['listCollaborators'](_0x56b1aa){const _0x5534f5=_0x1100bd,_0xf36fc6=this[_0x5534f5(0x3f6)]()+'/collaborator';return(await this[_0x5534f5(0x453)][_0x5534f5(0x1f4)](_0xf36fc6,{'params':{'objectID':_0x56b1aa['objectID'],'unitID':_0x56b1aa[_0x5534f5(0x59b)]}}))['body'][_0x5534f5(0x590)];}async[_0x1100bd(0x2ae)](_0x2a486a){const _0x70e833=_0x1100bd,_0x81a57=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x70e833(0x453)][_0x70e833(0x5b8)](_0x81a57,{'body':_0x2a486a});}},exports[_0x1100bd(0x36d)]=zi([ct(0x0,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)])),ct(0x1,a[_0x1100bd(0x583)](a[_0x1100bd(0x32b)]))],exports[_0x1100bd(0x36d)]);var Zi=Object[_0x1100bd(0x4ed)],Qi=Object[_0x1100bd(0x444)],en=(_0x38b83d,_0x47e2e5,_0x5e9cd8,_0x2bd563)=>{const _0x503779=_0x1100bd;for(var _0x37f582=_0x2bd563>0x1?void 0x0:_0x2bd563?Qi(_0x47e2e5,_0x5e9cd8):_0x47e2e5,_0x3eb2f6=_0x38b83d[_0x503779(0x46d)]-0x1,_0x1ef2ca;_0x3eb2f6>=0x0;_0x3eb2f6--)(_0x1ef2ca=_0x38b83d[_0x3eb2f6])&&(_0x37f582=(_0x2bd563?_0x1ef2ca(_0x47e2e5,_0x5e9cd8,_0x37f582):_0x1ef2ca(_0x37f582))||_0x37f582);return _0x2bd563&&_0x37f582&&Zi(_0x47e2e5,_0x5e9cd8,_0x37f582),_0x37f582;},tn=(_0x5de577,_0x434093)=>(_0x423155,_0x57dbca)=>_0x434093(_0x423155,_0x57dbca,_0x5de577);let Ce=class{constructor(_0x160a8f){const _0x2f2697=_0x1100bd;this[_0x2f2697(0x4b7)]=_0x160a8f,this[_0x2f2697(0x55f)]();}[_0x1100bd(0x55f)](){const _0x186676=_0x1100bd;this[_0x186676(0x4b7)]['registerHTTPInterceptor']({'interceptor':(_0x288f10,_0x464f5c)=>{const _0xe94563=_0x186676,_0x34cbbc=_0x288f10[_0xe94563(0x5a0)],_0x3f6847=Ft[_0xe94563(0x3ad)]();return _0x3f6847&&_0x34cbbc[_0xe94563(0x57e)](_0xe94563(0x3af),_0x3f6847),_0x464f5c(_0x288f10);}});}};Ce=en([tn(0x0,a['Inject'](P[_0x1100bd(0x2b0)]))],Ce);var sn=Object[_0x1100bd(0x4ed)],nn=Object[_0x1100bd(0x444)],rn=(_0x291401,_0x1f9b3c,_0x1f0b32,_0x5756a1)=>{const _0x4d10ae=_0x1100bd;for(var _0x543fa7=_0x5756a1>0x1?void 0x0:_0x5756a1?nn(_0x1f9b3c,_0x1f0b32):_0x1f9b3c,_0x45dec8=_0x291401[_0x4d10ae(0x46d)]-0x1,_0x2e5db2;_0x45dec8>=0x0;_0x45dec8--)(_0x2e5db2=_0x291401[_0x45dec8])&&(_0x543fa7=(_0x5756a1?_0x2e5db2(_0x1f9b3c,_0x1f0b32,_0x543fa7):_0x2e5db2(_0x543fa7))||_0x543fa7);return _0x5756a1&&_0x543fa7&&sn(_0x1f9b3c,_0x1f0b32,_0x543fa7),_0x543fa7;},je=(_0x4b0df9,_0x40bfc9)=>(_0x3a57ef,_0x1bd383)=>_0x40bfc9(_0x3a57ef,_0x1bd383,_0x4b0df9);const on=['image/png','image/jpeg',_0x1100bd(0x41b),_0x1100bd(0x22a),_0x1100bd(0x54f)],an=0x5*0x400*0x400,cn=_0x1100bd(0x24f),ln=_0x1100bd(0x2f1),hn=_0x1100bd(0x4c8),_n=_0x1100bd(0x3d9);exports[_0x1100bd(0x469)]=class{constructor(_0x59ece8,_0x2cf18d,_0x59ba6c){const _0x4ec5de=_0x1100bd;d(this,_0x4ec5de(0x3dd),0x0),d(this,_0x4ec5de(0x526),new v['Subject']()),d(this,_0x4ec5de(0x3e6),this['_change$']),d(this,_0x4ec5de(0x3da),new Map()),(this[_0x4ec5de(0x4b7)]=_0x59ece8,this[_0x4ec5de(0x4c0)]=_0x2cf18d,this[_0x4ec5de(0x56b)]=_0x59ba6c);}[_0x1100bd(0x3f4)](_0x9c13f4){const _0x2b7472=_0x1100bd;this[_0x2b7472(0x3dd)]=_0x9c13f4,this[_0x2b7472(0x526)]['next'](_0x9c13f4);}['getImageSourceCache'](_0x518154,_0x13b5dd){const _0x50785a=_0x1100bd;if(_0x13b5dd===L['ImageSourceType'][_0x50785a(0x3c1)]){const _0x1da7e2=new Image();return _0x1da7e2[_0x50785a(0x358)]=_0x518154,_0x1da7e2;}return this['_imageSourceCache'][_0x50785a(0x1f4)](_0x518154);}[_0x1100bd(0x4b8)](_0x55f44d,_0x145f2b,_0x18ddbb){const _0x55701c=_0x1100bd;_0x145f2b===L[_0x55701c(0x2c4)][_0x55701c(0x3c1)]||_0x18ddbb==null||this[_0x55701c(0x3da)][_0x55701c(0x57e)](_0x55f44d,_0x18ddbb);}async[_0x1100bd(0x3ca)](_0x7d45c5){const _0x31d2e0=_0x1100bd;try{const _0x553748=this['_replaceFileID'](this[_0x31d2e0(0x597)](),''+_0x7d45c5),_0x3c938e=(await this[_0x31d2e0(0x4b7)][_0x31d2e0(0x1f4)](_0x553748))['body'];if(_0x3c938e[_0x31d2e0(0x3d1)]&&_0x3c938e[_0x31d2e0(0x3d1)][_0x31d2e0(0x353)]===It['OK']){const _0x26bc1e=new URL(_0x3c938e[_0x31d2e0(0x36e)],this[_0x31d2e0(0x304)]())[_0x31d2e0(0x431)]();return Promise['resolve'](_0x26bc1e);}return Promise[_0x31d2e0(0x409)](_0x3c938e['error']);}catch(_0x25fb66){return Promise['reject'](_0x25fb66);}}async[_0x1100bd(0x35b)](_0x4e6eb0){const _0xdafa68=_0x1100bd;let _0x1a6d81='';if(!on[_0xdafa68(0x360)](_0x4e6eb0[_0xdafa68(0x525)]))return this[_0xdafa68(0x257)](),Promise['reject'](new Error(L[_0xdafa68(0x268)][_0xdafa68(0x52c)]));if(_0x4e6eb0[_0xdafa68(0x2b7)]>an)return this[_0xdafa68(0x257)](),Promise[_0xdafa68(0x409)](new Error(L[_0xdafa68(0x268)][_0xdafa68(0x4bf)]));try{const _0x31da49=new FormData();_0x31da49['append']('file',_0x4e6eb0);const _0x448cd6=this[_0xdafa68(0x56b)][_0xdafa68(0x31d)](),_0x44fd73=_0x448cd6==null?void 0x0:_0x448cd6[_0xdafa68(0x401)]();if(!_0x44fd73)throw new Error('unitId\x20is\x20not\x20found');const _0x4b513a=this[_0xdafa68(0x53d)]()+'?size='+_0x4e6eb0[_0xdafa68(0x2b7)]['toString']()+_0xdafa68(0x305)+pt[_0xdafa68(0x32f)]+_0xdafa68(0x248)+encodeURIComponent(_0x44fd73),_0x5afd3f=await(await fetch(_0x4b513a,{'method':'POST','body':_0x31da49}))['json']();if(typeof _0x5afd3f[_0xdafa68(0x2aa)]!=_0xdafa68(0x54c))return this[_0xdafa68(0x257)](),Promise['reject'](new Error(L[_0xdafa68(0x268)]['ERROR_IMAGE']));_0x1a6d81=_0x5afd3f['FileId'];}catch{return this[_0xdafa68(0x257)](),Promise['reject'](new Error(L[_0xdafa68(0x268)][_0xdafa68(0x20f)]));}return new Promise((_0x279427,_0x15c6fc)=>{const _0x54203d=_0xdafa68,_0x455306=new FileReader();_0x455306[_0x54203d(0x26e)](_0x4e6eb0),_0x455306['onload']=_0x5950ae=>{const _0x1560a4=_0x54203d;var _0x1deaec;const _0x37ae3c=(_0x1deaec=_0x5950ae[_0x1560a4(0x20d)])==null?void 0x0:_0x1deaec[_0x1560a4(0x343)];if(_0x37ae3c==null){this[_0x1560a4(0x257)](),_0x15c6fc(new Error(L['ImageUploadStatusType'][_0x1560a4(0x20f)]));return;}const _0x542adf=a['Tools'][_0x1560a4(0x552)](0x6);_0x279427({'imageId':_0x542adf,'imageSourceType':L[_0x1560a4(0x2c4)][_0x1560a4(0x1de)],'source':_0x1a6d81,'base64Cache':_0x37ae3c,'status':L[_0x1560a4(0x268)][_0x1560a4(0x3f2)]}),this[_0x1560a4(0x257)]();};});}['_getUploadFileURL'](){const _0x1872cd=_0x1100bd;var _0x2116b4,_0x4cf2ed;const _0x41c1bf=this[_0x1872cd(0x4c0)][_0x1872cd(0x204)](cn),_0x476a13=this[_0x1872cd(0x4c0)][_0x1872cd(0x204)](A);return(_0x4cf2ed=(_0x2116b4=_0x476a13==null?void 0x0:_0x476a13['uploadFileServerUrl'])!=null?_0x2116b4:_0x41c1bf)!=null?_0x4cf2ed:ln;}['_getSignURL'](){const _0x4cfae5=_0x1100bd;var _0xfdf4f0,_0x25820f;const _0x350440=this[_0x4cfae5(0x4c0)][_0x4cfae5(0x204)](hn),_0x3ac504=this[_0x4cfae5(0x4c0)][_0x4cfae5(0x204)](A);return(_0x25820f=(_0xfdf4f0=_0x3ac504==null?void 0x0:_0x3ac504[_0x4cfae5(0x3a6)])!=null?_0xfdf4f0:_0x350440)!=null?_0x25820f:_n;}[_0x1100bd(0x304)](){const _0x5405b2=_0x1100bd;var _0x127129;const _0x5f2099=this[_0x5405b2(0x4c0)][_0x5405b2(0x204)](A);return(_0x127129=_0x5f2099==null?void 0x0:_0x5f2099['downloadEndpointUrl'])!=null?_0x127129:location[_0x5405b2(0x354)];}[_0x1100bd(0x294)](_0x223e5d,_0x49ef7f){const _0x1d394a=_0x1100bd;return _0x223e5d['replace'](_0x1d394a(0x3db),_0x49ef7f);}['_decreaseWaiting'](){const _0x576c9a=_0x1100bd;this['_waitCount']-=0x1,this['_change$'][_0x576c9a(0x496)](this[_0x576c9a(0x3dd)]);}},exports[_0x1100bd(0x469)]=rn([je(0x0,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)])),je(0x1,a[_0x1100bd(0x32b)]),je(0x2,a[_0x1100bd(0x583)](a[_0x1100bd(0x472)]))],exports[_0x1100bd(0x469)]);var un=Object[_0x1100bd(0x4ed)],dn=Object[_0x1100bd(0x444)],Sn=(_0x31e05b,_0x33c0a8,_0x57aaaa,_0x59a1c2)=>{for(var _0x568f3a=_0x59a1c2>0x1?void 0x0:_0x59a1c2?dn(_0x33c0a8,_0x57aaaa):_0x33c0a8,_0x4d4ac1=_0x31e05b['length']-0x1,_0x30dd27;_0x4d4ac1>=0x0;_0x4d4ac1--)(_0x30dd27=_0x31e05b[_0x4d4ac1])&&(_0x568f3a=(_0x59a1c2?_0x30dd27(_0x33c0a8,_0x57aaaa,_0x568f3a):_0x30dd27(_0x568f3a))||_0x568f3a);return _0x59a1c2&&_0x568f3a&&un(_0x33c0a8,_0x57aaaa,_0x568f3a),_0x568f3a;},he=(_0x2494d2,_0x296817)=>(_0x2b9a74,_0x591ca6)=>_0x296817(_0x2b9a74,_0x591ca6,_0x2494d2);let Ee=class extends a[_0x1100bd(0x1c7)]{constructor(_0x3607b1,_0x319402,_0x53b413,_0x285ae2,_0x38bc96){const _0x3068d7=_0x1100bd;super(),this[_0x3068d7(0x1d8)]=_0x3607b1,this[_0x3068d7(0x56b)]=_0x319402,this[_0x3068d7(0x39f)]=_0x53b413,this[_0x3068d7(0x5a4)]=_0x285ae2,this[_0x3068d7(0x418)]=_0x38bc96,this['_initUnitPermissionChange'](),this[_0x3068d7(0x26a)]();}[_0x1100bd(0x26a)](){const _0xd0afcf=_0x1100bd,_0x2be93e=async _0xf7554c=>{const _0x339fd4=_0x75d2;(await this[_0x339fd4(0x5a4)][_0x339fd4(0x31b)](_0xf7554c))[_0x339fd4(0x448)][_0x339fd4(0x32e)](E['filter'](_0x2593af=>_0x2593af['eventID']===_[_0x339fd4(0x55c)][_0x339fd4(0x5cc)]),E[_0x339fd4(0x23f)](this[_0x339fd4(0x551)]))[_0x339fd4(0x1f3)](_0x2c6625=>{const _0x11f0ee=_0x339fd4,_0x5c6234=_0x2c6625,{reason:_0x486444}=_0x5c6234['data'];this[_0x11f0ee(0x1d8)]['get'](N['IMessageService'])[_0x11f0ee(0x1d9)]({'type':X[_0x11f0ee(0x4b2)][_0x11f0ee(0x2d2)],'content':this[_0x11f0ee(0x418)]['t'](_0x11f0ee(0x314))+'('+_0x486444+')'}),this[_0x11f0ee(0x39f)][_0x11f0ee(0x3a5)](new C[(_0x11f0ee(0x561))](_0xf7554c)['id'],!0x1),this[_0x11f0ee(0x5a4)][_0x11f0ee(0x27c)](_0xf7554c);});};v['merge'](this[_0xd0afcf(0x56b)]['getTypeOfUnitAdded$'](a[_0xd0afcf(0x2e9)][_0xd0afcf(0x293)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0xd0afcf(0x2e9)][_0xd0afcf(0x22b)]))[_0xd0afcf(0x32e)](E[_0xd0afcf(0x4c4)](_0x4fb447=>_0x4fb447[_0xd0afcf(0x401)]()),E['filter'](_0x2abcf6=>!a[_0xd0afcf(0x513)](_0x2abcf6)),E[_0xd0afcf(0x23f)](this[_0xd0afcf(0x551)]))[_0xd0afcf(0x1f3)](_0x380f61=>{_0x2be93e(_0x380f61);});}[_0x1100bd(0x1ae)](){const _0xf76e60=_0x1100bd,_0x26fd64=async _0x5a50b5=>{const _0x4a6d56=_0x75d2;(await this[_0x4a6d56(0x5a4)][_0x4a6d56(0x31b)](_0x5a50b5))[_0x4a6d56(0x448)][_0x4a6d56(0x32e)](E['filter'](_0x13bbbc=>_0x13bbbc[_0x4a6d56(0x39c)]===_[_0x4a6d56(0x55c)]['UPDATE_PERMISSION_OBJ']),E[_0x4a6d56(0x23f)](this[_0x4a6d56(0x551)]))[_0x4a6d56(0x1f3)](_0x500c2a=>{const _0x4d2614=_0x4a6d56,_0xf2f8a7=_0x500c2a,{objectId:_0x4ed914}=_0xf2f8a7[_0x4d2614(0x47d)],_0x2748f9=this[_0x4d2614(0x1d8)][_0x4d2614(0x1f4)](te['SheetPermissionInitController']);_0x4ed914===_0x5a50b5?_0x2748f9[_0x4d2614(0x536)](_0x5a50b5):_0x2748f9[_0x4d2614(0x1c0)](_0x5a50b5,_0x4ed914);});};v[_0xf76e60(0x4e9)](this['_univerInstanceService'][_0xf76e60(0x382)](a[_0xf76e60(0x2e9)]['UNIVER_SHEET']),this[_0xf76e60(0x56b)][_0xf76e60(0x382)](a[_0xf76e60(0x2e9)][_0xf76e60(0x22b)]))[_0xf76e60(0x32e)](E['map'](_0x11a925=>_0x11a925[_0xf76e60(0x401)]()),E[_0xf76e60(0x495)](_0x19e1ef=>!a['isInternalEditorID'](_0x19e1ef)),E[_0xf76e60(0x23f)](this[_0xf76e60(0x551)]))[_0xf76e60(0x1f3)](_0x2c6611=>{_0x26fd64(_0x2c6611);});}};Ee=Sn([he(0x0,a[_0x1100bd(0x583)](a[_0x1100bd(0x2a1)])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x1100bd(0x4d7)]),he(0x3,a[_0x1100bd(0x583)](exports['CollaborationSessionService'])),he(0x4,a['Inject'](a[_0x1100bd(0x497)]))],Ee);var vn=Object[_0x1100bd(0x4ed)],fn=Object[_0x1100bd(0x444)],gn=(_0x3740df,_0x1cd86e,_0x11f698,_0x30d713)=>{const _0x25d04f=_0x1100bd;for(var _0x137d3d=_0x30d713>0x1?void 0x0:_0x30d713?fn(_0x1cd86e,_0x11f698):_0x1cd86e,_0x3913d6=_0x3740df[_0x25d04f(0x46d)]-0x1,_0x22afa3;_0x3913d6>=0x0;_0x3913d6--)(_0x22afa3=_0x3740df[_0x3913d6])&&(_0x137d3d=(_0x30d713?_0x22afa3(_0x1cd86e,_0x11f698,_0x137d3d):_0x22afa3(_0x137d3d))||_0x137d3d);return _0x30d713&&_0x137d3d&&vn(_0x1cd86e,_0x11f698,_0x137d3d),_0x137d3d;},lt=(_0x66d4c3,_0x349e61)=>(_0x212f7c,_0x2e8e18)=>_0x349e61(_0x212f7c,_0x2e8e18,_0x66d4c3);exports[_0x1100bd(0x5bd)]=class{constructor(_0x445c41,_0x4630cb){const _0x45564a=_0x1100bd;this[_0x45564a(0x4c0)]=_0x445c41,this[_0x45564a(0x4b7)]=_0x4630cb;}async[_0x1100bd(0x3b2)](_0x4aedd4,_0xff69e4){const _0x1e746f=_0x1100bd;var _0x3d8d29;const {unitID:_0x4369c6,type:_0xbd8b69,revision:_0x1d3e00=0x0}=_0xff69e4,_0x1f26c9=this['_getSnapshotAPIPrefix']()+'/'+_0xbd8b69+_0x1e746f(0x4c6)+_0x4369c6+_0x1e746f(0x34e)+_0x1d3e00,_0x20c6d=(await this[_0x1e746f(0x4b7)][_0x1e746f(0x1f4)](_0x1f26c9))[_0x1e746f(0x2b8)],_0x1b48a4=(_0x3d8d29=_0x20c6d[_0x1e746f(0x4aa)])==null?void 0x0:_0x3d8d29[_0x1e746f(0x424)];if(_0x1b48a4){const _0x24cc81=_0x1b48a4==null?void 0x0:_0x1b48a4[_0x1e746f(0x2f9)],_0x2e334d=_['textEncoder'][_0x1e746f(0x42e)](_[_0x1e746f(0x3b3)](_0x24cc81));_0x1b48a4['originalMeta']=_0x2e334d,Object[_0x1e746f(0x208)](_0x1b48a4[_0x1e746f(0x39a)])[_0x1e746f(0x2be)](([,_0x456124])=>{const _0x345be=_0x1e746f,_0x467099=_0x456124[_0x345be(0x2f9)],_0x5b1743=_['textEncoder'][_0x345be(0x42e)](_[_0x345be(0x3b3)](_0x467099));_0x456124[_0x345be(0x2f9)]=_0x5b1743;});}return _0x20c6d;}async[_0x1100bd(0x3b5)](_0x7e5c01,_0x63fc4f){const _0x262287=_0x1100bd,{unitID:_0x3d9855,type:_0x53e9ae,blockID:_0xeae0bb}=_0x63fc4f,_0x57e27c=this['_getAPIPrefix']()+'/'+_0x53e9ae+'/unit/'+_0x3d9855+'/block/'+_0xeae0bb;return(await this['_httpService']['get'](_0x57e27c))[_0x262287(0x2b8)];}async[_0x1100bd(0x235)](_0x2bb29c,_0x51600f){const _0x4eb7c2=_0x1100bd,{unitID:_0x1013f4,type:_0x4d7f6d,blockID:_0x514198}=_0x51600f,_0x2787c2=this['_getAPIPrefix']()+_0x4eb7c2(0x531)+_0x4d7f6d+_0x4eb7c2(0x4c6)+_0x1013f4+_0x4eb7c2(0x531)+_0x514198;return(await this[_0x4eb7c2(0x4b7)]['get'](_0x2787c2))[_0x4eb7c2(0x2b8)];}async['fetchMissingChangesets'](_0x253e9c,_0x220b15){const _0x31f49e=_0x1100bd,{unitID:_0x63bf2,type:_0x52e530,from:_0x37e08d,to:_0x22931f}=_0x220b15,_0x3e52f3=this[_0x31f49e(0x206)]()+'/'+_0x52e530+_0x31f49e(0x4c6)+_0x63bf2+_0x31f49e(0x278)+_0x37e08d+'&to='+_0x22931f;return(await this['_httpService']['get'](_0x3e52f3))[_0x31f49e(0x2b8)];}[_0x1100bd(0x229)](){const _0xe63d9=_0x1100bd;var _0x55df88;return(_0x55df88=this[_0xe63d9(0x4c0)]['getConfig'](_t))!=null?_0x55df88:this[_0xe63d9(0x206)]();}['_getAPIPrefix'](){const _0x1b1cf4=_0x1100bd;var _0x1034d7,_0x925550;const _0x2f5a49=this[_0x1b1cf4(0x4c0)][_0x1b1cf4(0x204)](ht),_0x376f14=this[_0x1b1cf4(0x4c0)][_0x1b1cf4(0x204)](A);return(_0x925550=(_0x1034d7=_0x376f14==null?void 0x0:_0x376f14[_0x1b1cf4(0x2bd)])!=null?_0x1034d7:_0x2f5a49)!=null?_0x925550:Gt;}async['getResourcesRequest'](_0x56bb97,_0x34f6c1){const _0x1caa5b=_0x1100bd,_0x5c538b=_0x1caa5b(0x1d5)+_0x34f6c1[_0x1caa5b(0x525)]+_0x1caa5b(0x4c6)+_0x34f6c1[_0x1caa5b(0x59b)]+_0x1caa5b(0x2cb);return(await this[_0x1caa5b(0x4b7)][_0x1caa5b(0x1f4)](_0x5c538b,{'params':{'resourceId':JSON['stringify'](_0x34f6c1['resourceIDs'])}}))[_0x1caa5b(0x2b8)];}[_0x1100bd(0x22f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1100bd(0x1e6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1100bd(0x3f0)](){const _0x14702c=_0x1100bd;throw new Error(_0x14702c(0x21a));}['copyFileMeta'](){const _0x50203b=_0x1100bd;throw new Error(_0x50203b(0x21a));}},exports[_0x1100bd(0x5bd)]=gn([lt(0x0,a[_0x1100bd(0x32b)]),lt(0x1,a[_0x1100bd(0x583)](P[_0x1100bd(0x2b0)]))],exports[_0x1100bd(0x5bd)]);var mn=Object[_0x1100bd(0x4ed)],In=Object[_0x1100bd(0x444)],pn=(_0x2502a7,_0x438d0a,_0x289aac,_0x120613)=>{const _0x3ce2ce=_0x1100bd;for(var _0x21ba1d=_0x120613>0x1?void 0x0:_0x120613?In(_0x438d0a,_0x289aac):_0x438d0a,_0x5dc2d3=_0x2502a7[_0x3ce2ce(0x46d)]-0x1,_0x48bce7;_0x5dc2d3>=0x0;_0x5dc2d3--)(_0x48bce7=_0x2502a7[_0x5dc2d3])&&(_0x21ba1d=(_0x120613?_0x48bce7(_0x438d0a,_0x289aac,_0x21ba1d):_0x48bce7(_0x21ba1d))||_0x21ba1d);return _0x120613&&_0x21ba1d&&mn(_0x438d0a,_0x289aac,_0x21ba1d),_0x21ba1d;},_e=(_0x3e3221,_0x3f1db7)=>(_0x2ceaf5,_0xc0d543)=>_0x3f1db7(_0x2ceaf5,_0xc0d543,_0x3e3221);let Be=class extends a[_0x1100bd(0x4ab)]{constructor(_0x30584d,_0x2fd76c,_0x4a1cb6,_0x20d92d,_0x28f43d){const _0x1f055c=_0x1100bd;super(_0x30584d,_0x2fd76c,_0x4a1cb6),this['_transformService']=_0x20d92d,this[_0x1f055c(0x340)]=_0x28f43d;}[_0x1100bd(0x4ae)](_0x209b8f,_0x1430cc){const _0x4f5a60=_0x1100bd,_0x322ba0=this[_0x4f5a60(0x2f5)](_0x209b8f);if(_0x322ba0)try{const _0x1c519a=this['_transformStack'](_0x322ba0,_0x1430cc);this[_0x4f5a60(0x408)](_0x209b8f,_0x1c519a);}catch(_0x2a7445){this[_0x4f5a60(0x340)]['error']('[CollaborationUndoRedoService]',_0x2a7445),this[_0x4f5a60(0x1ef)](_0x209b8f);}const _0x50e539=this[_0x4f5a60(0x1b8)](_0x209b8f);if(_0x50e539)try{const _0x2a4e11=this[_0x4f5a60(0x577)](_0x50e539,_0x1430cc);this[_0x4f5a60(0x585)](_0x209b8f,_0x2a4e11);}catch(_0x23793e){this[_0x4f5a60(0x340)]['error'](_0x23793e),this[_0x4f5a60(0x592)](_0x209b8f);}}[_0x1100bd(0x1ef)](_0x5beccb){const _0x28a650=_0x1100bd,_0x4fed72=this[_0x28a650(0x2f5)](_0x5beccb);_0x4fed72&&(_0x4fed72[_0x28a650(0x46d)]=0x0,this[_0x28a650(0x4f5)]());}[_0x1100bd(0x592)](_0x1e4479){const _0x32712e=_0x1100bd,_0x21d615=this[_0x32712e(0x1b8)](_0x1e4479);_0x21d615&&(_0x21d615[_0x32712e(0x46d)]=0x0,this[_0x32712e(0x4f5)]());}[_0x1100bd(0x408)](_0x54e2d9,_0x4c8cec){const _0x444798=_0x1100bd;this[_0x444798(0x466)][_0x444798(0x57e)](_0x54e2d9,_0x4c8cec),this[_0x444798(0x4f5)]();}[_0x1100bd(0x585)](_0x1589a3,_0x179f26){const _0x24cc36=_0x1100bd;this['_redoStacks']['set'](_0x1589a3,_0x179f26),this[_0x24cc36(0x4f5)]();}[_0x1100bd(0x577)](_0x245759,_0x31efd0){const _0x2aa4c0=_0x1100bd,_0x568607=[];let _0x20b71d=_0x31efd0,_0x4fe14a=_0x31efd0;for(let _0x46a30e=_0x245759['length']-0x1;_0x46a30e>=0x0;_0x46a30e--){const {unitID:_0x52f1f9,undoMutations:_0x5a80a6,redoMutations:_0xfb4f51}=_0x245759[_0x46a30e],_0x418ac7=this[_0x2aa4c0(0x1ce)][_0x2aa4c0(0x3c2)](_0x20b71d,_0x5a80a6),_0x34c0ac=this[_0x2aa4c0(0x1ce)][_0x2aa4c0(0x3c2)](_0x4fe14a,_0xfb4f51);if(_[_0x2aa4c0(0x332)](_0x418ac7)||_[_0x2aa4c0(0x332)](_0x34c0ac)){this[_0x2aa4c0(0x340)][_0x2aa4c0(0x3d1)](_0x2aa4c0(0x3cf),_0x2aa4c0(0x50f),_0x418ac7,_0x34c0ac);break;}_0x20b71d=_0x418ac7['c1Prime'],_0x4fe14a=_0x34c0ac[_0x2aa4c0(0x20e)],_0x568607['push']({'unitID':_0x52f1f9,'undoMutations':_0x418ac7[_0x2aa4c0(0x1ca)],'redoMutations':_0x34c0ac[_0x2aa4c0(0x1ca)]});}return _0x568607[_0x2aa4c0(0x43d)]();}};Be=pn([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0x1100bd(0x505)]),_e(0x2,a[_0x1100bd(0x20b)]),_e(0x3,_[_0x1100bd(0x38d)]),_e(0x4,a[_0x1100bd(0x49b)])],Be);class Nt extends a[_0x1100bd(0x1c7)]{constructor(){const _0x1be43a=_0x1100bd;super(),d(this,_0x1be43a(0x313)),this[_0x1be43a(0x313)]=v[_0x1be43a(0x549)](window,'popstate')[_0x1be43a(0x32e)](v[_0x1be43a(0x23f)](this[_0x1be43a(0x551)]),v[_0x1be43a(0x33d)](0x1),v[_0x1be43a(0x465)](void 0x0));}[_0x1100bd(0x224)](_0x3e095d,_0x355166,_0x5f3376=!0x1){const _0x9671f0=_0x1100bd,_0x371779=new URL(window[_0x9671f0(0x37b)][_0x9671f0(0x4c3)]);_0x371779['searchParams']['set'](_0x3e095d,_0x355166),_0x5f3376?window['history'][_0x9671f0(0x33a)]('','',_0x371779[_0x9671f0(0x431)]()):window[_0x9671f0(0x2d7)][_0x9671f0(0x410)]('','',_0x371779[_0x9671f0(0x431)]());}['removeParam'](_0x463d06,_0x6a520=!0x1){const _0x26094f=_0x1100bd,_0x1964e8=new URL(window[_0x26094f(0x37b)][_0x26094f(0x4c3)]);_0x1964e8[_0x26094f(0x49e)][_0x26094f(0x5bf)](_0x463d06),_0x6a520?window[_0x26094f(0x2d7)][_0x26094f(0x33a)]('','',_0x1964e8[_0x26094f(0x431)]()):window[_0x26094f(0x2d7)][_0x26094f(0x410)]('','',_0x1964e8['toString']());}['getParam'](_0x1dbf7f){const _0x5d0027=_0x1100bd;var _0x1ded7f;return(_0x1ded7f=new URL(window[_0x5d0027(0x37b)][_0x5d0027(0x4c3)])[_0x5d0027(0x49e)][_0x5d0027(0x1f4)](_0x1dbf7f))!=null?_0x1ded7f:void 0x0;}}var At=Object['defineProperty'],Cn=Object[_0x1100bd(0x444)],En=(_0xdeead,_0x2758fb,_0x553c13)=>_0x2758fb in _0xdeead?At(_0xdeead,_0x2758fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x553c13}):_0xdeead[_0x2758fb]=_0x553c13,bn=(_0x4e8e25,_0xf0d094,_0x4975b2,_0xd7d3b5)=>{const _0x5e2aec=_0x1100bd;for(var _0x40f734=_0xd7d3b5>0x1?void 0x0:_0xd7d3b5?Cn(_0xf0d094,_0x4975b2):_0xf0d094,_0x31dbd5=_0x4e8e25[_0x5e2aec(0x46d)]-0x1,_0x4aca21;_0x31dbd5>=0x0;_0x31dbd5--)(_0x4aca21=_0x4e8e25[_0x31dbd5])&&(_0x40f734=(_0xd7d3b5?_0x4aca21(_0xf0d094,_0x4975b2,_0x40f734):_0x4aca21(_0x40f734))||_0x40f734);return _0xd7d3b5&&_0x40f734&&At(_0xf0d094,_0x4975b2,_0x40f734),_0x40f734;},ve=(_0x41f418,_0x1c2e7e)=>(_0x76286b,_0x52966a)=>_0x1c2e7e(_0x76286b,_0x52966a,_0x41f418),Tn=(_0x133c45,_0xc34f9d,_0x212c1b)=>En(_0x133c45,_0xc34f9d+'',_0x212c1b);const Rn=_0x1100bd(0x1c6);exports[_0x1100bd(0x374)]=class extends a[_0x1100bd(0x5c8)]{constructor(_0x593be8=ts,_0x2ceb3e,_0x4bf098,_0x472451,_0x1086f4){const _0x4b0b20=_0x1100bd;super(),this['_config']=_0x593be8,this[_0x4b0b20(0x340)]=_0x2ceb3e,this['_renderManagerService']=_0x4bf098,this[_0x4b0b20(0x1d8)]=_0x472451,this[_0x4b0b20(0x4c0)]=_0x1086f4;const {..._0x153ca2}=this[_0x4b0b20(0x395)];this[_0x4b0b20(0x4c0)]['setConfig'](A,_0x153ca2);}[_0x1100bd(0x4fe)](){const _0x1a095d=_0x1100bd;this[_0x1a095d(0x58c)](),a[_0x1a095d(0x5c6)](this[_0x1a095d(0x1d8)],[[ie],[exports[_0x1a095d(0x4f9)]],[Ee]]);}[_0x1100bd(0x58f)](){const _0x2dfdfa=_0x1100bd;a[_0x2dfdfa(0x5c6)](this['_injector'],[[Ie]]);}[_0x1100bd(0x4de)](){const _0x18a194=_0x1100bd;this[_0x18a194(0x4dc)]();}[_0x1100bd(0x58c)](){const _0x501712=_0x1100bd;var _0x43bcff,_0x52b995,_0x8c7d6b,_0x5b550e;this[_0x501712(0x1d8)][_0x501712(0x5a3)](a['IUndoRedoService'])&&this[_0x501712(0x340)][_0x501712(0x3d1)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x97c91a=[[a['IUndoRedoService'],{'useClass':Be}],[exports[_0x501712(0x532)]],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports[_0x501712(0x209)]],[P['WebSocketService']],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x52b995=(_0x43bcff=this[_0x501712(0x395)])==null?void 0x0:_0x43bcff[_0x501712(0x560)])!=null?_0x52b995:exports['CollaborationSocketService']}],[P['IHTTPImplementation'],{'useClass':P[_0x501712(0x449)]}],[_[_0x501712(0x477)],{'useClass':exports[_0x501712(0x5bd)]}],[a[_0x501712(0x245)],{'useClass':exports[_0x501712(0x36d)]}],[L[_0x501712(0x359)],{'useClass':exports['ImageIoService']}],[exports[_0x501712(0x38c)]],[exports['DataLoaderController']],[exports[_0x501712(0x3d3)]],[Ie],[ie]];(_0x8c7d6b=this[_0x501712(0x395)])!=null&&_0x8c7d6b[_0x501712(0x2c8)]&&_0x97c91a[_0x501712(0x414)]([be,{'useClass':ys}]),_0x97c91a=a['mergeOverrideWithDependencies'](_0x97c91a,(_0x5b550e=this[_0x501712(0x395)])==null?void 0x0:_0x5b550e[_0x501712(0x39d)]),_0x97c91a[_0x501712(0x2be)](_0x366fa8=>this[_0x501712(0x1d8)][_0x501712(0x1e0)](_0x366fa8)),this['_initModules']();}[_0x1100bd(0x4dc)](){const _0x54f65f=_0x1100bd;this[_0x54f65f(0x40b)](this[_0x54f65f(0x2ca)][_0x54f65f(0x297)](a['UniverInstanceType']['UNIVER_DOC'],[xe])),this[_0x54f65f(0x40b)](this[_0x54f65f(0x2ca)][_0x54f65f(0x297)](a[_0x54f65f(0x2e9)][_0x54f65f(0x293)],[ke]));}[_0x1100bd(0x2cf)](){const _0x1fe967=_0x1100bd;var _0x265c9e,_0x58c00b;this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](P[_0x1fe967(0x2b0)])[_0x1fe967(0x4cf)]({'priority':0x14,'interceptor':P[_0x1fe967(0x50e)]({'maxParallel':0x6})}),this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](Ce),(_0x265c9e=this[_0x1fe967(0x395)])!=null&&_0x265c9e['enableOfflineEditing']||this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](exports[_0x1fe967(0x209)])[_0x1fe967(0x4a5)](),(_0x58c00b=this[_0x1fe967(0x395)])!=null&&_0x58c00b[_0x1fe967(0x3f7)]&&this['_injector'][_0x1fe967(0x1f4)](pe),this[_0x1fe967(0x1d8)][_0x1fe967(0x1f4)](exports[_0x1fe967(0x38c)]),this[_0x1fe967(0x1d8)]['has'](exports[_0x1fe967(0x3d3)])&&this['_injector']['get'](exports[_0x1fe967(0x3d3)]);}},Tn(exports['UniverCollaborationClientPlugin'],_0x1100bd(0x4b4),Rn),exports[_0x1100bd(0x374)]=bn([a[_0x1100bd(0x2e2)](_[_0x1100bd(0x537)]),ve(0x1,a[_0x1100bd(0x49b)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a['Inject'](a[_0x1100bd(0x2a1)])),ve(0x4,a[_0x1100bd(0x32b)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Mt,exports[_0x1100bd(0x571)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x1100bd(0x58e)]=y,exports[_0x1100bd(0x31f)]=wt,exports[_0x1100bd(0x24a)]=Ge,exports[_0x1100bd(0x52a)]=dt,exports[_0x1100bd(0x34c)]=Ve,exports[_0x1100bd(0x40d)]=Fe,exports[_0x1100bd(0x37e)]=ze,exports[_0x1100bd(0x490)]=ft,exports[_0x1100bd(0x51c)]=mt,exports[_0x1100bd(0x2d1)]=vt,exports[_0x1100bd(0x1fd)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x1100bd(0x527)]=_t,exports[_0x1100bd(0x37a)]=$,exports[_0x1100bd(0x1da)]=Ot,exports[_0x1100bd(0x27e)]=Nt,exports[_0x1100bd(0x3a4)]=Ct,exports[_0x1100bd(0x2b1)]=Et;
1
+ 'use strict';const _0x945337=_0x38f3;(function(_0xa48716,_0x1119e9){const _0x7353fd=_0x38f3,_0x137d20=_0xa48716();while(!![]){try{const _0xc56291=parseInt(_0x7353fd(0x560))/0x1+parseInt(_0x7353fd(0x364))/0x2+-parseInt(_0x7353fd(0x192))/0x3+parseInt(_0x7353fd(0x17b))/0x4*(-parseInt(_0x7353fd(0x2b0))/0x5)+-parseInt(_0x7353fd(0x461))/0x6+parseInt(_0x7353fd(0x3ec))/0x7+parseInt(_0x7353fd(0x1c5))/0x8*(-parseInt(_0x7353fd(0x185))/0x9);if(_0xc56291===_0x1119e9)break;else _0x137d20['push'](_0x137d20['shift']());}catch(_0x2a6b6d){_0x137d20['push'](_0x137d20['shift']());}}}(_0x336a,0x494bf));var kt=Object[_0x945337(0x24b)],Bt=(_0x1c9b74,_0x4d1cca,_0x453581)=>_0x4d1cca in _0x1c9b74?kt(_0x1c9b74,_0x4d1cca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x453581}):_0x1c9b74[_0x4d1cca]=_0x453581,d=(_0x3206a2,_0x339db8,_0x557312)=>Bt(_0x3206a2,typeof _0x339db8!='symbol'?_0x339db8+'':_0x339db8,_0x557312);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x945337(0x30d)});const a=require(_0x945337(0x49f)),v=require(_0x945337(0x1fc)),E=require(_0x945337(0x3b4)),X=require(_0x945337(0x26f)),N=require(_0x945337(0x553)),P=require(_0x945337(0x2f6)),_=require(_0x945337(0x1e1)),Vt=require(_0x945337(0x189)),V=require('@univerjs/docs'),w=require(_0x945337(0x53b)),C=require(_0x945337(0x381)),R=require(_0x945337(0x236)),L=require(_0x945337(0x291)),Je=require(_0x945337(0x418)),te=require('@univerjs/sheets-ui'),U=require(_0x945337(0x3d6)),Wt=require(_0x945337(0x3a9)),Ft=require(_0x945337(0x4e8)),ht=_0x945337(0x54e),Gt=_0x945337(0x413),_t=_0x945337(0x438),Yt=_0x945337(0x46c),Kt=0x7d0,ut='COLLAB_WEB_SOCKET_URL',Xt=_0x945337(0x25b),dt=_0x945337(0x380),qt=0x7530,Ve=_0x945337(0x535),St=0x4e20,zt=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',Jt=0x3,ft=_0x945337(0x55b),Zt=0x3e8,gt=_0x945337(0x374),Qt=_0x945337(0x35c),mt=_0x945337(0x2d4),es=_0x945337(0x308);var It=(_0x39ad3a=>(_0x39ad3a[_0x39ad3a[_0x945337(0x276)]=0x0]=_0x945337(0x276),_0x39ad3a[_0x39ad3a['OK']=0x1]='OK',_0x39ad3a[_0x39ad3a[_0x945337(0x2ef)]=0x2]=_0x945337(0x2ef),_0x39ad3a[_0x39ad3a[_0x945337(0x190)]=0x3]=_0x945337(0x190),_0x39ad3a[_0x39ad3a[_0x945337(0x4dc)]=0x4]=_0x945337(0x4dc),_0x39ad3a[_0x39ad3a[_0x945337(0x355)]=0x5]=_0x945337(0x355),_0x39ad3a[_0x39ad3a[_0x945337(0x281)]=0x6]=_0x945337(0x281),_0x39ad3a[_0x39ad3a[_0x945337(0x1cb)]=0x7]='INVALID_ARGUMENT',_0x39ad3a[_0x39ad3a[_0x945337(0x229)]=0x8]=_0x945337(0x229),_0x39ad3a[_0x39ad3a[_0x945337(0x29e)]=0x9]=_0x945337(0x29e),_0x39ad3a[_0x39ad3a[_0x945337(0x2c2)]=0x1389]=_0x945337(0x2c2),_0x39ad3a[_0x39ad3a[_0x945337(0x541)]=0x1771]=_0x945337(0x541),_0x39ad3a[_0x39ad3a[_0x945337(0x48f)]=0x1772]=_0x945337(0x48f),_0x39ad3a[_0x39ad3a[_0x945337(0x537)]=0x1b59]=_0x945337(0x537),_0x39ad3a[_0x39ad3a[_0x945337(0x273)]=0x1b5a]=_0x945337(0x273),_0x39ad3a[_0x39ad3a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x945337(0x3e7),_0x39ad3a[_0x39ad3a[_0x945337(0x575)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x39ad3a[_0x39ad3a[_0x945337(0x4f6)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x39ad3a[_0x39ad3a[_0x945337(0x2da)]=0x2329]=_0x945337(0x2da),_0x39ad3a[_0x39ad3a[_0x945337(0x347)]=0x232a]=_0x945337(0x347),_0x39ad3a[_0x39ad3a[_0x945337(0x18b)]=0x232b]=_0x945337(0x18b),_0x39ad3a[_0x39ad3a[_0x945337(0x3bb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x39ad3a[_0x39ad3a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x945337(0x34b),_0x39ad3a[_0x39ad3a[_0x945337(0x492)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x39ad3a[_0x39ad3a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x945337(0x1b9),_0x39ad3a[_0x39ad3a[_0x945337(0x3a0)]=0x2713]=_0x945337(0x3a0),_0x39ad3a[_0x39ad3a[_0x945337(0x1bd)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x39ad3a[_0x39ad3a[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x39ad3a))(It||{}),j=(_0x5c47d7=>(_0x5c47d7[_0x5c47d7[_0x945337(0x52e)]=0x0]=_0x945337(0x52e),_0x5c47d7[_0x5c47d7['UNIVER_DOC']=0x1]=_0x945337(0x395),_0x5c47d7[_0x5c47d7['UNIVER_SHEET']=0x2]=_0x945337(0x53c),_0x5c47d7[_0x5c47d7[_0x945337(0x16e)]=0x3]=_0x945337(0x16e),_0x5c47d7[_0x5c47d7[_0x945337(0x216)]=0x4]=_0x945337(0x216),_0x5c47d7[_0x5c47d7[_0x945337(0x202)]=-0x1]='UNRECOGNIZED',_0x5c47d7))(j||{}),b=(_0x2d3efb=>(_0x2d3efb[_0x2d3efb[_0x945337(0x460)]=0x0]='UNKNOWN_CMD',_0x2d3efb[_0x2d3efb[_0x945337(0x25f)]=0x1]=_0x945337(0x25f),_0x2d3efb[_0x2d3efb[_0x945337(0x4e2)]=0x2]=_0x945337(0x4e2),_0x2d3efb[_0x2d3efb[_0x945337(0x1f3)]=0x3]=_0x945337(0x1f3),_0x2d3efb[_0x2d3efb[_0x945337(0x455)]=0x4]=_0x945337(0x455),_0x2d3efb[_0x2d3efb[_0x945337(0x489)]=0x5]=_0x945337(0x489),_0x2d3efb[_0x2d3efb[_0x945337(0x2f4)]=0x6]=_0x945337(0x2f4),_0x2d3efb[_0x2d3efb[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x2d3efb))(b||{}),We=(_0xed2db3=>(_0xed2db3[_0xed2db3[_0x945337(0x3e6)]=0x0]=_0x945337(0x3e6),_0xed2db3[_0xed2db3['OK']=0x1]='OK',_0xed2db3[_0xed2db3['FAIL']=0x2]='FAIL',_0xed2db3[_0xed2db3['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0xed2db3))(We||{}),pt=(_0x49b95a=>(_0x49b95a[_0x49b95a[_0x945337(0x2d2)]=0x0]=_0x945337(0x2d2),_0x49b95a[_0x49b95a[_0x945337(0x557)]=0x1]=_0x945337(0x557),_0x49b95a[_0x49b95a[_0x945337(0x45a)]=0x2]=_0x945337(0x45a),_0x49b95a[_0x49b95a[_0x945337(0x29b)]=0x3]=_0x945337(0x29b),_0x49b95a[_0x49b95a[_0x945337(0x1f2)]=0x4]=_0x945337(0x1f2),_0x49b95a[_0x49b95a[_0x945337(0x202)]=-0x1]=_0x945337(0x202),_0x49b95a))(pt||{});const A=_0x945337(0x4bd),ts={};function Ct(_0xbe7210){const _0x4f89e5=_0x945337;var _0x5d0cba,_0x4b3d07,_0x1a550f,_0x1f3cbb;const _0x218f05=_0xbe7210[_0x4f89e5(0x375)],_0x20c12a=JSON[_0x4f89e5(0x2e0)](_0x218f05);switch(_0x20c12a[_0x4f89e5(0x4ef)]){case b[_0x4f89e5(0x489)]:case b[_0x4f89e5(0x25f)]:{const _0x416509=_0x20c12a[_0x4f89e5(0x3a2)];return{..._0x20c12a,'data':_0x416509,'cmd':_0x20c12a['cmd']};}case b[_0x4f89e5(0x4e2)]:{const _0x41fce4=_0x20c12a[_0x4f89e5(0x29c)];return{..._0x20c12a,'data':_0x41fce4,'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};}case b[_0x4f89e5(0x2f4)]:{const _0x2694f7=_0x20c12a[_0x4f89e5(0x29a)];switch(_0x2694f7[_0x4f89e5(0x170)]){case _['CollaborationEvent'][_0x4f89e5(0x186)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x5d0cba=_0x2694f7['permissionRejEvent'])==null?void 0x0:_0x5d0cba['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x1f1)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x4b3d07=_0x2694f7['csAckEvent'])==null?void 0x0:_0x4b3d07['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3c6)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1a550f=_0x2694f7['newCsEvent'])==null?void 0x0:_0x1a550f['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x573)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':(_0x1f3cbb=_0x2694f7['csRejEvent'])==null?void 0x0:_0x1f3cbb['cs']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x206)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x20d)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['USERS_ENTER']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['joinEvent']},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x3cb)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x253)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x500)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _[_0x4f89e5(0x4eb)]['LIVESHARE_FETCH_OPERATIONS']:case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x487)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7['liveShareOperation']},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};case _['CollaborationEvent'][_0x4f89e5(0x3cd)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x245)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d1)]:return{..._0x20c12a,'data':_0x2694f7,'cmd':_0x20c12a['cmd']};case _['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1e4)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)]['UPDATE_PERMISSION_OBJ']:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x360)]},'cmd':_0x20c12a['cmd']};case _[_0x4f89e5(0x4eb)][_0x4f89e5(0x2d8)]:return{..._0x20c12a,'data':{..._0x2694f7,'data':_0x2694f7[_0x4f89e5(0x1a1)]},'cmd':_0x20c12a[_0x4f89e5(0x4ef)]};default:return _0x20c12a;}}default:return _0x20c12a;}}function Et(_0x46d26c){const _0x5e43ff=_0x945337;switch(_0x46d26c['cmd']){case b['HEARTBEAT']:case b[_0x5e43ff(0x25f)]:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)]});case b[_0x5e43ff(0x455)]:{let _0x54e5b1;switch(_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]){case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x206)],'updateCursorEvent':_0x46d26c['data'][_0x5e43ff(0x375)]};break;}case _['CollaborationEvent'][_0x5e43ff(0x3cb)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x3cb)],'leaveEvent':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['USERS_ENTER']:{_0x54e5b1={'eventID':_['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x500)],'liveShareNewHost':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)]['LIVESHARE_OPERATION']:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x487)],'liveShareOperation':_0x46d26c[_0x5e43ff(0x375)]['data']};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x3cd)],'liveShareTerminate':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x375)]};break;}case _[_0x5e43ff(0x4eb)][_0x5e43ff(0x2c8)]:{_0x54e5b1={'eventID':_['CollaborationEvent'][_0x5e43ff(0x2c8)],'liveShareRequestHost':_0x46d26c['data']['data']};break;}case _['CollaborationEvent'][_0x5e43ff(0x30c)]:{_0x54e5b1={'eventID':_[_0x5e43ff(0x4eb)][_0x5e43ff(0x30c)]};break;}default:_0x54e5b1={'eventID':_0x46d26c[_0x5e43ff(0x375)][_0x5e43ff(0x170)]};}return JSON['stringify']({'cmd':_0x46d26c['cmd'],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'collaMsg':_0x54e5b1});}case b['JOIN']:return JSON['stringify']({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c[_0x5e43ff(0x1c6)],'joinReq':_0x46d26c[_0x5e43ff(0x375)]});case b['LEAVE']:return JSON[_0x5e43ff(0x22d)]({'cmd':_0x46d26c[_0x5e43ff(0x4ef)],'routeKey':_0x46d26c['routeKey'],'leaveReq':_0x46d26c[_0x5e43ff(0x375)]});default:throw new Error(_0x5e43ff(0x432));}}var ss=Object['defineProperty'],is=Object[_0x945337(0x3e2)],ns=(_0xebcb19,_0x4cbdc6,_0x29e0e2,_0x289869)=>{for(var _0x2e668a=_0x289869>0x1?void 0x0:_0x289869?is(_0x4cbdc6,_0x29e0e2):_0x4cbdc6,_0x1c214d=_0xebcb19['length']-0x1,_0xcbe805;_0x1c214d>=0x0;_0x1c214d--)(_0xcbe805=_0xebcb19[_0x1c214d])&&(_0x2e668a=(_0x289869?_0xcbe805(_0x4cbdc6,_0x29e0e2,_0x2e668a):_0xcbe805(_0x2e668a))||_0x2e668a);return _0x289869&&_0x2e668a&&ss(_0x4cbdc6,_0x29e0e2,_0x2e668a),_0x2e668a;},oe=(_0x2e6c81,_0x3c84cf)=>(_0x53455a,_0x4c7450)=>_0x3c84cf(_0x53455a,_0x4c7450,_0x2e6c81);const Fe=a['createIdentifier'](_0x945337(0x2ee));function rs(_0x4e6f08,_0x47b81f,_0x560bf6){const _0x58dd11=_0x945337;return _0x4e6f08+'/'+_0x47b81f+'/unit/'+_0x560bf6+_0x58dd11(0x32c);}exports[_0x945337(0x305)]=class extends a[_0x945337(0x45b)]{constructor(_0x1cb429,_0x1a47a5,_0x176484,_0x27f073,_0x3f598f){const _0x2e8b1b=_0x945337;super(),this[_0x2e8b1b(0x266)]=_0x1cb429,this[_0x2e8b1b(0x390)]=_0x1a47a5,this[_0x2e8b1b(0x4f8)]=_0x176484,this[_0x2e8b1b(0x4ae)]=_0x27f073,this[_0x2e8b1b(0x54d)]=_0x3f598f;}['createSocket'](_0x30e3c8){const _0x3f546f=_0x945337,_0x4857c3=this[_0x3f546f(0x390)][_0x3f546f(0x452)](_0x30e3c8);if(!_0x4857c3)throw new Error(_0x3f546f(0x499));const _0x53f45b=new a[(_0x3f546f(0x275))](),_0x3a71d0=new v[(_0x3f546f(0x36e))]();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x343)][_0x3f546f(0x397)](_0x90eefd=>_0x3a71d0[_0x3f546f(0x3ca)](_0x90eefd))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x3a71d0[_0x3f546f(0x531)]()));const _0x1d2c3d=new v['Subject']();_0x53f45b['add'](_0x4857c3[_0x3f546f(0x4b5)]['subscribe'](_0x499ab3=>_0x1d2c3d[_0x3f546f(0x3ca)](_0x499ab3))),_0x53f45b[_0x3f546f(0x18a)](a[_0x3f546f(0x296)](()=>_0x1d2c3d['complete']()));const _0x46a200=new v['Subject']();_0x53f45b[_0x3f546f(0x18a)](_0x4857c3[_0x3f546f(0x3dc)][_0x3f546f(0x397)](_0x58f5b6=>{const _0x737eaf=_0x3f546f,_0xa5fadc=Ct(_0x58f5b6);_0x46a200[_0x737eaf(0x3ca)](_0xa5fadc);})),_0x53f45b[_0x3f546f(0x18a)](a['toDisposable'](()=>_0x46a200[_0x3f546f(0x531)]()));let _0x5879cb;const _0xbe866e=()=>{const _0x282ada=_0x3f546f;_0x1d2c3d[_0x282ada(0x3ca)](new Event('connection\x20error')),_0x3a71d0[_0x282ada(0x3ca)](new CloseEvent(_0x282ada(0x3ae))),_0x5879cb[_0x282ada(0x322)]();};return _0x5879cb={'memberID':'','close$':_0x3a71d0[_0x3f546f(0x19b)](),'error$':_0x1d2c3d[_0x3f546f(0x19b)](),'open$':_0x4857c3[_0x3f546f(0x445)],'message$':_0x46a200['asObservable'](),'send':_0x59cbea=>{const _0x41a3c0=_0x3f546f;if(_0x59cbea[_0x41a3c0(0x4ef)]===b['INGEST']){if(_0x59cbea['data']['eventID']===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x56d)]){this[_0x41a3c0(0x2f7)](_0x5879cb,_0x59cbea['data'])[_0x41a3c0(0x3ff)](_0x1579ce=>{const _0x17c0ec=_0x41a3c0;this[_0x17c0ec(0x4ae)]['error'](_0x1579ce),_0xbe866e();});return;}if(_0x59cbea[_0x41a3c0(0x375)][_0x41a3c0(0x170)]===_[_0x41a3c0(0x4eb)][_0x41a3c0(0x51d)]){const _0x3eed85=_0x59cbea[_0x41a3c0(0x375)];this[_0x41a3c0(0x412)](_0x3eed85)['then'](_0x3d2fca=>{const _0x26f5fe=_0x41a3c0;_0x46a200[_0x26f5fe(0x3ca)]({'cmd':b[_0x26f5fe(0x2f4)],'code':We['OK'],'routeKey':_0x3eed85[_0x26f5fe(0x375)][_0x26f5fe(0x1da)],'routeType':'','data':{'eventID':_[_0x26f5fe(0x4eb)][_0x26f5fe(0x4b7)],'data':{'changesets':_0x3d2fca}}});})['catch'](_0x64e661=>{const _0x3d1ae8=_0x41a3c0;this[_0x3d1ae8(0x4ae)]['error'](_0x64e661),_0xbe866e();});return;}}_0x4857c3['send'](Et(_0x59cbea));},'close':()=>{const _0x1aaa0f=_0x3f546f;_0x4857c3[_0x1aaa0f(0x322)](),_0x53f45b['dispose']();}},_0x5879cb;}async['_submitChangeset'](_0x466b29,_0x25b373){const _0x1e60b6=_0x945337;var _0x88ac27,_0x285af7;const {unitType:_0x5d086a,unitID:_0x6b1d6b,changeset:_0x120925}=_0x25b373[_0x1e60b6(0x375)],_0x411a8c={'unitID':_0x6b1d6b,'memberID':_0x466b29[_0x1e60b6(0x2ab)],'type':_0x5d086a,'changeset':_[_0x1e60b6(0x21d)](_0x120925)},_0x2ce0f4=this[_0x1e60b6(0x4f8)][_0x1e60b6(0x258)](gt),_0x6ea042=this['_configService'][_0x1e60b6(0x258)](A),_0x5bc3ad=rs((_0x285af7=(_0x88ac27=_0x6ea042==null?void 0x0:_0x6ea042[_0x1e60b6(0x377)])!=null?_0x88ac27:_0x2ce0f4)!=null?_0x285af7:Qt,_0x5d086a,_0x6b1d6b);try{await this['_http']['post'](_0x5bc3ad,{'body':_0x411a8c});}catch(_0x5d3d5d){throw this['_logService']['error'](_0x1e60b6(0x393),'submit\x20changeset\x20error!'),_0x5d3d5d;}}async[_0x945337(0x412)](_0x53a62b){const _0x4c7c3d=_0x945337,{unitID:_0x5b423d,from:_0x20ffbc,to:_0x5994ee,unitType:_0x11001b}=_0x53a62b[_0x4c7c3d(0x375)];return(await this[_0x4c7c3d(0x54d)][_0x4c7c3d(0x55d)]({'metadata':void 0x0},{'unitID':_0x5b423d,'type':_0x11001b,'from':_0x20ffbc,'to':_0x5994ee}))[_0x4c7c3d(0x37c)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),oe(0x1,a[_0x945337(0x4fa)](P['WebSocketService'])),oe(0x2,a[_0x945337(0x1f7)]),oe(0x3,a[_0x945337(0x48c)]),oe(0x4,_['ISnapshotServerService'])],exports[_0x945337(0x305)]);const os=_0x945337(0x4b8);function as(_0x34430c){const _0x3036ed=_0x945337;return JSON[_0x3036ed(0x22d)](_0x34430c)['length'];}class Ge{constructor(){const _0x3eb5ef=_0x945337;d(this,_0x3eb5ef(0x2a1),new v['Subject']()),d(this,'commentUpdate$',this['_commentUpdate$'][_0x3eb5ef(0x19b)]());}['onCommentUpdate'](_0x578e8b){const _0x4eac04=_0x945337;this[_0x4eac04(0x2a1)]['next'](_0x578e8b);}}var cs=Object[_0x945337(0x24b)],ls=Object[_0x945337(0x3e2)],hs=(_0x1883e5,_0x58e953,_0x1cc1b8,_0x1625b1)=>{for(var _0x1046ad=_0x1625b1>0x1?void 0x0:_0x1625b1?ls(_0x58e953,_0x1cc1b8):_0x58e953,_0x10ace6=_0x1883e5['length']-0x1,_0xf467a;_0x10ace6>=0x0;_0x10ace6--)(_0xf467a=_0x1883e5[_0x10ace6])&&(_0x1046ad=(_0x1625b1?_0xf467a(_0x58e953,_0x1cc1b8,_0x1046ad):_0xf467a(_0x1046ad))||_0x1046ad);return _0x1625b1&&_0x1046ad&&cs(_0x58e953,_0x1cc1b8,_0x1046ad),_0x1046ad;},Ze=(_0x342364,_0x23698e)=>(_0x428d5d,_0x1033e2)=>_0x23698e(_0x428d5d,_0x1033e2,_0x342364);let q=class extends a[_0x945337(0x45b)]{constructor(_0x24f0ac,_0x25ff0c){const _0x46e7b9=_0x945337;super(),d(this,_0x46e7b9(0x568),new Map()),(this[_0x46e7b9(0x337)]=_0x24f0ac,this['_userManagerService']=_0x25ff0c,this[_0x46e7b9(0x50a)](a[_0x46e7b9(0x296)](v['merge'](this[_0x46e7b9(0x337)]['getTypeOfUnitDisposed$'](a[_0x46e7b9(0x3b1)][_0x46e7b9(0x53c)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0x3c3c91=>_0x3c3c91[_0x46e7b9(0x352)]())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a[_0x46e7b9(0x3b1)]['UNIVER_DOC'])[_0x46e7b9(0x550)](E['map'](_0x4e78ab=>_0x4e78ab['getUnitId']())),this[_0x46e7b9(0x337)][_0x46e7b9(0x18e)](a['UniverInstanceType'][_0x46e7b9(0x16e)])[_0x46e7b9(0x550)](E[_0x46e7b9(0x2c1)](_0xacf866=>_0xacf866['getUnitId']())))['subscribe'](_0x23c54b=>this[_0x46e7b9(0x469)](_0x23c54b)))));}[_0x945337(0x342)](_0x470da6){const _0x38228f=_0x945337;this[_0x38228f(0x569)][_0x38228f(0x342)](_0x470da6);}[_0x945337(0x307)](){const _0x5bb3c2=_0x945337;return this['_userManagerService'][_0x5bb3c2(0x307)]();}[_0x945337(0x181)](_0x2bb2a8,_0x2fd658){const _0x4c4787=_0x945337;let _0x3db60e=this[_0x4c4787(0x568)]['get'](_0x2bb2a8);_0x3db60e||(_0x3db60e=new _s(),this[_0x4c4787(0x568)]['set'](_0x2bb2a8,_0x3db60e)),_0x3db60e[_0x4c4787(0x181)](_0x2fd658);}[_0x945337(0x41c)](_0x5f22c2,_0x5e3701){const _0x5dee8b=_0x945337,_0x4c6818=this[_0x5dee8b(0x568)][_0x5dee8b(0x3eb)](_0x5f22c2);_0x4c6818&&_0x4c6818['removeMember'](_0x5e3701);}[_0x945337(0x1c2)](_0x2e1160){const _0x5446a2=_0x945337;return this[_0x5446a2(0x568)][_0x5446a2(0x3eb)](_0x2e1160);}[_0x945337(0x467)](_0x591069,_0x3c53bc){const _0x7ed942=_0x945337,_0x12f3e3=this[_0x7ed942(0x568)][_0x7ed942(0x3eb)](_0x591069);if(_0x12f3e3)return _0x12f3e3[_0x7ed942(0x467)](_0x3c53bc);}[_0x945337(0x469)](_0x58459c){const _0x185a09=_0x945337,_0x5a973c=this[_0x185a09(0x568)][_0x185a09(0x3eb)](_0x58459c);_0x5a973c&&(_0x5a973c[_0x185a09(0x1eb)](),this[_0x185a09(0x568)][_0x185a09(0x532)](_0x58459c));}[_0x945337(0x1eb)](){const _0x5017dd=_0x945337;this[_0x5017dd(0x568)][_0x5017dd(0x278)](_0x3684d0=>_0x3684d0[_0x5017dd(0x1eb)]()),this[_0x5017dd(0x568)][_0x5017dd(0x196)]();}};q=hs([Ze(0x0,a[_0x945337(0x57b)]),Ze(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x40e)]))],q);class _s extends a[_0x945337(0x45b)]{constructor(){const _0xb94c1=_0x945337;super(...arguments),d(this,_0xb94c1(0x428),new Map());}[_0x945337(0x1eb)](){const _0x38c9ac=_0x945337;this[_0x38c9ac(0x428)]['clear']();}[_0x945337(0x181)](_0xe4898d){const _0x45bfe3=_0x945337;this[_0x45bfe3(0x428)][_0x45bfe3(0x4a8)](_0xe4898d[_0x45bfe3(0x2ab)],_0xe4898d);}[_0x945337(0x41c)](_0x12f2fe){const _0x213ff6=_0x945337;this[_0x213ff6(0x428)]['delete'](_0x12f2fe);}[_0x945337(0x467)](_0x4ca019){const _0x4b352d=_0x945337;return this[_0x4b352d(0x428)]['get'](_0x4ca019);}}var us=Object[_0x945337(0x24b)],ds=Object[_0x945337(0x3e2)],Ss=(_0x1165ab,_0x36cec5,_0x5607e9,_0x6872ec)=>{const _0x2cd50c=_0x945337;for(var _0x54460d=_0x6872ec>0x1?void 0x0:_0x6872ec?ds(_0x36cec5,_0x5607e9):_0x36cec5,_0x5ed831=_0x1165ab[_0x2cd50c(0x3f0)]-0x1,_0x12d68c;_0x5ed831>=0x0;_0x5ed831--)(_0x12d68c=_0x1165ab[_0x5ed831])&&(_0x54460d=(_0x6872ec?_0x12d68c(_0x36cec5,_0x5607e9,_0x54460d):_0x12d68c(_0x54460d))||_0x54460d);return _0x6872ec&&_0x54460d&&us(_0x36cec5,_0x5607e9,_0x54460d),_0x54460d;},B=(_0x1507b6,_0x358d44)=>(_0xbecf55,_0xb20be8)=>_0x358d44(_0xbecf55,_0xb20be8,_0x1507b6),$=(_0x4587ff=>(_0x4587ff[_0x4587ff['IDLE']=0x0]=_0x945337(0x263),_0x4587ff[_0x4587ff[_0x945337(0x399)]=0x1]=_0x945337(0x399),_0x4587ff[_0x4587ff['OFFLINE']=0x2]=_0x945337(0x482),_0x4587ff[_0x4587ff['ONLINE']=0x3]=_0x945337(0x42e),_0x4587ff))($||{});exports[_0x945337(0x30a)]=class extends a[_0x945337(0x538)]{constructor(_0x572415,_0x359569,_0x3321de,_0x468498,_0x18876b,_0x46c56e,_0x57f218,_0x123122,_0x5ef093,_0x5e2711){const _0x182f59=_0x945337;super(),d(this,_0x182f59(0x310),new v[(_0x182f59(0x52c))](0x0)),d(this,'sessionStatus$',this[_0x182f59(0x310)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x51b),new v[(_0x182f59(0x36e))]()),d(this,_0x182f59(0x23f),this[_0x182f59(0x51b)][_0x182f59(0x19b)]()),d(this,_0x182f59(0x3fe)),d(this,_0x182f59(0x45e)),d(this,_0x182f59(0x57a)),d(this,_0x182f59(0x338),!0x1),d(this,_0x182f59(0x237),null),(this[_0x182f59(0x20f)]=_0x572415,this[_0x182f59(0x4ae)]=_0x3321de,this[_0x182f59(0x22a)]=_0x468498,this[_0x182f59(0x392)]=_0x18876b,this[_0x182f59(0x4f8)]=_0x46c56e,this[_0x182f59(0x21a)]=_0x57f218,this[_0x182f59(0x526)]=_0x123122,this[_0x182f59(0x4cd)]=_0x5ef093,this[_0x182f59(0x2b8)]=_0x5e2711,this['_shouldReportTelemetry']=!!this[_0x182f59(0x2b8)],_0x359569[_0x182f59(0x550)](v[_0x182f59(0x43c)](this[_0x182f59(0x2ec)]))[_0x182f59(0x397)](_0xbb71fd=>{const _0xd140db=_0x182f59;var _0x55976e;typeof _0xbb71fd>'u'||(this[_0xd140db(0x3fe)]=_0xbb71fd,_0xbb71fd?(this[_0xd140db(0x1cd)](_0xbb71fd),this[_0xd140db(0x45e)]=_0xbb71fd[_0xd140db(0x3dc)][_0xd140db(0x397)](_0x2aa116=>{const _0x359701=_0xd140db;_0x2aa116[_0x359701(0x1c6)]===this[_0x359701(0x20f)]&&this[_0x359701(0x51c)](_0x2aa116);})):(this[_0xd140db(0x232)](),this[_0xd140db(0x310)][_0xd140db(0x3ca)](0x2),(_0x55976e=this['_socketMessageSubscription'])==null||_0x55976e[_0xd140db(0x346)](),this['_socketMessageSubscription']=null));}),this[_0x182f59(0x50a)](this[_0x182f59(0x22a)][_0x182f59(0x46e)](()=>{const _0x2837b1=_0x182f59;var _0x375720;(_0x375720=this['_socket'])==null||_0x375720[_0x2837b1(0x2a2)]({'cmd':b[_0x2837b1(0x1f3)],'data':{'roomID':this[_0x2837b1(0x20f)]}});})));}get[_0x945337(0x290)](){const _0x258240=_0x945337;return this[_0x258240(0x310)][_0x258240(0x2d6)]();}[_0x945337(0x56a)](){const _0x11faa3=_0x945337;var _0x3d8602,_0x3ce90e;return(_0x3ce90e=(_0x3d8602=this[_0x11faa3(0x3fe)])==null?void 0x0:_0x3d8602[_0x11faa3(0x2ab)])!=null?_0x3ce90e:null;}[_0x945337(0x1eb)](){const _0x1a4215=_0x945337;super['dispose'](),this[_0x1a4215(0x2ec)]['next'](),this[_0x1a4215(0x2ec)][_0x1a4215(0x531)]();}[_0x945337(0x322)](){const _0x197480=_0x945337;var _0x78284d,_0x2336d6;this[_0x197480(0x232)](),(_0x78284d=this[_0x197480(0x3fe)])==null||_0x78284d[_0x197480(0x2a2)]({'cmd':b[_0x197480(0x1f3)],'data':{'roomID':this['_unitID']}}),(_0x2336d6=this['_socket'])==null||_0x2336d6[_0x197480(0x322)](),this[_0x197480(0x51b)]['complete'](),this[_0x197480(0x310)]['complete'](),this['dispose']();}['_onCombEvent'](_0x27ca13){const _0x1a7299=_0x945337;_0x27ca13[_0x1a7299(0x4ef)]===b['JOIN']?this[_0x1a7299(0x326)](_0x27ca13):_0x27ca13[_0x1a7299(0x4ef)]===b[_0x1a7299(0x2f4)]&&this[_0x1a7299(0x1f4)](_0x27ca13);}['_joinRoom'](_0x51de92){const _0x2c8e17=_0x945337;this[_0x2c8e17(0x310)][_0x2c8e17(0x3ca)](0x1),_0x51de92[_0x2c8e17(0x2a2)]({'cmd':b['JOIN'],'routeKey':this[_0x2c8e17(0x20f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2c8e17(0x20f)]}]}});}[_0x945337(0x326)](_0x117680){const _0x2f2c03=_0x945337;var _0x2a03ce;if(_0x117680[_0x2f2c03(0x20c)]===We['FAIL']){this[_0x2f2c03(0x392)][_0x2f2c03(0x411)]({'type':X[_0x2f2c03(0x367)][_0x2f2c03(0x19d)],'content':this[_0x2f2c03(0x21a)]['t'](_0x2f2c03(0x20a))}),this[_0x2f2c03(0x310)]['next'](0x2);return;}this[_0x2f2c03(0x310)][_0x2f2c03(0x3ca)](0x3);const _0x224b14=(_0x2a03ce=_0x117680['data'][_0x2f2c03(0x241)][this[_0x2f2c03(0x20f)]])==null?void 0x0:_0x2a03ce[_0x2f2c03(0x30b)];_0x224b14&&_0x224b14[_0x2f2c03(0x278)](_0x5b2505=>this[_0x2f2c03(0x526)]['updateMember'](this[_0x2f2c03(0x20f)],_0x5b2505));}['_onRecvEvent'](_0x437081){const _0x187221=_0x945337;try{const _0x2613ff=_0x437081[_0x187221(0x375)];switch(_0x2613ff[_0x187221(0x170)]){case _[_0x187221(0x4eb)][_0x187221(0x1d2)]:this[_0x187221(0x50b)](_0x2613ff),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent'][_0x187221(0x3cb)]:this['_onUserLeave'](_0x2613ff),this['_event$']['next'](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x1f1)]:this[_0x187221(0x52f)](),this[_0x187221(0x1e5)](),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;case _[_0x187221(0x4eb)][_0x187221(0x2d1)]:this[_0x187221(0x4ae)][_0x187221(0x2e8)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x2613ff)),this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);break;case _['CollaborationEvent']['COMMENT_UPDATE']:this[_0x187221(0x4cd)][_0x187221(0x39c)](_0x2613ff[_0x187221(0x375)]),this['_event$'][_0x187221(0x3ca)](_0x2613ff);break;default:this[_0x187221(0x51b)][_0x187221(0x3ca)](_0x2613ff);}}catch(_0x336304){this[_0x187221(0x4ae)]['error'](_0x336304,_0x437081);}}['_onUserJoin'](_0x1661f5){const _0x4176e1=_0x945337;this[_0x4176e1(0x526)][_0x4176e1(0x181)](this[_0x4176e1(0x20f)],_0x1661f5[_0x4176e1(0x375)]);}[_0x945337(0x3c9)](_0x4f2830){const _0x31085f=_0x945337;this[_0x31085f(0x526)]['removeMember'](this[_0x31085f(0x20f)],_0x4f2830['data'][_0x31085f(0x2ab)]);}async[_0x945337(0x2a2)](_0x48d621,_0x261afa){const _0x4ba1c5=_0x945337;if(this[_0x4ba1c5(0x290)]!==0x3||!this[_0x4ba1c5(0x3fe)])throw new Error(_0x4ba1c5(0x4f1));try{_0x48d621[_0x4ba1c5(0x170)]===_[_0x4ba1c5(0x4eb)][_0x4ba1c5(0x56d)]&&(this[_0x4ba1c5(0x335)](),this[_0x4ba1c5(0x4c1)](_0x48d621)),this[_0x4ba1c5(0x3fe)][_0x4ba1c5(0x2a2)]({'cmd':b[_0x4ba1c5(0x455)],'routeKey':_0x261afa,'routeType':'','data':_0x48d621});}catch(_0x2c4c63){this[_0x4ba1c5(0x4ae)]['error'](_0x2c4c63);}}[_0x945337(0x335)](){const _0x12dda8=_0x945337;var _0x5299eb;this['_collaborationTimeoutTimer']=window[_0x12dda8(0x191)](()=>{const _0x291199=_0x12dda8;this['_collaborationTimeoutTimer']=null,this[_0x291199(0x392)][_0x291199(0x411)]({'type':X[_0x291199(0x367)][_0x291199(0x372)],'content':this['_localeService']['t'](_0x291199(0x388))});},(_0x5299eb=this[_0x12dda8(0x4f8)][_0x12dda8(0x258)](Ve))!=null?_0x5299eb:St);}[_0x945337(0x1e5)](){const _0x2ba216=_0x945337;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x2ba216(0x57a)]),this['_collaborationTimeoutTimer']=null);}[_0x945337(0x4c1)](_0x58bad3){const _0x2ce149=_0x945337;if(!this[_0x2ce149(0x338)])return;const {data:_0x5c9aa7}=_0x58bad3,{unitID:_0x225b38,changeset:_0x68aee1}=_0x5c9aa7,{mutations:_0xb3d02d,type:_0x31fb8c}=_0x68aee1;this[_0x2ce149(0x237)]={'unitId':_0x225b38,'type':_0x31fb8c,'startTime':performance[_0x2ce149(0x405)](),'stopTime':0x0,'duration':0x0,'size':as(_0xb3d02d)};}[_0x945337(0x52f)](){const _0x277cc7=_0x945337;if(this[_0x277cc7(0x338)]){if(!this[_0x277cc7(0x237)]){this[_0x277cc7(0x4ae)][_0x277cc7(0x2e8)](_0x277cc7(0x393),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]=performance[_0x277cc7(0x405)](),this[_0x277cc7(0x237)][_0x277cc7(0x3ac)]=this[_0x277cc7(0x237)][_0x277cc7(0x2f3)]-this[_0x277cc7(0x237)]['startTime'],this['_telemetryService'][_0x277cc7(0x222)](os,this[_0x277cc7(0x237)]),this[_0x277cc7(0x237)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x298731=_0x945337;this[_0x298731(0x237)]=null;}},exports[_0x945337(0x30a)]=Ss([B(0x2,a[_0x945337(0x48c)]),B(0x3,N[_0x945337(0x4f0)]),B(0x4,N[_0x945337(0x2b2)]),B(0x5,a[_0x945337(0x1f7)]),B(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),B(0x7,a[_0x945337(0x4fa)](q)),B(0x8,a['Inject'](Ge)),B(0x9,a[_0x945337(0x188)](Vt[_0x945337(0x25d)]))],exports[_0x945337(0x30a)]);var vs=Object['defineProperty'],fs=Object[_0x945337(0x3e2)],gs=(_0x145b3f,_0x3338df,_0x807908,_0x3d0c69)=>{for(var _0x51fe1e=_0x3d0c69>0x1?void 0x0:_0x3d0c69?fs(_0x3338df,_0x807908):_0x3338df,_0x37bf5f=_0x145b3f['length']-0x1,_0xeb631a;_0x37bf5f>=0x0;_0x37bf5f--)(_0xeb631a=_0x145b3f[_0x37bf5f])&&(_0x51fe1e=(_0x3d0c69?_0xeb631a(_0x3338df,_0x807908,_0x51fe1e):_0xeb631a(_0x51fe1e))||_0x51fe1e);return _0x3d0c69&&_0x51fe1e&&vs(_0x3338df,_0x807908,_0x51fe1e),_0x51fe1e;},Z=(_0x49fe0d,_0x4b6661)=>(_0x13690c,_0x6c7f17)=>_0x4b6661(_0x13690c,_0x6c7f17,_0x49fe0d);exports[_0x945337(0x3a5)]=class extends a['Disposable']{constructor(_0x152453,_0x49dbe3,_0x107907,_0xdc5d56,_0x150db4,_0x49b705){const _0x1928dc=_0x945337;super(),d(this,'_socket$',new v[(_0x1928dc(0x52c))](void 0x0)),d(this,_0x1928dc(0x2ea),this[_0x1928dc(0x56c)][_0x1928dc(0x19b)]()),d(this,'_candidateSocket',null),d(this,'_sessions',new Map()),d(this,'_status$',new v['BehaviorSubject']($[_0x1928dc(0x263)])),d(this,_0x1928dc(0x259),this[_0x1928dc(0x35a)][_0x1928dc(0x19b)]()),d(this,_0x1928dc(0x554),!0x1),d(this,_0x1928dc(0x480)),d(this,_0x1928dc(0x437),0x0),d(this,'_sendHeartbeatTimer'),d(this,'_timeoutTimer'),(this[_0x1928dc(0x3dd)]=_0x152453,this[_0x1928dc(0x21a)]=_0x49dbe3,this['_messageService']=_0x107907,this['_logService']=_0xdc5d56,this[_0x1928dc(0x4f8)]=_0x150db4,this[_0x1928dc(0x562)]=_0x49b705,this['_initEventListeners']());}get[_0x945337(0x3fe)](){const _0x13f416=_0x945337;return this[_0x13f416(0x56c)][_0x13f416(0x2d6)]();}[_0x945337(0x4d0)](){const _0x3abb76=_0x945337;this['_listenToOfflineEvent'](),this[_0x3abb76(0x3e4)]();}['dispose'](){const _0x2f4e03=_0x945337;super['dispose'](),this[_0x2f4e03(0x175)][_0x2f4e03(0x278)](_0x580052=>_0x580052[_0x2f4e03(0x1eb)]()),this[_0x2f4e03(0x175)][_0x2f4e03(0x196)](),this['_status$']['complete']();}async[_0x945337(0x369)](_0xa3c5d3){const _0x1b143b=_0x945337;if(this[_0x1b143b(0x175)]['has'](_0xa3c5d3))return this[_0x1b143b(0x175)][_0x1b143b(0x3eb)](_0xa3c5d3);this['_tryEnsureSocket']();const _0x22d7b5=this[_0x1b143b(0x3dd)][_0x1b143b(0x39d)](exports[_0x1b143b(0x30a)],_0xa3c5d3,this[_0x1b143b(0x56c)]['asObservable']());return this[_0x1b143b(0x175)][_0x1b143b(0x4a8)](_0xa3c5d3,_0x22d7b5),_0x22d7b5;}[_0x945337(0x350)](_0x95b134){const _0x4ef981=_0x945337;var _0x2f3671;const _0x3f53f5=this[_0x4ef981(0x175)][_0x4ef981(0x3eb)](_0x95b134);_0x3f53f5&&(this[_0x4ef981(0x175)]['delete'](_0x95b134),_0x3f53f5[_0x4ef981(0x322)]()),this[_0x4ef981(0x175)][_0x4ef981(0x17e)]||(_0x2f3671=this[_0x4ef981(0x3fe)])==null||_0x2f3671[_0x4ef981(0x322)]();}['reconnect'](){const _0x1b252d=_0x945337;this[_0x1b252d(0x437)]=0x0,this[_0x1b252d(0x480)]!=null&&(clearTimeout(this[_0x1b252d(0x480)]),this[_0x1b252d(0x480)]=null),this[_0x1b252d(0x483)]();}[_0x945337(0x3c3)](){const _0xb546dd=_0x945337;var _0x32fa8c,_0x48ad4b;const _0xe4ac42=this[_0xb546dd(0x4f8)][_0xb546dd(0x258)](ut),_0x1eee85=this[_0xb546dd(0x4f8)]['getConfig'](A),_0x2332fc=(_0x48ad4b=(_0x32fa8c=_0x1eee85==null?void 0x0:_0x1eee85[_0xb546dd(0x2af)])!=null?_0x32fa8c:_0xe4ac42)!=null?_0x48ad4b:Xt,_0x3bcb43=this['_socketService'][_0xb546dd(0x452)](_0x2332fc);return this['_candidateSocket']=_0x3bcb43,_0x3bcb43;}[_0x945337(0x465)](){const _0x213d0b=_0x945337;var _0x1f59e5,_0x200486;try{const _0x39df2b=(_0x200486=(_0x1f59e5=this[_0x213d0b(0x3fe)])!=null?_0x1f59e5:this[_0x213d0b(0x3e5)])!=null?_0x200486:this[_0x213d0b(0x3c3)]();if(_0x39df2b){const _0x21d5aa=_0x39df2b[_0x213d0b(0x2a2)];_0x39df2b[_0x213d0b(0x2a2)]=_0xf4db16=>(this[_0x213d0b(0x579)](),_0x21d5aa['apply'](_0x39df2b,[_0xf4db16])),_0x39df2b[_0x213d0b(0x3dc)][_0x213d0b(0x397)](_0x4d392=>this[_0x213d0b(0x518)](_0x39df2b,_0x4d392)),_0x39df2b[_0x213d0b(0x4b5)]['pipe'](E[_0x213d0b(0x551)](0x1))[_0x213d0b(0x397)](_0x372180=>this[_0x213d0b(0x4ae)][_0x213d0b(0x2e8)](_0x213d0b(0x426),_0x372180)),_0x39df2b[_0x213d0b(0x445)][_0x213d0b(0x550)](E['take'](0x1))['subscribe'](()=>{const _0x51a0ca=_0x213d0b;this[_0x51a0ca(0x1d3)](_0x39df2b);}),_0x39df2b[_0x213d0b(0x343)][_0x213d0b(0x550)](E['take'](0x1))[_0x213d0b(0x397)](_0x30ce0b=>{const _0x24c8b1=_0x213d0b;this[_0x24c8b1(0x4ae)][_0x24c8b1(0x44c)](_0x24c8b1(0x282),_0x24c8b1(0x17d),_0x30ce0b),this[_0x24c8b1(0x4de)]();});}}catch(_0x2eb525){this[_0x213d0b(0x4ae)]['error'](_0x2eb525),this[_0x213d0b(0x4de)]();}}[_0x945337(0x1d3)](_0x3d0f38){const _0x102705=_0x945337;this[_0x102705(0x4ae)][_0x102705(0x44c)](_0x102705(0x282),_0x102705(0x3c4)),_0x3d0f38[_0x102705(0x2a2)]({'cmd':b['HELLO']}),this['_rescheduleHeartbeat']();}[_0x945337(0x410)](){const _0x1a7dda=_0x945337;window[_0x1a7dda(0x1ea)](_0x1a7dda(0x1c1),()=>this[_0x1a7dda(0x50f)]());}[_0x945337(0x50f)](){const _0x458cb0=_0x945337;this['_socketReady']=!0x1,this[_0x458cb0(0x3e5)]=null,this[_0x458cb0(0x35a)][_0x458cb0(0x3ca)]($[_0x458cb0(0x482)]),this['_socket$'][_0x458cb0(0x3ca)](null),this[_0x458cb0(0x501)](),this[_0x458cb0(0x21c)]();}[_0x945337(0x4de)](){const _0x99224b=_0x945337;var _0x10f23f;this[_0x99224b(0x50f)](),this[_0x99224b(0x437)]<((_0x10f23f=this['_configService']['getConfig'](vt))!=null?_0x10f23f:Jt)?(this[_0x99224b(0x392)]['show']({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)][_0x99224b(0x19d)],'content':this[_0x99224b(0x21a)]['t'](_0x99224b(0x389))}),this[_0x99224b(0x483)]()):this['_messageService'][_0x99224b(0x411)]({'key':'collaboration-session-retry','type':X[_0x99224b(0x367)]['Error'],'content':this[_0x99224b(0x21a)]['t']('session.connection-failed')});}[_0x945337(0x3e4)](){const _0x9df1fc=_0x945337,_0xa679b5=()=>{const _0x2d7eb6=_0x38f3;this[_0x2d7eb6(0x3fe)]||this['reconnect']();},_0x1fab0d=()=>{const _0x7ed857=_0x38f3;this['_socket']||document[_0x7ed857(0x252)]==='hidden'||this[_0x7ed857(0x4cc)]();};window['addEventListener'](_0x9df1fc(0x2c3),_0xa679b5),document[_0x9df1fc(0x1ea)](_0x9df1fc(0x570),_0x1fab0d);}[_0x945337(0x483)](){const _0x44cf94=_0x945337;var _0x175f8b;const _0x47d90d=this[_0x44cf94(0x437)],_0x20c978=this['_configService'][_0x44cf94(0x258)](A),_0x4d4150=_0x47d90d===0x0?0x0:((_0x175f8b=_0x20c978==null?void 0x0:_0x20c978[_0x44cf94(0x396)])!=null?_0x175f8b:zt)*0x2**_0x47d90d;this[_0x44cf94(0x480)]=window['setTimeout'](()=>{const _0x581cdf=_0x44cf94;clearTimeout(this[_0x581cdf(0x480)]),this['_retryConnectingTimer']=null,this[_0x581cdf(0x465)]();},_0x4d4150),this[_0x44cf94(0x437)]+=0x1;}[_0x945337(0x518)](_0x1a6396,_0x3e05a9){const _0x4ec95e=_0x945337,{cmd:_0x22e019}=_0x3e05a9;_0x22e019===b['HELLO']&&!this[_0x4ec95e(0x554)]&&(_0x1a6396[_0x4ec95e(0x2ab)]=_0x3e05a9[_0x4ec95e(0x375)][_0x4ec95e(0x2ab)],this[_0x4ec95e(0x56c)]['next'](_0x1a6396),this['_status$'][_0x4ec95e(0x3ca)]($[_0x4ec95e(0x42e)]),this[_0x4ec95e(0x554)]=!0x0,this[_0x4ec95e(0x3e5)]=null),_0x22e019===b[_0x4ec95e(0x489)]&&this[_0x4ec95e(0x501)](),this[_0x4ec95e(0x579)]();}[_0x945337(0x579)](){const _0x14cc36=_0x945337;var _0x1fb4c7;this[_0x14cc36(0x21c)](),this[_0x14cc36(0x529)]=window[_0x14cc36(0x191)](()=>this[_0x14cc36(0x1bf)](),(_0x1fb4c7=this['_configService'][_0x14cc36(0x258)](dt))!=null?_0x1fb4c7:qt);}['_sendHeartbeat'](){const _0x3dfffe=_0x945337;this[_0x3dfffe(0x3fe)]['send']({'cmd':b[_0x3dfffe(0x489)]}),this['_waitForHeartbeatResponse']();}[_0x945337(0x2dc)](){const _0x2b0382=_0x945337;var _0x3471ab;this['_timeoutTimer']=window[_0x2b0382(0x191)](()=>this[_0x2b0382(0x4de)](),(_0x3471ab=this[_0x2b0382(0x4f8)][_0x2b0382(0x258)](Ve))!=null?_0x3471ab:St);}[_0x945337(0x21c)](){const _0x2e418b=_0x945337;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2e418b(0x529)]),this[_0x2e418b(0x529)]=null);}[_0x945337(0x501)](){const _0x29fbbe=_0x945337;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x29fbbe(0x475)]),this[_0x29fbbe(0x475)]=null);}},exports['CollaborationSessionService']=gs([Z(0x0,a['Inject'](a['Injector'])),Z(0x1,a[_0x945337(0x4fa)](a['LocaleService'])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x945337(0x48c)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object[_0x945337(0x24b)],Is=Object[_0x945337(0x3e2)],ps=(_0x4b9396,_0x5d20c2,_0x594158,_0x4b664b)=>{for(var _0xf8506=_0x4b664b>0x1?void 0x0:_0x4b664b?Is(_0x5d20c2,_0x594158):_0x5d20c2,_0x11145b=_0x4b9396['length']-0x1,_0x872b46;_0x11145b>=0x0;_0x11145b--)(_0x872b46=_0x4b9396[_0x11145b])&&(_0xf8506=(_0x4b664b?_0x872b46(_0x5d20c2,_0x594158,_0xf8506):_0x872b46(_0xf8506))||_0xf8506);return _0x4b664b&&_0xf8506&&ms(_0x5d20c2,_0x594158,_0xf8506),_0xf8506;},De=(_0x432036,_0x5b274e)=>(_0x49a5c9,_0x24dff3)=>_0x5b274e(_0x49a5c9,_0x24dff3,_0x432036);let fe=class{constructor(_0x528c38,_0x3ca70a,_0x1bb1c2){const _0x1dac88=_0x945337;this[_0x1dac88(0x3dd)]=_0x528c38,this[_0x1dac88(0x4f2)]=_0x3ca70a,this[_0x1dac88(0x277)]=_0x1bb1c2;}[_0x945337(0x1d1)](_0x4b4948){const _0x146011=_0x945337;this['_transformUndoRedoStack'](_0x4b4948),this[_0x146011(0x511)](_0x4b4948);}[_0x945337(0x201)](_0x52b687){const _0x39ea5d=_0x945337,{unitID:_0x2eb46e}=_0x52b687,_0x399d98=this[_0x39ea5d(0x277)][_0x39ea5d(0x474)](_0x2eb46e)[_0x39ea5d(0x545)](w['DocIMEInputManagerService']),{redoCache:_0x51ac2e}=_0x399d98['getUndoRedoMutationParamsCache']();if(_0x51ac2e[_0x39ea5d(0x3f0)]===0x0)return _0x52b687;let _0x327089=a['Tools'][_0x39ea5d(0x2fe)](_0x52b687[_0x39ea5d(0x435)][0x0]);for(let _0x138ab1=0x0;_0x138ab1<_0x51ac2e[_0x39ea5d(0x3f0)];_0x138ab1++){const _0x208ba8={'id':_0x39ea5d(0x333),'params':{..._0x51ac2e[_0x138ab1]}},_0x27c8c4=this[_0x39ea5d(0x4f2)][_0x39ea5d(0x34c)](_0x327089,_0x208ba8,!0x1);if(_[_0x39ea5d(0x420)](_0x27c8c4))throw _0x27c8c4['error'];_0x327089=_0x27c8c4[_0x39ea5d(0x1f9)];}return{...a[_0x39ea5d(0x4ea)][_0x39ea5d(0x2fe)](_0x52b687),'mutations':[_0x327089]};}[_0x945337(0x456)](_0x30bf68){const _0x4343c1=_0x945337,{unitID:_0xb5490}=_0x30bf68,_0x2c6277=this[_0x4343c1(0x277)][_0x4343c1(0x474)](_0xb5490)[_0x4343c1(0x545)](w['DocIMEInputManagerService']),{undoCache:_0x5dd7e4,redoCache:_0xd9c821}=_0x2c6277[_0x4343c1(0x3f6)]();if(_0x5dd7e4['length']===0x0||_0xd9c821[_0x4343c1(0x3f0)]===0x0)return;const _0x53fd79=[],_0x597bab=[];let _0x5948e0=a[_0x4343c1(0x4ea)][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]),_0xc7b081=a['Tools'][_0x4343c1(0x2fe)](_0x30bf68[_0x4343c1(0x435)][0x0]);for(let _0x52e81f=_0x5dd7e4[_0x4343c1(0x3f0)]-0x1;_0x52e81f>=0x0;_0x52e81f--){const _0x18284c={'id':_0x4343c1(0x333),'params':{..._0x5dd7e4[_0x52e81f]}},_0x38be56={'id':_0x4343c1(0x333),'params':{..._0xd9c821[_0x52e81f]}},_0x2ee338=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0x5948e0,_0x18284c,!0x1),_0x2a68ce=this[_0x4343c1(0x4f2)][_0x4343c1(0x34c)](_0xc7b081,_0x38be56,!0x1);if(_[_0x4343c1(0x420)](_0x2ee338))throw _0x2ee338[_0x4343c1(0x2e8)];if(_[_0x4343c1(0x420)](_0x2a68ce))throw _0x2a68ce[_0x4343c1(0x2e8)];_0x53fd79['unshift'](_0x2ee338[_0x4343c1(0x178)][_0x4343c1(0x17c)]),_0x597bab[_0x4343c1(0x3c8)](_0x2a68ce['m2Prime'][_0x4343c1(0x17c)]),_0x5948e0=_0x2ee338[_0x4343c1(0x1f9)],_0xc7b081=_0x2a68ce[_0x4343c1(0x1f9)];}_0x2c6277[_0x4343c1(0x37e)]({'undoCache':_0x53fd79,'redoCache':_0x597bab});}[_0x945337(0x511)](_0x435d39){const _0x127cd4=_0x945337,{unitID:_0x41f330}=_0x435d39,_0x422320=this[_0x127cd4(0x277)][_0x127cd4(0x474)](_0x41f330)['with'](w[_0x127cd4(0x349)]),_0x3bf790=_0x422320['getActiveRange']();if(_0x3bf790==null)return;const _0x18198f=[{'id':_0x127cd4(0x333),'params':{'unitId':_0x435d39[_0x127cd4(0x1da)],'actions':null,'textRanges':[_0x3bf790]}}],_0x1531a6=this[_0x127cd4(0x4f2)][_0x127cd4(0x4df)](_0x435d39,_0x18198f);if(!_['isTransformMutationsWithChangesetSuccess'](_0x1531a6))throw _0x1531a6[_0x127cd4(0x2e8)];const _0x59ad35=_0x1531a6['m2Prime'][0x0][_0x127cd4(0x17c)]['textRanges'];Array[_0x127cd4(0x48e)](_0x59ad35)&&_0x59ad35[_0x127cd4(0x3f0)]&&_0x422320[_0x127cd4(0x345)](_0x59ad35[0x0]);}};fe=ps([De(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),De(0x1,_[_0x945337(0x429)]),De(0x2,R[_0x945337(0x2c4)])],fe);var Cs=Object[_0x945337(0x24b)],Es=Object[_0x945337(0x3e2)],bs=(_0x47e384,_0x315431,_0x320af2,_0x2ca51c)=>{const _0x113c19=_0x945337;for(var _0xfeb2e7=_0x2ca51c>0x1?void 0x0:_0x2ca51c?Es(_0x315431,_0x320af2):_0x315431,_0x2d73e2=_0x47e384[_0x113c19(0x3f0)]-0x1,_0x4e02ab;_0x2d73e2>=0x0;_0x2d73e2--)(_0x4e02ab=_0x47e384[_0x2d73e2])&&(_0xfeb2e7=(_0x2ca51c?_0x4e02ab(_0x315431,_0x320af2,_0xfeb2e7):_0x4e02ab(_0xfeb2e7))||_0xfeb2e7);return _0x2ca51c&&_0xfeb2e7&&Cs(_0x315431,_0x320af2,_0xfeb2e7),_0xfeb2e7;},ae=(_0x13c6b3,_0x260db6)=>(_0x440024,_0x3caa59)=>_0x260db6(_0x440024,_0x3caa59,_0x13c6b3);exports[_0x945337(0x3a3)]=class extends a['Disposable']{constructor(_0x65f8fc,_0x146c58,_0x5a2332,_0xb2b72b,_0x81ffe3){const _0x140260=_0x945337;super(),d(this,_0x140260(0x2b1),new Map()),d(this,_0x140260(0x1db),new Map()),d(this,'_disabled',!0x1),(this[_0x140260(0x4f8)]=_0x65f8fc,this[_0x140260(0x1b3)]=_0x146c58,this[_0x140260(0x22a)]=_0x5a2332,this[_0x140260(0x21a)]=_0xb2b72b,this[_0x140260(0x1df)]=_0x81ffe3,this[_0x140260(0x332)]());}[_0x945337(0x19e)](){this['_disabled']=!0x0;}[_0x945337(0x3ea)](){const _0xcaaef3=_0x945337;this[_0xcaaef3(0x339)]=!0x1;}[_0x945337(0x1eb)](){const _0x347815=_0x945337;this[_0x347815(0x249)]()[_0x347815(0x33c)](()=>super['dispose']());}async[_0x945337(0x2d0)](_0x31f37e){const _0x12bbda=_0x945337;return this[_0x12bbda(0x339)]?null:this[_0x12bbda(0x1b3)][_0x12bbda(0x373)](Qe(_0x31f37e));}async[_0x945337(0x1d5)](_0x5f08dc,_0x2c69b5){const _0x5483e2=_0x945337;return!!this['_localStorageService'][_0x5483e2(0x539)](_0x5f08dc,_0x2c69b5);}[_0x945337(0x478)](_0x341bef,_0x208bb2,_0x4c9658,_0x279f9d){const _0x54a35c=_0x945337,_0x4c1c2d=this[_0x54a35c(0x1df)]['getCurrentRevOfUnit'](_0x341bef);this[_0x54a35c(0x2b1)]['set'](_0x341bef,{'unitID':_0x341bef,'type':_0x208bb2,'awaitingChangeset':_0x4c9658,'mutations':_0x279f9d,'rev':_0x4c1c2d}),this[_0x54a35c(0x1db)][_0x54a35c(0x384)](_0x341bef)||this[_0x54a35c(0x379)](_0x341bef);}[_0x945337(0x379)](_0x4ca41d){const _0x54f158=_0x945337,_0x13bd0a=this['_getSaveTimeout']();_0x13bd0a===0x0?this[_0x54f158(0x1ba)](_0x4ca41d):this[_0x54f158(0x1db)][_0x54f158(0x4a8)](_0x4ca41d,setTimeout(()=>this[_0x54f158(0x1ba)](_0x4ca41d),_0x13bd0a));}['_getSaveTimeout'](){const _0x5ac85e=_0x945337;var _0x378131;return(_0x378131=this[_0x5ac85e(0x4f8)][_0x5ac85e(0x258)](ft))!=null?_0x378131:Zt;}[_0x945337(0x1ba)](_0x19f5c2){const _0x5e1702=_0x945337,_0x183774=this[_0x5e1702(0x1db)][_0x5e1702(0x3eb)](_0x19f5c2);return _0x183774!==void 0x0&&window['clearTimeout'](_0x183774),this['_localStorageService'][_0x5e1702(0x539)](Qe(_0x19f5c2),this['_cachedData'][_0x5e1702(0x3eb)](_0x19f5c2))[_0x5e1702(0x33c)](()=>this[_0x5e1702(0x1db)][_0x5e1702(0x532)](_0x19f5c2));}async[_0x945337(0x249)](){const _0xa23ab1=_0x945337,_0x3d39f1=[];this[_0xa23ab1(0x1db)][_0xa23ab1(0x278)]((_0x2f298b,_0x239d12)=>{const _0x43017e=_0xa23ab1;window['clearTimeout'](_0x2f298b),_0x3d39f1[_0x43017e(0x3b0)](this[_0x43017e(0x1ba)](_0x239d12)[_0x43017e(0x33c)](()=>{const _0x143674=_0x43017e;this[_0x143674(0x1db)]['delete'](_0x239d12);}));}),await Promise['all'](_0x3d39f1);}['_setupBeforeClosingHandler'](){const _0x12eb03=_0x945337;this[_0x12eb03(0x50a)](this[_0x12eb03(0x22a)][_0x12eb03(0x226)](()=>{const _0x2685de=_0x12eb03;if(this['_saveTaskMap'][_0x2685de(0x17e)])return this['_localeService']['t'](_0x2685de(0x37d));}));}},exports[_0x945337(0x3a3)]=bs([ae(0x0,a['IConfigService']),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x945337(0x4f0)]),ae(0x3,a['Inject'](a[_0x945337(0x299)])),ae(0x4,a[_0x945337(0x4fa)](_[_0x945337(0x574)]))],exports['LocalCacheService']);function Qe(_0x197f2a){const _0x29af2a=_0x945337;return _0x29af2a(0x214)+_0x197f2a;}var Ts=Object[_0x945337(0x24b)],Rs=Object[_0x945337(0x3e2)],Os=(_0x29a423,_0x43510c,_0x4108aa,_0x4baeeb)=>{const _0x3eb295=_0x945337;for(var _0x599eaf=_0x4baeeb>0x1?void 0x0:_0x4baeeb?Rs(_0x43510c,_0x4108aa):_0x43510c,_0x5df3ba=_0x29a423[_0x3eb295(0x3f0)]-0x1,_0x259bd8;_0x5df3ba>=0x0;_0x5df3ba--)(_0x259bd8=_0x29a423[_0x5df3ba])&&(_0x599eaf=(_0x4baeeb?_0x259bd8(_0x43510c,_0x4108aa,_0x599eaf):_0x259bd8(_0x599eaf))||_0x599eaf);return _0x4baeeb&&_0x599eaf&&Ts(_0x43510c,_0x4108aa,_0x599eaf),_0x599eaf;},ye=(_0x3878d6,_0x288cbf)=>(_0x17d82b,_0x481ce9)=>_0x288cbf(_0x17d82b,_0x481ce9,_0x3878d6);function Ds(_0x24aca8){const _0x1f988d=_0x945337,{unitID:_0x4472a7,mutations:_0x534153}=_0x24aca8;return{'unitId':_0x4472a7,'subUnitId':_0x534153[0x0][_0x1f988d(0x17c)][_0x1f988d(0x215)]};}let ge=class{constructor(_0x27abcf,_0x583db8,_0x6443df){const _0xfadf4e=_0x945337;this[_0xfadf4e(0x3dd)]=_0x27abcf,this[_0xfadf4e(0x4f2)]=_0x583db8,this[_0xfadf4e(0x3f4)]=_0x6443df;}[_0x945337(0x463)](_0x2ac23a){const _0xf87398=_0x945337;var _0x2ff856,_0x4ca257,_0x5f2be0,_0x417246;const _0x1658d0=this['_injector'][_0xf87398(0x3eb)](C[_0xf87398(0x403)]),{unitId:_0x1c11f5,subUnitId:_0x362f3f}=Ds(_0x2ac23a),_0x4e53c9=_0x1658d0[_0xf87398(0x471)](_0x1c11f5)[_0xf87398(0x57f)](),_0x30e285=(_0x4ca257=(_0x2ff856=this[_0xf87398(0x3f4)]['getUnit'](_0x1c11f5))==null?void 0x0:_0x2ff856[_0xf87398(0x4be)]())==null?void 0x0:_0x4ca257['getSheetId']();if(_0x4e53c9[_0xf87398(0x3f0)]===0x0||!_0x1c11f5||!_0x362f3f)return;const _0x5323cd=[{'id':C[_0xf87398(0x4d1)]['id'],'params':{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':a['Tools'][_0xf87398(0x2fe)](_0x4e53c9)}}],_0x4eea70=this[_0xf87398(0x4f2)][_0xf87398(0x4df)](_0x2ac23a,_0x5323cd);if(!_[_0xf87398(0x3f7)](_0x4eea70))throw _0x4eea70[_0xf87398(0x2e8)];const _0x8e4cc6=(_0x417246=(_0x5f2be0=_0x4eea70['m2Prime'][0x0])==null?void 0x0:_0x5f2be0[_0xf87398(0x17c)])==null?void 0x0:_0x417246[_0xf87398(0x53f)];Array[_0xf87398(0x48e)](_0x8e4cc6)&&_0x8e4cc6[_0xf87398(0x3f0)]&&this['_injector'][_0xf87398(0x3eb)](a[_0xf87398(0x400)])[_0xf87398(0x505)](C['SetSelectionsOperation']['id'],{'unitId':_0x1c11f5,'subUnitId':_0x30e285,'selections':_0x8e4cc6});}};ge=Os([ye(0x0,a['Inject'](a['Injector'])),ye(0x1,_[_0x945337(0x429)]),ye(0x2,a[_0x945337(0x57b)])],ge);const be=a[_0x945337(0x36a)](_0x945337(0x26a));var bt=(_0x4c216c=>(_0x4c216c[_0x4c216c[_0x945337(0x4d4)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4c216c[_0x4c216c[_0x945337(0x2fd)]=0x1]=_0x945337(0x2fd),_0x4c216c))(bt||{});const et=0x7530,tt=_0x945337(0x1fa);class ys extends a['Disposable']{constructor(){const _0x4689d4=_0x945337;super(),d(this,_0x4689d4(0x534),a[_0x4689d4(0x4ea)][_0x4689d4(0x227)]()),d(this,_0x4689d4(0x4b3),new Set()),d(this,'_unitOnClients',new Map()),d(this,'_heartbeatTimer',null),d(this,_0x4689d4(0x204),new Map()),d(this,_0x4689d4(0x2c5),new Map()),this[_0x4689d4(0x458)]();}[_0x945337(0x1eb)](){const _0x1c755b=_0x945337;super[_0x1c755b(0x1eb)](),this[_0x1c755b(0x204)][_0x1c755b(0x278)]((_0x4b6e43,_0x5bf2fa)=>this[_0x1c755b(0x4f9)](_0x5bf2fa)),this[_0x1c755b(0x1bb)]&&window[_0x1c755b(0x453)](this['_heartbeatTimer']);}['getUnitStatus$'](_0xf27a3a){const _0x24355c=_0x945337;return this[_0x24355c(0x472)](_0xf27a3a)[_0x24355c(0x550)](v[_0x24355c(0x578)]());}[_0x945337(0x507)](_0x3ba87b){const _0x37a4b5=_0x945337;this[_0x37a4b5(0x4b3)]['size']===0x0&&this[_0x37a4b5(0x49a)](),this['_selfUnitIDs']['add'](_0x3ba87b),this[_0x37a4b5(0x583)]({'type':0x0,'memberID':this[_0x37a4b5(0x534)],'unitIDs':[_0x3ba87b],'isForwarded':!0x1});}[_0x945337(0x4c9)](_0x288dc0){const _0x15c026=_0x945337;this[_0x15c026(0x4b3)][_0x15c026(0x532)](_0x288dc0),this['_selfUnitIDs'][_0x15c026(0x17e)]===0x0&&this[_0x15c026(0x1bb)]&&window[_0x15c026(0x453)](this['_heartbeatTimer']);}[_0x945337(0x458)](){const _0xcfc091=_0x945337;this[_0xcfc091(0x50a)](a[_0xcfc091(0x296)](v[_0xcfc091(0x223)](window,_0xcfc091(0x31c))[_0xcfc091(0x397)](_0x2411ca=>{const _0x3ea18f=_0xcfc091;if(_0x2411ca[_0x3ea18f(0x269)]!==tt||!_0x2411ca[_0x3ea18f(0x287)])return;const _0x57372e=JSON[_0x3ea18f(0x2e0)](_0x2411ca['newValue']);this[_0x3ea18f(0x1c7)](_0x57372e);}))),window['addEventListener']('unload',()=>this[_0xcfc091(0x583)]({'type':0x1,'memberID':this[_0xcfc091(0x534)],'unitIDs':Array[_0xcfc091(0x3f2)](this[_0xcfc091(0x4b3)])}));}[_0x945337(0x1c7)](_0x1cc4e1){const _0x2a4f80=_0x945337;switch(_0x1cc4e1[_0x2a4f80(0x243)]){case 0x0:this[_0x2a4f80(0x23b)](_0x1cc4e1);break;case 0x1:this[_0x2a4f80(0x2e6)](_0x1cc4e1);break;case 0x2:this[_0x2a4f80(0x3d5)](_0x1cc4e1);break;}}['_handleJoinEvent'](_0x8f6b67){const _0x5e59d1=_0x945337,{unitIDs:_0x42f0cb,memberID:_0x230bb3,isForwarded:_0x3e143e}=_0x8f6b67;_0x42f0cb['forEach'](_0x12936e=>{const _0x21a12a=_0x38f3;if(!_0x3e143e&&this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)&&this[_0x21a12a(0x472)](_0x12936e)[_0x21a12a(0x3ca)](0x1),!this[_0x21a12a(0x254)][_0x21a12a(0x384)](_0x12936e)||!this[_0x21a12a(0x254)]['get'](_0x12936e)[_0x21a12a(0x384)](_0x230bb3)){const _0x418327=this['_unitOnClients'][_0x21a12a(0x3eb)](_0x12936e)||new Set();_0x418327[_0x21a12a(0x18a)](_0x230bb3),this[_0x21a12a(0x254)]['set'](_0x12936e,_0x418327),this[_0x21a12a(0x3d4)](_0x230bb3);}}),_0x3e143e||this[_0x5e59d1(0x583)]({'type':0x0,'memberID':this[_0x5e59d1(0x534)],'unitIDs':[...this[_0x5e59d1(0x4b3)]],'isForwarded':!0x0});}[_0x945337(0x3d4)](_0x8582dd){const _0x36fc95=_0x945337;this[_0x36fc95(0x4f9)](_0x8582dd);const _0x30eed1=window[_0x36fc95(0x191)](()=>{const _0x295644=_0x36fc95;this['_unitOnClients'][_0x295644(0x278)](_0x278f4a=>{const _0x55b4f6=_0x295644;_0x278f4a[_0x55b4f6(0x532)](_0x8582dd);});},et*0x2);this[_0x36fc95(0x204)][_0x36fc95(0x4a8)](_0x8582dd,_0x30eed1);}[_0x945337(0x4f9)](_0x1602ca){const _0x4a0fe7=_0x945337;if(this[_0x4a0fe7(0x204)][_0x4a0fe7(0x384)](_0x1602ca)){const _0x358cd4=this['_clearOtherTimers'][_0x4a0fe7(0x3eb)](_0x1602ca);_0x358cd4&&window[_0x4a0fe7(0x509)](_0x358cd4),this['_clearOtherTimers'][_0x4a0fe7(0x4a8)](_0x1602ca,null);}}[_0x945337(0x2e6)](_0x5eeca9){const _0x1dd8b2=_0x945337,{memberID:_0x189aa1,unitIDs:_0x5c65db}=_0x5eeca9;_0x5c65db['forEach'](_0xa91862=>{const _0x55173c=_0x38f3;var _0x375d31;const _0x2d0be6=this[_0x55173c(0x254)][_0x55173c(0x3eb)](_0xa91862);_0x2d0be6&&(_0x2d0be6[_0x55173c(0x532)](_0x189aa1),(_0x375d31=this[_0x55173c(0x472)](_0xa91862))==null||_0x375d31[_0x55173c(0x3ca)](_0x2d0be6[_0x55173c(0x17e)]===0x0?0x0:0x1));}),this[_0x1dd8b2(0x4f9)](_0x189aa1);}['_handleHeartbeatEvent'](_0x177aee){const _0x15071a=_0x945337;this[_0x15071a(0x3d4)](_0x177aee[_0x15071a(0x2ab)]);}['_send'](_0x826abf){const _0x162eee=_0x945337;localStorage[_0x162eee(0x539)](tt,JSON[_0x162eee(0x22d)](_0x826abf));}['_scheduleHeartbeat'](){const _0x482c89=_0x945337;this[_0x482c89(0x1bb)]=window[_0x482c89(0x330)](()=>{const _0x4a2553=_0x482c89;this[_0x4a2553(0x583)]({'type':0x2,'memberID':this['_id']});},et);}[_0x945337(0x472)](_0x119ef7){const _0x3b85c1=_0x945337;return this[_0x3b85c1(0x2c5)]['has'](_0x119ef7)||this['_unitStatus'][_0x3b85c1(0x4a8)](_0x119ef7,new v[(_0x3b85c1(0x52c))](0x0)),this[_0x3b85c1(0x2c5)]['get'](_0x119ef7);}}function Tt(_0x124cab){const _0x3084e1=_0x945337;let _0x390d60='';for(const _0x599cc5 of _0x124cab){const {startOffset:_0x227c3b,endOffset:_0x1ed78d,isActive:_0x3eac78}=_0x599cc5;_0x390d60[_0x3084e1(0x3f0)]&&(_0x390d60+=','),_0x390d60+=_0x227c3b+':'+_0x1ed78d+':'+(_0x3eac78?'1':'0');}return _0x390d60;}function Us(_0x155c39){const _0x25300d=_0x945337,_0x2f9a0f=_0x155c39[_0x25300d(0x45c)](','),_0x2ee330=[];for(const _0x2775b0 of _0x2f9a0f){const [_0xddd380,_0x472e34,_0xcb986c]=_0x2775b0[_0x25300d(0x45c)](':');_0x2ee330[_0x25300d(0x3b0)]({'startOffset':Number(_0xddd380),'endOffset':Number(_0x472e34),'collapsed':_0xddd380===_0x472e34,'isActive':_0xcb986c==='1'});}return _0x2ee330['some'](_0x12e785=>_0x12e785[_0x25300d(0x3db)])||(_0x2ee330[0x0][_0x25300d(0x3db)]=!0x0),_0x2ee330;}class Ye extends a[_0x945337(0x538)]{constructor(){const _0x5bee9e=_0x945337;super(...arguments),d(this,_0x5bee9e(0x582),new v[(_0x5bee9e(0x52c))](null)),d(this,_0x5bee9e(0x23e),this[_0x5bee9e(0x582)][_0x5bee9e(0x19b)]());}[_0x945337(0x271)](_0xe5d895){const _0x1f4eee=_0x945337,{unitID:_0x57aa10,memberID:_0x31f9f2,textRanges:_0x9fcf74}=_0xe5d895,_0xa0bfcd=Tt(_0x9fcf74),_0x52e83f={'unitID':_0x57aa10,'memberID':_0x31f9f2,'selection':_0xa0bfcd};this[_0x1f4eee(0x582)][_0x1f4eee(0x3ca)](_0x52e83f);}}var Ps=Object[_0x945337(0x24b)],ws=Object[_0x945337(0x3e2)],Ms=(_0x148505,_0x2934bf,_0x21ead1,_0x1d521b)=>{const _0x3ea87f=_0x945337;for(var _0x479a63=_0x1d521b>0x1?void 0x0:_0x1d521b?ws(_0x2934bf,_0x21ead1):_0x2934bf,_0x156423=_0x148505[_0x3ea87f(0x3f0)]-0x1,_0x232b95;_0x156423>=0x0;_0x156423--)(_0x232b95=_0x148505[_0x156423])&&(_0x479a63=(_0x1d521b?_0x232b95(_0x2934bf,_0x21ead1,_0x479a63):_0x232b95(_0x479a63))||_0x479a63);return _0x1d521b&&_0x479a63&&Ps(_0x2934bf,_0x21ead1,_0x479a63),_0x479a63;},st=(_0x4ce950,_0xac32a3)=>(_0x50bd13,_0x4c4814)=>_0xac32a3(_0x50bd13,_0x4c4814,_0x4ce950);let me=class{constructor(_0x3b16f8,_0x5127c5){const _0x123759=_0x945337;this[_0x123759(0x3dd)]=_0x3b16f8,this[_0x123759(0x4f2)]=_0x5127c5;}[_0x945337(0x463)](_0x133cb1){const _0x3e3eb0=_0x945337;var _0x2bc918;const _0x5ecf6d=this[_0x3e3eb0(0x3dd)][_0x3e3eb0(0x3eb)](V[_0x3e3eb0(0x1e0)]),_0xd2b192=(_0x2bc918=_0x5ecf6d[_0x3e3eb0(0x351)]())!=null?_0x2bc918:[];if(_0xd2b192[_0x3e3eb0(0x3f0)]===0x0)return;const _0x5e21ef=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x133cb1[_0x3e3eb0(0x1da)],'actions':null,'textRanges':_0xd2b192}}],_0x128103=this[_0x3e3eb0(0x4f2)][_0x3e3eb0(0x4df)](_0x133cb1,_0x5e21ef);if(!_['isTransformMutationsWithChangesetSuccess'](_0x128103))throw _0x128103[_0x3e3eb0(0x2e8)];const _0x41615b=_0x128103[_0x3e3eb0(0x178)][0x0]['params'][_0x3e3eb0(0x485)];Array[_0x3e3eb0(0x48e)](_0x41615b)&&_0x41615b['length']&&_0x5ecf6d['replaceTextRanges'](_0x41615b,!0x1);}};me=Ms([st(0x0,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),st(0x1,_[_0x945337(0x429)])],me);const Ns=new Set([C[_0x945337(0x1b4)]['id']]);function it(_0x2178e8,_0x490897,_0x25d842,_0x57b35c,_0x10423d){const _0x2d446c=_0x945337;var _0x11795b,_0x4a5109,_0x2192ed,_0x2de3c6;const _0x3483e5=[];for(const _0x253c5d of _0x2178e8)if(Ns[_0x2d446c(0x384)](_0x253c5d['id'])){if(_0x3483e5['length']>0x0)break;_0x3483e5['push'](_0x253c5d);break;}else _0x3483e5[_0x2d446c(0x3b0)](_0x253c5d);const _0x28b66e=(_0x4a5109=(_0x11795b=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x11795b[_0x2d446c(0x4e9)])!=null?_0x4a5109:_0x2d446c(0x45d),_0x1f8cc9=(_0x2de3c6=(_0x2192ed=_0x10423d[_0x2d446c(0x307)]())==null?void 0x0:_0x2192ed[_0x2d446c(0x2ab)])!=null?_0x2de3c6:'unknown';return{'changeset':{'unitID':_0x490897,'type':_[_0x2d446c(0x543)](_0x25d842[_0x2d446c(0x27c)](_0x490897)),'baseRev':_0x57b35c[_0x2d446c(0x436)](_0x490897),'revision':0x0,'userID':_0x28b66e,'memberID':_0x1f8cc9,'mutations':_0x3483e5},'pendingMutations':_0x2178e8['slice'](_0x3483e5[_0x2d446c(0x3f0)])};}function As(_0x10828b,_0xe5c7aa,_0x1acfea,_0xaf7c99,_0x398922){const _0x1086cc=_0x945337;var _0x2f3028,_0x38b990,_0x847f92,_0x3326f2;const _0x14bb9c=[_0x10828b[_0x1086cc(0x580)]((_0x16e671,_0x7c8c97)=>{const _0x109d41=_0x1086cc;var _0x46b416;const {id:_0x359a04}=_0x16e671,{id:_0x37aa9c,type:_0x472b07}=_0x7c8c97,_0x2322ff=(_0x46b416=_0x16e671['params'])!=null?_0x46b416:{'actions':null},_0x4e0e4c=_0x7c8c97['params'];if(_0x359a04&&_0x359a04!==_0x37aa9c)throw new Error(_0x109d41(0x514)+_0x359a04+'\x20-\x20'+_0x37aa9c+'.');return{..._0x16e671,'id':_0x37aa9c,'type':_0x472b07,'params':{'unitId':_0x4e0e4c['unitId'],'textRanges':_0x4e0e4c['textRanges'],'actions':a['JSONX'][_0x109d41(0x4b0)](_0x2322ff[_0x109d41(0x3ef)],_0x4e0e4c[_0x109d41(0x3ef)])}};},{})],_0x410337=(_0x38b990=(_0x2f3028=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x2f3028[_0x1086cc(0x4e9)])!=null?_0x38b990:_0x1086cc(0x45d),_0x29e141=(_0x3326f2=(_0x847f92=_0x398922[_0x1086cc(0x307)]())==null?void 0x0:_0x847f92[_0x1086cc(0x2ab)])!=null?_0x3326f2:_0x1086cc(0x45d);return{'changeset':{'unitID':_0xe5c7aa,'type':_[_0x1086cc(0x543)](_0x1acfea[_0x1086cc(0x27c)](_0xe5c7aa)),'baseRev':_0xaf7c99['getCurrentRevOfUnit'](_0xe5c7aa),'revision':0x0,'userID':_0x410337,'memberID':_0x29e141,'mutations':_0x14bb9c},'pendingMutations':[]};}const Ls={'id':C[_0x945337(0x3d7)]['id'],'type':a[_0x945337(0x2fb)]['MUTATION'],'params':{}};var js=Object['defineProperty'],$s=Object[_0x945337(0x3e2)],z=(_0xb40d41,_0x352fe2,_0x337cfa,_0xf5965f)=>{const _0x41500f=_0x945337;for(var _0x25bb19=_0xf5965f>0x1?void 0x0:_0xf5965f?$s(_0x352fe2,_0x337cfa):_0x352fe2,_0x3b2546=_0xb40d41[_0x41500f(0x3f0)]-0x1,_0x7d414d;_0x3b2546>=0x0;_0x3b2546--)(_0x7d414d=_0xb40d41[_0x3b2546])&&(_0x25bb19=(_0xf5965f?_0x7d414d(_0x352fe2,_0x337cfa,_0x25bb19):_0x7d414d(_0x25bb19))||_0x25bb19);return _0xf5965f&&_0x25bb19&&js(_0x352fe2,_0x337cfa,_0x25bb19),_0x25bb19;},g=(_0x3364fb,_0x2a4b89)=>(_0x1f7f1a,_0x291287)=>_0x2a4b89(_0x1f7f1a,_0x291287,_0x3364fb),y=(_0x34c214=>(_0x34c214['NOT_COLLAB']=_0x945337(0x2bd),_0x34c214[_0x945337(0x4fb)]=_0x945337(0x4ad),_0x34c214[_0x945337(0x1a2)]=_0x945337(0x358),_0x34c214[_0x945337(0x2c9)]=_0x945337(0x3ba),_0x34c214[_0x945337(0x564)]=_0x945337(0x1ec),_0x34c214[_0x945337(0x2bf)]=_0x945337(0x24f),_0x34c214[_0x945337(0x486)]=_0x945337(0x3d3),_0x34c214[_0x945337(0x482)]=_0x945337(0x1c1),_0x34c214))(y||{});class J{constructor(_0x50e770,_0x2a2d82,_0x90f9c3,_0x48a2c7,_0x2e369c,_0xada5e8,_0x5e4889,_0xa2c0bc,_0x42caa3){const _0x6b5f80=_0x945337;d(this,_0x6b5f80(0x423),null),d(this,_0x6b5f80(0x194),[]),(this[_0x6b5f80(0x1da)]=_0x50e770,this[_0x6b5f80(0x243)]=_0x2a2d82,this[_0x6b5f80(0x404)]=_0x2e369c,this[_0x6b5f80(0x256)]=_0xada5e8,this[_0x6b5f80(0x217)]=_0x5e4889,this[_0x6b5f80(0x1df)]=_0xa2c0bc,this[_0x6b5f80(0x576)]=_0x42caa3,this[_0x6b5f80(0x423)]=_0x90f9c3,this['_pendingMutations']=_0x48a2c7);}['_checkMissing'](_0xac8a6e){const _0x3aa100=_0x945337,_0x428121=this[_0x3aa100(0x1df)]['getCurrentRevOfUnit'](this[_0x3aa100(0x1da)]);return _0xac8a6e[_0x3aa100(0x289)]>_0x428121+0x1?(this[_0x3aa100(0x404)][_0x3aa100(0x324)]({'from':_0x428121,'to':_0xac8a6e[_0x3aa100(0x289)]-0x1}),!0x0):!0x1;}[_0x945337(0x2c7)](_0x36bed7){const _0x574999=_0x945337;this[_0x574999(0x217)][_0x574999(0x1d0)](this[_0x574999(0x1da)],_0x36bed7);}[_0x945337(0x448)](_0x57629b){const _0x56968d=_0x945337;var _0x232419,_0x47e5c7;(_0x47e5c7=(_0x232419=this['_handler'])[_0x56968d(0x454)])==null||_0x47e5c7['call'](_0x232419,_0x57629b);}[_0x945337(0x334)](_0x53f89c){const _0x37b998=_0x945337;var _0x338d67,_0x28f1f5;return(_0x28f1f5=(_0x338d67=this[_0x37b998(0x404)])[_0x37b998(0x3d2)])==null?void 0x0:_0x28f1f5[_0x37b998(0x441)](_0x338d67,_0x53f89c);}[_0x945337(0x497)](_0x208d53){const _0x526f68=_0x945337;var _0x18100e,_0x281f98,_0x57a774;return(_0x57a774=(_0x281f98=(_0x18100e=this[_0x526f68(0x404)])[_0x526f68(0x1b1)])==null?void 0x0:_0x281f98[_0x526f68(0x441)](_0x18100e,_0x208d53))!=null?_0x57a774:_0x208d53;}[_0x945337(0x2b3)](_0x182f5a){const _0x577cb6=_0x945337;var _0x4d5d7b,_0x490ba8;if(this[_0x577cb6(0x243)]===j['UNIVER_DOC']){const {unitID:_0x5901a2,mutations:_0x48c239,memberID:_0x591151}=_0x182f5a,_0x1a1f27=_0x48c239[0x0]['params'][_0x577cb6(0x485)];Array[_0x577cb6(0x48e)](_0x1a1f27)&&_0x1a1f27[_0x577cb6(0x3f0)]>0x0&&((_0x490ba8=(_0x4d5d7b=this[_0x577cb6(0x404)])[_0x577cb6(0x54a)])==null||_0x490ba8['call'](_0x4d5d7b,{'unitID':_0x5901a2,'memberID':_0x591151,'textRanges':_0x1a1f27}));}}[_0x945337(0x581)](){const _0x609db7=_0x945337;this[_0x609db7(0x576)]['updateOfflineData'](this[_0x609db7(0x1da)],this[_0x609db7(0x243)],this[_0x609db7(0x423)],this['_pendingMutations']);}[_0x945337(0x1c0)](){const _0x27069e=_0x945337;return this[_0x27069e(0x1df)][_0x27069e(0x436)](this[_0x27069e(0x1da)]);}[_0x945337(0x2d7)](){const _0x2a4ca2=_0x945337;this['_revisionService'][_0x2a4ca2(0x4d8)](this['unitID']);}[_0x945337(0x363)](_0x4bf075){const _0x308872=_0x945337;var _0x2fe336;const _0x1d38e4=this['_transformRemoteChangesetByIMECache'](_0x4bf075),_0x13bb8c=a[_0x308872(0x39a)](_0x1d38e4[_0x308872(0x435)],this[_0x308872(0x256)],{'fromCollab':!0x0});if(!_0x13bb8c[_0x308872(0x331)])throw _0x13bb8c[_0x308872(0x2e8)]instanceof Error?_0x13bb8c[_0x308872(0x2e8)]:new Error((_0x2fe336=_0x13bb8c[_0x308872(0x2e8)])!=null?_0x2fe336:_0x308872(0x2de));this[_0x308872(0x334)](_0x1d38e4),this[_0x308872(0x2c7)](_0x4bf075),this[_0x308872(0x448)](_0x1d38e4),this['_syncEditingCollabCursor'](_0x1d38e4),this[_0x308872(0x2d7)]();}}let se=class extends J{constructor(_0x588e6a,_0x47b21d,_0x2df9c7,_0x14389d,_0x56cfb8,_0x207c43,_0x582cb7,_0x2d5af2,_0x4edb3f,_0xe12a29){const _0x2e4554=_0x945337;super(_0x588e6a,_0x47b21d,null,[],_0x2df9c7,_0x2d5af2,_0x582cb7,_0x14389d,_0x56cfb8),d(this,_0x2e4554(0x44d),'synced'),(this[_0x2e4554(0x3dd)]=_0x207c43,this[_0x2e4554(0x4ae)]=_0x4edb3f,this[_0x2e4554(0x4f2)]=_0xe12a29);}[_0x945337(0x561)](_0x137776){const _0x293b6e=_0x945337,_0x18f7f8=this['_injector'][_0x293b6e(0x39d)](x,this[_0x293b6e(0x1da)],this[_0x293b6e(0x243)],[_0x137776],this[_0x293b6e(0x404)]);return _0x18f7f8[_0x293b6e(0x2bc)](),_0x18f7f8[_0x293b6e(0x581)](),_0x18f7f8;}['onRemoteChangeset'](_0x2937bc){const _0x269718=_0x945337;if(this[_0x269718(0x35d)](_0x2937bc))return this['_injector'][_0x269718(0x39d)](H,this[_0x269718(0x1da)],this[_0x269718(0x243)],null,[],null,[_0x2937bc],this['_handler']);try{const _0x304193=this['_transformService'][_0x269718(0x4df)](_0x2937bc,[Ls]);if(_[_0x269718(0x3f7)](_0x304193)){const {c1Prime:_0x27075e}=_0x304193;return this['_executeRemoteChangeset'](_0x27075e),this;}throw _0x304193['error'];}catch(_0x2476ea){return this[_0x269718(0x4ae)][_0x269718(0x2e8)](_0x2476ea),this[_0x269718(0x3f5)](!0x1);}}[_0x945337(0x3f5)](_0x59732d){const _0x4a2cc9=_0x945337;return this[_0x4a2cc9(0x3dd)][_0x4a2cc9(0x39d)](F,this[_0x4a2cc9(0x1da)],this[_0x4a2cc9(0x243)],null,[],this[_0x4a2cc9(0x404)],_0x59732d);}['onRemoteAck'](){const _0x2669ee=_0x945337;throw new Error(_0x2669ee(0x50e));}[_0x945337(0x294)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x945337(0x506)](){const _0x1c6831=_0x945337;return this[_0x1c6831(0x3dd)][_0x1c6831(0x39d)](G,this[_0x1c6831(0x1da)],this['type'],null,[],this[_0x1c6831(0x404)]);}[_0x945337(0x267)](){return this;}[_0x945337(0x4a4)](){const _0x2fa7a6=_0x945337;throw new Error(_0x2fa7a6(0x3d8));}[_0x945337(0x2e2)](){const _0x5443c8=_0x945337,_0x3db652=this[_0x5443c8(0x1df)]['getCurrentRevOfUnit'](this[_0x5443c8(0x1da)]);return this[_0x5443c8(0x404)][_0x5443c8(0x324)]({'from':_0x3db652,'to':0x0}),this[_0x5443c8(0x3dd)]['createInstance'](H,this[_0x5443c8(0x1da)],this[_0x5443c8(0x243)],null,[],null,[],this[_0x5443c8(0x404)]);}};se=z([g(0x3,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x4,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x38b)]),g(0x7,a[_0x945337(0x400)]),g(0x8,a['ILogService']),g(0x9,_[_0x945337(0x429)])],se);let x=class extends J{constructor(_0x412cff,_0x57aebd,_0x572848,_0xdce8c8,_0x5ee1d2,_0x51abab,_0x34e288,_0x8e86e1,_0x46e0de,_0x4ff8a8,_0x5434dd,_0x50d27e,_0xaf42f5,_0x689533){const _0x18f15a=_0x945337;super(_0x412cff,_0x57aebd,null,_0x572848,_0xdce8c8,_0x4ff8a8,_0x689533,_0x51abab,_0x34e288),d(this,_0x18f15a(0x44d),_0x18f15a(0x358)),d(this,_0x18f15a(0x41b),null),d(this,_0x18f15a(0x549),null),(this[_0x18f15a(0x3dd)]=_0x5ee1d2,this[_0x18f15a(0x526)]=_0x8e86e1,this['_logService']=_0x46e0de,this[_0x18f15a(0x4f8)]=_0x5434dd,this[_0x18f15a(0x4f2)]=_0x50d27e,this[_0x18f15a(0x337)]=_0xaf42f5);}['appendMutation'](_0x5d52b0){const _0x4e4ba6=_0x945337;return this[_0x4e4ba6(0x194)]['push'](_0x5d52b0),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xeda696){const _0x105be4=_0x945337;if(this[_0x105be4(0x35d)](_0xeda696))return this[_0x105be4(0x47e)](),this[_0x105be4(0x3dd)]['createInstance'](H,this[_0x105be4(0x1da)],this[_0x105be4(0x243)],null,this[_0x105be4(0x194)],null,[_0xeda696],this[_0x105be4(0x404)]);try{const _0x4b13bc=this[_0x105be4(0x4f2)][_0x105be4(0x4df)](_0xeda696,this[_0x105be4(0x194)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x4b13bc)){const {c1Prime:_0x815735,m2Prime:_0x2410ec}=_0x4b13bc;this[_0x105be4(0x363)](_0x815735);const _0x59ccba=this[_0x105be4(0x3dd)][_0x105be4(0x39d)](x,this['unitID'],this[_0x105be4(0x243)],_0x2410ec,this[_0x105be4(0x404)]);return this[_0x105be4(0x47e)](),_0x59ccba[_0x105be4(0x2bc)](this['_scheduleTimestamp']?Math[_0x105be4(0x25c)](0x0,new Date()[_0x105be4(0x548)]()-this[_0x105be4(0x41b)]):this[_0x105be4(0x2dd)]()),_0x59ccba;}throw _0x4b13bc[_0x105be4(0x2e8)];}catch(_0x390393){return this[_0x105be4(0x4ae)][_0x105be4(0x2e8)](_0x390393),this[_0x105be4(0x3f5)](!0x1);}}['onRemoteAck'](){const _0x1b86cf=_0x945337;throw new Error(_0x1b86cf(0x4a0));}[_0x945337(0x294)](){const _0x2229a7=_0x945337;throw new Error(_0x2229a7(0x516));}['toggleOffline'](){const _0x15b610=_0x945337;return this[_0x15b610(0x47e)](),this[_0x15b610(0x3dd)]['createInstance'](G,this[_0x15b610(0x1da)],this[_0x15b610(0x243)],null,this[_0x15b610(0x194)],this[_0x15b610(0x404)]);}['toggleOnline'](){return this;}['_schedule'](_0x2cf31e){const _0x5eab48=_0x945337,_0x21f151=_0x2cf31e!=null?_0x2cf31e:this[_0x5eab48(0x2dd)]();this['_scheduleTimestamp']=new Date()[_0x5eab48(0x548)](),this[_0x5eab48(0x549)]=window[_0x5eab48(0x191)](()=>{const _0x14800d=_0x5eab48;this[_0x14800d(0x47e)]();let _0x10f2af=null;switch(this[_0x14800d(0x243)]){case j[_0x14800d(0x53c)]:{_0x10f2af=it(this[_0x14800d(0x194)],this['unitID'],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}case j[_0x14800d(0x395)]:{this[_0x14800d(0x194)]['every'](_0x21d9ea=>_0x21d9ea['id']===V[_0x14800d(0x316)]['id'])?_0x10f2af=As(this[_0x14800d(0x194)],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]):_0x10f2af=it(this['_pendingMutations'],this[_0x14800d(0x1da)],this[_0x14800d(0x337)],this[_0x14800d(0x1df)],this[_0x14800d(0x526)]);break;}default:throw new Error(_0x14800d(0x31d)+this[_0x14800d(0x243)]+_0x14800d(0x2f2));}const {changeset:_0x1029c3,pendingMutations:_0x611d72}=_0x10f2af;this[_0x14800d(0x404)][_0x14800d(0x468)](_0x1029c3);const _0xc792f7=_0x611d72['length']?this[_0x14800d(0x3dd)][_0x14800d(0x39d)](k,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,_0x611d72,this[_0x14800d(0x404)]):this['_injector'][_0x14800d(0x39d)](W,this[_0x14800d(0x1da)],this[_0x14800d(0x243)],_0x1029c3,this[_0x14800d(0x404)]);_0xc792f7['_updateLocalCache'](),this[_0x14800d(0x404)][_0x14800d(0x20e)](this,_0xc792f7);},_0x21f151);}[_0x945337(0x2dd)](){const _0x3fc188=_0x945337;var _0xba7890;const _0xaf034=this[_0x3fc188(0x4f8)]['getConfig'](A);return(_0xba7890=_0xaf034==null?void 0x0:_0xaf034['sendChangesetTimeout'])!=null?_0xba7890:Kt;}[_0x945337(0x4a4)](){const _0x4bf310=_0x945337;throw new Error(_0x4bf310(0x1cf));}['_clearScheduledTask'](){const _0x41b97b=_0x945337;this['_sendingTimer']!=null&&(clearTimeout(this[_0x41b97b(0x549)]),this['_sendingTimer']=null);}[_0x945337(0x3f5)](_0x2490b0){const _0x15c6a1=_0x945337;return this[_0x15c6a1(0x47e)](),this[_0x15c6a1(0x3dd)][_0x15c6a1(0x39d)](F,this[_0x15c6a1(0x1da)],this[_0x15c6a1(0x243)],null,this[_0x15c6a1(0x194)],this[_0x15c6a1(0x404)],_0x2490b0);}};x=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x4fa)](q)),g(0x8,a[_0x945337(0x48c)]),g(0x9,a[_0x945337(0x400)]),g(0xa,a[_0x945337(0x1f7)]),g(0xb,_['ITransformService']),g(0xc,a[_0x945337(0x57b)]),g(0xd,a[_0x945337(0x38b)])],x);let W=class extends J{constructor(_0x538d91,_0x3f37db,_0x5f5c12,_0x4c741a,_0x2a392e,_0x2c8ccf,_0x3b5408,_0x42bfef,_0x1a6590,_0x1d2ab4,_0x4aa720){const _0x370454=_0x945337;super(_0x538d91,_0x3f37db,_0x5f5c12,[],_0x4c741a,_0x42bfef,_0x4aa720,_0x2c8ccf,_0x3b5408),d(this,'status',_0x370454(0x3ba)),(this[_0x370454(0x3dd)]=_0x2a392e,this[_0x370454(0x4ae)]=_0x1a6590,this['_transformService']=_0x1d2ab4);}[_0x945337(0x561)](_0x33c544){const _0x54b8a8=_0x945337,_0x15b746=this[_0x54b8a8(0x3dd)][_0x54b8a8(0x39d)](k,this[_0x54b8a8(0x1da)],this[_0x54b8a8(0x243)],this[_0x54b8a8(0x423)],[_0x33c544],this['_handler']);return _0x15b746['_updateLocalCache'](),_0x15b746;}[_0x945337(0x1d4)](_0x55ce04){const _0x1cfabc=_0x945337;if(this['_checkMissing'](_0x55ce04))return this['_injector'][_0x1cfabc(0x39d)](H,this[_0x1cfabc(0x1da)],this['type'],this[_0x1cfabc(0x423)],[],null,[_0x55ce04],this['_handler']);try{const _0x2b1326=this['_transformService'][_0x1cfabc(0x558)]([_0x55ce04],[this[_0x1cfabc(0x423)]],!0x1);if(_[_0x1cfabc(0x301)](_0x2b1326)){const {c1Prime:_0x425c25,c2Prime:_0x4ce499}=_0x2b1326;this['_executeRemoteChangeset'](_0x425c25[0x0]),_0x4ce499[0x0][_0x1cfabc(0x2f9)]=this[_0x1cfabc(0x1c0)]();const _0x2f8b53=this[_0x1cfabc(0x3dd)]['createInstance'](W,this['unitID'],this[_0x1cfabc(0x243)],_0x4ce499[0x0],this['_handler']);return _0x2f8b53[_0x1cfabc(0x581)](),_0x2f8b53;}return this[_0x1cfabc(0x3f5)](!0x1);}catch(_0x6552ea){return this[_0x1cfabc(0x4ae)][_0x1cfabc(0x2e8)](_0x6552ea),this[_0x1cfabc(0x3f5)](!0x1);}}[_0x945337(0x344)](_0x2d7d17){const _0x294e8c=_0x945337,_0x44f0f9=this[_0x294e8c(0x1df)][_0x294e8c(0x436)](this[_0x294e8c(0x1da)]);if(_0x2d7d17[_0x294e8c(0x289)]<_0x44f0f9-0x1)return this;if(this[_0x294e8c(0x35d)](_0x2d7d17))return this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](H,this[_0x294e8c(0x1da)],this['type'],null,[],this[_0x294e8c(0x423)],[],this[_0x294e8c(0x404)]);this[_0x294e8c(0x2d7)]();const _0x94a190=this[_0x294e8c(0x3dd)][_0x294e8c(0x39d)](se,this[_0x294e8c(0x1da)],this[_0x294e8c(0x243)],this[_0x294e8c(0x404)]);return _0x94a190[_0x294e8c(0x581)](),_0x94a190;}[_0x945337(0x294)](_0x4cca65){const _0x40b7c1=_0x945337;return this[_0x40b7c1(0x3f5)](!!(_0x4cca65!=null&&_0x4cca65['isPermissionRej']));}[_0x945337(0x506)](){const _0x8bdda=_0x945337;return this[_0x8bdda(0x3dd)][_0x8bdda(0x39d)](G,this[_0x8bdda(0x1da)],this[_0x8bdda(0x243)],this[_0x8bdda(0x423)],[],this[_0x8bdda(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5b3bf3=_0x945337;this[_0x5b3bf3(0x404)][_0x5b3bf3(0x468)](this['_awaitingChangeset']);}[_0x945337(0x3f5)](_0x593c01){const _0x381473=_0x945337;return this[_0x381473(0x3dd)]['createInstance'](F,this[_0x381473(0x1da)],this['type'],this[_0x381473(0x423)],[],this[_0x381473(0x404)],_0x593c01);}};W=z([g(0x4,a['Inject'](a[_0x945337(0x2b5)])),g(0x5,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x6,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x7,a[_0x945337(0x400)]),g(0x8,a[_0x945337(0x48c)]),g(0x9,_[_0x945337(0x429)]),g(0xa,a[_0x945337(0x38b)])],W);let k=class extends J{constructor(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x374f4a,_0xc9abc4,_0x55c8fd,_0x2a2452,_0x17867e,_0xcb8efa,_0x44147a){const _0x7ed69c=_0x945337;super(_0x4315ef,_0x17ed98,_0x5c3861,_0x56132d,_0x58d492,_0x2a2452,_0x44147a,_0xc9abc4,_0x55c8fd),d(this,_0x7ed69c(0x44d),_0x7ed69c(0x1ec)),(this[_0x7ed69c(0x3dd)]=_0x374f4a,this[_0x7ed69c(0x4ae)]=_0x17867e,this['_transformService']=_0xcb8efa);}[_0x945337(0x561)](_0x3350e4){return this['_pendingMutations']['push'](_0x3350e4),this;}[_0x945337(0x1d4)](_0x45aea0){const _0x3c41c4=_0x945337;if(this[_0x3c41c4(0x35d)](_0x45aea0))return this['_injector'][_0x3c41c4(0x39d)](H,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],this['_awaitingChangeset'],this[_0x3c41c4(0x194)],null,[_0x45aea0],this[_0x3c41c4(0x404)]);try{const _0x417d0e=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x558)]([_0x45aea0],[this[_0x3c41c4(0x423)]],!0x1);if(_[_0x3c41c4(0x301)](_0x417d0e)){const {c1Prime:_0x1231dc,c2Prime:_0x59c96d}=_0x417d0e,_0xd858fd=this[_0x3c41c4(0x4f2)][_0x3c41c4(0x4df)](_0x1231dc[0x0],this[_0x3c41c4(0x194)]);if(_[_0x3c41c4(0x3f7)](_0xd858fd)){const {c1Prime:_0x4b28e5,m2Prime:_0x734ea0}=_0xd858fd;return this[_0x3c41c4(0x363)](_0x4b28e5),_0x59c96d[0x0][_0x3c41c4(0x2f9)]=this[_0x3c41c4(0x1c0)](),this[_0x3c41c4(0x3dd)][_0x3c41c4(0x39d)](k,this[_0x3c41c4(0x1da)],this[_0x3c41c4(0x243)],_0x59c96d[0x0],_0x734ea0,this[_0x3c41c4(0x404)]);}throw _0xd858fd[_0x3c41c4(0x2e8)];}throw _0x417d0e['error'];}catch(_0x5bea25){return this[_0x3c41c4(0x4ae)][_0x3c41c4(0x2e8)](_0x5bea25),this[_0x3c41c4(0x3f5)](!0x1);}}['onRemoteAck'](_0x2fde04){const _0x7ee547=_0x945337;if(this['_checkMissing'](_0x2fde04))return this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](H,this[_0x7ee547(0x1da)],this[_0x7ee547(0x243)],null,this[_0x7ee547(0x194)],this['_awaitingChangeset'],[],this[_0x7ee547(0x404)]);this[_0x7ee547(0x2d7)]();const _0x1f6aae=this[_0x7ee547(0x3dd)][_0x7ee547(0x39d)](x,this[_0x7ee547(0x1da)],this['type'],this[_0x7ee547(0x194)],this[_0x7ee547(0x404)]);return _0x1f6aae['_schedule'](),_0x1f6aae['_updateLocalCache'](),_0x1f6aae;}[_0x945337(0x294)](_0x3df7e4){const _0x2f04e4=_0x945337;return this[_0x2f04e4(0x3f5)](!!(_0x3df7e4!=null&&_0x3df7e4[_0x2f04e4(0x3a1)]));}['toggleOffline'](){const _0x323478=_0x945337;return this[_0x323478(0x3dd)]['createInstance'](G,this[_0x323478(0x1da)],this[_0x323478(0x243)],this[_0x323478(0x423)],this[_0x323478(0x194)],this[_0x323478(0x404)]);}[_0x945337(0x267)](){return this;}['resend'](){const _0x38c548=_0x945337;this[_0x38c548(0x404)][_0x38c548(0x468)](this['_awaitingChangeset']);}['_onConflict'](_0xd9a54c){const _0x5d8d62=_0x945337;return this[_0x5d8d62(0x3dd)]['createInstance'](F,this[_0x5d8d62(0x1da)],this['type'],null,this['_pendingMutations'],this[_0x5d8d62(0x404)],_0xd9a54c);}};function _0x38f3(_0xa19542,_0x550d50){const _0x336a95=_0x336a();return _0x38f3=function(_0x38f3d7,_0x35a2f0){_0x38f3d7=_0x38f3d7-0x16e;let _0x122e0c=_0x336a95[_0x38f3d7];return _0x122e0c;},_0x38f3(_0xa19542,_0x550d50);}k=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a['ILogService']),g(0xa,_['ITransformService']),g(0xb,a[_0x945337(0x38b)])],k);let F=class extends J{constructor(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x5667cf=!0x1,_0x36be64,_0x327317,_0x3ebb5e,_0x404f16,_0x99c795,_0x5263fc,_0x465eaa){const _0xf3ef9c=_0x945337;super(_0x2c0c6c,_0x321307,_0x27b5c2,_0x1b3957,_0x9d6c63,_0x327317,_0x3ebb5e,_0x99c795,_0x404f16),d(this,_0xf3ef9c(0x44d),_0xf3ef9c(0x3d3)),(this[_0xf3ef9c(0x260)]=_0x5667cf,this['_permissionService']=_0x36be64,this['_localeService']=_0x5263fc,this[_0xf3ef9c(0x555)]=_0x465eaa,this[_0xf3ef9c(0x250)](),this[_0xf3ef9c(0x313)](),this[_0xf3ef9c(0x53a)]());}[_0x945337(0x561)](){return this;}[_0x945337(0x1d4)](){return this;}[_0x945337(0x344)](){return this;}[_0x945337(0x294)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x945337(0x4a4)](){const _0x5835f7=_0x945337;throw new Error(_0x5835f7(0x1ca));}[_0x945337(0x313)](){const _0x2b4906=_0x945337;this['_localCacheService'][_0x2b4906(0x478)](this[_0x2b4906(0x1da)],this['type'],null,[]);}[_0x945337(0x250)](){const _0x578e0a=_0x945337;this[_0x578e0a(0x260)]?this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x3b6)),'type':_0x578e0a(0x2e8),'duration':0x0}):this[_0x578e0a(0x555)][_0x578e0a(0x411)]({'title':this[_0x578e0a(0x21a)]['t'](_0x578e0a(0x572)),'content':this['_localeService']['t'](_0x578e0a(0x283)),'type':_0x578e0a(0x2e8),'duration':0x0});}[_0x945337(0x53a)](){const _0x375c7b=_0x945337;this[_0x375c7b(0x209)][_0x375c7b(0x470)](new C[(_0x375c7b(0x298))](this[_0x375c7b(0x1da)])['id'],!0x1);}};F=z([g(0x6,a[_0x945337(0x4fa)](a['IPermissionService'])),g(0x7,a['ICommandService']),g(0x8,a[_0x945337(0x38b)]),g(0x9,a['Inject'](exports[_0x945337(0x3a3)])),g(0xa,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),g(0xb,a['Inject'](a[_0x945337(0x299)])),g(0xc,N[_0x945337(0x3a8)])],F);let G=class extends J{constructor(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x5e1f17,_0x3d5725,_0x171831,_0x27df95,_0x322936){const _0x3ad709=_0x945337;super(_0x589141,_0x31ba2d,_0x488c5d,_0x554022,_0x2136cd,_0x27df95,_0x322936,_0x3d5725,_0x171831),d(this,_0x3ad709(0x44d),'offline'),this[_0x3ad709(0x3dd)]=_0x5e1f17;}[_0x945337(0x561)](_0x3fc65a){const _0x15c4de=_0x945337;return this['_pendingMutations'][_0x15c4de(0x3b0)](_0x3fc65a),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x45f0e0){const _0x1da536=_0x945337;throw new Error(_0x1da536(0x4cf));}[_0x945337(0x344)](){const _0x52c831=_0x945337;throw new Error(_0x52c831(0x20b));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x945337(0x506)](){return this;}[_0x945337(0x267)](){const _0x53bcf5=_0x945337,{_injector:_0x18213b,_pendingMutations:_0x57b2a9,_awaitingChangeset:_0x9487a2,unitID:_0x36a44e,_handler:_0x5aaef5,type:_0x75e53}=this,_0x37e066=Rt(_0x18213b,_0x36a44e,_0x75e53,_0x9487a2,_0x57b2a9,_0x5aaef5);return _0x37e066 instanceof x?_0x37e066[_0x53bcf5(0x2bc)]():(_0x37e066 instanceof k||_0x37e066 instanceof W)&&_0x37e066[_0x53bcf5(0x4a4)](),_0x37e066;}[_0x945337(0x4a4)](){const _0x34dedf=_0x945337;throw new Error(_0x34dedf(0x359));}};G=z([g(0x5,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x6,a[_0x945337(0x4fa)](_['RevisionService'])),g(0x7,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),g(0x8,a['ICommandService']),g(0x9,a[_0x945337(0x38b)])],G);let H=class extends J{constructor(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x388801,_0x3e82d9,_0x3fa600,_0x296028,_0x5903c0,_0xca5bf4,_0x288411,_0x4f0a80,_0xdda2af,_0x42ebd0){const _0x4b9f57=_0x945337;super(_0x438696,_0x50d732,_0x41d5a8,_0x331ac6,_0x3fa600,_0x4f0a80,_0xdda2af,_0x5903c0,_0xca5bf4),d(this,_0x4b9f57(0x44d),'fetch_missing'),(this[_0x4b9f57(0x1be)]=_0x388801,this[_0x4b9f57(0x2a7)]=_0x3e82d9,this['_injector']=_0x296028,this[_0x4b9f57(0x4ae)]=_0x288411,this[_0x4b9f57(0x4f2)]=_0x42ebd0);}[_0x945337(0x443)](_0x4bce27){const _0x20fc3e=_0x945337;try{const _0x5bced7=[..._0x4bce27,...this[_0x20fc3e(0x2a7)]],_0x597815=[this[_0x20fc3e(0x423)]||this[_0x20fc3e(0x1be)]]['filter'](_0x3c926e=>!!_0x3c926e);let _0x48ab2f,_0x1d56b5;if(_0x597815[_0x20fc3e(0x3f0)]){const _0x366210=this[_0x20fc3e(0x4f2)]['transformChangesets'](_0x5bced7,_0x597815,!0x1);if(!_['isTransformChangesetsSuccess'](_0x366210))throw _0x366210[_0x20fc3e(0x2e8)];_0x48ab2f=_0x366210[_0x20fc3e(0x44e)],_0x1d56b5=_0x366210[_0x20fc3e(0x4a1)];}else _0x48ab2f=_0x5bced7,_0x1d56b5=[];let _0x8a9a0d=this[_0x20fc3e(0x194)];_0x48ab2f[_0x20fc3e(0x278)](_0x272d23=>{const _0x103dac=_0x20fc3e;let _0x2dbf10;if(_0x8a9a0d[_0x103dac(0x3f0)]){const _0x5c9239=this[_0x103dac(0x4f2)][_0x103dac(0x4df)](_0x272d23,_0x8a9a0d);if(!_[_0x103dac(0x3f7)](_0x5c9239))throw _0x5c9239[_0x103dac(0x2e8)];_0x2dbf10=_0x5c9239[_0x103dac(0x44e)],_0x8a9a0d=_0x5c9239[_0x103dac(0x178)];}else _0x2dbf10=_0x272d23;this[_0x103dac(0x363)](_0x2dbf10);}),this[_0x20fc3e(0x1be)]&&this[_0x20fc3e(0x2d7)](),this[_0x20fc3e(0x423)]&&_0x1d56b5[_0x20fc3e(0x3f0)]&&(_0x1d56b5[0x0]['baseRev']=this[_0x20fc3e(0x1c0)]());let _0x2aedcf;if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0)_0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](k,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],_0x8a9a0d,this['_handler']);else{if(this[_0x20fc3e(0x423)]&&_0x8a9a0d[_0x20fc3e(0x3f0)]===0x0)_0x1d56b5[0x0][_0x20fc3e(0x2f9)]=this[_0x20fc3e(0x1c0)](),_0x2aedcf=this['_injector'][_0x20fc3e(0x39d)](W,this['unitID'],this[_0x20fc3e(0x243)],_0x1d56b5[0x0],this[_0x20fc3e(0x404)]);else{if(_0x8a9a0d[_0x20fc3e(0x3f0)]!==0x0){const _0x1f35b5=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](x,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],_0x8a9a0d,this[_0x20fc3e(0x404)]);_0x1f35b5['_schedule'](),_0x2aedcf=_0x1f35b5;}else _0x2aedcf=this[_0x20fc3e(0x3dd)][_0x20fc3e(0x39d)](se,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x404)]);}}return _0x2aedcf[_0x20fc3e(0x581)](),_0x2aedcf;}catch(_0x204437){return this[_0x20fc3e(0x4ae)][_0x20fc3e(0x2e8)]('[FetchMissState]',_0x20fc3e(0x2fa),_0x204437),this[_0x20fc3e(0x3dd)]['createInstance'](F,this[_0x20fc3e(0x1da)],this[_0x20fc3e(0x243)],this[_0x20fc3e(0x423)],this[_0x20fc3e(0x194)],this[_0x20fc3e(0x404)],!0x1);}}[_0x945337(0x4a4)](){const _0x1e2c27=_0x945337;throw new Error(_0x1e2c27(0x4bb));}['appendMutation'](_0x1f1f4a){const _0x5cb801=_0x945337;return this[_0x5cb801(0x194)]['push'](_0x1f1f4a),this;}[_0x945337(0x1d4)](_0x22b341){const _0x46e446=_0x945337;return this[_0x46e446(0x2a7)]['push'](_0x22b341),this;}[_0x945337(0x344)](_0x1f3b16){const _0x1a9785=_0x945337;if(this[_0x1a9785(0x423)])return this[_0x1a9785(0x1be)]=this[_0x1a9785(0x423)],this[_0x1a9785(0x423)]=null,this;throw new Error(_0x1a9785(0x38f));}['onRemoteRej'](_0x2d5552){const _0x3c993e=_0x945337;return this[_0x3c993e(0x3f5)](!!(_0x2d5552!=null&&_0x2d5552[_0x3c993e(0x3a1)]));}['toggleOffline'](){const _0x3af520=_0x945337;return this[_0x3af520(0x3dd)][_0x3af520(0x39d)](G,this[_0x3af520(0x1da)],this[_0x3af520(0x243)],this[_0x3af520(0x423)],this['_pendingMutations'],this[_0x3af520(0x404)]);}['toggleOnline'](){return this;}[_0x945337(0x3f5)](_0x1975e1){const _0x310b8e=_0x945337;return this[_0x310b8e(0x3dd)][_0x310b8e(0x39d)](F,this[_0x310b8e(0x1da)],this['type'],this[_0x310b8e(0x423)],this[_0x310b8e(0x194)],this['_handler'],_0x1975e1);}};H=z([g(0x7,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),g(0x8,a['Inject'](_[_0x945337(0x574)])),g(0x9,a[_0x945337(0x4fa)](exports['LocalCacheService'])),g(0xa,a[_0x945337(0x48c)]),g(0xb,a[_0x945337(0x400)]),g(0xc,a[_0x945337(0x38b)]),g(0xd,_[_0x945337(0x429)])],H);function Rt(_0x3cc55f,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39){const _0x646f13=_0x945337;return _0x1ab03f&&_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f['createInstance'](k,_0x108087,_0x33c2ae,_0x1ab03f,_0x20b5aa,_0x50ef39):_0x1ab03f?_0x3cc55f['createInstance'](W,_0x108087,_0x33c2ae,_0x1ab03f,_0x50ef39):_0x20b5aa[_0x646f13(0x3f0)]?_0x3cc55f[_0x646f13(0x39d)](x,_0x108087,_0x33c2ae,_0x20b5aa,_0x50ef39):_0x3cc55f[_0x646f13(0x39d)](se,_0x108087,_0x33c2ae,_0x50ef39);}var Hs=Object[_0x945337(0x24b)],xs=Object[_0x945337(0x3e2)],Ke=(_0x1563eb,_0x609d68,_0x5ca567,_0x1c67a8)=>{const _0x4fd08c=_0x945337;for(var _0x2ba57e=_0x1c67a8>0x1?void 0x0:_0x1c67a8?xs(_0x609d68,_0x5ca567):_0x609d68,_0x5aa8cc=_0x1563eb[_0x4fd08c(0x3f0)]-0x1,_0x1e2b81;_0x5aa8cc>=0x0;_0x5aa8cc--)(_0x1e2b81=_0x1563eb[_0x5aa8cc])&&(_0x2ba57e=(_0x1c67a8?_0x1e2b81(_0x609d68,_0x5ca567,_0x2ba57e):_0x1e2b81(_0x2ba57e))||_0x2ba57e);return _0x1c67a8&&_0x2ba57e&&Hs(_0x609d68,_0x5ca567,_0x2ba57e),_0x2ba57e;},I=(_0x5e7b11,_0x240df3)=>(_0x501f55,_0x55c61a)=>_0x240df3(_0x501f55,_0x55c61a,_0x5e7b11);exports[_0x945337(0x23c)]=class extends a[_0x945337(0x538)]{constructor(_0x2c3ace,_0x3953d4,_0x9eb3a3,_0x360998,_0x12d71e,_0x38b1c8,_0x2710de,_0x2b8d6f,_0x569818,_0x39e28e,_0x3d7f0b,_0x55b02d,_0x35981b){const _0x307b68=_0x945337;super(),d(this,'_state$',new v[(_0x307b68(0x52c))](null)),d(this,'state$',this['_state$'][_0x307b68(0x19b)]()),d(this,_0x307b68(0x171)),d(this,_0x307b68(0x3fd),!0x1),d(this,'status$',this['state$'][_0x307b68(0x550)](v[_0x307b68(0x2c1)](_0x32bdcc=>_0x32bdcc?_0x32bdcc[_0x307b68(0x44d)]:y[_0x307b68(0x482)]),v[_0x307b68(0x421)](0x1))),d(this,_0x307b68(0x520),!0x1),d(this,_0x307b68(0x1b7),[]),(this[_0x307b68(0x1da)]=_0x2c3ace,this['session']=_0x3953d4,this[_0x307b68(0x1ad)]=_0x9eb3a3,this[_0x307b68(0x3dd)]=_0x360998,this[_0x307b68(0x576)]=_0x12d71e,this[_0x307b68(0x17f)]=_0x38b1c8,this[_0x307b68(0x21a)]=_0x2710de,this[_0x307b68(0x1df)]=_0x2b8d6f,this[_0x307b68(0x4ae)]=_0x569818,this[_0x307b68(0x256)]=_0x39e28e,this[_0x307b68(0x392)]=_0x3d7f0b,this['_permissionService']=_0x55b02d,this[_0x307b68(0x328)]=_0x35981b);}get[_0x945337(0x198)](){const _0xf663b1=_0x945337;return this[_0xf663b1(0x171)];}async[_0x945337(0x55a)](){const _0x1c1151=_0x945337;if(this[_0x1c1151(0x198)])throw new Error(_0x1c1151(0x1ef));await this[_0x1c1151(0x458)]();}[_0x945337(0x4c4)](){const _0x3ab12c=_0x945337;return this['_collaborationPaused']=!0x0,a[_0x3ab12c(0x296)](()=>{const _0x3d71f3=_0x3ab12c;this[_0x3d71f3(0x3fd)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x945337(0x31a)](_0x5522ee){const _0xbfcf2c=_0x945337;this[_0xbfcf2c(0x171)]=_0x5522ee,this[_0xbfcf2c(0x4fc)]['next'](_0x5522ee);}async['_init'](){const _0x4c65f9=_0x945337;var _0x27eb7d;this[_0x4c65f9(0x31a)](await this['_createInitialState']()),this[_0x4c65f9(0x328)]&&((_0x27eb7d=this[_0x4c65f9(0x328)])==null||_0x27eb7d['editingUnit'](this[_0x4c65f9(0x1da)]),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x328)][_0x4c65f9(0x321)](this[_0x4c65f9(0x1da)])[_0x4c65f9(0x397)](_0x3f3803=>{const _0x4b8882=_0x4c65f9;this[_0x4b8882(0x4ae)]['debug'](_0x4b8882(0x2ad),'editing\x20status\x20changed\x20to',_0x3f3803),_0x3f3803===bt[_0x4b8882(0x2fd)]?(this[_0x4b8882(0x392)][_0x4b8882(0x411)]({'content':this[_0x4b8882(0x21a)]['t'](_0x4b8882(0x402)),'type':X[_0x4b8882(0x367)]['Warning']}),this[_0x4b8882(0x209)]['updatePermissionPoint'](new C[(_0x4b8882(0x298))](this['unitID'])['id'],!0x1)):this[_0x4b8882(0x209)][_0x4b8882(0x470)](new C[(_0x4b8882(0x298))](this[_0x4b8882(0x1da)])['id'],!0x0);})));let _0x31f4c8=!0x1;return this[_0x4c65f9(0x50a)](this['session'][_0x4c65f9(0x37f)]['subscribe'](_0xe27901=>{const _0x48bb62=_0x4c65f9;_0xe27901===$[_0x48bb62(0x42e)]?this[_0x48bb62(0x415)](_0x31f4c8):_0xe27901===$[_0x48bb62(0x482)]&&(_0x31f4c8=!0x0,this['_toggleOffline']());})),this[_0x4c65f9(0x50a)](this[_0x4c65f9(0x318)][_0x4c65f9(0x23f)][_0x4c65f9(0x397)](_0x1de06c=>{const _0x57f627=_0x4c65f9;try{switch(_0x1de06c[_0x57f627(0x170)]){case _[_0x57f627(0x4eb)][_0x57f627(0x3c6)]:{this[_0x57f627(0x1f5)](_['parseProtocolChangeset'](_0x1de06c[_0x57f627(0x375)]));break;}case _['CollaborationEvent'][_0x57f627(0x1f1)]:{this[_0x57f627(0x521)](_0x1de06c['data']);break;}case _[_0x57f627(0x4eb)]['CHANGESET_REJ']:{this[_0x57f627(0x33d)]();break;}case _['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x57f627(0x3f9)](_0x1de06c[_0x57f627(0x375)][_0x57f627(0x37c)][_0x57f627(0x2c1)](_0x334a92=>_[_0x57f627(0x37a)](_0x334a92)));break;}case _['CollaborationEvent'][_0x57f627(0x186)]:this[_0x57f627(0x33d)]({'isPermissionRej':!0x0});}}catch(_0x2a46cf){throw console[_0x57f627(0x2e8)](_0x57f627(0x4a9),_0x2a46cf),_0x2a46cf;}})),this[_0x4c65f9(0x171)];}[_0x945337(0x3b7)](){const _0x1bc813=_0x945337;this[_0x1bc813(0x520)]=!0x1;}[_0x945337(0x4ce)](){const _0x4658d0=_0x945337;if(this[_0x4658d0(0x520)])throw new Error(_0x4658d0(0x29d));this[_0x4658d0(0x520)]=!0x0;}[_0x945337(0x285)](_0x176141){const _0x5510c0=_0x945337;this[_0x5510c0(0x4ce)](),this[_0x5510c0(0x31a)](this['_state'][_0x5510c0(0x561)](_0x176141)),this[_0x5510c0(0x3b7)]();}[_0x945337(0x1f5)](_0x125f82){const _0x53f209=_0x945337;if(!(_0x125f82[_0x53f209(0x289)]<=this[_0x53f209(0x1df)]['getCurrentRevOfUnit'](this[_0x53f209(0x1da)]))){if(this['_collaborationPaused']){this[_0x53f209(0x1b7)]['push'](_0x125f82);return;}this[_0x53f209(0x2ff)](_0x125f82);}}['_exhaustRemoteChangesetQueue'](){const _0x3352e0=_0x945337;this[_0x3352e0(0x1b7)][_0x3352e0(0x278)](_0x415814=>this['_applyRemoteChangeset'](_0x415814)),this[_0x3352e0(0x1b7)]=[];}[_0x945337(0x2ff)](_0x1b352d){const _0x2c9135=_0x945337,_0x1b82b4=this['_compressMutationService'][_0x2c9135(0x3b9)]['fetchThroughInterceptors'](this[_0x2c9135(0x17f)][_0x2c9135(0x3b9)]['getInterceptPoints']()[_0x2c9135(0x361)])(_0x1b352d[_0x2c9135(0x435)],null)||_0x1b352d[_0x2c9135(0x435)],_0x30e2cb={..._0x1b352d,'mutations':_0x1b82b4};this[_0x2c9135(0x4ce)](),this[_0x2c9135(0x31a)](this[_0x2c9135(0x171)]['onRemoteChangeset'](_0x30e2cb)),this[_0x2c9135(0x3b7)]();}[_0x945337(0x521)](_0x19f2f6){const _0x16468e=_0x945337;this['_lockTransition'](),this[_0x16468e(0x31a)](this['_state'][_0x16468e(0x344)](_0x19f2f6)),this[_0x16468e(0x3b7)]();}['_onRemoteRejected'](_0xf9236d){const _0x4a1903=_0x945337;this['_lockTransition'](),this['_updateState'](this['_state'][_0x4a1903(0x294)](_0xf9236d)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3d7547){const _0x5adbf4=_0x945337;if(!(this[_0x5adbf4(0x171)]instanceof H))throw new TypeError(_0x5adbf4(0x311));const _0x32eeb3=_0x3d7547[_0x5adbf4(0x2c1)](_0x127ebd=>{const _0x48ddf9=_0x5adbf4,_0x29265b=this[_0x48ddf9(0x17f)][_0x48ddf9(0x3b9)][_0x48ddf9(0x40a)](this['_compressMutationService']['interceptor'][_0x48ddf9(0x1a8)]()[_0x48ddf9(0x361)])(_0x127ebd[_0x48ddf9(0x435)],null)||_0x127ebd[_0x48ddf9(0x435)];return{..._0x127ebd,'mutations':_0x29265b};});this[_0x5adbf4(0x4ce)](),this[_0x5adbf4(0x31a)](this[_0x5adbf4(0x171)]['onMissedChangesetFetched'](_0x32eeb3)),this[_0x5adbf4(0x3b7)]();}['_toggleOffline'](){const _0x48076e=_0x945337;this['_lockTransition'](),this[_0x48076e(0x31a)](this[_0x48076e(0x171)]['toggleOffline']()),this['_unlockTransition']();}[_0x945337(0x415)](_0x321225=!0x1){const _0x4669cd=_0x945337;this[_0x4669cd(0x4ce)](),this['_updateState'](this[_0x4669cd(0x171)][_0x4669cd(0x267)]()),this[_0x4669cd(0x3b7)]();const _0x43552b=this[_0x4669cd(0x171)];_0x321225&&_0x43552b instanceof se&&(this[_0x4669cd(0x4ce)](),this[_0x4669cd(0x31a)](_0x43552b[_0x4669cd(0x2e2)]()),this[_0x4669cd(0x3b7)]());}async[_0x945337(0x4e7)](){return new Promise(_0x24c48d=>{const _0x288091=_0x38f3;this[_0x288091(0x318)][_0x288091(0x37f)][_0x288091(0x550)](v[_0x288091(0x551)](0x1))[_0x288091(0x397)](async _0x1fc791=>{const _0x50ac68=_0x288091;_0x24c48d(await this[_0x50ac68(0x48a)](_0x1fc791===$[_0x50ac68(0x42e)]));});});}['_createHandler'](){const _0x1e35be=_0x945337,_0x592502=this[_0x1e35be(0x1da)];return{'onStateChange':(_0x2f95f8,_0x214f83)=>{const _0x5acd4d=_0x1e35be;if(_0x2f95f8!==this['_state'])throw new Error(_0x5acd4d(0x261)+_0x2f95f8[_0x5acd4d(0x44d)]+_0x5acd4d(0x40f)+_0x214f83[_0x5acd4d(0x44d)]+_0x5acd4d(0x47f)+this['_state']['status']);this[_0x5acd4d(0x31a)](_0x214f83);},'onSendChangeset':_0x6996bb=>{const _0x2f5ae7=_0x1e35be,_0x18e6d6={'eventID':_[_0x2f5ae7(0x4eb)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x6996bb[_0x2f5ae7(0x1da)],'unitType':this['_type'],'changeset':_0x6996bb,'memberID':this[_0x2f5ae7(0x318)][_0x2f5ae7(0x56a)]()}};this[_0x2f5ae7(0x318)]['send'](_0x18e6d6,this[_0x2f5ae7(0x1da)]);},'onMissingChangesets':({from:_0x1d89c6,to:_0x4e4e05})=>{const _0x93867a=_0x1e35be;this[_0x93867a(0x4ae)]['debug']('[CollaborationEntity]',_0x93867a(0x28c)+_0x1d89c6+'\x20to\x20'+_0x4e4e05);const _0x313f58={'eventID':_[_0x93867a(0x4eb)][_0x93867a(0x51d)],'data':{'unitID':_0x592502,'unitType':this[_0x93867a(0x1ad)],'from':_0x1d89c6,'to':_0x4e4e05}};this['session'][_0x93867a(0x2a2)](_0x313f58,this[_0x93867a(0x1da)]);}};}async[_0x945337(0x48a)](_0x26b6c9){const _0x35ba3e=_0x945337;var _0x7ad0f4,_0x1b7449;const _0x579e62=await this[_0x35ba3e(0x576)]['loadOfflineData'](this[_0x35ba3e(0x1da)]),_0x190cfc=(_0x7ad0f4=_0x579e62==null?void 0x0:_0x579e62[_0x35ba3e(0x435)])!=null?_0x7ad0f4:[],_0x3f2100=(_0x1b7449=_0x579e62==null?void 0x0:_0x579e62['awaitingChangeset'])!=null?_0x1b7449:null,_0x12b822=this[_0x35ba3e(0x1da)];try{this[_0x35ba3e(0x4cb)](_0x3f2100,_0x190cfc);}catch(_0x48728a){this[_0x35ba3e(0x4ae)][_0x35ba3e(0x2e8)](_0x48728a);}const _0x1ac125=this[_0x35ba3e(0x19c)]();if(_0x26b6c9){const _0x4bdeb1=Rt(this['_injector'],_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);return _0x4bdeb1 instanceof x?_0x4bdeb1[_0x35ba3e(0x2bc)]():(_0x4bdeb1 instanceof k||_0x4bdeb1 instanceof W)&&_0x4bdeb1[_0x35ba3e(0x4a4)](),_0x4bdeb1;}return this[_0x35ba3e(0x3dd)][_0x35ba3e(0x39d)](G,_0x12b822,this[_0x35ba3e(0x1ad)],_0x3f2100,_0x190cfc,_0x1ac125);}[_0x945337(0x4cb)](_0x4d80e6,_0x248a14){const _0xa00741=_0x945337;var _0x2f8d55,_0x286cd7;const _0x2fdfc1=this[_0xa00741(0x17f)]['interceptor']['fetchThroughInterceptors'](this[_0xa00741(0x17f)]['interceptor'][_0xa00741(0x1a8)]()['COMPRESS_MUTATION_APPLY']);(_0x2f8d55=_0x2fdfc1((_0x4d80e6==null?void 0x0:_0x4d80e6['mutations'])||[],null))==null||_0x2f8d55[_0xa00741(0x278)](_0xecef79=>this['_commandService'][_0xa00741(0x505)](_0xecef79['id'],_0xecef79['params'])),(_0x286cd7=_0x2fdfc1(_0x248a14||[],null))==null||_0x286cd7[_0xa00741(0x278)](_0x1c42d6=>this['_commandService'][_0xa00741(0x505)](_0x1c42d6['id'],_0x1c42d6['params']));}},exports[_0x945337(0x23c)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_[_0x945337(0x574)])),I(0x8,a[_0x945337(0x48c)]),I(0x9,a[_0x945337(0x400)]),I(0xa,N[_0x945337(0x2b2)]),I(0xb,a[_0x945337(0x414)]),I(0xc,a[_0x945337(0x188)](be))],exports[_0x945337(0x23c)]),exports[_0x945337(0x295)]=class extends exports[_0x945337(0x23c)]{constructor(_0x3c3197,_0x266a60,_0x29313d,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x4a8e8d,_0x2f58a5,_0xf52646,_0x202d15,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1){const _0xd401a3=_0x945337;super(_0x3c3197,_0x29313d,_0x266a60,_0x18e83f,_0x1ff179,_0x33b66d,_0x3b44a4,_0x503768,_0x10e043,_0x48655b,_0x2b3f3b,_0x16d3c6,_0x1cbdb1),this[_0xd401a3(0x1da)]=_0x3c3197,this[_0xd401a3(0x243)]=_0x266a60,this[_0xd401a3(0x182)]=_0x4a8e8d,this[_0xd401a3(0x172)]=_0x2f58a5,this['_docTransformSelectionsService']=_0xf52646,this[_0xd401a3(0x25e)]=_0x202d15;}['_createHandler'](){const _0x222aa2=_0x945337,_0x320040=super['_createHandler']();return _0x320040[_0x222aa2(0x3d2)]=_0x412ed5=>this[_0x222aa2(0x172)][_0x222aa2(0x1d1)](_0x412ed5),_0x320040[_0x222aa2(0x454)]=_0x1f4115=>this['_docTransformSelectionsService'][_0x222aa2(0x463)](_0x1f4115),_0x320040['onSyncEditingCollabCursor']=_0xaa5985=>this[_0x222aa2(0x25e)][_0x222aa2(0x271)](_0xaa5985),_0x320040[_0x222aa2(0x1b1)]=_0x48b627=>this[_0x222aa2(0x172)]['transformRemoteChangeset'](_0x48b627),_0x320040;}async[_0x945337(0x458)](){const _0x3b1302=_0x945337,_0x50ad2=await super[_0x3b1302(0x458)]();return this[_0x3b1302(0x50a)](this[_0x3b1302(0x256)][_0x3b1302(0x3ad)]((_0x134e90,_0x3795d9)=>{const _0x3fe17e=_0x3b1302;if(_0x134e90[_0x3fe17e(0x243)]!==a[_0x3fe17e(0x2fb)][_0x3fe17e(0x36f)]||_0x3795d9!=null&&_0x3795d9['fromCollab']||_0x3795d9!=null&&_0x3795d9[_0x3fe17e(0x1f0)])return;const _0x1ff5a7=_0x134e90['params'];if((_0x1ff5a7==null?void 0x0:_0x1ff5a7[_0x3fe17e(0x212)])!==this[_0x3fe17e(0x1da)])return;let _0x21cf37=_0x134e90;if(_0x21cf37['id']===V[_0x3fe17e(0x316)]['id']){const _0xf675ed=_0x21cf37[_0x3fe17e(0x17c)];_0x21cf37={'id':V[_0x3fe17e(0x316)]['id'],'type':a[_0x3fe17e(0x2fb)]['MUTATION'],'params':{'unitId':_0xf675ed[_0x3fe17e(0x212)],'actions':_0xf675ed[_0x3fe17e(0x3ef)],'textRanges':null}};}const _0x474aed=this['_compressMutationService']['interceptor'][_0x3fe17e(0x40a)](this[_0x3fe17e(0x17f)][_0x3fe17e(0x3b9)][_0x3fe17e(0x1a8)]()[_0x3fe17e(0x4c2)])([_0x21cf37],null)||[_0x21cf37];this[_0x3fe17e(0x285)](_0x474aed[0x0]);})),_0x50ad2;}},exports[_0x945337(0x295)]=Ke([I(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a['Inject'](_['CompressMutationService'])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](w['DocStateChangeManagerService'])),I(0x9,a[_0x945337(0x4fa)](fe)),I(0xa,a[_0x945337(0x4fa)](me)),I(0xb,a['Inject'](Ye)),I(0xc,a[_0x945337(0x48c)]),I(0xd,a['ICommandService']),I(0xe,N['IMessageService']),I(0xf,a[_0x945337(0x414)]),I(0x10,a[_0x945337(0x188)](be))],exports['DocCollaborationEntity']),exports['SheetCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x423f82,_0x37ab75,_0x21be21,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x3e3ae2,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a){const _0x50ec23=_0x945337;super(_0x423f82,_0x21be21,_0x37ab75,_0x5be169,_0x3244f4,_0x4a8b40,_0x4cf9fd,_0x33e71c,_0x5e65ed,_0x448007,_0xd415d6,_0x5cafb0,_0x54ca1a),this[_0x50ec23(0x1da)]=_0x423f82,this['type']=_0x37ab75,this[_0x50ec23(0x50c)]=_0x3e3ae2;}[_0x945337(0x19c)](){const _0x52a489=_0x945337,_0x533f4a=super[_0x52a489(0x19c)]();return _0x533f4a[_0x52a489(0x454)]=_0x225d00=>this[_0x52a489(0x50c)][_0x52a489(0x463)](_0x225d00),_0x533f4a;}async[_0x945337(0x458)](){const _0x2c0c3c=_0x945337,_0xf8df4f=await super[_0x2c0c3c(0x458)]();return this[_0x2c0c3c(0x50a)](this[_0x2c0c3c(0x256)][_0x2c0c3c(0x3ad)]((_0x317709,_0x7ee253)=>{const _0x28311a=_0x2c0c3c;if(_0x317709['type']!==a[_0x28311a(0x2fb)][_0x28311a(0x36f)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x4aa)]||_0x7ee253!=null&&_0x7ee253[_0x28311a(0x1f0)])return;const _0x42dea1=_0x317709['params'];if((_0x42dea1==null?void 0x0:_0x42dea1[_0x28311a(0x212)])!==this[_0x28311a(0x1da)])return;const _0x64b0b7=_0x317709,_0x30fae1=this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x40a)](this[_0x28311a(0x17f)][_0x28311a(0x3b9)][_0x28311a(0x1a8)]()[_0x28311a(0x4c2)])([_0x64b0b7],null)||[_0x64b0b7];this['_onLocalMutation'](_0x30fae1[0x0]);})),_0xf8df4f;}},exports[_0x945337(0x4dd)]=Ke([I(0x3,a['Inject'](a[_0x945337(0x2b5)])),I(0x4,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),I(0x5,a[_0x945337(0x4fa)](_[_0x945337(0x1aa)])),I(0x6,a[_0x945337(0x4fa)](a[_0x945337(0x299)])),I(0x7,a[_0x945337(0x4fa)](_['RevisionService'])),I(0x8,a[_0x945337(0x4fa)](ge)),I(0x9,a[_0x945337(0x48c)]),I(0xa,a[_0x945337(0x400)]),I(0xb,N[_0x945337(0x2b2)]),I(0xc,a[_0x945337(0x414)]),I(0xd,a['Optional'](be))],exports[_0x945337(0x4dd)]);var ks=Object[_0x945337(0x24b)],Bs=Object[_0x945337(0x3e2)],Vs=(_0xc7f3ce,_0x171703,_0x320c42,_0xae8f68)=>{const _0x2c1d76=_0x945337;for(var _0x24e668=_0xae8f68>0x1?void 0x0:_0xae8f68?Bs(_0x171703,_0x320c42):_0x171703,_0x4d865b=_0xc7f3ce[_0x2c1d76(0x3f0)]-0x1,_0x4bae11;_0x4d865b>=0x0;_0x4d865b--)(_0x4bae11=_0xc7f3ce[_0x4d865b])&&(_0x24e668=(_0xae8f68?_0x4bae11(_0x171703,_0x320c42,_0x24e668):_0x4bae11(_0x24e668))||_0x24e668);return _0xae8f68&&_0x24e668&&ks(_0x171703,_0x320c42,_0x24e668),_0x24e668;},Ue=(_0x30842e,_0x12fe95)=>(_0x545fc1,_0x3f440b)=>_0x12fe95(_0x545fc1,_0x3f440b,_0x30842e);exports[_0x945337(0x4ee)]=class extends a[_0x945337(0x538)]{constructor(_0x3133d4,_0x45e489,_0x3dfd26){const _0x10a16f=_0x945337;super(),d(this,_0x10a16f(0x565),new Map()),d(this,_0x10a16f(0x32d),new v[(_0x10a16f(0x36e))]()),(this[_0x10a16f(0x3dd)]=_0x3133d4,this['_collabSessionService']=_0x45e489,this[_0x10a16f(0x337)]=_0x3dfd26,this[_0x10a16f(0x458)]());}[_0x945337(0x1eb)](){const _0x5c7c0b=_0x945337;super[_0x5c7c0b(0x1eb)](),this[_0x5c7c0b(0x565)][_0x5c7c0b(0x278)](_0x368c07=>_0x368c07[_0x5c7c0b(0x1eb)]()),this[_0x5c7c0b(0x565)]['clear']();}[_0x945337(0x27d)](_0x16666e){var _0x2c37a8;return(_0x2c37a8=this['_entities']['get'](_0x16666e))!=null?_0x2c37a8:null;}[_0x945337(0x4b1)](_0x40b5bd){const _0x5e657d=_0x945337,_0x1fd78b=this[_0x5e657d(0x27d)](_0x40b5bd);return _0x1fd78b?v['of'](_0x1fd78b):this[_0x5e657d(0x32d)][_0x5e657d(0x550)](E[_0x5e657d(0x1dc)](_0x7cf465=>_0x7cf465[_0x5e657d(0x1da)]===_0x40b5bd));}[_0x945337(0x458)](){const _0x28d98d=_0x945337;this['_univerInstanceService'][_0x28d98d(0x51e)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))[_0x28d98d(0x397)](async _0x4e5040=>{const _0x57be5c=_0x28d98d,_0x5eeda3=_0x4e5040[_0x57be5c(0x352)](),_0x5216dc=await this[_0x57be5c(0x417)](_0x5eeda3,j[_0x57be5c(0x53c)]);this[_0x57be5c(0x565)]['set'](_0x5eeda3,_0x5216dc);}),this[_0x28d98d(0x337)]['getTypeOfUnitAdded$'](a[_0x28d98d(0x3b1)]['UNIVER_DOC'])['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]),E[_0x28d98d(0x4d7)](0x10))['pipe'](E[_0x28d98d(0x1dc)](_0x1712b7=>!_0x1712b7[_0x28d98d(0x352)]()[_0x28d98d(0x2aa)]('__')))[_0x28d98d(0x397)](async _0x319efc=>{const _0x4537d9=_0x28d98d,_0x2f2e5e=_0x319efc[_0x4537d9(0x352)](),_0x3ebbe5=await this['_startCollaboration'](_0x2f2e5e,j[_0x4537d9(0x395)]);this[_0x4537d9(0x565)][_0x4537d9(0x4a8)](_0x2f2e5e,_0x3ebbe5);}),v[_0x28d98d(0x515)](this[_0x28d98d(0x337)][_0x28d98d(0x18e)](a[_0x28d98d(0x3b1)]['UNIVER_SHEET']),this[_0x28d98d(0x337)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](v[_0x28d98d(0x43c)](this[_0x28d98d(0x2ec)]))[_0x28d98d(0x397)](_0x33a15a=>{const _0x5f3841=_0x28d98d,_0x4c69fd=_0x33a15a[_0x5f3841(0x352)](),_0xc5d13e=this[_0x5f3841(0x565)]['get'](_0x4c69fd);_0xc5d13e&&(_0xc5d13e[_0x5f3841(0x1eb)](),this['_entities']['delete'](_0x4c69fd));});}async[_0x945337(0x417)](_0x25ddc8,_0x5f0857){const _0x3c7c51=_0x945337,_0x40fb39=await this[_0x3c7c51(0x407)][_0x3c7c51(0x369)](_0x25ddc8),_0x25b29a=this['_injector'][_0x3c7c51(0x39d)](this[_0x3c7c51(0x16f)](_0x5f0857),_0x25ddc8,_0x5f0857,_0x40fb39);return await _0x25b29a[_0x3c7c51(0x55a)](),this['_entityInit$'][_0x3c7c51(0x3ca)](_0x25b29a),_0x25b29a;}['_getCtorByUniverType'](_0x121c7f){const _0x509c26=_0x945337;switch(_0x121c7f){case j[_0x509c26(0x395)]:return exports[_0x509c26(0x295)];case j[_0x509c26(0x53c)]:return exports[_0x509c26(0x4dd)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x121c7f);}}},exports[_0x945337(0x4ee)]=Vs([Ue(0x0,a['Inject'](a[_0x945337(0x2b5)])),Ue(0x1,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),Ue(0x2,a[_0x945337(0x57b)])],exports[_0x945337(0x4ee)]);const nt=[_0x945337(0x46f),_0x945337(0x3c0),_0x945337(0x4a6),'red300',_0x945337(0x3a4),'gold400'];class Xe extends a[_0x945337(0x45b)]{constructor(){const _0x3cd7c7=_0x945337;super(...arguments),d(this,_0x3cd7c7(0x502),new Map()),d(this,_0x3cd7c7(0x286),0x0);}['assignAColorForMemberID'](_0x1157e1){const _0xc61de6=_0x945337;if(this[_0xc61de6(0x502)][_0xc61de6(0x384)](_0x1157e1))return this[_0xc61de6(0x502)]['get'](_0x1157e1);const _0x36eb06=nt[this['_colorIndex']];return this[_0xc61de6(0x286)]=(this[_0xc61de6(0x286)]+0x1)%nt[_0xc61de6(0x3f0)],this[_0xc61de6(0x502)][_0xc61de6(0x4a8)](_0x1157e1,_0x36eb06),_0x36eb06;}}var Ws=Object[_0x945337(0x24b)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x234042,_0xd5e2dc,_0xb8883b,_0x44a596)=>{const _0x12d550=_0x945337;for(var _0x3f4a43=_0x44a596>0x1?void 0x0:_0x44a596?Fs(_0xd5e2dc,_0xb8883b):_0xd5e2dc,_0x47d166=_0x234042[_0x12d550(0x3f0)]-0x1,_0x41dc7e;_0x47d166>=0x0;_0x47d166--)(_0x41dc7e=_0x234042[_0x47d166])&&(_0x3f4a43=(_0x44a596?_0x41dc7e(_0xd5e2dc,_0xb8883b,_0x3f4a43):_0x41dc7e(_0x3f4a43))||_0x3f4a43);return _0x44a596&&_0x3f4a43&&Ws(_0xd5e2dc,_0xb8883b,_0x3f4a43),_0x3f4a43;},K=(_0x31d690,_0x5d74f9)=>(_0x376657,_0xe85349)=>_0x5d74f9(_0x376657,_0xe85349,_0x31d690);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x945337(0x538)]{constructor(_0x490813,_0x2bedb3,_0x539af8,_0xf61bb2,_0x4d4f9d,_0x2def9e,_0x303577,_0x57240d,_0x5120a6){const _0x3e2284=_0x945337;super(),d(this,_0x3e2284(0x270),!0x1),d(this,_0x3e2284(0x458),!0x1),d(this,_0x3e2284(0x4bc),new v[(_0x3e2284(0x52c))](new Map())),d(this,_0x3e2284(0x247),this[_0x3e2284(0x4bc)][_0x3e2284(0x19b)]()),d(this,'_roomMembers$',new v[(_0x3e2284(0x52c))]([])),d(this,_0x3e2284(0x493),this[_0x3e2284(0x228)]['pipe'](v[_0x3e2284(0x3ee)](Ys))),d(this,_0x3e2284(0x4a7),a[_0x3e2284(0x49c)](_0x3198a6=>{const _0x54a9b0=_0x3e2284,_0x5d2602={'eventID':_['CollaborationEvent'][_0x54a9b0(0x206)],'data':{'unitID':this[_0x54a9b0(0x1da)],'memberID':this[_0x54a9b0(0x1e9)][_0x54a9b0(0x56a)](),'selection':Tt(_0x3198a6)}};this[_0x54a9b0(0x1e9)]['send'](_0x5d2602,this[_0x54a9b0(0x1da)]);},Ks)),(this[_0x3e2284(0x1da)]=_0x490813,this[_0x3e2284(0x1e9)]=_0x2bedb3,this[_0x3e2284(0x3dd)]=_0x539af8,this['_colorAssignService']=_0xf61bb2,this[_0x3e2284(0x526)]=_0x4d4f9d,this['_syncEditingCollabCursorService']=_0x2def9e,this[_0x3e2284(0x4f2)]=_0x303577,this['_univerInstanceService']=_0x57240d,this['_commandService']=_0x5120a6);}get[_0x945337(0x496)](){const _0x300f74=_0x945337;return this['_cursorInfo$'][_0x300f74(0x2d6)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x945337(0x1eb)](){const _0x24ee13=_0x945337;super[_0x24ee13(0x1eb)](),this['_cursorInfo$'][_0x24ee13(0x3ca)](new Map()),this['_cursorInfo$'][_0x24ee13(0x531)](),this[_0x24ee13(0x228)][_0x24ee13(0x3ca)]([]),this['_roomMembers$'][_0x24ee13(0x531)]();}[_0x945337(0x55a)](){const _0x458d97=_0x945337;this[_0x458d97(0x458)]||(this[_0x458d97(0x458)]=!0x0,this['_session'][_0x458d97(0x37f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x5a6e1d=>{const _0x2c869e=_0x458d97;_0x5a6e1d===$[_0x2c869e(0x42e)]?this[_0x2c869e(0x415)]():this[_0x2c869e(0x218)]();}),this[_0x458d97(0x1e9)][_0x458d97(0x23f)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this['dispose$']))[_0x458d97(0x397)](_0x1687f2=>{const _0x451c2a=_0x458d97,_0x41e54c=_0x1687f2['eventID'];_0x41e54c===_['CollaborationEvent']['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1687f2),_0x41e54c===_[_0x451c2a(0x4eb)][_0x451c2a(0x3cb)]&&this[_0x451c2a(0x210)](_0x1687f2);}),this[_0x458d97(0x50a)](this[_0x458d97(0x256)]['onCommandExecuted'](_0x19f83a=>{const _0xfce9ee=_0x458d97,_0x5d8c5c=_0x19f83a[_0xfce9ee(0x17c)];_0x5d8c5c!=null&&this[_0xfce9ee(0x270)]&&_0x19f83a['id']===V['SetTextSelectionsOperation']['id']&&_0x5d8c5c[_0xfce9ee(0x212)]===this[_0xfce9ee(0x1da)]&&_0x5d8c5c[_0xfce9ee(0x571)]===!0x1&&this['_updateLocalCursor'](_0x5d8c5c[_0xfce9ee(0x542)]);})),this['_syncEditingCollabCursorService'][_0x458d97(0x23e)][_0x458d97(0x550)](v[_0x458d97(0x43c)](this[_0x458d97(0x2ec)]))[_0x458d97(0x397)](_0x8aab4a=>{const _0x3255f3=_0x458d97;if((_0x8aab4a==null?void 0x0:_0x8aab4a['unitID'])!==this[_0x3255f3(0x1da)])return;const _0x4e8667={'eventID':_[_0x3255f3(0x4eb)][_0x3255f3(0x206)],'data':_0x8aab4a};this[_0x3255f3(0x1b8)](_0x4e8667);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x2895ff=>{const _0x4976d7=_0x458d97;if(_0x2895ff['params']==null)return;const _0x1d2db8=_0x2895ff[_0x4976d7(0x17c)];if(_0x2895ff['id']!==V['RichTextEditingMutation']['id']||_0x1d2db8[_0x4976d7(0x212)]!==this[_0x4976d7(0x1da)])return;const _0x56d60b={'id':_0x4976d7(0x333),'params':_0x1d2db8},_0x5f353e=this[_0x4976d7(0x496)];for(const [_0x2cb237,_0x342db8]of _0x5f353e){const _0xe44a35={'id':_0x4976d7(0x333),'params':{'unitId':this[_0x4976d7(0x1da)],'actions':null,'textRanges':_0x342db8[_0x4976d7(0x542)]}},_0xcc5c89=this[_0x4976d7(0x4f2)][_0x4976d7(0x34c)](_0x56d60b,_0xe44a35,!0x1);if(_[_0x4976d7(0x420)](_0xcc5c89))throw _0xcc5c89[_0x4976d7(0x2e8)];_0x5f353e['set'](_0x2cb237,{..._0x342db8,'ranges':_0xcc5c89[_0x4976d7(0x178)][_0x4976d7(0x17c)][_0x4976d7(0x485)]});}queueMicrotask(()=>{const _0x184d4b=_0x4976d7;this[_0x184d4b(0x4bc)][_0x184d4b(0x3ca)](_0x5f353e);});})));}['_onCursorUpdate'](_0x2eb5a1){const _0x104cf8=_0x945337;var _0x4144da,_0x2cf84b;const {memberID:_0x4377f4,selection:_0x31c8bc}=_0x2eb5a1[_0x104cf8(0x375)],_0x32ae7b=Us(_0x31c8bc),_0x166ccc=(_0x2cf84b=(_0x4144da=this[_0x104cf8(0x526)][_0x104cf8(0x467)](this[_0x104cf8(0x1da)],_0x4377f4))==null?void 0x0:_0x4144da[_0x104cf8(0x508)])!=null?_0x2cf84b:_0x104cf8(0x3c2),_0x277ec2={'color':this['_colorAssignService'][_0x104cf8(0x2ac)](_0x4377f4),'name':_0x166ccc,'ranges':_0x32ae7b},_0x493e96=this['cursorInfo'];_0x493e96[_0x104cf8(0x4a8)](_0x4377f4,_0x277ec2),this[_0x104cf8(0x4bc)][_0x104cf8(0x3ca)](_0x493e96);}[_0x945337(0x210)](_0x4c474f){const _0x3a13bc=_0x945337,{memberID:_0x35dd51}=_0x4c474f[_0x3a13bc(0x375)],_0x1505bf=this['cursorInfo'];_0x1505bf[_0x3a13bc(0x532)](_0x35dd51),this['_cursorInfo$'][_0x3a13bc(0x3ca)](_0x1505bf);}[_0x945337(0x415)](){const _0x299005=_0x945337;var _0x2766fc;if(this['_online']=!0x0,((_0x2766fc=this[_0x299005(0x337)][_0x299005(0x255)]())==null?void 0x0:_0x2766fc[_0x299005(0x352)]())!==this[_0x299005(0x1da)])return;const _0x573078=this[_0x299005(0x3dd)][_0x299005(0x3eb)](V['DocSelectionManagerService'])['getDocRanges']();Array[_0x299005(0x48e)](_0x573078)&&_0x573078[_0x299005(0x3f0)]>0x0&&this[_0x299005(0x4a7)](_0x573078);}['_toggleOffline'](){const _0x236c96=_0x945337;this[_0x236c96(0x270)]=!0x1;}};$e=Gs([K(0x2,a[_0x945337(0x4fa)](a['Injector'])),K(0x3,a[_0x945337(0x4fa)](Xe)),K(0x4,a[_0x945337(0x4fa)](q)),K(0x5,a[_0x945337(0x4fa)](Ye)),K(0x6,_[_0x945337(0x429)]),K(0x7,a['IUniverInstanceService']),K(0x8,a[_0x945337(0x400)])],$e);var Xs=Object[_0x945337(0x24b)],qs=Object[_0x945337(0x3e2)],zs=(_0x17336c,_0x507f83,_0x2e536a,_0x443758)=>{for(var _0x41bacd=_0x443758>0x1?void 0x0:_0x443758?qs(_0x507f83,_0x2e536a):_0x507f83,_0x4720f9=_0x17336c['length']-0x1,_0xf2b72b;_0x4720f9>=0x0;_0x4720f9--)(_0xf2b72b=_0x17336c[_0x4720f9])&&(_0x41bacd=(_0x443758?_0xf2b72b(_0x507f83,_0x2e536a,_0x41bacd):_0xf2b72b(_0x41bacd))||_0x41bacd);return _0x443758&&_0x41bacd&&Xs(_0x507f83,_0x2e536a,_0x41bacd),_0x41bacd;},Q=(_0x3a087c,_0xfd9136)=>(_0x304a32,_0x19ea31)=>_0xfd9136(_0x304a32,_0x19ea31,_0x3a087c);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x2b6685=[],_0x4cf71b=!0x1;return _0x5da6c2=>{const _0x1743f5=_0x38f3;_0x2b6685[_0x1743f5(0x3b0)](_0x5da6c2),_0x4cf71b||(_0x4cf71b=!0x0,setTimeout(()=>{const _0x5308f4=_0x1743f5;_0x2b6685[_0x5308f4(0x278)](_0x549e81=>_0x549e81()),_0x2b6685=[],_0x4cf71b=!0x1;}));};};let He=class extends a[_0x945337(0x538)]{constructor(_0x35d5a3,_0x3e80cb,_0x438a85,_0x4311f4,_0x3ee91f,_0x427a2c,_0x3ad57b,_0x41c2c2){const _0x5a1c4f=_0x945337;super(),d(this,_0x5a1c4f(0x270),!0x1),d(this,'_init',!0x1),d(this,_0x5a1c4f(0x4bc),new v['BehaviorSubject'](new Map())),d(this,_0x5a1c4f(0x247),this[_0x5a1c4f(0x4bc)][_0x5a1c4f(0x19b)]()),d(this,_0x5a1c4f(0x228),new v['BehaviorSubject']([])),d(this,_0x5a1c4f(0x493),this['_roomMembers$'][_0x5a1c4f(0x550)](v[_0x5a1c4f(0x3ee)](Js))),d(this,_0x5a1c4f(0x4a7),a[_0x5a1c4f(0x49c)]((_0x1879bb,_0x578cba)=>{const _0xe8c8a=_0x5a1c4f,_0x2807ed={'eventID':_[_0xe8c8a(0x4eb)][_0xe8c8a(0x206)],'data':{'unitID':this[_0xe8c8a(0x1da)],'memberID':this[_0xe8c8a(0x1e9)][_0xe8c8a(0x56a)](),'selection':Je[_0xe8c8a(0x251)](_0x1879bb,_0x578cba[_0xe8c8a(0x25a)])}};this[_0xe8c8a(0x1e9)][_0xe8c8a(0x2a2)](_0x2807ed,this[_0xe8c8a(0x1da)]);},Zs)),(this['unitID']=_0x35d5a3,this['_session']=_0x3e80cb,this[_0x5a1c4f(0x3dd)]=_0x438a85,this['_colorAssignService']=_0x4311f4,this['_memberService']=_0x3ee91f,this['_univerInstanceService']=_0x427a2c,this[_0x5a1c4f(0x256)]=_0x3ad57b,this[_0x5a1c4f(0x385)]=_0x41c2c2);}get[_0x945337(0x496)](){const _0x3ddf53=_0x945337;return this[_0x3ddf53(0x4bc)][_0x3ddf53(0x2d6)]();}get['roomMembers'](){const _0x3542d2=_0x945337;return this[_0x3542d2(0x228)]['getValue']();}['dispose'](){const _0x1c2937=_0x945337;super[_0x1c2937(0x1eb)](),this['_cursorInfo$'][_0x1c2937(0x3ca)](new Map()),this[_0x1c2937(0x4bc)][_0x1c2937(0x531)](),this[_0x1c2937(0x228)]['next']([]),this[_0x1c2937(0x228)]['complete']();}['init'](){const _0x57bc12=_0x945337;this['_init']||(this[_0x57bc12(0x458)]=!0x0,this[_0x57bc12(0x1e9)][_0x57bc12(0x37f)]['pipe'](v['takeUntil'](this['dispose$']))[_0x57bc12(0x397)](_0x34a446=>{const _0x2f17f7=_0x57bc12;_0x34a446===$['ONLINE']?this[_0x2f17f7(0x415)]():this[_0x2f17f7(0x218)]();}),this[_0x57bc12(0x1e9)][_0x57bc12(0x23f)][_0x57bc12(0x550)](v[_0x57bc12(0x43c)](this[_0x57bc12(0x2ec)]))['subscribe'](_0x41ec47=>{const _0x2e5cbe=_0x57bc12,_0x1d591b=_0x41ec47[_0x2e5cbe(0x170)];_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x206)]&&this[_0x2e5cbe(0x1b8)](_0x41ec47),_0x1d591b===_[_0x2e5cbe(0x4eb)][_0x2e5cbe(0x3cb)]&&this[_0x2e5cbe(0x210)](_0x41ec47);}),this['_onRefRangeChange'](),this[_0x57bc12(0x50a)](this[_0x57bc12(0x256)]['onCommandExecuted'](_0x4ee6f6=>{const _0x13087e=_0x57bc12;if(this[_0x13087e(0x270)]&&_0x4ee6f6['id']===C[_0x13087e(0x4d1)]['id']&&_0x4ee6f6[_0x13087e(0x17c)][_0x13087e(0x212)]===this[_0x13087e(0x1da)]){const _0x1a6beb=_0x4ee6f6[_0x13087e(0x17c)];this[_0x13087e(0x4a7)](_0x1a6beb[_0x13087e(0x215)],_0x1a6beb[_0x13087e(0x53f)][0x0]);}})));}['_onCursorUpdate'](_0x44d616){const _0x153aec=_0x945337;var _0x3c91b5,_0x1be3c4;const {memberID:_0x4b859f,selection:_0x18a407}=_0x44d616[_0x153aec(0x375)],{sheetName:_0x39f5a3,range:_0x305843}=Je[_0x153aec(0x387)](_0x18a407),_0x18c5e0={'name':(_0x1be3c4=(_0x3c91b5=this[_0x153aec(0x526)][_0x153aec(0x467)](this[_0x153aec(0x1da)],_0x4b859f))==null?void 0x0:_0x3c91b5['name'])!=null?_0x1be3c4:_0x153aec(0x3c2),'range':this['_getMergeRange'](_0x39f5a3,_0x305843),'sheetID':_0x39f5a3,'color':this[_0x153aec(0x239)][_0x153aec(0x2ac)](_0x4b859f),'selection':_0x18a407},_0x4fa73d=this[_0x153aec(0x496)];_0x4fa73d['set'](_0x4b859f,_0x18c5e0),this[_0x153aec(0x4bc)][_0x153aec(0x3ca)](_0x4fa73d);}['_onCursorDelete'](_0x5501cb){const _0x347524=_0x945337,{memberID:_0x404df5}=_0x5501cb[_0x347524(0x375)],_0x138f11=this[_0x347524(0x496)];_0x138f11[_0x347524(0x532)](_0x404df5),this[_0x347524(0x4bc)][_0x347524(0x3ca)](_0x138f11);}[_0x945337(0x246)](_0x17bb34,_0x2a3afe){const _0x56debe=_0x945337;var _0x403c76,_0x3370d1;const _0x37f95c=(_0x3370d1=(_0x403c76=this[_0x56debe(0x337)][_0x56debe(0x224)](this[_0x56debe(0x1da)]))==null?void 0x0:_0x403c76['getSheetBySheetId'](_0x17bb34))==null?void 0x0:_0x3370d1[_0x56debe(0x544)]();return(_0x37f95c==null?void 0x0:_0x37f95c['find'](_0x53826d=>a[_0x56debe(0x1ff)][_0x56debe(0x36d)](_0x53826d,_0x2a3afe)))||_0x2a3afe;}['_onRefRangeChange'](){const _0x449f21=_0x945337,_0x25215c=new a[(_0x449f21(0x275))](),_0x49a8d2=Qs(),_0x7d752=()=>{const _0x9165cc=_0x449f21;_0x25215c['dispose']();const _0x543776=(_0x51da36,_0x1d7dcf,_0x3be053,_0x40b7db)=>{const _0x226ad8=_0x38f3;let _0x5eb90a=[];switch(_0x51da36['id']){case C['EffectRefRangId'][_0x226ad8(0x56e)]:{_0x5eb90a=C[_0x226ad8(0x1a7)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x36b)]:{_0x5eb90a=C[_0x226ad8(0x174)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x244)]:{_0x5eb90a=C[_0x226ad8(0x513)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x19f)]:{_0x5eb90a=C[_0x226ad8(0x476)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x5eb90a=C['handleInsertRangeMoveRight'](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x1e2)]:{_0x5eb90a=C[_0x226ad8(0x213)](_0x51da36,_0x40b7db);break;}case C['EffectRefRangId'][_0x226ad8(0x3a6)]:{_0x5eb90a=C[_0x226ad8(0x4ec)](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)][_0x226ad8(0x21f)]:{_0x5eb90a=C['handleIRemoveCol'](_0x51da36,_0x40b7db);break;}case C[_0x226ad8(0x24e)]['RemoveRowCommandId']:{_0x5eb90a=C[_0x226ad8(0x235)](_0x51da36,_0x40b7db);break;}}const _0x56b77e=C[_0x226ad8(0x1fb)](_0x5eb90a,_0x40b7db),_0xf85cf6=this[_0x226ad8(0x496)][_0x226ad8(0x3eb)](_0x1d7dcf);if(_0xf85cf6&&_0x56b77e){const _0x4bd0c3={..._0xf85cf6,'range':_0x56b77e};this[_0x226ad8(0x496)][_0x226ad8(0x4a8)](_0x1d7dcf,_0x4bd0c3),_0x49a8d2(()=>{const _0x4d8c73=_0x226ad8,_0x5b44e9=this[_0x4d8c73(0x385)][_0x4d8c73(0x425)](_0x56b77e,_0x10d563=>(_0x5b44e9[_0x4d8c73(0x1eb)](),_0x543776(_0x10d563,_0x1d7dcf,_0x3be053,_0x56b77e)));_0x25215c[_0x4d8c73(0x18a)](_0x5b44e9);});}return{'redos':[],'undos':[]};};this[_0x9165cc(0x496)]['forEach']((_0x12faf0,_0x44b028)=>{const _0x4640f0=_0x9165cc,{range:_0x1d202d,sheetID:_0x179076}=_0x12faf0,_0x4b9c27=this[_0x4640f0(0x385)][_0x4640f0(0x425)](_0x1d202d,_0x587baa=>(_0x4b9c27[_0x4640f0(0x1eb)](),_0x543776(_0x587baa,_0x44b028,_0x179076,_0x1d202d)));_0x25215c['add'](_0x4b9c27);});};this['disposeWithMe'](a['toDisposable'](this[_0x449f21(0x4bc)][_0x449f21(0x397)](()=>{_0x7d752();})));}['_toggleOnline'](){const _0x306c6d=_0x945337;var _0x3ea472,_0x3c361f;if(this[_0x306c6d(0x270)]=!0x0,((_0x3ea472=this['_univerInstanceService'][_0x306c6d(0x255)]())==null?void 0x0:_0x3ea472[_0x306c6d(0x352)]())!==this['unitID'])return;const _0x52c8d0=(_0x3c361f=this[_0x306c6d(0x3dd)][_0x306c6d(0x3eb)](C[_0x306c6d(0x403)])[_0x306c6d(0x57f)]())==null?void 0x0:_0x3c361f[0x0],_0x18e48a=this[_0x306c6d(0x337)][_0x306c6d(0x528)](a[_0x306c6d(0x3b1)][_0x306c6d(0x53c)])['getActiveSheet']();_0x52c8d0&&_0x18e48a&&this['_updateLocalCursor'](_0x18e48a[_0x306c6d(0x221)](),_0x52c8d0);}[_0x945337(0x218)](){const _0x14a47b=_0x945337;this[_0x14a47b(0x270)]=!0x1;}};He=zs([Q(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),Q(0x3,a[_0x945337(0x4fa)](Xe)),Q(0x4,a[_0x945337(0x4fa)](q)),Q(0x5,a[_0x945337(0x57b)]),Q(0x6,a[_0x945337(0x400)]),Q(0x7,a[_0x945337(0x4fa)](C[_0x945337(0x2e3)]))],He);var ei=Object[_0x945337(0x24b)],ti=Object[_0x945337(0x3e2)],si=(_0x3637b7,_0x288c99,_0x4db61f,_0x146976)=>{const _0x571244=_0x945337;for(var _0x1b5faf=_0x146976>0x1?void 0x0:_0x146976?ti(_0x288c99,_0x4db61f):_0x288c99,_0x334a4b=_0x3637b7[_0x571244(0x3f0)]-0x1,_0x25f797;_0x334a4b>=0x0;_0x334a4b--)(_0x25f797=_0x3637b7[_0x334a4b])&&(_0x1b5faf=(_0x146976?_0x25f797(_0x288c99,_0x4db61f,_0x1b5faf):_0x25f797(_0x1b5faf))||_0x1b5faf);return _0x146976&&_0x1b5faf&&ei(_0x288c99,_0x4db61f,_0x1b5faf),_0x1b5faf;},Pe=(_0x5c9361,_0x5b4c0d)=>(_0x390513,_0x2cafe4)=>_0x5b4c0d(_0x390513,_0x2cafe4,_0x5c9361);let ie=class extends a[_0x945337(0x538)]{constructor(_0x4a613f,_0x35bb96,_0x3566fc){const _0x297632=_0x945337;super(),d(this,'_entities',new Map()),d(this,_0x297632(0x32d),new v[(_0x297632(0x36e))]()),(this['_univerInstanceService']=_0x4a613f,this[_0x297632(0x3dd)]=_0x35bb96,this[_0x297632(0x407)]=_0x3566fc,this[_0x297632(0x458)]());}[_0x945337(0x1eb)](){const _0x376ff1=_0x945337;super[_0x376ff1(0x1eb)](),this['_entityInit$'][_0x376ff1(0x531)](),this[_0x376ff1(0x565)][_0x376ff1(0x278)](_0x1cba43=>_0x1cba43[_0x376ff1(0x1eb)]());}[_0x945337(0x2c6)](_0x5688c2){const _0x3553f1=_0x945337;return this[_0x3553f1(0x565)][_0x3553f1(0x384)](_0x5688c2)?this['_entities'][_0x3553f1(0x3eb)](_0x5688c2)[_0x3553f1(0x247)]:this[_0x3553f1(0x32d)]['pipe'](v[_0x3553f1(0x1dc)](_0x28d7fd=>_0x28d7fd[_0x3553f1(0x1da)]===_0x5688c2),v['switchMap'](_0x2b43cf=>_0x2b43cf['cursorInfo$']));}[_0x945337(0x458)](){const _0x3575b1=_0x945337;this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)])['pipe'](v[_0x3575b1(0x43c)](this['dispose$']))[_0x3575b1(0x397)](async _0x224c96=>{const _0x4214a6=_0x3575b1,_0x29d880=_0x224c96['getUnitId'](),_0x4ff3e1=await this[_0x4214a6(0x32a)](_0x29d880);this[_0x4214a6(0x32d)][_0x4214a6(0x3ca)](_0x4ff3e1),this[_0x4214a6(0x565)][_0x4214a6(0x4a8)](_0x29d880,_0x4ff3e1);}),this[_0x3575b1(0x337)][_0x3575b1(0x51e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)])[_0x3575b1(0x550)](v[_0x3575b1(0x43c)](this[_0x3575b1(0x2ec)]))['pipe'](v[_0x3575b1(0x1dc)](_0x2a5c77=>!_0x2a5c77['getUnitId']()[_0x3575b1(0x2aa)]('__')))['subscribe'](async _0x1af05e=>{const _0x403326=_0x3575b1,_0x5b612e=_0x1af05e['getUnitId'](),_0x5753c6=await this[_0x403326(0x43b)](_0x5b612e);this[_0x403326(0x32d)][_0x403326(0x3ca)](_0x5753c6),this['_entities'][_0x403326(0x4a8)](_0x5b612e,_0x5753c6);}),v[_0x3575b1(0x515)](this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x395)]),this[_0x3575b1(0x337)][_0x3575b1(0x18e)](a[_0x3575b1(0x3b1)][_0x3575b1(0x53c)]))[_0x3575b1(0x550)](v['takeUntil'](this['dispose$']))['subscribe'](_0x34c1f6=>{const _0x49cb2a=_0x3575b1,_0xe38696=_0x34c1f6[_0x49cb2a(0x352)](),_0x5b9e02=this[_0x49cb2a(0x565)][_0x49cb2a(0x3eb)](_0xe38696);_0x5b9e02&&(_0x5b9e02[_0x49cb2a(0x1eb)](),this[_0x49cb2a(0x565)][_0x49cb2a(0x532)](_0xe38696));});}async[_0x945337(0x32a)](_0x3bdbb8){const _0xf8fd2f=_0x945337,_0x88888d=await this[_0xf8fd2f(0x407)][_0xf8fd2f(0x369)](_0x3bdbb8),_0x211101=this[_0xf8fd2f(0x3dd)][_0xf8fd2f(0x39d)](He,_0x3bdbb8,_0x88888d);return _0x211101[_0xf8fd2f(0x55a)](),_0x211101;}async[_0x945337(0x43b)](_0x1984cd){const _0x35a73b=_0x945337,_0x5e6cde=await this[_0x35a73b(0x407)]['requireSession'](_0x1984cd),_0x2a0af5=this[_0x35a73b(0x3dd)][_0x35a73b(0x39d)]($e,_0x1984cd,_0x5e6cde);return _0x2a0af5[_0x35a73b(0x55a)](),_0x2a0af5;}};ie=si([Pe(0x0,a[_0x945337(0x57b)]),Pe(0x1,a[_0x945337(0x4fa)](a['Injector'])),Pe(0x2,a[_0x945337(0x4fa)](exports[_0x945337(0x3a5)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x422780,_0x25565a){const _0x4f36ef=_0x945337;let {radius:_0x191735,width:_0x2ecfcb,height:_0x4131f2}=_0x25565a;_0x191735=_0x191735!=null?_0x191735:0x0,_0x2ecfcb=_0x2ecfcb!=null?_0x2ecfcb:0x1e,_0x4131f2=_0x4131f2!=null?_0x4131f2:0x1e;let _0x58bbb4=0x0,_0x250308=0x0,_0x504099=0x0;_0x58bbb4=_0x250308=_0x504099=Math['min'](_0x191735,_0x2ecfcb/0x2,_0x4131f2/0x2),_0x422780[_0x4f36ef(0x4e5)](),_0x422780[_0x4f36ef(0x546)](_0x58bbb4,0x0),_0x422780[_0x4f36ef(0x329)](_0x2ecfcb-_0x250308,0x0),_0x422780['arc'](_0x2ecfcb-_0x250308,_0x250308,_0x250308,Math['PI']*0x3/0x2,0x0,!0x1),_0x422780['lineTo'](_0x2ecfcb,_0x4131f2-_0x504099),_0x422780[_0x4f36ef(0x386)](_0x2ecfcb-_0x504099,_0x4131f2-_0x504099,_0x504099,0x0,Math['PI']/0x2,!0x1),_0x422780['lineTo'](0x0,_0x4131f2),_0x422780[_0x4f36ef(0x329)](0x0,_0x58bbb4),_0x422780[_0x4f36ef(0x386)](_0x58bbb4,_0x58bbb4,_0x58bbb4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x422780['closePath'](),_0x25565a[_0x4f36ef(0x18c)]&&(_0x422780['save'](),_0x422780[_0x4f36ef(0x42c)]=_0x25565a[_0x4f36ef(0x18c)],_0x25565a[_0x4f36ef(0x38d)]===_0x4f36ef(0x439)?_0x422780[_0x4f36ef(0x18c)](_0x4f36ef(0x439)):_0x422780[_0x4f36ef(0x18c)](),_0x422780[_0x4f36ef(0x44b)]());}class Te extends R[_0x945337(0x366)]{constructor(_0x8e0119,_0x322db9){const _0x2cfa25=_0x945337;super(_0x8e0119,_0x322db9),d(this,_0x2cfa25(0x22b)),d(this,_0x2cfa25(0x4c8)),(this[_0x2cfa25(0x22b)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x22b)],this[_0x2cfa25(0x4c8)]=_0x322db9==null?void 0x0:_0x322db9[_0x2cfa25(0x4c8)]);}static[_0x945337(0x39e)](_0x3d0090,_0x421397){const _0x7ad74e=_0x945337,{text:_0x4940dd,color:_0x392e04}=_0x421397;_0x3d0090[_0x7ad74e(0x4ab)](),_0x3d0090['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x345f55=_0x3d0090[_0x7ad74e(0x38a)](_0x4940dd)['width'],_0x1d17df=Math[_0x7ad74e(0x354)](_0x345f55+0x2*we,rt);ni(_0x3d0090,{'height':ue,'radius':0x4,'width':_0x1d17df,'fill':_0x392e04,'evented':!0x1}),_0x3d0090['fillStyle']=_0x7ad74e(0x309);const _0x213428=we,_0x8fe22f=ue-ii,_0x24cee5=rt-0x2*we;if(_0x345f55>_0x24cee5){let _0x260599='',_0x46c08f=0x0;for(const _0x2430e2 of _0x4940dd){const _0x1ee339=_0x3d0090[_0x7ad74e(0x38a)](_0x2430e2)[_0x7ad74e(0x1bc)];if(_0x46c08f+_0x1ee339<=_0x24cee5-_0x3d0090[_0x7ad74e(0x38a)]('...')[_0x7ad74e(0x1bc)])_0x260599+=_0x2430e2,_0x46c08f+=_0x1ee339;else{_0x260599+=_0x7ad74e(0x2ba);break;}}_0x3d0090[_0x7ad74e(0x274)](_0x260599,_0x213428,_0x8fe22f);}else _0x3d0090[_0x7ad74e(0x274)](_0x4940dd,_0x213428,_0x8fe22f);_0x3d0090[_0x7ad74e(0x44b)]();}[_0x945337(0x481)](_0x475ffc){const _0x16447c=_0x945337;Te[_0x16447c(0x39e)](_0x475ffc,this);}}const Me=_0x945337(0x200),ri='collab-text-range-',oi=_0x945337(0x41f),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x945337(0x27b);class ot{constructor(_0x117381,_0x5d6457,_0x50261d,_0x26d736){const _0xdc3ae=_0x945337;d(this,_0xdc3ae(0x556),[]),d(this,_0xdc3ae(0x401),null),d(this,_0xdc3ae(0x4e0),null),d(this,'_anchorDot',null),d(this,_0xdc3ae(0x3d1),null),d(this,_0xdc3ae(0x4c6),null),(this['_cursor']=_0x117381,this['_scene']=_0x5d6457,this['_docSkeleton']=_0x50261d,this[_0xdc3ae(0x327)]=_0x26d736,this['_render']());}set[_0x945337(0x4ff)](_0x157945){const _0x3b4567=_0x945337;_0x157945?(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)][_0x3b4567(0x566)](),this[_0x3b4567(0x4e0)]&&this[_0x3b4567(0x4e0)][_0x3b4567(0x411)]()):(this[_0x3b4567(0x3e0)]&&this[_0x3b4567(0x3e0)]['show'](),this['_textBubble']&&this[_0x3b4567(0x4e0)]['hide']());}[_0x945337(0x1eb)](){const _0x40f36e=_0x945337;for(const _0x3f4b90 of this[_0x40f36e(0x556)])_0x3f4b90['dispose']();this['_textBubble']&&this[_0x40f36e(0x4e0)]['dispose'](),this[_0x40f36e(0x3e0)]&&this[_0x40f36e(0x3e0)][_0x40f36e(0x1eb)](),this[_0x40f36e(0x401)]&&this[_0x40f36e(0x401)][_0x40f36e(0x1eb)](),this['_eventUnsubscribe']&&this[_0x40f36e(0x4c6)]();}['_render'](){const _0x5f4a8d=_0x945337;var _0x279d02;const {_docSkeleton:_0x220900,_document:_0x2b87bb}=this,{color:_0x23a638,name:_0x1d74f6,ranges:_0x30da0b}=this[_0x5f4a8d(0x32b)],_0x2109c0=_0x2b87bb[_0x5f4a8d(0x26d)](),{docsLeft:_0x3bf1a3,docsTop:_0x505255}=_0x2109c0,_0x81d62b=new w['NodePositionConvertToCursor'](_0x2109c0,_0x220900);for(const {startOffset:_0x58f2dd,endOffset:_0x3dbe4b,collapsed:_0x4800af,isActive:_0x44fcec}of _0x30da0b){const _0x5a1e5f=_0x220900[_0x5f4a8d(0x46a)](_0x58f2dd),_0x799f45=_0x220900['findNodePositionByCharIndex'](_0x3dbe4b);if(_0x44fcec){const {contentBoxPointGroup:_0x2e1911}=_0x81d62b[_0x5f4a8d(0x54f)](_0x799f45,_0x799f45);if(_0x2e1911['length']===0x0)continue;this[_0x5f4a8d(0x450)](_0x23a638,_0x2e1911,_0x3bf1a3,_0x505255,_0x1d74f6),this[_0x5f4a8d(0x4c6)]=this['_handleHover']();}if(!_0x4800af&&_0x5a1e5f&&_0x799f45){if(w[_0x5f4a8d(0x2f0)](_0x5a1e5f,_0x799f45)){const _0xc7dfe8=new w[(_0x5f4a8d(0x211))](_0x2109c0,_0x220900),{pointGroup:_0xb4710e}=(_0x279d02=_0xc7dfe8[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45))!=null?_0x279d02:{};if(_0xb4710e==null||_0xb4710e[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x563)](_0x23a638,_0xb4710e,_0x3bf1a3,_0x505255);}else{const {contentBoxPointGroup:_0x3712d0}=_0x81d62b[_0x5f4a8d(0x54f)](_0x5a1e5f,_0x799f45);if(_0x3712d0[_0x5f4a8d(0x3f0)]===0x0)continue;this[_0x5f4a8d(0x3aa)](_0x23a638,_0x3712d0,_0x3bf1a3,_0x505255);}}}}[_0x945337(0x450)](_0x991b32,_0x7b77d,_0xfea517,_0x436faa,_0x2d0ce6){const _0x36445a=_0x945337,_0x16df93=this[_0x36445a(0x1e7)](_0x7b77d),{left:_0x245045,top:_0x118e79,height:_0x382bce}=_0x16df93,_0x4cddb0=this[_0x36445a(0x303)](),_0x560312=ci/_0x4cddb0,_0x2edf53=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa,'height':_0x382bce,'width':ai,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':_0x560312,'stroke':li,'evented':!0x0});this[_0x36445a(0x401)]=_0x2edf53,this['_scene'][_0x36445a(0x4a5)](_0x2edf53,w[_0x36445a(0x48b)]);const _0xdb98b2=new R[(_0x36445a(0x1f8))](Me+a[_0x36445a(0x4ea)][_0x36445a(0x227)](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x991b32||R[_0x36445a(0x32e)](a[_0x36445a(0x27a)][_0x36445a(0x484)],0x0),'strokeWidth':0x0,'stroke':_0x991b32||R['getColor'](a[_0x36445a(0x27a)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0xdb98b2,this['_scene'][_0x36445a(0x4a5)](_0xdb98b2,w[_0x36445a(0x48b)]);const _0x3f8f83=new Te(Me+a[_0x36445a(0x4ea)]['generateRandomId'](ce),{'left':_0x245045+_0xfea517-_0x560312,'top':_0x118e79+_0x436faa-ue,'text':_0x2d0ce6,'color':_0x991b32});this[_0x36445a(0x4e0)]=_0x3f8f83,this[_0x36445a(0x52d)][_0x36445a(0x4a5)](_0x3f8f83,w['TEXT_RANGE_LAYER_INDEX']),this[_0x36445a(0x4ff)]=!0x1;}['_handleHover'](){const _0x19a697=_0x945337,_0x504c02=this[_0x19a697(0x401)]['onPointerEnter$'][_0x19a697(0x28a)](()=>{const _0x3e45eb=_0x19a697;this[_0x3e45eb(0x4ff)]=!0x0;}),_0x3c49ef=this[_0x19a697(0x401)][_0x19a697(0x4c0)][_0x19a697(0x28a)](()=>{const _0x5d0b42=_0x19a697;this[_0x5d0b42(0x3d1)]&&clearTimeout(this['_hideTimer']),this[_0x5d0b42(0x3d1)]=setTimeout(()=>{const _0x495c7c=_0x5d0b42;this[_0x495c7c(0x4ff)]=!0x1;},0x7d0);});return()=>{const _0x4ac040=_0x19a697;_0x504c02[_0x4ac040(0x346)](),_0x3c49ef[_0x4ac040(0x346)]();};}[_0x945337(0x3aa)](_0x1ed666,_0x13fa76,_0xb197ed,_0x1ba8bd){const _0x5b7fba=_0x945337,_0xdc262d=new a['ColorKit'](_0x1ed666)[_0x5b7fba(0x29f)](0.2)[_0x5b7fba(0x35b)](),_0x5ea3be=new R[(_0x5b7fba(0x1fe))](ri+a[_0x5b7fba(0x4ea)][_0x5b7fba(0x227)](ce),{'pointsGroup':_0x13fa76,'fill':_0xdc262d||R['getColor'](a[_0x5b7fba(0x27a)][_0x5b7fba(0x484)],0.2),'left':_0xb197ed,'top':_0x1ba8bd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5b7fba(0x556)]['push'](_0x5ea3be),this['_scene'][_0x5b7fba(0x4a5)](_0x5ea3be,w[_0x5b7fba(0x48b)]);}[_0x945337(0x563)](_0x3c73dd,_0x247da3,_0xe352a4,_0x5ad3c6){const _0x560689=_0x945337,_0x236904=new a[(_0x560689(0x1a4))](_0x3c73dd)[_0x560689(0x29f)](0.2)['toRgbString'](),_0xd68263=new R[(_0x560689(0x1fe))](oi+a[_0x560689(0x4ea)][_0x560689(0x227)](ce),{'pointsGroup':_0x247da3,'fill':_0x236904||R[_0x560689(0x32e)](a[_0x560689(0x27a)][_0x560689(0x484)],0.2),'left':_0xe352a4,'top':_0x5ad3c6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x560689(0x3b0)](_0xd68263),this[_0x560689(0x52d)][_0x560689(0x4a5)](_0xd68263,w[_0x560689(0x48b)]);}['_getAnchorBounding'](_0x3d9efa){const _0x7fb43a=_0x3d9efa[0x0],_0x508e43=_0x7fb43a[0x0],_0x27bbda=_0x7fb43a[0x2],{x:_0x3c970a,y:_0x1ea9fb}=_0x508e43,{x:_0x38bc6a,y:_0xb52cbb}=_0x27bbda;return{'left':_0x3c970a,'top':_0x1ea9fb,'width':_0x38bc6a-_0x3c970a,'height':_0xb52cbb-_0x1ea9fb};}[_0x945337(0x303)](){const _0x549e7d=_0x945337,{scaleX:_0x4b9960,scaleY:_0x4f0427}=this[_0x549e7d(0x52d)][_0x549e7d(0x394)]();return Math[_0x549e7d(0x25c)](_0x4b9960,_0x4f0427);}}var hi=Object[_0x945337(0x24b)],_i=Object['getOwnPropertyDescriptor'],ui=(_0x989dd,_0x4daac4,_0x2b25e7,_0x1f30d1)=>{for(var _0x48e5a6=_0x1f30d1>0x1?void 0x0:_0x1f30d1?_i(_0x4daac4,_0x2b25e7):_0x4daac4,_0x4a1875=_0x989dd['length']-0x1,_0x271052;_0x4a1875>=0x0;_0x4a1875--)(_0x271052=_0x989dd[_0x4a1875])&&(_0x48e5a6=(_0x1f30d1?_0x271052(_0x4daac4,_0x2b25e7,_0x48e5a6):_0x271052(_0x48e5a6))||_0x48e5a6);return _0x1f30d1&&_0x48e5a6&&hi(_0x4daac4,_0x2b25e7,_0x48e5a6),_0x48e5a6;},de=(_0x41caa7,_0x297d6a)=>(_0x32ca0f,_0x5c00b0)=>_0x297d6a(_0x32ca0f,_0x5c00b0,_0x41caa7);let xe=class extends a[_0x945337(0x538)]{constructor(_0x24d042,_0x38f4f2,_0x962181,_0x18db58,_0x6af205){const _0x2045e8=_0x945337;super(),d(this,_0x2045e8(0x2f5),[]),d(this,_0x2045e8(0x3b8),[]),(this['_context']=_0x24d042,this[_0x2045e8(0x3f3)]=_0x38f4f2,this[_0x2045e8(0x356)]=_0x962181,this['_commandService']=_0x18db58,this[_0x2045e8(0x42d)]=_0x6af205,this[_0x2045e8(0x458)]());}[_0x945337(0x458)](){const _0x35b169=_0x945337,_0x4eb326=this[_0x35b169(0x3e8)][_0x35b169(0x212)],_0x5e6288=this[_0x35b169(0x3f3)];this[_0x35b169(0x50a)](v[_0x35b169(0x2b4)]([this['_collabCursorController'][_0x35b169(0x2c6)](_0x4eb326),this[_0x35b169(0x42d)][_0x35b169(0x3f8)]])[_0x35b169(0x550)](E[_0x35b169(0x2c1)](([_0x5bda81,_0x57e71a])=>({'skeleton':_0x5e6288['getSkeleton'](),'cursors':[..._0x5bda81[_0x35b169(0x27f)]()][_0x35b169(0x365)](_0x587fec=>({..._0x587fec,'color':_0x57e71a[_0x587fec['color']]}))})))['subscribe'](_0x25413f=>{const _0x222ee2=_0x35b169;if(this['_removeCollabCursors'](),_0x25413f){const {skeleton:_0x306ba4,cursors:_0x89dc97}=_0x25413f;this[_0x222ee2(0x376)](_0x306ba4,_0x89dc97);}})),this['_initResize'](),this[_0x35b169(0x4c7)]();}[_0x945337(0x376)](_0x8d2b4a,_0x337486){const _0x2b8098=_0x945337,{scene:_0x531f3f,mainComponent:_0x4d7aa9}=this[_0x2b8098(0x3e8)],_0x225aff=_0x337486[_0x2b8098(0x2c1)](_0x29cf29=>new ot(_0x29cf29,_0x531f3f,_0x8d2b4a,_0x4d7aa9));this['_cursorShapes']=_0x225aff,this[_0x2b8098(0x3b8)]=_0x337486;}[_0x945337(0x3be)](){const _0x5bf801=_0x945337;this[_0x5bf801(0x3bf)]();const {scene:_0x1a1984,mainComponent:_0x432f29}=this[_0x5bf801(0x3e8)],_0x47710c=this['_docSkeletonManagerService'][_0x5bf801(0x176)](),_0x17bc1d=this[_0x5bf801(0x3b8)][_0x5bf801(0x2c1)](_0x5eb294=>new ot(_0x5eb294,_0x1a1984,_0x47710c,_0x432f29));this[_0x5bf801(0x2f5)]=_0x17bc1d;}['_removeCollabCursors'](){const _0x57564f=_0x945337;this[_0x57564f(0x2f5)][_0x57564f(0x278)](_0x2aff1f=>_0x2aff1f['dispose']()),this[_0x57564f(0x2f5)]=[];}[_0x945337(0x4c7)](){const _0x4d1df1=_0x945337,_0x5ec294=[w['SetDocZoomRatioOperation']['id']];this[_0x4d1df1(0x50a)](this[_0x4d1df1(0x256)][_0x4d1df1(0x3ad)](_0x4f5f44=>{const _0x4f538c=_0x4d1df1;_0x5ec294[_0x4f538c(0x38c)](_0x4f5f44['id'])&&_0x4f5f44[_0x4f538c(0x17c)][_0x4f538c(0x212)]===this['_context'][_0x4f538c(0x212)]&&this[_0x4f538c(0x3be)]();}));}[_0x945337(0x52b)](){const _0x1af575=_0x945337;this[_0x1af575(0x50a)](a[_0x1af575(0x3fc)](this[_0x1af575(0x3e8)][_0x1af575(0x1ac)][_0x1af575(0x31e)])[_0x1af575(0x550)](E[_0x1af575(0x1dc)](_0x1e7a6c=>_0x1e7a6c[_0x1af575(0x243)]===R['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x1af575(0x391)]),E[_0x1af575(0x1d8)](0x10))[_0x1af575(0x397)](()=>{const _0x24f8b3=_0x1af575;this[_0x24f8b3(0x3be)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x945337(0x447)])),de(0x2,a['Inject'](ie)),de(0x3,a[_0x945337(0x400)]),de(0x4,a['Inject'](a[_0x945337(0x2a4)]))],xe);const di=0x1,Si=1.5;class Ot extends R['Shape']{constructor(_0x382b78,_0x3779df){const _0x4defd6=_0x945337;super(_0x382b78,_0x3779df),d(this,_0x4defd6(0x197)),d(this,_0x4defd6(0x49b),!0x1),d(this,_0x4defd6(0x225)),d(this,_0x4defd6(0x203),''),d(this,_0x4defd6(0x33e),_0x4defd6(0x22f)),d(this,_0x4defd6(0x353)),(_0x3779df&&this[_0x4defd6(0x382)](_0x3779df),this[_0x4defd6(0x44f)][_0x4defd6(0x28a)](()=>this[_0x4defd6(0x382)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4defd6(0x382)]({'hovered':!0x1})));}[_0x945337(0x382)](_0x287536){const _0x570ee2=_0x945337;var _0x5b3b1e,_0x3876a4,_0x3da982,_0x2da7dd,_0x4f8726,_0x29b3f1;this['_color']=(_0x5b3b1e=_0x287536[_0x570ee2(0x22b)])!=null?_0x5b3b1e:this[_0x570ee2(0x197)],this['_hovered']=(_0x3876a4=_0x287536[_0x570ee2(0x240)])!=null?_0x3876a4:this[_0x570ee2(0x49b)],this[_0x570ee2(0x225)]=(_0x3da982=_0x287536[_0x570ee2(0x25a)])!=null?_0x3da982:this[_0x570ee2(0x225)],this[_0x570ee2(0x203)]=(_0x2da7dd=_0x287536[_0x570ee2(0x508)])!=null?_0x2da7dd:this[_0x570ee2(0x203)],this['_labelPosition']=(_0x4f8726=_0x287536[_0x570ee2(0x370)])!=null?_0x4f8726:this[_0x570ee2(0x33e)],this[_0x570ee2(0x353)]=(_0x29b3f1=_0x287536[_0x570ee2(0x304)])!=null?_0x29b3f1:this[_0x570ee2(0x353)],this[_0x570ee2(0x3ce)]({'width':_0x287536['width'],'height':_0x287536[_0x570ee2(0x2f8)]});}[_0x945337(0x3de)](_0x57635f){const _0x165e2c=_0x945337,{row:_0x2f3c3d,column:_0x232bf1}=_0x57635f;if(_0x2f3c3d>=this['_range']['startRow']&&_0x2f3c3d<=this['_range']['endRow']&&_0x232bf1>=this[_0x165e2c(0x225)][_0x165e2c(0x462)]&&_0x232bf1<=this['_range'][_0x165e2c(0x284)]){this[_0x165e2c(0x382)]({'hovered':!0x0});return;}this[_0x165e2c(0x382)]({'hovered':!0x1});}[_0x945337(0x26c)](_0x3efa56){return!0x1;}[_0x945337(0x481)](_0x5ce87e){const _0xc6af58=_0x945337;R[_0xc6af58(0x1f8)][_0xc6af58(0x39e)](_0x5ce87e,{'width':this[_0xc6af58(0x1bc)],'height':this['height'],'strokeWidth':Si,'stroke':this['_color'],'evented':!0x1,'fill':this[_0xc6af58(0x353)]}),this['_hovered']&&(_0x5ce87e[_0xc6af58(0x4ab)](),_0x5ce87e[_0xc6af58(0x449)](0x1,0x0,0x0,0x1,this['width'],this[_0xc6af58(0x33e)]===_0xc6af58(0x4db)?0x0:-ue),Te[_0xc6af58(0x39e)](_0x5ce87e,{'text':this[_0xc6af58(0x203)],'color':this[_0xc6af58(0x197)]}),_0x5ce87e[_0xc6af58(0x44b)]());}}var vi=Object['defineProperty'],fi=Object[_0x945337(0x3e2)],gi=(_0x407ab8,_0x4c00f8,_0x373964,_0x4a72a9)=>{const _0x138567=_0x945337;for(var _0x1f1413=_0x4a72a9>0x1?void 0x0:_0x4a72a9?fi(_0x4c00f8,_0x373964):_0x4c00f8,_0x115274=_0x407ab8[_0x138567(0x3f0)]-0x1,_0x11988a;_0x115274>=0x0;_0x115274--)(_0x11988a=_0x407ab8[_0x115274])&&(_0x1f1413=(_0x4a72a9?_0x11988a(_0x4c00f8,_0x373964,_0x1f1413):_0x11988a(_0x1f1413))||_0x1f1413);return _0x4a72a9&&_0x1f1413&&vi(_0x4c00f8,_0x373964,_0x1f1413),_0x1f1413;},Ae=(_0x171099,_0x6b642f)=>(_0x58973f,_0x3386c6)=>_0x6b642f(_0x58973f,_0x3386c6,_0x171099);const mi=0x1389;let ke=class extends a[_0x945337(0x538)]{constructor(_0x5343df,_0x30c5c6,_0x1796b5,_0x5b4ace){const _0x11c3b7=_0x945337;super(),d(this,_0x11c3b7(0x3b8),new Set()),d(this,_0x11c3b7(0x43a),null),(this[_0x11c3b7(0x3e8)]=_0x5343df,this[_0x11c3b7(0x2a6)]=_0x30c5c6,this[_0x11c3b7(0x356)]=_0x1796b5,this[_0x11c3b7(0x42d)]=_0x5b4ace,this['_init']());}[_0x945337(0x458)](){const _0x18035=_0x945337;this[_0x18035(0x2a6)]['currentSkeleton$'][_0x18035(0x550)](E[_0x18035(0x43c)](this['dispose$']),E[_0x18035(0x442)](_0x3e5bae=>{const _0x19f80e=_0x18035;if(_0x3e5bae){const _0x12481d=_0x3e5bae['sheetId'];return v[_0x19f80e(0x2b4)](this[_0x19f80e(0x356)][_0x19f80e(0x2c6)](this[_0x19f80e(0x3e8)][_0x19f80e(0x212)]),this[_0x19f80e(0x42d)][_0x19f80e(0x3f8)])[_0x19f80e(0x550)](E[_0x19f80e(0x2c1)](([_0x24a336,_0x3e0d04])=>{const _0x51a473=_0x19f80e,_0x3edf26=new Map();return _0x24a336[_0x51a473(0x278)]((_0x28be31,_0x363970)=>{const _0x3b2cfc=_0x51a473;if(_0x28be31[_0x3b2cfc(0x264)]===_0x12481d){const _0x5dcc5e={..._0x28be31};_0x5dcc5e['color']=_0x3e0d04[_0x28be31[_0x3b2cfc(0x22b)]],_0x3edf26[_0x3b2cfc(0x4a8)](_0x363970,_0x5dcc5e);}}),{'skeleton':_0x3e5bae,'cursors':_0x3edf26};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x18035(0x397)](({skeleton:_0x17e714,cursors:_0x596d7c})=>{const _0xb27546=_0x18035;this[_0xb27546(0x3bf)](),_0x17e714&&this[_0xb27546(0x376)](_0x17e714,_0x596d7c);}),this[_0x18035(0x2a6)][_0x18035(0x3d0)][_0x18035(0x397)](_0x4c0ac4=>{const _0x159a99=_0x18035;if(_0x4c0ac4==null)return;const {skeleton:_0x208a6c}=_0x4c0ac4,{scene:_0x41adfe}=this[_0x159a99(0x3e8)];_0x41adfe[_0x159a99(0x3af)][_0x159a99(0x28a)](a[_0x159a99(0x49c)](_0x1bc98d=>{const _0xb86ed0=_0x159a99;var _0x298f34,_0x2818de;const {offsetX:_0x238577,offsetY:_0x3ea516}=_0x1bc98d,{x:_0x5b3cee,y:_0x205e06}=_0x41adfe['getRelativeToViewportCoord'](R[_0xb86ed0(0x490)]['FromArray']([_0x238577,_0x3ea516])),{scaleX:_0x44b130,scaleY:_0x1a8718}=_0x41adfe[_0xb86ed0(0x394)](),_0x45e64b=_0x41adfe[_0xb86ed0(0x195)](te[_0xb86ed0(0x3d9)][_0xb86ed0(0x37b)]),_0x15f2a3=_0x41adfe[_0xb86ed0(0x207)](R['Vector2']['FromArray']([_0x5b3cee,_0x205e06]),_0x45e64b),_0x5b9c0f=_0x208a6c[_0xb86ed0(0x2cb)](_0x238577,_0x3ea516,_0x44b130,_0x1a8718,_0x15f2a3);((_0x298f34=this['_lastPointer'])==null?void 0x0:_0x298f34[_0xb86ed0(0x4b4)])===_0x5b9c0f[_0xb86ed0(0x4b4)]&&((_0x2818de=this[_0xb86ed0(0x43a)])==null?void 0x0:_0x2818de[_0xb86ed0(0x3fb)])===_0x5b9c0f[_0xb86ed0(0x3fb)]||this['_cursors'][_0xb86ed0(0x278)](_0x17d95e=>{const _0x40849c=_0xb86ed0;_0x17d95e[_0x40849c(0x3de)](_0x5b9c0f);});},0x64));});}[_0x945337(0x376)](_0x3dceac,_0x21231e){const _0x32dd3e=_0x945337;var _0x3ab2c4;const _0x57b547=(_0x3ab2c4=this[_0x32dd3e(0x2a6)]['getCurrent']())==null?void 0x0:_0x3ab2c4['skeleton'];if(!_0x57b547)return;const _0x24d4fb=this[_0x32dd3e(0x419)]();if(!_0x24d4fb)return;this['_cursors'][_0x32dd3e(0x278)](_0x1b9d50=>{const _0x34c204=_0x32dd3e;_0x1b9d50[_0x34c204(0x2e5)]();});const {scene:_0x2bce08}=_0x24d4fb,_0x300722=Ii(Array[_0x32dd3e(0x3f2)](_0x21231e[_0x32dd3e(0x27f)]()))[_0x32dd3e(0x2c1)](_0x6f3596=>{const _0x1e9894=_0x32dd3e,{color:_0x5c82c9,range:_0x5de28e,name:_0x510418,selection:_0x3f1139,sheetID:_0x9a22c4}=_0x6f3596,{startColumn:_0x52e607,startRow:_0x5a2df1,endColumn:_0x15a109,endRow:_0x11b1c4}=_0x5de28e,_0x6c9e46=te[_0x1e9894(0x39f)](_0x5a2df1,_0x52e607,_0x2bce08,_0x57b547),_0x5abc55=te['getCoordByCell'](_0x11b1c4,_0x15a109,_0x2bce08,_0x57b547),{columnHeaderHeightAndMarginTop:_0xd15b2b}=_0x57b547,{startX:_0x1b2110,startY:_0x20132d}=_0x6c9e46,{endX:_0x1becf0,endY:_0x294fed}=_0x5abc55,_0x50c104=_0x1becf0-_0x1b2110,_0x3116fe=_0x294fed-_0x20132d,_0x59acbb={'labelPosition':_0x20132d-_0xd15b2b>=ue?_0x1e9894(0x22f):_0x1e9894(0x4db),'sheetID':_0x9a22c4,'range':_0x5de28e,'color':_0x5c82c9,'name':_0x510418,'selection':_0x3f1139,'left':_0x1b2110,'top':_0x20132d,'width':_0x50c104,'height':_0x3116fe,'evented':!0x1,'zIndex':mi};return new Ot(_0x510418,_0x59acbb);});_0x2bce08[_0x32dd3e(0x477)](_0x300722,di),this[_0x32dd3e(0x3b8)]=new Set(_0x300722);}[_0x945337(0x3bf)](){const _0xe65db5=_0x945337;var _0x3e34c3;(_0x3e34c3=this[_0xe65db5(0x3b8)])==null||_0x3e34c3[_0xe65db5(0x278)](_0x566d60=>_0x566d60[_0xe65db5(0x1eb)]());}[_0x945337(0x419)](){const _0x528281=_0x945337;return te[_0x528281(0x2b9)](this['_context'][_0x528281(0x42a)],this['_context']);}};ke=gi([Ae(0x1,a[_0x945337(0x4fa)](te['SheetSkeletonManagerService'])),Ae(0x2,a['Inject'](ie)),Ae(0x3,a[_0x945337(0x4fa)](a['ThemeService']))],ke);function Ii(_0x23850c){const _0x1120d8=_0x945337,_0x4e8b12=new Map();return _0x23850c[_0x1120d8(0x278)](_0x2883f0=>{const _0x14d839=_0x1120d8;if(_0x4e8b12[_0x14d839(0x384)](_0x2883f0[_0x14d839(0x2a9)])){const _0x31f281=_0x4e8b12[_0x14d839(0x3eb)](_0x2883f0[_0x14d839(0x2a9)]);_0x31f281[_0x14d839(0x508)]+=',\x20'+_0x2883f0[_0x14d839(0x508)];}else _0x4e8b12[_0x14d839(0x4a8)](_0x2883f0[_0x14d839(0x2a9)],_0x2883f0);}),Array[_0x1120d8(0x3f2)](_0x4e8b12[_0x1120d8(0x27f)]());}var M=function(){const _0x1d8d38=_0x945337;return M=Object[_0x1d8d38(0x33f)]||function(_0x1d15be){const _0x10d6b0=_0x1d8d38;for(var _0x3a2043,_0x455f00=0x1,_0x38d634=arguments[_0x10d6b0(0x3f0)];_0x455f00<_0x38d634;_0x455f00++){_0x3a2043=arguments[_0x455f00];for(var _0x3f5ec5 in _0x3a2043)Object['prototype'][_0x10d6b0(0x47c)][_0x10d6b0(0x441)](_0x3a2043,_0x3f5ec5)&&(_0x1d15be[_0x3f5ec5]=_0x3a2043[_0x3f5ec5]);}return _0x1d15be;},M[_0x1d8d38(0x319)](this,arguments);},pi=function(_0x43af07,_0x430b1c){const _0x535be6=_0x945337;var _0xffdf0={};for(var _0x4e2ed2 in _0x43af07)Object['prototype'][_0x535be6(0x47c)]['call'](_0x43af07,_0x4e2ed2)&&_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2)<0x0&&(_0xffdf0[_0x4e2ed2]=_0x43af07[_0x4e2ed2]);if(_0x43af07!=null&&typeof Object[_0x535be6(0x34e)]==_0x535be6(0x408)){for(var _0x2f1599=0x0,_0x4e2ed2=Object['getOwnPropertySymbols'](_0x43af07);_0x2f1599<_0x4e2ed2['length'];_0x2f1599++)_0x430b1c[_0x535be6(0x1a0)](_0x4e2ed2[_0x2f1599])<0x0&&Object[_0x535be6(0x4c5)][_0x535be6(0x242)][_0x535be6(0x441)](_0x43af07,_0x4e2ed2[_0x2f1599])&&(_0xffdf0[_0x4e2ed2[_0x2f1599]]=_0x43af07[_0x4e2ed2[_0x2f1599]]);}return _0xffdf0;},qe=U[_0x945337(0x43e)](function(_0x1de81e,_0x32e8e6){const _0x222901=_0x945337;var _0x1ad02b=_0x1de81e[_0x222901(0x42b)],_0x281d90=_0x1de81e['id'],_0x351cc9=_0x1de81e[_0x222901(0x320)],_0x99b8b3=_0x1de81e['extend'],_0x4ac30f=pi(_0x1de81e,[_0x222901(0x42b),'id',_0x222901(0x320),_0x222901(0x4ca)]),_0x1e80bd='univerjs-icon\x20univerjs-icon-'[_0x222901(0x53d)](_0x281d90,'\x20')[_0x222901(0x53d)](_0x351cc9||'')[_0x222901(0x302)](),_0x527902=U['useRef']('_'[_0x222901(0x53d)](bi()));return Dt(_0x1ad02b,''[_0x222901(0x53d)](_0x281d90),{'defIds':_0x1ad02b['defIds'],'idSuffix':_0x527902[_0x222901(0x262)]},M({'ref':_0x32e8e6,'className':_0x1e80bd},_0x4ac30f),_0x99b8b3);});function Dt(_0x4364e3,_0x369eed,_0x1409ff,_0x488054,_0x1a5a9d){const _0x48f674=_0x945337;return U[_0x48f674(0x1b0)](_0x4364e3['tag'],M(M({'key':_0x369eed},Ci(_0x4364e3,_0x1409ff,_0x1a5a9d)),_0x488054),(Ei(_0x4364e3,_0x1409ff)[_0x48f674(0x362)]||[])[_0x48f674(0x2c1)](function(_0x3e6013,_0x1f98da){const _0x3ce9d4=_0x48f674;return Dt(_0x3e6013,''[_0x3ce9d4(0x53d)](_0x369eed,'-')[_0x3ce9d4(0x53d)](_0x4364e3[_0x3ce9d4(0x231)],'-')[_0x3ce9d4(0x53d)](_0x1f98da),_0x1409ff,void 0x0,_0x1a5a9d);}));}function Ci(_0x18428a,_0x48524e,_0x127852){const _0x1f8298=_0x945337;var _0x5c02e6=M({},_0x18428a[_0x1f8298(0x53e)]);_0x127852!=null&&_0x127852[_0x1f8298(0x306)]&&_0x5c02e6['fill']===_0x1f8298(0x306)&&(_0x5c02e6[_0x1f8298(0x18c)]=_0x127852[_0x1f8298(0x306)]);var _0x448bd4=_0x48524e[_0x1f8298(0x1c4)];return!_0x448bd4||_0x448bd4['length']===0x0||(_0x18428a[_0x1f8298(0x231)]===_0x1f8298(0x4b6)&&_0x5c02e6[_0x1f8298(0x233)]&&(_0x5c02e6[_0x1f8298(0x233)]=_0x5c02e6[_0x1f8298(0x233)]+_0x48524e[_0x1f8298(0x48d)]),Object[_0x1f8298(0x519)](_0x5c02e6)[_0x1f8298(0x278)](function(_0x51b0ec){const _0x4d6d17=_0x1f8298;var _0x591810=_0x51b0ec[0x0],_0x3c68b1=_0x51b0ec[0x1];typeof _0x3c68b1==_0x4d6d17(0x312)&&(_0x5c02e6[_0x591810]=_0x3c68b1[_0x4d6d17(0x559)](/url\(#(.*)\)/,_0x4d6d17(0x26e)[_0x4d6d17(0x53d)](_0x48524e[_0x4d6d17(0x48d)],')')));})),_0x5c02e6;}function _0x336a(){const _0x512a6d=['_assignedColors','M0\x200H16V16H0z','url(#on-line-single_clip0_910_349)','executeCommand','toggleOffline','editingUnit','name','clearTimeout','disposeWithMe','_onUserJoin','_sheetTransformSelectionsService','/object/','[SyncedState]:\x20received\x20acknowledgement.','_onOffline','/collaborator','_transformPreviousActiveRange','[UniverCollaborationClientPlugin]','handleInsertCol','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','merge','[PendingState]:\x20received\x20rejection.','&source=','_onMessage','entries','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_event$','_onCombEvent','FETCH_MISSING','getTypeOfUnitAdded$','reverse','_transitionLocked','_onRemoteACK','UUID','_getSignURL','patch','allowed','_memberService','IURLService','getCurrentUnitForType','_sendHeartbeatTimer','_HTTPService','_initResize','BehaviorSubject','_scene','UNIVER_UNKNOWN','_stopTelemetryCollaborationNewChangeset','_urlService','complete','delete','_initModules','_id','HEARTBEAT_TIMEOUT','number','APPLY_REJECT','RxDisposable','setItem','_disableEditing','@univerjs/docs-ui','UNIVER_SHEET','concat','attrs','selections','/role','SNAPSHOT_INVALID_SNAPSHOT','ranges','mapDocumentTypeToUniverType','getMergeData','with','moveTo','AUTHZ_URL_KEY','getTime','_sendingTimer','onSyncEditingCollabCursor','currentColor','ERROR_IMAGE_TYPE','_snapshotServerService','SNAPSHOT_SERVER_URL_KEY','getRangePointData','pipe','take','isTransformMutationsWithChangesetFailure','@univerjs/ui','_socketReady','_notificationService','_shapes','HttpImport','transformChangesets','replace','init','LOCAL_CACHE_INTERVAL','_imageSourceCache','fetchMissingChangesets','&assign=','path','241760yEVuai','appendMutation','_socketService','_drawRectRange','AWAITING_WITH_PENDING','_entities','hide','collabStatus.fetchMiss','_roomMembers','_userManagerService','getMemberID','urlChange$','_socket$','SUBMIT_CHANGESET','DeleteRangeMoveLeftCommandId','image/png','visibilitychange','isEditing','conflict.title','CHANGESET_REJ','RevisionService','APPLY_PERMISSION_DENIED','_localCacheService','_getUndoStack','distinctUntilChanged','_rescheduleHeartbeat','_collaborationTimeoutTimer','IUniverInstanceService','[DataLoaderController]','image/bmp','useCallback','getCurrentSelections','reduce','_updateLocalCache','_collabCursorState$','_send','UNIVER_SLIDE','_getCtorByUniverType','eventID','_state','_docTransformIMECacheService','getUnhiddenWorksheets','handleDeleteRangeMoveUp','_sessions','getSkeleton','update','m2Prime','saveSheetBlock','requestParams','1086932aayVoP','params','socket\x20close','size','_compressMutationService','whenReady','updateMember','_docStateChangeManagerService','collaboration.closeRoom','readAsDataURL','11430iuYShX','PERMISSION_REJ','LocalUndoRedoService','Optional','@univerjs/telemetry','add','LICENSE_IMPORT_SIZE_EXCEEDED','fill','activeSheet$','getTypeOfUnitDisposed$','resolve','PERMISSION_DENIED','setTimeout','300462gpYfov','round','_pendingMutations','getViewport','clear','_color','state','_registerDependencies','b64DecodeUnicode','asObservable','_createHandler','Warning','disableLocalCache','InsertRangeMoveDownCommandId','indexOf','shouldCloseConn','PENDING','mapTo','ColorKit','getImageSourceCache','HTTPRequest','handleDeleteRangeMoveLeft','getInterceptPoints','_collaborationController','CompressMutationService','json','engine','_type','objectActions','title','createElement','onTransformRemoteChangesetByIMECache','getSheetBySheetId','_localStorageService','InsertSheetMutation','removeParam','awaitingChangeset','_remoteChangesetQueue','_onCursorUpdate','YUUMI_URL_COL_OUT_OF_RANGE','_saveCache','_heartbeatTimer','width','YUUMI_SUBSCRIPTION_NOT_FOUND','_acknowledgedAwaitingChangeset','_sendHeartbeat','_getCurrentRevision','offline','getRoom','downloadEndpointUrl','defIds','2864HHgxkI','routeKey','_handleEvent','HEARTBEAT_TIMEOUT_KEY','_replaceFileID','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','INVALID_ARGUMENT','_waitCount','_joinRoom','DesktopCollaborationStatusDisplayController','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','transformUndoRedo','transformIMECache','USERS_ENTER','_onConnectionOpen','onRemoteChangeset','saveOfflineData','_updateURLWithCurrentState','_getSnapshotAPIPrefix','throttleTime','ERROR_IMAGE','unitID','_saveTaskMap','filter','isInternalEditorID','confirm','_revisionService','DocSelectionManagerService','@univerjs-pro/collaboration','InsertRowCommandId','withCredentials','commentUpdateEvent','_clearCollaborationTimeoutTimer','/-/object/-/batch_allowed','_getAnchorBounding','url','_session','addEventListener','dispose','awaiting_with_pending','/block/','objectID','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onlyLocal','CHANGESET_ACK','UnitSnapshot','LEAVE','_onRecvEvent','_onRemoteChangeset','_undoStacks','IConfigService','Rect','m1Prime','ACTIVE_UNIT_EVENT_CHANNEL','runRefRangeMutations','rxjs','Plugin','RegularPolygon','Rectangle','collab-text-anchor-','transformRemoteChangeset','UNRECOGNIZED','_name','_clearOtherTimers','div','UPDATE_CURSOR','getVpScrollXYInfoByPosToVp','image/jpeg','_permissionService','session.room-full','[OfflineState]:\x20received\x20acknowledgement.','code','updateCursorEvent','onStateChange','_unitID','_onCursorDelete','NodePositionConvertToRectRange','unitId','handleInsertRow','unit-cache-','subUnitId','UNIVER_PROJECT','_undoRedoService','_toggleOffline','url(#off-line-single_clip0_910_343)','_localeService','src','_clearHeartbeatTimer','parseChangesetToProtocol','getParam','RemoveColCommandId','OnLineSingle','getSheetId','capture','fromEvent','getUniverSheetInstance','_range','registerBeforeClose','generateRandomId','_roomMembers$','TOO_MANY_REQUESTS','_beforeCloseService','color','_snapshotService','stringify','HTTPService','top','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','tag','_throwTelemetryCollaborationNewChangeset','xlink:href','collabStatus.notCollab','handleIRemoveRow','@univerjs/engine-render','_telemetryInfo','useDependency','_colorAssignService','find','_handleJoinEvent','CollaborationEntity','signUrlServerUrl','collabCursorState$','event$','hovered','roomInfos','propertyIsEnumerable','type','InsertColCommandId','liveShareNewHost','_getMergeRange','cursorInfo$','registerHTTPInterceptor','exhaustSavingTask','rev','defineProperty','pluginName','loginUrlKey','EffectRefRangId','fetch_missing','_showConflictNotification','serializeRangeWithSheet','visibilityState','leaveEvent','_unitOnClients','getFocusedUnit','_commandService','_uiPartsService','getConfig','status$','range','ws://127.0.0.1:8000/universer-api/comb/connect','max','ITelemetryService','_docSyncEditingCollabCursorService','HELLO','_isPermissionRej','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','current','IDLE','sheetID','/universer-api/stream/file/upload','_http','toggleOnline','IUIPartsService','key','univer-pro.collaboration-client.single-active-unit-service','list','triggerDblclick','getOffsetConfig','url(#$1','@univerjs/design','_online','syncEditingCollabCursor','_setupSubUnitSync','APPLY_NON_SEQUENTIAL_REVISION','fillText','DisposableCollection','UNDEFINED','_renderManagerService','forEach','reject','COLORS','rgba(255,\x20255,\x20255,\x200.01)','getUnitType','getCollabEntity','x-univer-host','values','append','ALREADY_EXISTS','[CollaborationSessionService]','conflict.content','endColumn','_onLocalMutation','_colorIndex','newValue','_loadSheet','revision','subscribeEvent','enableAuthServer','fetching\x20missing\x20changesets\x20from\x20','registerComponent','1em','clipPath','sessionStatus','@univerjs/drawing','DependentOn','UniverIcon','onRemoteRej','DocCollaborationEntity','toDisposable','registerRenderModule','WorkbookEditablePermission','LocaleService','collaMsg','UnitEmbedded','joinRsp','[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.','COMPLETION_FINISHED','setAlpha','HEADER_MENU','_commentUpdate$','send','BASE64','ThemeService','put','_sheetSkeletonManagerService','_queuedRemoteChangesets','UniverCollaborationPlugin','selection','startsWith','memberID','assignAColorForMemberID','[CollaborationEntity]','encodeURIComponent','collabWebSocketUrl','5cbmHJn','_cachedData','IMessageService','_syncEditingCollabCursor','combineLatest','Injector','/object','DEFAULT_FILE_NAME','_telemetryService','getSheetObject','...','_initStatusComponent','_schedule','not_collab','createCollaborator','FETCH_MISS','CollaborationStatus','map','CHANGESET_REVISION_CONFILICT','online','IRenderManagerService','_unitStatus','getCollabCursors$','_transformUndoredo','LIVESHARE_REQUEST_HOST','AWAITING','_transformStack','getCellPositionByOffset','/resources','history','WebSocketService','objects','loadOfflineData','MSG_FOR_ERROR','Undefined','_initRequestHeader','LOGIN_URL_KEY','IRemoteInstanceService','getValue','_incrementRevisionNumber','SHOULD_CLOSE_CONN','focused$','LICENSE_MAX_UNITS_EXCEEDED','getAttachHeader','_waitForHeartbeatResponse','_getSendChangesetTimeout','[CollaborationState]:\x20apply\x20error!','searchParams','parse','none','fetchMiss','RefRangeService','#fff','makeDirty','_handleLeaveEvent','onlineStatus','error','onRendered','socket$','_initStatusListener','dispose$','replaceState','univer-pro.collaboration-client-socket-service','INTERNAL_ERROR','isValidRectRange','encode','\x20in\x20_schedule.','stopTime','RECV','_cursorShapes','@univerjs/network','_submitChangeset','height','baseRev','failed\x20to\x20apply\x20missed\x20changesets!','CommandType','/fetchmissing?from=','OTHER_CLIENTS_EDITING','deepClone','_applyRemoteChangeset','UniverCollaborationClientPlugin','isTransformChangesetsSuccess','trim','_getScale','backgroundColor','CollaborationSocketService','colorChannel1','getCurrentUser','/universer-api/oidc/authpage','#FFF','CollaborationSession','members','LIVESHARE_FETCH_OPERATIONS','Module','getSheetBlock','create','_sessionStatus$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','string','_clearLocalCache','onload','POST','RichTextEditingMutation','auth.needGotoLoginAlert','session','apply','_updateState','snapshot','storage','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onTransformChange$','_initMergeInterceptor','className','getUnitStatus$','close','UNIVER_COLLABORATION_CLIENT_PLUGIN','onMissingChangesets','displayName','_onJoinRoomEvent','_document','_singleActiveUnitService','lineTo','_startSheetCollabCursor','_cursor','/new_changes','_entityInit$','getColor','substring','setInterval','result','_setupBeforeClosingHandler','doc.mutation.rich-text-editing','_transformIMECache','_scheduleCollaborationTimeoutTimer','ThresholdInterceptorFactory','_univerInstanceService','_shouldReportTelemetry','_disabled','getUnitOnRev','loadDoc','then','_onRemoteRejected','_labelPosition','assign','change$','origin','setCurrentUser','close$','onRemoteAck','setActiveRange','unsubscribe','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','0\x200\x2017\x2016','DocIMEInputManagerService','enableOfflineEditing','LICENSE_DISTRO_REJECTED','transformMutation','_clearRedo','getOwnPropertySymbols','_loadDoc','closeSession','getDocRanges','getUnitId','_backgroundColor','min','UNAUTHENTICATED','_collabCursorController','_getUploadFileURL','pending','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_status$','toRgbString','/universer-api/comb','_checkMissing','/unit/','body','updatePermissionObjEvent','COMPRESS_MUTATION_APPLY','children','_executeRemoteChangeset','1031720ckQJOD','flatMap','Shape','MessageType','deserializeToCombResponse','requireSession','createIdentifier','DeleteRangeMoveUpCommandId','mergeOverrideWithDependencies','contains','Subject','MUTATION','labelPosition','ERROR_EXCEED_SIZE','Error','getItem','COLLAB_SUBMIT_CHANGESET_URL','data','_updateCollabCursors','collabSubmitChangesetUrl','location','_scheduleSaving','parseProtocolChangeset','VIEW_MAIN','changesets','collaboration-client.offline-data-not-saved','setUndoRedoMutationParamsCache','sessionStatus$','HEARTBEAT_INTERVAL','@univerjs/sheets','setShapeProps','/allowed','has','_refRangeService','arc','deserializeRangeWithSheet','session.collaboration-timeout','session.will-retry','measureText','IUndoRedoService','includes','fillRule','NOT_COLLAB','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_ws','resize','_messageService','[CollaborationSession]','getAncestorScale','UNIVER_DOC','retryConnectingInterval','subscribe','_initCloseConn','JOINING','sequenceExecute','serializeCombRequest','onCommentUpdate','createInstance','drawWith','getCoordByCell','YUUMI_RATE_OVER_LIMIT','isPermissionRej','infoRsp','LocalCacheService','blue400','CollaborationSessionService','MoveRangeCommandId','socketService','INotificationService','@univerjs/rpc','_drawTextRange','WebURLService','duration','onCommandExecuted','connection\x20error','onPointerMove$','push','UniverInstanceType','FileId','_getAPIPrefix','rxjs/operators','touchDependencies','permission.content','_unlockTransition','_cursors','interceptor','awaiting','LICENSE_EXPORT_SIZE_EXCEEDED','/universer-api/file/{fileID}/sign-url','MergeInterceptorFactory','_refreshCollabCursors','_removeCollabCursors','jiqing500','saveImage','Unknown\x20user','_createSocket','socket\x20open.','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','NEW_CHANGESETS','onlineStatusTitle','unshift','_onUserLeave','next','USERS_LEAVE','SnapshotServerOverHTTPService','LIVESHARE_TERMINATE','transformByState','COLLAB_WEB_SOCKET_URL_KEY','currentSkeleton$','_hideTimer','onTransformIME','conflict','_scheduleClearOtherTimer','_handleHeartbeatEvent','react','EmptyMutation','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','VIEWPORT_KEY','off-line-single','isActive','message$','_injector','onMouseMove','SEND_CHANGESET_TIMEOUT_KEY','_anchorDot','collaboratorID','getOwnPropertyDescriptor','originalMeta','_listenToOnlineEvent','_candidateSocket','UNKNOWN_CODE','APPLY_REVISION_CONFILICT','_context','_updateSubUnitFromURLParams','enableLocalCache','get','3969847YPwRmY','collabStatus.synced','debounceTime','actions','length','CollaborationStatusDisplay','from','_docSkeletonManagerService','_instanceService','_onConflict','getUndoRedoMutationParamsCache','isTransformMutationsWithChangesetSuccess','currentTheme$','_onFetchMissResult','BuiltInUIPart','row','fromEventSubject','_collaborationPaused','_socket','catch','ICommandService','_anchor','collaboration.single-unit.warning','SheetsSelectionsService','_handler','now','collabStatus.conflict','_collabSessionService','function','href','fetchThroughInterceptors','AuthzIoHttpService','getResourcesRequest','saveChangeset','UserManagerService','\x0aAfter:\x20','_listenToOfflineEvent','show','_fetchMissChangesets','/universer-api/snapshot','IPermissionService','_toggleOnline','_change$','_startCollaboration','@univerjs/engine-formula','_getSheetObject','_clearUndo','_scheduleTimestamp','removeMember','uni.network.url-service','refreshPermission','collab-rect-range-','isTransformMutationFailure','shareReplay','_updateStatus','_awaitingChangeset','copyFileMeta','registerRefRange','[CollaborationSessionService]:\x20socket\x20error','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_members','ITransformService','unit','icon','fillStyle','_themeService','ONLINE','method','?url=','headers','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','objectType','roles','mutations','getCurrentRevOfUnit','_retryCount','SNAPSHOT_URL_KEY','evenodd','_lastPointer','_startDocCollabCursor','takeUntil','Workbook','forwardRef','textEncoder','initWorkbookPermissionChange','call','switchMap','onMissedChangesetFetched','/-/object/list','open$','onReady','DocSkeletonManagerService','_transformSelections','transform','setConfig','restore','debug','status','c1Prime','onPointerEnter$','_drawAnchor','LOCAL_CACHE_INTERVAL_KEY','createSocket','clearInterval','onTransformSelections','INGEST','_transformUndoRedoStack','popstate','_init','collaborators','HttpExport','Disposable','split','unknown','_socketMessageSubscription','uploadFileServerUrl','UNKNOWN_CMD','1187826nlirzv','startColumn','transformSelections','_decreaseWaiting','_tryEnsureSocket','toString','getMember','onSendChangeset','_removeRoom','findNodePositionByCharIndex','SetWorksheetActivateCommand','SEND_CHANGESET_TIMEOUT','subunit','registerOnClose','purple300','updatePermissionPoint','getWorkbookSelections','_ensureSubject','onlineStatusIcon','getRenderById','_timeoutTimer','handleInsertRangeMoveDown','addObjects','updateOfflineData','ImageIoService','[CollaborationUndoRedoService]','setParam','hasOwnProperty','/rev/','_clearScheduledTask','\x0aCurrent:\x20','_retryConnectingTimer','_draw','OFFLINE','_tryReconnect','black','textRanges','CONFLICT','LIVESHARE_OPERATION','ImageSourceType','HEARTBEAT','_createInitialStateImpl','TEXT_RANGE_LAYER_INDEX','ILogService','idSuffix','isArray','SNAPSHOT_HAS_BEEN_REMOVED','Vector2','_collaborationSessionService','YUUMI_UNABLE_LOAD_URL','roomMembers$','deleteCollaborator','_substituteUndoStack','cursorInfo','_transformRemoteChangesetByIMECache','0\x200\x2016\x2016','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_scheduleHeartbeat','_hovered','debounce','listRoles','IImageIoService','@univerjs/core','[PendingState]:\x20received\x20acknowledgement.','c2Prime','_getAPIPrefixPath','getImage','resend','addObject','verdancy600','_updateLocalCursor','set','Error\x20on\x20receiving\x20event','fromCollab','save','ImageUploadStatusType','synced','_logService','image/gif','compose','getCollabEntity$','ISnapshotServerService','_selfUnitIDs','column','error$','use','PSEUDO_FETCH_MISSING_RESULT','collaboration_new_changeset','svg','_getRedoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_cursorInfo$','collaboration-client.config','getActiveSheet','/universer-api/authz','onPointerLeave$','_startTelemetryCollaborationNewChangeset','COMPRESS_MUTATION_SEND','off-line-single_clip0_910_343','pauseCollaboration','prototype','_eventUnsubscribe','_initCommandExecutedListener','text','disposeUnit','extend','_replayCachedMutations','reconnect','_commentService','_lockTransition','[OfflineState]:\x20received\x20changeset.','_initEventListeners','SetSelectionsOperation','_substituteRedoStack','?size=','NO_OTHER_CLIENTS_EDITING','DataLoaderController','authzUrl','delay','incrementRevOfUnit','pushState','post','bottom','NOT_FOUND','SheetCollaborationEntity','_onConnectionFailed','transformMutationsWithChangeset','_textBubble','sheets','JOIN','univer-online','collab-client.tooltip.reconnect','beginPath','univer-online-status-icon','_createInitialState','@univerjs-pro/license','userID','Tools','CollaborationEvent','handleMoveRange','_httpService','CollaborationController','cmd','IBeforeCloseService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformService','on-line-single_clip0_910_349','univer-online-status-title','localeService','CONNECTOR_DATA_TOO_LARGE','CommentService','_configService','_removeClearOtherTimer','Inject','SYNCED','_state$','file','_config','_hover','LIVESHARE_NEW_HOST','_clearTimeoutTimer'];_0x336a=function(){return _0x512a6d;};return _0x336a();}function Ei(_0x4e7f35,_0x3e7b44){const _0x1b45f2=_0x945337;var _0x498380,_0x40b3a5=_0x3e7b44[_0x1b45f2(0x1c4)];return!_0x40b3a5||_0x40b3a5['length']===0x0?_0x4e7f35:_0x4e7f35[_0x1b45f2(0x231)]==='defs'&&(!((_0x498380=_0x4e7f35[_0x1b45f2(0x362)])===null||_0x498380===void 0x0)&&_0x498380['length'])?M(M({},_0x4e7f35),{'children':_0x4e7f35['children'][_0x1b45f2(0x2c1)](function(_0x3c8905){const _0xf5e05c=_0x1b45f2;return typeof _0x3c8905['attrs']['id']==_0xf5e05c(0x312)&&_0x40b3a5&&_0x40b3a5[_0xf5e05c(0x1a0)](_0x3c8905[_0xf5e05c(0x53e)]['id'])>-0x1?M(M({},_0x3c8905),{'attrs':M(M({},_0x3c8905['attrs']),{'id':_0x3c8905[_0xf5e05c(0x53e)]['id']+_0x3e7b44['idSuffix']})}):_0x3c8905;})}):_0x4e7f35;}function bi(){const _0x243240=_0x945337;return Math['random']()['toString'](0x24)[_0x243240(0x32f)](0x2,0x8);}qe[_0x945337(0x325)]=_0x945337(0x293);var Ti={'tag':_0x945337(0x4b9),'attrs':{'fill':_0x945337(0x2e1),'viewBox':_0x945337(0x498),'width':_0x945337(0x28e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x219)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':_0x945337(0x54b),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':'round','strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x945337(0x4c3)},'children':[{'tag':'path','attrs':{'fill':_0x945337(0x2e4),'d':_0x945337(0x503)}}]}]}],'defIds':[_0x945337(0x4c3)]},yt=U[_0x945337(0x43e)](function(_0x1ca6f7,_0x3dc532){const _0x4335ee=_0x945337;return U[_0x4335ee(0x1b0)](qe,Object['assign']({},_0x1ca6f7,{'id':_0x4335ee(0x3da),'ref':_0x3dc532,'icon':Ti}));});yt[_0x945337(0x325)]='OffLineSingle';var Ri={'tag':_0x945337(0x4b9),'attrs':{'fill':'none','viewBox':_0x945337(0x348),'width':_0x945337(0x28e),'height':_0x945337(0x28e)},'children':[{'tag':'g','attrs':{'clipPath':_0x945337(0x504)},'children':[{'tag':_0x945337(0x55f),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x945337(0x193),'strokeLinejoin':_0x945337(0x193),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x945337(0x28f),'attrs':{'id':_0x945337(0x4f3)},'children':[{'tag':_0x945337(0x55f),'attrs':{'fill':_0x945337(0x2e4),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ut=U[_0x945337(0x43e)](function(_0x56657c,_0x24b3c9){const _0x423fe0=_0x945337;return U[_0x423fe0(0x1b0)](qe,Object['assign']({},_0x56657c,{'id':'on-line-single','ref':_0x24b3c9,'icon':Ri}));});Ut[_0x945337(0x325)]=_0x945337(0x220);function Pt(_0x2ab697){const _0x5cd919=_0x945337;var _0x8e07f3,_0x158d4f,_0x1aa24f='';if(typeof _0x2ab697=='string'||typeof _0x2ab697==_0x5cd919(0x536))_0x1aa24f+=_0x2ab697;else{if(typeof _0x2ab697=='object'){if(Array[_0x5cd919(0x48e)](_0x2ab697)){var _0x112610=_0x2ab697[_0x5cd919(0x3f0)];for(_0x8e07f3=0x0;_0x8e07f3<_0x112610;_0x8e07f3++)_0x2ab697[_0x8e07f3]&&(_0x158d4f=Pt(_0x2ab697[_0x8e07f3]))&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}else{for(_0x158d4f in _0x2ab697)_0x2ab697[_0x158d4f]&&(_0x1aa24f&&(_0x1aa24f+='\x20'),_0x1aa24f+=_0x158d4f);}}}return _0x1aa24f;}function Oi(){const _0x3ee2d8=_0x945337;for(var _0x34b847,_0x29019b,_0x338aee=0x0,_0x4a5559='',_0x25fc35=arguments[_0x3ee2d8(0x3f0)];_0x338aee<_0x25fc35;_0x338aee++)(_0x34b847=arguments[_0x338aee])&&(_0x29019b=Pt(_0x34b847))&&(_0x4a5559&&(_0x4a5559+='\x20'),_0x4a5559+=_0x29019b);return _0x4a5559;}const Di=_0x945337(0x4e6),yi=_0x945337(0x4f4),Ui='univer-online-status',Pi=_0x945337(0x4e3),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x314525){const _0x416818=_0x945337;switch(_0x314525){case y[_0x416818(0x482)]:return'collabStatus.offline';case y[_0x416818(0x486)]:return _0x416818(0x406);case y[_0x416818(0x2bf)]:return _0x416818(0x567);case y['NOT_COLLAB']:return _0x416818(0x234);case y['PENDING']:case y['AWAITING']:case y[_0x416818(0x564)]:return'collabStatus.syncing';case y[_0x416818(0x4fb)]:return _0x416818(0x3ed);}}function wt(_0x4e2955){const _0x367217=_0x945337,{status$:_0x531e4a}=_0x4e2955,_0x305a5e=N['useObservable'](_0x531e4a,y['NOT_COLLAB']),_0x2e1e3d=a[_0x367217(0x238)](a[_0x367217(0x299)]),_0x33d2be=a['useDependency'](exports[_0x367217(0x3a5)]),_0x9cd7e4=_0x305a5e!==y[_0x367217(0x482)],_0x2771d5=_0x2e1e3d['t'](Mi(_0x305a5e)),_0x2ac032=Oi(le[_0x367217(0x2e7)],{[le['online']]:_0x9cd7e4,[le['offline']]:!_0x9cd7e4}),_0x2ae141=_0x9cd7e4?U[_0x367217(0x1b0)](Ut,null):U['createElement'](yt,null),_0x5ec467=U[_0x367217(0x57e)](()=>{const _0x3410f9=_0x367217;_0x9cd7e4||_0x33d2be[_0x3410f9(0x4cc)]();},[_0x9cd7e4,_0x33d2be]);function _0x5b59a1(){const _0x32e0fc=_0x367217;return U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':_0x2ac032,'onClick':_0x5ec467},U[_0x32e0fc(0x1b0)](_0x32e0fc(0x205),{'className':le[_0x32e0fc(0x473)]},_0x2ae141),U['createElement']('div',{'className':le[_0x32e0fc(0x3c7)]},_0x2771d5));}return _0x9cd7e4?_0x5b59a1():U[_0x367217(0x1b0)](X['Tooltip'],{'title':_0x2e1e3d['t'](_0x367217(0x4e4))},_0x5b59a1());}var Ni=Object[_0x945337(0x24b)],Ai=Object[_0x945337(0x3e2)],Li=(_0x307e80,_0xdca99a,_0x1e74d3,_0x867667)=>{for(var _0x857a0d=_0x867667>0x1?void 0x0:_0x867667?Ai(_0xdca99a,_0x1e74d3):_0xdca99a,_0x57f97d=_0x307e80['length']-0x1,_0x48405f;_0x57f97d>=0x0;_0x57f97d--)(_0x48405f=_0x307e80[_0x57f97d])&&(_0x857a0d=(_0x867667?_0x48405f(_0xdca99a,_0x1e74d3,_0x857a0d):_0x48405f(_0x857a0d))||_0x857a0d);return _0x867667&&_0x857a0d&&Ni(_0xdca99a,_0x1e74d3,_0x857a0d),_0x857a0d;},Se=(_0x3d146f,_0x59a9f0)=>(_0x125e27,_0x4885ae)=>_0x59a9f0(_0x125e27,_0x4885ae,_0x3d146f);exports[_0x945337(0x1ce)]=class extends a[_0x945337(0x45b)]{constructor(_0x2937cd,_0x13741a,_0x1c2902,_0x3d4c23){const _0xc3f7d2=_0x945337;super(),d(this,_0xc3f7d2(0x35a),new v[(_0xc3f7d2(0x52c))](y[_0xc3f7d2(0x38e)])),(this[_0xc3f7d2(0x337)]=_0x2937cd,this[_0xc3f7d2(0x257)]=_0x13741a,this['_injector']=_0x1c2902,this[_0xc3f7d2(0x1a9)]=_0x3d4c23,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x945337(0x2eb)](){const _0x3c2ef3=_0x945337;this[_0x3c2ef3(0x50a)](this['_univerInstanceService'][_0x3c2ef3(0x2d9)][_0x3c2ef3(0x550)](v[_0x3c2ef3(0x442)](()=>{const _0x28fc32=_0x3c2ef3,_0x489930=this[_0x28fc32(0x337)][_0x28fc32(0x255)]();return _0x489930?this[_0x28fc32(0x1a9)][_0x28fc32(0x4b1)](_0x489930['getUnitId']()):v['of'](null);}),v[_0x3c2ef3(0x442)](_0x4e8224=>_0x4e8224?_0x4e8224[_0x3c2ef3(0x259)]:v['of'](y[_0x3c2ef3(0x38e)])))['subscribe'](_0x134090=>{const _0x48d68f=_0x3c2ef3;this['_status$'][_0x48d68f(0x3ca)](_0x134090);}));}[_0x945337(0x2bb)](){const _0x5b2fc2=_0x945337;this['disposeWithMe'](this[_0x5b2fc2(0x257)][_0x5b2fc2(0x28d)](N[_0x5b2fc2(0x3fa)][_0x5b2fc2(0x2a0)],()=>a['connectInjector'](ji({'status$':this[_0x5b2fc2(0x35a)][_0x5b2fc2(0x19b)]()}),this['_injector'])));}},exports[_0x945337(0x1ce)]=Li([Se(0x0,a[_0x945337(0x57b)]),Se(0x1,N[_0x945337(0x268)]),Se(0x2,a['Inject'](a[_0x945337(0x2b5)])),Se(0x3,a['Inject'](exports[_0x945337(0x4ee)]))],exports['DesktopCollaborationStatusDisplayController']);function ji(_0x32ff78){const {status$:_0x4a917e}=_0x32ff78;return function(){return U['createElement'](wt,{'status$':_0x4a917e});};}const ze=a[_0x945337(0x36a)](_0x945337(0x41d));var $i=Object[_0x945337(0x24b)],Hi=Object[_0x945337(0x3e2)],xi=(_0xabce67,_0x52147d,_0x42d62c,_0x4c59f8)=>{const _0x20b5e3=_0x945337;for(var _0x436d3f=_0x4c59f8>0x1?void 0x0:_0x4c59f8?Hi(_0x52147d,_0x42d62c):_0x52147d,_0x4d0914=_0xabce67[_0x20b5e3(0x3f0)]-0x1,_0x12e7e8;_0x4d0914>=0x0;_0x4d0914--)(_0x12e7e8=_0xabce67[_0x4d0914])&&(_0x436d3f=(_0x4c59f8?_0x12e7e8(_0x52147d,_0x42d62c,_0x436d3f):_0x12e7e8(_0x436d3f))||_0x436d3f);return _0x4c59f8&&_0x436d3f&&$i(_0x52147d,_0x42d62c,_0x436d3f),_0x436d3f;},ee=(_0x492fcf,_0x3b562d)=>(_0x4e3f29,_0x349aad)=>_0x3b562d(_0x4e3f29,_0x349aad,_0x492fcf);exports['DataLoaderController']=class extends a[_0x945337(0x538)]{constructor(_0x2ec97a,_0x458cf4,_0x2f92df,_0x1cdef2,_0x7c0e74,_0x15fe94){const _0x52a799=_0x945337;super(),this[_0x52a799(0x530)]=_0x2ec97a,this[_0x52a799(0x4ae)]=_0x458cf4,this[_0x52a799(0x256)]=_0x2f92df,this['_localCacheService']=_0x1cdef2,this[_0x52a799(0x22c)]=_0x7c0e74,_0x15fe94?_0x15fe94==null||_0x15fe94[_0x52a799(0x180)]()[_0x52a799(0x33c)](()=>this[_0x52a799(0x458)]()):(this[_0x52a799(0x4ae)][_0x52a799(0x44c)](_0x52a799(0x57c),_0x52a799(0x230)),this[_0x52a799(0x458)]());}async[_0x945337(0x458)](){const _0x5b38bc=_0x945337,_0x13c5e0=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)](_0x5b38bc(0x42a)),_0x2e7dce=this[_0x5b38bc(0x530)][_0x5b38bc(0x21e)]('type');if(!_0x13c5e0||!_0x2e7dce){this[_0x5b38bc(0x4ae)][_0x5b38bc(0x44c)](_0x5b38bc(0x57c),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x2e7dce)){case j[_0x5b38bc(0x53c)]:{const _0x4f4e45=await this[_0x5b38bc(0x288)](_0x13c5e0);this['_setupSubUnitSync'](_0x4f4e45);break;}case j[_0x5b38bc(0x395)]:{await this[_0x5b38bc(0x34f)](_0x13c5e0);break;}default:{this[_0x5b38bc(0x4ae)][_0x5b38bc(0x2e8)](_0x5b38bc(0x57c),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x945337(0x272)](_0x10faec){const _0x697f6d=_0x945337;await this[_0x697f6d(0x3e9)](_0x10faec),_0x10faec[_0x697f6d(0x18d)]['pipe'](v['takeUntil'](this[_0x697f6d(0x2ec)]))['subscribe'](_0x12df2d=>{const _0x27b19d=_0x697f6d;_0x12df2d&&this[_0x27b19d(0x1d6)](_0x12df2d);}),this[_0x697f6d(0x530)]['urlChange$'][_0x697f6d(0x550)](v[_0x697f6d(0x43c)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x10faec));}[_0x945337(0x1d6)](_0x424f43,_0x3a1f28=!0x1){const _0x14a353=_0x945337,_0x450af6=this[_0x14a353(0x530)]['getParam'](_0x14a353(0x46d));_0x424f43[_0x14a353(0x221)]()!==_0x450af6&&this[_0x14a353(0x530)][_0x14a353(0x47b)]('subunit',_0x424f43[_0x14a353(0x221)](),_0x3a1f28);}async[_0x945337(0x3e9)](_0x4165a0){const _0x1bc096=_0x945337;var _0x42e40c;const _0x38e89a=this[_0x1bc096(0x530)]['getParam'](_0x1bc096(0x46d));if(!_0x38e89a||!_0x4165a0[_0x1bc096(0x1b2)](_0x38e89a)){const _0x2e0c3e=_0x4165a0[_0x1bc096(0x173)]()[0x0],_0x446cdf=_0x4165a0[_0x1bc096(0x1b2)](_0x2e0c3e);if(!_0x446cdf)return;this[_0x1bc096(0x1d6)](_0x446cdf,!0x0),await this[_0x1bc096(0x256)]['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x2e0c3e});return;}((_0x42e40c=_0x4165a0[_0x1bc096(0x4be)]())==null?void 0x0:_0x42e40c[_0x1bc096(0x221)]())!==_0x38e89a&&await this[_0x1bc096(0x256)][_0x1bc096(0x505)](C[_0x1bc096(0x46b)]['id'],{'unitId':_0x4165a0[_0x1bc096(0x352)](),'subUnitId':_0x38e89a});}async[_0x945337(0x288)](_0x3cbca0){const _0x418c72=_0x945337;let _0x35d5d4=0x0;const _0x37683b=await this[_0x418c72(0x576)]['loadOfflineData'](_0x3cbca0);return _0x37683b&&(_0x37683b['awaitingChangeset']||_0x37683b['mutations'][_0x418c72(0x3f0)]!==0x0)&&(_0x35d5d4=_0x37683b[_0x418c72(0x24a)]),_0x35d5d4===0x0&&this[_0x418c72(0x4ae)][_0x418c72(0x44c)](_0x418c72(0x57c),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x418c72(0x22c)]['loadSheet'](_0x3cbca0,_0x35d5d4);}async[_0x945337(0x34f)](_0x1e0b13){const _0x5c8ac2=_0x945337;let _0x352d36=0x0;const _0x49d194=await this['_localCacheService']['loadOfflineData'](_0x1e0b13);return _0x49d194&&(_0x49d194[_0x5c8ac2(0x1b6)]||_0x49d194[_0x5c8ac2(0x435)][_0x5c8ac2(0x3f0)]!==0x0)&&(_0x352d36=_0x49d194[_0x5c8ac2(0x24a)]),_0x352d36===0x0&&this[_0x5c8ac2(0x4ae)][_0x5c8ac2(0x44c)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x5c8ac2(0x33b)](_0x1e0b13,_0x352d36);}},exports[_0x945337(0x4d5)]=xi([ee(0x0,ze),ee(0x1,a[_0x945337(0x48c)]),ee(0x2,a[_0x945337(0x400)]),ee(0x3,a[_0x945337(0x4fa)](exports[_0x945337(0x3a3)])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x945337(0x188)](Wt[_0x945337(0x2d5)]))],exports['DataLoaderController']);var ki=Object[_0x945337(0x24b)],Bi=Object[_0x945337(0x3e2)],Vi=(_0x4a73d9,_0x296a39,_0x7b7e18,_0x29e5ce)=>{const _0x57f9e5=_0x945337;for(var _0x4ecfd3=_0x29e5ce>0x1?void 0x0:_0x29e5ce?Bi(_0x296a39,_0x7b7e18):_0x296a39,_0x2e6f06=_0x4a73d9[_0x57f9e5(0x3f0)]-0x1,_0x5d8b2f;_0x2e6f06>=0x0;_0x2e6f06--)(_0x5d8b2f=_0x4a73d9[_0x2e6f06])&&(_0x4ecfd3=(_0x29e5ce?_0x5d8b2f(_0x296a39,_0x7b7e18,_0x4ecfd3):_0x5d8b2f(_0x4ecfd3))||_0x4ecfd3);return _0x29e5ce&&_0x4ecfd3&&ki(_0x296a39,_0x7b7e18,_0x4ecfd3),_0x4ecfd3;},at=(_0x49d4e0,_0x18bef5)=>(_0x5b47d6,_0x4adb21)=>_0x18bef5(_0x5b47d6,_0x4adb21,_0x49d4e0);const Wi=_0x945337(0x2b7),Fi='Univer';let Ie=class extends a[_0x945337(0x45b)]{constructor(_0x15ce03,_0x416651){const _0x54beeb=_0x945337;super(),this[_0x54beeb(0x337)]=_0x15ce03,this[_0x54beeb(0x4f8)]=_0x416651,this[_0x54beeb(0x458)]();}['_init'](){const _0x108c02=_0x945337;this[_0x108c02(0x50a)](this['_univerInstanceService'][_0x108c02(0x2d9)]['subscribe'](()=>{const _0x41f86e=_0x108c02;var _0x207478;const _0x25ad1f=this[_0x41f86e(0x337)][_0x41f86e(0x255)]();let _0x10346c=(_0x207478=this['_configService'][_0x41f86e(0x258)](Wi))!=null?_0x207478:Fi;_0x25ad1f instanceof a[_0x41f86e(0x43d)]&&(_0x10346c=_0x25ad1f['name']),document[_0x41f86e(0x1af)]=_0x10346c;}));}};Ie=Vi([at(0x0,a['IUniverInstanceService']),at(0x1,a[_0x945337(0x1f7)])],Ie);var Gi=Object[_0x945337(0x24b)],Yi=Object[_0x945337(0x3e2)],Ki=(_0x2ddd55,_0x46a38b,_0xd6d35b,_0x555e77)=>{const _0x345ede=_0x945337;for(var _0x312f2a=_0x555e77>0x1?void 0x0:_0x555e77?Yi(_0x46a38b,_0xd6d35b):_0x46a38b,_0x3643a8=_0x2ddd55[_0x345ede(0x3f0)]-0x1,_0x1ac59c;_0x3643a8>=0x0;_0x3643a8--)(_0x1ac59c=_0x2ddd55[_0x3643a8])&&(_0x312f2a=(_0x555e77?_0x1ac59c(_0x46a38b,_0xd6d35b,_0x312f2a):_0x1ac59c(_0x312f2a))||_0x312f2a);return _0x555e77&&_0x312f2a&&Gi(_0x46a38b,_0xd6d35b,_0x312f2a),_0x312f2a;},Le=(_0x4e606e,_0x5db1a1)=>(_0x4d7404,_0x498fe1)=>_0x5db1a1(_0x4d7404,_0x498fe1,_0x4e606e);let pe=class{constructor(_0xbe6018,_0x24858d,_0xdfc72c){const _0x590416=_0x945337;this['_configService']=_0xbe6018,this['_httpService']=_0x24858d,this['localeService']=_0xdfc72c,this[_0x590416(0x55a)]();}['init'](){const _0x3cb731=_0x945337;this[_0x3cb731(0x4ed)][_0x3cb731(0x248)]({'priority':0x1,'interceptor':(_0x30c952,_0x56e380)=>_0x56e380(_0x30c952)[_0x3cb731(0x550)](v['concatMap'](async _0x480f07=>{const _0x22db54=_0x3cb731,_0x4cf382=_0x480f07;if(_0x4cf382[_0x22db54(0x44d)]===0x191&&window[_0x22db54(0x1de)](this[_0x22db54(0x4f5)]['t'](_0x22db54(0x317)))){const _0x5cca43=window[_0x22db54(0x2ae)](window[_0x22db54(0x378)][_0x22db54(0x409)]);window[_0x22db54(0x378)]['href']=this['_getLoginPath']()+_0x22db54(0x430)+_0x5cca43;}return _0x4cf382;}))});}['_getLoginPath'](){const _0x370138=_0x945337;var _0x2a1ac5,_0x441b46;const _0xe7b121=this[_0x370138(0x4f8)][_0x370138(0x258)](mt),_0x4f0ccb=this[_0x370138(0x4f8)]['getConfig'](A);return(_0x441b46=(_0x2a1ac5=_0x4f0ccb==null?void 0x0:_0x4f0ccb[_0x370138(0x24d)])!=null?_0x2a1ac5:_0xe7b121)!=null?_0x441b46:es;}};pe=Ki([Le(0x0,a[_0x945337(0x1f7)]),Le(0x1,a[_0x945337(0x4fa)](P[_0x945337(0x22e)])),Le(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x945337(0x3e2)],zi=(_0x3d686c,_0x286206,_0x4a5660,_0x4c99f5)=>{const _0x795989=_0x945337;for(var _0xbc1552=_0x4c99f5>0x1?void 0x0:_0x4c99f5?qi(_0x286206,_0x4a5660):_0x286206,_0x2509ae=_0x3d686c[_0x795989(0x3f0)]-0x1,_0x395006;_0x2509ae>=0x0;_0x2509ae--)(_0x395006=_0x3d686c[_0x2509ae])&&(_0xbc1552=(_0x4c99f5?_0x395006(_0x286206,_0x4a5660,_0xbc1552):_0x395006(_0xbc1552))||_0xbc1552);return _0x4c99f5&&_0xbc1552&&Xi(_0x286206,_0x4a5660,_0xbc1552),_0xbc1552;},ct=(_0x258445,_0x34b7f0)=>(_0x13a1ec,_0x4ffeda)=>_0x34b7f0(_0x13a1ec,_0x4ffeda,_0x258445);const Mt='AUTHZ_URL_KEY',Ji=_0x945337(0x4bf);exports[_0x945337(0x40b)]=class extends a[_0x945337(0x45b)]{constructor(_0x8eea89,_0x409cc6){const _0x31306e=_0x945337;super(),this[_0x31306e(0x52a)]=_0x8eea89,this[_0x31306e(0x4f8)]=_0x409cc6,this[_0x31306e(0x31f)]();}[_0x945337(0x31f)](){const _0x1eb650=_0x945337,_0x2e8071=this;this[_0x1eb650(0x50a)](this['_HTTPService'][_0x1eb650(0x248)]({'priority':0x3e7,'interceptor':P[_0x1eb650(0x3bd)]({'isMatch'(_0x14421e){const _0x498202=_0x1eb650;var _0x40b789;if(_0x14421e[_0x498202(0x42f)]===_0x498202(0x315)&&((_0x40b789=_0x14421e[_0x498202(0x17a)])!=null&&_0x40b789[_0x498202(0x35f)])){const {objectID:_0x18cb3e,objectType:_0x51df05}=_0x14421e['requestParams'][_0x498202(0x35f)]||{};if(!_0x18cb3e||_0x51df05===void 0x0)return!0x1;const _0x142c4c=_0x2e8071[_0x498202(0x4a2)]()+'/'+_0x51df05+_0x498202(0x50d)+_0x18cb3e+_0x498202(0x383);if(_0x14421e[_0x498202(0x1e8)]===_0x142c4c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x728d51){const _0x590caa=_0x1eb650;var _0x5b3f9e;return(_0x5b3f9e=_0x728d51[_0x590caa(0x17a)])==null?void 0x0:_0x5b3f9e[_0x590caa(0x35f)];},'mergeParamsToRequest'(_0x24ed89,_0x44e1ec){const _0x1b4c9f=_0x1eb650,_0x1313fc=_0x2e8071[_0x1b4c9f(0x4a2)]()+_0x1b4c9f(0x1e6),_0xdffc24=_0x24ed89[_0x1b4c9f(0x580)]((_0x18a1a5,_0x331a02)=>{const _0x3a2d5d=_0x1b4c9f,{unitID:_0x1fb642,objectID:_0x48c291,objectType:_0x16dc8a,actions:_0x51a9cd}=_0x331a02;return _0x18a1a5[_0x1fb642]||(_0x18a1a5[_0x1fb642]={}),_0x18a1a5[_0x1fb642][_0x48c291]||(_0x18a1a5[_0x1fb642][_0x48c291]={'objectID':_0x48c291,'objectType':_0x16dc8a,'actions':[]}),_0x18a1a5[_0x1fb642][_0x48c291][_0x3a2d5d(0x3ef)][_0x3a2d5d(0x3b0)](..._0x51a9cd),_0x18a1a5;},{}),_0x3dd070=[];for(const _0x5c281b in _0xdffc24)for(const _0x17d153 in _0xdffc24[_0x5c281b]){const {actions:_0x51e4df,objectType:_0x4f491e}=_0xdffc24[_0x5c281b][_0x17d153],_0x56749d=[...new Set(_0x51e4df)];_0x3dd070[_0x1b4c9f(0x3b0)]({'unitID':_0x5c281b,'objectID':_0x17d153,'objectType':_0x4f491e,'actions':_0x56749d});}return new P[(_0x1b4c9f(0x1a6))](_0x1b4c9f(0x315),_0x1313fc,{'headers':_0x44e1ec[_0x1b4c9f(0x431)],'withCredentials':_0x44e1ec[_0x1b4c9f(0x1e3)],'responseType':_0x44e1ec['responseType'],'body':{'requests':_0x3dd070}});}},{'distributeResult'(_0x4ffe1e,_0x293dea){const {objectActions:_0x447d7d}=_0x4ffe1e;return _0x293dea['map'](_0x44e8ec=>{const _0x2c9a69=_0x38f3,{unitID:_0x43b2fa,objectID:_0x360f87,actions:_0x300d3f}=_0x44e8ec,_0x47648c=_0x447d7d[_0x2c9a69(0x23a)](_0x5964f0=>_0x5964f0[_0x2c9a69(0x1da)]===_0x43b2fa&&_0x5964f0['objectID']===_0x360f87),_0x19ef4f=_0x300d3f[_0x2c9a69(0x2c1)](_0x15691b=>_0x47648c==null?void 0x0:_0x47648c[_0x2c9a69(0x3ef)]['find'](_0x54144b=>_0x54144b['action']===_0x15691b))[_0x2c9a69(0x1dc)](_0x501a83=>!!_0x501a83);return{'config':_0x44e8ec,'result':{'actions':_0x19ef4f,'error':_0x4ffe1e[_0x2c9a69(0x2e8)]}};});}})}));}[_0x945337(0x4a2)](){const _0x485c60=_0x945337;var _0x245917,_0x1f2d66;const _0x1bdf7f=this[_0x485c60(0x4f8)][_0x485c60(0x258)](Mt),_0x3ef77d=this[_0x485c60(0x4f8)][_0x485c60(0x258)](A);return(_0x1f2d66=(_0x245917=_0x3ef77d==null?void 0x0:_0x3ef77d[_0x485c60(0x4d6)])!=null?_0x245917:_0x1bdf7f)!=null?_0x1f2d66:Ji;}async[_0x945337(0x30f)](_0x543a0c){const _0x246b44=_0x945337,_0x1b9468=this[_0x246b44(0x4a2)]()+'/'+_0x543a0c[_0x246b44(0x433)]+_0x246b44(0x2b6);return(await this['_HTTPService'][_0x246b44(0x4da)](_0x1b9468,{'body':_0x543a0c}))[_0x246b44(0x35f)][_0x246b44(0x1ee)]||'';}async[_0x945337(0x26b)](_0x5d62ea){const _0x277352=_0x945337,_0x5c428c=this[_0x277352(0x4a2)]()+_0x277352(0x444);return(await this[_0x277352(0x52a)][_0x277352(0x4da)](_0x5c428c,{'body':_0x5d62ea}))[_0x277352(0x35f)][_0x277352(0x2cf)];}async[_0x945337(0x177)](_0x433cd9){const _0x46e232=_0x945337,_0x82dbb2=this[_0x46e232(0x4a2)]()+'/'+_0x433cd9[_0x46e232(0x433)]+_0x46e232(0x50d)+_0x433cd9[_0x46e232(0x1ee)];await this[_0x46e232(0x52a)]['put'](_0x82dbb2,{'body':_0x433cd9});}async[_0x945337(0x525)](_0x1609c1){const _0x2b2d3c=_0x945337,_0x68a325=this[_0x2b2d3c(0x4a2)]()+'/'+_0x1609c1['objectType']+_0x2b2d3c(0x50d)+_0x1609c1['objectID']+_0x2b2d3c(0x383);return(await this['_HTTPService'][_0x2b2d3c(0x4da)](_0x68a325,{'body':_0x1609c1}))[_0x2b2d3c(0x35f)][_0x2b2d3c(0x3ef)];}async['batchAllowed'](_0x31bed6){const _0x3f6bcc=_0x945337,_0x3c7bec=this[_0x3f6bcc(0x4a2)]()+_0x3f6bcc(0x1e6);return(await this[_0x3f6bcc(0x52a)][_0x3f6bcc(0x4da)](_0x3c7bec,{'body':{'requests':_0x31bed6}}))[_0x3f6bcc(0x35f)][_0x3f6bcc(0x1ae)];}async[_0x945337(0x49d)](_0x458144){const _0x124a13=_0x945337,_0x1d7f4a=this['_getAPIPrefixPath']()+'/'+_0x458144[_0x124a13(0x433)]+_0x124a13(0x540),_0x4740bb=await this[_0x124a13(0x52a)][_0x124a13(0x4da)](_0x1d7f4a,{'body':_0x458144});return{'roles':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x434)],'actions':_0x4740bb[_0x124a13(0x35f)][_0x124a13(0x3ef)]};}async[_0x945337(0x494)](_0xf7d9ad){const _0x5ec6c0=_0x945337,_0x407078=this[_0x5ec6c0(0x4a2)]()+_0x5ec6c0(0x510);await this[_0x5ec6c0(0x52a)]['delete'](_0x407078,{'params':{'collaboratorID':_0xf7d9ad[_0x5ec6c0(0x3e1)],'objectID':_0xf7d9ad[_0x5ec6c0(0x1ee)],'unitID':_0xf7d9ad[_0x5ec6c0(0x1da)]}});}async['updateCollaborator'](_0x3a3e97){const _0x1258d3=_0x945337,_0x2ab2ba=this[_0x1258d3(0x4a2)]()+_0x1258d3(0x510);await this['_HTTPService'][_0x1258d3(0x524)](_0x2ab2ba,{'body':_0x3a3e97});}async[_0x945337(0x2be)](_0x442f95){const _0x47b357=_0x945337,_0x1e9035=this[_0x47b357(0x4a2)]()+_0x47b357(0x510);await this[_0x47b357(0x52a)][_0x47b357(0x4da)](_0x1e9035,{'body':_0x442f95});}async['listCollaborators'](_0x44f5f3){const _0x51c2e7=_0x945337,_0x4b8288=this[_0x51c2e7(0x4a2)]()+_0x51c2e7(0x510);return(await this[_0x51c2e7(0x52a)][_0x51c2e7(0x3eb)](_0x4b8288,{'params':{'objectID':_0x44f5f3[_0x51c2e7(0x1ee)],'unitID':_0x44f5f3['unitID']}}))[_0x51c2e7(0x35f)][_0x51c2e7(0x459)];}async['putCollaborators'](_0x1a115d){const _0xaada9f=_0x945337,_0x2db2aa=this[_0xaada9f(0x4a2)]()+_0xaada9f(0x510);await this[_0xaada9f(0x52a)][_0xaada9f(0x2a5)](_0x2db2aa,{'body':_0x1a115d});}},exports[_0x945337(0x40b)]=zi([ct(0x0,a['Inject'](P[_0x945337(0x22e)])),ct(0x1,a[_0x945337(0x4fa)](a[_0x945337(0x1f7)]))],exports[_0x945337(0x40b)]);var Zi=Object[_0x945337(0x24b)],Qi=Object[_0x945337(0x3e2)],en=(_0x439d3b,_0x36a68c,_0x5af289,_0x59a45a)=>{const _0x6f2fd8=_0x945337;for(var _0x46811b=_0x59a45a>0x1?void 0x0:_0x59a45a?Qi(_0x36a68c,_0x5af289):_0x36a68c,_0x4ca905=_0x439d3b[_0x6f2fd8(0x3f0)]-0x1,_0x26e2ca;_0x4ca905>=0x0;_0x4ca905--)(_0x26e2ca=_0x439d3b[_0x4ca905])&&(_0x46811b=(_0x59a45a?_0x26e2ca(_0x36a68c,_0x5af289,_0x46811b):_0x26e2ca(_0x46811b))||_0x46811b);return _0x59a45a&&_0x46811b&&Zi(_0x36a68c,_0x5af289,_0x46811b),_0x46811b;},tn=(_0x3d5396,_0xda5140)=>(_0x5d1cb4,_0x474409)=>_0xda5140(_0x5d1cb4,_0x474409,_0x3d5396);let Ce=class{constructor(_0x490ee6){const _0x3ef684=_0x945337;this[_0x3ef684(0x4ed)]=_0x490ee6,this[_0x3ef684(0x2d3)]();}[_0x945337(0x2d3)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3d04ee,_0x2fda50)=>{const _0x14526c=_0x38f3,_0x36f0f3=_0x3d04ee['headers'],_0x1c3419=Ft[_0x14526c(0x2db)]();return _0x1c3419&&_0x36f0f3[_0x14526c(0x4a8)](_0x14526c(0x27e),_0x1c3419),_0x2fda50(_0x3d04ee);}});}};Ce=en([tn(0x0,a[_0x945337(0x4fa)](P[_0x945337(0x22e)]))],Ce);var sn=Object['defineProperty'],nn=Object[_0x945337(0x3e2)],rn=(_0xa1f6a0,_0x4d9696,_0x41424,_0x173c7a)=>{const _0x14bb0d=_0x945337;for(var _0x4e37ed=_0x173c7a>0x1?void 0x0:_0x173c7a?nn(_0x4d9696,_0x41424):_0x4d9696,_0x2a1d94=_0xa1f6a0[_0x14bb0d(0x3f0)]-0x1,_0xeb155a;_0x2a1d94>=0x0;_0x2a1d94--)(_0xeb155a=_0xa1f6a0[_0x2a1d94])&&(_0x4e37ed=(_0x173c7a?_0xeb155a(_0x4d9696,_0x41424,_0x4e37ed):_0xeb155a(_0x4e37ed))||_0x4e37ed);return _0x173c7a&&_0x4e37ed&&sn(_0x4d9696,_0x41424,_0x4e37ed),_0x4e37ed;},je=(_0x67ba3c,_0x2cc672)=>(_0x24893e,_0x31a7a1)=>_0x2cc672(_0x24893e,_0x31a7a1,_0x67ba3c);const on=[_0x945337(0x56f),_0x945337(0x208),'image/jpg',_0x945337(0x4af),_0x945337(0x57d)],an=0x5*0x400*0x400,cn=_0x945337(0x51a),ln=_0x945337(0x265),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x945337(0x3bc);exports['ImageIoService']=class{constructor(_0x4ccb43,_0x4b18a9,_0x54e430){const _0x28cb1c=_0x945337;d(this,_0x28cb1c(0x1cc),0x0),d(this,_0x28cb1c(0x416),new v[(_0x28cb1c(0x36e))]()),d(this,_0x28cb1c(0x340),this[_0x28cb1c(0x416)]),d(this,_0x28cb1c(0x55c),new Map()),(this['_httpService']=_0x4ccb43,this[_0x28cb1c(0x4f8)]=_0x4b18a9,this[_0x28cb1c(0x337)]=_0x54e430);}['setWaitCount'](_0x41283a){const _0x503c5c=_0x945337;this[_0x503c5c(0x1cc)]=_0x41283a,this['_change$']['next'](_0x41283a);}[_0x945337(0x1a5)](_0x375473,_0x4234cc){const _0x4ad759=_0x945337;if(_0x4234cc===L[_0x4ad759(0x488)][_0x4ad759(0x2a3)]){const _0x77c404=new Image();return _0x77c404[_0x4ad759(0x21b)]=_0x375473,_0x77c404;}return this[_0x4ad759(0x55c)][_0x4ad759(0x3eb)](_0x375473);}['addImageSourceCache'](_0x31e9ac,_0x33a65d,_0x2276eb){const _0x3912c3=_0x945337;_0x33a65d===L[_0x3912c3(0x488)][_0x3912c3(0x2a3)]||_0x2276eb==null||this[_0x3912c3(0x55c)][_0x3912c3(0x4a8)](_0x31e9ac,_0x2276eb);}async[_0x945337(0x4a3)](_0x593130){const _0x1b519e=_0x945337;try{const _0x22e53e=this[_0x1b519e(0x1c9)](this[_0x1b519e(0x523)](),''+_0x593130),_0x5d01a0=(await this[_0x1b519e(0x4ed)][_0x1b519e(0x3eb)](_0x22e53e))[_0x1b519e(0x35f)];if(_0x5d01a0[_0x1b519e(0x2e8)]&&_0x5d01a0[_0x1b519e(0x2e8)][_0x1b519e(0x20c)]===It['OK']){const _0x1869a2=new URL(_0x5d01a0[_0x1b519e(0x1e8)],this['_getDownloadEndpointURL']())[_0x1b519e(0x466)]();return Promise[_0x1b519e(0x18f)](_0x1869a2);}return Promise[_0x1b519e(0x279)](_0x5d01a0[_0x1b519e(0x2e8)]);}catch(_0x5026fe){return Promise[_0x1b519e(0x279)](_0x5026fe);}}async[_0x945337(0x3c1)](_0xe78a1f){const _0x49a358=_0x945337;let _0xa6415f='';if(!on[_0x49a358(0x38c)](_0xe78a1f['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(L['ImageUploadStatusType'][_0x49a358(0x54c)]));if(_0xe78a1f[_0x49a358(0x17e)]>an)return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x371)]));try{const _0x3774d3=new FormData();_0x3774d3[_0x49a358(0x280)](_0x49a358(0x4fd),_0xe78a1f);const _0x2e80bf=this[_0x49a358(0x337)][_0x49a358(0x255)](),_0x3dc71e=_0x2e80bf==null?void 0x0:_0x2e80bf[_0x49a358(0x352)]();if(!_0x3dc71e)throw new Error('unitId\x20is\x20not\x20found');const _0x33392f=this[_0x49a358(0x357)]()+_0x49a358(0x4d3)+_0xe78a1f['size'][_0x49a358(0x466)]()+_0x49a358(0x517)+pt[_0x49a358(0x29b)]+_0x49a358(0x55e)+encodeURIComponent(_0x3dc71e),_0x2d1f72=await(await fetch(_0x33392f,{'method':_0x49a358(0x315),'body':_0x3774d3}))[_0x49a358(0x1ab)]();if(typeof _0x2d1f72['FileId']!=_0x49a358(0x312))return this[_0x49a358(0x464)](),Promise[_0x49a358(0x279)](new Error(L['ImageUploadStatusType'][_0x49a358(0x1d9)]));_0xa6415f=_0x2d1f72[_0x49a358(0x3b2)];}catch{return this['_decreaseWaiting'](),Promise[_0x49a358(0x279)](new Error(L[_0x49a358(0x4ac)][_0x49a358(0x1d9)]));}return new Promise((_0x4f4be8,_0x1e95d0)=>{const _0x5a5d67=_0x49a358,_0x382e90=new FileReader();_0x382e90[_0x5a5d67(0x184)](_0xe78a1f),_0x382e90[_0x5a5d67(0x314)]=_0x9fa56a=>{const _0x2fb230=_0x5a5d67;var _0x2b6078;const _0x556ad4=(_0x2b6078=_0x9fa56a['target'])==null?void 0x0:_0x2b6078[_0x2fb230(0x331)];if(_0x556ad4==null){this['_decreaseWaiting'](),_0x1e95d0(new Error(L['ImageUploadStatusType'][_0x2fb230(0x1d9)]));return;}const _0x17830c=a[_0x2fb230(0x4ea)][_0x2fb230(0x227)](0x6);_0x4f4be8({'imageId':_0x17830c,'imageSourceType':L[_0x2fb230(0x488)][_0x2fb230(0x522)],'source':_0xa6415f,'base64Cache':_0x556ad4,'status':L[_0x2fb230(0x4ac)]['SUCCUSS']}),this[_0x2fb230(0x464)]();};});}[_0x945337(0x357)](){const _0x3a6894=_0x945337;var _0x103b70,_0x9985e1;const _0x10c3d2=this[_0x3a6894(0x4f8)][_0x3a6894(0x258)](cn),_0x39154e=this['_configService'][_0x3a6894(0x258)](A);return(_0x9985e1=(_0x103b70=_0x39154e==null?void 0x0:_0x39154e[_0x3a6894(0x45f)])!=null?_0x103b70:_0x10c3d2)!=null?_0x9985e1:ln;}['_getSignURL'](){const _0x46b569=_0x945337;var _0x1fedf4,_0x3b15bb;const _0x429c54=this['_configService'][_0x46b569(0x258)](hn),_0x17a250=this['_configService'][_0x46b569(0x258)](A);return(_0x3b15bb=(_0x1fedf4=_0x17a250==null?void 0x0:_0x17a250[_0x46b569(0x23d)])!=null?_0x1fedf4:_0x429c54)!=null?_0x3b15bb:_n;}['_getDownloadEndpointURL'](){const _0x50cfde=_0x945337;var _0x505650;const _0x19c684=this[_0x50cfde(0x4f8)]['getConfig'](A);return(_0x505650=_0x19c684==null?void 0x0:_0x19c684[_0x50cfde(0x1c3)])!=null?_0x505650:location[_0x50cfde(0x341)];}['_replaceFileID'](_0x4dd1d0,_0x24fc36){const _0x28bef9=_0x945337;return _0x4dd1d0[_0x28bef9(0x559)]('{fileID}',_0x24fc36);}['_decreaseWaiting'](){const _0xdcc7c7=_0x945337;this[_0xdcc7c7(0x1cc)]-=0x1,this[_0xdcc7c7(0x416)][_0xdcc7c7(0x3ca)](this[_0xdcc7c7(0x1cc)]);}},exports[_0x945337(0x479)]=rn([je(0x0,a['Inject'](P[_0x945337(0x22e)])),je(0x1,a[_0x945337(0x1f7)]),je(0x2,a[_0x945337(0x4fa)](a[_0x945337(0x57b)]))],exports[_0x945337(0x479)]);var un=Object[_0x945337(0x24b)],dn=Object[_0x945337(0x3e2)],Sn=(_0xeda5db,_0x187138,_0x304549,_0x9ed41b)=>{const _0x5b5d8a=_0x945337;for(var _0xc163b0=_0x9ed41b>0x1?void 0x0:_0x9ed41b?dn(_0x187138,_0x304549):_0x187138,_0x579608=_0xeda5db[_0x5b5d8a(0x3f0)]-0x1,_0x60a977;_0x579608>=0x0;_0x579608--)(_0x60a977=_0xeda5db[_0x579608])&&(_0xc163b0=(_0x9ed41b?_0x60a977(_0x187138,_0x304549,_0xc163b0):_0x60a977(_0xc163b0))||_0xc163b0);return _0x9ed41b&&_0xc163b0&&un(_0x187138,_0x304549,_0xc163b0),_0xc163b0;},he=(_0x496790,_0x2893b0)=>(_0x2ce484,_0x3dabfc)=>_0x2893b0(_0x2ce484,_0x3dabfc,_0x496790);let Ee=class extends a[_0x945337(0x538)]{constructor(_0x1d6445,_0x4d5aea,_0x947766,_0x2ad3c2,_0x11642f){const _0x4b88ee=_0x945337;super(),this[_0x4b88ee(0x3dd)]=_0x1d6445,this[_0x4b88ee(0x337)]=_0x4d5aea,this['_permissionService']=_0x947766,this[_0x4b88ee(0x491)]=_0x2ad3c2,this[_0x4b88ee(0x21a)]=_0x11642f,this['_initUnitPermissionChange'](),this[_0x4b88ee(0x398)]();}[_0x945337(0x398)](){const _0x43d51a=_0x945337,_0x24b84c=async _0x440a28=>{const _0x709dad=_0x38f3;(await this['_collaborationSessionService'][_0x709dad(0x369)](_0x440a28))[_0x709dad(0x23f)][_0x709dad(0x550)](E[_0x709dad(0x1dc)](_0x3b7915=>_0x3b7915[_0x709dad(0x170)]===_[_0x709dad(0x4eb)][_0x709dad(0x2d8)]),E[_0x709dad(0x43c)](this[_0x709dad(0x2ec)]))[_0x709dad(0x397)](_0x4a8930=>{const _0x37cdc8=_0x709dad,_0x58514f=_0x4a8930,{reason:_0x3c7ceb}=_0x58514f[_0x37cdc8(0x375)];this[_0x37cdc8(0x3dd)][_0x37cdc8(0x3eb)](N['IMessageService'])[_0x37cdc8(0x411)]({'type':X[_0x37cdc8(0x367)][_0x37cdc8(0x372)],'content':this[_0x37cdc8(0x21a)]['t'](_0x37cdc8(0x183))+'('+_0x3c7ceb+')'}),this[_0x37cdc8(0x209)][_0x37cdc8(0x470)](new C[(_0x37cdc8(0x298))](_0x440a28)['id'],!0x1),this['_collaborationSessionService'][_0x37cdc8(0x350)](_0x440a28);});};v[_0x43d51a(0x515)](this[_0x43d51a(0x337)][_0x43d51a(0x51e)](a[_0x43d51a(0x3b1)]['UNIVER_SHEET']),this[_0x43d51a(0x337)]['getTypeOfUnitAdded$'](a[_0x43d51a(0x3b1)][_0x43d51a(0x395)]))['pipe'](E[_0x43d51a(0x2c1)](_0x1bfbf3=>_0x1bfbf3[_0x43d51a(0x352)]()),E[_0x43d51a(0x1dc)](_0x3463bc=>!a[_0x43d51a(0x1dd)](_0x3463bc)),E[_0x43d51a(0x43c)](this['dispose$']))[_0x43d51a(0x397)](_0x4d2273=>{_0x24b84c(_0x4d2273);});}['_initUnitPermissionChange'](){const _0x5f3f4d=_0x945337,_0x10445c=async _0x394fe0=>{const _0x87ea45=_0x38f3;(await this['_collaborationSessionService'][_0x87ea45(0x369)](_0x394fe0))['event$'][_0x87ea45(0x550)](E['filter'](_0x33e089=>_0x33e089['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x87ea45(0x43c)](this[_0x87ea45(0x2ec)]))[_0x87ea45(0x397)](_0x55db0a=>{const _0xc17e11=_0x87ea45,_0x45085b=_0x55db0a,{objectId:_0x59af19}=_0x45085b[_0xc17e11(0x375)],_0x11b242=this[_0xc17e11(0x3dd)][_0xc17e11(0x3eb)](te['SheetPermissionInitController']);_0x59af19===_0x394fe0?_0x11b242[_0xc17e11(0x440)](_0x394fe0):_0x11b242[_0xc17e11(0x41e)](_0x394fe0,_0x59af19);});};v[_0x5f3f4d(0x515)](this[_0x5f3f4d(0x337)][_0x5f3f4d(0x51e)](a[_0x5f3f4d(0x3b1)][_0x5f3f4d(0x53c)]),this[_0x5f3f4d(0x337)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x5f3f4d(0x395)]))['pipe'](E['map'](_0x24ce4b=>_0x24ce4b['getUnitId']()),E['filter'](_0x555c7c=>!a[_0x5f3f4d(0x1dd)](_0x555c7c)),E[_0x5f3f4d(0x43c)](this['dispose$']))[_0x5f3f4d(0x397)](_0x1f8d1d=>{_0x10445c(_0x1f8d1d);});}};Ee=Sn([he(0x0,a['Inject'](a[_0x945337(0x2b5)])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x945337(0x414)]),he(0x3,a[_0x945337(0x4fa)](exports['CollaborationSessionService'])),he(0x4,a[_0x945337(0x4fa)](a[_0x945337(0x299)]))],Ee);var vn=Object[_0x945337(0x24b)],fn=Object[_0x945337(0x3e2)],gn=(_0x506f3c,_0x5203c3,_0x3701ea,_0x30ca28)=>{for(var _0xbfdc4a=_0x30ca28>0x1?void 0x0:_0x30ca28?fn(_0x5203c3,_0x3701ea):_0x5203c3,_0x26f5ad=_0x506f3c['length']-0x1,_0x4fad1f;_0x26f5ad>=0x0;_0x26f5ad--)(_0x4fad1f=_0x506f3c[_0x26f5ad])&&(_0xbfdc4a=(_0x30ca28?_0x4fad1f(_0x5203c3,_0x3701ea,_0xbfdc4a):_0x4fad1f(_0xbfdc4a))||_0xbfdc4a);return _0x30ca28&&_0xbfdc4a&&vn(_0x5203c3,_0x3701ea,_0xbfdc4a),_0xbfdc4a;},lt=(_0x58707c,_0xc2a03c)=>(_0x17b25a,_0x31a76b)=>_0xc2a03c(_0x17b25a,_0x31a76b,_0x58707c);exports[_0x945337(0x3cc)]=class{constructor(_0x1030a1,_0x4edecc){const _0x34ea7b=_0x945337;this[_0x34ea7b(0x4f8)]=_0x1030a1,this[_0x34ea7b(0x4ed)]=_0x4edecc;}async[_0x945337(0x33a)](_0x2d3b02,_0x5809ad){const _0x3dc87a=_0x945337;var _0x5415b0;const {unitID:_0x5555a4,type:_0x45b7e6,revision:_0x27b04a=0x0}=_0x5809ad,_0x2b3967=this[_0x3dc87a(0x1d7)]()+'/'+_0x45b7e6+_0x3dc87a(0x35e)+_0x5555a4+_0x3dc87a(0x47d)+_0x27b04a,_0x582f41=(await this['_httpService'][_0x3dc87a(0x3eb)](_0x2b3967))[_0x3dc87a(0x35f)],_0x5d339e=(_0x5415b0=_0x582f41[_0x3dc87a(0x31b)])==null?void 0x0:_0x5415b0['workbook'];if(_0x5d339e){const _0x1c3815=_0x5d339e==null?void 0x0:_0x5d339e[_0x3dc87a(0x3e3)],_0x1d6504=_[_0x3dc87a(0x43f)][_0x3dc87a(0x2f1)](_[_0x3dc87a(0x19a)](_0x1c3815));_0x5d339e['originalMeta']=_0x1d6504,Object[_0x3dc87a(0x519)](_0x5d339e[_0x3dc87a(0x4e1)])['forEach'](([,_0x4871be])=>{const _0x32edf1=_0x3dc87a,_0xa806ea=_0x4871be[_0x32edf1(0x3e3)],_0x1fa780=_['textEncoder'][_0x32edf1(0x2f1)](_[_0x32edf1(0x19a)](_0xa806ea));_0x4871be[_0x32edf1(0x3e3)]=_0x1fa780;});}return _0x582f41;}async[_0x945337(0x30e)](_0x130ddc,_0x12e667){const _0x1ddf7c=_0x945337,{unitID:_0xddf8f3,type:_0x5b4042,blockID:_0x223224}=_0x12e667,_0x1c5fbf=this[_0x1ddf7c(0x3b3)]()+'/'+_0x5b4042+'/unit/'+_0xddf8f3+_0x1ddf7c(0x1ed)+_0x223224;return(await this[_0x1ddf7c(0x4ed)][_0x1ddf7c(0x3eb)](_0x1c5fbf))[_0x1ddf7c(0x35f)];}async['getDeserializedSheetBlock'](_0x40abec,_0x4ded00){const _0x2fcd49=_0x945337,{unitID:_0x4756f9,type:_0x4de1be,blockID:_0x1da9df}=_0x4ded00,_0xe0b9f3=this[_0x2fcd49(0x3b3)]()+'/block/'+_0x4de1be+_0x2fcd49(0x35e)+_0x4756f9+_0x2fcd49(0x1ed)+_0x1da9df;return(await this[_0x2fcd49(0x4ed)][_0x2fcd49(0x3eb)](_0xe0b9f3))[_0x2fcd49(0x35f)];}async['fetchMissingChangesets'](_0x542c39,_0x31dbd7){const _0x1e824b=_0x945337,{unitID:_0x434fd3,type:_0x47e5f2,from:_0x46ccf5,to:_0x1bc6bc}=_0x31dbd7,_0x5d543b=this['_getAPIPrefix']()+'/'+_0x47e5f2+_0x1e824b(0x35e)+_0x434fd3+_0x1e824b(0x2fc)+_0x46ccf5+'&to='+_0x1bc6bc;return(await this['_httpService'][_0x1e824b(0x3eb)](_0x5d543b))['body'];}[_0x945337(0x1d7)](){const _0x4ecc8d=_0x945337;var _0x112bdd;return(_0x112bdd=this[_0x4ecc8d(0x4f8)][_0x4ecc8d(0x258)](_t))!=null?_0x112bdd:this[_0x4ecc8d(0x3b3)]();}[_0x945337(0x3b3)](){const _0x2bb731=_0x945337;var _0x17a162,_0x1d1cff;const _0x1b7489=this['_configService'][_0x2bb731(0x258)](ht),_0x42d2ec=this[_0x2bb731(0x4f8)][_0x2bb731(0x258)](A);return(_0x1d1cff=(_0x17a162=_0x42d2ec==null?void 0x0:_0x42d2ec['snapshotServerUrl'])!=null?_0x17a162:_0x1b7489)!=null?_0x1d1cff:Gt;}async[_0x945337(0x40c)](_0x3be683,_0x4d512c){const _0x54e5e2=_0x945337,_0x57acc4='/universer-api/snapshot/'+_0x4d512c['type']+_0x54e5e2(0x35e)+_0x4d512c[_0x54e5e2(0x1da)]+_0x54e5e2(0x2cc);return(await this[_0x54e5e2(0x4ed)][_0x54e5e2(0x3eb)](_0x57acc4,{'params':{'resourceId':JSON[_0x54e5e2(0x22d)](_0x4d512c['resourceIDs'])}}))[_0x54e5e2(0x35f)];}['saveSnapshot'](){const _0x2c18f1=_0x945337;throw new Error(_0x2c18f1(0x3c5));}[_0x945337(0x179)](){const _0x1618f8=_0x945337;throw new Error(_0x1618f8(0x3c5));}[_0x945337(0x40d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x945337(0x424)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x945337(0x3cc)]=gn([lt(0x0,a['IConfigService']),lt(0x1,a['Inject'](P[_0x945337(0x22e)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x945337(0x24b)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5a4113,_0x6f3323,_0x54c6a6,_0x1068b0)=>{const _0x40441c=_0x945337;for(var _0x1150a8=_0x1068b0>0x1?void 0x0:_0x1068b0?In(_0x6f3323,_0x54c6a6):_0x6f3323,_0x33c2e6=_0x5a4113[_0x40441c(0x3f0)]-0x1,_0xe2345;_0x33c2e6>=0x0;_0x33c2e6--)(_0xe2345=_0x5a4113[_0x33c2e6])&&(_0x1150a8=(_0x1068b0?_0xe2345(_0x6f3323,_0x54c6a6,_0x1150a8):_0xe2345(_0x1150a8))||_0x1150a8);return _0x1068b0&&_0x1150a8&&mn(_0x6f3323,_0x54c6a6,_0x1150a8),_0x1150a8;},_e=(_0x216f88,_0x3ceace)=>(_0x2298dd,_0x59db1c)=>_0x3ceace(_0x2298dd,_0x59db1c,_0x216f88);let Be=class extends a[_0x945337(0x187)]{constructor(_0x63b7b6,_0x5b738d,_0x19fbcf,_0x21c1e1,_0x49f521){const _0x1f8d79=_0x945337;super(_0x63b7b6,_0x5b738d,_0x19fbcf),this['_transformService']=_0x21c1e1,this[_0x1f8d79(0x4ae)]=_0x49f521;}[_0x945337(0x1d0)](_0x1c2d5f,_0x2bbd21){const _0x2955c0=_0x945337,_0x2f7eec=this[_0x2955c0(0x577)](_0x1c2d5f);if(_0x2f7eec)try{const _0x39dea2=this['_transformStack'](_0x2f7eec,_0x2bbd21);this[_0x2955c0(0x495)](_0x1c2d5f,_0x39dea2);}catch(_0x341ea9){this[_0x2955c0(0x4ae)][_0x2955c0(0x2e8)](_0x2955c0(0x47a),_0x341ea9),this[_0x2955c0(0x41a)](_0x1c2d5f);}const _0x4c0443=this[_0x2955c0(0x4ba)](_0x1c2d5f);if(_0x4c0443)try{const _0x2aaa69=this[_0x2955c0(0x2ca)](_0x4c0443,_0x2bbd21);this[_0x2955c0(0x4d2)](_0x1c2d5f,_0x2aaa69);}catch(_0x5946c2){this[_0x2955c0(0x4ae)]['error'](_0x5946c2),this['_clearRedo'](_0x1c2d5f);}}[_0x945337(0x41a)](_0x29ac7c){const _0x438a32=_0x945337,_0x4c0191=this[_0x438a32(0x577)](_0x29ac7c);_0x4c0191&&(_0x4c0191[_0x438a32(0x3f0)]=0x0,this['_updateStatus']());}[_0x945337(0x34d)](_0x1f52c4){const _0x2b9658=_0x945337,_0x9d4347=this[_0x2b9658(0x4ba)](_0x1f52c4);_0x9d4347&&(_0x9d4347[_0x2b9658(0x3f0)]=0x0,this[_0x2b9658(0x422)]());}[_0x945337(0x495)](_0x2bbf99,_0x46bf0b){const _0x47bc54=_0x945337;this[_0x47bc54(0x1f6)]['set'](_0x2bbf99,_0x46bf0b),this[_0x47bc54(0x422)]();}[_0x945337(0x4d2)](_0xa08074,_0x2411a1){const _0x56763a=_0x945337;this['_redoStacks'][_0x56763a(0x4a8)](_0xa08074,_0x2411a1),this[_0x56763a(0x422)]();}[_0x945337(0x2ca)](_0x31ecaf,_0x512883){const _0x240d68=_0x945337,_0x3faa7f=[];let _0x195e16=_0x512883,_0x583ba3=_0x512883;for(let _0x407f7f=_0x31ecaf[_0x240d68(0x3f0)]-0x1;_0x407f7f>=0x0;_0x407f7f--){const {unitID:_0xdaa35a,undoMutations:_0x5d9eb0,redoMutations:_0x2bc98e}=_0x31ecaf[_0x407f7f],_0xf8e809=this[_0x240d68(0x4f2)]['transformMutationsWithChangeset'](_0x195e16,_0x5d9eb0),_0x35360a=this[_0x240d68(0x4f2)][_0x240d68(0x4df)](_0x583ba3,_0x2bc98e);if(_['isTransformMutationsWithChangesetFailure'](_0xf8e809)||_[_0x240d68(0x552)](_0x35360a)){this[_0x240d68(0x4ae)][_0x240d68(0x2e8)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0xf8e809,_0x35360a);break;}_0x195e16=_0xf8e809[_0x240d68(0x44e)],_0x583ba3=_0x35360a['c1Prime'],_0x3faa7f[_0x240d68(0x3b0)]({'unitID':_0xdaa35a,'undoMutations':_0xf8e809[_0x240d68(0x178)],'redoMutations':_0x35360a[_0x240d68(0x178)]});}return _0x3faa7f[_0x240d68(0x51f)]();}};Be=pn([_e(0x0,a['IUniverInstanceService']),_e(0x1,a[_0x945337(0x400)]),_e(0x2,a['IContextService']),_e(0x3,_[_0x945337(0x429)]),_e(0x4,a['ILogService'])],Be);class Nt extends a[_0x945337(0x538)]{constructor(){const _0x1a6989=_0x945337;super(),d(this,_0x1a6989(0x56b)),this[_0x1a6989(0x56b)]=v['fromEvent'](window,_0x1a6989(0x457))[_0x1a6989(0x550)](v[_0x1a6989(0x43c)](this[_0x1a6989(0x2ec)]),v[_0x1a6989(0x421)](0x1),v[_0x1a6989(0x1a3)](void 0x0));}[_0x945337(0x47b)](_0x1a41e8,_0x51da4e,_0x12a94a=!0x1){const _0xe70366=_0x945337,_0x321b77=new URL(window[_0xe70366(0x378)][_0xe70366(0x409)]);_0x321b77['searchParams'][_0xe70366(0x4a8)](_0x1a41e8,_0x51da4e),_0x12a94a?window[_0xe70366(0x2cd)]['replaceState']('','',_0x321b77['toString']()):window[_0xe70366(0x2cd)][_0xe70366(0x4d9)]('','',_0x321b77[_0xe70366(0x466)]());}[_0x945337(0x1b5)](_0x1ea143,_0x1ab068=!0x1){const _0x482d43=_0x945337,_0x3ea3c1=new URL(window[_0x482d43(0x378)]['href']);_0x3ea3c1[_0x482d43(0x2df)]['delete'](_0x1ea143),_0x1ab068?window[_0x482d43(0x2cd)][_0x482d43(0x2ed)]('','',_0x3ea3c1[_0x482d43(0x466)]()):window[_0x482d43(0x2cd)][_0x482d43(0x4d9)]('','',_0x3ea3c1[_0x482d43(0x466)]());}[_0x945337(0x21e)](_0x5b803f){const _0x2bc2c4=_0x945337;var _0x45ada9;return(_0x45ada9=new URL(window[_0x2bc2c4(0x378)][_0x2bc2c4(0x409)])[_0x2bc2c4(0x2df)]['get'](_0x5b803f))!=null?_0x45ada9:void 0x0;}}var At=Object['defineProperty'],Cn=Object['getOwnPropertyDescriptor'],En=(_0x500179,_0x3eec32,_0x51c288)=>_0x3eec32 in _0x500179?At(_0x500179,_0x3eec32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x51c288}):_0x500179[_0x3eec32]=_0x51c288,bn=(_0x50e67a,_0x1dc922,_0x5366c8,_0x5cb5cf)=>{const _0x222cb2=_0x945337;for(var _0x3929c3=_0x5cb5cf>0x1?void 0x0:_0x5cb5cf?Cn(_0x1dc922,_0x5366c8):_0x1dc922,_0x48ae40=_0x50e67a[_0x222cb2(0x3f0)]-0x1,_0x10ba21;_0x48ae40>=0x0;_0x48ae40--)(_0x10ba21=_0x50e67a[_0x48ae40])&&(_0x3929c3=(_0x5cb5cf?_0x10ba21(_0x1dc922,_0x5366c8,_0x3929c3):_0x10ba21(_0x3929c3))||_0x3929c3);return _0x5cb5cf&&_0x3929c3&&At(_0x1dc922,_0x5366c8,_0x3929c3),_0x3929c3;},ve=(_0x2e1a8a,_0x44ea97)=>(_0x4fcffd,_0x48a174)=>_0x44ea97(_0x4fcffd,_0x48a174,_0x2e1a8a),Tn=(_0x348f70,_0x29e6d2,_0x46db22)=>En(_0x348f70,_0x29e6d2+'',_0x46db22);const Rn=_0x945337(0x323);exports[_0x945337(0x300)]=class extends a[_0x945337(0x1fd)]{constructor(_0x370ac5=ts,_0x5a79e,_0x2512a8,_0x240cf9,_0xa2ee7d){const _0x3ba533=_0x945337;super(),this[_0x3ba533(0x4fe)]=_0x370ac5,this[_0x3ba533(0x4ae)]=_0x5a79e,this[_0x3ba533(0x277)]=_0x2512a8,this[_0x3ba533(0x3dd)]=_0x240cf9,this['_configService']=_0xa2ee7d;const {..._0x2da3ad}=this[_0x3ba533(0x4fe)];this[_0x3ba533(0x4f8)][_0x3ba533(0x44a)](A,_0x2da3ad);}['onStarting'](){const _0x18e188=_0x945337;this[_0x18e188(0x199)](),a[_0x18e188(0x3b5)](this[_0x18e188(0x3dd)],[[ie],[exports[_0x18e188(0x4d5)]],[Ee]]);}[_0x945337(0x446)](){const _0x3cfffc=_0x945337;a[_0x3cfffc(0x3b5)](this[_0x3cfffc(0x3dd)],[[Ie]]);}[_0x945337(0x2e9)](){this['_registerRenderDependencies']();}[_0x945337(0x199)](){const _0x126ffa=_0x945337;var _0x5d6d6d,_0x4da76f,_0x4d6134,_0x4d4334;this[_0x126ffa(0x3dd)][_0x126ffa(0x384)](a[_0x126ffa(0x38b)])&&this['_logService'][_0x126ffa(0x2e8)](_0x126ffa(0x512),_0x126ffa(0x427));let _0x3ab063=[[a[_0x126ffa(0x38b)],{'useClass':Be}],[exports[_0x126ffa(0x3a5)]],[Xe],[P['HTTPService']],[ze,{'useClass':Nt}],[q],[exports[_0x126ffa(0x3a3)]],[P[_0x126ffa(0x2ce)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x4da76f=(_0x5d6d6d=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x5d6d6d[_0x126ffa(0x3a7)])!=null?_0x4da76f:exports['CollaborationSocketService']}],[P['IHTTPImplementation'],{'useClass':P['XHRHTTPImplementation']}],[_[_0x126ffa(0x4b2)],{'useClass':exports[_0x126ffa(0x3cc)]}],[a['IAuthzIoService'],{'useClass':exports[_0x126ffa(0x40b)]}],[L[_0x126ffa(0x49e)],{'useClass':exports['ImageIoService']}],[exports[_0x126ffa(0x4ee)]],[exports[_0x126ffa(0x4d5)]],[exports[_0x126ffa(0x1ce)]],[Ie],[ie]];(_0x4d6134=this[_0x126ffa(0x4fe)])!=null&&_0x4d6134['enableSingleActiveInstanceLock']&&_0x3ab063['push']([be,{'useClass':ys}]),_0x3ab063=a[_0x126ffa(0x36c)](_0x3ab063,(_0x4d4334=this[_0x126ffa(0x4fe)])==null?void 0x0:_0x4d4334['override']),_0x3ab063[_0x126ffa(0x278)](_0x5511a8=>this[_0x126ffa(0x3dd)][_0x126ffa(0x18a)](_0x5511a8)),this[_0x126ffa(0x533)]();}['_registerRenderDependencies'](){const _0x326a3f=_0x945337;this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)]['registerRenderModule'](a[_0x326a3f(0x3b1)]['UNIVER_DOC'],[xe])),this[_0x326a3f(0x50a)](this[_0x326a3f(0x277)][_0x326a3f(0x297)](a[_0x326a3f(0x3b1)][_0x326a3f(0x53c)],[ke]));}['_initModules'](){const _0x1472d3=_0x945337;var _0xa8d765,_0x5b4b0f;this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](P[_0x1472d3(0x22e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':P[_0x1472d3(0x336)]({'maxParallel':0x6})}),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](Ce),(_0xa8d765=this[_0x1472d3(0x4fe)])!=null&&_0xa8d765[_0x1472d3(0x34a)]||this['_injector'][_0x1472d3(0x3eb)](exports['LocalCacheService'])[_0x1472d3(0x19e)](),(_0x5b4b0f=this['_config'])!=null&&_0x5b4b0f[_0x1472d3(0x28b)]&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](pe),this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x4ee)]),this[_0x1472d3(0x3dd)][_0x1472d3(0x384)](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x1472d3(0x3dd)][_0x1472d3(0x3eb)](exports[_0x1472d3(0x1ce)]);}},Tn(exports['UniverCollaborationClientPlugin'],_0x945337(0x24c),Rn),exports['UniverCollaborationClientPlugin']=bn([a[_0x945337(0x292)](_[_0x945337(0x2a8)]),ve(0x1,a[_0x945337(0x48c)]),ve(0x2,R[_0x945337(0x2c4)]),ve(0x3,a[_0x945337(0x4fa)](a[_0x945337(0x2b5)])),ve(0x4,a[_0x945337(0x1f7)])],exports[_0x945337(0x300)]),exports[_0x945337(0x547)]=Mt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=gt,exports[_0x945337(0x3cf)]=ut,exports[_0x945337(0x2c0)]=y,exports[_0x945337(0x3f1)]=wt,exports[_0x945337(0x4f7)]=Ge,exports['HEARTBEAT_INTERVAL_KEY']=dt,exports[_0x945337(0x1c8)]=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x945337(0x527)]=ze,exports[_0x945337(0x451)]=ft,exports['LOGIN_URL_KEY']=mt,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=vt,exports[_0x945337(0x3df)]=Yt,exports[_0x945337(0x54e)]=ht,exports[_0x945337(0x438)]=_t,exports['SessionStatus']=$,exports['SheetCollabCursorShape']=Ot,exports[_0x945337(0x3ab)]=Nt,exports[_0x945337(0x368)]=Ct,exports[_0x945337(0x39b)]=Et;