@univerjs-pro/collaboration-client 1.0.0-alpha.5 → 1.0.0-alpha.7
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5237e1=_0x49e3;(function(_0x1d12d8,_0xbdd493){const _0x1665d2=_0x49e3,_0x419d26=_0x1d12d8();while(!![]){try{const _0x174391=-parseInt(_0x1665d2(0x1e1))/0x1*(parseInt(_0x1665d2(0x1eb))/0x2)+-parseInt(_0x1665d2(0x1e5))/0x3*(parseInt(_0x1665d2(0x1ee))/0x4)+parseInt(_0x1665d2(0x1dd))/0x5*(-parseInt(_0x1665d2(0x1e8))/0x6)+parseInt(_0x1665d2(0x1df))/0x7*(-parseInt(_0x1665d2(0x1e2))/0x8)+-parseInt(_0x1665d2(0x1de))/0x9*(-parseInt(_0x1665d2(0x1e3))/0xa)+-parseInt(_0x1665d2(0x1da))/0xb+-parseInt(_0x1665d2(0x1d8))/0xc*(-parseInt(_0x1665d2(0x1ec))/0xd);if(_0x174391===_0xbdd493)break;else _0x419d26['push'](_0x419d26['shift']());}catch(_0x3593b7){_0x419d26['push'](_0x419d26['shift']());}}}(_0x3b30,0xa8c3e));function _0x3b30(){const _0x24ceba=['您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','5094072LixbKU','此文件協作人數已達上限,您的編輯將暫存於本機。','1170048aTROYY','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','加入協作失敗,您的編輯將暫存於本機。','3440kpioia','9SPsicX','3413032ZettuB','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','291UwPrzN','8LNsYnL','1546130nYHIIO','正在擷取伺服器資料...','2358AUeJYV','編輯衝突','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','8544bVJvFn','協作衝突','認證錯誤','7994Cwqrzk','104LTWQmM','同步中...','624HKFFYc','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','伺服器未回應協作請求,您的編輯將儲存在本機。','由於協作房間已關閉,編輯權限已被收回。','連線失敗,請檢查您的網路。','連線失敗,將在稍後重試連線。','本機檔案'];_0x3b30=function(){return _0x24ceba;};return _0x3b30();}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x5237e1(0x1e4),'conflict':_0x5237e1(0x1e6),'notCollab':_0x5237e1(0x1d6),'synced':'已同步','syncing':_0x5237e1(0x1ed),'offline':'已離線,編輯將儲存在本機'},'session':{'connection-failed':_0x5237e1(0x1d4),'will-retry':_0x5237e1(0x1d5),'room-full':_0x5237e1(0x1d9),'join-failed':_0x5237e1(0x1ef),'room-not-exists':_0x5237e1(0x1dc),'room-permission-denied':'沒有協作權限,您的編輯將暫存於本機。','room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':_0x5237e1(0x1f0)},'conflict':{'title':_0x5237e1(0x1e9),'content':_0x5237e1(0x1db)},'permission':{'title':_0x5237e1(0x1ea),'content':_0x5237e1(0x1e0)},'collaboration':{'single-unit':{'warning':_0x5237e1(0x1e7)},'closeRoom':_0x5237e1(0x1d3)},'auth':{'needGotoLoginAlert':_0x5237e1(0x1d7)}}};function _0x49e3(_0x12b466,_0x596042){_0x12b466=_0x12b466-0x1d3;const _0x3b30e7=_0x3b30();let _0x49e327=_0x3b30e7[_0x12b466];return _0x49e327;}export{e as default};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x15ba(){const _0x2162eb=['UniverProCollaborationClient','reject','decorate','SYNCED','add','_initialize','CollaborationStatusChanged','fireEvent','get','_resolveUnitId','\x22\x20after\x20','pipe','loadDoc','DataLoaderService','69AqaGNZ','getOwnPropertyDescriptor','values','status','getPresentation','subscribe','CollaborationStatus','registerEventHandler','status$','timeout','DisposableCollection','flush','loadServerUnitOfRevision','disposeWithMe','loadUnitOfRevision','_univerInstanceService','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','UniverCore','switchMap','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','function','UniverCoreFacade','_handler','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','SnapshotService','unsubscribe','resolve','Event','_snapshotService','FUniver','getFocusedUnit','Injector','getUnitId','loadSheetAsync','getBoard','2009133JBOatl','@univerjs/core/facade','2081976JcPBlr','252864CTthBF','getBase','CONFLICT','length','@univerjs-pro/collaboration-client','FEventName','UniverProCollaborationClientFacade','getDocument','loadBoardAsync','NOT_COLLAB','extend','getCollaborationStatus','defineProperty','getWorkbook','loadBaseAsync','loadDocAsync','loadUnit','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','getCollabEntity','toStringTag','9704QHDghY','MemberService','members$','waitForRoom$','getCollaboration','loadSlide','\x22\x20while\x20collaboration\x20status\x20is\x20','@univerjs-pro/collaboration','_injector','subscribeCollaborators','CollaborationController','UniverProCollaboration','652075qXnbXW','exports','129614ytJTlE','state','readyForCollab','FBase','createInstance','toDisposable','unitID','FEnum','Inject','amd','8sAncIu','1393569uFPyAu','_collaborationController'];_0x15ba=function(){return _0x2162eb;};return _0x15ba();}function _0x5c6d(_0x45d053,_0x365c99){_0x45d053=_0x45d053-0xcd;const _0x15bad6=_0x15ba();let _0x5c6d81=_0x15bad6[_0x45d053];return _0x5c6d81;}(function(_0x94d84c,_0x4e1760){const _0x437a3a=_0x5c6d,_0x460513=_0x94d84c();while(!![]){try{const _0x17839a=-parseInt(_0x437a3a(0x122))/0x1*(-parseInt(_0x437a3a(0x118))/0x2)+-parseInt(_0x437a3a(0xd0))/0x3*(parseInt(_0x437a3a(0x10a))/0x4)+-parseInt(_0x437a3a(0x116))/0x5+parseInt(_0x437a3a(0xf6))/0x6+-parseInt(_0x437a3a(0xf3))/0x7+parseInt(_0x437a3a(0xf5))/0x8+parseInt(_0x437a3a(0x123))/0x9;if(_0x17839a===_0x4e1760)break;else _0x460513['push'](_0x460513['shift']());}catch(_0x27f4f5){_0x460513['push'](_0x460513['shift']());}}}(_0x15ba,0x7aab8),function(_0x260b67,_0x326006){const _0x1a080d=_0x5c6d;typeof exports=='object'&&typeof module<'u'?_0x326006(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x1a080d(0xe4)&&define[_0x1a080d(0x121)]?define([_0x1a080d(0x117),_0x1a080d(0xfa),_0x1a080d(0xf4),'@univerjs/core',_0x1a080d(0x111),'rxjs'],_0x326006):(_0x260b67=typeof globalThis<'u'?globalThis:_0x260b67||self,_0x326006(_0x260b67[_0x1a080d(0xfc)]={},_0x260b67[_0x1a080d(0x125)],_0x260b67[_0x1a080d(0xe5)],_0x260b67[_0x1a080d(0xe1)],_0x260b67[_0x1a080d(0x115)],_0x260b67['rxjs']));}(this,function(_0x2fce93,_0x5550c2,_0x4f9f00,_0x4c5411,_0x41c24e,_0x87c877){const _0x22fc26=_0x5c6d;Object[_0x22fc26(0x102)](_0x2fce93,Symbol[_0x22fc26(0x109)],{'value':'Module'});var _0x4f5c57=class extends _0x4f9f00[_0x22fc26(0x11f)]{get[_0x22fc26(0xd6)](){return _0x5550c2['CollaborationStatus'];}};_0x4f9f00[_0x22fc26(0x11f)][_0x22fc26(0x100)](_0x4f5c57);var _0x3bde83=class extends _0x4f9f00[_0x22fc26(0xfb)]{get[_0x22fc26(0x12b)](){const _0x19de06=_0x22fc26;return _0x19de06(0x12b);}};_0x4f9f00[_0x22fc26(0xfb)]['extend'](_0x3bde83);function _0x29224b(_0x1e5e9f,_0x55e7e4){return function(_0x450e54,_0x319f5b){_0x55e7e4(_0x450e54,_0x319f5b,_0x1e5e9f);};}function _0x492c94(_0x314013,_0x549b6d,_0x340846,_0x18f1b2){const _0x16cf0e=_0x22fc26;var _0x39d498=arguments[_0x16cf0e(0xf9)],_0x3437b6=_0x39d498<0x3?_0x549b6d:_0x18f1b2===null?_0x18f1b2=Object[_0x16cf0e(0xd1)](_0x549b6d,_0x340846):_0x18f1b2,_0x10b29e;if(typeof Reflect=='object'&&typeof Reflect[_0x16cf0e(0x127)]=='function')_0x3437b6=Reflect[_0x16cf0e(0x127)](_0x314013,_0x549b6d,_0x340846,_0x18f1b2);else{for(var _0x5c766a=_0x314013['length']-0x1;_0x5c766a>=0x0;_0x5c766a--)(_0x10b29e=_0x314013[_0x5c766a])&&(_0x3437b6=(_0x39d498<0x3?_0x10b29e(_0x3437b6):_0x39d498>0x3?_0x10b29e(_0x549b6d,_0x340846,_0x3437b6):_0x10b29e(_0x549b6d,_0x340846))||_0x3437b6);}return _0x39d498>0x3&&_0x3437b6&&Object['defineProperty'](_0x549b6d,_0x340846,_0x3437b6),_0x3437b6;}let _0x12bb42=class extends _0x4f9f00[_0x22fc26(0x11b)]{constructor(_0x16cc24,_0x49a911,_0x205813,_0x5069a7,_0x1131f9){const _0x1ffba2=_0x22fc26;super(),this['_handler']=_0x16cc24,this[_0x1ffba2(0x112)]=_0x49a911,this[_0x1ffba2(0xdf)]=_0x205813,this[_0x1ffba2(0xec)]=_0x5069a7,this[_0x1ffba2(0x124)]=_0x1131f9;}async[_0x22fc26(0xf1)](_0x219a8b,_0x2b813d){const _0x5cbada=_0x22fc26;return await this[_0x5cbada(0xec)]['loadSheet'](_0x219a8b,0x0,_0x2b813d)?(await this[_0x5cbada(0x124)]['readyForCollab'](_0x219a8b),this[_0x5cbada(0xe6)][_0x5cbada(0x103)](_0x219a8b)):null;}async[_0x22fc26(0x105)](_0x523714,_0x4a761b){const _0x4f3800=_0x22fc26;return await this['_snapshotService'][_0x4f3800(0xce)](_0x523714,0x0,_0x4a761b)?(await this[_0x4f3800(0x124)]['readyForCollab'](_0x523714),this[_0x4f3800(0xe6)][_0x4f3800(0xfd)](_0x523714)):null;}async[_0x22fc26(0x104)](_0x34638f,_0x102160){const _0x1f862c=_0x22fc26;return await this[_0x1f862c(0xec)]['loadBase'](_0x34638f,0x0,_0x102160)?(await this['_collaborationController'][_0x1f862c(0x11a)](_0x34638f),this[_0x1f862c(0xe6)][_0x1f862c(0xf7)](_0x34638f)):null;}async['loadSlideAsync'](_0x1ce53c,_0x2574f4){const _0x1a6e54=_0x22fc26;return await this[_0x1a6e54(0xec)][_0x1a6e54(0x10f)](_0x1ce53c,0x0,_0x2574f4)?(await this['_collaborationController'][_0x1a6e54(0x11a)](_0x1ce53c),this[_0x1a6e54(0xe6)][_0x1a6e54(0xd4)](_0x1ce53c)):null;}async[_0x22fc26(0xfe)](_0x1e5f06,_0x59ed08){const _0x5df634=_0x22fc26;return await this['_snapshotService']['loadBoard'](_0x1e5f06,0x0,_0x59ed08)?(await this['_collaborationController'][_0x5df634(0x11a)](_0x1e5f06),this[_0x5df634(0xe6)][_0x5df634(0xf2)](_0x1e5f06)):null;}[_0x22fc26(0x113)](_0x45af89,_0x4672ba){const _0x39498d=_0x22fc26;return(0x0,_0x4c5411['toDisposable'])(this[_0x39498d(0x112)][_0x39498d(0x12d)](_0x5550c2[_0x39498d(0x10b)])[_0x39498d(0x10d)](_0x45af89)[_0x39498d(0xcd)]((0x0,_0x87c877[_0x39498d(0xe2)])(_0x5411fa=>_0x5411fa[_0x39498d(0x10c)]))[_0x39498d(0xd5)](_0x56fe5f=>_0x4672ba(Array['from'](_0x56fe5f[_0x39498d(0xd2)]()))));}[_0x22fc26(0x101)](_0x4d40b0){const _0x527403=_0x22fc26;var _0x5c9103;let _0x22eef3=this[_0x527403(0x12e)](_0x4d40b0);if(!_0x22eef3)return _0x5550c2[_0x527403(0xd6)][_0x527403(0xff)];let _0x30efbb=this[_0x527403(0x124)][_0x527403(0x108)](_0x22eef3);return(_0x5c9103=_0x30efbb==null?void 0x0:_0x30efbb[_0x527403(0x119)][_0x527403(0xd3)])==null?_0x5550c2['CollaborationStatus']['NOT_COLLAB']:_0x5c9103;}[_0x22fc26(0xdb)](_0x3ed4bd,_0x2c1d7d={}){const _0x38e666=_0x22fc26;var _0x383590;let _0x37881f=this[_0x38e666(0x12e)](_0x3ed4bd);if(!_0x37881f)return Promise['reject'](Error(_0x38e666(0xe7)));let _0x3dd502=this['_collaborationController'][_0x38e666(0x108)](_0x37881f);if(!_0x3dd502)return Promise[_0x38e666(0x126)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x37881f+_0x38e666(0xe0)));let _0x210630=_0x3dd502[_0x38e666(0x119)][_0x38e666(0xd3)];if(_0x210630===_0x5550c2[_0x38e666(0xd6)][_0x38e666(0x128)])return Promise[_0x38e666(0xea)]();let _0x40c443=_0x26b6ea(_0x37881f,_0x210630);if(_0x40c443)return Promise[_0x38e666(0x126)](_0x40c443);let _0x168731=(_0x383590=_0x2c1d7d[_0x38e666(0xd9)])==null?0x7530:_0x383590;return new Promise((_0x590ed1,_0xb8a9a8)=>{let _0x3c8d1f=!0x1,_0x28c384=null,_0xd62ddb=setTimeout(()=>{const _0x2154a4=_0x5c6d;_0x3c8d1f=!0x0,_0x28c384==null||_0x28c384[_0x2154a4(0xe9)](),_0xb8a9a8(Error(_0x2154a4(0xe3)+_0x37881f+_0x2154a4(0x12f)+_0x168731+'ms.'));},_0x168731),_0x47fde0=()=>{_0x3c8d1f=!0x0,clearTimeout(_0xd62ddb),_0x28c384==null||_0x28c384['unsubscribe']();};_0x28c384=_0x3dd502['status$']['subscribe'](_0x444bc8=>{const _0x236b69=_0x5c6d;if(_0x3c8d1f)return;if(_0x444bc8===_0x5550c2[_0x236b69(0xd6)][_0x236b69(0x128)]){_0x47fde0(),_0x590ed1();return;}let _0x540e13=_0x26b6ea(_0x37881f,_0x444bc8);_0x540e13&&(_0x47fde0(),_0xb8a9a8(_0x540e13));});});}[_0x22fc26(0x12e)](_0x354043){const _0x1af189=_0x22fc26;var _0x3865d7;return _0x354043||((_0x3865d7=this[_0x1af189(0xdf)][_0x1af189(0xee)]())==null?void 0x0:_0x3865d7[_0x1af189(0xf0)]());}};_0x12bb42=_0x492c94([_0x29224b(0x1,(0x0,_0x4c5411[_0x22fc26(0x120)])(_0x4c5411[_0x22fc26(0xef)])),_0x29224b(0x2,_0x4c5411['IUniverInstanceService']),_0x29224b(0x3,(0x0,_0x4c5411[_0x22fc26(0x120)])(_0x41c24e[_0x22fc26(0xe8)])),_0x29224b(0x4,(0x0,_0x4c5411[_0x22fc26(0x120)])(_0x5550c2[_0x22fc26(0x114)]))],_0x12bb42);function _0x26b6ea(_0x4bcfdd,_0x5ed91c){const _0x1ccb2c=_0x22fc26;return _0x5ed91c===_0x5550c2[_0x1ccb2c(0xd6)][_0x1ccb2c(0xf8)]||_0x5ed91c===_0x5550c2['CollaborationStatus'][_0x1ccb2c(0xff)]?Error(_0x1ccb2c(0x107)+_0x4bcfdd+_0x1ccb2c(0x110)+_0x5ed91c+'.'):null;}var _0x5b44c7=class extends _0x4f9f00[_0x22fc26(0xed)]{[_0x22fc26(0x12a)](_0x17d86b){const _0x43b81c=_0x22fc26;let _0x5fb49d=_0x17d86b[_0x43b81c(0x12d)](_0x5550c2['CollaborationController']);this[_0x43b81c(0xdd)](this[_0x43b81c(0xd7)](this[_0x43b81c(0xeb)][_0x43b81c(0x12b)],()=>{const _0x85cc19=_0x43b81c;let _0x483c81=new _0x4c5411[(_0x85cc19(0xda))](),_0x103c19=_0x5fb49d['entityInit$']['subscribe'](_0x502dda=>{const _0x50f160=_0x85cc19;let _0x45650f=_0x502dda[_0x50f160(0xd8)][_0x50f160(0xd5)](_0x5701fc=>{const _0x2d1cda=_0x50f160;let _0x14b412={'unitId':_0x502dda[_0x2d1cda(0x11e)],'status':_0x5701fc};this[_0x2d1cda(0x12c)](this[_0x2d1cda(0xeb)][_0x2d1cda(0x12b)],_0x14b412);});_0x483c81[_0x50f160(0x129)]((0x0,_0x4c5411[_0x50f160(0x11d)])(_0x45650f));});return _0x483c81['add']((0x0,_0x4c5411[_0x85cc19(0x11d)])(_0x103c19)),_0x483c81;}));}[_0x22fc26(0x10e)](){const _0x3ec773=_0x22fc26;return this[_0x3ec773(0x112)][_0x3ec773(0x11c)](_0x12bb42,{'getWorkbook':_0x2c8a3a=>this[_0x3ec773(0x103)](_0x2c8a3a),'getDocument':_0xe5f5d7=>this[_0x3ec773(0xfd)](_0xe5f5d7),'getPresentation':_0x12ca85=>this[_0x3ec773(0xd4)](_0x12ca85),'getBase':_0x78671f=>this['getBase'](_0x78671f),'getBoard':_0xe023e9=>this[_0x3ec773(0xf2)](_0xe023e9)});}['loadServerUnit'](_0x541d9f,_0x1bddcd,_0x4b4f3c){const _0x103905=_0x22fc26;return this['_injector'][_0x103905(0x12d)](_0x5550c2[_0x103905(0xcf)])[_0x103905(0x106)](_0x541d9f,_0x1bddcd,_0x4b4f3c);}[_0x22fc26(0xdc)](_0x34cdad,_0x1b33c1,_0x2a841e){const _0x4a97e8=_0x22fc26;return this['_injector'][_0x4a97e8(0x12d)](_0x5550c2[_0x4a97e8(0xcf)])[_0x4a97e8(0xde)](_0x34cdad,_0x1b33c1,_0x2a841e);}};_0x4f9f00[_0x22fc26(0xed)][_0x22fc26(0x100)](_0x5b44c7),Object['defineProperty'](_0x2fce93,'FCollaboration',{'enumerable':!0x0,'get':function(){return _0x12bb42;}});}));
|
|
1
|
+
function _0x5ce8(_0x3c0202,_0x2aacdf){_0x3c0202=_0x3c0202-0x13a;const _0x9406c1=_0x9406();let _0x5ce815=_0x9406c1[_0x3c0202];return _0x5ce815;}(function(_0x50c998,_0x387dc9){const _0x29d750=_0x5ce8,_0x1871f7=_0x50c998();while(!![]){try{const _0x338d61=parseInt(_0x29d750(0x166))/0x1*(-parseInt(_0x29d750(0x16b))/0x2)+parseInt(_0x29d750(0x148))/0x3+parseInt(_0x29d750(0x180))/0x4+parseInt(_0x29d750(0x162))/0x5+-parseInt(_0x29d750(0x13a))/0x6*(parseInt(_0x29d750(0x13b))/0x7)+parseInt(_0x29d750(0x196))/0x8*(-parseInt(_0x29d750(0x15d))/0x9)+parseInt(_0x29d750(0x151))/0xa;if(_0x338d61===_0x387dc9)break;else _0x1871f7['push'](_0x1871f7['shift']());}catch(_0x42c1c5){_0x1871f7['push'](_0x1871f7['shift']());}}}(_0x9406,0xf122d),function(_0x324eb4,_0x399342){const _0x2a4996=_0x5ce8;typeof exports==_0x2a4996(0x193)&&typeof module<'u'?_0x399342(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x2a4996(0x18d)&&define['amd']?define([_0x2a4996(0x157),_0x2a4996(0x182),'@univerjs/core/facade',_0x2a4996(0x15a),'@univerjs-pro/collaboration',_0x2a4996(0x169)],_0x399342):(_0x324eb4=typeof globalThis<'u'?globalThis:_0x324eb4||self,_0x399342(_0x324eb4[_0x2a4996(0x153)]={},_0x324eb4[_0x2a4996(0x186)],_0x324eb4[_0x2a4996(0x192)],_0x324eb4[_0x2a4996(0x155)],_0x324eb4['UniverProCollaboration'],_0x324eb4[_0x2a4996(0x169)]));}(this,function(_0x2ad3e0,_0x274cb9,_0x214643,_0x40ace1,_0x854810,_0x4446bf){const _0x290f33=_0x5ce8;Object['defineProperty'](_0x2ad3e0,Symbol[_0x290f33(0x16a)],{'value':_0x290f33(0x171)});var _0x1236db=class extends _0x214643[_0x290f33(0x140)]{get[_0x290f33(0x18e)](){const _0x1d663d=_0x290f33;return _0x274cb9[_0x1d663d(0x18e)];}};_0x214643[_0x290f33(0x140)][_0x290f33(0x181)](_0x1236db);var _0x344813=class extends _0x214643[_0x290f33(0x170)]{get[_0x290f33(0x163)](){const _0x517f31=_0x290f33;return _0x517f31(0x163);}};_0x214643[_0x290f33(0x170)][_0x290f33(0x181)](_0x344813);function _0x400bb1(_0x22e9e6,_0x4272aa){return function(_0x3ecd27,_0x2938b8){_0x4272aa(_0x3ecd27,_0x2938b8,_0x22e9e6);};}function _0x412e62(_0x28a883,_0x4f53cb,_0x287aa1,_0x492a8a){const _0x44cf70=_0x290f33;var _0x1518f4=arguments[_0x44cf70(0x15f)],_0x4857d1=_0x1518f4<0x3?_0x4f53cb:_0x492a8a===null?_0x492a8a=Object[_0x44cf70(0x17e)](_0x4f53cb,_0x287aa1):_0x492a8a,_0x5d6d2a;if(typeof Reflect==_0x44cf70(0x193)&&typeof Reflect[_0x44cf70(0x17a)]==_0x44cf70(0x18d))_0x4857d1=Reflect[_0x44cf70(0x17a)](_0x28a883,_0x4f53cb,_0x287aa1,_0x492a8a);else{for(var _0x523ef9=_0x28a883['length']-0x1;_0x523ef9>=0x0;_0x523ef9--)(_0x5d6d2a=_0x28a883[_0x523ef9])&&(_0x4857d1=(_0x1518f4<0x3?_0x5d6d2a(_0x4857d1):_0x1518f4>0x3?_0x5d6d2a(_0x4f53cb,_0x287aa1,_0x4857d1):_0x5d6d2a(_0x4f53cb,_0x287aa1))||_0x4857d1);}return _0x1518f4>0x3&&_0x4857d1&&Object[_0x44cf70(0x141)](_0x4f53cb,_0x287aa1,_0x4857d1),_0x4857d1;}let _0x13d212=class extends _0x214643['FBase']{constructor(_0x334640,_0x51ed3c,_0x4136d1,_0xd3fe3a,_0x37d03c){const _0x25b7f3=_0x290f33;super(),this[_0x25b7f3(0x198)]=_0x334640,this['_injector']=_0x51ed3c,this[_0x25b7f3(0x172)]=_0x4136d1,this[_0x25b7f3(0x13d)]=_0xd3fe3a,this[_0x25b7f3(0x15e)]=_0x37d03c;}async[_0x290f33(0x179)](_0x1ef8eb,_0x9665e3){const _0x49a6fe=_0x290f33;return await this[_0x49a6fe(0x13d)][_0x49a6fe(0x187)](_0x1ef8eb,0x0,_0x9665e3)?(await this['_collaborationController'][_0x49a6fe(0x154)](_0x1ef8eb),this[_0x49a6fe(0x198)]['getWorkbook'](_0x1ef8eb)):null;}async['loadDocAsync'](_0x11069c,_0x47dcba){const _0xc189cf=_0x290f33;return await this[_0xc189cf(0x13d)][_0xc189cf(0x168)](_0x11069c,0x0,_0x47dcba)?(await this[_0xc189cf(0x15e)]['readyForCollab'](_0x11069c),this[_0xc189cf(0x198)]['getDocument'](_0x11069c)):null;}async['loadBaseAsync'](_0x52849c,_0x243a1a){const _0x5a5dea=_0x290f33;return await this['_snapshotService'][_0x5a5dea(0x14f)](_0x52849c,0x0,_0x243a1a)?(await this['_collaborationController'][_0x5a5dea(0x154)](_0x52849c),this[_0x5a5dea(0x198)][_0x5a5dea(0x190)](_0x52849c)):null;}async[_0x290f33(0x146)](_0x1c5659,_0x115da4){const _0x3a0272=_0x290f33;return await this[_0x3a0272(0x13d)][_0x3a0272(0x17c)](_0x1c5659,0x0,_0x115da4)?(await this[_0x3a0272(0x15e)][_0x3a0272(0x154)](_0x1c5659),this['_handler']['getPresentation'](_0x1c5659)):null;}async[_0x290f33(0x156)](_0x2e8506,_0x1179b6){const _0x27eff4=_0x290f33;return await this['_snapshotService']['loadBoard'](_0x2e8506,0x0,_0x1179b6)?(await this[_0x27eff4(0x15e)][_0x27eff4(0x154)](_0x2e8506),this[_0x27eff4(0x198)][_0x27eff4(0x194)](_0x2e8506)):null;}[_0x290f33(0x15b)](_0x58725f,_0x35d17f){const _0x3d0a6a=_0x290f33;return(0x0,_0x40ace1[_0x3d0a6a(0x147)])(this[_0x3d0a6a(0x158)][_0x3d0a6a(0x160)](_0x274cb9['MemberService'])[_0x3d0a6a(0x152)](_0x58725f)[_0x3d0a6a(0x145)]((0x0,_0x4446bf['switchMap'])(_0x43a3b1=>_0x43a3b1[_0x3d0a6a(0x175)]))['subscribe'](_0x529da2=>_0x35d17f(Array['from'](_0x529da2['values']()))));}[_0x290f33(0x142)](_0xd664ca){const _0x57eb8e=_0x290f33;var _0x1644ba;let _0x4a23c6=this[_0x57eb8e(0x176)](_0xd664ca);if(!_0x4a23c6)return _0x274cb9['CollaborationStatus'][_0x57eb8e(0x188)];let _0x30c8b0=this[_0x57eb8e(0x15e)][_0x57eb8e(0x16c)](_0x4a23c6);return(_0x1644ba=_0x30c8b0==null?void 0x0:_0x30c8b0[_0x57eb8e(0x189)][_0x57eb8e(0x13f)])==null?_0x274cb9[_0x57eb8e(0x18e)]['NOT_COLLAB']:_0x1644ba;}[_0x290f33(0x16e)](_0x1e0091,_0x42b693={}){const _0x1ca344=_0x290f33;var _0x14b064;let _0x328e60=this[_0x1ca344(0x176)](_0x1e0091);if(!_0x328e60)return Promise[_0x1ca344(0x14d)](Error(_0x1ca344(0x185)));let _0x4a2deb=this[_0x1ca344(0x15e)][_0x1ca344(0x16c)](_0x328e60);if(!_0x4a2deb)return Promise['reject'](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x328e60+'\x22\x20is\x20not\x20in\x20collaboration\x20mode.'));let _0x1e6446=_0x4a2deb[_0x1ca344(0x189)][_0x1ca344(0x13f)];if(_0x1e6446===_0x274cb9[_0x1ca344(0x18e)][_0x1ca344(0x15c)])return Promise[_0x1ca344(0x197)]();let _0x3b3872=_0x3d7ee6(_0x328e60,_0x1e6446);if(_0x3b3872)return Promise[_0x1ca344(0x14d)](_0x3b3872);let _0x3aaadb=(_0x14b064=_0x42b693[_0x1ca344(0x161)])==null?0x7530:_0x14b064;return new Promise((_0xb830fa,_0x35fd49)=>{let _0x192106=!0x1,_0x1b0e9b=null,_0x33242d=setTimeout(()=>{const _0x587758=_0x5ce8;_0x192106=!0x0,_0x1b0e9b==null||_0x1b0e9b[_0x587758(0x195)](),_0x35fd49(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x328e60+_0x587758(0x177)+_0x3aaadb+_0x587758(0x16d)));},_0x3aaadb),_0x46dd3d=()=>{_0x192106=!0x0,clearTimeout(_0x33242d),_0x1b0e9b==null||_0x1b0e9b['unsubscribe']();};_0x1b0e9b=_0x4a2deb['status$']['subscribe'](_0x2a1912=>{const _0x5a56f4=_0x5ce8;if(_0x192106)return;if(_0x2a1912===_0x274cb9[_0x5a56f4(0x18e)]['SYNCED']){_0x46dd3d(),_0xb830fa();return;}let _0x44f258=_0x3d7ee6(_0x328e60,_0x2a1912);_0x44f258&&(_0x46dd3d(),_0x35fd49(_0x44f258));});});}[_0x290f33(0x176)](_0x47cc17){const _0x56b6a4=_0x290f33;var _0x430252;return _0x47cc17||((_0x430252=this[_0x56b6a4(0x172)][_0x56b6a4(0x17b)]())==null?void 0x0:_0x430252[_0x56b6a4(0x167)]());}};_0x13d212=_0x412e62([_0x400bb1(0x1,(0x0,_0x40ace1[_0x290f33(0x14c)])(_0x40ace1[_0x290f33(0x159)])),_0x400bb1(0x2,_0x40ace1[_0x290f33(0x150)]),_0x400bb1(0x3,(0x0,_0x40ace1[_0x290f33(0x14c)])(_0x854810[_0x290f33(0x174)])),_0x400bb1(0x4,(0x0,_0x40ace1[_0x290f33(0x14c)])(_0x274cb9[_0x290f33(0x144)]))],_0x13d212);function _0x3d7ee6(_0x4af481,_0xb4094c){const _0x4e7f5d=_0x290f33;return _0xb4094c===_0x274cb9[_0x4e7f5d(0x18e)][_0x4e7f5d(0x184)]||_0xb4094c===_0x274cb9[_0x4e7f5d(0x18e)][_0x4e7f5d(0x188)]?Error(_0x4e7f5d(0x14e)+_0x4af481+_0x4e7f5d(0x143)+_0xb4094c+'.'):null;}var _0x14683d=class extends _0x214643[_0x290f33(0x13e)]{[_0x290f33(0x18c)](_0x59c4b6){const _0x42baa0=_0x290f33;let _0x195c56=_0x59c4b6[_0x42baa0(0x160)](_0x274cb9[_0x42baa0(0x144)]);this[_0x42baa0(0x16f)](this[_0x42baa0(0x178)](this[_0x42baa0(0x199)][_0x42baa0(0x163)],()=>{const _0x5d67ad=_0x42baa0;let _0x273adb=new _0x40ace1[(_0x5d67ad(0x14b))](),_0xd3f7a8=_0x195c56[_0x5d67ad(0x18b)][_0x5d67ad(0x18a)](_0x4f8d64=>{const _0x248d83=_0x5d67ad;let _0x4d73d3=_0x4f8d64[_0x248d83(0x164)][_0x248d83(0x18a)](_0x433c06=>{const _0x384dfb=_0x248d83;let _0x1635da={'unitId':_0x4f8d64[_0x384dfb(0x173)],'status':_0x433c06};this[_0x384dfb(0x149)](this['Event']['CollaborationStatusChanged'],_0x1635da);});_0x273adb['add']((0x0,_0x40ace1['toDisposable'])(_0x4d73d3));});return _0x273adb['add']((0x0,_0x40ace1[_0x5d67ad(0x147)])(_0xd3f7a8)),_0x273adb;}));}[_0x290f33(0x18f)](){const _0x498edf=_0x290f33;return this[_0x498edf(0x158)][_0x498edf(0x183)](_0x13d212,{'getWorkbook':_0x5d3ce3=>this['getWorkbook'](_0x5d3ce3),'getDocument':_0xce64a9=>this[_0x498edf(0x17d)](_0xce64a9),'getPresentation':_0x57a031=>this['getPresentation'](_0x57a031),'getBase':_0xbc8740=>this[_0x498edf(0x190)](_0xbc8740),'getBoard':_0x4a32b0=>this['getBoard'](_0x4a32b0)});}[_0x290f33(0x13c)](_0x592622,_0x58c245,_0x8aeb07){const _0x4b856d=_0x290f33;return this[_0x4b856d(0x158)]['get'](_0x274cb9[_0x4b856d(0x165)])['loadUnit'](_0x592622,_0x58c245,_0x8aeb07);}[_0x290f33(0x17f)](_0x25198e,_0x47b054,_0x40e3f4){const _0x3a97e7=_0x290f33;return this[_0x3a97e7(0x158)]['get'](_0x274cb9[_0x3a97e7(0x165)])[_0x3a97e7(0x191)](_0x25198e,_0x47b054,_0x40e3f4);}};_0x214643[_0x290f33(0x13e)][_0x290f33(0x181)](_0x14683d),Object[_0x290f33(0x141)](_0x2ad3e0,_0x290f33(0x14a),{'enumerable':!0x0,'get':function(){return _0x13d212;}});}));function _0x9406(){const _0x75c2ae=['loadSlide','getDocument','getOwnPropertyDescriptor','loadServerUnitOfRevision','4104044RepPHk','extend','@univerjs-pro/collaboration-client','createInstance','CONFLICT','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','UniverProCollaborationClient','loadSheet','NOT_COLLAB','state','subscribe','entityInit$','_initialize','function','CollaborationStatus','getCollaboration','getBase','loadUnitOfRevision','UniverCoreFacade','object','getBoard','unsubscribe','4478672iGGqpV','resolve','_handler','Event','42ywmgqi','1759611fkcWPJ','loadServerUnit','_snapshotService','FUniver','status','FEnum','defineProperty','getCollaborationStatus','\x22\x20while\x20collaboration\x20status\x20is\x20','CollaborationController','pipe','loadSlideAsync','toDisposable','3796809zczrdy','fireEvent','FCollaboration','DisposableCollection','Inject','reject','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','loadBase','IUniverInstanceService','6307640aqOetc','waitForRoom$','UniverProCollaborationClientFacade','readyForCollab','UniverCore','loadBoardAsync','exports','_injector','Injector','@univerjs/core','subscribeCollaborators','SYNCED','9wjsjnA','_collaborationController','length','get','timeout','9583740NMUYsP','CollaborationStatusChanged','status$','DataLoaderService','1qMWARm','getUnitId','loadDoc','rxjs','toStringTag','3063976sZcfjl','getCollabEntity','ms.','flush','disposeWithMe','FEventName','Module','_univerInstanceService','unitID','SnapshotService','members$','_resolveUnitId','\x22\x20after\x20','registerEventHandler','loadSheetAsync','decorate','getFocusedUnit'];_0x9406=function(){return _0x75c2ae;};return _0x9406();}
|