@univerjs-pro/exchange-client 1.0.0-alpha.5 → 1.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +10 -10
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x43d9c2=_0x3d37;function _0x2c3e(){const _0x218443=['1592656buMuRh','データが大きすぎます','{0}\x20個のファイルが正常にアップロードされました','35tOosDO','1822338uqLFNv','961610HprMNP','キャンセル','ダウンロードが完了しました','お待ちください...','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','アップロード中','2805112fDQDxD','1248660WxkYQm','ダウンロード中','再度アップロード','5555232oVpUDL','ネットワークエラー','2279040uSztVn'];_0x2c3e=function(){return _0x218443;};return _0x2c3e();}(function(_0x257806,_0x46eaab){const _0x410ac2=_0x3d37,_0x250040=_0x257806();while(!![]){try{const _0xf60ef5=parseInt(_0x410ac2(0xb5))/0x1+parseInt(_0x410ac2(0xb0))/0x2+-parseInt(_0x410ac2(0xb4))/0x3+-parseInt(_0x410ac2(0xa9))/0x4+-parseInt(_0x410ac2(0xaa))/0x5+-parseInt(_0x410ac2(0xad))/0x6+parseInt(_0x410ac2(0xb3))/0x7*(parseInt(_0x410ac2(0xaf))/0x8);if(_0xf60ef5===_0x46eaab)break;else _0x250040['push'](_0x250040['shift']());}catch(_0x3e3cf5){_0x250040['push'](_0x250040['shift']());}}}(_0x2c3e,0xaa69a));function _0x3d37(_0x343500,_0x40a284){_0x343500=_0x343500-0xa6;const _0x2c3e24=_0x2c3e();let _0x3d376b=_0x2c3e24[_0x343500];return _0x3d376b;}const e={'exchange-client':{'uploading':_0x43d9c2(0xa8),'uploadSuccess':'ファイルが正常にアップロードされました','uploadSuccessTip':_0x43d9c2(0xb2),'downloading':_0x43d9c2(0xab),'downloadSuccess':_0x43d9c2(0xb7),'unknownMistake':'不明なエラー','networkError':_0x43d9c2(0xae),'tooLarge':_0x43d9c2(0xb1),'internalError':'内部エラーが発生しました','interrupt':_0x43d9c2(0xa7),'fileTypeError':'選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','wait':_0x43d9c2(0xa6),'cancel':_0x43d9c2(0xb6),'uploadAgain':_0x43d9c2(0xac)}};module['exports']=e;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xd63c26=_0x2cc1;(function(_0x3f0d94,_0x519c92){const _0x439154=_0x2cc1,_0x14fb56=_0x3f0d94();while(!![]){try{const _0x1ce546=-parseInt(_0x439154(0x1e6))/0x1+-parseInt(_0x439154(0x1ea))/0x2*(-parseInt(_0x439154(0x1ef))/0x3)+parseInt(_0x439154(0x1f5))/0x4*(parseInt(_0x439154(0x1ee))/0x5)+parseInt(_0x439154(0x1f0))/0x6+parseInt(_0x439154(0x1e4))/0x7+-parseInt(_0x439154(0x1e5))/0x8*(parseInt(_0x439154(0x1f1))/0x9)+-parseInt(_0x439154(0x1f4))/0xa;if(_0x1ce546===_0x519c92)break;else _0x14fb56['push'](_0x14fb56['shift']());}catch(_0x3bd124){_0x14fb56['push'](_0x14fb56['shift']());}}}(_0x293b,0x1c1a6));const e={'exchange-client':{'uploading':'업로드\x20중','uploadSuccess':'파일이\x20성공적으로\x20업로드되었습니다','uploadSuccessTip':_0xd63c26(0x1e9),'downloading':'다운로드\x20중','downloadSuccess':'다운로드가\x20완료되었습니다','unknownMistake':_0xd63c26(0x1f3),'networkError':_0xd63c26(0x1ed),'tooLarge':'데이터가\x20너무\x20큽니다','internalError':_0xd63c26(0x1ec),'interrupt':_0xd63c26(0x1e8),'fileTypeError':_0xd63c26(0x1e7),'wait':_0xd63c26(0x1f6),'cancel':'취소','uploadAgain':_0xd63c26(0x1eb)}};module[_0xd63c26(0x1f2)]=e;function _0x2cc1(_0xb0f063,_0x4ef1ce){_0xb0f063=_0xb0f063-0x1e4;const _0x293baa=_0x293b();let _0x2cc18c=_0x293baa[_0xb0f063];return _0x2cc18c;}function _0x293b(){const _0x57a6a2=['1594544LnZWEe','401168LgSiHo','61850dqowLG','선택한\x20파일\x20[{0}]은(는)\x20업로드가\x20지원되지\x20않습니다','네트워크\x20연결이\x20중단되어\x20파일\x20업로드에\x20실패했습니다','{0}개의\x20파일이\x20성공적으로\x20업로드되었습니다','1156GRFyPn','다시\x20업로드','내부\x20오류가\x20발생했습니다','네트워크\x20오류','79690jQENJT','282bUehxA','1214010wtuCRA','18yJxkzO','exports','알\x20수\x20없는\x20오류','2390830dtFGDH','8TEgRFK','잠시만\x20기다려\x20주세요...'];_0x293b=function(){return _0x57a6a2;};return _0x293b();}
|
package/lib/cjs/locale/pl-PL.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3287(){const _0xa50d29=['315zjoaNA','4062oKGHUG','308362OVsGav','1315oOFGVn','Anuluj','2bZiPyy','Pobieranie\x20zakończone\x20sukcesem','Plik\x20przesłany\x20pomyślnie','Pobieranie','Wybrany\x20plik\x20[{0}]\x20nie\x20jest\x20obsługiwany\x20do\x20przesyłania','200wRCLFA','Wewnętrzny\x20nieznany\x20błąd','5291bbWcqP','exports','34260VYaEbV','1564822ZSWCbf','Pomyślnie\x20przesłano\x20{0}\x20plik(ów)','Proszę\x20czekać...','Błąd\x20sieci','Nieznany\x20błąd','505604kwTpGu','4RSfcCa','1889331qyRufC','206344ljkCBS','Prześlij\x20ponownie'];_0x3287=function(){return _0xa50d29;};return _0x3287();}const _0x4e37ef=_0xb789;function _0xb789(_0x5b9265,_0x61276){_0x5b9265=_0x5b9265-0xea;const _0x328725=_0x3287();let _0xb7890c=_0x328725[_0x5b9265];return _0xb7890c;}(function(_0x1fbc16,_0x33e914){const _0x404304=_0xb789,_0x249bec=_0x1fbc16();while(!![]){try{const _0x316d83=parseInt(_0x404304(0xfb))/0x1*(parseInt(_0x404304(0xf8))/0x2)+-parseInt(_0x404304(0xf3))/0x3*(-parseInt(_0x404304(0xf2))/0x4)+-parseInt(_0x404304(0xf9))/0x5*(-parseInt(_0x404304(0xf7))/0x6)+parseInt(_0x404304(0xec))/0x7+parseInt(_0x404304(0xf4))/0x8*(-parseInt(_0x404304(0xf6))/0x9)+parseInt(_0x404304(0x100))/0xa*(-parseInt(_0x404304(0xf1))/0xb)+parseInt(_0x404304(0xeb))/0xc*(parseInt(_0x404304(0x102))/0xd);if(_0x316d83===_0x33e914)break;else _0x249bec['push'](_0x249bec['shift']());}catch(_0x1c1d17){_0x249bec['push'](_0x249bec['shift']());}}}(_0x3287,0xa5f06));const e={'exchange-client':{'uploading':'Przesyłanie','uploadSuccess':_0x4e37ef(0xfd),'uploadSuccessTip':_0x4e37ef(0xed),'downloading':_0x4e37ef(0xfe),'downloadSuccess':_0x4e37ef(0xfc),'unknownMistake':_0x4e37ef(0xf0),'networkError':_0x4e37ef(0xef),'tooLarge':'Dane\x20są\x20zbyt\x20duże','internalError':_0x4e37ef(0x101),'interrupt':'Połączenie\x20sieciowe\x20zostało\x20przerwane\x20i\x20przesyłanie\x20pliku\x20nie\x20powiodło\x20się','fileTypeError':_0x4e37ef(0xff),'wait':_0x4e37ef(0xee),'cancel':_0x4e37ef(0xfa),'uploadAgain':_0x4e37ef(0xf5)}};module[_0x4e37ef(0xea)]=e;
|
package/lib/cjs/locale/pt-BR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xefab10=_0x4d5c;(function(_0x3eddf1,_0x4b310b){const _0x2adbdb=_0x4d5c,_0x206c4b=_0x3eddf1();while(!![]){try{const _0x152fd0=parseInt(_0x2adbdb(0xc0))/0x1+parseInt(_0x2adbdb(0xbb))/0x2+parseInt(_0x2adbdb(0xb7))/0x3+parseInt(_0x2adbdb(0xbf))/0x4+-parseInt(_0x2adbdb(0xb8))/0x5*(parseInt(_0x2adbdb(0xbc))/0x6)+-parseInt(_0x2adbdb(0xc4))/0x7+-parseInt(_0x2adbdb(0xc8))/0x8;if(_0x152fd0===_0x4b310b)break;else _0x206c4b['push'](_0x206c4b['shift']());}catch(_0x34c68c){_0x206c4b['push'](_0x206c4b['shift']());}}}(_0x5b14,0xb836e));const e={'exchange-client':{'uploading':_0xefab10(0xc3),'uploadSuccess':_0xefab10(0xbd),'uploadSuccessTip':_0xefab10(0xb6),'downloading':_0xefab10(0xbe),'downloadSuccess':_0xefab10(0xb5),'unknownMistake':_0xefab10(0xc1),'networkError':'Erro\x20de\x20rede','tooLarge':'Os\x20dados\x20são\x20muito\x20grandes','internalError':_0xefab10(0xc5),'interrupt':_0xefab10(0xc2),'fileTypeError':_0xefab10(0xb9),'wait':_0xefab10(0xc6),'cancel':'Cancelar','uploadAgain':_0xefab10(0xba)}};function _0x4d5c(_0x32a246,_0x223241){_0x32a246=_0x32a246-0xb5;const _0x5b1444=_0x5b14();let _0x4d5cb3=_0x5b1444[_0x32a246];return _0x4d5cb3;}module[_0xefab10(0xc7)]=e;function _0x5b14(){const _0x5c07b2=['6mByHnr','Arquivo\x20enviado\x20com\x20sucesso','Baixando','3705528nnVjWh','661836qOsVnx','Erro\x20desconhecido','A\x20conexão\x20de\x20rede\x20foi\x20interrompida\x20e\x20o\x20envio\x20do\x20arquivo\x20falhou','Enviando','4714598Yrfvth','Erro\x20interno\x20desconhecido','Aguarde...','exports','10803232HPXrUO','Download\x20concluído\x20com\x20sucesso','{0}\x20arquivo(s)\x20enviado(s)\x20com\x20sucesso','1414500ovhcrD','1850950awjBcj','O\x20arquivo\x20selecionado\x20[{0}]\x20não\x20é\x20suportado\x20para\x20envio','Enviar\x20novamente','2177864XbimjY'];_0x5b14=function(){return _0x5c07b2;};return _0x5b14();}
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1ad584=_0x44c8;(function(_0x5138b4,_0x318fd7){const _0x4ed7a6=_0x44c8,_0x46793a=_0x5138b4();while(!![]){try{const _0x5504b7=parseInt(_0x4ed7a6(0x198))/0x1+parseInt(_0x4ed7a6(0x191))/0x2*(parseInt(_0x4ed7a6(0x19b))/0x3)+parseInt(_0x4ed7a6(0x18f))/0x4*(parseInt(_0x4ed7a6(0x192))/0x5)+-parseInt(_0x4ed7a6(0x19c))/0x6+parseInt(_0x4ed7a6(0x1a0))/0x7*(parseInt(_0x4ed7a6(0x19a))/0x8)+-parseInt(_0x4ed7a6(0x19e))/0x9*(parseInt(_0x4ed7a6(0x1a4))/0xa)+-parseInt(_0x4ed7a6(0x194))/0xb*(parseInt(_0x4ed7a6(0x18e))/0xc);if(_0x5504b7===_0x318fd7)break;else _0x46793a['push'](_0x46793a['shift']());}catch(_0xd058bd){_0x46793a['push'](_0x46793a['shift']());}}}(_0x14ea,0xec4b6));const e={'exchange-client':{'uploading':_0x1ad584(0x1a5),'uploadSuccess':'Файл\x20успешно\x20загружен','uploadSuccessTip':_0x1ad584(0x195),'downloading':_0x1ad584(0x19d),'downloadSuccess':_0x1ad584(0x199),'unknownMistake':_0x1ad584(0x197),'networkError':_0x1ad584(0x196),'tooLarge':_0x1ad584(0x193),'internalError':_0x1ad584(0x1a2),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','fileTypeError':_0x1ad584(0x1a1),'wait':_0x1ad584(0x190),'cancel':_0x1ad584(0x18d),'uploadAgain':_0x1ad584(0x1a3)}};function _0x44c8(_0x121d30,_0x2bd9b7){_0x121d30=_0x121d30-0x18d;const _0x14ea7a=_0x14ea();let _0x44c8ac=_0x14ea7a[_0x121d30];return _0x44c8ac;}module[_0x1ad584(0x19f)]=e;function _0x14ea(){const _0x2634fb=['11wDAHzr','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Сетевая\x20ошибка','Неизвестная\x20ошибка','1528184reaVIb','Скачивание\x20успешно','8KyJDhB','3474291ySYyhr','7566948fWZpid','Скачивание','585rWqSru','exports','73003apMYdl','Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','Внутренняя\x20неизвестная\x20ошибка','Загрузить\x20снова','9550cPZGim','Загрузка','Отмена','24350124sfNcSd','472FlhPBp','Пожалуйста,\x20подождите...','2ekwAYi','68795KyJrHn','Данные\x20слишком\x20большие'];_0x14ea=function(){return _0x2634fb;};return _0x14ea();}
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2559(_0x532210,_0x1b200c){_0x532210=_0x532210-0xb5;const _0x2ce305=_0x2ce3();let _0x255955=_0x2ce305[_0x532210];return _0x255955;}const _0x3974bd=_0x2559;(function(_0x48e7f3,_0x42c54e){const _0x1877b7=_0x2559,_0xab1e12=_0x48e7f3();while(!![]){try{const _0x39e6bc=-parseInt(_0x1877b7(0xbb))/0x1+-parseInt(_0x1877b7(0xbf))/0x2+-parseInt(_0x1877b7(0xc2))/0x3+-parseInt(_0x1877b7(0xbd))/0x4*(parseInt(_0x1877b7(0xbc))/0x5)+parseInt(_0x1877b7(0xc3))/0x6+-parseInt(_0x1877b7(0xc8))/0x7+parseInt(_0x1877b7(0xbe))/0x8;if(_0x39e6bc===_0x42c54e)break;else _0xab1e12['push'](_0xab1e12['shift']());}catch(_0x400b32){_0xab1e12['push'](_0xab1e12['shift']());}}}(_0x2ce3,0x80f43));function _0x2ce3(){const _0x557291=['715940KgeKGy','Sťahovanie','Nahrať\x20znova','2269803tDOwxM','3120810ywJRuM','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Prosím\x20počkajte...','Úspešne\x20nahraných\x20{0}\x20súborov','Neznáma\x20chyba','2419921KHpsvp','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','Sieťová\x20chyba','Interná\x20neznáma\x20chyba','Zrušiť','Sťahovanie\x20úspešné','Nahrávanie','Dáta\x20sú\x20príliš\x20veľké','Súbor\x20bol\x20úspešne\x20nahraný','exports','890257MJAKhV','4695630ldhrjr','4OSZGmY','26381736euPQsV'];_0x2ce3=function(){return _0x557291;};return _0x2ce3();}const e={'exchange-client':{'uploading':_0x3974bd(0xb7),'uploadSuccess':_0x3974bd(0xb9),'uploadSuccessTip':_0x3974bd(0xc6),'downloading':_0x3974bd(0xc0),'downloadSuccess':_0x3974bd(0xb6),'unknownMistake':_0x3974bd(0xc7),'networkError':_0x3974bd(0xca),'tooLarge':_0x3974bd(0xb8),'internalError':_0x3974bd(0xcb),'interrupt':_0x3974bd(0xc9),'fileTypeError':_0x3974bd(0xc4),'wait':_0x3974bd(0xc5),'cancel':_0x3974bd(0xb5),'uploadAgain':_0x3974bd(0xc1)}};module[_0x3974bd(0xba)]=e;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x53b0d8=_0x82ef;(function(_0x2d3807,_0x47e54b){const _0x5226ff=_0x82ef,_0x1d276a=_0x2d3807();while(!![]){try{const _0x4e35b2=-parseInt(_0x5226ff(0x164))/0x1*(-parseInt(_0x5226ff(0x16c))/0x2)+-parseInt(_0x5226ff(0x173))/0x3+parseInt(_0x5226ff(0x165))/0x4+parseInt(_0x5226ff(0x166))/0x5+parseInt(_0x5226ff(0x172))/0x6+parseInt(_0x5226ff(0x167))/0x7*(parseInt(_0x5226ff(0x16f))/0x8)+-parseInt(_0x5226ff(0x174))/0x9;if(_0x4e35b2===_0x47e54b)break;else _0x1d276a['push'](_0x1d276a['shift']());}catch(_0x5b4708){_0x1d276a['push'](_0x1d276a['shift']());}}}(_0x35b2,0xa48e5));function _0x82ef(_0x3eb9b4,_0x58ee3e){_0x3eb9b4=_0x3eb9b4-0x163;const _0x35b293=_0x35b2();let _0x82ef4b=_0x35b293[_0x3eb9b4];return _0x82ef4b;}function _0x35b2(){const _0x3b2fd0=['700ccrGLI','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Lỗi\x20không\x20xác\x20định','Lỗi\x20mạng','4494LylQsm','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','25616XFqOHT','exports','Tải\x20lên\x20lại','377958eDXTuS','586389gpyhkT','25084008WGBFPz','Đang\x20tải\x20lên','Vui\x20lòng\x20đợi...','373PwcBQG','4794796WWclvu','6182865pJiUej'];_0x35b2=function(){return _0x3b2fd0;};return _0x35b2();}const e={'exchange-client':{'uploading':_0x53b0d8(0x175),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x53b0d8(0x16e),'downloading':'Đang\x20tải\x20xuống','downloadSuccess':'Tải\x20xuống\x20thành\x20công','unknownMistake':_0x53b0d8(0x16a),'networkError':_0x53b0d8(0x16b),'tooLarge':_0x53b0d8(0x169),'internalError':_0x53b0d8(0x168),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','fileTypeError':_0x53b0d8(0x16d),'wait':_0x53b0d8(0x163),'cancel':'Hủy\x20bỏ','uploadAgain':_0x53b0d8(0x171)}};module[_0x53b0d8(0x170)]=e;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x47b2e9=_0x3fe8;function _0x3fe8(_0x4555a4,_0x332f9a){_0x4555a4=_0x4555a4-0xff;const _0x1664cd=_0x1664();let _0x3fe8a2=_0x1664cd[_0x4555a4];return _0x3fe8a2;}(function(_0x151ec8,_0x151b95){const _0x1487d0=_0x3fe8,_0x4291d3=_0x151ec8();while(!![]){try{const _0x556506=parseInt(_0x1487d0(0x112))/0x1+-parseInt(_0x1487d0(0x101))/0x2*(-parseInt(_0x1487d0(0x114))/0x3)+-parseInt(_0x1487d0(0x102))/0x4*(-parseInt(_0x1487d0(0x104))/0x5)+parseInt(_0x1487d0(0x100))/0x6*(parseInt(_0x1487d0(0x10f))/0x7)+-parseInt(_0x1487d0(0x105))/0x8*(-parseInt(_0x1487d0(0x108))/0x9)+-parseInt(_0x1487d0(0x115))/0xa+-parseInt(_0x1487d0(0xff))/0xb*(parseInt(_0x1487d0(0x109))/0xc);if(_0x556506===_0x151b95)break;else _0x4291d3['push'](_0x4291d3['shift']());}catch(_0x385bd0){_0x4291d3['push'](_0x4291d3['shift']());}}}(_0x1664,0xbebf8));const e={'exchange-client':{'uploading':_0x47b2e9(0x10a),'uploadSuccess':_0x47b2e9(0x111),'uploadSuccessTip':_0x47b2e9(0x113),'downloading':_0x47b2e9(0x10c),'downloadSuccess':_0x47b2e9(0x107),'unknownMistake':_0x47b2e9(0x103),'networkError':'网络异常','tooLarge':_0x47b2e9(0x10d),'internalError':_0x47b2e9(0x10b),'interrupt':_0x47b2e9(0x110),'fileTypeError':_0x47b2e9(0x106),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x47b2e9(0x10e)}};module['exports']=e;function _0x1664(){const _0x56a77e=['所选文件\x20[{0}]\x20不支持上传','下载成功','626841pWyjmE','12nsVKXD','上传中','内部未知错误','下载中','数据流过大','再次上传','10135195nYJxBb','网络连接中断,文件上传失败','文件上传成功','1001431HFzLQd','{0}个文件上传成功','1866336TkKqTK','217120WImUAw','32656591QaQHFL','6lkYBXt','2SjVEwV','3592VIWxRS','未知错误','1185fQZnPD','56OZbBqM'];_0x1664=function(){return _0x56a77e;};return _0x1664();}
|
package/lib/cjs/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x254a(_0x378614,_0x3b8f14){_0x378614=_0x378614-0x18c;const _0x57688e=_0x5768();let _0x254adf=_0x57688e[_0x378614];return _0x254adf;}const _0x505c76=_0x254a;(function(_0x5e3ef5,_0x32c4da){const _0x43f8e6=_0x254a,_0x2f4fec=_0x5e3ef5();while(!![]){try{const _0x3afd67=-parseInt(_0x43f8e6(0x19b))/0x1*(parseInt(_0x43f8e6(0x19c))/0x2)+parseInt(_0x43f8e6(0x195))/0x3*(parseInt(_0x43f8e6(0x193))/0x4)+parseInt(_0x43f8e6(0x18f))/0x5+-parseInt(_0x43f8e6(0x198))/0x6+parseInt(_0x43f8e6(0x197))/0x7*(-parseInt(_0x43f8e6(0x191))/0x8)+parseInt(_0x43f8e6(0x190))/0x9*(-parseInt(_0x43f8e6(0x19f))/0xa)+parseInt(_0x43f8e6(0x19d))/0xb;if(_0x3afd67===_0x32c4da)break;else _0x2f4fec['push'](_0x2f4fec['shift']());}catch(_0x58d24e){_0x2f4fec['push'](_0x2f4fec['shift']());}}}(_0x5768,0x734d6));const e={'exchange-client':{'uploading':_0x505c76(0x196),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':_0x505c76(0x18c),'downloading':_0x505c76(0x18d),'downloadSuccess':_0x505c76(0x19e),'unknownMistake':_0x505c76(0x192),'networkError':_0x505c76(0x194),'tooLarge':'資料流過大','internalError':_0x505c76(0x19a),'interrupt':_0x505c76(0x18e),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':'請稍等...','cancel':'取消','uploadAgain':_0x505c76(0x199)}};function _0x5768(){const _0x36491d=['上傳中','163793RAWEiW','1384716LglojU','再次上傳','內部未知錯誤','1PxnzIK','1688402XwqCVK','24800116NKfMwt','下載成功','50xIVouP','{0}個檔案上傳成功','下載中','網絡連線中斷,檔案上傳失敗','3525445zZFeKH','1445661heHVUp','312SMSRFV','未知錯誤','32792tazdfu','網絡異常','111BxldFJ'];_0x5768=function(){return _0x36491d;};return _0x5768();}module['exports']=e;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4c4220=_0x3310;function _0x3310(_0x54bf1d,_0x14c981){_0x54bf1d=_0x54bf1d-0x18d;const _0x126315=_0x1263();let _0x331007=_0x126315[_0x54bf1d];return _0x331007;}(function(_0x19fb2d,_0x2c0140){const _0x711954=_0x3310,_0x5a8c3f=_0x19fb2d();while(!![]){try{const _0x4b1981=parseInt(_0x711954(0x18f))/0x1+parseInt(_0x711954(0x190))/0x2*(-parseInt(_0x711954(0x192))/0x3)+-parseInt(_0x711954(0x196))/0x4+-parseInt(_0x711954(0x19e))/0x5+parseInt(_0x711954(0x193))/0x6*(parseInt(_0x711954(0x197))/0x7)+parseInt(_0x711954(0x198))/0x8+-parseInt(_0x711954(0x19d))/0x9;if(_0x4b1981===_0x2c0140)break;else _0x5a8c3f['push'](_0x5a8c3f['shift']());}catch(_0x4d7ec6){_0x5a8c3f['push'](_0x5a8c3f['shift']());}}}(_0x1263,0x7b09b));const e={'exchange-client':{'uploading':'上傳中','uploadSuccess':_0x4c4220(0x191),'uploadSuccessTip':_0x4c4220(0x18e),'downloading':_0x4c4220(0x19f),'downloadSuccess':_0x4c4220(0x18d),'unknownMistake':'未知錯誤','networkError':_0x4c4220(0x19a),'tooLarge':_0x4c4220(0x195),'internalError':'內部未知錯誤','interrupt':_0x4c4220(0x1a0),'fileTypeError':_0x4c4220(0x19c),'wait':_0x4c4220(0x199),'cancel':'取消','uploadAgain':_0x4c4220(0x19b)}};module[_0x4c4220(0x194)]=e;function _0x1263(){const _0x56897c=['{0}個檔案上傳成功','519867qSnTWJ','2ubFxdE','檔案上傳成功','608466TTFVNS','3926964GOIvBm','exports','資料流過大','2391352Tgexst','7zuAFYV','5389736gIShVV','請稍等...','網路異常','再次上傳','所選檔案\x20[{0}]\x20不支援上傳','3909636ZeCQsM','545255aQKMIF','下載中','網路連線中斷,檔案上傳失敗','下載成功'];_0x1263=function(){return _0x56897c;};return _0x1263();}
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x4feb(_0x1da5c4,_0x41584e){_0x1da5c4=_0x1da5c4-0x137;var _0x1a3ff9=_0x1a3f();var _0x4febc3=_0x1a3ff9[_0x1da5c4];return _0x4febc3;}var _0x464ff6=_0x4feb;(function(_0x5981af,_0x1bba07){var _0x4babf2=_0x4feb,_0x42dae6=_0x5981af();while(!![]){try{var _0x513da6=parseInt(_0x4babf2(0x14a))/0x1+-parseInt(_0x4babf2(0x14c))/0x2+-parseInt(_0x4babf2(0x13b))/0x3*(-parseInt(_0x4babf2(0x157))/0x4)+parseInt(_0x4babf2(0x158))/0x5+-parseInt(_0x4babf2(0x138))/0x6*(-parseInt(_0x4babf2(0x150))/0x7)+parseInt(_0x4babf2(0x148))/0x8*(parseInt(_0x4babf2(0x13c))/0x9)+-parseInt(_0x4babf2(0x140))/0xa*(parseInt(_0x4babf2(0x13f))/0xb);if(_0x513da6===_0x1bba07)break;else _0x42dae6['push'](_0x42dae6['shift']());}catch(_0x15f0c1){_0x42dae6['push'](_0x42dae6['shift']());}}}(_0x1a3f,0xf2afb));import{IExchangeService as _0x18de02}from'@univerjs-pro/exchange-client';import{UniverInstanceType as _0x804c43}from'@univerjs/core';import{FUniver as _0x4ae6e0}from'@univerjs/core/facade';var r=class extends _0x4ae6e0{[_0x464ff6(0x139)](_0x232c9b,_0x307123,_0x3211dc){var _0x3e19ea=_0x464ff6;this['_injector'][_0x3e19ea(0x141)](_0x18de02)[_0x3e19ea(0x139)](_0x232c9b,_0x307123,_0x3211dc);}async['transformSnapshotJsonToWorkbookDataAsync'](_0x5592a2){var _0x3faf63=_0x464ff6;return this[_0x3faf63(0x143)][_0x3faf63(0x141)](_0x18de02)['transformSnapshotJsonToWorkbookData'](_0x5592a2);}async[_0x464ff6(0x137)](_0x40e502){var _0x26711f=_0x464ff6;return this[_0x26711f(0x143)]['get'](_0x18de02)['transformWorkbookDataToSnapshotJson'](_0x40e502);}async['importXLSXToUnitIdAsync'](_0xc7e9fc){var _0x9ad13e=_0x464ff6;return this[_0x9ad13e(0x143)][_0x9ad13e(0x141)](_0x18de02)[_0x9ad13e(0x155)](_0xc7e9fc,_0x804c43['UNIVER_SHEET']);}async[_0x464ff6(0x14e)](_0x558203){var _0x50b3a1=_0x464ff6;return this[_0x50b3a1(0x143)][_0x50b3a1(0x141)](_0x18de02)[_0x50b3a1(0x144)](_0x558203);}async[_0x464ff6(0x156)](_0x4ea2ba){var _0x5d920e=_0x464ff6;return this[_0x5d920e(0x143)][_0x5d920e(0x141)](_0x18de02)[_0x5d920e(0x14f)](_0x4ea2ba);}async[_0x464ff6(0x142)](_0x58c205){var _0x10d9f5=_0x464ff6;return this[_0x10d9f5(0x143)][_0x10d9f5(0x141)](_0x18de02)[_0x10d9f5(0x153)](_0x58c205);}async[_0x464ff6(0x14d)](_0x14dbe1){var _0x15b524=_0x464ff6;return this[_0x15b524(0x143)][_0x15b524(0x141)](_0x18de02)[_0x15b524(0x155)](_0x14dbe1,_0x804c43[_0x15b524(0x149)]);}async['importDOCXToSnapshotAsync'](_0x20231c){var _0x202a79=_0x464ff6;return this['_injector'][_0x202a79(0x141)](_0x18de02)[_0x202a79(0x13e)](_0x20231c);}async['exportDOCXBySnapshotAsync'](_0xafecd){var _0x44df1e=_0x464ff6;return this['_injector']['get'](_0x18de02)[_0x44df1e(0x13a)](_0xafecd);}async[_0x464ff6(0x147)](_0xc67179){var _0xf3de60=_0x464ff6;return this[_0xf3de60(0x143)][_0xf3de60(0x141)](_0x18de02)['exportDOCXByUnitId'](_0xc67179);}async[_0x464ff6(0x154)](_0xb95d6){var _0x3adb28=_0x464ff6;return this[_0x3adb28(0x143)][_0x3adb28(0x141)](_0x18de02)['importFileToUnitId'](_0xb95d6,_0x804c43['UNIVER_SLIDE']);}async[_0x464ff6(0x152)](_0x1cbc1c){var _0x32c908=_0x464ff6;return this[_0x32c908(0x143)][_0x32c908(0x141)](_0x18de02)[_0x32c908(0x151)](_0x1cbc1c);}async[_0x464ff6(0x145)](_0x10bb1a){var _0x4617bd=_0x464ff6;return this[_0x4617bd(0x143)][_0x4617bd(0x141)](_0x18de02)[_0x4617bd(0x14b)](_0x10bb1a);}async[_0x464ff6(0x13d)](_0x133d08){var _0x3fdff9=_0x464ff6;return this[_0x3fdff9(0x143)][_0x3fdff9(0x141)](_0x18de02)['exportPPTXBySnapshot'](_0x133d08);}};_0x4ae6e0[_0x464ff6(0x146)](r);export{};function _0x1a3f(){var _0x26ee62=['4SaLjxF','1803005eAFnpV','transformWorkbookDataToSnapshotJsonAsync','1075758gUConQ','downloadFile','exportDOCXBySnapshot','3757353pzUOFj','45LAXQMj','exportPPTXBySnapshotAsync','importDOCXToSnapshot','33WNthPn','8678690rJtjgm','get','exportXLSXBySnapshotAsync','_injector','importXLSXToSnapshot','exportPPTXByUnitIdAsync','extend','exportDOCXByUnitIdAsync','555432zhIMdL','UNIVER_DOC','1435016gFzvIE','exportPPTXByUnitId','1388056oWONGR','importDOCXToUnitIdAsync','importXLSXToSnapshotAsync','exportXLSXByUnitId','35zAqXIh','importPPTXToSnapshot','importPPTXToSnapshotAsync','exportXLSXBySnapshot','importPPTXToUnitIdAsync','importFileToUnitId','exportXLSXByUnitIdAsync'];_0x1a3f=function(){return _0x26ee62;};return _0x1a3f();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x33286a=_0x5cad;(function(_0x31bdc8,_0x5e038a){const _0x1615aa=_0x5cad,_0x4de0c8=_0x31bdc8();while(!![]){try{const _0xdb03c6=parseInt(_0x1615aa(0x1d7))/0x1*(parseInt(_0x1615aa(0x264))/0x2)+parseInt(_0x1615aa(0x265))/0x3+parseInt(_0x1615aa(0x17c))/0x4*(-parseInt(_0x1615aa(0x2ca))/0x5)+parseInt(_0x1615aa(0x209))/0x6*(-parseInt(_0x1615aa(0x1b1))/0x7)+-parseInt(_0x1615aa(0x1ab))/0x8+parseInt(_0x1615aa(0x251))/0x9+-parseInt(_0x1615aa(0x2b3))/0xa*(-parseInt(_0x1615aa(0x29e))/0xb);if(_0xdb03c6===_0x5e038a)break;else _0x4de0c8['push'](_0x4de0c8['shift']());}catch(_0x397ae7){_0x4de0c8['push'](_0x4de0c8['shift']());}}}(_0x1136,0x2e0f9));import{UniverLicensePlugin as _0x36cae2}from'@univerjs-pro/license';import{DependentOn as _0x20a1e0,Disposable as _0x1e19cc,IConfigService as _0x3789d5,ILogService as _0x2c9d1d,IResourceLoaderService as _0x3d1c83,IUniverInstanceService as _0x2143ae,Inject as _0x42e024,Injector as _0x33c4f6,LocaleService as _0xcd31af,Plugin as _0x18db66,UniverInstanceType as _0x127a83,createIdentifier as _0x9aec77,merge as _0x53c4af,registerDependencies as _0x594ee9,resolveWithBasePath as _0x510b26,toDisposable as _0xb125b6,touchDependencies as _0x48beab}from'@univerjs/core';import{HTTPResponseError as _0x291a0a,HTTPService as _0x4d5109,UniverNetworkPlugin as _0x47c91a}from'@univerjs/network';import{ClockIcon as _0x3bbb8f,CloseIcon as _0xd5e3c,DirectExportIcon as _0x3dc1a4,DocsMultiIcon as _0xf37990,ErrorIcon as _0x6f3282,ShareRangeIcon as _0x2bd829,SheetsMultiIcon as _0x1837c8,SlidesMultiIcon as _0x5198b7,SuccessIcon as _0x3359c4}from'@univerjs/icons';import{BuiltInUIPart as _0x531cab,IMessageService as _0x4dc66a,IUIPartsService as _0x9de50e,IconManager as _0x2eb222,connectInjector as _0x4c45b1,useDependency as _0x56b32c,useObservable as _0x45108c}from'@univerjs/ui';import{BehaviorSubject as _0x4a0dc3,Subject as _0x4199e8}from'rxjs';import{MessageType as _0x414fd5,Tooltip as _0x4cffd7,clsx as _0x1ca27a,scrollbarClassName as _0x773f00}from'@univerjs/design';import{jsx as _0x5b1a45,jsxs as _0x552aae}from'react/jsx-runtime';import{ErrorCode as _0x3ff13f,FileSource as _0x1e2956}from'@univerjs/protocol';import{b64DecodeUnicode as _0x1a32f4,b64EncodeUnicode as _0x579ae6,getSheetBlocksFromSnapshot as _0x1a32f6,textDecoder as _0x32efdf,textEncoder as _0x329011,transformDocumentDataToSnapshot as _0x512f3d,transformSlideDataToSnapshot as _0x25c6ac,transformSnapshotToDocumentData as _0xdd8a4e,transformSnapshotToSlideData as _0x4e517c,transformSnapshotToWorkbookData as _0x2b2a85,transformWorkbookDataToSnapshot as _0x39d91f}from'@univerjs-pro/collaboration';import{deflateSync as _0x268b7d}from'fflate';var Pe=_0x33286a(0x24c),Fe=_0x33286a(0x295);const T=_0x33286a(0x236),Ie={};function E(_0x4959e9,_0x180e68){return function(_0x39d3ac,_0x1aafa3){_0x180e68(_0x39d3ac,_0x1aafa3,_0x4959e9);};}function D(_0x19f3ae,_0x19f5b3,_0x2a45bd,_0x3a8349){const _0xeacaca=_0x33286a;var _0x3a1213=arguments[_0xeacaca(0x1a0)],_0x4f2310=_0x3a1213<0x3?_0x19f5b3:_0x3a8349===null?_0x3a8349=Object[_0xeacaca(0x1bf)](_0x19f5b3,_0x2a45bd):_0x3a8349,_0x5b2cc4;if(typeof Reflect=='object'&&typeof Reflect[_0xeacaca(0x173)]==_0xeacaca(0x2c5))_0x4f2310=Reflect[_0xeacaca(0x173)](_0x19f3ae,_0x19f5b3,_0x2a45bd,_0x3a8349);else{for(var _0x28ca49=_0x19f3ae[_0xeacaca(0x1a0)]-0x1;_0x28ca49>=0x0;_0x28ca49--)(_0x5b2cc4=_0x19f3ae[_0x28ca49])&&(_0x4f2310=(_0x3a1213<0x3?_0x5b2cc4(_0x4f2310):_0x3a1213>0x3?_0x5b2cc4(_0x19f5b3,_0x2a45bd,_0x4f2310):_0x5b2cc4(_0x19f5b3,_0x2a45bd))||_0x4f2310);}return _0x3a1213>0x3&&_0x4f2310&&Object[_0xeacaca(0x2bb)](_0x19f5b3,_0x2a45bd,_0x4f2310),_0x4f2310;}let O=class extends _0x1e19cc{constructor(_0x323fcb){const _0x5d244e=_0x33286a;super(),this[_0x5d244e(0x244)]=_0x323fcb,this[_0x5d244e(0x1c2)]();}['_registerIcons'](){const _0xd9f34c=_0x33286a;this[_0xd9f34c(0x20a)](this[_0xd9f34c(0x244)]['register']({'DirectExportIcon':_0x3dc1a4}));}};O=D([E(0x0,_0x42e024(_0x2eb222))],O);function k(_0x418b38){'@babel/helpers - typeof';const _0x1a0be4=_0x33286a;return k=typeof Symbol==_0x1a0be4(0x2c5)&&typeof Symbol[_0x1a0be4(0x24f)]==_0x1a0be4(0x2b9)?function(_0x114446){return typeof _0x114446;}:function(_0x2de18a){return _0x2de18a&&typeof Symbol=='function'&&_0x2de18a['constructor']===Symbol&&_0x2de18a!==Symbol['prototype']?'symbol':typeof _0x2de18a;},k(_0x418b38);}function Le(_0x45ba3b,_0x5eb78d){const _0x4a209c=_0x33286a;if(k(_0x45ba3b)!=_0x4a209c(0x1c3)||!_0x45ba3b)return _0x45ba3b;var _0x49dfb2=_0x45ba3b[Symbol[_0x4a209c(0x230)]];if(_0x49dfb2!==void 0x0){var _0x2f7b85=_0x49dfb2[_0x4a209c(0x240)](_0x45ba3b,_0x5eb78d||_0x4a209c(0x1bc));if(k(_0x2f7b85)!=_0x4a209c(0x1c3))return _0x2f7b85;throw TypeError(_0x4a209c(0x221));}return(_0x5eb78d===_0x4a209c(0x1d4)?String:Number)(_0x45ba3b);}function Re(_0x3c2ef6){const _0x4cff5a=_0x33286a;var _0x17813b=Le(_0x3c2ef6,_0x4cff5a(0x1d4));return k(_0x17813b)==_0x4cff5a(0x2b9)?_0x17813b:_0x17813b+'';}function A(_0xf5f2ce,_0x54ac6b,_0x31f833){return(_0x54ac6b=Re(_0x54ac6b))in _0xf5f2ce?Object['defineProperty'](_0xf5f2ce,_0x54ac6b,{'value':_0x31f833,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf5f2ce[_0x54ac6b]=_0x31f833,_0xf5f2ce;}const j=_0x9aec77(_0x33286a(0x291));var ze=class extends _0x1e19cc{constructor(){const _0x35209a=_0x33286a;super(),A(this,'_visible$',new _0x4199e8()),A(this,_0x35209a(0x198),new _0x4199e8()),A(this,'_list$',new _0x4199e8()),A(this,_0x35209a(0x220),this[_0x35209a(0x1b2)][_0x35209a(0x223)]()),A(this,_0x35209a(0x171),this[_0x35209a(0x198)][_0x35209a(0x223)]()),A(this,'list$',this['_list$']['asObservable']()),A(this,'_list',[]);}[_0x33286a(0x282)](){const _0x49ca3b=_0x33286a;super['dispose'](),this[_0x49ca3b(0x1b2)][_0x49ca3b(0x2c6)](),this[_0x49ca3b(0x198)]['complete'](),this[_0x49ca3b(0x269)][_0x49ca3b(0x2c6)]();}['show'](){const _0x29410f=_0x33286a;this[_0x29410f(0x1b2)][_0x29410f(0x189)](!0x0);}[_0x33286a(0x245)](){const _0x8bf0e6=_0x33286a;this['_visible$'][_0x8bf0e6(0x189)](!0x1);}[_0x33286a(0x193)](_0x378c83){const _0x5439d0=_0x33286a;this['_state$'][_0x5439d0(0x189)](_0x378c83);}[_0x33286a(0x280)](_0x35f6f3){const _0x3cf1eb=_0x33286a;this[_0x3cf1eb(0x2a7)][_0x3cf1eb(0x1be)](_0x35f6f3),this['_list$'][_0x3cf1eb(0x189)](this[_0x3cf1eb(0x2a7)]);}};function Be(_0x10e613){const _0x262bcc=_0x33286a;let {list:_0x4294c9}=_0x10e613;function _0xd2a21d(_0x45b052){switch(_0x45b052){case 0x1:return _0x5b1a45(_0xf37990,{});case 0x2:return _0x5b1a45(_0x1837c8,{});case 0x3:return _0x5b1a45(_0x5198b7,{});default:return null;}}return _0x5b1a45(_0x262bcc(0x1dd),{'className':_0x1ca27a('univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden',_0x773f00),'children':_0x5b1a45('ul',{'className':_0x262bcc(0x164),'children':_0x4294c9[_0x262bcc(0x1d1)]((_0x3bf5bf,_0xa676a8)=>_0x5b1a45('li',{'children':_0x552aae('a',{'className':_0x262bcc(0x25f),'href':_0x3bf5bf[_0x262bcc(0x29b)],'target':_0x262bcc(0x1ee),'rel':_0x262bcc(0x290),'children':[_0x552aae(_0x262bcc(0x235),{'className':_0x262bcc(0x169),'children':[_0x5b1a45(_0x262bcc(0x235),{'className':_0x262bcc(0x1cf),'children':_0xd2a21d(_0x3bf5bf[_0x262bcc(0x224)])}),_0x5b1a45(_0x4cffd7,{'showIfEllipsis':!0x0,'title':_0x3bf5bf[_0x262bcc(0x2c8)],'asChild':!0x0,'children':_0x5b1a45(_0x262bcc(0x235),{'className':_0x262bcc(0x271),'children':_0x3bf5bf['name']})})]}),_0x5b1a45(_0x262bcc(0x235),{'className':'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','children':_0x5b1a45(_0x2bd829,{})})]})},_0xa676a8))})});}const M=_0x33286a(0x225),N='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',P=_0x33286a(0x26c),F=_0x33286a(0x1e6),I='application/vnd.openxmlformats-officedocument.presentationml.presentation',L=_0x33286a(0x1d9),R={[_0x127a83[_0x33286a(0x1af)]]:[''],[_0x127a83[_0x33286a(0x2c0)]]:[M],[_0x127a83[_0x33286a(0x268)]]:[N,P,F],[_0x127a83[_0x33286a(0x16d)]]:[I],[_0x127a83[_0x33286a(0x26f)]]:[''],[_0x127a83[_0x33286a(0x2b4)]]:[''],[_0x127a83[_0x33286a(0x19e)]]:[''],[_0x127a83[_0x33286a(0x2a2)]]:[L],[_0x127a83['UNRECOGNIZED']]:['']},z={[M]:'docx',[N]:_0x33286a(0x21c),[P]:'xlsm',[F]:'xltx',[I]:_0x33286a(0x29c),[L]:_0x33286a(0x215)};function B(_0x59f9d7,_0x5e83d0,_0x158296){const _0x5500d0=_0x33286a;let _0x3124b9=document[_0x5500d0(0x2a0)]('a');_0x3124b9[_0x5500d0(0x25c)]=_0x59f9d7,_0x3124b9[_0x5500d0(0x1d3)][_0x5500d0(0x1e8)]='none',_0x3124b9[_0x5500d0(0x196)]=_0x5e83d0+'.'+_0x158296,document['body']['appendChild'](_0x3124b9),_0x3124b9[_0x5500d0(0x1b8)](),document['body'][_0x5500d0(0x1a6)](_0x3124b9);}function Ve(_0x27e279,_0x1d3fb3,_0x35f8d1){const _0x456357=_0x33286a;let _0x2c8ae2=URL[_0x456357(0x16e)](_0x27e279);B(_0x2c8ae2,_0x1d3fb3,_0x35f8d1),URL[_0x456357(0x2ac)](_0x2c8ae2);}function He(_0xfe9fb){const _0x7f341f=_0x33286a;let _0x1a7648=_0xfe9fb['name'][_0x7f341f(0x167)]('.')[_0x7f341f(0x1c9)]();if(!_0x1a7648)return _0x127a83[_0x7f341f(0x1af)];let _0x4d829a=Ue(),_0x547aa5=_0x127a83[_0x7f341f(0x1af)];return _0x4d829a['some'](_0x59d44c=>We(_0x1a7648,_0x59d44c)?(_0x547aa5=_0x59d44c,!0x0):!0x1),_0x547aa5;}function Ue(){const _0x277ca8=_0x33286a;return Object[_0x277ca8(0x2ae)](_0x127a83)[_0x277ca8(0x1d5)](_0x402a7e=>typeof _0x402a7e==_0x277ca8(0x228));}function We(_0x44c01e,_0x35b89f){const _0x37081d=_0x33286a;var _0x193b29;return((_0x193b29=R[_0x35b89f])==null?[]:_0x193b29)[_0x37081d(0x1d1)](_0x41570e=>(z[_0x41570e]||'')[_0x37081d(0x16a)]())[_0x37081d(0x2ab)](_0x44c01e[_0x37081d(0x16a)]());}function V(_0x940220,_0x31aa26=!0x1){const _0x4057d8=_0x33286a;let _0x2710c3=_0x940220[_0x4057d8(0x1d1)](_0x3a24cf=>{var _0x19ffca;return(_0x19ffca=R[_0x3a24cf])==null?[]:_0x19ffca;})['join'](',');return new Promise((_0x40e709,_0x3259d6)=>{const _0x1ba2ce=_0x4057d8;let _0x398a3d=document[_0x1ba2ce(0x2a0)]('input');_0x398a3d[_0x1ba2ce(0x224)]=_0x1ba2ce(0x1b9),_0x398a3d[_0x1ba2ce(0x239)]=_0x2710c3,_0x398a3d['multiple']=_0x31aa26,_0x398a3d[_0x1ba2ce(0x1f5)](_0x1ba2ce(0x179),_0x1a54bd=>{const _0x2a10e3=_0x1ba2ce;let _0x230671=_0x1a54bd['currentTarget'];if(!_0x230671['files']||_0x230671[_0x2a10e3(0x1d8)][_0x2a10e3(0x1a0)]===0x0)throw _0x3259d6(null),Error(_0x2a10e3(0x1e1));_0x40e709(_0x230671[_0x2a10e3(0x1d8)]);}),_0x398a3d[_0x1ba2ce(0x1b8)]();});}async function H(_0x1f70dd,_0x5256de){const _0x4548d4=_0x33286a;try{var _0x481a71,_0x3ced0d,_0x12922f;let _0x2e65e3=await _0x5256de['get'](_0x1f70dd,{'responseType':_0x4548d4(0x1e7)}),_0xe10ceb=_0x2e65e3[_0x4548d4(0x1ed)],_0x2a6fde=(_0x481a71=(_0x3ced0d=_0x2e65e3[_0x4548d4(0x2c1)][_0x4548d4(0x2a6)](_0x4548d4(0x1a2)))==null?void 0x0:_0x3ced0d[_0x4548d4(0x2a5)](',\x20'))==null?_0x4548d4(0x28e):_0x481a71,_0x2c1578=_0x4548d4(0x2b7)+(z[_0x2a6fde]||_0x4548d4(0x21c)),_0x1a7f74=(_0x12922f=_0x2e65e3[_0x4548d4(0x2c1)][_0x4548d4(0x2a6)](_0x4548d4(0x25b)))==null?void 0x0:_0x12922f['join'](',\x20');if(_0x1a7f74){let _0x5b36d2=_0x1a7f74[_0x4548d4(0x1e4)](/filename=(.+)/);_0x5b36d2&&_0x5b36d2[0x1]&&(_0x2c1578=_0x5b36d2[0x1]);}else _0x2c1578=Ge(_0x1f70dd)||_0x2c1578;return new File([_0xe10ceb],_0x2c1578,{'type':_0x2a6fde});}catch(_0x31eccd){console[_0x4548d4(0x19f)](_0x4548d4(0x175),_0x31eccd);return;}}function Ge(_0x49c812){const _0x4564a6=_0x33286a;try{return new URL(_0x49c812)[_0x4564a6(0x181)][_0x4564a6(0x167)]('/')[_0x4564a6(0x1c9)]();}catch(_0x89148b){console[_0x4564a6(0x19f)]('Error\x20getting\x20file\x20name\x20from\x20URL:',_0x89148b);return;}}function Ke(_0x4549c5){const _0xde1231=_0x33286a;let _0x3fad54=new Blob([_0x4549c5[_0xde1231(0x288)]],{'type':'application/json'});return new File([_0x3fad54],_0xde1231(0x28a));}function U(_0x2df066,_0x2dbb45){const _0x363006=_0x33286a;return _0x2df066[_0x363006(0x21b)](_0x363006(0x1c6),_0x2dbb45);}function qe(_0x3f96a4,_0x19d260){const _0x5690fc=_0x33286a;return _0x3f96a4[_0x5690fc(0x21b)](_0x5690fc(0x258),_0x19d260);}function Je(_0x4fbf97,_0x18a84c){const _0x333035=_0x33286a;return _0x4fbf97['replace'](_0x333035(0x22c),_0x18a84c);}const W=_0x9aec77(_0x33286a(0x211));let G=class{constructor(_0xa4a73c,_0x1fd6ae){const _0x447142=_0x33286a;this['_configService']=_0xa4a73c,this['_httpService']=_0x1fd6ae,A(this,_0x447142(0x1a3),new Set());}[_0x33286a(0x282)](){}[_0x33286a(0x1a5)](_0xc1ba5e){const _0x26e90e=_0x33286a;this['_taskInterrupted'][_0x26e90e(0x227)](_0xc1ba5e);}[_0x33286a(0x1b4)](){const _0x17c29f=_0x33286a;this[_0x17c29f(0x1a3)][_0x17c29f(0x266)]();}async[_0x33286a(0x1ad)](_0x5c9852,_0x5ddda0=0x0,_0xc08583=!0x1){const _0x416a52=_0x33286a;if(typeof _0x5c9852==_0x416a52(0x1d4)){let _0x15002b=await H(_0x5c9852,this[_0x416a52(0x1e3)]);if(!_0x15002b)throw Error(_0x416a52(0x165));_0x5c9852=_0x15002b;}_0x5ddda0=_0x5ddda0||_0x5c9852[_0x416a52(0x285)];let _0x3aebf5=new FormData();_0x3aebf5[_0x416a52(0x246)]('file',_0x5c9852);try{let _0x3b1ea4=this[_0x416a52(0x218)]()+_0x416a52(0x2a4)+_0x5ddda0+_0x416a52(0x292)+_0x1e2956[_0x416a52(0x177)]+'&flate='+_0xc08583,_0x1e2e94={'body':_0x3aebf5},_0x11e6f1=(await this[_0x416a52(0x1e3)][_0x416a52(0x256)](_0x3b1ea4,_0x1e2e94))['body'];if(_0x11e6f1[_0x416a52(0x19f)]&&_0x11e6f1['error']['code']!==_0x3ff13f['OK'])throw Error(this['_buildProtocolErrorMessage'](_0x416a52(0x1fe),_0x11e6f1['error']));return _0x11e6f1;}catch(_0x548b9f){throw _0x548b9f instanceof Error?_0x548b9f:Error(this['_buildHttpErrorMessage'](_0x416a52(0x1fe),_0x548b9f));}}async[_0x33286a(0x238)](_0x13e7a5){const _0xc6a407=_0x33286a;let {fileID:_0x15281e,type:_0x387e85,outputType:_0xb98206,minSheetColumnCount:_0x27882f,minSheetRowCount:_0x1dc536}=_0x13e7a5;try{let _0x23292d=U(this['_getImportURL'](),''+_0x387e85),_0x25fe2e={'body':{'fileID':_0x15281e,'outputType':_0xb98206,'minSheetColumnCount':_0x27882f,'minSheetRowCount':_0x1dc536}},_0xb4c31c=(await this[_0xc6a407(0x1e3)][_0xc6a407(0x256)](_0x23292d,_0x25fe2e))['body'];return _0xb4c31c[_0xc6a407(0x19f)]&&_0xb4c31c[_0xc6a407(0x19f)]['code']!==_0x3ff13f['OK']?void 0x0:_0xb4c31c;}catch{return;}}async[_0x33286a(0x2c2)](_0x6b8cfd){const _0x3aa6d2=_0x33286a;let {unitID:_0x1aa0b5,jsonID:_0x25fc82,type:_0x4fbc55,useImageUrl:_0x1acd04,ignoreTableExport:_0x2eb5cf}=_0x6b8cfd;try{let _0x5d05c7=U(this[_0x3aa6d2(0x2af)](),''+_0x4fbc55),_0x4650d7={'body':{'unitID':_0x1aa0b5,'jsonID':_0x25fc82,'type':_0x4fbc55,'useImageUrl':_0x1acd04,'ignoreTableExport':_0x2eb5cf}},_0x122fc2=(await this['_httpService']['post'](_0x5d05c7,_0x4650d7))['body'];return _0x122fc2[_0x3aa6d2(0x19f)]&&_0x122fc2['error'][_0x3aa6d2(0x21d)]!==_0x3ff13f['OK']?void 0x0:_0x122fc2;}catch{return;}}async[_0x33286a(0x1a4)](_0x366480){return new Promise((_0x2df89e,_0x39febb)=>{const _0x64e2b9=_0x5cad;try{let _0x34840a=0x0,_0xec5211=qe(this[_0x64e2b9(0x1b6)](),''+_0x366480),_0x43f5da=this['_getMaxPollingTime'](),_0x3bf96e=async()=>{const _0x4f8ebd=_0x64e2b9;if(this['_taskInterrupted'][_0x4f8ebd(0x212)](_0x366480))return;let _0x5a071b=(await this['_httpService'][_0x4f8ebd(0x2a6)](_0xec5211))[_0x4f8ebd(0x1ed)];if(_0x5a071b[_0x4f8ebd(0x19f)]&&_0x5a071b[_0x4f8ebd(0x19f)]['code']===_0x3ff13f['OK']){if(_0x5a071b[_0x4f8ebd(0x1de)]===_0x4f8ebd(0x2be))_0x2df89e(_0x5a071b);else{if(_0x5a071b[_0x4f8ebd(0x1de)]===_0x4f8ebd(0x1ac)){let _0x34593c=0x3e8;if(_0x34840a>=_0x43f5da){_0x39febb(_0x5a071b);return;}else _0x34840a>=0x7530&&(_0x34593c=0x1388);_0x34840a+=_0x34593c,setTimeout(_0x3bf96e,_0x34593c);}else _0x39febb(_0x5a071b);}}else _0x39febb(_0x5a071b);};_0x3bf96e();}catch(_0x422d7a){_0x39febb(_0x422d7a instanceof Error?_0x422d7a:Error(String(_0x422d7a)));}});}async[_0x33286a(0x1d2)](_0x45bcb5){const _0x38f65a=_0x33286a;try{let _0x18c35e=Je(this[_0x38f65a(0x17f)](),''+_0x45bcb5);return(await this[_0x38f65a(0x1e3)][_0x38f65a(0x2a6)](_0x18c35e))[_0x38f65a(0x1ed)];}catch{return;}}async['getTextFromUrl'](_0x33f4ab){const _0x24c10c=_0x33286a;try{return(await this['_httpService'][_0x24c10c(0x2a6)](_0x33f4ab,{'responseType':_0x24c10c(0x19d)}))[_0x24c10c(0x1ed)];}catch{return;}}['_buildProtocolErrorMessage'](_0x4c306c,_0x150086){let _0x57a705=this['_extractErrorDetail'](_0x150086);return _0x57a705?_0x4c306c+':\x20'+_0x57a705:_0x4c306c;}['_buildHttpErrorMessage'](_0x30e859,_0x47eca1){const _0x58370c=_0x33286a;if(_0x47eca1 instanceof _0x291a0a){let _0x464057=typeof _0x47eca1[_0x58370c(0x1de)]==_0x58370c(0x228)?''+_0x47eca1[_0x58370c(0x1de)]+(_0x47eca1[_0x58370c(0x29d)]?'\x20'+_0x47eca1[_0x58370c(0x29d)]:''):void 0x0,_0x229d27=this[_0x58370c(0x27e)](_0x47eca1['error']);return _0x464057&&_0x229d27?_0x30e859+':\x20HTTP\x20'+_0x464057+_0x58370c(0x2c7)+_0x229d27:_0x464057?_0x30e859+_0x58370c(0x29f)+_0x464057:_0x229d27?_0x30e859+':\x20'+_0x229d27:_0x30e859;}let _0x46edd8=this['_extractErrorDetail'](_0x47eca1);return _0x46edd8?_0x30e859+':\x20'+_0x46edd8:_0x30e859;}[_0x33286a(0x27e)](_0x22bfc5){const _0x830cf7=_0x33286a;if(typeof _0x22bfc5==_0x830cf7(0x1d4)){let _0x204a95=_0x22bfc5['trim']();return _0x204a95[_0x830cf7(0x1a0)]>0x0?_0x204a95:void 0x0;}if(_0x22bfc5 instanceof Error)return this[_0x830cf7(0x27e)](_0x22bfc5[_0x830cf7(0x277)]);if(!_0x22bfc5||typeof _0x22bfc5!='object'||Array[_0x830cf7(0x1ff)](_0x22bfc5))return;let _0x512d4a=_0x22bfc5,_0x1929a1=this[_0x830cf7(0x27e)](_0x512d4a['message']);if(_0x1929a1)return _0x1929a1;if(_0x512d4a[_0x830cf7(0x19f)]&&typeof _0x512d4a[_0x830cf7(0x19f)]==_0x830cf7(0x1c3)&&!Array[_0x830cf7(0x1ff)](_0x512d4a[_0x830cf7(0x19f)])){let _0xde0bbb=this[_0x830cf7(0x27e)](_0x512d4a['error']);if(_0xde0bbb)return _0xde0bbb;}}[_0x33286a(0x218)](){const _0x413b04=_0x33286a;var _0x1bdf1b;let _0x357f69=this[_0x413b04(0x1e0)][_0x413b04(0x289)](T);return(_0x1bdf1b=_0x357f69==null?void 0x0:_0x357f69[_0x413b04(0x252)])==null?'/universer-api/stream/file/upload':_0x1bdf1b;}[_0x33286a(0x1df)](){const _0x56fd4d=_0x33286a;var _0x19bd16;let _0x33f557=this[_0x56fd4d(0x1e0)][_0x56fd4d(0x289)](T);return(_0x19bd16=_0x33f557==null?void 0x0:_0x33f557[_0x56fd4d(0x187)])==null?'/universer-api/exchange/{type}/import':_0x19bd16;}[_0x33286a(0x2af)](){const _0x5de4b5=_0x33286a;var _0x236800;let _0x547bec=this[_0x5de4b5(0x1e0)]['getConfig'](T);return(_0x236800=_0x547bec==null?void 0x0:_0x547bec[_0x5de4b5(0x180)])==null?_0x5de4b5(0x234):_0x236800;}['_getTaskURL'](){const _0xaf29d5=_0x33286a;var _0x362a2a;let _0x369ccd=this['_configService']['getConfig'](T);return(_0x362a2a=_0x369ccd==null?void 0x0:_0x369ccd[_0xaf29d5(0x259)])==null?_0xaf29d5(0x191):_0x362a2a;}[_0x33286a(0x17f)](){const _0x106e73=_0x33286a;var _0x3c2a4e;let _0x51ef67=this[_0x106e73(0x1e0)][_0x106e73(0x289)](T);return(_0x3c2a4e=_0x51ef67==null?void 0x0:_0x51ef67['signUrlServerUrl'])==null?_0x106e73(0x185):_0x3c2a4e;}[_0x33286a(0x204)](){const _0x50e1b9=_0x33286a;var _0x9671f0;let _0x4e5839=this[_0x50e1b9(0x1e0)][_0x50e1b9(0x289)](T);return(_0x9671f0=_0x4e5839==null?void 0x0:_0x4e5839[_0x50e1b9(0x296)])==null?0x1d4c0:_0x9671f0;}};G=D([E(0x0,_0x3789d5),E(0x1,_0x42e024(_0x4d5109))],G);function Ye(_0x49682d){const _0x56fd3f=_0x33286a;let _0x4e693c=_0x49682d[_0x56fd3f(0x203)];if(!_0x4e693c)return null;let _0x32b227={};_0x4e693c['sheets']&&Object[_0x56fd3f(0x253)](_0x4e693c[_0x56fd3f(0x1fa)])[_0x56fd3f(0x276)](_0x1ec8c8=>{const _0x55a64d=_0x56fd3f;let _0x8f6a3e=_0x4e693c[_0x55a64d(0x1fa)][_0x1ec8c8];_0x32b227[_0x1ec8c8]={..._0x8f6a3e,'originalMeta':_0x579ae6(_0x32efdf[_0x55a64d(0x2a3)](_0x8f6a3e[_0x55a64d(0x20f)]))};});let _0x587c00=_0x579ae6(_0x32efdf['decode'](_0x4e693c[_0x56fd3f(0x20f)]));return{..._0x49682d,'workbook':{..._0x4e693c,'originalMeta':_0x587c00,'sheets':_0x32b227},'doc':{},'slide':void 0x0,'board':void 0x0};}function Xe(_0x306670){const _0x21c384=_0x33286a;let _0x1bbf9c=_0x306670[_0x21c384(0x298)];if(!_0x1bbf9c)return null;let _0x6fd4da=_0x579ae6(_0x32efdf[_0x21c384(0x2a3)](_0x1bbf9c[_0x21c384(0x20f)]));return{..._0x306670,'workbook':{},'doc':{..._0x1bbf9c,'originalMeta':_0x6fd4da},'slide':void 0x0,'board':void 0x0};}function Ze(_0xbeaac6){const _0x342e39=_0x33286a;var _0x1ba09c;let _0x262ed5=(_0x1ba09c=_0xbeaac6[_0x342e39(0x19a)])==null?_0xbeaac6['doc']:_0x1ba09c;if(!_0x262ed5)return null;let _0x2eb68b=typeof _0x262ed5[_0x342e39(0x20f)]==_0x342e39(0x1d4)?_0x262ed5['originalMeta']:_0x579ae6(_0x32efdf[_0x342e39(0x2a3)](_0x262ed5[_0x342e39(0x20f)]));return{..._0xbeaac6,'workbook':{},'doc':{},'slide':{..._0x262ed5,'originalMeta':_0x2eb68b},'board':void 0x0};}function _0x1136(){const _0x51ced2=['Get\x20outputType\x20error','/universer-api/exchange/{type}/export','span','exchange-client.config','_getUnitIDDoc','import','accept','_getUnitName','exportPPTXByUnitId','Failed\x20to\x20get\x20text\x20from\x20url','_getLinkByUnitId','_resourceLoaderService','UNDEFINED','call','uploadFileToUnitId','_exportBySnapshot','packageName','_iconManager','hide','append','importXLSXToSnapshot','importFileToUnitIdByCurrentType','resources','trim','_importFileToUnitId','@univerjs-pro/exchange-client','workbook.json','_emitProgress','iterator','parse','1330326bzQmLI','uploadFileServerUrl','keys','univer-text-blue-500','_export','post','data','{taskID}','getTaskServerUrl','exchange-client.tooLarge','content-disposition','href','show','_config','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','progress$','exchange-client.wait','options','_getDownloadEndpointURL','4796AaWVkR','801189vadWEX','clear','exportXLSXByUnitId','UNIVER_SHEET','_list$','univer-pro.exchange-client.operate.service','_importTaskId','application/vnd.ms-excel.sheet.macroEnabled.12','exchange-client.fileTypeError','sheetBlocks','UNIVER_BASE','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','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','getUnitId','title','univer-text-sm\x20univer-text-gray-500','_getMinSheetRowCount','forEach','message','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','_importToJson','_doneUploadTaskCount','interrupt','exchange-client.downloadSuccess','.json','_extractErrorDetail','getDeserializedSheetBlock','pushLink','minSheetColumnCount','dispose','getSnapshot','registerComponent','size','min','origin','buffer','getConfig','file.json','_uploadTaskNotDone','_uploadNotificationService','_getMinSheetColumnCount','application/octet-stream','Warning','noreferrer','univer-pro.exchange-client.upload-notification.service','&source=','CONTENT','_addDoneTask','1.0.0-alpha.7','maxTimeoutTime','outputType','doc','exchange-client.uploadAgain','minSheetRowCount','link','pptx','statusText','2968207JfYVLh',':\x20HTTP\x20','createElement','_registerUIParts','UNIVER_PDF','decode','?size=','join','get','_list','setConfig','FileId','importFileToUnitId','includes','revokeObjectURL','onReady','values','_getExportURL','snapshot','exportPPTXBySnapshot','disposeUnit','10piRYzA','UNIVER_BOARD','version','jsonID','file.','export\x20error','symbol','_getDisableCellImageConversion','defineProperty','searchParams','exchange-client.uploading','done','rev','UNIVER_DOC','headers','export','Info','unitID','function','complete','\x20-\x20','name','_showUploadMessage','70KbHcDw','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','importFileToJson','split','Failed\x20to\x20get\x20jsonID\x20from\x20task','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','toLowerCase','_signUrl','_showNetworkError','UNIVER_SLIDE','createObjectURL','getCurrentUnitOfType','_getUnitJson','state$','_upload','decorate','exchange-client.internalError','Error\x20fetching\x20file\x20from\x20URL:','createUnit','HttpImport','saveSnapshot','change','exchange-client.uploadSuccess','_getUnitSlideJson','102260ELUKrk','importXLSXToUnitId','importPPTXToUnitId','_getSignURL','exportServerUrl','pathname','_requestService','_import','_sheetBlockCache','/universer-api/file/{fileID}/sign-url','block\x20is\x20required','importServerUrl','_getUnitIDSlide','next','_refreshSlide','shift','getTextFromUrl','importDOCXToSnapshot','_requestState$','exchange-client.unknownMistake','encode','/universer-api/exchange/task/{taskID}','_getUnitNameByType','updateState','stringify','Failed\x20to\x20get\x20file\x20from\x20url','download','interruptImportTask','_state$','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','slide','importPPTXToSnapshot','unit','text','UNIVER_PROJECT','error','length','downloadFile','Content-Type','_taskInterrupted','getTask','setTaskInterrupted','removeChild','downloadEndpointUrl','_localeService','url','Error','1473224tHHbXE','pending','upload','univer-ml-1.5\x20univer-font-semibold\x20univer-text-gray-900\x20dark:!univer-text-white','UNIVER_UNKNOWN','upload\x20failed:\x20FileId\x20is\x20empty','7nvUCOf','_visible$','_fileTypeError','clearTaskInterrupted','ignoreTableExport','_getTaskURL','exchange-client.interrupt','click','file','registerLink','getResourcesRequest','default','Method\x20not\x20implemented.','unshift','getOwnPropertyDescriptor','subscribe','exchange-client.networkError','_registerIcons','object','exportDOCXBySnapshot','getUnitOnRev','{type}','_injector','exchange-client.cancel','pop','_uiPartsService','univer-pl-2\x20univer-pr-4','success','univer-h-6\x20univer-text-2xl','exportXLSXBySnapshot','univer-flex\x20univer-h-5\x20univer-text-xl','button','map','signUrl','style','string','filter','univer-flex','74ydJNVn','files','application/pdf','_getUnitDocJson','pluginName','sign\x20url\x20error','div','status','_getImportURL','_configService','No\x20file\x20selected','_showDownloadMessage','_httpService','match','_univerInstanceService','application/vnd.openxmlformats-officedocument.spreadsheetml.template','blob','display','univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','onStarting','requestState$','_progress$','body','_blank','set','docx','_logService','taskID','floor','resolve','addEventListener','Failed\x20to\x20transform\x20snapshot\x20to\x20string','list$','univer-pro.exchange-client.exchange.service','saveChangeset','sheets','Failed\x20to\x20parse\x20json','_clearProgress','fileID','upload\x20request\x20failed','isArray','Success','univer-text-red-500','getFocusedUnit','workbook','_getMaxPollingTime','importDOCXToUnitId','_addTotalCount','blockID','disableCellImageConversion','788628zvSWZW','disposeWithMe','import\x20error','transformSnapshotJsonToWorkbookData','univer-mt-5\x20univer-flex\x20univer-flex-col','_refresh','originalMeta','_messageService','univer-pro.exchange-client.request.service','has','_completeProgress','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','pdf','saveUnit','Failed\x20to\x20get\x20unitID\x20from\x20task','_getUploadFileURL','exportDOCXByUnitId','getUnitType','replace','xlsx','code','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','catch','visible$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','application/json','asObservable','type','application/vnd.openxmlformats-officedocument.wordprocessingml.document','univer-text-green-500','add','number','_totalUploadTaskCount','_getUnitID','UNRECOGNIZED','{fileID}','getSheetBlock','transformWorkbookDataToSnapshotJson','_exchangeService','toPrimitive','_getIgnoreTableExport','location'];_0x1136=function(){return _0x51ced2;};return _0x1136();}function K(_0x355b84){const _0x3b6722=_0x33286a;let _0x19a40b={};return _0x355b84[_0x3b6722(0x276)](_0x5ebed5=>{const _0x2d7700=_0x3b6722;_0x19a40b[_0x5ebed5['id']]={..._0x5ebed5,'data':_0x579ae6(_0x32efdf[_0x2d7700(0x2a3)](_0x5ebed5['data']))};}),_0x19a40b;}async function Qe(_0x2f1726){const _0x26e881=_0x33286a;var _0x2eeb77;let _0x4757f7={'metadata':void 0x0},_0x546379=_0x2f1726['id'],_0x9c754e=(_0x2eeb77=_0x2f1726[_0x26e881(0x2bf)])==null?0x0:_0x2eeb77,_0x2d2cfe=new q(),{snapshot:_0x1218ae}=await _0x39d91f(_0x4757f7,_0x2f1726,_0x546379,_0x9c754e,_0x2d2cfe),_0x20f558=await _0x1a32f6(_0x1218ae,_0x2d2cfe),_0x2cd596=Ye(_0x1218ae);if(!_0x2cd596)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x2cd596,'sheetBlocks':K(_0x20f558)};}async function $e(_0x2cf4ad){const _0x55f9bc=_0x33286a;var _0x13251d;let _0x4b8edc={'metadata':void 0x0},_0x45a8d4=_0x2cf4ad['id'],{snapshot:_0x1aba9b}=await _0x512f3d(_0x4b8edc,_0x2cf4ad,_0x45a8d4,(_0x13251d=_0x2cf4ad[_0x55f9bc(0x2bf)])==null?0x0:_0x13251d,new q()),_0x1695e3=Xe(_0x1aba9b);if(!_0x1695e3)throw Error(_0x55f9bc(0x1f6));return{'snapshot':_0x1695e3,'sheetBlocks':{}};}async function et(_0x59761f){const _0x5aaf7f=_0x33286a;var _0x1ce646;let _0xfe35dc=_0x59761f['id'],_0x937d6a=(_0x1ce646=_0x59761f['rev'])==null?0x0:_0x1ce646,_0x503231=new q(),{snapshot:_0x4835e5}=await _0x25c6ac(_0x59761f[_0x5aaf7f(0x249)],_0x59761f,_0xfe35dc,_0x937d6a,_0x503231),_0x30c72e=Ze(_0x4835e5);if(!_0x30c72e)throw Error(_0x5aaf7f(0x1f6));return{'snapshot':_0x30c72e,'sheetBlocks':{}};}async function tt(_0x3f16f7){const _0x9274dc=_0x33286a;let _0x1db87b=_0x3f16f7[_0x9274dc(0x2b0)],_0x563e54=_0x3f16f7[_0x9274dc(0x26e)]||{};return await _0x2b2a85(_0x1db87b,Object['keys'](_0x563e54)['map'](_0x46d4e7=>_0x563e54[_0x46d4e7])['map'](_0x29aff1=>({..._0x29aff1,'data':_0x29aff1[_0x9274dc(0x257)]?JSON['parse'](_0x1a32f4(_0x29aff1[_0x9274dc(0x257)])):void 0x0})));}function nt(_0x45e5f2){let _0x1dc777=_0x45e5f2['snapshot'];return _0xdd8a4e(_0x1dc777);}function rt(_0x3cc75b){const _0x392270=_0x33286a;let _0x2bd63b=_0x3cc75b[_0x392270(0x2b0)];return _0x4e517c(_0x2bd63b);}var q=class{constructor(){A(this,'_sheetBlockCache',new Map());}[_0x33286a(0x1c5)](){const _0x1b06cf=_0x33286a;return Promise[_0x1b06cf(0x1f4)]({'snapshot':{'unitID':'','type':_0x127a83[_0x1b06cf(0x268)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0,'slide':void 0x0,'board':void 0x0},'changesets':[],'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x22d)](_0x1dcc9f,_0x229dfa){const _0x5c9489=_0x33286a;let _0x15ec5a=this[_0x5c9489(0x184)][_0x5c9489(0x2a6)](_0x229dfa[_0x5c9489(0x207)]);return Promise[_0x5c9489(0x1f4)]({'block':_0x15ec5a,'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x27f)](_0x45d4bb,_0xd2b67){const _0x33dc74=_0x33286a;let _0x28045b=this[_0x33dc74(0x184)][_0x33dc74(0x2a6)](_0xd2b67[_0x33dc74(0x207)]);return Promise[_0x33dc74(0x1f4)]({'block':_0x28045b===void 0x0?void 0x0:{..._0x28045b,'data':JSON[_0x33dc74(0x250)](_0x32efdf[_0x33dc74(0x2a3)](_0x28045b[_0x33dc74(0x257)]))},'error':{'code':_0x3ff13f['OK'],'message':''}});}['fetchMissingChangesets'](){const _0x3a7b9a=_0x33286a;return Promise[_0x3a7b9a(0x1f4)]({'changesets':[],'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x1bb)](){const _0x1d2be1=_0x33286a;return Promise[_0x1d2be1(0x1f4)]({'resources':{},'error':{'code':_0x3ff13f['OK'],'message':''}});}[_0x33286a(0x178)](){const _0xd2cd31=_0x33286a;return Promise[_0xd2cd31(0x1f4)]({'error':{'code':_0x3ff13f['OK'],'message':''}});}['updateSnapshot'](){return Promise['resolve']({'error':{'code':_0x3ff13f['OK'],'message':''}});}['saveSheetBlock'](_0x42b4d8,_0x31cde7){const _0x29afcd=_0x33286a;let {block:_0x23396b}=_0x31cde7;return _0x23396b?(this['_sheetBlockCache']['set'](_0x23396b['id'],_0x23396b),Promise['resolve']({'error':{'code':_0x3ff13f['OK'],'message':''},'blockID':_0x23396b['id']})):Promise[_0x29afcd(0x1f4)]({'error':{'code':_0x3ff13f[_0x29afcd(0x23f)],'message':_0x29afcd(0x186)},'blockID':''});}[_0x33286a(0x1f9)](){const _0x591b85=_0x33286a;return Promise[_0x591b85(0x1f4)]({'error':{'code':_0x3ff13f['OK'],'message':''},'concurrent':[]});}['copyFileMeta'](){const _0x21e454=_0x33286a;return Promise[_0x21e454(0x1f4)]({'error':void 0x0,'fileMetaId':''});}['getLatestCsReqIdBySid'](){const _0xd2f697=_0x33286a;return Promise[_0xd2f697(0x1f4)]({'error':void 0x0,'latestReqID':0x0});}};const J=_0x9aec77(_0x33286a(0x1f8));let Y=class extends _0x1e19cc{constructor(_0x18486b,_0x1ecbd1,_0x172343){const _0x4e0a0c=_0x33286a;super(),this[_0x4e0a0c(0x1e0)]=_0x18486b,this['_httpService']=_0x1ecbd1,this[_0x4e0a0c(0x182)]=_0x172343,A(this,'_importTaskId',null),A(this,'_requestState$',new _0x4199e8()),A(this,_0x4e0a0c(0x1eb),this['_requestState$'][_0x4e0a0c(0x223)]());}[_0x33286a(0x282)](){const _0x1543eb=_0x33286a;super[_0x1543eb(0x282)](),this[_0x1543eb(0x18e)][_0x1543eb(0x2c6)]();}[_0x33286a(0x1a1)](_0x406f9a,_0xcf744a,_0x201dc2){const _0x53af9e=_0x33286a;let _0xfe8133=URL[_0x53af9e(0x16e)](_0x406f9a);B(_0xfe8133,_0xcf744a,_0x201dc2),URL['revokeObjectURL'](_0xfe8133);}async[_0x33286a(0x20c)](_0x16818d){const _0x477810=_0x33286a;let _0x4617b9=_0x16818d[_0x477810(0x2b0)],_0x4961c6=_0x16818d[_0x477810(0x26e)]||{};return _0x2b2a85(_0x4617b9,Object[_0x477810(0x253)](_0x4961c6)[_0x477810(0x1d1)](_0x343060=>_0x4961c6[_0x343060])[_0x477810(0x1d1)](_0x148c3c=>({..._0x148c3c,'data':_0x148c3c[_0x477810(0x257)]?JSON[_0x477810(0x250)](_0x1a32f4(_0x148c3c[_0x477810(0x257)])):void 0x0})));}async[_0x33286a(0x22e)](_0x496627){const _0x45f11f=_0x33286a;var _0x322122;let _0x173ea0={'metadata':void 0x0},_0x53472d=_0x496627['id'],_0x4953e2=(_0x322122=_0x496627[_0x45f11f(0x2bf)])==null?0x0:_0x322122,_0x3e588d=new q(),{snapshot:_0x347311}=await _0x39d91f(_0x173ea0,_0x496627,_0x53472d,_0x4953e2,_0x3e588d),_0x5b7a96=await _0x1a32f6(_0x347311,_0x3e588d),_0x3491d6=Ye(_0x347311);if(!_0x3491d6)throw Error('Failed\x20to\x20transform\x20snapshot\x20to\x20string');return{'snapshot':_0x3491d6,'sheetBlocks':K(_0x5b7a96)};}async['importDOCXToSnapshot'](_0x43a34d){const _0x1d5011=_0x33286a;let _0x426924=await this[_0x1d5011(0x166)](_0x43a34d,_0x127a83[_0x1d5011(0x2c0)]);if(!_0x426924||!_0x426924[_0x1d5011(0x2b0)])return;let _0x2f6b1b=nt(_0x426924);if(_0x2f6b1b)return _0x2f6b1b;}async['exportDOCXByUnitId'](_0x5c5b7c){const _0x41fe60=_0x33286a;return this[_0x41fe60(0x255)](_0x5c5b7c,0x1,_0x127a83['UNIVER_DOC']);}async[_0x33286a(0x1c4)](_0xae3a85){const _0x17014a=_0x33286a;let _0x5050ec=await $e(_0xae3a85);return this['_exportBySnapshot'](_0x5050ec,_0x127a83[_0x17014a(0x2c0)]);}async['importPPTXToSnapshot'](_0x9679e1){const _0x5e75fe=_0x33286a;let _0x4426af=await this[_0x5e75fe(0x166)](_0x9679e1,_0x127a83[_0x5e75fe(0x16d)]);if(!(!_0x4426af||!_0x4426af[_0x5e75fe(0x2b0)]))return rt(_0x4426af);}async[_0x33286a(0x23b)](_0x552fd6){const _0x5b8057=_0x33286a;return this['_export'](_0x552fd6,0x1,_0x127a83[_0x5b8057(0x16d)]);}async[_0x33286a(0x2b1)](_0x56bb4e){const _0x8bf9b0=_0x33286a;let _0x1858c3=await et(_0x56bb4e);return this['_exportBySnapshot'](_0x1858c3,_0x127a83[_0x8bf9b0(0x16d)]);}async[_0x33286a(0x247)](_0x160a7b){const _0x2ec2a2=_0x33286a;let _0x4d6d96=await this[_0x2ec2a2(0x166)](_0x160a7b,_0x127a83['UNIVER_SHEET']);if(!_0x4d6d96)return;let _0x5051dd=await this['transformSnapshotJsonToWorkbookData'](_0x4d6d96);if(_0x5051dd)return _0x5051dd;}async[_0x33286a(0x267)](_0x360d96){const _0x410199=_0x33286a;return this['_export'](_0x360d96,0x1,_0x127a83[_0x410199(0x268)]);}async['exportXLSXBySnapshot'](_0x11f6cb){const _0x4b6897=_0x33286a;let _0xf869a=await this[_0x4b6897(0x22e)](_0x11f6cb);return this[_0x4b6897(0x242)](_0xf869a,_0x127a83[_0x4b6897(0x268)]);}async[_0x33286a(0x2aa)](_0x1200dc,_0x337dd5){const _0x5a80e2=_0x33286a;var _0xb2c2f5,_0x2cc9fc;let _0xbeda5f=await this[_0x5a80e2(0x172)](_0x1200dc);if(!_0xbeda5f)return;let _0x3ca3af=await this[_0x5a80e2(0x183)](_0xbeda5f,0x1,_0x337dd5);if(!_0x3ca3af)return;this[_0x5a80e2(0x26b)]=_0x3ca3af,this['_requestService'][_0x5a80e2(0x1b4)]();let _0x1a6e89=await this[_0x5a80e2(0x182)][_0x5a80e2(0x1a4)](_0x3ca3af)[_0x5a80e2(0x21f)](_0x29c45a=>{const _0x2edcd2=_0x5a80e2;var _0x295c57;let _0x5a8026=_0x29c45a instanceof Error?_0x29c45a['message']:(_0x295c57=_0x29c45a['error'])==null?void 0x0:_0x295c57[_0x2edcd2(0x277)];this['_requestState$'][_0x2edcd2(0x189)]({'error':{'code':_0x3ff13f[_0x2edcd2(0x22b)],'message':_0x5a8026||''},'state':0x3});});if(!_0x1a6e89)return;let _0x33627d=(_0xb2c2f5=_0x1a6e89[_0x5a80e2(0x238)])==null?void 0x0:_0xb2c2f5[_0x5a80e2(0x297)],_0x402c0a=((_0x2cc9fc=_0x1a6e89[_0x5a80e2(0x238)])==null?void 0x0:_0x2cc9fc[_0x5a80e2(0x2c4)])||'';if(_0x33627d!==0x1){this['_requestState$']['next']({'error':{'code':_0x3ff13f[_0x5a80e2(0x22b)],'message':_0x5a80e2(0x233)},'state':0x3});return;}if(_0x402c0a[_0x5a80e2(0x1a0)]===0x0){this[_0x5a80e2(0x18e)][_0x5a80e2(0x189)]({'error':{'code':_0x3ff13f[_0x5a80e2(0x22b)],'message':_0x5a80e2(0x217)},'state':0x3});return;}return this[_0x5a80e2(0x18e)][_0x5a80e2(0x189)]({'error':_0x1a6e89[_0x5a80e2(0x19f)],'state':0x3}),_0x402c0a;}async[_0x33286a(0x166)](_0x1087f8,_0x31d2c7){const _0x51788a=_0x33286a;return this[_0x51788a(0x279)](_0x1087f8,_0x31d2c7);}async['importWorkbookDataToUnitId'](_0x4ee075){const _0xd082a5=_0x33286a;let _0x4d9a78=await this['transformWorkbookDataToSnapshotJson'](_0x4ee075),_0x2acd7d=typeof _0x4ee075['id']==_0xd082a5(0x1d4)&&_0x4ee075['id'][_0xd082a5(0x24a)]()?_0x4ee075['id']['trim']()+_0xd082a5(0x27d):_0xd082a5(0x24d),_0x469d6c=new File([JSON[_0xd082a5(0x194)](_0x4d9a78)],_0x2acd7d,{'type':_0xd082a5(0x222)});return this[_0xd082a5(0x2aa)](_0x469d6c,_0x127a83[_0xd082a5(0x268)]);}[_0x33286a(0x197)](){const _0x129807=_0x33286a;this[_0x129807(0x26b)]&&this['_requestService'][_0x129807(0x1a5)](this['_importTaskId']);}async['_importToJson'](_0xbf82db,_0xb465c3){const _0x3770c4=_0x33286a;var _0x4cd10f,_0x5ed8c4;let _0x4f47ee=await this[_0x3770c4(0x172)](_0xbf82db);if(!_0x4f47ee)return;let _0x199aec=await this['_import'](_0x4f47ee,0x2,_0xb465c3);if(!_0x199aec)return;this[_0x3770c4(0x26b)]=_0x199aec,this['_requestService']['clearTaskInterrupted']();let _0x533b79=await this[_0x3770c4(0x182)][_0x3770c4(0x1a4)](_0x199aec)[_0x3770c4(0x21f)](_0x4efc3b=>{const _0x37c38a=_0x3770c4;var _0x2414d5;let _0x44c4cd=_0x4efc3b instanceof Error?_0x4efc3b[_0x37c38a(0x277)]:(_0x2414d5=_0x4efc3b['error'])==null?void 0x0:_0x2414d5[_0x37c38a(0x277)];this['_requestState$'][_0x37c38a(0x189)]({'error':{'code':_0x3ff13f[_0x37c38a(0x22b)],'message':_0x44c4cd||''},'state':0x3});});if(!_0x533b79)return;let _0x2e4b95=(_0x4cd10f=_0x533b79[_0x3770c4(0x238)])==null?void 0x0:_0x4cd10f[_0x3770c4(0x297)],_0x4f455f=((_0x5ed8c4=_0x533b79[_0x3770c4(0x238)])==null?void 0x0:_0x5ed8c4[_0x3770c4(0x2b6)])||'';if(_0x2e4b95!==0x2){this[_0x3770c4(0x18e)]['next']({'error':{'code':_0x3ff13f['UNRECOGNIZED'],'message':_0x3770c4(0x233)},'state':0x3});return;}if(_0x4f455f[_0x3770c4(0x1a0)]===0x0){this[_0x3770c4(0x18e)]['next']({'error':{'code':_0x3ff13f[_0x3770c4(0x22b)],'message':_0x3770c4(0x168)},'state':0x3});return;}this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':_0x533b79[_0x3770c4(0x19f)],'state':0x3});let _0x4955ad=await this[_0x3770c4(0x16b)](_0x4f455f);if(!_0x4955ad)return;let _0x23b9c9=await this[_0x3770c4(0x182)][_0x3770c4(0x18c)](_0x4955ad);if(!_0x23b9c9){this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':{'code':_0x3ff13f[_0x3770c4(0x22b)],'message':_0x3770c4(0x23c)},'state':0x5});return;}try{let _0x3719ce=JSON[_0x3770c4(0x250)](_0x23b9c9);return this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':{'code':_0x3ff13f['OK'],'message':_0x3770c4(0x1cc)},'state':0x5}),_0x3719ce;}catch{this[_0x3770c4(0x18e)][_0x3770c4(0x189)]({'error':{'code':_0x3ff13f[_0x3770c4(0x22b)],'message':_0x3770c4(0x1fb)},'state':0x5});}}async[_0x33286a(0x242)](_0x37d304,_0xbc424f){const _0x443bf2=_0x33286a;let _0x494816=JSON[_0x443bf2(0x194)](_0x37d304),_0x37de96=_0x329011[_0x443bf2(0x190)](_0x494816),_0x1e78cd=_0x268b7d(_0x37de96),_0x3dc350=_0x37de96[_0x443bf2(0x1a0)],_0x18b201=Ke(_0x1e78cd),_0x18ce3=await this[_0x443bf2(0x172)](_0x18b201,_0x3dc350,!0x0);if(_0x18ce3)return this[_0x443bf2(0x255)](_0x18ce3,0x2,_0xbc424f);}async[_0x33286a(0x255)](_0x4dfd1f,_0x26d7de,_0x2a0fcd){const _0x2b735f=_0x33286a;var _0x2caf73;let _0x52b65f=await this[_0x2b735f(0x182)][_0x2b735f(0x2c2)]({'unitID':_0x26d7de===0x1?_0x4dfd1f:'','jsonID':_0x26d7de===0x2?_0x4dfd1f:'','type':_0x2a0fcd,'useImageUrl':this[_0x2b735f(0x2ba)](),'ignoreTableExport':this[_0x2b735f(0x231)]()});if(!_0x52b65f){this[_0x2b735f(0x18e)]['next']({'error':{'code':_0x3ff13f[_0x2b735f(0x22b)],'message':_0x2b735f(0x2b8)},'state':0x2});return;}if(this[_0x2b735f(0x18e)]['next']({'error':_0x52b65f[_0x2b735f(0x19f)],'state':0x2}),_0x52b65f[_0x2b735f(0x19f)]&&_0x52b65f[_0x2b735f(0x19f)]['code']!==_0x3ff13f['OK'])return;let _0x2c8483=_0x52b65f[_0x2b735f(0x1f2)],_0x5f50e0=await this[_0x2b735f(0x182)][_0x2b735f(0x1a4)](_0x2c8483)[_0x2b735f(0x21f)](_0x5a1a0d=>{const _0x4cf499=_0x2b735f;var _0x4a325f;let _0x2e111a=_0x5a1a0d instanceof Error?_0x5a1a0d['message']:(_0x4a325f=_0x5a1a0d[_0x4cf499(0x19f)])==null?void 0x0:_0x4a325f['message'];this[_0x4cf499(0x18e)][_0x4cf499(0x189)]({'error':{'code':_0x3ff13f[_0x4cf499(0x22b)],'message':_0x2e111a||''},'state':0x3});});if(!_0x5f50e0)return;let _0x8d1a87=((_0x2caf73=_0x5f50e0[_0x2b735f(0x2c2)])==null?void 0x0:_0x2caf73[_0x2b735f(0x1fd)])||'';if(_0x8d1a87[_0x2b735f(0x1a0)]===0x0){this['_requestState$']['next']({'error':{'code':_0x3ff13f[_0x2b735f(0x22b)],'message':'Failed\x20to\x20get\x20fileID\x20from\x20task'},'state':0x3});return;}this['_requestState$'][_0x2b735f(0x189)]({'error':_0x5f50e0[_0x2b735f(0x19f)],'state':0x3});let _0x1086de=await this[_0x2b735f(0x16b)](_0x8d1a87);if(!_0x1086de)return;let _0x30e262=await H(_0x1086de,this['_httpService']);if(!_0x30e262){this[_0x2b735f(0x18e)][_0x2b735f(0x189)]({'error':{'code':_0x3ff13f[_0x2b735f(0x22b)],'message':_0x2b735f(0x195)},'state':0x6});return;}return this['_requestState$']['next']({'error':{'code':_0x3ff13f['OK'],'message':_0x2b735f(0x1cc)},'state':0x6}),_0x30e262;}async[_0x33286a(0x172)](_0x2e7004,_0x2668c,_0x59a57d){const _0x4af0df=_0x33286a;let _0x580076;try{_0x580076=await this['_requestService'][_0x4af0df(0x1ad)](_0x2e7004,_0x2668c,_0x59a57d);}catch(_0x556618){let _0x11e430=_0x556618 instanceof Error?_0x556618['message']:String(_0x556618);this['_requestState$'][_0x4af0df(0x189)]({'error':{'code':_0x3ff13f[_0x4af0df(0x22b)],'message':_0x11e430},'state':0x0});return;}if(!_0x580076||typeof _0x580076[_0x4af0df(0x2a9)]!='string'){this[_0x4af0df(0x18e)][_0x4af0df(0x189)]({'error':{'code':_0x3ff13f['UNRECOGNIZED'],'message':'upload\x20failed:\x20missing\x20FileId\x20in\x20response'},'state':0x0});return;}let _0x404670=_0x580076['FileId'];if(_0x404670[_0x4af0df(0x1a0)]===0x0){this[_0x4af0df(0x18e)]['next']({'error':{'code':_0x3ff13f[_0x4af0df(0x22b)],'message':_0x4af0df(0x1b0)},'state':0x0});return;}return this[_0x4af0df(0x18e)][_0x4af0df(0x189)]({'error':{'code':_0x3ff13f['OK'],'message':'success'},'state':0x0}),_0x404670;}async[_0x33286a(0x183)](_0x2deeee,_0x5e9eab,_0x39100c){const _0x1a56bf=_0x33286a;let _0x358b06={'fileID':_0x2deeee,'type':_0x39100c,'outputType':_0x5e9eab,'fileUrl':'','minSheetRowCount':this[_0x1a56bf(0x275)](),'minSheetColumnCount':this[_0x1a56bf(0x28d)]()},_0x195ae9=await this[_0x1a56bf(0x182)]['import'](_0x358b06);if(!_0x195ae9){this['_requestState$'][_0x1a56bf(0x189)]({'error':{'code':_0x3ff13f[_0x1a56bf(0x22b)],'message':_0x1a56bf(0x20b)},'state':0x1});return;}if(_0x195ae9[_0x1a56bf(0x19f)]&&_0x195ae9[_0x1a56bf(0x19f)][_0x1a56bf(0x21d)]!==_0x3ff13f['OK']){this[_0x1a56bf(0x18e)][_0x1a56bf(0x189)]({'error':_0x195ae9[_0x1a56bf(0x19f)],'state':0x1});return;}let _0x5b28b7=_0x195ae9[_0x1a56bf(0x1f2)];if(_0x5b28b7['length']===0x0){this['_requestState$']['next']({'error':{'code':_0x3ff13f[_0x1a56bf(0x22b)],'message':'Failed\x20to\x20get\x20taskID\x20from\x20import\x20response'},'state':0x1});return;}return this['_requestState$']['next']({'error':_0x195ae9[_0x1a56bf(0x19f)],'state':0x1}),_0x5b28b7;}async[_0x33286a(0x16b)](_0x1ca969){const _0x4cabb9=_0x33286a;let _0x1e235b=await this[_0x4cabb9(0x182)]['signUrl'](_0x1ca969);if(!_0x1e235b){this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':{'code':_0x3ff13f[_0x4cabb9(0x22b)],'message':_0x4cabb9(0x1dc)},'state':0x4});return;}if(_0x1e235b[_0x4cabb9(0x19f)]&&_0x1e235b[_0x4cabb9(0x19f)][_0x4cabb9(0x21d)]!==_0x3ff13f['OK']){this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':_0x1e235b[_0x4cabb9(0x19f)],'state':0x4});return;}let _0x1b18bb=_0x510b26(_0x1e235b[_0x4cabb9(0x1a9)],this[_0x4cabb9(0x263)]());if(_0x1b18bb[_0x4cabb9(0x1a0)]===0x0){this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':{'code':_0x3ff13f[_0x4cabb9(0x22b)],'message':_0x4cabb9(0x1dc)},'state':0x4});return;}return this[_0x4cabb9(0x18e)][_0x4cabb9(0x189)]({'error':_0x1e235b['error'],'state':0x4}),_0x1b18bb;}[_0x33286a(0x263)](){const _0x30db31=_0x33286a;var _0x570f19;let _0x107d6c=this['_configService'][_0x30db31(0x289)](T);return(_0x570f19=_0x107d6c==null?void 0x0:_0x107d6c[_0x30db31(0x1a7)])==null?location[_0x30db31(0x287)]:_0x570f19;}[_0x33286a(0x275)](){const _0x10b8c4=_0x33286a;var _0x17c6bd,_0x4c2a5f;let _0x42402f=this[_0x10b8c4(0x1e0)][_0x10b8c4(0x289)](T);return(_0x17c6bd=_0x42402f==null||(_0x4c2a5f=_0x42402f['options'])==null?void 0x0:_0x4c2a5f[_0x10b8c4(0x29a)])==null?0x1:_0x17c6bd;}['_getMinSheetColumnCount'](){const _0x3158a7=_0x33286a;var _0x4c0f93,_0x5c2312;let _0x501675=this[_0x3158a7(0x1e0)]['getConfig'](T);return(_0x4c0f93=_0x501675==null||(_0x5c2312=_0x501675[_0x3158a7(0x262)])==null?void 0x0:_0x5c2312[_0x3158a7(0x281)])==null?0x1:_0x4c0f93;}[_0x33286a(0x2ba)](){const _0x591b7c=_0x33286a;var _0x387c69,_0x271129;let _0x5772db=this[_0x591b7c(0x1e0)]['getConfig'](T);return(_0x387c69=_0x5772db==null||(_0x271129=_0x5772db[_0x591b7c(0x262)])==null?void 0x0:_0x271129[_0x591b7c(0x208)])==null?!0x0:_0x387c69;}['_getIgnoreTableExport'](){const _0xe566b1=_0x33286a;var _0x4c5f01,_0x12d9a9;let _0x1e1674=this[_0xe566b1(0x1e0)][_0xe566b1(0x289)](T);return(_0x4c5f01=_0x1e1674==null||(_0x12d9a9=_0x1e1674[_0xe566b1(0x262)])==null?void 0x0:_0x12d9a9[_0xe566b1(0x1b5)])==null?!0x1:_0x4c5f01;}};Y=D([E(0x0,_0x3789d5),E(0x1,_0x42e024(_0x4d5109)),E(0x2,_0x42e024(W))],Y);const it={'done':0x0,'count':0x0},X=_0x9aec77(_0x33286a(0x26a));let Z=class extends _0x1e19cc{constructor(_0x208d01,_0x3a0cdc,_0x4f4b89,_0x2a1f51,_0x3a4531,_0x4e0109,_0x59c94a){const _0x28261c=_0x33286a;super(),this[_0x28261c(0x1e5)]=_0x208d01,this[_0x28261c(0x210)]=_0x3a0cdc,this['_localeService']=_0x4f4b89,this[_0x28261c(0x22f)]=_0x2a1f51,this[_0x28261c(0x28c)]=_0x3a4531,this[_0x28261c(0x1f1)]=_0x4e0109,this[_0x28261c(0x23e)]=_0x59c94a,A(this,_0x28261c(0x1ec),new _0x4a0dc3(it)),A(this,_0x28261c(0x260),this[_0x28261c(0x1ec)][_0x28261c(0x223)]()),A(this,_0x28261c(0x229),0x0),A(this,_0x28261c(0x27a),0x0),this[_0x28261c(0x20a)](_0xb125b6(this[_0x28261c(0x22f)]['requestState$'][_0x28261c(0x1c0)](_0x39ec52=>{const _0x2b1920=_0x28261c;var _0x434dc3;((_0x434dc3=_0x39ec52[_0x2b1920(0x19f)])==null?void 0x0:_0x434dc3['code'])===_0x3ff13f['OK']?this[_0x2b1920(0x294)](0x1):this[_0x2b1920(0x16c)](_0x39ec52[_0x2b1920(0x19f)]);})));}[_0x33286a(0x27b)](){const _0x484129=_0x33286a;this[_0x484129(0x1fc)](),this[_0x484129(0x28c)]['updateState'](0x2),this['_exchangeService'][_0x484129(0x197)]();}async[_0x33286a(0x241)](_0x3fb49d){const _0xb5eb0=_0x33286a;throw Error(_0xb5eb0(0x1bd));}async[_0x33286a(0x248)](){const _0x31670c=_0x33286a;let _0x28b779=this['_univerInstanceService'][_0x31670c(0x202)]();switch(_0x28b779?this[_0x31670c(0x1e5)][_0x31670c(0x21a)](_0x28b779[_0x31670c(0x272)]()):_0x127a83[_0x31670c(0x22b)]){case _0x127a83['UNIVER_SLIDE']:return this['importPPTXToUnitId']();case _0x127a83['UNIVER_DOC']:return this[_0x31670c(0x205)]();case _0x127a83[_0x31670c(0x268)]:default:return this[_0x31670c(0x17d)]();}}async['importDOCXToUnitId'](){const _0x17551a=_0x33286a;let _0x24f0ca=await V([_0x127a83['UNIVER_DOC']]);if(_0x24f0ca&&!this['_fileTypeError'](_0x24f0ca,_0x127a83[_0x17551a(0x2c0)]))return this[_0x17551a(0x24b)](_0x24f0ca[0x0],_0x127a83['UNIVER_DOC']);}[_0x33286a(0x18d)](){const _0x4e786d=_0x33286a;throw Error(_0x4e786d(0x1bd));}async[_0x33286a(0x219)](_0x94355d,_0x55e0da,_0x1753df){const _0x4662f1=_0x33286a;this[_0x4662f1(0x1e2)](_0x414fd5[_0x4662f1(0x2c3)]);let _0x353d62=await this[_0x4662f1(0x22f)][_0x4662f1(0x219)](_0x94355d||this[_0x4662f1(0x237)]());_0x353d62&&(this[_0x4662f1(0x22f)][_0x4662f1(0x1a1)](_0x353d62,_0x55e0da||this[_0x4662f1(0x23a)](_0x353d62),_0x4662f1(0x1f0)),this['_showDownloadMessage'](_0x414fd5['Success']));}async['exportDOCXBySnapshot'](){const _0x23cbe7=_0x33286a;this['_showDownloadMessage'](_0x414fd5[_0x23cbe7(0x2c3)]);let _0x363fed=await this[_0x23cbe7(0x1da)](),_0x984727=await this[_0x23cbe7(0x22f)][_0x23cbe7(0x1c4)](_0x363fed);_0x984727&&(this['_exchangeService'][_0x23cbe7(0x1a1)](_0x984727,this[_0x23cbe7(0x23a)](_0x984727),_0x23cbe7(0x1f0)),this['_showDownloadMessage'](_0x414fd5[_0x23cbe7(0x200)]));}async[_0x33286a(0x17e)](){const _0x231153=_0x33286a;if(this[_0x231153(0x28b)]()){this['_messageService'][_0x231153(0x25d)]({'type':_0x414fd5[_0x231153(0x28f)],'content':this[_0x231153(0x1a8)]['t'](_0x231153(0x2bd))});return;}let _0x7c8454=await V([_0x127a83['UNIVER_SLIDE']]);if(_0x7c8454&&!this['_fileTypeError'](_0x7c8454,_0x127a83['UNIVER_SLIDE']))return this[_0x231153(0x24b)](_0x7c8454[0x0],_0x127a83[_0x231153(0x16d)]);}async[_0x33286a(0x19b)](){const _0x39c1e3=_0x33286a;if(this['_uploadTaskNotDone']()){this[_0x39c1e3(0x210)][_0x39c1e3(0x25d)]({'type':_0x414fd5[_0x39c1e3(0x28f)],'content':this['_localeService']['t'](_0x39c1e3(0x2bd))});return;}let _0xcdfc7=await V([_0x127a83['UNIVER_SLIDE']]);if(!_0xcdfc7)return;this[_0x39c1e3(0x2c9)](_0x414fd5[_0x39c1e3(0x2c3)]);let _0x1fdef7=await this[_0x39c1e3(0x22f)]['importPPTXToSnapshot'](_0xcdfc7[0x0]);_0x1fdef7&&(this['_refreshSlide'](_0x1fdef7),this[_0x39c1e3(0x2c9)](_0x414fd5[_0x39c1e3(0x200)]));}async[_0x33286a(0x23b)](_0x593b7d,_0x105280,_0x3bfd57){const _0x516e9c=_0x33286a;this[_0x516e9c(0x1e2)](_0x414fd5['Info']);let _0x113ca1=await this[_0x516e9c(0x22f)]['exportPPTXByUnitId'](_0x593b7d||this[_0x516e9c(0x188)]());_0x113ca1&&(this[_0x516e9c(0x22f)][_0x516e9c(0x1a1)](_0x113ca1,_0x105280||this['_getUnitNameByType'](_0x113ca1,_0x3bfd57==null?_0x127a83['UNIVER_SLIDE']:_0x3bfd57),_0x516e9c(0x29c)),this[_0x516e9c(0x1e2)](_0x414fd5[_0x516e9c(0x200)]));}async[_0x33286a(0x2b1)](){const _0x228edd=_0x33286a;this[_0x228edd(0x1e2)](_0x414fd5['Info']);let _0x4ef145=await this[_0x228edd(0x17b)](),_0x473adb=await this['_exchangeService']['exportPPTXBySnapshot'](_0x4ef145);_0x473adb&&(this[_0x228edd(0x22f)][_0x228edd(0x1a1)](_0x473adb,this[_0x228edd(0x192)](_0x473adb,_0x127a83[_0x228edd(0x16d)]),_0x228edd(0x29c)),this[_0x228edd(0x1e2)](_0x414fd5[_0x228edd(0x200)]));}async['importXLSXToUnitId'](){const _0x4dbc27=_0x33286a;if(this[_0x4dbc27(0x28b)]()){this['_messageService']['show']({'type':_0x414fd5[_0x4dbc27(0x28f)],'content':this[_0x4dbc27(0x1a8)]['t']('exchange-client.uploading')});return;}let _0x2c9210=await V([_0x127a83['UNIVER_SHEET']]);if(_0x2c9210&&!this[_0x4dbc27(0x1b3)](_0x2c9210,_0x127a83[_0x4dbc27(0x268)]))return this[_0x4dbc27(0x24b)](_0x2c9210[0x0],_0x127a83[_0x4dbc27(0x268)]);}async[_0x33286a(0x247)](){const _0x415c84=_0x33286a;if(this[_0x415c84(0x28b)]()){this[_0x415c84(0x210)][_0x415c84(0x25d)]({'type':_0x414fd5[_0x415c84(0x28f)],'content':this[_0x415c84(0x1a8)]['t'](_0x415c84(0x2bd))});return;}let _0x1cd482=await V([_0x127a83[_0x415c84(0x268)]]);if(!_0x1cd482)return;this[_0x415c84(0x2c9)](_0x414fd5[_0x415c84(0x2c3)]);let _0x4643b2=await this[_0x415c84(0x22f)]['importXLSXToSnapshot'](_0x1cd482[0x0]);_0x4643b2&&(this['_refresh'](_0x4643b2),this[_0x415c84(0x2c9)](_0x414fd5['Success']));}async['exportXLSXByUnitId'](_0x3598a6,_0x4ae99c,_0x19b2e1){const _0x24c73d=_0x33286a;this['_showDownloadMessage'](_0x414fd5['Info']);let _0x50017a=await this[_0x24c73d(0x22f)][_0x24c73d(0x267)](_0x3598a6||this[_0x24c73d(0x22a)]());_0x50017a&&(this['_exchangeService']['downloadFile'](_0x50017a,_0x4ae99c||this[_0x24c73d(0x23a)](_0x50017a),_0x24c73d(0x21c)),this['_showDownloadMessage'](_0x414fd5[_0x24c73d(0x200)]));}async[_0x33286a(0x1ce)](){const _0x297f04=_0x33286a;this[_0x297f04(0x1e2)](_0x414fd5[_0x297f04(0x2c3)]);let _0x379ead=await this[_0x297f04(0x170)](),_0x58b18a=await this[_0x297f04(0x22f)][_0x297f04(0x1ce)](_0x379ead);_0x58b18a&&(this[_0x297f04(0x22f)][_0x297f04(0x1a1)](_0x58b18a,this[_0x297f04(0x23a)](_0x58b18a),'xlsx'),this[_0x297f04(0x1e2)](_0x414fd5['Success']));}[_0x33286a(0x1ba)](_0x59aebe){const _0x31ce73=_0x33286a;this[_0x31ce73(0x23d)]=_0x59aebe;}async[_0x33286a(0x24b)](_0x237a30,_0x3047ab){const _0x4c1cd9=_0x33286a;this[_0x4c1cd9(0x28c)]['show'](),this[_0x4c1cd9(0x28c)][_0x4c1cd9(0x193)](0x0),this['_addTotalCount'](0x4),this[_0x4c1cd9(0x294)](0x1);let _0x2c8d4f=await this['_exchangeService'][_0x4c1cd9(0x2aa)](_0x237a30,_0x3047ab);if(!_0x2c8d4f){this[_0x4c1cd9(0x1fc)](),this[_0x4c1cd9(0x28c)]['updateState'](0x2);return;}let _0x3b7c65={'link':this[_0x4c1cd9(0x23d)](_0x2c8d4f,_0x3047ab),'name':_0x237a30['name'],'type':_0x3047ab};return this[_0x4c1cd9(0x28c)][_0x4c1cd9(0x280)](_0x3b7c65),this['_completeProgress'](),this[_0x4c1cd9(0x28c)][_0x4c1cd9(0x193)](0x1),_0x2c8d4f;}[_0x33286a(0x22a)](){const _0x398bc4=_0x33286a;return this[_0x398bc4(0x1e5)][_0x398bc4(0x16f)](_0x127a83[_0x398bc4(0x268)])['getUnitId']();}[_0x33286a(0x237)](){const _0x5a585a=_0x33286a;return this[_0x5a585a(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0x5a585a(0x2c0)])[_0x5a585a(0x272)]();}['_getUnitIDSlide'](){const _0xc1e0a5=_0x33286a;return this[_0xc1e0a5(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0xc1e0a5(0x16d)])[_0xc1e0a5(0x272)]();}[_0x33286a(0x23a)](_0x375a44){const _0x17bfa6=_0x33286a;return this['_getUnitNameByType'](_0x375a44,_0x127a83[_0x17bfa6(0x268)]);}[_0x33286a(0x192)](_0x574260,_0xb31d0b){const _0x48915b=_0x33286a;var _0x43ce6b;let _0x5e0127=(_0x43ce6b=this[_0x48915b(0x1e5)][_0x48915b(0x16f)](_0xb31d0b))==null?void 0x0:_0x43ce6b['getSnapshot'](),_0x171dbc=_0x5e0127==null?void 0x0:_0x5e0127[_0x48915b(0x2c8)];return typeof _0x171dbc==_0x48915b(0x1d4)&&_0x171dbc[_0x48915b(0x24a)]()?_0x171dbc:_0x574260[_0x48915b(0x2c8)][_0x48915b(0x167)]('.')[_0x48915b(0x18b)]()||document[_0x48915b(0x273)];}async[_0x33286a(0x170)](){const _0x5150ea=_0x33286a;let _0x18d341=this[_0x5150ea(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0x5150ea(0x268)]),_0x238afa=this[_0x5150ea(0x23e)][_0x5150ea(0x216)](_0x18d341[_0x5150ea(0x272)]());return _0x238afa==null?_0x18d341['getSnapshot']():_0x238afa;}async[_0x33286a(0x1da)](){const _0x4971c0=_0x33286a;let _0x2e0ab7=this[_0x4971c0(0x1e5)][_0x4971c0(0x16f)](_0x127a83[_0x4971c0(0x2c0)]),_0x4b3b4c=this[_0x4971c0(0x23e)][_0x4971c0(0x216)](_0x2e0ab7[_0x4971c0(0x272)]());return _0x4b3b4c==null?_0x2e0ab7['getSnapshot']():_0x4b3b4c;}async['_getUnitSlideJson'](){const _0x3b4275=_0x33286a;let _0x201568=this[_0x3b4275(0x1e5)][_0x3b4275(0x16f)](_0x127a83['UNIVER_SLIDE']),_0x4c9707=this['_resourceLoaderService']['saveUnit'](_0x201568['getUnitId']());return _0x4c9707==null?_0x201568[_0x3b4275(0x283)]():_0x4c9707;}[_0x33286a(0x23d)](_0x11bddd,_0x35b37b){const _0x243352=_0x33286a;let _0x33271b=new URL(window[_0x243352(0x232)]['href']);return _0x33271b[_0x243352(0x2bc)][_0x243352(0x1ef)](_0x243352(0x19c),_0x11bddd),_0x33271b[_0x243352(0x2bc)][_0x243352(0x1ef)](_0x243352(0x224),''+_0x35b37b),_0x33271b['toString']();}[_0x33286a(0x20e)](_0x11623d){const _0x51fc19=_0x33286a;let _0x3c84ad=this['_univerInstanceService'][_0x51fc19(0x16f)](_0x127a83['UNIVER_SHEET'])[_0x51fc19(0x272)]();this[_0x51fc19(0x1e5)]['disposeUnit'](_0x3c84ad),this['_univerInstanceService']['createUnit'](_0x127a83[_0x51fc19(0x268)],_0x11623d);}[_0x33286a(0x18a)](_0x110287){const _0x5dc97f=_0x33286a;let _0x922111=this[_0x5dc97f(0x1e5)]['getCurrentUnitOfType'](_0x127a83[_0x5dc97f(0x16d)])[_0x5dc97f(0x272)]();this[_0x5dc97f(0x1e5)][_0x5dc97f(0x2b2)](_0x922111),this[_0x5dc97f(0x1e5)][_0x5dc97f(0x176)](_0x127a83[_0x5dc97f(0x16d)],_0x110287);}[_0x33286a(0x16c)](_0x1ee9ff){const _0x436abf=_0x33286a;if(_0x1ee9ff){let {code:_0xc618f8}=_0x1ee9ff;switch(_0xc618f8){case _0x3ff13f['CONNECTOR_DATA_TOO_LARGE']:this[_0x436abf(0x210)][_0x436abf(0x25d)]({'type':_0x414fd5['Error'],'content':this['_localeService']['t'](_0x436abf(0x25a))});break;case _0x3ff13f['INTERNAL_ERROR']:this[_0x436abf(0x210)][_0x436abf(0x25d)]({'type':_0x414fd5[_0x436abf(0x1aa)],'content':this[_0x436abf(0x1a8)]['t'](_0x436abf(0x174))});break;default:this['_messageService']['show']({'type':_0x414fd5[_0x436abf(0x1aa)],'content':this[_0x436abf(0x1a8)]['t'](_0x436abf(0x1c1))});break;}return null;}return this[_0x436abf(0x210)]['show']({'type':_0x414fd5[_0x436abf(0x1aa)],'content':this['_localeService']['t'](_0x436abf(0x1c1))}),null;}[_0x33286a(0x1e2)](_0x3cf0ee){const _0x744538=_0x33286a;let _0x4a4695='';switch(_0x3cf0ee){case _0x414fd5[_0x744538(0x200)]:_0x4a4695=this[_0x744538(0x1a8)]['t'](_0x744538(0x27c));break;case _0x414fd5[_0x744538(0x2c3)]:_0x4a4695=this[_0x744538(0x1a8)]['t']('exchange-client.downloading');break;default:break;}this[_0x744538(0x210)][_0x744538(0x25d)]({'type':_0x3cf0ee,'content':_0x4a4695});}[_0x33286a(0x2c9)](_0x152201){const _0x3378fc=_0x33286a;let _0x17b524='';switch(_0x152201){case _0x414fd5['Success']:_0x17b524=this[_0x3378fc(0x1a8)]['t']('exchange-client.uploadSuccess');break;case _0x414fd5['Info']:_0x17b524=this[_0x3378fc(0x1a8)]['t'](_0x3378fc(0x2bd));break;default:break;}this[_0x3378fc(0x210)][_0x3378fc(0x25d)]({'type':_0x152201,'content':_0x17b524});}['_emitProgress'](){const _0x324d40=_0x33286a;this[_0x324d40(0x1ec)][_0x324d40(0x189)]({'done':this[_0x324d40(0x27a)],'count':this[_0x324d40(0x229)]});}[_0x33286a(0x206)](_0x44607d){const _0x2aa05d=_0x33286a;this[_0x2aa05d(0x229)]+=_0x44607d,this['_emitProgress']();}['_addDoneTask'](_0x53ddec){const _0x8e1c9a=_0x33286a;this[_0x8e1c9a(0x27a)]+=_0x53ddec,this['_doneUploadTaskCount']=Math[_0x8e1c9a(0x286)](this[_0x8e1c9a(0x27a)],this['_totalUploadTaskCount']),this[_0x8e1c9a(0x24e)]();}[_0x33286a(0x213)](){const _0x2010b5=_0x33286a;this[_0x2010b5(0x27a)]=this[_0x2010b5(0x229)],this['_emitProgress']();}[_0x33286a(0x1fc)](){this['_doneUploadTaskCount']=0x0,this['_totalUploadTaskCount']=0x0,this['_emitProgress']();}[_0x33286a(0x1b3)](_0xedebb2,_0x26bd93){const _0x5a031b=_0x33286a;let _0x50954b=_0xedebb2[0x0],_0x139949=_0x50954b[_0x5a031b(0x2c8)];return He(_0x50954b)===_0x26bd93?!0x1:(this[_0x5a031b(0x210)][_0x5a031b(0x25d)]({'type':_0x414fd5[_0x5a031b(0x1aa)],'content':this['_localeService']['t'](_0x5a031b(0x26d),_0x139949)}),!0x0);}[_0x33286a(0x28b)](){const _0x4c34fb=_0x33286a;return this['_totalUploadTaskCount']!==0x0&&this['_doneUploadTaskCount']!==this[_0x4c34fb(0x229)];}};Z=D([E(0x0,_0x42e024(_0x2143ae)),E(0x1,_0x4dc66a),E(0x2,_0x42e024(_0xcd31af)),E(0x3,_0x42e024(J)),E(0x4,_0x42e024(j)),E(0x5,_0x2c9d1d),E(0x6,_0x42e024(_0x3d1c83))],Z);function at(_0x35b476){const _0x1ed02e=_0x33286a;let {onClick:_0x2f6b1a,children:_0x5a0935,className:_0x3ffa78}=_0x35b476;return _0x5b1a45(_0x1ed02e(0x1d0),{'className':_0x1ca27a(_0x1ed02e(0x278),_0x3ffa78),'type':'button','onClick':_0x2f6b1a,'children':_0x5a0935});}function ot(){const _0x33eb25=_0x33286a;let _0x2c95e5=_0x56b32c(X),_0x52ddb0=_0x56b32c(_0xcd31af);function _0x441fa2(){const _0x3fb0b6=_0x5cad;_0x2c95e5[_0x3fb0b6(0x248)]();}return _0x5b1a45(at,{'onClick':_0x441fa2,'children':_0x52ddb0['t'](_0x33eb25(0x299))});}function st(){const _0x3b8b8b=_0x33286a;return _0x552aae(_0x3b8b8b(0x1dd),{'className':_0x3b8b8b(0x20d),'children':[_0x5b1a45(_0x3b8b8b(0x235),{'className':_0x3b8b8b(0x21e),'children':_0x56b32c(_0xcd31af)['t'](_0x3b8b8b(0x1b7))}),_0x5b1a45(ot,{})]});}function ct(_0x3df9bd){const _0x15624e=_0x33286a;let {count:_0x104824}=_0x3df9bd;return _0x552aae(_0x15624e(0x1dd),{'className':_0x15624e(0x199),'children':[_0x5b1a45(_0x15624e(0x235),{'className':_0x15624e(0x274),'children':_0x56b32c(_0xcd31af)['t']('exchange-client.uploadSuccessTip',''+_0x104824)}),_0x5b1a45(ot,{})]});}function lt(){const _0x2d95c6=_0x33286a;let _0x516c7d=_0x56b32c(X),_0x2e6c55=_0x56b32c(_0xcd31af);function _0x3c9fcc(){const _0x1cf397=_0x5cad;_0x516c7d[_0x1cf397(0x27b)]();}return _0x5b1a45(at,{'onClick':_0x3c9fcc,'children':_0x2e6c55['t'](_0x2d95c6(0x1c8))});}function ut(){const _0x32e5ea=_0x33286a;let {count:_0x45858c,done:_0x248036}=_0x45108c(_0x56b32c(X)[_0x32e5ea(0x260)]),_0x351186=_0x45858c>0x0?_0x248036/_0x45858c:0x0;return _0x5b1a45(_0x32e5ea(0x1dd),{'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':_0x5b1a45(_0x32e5ea(0x1dd),{'className':_0x32e5ea(0x1e9),'style':{'width':Math[_0x32e5ea(0x1f3)](_0x351186*0x64)+'%'}})});}function dt(){const _0x4e8182=_0x33286a;return _0x552aae(_0x4e8182(0x1dd),{'className':_0x4e8182(0x20d),'children':[_0x5b1a45(_0x4e8182(0x235),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x56b32c(_0xcd31af)['t'](_0x4e8182(0x261))}),_0x5b1a45(_0x4e8182(0x1dd),{'className':_0x4e8182(0x1cb),'children':_0x5b1a45(ut,{})}),_0x5b1a45(lt,{})]});}function _0x5cad(_0x4d7490,_0x2ffb02){_0x4d7490=_0x4d7490-0x164;const _0x113649=_0x1136();let _0x5cadf9=_0x113649[_0x4d7490];return _0x5cadf9;}const ft={0x1:_0x5b1a45(_0x3359c4,{'className':_0x33286a(0x226)}),0x0:_0x5b1a45(_0x3bbb8f,{'className':_0x33286a(0x254)}),0x2:_0x5b1a45(_0x6f3282,{'className':_0x33286a(0x201)})};function pt(){const _0xd95c8f=_0x33286a;let _0x30bad3=_0x56b32c(j),_0x1419ec=_0x56b32c(_0xcd31af),_0x350f38=_0x45108c(_0x30bad3[_0xd95c8f(0x171)],0x0),_0x40adbb=_0x45108c(_0x30bad3['visible$'],!0x1),_0x19113d=_0x45108c(_0x30bad3[_0xd95c8f(0x1f7)],[]);function _0x1c6aa3(){const _0x16358b=_0xd95c8f;_0x30bad3[_0x16358b(0x245)]();}function _0x53d886(_0x242ba0){const _0x213108=_0xd95c8f;switch(_0x242ba0){case 0x1:return _0x1419ec['t'](_0x213108(0x17a));case 0x0:return _0x1419ec['t']('exchange-client.uploading');case 0x2:return _0x1419ec['t'](_0x213108(0x18f));default:return'';}}return _0x40adbb&&_0x552aae(_0xd95c8f(0x1dd),{'className':_0xd95c8f(0x270),'children':[_0x552aae(_0xd95c8f(0x1dd),{'className':_0xd95c8f(0x214),'children':[_0x552aae(_0xd95c8f(0x235),{'className':_0xd95c8f(0x1d6),'children':[_0x5b1a45(_0xd95c8f(0x235),{'className':_0xd95c8f(0x1cd),'children':ft[_0x350f38]}),_0x5b1a45(_0xd95c8f(0x235),{'className':_0xd95c8f(0x1ae),'children':_0x53d886(_0x350f38)})]}),_0x5b1a45(_0xd95c8f(0x235),{'className':'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','onClick':_0x1c6aa3,'children':_0x5b1a45(_0xd5e3c,{})})]}),_0x552aae(_0xd95c8f(0x1dd),{'children':[_0x350f38===0x0&&_0x5b1a45(dt,{}),_0x350f38===0x2&&_0x5b1a45(st,{}),_0x19113d[_0xd95c8f(0x1a0)]>0x0&&_0x5b1a45(Be,{'list':_0x19113d}),_0x350f38===0x1&&_0x5b1a45(ct,{'count':_0x19113d['length']})]})]});}function mt(){return _0x5b1a45(pt,{});}let Q=class extends _0x1e19cc{constructor(_0x1d3d71,_0x57c782){const _0x161381=_0x33286a;super(),this[_0x161381(0x1c7)]=_0x1d3d71,this[_0x161381(0x1ca)]=_0x57c782,this['_registerUIParts']();}[_0x33286a(0x2a1)](){const _0x504665=_0x33286a;this['disposeWithMe'](this[_0x504665(0x1ca)][_0x504665(0x284)](_0x531cab[_0x504665(0x293)],()=>_0x4c45b1(mt,this['_injector'])));}};Q=D([E(0x0,_0x42e024(_0x33c4f6)),E(0x1,_0x9de50e)],Q);let $=class extends _0x18db66{constructor(_0xa998c=Ie,_0x4abc74,_0x1b02b0){const _0x5f5111=_0x33286a;super(),this[_0x5f5111(0x25e)]=_0xa998c,this['_injector']=_0x4abc74,this['_configService']=_0x1b02b0;let {..._0xdf1962}=_0x53c4af({},Ie,this[_0x5f5111(0x25e)]);this['_configService'][_0x5f5111(0x2a8)](T,_0xdf1962);}[_0x33286a(0x1ea)](){const _0x30a2e5=_0x33286a;_0x594ee9(this[_0x30a2e5(0x1c7)],[[O],[Q],[X,{'useClass':Z}],[J,{'useClass':Y}],[W,{'useClass':G}],[j,{'useClass':ze}]]);}[_0x33286a(0x2ad)](){const _0x21a965=_0x33286a;_0x48beab(this[_0x21a965(0x1c7)],[[O],[Q],[X]]);}};A($,_0x33286a(0x1db),'UNIVER_EXCHANGE_CLIENT_PLUGIN'),A($,_0x33286a(0x243),Pe),A($,_0x33286a(0x2b5),Fe),$=D([_0x20a1e0(_0x47c91a,_0x36cae2),E(0x1,_0x42e024(_0x33c4f6)),E(0x2,_0x3789d5)],$);export{X as IExchangeOperateService,J as IExchangeService,$ as UniverExchangeClientPlugin,Ve as downloadFile,tt as transformSnapshotJsonToWorkbookData,Qe as transformWorkbookDataToSnapshotJson};
|