@univerjs-pro/collaboration-client 0.4.1 → 0.4.2-nightly.202410301606

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.
Files changed (34) hide show
  1. package/lib/es/index.js +1 -1
  2. package/lib/locale/en-US.js +1 -0
  3. package/lib/locale/fa-IR.js +1 -0
  4. package/lib/locale/ru-RU.js +1 -0
  5. package/lib/locale/vi-VN.js +1 -0
  6. package/lib/locale/zh-CN.js +1 -0
  7. package/lib/locale/zh-TW.js +1 -0
  8. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +5 -3
  9. package/lib/types/controllers/collaboration/collaboration-state.d.ts +32 -1
  10. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +2 -0
  11. package/lib/types/index.d.ts +2 -0
  12. package/lib/types/plugin.d.ts +1 -1
  13. package/lib/types/services/auth-server/util.d.ts +1 -0
  14. package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -4
  15. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
  16. package/lib/types/services/member/member.service.d.ts +39 -0
  17. package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +12 -0
  18. package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +1 -1
  19. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
  20. package/lib/umd/index.js +1 -1
  21. package/lib/umd/locale/en-US.js +1 -0
  22. package/lib/umd/locale/fa-IR.js +1 -0
  23. package/lib/umd/locale/ru-RU.js +1 -0
  24. package/lib/umd/locale/vi-VN.js +1 -0
  25. package/lib/umd/locale/zh-CN.js +1 -0
  26. package/lib/umd/locale/zh-TW.js +1 -0
  27. package/package.json +35 -31
  28. package/lib/cjs/index.js +0 -1
  29. package/lib/locale/en-US.json +0 -38
  30. package/lib/locale/fa-IR.json +0 -38
  31. package/lib/locale/ru-RU.json +0 -38
  32. package/lib/locale/vi-VN.json +0 -38
  33. package/lib/locale/zh-CN.json +0 -38
  34. package/lib/locale/zh-TW.json +0 -38
package/lib/cjs/index.js DELETED
@@ -1 +0,0 @@
1
- 'use strict';const _0x4d97e8=_0x4a0f;(function(_0x1d7149,_0x27e3fe){const _0x5f5544=_0x4a0f,_0x398439=_0x1d7149();while(!![]){try{const _0x1299ba=parseInt(_0x5f5544(0x101))/0x1*(-parseInt(_0x5f5544(0x14b))/0x2)+parseInt(_0x5f5544(0x8f))/0x3+-parseInt(_0x5f5544(0x236))/0x4+parseInt(_0x5f5544(0x1ce))/0x5+parseInt(_0x5f5544(0x3c3))/0x6*(parseInt(_0x5f5544(0xbb))/0x7)+parseInt(_0x5f5544(0xb2))/0x8*(-parseInt(_0x5f5544(0x387))/0x9)+-parseInt(_0x5f5544(0x390))/0xa;if(_0x1299ba===_0x27e3fe)break;else _0x398439['push'](_0x398439['shift']());}catch(_0x55e1ae){_0x398439['push'](_0x398439['shift']());}}}(_0x2530,0xbfc1e));var Ft=Object[_0x4d97e8(0x8e)],Gt=(_0x4eac90,_0x530d26,_0x405135)=>_0x530d26 in _0x4eac90?Ft(_0x4eac90,_0x530d26,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x405135}):_0x4eac90[_0x530d26]=_0x405135,u=(_0x20c67e,_0x138655,_0x3db59c)=>Gt(_0x20c67e,typeof _0x138655!=_0x4d97e8(0x2cc)?_0x138655+'':_0x138655,_0x3db59c);Object['defineProperty'](exports,Symbol[_0x4d97e8(0x13c)],{'value':_0x4d97e8(0x2b4)});const a=require(_0x4d97e8(0x3d3)),v=require('rxjs'),E=require(_0x4d97e8(0x399)),X=require(_0x4d97e8(0x4ab)),A=require(_0x4d97e8(0x23c)),w=require(_0x4d97e8(0xd2)),_=require(_0x4d97e8(0x12c)),Yt=require(_0x4d97e8(0x33e)),N=require(_0x4d97e8(0x219)),C=require(_0x4d97e8(0x2db)),D=require(_0x4d97e8(0x1b3)),se=require('@univerjs/docs'),j=require(_0x4d97e8(0x442)),et=require(_0x4d97e8(0x174)),te=require(_0x4d97e8(0x233)),P=require(_0x4d97e8(0x295)),Kt=require(_0x4d97e8(0x39a)),Xt=require(_0x4d97e8(0x12f)),St=_0x4d97e8(0x2c4),qt='/universer-api/snapshot',vt='SNAPSHOT_URL_KEY',zt=_0x4d97e8(0x2a8),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt=_0x4d97e8(0x2f4),mt=_0x4d97e8(0x446),Qt=0x7530,Ge=_0x4d97e8(0x1db),ft=0x4e20,es=0x4e20,It=_0x4d97e8(0x4b1),ts=0x3,pt=_0x4d97e8(0x44b),ss=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',is=_0x4d97e8(0x2a6),Et=_0x4d97e8(0x467),ns=_0x4d97e8(0x496);var bt=(_0x44e307=>(_0x44e307[_0x44e307[_0x4d97e8(0x158)]=0x0]='UNDEFINED',_0x44e307[_0x44e307['OK']=0x1]='OK',_0x44e307[_0x44e307[_0x4d97e8(0x2dd)]=0x2]=_0x4d97e8(0x2dd),_0x44e307[_0x44e307[_0x4d97e8(0x11f)]=0x3]='PERMISSION_DENIED',_0x44e307[_0x44e307[_0x4d97e8(0x39e)]=0x4]=_0x4d97e8(0x39e),_0x44e307[_0x44e307[_0x4d97e8(0xf0)]=0x5]=_0x4d97e8(0xf0),_0x44e307[_0x44e307['ALREADY_EXISTS']=0x6]=_0x4d97e8(0x154),_0x44e307[_0x44e307[_0x4d97e8(0x204)]=0x7]='INVALID_ARGUMENT',_0x44e307[_0x44e307[_0x4d97e8(0x157)]=0x8]=_0x4d97e8(0x157),_0x44e307[_0x44e307[_0x4d97e8(0x139)]=0x9]='COMPLETION_FINISHED',_0x44e307[_0x44e307[_0x4d97e8(0x2c9)]=0x1389]=_0x4d97e8(0x2c9),_0x44e307[_0x44e307[_0x4d97e8(0x40b)]=0x1771]=_0x4d97e8(0x40b),_0x44e307[_0x44e307[_0x4d97e8(0x260)]=0x1772]=_0x4d97e8(0x260),_0x44e307[_0x44e307[_0x4d97e8(0x393)]=0x1773]=_0x4d97e8(0x393),_0x44e307[_0x44e307['APPLY_REJECT']=0x1b59]=_0x4d97e8(0x476),_0x44e307[_0x44e307[_0x4d97e8(0x9d)]=0x1b5a]=_0x4d97e8(0x9d),_0x44e307[_0x44e307[_0x4d97e8(0x153)]=0x1b5b]=_0x4d97e8(0x153),_0x44e307[_0x44e307[_0x4d97e8(0x31b)]=0x1b5c]=_0x4d97e8(0x31b),_0x44e307[_0x44e307[_0x4d97e8(0x91)]=0x1b5d]=_0x4d97e8(0x91),_0x44e307[_0x44e307[_0x4d97e8(0x171)]=0x1f41]=_0x4d97e8(0x171),_0x44e307[_0x44e307[_0x4d97e8(0x243)]=0x2329]=_0x4d97e8(0x243),_0x44e307[_0x44e307[_0x4d97e8(0x400)]=0x232a]=_0x4d97e8(0x400),_0x44e307[_0x44e307['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4d97e8(0x39b),_0x44e307[_0x44e307[_0x4d97e8(0x2c0)]=0x232c]=_0x4d97e8(0x2c0),_0x44e307[_0x44e307[_0x4d97e8(0x4ac)]=0x232d]=_0x4d97e8(0x4ac),_0x44e307[_0x44e307[_0x4d97e8(0x263)]=0x2711]=_0x4d97e8(0x263),_0x44e307[_0x44e307['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x4d97e8(0x32e),_0x44e307[_0x44e307[_0x4d97e8(0x34e)]=0x2713]=_0x4d97e8(0x34e),_0x44e307[_0x44e307[_0x4d97e8(0xea)]=0x2714]=_0x4d97e8(0xea),_0x44e307[_0x44e307[_0x4d97e8(0x2b8)]=-0x1]=_0x4d97e8(0x2b8),_0x44e307))(bt||{}),$=(_0x438571=>(_0x438571[_0x438571['UNIVER_UNKNOWN']=0x0]=_0x4d97e8(0x16f),_0x438571[_0x438571[_0x4d97e8(0x15d)]=0x1]=_0x4d97e8(0x15d),_0x438571[_0x438571[_0x4d97e8(0x15c)]=0x2]=_0x4d97e8(0x15c),_0x438571[_0x438571[_0x4d97e8(0x1b8)]=0x3]=_0x4d97e8(0x1b8),_0x438571[_0x438571['UNIVER_PROJECT']=0x4]='UNIVER_PROJECT',_0x438571[_0x438571[_0x4d97e8(0x2b8)]=-0x1]='UNRECOGNIZED',_0x438571))($||{}),b=(_0x1bbea5=>(_0x1bbea5[_0x1bbea5[_0x4d97e8(0x24a)]=0x0]=_0x4d97e8(0x24a),_0x1bbea5[_0x1bbea5[_0x4d97e8(0x208)]=0x1]=_0x4d97e8(0x208),_0x1bbea5[_0x1bbea5['JOIN']=0x2]='JOIN',_0x1bbea5[_0x1bbea5['LEAVE']=0x3]=_0x4d97e8(0x461),_0x1bbea5[_0x1bbea5['INGEST']=0x4]=_0x4d97e8(0x43e),_0x1bbea5[_0x1bbea5['HEARTBEAT']=0x5]='HEARTBEAT',_0x1bbea5[_0x1bbea5[_0x4d97e8(0x140)]=0x6]='RECV',_0x1bbea5[_0x1bbea5[_0x4d97e8(0x2b8)]=-0x1]=_0x4d97e8(0x2b8),_0x1bbea5))(b||{}),Ye=(_0x5cf09a=>(_0x5cf09a[_0x5cf09a['UNKNOWN_CODE']=0x0]=_0x4d97e8(0x28e),_0x5cf09a[_0x5cf09a['OK']=0x1]='OK',_0x5cf09a[_0x5cf09a['FAIL']=0x2]=_0x4d97e8(0x32d),_0x5cf09a[_0x5cf09a['UNRECOGNIZED']=-0x1]=_0x4d97e8(0x2b8),_0x5cf09a))(Ye||{}),Tt=(_0x50eedc=>(_0x50eedc[_0x50eedc['Undefined']=0x0]=_0x4d97e8(0x353),_0x50eedc[_0x50eedc['HttpImport']=0x1]='HttpImport',_0x50eedc[_0x50eedc[_0x4d97e8(0x198)]=0x2]=_0x4d97e8(0x198),_0x50eedc[_0x50eedc[_0x4d97e8(0x1d6)]=0x3]=_0x4d97e8(0x1d6),_0x50eedc[_0x50eedc['UnitSnapshot']=0x4]='UnitSnapshot',_0x50eedc[_0x50eedc['UNRECOGNIZED']=-0x1]=_0x4d97e8(0x2b8),_0x50eedc))(Tt||{});const L='collaboration-client.config',rs={};function Rt(_0x40c451){const _0x1440e4=_0x4d97e8;var _0x2c3c07,_0x59fd2d,_0x3e2124,_0xc5c4eb;const _0x3269c8=_0x40c451[_0x1440e4(0x201)],_0x96c2c9=JSON[_0x1440e4(0x234)](_0x3269c8);switch(_0x96c2c9[_0x1440e4(0x335)]){case b[_0x1440e4(0x341)]:case b['HELLO']:{const _0x53dda3=_0x96c2c9['infoRsp'];return{..._0x96c2c9,'data':_0x53dda3,'cmd':_0x96c2c9[_0x1440e4(0x335)]};}case b[_0x1440e4(0xd3)]:{const _0x3f7c5a=_0x96c2c9[_0x1440e4(0x150)];return{..._0x96c2c9,'data':_0x3f7c5a,'cmd':_0x96c2c9['cmd']};}case b[_0x1440e4(0x140)]:{const _0x3625a8=_0x96c2c9[_0x1440e4(0x1a7)];switch(_0x3625a8[_0x1440e4(0x445)]){case _[_0x1440e4(0x49e)]['PERMISSION_REJ']:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0x2c3c07=_0x3625a8[_0x1440e4(0x1d7)])==null?void 0x0:_0x2c3c07['cs']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _['CollaborationEvent'][_0x1440e4(0x94)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0x59fd2d=_0x3625a8[_0x1440e4(0xec)])==null?void 0x0:_0x59fd2d['cs']},'cmd':_0x96c2c9['cmd']};case _[_0x1440e4(0x49e)][_0x1440e4(0x148)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0x3e2124=_0x3625a8[_0x1440e4(0x280)])==null?void 0x0:_0x3e2124['cs']},'cmd':_0x96c2c9['cmd']};case _['CollaborationEvent'][_0x1440e4(0x1bd)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':(_0xc5c4eb=_0x3625a8[_0x1440e4(0xc4)])==null?void 0x0:_0xc5c4eb['cs']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x415)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8['updateCursorEvent']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _['CollaborationEvent']['USERS_ENTER']:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x316)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0xf4)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x36b)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x432)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0xfb)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x253)]:case _['CollaborationEvent'][_0x1440e4(0x195)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8['liveShareOperation']},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x2a7)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0xfb)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x9c)]:return{..._0x96c2c9,'data':_0x3625a8,'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)]['COMMENT_UPDATE']:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x35e)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0x3f0)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8[_0x1440e4(0x2bc)]},'cmd':_0x96c2c9[_0x1440e4(0x335)]};case _[_0x1440e4(0x49e)][_0x1440e4(0xdb)]:return{..._0x96c2c9,'data':{..._0x3625a8,'data':_0x3625a8['shouldCloseConn']},'cmd':_0x96c2c9['cmd']};default:return _0x96c2c9;}}default:return _0x96c2c9;}}function Ot(_0x2b4ff4){const _0x37ee91=_0x4d97e8;switch(_0x2b4ff4[_0x37ee91(0x335)]){case b[_0x37ee91(0x341)]:case b[_0x37ee91(0x208)]:return JSON['stringify']({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4[_0x37ee91(0x336)]});case b['INGEST']:{let _0x1bde28;switch(_0x2b4ff4['data'][_0x37ee91(0x445)]){case _['CollaborationEvent'][_0x37ee91(0x415)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x415)],'updateCursorEvent':_0x2b4ff4['data'][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0xf4)]:{_0x1bde28={'eventID':_['CollaborationEvent'][_0x37ee91(0xf4)],'leaveEvent':_0x2b4ff4[_0x37ee91(0x201)]['data']};break;}case _[_0x37ee91(0x49e)]['USERS_ENTER']:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)]['USERS_ENTER'],'joinEvent':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)]['LIVESHARE_NEW_HOST']:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _['CollaborationEvent'][_0x37ee91(0x195)]:{_0x1bde28={'eventID':_['CollaborationEvent'][_0x37ee91(0x195)],'liveShareOperation':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0x2a7)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x2a7)],'liveShareTerminate':_0x2b4ff4['data']['data']};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0x2d3)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x2d3)],'liveShareRequestHost':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x201)]};break;}case _[_0x37ee91(0x49e)][_0x37ee91(0x253)]:{_0x1bde28={'eventID':_[_0x37ee91(0x49e)][_0x37ee91(0x253)]};break;}default:_0x1bde28={'eventID':_0x2b4ff4[_0x37ee91(0x201)][_0x37ee91(0x445)]};}return JSON[_0x37ee91(0x1f8)]({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4[_0x37ee91(0x336)],'collaMsg':_0x1bde28});}case b['JOIN']:return JSON[_0x37ee91(0x1f8)]({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4[_0x37ee91(0x336)],'joinReq':_0x2b4ff4[_0x37ee91(0x201)]});case b[_0x37ee91(0x461)]:return JSON['stringify']({'cmd':_0x2b4ff4[_0x37ee91(0x335)],'routeKey':_0x2b4ff4['routeKey'],'leaveReq':_0x2b4ff4[_0x37ee91(0x201)]});default:throw new Error(_0x37ee91(0x244));}}var os=Object[_0x4d97e8(0x8e)],as=Object[_0x4d97e8(0x100)],cs=(_0xfc120b,_0x3dcaec,_0x5b91ae,_0x205b3f)=>{const _0x1a7654=_0x4d97e8;for(var _0x4c3d60=_0x205b3f>0x1?void 0x0:_0x205b3f?as(_0x3dcaec,_0x5b91ae):_0x3dcaec,_0x149d35=_0xfc120b[_0x1a7654(0x424)]-0x1,_0x2af480;_0x149d35>=0x0;_0x149d35--)(_0x2af480=_0xfc120b[_0x149d35])&&(_0x4c3d60=(_0x205b3f?_0x2af480(_0x3dcaec,_0x5b91ae,_0x4c3d60):_0x2af480(_0x4c3d60))||_0x4c3d60);return _0x205b3f&&_0x4c3d60&&os(_0x3dcaec,_0x5b91ae,_0x4c3d60),_0x4c3d60;},ae=(_0x186280,_0x2c7926)=>(_0x3b4fd6,_0x56b4d6)=>_0x2c7926(_0x3b4fd6,_0x56b4d6,_0x186280);const Ke=a[_0x4d97e8(0x290)](_0x4d97e8(0x30d));function ls(_0x3e4d2c,_0x3f352e,_0xd3643e){const _0x3478e4=_0x4d97e8;return _0x3e4d2c+'/'+_0x3f352e+_0x3478e4(0x218)+_0xd3643e+_0x3478e4(0x470);}exports[_0x4d97e8(0x443)]=class extends a['Disposable']{constructor(_0x490b70,_0x517c93,_0x5ce4e3,_0x55baf7,_0x109f91){const _0x6717b4=_0x4d97e8;super(),this[_0x6717b4(0x176)]=_0x490b70,this['_ws']=_0x517c93,this[_0x6717b4(0xbd)]=_0x5ce4e3,this[_0x6717b4(0x188)]=_0x55baf7,this[_0x6717b4(0x42f)]=_0x109f91;}[_0x4d97e8(0x13e)](_0x2baae1){const _0x286775=_0x4d97e8,_0x37c4e1=this['_ws'][_0x286775(0x13e)](_0x2baae1);if(!_0x37c4e1)throw new Error(_0x286775(0x121));const _0x215bac=new a[(_0x286775(0x1bf))](),_0x34f735=new v[(_0x286775(0xba))]();_0x215bac[_0x286775(0x471)](_0x37c4e1[_0x286775(0x3bb)][_0x286775(0x1c4)](_0xc1493c=>_0x34f735[_0x286775(0x120)](_0xc1493c))),_0x215bac['add'](a[_0x286775(0x257)](()=>_0x34f735[_0x286775(0x370)]()));const _0x13ef53=new v[(_0x286775(0xba))]();_0x215bac['add'](_0x37c4e1[_0x286775(0x37a)]['subscribe'](_0x291633=>_0x13ef53[_0x286775(0x120)](_0x291633))),_0x215bac[_0x286775(0x471)](a[_0x286775(0x257)](()=>_0x13ef53[_0x286775(0x370)]()));const _0x3a41ec=new v[(_0x286775(0xba))]();_0x215bac[_0x286775(0x471)](_0x37c4e1['message$']['subscribe'](_0x31708c=>{const _0x3b8f9a=_0x286775,_0x2ab26c=Rt(_0x31708c);_0x3a41ec[_0x3b8f9a(0x120)](_0x2ab26c);})),_0x215bac['add'](a[_0x286775(0x257)](()=>_0x3a41ec[_0x286775(0x370)]()));let _0x1b981e;const _0x17cc43=()=>{const _0x26d155=_0x286775;_0x13ef53[_0x26d155(0x120)](new Event('connection\x20error')),_0x34f735[_0x26d155(0x120)](new CloseEvent(_0x26d155(0xfe))),_0x1b981e['close']();};return _0x1b981e={'memberID':'','close$':_0x34f735[_0x286775(0x144)](),'error$':_0x13ef53[_0x286775(0x144)](),'open$':_0x37c4e1[_0x286775(0xd6)],'message$':_0x3a41ec['asObservable'](),'send':_0x21e9e7=>{const _0x2a6547=_0x286775;if(_0x21e9e7['cmd']===b['INGEST']){if(_0x21e9e7[_0x2a6547(0x201)]['eventID']===_[_0x2a6547(0x49e)][_0x2a6547(0x312)]){this['_submitChangeset'](_0x1b981e,_0x21e9e7[_0x2a6547(0x201)])[_0x2a6547(0x3c6)](_0x55ee0a=>{const _0x30c6c1=_0x2a6547;this[_0x30c6c1(0x188)]['error'](_0x55ee0a),_0x17cc43();});return;}if(_0x21e9e7['data'][_0x2a6547(0x445)]===_[_0x2a6547(0x49e)][_0x2a6547(0x2f3)]){const _0xa8c536=_0x21e9e7[_0x2a6547(0x201)];this[_0x2a6547(0x19f)](_0xa8c536)[_0x2a6547(0x4b7)](_0xfb72a5=>{const _0x461b7e=_0x2a6547;_0x3a41ec[_0x461b7e(0x120)]({'cmd':b[_0x461b7e(0x140)],'code':Ye['OK'],'routeKey':_0xa8c536[_0x461b7e(0x201)][_0x461b7e(0x331)],'routeType':'','data':{'eventID':_[_0x461b7e(0x49e)][_0x461b7e(0xf3)],'data':{'changesets':_0xfb72a5}}});})[_0x2a6547(0x3c6)](_0xf6eff=>{const _0x2f0483=_0x2a6547;this[_0x2f0483(0x188)]['error'](_0xf6eff),_0x17cc43();});return;}}_0x37c4e1[_0x2a6547(0x3d6)](Ot(_0x21e9e7));},'close':()=>{const _0x74bde=_0x286775;_0x37c4e1[_0x74bde(0x3fe)](),_0x215bac[_0x74bde(0x337)]();}},_0x1b981e;}async[_0x4d97e8(0x28d)](_0x399f5e,_0x174a65){const _0x320782=_0x4d97e8;var _0x9cc7f6,_0x1457d9;const {unitType:_0x4d05b4,unitID:_0x56361f,changeset:_0x35d1f8}=_0x174a65[_0x320782(0x201)],_0x567248={'unitID':_0x56361f,'memberID':_0x399f5e[_0x320782(0x2ef)],'type':_0x4d05b4,'changeset':_[_0x320782(0x3e5)](_0x35d1f8)},_0x58ae32=this[_0x320782(0xbd)][_0x320782(0x1f4)](Ct),_0x211e18=this[_0x320782(0xbd)]['getConfig'](L),_0x218944=ls((_0x1457d9=(_0x9cc7f6=_0x211e18==null?void 0x0:_0x211e18['collabSubmitChangesetUrl'])!=null?_0x9cc7f6:_0x58ae32)!=null?_0x1457d9:is,_0x4d05b4,_0x56361f);try{await this[_0x320782(0x176)][_0x320782(0x43b)](_0x218944,{'body':_0x567248});}catch(_0x12b310){throw this[_0x320782(0x188)][_0x320782(0x497)](_0x320782(0x258),_0x320782(0x464)),_0x12b310;}}async[_0x4d97e8(0x19f)](_0x404269){const _0x41443c=_0x4d97e8,{unitID:_0xb5852a,from:_0x566fd8,to:_0x295c6c,unitType:_0x598120}=_0x404269[_0x41443c(0x201)];return(await this[_0x41443c(0x42f)][_0x41443c(0xee)]({'metadata':void 0x0},{'unitID':_0xb5852a,'type':_0x598120,'from':_0x566fd8,'to':_0x295c6c}))[_0x41443c(0x3eb)];}},exports[_0x4d97e8(0x443)]=cs([ae(0x0,a[_0x4d97e8(0x13d)](w['HTTPService'])),ae(0x1,a[_0x4d97e8(0x13d)](w['WebSocketService'])),ae(0x2,a[_0x4d97e8(0x332)]),ae(0x3,a[_0x4d97e8(0xeb)]),ae(0x4,_[_0x4d97e8(0x135)])],exports[_0x4d97e8(0x443)]);const hs='collaboration_new_changeset';function _s(_0x17fa7a){const _0x4595ea=_0x4d97e8;return JSON[_0x4595ea(0x1f8)](_0x17fa7a)[_0x4595ea(0x424)];}class Xe{constructor(){const _0x4e3afa=_0x4d97e8;u(this,_0x4e3afa(0x3ca),new v['Subject']()),u(this,_0x4e3afa(0x23a),this[_0x4e3afa(0x3ca)]['asObservable']());}[_0x4d97e8(0x30e)](_0x79fb70){this['_commentUpdate$']['next'](_0x79fb70);}}var us=Object[_0x4d97e8(0x8e)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x577370,_0x1b3e78,_0x48e826,_0x472162)=>{const _0x4560b4=_0x4d97e8;for(var _0x18fdc7=_0x472162>0x1?void 0x0:_0x472162?ds(_0x1b3e78,_0x48e826):_0x1b3e78,_0x26d557=_0x577370[_0x4560b4(0x424)]-0x1,_0xf3c9b9;_0x26d557>=0x0;_0x26d557--)(_0xf3c9b9=_0x577370[_0x26d557])&&(_0x18fdc7=(_0x472162?_0xf3c9b9(_0x1b3e78,_0x48e826,_0x18fdc7):_0xf3c9b9(_0x18fdc7))||_0x18fdc7);return _0x472162&&_0x18fdc7&&us(_0x1b3e78,_0x48e826,_0x18fdc7),_0x18fdc7;},tt=(_0x2f164a,_0xaf40a9)=>(_0x4a0d2d,_0x316eaa)=>_0xaf40a9(_0x4a0d2d,_0x316eaa,_0x2f164a);let q=class extends a[_0x4d97e8(0x39c)]{constructor(_0x468e6c,_0x2f9f5c){const _0x3162fb=_0x4d97e8;super(),u(this,_0x3162fb(0x2a0),new Map()),(this[_0x3162fb(0x85)]=_0x468e6c,this[_0x3162fb(0x2cb)]=_0x2f9f5c,this['disposeWithMe'](a['toDisposable'](v[_0x3162fb(0x1c8)](this[_0x3162fb(0x85)][_0x3162fb(0x89)](a[_0x3162fb(0x262)][_0x3162fb(0x15c)])['pipe'](E[_0x3162fb(0x12b)](_0x3160f0=>_0x3160f0[_0x3162fb(0x46c)]())),this[_0x3162fb(0x85)][_0x3162fb(0x89)](a[_0x3162fb(0x262)][_0x3162fb(0x15d)])[_0x3162fb(0x488)](E[_0x3162fb(0x12b)](_0x2396d9=>_0x2396d9[_0x3162fb(0x46c)]())),this[_0x3162fb(0x85)][_0x3162fb(0x89)](a[_0x3162fb(0x262)][_0x3162fb(0x1b8)])['pipe'](E['map'](_0x53b456=>_0x53b456[_0x3162fb(0x46c)]())))['subscribe'](_0x3a6468=>this[_0x3162fb(0x17f)](_0x3a6468)))));}[_0x4d97e8(0x3a4)](_0x263261){this['_userManagerService']['setCurrentUser'](_0x263261);}[_0x4d97e8(0x238)](){const _0x104f90=_0x4d97e8;return this[_0x104f90(0x2cb)][_0x104f90(0x238)]();}[_0x4d97e8(0xb3)](_0x5739e0,_0x2f56cd){const _0x34a99e=_0x4d97e8;let _0x5ee96b=this[_0x34a99e(0x2a0)][_0x34a99e(0x491)](_0x5739e0);_0x5ee96b||(_0x5ee96b=new vs(),this[_0x34a99e(0x2a0)][_0x34a99e(0x24d)](_0x5739e0,_0x5ee96b)),_0x5ee96b[_0x34a99e(0xb3)](_0x2f56cd);}[_0x4d97e8(0x3f5)](_0x53f54b,_0x3f88ec){const _0x4a8b08=_0x4d97e8,_0x29b8b2=this['_roomMembers'][_0x4a8b08(0x491)](_0x53f54b);_0x29b8b2&&_0x29b8b2[_0x4a8b08(0x3f5)](_0x3f88ec);}[_0x4d97e8(0x3af)](_0x44671b){const _0x39b555=_0x4d97e8;return this['_roomMembers'][_0x39b555(0x491)](_0x44671b);}[_0x4d97e8(0x14a)](_0x337433,_0x52d5c7){const _0x2cd724=_0x4d97e8,_0x1e158e=this[_0x2cd724(0x2a0)][_0x2cd724(0x491)](_0x337433);if(_0x1e158e)return _0x1e158e[_0x2cd724(0x14a)](_0x52d5c7);}['_removeRoom'](_0x262a68){const _0x93f2ff=_0x4d97e8,_0xed9f9d=this[_0x93f2ff(0x2a0)][_0x93f2ff(0x491)](_0x262a68);_0xed9f9d&&(_0xed9f9d[_0x93f2ff(0x337)](),this[_0x93f2ff(0x2a0)][_0x93f2ff(0x1b2)](_0x262a68));}[_0x4d97e8(0x337)](){const _0x1d23f9=_0x4d97e8;this[_0x1d23f9(0x2a0)]['forEach'](_0x433f69=>_0x433f69[_0x1d23f9(0x337)]()),this[_0x1d23f9(0x2a0)][_0x1d23f9(0x456)]();}};q=Ss([tt(0x0,a[_0x4d97e8(0x248)]),tt(0x1,a['Inject'](a[_0x4d97e8(0x347)]))],q);class vs extends a[_0x4d97e8(0x39c)]{constructor(){const _0x2fadcf=_0x4d97e8;super(...arguments),u(this,_0x2fadcf(0xf1),new Map());}['dispose'](){const _0x19d207=_0x4d97e8;this[_0x19d207(0xf1)][_0x19d207(0x456)]();}[_0x4d97e8(0xb3)](_0x56f152){const _0x41e887=_0x4d97e8;this[_0x41e887(0xf1)][_0x41e887(0x24d)](_0x56f152[_0x41e887(0x2ef)],_0x56f152);}[_0x4d97e8(0x3f5)](_0x421fb4){const _0x126745=_0x4d97e8;this[_0x126745(0xf1)][_0x126745(0x1b2)](_0x421fb4);}[_0x4d97e8(0x14a)](_0x7079e1){const _0xa20f46=_0x4d97e8;return this[_0xa20f46(0xf1)][_0xa20f46(0x491)](_0x7079e1);}}var gs=Object[_0x4d97e8(0x8e)],ms=Object[_0x4d97e8(0x100)],fs=(_0x21fbc6,_0xced562,_0x39ce32,_0x323906)=>{for(var _0x5bdd12=_0x323906>0x1?void 0x0:_0x323906?ms(_0xced562,_0x39ce32):_0xced562,_0x34ba5f=_0x21fbc6['length']-0x1,_0x391db6;_0x34ba5f>=0x0;_0x34ba5f--)(_0x391db6=_0x21fbc6[_0x34ba5f])&&(_0x5bdd12=(_0x323906?_0x391db6(_0xced562,_0x39ce32,_0x5bdd12):_0x391db6(_0x5bdd12))||_0x5bdd12);return _0x323906&&_0x5bdd12&&gs(_0xced562,_0x39ce32,_0x5bdd12),_0x5bdd12;},V=(_0x490498,_0x5b4c04)=>(_0x4f5f41,_0xe4a065)=>_0x5b4c04(_0x4f5f41,_0xe4a065,_0x490498),H=(_0x40e0df=>(_0x40e0df[_0x40e0df[_0x4d97e8(0x143)]=0x0]=_0x4d97e8(0x143),_0x40e0df[_0x40e0df[_0x4d97e8(0x349)]=0x1]='JOINING',_0x40e0df[_0x40e0df[_0x4d97e8(0x283)]=0x2]=_0x4d97e8(0x283),_0x40e0df[_0x40e0df[_0x4d97e8(0x2ee)]=0x3]='ONLINE',_0x40e0df))(H||{});exports[_0x4d97e8(0x44c)]=class extends a['RxDisposable']{constructor(_0x1793b6,_0x13a783,_0x474cfa,_0x34e0fe,_0x7d1b4f,_0x2af84f,_0x15182d,_0x3d08b6,_0x1ccb79,_0x3e8e0e){const _0x476016=_0x4d97e8;super(),u(this,'_sessionStatus$',new v[(_0x476016(0x114))](0x0)),u(this,_0x476016(0x13f),this['_sessionStatus$']['asObservable']()),u(this,_0x476016(0x287),new v[(_0x476016(0xba))]()),u(this,_0x476016(0x3e4),this[_0x476016(0x287)][_0x476016(0x144)]()),u(this,_0x476016(0x438)),u(this,'_socketMessageSubscription'),u(this,_0x476016(0x187)),u(this,'_shouldReportTelemetry',!0x1),u(this,_0x476016(0x38f),null),(this[_0x476016(0x2e7)]=_0x1793b6,this[_0x476016(0x188)]=_0x474cfa,this[_0x476016(0x2e0)]=_0x34e0fe,this[_0x476016(0x213)]=_0x7d1b4f,this['_configService']=_0x2af84f,this[_0x476016(0x40e)]=_0x15182d,this[_0x476016(0x3a7)]=_0x3d08b6,this['_commentService']=_0x1ccb79,this[_0x476016(0x1fb)]=_0x3e8e0e,this[_0x476016(0x3ee)]=!!this['_telemetryService'],_0x13a783[_0x476016(0x488)](v['takeUntil'](this[_0x476016(0x498)]))[_0x476016(0x1c4)](_0x5dd413=>{const _0xbc24fe=_0x476016;var _0x1e1f86;typeof _0x5dd413>'u'||(this[_0xbc24fe(0x438)]=_0x5dd413,_0x5dd413?(this[_0xbc24fe(0x2ad)](_0x5dd413),this[_0xbc24fe(0x190)]=_0x5dd413['message$']['subscribe'](_0x374030=>{const _0x2d595f=_0xbc24fe;_0x374030[_0x2d595f(0x336)]===this[_0x2d595f(0x2e7)]&&this[_0x2d595f(0xb7)](_0x374030);})):(this[_0xbc24fe(0xfa)](),this[_0xbc24fe(0x412)][_0xbc24fe(0x120)](0x2),(_0x1e1f86=this[_0xbc24fe(0x190)])==null||_0x1e1f86[_0xbc24fe(0xf5)](),this[_0xbc24fe(0x190)]=null));}),this[_0x476016(0x1e2)](this['_beforeCloseService'][_0x476016(0x3ef)](()=>{const _0x26124f=_0x476016;var _0x585c4c;(_0x585c4c=this[_0x26124f(0x438)])==null||_0x585c4c[_0x26124f(0x3d6)]({'cmd':b['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x4d97e8(0x2da)](){const _0x2308ee=_0x4d97e8;return this[_0x2308ee(0x412)]['getValue']();}[_0x4d97e8(0x346)](){const _0x591201=_0x4d97e8;var _0x765eb4,_0x491876;return(_0x491876=(_0x765eb4=this[_0x591201(0x438)])==null?void 0x0:_0x765eb4[_0x591201(0x2ef)])!=null?_0x491876:null;}['dispose'](){const _0x8028c3=_0x4d97e8;super[_0x8028c3(0x337)](),this[_0x8028c3(0x498)][_0x8028c3(0x120)](),this[_0x8028c3(0x498)][_0x8028c3(0x370)]();}['close'](){const _0x103574=_0x4d97e8;var _0x482523,_0x1b4fe5;this[_0x103574(0xfa)](),(_0x482523=this[_0x103574(0x438)])==null||_0x482523['send']({'cmd':b[_0x103574(0x461)],'data':{'roomID':this[_0x103574(0x2e7)]}}),(_0x1b4fe5=this['_socket'])==null||_0x1b4fe5[_0x103574(0x3fe)](),this['_event$'][_0x103574(0x370)](),this[_0x103574(0x412)][_0x103574(0x370)](),this['dispose']();}[_0x4d97e8(0xb7)](_0xd0139f){const _0x236a97=_0x4d97e8;_0xd0139f['cmd']===b[_0x236a97(0xd3)]?this[_0x236a97(0x2b0)](_0xd0139f):_0xd0139f[_0x236a97(0x335)]===b[_0x236a97(0x140)]&&this[_0x236a97(0xe9)](_0xd0139f);}['_joinRoom'](_0x39c422){const _0x11edf1=_0x4d97e8;this[_0x11edf1(0x412)][_0x11edf1(0x120)](0x1),_0x39c422['send']({'cmd':b[_0x11edf1(0xd3)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x11edf1(0x2e7)]}]}});}['_onJoinRoomEvent'](_0x562c46){const _0xa2cb45=_0x4d97e8;var _0x17efd6;if(_0x562c46['code']===Ye[_0xa2cb45(0x32d)]){this['_messageService']['show']({'type':X[_0xa2cb45(0xa0)][_0xa2cb45(0x25a)],'content':this[_0xa2cb45(0x40e)]['t'](_0xa2cb45(0x1ba))}),this[_0xa2cb45(0x412)][_0xa2cb45(0x120)](0x2);return;}this[_0xa2cb45(0x412)][_0xa2cb45(0x120)](0x3);const _0x1b17d9=(_0x17efd6=_0x562c46[_0xa2cb45(0x201)][_0xa2cb45(0x40c)][this[_0xa2cb45(0x2e7)]])==null?void 0x0:_0x17efd6[_0xa2cb45(0x4b5)];_0x1b17d9&&_0x1b17d9[_0xa2cb45(0x373)](_0x31361a=>this[_0xa2cb45(0x3a7)]['updateMember'](this[_0xa2cb45(0x2e7)],_0x31361a));}[_0x4d97e8(0xe9)](_0x26366d){const _0x26c0ea=_0x4d97e8;try{const _0x35631f=_0x26366d[_0x26c0ea(0x201)];switch(_0x35631f[_0x26c0ea(0x445)]){case _[_0x26c0ea(0x49e)][_0x26c0ea(0x30a)]:this[_0x26c0ea(0x483)](_0x35631f),this['_event$'][_0x26c0ea(0x120)](_0x35631f);break;case _[_0x26c0ea(0x49e)][_0x26c0ea(0xf4)]:this[_0x26c0ea(0x460)](_0x35631f),this[_0x26c0ea(0x287)][_0x26c0ea(0x120)](_0x35631f);break;case _[_0x26c0ea(0x49e)][_0x26c0ea(0x94)]:this[_0x26c0ea(0x3cf)](),this[_0x26c0ea(0x83)](),this[_0x26c0ea(0x287)][_0x26c0ea(0x120)](_0x35631f);break;case _['CollaborationEvent'][_0x26c0ea(0x9c)]:this[_0x26c0ea(0x188)][_0x26c0ea(0x497)](_0x26c0ea(0x222)+JSON[_0x26c0ea(0x1f8)](_0x35631f)),this[_0x26c0ea(0x287)]['next'](_0x35631f);break;case _[_0x26c0ea(0x49e)]['COMMENT_UPDATE']:this['_commentService']['onCommentUpdate'](_0x35631f['data']),this['_event$'][_0x26c0ea(0x120)](_0x35631f);break;default:this[_0x26c0ea(0x287)][_0x26c0ea(0x120)](_0x35631f);}}catch(_0x507203){this[_0x26c0ea(0x188)]['error'](_0x507203,_0x26366d);}}[_0x4d97e8(0x483)](_0xc7f611){const _0x5248b1=_0x4d97e8;this[_0x5248b1(0x3a7)][_0x5248b1(0xb3)](this[_0x5248b1(0x2e7)],_0xc7f611[_0x5248b1(0x201)]);}[_0x4d97e8(0x460)](_0x5a28e3){const _0x114624=_0x4d97e8;this['_memberService'][_0x114624(0x3f5)](this[_0x114624(0x2e7)],_0x5a28e3[_0x114624(0x201)][_0x114624(0x2ef)]);}async[_0x4d97e8(0x3d6)](_0x1badf7,_0x5e5e43){const _0xe66db=_0x4d97e8;if(this[_0xe66db(0x2da)]!==0x3||!this['_socket'])throw new Error(_0xe66db(0x275));try{_0x1badf7[_0xe66db(0x445)]===_[_0xe66db(0x49e)][_0xe66db(0x312)]&&(this[_0xe66db(0x308)](),this[_0xe66db(0x413)](_0x1badf7)),this[_0xe66db(0x438)][_0xe66db(0x3d6)]({'cmd':b[_0xe66db(0x43e)],'routeKey':_0x5e5e43,'routeType':'','data':_0x1badf7});}catch(_0x2746ed){this['_logService'][_0xe66db(0x497)](_0x2746ed);}}[_0x4d97e8(0x308)](){const _0x5491d4=_0x4d97e8;var _0x18c383;this[_0x5491d4(0x187)]=window[_0x5491d4(0x3c4)](()=>{const _0x2c820a=_0x5491d4;this[_0x2c820a(0x187)]=null,this[_0x2c820a(0x213)][_0x2c820a(0x207)]({'type':X['MessageType'][_0x2c820a(0x1ff)],'content':this['_localeService']['t'](_0x2c820a(0x41b))});},(_0x18c383=this['_configService'][_0x5491d4(0x1f4)](Ge))!=null?_0x18c383:ft);}['_clearCollaborationTimeoutTimer'](){const _0x3b7327=_0x4d97e8;this[_0x3b7327(0x187)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x5b069a){const _0xe0e053=_0x4d97e8;if(!this[_0xe0e053(0x3ee)])return;const {data:_0x4ca4ae}=_0x5b069a,{unitID:_0x29d287,changeset:_0x2b0724}=_0x4ca4ae,{mutations:_0x216dad,type:_0x13e5ac}=_0x2b0724;this[_0xe0e053(0x38f)]={'unitId':_0x29d287,'type':_0x13e5ac,'startTime':performance[_0xe0e053(0x19b)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x216dad)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x35f4f9=_0x4d97e8;if(this[_0x35f4f9(0x3ee)]){if(!this[_0x35f4f9(0x38f)]){this[_0x35f4f9(0x188)][_0x35f4f9(0x497)](_0x35f4f9(0x258),_0x35f4f9(0x90));return;}this[_0x35f4f9(0x38f)][_0x35f4f9(0x344)]=performance[_0x35f4f9(0x19b)](),this[_0x35f4f9(0x38f)][_0x35f4f9(0x92)]=this[_0x35f4f9(0x38f)]['stopTime']-this[_0x35f4f9(0x38f)]['startTime'],this[_0x35f4f9(0x1fb)][_0x35f4f9(0xcb)](hs,this[_0x35f4f9(0x38f)]),this[_0x35f4f9(0x38f)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3152aa=_0x4d97e8;this[_0x3152aa(0x38f)]=null;}},exports[_0x4d97e8(0x44c)]=fs([V(0x2,a[_0x4d97e8(0xeb)]),V(0x3,A['IBeforeCloseService']),V(0x4,A[_0x4d97e8(0x318)]),V(0x5,a[_0x4d97e8(0x332)]),V(0x6,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)])),V(0x7,a[_0x4d97e8(0x13d)](q)),V(0x8,a[_0x4d97e8(0x13d)](Xe)),V(0x9,a[_0x4d97e8(0x444)](Yt[_0x4d97e8(0x19a)]))],exports[_0x4d97e8(0x44c)]);var Is=Object[_0x4d97e8(0x8e)],ps=Object[_0x4d97e8(0x100)],Cs=(_0x2970bf,_0x1685b4,_0x4f28cd,_0x1727a2)=>{const _0x125468=_0x4d97e8;for(var _0x3c6a5f=_0x1727a2>0x1?void 0x0:_0x1727a2?ps(_0x1685b4,_0x4f28cd):_0x1685b4,_0xc9bcfc=_0x2970bf[_0x125468(0x424)]-0x1,_0x23ffab;_0xc9bcfc>=0x0;_0xc9bcfc--)(_0x23ffab=_0x2970bf[_0xc9bcfc])&&(_0x3c6a5f=(_0x1727a2?_0x23ffab(_0x1685b4,_0x4f28cd,_0x3c6a5f):_0x23ffab(_0x3c6a5f))||_0x3c6a5f);return _0x1727a2&&_0x3c6a5f&&Is(_0x1685b4,_0x4f28cd,_0x3c6a5f),_0x3c6a5f;},Z=(_0x4df897,_0x1557fd)=>(_0x429439,_0xa07af8)=>_0x1557fd(_0x429439,_0xa07af8,_0x4df897);exports[_0x4d97e8(0x270)]=class extends a[_0x4d97e8(0x39c)]{constructor(_0x316ee6,_0x15345d,_0x2cee61,_0x297536,_0x17e038,_0x2f8e49){const _0x512a0b=_0x4d97e8;super(),u(this,_0x512a0b(0x14d),new v[(_0x512a0b(0x114))](void 0x0)),u(this,_0x512a0b(0x348),this[_0x512a0b(0x14d)]['asObservable']()),u(this,_0x512a0b(0x31f),null),u(this,_0x512a0b(0x490),new Map()),u(this,_0x512a0b(0x408),new v['BehaviorSubject'](H[_0x512a0b(0x143)])),u(this,_0x512a0b(0x1dc),this[_0x512a0b(0x408)][_0x512a0b(0x144)]()),u(this,_0x512a0b(0x2cf),!0x1),u(this,_0x512a0b(0x417)),u(this,_0x512a0b(0x323),0x0),u(this,_0x512a0b(0x10d)),u(this,'_timeoutTimer'),(this[_0x512a0b(0x2cd)]=_0x316ee6,this[_0x512a0b(0x40e)]=_0x15345d,this[_0x512a0b(0x213)]=_0x2cee61,this[_0x512a0b(0x188)]=_0x297536,this[_0x512a0b(0xbd)]=_0x17e038,this[_0x512a0b(0x10b)]=_0x2f8e49,this['_initEventListeners']());}get[_0x4d97e8(0x438)](){const _0x5c99f1=_0x4d97e8;return this[_0x5c99f1(0x14d)][_0x5c99f1(0x2af)]();}[_0x4d97e8(0x26b)](){const _0x182307=_0x4d97e8;this[_0x182307(0x330)](),this[_0x182307(0xe4)]();}['dispose'](){const _0x178898=_0x4d97e8;super[_0x178898(0x337)](),this[_0x178898(0x490)][_0x178898(0x373)](_0x534020=>_0x534020[_0x178898(0x337)]()),this['_sessions'][_0x178898(0x456)](),this['_status$'][_0x178898(0x370)]();}async[_0x4d97e8(0x1e1)](_0x241086){const _0x49a22f=_0x4d97e8;if(this['_sessions'][_0x49a22f(0x477)](_0x241086))return this[_0x49a22f(0x490)][_0x49a22f(0x491)](_0x241086);this[_0x49a22f(0x1bb)]();const _0x37e56b=this['_injector'][_0x49a22f(0x309)](exports[_0x49a22f(0x44c)],_0x241086,this['_socket$'][_0x49a22f(0x144)]());return this[_0x49a22f(0x490)][_0x49a22f(0x24d)](_0x241086,_0x37e56b),_0x37e56b;}[_0x4d97e8(0x364)](_0xb1327a){const _0x4f2d93=_0x4d97e8;var _0x2b8015;const _0x310d91=this[_0x4f2d93(0x490)][_0x4f2d93(0x491)](_0xb1327a);_0x310d91&&(this[_0x4f2d93(0x490)][_0x4f2d93(0x1b2)](_0xb1327a),_0x310d91[_0x4f2d93(0x3fe)]()),this[_0x4f2d93(0x490)][_0x4f2d93(0x26e)]||(_0x2b8015=this['_socket'])==null||_0x2b8015[_0x4f2d93(0x3fe)]();}[_0x4d97e8(0x229)](){const _0xde9653=_0x4d97e8;this[_0xde9653(0x323)]=0x0,this[_0xde9653(0x417)]!=null&&(clearTimeout(this[_0xde9653(0x417)]),this[_0xde9653(0x417)]=null),this['_tryReconnect']();}[_0x4d97e8(0x3fc)](){const _0x39a006=_0x4d97e8;var _0x448926,_0x2db6b6;const _0x1899a2=this[_0x39a006(0xbd)][_0x39a006(0x1f4)](gt),_0x55ccbe=this['_configService'][_0x39a006(0x1f4)](L),_0x3b1943=(_0x2db6b6=(_0x448926=_0x55ccbe==null?void 0x0:_0x55ccbe['collabWebSocketUrl'])!=null?_0x448926:_0x1899a2)!=null?_0x2db6b6:Zt,_0xb8f686=this['_socketService'][_0x39a006(0x13e)](_0x3b1943);return this[_0x39a006(0x31f)]=_0xb8f686,_0xb8f686;}[_0x4d97e8(0x1bb)](){const _0x1916b5=_0x4d97e8;var _0x492899,_0x4c8174;try{const _0x3c9f42=(_0x4c8174=(_0x492899=this['_socket'])!=null?_0x492899:this[_0x1916b5(0x31f)])!=null?_0x4c8174:this[_0x1916b5(0x3fc)]();if(_0x3c9f42){const _0x1078b1=_0x3c9f42[_0x1916b5(0x3d6)];_0x3c9f42[_0x1916b5(0x3d6)]=_0x4f2fd1=>(this[_0x1916b5(0x2ab)](),_0x1078b1[_0x1916b5(0x37d)](_0x3c9f42,[_0x4f2fd1])),_0x3c9f42[_0x1916b5(0x41c)][_0x1916b5(0x1c4)](_0x3a1e1e=>this[_0x1916b5(0x3b0)](_0x3c9f42,_0x3a1e1e)),_0x3c9f42['error$'][_0x1916b5(0x488)](E['take'](0x1))[_0x1916b5(0x1c4)](_0xf06341=>this[_0x1916b5(0x188)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0xf06341)),_0x3c9f42['open$'][_0x1916b5(0x488)](E[_0x1916b5(0x463)](0x1))[_0x1916b5(0x1c4)](()=>{const _0xb1437f=_0x1916b5;this[_0xb1437f(0x386)](_0x3c9f42);}),_0x3c9f42[_0x1916b5(0x3bb)][_0x1916b5(0x488)](E['take'](0x1))[_0x1916b5(0x1c4)](_0x49b101=>{const _0x3289cf=_0x1916b5;this[_0x3289cf(0x188)]['debug'](_0x3289cf(0x22d),_0x3289cf(0x340),_0x49b101),this[_0x3289cf(0x128)]();});}}catch(_0x1db7f3){this['_logService']['error'](_0x1db7f3),this[_0x1916b5(0x128)]();}}[_0x4d97e8(0x386)](_0x3764ae){const _0x46f0ed=_0x4d97e8;this[_0x46f0ed(0x188)][_0x46f0ed(0x403)]('[CollaborationSessionService]','socket\x20open.'),_0x3764ae['send']({'cmd':b[_0x46f0ed(0x208)]}),this[_0x46f0ed(0x2ab)]();}['_listenToOfflineEvent'](){const _0x2320b0=_0x4d97e8;window[_0x2320b0(0x226)](_0x2320b0(0x27a),()=>this['_onOffline']());}[_0x4d97e8(0x48f)](){const _0x4626a6=_0x4d97e8;this[_0x4626a6(0x2cf)]=!0x1,this['_candidateSocket']=null,this['_status$']['next'](H[_0x4626a6(0x283)]),this[_0x4626a6(0x14d)][_0x4626a6(0x120)](null),this[_0x4626a6(0x437)](),this[_0x4626a6(0x369)]();}[_0x4d97e8(0x128)](){const _0x25660d=_0x4d97e8;var _0x497e1a;this[_0x25660d(0x48f)](),this[_0x25660d(0x323)]<((_0x497e1a=this['_configService'][_0x25660d(0x1f4)](It))!=null?_0x497e1a:ts)?(this[_0x25660d(0x213)][_0x25660d(0x207)]({'key':_0x25660d(0x116),'type':X['MessageType'][_0x25660d(0x25a)],'content':this[_0x25660d(0x40e)]['t'](_0x25660d(0x11e))}),this['_tryReconnect']()):this['_messageService'][_0x25660d(0x207)]({'key':_0x25660d(0x116),'type':X[_0x25660d(0xa0)][_0x25660d(0x1ff)],'content':this[_0x25660d(0x40e)]['t'](_0x25660d(0x42d))});}['_listenToOnlineEvent'](){const _0x13e5c7=_0x4d97e8,_0x2486e8=()=>{const _0x21a583=_0x4a0f;this[_0x21a583(0x438)]||this[_0x21a583(0x229)]();},_0x51ade3=()=>{const _0x54eb4b=_0x4a0f;this[_0x54eb4b(0x438)]||document['visibilityState']===_0x54eb4b(0xab)||this[_0x54eb4b(0x229)]();};window['addEventListener'](_0x13e5c7(0x186),_0x2486e8),document[_0x13e5c7(0x226)]('visibilitychange',_0x51ade3);}[_0x4d97e8(0x3b5)](){const _0x1ba8a3=_0x4d97e8;var _0x5f2fd0;const _0x589548=this['_retryCount'],_0x33a542=this['_configService'][_0x1ba8a3(0x1f4)](L),_0x58ca36=_0x589548===0x0?0x0:((_0x5f2fd0=_0x33a542==null?void 0x0:_0x33a542[_0x1ba8a3(0x2d1)])!=null?_0x5f2fd0:es)*0x2**_0x589548;this[_0x1ba8a3(0x417)]=window[_0x1ba8a3(0x3c4)](()=>{const _0x30cc3a=_0x1ba8a3;clearTimeout(this[_0x30cc3a(0x417)]),this[_0x30cc3a(0x417)]=null,this[_0x30cc3a(0x1bb)]();},_0x58ca36),this['_retryCount']+=0x1;}[_0x4d97e8(0x3b0)](_0x4663f5,_0x19d356){const _0x491e01=_0x4d97e8,{cmd:_0x5da306}=_0x19d356;_0x5da306===b[_0x491e01(0x208)]&&!this[_0x491e01(0x2cf)]&&(_0x4663f5[_0x491e01(0x2ef)]=_0x19d356[_0x491e01(0x201)][_0x491e01(0x2ef)],this['_socket$']['next'](_0x4663f5),this['_status$']['next'](H['ONLINE']),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x5da306===b[_0x491e01(0x341)]&&this[_0x491e01(0x437)](),this[_0x491e01(0x2ab)]();}[_0x4d97e8(0x2ab)](){const _0x507fc5=_0x4d97e8;var _0x1810fb;this[_0x507fc5(0x369)](),this[_0x507fc5(0x10d)]=window[_0x507fc5(0x3c4)](()=>this[_0x507fc5(0x4a6)](),(_0x1810fb=this[_0x507fc5(0xbd)][_0x507fc5(0x1f4)](mt))!=null?_0x1810fb:Qt);}['_sendHeartbeat'](){const _0x396379=_0x4d97e8;this[_0x396379(0x438)][_0x396379(0x3d6)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x4d97e8(0x45f)](){const _0x443a69=_0x4d97e8;var _0x51f9ed;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x443a69(0x128)](),(_0x51f9ed=this[_0x443a69(0xbd)][_0x443a69(0x1f4)](Ge))!=null?_0x51f9ed:ft);}[_0x4d97e8(0x369)](){const _0x2a0700=_0x4d97e8;this[_0x2a0700(0x10d)]!=null&&(clearTimeout(this[_0x2a0700(0x10d)]),this[_0x2a0700(0x10d)]=null);}[_0x4d97e8(0x437)](){const _0x47fc91=_0x4d97e8;this[_0x47fc91(0x29a)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x47fc91(0x29a)]=null);}},exports['CollaborationSessionService']=Cs([Z(0x0,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Z(0x1,a['Inject'](a[_0x4d97e8(0x10a)])),Z(0x2,A[_0x4d97e8(0x318)]),Z(0x3,a[_0x4d97e8(0xeb)]),Z(0x4,a[_0x4d97e8(0x332)]),Z(0x5,Ke)],exports[_0x4d97e8(0x270)]);var O=[];for(var Ue=0x0;Ue<0x100;++Ue)O[_0x4d97e8(0x29b)]((Ue+0x100)['toString'](0x10)[_0x4d97e8(0x1ac)](0x1));function Es(_0x366cb3,_0xf197bf=0x0){const _0x3d1332=_0x4d97e8;return(O[_0x366cb3[_0xf197bf+0x0]]+O[_0x366cb3[_0xf197bf+0x1]]+O[_0x366cb3[_0xf197bf+0x2]]+O[_0x366cb3[_0xf197bf+0x3]]+'-'+O[_0x366cb3[_0xf197bf+0x4]]+O[_0x366cb3[_0xf197bf+0x5]]+'-'+O[_0x366cb3[_0xf197bf+0x6]]+O[_0x366cb3[_0xf197bf+0x7]]+'-'+O[_0x366cb3[_0xf197bf+0x8]]+O[_0x366cb3[_0xf197bf+0x9]]+'-'+O[_0x366cb3[_0xf197bf+0xa]]+O[_0x366cb3[_0xf197bf+0xb]]+O[_0x366cb3[_0xf197bf+0xc]]+O[_0x366cb3[_0xf197bf+0xd]]+O[_0x366cb3[_0xf197bf+0xe]]+O[_0x366cb3[_0xf197bf+0xf]])[_0x3d1332(0x203)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x558079=_0x4d97e8;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x558079(0x314)]&&crypto[_0x558079(0x314)][_0x558079(0xb5)](crypto),!Se))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x4d97e8(0x49a)]&&crypto['randomUUID'][_0x4d97e8(0xb5)](crypto);const st={'randomUUID':Rs};function Os(_0x227936,_0x216b45,_0x41f16f){const _0x2c4c87=_0x4d97e8;if(st[_0x2c4c87(0x49a)]&&!_0x216b45&&!_0x227936)return st['randomUUID']();_0x227936=_0x227936||{};var _0x1ffa30=_0x227936[_0x2c4c87(0x2a2)]||(_0x227936['rng']||Ts)();return _0x1ffa30[0x6]=_0x1ffa30[0x6]&0xf|0x40,_0x1ffa30[0x8]=_0x1ffa30[0x8]&0x3f|0x80,Es(_0x1ffa30);}var Ds=Object[_0x4d97e8(0x8e)],ys=Object[_0x4d97e8(0x100)],Us=(_0x490975,_0x192004,_0x5b211c,_0x36bcdd)=>{const _0x1f03cf=_0x4d97e8;for(var _0x595479=_0x36bcdd>0x1?void 0x0:_0x36bcdd?ys(_0x192004,_0x5b211c):_0x192004,_0x3e80c2=_0x490975[_0x1f03cf(0x424)]-0x1,_0x304e6f;_0x3e80c2>=0x0;_0x3e80c2--)(_0x304e6f=_0x490975[_0x3e80c2])&&(_0x595479=(_0x36bcdd?_0x304e6f(_0x192004,_0x5b211c,_0x595479):_0x304e6f(_0x595479))||_0x595479);return _0x36bcdd&&_0x595479&&Ds(_0x192004,_0x5b211c,_0x595479),_0x595479;},Pe=(_0x2d40d8,_0x5c3806)=>(_0x29d949,_0x3ecbae)=>_0x5c3806(_0x29d949,_0x3ecbae,_0x2d40d8);let fe=class{constructor(_0x166589,_0x2a9b0c,_0x3f00eb){const _0x32bf79=_0x4d97e8;this[_0x32bf79(0x2cd)]=_0x166589,this['_transformService']=_0x2a9b0c,this[_0x32bf79(0x404)]=_0x3f00eb;}[_0x4d97e8(0x3f1)](_0x24edca){const _0x1e5190=_0x4d97e8;this[_0x1e5190(0x87)](_0x24edca),this[_0x1e5190(0x3da)](_0x24edca);}[_0x4d97e8(0x23b)](_0x3eca1d){const _0x5d7c21=_0x4d97e8,{unitID:_0x29e635}=_0x3eca1d,_0x3be998=this[_0x5d7c21(0x404)][_0x5d7c21(0x43c)](_0x29e635)['with'](N[_0x5d7c21(0x130)]),{redoCache:_0x2e2afe}=_0x3be998[_0x5d7c21(0x95)]();if(_0x2e2afe[_0x5d7c21(0x424)]===0x0)return _0x3eca1d;let _0x11e2d3=a[_0x5d7c21(0x378)]['deepClone'](_0x3eca1d[_0x5d7c21(0x20f)][0x0]);for(let _0x5be557=0x0;_0x5be557<_0x2e2afe[_0x5d7c21(0x424)];_0x5be557++){const _0x3dd401={'id':_0x5d7c21(0x242),'params':{..._0x2e2afe[_0x5be557]}},_0x34577b=this['_transformService'][_0x5d7c21(0x84)](_0x11e2d3,_0x3dd401,!0x1);if(_['isTransformMutationFailure'](_0x34577b))throw _0x34577b[_0x5d7c21(0x497)];_0x11e2d3=_0x34577b['m1Prime'];}return{...a[_0x5d7c21(0x378)][_0x5d7c21(0x1a6)](_0x3eca1d),'mutations':[_0x11e2d3]};}[_0x4d97e8(0x87)](_0x12e662){const _0x2a40bb=_0x4d97e8,{unitID:_0x39a8f5}=_0x12e662,_0x283a6f=this[_0x2a40bb(0x404)]['getRenderById'](_0x39a8f5)[_0x2a40bb(0x36a)](N[_0x2a40bb(0x130)]),{undoCache:_0x27b191,redoCache:_0x2bc72d}=_0x283a6f[_0x2a40bb(0x95)]();if(_0x27b191[_0x2a40bb(0x424)]===0x0||_0x2bc72d[_0x2a40bb(0x424)]===0x0)return;const _0x3c77b3=[],_0x3d40bd=[];let _0x13a4f7=a[_0x2a40bb(0x378)][_0x2a40bb(0x1a6)](_0x12e662[_0x2a40bb(0x20f)][0x0]),_0x530756=a[_0x2a40bb(0x378)][_0x2a40bb(0x1a6)](_0x12e662['mutations'][0x0]);for(let _0x19fb3c=_0x27b191[_0x2a40bb(0x424)]-0x1;_0x19fb3c>=0x0;_0x19fb3c--){const _0x11ce70={'id':'doc.mutation.rich-text-editing','params':{..._0x27b191[_0x19fb3c]}},_0x317649={'id':_0x2a40bb(0x242),'params':{..._0x2bc72d[_0x19fb3c]}},_0x6bc8ec=this[_0x2a40bb(0x165)][_0x2a40bb(0x84)](_0x13a4f7,_0x11ce70,!0x1),_0x3f9983=this[_0x2a40bb(0x165)][_0x2a40bb(0x84)](_0x530756,_0x317649,!0x1);if(_['isTransformMutationFailure'](_0x6bc8ec))throw _0x6bc8ec['error'];if(_[_0x2a40bb(0x20c)](_0x3f9983))throw _0x3f9983[_0x2a40bb(0x497)];_0x3c77b3[_0x2a40bb(0x40a)](_0x6bc8ec[_0x2a40bb(0x1a9)][_0x2a40bb(0x141)]),_0x3d40bd[_0x2a40bb(0x40a)](_0x3f9983['m2Prime'][_0x2a40bb(0x141)]),_0x13a4f7=_0x6bc8ec[_0x2a40bb(0x215)],_0x530756=_0x3f9983[_0x2a40bb(0x215)];}_0x283a6f[_0x2a40bb(0x2a1)]({'undoCache':_0x3c77b3,'redoCache':_0x3d40bd});}['_transformPreviousActiveRange'](_0x577523){const _0x2084fd=_0x4d97e8,{unitID:_0x1c9488}=_0x577523,_0x255b33=this[_0x2084fd(0x404)][_0x2084fd(0x43c)](_0x1c9488)[_0x2084fd(0x36a)](N[_0x2084fd(0x130)]),_0x52b70f=_0x255b33[_0x2084fd(0x426)]();if(_0x52b70f==null)return;const _0x1f6e28=[{'id':_0x2084fd(0x242),'params':{'unitId':_0x577523['unitID'],'actions':null,'textRanges':[_0x52b70f]}}],_0x3cb1d0=this[_0x2084fd(0x165)][_0x2084fd(0x2a5)](_0x577523,_0x1f6e28);if(!_['isTransformMutationsWithChangesetSuccess'](_0x3cb1d0))throw _0x3cb1d0[_0x2084fd(0x497)];const _0x4cac13=_0x3cb1d0[_0x2084fd(0x1a9)][0x0][_0x2084fd(0x141)][_0x2084fd(0x339)];Array[_0x2084fd(0x38a)](_0x4cac13)&&_0x4cac13[_0x2084fd(0x424)]&&_0x255b33[_0x2084fd(0x3f7)](_0x4cac13[0x0]);}};fe=Us([Pe(0x0,a[_0x4d97e8(0x13d)](a['Injector'])),Pe(0x1,_['ITransformService']),Pe(0x2,D['IRenderManagerService'])],fe);var Ps=Object[_0x4d97e8(0x8e)],ws=Object[_0x4d97e8(0x100)],Ns=(_0xddec95,_0x3b1977,_0x25d677,_0x203e8e)=>{const _0x3671fe=_0x4d97e8;for(var _0x525f75=_0x203e8e>0x1?void 0x0:_0x203e8e?ws(_0x3b1977,_0x25d677):_0x3b1977,_0x58a943=_0xddec95[_0x3671fe(0x424)]-0x1,_0x493f04;_0x58a943>=0x0;_0x58a943--)(_0x493f04=_0xddec95[_0x58a943])&&(_0x525f75=(_0x203e8e?_0x493f04(_0x3b1977,_0x25d677,_0x525f75):_0x493f04(_0x525f75))||_0x525f75);return _0x203e8e&&_0x525f75&&Ps(_0x3b1977,_0x25d677,_0x525f75),_0x525f75;},ce=(_0x5cf1bd,_0x54f2b0)=>(_0x433db7,_0x471f22)=>_0x54f2b0(_0x433db7,_0x471f22,_0x5cf1bd);exports[_0x4d97e8(0x18f)]=class extends a['Disposable']{constructor(_0x51edfd,_0x54fb4b,_0x1a88f7,_0x1e693a,_0x3267d4){const _0x47a631=_0x4d97e8;super(),u(this,'_cachedData',new Map()),u(this,_0x47a631(0x96),new Map()),u(this,_0x47a631(0xe5),!0x1),(this[_0x47a631(0xbd)]=_0x51edfd,this[_0x47a631(0x3dd)]=_0x54fb4b,this['_beforeCloseService']=_0x1a88f7,this['_localeService']=_0x1e693a,this[_0x47a631(0x205)]=_0x3267d4,this['_setupBeforeClosingHandler']());}[_0x4d97e8(0xf7)](){this['_disabled']=!0x0;}[_0x4d97e8(0x25c)](){this['_disabled']=!0x1;}['dispose'](){const _0x5d7d8f=_0x4d97e8;this[_0x5d7d8f(0x299)]()[_0x5d7d8f(0x4b7)](()=>super[_0x5d7d8f(0x337)]());}async[_0x4d97e8(0x35b)](_0x25ca89){const _0x2c521d=_0x4d97e8;return this[_0x2c521d(0xe5)]?null:this['_localStorageService'][_0x2c521d(0x469)](it(_0x25ca89));}async[_0x4d97e8(0x4b4)](_0x46ad3e,_0x2e9dd1){return!!this['_localStorageService']['setItem'](_0x46ad3e,_0x2e9dd1);}[_0x4d97e8(0xcf)](_0x3ba49b,_0x29fecc,_0x1dca30,_0x28860b){const _0x37f546=_0x4d97e8,_0x14c6ae=this[_0x37f546(0x205)][_0x37f546(0x402)](_0x3ba49b);this[_0x37f546(0x478)][_0x37f546(0x24d)](_0x3ba49b,{'unitID':_0x3ba49b,'type':_0x29fecc,'awaitingChangeset':_0x1dca30,'mutations':_0x28860b,'rev':_0x14c6ae}),this[_0x37f546(0x96)]['has'](_0x3ba49b)||this['_scheduleSaving'](_0x3ba49b);}['_scheduleSaving'](_0x1cfb5b){const _0x40611e=_0x4d97e8,_0x5dae76=this[_0x40611e(0x4a9)]();_0x5dae76===0x0?this[_0x40611e(0x112)](_0x1cfb5b):this[_0x40611e(0x96)][_0x40611e(0x24d)](_0x1cfb5b,setTimeout(()=>this[_0x40611e(0x112)](_0x1cfb5b),_0x5dae76));}[_0x4d97e8(0x4a9)](){const _0x4f6a46=_0x4d97e8;var _0xb5e7ce;return(_0xb5e7ce=this[_0x4f6a46(0xbd)]['getConfig'](pt))!=null?_0xb5e7ce:ss;}[_0x4d97e8(0x112)](_0x46f413){const _0x31c655=_0x4d97e8,_0x26bc29=this[_0x31c655(0x96)][_0x31c655(0x491)](_0x46f413);return _0x26bc29!==void 0x0&&window[_0x31c655(0x3a3)](_0x26bc29),this[_0x31c655(0x3dd)][_0x31c655(0x36e)](it(_0x46f413),this['_cachedData'][_0x31c655(0x491)](_0x46f413))[_0x31c655(0x4b7)](()=>this[_0x31c655(0x96)][_0x31c655(0x1b2)](_0x46f413));}async[_0x4d97e8(0x299)](){const _0x316047=_0x4d97e8,_0x5233a7=[];this['_saveTaskMap'][_0x316047(0x373)]((_0x5980b5,_0x2f6cb3)=>{const _0x3a8b3a=_0x316047;window['clearTimeout'](_0x5980b5),_0x5233a7[_0x3a8b3a(0x29b)](this[_0x3a8b3a(0x112)](_0x2f6cb3)[_0x3a8b3a(0x4b7)](()=>{const _0x578400=_0x3a8b3a;this[_0x578400(0x96)][_0x578400(0x1b2)](_0x2f6cb3);}));}),await Promise['all'](_0x5233a7);}['_setupBeforeClosingHandler'](){const _0xb17a47=_0x4d97e8;this[_0xb17a47(0x1e2)](this[_0xb17a47(0x2e0)]['registerBeforeClose'](()=>{const _0x3c2365=_0xb17a47;if(this[_0x3c2365(0x96)][_0x3c2365(0x26e)])return this[_0x3c2365(0x40e)]['t'](_0x3c2365(0x3d5));}));}},exports[_0x4d97e8(0x18f)]=Ns([ce(0x0,a[_0x4d97e8(0x332)]),ce(0x1,a[_0x4d97e8(0x286)]),ce(0x2,A[_0x4d97e8(0xca)]),ce(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)])),ce(0x4,a[_0x4d97e8(0x13d)](_['RevisionService']))],exports['LocalCacheService']);function it(_0x40221d){const _0x37e368=_0x4d97e8;return _0x37e368(0xdd)+_0x40221d;}var Ms=Object[_0x4d97e8(0x8e)],As=Object['getOwnPropertyDescriptor'],Ls=(_0x5e1edc,_0x4b51d7,_0xa64206,_0x2024c2)=>{const _0x25505c=_0x4d97e8;for(var _0x3da7e3=_0x2024c2>0x1?void 0x0:_0x2024c2?As(_0x4b51d7,_0xa64206):_0x4b51d7,_0x4d3d70=_0x5e1edc[_0x25505c(0x424)]-0x1,_0x58d7bf;_0x4d3d70>=0x0;_0x4d3d70--)(_0x58d7bf=_0x5e1edc[_0x4d3d70])&&(_0x3da7e3=(_0x2024c2?_0x58d7bf(_0x4b51d7,_0xa64206,_0x3da7e3):_0x58d7bf(_0x3da7e3))||_0x3da7e3);return _0x2024c2&&_0x3da7e3&&Ms(_0x4b51d7,_0xa64206,_0x3da7e3),_0x3da7e3;},we=(_0x550623,_0x5f38e1)=>(_0x480a22,_0x745150)=>_0x5f38e1(_0x480a22,_0x745150,_0x550623);function js(_0x36bee2){const _0x2fa54b=_0x4d97e8,{unitID:_0xde5afb,mutations:_0x2a6993}=_0x36bee2;return{'unitId':_0xde5afb,'subUnitId':_0x2a6993[0x0][_0x2fa54b(0x141)][_0x2fa54b(0xa3)]};}let Ie=class{constructor(_0x4fbd00,_0x488501,_0x5453ad){const _0x9b97f=_0x4d97e8;this['_injector']=_0x4fbd00,this[_0x9b97f(0x165)]=_0x488501,this[_0x9b97f(0x368)]=_0x5453ad;}[_0x4d97e8(0x117)](_0x124db0){const _0x321729=_0x4d97e8;var _0x511dd5,_0x2bfeac,_0x19ced9,_0x378847;const _0x1a37c1=this[_0x321729(0x2cd)][_0x321729(0x491)](C[_0x321729(0x1e8)]),{unitId:_0x327ee5,subUnitId:_0x568167}=js(_0x124db0),_0x5b7f37=_0x1a37c1['getWorkbookSelections'](_0x327ee5)[_0x321729(0x12e)](),_0x16542a=(_0x2bfeac=(_0x511dd5=this[_0x321729(0x368)][_0x321729(0x47c)](_0x327ee5))==null?void 0x0:_0x511dd5[_0x321729(0x1fe)]())==null?void 0x0:_0x2bfeac[_0x321729(0x436)]();if(_0x5b7f37[_0x321729(0x424)]===0x0||!_0x327ee5||!_0x568167)return;const _0x346507=[{'id':C[_0x321729(0x420)]['id'],'params':{'unitId':_0x327ee5,'subUnitId':_0x16542a,'selections':a['Tools'][_0x321729(0x1a6)](_0x5b7f37)}}],_0xdd16db=this[_0x321729(0x165)][_0x321729(0x2a5)](_0x124db0,_0x346507);if(!_['isTransformMutationsWithChangesetSuccess'](_0xdd16db))throw _0xdd16db[_0x321729(0x497)];const _0x58a2e7=(_0x378847=(_0x19ced9=_0xdd16db[_0x321729(0x1a9)][0x0])==null?void 0x0:_0x19ced9[_0x321729(0x141)])==null?void 0x0:_0x378847[_0x321729(0x44e)];if(Array['isArray'](_0x58a2e7)&&_0x58a2e7[_0x321729(0x424)]){if(_0x58a2e7['length']===_0x346507[0x0]['params']['selections'][_0x321729(0x424)]&&_0x58a2e7[_0x321729(0x145)]((_0x1c3445,_0x16d85f)=>a['Rectangle'][_0x321729(0x93)](_0x1c3445['range'],_0x346507[0x0]['params']['selections'][_0x16d85f][_0x321729(0x3b9)])))return;this[_0x321729(0x2cd)]['get'](a[_0x321729(0x433)])['executeCommand'](C[_0x321729(0x420)]['id'],{'unitId':_0x327ee5,'subUnitId':_0x16542a,'selections':_0x58a2e7});}}};Ie=Ls([we(0x0,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),we(0x1,_[_0x4d97e8(0x18d)]),we(0x2,a['IUniverInstanceService'])],Ie);const Re=a[_0x4d97e8(0x290)](_0x4d97e8(0x48e));var Dt=(_0x1f7962=>(_0x1f7962[_0x1f7962[_0x4d97e8(0x1f1)]=0x0]=_0x4d97e8(0x1f1),_0x1f7962[_0x1f7962[_0x4d97e8(0x3a8)]=0x1]=_0x4d97e8(0x3a8),_0x1f7962))(Dt||{});const nt=0x7530,rt=_0x4d97e8(0xb4);class $s extends a[_0x4d97e8(0x39c)]{constructor(){const _0x2e0357=_0x4d97e8;super(),u(this,_0x2e0357(0x1cf),a[_0x2e0357(0x378)][_0x2e0357(0x423)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x2e0357(0x2aa),new Map()),u(this,_0x2e0357(0x184),null),u(this,_0x2e0357(0x3c2),new Map()),u(this,_0x2e0357(0x455),new Map()),this[_0x2e0357(0x27e)]();}[_0x4d97e8(0x337)](){const _0x50622d=_0x4d97e8;super['dispose'](),this[_0x50622d(0x3c2)][_0x50622d(0x373)]((_0x436f91,_0x33c234)=>this[_0x50622d(0x98)](_0x33c234)),this[_0x50622d(0x184)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x4d97e8(0x388)](_0x3a6c0a){const _0x59f415=_0x4d97e8;return this[_0x59f415(0x391)](_0x3a6c0a)['pipe'](v[_0x59f415(0x164)]());}['editingUnit'](_0x35a69c){const _0x532371=_0x4d97e8;this[_0x532371(0x3bf)][_0x532371(0x26e)]===0x0&&this[_0x532371(0x1c9)](),this[_0x532371(0x3bf)][_0x532371(0x471)](_0x35a69c),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x35a69c],'isForwarded':!0x1});}[_0x4d97e8(0x447)](_0x3ba2d5){const _0x5f0c9d=_0x4d97e8;this[_0x5f0c9d(0x3bf)]['delete'](_0x3ba2d5),this[_0x5f0c9d(0x3bf)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x5f0c9d(0x301)](this['_heartbeatTimer']);}[_0x4d97e8(0x27e)](){const _0x1d1785=_0x4d97e8;this[_0x1d1785(0x1e2)](a['toDisposable'](v[_0x1d1785(0x99)](window,_0x1d1785(0x25b))[_0x1d1785(0x1c4)](_0x23c359=>{const _0x48d0da=_0x1d1785;if(_0x23c359[_0x48d0da(0x427)]!==rt||!_0x23c359[_0x48d0da(0xfc)])return;const _0x36e322=JSON[_0x48d0da(0x234)](_0x23c359[_0x48d0da(0xfc)]);this['_handleEvent'](_0x36e322);}))),window[_0x1d1785(0x226)]('unload',()=>this[_0x1d1785(0x362)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1d1785(0x3bf)])}));}['_handleEvent'](_0x10e05b){const _0x22ff69=_0x4d97e8;switch(_0x10e05b[_0x22ff69(0x366)]){case 0x0:this[_0x22ff69(0x3c0)](_0x10e05b);break;case 0x1:this[_0x22ff69(0x32a)](_0x10e05b);break;case 0x2:this[_0x22ff69(0x1cc)](_0x10e05b);break;}}[_0x4d97e8(0x3c0)](_0x76e61c){const _0x38380f=_0x4d97e8,{unitIDs:_0xaad4ef,memberID:_0x107094,isForwarded:_0x3b9c7b}=_0x76e61c;_0xaad4ef['forEach'](_0x45ceab=>{const _0x939b52=_0x4a0f;if(!_0x3b9c7b&&this[_0x939b52(0x2aa)][_0x939b52(0x477)](_0x45ceab)&&this['_ensureSubject'](_0x45ceab)[_0x939b52(0x120)](0x1),!this[_0x939b52(0x2aa)][_0x939b52(0x477)](_0x45ceab)||!this[_0x939b52(0x2aa)][_0x939b52(0x491)](_0x45ceab)['has'](_0x107094)){const _0x2c904e=this[_0x939b52(0x2aa)][_0x939b52(0x491)](_0x45ceab)||new Set();_0x2c904e[_0x939b52(0x471)](_0x107094),this[_0x939b52(0x2aa)][_0x939b52(0x24d)](_0x45ceab,_0x2c904e),this[_0x939b52(0x166)](_0x107094);}}),_0x3b9c7b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x38380f(0x3bf)]],'isForwarded':!0x0});}[_0x4d97e8(0x166)](_0x328506){const _0x3140b1=_0x4d97e8;this['_removeClearOtherTimer'](_0x328506);const _0x40c7c7=window['setTimeout'](()=>{const _0x5aec6a=_0x4a0f;this[_0x5aec6a(0x2aa)][_0x5aec6a(0x373)](_0x578c0c=>{const _0x1a1b85=_0x5aec6a;_0x578c0c[_0x1a1b85(0x1b2)](_0x328506);});},nt*0x2);this[_0x3140b1(0x3c2)]['set'](_0x328506,_0x40c7c7);}[_0x4d97e8(0x98)](_0x406061){const _0x37bbb8=_0x4d97e8;if(this[_0x37bbb8(0x3c2)][_0x37bbb8(0x477)](_0x406061)){const _0x24c54f=this['_clearOtherTimers']['get'](_0x406061);_0x24c54f&&window[_0x37bbb8(0x3a3)](_0x24c54f),this[_0x37bbb8(0x3c2)][_0x37bbb8(0x24d)](_0x406061,null);}}[_0x4d97e8(0x32a)](_0x474d88){const _0x2b48c7=_0x4d97e8,{memberID:_0x1ec0c7,unitIDs:_0x57e1bf}=_0x474d88;_0x57e1bf['forEach'](_0x539209=>{const _0x533824=_0x4a0f;var _0xcbe2b3;const _0x5366a7=this['_unitOnClients'][_0x533824(0x491)](_0x539209);_0x5366a7&&(_0x5366a7[_0x533824(0x1b2)](_0x1ec0c7),(_0xcbe2b3=this[_0x533824(0x391)](_0x539209))==null||_0xcbe2b3[_0x533824(0x120)](_0x5366a7[_0x533824(0x26e)]===0x0?0x0:0x1));}),this[_0x2b48c7(0x98)](_0x1ec0c7);}[_0x4d97e8(0x1cc)](_0x2bc049){const _0x4a533e=_0x4d97e8;this[_0x4a533e(0x166)](_0x2bc049[_0x4a533e(0x2ef)]);}['_send'](_0xda1019){const _0x1059e9=_0x4d97e8;localStorage['setItem'](rt,JSON[_0x1059e9(0x1f8)](_0xda1019));}[_0x4d97e8(0x1c9)](){const _0x4a3614=_0x4d97e8;this['_heartbeatTimer']=window[_0x4a3614(0x356)](()=>{const _0x25d999=_0x4a3614;this[_0x25d999(0x362)]({'type':0x2,'memberID':this[_0x25d999(0x1cf)]});},nt);}[_0x4d97e8(0x391)](_0x55d764){const _0x5557f6=_0x4d97e8;return this['_unitStatus'][_0x5557f6(0x477)](_0x55d764)||this[_0x5557f6(0x455)]['set'](_0x55d764,new v['BehaviorSubject'](0x0)),this[_0x5557f6(0x455)][_0x5557f6(0x491)](_0x55d764);}}function yt(_0x26cf6f){const _0x289a1c=_0x4d97e8;let _0x3ed7e8='';for(const _0x26c2a3 of _0x26cf6f){const {startOffset:_0x2d3f3a,endOffset:_0x281904,isActive:_0xe38fd7}=_0x26c2a3;_0x3ed7e8[_0x289a1c(0x424)]&&(_0x3ed7e8+=','),_0x3ed7e8+=_0x2d3f3a+':'+_0x281904+':'+(_0xe38fd7?'1':'0');}return _0x3ed7e8;}function Hs(_0x4862b1){const _0x1a8ae7=_0x4d97e8,_0x438ccd=_0x4862b1[_0x1a8ae7(0x146)](','),_0x4ac6ce=[];for(const _0x596212 of _0x438ccd){const [_0x50722d,_0x4d0444,_0x45e8cb]=_0x596212['split'](':');_0x4ac6ce[_0x1a8ae7(0x29b)]({'startOffset':Number(_0x50722d),'endOffset':Number(_0x4d0444),'collapsed':_0x50722d===_0x4d0444,'isActive':_0x45e8cb==='1'});}return _0x4ac6ce[_0x1a8ae7(0x291)](_0x4d4042=>_0x4d4042[_0x1a8ae7(0x272)])||(_0x4ac6ce[0x0]['isActive']=!0x0),_0x4ac6ce;}class qe extends a['RxDisposable']{constructor(){const _0x440149=_0x4d97e8;super(...arguments),u(this,_0x440149(0x396),new v[(_0x440149(0x114))](null)),u(this,_0x440149(0xbc),this[_0x440149(0x396)]['asObservable']());}[_0x4d97e8(0x2f8)](_0x342d3d){const _0x4068cc=_0x4d97e8,{unitID:_0x7ea7db,memberID:_0x472b69,textRanges:_0x53aec2}=_0x342d3d,_0x1482e2=yt(_0x53aec2),_0x2c0007={'unitID':_0x7ea7db,'memberID':_0x472b69,'selection':_0x1482e2};this[_0x4068cc(0x396)][_0x4068cc(0x120)](_0x2c0007);}}var xs=Object['defineProperty'],ks=Object[_0x4d97e8(0x100)],Bs=(_0x5d8ecd,_0x2fe7c0,_0x560ab3,_0x45c05e)=>{const _0x3e5e4e=_0x4d97e8;for(var _0x5a490d=_0x45c05e>0x1?void 0x0:_0x45c05e?ks(_0x2fe7c0,_0x560ab3):_0x2fe7c0,_0x189728=_0x5d8ecd[_0x3e5e4e(0x424)]-0x1,_0x10d1ea;_0x189728>=0x0;_0x189728--)(_0x10d1ea=_0x5d8ecd[_0x189728])&&(_0x5a490d=(_0x45c05e?_0x10d1ea(_0x2fe7c0,_0x560ab3,_0x5a490d):_0x10d1ea(_0x5a490d))||_0x5a490d);return _0x45c05e&&_0x5a490d&&xs(_0x2fe7c0,_0x560ab3,_0x5a490d),_0x5a490d;},ot=(_0x993a40,_0x263b2f)=>(_0x262f0e,_0x2376b4)=>_0x263b2f(_0x262f0e,_0x2376b4,_0x993a40);let pe=class{constructor(_0x2b5a36,_0x3c4956){const _0x31c208=_0x4d97e8;this[_0x31c208(0x2cd)]=_0x2b5a36,this[_0x31c208(0x165)]=_0x3c4956;}[_0x4d97e8(0x117)](_0x495e81){const _0xb7ff7c=_0x4d97e8;var _0x21dfdf;const _0x1dd95d=this[_0xb7ff7c(0x2cd)][_0xb7ff7c(0x491)](se[_0xb7ff7c(0x428)]),_0x4547c6=(_0x21dfdf=_0x1dd95d[_0xb7ff7c(0x46b)]())!=null?_0x21dfdf:[];if(_0x4547c6[_0xb7ff7c(0x424)]===0x0)return;const _0xc0abcf=[{'id':_0xb7ff7c(0x242),'params':{'unitId':_0x495e81[_0xb7ff7c(0x331)],'actions':null,'textRanges':_0x4547c6}}],_0x5a08ae=this[_0xb7ff7c(0x165)][_0xb7ff7c(0x2a5)](_0x495e81,_0xc0abcf);if(!_[_0xb7ff7c(0x33d)](_0x5a08ae))throw _0x5a08ae[_0xb7ff7c(0x497)];const _0x44721d=_0x5a08ae[_0xb7ff7c(0x1a9)][0x0]['params'][_0xb7ff7c(0x339)];Array['isArray'](_0x44721d)&&_0x44721d[_0xb7ff7c(0x424)]&&_0x1dd95d[_0xb7ff7c(0xe8)](_0x44721d,!0x1);}};pe=Bs([ot(0x0,a['Inject'](a[_0x4d97e8(0xd0)])),ot(0x1,_['ITransformService'])],pe);const Vs=new Set([C[_0x4d97e8(0x245)]['id']]);function at(_0x4542fb,_0x3838c2,_0x3c5d63,_0x540db9,_0x1ce083){const _0x3d1b74=_0x4d97e8;var _0xbef492,_0x150365,_0x211eac,_0xf2395e;const _0x137212=[];for(const _0x43dc9b of _0x4542fb)if(Vs[_0x3d1b74(0x477)](_0x43dc9b['id'])){if(_0x137212[_0x3d1b74(0x424)]>0x0)break;_0x137212['push'](_0x43dc9b);break;}else _0x137212[_0x3d1b74(0x29b)](_0x43dc9b);const _0x43fd4a=(_0x150365=(_0xbef492=_0x1ce083['getCurrentUser']())==null?void 0x0:_0xbef492['userID'])!=null?_0x150365:_0x3d1b74(0x38d),_0x3b989d=(_0xf2395e=(_0x211eac=_0x1ce083[_0x3d1b74(0x238)]())==null?void 0x0:_0x211eac[_0x3d1b74(0x2ef)])!=null?_0xf2395e:_0x3d1b74(0x38d);return{'changeset':{'unitID':_0x3838c2,'type':_[_0x3d1b74(0x133)](_0x3c5d63['getUnitType'](_0x3838c2)),'baseRev':_0x540db9['getCurrentRevOfUnit'](_0x3838c2),'revision':0x0,'userID':_0x43fd4a,'memberID':_0x3b989d,'mutations':_0x137212},'pendingMutations':_0x4542fb[_0x3d1b74(0x1ac)](_0x137212[_0x3d1b74(0x424)])};}function Ws(_0x286d7f,_0x5795dd,_0x509228,_0x535eaf,_0x593264){const _0x5d0393=_0x4d97e8;var _0x35143e,_0x515890,_0x1cce0d,_0x23b0df;const _0xb21474=[_0x286d7f[_0x5d0393(0x359)]((_0x3ca69e,_0x5c7390)=>{const _0x1c89c2=_0x5d0393;var _0x175f0a;const {id:_0x2346e3}=_0x3ca69e,{id:_0x360103,type:_0x111235}=_0x5c7390,_0x25c114=(_0x175f0a=_0x3ca69e[_0x1c89c2(0x141)])!=null?_0x175f0a:{'actions':null},_0x413ffe=_0x5c7390[_0x1c89c2(0x141)];if(_0x2346e3&&_0x2346e3!==_0x360103)throw new Error(_0x1c89c2(0x142)+_0x2346e3+_0x1c89c2(0x247)+_0x360103+'.');return{..._0x3ca69e,'id':_0x360103,'type':_0x111235,'params':{'unitId':_0x413ffe[_0x1c89c2(0x3f2)],'textRanges':_0x413ffe[_0x1c89c2(0x339)],'actions':a[_0x1c89c2(0x30f)]['compose'](_0x25c114[_0x1c89c2(0x189)],_0x413ffe[_0x1c89c2(0x189)])}};},{})],_0x266ec4=(_0x515890=(_0x35143e=_0x593264['getCurrentUser']())==null?void 0x0:_0x35143e[_0x5d0393(0x1f7)])!=null?_0x515890:_0x5d0393(0x38d),_0x46551d=(_0x23b0df=(_0x1cce0d=_0x593264[_0x5d0393(0x238)]())==null?void 0x0:_0x1cce0d[_0x5d0393(0x2ef)])!=null?_0x23b0df:_0x5d0393(0x38d);return{'changeset':{'unitID':_0x5795dd,'type':_[_0x5d0393(0x133)](_0x509228[_0x5d0393(0xda)](_0x5795dd)),'baseRev':_0x535eaf[_0x5d0393(0x402)](_0x5795dd),'revision':0x0,'userID':_0x266ec4,'memberID':_0x46551d,'mutations':_0xb21474},'pendingMutations':[]};}const Fs={'id':C['EmptyMutation']['id'],'type':a['CommandType'][_0x4d97e8(0x363)],'params':{}};var Gs=Object['defineProperty'],Ys=Object[_0x4d97e8(0x100)],z=(_0x140427,_0x3cd403,_0x581c1c,_0x183e32)=>{for(var _0x236cde=_0x183e32>0x1?void 0x0:_0x183e32?Ys(_0x3cd403,_0x581c1c):_0x3cd403,_0x290669=_0x140427['length']-0x1,_0x34865c;_0x290669>=0x0;_0x290669--)(_0x34865c=_0x140427[_0x290669])&&(_0x236cde=(_0x183e32?_0x34865c(_0x3cd403,_0x581c1c,_0x236cde):_0x34865c(_0x236cde))||_0x236cde);return _0x183e32&&_0x236cde&&Gs(_0x3cd403,_0x581c1c,_0x236cde),_0x236cde;},m=(_0x1646e4,_0x5530a3)=>(_0x1033e2,_0x4b15bb)=>_0x5530a3(_0x1033e2,_0x4b15bb,_0x1646e4),U=(_0xdb3144=>(_0xdb3144[_0x4d97e8(0x306)]=_0x4d97e8(0x239),_0xdb3144[_0x4d97e8(0x2d5)]='synced',_0xdb3144[_0x4d97e8(0x21a)]=_0x4d97e8(0x16c),_0xdb3144['AWAITING']=_0x4d97e8(0x326),_0xdb3144[_0x4d97e8(0x380)]='awaiting_with_pending',_0xdb3144[_0x4d97e8(0x310)]=_0x4d97e8(0x199),_0xdb3144[_0x4d97e8(0x4b6)]=_0x4d97e8(0x254),_0xdb3144[_0x4d97e8(0x283)]=_0x4d97e8(0x27a),_0xdb3144))(U||{});class J{constructor(_0xa27fd,_0x505add,_0x4da3fc,_0x43de14,_0x590c57,_0x41ab8f,_0x150fb3,_0x31e512,_0x4b290e){const _0x24afef=_0x4d97e8;u(this,_0x24afef(0x3ad),null),u(this,_0x24afef(0x485),[]),(this[_0x24afef(0x331)]=_0xa27fd,this[_0x24afef(0x366)]=_0x505add,this[_0x24afef(0xc9)]=_0x590c57,this[_0x24afef(0x1c7)]=_0x41ab8f,this['_undoRedoService']=_0x150fb3,this[_0x24afef(0x205)]=_0x31e512,this[_0x24afef(0x28a)]=_0x4b290e,this[_0x24afef(0x3ad)]=_0x4da3fc,this['_pendingMutations']=_0x43de14);}[_0x4d97e8(0x34a)](_0x5c2a6d){const _0x5d13d3=_0x4d97e8,_0x3c269f=this[_0x5d13d3(0x205)][_0x5d13d3(0x402)](this[_0x5d13d3(0x331)]);return _0x5c2a6d[_0x5d13d3(0x398)]>_0x3c269f+0x1?(this[_0x5d13d3(0xc9)][_0x5d13d3(0x45e)]({'from':_0x3c269f,'to':_0x5c2a6d[_0x5d13d3(0x398)]-0x1}),!0x0):!0x1;}[_0x4d97e8(0x3cd)](_0x32ea69){const _0x3f1bfa=_0x4d97e8;this[_0x3f1bfa(0x17c)][_0x3f1bfa(0x26c)](this[_0x3f1bfa(0x331)],_0x32ea69);}[_0x4d97e8(0x448)](_0x131814){const _0xef3525=_0x4d97e8;var _0xa70e89,_0x5bee81;(_0x5bee81=(_0xa70e89=this[_0xef3525(0xc9)])[_0xef3525(0x292)])==null||_0x5bee81[_0xef3525(0x1da)](_0xa70e89,_0x131814);}[_0x4d97e8(0x29c)](_0xafc401){const _0x3b3f2a=_0x4d97e8;var _0x1d5dd2,_0x5ba99b;return(_0x5ba99b=(_0x1d5dd2=this['_handler'])[_0x3b3f2a(0x3d0)])==null?void 0x0:_0x5ba99b[_0x3b3f2a(0x1da)](_0x1d5dd2,_0xafc401);}[_0x4d97e8(0x374)](_0x104f37){const _0xe58f84=_0x4d97e8;var _0xaef1e3,_0x287980,_0x26edc7;return(_0x26edc7=(_0x287980=(_0xaef1e3=this[_0xe58f84(0xc9)])[_0xe58f84(0x1fa)])==null?void 0x0:_0x287980[_0xe58f84(0x1da)](_0xaef1e3,_0x104f37))!=null?_0x26edc7:_0x104f37;}[_0x4d97e8(0x269)](_0x3a0a1b){const _0x334b7c=_0x4d97e8;var _0x144a84,_0x5d1cee;if(this[_0x334b7c(0x366)]===$['UNIVER_DOC']){const {unitID:_0x1834b1,mutations:_0x365343,memberID:_0x9b28f2}=_0x3a0a1b,_0x5cec6d=_0x365343[0x0]['params'][_0x334b7c(0x339)];Array[_0x334b7c(0x38a)](_0x5cec6d)&&_0x5cec6d[_0x334b7c(0x424)]>0x0&&((_0x5d1cee=(_0x144a84=this[_0x334b7c(0xc9)])[_0x334b7c(0x18a)])==null||_0x5d1cee[_0x334b7c(0x1da)](_0x144a84,{'unitID':_0x1834b1,'memberID':_0x9b28f2,'textRanges':_0x5cec6d}));}}['_updateLocalCache'](){const _0x1b8d35=_0x4d97e8;this[_0x1b8d35(0x28a)]['updateOfflineData'](this[_0x1b8d35(0x331)],this[_0x1b8d35(0x366)],this['_awaitingChangeset'],this[_0x1b8d35(0x485)]);}[_0x4d97e8(0x1e5)](){const _0x3af313=_0x4d97e8;return this[_0x3af313(0x205)][_0x3af313(0x402)](this[_0x3af313(0x331)]);}[_0x4d97e8(0x2ff)](){const _0x5a1e23=_0x4d97e8;this['_revisionService'][_0x5a1e23(0x4a3)](this['unitID']);}[_0x4d97e8(0x2f5)](_0x5141d1){const _0x5061ab=_0x4d97e8;var _0x4871a4;const _0x2e00e4=this[_0x5061ab(0x374)](_0x5141d1),_0x437fe8=a[_0x5061ab(0x322)](_0x2e00e4[_0x5061ab(0x20f)],this[_0x5061ab(0x1c7)],{'fromCollab':!0x0});if(!_0x437fe8[_0x5061ab(0x3bd)])throw _0x437fe8['error']instanceof Error?_0x437fe8[_0x5061ab(0x497)]:new Error((_0x4871a4=_0x437fe8['error'])!=null?_0x4871a4:_0x5061ab(0x110));this[_0x5061ab(0x29c)](_0x2e00e4),this[_0x5061ab(0x3cd)](_0x5141d1),this[_0x5061ab(0x448)](_0x2e00e4),this[_0x5061ab(0x269)](_0x2e00e4),this[_0x5061ab(0x2ff)]();}}let ie=class extends J{constructor(_0x325cba,_0x4b4794,_0x19b2d7,_0xaaceb7,_0x4a8c53,_0x28ec2e,_0x4033f8,_0x32ee3a,_0x5ad2ff,_0x2d950){const _0x242cce=_0x4d97e8;super(_0x325cba,_0x4b4794,null,[],_0x19b2d7,_0x32ee3a,_0x4033f8,_0xaaceb7,_0x4a8c53),u(this,'status',_0x242cce(0x26f)),(this[_0x242cce(0x2cd)]=_0x28ec2e,this[_0x242cce(0x188)]=_0x5ad2ff,this[_0x242cce(0x165)]=_0x2d950);}['appendMutation'](_0x2a1d5e){const _0x1ebd9b=_0x4d97e8,_0x2763c6=this[_0x1ebd9b(0x2cd)][_0x1ebd9b(0x309)](k,this[_0x1ebd9b(0x331)],this[_0x1ebd9b(0x366)],[_0x2a1d5e],this[_0x1ebd9b(0xc9)]);return _0x2763c6[_0x1ebd9b(0x36c)](),_0x2763c6[_0x1ebd9b(0x1b6)](),_0x2763c6;}[_0x4d97e8(0x10c)](_0x34021b){const _0x7d2706=_0x4d97e8;if(this['_checkMissing'](_0x34021b))return this[_0x7d2706(0x2cd)][_0x7d2706(0x309)](x,this[_0x7d2706(0x331)],this[_0x7d2706(0x366)],null,[],null,[_0x34021b],this[_0x7d2706(0xc9)]);try{const _0x304677=this[_0x7d2706(0x165)]['transformMutationsWithChangeset'](_0x34021b,[Fs]);if(_['isTransformMutationsWithChangesetSuccess'](_0x304677)){const {c1Prime:_0x2904ea}=_0x304677;return this[_0x7d2706(0x2f5)](_0x2904ea),this;}throw _0x304677['error'];}catch(_0x403ade){return this[_0x7d2706(0x188)][_0x7d2706(0x497)](_0x403ade),this[_0x7d2706(0x46d)](!0x1);}}['_onConflict'](_0x4c8e14){const _0x5346b1=_0x4d97e8;return this[_0x5346b1(0x2cd)][_0x5346b1(0x309)](F,this['unitID'],this[_0x5346b1(0x366)],null,[],this[_0x5346b1(0xc9)],_0x4c8e14);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4d97e8(0x313)](){const _0x1ed58f=_0x4d97e8;throw new Error(_0x1ed58f(0x1d1));}[_0x4d97e8(0x38c)](){const _0x38333b=_0x4d97e8;return this[_0x38333b(0x2cd)][_0x38333b(0x309)](G,this['unitID'],this[_0x38333b(0x366)],null,[],this[_0x38333b(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}['resend'](){const _0x58da5f=_0x4d97e8;throw new Error(_0x58da5f(0x48a));}['fetchMiss'](){const _0x3b163e=_0x4d97e8,_0x20511a=this[_0x3b163e(0x205)][_0x3b163e(0x402)](this[_0x3b163e(0x331)]);return this[_0x3b163e(0xc9)][_0x3b163e(0x45e)]({'from':_0x20511a,'to':0x0}),this[_0x3b163e(0x2cd)][_0x3b163e(0x309)](x,this[_0x3b163e(0x331)],this[_0x3b163e(0x366)],null,[],null,[],this[_0x3b163e(0xc9)]);}};ie=z([m(0x3,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0x4,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0x5,a['Inject'](a[_0x4d97e8(0xd0)])),m(0x6,a[_0x4d97e8(0x2fd)]),m(0x7,a['ICommandService']),m(0x8,a['ILogService']),m(0x9,_[_0x4d97e8(0x18d)])],ie);let k=class extends J{constructor(_0xc71a3d,_0x5e79a8,_0x30cc9b,_0x1699a0,_0x172b20,_0x59d1c,_0x3e9bdd,_0x25a97b,_0x2f8e73,_0x2fea42,_0x16b588,_0x364666,_0x1706a2,_0x383ca4){const _0x25d6c1=_0x4d97e8;super(_0xc71a3d,_0x5e79a8,null,_0x30cc9b,_0x1699a0,_0x2fea42,_0x383ca4,_0x59d1c,_0x3e9bdd),u(this,_0x25d6c1(0x2f1),'pending'),u(this,_0x25d6c1(0x224),null),u(this,_0x25d6c1(0xaa),null),(this['_injector']=_0x172b20,this[_0x25d6c1(0x3a7)]=_0x25a97b,this[_0x25d6c1(0x188)]=_0x2f8e73,this[_0x25d6c1(0xbd)]=_0x16b588,this[_0x25d6c1(0x165)]=_0x364666,this[_0x25d6c1(0x85)]=_0x1706a2);}[_0x4d97e8(0x232)](_0x5543bf){const _0x3c074b=_0x4d97e8;return this[_0x3c074b(0x485)]['push'](_0x5543bf),this[_0x3c074b(0x1b6)](),this;}[_0x4d97e8(0x10c)](_0x448df5){const _0x2f5b67=_0x4d97e8;if(this['_checkMissing'](_0x448df5))return this['_clearScheduledTask'](),this[_0x2f5b67(0x2cd)][_0x2f5b67(0x309)](x,this['unitID'],this[_0x2f5b67(0x366)],null,this[_0x2f5b67(0x485)],null,[_0x448df5],this[_0x2f5b67(0xc9)]);try{const _0x311266=this['_transformService']['transformMutationsWithChangeset'](_0x448df5,this[_0x2f5b67(0x485)]);if(_[_0x2f5b67(0x33d)](_0x311266)){const {c1Prime:_0x2695be,m2Prime:_0x35fb49}=_0x311266;this['_executeRemoteChangeset'](_0x2695be);const _0x1047f4=this[_0x2f5b67(0x2cd)][_0x2f5b67(0x309)](k,this['unitID'],this['type'],_0x35fb49,this[_0x2f5b67(0xc9)]);return this['_clearScheduledTask'](),_0x1047f4[_0x2f5b67(0x36c)](this[_0x2f5b67(0x224)]?Math[_0x2f5b67(0x379)](0x0,new Date()[_0x2f5b67(0x3e1)]()-this[_0x2f5b67(0x224)]):this['_getSendChangesetTimeout']()),_0x1047f4;}throw _0x311266[_0x2f5b67(0x497)];}catch(_0x35b25b){return this[_0x2f5b67(0x188)]['error'](_0x35b25b),this['_onConflict'](!0x1);}}[_0x4d97e8(0x431)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x4d97e8(0x313)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x4d97e8(0x38c)](){const _0x56f624=_0x4d97e8;return this[_0x56f624(0x4a5)](),this[_0x56f624(0x2cd)][_0x56f624(0x309)](G,this['unitID'],this[_0x56f624(0x366)],null,this[_0x56f624(0x485)],this[_0x56f624(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x36c)](_0x15ebc1){const _0x4e69b7=_0x4d97e8,_0x148937=_0x15ebc1!=null?_0x15ebc1:this[_0x4e69b7(0x2c6)]();this[_0x4e69b7(0x224)]=new Date()[_0x4e69b7(0x3e1)](),this[_0x4e69b7(0xaa)]=window[_0x4e69b7(0x3c4)](()=>{const _0x5000f0=_0x4e69b7;this['_clearScheduledTask']();let _0x42d312=null;switch(this[_0x5000f0(0x366)]){case $[_0x5000f0(0x15c)]:{_0x42d312=at(this[_0x5000f0(0x485)],this['unitID'],this[_0x5000f0(0x85)],this['_revisionService'],this['_memberService']);break;}case $['UNIVER_DOC']:{this[_0x5000f0(0x485)][_0x5000f0(0x145)](_0x5e34f7=>_0x5e34f7['id']===se['RichTextEditingMutation']['id'])?_0x42d312=Ws(this[_0x5000f0(0x485)],this[_0x5000f0(0x331)],this['_univerInstanceService'],this[_0x5000f0(0x205)],this['_memberService']):_0x42d312=at(this[_0x5000f0(0x485)],this[_0x5000f0(0x331)],this[_0x5000f0(0x85)],this[_0x5000f0(0x205)],this[_0x5000f0(0x3a7)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x5000f0(0x366)]+_0x5000f0(0x1ed));}const {changeset:_0xaefb85,pendingMutations:_0x1a92d8}=_0x42d312;this[_0x5000f0(0xc9)][_0x5000f0(0x284)](_0xaefb85);const _0xb3c2cf=_0x1a92d8[_0x5000f0(0x424)]?this[_0x5000f0(0x2cd)][_0x5000f0(0x309)](B,this['unitID'],this['type'],_0xaefb85,_0x1a92d8,this[_0x5000f0(0xc9)]):this['_injector'][_0x5000f0(0x309)](W,this[_0x5000f0(0x331)],this[_0x5000f0(0x366)],_0xaefb85,this[_0x5000f0(0xc9)]);_0xb3c2cf[_0x5000f0(0x1b6)](),this[_0x5000f0(0xc9)]['onStateChange'](this,_0xb3c2cf);},_0x148937);}[_0x4d97e8(0x2c6)](){const _0x1c0e8e=_0x4d97e8;var _0xabd885;const _0x400d93=this[_0x1c0e8e(0xbd)][_0x1c0e8e(0x1f4)](L);return(_0xabd885=_0x400d93==null?void 0x0:_0x400d93[_0x1c0e8e(0x17b)])!=null?_0xabd885:Jt;}['resend'](){const _0x5ce0af=_0x4d97e8;throw new Error(_0x5ce0af(0x327));}[_0x4d97e8(0x4a5)](){const _0x574ff5=_0x4d97e8;this['_sendingTimer']!=null&&(clearTimeout(this[_0x574ff5(0xaa)]),this[_0x574ff5(0xaa)]=null);}[_0x4d97e8(0x46d)](_0x28979f){const _0x5a5a52=_0x4d97e8;return this[_0x5a5a52(0x4a5)](),this['_injector'][_0x5a5a52(0x309)](F,this[_0x5a5a52(0x331)],this[_0x5a5a52(0x366)],null,this[_0x5a5a52(0x485)],this['_handler'],_0x28979f);}};k=z([m(0x4,a['Inject'](a[_0x4d97e8(0xd0)])),m(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0x6,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x4d97e8(0xeb)]),m(0x9,a[_0x4d97e8(0x433)]),m(0xa,a[_0x4d97e8(0x332)]),m(0xb,_[_0x4d97e8(0x18d)]),m(0xc,a[_0x4d97e8(0x248)]),m(0xd,a['IUndoRedoService'])],k);let W=class extends J{constructor(_0x3665e9,_0x118bb1,_0x5605ba,_0x14aa23,_0x5328af,_0x14d5f2,_0x1cc77e,_0x12ea53,_0x3c9b13,_0x499670,_0x5d6fb1){const _0x21aefa=_0x4d97e8;super(_0x3665e9,_0x118bb1,_0x5605ba,[],_0x14aa23,_0x12ea53,_0x5d6fb1,_0x14d5f2,_0x1cc77e),u(this,_0x21aefa(0x2f1),_0x21aefa(0x326)),(this[_0x21aefa(0x2cd)]=_0x5328af,this[_0x21aefa(0x188)]=_0x3c9b13,this[_0x21aefa(0x165)]=_0x499670);}[_0x4d97e8(0x232)](_0x35d082){const _0x28e557=_0x4d97e8,_0x3579c1=this[_0x28e557(0x2cd)][_0x28e557(0x309)](B,this[_0x28e557(0x331)],this['type'],this[_0x28e557(0x3ad)],[_0x35d082],this[_0x28e557(0xc9)]);return _0x3579c1[_0x28e557(0x1b6)](),_0x3579c1;}['onRemoteChangeset'](_0x34e874){const _0x4f22c3=_0x4d97e8;if(this[_0x4f22c3(0x34a)](_0x34e874))return this[_0x4f22c3(0x2cd)][_0x4f22c3(0x309)](x,this[_0x4f22c3(0x331)],this[_0x4f22c3(0x366)],this[_0x4f22c3(0x3ad)],[],null,[_0x34e874],this['_handler']);try{const _0x17e4fa=this['_transformService'][_0x4f22c3(0x15a)]([_0x34e874],[this['_awaitingChangeset']],!0x1);if(_[_0x4f22c3(0x317)](_0x17e4fa)){const {c1Prime:_0x56b37a,c2Prime:_0x96d370}=_0x17e4fa;this[_0x4f22c3(0x2f5)](_0x56b37a[0x0]),_0x96d370[0x0][_0x4f22c3(0x20a)]=this[_0x4f22c3(0x1e5)]();const _0x540a2d=this[_0x4f22c3(0x2cd)]['createInstance'](W,this[_0x4f22c3(0x331)],this['type'],_0x96d370[0x0],this[_0x4f22c3(0xc9)]);return _0x540a2d[_0x4f22c3(0x1b6)](),_0x540a2d;}return this[_0x4f22c3(0x46d)](!0x1);}catch(_0xfdc29c){return this[_0x4f22c3(0x188)][_0x4f22c3(0x497)](_0xfdc29c),this[_0x4f22c3(0x46d)](!0x1);}}[_0x4d97e8(0x431)](_0x58920b){const _0x10ac7c=_0x4d97e8,_0xd3c9a8=this[_0x10ac7c(0x205)][_0x10ac7c(0x402)](this[_0x10ac7c(0x331)]);if(_0x58920b[_0x10ac7c(0x398)]<_0xd3c9a8-0x1)return this;if(this['_checkMissing'](_0x58920b))return this['_injector'][_0x10ac7c(0x309)](x,this['unitID'],this[_0x10ac7c(0x366)],null,[],this['_awaitingChangeset'],[],this[_0x10ac7c(0xc9)]);this[_0x10ac7c(0x2ff)]();const _0x447c17=this[_0x10ac7c(0x2cd)][_0x10ac7c(0x309)](ie,this['unitID'],this['type'],this['_handler']);return _0x447c17[_0x10ac7c(0x1b6)](),_0x447c17;}[_0x4d97e8(0x313)](_0x41c4f4){const _0x3829ee=_0x4d97e8;return this[_0x3829ee(0x46d)](!!(_0x41c4f4!=null&&_0x41c4f4[_0x3829ee(0x350)]));}[_0x4d97e8(0x38c)](){const _0x212e14=_0x4d97e8;return this[_0x212e14(0x2cd)][_0x212e14(0x309)](G,this[_0x212e14(0x331)],this[_0x212e14(0x366)],this[_0x212e14(0x3ad)],[],this[_0x212e14(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x3d1)](){const _0x3fc2a2=_0x4d97e8;this[_0x3fc2a2(0xc9)][_0x3fc2a2(0x284)](this[_0x3fc2a2(0x3ad)]);}[_0x4d97e8(0x46d)](_0x2ef0dc){const _0x2fbce9=_0x4d97e8;return this['_injector']['createInstance'](F,this[_0x2fbce9(0x331)],this[_0x2fbce9(0x366)],this[_0x2fbce9(0x3ad)],[],this[_0x2fbce9(0xc9)],_0x2ef0dc);}};W=z([m(0x4,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),m(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0x6,a[_0x4d97e8(0x13d)](exports['LocalCacheService'])),m(0x7,a['ICommandService']),m(0x8,a['ILogService']),m(0x9,_[_0x4d97e8(0x18d)]),m(0xa,a[_0x4d97e8(0x2fd)])],W);let B=class extends J{constructor(_0xaab6ec,_0x559e7f,_0x32c6c3,_0x2b8dab,_0x41dbc5,_0x16e06e,_0x554f07,_0x60b174,_0x234119,_0x2f0967,_0x9e920f,_0xcd4e36){const _0x142362=_0x4d97e8;super(_0xaab6ec,_0x559e7f,_0x32c6c3,_0x2b8dab,_0x41dbc5,_0x234119,_0xcd4e36,_0x554f07,_0x60b174),u(this,'status',_0x142362(0xb6)),(this['_injector']=_0x16e06e,this[_0x142362(0x188)]=_0x2f0967,this[_0x142362(0x165)]=_0x9e920f);}[_0x4d97e8(0x232)](_0x1dbd12){const _0x1add56=_0x4d97e8;return this[_0x1add56(0x485)][_0x1add56(0x29b)](_0x1dbd12),this;}[_0x4d97e8(0x10c)](_0x18803e){const _0x441475=_0x4d97e8;if(this[_0x441475(0x34a)](_0x18803e))return this[_0x441475(0x2cd)][_0x441475(0x309)](x,this[_0x441475(0x331)],this['type'],this[_0x441475(0x3ad)],this[_0x441475(0x485)],null,[_0x18803e],this[_0x441475(0xc9)]);try{const _0x43b6cd=this[_0x441475(0x165)][_0x441475(0x15a)]([_0x18803e],[this[_0x441475(0x3ad)]],!0x1);if(_[_0x441475(0x317)](_0x43b6cd)){const {c1Prime:_0x1b6807,c2Prime:_0x2b699f}=_0x43b6cd,_0x4c6991=this[_0x441475(0x165)][_0x441475(0x2a5)](_0x1b6807[0x0],this[_0x441475(0x485)]);if(_[_0x441475(0x33d)](_0x4c6991)){const {c1Prime:_0x2bf94e,m2Prime:_0x1bd89c}=_0x4c6991;return this[_0x441475(0x2f5)](_0x2bf94e),_0x2b699f[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x441475(0x2cd)][_0x441475(0x309)](B,this[_0x441475(0x331)],this['type'],_0x2b699f[0x0],_0x1bd89c,this['_handler']);}throw _0x4c6991[_0x441475(0x497)];}throw _0x43b6cd[_0x441475(0x497)];}catch(_0x36d29d){return this[_0x441475(0x188)][_0x441475(0x497)](_0x36d29d),this[_0x441475(0x46d)](!0x1);}}['onRemoteAck'](_0x4ff33b){const _0x443516=_0x4d97e8;if(this[_0x443516(0x34a)](_0x4ff33b))return this[_0x443516(0x2cd)][_0x443516(0x309)](x,this[_0x443516(0x331)],this[_0x443516(0x366)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x443516(0xc9)]);this[_0x443516(0x2ff)]();const _0x4cc333=this[_0x443516(0x2cd)][_0x443516(0x309)](k,this[_0x443516(0x331)],this['type'],this[_0x443516(0x485)],this[_0x443516(0xc9)]);return _0x4cc333[_0x443516(0x36c)](),_0x4cc333['_updateLocalCache'](),_0x4cc333;}[_0x4d97e8(0x313)](_0x5aecea){const _0x5711db=_0x4d97e8;return this[_0x5711db(0x46d)](!!(_0x5aecea!=null&&_0x5aecea[_0x5711db(0x350)]));}['toggleOffline'](){const _0x35c238=_0x4d97e8;return this['_injector'][_0x35c238(0x309)](G,this[_0x35c238(0x331)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x4d97e8(0x3ce)](){return this;}['resend'](){const _0x5c8f04=_0x4d97e8;this[_0x5c8f04(0xc9)]['onSendChangeset'](this[_0x5c8f04(0x3ad)]);}[_0x4d97e8(0x46d)](_0x309d1c){const _0x191a86=_0x4d97e8;return this[_0x191a86(0x2cd)][_0x191a86(0x309)](F,this[_0x191a86(0x331)],this[_0x191a86(0x366)],null,this[_0x191a86(0x485)],this[_0x191a86(0xc9)],_0x309d1c);}};B=z([m(0x5,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),m(0x6,a[_0x4d97e8(0x13d)](_['RevisionService'])),m(0x7,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0x8,a[_0x4d97e8(0x433)]),m(0x9,a[_0x4d97e8(0xeb)]),m(0xa,_[_0x4d97e8(0x18d)]),m(0xb,a['IUndoRedoService'])],B);let F=class extends J{constructor(_0xd04204,_0x4eb580,_0x1b839a,_0x55a6ad,_0xb65377,_0x40c7a8=!0x1,_0x478671,_0x1f3245,_0x3b9ebf,_0x299e44,_0x2c335b,_0xae8f6b,_0x4a1809){const _0x2e20f5=_0x4d97e8;super(_0xd04204,_0x4eb580,_0x1b839a,_0x55a6ad,_0xb65377,_0x1f3245,_0x3b9ebf,_0x2c335b,_0x299e44),u(this,_0x2e20f5(0x2f1),_0x2e20f5(0x254)),(this[_0x2e20f5(0x484)]=_0x40c7a8,this[_0x2e20f5(0xf8)]=_0x478671,this[_0x2e20f5(0x40e)]=_0xae8f6b,this[_0x2e20f5(0x2d4)]=_0x4a1809,this[_0x2e20f5(0x289)](),this[_0x2e20f5(0x163)](),this[_0x2e20f5(0x2fa)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4d97e8(0x431)](){return this;}[_0x4d97e8(0x313)](){return this;}[_0x4d97e8(0x38c)](){return this;}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x3d1)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d97e8(0x163)](){const _0x4ae8d8=_0x4d97e8;this[_0x4ae8d8(0x28a)][_0x4ae8d8(0xcf)](this[_0x4ae8d8(0x331)],this['type'],null,[]);}[_0x4d97e8(0x289)](){const _0x3b45c6=_0x4d97e8;this[_0x3b45c6(0x484)]?this[_0x3b45c6(0x2d4)]['show']({'title':this[_0x3b45c6(0x40e)]['t'](_0x3b45c6(0x13b)),'content':this['_localeService']['t'](_0x3b45c6(0x42c)),'type':_0x3b45c6(0x497),'duration':0x0}):this[_0x3b45c6(0x2d4)][_0x3b45c6(0x207)]({'title':this[_0x3b45c6(0x40e)]['t']('conflict.title'),'content':this['_localeService']['t'](_0x3b45c6(0x173)),'type':'error','duration':0x0});}[_0x4d97e8(0x2fa)](){const _0x45ed63=_0x4d97e8;this[_0x45ed63(0xf8)][_0x45ed63(0xc7)](new C[(_0x45ed63(0xa6))](this[_0x45ed63(0x331)])['id'],!0x1);}};F=z([m(0x6,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x294)])),m(0x7,a[_0x4d97e8(0x433)]),m(0x8,a[_0x4d97e8(0x2fd)]),m(0x9,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0xa,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),m(0xb,a['Inject'](a[_0x4d97e8(0x10a)])),m(0xc,A[_0x4d97e8(0xd9)])],F);let G=class extends J{constructor(_0x2e000f,_0x58b252,_0x3b3f0c,_0x5eb6fd,_0x42fb31,_0x2f35cb,_0x208018,_0x45bc55,_0x3bf99a,_0x3e855a){const _0x622cbb=_0x4d97e8;super(_0x2e000f,_0x58b252,_0x3b3f0c,_0x5eb6fd,_0x42fb31,_0x3bf99a,_0x3e855a,_0x208018,_0x45bc55),u(this,'status',_0x622cbb(0x27a)),this[_0x622cbb(0x2cd)]=_0x2f35cb;}[_0x4d97e8(0x232)](_0x74a3e7){const _0x5069ab=_0x4d97e8;return this[_0x5069ab(0x485)]['push'](_0x74a3e7),this[_0x5069ab(0x1b6)](),this;}[_0x4d97e8(0x10c)](_0x36c48e){const _0x3dcb63=_0x4d97e8;throw new Error(_0x3dcb63(0x3e7));}['onRemoteAck'](){const _0xf7ec62=_0x4d97e8;throw new Error(_0xf7ec62(0x279));}[_0x4d97e8(0x313)](){const _0x170bb7=_0x4d97e8;throw new Error(_0x170bb7(0x151));}[_0x4d97e8(0x38c)](){return this;}[_0x4d97e8(0x3ce)](){const _0x43adc3=_0x4d97e8,{_injector:_0x2d93b2,_pendingMutations:_0xc1b2f1,_awaitingChangeset:_0x55c2e1,unitID:_0x4d220f,_handler:_0x6b72f9,type:_0x1c59d4}=this,_0x10e387=Ut(_0x2d93b2,_0x4d220f,_0x1c59d4,_0x55c2e1,_0xc1b2f1,_0x6b72f9);return _0x10e387 instanceof k?_0x10e387[_0x43adc3(0x36c)]():(_0x10e387 instanceof B||_0x10e387 instanceof W)&&_0x10e387['resend'](),_0x10e387;}['resend'](){const _0x1705bc=_0x4d97e8;throw new Error(_0x1705bc(0x4a2));}};G=z([m(0x5,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),m(0x6,a['Inject'](_['RevisionService'])),m(0x7,a[_0x4d97e8(0x13d)](exports['LocalCacheService'])),m(0x8,a[_0x4d97e8(0x433)]),m(0x9,a['IUndoRedoService'])],G);let x=class extends J{constructor(_0x3f28ca,_0x1a8c4c,_0x4840c5,_0xc0edb9,_0x3d396f,_0x145a84,_0x16c564,_0x43f9b4,_0x506de5,_0x317d0c,_0x17fd6a,_0x40792c,_0x25f17d,_0xecd37a){const _0x474c79=_0x4d97e8;super(_0x3f28ca,_0x1a8c4c,_0x4840c5,_0xc0edb9,_0x16c564,_0x40792c,_0x25f17d,_0x506de5,_0x317d0c),u(this,_0x474c79(0x2f1),_0x474c79(0x199)),(this[_0x474c79(0x45d)]=_0x3d396f,this[_0x474c79(0x3dc)]=_0x145a84,this[_0x474c79(0x2cd)]=_0x43f9b4,this[_0x474c79(0x188)]=_0x17fd6a,this['_transformService']=_0xecd37a);}['onMissedChangesetFetched'](_0x1431ae){const _0x307079=_0x4d97e8;try{const _0x297d6a=[..._0x1431ae,...this['_queuedRemoteChangesets']],_0x5689fd=[this[_0x307079(0x3ad)]||this[_0x307079(0x45d)]][_0x307079(0x355)](_0x431943=>!!_0x431943);let _0x45dc1b,_0xcf57e3;if(_0x5689fd[_0x307079(0x424)]){const _0x37503b=this[_0x307079(0x165)]['transformChangesets'](_0x297d6a,_0x5689fd,!0x1);if(!_['isTransformChangesetsSuccess'](_0x37503b))throw _0x37503b[_0x307079(0x497)];_0x45dc1b=_0x37503b[_0x307079(0x126)],_0xcf57e3=_0x37503b[_0x307079(0x3b6)];}else _0x45dc1b=_0x297d6a,_0xcf57e3=[];let _0x3bed0f=this[_0x307079(0x485)];_0x45dc1b[_0x307079(0x373)](_0x16821b=>{const _0x27f35b=_0x307079;let _0x3d0e59;if(_0x3bed0f['length']){const _0x487a1a=this[_0x27f35b(0x165)]['transformMutationsWithChangeset'](_0x16821b,_0x3bed0f);if(!_[_0x27f35b(0x33d)](_0x487a1a))throw _0x487a1a[_0x27f35b(0x497)];_0x3d0e59=_0x487a1a[_0x27f35b(0x126)],_0x3bed0f=_0x487a1a[_0x27f35b(0x1a9)];}else _0x3d0e59=_0x16821b;this[_0x27f35b(0x2f5)](_0x3d0e59);}),this[_0x307079(0x45d)]&&this[_0x307079(0x2ff)](),this['_awaitingChangeset']&&_0xcf57e3[_0x307079(0x424)]&&(_0xcf57e3[0x0][_0x307079(0x20a)]=this[_0x307079(0x1e5)]());let _0x56494b;if(this[_0x307079(0x3ad)]&&_0x3bed0f[_0x307079(0x424)]!==0x0)_0x56494b=this['_injector'][_0x307079(0x309)](B,this[_0x307079(0x331)],this[_0x307079(0x366)],_0xcf57e3[0x0],_0x3bed0f,this[_0x307079(0xc9)]);else{if(this[_0x307079(0x3ad)]&&_0x3bed0f[_0x307079(0x424)]===0x0)_0xcf57e3[0x0]['baseRev']=this['_getCurrentRevision'](),_0x56494b=this[_0x307079(0x2cd)][_0x307079(0x309)](W,this[_0x307079(0x331)],this[_0x307079(0x366)],_0xcf57e3[0x0],this['_handler']);else{if(_0x3bed0f[_0x307079(0x424)]!==0x0){const _0x2121c3=this['_injector'][_0x307079(0x309)](k,this[_0x307079(0x331)],this['type'],_0x3bed0f,this[_0x307079(0xc9)]);_0x2121c3[_0x307079(0x36c)](),_0x56494b=_0x2121c3;}else _0x56494b=this[_0x307079(0x2cd)]['createInstance'](ie,this[_0x307079(0x331)],this['type'],this[_0x307079(0xc9)]);}}return _0x56494b[_0x307079(0x1b6)](),_0x56494b;}catch(_0xf58108){return this['_logService'][_0x307079(0x497)](_0x307079(0x45c),_0x307079(0x492),_0xf58108),this['_injector'][_0x307079(0x309)](F,this['unitID'],this[_0x307079(0x366)],this[_0x307079(0x3ad)],this[_0x307079(0x485)],this[_0x307079(0xc9)],!0x1);}}[_0x4d97e8(0x3d1)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d97e8(0x232)](_0x4f985b){const _0x4a8b81=_0x4d97e8;return this[_0x4a8b81(0x485)][_0x4a8b81(0x29b)](_0x4f985b),this;}[_0x4d97e8(0x10c)](_0x17aad9){const _0x503436=_0x4d97e8;return this[_0x503436(0x3dc)][_0x503436(0x29b)](_0x17aad9),this;}[_0x4d97e8(0x431)](_0xc3acb9){const _0x5241c0=_0x4d97e8;if(this[_0x5241c0(0x3ad)])return this[_0x5241c0(0x45d)]=this[_0x5241c0(0x3ad)],this[_0x5241c0(0x3ad)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4d97e8(0x313)](_0x1718a5){const _0xf2e467=_0x4d97e8;return this[_0xf2e467(0x46d)](!!(_0x1718a5!=null&&_0x1718a5[_0xf2e467(0x350)]));}[_0x4d97e8(0x38c)](){const _0x2c8cab=_0x4d97e8;return this['_injector'][_0x2c8cab(0x309)](G,this[_0x2c8cab(0x331)],this[_0x2c8cab(0x366)],this[_0x2c8cab(0x3ad)],this[_0x2c8cab(0x485)],this[_0x2c8cab(0xc9)]);}[_0x4d97e8(0x3ce)](){return this;}[_0x4d97e8(0x46d)](_0x4af97e){const _0x50d1bf=_0x4d97e8;return this[_0x50d1bf(0x2cd)]['createInstance'](F,this[_0x50d1bf(0x331)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x50d1bf(0xc9)],_0x4af97e);}};x=z([m(0x7,a['Inject'](a[_0x4d97e8(0xd0)])),m(0x8,a['Inject'](_['RevisionService'])),m(0x9,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),m(0xa,a[_0x4d97e8(0xeb)]),m(0xb,a['ICommandService']),m(0xc,a[_0x4d97e8(0x2fd)]),m(0xd,_[_0x4d97e8(0x18d)])],x);function Ut(_0x4057c2,_0x4f06e3,_0x731b,_0x11f30d,_0x406327,_0x31e698){const _0xfa649c=_0x4d97e8;return _0x11f30d&&_0x406327[_0xfa649c(0x424)]?_0x4057c2[_0xfa649c(0x309)](B,_0x4f06e3,_0x731b,_0x11f30d,_0x406327,_0x31e698):_0x11f30d?_0x4057c2[_0xfa649c(0x309)](W,_0x4f06e3,_0x731b,_0x11f30d,_0x31e698):_0x406327['length']?_0x4057c2[_0xfa649c(0x309)](k,_0x4f06e3,_0x731b,_0x406327,_0x31e698):_0x4057c2[_0xfa649c(0x309)](ie,_0x4f06e3,_0x731b,_0x31e698);}var Ks=Object['defineProperty'],Xs=Object[_0x4d97e8(0x100)],ze=(_0x4d387b,_0x84d0a6,_0x3cc0e6,_0x1165d2)=>{const _0x20f3d1=_0x4d97e8;for(var _0x433b7b=_0x1165d2>0x1?void 0x0:_0x1165d2?Xs(_0x84d0a6,_0x3cc0e6):_0x84d0a6,_0x4c5f70=_0x4d387b[_0x20f3d1(0x424)]-0x1,_0x588c64;_0x4c5f70>=0x0;_0x4c5f70--)(_0x588c64=_0x4d387b[_0x4c5f70])&&(_0x433b7b=(_0x1165d2?_0x588c64(_0x84d0a6,_0x3cc0e6,_0x433b7b):_0x588c64(_0x433b7b))||_0x433b7b);return _0x1165d2&&_0x433b7b&&Ks(_0x84d0a6,_0x3cc0e6,_0x433b7b),_0x433b7b;},p=(_0x7c4861,_0x2b84d8)=>(_0x2e87ec,_0xd34276)=>_0x2b84d8(_0x2e87ec,_0xd34276,_0x7c4861);exports[_0x4d97e8(0x17a)]=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x479e94,_0x48af68,_0x1e870b,_0x34945e,_0x2fc3b4,_0x39f387,_0x470641,_0x48ce95,_0x3e19d6,_0xf18d3b,_0x2dae5d,_0x39117f,_0xeab8ad){const _0x5c9bf4=_0x4d97e8;super(),u(this,_0x5c9bf4(0x3f8),new v[(_0x5c9bf4(0x114))](null)),u(this,'state$',this[_0x5c9bf4(0x3f8)]['asObservable']()),u(this,'_state'),u(this,_0x5c9bf4(0x499),!0x1),u(this,_0x5c9bf4(0x468),''),u(this,'_changesetReqId',0x0),u(this,_0x5c9bf4(0x1dc),this[_0x5c9bf4(0x324)]['pipe'](v[_0x5c9bf4(0x12b)](_0x4bb08f=>_0x4bb08f?_0x4bb08f[_0x5c9bf4(0x2f1)]:U[_0x5c9bf4(0x283)]),v['shareReplay'](0x1))),u(this,_0x5c9bf4(0x351),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x5c9bf4(0x331)]=_0x479e94,this[_0x5c9bf4(0x86)]=_0x48af68,this[_0x5c9bf4(0x405)]=_0x1e870b,this[_0x5c9bf4(0x2cd)]=_0x34945e,this['_localCacheService']=_0x2fc3b4,this[_0x5c9bf4(0x3a2)]=_0x39f387,this['_localeService']=_0x470641,this[_0x5c9bf4(0x205)]=_0x48ce95,this[_0x5c9bf4(0x188)]=_0x3e19d6,this[_0x5c9bf4(0x1c7)]=_0xf18d3b,this[_0x5c9bf4(0x213)]=_0x2dae5d,this['_permissionService']=_0x39117f,this[_0x5c9bf4(0xe1)]=_0xeab8ad);}get[_0x4d97e8(0x8b)](){return this['_state'];}async['init'](){const _0xb0fbd2=_0x4d97e8;if(this[_0xb0fbd2(0x8b)])throw new Error(_0xb0fbd2(0xc6));await this['_init']();}[_0x4d97e8(0x4a7)](){const _0x35a3e3=_0x4d97e8;return this[_0x35a3e3(0x499)]=!0x0,a[_0x35a3e3(0x257)](()=>{const _0x405521=_0x35a3e3;this[_0x405521(0x499)]=!0x1,this[_0x405521(0x8c)]();});}[_0x4d97e8(0x3d4)](_0x2421d1){const _0xdde3ae=_0x4d97e8;this[_0xdde3ae(0x1dd)]=_0x2421d1,this[_0xdde3ae(0x3f8)][_0xdde3ae(0x120)](_0x2421d1);}async[_0x4d97e8(0x27e)](){const _0x3eee2c=_0x4d97e8;var _0x7b4844;this[_0x3eee2c(0x3d4)](await this[_0x3eee2c(0x20d)]()),this['_singleActiveUnitService']&&((_0x7b4844=this[_0x3eee2c(0xe1)])==null||_0x7b4844['editingUnit'](this[_0x3eee2c(0x331)]),this[_0x3eee2c(0x1e2)](this['_singleActiveUnitService'][_0x3eee2c(0x388)](this[_0x3eee2c(0x331)])[_0x3eee2c(0x1c4)](_0x6edfc7=>{const _0x49f542=_0x3eee2c;this['_logService'][_0x49f542(0x403)]('[CollaborationEntity]',_0x49f542(0x3c1),_0x6edfc7),_0x6edfc7===Dt[_0x49f542(0x3a8)]?(this[_0x49f542(0x213)][_0x49f542(0x207)]({'content':this[_0x49f542(0x40e)]['t'](_0x49f542(0x2ed)),'type':X['MessageType'][_0x49f542(0x25a)]}),this[_0x49f542(0xf8)][_0x49f542(0xc7)](new C[(_0x49f542(0xa6))](this[_0x49f542(0x331)])['id'],!0x1)):this[_0x49f542(0xf8)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x0);})));let _0x343ae2=!0x1;return this[_0x3eee2c(0x1e2)](this['session']['sessionStatus$'][_0x3eee2c(0x1c4)](_0x1ca656=>{const _0x464464=_0x3eee2c;_0x1ca656===H[_0x464464(0x2ee)]?this[_0x464464(0x3ea)](_0x343ae2):_0x1ca656===H['OFFLINE']&&(_0x343ae2=!0x0,this[_0x464464(0x191)]());})),this[_0x3eee2c(0x1e2)](this[_0x3eee2c(0x86)]['event$'][_0x3eee2c(0x1c4)](_0x313fda=>{const _0x231afd=_0x3eee2c;try{switch(_0x313fda[_0x231afd(0x445)]){case _[_0x231afd(0x49e)][_0x231afd(0x148)]:{this[_0x231afd(0x422)](_[_0x231afd(0x1b7)](_0x313fda[_0x231afd(0x201)]));break;}case _['CollaborationEvent'][_0x231afd(0x94)]:{this[_0x231afd(0x2c8)](_0x313fda[_0x231afd(0x201)]);break;}case _[_0x231afd(0x49e)][_0x231afd(0x1bd)]:{this[_0x231afd(0x1ec)]();break;}case _[_0x231afd(0x49e)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x231afd(0x167)](_0x313fda[_0x231afd(0x201)][_0x231afd(0x3eb)]['map'](_0x5e0bd7=>_[_0x231afd(0x1b7)](_0x5e0bd7)));break;}case _[_0x231afd(0x49e)][_0x231afd(0x197)]:this[_0x231afd(0x1ec)]({'isPermissionRej':!0x0});}}catch(_0xf91408){throw console[_0x231afd(0x497)](_0x231afd(0x481),_0xf91408),_0xf91408;}})),this['_state'];}[_0x4d97e8(0x169)](){const _0x4c3500=_0x4d97e8;this[_0x4c3500(0x351)]=!0x1;}[_0x4d97e8(0x1df)](){const _0x5c9376=_0x4d97e8;if(this[_0x5c9376(0x351)])throw new Error(_0x5c9376(0x2fc));this[_0x5c9376(0x351)]=!0x0;}[_0x4d97e8(0x482)](_0x461ba5){const _0x4182d9=_0x4d97e8;this[_0x4182d9(0x1df)](),this[_0x4182d9(0x3d4)](this[_0x4182d9(0x1dd)]['appendMutation'](_0x461ba5)),this[_0x4182d9(0x169)]();}[_0x4d97e8(0x422)](_0x4ced7f){const _0x4685e1=_0x4d97e8;if(!(_0x4ced7f[_0x4685e1(0x398)]<=this['_revisionService'][_0x4685e1(0x402)](this[_0x4685e1(0x331)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x4685e1(0x29b)](_0x4ced7f);return;}this[_0x4685e1(0x206)](_0x4ced7f);}}[_0x4d97e8(0x8c)](){const _0x596bd9=_0x4d97e8;this[_0x596bd9(0x410)][_0x596bd9(0x373)](_0x4472e5=>this[_0x596bd9(0x206)](_0x4472e5)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x519fab){const _0x342600=_0x4d97e8,_0x548ccf=this['_compressMutationService']['interceptor'][_0x342600(0x1d9)](this[_0x342600(0x3a2)][_0x342600(0x36d)][_0x342600(0x3a1)]()['COMPRESS_MUTATION_APPLY'])(_0x519fab['mutations'],null)||_0x519fab['mutations'],_0x14a66a={..._0x519fab,'mutations':_0x548ccf};this[_0x342600(0x1df)](),this[_0x342600(0x3d4)](this[_0x342600(0x1dd)][_0x342600(0x10c)](_0x14a66a)),this[_0x342600(0x169)]();}[_0x4d97e8(0x2c8)](_0x4caa44){const _0x5419b4=_0x4d97e8;this[_0x5419b4(0x1df)](),this['_updateState'](this[_0x5419b4(0x1dd)][_0x5419b4(0x431)](_0x4caa44)),this['_unlockTransition']();}['_onRemoteRejected'](_0x4212fa){const _0x481ee4=_0x4d97e8;this[_0x481ee4(0x1df)](),this[_0x481ee4(0x3d4)](this[_0x481ee4(0x1dd)][_0x481ee4(0x313)](_0x4212fa)),this[_0x481ee4(0x169)]();}['_onFetchMissResult'](_0x2308bb){const _0x5d1ac1=_0x4d97e8;if(!(this[_0x5d1ac1(0x1dd)]instanceof x))throw new TypeError(_0x5d1ac1(0x36f));const _0x3e6a73=_0x2308bb[_0x5d1ac1(0x12b)](_0x4ce143=>{const _0x5c46e2=_0x5d1ac1,_0x2396d5=this['_compressMutationService'][_0x5c46e2(0x36d)]['fetchThroughInterceptors'](this[_0x5c46e2(0x3a2)]['interceptor']['getInterceptPoints']()[_0x5c46e2(0xac)])(_0x4ce143[_0x5c46e2(0x20f)],null)||_0x4ce143[_0x5c46e2(0x20f)];return{..._0x4ce143,'mutations':_0x2396d5};});this[_0x5d1ac1(0x1df)](),this[_0x5d1ac1(0x3d4)](this[_0x5d1ac1(0x1dd)][_0x5d1ac1(0xad)](_0x3e6a73)),this['_unlockTransition']();}['_toggleOffline'](){const _0x5f2a61=_0x4d97e8;this['_lockTransition'](),this[_0x5f2a61(0x3d4)](this[_0x5f2a61(0x1dd)]['toggleOffline']()),this['_unlockTransition']();}[_0x4d97e8(0x3ea)](_0xba6481=!0x1){const _0x5b0674=_0x4d97e8;this[_0x5b0674(0x1df)](),this['_updateState'](this[_0x5b0674(0x1dd)][_0x5b0674(0x3ce)]()),this['_unlockTransition']();const _0x1bc9e7=this[_0x5b0674(0x1dd)];_0xba6481&&_0x1bc9e7 instanceof ie&&(this[_0x5b0674(0x1df)](),this[_0x5b0674(0x3d4)](_0x1bc9e7[_0x5b0674(0x3c8)]()),this['_unlockTransition']());}async[_0x4d97e8(0x20d)](){return new Promise(_0xa735da=>{const _0x46b60f=_0x4a0f;this[_0x46b60f(0x86)]['sessionStatus$']['pipe'](v[_0x46b60f(0x463)](0x1))[_0x46b60f(0x1c4)](async _0x20dc9c=>{const _0x5376aa=_0x46b60f;_0xa735da(await this[_0x5376aa(0x288)](_0x20dc9c===H[_0x5376aa(0x2ee)]));});});}[_0x4d97e8(0x3bc)](){const _0x4aaf92=_0x4d97e8,_0xe60def=this[_0x4aaf92(0x331)];return{'onStateChange':(_0x8a1e9e,_0xaea6b6)=>{const _0xee08d0=_0x4aaf92;if(_0x8a1e9e!==this[_0xee08d0(0x1dd)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x8a1e9e[_0xee08d0(0x2f1)]+_0xee08d0(0x49d)+_0xaea6b6['status']+_0xee08d0(0x28c)+this[_0xee08d0(0x1dd)][_0xee08d0(0x2f1)]);this[_0xee08d0(0x3d4)](_0xaea6b6);},'onSendChangeset':_0x3a43b7=>{const _0x20d5df=_0x4aaf92;_0x3a43b7['sid']||(_0x3a43b7[_0x20d5df(0x9f)]=this[_0x20d5df(0x468)],_0x3a43b7[_0x20d5df(0xdf)]=++this[_0x20d5df(0xb0)]);const _0xc7d77c={'eventID':_['CollaborationEvent'][_0x20d5df(0x312)],'data':{'unitID':_0x3a43b7[_0x20d5df(0x331)],'unitType':this[_0x20d5df(0x405)],'changeset':_0x3a43b7,'memberID':this['session'][_0x20d5df(0x346)]()}};this[_0x20d5df(0x86)][_0x20d5df(0x3d6)](_0xc7d77c,this[_0x20d5df(0x331)]);},'onMissingChangesets':({from:_0x406574,to:_0x206a7b})=>{const _0x395872=_0x4aaf92;this['_logService']['debug'](_0x395872(0xcc),_0x395872(0x182)+_0x406574+_0x395872(0xff)+_0x206a7b);const _0x36482d={'eventID':_[_0x395872(0x49e)][_0x395872(0x2f3)],'data':{'unitID':_0xe60def,'unitType':this[_0x395872(0x405)],'from':_0x406574,'to':_0x206a7b}};this['session'][_0x395872(0x3d6)](_0x36482d,this[_0x395872(0x331)]);}};}async['_createInitialStateImpl'](_0x399876){const _0x1bbd0a=_0x4d97e8;var _0x556f28,_0x30868c;const _0x25b472=await this['_localCacheService'][_0x1bbd0a(0x35b)](this['unitID']),_0x1437ca=(_0x556f28=_0x25b472==null?void 0x0:_0x25b472[_0x1bbd0a(0x20f)])!=null?_0x556f28:[],_0x2347d7=(_0x30868c=_0x25b472==null?void 0x0:_0x25b472['awaitingChangeset'])!=null?_0x30868c:null,_0x15b1be=!!(_0x2347d7!=null&&_0x2347d7['sid'])&&!!(_0x2347d7!=null&&_0x2347d7[_0x1bbd0a(0xdf)]);this[_0x1bbd0a(0x468)]=_0x15b1be?_0x2347d7[_0x1bbd0a(0x9f)]:Os(),this[_0x1bbd0a(0xb0)]=_0x15b1be?_0x2347d7['reqId']:0x0;const _0x30f733=this[_0x1bbd0a(0x331)];try{this[_0x1bbd0a(0x325)](_0x2347d7,_0x1437ca);}catch(_0x393061){this[_0x1bbd0a(0x188)]['error'](_0x393061);}const _0x572b4c=this[_0x1bbd0a(0x3bc)]();if(_0x399876){const _0x474ae3=Ut(this[_0x1bbd0a(0x2cd)],_0x30f733,this[_0x1bbd0a(0x405)],_0x2347d7,_0x1437ca,_0x572b4c);return _0x474ae3 instanceof k?_0x474ae3[_0x1bbd0a(0x36c)]():(_0x474ae3 instanceof B||_0x474ae3 instanceof W)&&_0x474ae3[_0x1bbd0a(0x3d1)](),_0x474ae3;}return this[_0x1bbd0a(0x2cd)][_0x1bbd0a(0x309)](G,_0x30f733,this['_type'],_0x2347d7,_0x1437ca,_0x572b4c);}[_0x4d97e8(0x325)](_0x4a8f23,_0x575e9c){const _0x58a839=_0x4d97e8;var _0x1173e6,_0x1cfd0e;const _0x5d6195=this[_0x58a839(0x3a2)][_0x58a839(0x36d)][_0x58a839(0x1d9)](this['_compressMutationService'][_0x58a839(0x36d)][_0x58a839(0x3a1)]()['COMPRESS_MUTATION_APPLY']);(_0x1173e6=_0x5d6195((_0x4a8f23==null?void 0x0:_0x4a8f23[_0x58a839(0x20f)])||[],null))==null||_0x1173e6['forEach'](_0x5d2982=>this['_commandService'][_0x58a839(0x1b5)](_0x5d2982['id'],_0x5d2982[_0x58a839(0x141)])),(_0x1cfd0e=_0x5d6195(_0x575e9c||[],null))==null||_0x1cfd0e[_0x58a839(0x373)](_0x8b51ef=>this['_commandService']['executeCommand'](_0x8b51ef['id'],_0x8b51ef[_0x58a839(0x141)]));}},exports[_0x4d97e8(0x17a)]=ze([p(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),p(0x4,a[_0x4d97e8(0x13d)](exports['LocalCacheService'])),p(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x41d)])),p(0x6,a['Inject'](a[_0x4d97e8(0x10a)])),p(0x7,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),p(0x8,a[_0x4d97e8(0xeb)]),p(0x9,a[_0x4d97e8(0x433)]),p(0xa,A[_0x4d97e8(0x318)]),p(0xb,a[_0x4d97e8(0x294)]),p(0xc,a[_0x4d97e8(0x444)](Re))],exports[_0x4d97e8(0x17a)]),exports[_0x4d97e8(0x21b)]=class extends exports[_0x4d97e8(0x17a)]{constructor(_0x542f16,_0x47f2f8,_0x248f98,_0x3450ce,_0x401d49,_0xc2ed07,_0x2ed6f1,_0x576ecf,_0x2f9a71,_0x9e96b3,_0x17f1cc,_0xca9b7d,_0x78d7f0,_0x577d9,_0x45e47c,_0x41d34b,_0x537bd4){const _0xddcaa9=_0x4d97e8;super(_0x542f16,_0x248f98,_0x47f2f8,_0x3450ce,_0x401d49,_0xc2ed07,_0x2ed6f1,_0x576ecf,_0x78d7f0,_0x577d9,_0x45e47c,_0x41d34b,_0x537bd4),this[_0xddcaa9(0x331)]=_0x542f16,this[_0xddcaa9(0x366)]=_0x47f2f8,this[_0xddcaa9(0x2ce)]=_0x2f9a71,this[_0xddcaa9(0x115)]=_0x9e96b3,this['_docTransformSelectionsService']=_0x17f1cc,this[_0xddcaa9(0xbe)]=_0xca9b7d;}[_0x4d97e8(0x3bc)](){const _0x2cc561=_0x4d97e8,_0x1f290b=super[_0x2cc561(0x3bc)]();return _0x1f290b[_0x2cc561(0x3d0)]=_0x3dbbc6=>this[_0x2cc561(0x115)][_0x2cc561(0x3f1)](_0x3dbbc6),_0x1f290b[_0x2cc561(0x292)]=_0x2185bf=>this[_0x2cc561(0x2b7)][_0x2cc561(0x117)](_0x2185bf),_0x1f290b['onSyncEditingCollabCursor']=_0x3958f1=>this['_docSyncEditingCollabCursorService'][_0x2cc561(0x2f8)](_0x3958f1),_0x1f290b[_0x2cc561(0x1fa)]=_0x431e19=>this[_0x2cc561(0x115)]['transformRemoteChangeset'](_0x431e19),_0x1f290b;}async['_init'](){const _0x3ce174=_0x4d97e8,_0x367396=await super[_0x3ce174(0x27e)]();return this['_docStateChangeManagerService'][_0x3ce174(0x293)][_0x3ce174(0x488)](v[_0x3ce174(0x439)](this[_0x3ce174(0x498)]))[_0x3ce174(0x1c4)](_0x4f1769=>{const _0xb2e695=_0x3ce174;if(_0x4f1769==null)return;const {unitId:_0x3e6234,redoState:_0x39d1a6,commandId:_0x49a5b1}=_0x4f1769;if(_0x3e6234!==this['unitID'])return;const _0x3a0f8e={'id':_0x49a5b1,'type':a[_0xb2e695(0x303)]['MUTATION'],'params':{'unitId':_0x3e6234,'actions':_0x39d1a6[_0xb2e695(0x189)],'textRanges':null}};this['_onLocalMutation'](_0x3a0f8e);}),_0x367396;}},exports[_0x4d97e8(0x21b)]=ze([p(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),p(0x4,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),p(0x5,a[_0x4d97e8(0x13d)](_['CompressMutationService'])),p(0x6,a[_0x4d97e8(0x13d)](a['LocaleService'])),p(0x7,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x49f)])),p(0x8,a['Inject'](N[_0x4d97e8(0x2a3)])),p(0x9,a[_0x4d97e8(0x13d)](fe)),p(0xa,a[_0x4d97e8(0x13d)](pe)),p(0xb,a['Inject'](qe)),p(0xc,a['ILogService']),p(0xd,a['ICommandService']),p(0xe,A[_0x4d97e8(0x318)]),p(0xf,a['IPermissionService']),p(0x10,a[_0x4d97e8(0x444)](Re))],exports['DocCollaborationEntity']),exports[_0x4d97e8(0x1eb)]=class extends exports[_0x4d97e8(0x17a)]{constructor(_0x5cef03,_0x120510,_0x44dd9a,_0x47583d,_0x5f5393,_0x170d74,_0x1a45da,_0x21733b,_0x595da5,_0x3fc8de,_0x28a720,_0x47512b,_0x532eb9,_0x11a108){const _0x7a5429=_0x4d97e8;super(_0x5cef03,_0x44dd9a,_0x120510,_0x47583d,_0x5f5393,_0x170d74,_0x1a45da,_0x21733b,_0x3fc8de,_0x28a720,_0x47512b,_0x532eb9,_0x11a108),this[_0x7a5429(0x331)]=_0x5cef03,this['type']=_0x120510,this[_0x7a5429(0x305)]=_0x595da5;}['_createHandler'](){const _0x48cf0e=_0x4d97e8,_0x451142=super[_0x48cf0e(0x3bc)]();return _0x451142[_0x48cf0e(0x292)]=_0xddf008=>this['_sheetTransformSelectionsService'][_0x48cf0e(0x117)](_0xddf008),_0x451142;}async[_0x4d97e8(0x27e)](){const _0x39f795=_0x4d97e8,_0x132a77=await super[_0x39f795(0x27e)]();return this[_0x39f795(0x1e2)](this[_0x39f795(0x1c7)][_0x39f795(0x106)]((_0x38654b,_0x56541a)=>{const _0x4634aa=_0x39f795;if(_0x38654b[_0x4634aa(0x366)]!==a[_0x4634aa(0x303)][_0x4634aa(0x363)]||_0x56541a!=null&&_0x56541a['fromCollab']||_0x56541a!=null&&_0x56541a[_0x4634aa(0x401)])return;const _0x29cf4b=_0x38654b['params'];if((_0x29cf4b==null?void 0x0:_0x29cf4b[_0x4634aa(0x3f2)])!==this[_0x4634aa(0x331)])return;const _0x3b01f8=_0x38654b,_0x49409b=this[_0x4634aa(0x3a2)][_0x4634aa(0x36d)]['fetchThroughInterceptors'](this[_0x4634aa(0x3a2)][_0x4634aa(0x36d)][_0x4634aa(0x3a1)]()[_0x4634aa(0x211)])([_0x3b01f8],null)||[_0x3b01f8];this[_0x4634aa(0x482)](_0x49409b[0x0]);})),_0x132a77;}},exports[_0x4d97e8(0x1eb)]=ze([p(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),p(0x4,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x18f)])),p(0x5,a[_0x4d97e8(0x13d)](_[_0x4d97e8(0x41d)])),p(0x6,a[_0x4d97e8(0x13d)](a['LocaleService'])),p(0x7,a['Inject'](_['RevisionService'])),p(0x8,a[_0x4d97e8(0x13d)](Ie)),p(0x9,a['ILogService']),p(0xa,a[_0x4d97e8(0x433)]),p(0xb,A[_0x4d97e8(0x318)]),p(0xc,a['IPermissionService']),p(0xd,a['Optional'](Re))],exports['SheetCollaborationEntity']);function _0x4a0f(_0x17d491,_0xf2c52e){const _0x253085=_0x2530();return _0x4a0f=function(_0x4a0f58,_0xc6a14a){_0x4a0f58=_0x4a0f58-0x83;let _0x480f1c=_0x253085[_0x4a0f58];return _0x480f1c;},_0x4a0f(_0x17d491,_0xf2c52e);}var qs=Object['defineProperty'],zs=Object[_0x4d97e8(0x100)],Js=(_0x4d6c0c,_0x190085,_0x1e73ba,_0x3d1d76)=>{const _0x2bc476=_0x4d97e8;for(var _0x5f352d=_0x3d1d76>0x1?void 0x0:_0x3d1d76?zs(_0x190085,_0x1e73ba):_0x190085,_0xf4c745=_0x4d6c0c[_0x2bc476(0x424)]-0x1,_0x42933e;_0xf4c745>=0x0;_0xf4c745--)(_0x42933e=_0x4d6c0c[_0xf4c745])&&(_0x5f352d=(_0x3d1d76?_0x42933e(_0x190085,_0x1e73ba,_0x5f352d):_0x42933e(_0x5f352d))||_0x5f352d);return _0x3d1d76&&_0x5f352d&&qs(_0x190085,_0x1e73ba,_0x5f352d),_0x5f352d;},Ne=(_0x49c75e,_0x28c9b6)=>(_0x1b3912,_0x327515)=>_0x28c9b6(_0x1b3912,_0x327515,_0x49c75e);exports[_0x4d97e8(0x458)]=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x294e21,_0xe8dd41,_0x4e0894){const _0x19bedb=_0x4d97e8;super(),u(this,_0x19bedb(0x42a),new Map()),u(this,'_entityInit$',new v[(_0x19bedb(0xba))]()),(this['_injector']=_0x294e21,this[_0x19bedb(0x328)]=_0xe8dd41,this[_0x19bedb(0x85)]=_0x4e0894,this['_init']());}[_0x4d97e8(0x337)](){const _0x3bfa42=_0x4d97e8;super[_0x3bfa42(0x337)](),this[_0x3bfa42(0x42a)][_0x3bfa42(0x373)](_0x26ef96=>_0x26ef96[_0x3bfa42(0x337)]()),this[_0x3bfa42(0x42a)][_0x3bfa42(0x456)]();}['getCollabEntity'](_0x470eed){const _0x248997=_0x4d97e8;var _0xb11c14;return(_0xb11c14=this[_0x248997(0x42a)][_0x248997(0x491)](_0x470eed))!=null?_0xb11c14:null;}[_0x4d97e8(0x26a)](_0x4b9ef5){const _0x38429f=_0x4d97e8,_0x372371=this[_0x38429f(0x43f)](_0x4b9ef5);return _0x372371?v['of'](_0x372371):this[_0x38429f(0x3ae)][_0x38429f(0x488)](E[_0x38429f(0x355)](_0x10edd9=>_0x10edd9[_0x38429f(0x331)]===_0x4b9ef5));}[_0x4d97e8(0x27e)](){const _0x4ae706=_0x4d97e8;this[_0x4ae706(0x85)]['getTypeOfUnitAdded$'](a[_0x4ae706(0x262)][_0x4ae706(0x15c)])[_0x4ae706(0x488)](v[_0x4ae706(0x439)](this[_0x4ae706(0x498)]),E[_0x4ae706(0x457)](0x10))[_0x4ae706(0x1c4)](async _0x6f0c00=>{const _0x64ab0b=_0x4ae706,_0x151a0e=_0x6f0c00[_0x64ab0b(0x46c)](),_0x4944fa=await this[_0x64ab0b(0x2d9)](_0x151a0e,$[_0x64ab0b(0x15c)]);this[_0x64ab0b(0x42a)]['set'](_0x151a0e,_0x4944fa);}),this[_0x4ae706(0x85)][_0x4ae706(0x24b)](a[_0x4ae706(0x262)][_0x4ae706(0x15d)])[_0x4ae706(0x488)](v[_0x4ae706(0x439)](this[_0x4ae706(0x498)]),E[_0x4ae706(0x457)](0x10))[_0x4ae706(0x488)](E['filter'](_0x568217=>!_0x568217['getUnitId']()['startsWith']('__')))[_0x4ae706(0x1c4)](async _0x1b1387=>{const _0x591e36=_0x4ae706,_0x4881c8=_0x1b1387['getUnitId'](),_0x33c638=await this[_0x591e36(0x2d9)](_0x4881c8,$[_0x591e36(0x15d)]);this[_0x591e36(0x42a)][_0x591e36(0x24d)](_0x4881c8,_0x33c638);}),v[_0x4ae706(0x1c8)](this['_univerInstanceService'][_0x4ae706(0x89)](a[_0x4ae706(0x262)][_0x4ae706(0x15c)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x4ae706(0x262)][_0x4ae706(0x15d)]))[_0x4ae706(0x488)](v[_0x4ae706(0x439)](this['dispose$']))['subscribe'](_0x1e7776=>{const _0x31b40e=_0x4ae706,_0x5ae922=_0x1e7776[_0x31b40e(0x46c)](),_0x41832c=this[_0x31b40e(0x42a)]['get'](_0x5ae922);_0x41832c&&(_0x41832c[_0x31b40e(0x337)](),this[_0x31b40e(0x42a)]['delete'](_0x5ae922));});}async[_0x4d97e8(0x2d9)](_0x4bd38f,_0x1a5a30){const _0x428a4d=_0x4d97e8,_0x34fcda=await this[_0x428a4d(0x328)][_0x428a4d(0x1e1)](_0x4bd38f),_0x2b7a63=this['_injector'][_0x428a4d(0x309)](this[_0x428a4d(0x47b)](_0x1a5a30),_0x4bd38f,_0x1a5a30,_0x34fcda);return await _0x2b7a63[_0x428a4d(0x32b)](),this[_0x428a4d(0x3ae)]['next'](_0x2b7a63),_0x2b7a63;}[_0x4d97e8(0x47b)](_0x173552){const _0x12d9c3=_0x4d97e8;switch(_0x173552){case $[_0x12d9c3(0x15d)]:return exports[_0x12d9c3(0x21b)];case $['UNIVER_SHEET']:return exports[_0x12d9c3(0x1eb)];default:throw new Error(_0x12d9c3(0x123)+_0x173552);}}},exports[_0x4d97e8(0x458)]=Js([Ne(0x0,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Ne(0x1,a[_0x4d97e8(0x13d)](exports['CollaborationSessionService'])),Ne(0x2,a[_0x4d97e8(0x248)])],exports[_0x4d97e8(0x458)]);const ct=['purple300',_0x4d97e8(0x281),'verdancy600',_0x4d97e8(0x15f),_0x4d97e8(0x277),_0x4d97e8(0xed)];class Je extends a[_0x4d97e8(0x39c)]{constructor(){const _0x1ed9ac=_0x4d97e8;super(...arguments),u(this,_0x1ed9ac(0x42e),new Map()),u(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x20b53b){const _0x1ec11f=_0x4d97e8;if(this[_0x1ec11f(0x42e)][_0x1ec11f(0x477)](_0x20b53b))return this[_0x1ec11f(0x42e)]['get'](_0x20b53b);const _0x129946=ct[this[_0x1ec11f(0x147)]];return this[_0x1ec11f(0x147)]=(this[_0x1ec11f(0x147)]+0x1)%ct[_0x1ec11f(0x424)],this['_assignedColors'][_0x1ec11f(0x24d)](_0x20b53b,_0x129946),_0x129946;}}var Zs=Object['defineProperty'],Qs=Object['getOwnPropertyDescriptor'],ei=(_0x18d280,_0x1eb6e6,_0x4284d5,_0x209236)=>{const _0x482021=_0x4d97e8;for(var _0x540532=_0x209236>0x1?void 0x0:_0x209236?Qs(_0x1eb6e6,_0x4284d5):_0x1eb6e6,_0x10e996=_0x18d280[_0x482021(0x424)]-0x1,_0x322954;_0x10e996>=0x0;_0x10e996--)(_0x322954=_0x18d280[_0x10e996])&&(_0x540532=(_0x209236?_0x322954(_0x1eb6e6,_0x4284d5,_0x540532):_0x322954(_0x540532))||_0x540532);return _0x209236&&_0x540532&&Zs(_0x1eb6e6,_0x4284d5,_0x540532),_0x540532;},K=(_0x188067,_0x1660e9)=>(_0x178fbf,_0x3d457c)=>_0x1660e9(_0x178fbf,_0x3d457c,_0x188067);const ti=0x12c,si=0x64;let ke=class extends a['RxDisposable']{constructor(_0x40dbc4,_0x4e1f1a,_0x18d0e5,_0x3f55bc,_0x51bfe4,_0x4bf41c,_0x2bfc0f,_0x5e80f6,_0x4be608){const _0x185217=_0x4d97e8;super(),u(this,_0x185217(0x44d),!0x1),u(this,'_init',!0x1),u(this,_0x185217(0x4aa),new v[(_0x185217(0x114))](new Map())),u(this,'cursorInfo$',this[_0x185217(0x4aa)][_0x185217(0x144)]()),u(this,_0x185217(0x494),new v['BehaviorSubject']([])),u(this,_0x185217(0x227),this[_0x185217(0x494)][_0x185217(0x488)](v['debounceTime'](ti))),u(this,_0x185217(0x256),a[_0x185217(0x395)](_0x336fc1=>{const _0x225a69=_0x185217,_0x37b706={'eventID':_[_0x225a69(0x49e)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x225a69(0x331)],'memberID':this[_0x225a69(0x31e)][_0x225a69(0x346)](),'selection':yt(_0x336fc1)}};this['_session']['send'](_0x37b706,this[_0x225a69(0x331)]);},si)),(this[_0x185217(0x331)]=_0x40dbc4,this[_0x185217(0x31e)]=_0x4e1f1a,this[_0x185217(0x2cd)]=_0x18d0e5,this[_0x185217(0x1cd)]=_0x3f55bc,this[_0x185217(0x3a7)]=_0x51bfe4,this[_0x185217(0xa4)]=_0x4bf41c,this['_transformService']=_0x2bfc0f,this[_0x185217(0x85)]=_0x5e80f6,this[_0x185217(0x1c7)]=_0x4be608);}get[_0x4d97e8(0x473)](){const _0x5c7581=_0x4d97e8;return this['_cursorInfo$'][_0x5c7581(0x2af)]();}get['roomMembers'](){const _0x385ba7=_0x4d97e8;return this['_roomMembers$'][_0x385ba7(0x2af)]();}['dispose'](){const _0x57a4d1=_0x4d97e8;super['dispose'](),this[_0x57a4d1(0x4aa)][_0x57a4d1(0x120)](new Map()),this[_0x57a4d1(0x4aa)][_0x57a4d1(0x370)](),this['_roomMembers$'][_0x57a4d1(0x120)]([]),this[_0x57a4d1(0x494)][_0x57a4d1(0x370)]();}[_0x4d97e8(0x32b)](){const _0x492dad=_0x4d97e8;this[_0x492dad(0x27e)]||(this[_0x492dad(0x27e)]=!0x0,this['_session']['sessionStatus$'][_0x492dad(0x488)](v[_0x492dad(0x439)](this[_0x492dad(0x498)]))[_0x492dad(0x1c4)](_0x349d4d=>{const _0x16e276=_0x492dad;_0x349d4d===H[_0x16e276(0x2ee)]?this[_0x16e276(0x3ea)]():this[_0x16e276(0x191)]();}),this[_0x492dad(0x31e)]['event$']['pipe'](v['takeUntil'](this[_0x492dad(0x498)]))['subscribe'](_0x5ec018=>{const _0x4b0583=_0x492dad,_0x5c6113=_0x5ec018[_0x4b0583(0x445)];_0x5c6113===_[_0x4b0583(0x49e)][_0x4b0583(0x415)]&&this[_0x4b0583(0x15b)](_0x5ec018),_0x5c6113===_['CollaborationEvent'][_0x4b0583(0xf4)]&&this[_0x4b0583(0x365)](_0x5ec018);}),this[_0x492dad(0x1e2)](this[_0x492dad(0x1c7)]['onCommandExecuted'](_0x55cb69=>{const _0x1b5ac7=_0x492dad,_0x458695=_0x55cb69['params'];_0x458695!=null&&this['_online']&&_0x55cb69['id']===se[_0x1b5ac7(0x1f3)]['id']&&_0x458695[_0x1b5ac7(0x3f2)]===this['unitID']&&_0x458695['isEditing']===!0x1&&this['_updateLocalCursor'](_0x458695[_0x1b5ac7(0x16e)]);})),this['_syncEditingCollabCursorService'][_0x492dad(0xbc)][_0x492dad(0x488)](v['takeUntil'](this[_0x492dad(0x498)]))[_0x492dad(0x1c4)](_0x5cdce3=>{const _0x4e7ab7=_0x492dad;if((_0x5cdce3==null?void 0x0:_0x5cdce3[_0x4e7ab7(0x331)])!==this[_0x4e7ab7(0x331)])return;const _0x456bf3={'eventID':_[_0x4e7ab7(0x49e)][_0x4e7ab7(0x415)],'data':_0x5cdce3};this[_0x4e7ab7(0x15b)](_0x456bf3);}),this['disposeWithMe'](this[_0x492dad(0x1c7)][_0x492dad(0x106)](_0x249c99=>{const _0x38d3c3=_0x492dad;if(_0x249c99[_0x38d3c3(0x141)]==null)return;const _0x46cf97=_0x249c99[_0x38d3c3(0x141)];if(_0x249c99['id']!==se[_0x38d3c3(0x454)]['id']||_0x46cf97[_0x38d3c3(0x3f2)]!==this['unitID'])return;const _0x18f64d={'id':_0x38d3c3(0x242),'params':_0x46cf97},_0x278bf9=this[_0x38d3c3(0x473)];for(const [_0x12409c,_0x207b26]of _0x278bf9){const _0x38330f={'id':_0x38d3c3(0x242),'params':{'unitId':this[_0x38d3c3(0x331)],'actions':null,'textRanges':_0x207b26['ranges']}},_0x54d8e4=this[_0x38d3c3(0x165)][_0x38d3c3(0x84)](_0x18f64d,_0x38330f,!0x1);if(_[_0x38d3c3(0x20c)](_0x54d8e4))throw _0x54d8e4[_0x38d3c3(0x497)];_0x278bf9[_0x38d3c3(0x24d)](_0x12409c,{..._0x207b26,'ranges':_0x54d8e4[_0x38d3c3(0x1a9)][_0x38d3c3(0x141)][_0x38d3c3(0x339)]});}queueMicrotask(()=>{const _0x12a766=_0x38d3c3;this[_0x12a766(0x4aa)]['next'](_0x278bf9);});})));}[_0x4d97e8(0x15b)](_0x563ece){const _0x607890=_0x4d97e8;var _0x26c856,_0x389350;const {memberID:_0xbac1e,selection:_0x133e2b}=_0x563ece[_0x607890(0x201)],_0xa5cf0f=Hs(_0x133e2b),_0x1a5153=(_0x389350=(_0x26c856=this['_memberService'][_0x607890(0x14a)](this[_0x607890(0x331)],_0xbac1e))==null?void 0x0:_0x26c856[_0x607890(0x10f)])!=null?_0x389350:_0x607890(0x3aa),_0x5ea2a2={'color':this[_0x607890(0x1cd)][_0x607890(0x1c2)](_0xbac1e),'name':_0x1a5153,'ranges':_0xa5cf0f},_0x33ac57=this[_0x607890(0x473)];_0x33ac57['set'](_0xbac1e,_0x5ea2a2),this[_0x607890(0x4aa)]['next'](_0x33ac57);}['_onCursorDelete'](_0x33cf22){const _0x33d849=_0x4d97e8,{memberID:_0x428b97}=_0x33cf22[_0x33d849(0x201)],_0x142dcc=this[_0x33d849(0x473)];_0x142dcc[_0x33d849(0x1b2)](_0x428b97),this[_0x33d849(0x4aa)][_0x33d849(0x120)](_0x142dcc);}[_0x4d97e8(0x3ea)](){const _0x568fdb=_0x4d97e8;var _0x41d6d8;if(this[_0x568fdb(0x44d)]=!0x0,((_0x41d6d8=this[_0x568fdb(0x85)]['getFocusedUnit']())==null?void 0x0:_0x41d6d8[_0x568fdb(0x46c)]())!==this[_0x568fdb(0x331)])return;const _0x41f087=this[_0x568fdb(0x2cd)]['get'](se[_0x568fdb(0x428)])['getDocRanges']();Array['isArray'](_0x41f087)&&_0x41f087['length']>0x0&&this[_0x568fdb(0x256)](_0x41f087);}[_0x4d97e8(0x191)](){const _0x5c64bb=_0x4d97e8;this[_0x5c64bb(0x44d)]=!0x1;}};ke=ei([K(0x2,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),K(0x3,a[_0x4d97e8(0x13d)](Je)),K(0x4,a[_0x4d97e8(0x13d)](q)),K(0x5,a[_0x4d97e8(0x13d)](qe)),K(0x6,_['ITransformService']),K(0x7,a[_0x4d97e8(0x248)]),K(0x8,a[_0x4d97e8(0x433)])],ke);var ii=Object[_0x4d97e8(0x8e)],ni=Object[_0x4d97e8(0x100)],ri=(_0x1f7464,_0x47673b,_0x2ca54e,_0x54d5a1)=>{const _0x34e69b=_0x4d97e8;for(var _0x622867=_0x54d5a1>0x1?void 0x0:_0x54d5a1?ni(_0x47673b,_0x2ca54e):_0x47673b,_0x378a50=_0x1f7464[_0x34e69b(0x424)]-0x1,_0x5a53e8;_0x378a50>=0x0;_0x378a50--)(_0x5a53e8=_0x1f7464[_0x378a50])&&(_0x622867=(_0x54d5a1?_0x5a53e8(_0x47673b,_0x2ca54e,_0x622867):_0x5a53e8(_0x622867))||_0x622867);return _0x54d5a1&&_0x622867&&ii(_0x47673b,_0x2ca54e,_0x622867),_0x622867;},Q=(_0x47098c,_0xe9b18d)=>(_0x459509,_0x57f19c)=>_0xe9b18d(_0x459509,_0x57f19c,_0x47098c);const oi=0x12c,ai=0x64,ci=()=>{let _0xecf1be=[],_0x497d63=!0x1;return _0x3b5675=>{const _0x348874=_0x4a0f;_0xecf1be[_0x348874(0x29b)](_0x3b5675),_0x497d63||(_0x497d63=!0x0,setTimeout(()=>{const _0x22a68c=_0x348874;_0xecf1be[_0x22a68c(0x373)](_0x284e20=>_0x284e20()),_0xecf1be=[],_0x497d63=!0x1;}));};};let Be=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x29ccfc,_0x2d40ce,_0x354585,_0x47c188,_0x3f2652,_0x423230,_0x48e54b,_0x469be3){const _0x292881=_0x4d97e8;super(),u(this,'_online',!0x1),u(this,_0x292881(0x27e),!0x1),u(this,_0x292881(0x4aa),new v['BehaviorSubject'](new Map())),u(this,'cursorInfo$',this['_cursorInfo$'][_0x292881(0x144)]()),u(this,_0x292881(0x494),new v[(_0x292881(0x114))]([])),u(this,'roomMembers$',this[_0x292881(0x494)][_0x292881(0x488)](v[_0x292881(0x231)](oi))),u(this,_0x292881(0x256),a['debounce']((_0x39218d,_0x161f74)=>{const _0x25ebbf=_0x292881,_0x58b4c3={'eventID':_[_0x25ebbf(0x49e)][_0x25ebbf(0x415)],'data':{'unitID':this['unitID'],'memberID':this[_0x25ebbf(0x31e)][_0x25ebbf(0x346)](),'selection':et[_0x25ebbf(0x14c)](_0x39218d,_0x161f74['range'])}};this[_0x25ebbf(0x31e)][_0x25ebbf(0x3d6)](_0x58b4c3,this[_0x25ebbf(0x331)]);},ai)),(this[_0x292881(0x331)]=_0x29ccfc,this['_session']=_0x2d40ce,this[_0x292881(0x2cd)]=_0x354585,this[_0x292881(0x1cd)]=_0x47c188,this['_memberService']=_0x3f2652,this[_0x292881(0x85)]=_0x423230,this['_commandService']=_0x48e54b,this[_0x292881(0x9b)]=_0x469be3);}get[_0x4d97e8(0x473)](){const _0x1b2a72=_0x4d97e8;return this['_cursorInfo$'][_0x1b2a72(0x2af)]();}get[_0x4d97e8(0x2be)](){const _0x4e4d47=_0x4d97e8;return this[_0x4e4d47(0x494)]['getValue']();}['dispose'](){const _0x197594=_0x4d97e8;super[_0x197594(0x337)](),this[_0x197594(0x4aa)][_0x197594(0x120)](new Map()),this[_0x197594(0x4aa)][_0x197594(0x370)](),this[_0x197594(0x494)][_0x197594(0x120)]([]),this[_0x197594(0x494)][_0x197594(0x370)]();}[_0x4d97e8(0x32b)](){const _0x4a56b8=_0x4d97e8;this[_0x4a56b8(0x27e)]||(this[_0x4a56b8(0x27e)]=!0x0,this[_0x4a56b8(0x31e)][_0x4a56b8(0x13f)]['pipe'](v[_0x4a56b8(0x439)](this['dispose$']))[_0x4a56b8(0x1c4)](_0x2dac28=>{const _0xe32ff9=_0x4a56b8;_0x2dac28===H[_0xe32ff9(0x2ee)]?this[_0xe32ff9(0x3ea)]():this[_0xe32ff9(0x191)]();}),this[_0x4a56b8(0x31e)][_0x4a56b8(0x3e4)][_0x4a56b8(0x488)](v[_0x4a56b8(0x439)](this[_0x4a56b8(0x498)]))[_0x4a56b8(0x1c4)](_0x29c71b=>{const _0x26d1db=_0x4a56b8,_0x28e05b=_0x29c71b[_0x26d1db(0x445)];_0x28e05b===_[_0x26d1db(0x49e)][_0x26d1db(0x415)]&&this['_onCursorUpdate'](_0x29c71b),_0x28e05b===_[_0x26d1db(0x49e)][_0x26d1db(0xf4)]&&this['_onCursorDelete'](_0x29c71b);}),this[_0x4a56b8(0x2c3)](),this[_0x4a56b8(0x1e2)](this[_0x4a56b8(0x1c7)]['onCommandExecuted'](_0x5457b3=>{const _0x1f8b3b=_0x4a56b8;if(this[_0x1f8b3b(0x44d)]&&_0x5457b3['id']===C[_0x1f8b3b(0x420)]['id']&&_0x5457b3[_0x1f8b3b(0x141)][_0x1f8b3b(0x3f2)]===this['unitID']){const _0x1108d2=_0x5457b3[_0x1f8b3b(0x141)];this[_0x1f8b3b(0x256)](_0x1108d2['subUnitId'],_0x1108d2['selections'][0x0]);}})));}[_0x4d97e8(0x15b)](_0x50cc1f){const _0x20242e=_0x4d97e8;var _0xd6f2c,_0x58054c;const {memberID:_0x2e0914,selection:_0x197a03}=_0x50cc1f[_0x20242e(0x201)],{sheetName:_0x15f01d,range:_0x704cc5}=et[_0x20242e(0x2a4)](_0x197a03),_0x19779d={'name':(_0x58054c=(_0xd6f2c=this[_0x20242e(0x3a7)]['getMember'](this[_0x20242e(0x331)],_0x2e0914))==null?void 0x0:_0xd6f2c[_0x20242e(0x10f)])!=null?_0x58054c:_0x20242e(0x3aa),'range':this['_getMergeRange'](_0x15f01d,_0x704cc5),'sheetID':_0x15f01d,'color':this['_colorAssignService'][_0x20242e(0x1c2)](_0x2e0914),'selection':_0x197a03},_0x407f03=this[_0x20242e(0x473)];_0x407f03[_0x20242e(0x24d)](_0x2e0914,_0x19779d),this['_cursorInfo$'][_0x20242e(0x120)](_0x407f03);}['_onCursorDelete'](_0x2943c9){const _0x33298b=_0x4d97e8,{memberID:_0x1733ce}=_0x2943c9['data'],_0x5ae80b=this['cursorInfo'];_0x5ae80b[_0x33298b(0x1b2)](_0x1733ce),this[_0x33298b(0x4aa)][_0x33298b(0x120)](_0x5ae80b);}[_0x4d97e8(0x1c5)](_0x95377f,_0x4f4226){const _0x54e17a=_0x4d97e8;var _0x3b86cc,_0x287e5a;const _0x1e0579=(_0x287e5a=(_0x3b86cc=this[_0x54e17a(0x85)][_0x54e17a(0x34d)](this['unitID']))==null?void 0x0:_0x3b86cc['getSheetBySheetId'](_0x95377f))==null?void 0x0:_0x287e5a[_0x54e17a(0x35d)]();return(_0x1e0579==null?void 0x0:_0x1e0579['find'](_0x1983f1=>a['Rectangle'][_0x54e17a(0x1c1)](_0x1983f1,_0x4f4226)))||_0x4f4226;}[_0x4d97e8(0x2c3)](){const _0x2c92ee=_0x4d97e8,_0x49a80f=new a[(_0x2c92ee(0x1bf))](),_0x4622be=ci(),_0x5cf569=()=>{const _0x4df510=_0x2c92ee;_0x49a80f['dispose']();const _0x58ecd3=(_0x5b0eb7,_0x3af1c3,_0x2be28e,_0x4b4825)=>{const _0x40fff0=_0x4a0f;let _0x542fca=[];switch(_0x5b0eb7['id']){case C['EffectRefRangId'][_0x40fff0(0x33a)]:{_0x542fca=C[_0x40fff0(0x241)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)]['DeleteRangeMoveUpCommandId']:{_0x542fca=C[_0x40fff0(0x392)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x1de)]:{_0x542fca=C[_0x40fff0(0x486)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x2fb)]:{_0x542fca=C[_0x40fff0(0x18c)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x18e)]:{_0x542fca=C[_0x40fff0(0x1ef)](_0x5b0eb7,_0x4b4825);break;}case C['EffectRefRangId'][_0x40fff0(0x175)]:{_0x542fca=C['handleInsertRow'](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x20b)]:{_0x542fca=C['handleMoveRange'](_0x5b0eb7,_0x4b4825);break;}case C['EffectRefRangId']['RemoveColCommandId']:{_0x542fca=C[_0x40fff0(0x2b2)](_0x5b0eb7,_0x4b4825);break;}case C[_0x40fff0(0x407)][_0x40fff0(0x1ca)]:{_0x542fca=C[_0x40fff0(0x159)](_0x5b0eb7,_0x4b4825);break;}}const _0x6df89c=C['runRefRangeMutations'](_0x542fca,_0x4b4825),_0x22f660=this[_0x40fff0(0x473)][_0x40fff0(0x491)](_0x3af1c3);if(_0x22f660&&_0x6df89c){const _0x77f595={..._0x22f660,'range':_0x6df89c};this[_0x40fff0(0x473)][_0x40fff0(0x24d)](_0x3af1c3,_0x77f595),_0x4622be(()=>{const _0x2ef62a=_0x40fff0,_0x7aff9a=this[_0x2ef62a(0x9b)][_0x2ef62a(0x39d)](_0x6df89c,_0x28c79e=>(_0x7aff9a['dispose'](),_0x58ecd3(_0x28c79e,_0x3af1c3,_0x2be28e,_0x6df89c)));_0x49a80f['add'](_0x7aff9a);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x4df510(0x373)]((_0x22642e,_0x439555)=>{const _0x330fb1=_0x4df510,{range:_0x27bf8f,sheetID:_0x5dd801}=_0x22642e,_0xfb597d=this['_refRangeService'][_0x330fb1(0x39d)](_0x27bf8f,_0x169ec7=>(_0xfb597d[_0x330fb1(0x337)](),_0x58ecd3(_0x169ec7,_0x439555,_0x5dd801,_0x27bf8f)));_0x49a80f[_0x330fb1(0x471)](_0xfb597d);});};this[_0x2c92ee(0x1e2)](a[_0x2c92ee(0x257)](this[_0x2c92ee(0x4aa)]['subscribe'](()=>{_0x5cf569();})));}[_0x4d97e8(0x3ea)](){const _0x36b5f9=_0x4d97e8;var _0x3a0a85,_0x711a38;if(this[_0x36b5f9(0x44d)]=!0x0,((_0x3a0a85=this[_0x36b5f9(0x85)]['getFocusedUnit']())==null?void 0x0:_0x3a0a85[_0x36b5f9(0x46c)]())!==this[_0x36b5f9(0x331)])return;const _0x503061=(_0x711a38=this['_injector'][_0x36b5f9(0x491)](C['SheetsSelectionsService'])[_0x36b5f9(0x12e)]())==null?void 0x0:_0x711a38[0x0],_0xfab99d=this['_univerInstanceService'][_0x36b5f9(0xdc)](a[_0x36b5f9(0x262)][_0x36b5f9(0x15c)])[_0x36b5f9(0x1fe)]();_0x503061&&_0xfab99d&&this[_0x36b5f9(0x256)](_0xfab99d['getSheetId'](),_0x503061);}['_toggleOffline'](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Q(0x3,a[_0x4d97e8(0x13d)](Je)),Q(0x4,a[_0x4d97e8(0x13d)](q)),Q(0x5,a[_0x4d97e8(0x248)]),Q(0x6,a[_0x4d97e8(0x433)]),Q(0x7,a['Inject'](C[_0x4d97e8(0x47e)]))],Be);var li=Object[_0x4d97e8(0x8e)],hi=Object['getOwnPropertyDescriptor'],_i=(_0x498269,_0x41516d,_0x273525,_0x16f6fb)=>{for(var _0xf7c000=_0x16f6fb>0x1?void 0x0:_0x16f6fb?hi(_0x41516d,_0x273525):_0x41516d,_0x1aec5f=_0x498269['length']-0x1,_0x4d0085;_0x1aec5f>=0x0;_0x1aec5f--)(_0x4d0085=_0x498269[_0x1aec5f])&&(_0xf7c000=(_0x16f6fb?_0x4d0085(_0x41516d,_0x273525,_0xf7c000):_0x4d0085(_0xf7c000))||_0xf7c000);return _0x16f6fb&&_0xf7c000&&li(_0x41516d,_0x273525,_0xf7c000),_0xf7c000;},Me=(_0x161a2d,_0x15a261)=>(_0x307570,_0x31d6e5)=>_0x15a261(_0x307570,_0x31d6e5,_0x161a2d);let ne=class extends a['RxDisposable']{constructor(_0x2ba799,_0x45ff76,_0x49adba){const _0x311ead=_0x4d97e8;super(),u(this,'_entities',new Map()),u(this,_0x311ead(0x3ae),new v[(_0x311ead(0xba))]()),(this['_univerInstanceService']=_0x2ba799,this[_0x311ead(0x2cd)]=_0x45ff76,this[_0x311ead(0x328)]=_0x49adba,this['_init']());}[_0x4d97e8(0x337)](){const _0x378739=_0x4d97e8;super[_0x378739(0x337)](),this[_0x378739(0x3ae)][_0x378739(0x370)](),this[_0x378739(0x42a)][_0x378739(0x373)](_0x3df6c1=>_0x3df6c1[_0x378739(0x337)]());}[_0x4d97e8(0x2bd)](_0x5e8c32){const _0x57ba69=_0x4d97e8;return this[_0x57ba69(0x42a)][_0x57ba69(0x477)](_0x5e8c32)?this[_0x57ba69(0x42a)][_0x57ba69(0x491)](_0x5e8c32)[_0x57ba69(0x3d7)]:this[_0x57ba69(0x3ae)]['pipe'](v[_0x57ba69(0x355)](_0x57e1e2=>_0x57e1e2[_0x57ba69(0x331)]===_0x5e8c32),v[_0x57ba69(0x8a)](_0x2a4a92=>_0x2a4a92['cursorInfo$']));}[_0x4d97e8(0x27e)](){const _0x2a5fb2=_0x4d97e8;this[_0x2a5fb2(0x85)]['getTypeOfUnitAdded$'](a[_0x2a5fb2(0x262)][_0x2a5fb2(0x15c)])[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x439)](this[_0x2a5fb2(0x498)]))[_0x2a5fb2(0x1c4)](async _0x410cbb=>{const _0x4dad14=_0x2a5fb2,_0x484fb8=_0x410cbb[_0x4dad14(0x46c)](),_0x1cac1d=await this[_0x4dad14(0x3f4)](_0x484fb8);this[_0x4dad14(0x3ae)]['next'](_0x1cac1d),this[_0x4dad14(0x42a)][_0x4dad14(0x24d)](_0x484fb8,_0x1cac1d);}),this['_univerInstanceService'][_0x2a5fb2(0x24b)](a[_0x2a5fb2(0x262)]['UNIVER_DOC'])[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x439)](this[_0x2a5fb2(0x498)]))[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x355)](_0x1e2429=>!_0x1e2429['getUnitId']()[_0x2a5fb2(0x367)]('__')))[_0x2a5fb2(0x1c4)](async _0x16b9eb=>{const _0x16acea=_0x2a5fb2,_0x3d2982=_0x16b9eb[_0x16acea(0x46c)](),_0x386c4f=await this['_startDocCollabCursor'](_0x3d2982);this[_0x16acea(0x3ae)][_0x16acea(0x120)](_0x386c4f),this[_0x16acea(0x42a)][_0x16acea(0x24d)](_0x3d2982,_0x386c4f);}),v[_0x2a5fb2(0x1c8)](this[_0x2a5fb2(0x85)][_0x2a5fb2(0x89)](a[_0x2a5fb2(0x262)][_0x2a5fb2(0x15d)]),this[_0x2a5fb2(0x85)][_0x2a5fb2(0x89)](a[_0x2a5fb2(0x262)][_0x2a5fb2(0x15c)]))[_0x2a5fb2(0x488)](v[_0x2a5fb2(0x439)](this[_0x2a5fb2(0x498)]))[_0x2a5fb2(0x1c4)](_0x19581d=>{const _0x58f81f=_0x2a5fb2,_0x4be27c=_0x19581d[_0x58f81f(0x46c)](),_0x5761c8=this[_0x58f81f(0x42a)][_0x58f81f(0x491)](_0x4be27c);_0x5761c8&&(_0x5761c8[_0x58f81f(0x337)](),this['_entities']['delete'](_0x4be27c));});}async[_0x4d97e8(0x3f4)](_0x53606e){const _0x580f88=_0x4d97e8,_0x411d2e=await this['_collabSessionService'][_0x580f88(0x1e1)](_0x53606e),_0x5d0e80=this[_0x580f88(0x2cd)][_0x580f88(0x309)](Be,_0x53606e,_0x411d2e);return _0x5d0e80[_0x580f88(0x32b)](),_0x5d0e80;}async[_0x4d97e8(0x3a9)](_0x7b45fb){const _0x5e4671=_0x4d97e8,_0x1cabce=await this[_0x5e4671(0x328)][_0x5e4671(0x1e1)](_0x7b45fb),_0x238634=this['_injector']['createInstance'](ke,_0x7b45fb,_0x1cabce);return _0x238634[_0x5e4671(0x32b)](),_0x238634;}};ne=_i([Me(0x0,a[_0x4d97e8(0x248)]),Me(0x1,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),Me(0x2,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x270)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x210ec9,_0x306d74){const _0x212b19=_0x4d97e8;let {radius:_0x10409b,width:_0x1f1ae7,height:_0x772550}=_0x306d74;_0x10409b=_0x10409b!=null?_0x10409b:0x0,_0x1f1ae7=_0x1f1ae7!=null?_0x1f1ae7:0x1e,_0x772550=_0x772550!=null?_0x772550:0x1e;let _0x566a3e=0x0,_0xa7b56c=0x0,_0x6ab4f8=0x0;_0x566a3e=_0xa7b56c=_0x6ab4f8=Math[_0x212b19(0x18b)](_0x10409b,_0x1f1ae7/0x2,_0x772550/0x2),_0x210ec9[_0x212b19(0x136)](),_0x210ec9[_0x212b19(0x3fa)](_0x566a3e,0x0),_0x210ec9[_0x212b19(0x3b8)](_0x1f1ae7-_0xa7b56c,0x0),_0x210ec9[_0x212b19(0x24f)](_0x1f1ae7-_0xa7b56c,_0xa7b56c,_0xa7b56c,Math['PI']*0x3/0x2,0x0,!0x1),_0x210ec9['lineTo'](_0x1f1ae7,_0x772550-_0x6ab4f8),_0x210ec9[_0x212b19(0x24f)](_0x1f1ae7-_0x6ab4f8,_0x772550-_0x6ab4f8,_0x6ab4f8,0x0,Math['PI']/0x2,!0x1),_0x210ec9[_0x212b19(0x3b8)](0x0,_0x772550),_0x210ec9[_0x212b19(0x3b8)](0x0,_0x566a3e),_0x210ec9[_0x212b19(0x24f)](_0x566a3e,_0x566a3e,_0x566a3e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x210ec9[_0x212b19(0x333)](),_0x306d74[_0x212b19(0x45b)]&&(_0x210ec9[_0x212b19(0x23e)](),_0x210ec9[_0x212b19(0x1ee)]=_0x306d74[_0x212b19(0x45b)],_0x306d74[_0x212b19(0x22e)]===_0x212b19(0x2e2)?_0x210ec9['fill'](_0x212b19(0x2e2)):_0x210ec9[_0x212b19(0x45b)](),_0x210ec9[_0x212b19(0x3fd)]());}class Oe extends D[_0x4d97e8(0xa2)]{constructor(_0x2a0557,_0x40ec8d){const _0x5d51c9=_0x4d97e8;super(_0x2a0557,_0x40ec8d),u(this,'color'),u(this,_0x5d51c9(0x149)),(this[_0x5d51c9(0x441)]=_0x40ec8d==null?void 0x0:_0x40ec8d['color'],this['text']=_0x40ec8d==null?void 0x0:_0x40ec8d['text']);}static[_0x4d97e8(0x17d)](_0x2b6ad9,_0x56f2e5){const _0x46791f=_0x4d97e8,{text:_0x50434e,color:_0x566b51}=_0x56f2e5;_0x2b6ad9['save'](),_0x2b6ad9[_0x46791f(0x2c5)]=_0x46791f(0x296);const _0x24e653=_0x2b6ad9[_0x46791f(0x30c)](_0x50434e)[_0x46791f(0x2fe)],_0x42f673=Math[_0x46791f(0x18b)](_0x24e653+0x2*Ae,lt);di(_0x2b6ad9,{'height':de,'radius':0x4,'width':_0x42f673,'fill':_0x566b51,'evented':!0x1}),_0x2b6ad9[_0x46791f(0x1ee)]='#FFF';const _0x16a62c=Ae,_0x47b98f=de-ui,_0x37505b=lt-0x2*Ae;if(_0x24e653>_0x37505b){let _0x41540a='',_0x3e0a3c=0x0;for(const _0xc5992c of _0x50434e){const _0x10cd0d=_0x2b6ad9['measureText'](_0xc5992c)[_0x46791f(0x2fe)];if(_0x3e0a3c+_0x10cd0d<=_0x37505b-_0x2b6ad9[_0x46791f(0x30c)](_0x46791f(0x259))['width'])_0x41540a+=_0xc5992c,_0x3e0a3c+=_0x10cd0d;else{_0x41540a+=_0x46791f(0x259);break;}}_0x2b6ad9['fillText'](_0x41540a,_0x16a62c,_0x47b98f);}else _0x2b6ad9[_0x46791f(0x304)](_0x50434e,_0x16a62c,_0x47b98f);_0x2b6ad9[_0x46791f(0x3fd)]();}[_0x4d97e8(0x22a)](_0x5311b4){const _0xf0a049=_0x4d97e8;Oe[_0xf0a049(0x17d)](_0x5311b4,this);}}const Le='collab-text-anchor-',Si=_0x4d97e8(0x25e),vi='collab-rect-range-',le=0x6,gi=1.5,je=0x4,mi=1.5,fi='rgba(255,\x20255,\x20255,\x200.01)';class ht{constructor(_0x1d59be,_0x28e208,_0x425923,_0x3e9f36){const _0xc1e05d=_0x4d97e8;u(this,'_shapes',[]),u(this,'_anchor',null),u(this,_0xc1e05d(0x156),null),u(this,'_anchorDot',null),u(this,'_hideTimer',null),u(this,'_eventUnsubscribe',null),(this[_0xc1e05d(0x193)]=_0x1d59be,this[_0xc1e05d(0x389)]=_0x28e208,this[_0xc1e05d(0x1c0)]=_0x425923,this[_0xc1e05d(0x2c7)]=_0x3e9f36,this[_0xc1e05d(0xde)]());}set['_hover'](_0x49db16){const _0x2d0844=_0x4d97e8;_0x49db16?(this[_0x2d0844(0x1d3)]&&this[_0x2d0844(0x1d3)][_0x2d0844(0x202)](),this[_0x2d0844(0x156)]&&this[_0x2d0844(0x156)][_0x2d0844(0x207)]()):(this['_anchorDot']&&this[_0x2d0844(0x1d3)]['show'](),this[_0x2d0844(0x156)]&&this[_0x2d0844(0x156)][_0x2d0844(0x202)]());}[_0x4d97e8(0x337)](){const _0x28cebf=_0x4d97e8;for(const _0x306279 of this[_0x28cebf(0x2b1)])_0x306279[_0x28cebf(0x337)]();this[_0x28cebf(0x156)]&&this[_0x28cebf(0x156)]['dispose'](),this[_0x28cebf(0x1d3)]&&this[_0x28cebf(0x1d3)][_0x28cebf(0x337)](),this[_0x28cebf(0x12a)]&&this[_0x28cebf(0x12a)]['dispose'](),this[_0x28cebf(0x329)]&&this['_eventUnsubscribe']();}[_0x4d97e8(0xde)](){const _0x584f3a=_0x4d97e8;var _0x1e71b8;const {_docSkeleton:_0x3cf149,_document:_0x781ed6}=this,{color:_0x52ebcd,name:_0x1b39c4,ranges:_0x348669}=this['_cursor'],_0x530907=_0x781ed6['getOffsetConfig'](),{docsLeft:_0x1f362b,docsTop:_0x4ef870}=_0x530907,_0xe15019=new N[(_0x584f3a(0x97))](_0x530907,_0x3cf149);for(const {startOffset:_0x3a4f16,endOffset:_0x3d7cd4,collapsed:_0x3a8867,isActive:_0x34f4be}of _0x348669){const _0x25c415=_0x3cf149['findNodePositionByCharIndex'](_0x3a4f16),_0x162599=_0x3cf149[_0x584f3a(0x1e3)](_0x3d7cd4);if(_0x34f4be){const {contentBoxPointGroup:_0x2117b1}=_0xe15019[_0x584f3a(0x2f0)](_0x162599,_0x162599);if(_0x2117b1[_0x584f3a(0x424)]===0x0)continue;this[_0x584f3a(0x3d2)](_0x52ebcd,_0x2117b1,_0x1f362b,_0x4ef870,_0x1b39c4),this[_0x584f3a(0x329)]=this[_0x584f3a(0x3d8)]();}if(!_0x3a8867&&_0x25c415&&_0x162599){if(N[_0x584f3a(0x3ed)](_0x25c415,_0x162599)){const _0x11d041=new N['NodePositionConvertToRectRange'](_0x530907,_0x3cf149),{pointGroup:_0x32929b}=(_0x1e71b8=_0x11d041['getRangePointData'](_0x25c415,_0x162599))!=null?_0x1e71b8:{};if(_0x32929b==null||_0x32929b['length']===0x0)continue;this[_0x584f3a(0xd5)](_0x52ebcd,_0x32929b,_0x1f362b,_0x4ef870);}else{const {contentBoxPointGroup:_0x39fdec}=_0xe15019['getRangePointData'](_0x25c415,_0x162599);if(_0x39fdec[_0x584f3a(0x424)]===0x0)continue;this[_0x584f3a(0x2ae)](_0x52ebcd,_0x39fdec,_0x1f362b,_0x4ef870);}}}}[_0x4d97e8(0x3d2)](_0x5654ee,_0x13b69d,_0x5c9e9d,_0x20a340,_0x5df4e9){const _0x44f8bc=_0x4d97e8,_0x20f66c=this[_0x44f8bc(0x2e5)](_0x13b69d),{left:_0x2dd8f5,top:_0x331a84,height:_0x217379}=_0x20f66c,_0x2e17a9=this['_getScale'](),_0xbbd719=mi/_0x2e17a9,_0x20b70b=new D[(_0x44f8bc(0x4ad))](Le+a['Tools'][_0x44f8bc(0x423)](le),{'left':_0x2dd8f5+_0x5c9e9d-_0xbbd719,'top':_0x331a84+_0x20a340,'height':_0x217379,'width':gi,'fill':_0x5654ee||D[_0x44f8bc(0x34b)](a['COLORS'][_0x44f8bc(0x161)],0x0),'strokeWidth':_0xbbd719,'stroke':fi,'evented':!0x0});this[_0x44f8bc(0x12a)]=_0x20b70b,this['_scene'][_0x44f8bc(0x246)](_0x20b70b,N[_0x44f8bc(0x119)]);const _0x30970d=new D[(_0x44f8bc(0x4ad))](Le+a[_0x44f8bc(0x378)][_0x44f8bc(0x423)](le),{'left':_0x2dd8f5+_0x5c9e9d-_0xbbd719,'top':_0x331a84+_0x20a340-je/0x2,'height':je,'width':je,'fill':_0x5654ee||D['getColor'](a['COLORS'][_0x44f8bc(0x161)],0x0),'strokeWidth':0x0,'stroke':_0x5654ee||D[_0x44f8bc(0x34b)](a['COLORS'][_0x44f8bc(0x161)],0x0),'evented':!0x1});this[_0x44f8bc(0x1d3)]=_0x30970d,this['_scene']['addObject'](_0x30970d,N[_0x44f8bc(0x119)]);const _0xbbab52=new Oe(Le+a[_0x44f8bc(0x378)][_0x44f8bc(0x423)](le),{'left':_0x2dd8f5+_0x5c9e9d-_0xbbd719,'top':_0x331a84+_0x20a340-de,'text':_0x5df4e9,'color':_0x5654ee});this[_0x44f8bc(0x156)]=_0xbbab52,this[_0x44f8bc(0x389)][_0x44f8bc(0x246)](_0xbbab52,N[_0x44f8bc(0x119)]),this['_hover']=!0x1;}[_0x4d97e8(0x3d8)](){const _0x1d9c96=_0x4d97e8,_0x1eb43d=this[_0x1d9c96(0x12a)][_0x1d9c96(0x46e)]['subscribeEvent'](()=>{const _0x4c19d2=_0x1d9c96;this[_0x4c19d2(0x1aa)]=!0x0;}),_0x25da13=this[_0x1d9c96(0x12a)][_0x1d9c96(0x274)]['subscribeEvent'](()=>{const _0x45edb4=_0x1d9c96;this[_0x45edb4(0x102)]&&clearTimeout(this[_0x45edb4(0x102)]),this[_0x45edb4(0x102)]=setTimeout(()=>{const _0x18a6cb=_0x45edb4;this[_0x18a6cb(0x1aa)]=!0x1;},0x7d0);});return()=>{const _0x604ec1=_0x1d9c96;_0x1eb43d[_0x604ec1(0xf5)](),_0x25da13[_0x604ec1(0xf5)]();};}[_0x4d97e8(0x2ae)](_0x1567c5,_0x3c0713,_0x47d43c,_0x48eafc){const _0x440770=_0x4d97e8,_0x2706d2=new a['ColorKit'](_0x1567c5)[_0x440770(0x137)](0.2)[_0x440770(0x29e)](),_0x4f1c9d=new D['RegularPolygon'](Si+a[_0x440770(0x378)]['generateRandomId'](le),{'pointsGroup':_0x3c0713,'fill':_0x2706d2||D[_0x440770(0x34b)](a[_0x440770(0x419)][_0x440770(0x161)],0.2),'left':_0x47d43c,'top':_0x48eafc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x440770(0x2b1)][_0x440770(0x29b)](_0x4f1c9d),this['_scene'][_0x440770(0x246)](_0x4f1c9d,N[_0x440770(0x119)]);}[_0x4d97e8(0xd5)](_0x419a0c,_0x47375c,_0x2675bb,_0x62c26b){const _0x13d487=_0x4d97e8,_0x121a70=new a[(_0x13d487(0x230))](_0x419a0c)[_0x13d487(0x137)](0.2)[_0x13d487(0x29e)](),_0x424bca=new D[(_0x13d487(0x35f))](vi+a[_0x13d487(0x378)][_0x13d487(0x423)](le),{'pointsGroup':_0x47375c,'fill':_0x121a70||D[_0x13d487(0x34b)](a[_0x13d487(0x419)][_0x13d487(0x161)],0.2),'left':_0x2675bb,'top':_0x62c26b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x13d487(0x2b1)][_0x13d487(0x29b)](_0x424bca),this[_0x13d487(0x389)]['addObject'](_0x424bca,N[_0x13d487(0x119)]);}[_0x4d97e8(0x2e5)](_0xe9cd47){const _0x3d1076=_0xe9cd47[0x0],_0x3270ce=_0x3d1076[0x0],_0x262ce3=_0x3d1076[0x2],{x:_0x23b982,y:_0x24527e}=_0x3270ce,{x:_0x120c3b,y:_0x51da34}=_0x262ce3;return{'left':_0x23b982,'top':_0x24527e,'width':_0x120c3b-_0x23b982,'height':_0x51da34-_0x24527e};}['_getScale'](){const _0x538fd5=_0x4d97e8,{scaleX:_0x2a1311,scaleY:_0x5b345b}=this[_0x538fd5(0x389)][_0x538fd5(0x223)]();return Math['max'](_0x2a1311,_0x5b345b);}}var Ii=Object[_0x4d97e8(0x8e)],pi=Object[_0x4d97e8(0x100)],Ci=(_0x383fec,_0x19e169,_0x4c1a99,_0x242309)=>{for(var _0x21d08f=_0x242309>0x1?void 0x0:_0x242309?pi(_0x19e169,_0x4c1a99):_0x19e169,_0x57f9eb=_0x383fec['length']-0x1,_0x24dceb;_0x57f9eb>=0x0;_0x57f9eb--)(_0x24dceb=_0x383fec[_0x57f9eb])&&(_0x21d08f=(_0x242309?_0x24dceb(_0x19e169,_0x4c1a99,_0x21d08f):_0x24dceb(_0x21d08f))||_0x21d08f);return _0x242309&&_0x21d08f&&Ii(_0x19e169,_0x4c1a99,_0x21d08f),_0x21d08f;},ve=(_0x1acc0e,_0x2fe499)=>(_0x59ce98,_0x324171)=>_0x2fe499(_0x59ce98,_0x324171,_0x1acc0e);let Ve=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x4c47d1,_0x3bb9b7,_0x63ef25,_0x2835a6,_0xe2fa7b){const _0x516fb1=_0x4d97e8;super(),u(this,'_cursorShapes',[]),u(this,_0x516fb1(0x27c),[]),(this['_context']=_0x4c47d1,this['_docSkeletonManagerService']=_0x3bb9b7,this['_collabCursorController']=_0x63ef25,this[_0x516fb1(0x1c7)]=_0x2835a6,this[_0x516fb1(0x1d2)]=_0xe2fa7b,this['_init']());}[_0x4d97e8(0x27e)](){const _0xe29874=_0x4d97e8,_0x2101ed=this[_0xe29874(0x2bf)][_0xe29874(0x3f2)],_0x29d44e=this[_0xe29874(0x125)];this['disposeWithMe'](v['combineLatest']([this[_0xe29874(0x33c)][_0xe29874(0x2bd)](_0x2101ed),this['_themeService'][_0xe29874(0x47d)]])[_0xe29874(0x488)](E['map'](([_0x4040f9,_0x436602])=>({'skeleton':_0x29d44e[_0xe29874(0x375)](),'cursors':[..._0x4040f9[_0xe29874(0x108)]()][_0xe29874(0x181)](_0x753e5b=>({..._0x753e5b,'color':_0x436602[_0x753e5b[_0xe29874(0x441)]]}))})))['subscribe'](_0x5e6cff=>{const _0x18148d=_0xe29874;if(this[_0x18148d(0x451)](),_0x5e6cff){const {skeleton:_0x2a9915,cursors:_0x1185a8}=_0x5e6cff;this[_0x18148d(0x440)](_0x2a9915,_0x1185a8);}})),this['_initResize'](),this[_0xe29874(0x134)]();}[_0x4d97e8(0x440)](_0x4c668e,_0x30f997){const _0x3db43e=_0x4d97e8,{scene:_0x5e7b53,mainComponent:_0x58d606}=this[_0x3db43e(0x2bf)],_0x1ae424=_0x30f997[_0x3db43e(0x12b)](_0x1a4675=>new ht(_0x1a4675,_0x5e7b53,_0x4c668e,_0x58d606));this[_0x3db43e(0x271)]=_0x1ae424,this[_0x3db43e(0x27c)]=_0x30f997;}[_0x4d97e8(0x1e0)](){const _0x43a55d=_0x4d97e8;this[_0x43a55d(0x451)]();const {scene:_0x1c1077,mainComponent:_0x3e5f5c}=this[_0x43a55d(0x2bf)],_0xb2e1bf=this['_docSkeletonManagerService'][_0x43a55d(0x375)](),_0x77f1a=this[_0x43a55d(0x27c)][_0x43a55d(0x12b)](_0x457bc0=>new ht(_0x457bc0,_0x1c1077,_0xb2e1bf,_0x3e5f5c));this[_0x43a55d(0x271)]=_0x77f1a;}[_0x4d97e8(0x451)](){const _0x3ac168=_0x4d97e8;this[_0x3ac168(0x271)][_0x3ac168(0x373)](_0x1a4598=>_0x1a4598[_0x3ac168(0x337)]()),this[_0x3ac168(0x271)]=[];}[_0x4d97e8(0x134)](){const _0x1d7f0b=_0x4d97e8,_0x56ec23=[N['SetDocZoomRatioOperation']['id']];this[_0x1d7f0b(0x1e2)](this[_0x1d7f0b(0x1c7)]['onCommandExecuted'](_0x436101=>{const _0x1590e5=_0x1d7f0b;_0x56ec23['includes'](_0x436101['id'])&&_0x436101['params'][_0x1590e5(0x3f2)]===this['_context'][_0x1590e5(0x3f2)]&&this[_0x1590e5(0x1e0)]();}));}[_0x4d97e8(0x345)](){const _0x18b56f=_0x4d97e8;this[_0x18b56f(0x1e2)](a[_0x18b56f(0x273)](this[_0x18b56f(0x2bf)]['engine'][_0x18b56f(0x1a5)])[_0x18b56f(0x488)](E[_0x18b56f(0x355)](_0x296039=>_0x296039[_0x18b56f(0x366)]===D['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),E[_0x18b56f(0x13a)](0x10))[_0x18b56f(0x1c4)](()=>{const _0x4847f0=_0x18b56f;this[_0x4847f0(0x1e0)]();}));}};Ve=Ci([ve(0x1,a[_0x4d97e8(0x13d)](se[_0x4d97e8(0x38e)])),ve(0x2,a['Inject'](ne)),ve(0x3,a[_0x4d97e8(0x433)]),ve(0x4,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x3f3)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends D[_0x4d97e8(0xa2)]{constructor(_0x4f34a5,_0x496fa4){const _0x4a0699=_0x4d97e8;super(_0x4f34a5,_0x496fa4),u(this,_0x4a0699(0xb1)),u(this,_0x4a0699(0xf6),!0x1),u(this,_0x4a0699(0x41a)),u(this,_0x4a0699(0x276),''),u(this,'_labelPosition',_0x4a0699(0x105)),u(this,_0x4a0699(0x194)),(_0x496fa4&&this[_0x4a0699(0x300)](_0x496fa4),this[_0x4a0699(0x46e)][_0x4a0699(0x28f)](()=>this[_0x4a0699(0x300)]({'hovered':!0x0})),this[_0x4a0699(0x274)]['subscribeEvent'](()=>this[_0x4a0699(0x300)]({'hovered':!0x1})));}[_0x4d97e8(0x300)](_0xaaeb0e){const _0x1347f4=_0x4d97e8;var _0x5b1593,_0x22c56a,_0xbd8988,_0x1f4d11,_0x347a1f,_0x1266a4;this[_0x1347f4(0xb1)]=(_0x5b1593=_0xaaeb0e[_0x1347f4(0x441)])!=null?_0x5b1593:this[_0x1347f4(0xb1)],this[_0x1347f4(0xf6)]=(_0x22c56a=_0xaaeb0e[_0x1347f4(0x196)])!=null?_0x22c56a:this[_0x1347f4(0xf6)],this[_0x1347f4(0x41a)]=(_0xbd8988=_0xaaeb0e[_0x1347f4(0x3b9)])!=null?_0xbd8988:this[_0x1347f4(0x41a)],this[_0x1347f4(0x276)]=(_0x1f4d11=_0xaaeb0e['name'])!=null?_0x1f4d11:this[_0x1347f4(0x276)],this[_0x1347f4(0x2f9)]=(_0x347a1f=_0xaaeb0e[_0x1347f4(0x1ab)])!=null?_0x347a1f:this['_labelPosition'],this[_0x1347f4(0x194)]=(_0x1266a4=_0xaaeb0e[_0x1347f4(0x111)])!=null?_0x1266a4:this[_0x1347f4(0x194)],this[_0x1347f4(0x2b9)]({'width':_0xaaeb0e[_0x1347f4(0x2fe)],'height':_0xaaeb0e['height']});}[_0x4d97e8(0x216)](_0xd73cb){const _0x493b93=_0x4d97e8,{row:_0x11f071,column:_0x15dc74}=_0xd73cb;if(_0x11f071>=this[_0x493b93(0x41a)]['startRow']&&_0x11f071<=this[_0x493b93(0x41a)]['endRow']&&_0x15dc74>=this[_0x493b93(0x41a)][_0x493b93(0x42b)]&&_0x15dc74<=this[_0x493b93(0x41a)][_0x493b93(0x4a0)]){this[_0x493b93(0x300)]({'hovered':!0x0});return;}this[_0x493b93(0x300)]({'hovered':!0x1});}[_0x4d97e8(0x11b)](_0x4d91e5){return!0x1;}[_0x4d97e8(0x22a)](_0x49c248){const _0x4c577a=_0x4d97e8;D[_0x4c577a(0x4ad)][_0x4c577a(0x17d)](_0x49c248,{'width':this[_0x4c577a(0x2fe)],'height':this[_0x4c577a(0x474)],'strokeWidth':bi,'stroke':this[_0x4c577a(0xb1)],'evented':!0x1,'fill':this[_0x4c577a(0x194)]}),this[_0x4c577a(0xf6)]&&(_0x49c248[_0x4c577a(0x23e)](),_0x49c248[_0x4c577a(0x177)](0x1,0x0,0x0,0x1,this['width'],this[_0x4c577a(0x2f9)]===_0x4c577a(0x302)?0x0:-de),Oe[_0x4c577a(0x17d)](_0x49c248,{'text':this[_0x4c577a(0x276)],'color':this['_color']}),_0x49c248[_0x4c577a(0x3fd)]());}}var Ti=Object['defineProperty'],Ri=Object[_0x4d97e8(0x100)],Oi=(_0x36d022,_0x31665e,_0x19d07e,_0x18fb62)=>{const _0x71b7aa=_0x4d97e8;for(var _0x3e8617=_0x18fb62>0x1?void 0x0:_0x18fb62?Ri(_0x31665e,_0x19d07e):_0x31665e,_0x7980cf=_0x36d022[_0x71b7aa(0x424)]-0x1,_0x499af3;_0x7980cf>=0x0;_0x7980cf--)(_0x499af3=_0x36d022[_0x7980cf])&&(_0x3e8617=(_0x18fb62?_0x499af3(_0x31665e,_0x19d07e,_0x3e8617):_0x499af3(_0x3e8617))||_0x3e8617);return _0x18fb62&&_0x3e8617&&Ti(_0x31665e,_0x19d07e,_0x3e8617),_0x3e8617;},$e=(_0x47e0b9,_0x4412bf)=>(_0x423dc2,_0x494d8a)=>_0x4412bf(_0x423dc2,_0x494d8a,_0x47e0b9);const Di=0x1389;let We=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x174263,_0x1f88e1,_0x2a48fa,_0x558c51){const _0x36a96f=_0x4d97e8;super(),u(this,'_cursors',new Set()),u(this,'_lastPointer',null),(this[_0x36a96f(0x2bf)]=_0x174263,this[_0x36a96f(0x8d)]=_0x1f88e1,this['_collabCursorController']=_0x2a48fa,this[_0x36a96f(0x1d2)]=_0x558c51,this[_0x36a96f(0x27e)]());}[_0x4d97e8(0x27e)](){const _0x229912=_0x4d97e8;this[_0x229912(0x8d)]['currentSkeleton$']['pipe'](E['takeUntil'](this[_0x229912(0x498)]),E[_0x229912(0x8a)](_0x26da25=>{const _0x114ae2=_0x229912;if(_0x26da25){const _0x1629a7=_0x26da25[_0x114ae2(0x2e1)];return v[_0x114ae2(0x220)](this[_0x114ae2(0x33c)][_0x114ae2(0x2bd)](this[_0x114ae2(0x2bf)][_0x114ae2(0x3f2)]),this[_0x114ae2(0x1d2)][_0x114ae2(0x47d)])[_0x114ae2(0x488)](E[_0x114ae2(0x12b)](([_0x518e70,_0xbdb8dd])=>{const _0x35b4e7=_0x114ae2,_0xa01dd4=new Map();return _0x518e70[_0x35b4e7(0x373)]((_0x5ec135,_0x101c35)=>{const _0x31253c=_0x35b4e7;if(_0x5ec135[_0x31253c(0x409)]===_0x1629a7){const _0xb6cb4={..._0x5ec135};_0xb6cb4[_0x31253c(0x441)]=_0xbdb8dd[_0x5ec135[_0x31253c(0x441)]],_0xa01dd4[_0x31253c(0x24d)](_0x101c35,_0xb6cb4);}}),{'skeleton':_0x26da25,'cursors':_0xa01dd4};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x1e9fd3,cursors:_0x235cdd})=>{const _0x31bec9=_0x229912;this['_removeCollabCursors'](),_0x1e9fd3&&this[_0x31bec9(0x440)](_0x1e9fd3,_0x235cdd);}),this[_0x229912(0x8d)]['currentSkeleton$']['subscribe'](_0xfb2d70=>{const _0x684d36=_0x229912;if(_0xfb2d70==null)return;const {skeleton:_0x18614e}=_0xfb2d70,{scene:_0x153b29}=this['_context'];_0x153b29[_0x684d36(0x3fb)][_0x684d36(0x28f)](a[_0x684d36(0x395)](_0x3e9177=>{const _0x3d4b5f=_0x684d36;var _0x529164,_0x57c5f1;const {offsetX:_0x4da9a2,offsetY:_0x1b5354}=_0x3e9177,{x:_0x334255,y:_0x3cd6d2}=_0x153b29[_0x3d4b5f(0x19d)](D[_0x3d4b5f(0x285)]['FromArray']([_0x4da9a2,_0x1b5354])),{scaleX:_0xa41382,scaleY:_0x1e9c2e}=_0x153b29[_0x3d4b5f(0x223)](),_0x3e0c71=_0x153b29['getViewport'](te['VIEWPORT_KEY'][_0x3d4b5f(0x9e)]),_0x4ef109=_0x153b29[_0x3d4b5f(0x466)](D[_0x3d4b5f(0x285)][_0x3d4b5f(0x3a6)]([_0x334255,_0x3cd6d2]),_0x3e0c71),_0x49bdd1=_0x18614e[_0x3d4b5f(0x180)](_0x4da9a2,_0x1b5354,_0xa41382,_0x1e9c2e,_0x4ef109);((_0x529164=this[_0x3d4b5f(0x266)])==null?void 0x0:_0x529164[_0x3d4b5f(0x9a)])===_0x49bdd1[_0x3d4b5f(0x9a)]&&((_0x57c5f1=this[_0x3d4b5f(0x266)])==null?void 0x0:_0x57c5f1[_0x3d4b5f(0x251)])===_0x49bdd1[_0x3d4b5f(0x251)]||this['_cursors']['forEach'](_0x513259=>{const _0x5b16d7=_0x3d4b5f;_0x513259[_0x5b16d7(0x216)](_0x49bdd1);});},0x64));});}[_0x4d97e8(0x440)](_0x194627,_0x365f65){const _0x12368e=_0x4d97e8;var _0x4e5469;const _0x412c47=(_0x4e5469=this['_sheetSkeletonManagerService'][_0x12368e(0x118)]())==null?void 0x0:_0x4e5469['skeleton'];if(!_0x412c47)return;const _0xa18663=this[_0x12368e(0x361)]();if(!_0xa18663)return;this['_cursors'][_0x12368e(0x373)](_0x2e9ecd=>{const _0x7b4d26=_0x12368e;_0x2e9ecd[_0x7b4d26(0x4ae)]();});const {scene:_0x569f8a}=_0xa18663,_0x523aa4=yi(Array[_0x12368e(0x237)](_0x365f65['values']()))[_0x12368e(0x12b)](_0x2ae735=>{const _0x2c31dc=_0x12368e,{color:_0x4a357a,range:_0x2e5615,name:_0x1faa22,selection:_0x3c47d9,sheetID:_0x579c0c}=_0x2ae735,{startColumn:_0x342c25,startRow:_0x3be1cf,endColumn:_0x436082,endRow:_0x14bb69}=_0x2e5615,_0x4f43cc=te['getCoordByCell'](_0x3be1cf,_0x342c25,_0x569f8a,_0x412c47),_0x94ac35=te[_0x2c31dc(0x3be)](_0x14bb69,_0x436082,_0x569f8a,_0x412c47),{columnHeaderHeightAndMarginTop:_0x3847cc}=_0x412c47,{startX:_0x2cd217,startY:_0x5dbdef}=_0x4f43cc,{endX:_0x406c94,endY:_0x4297be}=_0x94ac35,_0x20fe52=_0x406c94-_0x2cd217,_0x2c343b=_0x4297be-_0x5dbdef,_0x12f69d={'labelPosition':_0x5dbdef-_0x3847cc>=de?'top':_0x2c31dc(0x302),'sheetID':_0x579c0c,'range':_0x2e5615,'color':_0x4a357a,'name':_0x1faa22,'selection':_0x3c47d9,'left':_0x2cd217,'top':_0x5dbdef,'width':_0x20fe52,'height':_0x2c343b,'evented':!0x1,'zIndex':Di};return new Pt(_0x1faa22,_0x12f69d);});_0x569f8a[_0x12368e(0x493)](_0x523aa4,Ei),this[_0x12368e(0x27c)]=new Set(_0x523aa4);}['_removeCollabCursors'](){const _0x2778b8=_0x4d97e8;var _0x33e8e5;(_0x33e8e5=this[_0x2778b8(0x27c)])==null||_0x33e8e5[_0x2778b8(0x373)](_0x2d07e8=>_0x2d07e8[_0x2778b8(0x337)]());}[_0x4d97e8(0x361)](){const _0x4a7989=_0x4d97e8;return te[_0x4a7989(0x2e8)](this[_0x4a7989(0x2bf)][_0x4a7989(0x452)],this[_0x4a7989(0x2bf)]);}};We=Oi([$e(0x1,a[_0x4d97e8(0x13d)](te[_0x4d97e8(0x183)])),$e(0x2,a['Inject'](ne)),$e(0x3,a[_0x4d97e8(0x13d)](a['ThemeService']))],We);function yi(_0x517938){const _0x2be843=_0x4d97e8,_0x14e50c=new Map();return _0x517938['forEach'](_0x80aca7=>{const _0x2e0838=_0x4a0f;if(_0x14e50c[_0x2e0838(0x477)](_0x80aca7[_0x2e0838(0x382)])){const _0x32f7d2=_0x14e50c[_0x2e0838(0x491)](_0x80aca7[_0x2e0838(0x382)]);_0x32f7d2[_0x2e0838(0x10f)]+=',\x20'+_0x80aca7['name'];}else _0x14e50c[_0x2e0838(0x24d)](_0x80aca7[_0x2e0838(0x382)],_0x80aca7);}),Array['from'](_0x14e50c[_0x2be843(0x108)]());}var M=function(){const _0x1868f6=_0x4d97e8;return M=Object[_0x1868f6(0xce)]||function(_0x25aabc){const _0x8f8deb=_0x1868f6;for(var _0x2ee8b6,_0x5611fc=0x1,_0xedb4be=arguments[_0x8f8deb(0x424)];_0x5611fc<_0xedb4be;_0x5611fc++){_0x2ee8b6=arguments[_0x5611fc];for(var _0x1d74dc in _0x2ee8b6)Object['prototype']['hasOwnProperty']['call'](_0x2ee8b6,_0x1d74dc)&&(_0x25aabc[_0x1d74dc]=_0x2ee8b6[_0x1d74dc]);}return _0x25aabc;},M['apply'](this,arguments);},Ui=function(_0x3437c2,_0x133d0c){const _0x2b7fbd=_0x4d97e8;var _0x1e3c2e={};for(var _0x51abfc in _0x3437c2)Object[_0x2b7fbd(0x43d)]['hasOwnProperty'][_0x2b7fbd(0x1da)](_0x3437c2,_0x51abfc)&&_0x133d0c[_0x2b7fbd(0xc3)](_0x51abfc)<0x0&&(_0x1e3c2e[_0x51abfc]=_0x3437c2[_0x51abfc]);if(_0x3437c2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x488677=0x0,_0x51abfc=Object[_0x2b7fbd(0x1a2)](_0x3437c2);_0x488677<_0x51abfc[_0x2b7fbd(0x424)];_0x488677++)_0x133d0c[_0x2b7fbd(0xc3)](_0x51abfc[_0x488677])<0x0&&Object[_0x2b7fbd(0x43d)][_0x2b7fbd(0x425)][_0x2b7fbd(0x1da)](_0x3437c2,_0x51abfc[_0x488677])&&(_0x1e3c2e[_0x51abfc[_0x488677]]=_0x3437c2[_0x51abfc[_0x488677]]);}return _0x1e3c2e;},Ze=P['forwardRef'](function(_0x4c5885,_0x4258f8){const _0x58b57a=_0x4d97e8;var _0x108dc8=_0x4c5885[_0x58b57a(0x1a8)],_0x4e6692=_0x4c5885['id'],_0x3a2b30=_0x4c5885[_0x58b57a(0x394)],_0x1c115f=_0x4c5885['extend'],_0x16e9de=Ui(_0x4c5885,[_0x58b57a(0x1a8),'id',_0x58b57a(0x394),_0x58b57a(0x16d)]),_0x5c9d64=_0x58b57a(0xae)[_0x58b57a(0x255)](_0x4e6692,'\x20')[_0x58b57a(0x255)](_0x3a2b30||'')[_0x58b57a(0x352)](),_0x3e6d19=P[_0x58b57a(0x1ad)]('_'[_0x58b57a(0x255)](Ni()));return wt(_0x108dc8,''[_0x58b57a(0x255)](_0x4e6692),{'defIds':_0x108dc8[_0x58b57a(0x129)],'idSuffix':_0x3e6d19['current']},M({'ref':_0x4258f8,'className':_0x5c9d64},_0x16e9de),_0x1c115f);});function wt(_0x139a3d,_0x463da6,_0x1410b0,_0x56866a,_0x763344){const _0x4435c6=_0x4d97e8;return P['createElement'](_0x139a3d[_0x4435c6(0x321)],M(M({'key':_0x463da6},Pi(_0x139a3d,_0x1410b0,_0x763344)),_0x56866a),(wi(_0x139a3d,_0x1410b0)[_0x4435c6(0x185)]||[])[_0x4435c6(0x12b)](function(_0x26f7ea,_0x15e4c9){const _0x1f5d83=_0x4435c6;return wt(_0x26f7ea,''['concat'](_0x463da6,'-')[_0x1f5d83(0x255)](_0x139a3d[_0x1f5d83(0x321)],'-')['concat'](_0x15e4c9),_0x1410b0,void 0x0,_0x763344);}));}function Pi(_0x58e293,_0x33595b,_0x26e894){const _0x5667d7=_0x4d97e8;var _0x1dfcf3=M({},_0x58e293[_0x5667d7(0x31c)]);_0x26e894!=null&&_0x26e894[_0x5667d7(0x2ac)]&&_0x1dfcf3[_0x5667d7(0x45b)]===_0x5667d7(0x2ac)&&(_0x1dfcf3[_0x5667d7(0x45b)]=_0x26e894[_0x5667d7(0x2ac)]);var _0x41f628=_0x33595b[_0x5667d7(0x129)];return!_0x41f628||_0x41f628[_0x5667d7(0x424)]===0x0||(_0x58e293[_0x5667d7(0x321)]===_0x5667d7(0x1a1)&&_0x1dfcf3[_0x5667d7(0x45a)]&&(_0x1dfcf3['xlink:href']=_0x1dfcf3[_0x5667d7(0x45a)]+_0x33595b[_0x5667d7(0x217)]),Object['entries'](_0x1dfcf3)[_0x5667d7(0x373)](function(_0x162ba7){const _0x59834d=_0x5667d7;var _0x235071=_0x162ba7[0x0],_0x329a14=_0x162ba7[0x1];typeof _0x329a14=='string'&&(_0x1dfcf3[_0x235071]=_0x329a14[_0x59834d(0x200)](/url\(#(.*)\)/,_0x59834d(0x3db)['concat'](_0x33595b['idSuffix'],')')));})),_0x1dfcf3;}function wi(_0x41ea69,_0x4906a5){const _0x5dd99d=_0x4d97e8;var _0x2137ad,_0x15a926=_0x4906a5[_0x5dd99d(0x129)];return!_0x15a926||_0x15a926['length']===0x0?_0x41ea69:_0x41ea69[_0x5dd99d(0x321)]===_0x5dd99d(0x406)&&(!((_0x2137ad=_0x41ea69[_0x5dd99d(0x185)])===null||_0x2137ad===void 0x0)&&_0x2137ad['length'])?M(M({},_0x41ea69),{'children':_0x41ea69['children'][_0x5dd99d(0x12b)](function(_0x1cd3b1){const _0x589200=_0x5dd99d;return typeof _0x1cd3b1[_0x589200(0x31c)]['id']==_0x589200(0xbf)&&_0x15a926&&_0x15a926['indexOf'](_0x1cd3b1['attrs']['id'])>-0x1?M(M({},_0x1cd3b1),{'attrs':M(M({},_0x1cd3b1['attrs']),{'id':_0x1cd3b1[_0x589200(0x31c)]['id']+_0x4906a5[_0x589200(0x217)]})}):_0x1cd3b1;})}):_0x41ea69;}function Ni(){const _0x5e45ca=_0x4d97e8;return Math[_0x5e45ca(0x2a2)]()[_0x5e45ca(0x33f)](0x24)[_0x5e45ca(0x127)](0x2,0x8);}Ze['displayName']=_0x4d97e8(0x172);var Mi={'tag':_0x4d97e8(0x113),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4d97e8(0x21e)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d97e8(0x3de)},'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':_0x4d97e8(0xb8),'strokeLinejoin':_0x4d97e8(0xb8),'strokeWidth':1.2}}]},{'tag':_0x4d97e8(0x406),'attrs':{},'children':[{'tag':_0x4d97e8(0x34c),'attrs':{'id':_0x4d97e8(0x25d)},'children':[{'tag':_0x4d97e8(0x38b),'attrs':{'fill':_0x4d97e8(0x357),'d':_0x4d97e8(0x2f2)}}]}]}],'defIds':[_0x4d97e8(0x25d)]},Nt=P[_0x4d97e8(0x103)](function(_0x5b48f4,_0x4927ca){const _0x27199d=_0x4d97e8;return P[_0x27199d(0x416)](Ze,Object[_0x27199d(0xce)]({},_0x5b48f4,{'id':_0x27199d(0x21c),'ref':_0x4927ca,'icon':Mi}));});Nt['displayName']=_0x4d97e8(0x434);var Ai={'tag':'svg','attrs':{'fill':_0x4d97e8(0xcd),'viewBox':_0x4d97e8(0x449),'width':_0x4d97e8(0x21e),'height':_0x4d97e8(0x21e)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d97e8(0x372)},'children':[{'tag':'path','attrs':{'stroke':_0x4d97e8(0x1e7),'d':_0x4d97e8(0x3b7),'strokeLinecap':'round','strokeLinejoin':_0x4d97e8(0xb8),'strokeWidth':1.2}}]},{'tag':_0x4d97e8(0x406),'attrs':{},'children':[{'tag':_0x4d97e8(0x34c),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4d97e8(0x38b),'attrs':{'fill':'#fff','d':_0x4d97e8(0x2f2),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4d97e8(0x459)]},Mt=P[_0x4d97e8(0x103)](function(_0x258bb5,_0x230971){const _0x3c4d13=_0x4d97e8;return P[_0x3c4d13(0x416)](Ze,Object[_0x3c4d13(0xce)]({},_0x258bb5,{'id':'on-line-single','ref':_0x230971,'icon':Ai}));});Mt[_0x4d97e8(0x411)]='OnLineSingle';function At(_0x1fa004){const _0x1982db=_0x4d97e8;var _0x5f3d81,_0x2d88de,_0x65d5d1='';if(typeof _0x1fa004=='string'||typeof _0x1fa004==_0x1982db(0x210))_0x65d5d1+=_0x1fa004;else{if(typeof _0x1fa004=='object'){if(Array[_0x1982db(0x38a)](_0x1fa004)){var _0x504135=_0x1fa004[_0x1982db(0x424)];for(_0x5f3d81=0x0;_0x5f3d81<_0x504135;_0x5f3d81++)_0x1fa004[_0x5f3d81]&&(_0x2d88de=At(_0x1fa004[_0x5f3d81]))&&(_0x65d5d1&&(_0x65d5d1+='\x20'),_0x65d5d1+=_0x2d88de);}else{for(_0x2d88de in _0x1fa004)_0x1fa004[_0x2d88de]&&(_0x65d5d1&&(_0x65d5d1+='\x20'),_0x65d5d1+=_0x2d88de);}}}return _0x65d5d1;}function Li(){const _0xce399c=_0x4d97e8;for(var _0x22992c,_0x20b496,_0x1e77b6=0x0,_0x50acac='',_0x4fd0ea=arguments[_0xce399c(0x424)];_0x1e77b6<_0x4fd0ea;_0x1e77b6++)(_0x22992c=arguments[_0x1e77b6])&&(_0x20b496=At(_0x22992c))&&(_0x50acac&&(_0x50acac+='\x20'),_0x50acac+=_0x20b496);return _0x50acac;}const ji=_0x4d97e8(0x282),$i=_0x4d97e8(0x453),Hi=_0x4d97e8(0x33b),xi=_0x4d97e8(0x3ff),ki=_0x4d97e8(0x225),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x4e5a38){const _0x542c0a=_0x4d97e8;switch(_0x4e5a38){case U[_0x542c0a(0x283)]:return _0x542c0a(0x2d8);case U[_0x542c0a(0x4b6)]:return _0x542c0a(0x472);case U[_0x542c0a(0x310)]:return _0x542c0a(0x3c5);case U[_0x542c0a(0x306)]:return _0x542c0a(0x22b);case U['PENDING']:case U['AWAITING']:case U[_0x542c0a(0x380)]:return _0x542c0a(0xa1);case U[_0x542c0a(0x2d5)]:return _0x542c0a(0x16b);}}function Lt(_0xe8896c){const _0x14a45a=_0x4d97e8,{status$:_0x28ccde}=_0xe8896c,_0x2b4a3d=A[_0x14a45a(0x48b)](_0x28ccde,U[_0x14a45a(0x306)]),_0x3132c1=a[_0x14a45a(0x462)](a[_0x14a45a(0x10a)]),_0x34fbad=a['useDependency'](exports[_0x14a45a(0x270)]),_0x59fdf1=_0x2b4a3d!==U['OFFLINE'],_0x5516b0=_0x3132c1['t'](Bi(_0x2b4a3d)),_0x1079d4=Li(he[_0x14a45a(0x160)],{[he['online']]:_0x59fdf1,[he[_0x14a45a(0x27a)]]:!_0x59fdf1}),_0x47458b=_0x59fdf1?P[_0x14a45a(0x416)](Mt,null):P[_0x14a45a(0x416)](Nt,null),_0x82a5ae=P['useCallback'](()=>{const _0x1be147=_0x14a45a;_0x59fdf1||_0x34fbad[_0x1be147(0x229)]();},[_0x59fdf1,_0x34fbad]);function _0x1aee2b(){const _0x5b4cd1=_0x14a45a;return P[_0x5b4cd1(0x416)](_0x5b4cd1(0x479),{'className':_0x1079d4,'onClick':_0x82a5ae},P['createElement'](_0x5b4cd1(0x479),{'className':he['onlineStatusIcon']},_0x47458b),P[_0x5b4cd1(0x416)](_0x5b4cd1(0x479),{'className':he[_0x5b4cd1(0x3b2)]},_0x5516b0));}return _0x59fdf1?_0x1aee2b():P[_0x14a45a(0x416)](X[_0x14a45a(0x264)],{'title':_0x3132c1['t'](_0x14a45a(0x4a8))},_0x1aee2b());}var Vi=Object['defineProperty'],Wi=Object[_0x4d97e8(0x100)],Fi=(_0x10d8a0,_0x3161b3,_0x5583f7,_0x338b0a)=>{const _0x4d513f=_0x4d97e8;for(var _0x219b99=_0x338b0a>0x1?void 0x0:_0x338b0a?Wi(_0x3161b3,_0x5583f7):_0x3161b3,_0x27d58b=_0x10d8a0[_0x4d513f(0x424)]-0x1,_0x16d8d1;_0x27d58b>=0x0;_0x27d58b--)(_0x16d8d1=_0x10d8a0[_0x27d58b])&&(_0x219b99=(_0x338b0a?_0x16d8d1(_0x3161b3,_0x5583f7,_0x219b99):_0x16d8d1(_0x219b99))||_0x219b99);return _0x338b0a&&_0x219b99&&Vi(_0x3161b3,_0x5583f7,_0x219b99),_0x219b99;},ge=(_0x4a098d,_0x44e3e4)=>(_0x28ca97,_0x290e1f)=>_0x44e3e4(_0x28ca97,_0x290e1f,_0x4a098d);exports[_0x4d97e8(0x1b4)]=class extends a[_0x4d97e8(0x39c)]{constructor(_0x153ec7,_0x37e091,_0x37726c,_0x21a0dd){const _0x1a92e1=_0x4d97e8;super(),u(this,_0x1a92e1(0x408),new v[(_0x1a92e1(0x114))](U[_0x1a92e1(0x306)])),(this['_univerInstanceService']=_0x153ec7,this['_uiPartsService']=_0x37e091,this[_0x1a92e1(0x2cd)]=_0x37726c,this[_0x1a92e1(0x320)]=_0x21a0dd,this['_initStatusComponent'](),this[_0x1a92e1(0x107)]());}[_0x4d97e8(0x107)](){const _0x7d1c51=_0x4d97e8;this[_0x7d1c51(0x1e2)](this[_0x7d1c51(0x85)][_0x7d1c51(0x1f5)][_0x7d1c51(0x488)](v[_0x7d1c51(0x8a)](()=>{const _0x371375=_0x7d1c51,_0x21fee8=this['_univerInstanceService'][_0x371375(0x1b0)]();return _0x21fee8?this[_0x371375(0x320)][_0x371375(0x26a)](_0x21fee8[_0x371375(0x46c)]()):v['of'](null);}),v[_0x7d1c51(0x8a)](_0x9f8698=>_0x9f8698?_0x9f8698[_0x7d1c51(0x1dc)]:v['of'](U['NOT_COLLAB'])))['subscribe'](_0x2735ac=>{const _0x4d3f42=_0x7d1c51;this['_status$'][_0x4d3f42(0x120)](_0x2735ac);}));}[_0x4d97e8(0x2e9)](){const _0x5245db=_0x4d97e8;this[_0x5245db(0x1e2)](this[_0x5245db(0x2b3)][_0x5245db(0xd4)](A[_0x5245db(0x132)][_0x5245db(0x23f)],()=>a[_0x5245db(0x35c)](Gi({'status$':this[_0x5245db(0x408)][_0x5245db(0x144)]()}),this['_injector'])));}},exports[_0x4d97e8(0x1b4)]=Fi([ge(0x0,a[_0x4d97e8(0x248)]),ge(0x1,A[_0x4d97e8(0x3e8)]),ge(0x2,a[_0x4d97e8(0x13d)](a['Injector'])),ge(0x3,a[_0x4d97e8(0x13d)](exports[_0x4d97e8(0x458)]))],exports[_0x4d97e8(0x1b4)]);function Gi(_0x10d1a5){const {status$:_0x272396}=_0x10d1a5;return function(){return P['createElement'](Lt,{'status$':_0x272396});};}const Qe=a[_0x4d97e8(0x290)](_0x4d97e8(0x22c));var Yi=Object[_0x4d97e8(0x8e)],Ki=Object['getOwnPropertyDescriptor'],Xi=(_0x180f24,_0x3755c3,_0x4de9b9,_0x3b1729)=>{const _0x27f0e0=_0x4d97e8;for(var _0x1b8f4f=_0x3b1729>0x1?void 0x0:_0x3b1729?Ki(_0x3755c3,_0x4de9b9):_0x3755c3,_0xd9b0c1=_0x180f24[_0x27f0e0(0x424)]-0x1,_0x5d1f46;_0xd9b0c1>=0x0;_0xd9b0c1--)(_0x5d1f46=_0x180f24[_0xd9b0c1])&&(_0x1b8f4f=(_0x3b1729?_0x5d1f46(_0x3755c3,_0x4de9b9,_0x1b8f4f):_0x5d1f46(_0x1b8f4f))||_0x1b8f4f);return _0x3b1729&&_0x1b8f4f&&Yi(_0x3755c3,_0x4de9b9,_0x1b8f4f),_0x1b8f4f;},ee=(_0x42d15d,_0x43e11b)=>(_0x2e80e9,_0x43c76c)=>_0x43e11b(_0x2e80e9,_0x43c76c,_0x42d15d);exports[_0x4d97e8(0x381)]=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x4d345b,_0x1a848,_0x113903,_0x21d5c3,_0x359b67,_0x1c862d){const _0x20372f=_0x4d97e8;super(),this[_0x20372f(0x3c7)]=_0x4d345b,this[_0x20372f(0x188)]=_0x1a848,this['_commandService']=_0x113903,this[_0x20372f(0x28a)]=_0x21d5c3,this[_0x20372f(0x383)]=_0x359b67,_0x1c862d?_0x1c862d==null||_0x1c862d[_0x20372f(0xa7)]()['then'](()=>this['_init']()):(this[_0x20372f(0x188)][_0x20372f(0x403)]('[DataLoaderController]',_0x20372f(0xf9)),this[_0x20372f(0x27e)]());}async[_0x4d97e8(0x27e)](){const _0x440537=_0x4d97e8,_0x1b1a6e=this[_0x440537(0x3c7)][_0x440537(0x3f9)](_0x440537(0x452)),_0x1635a5=this['_urlService'][_0x440537(0x3f9)](_0x440537(0x366));if(!_0x1b1a6e||!_0x1635a5){this[_0x440537(0x188)][_0x440537(0x403)](_0x440537(0x465),_0x440537(0xb9));return;}switch(Number(_0x1635a5)){case $['UNIVER_SHEET']:{const _0x5cd625=await this[_0x440537(0x1e4)](_0x1b1a6e);this['_setupSubUnitSync'](_0x5cd625);break;}case $['UNIVER_DOC']:{await this[_0x440537(0x418)](_0x1b1a6e);break;}default:{this[_0x440537(0x188)]['error'](_0x440537(0x465),_0x440537(0x377));break;}}}async[_0x4d97e8(0x3ac)](_0x48acbb){const _0x51a207=_0x4d97e8;await this[_0x51a207(0x48d)](_0x48acbb),_0x48acbb[_0x51a207(0x297)][_0x51a207(0x488)](v['takeUntil'](this['dispose$']))[_0x51a207(0x1c4)](_0xcb294=>{const _0x34fce7=_0x51a207;_0xcb294&&this[_0x34fce7(0x2c1)](_0xcb294);}),this[_0x51a207(0x3c7)][_0x51a207(0x41f)][_0x51a207(0x488)](v['takeUntil'](this['dispose$']))[_0x51a207(0x1c4)](()=>this['_updateSubUnitFromURLParams'](_0x48acbb));}[_0x4d97e8(0x2c1)](_0x499ff3,_0x67468a=!0x1){const _0xf46787=_0x4d97e8,_0x531d4a=this[_0xf46787(0x3c7)][_0xf46787(0x3f9)](_0xf46787(0x48c));_0x499ff3[_0xf46787(0x436)]()!==_0x531d4a&&this[_0xf46787(0x3c7)][_0xf46787(0x41e)]('subunit',_0x499ff3[_0xf46787(0x436)](),_0x67468a);}async[_0x4d97e8(0x48d)](_0x415f47){const _0x18fa7d=_0x4d97e8;var _0x14bdb0;const _0x20ad24=this[_0x18fa7d(0x3c7)][_0x18fa7d(0x3f9)](_0x18fa7d(0x48c));if(!_0x20ad24||!_0x415f47['getSheetBySheetId'](_0x20ad24)){const _0x28327e=_0x415f47[_0x18fa7d(0x155)]()[0x0],_0x4a60a5=_0x415f47[_0x18fa7d(0x19e)](_0x28327e);if(!_0x4a60a5)return;this['_updateURLWithCurrentState'](_0x4a60a5,!0x0),await this['_commandService'][_0x18fa7d(0x1b5)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x415f47[_0x18fa7d(0x46c)](),'subUnitId':_0x28327e});return;}((_0x14bdb0=_0x415f47[_0x18fa7d(0x1fe)]())==null?void 0x0:_0x14bdb0[_0x18fa7d(0x436)]())!==_0x20ad24&&await this['_commandService'][_0x18fa7d(0x1b5)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x415f47['getUnitId'](),'subUnitId':_0x20ad24});}async['_loadSheet'](_0x236d78){const _0x2a3698=_0x4d97e8;let _0x3800b8=0x0;const _0x30a095=await this[_0x2a3698(0x28a)]['loadOfflineData'](_0x236d78);return _0x30a095&&(_0x30a095['awaitingChangeset']||_0x30a095[_0x2a3698(0x20f)][_0x2a3698(0x424)]!==0x0)&&(_0x3800b8=_0x30a095[_0x2a3698(0x1e6)]),_0x3800b8===0x0&&this[_0x2a3698(0x188)][_0x2a3698(0x403)]('[DataLoaderController]',_0x2a3698(0x240)),this['_snapshotService']['loadSheet'](_0x236d78,_0x3800b8);}async[_0x4d97e8(0x418)](_0x207dc1){const _0x4c311e=_0x4d97e8;let _0x18fbbe=0x0;const _0x587327=await this[_0x4c311e(0x28a)][_0x4c311e(0x35b)](_0x207dc1);return _0x587327&&(_0x587327[_0x4c311e(0x3e0)]||_0x587327['mutations'][_0x4c311e(0x424)]!==0x0)&&(_0x18fbbe=_0x587327[_0x4c311e(0x1e6)]),_0x18fbbe===0x0&&this[_0x4c311e(0x188)]['debug'](_0x4c311e(0x465),_0x4c311e(0x240)),this[_0x4c311e(0x383)][_0x4c311e(0x489)](_0x207dc1,_0x18fbbe);}},exports['DataLoaderController']=Xi([ee(0x0,Qe),ee(0x1,a[_0x4d97e8(0xeb)]),ee(0x2,a[_0x4d97e8(0x433)]),ee(0x3,a['Inject'](exports[_0x4d97e8(0x18f)])),ee(0x4,a['Inject'](_[_0x4d97e8(0x44a)])),ee(0x5,a[_0x4d97e8(0x444)](Kt[_0x4d97e8(0xc5)]))],exports[_0x4d97e8(0x381)]);var qi=Object[_0x4d97e8(0x8e)],zi=Object[_0x4d97e8(0x100)],Ji=(_0x272803,_0x1da9ae,_0x5bbca8,_0x38650f)=>{for(var _0x369904=_0x38650f>0x1?void 0x0:_0x38650f?zi(_0x1da9ae,_0x5bbca8):_0x1da9ae,_0x573051=_0x272803['length']-0x1,_0x3dda45;_0x573051>=0x0;_0x573051--)(_0x3dda45=_0x272803[_0x573051])&&(_0x369904=(_0x38650f?_0x3dda45(_0x1da9ae,_0x5bbca8,_0x369904):_0x3dda45(_0x369904))||_0x369904);return _0x38650f&&_0x369904&&qi(_0x1da9ae,_0x5bbca8,_0x369904),_0x369904;},_t=(_0x104d03,_0x135917)=>(_0x1a968f,_0x3aa0a8)=>_0x135917(_0x1a968f,_0x3aa0a8,_0x104d03);const Zi=_0x4d97e8(0x12d),Qi=_0x4d97e8(0x221);function _0x2530(){const _0x5c3128=['SNAPSHOT_URL_KEY','_entities','startColumn','permission.content','session.connection-failed','_assignedColors','_snapshotServerService','image/png','onRemoteAck','LIVESHARE_NEW_HOST','ICommandService','OffLineSingle','action','getSheetId','_clearTimeoutTimer','_socket','takeUntil','{fileID}','post','getRenderById','prototype','INGEST','getCollabEntity','_updateCollabCursors','color','@univerjs/drawing','CollaborationSocketService','Optional','eventID','HEARTBEAT_INTERVAL','disposeUnit','_transformSelections','0\x200\x2017\x2016','SnapshotService','LOCAL_CACHE_INTERVAL','CollaborationSession','_online','selections','WebSocketService','json','_removeCollabCursors','unit','univer-online-status-title','RichTextEditingMutation','_unitStatus','clear','delay','CollaborationController','on-line-single_clip0_910_349','xlink:href','fill','[FetchMissState]','_acknowledgedAwaitingChangeset','onMissingChangesets','_waitForHeartbeatResponse','_onUserLeave','LEAVE','useDependency','take','submit\x20changeset\x20error!','[DataLoaderController]','getVpScrollXYInfoByPosToVp','LOGIN_URL_KEY','_changesetSessionId','getItem','originalMeta','getDocRanges','getUnitId','_onConflict','onPointerEnter$','_clearUndo','/new_changes','add','collabStatus.conflict','cursorInfo','height','onload','APPLY_REJECT','has','_cachedData','div','enableSingleActiveInstanceLock','_getCtorByUniverType','getUnit','currentTheme$','RefRangeService','localeService','enableAuthServer','Error\x20on\x20receiving\x20event','_onLocalMutation','_onUserJoin','_isPermissionRej','_pendingMutations','handleInsertCol','_getUploadFileURL','pipe','loadDoc','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','useObservable','subunit','_updateSubUnitFromURLParams','univer-pro.collaboration-client.single-active-unit-service','_onOffline','_sessions','get','failed\x20to\x20apply\x20missed\x20changesets!','addObjects','_roomMembers$','SessionStatus','/universer-api/oidc/authpage','error','dispose$','_collaborationPaused','randomUUID','pluginName','_registerRenderDependencies','\x0aAfter:\x20','CollaborationEvent','RevisionService','endColumn','&assign=','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','incrementRevOfUnit','ERROR_EXCEED_SIZE','_clearScheduledTask','_sendHeartbeat','pauseCollaboration','collab-client.tooltip.reconnect','_getSaveTimeout','_cursorInfo$','@univerjs/design','LICENSE_DISTRO_REJECTED','Rect','makeDirty','resourceIDs','encodeURIComponent','RETRY_CONNECTING_MAX_COUNT','reverse','_waitCount','saveOfflineData','members','CONFLICT','then','SheetCollabCursorShape','_clearCollaborationTimeoutTimer','transformMutation','_univerInstanceService','session','_transformUndoRedoStack','touchDependencies','getTypeOfUnitDisposed$','switchMap','state','_exhaustRemoteChangesetQueue','_sheetSkeletonManagerService','defineProperty','2702160iGtMDW','telemetry\x20info\x20is\x20not\x20initialized','APPLY_DUPLICATED','duration','equals','CHANGESET_ACK','getUndoRedoMutationParamsCache','_saveTaskMap','NodePositionConvertToCursor','_removeClearOtherTimer','fromEvent','column','_refRangeService','MSG_FOR_ERROR','APPLY_NON_SEQUENTIAL_REVISION','VIEW_MAIN','sid','MessageType','collabStatus.syncing','Shape','subUnitId','_syncEditingCollabCursorService','objectID','WorkbookEditablePermission','whenReady','POST','ICollaborationSocketService','_sendingTimer','hidden','COMPRESS_MUTATION_APPLY','onMissedChangesetFetched','univerjs-icon\x20univerjs-icon-','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_changesetReqId','_color','586104OJZkYx','updateMember','ACTIVE_UNIT_EVENT_CHANNEL','bind','awaiting_with_pending','_onCombEvent','round','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Subject','4109lXCzur','collabCursorState$','_configService','_docSyncEditingCollabCursorService','string','saveSheetBlock','&source=','socketService','indexOf','csRejEvent','IRemoteInstanceService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','updatePermissionPoint','mapTo','_handler','IBeforeCloseService','capture','[CollaborationEntity]','none','assign','updateOfflineData','Injector','_imageSourceCache','@univerjs/network','JOIN','registerComponent','_drawRectRange','open$','UniverCollaborationClientPlugin','uploadFileServerUrl','INotificationService','getUnitType','SHOULD_CLOSE_CONN','getCurrentUnitForType','unit-cache-','_render','reqId','append','_singleActiveUnitService','AuthzIoHttpService','_decreaseWaiting','_listenToOnlineEvent','_disabled','/allowed','/collaborator','replaceTextRanges','_onRecvEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','ILogService','csAckEvent','gold400','fetchMissingChangesets','removeParam','UNAUTHENTICATED','_members','getImage','PSEUDO_FETCH_MISSING_RESULT','USERS_LEAVE','unsubscribe','_hovered','disableLocalCache','_permissionService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_throwTelemetryCollaborationNewChangeset','liveShareNewHost','newValue','_change$','connection\x20error','\x20to\x20','getOwnPropertyDescriptor','1wGPmFZ','_hideTimer','forwardRef','collaboratorID','top','onCommandExecuted','_initStatusListener','values','_substituteRedoStack','LocaleService','_socketService','onRemoteChangeset','_sendHeartbeatTimer','override','name','[CollaborationState]:\x20apply\x20error!','backgroundColor','_saveCache','svg','BehaviorSubject','_docTransformIMECacheService','collaboration-session-retry','transformSelections','getCurrent','TEXT_RANGE_LAYER_INDEX','code','triggerDblclick','HTTPRequest','location','session.will-retry','PERMISSION_DENIED','next','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_redoStacks','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','/-/object/list','_docSkeletonManagerService','c1Prime','substring','_onConnectionFailed','defIds','_anchor','map','@univerjs-pro/collaboration','DEFAULT_FILE_NAME','getCurrentSelections','@univerjs-pro/license','DocIMEInputManagerService','createCollaborator','BuiltInUIPart','mapDocumentTypeToUniverType','_initCommandExecutedListener','ISnapshotServerService','beginPath','setAlpha','_getLoginPath','COMPLETION_FINISHED','throttleTime','permission.title','toStringTag','Inject','createSocket','sessionStatus$','RECV','params','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','IDLE','asObservable','every','split','_colorIndex','NEW_CHANGESETS','text','getMember','716602slKhCK','serializeRangeWithSheet','_socket$','replaceState','_initUnitPermissionChange','joinRsp','[OfflineState]:\x20received\x20rejection.','/universer-api/file/{fileID}/sign-url','APPLY_REVISION_CONFILICT','ALREADY_EXISTS','getUnhiddenWorksheets','_textBubble','TOO_MANY_REQUESTS','UNDEFINED','handleIRemoveRow','transformChangesets','_onCursorUpdate','UNIVER_SHEET','UNIVER_DOC','_clearRedo','red300','onlineStatus','black','HEARTBEAT_INTERVAL_KEY','_clearLocalCache','distinctUntilChanged','_transformService','_scheduleClearOtherTimer','_onFetchMissResult','transformStack\x20failed!','_unlockTransition','/universer-api/snapshot/','collabStatus.synced','pending','extend','ranges','UNIVER_UNKNOWN','Plugin','CONNECTOR_DATA_TOO_LARGE','UniverIcon','conflict.content','@univerjs/engine-formula','InsertRowCommandId','_http','transform','UNIVER_COLLABORATION_CLIENT_PLUGIN','href','CollaborationEntity','sendChangesetTimeout','_undoRedoService','drawWith','withCredentials','_removeRoom','getCellPositionByOffset','flatMap','fetching\x20missing\x20changesets\x20from\x20','SheetSkeletonManagerService','_heartbeatTimer','children','online','_collaborationTimeoutTimer','_logService','actions','onSyncEditingCollabCursor','min','handleInsertRangeMoveDown','ITransformService','InsertRangeMoveRightCommandId','LocalCacheService','_socketMessageSubscription','_toggleOffline','updateCollaborator','_cursor','_backgroundColor','LIVESHARE_OPERATION','hovered','PERMISSION_REJ','HttpExport','fetch_missing','ITelemetryService','now','ThresholdInterceptorFactory','getRelativeToViewportCoord','getSheetBySheetId','_fetchMissChangesets','image/gif','use','getOwnPropertySymbols','_getSnapshotAPIPrefix','addImageSourceCache','onTransformChange$','deepClone','collaMsg','icon','m2Prime','_hover','labelPosition','slice','useRef','onReady','copyFileMeta','getFocusedUnit','/universer-api/authz','delete','@univerjs/engine-render','DesktopCollaborationStatusDisplayController','executeCommand','_updateLocalCache','parseProtocolChangeset','UNIVER_SLIDE','_getAPIPrefix','session.room-full','_tryEnsureSocket','/universer-api/stream/file/upload','CHANGESET_REJ','find','DisposableCollection','_docSkeleton','contains','assignAColorForMemberID','reject','subscribe','_getMergeRange','SUCCUSS','_commandService','merge','_scheduleHeartbeat','RemoveRowCommandId','authzUrl','_handleHeartbeatEvent','_colorAssignService','6815520CgFziX','_id','patch','[SyncedState]:\x20received\x20rejection.','_themeService','_anchorDot','mergeOverrideWithDependencies','/object/','UnitEmbedded','permissionRejEvent','ImageSourceType','fetchThroughInterceptors','call','HEARTBEAT_TIMEOUT','status$','_state','InsertColCommandId','_lockTransition','_refreshCollabCursors','requireSession','disposeWithMe','findNodePositionByCharIndex','_loadSheet','_getCurrentRevision','rev','currentColor','SheetsSelectionsService','auth.needGotoLoginAlert','method','SheetCollaborationEntity','_onRemoteRejected','\x20in\x20_schedule.','fillStyle','handleInsertRangeMoveRight','DependentOn','NO_OTHER_CLIENTS_EDITING','body','SetTextSelectionsOperation','getConfig','focused$','SnapshotServerOverHTTPService','userID','stringify','src','onTransformRemoteChangesetByIMECache','_telemetryService','_getUndoStack','&to=','getActiveSheet','Error','replace','data','hide','toLowerCase','INVALID_ARGUMENT','_revisionService','_applyRemoteChangeset','show','HELLO','_HTTPService','baseRev','MoveRangeCommandId','isTransformMutationFailure','_createInitialState','/fetchmissing?from=','mutations','number','COMPRESS_MUTATION_SEND','image/jpg','_messageService','file','m1Prime','onMouseMove','idSuffix','/unit/','@univerjs/docs-ui','PENDING','DocCollaborationEntity','off-line-single','FileId','1em','ImageUploadStatusType','combineLatest','Univer','save\x20fail\x20reason\x20is\x20','getAncestorScale','_scheduleTimestamp','univer-offline','addEventListener','roomMembers$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','reconnect','_draw','collabStatus.notCollab','uni.network.url-service','[CollaborationSessionService]','fillRule','CommentService','ColorKit','debounceTime','appendMutation','@univerjs/sheets-ui','parse','_substituteUndoStack','4598512HmhGYT','from','getCurrentUser','not_collab','commentUpdate$','transformRemoteChangeset','@univerjs/ui','url','save','HEADER_MENU','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','handleDeleteRangeMoveLeft','doc.mutation.rich-text-editing','LICENSE_MAX_UNITS_EXCEEDED','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','InsertSheetMutation','addObject','\x20-\x20','IUniverInstanceService','history','UNKNOWN_CMD','getTypeOfUnitAdded$','SheetPermissionInitController','set','responseType','arc','deleteCollaborator','row','_replaceFileID','LIVESHARE_FETCH_OPERATIONS','conflict','concat','_updateLocalCursor','toDisposable','[CollaborationSession]','...','Warning','storage','enableLocalCache','off-line-single_clip0_910_343','collab-text-range-','sheets','SNAPSHOT_HAS_BEEN_REMOVED','UniverCollaborationPlugin','UniverInstanceType','YUUMI_UNABLE_LOAD_URL','Tooltip','confirm','_lastPointer','_updateStatus','update','_syncEditingCollabCursor','getCollabEntity$','_initEventListeners','transformUndoRedo','_initRequestHeader','size','synced','CollaborationSessionService','_cursorShapes','isActive','fromEventSubject','onPointerLeave$','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_name','blue400','putCollaborators','[OfflineState]:\x20received\x20acknowledgement.','offline','unitId\x20is\x20not\x20found','_cursors','IAuthzIoService','_init','image/bmp','newCsEvent','jiqing500','univer-online-status-icon','OFFLINE','onSendChangeset','Vector2','ILocalStorageService','_event$','_createInitialStateImpl','_showConflictNotification','_localCacheService','getResourcesRequest','\x0aCurrent:\x20','_submitChangeset','UNKNOWN_CODE','subscribeEvent','createIdentifier','some','onTransformSelections','docStateChange$','IPermissionService','react','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','activeSheet$','shareReplay','exhaustSavingTask','_timeoutTimer','push','_transformIMECache','[CollaborationUndoRedoService]','toRgbString','registerRenderModule','_roomMembers','setUndoRedoMutationParamsCache','random','DocStateChangeManagerService','deserializeRangeWithSheet','transformMutationsWithChangeset','/universer-api/comb','LIVESHARE_TERMINATE','SEND_CHANGESET_TIMEOUT','batchAllowed','_unitOnClients','_rescheduleHeartbeat','colorChannel1','_joinRoom','_drawTextRange','getValue','_onJoinRoomEvent','_shapes','handleIRemoveCol','_uiPartsService','Module','listCollaborators','workbook','_docTransformSelectionsService','UNRECOGNIZED','transformByState','getUnitOnRev','_httpService','updatePermissionObjEvent','getCollabCursors$','roomMembers','_context','LICENSE_EXPORT_SIZE_EXCEEDED','_updateURLWithCurrentState','registerHTTPInterceptor','_onRefRangeChange','SNAPSHOT_SERVER_URL_KEY','font','_getSendChangesetTimeout','_document','_onRemoteACK','CHANGESET_REVISION_CONFILICT','CollaborationStatusDisplay','_userManagerService','symbol','_injector','_docStateChangeManagerService','_socketReady','RxDisposable','retryConnectingInterval','readAsDataURL','LIVESHARE_REQUEST_HOST','_notificationService','SYNCED','create','BASE64','collabStatus.offline','_startCollaboration','sessionStatus','@univerjs/sheets','_getRedoStack','INTERNAL_ERROR','isInternalEditorID','_registerDependencies','_beforeCloseService','sheetId','evenodd','objects','CollaborationStatus','_getAnchorBounding','getSheetBlock','_unitID','getSheetObject','_initStatusComponent','objectType','[UniverCollaborationClientPlugin]','LOCAL_CACHE_INTERVAL_KEY','collaboration.single-unit.warning','ONLINE','memberID','getRangePointData','status','M0\x200H16V16H0z','FETCH_MISSING','ws://127.0.0.1:8000/universer-api/comb/connect','_executeRemoteChangeset','headers','image/jpeg','syncEditingCollabCursor','_labelPosition','_disableEditing','InsertRangeMoveDownCommandId','[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.','IUndoRedoService','width','_incrementRevisionNumber','setShapeProps','clearInterval','bottom','CommandType','fillText','_sheetTransformSelectionsService','NOT_COLLAB','getDeserializedSheetBlock','_scheduleCollaborationTimeoutTimer','createInstance','USERS_ENTER','snapshotServerUrl','measureText','univer-pro.collaboration-client-socket-service','onCommentUpdate','JSONX','FETCH_MISS','objectActions','SUBMIT_CHANGESET','onRemoteRej','getRandomValues','loginUrlKey','joinEvent','isTransformChangesetsSuccess','IMessageService','/block/','pushState','APPLY_PERMISSION_DENIED','attrs','IImageIoService','_session','_candidateSocket','_collaborationController','tag','sequenceExecute','_retryCount','state$','_replayCachedMutations','awaiting','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabSessionService','_eventUnsubscribe','_handleLeaveEvent','init','getLatestCsReqIdBySid','FAIL','YUUMI_URL_COL_OUT_OF_RANGE','listRoles','_listenToOfflineEvent','unitID','IConfigService','closePath','_getSignURL','cmd','routeKey','dispose','_undoStacks','textRanges','DeleteRangeMoveLeftCommandId','univer-online-status','_collabCursorController','isTransformMutationsWithChangesetSuccess','@univerjs/telemetry','toString','socket\x20close','HEARTBEAT','textEncoder','x-univer-host','stopTime','_initResize','getMemberID','UserManagerService','socket$','JOINING','_checkMissing','getColor','clipPath','getUniverSheetInstance','YUUMI_RATE_OVER_LIMIT','setWaitCount','isPermissionRej','_transitionLocked','trim','Undefined','_getDownloadEndpointURL','filter','setInterval','#fff','/rev/','reduce','?url=','loadOfflineData','connectInjector','getMergeData','commentUpdateEvent','RegularPolygon','_getAPIPrefixPath','_getSheetObject','_send','MUTATION','closeSession','_onCursorDelete','type','startsWith','_instanceService','_clearHeartbeatTimer','with','leaveEvent','_schedule','interceptor','setItem','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','complete','ImageIoService','url(#on-line-single_clip0_910_349)','forEach','_transformRemoteChangesetByIMECache','getSkeleton','onStarting','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Tools','max','error$','HTTPService','signUrlServerUrl','apply','title','_config','AWAITING_WITH_PENDING','DataLoaderController','selection','_snapshotService','put','saveImage','_onConnectionOpen','81ossbrx','getUnitStatus$','_scene','isArray','path','toggleOffline','unknown','DocSkeletonManagerService','_telemetryInfo','2121350rQgIKF','_ensureSubject','handleDeleteRangeMoveUp','ENSURE_SNAPSHOT_EXECUTION','className','debounce','_collabCursorState$','serializeCombRequest','revision','rxjs/operators','@univerjs/rpc','LICENSE_IMPORT_SIZE_EXCEEDED','Disposable','registerRefRange','NOT_FOUND','AUTHZ_URL_KEY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getInterceptPoints','_compressMutationService','clearTimeout','setCurrentUser','requestParams','FromArray','_memberService','OTHER_CLIENTS_EDITING','_startDocCollabCursor','Unknown\x20user','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_setupSubUnitSync','_awaitingChangeset','_entityInit$','getRoom','_onMessage','b64DecodeUnicode','onlineStatusTitle','/role','LocalUndoRedoService','_tryReconnect','c2Prime','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','lineTo','range','target','close$','_createHandler','result','getCoordByCell','_selfUnitIDs','_handleJoinEvent','editing\x20status\x20changed\x20to','_clearOtherTimers','9210LMBYGD','setTimeout','collabStatus.fetchMiss','catch','_urlService','fetchMiss','XHRHTTPImplementation','_commentUpdate$','IRenderManagerService','ERROR_IMAGE','_transformUndoredo','toggleOnline','_stopTelemetryCollaborationNewChangeset','onTransformIME','resend','_drawAnchor','@univerjs/core','_updateState','collaboration-client.offline-data-not-saved','send','cursorInfo$','_handleHover','includes','_transformPreviousActiveRange','url(#$1','_queuedRemoteChangesets','_localStorageService','url(#off-line-single_clip0_910_343)','_initCloseConn','awaitingChangeset','getTime','saveChangeset','onRendered','event$','parseChangesetToProtocol','getAttachHeader','[OfflineState]:\x20received\x20changeset.','IUIPartsService','encode','_toggleOnline','changesets','searchParams','isValidRectRange','_shouldReportTelemetry','registerOnClose','UPDATE_PERMISSION_OBJ','transformIMECache','unitId','ThemeService','_startSheetCollabCursor','removeMember','/resources','setActiveRange','_state$','getParam','moveTo','onPointerMove$','_createSocket','restore','close','univer-online','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onlyLocal','getCurrentRevOfUnit','debug','_renderManagerService','_type','defs','EffectRefRangId','_status$','sheetID','unshift','SNAPSHOT_INVALID_SNAPSHOT','roomInfos','?size=','_localeService','ERROR_IMAGE_TYPE','_remoteChangesetQueue','displayName','_sessionStatus$','_startTelemetryCollaborationNewChangeset','_collaborationSessionService','UPDATE_CURSOR','createElement','_retryConnectingTimer','_loadDoc','COLORS','_range','session.collaboration-timeout','message$','CompressMutationService','setParam','urlChange$','SetSelectionsOperation','_transformStack','_onRemoteChangeset','generateRandomId','length','propertyIsEnumerable','getActiveRange','key','DocSelectionManagerService'];_0x2530=function(){return _0x5c3128;};return _0x2530();}let Ce=class extends a['Disposable']{constructor(_0x27d7ee,_0x423fac){const _0x71a67e=_0x4d97e8;super(),this[_0x71a67e(0x85)]=_0x27d7ee,this[_0x71a67e(0xbd)]=_0x423fac,this[_0x71a67e(0x27e)]();}[_0x4d97e8(0x27e)](){const _0x11ddb9=_0x4d97e8;this['disposeWithMe'](this['_univerInstanceService'][_0x11ddb9(0x1f5)]['subscribe'](()=>{const _0x15397a=_0x11ddb9;var _0x10a293;const _0xff5135=this[_0x15397a(0x85)][_0x15397a(0x1b0)]();let _0x361583=(_0x10a293=this[_0x15397a(0xbd)][_0x15397a(0x1f4)](Zi))!=null?_0x10a293:Qi;_0xff5135 instanceof a['Workbook']&&(_0x361583=_0xff5135['name']),document[_0x15397a(0x37e)]=_0x361583;}));}};Ce=Ji([_t(0x0,a['IUniverInstanceService']),_t(0x1,a[_0x4d97e8(0x332)])],Ce);var en=Object[_0x4d97e8(0x8e)],tn=Object[_0x4d97e8(0x100)],sn=(_0x1d4d2d,_0x65b85c,_0x351fc5,_0x322bc2)=>{const _0x305896=_0x4d97e8;for(var _0x22c61d=_0x322bc2>0x1?void 0x0:_0x322bc2?tn(_0x65b85c,_0x351fc5):_0x65b85c,_0x1d4183=_0x1d4d2d[_0x305896(0x424)]-0x1,_0x10aee2;_0x1d4183>=0x0;_0x1d4183--)(_0x10aee2=_0x1d4d2d[_0x1d4183])&&(_0x22c61d=(_0x322bc2?_0x10aee2(_0x65b85c,_0x351fc5,_0x22c61d):_0x10aee2(_0x22c61d))||_0x22c61d);return _0x322bc2&&_0x22c61d&&en(_0x65b85c,_0x351fc5,_0x22c61d),_0x22c61d;},He=(_0x4a4d12,_0x232ae4)=>(_0xdfe897,_0x3fa3c3)=>_0x232ae4(_0xdfe897,_0x3fa3c3,_0x4a4d12);let Ee=class{constructor(_0x162196,_0x22968e,_0x144572){const _0x16ab29=_0x4d97e8;this[_0x16ab29(0xbd)]=_0x162196,this['_httpService']=_0x22968e,this[_0x16ab29(0x47f)]=_0x144572,this[_0x16ab29(0x32b)]();}[_0x4d97e8(0x32b)](){const _0x3ad725=_0x4d97e8;this['_httpService'][_0x3ad725(0x2c2)]({'priority':0x1,'interceptor':(_0x2595b9,_0x1ea5c1)=>_0x1ea5c1(_0x2595b9)[_0x3ad725(0x488)](v['concatMap'](async _0x1429c6=>{const _0x4bcec1=_0x3ad725,_0x4602b0=_0x1429c6;if(_0x4602b0[_0x4bcec1(0x2f1)]===0x191&&window[_0x4bcec1(0x265)](this[_0x4bcec1(0x47f)]['t'](_0x4bcec1(0x1e9)))){const _0x151b96=window[_0x4bcec1(0x4b0)](window['location'][_0x4bcec1(0x179)]);window[_0x4bcec1(0x11d)][_0x4bcec1(0x179)]=this[_0x4bcec1(0x138)]()+_0x4bcec1(0x35a)+_0x151b96;}return _0x4602b0;}))});}[_0x4d97e8(0x138)](){const _0x1074fc=_0x4d97e8;var _0x5b9273,_0x412d1b;const _0x421d00=this[_0x1074fc(0xbd)][_0x1074fc(0x1f4)](Et),_0x16379e=this['_configService'][_0x1074fc(0x1f4)](L);return(_0x412d1b=(_0x5b9273=_0x16379e==null?void 0x0:_0x16379e[_0x1074fc(0x315)])!=null?_0x5b9273:_0x421d00)!=null?_0x412d1b:ns;}};Ee=sn([He(0x0,a[_0x4d97e8(0x332)]),He(0x1,a[_0x4d97e8(0x13d)](w['HTTPService'])),He(0x2,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)]))],Ee);var nn=Object['defineProperty'],rn=Object[_0x4d97e8(0x100)],on=(_0x1fa979,_0x35373b,_0x594057,_0x25a371)=>{const _0x255c14=_0x4d97e8;for(var _0xe99fee=_0x25a371>0x1?void 0x0:_0x25a371?rn(_0x35373b,_0x594057):_0x35373b,_0x5e6b5d=_0x1fa979[_0x255c14(0x424)]-0x1,_0x2e2fc8;_0x5e6b5d>=0x0;_0x5e6b5d--)(_0x2e2fc8=_0x1fa979[_0x5e6b5d])&&(_0xe99fee=(_0x25a371?_0x2e2fc8(_0x35373b,_0x594057,_0xe99fee):_0x2e2fc8(_0xe99fee))||_0xe99fee);return _0x25a371&&_0xe99fee&&nn(_0x35373b,_0x594057,_0xe99fee),_0xe99fee;},ut=(_0x5cdfe1,_0x5e1edf)=>(_0x1c5f23,_0x5bec35)=>_0x5e1edf(_0x1c5f23,_0x5bec35,_0x5cdfe1);const jt=_0x4d97e8(0x39f),an=_0x4d97e8(0x1b1);exports[_0x4d97e8(0xe2)]=class extends a[_0x4d97e8(0x39c)]{constructor(_0x5b3b5b,_0x47c780){const _0x3efac7=_0x4d97e8;super(),this['_HTTPService']=_0x5b3b5b,this[_0x3efac7(0xbd)]=_0x47c780,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x57ced7=_0x4d97e8,_0x30e306=this;this['disposeWithMe'](this[_0x57ced7(0x209)][_0x57ced7(0x2c2)]({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x94200d){const _0x3b23eb=_0x57ced7;var _0x1bc760;if(_0x94200d[_0x3b23eb(0x1ea)]==='POST'&&((_0x1bc760=_0x94200d[_0x3b23eb(0x3a5)])!=null&&_0x1bc760['body'])){const {objectID:_0x50232d,objectType:_0x2d0b98}=_0x94200d[_0x3b23eb(0x3a5)][_0x3b23eb(0x1f2)]||{};if(!_0x50232d||_0x2d0b98===void 0x0)return!0x1;const _0x4b4863=_0x30e306[_0x3b23eb(0x360)]()+'/'+_0x2d0b98+_0x3b23eb(0x1d5)+_0x50232d+_0x3b23eb(0xe6);if(_0x94200d[_0x3b23eb(0x23d)]===_0x4b4863)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x32ac20){const _0x3aaed6=_0x57ced7;var _0x186825;return(_0x186825=_0x32ac20[_0x3aaed6(0x3a5)])==null?void 0x0:_0x186825['body'];},'mergeParamsToRequest'(_0x784356,_0x3b321d){const _0x41900f=_0x57ced7,_0x1a8202=_0x30e306[_0x41900f(0x360)]()+'/-/object/-/batch_allowed',_0x3199bf=_0x784356[_0x41900f(0x359)]((_0xb4409e,_0x123deb)=>{const _0x4a86b4=_0x41900f,{unitID:_0x44b807,objectID:_0x7e0a69,objectType:_0x83ffcc,actions:_0x2e3e75}=_0x123deb;return _0xb4409e[_0x44b807]||(_0xb4409e[_0x44b807]={}),_0xb4409e[_0x44b807][_0x7e0a69]||(_0xb4409e[_0x44b807][_0x7e0a69]={'objectID':_0x7e0a69,'objectType':_0x83ffcc,'actions':[]}),_0xb4409e[_0x44b807][_0x7e0a69][_0x4a86b4(0x189)]['push'](..._0x2e3e75),_0xb4409e;},{}),_0x1c53a1=[];for(const _0x827cae in _0x3199bf)for(const _0x225e13 in _0x3199bf[_0x827cae]){const {actions:_0x1f5af1,objectType:_0x41e73b}=_0x3199bf[_0x827cae][_0x225e13],_0x4651ed=[...new Set(_0x1f5af1)];_0x1c53a1[_0x41900f(0x29b)]({'unitID':_0x827cae,'objectID':_0x225e13,'objectType':_0x41e73b,'actions':_0x4651ed});}return new w[(_0x41900f(0x11c))](_0x41900f(0xa8),_0x1a8202,{'headers':_0x3b321d[_0x41900f(0x2f6)],'withCredentials':_0x3b321d[_0x41900f(0x17e)],'responseType':_0x3b321d[_0x41900f(0x24e)],'body':{'requests':_0x1c53a1}});}},{'distributeResult'(_0x4d3966,_0x14fcbc){const _0x278b9e=_0x57ced7,{objectActions:_0x432f2c}=_0x4d3966;return _0x14fcbc[_0x278b9e(0x12b)](_0xf9f96=>{const _0x3f27ce=_0x278b9e,{unitID:_0x229d37,objectID:_0x48b309,actions:_0x4ce7cb}=_0xf9f96,_0x3e06e7=_0x432f2c['find'](_0x386667=>_0x386667[_0x3f27ce(0x331)]===_0x229d37&&_0x386667['objectID']===_0x48b309),_0x23a701=_0x4ce7cb[_0x3f27ce(0x12b)](_0x2c6ee8=>_0x3e06e7==null?void 0x0:_0x3e06e7[_0x3f27ce(0x189)][_0x3f27ce(0x1be)](_0x395693=>_0x395693[_0x3f27ce(0x435)]===_0x2c6ee8))[_0x3f27ce(0x355)](_0x53b137=>!!_0x53b137);return{'config':_0xf9f96,'result':{'actions':_0x23a701,'error':_0x4d3966[_0x3f27ce(0x497)]}};});}})}));}[_0x4d97e8(0x360)](){const _0x54bb72=_0x4d97e8;var _0xc99e72,_0x4346ac;const _0x198616=this['_configService']['getConfig'](jt),_0xf22c67=this['_configService'][_0x54bb72(0x1f4)](L);return(_0x4346ac=(_0xc99e72=_0xf22c67==null?void 0x0:_0xf22c67[_0x54bb72(0x1cb)])!=null?_0xc99e72:_0x198616)!=null?_0x4346ac:an;}async[_0x4d97e8(0x2d6)](_0x28b06b){const _0x38e210=_0x4d97e8,_0xe0af65=this['_getAPIPrefixPath']()+'/'+_0x28b06b[_0x38e210(0x2ea)]+'/object';return(await this[_0x38e210(0x209)]['post'](_0xe0af65,{'body':_0x28b06b}))[_0x38e210(0x1f2)][_0x38e210(0xa5)]||'';}async['list'](_0x5580c9){const _0x33bda5=_0x4d97e8,_0x4fcb59=this[_0x33bda5(0x360)]()+_0x33bda5(0x124);return(await this[_0x33bda5(0x209)]['post'](_0x4fcb59,{'body':_0x5580c9}))[_0x33bda5(0x1f2)][_0x33bda5(0x2e3)];}async[_0x4d97e8(0x268)](_0x179730){const _0x48fcf2=_0x4d97e8,_0x49a317=this['_getAPIPrefixPath']()+'/'+_0x179730[_0x48fcf2(0x2ea)]+_0x48fcf2(0x1d5)+_0x179730[_0x48fcf2(0xa5)];await this[_0x48fcf2(0x209)]['put'](_0x49a317,{'body':_0x179730});}async['allowed'](_0xac1c0b){const _0x2fcc16=_0x4d97e8,_0x15780d=this['_getAPIPrefixPath']()+'/'+_0xac1c0b[_0x2fcc16(0x2ea)]+'/object/'+_0xac1c0b[_0x2fcc16(0xa5)]+_0x2fcc16(0xe6);return(await this[_0x2fcc16(0x209)][_0x2fcc16(0x43b)](_0x15780d,{'body':_0xac1c0b}))[_0x2fcc16(0x1f2)][_0x2fcc16(0x189)];}async[_0x4d97e8(0x2a9)](_0x5e79a7){const _0x331c80=_0x4d97e8,_0x1f02fd=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x331c80(0x209)][_0x331c80(0x43b)](_0x1f02fd,{'body':{'requests':_0x5e79a7}}))[_0x331c80(0x1f2)][_0x331c80(0x311)];}async[_0x4d97e8(0x32f)](_0x59f2b3){const _0x2625f9=_0x4d97e8,_0x805c7=this[_0x2625f9(0x360)]()+'/'+_0x59f2b3['objectType']+_0x2625f9(0x3b3),_0x25b14b=await this[_0x2625f9(0x209)]['post'](_0x805c7,{'body':_0x59f2b3});return{'roles':_0x25b14b['body']['roles'],'actions':_0x25b14b['body'][_0x2625f9(0x189)]};}async[_0x4d97e8(0x250)](_0x2f697f){const _0x139046=_0x4d97e8,_0x1de301=this[_0x139046(0x360)]()+'/collaborator';await this['_HTTPService'][_0x139046(0x1b2)](_0x1de301,{'params':{'collaboratorID':_0x2f697f[_0x139046(0x104)],'objectID':_0x2f697f['objectID'],'unitID':_0x2f697f[_0x139046(0x331)]}});}async[_0x4d97e8(0x192)](_0x4e06d5){const _0x570b1e=_0x4d97e8,_0x15bb89=this['_getAPIPrefixPath']()+_0x570b1e(0xe7);await this['_HTTPService'][_0x570b1e(0x1d0)](_0x15bb89,{'body':_0x4e06d5});}async[_0x4d97e8(0x131)](_0x2d8ba2){const _0x421331=_0x4d97e8,_0x2b7638=this[_0x421331(0x360)]()+'/collaborator';await this['_HTTPService'][_0x421331(0x43b)](_0x2b7638,{'body':_0x2d8ba2});}async[_0x4d97e8(0x2b5)](_0x18b39f){const _0x1de4d0=_0x4d97e8,_0x33af41=this[_0x1de4d0(0x360)]()+_0x1de4d0(0xe7);return(await this['_HTTPService'][_0x1de4d0(0x491)](_0x33af41,{'params':{'objectID':_0x18b39f[_0x1de4d0(0xa5)],'unitID':_0x18b39f['unitID']}}))[_0x1de4d0(0x1f2)]['collaborators'];}async[_0x4d97e8(0x278)](_0x9958ff){const _0x2be83f=_0x4d97e8,_0x5b8037=this[_0x2be83f(0x360)]()+_0x2be83f(0xe7);await this[_0x2be83f(0x209)][_0x2be83f(0x384)](_0x5b8037,{'body':_0x9958ff});}},exports[_0x4d97e8(0xe2)]=on([ut(0x0,a[_0x4d97e8(0x13d)](w['HTTPService'])),ut(0x1,a[_0x4d97e8(0x13d)](a['IConfigService']))],exports[_0x4d97e8(0xe2)]);var cn=Object['defineProperty'],ln=Object[_0x4d97e8(0x100)],hn=(_0x5709ba,_0x14b2c4,_0x16238e,_0x2a8224)=>{for(var _0x1fe1e4=_0x2a8224>0x1?void 0x0:_0x2a8224?ln(_0x14b2c4,_0x16238e):_0x14b2c4,_0x2031f6=_0x5709ba['length']-0x1,_0x477beb;_0x2031f6>=0x0;_0x2031f6--)(_0x477beb=_0x5709ba[_0x2031f6])&&(_0x1fe1e4=(_0x2a8224?_0x477beb(_0x14b2c4,_0x16238e,_0x1fe1e4):_0x477beb(_0x1fe1e4))||_0x1fe1e4);return _0x2a8224&&_0x1fe1e4&&cn(_0x14b2c4,_0x16238e,_0x1fe1e4),_0x1fe1e4;},_n=(_0x49e4e4,_0x322984)=>(_0x399ce2,_0x20424c)=>_0x322984(_0x399ce2,_0x20424c,_0x49e4e4);let be=class{constructor(_0xf2b918){const _0x1a0782=_0x4d97e8;this[_0x1a0782(0x2bb)]=_0xf2b918,this['_initRequestHeader']();}[_0x4d97e8(0x26d)](){const _0x479d00=_0x4d97e8;this[_0x479d00(0x2bb)]['registerHTTPInterceptor']({'interceptor':(_0x2b1273,_0x16262b)=>{const _0x14b528=_0x479d00,_0x2807e6=_0x2b1273['headers'],_0x36a93e=Xt[_0x14b528(0x3e6)]();return _0x36a93e&&_0x2807e6[_0x14b528(0x24d)](_0x14b528(0x343),_0x36a93e),_0x16262b(_0x2b1273);}});}};be=hn([_n(0x0,a[_0x4d97e8(0x13d)](w['HTTPService']))],be);var un=Object[_0x4d97e8(0x8e)],dn=Object[_0x4d97e8(0x100)],Sn=(_0x2f9d2d,_0x40aa36,_0x1c2c82,_0x518121)=>{const _0x36eb70=_0x4d97e8;for(var _0x4a92c3=_0x518121>0x1?void 0x0:_0x518121?dn(_0x40aa36,_0x1c2c82):_0x40aa36,_0x1c3595=_0x2f9d2d[_0x36eb70(0x424)]-0x1,_0x54382a;_0x1c3595>=0x0;_0x1c3595--)(_0x54382a=_0x2f9d2d[_0x1c3595])&&(_0x4a92c3=(_0x518121?_0x54382a(_0x40aa36,_0x1c2c82,_0x4a92c3):_0x54382a(_0x4a92c3))||_0x4a92c3);return _0x518121&&_0x4a92c3&&un(_0x40aa36,_0x1c2c82,_0x4a92c3),_0x4a92c3;},xe=(_0x26e757,_0x5727ca)=>(_0x2debaa,_0x514f22)=>_0x5727ca(_0x2debaa,_0x514f22,_0x26e757);const vn=[_0x4d97e8(0x430),_0x4d97e8(0x2f7),_0x4d97e8(0x212),_0x4d97e8(0x1a0),_0x4d97e8(0x27f)],gn=0x5*0x400*0x400,mn=_0x4d97e8(0x3ab),fn=_0x4d97e8(0x1bc),In=_0x4d97e8(0xaf),pn=_0x4d97e8(0x152);exports[_0x4d97e8(0x371)]=class{constructor(_0x303ac0,_0x37ce35,_0x5a976f){const _0x5ae33e=_0x4d97e8;u(this,'_waitCount',0x0),u(this,_0x5ae33e(0xfd),new v[(_0x5ae33e(0xba))]()),u(this,'change$',this[_0x5ae33e(0xfd)]),u(this,_0x5ae33e(0xd1),new Map()),(this['_httpService']=_0x303ac0,this[_0x5ae33e(0xbd)]=_0x37ce35,this[_0x5ae33e(0x85)]=_0x5a976f);}[_0x4d97e8(0x34f)](_0x244704){const _0x570d40=_0x4d97e8;this[_0x570d40(0x4b3)]=_0x244704,this[_0x570d40(0xfd)][_0x570d40(0x120)](_0x244704);}['getImageSourceCache'](_0x37c1f0,_0x17aad4){const _0x268509=_0x4d97e8;if(_0x17aad4===j['ImageSourceType'][_0x268509(0x2d7)]){const _0x179f50=new Image();return _0x179f50[_0x268509(0x1f9)]=_0x37c1f0,_0x179f50;}return this[_0x268509(0xd1)]['get'](_0x37c1f0);}[_0x4d97e8(0x1a4)](_0x216ad7,_0x17a807,_0xab281c){const _0x4489f1=_0x4d97e8;_0x17a807===j['ImageSourceType']['BASE64']||_0xab281c==null||this[_0x4489f1(0xd1)]['set'](_0x216ad7,_0xab281c);}async[_0x4d97e8(0xf2)](_0x489c99){const _0xc8d722=_0x4d97e8;try{const _0x11f414=this[_0xc8d722(0x252)](this[_0xc8d722(0x334)](),''+_0x489c99),_0xb716fa=(await this['_httpService'][_0xc8d722(0x491)](_0x11f414))[_0xc8d722(0x1f2)];if(_0xb716fa[_0xc8d722(0x497)]&&_0xb716fa[_0xc8d722(0x497)][_0xc8d722(0x11a)]===bt['OK']){const _0x47ff25=new URL(_0xb716fa[_0xc8d722(0x23d)],this['_getDownloadEndpointURL']())[_0xc8d722(0x33f)]();return Promise['resolve'](_0x47ff25);}return Promise[_0xc8d722(0x1c3)](_0xb716fa['error']);}catch(_0x229f67){return Promise['reject'](_0x229f67);}}async[_0x4d97e8(0x385)](_0xace28e){const _0x51e2e0=_0x4d97e8;let _0x443672='';if(!vn[_0x51e2e0(0x3d9)](_0xace28e[_0x51e2e0(0x366)]))return this[_0x51e2e0(0xe3)](),Promise['reject'](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x40f)]));if(_0xace28e[_0x51e2e0(0x26e)]>gn)return this[_0x51e2e0(0xe3)](),Promise[_0x51e2e0(0x1c3)](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x4a4)]));try{const _0x3f98fd=new FormData();_0x3f98fd[_0x51e2e0(0xe0)](_0x51e2e0(0x214),_0xace28e);const _0x2921ba=this[_0x51e2e0(0x85)][_0x51e2e0(0x1b0)](),_0x423bd7=_0x2921ba==null?void 0x0:_0x2921ba[_0x51e2e0(0x46c)]();if(!_0x423bd7)throw new Error(_0x51e2e0(0x27b));const _0x1d47bc=this['_getUploadFileURL']()+_0x51e2e0(0x40d)+_0xace28e[_0x51e2e0(0x26e)][_0x51e2e0(0x33f)]()+_0x51e2e0(0xc1)+Tt['UnitEmbedded']+_0x51e2e0(0x4a1)+encodeURIComponent(_0x423bd7),_0x24f96a=await(await fetch(_0x1d47bc,{'method':'POST','body':_0x3f98fd}))[_0x51e2e0(0x450)]();if(typeof _0x24f96a[_0x51e2e0(0x21d)]!=_0x51e2e0(0xbf))return this[_0x51e2e0(0xe3)](),Promise[_0x51e2e0(0x1c3)](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x3cc)]));_0x443672=_0x24f96a['FileId'];}catch{return this[_0x51e2e0(0xe3)](),Promise[_0x51e2e0(0x1c3)](new Error(j[_0x51e2e0(0x21f)][_0x51e2e0(0x3cc)]));}return new Promise((_0x47f1cc,_0x4778ae)=>{const _0x2de2aa=_0x51e2e0,_0x2b62ea=new FileReader();_0x2b62ea[_0x2de2aa(0x2d2)](_0xace28e),_0x2b62ea[_0x2de2aa(0x475)]=_0x2b118b=>{const _0x35a230=_0x2de2aa;var _0x4c8e9f;const _0x2a215f=(_0x4c8e9f=_0x2b118b[_0x35a230(0x3ba)])==null?void 0x0:_0x4c8e9f['result'];if(_0x2a215f==null){this[_0x35a230(0xe3)](),_0x4778ae(new Error(j[_0x35a230(0x21f)][_0x35a230(0x3cc)]));return;}const _0x4eaffb=a[_0x35a230(0x378)]['generateRandomId'](0x6);_0x47f1cc({'imageId':_0x4eaffb,'imageSourceType':j[_0x35a230(0x1d8)]['UUID'],'source':_0x443672,'base64Cache':_0x2a215f,'status':j[_0x35a230(0x21f)][_0x35a230(0x1c6)]}),this[_0x35a230(0xe3)]();};});}[_0x4d97e8(0x487)](){const _0x2db118=_0x4d97e8;var _0x5ec45a,_0x452ae9;const _0x497eaf=this[_0x2db118(0xbd)]['getConfig'](mn),_0xe57d4=this[_0x2db118(0xbd)]['getConfig'](L);return(_0x452ae9=(_0x5ec45a=_0xe57d4==null?void 0x0:_0xe57d4[_0x2db118(0xd8)])!=null?_0x5ec45a:_0x497eaf)!=null?_0x452ae9:fn;}[_0x4d97e8(0x334)](){const _0x588672=_0x4d97e8;var _0x445a83,_0x590b34;const _0x47f330=this[_0x588672(0xbd)][_0x588672(0x1f4)](In),_0x2780f3=this[_0x588672(0xbd)][_0x588672(0x1f4)](L);return(_0x590b34=(_0x445a83=_0x2780f3==null?void 0x0:_0x2780f3[_0x588672(0x37c)])!=null?_0x445a83:_0x47f330)!=null?_0x590b34:pn;}[_0x4d97e8(0x354)](){const _0x4594f4=_0x4d97e8;var _0x540ca1;const _0x102bf3=this[_0x4594f4(0xbd)][_0x4594f4(0x1f4)](L);return(_0x540ca1=_0x102bf3==null?void 0x0:_0x102bf3['downloadEndpointUrl'])!=null?_0x540ca1:location['origin'];}[_0x4d97e8(0x252)](_0x107ae6,_0xc58021){const _0x3aef5c=_0x4d97e8;return _0x107ae6[_0x3aef5c(0x200)](_0x3aef5c(0x43a),_0xc58021);}['_decreaseWaiting'](){const _0x4f14df=_0x4d97e8;this[_0x4f14df(0x4b3)]-=0x1,this[_0x4f14df(0xfd)]['next'](this[_0x4f14df(0x4b3)]);}},exports[_0x4d97e8(0x371)]=Sn([xe(0x0,a[_0x4d97e8(0x13d)](w[_0x4d97e8(0x37b)])),xe(0x1,a[_0x4d97e8(0x332)]),xe(0x2,a[_0x4d97e8(0x13d)](a['IUniverInstanceService']))],exports[_0x4d97e8(0x371)]);var Cn=Object[_0x4d97e8(0x8e)],En=Object[_0x4d97e8(0x100)],bn=(_0xf4bfdd,_0x54c920,_0xa822,_0x77ca59)=>{const _0x559039=_0x4d97e8;for(var _0x5d9f9d=_0x77ca59>0x1?void 0x0:_0x77ca59?En(_0x54c920,_0xa822):_0x54c920,_0xfd1781=_0xf4bfdd[_0x559039(0x424)]-0x1,_0x1f4d85;_0xfd1781>=0x0;_0xfd1781--)(_0x1f4d85=_0xf4bfdd[_0xfd1781])&&(_0x5d9f9d=(_0x77ca59?_0x1f4d85(_0x54c920,_0xa822,_0x5d9f9d):_0x1f4d85(_0x5d9f9d))||_0x5d9f9d);return _0x77ca59&&_0x5d9f9d&&Cn(_0x54c920,_0xa822,_0x5d9f9d),_0x5d9f9d;},_e=(_0x1f64b9,_0x106b00)=>(_0x4012a3,_0x38ed17)=>_0x106b00(_0x4012a3,_0x38ed17,_0x1f64b9);let Te=class extends a[_0x4d97e8(0x2d0)]{constructor(_0x1acf0e,_0x56f7b2,_0x574965,_0x29471a,_0x6a5e38){const _0x20211e=_0x4d97e8;super(),this['_injector']=_0x1acf0e,this[_0x20211e(0x85)]=_0x56f7b2,this[_0x20211e(0xf8)]=_0x574965,this[_0x20211e(0x414)]=_0x29471a,this['_localeService']=_0x6a5e38,this[_0x20211e(0x14f)](),this[_0x20211e(0x3df)]();}[_0x4d97e8(0x3df)](){const _0x116f44=_0x4d97e8,_0xe23c69=async _0x46b384=>{const _0x2c4da1=_0x4a0f;(await this[_0x2c4da1(0x414)][_0x2c4da1(0x1e1)](_0x46b384))[_0x2c4da1(0x3e4)][_0x2c4da1(0x488)](E[_0x2c4da1(0x355)](_0x5932e0=>_0x5932e0['eventID']===_[_0x2c4da1(0x49e)][_0x2c4da1(0xdb)]),E[_0x2c4da1(0x439)](this['dispose$']))[_0x2c4da1(0x1c4)](_0x4720bd=>{const _0x25522b=_0x2c4da1,_0x4cc251=_0x4720bd,{reason:_0x243a8e}=_0x4cc251['data'];this['_injector'][_0x25522b(0x491)](A['IMessageService'])[_0x25522b(0x207)]({'type':X[_0x25522b(0xa0)][_0x25522b(0x1ff)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x243a8e+')'}),this[_0x25522b(0xf8)][_0x25522b(0xc7)](new C[(_0x25522b(0xa6))](_0x46b384)['id'],!0x1),this[_0x25522b(0x414)]['closeSession'](_0x46b384);});};v['merge'](this[_0x116f44(0x85)][_0x116f44(0x24b)](a[_0x116f44(0x262)][_0x116f44(0x15c)]),this[_0x116f44(0x85)][_0x116f44(0x24b)](a[_0x116f44(0x262)][_0x116f44(0x15d)]))[_0x116f44(0x488)](E['map'](_0x4161b9=>_0x4161b9[_0x116f44(0x46c)]()),E[_0x116f44(0x355)](_0x2d3143=>!a[_0x116f44(0x2de)](_0x2d3143)),E[_0x116f44(0x439)](this['dispose$']))[_0x116f44(0x1c4)](_0x3865c3=>{_0xe23c69(_0x3865c3);});}[_0x4d97e8(0x14f)](){const _0x2be37c=_0x4d97e8,_0x45aca9=async _0x28e013=>{const _0x27a5be=_0x4a0f;(await this[_0x27a5be(0x414)][_0x27a5be(0x1e1)](_0x28e013))['event$'][_0x27a5be(0x488)](E[_0x27a5be(0x355)](_0x27e1ba=>_0x27e1ba[_0x27a5be(0x445)]===_[_0x27a5be(0x49e)][_0x27a5be(0x3f0)]),E[_0x27a5be(0x439)](this[_0x27a5be(0x498)]))['subscribe'](_0x132f99=>{const _0x5b4d75=_0x27a5be,_0x3ad1a2=_0x132f99,{objectId:_0xc60ba5}=_0x3ad1a2['data'],_0xed84f6=this[_0x5b4d75(0x2cd)][_0x5b4d75(0x491)](te[_0x5b4d75(0x24c)]);_0xc60ba5===_0x28e013?_0xed84f6['initWorkbookPermissionChange'](_0x28e013):_0xed84f6['refreshPermission'](_0x28e013,_0xc60ba5);});};v[_0x2be37c(0x1c8)](this[_0x2be37c(0x85)]['getTypeOfUnitAdded$'](a[_0x2be37c(0x262)][_0x2be37c(0x15c)]),this[_0x2be37c(0x85)][_0x2be37c(0x24b)](a[_0x2be37c(0x262)][_0x2be37c(0x15d)]))['pipe'](E[_0x2be37c(0x12b)](_0x57bac9=>_0x57bac9['getUnitId']()),E[_0x2be37c(0x355)](_0x653491=>!a[_0x2be37c(0x2de)](_0x653491)),E[_0x2be37c(0x439)](this['dispose$']))[_0x2be37c(0x1c4)](_0x7da6bd=>{_0x45aca9(_0x7da6bd);});}};Te=bn([_e(0x0,a['Inject'](a[_0x4d97e8(0xd0)])),_e(0x1,a[_0x4d97e8(0x248)]),_e(0x2,a[_0x4d97e8(0x294)]),_e(0x3,a['Inject'](exports['CollaborationSessionService'])),_e(0x4,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0x10a)]))],Te);var Tn=Object[_0x4d97e8(0x8e)],Rn=Object['getOwnPropertyDescriptor'],On=(_0xe04337,_0x46c92d,_0x343c06,_0x448221)=>{const _0x57de00=_0x4d97e8;for(var _0x8770b3=_0x448221>0x1?void 0x0:_0x448221?Rn(_0x46c92d,_0x343c06):_0x46c92d,_0x16a80e=_0xe04337[_0x57de00(0x424)]-0x1,_0x5ed2c4;_0x16a80e>=0x0;_0x16a80e--)(_0x5ed2c4=_0xe04337[_0x16a80e])&&(_0x8770b3=(_0x448221?_0x5ed2c4(_0x46c92d,_0x343c06,_0x8770b3):_0x5ed2c4(_0x8770b3))||_0x8770b3);return _0x448221&&_0x8770b3&&Tn(_0x46c92d,_0x343c06,_0x8770b3),_0x8770b3;},dt=(_0x3e41ae,_0x82da0a)=>(_0x373b4b,_0x337d16)=>_0x82da0a(_0x373b4b,_0x337d16,_0x3e41ae);exports[_0x4d97e8(0x1f6)]=class{constructor(_0x3e3872,_0x39fb5c){const _0x4c6e94=_0x4d97e8;this[_0x4c6e94(0xbd)]=_0x3e3872,this[_0x4c6e94(0x2bb)]=_0x39fb5c;}async[_0x4d97e8(0x2ba)](_0x403fcf,_0x1ea979){const _0x35e0dc=_0x4d97e8;var _0x1b3b42;const {unitID:_0x262281,type:_0x5c2540,revision:_0x47ba3c=0x0}=_0x1ea979,_0x57a1d3=this[_0x35e0dc(0x1a3)]()+'/'+_0x5c2540+_0x35e0dc(0x218)+_0x262281+_0x35e0dc(0x358)+_0x47ba3c,_0x4856df=(await this[_0x35e0dc(0x2bb)][_0x35e0dc(0x491)](_0x57a1d3))[_0x35e0dc(0x1f2)],_0x477d3d=(_0x1b3b42=_0x4856df['snapshot'])==null?void 0x0:_0x1b3b42[_0x35e0dc(0x2b6)];if(_0x477d3d){const _0x2c8d27=_0x477d3d==null?void 0x0:_0x477d3d['originalMeta'],_0x7d261f=_['textEncoder'][_0x35e0dc(0x3e9)](_[_0x35e0dc(0x3b1)](_0x2c8d27));_0x477d3d['originalMeta']=_0x7d261f,Object['entries'](_0x477d3d[_0x35e0dc(0x25f)])[_0x35e0dc(0x373)](([,_0x1f23ad])=>{const _0xdc000d=_0x35e0dc,_0x6b4676=_0x1f23ad['originalMeta'],_0xff9248=_[_0xdc000d(0x342)]['encode'](_[_0xdc000d(0x3b1)](_0x6b4676));_0x1f23ad[_0xdc000d(0x46a)]=_0xff9248;});}return _0x4856df;}async[_0x4d97e8(0x2e6)](_0x5696da,_0x2623b2){const _0x135029=_0x4d97e8,{unitID:_0x11ec59,type:_0x5c084c,blockID:_0x4e70e8}=_0x2623b2,_0x462172=this[_0x135029(0x1b9)]()+'/'+_0x5c084c+_0x135029(0x218)+_0x11ec59+_0x135029(0x319)+_0x4e70e8;return(await this[_0x135029(0x2bb)]['get'](_0x462172))[_0x135029(0x1f2)];}async[_0x4d97e8(0x307)](_0x1df0a3,_0x1f4175){const _0x2d4c3f=_0x4d97e8,{unitID:_0x4db841,type:_0x24973f,blockID:_0x543a89}=_0x1f4175,_0x4f0c7f=this['_getAPIPrefix']()+'/block/'+_0x24973f+'/unit/'+_0x4db841+_0x2d4c3f(0x319)+_0x543a89;return(await this[_0x2d4c3f(0x2bb)][_0x2d4c3f(0x491)](_0x4f0c7f))[_0x2d4c3f(0x1f2)];}async[_0x4d97e8(0xee)](_0x5557e8,_0x3cacef){const _0x105bba=_0x4d97e8,{unitID:_0x59a0e8,type:_0x433782,from:_0x592d8d,to:_0x469cf1}=_0x3cacef,_0x3e60fb=this[_0x105bba(0x1b9)]()+'/'+_0x433782+'/unit/'+_0x59a0e8+_0x105bba(0x20e)+_0x592d8d+_0x105bba(0x1fd)+_0x469cf1;return(await this['_httpService'][_0x105bba(0x491)](_0x3e60fb))[_0x105bba(0x1f2)];}[_0x4d97e8(0x1a3)](){const _0x54fd1b=_0x4d97e8;var _0x2c9f5f;return(_0x2c9f5f=this['_configService'][_0x54fd1b(0x1f4)](vt))!=null?_0x2c9f5f:this[_0x54fd1b(0x1b9)]();}['_getAPIPrefix'](){const _0xf5be10=_0x4d97e8;var _0x125f26,_0x13ed04;const _0x42d84d=this[_0xf5be10(0xbd)][_0xf5be10(0x1f4)](St),_0x52a569=this[_0xf5be10(0xbd)][_0xf5be10(0x1f4)](L);return(_0x13ed04=(_0x125f26=_0x52a569==null?void 0x0:_0x52a569[_0xf5be10(0x30b)])!=null?_0x125f26:_0x42d84d)!=null?_0x13ed04:qt;}async[_0x4d97e8(0x28b)](_0x5d2236,_0x227736){const _0x4af848=_0x4d97e8,_0x663592=_0x4af848(0x16a)+_0x227736[_0x4af848(0x366)]+'/unit/'+_0x227736[_0x4af848(0x331)]+_0x4af848(0x3f6);return(await this[_0x4af848(0x2bb)][_0x4af848(0x491)](_0x663592,{'params':{'resourceId':JSON[_0x4af848(0x1f8)](_0x227736[_0x4af848(0x4af)])}}))['body'];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4d97e8(0xc0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4d97e8(0x3e2)](){const _0x3ca7f5=_0x4d97e8;throw new Error(_0x3ca7f5(0x3a0));}[_0x4d97e8(0x1af)](){const _0x5917ad=_0x4d97e8;throw new Error(_0x5917ad(0x3a0));}[_0x4d97e8(0x32c)](){const _0x115e3=_0x4d97e8;throw new Error(_0x115e3(0x3a0));}},exports[_0x4d97e8(0x1f6)]=On([dt(0x0,a[_0x4d97e8(0x332)]),dt(0x1,a[_0x4d97e8(0x13d)](w[_0x4d97e8(0x37b)]))],exports[_0x4d97e8(0x1f6)]);var Dn=Object[_0x4d97e8(0x8e)],yn=Object['getOwnPropertyDescriptor'],Un=(_0xb789a2,_0x4f634b,_0x1909c4,_0x396cff)=>{const _0x4c15ee=_0x4d97e8;for(var _0x39d577=_0x396cff>0x1?void 0x0:_0x396cff?yn(_0x4f634b,_0x1909c4):_0x4f634b,_0x20d7d4=_0xb789a2[_0x4c15ee(0x424)]-0x1,_0x935c19;_0x20d7d4>=0x0;_0x20d7d4--)(_0x935c19=_0xb789a2[_0x20d7d4])&&(_0x39d577=(_0x396cff?_0x935c19(_0x4f634b,_0x1909c4,_0x39d577):_0x935c19(_0x39d577))||_0x39d577);return _0x396cff&&_0x39d577&&Dn(_0x4f634b,_0x1909c4,_0x39d577),_0x39d577;},ue=(_0x429d75,_0x2adff1)=>(_0x523d6c,_0x2d2a35)=>_0x2adff1(_0x523d6c,_0x2d2a35,_0x429d75);let Fe=class extends a[_0x4d97e8(0x3b4)]{constructor(_0x42550d,_0x22b5a9,_0x314ed8,_0x5a976b,_0x12afb0){const _0x27190c=_0x4d97e8;super(_0x42550d,_0x22b5a9,_0x314ed8),this[_0x27190c(0x165)]=_0x5a976b,this['_logService']=_0x12afb0;}['transformUndoRedo'](_0xe98c1b,_0x2697ee){const _0x44e5cb=_0x4d97e8,_0xbdbd7=this['_getUndoStack'](_0xe98c1b);if(_0xbdbd7)try{const _0x4d1d75=this['_transformStack'](_0xbdbd7,_0x2697ee);this[_0x44e5cb(0x235)](_0xe98c1b,_0x4d1d75);}catch(_0x16c1ba){this['_logService'][_0x44e5cb(0x497)]('[CollaborationUndoRedoService]',_0x16c1ba),this[_0x44e5cb(0x46f)](_0xe98c1b);}const _0x3e3452=this[_0x44e5cb(0x2dc)](_0xe98c1b);if(_0x3e3452)try{const _0x158dbd=this[_0x44e5cb(0x421)](_0x3e3452,_0x2697ee);this[_0x44e5cb(0x109)](_0xe98c1b,_0x158dbd);}catch(_0x9b6663){this[_0x44e5cb(0x188)][_0x44e5cb(0x497)](_0x9b6663),this[_0x44e5cb(0x15e)](_0xe98c1b);}}[_0x4d97e8(0x46f)](_0xcf000){const _0x2c5c2f=_0x4d97e8,_0x16e6ff=this[_0x2c5c2f(0x1fc)](_0xcf000);_0x16e6ff&&(_0x16e6ff['length']=0x0,this[_0x2c5c2f(0x267)]());}['_clearRedo'](_0x4ddf0d){const _0x45a85a=_0x4d97e8,_0x202885=this[_0x45a85a(0x2dc)](_0x4ddf0d);_0x202885&&(_0x202885['length']=0x0,this[_0x45a85a(0x267)]());}[_0x4d97e8(0x235)](_0x705d0b,_0x2dcc54){const _0x162db5=_0x4d97e8;this[_0x162db5(0x338)][_0x162db5(0x24d)](_0x705d0b,_0x2dcc54),this['_updateStatus']();}[_0x4d97e8(0x109)](_0x279805,_0x1388b3){const _0x29d71b=_0x4d97e8;this[_0x29d71b(0x122)][_0x29d71b(0x24d)](_0x279805,_0x1388b3),this[_0x29d71b(0x267)]();}[_0x4d97e8(0x421)](_0x561480,_0x862e50){const _0x24541d=_0x4d97e8,_0x5ee034=[];let _0x279173=_0x862e50,_0xc35218=_0x862e50;for(let _0x11b938=_0x561480[_0x24541d(0x424)]-0x1;_0x11b938>=0x0;_0x11b938--){const {unitID:_0x60e54e,undoMutations:_0x25dbb0,redoMutations:_0x905ff}=_0x561480[_0x11b938],_0x400355=this[_0x24541d(0x165)][_0x24541d(0x2a5)](_0x279173,_0x25dbb0),_0x3ebaf7=this['_transformService'][_0x24541d(0x2a5)](_0xc35218,_0x905ff);if(_['isTransformMutationsWithChangesetFailure'](_0x400355)||_['isTransformMutationsWithChangesetFailure'](_0x3ebaf7)){this['_logService'][_0x24541d(0x497)](_0x24541d(0x29d),_0x24541d(0x168),_0x400355,_0x3ebaf7);break;}_0x279173=_0x400355['c1Prime'],_0xc35218=_0x3ebaf7[_0x24541d(0x126)],_0x5ee034[_0x24541d(0x29b)]({'unitID':_0x60e54e,'undoMutations':_0x400355[_0x24541d(0x1a9)],'redoMutations':_0x3ebaf7['m2Prime']});}return _0x5ee034[_0x24541d(0x4b2)]();}};Fe=Un([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x4d97e8(0x433)]),ue(0x2,a['IContextService']),ue(0x3,_[_0x4d97e8(0x18d)]),ue(0x4,a[_0x4d97e8(0xeb)])],Fe);class $t extends a['RxDisposable']{constructor(){const _0x1c1f93=_0x4d97e8;super(),u(this,_0x1c1f93(0x41f)),this[_0x1c1f93(0x41f)]=v[_0x1c1f93(0x99)](window,'popstate')['pipe'](v[_0x1c1f93(0x439)](this['dispose$']),v[_0x1c1f93(0x298)](0x1),v[_0x1c1f93(0xc8)](void 0x0));}[_0x4d97e8(0x41e)](_0x2d0f57,_0x324c36,_0x2e50f7=!0x1){const _0x4465e8=_0x4d97e8,_0xb445bd=new URL(window['location']['href']);_0xb445bd[_0x4465e8(0x3ec)]['set'](_0x2d0f57,_0x324c36),_0x2e50f7?window[_0x4465e8(0x249)]['replaceState']('','',_0xb445bd['toString']()):window[_0x4465e8(0x249)]['pushState']('','',_0xb445bd[_0x4465e8(0x33f)]());}[_0x4d97e8(0xef)](_0x3714b6,_0x65c459=!0x1){const _0x4a4531=_0x4d97e8,_0x1c372d=new URL(window[_0x4a4531(0x11d)]['href']);_0x1c372d[_0x4a4531(0x3ec)][_0x4a4531(0x1b2)](_0x3714b6),_0x65c459?window['history'][_0x4a4531(0x14e)]('','',_0x1c372d[_0x4a4531(0x33f)]()):window['history'][_0x4a4531(0x31a)]('','',_0x1c372d[_0x4a4531(0x33f)]());}['getParam'](_0x3a87fd){const _0x2bedc6=_0x4d97e8;var _0x196731;return(_0x196731=new URL(window[_0x2bedc6(0x11d)][_0x2bedc6(0x179)])[_0x2bedc6(0x3ec)][_0x2bedc6(0x491)](_0x3a87fd))!=null?_0x196731:void 0x0;}}var Ht=Object[_0x4d97e8(0x8e)],Pn=Object[_0x4d97e8(0x100)],wn=(_0x5d3053,_0x45c764,_0x1669b7)=>_0x45c764 in _0x5d3053?Ht(_0x5d3053,_0x45c764,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1669b7}):_0x5d3053[_0x45c764]=_0x1669b7,Nn=(_0x5b2a5c,_0x170ab8,_0x468268,_0x58d7ef)=>{const _0x2d71ba=_0x4d97e8;for(var _0x21bc59=_0x58d7ef>0x1?void 0x0:_0x58d7ef?Pn(_0x170ab8,_0x468268):_0x170ab8,_0x59e31e=_0x5b2a5c[_0x2d71ba(0x424)]-0x1,_0x48602e;_0x59e31e>=0x0;_0x59e31e--)(_0x48602e=_0x5b2a5c[_0x59e31e])&&(_0x21bc59=(_0x58d7ef?_0x48602e(_0x170ab8,_0x468268,_0x21bc59):_0x48602e(_0x21bc59))||_0x21bc59);return _0x58d7ef&&_0x21bc59&&Ht(_0x170ab8,_0x468268,_0x21bc59),_0x21bc59;},me=(_0x43c3db,_0x52e386)=>(_0x574872,_0x51e3c5)=>_0x52e386(_0x574872,_0x51e3c5,_0x43c3db),Mn=(_0x420ce5,_0x4c4a84,_0x1ac791)=>wn(_0x420ce5,_0x4c4a84+'',_0x1ac791);const An=_0x4d97e8(0x178);exports['UniverCollaborationClientPlugin']=class extends a[_0x4d97e8(0x170)]{constructor(_0x2a74ad=rs,_0x736357,_0xa23f95,_0x3aba2b,_0x14b582){const _0x20cd99=_0x4d97e8;super(),this[_0x20cd99(0x37f)]=_0x2a74ad,this[_0x20cd99(0x188)]=_0x736357,this[_0x20cd99(0x404)]=_0xa23f95,this[_0x20cd99(0x2cd)]=_0x3aba2b,this[_0x20cd99(0xbd)]=_0x14b582;const {..._0x143a1e}=this[_0x20cd99(0x37f)];this[_0x20cd99(0xbd)]['setConfig'](L,_0x143a1e);}[_0x4d97e8(0x376)](){const _0x304ea1=_0x4d97e8;this['_registerDependencies'](),a[_0x304ea1(0x88)](this[_0x304ea1(0x2cd)],[[ne],[exports[_0x304ea1(0x381)]],[Te]]);}[_0x4d97e8(0x1ae)](){const _0x2cffdb=_0x4d97e8;a[_0x2cffdb(0x88)](this[_0x2cffdb(0x2cd)],[[Ce]]);}[_0x4d97e8(0x3e3)](){this['_registerRenderDependencies']();}[_0x4d97e8(0x2df)](){const _0xae2c79=_0x4d97e8;var _0x1f0285,_0x2a035b,_0x51f9c1,_0x52e33e;this[_0xae2c79(0x2cd)][_0xae2c79(0x477)](a['IUndoRedoService'])&&this[_0xae2c79(0x188)][_0xae2c79(0x497)](_0xae2c79(0x2eb),_0xae2c79(0x228));let _0x9e0fd6=[[a[_0xae2c79(0x2fd)],{'useClass':Fe}],[exports[_0xae2c79(0x270)]],[Je],[w[_0xae2c79(0x37b)]],[Qe,{'useClass':$t}],[q],[exports['LocalCacheService']],[w[_0xae2c79(0x44f)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x2a035b=(_0x1f0285=this[_0xae2c79(0x37f)])==null?void 0x0:_0x1f0285[_0xae2c79(0xc2)])!=null?_0x2a035b:exports[_0xae2c79(0x443)]}],[w['IHTTPImplementation'],{'useClass':w[_0xae2c79(0x3c9)]}],[_[_0xae2c79(0x135)],{'useClass':exports[_0xae2c79(0x1f6)]}],[a[_0xae2c79(0x27d)],{'useClass':exports[_0xae2c79(0xe2)]}],[j[_0xae2c79(0x31d)],{'useClass':exports[_0xae2c79(0x371)]}],[exports[_0xae2c79(0x458)]],[exports[_0xae2c79(0x381)]],[exports[_0xae2c79(0x1b4)]],[Ce],[ne]];(_0x51f9c1=this[_0xae2c79(0x37f)])!=null&&_0x51f9c1[_0xae2c79(0x47a)]&&_0x9e0fd6[_0xae2c79(0x29b)]([Re,{'useClass':$s}]),_0x9e0fd6=a[_0xae2c79(0x1d4)](_0x9e0fd6,(_0x52e33e=this[_0xae2c79(0x37f)])==null?void 0x0:_0x52e33e[_0xae2c79(0x10e)]),_0x9e0fd6['forEach'](_0x9a71ca=>this['_injector'][_0xae2c79(0x471)](_0x9a71ca)),this['_initModules']();}[_0x4d97e8(0x49c)](){const _0x59d7fe=_0x4d97e8;this[_0x59d7fe(0x1e2)](this['_renderManagerService'][_0x59d7fe(0x29f)](a[_0x59d7fe(0x262)][_0x59d7fe(0x15d)],[Ve])),this[_0x59d7fe(0x1e2)](this[_0x59d7fe(0x404)][_0x59d7fe(0x29f)](a['UniverInstanceType'][_0x59d7fe(0x15c)],[We]));}['_initModules'](){const _0x269f67=_0x4d97e8;var _0x44693c,_0x5ca739;this[_0x269f67(0x2cd)][_0x269f67(0x491)](w[_0x269f67(0x37b)])[_0x269f67(0x2c2)]({'priority':0x14,'interceptor':w[_0x269f67(0x19c)]({'maxParallel':0x6})}),this[_0x269f67(0x2cd)]['get'](be),(_0x44693c=this[_0x269f67(0x37f)])!=null&&_0x44693c['enableOfflineEditing']||this[_0x269f67(0x2cd)][_0x269f67(0x491)](exports[_0x269f67(0x18f)])[_0x269f67(0xf7)](),(_0x5ca739=this[_0x269f67(0x37f)])!=null&&_0x5ca739[_0x269f67(0x480)]&&this[_0x269f67(0x2cd)][_0x269f67(0x491)](Ee),this[_0x269f67(0x2cd)][_0x269f67(0x491)](exports[_0x269f67(0x458)]),this[_0x269f67(0x2cd)][_0x269f67(0x477)](exports[_0x269f67(0x1b4)])&&this[_0x269f67(0x2cd)][_0x269f67(0x491)](exports[_0x269f67(0x1b4)]);}},Mn(exports[_0x4d97e8(0xd7)],_0x4d97e8(0x49b),An),exports[_0x4d97e8(0xd7)]=Nn([a[_0x4d97e8(0x1f0)](_[_0x4d97e8(0x261)]),me(0x1,a[_0x4d97e8(0xeb)]),me(0x2,D[_0x4d97e8(0x3cb)]),me(0x3,a[_0x4d97e8(0x13d)](a[_0x4d97e8(0xd0)])),me(0x4,a[_0x4d97e8(0x332)])],exports[_0x4d97e8(0xd7)]),exports[_0x4d97e8(0x39f)]=jt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=Ct,exports['COLLAB_WEB_SOCKET_URL_KEY']=gt,exports[_0x4d97e8(0x2e4)]=U,exports[_0x4d97e8(0x2ca)]=Lt,exports[_0x4d97e8(0x22f)]=Xe,exports[_0x4d97e8(0x162)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x4d97e8(0xa9)]=Ke,exports['IURLService']=Qe,exports[_0x4d97e8(0x2ec)]=pt,exports[_0x4d97e8(0x467)]=Et,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=zt,exports[_0x4d97e8(0x2c4)]=St,exports[_0x4d97e8(0x429)]=vt,exports[_0x4d97e8(0x495)]=H,exports[_0x4d97e8(0x4b8)]=Pt,exports['WebURLService']=$t,exports['deserializeToCombResponse']=Rt,exports[_0x4d97e8(0x397)]=Ot;
@@ -1,38 +0,0 @@
1
- {
2
- "collab-client": {
3
- "tooltip": {
4
- "reconnect": "Click to Reconnect"
5
- }
6
- },
7
- "collabStatus": {
8
- "fetchMiss": "Syncing server data...",
9
- "conflict": "Edit conflicts",
10
- "notCollab": "Local file",
11
- "synced": "Synced",
12
- "syncing": "Syncing...",
13
- "offline": "Offline, edits would be save on local"
14
- },
15
- "session": {
16
- "connection-failed": "Connection failed, please check your network.",
17
- "will-retry": "Connection failed, we retry in a while.",
18
- "room-full": "Collaboration room is full. You edits would be saved locally.",
19
- "collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
20
- },
21
- "conflict": {
22
- "title": "Collaboration Conflict",
23
- "content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
24
- },
25
- "permission": {
26
- "title": "Authentication Error",
27
- "content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
28
- },
29
- "collaboration": {
30
- "single-unit": {
31
- "warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
32
- },
33
- "closeRoom": "Editing privileges were revoked because the collaborative room was closed."
34
- },
35
- "auth": {
36
- "needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
37
- }
38
- }