@univerjs-pro/collaboration-client 1.0.3 → 1.1.0

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 (91) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collaboration/collaboration-state.d.ts +51 -11
  65. package/lib/types/facade/f-collaboration.d.ts +3 -4
  66. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
  67. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +1 -0
  68. package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
  69. package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
  70. package/lib/umd/facade.js +1 -1
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +16 -16
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x48b35b=_0x39b6;(function(_0x3586c7,_0x2be1bd){const _0x52d0db=_0x39b6,_0x25df5f=_0x3586c7();while(!![]){try{const _0x4d24e9=parseInt(_0x52d0db(0x16b))/0x1*(parseInt(_0x52d0db(0x162))/0x2)+-parseInt(_0x52d0db(0x137))/0x3+parseInt(_0x52d0db(0x155))/0x4+parseInt(_0x52d0db(0x13f))/0x5*(parseInt(_0x52d0db(0x151))/0x6)+-parseInt(_0x52d0db(0x164))/0x7+parseInt(_0x52d0db(0x12f))/0x8*(parseInt(_0x52d0db(0x142))/0x9)+-parseInt(_0x52d0db(0x163))/0xa;if(_0x4d24e9===_0x2be1bd)break;else _0x25df5f['push'](_0x25df5f['shift']());}catch(_0x1bc78c){_0x25df5f['push'](_0x25df5f['shift']());}}}(_0x2bc7,0x94a4e),Object[_0x48b35b(0x123)](exports,Symbol[_0x48b35b(0x145)],{'value':_0x48b35b(0x16e)}));function _0x39b6(_0x51a6ec,_0x3ec19c){_0x51a6ec=_0x51a6ec-0x11a;const _0x2bc7eb=_0x2bc7();let _0x39b6b7=_0x2bc7eb[_0x51a6ec];return _0x39b6b7;}let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t[_0x48b35b(0x15b)]{get[_0x48b35b(0x166)](){const _0x2cfc9b=_0x48b35b;return e[_0x2cfc9b(0x166)];}};t[_0x48b35b(0x15b)][_0x48b35b(0x148)](a);var o=class extends t[_0x48b35b(0x12b)]{get[_0x48b35b(0x133)](){const _0x229650=_0x48b35b;return _0x229650(0x133);}};t[_0x48b35b(0x12b)][_0x48b35b(0x148)](o);function s(_0x458f92,_0x4f7e61){return function(_0x2fe99f,_0x1d535d){_0x4f7e61(_0x2fe99f,_0x1d535d,_0x458f92);};}function c(_0x3ef129,_0x18d3a8,_0x2ddafd,_0x2b0800){const _0x43be8d=_0x48b35b;var _0x1212bd=arguments['length'],_0x200301=_0x1212bd<0x3?_0x18d3a8:_0x2b0800===null?_0x2b0800=Object['getOwnPropertyDescriptor'](_0x18d3a8,_0x2ddafd):_0x2b0800,_0x4a63d9;if(typeof Reflect=='object'&&typeof Reflect[_0x43be8d(0x15a)]==_0x43be8d(0x129))_0x200301=Reflect[_0x43be8d(0x15a)](_0x3ef129,_0x18d3a8,_0x2ddafd,_0x2b0800);else{for(var _0x1e1543=_0x3ef129[_0x43be8d(0x159)]-0x1;_0x1e1543>=0x0;_0x1e1543--)(_0x4a63d9=_0x3ef129[_0x1e1543])&&(_0x200301=(_0x1212bd<0x3?_0x4a63d9(_0x200301):_0x1212bd>0x3?_0x4a63d9(_0x18d3a8,_0x2ddafd,_0x200301):_0x4a63d9(_0x18d3a8,_0x2ddafd))||_0x200301);}return _0x1212bd>0x3&&_0x200301&&Object[_0x43be8d(0x123)](_0x18d3a8,_0x2ddafd,_0x200301),_0x200301;}let l=class extends t['FBase']{constructor(_0x36241f,_0x20cf95,_0x5900b8,_0x53853d,_0x2bb9a8){const _0x49267c=_0x48b35b;super(),this[_0x49267c(0x120)]=_0x36241f,this[_0x49267c(0x128)]=_0x20cf95,this[_0x49267c(0x16a)]=_0x5900b8,this[_0x49267c(0x16f)]=_0x53853d,this[_0x49267c(0x124)]=_0x2bb9a8;}async[_0x48b35b(0x15e)](_0x2b6bdc,_0x3d35d8){const _0x7d9d1=_0x48b35b;return await this[_0x7d9d1(0x16f)][_0x7d9d1(0x11d)](_0x2b6bdc,0x0,_0x3d35d8)?(await this[_0x7d9d1(0x124)][_0x7d9d1(0x12a)](_0x2b6bdc),this[_0x7d9d1(0x120)][_0x7d9d1(0x153)](_0x2b6bdc)):null;}async[_0x48b35b(0x13a)](_0xd3157f,_0x122350){const _0x1bc4f9=_0x48b35b;return await this[_0x1bc4f9(0x16f)][_0x1bc4f9(0x13c)](_0xd3157f,0x0,_0x122350)?(await this[_0x1bc4f9(0x124)][_0x1bc4f9(0x12a)](_0xd3157f),this[_0x1bc4f9(0x120)]['getDocument'](_0xd3157f)):null;}async[_0x48b35b(0x15f)](_0x2b8b6e,_0x34b12c){const _0x1a3a81=_0x48b35b;return await this[_0x1a3a81(0x16f)][_0x1a3a81(0x136)](_0x2b8b6e,0x0,_0x34b12c)?(await this[_0x1a3a81(0x124)][_0x1a3a81(0x12a)](_0x2b8b6e),this['_handler'][_0x1a3a81(0x14b)](_0x2b8b6e)):null;}async[_0x48b35b(0x11c)](_0x1d9b91,_0x506e5a){const _0xe4ab91=_0x48b35b;return await this[_0xe4ab91(0x16f)][_0xe4ab91(0x12e)](_0x1d9b91,0x0,_0x506e5a)?(await this[_0xe4ab91(0x124)][_0xe4ab91(0x12a)](_0x1d9b91),this[_0xe4ab91(0x120)]['getPresentation'](_0x1d9b91)):null;}async['loadBoardAsync'](_0x5a03ac,_0x44e77b){const _0x39b65a=_0x48b35b;return await this[_0x39b65a(0x16f)][_0x39b65a(0x11b)](_0x5a03ac,0x0,_0x44e77b)?(await this[_0x39b65a(0x124)][_0x39b65a(0x12a)](_0x5a03ac),this[_0x39b65a(0x120)][_0x39b65a(0x13d)](_0x5a03ac)):null;}async[_0x48b35b(0x154)](_0xaeab45,_0x5c697b){const _0x2852da=_0x48b35b;return await this[_0x2852da(0x16f)]['loadPdf'](_0xaeab45,0x0,_0x5c697b)?(await this[_0x2852da(0x124)][_0x2852da(0x12a)](_0xaeab45),this[_0x2852da(0x120)][_0x2852da(0x14a)](_0xaeab45)):null;}['subscribeCollaborators'](_0x4692ea,_0x4e522e){const _0x578a77=_0x48b35b;let _0x31bfd4=this[_0x578a77(0x128)][_0x578a77(0x14c)](e[_0x578a77(0x156)])[_0x578a77(0x167)](_0x4692ea)['pipe']((0x0,i['switchMap'])(_0x46aa0d=>_0x46aa0d[_0x578a77(0x11f)]))[_0x578a77(0x141)](_0x350ea2=>_0x4e522e(Array['from'](_0x350ea2[_0x578a77(0x149)]())));return(0x0,n[_0x578a77(0x14d)])(_0x31bfd4);}[_0x48b35b(0x168)](_0x4fd4d6){const _0xcc612f=_0x48b35b;let _0x395434=this['_resolveUnitId'](_0x4fd4d6);if(!_0x395434)return e['CollaborationStatus'][_0xcc612f(0x131)];let _0x3a4a75=this[_0xcc612f(0x124)][_0xcc612f(0x13b)](_0x395434);return(_0x3a4a75==null?void 0x0:_0x3a4a75['state'][_0xcc612f(0x150)])??e['CollaborationStatus'][_0xcc612f(0x131)];}['flush'](_0x4e59b2,_0x110b2={}){const _0x346445=_0x48b35b;let _0x105e5a=this[_0x346445(0x158)](_0x4e59b2);if(!_0x105e5a)return Promise[_0x346445(0x134)](Error(_0x346445(0x13e)));let _0x3c81ae=this[_0x346445(0x124)][_0x346445(0x13b)](_0x105e5a);if(!_0x3c81ae)return Promise[_0x346445(0x134)](Error(_0x346445(0x165)+_0x105e5a+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x28a33e=_0x3c81ae[_0x346445(0x157)][_0x346445(0x150)];if(_0x28a33e===e[_0x346445(0x166)]['SYNCED'])return Promise[_0x346445(0x15d)]();let _0xd55a0c=u(_0x105e5a,_0x28a33e);if(_0xd55a0c)return Promise['reject'](_0xd55a0c);let _0x3a2686=_0x110b2['timeout']??0x7530;return new Promise((_0xdca937,_0x461d16)=>{let _0x597bf1=!0x1,_0x45bd3f=null,_0x1cf1cc=setTimeout(()=>{const _0x1a4ba0=_0x39b6;_0x597bf1=!0x0,_0x45bd3f==null||_0x45bd3f[_0x1a4ba0(0x14f)](),_0x461d16(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x105e5a+'\x22\x20after\x20'+_0x3a2686+'ms.'));},_0x3a2686),_0x5e9160=()=>{const _0x20a1ff=_0x39b6;_0x597bf1=!0x0,clearTimeout(_0x1cf1cc),_0x45bd3f==null||_0x45bd3f[_0x20a1ff(0x14f)]();};_0x45bd3f=_0x3c81ae['status$']['subscribe'](_0x26a6ed=>{const _0x373313=_0x39b6;if(_0x597bf1)return;if(_0x26a6ed===e[_0x373313(0x166)][_0x373313(0x138)]){_0x5e9160(),_0xdca937();return;}let _0x183c99=u(_0x105e5a,_0x26a6ed);_0x183c99&&(_0x5e9160(),_0x461d16(_0x183c99));});});}['_resolveUnitId'](_0x32966a){const _0x1be91c=_0x48b35b;var _0x2c6741;return _0x32966a||((_0x2c6741=this[_0x1be91c(0x16a)]['getFocusedUnit']())==null?void 0x0:_0x2c6741[_0x1be91c(0x12d)]());}};l=c([s(0x1,(0x0,n['Inject'])(n['Injector'])),s(0x2,n[_0x48b35b(0x15c)]),s(0x3,(0x0,n[_0x48b35b(0x16d)])(r[_0x48b35b(0x132)])),s(0x4,(0x0,n[_0x48b35b(0x16d)])(e[_0x48b35b(0x11e)]))],l);function u(_0x39a5a4,_0x4438cb){const _0x32309c=_0x48b35b;return _0x4438cb===e['CollaborationStatus']['CONFLICT']||_0x4438cb===e[_0x32309c(0x166)][_0x32309c(0x131)]?Error(_0x32309c(0x143)+_0x39a5a4+_0x32309c(0x16c)+_0x4438cb+'.'):null;}function _0x2bc7(){const _0x194d6e=['getBase','get','toDisposable','DataLoaderService','unsubscribe','status','5516508nvxjaD','getDocument','getWorkbook','loadPdfAsync','2652652ShSEID','MemberService','state','_resolveUnitId','length','decorate','FEnum','IUniverInstanceService','resolve','loadSheetAsync','loadBaseAsync','getCollaboration','FCollaboration','334taCFqu','14868770pBHnnj','232113XKYqFC','[FCollaboration]:\x20Unit\x20\x22','CollaborationStatus','waitForRoom$','getCollaborationStatus','_initialize','_univerInstanceService','1389YmmXkF','\x22\x20while\x20collaboration\x20status\x20is\x20','Inject','Module','_snapshotService','DisposableCollection','loadBoard','loadSlideAsync','loadSheet','CollaborationController','members$','_handler','getPresentation','unitID','defineProperty','_collaborationController','FUniver','status$','loadUnit','_injector','function','readyForCollab','FEventName','add','getUnitId','loadSlide','136RzVdFs','fireEvent','NOT_COLLAB','SnapshotService','CollaborationStatusChanged','reject','createInstance','loadBase','320970RalTfp','SYNCED','disposeWithMe','loadDocAsync','getCollabEntity','loadDoc','getBoard','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','5ApdkzG','loadUnitOfRevision','subscribe','223056xqMfuO','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadServerUnitOfRevision','toStringTag','Event','loadServerUnit','extend','values','getPdf'];_0x2bc7=function(){return _0x194d6e;};return _0x2bc7();}var d=class extends t[_0x48b35b(0x125)]{[_0x48b35b(0x169)](_0x2309ec){const _0x286c8b=_0x48b35b;let _0x1eac7d=_0x2309ec[_0x286c8b(0x14c)](e[_0x286c8b(0x11e)]);this[_0x286c8b(0x139)](this['registerEventHandler'](this[_0x286c8b(0x146)][_0x286c8b(0x133)],()=>{const _0x59ab0f=_0x286c8b;let _0x95fb1=new n[(_0x59ab0f(0x11a))](),_0x566ab4=_0x1eac7d['entityInit$']['subscribe'](_0x3f71cf=>{const _0x598883=_0x59ab0f;let _0x25839c=_0x3f71cf[_0x598883(0x126)][_0x598883(0x141)](_0x583d30=>{const _0x1e2caf=_0x598883;let _0x13abdd={'unitId':_0x3f71cf[_0x1e2caf(0x122)],'status':_0x583d30};this[_0x1e2caf(0x130)](this[_0x1e2caf(0x146)][_0x1e2caf(0x133)],_0x13abdd);});_0x95fb1[_0x598883(0x12c)]((0x0,n['toDisposable'])(_0x25839c));});return _0x95fb1[_0x59ab0f(0x12c)]((0x0,n[_0x59ab0f(0x14d)])(_0x566ab4)),_0x95fb1;}));}[_0x48b35b(0x160)](){const _0x1534ad=_0x48b35b;return this[_0x1534ad(0x128)][_0x1534ad(0x135)](l,{'getWorkbook':_0x374c00=>this[_0x1534ad(0x153)](_0x374c00),'getDocument':_0x6b08a=>this[_0x1534ad(0x152)](_0x6b08a),'getPresentation':_0x4669ce=>this[_0x1534ad(0x121)](_0x4669ce),'getBase':_0x531f34=>this[_0x1534ad(0x14b)](_0x531f34),'getBoard':_0x307d69=>this[_0x1534ad(0x13d)](_0x307d69),'getPdf':_0x288541=>this[_0x1534ad(0x14a)](_0x288541)});}[_0x48b35b(0x147)](_0x4fc2ee,_0x1700d4,_0x8af577){const _0x446197=_0x48b35b;return this[_0x446197(0x128)][_0x446197(0x14c)](e['DataLoaderService'])[_0x446197(0x127)](_0x4fc2ee,_0x1700d4,_0x8af577);}[_0x48b35b(0x144)](_0x5ee616,_0xcf8297,_0x12e25e){const _0x524409=_0x48b35b;return this['_injector'][_0x524409(0x14c)](e[_0x524409(0x14e)])[_0x524409(0x140)](_0x5ee616,_0xcf8297,_0x12e25e);}};t[_0x48b35b(0x125)]['extend'](d),Object[_0x48b35b(0x123)](exports,_0x48b35b(0x161),{'enumerable':!0x0,'get':function(){return l;}});
1
+ function _0x111d(){const _0x7bb063=['_handler','FUniver','from','[FCollaboration]:\x20Unit\x20\x22','fireEvent','CollaborationStatus','DataLoaderService','UNIVER_SLIDE','getUnitId','FBase','UNIVER_PDF','UniverInstanceType','unitID','_dataLoaderService','loadBaseAsync','getOwnPropertyDescriptor','toStringTag','disposeWithMe','subscribe','getPdf','_resolveUnitId','add','_univerInstanceService','2250720dYahpv','\x22\x20while\x20collaboration\x20status\x20is\x20','waitForRoom$','state','112824lvNBhl','5916858HXEVTH','getBase','_injector','function','defineProperty','2mpkmcK','862183DFSvaN','extend','DisposableCollection','timeout','loadBoardAsync','loadServerUnit','object','Injector','createInstance','_collaborationController','decorate','NOT_COLLAB','getWorkbook','getCollabEntity','values','_initialize','2783901vyqGKN','loadUnit','CollaborationStatusChanged','892810cSlnVl','members$','loadServerUnitOfRevision','length','unsubscribe','get','185073NOoRux','getDocument','status','status$','Event','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','getCollaborationStatus','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadPdfAsync','getPresentation','MemberService','UNIVER_DOC','loadUnitOfRevision','pipe','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','registerEventHandler','CollaborationController','SYNCED','FCollaboration','subscribeCollaborators','toDisposable','reject','Inject','readyForCollab','FEventName','getCollaboration','45gqwqOH'];_0x111d=function(){return _0x7bb063;};return _0x111d();}const _0x2648a6=_0x53bf;(function(_0x7e9410,_0x1335be){const _0x5a587b=_0x53bf,_0x22113d=_0x7e9410();while(!![]){try{const _0x5e62ee=parseInt(_0x5a587b(0x22f))/0x1+parseInt(_0x5a587b(0x215))/0x2*(-parseInt(_0x5a587b(0x226))/0x3)+parseInt(_0x5a587b(0x20b))/0x4+parseInt(_0x5a587b(0x229))/0x5+parseInt(_0x5a587b(0x210))/0x6+-parseInt(_0x5a587b(0x216))/0x7+-parseInt(_0x5a587b(0x20f))/0x8*(-parseInt(_0x5a587b(0x1f3))/0x9);if(_0x5e62ee===_0x1335be)break;else _0x22113d['push'](_0x22113d['shift']());}catch(_0xb8f2d7){_0x22113d['push'](_0x22113d['shift']());}}}(_0x111d,0xe37fd),Object[_0x2648a6(0x214)](exports,Symbol[_0x2648a6(0x204)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('rxjs');var i=class extends t['FEnum']{get[_0x2648a6(0x1f9)](){const _0x21b9a2=_0x2648a6;return e[_0x21b9a2(0x1f9)];}};t['FEnum'][_0x2648a6(0x217)](i);var a=class extends t[_0x2648a6(0x1f1)]{get[_0x2648a6(0x228)](){const _0x5148a3=_0x2648a6;return _0x5148a3(0x228);}};function _0x53bf(_0x509f69,_0x31cc04){_0x509f69=_0x509f69-0x1de;const _0x111d1a=_0x111d();let _0x53bf5b=_0x111d1a[_0x509f69];return _0x53bf5b;}t[_0x2648a6(0x1f1)][_0x2648a6(0x217)](a);function o(_0xa0aeb9,_0x5f1ade){return function(_0x57ef44,_0x2e1ebd){_0x5f1ade(_0x57ef44,_0x2e1ebd,_0xa0aeb9);};}function s(_0x439f08,_0x52a899,_0x3decbb,_0x49b0ff){const _0xf76159=_0x2648a6;var _0x3880f7=arguments[_0xf76159(0x22c)],_0x5ec903=_0x3880f7<0x3?_0x52a899:_0x49b0ff===null?_0x49b0ff=Object[_0xf76159(0x203)](_0x52a899,_0x3decbb):_0x49b0ff,_0x9e8770;if(typeof Reflect==_0xf76159(0x21c)&&typeof Reflect['decorate']==_0xf76159(0x213))_0x5ec903=Reflect[_0xf76159(0x220)](_0x439f08,_0x52a899,_0x3decbb,_0x49b0ff);else{for(var _0x37084d=_0x439f08[_0xf76159(0x22c)]-0x1;_0x37084d>=0x0;_0x37084d--)(_0x9e8770=_0x439f08[_0x37084d])&&(_0x5ec903=(_0x3880f7<0x3?_0x9e8770(_0x5ec903):_0x3880f7>0x3?_0x9e8770(_0x52a899,_0x3decbb,_0x5ec903):_0x9e8770(_0x52a899,_0x3decbb))||_0x5ec903);}return _0x3880f7>0x3&&_0x5ec903&&Object[_0xf76159(0x214)](_0x52a899,_0x3decbb,_0x5ec903),_0x5ec903;}let c=class extends t[_0x2648a6(0x1fd)]{constructor(_0x19302c,_0x863243,_0x571c92,_0x45c681,_0x5816f8){const _0x4e7a3b=_0x2648a6;super(),this[_0x4e7a3b(0x1f4)]=_0x19302c,this['_injector']=_0x863243,this['_univerInstanceService']=_0x571c92,this[_0x4e7a3b(0x201)]=_0x45c681,this[_0x4e7a3b(0x21f)]=_0x5816f8;}async['loadSheetAsync'](_0x2b4948,_0x527353){const _0x5ec66a=_0x2648a6;return await this[_0x5ec66a(0x201)][_0x5ec66a(0x227)](_0x2b4948,n[_0x5ec66a(0x1ff)]['UNIVER_SHEET'],void 0x0,_0x527353)?(await this[_0x5ec66a(0x21f)][_0x5ec66a(0x1f0)](_0x2b4948),this['_handler'][_0x5ec66a(0x222)](_0x2b4948)):null;}async['loadDocAsync'](_0xb50a52,_0x5ee4b1){const _0x4d9d07=_0x2648a6;return await this['_dataLoaderService']['loadUnit'](_0xb50a52,n['UniverInstanceType'][_0x4d9d07(0x1e4)],void 0x0,_0x5ee4b1)?(await this[_0x4d9d07(0x21f)][_0x4d9d07(0x1f0)](_0xb50a52),this[_0x4d9d07(0x1f4)][_0x4d9d07(0x230)](_0xb50a52)):null;}async[_0x2648a6(0x202)](_0x4c971b,_0x385f41){const _0x448364=_0x2648a6;return await this[_0x448364(0x201)][_0x448364(0x227)](_0x4c971b,n[_0x448364(0x1ff)]['UNIVER_BASE'],void 0x0,_0x385f41)?(await this['_collaborationController'][_0x448364(0x1f0)](_0x4c971b),this[_0x448364(0x1f4)][_0x448364(0x211)](_0x4c971b)):null;}async['loadSlideAsync'](_0x45c853,_0x13907c){const _0xc85dd0=_0x2648a6;return await this[_0xc85dd0(0x201)]['loadUnit'](_0x45c853,n[_0xc85dd0(0x1ff)][_0xc85dd0(0x1fb)],void 0x0,_0x13907c)?(await this[_0xc85dd0(0x21f)][_0xc85dd0(0x1f0)](_0x45c853),this[_0xc85dd0(0x1f4)][_0xc85dd0(0x1e2)](_0x45c853)):null;}async[_0x2648a6(0x21a)](_0x421344,_0x1f9554){const _0x23e083=_0x2648a6;return await this[_0x23e083(0x201)][_0x23e083(0x227)](_0x421344,n[_0x23e083(0x1ff)]['UNIVER_BOARD'],void 0x0,_0x1f9554)?(await this[_0x23e083(0x21f)][_0x23e083(0x1f0)](_0x421344),this[_0x23e083(0x1f4)]['getBoard'](_0x421344)):null;}async[_0x2648a6(0x1e1)](_0x5f4ab8,_0x3c86a3){const _0x4de5fd=_0x2648a6;return await this['_dataLoaderService'][_0x4de5fd(0x227)](_0x5f4ab8,n[_0x4de5fd(0x1ff)][_0x4de5fd(0x1fe)],void 0x0,_0x3c86a3)?(await this[_0x4de5fd(0x21f)]['readyForCollab'](_0x5f4ab8),this[_0x4de5fd(0x1f4)][_0x4de5fd(0x207)](_0x5f4ab8)):null;}[_0x2648a6(0x1ec)](_0x2cda38,_0x934ebe){const _0xe7a8c6=_0x2648a6;let _0x2eee30=this['_injector'][_0xe7a8c6(0x22e)](e[_0xe7a8c6(0x1e3)])[_0xe7a8c6(0x20d)](_0x2cda38)[_0xe7a8c6(0x1e6)]((0x0,r['switchMap'])(_0x33dae8=>_0x33dae8[_0xe7a8c6(0x22a)]))[_0xe7a8c6(0x206)](_0x1c734c=>_0x934ebe(Array[_0xe7a8c6(0x1f6)](_0x1c734c[_0xe7a8c6(0x224)]())));return(0x0,n[_0xe7a8c6(0x1ed)])(_0x2eee30);}[_0x2648a6(0x1df)](_0x2cf037){const _0x4b2d72=_0x2648a6;let _0x3b947b=this[_0x4b2d72(0x208)](_0x2cf037);if(!_0x3b947b)return e[_0x4b2d72(0x1f9)][_0x4b2d72(0x221)];let _0xb0122e=this['_collaborationController'][_0x4b2d72(0x223)](_0x3b947b);return(_0xb0122e==null?void 0x0:_0xb0122e['state'][_0x4b2d72(0x231)])??e[_0x4b2d72(0x1f9)][_0x4b2d72(0x221)];}['flush'](_0x49121c,_0x11d048={}){const _0xc08f0c=_0x2648a6;let _0x5b909d=this[_0xc08f0c(0x208)](_0x49121c);if(!_0x5b909d)return Promise[_0xc08f0c(0x1ee)](Error(_0xc08f0c(0x1e7)));let _0x27f022=this[_0xc08f0c(0x21f)][_0xc08f0c(0x223)](_0x5b909d);if(!_0x27f022)return Promise[_0xc08f0c(0x1ee)](Error(_0xc08f0c(0x1f7)+_0x5b909d+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x3186e1=_0x27f022[_0xc08f0c(0x20e)][_0xc08f0c(0x231)];if(_0x3186e1===e[_0xc08f0c(0x1f9)][_0xc08f0c(0x1ea)])return Promise['resolve']();let _0x3133e8=l(_0x5b909d,_0x3186e1);if(_0x3133e8)return Promise[_0xc08f0c(0x1ee)](_0x3133e8);let _0x22ef8d=_0x11d048[_0xc08f0c(0x219)]??0x7530;return new Promise((_0xdfe27c,_0xedc54b)=>{const _0x269326=_0xc08f0c;let _0x4609b9=!0x1,_0x2412fe=null,_0x18d53d=setTimeout(()=>{const _0x2b54c0=_0x53bf;_0x4609b9=!0x0,_0x2412fe==null||_0x2412fe[_0x2b54c0(0x22d)](),_0xedc54b(Error(_0x2b54c0(0x1e0)+_0x5b909d+'\x22\x20after\x20'+_0x22ef8d+'ms.'));},_0x22ef8d),_0x4c666e=()=>{const _0x52cedf=_0x53bf;_0x4609b9=!0x0,clearTimeout(_0x18d53d),_0x2412fe==null||_0x2412fe[_0x52cedf(0x22d)]();};_0x2412fe=_0x27f022[_0x269326(0x232)][_0x269326(0x206)](_0x5774b3=>{const _0x12eb4c=_0x269326;if(_0x4609b9)return;if(_0x5774b3===e[_0x12eb4c(0x1f9)][_0x12eb4c(0x1ea)]){_0x4c666e(),_0xdfe27c();return;}let _0x22d722=l(_0x5b909d,_0x5774b3);_0x22d722&&(_0x4c666e(),_0xedc54b(_0x22d722));});});}['_resolveUnitId'](_0x568283){const _0x76cd86=_0x2648a6;var _0x24fd3d;return _0x568283||((_0x24fd3d=this[_0x76cd86(0x20a)]['getFocusedUnit']())==null?void 0x0:_0x24fd3d[_0x76cd86(0x1fc)]());}};c=s([o(0x1,(0x0,n['Inject'])(n[_0x2648a6(0x21d)])),o(0x2,n['IUniverInstanceService']),o(0x3,(0x0,n[_0x2648a6(0x1ef)])(e['DataLoaderService'])),o(0x4,(0x0,n['Inject'])(e[_0x2648a6(0x1e9)]))],c);function l(_0x58178a,_0x66be1a){const _0x1c2328=_0x2648a6;return _0x66be1a===e[_0x1c2328(0x1f9)]['CONFLICT']||_0x66be1a===e['CollaborationStatus'][_0x1c2328(0x221)]?Error(_0x1c2328(0x1de)+_0x58178a+_0x1c2328(0x20c)+_0x66be1a+'.'):null;}var u=class extends t[_0x2648a6(0x1f5)]{[_0x2648a6(0x225)](_0x39b535){const _0x4b4ee7=_0x2648a6;let _0x2b2cf0=_0x39b535['get'](e[_0x4b4ee7(0x1e9)]);this[_0x4b4ee7(0x205)](this[_0x4b4ee7(0x1e8)](this[_0x4b4ee7(0x233)][_0x4b4ee7(0x228)],()=>{const _0x34fd9a=_0x4b4ee7;let _0x4c63c8=new n[(_0x34fd9a(0x218))](),_0x39afb9=_0x2b2cf0['entityInit$']['subscribe'](_0x50f851=>{const _0x4a8167=_0x34fd9a;let _0x473e0c=_0x50f851[_0x4a8167(0x232)][_0x4a8167(0x206)](_0x4d22b5=>{const _0x1d1f2f=_0x4a8167;let _0x38ef49={'unitId':_0x50f851[_0x1d1f2f(0x200)],'status':_0x4d22b5};this[_0x1d1f2f(0x1f8)](this[_0x1d1f2f(0x233)][_0x1d1f2f(0x228)],_0x38ef49);});_0x4c63c8[_0x4a8167(0x209)]((0x0,n[_0x4a8167(0x1ed)])(_0x473e0c));});return _0x4c63c8[_0x34fd9a(0x209)]((0x0,n[_0x34fd9a(0x1ed)])(_0x39afb9)),_0x4c63c8;}));}[_0x2648a6(0x1f2)](){const _0x407f08=_0x2648a6;return this[_0x407f08(0x212)][_0x407f08(0x21e)](c,{'getWorkbook':_0x3d98aa=>this[_0x407f08(0x222)](_0x3d98aa),'getDocument':_0x2b65cc=>this[_0x407f08(0x230)](_0x2b65cc),'getPresentation':_0x3fdc52=>this[_0x407f08(0x1e2)](_0x3fdc52),'getBase':_0x345044=>this[_0x407f08(0x211)](_0x345044),'getBoard':_0x1f536b=>this['getBoard'](_0x1f536b),'getPdf':_0x49f21f=>this['getPdf'](_0x49f21f)});}[_0x2648a6(0x21b)](_0x5be1f6,_0x3449cd,_0x4d6e94){const _0xe105f5=_0x2648a6;return this[_0xe105f5(0x212)][_0xe105f5(0x22e)](e[_0xe105f5(0x1fa)])[_0xe105f5(0x227)](_0x5be1f6,_0x3449cd,_0x4d6e94);}[_0x2648a6(0x22b)](_0x25ad51,_0x5d9fcd,_0x36b271){const _0x178a7e=_0x2648a6;return this['_injector']['get'](e['DataLoaderService'])[_0x178a7e(0x1e5)](_0x25ad51,_0x5d9fcd,_0x36b271);}};t[_0x2648a6(0x1f5)][_0x2648a6(0x217)](u),Object[_0x2648a6(0x214)](exports,_0x2648a6(0x1eb),{'enumerable':!0x0,'get':function(){return c;}});