@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/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5749c8=_0xc2f1;(function(_0x127c18,_0x4fa45c){const _0x1bd6d0=_0xc2f1,_0x81d3e8=_0x127c18();while(!![]){try{const _0x498301=-parseInt(_0x1bd6d0(0x14b))/0x1+parseInt(_0x1bd6d0(0x133))/0x2*(-parseInt(_0x1bd6d0(0x126))/0x3)+parseInt(_0x1bd6d0(0x14c))/0x4*(parseInt(_0x1bd6d0(0x152))/0x5)+parseInt(_0x1bd6d0(0x148))/0x6+-parseInt(_0x1bd6d0(0x111))/0x7+-parseInt(_0x1bd6d0(0x13b))/0x8+parseInt(_0x1bd6d0(0x11f))/0x9;if(_0x498301===_0x4fa45c)break;else _0x81d3e8['push'](_0x81d3e8['shift']());}catch(_0x56e3fe){_0x81d3e8['push'](_0x81d3e8['shift']());}}}(_0x3011,0x41184),Object[_0x5749c8(0x135)](exports,Symbol[_0x5749c8(0x15b)],{'value':'Module'}));function _0xc2f1(_0xf8a77f,_0x333fa5){_0xf8a77f=_0xf8a77f-0x111;const _0x301121=_0x3011();let _0xc2f10d=_0x301121[_0xf8a77f];return _0xc2f10d;}let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');function _0x3011(){const _0x222ebf=['FCollaboration','loadDoc','1032579qHmPDo','state','loadBase','CollaborationStatus','from','DataLoaderService','CollaborationController','18EBpJQK','fireEvent','loadServerUnit','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','Event','function','loadUnit','loadPdfAsync','getFocusedUnit','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','flush','FEventName','getUnitId','40522yUSGlB','createInstance','defineProperty','subscribe','length','members$','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','getPresentation','1475544PAnkfc','unsubscribe','Inject','subscribeCollaborators','getCollabEntity','ms.','getDocument','reject','CollaborationStatusChanged','getCollaboration','extend','loadSheet','status','2945112aRbzAT','Injector','_collaborationController','465255EOZQlB','23252MBidJA','_univerInstanceService','CONFLICT','status$','pipe','registerEventHandler','430vJclcu','entityInit$','_injector','loadSlide','readyForCollab','getBoard','FEnum','switchMap','MemberService','toStringTag','\x22\x20while\x20collaboration\x20status\x20is\x20','toDisposable','DisposableCollection','SYNCED','object','getCollaborationStatus','disposeWithMe','loadPdf','getPdf','473263tEJwGS','NOT_COLLAB','_handler','getBase','_resolveUnitId','loadSlideAsync','resolve','values','_snapshotService','SnapshotService','FUniver','get'];_0x3011=function(){return _0x222ebf;};return _0x3011();}var a=class extends t[_0x5749c8(0x158)]{get[_0x5749c8(0x122)](){return e['CollaborationStatus'];}};t['FEnum'][_0x5749c8(0x145)](a);var o=class extends t[_0x5749c8(0x131)]{get[_0x5749c8(0x143)](){return'CollaborationStatusChanged';}};t[_0x5749c8(0x131)][_0x5749c8(0x145)](o);function s(_0x1a87cf,_0x115a8f){return function(_0x579ccd,_0x25fc28){_0x115a8f(_0x579ccd,_0x25fc28,_0x1a87cf);};}function c(_0x24207c,_0x4148fc,_0x8addd7,_0x1d9d93){const _0x85d9f5=_0x5749c8;var _0x393e5b=arguments['length'],_0x3c8442=_0x393e5b<0x3?_0x4148fc:_0x1d9d93===null?_0x1d9d93=Object['getOwnPropertyDescriptor'](_0x4148fc,_0x8addd7):_0x1d9d93,_0x1faddf;if(typeof Reflect==_0x85d9f5(0x160)&&typeof Reflect['decorate']==_0x85d9f5(0x12b))_0x3c8442=Reflect['decorate'](_0x24207c,_0x4148fc,_0x8addd7,_0x1d9d93);else{for(var _0x35b676=_0x24207c[_0x85d9f5(0x137)]-0x1;_0x35b676>=0x0;_0x35b676--)(_0x1faddf=_0x24207c[_0x35b676])&&(_0x3c8442=(_0x393e5b<0x3?_0x1faddf(_0x3c8442):_0x393e5b>0x3?_0x1faddf(_0x4148fc,_0x8addd7,_0x3c8442):_0x1faddf(_0x4148fc,_0x8addd7))||_0x3c8442);}return _0x393e5b>0x3&&_0x3c8442&&Object[_0x85d9f5(0x135)](_0x4148fc,_0x8addd7,_0x3c8442),_0x3c8442;}let l=class extends t['FBase']{constructor(_0x5c4efb,_0x2cce1a,_0x5656dc,_0x41ad5b,_0x3d1059){const _0x231b90=_0x5749c8;super(),this['_handler']=_0x5c4efb,this[_0x231b90(0x154)]=_0x2cce1a,this[_0x231b90(0x14d)]=_0x5656dc,this['_snapshotService']=_0x41ad5b,this[_0x231b90(0x14a)]=_0x3d1059;}async['loadSheetAsync'](_0x57d77a,_0x23590a){const _0xfc96a1=_0x5749c8;return await this[_0xfc96a1(0x119)][_0xfc96a1(0x146)](_0x57d77a,0x0,_0x23590a)?(await this[_0xfc96a1(0x14a)][_0xfc96a1(0x156)](_0x57d77a),this[_0xfc96a1(0x113)]['getWorkbook'](_0x57d77a)):null;}async['loadDocAsync'](_0x41c89d,_0x4e90fc){const _0x3a2a58=_0x5749c8;return await this['_snapshotService'][_0x3a2a58(0x11e)](_0x41c89d,0x0,_0x4e90fc)?(await this[_0x3a2a58(0x14a)][_0x3a2a58(0x156)](_0x41c89d),this[_0x3a2a58(0x113)][_0x3a2a58(0x141)](_0x41c89d)):null;}async['loadBaseAsync'](_0x2b5055,_0x3aaa85){const _0x1d9844=_0x5749c8;return await this[_0x1d9844(0x119)][_0x1d9844(0x121)](_0x2b5055,0x0,_0x3aaa85)?(await this[_0x1d9844(0x14a)][_0x1d9844(0x156)](_0x2b5055),this[_0x1d9844(0x113)][_0x1d9844(0x114)](_0x2b5055)):null;}async[_0x5749c8(0x116)](_0x5970db,_0x2572e4){const _0x1c70a7=_0x5749c8;return await this[_0x1c70a7(0x119)][_0x1c70a7(0x155)](_0x5970db,0x0,_0x2572e4)?(await this[_0x1c70a7(0x14a)][_0x1c70a7(0x156)](_0x5970db),this[_0x1c70a7(0x113)][_0x1c70a7(0x13a)](_0x5970db)):null;}async['loadBoardAsync'](_0xc15fa9,_0x3ad58c){const _0x4a37f5=_0x5749c8;return await this[_0x4a37f5(0x119)]['loadBoard'](_0xc15fa9,0x0,_0x3ad58c)?(await this['_collaborationController'][_0x4a37f5(0x156)](_0xc15fa9),this[_0x4a37f5(0x113)][_0x4a37f5(0x157)](_0xc15fa9)):null;}async[_0x5749c8(0x12d)](_0x1bddc0,_0x1c0f3c){const _0x3dab1e=_0x5749c8;return await this[_0x3dab1e(0x119)][_0x3dab1e(0x163)](_0x1bddc0,0x0,_0x1c0f3c)?(await this[_0x3dab1e(0x14a)][_0x3dab1e(0x156)](_0x1bddc0),this[_0x3dab1e(0x113)][_0x3dab1e(0x164)](_0x1bddc0)):null;}[_0x5749c8(0x13e)](_0x30f035,_0x46c6db){const _0x454406=_0x5749c8;let _0x4f72da=this[_0x454406(0x154)][_0x454406(0x11c)](e[_0x454406(0x15a)])['waitForRoom$'](_0x30f035)[_0x454406(0x150)]((0x0,i[_0x454406(0x159)])(_0x294f0e=>_0x294f0e[_0x454406(0x138)]))['subscribe'](_0x238179=>_0x46c6db(Array[_0x454406(0x123)](_0x238179[_0x454406(0x118)]())));return(0x0,n['toDisposable'])(_0x4f72da);}[_0x5749c8(0x161)](_0x4fc6f4){const _0xf7e91c=_0x5749c8;let _0x1b4439=this[_0xf7e91c(0x115)](_0x4fc6f4);if(!_0x1b4439)return e['CollaborationStatus'][_0xf7e91c(0x112)];let _0x598f63=this['_collaborationController'][_0xf7e91c(0x13f)](_0x1b4439);return(_0x598f63==null?void 0x0:_0x598f63[_0xf7e91c(0x120)][_0xf7e91c(0x147)])??e[_0xf7e91c(0x122)][_0xf7e91c(0x112)];}[_0x5749c8(0x130)](_0x56cb91,_0x3c8528={}){const _0x528bf=_0x5749c8;let _0x103bd1=this[_0x528bf(0x115)](_0x56cb91);if(!_0x103bd1)return Promise[_0x528bf(0x142)](Error(_0x528bf(0x129)));let _0x11a251=this[_0x528bf(0x14a)][_0x528bf(0x13f)](_0x103bd1);if(!_0x11a251)return Promise['reject'](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x103bd1+_0x528bf(0x139)));let _0x576b96=_0x11a251[_0x528bf(0x120)][_0x528bf(0x147)];if(_0x576b96===e[_0x528bf(0x122)][_0x528bf(0x15f)])return Promise[_0x528bf(0x117)]();let _0x495eb0=u(_0x103bd1,_0x576b96);if(_0x495eb0)return Promise[_0x528bf(0x142)](_0x495eb0);let _0x74d826=_0x3c8528['timeout']??0x7530;return new Promise((_0x4d2c43,_0x40bd06)=>{const _0x4ee07e=_0x528bf;let _0x1ea41f=!0x1,_0x3d5762=null,_0x303769=setTimeout(()=>{const _0x3f351d=_0xc2f1;_0x1ea41f=!0x0,_0x3d5762==null||_0x3d5762[_0x3f351d(0x13c)](),_0x40bd06(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x103bd1+'\x22\x20after\x20'+_0x74d826+_0x3f351d(0x140)));},_0x74d826),_0x543b24=()=>{const _0x13484f=_0xc2f1;_0x1ea41f=!0x0,clearTimeout(_0x303769),_0x3d5762==null||_0x3d5762[_0x13484f(0x13c)]();};_0x3d5762=_0x11a251[_0x4ee07e(0x14f)][_0x4ee07e(0x136)](_0x58381a=>{const _0x523b89=_0x4ee07e;if(_0x1ea41f)return;if(_0x58381a===e[_0x523b89(0x122)][_0x523b89(0x15f)]){_0x543b24(),_0x4d2c43();return;}let _0x366522=u(_0x103bd1,_0x58381a);_0x366522&&(_0x543b24(),_0x40bd06(_0x366522));});});}[_0x5749c8(0x115)](_0xfb7a34){const _0x2d0462=_0x5749c8;var _0x56c7cf;return _0xfb7a34||((_0x56c7cf=this[_0x2d0462(0x14d)][_0x2d0462(0x12e)]())==null?void 0x0:_0x56c7cf[_0x2d0462(0x132)]());}};l=c([s(0x1,(0x0,n[_0x5749c8(0x13d)])(n[_0x5749c8(0x149)])),s(0x2,n['IUniverInstanceService']),s(0x3,(0x0,n['Inject'])(r[_0x5749c8(0x11a)])),s(0x4,(0x0,n[_0x5749c8(0x13d)])(e['CollaborationController']))],l);function u(_0x415a7e,_0x3a67e7){const _0x5560b7=_0x5749c8;return _0x3a67e7===e[_0x5560b7(0x122)][_0x5560b7(0x14e)]||_0x3a67e7===e['CollaborationStatus'][_0x5560b7(0x112)]?Error(_0x5560b7(0x12f)+_0x415a7e+_0x5560b7(0x15c)+_0x3a67e7+'.'):null;}var d=class extends t[_0x5749c8(0x11b)]{['_initialize'](_0x5e3372){const _0x5d8f27=_0x5749c8;let _0x4581d9=_0x5e3372[_0x5d8f27(0x11c)](e[_0x5d8f27(0x125)]);this[_0x5d8f27(0x162)](this[_0x5d8f27(0x151)](this[_0x5d8f27(0x12a)][_0x5d8f27(0x143)],()=>{const _0x220b8e=_0x5d8f27;let _0x5ea959=new n[(_0x220b8e(0x15e))](),_0x488649=_0x4581d9[_0x220b8e(0x153)][_0x220b8e(0x136)](_0x4ddc87=>{const _0x5c39cd=_0x220b8e;let _0x249e82=_0x4ddc87[_0x5c39cd(0x14f)][_0x5c39cd(0x136)](_0x57cef9=>{const _0x1e473f=_0x5c39cd;let _0x51da39={'unitId':_0x4ddc87['unitID'],'status':_0x57cef9};this[_0x1e473f(0x127)](this[_0x1e473f(0x12a)][_0x1e473f(0x143)],_0x51da39);});_0x5ea959['add']((0x0,n['toDisposable'])(_0x249e82));});return _0x5ea959['add']((0x0,n[_0x220b8e(0x15d)])(_0x488649)),_0x5ea959;}));}[_0x5749c8(0x144)](){const _0x312f6e=_0x5749c8;return this['_injector'][_0x312f6e(0x134)](l,{'getWorkbook':_0x158b29=>this['getWorkbook'](_0x158b29),'getDocument':_0x3761f4=>this['getDocument'](_0x3761f4),'getPresentation':_0x43e867=>this[_0x312f6e(0x13a)](_0x43e867),'getBase':_0xd1337b=>this[_0x312f6e(0x114)](_0xd1337b),'getBoard':_0xf61e53=>this[_0x312f6e(0x157)](_0xf61e53),'getPdf':_0x3c459d=>this['getPdf'](_0x3c459d)});}[_0x5749c8(0x128)](_0x27deac,_0x47d047,_0x2168ea){const _0x5d2e49=_0x5749c8;return this[_0x5d2e49(0x154)]['get'](e['DataLoaderService'])[_0x5d2e49(0x12c)](_0x27deac,_0x47d047,_0x2168ea);}['loadServerUnitOfRevision'](_0x17d87c,_0x4d1692,_0x26edbf){const _0xd04098=_0x5749c8;return this[_0xd04098(0x154)][_0xd04098(0x11c)](e[_0xd04098(0x124)])['loadUnitOfRevision'](_0x17d87c,_0x4d1692,_0x26edbf);}};t['FUniver'][_0x5749c8(0x145)](d),Object[_0x5749c8(0x135)](exports,_0x5749c8(0x11d),{'enumerable':!0x0,'get':function(){return l;}});
1
+ const _0x20517b=_0x458a;(function(_0x23ae2a,_0x5bb617){const _0x111fe3=_0x458a,_0x374d62=_0x23ae2a();while(!![]){try{const _0xca2c1e=-parseInt(_0x111fe3(0x134))/0x1+-parseInt(_0x111fe3(0x14a))/0x2+-parseInt(_0x111fe3(0xfb))/0x3+parseInt(_0x111fe3(0x12a))/0x4+-parseInt(_0x111fe3(0x108))/0x5*(parseInt(_0x111fe3(0x14b))/0x6)+parseInt(_0x111fe3(0x140))/0x7+-parseInt(_0x111fe3(0x121))/0x8*(-parseInt(_0x111fe3(0x114))/0x9);if(_0xca2c1e===_0x5bb617)break;else _0x374d62['push'](_0x374d62['shift']());}catch(_0x3e1a7e){_0x374d62['push'](_0x374d62['shift']());}}}(_0x557e,0xdb828),Object['defineProperty'](exports,Symbol[_0x20517b(0x137)],{'value':_0x20517b(0x115)}));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['FEnum']{get[_0x20517b(0x126)](){const _0x5370d4=_0x20517b;return e[_0x5370d4(0x126)];}};function _0x557e(){const _0x5f0aa5=['state','toDisposable','DataLoaderService','loadPdfAsync','loadUnit','getDocument','fireEvent','CONFLICT','FEnum','ms.','loadBase','198171TKXEWb','Module','FUniver','_injector','getCollaborationStatus','loadBoard','loadSlideAsync','subscribe','loadSlide','loadUnitOfRevision','unsubscribe','decorate','loadDocAsync','632MpHMlw','getPdf','values','_handler','loadServerUnitOfRevision','CollaborationStatus','NOT_COLLAB','_resolveUnitId','\x22\x20while\x20collaboration\x20status\x20is\x20','3002052whUjqC','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','disposeWithMe','status','CollaborationController','_initialize','Event','getBoard','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','get','1332255peSBeV','unitID','entityInit$','toStringTag','[FCollaboration]:\x20Unit\x20\x22','Inject','readyForCollab','waitForRoom$','FEventName','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadServerUnit','flush','8146810aZyYqg','_snapshotService','subscribeCollaborators','length','loadPdf','status$','createInstance','CollaborationStatusChanged','getWorkbook','loadSheet','441360pRqCVh','6ydJXGK','_collaborationController','add','loadDoc','reject','timeout','extend','IUniverInstanceService','switchMap','registerEventHandler','2750982vhUiwY','getPresentation','getFocusedUnit','MemberService','object','getCollabEntity','SYNCED','getUnitId','getCollaboration','DisposableCollection','defineProperty','from','getBase','1424015DbTKCx'];_0x557e=function(){return _0x5f0aa5;};return _0x557e();}t[_0x20517b(0x111)][_0x20517b(0xf7)](a);var o=class extends t[_0x20517b(0x13c)]{get['CollaborationStatusChanged'](){const _0x26aba1=_0x20517b;return _0x26aba1(0x147);}};t['FEventName']['extend'](o);function s(_0x2f8994,_0x48708c){return function(_0x2ae878,_0x3d3694){_0x48708c(_0x2ae878,_0x3d3694,_0x2f8994);};}function c(_0x141548,_0x330212,_0x318078,_0x1b4205){const _0x500d04=_0x20517b;var _0x68c10f=arguments['length'],_0xcbc871=_0x68c10f<0x3?_0x330212:_0x1b4205===null?_0x1b4205=Object['getOwnPropertyDescriptor'](_0x330212,_0x318078):_0x1b4205,_0x5b0e3e;if(typeof Reflect==_0x500d04(0xff)&&typeof Reflect['decorate']=='function')_0xcbc871=Reflect[_0x500d04(0x11f)](_0x141548,_0x330212,_0x318078,_0x1b4205);else{for(var _0x5d8d1c=_0x141548[_0x500d04(0x143)]-0x1;_0x5d8d1c>=0x0;_0x5d8d1c--)(_0x5b0e3e=_0x141548[_0x5d8d1c])&&(_0xcbc871=(_0x68c10f<0x3?_0x5b0e3e(_0xcbc871):_0x68c10f>0x3?_0x5b0e3e(_0x330212,_0x318078,_0xcbc871):_0x5b0e3e(_0x330212,_0x318078))||_0xcbc871);}return _0x68c10f>0x3&&_0xcbc871&&Object['defineProperty'](_0x330212,_0x318078,_0xcbc871),_0xcbc871;}let l=class extends t['FBase']{constructor(_0x56e16b,_0x314384,_0x1df81d,_0x345435,_0x508bcd){const _0x3cc0cb=_0x20517b;super(),this[_0x3cc0cb(0x124)]=_0x56e16b,this[_0x3cc0cb(0x117)]=_0x314384,this['_univerInstanceService']=_0x1df81d,this[_0x3cc0cb(0x141)]=_0x345435,this[_0x3cc0cb(0x14c)]=_0x508bcd;}async['loadSheetAsync'](_0x23b5bb,_0x5866cf){const _0x542ec8=_0x20517b;return await this['_snapshotService'][_0x542ec8(0x149)](_0x23b5bb,0x0,_0x5866cf)?(await this[_0x542ec8(0x14c)][_0x542ec8(0x13a)](_0x23b5bb),this['_handler']['getWorkbook'](_0x23b5bb)):null;}async[_0x20517b(0x120)](_0x526645,_0x15d80c){const _0x2c2719=_0x20517b;return await this[_0x2c2719(0x141)][_0x2c2719(0x14e)](_0x526645,0x0,_0x15d80c)?(await this[_0x2c2719(0x14c)][_0x2c2719(0x13a)](_0x526645),this[_0x2c2719(0x124)][_0x2c2719(0x10e)](_0x526645)):null;}async['loadBaseAsync'](_0x3cabbb,_0xe010d3){const _0x1e9388=_0x20517b;return await this[_0x1e9388(0x141)][_0x1e9388(0x113)](_0x3cabbb,0x0,_0xe010d3)?(await this['_collaborationController'][_0x1e9388(0x13a)](_0x3cabbb),this[_0x1e9388(0x124)][_0x1e9388(0x107)](_0x3cabbb)):null;}async[_0x20517b(0x11a)](_0x1076d9,_0x8448ab){const _0x509900=_0x20517b;return await this[_0x509900(0x141)][_0x509900(0x11c)](_0x1076d9,0x0,_0x8448ab)?(await this[_0x509900(0x14c)][_0x509900(0x13a)](_0x1076d9),this[_0x509900(0x124)][_0x509900(0xfc)](_0x1076d9)):null;}async['loadBoardAsync'](_0x54ec7f,_0x3cc235){const _0x48ac01=_0x20517b;return await this[_0x48ac01(0x141)][_0x48ac01(0x119)](_0x54ec7f,0x0,_0x3cc235)?(await this[_0x48ac01(0x14c)][_0x48ac01(0x13a)](_0x54ec7f),this[_0x48ac01(0x124)]['getBoard'](_0x54ec7f)):null;}async[_0x20517b(0x10c)](_0xc4848a,_0x41ad50){const _0x32c181=_0x20517b;return await this['_snapshotService'][_0x32c181(0x144)](_0xc4848a,0x0,_0x41ad50)?(await this[_0x32c181(0x14c)][_0x32c181(0x13a)](_0xc4848a),this[_0x32c181(0x124)][_0x32c181(0x122)](_0xc4848a)):null;}[_0x20517b(0x142)](_0x45d057,_0x5ef1ab){const _0x3924d0=_0x20517b;let _0x53c3d6=this[_0x3924d0(0x117)][_0x3924d0(0x133)](e[_0x3924d0(0xfe)])[_0x3924d0(0x13b)](_0x45d057)['pipe']((0x0,i[_0x3924d0(0xf9)])(_0x42b7a5=>_0x42b7a5['members$']))['subscribe'](_0x1e6cb8=>_0x5ef1ab(Array[_0x3924d0(0x106)](_0x1e6cb8[_0x3924d0(0x123)]())));return(0x0,n['toDisposable'])(_0x53c3d6);}[_0x20517b(0x118)](_0x26598c){const _0x1d7df4=_0x20517b;let _0xcda94c=this[_0x1d7df4(0x128)](_0x26598c);if(!_0xcda94c)return e[_0x1d7df4(0x126)][_0x1d7df4(0x127)];let _0x18c0ce=this['_collaborationController']['getCollabEntity'](_0xcda94c);return(_0x18c0ce==null?void 0x0:_0x18c0ce['state'][_0x1d7df4(0x12d)])??e[_0x1d7df4(0x126)][_0x1d7df4(0x127)];}[_0x20517b(0x13f)](_0x337075,_0x1168bc={}){const _0x5caf1f=_0x20517b;let _0x4edc12=this[_0x5caf1f(0x128)](_0x337075);if(!_0x4edc12)return Promise[_0x5caf1f(0xf5)](Error(_0x5caf1f(0x132)));let _0x99ea64=this['_collaborationController'][_0x5caf1f(0x100)](_0x4edc12);if(!_0x99ea64)return Promise[_0x5caf1f(0xf5)](Error(_0x5caf1f(0x138)+_0x4edc12+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x16c070=_0x99ea64[_0x5caf1f(0x109)][_0x5caf1f(0x12d)];if(_0x16c070===e[_0x5caf1f(0x126)][_0x5caf1f(0x101)])return Promise['resolve']();let _0x2b95d1=u(_0x4edc12,_0x16c070);if(_0x2b95d1)return Promise[_0x5caf1f(0xf5)](_0x2b95d1);let _0x1f0153=_0x1168bc[_0x5caf1f(0xf6)]??0x7530;return new Promise((_0x4bba28,_0xb26cae)=>{const _0x52bffb=_0x5caf1f;let _0xb2800e=!0x1,_0x15aba2=null,_0xa8bfc5=setTimeout(()=>{const _0x29dd9b=_0x458a;_0xb2800e=!0x0,_0x15aba2==null||_0x15aba2['unsubscribe'](),_0xb26cae(Error(_0x29dd9b(0x12b)+_0x4edc12+'\x22\x20after\x20'+_0x1f0153+_0x29dd9b(0x112)));},_0x1f0153),_0x7d3fb9=()=>{const _0x2fc073=_0x458a;_0xb2800e=!0x0,clearTimeout(_0xa8bfc5),_0x15aba2==null||_0x15aba2[_0x2fc073(0x11e)]();};_0x15aba2=_0x99ea64[_0x52bffb(0x145)][_0x52bffb(0x11b)](_0x2e0499=>{const _0x8c78cb=_0x52bffb;if(_0xb2800e)return;if(_0x2e0499===e[_0x8c78cb(0x126)][_0x8c78cb(0x101)]){_0x7d3fb9(),_0x4bba28();return;}let _0x57caa1=u(_0x4edc12,_0x2e0499);_0x57caa1&&(_0x7d3fb9(),_0xb26cae(_0x57caa1));});});}['_resolveUnitId'](_0x529533){const _0x259d85=_0x20517b;var _0x985342;return _0x529533||((_0x985342=this['_univerInstanceService'][_0x259d85(0xfd)]())==null?void 0x0:_0x985342[_0x259d85(0x102)]());}};l=c([s(0x1,(0x0,n['Inject'])(n['Injector'])),s(0x2,n[_0x20517b(0xf8)]),s(0x3,(0x0,n['Inject'])(r['SnapshotService'])),s(0x4,(0x0,n[_0x20517b(0x139)])(e[_0x20517b(0x12e)]))],l);function _0x458a(_0x988b49,_0x3b95ba){_0x988b49=_0x988b49-0xf5;const _0x557edc=_0x557e();let _0x458a34=_0x557edc[_0x988b49];return _0x458a34;}function u(_0x88295e,_0x4e2bdd){const _0x2f7f9c=_0x20517b;return _0x4e2bdd===e[_0x2f7f9c(0x126)][_0x2f7f9c(0x110)]||_0x4e2bdd===e[_0x2f7f9c(0x126)][_0x2f7f9c(0x127)]?Error(_0x2f7f9c(0x13d)+_0x88295e+_0x2f7f9c(0x129)+_0x4e2bdd+'.'):null;}var d=class extends t[_0x20517b(0x116)]{[_0x20517b(0x12f)](_0x58780f){const _0x472795=_0x20517b;let _0x1be871=_0x58780f[_0x472795(0x133)](e[_0x472795(0x12e)]);this[_0x472795(0x12c)](this[_0x472795(0xfa)](this['Event'][_0x472795(0x147)],()=>{const _0x4c6104=_0x472795;let _0x53ae89=new n[(_0x4c6104(0x104))](),_0x45c9cb=_0x1be871[_0x4c6104(0x136)][_0x4c6104(0x11b)](_0x3353cf=>{const _0x26cff1=_0x4c6104;let _0x15bb80=_0x3353cf[_0x26cff1(0x145)][_0x26cff1(0x11b)](_0x32b8d4=>{const _0x4b20a7=_0x26cff1;let _0x4b63e0={'unitId':_0x3353cf[_0x4b20a7(0x135)],'status':_0x32b8d4};this[_0x4b20a7(0x10f)](this[_0x4b20a7(0x130)][_0x4b20a7(0x147)],_0x4b63e0);});_0x53ae89[_0x26cff1(0x14d)]((0x0,n['toDisposable'])(_0x15bb80));});return _0x53ae89[_0x4c6104(0x14d)]((0x0,n[_0x4c6104(0x10a)])(_0x45c9cb)),_0x53ae89;}));}[_0x20517b(0x103)](){const _0x36a9a2=_0x20517b;return this[_0x36a9a2(0x117)][_0x36a9a2(0x146)](l,{'getWorkbook':_0x427d41=>this[_0x36a9a2(0x148)](_0x427d41),'getDocument':_0x2e8771=>this[_0x36a9a2(0x10e)](_0x2e8771),'getPresentation':_0x180bcf=>this[_0x36a9a2(0xfc)](_0x180bcf),'getBase':_0x52986f=>this[_0x36a9a2(0x107)](_0x52986f),'getBoard':_0x826f1e=>this[_0x36a9a2(0x131)](_0x826f1e),'getPdf':_0x37840b=>this[_0x36a9a2(0x122)](_0x37840b)});}[_0x20517b(0x13e)](_0x16efc9,_0x4b9260,_0x2c6baf){const _0x51e0f6=_0x20517b;return this[_0x51e0f6(0x117)][_0x51e0f6(0x133)](e['DataLoaderService'])[_0x51e0f6(0x10d)](_0x16efc9,_0x4b9260,_0x2c6baf);}[_0x20517b(0x125)](_0x2499a4,_0x68383d,_0x497f85){const _0x24456e=_0x20517b;return this[_0x24456e(0x117)]['get'](e[_0x24456e(0x10b)])[_0x24456e(0x11d)](_0x2499a4,_0x68383d,_0x497f85);}};t[_0x20517b(0x116)][_0x20517b(0xf7)](d),Object[_0x20517b(0x105)](exports,'FCollaboration',{'enumerable':!0x0,'get':function(){return l;}});