@univerjs-pro/exchange-client 1.0.0-alpha.3 → 1.0.0-alpha.5
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.css +0 -4
- 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/types/config/config.d.ts +0 -4
- package/lib/types/controllers/components.controller.d.ts +7 -0
- package/lib/types/controllers/exchange.controller.d.ts +3 -5
- package/lib/types/facade/f-univer.d.ts +45 -16
- package/lib/types/index.d.ts +2 -1
- package/lib/types/services/exchange.service.d.ts +16 -2
- package/lib/types/services/request.service.d.ts +0 -2
- package/lib/types/services/utils/content-type.d.ts +1 -0
- package/lib/types/services/utils/snapshot.d.ts +6 -2
- package/lib/types/services/utils/tool.d.ts +1 -0
- 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 +13 -12
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xb10e7f=_0x2124;(function(_0x5dbc1b,_0x42dcdc){const _0xac5da9=_0x2124,_0x3cb72a=_0x5dbc1b();while(!![]){try{const _0x3c932d=-parseInt(_0xac5da9(0x84))/0x1+parseInt(_0xac5da9(0x79))/0x2*(parseInt(_0xac5da9(0x7f))/0x3)+-parseInt(_0xac5da9(0x81))/0x4+-parseInt(_0xac5da9(0x80))/0x5+parseInt(_0xac5da9(0x78))/0x6*(-parseInt(_0xac5da9(0x7e))/0x7)+-parseInt(_0xac5da9(0x7d))/0x8+parseInt(_0xac5da9(0x7a))/0x9;if(_0x3c932d===_0x42dcdc)break;else _0x3cb72a['push'](_0x3cb72a['shift']());}catch(_0xc4ae19){_0x3cb72a['push'](_0x3cb72a['shift']());}}}(_0x1765,0x293c3));function _0x2124(_0x3eb057,_0x5ca9b1){_0x3eb057=_0x3eb057-0x70;const _0x176561=_0x1765();let _0x21241a=_0x176561[_0x3eb057];return _0x21241a;}const e={'exchange-client':{'uploading':_0xb10e7f(0x7c),'uploadSuccess':'ファイルが正常にアップロードされました','uploadSuccessTip':_0xb10e7f(0x74),'downloading':_0xb10e7f(0x7b),'downloadSuccess':_0xb10e7f(0x70),'unknownMistake':_0xb10e7f(0x73),'networkError':_0xb10e7f(0x75),'tooLarge':_0xb10e7f(0x71),'internalError':_0xb10e7f(0x77),'interrupt':_0xb10e7f(0x76),'fileTypeError':'選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','wait':'お待ちください...','cancel':_0xb10e7f(0x82),'uploadAgain':_0xb10e7f(0x83)}};module[_0xb10e7f(0x72)]=e;function _0x1765(){const _0x2fb1b9=['640176QCMKvt','1288ntmnnb','15arbLWx','551975sVkcqZ','839772RRvUKN','キャンセル','再度アップロード','122559wHzjLQ','ダウンロードが完了しました','データが大きすぎます','exports','不明なエラー','{0}\x20個のファイルが正常にアップロードされました','ネットワークエラー','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','内部エラーが発生しました','282ACExmq','46342azEhGd','5261499KgIsZG','ダウンロード中','アップロード中'];_0x1765=function(){return _0x2fb1b9;};return _0x1765();}
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2e12(){const _0x3e7475=['네트워크\x20오류','69538wkEhZk','4155792iDXbdQ','2AMpLyC','3996372tFUPps','666924FEYITe','파일이\x20성공적으로\x20업로드되었습니다','558oyorlP','업로드\x20중','1185710MatdDp','{0}개의\x20파일이\x20성공적으로\x20업로드되었습니다','138130TNiJII','55NFAMrJ','데이터가\x20너무\x20큽니다','27bAhrEA','다운로드\x20중','63418QECTZK','exports','네트워크\x20연결이\x20중단되어\x20파일\x20업로드에\x20실패했습니다'];_0x2e12=function(){return _0x3e7475;};return _0x2e12();}const _0x26f9e2=_0x35b8;function _0x35b8(_0x311321,_0x139173){_0x311321=_0x311321-0x134;const _0x2e120a=_0x2e12();let _0x35b82f=_0x2e120a[_0x311321];return _0x35b82f;}(function(_0x55f92d,_0x10bb0d){const _0x279f44=_0x35b8,_0x310dbe=_0x55f92d();while(!![]){try{const _0x385dfd=parseInt(_0x279f44(0x143))/0x1*(-parseInt(_0x279f44(0x13d))/0x2)+-parseInt(_0x279f44(0x145))/0x3+parseInt(_0x279f44(0x144))/0x4+parseInt(_0x279f44(0x138))/0x5+parseInt(_0x279f44(0x134))/0x6*(-parseInt(_0x279f44(0x141))/0x7)+parseInt(_0x279f44(0x142))/0x8*(parseInt(_0x279f44(0x13b))/0x9)+parseInt(_0x279f44(0x136))/0xa*(-parseInt(_0x279f44(0x139))/0xb);if(_0x385dfd===_0x10bb0d)break;else _0x310dbe['push'](_0x310dbe['shift']());}catch(_0x5ac1ef){_0x310dbe['push'](_0x310dbe['shift']());}}}(_0x2e12,0xbf16a));const e={'exchange-client':{'uploading':_0x26f9e2(0x135),'uploadSuccess':_0x26f9e2(0x146),'uploadSuccessTip':_0x26f9e2(0x137),'downloading':_0x26f9e2(0x13c),'downloadSuccess':'다운로드가\x20완료되었습니다','unknownMistake':'알\x20수\x20없는\x20오류','networkError':_0x26f9e2(0x140),'tooLarge':_0x26f9e2(0x13a),'internalError':'내부\x20오류가\x20발생했습니다','interrupt':_0x26f9e2(0x13f),'fileTypeError':'선택한\x20파일\x20[{0}]은(는)\x20업로드가\x20지원되지\x20않습니다','wait':'잠시만\x20기다려\x20주세요...','cancel':'취소','uploadAgain':'다시\x20업로드'}};module[_0x26f9e2(0x13e)]=e;
|
package/lib/cjs/locale/pl-PL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2ce5(_0x4d7e48,_0x4f7e2a){_0x4d7e48=_0x4d7e48-0x12a;const _0x218c7a=_0x218c();let _0x2ce5f8=_0x218c7a[_0x4d7e48];return _0x2ce5f8;}const _0x14a262=_0x2ce5;function _0x218c(){const _0x28c63a=['2684430whjllN','Nieznany\x20błąd','9PIgmOl','exports','Połączenie\x20sieciowe\x20zostało\x20przerwane\x20i\x20przesyłanie\x20pliku\x20nie\x20powiodło\x20się','Anuluj','4367907mBrgYF','Pobieranie','Wybrany\x20plik\x20[{0}]\x20nie\x20jest\x20obsługiwany\x20do\x20przesyłania','Pomyślnie\x20przesłano\x20{0}\x20plik(ów)','5401310UahEpw','3340146WMYPlN','Wewnętrzny\x20nieznany\x20błąd','Pobieranie\x20zakończone\x20sukcesem','8exBuJa','70348VmDbHR','Dane\x20są\x20zbyt\x20duże','Przesyłanie','13BFChOg','Błąd\x20sieci','Prześlij\x20ponownie','7629600ImHoxC','5mlXsOB','542804vUyDKm'];_0x218c=function(){return _0x28c63a;};return _0x218c();}(function(_0x4516ea,_0x2f8abd){const _0x1282e5=_0x2ce5,_0x1ec515=_0x4516ea();while(!![]){try{const _0x7fc853=-parseInt(_0x1282e5(0x133))/0x1*(parseInt(_0x1282e5(0x130))/0x2)+-parseInt(_0x1282e5(0x13b))/0x3*(parseInt(_0x1282e5(0x138))/0x4)+-parseInt(_0x1282e5(0x137))/0x5*(-parseInt(_0x1282e5(0x12c))/0x6)+parseInt(_0x1282e5(0x139))/0x7+-parseInt(_0x1282e5(0x12f))/0x8*(-parseInt(_0x1282e5(0x13f))/0x9)+parseInt(_0x1282e5(0x12b))/0xa+-parseInt(_0x1282e5(0x136))/0xb;if(_0x7fc853===_0x2f8abd)break;else _0x1ec515['push'](_0x1ec515['shift']());}catch(_0x2de605){_0x1ec515['push'](_0x1ec515['shift']());}}}(_0x218c,0x63876));const e={'exchange-client':{'uploading':_0x14a262(0x132),'uploadSuccess':'Plik\x20przesłany\x20pomyślnie','uploadSuccessTip':_0x14a262(0x12a),'downloading':_0x14a262(0x140),'downloadSuccess':_0x14a262(0x12e),'unknownMistake':_0x14a262(0x13a),'networkError':_0x14a262(0x134),'tooLarge':_0x14a262(0x131),'internalError':_0x14a262(0x12d),'interrupt':_0x14a262(0x13d),'fileTypeError':_0x14a262(0x141),'wait':'Proszę\x20czekać...','cancel':_0x14a262(0x13e),'uploadAgain':_0x14a262(0x135)}};module[_0x14a262(0x13c)]=e;
|
package/lib/cjs/locale/pt-BR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x310807=_0x5d41;(function(_0x7e54e4,_0x4a9faa){const _0xe184ba=_0x5d41,_0x30b88c=_0x7e54e4();while(!![]){try{const _0x3b8448=parseInt(_0xe184ba(0xee))/0x1+-parseInt(_0xe184ba(0xf3))/0x2+-parseInt(_0xe184ba(0xf9))/0x3+-parseInt(_0xe184ba(0xfa))/0x4+parseInt(_0xe184ba(0xfe))/0x5*(parseInt(_0xe184ba(0xf7))/0x6)+-parseInt(_0xe184ba(0xfc))/0x7*(parseInt(_0xe184ba(0x101))/0x8)+parseInt(_0xe184ba(0xf8))/0x9*(parseInt(_0xe184ba(0xed))/0xa);if(_0x3b8448===_0x4a9faa)break;else _0x30b88c['push'](_0x30b88c['shift']());}catch(_0x5c3a36){_0x30b88c['push'](_0x30b88c['shift']());}}}(_0x1307,0xb1eee));const e={'exchange-client':{'uploading':_0x310807(0xfb),'uploadSuccess':_0x310807(0xf1),'uploadSuccessTip':'{0}\x20arquivo(s)\x20enviado(s)\x20com\x20sucesso','downloading':'Baixando','downloadSuccess':_0x310807(0xf0),'unknownMistake':_0x310807(0xf6),'networkError':'Erro\x20de\x20rede','tooLarge':_0x310807(0xfd),'internalError':'Erro\x20interno\x20desconhecido','interrupt':_0x310807(0xf4),'fileTypeError':_0x310807(0x100),'wait':_0x310807(0xef),'cancel':_0x310807(0xf5),'uploadAgain':_0x310807(0xff)}};module[_0x310807(0xf2)]=e;function _0x5d41(_0x3982f5,_0x33552b){_0x3982f5=_0x3982f5-0xed;const _0x130754=_0x1307();let _0x5d4177=_0x130754[_0x3982f5];return _0x5d4177;}function _0x1307(){const _0x8aa626=['231ijGGIp','Os\x20dados\x20são\x20muito\x20grandes','5RAPvLi','Enviar\x20novamente','O\x20arquivo\x20selecionado\x20[{0}]\x20não\x20é\x20suportado\x20para\x20envio','98104kRCRDU','5093060GmAqDV','999705IhYccu','Aguarde...','Download\x20concluído\x20com\x20sucesso','Arquivo\x20enviado\x20com\x20sucesso','exports','1547726NpQeTG','A\x20conexão\x20de\x20rede\x20foi\x20interrompida\x20e\x20o\x20envio\x20do\x20arquivo\x20falhou','Cancelar','Erro\x20desconhecido','7083738YzzLUP','9spOaSp','913836dYmDHD','1910664ZOhkXG','Enviando'];_0x1307=function(){return _0x8aa626;};return _0x1307();}
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x388d00=_0x64c3;(function(_0x186051,_0xa1b354){const _0x4ee352=_0x64c3,_0x52b59e=_0x186051();while(!![]){try{const _0x3b353b=-parseInt(_0x4ee352(0x1c8))/0x1+parseInt(_0x4ee352(0x1d0))/0x2+-parseInt(_0x4ee352(0x1c2))/0x3*(-parseInt(_0x4ee352(0x1c9))/0x4)+-parseInt(_0x4ee352(0x1d2))/0x5*(parseInt(_0x4ee352(0x1ca))/0x6)+parseInt(_0x4ee352(0x1c3))/0x7+-parseInt(_0x4ee352(0x1cb))/0x8*(parseInt(_0x4ee352(0x1c6))/0x9)+parseInt(_0x4ee352(0x1cc))/0xa;if(_0x3b353b===_0xa1b354)break;else _0x52b59e['push'](_0x52b59e['shift']());}catch(_0x393a23){_0x52b59e['push'](_0x52b59e['shift']());}}}(_0x15f3,0x7cbe8));function _0x64c3(_0x31ba5f,_0xe00a9f){_0x31ba5f=_0x31ba5f-0x1c2;const _0x15f339=_0x15f3();let _0x64c38a=_0x15f339[_0x31ba5f];return _0x64c38a;}function _0x15f3(){const _0x16cfd1=['5393016ELNVmN','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','21931qQAXWV','130612MFoyzS','1698oevqoj','8WuvCzt','4006690GkGpnO','Скачивание\x20успешно','Скачивание','Данные\x20слишком\x20большие','414234eXzFSq','Загрузить\x20снова','8995obTWwW','Отмена','39IpZgFy','4262643jlVyub','Файл\x20успешно\x20загружен','Неизвестная\x20ошибка'];_0x15f3=function(){return _0x16cfd1;};return _0x15f3();}const e={'exchange-client':{'uploading':'Загрузка','uploadSuccess':_0x388d00(0x1c4),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x388d00(0x1ce),'downloadSuccess':_0x388d00(0x1cd),'unknownMistake':_0x388d00(0x1c5),'networkError':'Сетевая\x20ошибка','tooLarge':_0x388d00(0x1cf),'internalError':'Внутренняя\x20неизвестная\x20ошибка','interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x388d00(0x1c7),'wait':'Пожалуйста,\x20подождите...','cancel':_0x388d00(0x1d3),'uploadAgain':_0x388d00(0x1d1)}};module['exports']=e;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xc566(){const _0x2f0632=['Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','245316wLLVIg','10KkYLVm','Interná\x20neznáma\x20chyba','Súbor\x20bol\x20úspešne\x20nahraný','Nahrať\x20znova','exports','1483867uQHHvE','33tOLETc','Sťahovanie','3334880CvrBdZ','207138BPzRmF','850496hlayRC','Neznáma\x20chyba','Úspešne\x20nahraných\x20{0}\x20súborov','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','19275084NERAFJ','1293061bfIouF','Sieťová\x20chyba'];_0xc566=function(){return _0x2f0632;};return _0xc566();}const _0x13d8cd=_0x3802;(function(_0xdef451,_0x40a96b){const _0x7d8d13=_0x3802,_0x3d9e67=_0xdef451();while(!![]){try{const _0xce258f=parseInt(_0x7d8d13(0x156))/0x1+-parseInt(_0x7d8d13(0x150))/0x2*(-parseInt(_0x7d8d13(0x160))/0x3)+parseInt(_0x7d8d13(0x14f))/0x4+parseInt(_0x7d8d13(0x15a))/0x5*(-parseInt(_0x7d8d13(0x159))/0x6)+-parseInt(_0x7d8d13(0x15f))/0x7+-parseInt(_0x7d8d13(0x151))/0x8+-parseInt(_0x7d8d13(0x155))/0x9;if(_0xce258f===_0x40a96b)break;else _0x3d9e67['push'](_0x3d9e67['shift']());}catch(_0x29b616){_0x3d9e67['push'](_0x3d9e67['shift']());}}}(_0xc566,0xb0d4b));function _0x3802(_0x2be7f8,_0x642510){_0x2be7f8=_0x2be7f8-0x14f;const _0xc566ca=_0xc566();let _0x380211=_0xc566ca[_0x2be7f8];return _0x380211;}const e={'exchange-client':{'uploading':'Nahrávanie','uploadSuccess':_0x13d8cd(0x15c),'uploadSuccessTip':_0x13d8cd(0x153),'downloading':_0x13d8cd(0x161),'downloadSuccess':'Sťahovanie\x20úspešné','unknownMistake':_0x13d8cd(0x152),'networkError':_0x13d8cd(0x157),'tooLarge':'Dáta\x20sú\x20príliš\x20veľké','internalError':_0x13d8cd(0x15b),'interrupt':_0x13d8cd(0x158),'fileTypeError':_0x13d8cd(0x154),'wait':'Prosím\x20počkajte...','cancel':'Zrušiť','uploadAgain':_0x13d8cd(0x15d)}};module[_0x13d8cd(0x15e)]=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1eee14=_0x345b;(function(_0x42fd29,_0x31dc52){const _0x264cba=_0x345b,_0x3002e5=_0x42fd29();while(!![]){try{const _0x1347fe=parseInt(_0x264cba(0x158))/0x1*(parseInt(_0x264cba(0x154))/0x2)+parseInt(_0x264cba(0x15c))/0x3+parseInt(_0x264cba(0x160))/0x4*(parseInt(_0x264cba(0x14c))/0x5)+-parseInt(_0x264cba(0x161))/0x6+parseInt(_0x264cba(0x152))/0x7*(parseInt(_0x264cba(0x15a))/0x8)+parseInt(_0x264cba(0x156))/0x9+-parseInt(_0x264cba(0x15e))/0xa*(parseInt(_0x264cba(0x150))/0xb);if(_0x1347fe===_0x31dc52)break;else _0x3002e5['push'](_0x3002e5['shift']());}catch(_0x34f1fc){_0x3002e5['push'](_0x3002e5['shift']());}}}(_0x5f2e,0x43437));function _0x345b(_0x40b4f2,_0x2e32b3){_0x40b4f2=_0x40b4f2-0x149;const _0x5f2eb4=_0x5f2e();let _0x345b31=_0x5f2eb4[_0x40b4f2];return _0x345b31;}const e={'exchange-client':{'uploading':_0x1eee14(0x14f),'uploadSuccess':_0x1eee14(0x153),'uploadSuccessTip':_0x1eee14(0x14d),'downloading':_0x1eee14(0x15d),'downloadSuccess':_0x1eee14(0x14e),'unknownMistake':_0x1eee14(0x155),'networkError':_0x1eee14(0x14a),'tooLarge':_0x1eee14(0x14b),'internalError':_0x1eee14(0x15b),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x1eee14(0x149),'wait':_0x1eee14(0x159),'cancel':_0x1eee14(0x157),'uploadAgain':_0x1eee14(0x151)}};function _0x5f2e(){const _0x2bacbe=['11irKNoE','Vui\x20lòng\x20đợi...','2488792uLbwYI','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','1552809kYXJKw','Đang\x20tải\x20xuống','6804880wmGjPs','exports','582840fMRMCa','1096866OykxBa','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Lỗi\x20mạng','Luồng\x20dữ\x20liệu\x20quá\x20lớn','15IiYVWE','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Tải\x20xuống\x20thành\x20công','Đang\x20tải\x20lên','22XEqOCG','Tải\x20lên\x20lại','7JVwPbR','Tải\x20lên\x20tệp\x20thành\x20công','46754OzusZC','Lỗi\x20không\x20xác\x20định','2666871bewYhd','Hủy\x20bỏ'];_0x5f2e=function(){return _0x2bacbe;};return _0x5f2e();}module[_0x1eee14(0x15f)]=e;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3044(){const _0x398a40=['179346nIRNKc','991345KzGHFv','内部未知错误','数据流过大','所选文件\x20[{0}]\x20不支持上传','未知错误','下载中','63DiIoca','下载成功','{0}个文件上传成功','11444URxBEK','4511374glvwct','exports','文件上传成功','上传中','1846875NlNgft','2332284LqKcRx','网络连接中断,文件上传失败','3jezcfx','再次上传','827768oyGcOM'];_0x3044=function(){return _0x398a40;};return _0x3044();}function _0x2af5(_0x506d0d,_0x416dc1){_0x506d0d=_0x506d0d-0x194;const _0x3044ed=_0x3044();let _0x2af560=_0x3044ed[_0x506d0d];return _0x2af560;}const _0x496e99=_0x2af5;(function(_0x580f2d,_0x3a49ee){const _0x13f066=_0x2af5,_0x1c81e3=_0x580f2d();while(!![]){try{const _0x50cdc6=parseInt(_0x13f066(0x196))/0x1*(parseInt(_0x13f066(0x1a3))/0x2)+parseInt(_0x13f066(0x1a8))/0x3+-parseInt(_0x13f066(0x194))/0x4+parseInt(_0x13f066(0x19a))/0x5+parseInt(_0x13f066(0x199))/0x6+-parseInt(_0x13f066(0x1a4))/0x7+-parseInt(_0x13f066(0x198))/0x8*(-parseInt(_0x13f066(0x1a0))/0x9);if(_0x50cdc6===_0x3a49ee)break;else _0x1c81e3['push'](_0x1c81e3['shift']());}catch(_0x5b6043){_0x1c81e3['push'](_0x1c81e3['shift']());}}}(_0x3044,0x5753f));const e={'exchange-client':{'uploading':_0x496e99(0x1a7),'uploadSuccess':_0x496e99(0x1a6),'uploadSuccessTip':_0x496e99(0x1a2),'downloading':_0x496e99(0x19f),'downloadSuccess':_0x496e99(0x1a1),'unknownMistake':_0x496e99(0x19e),'networkError':'网络异常','tooLarge':_0x496e99(0x19c),'internalError':_0x496e99(0x19b),'interrupt':_0x496e99(0x195),'fileTypeError':_0x496e99(0x19d),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x496e99(0x197)}};module[_0x496e99(0x1a5)]=e;
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x51c414=_0x2730;(function(_0x177746,_0x5e23fd){const _0x48a0c5=_0x2730,_0xda6c74=_0x177746();while(!![]){try{const _0x10bc5c=-parseInt(_0x48a0c5(0x9b))/0x1*(-parseInt(_0x48a0c5(0x92))/0x2)+parseInt(_0x48a0c5(0x9d))/0x3+parseInt(_0x48a0c5(0x9a))/0x4+-parseInt(_0x48a0c5(0x9f))/0x5*(parseInt(_0x48a0c5(0x93))/0x6)+parseInt(_0x48a0c5(0x96))/0x7*(-parseInt(_0x48a0c5(0x91))/0x8)+-parseInt(_0x48a0c5(0x9c))/0x9+parseInt(_0x48a0c5(0x90))/0xa*(parseInt(_0x48a0c5(0x8e))/0xb);if(_0x10bc5c===_0x5e23fd)break;else _0xda6c74['push'](_0xda6c74['shift']());}catch(_0x146794){_0xda6c74['push'](_0xda6c74['shift']());}}}(_0x3098,0x82580));function _0x2730(_0x56e731,_0x4b4e03){_0x56e731=_0x56e731-0x8c;const _0x30987d=_0x3098();let _0x27300b=_0x30987d[_0x56e731];return _0x27300b;}const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0x51c414(0x8c),'downloading':_0x51c414(0x9e),'downloadSuccess':_0x51c414(0x97),'unknownMistake':_0x51c414(0x94),'networkError':_0x51c414(0x98),'tooLarge':'資料流過大','internalError':_0x51c414(0x99),'interrupt':_0x51c414(0x95),'fileTypeError':_0x51c414(0x8d),'wait':'請稍等...','cancel':'取消','uploadAgain':_0x51c414(0x8f)}};module['exports']=e;function _0x3098(){const _0x69cbac=['內部未知錯誤','1552272rXvZtP','284ndCegM','6252138SRxmlg','577527kdGqMU','下載中','5gyjNaf','{0}個檔案上傳成功','所選檔案\x20[{0}]\x20不支援上傳','11dlbHBf','再次上傳','15083400JBvZlY','1072tDQEvC','6132OYBhbv','5789274RFEWij','未知錯誤','網絡連線中斷,檔案上傳失敗','40026ygSbiD','下載成功','網絡異常'];_0x3098=function(){return _0x69cbac;};return _0x3098();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x117f88=_0x2f6f;(function(_0x1e8b4e,_0x5c66dc){const _0x2f29df=_0x2f6f,_0x3d947d=_0x1e8b4e();while(!![]){try{const _0x11fbe3=-parseInt(_0x2f29df(0x1a1))/0x1+parseInt(_0x2f29df(0x19e))/0x2+parseInt(_0x2f29df(0x1a3))/0x3*(parseInt(_0x2f29df(0x1ac))/0x4)+-parseInt(_0x2f29df(0x19d))/0x5*(-parseInt(_0x2f29df(0x1a2))/0x6)+parseInt(_0x2f29df(0x1aa))/0x7+-parseInt(_0x2f29df(0x198))/0x8*(-parseInt(_0x2f29df(0x1a8))/0x9)+-parseInt(_0x2f29df(0x1a9))/0xa*(-parseInt(_0x2f29df(0x19f))/0xb);if(_0x11fbe3===_0x5c66dc)break;else _0x3d947d['push'](_0x3d947d['shift']());}catch(_0xd30e0e){_0x3d947d['push'](_0x3d947d['shift']());}}}(_0x219e,0xa7232));const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x117f88(0x199),'uploadSuccessTip':_0x117f88(0x1a6),'downloading':'下載中','downloadSuccess':_0x117f88(0x19c),'unknownMistake':_0x117f88(0x19a),'networkError':_0x117f88(0x1a7),'tooLarge':_0x117f88(0x1ae),'internalError':_0x117f88(0x19b),'interrupt':_0x117f88(0x1a0),'fileTypeError':_0x117f88(0x1a5),'wait':_0x117f88(0x1a4),'cancel':'取消','uploadAgain':_0x117f88(0x1ab)}};module[_0x117f88(0x1ad)]=e;function _0x2f6f(_0x1ae877,_0x3f9cda){_0x1ae877=_0x1ae877-0x198;const _0x219eb3=_0x219e();let _0x2f6f83=_0x219eb3[_0x1ae877];return _0x2f6f83;}function _0x219e(){const _0xe2e6df=['4czybwm','exports','資料流過大','689944lVqVCL','檔案上傳成功','未知錯誤','內部未知錯誤','下載成功','374525YMILGn','98894TVIZXB','2805zaHNGK','網路連線中斷,檔案上傳失敗','1209677nedzhD','6RZCQRB','425613dJCyCT','請稍等...','所選檔案\x20[{0}]\x20不支援上傳','{0}個檔案上傳成功','網路異常','36ZPacmQ','18260QvqgGT','5722122AmUSaA','再次上傳'];_0x219e=function(){return _0xe2e6df;};return _0x219e();}
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x301299=_0x5e41;(function(_0x541c67,_0x4468f8){var _0x293f60=_0x5e41,_0x12491c=_0x541c67();while(!![]){try{var _0x1c38b7=parseInt(_0x293f60(0xf4))/0x1+parseInt(_0x293f60(0x101))/0x2+-parseInt(_0x293f60(0xff))/0x3*(parseInt(_0x293f60(0xee))/0x4)+parseInt(_0x293f60(0xf9))/0x5+parseInt(_0x293f60(0xfc))/0x6+-parseInt(_0x293f60(0xf2))/0x7*(-parseInt(_0x293f60(0xe9))/0x8)+-parseInt(_0x293f60(0xfa))/0x9;if(_0x1c38b7===_0x4468f8)break;else _0x12491c['push'](_0x12491c['shift']());}catch(_0x550222){_0x12491c['push'](_0x12491c['shift']());}}}(_0x4ede,0xecef9));import{IExchangeService as _0xa64477}from'@univerjs-pro/exchange-client';import{UniverInstanceType as _0x58111e}from'@univerjs/core';import{FUniver as _0x3e5e94}from'@univerjs/core/facade';function _0x4ede(){var _0x3f80ca=['transformSnapshotJsonToWorkbookDataAsync','downloadFile','UNIVER_DOC','9383270hLJGjs','51147432HQdCrq','UNIVER_SLIDE','9972522cuKSEU','exportXLSXByUnitId','exportXLSXBySnapshotAsync','97386YoPmwk','exportPPTXBySnapshot','1047846blLEMx','importPPTXToSnapshot','exportDOCXBySnapshot','importFileToUnitId','transformSnapshotJsonToWorkbookData','importDOCXToSnapshotAsync','exportPPTXByUnitIdAsync','exportXLSXBySnapshot','24KgrMqd','exportDOCXByUnitId','importPPTXToSnapshotAsync','importPPTXToUnitIdAsync','get','24MXJeqx','exportPPTXByUnitId','transformWorkbookDataToSnapshotJson','_injector','4196584bXJyUf','exportXLSXByUnitIdAsync','987109RarUBv','exportDOCXBySnapshotAsync'];_0x4ede=function(){return _0x3f80ca;};return _0x4ede();}var r=class extends _0x3e5e94{[_0x301299(0xf7)](_0x28791d,_0x2308d2,_0x5fe735){var _0x4ee2a4=_0x301299;this[_0x4ee2a4(0xf1)]['get'](_0xa64477)['downloadFile'](_0x28791d,_0x2308d2,_0x5fe735);}async[_0x301299(0xf6)](_0x3f9630){var _0x4ee77d=_0x301299;return this[_0x4ee77d(0xf1)][_0x4ee77d(0xed)](_0xa64477)[_0x4ee77d(0x105)](_0x3f9630);}async['transformWorkbookDataToSnapshotJsonAsync'](_0x4b330b){var _0x2eeedd=_0x301299;return this[_0x2eeedd(0xf1)][_0x2eeedd(0xed)](_0xa64477)[_0x2eeedd(0xf0)](_0x4b330b);}async['importXLSXToUnitIdAsync'](_0x125d5e){var _0x37c421=_0x301299;return this[_0x37c421(0xf1)]['get'](_0xa64477)[_0x37c421(0x104)](_0x125d5e,_0x58111e['UNIVER_SHEET']);}async['importXLSXToSnapshotAsync'](_0x1cd61b){var _0x3dbadf=_0x301299;return this[_0x3dbadf(0xf1)]['get'](_0xa64477)['importXLSXToSnapshot'](_0x1cd61b);}async[_0x301299(0xf3)](_0x351429){var _0x243ea7=_0x301299;return this[_0x243ea7(0xf1)][_0x243ea7(0xed)](_0xa64477)[_0x243ea7(0xfd)](_0x351429);}async[_0x301299(0xfe)](_0x1733a2){var _0x21bb49=_0x301299;return this[_0x21bb49(0xf1)][_0x21bb49(0xed)](_0xa64477)[_0x21bb49(0xe8)](_0x1733a2);}async['importDOCXToUnitIdAsync'](_0x88a3c7){var _0x14a61a=_0x301299;return this[_0x14a61a(0xf1)][_0x14a61a(0xed)](_0xa64477)['importFileToUnitId'](_0x88a3c7,_0x58111e[_0x14a61a(0xf8)]);}async[_0x301299(0x106)](_0x88aa06){var _0x767013=_0x301299;return this[_0x767013(0xf1)][_0x767013(0xed)](_0xa64477)['importDOCXToSnapshot'](_0x88aa06);}async[_0x301299(0xf5)](_0x471776){var _0x3d6271=_0x301299;return this['_injector']['get'](_0xa64477)[_0x3d6271(0x103)](_0x471776);}async['exportDOCXByUnitIdAsync'](_0x11e4ff){var _0x55bd0d=_0x301299;return this[_0x55bd0d(0xf1)]['get'](_0xa64477)[_0x55bd0d(0xea)](_0x11e4ff);}async[_0x301299(0xec)](_0x32ca6a){var _0xbba451=_0x301299;return this[_0xbba451(0xf1)][_0xbba451(0xed)](_0xa64477)[_0xbba451(0x104)](_0x32ca6a,_0x58111e[_0xbba451(0xfb)]);}async[_0x301299(0xeb)](_0x59fe57){var _0x21150f=_0x301299;return this[_0x21150f(0xf1)]['get'](_0xa64477)[_0x21150f(0x102)](_0x59fe57);}async[_0x301299(0xe7)](_0xe9aa8d){var _0x4c22bb=_0x301299;return this[_0x4c22bb(0xf1)][_0x4c22bb(0xed)](_0xa64477)[_0x4c22bb(0xef)](_0xe9aa8d);}async['exportPPTXBySnapshotAsync'](_0x585a5a){var _0x344339=_0x301299;return this[_0x344339(0xf1)][_0x344339(0xed)](_0xa64477)[_0x344339(0x100)](_0x585a5a);}};function _0x5e41(_0x4ae6d6,_0x25ecf5){_0x4ae6d6=_0x4ae6d6-0xe7;var _0x4ede1c=_0x4ede();var _0x5e4170=_0x4ede1c[_0x4ae6d6];return _0x5e4170;}_0x3e5e94['extend'](r);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f4438=_0x7004;(function(_0x3f3528,_0x1a8b5b){const _0x1db93c=_0x7004,_0x500b5b=_0x3f3528();while(!![]){try{const _0x947c83=parseInt(_0x1db93c(0x2af))/0x1+-parseInt(_0x1db93c(0x2b8))/0x2+-parseInt(_0x1db93c(0x1f8))/0x3*(-parseInt(_0x1db93c(0x202))/0x4)+parseInt(_0x1db93c(0x1dd))/0x5+-parseInt(_0x1db93c(0x206))/0x6+-parseInt(_0x1db93c(0x283))/0x7*(-parseInt(_0x1db93c(0x194))/0x8)+parseInt(_0x1db93c(0x29c))/0x9*(-parseInt(_0x1db93c(0x24e))/0xa);if(_0x947c83===_0x1a8b5b)break;else _0x500b5b['push'](_0x500b5b['shift']());}catch(_0x5c3730){_0x500b5b['push'](_0x500b5b['shift']());}}}(_0x39bd,0xc1191));import{UniverLicensePlugin as _0x10fb1d}from'@univerjs-pro/license';import{DependentOn as _0x148dc9,Disposable as _0x2fe81a,IConfigService as _0x3e68f8,ILogService as _0x569823,IResourceLoaderService as _0x20ebf2,IUniverInstanceService as _0x4fcce2,Inject as _0x385976,Injector as _0x10f435,LocaleService as _0x544c4f,Plugin as _0x25589f,UniverInstanceType as _0x1205ec,createIdentifier as _0x3b572e,merge as _0x4e12da,registerDependencies as _0x3cefd4,resolveWithBasePath as _0x596ed2,toDisposable as _0x588f34,touchDependencies as _0x150101}from'@univerjs/core';function _0x39bd(){const _0x163236=['Warning','_getUnitJson','resources','_configService','_getUnitSlideJson','FileId','progress$','shift','registerComponent','&source=','exportServerUrl','post','univer-text-sm\x20univer-text-gray-500','exchange-client.uploadSuccessTip','univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','_getSignURL','Error\x20fetching\x20file\x20from\x20URL:','Failed\x20to\x20transform\x20snapshot\x20to\x20string','getSnapshot','originalMeta','createUnit','title','_logService','_iconManager','revokeObjectURL','_taskInterrupted','saveSnapshot','_export','unsubscribe','appendChild','_buildHttpErrorMessage','UNIVER_BASE','2538571kRRxjh',':\x20HTTP\x20','_exportBySnapshot','_extractErrorDetail','_import','No\x20file\x20selected','_refresh','_list','exchange-client.unknownMistake','toString','onReady','origin','version','_totalUploadTaskCount','_localeService','set','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','subscribe','state$','downloadEndpointUrl','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','sheetBlocks','searchParams','_getUnitIDSlide','exchange-client.internalError','78147MHqqIK','has','application/vnd.ms-excel.sheet.macroEnabled.12','join','CONNECTOR_DATA_TOO_LARGE','workbook.json','_registerComponents','createElement','_uiPartsService','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','importServerUrl','change','HttpImport','univer-pro.exchange-client.upload-notification.service','univer-pl-2\x20univer-pr-4','headers','_getUnitName','stringify','symbol','1052057HlzCqS','_exchangeService','addEventListener','_getMaxPollingTime','exchange-client.uploadAgain','_showUploadMessage','values','_buildProtocolErrorMessage','outputType','2930538JsEprW','importFileToUnitIdByCurrentType','_importTaskId','univer-flex','name','Failed\x20to\x20get\x20file\x20from\x20url','_getUnitDocJson','getTask','body','click','importPPTXToSnapshot','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','_univerInstanceService','getCurrentUnitOfType','interruptImportTask','Failed\x20to\x20get\x20text\x20from\x20url','exportPPTXBySnapshot','_showNetworkError','trim','saveChangeset','Error','Failed\x20to\x20get\x20jsonID\x20from\x20task','application/vnd.openxmlformats-officedocument.wordprocessingml.document','Content-Type','import\x20error','?size=','_signUrl','@univerjs-pro/exchange-client','_messageService','call','noreferrer','_uploadNotificationService','keys','button','_importFileToUnitId','disposeWithMe','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','xlsx','sheets','_showDownloadMessage','UNIVER_EXCHANGE_CLIENT_PLUGIN','_list$','INTERNAL_ERROR','success','upload\x20failed:\x20FileId\x20is\x20empty','files','decode','getConfig','importDOCXToSnapshot','uploadFileServerUrl','multiple','map','complete','catch','hide','UNRECOGNIZED','24VHDBVw','Method\x20not\x20implemented.','exchange-client.wait','UNIVER_BOARD','_getEnableServerSideComputing','split','object','UNIVER_SHEET','workbook','_httpService','updateState','_state$','univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','Failed\x20to\x20get\x20fileID\x20from\x20task','createObjectURL','min','file.json','toPrimitive','Success','_clearProgress','span','function','pushLink','_addTotalCount','/universer-api/exchange/{type}/export','getUnitId','import','currentTarget','UNIVER_UNKNOWN','link','parse','application/json','univer-text-red-500','exportXLSXBySnapshot','_progress$','dispose','1.0.0-alpha.3','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','_injector','block\x20is\x20required','_getMinSheetColumnCount','_getDownloadEndpointURL','_upload','decorate','clear','taskID','Error\x20getting\x20file\x20name\x20from\x20URL:','exchange-client.tooLarge','importXLSXToUnitId','_resourceLoaderService','exchange-client.uploadSuccess','_getDisableCellImageConversion','pathname','_getUnitID','_getMinSheetRowCount','number','docx','getUnitOnRev','Get\x20outputType\x20error','error','disableCellImageConversion','default','statusText','upload\x20request\x20failed','requestState$','importPPTXToUnitId','application/vnd.openxmlformats-officedocument.presentationml.presentation','_requestService','getSheetBlock','message','UNDEFINED','{fileID}','rev','5603130wmJbKQ','univer-mt-5\x20univer-flex\x20univer-flex-col','slide','_getUnitIDDoc','_getLinkByUnitId','maxTimeoutTime','next','input','isArray','application/vnd.openxmlformats-officedocument.spreadsheetml.template','blockID','data','add','toLowerCase','show','exchange-client.cancel','importXLSXToSnapshot','register','pending','options','_getImportURL','_getIgnoreTableExport','content-disposition','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','_blank','_visible$','div','1071MiscvF','string','exchange-client.downloading','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','application/octet-stream','exchange-client.networkError','status','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','UNIVER_SLIDE','get','13500cXBHLa','univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','_sheetBlockCache','getResourcesRequest','5805900ZcBUsP','.json','_uploadTaskNotDone','append','getDeserializedSheetBlock','export','clearTaskInterrupted','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','upload\x20failed:\x20missing\x20FileId\x20in\x20response','_getUnitNameByType','_doneUploadTaskCount','href','getTextFromUrl','getUnitType','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','univer-h-6\x20univer-text-2xl','&flate=','exchange-client.config','buffer','getLatestCsReqIdBySid','filter','sign\x20url\x20error','replace','type','updateSnapshot','UNIVER_DOC','Failed\x20to\x20get\x20unitID\x20from\x20task','exportDOCXByUnitId','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','list$','code','text','importFileToJson','Failed\x20to\x20parse\x20json','UNIVER_PROJECT','univer-flex\x20univer-h-5\x20univer-text-xl','exportXLSXByUnitId','getOwnPropertyDescriptor','{taskID}','pop','enableServerSideComputing','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','_getUploadFileURL','download','exportDOCXBySnapshot','done','snapshot','upload','_config','importFileToUnitId','forEach','removeChild','exchange-client.uploading','_getTaskURL','_requestState$','univer-text-blue-500','_refreshSlide','url','setTaskInterrupted','_getExportURL','resolve','blob','/universer-api/file/{fileID}/sign-url','accept','onStarting','encode','none','jsonID','visible$','defineProperty','univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','_registerIcons','1430SoveCa','uploadFileToUnitId','signUrlServerUrl','Info','/universer-api/exchange/task/{taskID}','style','_emitProgress','asObservable','_completeProgress','pptx','fileID','copyFileMeta','pluginName','exportPPTXByUnitId','getFocusedUnit','file','_addDoneTask','floor','_importToJson','prototype','length'];_0x39bd=function(){return _0x163236;};return _0x39bd();}import{HTTPResponseError as _0xc679f,HTTPService as _0x4f83f3,UniverNetworkPlugin as _0x5376f4}from'@univerjs/network';import{ClockIcon as _0x2c35fc,CloseIcon as _0x417ce3,DirectExportIcon as _0x5b1712,DocsMultiIcon as _0x286c27,ErrorIcon as _0x19b7a,ShareRangeIcon as _0xef3059,SheetsMultiIcon as _0x3817ac,SlidesMultiIcon as _0x52c450,SuccessIcon as _0x1756d9}from'@univerjs/icons';import{BuiltInUIPart as _0x15dce3,IMessageService as _0x246a95,IUIPartsService as _0x47cd9f,IconManager as _0x188500,connectInjector as _0xba57be,useDependency as _0xd2c43d,useObservable as _0x23b6ff}from'@univerjs/ui';import{useEffect as _0x46a984,useState as _0x5dd614}from'react';import{BehaviorSubject as _0x405bce,Subject as _0x347e9d}from'rxjs';import{MessageType as _0x1367cd,Tooltip as _0x274258,clsx as _0x34026c,scrollbarClassName as _0x57a21b}from'@univerjs/design';import{jsx as _0x2ee3b3,jsxs as _0x5dac55}from'react/jsx-runtime';import{ErrorCode as _0x1e5b34,FileSource as _0x1cce2a}from'@univerjs/protocol';import{b64DecodeUnicode as _0x56c5d7,b64EncodeUnicode as _0x320974,getSheetBlocksFromSnapshot as _0x2f0d0b,textDecoder as _0x3cad68,textEncoder as _0x141b75,transformDocumentDataToSnapshot as _0x2f0018,transformSlideDataToSnapshot as _0x401634,transformSnapshotToDocumentData as _0x1ca21f,transformSnapshotToSlideData as _0x843469,transformSnapshotToWorkbookData as _0xebe4f1,transformWorkbookDataToSnapshot as _0x5781a5}from'@univerjs-pro/collaboration';import{deflateSync as _0x474f57}from'fflate';var Ie=_0x1f4438(0x2d3),Le=_0x1f4438(0x1b8);const T=_0x1f4438(0x217),E={};function D(_0x481c58){'@babel/helpers - typeof';const _0x404717=_0x1f4438;return D=typeof Symbol==_0x404717(0x1a9)&&typeof Symbol['iterator']==_0x404717(0x2ae)?function(_0x2d1eff){return typeof _0x2d1eff;}:function(_0x4461e2){const _0x1d57b8=_0x404717;return _0x4461e2&&typeof Symbol==_0x1d57b8(0x1a9)&&_0x4461e2['constructor']===Symbol&&_0x4461e2!==Symbol[_0x1d57b8(0x261)]?_0x1d57b8(0x2ae):typeof _0x4461e2;},D(_0x481c58);}function Re(_0xe63464,_0x211774){const _0x1e21ac=_0x1f4438;if(D(_0xe63464)!=_0x1e21ac(0x19a)||!_0xe63464)return _0xe63464;var _0x142c82=_0xe63464[Symbol[_0x1e21ac(0x1a5)]];if(_0x142c82!==void 0x0){var _0x2fd464=_0x142c82[_0x1e21ac(0x2d5)](_0xe63464,_0x211774||_0x1e21ac(0x1d1));if(D(_0x2fd464)!=_0x1e21ac(0x19a))return _0x2fd464;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x211774===_0x1e21ac(0x1f9)?String:Number)(_0xe63464);}function ze(_0x39d515){const _0xc9c9aa=_0x1f4438;var _0xfaf2b4=Re(_0x39d515,_0xc9c9aa(0x1f9));return D(_0xfaf2b4)==_0xc9c9aa(0x2ae)?_0xfaf2b4:_0xfaf2b4+'';}function O(_0x38646b,_0x4f16f1,_0x58f6b6){const _0x3d48df=_0x1f4438;return(_0x4f16f1=ze(_0x4f16f1))in _0x38646b?Object[_0x3d48df(0x24b)](_0x38646b,_0x4f16f1,{'value':_0x58f6b6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x38646b[_0x4f16f1]=_0x58f6b6,_0x38646b;}const k=_0x3b572e(_0x1f4438(0x2a9));var Be=class extends _0x2fe81a{constructor(){const _0x309082=_0x1f4438;super(),O(this,_0x309082(0x1f6),new _0x347e9d()),O(this,'_state$',new _0x347e9d()),O(this,_0x309082(0x185),new _0x347e9d()),O(this,'visible$',this[_0x309082(0x1f6)]['asObservable']()),O(this,_0x309082(0x295),this['_state$'][_0x309082(0x255)]()),O(this,_0x309082(0x223),this[_0x309082(0x185)]['asObservable']()),O(this,'_list',[]);}[_0x1f4438(0x1b7)](){const _0x40888e=_0x1f4438;super[_0x40888e(0x1b7)](),this[_0x40888e(0x1f6)][_0x40888e(0x190)](),this['_state$'][_0x40888e(0x190)](),this[_0x40888e(0x185)][_0x40888e(0x190)]();}['show'](){const _0x33bc3b=_0x1f4438;this['_visible$'][_0x33bc3b(0x1e3)](!0x0);}[_0x1f4438(0x192)](){const _0x4d39b7=_0x1f4438;this[_0x4d39b7(0x1f6)]['next'](!0x1);}[_0x1f4438(0x19e)](_0x128cf7){const _0x1a5277=_0x1f4438;this[_0x1a5277(0x19f)][_0x1a5277(0x1e3)](_0x128cf7);}[_0x1f4438(0x1aa)](_0x11b5cb){const _0x33dec6=_0x1f4438;this[_0x33dec6(0x28a)]['unshift'](_0x11b5cb),this[_0x33dec6(0x185)]['next'](this[_0x33dec6(0x28a)]);}};function Ve(_0x52ee0d){const _0x32777a=_0x1f4438;let {list:_0x4b3662}=_0x52ee0d;function _0x255f93(_0x27f0b4){switch(_0x27f0b4){case 0x1:return _0x2ee3b3(_0x286c27,{});case 0x2:return _0x2ee3b3(_0x3817ac,{});case 0x3:return _0x2ee3b3(_0x52c450,{});default:return null;}}return _0x2ee3b3('div',{'className':_0x34026c(_0x32777a(0x20d),_0x57a21b),'children':_0x2ee3b3('ul',{'className':_0x32777a(0x1f4),'children':_0x4b3662[_0x32777a(0x18f)]((_0x18ed06,_0x1f33df)=>_0x2ee3b3('li',{'children':_0x5dac55('a',{'className':_0x32777a(0x24c),'href':_0x18ed06[_0x32777a(0x1b1)],'target':_0x32777a(0x1f5),'rel':_0x32777a(0x2d6),'children':[_0x5dac55(_0x32777a(0x1a8),{'className':'univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','children':[_0x2ee3b3('span',{'className':_0x32777a(0x229),'children':_0x255f93(_0x18ed06[_0x32777a(0x21d)])}),_0x2ee3b3(_0x274258,{'showIfEllipsis':!0x0,'title':_0x18ed06[_0x32777a(0x2bc)],'asChild':!0x0,'children':_0x2ee3b3(_0x32777a(0x1a8),{'className':_0x32777a(0x2dc),'children':_0x18ed06[_0x32777a(0x2bc)]})})]}),_0x2ee3b3(_0x32777a(0x1a8),{'className':_0x32777a(0x1ff),'children':_0x2ee3b3(_0xef3059,{})})]})},_0x1f33df))})});}const A=_0x1f4438(0x2ce),j=_0x1f4438(0x2c3),M=_0x1f4438(0x29e),N=_0x1f4438(0x1e6),P=_0x1f4438(0x1d6),F={[_0x1205ec[_0x1f4438(0x1b0)]]:[''],[_0x1205ec[_0x1f4438(0x21f)]]:[A],[_0x1205ec[_0x1f4438(0x19b)]]:[j,M,N],[_0x1205ec[_0x1f4438(0x200)]]:[P],[_0x1205ec[_0x1f4438(0x282)]]:[''],[_0x1205ec[_0x1f4438(0x197)]]:[''],[_0x1205ec[_0x1f4438(0x228)]]:[''],[_0x1205ec['UNRECOGNIZED']]:['']},I={[A]:_0x1f4438(0x1cc),[j]:_0x1f4438(0x181),[M]:'xlsm',[N]:'xltx',[P]:_0x1f4438(0x257)};function He(_0x3292e7,_0x343237,_0x44be96){const _0x2a19a0=_0x1f4438;let _0x430d2f=document[_0x2a19a0(0x2a3)]('a');_0x430d2f[_0x2a19a0(0x211)]=_0x3292e7,_0x430d2f[_0x2a19a0(0x253)]['display']=_0x2a19a0(0x248),_0x430d2f[_0x2a19a0(0x231)]=_0x343237+'.'+_0x44be96,document[_0x2a19a0(0x2c0)][_0x2a19a0(0x280)](_0x430d2f),_0x430d2f['click'](),document[_0x2a19a0(0x2c0)][_0x2a19a0(0x239)](_0x430d2f);}function L(_0x29771b,_0x475379,_0x5d947f){const _0x5039a3=_0x1f4438;let _0x6d7a5b=URL[_0x5039a3(0x1a2)](_0x29771b);He(_0x6d7a5b,_0x475379,_0x5d947f),URL[_0x5039a3(0x27b)](_0x6d7a5b);}function Ue(_0x4f13f7){const _0x2befb3=_0x1f4438;let _0x4defd9=_0x4f13f7[_0x2befb3(0x2bc)][_0x2befb3(0x199)]('.')[_0x2befb3(0x22d)]();if(!_0x4defd9)return _0x1205ec[_0x2befb3(0x1b0)];let _0x549e41=We(),_0x2c3ace=_0x1205ec['UNIVER_UNKNOWN'];return _0x549e41['some'](_0x21f212=>Ge(_0x4defd9,_0x21f212)?(_0x2c3ace=_0x21f212,!0x0):!0x1),_0x2c3ace;}function We(){const _0x435912=_0x1f4438;return Object[_0x435912(0x2b5)](_0x1205ec)[_0x435912(0x21a)](_0x40dc4d=>typeof _0x40dc4d==_0x435912(0x1cb));}function Ge(_0x4bbc48,_0xcd64f){const _0x4d5f2d=_0x1f4438;var _0x4b98d5;return((_0x4b98d5=F[_0xcd64f])==null?[]:_0x4b98d5)[_0x4d5f2d(0x18f)](_0x533ba5=>(I[_0x533ba5]||'')['toLowerCase']())['includes'](_0x4bbc48[_0x4d5f2d(0x1ea)]());}function R(_0x4b4b65,_0x1ef1cc=!0x1){const _0x507e3e=_0x1f4438;let _0x268180=_0x4b4b65[_0x507e3e(0x18f)](_0x306cc8=>{var _0x49350c;return(_0x49350c=F[_0x306cc8])==null?[]:_0x49350c;})[_0x507e3e(0x29f)](',');return new Promise((_0x315a4b,_0x21a0fc)=>{const _0x10d3fa=_0x507e3e;let _0x4fe6b0=document[_0x10d3fa(0x2a3)](_0x10d3fa(0x1e4));_0x4fe6b0[_0x10d3fa(0x21d)]=_0x10d3fa(0x25d),_0x4fe6b0[_0x10d3fa(0x245)]=_0x268180,_0x4fe6b0[_0x10d3fa(0x18e)]=_0x1ef1cc,_0x4fe6b0[_0x10d3fa(0x2b1)](_0x10d3fa(0x2a7),_0x197129=>{const _0x2cb088=_0x10d3fa;let _0xcf5c20=_0x197129[_0x2cb088(0x1af)];if(!_0xcf5c20[_0x2cb088(0x189)]||_0xcf5c20[_0x2cb088(0x189)]['length']===0x0)throw _0x21a0fc(null),Error(_0x2cb088(0x288));_0x315a4b(_0xcf5c20[_0x2cb088(0x189)]);}),_0x4fe6b0[_0x10d3fa(0x2c1)]();});}async function z(_0x3eefdc,_0x1d020d){const _0x10afcf=_0x1f4438;try{var _0x2e9b8b,_0x3326e2,_0x1433c2;let _0x2b5d8c=await _0x1d020d[_0x10afcf(0x201)](_0x3eefdc,{'responseType':_0x10afcf(0x243)}),_0x290e25=_0x2b5d8c[_0x10afcf(0x2c0)],_0x230a76=(_0x2e9b8b=(_0x3326e2=_0x2b5d8c[_0x10afcf(0x2ab)][_0x10afcf(0x201)](_0x10afcf(0x2cf)))==null?void 0x0:_0x3326e2[_0x10afcf(0x29f)](',\x20'))==null?_0x10afcf(0x1fc):_0x2e9b8b,_0x3595aa='file.'+(I[_0x230a76]||'xlsx'),_0x3dc40e=(_0x1433c2=_0x2b5d8c['headers'][_0x10afcf(0x201)](_0x10afcf(0x1f3)))==null?void 0x0:_0x1433c2[_0x10afcf(0x29f)](',\x20');if(_0x3dc40e){let _0x1734a5=_0x3dc40e['match'](/filename=(.+)/);_0x1734a5&&_0x1734a5[0x1]&&(_0x3595aa=_0x1734a5[0x1]);}else _0x3595aa=Ke(_0x3eefdc)||_0x3595aa;return new File([_0x290e25],_0x3595aa,{'type':_0x230a76});}catch(_0x42bb23){console['error'](_0x10afcf(0x273),_0x42bb23);return;}}function Ke(_0x1d5ec6){const _0x30d25a=_0x1f4438;try{return new URL(_0x1d5ec6)[_0x30d25a(0x1c8)]['split']('/')[_0x30d25a(0x22d)]();}catch(_0x6be783){console['error'](_0x30d25a(0x1c2),_0x6be783);return;}}function qe(_0xea7a92){const _0x262547=_0x1f4438;let _0xecc74=new Blob([_0xea7a92[_0x262547(0x218)]],{'type':_0x262547(0x1b3)});return new File([_0xecc74],_0x262547(0x1a4));}function B(_0x7e37c3,_0x1a7e17){return _0x7e37c3['replace']('{type}',_0x1a7e17);}function Je(_0x4496db,_0x13f400){const _0xfedbea=_0x1f4438;return _0x4496db[_0xfedbea(0x21c)](_0xfedbea(0x22c),_0x13f400);}function Ye(_0x28169a,_0x457008){const _0x327d4c=_0x1f4438;return _0x28169a[_0x327d4c(0x21c)](_0x327d4c(0x1db),_0x457008);}function V(_0x3ae43e,_0x1a3fa3){return function(_0x40e205,_0x18292d){_0x1a3fa3(_0x40e205,_0x18292d,_0x3ae43e);};}function H(_0xf56c12,_0x3fa9f3,_0x5d3dff,_0x4a8283){const _0x2dc9ae=_0x1f4438;var _0x503c94=arguments['length'],_0x4ef4f8=_0x503c94<0x3?_0x3fa9f3:_0x4a8283===null?_0x4a8283=Object[_0x2dc9ae(0x22b)](_0x3fa9f3,_0x5d3dff):_0x4a8283,_0x281548;if(typeof Reflect==_0x2dc9ae(0x19a)&&typeof Reflect[_0x2dc9ae(0x1bf)]==_0x2dc9ae(0x1a9))_0x4ef4f8=Reflect[_0x2dc9ae(0x1bf)](_0xf56c12,_0x3fa9f3,_0x5d3dff,_0x4a8283);else{for(var _0x1e0464=_0xf56c12[_0x2dc9ae(0x262)]-0x1;_0x1e0464>=0x0;_0x1e0464--)(_0x281548=_0xf56c12[_0x1e0464])&&(_0x4ef4f8=(_0x503c94<0x3?_0x281548(_0x4ef4f8):_0x503c94>0x3?_0x281548(_0x3fa9f3,_0x5d3dff,_0x4ef4f8):_0x281548(_0x3fa9f3,_0x5d3dff))||_0x4ef4f8);}return _0x503c94>0x3&&_0x4ef4f8&&Object[_0x2dc9ae(0x24b)](_0x3fa9f3,_0x5d3dff,_0x4ef4f8),_0x4ef4f8;}const U=_0x3b572e('univer-pro.exchange-client.request.service');let W=class{constructor(_0x32ca0c,_0x5db2c3){const _0xa7c974=_0x1f4438;this['_configService']=_0x32ca0c,this[_0xa7c974(0x19d)]=_0x5db2c3,O(this,_0xa7c974(0x27c),new Set());}['dispose'](){}[_0x1f4438(0x240)](_0x8bb55b){const _0x90efea=_0x1f4438;this[_0x90efea(0x27c)][_0x90efea(0x1e9)](_0x8bb55b);}[_0x1f4438(0x20c)](){const _0x41353a=_0x1f4438;this[_0x41353a(0x27c)][_0x41353a(0x1c0)]();}async[_0x1f4438(0x235)](_0x29d4f1,_0x305071=0x0,_0xf1739d=!0x1){const _0x3bf764=_0x1f4438;if(typeof _0x29d4f1==_0x3bf764(0x1f9)){let _0xd17191=await z(_0x29d4f1,this[_0x3bf764(0x19d)]);if(!_0xd17191)throw Error(_0x3bf764(0x214));_0x29d4f1=_0xd17191;}_0x305071=_0x305071||_0x29d4f1['size'];let _0x2b2edb=new FormData();_0x2b2edb[_0x3bf764(0x209)]('file',_0x29d4f1);try{let _0x3e3a8a=this[_0x3bf764(0x230)]()+_0x3bf764(0x2d1)+_0x305071+_0x3bf764(0x26c)+_0x1cce2a[_0x3bf764(0x2a8)]+_0x3bf764(0x216)+_0xf1739d,_0xfab331={'body':_0x2b2edb},_0x533664=(await this[_0x3bf764(0x19d)][_0x3bf764(0x26e)](_0x3e3a8a,_0xfab331))[_0x3bf764(0x2c0)];if(_0x533664[_0x3bf764(0x1cf)]&&_0x533664[_0x3bf764(0x1cf)][_0x3bf764(0x224)]!==_0x1e5b34['OK'])throw Error(this['_buildProtocolErrorMessage'](_0x3bf764(0x1d3),_0x533664['error']));return _0x533664;}catch(_0x3be16a){throw _0x3be16a instanceof Error?_0x3be16a:Error(this[_0x3bf764(0x281)](_0x3bf764(0x1d3),_0x3be16a));}}async[_0x1f4438(0x1ae)](_0x2088fc){const _0x3c129d=_0x1f4438;let {fileID:_0xb2d6e2,type:_0x30e92c,outputType:_0x59e665,minSheetColumnCount:_0x14d72f,minSheetRowCount:_0x5006ec}=_0x2088fc;try{let _0x1c1e24=B(this[_0x3c129d(0x1f1)](),''+_0x30e92c),_0x1d3f0e={'body':{'fileID':_0xb2d6e2,'outputType':_0x59e665,'minSheetColumnCount':_0x14d72f,'minSheetRowCount':_0x5006ec}},_0x44c142=(await this['_httpService']['post'](_0x1c1e24,_0x1d3f0e))['body'];return _0x44c142['error']&&_0x44c142[_0x3c129d(0x1cf)][_0x3c129d(0x224)]!==_0x1e5b34['OK']?void 0x0:_0x44c142;}catch{return;}}async[_0x1f4438(0x20b)](_0xdfbc18){const _0x5d7b6a=_0x1f4438;let {unitID:_0x44defb,jsonID:_0x32a403,type:_0x28ea02,sscSwitch:_0x49e328,useImageUrl:_0x4ee796,ignoreTableExport:_0x3ad996}=_0xdfbc18;try{let _0x59f598=B(this[_0x5d7b6a(0x241)](),''+_0x28ea02),_0x4bfba3={'body':{'unitID':_0x44defb,'jsonID':_0x32a403,'type':_0x28ea02,'sscSwitch':_0x49e328,'useImageUrl':_0x4ee796,'ignoreTableExport':_0x3ad996}},_0x28211e=(await this[_0x5d7b6a(0x19d)][_0x5d7b6a(0x26e)](_0x59f598,_0x4bfba3))['body'];return _0x28211e[_0x5d7b6a(0x1cf)]&&_0x28211e[_0x5d7b6a(0x1cf)][_0x5d7b6a(0x224)]!==_0x1e5b34['OK']?void 0x0:_0x28211e;}catch{return;}}async[_0x1f4438(0x2bf)](_0x4f14cb){return new Promise((_0x24ea72,_0x34f663)=>{const _0x106040=_0x7004;try{let _0x6e2c0d=0x0,_0x50c4cd=Je(this[_0x106040(0x23b)](),''+_0x4f14cb),_0x3e7402=this['_getMaxPollingTime'](),_0x1b286f=async()=>{const _0x87db19=_0x106040;if(this[_0x87db19(0x27c)][_0x87db19(0x29d)](_0x4f14cb))return;let _0x4893fd=(await this[_0x87db19(0x19d)][_0x87db19(0x201)](_0x50c4cd))['body'];if(_0x4893fd[_0x87db19(0x1cf)]&&_0x4893fd['error'][_0x87db19(0x224)]===_0x1e5b34['OK']){if(_0x4893fd[_0x87db19(0x1fe)]===_0x87db19(0x233))_0x24ea72(_0x4893fd);else{if(_0x4893fd['status']===_0x87db19(0x1ef)){let _0x2613d6=0x3e8;if(_0x6e2c0d>=_0x3e7402){_0x34f663(_0x4893fd);return;}else _0x6e2c0d>=0x7530&&(_0x2613d6=0x1388);_0x6e2c0d+=_0x2613d6,setTimeout(_0x1b286f,_0x2613d6);}else _0x34f663(_0x4893fd);}}else _0x34f663(_0x4893fd);};_0x1b286f();}catch(_0x5b3dc9){_0x34f663(_0x5b3dc9 instanceof Error?_0x5b3dc9:Error(String(_0x5b3dc9)));}});}async['signUrl'](_0x42d2b9){const _0x4e0d59=_0x1f4438;try{let _0x37054a=Ye(this[_0x4e0d59(0x272)](),''+_0x42d2b9);return(await this[_0x4e0d59(0x19d)][_0x4e0d59(0x201)](_0x37054a))['body'];}catch{return;}}async[_0x1f4438(0x212)](_0x5990e0){const _0x53261c=_0x1f4438;try{return(await this[_0x53261c(0x19d)]['get'](_0x5990e0,{'responseType':_0x53261c(0x225)}))['body'];}catch{return;}}[_0x1f4438(0x2b6)](_0x36e6f9,_0x540faa){const _0x34d644=_0x1f4438;let _0x2dcaa2=this[_0x34d644(0x286)](_0x540faa);return _0x2dcaa2?_0x36e6f9+':\x20'+_0x2dcaa2:_0x36e6f9;}[_0x1f4438(0x281)](_0x4dc69b,_0x1ab2e0){const _0x5114ca=_0x1f4438;if(_0x1ab2e0 instanceof _0xc679f){let _0x190bf3=typeof _0x1ab2e0[_0x5114ca(0x1fe)]==_0x5114ca(0x1cb)?''+_0x1ab2e0[_0x5114ca(0x1fe)]+(_0x1ab2e0[_0x5114ca(0x1d2)]?'\x20'+_0x1ab2e0['statusText']:''):void 0x0,_0x40c0e0=this['_extractErrorDetail'](_0x1ab2e0['error']);return _0x190bf3&&_0x40c0e0?_0x4dc69b+':\x20HTTP\x20'+_0x190bf3+'\x20-\x20'+_0x40c0e0:_0x190bf3?_0x4dc69b+_0x5114ca(0x284)+_0x190bf3:_0x40c0e0?_0x4dc69b+':\x20'+_0x40c0e0:_0x4dc69b;}let _0x4b50d1=this[_0x5114ca(0x286)](_0x1ab2e0);return _0x4b50d1?_0x4dc69b+':\x20'+_0x4b50d1:_0x4dc69b;}[_0x1f4438(0x286)](_0x3673e5){const _0x1373a3=_0x1f4438;if(typeof _0x3673e5==_0x1373a3(0x1f9)){let _0x1f7e16=_0x3673e5['trim']();return _0x1f7e16[_0x1373a3(0x262)]>0x0?_0x1f7e16:void 0x0;}if(_0x3673e5 instanceof Error)return this[_0x1373a3(0x286)](_0x3673e5[_0x1373a3(0x1d9)]);if(!_0x3673e5||typeof _0x3673e5!='object'||Array[_0x1373a3(0x1e5)](_0x3673e5))return;let _0x48a327=_0x3673e5,_0x2f238a=this['_extractErrorDetail'](_0x48a327[_0x1373a3(0x1d9)]);if(_0x2f238a)return _0x2f238a;if(_0x48a327[_0x1373a3(0x1cf)]&&typeof _0x48a327[_0x1373a3(0x1cf)]==_0x1373a3(0x19a)&&!Array['isArray'](_0x48a327[_0x1373a3(0x1cf)])){let _0x385e87=this[_0x1373a3(0x286)](_0x48a327[_0x1373a3(0x1cf)]);if(_0x385e87)return _0x385e87;}}[_0x1f4438(0x230)](){const _0x442727=_0x1f4438;var _0x14de78;let _0x15a469=this[_0x442727(0x266)][_0x442727(0x18b)](T);return(_0x14de78=_0x15a469==null?void 0x0:_0x15a469[_0x442727(0x18d)])==null?'/universer-api/stream/file/upload':_0x14de78;}['_getImportURL'](){const _0x40f457=_0x1f4438;var _0x9cd196;let _0xcd5aa5=this['_configService']['getConfig'](T);return(_0x9cd196=_0xcd5aa5==null?void 0x0:_0xcd5aa5[_0x40f457(0x2a6)])==null?'/universer-api/exchange/{type}/import':_0x9cd196;}[_0x1f4438(0x241)](){const _0x11c14a=_0x1f4438;var _0x3c4759;let _0x2adb65=this['_configService'][_0x11c14a(0x18b)](T);return(_0x3c4759=_0x2adb65==null?void 0x0:_0x2adb65[_0x11c14a(0x26d)])==null?_0x11c14a(0x1ac):_0x3c4759;}[_0x1f4438(0x23b)](){const _0x3a8424=_0x1f4438;var _0x1310c7;let _0x45ceb2=this[_0x3a8424(0x266)][_0x3a8424(0x18b)](T);return(_0x1310c7=_0x45ceb2==null?void 0x0:_0x45ceb2['getTaskServerUrl'])==null?_0x3a8424(0x252):_0x1310c7;}[_0x1f4438(0x272)](){const _0x5e1caf=_0x1f4438;var _0x14633f;let _0x56567d=this[_0x5e1caf(0x266)]['getConfig'](T);return(_0x14633f=_0x56567d==null?void 0x0:_0x56567d[_0x5e1caf(0x250)])==null?_0x5e1caf(0x244):_0x14633f;}[_0x1f4438(0x2b2)](){const _0x12fe05=_0x1f4438;var _0x34b57a;let _0x5261bf=this['_configService'][_0x12fe05(0x18b)](T);return(_0x34b57a=_0x5261bf==null?void 0x0:_0x5261bf[_0x12fe05(0x1e2)])==null?0x1d4c0:_0x34b57a;}};W=H([V(0x0,_0x3e68f8),V(0x1,_0x385976(_0x4f83f3))],W);function Xe(_0x4adfb0){const _0x34a196=_0x1f4438;let _0x20c478=_0x4adfb0[_0x34a196(0x19c)];if(!_0x20c478)return null;let _0x429180={};_0x20c478[_0x34a196(0x182)]&&Object[_0x34a196(0x2d8)](_0x20c478['sheets'])[_0x34a196(0x238)](_0x2bf5f1=>{const _0x2998e8=_0x34a196;let _0x1520af=_0x20c478[_0x2998e8(0x182)][_0x2bf5f1];_0x429180[_0x2bf5f1]={..._0x1520af,'originalMeta':_0x320974(_0x3cad68[_0x2998e8(0x18a)](_0x1520af[_0x2998e8(0x276)]))};});let _0x3c1b01=_0x320974(_0x3cad68[_0x34a196(0x18a)](_0x20c478[_0x34a196(0x276)]));return{..._0x4adfb0,'workbook':{..._0x20c478,'originalMeta':_0x3c1b01,'sheets':_0x429180},'doc':{},'slide':void 0x0,'board':void 0x0};}function Ze(_0x3f9ddc){const _0x1f2171=_0x1f4438;let _0x111969=_0x3f9ddc['doc'];if(!_0x111969)return null;let _0x3a26b3=_0x320974(_0x3cad68[_0x1f2171(0x18a)](_0x111969[_0x1f2171(0x276)]));return{..._0x3f9ddc,'workbook':{},'doc':{..._0x111969,'originalMeta':_0x3a26b3},'slide':void 0x0,'board':void 0x0};}function Qe(_0x158690){const _0x1e864a=_0x1f4438;var _0x2f6b6f;let _0x2a1d9f=(_0x2f6b6f=_0x158690[_0x1e864a(0x1df)])==null?_0x158690['doc']:_0x2f6b6f;if(!_0x2a1d9f)return null;let _0x578d85=typeof _0x2a1d9f['originalMeta']==_0x1e864a(0x1f9)?_0x2a1d9f[_0x1e864a(0x276)]:_0x320974(_0x3cad68[_0x1e864a(0x18a)](_0x2a1d9f[_0x1e864a(0x276)]));return{..._0x158690,'workbook':{},'doc':{},'slide':{..._0x2a1d9f,'originalMeta':_0x578d85},'board':void 0x0};}function _0x7004(_0x341d19,_0x29fd20){_0x341d19=_0x341d19-0x181;const _0x39bd92=_0x39bd();let _0x7004e1=_0x39bd92[_0x341d19];return _0x7004e1;}function $e(_0x4ecffc){const _0x3b7455=_0x1f4438;let _0x1733c7={};return _0x4ecffc[_0x3b7455(0x238)](_0x1d8e92=>{const _0x5f4415=_0x3b7455;_0x1733c7[_0x1d8e92['id']]={..._0x1d8e92,'data':_0x320974(_0x3cad68[_0x5f4415(0x18a)](_0x1d8e92[_0x5f4415(0x1e8)]))};}),_0x1733c7;}async function G(_0x2d7ba1){const _0x83be11=_0x1f4438;var _0x25c52e;let _0x1d18da={'metadata':void 0x0},_0x335f2f=_0x2d7ba1['id'],_0x1ca0af=(_0x25c52e=_0x2d7ba1[_0x83be11(0x1dc)])==null?0x0:_0x25c52e,_0x1347d8=new K(),{snapshot:_0x3116da}=await _0x5781a5(_0x1d18da,_0x2d7ba1,_0x335f2f,_0x1ca0af,_0x1347d8),_0x3e9c8e=await _0x2f0d0b(_0x3116da,_0x1347d8),_0x5d1ad5=Xe(_0x3116da);if(!_0x5d1ad5)throw Error(_0x83be11(0x274));return{'snapshot':_0x5d1ad5,'sheetBlocks':$e(_0x3e9c8e)};}async function et(_0x340845){const _0x3f375c=_0x1f4438;var _0x39abe9;let _0x4548e1={'metadata':void 0x0},_0x35996e=_0x340845['id'],{snapshot:_0x453478}=await _0x2f0018(_0x4548e1,_0x340845,_0x35996e,(_0x39abe9=_0x340845[_0x3f375c(0x1dc)])==null?0x0:_0x39abe9,new K()),_0x47029c=Ze(_0x453478);if(!_0x47029c)throw Error(_0x3f375c(0x274));return{'snapshot':_0x47029c,'sheetBlocks':{}};}async function tt(_0x3259df){const _0x12be65=_0x1f4438;var _0x3e8521;let _0x138086=_0x3259df['id'],_0x10aece=(_0x3e8521=_0x3259df[_0x12be65(0x1dc)])==null?0x0:_0x3e8521,_0x1c78c0=new K(),{snapshot:_0x161b81}=await _0x401634(_0x3259df[_0x12be65(0x265)],_0x3259df,_0x138086,_0x10aece,_0x1c78c0),_0x565948=Qe(_0x161b81);if(!_0x565948)throw Error(_0x12be65(0x274));return{'snapshot':_0x565948,'sheetBlocks':{}};}async function nt(_0x3c908f){const _0x1dd10d=_0x1f4438;let _0x43d74f=_0x3c908f[_0x1dd10d(0x234)],_0x5bee77=_0x3c908f[_0x1dd10d(0x298)]||{};return await _0xebe4f1(_0x43d74f,Object[_0x1dd10d(0x2d8)](_0x5bee77)['map'](_0x5c65e7=>_0x5bee77[_0x5c65e7])[_0x1dd10d(0x18f)](_0x5038cf=>({..._0x5038cf,'data':_0x5038cf['data']?JSON[_0x1dd10d(0x1b2)](_0x56c5d7(_0x5038cf['data'])):void 0x0})));}function rt(_0x135d58){let _0x2bfe81=_0x135d58['snapshot'];return _0x1ca21f(_0x2bfe81);}function it(_0x5a2961){let _0x4b997a=_0x5a2961['snapshot'];return _0x843469(_0x4b997a);}var K=class{constructor(){const _0x3de720=_0x1f4438;O(this,_0x3de720(0x204),new Map());}[_0x1f4438(0x1cd)](){const _0x25aef4=_0x1f4438;return Promise[_0x25aef4(0x242)]({'snapshot':{'unitID':'','type':_0x1205ec['UNIVER_SHEET'],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x1e5b34['OK'],'message':''}});}[_0x1f4438(0x1d8)](_0x517001,_0x1fb58e){const _0x132810=_0x1f4438;let _0x38b90c=this[_0x132810(0x204)][_0x132810(0x201)](_0x1fb58e['blockID']);return Promise[_0x132810(0x242)]({'block':_0x38b90c,'error':{'code':_0x1e5b34['OK'],'message':''}});}[_0x1f4438(0x20a)](_0x15e5e7,_0xc5761){const _0x10e6a9=_0x1f4438;let _0x3e0a14=this[_0x10e6a9(0x204)][_0x10e6a9(0x201)](_0xc5761[_0x10e6a9(0x1e7)]);return Promise[_0x10e6a9(0x242)]({'block':_0x3e0a14===void 0x0?void 0x0:{..._0x3e0a14,'data':JSON['parse'](_0x3cad68['decode'](_0x3e0a14[_0x10e6a9(0x1e8)]))},'error':{'code':_0x1e5b34['OK'],'message':''}});}['fetchMissingChangesets'](){const _0x2d3f0a=_0x1f4438;return Promise[_0x2d3f0a(0x242)]({'changesets':[],'error':{'code':_0x1e5b34['OK'],'message':''}});}[_0x1f4438(0x205)](){const _0x136fb3=_0x1f4438;return Promise[_0x136fb3(0x242)]({'resources':{},'error':{'code':_0x1e5b34['OK'],'message':''}});}[_0x1f4438(0x27d)](){const _0x357d53=_0x1f4438;return Promise[_0x357d53(0x242)]({'error':{'code':_0x1e5b34['OK'],'message':''}});}[_0x1f4438(0x21e)](){const _0x4e36ec=_0x1f4438;return Promise[_0x4e36ec(0x242)]({'error':{'code':_0x1e5b34['OK'],'message':''}});}['saveSheetBlock'](_0xdd48c3,_0x54e7e3){const _0x6eef18=_0x1f4438;let {block:_0x54804b}=_0x54e7e3;return _0x54804b?(this['_sheetBlockCache'][_0x6eef18(0x292)](_0x54804b['id'],_0x54804b),Promise[_0x6eef18(0x242)]({'error':{'code':_0x1e5b34['OK'],'message':''},'blockID':_0x54804b['id']})):Promise['resolve']({'error':{'code':_0x1e5b34[_0x6eef18(0x1da)],'message':_0x6eef18(0x1bb)},'blockID':''});}[_0x1f4438(0x2cb)](){const _0x4a93d5=_0x1f4438;return Promise[_0x4a93d5(0x242)]({'error':{'code':_0x1e5b34['OK'],'message':''},'concurrent':[]});}[_0x1f4438(0x259)](){return Promise['resolve']({'error':void 0x0,'fileMetaId':''});}[_0x1f4438(0x219)](){return Promise['resolve']({'error':void 0x0,'latestReqID':0x0});}};const q=_0x3b572e('univer-pro.exchange-client.exchange.service');let J=class extends _0x2fe81a{constructor(_0x1db8df,_0x3d109b,_0xc89b39){const _0x4135ce=_0x1f4438;super(),this[_0x4135ce(0x266)]=_0x1db8df,this[_0x4135ce(0x19d)]=_0x3d109b,this[_0x4135ce(0x1d7)]=_0xc89b39,O(this,'_importTaskId',null),O(this,_0x4135ce(0x23c),new _0x347e9d()),O(this,_0x4135ce(0x1d4),this['_requestState$']['asObservable']());}['dispose'](){const _0x4bb8c0=_0x1f4438;super[_0x4bb8c0(0x1b7)](),this[_0x4bb8c0(0x23c)][_0x4bb8c0(0x190)]();}async[_0x1f4438(0x18c)](_0x409e77){const _0x4ffe6d=_0x1f4438;let _0x44f3bc=await this[_0x4ffe6d(0x226)](_0x409e77,_0x1205ec[_0x4ffe6d(0x21f)]);if(!_0x44f3bc||!_0x44f3bc[_0x4ffe6d(0x234)])return;let _0x14e533=rt(_0x44f3bc);if(_0x14e533)return _0x14e533;}async[_0x1f4438(0x221)](_0x26f2f7){return this['_export'](_0x26f2f7,0x1,_0x1205ec['UNIVER_DOC']);}async[_0x1f4438(0x232)](_0x31a571){const _0x2cf7a8=_0x1f4438;let _0x501853=await et(_0x31a571);return this['_exportBySnapshot'](_0x501853,_0x1205ec[_0x2cf7a8(0x21f)]);}async['importPPTXToSnapshot'](_0x1d7da5){const _0x23ac5f=_0x1f4438;let _0x51df23=await this[_0x23ac5f(0x226)](_0x1d7da5,_0x1205ec[_0x23ac5f(0x200)]);if(!(!_0x51df23||!_0x51df23[_0x23ac5f(0x234)]))return it(_0x51df23);}async[_0x1f4438(0x25b)](_0x507cfa){const _0x2522bf=_0x1f4438;return this[_0x2522bf(0x27e)](_0x507cfa,0x1,_0x1205ec[_0x2522bf(0x200)]);}async[_0x1f4438(0x2c8)](_0x402379){const _0x5a69ce=_0x1f4438;let _0x1b8534=await tt(_0x402379);return this[_0x5a69ce(0x285)](_0x1b8534,_0x1205ec['UNIVER_SLIDE']);}async[_0x1f4438(0x1ed)](_0x219d01){const _0x30d915=_0x1f4438;let _0xd07c82=await this[_0x30d915(0x226)](_0x219d01,_0x1205ec[_0x30d915(0x19b)]);if(!_0xd07c82)return;let _0x4c4fe6=await nt(_0xd07c82);if(_0x4c4fe6)return _0x4c4fe6;}async[_0x1f4438(0x22a)](_0x1ad3a4){const _0x1e7ac8=_0x1f4438;return this['_export'](_0x1ad3a4,0x1,_0x1205ec[_0x1e7ac8(0x19b)]);}async['exportXLSXBySnapshot'](_0x3eac3c){const _0x45de71=_0x1f4438;let _0x167263=await G(_0x3eac3c);return this[_0x45de71(0x285)](_0x167263,_0x1205ec['UNIVER_SHEET']);}async['importFileToUnitId'](_0xae14fd,_0x5a7129){const _0x37c64f=_0x1f4438;var _0x4274e3,_0x147d2b;let _0x3a2b1d=await this[_0x37c64f(0x1be)](_0xae14fd);if(!_0x3a2b1d)return;let _0x133856=await this[_0x37c64f(0x287)](_0x3a2b1d,0x1,_0x5a7129);if(!_0x133856)return;this['_importTaskId']=_0x133856,this[_0x37c64f(0x1d7)][_0x37c64f(0x20c)]();let _0x266181=await this['_requestService'][_0x37c64f(0x2bf)](_0x133856)[_0x37c64f(0x191)](_0x5517da=>{const _0xcf4cdc=_0x37c64f;var _0x91149a;let _0x5475fd=_0x5517da instanceof Error?_0x5517da[_0xcf4cdc(0x1d9)]:(_0x91149a=_0x5517da['error'])==null?void 0x0:_0x91149a['message'];this['_requestState$']['next']({'error':{'code':_0x1e5b34[_0xcf4cdc(0x193)],'message':_0x5475fd||''},'state':0x3});});if(!_0x266181)return;let _0x36f781=(_0x4274e3=_0x266181['import'])==null?void 0x0:_0x4274e3['outputType'],_0x192983=((_0x147d2b=_0x266181[_0x37c64f(0x1ae)])==null?void 0x0:_0x147d2b['unitID'])||'';if(_0x36f781!==0x1){this[_0x37c64f(0x23c)]['next']({'error':{'code':_0x1e5b34[_0x37c64f(0x193)],'message':_0x37c64f(0x1ce)},'state':0x3});return;}if(_0x192983[_0x37c64f(0x262)]===0x0){this[_0x37c64f(0x23c)][_0x37c64f(0x1e3)]({'error':{'code':_0x1e5b34[_0x37c64f(0x193)],'message':_0x37c64f(0x220)},'state':0x3});return;}return this['_requestState$'][_0x37c64f(0x1e3)]({'error':_0x266181['error'],'state':0x3}),_0x192983;}async[_0x1f4438(0x226)](_0x2bee13,_0x2d5412){const _0x210a2b=_0x1f4438;return this[_0x210a2b(0x260)](_0x2bee13,_0x2d5412);}async['importWorkbookDataToUnitId'](_0x38040e){const _0x1b731d=_0x1f4438;let _0x3a25b9=await G(_0x38040e),_0x3c3045=typeof _0x38040e['id']=='string'&&_0x38040e['id']['trim']()?_0x38040e['id']['trim']()+_0x1b731d(0x207):_0x1b731d(0x2a1),_0x183449=new File([JSON[_0x1b731d(0x2ad)](_0x3a25b9)],_0x3c3045,{'type':_0x1b731d(0x1b3)});return this[_0x1b731d(0x237)](_0x183449,_0x1205ec[_0x1b731d(0x19b)]);}[_0x1f4438(0x2c6)](){const _0x489c26=_0x1f4438;this[_0x489c26(0x2ba)]&&this[_0x489c26(0x1d7)]['setTaskInterrupted'](this[_0x489c26(0x2ba)]);}async[_0x1f4438(0x260)](_0x364fa1,_0x4dfd57){const _0x1dce40=_0x1f4438;var _0x3f5c5f,_0x516a46;let _0x4c4b7a=await this['_upload'](_0x364fa1);if(!_0x4c4b7a)return;let _0x1c0c16=await this[_0x1dce40(0x287)](_0x4c4b7a,0x2,_0x4dfd57);if(!_0x1c0c16)return;this[_0x1dce40(0x2ba)]=_0x1c0c16,this[_0x1dce40(0x1d7)][_0x1dce40(0x20c)]();let _0x5280e1=await this[_0x1dce40(0x1d7)][_0x1dce40(0x2bf)](_0x1c0c16)[_0x1dce40(0x191)](_0xec4395=>{const _0x1c8b0e=_0x1dce40;var _0x8dca03;let _0x3dca20=_0xec4395 instanceof Error?_0xec4395[_0x1c8b0e(0x1d9)]:(_0x8dca03=_0xec4395[_0x1c8b0e(0x1cf)])==null?void 0x0:_0x8dca03[_0x1c8b0e(0x1d9)];this[_0x1c8b0e(0x23c)][_0x1c8b0e(0x1e3)]({'error':{'code':_0x1e5b34[_0x1c8b0e(0x193)],'message':_0x3dca20||''},'state':0x3});});if(!_0x5280e1)return;let _0x18b5a4=(_0x3f5c5f=_0x5280e1['import'])==null?void 0x0:_0x3f5c5f[_0x1dce40(0x2b7)],_0x103675=((_0x516a46=_0x5280e1['import'])==null?void 0x0:_0x516a46[_0x1dce40(0x249)])||'';if(_0x18b5a4!==0x2){this['_requestState$'][_0x1dce40(0x1e3)]({'error':{'code':_0x1e5b34[_0x1dce40(0x193)],'message':_0x1dce40(0x1ce)},'state':0x3});return;}if(_0x103675[_0x1dce40(0x262)]===0x0){this[_0x1dce40(0x23c)][_0x1dce40(0x1e3)]({'error':{'code':_0x1e5b34[_0x1dce40(0x193)],'message':_0x1dce40(0x2cd)},'state':0x3});return;}this[_0x1dce40(0x23c)]['next']({'error':_0x5280e1[_0x1dce40(0x1cf)],'state':0x3});let _0x10bf06=await this[_0x1dce40(0x2d2)](_0x103675);if(!_0x10bf06)return;let _0x19c9b3=await this[_0x1dce40(0x1d7)]['getTextFromUrl'](_0x10bf06);if(!_0x19c9b3){this[_0x1dce40(0x23c)][_0x1dce40(0x1e3)]({'error':{'code':_0x1e5b34[_0x1dce40(0x193)],'message':_0x1dce40(0x2c7)},'state':0x5});return;}try{let _0x20791f=JSON[_0x1dce40(0x1b2)](_0x19c9b3);return this[_0x1dce40(0x23c)][_0x1dce40(0x1e3)]({'error':{'code':_0x1e5b34['OK'],'message':_0x1dce40(0x187)},'state':0x5}),_0x20791f;}catch{this[_0x1dce40(0x23c)][_0x1dce40(0x1e3)]({'error':{'code':_0x1e5b34['UNRECOGNIZED'],'message':_0x1dce40(0x227)},'state':0x5});}}async[_0x1f4438(0x285)](_0x5a7615,_0x454bed){const _0x475467=_0x1f4438;let _0x24dc13=JSON['stringify'](_0x5a7615),_0x196d5d=_0x141b75[_0x475467(0x247)](_0x24dc13),_0x53d330=_0x474f57(_0x196d5d),_0x2211f6=_0x196d5d[_0x475467(0x262)],_0x14aea5=qe(_0x53d330),_0x2a023d=await this[_0x475467(0x1be)](_0x14aea5,_0x2211f6,!0x0);if(_0x2a023d)return this[_0x475467(0x27e)](_0x2a023d,0x2,_0x454bed);}async[_0x1f4438(0x27e)](_0x49be88,_0x15bdc9,_0x30b531){const _0x285f23=_0x1f4438;var _0x546518;let _0x9b0597=await this[_0x285f23(0x1d7)][_0x285f23(0x20b)]({'unitID':_0x15bdc9===0x1?_0x49be88:'','jsonID':_0x15bdc9===0x2?_0x49be88:'','type':_0x30b531,'sscSwitch':this[_0x285f23(0x198)](),'useImageUrl':this['_getDisableCellImageConversion'](),'ignoreTableExport':this[_0x285f23(0x1f2)]()});if(!_0x9b0597){this[_0x285f23(0x23c)][_0x285f23(0x1e3)]({'error':{'code':_0x1e5b34[_0x285f23(0x193)],'message':'export\x20error'},'state':0x2});return;}if(this[_0x285f23(0x23c)]['next']({'error':_0x9b0597[_0x285f23(0x1cf)],'state':0x2}),_0x9b0597[_0x285f23(0x1cf)]&&_0x9b0597['error'][_0x285f23(0x224)]!==_0x1e5b34['OK'])return;let _0x117f79=_0x9b0597[_0x285f23(0x1c1)],_0x14265c=await this[_0x285f23(0x1d7)][_0x285f23(0x2bf)](_0x117f79)['catch'](_0x47e36c=>{const _0x40c301=_0x285f23;var _0x26e698;let _0x34001f=_0x47e36c instanceof Error?_0x47e36c[_0x40c301(0x1d9)]:(_0x26e698=_0x47e36c[_0x40c301(0x1cf)])==null?void 0x0:_0x26e698['message'];this[_0x40c301(0x23c)]['next']({'error':{'code':_0x1e5b34[_0x40c301(0x193)],'message':_0x34001f||''},'state':0x3});});if(!_0x14265c)return;let _0x2a8ba9=((_0x546518=_0x14265c[_0x285f23(0x20b)])==null?void 0x0:_0x546518[_0x285f23(0x258)])||'';if(_0x2a8ba9[_0x285f23(0x262)]===0x0){this[_0x285f23(0x23c)][_0x285f23(0x1e3)]({'error':{'code':_0x1e5b34['UNRECOGNIZED'],'message':_0x285f23(0x1a1)},'state':0x3});return;}this[_0x285f23(0x23c)][_0x285f23(0x1e3)]({'error':_0x14265c[_0x285f23(0x1cf)],'state':0x3});let _0x44b031=await this[_0x285f23(0x2d2)](_0x2a8ba9);if(!_0x44b031)return;let _0x11e2d2=await z(_0x44b031,this[_0x285f23(0x19d)]);if(!_0x11e2d2){this[_0x285f23(0x23c)]['next']({'error':{'code':_0x1e5b34[_0x285f23(0x193)],'message':_0x285f23(0x2bd)},'state':0x6});return;}return this['_requestState$']['next']({'error':{'code':_0x1e5b34['OK'],'message':_0x285f23(0x187)},'state':0x6}),_0x11e2d2;}async['_upload'](_0x6a9e4b,_0x211f56,_0x5a5e7d){const _0x310bba=_0x1f4438;let _0xd842ca;try{_0xd842ca=await this[_0x310bba(0x1d7)][_0x310bba(0x235)](_0x6a9e4b,_0x211f56,_0x5a5e7d);}catch(_0x179da8){let _0x4c6b70=_0x179da8 instanceof Error?_0x179da8[_0x310bba(0x1d9)]:String(_0x179da8);this['_requestState$'][_0x310bba(0x1e3)]({'error':{'code':_0x1e5b34[_0x310bba(0x193)],'message':_0x4c6b70},'state':0x0});return;}if(!_0xd842ca||typeof _0xd842ca[_0x310bba(0x268)]!=_0x310bba(0x1f9)){this[_0x310bba(0x23c)]['next']({'error':{'code':_0x1e5b34[_0x310bba(0x193)],'message':_0x310bba(0x20e)},'state':0x0});return;}let _0x3f34b6=_0xd842ca[_0x310bba(0x268)];if(_0x3f34b6[_0x310bba(0x262)]===0x0){this[_0x310bba(0x23c)]['next']({'error':{'code':_0x1e5b34[_0x310bba(0x193)],'message':_0x310bba(0x188)},'state':0x0});return;}return this[_0x310bba(0x23c)][_0x310bba(0x1e3)]({'error':{'code':_0x1e5b34['OK'],'message':'success'},'state':0x0}),_0x3f34b6;}async[_0x1f4438(0x287)](_0xc420cb,_0x451828,_0x24637f){const _0x568122=_0x1f4438;let _0x2fcc3a={'fileID':_0xc420cb,'type':_0x24637f,'outputType':_0x451828,'fileUrl':'','minSheetRowCount':this[_0x568122(0x1ca)](),'minSheetColumnCount':this[_0x568122(0x1bc)]()},_0x162537=await this[_0x568122(0x1d7)][_0x568122(0x1ae)](_0x2fcc3a);if(!_0x162537){this['_requestState$'][_0x568122(0x1e3)]({'error':{'code':_0x1e5b34[_0x568122(0x193)],'message':_0x568122(0x2d0)},'state':0x1});return;}if(_0x162537[_0x568122(0x1cf)]&&_0x162537['error']['code']!==_0x1e5b34['OK']){this[_0x568122(0x23c)][_0x568122(0x1e3)]({'error':_0x162537[_0x568122(0x1cf)],'state':0x1});return;}let _0x1b308b=_0x162537['taskID'];if(_0x1b308b[_0x568122(0x262)]===0x0){this[_0x568122(0x23c)]['next']({'error':{'code':_0x1e5b34['UNRECOGNIZED'],'message':_0x568122(0x222)},'state':0x1});return;}return this[_0x568122(0x23c)]['next']({'error':_0x162537[_0x568122(0x1cf)],'state':0x1}),_0x1b308b;}async[_0x1f4438(0x2d2)](_0x4863ee){const _0x106b13=_0x1f4438;let _0x59d662=await this['_requestService']['signUrl'](_0x4863ee);if(!_0x59d662){this['_requestState$']['next']({'error':{'code':_0x1e5b34[_0x106b13(0x193)],'message':_0x106b13(0x21b)},'state':0x4});return;}if(_0x59d662[_0x106b13(0x1cf)]&&_0x59d662['error'][_0x106b13(0x224)]!==_0x1e5b34['OK']){this['_requestState$'][_0x106b13(0x1e3)]({'error':_0x59d662[_0x106b13(0x1cf)],'state':0x4});return;}let _0x258c3c=_0x596ed2(_0x59d662[_0x106b13(0x23f)],this[_0x106b13(0x1bd)]());if(_0x258c3c[_0x106b13(0x262)]===0x0){this[_0x106b13(0x23c)][_0x106b13(0x1e3)]({'error':{'code':_0x1e5b34[_0x106b13(0x193)],'message':_0x106b13(0x21b)},'state':0x4});return;}return this[_0x106b13(0x23c)][_0x106b13(0x1e3)]({'error':_0x59d662[_0x106b13(0x1cf)],'state':0x4}),_0x258c3c;}[_0x1f4438(0x1bd)](){const _0x1c6a35=_0x1f4438;var _0x25cc6d;let _0x1c3668=this[_0x1c6a35(0x266)][_0x1c6a35(0x18b)](T);return(_0x25cc6d=_0x1c3668==null?void 0x0:_0x1c3668[_0x1c6a35(0x296)])==null?location[_0x1c6a35(0x28e)]:_0x25cc6d;}[_0x1f4438(0x1ca)](){const _0x19de6f=_0x1f4438;var _0x368ce2,_0x22046b;let _0x25a219=this[_0x19de6f(0x266)][_0x19de6f(0x18b)](T);return(_0x368ce2=_0x25a219==null||(_0x22046b=_0x25a219[_0x19de6f(0x1f0)])==null?void 0x0:_0x22046b['minSheetRowCount'])==null?0x1:_0x368ce2;}['_getMinSheetColumnCount'](){const _0x32f2a3=_0x1f4438;var _0x102060,_0x590cfd;let _0x139846=this['_configService'][_0x32f2a3(0x18b)](T);return(_0x102060=_0x139846==null||(_0x590cfd=_0x139846['options'])==null?void 0x0:_0x590cfd['minSheetColumnCount'])==null?0x1:_0x102060;}['_getEnableServerSideComputing'](){const _0x2a8d06=_0x1f4438;var _0xc1f7ee,_0x352690;let _0x1cdd47=this[_0x2a8d06(0x266)][_0x2a8d06(0x18b)](T);return(_0xc1f7ee=_0x1cdd47==null||(_0x352690=_0x1cdd47[_0x2a8d06(0x1f0)])==null?void 0x0:_0x352690[_0x2a8d06(0x22e)])==null?!0x1:_0xc1f7ee;}[_0x1f4438(0x1c7)](){const _0x18f14a=_0x1f4438;var _0x24e0aa,_0xd312e7;let _0xf65760=this[_0x18f14a(0x266)][_0x18f14a(0x18b)](T);return(_0x24e0aa=_0xf65760==null||(_0xd312e7=_0xf65760[_0x18f14a(0x1f0)])==null?void 0x0:_0xd312e7[_0x18f14a(0x1d0)])==null?!0x0:_0x24e0aa;}[_0x1f4438(0x1f2)](){const _0x5e0d7b=_0x1f4438;var _0x31fa98,_0xe32896;let _0x513f3a=this[_0x5e0d7b(0x266)][_0x5e0d7b(0x18b)](T);return(_0x31fa98=_0x513f3a==null||(_0xe32896=_0x513f3a[_0x5e0d7b(0x1f0)])==null?void 0x0:_0xe32896['ignoreTableExport'])==null?!0x1:_0x31fa98;}};J=H([V(0x0,_0x3e68f8),V(0x1,_0x385976(_0x4f83f3)),V(0x2,_0x385976(U))],J);const at={'done':0x0,'count':0x0},Y=_0x3b572e('univer-pro.exchange-client.operate.service');let X=class extends _0x2fe81a{constructor(_0x39e0af,_0x1494c6,_0x44e6cd,_0x227f2b,_0x550285,_0x4ef07a,_0x5c5a67){const _0x299421=_0x1f4438;super(),this['_univerInstanceService']=_0x39e0af,this[_0x299421(0x2d4)]=_0x1494c6,this[_0x299421(0x291)]=_0x44e6cd,this[_0x299421(0x2b0)]=_0x227f2b,this['_uploadNotificationService']=_0x550285,this[_0x299421(0x279)]=_0x4ef07a,this[_0x299421(0x1c5)]=_0x5c5a67,O(this,_0x299421(0x1b6),new _0x405bce(at)),O(this,_0x299421(0x269),this[_0x299421(0x1b6)][_0x299421(0x255)]()),O(this,_0x299421(0x290),0x0),O(this,'_doneUploadTaskCount',0x0),this[_0x299421(0x2db)](_0x588f34(this[_0x299421(0x2b0)][_0x299421(0x1d4)][_0x299421(0x294)](_0x4c0aba=>{const _0x4eed9c=_0x299421;var _0x1f4122;((_0x1f4122=_0x4c0aba[_0x4eed9c(0x1cf)])==null?void 0x0:_0x1f4122[_0x4eed9c(0x224)])===_0x1e5b34['OK']?this['_addDoneTask'](0x1):this[_0x4eed9c(0x2c9)](_0x4c0aba[_0x4eed9c(0x1cf)]);})));}['interrupt'](){const _0x4bd161=_0x1f4438;this[_0x4bd161(0x1a7)](),this[_0x4bd161(0x2d7)][_0x4bd161(0x19e)](0x2),this[_0x4bd161(0x2b0)][_0x4bd161(0x2c6)]();}async[_0x1f4438(0x24f)](_0x489f95){throw Error('Method\x20not\x20implemented.');}async[_0x1f4438(0x2b9)](){const _0x4c1b53=_0x1f4438;let _0x1142fa=this['_univerInstanceService'][_0x4c1b53(0x25c)]();switch(_0x1142fa?this[_0x4c1b53(0x2c4)][_0x4c1b53(0x213)](_0x1142fa[_0x4c1b53(0x1ad)]()):_0x1205ec['UNRECOGNIZED']){case _0x1205ec[_0x4c1b53(0x200)]:return this[_0x4c1b53(0x1d5)]();case _0x1205ec[_0x4c1b53(0x21f)]:return this['importDOCXToUnitId']();case _0x1205ec[_0x4c1b53(0x19b)]:default:return this[_0x4c1b53(0x1c4)]();}}async['importDOCXToUnitId'](){const _0x3f4fd0=_0x1f4438;let _0x152778=await R([_0x1205ec[_0x3f4fd0(0x21f)]]);if(_0x152778&&!this['_fileTypeError'](_0x152778,_0x1205ec[_0x3f4fd0(0x21f)]))return this[_0x3f4fd0(0x2da)](_0x152778[0x0],_0x1205ec[_0x3f4fd0(0x21f)]);}[_0x1f4438(0x18c)](){const _0x47d50d=_0x1f4438;throw Error(_0x47d50d(0x195));}async[_0x1f4438(0x221)](_0x48d01b,_0x1ca527,_0x334669){const _0x11f444=_0x1f4438;this[_0x11f444(0x183)](_0x1367cd[_0x11f444(0x251)]);let _0x4727f2=await this['_exchangeService'][_0x11f444(0x221)](_0x48d01b||this[_0x11f444(0x1e0)]());_0x4727f2&&(L(_0x4727f2,_0x1ca527||this[_0x11f444(0x2ac)](_0x4727f2),_0x11f444(0x1cc)),this['_showDownloadMessage'](_0x1367cd[_0x11f444(0x1a6)]));}async[_0x1f4438(0x232)](){const _0x30bf98=_0x1f4438;this[_0x30bf98(0x183)](_0x1367cd['Info']);let _0x237835=await this[_0x30bf98(0x2be)](),_0x4a79ba=await this[_0x30bf98(0x2b0)][_0x30bf98(0x232)](_0x237835);_0x4a79ba&&(L(_0x4a79ba,this[_0x30bf98(0x2ac)](_0x4a79ba),_0x30bf98(0x1cc)),this[_0x30bf98(0x183)](_0x1367cd[_0x30bf98(0x1a6)]));}async[_0x1f4438(0x1d5)](){const _0x4ad04a=_0x1f4438;if(this[_0x4ad04a(0x208)]()){this['_messageService'][_0x4ad04a(0x1eb)]({'type':_0x1367cd[_0x4ad04a(0x263)],'content':this['_localeService']['t'](_0x4ad04a(0x23a))});return;}let _0x2bdaba=await R([_0x1205ec[_0x4ad04a(0x200)]]);if(_0x2bdaba&&!this['_fileTypeError'](_0x2bdaba,_0x1205ec['UNIVER_SLIDE']))return this[_0x4ad04a(0x2da)](_0x2bdaba[0x0],_0x1205ec[_0x4ad04a(0x200)]);}async[_0x1f4438(0x2c2)](){const _0x17c9e3=_0x1f4438;if(this[_0x17c9e3(0x208)]()){this['_messageService'][_0x17c9e3(0x1eb)]({'type':_0x1367cd['Warning'],'content':this[_0x17c9e3(0x291)]['t']('exchange-client.uploading')});return;}let _0x11d949=await R([_0x1205ec[_0x17c9e3(0x200)]]);if(!_0x11d949)return;this['_showUploadMessage'](_0x1367cd[_0x17c9e3(0x251)]);let _0x5d8e71=await this[_0x17c9e3(0x2b0)][_0x17c9e3(0x2c2)](_0x11d949[0x0]);_0x5d8e71&&(this[_0x17c9e3(0x23e)](_0x5d8e71),this[_0x17c9e3(0x2b4)](_0x1367cd['Success']));}async[_0x1f4438(0x25b)](_0x1f9940,_0x5b0cb4,_0x52f57c){const _0x70f433=_0x1f4438;this[_0x70f433(0x183)](_0x1367cd[_0x70f433(0x251)]);let _0x5368fc=await this[_0x70f433(0x2b0)]['exportPPTXByUnitId'](_0x1f9940||this['_getUnitIDSlide']());_0x5368fc&&(L(_0x5368fc,_0x5b0cb4||this[_0x70f433(0x20f)](_0x5368fc,_0x52f57c==null?_0x1205ec[_0x70f433(0x200)]:_0x52f57c),_0x70f433(0x257)),this[_0x70f433(0x183)](_0x1367cd[_0x70f433(0x1a6)]));}async[_0x1f4438(0x2c8)](){const _0x3075dc=_0x1f4438;this[_0x3075dc(0x183)](_0x1367cd[_0x3075dc(0x251)]);let _0x3f29b0=await this[_0x3075dc(0x267)](),_0x5db204=await this[_0x3075dc(0x2b0)]['exportPPTXBySnapshot'](_0x3f29b0);_0x5db204&&(L(_0x5db204,this[_0x3075dc(0x20f)](_0x5db204,_0x1205ec[_0x3075dc(0x200)]),_0x3075dc(0x257)),this[_0x3075dc(0x183)](_0x1367cd[_0x3075dc(0x1a6)]));}async[_0x1f4438(0x1c4)](){const _0x18c0a9=_0x1f4438;if(this[_0x18c0a9(0x208)]()){this[_0x18c0a9(0x2d4)]['show']({'type':_0x1367cd[_0x18c0a9(0x263)],'content':this[_0x18c0a9(0x291)]['t'](_0x18c0a9(0x23a))});return;}let _0x430736=await R([_0x1205ec[_0x18c0a9(0x19b)]]);if(_0x430736&&!this['_fileTypeError'](_0x430736,_0x1205ec[_0x18c0a9(0x19b)]))return this[_0x18c0a9(0x2da)](_0x430736[0x0],_0x1205ec['UNIVER_SHEET']);}async[_0x1f4438(0x1ed)](){const _0x393118=_0x1f4438;if(this[_0x393118(0x208)]()){this[_0x393118(0x2d4)][_0x393118(0x1eb)]({'type':_0x1367cd[_0x393118(0x263)],'content':this['_localeService']['t'](_0x393118(0x23a))});return;}let _0x580b46=await R([_0x1205ec[_0x393118(0x19b)]]);if(!_0x580b46)return;this[_0x393118(0x2b4)](_0x1367cd[_0x393118(0x251)]);let _0x1a6381=await this[_0x393118(0x2b0)][_0x393118(0x1ed)](_0x580b46[0x0]);_0x1a6381&&(this[_0x393118(0x289)](_0x1a6381),this[_0x393118(0x2b4)](_0x1367cd[_0x393118(0x1a6)]));}async[_0x1f4438(0x22a)](_0x28857d,_0x484bba,_0xd0d05e){const _0x3ba47e=_0x1f4438;this[_0x3ba47e(0x183)](_0x1367cd[_0x3ba47e(0x251)]);let _0x1cc639=await this[_0x3ba47e(0x2b0)][_0x3ba47e(0x22a)](_0x28857d||this[_0x3ba47e(0x1c9)]());_0x1cc639&&(L(_0x1cc639,_0x484bba||this['_getUnitName'](_0x1cc639),_0x3ba47e(0x181)),this[_0x3ba47e(0x183)](_0x1367cd[_0x3ba47e(0x1a6)]));}async[_0x1f4438(0x1b5)](){const _0x5b991c=_0x1f4438;this[_0x5b991c(0x183)](_0x1367cd[_0x5b991c(0x251)]);let _0x5ae6a9=await this['_getUnitJson'](),_0x57ec0c=await this['_exchangeService'][_0x5b991c(0x1b5)](_0x5ae6a9);_0x57ec0c&&(L(_0x57ec0c,this[_0x5b991c(0x2ac)](_0x57ec0c),_0x5b991c(0x181)),this[_0x5b991c(0x183)](_0x1367cd[_0x5b991c(0x1a6)]));}['registerLink'](_0xa757a6){const _0x2bdf27=_0x1f4438;this[_0x2bdf27(0x1e1)]=_0xa757a6;}async[_0x1f4438(0x2da)](_0x379f59,_0x109f27){const _0xf36b34=_0x1f4438;this[_0xf36b34(0x2d7)][_0xf36b34(0x1eb)](),this[_0xf36b34(0x2d7)][_0xf36b34(0x19e)](0x0),this[_0xf36b34(0x1ab)](0x4),this['_addDoneTask'](0x1);let _0x23aef7=await this['_exchangeService'][_0xf36b34(0x237)](_0x379f59,_0x109f27);if(!_0x23aef7){this[_0xf36b34(0x1a7)](),this[_0xf36b34(0x2d7)][_0xf36b34(0x19e)](0x2);return;}let _0x51acc5={'link':this['_getLinkByUnitId'](_0x23aef7,_0x109f27),'name':_0x379f59['name'],'type':_0x109f27};return this[_0xf36b34(0x2d7)][_0xf36b34(0x1aa)](_0x51acc5),this[_0xf36b34(0x256)](),this[_0xf36b34(0x2d7)][_0xf36b34(0x19e)](0x1),_0x23aef7;}[_0x1f4438(0x1c9)](){const _0x18d54e=_0x1f4438;return this[_0x18d54e(0x2c4)][_0x18d54e(0x2c5)](_0x1205ec['UNIVER_SHEET'])[_0x18d54e(0x1ad)]();}[_0x1f4438(0x1e0)](){const _0xbcd076=_0x1f4438;return this['_univerInstanceService'][_0xbcd076(0x2c5)](_0x1205ec[_0xbcd076(0x21f)])['getUnitId']();}[_0x1f4438(0x29a)](){const _0xd82903=_0x1f4438;return this['_univerInstanceService'][_0xd82903(0x2c5)](_0x1205ec[_0xd82903(0x200)])[_0xd82903(0x1ad)]();}[_0x1f4438(0x2ac)](_0x1cf403){return this['_getUnitNameByType'](_0x1cf403,_0x1205ec['UNIVER_SHEET']);}[_0x1f4438(0x20f)](_0x61c11b,_0x173b06){const _0x2ed269=_0x1f4438;var _0x432fa5;let _0x57014d=(_0x432fa5=this[_0x2ed269(0x2c4)][_0x2ed269(0x2c5)](_0x173b06))==null?void 0x0:_0x432fa5[_0x2ed269(0x275)](),_0x2212fd=_0x57014d==null?void 0x0:_0x57014d[_0x2ed269(0x2bc)];return typeof _0x2212fd=='string'&&_0x2212fd[_0x2ed269(0x2ca)]()?_0x2212fd:_0x61c11b[_0x2ed269(0x2bc)][_0x2ed269(0x199)]('.')[_0x2ed269(0x26a)]()||document[_0x2ed269(0x278)];}async[_0x1f4438(0x264)](){const _0x4d7a9b=_0x1f4438;return this[_0x4d7a9b(0x2c4)][_0x4d7a9b(0x2c5)](_0x1205ec[_0x4d7a9b(0x19b)])[_0x4d7a9b(0x275)]();}async[_0x1f4438(0x2be)](){const _0x3108d6=_0x1f4438;return this[_0x3108d6(0x2c4)][_0x3108d6(0x2c5)](_0x1205ec[_0x3108d6(0x21f)])[_0x3108d6(0x275)]();}async[_0x1f4438(0x267)](){const _0x157836=_0x1f4438;let _0x3de732=this[_0x157836(0x2c4)]['getCurrentUnitOfType'](_0x1205ec[_0x157836(0x200)]),_0x33d949=this[_0x157836(0x1c5)]['saveUnit'](_0x3de732['getUnitId']());return _0x33d949==null?_0x3de732[_0x157836(0x275)]():_0x33d949;}[_0x1f4438(0x1e1)](_0x39d919,_0xdbbd5c){const _0x427da8=_0x1f4438;let _0x1f8662=new URL(window['location'][_0x427da8(0x211)]);return _0x1f8662[_0x427da8(0x299)][_0x427da8(0x292)]('unit',_0x39d919),_0x1f8662[_0x427da8(0x299)][_0x427da8(0x292)](_0x427da8(0x21d),''+_0xdbbd5c),_0x1f8662[_0x427da8(0x28c)]();}[_0x1f4438(0x289)](_0xa9ae9){const _0x51c4d3=_0x1f4438;let _0x2a267c=this[_0x51c4d3(0x2c4)][_0x51c4d3(0x2c5)](_0x1205ec[_0x51c4d3(0x19b)])['getUnitId']();this['_univerInstanceService']['disposeUnit'](_0x2a267c),this[_0x51c4d3(0x2c4)][_0x51c4d3(0x277)](_0x1205ec[_0x51c4d3(0x19b)],_0xa9ae9);}[_0x1f4438(0x23e)](_0x31a2ec){const _0x49ac54=_0x1f4438;let _0x5f4281=this[_0x49ac54(0x2c4)][_0x49ac54(0x2c5)](_0x1205ec['UNIVER_SLIDE'])[_0x49ac54(0x1ad)]();this[_0x49ac54(0x2c4)]['disposeUnit'](_0x5f4281),this[_0x49ac54(0x2c4)]['createUnit'](_0x1205ec[_0x49ac54(0x200)],_0x31a2ec);}[_0x1f4438(0x2c9)](_0x1c5d50){const _0x1db6ca=_0x1f4438;if(_0x1c5d50){let {code:_0x2ff890}=_0x1c5d50;switch(_0x2ff890){case _0x1e5b34[_0x1db6ca(0x2a0)]:this[_0x1db6ca(0x2d4)]['show']({'type':_0x1367cd[_0x1db6ca(0x2cc)],'content':this[_0x1db6ca(0x291)]['t'](_0x1db6ca(0x1c3))});break;case _0x1e5b34[_0x1db6ca(0x186)]:this['_messageService'][_0x1db6ca(0x1eb)]({'type':_0x1367cd[_0x1db6ca(0x2cc)],'content':this[_0x1db6ca(0x291)]['t'](_0x1db6ca(0x29b))});break;default:this['_messageService'][_0x1db6ca(0x1eb)]({'type':_0x1367cd[_0x1db6ca(0x2cc)],'content':this[_0x1db6ca(0x291)]['t'](_0x1db6ca(0x1fd))});break;}return null;}return this[_0x1db6ca(0x2d4)][_0x1db6ca(0x1eb)]({'type':_0x1367cd[_0x1db6ca(0x2cc)],'content':this[_0x1db6ca(0x291)]['t']('exchange-client.networkError')}),null;}[_0x1f4438(0x183)](_0x2f5075){const _0x4a14d2=_0x1f4438;let _0x11573d='';switch(_0x2f5075){case _0x1367cd['Success']:_0x11573d=this[_0x4a14d2(0x291)]['t']('exchange-client.downloadSuccess');break;case _0x1367cd[_0x4a14d2(0x251)]:_0x11573d=this['_localeService']['t'](_0x4a14d2(0x1fa));break;default:break;}this['_messageService'][_0x4a14d2(0x1eb)]({'type':_0x2f5075,'content':_0x11573d});}[_0x1f4438(0x2b4)](_0x1cb006){const _0x5f35c2=_0x1f4438;let _0x5c2ac8='';switch(_0x1cb006){case _0x1367cd[_0x5f35c2(0x1a6)]:_0x5c2ac8=this[_0x5f35c2(0x291)]['t']('exchange-client.uploadSuccess');break;case _0x1367cd[_0x5f35c2(0x251)]:_0x5c2ac8=this[_0x5f35c2(0x291)]['t'](_0x5f35c2(0x23a));break;default:break;}this['_messageService'][_0x5f35c2(0x1eb)]({'type':_0x1cb006,'content':_0x5c2ac8});}[_0x1f4438(0x254)](){const _0x22f3e7=_0x1f4438;this[_0x22f3e7(0x1b6)][_0x22f3e7(0x1e3)]({'done':this[_0x22f3e7(0x210)],'count':this[_0x22f3e7(0x290)]});}[_0x1f4438(0x1ab)](_0x267d3e){const _0x90e0ee=_0x1f4438;this['_totalUploadTaskCount']+=_0x267d3e,this[_0x90e0ee(0x254)]();}[_0x1f4438(0x25e)](_0x48828b){const _0x115813=_0x1f4438;this[_0x115813(0x210)]+=_0x48828b,this[_0x115813(0x210)]=Math[_0x115813(0x1a3)](this[_0x115813(0x210)],this[_0x115813(0x290)]),this[_0x115813(0x254)]();}[_0x1f4438(0x256)](){const _0x390166=_0x1f4438;this['_doneUploadTaskCount']=this[_0x390166(0x290)],this[_0x390166(0x254)]();}['_clearProgress'](){const _0x1747f4=_0x1f4438;this['_doneUploadTaskCount']=0x0,this[_0x1747f4(0x290)]=0x0,this[_0x1747f4(0x254)]();}['_fileTypeError'](_0x468984,_0x3570c9){const _0x56c202=_0x1f4438;let _0x193cb7=_0x468984[0x0],_0xa605b4=_0x193cb7[_0x56c202(0x2bc)];return Ue(_0x193cb7)===_0x3570c9?!0x1:(this[_0x56c202(0x2d4)][_0x56c202(0x1eb)]({'type':_0x1367cd[_0x56c202(0x2cc)],'content':this[_0x56c202(0x291)]['t']('exchange-client.fileTypeError',_0xa605b4)}),!0x0);}[_0x1f4438(0x208)](){const _0x4861a4=_0x1f4438;return this[_0x4861a4(0x290)]!==0x0&&this[_0x4861a4(0x210)]!==this[_0x4861a4(0x290)];}};X=H([V(0x0,_0x385976(_0x4fcce2)),V(0x1,_0x246a95),V(0x2,_0x385976(_0x544c4f)),V(0x3,_0x385976(q)),V(0x4,_0x385976(k)),V(0x5,_0x569823),V(0x6,_0x385976(_0x20ebf2))],X);function ot(_0x2b408f){const _0x570c58=_0x1f4438;let {onClick:_0x26e808,children:_0x3f7f2a,className:_0xd0549d}=_0x2b408f;return _0x2ee3b3(_0x570c58(0x2d9),{'className':_0x34026c(_0x570c58(0x2a5),_0xd0549d),'type':_0x570c58(0x2d9),'onClick':_0x26e808,'children':_0x3f7f2a});}function Z(){const _0x374325=_0x1f4438;let _0x31eb1d=_0xd2c43d(Y),_0x3ab20a=_0xd2c43d(_0x544c4f);function _0x8b15bf(){_0x31eb1d['importFileToUnitIdByCurrentType']();}return _0x2ee3b3(ot,{'onClick':_0x8b15bf,'children':_0x3ab20a['t'](_0x374325(0x2b3))});}function st(){const _0x3af344=_0x1f4438;return _0x5dac55(_0x3af344(0x1f7),{'className':_0x3af344(0x1de),'children':[_0x2ee3b3(_0x3af344(0x1a8),{'className':'univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0xd2c43d(_0x544c4f)['t']('exchange-client.interrupt')}),_0x2ee3b3(Z,{})]});}function ct(_0x958592){const _0x21ee11=_0x1f4438;let {count:_0x55a55a}=_0x958592;return _0x5dac55(_0x21ee11(0x1f7),{'className':_0x21ee11(0x1b9),'children':[_0x2ee3b3('span',{'className':_0x21ee11(0x26f),'children':_0xd2c43d(_0x544c4f)['t'](_0x21ee11(0x270),''+_0x55a55a)}),_0x2ee3b3(Z,{})]});}function lt(){const _0x4b18ff=_0x1f4438;let _0x4fc90d=_0xd2c43d(Y),_0x54ee57=_0xd2c43d(_0x544c4f);function _0x4d2886(){_0x4fc90d['interrupt']();}return _0x2ee3b3(ot,{'onClick':_0x4d2886,'children':_0x54ee57['t'](_0x4b18ff(0x1ec))});}function ut(){const _0x49c5da=_0x1f4438;let {count:_0x591caa,done:_0x11aa97}=_0x23b6ff(_0xd2c43d(Y)[_0x49c5da(0x269)]),[_0x3dba78,_0x2ff17b]=_0x5dd614(_0x591caa>0x0?_0x11aa97/_0x591caa:0x0);return _0x46a984(()=>{_0x2ff17b(_0x591caa>0x0?_0x11aa97/_0x591caa:0x0);},[_0x591caa,_0x11aa97]),_0x2ee3b3(_0x49c5da(0x1f7),{'className':_0x49c5da(0x297),'children':_0x2ee3b3(_0x49c5da(0x1f7),{'className':_0x49c5da(0x1fb),'style':{'width':Math[_0x49c5da(0x25f)](_0x3dba78*0x64)+'%'}})});}function dt(){const _0x238411=_0x1f4438;return _0x5dac55(_0x238411(0x1f7),{'className':'univer-mt-5\x20univer-flex\x20univer-flex-col','children':[_0x2ee3b3(_0x238411(0x1a8),{'className':_0x238411(0x203),'children':_0xd2c43d(_0x544c4f)['t'](_0x238411(0x196))}),_0x2ee3b3(_0x238411(0x1f7),{'className':_0x238411(0x2aa),'children':_0x2ee3b3(ut,{})}),_0x2ee3b3(lt,{})]});}const ft={0x1:_0x2ee3b3(_0x1756d9,{'className':'univer-text-green-500'}),0x0:_0x2ee3b3(_0x2c35fc,{'className':_0x1f4438(0x23d)}),0x2:_0x2ee3b3(_0x19b7a,{'className':_0x1f4438(0x1b4)})};function pt(){const _0x57bcc9=_0x1f4438;let [_0x1863c7,_0x23c18b]=_0x5dd614(0x0),[_0x487b44,_0x53cb72]=_0x5dd614(!0x1),[_0x48c4ef,_0x4d2011]=_0x5dd614([]),_0x45a884=_0xd2c43d(k),_0x396f1f=_0xd2c43d(_0x544c4f);_0x46a984(()=>{const _0x122ae6=_0x7004;let _0x4c272f=_0x45a884[_0x122ae6(0x24a)][_0x122ae6(0x294)](_0xa6fb8f=>{_0x53cb72(_0xa6fb8f);}),_0x509747=_0x45a884[_0x122ae6(0x223)][_0x122ae6(0x294)](_0x334d90=>{_0x4d2011(_0x334d90);}),_0xd749a2=_0x45a884['state$']['subscribe'](_0x59b104=>{_0x23c18b(_0x59b104);});return()=>{const _0x35b748=_0x122ae6;_0x4c272f[_0x35b748(0x27f)](),_0x509747['unsubscribe'](),_0xd749a2[_0x35b748(0x27f)]();};},[]);function _0x2aaf09(){_0x53cb72(!0x1);}function _0x14f94d(_0x4da5aa){const _0x28a1ac=_0x7004;switch(_0x4da5aa){case 0x1:return _0x396f1f['t'](_0x28a1ac(0x1c6));case 0x0:return _0x396f1f['t'](_0x28a1ac(0x23a));case 0x2:return _0x396f1f['t'](_0x28a1ac(0x28b));default:return'';}}return _0x487b44&&_0x5dac55(_0x57bcc9(0x1f7),{'className':_0x57bcc9(0x271),'children':[_0x5dac55(_0x57bcc9(0x1f7),{'className':_0x57bcc9(0x22f),'children':[_0x5dac55(_0x57bcc9(0x1a8),{'className':_0x57bcc9(0x2bb),'children':[_0x2ee3b3(_0x57bcc9(0x1a8),{'className':_0x57bcc9(0x215),'children':ft[_0x1863c7]}),_0x2ee3b3(_0x57bcc9(0x1a8),{'className':_0x57bcc9(0x293),'children':_0x14f94d(_0x1863c7)})]}),_0x2ee3b3(_0x57bcc9(0x1a8),{'className':_0x57bcc9(0x1a0),'onClick':_0x2aaf09,'children':_0x2ee3b3(_0x417ce3,{})})]}),_0x5dac55(_0x57bcc9(0x1f7),{'children':[_0x1863c7===0x0&&_0x2ee3b3(dt,{}),_0x1863c7===0x2&&_0x2ee3b3(st,{}),_0x48c4ef[_0x57bcc9(0x262)]>0x0&&_0x2ee3b3(Ve,{'list':_0x48c4ef}),_0x1863c7===0x1&&_0x2ee3b3(ct,{'count':_0x48c4ef[_0x57bcc9(0x262)]})]})]});}function mt(){return _0x2ee3b3(pt,{});}let Q=class extends _0x2fe81a{constructor(_0x645e76,_0x31978f,_0x5d4ac6){const _0x28322a=_0x1f4438;super(),this['_injector']=_0x645e76,this[_0x28322a(0x2a4)]=_0x31978f,this[_0x28322a(0x27a)]=_0x5d4ac6,this[_0x28322a(0x24d)](),this[_0x28322a(0x2a2)]();}[_0x1f4438(0x24d)](){const _0x3f76c8=_0x1f4438;this[_0x3f76c8(0x2db)](this['_iconManager'][_0x3f76c8(0x1ee)]({'DirectExportIcon':_0x5b1712}));}['_registerComponents'](){const _0xcaead0=_0x1f4438;this[_0xcaead0(0x2db)](this[_0xcaead0(0x2a4)][_0xcaead0(0x26b)](_0x15dce3['CONTENT'],()=>_0xba57be(mt,this[_0xcaead0(0x1ba)])));}};Q=H([V(0x0,_0x385976(_0x10f435)),V(0x1,_0x47cd9f),V(0x2,_0x385976(_0x188500))],Q);let $=class extends _0x25589f{constructor(_0x1912cf=E,_0x25c94d,_0x4a0dfb){const _0x49a0ad=_0x1f4438;super(),this[_0x49a0ad(0x236)]=_0x1912cf,this[_0x49a0ad(0x1ba)]=_0x25c94d,this[_0x49a0ad(0x266)]=_0x4a0dfb;let {..._0xad65aa}=_0x4e12da({},E,this['_config']);this[_0x49a0ad(0x266)]['setConfig'](T,_0xad65aa);}[_0x1f4438(0x246)](){const _0x2a4ef7=_0x1f4438;_0x3cefd4(this[_0x2a4ef7(0x1ba)],[[Q],[Y,{'useClass':X}],[q,{'useClass':J}],[U,{'useClass':W}],[k,{'useClass':Be}]]);}[_0x1f4438(0x28d)](){_0x150101(this['_injector'],[[Q],[Y]]);}};O($,_0x1f4438(0x25a),_0x1f4438(0x184)),O($,'packageName',Ie),O($,_0x1f4438(0x28f),Le),$=H([_0x148dc9(_0x5376f4,_0x10fb1d),V(0x1,_0x385976(_0x10f435)),V(0x2,_0x3e68f8)],$);export{Y as IExchangeOperateService,q as IExchangeService,$ as UniverExchangeClientPlugin,L as downloadFile};
|
|
1
|
+
const _0x5c504e=_0x2440;(function(_0x6a6acc,_0x543972){const _0x76a3a4=_0x2440,_0x56fe4f=_0x6a6acc();while(!![]){try{const _0xd7b12d=-parseInt(_0x76a3a4(0x15b))/0x1*(-parseInt(_0x76a3a4(0x108))/0x2)+parseInt(_0x76a3a4(0x131))/0x3+parseInt(_0x76a3a4(0x162))/0x4+parseInt(_0x76a3a4(0x20f))/0x5+parseInt(_0x76a3a4(0xe2))/0x6+parseInt(_0x76a3a4(0xf9))/0x7+-parseInt(_0x76a3a4(0x1cc))/0x8;if(_0xd7b12d===_0x543972)break;else _0x56fe4f['push'](_0x56fe4f['shift']());}catch(_0x3e6a1d){_0x56fe4f['push'](_0x56fe4f['shift']());}}}(_0x6885,0x4be45));import{UniverLicensePlugin as _0x1101b8}from'@univerjs-pro/license';import{DependentOn as _0x28e539,Disposable as _0x550844,IConfigService as _0x36c765,ILogService as _0x540080,IResourceLoaderService as _0x18fe2c,IUniverInstanceService as _0x3eeec7,Inject as _0x35058d,Injector as _0xfe1cbc,LocaleService as _0x5a0b64,Plugin as _0x2c045d,UniverInstanceType as _0x24b8a6,createIdentifier as _0x1fb009,merge as _0x42532d,registerDependencies as _0x15c917,resolveWithBasePath as _0xaa9139,toDisposable as _0x3b4c3f,touchDependencies as _0x5c237b}from'@univerjs/core';import{HTTPResponseError as _0x2055c9,HTTPService as _0x12cdb1,UniverNetworkPlugin as _0x14b948}from'@univerjs/network';import{ClockIcon as _0x4d8d84,CloseIcon as _0x5dbead,DirectExportIcon as _0x6672a7,DocsMultiIcon as _0x5bf916,ErrorIcon as _0x398e7c,ShareRangeIcon as _0x5aa714,SheetsMultiIcon as _0x1b8f90,SlidesMultiIcon as _0x125d87,SuccessIcon as _0x467180}from'@univerjs/icons';import{BuiltInUIPart as _0x4f3b08,IMessageService as _0x1544db,IUIPartsService as _0x2537d8,IconManager as _0x14a8dd,connectInjector as _0x32b9d6,useDependency as _0x4e7708,useObservable as _0xd11166}from'@univerjs/ui';import{BehaviorSubject as _0x57e22a,Subject as _0x439300}from'rxjs';import{MessageType as _0x47b0d2,Tooltip as _0x12ed84,clsx as _0x40cc83,scrollbarClassName as _0x1281d4}from'@univerjs/design';function _0x6885(){const _0x5949b0=['Get\x20outputType\x20error','_exportBySnapshot','_config','1.0.0-alpha.5','Content-Type','onReady','type','asObservable','_getExportURL','taskID','isArray','_visible$','_getUnitName','code','univer-text-red-500','toLowerCase','object','_resourceLoaderService','_upload','3413725OGGKSt','min','_getUploadFileURL','getUnitType','.json','_getDownloadEndpointURL','importFileToJson','/universer-api/stream/file/upload','replace','Error\x20fetching\x20file\x20from\x20URL:','upload\x20request\x20failed','/universer-api/exchange/{type}/export','downloadEndpointUrl','_refreshSlide','maxTimeoutTime','1272PgxCBM','getCurrentUnitOfType','exportXLSXBySnapshot','UNIVER_PROJECT','next','_getUnitIDDoc','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','button','dispose','minSheetRowCount','_signUrl','getUnitId','transformSnapshotJsonToWorkbookData','download','univer-text-sm\x20univer-text-gray-500','?size=','pop','pathname','_getUnitIDSlide','export\x20error','getTaskServerUrl','Error','importFileToUnitId','_httpService','has','addEventListener','accept','resolve','_list','buffer','_getUnitID','exchange-client.uploadAgain','registerComponent','FileId','includes','application/pdf','upload\x20failed:\x20FileId\x20is\x20empty','_doneUploadTaskCount','_exchangeService','exchange-client.uploadSuccess','univer-flex','1666332PxQWoX','sign\x20url\x20error','statusText','disposeWithMe','createUnit','importFileToUnitIdByCurrentType','Failed\x20to\x20get\x20text\x20from\x20url','content-disposition','_getUnitSlideJson','requestState$','input','workbook.json','_getSignURL','{type}','fetchMissingChangesets','univer-text-green-500','currentTarget','CONNECTOR_DATA_TOO_LARGE','importXLSXToUnitId','/universer-api/exchange/task/{taskID}','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','snapshot','importXLSXToSnapshot','exchange-client.downloading','success','_getUnitJson','Warning','Failed\x20to\x20get\x20fileID\x20from\x20task','_taskInterrupted','iterator','/universer-api/exchange/{type}/import','interruptImportTask','symbol','keys','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','_buildHttpErrorMessage','revokeObjectURL','univer-flex\x20univer-size-6\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-p-0\x20univer-text-base\x20univer-text-gray-600\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-gray-200\x20dark:hover:!univer-bg-gray-600','searchParams','upload\x20failed:\x20missing\x20FileId\x20in\x20response','trim','_registerIcons','47HkvAZh','getConfig','_buildProtocolErrorMessage','_localeService','number','application/vnd.openxmlformats-officedocument.wordprocessingml.document','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-white','1762420ftItsS','fileID','_totalUploadTaskCount','Info','univer-pl-2\x20univer-pr-4','exportXLSXByUnitId','pluginName','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','outputType','exchange-client.downloadSuccess','univer-pro.exchange-client.request.service','match','map','click','exchange-client.internalError','transformWorkbookDataToSnapshotJson','UNIVER_EXCHANGE_CLIENT_PLUGIN','Success','file','importWorkbookDataToUnitId','split','upload','files','INTERNAL_ERROR','set','url','prototype','Method\x20not\x20implemented.','onStarting','disableCellImageConversion','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','_addDoneTask','saveChangeset','Failed\x20to\x20parse\x20json','length','_getMinSheetRowCount','sheets','UNRECOGNIZED','Failed\x20to\x20get\x20unitID\x20from\x20task','interrupt','exchange-client.config','signUrl','application/vnd.openxmlformats-officedocument.spreadsheetml.template','catch','_addTotalCount','downloadFile','univer-flex\x20univer-h-5\x20univer-text-xl','_uploadNotificationService','complete','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','_state$','_showDownloadMessage','name','Failed\x20to\x20transform\x20snapshot\x20to\x20string','univer-fixed\x20univer-bottom-12\x20univer-right-3\x20univer-z-[1000]\x20univer-box-border\x20univer-flex\x20univer-w-[372px]\x20univer-flex-col\x20univer-rounded-md\x20univer-bg-white\x20univer-px-3\x20univer-pb-4\x20univer-pt-5\x20univer-shadow-md','_uploadTaskNotDone','importDOCXToUnitId','_getLinkByUnitId','_getUnitDocJson','decorate','sheetBlocks','_import','_importTaskId','message','_showNetworkError','_configService','exchange-client.uploading','_registerUIParts','setTaskInterrupted','univer-h-6\x20univer-text-2xl','noreferrer','originalMeta','link','exchange-client.wait','getSnapshot','UNIVER_SHEET','uploadFileToUnitId','string','_sheetBlockCache','headers','text','exchange-client.cancel','exchange-client.networkError','origin','_requestService','_export','UNIVER_PDF','block\x20is\x20required','file.json','{fileID}','signUrlServerUrl','_requestState$','removeChild','CONTENT','rev','unitID','show','getSheetBlock','_iconManager','HttpImport','importServerUrl','pptx','call','_importFileToUnitId','importPPTXToUnitId','size','16332144zKtgoF','filter','_clearProgress','href','multiple','_getImportURL','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_showUploadMessage','blockID','exchange-client.tooLarge','export','univer-flex\x20univer-size-6\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-text-gray-500\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-bg-gray-600','_fileTypeError','unshift','_blank','updateState','univer-pro.exchange-client.upload-notification.service','exportServerUrl','join','exportDOCXByUnitId','_importToJson','saveSheetBlock','_uiPartsService','xlsx','options','getTextFromUrl','application/octet-stream','_list$','data','copyFileMeta','_messageService','doc','pushLink','disposeUnit','div','pdf','error','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','createElement','values','exportPPTXBySnapshot','_getDisableCellImageConversion','univer-mt-5\x20univer-flex\x20univer-flex-col','{taskID}','hide',':\x20HTTP\x20','&source=','post','xltx','exchange-client.uploadSuccessTip','_emitProgress','importPPTXToSnapshot','encode','decode','UNIVER_DOC','import\x20error','status','docx','list$','_getUnitNameByType','getUnitOnRev','uploadFileServerUrl','import','state$','file.','floor','forEach','2811160WOJsZr','getTask','_univerInstanceService','_injector','_getTaskURL','UNDEFINED','application/vnd.ms-excel.sheet.macroEnabled.12','_logService','exportDOCXBySnapshot','clearTaskInterrupted','body','defineProperty','exportPPTXByUnitId','getLatestCsReqIdBySid','createObjectURL','_progress$','UNIVER_SLIDE','stringify','_completeProgress','_extractErrorDetail','_getMinSheetColumnCount','application/json','span','saveUnit','univer-flex\x20univer-justify-between\x20univer-rounded\x20univer-border-none\x20univer-bg-transparent\x20univer-px-2\x20univer-py-1\x20univer-text-gray-900\x20univer-no-underline\x20univer-outline-none\x20univer-transition-colors\x20hover:univer-bg-gray-200\x20dark:!univer-text-white\x20dark:hover:!univer-bg-gray-600','importDOCXToSnapshot','exchange-client.interrupt','visible$','subscribe','display','univer-h-7\x20univer-cursor-pointer\x20univer-select-none\x20univer-rounded-md\x20univer-border-0\x20univer-border-transparent\x20univer-bg-transparent\x20univer-px-2\x20univer-py-0\x20univer-text-sm\x20univer-text-primary-600\x20univer-transition-all\x20univer-duration-150\x20hover:univer-bg-primary-50','_getMaxPollingTime','get','parse','slide','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','UNIVER_UNKNOWN','Error\x20getting\x20file\x20name\x20from\x20URL:','univer-text-blue-500','_getIgnoreTableExport','1659138WLLiSi','jsonID','function','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x6885=function(){return _0x5949b0;};return _0x6885();}import{jsx as _0x3a61b7,jsxs as _0x39922c}from'react/jsx-runtime';import{ErrorCode as _0x59538c,FileSource as _0x4a60ee}from'@univerjs/protocol';import{b64DecodeUnicode as _0x2406db,b64EncodeUnicode as _0x3782a9,getSheetBlocksFromSnapshot as _0x2b34e5,textDecoder as _0x19c752,textEncoder as _0x533e4e,transformDocumentDataToSnapshot as _0x175492,transformSlideDataToSnapshot as _0x58a5e8,transformSnapshotToDocumentData as _0x7fd94e,transformSnapshotToSlideData as _0x1e9415,transformSnapshotToWorkbookData as _0x4bfcd1,transformWorkbookDataToSnapshot as _0x4dcdaa}from'@univerjs-pro/collaboration';import{deflateSync as _0x17f531}from'fflate';var Pe='@univerjs-pro/exchange-client',Fe=_0x5c504e(0xe9);const T=_0x5c504e(0x18a),Ie={};function E(_0x41f360,_0x1054fd){return function(_0x272532,_0xe7b735){_0x1054fd(_0x272532,_0xe7b735,_0x41f360);};}function D(_0xceef7f,_0x4f9001,_0x12a860,_0xbee424){const _0x41c636=_0x5c504e;var _0x366955=arguments['length'],_0x5d7d39=_0x366955<0x3?_0x4f9001:_0xbee424===null?_0xbee424=Object['getOwnPropertyDescriptor'](_0x4f9001,_0x12a860):_0xbee424,_0x5d8bfe;if(typeof Reflect=='object'&&typeof Reflect[_0x41c636(0x19d)]==_0x41c636(0xe4))_0x5d7d39=Reflect[_0x41c636(0x19d)](_0xceef7f,_0x4f9001,_0x12a860,_0xbee424);else{for(var _0x2136df=_0xceef7f[_0x41c636(0x184)]-0x1;_0x2136df>=0x0;_0x2136df--)(_0x5d8bfe=_0xceef7f[_0x2136df])&&(_0x5d7d39=(_0x366955<0x3?_0x5d8bfe(_0x5d7d39):_0x366955>0x3?_0x5d8bfe(_0x4f9001,_0x12a860,_0x5d7d39):_0x5d8bfe(_0x4f9001,_0x12a860))||_0x5d7d39);}return _0x366955>0x3&&_0x5d7d39&&Object[_0x41c636(0x21a)](_0x4f9001,_0x12a860,_0x5d7d39),_0x5d7d39;}let O=class extends _0x550844{constructor(_0x254182){const _0x352f42=_0x5c504e;super(),this[_0x352f42(0x1c4)]=_0x254182,this[_0x352f42(0x15a)]();}[_0x5c504e(0x15a)](){const _0x110ebf=_0x5c504e;this[_0x110ebf(0x134)](this['_iconManager']['register']({'DirectExportIcon':_0x6672a7}));}};O=D([E(0x0,_0x35058d(_0x14a8dd))],O);function k(_0x529459){'@babel/helpers - typeof';const _0x5a305a=_0x5c504e;return k=typeof Symbol==_0x5a305a(0xe4)&&typeof Symbol[_0x5a305a(0x14e)]==_0x5a305a(0x151)?function(_0xadb894){return typeof _0xadb894;}:function(_0x206ed1){const _0x3ce81e=_0x5a305a;return _0x206ed1&&typeof Symbol==_0x3ce81e(0xe4)&&_0x206ed1['constructor']===Symbol&&_0x206ed1!==Symbol[_0x3ce81e(0x17c)]?_0x3ce81e(0x151):typeof _0x206ed1;},k(_0x529459);}function Le(_0x5a5055,_0x295adb){const _0x4ddb9c=_0x5c504e;if(k(_0x5a5055)!=_0x4ddb9c(0xf6)||!_0x5a5055)return _0x5a5055;var _0x4384da=_0x5a5055[Symbol['toPrimitive']];if(_0x4384da!==void 0x0){var _0x3d899d=_0x4384da[_0x4ddb9c(0x1c8)](_0x5a5055,_0x295adb||'default');if(k(_0x3d899d)!=_0x4ddb9c(0xf6))return _0x3d899d;throw TypeError(_0x4ddb9c(0xe5));}return(_0x295adb===_0x4ddb9c(0x1af)?String:Number)(_0x5a5055);}function Re(_0x43cdff){const _0x4971cb=_0x5c504e;var _0x3b4e62=Le(_0x43cdff,_0x4971cb(0x1af));return k(_0x3b4e62)=='symbol'?_0x3b4e62:_0x3b4e62+'';}function A(_0x36ea72,_0x24d76f,_0x300a82){const _0x48334f=_0x5c504e;return(_0x24d76f=Re(_0x24d76f))in _0x36ea72?Object[_0x48334f(0x21a)](_0x36ea72,_0x24d76f,{'value':_0x300a82,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36ea72[_0x24d76f]=_0x300a82,_0x36ea72;}const j=_0x1fb009(_0x5c504e(0x1dc));var ze=class extends _0x550844{constructor(){const _0x586790=_0x5c504e;super(),A(this,_0x586790(0xf1),new _0x439300()),A(this,_0x586790(0x194),new _0x439300()),A(this,_0x586790(0x1e7),new _0x439300()),A(this,_0x586790(0xd5),this[_0x586790(0xf1)][_0x586790(0xed)]()),A(this,_0x586790(0x20b),this[_0x586790(0x194)][_0x586790(0xed)]()),A(this,'list$',this[_0x586790(0x1e7)][_0x586790(0xed)]()),A(this,_0x586790(0x124),[]);}[_0x5c504e(0x110)](){const _0x57cc3f=_0x5c504e;super[_0x57cc3f(0x110)](),this[_0x57cc3f(0xf1)][_0x57cc3f(0x192)](),this['_state$'][_0x57cc3f(0x192)](),this['_list$']['complete']();}[_0x5c504e(0x1c2)](){const _0x220d96=_0x5c504e;this[_0x220d96(0xf1)][_0x220d96(0x10c)](!0x0);}[_0x5c504e(0x1f8)](){const _0x11f340=_0x5c504e;this[_0x11f340(0xf1)][_0x11f340(0x10c)](!0x1);}[_0x5c504e(0x1db)](_0x47d8b7){const _0x526435=_0x5c504e;this[_0x526435(0x194)][_0x526435(0x10c)](_0x47d8b7);}[_0x5c504e(0x1ec)](_0x486e11){const _0x23390a=_0x5c504e;this[_0x23390a(0x124)][_0x23390a(0x1d9)](_0x486e11),this['_list$'][_0x23390a(0x10c)](this[_0x23390a(0x124)]);}};function Be(_0x54521b){const _0xb88ac2=_0x5c504e;let {list:_0x33b49e}=_0x54521b;function _0x21d522(_0x8cf1c9){switch(_0x8cf1c9){case 0x1:return _0x3a61b7(_0x5bf916,{});case 0x2:return _0x3a61b7(_0x1b8f90,{});case 0x3:return _0x3a61b7(_0x125d87,{});default:return null;}}return _0x3a61b7(_0xb88ac2(0x1ee),{'className':_0x40cc83(_0xb88ac2(0x1f1),_0x1281d4),'children':_0x3a61b7('ul',{'className':_0xb88ac2(0x10e),'children':_0x33b49e[_0xb88ac2(0x16e)]((_0x43cfcc,_0x2d78bd)=>_0x3a61b7('li',{'children':_0x39922c('a',{'className':_0xb88ac2(0x227),'href':_0x43cfcc[_0xb88ac2(0x1aa)],'target':_0xb88ac2(0x1da),'rel':_0xb88ac2(0x1a8),'children':[_0x39922c(_0xb88ac2(0x225),{'className':_0xb88ac2(0x1d2),'children':[_0x3a61b7(_0xb88ac2(0x225),{'className':_0xb88ac2(0x190),'children':_0x21d522(_0x43cfcc[_0xb88ac2(0xec)])}),_0x3a61b7(_0x12ed84,{'showIfEllipsis':!0x0,'title':_0x43cfcc['name'],'asChild':!0x0,'children':_0x3a61b7(_0xb88ac2(0x225),{'className':_0xb88ac2(0x180),'children':_0x43cfcc[_0xb88ac2(0x196)]})})]}),_0x3a61b7(_0xb88ac2(0x225),{'className':_0xb88ac2(0x156),'children':_0x3a61b7(_0x5aa714,{})})]})},_0x2d78bd))})});}const M=_0x5c504e(0x160),N=_0x5c504e(0x169),P=_0x5c504e(0x215),F=_0x5c504e(0x18c),I='application/vnd.openxmlformats-officedocument.presentationml.presentation',L=_0x5c504e(0x12b),R={[_0x24b8a6['UNIVER_UNKNOWN']]:[''],[_0x24b8a6[_0x5c504e(0x202)]]:[M],[_0x24b8a6[_0x5c504e(0x1ad)]]:[N,P,F],[_0x24b8a6[_0x5c504e(0x21f)]]:[I],[_0x24b8a6['UNIVER_BASE']]:[''],[_0x24b8a6['UNIVER_BOARD']]:[''],[_0x24b8a6[_0x5c504e(0x10b)]]:[''],[_0x24b8a6[_0x5c504e(0x1b8)]]:[L],[_0x24b8a6[_0x5c504e(0x187)]]:['']},z={[M]:'docx',[N]:_0x5c504e(0x1e3),[P]:'xlsm',[F]:_0x5c504e(0x1fc),[I]:_0x5c504e(0x1c7),[L]:_0x5c504e(0x1ef)};function B(_0x4eab1c,_0x303738,_0x3ce899){const _0x169ddc=_0x5c504e;let _0x5d25a2=document['createElement']('a');_0x5d25a2[_0x169ddc(0x1cf)]=_0x4eab1c,_0x5d25a2['style'][_0x169ddc(0xd7)]='none',_0x5d25a2[_0x169ddc(0x115)]=_0x303738+'.'+_0x3ce899,document[_0x169ddc(0x219)]['appendChild'](_0x5d25a2),_0x5d25a2[_0x169ddc(0x16f)](),document[_0x169ddc(0x219)][_0x169ddc(0x1be)](_0x5d25a2);}function Ve(_0x186fc3,_0x1ba495,_0x5665cc){const _0x1c0c3d=_0x5c504e;let _0xa2099d=URL[_0x1c0c3d(0x21d)](_0x186fc3);B(_0xa2099d,_0x1ba495,_0x5665cc),URL[_0x1c0c3d(0x155)](_0xa2099d);}function He(_0x17b1d2){const _0x12b6c7=_0x5c504e;let _0x20bb75=_0x17b1d2['name'][_0x12b6c7(0x176)]('.')['pop']();if(!_0x20bb75)return _0x24b8a6['UNIVER_UNKNOWN'];let _0x26b3ca=Ue(),_0x497de=_0x24b8a6[_0x12b6c7(0xde)];return _0x26b3ca['some'](_0x4d4be1=>We(_0x20bb75,_0x4d4be1)?(_0x497de=_0x4d4be1,!0x0):!0x1),_0x497de;}function Ue(){const _0x2cc99b=_0x5c504e;return Object[_0x2cc99b(0x1f3)](_0x24b8a6)[_0x2cc99b(0x1cd)](_0x31f0fb=>typeof _0x31f0fb==_0x2cc99b(0x15f));}function We(_0x18c371,_0x422cd8){const _0xc6dce8=_0x5c504e;var _0x4eff3e;return((_0x4eff3e=R[_0x422cd8])==null?[]:_0x4eff3e)['map'](_0x44b7cd=>(z[_0x44b7cd]||'')[_0xc6dce8(0xf5)]())[_0xc6dce8(0x12a)](_0x18c371['toLowerCase']());}function V(_0x39d788,_0x298e20=!0x1){const _0x813e6=_0x5c504e;let _0xc49114=_0x39d788[_0x813e6(0x16e)](_0xce3d15=>{var _0x434661;return(_0x434661=R[_0xce3d15])==null?[]:_0x434661;})[_0x813e6(0x1de)](',');return new Promise((_0x3e405a,_0x1eaeae)=>{const _0x34eeec=_0x813e6;let _0x3cca9d=document[_0x34eeec(0x1f2)](_0x34eeec(0x13b));_0x3cca9d['type']=_0x34eeec(0x174),_0x3cca9d[_0x34eeec(0x122)]=_0xc49114,_0x3cca9d[_0x34eeec(0x1d0)]=_0x298e20,_0x3cca9d[_0x34eeec(0x121)]('change',_0x5e6d50=>{const _0x704e70=_0x34eeec;let _0x48b04c=_0x5e6d50[_0x704e70(0x141)];if(!_0x48b04c[_0x704e70(0x178)]||_0x48b04c[_0x704e70(0x178)]['length']===0x0)throw _0x1eaeae(null),Error('No\x20file\x20selected');_0x3e405a(_0x48b04c[_0x704e70(0x178)]);}),_0x3cca9d['click']();});}async function H(_0x28ce8f,_0x3c47b4){const _0x45578a=_0x5c504e;try{var _0x7e6f3e,_0x1573d4,_0x33903f;let _0x222681=await _0x3c47b4['get'](_0x28ce8f,{'responseType':'blob'}),_0xc69b62=_0x222681[_0x45578a(0x219)],_0x5d2740=(_0x7e6f3e=(_0x1573d4=_0x222681['headers'][_0x45578a(0xda)](_0x45578a(0xea)))==null?void 0x0:_0x1573d4['join'](',\x20'))==null?_0x45578a(0x1e6):_0x7e6f3e,_0x52a81a=_0x45578a(0x20c)+(z[_0x5d2740]||_0x45578a(0x1e3)),_0x3b94b9=(_0x33903f=_0x222681[_0x45578a(0x1b1)]['get'](_0x45578a(0x138)))==null?void 0x0:_0x33903f[_0x45578a(0x1de)](',\x20');if(_0x3b94b9){let _0x78e95f=_0x3b94b9[_0x45578a(0x16d)](/filename=(.+)/);_0x78e95f&&_0x78e95f[0x1]&&(_0x52a81a=_0x78e95f[0x1]);}else _0x52a81a=Ge(_0x28ce8f)||_0x52a81a;return new File([_0xc69b62],_0x52a81a,{'type':_0x5d2740});}catch(_0x2eb460){console[_0x45578a(0x1f0)](_0x45578a(0x102),_0x2eb460);return;}}function Ge(_0x1cd238){const _0x4bbd5b=_0x5c504e;try{return new URL(_0x1cd238)[_0x4bbd5b(0x119)][_0x4bbd5b(0x176)]('/')[_0x4bbd5b(0x118)]();}catch(_0x3dc4d3){console[_0x4bbd5b(0x1f0)](_0x4bbd5b(0xdf),_0x3dc4d3);return;}}function Ke(_0x4fed4c){const _0x238f37=_0x5c504e;let _0x36da40=new Blob([_0x4fed4c[_0x238f37(0x125)]],{'type':'application/json'});return new File([_0x36da40],_0x238f37(0x1ba));}function U(_0x54c087,_0x4ae60a){const _0x9b29e9=_0x5c504e;return _0x54c087[_0x9b29e9(0x101)](_0x9b29e9(0x13e),_0x4ae60a);}function qe(_0x3280e0,_0xd99359){const _0x4fee1c=_0x5c504e;return _0x3280e0[_0x4fee1c(0x101)](_0x4fee1c(0x1f7),_0xd99359);}function Je(_0x433ce9,_0x48d487){const _0x98ac28=_0x5c504e;return _0x433ce9[_0x98ac28(0x101)](_0x98ac28(0x1bb),_0x48d487);}const W=_0x1fb009(_0x5c504e(0x16c));let G=class{constructor(_0x46745e,_0x5e4bd6){const _0x32ec4f=_0x5c504e;this[_0x32ec4f(0x1a3)]=_0x46745e,this[_0x32ec4f(0x11f)]=_0x5e4bd6,A(this,_0x32ec4f(0x14d),new Set());}['dispose'](){}[_0x5c504e(0x1a6)](_0x3e41aa){this['_taskInterrupted']['add'](_0x3e41aa);}[_0x5c504e(0x218)](){const _0x35fc7a=_0x5c504e;this[_0x35fc7a(0x14d)]['clear']();}async[_0x5c504e(0x177)](_0x1d1a06,_0x205d03=0x0,_0x1fa5c2=!0x1){const _0x2c41ad=_0x5c504e;if(typeof _0x1d1a06==_0x2c41ad(0x1af)){let _0x308a64=await H(_0x1d1a06,this[_0x2c41ad(0x11f)]);if(!_0x308a64)throw Error(_0x2c41ad(0x193));_0x1d1a06=_0x308a64;}_0x205d03=_0x205d03||_0x1d1a06[_0x2c41ad(0x1cb)];let _0x4a3215=new FormData();_0x4a3215['append'](_0x2c41ad(0x174),_0x1d1a06);try{let _0x34aac5=this[_0x2c41ad(0xfb)]()+_0x2c41ad(0x117)+_0x205d03+_0x2c41ad(0x1fa)+_0x4a60ee[_0x2c41ad(0x1c5)]+'&flate='+_0x1fa5c2,_0x4deb11={'body':_0x4a3215},_0x13cbc9=(await this[_0x2c41ad(0x11f)][_0x2c41ad(0x1fb)](_0x34aac5,_0x4deb11))[_0x2c41ad(0x219)];if(_0x13cbc9[_0x2c41ad(0x1f0)]&&_0x13cbc9['error']['code']!==_0x59538c['OK'])throw Error(this[_0x2c41ad(0x15d)](_0x2c41ad(0x103),_0x13cbc9[_0x2c41ad(0x1f0)]));return _0x13cbc9;}catch(_0x2ed40a){throw _0x2ed40a instanceof Error?_0x2ed40a:Error(this['_buildHttpErrorMessage']('upload\x20request\x20failed',_0x2ed40a));}}async['import'](_0x776af9){const _0x50f876=_0x5c504e;let {fileID:_0x1ad359,type:_0x707bed,outputType:_0x241de7,minSheetColumnCount:_0x42325f,minSheetRowCount:_0x52edfd}=_0x776af9;try{let _0xfe7731=U(this['_getImportURL'](),''+_0x707bed),_0x34298d={'body':{'fileID':_0x1ad359,'outputType':_0x241de7,'minSheetColumnCount':_0x42325f,'minSheetRowCount':_0x52edfd}},_0x388c6a=(await this[_0x50f876(0x11f)]['post'](_0xfe7731,_0x34298d))[_0x50f876(0x219)];return _0x388c6a[_0x50f876(0x1f0)]&&_0x388c6a['error'][_0x50f876(0xf3)]!==_0x59538c['OK']?void 0x0:_0x388c6a;}catch{return;}}async[_0x5c504e(0x1d6)](_0x58148d){const _0x3ba1da=_0x5c504e;let {unitID:_0x54eaff,jsonID:_0x3a9563,type:_0x3d7be0,useImageUrl:_0x309cb8,ignoreTableExport:_0x39ed08}=_0x58148d;try{let _0x18413f=U(this['_getExportURL'](),''+_0x3d7be0),_0x11afeb={'body':{'unitID':_0x54eaff,'jsonID':_0x3a9563,'type':_0x3d7be0,'useImageUrl':_0x309cb8,'ignoreTableExport':_0x39ed08}},_0x13e5da=(await this[_0x3ba1da(0x11f)][_0x3ba1da(0x1fb)](_0x18413f,_0x11afeb))[_0x3ba1da(0x219)];return _0x13e5da[_0x3ba1da(0x1f0)]&&_0x13e5da['error'][_0x3ba1da(0xf3)]!==_0x59538c['OK']?void 0x0:_0x13e5da;}catch{return;}}async['getTask'](_0x276769){return new Promise((_0x17ad10,_0x11c572)=>{const _0x11ee45=_0x2440;try{let _0x51b2bb=0x0,_0x11223c=qe(this[_0x11ee45(0x213)](),''+_0x276769),_0x5e2e81=this[_0x11ee45(0xd9)](),_0x498463=async()=>{const _0x410f21=_0x11ee45;if(this[_0x410f21(0x14d)][_0x410f21(0x120)](_0x276769))return;let _0x354087=(await this[_0x410f21(0x11f)][_0x410f21(0xda)](_0x11223c))[_0x410f21(0x219)];if(_0x354087[_0x410f21(0x1f0)]&&_0x354087[_0x410f21(0x1f0)][_0x410f21(0xf3)]===_0x59538c['OK']){if(_0x354087[_0x410f21(0x204)]==='done')_0x17ad10(_0x354087);else{if(_0x354087['status']==='pending'){let _0xe780e6=0x3e8;if(_0x51b2bb>=_0x5e2e81){_0x11c572(_0x354087);return;}else _0x51b2bb>=0x7530&&(_0xe780e6=0x1388);_0x51b2bb+=_0xe780e6,setTimeout(_0x498463,_0xe780e6);}else _0x11c572(_0x354087);}}else _0x11c572(_0x354087);};_0x498463();}catch(_0x3d6479){_0x11c572(_0x3d6479 instanceof Error?_0x3d6479:Error(String(_0x3d6479)));}});}async[_0x5c504e(0x18b)](_0x1ba1c1){const _0x49e945=_0x5c504e;try{let _0x358658=Je(this[_0x49e945(0x13d)](),''+_0x1ba1c1);return(await this[_0x49e945(0x11f)]['get'](_0x358658))[_0x49e945(0x219)];}catch{return;}}async[_0x5c504e(0x1e5)](_0x52c32c){const _0xe175cf=_0x5c504e;try{return(await this[_0xe175cf(0x11f)][_0xe175cf(0xda)](_0x52c32c,{'responseType':_0xe175cf(0x1b2)}))['body'];}catch{return;}}['_buildProtocolErrorMessage'](_0x240a29,_0x314b24){let _0x9ab5bb=this['_extractErrorDetail'](_0x314b24);return _0x9ab5bb?_0x240a29+':\x20'+_0x9ab5bb:_0x240a29;}[_0x5c504e(0x154)](_0x46d8da,_0xf98616){const _0x1c74eb=_0x5c504e;if(_0xf98616 instanceof _0x2055c9){let _0x15d79a=typeof _0xf98616[_0x1c74eb(0x204)]=='number'?''+_0xf98616[_0x1c74eb(0x204)]+(_0xf98616[_0x1c74eb(0x133)]?'\x20'+_0xf98616[_0x1c74eb(0x133)]:''):void 0x0,_0x171949=this['_extractErrorDetail'](_0xf98616['error']);return _0x15d79a&&_0x171949?_0x46d8da+_0x1c74eb(0x1f9)+_0x15d79a+'\x20-\x20'+_0x171949:_0x15d79a?_0x46d8da+_0x1c74eb(0x1f9)+_0x15d79a:_0x171949?_0x46d8da+':\x20'+_0x171949:_0x46d8da;}let _0x220741=this[_0x1c74eb(0x222)](_0xf98616);return _0x220741?_0x46d8da+':\x20'+_0x220741:_0x46d8da;}[_0x5c504e(0x222)](_0x1bd3d8){const _0x5b36e2=_0x5c504e;if(typeof _0x1bd3d8==_0x5b36e2(0x1af)){let _0x16b49c=_0x1bd3d8[_0x5b36e2(0x159)]();return _0x16b49c[_0x5b36e2(0x184)]>0x0?_0x16b49c:void 0x0;}if(_0x1bd3d8 instanceof Error)return this[_0x5b36e2(0x222)](_0x1bd3d8['message']);if(!_0x1bd3d8||typeof _0x1bd3d8!='object'||Array[_0x5b36e2(0xf0)](_0x1bd3d8))return;let _0x397038=_0x1bd3d8,_0x554b2c=this[_0x5b36e2(0x222)](_0x397038[_0x5b36e2(0x1a1)]);if(_0x554b2c)return _0x554b2c;if(_0x397038[_0x5b36e2(0x1f0)]&&typeof _0x397038['error']=='object'&&!Array[_0x5b36e2(0xf0)](_0x397038['error'])){let _0xb9bd99=this[_0x5b36e2(0x222)](_0x397038[_0x5b36e2(0x1f0)]);if(_0xb9bd99)return _0xb9bd99;}}[_0x5c504e(0xfb)](){const _0x3e0872=_0x5c504e;var _0x327e93;let _0x585c12=this[_0x3e0872(0x1a3)]['getConfig'](T);return(_0x327e93=_0x585c12==null?void 0x0:_0x585c12[_0x3e0872(0x209)])==null?_0x3e0872(0x100):_0x327e93;}[_0x5c504e(0x1d1)](){const _0xdff751=_0x5c504e;var _0x4ff266;let _0x1e90cb=this['_configService']['getConfig'](T);return(_0x4ff266=_0x1e90cb==null?void 0x0:_0x1e90cb[_0xdff751(0x1c6)])==null?_0xdff751(0x14f):_0x4ff266;}[_0x5c504e(0xee)](){const _0x3312ea=_0x5c504e;var _0x3070ad;let _0x290fa2=this[_0x3312ea(0x1a3)][_0x3312ea(0x15c)](T);return(_0x3070ad=_0x290fa2==null?void 0x0:_0x290fa2[_0x3312ea(0x1dd)])==null?_0x3312ea(0x104):_0x3070ad;}['_getTaskURL'](){const _0x477331=_0x5c504e;var _0x456cd9;let _0x27d2ae=this['_configService'][_0x477331(0x15c)](T);return(_0x456cd9=_0x27d2ae==null?void 0x0:_0x27d2ae[_0x477331(0x11c)])==null?_0x477331(0x144):_0x456cd9;}['_getSignURL'](){const _0x1119d7=_0x5c504e;var _0x265c6d;let _0x1943cb=this['_configService'][_0x1119d7(0x15c)](T);return(_0x265c6d=_0x1943cb==null?void 0x0:_0x1943cb[_0x1119d7(0x1bc)])==null?'/universer-api/file/{fileID}/sign-url':_0x265c6d;}[_0x5c504e(0xd9)](){const _0x1105bc=_0x5c504e;var _0x4ac0d4;let _0x35bb85=this[_0x1105bc(0x1a3)][_0x1105bc(0x15c)](T);return(_0x4ac0d4=_0x35bb85==null?void 0x0:_0x35bb85[_0x1105bc(0x107)])==null?0x1d4c0:_0x4ac0d4;}};G=D([E(0x0,_0x36c765),E(0x1,_0x35058d(_0x12cdb1))],G);function Ye(_0xc12b03){const _0x4c68a7=_0x5c504e;let _0x7d7c60=_0xc12b03['workbook'];if(!_0x7d7c60)return null;let _0x727495={};_0x7d7c60[_0x4c68a7(0x186)]&&Object[_0x4c68a7(0x152)](_0x7d7c60[_0x4c68a7(0x186)])[_0x4c68a7(0x20e)](_0x321be0=>{const _0x2b0938=_0x4c68a7;let _0x441e13=_0x7d7c60[_0x2b0938(0x186)][_0x321be0];_0x727495[_0x321be0]={..._0x441e13,'originalMeta':_0x3782a9(_0x19c752[_0x2b0938(0x201)](_0x441e13[_0x2b0938(0x1a9)]))};});let _0xcba026=_0x3782a9(_0x19c752[_0x4c68a7(0x201)](_0x7d7c60[_0x4c68a7(0x1a9)]));return{..._0xc12b03,'workbook':{..._0x7d7c60,'originalMeta':_0xcba026,'sheets':_0x727495},'doc':{},'slide':void 0x0,'board':void 0x0};}function Xe(_0x236c3a){const _0x420a54=_0x5c504e;let _0x10cf8e=_0x236c3a['doc'];if(!_0x10cf8e)return null;let _0x377b4a=_0x3782a9(_0x19c752[_0x420a54(0x201)](_0x10cf8e[_0x420a54(0x1a9)]));return{..._0x236c3a,'workbook':{},'doc':{..._0x10cf8e,'originalMeta':_0x377b4a},'slide':void 0x0,'board':void 0x0};}function Ze(_0x305a9b){const _0x41cdf8=_0x5c504e;var _0x43020b;let _0x1affda=(_0x43020b=_0x305a9b[_0x41cdf8(0xdc)])==null?_0x305a9b[_0x41cdf8(0x1eb)]:_0x43020b;if(!_0x1affda)return null;let _0x3dfc04=typeof _0x1affda[_0x41cdf8(0x1a9)]==_0x41cdf8(0x1af)?_0x1affda[_0x41cdf8(0x1a9)]:_0x3782a9(_0x19c752[_0x41cdf8(0x201)](_0x1affda[_0x41cdf8(0x1a9)]));return{..._0x305a9b,'workbook':{},'doc':{},'slide':{..._0x1affda,'originalMeta':_0x3dfc04},'board':void 0x0};}function _0x2440(_0x3465e7,_0x58a3c9){_0x3465e7=_0x3465e7-0xd4;const _0x68856c=_0x6885();let _0x244047=_0x68856c[_0x3465e7];return _0x244047;}function K(_0x45e490){const _0x54beb5=_0x5c504e;let _0xd64d59={};return _0x45e490[_0x54beb5(0x20e)](_0x13b549=>{const _0x2b8c4d=_0x54beb5;_0xd64d59[_0x13b549['id']]={..._0x13b549,'data':_0x3782a9(_0x19c752[_0x2b8c4d(0x201)](_0x13b549[_0x2b8c4d(0x1e8)]))};}),_0xd64d59;}async function Qe(_0x232733){const _0x46b6df=_0x5c504e;var _0x1e41a9;let _0x4a87c4={'metadata':void 0x0},_0x379e90=_0x232733['id'],_0x2a9234=(_0x1e41a9=_0x232733[_0x46b6df(0x1c0)])==null?0x0:_0x1e41a9,_0x59115d=new q(),{snapshot:_0x5c49a3}=await _0x4dcdaa(_0x4a87c4,_0x232733,_0x379e90,_0x2a9234,_0x59115d),_0x28aa83=await _0x2b34e5(_0x5c49a3,_0x59115d),_0xe0ea82=Ye(_0x5c49a3);if(!_0xe0ea82)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0xe0ea82,'sheetBlocks':K(_0x28aa83)};}async function $e(_0xe92dd1){const _0x316c0a=_0x5c504e;var _0x18271f;let _0x526ca8={'metadata':void 0x0},_0x53acdf=_0xe92dd1['id'],{snapshot:_0x1eb3f7}=await _0x175492(_0x526ca8,_0xe92dd1,_0x53acdf,(_0x18271f=_0xe92dd1[_0x316c0a(0x1c0)])==null?0x0:_0x18271f,new q()),_0x3b7983=Xe(_0x1eb3f7);if(!_0x3b7983)throw Error(_0x316c0a(0x197));return{'snapshot':_0x3b7983,'sheetBlocks':{}};}async function et(_0x1a7c58){var _0x54d41e;let _0x121b24=_0x1a7c58['id'],_0x318113=(_0x54d41e=_0x1a7c58['rev'])==null?0x0:_0x54d41e,_0x416991=new q(),{snapshot:_0x7463af}=await _0x58a5e8(_0x1a7c58['resources'],_0x1a7c58,_0x121b24,_0x318113,_0x416991),_0x512334=Ze(_0x7463af);if(!_0x512334)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x512334,'sheetBlocks':{}};}async function tt(_0x40c271){const _0xa8d7b1=_0x5c504e;let _0x37b4f4=_0x40c271[_0xa8d7b1(0x146)],_0x180172=_0x40c271[_0xa8d7b1(0x19e)]||{};return await _0x4bfcd1(_0x37b4f4,Object[_0xa8d7b1(0x152)](_0x180172)[_0xa8d7b1(0x16e)](_0x2aa224=>_0x180172[_0x2aa224])[_0xa8d7b1(0x16e)](_0x19c557=>({..._0x19c557,'data':_0x19c557[_0xa8d7b1(0x1e8)]?JSON['parse'](_0x2406db(_0x19c557['data'])):void 0x0})));}function nt(_0x4db138){let _0x2992e4=_0x4db138['snapshot'];return _0x7fd94e(_0x2992e4);}function rt(_0x14c51b){const _0x4fbae2=_0x5c504e;let _0x3575c1=_0x14c51b[_0x4fbae2(0x146)];return _0x1e9415(_0x3575c1);}var q=class{constructor(){A(this,'_sheetBlockCache',new Map());}[_0x5c504e(0x208)](){const _0x3b1631=_0x5c504e;return Promise['resolve']({'snapshot':{'unitID':'','type':_0x24b8a6[_0x3b1631(0x1ad)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x59538c['OK'],'message':''}});}[_0x5c504e(0x1c3)](_0x9ecc0,_0x139a89){const _0x51d501=_0x5c504e;let _0x517dd7=this[_0x51d501(0x1b0)][_0x51d501(0xda)](_0x139a89[_0x51d501(0x1d4)]);return Promise['resolve']({'block':_0x517dd7,'error':{'code':_0x59538c['OK'],'message':''}});}['getDeserializedSheetBlock'](_0x5adfd9,_0x4ebe0e){const _0x5aa08c=_0x5c504e;let _0x4b2464=this[_0x5aa08c(0x1b0)]['get'](_0x4ebe0e[_0x5aa08c(0x1d4)]);return Promise[_0x5aa08c(0x123)]({'block':_0x4b2464===void 0x0?void 0x0:{..._0x4b2464,'data':JSON[_0x5aa08c(0xdb)](_0x19c752['decode'](_0x4b2464[_0x5aa08c(0x1e8)]))},'error':{'code':_0x59538c['OK'],'message':''}});}[_0x5c504e(0x13f)](){const _0x384388=_0x5c504e;return Promise[_0x384388(0x123)]({'changesets':[],'error':{'code':_0x59538c['OK'],'message':''}});}['getResourcesRequest'](){const _0x1cd24b=_0x5c504e;return Promise[_0x1cd24b(0x123)]({'resources':{},'error':{'code':_0x59538c['OK'],'message':''}});}['saveSnapshot'](){const _0x29e3a6=_0x5c504e;return Promise[_0x29e3a6(0x123)]({'error':{'code':_0x59538c['OK'],'message':''}});}['updateSnapshot'](){return Promise['resolve']({'error':{'code':_0x59538c['OK'],'message':''}});}[_0x5c504e(0x1e1)](_0x5a1557,_0x91fc72){const _0x321a86=_0x5c504e;let {block:_0x4a3ed2}=_0x91fc72;return _0x4a3ed2?(this[_0x321a86(0x1b0)]['set'](_0x4a3ed2['id'],_0x4a3ed2),Promise[_0x321a86(0x123)]({'error':{'code':_0x59538c['OK'],'message':''},'blockID':_0x4a3ed2['id']})):Promise['resolve']({'error':{'code':_0x59538c[_0x321a86(0x214)],'message':_0x321a86(0x1b9)},'blockID':''});}[_0x5c504e(0x182)](){const _0x3fbbc7=_0x5c504e;return Promise[_0x3fbbc7(0x123)]({'error':{'code':_0x59538c['OK'],'message':''},'concurrent':[]});}[_0x5c504e(0x1e9)](){const _0x19bed8=_0x5c504e;return Promise[_0x19bed8(0x123)]({'error':void 0x0,'fileMetaId':''});}[_0x5c504e(0x21c)](){const _0xa0ebd4=_0x5c504e;return Promise[_0xa0ebd4(0x123)]({'error':void 0x0,'latestReqID':0x0});}};const J=_0x1fb009('univer-pro.exchange-client.exchange.service');let Y=class extends _0x550844{constructor(_0x3ddfe6,_0x423f01,_0x537b71){const _0x40cfae=_0x5c504e;super(),this[_0x40cfae(0x1a3)]=_0x3ddfe6,this[_0x40cfae(0x11f)]=_0x423f01,this['_requestService']=_0x537b71,A(this,_0x40cfae(0x1a0),null),A(this,'_requestState$',new _0x439300()),A(this,'requestState$',this['_requestState$']['asObservable']());}[_0x5c504e(0x110)](){const _0x6136c6=_0x5c504e;super[_0x6136c6(0x110)](),this[_0x6136c6(0x1bd)][_0x6136c6(0x192)]();}['downloadFile'](_0x28c2da,_0x2e095e,_0x5e788b){const _0x246dc2=_0x5c504e;let _0x526094=URL[_0x246dc2(0x21d)](_0x28c2da);B(_0x526094,_0x2e095e,_0x5e788b),URL[_0x246dc2(0x155)](_0x526094);}async[_0x5c504e(0x114)](_0x1a2a98){const _0x2d2deb=_0x5c504e;let _0x3a9538=_0x1a2a98[_0x2d2deb(0x146)],_0xd57bdb=_0x1a2a98[_0x2d2deb(0x19e)]||{};return _0x4bfcd1(_0x3a9538,Object['keys'](_0xd57bdb)[_0x2d2deb(0x16e)](_0x3029d7=>_0xd57bdb[_0x3029d7])[_0x2d2deb(0x16e)](_0x2aff33=>({..._0x2aff33,'data':_0x2aff33[_0x2d2deb(0x1e8)]?JSON[_0x2d2deb(0xdb)](_0x2406db(_0x2aff33[_0x2d2deb(0x1e8)])):void 0x0})));}async[_0x5c504e(0x171)](_0x172b96){const _0x52af24=_0x5c504e;var _0x23a9d6;let _0x3c7bab={'metadata':void 0x0},_0x2932c2=_0x172b96['id'],_0x52079f=(_0x23a9d6=_0x172b96[_0x52af24(0x1c0)])==null?0x0:_0x23a9d6,_0x366061=new q(),{snapshot:_0x1619d2}=await _0x4dcdaa(_0x3c7bab,_0x172b96,_0x2932c2,_0x52079f,_0x366061),_0x2bc29b=await _0x2b34e5(_0x1619d2,_0x366061),_0x3f8068=Ye(_0x1619d2);if(!_0x3f8068)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x3f8068,'sheetBlocks':K(_0x2bc29b)};}async['importDOCXToSnapshot'](_0x12ea75){const _0x5ce548=_0x5c504e;let _0x8fffca=await this[_0x5ce548(0xff)](_0x12ea75,_0x24b8a6[_0x5ce548(0x202)]);if(!_0x8fffca||!_0x8fffca[_0x5ce548(0x146)])return;let _0x496803=nt(_0x8fffca);if(_0x496803)return _0x496803;}async[_0x5c504e(0x1df)](_0x5667e2){const _0x43e5ad=_0x5c504e;return this[_0x43e5ad(0x1b7)](_0x5667e2,0x1,_0x24b8a6[_0x43e5ad(0x202)]);}async['exportDOCXBySnapshot'](_0x3172b9){const _0x5285a0=_0x5c504e;let _0x3159b1=await $e(_0x3172b9);return this[_0x5285a0(0xe7)](_0x3159b1,_0x24b8a6['UNIVER_DOC']);}async['importPPTXToSnapshot'](_0x3296f7){const _0x4a2b49=_0x5c504e;let _0x40ef11=await this['importFileToJson'](_0x3296f7,_0x24b8a6[_0x4a2b49(0x21f)]);if(!(!_0x40ef11||!_0x40ef11[_0x4a2b49(0x146)]))return rt(_0x40ef11);}async[_0x5c504e(0x21b)](_0x247e20){const _0x20dd87=_0x5c504e;return this[_0x20dd87(0x1b7)](_0x247e20,0x1,_0x24b8a6['UNIVER_SLIDE']);}async[_0x5c504e(0x1f4)](_0x1ad7f1){const _0xf7dca1=_0x5c504e;let _0x3e16ef=await et(_0x1ad7f1);return this[_0xf7dca1(0xe7)](_0x3e16ef,_0x24b8a6[_0xf7dca1(0x21f)]);}async[_0x5c504e(0x147)](_0x25fb48){const _0x465c7f=_0x5c504e;let _0x206f7c=await this[_0x465c7f(0xff)](_0x25fb48,_0x24b8a6['UNIVER_SHEET']);if(!_0x206f7c)return;let _0xf9046f=await this[_0x465c7f(0x114)](_0x206f7c);if(_0xf9046f)return _0xf9046f;}async[_0x5c504e(0x167)](_0x39a7dd){const _0x57e354=_0x5c504e;return this[_0x57e354(0x1b7)](_0x39a7dd,0x1,_0x24b8a6[_0x57e354(0x1ad)]);}async[_0x5c504e(0x10a)](_0x1cd48e){const _0x2a4be1=_0x5c504e;let _0xa15ece=await this[_0x2a4be1(0x171)](_0x1cd48e);return this[_0x2a4be1(0xe7)](_0xa15ece,_0x24b8a6[_0x2a4be1(0x1ad)]);}async[_0x5c504e(0x11e)](_0x1c601a,_0x18c946){const _0x200230=_0x5c504e;var _0x49c53d,_0x13e4b5;let _0x1ac766=await this[_0x200230(0xf8)](_0x1c601a);if(!_0x1ac766)return;let _0x5943a6=await this['_import'](_0x1ac766,0x1,_0x18c946);if(!_0x5943a6)return;this[_0x200230(0x1a0)]=_0x5943a6,this[_0x200230(0x1b6)][_0x200230(0x218)]();let _0x1e0618=await this[_0x200230(0x1b6)]['getTask'](_0x5943a6)[_0x200230(0x18d)](_0xc9c67e=>{const _0x34b109=_0x200230;var _0x38a1b6;let _0x1263b2=_0xc9c67e instanceof Error?_0xc9c67e[_0x34b109(0x1a1)]:(_0x38a1b6=_0xc9c67e[_0x34b109(0x1f0)])==null?void 0x0:_0x38a1b6[_0x34b109(0x1a1)];this['_requestState$'][_0x34b109(0x10c)]({'error':{'code':_0x59538c[_0x34b109(0x187)],'message':_0x1263b2||''},'state':0x3});});if(!_0x1e0618)return;let _0xf91603=(_0x49c53d=_0x1e0618['import'])==null?void 0x0:_0x49c53d[_0x200230(0x16a)],_0x59cb3d=((_0x13e4b5=_0x1e0618[_0x200230(0x20a)])==null?void 0x0:_0x13e4b5[_0x200230(0x1c1)])||'';if(_0xf91603!==0x1){this['_requestState$'][_0x200230(0x10c)]({'error':{'code':_0x59538c[_0x200230(0x187)],'message':_0x200230(0xe6)},'state':0x3});return;}if(_0x59cb3d[_0x200230(0x184)]===0x0){this['_requestState$'][_0x200230(0x10c)]({'error':{'code':_0x59538c['UNRECOGNIZED'],'message':_0x200230(0x188)},'state':0x3});return;}return this[_0x200230(0x1bd)]['next']({'error':_0x1e0618[_0x200230(0x1f0)],'state':0x3}),_0x59cb3d;}async[_0x5c504e(0xff)](_0x594f94,_0xaeec79){const _0x193d1f=_0x5c504e;return this[_0x193d1f(0x1e0)](_0x594f94,_0xaeec79);}async[_0x5c504e(0x175)](_0x290144){const _0x68d6fe=_0x5c504e;let _0x3923b1=await this[_0x68d6fe(0x171)](_0x290144),_0x5ad309=typeof _0x290144['id']=='string'&&_0x290144['id'][_0x68d6fe(0x159)]()?_0x290144['id'][_0x68d6fe(0x159)]()+_0x68d6fe(0xfd):_0x68d6fe(0x13c),_0x4745fb=new File([JSON[_0x68d6fe(0x220)](_0x3923b1)],_0x5ad309,{'type':_0x68d6fe(0x224)});return this['importFileToUnitId'](_0x4745fb,_0x24b8a6[_0x68d6fe(0x1ad)]);}[_0x5c504e(0x150)](){const _0x9b9c37=_0x5c504e;this[_0x9b9c37(0x1a0)]&&this['_requestService'][_0x9b9c37(0x1a6)](this['_importTaskId']);}async[_0x5c504e(0x1e0)](_0x19018e,_0x6a66fe){const _0x112b52=_0x5c504e;var _0x3287f3,_0x533845;let _0x32aba1=await this[_0x112b52(0xf8)](_0x19018e);if(!_0x32aba1)return;let _0x58251a=await this[_0x112b52(0x19f)](_0x32aba1,0x2,_0x6a66fe);if(!_0x58251a)return;this['_importTaskId']=_0x58251a,this[_0x112b52(0x1b6)]['clearTaskInterrupted']();let _0x2c26f4=await this[_0x112b52(0x1b6)]['getTask'](_0x58251a)[_0x112b52(0x18d)](_0x20f47d=>{const _0x5eaef1=_0x112b52;var _0x1b9e0a;let _0x1f4cc1=_0x20f47d instanceof Error?_0x20f47d[_0x5eaef1(0x1a1)]:(_0x1b9e0a=_0x20f47d['error'])==null?void 0x0:_0x1b9e0a[_0x5eaef1(0x1a1)];this[_0x5eaef1(0x1bd)]['next']({'error':{'code':_0x59538c[_0x5eaef1(0x187)],'message':_0x1f4cc1||''},'state':0x3});});if(!_0x2c26f4)return;let _0xa55fbc=(_0x3287f3=_0x2c26f4[_0x112b52(0x20a)])==null?void 0x0:_0x3287f3[_0x112b52(0x16a)],_0x2d50cc=((_0x533845=_0x2c26f4[_0x112b52(0x20a)])==null?void 0x0:_0x533845[_0x112b52(0xe3)])||'';if(_0xa55fbc!==0x2){this[_0x112b52(0x1bd)][_0x112b52(0x10c)]({'error':{'code':_0x59538c[_0x112b52(0x187)],'message':_0x112b52(0xe6)},'state':0x3});return;}if(_0x2d50cc[_0x112b52(0x184)]===0x0){this['_requestState$']['next']({'error':{'code':_0x59538c[_0x112b52(0x187)],'message':'Failed\x20to\x20get\x20jsonID\x20from\x20task'},'state':0x3});return;}this['_requestState$'][_0x112b52(0x10c)]({'error':_0x2c26f4['error'],'state':0x3});let _0x1f9a16=await this[_0x112b52(0x112)](_0x2d50cc);if(!_0x1f9a16)return;let _0x3381c5=await this[_0x112b52(0x1b6)]['getTextFromUrl'](_0x1f9a16);if(!_0x3381c5){this[_0x112b52(0x1bd)][_0x112b52(0x10c)]({'error':{'code':_0x59538c[_0x112b52(0x187)],'message':_0x112b52(0x137)},'state':0x5});return;}try{let _0x2e1b77=JSON['parse'](_0x3381c5);return this['_requestState$'][_0x112b52(0x10c)]({'error':{'code':_0x59538c['OK'],'message':_0x112b52(0x149)},'state':0x5}),_0x2e1b77;}catch{this['_requestState$']['next']({'error':{'code':_0x59538c[_0x112b52(0x187)],'message':_0x112b52(0x183)},'state':0x5});}}async[_0x5c504e(0xe7)](_0x19cd98,_0x519e5e){const _0x2b3831=_0x5c504e;let _0x2ec704=JSON[_0x2b3831(0x220)](_0x19cd98),_0x2412f3=_0x533e4e[_0x2b3831(0x200)](_0x2ec704),_0x2bc813=_0x17f531(_0x2412f3),_0x3ca25e=_0x2412f3[_0x2b3831(0x184)],_0x11f8d6=Ke(_0x2bc813),_0x563cb2=await this['_upload'](_0x11f8d6,_0x3ca25e,!0x0);if(_0x563cb2)return this[_0x2b3831(0x1b7)](_0x563cb2,0x2,_0x519e5e);}async[_0x5c504e(0x1b7)](_0xe30153,_0x5d129b,_0x39a89d){const _0x269aa9=_0x5c504e;var _0x181318;let _0x397253=await this[_0x269aa9(0x1b6)][_0x269aa9(0x1d6)]({'unitID':_0x5d129b===0x1?_0xe30153:'','jsonID':_0x5d129b===0x2?_0xe30153:'','type':_0x39a89d,'useImageUrl':this[_0x269aa9(0x1f5)](),'ignoreTableExport':this[_0x269aa9(0xe1)]()});if(!_0x397253){this['_requestState$']['next']({'error':{'code':_0x59538c[_0x269aa9(0x187)],'message':_0x269aa9(0x11b)},'state':0x2});return;}if(this[_0x269aa9(0x1bd)][_0x269aa9(0x10c)]({'error':_0x397253[_0x269aa9(0x1f0)],'state':0x2}),_0x397253[_0x269aa9(0x1f0)]&&_0x397253[_0x269aa9(0x1f0)][_0x269aa9(0xf3)]!==_0x59538c['OK'])return;let _0x10e784=_0x397253[_0x269aa9(0xef)],_0x46fca0=await this[_0x269aa9(0x1b6)][_0x269aa9(0x210)](_0x10e784)[_0x269aa9(0x18d)](_0x150291=>{const _0x4ee68a=_0x269aa9;var _0x46b6ad;let _0x1577e5=_0x150291 instanceof Error?_0x150291['message']:(_0x46b6ad=_0x150291[_0x4ee68a(0x1f0)])==null?void 0x0:_0x46b6ad[_0x4ee68a(0x1a1)];this['_requestState$'][_0x4ee68a(0x10c)]({'error':{'code':_0x59538c[_0x4ee68a(0x187)],'message':_0x1577e5||''},'state':0x3});});if(!_0x46fca0)return;let _0x129ee5=((_0x181318=_0x46fca0[_0x269aa9(0x1d6)])==null?void 0x0:_0x181318[_0x269aa9(0x163)])||'';if(_0x129ee5[_0x269aa9(0x184)]===0x0){this[_0x269aa9(0x1bd)][_0x269aa9(0x10c)]({'error':{'code':_0x59538c[_0x269aa9(0x187)],'message':_0x269aa9(0x14c)},'state':0x3});return;}this['_requestState$'][_0x269aa9(0x10c)]({'error':_0x46fca0[_0x269aa9(0x1f0)],'state':0x3});let _0x103754=await this[_0x269aa9(0x112)](_0x129ee5);if(!_0x103754)return;let _0x378c99=await H(_0x103754,this['_httpService']);if(!_0x378c99){this[_0x269aa9(0x1bd)][_0x269aa9(0x10c)]({'error':{'code':_0x59538c[_0x269aa9(0x187)],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':0x6});return;}return this[_0x269aa9(0x1bd)][_0x269aa9(0x10c)]({'error':{'code':_0x59538c['OK'],'message':_0x269aa9(0x149)},'state':0x6}),_0x378c99;}async['_upload'](_0x12cb3b,_0x4b4091,_0x1ed246){const _0x499608=_0x5c504e;let _0x525386;try{_0x525386=await this[_0x499608(0x1b6)]['upload'](_0x12cb3b,_0x4b4091,_0x1ed246);}catch(_0x592e1){let _0x30c8f9=_0x592e1 instanceof Error?_0x592e1['message']:String(_0x592e1);this[_0x499608(0x1bd)]['next']({'error':{'code':_0x59538c[_0x499608(0x187)],'message':_0x30c8f9},'state':0x0});return;}if(!_0x525386||typeof _0x525386[_0x499608(0x129)]!=_0x499608(0x1af)){this[_0x499608(0x1bd)][_0x499608(0x10c)]({'error':{'code':_0x59538c['UNRECOGNIZED'],'message':_0x499608(0x158)},'state':0x0});return;}let _0x364a3a=_0x525386[_0x499608(0x129)];if(_0x364a3a['length']===0x0){this[_0x499608(0x1bd)][_0x499608(0x10c)]({'error':{'code':_0x59538c['UNRECOGNIZED'],'message':_0x499608(0x12c)},'state':0x0});return;}return this[_0x499608(0x1bd)][_0x499608(0x10c)]({'error':{'code':_0x59538c['OK'],'message':'success'},'state':0x0}),_0x364a3a;}async['_import'](_0x21c7de,_0x562090,_0x3fa780){const _0x1cf7b7=_0x5c504e;let _0xd32ab8={'fileID':_0x21c7de,'type':_0x3fa780,'outputType':_0x562090,'fileUrl':'','minSheetRowCount':this[_0x1cf7b7(0x185)](),'minSheetColumnCount':this[_0x1cf7b7(0x223)]()},_0x5383d2=await this['_requestService'][_0x1cf7b7(0x20a)](_0xd32ab8);if(!_0x5383d2){this[_0x1cf7b7(0x1bd)][_0x1cf7b7(0x10c)]({'error':{'code':_0x59538c[_0x1cf7b7(0x187)],'message':_0x1cf7b7(0x203)},'state':0x1});return;}if(_0x5383d2[_0x1cf7b7(0x1f0)]&&_0x5383d2[_0x1cf7b7(0x1f0)][_0x1cf7b7(0xf3)]!==_0x59538c['OK']){this[_0x1cf7b7(0x1bd)][_0x1cf7b7(0x10c)]({'error':_0x5383d2[_0x1cf7b7(0x1f0)],'state':0x1});return;}let _0x24cf6f=_0x5383d2[_0x1cf7b7(0xef)];if(_0x24cf6f[_0x1cf7b7(0x184)]===0x0){this[_0x1cf7b7(0x1bd)]['next']({'error':{'code':_0x59538c[_0x1cf7b7(0x187)],'message':_0x1cf7b7(0x145)},'state':0x1});return;}return this[_0x1cf7b7(0x1bd)][_0x1cf7b7(0x10c)]({'error':_0x5383d2[_0x1cf7b7(0x1f0)],'state':0x1}),_0x24cf6f;}async[_0x5c504e(0x112)](_0x3d380b){const _0x564bb5=_0x5c504e;let _0x4c01ec=await this[_0x564bb5(0x1b6)][_0x564bb5(0x18b)](_0x3d380b);if(!_0x4c01ec){this['_requestState$'][_0x564bb5(0x10c)]({'error':{'code':_0x59538c[_0x564bb5(0x187)],'message':_0x564bb5(0x132)},'state':0x4});return;}if(_0x4c01ec[_0x564bb5(0x1f0)]&&_0x4c01ec['error'][_0x564bb5(0xf3)]!==_0x59538c['OK']){this['_requestState$'][_0x564bb5(0x10c)]({'error':_0x4c01ec[_0x564bb5(0x1f0)],'state':0x4});return;}let _0x414128=_0xaa9139(_0x4c01ec[_0x564bb5(0x17b)],this[_0x564bb5(0xfe)]());if(_0x414128['length']===0x0){this[_0x564bb5(0x1bd)][_0x564bb5(0x10c)]({'error':{'code':_0x59538c['UNRECOGNIZED'],'message':'sign\x20url\x20error'},'state':0x4});return;}return this['_requestState$'][_0x564bb5(0x10c)]({'error':_0x4c01ec[_0x564bb5(0x1f0)],'state':0x4}),_0x414128;}['_getDownloadEndpointURL'](){const _0x10e626=_0x5c504e;var _0x1bd686;let _0x24020f=this[_0x10e626(0x1a3)][_0x10e626(0x15c)](T);return(_0x1bd686=_0x24020f==null?void 0x0:_0x24020f[_0x10e626(0x105)])==null?location[_0x10e626(0x1b5)]:_0x1bd686;}['_getMinSheetRowCount'](){const _0x3f711f=_0x5c504e;var _0x228eb0,_0x32c477;let _0x14455f=this[_0x3f711f(0x1a3)][_0x3f711f(0x15c)](T);return(_0x228eb0=_0x14455f==null||(_0x32c477=_0x14455f['options'])==null?void 0x0:_0x32c477[_0x3f711f(0x111)])==null?0x1:_0x228eb0;}[_0x5c504e(0x223)](){const _0x766e74=_0x5c504e;var _0x565fa9,_0x986760;let _0x34d0d0=this[_0x766e74(0x1a3)][_0x766e74(0x15c)](T);return(_0x565fa9=_0x34d0d0==null||(_0x986760=_0x34d0d0['options'])==null?void 0x0:_0x986760['minSheetColumnCount'])==null?0x1:_0x565fa9;}[_0x5c504e(0x1f5)](){const _0x4a52c5=_0x5c504e;var _0x448cd1,_0x3db9e5;let _0x442db1=this[_0x4a52c5(0x1a3)][_0x4a52c5(0x15c)](T);return(_0x448cd1=_0x442db1==null||(_0x3db9e5=_0x442db1[_0x4a52c5(0x1e4)])==null?void 0x0:_0x3db9e5[_0x4a52c5(0x17f)])==null?!0x0:_0x448cd1;}[_0x5c504e(0xe1)](){const _0x569d71=_0x5c504e;var _0x33050d,_0xc51eed;let _0xc68422=this[_0x569d71(0x1a3)]['getConfig'](T);return(_0x33050d=_0xc68422==null||(_0xc51eed=_0xc68422[_0x569d71(0x1e4)])==null?void 0x0:_0xc51eed['ignoreTableExport'])==null?!0x1:_0x33050d;}};Y=D([E(0x0,_0x36c765),E(0x1,_0x35058d(_0x12cdb1)),E(0x2,_0x35058d(W))],Y);const it={'done':0x0,'count':0x0},X=_0x1fb009('univer-pro.exchange-client.operate.service');let Z=class extends _0x550844{constructor(_0x36c118,_0x3270d6,_0x3ab24a,_0x308090,_0xf64221,_0x48469f,_0x31a273){const _0x105ce5=_0x5c504e;super(),this[_0x105ce5(0x211)]=_0x36c118,this['_messageService']=_0x3270d6,this[_0x105ce5(0x15e)]=_0x3ab24a,this[_0x105ce5(0x12e)]=_0x308090,this[_0x105ce5(0x191)]=_0xf64221,this[_0x105ce5(0x216)]=_0x48469f,this['_resourceLoaderService']=_0x31a273,A(this,_0x105ce5(0x21e),new _0x57e22a(it)),A(this,'progress$',this[_0x105ce5(0x21e)][_0x105ce5(0xed)]()),A(this,_0x105ce5(0x164),0x0),A(this,_0x105ce5(0x12d),0x0),this[_0x105ce5(0x134)](_0x3b4c3f(this[_0x105ce5(0x12e)][_0x105ce5(0x13a)][_0x105ce5(0xd6)](_0x2165dd=>{const _0x29b879=_0x105ce5;var _0x17e1fa;((_0x17e1fa=_0x2165dd[_0x29b879(0x1f0)])==null?void 0x0:_0x17e1fa[_0x29b879(0xf3)])===_0x59538c['OK']?this[_0x29b879(0x181)](0x1):this[_0x29b879(0x1a2)](_0x2165dd[_0x29b879(0x1f0)]);})));}['interrupt'](){const _0x302753=_0x5c504e;this[_0x302753(0x1ce)](),this[_0x302753(0x191)][_0x302753(0x1db)](0x2),this[_0x302753(0x12e)][_0x302753(0x150)]();}async[_0x5c504e(0x1ae)](_0xacff24){throw Error('Method\x20not\x20implemented.');}async[_0x5c504e(0x136)](){const _0x229176=_0x5c504e;let _0x569572=this[_0x229176(0x211)]['getFocusedUnit']();switch(_0x569572?this['_univerInstanceService'][_0x229176(0xfc)](_0x569572[_0x229176(0x113)]()):_0x24b8a6[_0x229176(0x187)]){case _0x24b8a6[_0x229176(0x21f)]:return this[_0x229176(0x1ca)]();case _0x24b8a6[_0x229176(0x202)]:return this[_0x229176(0x19a)]();case _0x24b8a6[_0x229176(0x1ad)]:default:return this[_0x229176(0x143)]();}}async[_0x5c504e(0x19a)](){const _0x1bc80c=_0x5c504e;let _0x52cb96=await V([_0x24b8a6[_0x1bc80c(0x202)]]);if(_0x52cb96&&!this[_0x1bc80c(0x1d8)](_0x52cb96,_0x24b8a6[_0x1bc80c(0x202)]))return this[_0x1bc80c(0x1c9)](_0x52cb96[0x0],_0x24b8a6[_0x1bc80c(0x202)]);}[_0x5c504e(0x228)](){const _0x3224b1=_0x5c504e;throw Error(_0x3224b1(0x17d));}async[_0x5c504e(0x1df)](_0x24bf07,_0x1bd022,_0x30c6b5){const _0x5015be=_0x5c504e;this['_showDownloadMessage'](_0x47b0d2[_0x5015be(0x165)]);let _0x1d1f95=await this[_0x5015be(0x12e)]['exportDOCXByUnitId'](_0x24bf07||this[_0x5015be(0x10d)]());_0x1d1f95&&(this['_exchangeService']['downloadFile'](_0x1d1f95,_0x1bd022||this[_0x5015be(0xf2)](_0x1d1f95),_0x5015be(0x205)),this[_0x5015be(0x195)](_0x47b0d2['Success']));}async[_0x5c504e(0x217)](){const _0x1e4ff9=_0x5c504e;this[_0x1e4ff9(0x195)](_0x47b0d2['Info']);let _0x31f50d=await this[_0x1e4ff9(0x19c)](),_0x4d099d=await this['_exchangeService'][_0x1e4ff9(0x217)](_0x31f50d);_0x4d099d&&(this[_0x1e4ff9(0x12e)][_0x1e4ff9(0x18f)](_0x4d099d,this[_0x1e4ff9(0xf2)](_0x4d099d),_0x1e4ff9(0x205)),this[_0x1e4ff9(0x195)](_0x47b0d2[_0x1e4ff9(0x173)]));}async[_0x5c504e(0x1ca)](){const _0x2eb735=_0x5c504e;if(this[_0x2eb735(0x199)]()){this['_messageService'][_0x2eb735(0x1c2)]({'type':_0x47b0d2[_0x2eb735(0x14b)],'content':this[_0x2eb735(0x15e)]['t'](_0x2eb735(0x1a4))});return;}let _0x35384d=await V([_0x24b8a6[_0x2eb735(0x21f)]]);if(_0x35384d&&!this[_0x2eb735(0x1d8)](_0x35384d,_0x24b8a6[_0x2eb735(0x21f)]))return this[_0x2eb735(0x1c9)](_0x35384d[0x0],_0x24b8a6[_0x2eb735(0x21f)]);}async[_0x5c504e(0x1ff)](){const _0x4f5053=_0x5c504e;if(this[_0x4f5053(0x199)]()){this[_0x4f5053(0x1ea)][_0x4f5053(0x1c2)]({'type':_0x47b0d2[_0x4f5053(0x14b)],'content':this['_localeService']['t']('exchange-client.uploading')});return;}let _0x15b485=await V([_0x24b8a6[_0x4f5053(0x21f)]]);if(!_0x15b485)return;this[_0x4f5053(0x1d3)](_0x47b0d2[_0x4f5053(0x165)]);let _0x13f752=await this[_0x4f5053(0x12e)][_0x4f5053(0x1ff)](_0x15b485[0x0]);_0x13f752&&(this[_0x4f5053(0x106)](_0x13f752),this[_0x4f5053(0x1d3)](_0x47b0d2[_0x4f5053(0x173)]));}async[_0x5c504e(0x21b)](_0x533bda,_0xbcc803,_0x122933){const _0x175a04=_0x5c504e;this[_0x175a04(0x195)](_0x47b0d2['Info']);let _0xcdf8a8=await this[_0x175a04(0x12e)][_0x175a04(0x21b)](_0x533bda||this[_0x175a04(0x11a)]());_0xcdf8a8&&(this[_0x175a04(0x12e)][_0x175a04(0x18f)](_0xcdf8a8,_0xbcc803||this[_0x175a04(0x207)](_0xcdf8a8,_0x122933==null?_0x24b8a6[_0x175a04(0x21f)]:_0x122933),'pptx'),this[_0x175a04(0x195)](_0x47b0d2['Success']));}async[_0x5c504e(0x1f4)](){const _0xcb129a=_0x5c504e;this[_0xcb129a(0x195)](_0x47b0d2['Info']);let _0x4c55d8=await this['_getUnitSlideJson'](),_0x171d8e=await this[_0xcb129a(0x12e)][_0xcb129a(0x1f4)](_0x4c55d8);_0x171d8e&&(this[_0xcb129a(0x12e)][_0xcb129a(0x18f)](_0x171d8e,this[_0xcb129a(0x207)](_0x171d8e,_0x24b8a6[_0xcb129a(0x21f)]),_0xcb129a(0x1c7)),this['_showDownloadMessage'](_0x47b0d2[_0xcb129a(0x173)]));}async[_0x5c504e(0x143)](){const _0x29ea57=_0x5c504e;if(this['_uploadTaskNotDone']()){this[_0x29ea57(0x1ea)][_0x29ea57(0x1c2)]({'type':_0x47b0d2[_0x29ea57(0x14b)],'content':this['_localeService']['t'](_0x29ea57(0x1a4))});return;}let _0x4c2753=await V([_0x24b8a6[_0x29ea57(0x1ad)]]);if(_0x4c2753&&!this['_fileTypeError'](_0x4c2753,_0x24b8a6[_0x29ea57(0x1ad)]))return this[_0x29ea57(0x1c9)](_0x4c2753[0x0],_0x24b8a6['UNIVER_SHEET']);}async[_0x5c504e(0x147)](){const _0x430ae3=_0x5c504e;if(this[_0x430ae3(0x199)]()){this[_0x430ae3(0x1ea)][_0x430ae3(0x1c2)]({'type':_0x47b0d2['Warning'],'content':this[_0x430ae3(0x15e)]['t']('exchange-client.uploading')});return;}let _0x46546c=await V([_0x24b8a6[_0x430ae3(0x1ad)]]);if(!_0x46546c)return;this['_showUploadMessage'](_0x47b0d2[_0x430ae3(0x165)]);let _0x2696f6=await this['_exchangeService'][_0x430ae3(0x147)](_0x46546c[0x0]);_0x2696f6&&(this['_refresh'](_0x2696f6),this['_showUploadMessage'](_0x47b0d2[_0x430ae3(0x173)]));}async['exportXLSXByUnitId'](_0x45bc4f,_0x29d941,_0xc3be52){const _0xf6e87f=_0x5c504e;this[_0xf6e87f(0x195)](_0x47b0d2['Info']);let _0x50f7b0=await this[_0xf6e87f(0x12e)][_0xf6e87f(0x167)](_0x45bc4f||this[_0xf6e87f(0x126)]());_0x50f7b0&&(this[_0xf6e87f(0x12e)][_0xf6e87f(0x18f)](_0x50f7b0,_0x29d941||this[_0xf6e87f(0xf2)](_0x50f7b0),_0xf6e87f(0x1e3)),this[_0xf6e87f(0x195)](_0x47b0d2[_0xf6e87f(0x173)]));}async[_0x5c504e(0x10a)](){const _0x276819=_0x5c504e;this[_0x276819(0x195)](_0x47b0d2['Info']);let _0x4c38cc=await this[_0x276819(0x14a)](),_0x2fde8b=await this[_0x276819(0x12e)][_0x276819(0x10a)](_0x4c38cc);_0x2fde8b&&(this['_exchangeService'][_0x276819(0x18f)](_0x2fde8b,this['_getUnitName'](_0x2fde8b),_0x276819(0x1e3)),this[_0x276819(0x195)](_0x47b0d2[_0x276819(0x173)]));}['registerLink'](_0x335588){const _0x8abf1b=_0x5c504e;this[_0x8abf1b(0x19b)]=_0x335588;}async[_0x5c504e(0x1c9)](_0x3d50b8,_0x2919cb){const _0x460bab=_0x5c504e;this[_0x460bab(0x191)][_0x460bab(0x1c2)](),this[_0x460bab(0x191)]['updateState'](0x0),this['_addTotalCount'](0x4),this[_0x460bab(0x181)](0x1);let _0x1434b5=await this[_0x460bab(0x12e)][_0x460bab(0x11e)](_0x3d50b8,_0x2919cb);if(!_0x1434b5){this[_0x460bab(0x1ce)](),this[_0x460bab(0x191)]['updateState'](0x2);return;}let _0x6fe722={'link':this[_0x460bab(0x19b)](_0x1434b5,_0x2919cb),'name':_0x3d50b8[_0x460bab(0x196)],'type':_0x2919cb};return this['_uploadNotificationService'][_0x460bab(0x1ec)](_0x6fe722),this[_0x460bab(0x221)](),this[_0x460bab(0x191)][_0x460bab(0x1db)](0x1),_0x1434b5;}[_0x5c504e(0x126)](){const _0x3fc090=_0x5c504e;return this[_0x3fc090(0x211)]['getCurrentUnitOfType'](_0x24b8a6[_0x3fc090(0x1ad)])['getUnitId']();}['_getUnitIDDoc'](){const _0xd2db24=_0x5c504e;return this[_0xd2db24(0x211)][_0xd2db24(0x109)](_0x24b8a6['UNIVER_DOC'])[_0xd2db24(0x113)]();}[_0x5c504e(0x11a)](){const _0x1236c3=_0x5c504e;return this[_0x1236c3(0x211)][_0x1236c3(0x109)](_0x24b8a6[_0x1236c3(0x21f)])[_0x1236c3(0x113)]();}[_0x5c504e(0xf2)](_0xff50bb){const _0x19f9f5=_0x5c504e;return this[_0x19f9f5(0x207)](_0xff50bb,_0x24b8a6[_0x19f9f5(0x1ad)]);}[_0x5c504e(0x207)](_0x504385,_0x205ba5){const _0x23f0b1=_0x5c504e;var _0x109aeb;let _0x4caf08=(_0x109aeb=this[_0x23f0b1(0x211)][_0x23f0b1(0x109)](_0x205ba5))==null?void 0x0:_0x109aeb[_0x23f0b1(0x1ac)](),_0x45e455=_0x4caf08==null?void 0x0:_0x4caf08[_0x23f0b1(0x196)];return typeof _0x45e455==_0x23f0b1(0x1af)&&_0x45e455[_0x23f0b1(0x159)]()?_0x45e455:_0x504385[_0x23f0b1(0x196)][_0x23f0b1(0x176)]('.')['shift']()||document['title'];}async[_0x5c504e(0x14a)](){const _0x5bcd8e=_0x5c504e;let _0x547f21=this[_0x5bcd8e(0x211)][_0x5bcd8e(0x109)](_0x24b8a6[_0x5bcd8e(0x1ad)]),_0x5c343d=this[_0x5bcd8e(0xf7)][_0x5bcd8e(0x226)](_0x547f21['getUnitId']());return _0x5c343d==null?_0x547f21[_0x5bcd8e(0x1ac)]():_0x5c343d;}async[_0x5c504e(0x19c)](){const _0x1be11b=_0x5c504e;let _0xfb8cd6=this['_univerInstanceService'][_0x1be11b(0x109)](_0x24b8a6[_0x1be11b(0x202)]),_0x29c3f5=this[_0x1be11b(0xf7)]['saveUnit'](_0xfb8cd6[_0x1be11b(0x113)]());return _0x29c3f5==null?_0xfb8cd6[_0x1be11b(0x1ac)]():_0x29c3f5;}async[_0x5c504e(0x139)](){const _0xf666fa=_0x5c504e;let _0x48371c=this[_0xf666fa(0x211)][_0xf666fa(0x109)](_0x24b8a6[_0xf666fa(0x21f)]),_0x5e2f46=this[_0xf666fa(0xf7)][_0xf666fa(0x226)](_0x48371c[_0xf666fa(0x113)]());return _0x5e2f46==null?_0x48371c[_0xf666fa(0x1ac)]():_0x5e2f46;}['_getLinkByUnitId'](_0x5d40c2,_0x53b435){const _0x498411=_0x5c504e;let _0x1a8460=new URL(window['location']['href']);return _0x1a8460['searchParams'][_0x498411(0x17a)]('unit',_0x5d40c2),_0x1a8460[_0x498411(0x157)]['set'](_0x498411(0xec),''+_0x53b435),_0x1a8460['toString']();}['_refresh'](_0x36f881){const _0x4be64d=_0x5c504e;let _0x2e79f8=this[_0x4be64d(0x211)][_0x4be64d(0x109)](_0x24b8a6[_0x4be64d(0x1ad)])[_0x4be64d(0x113)]();this[_0x4be64d(0x211)][_0x4be64d(0x1ed)](_0x2e79f8),this[_0x4be64d(0x211)][_0x4be64d(0x135)](_0x24b8a6['UNIVER_SHEET'],_0x36f881);}[_0x5c504e(0x106)](_0x4db6d3){const _0x1f7d94=_0x5c504e;let _0x26c347=this['_univerInstanceService'][_0x1f7d94(0x109)](_0x24b8a6['UNIVER_SLIDE'])[_0x1f7d94(0x113)]();this[_0x1f7d94(0x211)][_0x1f7d94(0x1ed)](_0x26c347),this[_0x1f7d94(0x211)]['createUnit'](_0x24b8a6['UNIVER_SLIDE'],_0x4db6d3);}[_0x5c504e(0x1a2)](_0x4f497b){const _0x4112d4=_0x5c504e;if(_0x4f497b){let {code:_0x24bd8b}=_0x4f497b;switch(_0x24bd8b){case _0x59538c[_0x4112d4(0x142)]:this[_0x4112d4(0x1ea)][_0x4112d4(0x1c2)]({'type':_0x47b0d2[_0x4112d4(0x11d)],'content':this[_0x4112d4(0x15e)]['t'](_0x4112d4(0x1d5))});break;case _0x59538c[_0x4112d4(0x179)]:this[_0x4112d4(0x1ea)]['show']({'type':_0x47b0d2[_0x4112d4(0x11d)],'content':this['_localeService']['t'](_0x4112d4(0x170))});break;default:this['_messageService'][_0x4112d4(0x1c2)]({'type':_0x47b0d2[_0x4112d4(0x11d)],'content':this[_0x4112d4(0x15e)]['t']('exchange-client.networkError')});break;}return null;}return this['_messageService']['show']({'type':_0x47b0d2['Error'],'content':this['_localeService']['t'](_0x4112d4(0x1b4))}),null;}[_0x5c504e(0x195)](_0x24731b){const _0x279f8e=_0x5c504e;let _0x19147c='';switch(_0x24731b){case _0x47b0d2[_0x279f8e(0x173)]:_0x19147c=this['_localeService']['t'](_0x279f8e(0x16b));break;case _0x47b0d2[_0x279f8e(0x165)]:_0x19147c=this['_localeService']['t'](_0x279f8e(0x148));break;default:break;}this['_messageService'][_0x279f8e(0x1c2)]({'type':_0x24731b,'content':_0x19147c});}['_showUploadMessage'](_0x96de94){const _0x28a04e=_0x5c504e;let _0x4de14c='';switch(_0x96de94){case _0x47b0d2['Success']:_0x4de14c=this[_0x28a04e(0x15e)]['t'](_0x28a04e(0x12f));break;case _0x47b0d2['Info']:_0x4de14c=this['_localeService']['t']('exchange-client.uploading');break;default:break;}this['_messageService']['show']({'type':_0x96de94,'content':_0x4de14c});}['_emitProgress'](){const _0x4fae15=_0x5c504e;this[_0x4fae15(0x21e)]['next']({'done':this[_0x4fae15(0x12d)],'count':this[_0x4fae15(0x164)]});}[_0x5c504e(0x18e)](_0x1af923){const _0x12bffb=_0x5c504e;this[_0x12bffb(0x164)]+=_0x1af923,this[_0x12bffb(0x1fe)]();}[_0x5c504e(0x181)](_0x2284f3){const _0x5dac33=_0x5c504e;this[_0x5dac33(0x12d)]+=_0x2284f3,this[_0x5dac33(0x12d)]=Math[_0x5dac33(0xfa)](this['_doneUploadTaskCount'],this[_0x5dac33(0x164)]),this[_0x5dac33(0x1fe)]();}[_0x5c504e(0x221)](){const _0x5dbb21=_0x5c504e;this['_doneUploadTaskCount']=this[_0x5dbb21(0x164)],this[_0x5dbb21(0x1fe)]();}[_0x5c504e(0x1ce)](){const _0x5f4c2f=_0x5c504e;this[_0x5f4c2f(0x12d)]=0x0,this[_0x5f4c2f(0x164)]=0x0,this[_0x5f4c2f(0x1fe)]();}[_0x5c504e(0x1d8)](_0x23d5aa,_0x5e7c4b){const _0x477dd1=_0x5c504e;let _0x22f236=_0x23d5aa[0x0],_0x164456=_0x22f236[_0x477dd1(0x196)];return He(_0x22f236)===_0x5e7c4b?!0x1:(this[_0x477dd1(0x1ea)][_0x477dd1(0x1c2)]({'type':_0x47b0d2[_0x477dd1(0x11d)],'content':this['_localeService']['t']('exchange-client.fileTypeError',_0x164456)}),!0x0);}['_uploadTaskNotDone'](){const _0x336581=_0x5c504e;return this[_0x336581(0x164)]!==0x0&&this[_0x336581(0x12d)]!==this[_0x336581(0x164)];}};Z=D([E(0x0,_0x35058d(_0x3eeec7)),E(0x1,_0x1544db),E(0x2,_0x35058d(_0x5a0b64)),E(0x3,_0x35058d(J)),E(0x4,_0x35058d(j)),E(0x5,_0x540080),E(0x6,_0x35058d(_0x18fe2c))],Z);function at(_0x1b8f88){const _0x2e226d=_0x5c504e;let {onClick:_0x886c30,children:_0x584084,className:_0xde1b0a}=_0x1b8f88;return _0x3a61b7(_0x2e226d(0x10f),{'className':_0x40cc83(_0x2e226d(0xd8),_0xde1b0a),'type':_0x2e226d(0x10f),'onClick':_0x886c30,'children':_0x584084});}function ot(){const _0xf58c3d=_0x5c504e;let _0x15787e=_0x4e7708(X),_0xa5dccd=_0x4e7708(_0x5a0b64);function _0x161619(){_0x15787e['importFileToUnitIdByCurrentType']();}return _0x3a61b7(at,{'onClick':_0x161619,'children':_0xa5dccd['t'](_0xf58c3d(0x127))});}function st(){const _0x5ae0a8=_0x5c504e;return _0x39922c(_0x5ae0a8(0x1ee),{'className':_0x5ae0a8(0x1f6),'children':[_0x3a61b7('span',{'className':'univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x4e7708(_0x5a0b64)['t'](_0x5ae0a8(0xd4))}),_0x3a61b7(ot,{})]});}function ct(_0x4b4818){const _0x425de6=_0x5c504e;let {count:_0xaeff34}=_0x4b4818;return _0x39922c(_0x425de6(0x1ee),{'className':_0x425de6(0x153),'children':[_0x3a61b7(_0x425de6(0x225),{'className':_0x425de6(0x116),'children':_0x4e7708(_0x5a0b64)['t'](_0x425de6(0x1fd),''+_0xaeff34)}),_0x3a61b7(ot,{})]});}function lt(){const _0x35798b=_0x5c504e;let _0x2f14c7=_0x4e7708(X),_0x1f9061=_0x4e7708(_0x5a0b64);function _0x35c24d(){const _0x42a889=_0x2440;_0x2f14c7[_0x42a889(0x189)]();}return _0x3a61b7(at,{'onClick':_0x35c24d,'children':_0x1f9061['t'](_0x35798b(0x1b3))});}function ut(){const _0x3cb269=_0x5c504e;let {count:_0x2e2d17,done:_0x55b91b}=_0xd11166(_0x4e7708(X)['progress$']),_0x519645=_0x2e2d17>0x0?_0x55b91b/_0x2e2d17:0x0;return _0x3a61b7('div',{'className':'univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','children':_0x3a61b7(_0x3cb269(0x1ee),{'className':'univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','style':{'width':Math[_0x3cb269(0x20d)](_0x519645*0x64)+'%'}})});}function dt(){const _0x195acf=_0x5c504e;return _0x39922c(_0x195acf(0x1ee),{'className':_0x195acf(0x1f6),'children':[_0x3a61b7(_0x195acf(0x225),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x4e7708(_0x5a0b64)['t'](_0x195acf(0x1ab))}),_0x3a61b7('div',{'className':_0x195acf(0x166),'children':_0x3a61b7(ut,{})}),_0x3a61b7(lt,{})]});}const ft={0x1:_0x3a61b7(_0x467180,{'className':_0x5c504e(0x140)}),0x0:_0x3a61b7(_0x4d8d84,{'className':_0x5c504e(0xe0)}),0x2:_0x3a61b7(_0x398e7c,{'className':_0x5c504e(0xf4)})};function pt(){const _0x3771aa=_0x5c504e;let _0x578dfb=_0x4e7708(j),_0x455a77=_0x4e7708(_0x5a0b64),_0x563428=_0xd11166(_0x578dfb[_0x3771aa(0x20b)],0x0),_0x27536b=_0xd11166(_0x578dfb[_0x3771aa(0xd5)],!0x1),_0x36043a=_0xd11166(_0x578dfb[_0x3771aa(0x206)],[]);function _0x54aa25(){const _0x4d4728=_0x3771aa;_0x578dfb[_0x4d4728(0x1f8)]();}function _0x4ee5a0(_0x3da982){const _0x275944=_0x3771aa;switch(_0x3da982){case 0x1:return _0x455a77['t'](_0x275944(0x12f));case 0x0:return _0x455a77['t']('exchange-client.uploading');case 0x2:return _0x455a77['t']('exchange-client.unknownMistake');default:return'';}}return _0x27536b&&_0x39922c(_0x3771aa(0x1ee),{'className':_0x3771aa(0x198),'children':[_0x39922c(_0x3771aa(0x1ee),{'className':_0x3771aa(0xdd),'children':[_0x39922c(_0x3771aa(0x225),{'className':_0x3771aa(0x130),'children':[_0x3a61b7(_0x3771aa(0x225),{'className':_0x3771aa(0x1a7),'children':ft[_0x563428]}),_0x3a61b7(_0x3771aa(0x225),{'className':_0x3771aa(0x161),'children':_0x4ee5a0(_0x563428)})]}),_0x3a61b7(_0x3771aa(0x225),{'className':_0x3771aa(0x1d7),'onClick':_0x54aa25,'children':_0x3a61b7(_0x5dbead,{})})]}),_0x39922c(_0x3771aa(0x1ee),{'children':[_0x563428===0x0&&_0x3a61b7(dt,{}),_0x563428===0x2&&_0x3a61b7(st,{}),_0x36043a[_0x3771aa(0x184)]>0x0&&_0x3a61b7(Be,{'list':_0x36043a}),_0x563428===0x1&&_0x3a61b7(ct,{'count':_0x36043a[_0x3771aa(0x184)]})]})]});}function mt(){return _0x3a61b7(pt,{});}let Q=class extends _0x550844{constructor(_0x53b74c,_0x23ed2b){const _0x5edd4c=_0x5c504e;super(),this[_0x5edd4c(0x212)]=_0x53b74c,this[_0x5edd4c(0x1e2)]=_0x23ed2b,this[_0x5edd4c(0x1a5)]();}[_0x5c504e(0x1a5)](){const _0x106c7a=_0x5c504e;this[_0x106c7a(0x134)](this['_uiPartsService'][_0x106c7a(0x128)](_0x4f3b08[_0x106c7a(0x1bf)],()=>_0x32b9d6(mt,this[_0x106c7a(0x212)])));}};Q=D([E(0x0,_0x35058d(_0xfe1cbc)),E(0x1,_0x2537d8)],Q);let $=class extends _0x2c045d{constructor(_0x8f8b28=Ie,_0x5e5b67,_0x7edbfa){const _0x2481da=_0x5c504e;super(),this['_config']=_0x8f8b28,this[_0x2481da(0x212)]=_0x5e5b67,this[_0x2481da(0x1a3)]=_0x7edbfa;let {..._0x4f8e74}=_0x42532d({},Ie,this[_0x2481da(0xe8)]);this[_0x2481da(0x1a3)]['setConfig'](T,_0x4f8e74);}[_0x5c504e(0x17e)](){const _0xbc5c32=_0x5c504e;_0x15c917(this[_0xbc5c32(0x212)],[[O],[Q],[X,{'useClass':Z}],[J,{'useClass':Y}],[W,{'useClass':G}],[j,{'useClass':ze}]]);}[_0x5c504e(0xeb)](){const _0x49b8d2=_0x5c504e;_0x5c237b(this[_0x49b8d2(0x212)],[[O],[Q],[X]]);}};A($,_0x5c504e(0x168),_0x5c504e(0x172)),A($,'packageName',Pe),A($,'version',Fe),$=D([_0x28e539(_0x14b948,_0x1101b8),E(0x1,_0x35058d(_0xfe1cbc)),E(0x2,_0x36c765)],$);export{X as IExchangeOperateService,J as IExchangeService,$ as UniverExchangeClientPlugin,Ve as downloadFile,tt as transformSnapshotJsonToWorkbookData,Qe as transformWorkbookDataToSnapshotJson};
|