@univerjs-pro/collaboration-client 1.0.0 → 1.0.2

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 (86) 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/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
  86. package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3551(){const _0x248679=['4mZYuOy','getCollabEntity','function','entityInit$','DisposableCollection','getDocument','toStringTag','5193198ccWArx','getPdf','readyForCollab','from','getUnitId','pipe','_injector','SYNCED','ms.','fireEvent','FEnum','CollaborationStatus','loadServerUnitOfRevision','2455095PegupY','_univerInstanceService','6572584OuKDuH','getCollaborationStatus','1626462ruQYDm','loadBoard','getCollaboration','loadBase','get','DataLoaderService','loadBoardAsync','940753tmlHOg','timeout','loadPdf','CONFLICT','\x22\x20while\x20collaboration\x20status\x20is\x20','decorate','loadSlide','\x22\x20after\x20','_collaborationController','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadUnit','getPresentation','2ZbkLuh','toDisposable','loadSlideAsync','_handler','status$','flush','_resolveUnitId','loadBaseAsync','defineProperty','FUniver','@univerjs/core','_initialize','subscribeCollaborators','7ziRhhw','Inject','members$','CollaborationController','exports','getFocusedUnit','subscribe','add','UniverCoreFacade','@univerjs-pro/collaboration-client','20ETWnac','getBase','CollaborationStatusChanged','191909fiROXx','resolve','loadPdfAsync','UniverProCollaborationClientFacade','Module','getBoard','NOT_COLLAB','loadDoc','reject','createInstance','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','state','FCollaboration','SnapshotService','673131czbIAL','FEventName','IUniverInstanceService','getWorkbook','[FCollaboration]:\x20Unit\x20\x22','Event','@univerjs/core/facade','getOwnPropertyDescriptor','extend','rxjs','loadDocAsync','_snapshotService','UniverProCollaborationClient','status','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','registerEventHandler','loadUnitOfRevision','waitForRoom$','amd'];_0x3551=function(){return _0x248679;};return _0x3551();}function _0x1393(_0x22b651,_0x40c5c4){_0x22b651=_0x22b651-0x187;const _0x355125=_0x3551();let _0x1393c3=_0x355125[_0x22b651];return _0x1393c3;}(function(_0x5e212e,_0x52d497){const _0x50546d=_0x1393,_0x48662d=_0x5e212e();while(!![]){try{const _0x3cbe0a=-parseInt(_0x50546d(0x1c6))/0x1*(parseInt(_0x50546d(0x1ac))/0x2)+parseInt(_0x50546d(0x1d4))/0x3*(-parseInt(_0x50546d(0x1e7))/0x4)+parseInt(_0x50546d(0x195))/0x5+parseInt(_0x50546d(0x188))/0x6+parseInt(_0x50546d(0x1b9))/0x7*(-parseInt(_0x50546d(0x197))/0x8)+parseInt(_0x50546d(0x199))/0x9+-parseInt(_0x50546d(0x1c3))/0xa*(-parseInt(_0x50546d(0x1a0))/0xb);if(_0x3cbe0a===_0x52d497)break;else _0x48662d['push'](_0x48662d['shift']());}catch(_0x48eba6){_0x48662d['push'](_0x48662d['shift']());}}}(_0x3551,0x72db9),function(_0x2f9f1a,_0x1bd128){const _0xa7e516=_0x1393;typeof exports=='object'&&typeof module<'u'?_0x1bd128(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0xa7e516(0x1e9)&&define[_0xa7e516(0x1e6)]?define([_0xa7e516(0x1bd),_0xa7e516(0x1c2),_0xa7e516(0x1da),_0xa7e516(0x1b6),'@univerjs-pro/collaboration',_0xa7e516(0x1dd)],_0x1bd128):(_0x2f9f1a=typeof globalThis<'u'?globalThis:_0x2f9f1a||self,_0x1bd128(_0x2f9f1a[_0xa7e516(0x1c9)]={},_0x2f9f1a[_0xa7e516(0x1e0)],_0x2f9f1a[_0xa7e516(0x1c1)],_0x2f9f1a['UniverCore'],_0x2f9f1a['UniverProCollaboration'],_0x2f9f1a[_0xa7e516(0x1dd)]));}(this,function(_0x46989b,_0x39a569,_0x524c37,_0x1bc8d5,_0x2fa242,_0x13679f){const _0x567f1f=_0x1393;Object[_0x567f1f(0x1b4)](_0x46989b,Symbol[_0x567f1f(0x187)],{'value':_0x567f1f(0x1ca)});var _0x1fb9d2=class extends _0x524c37[_0x567f1f(0x192)]{get[_0x567f1f(0x193)](){return _0x39a569['CollaborationStatus'];}};_0x524c37[_0x567f1f(0x192)][_0x567f1f(0x1dc)](_0x1fb9d2);var _0xf19471=class extends _0x524c37[_0x567f1f(0x1d5)]{get[_0x567f1f(0x1c5)](){const _0x49a16e=_0x567f1f;return _0x49a16e(0x1c5);}};_0x524c37[_0x567f1f(0x1d5)][_0x567f1f(0x1dc)](_0xf19471);function _0x542874(_0x310511,_0x23c2c8){return function(_0x34992f,_0x11a991){_0x23c2c8(_0x34992f,_0x11a991,_0x310511);};}function _0x2be3ba(_0x1929b9,_0x4d8980,_0x1a9e5f,_0x2f9869){const _0x2dfc52=_0x567f1f;var _0x59bb14=arguments['length'],_0x10fa8b=_0x59bb14<0x3?_0x4d8980:_0x2f9869===null?_0x2f9869=Object[_0x2dfc52(0x1db)](_0x4d8980,_0x1a9e5f):_0x2f9869,_0x3aed36;if(typeof Reflect=='object'&&typeof Reflect[_0x2dfc52(0x1a5)]==_0x2dfc52(0x1e9))_0x10fa8b=Reflect[_0x2dfc52(0x1a5)](_0x1929b9,_0x4d8980,_0x1a9e5f,_0x2f9869);else{for(var _0x51668e=_0x1929b9['length']-0x1;_0x51668e>=0x0;_0x51668e--)(_0x3aed36=_0x1929b9[_0x51668e])&&(_0x10fa8b=(_0x59bb14<0x3?_0x3aed36(_0x10fa8b):_0x59bb14>0x3?_0x3aed36(_0x4d8980,_0x1a9e5f,_0x10fa8b):_0x3aed36(_0x4d8980,_0x1a9e5f))||_0x10fa8b);}return _0x59bb14>0x3&&_0x10fa8b&&Object[_0x2dfc52(0x1b4)](_0x4d8980,_0x1a9e5f,_0x10fa8b),_0x10fa8b;}let _0x3eec9d=class extends _0x524c37['FBase']{constructor(_0x18b09c,_0x2826d1,_0x251b65,_0x1c5488,_0xf6c3af){const _0x12e0ce=_0x567f1f;super(),this[_0x12e0ce(0x1af)]=_0x18b09c,this[_0x12e0ce(0x18e)]=_0x2826d1,this['_univerInstanceService']=_0x251b65,this[_0x12e0ce(0x1df)]=_0x1c5488,this[_0x12e0ce(0x1a8)]=_0xf6c3af;}async['loadSheetAsync'](_0x4b1409,_0x53b7ed){const _0x1d2340=_0x567f1f;return await this[_0x1d2340(0x1df)]['loadSheet'](_0x4b1409,0x0,_0x53b7ed)?(await this[_0x1d2340(0x1a8)][_0x1d2340(0x18a)](_0x4b1409),this[_0x1d2340(0x1af)][_0x1d2340(0x1d7)](_0x4b1409)):null;}async[_0x567f1f(0x1de)](_0x5c5991,_0x3eb7c5){const _0x536f83=_0x567f1f;return await this['_snapshotService'][_0x536f83(0x1cd)](_0x5c5991,0x0,_0x3eb7c5)?(await this[_0x536f83(0x1a8)][_0x536f83(0x18a)](_0x5c5991),this[_0x536f83(0x1af)]['getDocument'](_0x5c5991)):null;}async[_0x567f1f(0x1b3)](_0x4e6749,_0x510b5d){const _0x6a50ee=_0x567f1f;return await this[_0x6a50ee(0x1df)][_0x6a50ee(0x19c)](_0x4e6749,0x0,_0x510b5d)?(await this[_0x6a50ee(0x1a8)]['readyForCollab'](_0x4e6749),this[_0x6a50ee(0x1af)][_0x6a50ee(0x1c4)](_0x4e6749)):null;}async[_0x567f1f(0x1ae)](_0x8ae34d,_0x18e808){const _0x4cdcec=_0x567f1f;return await this['_snapshotService'][_0x4cdcec(0x1a6)](_0x8ae34d,0x0,_0x18e808)?(await this[_0x4cdcec(0x1a8)]['readyForCollab'](_0x8ae34d),this[_0x4cdcec(0x1af)]['getPresentation'](_0x8ae34d)):null;}async[_0x567f1f(0x19f)](_0x7a1b9c,_0x95f556){const _0x49fbc0=_0x567f1f;return await this[_0x49fbc0(0x1df)][_0x49fbc0(0x19a)](_0x7a1b9c,0x0,_0x95f556)?(await this[_0x49fbc0(0x1a8)]['readyForCollab'](_0x7a1b9c),this['_handler'][_0x49fbc0(0x1cb)](_0x7a1b9c)):null;}async[_0x567f1f(0x1c8)](_0x473277,_0x4bcaf8){const _0x33056a=_0x567f1f;return await this[_0x33056a(0x1df)][_0x33056a(0x1a2)](_0x473277,0x0,_0x4bcaf8)?(await this[_0x33056a(0x1a8)][_0x33056a(0x18a)](_0x473277),this[_0x33056a(0x1af)][_0x33056a(0x189)](_0x473277)):null;}[_0x567f1f(0x1b8)](_0x50ff83,_0x1c05a7){const _0x10498c=_0x567f1f;let _0x466d24=this['_injector'][_0x10498c(0x19d)](_0x39a569['MemberService'])[_0x10498c(0x1e5)](_0x50ff83)[_0x10498c(0x18d)]((0x0,_0x13679f['switchMap'])(_0x306df2=>_0x306df2[_0x10498c(0x1bb)]))[_0x10498c(0x1bf)](_0x1c4bc6=>_0x1c05a7(Array[_0x10498c(0x18b)](_0x1c4bc6['values']())));return(0x0,_0x1bc8d5[_0x10498c(0x1ad)])(_0x466d24);}[_0x567f1f(0x198)](_0x39f73f){const _0xb124=_0x567f1f;let _0x266d9c=this[_0xb124(0x1b2)](_0x39f73f);if(!_0x266d9c)return _0x39a569['CollaborationStatus'][_0xb124(0x1cc)];let _0x3325e9=this[_0xb124(0x1a8)]['getCollabEntity'](_0x266d9c);return(_0x3325e9==null?void 0x0:_0x3325e9[_0xb124(0x1d1)][_0xb124(0x1e1)])??_0x39a569[_0xb124(0x193)]['NOT_COLLAB'];}[_0x567f1f(0x1b1)](_0x2eb859,_0x520306={}){const _0x27f2a3=_0x567f1f;let _0x9e56e2=this[_0x27f2a3(0x1b2)](_0x2eb859);if(!_0x9e56e2)return Promise[_0x27f2a3(0x1ce)](Error(_0x27f2a3(0x1d0)));let _0x299e51=this[_0x27f2a3(0x1a8)][_0x27f2a3(0x1e8)](_0x9e56e2);if(!_0x299e51)return Promise['reject'](Error(_0x27f2a3(0x1d8)+_0x9e56e2+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x29f071=_0x299e51[_0x27f2a3(0x1d1)][_0x27f2a3(0x1e1)];if(_0x29f071===_0x39a569[_0x27f2a3(0x193)][_0x27f2a3(0x18f)])return Promise[_0x27f2a3(0x1c7)]();let _0x507f51=_0x16a2bc(_0x9e56e2,_0x29f071);if(_0x507f51)return Promise[_0x27f2a3(0x1ce)](_0x507f51);let _0x2ea6dd=_0x520306[_0x27f2a3(0x1a1)]??0x7530;return new Promise((_0x3f4d11,_0x546d9e)=>{const _0x431ffa=_0x27f2a3;let _0x33ac36=!0x1,_0x51d371=null,_0x1ac0a9=setTimeout(()=>{const _0x541687=_0x1393;_0x33ac36=!0x0,_0x51d371==null||_0x51d371['unsubscribe'](),_0x546d9e(Error(_0x541687(0x1e2)+_0x9e56e2+_0x541687(0x1a7)+_0x2ea6dd+_0x541687(0x190)));},_0x2ea6dd),_0x202727=()=>{_0x33ac36=!0x0,clearTimeout(_0x1ac0a9),_0x51d371==null||_0x51d371['unsubscribe']();};_0x51d371=_0x299e51[_0x431ffa(0x1b0)]['subscribe'](_0xb6783a=>{const _0x4e8398=_0x431ffa;if(_0x33ac36)return;if(_0xb6783a===_0x39a569[_0x4e8398(0x193)]['SYNCED']){_0x202727(),_0x3f4d11();return;}let _0x41ced6=_0x16a2bc(_0x9e56e2,_0xb6783a);_0x41ced6&&(_0x202727(),_0x546d9e(_0x41ced6));});});}['_resolveUnitId'](_0x264b24){const _0x1bcab4=_0x567f1f;var _0x5087f3;return _0x264b24||((_0x5087f3=this[_0x1bcab4(0x196)][_0x1bcab4(0x1be)]())==null?void 0x0:_0x5087f3[_0x1bcab4(0x18c)]());}};_0x3eec9d=_0x2be3ba([_0x542874(0x1,(0x0,_0x1bc8d5[_0x567f1f(0x1ba)])(_0x1bc8d5['Injector'])),_0x542874(0x2,_0x1bc8d5[_0x567f1f(0x1d6)]),_0x542874(0x3,(0x0,_0x1bc8d5['Inject'])(_0x2fa242[_0x567f1f(0x1d3)])),_0x542874(0x4,(0x0,_0x1bc8d5[_0x567f1f(0x1ba)])(_0x39a569[_0x567f1f(0x1bc)]))],_0x3eec9d);function _0x16a2bc(_0x44e42e,_0x21c320){const _0x46240d=_0x567f1f;return _0x21c320===_0x39a569[_0x46240d(0x193)][_0x46240d(0x1a3)]||_0x21c320===_0x39a569[_0x46240d(0x193)][_0x46240d(0x1cc)]?Error(_0x46240d(0x1a9)+_0x44e42e+_0x46240d(0x1a4)+_0x21c320+'.'):null;}var _0x2ee084=class extends _0x524c37[_0x567f1f(0x1b5)]{[_0x567f1f(0x1b7)](_0x32b3c4){const _0x4cdd67=_0x567f1f;let _0x26882f=_0x32b3c4['get'](_0x39a569['CollaborationController']);this['disposeWithMe'](this[_0x4cdd67(0x1e3)](this[_0x4cdd67(0x1d9)][_0x4cdd67(0x1c5)],()=>{const _0x586f48=_0x4cdd67;let _0x4db928=new _0x1bc8d5[(_0x586f48(0x1eb))](),_0x1b60b6=_0x26882f[_0x586f48(0x1ea)]['subscribe'](_0x5f114f=>{const _0x467fa2=_0x586f48;let _0x23c915=_0x5f114f[_0x467fa2(0x1b0)][_0x467fa2(0x1bf)](_0xccb2b0=>{const _0x1c2080=_0x467fa2;let _0x442b30={'unitId':_0x5f114f['unitID'],'status':_0xccb2b0};this[_0x1c2080(0x191)](this[_0x1c2080(0x1d9)][_0x1c2080(0x1c5)],_0x442b30);});_0x4db928[_0x467fa2(0x1c0)]((0x0,_0x1bc8d5[_0x467fa2(0x1ad)])(_0x23c915));});return _0x4db928[_0x586f48(0x1c0)]((0x0,_0x1bc8d5[_0x586f48(0x1ad)])(_0x1b60b6)),_0x4db928;}));}[_0x567f1f(0x19b)](){const _0xf2df44=_0x567f1f;return this['_injector'][_0xf2df44(0x1cf)](_0x3eec9d,{'getWorkbook':_0x5117dd=>this['getWorkbook'](_0x5117dd),'getDocument':_0x4cdc82=>this[_0xf2df44(0x1ec)](_0x4cdc82),'getPresentation':_0x5347ae=>this[_0xf2df44(0x1ab)](_0x5347ae),'getBase':_0x337e75=>this[_0xf2df44(0x1c4)](_0x337e75),'getBoard':_0x30a9e2=>this[_0xf2df44(0x1cb)](_0x30a9e2),'getPdf':_0x3cdc36=>this['getPdf'](_0x3cdc36)});}['loadServerUnit'](_0x206974,_0x190e98,_0x220412){const _0x31d132=_0x567f1f;return this[_0x31d132(0x18e)][_0x31d132(0x19d)](_0x39a569['DataLoaderService'])[_0x31d132(0x1aa)](_0x206974,_0x190e98,_0x220412);}[_0x567f1f(0x194)](_0x27831e,_0x2cc7d9,_0x1836f6){const _0x1ab55a=_0x567f1f;return this[_0x1ab55a(0x18e)]['get'](_0x39a569[_0x1ab55a(0x19e)])[_0x1ab55a(0x1e4)](_0x27831e,_0x2cc7d9,_0x1836f6);}};_0x524c37[_0x567f1f(0x1b5)]['extend'](_0x2ee084),Object[_0x567f1f(0x1b4)](_0x46989b,_0x567f1f(0x1d2),{'enumerable':!0x0,'get':function(){return _0x3eec9d;}});}));
1
+ function _0x2c13(_0xf6b7e,_0x3148b5){_0xf6b7e=_0xf6b7e-0xec;const _0x4970ae=_0x4970();let _0x2c13b3=_0x4970ae[_0xf6b7e];return _0x2c13b3;}(function(_0x313c1c,_0x54a603){const _0x562dfc=_0x2c13,_0x3987b3=_0x313c1c();while(!![]){try{const _0x511f0b=parseInt(_0x562dfc(0x112))/0x1*(parseInt(_0x562dfc(0x13d))/0x2)+-parseInt(_0x562dfc(0x12a))/0x3+-parseInt(_0x562dfc(0xfb))/0x4*(parseInt(_0x562dfc(0x10b))/0x5)+-parseInt(_0x562dfc(0x126))/0x6+-parseInt(_0x562dfc(0x146))/0x7+-parseInt(_0x562dfc(0xf8))/0x8+parseInt(_0x562dfc(0x10e))/0x9;if(_0x511f0b===_0x54a603)break;else _0x3987b3['push'](_0x3987b3['shift']());}catch(_0x20553b){_0x3987b3['push'](_0x3987b3['shift']());}}}(_0x4970,0xa717d),function(_0x3be33f,_0x1970f3){const _0x495f82=_0x2c13;typeof exports==_0x495f82(0x13b)&&typeof module<'u'?_0x1970f3(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x495f82(0x124)&&define['amd']?define([_0x495f82(0x116),_0x495f82(0xef),_0x495f82(0x127),_0x495f82(0x118),_0x495f82(0xee),'rxjs'],_0x1970f3):(_0x3be33f=typeof globalThis<'u'?globalThis:_0x3be33f||self,_0x1970f3(_0x3be33f['UniverProCollaborationClientFacade']={},_0x3be33f['UniverProCollaborationClient'],_0x3be33f[_0x495f82(0x139)],_0x3be33f[_0x495f82(0x100)],_0x3be33f[_0x495f82(0x119)],_0x3be33f[_0x495f82(0x11e)]));}(this,function(_0x2aa6e2,_0x369473,_0x30e191,_0x1908eb,_0x30e20f,_0x1ae8fb){const _0x2d0b6b=_0x2c13;Object['defineProperty'](_0x2aa6e2,Symbol[_0x2d0b6b(0x107)],{'value':_0x2d0b6b(0x111)});var _0xe1bcfe=class extends _0x30e191[_0x2d0b6b(0x129)]{get[_0x2d0b6b(0x102)](){return _0x369473['CollaborationStatus'];}};_0x30e191[_0x2d0b6b(0x129)][_0x2d0b6b(0xf7)](_0xe1bcfe);var _0x18eea7=class extends _0x30e191['FEventName']{get[_0x2d0b6b(0x106)](){return'CollaborationStatusChanged';}};_0x30e191['FEventName']['extend'](_0x18eea7);function _0x602e99(_0x204d70,_0x1213b4){return function(_0x5b32a9,_0x5f3013){_0x1213b4(_0x5b32a9,_0x5f3013,_0x204d70);};}function _0x3b5d22(_0x368d63,_0x184f0e,_0x4e67a4,_0x1bd94d){const _0x3d0d96=_0x2d0b6b;var _0x5cf733=arguments[_0x3d0d96(0x14d)],_0x5c8bb1=_0x5cf733<0x3?_0x184f0e:_0x1bd94d===null?_0x1bd94d=Object[_0x3d0d96(0x11c)](_0x184f0e,_0x4e67a4):_0x1bd94d,_0x3a4656;if(typeof Reflect==_0x3d0d96(0x13b)&&typeof Reflect[_0x3d0d96(0x141)]==_0x3d0d96(0x124))_0x5c8bb1=Reflect['decorate'](_0x368d63,_0x184f0e,_0x4e67a4,_0x1bd94d);else{for(var _0x6c2923=_0x368d63[_0x3d0d96(0x14d)]-0x1;_0x6c2923>=0x0;_0x6c2923--)(_0x3a4656=_0x368d63[_0x6c2923])&&(_0x5c8bb1=(_0x5cf733<0x3?_0x3a4656(_0x5c8bb1):_0x5cf733>0x3?_0x3a4656(_0x184f0e,_0x4e67a4,_0x5c8bb1):_0x3a4656(_0x184f0e,_0x4e67a4))||_0x5c8bb1);}return _0x5cf733>0x3&&_0x5c8bb1&&Object[_0x3d0d96(0xec)](_0x184f0e,_0x4e67a4,_0x5c8bb1),_0x5c8bb1;}let _0x546303=class extends _0x30e191[_0x2d0b6b(0x13f)]{constructor(_0x3d46a7,_0x4e1bbb,_0x1c7911,_0x28957f,_0x3203da){const _0x5e61f7=_0x2d0b6b;super(),this[_0x5e61f7(0x12d)]=_0x3d46a7,this[_0x5e61f7(0x131)]=_0x4e1bbb,this[_0x5e61f7(0x130)]=_0x1c7911,this['_snapshotService']=_0x28957f,this[_0x5e61f7(0x13e)]=_0x3203da;}async['loadSheetAsync'](_0x49cd8b,_0xf3e5b7){const _0x5d1e81=_0x2d0b6b;return await this[_0x5d1e81(0x136)]['loadSheet'](_0x49cd8b,0x0,_0xf3e5b7)?(await this[_0x5d1e81(0x13e)]['readyForCollab'](_0x49cd8b),this[_0x5d1e81(0x12d)][_0x5d1e81(0x14b)](_0x49cd8b)):null;}async[_0x2d0b6b(0x10d)](_0x2e1daf,_0x3d2270){const _0x45a7b2=_0x2d0b6b;return await this[_0x45a7b2(0x136)]['loadDoc'](_0x2e1daf,0x0,_0x3d2270)?(await this['_collaborationController'][_0x45a7b2(0xed)](_0x2e1daf),this[_0x45a7b2(0x12d)][_0x45a7b2(0xff)](_0x2e1daf)):null;}async[_0x2d0b6b(0x132)](_0xdc7c70,_0x57dbf2){const _0x2c68bb=_0x2d0b6b;return await this[_0x2c68bb(0x136)][_0x2c68bb(0x114)](_0xdc7c70,0x0,_0x57dbf2)?(await this['_collaborationController']['readyForCollab'](_0xdc7c70),this[_0x2c68bb(0x12d)]['getBase'](_0xdc7c70)):null;}async[_0x2d0b6b(0x135)](_0x3d6d29,_0x2bd150){const _0x9f7144=_0x2d0b6b;return await this[_0x9f7144(0x136)][_0x9f7144(0x145)](_0x3d6d29,0x0,_0x2bd150)?(await this[_0x9f7144(0x13e)][_0x9f7144(0xed)](_0x3d6d29),this[_0x9f7144(0x12d)]['getPresentation'](_0x3d6d29)):null;}async[_0x2d0b6b(0x143)](_0x50fc1f,_0x873c64){const _0x264093=_0x2d0b6b;return await this[_0x264093(0x136)][_0x264093(0x134)](_0x50fc1f,0x0,_0x873c64)?(await this['_collaborationController']['readyForCollab'](_0x50fc1f),this[_0x264093(0x12d)][_0x264093(0x12f)](_0x50fc1f)):null;}async['loadPdfAsync'](_0x4aa54a,_0x489548){const _0x459e40=_0x2d0b6b;return await this[_0x459e40(0x136)][_0x459e40(0x10c)](_0x4aa54a,0x0,_0x489548)?(await this[_0x459e40(0x13e)][_0x459e40(0xed)](_0x4aa54a),this[_0x459e40(0x12d)][_0x459e40(0x149)](_0x4aa54a)):null;}[_0x2d0b6b(0x12e)](_0x1949a4,_0x17197d){const _0x3f38ef=_0x2d0b6b;let _0x1fa8fc=this[_0x3f38ef(0x131)][_0x3f38ef(0x123)](_0x369473[_0x3f38ef(0x147)])[_0x3f38ef(0x142)](_0x1949a4)[_0x3f38ef(0x110)]((0x0,_0x1ae8fb[_0x3f38ef(0xf1)])(_0xdd0b5a=>_0xdd0b5a[_0x3f38ef(0xf0)]))[_0x3f38ef(0xf5)](_0x41a2aa=>_0x17197d(Array[_0x3f38ef(0x120)](_0x41a2aa[_0x3f38ef(0x109)]())));return(0x0,_0x1908eb['toDisposable'])(_0x1fa8fc);}['getCollaborationStatus'](_0x3c9acc){const _0x44bf00=_0x2d0b6b;let _0x43b202=this['_resolveUnitId'](_0x3c9acc);if(!_0x43b202)return _0x369473['CollaborationStatus'][_0x44bf00(0xfd)];let _0xb5eaa2=this['_collaborationController'][_0x44bf00(0xf9)](_0x43b202);return(_0xb5eaa2==null?void 0x0:_0xb5eaa2['state']['status'])??_0x369473[_0x44bf00(0x102)][_0x44bf00(0xfd)];}[_0x2d0b6b(0x108)](_0x198b70,_0x5203e8={}){const _0x1aa279=_0x2d0b6b;let _0x5cdba8=this[_0x1aa279(0x137)](_0x198b70);if(!_0x5cdba8)return Promise[_0x1aa279(0xfe)](Error(_0x1aa279(0xf4)));let _0x33dfcc=this[_0x1aa279(0x13e)]['getCollabEntity'](_0x5cdba8);if(!_0x33dfcc)return Promise[_0x1aa279(0xfe)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x5cdba8+_0x1aa279(0x11a)));let _0x1fa5fc=_0x33dfcc[_0x1aa279(0x11b)]['status'];if(_0x1fa5fc===_0x369473[_0x1aa279(0x102)][_0x1aa279(0x117)])return Promise[_0x1aa279(0x140)]();let _0x2d6df9=_0xe7e1d(_0x5cdba8,_0x1fa5fc);if(_0x2d6df9)return Promise[_0x1aa279(0xfe)](_0x2d6df9);let _0x3b2ae9=_0x5203e8[_0x1aa279(0x14a)]??0x7530;return new Promise((_0x4264b5,_0x137073)=>{const _0x468654=_0x1aa279;let _0x412666=!0x1,_0x385177=null,_0x549f35=setTimeout(()=>{const _0x3e85c0=_0x2c13;_0x412666=!0x0,_0x385177==null||_0x385177[_0x3e85c0(0x122)](),_0x137073(Error(_0x3e85c0(0x10f)+_0x5cdba8+'\x22\x20after\x20'+_0x3b2ae9+_0x3e85c0(0x12b)));},_0x3b2ae9),_0x2c8c23=()=>{const _0x65d654=_0x2c13;_0x412666=!0x0,clearTimeout(_0x549f35),_0x385177==null||_0x385177[_0x65d654(0x122)]();};_0x385177=_0x33dfcc[_0x468654(0x13a)][_0x468654(0xf5)](_0x403c57=>{const _0x92994a=_0x468654;if(_0x412666)return;if(_0x403c57===_0x369473[_0x92994a(0x102)][_0x92994a(0x117)]){_0x2c8c23(),_0x4264b5();return;}let _0x47a6d5=_0xe7e1d(_0x5cdba8,_0x403c57);_0x47a6d5&&(_0x2c8c23(),_0x137073(_0x47a6d5));});});}[_0x2d0b6b(0x137)](_0x5cee69){const _0x5290d3=_0x2d0b6b;var _0x33f021;return _0x5cee69||((_0x33f021=this['_univerInstanceService'][_0x5290d3(0xf6)]())==null?void 0x0:_0x33f021[_0x5290d3(0x103)]());}};_0x546303=_0x3b5d22([_0x602e99(0x1,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x1908eb[_0x2d0b6b(0x101)])),_0x602e99(0x2,_0x1908eb[_0x2d0b6b(0x104)]),_0x602e99(0x3,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x30e20f[_0x2d0b6b(0x14c)])),_0x602e99(0x4,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x369473[_0x2d0b6b(0x125)]))],_0x546303);function _0xe7e1d(_0x8cf6aa,_0x275f9a){const _0xd91597=_0x2d0b6b;return _0x275f9a===_0x369473['CollaborationStatus']['CONFLICT']||_0x275f9a===_0x369473['CollaborationStatus'][_0xd91597(0xfd)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x8cf6aa+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x275f9a+'.'):null;}var _0x5ef736=class extends _0x30e191[_0x2d0b6b(0x11f)]{[_0x2d0b6b(0x11d)](_0x154938){const _0x28709e=_0x2d0b6b;let _0x5d0671=_0x154938[_0x28709e(0x123)](_0x369473['CollaborationController']);this['disposeWithMe'](this[_0x28709e(0xf3)](this[_0x28709e(0x113)][_0x28709e(0x106)],()=>{const _0x3fd46d=_0x28709e;let _0xecda40=new _0x1908eb[(_0x3fd46d(0x12c))](),_0x3a54a5=_0x5d0671[_0x3fd46d(0x144)]['subscribe'](_0x1c1e74=>{const _0x5d4bf0=_0x3fd46d;let _0x50936b=_0x1c1e74[_0x5d4bf0(0x13a)][_0x5d4bf0(0xf5)](_0x121375=>{const _0x1db955=_0x5d4bf0;let _0x5d2894={'unitId':_0x1c1e74['unitID'],'status':_0x121375};this[_0x1db955(0x133)](this[_0x1db955(0x113)]['CollaborationStatusChanged'],_0x5d2894);});_0xecda40[_0x5d4bf0(0x13c)]((0x0,_0x1908eb[_0x5d4bf0(0x128)])(_0x50936b));});return _0xecda40[_0x3fd46d(0x13c)]((0x0,_0x1908eb[_0x3fd46d(0x128)])(_0x3a54a5)),_0xecda40;}));}[_0x2d0b6b(0xfa)](){const _0x1cd9ab=_0x2d0b6b;return this[_0x1cd9ab(0x131)]['createInstance'](_0x546303,{'getWorkbook':_0xe7504e=>this[_0x1cd9ab(0x14b)](_0xe7504e),'getDocument':_0x3d0cbd=>this['getDocument'](_0x3d0cbd),'getPresentation':_0x1677a3=>this[_0x1cd9ab(0x105)](_0x1677a3),'getBase':_0x4dcaa1=>this['getBase'](_0x4dcaa1),'getBoard':_0x536def=>this['getBoard'](_0x536def),'getPdf':_0xd9011f=>this['getPdf'](_0xd9011f)});}[_0x2d0b6b(0xf2)](_0x40e401,_0xce5eb4,_0x435d6e){const _0x428fc9=_0x2d0b6b;return this[_0x428fc9(0x131)][_0x428fc9(0x123)](_0x369473[_0x428fc9(0xfc)])[_0x428fc9(0x115)](_0x40e401,_0xce5eb4,_0x435d6e);}[_0x2d0b6b(0x10a)](_0x23feaa,_0x368779,_0x59b179){const _0x50cf6f=_0x2d0b6b;return this[_0x50cf6f(0x131)][_0x50cf6f(0x123)](_0x369473[_0x50cf6f(0xfc)])[_0x50cf6f(0x121)](_0x23feaa,_0x368779,_0x59b179);}};_0x30e191[_0x2d0b6b(0x11f)][_0x2d0b6b(0xf7)](_0x5ef736),Object[_0x2d0b6b(0xec)](_0x2aa6e2,_0x2d0b6b(0x138),{'enumerable':!0x0,'get':function(){return _0x546303;}});}));function _0x4970(){const _0x5c24b7=['getBoard','_univerInstanceService','_injector','loadBaseAsync','fireEvent','loadBoard','loadSlideAsync','_snapshotService','_resolveUnitId','FCollaboration','UniverCoreFacade','status$','object','add','140YYHikN','_collaborationController','FBase','resolve','decorate','waitForRoom$','loadBoardAsync','entityInit$','loadSlide','5450046YpNTHp','MemberService','Inject','getPdf','timeout','getWorkbook','SnapshotService','length','defineProperty','readyForCollab','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','members$','switchMap','loadServerUnit','registerEventHandler','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','subscribe','getFocusedUnit','extend','1457104TXcpRl','getCollabEntity','getCollaboration','456876BFGNJs','DataLoaderService','NOT_COLLAB','reject','getDocument','UniverCore','Injector','CollaborationStatus','getUnitId','IUniverInstanceService','getPresentation','CollaborationStatusChanged','toStringTag','flush','values','loadServerUnitOfRevision','35QECbsn','loadPdf','loadDocAsync','16895934KWQYOF','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','pipe','Module','18637EnJSzo','Event','loadBase','loadUnit','exports','SYNCED','@univerjs/core','UniverProCollaboration','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','state','getOwnPropertyDescriptor','_initialize','rxjs','FUniver','from','loadUnitOfRevision','unsubscribe','get','function','CollaborationController','2684802nntMzf','@univerjs/core/facade','toDisposable','FEnum','869361uUeuIN','ms.','DisposableCollection','_handler','subscribeCollaborators'];_0x4970=function(){return _0x5c24b7;};return _0x4970();}