@univerjs-pro/collaboration-client 1.0.0-beta.1 → 1.0.0-beta.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 (85) 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 +16 -16
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x44c4(){const _0x4acdd8=['SYNCED','_univerInstanceService','FEventName','fireEvent','object','@univerjs/core','11573973pYYmyy','status','waitForRoom$','state','FCollaboration','getOwnPropertyDescriptor','UniverCore','NOT_COLLAB','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','319395nNOyvW','getWorkbook','DataLoaderService','loadSheetAsync','34892CEfJbK','90Xxxynj','extend','_injector','_snapshotService','decorate','528464FYkfKB','_resolveUnitId','CollaborationController','rxjs','loadBase','loadBoard','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','Module','toStringTag','subscribe','getPresentation','Event','SnapshotService','length','unitID','4026872LpFvdW','loadUnitOfRevision','loadSlideAsync','FBase','timeout','subscribeCollaborators','@univerjs/core/facade','_initialize','add','loadPdfAsync','UniverProCollaborationClient','4iHpTao','CollaborationStatusChanged','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','entityInit$','getUnitId','values','get','loadBoardAsync','FEnum','getBoard','resolve','getCollabEntity','FUniver','loadBaseAsync','IUniverInstanceService','amd','_handler','function','3YGoTrp','readyForCollab','ms.','CONFLICT','loadUnit','loadPdf','getFocusedUnit','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','defineProperty','createInstance','_collaborationController','unsubscribe','@univerjs-pro/collaboration','CollaborationStatus','Injector','getPdf','status$','1411376udKRjZ','UniverCoreFacade','loadServerUnit','loadSlide','toDisposable','getBase','disposeWithMe','loadDocAsync','3107202fluQoZ','flush','850trdVtF','getDocument','from','Inject','reject'];_0x44c4=function(){return _0x4acdd8;};return _0x44c4();}function _0x490d(_0x3c41b3,_0x307081){_0x3c41b3=_0x3c41b3-0x9b;const _0x44c462=_0x44c4();let _0x490d0a=_0x44c462[_0x3c41b3];return _0x490d0a;}(function(_0x530a36,_0x5b9aee){const _0x558676=_0x490d,_0x31bbcb=_0x530a36();while(!![]){try{const _0x2219b5=-parseInt(_0x558676(0xad))/0x1*(-parseInt(_0x558676(0xf8))/0x2)+-parseInt(_0x558676(0xbf))/0x3*(parseInt(_0x558676(0xd0))/0x4)+-parseInt(_0x558676(0xee))/0x5*(-parseInt(_0x558676(0xf3))/0x6)+-parseInt(_0x558676(0xd8))/0x7+parseInt(_0x558676(0xa2))/0x8+-parseInt(_0x558676(0xe5))/0x9+-parseInt(_0x558676(0xda))/0xa*(-parseInt(_0x558676(0xf2))/0xb);if(_0x2219b5===_0x5b9aee)break;else _0x31bbcb['push'](_0x31bbcb['shift']());}catch(_0x2c74b7){_0x31bbcb['push'](_0x31bbcb['shift']());}}}(_0x44c4,0xac355),function(_0x48acdf,_0x1d460d){const _0x35c26d=_0x490d;typeof exports==_0x35c26d(0xe3)&&typeof module<'u'?_0x1d460d(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x35c26d(0xbe)&&define[_0x35c26d(0xbc)]?define(['exports','@univerjs-pro/collaboration-client',_0x35c26d(0xa8),_0x35c26d(0xe4),_0x35c26d(0xcb),_0x35c26d(0xfb)],_0x1d460d):(_0x48acdf=typeof globalThis<'u'?globalThis:_0x48acdf||self,_0x1d460d(_0x48acdf['UniverProCollaborationClientFacade']={},_0x48acdf[_0x35c26d(0xac)],_0x48acdf[_0x35c26d(0xd1)],_0x48acdf[_0x35c26d(0xeb)],_0x48acdf['UniverProCollaboration'],_0x48acdf[_0x35c26d(0xfb)]));}(this,function(_0x4cf173,_0x5df6db,_0x56b218,_0x130f7a,_0x7e758f,_0x275166){const _0x5b2bb2=_0x490d;Object[_0x5b2bb2(0xc7)](_0x4cf173,Symbol[_0x5b2bb2(0x9b)],{'value':_0x5b2bb2(0xff)});var _0x230a77=class extends _0x56b218[_0x5b2bb2(0xb5)]{get[_0x5b2bb2(0xcc)](){const _0x5f5603=_0x5b2bb2;return _0x5df6db[_0x5f5603(0xcc)];}};_0x56b218[_0x5b2bb2(0xb5)][_0x5b2bb2(0xf4)](_0x230a77);var _0x4b7f64=class extends _0x56b218[_0x5b2bb2(0xe1)]{get['CollaborationStatusChanged'](){const _0x41f965=_0x5b2bb2;return _0x41f965(0xae);}};_0x56b218['FEventName'][_0x5b2bb2(0xf4)](_0x4b7f64);function _0xda6d27(_0x5c8f8a,_0x3793cf){return function(_0x461d9f,_0x53102f){_0x3793cf(_0x461d9f,_0x53102f,_0x5c8f8a);};}function _0x16c7d4(_0x1d8624,_0x443c1a,_0x31aff7,_0x49afcb){const _0x54ca31=_0x5b2bb2;var _0x3cdeb8=arguments[_0x54ca31(0xa0)],_0x3f5862=_0x3cdeb8<0x3?_0x443c1a:_0x49afcb===null?_0x49afcb=Object[_0x54ca31(0xea)](_0x443c1a,_0x31aff7):_0x49afcb,_0x5e8276;if(typeof Reflect==_0x54ca31(0xe3)&&typeof Reflect['decorate']==_0x54ca31(0xbe))_0x3f5862=Reflect[_0x54ca31(0xf7)](_0x1d8624,_0x443c1a,_0x31aff7,_0x49afcb);else{for(var _0x1c6c71=_0x1d8624[_0x54ca31(0xa0)]-0x1;_0x1c6c71>=0x0;_0x1c6c71--)(_0x5e8276=_0x1d8624[_0x1c6c71])&&(_0x3f5862=(_0x3cdeb8<0x3?_0x5e8276(_0x3f5862):_0x3cdeb8>0x3?_0x5e8276(_0x443c1a,_0x31aff7,_0x3f5862):_0x5e8276(_0x443c1a,_0x31aff7))||_0x3f5862);}return _0x3cdeb8>0x3&&_0x3f5862&&Object[_0x54ca31(0xc7)](_0x443c1a,_0x31aff7,_0x3f5862),_0x3f5862;}let _0x40422c=class extends _0x56b218[_0x5b2bb2(0xa5)]{constructor(_0x38a5c5,_0x23ac87,_0x38db58,_0x34ffa7,_0x39cdeb){const _0x5158cc=_0x5b2bb2;super(),this[_0x5158cc(0xbd)]=_0x38a5c5,this[_0x5158cc(0xf5)]=_0x23ac87,this[_0x5158cc(0xe0)]=_0x38db58,this[_0x5158cc(0xf6)]=_0x34ffa7,this['_collaborationController']=_0x39cdeb;}async[_0x5b2bb2(0xf1)](_0xd21327,_0x182748){const _0x44a0b3=_0x5b2bb2;return await this[_0x44a0b3(0xf6)]['loadSheet'](_0xd21327,0x0,_0x182748)?(await this[_0x44a0b3(0xc9)]['readyForCollab'](_0xd21327),this[_0x44a0b3(0xbd)][_0x44a0b3(0xef)](_0xd21327)):null;}async[_0x5b2bb2(0xd7)](_0x359180,_0xc4fc17){const _0x3ad2c7=_0x5b2bb2;return await this[_0x3ad2c7(0xf6)]['loadDoc'](_0x359180,0x0,_0xc4fc17)?(await this[_0x3ad2c7(0xc9)]['readyForCollab'](_0x359180),this[_0x3ad2c7(0xbd)]['getDocument'](_0x359180)):null;}async[_0x5b2bb2(0xba)](_0x4f8a18,_0x2f8f61){const _0xc1e88b=_0x5b2bb2;return await this['_snapshotService'][_0xc1e88b(0xfc)](_0x4f8a18,0x0,_0x2f8f61)?(await this['_collaborationController'][_0xc1e88b(0xc0)](_0x4f8a18),this[_0xc1e88b(0xbd)][_0xc1e88b(0xd5)](_0x4f8a18)):null;}async[_0x5b2bb2(0xa4)](_0x45f1ee,_0xccc98c){const _0x502f71=_0x5b2bb2;return await this[_0x502f71(0xf6)][_0x502f71(0xd3)](_0x45f1ee,0x0,_0xccc98c)?(await this[_0x502f71(0xc9)]['readyForCollab'](_0x45f1ee),this['_handler'][_0x502f71(0x9d)](_0x45f1ee)):null;}async[_0x5b2bb2(0xb4)](_0xfc2ce6,_0x57b007){const _0x3ce438=_0x5b2bb2;return await this[_0x3ce438(0xf6)][_0x3ce438(0xfd)](_0xfc2ce6,0x0,_0x57b007)?(await this[_0x3ce438(0xc9)][_0x3ce438(0xc0)](_0xfc2ce6),this[_0x3ce438(0xbd)][_0x3ce438(0xb6)](_0xfc2ce6)):null;}async[_0x5b2bb2(0xab)](_0x170b81,_0x33447e){const _0x12ca2f=_0x5b2bb2;return await this[_0x12ca2f(0xf6)][_0x12ca2f(0xc4)](_0x170b81,0x0,_0x33447e)?(await this[_0x12ca2f(0xc9)]['readyForCollab'](_0x170b81),this[_0x12ca2f(0xbd)][_0x12ca2f(0xce)](_0x170b81)):null;}[_0x5b2bb2(0xa7)](_0x51f533,_0xbc0eae){const _0x391edb=_0x5b2bb2;return(0x0,_0x130f7a[_0x391edb(0xd4)])(this[_0x391edb(0xf5)][_0x391edb(0xb3)](_0x5df6db['MemberService'])[_0x391edb(0xe7)](_0x51f533)['pipe']((0x0,_0x275166['switchMap'])(_0x217b67=>_0x217b67['members$']))[_0x391edb(0x9c)](_0x1cee80=>_0xbc0eae(Array[_0x391edb(0xdc)](_0x1cee80[_0x391edb(0xb2)]()))));}['getCollaborationStatus'](_0x5bf6ad){const _0x301d03=_0x5b2bb2;let _0x358147=this[_0x301d03(0xf9)](_0x5bf6ad);if(!_0x358147)return _0x5df6db[_0x301d03(0xcc)]['NOT_COLLAB'];let _0x4c68e8=this[_0x301d03(0xc9)][_0x301d03(0xb8)](_0x358147);return(_0x4c68e8==null?void 0x0:_0x4c68e8[_0x301d03(0xe8)][_0x301d03(0xe6)])??_0x5df6db['CollaborationStatus']['NOT_COLLAB'];}[_0x5b2bb2(0xd9)](_0x853cad,_0x16b0b7={}){const _0x2da41a=_0x5b2bb2;let _0x2ac455=this[_0x2da41a(0xf9)](_0x853cad);if(!_0x2ac455)return Promise['reject'](Error(_0x2da41a(0xfe)));let _0x3e9967=this[_0x2da41a(0xc9)][_0x2da41a(0xb8)](_0x2ac455);if(!_0x3e9967)return Promise[_0x2da41a(0xde)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x2ac455+_0x2da41a(0xc6)));let _0x49ddc3=_0x3e9967[_0x2da41a(0xe8)][_0x2da41a(0xe6)];if(_0x49ddc3===_0x5df6db[_0x2da41a(0xcc)][_0x2da41a(0xdf)])return Promise[_0x2da41a(0xb7)]();let _0x29c169=_0x3a9048(_0x2ac455,_0x49ddc3);if(_0x29c169)return Promise['reject'](_0x29c169);let _0x11ae5c=_0x16b0b7[_0x2da41a(0xa6)]??0x7530;return new Promise((_0x1c4468,_0x10f07e)=>{const _0x566276=_0x2da41a;let _0x2e398b=!0x1,_0x41517f=null,_0x5eefdd=setTimeout(()=>{const _0x3e2670=_0x490d;_0x2e398b=!0x0,_0x41517f==null||_0x41517f[_0x3e2670(0xca)](),_0x10f07e(Error(_0x3e2670(0xed)+_0x2ac455+'\x22\x20after\x20'+_0x11ae5c+_0x3e2670(0xc1)));},_0x11ae5c),_0x5df3d7=()=>{const _0x30d0f9=_0x490d;_0x2e398b=!0x0,clearTimeout(_0x5eefdd),_0x41517f==null||_0x41517f[_0x30d0f9(0xca)]();};_0x41517f=_0x3e9967[_0x566276(0xcf)]['subscribe'](_0x496ac2=>{if(_0x2e398b)return;if(_0x496ac2===_0x5df6db['CollaborationStatus']['SYNCED']){_0x5df3d7(),_0x1c4468();return;}let _0x564327=_0x3a9048(_0x2ac455,_0x496ac2);_0x564327&&(_0x5df3d7(),_0x10f07e(_0x564327));});});}[_0x5b2bb2(0xf9)](_0x19f833){const _0xdfae1f=_0x5b2bb2;var _0xbe0a75;return _0x19f833||((_0xbe0a75=this[_0xdfae1f(0xe0)][_0xdfae1f(0xc5)]())==null?void 0x0:_0xbe0a75[_0xdfae1f(0xb1)]());}};_0x40422c=_0x16c7d4([_0xda6d27(0x1,(0x0,_0x130f7a[_0x5b2bb2(0xdd)])(_0x130f7a[_0x5b2bb2(0xcd)])),_0xda6d27(0x2,_0x130f7a[_0x5b2bb2(0xbb)]),_0xda6d27(0x3,(0x0,_0x130f7a[_0x5b2bb2(0xdd)])(_0x7e758f[_0x5b2bb2(0x9f)])),_0xda6d27(0x4,(0x0,_0x130f7a[_0x5b2bb2(0xdd)])(_0x5df6db[_0x5b2bb2(0xfa)]))],_0x40422c);function _0x3a9048(_0xbc2534,_0x271494){const _0x9d6ce6=_0x5b2bb2;return _0x271494===_0x5df6db[_0x9d6ce6(0xcc)][_0x9d6ce6(0xc2)]||_0x271494===_0x5df6db[_0x9d6ce6(0xcc)][_0x9d6ce6(0xec)]?Error(_0x9d6ce6(0xaf)+_0xbc2534+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x271494+'.'):null;}var _0x4b009a=class extends _0x56b218[_0x5b2bb2(0xb9)]{[_0x5b2bb2(0xa9)](_0x2d01ea){const _0x3b4bb9=_0x5b2bb2;let _0x21f8f2=_0x2d01ea['get'](_0x5df6db[_0x3b4bb9(0xfa)]);this[_0x3b4bb9(0xd6)](this['registerEventHandler'](this['Event']['CollaborationStatusChanged'],()=>{const _0x3af223=_0x3b4bb9;let _0x10ef16=new _0x130f7a['DisposableCollection'](),_0x1b339e=_0x21f8f2[_0x3af223(0xb0)][_0x3af223(0x9c)](_0x26a2ec=>{const _0x565167=_0x3af223;let _0x2cf373=_0x26a2ec[_0x565167(0xcf)]['subscribe'](_0x542590=>{const _0x11deeb=_0x565167;let _0xaf25d3={'unitId':_0x26a2ec[_0x11deeb(0xa1)],'status':_0x542590};this[_0x11deeb(0xe2)](this[_0x11deeb(0x9e)][_0x11deeb(0xae)],_0xaf25d3);});_0x10ef16[_0x565167(0xaa)]((0x0,_0x130f7a['toDisposable'])(_0x2cf373));});return _0x10ef16['add']((0x0,_0x130f7a[_0x3af223(0xd4)])(_0x1b339e)),_0x10ef16;}));}['getCollaboration'](){const _0x414bf9=_0x5b2bb2;return this[_0x414bf9(0xf5)][_0x414bf9(0xc8)](_0x40422c,{'getWorkbook':_0x3fa249=>this[_0x414bf9(0xef)](_0x3fa249),'getDocument':_0x5187ab=>this[_0x414bf9(0xdb)](_0x5187ab),'getPresentation':_0x46555e=>this['getPresentation'](_0x46555e),'getBase':_0x433e3a=>this[_0x414bf9(0xd5)](_0x433e3a),'getBoard':_0x39f524=>this[_0x414bf9(0xb6)](_0x39f524),'getPdf':_0xc41a0f=>this[_0x414bf9(0xce)](_0xc41a0f)});}[_0x5b2bb2(0xd2)](_0x3f6ff0,_0x153708,_0x5aeb48){const _0x1e2623=_0x5b2bb2;return this[_0x1e2623(0xf5)][_0x1e2623(0xb3)](_0x5df6db[_0x1e2623(0xf0)])[_0x1e2623(0xc3)](_0x3f6ff0,_0x153708,_0x5aeb48);}['loadServerUnitOfRevision'](_0x5f8c2e,_0x552590,_0x1979da){const _0x1c7d8c=_0x5b2bb2;return this[_0x1c7d8c(0xf5)][_0x1c7d8c(0xb3)](_0x5df6db[_0x1c7d8c(0xf0)])[_0x1c7d8c(0xa3)](_0x5f8c2e,_0x552590,_0x1979da);}};_0x56b218[_0x5b2bb2(0xb9)][_0x5b2bb2(0xf4)](_0x4b009a),Object[_0x5b2bb2(0xc7)](_0x4cf173,_0x5b2bb2(0xe9),{'enumerable':!0x0,'get':function(){return _0x40422c;}});}));
1
+ function _0x1d38(_0x52726f,_0x314b9d){_0x52726f=_0x52726f-0x8e;const _0x4636e6=_0x4636();let _0x1d38d4=_0x4636e6[_0x52726f];return _0x1d38d4;}(function(_0x33c17e,_0x1a9c77){const _0x13e289=_0x1d38,_0x44916a=_0x33c17e();while(!![]){try{const _0x4d445e=parseInt(_0x13e289(0xd9))/0x1*(parseInt(_0x13e289(0x93))/0x2)+parseInt(_0x13e289(0xdb))/0x3*(parseInt(_0x13e289(0x95))/0x4)+parseInt(_0x13e289(0xb5))/0x5+-parseInt(_0x13e289(0xc3))/0x6+-parseInt(_0x13e289(0xae))/0x7*(-parseInt(_0x13e289(0xa2))/0x8)+-parseInt(_0x13e289(0xa6))/0x9*(parseInt(_0x13e289(0xaf))/0xa)+-parseInt(_0x13e289(0x9f))/0xb*(parseInt(_0x13e289(0xa1))/0xc);if(_0x4d445e===_0x1a9c77)break;else _0x44916a['push'](_0x44916a['shift']());}catch(_0x4fa121){_0x44916a['push'](_0x44916a['shift']());}}}(_0x4636,0x949fe),function(_0x51d362,_0x4072e3){const _0x163591=_0x1d38;typeof exports==_0x163591(0xac)&&typeof module<'u'?_0x4072e3(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x163591(0xc9)&&define[_0x163591(0x96)]?define([_0x163591(0xe7),_0x163591(0xe2),_0x163591(0x9a),_0x163591(0x98),_0x163591(0xf4),_0x163591(0xbe)],_0x4072e3):(_0x51d362=typeof globalThis<'u'?globalThis:_0x51d362||self,_0x4072e3(_0x51d362[_0x163591(0xf2)]={},_0x51d362[_0x163591(0xee)],_0x51d362[_0x163591(0xd6)],_0x51d362[_0x163591(0xdd)],_0x51d362[_0x163591(0xda)],_0x51d362[_0x163591(0xbe)]));}(this,function(_0x435362,_0x2b46cb,_0x488c40,_0x56e679,_0x5beaff,_0x4fb961){const _0x3dcd8e=_0x1d38;Object[_0x3dcd8e(0x91)](_0x435362,Symbol[_0x3dcd8e(0xed)],{'value':'Module'});var _0x5bf9c4=class extends _0x488c40[_0x3dcd8e(0xcd)]{get['CollaborationStatus'](){const _0x5c8c80=_0x3dcd8e;return _0x2b46cb[_0x5c8c80(0xd3)];}};_0x488c40['FEnum'][_0x3dcd8e(0x99)](_0x5bf9c4);var _0x32fb28=class extends _0x488c40[_0x3dcd8e(0xea)]{get[_0x3dcd8e(0xf5)](){return'CollaborationStatusChanged';}};_0x488c40[_0x3dcd8e(0xea)][_0x3dcd8e(0x99)](_0x32fb28);function _0x2ffc90(_0x341553,_0x3a301a){return function(_0x1c5b0a,_0x5e62fe){_0x3a301a(_0x1c5b0a,_0x5e62fe,_0x341553);};}function _0x13234b(_0x5b7e9b,_0x1c1341,_0x52e850,_0x1b70d7){const _0xb922b5=_0x3dcd8e;var _0x363099=arguments['length'],_0x59dce0=_0x363099<0x3?_0x1c1341:_0x1b70d7===null?_0x1b70d7=Object['getOwnPropertyDescriptor'](_0x1c1341,_0x52e850):_0x1b70d7,_0x2d67b9;if(typeof Reflect==_0xb922b5(0xac)&&typeof Reflect[_0xb922b5(0xab)]=='function')_0x59dce0=Reflect['decorate'](_0x5b7e9b,_0x1c1341,_0x52e850,_0x1b70d7);else{for(var _0x4a934d=_0x5b7e9b[_0xb922b5(0xc2)]-0x1;_0x4a934d>=0x0;_0x4a934d--)(_0x2d67b9=_0x5b7e9b[_0x4a934d])&&(_0x59dce0=(_0x363099<0x3?_0x2d67b9(_0x59dce0):_0x363099>0x3?_0x2d67b9(_0x1c1341,_0x52e850,_0x59dce0):_0x2d67b9(_0x1c1341,_0x52e850))||_0x59dce0);}return _0x363099>0x3&&_0x59dce0&&Object[_0xb922b5(0x91)](_0x1c1341,_0x52e850,_0x59dce0),_0x59dce0;}let _0x5eceea=class extends _0x488c40['FBase']{constructor(_0x433dcb,_0x4a2d8f,_0xb98a4c,_0x1628d0,_0x3468e0){const _0x2eb855=_0x3dcd8e;super(),this[_0x2eb855(0xa7)]=_0x433dcb,this[_0x2eb855(0xb0)]=_0x4a2d8f,this[_0x2eb855(0xef)]=_0xb98a4c,this[_0x2eb855(0xc1)]=_0x1628d0,this[_0x2eb855(0x90)]=_0x3468e0;}async[_0x3dcd8e(0xb1)](_0x4e9295,_0x1affbb){const _0x2436b4=_0x3dcd8e;return await this[_0x2436b4(0xc1)]['loadSheet'](_0x4e9295,0x0,_0x1affbb)?(await this[_0x2436b4(0x90)][_0x2436b4(0x92)](_0x4e9295),this[_0x2436b4(0xa7)][_0x2436b4(0xcc)](_0x4e9295)):null;}async[_0x3dcd8e(0xcb)](_0x2a109c,_0x96acfa){const _0x2e09bf=_0x3dcd8e;return await this['_snapshotService'][_0x2e09bf(0xa4)](_0x2a109c,0x0,_0x96acfa)?(await this[_0x2e09bf(0x90)][_0x2e09bf(0x92)](_0x2a109c),this[_0x2e09bf(0xa7)][_0x2e09bf(0xc0)](_0x2a109c)):null;}async['loadBaseAsync'](_0x30cd78,_0x112d75){const _0x38f48a=_0x3dcd8e;return await this[_0x38f48a(0xc1)]['loadBase'](_0x30cd78,0x0,_0x112d75)?(await this[_0x38f48a(0x90)][_0x38f48a(0x92)](_0x30cd78),this[_0x38f48a(0xa7)]['getBase'](_0x30cd78)):null;}async[_0x3dcd8e(0xdc)](_0x3fd716,_0x4d7db4){const _0x4c29d9=_0x3dcd8e;return await this[_0x4c29d9(0xc1)][_0x4c29d9(0x9e)](_0x3fd716,0x0,_0x4d7db4)?(await this[_0x4c29d9(0x90)][_0x4c29d9(0x92)](_0x3fd716),this[_0x4c29d9(0xa7)][_0x4c29d9(0xe8)](_0x3fd716)):null;}async[_0x3dcd8e(0xca)](_0x5dd149,_0x9a199b){const _0x5cd25e=_0x3dcd8e;return await this[_0x5cd25e(0xc1)][_0x5cd25e(0xaa)](_0x5dd149,0x0,_0x9a199b)?(await this['_collaborationController'][_0x5cd25e(0x92)](_0x5dd149),this['_handler'][_0x5cd25e(0xd5)](_0x5dd149)):null;}async[_0x3dcd8e(0x97)](_0x4bc425,_0x3c165a){const _0x38e5aa=_0x3dcd8e;return await this[_0x38e5aa(0xc1)][_0x38e5aa(0xbf)](_0x4bc425,0x0,_0x3c165a)?(await this[_0x38e5aa(0x90)][_0x38e5aa(0x92)](_0x4bc425),this['_handler'][_0x38e5aa(0xc6)](_0x4bc425)):null;}[_0x3dcd8e(0xa0)](_0x57c3d2,_0xfdcc18){const _0x20d465=_0x3dcd8e;return(0x0,_0x56e679[_0x20d465(0xad)])(this[_0x20d465(0xb0)]['get'](_0x2b46cb[_0x20d465(0xc5)])[_0x20d465(0xbb)](_0x57c3d2)[_0x20d465(0xb2)]((0x0,_0x4fb961[_0x20d465(0xa9)])(_0xc5c82e=>_0xc5c82e[_0x20d465(0xa5)]))[_0x20d465(0xd7)](_0x1a8343=>_0xfdcc18(Array[_0x20d465(0xc7)](_0x1a8343['values']()))));}[_0x3dcd8e(0xf7)](_0x416f62){const _0x1017b6=_0x3dcd8e;let _0xb32c96=this[_0x1017b6(0xba)](_0x416f62);if(!_0xb32c96)return _0x2b46cb['CollaborationStatus'][_0x1017b6(0xbc)];let _0x44a62f=this[_0x1017b6(0x90)][_0x1017b6(0x9c)](_0xb32c96);return(_0x44a62f==null?void 0x0:_0x44a62f[_0x1017b6(0x8f)]['status'])??_0x2b46cb['CollaborationStatus'][_0x1017b6(0xbc)];}[_0x3dcd8e(0xe0)](_0x5c6a11,_0x33d145={}){const _0xee852=_0x3dcd8e;let _0x509380=this[_0xee852(0xba)](_0x5c6a11);if(!_0x509380)return Promise[_0xee852(0xec)](Error(_0xee852(0xd2)));let _0x5cbd94=this[_0xee852(0x90)][_0xee852(0x9c)](_0x509380);if(!_0x5cbd94)return Promise['reject'](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x509380+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x1a89a5=_0x5cbd94[_0xee852(0x8f)][_0xee852(0xb3)];if(_0x1a89a5===_0x2b46cb[_0xee852(0xd3)][_0xee852(0xc4)])return Promise[_0xee852(0xa8)]();let _0x582d5d=_0x1a234b(_0x509380,_0x1a89a5);if(_0x582d5d)return Promise[_0xee852(0xec)](_0x582d5d);let _0x2dd15d=_0x33d145[_0xee852(0xd0)]??0x7530;return new Promise((_0x1d7717,_0x2ff514)=>{const _0x489893=_0xee852;let _0x1ae127=!0x1,_0x438c4f=null,_0x243fe5=setTimeout(()=>{const _0x308a30=_0x1d38;_0x1ae127=!0x0,_0x438c4f==null||_0x438c4f[_0x308a30(0xd1)](),_0x2ff514(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x509380+_0x308a30(0xa3)+_0x2dd15d+_0x308a30(0xbd)));},_0x2dd15d),_0x49560f=()=>{const _0x369c7a=_0x1d38;_0x1ae127=!0x0,clearTimeout(_0x243fe5),_0x438c4f==null||_0x438c4f[_0x369c7a(0xd1)]();};_0x438c4f=_0x5cbd94[_0x489893(0xf3)][_0x489893(0xd7)](_0x2da4ab=>{const _0x1eab7e=_0x489893;if(_0x1ae127)return;if(_0x2da4ab===_0x2b46cb['CollaborationStatus'][_0x1eab7e(0xc4)]){_0x49560f(),_0x1d7717();return;}let _0x5d5dae=_0x1a234b(_0x509380,_0x2da4ab);_0x5d5dae&&(_0x49560f(),_0x2ff514(_0x5d5dae));});});}[_0x3dcd8e(0xba)](_0x835911){const _0x57a2f8=_0x3dcd8e;var _0x13da43;return _0x835911||((_0x13da43=this[_0x57a2f8(0xef)][_0x57a2f8(0xf0)]())==null?void 0x0:_0x13da43[_0x57a2f8(0xe9)]());}};_0x5eceea=_0x13234b([_0x2ffc90(0x1,(0x0,_0x56e679['Inject'])(_0x56e679[_0x3dcd8e(0xb7)])),_0x2ffc90(0x2,_0x56e679[_0x3dcd8e(0xf1)]),_0x2ffc90(0x3,(0x0,_0x56e679[_0x3dcd8e(0xce)])(_0x5beaff[_0x3dcd8e(0xd4)])),_0x2ffc90(0x4,(0x0,_0x56e679[_0x3dcd8e(0xce)])(_0x2b46cb[_0x3dcd8e(0xc8)]))],_0x5eceea);function _0x1a234b(_0x3f500a,_0x52e2bd){const _0x80944=_0x3dcd8e;return _0x52e2bd===_0x2b46cb[_0x80944(0xd3)][_0x80944(0xb9)]||_0x52e2bd===_0x2b46cb[_0x80944(0xd3)]['NOT_COLLAB']?Error(_0x80944(0xe6)+_0x3f500a+_0x80944(0xb6)+_0x52e2bd+'.'):null;}var _0x5e8b74=class extends _0x488c40[_0x3dcd8e(0xdf)]{[_0x3dcd8e(0x9d)](_0x130711){const _0x361949=_0x3dcd8e;let _0x47a238=_0x130711[_0x361949(0xe4)](_0x2b46cb[_0x361949(0xc8)]);this[_0x361949(0xcf)](this[_0x361949(0xd8)](this[_0x361949(0xeb)][_0x361949(0xf5)],()=>{const _0x2ceb52=_0x361949;let _0x3ca226=new _0x56e679['DisposableCollection'](),_0x56078d=_0x47a238[_0x2ceb52(0x9b)][_0x2ceb52(0xd7)](_0xdc23f0=>{const _0x167856=_0x2ceb52;let _0x2500bd=_0xdc23f0[_0x167856(0xf3)][_0x167856(0xd7)](_0x3d9b70=>{const _0x2abca8=_0x167856;let _0x1dec68={'unitId':_0xdc23f0[_0x2abca8(0xf6)],'status':_0x3d9b70};this[_0x2abca8(0xe3)](this['Event']['CollaborationStatusChanged'],_0x1dec68);});_0x3ca226[_0x167856(0xb4)]((0x0,_0x56e679['toDisposable'])(_0x2500bd));});return _0x3ca226[_0x2ceb52(0xb4)]((0x0,_0x56e679[_0x2ceb52(0xad)])(_0x56078d)),_0x3ca226;}));}[_0x3dcd8e(0xb8)](){const _0x4026a4=_0x3dcd8e;return this[_0x4026a4(0xb0)]['createInstance'](_0x5eceea,{'getWorkbook':_0x50db4a=>this['getWorkbook'](_0x50db4a),'getDocument':_0x438f46=>this[_0x4026a4(0xc0)](_0x438f46),'getPresentation':_0x2374b4=>this[_0x4026a4(0xe8)](_0x2374b4),'getBase':_0x18487a=>this['getBase'](_0x18487a),'getBoard':_0x288db2=>this[_0x4026a4(0xd5)](_0x288db2),'getPdf':_0x3a58a2=>this[_0x4026a4(0xc6)](_0x3a58a2)});}[_0x3dcd8e(0xe1)](_0x29b6a5,_0x4f63c7,_0x381306){const _0x3ed03d=_0x3dcd8e;return this['_injector'][_0x3ed03d(0xe4)](_0x2b46cb['DataLoaderService'])[_0x3ed03d(0x8e)](_0x29b6a5,_0x4f63c7,_0x381306);}[_0x3dcd8e(0xde)](_0x4d7fc7,_0x3ff5d0,_0x37940e){const _0x55bcb9=_0x3dcd8e;return this[_0x55bcb9(0xb0)][_0x55bcb9(0xe4)](_0x2b46cb[_0x55bcb9(0xe5)])[_0x55bcb9(0x94)](_0x4d7fc7,_0x3ff5d0,_0x37940e);}};_0x488c40[_0x3dcd8e(0xdf)]['extend'](_0x5e8b74),Object[_0x3dcd8e(0x91)](_0x435362,'FCollaboration',{'enumerable':!0x0,'get':function(){return _0x5eceea;}});}));function _0x4636(){const _0x2c8376=['7072878VMOnEr','SYNCED','MemberService','getPdf','from','CollaborationController','function','loadBoardAsync','loadDocAsync','getWorkbook','FEnum','Inject','disposeWithMe','timeout','unsubscribe','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','CollaborationStatus','SnapshotService','getBoard','UniverCoreFacade','subscribe','registerEventHandler','1gqBBJk','UniverProCollaboration','6nnwaGH','loadSlideAsync','UniverCore','loadServerUnitOfRevision','FUniver','flush','loadServerUnit','@univerjs-pro/collaboration-client','fireEvent','get','DataLoaderService','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','exports','getPresentation','getUnitId','FEventName','Event','reject','toStringTag','UniverProCollaborationClient','_univerInstanceService','getFocusedUnit','IUniverInstanceService','UniverProCollaborationClientFacade','status$','@univerjs-pro/collaboration','CollaborationStatusChanged','unitID','getCollaborationStatus','loadUnit','state','_collaborationController','defineProperty','readyForCollab','1157434XnNedP','loadUnitOfRevision','2074704OCiRNr','amd','loadPdfAsync','@univerjs/core','extend','@univerjs/core/facade','entityInit$','getCollabEntity','_initialize','loadSlide','65901lqcHmo','subscribeCollaborators','1272ybrjma','52568iSEXGt','\x22\x20after\x20','loadDoc','members$','1514574asCyHC','_handler','resolve','switchMap','loadBoard','decorate','object','toDisposable','504zAhizH','30vXWXsq','_injector','loadSheetAsync','pipe','status','add','4191510kxrnZE','\x22\x20while\x20collaboration\x20status\x20is\x20','Injector','getCollaboration','CONFLICT','_resolveUnitId','waitForRoom$','NOT_COLLAB','ms.','rxjs','loadPdf','getDocument','_snapshotService','length'];_0x4636=function(){return _0x2c8376;};return _0x4636();}