@univerjs-pro/exchange-client 0.21.0 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/umd/facade.js +1 -1
  44. package/lib/umd/index.js +1 -1
  45. package/lib/umd/locale/ca-ES.js +1 -1
  46. package/lib/umd/locale/en-US.js +1 -1
  47. package/lib/umd/locale/es-ES.js +1 -1
  48. package/lib/umd/locale/fa-IR.js +1 -1
  49. package/lib/umd/locale/fr-FR.js +1 -1
  50. package/lib/umd/locale/ja-JP.js +1 -1
  51. package/lib/umd/locale/ko-KR.js +1 -1
  52. package/lib/umd/locale/ru-RU.js +1 -1
  53. package/lib/umd/locale/sk-SK.js +1 -1
  54. package/lib/umd/locale/vi-VN.js +1 -1
  55. package/lib/umd/locale/zh-CN.js +1 -1
  56. package/lib/umd/locale/zh-TW.js +1 -1
  57. package/package.json +9 -9
@@ -1 +1 @@
1
- function _0x4353(){const _0x304147=['21waTqqe','Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','377428DtivAe','2azagsn','4716230HvvWrk','50NMrBQl','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','3nURyzl','Otvoriť\x20(súbor)','11QIVqIn','Sieťová\x20chyba','147696sFezPC','16046268TCPyDq','1232696FGnIsW','5014224BGpmJG','Interná\x20neznáma\x20chyba','Zrušiť','Uložiť\x20ako','Dáta\x20sú\x20príliš\x20veľké','Súbor','Nahrať\x20znova','Sťahovanie\x20úspešné','38142GSEbpp'];_0x4353=function(){return _0x304147;};return _0x4353();}const _0x594276=_0x58b6;function _0x58b6(_0x4447b3,_0x556dbe){_0x4447b3=_0x4447b3-0x6e;const _0x4353c9=_0x4353();let _0x58b6fc=_0x4353c9[_0x4447b3];return _0x58b6fc;}(function(_0x17f6e2,_0x3da588){const _0x1d4fcb=_0x58b6,_0x391c46=_0x17f6e2();while(!![]){try{const _0x19df0a=parseInt(_0x1d4fcb(0x84))/0x1*(parseInt(_0x1d4fcb(0x83))/0x2)+parseInt(_0x1d4fcb(0x71))/0x3*(-parseInt(_0x1d4fcb(0x77))/0x4)+parseInt(_0x1d4fcb(0x6e))/0x5+parseInt(_0x1d4fcb(0x78))/0x6+-parseInt(_0x1d4fcb(0x81))/0x7*(-parseInt(_0x1d4fcb(0x75))/0x8)+-parseInt(_0x1d4fcb(0x80))/0x9*(parseInt(_0x1d4fcb(0x6f))/0xa)+-parseInt(_0x1d4fcb(0x73))/0xb*(parseInt(_0x1d4fcb(0x76))/0xc);if(_0x19df0a===_0x3da588)break;else _0x391c46['push'](_0x391c46['shift']());}catch(_0x318507){_0x391c46['push'](_0x391c46['shift']());}}}(_0x4353,0x851bb));const locale={'exchange':{'file':_0x594276(0x7d),'upload':_0x594276(0x72),'download':_0x594276(0x7b),'uploading':'Nahrávanie','uploadSuccess':'Súbor\x20bol\x20úspešne\x20nahraný','uploadSuccessTip':'Úspešne\x20nahraných\x20{0}\x20súborov','downloading':'Sťahovanie','downloadSuccess':_0x594276(0x7f),'unknownMistake':'Neznáma\x20chyba','networkError':_0x594276(0x74),'tooLarge':_0x594276(0x7c),'internalError':_0x594276(0x79),'interrupt':_0x594276(0x82),'fileTypeError':_0x594276(0x70),'wait':'Prosím\x20počkajte...','cancel':_0x594276(0x7a),'uploadAgain':_0x594276(0x7e)}};module['exports']=locale;
1
+ const _0x15b0d4=_0x70f1;(function(_0x19f26e,_0x595dca){const _0x23422b=_0x70f1,_0x365b99=_0x19f26e();while(!![]){try{const _0xb7f67=-parseInt(_0x23422b(0x175))/0x1*(-parseInt(_0x23422b(0x183))/0x2)+parseInt(_0x23422b(0x18c))/0x3+-parseInt(_0x23422b(0x189))/0x4*(parseInt(_0x23422b(0x180))/0x5)+parseInt(_0x23422b(0x17c))/0x6*(parseInt(_0x23422b(0x17b))/0x7)+parseInt(_0x23422b(0x18b))/0x8*(parseInt(_0x23422b(0x178))/0x9)+parseInt(_0x23422b(0x176))/0xa+parseInt(_0x23422b(0x17d))/0xb*(-parseInt(_0x23422b(0x182))/0xc);if(_0xb7f67===_0x595dca)break;else _0x365b99['push'](_0x365b99['shift']());}catch(_0x54d36b){_0x365b99['push'](_0x365b99['shift']());}}}(_0x4cde,0x7fd5b));const locale={'exchange':{'file':_0x15b0d4(0x186),'upload':_0x15b0d4(0x177),'download':_0x15b0d4(0x17f),'uploading':'Nahrávanie','uploadSuccess':_0x15b0d4(0x18a),'uploadSuccessTip':_0x15b0d4(0x179),'downloading':_0x15b0d4(0x187),'downloadSuccess':_0x15b0d4(0x184),'unknownMistake':_0x15b0d4(0x185),'networkError':_0x15b0d4(0x188),'tooLarge':_0x15b0d4(0x181),'internalError':_0x15b0d4(0x17a),'interrupt':'Sieťové\x20pripojenie\x20bolo\x20prerušené\x20a\x20nahrávanie\x20súboru\x20zlyhalo','fileTypeError':_0x15b0d4(0x17e),'wait':'Prosím\x20počkajte...','cancel':'Zrušiť','uploadAgain':'Nahrať\x20znova'}};module['exports']=locale;function _0x70f1(_0x4c8f97,_0x1e0a18){_0x4c8f97=_0x4c8f97-0x175;const _0x4cde95=_0x4cde();let _0x70f160=_0x4cde95[_0x4c8f97];return _0x70f160;}function _0x4cde(){const _0xa0f4c6=['Sťahovanie\x20úspešné','Neznáma\x20chyba','Súbor','Sťahovanie','Sieťová\x20chyba','20nOiyOU','Súbor\x20bol\x20úspešne\x20nahraný','19816cuVnHD','605538lOqKVP','5ggaAjl','2077240bCgIRs','Otvoriť\x20(súbor)','2799henVNa','Úspešne\x20nahraných\x20{0}\x20súborov','Interná\x20neznáma\x20chyba','54313bfVvao','642iiXPvf','22FNAuNI','Vybraný\x20súbor\x20[{0}]\x20nie\x20je\x20podporovaný\x20na\x20nahrávanie','Uložiť\x20ako','153250VSMDxj','Dáta\x20sú\x20príliš\x20veľké','13197084xDUJNv','346498gtcKVT'];_0x4cde=function(){return _0xa0f4c6;};return _0x4cde();}
@@ -1 +1 @@
1
- const _0x2ecd27=_0xce2d;(function(_0x3d671a,_0x3e0baa){const _0x431b95=_0xce2d,_0x3210cc=_0x3d671a();while(!![]){try{const _0x32bbf7=-parseInt(_0x431b95(0xe6))/0x1*(parseInt(_0x431b95(0xdc))/0x2)+-parseInt(_0x431b95(0xd7))/0x3+-parseInt(_0x431b95(0xda))/0x4*(parseInt(_0x431b95(0xe3))/0x5)+-parseInt(_0x431b95(0xe8))/0x6*(parseInt(_0x431b95(0xd9))/0x7)+-parseInt(_0x431b95(0xd5))/0x8+parseInt(_0x431b95(0xdf))/0x9*(-parseInt(_0x431b95(0xe5))/0xa)+parseInt(_0x431b95(0xe2))/0xb;if(_0x32bbf7===_0x3e0baa)break;else _0x3210cc['push'](_0x3210cc['shift']());}catch(_0x1901b5){_0x3210cc['push'](_0x3210cc['shift']());}}}(_0x59d2,0x64c01));const locale={'exchange':{'file':'Tệp','upload':_0x2ecd27(0xd8),'download':'Lưu\x20dưới\x20dạng','uploading':'Đang\x20tải\x20lên','uploadSuccess':_0x2ecd27(0xe0),'uploadSuccessTip':'{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','downloading':_0x2ecd27(0xdd),'downloadSuccess':_0x2ecd27(0xe1),'unknownMistake':_0x2ecd27(0xdb),'networkError':_0x2ecd27(0xd6),'tooLarge':_0x2ecd27(0xde),'internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x2ecd27(0xea),'fileTypeError':_0x2ecd27(0xe7),'wait':_0x2ecd27(0xe9),'cancel':'Hủy\x20bỏ','uploadAgain':'Tải\x20lên\x20lại'}};function _0xce2d(_0x4c4d44,_0x5df177){_0x4c4d44=_0x4c4d44-0xd5;const _0x59d27d=_0x59d2();let _0xce2d71=_0x59d27d[_0x4c4d44];return _0xce2d71;}function _0x59d2(){const _0x190a36=['Tải\x20xuống\x20thành\x20công','45900250vyKLoj','41090wPcQIh','exports','370DNSKTS','1qcMbGL','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','1448232qvenBx','Vui\x20lòng\x20đợi...','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','5629288UzPMcq','Lỗi\x20mạng','2352018aNvaAl','Mở\x20(Tệp)','21TkecGV','284KuWGRF','Lỗi\x20không\x20xác\x20định','1425766SSHPaY','Đang\x20tải\x20xuống','Luồng\x20dữ\x20liệu\x20quá\x20lớn','61281PvWJSC','Tải\x20lên\x20tệp\x20thành\x20công'];_0x59d2=function(){return _0x190a36;};return _0x59d2();}module[_0x2ecd27(0xe4)]=locale;
1
+ const _0x55f206=_0x3248;(function(_0x23d75c,_0x33e369){const _0x3e2428=_0x3248,_0x41ce0a=_0x23d75c();while(!![]){try{const _0x241ab6=parseInt(_0x3e2428(0x138))/0x1+-parseInt(_0x3e2428(0x12b))/0x2+-parseInt(_0x3e2428(0x13b))/0x3*(parseInt(_0x3e2428(0x135))/0x4)+-parseInt(_0x3e2428(0x127))/0x5*(parseInt(_0x3e2428(0x129))/0x6)+-parseInt(_0x3e2428(0x128))/0x7*(-parseInt(_0x3e2428(0x134))/0x8)+-parseInt(_0x3e2428(0x136))/0x9*(-parseInt(_0x3e2428(0x139))/0xa)+parseInt(_0x3e2428(0x126))/0xb*(parseInt(_0x3e2428(0x12a))/0xc);if(_0x241ab6===_0x33e369)break;else _0x41ce0a['push'](_0x41ce0a['shift']());}catch(_0xc3685b){_0x41ce0a['push'](_0x41ce0a['shift']());}}}(_0x129f,0xaa0b1));const locale={'exchange':{'file':'Tệp','upload':_0x55f206(0x12f),'download':'Lưu\x20dưới\x20dạng','uploading':_0x55f206(0x13a),'uploadSuccess':_0x55f206(0x12c),'uploadSuccessTip':_0x55f206(0x130),'downloading':_0x55f206(0x137),'downloadSuccess':_0x55f206(0x132),'unknownMistake':_0x55f206(0x131),'networkError':_0x55f206(0x133),'tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':'Lỗi\x20không\x20xác\x20định\x20bên\x20trong','interrupt':_0x55f206(0x12e),'fileTypeError':_0x55f206(0x12d),'wait':_0x55f206(0x124),'cancel':_0x55f206(0x13c),'uploadAgain':_0x55f206(0x125)}};function _0x3248(_0x5b01b2,_0x2472a4){_0x5b01b2=_0x5b01b2-0x124;const _0x129fa9=_0x129f();let _0x32485f=_0x129fa9[_0x5b01b2];return _0x32485f;}module['exports']=locale;function _0x129f(){const _0xba653=['Hủy\x20bỏ','Vui\x20lòng\x20đợi...','Tải\x20lên\x20lại','1088494ambcqz','5cIgLMp','29449mDNCUb','2600214shhiLQ','24yFpUMr','1623976atPHCv','Tải\x20lên\x20tệp\x20thành\x20công','Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','Mở\x20(Tệp)','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lỗi\x20không\x20xác\x20định','Tải\x20xuống\x20thành\x20công','Lỗi\x20mạng','1008qAgfCc','216ixZKUu','9tiyIWK','Đang\x20tải\x20xuống','1226367iARPXE','3886090hRFXKB','Đang\x20tải\x20lên','22284LCXakF'];_0x129f=function(){return _0xba653;};return _0x129f();}
@@ -1 +1 @@
1
- const _0x50fe38=_0xa880;(function(_0x13b1f9,_0x19ab63){const _0x1f9d99=_0xa880,_0x2a1264=_0x13b1f9();while(!![]){try{const _0x1bdb02=-parseInt(_0x1f9d99(0x1e5))/0x1*(parseInt(_0x1f9d99(0x1e1))/0x2)+-parseInt(_0x1f9d99(0x1e3))/0x3*(-parseInt(_0x1f9d99(0x1d3))/0x4)+parseInt(_0x1f9d99(0x1d9))/0x5+-parseInt(_0x1f9d99(0x1da))/0x6+-parseInt(_0x1f9d99(0x1e7))/0x7+-parseInt(_0x1f9d99(0x1e4))/0x8*(parseInt(_0x1f9d99(0x1d6))/0x9)+-parseInt(_0x1f9d99(0x1df))/0xa*(-parseInt(_0x1f9d99(0x1dd))/0xb);if(_0x1bdb02===_0x19ab63)break;else _0x2a1264['push'](_0x2a1264['shift']());}catch(_0x4bfca8){_0x2a1264['push'](_0x2a1264['shift']());}}}(_0x337c,0x4a81b));function _0xa880(_0x41b491,_0x3693cc){_0x41b491=_0x41b491-0x1d0;const _0x337cff=_0x337c();let _0xa8805c=_0x337cff[_0x41b491];return _0xa8805c;}function _0x337c(){const _0x596cb7=['27BlNwwt','打开(文件)','网络异常','2115855MnMcKc','2533518UBGukF','数据流过大','下载中','5181AQDTCo','内部未知错误','28060DIfkmB','所选文件\x20[{0}]\x20不支持上传','2830SbsaBa','exports','165582nJhxJZ','552616nAFfkF','305AgluRX','{0}个文件上传成功','4195345NqIglJ','再次上传','上传中','另存为','16bKwMlh','文件上传成功','网络连接中断,文件上传失败'];_0x337c=function(){return _0x596cb7;};return _0x337c();}const locale={'exchange':{'file':'文件','upload':_0x50fe38(0x1d7),'download':_0x50fe38(0x1d2),'uploading':_0x50fe38(0x1d1),'uploadSuccess':_0x50fe38(0x1d4),'uploadSuccessTip':_0x50fe38(0x1e6),'downloading':_0x50fe38(0x1dc),'downloadSuccess':'下载成功','unknownMistake':'未知错误','networkError':_0x50fe38(0x1d8),'tooLarge':_0x50fe38(0x1db),'internalError':_0x50fe38(0x1de),'interrupt':_0x50fe38(0x1d5),'fileTypeError':_0x50fe38(0x1e0),'wait':'请稍等...','cancel':'取消','uploadAgain':_0x50fe38(0x1d0)}};module[_0x50fe38(0x1e2)]=locale;
1
+ const _0x1dde64=_0x3323;function _0x3d46(){const _0x562d2a=['33VuTPid','2341380WciFWY','29sUoZeb','{0}个文件上传成功','6oprBxK','下载成功','打开(文件)','19784VpveLT','未知错误','数据流过大','110nICLQD','424476AsrUQv','网络异常','9956034VmoVen','240244jMlrrO','上传中','再次上传','内部未知错误','网络连接中断,文件上传失败','117PjHjnf','另存为','8076msiEvf','2423140chXUzD','364MSdklG'];_0x3d46=function(){return _0x562d2a;};return _0x3d46();}(function(_0x4669dd,_0x3736f0){const _0x34be72=_0x3323,_0x48898b=_0x4669dd();while(!![]){try{const _0x1afa5b=-parseInt(_0x34be72(0x9f))/0x1*(parseInt(_0x34be72(0x9a))/0x2)+parseInt(_0x34be72(0x9d))/0x3*(parseInt(_0x34be72(0x93))/0x4)+parseInt(_0x34be72(0x9b))/0x5*(-parseInt(_0x34be72(0xa1))/0x6)+-parseInt(_0x34be72(0x9c))/0x7*(-parseInt(_0x34be72(0xa4))/0x8)+-parseInt(_0x34be72(0xa8))/0x9*(parseInt(_0x34be72(0xa7))/0xa)+-parseInt(_0x34be72(0x92))/0xb+parseInt(_0x34be72(0x9e))/0xc*(parseInt(_0x34be72(0x98))/0xd);if(_0x1afa5b===_0x3736f0)break;else _0x48898b['push'](_0x48898b['shift']());}catch(_0x1867d3){_0x48898b['push'](_0x48898b['shift']());}}}(_0x3d46,0x7edfa));function _0x3323(_0x59d97a,_0xdaf6ad){_0x59d97a=_0x59d97a-0x91;const _0x3d46cd=_0x3d46();let _0x3323f7=_0x3d46cd[_0x59d97a];return _0x3323f7;}const locale={'exchange':{'file':'文件','upload':_0x1dde64(0xa3),'download':_0x1dde64(0x99),'uploading':_0x1dde64(0x94),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0x1dde64(0xa0),'downloading':'下载中','downloadSuccess':_0x1dde64(0xa2),'unknownMistake':_0x1dde64(0xa5),'networkError':_0x1dde64(0x91),'tooLarge':_0x1dde64(0xa6),'internalError':_0x1dde64(0x96),'interrupt':_0x1dde64(0x97),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':'请稍等...','cancel':'取消','uploadAgain':_0x1dde64(0x95)}};module['exports']=locale;
@@ -1 +1 @@
1
- const _0x5af98a=_0x1574;function _0x1574(_0x2080fd,_0x55554f){_0x2080fd=_0x2080fd-0x1ed;const _0x55e781=_0x55e7();let _0x1574ed=_0x55e781[_0x2080fd];return _0x1574ed;}(function(_0x10cfac,_0x3ab048){const _0xa4a338=_0x1574,_0x12ca79=_0x10cfac();while(!![]){try{const _0xe0bcb4=-parseInt(_0xa4a338(0x1ed))/0x1+-parseInt(_0xa4a338(0x1f1))/0x2+parseInt(_0xa4a338(0x1f3))/0x3+-parseInt(_0xa4a338(0x1f2))/0x4*(parseInt(_0xa4a338(0x1f6))/0x5)+-parseInt(_0xa4a338(0x1f5))/0x6*(-parseInt(_0xa4a338(0x1fb))/0x7)+-parseInt(_0xa4a338(0x1f9))/0x8*(parseInt(_0xa4a338(0x1ef))/0x9)+parseInt(_0xa4a338(0x1fa))/0xa*(parseInt(_0xa4a338(0x1ff))/0xb);if(_0xe0bcb4===_0x3ab048)break;else _0x12ca79['push'](_0x12ca79['shift']());}catch(_0xe45c53){_0x12ca79['push'](_0x12ca79['shift']());}}}(_0x55e7,0x6d80b));const locale={'exchange':{'file':'檔案','upload':_0x5af98a(0x1f8),'download':_0x5af98a(0x1f7),'uploading':_0x5af98a(0x1fe),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x5af98a(0x1ee),'downloadSuccess':_0x5af98a(0x1f0),'unknownMistake':_0x5af98a(0x1f4),'networkError':'網路異常','tooLarge':'資料流過大','internalError':'內部未知錯誤','interrupt':'網路連線中斷,檔案上傳失敗','fileTypeError':_0x5af98a(0x1fd),'wait':_0x5af98a(0x200),'cancel':'取消','uploadAgain':_0x5af98a(0x201)}};module[_0x5af98a(0x1fc)]=locale;function _0x55e7(){const _0x537061=['32EzvTrc','10jRJLna','2081387MQVfxQ','exports','所選檔案\x20[{0}]\x20不支援上傳','上傳中','22276969ZdIYtt','請稍等...','再次上傳','673136RwDbbP','下載中','732348YwEzKM','下載成功','997264WhBvFn','4vDeOoc','1194972jdSalR','未知錯誤','6HCUixb','3875325kEqJjz','另存為','開啟(檔案)'];_0x55e7=function(){return _0x537061;};return _0x55e7();}
1
+ function _0x2dfa(){const _0x4dc97e=['469klQnzw','41694xKmbSN','9018EQAGqg','網路連線中斷,檔案上傳失敗','資料流過大','上傳中','下載中','4733136YxApMv','下載成功','3204970TIFHMq','開啟(檔案)','未知錯誤','再次上傳','911501VgxPuE','657duzFsG','內部未知錯誤','請稍等...','exports','2860332MDNsoo','30576024RLaBGi'];_0x2dfa=function(){return _0x4dc97e;};return _0x2dfa();}const _0x2e736d=_0x559e;function _0x559e(_0x3b7bff,_0x158053){_0x3b7bff=_0x3b7bff-0x148;const _0x2dfa36=_0x2dfa();let _0x559e0c=_0x2dfa36[_0x3b7bff];return _0x559e0c;}(function(_0x34551b,_0x2b75bd){const _0xfe3674=_0x559e,_0x2f757e=_0x34551b();while(!![]){try{const _0x1dbf3e=-parseInt(_0xfe3674(0x14d))/0x1+parseInt(_0xfe3674(0x156))/0x2*(-parseInt(_0xfe3674(0x14e))/0x3)+parseInt(_0xfe3674(0x152))/0x4+-parseInt(_0xfe3674(0x149))/0x5+-parseInt(_0xfe3674(0x155))/0x6*(parseInt(_0xfe3674(0x154))/0x7)+-parseInt(_0xfe3674(0x15b))/0x8+parseInt(_0xfe3674(0x153))/0x9;if(_0x1dbf3e===_0x2b75bd)break;else _0x2f757e['push'](_0x2f757e['shift']());}catch(_0x2b89f4){_0x2f757e['push'](_0x2f757e['shift']());}}}(_0x2dfa,0x7dc9c));const locale={'exchange':{'file':'檔案','upload':_0x2e736d(0x14a),'download':'另存為','uploading':_0x2e736d(0x159),'uploadSuccess':'檔案上傳成功','uploadSuccessTip':'{0}個檔案上傳成功','downloading':_0x2e736d(0x15a),'downloadSuccess':_0x2e736d(0x148),'unknownMistake':_0x2e736d(0x14b),'networkError':'網路異常','tooLarge':_0x2e736d(0x158),'internalError':_0x2e736d(0x14f),'interrupt':_0x2e736d(0x157),'fileTypeError':'所選檔案\x20[{0}]\x20不支援上傳','wait':_0x2e736d(0x150),'cancel':'取消','uploadAgain':_0x2e736d(0x14c)}};module[_0x2e736d(0x151)]=locale;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x13237f=_0x4c3c;function _0x4145(){const _0xf772e7=['exportXLSXBySnapshot','_injector','exportDOCXByUnitId','210472abwJhi','7UYJDSm','exportXLSXByUnitId','2230956cgyhFY','UNIVER_DOC','importXLSXToSnapshotAsync','UNIVER_SHEET','The\x20exchange\x20service\x20is\x20not\x20available','1wKiJsi','1374714ECzAco','exportXLSXBySnapshotAsync','importXLSXToUnitIdAsync','get','extend','1089670fNtiWt','importDOCXToSnapshotAsync','2548776AacDHI','5539690Tfjbsf','importFileToUnitId','exportDOCXBySnapshot','569676EpXVBW','11EzyfGQ','importDOCXToSnapshot','90CQRMTJ'];_0x4145=function(){return _0xf772e7;};return _0x4145();}(function(_0x2bc543,_0x2e1c2c){const _0x2a9dce=_0x4c3c,_0x3efde2=_0x2bc543();while(!![]){try{const _0xfbf2b=-parseInt(_0x2a9dce(0x119))/0x1*(parseInt(_0x2a9dce(0x11f))/0x2)+parseInt(_0x2a9dce(0x114))/0x3+-parseInt(_0x2a9dce(0x111))/0x4*(-parseInt(_0x2a9dce(0x128))/0x5)+-parseInt(_0x2a9dce(0x125))/0x6+parseInt(_0x2a9dce(0x112))/0x7*(parseInt(_0x2a9dce(0x121))/0x8)+-parseInt(_0x2a9dce(0x11a))/0x9+-parseInt(_0x2a9dce(0x122))/0xa*(parseInt(_0x2a9dce(0x126))/0xb);if(_0xfbf2b===_0x2e1c2c)break;else _0x3efde2['push'](_0x3efde2['shift']());}catch(_0x470428){_0x3efde2['push'](_0x3efde2['shift']());}}}(_0x4145,0xa1d5d));import{IExchangeService}from'@univerjs-pro/exchange-client';import{UniverInstanceType}from'@univerjs/core';import{FUniver}from'@univerjs/core/facade';function _0x4c3c(_0x3ed197,_0x4e9f09){_0x3ed197=_0x3ed197-0x10f;const _0x414588=_0x4145();let _0x4c3c44=_0x414588[_0x3ed197];return _0x4c3c44;}var FUniverExchangeClientMixin=class extends FUniver{async[_0x13237f(0x11c)](_0x16fb4c){const _0x2c43a9=_0x13237f,_0x44aa00=this[_0x2c43a9(0x10f)][_0x2c43a9(0x11d)](IExchangeService);if(!_0x44aa00)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x44aa00[_0x2c43a9(0x123)](_0x16fb4c,UniverInstanceType[_0x2c43a9(0x117)]);}async[_0x13237f(0x116)](_0x595ff0){const _0xcd6343=_0x13237f,_0x97097b=this[_0xcd6343(0x10f)][_0xcd6343(0x11d)](IExchangeService);if(!_0x97097b)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x97097b['importXLSXToSnapshot'](_0x595ff0);}async['exportXLSXByUnitIdAsync'](_0x155c6b){const _0x2fbbf7=_0x13237f,_0x4154d7=this[_0x2fbbf7(0x10f)][_0x2fbbf7(0x11d)](IExchangeService);if(!_0x4154d7)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x4154d7[_0x2fbbf7(0x113)](_0x155c6b);}async[_0x13237f(0x11b)](_0x23bbf8){const _0x8e52e0=_0x13237f,_0x1d925b=this[_0x8e52e0(0x10f)][_0x8e52e0(0x11d)](IExchangeService);if(!_0x1d925b)throw new Error(_0x8e52e0(0x118));return _0x1d925b[_0x8e52e0(0x129)](_0x23bbf8);}async['importDOCXToUnitIdAsync'](_0x16a480){const _0xcec3dc=_0x13237f,_0x11c08a=this[_0xcec3dc(0x10f)][_0xcec3dc(0x11d)](IExchangeService);if(!_0x11c08a)throw new Error(_0xcec3dc(0x118));return _0x11c08a[_0xcec3dc(0x123)](_0x16a480,UniverInstanceType[_0xcec3dc(0x115)]);}async[_0x13237f(0x120)](_0x1de451){const _0x144342=_0x13237f,_0x2af3d7=this['_injector'][_0x144342(0x11d)](IExchangeService);if(!_0x2af3d7)throw new Error(_0x144342(0x118));return _0x2af3d7[_0x144342(0x127)](_0x1de451);}async['exportDOCXBySnapshotAsync'](_0x1770da){const _0x5ed87b=_0x13237f,_0x3d74fe=this[_0x5ed87b(0x10f)][_0x5ed87b(0x11d)](IExchangeService);if(!_0x3d74fe)throw new Error(_0x5ed87b(0x118));return _0x3d74fe[_0x5ed87b(0x124)](_0x1770da);}async['exportDOCXByUnitIdAsync'](_0x28ba50){const _0x5197cb=_0x13237f,_0x5c8961=this[_0x5197cb(0x10f)][_0x5197cb(0x11d)](IExchangeService);if(!_0x5c8961)throw new Error(_0x5197cb(0x118));return _0x5c8961[_0x5197cb(0x110)](_0x28ba50);}};FUniver[_0x13237f(0x11e)](FUniverExchangeClientMixin);export{};
1
+ const _0x5f456d=_0x1618;(function(_0xfacec6,_0x3f9699){const _0x5efd4a=_0x1618,_0x5879b8=_0xfacec6();while(!![]){try{const _0x5603e8=parseInt(_0x5efd4a(0x7f))/0x1+parseInt(_0x5efd4a(0x78))/0x2+parseInt(_0x5efd4a(0x80))/0x3+parseInt(_0x5efd4a(0x76))/0x4*(-parseInt(_0x5efd4a(0x7c))/0x5)+parseInt(_0x5efd4a(0x82))/0x6*(parseInt(_0x5efd4a(0x77))/0x7)+parseInt(_0x5efd4a(0x86))/0x8+-parseInt(_0x5efd4a(0x88))/0x9;if(_0x5603e8===_0x3f9699)break;else _0x5879b8['push'](_0x5879b8['shift']());}catch(_0x2ed067){_0x5879b8['push'](_0x5879b8['shift']());}}}(_0x518e,0x6ed9e));import{IExchangeService}from'@univerjs-pro/exchange-client';function _0x518e(){const _0xde9144=['exportDOCXByUnitId','203400yCfXEm','1554285gnTfYi','exportDOCXBySnapshotAsync','52188eIbMez','importDOCXToSnapshot','importXLSXToSnapshot','exportDOCXBySnapshot','3368864zOIanq','UNIVER_SHEET','9917136NqPuMh','importXLSXToUnitIdAsync','_injector','importDOCXToSnapshotAsync','The\x20exchange\x20service\x20is\x20not\x20available','importFileToUnitId','608808kejaJv','119CvBzOa','1444174QFpckE','exportXLSXByUnitIdAsync','importDOCXToUnitIdAsync','exportXLSXBySnapshot','15LGpvnb','get'];_0x518e=function(){return _0xde9144;};return _0x518e();}import{UniverInstanceType}from'@univerjs/core';import{FUniver}from'@univerjs/core/facade';function _0x1618(_0x2cb93a,_0x153c63){_0x2cb93a=_0x2cb93a-0x73;const _0x518e39=_0x518e();let _0x161812=_0x518e39[_0x2cb93a];return _0x161812;}var FUniverExchangeClientMixin=class extends FUniver{async[_0x5f456d(0x89)](_0x845c78){const _0x4437aa=_0x5f456d,_0x355304=this[_0x4437aa(0x8a)]['get'](IExchangeService);if(!_0x355304)throw new Error(_0x4437aa(0x74));return _0x355304[_0x4437aa(0x75)](_0x845c78,UniverInstanceType[_0x4437aa(0x87)]);}async['importXLSXToSnapshotAsync'](_0x259f06){const _0x3b9a92=_0x5f456d,_0x1cb517=this[_0x3b9a92(0x8a)][_0x3b9a92(0x7d)](IExchangeService);if(!_0x1cb517)throw new Error(_0x3b9a92(0x74));return _0x1cb517[_0x3b9a92(0x84)](_0x259f06);}async[_0x5f456d(0x79)](_0x495b71){const _0x46bcd3=_0x5f456d,_0x5efba5=this[_0x46bcd3(0x8a)]['get'](IExchangeService);if(!_0x5efba5)throw new Error(_0x46bcd3(0x74));return _0x5efba5['exportXLSXByUnitId'](_0x495b71);}async['exportXLSXBySnapshotAsync'](_0x468c0a){const _0x554bda=_0x5f456d,_0x551db3=this['_injector'][_0x554bda(0x7d)](IExchangeService);if(!_0x551db3)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x551db3[_0x554bda(0x7b)](_0x468c0a);}async[_0x5f456d(0x7a)](_0x437879){const _0x43fa78=_0x5f456d,_0x704df5=this[_0x43fa78(0x8a)][_0x43fa78(0x7d)](IExchangeService);if(!_0x704df5)throw new Error(_0x43fa78(0x74));return _0x704df5[_0x43fa78(0x75)](_0x437879,UniverInstanceType['UNIVER_DOC']);}async[_0x5f456d(0x73)](_0x3479a1){const _0x25358c=_0x5f456d,_0x56032b=this['_injector']['get'](IExchangeService);if(!_0x56032b)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x56032b[_0x25358c(0x83)](_0x3479a1);}async[_0x5f456d(0x81)](_0xacbc6e){const _0x5df85c=_0x5f456d,_0x56e4db=this[_0x5df85c(0x8a)][_0x5df85c(0x7d)](IExchangeService);if(!_0x56e4db)throw new Error(_0x5df85c(0x74));return _0x56e4db[_0x5df85c(0x85)](_0xacbc6e);}async['exportDOCXByUnitIdAsync'](_0x32f7c8){const _0x1ae632=_0x5f456d,_0x5d024f=this['_injector'][_0x1ae632(0x7d)](IExchangeService);if(!_0x5d024f)throw new Error(_0x1ae632(0x74));return _0x5d024f[_0x1ae632(0x7e)](_0x32f7c8);}};FUniver['extend'](FUniverExchangeClientMixin);export{};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x600536=_0x4d28;(function(_0xbcceb0,_0x468e1d){const _0x39dd58=_0x4d28,_0x56b26a=_0xbcceb0();while(!![]){try{const _0x9f16ce=-parseInt(_0x39dd58(0x151))/0x1+-parseInt(_0x39dd58(0x206))/0x2*(-parseInt(_0x39dd58(0x1f7))/0x3)+parseInt(_0x39dd58(0x14f))/0x4+parseInt(_0x39dd58(0x1e6))/0x5*(-parseInt(_0x39dd58(0x261))/0x6)+-parseInt(_0x39dd58(0x23f))/0x7*(parseInt(_0x39dd58(0x19b))/0x8)+-parseInt(_0x39dd58(0x22f))/0x9+parseInt(_0x39dd58(0x23a))/0xa*(parseInt(_0x39dd58(0x1de))/0xb);if(_0x9f16ce===_0x468e1d)break;else _0x56b26a['push'](_0x56b26a['shift']());}catch(_0x38b9bc){_0x56b26a['push'](_0x56b26a['shift']());}}}(_0xb13a,0xd4ba6));import{UniverLicensePlugin}from'@univerjs-pro/license';import{DependentOn,Disposable,IConfigService,ILogService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,UniverInstanceType,createIdentifier,merge,registerDependencies,resolveWithBasePath,toDisposable,touchDependencies}from'@univerjs/core';import{HTTPResponseError,HTTPService,UniverNetworkPlugin}from'@univerjs/network';function _0x4d28(_0x1f2970,_0x430f5c){_0x1f2970=_0x1f2970-0x124;const _0xb13ac5=_0xb13a();let _0x4d2835=_0xb13ac5[_0x1f2970];return _0x4d2835;}import{BuiltInUIPart,IMessageService,IUIPartsService,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{ClockIcon,CloseIcon,DocMultiIcon,ErrorIcon,ShareRangeIcon,SlideMultiIcon,SuccessIcon,XlsxMultiIcon}from'@univerjs/icons';import{useEffect,useState}from'react';import{BehaviorSubject,Subject}from'rxjs';import{MessageType,Tooltip,clsx,scrollbarClassName}from'@univerjs/design';import{jsx,jsxs}from'react/jsx-runtime';import{ErrorCode,FileSource}from'@univerjs/protocol';import{b64DecodeUnicode,b64EncodeUnicode,getSheetBlocksFromSnapshot,textDecoder,textEncoder,transformDocumentDataToSnapshot,transformSnapshotToDocumentData,transformSnapshotToWorkbookData,transformWorkbookDataToSnapshot}from'@univerjs-pro/collaboration';import{deflateSync}from'fflate';const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY='exchange-client.config',configSymbol=Symbol(EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};var name=_0x600536(0x200),version=_0x600536(0x1e3);function _typeof(_0x8857a3){'@babel/helpers - typeof';const _0x5801a3=_0x600536;return _typeof=_0x5801a3(0x164)==typeof Symbol&&'symbol'==typeof Symbol[_0x5801a3(0x204)]?function(_0x5eeae6){return typeof _0x5eeae6;}:function(_0x2f132a){const _0x20628f=_0x5801a3;return _0x2f132a&&_0x20628f(0x164)==typeof Symbol&&_0x2f132a[_0x20628f(0x176)]===Symbol&&_0x2f132a!==Symbol[_0x20628f(0x1d7)]?_0x20628f(0x1a8):typeof _0x2f132a;},_typeof(_0x8857a3);}function toPrimitive(_0x4585da,_0x640a9f){const _0x443a49=_0x600536;if('object'!=_typeof(_0x4585da)||!_0x4585da)return _0x4585da;var _0x162419=_0x4585da[Symbol[_0x443a49(0x1dd)]];if(void 0x0!==_0x162419){var _0x30a4d2=_0x162419[_0x443a49(0x21c)](_0x4585da,_0x640a9f||'default');if(_0x443a49(0x26b)!=_typeof(_0x30a4d2))return _0x30a4d2;throw new TypeError(_0x443a49(0x212));}return(_0x443a49(0x192)===_0x640a9f?String:Number)(_0x4585da);}function toPropertyKey(_0x14bf13){var _0x227e87=toPrimitive(_0x14bf13,'string');return'symbol'==_typeof(_0x227e87)?_0x227e87:_0x227e87+'';}function _defineProperty(_0x4dbf12,_0x12fddf,_0x7cf319){const _0xe9dce0=_0x600536;return(_0x12fddf=toPropertyKey(_0x12fddf))in _0x4dbf12?Object[_0xe9dce0(0x174)](_0x4dbf12,_0x12fddf,{'value':_0x7cf319,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4dbf12[_0x12fddf]=_0x7cf319,_0x4dbf12;}let UploadNotificationState=function(_0xee966e){const _0x1dab34=_0x600536;return _0xee966e[_0xee966e[_0x1dab34(0x1cb)]=0x0]=_0x1dab34(0x1cb),_0xee966e[_0xee966e[_0x1dab34(0x25f)]=0x1]=_0x1dab34(0x25f),_0xee966e[_0xee966e[_0x1dab34(0x213)]=0x2]=_0x1dab34(0x213),_0xee966e;}({});const IUploadNotificationService=createIdentifier(_0x600536(0x17c));var UploadNotificationService=class extends Disposable{constructor(){const _0x27e16f=_0x600536;super(),_defineProperty(this,_0x27e16f(0x20a),new Subject()),_defineProperty(this,_0x27e16f(0x157),new Subject()),_defineProperty(this,_0x27e16f(0x244),new Subject()),_defineProperty(this,_0x27e16f(0x173),this[_0x27e16f(0x20a)][_0x27e16f(0x23e)]()),_defineProperty(this,_0x27e16f(0x147),this[_0x27e16f(0x157)][_0x27e16f(0x23e)]()),_defineProperty(this,_0x27e16f(0x19c),this[_0x27e16f(0x244)][_0x27e16f(0x23e)]()),_defineProperty(this,'_list',[]);}[_0x600536(0x16f)](){const _0x1c8f15=_0x600536;super[_0x1c8f15(0x16f)](),this[_0x1c8f15(0x20a)][_0x1c8f15(0x1f1)](),this[_0x1c8f15(0x157)][_0x1c8f15(0x1f1)](),this[_0x1c8f15(0x244)][_0x1c8f15(0x1f1)]();}['show'](){const _0x3b34b6=_0x600536;this[_0x3b34b6(0x20a)][_0x3b34b6(0x1a1)](!![]);}[_0x600536(0x1e0)](){const _0x3c3ede=_0x600536;this[_0x3c3ede(0x20a)][_0x3c3ede(0x1a1)](![]);}['updateState'](_0x55841c){const _0x522b44=_0x600536;this[_0x522b44(0x157)][_0x522b44(0x1a1)](_0x55841c);}['pushLink'](_0x228d30){const _0x45704d=_0x600536;this[_0x45704d(0x1c7)][_0x45704d(0x1ec)](_0x228d30),this['_list$']['next'](this['_list']);}};function LinkList(_0x260b7c){const _0x1b9aa0=_0x600536,{list:_0x16c4b9}=_0x260b7c;function _0x32f033(_0x59df24){switch(_0x59df24){case 0x1:return jsx(DocMultiIcon,{});case 0x2:return jsx(XlsxMultiIcon,{});case 0x3:return jsx(SlideMultiIcon,{});default:return null;}}return jsx('div',{'className':clsx(_0x1b9aa0(0x252),scrollbarClassName),'children':jsx('ul',{'className':'univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','children':_0x16c4b9[_0x1b9aa0(0x141)]((_0x3232e6,_0x49d4ff)=>{const _0x597676=_0x1b9aa0;return jsx('li',{'children':jsxs('a',{'className':_0x597676(0x180),'href':_0x3232e6[_0x597676(0x132)],'target':_0x597676(0x215),'rel':_0x597676(0x224),'children':[jsxs(_0x597676(0x1c5),{'className':_0x597676(0x12f),'children':[jsx(_0x597676(0x1c5),{'className':_0x597676(0x232),'children':_0x32f033(_0x3232e6[_0x597676(0x1bc)])}),jsx(Tooltip,{'showIfEllipsis':!![],'title':_0x3232e6[_0x597676(0x22d)],'asChild':!![],'children':jsx(_0x597676(0x1c5),{'className':'univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x3232e6[_0x597676(0x22d)]})})]}),jsx('span',{'className':_0x597676(0x210),'children':jsx(ShareRangeIcon,{})})]})},_0x49d4ff);})})});}const DOCX=_0x600536(0x1fb),XLSX=_0x600536(0x1e2),XLSM=_0x600536(0x17a),XLTX='application/vnd.openxmlformats-officedocument.spreadsheetml.template',PPTX='application/vnd.openxmlformats-officedocument.presentationml.presentation',UNIT_CONTENT_TYPE={[UniverInstanceType[_0x600536(0x18e)]]:[''],[UniverInstanceType[_0x600536(0x14d)]]:[DOCX],[UniverInstanceType[_0x600536(0x22a)]]:[XLSX,XLSM,XLTX],[UniverInstanceType[_0x600536(0x231)]]:[PPTX],[UniverInstanceType['UNIVER_PROJECT']]:[''],[UniverInstanceType['UNRECOGNIZED']]:['']},CONTENT_TYPE_EXTNAME={[DOCX]:'docx',[XLSX]:_0x600536(0x1f9),[XLSM]:_0x600536(0x1ae),[XLTX]:_0x600536(0x1c3),[PPTX]:_0x600536(0x247)};function downloadFileByURL(_0x154fd3,_0x2e6414,_0x140ad7){const _0x2d1ffc=_0x600536,_0x4448b8=document[_0x2d1ffc(0x1c2)]('a');_0x4448b8[_0x2d1ffc(0x24a)]=_0x154fd3,_0x4448b8[_0x2d1ffc(0x225)][_0x2d1ffc(0x1a0)]=_0x2d1ffc(0x197),_0x4448b8[_0x2d1ffc(0x1a6)]=_0x2e6414+'.'+_0x140ad7,document[_0x2d1ffc(0x271)][_0x2d1ffc(0x13a)](_0x4448b8),_0x4448b8[_0x2d1ffc(0x21f)](),document[_0x2d1ffc(0x271)]['removeChild'](_0x4448b8);}function downloadFile(_0x11a70e,_0x1f907f,_0x84201d){const _0x4f88ec=_0x600536,_0x53f312=URL[_0x4f88ec(0x127)](_0x11a70e);downloadFileByURL(_0x53f312,_0x1f907f,_0x84201d),URL[_0x4f88ec(0x185)](_0x53f312);}function getUniverInstanceTypeByFile(_0x1c4196){const _0x2a5c47=_0x600536,_0x414dc5=_0x1c4196['name'][_0x2a5c47(0x15b)]('.')['pop']();if(!_0x414dc5)return UniverInstanceType[_0x2a5c47(0x18e)];const _0x3a2829=getUnitTypeList();let _0x2fb8fa=UniverInstanceType[_0x2a5c47(0x18e)];return _0x3a2829[_0x2a5c47(0x1cc)](_0x196386=>{if(isUniverInstanceTypeFileByExt(_0x414dc5,_0x196386))return _0x2fb8fa=_0x196386,!![];return![];}),_0x2fb8fa;}function getUnitTypeList(){const _0x26602d=_0x600536;return Object['values'](UniverInstanceType)[_0x26602d(0x150)](_0x51d315=>typeof _0x51d315===_0x26602d(0x13e));}function isUniverInstanceTypeFileByExt(_0x374dd6,_0x48c714){const _0x1bcb0d=_0x600536;return UNIT_CONTENT_TYPE[_0x48c714][_0x1bcb0d(0x141)](_0x3412ae=>(CONTENT_TYPE_EXTNAME[_0x3412ae]||'')['toLowerCase']())[_0x1bcb0d(0x274)](_0x374dd6[_0x1bcb0d(0x219)]());}function getUploadFile(_0x530944,_0x4c38e7=![]){const _0x1451d0=_0x600536,_0x1cca48=_0x530944[_0x1451d0(0x141)](_0x56ca87=>UNIT_CONTENT_TYPE[_0x56ca87])[_0x1451d0(0x230)](',');return new Promise((_0x39b8cd,_0x4da841)=>{const _0x26c79b=_0x1451d0,_0x15bdd9=document[_0x26c79b(0x1c2)]('input');_0x15bdd9[_0x26c79b(0x1bc)]=_0x26c79b(0x17e),_0x15bdd9[_0x26c79b(0x266)]=_0x1cca48,_0x15bdd9[_0x26c79b(0x139)]=_0x4c38e7,_0x15bdd9['addEventListener'](_0x26c79b(0x145),_0x39ccd6=>{const _0x580bba=_0x26c79b,_0x395fa9=_0x39ccd6[_0x580bba(0x125)];if(!_0x395fa9[_0x580bba(0x25e)]||_0x395fa9[_0x580bba(0x25e)][_0x580bba(0x20d)]===0x0){_0x4da841(null);throw new Error('No\x20file\x20selected');}_0x39b8cd(_0x395fa9[_0x580bba(0x25e)]);}),_0x15bdd9[_0x26c79b(0x21f)]();});}async function getFileByURL(_0x1ef951,_0x64417e){const _0x41a49f=_0x600536;try{var _0x58415c,_0x36c2f5,_0x1fc8f4;const _0x3dc3a6=await _0x64417e[_0x41a49f(0x21b)](_0x1ef951,{'responseType':_0x41a49f(0x15a)}),_0x4f767a=_0x3dc3a6['body'],_0x312a53=(_0x58415c=(_0x36c2f5=_0x3dc3a6[_0x41a49f(0x17d)][_0x41a49f(0x21b)](_0x41a49f(0x186)))===null||_0x36c2f5===void 0x0?void 0x0:_0x36c2f5[_0x41a49f(0x230)](',\x20'))!==null&&_0x58415c!==void 0x0?_0x58415c:_0x41a49f(0x235);let _0x23eddd='file.'+(CONTENT_TYPE_EXTNAME[_0x312a53]||'xlsx');const _0x5255b4=(_0x1fc8f4=_0x3dc3a6['headers'][_0x41a49f(0x21b)](_0x41a49f(0x14e)))===null||_0x1fc8f4===void 0x0?void 0x0:_0x1fc8f4[_0x41a49f(0x230)](',\x20');if(_0x5255b4){const _0x41b02b=_0x5255b4[_0x41a49f(0x1e1)](/filename=(.+)/);if(_0x41b02b&&_0x41b02b[0x1])_0x23eddd=_0x41b02b[0x1];}else _0x23eddd=getFileNameFromURL(_0x1ef951)||_0x23eddd;return new File([_0x4f767a],_0x23eddd,{'type':_0x312a53});}catch(_0x1493a0){console[_0x41a49f(0x250)](_0x41a49f(0x270),_0x1493a0);return;}}function getFileNameFromURL(_0x4fc43f){const _0x5e26cb=_0x600536;try{return new URL(_0x4fc43f)[_0x5e26cb(0x1ad)][_0x5e26cb(0x15b)]('/')[_0x5e26cb(0x216)]();}catch(_0x32bbb4){console[_0x5e26cb(0x250)]('Error\x20getting\x20file\x20name\x20from\x20URL:',_0x32bbb4);return;}}function bufferToFile(_0x234b1c){const _0xdd205f=_0x600536,_0x59ca91=new Blob([_0x234b1c[_0xdd205f(0x19a)]],{'type':_0xdd205f(0x264)});return new File([_0x59ca91],_0xdd205f(0x242));}function replaceType(_0x592b21,_0x3865e1){const _0x101b50=_0x600536;return _0x592b21[_0x101b50(0x189)](_0x101b50(0x195),_0x3865e1);}function replaceTaskID(_0x369552,_0xa91387){const _0x43fad2=_0x600536;return _0x369552[_0x43fad2(0x189)](_0x43fad2(0x16a),_0xa91387);}function replaceFileID(_0x7fc3b,_0x112780){const _0x54c00c=_0x600536;return _0x7fc3b['replace'](_0x54c00c(0x156),_0x112780);}function __decorateParam(_0x53e04c,_0x3ac253){return function(_0x4aa0ec,_0x5840c4){_0x3ac253(_0x4aa0ec,_0x5840c4,_0x53e04c);};}function __decorate(_0x55461a,_0x443926,_0x4e88c5,_0x5654c1){const _0x3c9a35=_0x600536;var _0x5ae330=arguments[_0x3c9a35(0x20d)],_0x546a1a=_0x5ae330<0x3?_0x443926:_0x5654c1===null?_0x5654c1=Object[_0x3c9a35(0x15f)](_0x443926,_0x4e88c5):_0x5654c1,_0x280392;if(typeof Reflect==='object'&&typeof Reflect[_0x3c9a35(0x1eb)]===_0x3c9a35(0x164))_0x546a1a=Reflect[_0x3c9a35(0x1eb)](_0x55461a,_0x443926,_0x4e88c5,_0x5654c1);else{for(var _0x3fc226=_0x55461a[_0x3c9a35(0x20d)]-0x1;_0x3fc226>=0x0;_0x3fc226--)if(_0x280392=_0x55461a[_0x3fc226])_0x546a1a=(_0x5ae330<0x3?_0x280392(_0x546a1a):_0x5ae330>0x3?_0x280392(_0x443926,_0x4e88c5,_0x546a1a):_0x280392(_0x443926,_0x4e88c5))||_0x546a1a;}return _0x5ae330>0x3&&_0x546a1a&&Object[_0x3c9a35(0x174)](_0x443926,_0x4e88c5,_0x546a1a),_0x546a1a;}const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x600536(0x188),DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY=_0x600536(0x209),DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY=_0x600536(0x25d),DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY=_0x600536(0x154),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x600536(0x263),DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY=0x1d4c0;let ImportOutputType=function(_0x12ab0c){const _0x80b56b=_0x600536;return _0x12ab0c[_0x12ab0c['UNDEFINED']=0x0]=_0x80b56b(0x236),_0x12ab0c[_0x12ab0c[_0x80b56b(0x226)]=0x1]=_0x80b56b(0x226),_0x12ab0c[_0x12ab0c['JSON']=0x2]=_0x80b56b(0x15e),_0x12ab0c[_0x12ab0c[_0x80b56b(0x1b2)]=-0x1]=_0x80b56b(0x1b2),_0x12ab0c;}({});const IRequestService=createIdentifier('univer-pro.exchange-client.request.service');let RequestService=class RequestService{constructor(_0x48161b,_0x3ebad6){const _0x523b87=_0x600536;this[_0x523b87(0x272)]=_0x48161b,this[_0x523b87(0x15d)]=_0x3ebad6,_defineProperty(this,_0x523b87(0x1fc),new Set());}[_0x600536(0x16f)](){}['setTaskInterrupted'](_0x388403){const _0x46bda2=_0x600536;this[_0x46bda2(0x1fc)][_0x46bda2(0x26a)](_0x388403);}['clearTaskInterrupted'](){const _0x37d63d=_0x600536;this[_0x37d63d(0x1fc)][_0x37d63d(0x142)]();}async[_0x600536(0x25c)](_0x2cc7d7,_0x467724=0x0,_0x57b573=![]){const _0x5b202c=_0x600536;if(typeof _0x2cc7d7===_0x5b202c(0x192)){const _0xb8493b=await getFileByURL(_0x2cc7d7,this[_0x5b202c(0x15d)]);if(!_0xb8493b)throw new Error('upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url');_0x2cc7d7=_0xb8493b;}_0x467724=_0x467724||_0x2cc7d7[_0x5b202c(0x134)];const _0x50d8ee=new FormData();_0x50d8ee[_0x5b202c(0x19d)](_0x5b202c(0x17e),_0x2cc7d7);try{const _0x23c40c=this[_0x5b202c(0x251)]()+_0x5b202c(0x194)+_0x467724+_0x5b202c(0x1ce)+FileSource['HttpImport']+_0x5b202c(0x223)+_0x57b573,_0x318c6e={'body':_0x50d8ee},_0x196a44=(await this[_0x5b202c(0x15d)][_0x5b202c(0x15c)](_0x23c40c,_0x318c6e))[_0x5b202c(0x271)];if(_0x196a44[_0x5b202c(0x250)]&&_0x196a44[_0x5b202c(0x250)][_0x5b202c(0x18f)]!==ErrorCode['OK'])throw new Error(this['_buildProtocolErrorMessage'](_0x5b202c(0x228),_0x196a44[_0x5b202c(0x250)]));return _0x196a44;}catch(_0x55db7c){if(_0x55db7c instanceof Error)throw _0x55db7c;throw new Error(this[_0x5b202c(0x1c6)](_0x5b202c(0x228),_0x55db7c));}}async[_0x600536(0x152)](_0x344e63){const _0x276321=_0x600536,{fileID:_0x436ffc,type:_0x531170,outputType:_0x1b7530,minSheetColumnCount:_0x3ee8a0,minSheetRowCount:_0x3e85e5}=_0x344e63;try{const _0x16828e=replaceType(this['_getImportURL'](),''+_0x531170),_0x2fb5c7={'body':{'fileID':_0x436ffc,'outputType':_0x1b7530,'minSheetColumnCount':_0x3ee8a0,'minSheetRowCount':_0x3e85e5}},_0x3ebe7e=(await this[_0x276321(0x15d)][_0x276321(0x15c)](_0x16828e,_0x2fb5c7))[_0x276321(0x271)];if(_0x3ebe7e[_0x276321(0x250)]&&_0x3ebe7e[_0x276321(0x250)][_0x276321(0x18f)]!==ErrorCode['OK'])return;return _0x3ebe7e;}catch(_0x546aab){return;}}async[_0x600536(0x1b7)](_0x237027){const _0x9cce37=_0x600536,{unitID:_0x26ea87,jsonID:_0x3d845e,type:_0x447832,sscSwitch:_0x338c84,useImageUrl:_0x3a223d,ignoreTableExport:_0x31a68f}=_0x237027;try{const _0x3caf05=replaceType(this[_0x9cce37(0x21a)](),''+_0x447832),_0x38345b={'body':{'unitID':_0x26ea87,'jsonID':_0x3d845e,'type':_0x447832,'sscSwitch':_0x338c84,'useImageUrl':_0x3a223d,'ignoreTableExport':_0x31a68f}},_0x88a2d1=(await this[_0x9cce37(0x15d)][_0x9cce37(0x15c)](_0x3caf05,_0x38345b))['body'];if(_0x88a2d1['error']&&_0x88a2d1[_0x9cce37(0x250)][_0x9cce37(0x18f)]!==ErrorCode['OK'])return;return _0x88a2d1;}catch(_0x1a9b5f){return;}}async[_0x600536(0x12b)](_0x33d4c4){return new Promise((_0x2262a7,_0x221f00)=>{const _0x458c41=_0x4d28;try{let _0x81f8e4=0x0;const _0x478bf1=replaceTaskID(this[_0x458c41(0x26c)](),''+_0x33d4c4),_0x15dc43=this['_getMaxPollingTime'](),_0x1bdc3a=async()=>{const _0x2a3e51=_0x458c41;if(this[_0x2a3e51(0x1fc)][_0x2a3e51(0x163)](_0x33d4c4))return;const _0xaa5b1b=(await this[_0x2a3e51(0x15d)][_0x2a3e51(0x21b)](_0x478bf1))[_0x2a3e51(0x271)];if(_0xaa5b1b[_0x2a3e51(0x250)]&&_0xaa5b1b[_0x2a3e51(0x250)][_0x2a3e51(0x18f)]===ErrorCode['OK']){if(_0xaa5b1b[_0x2a3e51(0x23c)]===_0x2a3e51(0x24f))_0x2262a7(_0xaa5b1b);else{if(_0xaa5b1b[_0x2a3e51(0x23c)]===_0x2a3e51(0x1c4)){let _0xb05d41=0x3e8;if(_0x81f8e4>=_0x15dc43){_0x221f00(_0xaa5b1b);return;}else{if(_0x81f8e4>=0x7530)_0xb05d41=0x1388;}_0x81f8e4+=_0xb05d41,setTimeout(_0x1bdc3a,_0xb05d41);}else _0x221f00(_0xaa5b1b);}}else _0x221f00(_0xaa5b1b);};_0x1bdc3a();}catch(_0x1d15cc){_0x221f00(_0x1d15cc instanceof Error?_0x1d15cc:new Error(String(_0x1d15cc)));}});}async[_0x600536(0x168)](_0x5a71a8){const _0x4af144=_0x600536;try{const _0x26f262=replaceFileID(this[_0x4af144(0x143)](),''+_0x5a71a8);return(await this[_0x4af144(0x15d)][_0x4af144(0x21b)](_0x26f262))['body'];}catch(_0x257d78){return;}}async[_0x600536(0x177)](_0x1920ba){const _0x2bd0ee=_0x600536;try{return(await this[_0x2bd0ee(0x15d)][_0x2bd0ee(0x21b)](_0x1920ba,{'responseType':_0x2bd0ee(0x245)}))[_0x2bd0ee(0x271)];}catch(_0x45638a){return;}}['_buildProtocolErrorMessage'](_0x29c250,_0x53779c){const _0x7ecc97=this['_extractErrorDetail'](_0x53779c);if(!_0x7ecc97)return _0x29c250;return _0x29c250+':\x20'+_0x7ecc97;}[_0x600536(0x1c6)](_0xa0882,_0x3bd04d){const _0x291005=_0x600536;if(_0x3bd04d instanceof HTTPResponseError){const _0x7280ec=typeof _0x3bd04d['status']===_0x291005(0x13e)?''+_0x3bd04d[_0x291005(0x23c)]+(_0x3bd04d[_0x291005(0x18b)]?'\x20'+_0x3bd04d[_0x291005(0x18b)]:''):void 0x0,_0x2ad5ec=this[_0x291005(0x1ee)](_0x3bd04d['error']);if(_0x7280ec&&_0x2ad5ec)return _0xa0882+_0x291005(0x246)+_0x7280ec+_0x291005(0x170)+_0x2ad5ec;if(_0x7280ec)return _0xa0882+_0x291005(0x246)+_0x7280ec;if(_0x2ad5ec)return _0xa0882+':\x20'+_0x2ad5ec;return _0xa0882;}const _0x48519a=this[_0x291005(0x1ee)](_0x3bd04d);if(!_0x48519a)return _0xa0882;return _0xa0882+':\x20'+_0x48519a;}[_0x600536(0x1ee)](_0x1b4f25){const _0x25283f=_0x600536;if(typeof _0x1b4f25===_0x25283f(0x192)){const _0x390be9=_0x1b4f25[_0x25283f(0x258)]();return _0x390be9[_0x25283f(0x20d)]>0x0?_0x390be9:void 0x0;}if(_0x1b4f25 instanceof Error)return this[_0x25283f(0x1ee)](_0x1b4f25[_0x25283f(0x1fd)]);if(!_0x1b4f25||typeof _0x1b4f25!=='object'||Array[_0x25283f(0x248)](_0x1b4f25))return;const _0x10dd46=_0x1b4f25,_0x5ba06a=this[_0x25283f(0x1ee)](_0x10dd46[_0x25283f(0x1fd)]);if(_0x5ba06a)return _0x5ba06a;if(_0x10dd46[_0x25283f(0x250)]&&typeof _0x10dd46[_0x25283f(0x250)]===_0x25283f(0x26b)&&!Array[_0x25283f(0x248)](_0x10dd46[_0x25283f(0x250)])){const _0x210819=this[_0x25283f(0x1ee)](_0x10dd46[_0x25283f(0x250)]);if(_0x210819)return _0x210819;}}['_getUploadFileURL'](){const _0x1401cf=_0x600536;var _0x43bf95;const _0x47d0cf=this[_0x1401cf(0x272)][_0x1401cf(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x43bf95=_0x47d0cf===null||_0x47d0cf===void 0x0?void 0x0:_0x47d0cf[_0x1401cf(0x22c)])!==null&&_0x43bf95!==void 0x0?_0x43bf95:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x600536(0x1e5)](){const _0x5cdc1a=_0x600536;var _0x302e0;const _0x5cee94=this[_0x5cdc1a(0x272)][_0x5cdc1a(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x302e0=_0x5cee94===null||_0x5cee94===void 0x0?void 0x0:_0x5cee94[_0x5cdc1a(0x12e)])!==null&&_0x302e0!==void 0x0?_0x302e0:DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY;}['_getExportURL'](){const _0x221106=_0x600536;var _0xe59c4e;const _0x371c30=this[_0x221106(0x272)][_0x221106(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0xe59c4e=_0x371c30===null||_0x371c30===void 0x0?void 0x0:_0x371c30['exportServerUrl'])!==null&&_0xe59c4e!==void 0x0?_0xe59c4e:DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY;}[_0x600536(0x26c)](){const _0x4cea00=_0x600536;var _0x5aa0ad;const _0x44bb27=this[_0x4cea00(0x272)][_0x4cea00(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5aa0ad=_0x44bb27===null||_0x44bb27===void 0x0?void 0x0:_0x44bb27['getTaskServerUrl'])!==null&&_0x5aa0ad!==void 0x0?_0x5aa0ad:DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY;}[_0x600536(0x143)](){const _0x305b6a=_0x600536;var _0x340ed2;const _0x182455=this[_0x305b6a(0x272)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x340ed2=_0x182455===null||_0x182455===void 0x0?void 0x0:_0x182455['signUrlServerUrl'])!==null&&_0x340ed2!==void 0x0?_0x340ed2:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}['_getMaxPollingTime'](){const _0x44adc0=_0x600536;var _0x584708;const _0x47ef96=this[_0x44adc0(0x272)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x584708=_0x47ef96===null||_0x47ef96===void 0x0?void 0x0:_0x47ef96[_0x44adc0(0x19f)])!==null&&_0x584708!==void 0x0?_0x584708:DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY;}};function _0xb13a(){const _0x59fb4f=['download','_completeProgress','symbol','Success','Failed\x20to\x20transform\x20snapshot\x20to\x20string','enableServerSideComputing','docx','pathname','xlsm','Method\x20not\x20implemented.','getConfig','exchange.downloadSuccess','UNRECOGNIZED','_registerComponents','setConfig','block\x20is\x20required','updateSnapshot','export','resolve','exportXLSXBySnapshot','searchParams','getSnapshot','type','Get\x20outputType\x20error','updateState','IMPORT','Failed\x20to\x20get\x20unitID\x20from\x20task','_sheetBlockCache','createElement','xltx','pending','span','_buildHttpErrorMessage','_list','Info','taskID','success','UPLOADING','some','exchange.tooLarge','&source=','univer-text-red-500','_getLinkByUnitId','url','decode','EXPORT','_import','getCurrentUnitForType','packageName','prototype','subscribe','_showNetworkError','originalMeta','interrupt','UNIVER_EXCHANGE_CLIENT_PLUGIN','toPrimitive','21978XyEmUd','exchange.downloading','hide','match','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','0.21.0','set','_getImportURL','16685VBaMpj','disableCellImageConversion','_clearProgress','toString','SIGN_URL','decorate','unshift','_univerInstanceService','_extractErrorDetail','getUnitOnRev','_requestState$','complete','_emitProgress','_progress$','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','_config','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','2211906KyQHrQ','univer-pro.exchange-client.operate.service','xlsx','downloadEndpointUrl','application/vnd.openxmlformats-officedocument.wordprocessingml.document','_taskInterrupted','message','location','requestState$','@univerjs-pro/exchange-client','saveSheetBlock','_getUnitID','Failed\x20to\x20get\x20jsonID\x20from\x20task','iterator','univer-flex','2wjRWCq','saveChangeset','univer-pl-2\x20univer-pr-4','/universer-api/exchange/{type}/import','_visible$','importDOCXToUnitId','exchange.unknownMistake','length','options','Failed\x20to\x20get\x20fileID\x20from\x20task','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','jsonID','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ERROR','importXLSXToUnitId','_blank','pop','div','exchange.uploadAgain','toLowerCase','_getExportURL','get','call','importWorkbookDataToUnitId','_importFileToUnitId','click','progress$','sheetBlocks','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','&flate=','noreferrer','style','UNIT','onReady','upload\x20request\x20failed','GET_TASK','UNIVER_SHEET','_showDownloadMessage','uploadFileServerUrl','name','stringify','235926uwIotn','join','UNIVER_SLIDE','univer-flex\x20univer-h-5\x20univer-text-xl','_getDownloadEndpointURL','button','application/octet-stream','UNDEFINED','_refresh','_uploadNotificationService','_getEnableServerSideComputing','15850EHTPDB','GET_FILE','status','parse','asObservable','7wuzbVP','origin','export\x20error','file.json','_signUrl','_list$','text',':\x20HTTP\x20','pptx','isArray','_importToSnapshot','href','GET_JSON','.json','interruptImportTask','pluginName','done','error','_getUploadFileURL','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','unitID','exchange.interrupt','_getDisableCellImageConversion','_getIgnoreTableExport','univer-pro.exchange-client.exchange.service','trim','_addTotalCount','_doneUploadTaskCount','min','upload','/universer-api/exchange/{type}/export','files','SUCCESS','getSheetBlock','2622nAIzff','getCurrentUnitOfType','/universer-api/file/{fileID}/sign-url','application/json','import\x20error','accept','snapshot','outputType','_getUnitDocJson','add','object','_getTaskURL','title','rev','_getUnitJson','Error\x20fetching\x20file\x20from\x20URL:','body','_configService','exchange.cancel','includes','_importTaskId','currentTarget','keys','createObjectURL','Error','exchange.internalError','importXLSXToSnapshot','getTask','_localeService','setTaskInterrupted','importServerUrl','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_fileTypeError','Warning','link','forEach','size','importDOCXToSnapshot','registerLink','_uiPartsService','exportDOCXByUnitId','multiple','appendChild','show','_getMinSheetRowCount','_getUnitName','number','doc','getUnitId','map','clear','_getSignURL','ignoreTableExport','change','Failed\x20to\x20get\x20file\x20from\x20url','state$','sheets','blockID','floor','_export','fileID','UNIVER_DOC','content-disposition','3182384YpfRXc','filter','1155077BuLWgP','import','univer-text-sm\x20univer-text-gray-500','/universer-api/exchange/task/{taskID}','_uploadTaskNotDone','{fileID}','_state$','upload\x20failed:\x20FileId\x20is\x20empty','_exportBySnapshot','blob','split','post','_httpService','JSON','getOwnPropertyDescriptor','_upload','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','catch','has','function','upload\x20failed:\x20missing\x20FileId\x20in\x20response','unsubscribe','minSheetRowCount','signUrl','_exchangeService','{taskID}','_injector','_messageService','univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','_requestService','dispose','\x20-\x20','workbook.json','_addDoneTask','visible$','defineProperty','univer-text-blue-500','constructor','getTextFromUrl','_getUnitIDDoc','exchange.networkError','application/vnd.ms-excel.sheet.macroEnabled.12','exchange.uploading','univer-pro.exchange-client.upload-notification.service','headers','file','_totalUploadTaskCount','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','exchange.fileTypeError','exportDOCXBySnapshot','UPLOAD','univer-mt-5\x20univer-flex\x20univer-flex-col','revokeObjectURL','Content-Type','exchange.wait','/universer-api/stream/file/upload','replace','FileId','statusText','minSheetColumnCount','importFileToUnitId','UNIVER_UNKNOWN','code','univer-text-green-500','clearTaskInterrupted','string','CONTENT','?size=','{type}','saveSnapshot','none','data','_showUploadMessage','buffer','9510672caKJuf','list$','append','unit','maxTimeoutTime','display','next','getLatestCsReqIdBySid','getResourcesRequest','exchange.uploadSuccess','exportXLSXByUnitId'];_0xb13a=function(){return _0x59fb4f;};return _0xb13a();}RequestService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],RequestService);function transformWorkbookSnapshotMetaToString(_0x78b3ec){const _0x54c7e0=_0x600536,_0x21f9ad=_0x78b3ec['workbook'];if(!_0x21f9ad)return null;const _0x442746={};if(_0x21f9ad[_0x54c7e0(0x148)])Object['keys'](_0x21f9ad[_0x54c7e0(0x148)])[_0x54c7e0(0x133)](_0x1b310c=>{const _0x3ed2ae=_0x54c7e0,_0x8bc267=_0x21f9ad[_0x3ed2ae(0x148)][_0x1b310c];_0x442746[_0x1b310c]={..._0x8bc267,'originalMeta':b64EncodeUnicode(textDecoder[_0x3ed2ae(0x1d2)](_0x8bc267[_0x3ed2ae(0x1da)]))};});const _0x32597d=b64EncodeUnicode(textDecoder['decode'](_0x21f9ad['originalMeta']));return{..._0x78b3ec,'workbook':{..._0x21f9ad,'originalMeta':_0x32597d,'sheets':_0x442746},'doc':{}};}function transformDocumentSnapshotMetaToString(_0x5a7467){const _0x28ba86=_0x600536,_0x17e3b7=_0x5a7467[_0x28ba86(0x13f)];if(!_0x17e3b7)return null;const _0x506acd=b64EncodeUnicode(textDecoder[_0x28ba86(0x1d2)](_0x17e3b7[_0x28ba86(0x1da)]));return{..._0x5a7467,'workbook':{},'doc':{..._0x17e3b7,'originalMeta':_0x506acd}};}function transformSheetBlockMetaToString(_0x2dd6a9){const _0x2539d2=_0x600536,_0x5ba21e={};return _0x2dd6a9[_0x2539d2(0x133)](_0x3e251e=>{const _0x46ba47=_0x2539d2;_0x5ba21e[_0x3e251e['id']]={..._0x3e251e,'data':b64EncodeUnicode(textDecoder[_0x46ba47(0x1d2)](_0x3e251e[_0x46ba47(0x198)]))};}),_0x5ba21e;}async function transformWorkbookDataToSnapshotJson(_0x1602cd){const _0x4db248=_0x600536;var _0x598f13;const _0x61c474={'metadata':void 0x0},_0x3b3de3=_0x1602cd['id'],_0x5d530a=(_0x598f13=_0x1602cd['rev'])!==null&&_0x598f13!==void 0x0?_0x598f13:0x0,_0x53954c=new ClientSnapshotServerService(),{snapshot:_0x2009cb}=await transformWorkbookDataToSnapshot(_0x61c474,_0x1602cd,_0x3b3de3,_0x5d530a,_0x53954c),_0x5aeb19=await getSheetBlocksFromSnapshot(_0x2009cb,_0x53954c),_0x1d3c4d=transformWorkbookSnapshotMetaToString(_0x2009cb);if(!_0x1d3c4d)throw new Error(_0x4db248(0x1aa));return{'snapshot':_0x1d3c4d,'sheetBlocks':transformSheetBlockMetaToString(_0x5aeb19)};}async function transformDocumentDataToSnapshotJson(_0x11122c){const _0x510a87=_0x600536;var _0x4068b9;const _0x5171d2={'metadata':void 0x0},_0x363fdf=_0x11122c['id'],{snapshot:_0x491589}=await transformDocumentDataToSnapshot(_0x5171d2,_0x11122c,_0x363fdf,(_0x4068b9=_0x11122c[_0x510a87(0x26e)])!==null&&_0x4068b9!==void 0x0?_0x4068b9:0x0,new ClientSnapshotServerService()),_0x216696=transformDocumentSnapshotMetaToString(_0x491589);if(!_0x216696)throw new Error(_0x510a87(0x1aa));return{'snapshot':_0x216696,'sheetBlocks':{}};}async function transformSnapshotJsonToWorkbookData(_0x553aad){const _0x589a75=_0x600536,_0x305c9c=_0x553aad[_0x589a75(0x267)],_0x2f940a=_0x553aad[_0x589a75(0x221)]||{};return await transformSnapshotToWorkbookData(_0x305c9c,Object[_0x589a75(0x126)](_0x2f940a)[_0x589a75(0x141)](_0x272fc4=>_0x2f940a[_0x272fc4])[_0x589a75(0x141)](_0x1bf4e5=>{const _0x231f88=_0x589a75;return{..._0x1bf4e5,'data':_0x1bf4e5[_0x231f88(0x198)]?JSON[_0x231f88(0x23d)](b64DecodeUnicode(_0x1bf4e5[_0x231f88(0x198)])):void 0x0};}));}function transformSnapshotJsonToDocumentData(_0x86f795){const _0x167fa3=_0x600536,_0x3fc27d=_0x86f795[_0x167fa3(0x267)];return transformSnapshotToDocumentData(_0x3fc27d);}var ClientSnapshotServerService=class{constructor(){_defineProperty(this,'_sheetBlockCache',new Map());}[_0x600536(0x1ef)](){const _0x2e5f3f=_0x600536;return Promise[_0x2e5f3f(0x1b8)]({'snapshot':{'unitID':'','type':UniverInstanceType[_0x2e5f3f(0x22a)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x600536(0x260)](_0x5ce735,_0x1a15b0){const _0x197f74=_0x600536,_0x5d08c5=this[_0x197f74(0x1c1)][_0x197f74(0x21b)](_0x1a15b0['blockID']);return Promise['resolve']({'block':_0x5d08c5,'error':{'code':ErrorCode['OK'],'message':''}});}['getDeserializedSheetBlock'](_0x14d130,_0x2619f4){const _0x3a948e=_0x600536,_0x2e829b=this[_0x3a948e(0x1c1)][_0x3a948e(0x21b)](_0x2619f4[_0x3a948e(0x149)]);return Promise[_0x3a948e(0x1b8)]({'block':_0x2e829b===void 0x0?void 0x0:{..._0x2e829b,'data':JSON[_0x3a948e(0x23d)](textDecoder['decode'](_0x2e829b[_0x3a948e(0x198)]))},'error':{'code':ErrorCode['OK'],'message':''}});}['fetchMissingChangesets'](){return Promise['resolve']({'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x600536(0x1a3)](){const _0x599dbb=_0x600536;return Promise[_0x599dbb(0x1b8)]({'resources':{},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x600536(0x196)](){const _0x48b358=_0x600536;return Promise[_0x48b358(0x1b8)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x600536(0x1b6)](){const _0x1ed61e=_0x600536;return Promise[_0x1ed61e(0x1b8)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x600536(0x201)](_0x52913b,_0x399e3c){const _0x33ea97=_0x600536,{block:_0x23932f}=_0x399e3c;if(!_0x23932f)return Promise['resolve']({'error':{'code':ErrorCode['UNDEFINED'],'message':_0x33ea97(0x1b5)},'blockID':''});return this[_0x33ea97(0x1c1)]['set'](_0x23932f['id'],_0x23932f),Promise[_0x33ea97(0x1b8)]({'error':{'code':ErrorCode['OK'],'message':''},'blockID':_0x23932f['id']});}[_0x600536(0x207)](){const _0x50225e=_0x600536;return Promise[_0x50225e(0x1b8)]({'error':{'code':ErrorCode['OK'],'message':''},'concurrent':[]});}['copyFileMeta'](){const _0x51c206=_0x600536;return Promise[_0x51c206(0x1b8)]({'error':void 0x0,'fileMetaId':''});}[_0x600536(0x1a2)](){const _0x3c7d9d=_0x600536;return Promise[_0x3c7d9d(0x1b8)]({'error':void 0x0,'latestReqID':0x0});}};let RequestState=function(_0x3cfa1e){const _0x2c9883=_0x600536;return _0x3cfa1e[_0x3cfa1e[_0x2c9883(0x183)]=0x0]='UPLOAD',_0x3cfa1e[_0x3cfa1e[_0x2c9883(0x1bf)]=0x1]=_0x2c9883(0x1bf),_0x3cfa1e[_0x3cfa1e[_0x2c9883(0x1d3)]=0x2]=_0x2c9883(0x1d3),_0x3cfa1e[_0x3cfa1e[_0x2c9883(0x229)]=0x3]=_0x2c9883(0x229),_0x3cfa1e[_0x3cfa1e[_0x2c9883(0x1ea)]=0x4]=_0x2c9883(0x1ea),_0x3cfa1e[_0x3cfa1e['GET_JSON']=0x5]=_0x2c9883(0x24b),_0x3cfa1e[_0x3cfa1e['GET_FILE']=0x6]=_0x2c9883(0x23b),_0x3cfa1e;}({});const IExchangeService=createIdentifier(_0x600536(0x257));let ExchangeService=class ExchangeService extends Disposable{constructor(_0x454ba0,_0x5e045b,_0x483ce1){const _0x592bd0=_0x600536;super(),this[_0x592bd0(0x272)]=_0x454ba0,this[_0x592bd0(0x15d)]=_0x5e045b,this['_requestService']=_0x483ce1,_defineProperty(this,'_importTaskId',null),_defineProperty(this,_0x592bd0(0x1f0),new Subject()),_defineProperty(this,_0x592bd0(0x1ff),this['_requestState$'][_0x592bd0(0x23e)]());}[_0x600536(0x16f)](){const _0x428533=_0x600536;super[_0x428533(0x16f)](),this[_0x428533(0x1f0)][_0x428533(0x1f1)]();}async[_0x600536(0x135)](_0x51f6de){const _0xaa1635=_0x600536,_0x3f2662=await this[_0xaa1635(0x249)](_0x51f6de,UniverInstanceType['UNIVER_DOC']);if(!_0x3f2662||!_0x3f2662[_0xaa1635(0x267)])return;const _0x3c5598=transformSnapshotJsonToDocumentData(_0x3f2662);if(!_0x3c5598)return;return _0x3c5598;}async[_0x600536(0x138)](_0x36e1fe){const _0x3bf84a=_0x600536;return this[_0x3bf84a(0x14b)](_0x36e1fe,ImportOutputType['UNIT'],UniverInstanceType[_0x3bf84a(0x14d)]);}async[_0x600536(0x182)](_0xf55d5d){const _0x23ea93=_0x600536,_0x476ba3=await transformDocumentDataToSnapshotJson(_0xf55d5d);return this[_0x23ea93(0x159)](_0x476ba3,UniverInstanceType[_0x23ea93(0x14d)]);}async[_0x600536(0x12a)](_0x5167ae){const _0x32b285=_0x600536,_0x3d2f93=await this[_0x32b285(0x249)](_0x5167ae,UniverInstanceType['UNIVER_SHEET']);if(!_0x3d2f93)return;const _0x9fa605=await transformSnapshotJsonToWorkbookData(_0x3d2f93);if(!_0x9fa605)return;return _0x9fa605;}async[_0x600536(0x1a5)](_0x323ea4){const _0x11b780=_0x600536;return this['_export'](_0x323ea4,ImportOutputType[_0x11b780(0x226)],UniverInstanceType[_0x11b780(0x22a)]);}async[_0x600536(0x1b9)](_0x3f693f){const _0x1dd6fa=_0x600536,_0x478946=await transformWorkbookDataToSnapshotJson(_0x3f693f);return this[_0x1dd6fa(0x159)](_0x478946,UniverInstanceType['UNIVER_SHEET']);}async[_0x600536(0x18d)](_0x4b744f,_0x1c1aa4){const _0xc3ef30=_0x600536;var _0x14a81d,_0x1ce52c;const _0x33ba73=await this['_upload'](_0x4b744f);if(!_0x33ba73)return;const _0x9bb818=await this[_0xc3ef30(0x1d4)](_0x33ba73,ImportOutputType['UNIT'],_0x1c1aa4);if(!_0x9bb818)return;this['_importTaskId']=_0x9bb818,this['_requestService'][_0xc3ef30(0x191)]();const _0x5beb33=await this[_0xc3ef30(0x16e)][_0xc3ef30(0x12b)](_0x9bb818)[_0xc3ef30(0x162)](_0x1539fe=>{const _0x174189=_0xc3ef30;var _0x23aa84;const _0x4a8555=_0x1539fe instanceof Error?_0x1539fe[_0x174189(0x1fd)]:(_0x23aa84=_0x1539fe[_0x174189(0x250)])===null||_0x23aa84===void 0x0?void 0x0:_0x23aa84[_0x174189(0x1fd)];this[_0x174189(0x1f0)][_0x174189(0x1a1)]({'error':{'code':ErrorCode[_0x174189(0x1b2)],'message':_0x4a8555||''},'state':RequestState[_0x174189(0x229)]});});if(!_0x5beb33)return;const _0x303913=(_0x14a81d=_0x5beb33[_0xc3ef30(0x152)])===null||_0x14a81d===void 0x0?void 0x0:_0x14a81d[_0xc3ef30(0x268)],_0x48a1c5=((_0x1ce52c=_0x5beb33[_0xc3ef30(0x152)])===null||_0x1ce52c===void 0x0?void 0x0:_0x1ce52c[_0xc3ef30(0x253)])||'';if(_0x303913!==ImportOutputType[_0xc3ef30(0x226)]){this[_0xc3ef30(0x1f0)]['next']({'error':{'code':ErrorCode[_0xc3ef30(0x1b2)],'message':'Get\x20outputType\x20error'},'state':RequestState['GET_TASK']});return;}if(_0x48a1c5['length']===0x0){this['_requestState$'][_0xc3ef30(0x1a1)]({'error':{'code':ErrorCode[_0xc3ef30(0x1b2)],'message':_0xc3ef30(0x1c0)},'state':RequestState[_0xc3ef30(0x229)]});return;}return this['_requestState$'][_0xc3ef30(0x1a1)]({'error':_0x5beb33[_0xc3ef30(0x250)],'state':RequestState[_0xc3ef30(0x229)]}),_0x48a1c5;}async[_0x600536(0x21d)](_0xe150f5){const _0xea600d=_0x600536,_0x501817=await transformWorkbookDataToSnapshotJson(_0xe150f5),_0x1681e1=typeof _0xe150f5['id']===_0xea600d(0x192)&&_0xe150f5['id']['trim']()?_0xe150f5['id']['trim']()+_0xea600d(0x24c):_0xea600d(0x171),_0xbadb89=new File([JSON[_0xea600d(0x22e)](_0x501817)],_0x1681e1,{'type':'application/json'});return this[_0xea600d(0x18d)](_0xbadb89,UniverInstanceType['UNIVER_SHEET']);}[_0x600536(0x24d)](){const _0x1cd3c3=_0x600536;if(this[_0x1cd3c3(0x124)])this[_0x1cd3c3(0x16e)][_0x1cd3c3(0x12d)](this[_0x1cd3c3(0x124)]);}async[_0x600536(0x249)](_0x582104,_0x529e5c){const _0x113550=_0x600536;var _0x23b9cb,_0x48d995;const _0x330058=await this[_0x113550(0x160)](_0x582104);if(!_0x330058)return;const _0x49321c=await this[_0x113550(0x1d4)](_0x330058,ImportOutputType[_0x113550(0x15e)],_0x529e5c);if(!_0x49321c)return;this[_0x113550(0x124)]=_0x49321c,this[_0x113550(0x16e)][_0x113550(0x191)]();const _0x2c7020=await this[_0x113550(0x16e)]['getTask'](_0x49321c)[_0x113550(0x162)](_0x3f4d88=>{const _0x432373=_0x113550;var _0x199717;const _0x1bd9e5=_0x3f4d88 instanceof Error?_0x3f4d88[_0x432373(0x1fd)]:(_0x199717=_0x3f4d88[_0x432373(0x250)])===null||_0x199717===void 0x0?void 0x0:_0x199717[_0x432373(0x1fd)];this[_0x432373(0x1f0)]['next']({'error':{'code':ErrorCode[_0x432373(0x1b2)],'message':_0x1bd9e5||''},'state':RequestState[_0x432373(0x229)]});});if(!_0x2c7020)return;const _0x109cc3=(_0x23b9cb=_0x2c7020['import'])===null||_0x23b9cb===void 0x0?void 0x0:_0x23b9cb[_0x113550(0x268)],_0xc07faa=((_0x48d995=_0x2c7020[_0x113550(0x152)])===null||_0x48d995===void 0x0?void 0x0:_0x48d995[_0x113550(0x211)])||'';if(_0x109cc3!==ImportOutputType[_0x113550(0x15e)]){this[_0x113550(0x1f0)]['next']({'error':{'code':ErrorCode[_0x113550(0x1b2)],'message':_0x113550(0x1bd)},'state':RequestState[_0x113550(0x229)]});return;}if(_0xc07faa[_0x113550(0x20d)]===0x0){this[_0x113550(0x1f0)][_0x113550(0x1a1)]({'error':{'code':ErrorCode[_0x113550(0x1b2)],'message':_0x113550(0x203)},'state':RequestState['GET_TASK']});return;}this[_0x113550(0x1f0)][_0x113550(0x1a1)]({'error':_0x2c7020[_0x113550(0x250)],'state':RequestState[_0x113550(0x229)]});const _0x4e33fa=await this['_signUrl'](_0xc07faa);if(!_0x4e33fa)return;const _0x110b20=await this[_0x113550(0x16e)][_0x113550(0x177)](_0x4e33fa);if(!_0x110b20){this[_0x113550(0x1f0)][_0x113550(0x1a1)]({'error':{'code':ErrorCode[_0x113550(0x1b2)],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':RequestState[_0x113550(0x24b)]});return;}try{const _0x5c6522=JSON['parse'](_0x110b20);return this['_requestState$'][_0x113550(0x1a1)]({'error':{'code':ErrorCode['OK'],'message':_0x113550(0x1ca)},'state':RequestState[_0x113550(0x24b)]}),_0x5c6522;}catch{this['_requestState$'][_0x113550(0x1a1)]({'error':{'code':ErrorCode[_0x113550(0x1b2)],'message':'Failed\x20to\x20parse\x20json'},'state':RequestState['GET_JSON']});}}async['_exportBySnapshot'](_0x40b8e3,_0x1849f1){const _0xa4b417=_0x600536,_0x5849f7=JSON[_0xa4b417(0x22e)](_0x40b8e3),_0x42daa3=textEncoder['encode'](_0x5849f7),_0x5e0a97=deflateSync(_0x42daa3),_0x53e9d4=_0x42daa3['length'],_0x17c9d1=bufferToFile(_0x5e0a97),_0x2d7ef8=await this[_0xa4b417(0x160)](_0x17c9d1,_0x53e9d4,!![]);if(!_0x2d7ef8)return;return this['_export'](_0x2d7ef8,ImportOutputType[_0xa4b417(0x15e)],_0x1849f1);}async['_export'](_0x7ff32e,_0x252b3d,_0x535bf5){const _0x2c0152=_0x600536;var _0x3c144b;const _0x8a49e2=await this['_requestService'][_0x2c0152(0x1b7)]({'unitID':_0x252b3d===ImportOutputType[_0x2c0152(0x226)]?_0x7ff32e:'','jsonID':_0x252b3d===ImportOutputType['JSON']?_0x7ff32e:'','type':_0x535bf5,'sscSwitch':this[_0x2c0152(0x239)](),'useImageUrl':this[_0x2c0152(0x255)](),'ignoreTableExport':this[_0x2c0152(0x256)]()});if(!_0x8a49e2){this[_0x2c0152(0x1f0)][_0x2c0152(0x1a1)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x2c0152(0x241)},'state':RequestState[_0x2c0152(0x1d3)]});return;}this['_requestState$']['next']({'error':_0x8a49e2['error'],'state':RequestState[_0x2c0152(0x1d3)]});if(_0x8a49e2[_0x2c0152(0x250)]&&_0x8a49e2[_0x2c0152(0x250)]['code']!==ErrorCode['OK'])return;const _0x31e664=_0x8a49e2['taskID'],_0x34de23=await this['_requestService'][_0x2c0152(0x12b)](_0x31e664)[_0x2c0152(0x162)](_0x1a2aa1=>{const _0x495122=_0x2c0152;var _0x1f7b26;const _0x47aed8=_0x1a2aa1 instanceof Error?_0x1a2aa1[_0x495122(0x1fd)]:(_0x1f7b26=_0x1a2aa1[_0x495122(0x250)])===null||_0x1f7b26===void 0x0?void 0x0:_0x1f7b26['message'];this[_0x495122(0x1f0)]['next']({'error':{'code':ErrorCode[_0x495122(0x1b2)],'message':_0x47aed8||''},'state':RequestState[_0x495122(0x229)]});});if(!_0x34de23)return;const _0x5f131b=((_0x3c144b=_0x34de23[_0x2c0152(0x1b7)])===null||_0x3c144b===void 0x0?void 0x0:_0x3c144b[_0x2c0152(0x14c)])||'';if(_0x5f131b[_0x2c0152(0x20d)]===0x0){this[_0x2c0152(0x1f0)][_0x2c0152(0x1a1)]({'error':{'code':ErrorCode[_0x2c0152(0x1b2)],'message':_0x2c0152(0x20f)},'state':RequestState[_0x2c0152(0x229)]});return;}this[_0x2c0152(0x1f0)][_0x2c0152(0x1a1)]({'error':_0x34de23[_0x2c0152(0x250)],'state':RequestState[_0x2c0152(0x229)]});const _0x27cce6=await this[_0x2c0152(0x243)](_0x5f131b);if(!_0x27cce6)return;const _0x9e3d9e=await getFileByURL(_0x27cce6,this[_0x2c0152(0x15d)]);if(!_0x9e3d9e){this[_0x2c0152(0x1f0)][_0x2c0152(0x1a1)]({'error':{'code':ErrorCode[_0x2c0152(0x1b2)],'message':_0x2c0152(0x146)},'state':RequestState['GET_FILE']});return;}return this[_0x2c0152(0x1f0)][_0x2c0152(0x1a1)]({'error':{'code':ErrorCode['OK'],'message':_0x2c0152(0x1ca)},'state':RequestState['GET_FILE']}),_0x9e3d9e;}async[_0x600536(0x160)](_0x514699,_0x4849cd,_0x2cd174){const _0x37c10d=_0x600536;let _0x5a1e5b;try{_0x5a1e5b=await this['_requestService'][_0x37c10d(0x25c)](_0x514699,_0x4849cd,_0x2cd174);}catch(_0x26bb3e){const _0x4b87ef=_0x26bb3e instanceof Error?_0x26bb3e[_0x37c10d(0x1fd)]:String(_0x26bb3e);this[_0x37c10d(0x1f0)][_0x37c10d(0x1a1)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x4b87ef},'state':RequestState[_0x37c10d(0x183)]});return;}if(!_0x5a1e5b||typeof _0x5a1e5b[_0x37c10d(0x18a)]!=='string'){this[_0x37c10d(0x1f0)][_0x37c10d(0x1a1)]({'error':{'code':ErrorCode[_0x37c10d(0x1b2)],'message':_0x37c10d(0x165)},'state':RequestState[_0x37c10d(0x183)]});return;}const _0x274434=_0x5a1e5b[_0x37c10d(0x18a)];if(_0x274434['length']===0x0){this[_0x37c10d(0x1f0)][_0x37c10d(0x1a1)]({'error':{'code':ErrorCode[_0x37c10d(0x1b2)],'message':_0x37c10d(0x158)},'state':RequestState[_0x37c10d(0x183)]});return;}return this['_requestState$'][_0x37c10d(0x1a1)]({'error':{'code':ErrorCode['OK'],'message':_0x37c10d(0x1ca)},'state':RequestState[_0x37c10d(0x183)]}),_0x274434;}async[_0x600536(0x1d4)](_0x450439,_0x57ac26,_0x2f3dd2){const _0x12ba40=_0x600536,_0x5d78ae={'fileID':_0x450439,'type':_0x2f3dd2,'outputType':_0x57ac26,'fileUrl':'','minSheetRowCount':this[_0x12ba40(0x13c)](),'minSheetColumnCount':this['_getMinSheetColumnCount']()},_0x1f1281=await this[_0x12ba40(0x16e)][_0x12ba40(0x152)](_0x5d78ae);if(!_0x1f1281){this['_requestState$']['next']({'error':{'code':ErrorCode[_0x12ba40(0x1b2)],'message':_0x12ba40(0x265)},'state':RequestState[_0x12ba40(0x1bf)]});return;}if(_0x1f1281[_0x12ba40(0x250)]&&_0x1f1281['error'][_0x12ba40(0x18f)]!==ErrorCode['OK']){this[_0x12ba40(0x1f0)][_0x12ba40(0x1a1)]({'error':_0x1f1281['error'],'state':RequestState[_0x12ba40(0x1bf)]});return;}const _0x3d1d4e=_0x1f1281[_0x12ba40(0x1c9)];if(_0x3d1d4e[_0x12ba40(0x20d)]===0x0){this[_0x12ba40(0x1f0)][_0x12ba40(0x1a1)]({'error':{'code':ErrorCode[_0x12ba40(0x1b2)],'message':'Failed\x20to\x20get\x20taskID\x20from\x20import\x20response'},'state':RequestState['IMPORT']});return;}return this[_0x12ba40(0x1f0)][_0x12ba40(0x1a1)]({'error':_0x1f1281['error'],'state':RequestState[_0x12ba40(0x1bf)]}),_0x3d1d4e;}async['_signUrl'](_0x28097b){const _0x40dfc2=_0x600536,_0x483474=await this[_0x40dfc2(0x16e)][_0x40dfc2(0x168)](_0x28097b);if(!_0x483474){this['_requestState$'][_0x40dfc2(0x1a1)]({'error':{'code':ErrorCode[_0x40dfc2(0x1b2)],'message':'sign\x20url\x20error'},'state':RequestState[_0x40dfc2(0x1ea)]});return;}if(_0x483474['error']&&_0x483474[_0x40dfc2(0x250)][_0x40dfc2(0x18f)]!==ErrorCode['OK']){this[_0x40dfc2(0x1f0)]['next']({'error':_0x483474['error'],'state':RequestState[_0x40dfc2(0x1ea)]});return;}const _0x386084=resolveWithBasePath(_0x483474[_0x40dfc2(0x1d1)],this[_0x40dfc2(0x233)]());if(_0x386084[_0x40dfc2(0x20d)]===0x0){this['_requestState$']['next']({'error':{'code':ErrorCode[_0x40dfc2(0x1b2)],'message':'sign\x20url\x20error'},'state':RequestState[_0x40dfc2(0x1ea)]});return;}return this[_0x40dfc2(0x1f0)][_0x40dfc2(0x1a1)]({'error':_0x483474[_0x40dfc2(0x250)],'state':RequestState['SIGN_URL']}),_0x386084;}[_0x600536(0x233)](){const _0x207303=_0x600536;var _0x447b01;const _0x33a88a=this[_0x207303(0x272)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x447b01=_0x33a88a===null||_0x33a88a===void 0x0?void 0x0:_0x33a88a[_0x207303(0x1fa)])!==null&&_0x447b01!==void 0x0?_0x447b01:location[_0x207303(0x240)];}[_0x600536(0x13c)](){const _0xd46bc6=_0x600536;var _0x1b5b97,_0x4d3e6a;const _0x2b768d=this[_0xd46bc6(0x272)][_0xd46bc6(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1b5b97=_0x2b768d===null||_0x2b768d===void 0x0||(_0x4d3e6a=_0x2b768d[_0xd46bc6(0x20e)])===null||_0x4d3e6a===void 0x0?void 0x0:_0x4d3e6a[_0xd46bc6(0x167)])!==null&&_0x1b5b97!==void 0x0?_0x1b5b97:0x1;}['_getMinSheetColumnCount'](){const _0x5cdc74=_0x600536;var _0x2a311a,_0x5c8a4d;const _0x4539c2=this[_0x5cdc74(0x272)][_0x5cdc74(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2a311a=_0x4539c2===null||_0x4539c2===void 0x0||(_0x5c8a4d=_0x4539c2['options'])===null||_0x5c8a4d===void 0x0?void 0x0:_0x5c8a4d[_0x5cdc74(0x18c)])!==null&&_0x2a311a!==void 0x0?_0x2a311a:0x1;}[_0x600536(0x239)](){const _0x467310=_0x600536;var _0x2e3082,_0x389c6e;const _0x1e7df8=this['_configService'][_0x467310(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2e3082=_0x1e7df8===null||_0x1e7df8===void 0x0||(_0x389c6e=_0x1e7df8[_0x467310(0x20e)])===null||_0x389c6e===void 0x0?void 0x0:_0x389c6e[_0x467310(0x1ab)])!==null&&_0x2e3082!==void 0x0?_0x2e3082:![];}[_0x600536(0x255)](){const _0x4b1389=_0x600536;var _0x467449,_0x3c2cac;const _0x29f56d=this[_0x4b1389(0x272)]['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x467449=_0x29f56d===null||_0x29f56d===void 0x0||(_0x3c2cac=_0x29f56d[_0x4b1389(0x20e)])===null||_0x3c2cac===void 0x0?void 0x0:_0x3c2cac[_0x4b1389(0x1e7)])!==null&&_0x467449!==void 0x0?_0x467449:!![];}[_0x600536(0x256)](){const _0x548e94=_0x600536;var _0x14084a,_0x48ee35;const _0x274bb2=this[_0x548e94(0x272)][_0x548e94(0x1b0)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x14084a=_0x274bb2===null||_0x274bb2===void 0x0||(_0x48ee35=_0x274bb2[_0x548e94(0x20e)])===null||_0x48ee35===void 0x0?void 0x0:_0x48ee35[_0x548e94(0x144)])!==null&&_0x14084a!==void 0x0?_0x14084a:![];}};ExchangeService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(IRequestService))],ExchangeService);const NilProgress={'done':0x0,'count':0x0},IExchangeOperateService=createIdentifier(_0x600536(0x1f8));let ExchangeOperateService=class ExchangeOperateService extends Disposable{constructor(_0x4e47c7,_0x395472,_0x1d08bb,_0x4b4d7a,_0x2f3b01,_0x2cb397){const _0xa15788=_0x600536;super(),this['_univerInstanceService']=_0x4e47c7,this[_0xa15788(0x16c)]=_0x395472,this[_0xa15788(0x12c)]=_0x1d08bb,this['_exchangeService']=_0x4b4d7a,this[_0xa15788(0x238)]=_0x2f3b01,this['_logService']=_0x2cb397,_defineProperty(this,_0xa15788(0x1f3),new BehaviorSubject(NilProgress)),_defineProperty(this,_0xa15788(0x220),this[_0xa15788(0x1f3)][_0xa15788(0x23e)]()),_defineProperty(this,_0xa15788(0x17f),0x0),_defineProperty(this,_0xa15788(0x25a),0x0),this['disposeWithMe'](toDisposable(this['_exchangeService'][_0xa15788(0x1ff)][_0xa15788(0x1d8)](_0x476e52=>{const _0x2e8de0=_0xa15788;var _0x2dd1d5;if(((_0x2dd1d5=_0x476e52[_0x2e8de0(0x250)])===null||_0x2dd1d5===void 0x0?void 0x0:_0x2dd1d5[_0x2e8de0(0x18f)])===ErrorCode['OK'])this['_addDoneTask'](0x1);else this[_0x2e8de0(0x1d9)](_0x476e52['error']);})));}['interrupt'](){const _0x46a9ed=_0x600536;this['_clearProgress'](),this[_0x46a9ed(0x238)][_0x46a9ed(0x1be)](UploadNotificationState[_0x46a9ed(0x213)]),this['_exchangeService'][_0x46a9ed(0x24d)]();}async['uploadFileToUnitId'](_0x395cb2){const _0x52f7ee=_0x600536;throw new Error(_0x52f7ee(0x1af));}async[_0x600536(0x20b)](){const _0x509d60=_0x600536,_0x5114d9=await getUploadFile([UniverInstanceType[_0x509d60(0x14d)]]);if(!_0x5114d9)return;if(this[_0x509d60(0x130)](_0x5114d9,UniverInstanceType[_0x509d60(0x14d)]))return;return this[_0x509d60(0x21e)](_0x5114d9[0x0],UniverInstanceType['UNIVER_DOC']);}[_0x600536(0x135)](){const _0x482e10=_0x600536;throw new Error(_0x482e10(0x1af));}async[_0x600536(0x138)](_0x3fd851,_0x38bc29,_0x4b0b62){const _0x59758f=_0x600536;this[_0x59758f(0x22b)](MessageType[_0x59758f(0x1c8)]);const _0x4170fb=await this[_0x59758f(0x169)][_0x59758f(0x138)](_0x3fd851||this[_0x59758f(0x178)]());if(!_0x4170fb)return;downloadFile(_0x4170fb,_0x38bc29||this[_0x59758f(0x13d)](_0x4170fb),_0x59758f(0x1ac)),this['_showDownloadMessage'](MessageType[_0x59758f(0x1a9)]);}async[_0x600536(0x182)](){const _0x10cbac=_0x600536;this['_showDownloadMessage'](MessageType[_0x10cbac(0x1c8)]);const _0x3cd154=await this[_0x10cbac(0x269)](),_0x457194=await this['_exchangeService'][_0x10cbac(0x182)](_0x3cd154);if(!_0x457194)return;downloadFile(_0x457194,this['_getUnitName'](_0x457194),'docx'),this[_0x10cbac(0x22b)](MessageType[_0x10cbac(0x1a9)]);}async[_0x600536(0x214)](){const _0x168e91=_0x600536;if(this[_0x168e91(0x155)]()){this['_messageService'][_0x168e91(0x13b)]({'type':MessageType[_0x168e91(0x131)],'content':this[_0x168e91(0x12c)]['t']('exchange.uploading')});return;}const _0x481292=await getUploadFile([UniverInstanceType[_0x168e91(0x22a)]]);if(!_0x481292)return;if(this[_0x168e91(0x130)](_0x481292,UniverInstanceType['UNIVER_SHEET']))return;return this[_0x168e91(0x21e)](_0x481292[0x0],UniverInstanceType[_0x168e91(0x22a)]);}async['importXLSXToSnapshot'](){const _0x424083=_0x600536;if(this['_uploadTaskNotDone']()){this[_0x424083(0x16c)][_0x424083(0x13b)]({'type':MessageType['Warning'],'content':this[_0x424083(0x12c)]['t'](_0x424083(0x17b))});return;}const _0x227039=await getUploadFile([UniverInstanceType[_0x424083(0x22a)]]);if(!_0x227039)return;this[_0x424083(0x199)](MessageType['Info']);const _0xf1e093=await this[_0x424083(0x169)][_0x424083(0x12a)](_0x227039[0x0]);if(!_0xf1e093)return;this['_refresh'](_0xf1e093),this[_0x424083(0x199)](MessageType[_0x424083(0x1a9)]);}async[_0x600536(0x1a5)](_0x54af32,_0xc96db4,_0x19bc6c){const _0x127455=_0x600536;this[_0x127455(0x22b)](MessageType['Info']);const _0x52f87=await this[_0x127455(0x169)][_0x127455(0x1a5)](_0x54af32||this['_getUnitID']());if(!_0x52f87)return;downloadFile(_0x52f87,_0xc96db4||this[_0x127455(0x13d)](_0x52f87),_0x127455(0x1f9)),this[_0x127455(0x22b)](MessageType[_0x127455(0x1a9)]);}async[_0x600536(0x1b9)](){const _0x5dd557=_0x600536;this['_showDownloadMessage'](MessageType[_0x5dd557(0x1c8)]);const _0x185cc1=await this[_0x5dd557(0x26f)](),_0x560cfe=await this['_exchangeService']['exportXLSXBySnapshot'](_0x185cc1);if(!_0x560cfe)return;downloadFile(_0x560cfe,this[_0x5dd557(0x13d)](_0x560cfe),_0x5dd557(0x1f9)),this[_0x5dd557(0x22b)](MessageType[_0x5dd557(0x1a9)]);}[_0x600536(0x136)](_0x41ea7f){const _0x5ac5a3=_0x600536;this[_0x5ac5a3(0x1d0)]=_0x41ea7f;}async['_importFileToUnitId'](_0x42b004,_0x340b64){const _0x4d95f6=_0x600536;this[_0x4d95f6(0x238)][_0x4d95f6(0x13b)](),this['_uploadNotificationService'][_0x4d95f6(0x1be)](UploadNotificationState[_0x4d95f6(0x1cb)]),this[_0x4d95f6(0x259)](0x4),this[_0x4d95f6(0x172)](0x1);const _0x5c9b90=await this[_0x4d95f6(0x169)][_0x4d95f6(0x18d)](_0x42b004,_0x340b64);if(!_0x5c9b90){this[_0x4d95f6(0x1e8)](),this['_uploadNotificationService'][_0x4d95f6(0x1be)](UploadNotificationState[_0x4d95f6(0x213)]);return;}const _0x5053a4={'link':this[_0x4d95f6(0x1d0)](_0x5c9b90,_0x340b64),'name':_0x42b004[_0x4d95f6(0x22d)],'type':_0x340b64};return this[_0x4d95f6(0x238)]['pushLink'](_0x5053a4),this['_completeProgress'](),this[_0x4d95f6(0x238)]['updateState'](UploadNotificationState['SUCCESS']),_0x5c9b90;}[_0x600536(0x202)](){const _0x2da988=_0x600536;return this[_0x2da988(0x1ed)][_0x2da988(0x262)](UniverInstanceType[_0x2da988(0x22a)])['getUnitId']();}[_0x600536(0x178)](){const _0x41bff1=_0x600536;return this[_0x41bff1(0x1ed)]['getCurrentUnitOfType'](UniverInstanceType[_0x41bff1(0x14d)])[_0x41bff1(0x140)]();}[_0x600536(0x13d)](_0x4037d4){const _0x25c099=_0x600536;var _0x11ddbe;return((_0x11ddbe=this[_0x25c099(0x1ed)][_0x25c099(0x262)](UniverInstanceType[_0x25c099(0x22a)]))===null||_0x11ddbe===void 0x0?void 0x0:_0x11ddbe['name'])||_0x4037d4['name']['split']('.')['shift']()||document[_0x25c099(0x26d)];}async[_0x600536(0x26f)](){const _0x4f6ad7=_0x600536;return this['_univerInstanceService'][_0x4f6ad7(0x262)](UniverInstanceType[_0x4f6ad7(0x22a)])[_0x4f6ad7(0x1bb)]();}async[_0x600536(0x269)](){const _0x390e90=_0x600536;return this[_0x390e90(0x1ed)][_0x390e90(0x262)](UniverInstanceType[_0x390e90(0x14d)])[_0x390e90(0x1bb)]();}[_0x600536(0x1d0)](_0x3e5e99,_0x323383){const _0x3fcc01=_0x600536,_0x84562e=new URL(window[_0x3fcc01(0x1fe)][_0x3fcc01(0x24a)]);return _0x84562e[_0x3fcc01(0x1ba)][_0x3fcc01(0x1e4)](_0x3fcc01(0x19e),_0x3e5e99),_0x84562e[_0x3fcc01(0x1ba)][_0x3fcc01(0x1e4)](_0x3fcc01(0x1bc),''+_0x323383),_0x84562e[_0x3fcc01(0x1e9)]();}[_0x600536(0x237)](_0x19e5db){const _0x2363c4=_0x600536,_0xc0146=this[_0x2363c4(0x1ed)][_0x2363c4(0x1d5)](UniverInstanceType[_0x2363c4(0x22a)])['getUnitId']();this[_0x2363c4(0x1ed)]['disposeUnit'](_0xc0146),this['_univerInstanceService']['createUnit'](UniverInstanceType[_0x2363c4(0x22a)],_0x19e5db);}[_0x600536(0x1d9)](_0x1eed0c){const _0x642a37=_0x600536;if(_0x1eed0c){const {code:_0x3561f0}=_0x1eed0c;switch(_0x3561f0){case ErrorCode['CONNECTOR_DATA_TOO_LARGE']:this[_0x642a37(0x16c)]['show']({'type':MessageType['Error'],'content':this[_0x642a37(0x12c)]['t'](_0x642a37(0x1cd))});break;case ErrorCode['INTERNAL_ERROR']:this['_messageService'][_0x642a37(0x13b)]({'type':MessageType['Error'],'content':this[_0x642a37(0x12c)]['t'](_0x642a37(0x129))});break;default:this[_0x642a37(0x16c)]['show']({'type':MessageType[_0x642a37(0x128)],'content':this[_0x642a37(0x12c)]['t'](_0x642a37(0x179))});break;}return null;}return this[_0x642a37(0x16c)][_0x642a37(0x13b)]({'type':MessageType[_0x642a37(0x128)],'content':this[_0x642a37(0x12c)]['t']('exchange.networkError')}),null;}[_0x600536(0x22b)](_0x4b494b){const _0x330476=_0x600536;let _0x5cbbae='';switch(_0x4b494b){case MessageType[_0x330476(0x1a9)]:_0x5cbbae=this['_localeService']['t'](_0x330476(0x1b1));break;case MessageType[_0x330476(0x1c8)]:_0x5cbbae=this['_localeService']['t'](_0x330476(0x1df));break;default:break;}this['_messageService'][_0x330476(0x13b)]({'type':_0x4b494b,'content':_0x5cbbae});}[_0x600536(0x199)](_0x2b9656){const _0x4d98a9=_0x600536;let _0x27a88d='';switch(_0x2b9656){case MessageType[_0x4d98a9(0x1a9)]:_0x27a88d=this['_localeService']['t'](_0x4d98a9(0x1a4));break;case MessageType[_0x4d98a9(0x1c8)]:_0x27a88d=this[_0x4d98a9(0x12c)]['t'](_0x4d98a9(0x17b));break;default:break;}this[_0x4d98a9(0x16c)]['show']({'type':_0x2b9656,'content':_0x27a88d});}[_0x600536(0x1f2)](){const _0x26c455=_0x600536;this[_0x26c455(0x1f3)]['next']({'done':this[_0x26c455(0x25a)],'count':this[_0x26c455(0x17f)]});}[_0x600536(0x259)](_0x4b3f4b){const _0x38ea34=_0x600536;this['_totalUploadTaskCount']+=_0x4b3f4b,this[_0x38ea34(0x1f2)]();}['_addDoneTask'](_0x2ac817){const _0x440d0b=_0x600536;this[_0x440d0b(0x25a)]+=_0x2ac817,this[_0x440d0b(0x25a)]=Math[_0x440d0b(0x25b)](this[_0x440d0b(0x25a)],this[_0x440d0b(0x17f)]),this['_emitProgress']();}[_0x600536(0x1a7)](){const _0x23d629=_0x600536;this[_0x23d629(0x25a)]=this[_0x23d629(0x17f)],this[_0x23d629(0x1f2)]();}['_clearProgress'](){const _0x5b22a2=_0x600536;this[_0x5b22a2(0x25a)]=0x0,this['_totalUploadTaskCount']=0x0,this[_0x5b22a2(0x1f2)]();}['_fileTypeError'](_0x3a5195,_0x10b8e5){const _0xfea657=_0x600536,_0x1936c9=_0x3a5195[0x0],_0x55eff6=_0x1936c9['name'];if(getUniverInstanceTypeByFile(_0x1936c9)!==_0x10b8e5)return this['_messageService']['show']({'type':MessageType[_0xfea657(0x128)],'content':this[_0xfea657(0x12c)]['t'](_0xfea657(0x181),_0x55eff6)}),!![];return![];}[_0x600536(0x155)](){const _0x330b0f=_0x600536;return this['_totalUploadTaskCount']!==0x0&&this[_0x330b0f(0x25a)]!==this[_0x330b0f(0x17f)];}};ExchangeOperateService=__decorate([__decorateParam(0x0,Inject(IUniverInstanceService)),__decorateParam(0x1,IMessageService),__decorateParam(0x2,Inject(LocaleService)),__decorateParam(0x3,Inject(IExchangeService)),__decorateParam(0x4,Inject(IUploadNotificationService)),__decorateParam(0x5,ILogService)],ExchangeOperateService);function UploadButton(_0x12f9f8){const _0xe567ff=_0x600536,{onClick:_0x3d40fa,children:_0x552787,className:_0x324679}=_0x12f9f8;return jsx('button',{'className':clsx('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',_0x324679),'type':_0xe567ff(0x234),'onClick':_0x3d40fa,'children':_0x552787});}function UploadAgain(){const _0x55750f=_0x600536,_0x5be0c4=useDependency(IExchangeOperateService),_0x532971=useDependency(LocaleService);function _0x10feca(){const _0x1fe0f7=_0x4d28;_0x5be0c4[_0x1fe0f7(0x214)]();}return jsx(UploadButton,{'onClick':_0x10feca,'children':_0x532971['t'](_0x55750f(0x218))});}function UploadError(){const _0xa11df0=_0x600536;return jsxs(_0xa11df0(0x217),{'className':_0xa11df0(0x184),'children':[jsx(_0xa11df0(0x1c5),{'className':_0xa11df0(0x1f4),'children':useDependency(LocaleService)['t'](_0xa11df0(0x254))}),jsx(UploadAgain,{})]});}function UploadSuccess(_0xd9cd16){const _0x5e4e7b=_0x600536,{count:_0x1076c4}=_0xd9cd16;return jsxs(_0x5e4e7b(0x217),{'className':_0x5e4e7b(0x161),'children':[jsx(_0x5e4e7b(0x1c5),{'className':_0x5e4e7b(0x153),'children':useDependency(LocaleService)['t']('exchange.uploadSuccessTip',''+_0x1076c4)}),jsx(UploadAgain,{})]});}function UploadCancel(){const _0xa72b38=_0x600536,_0x49db09=useDependency(IExchangeOperateService),_0x2a86ea=useDependency(LocaleService);function _0x100f52(){const _0x5e9d7a=_0x4d28;_0x49db09[_0x5e9d7a(0x1db)]();}return jsx(UploadButton,{'onClick':_0x100f52,'children':_0x2a86ea['t'](_0xa72b38(0x273))});}function UploadProgress(){const _0x531ee4=_0x600536,{count:_0x2fe395,done:_0x5f07aa}=useObservable(useDependency(IExchangeOperateService)['progress$']),[_0x2f5bad,_0x3ba866]=useState(_0x2fe395>0x0?_0x5f07aa/_0x2fe395:0x0);return useEffect(()=>{_0x3ba866(_0x2fe395>0x0?_0x5f07aa/_0x2fe395:0x0);},[_0x2fe395,_0x5f07aa]),jsx(_0x531ee4(0x217),{'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':jsx(_0x531ee4(0x217),{'className':'univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','style':{'width':Math[_0x531ee4(0x14a)](_0x2f5bad*0x64)+'%'}})});}function Uploading(){const _0x1c1f3b=_0x600536;return jsxs(_0x1c1f3b(0x217),{'className':_0x1c1f3b(0x184),'children':[jsx(_0x1c1f3b(0x1c5),{'className':_0x1c1f3b(0x16d),'children':useDependency(LocaleService)['t'](_0x1c1f3b(0x187))}),jsx('div',{'className':_0x1c1f3b(0x208),'children':jsx(UploadProgress,{})}),jsx(UploadCancel,{})]});}const iconMap={[UploadNotificationState[_0x600536(0x25f)]]:jsx(SuccessIcon,{'className':_0x600536(0x190)}),[UploadNotificationState['UPLOADING']]:jsx(ClockIcon,{'className':_0x600536(0x175)}),[UploadNotificationState[_0x600536(0x213)]]:jsx(ErrorIcon,{'className':_0x600536(0x1cf)})};function UploadNotification(){const _0x53f802=_0x600536,[_0x1e23df,_0x33f38e]=useState(UploadNotificationState[_0x53f802(0x1cb)]),[_0x3786e2,_0x17b4db]=useState(![]),[_0x1f9354,_0x373f2f]=useState([]),_0x28a84e=useDependency(IUploadNotificationService),_0x3046d4=useDependency(LocaleService);useEffect(()=>{const _0x35155e=_0x53f802,_0x171082=_0x28a84e[_0x35155e(0x173)][_0x35155e(0x1d8)](_0x26cdca=>{_0x17b4db(_0x26cdca);}),_0x5148fd=_0x28a84e['list$'][_0x35155e(0x1d8)](_0x1c8c63=>{_0x373f2f(_0x1c8c63);}),_0x254e76=_0x28a84e[_0x35155e(0x147)][_0x35155e(0x1d8)](_0xb474ed=>{_0x33f38e(_0xb474ed);});return()=>{const _0x2af4ce=_0x35155e;_0x171082['unsubscribe'](),_0x5148fd[_0x2af4ce(0x166)](),_0x254e76[_0x2af4ce(0x166)]();};},[]);function _0x5158d(){_0x17b4db(![]);}function _0x48583c(_0x510e8d){const _0xd79873=_0x53f802;switch(_0x510e8d){case UploadNotificationState[_0xd79873(0x25f)]:return _0x3046d4['t'](_0xd79873(0x1a4));case UploadNotificationState['UPLOADING']:return _0x3046d4['t'](_0xd79873(0x17b));case UploadNotificationState[_0xd79873(0x213)]:return _0x3046d4['t'](_0xd79873(0x20c));default:return'';}}return _0x3786e2&&jsxs(_0x53f802(0x217),{'className':_0x53f802(0x222),'children':[jsxs(_0x53f802(0x217),{'className':_0x53f802(0x1f6),'children':[jsxs(_0x53f802(0x1c5),{'className':_0x53f802(0x205),'children':[jsx('span',{'className':'univer-h-6\x20univer-text-2xl','children':iconMap[_0x1e23df]}),jsx(_0x53f802(0x1c5),{'className':'univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','children':_0x48583c(_0x1e23df)})]}),jsx(_0x53f802(0x1c5),{'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':_0x5158d,'children':jsx(CloseIcon,{})})]}),jsxs(_0x53f802(0x217),{'children':[_0x1e23df===UploadNotificationState[_0x53f802(0x1cb)]&&jsx(Uploading,{}),_0x1e23df===UploadNotificationState['ERROR']&&jsx(UploadError,{}),_0x1f9354['length']>0x0&&jsx(LinkList,{'list':_0x1f9354}),_0x1e23df===UploadNotificationState[_0x53f802(0x25f)]&&jsx(UploadSuccess,{'count':_0x1f9354['length']})]})]});}function UploadNotificationContainer(){return jsx(UploadNotification,{});}let ExchangeClientController=class ExchangeClientController extends Disposable{constructor(_0x362a20,_0x3553e5){const _0x3b5321=_0x600536;super(),this['_injector']=_0x362a20,this[_0x3b5321(0x137)]=_0x3553e5,this[_0x3b5321(0x1b3)]();}[_0x600536(0x1b3)](){const _0x539e5a=_0x600536;this['disposeWithMe'](this[_0x539e5a(0x137)]['registerComponent'](BuiltInUIPart[_0x539e5a(0x193)],()=>connectInjector(UploadNotificationContainer,this[_0x539e5a(0x16b)])));}};ExchangeClientController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService)],ExchangeClientController);let UniverExchangeClientPlugin=class UniverExchangeClientPlugin extends Plugin{constructor(_0x2b5105=defaultPluginConfig,_0x545e5f,_0x231a27){const _0x1793d7=_0x600536;super(),this[_0x1793d7(0x1f5)]=_0x2b5105,this[_0x1793d7(0x16b)]=_0x545e5f,this[_0x1793d7(0x272)]=_0x231a27;const {..._0xd0fb6d}=merge({},defaultPluginConfig,this[_0x1793d7(0x1f5)]);this[_0x1793d7(0x272)][_0x1793d7(0x1b4)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,_0xd0fb6d);}['onStarting'](){const _0x4ae2aa=_0x600536;registerDependencies(this[_0x4ae2aa(0x16b)],[[ExchangeClientController],[IExchangeOperateService,{'useClass':ExchangeOperateService}],[IExchangeService,{'useClass':ExchangeService}],[IRequestService,{'useClass':RequestService}],[IUploadNotificationService,{'useClass':UploadNotificationService}]]);}[_0x600536(0x227)](){const _0x1b4dc9=_0x600536;touchDependencies(this[_0x1b4dc9(0x16b)],[[ExchangeClientController],[IExchangeOperateService]]);}};_defineProperty(UniverExchangeClientPlugin,_0x600536(0x24e),_0x600536(0x1dc)),_defineProperty(UniverExchangeClientPlugin,_0x600536(0x1d6),name),_defineProperty(UniverExchangeClientPlugin,'version',version),UniverExchangeClientPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverExchangeClientPlugin);export{EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,ExchangeOperateService,ExchangeService,IExchangeOperateService,IExchangeService,IRequestService,IUploadNotificationService,RequestService,UniverExchangeClientPlugin,UploadNotificationContainer,UploadNotificationService,UploadNotificationState,downloadFile,getUniverInstanceTypeByFile,getUploadFile,transformDocumentDataToSnapshotJson,transformSnapshotJsonToDocumentData,transformSnapshotJsonToWorkbookData,transformWorkbookDataToSnapshotJson};
1
+ const _0x27f6be=_0x41e1;(function(_0x2eb327,_0x8b1083){const _0xc02695=_0x41e1,_0x16cd21=_0x2eb327();while(!![]){try{const _0x1d1dbd=parseInt(_0xc02695(0x249))/0x1+-parseInt(_0xc02695(0x242))/0x2*(parseInt(_0xc02695(0x29b))/0x3)+parseInt(_0xc02695(0x1d4))/0x4+parseInt(_0xc02695(0x261))/0x5*(-parseInt(_0xc02695(0x2a9))/0x6)+parseInt(_0xc02695(0x2ba))/0x7+parseInt(_0xc02695(0x2bd))/0x8+-parseInt(_0xc02695(0x2e8))/0x9*(parseInt(_0xc02695(0x1f2))/0xa);if(_0x1d1dbd===_0x8b1083)break;else _0x16cd21['push'](_0x16cd21['shift']());}catch(_0xe010f2){_0x16cd21['push'](_0x16cd21['shift']());}}}(_0x2f72,0xbbb1e));import{UniverLicensePlugin}from'@univerjs-pro/license';import{DependentOn,Disposable,IConfigService,ILogService,IUniverInstanceService,Inject,Injector,LocaleService,Plugin,UniverInstanceType,createIdentifier,merge,registerDependencies,resolveWithBasePath,toDisposable,touchDependencies}from'@univerjs/core';import{HTTPResponseError,HTTPService,UniverNetworkPlugin}from'@univerjs/network';import{BuiltInUIPart,IMessageService,IUIPartsService,connectInjector,useDependency,useObservable}from'@univerjs/ui';import{ClockIcon,CloseIcon,DocMultiIcon,ErrorIcon,ShareRangeIcon,SlideMultiIcon,SuccessIcon,XlsxMultiIcon}from'@univerjs/icons';import{useEffect,useState}from'react';import{BehaviorSubject,Subject}from'rxjs';import{MessageType,Tooltip,clsx,scrollbarClassName}from'@univerjs/design';import{jsx,jsxs}from'react/jsx-runtime';import{ErrorCode,FileSource}from'@univerjs/protocol';import{b64DecodeUnicode,b64EncodeUnicode,getSheetBlocksFromSnapshot,textDecoder,textEncoder,transformDocumentDataToSnapshot,transformSnapshotToDocumentData,transformSnapshotToWorkbookData,transformWorkbookDataToSnapshot}from'@univerjs-pro/collaboration';import{deflateSync}from'fflate';const EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY=_0x27f6be(0x288),configSymbol=Symbol(EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};var name='@univerjs-pro/exchange-client',version=_0x27f6be(0x2b4);function _typeof(_0x40fa9b){'@babel/helpers - typeof';const _0x5d14cf=_0x27f6be;return _typeof=_0x5d14cf(0x236)==typeof Symbol&&_0x5d14cf(0x2f0)==typeof Symbol[_0x5d14cf(0x2e7)]?function(_0x13dd6c){return typeof _0x13dd6c;}:function(_0x4573fa){const _0xc6c11=_0x5d14cf;return _0x4573fa&&_0xc6c11(0x236)==typeof Symbol&&_0x4573fa['constructor']===Symbol&&_0x4573fa!==Symbol['prototype']?_0xc6c11(0x2f0):typeof _0x4573fa;},_typeof(_0x40fa9b);}function _0x41e1(_0x3bcaec,_0x45f3a0){_0x3bcaec=_0x3bcaec-0x1b3;const _0x2f72e3=_0x2f72();let _0x41e159=_0x2f72e3[_0x3bcaec];return _0x41e159;}function toPrimitive(_0x17f06e,_0xad90f3){const _0x5139ed=_0x27f6be;if(_0x5139ed(0x1e3)!=_typeof(_0x17f06e)||!_0x17f06e)return _0x17f06e;var _0x1c62a4=_0x17f06e[Symbol[_0x5139ed(0x1dc)]];if(void 0x0!==_0x1c62a4){var _0x11729c=_0x1c62a4[_0x5139ed(0x262)](_0x17f06e,_0xad90f3||_0x5139ed(0x1f1));if('object'!=_typeof(_0x11729c))return _0x11729c;throw new TypeError(_0x5139ed(0x1ec));}return(_0x5139ed(0x257)===_0xad90f3?String:Number)(_0x17f06e);}function toPropertyKey(_0x5f09e5){const _0x2f6a71=_0x27f6be;var _0x281b17=toPrimitive(_0x5f09e5,'string');return _0x2f6a71(0x2f0)==_typeof(_0x281b17)?_0x281b17:_0x281b17+'';}function _defineProperty(_0x2e3b59,_0x3dacb5,_0x367ec7){const _0x3921e7=_0x27f6be;return(_0x3dacb5=toPropertyKey(_0x3dacb5))in _0x2e3b59?Object[_0x3921e7(0x284)](_0x2e3b59,_0x3dacb5,{'value':_0x367ec7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e3b59[_0x3dacb5]=_0x367ec7,_0x2e3b59;}let UploadNotificationState=function(_0x3316b6){const _0x25f16a=_0x27f6be;return _0x3316b6[_0x3316b6[_0x25f16a(0x222)]=0x0]=_0x25f16a(0x222),_0x3316b6[_0x3316b6['SUCCESS']=0x1]='SUCCESS',_0x3316b6[_0x3316b6[_0x25f16a(0x2e1)]=0x2]=_0x25f16a(0x2e1),_0x3316b6;}({});const IUploadNotificationService=createIdentifier(_0x27f6be(0x1ee));var UploadNotificationService=class extends Disposable{constructor(){const _0x26f75d=_0x27f6be;super(),_defineProperty(this,_0x26f75d(0x1e4),new Subject()),_defineProperty(this,_0x26f75d(0x1bb),new Subject()),_defineProperty(this,_0x26f75d(0x23e),new Subject()),_defineProperty(this,'visible$',this['_visible$']['asObservable']()),_defineProperty(this,'state$',this[_0x26f75d(0x1bb)][_0x26f75d(0x2c1)]()),_defineProperty(this,'list$',this[_0x26f75d(0x23e)][_0x26f75d(0x2c1)]()),_defineProperty(this,_0x26f75d(0x26d),[]);}[_0x27f6be(0x1b8)](){const _0x41c4b1=_0x27f6be;super[_0x41c4b1(0x1b8)](),this['_visible$'][_0x41c4b1(0x2cb)](),this[_0x41c4b1(0x1bb)][_0x41c4b1(0x2cb)](),this[_0x41c4b1(0x23e)][_0x41c4b1(0x2cb)]();}['show'](){const _0x58f6de=_0x27f6be;this[_0x58f6de(0x1e4)][_0x58f6de(0x2dd)](!![]);}[_0x27f6be(0x22a)](){const _0x9335d6=_0x27f6be;this[_0x9335d6(0x1e4)][_0x9335d6(0x2dd)](![]);}['updateState'](_0x6845ae){const _0x492c0b=_0x27f6be;this[_0x492c0b(0x1bb)][_0x492c0b(0x2dd)](_0x6845ae);}[_0x27f6be(0x27f)](_0x45d189){const _0x1ada85=_0x27f6be;this[_0x1ada85(0x26d)]['unshift'](_0x45d189),this[_0x1ada85(0x23e)][_0x1ada85(0x2dd)](this[_0x1ada85(0x26d)]);}};function LinkList(_0x3a0fdf){const _0x4bed1d=_0x27f6be,{list:_0x1792a4}=_0x3a0fdf;function _0x1a22a9(_0x3a51fe){switch(_0x3a51fe){case 0x1:return jsx(DocMultiIcon,{});case 0x2:return jsx(XlsxMultiIcon,{});case 0x3:return jsx(SlideMultiIcon,{});default:return null;}}return jsx(_0x4bed1d(0x22c),{'className':clsx(_0x4bed1d(0x2e4),scrollbarClassName),'children':jsx('ul',{'className':_0x4bed1d(0x240),'children':_0x1792a4[_0x4bed1d(0x2bf)]((_0x570071,_0x60a728)=>{const _0x58fd18=_0x4bed1d;return jsx('li',{'children':jsxs('a',{'className':'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','href':_0x570071['link'],'target':_0x58fd18(0x233),'rel':_0x58fd18(0x1c6),'children':[jsxs(_0x58fd18(0x29e),{'className':_0x58fd18(0x1fc),'children':[jsx(_0x58fd18(0x29e),{'className':_0x58fd18(0x1e1),'children':_0x1a22a9(_0x570071['type'])}),jsx(Tooltip,{'showIfEllipsis':!![],'title':_0x570071[_0x58fd18(0x1ea)],'asChild':!![],'children':jsx(_0x58fd18(0x29e),{'className':_0x58fd18(0x1e2),'children':_0x570071[_0x58fd18(0x1ea)]})})]}),jsx('span',{'className':_0x58fd18(0x20c),'children':jsx(ShareRangeIcon,{})})]})},_0x60a728);})})});}const DOCX=_0x27f6be(0x26e),XLSX='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',XLSM=_0x27f6be(0x1bd),XLTX='application/vnd.openxmlformats-officedocument.spreadsheetml.template',PPTX=_0x27f6be(0x216),UNIT_CONTENT_TYPE={[UniverInstanceType[_0x27f6be(0x1b6)]]:[''],[UniverInstanceType[_0x27f6be(0x2ac)]]:[DOCX],[UniverInstanceType['UNIVER_SHEET']]:[XLSX,XLSM,XLTX],[UniverInstanceType['UNIVER_SLIDE']]:[PPTX],[UniverInstanceType[_0x27f6be(0x28b)]]:[''],[UniverInstanceType[_0x27f6be(0x29a)]]:['']},CONTENT_TYPE_EXTNAME={[DOCX]:_0x27f6be(0x1f3),[XLSX]:_0x27f6be(0x1f4),[XLSM]:_0x27f6be(0x26b),[XLTX]:_0x27f6be(0x2a5),[PPTX]:_0x27f6be(0x22b)};function downloadFileByURL(_0x3c939e,_0x5bf99c,_0x1fd793){const _0x5530e0=_0x27f6be,_0x5a3092=document[_0x5530e0(0x298)]('a');_0x5a3092['href']=_0x3c939e,_0x5a3092[_0x5530e0(0x2fd)][_0x5530e0(0x23b)]=_0x5530e0(0x2f5),_0x5a3092[_0x5530e0(0x1cf)]=_0x5bf99c+'.'+_0x1fd793,document['body'][_0x5530e0(0x24a)](_0x5a3092),_0x5a3092[_0x5530e0(0x26c)](),document[_0x5530e0(0x269)][_0x5530e0(0x280)](_0x5a3092);}function downloadFile(_0x47d27c,_0x17d4f2,_0x26d4c4){const _0x4ffa10=_0x27f6be,_0x3a0e02=URL[_0x4ffa10(0x300)](_0x47d27c);downloadFileByURL(_0x3a0e02,_0x17d4f2,_0x26d4c4),URL['revokeObjectURL'](_0x3a0e02);}function getUniverInstanceTypeByFile(_0x557d95){const _0x46d481=_0x27f6be,_0xe196b4=_0x557d95[_0x46d481(0x1ea)][_0x46d481(0x25b)]('.')[_0x46d481(0x232)]();if(!_0xe196b4)return UniverInstanceType['UNIVER_UNKNOWN'];const _0x1f7d2c=getUnitTypeList();let _0x19a190=UniverInstanceType['UNIVER_UNKNOWN'];return _0x1f7d2c['some'](_0x47556b=>{if(isUniverInstanceTypeFileByExt(_0xe196b4,_0x47556b))return _0x19a190=_0x47556b,!![];return![];}),_0x19a190;}function getUnitTypeList(){const _0x552d6b=_0x27f6be;return Object[_0x552d6b(0x219)](UniverInstanceType)[_0x552d6b(0x213)](_0x416c4c=>typeof _0x416c4c===_0x552d6b(0x1c0));}function isUniverInstanceTypeFileByExt(_0x4a9d66,_0x31a312){const _0x247ebe=_0x27f6be;return UNIT_CONTENT_TYPE[_0x31a312][_0x247ebe(0x2bf)](_0x51486c=>(CONTENT_TYPE_EXTNAME[_0x51486c]||'')[_0x247ebe(0x243)]())[_0x247ebe(0x255)](_0x4a9d66[_0x247ebe(0x243)]());}function getUploadFile(_0x2ba49c,_0x4ea58d=![]){const _0x4be195=_0x27f6be,_0x98b643=_0x2ba49c[_0x4be195(0x2bf)](_0x20c14f=>UNIT_CONTENT_TYPE[_0x20c14f])[_0x4be195(0x250)](',');return new Promise((_0x54cb1a,_0x6f917a)=>{const _0x3b4414=_0x4be195,_0x1497c6=document[_0x3b4414(0x298)]('input');_0x1497c6[_0x3b4414(0x25a)]='file',_0x1497c6[_0x3b4414(0x2fa)]=_0x98b643,_0x1497c6[_0x3b4414(0x2ad)]=_0x4ea58d,_0x1497c6[_0x3b4414(0x2ab)](_0x3b4414(0x2f2),_0x5e3e93=>{const _0x5e34d8=_0x3b4414,_0x11f4fc=_0x5e3e93[_0x5e34d8(0x252)];if(!_0x11f4fc['files']||_0x11f4fc[_0x5e34d8(0x25d)][_0x5e34d8(0x24e)]===0x0){_0x6f917a(null);throw new Error(_0x5e34d8(0x217));}_0x54cb1a(_0x11f4fc[_0x5e34d8(0x25d)]);}),_0x1497c6[_0x3b4414(0x26c)]();});}async function getFileByURL(_0x2cf57b,_0x1eb7f4){const _0x2d45c0=_0x27f6be;try{var _0x233fb7,_0xe550a8,_0x18c347;const _0x1aed52=await _0x1eb7f4[_0x2d45c0(0x2e6)](_0x2cf57b,{'responseType':_0x2d45c0(0x2c4)}),_0x202f13=_0x1aed52[_0x2d45c0(0x269)],_0x5cad40=(_0x233fb7=(_0xe550a8=_0x1aed52[_0x2d45c0(0x2b1)][_0x2d45c0(0x2e6)]('Content-Type'))===null||_0xe550a8===void 0x0?void 0x0:_0xe550a8[_0x2d45c0(0x250)](',\x20'))!==null&&_0x233fb7!==void 0x0?_0x233fb7:_0x2d45c0(0x2ee);let _0x575286=_0x2d45c0(0x2d5)+(CONTENT_TYPE_EXTNAME[_0x5cad40]||_0x2d45c0(0x1f4));const _0x1736dc=(_0x18c347=_0x1aed52['headers'][_0x2d45c0(0x2e6)](_0x2d45c0(0x258)))===null||_0x18c347===void 0x0?void 0x0:_0x18c347[_0x2d45c0(0x250)](',\x20');if(_0x1736dc){const _0x35f098=_0x1736dc[_0x2d45c0(0x223)](/filename=(.+)/);if(_0x35f098&&_0x35f098[0x1])_0x575286=_0x35f098[0x1];}else _0x575286=getFileNameFromURL(_0x2cf57b)||_0x575286;return new File([_0x202f13],_0x575286,{'type':_0x5cad40});}catch(_0x467b06){console[_0x2d45c0(0x26a)]('Error\x20fetching\x20file\x20from\x20URL:',_0x467b06);return;}}function getFileNameFromURL(_0x40740f){const _0x3694c4=_0x27f6be;try{return new URL(_0x40740f)[_0x3694c4(0x28d)][_0x3694c4(0x25b)]('/')[_0x3694c4(0x232)]();}catch(_0x4bd4c8){console[_0x3694c4(0x26a)]('Error\x20getting\x20file\x20name\x20from\x20URL:',_0x4bd4c8);return;}}function bufferToFile(_0x500066){const _0xee1ca=_0x27f6be,_0x32025a=new Blob([_0x500066[_0xee1ca(0x27d)]],{'type':'application/json'});return new File([_0x32025a],_0xee1ca(0x2ff));}function replaceType(_0x2b9023,_0x37d75f){const _0x49e2e9=_0x27f6be;return _0x2b9023[_0x49e2e9(0x211)]('{type}',_0x37d75f);}function replaceTaskID(_0x359381,_0x18a93b){const _0x449b5b=_0x27f6be;return _0x359381[_0x449b5b(0x211)](_0x449b5b(0x264),_0x18a93b);}function replaceFileID(_0x32d6cc,_0x2e3dfe){const _0x58b600=_0x27f6be;return _0x32d6cc[_0x58b600(0x211)](_0x58b600(0x263),_0x2e3dfe);}function __decorateParam(_0x2eb967,_0x4ebc68){return function(_0x4ac719,_0x49a7b9){_0x4ebc68(_0x4ac719,_0x49a7b9,_0x2eb967);};}function __decorate(_0x26b301,_0x38d835,_0x55c694,_0x55ee1e){const _0x19a91c=_0x27f6be;var _0x4b0fe3=arguments['length'],_0x20cee7=_0x4b0fe3<0x3?_0x38d835:_0x55ee1e===null?_0x55ee1e=Object[_0x19a91c(0x2fe)](_0x38d835,_0x55c694):_0x55ee1e,_0x36a306;if(typeof Reflect===_0x19a91c(0x1e3)&&typeof Reflect['decorate']===_0x19a91c(0x236))_0x20cee7=Reflect[_0x19a91c(0x24f)](_0x26b301,_0x38d835,_0x55c694,_0x55ee1e);else{for(var _0x393c7e=_0x26b301[_0x19a91c(0x24e)]-0x1;_0x393c7e>=0x0;_0x393c7e--)if(_0x36a306=_0x26b301[_0x393c7e])_0x20cee7=(_0x4b0fe3<0x3?_0x36a306(_0x20cee7):_0x4b0fe3>0x3?_0x36a306(_0x38d835,_0x55c694,_0x20cee7):_0x36a306(_0x38d835,_0x55c694))||_0x20cee7;}return _0x4b0fe3>0x3&&_0x20cee7&&Object[_0x19a91c(0x284)](_0x38d835,_0x55c694,_0x20cee7),_0x20cee7;}const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x27f6be(0x1b3),DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY=_0x27f6be(0x2be),DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY='/universer-api/exchange/{type}/export',DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY=_0x27f6be(0x270),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY='/universer-api/file/{fileID}/sign-url',DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY=0x1d4c0;let ImportOutputType=function(_0x5a4e7e){const _0x9414b5=_0x27f6be;return _0x5a4e7e[_0x5a4e7e[_0x9414b5(0x282)]=0x0]='UNDEFINED',_0x5a4e7e[_0x5a4e7e[_0x9414b5(0x2b7)]=0x1]=_0x9414b5(0x2b7),_0x5a4e7e[_0x5a4e7e[_0x9414b5(0x1ce)]=0x2]=_0x9414b5(0x1ce),_0x5a4e7e[_0x5a4e7e[_0x9414b5(0x29a)]=-0x1]=_0x9414b5(0x29a),_0x5a4e7e;}({});const IRequestService=createIdentifier(_0x27f6be(0x2da));let RequestService=class RequestService{constructor(_0x15f678,_0x3c6315){const _0x3ea5bd=_0x27f6be;this['_configService']=_0x15f678,this[_0x3ea5bd(0x289)]=_0x3c6315,_defineProperty(this,_0x3ea5bd(0x1d8),new Set());}[_0x27f6be(0x1b8)](){}[_0x27f6be(0x27b)](_0x7a4f87){const _0xb68330=_0x27f6be;this['_taskInterrupted'][_0xb68330(0x299)](_0x7a4f87);}[_0x27f6be(0x1d9)](){const _0xe424c5=_0x27f6be;this[_0xe424c5(0x1d8)][_0xe424c5(0x237)]();}async[_0x27f6be(0x1f9)](_0x894d88,_0x2bedad=0x0,_0x366cd6=![]){const _0x1f6b22=_0x27f6be;if(typeof _0x894d88===_0x1f6b22(0x257)){const _0x3a0b5c=await getFileByURL(_0x894d88,this['_httpService']);if(!_0x3a0b5c)throw new Error(_0x1f6b22(0x1ff));_0x894d88=_0x3a0b5c;}_0x2bedad=_0x2bedad||_0x894d88[_0x1f6b22(0x248)];const _0x5b758b=new FormData();_0x5b758b[_0x1f6b22(0x1e7)](_0x1f6b22(0x21e),_0x894d88);try{const _0x13b3b6=this[_0x1f6b22(0x2dc)]()+'?size='+_0x2bedad+'&source='+FileSource[_0x1f6b22(0x1c4)]+_0x1f6b22(0x1db)+_0x366cd6,_0xd8cd28={'body':_0x5b758b},_0x1e592c=(await this['_httpService'][_0x1f6b22(0x2e5)](_0x13b3b6,_0xd8cd28))[_0x1f6b22(0x269)];if(_0x1e592c[_0x1f6b22(0x26a)]&&_0x1e592c[_0x1f6b22(0x26a)][_0x1f6b22(0x296)]!==ErrorCode['OK'])throw new Error(this[_0x1f6b22(0x266)](_0x1f6b22(0x2b5),_0x1e592c[_0x1f6b22(0x26a)]));return _0x1e592c;}catch(_0x3a28c4){if(_0x3a28c4 instanceof Error)throw _0x3a28c4;throw new Error(this['_buildHttpErrorMessage'](_0x1f6b22(0x2b5),_0x3a28c4));}}async[_0x27f6be(0x200)](_0x5b9dcd){const _0x2b588e=_0x27f6be,{fileID:_0x383f73,type:_0x3a31e8,outputType:_0x5eb6a0,minSheetColumnCount:_0xb1325c,minSheetRowCount:_0x3f2ef7}=_0x5b9dcd;try{const _0x59b882=replaceType(this['_getImportURL'](),''+_0x3a31e8),_0xfddfb1={'body':{'fileID':_0x383f73,'outputType':_0x5eb6a0,'minSheetColumnCount':_0xb1325c,'minSheetRowCount':_0x3f2ef7}},_0x5a8586=(await this[_0x2b588e(0x289)][_0x2b588e(0x2e5)](_0x59b882,_0xfddfb1))[_0x2b588e(0x269)];if(_0x5a8586[_0x2b588e(0x26a)]&&_0x5a8586[_0x2b588e(0x26a)][_0x2b588e(0x296)]!==ErrorCode['OK'])return;return _0x5a8586;}catch(_0x4f2f0c){return;}}async['export'](_0x510106){const _0x35a790=_0x27f6be,{unitID:_0x311b85,jsonID:_0x2cf058,type:_0x22706f,sscSwitch:_0x527aea,useImageUrl:_0x24e597,ignoreTableExport:_0x42e62c}=_0x510106;try{const _0x4703b1=replaceType(this['_getExportURL'](),''+_0x22706f),_0x1893ff={'body':{'unitID':_0x311b85,'jsonID':_0x2cf058,'type':_0x22706f,'sscSwitch':_0x527aea,'useImageUrl':_0x24e597,'ignoreTableExport':_0x42e62c}},_0x56e339=(await this[_0x35a790(0x289)][_0x35a790(0x2e5)](_0x4703b1,_0x1893ff))['body'];if(_0x56e339[_0x35a790(0x26a)]&&_0x56e339[_0x35a790(0x26a)][_0x35a790(0x296)]!==ErrorCode['OK'])return;return _0x56e339;}catch(_0x242f9c){return;}}async['getTask'](_0x1e51dc){return new Promise((_0xc61ec8,_0x537a2d)=>{const _0x5cb507=_0x41e1;try{let _0x34fbe2=0x0;const _0x18ba93=replaceTaskID(this[_0x5cb507(0x259)](),''+_0x1e51dc),_0x5383d5=this[_0x5cb507(0x228)](),_0x897eae=async()=>{const _0x2d6303=_0x5cb507;if(this[_0x2d6303(0x1d8)][_0x2d6303(0x20d)](_0x1e51dc))return;const _0x24a19d=(await this[_0x2d6303(0x289)][_0x2d6303(0x2e6)](_0x18ba93))[_0x2d6303(0x269)];if(_0x24a19d[_0x2d6303(0x26a)]&&_0x24a19d[_0x2d6303(0x26a)][_0x2d6303(0x296)]===ErrorCode['OK']){if(_0x24a19d['status']==='done')_0xc61ec8(_0x24a19d);else{if(_0x24a19d[_0x2d6303(0x1f8)]==='pending'){let _0x2b5a5b=0x3e8;if(_0x34fbe2>=_0x5383d5){_0x537a2d(_0x24a19d);return;}else{if(_0x34fbe2>=0x7530)_0x2b5a5b=0x1388;}_0x34fbe2+=_0x2b5a5b,setTimeout(_0x897eae,_0x2b5a5b);}else _0x537a2d(_0x24a19d);}}else _0x537a2d(_0x24a19d);};_0x897eae();}catch(_0xc880a7){_0x537a2d(_0xc880a7 instanceof Error?_0xc880a7:new Error(String(_0xc880a7)));}});}async['signUrl'](_0x31440d){const _0x390a81=_0x27f6be;try{const _0x9c1c71=replaceFileID(this[_0x390a81(0x23a)](),''+_0x31440d);return(await this[_0x390a81(0x289)]['get'](_0x9c1c71))[_0x390a81(0x269)];}catch(_0x5057c5){return;}}async[_0x27f6be(0x2d7)](_0x328997){const _0x367c48=_0x27f6be;try{return(await this[_0x367c48(0x289)][_0x367c48(0x2e6)](_0x328997,{'responseType':_0x367c48(0x2b6)}))[_0x367c48(0x269)];}catch(_0x4c781c){return;}}[_0x27f6be(0x266)](_0x4cf5b5,_0x1aed7d){const _0x4a4113=_0x27f6be,_0x398247=this[_0x4a4113(0x256)](_0x1aed7d);if(!_0x398247)return _0x4cf5b5;return _0x4cf5b5+':\x20'+_0x398247;}[_0x27f6be(0x22e)](_0x4f12c2,_0x53516a){const _0x34b740=_0x27f6be;if(_0x53516a instanceof HTTPResponseError){const _0x25fd6c=typeof _0x53516a[_0x34b740(0x1f8)]===_0x34b740(0x1c0)?''+_0x53516a[_0x34b740(0x1f8)]+(_0x53516a['statusText']?'\x20'+_0x53516a[_0x34b740(0x2aa)]:''):void 0x0,_0xf68a9c=this[_0x34b740(0x256)](_0x53516a[_0x34b740(0x26a)]);if(_0x25fd6c&&_0xf68a9c)return _0x4f12c2+':\x20HTTP\x20'+_0x25fd6c+_0x34b740(0x234)+_0xf68a9c;if(_0x25fd6c)return _0x4f12c2+_0x34b740(0x2b0)+_0x25fd6c;if(_0xf68a9c)return _0x4f12c2+':\x20'+_0xf68a9c;return _0x4f12c2;}const _0x586c0d=this[_0x34b740(0x256)](_0x53516a);if(!_0x586c0d)return _0x4f12c2;return _0x4f12c2+':\x20'+_0x586c0d;}['_extractErrorDetail'](_0x125f19){const _0x1d5a52=_0x27f6be;if(typeof _0x125f19===_0x1d5a52(0x257)){const _0x271a0c=_0x125f19[_0x1d5a52(0x1b4)]();return _0x271a0c[_0x1d5a52(0x24e)]>0x0?_0x271a0c:void 0x0;}if(_0x125f19 instanceof Error)return this[_0x1d5a52(0x256)](_0x125f19[_0x1d5a52(0x2c6)]);if(!_0x125f19||typeof _0x125f19!=='object'||Array[_0x1d5a52(0x239)](_0x125f19))return;const _0x2119fc=_0x125f19,_0x4b0aff=this[_0x1d5a52(0x256)](_0x2119fc[_0x1d5a52(0x2c6)]);if(_0x4b0aff)return _0x4b0aff;if(_0x2119fc[_0x1d5a52(0x26a)]&&typeof _0x2119fc[_0x1d5a52(0x26a)]==='object'&&!Array[_0x1d5a52(0x239)](_0x2119fc['error'])){const _0x2831da=this[_0x1d5a52(0x256)](_0x2119fc[_0x1d5a52(0x26a)]);if(_0x2831da)return _0x2831da;}}[_0x27f6be(0x2dc)](){const _0x316af1=_0x27f6be;var _0x364e26;const _0x3dd050=this[_0x316af1(0x291)][_0x316af1(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x364e26=_0x3dd050===null||_0x3dd050===void 0x0?void 0x0:_0x3dd050['uploadFileServerUrl'])!==null&&_0x364e26!==void 0x0?_0x364e26:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x27f6be(0x1fd)](){const _0x2c7686=_0x27f6be;var _0x47a35c;const _0x428071=this['_configService'][_0x2c7686(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x47a35c=_0x428071===null||_0x428071===void 0x0?void 0x0:_0x428071[_0x2c7686(0x2ec)])!==null&&_0x47a35c!==void 0x0?_0x47a35c:DEFAULT_EXCHANGE_IMPORT_SERVER_URL_KEY;}[_0x27f6be(0x1d1)](){const _0x178c8e=_0x27f6be;var _0x275740;const _0x11d6ae=this[_0x178c8e(0x291)][_0x178c8e(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x275740=_0x11d6ae===null||_0x11d6ae===void 0x0?void 0x0:_0x11d6ae['exportServerUrl'])!==null&&_0x275740!==void 0x0?_0x275740:DEFAULT_EXCHANGE_EXPORT_SERVER_URL_KEY;}[_0x27f6be(0x259)](){const _0x457960=_0x27f6be;var _0x531a28;const _0x7d58b2=this[_0x457960(0x291)][_0x457960(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x531a28=_0x7d58b2===null||_0x7d58b2===void 0x0?void 0x0:_0x7d58b2[_0x457960(0x247)])!==null&&_0x531a28!==void 0x0?_0x531a28:DEFAULT_EXCHANGE_GET_TASK_SERVER_URL_KEY;}[_0x27f6be(0x23a)](){const _0x5f2863=_0x27f6be;var _0x42d44f;const _0x565a23=this['_configService']['getConfig'](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x42d44f=_0x565a23===null||_0x565a23===void 0x0?void 0x0:_0x565a23[_0x5f2863(0x29d)])!==null&&_0x42d44f!==void 0x0?_0x42d44f:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x27f6be(0x228)](){const _0x5efee6=_0x27f6be;var _0x50a4af;const _0x51bee3=this[_0x5efee6(0x291)][_0x5efee6(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x50a4af=_0x51bee3===null||_0x51bee3===void 0x0?void 0x0:_0x51bee3[_0x5efee6(0x1e9)])!==null&&_0x50a4af!==void 0x0?_0x50a4af:DEFAULT_EXCHANGE_MAX_TIMEOUT_TIME_KEY;}};RequestService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],RequestService);function transformWorkbookSnapshotMetaToString(_0x1b1f0f){const _0x59797d=_0x27f6be,_0x288efb=_0x1b1f0f[_0x59797d(0x1cd)];if(!_0x288efb)return null;const _0x11c96a={};if(_0x288efb[_0x59797d(0x24d)])Object[_0x59797d(0x2c0)](_0x288efb[_0x59797d(0x24d)])[_0x59797d(0x275)](_0xec3961=>{const _0x398f87=_0x59797d,_0x38b82c=_0x288efb[_0x398f87(0x24d)][_0xec3961];_0x11c96a[_0xec3961]={..._0x38b82c,'originalMeta':b64EncodeUnicode(textDecoder[_0x398f87(0x285)](_0x38b82c[_0x398f87(0x1b9)]))};});const _0x2fe5ef=b64EncodeUnicode(textDecoder[_0x59797d(0x285)](_0x288efb[_0x59797d(0x1b9)]));return{..._0x1b1f0f,'workbook':{..._0x288efb,'originalMeta':_0x2fe5ef,'sheets':_0x11c96a},'doc':{}};}function transformDocumentSnapshotMetaToString(_0x2c1894){const _0x1b24c5=_0x27f6be,_0x2a3956=_0x2c1894['doc'];if(!_0x2a3956)return null;const _0x494d56=b64EncodeUnicode(textDecoder[_0x1b24c5(0x285)](_0x2a3956[_0x1b24c5(0x1b9)]));return{..._0x2c1894,'workbook':{},'doc':{..._0x2a3956,'originalMeta':_0x494d56}};}function transformSheetBlockMetaToString(_0xaa33c2){const _0x52442a=_0x27f6be,_0x5689bb={};return _0xaa33c2[_0x52442a(0x275)](_0x1c61b4=>{_0x5689bb[_0x1c61b4['id']]={..._0x1c61b4,'data':b64EncodeUnicode(textDecoder['decode'](_0x1c61b4['data']))};}),_0x5689bb;}async function transformWorkbookDataToSnapshotJson(_0xd78ad){const _0x868483=_0x27f6be;var _0x14ef98;const _0x82e8a6={'metadata':void 0x0},_0x4177c4=_0xd78ad['id'],_0x255f92=(_0x14ef98=_0xd78ad[_0x868483(0x24c)])!==null&&_0x14ef98!==void 0x0?_0x14ef98:0x0,_0x20b78a=new ClientSnapshotServerService(),{snapshot:_0x1de4a4}=await transformWorkbookDataToSnapshot(_0x82e8a6,_0xd78ad,_0x4177c4,_0x255f92,_0x20b78a),_0x3a968f=await getSheetBlocksFromSnapshot(_0x1de4a4,_0x20b78a),_0x1663ea=transformWorkbookSnapshotMetaToString(_0x1de4a4);if(!_0x1663ea)throw new Error(_0x868483(0x23c));return{'snapshot':_0x1663ea,'sheetBlocks':transformSheetBlockMetaToString(_0x3a968f)};}async function transformDocumentDataToSnapshotJson(_0x696511){const _0xa0a29d=_0x27f6be;var _0x417d07;const _0x788067={'metadata':void 0x0},_0x147372=_0x696511['id'],{snapshot:_0x5a0f72}=await transformDocumentDataToSnapshot(_0x788067,_0x696511,_0x147372,(_0x417d07=_0x696511['rev'])!==null&&_0x417d07!==void 0x0?_0x417d07:0x0,new ClientSnapshotServerService()),_0x35ba71=transformDocumentSnapshotMetaToString(_0x5a0f72);if(!_0x35ba71)throw new Error(_0xa0a29d(0x23c));return{'snapshot':_0x35ba71,'sheetBlocks':{}};}async function transformSnapshotJsonToWorkbookData(_0x374de8){const _0x101eb9=_0x27f6be,_0x31937a=_0x374de8[_0x101eb9(0x297)],_0x833173=_0x374de8['sheetBlocks']||{};return await transformSnapshotToWorkbookData(_0x31937a,Object[_0x101eb9(0x2c0)](_0x833173)['map'](_0x4477bc=>_0x833173[_0x4477bc])[_0x101eb9(0x2bf)](_0x4751ae=>{const _0x5498b1=_0x101eb9;return{..._0x4751ae,'data':_0x4751ae[_0x5498b1(0x2d1)]?JSON[_0x5498b1(0x1cc)](b64DecodeUnicode(_0x4751ae['data'])):void 0x0};}));}function transformSnapshotJsonToDocumentData(_0x3cf87e){const _0x4b2476=_0x27f6be,_0xe03ad0=_0x3cf87e[_0x4b2476(0x297)];return transformSnapshotToDocumentData(_0xe03ad0);}var ClientSnapshotServerService=class{constructor(){_defineProperty(this,'_sheetBlockCache',new Map());}[_0x27f6be(0x2c2)](){const _0x1bdc86=_0x27f6be;return Promise[_0x1bdc86(0x2ca)]({'snapshot':{'unitID':'','type':UniverInstanceType[_0x1bdc86(0x260)],'rev':0x0,'workbook':void 0x0,'doc':void 0x0},'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}['getSheetBlock'](_0x104312,_0x292ef9){const _0x376be1=_0x27f6be,_0x1ab5fd=this[_0x376be1(0x2d2)]['get'](_0x292ef9[_0x376be1(0x206)]);return Promise[_0x376be1(0x2ca)]({'block':_0x1ab5fd,'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1ca)](_0xdd6801,_0x255e8f){const _0x43d38e=_0x27f6be,_0x1c828c=this[_0x43d38e(0x2d2)][_0x43d38e(0x2e6)](_0x255e8f[_0x43d38e(0x206)]);return Promise[_0x43d38e(0x2ca)]({'block':_0x1c828c===void 0x0?void 0x0:{..._0x1c828c,'data':JSON[_0x43d38e(0x1cc)](textDecoder[_0x43d38e(0x285)](_0x1c828c[_0x43d38e(0x2d1)]))},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x2a7)](){const _0x4f8452=_0x27f6be;return Promise[_0x4f8452(0x2ca)]({'changesets':[],'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1df)](){return Promise['resolve']({'resources':{},'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1f7)](){return Promise['resolve']({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1fe)](){const _0x55dd43=_0x27f6be;return Promise[_0x55dd43(0x2ca)]({'error':{'code':ErrorCode['OK'],'message':''}});}[_0x27f6be(0x1b5)](_0x25f34b,_0x182881){const _0x5cddfe=_0x27f6be,{block:_0x38936b}=_0x182881;if(!_0x38936b)return Promise[_0x5cddfe(0x2ca)]({'error':{'code':ErrorCode[_0x5cddfe(0x282)],'message':_0x5cddfe(0x2e3)},'blockID':''});return this[_0x5cddfe(0x2d2)]['set'](_0x38936b['id'],_0x38936b),Promise[_0x5cddfe(0x2ca)]({'error':{'code':ErrorCode['OK'],'message':''},'blockID':_0x38936b['id']});}['saveChangeset'](){return Promise['resolve']({'error':{'code':ErrorCode['OK'],'message':''},'concurrent':[]});}[_0x27f6be(0x2f1)](){return Promise['resolve']({'error':void 0x0,'fileMetaId':''});}[_0x27f6be(0x1f0)](){const _0x402066=_0x27f6be;return Promise[_0x402066(0x2ca)]({'error':void 0x0,'latestReqID':0x0});}};let RequestState=function(_0xa46e3a){const _0x46a006=_0x27f6be;return _0xa46e3a[_0xa46e3a[_0x46a006(0x2c7)]=0x0]=_0x46a006(0x2c7),_0xa46e3a[_0xa46e3a[_0x46a006(0x2b9)]=0x1]=_0x46a006(0x2b9),_0xa46e3a[_0xa46e3a[_0x46a006(0x293)]=0x2]='EXPORT',_0xa46e3a[_0xa46e3a[_0x46a006(0x2cd)]=0x3]=_0x46a006(0x2cd),_0xa46e3a[_0xa46e3a[_0x46a006(0x1de)]=0x4]=_0x46a006(0x1de),_0xa46e3a[_0xa46e3a[_0x46a006(0x1eb)]=0x5]=_0x46a006(0x1eb),_0xa46e3a[_0xa46e3a['GET_FILE']=0x6]=_0x46a006(0x202),_0xa46e3a;}({});const IExchangeService=createIdentifier(_0x27f6be(0x2fc));let ExchangeService=class ExchangeService extends Disposable{constructor(_0x17f7c7,_0x4db3f4,_0x109d35){const _0x249dd9=_0x27f6be;super(),this['_configService']=_0x17f7c7,this['_httpService']=_0x4db3f4,this[_0x249dd9(0x1e0)]=_0x109d35,_defineProperty(this,_0x249dd9(0x2f6),null),_defineProperty(this,_0x249dd9(0x2ae),new Subject()),_defineProperty(this,_0x249dd9(0x224),this[_0x249dd9(0x2ae)][_0x249dd9(0x2c1)]());}[_0x27f6be(0x1b8)](){const _0x4f31f4=_0x27f6be;super[_0x4f31f4(0x1b8)](),this['_requestState$'][_0x4f31f4(0x2cb)]();}async[_0x27f6be(0x2c3)](_0x4a8968){const _0x1313d7=_0x27f6be,_0x456335=await this['_importToSnapshot'](_0x4a8968,UniverInstanceType[_0x1313d7(0x2ac)]);if(!_0x456335||!_0x456335['snapshot'])return;const _0x2acde5=transformSnapshotJsonToDocumentData(_0x456335);if(!_0x2acde5)return;return _0x2acde5;}async['exportDOCXByUnitId'](_0x4d918c){const _0x575f6a=_0x27f6be;return this[_0x575f6a(0x253)](_0x4d918c,ImportOutputType[_0x575f6a(0x2b7)],UniverInstanceType[_0x575f6a(0x2ac)]);}async[_0x27f6be(0x25e)](_0x5afd2d){const _0x421f87=_0x27f6be,_0x50038b=await transformDocumentDataToSnapshotJson(_0x5afd2d);return this['_exportBySnapshot'](_0x50038b,UniverInstanceType[_0x421f87(0x2ac)]);}async['importXLSXToSnapshot'](_0x10db15){const _0xe3fa55=await this['_importToSnapshot'](_0x10db15,UniverInstanceType['UNIVER_SHEET']);if(!_0xe3fa55)return;const _0x1cddd2=await transformSnapshotJsonToWorkbookData(_0xe3fa55);if(!_0x1cddd2)return;return _0x1cddd2;}async['exportXLSXByUnitId'](_0xc4e585){const _0x533cef=_0x27f6be;return this[_0x533cef(0x253)](_0xc4e585,ImportOutputType['UNIT'],UniverInstanceType[_0x533cef(0x260)]);}async[_0x27f6be(0x2b3)](_0xd7a26){const _0x5d85b0=_0x27f6be,_0x44d22c=await transformWorkbookDataToSnapshotJson(_0xd7a26);return this[_0x5d85b0(0x1c2)](_0x44d22c,UniverInstanceType['UNIVER_SHEET']);}async[_0x27f6be(0x235)](_0x435189,_0x854860){const _0x4bb792=_0x27f6be;var _0x5d2b15,_0x274c3a;const _0x56fdb8=await this[_0x4bb792(0x25c)](_0x435189);if(!_0x56fdb8)return;const _0x1ee363=await this['_import'](_0x56fdb8,ImportOutputType[_0x4bb792(0x2b7)],_0x854860);if(!_0x1ee363)return;this['_importTaskId']=_0x1ee363,this['_requestService']['clearTaskInterrupted']();const _0x4ced2d=await this[_0x4bb792(0x1e0)][_0x4bb792(0x1d0)](_0x1ee363)[_0x4bb792(0x2af)](_0x1f5241=>{const _0x15db4a=_0x4bb792;var _0xcdcbbf;const _0xb8bbb1=_0x1f5241 instanceof Error?_0x1f5241[_0x15db4a(0x2c6)]:(_0xcdcbbf=_0x1f5241['error'])===null||_0xcdcbbf===void 0x0?void 0x0:_0xcdcbbf['message'];this['_requestState$']['next']({'error':{'code':ErrorCode[_0x15db4a(0x29a)],'message':_0xb8bbb1||''},'state':RequestState[_0x15db4a(0x2cd)]});});if(!_0x4ced2d)return;const _0x30015b=(_0x5d2b15=_0x4ced2d[_0x4bb792(0x200)])===null||_0x5d2b15===void 0x0?void 0x0:_0x5d2b15[_0x4bb792(0x28a)],_0x55336=((_0x274c3a=_0x4ced2d[_0x4bb792(0x200)])===null||_0x274c3a===void 0x0?void 0x0:_0x274c3a[_0x4bb792(0x2a3)])||'';if(_0x30015b!==ImportOutputType[_0x4bb792(0x2b7)]){this[_0x4bb792(0x2ae)][_0x4bb792(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'Get\x20outputType\x20error'},'state':RequestState[_0x4bb792(0x2cd)]});return;}if(_0x55336['length']===0x0){this[_0x4bb792(0x2ae)]['next']({'error':{'code':ErrorCode[_0x4bb792(0x29a)],'message':_0x4bb792(0x2ed)},'state':RequestState['GET_TASK']});return;}return this['_requestState$'][_0x4bb792(0x2dd)]({'error':_0x4ced2d['error'],'state':RequestState[_0x4bb792(0x2cd)]}),_0x55336;}async[_0x27f6be(0x204)](_0x4bffa0){const _0x336c1a=_0x27f6be,_0x2a7513=await transformWorkbookDataToSnapshotJson(_0x4bffa0),_0x169619=typeof _0x4bffa0['id']===_0x336c1a(0x257)&&_0x4bffa0['id'][_0x336c1a(0x1b4)]()?_0x4bffa0['id']['trim']()+_0x336c1a(0x268):_0x336c1a(0x22d),_0x4aec5e=new File([JSON[_0x336c1a(0x1c7)](_0x2a7513)],_0x169619,{'type':_0x336c1a(0x220)});return this[_0x336c1a(0x235)](_0x4aec5e,UniverInstanceType[_0x336c1a(0x260)]);}[_0x27f6be(0x1d7)](){const _0xb85b68=_0x27f6be;if(this[_0xb85b68(0x2f6)])this[_0xb85b68(0x1e0)]['setTaskInterrupted'](this[_0xb85b68(0x2f6)]);}async[_0x27f6be(0x2c9)](_0x314749,_0x10fd9c){const _0x21c28e=_0x27f6be;var _0x4de708,_0x53a904;const _0x1eb3f0=await this[_0x21c28e(0x25c)](_0x314749);if(!_0x1eb3f0)return;const _0x2cd804=await this['_import'](_0x1eb3f0,ImportOutputType[_0x21c28e(0x1ce)],_0x10fd9c);if(!_0x2cd804)return;this[_0x21c28e(0x2f6)]=_0x2cd804,this[_0x21c28e(0x1e0)][_0x21c28e(0x1d9)]();const _0x2be249=await this[_0x21c28e(0x1e0)]['getTask'](_0x2cd804)[_0x21c28e(0x2af)](_0x282ee3=>{const _0x3b7e63=_0x21c28e;var _0x66df10;const _0x242194=_0x282ee3 instanceof Error?_0x282ee3[_0x3b7e63(0x2c6)]:(_0x66df10=_0x282ee3[_0x3b7e63(0x26a)])===null||_0x66df10===void 0x0?void 0x0:_0x66df10[_0x3b7e63(0x2c6)];this[_0x3b7e63(0x2ae)]['next']({'error':{'code':ErrorCode[_0x3b7e63(0x29a)],'message':_0x242194||''},'state':RequestState[_0x3b7e63(0x2cd)]});});if(!_0x2be249)return;const _0x283492=(_0x4de708=_0x2be249[_0x21c28e(0x200)])===null||_0x4de708===void 0x0?void 0x0:_0x4de708[_0x21c28e(0x28a)],_0x470373=((_0x53a904=_0x2be249[_0x21c28e(0x200)])===null||_0x53a904===void 0x0?void 0x0:_0x53a904[_0x21c28e(0x28c)])||'';if(_0x283492!==ImportOutputType['JSON']){this[_0x21c28e(0x2ae)]['next']({'error':{'code':ErrorCode[_0x21c28e(0x29a)],'message':_0x21c28e(0x245)},'state':RequestState[_0x21c28e(0x2cd)]});return;}if(_0x470373[_0x21c28e(0x24e)]===0x0){this['_requestState$'][_0x21c28e(0x2dd)]({'error':{'code':ErrorCode[_0x21c28e(0x29a)],'message':_0x21c28e(0x287)},'state':RequestState[_0x21c28e(0x2cd)]});return;}this[_0x21c28e(0x2ae)][_0x21c28e(0x2dd)]({'error':_0x2be249[_0x21c28e(0x26a)],'state':RequestState[_0x21c28e(0x2cd)]});const _0x5cd8bc=await this[_0x21c28e(0x254)](_0x470373);if(!_0x5cd8bc)return;const _0x2d44c7=await this[_0x21c28e(0x1e0)][_0x21c28e(0x2d7)](_0x5cd8bc);if(!_0x2d44c7){this[_0x21c28e(0x2ae)][_0x21c28e(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'Failed\x20to\x20get\x20text\x20from\x20url'},'state':RequestState[_0x21c28e(0x1eb)]});return;}try{const _0x414068=JSON[_0x21c28e(0x1cc)](_0x2d44c7);return this[_0x21c28e(0x2ae)][_0x21c28e(0x2dd)]({'error':{'code':ErrorCode['OK'],'message':_0x21c28e(0x1c5)},'state':RequestState['GET_JSON']}),_0x414068;}catch{this[_0x21c28e(0x2ae)]['next']({'error':{'code':ErrorCode[_0x21c28e(0x29a)],'message':_0x21c28e(0x277)},'state':RequestState[_0x21c28e(0x1eb)]});}}async['_exportBySnapshot'](_0x371239,_0x3db171){const _0x59ca4f=_0x27f6be,_0x380fba=JSON[_0x59ca4f(0x1c7)](_0x371239),_0x403173=textEncoder['encode'](_0x380fba),_0x1972d4=deflateSync(_0x403173),_0x1da6ec=_0x403173['length'],_0x1c18c2=bufferToFile(_0x1972d4),_0x196d4d=await this[_0x59ca4f(0x25c)](_0x1c18c2,_0x1da6ec,!![]);if(!_0x196d4d)return;return this[_0x59ca4f(0x253)](_0x196d4d,ImportOutputType[_0x59ca4f(0x1ce)],_0x3db171);}async[_0x27f6be(0x253)](_0x2161fc,_0x11afeb,_0x587a63){const _0x5d86e7=_0x27f6be;var _0x6b5a3d;const _0x130786=await this[_0x5d86e7(0x1e0)]['export']({'unitID':_0x11afeb===ImportOutputType[_0x5d86e7(0x2b7)]?_0x2161fc:'','jsonID':_0x11afeb===ImportOutputType[_0x5d86e7(0x1ce)]?_0x2161fc:'','type':_0x587a63,'sscSwitch':this['_getEnableServerSideComputing'](),'useImageUrl':this['_getDisableCellImageConversion'](),'ignoreTableExport':this[_0x5d86e7(0x24b)]()});if(!_0x130786){this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':'export\x20error'},'state':RequestState[_0x5d86e7(0x293)]});return;}this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':_0x130786[_0x5d86e7(0x26a)],'state':RequestState['EXPORT']});if(_0x130786['error']&&_0x130786[_0x5d86e7(0x26a)][_0x5d86e7(0x296)]!==ErrorCode['OK'])return;const _0x27510c=_0x130786['taskID'],_0x2d5770=await this['_requestService'][_0x5d86e7(0x1d0)](_0x27510c)[_0x5d86e7(0x2af)](_0x5e1a36=>{const _0x4b8c56=_0x5d86e7;var _0x213bba;const _0x35f018=_0x5e1a36 instanceof Error?_0x5e1a36[_0x4b8c56(0x2c6)]:(_0x213bba=_0x5e1a36['error'])===null||_0x213bba===void 0x0?void 0x0:_0x213bba['message'];this[_0x4b8c56(0x2ae)][_0x4b8c56(0x2dd)]({'error':{'code':ErrorCode[_0x4b8c56(0x29a)],'message':_0x35f018||''},'state':RequestState[_0x4b8c56(0x2cd)]});});if(!_0x2d5770)return;const _0x1b1311=((_0x6b5a3d=_0x2d5770['export'])===null||_0x6b5a3d===void 0x0?void 0x0:_0x6b5a3d[_0x5d86e7(0x1ef)])||'';if(_0x1b1311[_0x5d86e7(0x24e)]===0x0){this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':{'code':ErrorCode[_0x5d86e7(0x29a)],'message':_0x5d86e7(0x226)},'state':RequestState[_0x5d86e7(0x2cd)]});return;}this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':_0x2d5770[_0x5d86e7(0x26a)],'state':RequestState[_0x5d86e7(0x2cd)]});const _0x74da08=await this[_0x5d86e7(0x254)](_0x1b1311);if(!_0x74da08)return;const _0x2963c5=await getFileByURL(_0x74da08,this[_0x5d86e7(0x289)]);if(!_0x2963c5){this['_requestState$']['next']({'error':{'code':ErrorCode[_0x5d86e7(0x29a)],'message':'Failed\x20to\x20get\x20file\x20from\x20url'},'state':RequestState[_0x5d86e7(0x202)]});return;}return this[_0x5d86e7(0x2ae)][_0x5d86e7(0x2dd)]({'error':{'code':ErrorCode['OK'],'message':_0x5d86e7(0x1c5)},'state':RequestState['GET_FILE']}),_0x2963c5;}async['_upload'](_0x4e1b2e,_0x2c44fa,_0x485827){const _0x537840=_0x27f6be;let _0x57476e;try{_0x57476e=await this[_0x537840(0x1e0)][_0x537840(0x1f9)](_0x4e1b2e,_0x2c44fa,_0x485827);}catch(_0x200c1a){const _0x19dc83=_0x200c1a instanceof Error?_0x200c1a[_0x537840(0x2c6)]:String(_0x200c1a);this[_0x537840(0x2ae)][_0x537840(0x2dd)]({'error':{'code':ErrorCode[_0x537840(0x29a)],'message':_0x19dc83},'state':RequestState[_0x537840(0x2c7)]});return;}if(!_0x57476e||typeof _0x57476e[_0x537840(0x1be)]!==_0x537840(0x257)){this[_0x537840(0x2ae)][_0x537840(0x2dd)]({'error':{'code':ErrorCode[_0x537840(0x29a)],'message':_0x537840(0x1e5)},'state':RequestState[_0x537840(0x2c7)]});return;}const _0x227e30=_0x57476e['FileId'];if(_0x227e30[_0x537840(0x24e)]===0x0){this['_requestState$']['next']({'error':{'code':ErrorCode[_0x537840(0x29a)],'message':_0x537840(0x246)},'state':RequestState[_0x537840(0x2c7)]});return;}return this[_0x537840(0x2ae)]['next']({'error':{'code':ErrorCode['OK'],'message':_0x537840(0x1c5)},'state':RequestState[_0x537840(0x2c7)]}),_0x227e30;}async[_0x27f6be(0x244)](_0x1a5d08,_0x3ddaa5,_0x566366){const _0x22d97e=_0x27f6be,_0x2d2c86={'fileID':_0x1a5d08,'type':_0x566366,'outputType':_0x3ddaa5,'fileUrl':'','minSheetRowCount':this['_getMinSheetRowCount'](),'minSheetColumnCount':this[_0x22d97e(0x251)]()},_0x284f8c=await this[_0x22d97e(0x1e0)][_0x22d97e(0x200)](_0x2d2c86);if(!_0x284f8c){this[_0x22d97e(0x2ae)][_0x22d97e(0x2dd)]({'error':{'code':ErrorCode[_0x22d97e(0x29a)],'message':_0x22d97e(0x28e)},'state':RequestState[_0x22d97e(0x2b9)]});return;}if(_0x284f8c['error']&&_0x284f8c[_0x22d97e(0x26a)][_0x22d97e(0x296)]!==ErrorCode['OK']){this[_0x22d97e(0x2ae)][_0x22d97e(0x2dd)]({'error':_0x284f8c[_0x22d97e(0x26a)],'state':RequestState['IMPORT']});return;}const _0x2f885e=_0x284f8c['taskID'];if(_0x2f885e[_0x22d97e(0x24e)]===0x0){this['_requestState$'][_0x22d97e(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x22d97e(0x1d6)},'state':RequestState[_0x22d97e(0x2b9)]});return;}return this[_0x22d97e(0x2ae)][_0x22d97e(0x2dd)]({'error':_0x284f8c[_0x22d97e(0x26a)],'state':RequestState[_0x22d97e(0x2b9)]}),_0x2f885e;}async[_0x27f6be(0x254)](_0x16a538){const _0x23f355=_0x27f6be,_0x566070=await this[_0x23f355(0x1e0)][_0x23f355(0x1f5)](_0x16a538);if(!_0x566070){this[_0x23f355(0x2ae)][_0x23f355(0x2dd)]({'error':{'code':ErrorCode['UNRECOGNIZED'],'message':_0x23f355(0x225)},'state':RequestState[_0x23f355(0x1de)]});return;}if(_0x566070[_0x23f355(0x26a)]&&_0x566070[_0x23f355(0x26a)][_0x23f355(0x296)]!==ErrorCode['OK']){this[_0x23f355(0x2ae)]['next']({'error':_0x566070[_0x23f355(0x26a)],'state':RequestState[_0x23f355(0x1de)]});return;}const _0x179545=resolveWithBasePath(_0x566070['url'],this[_0x23f355(0x2e0)]());if(_0x179545[_0x23f355(0x24e)]===0x0){this['_requestState$'][_0x23f355(0x2dd)]({'error':{'code':ErrorCode[_0x23f355(0x29a)],'message':_0x23f355(0x225)},'state':RequestState[_0x23f355(0x1de)]});return;}return this[_0x23f355(0x2ae)]['next']({'error':_0x566070[_0x23f355(0x26a)],'state':RequestState[_0x23f355(0x1de)]}),_0x179545;}[_0x27f6be(0x2e0)](){const _0x10b4ef=_0x27f6be;var _0x4168a3;const _0x162473=this['_configService'][_0x10b4ef(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4168a3=_0x162473===null||_0x162473===void 0x0?void 0x0:_0x162473[_0x10b4ef(0x2d0)])!==null&&_0x4168a3!==void 0x0?_0x4168a3:location[_0x10b4ef(0x279)];}['_getMinSheetRowCount'](){const _0x4a0412=_0x27f6be;var _0x2016ca,_0x1fd3f2;const _0x44df68=this[_0x4a0412(0x291)][_0x4a0412(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2016ca=_0x44df68===null||_0x44df68===void 0x0||(_0x1fd3f2=_0x44df68[_0x4a0412(0x294)])===null||_0x1fd3f2===void 0x0?void 0x0:_0x1fd3f2[_0x4a0412(0x201)])!==null&&_0x2016ca!==void 0x0?_0x2016ca:0x1;}[_0x27f6be(0x251)](){const _0x3f65ea=_0x27f6be;var _0x215b9b,_0x443fe2;const _0x11b415=this[_0x3f65ea(0x291)][_0x3f65ea(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x215b9b=_0x11b415===null||_0x11b415===void 0x0||(_0x443fe2=_0x11b415['options'])===null||_0x443fe2===void 0x0?void 0x0:_0x443fe2['minSheetColumnCount'])!==null&&_0x215b9b!==void 0x0?_0x215b9b:0x1;}[_0x27f6be(0x2fb)](){const _0x229843=_0x27f6be;var _0x50c92a,_0x500bbb;const _0x32122d=this[_0x229843(0x291)][_0x229843(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x50c92a=_0x32122d===null||_0x32122d===void 0x0||(_0x500bbb=_0x32122d[_0x229843(0x294)])===null||_0x500bbb===void 0x0?void 0x0:_0x500bbb[_0x229843(0x214)])!==null&&_0x50c92a!==void 0x0?_0x50c92a:![];}[_0x27f6be(0x2d6)](){const _0x2c9d88=_0x27f6be;var _0x3bc598,_0x1c90fc;const _0x4abdeb=this['_configService'][_0x2c9d88(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3bc598=_0x4abdeb===null||_0x4abdeb===void 0x0||(_0x1c90fc=_0x4abdeb['options'])===null||_0x1c90fc===void 0x0?void 0x0:_0x1c90fc[_0x2c9d88(0x1fb)])!==null&&_0x3bc598!==void 0x0?_0x3bc598:!![];}[_0x27f6be(0x24b)](){const _0xefb6fe=_0x27f6be;var _0xe78c31,_0x4c3c43;const _0x3eb481=this[_0xefb6fe(0x291)][_0xefb6fe(0x20b)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY);return(_0xe78c31=_0x3eb481===null||_0x3eb481===void 0x0||(_0x4c3c43=_0x3eb481[_0xefb6fe(0x294)])===null||_0x4c3c43===void 0x0?void 0x0:_0x4c3c43[_0xefb6fe(0x221)])!==null&&_0xe78c31!==void 0x0?_0xe78c31:![];}};ExchangeService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(IRequestService))],ExchangeService);const NilProgress={'done':0x0,'count':0x0},IExchangeOperateService=createIdentifier(_0x27f6be(0x2c8));let ExchangeOperateService=class ExchangeOperateService extends Disposable{constructor(_0x6c8dd9,_0x45d153,_0x490c61,_0x58609e,_0x1ea075,_0x2dc228){const _0x442cb9=_0x27f6be;super(),this[_0x442cb9(0x26f)]=_0x6c8dd9,this['_messageService']=_0x45d153,this[_0x442cb9(0x278)]=_0x490c61,this[_0x442cb9(0x209)]=_0x58609e,this['_uploadNotificationService']=_0x1ea075,this[_0x442cb9(0x273)]=_0x2dc228,_defineProperty(this,_0x442cb9(0x2f3),new BehaviorSubject(NilProgress)),_defineProperty(this,_0x442cb9(0x2e9),this['_progress$']['asObservable']()),_defineProperty(this,_0x442cb9(0x230),0x0),_defineProperty(this,_0x442cb9(0x20e),0x0),this[_0x442cb9(0x21a)](toDisposable(this['_exchangeService'][_0x442cb9(0x224)]['subscribe'](_0x11badf=>{var _0x475763;if(((_0x475763=_0x11badf['error'])===null||_0x475763===void 0x0?void 0x0:_0x475763['code'])===ErrorCode['OK'])this['_addDoneTask'](0x1);else this['_showNetworkError'](_0x11badf['error']);})));}[_0x27f6be(0x2ce)](){const _0x3393f2=_0x27f6be;this[_0x3393f2(0x22f)](),this[_0x3393f2(0x1da)][_0x3393f2(0x23d)](UploadNotificationState['ERROR']),this[_0x3393f2(0x209)]['interruptImportTask']();}async[_0x27f6be(0x2de)](_0x2e3ffa){const _0x3c707b=_0x27f6be;throw new Error(_0x3c707b(0x203));}async[_0x27f6be(0x2d9)](){const _0x1ad0f1=_0x27f6be,_0x5f0824=await getUploadFile([UniverInstanceType[_0x1ad0f1(0x2ac)]]);if(!_0x5f0824)return;if(this[_0x1ad0f1(0x2ef)](_0x5f0824,UniverInstanceType[_0x1ad0f1(0x2ac)]))return;return this[_0x1ad0f1(0x2bb)](_0x5f0824[0x0],UniverInstanceType[_0x1ad0f1(0x2ac)]);}[_0x27f6be(0x2c3)](){throw new Error('Method\x20not\x20implemented.');}async[_0x27f6be(0x1e8)](_0x21d89d,_0x12ebe4,_0x1e3ac4){const _0x3101e4=_0x27f6be;this['_showDownloadMessage'](MessageType['Info']);const _0x3f3b40=await this['_exchangeService'][_0x3101e4(0x1e8)](_0x21d89d||this[_0x3101e4(0x2a6)]());if(!_0x3f3b40)return;downloadFile(_0x3f3b40,_0x12ebe4||this[_0x3101e4(0x23f)](_0x3f3b40),_0x3101e4(0x1f3)),this[_0x3101e4(0x28f)](MessageType['Success']);}async[_0x27f6be(0x25e)](){const _0xd02e96=_0x27f6be;this[_0xd02e96(0x28f)](MessageType[_0xd02e96(0x295)]);const _0x47b04c=await this[_0xd02e96(0x1d5)](),_0x54c327=await this['_exchangeService']['exportDOCXBySnapshot'](_0x47b04c);if(!_0x54c327)return;downloadFile(_0x54c327,this[_0xd02e96(0x23f)](_0x54c327),_0xd02e96(0x1f3)),this[_0xd02e96(0x28f)](MessageType[_0xd02e96(0x2f7)]);}async[_0x27f6be(0x271)](){const _0x2b9248=_0x27f6be;if(this['_uploadTaskNotDone']()){this['_messageService'][_0x2b9248(0x27a)]({'type':MessageType[_0x2b9248(0x227)],'content':this[_0x2b9248(0x278)]['t'](_0x2b9248(0x20f))});return;}const _0x377cf8=await getUploadFile([UniverInstanceType[_0x2b9248(0x260)]]);if(!_0x377cf8)return;if(this[_0x2b9248(0x2ef)](_0x377cf8,UniverInstanceType[_0x2b9248(0x260)]))return;return this['_importFileToUnitId'](_0x377cf8[0x0],UniverInstanceType[_0x2b9248(0x260)]);}async[_0x27f6be(0x2a1)](){const _0x2f27dc=_0x27f6be;if(this[_0x2f27dc(0x292)]()){this[_0x2f27dc(0x2a4)][_0x2f27dc(0x27a)]({'type':MessageType[_0x2f27dc(0x227)],'content':this[_0x2f27dc(0x278)]['t'](_0x2f27dc(0x20f))});return;}const _0xd45c81=await getUploadFile([UniverInstanceType['UNIVER_SHEET']]);if(!_0xd45c81)return;this['_showUploadMessage'](MessageType[_0x2f27dc(0x295)]);const _0x2df984=await this[_0x2f27dc(0x209)][_0x2f27dc(0x2a1)](_0xd45c81[0x0]);if(!_0x2df984)return;this[_0x2f27dc(0x25f)](_0x2df984),this[_0x2f27dc(0x212)](MessageType[_0x2f27dc(0x2f7)]);}async[_0x27f6be(0x1c3)](_0x3f5db6,_0x2b9406,_0x2eb6f4){const _0xa5c310=_0x27f6be;this[_0xa5c310(0x28f)](MessageType[_0xa5c310(0x295)]);const _0x45c8c6=await this[_0xa5c310(0x209)][_0xa5c310(0x1c3)](_0x3f5db6||this[_0xa5c310(0x21d)]());if(!_0x45c8c6)return;downloadFile(_0x45c8c6,_0x2b9406||this['_getUnitName'](_0x45c8c6),'xlsx'),this[_0xa5c310(0x28f)](MessageType['Success']);}async[_0x27f6be(0x2b3)](){const _0x3e95b9=_0x27f6be;this[_0x3e95b9(0x28f)](MessageType[_0x3e95b9(0x295)]);const _0x4e0cd7=await this[_0x3e95b9(0x215)](),_0x166cc3=await this[_0x3e95b9(0x209)]['exportXLSXBySnapshot'](_0x4e0cd7);if(!_0x166cc3)return;downloadFile(_0x166cc3,this[_0x3e95b9(0x23f)](_0x166cc3),_0x3e95b9(0x1f4)),this['_showDownloadMessage'](MessageType[_0x3e95b9(0x2f7)]);}[_0x27f6be(0x21f)](_0x3815ad){const _0x57d5b6=_0x27f6be;this[_0x57d5b6(0x2df)]=_0x3815ad;}async['_importFileToUnitId'](_0x5a6999,_0x429248){const _0x4981b1=_0x27f6be;this[_0x4981b1(0x1da)][_0x4981b1(0x27a)](),this[_0x4981b1(0x1da)][_0x4981b1(0x23d)](UploadNotificationState[_0x4981b1(0x222)]),this[_0x4981b1(0x2b2)](0x4),this[_0x4981b1(0x265)](0x1);const _0x2fe585=await this[_0x4981b1(0x209)]['importFileToUnitId'](_0x5a6999,_0x429248);if(!_0x2fe585){this[_0x4981b1(0x22f)](),this['_uploadNotificationService'][_0x4981b1(0x23d)](UploadNotificationState['ERROR']);return;}const _0x22c9a2={'link':this[_0x4981b1(0x2df)](_0x2fe585,_0x429248),'name':_0x5a6999[_0x4981b1(0x1ea)],'type':_0x429248};return this[_0x4981b1(0x1da)][_0x4981b1(0x27f)](_0x22c9a2),this[_0x4981b1(0x2e2)](),this[_0x4981b1(0x1da)][_0x4981b1(0x23d)](UploadNotificationState['SUCCESS']),_0x2fe585;}[_0x27f6be(0x21d)](){const _0x3769b7=_0x27f6be;return this[_0x3769b7(0x26f)][_0x3769b7(0x1dd)](UniverInstanceType[_0x3769b7(0x260)])['getUnitId']();}[_0x27f6be(0x2a6)](){const _0x15704f=_0x27f6be;return this['_univerInstanceService'][_0x15704f(0x1dd)](UniverInstanceType[_0x15704f(0x2ac)])[_0x15704f(0x2d3)]();}[_0x27f6be(0x23f)](_0x218cd6){const _0x2f82af=_0x27f6be;var _0x33aeb8;return((_0x33aeb8=this[_0x2f82af(0x26f)]['getCurrentUnitOfType'](UniverInstanceType[_0x2f82af(0x260)]))===null||_0x33aeb8===void 0x0?void 0x0:_0x33aeb8[_0x2f82af(0x1ea)])||_0x218cd6[_0x2f82af(0x1ea)]['split']('.')[_0x2f82af(0x2d8)]()||document[_0x2f82af(0x1fa)];}async[_0x27f6be(0x215)](){const _0x425d4d=_0x27f6be;return this['_univerInstanceService']['getCurrentUnitOfType'](UniverInstanceType[_0x425d4d(0x260)])['getSnapshot']();}async[_0x27f6be(0x1d5)](){const _0x258614=_0x27f6be;return this[_0x258614(0x26f)]['getCurrentUnitOfType'](UniverInstanceType[_0x258614(0x2ac)])[_0x258614(0x1ed)]();}[_0x27f6be(0x2df)](_0x4e0c7c,_0x5d3791){const _0x226f73=_0x27f6be,_0xb27df=new URL(window[_0x226f73(0x2a2)][_0x226f73(0x2c5)]);return _0xb27df[_0x226f73(0x1e6)][_0x226f73(0x2f8)](_0x226f73(0x27e),_0x4e0c7c),_0xb27df[_0x226f73(0x1e6)][_0x226f73(0x2f8)](_0x226f73(0x25a),''+_0x5d3791),_0xb27df[_0x226f73(0x1c9)]();}[_0x27f6be(0x25f)](_0x264caa){const _0x4a0dd3=_0x27f6be,_0x553e05=this[_0x4a0dd3(0x26f)]['getCurrentUnitForType'](UniverInstanceType[_0x4a0dd3(0x260)])['getUnitId']();this[_0x4a0dd3(0x26f)][_0x4a0dd3(0x2d4)](_0x553e05),this['_univerInstanceService'][_0x4a0dd3(0x276)](UniverInstanceType[_0x4a0dd3(0x260)],_0x264caa);}['_showNetworkError'](_0x70ba21){const _0x4fe124=_0x27f6be;if(_0x70ba21){const {code:_0x284b8b}=_0x70ba21;switch(_0x284b8b){case ErrorCode[_0x4fe124(0x1b7)]:this[_0x4fe124(0x2a4)][_0x4fe124(0x27a)]({'type':MessageType['Error'],'content':this[_0x4fe124(0x278)]['t'](_0x4fe124(0x1bf))});break;case ErrorCode[_0x4fe124(0x2bc)]:this['_messageService']['show']({'type':MessageType[_0x4fe124(0x29c)],'content':this[_0x4fe124(0x278)]['t'](_0x4fe124(0x2ea))});break;default:this[_0x4fe124(0x2a4)][_0x4fe124(0x27a)]({'type':MessageType[_0x4fe124(0x29c)],'content':this[_0x4fe124(0x278)]['t']('exchange.networkError')});break;}return null;}return this['_messageService'][_0x4fe124(0x27a)]({'type':MessageType[_0x4fe124(0x29c)],'content':this[_0x4fe124(0x278)]['t']('exchange.networkError')}),null;}[_0x27f6be(0x28f)](_0x45083d){const _0x3a4aa2=_0x27f6be;let _0x219287='';switch(_0x45083d){case MessageType[_0x3a4aa2(0x2f7)]:_0x219287=this[_0x3a4aa2(0x278)]['t'](_0x3a4aa2(0x1cb));break;case MessageType[_0x3a4aa2(0x295)]:_0x219287=this['_localeService']['t'](_0x3a4aa2(0x27c));break;default:break;}this[_0x3a4aa2(0x2a4)][_0x3a4aa2(0x27a)]({'type':_0x45083d,'content':_0x219287});}[_0x27f6be(0x212)](_0x29f4c4){const _0x214aae=_0x27f6be;let _0xb5c588='';switch(_0x29f4c4){case MessageType[_0x214aae(0x2f7)]:_0xb5c588=this[_0x214aae(0x278)]['t']('exchange.uploadSuccess');break;case MessageType[_0x214aae(0x295)]:_0xb5c588=this[_0x214aae(0x278)]['t'](_0x214aae(0x20f));break;default:break;}this[_0x214aae(0x2a4)][_0x214aae(0x27a)]({'type':_0x29f4c4,'content':_0xb5c588});}[_0x27f6be(0x21c)](){const _0x5601e3=_0x27f6be;this['_progress$'][_0x5601e3(0x2dd)]({'done':this[_0x5601e3(0x20e)],'count':this[_0x5601e3(0x230)]});}[_0x27f6be(0x2b2)](_0x5282b3){const _0x3bfb45=_0x27f6be;this['_totalUploadTaskCount']+=_0x5282b3,this[_0x3bfb45(0x21c)]();}[_0x27f6be(0x265)](_0x316711){const _0x5e8c90=_0x27f6be;this['_doneUploadTaskCount']+=_0x316711,this['_doneUploadTaskCount']=Math[_0x5e8c90(0x1bc)](this[_0x5e8c90(0x20e)],this[_0x5e8c90(0x230)]),this[_0x5e8c90(0x21c)]();}[_0x27f6be(0x2e2)](){const _0x135ce1=_0x27f6be;this['_doneUploadTaskCount']=this[_0x135ce1(0x230)],this[_0x135ce1(0x21c)]();}[_0x27f6be(0x22f)](){const _0x583c4a=_0x27f6be;this[_0x583c4a(0x20e)]=0x0,this[_0x583c4a(0x230)]=0x0,this[_0x583c4a(0x21c)]();}['_fileTypeError'](_0x1f3d02,_0x478a38){const _0x3e4bf1=_0x27f6be,_0x5c709c=_0x1f3d02[0x0],_0x4662c2=_0x5c709c[_0x3e4bf1(0x1ea)];if(getUniverInstanceTypeByFile(_0x5c709c)!==_0x478a38)return this['_messageService'][_0x3e4bf1(0x27a)]({'type':MessageType['Error'],'content':this[_0x3e4bf1(0x278)]['t'](_0x3e4bf1(0x2cf),_0x4662c2)}),!![];return![];}[_0x27f6be(0x292)](){const _0x4eb32e=_0x27f6be;return this[_0x4eb32e(0x230)]!==0x0&&this[_0x4eb32e(0x20e)]!==this['_totalUploadTaskCount'];}};ExchangeOperateService=__decorate([__decorateParam(0x0,Inject(IUniverInstanceService)),__decorateParam(0x1,IMessageService),__decorateParam(0x2,Inject(LocaleService)),__decorateParam(0x3,Inject(IExchangeService)),__decorateParam(0x4,Inject(IUploadNotificationService)),__decorateParam(0x5,ILogService)],ExchangeOperateService);function UploadButton(_0x346f6c){const _0x454817=_0x27f6be,{onClick:_0x4e32b9,children:_0x13bc91,className:_0xb13ee2}=_0x346f6c;return jsx('button',{'className':clsx(_0x454817(0x241),_0xb13ee2),'type':_0x454817(0x286),'onClick':_0x4e32b9,'children':_0x13bc91});}function UploadAgain(){const _0x357820=_0x27f6be,_0x4498a3=useDependency(IExchangeOperateService),_0x4ceb95=useDependency(LocaleService);function _0xea986d(){_0x4498a3['importXLSXToUnitId']();}return jsx(UploadButton,{'onClick':_0xea986d,'children':_0x4ceb95['t'](_0x357820(0x274))});}function UploadError(){const _0x24b0f1=_0x27f6be;return jsxs('div',{'className':_0x24b0f1(0x1ba),'children':[jsx('span',{'className':_0x24b0f1(0x2a8),'children':useDependency(LocaleService)['t'](_0x24b0f1(0x205))}),jsx(UploadAgain,{})]});}function UploadSuccess(_0xd3e444){const _0x2abd34=_0x27f6be,{count:_0x18946c}=_0xd3e444;return jsxs(_0x2abd34(0x22c),{'className':_0x2abd34(0x1d3),'children':[jsx(_0x2abd34(0x29e),{'className':_0x2abd34(0x1c8),'children':useDependency(LocaleService)['t'](_0x2abd34(0x2f4),''+_0x18946c)}),jsx(UploadAgain,{})]});}function UploadCancel(){const _0x42c1a3=useDependency(IExchangeOperateService),_0x9fc53=useDependency(LocaleService);function _0x3ed4bc(){const _0x36d340=_0x41e1;_0x42c1a3[_0x36d340(0x2ce)]();}return jsx(UploadButton,{'onClick':_0x3ed4bc,'children':_0x9fc53['t']('exchange.cancel')});}function UploadProgress(){const _0xf9830a=_0x27f6be,{count:_0x4057e0,done:_0x4aace7}=useObservable(useDependency(IExchangeOperateService)[_0xf9830a(0x2e9)]),[_0x2f263e,_0x5acdad]=useState(_0x4057e0>0x0?_0x4aace7/_0x4057e0:0x0);return useEffect(()=>{_0x5acdad(_0x4057e0>0x0?_0x4aace7/_0x4057e0:0x0);},[_0x4057e0,_0x4aace7]),jsx(_0xf9830a(0x22c),{'className':_0xf9830a(0x1f6),'children':jsx(_0xf9830a(0x22c),{'className':'univer-h-1.5\x20univer-rounded-lg\x20univer-bg-primary-600\x20univer-transition-[width]\x20univer-duration-500','style':{'width':Math[_0xf9830a(0x21b)](_0x2f263e*0x64)+'%'}})});}function Uploading(){const _0x3bcc83=_0x27f6be;return jsxs(_0x3bcc83(0x22c),{'className':_0x3bcc83(0x1ba),'children':[jsx(_0x3bcc83(0x29e),{'className':'univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','children':useDependency(LocaleService)['t']('exchange.wait')}),jsx(_0x3bcc83(0x22c),{'className':_0x3bcc83(0x267),'children':jsx(UploadProgress,{})}),jsx(UploadCancel,{})]});}function _0x2f72(){const _0x5d253f=['_getEnableServerSideComputing','univer-pro.exchange-client.exchange.service','style','getOwnPropertyDescriptor','file.json','createObjectURL','/universer-api/stream/file/upload','trim','saveSheetBlock','UNIVER_UNKNOWN','CONNECTOR_DATA_TOO_LARGE','dispose','originalMeta','univer-mt-5\x20univer-flex\x20univer-flex-col','_state$','min','application/vnd.ms-excel.sheet.macroEnabled.12','FileId','exchange.tooLarge','number','_injector','_exportBySnapshot','exportXLSXByUnitId','HttpImport','success','noreferrer','stringify','univer-text-sm\x20univer-text-gray-500','toString','getDeserializedSheetBlock','exchange.downloadSuccess','parse','workbook','JSON','download','getTask','_getExportURL','version','univer-mt-3\x20univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-2\x20univer-pr-1','4305484XsLGJV','_getUnitDocJson','Failed\x20to\x20get\x20taskID\x20from\x20import\x20response','interruptImportTask','_taskInterrupted','clearTaskInterrupted','_uploadNotificationService','&flate=','toPrimitive','getCurrentUnitOfType','SIGN_URL','getResourcesRequest','_requestService','univer-flex\x20univer-h-5\x20univer-text-xl','univer-ml-1\x20univer-truncate\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','object','_visible$','upload\x20failed:\x20missing\x20FileId\x20in\x20response','searchParams','append','exportDOCXByUnitId','maxTimeoutTime','name','GET_JSON','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSnapshot','univer-pro.exchange-client.upload-notification.service','fileID','getLatestCsReqIdBySid','default','5082170UmkVyS','docx','xlsx','signUrl','univer-mx-0\x20univer-mb-3\x20univer-mt-4\x20univer-h-1.5\x20univer-w-[324px]\x20univer-rounded-lg\x20univer-bg-gray-200','saveSnapshot','status','upload','title','disableCellImageConversion','univer-flex\x20univer-w-[calc(100%-48px)]\x20univer-items-center','_getImportURL','updateSnapshot','upload\x20request\x20failed:\x20failed\x20to\x20read\x20source\x20file\x20from\x20url','import','minSheetRowCount','GET_FILE','Method\x20not\x20implemented.','importWorkbookDataToUnitId','exchange.interrupt','blockID','univer-text-green-500','setConfig','_exchangeService','UNIVER_EXCHANGE_CLIENT_PLUGIN','getConfig','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','has','_doneUploadTaskCount','exchange.uploading','univer-h-6\x20univer-text-2xl','replace','_showUploadMessage','filter','enableServerSideComputing','_getUnitJson','application/vnd.openxmlformats-officedocument.presentationml.presentation','No\x20file\x20selected','pluginName','values','disposeWithMe','floor','_emitProgress','_getUnitID','file','registerLink','application/json','ignoreTableExport','UPLOADING','match','requestState$','sign\x20url\x20error','Failed\x20to\x20get\x20fileID\x20from\x20task','Warning','_getMaxPollingTime','subscribe','hide','pptx','div','workbook.json','_buildHttpErrorMessage','_clearProgress','_totalUploadTaskCount','unsubscribe','pop','_blank','\x20-\x20','importFileToUnitId','function','clear','_config','isArray','_getSignURL','display','Failed\x20to\x20transform\x20snapshot\x20to\x20string','updateState','_list$','_getUnitName','univer-m-0\x20univer-flex\x20univer-list-none\x20univer-flex-col\x20univer-gap-2\x20univer-p-0','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','2103842ZNGvGV','toLowerCase','_import','Get\x20outputType\x20error','upload\x20failed:\x20FileId\x20is\x20empty','getTaskServerUrl','size','745039bjhhwd','appendChild','_getIgnoreTableExport','rev','sheets','length','decorate','join','_getMinSheetColumnCount','currentTarget','_export','_signUrl','includes','_extractErrorDetail','string','content-disposition','_getTaskURL','type','split','_upload','files','exportDOCXBySnapshot','_refresh','UNIVER_SHEET','17965KFlZLw','call','{fileID}','{taskID}','_addDoneTask','_buildProtocolErrorMessage','univer-pl-2\x20univer-pr-4','.json','body','error','xlsm','click','_list','application/vnd.openxmlformats-officedocument.wordprocessingml.document','_univerInstanceService','/universer-api/exchange/task/{taskID}','importXLSXToUnitId','CONTENT','_logService','exchange.uploadAgain','forEach','createUnit','Failed\x20to\x20parse\x20json','_localeService','origin','show','setTaskInterrupted','exchange.downloading','buffer','unit','pushLink','removeChild','univer-text-blue-500','UNDEFINED','_registerComponents','defineProperty','decode','button','Failed\x20to\x20get\x20jsonID\x20from\x20task','exchange-client.config','_httpService','outputType','UNIVER_PROJECT','jsonID','pathname','import\x20error','_showDownloadMessage','visible$','_configService','_uploadTaskNotDone','EXPORT','options','Info','code','snapshot','createElement','add','UNRECOGNIZED','3BIqmjv','Error','signUrlServerUrl','span','univer-ml-1.5\x20univer-font-semibold\x20univer-leading-6\x20univer-text-gray-900\x20dark:!univer-text-white','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-py-0\x20univer-pl-1.5\x20univer-pr-2','importXLSXToSnapshot','location','unitID','_messageService','xltx','_getUnitIDDoc','fetchMissingChangesets','univer-mb-3\x20univer-py-0\x20univer-pl-2\x20univer-pr-4\x20univer-text-sm\x20univer-text-gray-900\x20dark:!univer-text-white','1950pftMVu','statusText','addEventListener','UNIVER_DOC','multiple','_requestState$','catch',':\x20HTTP\x20','headers','_addTotalCount','exportXLSXBySnapshot','0.21.1','upload\x20request\x20failed','text','UNIT','_uiPartsService','IMPORT','6762714LsTvES','_importFileToUnitId','INTERNAL_ERROR','9738928tNbdeR','/universer-api/exchange/{type}/import','map','keys','asObservable','getUnitOnRev','importDOCXToSnapshot','blob','href','message','UPLOAD','univer-pro.exchange-client.operate.service','_importToSnapshot','resolve','complete','exchange.unknownMistake','GET_TASK','interrupt','exchange.fileTypeError','downloadEndpointUrl','data','_sheetBlockCache','getUnitId','disposeUnit','file.','_getDisableCellImageConversion','getTextFromUrl','shift','importDOCXToUnitId','univer-pro.exchange-client.request.service','exchange.uploadSuccess','_getUploadFileURL','next','uploadFileToUnitId','_getLinkByUnitId','_getDownloadEndpointURL','ERROR','_completeProgress','block\x20is\x20required','univer-mt-5\x20univer-max-h-72\x20univer-overflow-y-auto\x20univer-overflow-x-hidden','post','get','iterator','18fJjMUi','progress$','exchange.internalError','SUCCESS','importServerUrl','Failed\x20to\x20get\x20unitID\x20from\x20task','application/octet-stream','_fileTypeError','symbol','copyFileMeta','change','_progress$','exchange.uploadSuccessTip','none','_importTaskId','Success','set','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','accept'];_0x2f72=function(){return _0x5d253f;};return _0x2f72();}const iconMap={[UploadNotificationState[_0x27f6be(0x2eb)]]:jsx(SuccessIcon,{'className':_0x27f6be(0x207)}),[UploadNotificationState[_0x27f6be(0x222)]]:jsx(ClockIcon,{'className':_0x27f6be(0x281)}),[UploadNotificationState[_0x27f6be(0x2e1)]]:jsx(ErrorIcon,{'className':'univer-text-red-500'})};function UploadNotification(){const _0x14c3c4=_0x27f6be,[_0x49ea31,_0x37a83f]=useState(UploadNotificationState[_0x14c3c4(0x222)]),[_0x186b14,_0x1d4555]=useState(![]),[_0x3d8e2c,_0xa0917e]=useState([]),_0x589284=useDependency(IUploadNotificationService),_0x1fc83b=useDependency(LocaleService);useEffect(()=>{const _0x575791=_0x14c3c4,_0x246d80=_0x589284[_0x575791(0x290)][_0x575791(0x229)](_0x29045e=>{_0x1d4555(_0x29045e);}),_0x1bf7b4=_0x589284['list$']['subscribe'](_0x36282e=>{_0xa0917e(_0x36282e);}),_0x180c09=_0x589284['state$']['subscribe'](_0x43957e=>{_0x37a83f(_0x43957e);});return()=>{const _0x2705c8=_0x575791;_0x246d80['unsubscribe'](),_0x1bf7b4['unsubscribe'](),_0x180c09[_0x2705c8(0x231)]();};},[]);function _0x5c2ae2(){_0x1d4555(![]);}function _0x5591cc(_0x1bb1c9){const _0x392d6d=_0x14c3c4;switch(_0x1bb1c9){case UploadNotificationState[_0x392d6d(0x2eb)]:return _0x1fc83b['t'](_0x392d6d(0x2db));case UploadNotificationState[_0x392d6d(0x222)]:return _0x1fc83b['t'](_0x392d6d(0x20f));case UploadNotificationState[_0x392d6d(0x2e1)]:return _0x1fc83b['t'](_0x392d6d(0x2cc));default:return'';}}return _0x186b14&&jsxs(_0x14c3c4(0x22c),{'className':'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','children':[jsxs(_0x14c3c4(0x22c),{'className':_0x14c3c4(0x2a0),'children':[jsxs(_0x14c3c4(0x29e),{'className':'univer-flex','children':[jsx(_0x14c3c4(0x29e),{'className':_0x14c3c4(0x210),'children':iconMap[_0x49ea31]}),jsx(_0x14c3c4(0x29e),{'className':_0x14c3c4(0x29f),'children':_0x5591cc(_0x49ea31)})]}),jsx(_0x14c3c4(0x29e),{'className':_0x14c3c4(0x2f9),'onClick':_0x5c2ae2,'children':jsx(CloseIcon,{})})]}),jsxs(_0x14c3c4(0x22c),{'children':[_0x49ea31===UploadNotificationState['UPLOADING']&&jsx(Uploading,{}),_0x49ea31===UploadNotificationState[_0x14c3c4(0x2e1)]&&jsx(UploadError,{}),_0x3d8e2c[_0x14c3c4(0x24e)]>0x0&&jsx(LinkList,{'list':_0x3d8e2c}),_0x49ea31===UploadNotificationState[_0x14c3c4(0x2eb)]&&jsx(UploadSuccess,{'count':_0x3d8e2c['length']})]})]});}function UploadNotificationContainer(){return jsx(UploadNotification,{});}let ExchangeClientController=class ExchangeClientController extends Disposable{constructor(_0x17bba5,_0x464ad9){const _0x362bb4=_0x27f6be;super(),this[_0x362bb4(0x1c1)]=_0x17bba5,this['_uiPartsService']=_0x464ad9,this[_0x362bb4(0x283)]();}['_registerComponents'](){const _0x5128fe=_0x27f6be;this[_0x5128fe(0x21a)](this[_0x5128fe(0x2b8)]['registerComponent'](BuiltInUIPart[_0x5128fe(0x272)],()=>connectInjector(UploadNotificationContainer,this[_0x5128fe(0x1c1)])));}};ExchangeClientController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUIPartsService)],ExchangeClientController);let UniverExchangeClientPlugin=class UniverExchangeClientPlugin extends Plugin{constructor(_0x14a507=defaultPluginConfig,_0x48b232,_0x443f4f){const _0x53c1bd=_0x27f6be;super(),this[_0x53c1bd(0x238)]=_0x14a507,this[_0x53c1bd(0x1c1)]=_0x48b232,this[_0x53c1bd(0x291)]=_0x443f4f;const {..._0x274d04}=merge({},defaultPluginConfig,this[_0x53c1bd(0x238)]);this[_0x53c1bd(0x291)][_0x53c1bd(0x208)](EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,_0x274d04);}['onStarting'](){registerDependencies(this['_injector'],[[ExchangeClientController],[IExchangeOperateService,{'useClass':ExchangeOperateService}],[IExchangeService,{'useClass':ExchangeService}],[IRequestService,{'useClass':RequestService}],[IUploadNotificationService,{'useClass':UploadNotificationService}]]);}['onReady'](){const _0x5ccea0=_0x27f6be;touchDependencies(this[_0x5ccea0(0x1c1)],[[ExchangeClientController],[IExchangeOperateService]]);}};_defineProperty(UniverExchangeClientPlugin,_0x27f6be(0x218),_0x27f6be(0x20a)),_defineProperty(UniverExchangeClientPlugin,'packageName',name),_defineProperty(UniverExchangeClientPlugin,_0x27f6be(0x1d2),version),UniverExchangeClientPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverExchangeClientPlugin);export{EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY,ExchangeOperateService,ExchangeService,IExchangeOperateService,IExchangeService,IRequestService,IUploadNotificationService,RequestService,UniverExchangeClientPlugin,UploadNotificationContainer,UploadNotificationService,UploadNotificationState,downloadFile,getUniverInstanceTypeByFile,getUploadFile,transformDocumentDataToSnapshotJson,transformSnapshotJsonToDocumentData,transformSnapshotJsonToWorkbookData,transformWorkbookDataToSnapshotJson};
@@ -1 +1 @@
1
- const _0x23123d=_0x5b3c;function _0x38f6(){const _0x202c1a=['2495FOVISJ','Upload\x20again','Network\x20error','Unknown\x20mistake','225288xkgSrI','306045lOEtie','70XRkOzz','Internal\x20unknown\x20error','{0}\x20file(s)\x20uploaded\x20successfully','1383548fHBKSH','Save\x20As','Please\x20wait...','3512epQlJK','5290158sKHmNy','Downloading','8068023IHNDgW','758984TBHqaN'];_0x38f6=function(){return _0x202c1a;};return _0x38f6();}(function(_0x6a8737,_0x27cd88){const _0x23c9c8=_0x5b3c,_0x29a041=_0x6a8737();while(!![]){try{const _0x22cb80=-parseInt(_0x23c9c8(0x124))/0x1+-parseInt(_0x23c9c8(0x128))/0x2+parseInt(_0x23c9c8(0x123))/0x3+parseInt(_0x23c9c8(0x12b))/0x4*(parseInt(_0x23c9c8(0x11f))/0x5)+-parseInt(_0x23c9c8(0x12c))/0x6+-parseInt(_0x23c9c8(0x125))/0x7*(-parseInt(_0x23c9c8(0x11e))/0x8)+parseInt(_0x23c9c8(0x11d))/0x9;if(_0x22cb80===_0x27cd88)break;else _0x29a041['push'](_0x29a041['shift']());}catch(_0x455156){_0x29a041['push'](_0x29a041['shift']());}}}(_0x38f6,0x74ea3));const locale$1={'exchange':{'file':'File','upload':'Open(File)','download':_0x23123d(0x129),'uploading':'Uploading','uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x23123d(0x127),'downloading':_0x23123d(0x11c),'downloadSuccess':'Download\x20success','unknownMistake':_0x23123d(0x122),'networkError':_0x23123d(0x121),'tooLarge':'Data\x20is\x20too\x20large','internalError':_0x23123d(0x126),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':_0x23123d(0x12a),'cancel':'Cancel','uploadAgain':_0x23123d(0x120)}},locale=locale$1;function _0x5b3c(_0x4a80bc,_0x2d58f6){_0x4a80bc=_0x4a80bc-0x11c;const _0x38f63f=_0x38f6();let _0x5b3c43=_0x38f63f[_0x4a80bc];return _0x5b3c43;}export{locale as default};
1
+ const _0x330e36=_0x5a34;function _0x380b(){const _0x4ae13b=['Open(File)','Upload\x20again','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','882JqjktM','326898PAYZdE','File\x20uploaded\x20successfully','15TyyMID','560632WujayH','Cancel','{0}\x20file(s)\x20uploaded\x20successfully','4mBOKdv','115944jncziO','13181322MCsXCx','329fOMNAy','114030HRMGvA','Internal\x20unknown\x20error','Downloading','5otCbLB','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','5771028bFONMX','Download\x20success','Save\x20As','27552132tMUJKq'];_0x380b=function(){return _0x4ae13b;};return _0x380b();}function _0x5a34(_0x25358c,_0x54ae95){_0x25358c=_0x25358c-0x1a1;const _0x380be9=_0x380b();let _0x5a34aa=_0x380be9[_0x25358c];return _0x5a34aa;}(function(_0x3439fd,_0x5eb9b8){const _0x5788a0=_0x5a34,_0x4d3d5d=_0x3439fd();while(!![]){try{const _0x4f13df=parseInt(_0x5788a0(0x1a4))/0x1*(parseInt(_0x5788a0(0x1aa))/0x2)+-parseInt(_0x5788a0(0x1a6))/0x3*(-parseInt(_0x5788a0(0x1a7))/0x4)+parseInt(_0x5788a0(0x1b1))/0x5*(parseInt(_0x5788a0(0x1b3))/0x6)+parseInt(_0x5788a0(0x1ad))/0x7*(parseInt(_0x5788a0(0x1ab))/0x8)+-parseInt(_0x5788a0(0x1a3))/0x9*(-parseInt(_0x5788a0(0x1ae))/0xa)+-parseInt(_0x5788a0(0x1ac))/0xb+-parseInt(_0x5788a0(0x1b6))/0xc;if(_0x4f13df===_0x5eb9b8)break;else _0x4d3d5d['push'](_0x4d3d5d['shift']());}catch(_0x3ecc40){_0x4d3d5d['push'](_0x4d3d5d['shift']());}}}(_0x380b,0x978e8));const locale$1={'exchange':{'file':'File','upload':_0x330e36(0x1b7),'download':_0x330e36(0x1b5),'uploading':'Uploading','uploadSuccess':_0x330e36(0x1a5),'uploadSuccessTip':_0x330e36(0x1a9),'downloading':_0x330e36(0x1b0),'downloadSuccess':_0x330e36(0x1b4),'unknownMistake':'Unknown\x20mistake','networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':_0x330e36(0x1af),'interrupt':_0x330e36(0x1a2),'fileTypeError':_0x330e36(0x1b2),'wait':'Please\x20wait...','cancel':_0x330e36(0x1a8),'uploadAgain':_0x330e36(0x1a1)}},locale=locale$1;export{locale as default};
@@ -1 +1 @@
1
- function _0x4537(_0x412ae4,_0x39ba2d){_0x412ae4=_0x412ae4-0x10e;const _0x40fc86=_0x40fc();let _0x45370a=_0x40fc86[_0x412ae4];return _0x45370a;}const _0x5e8888=_0x4537;(function(_0x6fc0a5,_0x4f7fdb){const _0x3e58d1=_0x4537,_0x491990=_0x6fc0a5();while(!![]){try{const _0x31d408=-parseInt(_0x3e58d1(0x124))/0x1*(parseInt(_0x3e58d1(0x11e))/0x2)+parseInt(_0x3e58d1(0x117))/0x3+parseInt(_0x3e58d1(0x121))/0x4*(parseInt(_0x3e58d1(0x11c))/0x5)+-parseInt(_0x3e58d1(0x110))/0x6+parseInt(_0x3e58d1(0x113))/0x7+parseInt(_0x3e58d1(0x126))/0x8*(-parseInt(_0x3e58d1(0x123))/0x9)+parseInt(_0x3e58d1(0x119))/0xa*(-parseInt(_0x3e58d1(0x10f))/0xb);if(_0x31d408===_0x4f7fdb)break;else _0x491990['push'](_0x491990['shift']());}catch(_0x32252c){_0x491990['push'](_0x491990['shift']());}}}(_0x40fc,0x1d039));const locale={'exchange':{'file':_0x5e8888(0x115),'upload':_0x5e8888(0x116),'download':_0x5e8888(0x125),'uploading':_0x5e8888(0x11f),'uploadSuccess':_0x5e8888(0x122),'uploadSuccessTip':_0x5e8888(0x120),'downloading':'Downloading','downloadSuccess':'Download\x20success','unknownMistake':_0x5e8888(0x112),'networkError':_0x5e8888(0x11a),'tooLarge':_0x5e8888(0x11d),'internalError':_0x5e8888(0x10e),'interrupt':_0x5e8888(0x118),'fileTypeError':_0x5e8888(0x114),'wait':_0x5e8888(0x111),'cancel':_0x5e8888(0x11b),'uploadAgain':'Upload\x20again'}};function _0x40fc(){const _0x3f154c=['Unknown\x20mistake','1028573fhERnN','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','File','Open(File)','558108ddcJef','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','50Silced','Network\x20error','Cancel','27605INRsGS','Data\x20is\x20too\x20large','56QarVai','Uploading','{0}\x20file(s)\x20uploaded\x20successfully','92sQvBvB','File\x20uploaded\x20successfully','805041lKHOgZ','823PiybZF','Save\x20As','8wUzDxD','Internal\x20unknown\x20error','168289tNknyP','912774EJsjLd','Please\x20wait...'];_0x40fc=function(){return _0x3f154c;};return _0x40fc();}export{locale as default};
1
+ const _0x1fbd7c=_0x4f7c;function _0x4f7c(_0x1fda84,_0x16dfea){_0x1fda84=_0x1fda84-0x99;const _0x4d312c=_0x4d31();let _0x4f7cd3=_0x4d312c[_0x1fda84];return _0x4f7cd3;}(function(_0x28c358,_0x295167){const _0x4d4b22=_0x4f7c,_0x51d134=_0x28c358();while(!![]){try{const _0x538561=-parseInt(_0x4d4b22(0xac))/0x1*(parseInt(_0x4d4b22(0xa0))/0x2)+-parseInt(_0x4d4b22(0x9d))/0x3*(parseInt(_0x4d4b22(0xa6))/0x4)+-parseInt(_0x4d4b22(0xab))/0x5+-parseInt(_0x4d4b22(0x9a))/0x6+-parseInt(_0x4d4b22(0x9e))/0x7*(-parseInt(_0x4d4b22(0xa7))/0x8)+-parseInt(_0x4d4b22(0xa2))/0x9+parseInt(_0x4d4b22(0xae))/0xa;if(_0x538561===_0x295167)break;else _0x51d134['push'](_0x51d134['shift']());}catch(_0x2d34b0){_0x51d134['push'](_0x51d134['shift']());}}}(_0x4d31,0xb8a29));const locale={'exchange':{'file':_0x1fbd7c(0xa1),'upload':'Open(File)','download':'Save\x20As','uploading':_0x1fbd7c(0x9f),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x1fbd7c(0x99),'downloading':_0x1fbd7c(0xa3),'downloadSuccess':'Download\x20success','unknownMistake':_0x1fbd7c(0xaa),'networkError':_0x1fbd7c(0xa5),'tooLarge':_0x1fbd7c(0xa4),'internalError':_0x1fbd7c(0xa8),'interrupt':_0x1fbd7c(0x9c),'fileTypeError':_0x1fbd7c(0xa9),'wait':_0x1fbd7c(0x9b),'cancel':'Cancel','uploadAgain':_0x1fbd7c(0xad)}};function _0x4d31(){const _0x175b5b=['8402412DyevHf','Please\x20wait...','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','1544745wnazEe','224CHVUKJ','Uploading','48154yFXmSn','File','3852405YnftBz','Downloading','Data\x20is\x20too\x20large','Network\x20error','4miWBIc','132536SCAQlJ','Internal\x20unknown\x20error','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','Unknown\x20mistake','3843275BpYHRt','55wqWafE','Upload\x20again','46623730PFgEQr','{0}\x20file(s)\x20uploaded\x20successfully'];_0x4d31=function(){return _0x175b5b;};return _0x4d31();}export{locale as default};
@@ -1 +1 @@
1
- const _0x2cf491=_0x3b34;function _0x3b34(_0x53807c,_0x26d9e8){_0x53807c=_0x53807c-0x135;const _0x4b0007=_0x4b00();let _0x3b3432=_0x4b0007[_0x53807c];return _0x3b3432;}function _0x4b00(){const _0x96ff75=['Save\x20As','43884vzaJzM','Network\x20error','Upload\x20again','11vHMDnF','Unknown\x20mistake','Download\x20success','4645aoIXcZ','Please\x20wait...','Downloading','Data\x20is\x20too\x20large','5260064PPzFMA','202468qDTQQb','Uploading','Cancel','File\x20uploaded\x20successfully','636lVlfOt','{0}\x20file(s)\x20uploaded\x20successfully','120pYiZiv','628ErRMNN','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','300922qExTgI','Internal\x20unknown\x20error','2810clRFjr','1918365zOfnnp','231935auXhNP','File'];_0x4b00=function(){return _0x96ff75;};return _0x4b00();}(function(_0x50e20f,_0x59a9e4){const _0x4da620=_0x3b34,_0x1f1133=_0x50e20f();while(!![]){try{const _0x1ee840=parseInt(_0x4da620(0x147))/0x1*(parseInt(_0x4da620(0x13d))/0x2)+-parseInt(_0x4da620(0x140))/0x3+-parseInt(_0x4da620(0x13b))/0x4*(-parseInt(_0x4da620(0x14a))/0x5)+parseInt(_0x4da620(0x13a))/0x6*(parseInt(_0x4da620(0x14f))/0x7)+-parseInt(_0x4da620(0x14e))/0x8+parseInt(_0x4da620(0x144))/0x9*(-parseInt(_0x4da620(0x13f))/0xa)+-parseInt(_0x4da620(0x141))/0xb*(-parseInt(_0x4da620(0x138))/0xc);if(_0x1ee840===_0x59a9e4)break;else _0x1f1133['push'](_0x1f1133['shift']());}catch(_0x368b18){_0x1f1133['push'](_0x1f1133['shift']());}}}(_0x4b00,0xca95e));const locale$1={'exchange':{'file':_0x2cf491(0x142),'upload':'Open(File)','download':_0x2cf491(0x143),'uploading':_0x2cf491(0x135),'uploadSuccess':_0x2cf491(0x137),'uploadSuccessTip':_0x2cf491(0x139),'downloading':_0x2cf491(0x14c),'downloadSuccess':_0x2cf491(0x149),'unknownMistake':_0x2cf491(0x148),'networkError':_0x2cf491(0x145),'tooLarge':_0x2cf491(0x14d),'internalError':_0x2cf491(0x13e),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','fileTypeError':_0x2cf491(0x13c),'wait':_0x2cf491(0x14b),'cancel':_0x2cf491(0x136),'uploadAgain':_0x2cf491(0x146)}},locale=locale$1;export{locale as default};
1
+ function _0x4500(_0x23551d,_0x121a04){_0x23551d=_0x23551d-0x167;const _0x142b55=_0x142b();let _0x45000a=_0x142b55[_0x23551d];return _0x45000a;}const _0x30c394=_0x4500;(function(_0x25bb9d,_0x531458){const _0x339ccf=_0x4500,_0x2eca49=_0x25bb9d();while(!![]){try{const _0xf0ed0b=-parseInt(_0x339ccf(0x167))/0x1+parseInt(_0x339ccf(0x169))/0x2+parseInt(_0x339ccf(0x174))/0x3+-parseInt(_0x339ccf(0x171))/0x4+-parseInt(_0x339ccf(0x176))/0x5*(parseInt(_0x339ccf(0x16a))/0x6)+parseInt(_0x339ccf(0x177))/0x7+parseInt(_0x339ccf(0x170))/0x8;if(_0xf0ed0b===_0x531458)break;else _0x2eca49['push'](_0x2eca49['shift']());}catch(_0x4cc78e){_0x2eca49['push'](_0x2eca49['shift']());}}}(_0x142b,0x868cd));const locale$1={'exchange':{'file':_0x30c394(0x16d),'upload':_0x30c394(0x16e),'download':'Save\x20As','uploading':_0x30c394(0x175),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x30c394(0x16b),'downloading':_0x30c394(0x172),'downloadSuccess':'Download\x20success','unknownMistake':_0x30c394(0x16f),'networkError':'Network\x20error','tooLarge':_0x30c394(0x178),'internalError':_0x30c394(0x16c),'interrupt':_0x30c394(0x173),'fileTypeError':'Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','wait':'Please\x20wait...','cancel':'Cancel','uploadAgain':_0x30c394(0x168)}},locale=locale$1;export{locale as default};function _0x142b(){const _0x4c3670=['1543863VaHmoD','Uploading','182365wlUedE','5101663vlAqIq','Data\x20is\x20too\x20large','296218PTueaI','Upload\x20again','554640gHYVQo','174cWXaiq','{0}\x20file(s)\x20uploaded\x20successfully','Internal\x20unknown\x20error','File','Open(File)','Unknown\x20mistake','8824504peYNzy','2875044amKmtB','Downloading','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed'];_0x142b=function(){return _0x4c3670;};return _0x142b();}
@@ -1 +1 @@
1
- function _0x14ce(_0x497ef9,_0x24b77a){_0x497ef9=_0x497ef9-0x17e;const _0x26b945=_0x26b9();let _0x14cefc=_0x26b945[_0x497ef9];return _0x14cefc;}const _0x4962a1=_0x14ce;function _0x26b9(){const _0x171525=['3351227mfKTGc','12660fkIEHJ','9861131eZztVm','لطفا\x20صبر\x20کنید...','بارگذاری\x20مجدد','2146140lIkCYb','داده\x20خیلی\x20بزرگ\x20است','اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','خطای\x20شبکه','36REgMDz','خطای\x20داخلی\x20ناشناخته','فایل','8PqIPnn','50VwpsuD','1396DclQYj','خطای\x20ناشناخته','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','بازکردن(فایل)','174282eofiAx','در\x20حال\x20دانلود','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','ذخیره\x20به\x20عنوان','دانلود\x20موفقیت\x20آمیز','7186014SWelAs','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','لغو','434582OQjnio','27jxXhHe','در\x20حال\x20بارگذاری'];_0x26b9=function(){return _0x171525;};return _0x26b9();}(function(_0x2d2ddd,_0x2a3145){const _0x158e08=_0x14ce,_0x67a67b=_0x2d2ddd();while(!![]){try{const _0x5201bf=-parseInt(_0x158e08(0x199))/0x1+-parseInt(_0x158e08(0x191))/0x2*(-parseInt(_0x158e08(0x19a))/0x3)+-parseInt(_0x158e08(0x18d))/0x4*(-parseInt(_0x158e08(0x180))/0x5)+-parseInt(_0x158e08(0x196))/0x6+-parseInt(_0x158e08(0x181))/0x7*(parseInt(_0x158e08(0x18b))/0x8)+-parseInt(_0x158e08(0x184))/0x9*(-parseInt(_0x158e08(0x18c))/0xa)+parseInt(_0x158e08(0x17f))/0xb*(parseInt(_0x158e08(0x188))/0xc);if(_0x5201bf===_0x2a3145)break;else _0x67a67b['push'](_0x67a67b['shift']());}catch(_0xed27f1){_0x67a67b['push'](_0x67a67b['shift']());}}}(_0x26b9,0xb3028));const locale={'exchange':{'file':_0x4962a1(0x18a),'upload':_0x4962a1(0x190),'download':_0x4962a1(0x194),'uploading':_0x4962a1(0x17e),'uploadSuccess':_0x4962a1(0x18f),'uploadSuccessTip':_0x4962a1(0x193),'downloading':_0x4962a1(0x192),'downloadSuccess':_0x4962a1(0x195),'unknownMistake':_0x4962a1(0x18e),'networkError':_0x4962a1(0x187),'tooLarge':_0x4962a1(0x185),'internalError':_0x4962a1(0x189),'interrupt':_0x4962a1(0x186),'fileTypeError':_0x4962a1(0x197),'wait':_0x4962a1(0x182),'cancel':_0x4962a1(0x198),'uploadAgain':_0x4962a1(0x183)}};export{locale as default};
1
+ function _0x4ebb(_0xdf4be9,_0x2d972c){_0xdf4be9=_0xdf4be9-0x1d7;const _0x240b29=_0x240b();let _0x4ebb05=_0x240b29[_0xdf4be9];return _0x4ebb05;}const _0x42db3d=_0x4ebb;function _0x240b(){const _0x5d918c=['لطفا\x20صبر\x20کنید...','دانلود\x20موفقیت\x20آمیز','6QvVkPz','94840xHaKfK','خطای\x20ناشناخته','1572340mhmHls','3114PACkOk','فایل','10349724DdRSzX','23BCDWIB','11888YZsGkL','بارگذاری\x20مجدد','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','1518990hstlys','2172863zYcgYX','33VvCOuO','10806FkRThW','20OcEYMn','13qsIRVZ','خطای\x20داخلی\x20ناشناخته','داده\x20خیلی\x20بزرگ\x20است','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمی‌شود','ذخیره\x20به\x20عنوان','بازکردن(فایل)','در\x20حال\x20بارگذاری','لغو'];_0x240b=function(){return _0x5d918c;};return _0x240b();}(function(_0x17f25b,_0x29bb3f){const _0x3109f7=_0x4ebb,_0x1f2f27=_0x17f25b();while(!![]){try{const _0x13a7b4=parseInt(_0x3109f7(0x1e5))/0x1*(-parseInt(_0x3109f7(0x1ec))/0x2)+parseInt(_0x3109f7(0x1eb))/0x3*(-parseInt(_0x3109f7(0x1df))/0x4)+-parseInt(_0x3109f7(0x1e9))/0x5+-parseInt(_0x3109f7(0x1de))/0x6*(-parseInt(_0x3109f7(0x1e1))/0x7)+-parseInt(_0x3109f7(0x1e6))/0x8*(parseInt(_0x3109f7(0x1e2))/0x9)+parseInt(_0x3109f7(0x1ed))/0xa*(parseInt(_0x3109f7(0x1ea))/0xb)+parseInt(_0x3109f7(0x1e4))/0xc*(parseInt(_0x3109f7(0x1ee))/0xd);if(_0x13a7b4===_0x29bb3f)break;else _0x1f2f27['push'](_0x1f2f27['shift']());}catch(_0xeb01bd){_0x1f2f27['push'](_0x1f2f27['shift']());}}}(_0x240b,0x4425a));const locale={'exchange':{'file':_0x42db3d(0x1e3),'upload':_0x42db3d(0x1d9),'download':_0x42db3d(0x1d8),'uploading':_0x42db3d(0x1da),'uploadSuccess':_0x42db3d(0x1e8),'uploadSuccessTip':'{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x42db3d(0x1dd),'unknownMistake':_0x42db3d(0x1e0),'networkError':'خطای\x20شبکه','tooLarge':_0x42db3d(0x1f0),'internalError':_0x42db3d(0x1ef),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','fileTypeError':_0x42db3d(0x1d7),'wait':_0x42db3d(0x1dc),'cancel':_0x42db3d(0x1db),'uploadAgain':_0x42db3d(0x1e7)}};export{locale as default};
@@ -1 +1 @@
1
- function _0x47a1(){const _0x53b4e3=['3ObgbdJ','Téléchargement\x20en\x20cours','5930934KvKpla','Fichier\x20téléchargé\x20avec\x20succès','19063472BWXGCA','Veuillez\x20patienter...','1161569oAXzQb','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Erreur\x20inconnue','Téléchargement','Fichier','Télécharger\x20à\x20nouveau','Annuler','Téléchargement\x20réussi','5450036oUzjXx','2261588KscVzo','2396810hoEquh','156720ffXCtR'];_0x47a1=function(){return _0x53b4e3;};return _0x47a1();}const _0x5ab41a=_0x2078;(function(_0x149bd4,_0x3754ad){const _0x581265=_0x2078,_0x5cc74e=_0x149bd4();while(!![]){try{const _0x18a8fb=-parseInt(_0x581265(0xff))/0x1+-parseInt(_0x581265(0xf7))/0x2+-parseInt(_0x581265(0xf9))/0x3*(-parseInt(_0x581265(0xf5))/0x4)+parseInt(_0x581265(0xf8))/0x5+-parseInt(_0x581265(0xfb))/0x6+parseInt(_0x581265(0xf6))/0x7+parseInt(_0x581265(0xfd))/0x8;if(_0x18a8fb===_0x3754ad)break;else _0x5cc74e['push'](_0x5cc74e['shift']());}catch(_0x5f33fc){_0x5cc74e['push'](_0x5cc74e['shift']());}}}(_0x47a1,0xb7730));function _0x2078(_0x44e7d6,_0x3bba0d){_0x44e7d6=_0x44e7d6-0xef;const _0x47a143=_0x47a1();let _0x20787b=_0x47a143[_0x44e7d6];return _0x20787b;}const locale={'exchange':{'file':_0x5ab41a(0xf1),'upload':'Ouvrir\x20(Fichier)','download':'Enregistrer\x20sous','uploading':_0x5ab41a(0xfa),'uploadSuccess':_0x5ab41a(0xfc),'uploadSuccessTip':'{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','downloading':_0x5ab41a(0xf0),'downloadSuccess':_0x5ab41a(0xf4),'unknownMistake':_0x5ab41a(0xef),'networkError':'Erreur\x20réseau','tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':'Erreur\x20interne\x20inconnue','interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':_0x5ab41a(0x100),'wait':_0x5ab41a(0xfe),'cancel':_0x5ab41a(0xf3),'uploadAgain':_0x5ab41a(0xf2)}};export{locale as default};
1
+ const _0x2b0817=_0x2497;function _0x2497(_0x21fead,_0x166d19){_0x21fead=_0x21fead-0x14f;const _0x3b50aa=_0x3b50();let _0x2497a4=_0x3b50aa[_0x21fead];return _0x2497a4;}(function(_0x2f078d,_0x59377f){const _0x3c758f=_0x2497,_0x41063d=_0x2f078d();while(!![]){try{const _0x4a9ebb=parseInt(_0x3c758f(0x151))/0x1+-parseInt(_0x3c758f(0x150))/0x2+parseInt(_0x3c758f(0x156))/0x3+parseInt(_0x3c758f(0x15b))/0x4*(-parseInt(_0x3c758f(0x160))/0x5)+parseInt(_0x3c758f(0x15f))/0x6+parseInt(_0x3c758f(0x157))/0x7+-parseInt(_0x3c758f(0x15c))/0x8*(parseInt(_0x3c758f(0x15d))/0x9);if(_0x4a9ebb===_0x59377f)break;else _0x41063d['push'](_0x41063d['shift']());}catch(_0x469eae){_0x41063d['push'](_0x41063d['shift']());}}}(_0x3b50,0x62998));function _0x3b50(){const _0x69e1a7=['9aFhDIo','Les\x20données\x20sont\x20trop\x20volumineuses','3838758WfeblX','885pKxdvD','Téléchargement','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','Téléchargement\x20en\x20cours','Erreur\x20inconnue','824900tczpNu','669222bbDaBG','Téléchargement\x20réussi','Erreur\x20interne\x20inconnue','Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','Annuler','327612yLGbAg','2604728NsBnaP','Télécharger\x20à\x20nouveau','Fichier\x20téléchargé\x20avec\x20succès','Enregistrer\x20sous','13100KtRdLC','3154672EyPVHW'];_0x3b50=function(){return _0x69e1a7;};return _0x3b50();}const locale={'exchange':{'file':'Fichier','upload':'Ouvrir\x20(Fichier)','download':_0x2b0817(0x15a),'uploading':_0x2b0817(0x163),'uploadSuccess':_0x2b0817(0x159),'uploadSuccessTip':_0x2b0817(0x162),'downloading':_0x2b0817(0x161),'downloadSuccess':_0x2b0817(0x152),'unknownMistake':_0x2b0817(0x14f),'networkError':'Erreur\x20réseau','tooLarge':_0x2b0817(0x15e),'internalError':_0x2b0817(0x153),'interrupt':'La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','fileTypeError':_0x2b0817(0x154),'wait':'Veuillez\x20patienter...','cancel':_0x2b0817(0x155),'uploadAgain':_0x2b0817(0x158)}};export{locale as default};
@@ -1 +1 @@
1
- const _0x3263db=_0xd70b;(function(_0x4eb59a,_0x7f6cba){const _0x330450=_0xd70b,_0x3ba58f=_0x4eb59a();while(!![]){try{const _0x3cb19d=-parseInt(_0x330450(0x15d))/0x1+-parseInt(_0x330450(0x166))/0x2+parseInt(_0x330450(0x16d))/0x3+-parseInt(_0x330450(0x160))/0x4+parseInt(_0x330450(0x16a))/0x5*(-parseInt(_0x330450(0x16e))/0x6)+-parseInt(_0x330450(0x163))/0x7*(-parseInt(_0x330450(0x161))/0x8)+parseInt(_0x330450(0x162))/0x9;if(_0x3cb19d===_0x7f6cba)break;else _0x3ba58f['push'](_0x3ba58f['shift']());}catch(_0x4f63be){_0x3ba58f['push'](_0x3ba58f['shift']());}}}(_0x2ef5,0xed0e4));function _0xd70b(_0x4328e3,_0x586934){_0x4328e3=_0x4328e3-0x15d;const _0x2ef50c=_0x2ef5();let _0xd70b99=_0x2ef50c[_0x4328e3];return _0xd70b99;}const locale={'exchange':{'file':_0x3263db(0x167),'upload':'開く(ファイル)','download':_0x3263db(0x16c),'uploading':_0x3263db(0x169),'uploadSuccess':'ファイルが正常にアップロードされました','uploadSuccessTip':'{0}\x20個のファイルが正常にアップロードされました','downloading':_0x3263db(0x165),'downloadSuccess':_0x3263db(0x171),'unknownMistake':'不明なエラー','networkError':_0x3263db(0x168),'tooLarge':_0x3263db(0x16f),'internalError':'内部エラーが発生しました','interrupt':_0x3263db(0x15e),'fileTypeError':_0x3263db(0x16b),'wait':_0x3263db(0x170),'cancel':_0x3263db(0x15f),'uploadAgain':_0x3263db(0x164)}};function _0x2ef5(){const _0x44b58b=['226338clptul','データが大きすぎます','お待ちください...','ダウンロードが完了しました','1290251VlafBE','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','キャンセル','6545268ZrDecl','8wRWZSq','40164471sudSps','7361501HqpRSj','再度アップロード','ダウンロード中','1507534GTkKuO','ファイル','ネットワークエラー','アップロード中','215agYZII','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません','名前を付けて保存','2277126CGkrXJ'];_0x2ef5=function(){return _0x44b58b;};return _0x2ef5();}export{locale as default};
1
+ function _0x47cc(){const _0x507ce8=['不明なエラー','ダウンロード中','296748XJohKH','3787oEjLZJ','3660AzXzDJ','ファイル','2lSFnYi','内部エラーが発生しました','17622cPaikQ','474018joEywp','20qzwWUQ','データが大きすぎます','{0}\x20個のファイルが正常にアップロードされました','1057635gWWQSK','アップロード中','ファイルが正常にアップロードされました','1080cWJuDR','開く(ファイル)','キャンセル','ダウンロードが完了しました','2829160zmeFOb','再度アップロード','ネットワーク接続が中断され、ファイルのアップロードに失敗しました','名前を付けて保存','80HaGEEs','3087138VKwqyU','選択されたファイル\x20[{0}]\x20はアップロードがサポートされていません'];_0x47cc=function(){return _0x507ce8;};return _0x47cc();}const _0x2e57cb=_0xb7e8;(function(_0x55b8e3,_0x43d2ce){const _0x509628=_0xb7e8,_0x431119=_0x55b8e3();while(!![]){try{const _0x45b691=parseInt(_0x509628(0x191))/0x1+-parseInt(_0x509628(0x18e))/0x2*(-parseInt(_0x509628(0x186))/0x3)+-parseInt(_0x509628(0x181))/0x4+parseInt(_0x509628(0x185))/0x5*(-parseInt(_0x509628(0x18a))/0x6)+parseInt(_0x509628(0x18b))/0x7*(-parseInt(_0x509628(0x198))/0x8)+parseInt(_0x509628(0x195))/0x9*(parseInt(_0x509628(0x192))/0xa)+-parseInt(_0x509628(0x190))/0xb*(-parseInt(_0x509628(0x18c))/0xc);if(_0x45b691===_0x43d2ce)break;else _0x431119['push'](_0x431119['shift']());}catch(_0x29fd2f){_0x431119['push'](_0x431119['shift']());}}}(_0x47cc,0x9fecb));function _0xb7e8(_0x1c6b41,_0x4eb576){_0x1c6b41=_0x1c6b41-0x17f;const _0x47cc13=_0x47cc();let _0xb7e839=_0x47cc13[_0x1c6b41];return _0xb7e839;}const locale={'exchange':{'file':_0x2e57cb(0x18d),'upload':_0x2e57cb(0x199),'download':_0x2e57cb(0x184),'uploading':_0x2e57cb(0x196),'uploadSuccess':_0x2e57cb(0x197),'uploadSuccessTip':_0x2e57cb(0x194),'downloading':_0x2e57cb(0x189),'downloadSuccess':_0x2e57cb(0x180),'unknownMistake':_0x2e57cb(0x188),'networkError':'ネットワークエラー','tooLarge':_0x2e57cb(0x193),'internalError':_0x2e57cb(0x18f),'interrupt':_0x2e57cb(0x183),'fileTypeError':_0x2e57cb(0x187),'wait':'お待ちください...','cancel':_0x2e57cb(0x17f),'uploadAgain':_0x2e57cb(0x182)}};export{locale as default};