@univerjs-pro/collaboration-client 1.0.0-alpha.5 → 1.0.0-alpha.6

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 (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +14 -14
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x281ba4=_0x2431;(function(_0x38cf89,_0xdd2be9){const _0x4f7adc=_0x2431,_0x3cbba0=_0x38cf89();while(!![]){try{const _0x11a336=parseInt(_0x4f7adc(0x31e))/0x1+parseInt(_0x4f7adc(0x10d))/0x2*(-parseInt(_0x4f7adc(0x130))/0x3)+parseInt(_0x4f7adc(0x169))/0x4*(-parseInt(_0x4f7adc(0x340))/0x5)+-parseInt(_0x4f7adc(0x28e))/0x6+parseInt(_0x4f7adc(0x18b))/0x7*(parseInt(_0x4f7adc(0x39f))/0x8)+-parseInt(_0x4f7adc(0xdd))/0x9+-parseInt(_0x4f7adc(0x35e))/0xa*(-parseInt(_0x4f7adc(0x3d8))/0xb);if(_0x11a336===_0xdd2be9)break;else _0x3cbba0['push'](_0x3cbba0['shift']());}catch(_0x1fc62c){_0x3cbba0['push'](_0x3cbba0['shift']());}}}(_0x4951,0x40b58),Object[_0x281ba4(0x1c9)](exports,Symbol[_0x281ba4(0x36a)],{'value':_0x281ba4(0x355)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x281ba4(0xfb),ee={},te=_0x281ba4(0x115),ne=0x4e20;function re(_0x4d76d3){const _0x383e0a=_0x281ba4;return JSON[_0x383e0a(0xf8)](_0x4d76d3)[_0x383e0a(0x16d)];}function h(_0x470106){'@babel/helpers - typeof';const _0x252bc4=_0x281ba4;return h=typeof Symbol==_0x252bc4(0x306)&&typeof Symbol[_0x252bc4(0x3d9)]==_0x252bc4(0x2c2)?function(_0x4ef0d7){return typeof _0x4ef0d7;}:function(_0x33a07f){const _0x3ba47c=_0x252bc4;return _0x33a07f&&typeof Symbol==_0x3ba47c(0x306)&&_0x33a07f[_0x3ba47c(0x285)]===Symbol&&_0x33a07f!==Symbol[_0x3ba47c(0x1ff)]?_0x3ba47c(0x2c2):typeof _0x33a07f;},h(_0x470106);}function ie(_0x4dc45f,_0x157796){const _0x487e83=_0x281ba4;if(h(_0x4dc45f)!=_0x487e83(0x124)||!_0x4dc45f)return _0x4dc45f;var _0x9f2c9a=_0x4dc45f[Symbol['toPrimitive']];if(_0x9f2c9a!==void 0x0){var _0x6b5bfd=_0x9f2c9a['call'](_0x4dc45f,_0x157796||'default');if(h(_0x6b5bfd)!=_0x487e83(0x124))return _0x6b5bfd;throw TypeError(_0x487e83(0x3d2));}return(_0x157796===_0x487e83(0x2e7)?String:Number)(_0x4dc45f);}function ae(_0x1908e4){const _0x18bb89=_0x281ba4;var _0x50dcf4=ie(_0x1908e4,_0x18bb89(0x2e7));return h(_0x50dcf4)=='symbol'?_0x50dcf4:_0x50dcf4+'';}function g(_0x5b9b32,_0x4a7d7f,_0x524e9c){return(_0x4a7d7f=ae(_0x4a7d7f))in _0x5b9b32?Object['defineProperty'](_0x5b9b32,_0x4a7d7f,{'value':_0x524e9c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b9b32[_0x4a7d7f]=_0x524e9c,_0x5b9b32;}let oe=function(_0x587c05){const _0x54ceec=_0x281ba4;return _0x587c05[_0x54ceec(0xf3)]=_0x54ceec(0xf3),_0x587c05[_0x54ceec(0x278)]=_0x54ceec(0x278),_0x587c05[_0x54ceec(0xdb)]=_0x54ceec(0xdb),_0x587c05['CLOSE_ROOM']=_0x54ceec(0x20d),_0x587c05['JOIN_ROOM_FAILED']=_0x54ceec(0x2c8),_0x587c05[_0x54ceec(0x29c)]=_0x54ceec(0x29c),_0x587c05[_0x54ceec(0x2f0)]=_0x54ceec(0x2f0),_0x587c05[_0x54ceec(0x2ed)]=_0x54ceec(0x2ed),_0x587c05;}({});var _=class{constructor(){const _0x428a32=_0x281ba4;g(this,_0x428a32(0xf4),new i[(_0x428a32(0x3de))]()),g(this,_0x428a32(0x22c),this[_0x428a32(0xf4)][_0x428a32(0x284)]());}[_0x281ba4(0x298)](_0x4279fd){const _0x521c38=_0x281ba4;this[_0x521c38(0xf4)]['next'](_0x4279fd);}},se=class{constructor(){const _0x5f3d3f=_0x281ba4;g(this,'_commentUpdate$',new i['Subject']()),g(this,'commentUpdate$',this[_0x5f3d3f(0x2d1)]['asObservable']());}[_0x281ba4(0x1fd)](_0x225ba1){const _0x3e1451=_0x281ba4;this[_0x3e1451(0x2d1)]['next'](_0x225ba1);}};function v(_0x5a6738,_0x5b8734){return function(_0x9c9d0a,_0xe6a2f9){_0x5b8734(_0x9c9d0a,_0xe6a2f9,_0x5a6738);};}function y(_0x3c728b,_0x4481b5,_0x42d4c8,_0x1c100f){const _0xf7e77f=_0x281ba4;var _0x49b933=arguments['length'],_0x20bc1c=_0x49b933<0x3?_0x4481b5:_0x1c100f===null?_0x1c100f=Object[_0xf7e77f(0x236)](_0x4481b5,_0x42d4c8):_0x1c100f,_0x42d2ba;if(typeof Reflect=='object'&&typeof Reflect[_0xf7e77f(0x29f)]==_0xf7e77f(0x306))_0x20bc1c=Reflect[_0xf7e77f(0x29f)](_0x3c728b,_0x4481b5,_0x42d4c8,_0x1c100f);else{for(var _0x8bc003=_0x3c728b['length']-0x1;_0x8bc003>=0x0;_0x8bc003--)(_0x42d2ba=_0x3c728b[_0x8bc003])&&(_0x20bc1c=(_0x49b933<0x3?_0x42d2ba(_0x20bc1c):_0x49b933>0x3?_0x42d2ba(_0x4481b5,_0x42d4c8,_0x20bc1c):_0x42d2ba(_0x4481b5,_0x42d4c8))||_0x20bc1c);}return _0x49b933>0x3&&_0x20bc1c&&Object[_0xf7e77f(0x1c9)](_0x4481b5,_0x42d4c8,_0x20bc1c),_0x20bc1c;}let b=class extends t[_0x281ba4(0xe4)]{constructor(_0x1eae68,_0x1414e1){const _0x5f1542=_0x281ba4;super(),this[_0x5f1542(0x193)]=_0x1eae68,this[_0x5f1542(0x3d0)]=_0x1414e1,g(this,'_roomMembers',new Map()),g(this,_0x5f1542(0x374),new i['Subject']()),this[_0x5f1542(0x143)]((0x0,i[_0x5f1542(0x299)])(this[_0x5f1542(0x193)][_0x5f1542(0x113)](t['UniverInstanceType']['UNIVER_SHEET'])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x20d942=>_0x20d942[_0x5f1542(0x34e)]())),this[_0x5f1542(0x193)]['getTypeOfUnitDisposed$'](t[_0x5f1542(0x314)]['UNIVER_DOC'])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x4d52da=>_0x4d52da[_0x5f1542(0x34e)]())),this[_0x5f1542(0x193)][_0x5f1542(0x113)](t[_0x5f1542(0x314)][_0x5f1542(0x2a1)])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x3e2b81=>_0x3e2b81['getUnitId']())),this['_univerInstanceService'][_0x5f1542(0x113)](t['UniverInstanceType'][_0x5f1542(0x37e)])[_0x5f1542(0x21e)]((0x0,s[_0x5f1542(0x26b)])(_0x10177b=>_0x10177b[_0x5f1542(0x34e)]())))['subscribe'](_0x177a5a=>this[_0x5f1542(0x10f)](_0x177a5a)));}[_0x281ba4(0x201)](_0x1db08e){const _0x5f3bd8=_0x281ba4;return this['_roomMembers']['has'](_0x1db08e)?(0x0,i['of'])(this['_roomMembers'][_0x5f3bd8(0x323)](_0x1db08e)):this['_roomCreated$'][_0x5f3bd8(0x21e)]((0x0,s[_0x5f3bd8(0x26b)])(_0x421d06=>{const _0x14e806=_0x5f3bd8;if(_0x421d06===_0x1db08e)return this[_0x14e806(0x3c3)][_0x14e806(0x323)](_0x421d06);}));}[_0x281ba4(0x253)](_0x33a718){const _0x36d654=_0x281ba4;this['_userManagerService'][_0x36d654(0x253)](_0x33a718);}[_0x281ba4(0x357)](){const _0x50ce16=_0x281ba4;return this['_userManagerService'][_0x50ce16(0x357)]();}[_0x281ba4(0x2ea)](_0xd32fa7,_0x35a2a1){const _0x1724e9=_0x281ba4;let _0x44a8a9=this['_roomMembers']['get'](_0xd32fa7);_0x44a8a9||(_0x44a8a9=new ce(),this[_0x1724e9(0x3c3)][_0x1724e9(0x243)](_0xd32fa7,_0x44a8a9),this[_0x1724e9(0x374)][_0x1724e9(0xd2)](_0xd32fa7)),_0x44a8a9['updateMember'](_0x35a2a1);}[_0x281ba4(0x363)](_0x53ba89,_0x78a6b1){const _0x2e0800=_0x281ba4;let _0x530f59=this[_0x2e0800(0x3c3)][_0x2e0800(0x323)](_0x53ba89);_0x530f59&&_0x530f59['removeMember'](_0x78a6b1);}[_0x281ba4(0x232)](_0x10f6d8){const _0x1a9579=_0x281ba4;return this[_0x1a9579(0x3c3)][_0x1a9579(0x323)](_0x10f6d8);}[_0x281ba4(0x1bd)](_0x448d2a,_0x4bce7f){const _0x156366=_0x281ba4;let _0x10b0f9=this[_0x156366(0x3c3)][_0x156366(0x323)](_0x448d2a);if(_0x10b0f9)return _0x10b0f9[_0x156366(0x1bd)](_0x4bce7f);}[_0x281ba4(0x10f)](_0x572967){const _0x5f3527=_0x281ba4;let _0x220f1e=this[_0x5f3527(0x3c3)][_0x5f3527(0x323)](_0x572967);_0x220f1e&&(_0x220f1e[_0x5f3527(0x25c)](),this[_0x5f3527(0x3c3)][_0x5f3527(0x19e)](_0x572967));}[_0x281ba4(0x25c)](){const _0x44bceb=_0x281ba4;this[_0x44bceb(0x3c3)][_0x44bceb(0x179)](_0x5498fa=>_0x5498fa['dispose']()),this['_roomMembers'][_0x44bceb(0x33d)](),this['_roomCreated$'][_0x44bceb(0x147)]();}};b=y([v(0x0,t[_0x281ba4(0x1ad)]),v(0x1,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0xee)]))],b);var ce=class extends t[_0x281ba4(0xe4)]{constructor(..._0x183403){const _0x560117=_0x281ba4;super(..._0x183403),g(this,_0x560117(0x371),new Map()),g(this,_0x560117(0x33a),new i['BehaviorSubject'](this[_0x560117(0x371)])),g(this,_0x560117(0x119),this['_members$'][_0x560117(0x284)]());}['dispose'](){const _0x3eb8fc=_0x281ba4;this['_members'][_0x3eb8fc(0x33d)](),this[_0x3eb8fc(0x33a)]['complete']();}[_0x281ba4(0x2ea)](_0x5a14dd){const _0x3b764f=_0x281ba4;this[_0x3b764f(0x371)]['set'](_0x5a14dd[_0x3b764f(0x20c)],_0x5a14dd),this[_0x3b764f(0x2b1)]();}[_0x281ba4(0x363)](_0x1f3ab4){const _0xa191b6=_0x281ba4;this[_0xa191b6(0x371)][_0xa191b6(0x19e)](_0x1f3ab4),this[_0xa191b6(0x2b1)]();}[_0x281ba4(0x1bd)](_0x2a76d8){const _0x5937cd=_0x281ba4;return this[_0x5937cd(0x371)][_0x5937cd(0x323)](_0x2a76d8);}[_0x281ba4(0xe0)](){const _0x5ff6a9=_0x281ba4;return Array['from'](this[_0x5ff6a9(0x371)][_0x5ff6a9(0x35f)]());}[_0x281ba4(0x2b1)](){const _0x2a1026=_0x281ba4;this[_0x2a1026(0x33a)][_0x2a1026(0xd2)](this['_members']);}};function le(_0x1c17af,_0x579370){const _0x113cec=_0x281ba4;if(de(_0x1c17af))return _0x579370;if(_0x579370['eventID']===e['CollaborationEvent'][_0x113cec(0x14a)]){var _0x3ad259;let _0x221dbd=ge(_0x1c17af),_0x16d78a=_0x579370;return{..._0x16d78a,'data':{..._0x16d78a[_0x113cec(0x346)],'unitID':_0x1c17af[_0x113cec(0x302)]['unitId'],'unitType':(_0x3ad259=_0x1c17af['target'][_0x113cec(0x311)])==null?_0x16d78a[_0x113cec(0x346)][_0x113cec(0x311)]:_0x3ad259,'changeset':_0x221dbd[_0x113cec(0x3cb)](_0x16d78a['data']['changeset'],_e(_0x1c17af))}};}if(_0x579370[_0x113cec(0x35a)]===e['CollaborationEvent'][_0x113cec(0x2fa)]){var _0xfa848a;let _0x1f00b8=_0x579370;return{..._0x1f00b8,'data':{..._0x1f00b8[_0x113cec(0x346)],'unitID':_0x1c17af[_0x113cec(0x302)][_0x113cec(0x118)],'unitType':(_0xfa848a=_0x1c17af[_0x113cec(0x302)]['unitType'])==null?_0x1f00b8[_0x113cec(0x346)]['unitType']:_0xfa848a}};}return _0x579370;}function ue(_0x5c9517,_0x5f6454){const _0x4d48d4=_0x281ba4;if(de(_0x5c9517))return[_0x5f6454];switch(_0x5f6454[_0x4d48d4(0x35a)]){case e[_0x4d48d4(0x137)][_0x4d48d4(0xcf)]:return[fe(_0x5c9517,_0x5f6454)];case e[_0x4d48d4(0x137)][_0x4d48d4(0x2fd)]:return[me(_0x5c9517,_0x5f6454)];case e['CollaborationEvent'][_0x4d48d4(0x3e2)]:return[pe(_0x5c9517,_0x5f6454)];default:return[_0x5f6454];}}function de(_0x287fad){const _0x3e806b=_0x281ba4;return _0x287fad[_0x3e806b(0x302)][_0x3e806b(0xd8)]==null&&_0x287fad[_0x3e806b(0x302)]['unitId']===_0x287fad[_0x3e806b(0x11c)]&&!_0x287fad['changeset'];}function fe(_0x3dcdff,_0x2d27ae){const _0x1e2959=_0x281ba4;return{..._0x2d27ae,'data':(0x0,e[_0x1e2959(0x140)])(he(_0x3dcdff,(0x0,e[_0x1e2959(0x218)])(_0x2d27ae[_0x1e2959(0x346)])))};}function pe(_0x14b11d,_0xd7752b){const _0x1cf67=_0x281ba4;return{..._0xd7752b,'data':he(_0x14b11d,_0xd7752b[_0x1cf67(0x346)])};}function me(_0x2d93af,_0x3aecf2){const _0x56617c=_0x281ba4;let _0x4ee6f7=_0x3aecf2['data'];return{..._0x3aecf2,'data':{..._0x4ee6f7,'changesets':_0x4ee6f7[_0x56617c(0x395)]['map'](_0xafc67a=>(0x0,e[_0x56617c(0x140)])(he(_0x2d93af,(0x0,e[_0x56617c(0x218)])(_0xafc67a))))}};}function he(_0xfc4e25,_0x3a20f0){const _0x3da1dc=_0x281ba4;return ge(_0xfc4e25)[_0x3da1dc(0x163)](_0x3a20f0,_e(_0xfc4e25));}function ge(_0x474396){const _0x524d76=_0x281ba4;if(!_0x474396['changeset'])throw Error(_0x524d76(0x2d4));return _0x474396[_0x524d76(0x213)];}function _e(_0x4444c3){const _0x314dda=_0x281ba4;return{'localUnitId':_0x4444c3['localUnitId'],'unitType':_0x4444c3[_0x314dda(0x311)],'target':_0x4444c3[_0x314dda(0x302)]};}let ve=function(_0x2155b2){const _0x5b525f=_0x281ba4;return _0x2155b2[_0x2155b2[_0x5b525f(0x17a)]=0x0]='IDLE',_0x2155b2[_0x2155b2[_0x5b525f(0x120)]=0x1]='JOINING',_0x2155b2[_0x2155b2[_0x5b525f(0x256)]=0x2]=_0x5b525f(0x256),_0x2155b2[_0x2155b2[_0x5b525f(0x2f7)]=0x3]=_0x5b525f(0x2f7),_0x2155b2;}({});const ye={[a['CmdRspCode'][_0x281ba4(0x3b4)]]:_0x281ba4(0x373),[a['CmdRspCode'][_0x281ba4(0x2ac)]]:'session.room-full',[a[_0x281ba4(0x3a3)][_0x281ba4(0xc5)]]:'session.room-not-exists',[a[_0x281ba4(0x3a3)][_0x281ba4(0x196)]]:_0x281ba4(0x1e8),[a[_0x281ba4(0x3a3)][_0x281ba4(0x281)]]:_0x281ba4(0x353)};let x=class extends t[_0x281ba4(0x24d)]{get[_0x281ba4(0x338)](){const _0x53cb8d=_0x281ba4;return this[_0x53cb8d(0x381)][_0x53cb8d(0x154)]();}constructor(_0xb232c1,_0x14d384,_0x236f97,_0x27b29a,_0x9abf6b,_0x4614f1,_0x318e54,_0x301701){const _0x41ba9b=_0x281ba4;super(),this[_0x41ba9b(0x1a8)]=_0xb232c1,this[_0x41ba9b(0x3a2)]=_0x236f97,this[_0x41ba9b(0x21b)]=_0x27b29a,this[_0x41ba9b(0x386)]=_0x9abf6b,this[_0x41ba9b(0x1ac)]=_0x4614f1,this['_collaborationUIEventService']=_0x318e54,this['_telemetryService']=_0x301701,g(this,_0x41ba9b(0x381),new i[(_0x41ba9b(0x332))](0x0)),g(this,_0x41ba9b(0x1a6),this['_sessionStatus$'][_0x41ba9b(0x284)]()),g(this,_0x41ba9b(0xf4),new i[(_0x41ba9b(0x3de))]()),g(this,_0x41ba9b(0x22c),this[_0x41ba9b(0xf4)][_0x41ba9b(0x284)]()),g(this,_0x41ba9b(0x1d0),void 0x0),g(this,_0x41ba9b(0x1cc),void 0x0),g(this,_0x41ba9b(0x270),void 0x0),g(this,_0x41ba9b(0x3d5),!0x1),g(this,_0x41ba9b(0x260),null),this[_0x41ba9b(0x3d5)]=!!this[_0x41ba9b(0x18d)],_0x14d384[_0x41ba9b(0x21e)]((0x0,i[_0x41ba9b(0x1f5)])(this[_0x41ba9b(0x109)]))['subscribe'](_0x12f403=>{const _0x448829=_0x41ba9b;if(_0x12f403!==void 0x0){if(this[_0x448829(0x1d0)]=_0x12f403,_0x12f403)this['_joinRoom'](_0x12f403),this['_socketMessageSubscription']=_0x12f403[_0x448829(0x2ca)][_0x448829(0x2a5)](_0x190559=>{const _0x4ddc23=_0x448829;_0x190559[_0x4ddc23(0xd9)]===this[_0x4ddc23(0x1a8)][_0x4ddc23(0x302)]['unitId']&&this[_0x4ddc23(0x22b)](_0x190559);});else{var _0x3256b3;this[_0x448829(0x1db)](),this[_0x448829(0x381)]['next'](0x2),(_0x3256b3=this[_0x448829(0x1cc)])==null||_0x3256b3['unsubscribe'](),this[_0x448829(0x1cc)]=null;}}});}['getMemberID'](){const _0x10c3f0=_0x281ba4;var _0x37d50e,_0x5cbfc0;return(_0x37d50e=(_0x5cbfc0=this[_0x10c3f0(0x1d0)])==null?void 0x0:_0x5cbfc0['memberID'])==null?null:_0x37d50e;}[_0x281ba4(0x25c)](){const _0x1b87c7=_0x281ba4;super[_0x1b87c7(0x25c)](),this[_0x1b87c7(0x309)](),this['dispose$'][_0x1b87c7(0xd2)](),this[_0x1b87c7(0x109)][_0x1b87c7(0x147)]();}[_0x281ba4(0x309)](){const _0x326ec3=_0x281ba4;var _0x2062b3;this[_0x326ec3(0x1db)](),(_0x2062b3=this[_0x326ec3(0x1d0)])==null||_0x2062b3[_0x326ec3(0x396)]({'cmd':a[_0x326ec3(0xe5)][_0x326ec3(0x14f)],'data':{'roomID':this[_0x326ec3(0x1a8)]['target'][_0x326ec3(0x118)]}}),this['_event$']['complete'](),this[_0x326ec3(0x381)][_0x326ec3(0x147)]();}[_0x281ba4(0x22b)](_0x14cf9c){const _0x1822dd=_0x281ba4;_0x14cf9c['cmd']===a[_0x1822dd(0xe5)][_0x1822dd(0x14c)]?this[_0x1822dd(0x1da)](_0x14cf9c):_0x14cf9c[_0x1822dd(0x2e6)]===a[_0x1822dd(0xe5)]['RECV']&&this[_0x1822dd(0x135)](_0x14cf9c);}[_0x281ba4(0x3a8)](_0x652167){const _0xc53e1a=_0x281ba4;this[_0xc53e1a(0x381)][_0xc53e1a(0xd2)](0x1),_0x652167[_0xc53e1a(0x396)]({'cmd':a[_0xc53e1a(0xe5)][_0xc53e1a(0x14c)],'routeKey':this[_0xc53e1a(0x1a8)][_0xc53e1a(0x302)][_0xc53e1a(0x118)],'routeType':'','data':{'rooms':[{'roomID':this[_0xc53e1a(0x1a8)][_0xc53e1a(0x302)][_0xc53e1a(0x118)]}]}});}['_onJoinRoomEvent'](_0x1af015){const _0x170db8=_0x281ba4;var _0x51c3e6;if(_0x1af015[_0x170db8(0x2a4)]in ye){this[_0x170db8(0x1a1)][_0x170db8(0x298)]({'id':_0x170db8(0x2c8),'data':ye[_0x1af015[_0x170db8(0x2a4)]]}),this[_0x170db8(0x381)][_0x170db8(0xd2)](0x2);return;}this[_0x170db8(0x381)][_0x170db8(0xd2)](0x3);let _0x5e945c=(_0x51c3e6=_0x1af015[_0x170db8(0x346)][_0x170db8(0x1a2)][this[_0x170db8(0x1a8)][_0x170db8(0x302)][_0x170db8(0x118)]])==null?void 0x0:_0x51c3e6[_0x170db8(0x307)];_0x5e945c&&_0x5e945c[_0x170db8(0x179)](_0x1b5120=>this[_0x170db8(0x386)][_0x170db8(0x2ea)](this[_0x170db8(0x1a8)][_0x170db8(0x11c)],_0x1b5120));}['_onRecvEvent'](_0x578f9e){const _0x32a661=_0x281ba4;try{let _0x6beed6=ue(this[_0x32a661(0x1a8)],_0x578f9e['data']);for(let _0x29e3cf of _0x6beed6)switch(_0x29e3cf[_0x32a661(0x35a)]){case e[_0x32a661(0x137)][_0x32a661(0x294)]:this[_0x32a661(0x27c)](_0x29e3cf),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e['CollaborationEvent'][_0x32a661(0xda)]:this[_0x32a661(0x178)](_0x29e3cf),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e[_0x32a661(0x137)][_0x32a661(0x1b9)]:case e[_0x32a661(0x137)][_0x32a661(0x3e2)]:this[_0x32a661(0x378)](),this[_0x32a661(0xd4)](),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e[_0x32a661(0x137)][_0x32a661(0x2ab)]:this[_0x32a661(0x3a2)]['error'](_0x32a661(0x1b2)+JSON[_0x32a661(0xf8)](_0x29e3cf)),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;case e[_0x32a661(0x137)][_0x32a661(0x211)]:this['_commentService'][_0x32a661(0x1fd)](_0x29e3cf['data']),this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);break;default:this[_0x32a661(0xf4)][_0x32a661(0xd2)](_0x29e3cf);}}catch(_0x51909d){this[_0x32a661(0x3a2)][_0x32a661(0x3b2)](_0x51909d,_0x578f9e);}}[_0x281ba4(0x27c)](_0x37fb53){const _0x46bb3f=_0x281ba4;this[_0x46bb3f(0x386)][_0x46bb3f(0x2ea)](this[_0x46bb3f(0x1a8)][_0x46bb3f(0x11c)],_0x37fb53[_0x46bb3f(0x346)]);}[_0x281ba4(0x178)](_0x429c2e){const _0x1d191c=_0x281ba4;this['_memberService'][_0x1d191c(0x363)](this['_identity'][_0x1d191c(0x11c)],_0x429c2e[_0x1d191c(0x346)]['memberID']);}async[_0x281ba4(0x396)](_0x7985b4,_0x18fc65){const _0xbb8e16=_0x281ba4;if(this[_0xbb8e16(0x338)]!==0x3||!this[_0xbb8e16(0x1d0)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x24bed4=le(this[_0xbb8e16(0x1a8)],_0x7985b4);_0x24bed4[_0xbb8e16(0x35a)]===e[_0xbb8e16(0x137)][_0xbb8e16(0x14a)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xbb8e16(0xf0)](_0x24bed4)),this[_0xbb8e16(0x1d0)][_0xbb8e16(0x396)]({'cmd':a[_0xbb8e16(0xe5)][_0xbb8e16(0x33c)],'routeKey':this[_0xbb8e16(0x1a8)][_0xbb8e16(0x302)][_0xbb8e16(0x118)],'routeType':'','data':_0x24bed4});}catch(_0x580a29){this[_0xbb8e16(0x3a2)][_0xbb8e16(0x3b2)](_0x580a29);}}[_0x281ba4(0x354)](){const _0xc08b16=_0x281ba4;var _0x2b3702;this[_0xc08b16(0x270)]=setTimeout(()=>{const _0xecb145=_0xc08b16;this[_0xecb145(0x270)]=null,this[_0xecb145(0x1a1)][_0xecb145(0x298)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x2b3702=this['_configService'][_0xc08b16(0x321)](_0xc08b16(0xeb)))==null?ne:_0x2b3702);}[_0x281ba4(0xd4)](){const _0x232e93=_0x281ba4;this[_0x232e93(0x270)]&&(clearTimeout(this[_0x232e93(0x270)]),this[_0x232e93(0x270)]=null);}[_0x281ba4(0xf0)](_0x5593d5){const _0x142ba4=_0x281ba4;if(!this[_0x142ba4(0x3d5)])return;let {data:_0x5d583c}=_0x5593d5,{unitID:_0x583674,changeset:_0x1b6c29}=_0x5d583c,{mutations:_0x22125a,type:_0x528c61}=_0x1b6c29;this[_0x142ba4(0x260)]={'unitId':_0x583674,'type':_0x528c61,'startTime':performance[_0x142ba4(0x2a0)](),'stopTime':0x0,'duration':0x0,'size':re(_0x22125a)};}[_0x281ba4(0x378)](){const _0x13da2e=_0x281ba4;if(this['_shouldReportTelemetry']){if(!this[_0x13da2e(0x260)]){this[_0x13da2e(0x3a2)][_0x13da2e(0x3b2)]('[CollaborationSession]',_0x13da2e(0x333));return;}this[_0x13da2e(0x260)]['stopTime']=performance[_0x13da2e(0x2a0)](),this[_0x13da2e(0x260)][_0x13da2e(0x230)]=this[_0x13da2e(0x260)]['stopTime']-this[_0x13da2e(0x260)][_0x13da2e(0x1e4)],this[_0x13da2e(0x18d)][_0x13da2e(0x188)](_0x13da2e(0x252),this[_0x13da2e(0x260)]),this[_0x13da2e(0x260)]=null;}}[_0x281ba4(0x1db)](){this['_telemetryInfo']=null;}};x=y([v(0x2,t[_0x281ba4(0x150)]),v(0x3,t[_0x281ba4(0xca)]),v(0x4,(0x0,t[_0x281ba4(0x241)])(b)),v(0x5,(0x0,t[_0x281ba4(0x241)])(se)),v(0x6,(0x0,t[_0x281ba4(0x241)])(_)),v(0x7,(0x0,t[_0x281ba4(0x325)])(o[_0x281ba4(0x1f1)]))],x);const S=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x161));function be(_0x4d971e){return'unit-cache-'+_0x4d971e;}function xe(_0x2f043f){const _0x28248b=_0x281ba4;let {unitID:_0x352488,mutations:_0x43cdc2}=_0x2f043f;return{'unitId':_0x352488,'subUnitId':_0x43cdc2[_0x28248b(0x16d)]>0x0?_0x43cdc2[0x0]['params'][_0x28248b(0x3ba)]:null};}let C=class{constructor(_0xf96135,_0x33fa04,_0x522932){const _0x28a19a=_0x281ba4;this['_injector']=_0xf96135,this['_transformService']=_0x33fa04,this[_0x28a19a(0x1fc)]=_0x522932;}[_0x281ba4(0x11e)](_0x5f341c){const _0x286236=_0x281ba4;var _0x3f7f18,_0xbd543d;let _0x5bc867=this[_0x286236(0x103)][_0x286236(0x323)](r[_0x286236(0x319)]),{unitId:_0x46cd98,subUnitId:_0x584d15}=xe(_0x5f341c),_0x53c891=_0x5bc867==null?void 0x0:_0x5bc867[_0x286236(0x226)](_0x46cd98)[_0x286236(0x303)](),_0xf4a233=(_0x3f7f18=this[_0x286236(0x1fc)]['getUnit'](_0x46cd98))==null||(_0x3f7f18=_0x3f7f18[_0x286236(0x367)]())==null?void 0x0:_0x3f7f18['getSheetId']();if(_0x53c891[_0x286236(0x16d)]===0x0||!_0x46cd98||!_0x584d15)return;let _0x2d28b6=[{'id':r['SetSelectionsOperation']['id'],'params':{'unitId':_0x46cd98,'subUnitId':_0xf4a233,'selections':t[_0x286236(0x3b6)][_0x286236(0xed)](_0x53c891)}}],_0xee8a91=this[_0x286236(0x1d7)]['transformMutationsWithChangeset'](_0x5f341c,_0x2d28b6);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0xee8a91))throw _0xee8a91['error'];let _0x4c0cac=(_0xbd543d=_0xee8a91[_0x286236(0x275)][0x0])==null||(_0xbd543d=_0xbd543d[_0x286236(0x390)])==null?void 0x0:_0xbd543d[_0x286236(0x334)];if(Array['isArray'](_0x4c0cac)&&_0x4c0cac[_0x286236(0x16d)]){if(_0x4c0cac[_0x286236(0x16d)]===_0x2d28b6[0x0][_0x286236(0x390)][_0x286236(0x334)][_0x286236(0x16d)]&&_0x4c0cac[_0x286236(0x262)]((_0x1aa53d,_0x2c1d0f)=>t[_0x286236(0x1f7)][_0x286236(0x228)](_0x1aa53d[_0x286236(0x385)],_0x2d28b6[0x0][_0x286236(0x390)]['selections'][_0x2c1d0f][_0x286236(0x385)])))return;this[_0x286236(0x103)][_0x286236(0x323)](t[_0x286236(0x300)])['executeCommand'](r[_0x286236(0x2f1)]['id'],{'unitId':_0x46cd98,'subUnitId':_0xf4a233,'selections':_0x4c0cac});}}};C=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,e['ITransformService']),v(0x2,t[_0x281ba4(0x1ad)])],C);const w=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x16a));let Se=function(_0x2d5f15){const _0x79415d=_0x281ba4;return _0x2d5f15[_0x2d5f15[_0x79415d(0x1c5)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2d5f15[_0x2d5f15[_0x79415d(0x318)]=0x1]=_0x79415d(0x318),_0x2d5f15;}({});function Ce(_0x3465cf){const _0xf0809e=_0x281ba4;var _0x254a4c;return!!((_0x254a4c=_0x3465cf[_0xf0809e(0x390)])!=null&&_0x254a4c[_0xf0809e(0x3b0)]);}const we=new Set([r['InsertSheetMutation']['id']]),Te=new Set([c[_0x281ba4(0x248)]['id'],c[_0x281ba4(0x174)]['id'],c[_0x281ba4(0x31b)]['id'],c[_0x281ba4(0x3cc)]['id']]);function Ee(_0x14a84e,_0x280d82=we){const _0x912d31=_0x281ba4;let _0x3f19f5=[];for(let _0x1294ee of _0x14a84e){if(_0x280d82['has'](_0x1294ee['id'])){if(_0x3f19f5[_0x912d31(0x16d)]>0x0)break;_0x3f19f5['push'](_0x1294ee);break;}if(Ce(_0x1294ee)){if(_0x3f19f5[_0x912d31(0x16d)]>0x0)break;_0x3f19f5[_0x912d31(0x2a2)](_0x1294ee);break;}_0x3f19f5[_0x912d31(0x2a2)](_0x1294ee);}return _0x3f19f5;}function T(_0x190105,_0x452b44,_0x51e76c,_0x2b5192,_0x53ddd6){const _0x42daa7=_0x281ba4;var _0x529796,_0x2e2ff7,_0x45c911,_0x2710ef;let _0x1b64f2=Ee(_0x190105),_0x4293e5=(_0x529796=(_0x2e2ff7=_0x53ddd6[_0x42daa7(0x357)]())==null?void 0x0:_0x2e2ff7[_0x42daa7(0x3db)])==null?'unknown':_0x529796,_0x455460=(_0x45c911=(_0x2710ef=_0x53ddd6[_0x42daa7(0x357)]())==null?void 0x0:_0x2710ef[_0x42daa7(0x20c)])==null?_0x42daa7(0x27e):_0x45c911;return{'changeset':{'unitID':_0x452b44,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x51e76c[_0x42daa7(0x2fb)](_0x452b44)),'baseRev':_0x2b5192['getCurrentRevOfUnit'](_0x452b44),'revision':0x0,'userID':_0x4293e5,'memberID':_0x455460,'mutations':_0x1b64f2},'pendingMutations':_0x190105[_0x42daa7(0x164)](_0x1b64f2['length'])};}function De(_0x317dec,_0x4a9f1b,_0x3b54d3,_0x4f2157,_0x5044e2){const _0x13683a=_0x281ba4;var _0x245a50,_0x212e28,_0x115ddf,_0x4e59f4;let _0x530c5c=Ee(_0x317dec,Te),_0x1546f1=(_0x245a50=(_0x212e28=_0x5044e2[_0x13683a(0x357)]())==null?void 0x0:_0x212e28[_0x13683a(0x3db)])==null?_0x13683a(0x27e):_0x245a50,_0x325b43=(_0x115ddf=(_0x4e59f4=_0x5044e2[_0x13683a(0x357)]())==null?void 0x0:_0x4e59f4[_0x13683a(0x20c)])==null?_0x13683a(0x27e):_0x115ddf;return{'changeset':{'unitID':_0x4a9f1b,'type':(0x0,e[_0x13683a(0x1cf)])(_0x3b54d3['getUnitType'](_0x4a9f1b)),'baseRev':_0x4f2157['getCurrentRevOfUnit'](_0x4a9f1b),'revision':0x0,'userID':_0x1546f1,'memberID':_0x325b43,'mutations':_0x530c5c},'pendingMutations':_0x317dec['slice'](_0x530c5c[_0x13683a(0x16d)])};}function Oe(_0x41d32b,_0x3517ed,_0x20a830,_0x27c374,_0x39056b){const _0x207940=_0x281ba4;var _0x25a2f9,_0x1c49f4,_0x18f72d,_0x38a531;let _0x150435=_0x41d32b[_0x207940(0x242)]((_0x522ad1,_0x5e07b5)=>{const _0xa4376d=_0x207940;let _0x7d8290=_0x522ad1[_0x522ad1[_0xa4376d(0x16d)]-0x1],{id:_0x3cca52}=_0x7d8290==null?{}:_0x7d8290,{id:_0x37edec,type:_0x5daf26}=_0x5e07b5,_0x16b701=_0x5e07b5[_0xa4376d(0x390)];if(_0x3cca52&&_0x3cca52!==_0x37edec)throw Error(_0xa4376d(0x2ef)+_0x3cca52+'\x20-\x20'+_0x37edec+'.');if(!_0x7d8290)return[{'id':_0x37edec,'type':_0x5daf26,'params':{'unitId':_0x16b701['unitId'],'textRanges':_0x16b701[_0xa4376d(0x39b)],'actions':_0x16b701['actions']}}];let _0x4f8baa=_0x7d8290['params'];return ke(_0x4f8baa,_0x16b701)?[..._0x522ad1[_0xa4376d(0x164)](0x0,-0x1),{..._0x7d8290,'id':_0x37edec,'type':_0x5daf26,'params':{'unitId':_0x16b701[_0xa4376d(0x118)],'textRanges':_0x16b701[_0xa4376d(0x39b)],'actions':t['JSONX'][_0xa4376d(0x3b3)](_0x4f8baa[_0xa4376d(0x2df)],_0x16b701[_0xa4376d(0x2df)])}}]:[..._0x522ad1,{'id':_0x37edec,'type':_0x5daf26,'params':{'unitId':_0x16b701['unitId'],'textRanges':_0x16b701['textRanges'],'actions':_0x16b701[_0xa4376d(0x2df)]}}];},[]),_0x4c0aea=(_0x25a2f9=(_0x1c49f4=_0x39056b[_0x207940(0x357)]())==null?void 0x0:_0x1c49f4[_0x207940(0x3db)])==null?_0x207940(0x27e):_0x25a2f9,_0x1f411d=(_0x18f72d=(_0x38a531=_0x39056b[_0x207940(0x357)]())==null?void 0x0:_0x38a531[_0x207940(0x20c)])==null?'unknown':_0x18f72d;return{'changeset':{'unitID':_0x3517ed,'type':(0x0,e[_0x207940(0x1cf)])(_0x20a830['getUnitType'](_0x3517ed)),'baseRev':_0x27c374[_0x207940(0xcc)](_0x3517ed),'revision':0x0,'userID':_0x4c0aea,'memberID':_0x1f411d,'mutations':_0x150435},'pendingMutations':_0x41d32b[_0x207940(0x164)](_0x41d32b[_0x207940(0x16d)])};}function ke(_0x3282dc,_0x323910){const _0x401905=_0x281ba4;return!Ae(_0x3282dc)&&!Ae(_0x323910)&&je(_0x3282dc[_0x401905(0x2df)],_0x323910[_0x401905(0x2df)]);}function Ae(_0x52f337){const _0x5e4223=_0x281ba4;return _0x52f337[_0x5e4223(0xef)]!==void 0x0;}function je(_0xff4652,_0x39b047){return Me(_0xff4652)&&Me(_0x39b047)&&!Pe(_0xff4652)&&!Pe(_0x39b047)&&!Ne(_0xff4652)&&!Ne(_0x39b047);}function Me(_0x334b66){const _0x5b18a5=_0x281ba4;return Fe(_0x334b66)[_0x5b18a5(0x151)](_0x42c534=>E(_0x42c534)&&_0x42c534['et']===_0x5b18a5(0x11b));}function Ne(_0x4f89d3){const _0x3f5d74=_0x281ba4;return Fe(_0x4f89d3)['some'](_0x2229c9=>Array[_0x3f5d74(0x170)](_0x2229c9)||typeof _0x2229c9==_0x3f5d74(0x2e7)||typeof _0x2229c9==_0x3f5d74(0x136));}function Pe(_0x21a87e){const _0x301283=_0x281ba4;return Fe(_0x21a87e)[_0x301283(0x151)](_0x5d3ec4=>!E(_0x5d3ec4)||_0x5d3ec4['et']!==_0x301283(0x11b)||!Array[_0x301283(0x170)](_0x5d3ec4['e'])?!0x1:_0x5d3ec4['e'][_0x301283(0x151)](_0xcf2509=>!E(_0xcf2509)||!E(_0xcf2509['body'])?!0x1:Object[_0x301283(0x1ff)][_0x301283(0x30a)][_0x301283(0x35d)](_0xcf2509[_0x301283(0x2dc)],'tables')||Object[_0x301283(0x1ff)]['hasOwnProperty'][_0x301283(0x35d)](_0xcf2509[_0x301283(0x2dc)],'columnGroups')||Object[_0x301283(0x1ff)][_0x301283(0x30a)][_0x301283(0x35d)](_0xcf2509[_0x301283(0x2dc)],'blockRanges')));}function Fe(_0x35fde2){const _0x5cf893=_0x281ba4;if(!Array[_0x5cf893(0x170)](_0x35fde2))return[];let _0x22945a=_0x35fde2['includes'](_0x5cf893(0x2dc))?_0x35fde2:_0x35fde2[_0x5cf893(0x3c1)](_0x19c5f1=>Array[_0x5cf893(0x170)](_0x19c5f1)&&_0x19c5f1[_0x5cf893(0x2c3)](_0x5cf893(0x2dc)));if(!Array[_0x5cf893(0x170)](_0x22945a))return[];let _0x2f7ea4=_0x22945a[_0x5cf893(0x2b4)](_0x5cf893(0x2dc));return _0x2f7ea4===-0x1?[]:_0x22945a['slice'](_0x2f7ea4+0x1);}function E(_0x1bdd6d){const _0x1cb87d=_0x281ba4;return typeof _0x1bdd6d=='object'&&!!_0x1bdd6d&&!Array[_0x1cb87d(0x170)](_0x1bdd6d);}function Ie(_0x44d173,_0x2f9cca){const _0xcf0edc=_0x281ba4;let _0x49a6c6=new i[(_0xcf0edc(0x197))](0x1);return setTimeout(()=>_0x49a6c6[_0xcf0edc(0xd2)](_0x2f9cca),_0x44d173),_0x49a6c6[_0xcf0edc(0x284)]()[_0xcf0edc(0x21e)]((0x0,i[_0xcf0edc(0x2ce)])(0x1));}var Le,Re,ze;let Be=function(_0x355960){const _0x377ac8=_0x281ba4;return _0x355960[_0x377ac8(0x10b)]='not_collab',_0x355960[_0x377ac8(0x336)]=_0x377ac8(0x1d5),_0x355960['PENDING']=_0x377ac8(0x1a0),_0x355960[_0x377ac8(0x286)]='awaiting',_0x355960['AWAITING_WITH_PENDING']=_0x377ac8(0x1ea),_0x355960[_0x377ac8(0x2d5)]=_0x377ac8(0x258),_0x355960[_0x377ac8(0xdb)]=_0x377ac8(0x175),_0x355960['OFFLINE']=_0x377ac8(0x2da),_0x355960;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0x589ab6,_0x2e005b,_0x2ea0f3,_0x331a2b,_0x1bc3f5,_0x4e2ddf,_0x2bb5a4,_0x39dcdf,_0x5b9659){const _0x1022a6=_0x281ba4;this[_0x1022a6(0x2f8)]=_0x589ab6,this[_0x1022a6(0x23b)]=_0x2e005b,this['_handler']=_0x1bc3f5,this[_0x1022a6(0x19d)]=_0x4e2ddf,this[_0x1022a6(0x2b8)]=_0x2bb5a4,this[_0x1022a6(0x1d1)]=_0x39dcdf,this[_0x1022a6(0x1ed)]=_0x5b9659,g(this,_0x1022a6(0x104),null),g(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x2ea0f3,this['_pendingMutations']=_0x331a2b;}['_checkMissing'](_0x3664e2){const _0x40e617=_0x281ba4;let _0x4fc9dd=this[_0x40e617(0x1d1)][_0x40e617(0xcc)](this['unitID']);return _0x3664e2[_0x40e617(0x1ca)]>_0x4fc9dd+0x1?(this[_0x40e617(0x350)]['onMissingChangesets']({'from':_0x4fc9dd,'to':_0x3664e2[_0x40e617(0x1ca)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2e4d0d){const _0x3eb232=_0x281ba4;this[_0x3eb232(0x2b8)][_0x3eb232(0x295)](this[_0x3eb232(0x2f8)],_0x2e4d0d);}[_0x281ba4(0x214)](_0x2d3b5b){const _0x2817d8=_0x281ba4;var _0x12a1ef,_0x448e7a;(_0x12a1ef=(_0x448e7a=this['_handler'])[_0x2817d8(0x3c2)])==null||_0x12a1ef[_0x2817d8(0x35d)](_0x448e7a,_0x2d3b5b);}['_transformIMECache'](_0xafb3eb){const _0x497db5=_0x281ba4;var _0x5ef083,_0x32985c;return(_0x5ef083=(_0x32985c=this[_0x497db5(0x350)])[_0x497db5(0xe2)])==null?void 0x0:_0x5ef083['call'](_0x32985c,_0xafb3eb);}[_0x281ba4(0x38e)](_0x23130d){const _0x13dd3a=_0x281ba4;var _0x287fb9,_0x3a669d;return(_0x287fb9=(_0x3a669d=this[_0x13dd3a(0x350)])[_0x13dd3a(0x17e)])==null?void 0x0:_0x287fb9[_0x13dd3a(0x35d)](_0x3a669d,_0x23130d);}[_0x281ba4(0x2c7)](_0x5f02c9){const _0x2a59d2=_0x281ba4;var _0x1bd6dc,_0x16757,_0x7eb0ca;return(_0x1bd6dc=(_0x16757=(_0x7eb0ca=this[_0x2a59d2(0x350)])[_0x2a59d2(0x186)])==null?void 0x0:_0x16757[_0x2a59d2(0x35d)](_0x7eb0ca,_0x5f02c9))==null?_0x5f02c9:_0x1bd6dc;}[_0x281ba4(0x1c4)](_0xe888e8){const _0x207539=_0x281ba4;var _0x537290,_0x52914b,_0x5404cb;return(_0x537290=(_0x52914b=(_0x5404cb=this[_0x207539(0x350)])[_0x207539(0x134)])==null?void 0x0:_0x52914b[_0x207539(0x35d)](_0x5404cb,_0xe888e8))==null?_0xe888e8:_0x537290;}[_0x281ba4(0x128)](_0x556e97){const _0x21f01d=_0x281ba4;if(this[_0x21f01d(0x23b)]===t[_0x21f01d(0x314)][_0x21f01d(0x157)]){let {unitID:_0x919fab,mutations:_0x4f2eaf,memberID:_0x274f73}=_0x556e97,_0x1f8fea=_0x4f2eaf[_0x21f01d(0x16d)]>0x0?_0x4f2eaf[0x0][_0x21f01d(0x390)][_0x21f01d(0x39b)]:[];if(Array['isArray'](_0x1f8fea)&&_0x1f8fea[_0x21f01d(0x16d)]>0x0){var _0x42bb08,_0x213188;(_0x42bb08=(_0x213188=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x42bb08['call'](_0x213188,{'unitID':_0x919fab,'memberID':_0x274f73,'textRanges':_0x1f8fea});}}}[_0x281ba4(0x27f)](){const _0x30434f=_0x281ba4;var _0x1f41c4;(_0x1f41c4=this[_0x30434f(0x1ed)])==null||_0x1f41c4['updateOfflineData'](this['unitID'],this[_0x30434f(0x23b)],this[_0x30434f(0x104)],this[_0x30434f(0x26e)]);}[_0x281ba4(0x24a)](){const _0x4661b9=_0x281ba4;return this[_0x4661b9(0x1d1)][_0x4661b9(0xcc)](this['unitID']);}['_incrementRevisionNumber'](){const _0x4c0e30=_0x281ba4;this['_revisionService'][_0x4c0e30(0x2e9)](this[_0x4c0e30(0x2f8)]);}['_executeRemoteChangeset'](_0x2ca1df){const _0xd77977=_0x281ba4;let _0xf68a63=this[_0xd77977(0x2c7)](_0x2ca1df);_0xf68a63=this[_0xd77977(0x1c4)](_0xf68a63);let _0x263765=(0x0,t[_0xd77977(0x2eb)])(_0xf68a63['mutations'],this[_0xd77977(0x19d)],{'fromCollab':!0x0});if(!_0x263765[_0xd77977(0xcb)]){var _0x1e8842;throw _0x263765[_0xd77977(0x3b2)]instanceof Error?_0x263765[_0xd77977(0x3b2)]:Error((_0x1e8842=_0x263765[_0xd77977(0x3b2)])==null?'[CollaborationState]:\x20apply\x20error!':_0x1e8842);}this['_transformIMECache'](_0xf68a63),this[_0xd77977(0x38e)](_0xf68a63),this[_0xd77977(0x2c5)](_0x2ca1df),this[_0xd77977(0x214)](_0xf68a63),this[_0xd77977(0x128)](_0xf68a63),this[_0xd77977(0x19a)]();}};let O=class extends D{constructor(_0x64f02d,_0x387955,_0x3d641a,_0x13ab0d,_0x3067eb,_0xc6b846,_0x217456,_0xbbcdd1,_0x36fcfc,_0xc81cf2){const _0x2d1a00=_0x281ba4;super(_0x64f02d,_0x387955,null,[],_0x3d641a,_0x217456,_0xc6b846,_0x13ab0d,_0xc81cf2),this[_0x2d1a00(0x103)]=_0x3067eb,this['_logService']=_0xbbcdd1,this[_0x2d1a00(0x1d7)]=_0x36fcfc,this['localCacheService']=_0xc81cf2,g(this,_0x2d1a00(0x132),'synced');}[_0x281ba4(0x3d4)](_0x2a6ec3){const _0x3f5acf=_0x281ba4;let _0x42a6b0=this[_0x3f5acf(0x103)]['createInstance'](k,this[_0x3f5acf(0x2f8)],this[_0x3f5acf(0x23b)],[_0x2a6ec3],this[_0x3f5acf(0x350)]);return _0x42a6b0[_0x3f5acf(0x3ad)](),_0x42a6b0[_0x3f5acf(0x27f)](),_0x42a6b0;}[_0x281ba4(0x26a)](_0x2aa81c){const _0x3bb9f6=_0x281ba4;if(this[_0x3bb9f6(0x35b)](_0x2aa81c))return this[_0x3bb9f6(0x103)][_0x3bb9f6(0x237)](P,this['unitID'],this['type'],null,[],null,[_0x2aa81c],this[_0x3bb9f6(0x350)]);try{let _0x4193ba=this[_0x3bb9f6(0x1d7)][_0x3bb9f6(0x207)](_0x2aa81c,[e['EmptyMutationInfo']]);if((0x0,e[_0x3bb9f6(0x3c6)])(_0x4193ba)){let {c1Prime:_0x47ac4a}=_0x4193ba;return this['_executeRemoteChangeset'](_0x47ac4a),this;}throw _0x4193ba['error'];}catch(_0x42e2f2){return this[_0x3bb9f6(0x3a2)]['error'](_0x42e2f2),this[_0x3bb9f6(0x22d)](!0x1);}}[_0x281ba4(0x22d)](_0x19c4cc){const _0x250f79=_0x281ba4;return this[_0x250f79(0x103)][_0x250f79(0x237)](M,this[_0x250f79(0x2f8)],this[_0x250f79(0x23b)],null,[],this[_0x250f79(0x350)],_0x19c4cc);}[_0x281ba4(0x28a)](_0x178fa7){const _0x4fdc8a=_0x281ba4;if(_0x178fa7[_0x4fdc8a(0x1ca)]<=this[_0x4fdc8a(0x24a)]())return this;throw Error(_0x4fdc8a(0x176));}[_0x281ba4(0x1d8)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x281ba4(0x16f)](){return this;}[_0x281ba4(0x3a4)](){const _0x63f969=_0x281ba4;return this[_0x63f969(0x103)][_0x63f969(0x237)](N,this[_0x63f969(0x2f8)],this[_0x63f969(0x23b)],null,[],this[_0x63f969(0x350)]);}['toggleOnline'](){return this;}[_0x281ba4(0x231)](){const _0x4dd7be=_0x281ba4;throw Error(_0x4dd7be(0x33e));}[_0x281ba4(0x32a)](){const _0x5029b9=_0x281ba4;let _0x2ee5a8=this[_0x5029b9(0x1d1)]['getCurrentRevOfUnit'](this[_0x5029b9(0x2f8)]);return this[_0x5029b9(0x350)]['onMissingChangesets']({'from':_0x2ee5a8,'to':0x0}),this[_0x5029b9(0x103)][_0x5029b9(0x237)](P,this[_0x5029b9(0x2f8)],this[_0x5029b9(0x23b)],null,[],null,[],this[_0x5029b9(0x350)]);}};O=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x5,t[_0x281ba4(0x194)]),v(0x6,t[_0x281ba4(0x300)]),v(0x7,t[_0x281ba4(0x150)]),v(0x8,e[_0x281ba4(0x1eb)]),v(0x9,(0x0,t[_0x281ba4(0x325)])(S))],O);let k=Le=class extends D{constructor(_0xf8ce8e,_0x35ca2a,_0x31e008,_0xe07f61,_0x179680,_0x42163a,_0x56d008,_0x1420fe,_0x5b71af,_0x4ae876,_0x2026a3,_0xcb757e,_0x11fe0c,_0x1e594){const _0x262c57=_0x281ba4;super(_0xf8ce8e,_0x35ca2a,null,_0x31e008,_0xe07f61,_0x5b71af,_0x11fe0c,_0x42163a,_0x1e594),this[_0x262c57(0x103)]=_0x179680,this['_memberService']=_0x56d008,this['_logService']=_0x1420fe,this['_configService']=_0x4ae876,this[_0x262c57(0x1d7)]=_0x2026a3,this[_0x262c57(0x193)]=_0xcb757e,g(this,_0x262c57(0x132),'pending'),g(this,_0x262c57(0x158),null),g(this,_0x262c57(0x37c),null);}[_0x281ba4(0x3d4)](_0x9c6870){const _0x585dbc=_0x281ba4;return this['_pendingMutations'][_0x585dbc(0x2a2)](_0x9c6870),this[_0x585dbc(0x27f)](),this;}['onRemoteChangeset'](_0x287182){const _0x52e70a=_0x281ba4;if(this[_0x52e70a(0x35b)](_0x287182))return this[_0x52e70a(0x2f6)](),this[_0x52e70a(0x103)]['createInstance'](P,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x287182],this[_0x52e70a(0x350)]);try{let _0x451072=this[_0x52e70a(0x1d7)][_0x52e70a(0x207)](_0x287182,this[_0x52e70a(0x26e)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x451072)){let {c1Prime:_0x56db05,m2Prime:_0x35b2c}=_0x451072;this[_0x52e70a(0x148)](_0x56db05);let _0x5272be=this[_0x52e70a(0x103)][_0x52e70a(0x237)](Le,this[_0x52e70a(0x2f8)],this[_0x52e70a(0x23b)],_0x35b2c,this[_0x52e70a(0x350)]);this['_clearScheduledTask']();let _0x3348bb=new Date()[_0x52e70a(0x312)](),_0x55621b=this[_0x52e70a(0x158)]?Math[_0x52e70a(0x155)](this[_0x52e70a(0x158)]-_0x3348bb,0x0):this['_getSendChangesetTimeout']();return _0x5272be['_schedule'](_0x55621b),_0x5272be;}throw _0x451072[_0x52e70a(0x3b2)];}catch(_0x81efb){return this[_0x52e70a(0x3a2)][_0x52e70a(0x3b2)](_0x81efb),this[_0x52e70a(0x22d)](!0x1);}}[_0x281ba4(0x28a)](_0x581927){const _0x3ebc22=_0x281ba4;if(_0x581927[_0x3ebc22(0x1ca)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x281ba4(0x1d8)](){const _0x46b275=_0x281ba4;throw Error(_0x46b275(0x3b8));}['onRemoteRetry'](){return this;}[_0x281ba4(0x3a4)](){const _0x45ec21=_0x281ba4;return this[_0x45ec21(0x2f6)](),this[_0x45ec21(0x103)][_0x45ec21(0x237)](N,this[_0x45ec21(0x2f8)],this[_0x45ec21(0x23b)],null,this['_pendingMutations'],this[_0x45ec21(0x350)]);}[_0x281ba4(0x329)](){return this;}['_schedule'](_0x3aa6dc){const _0x5022b1=_0x281ba4;let _0x2e0d22=_0x3aa6dc==null?this[_0x5022b1(0x1bc)]():_0x3aa6dc;this[_0x5022b1(0x158)]=new Date()[_0x5022b1(0x312)]()+_0x2e0d22,this[_0x5022b1(0x37c)]=setTimeout(()=>{const _0x515070=_0x5022b1;this[_0x515070(0x2f6)]();let _0x367c4f=null;switch(this[_0x515070(0x23b)]){case t['UniverInstanceType'][_0x515070(0x17b)]:_0x367c4f=T(this[_0x515070(0x26e)],this['unitID'],this[_0x515070(0x193)],this[_0x515070(0x1d1)],this[_0x515070(0x386)]);break;case t['UniverInstanceType']['UNIVER_DOC']:_0x367c4f=this[_0x515070(0x26e)][_0x515070(0x262)](_0x59a04d=>_0x59a04d['id']===n[_0x515070(0x1c8)]['id'])?Oe(this['_pendingMutations'],this[_0x515070(0x2f8)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']):T(this[_0x515070(0x26e)],this[_0x515070(0x2f8)],this[_0x515070(0x193)],this[_0x515070(0x1d1)],this[_0x515070(0x386)]);break;case t[_0x515070(0x314)][_0x515070(0x352)]:_0x367c4f=De(this[_0x515070(0x26e)],this['unitID'],this[_0x515070(0x193)],this['_revisionService'],this[_0x515070(0x386)]);break;case t[_0x515070(0x314)][_0x515070(0x2a1)]:_0x367c4f=T(this[_0x515070(0x26e)],this['unitID'],this['_univerInstanceService'],this[_0x515070(0x1d1)],this['_memberService']);break;case t[_0x515070(0x314)][_0x515070(0x37e)]:_0x367c4f=T(this[_0x515070(0x26e)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x4b9f4a,pendingMutations:_0x305418}=_0x367c4f;this[_0x515070(0x350)]['onSendChangeset'](_0x4b9f4a);let _0x144c01=_0x305418[_0x515070(0x16d)]?this['_injector'][_0x515070(0x237)](j,this['unitID'],this['type'],_0x4b9f4a,_0x305418,this[_0x515070(0x350)],void 0x0):this[_0x515070(0x103)]['createInstance'](A,this[_0x515070(0x2f8)],this['type'],_0x4b9f4a,this[_0x515070(0x350)]);_0x144c01[_0x515070(0x27f)](),this[_0x515070(0x350)][_0x515070(0x159)](this,_0x144c01);},_0x2e0d22);}[_0x281ba4(0x1bc)](){const _0x7e78b9=_0x281ba4;var _0xce42f9;let _0x57bdb1=this[_0x7e78b9(0x21b)][_0x7e78b9(0x321)](m);return(_0xce42f9=_0x57bdb1==null?void 0x0:_0x57bdb1[_0x7e78b9(0x34b)])==null?0x7d0:_0xce42f9;}[_0x281ba4(0x231)](){const _0x532464=_0x281ba4;throw Error(_0x532464(0xd7));}[_0x281ba4(0x2f6)](){const _0x4e9d7d=_0x281ba4;this['_sendingTimer']!=null&&(clearTimeout(this[_0x4e9d7d(0x37c)]),this['_sendingTimer']=null);}[_0x281ba4(0x22d)](_0x54efc2){const _0x2e649e=_0x281ba4;return this[_0x2e649e(0x2f6)](),this[_0x2e649e(0x103)]['createInstance'](M,this[_0x2e649e(0x2f8)],this[_0x2e649e(0x23b)],null,this['_pendingMutations'],this['_handler'],_0x54efc2);}};k=Le=y([v(0x4,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(b)),v(0x7,t[_0x281ba4(0x150)]),v(0x8,t['ICommandService']),v(0x9,t[_0x281ba4(0xca)]),v(0xa,e[_0x281ba4(0x1eb)]),v(0xb,t[_0x281ba4(0x1ad)]),v(0xc,t[_0x281ba4(0x194)]),v(0xd,(0x0,t['Optional'])(S))],k);let A=Re=class extends D{constructor(_0x107ca1,_0x57bc5c,_0x45b15e,_0x13b9fd,_0x4ea1fe,_0x8e4e65,_0x29caf0,_0x4cdd10,_0x10145e,_0x22d7e9,_0x348e61){const _0x110654=_0x281ba4;super(_0x107ca1,_0x57bc5c,_0x45b15e,[],_0x13b9fd,_0x29caf0,_0x22d7e9,_0x8e4e65,_0x348e61),this[_0x110654(0x103)]=_0x4ea1fe,this['_logService']=_0x4cdd10,this[_0x110654(0x1d7)]=_0x10145e,g(this,'status',_0x110654(0x283)),g(this,_0x110654(0x3ca),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,'_resendTimer',void 0x0),g(this,'_sender',void 0x0);}[_0x281ba4(0x3d4)](_0x49b4db){const _0x51ac19=_0x281ba4;this[_0x51ac19(0x2f6)]();let _0x2855a0=this[_0x51ac19(0x103)][_0x51ac19(0x237)](j,this['unitID'],this['type'],this[_0x51ac19(0x104)],[_0x49b4db],this['_handler'],this[_0x51ac19(0x37b)]);return _0x2855a0[_0x51ac19(0x27f)](),_0x2855a0;}[_0x281ba4(0x26a)](_0x49f32d){const _0x138252=_0x281ba4;if(this[_0x138252(0x35b)](_0x49f32d))return this[_0x138252(0x2f6)](),this[_0x138252(0x103)][_0x138252(0x237)](P,this['unitID'],this[_0x138252(0x23b)],this[_0x138252(0x104)],[],null,[_0x49f32d],this['_handler']);try{let _0x45891a=this[_0x138252(0x1d7)]['transformChangesets']([_0x49f32d],[this[_0x138252(0x104)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x45891a)){let {c1Prime:_0x36dd7e,c2Prime:_0x568a8c}=_0x45891a;this['_executeRemoteChangeset'](_0x36dd7e[0x0]),_0x568a8c[0x0][_0x138252(0x32e)]=this[_0x138252(0x24a)](),this['_clearScheduledTask']();let _0x51b2b5=this[_0x138252(0x103)][_0x138252(0x237)](Re,this[_0x138252(0x2f8)],this['type'],_0x568a8c[0x0],this[_0x138252(0x350)]);return _0x51b2b5[_0x138252(0x27f)](),_0x51b2b5;}throw _0x45891a[_0x138252(0x3b2)];}catch(_0x44d49b){return this['_logService']['error'](_0x44d49b),this[_0x138252(0x22d)](!0x1);}}['onRemoteAck'](_0x39c774){const _0x257f38=_0x281ba4;this[_0x257f38(0x2f6)]();let _0x4c22fb=this['_revisionService']['getCurrentRevOfUnit'](this[_0x257f38(0x2f8)]);if(_0x39c774[_0x257f38(0x1ca)]<=_0x4c22fb)return this;if(this['_checkMissing'](_0x39c774))return this[_0x257f38(0x103)][_0x257f38(0x237)](P,this[_0x257f38(0x2f8)],this['type'],this[_0x257f38(0x104)],[],_0x39c774[_0x257f38(0x1ca)],[],this[_0x257f38(0x350)]);this[_0x257f38(0x19a)]();let _0xcc8e64=this[_0x257f38(0x103)][_0x257f38(0x237)](O,this[_0x257f38(0x2f8)],this['type'],this[_0x257f38(0x350)]);return _0xcc8e64[_0x257f38(0x27f)](),_0xcc8e64;}[_0x281ba4(0x1d8)](_0x373573){const _0x2439bb=_0x281ba4;return this[_0x2439bb(0x22d)](!!(_0x373573!=null&&_0x373573[_0x2439bb(0x39d)]));}['onRemoteRetry'](_0x3cc1bc){const _0x193b9b=_0x281ba4;return this['_maxTotalRetryTimeout']>He?this['toggleOffline']():(this['_resendTimer']=Ie(this[_0x193b9b(0x3ca)],{'timeout':this[_0x193b9b(0x3ca)],'reqId':_0x3cc1bc[_0x193b9b(0x376)]}),this['_sender']=this[_0x193b9b(0x37b)][_0x193b9b(0x2a5)](({reqId:_0xc8fef7,timeout:_0x5c2b7b})=>{this['_resendWithTimeout'](_0xc8fef7,_0x5c2b7b);}),this);}[_0x281ba4(0x3a4)](){const _0x47cae5=_0x281ba4;return this[_0x47cae5(0x2f6)](),this[_0x47cae5(0x103)][_0x47cae5(0x237)](N,this[_0x47cae5(0x2f8)],this[_0x47cae5(0x23b)],this[_0x47cae5(0x104)],[],this['_handler']);}[_0x281ba4(0x329)](){return this;}['resend'](){const _0x27f4f8=_0x281ba4;this[_0x27f4f8(0x350)]['onSendChangeset'](this[_0x27f4f8(0x104)]);}['_onConflict'](_0x546f02){const _0x2d6110=_0x281ba4;return this['_clearScheduledTask'](),this[_0x2d6110(0x103)][_0x2d6110(0x237)](M,this['unitID'],this[_0x2d6110(0x23b)],this[_0x2d6110(0x104)],[],this['_handler'],_0x546f02);}[_0x281ba4(0xea)](_0x19b75f,_0x280e4d){const _0x159acb=_0x281ba4;var _0x31285c;_0x19b75f===((_0x31285c=this[_0x159acb(0x104)])==null?void 0x0:_0x31285c[_0x159acb(0x376)])&&(this[_0x159acb(0x231)](),this[_0x159acb(0x3ca)]=_0x280e4d===0x0?0x3e8:Math[_0x159acb(0x3ac)](_0x280e4d*0x2,Ve),this[_0x159acb(0x235)]+=this[_0x159acb(0x3ca)]);}[_0x281ba4(0x2f6)](){const _0x6ca7c7=_0x281ba4;var _0xa17a87;(_0xa17a87=this[_0x6ca7c7(0x34a)])==null||_0xa17a87['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};A=Re=y([v(0x4,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x5,(0x0,t['Inject'])(e['RevisionService'])),v(0x6,t['ICommandService']),v(0x7,t[_0x281ba4(0x150)]),v(0x8,e['ITransformService']),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x281ba4(0x325)])(S))],A);let j=ze=class extends D{constructor(_0x270416,_0x405887,_0x11eb89,_0x536464,_0x34f91a,_0x487ed2,_0x20645e,_0x1a46dd,_0x379b8e,_0x162654,_0x212f19,_0x4c6dfe,_0x5b91b5){const _0x52020a=_0x281ba4;super(_0x270416,_0x405887,_0x11eb89,_0x536464,_0x34f91a,_0x379b8e,_0x4c6dfe,_0x1a46dd,_0x5b91b5),this[_0x52020a(0x103)]=_0x20645e,this['_logService']=_0x162654,this[_0x52020a(0x1d7)]=_0x212f19,this[_0x52020a(0x290)]=_0x5b91b5,g(this,_0x52020a(0x132),_0x52020a(0x1ea)),g(this,'_resendTimeout',0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x52020a(0x37b),void 0x0),g(this,'_sender',void 0x0),_0x487ed2&&(this[_0x52020a(0x37b)]=_0x487ed2,this['_sender']=this[_0x52020a(0x37b)]['subscribe'](({reqId:_0x5903be,timeout:_0x534d31})=>{const _0x8c5921=_0x52020a;this[_0x8c5921(0xea)](_0x5903be,_0x534d31);}));}[_0x281ba4(0x3d4)](_0x178ddb){const _0x2cc347=_0x281ba4;return this[_0x2cc347(0x26e)][_0x2cc347(0x2a2)](_0x178ddb),this;}[_0x281ba4(0x26a)](_0x3de708){const _0x260c5a=_0x281ba4;if(this[_0x260c5a(0x35b)](_0x3de708))return this[_0x260c5a(0x2f6)](),this['_injector']['createInstance'](P,this[_0x260c5a(0x2f8)],this[_0x260c5a(0x23b)],this[_0x260c5a(0x104)],this[_0x260c5a(0x26e)],null,[_0x3de708],this['_handler']);try{let _0x20308e=this[_0x260c5a(0x1d7)][_0x260c5a(0x397)]([_0x3de708],[this[_0x260c5a(0x104)]],!0x1);if((0x0,e[_0x260c5a(0x36b)])(_0x20308e)){let {c1Prime:_0x27e4f2,c2Prime:_0x2c8b5b}=_0x20308e,_0x550960=this[_0x260c5a(0x1d7)][_0x260c5a(0x207)](_0x27e4f2[0x0],this[_0x260c5a(0x26e)]);if((0x0,e[_0x260c5a(0x3c6)])(_0x550960)){let {c1Prime:_0x47cd63,m2Prime:_0x547b3b}=_0x550960;return this[_0x260c5a(0x148)](_0x47cd63),_0x2c8b5b[0x0][_0x260c5a(0x32e)]=this[_0x260c5a(0x24a)](),this[_0x260c5a(0x2f6)](),this[_0x260c5a(0x103)][_0x260c5a(0x237)](ze,this[_0x260c5a(0x2f8)],this[_0x260c5a(0x23b)],_0x2c8b5b[0x0],_0x547b3b,this[_0x260c5a(0x350)],void 0x0);}throw _0x550960[_0x260c5a(0x3b2)];}throw _0x20308e[_0x260c5a(0x3b2)];}catch(_0x17eadb){return this[_0x260c5a(0x3a2)][_0x260c5a(0x3b2)](_0x17eadb),this[_0x260c5a(0x22d)](!0x1);}}[_0x281ba4(0x28a)](_0x5e2998){const _0x4ac21b=_0x281ba4;this[_0x4ac21b(0x2f6)]();let _0x1fc072=this[_0x4ac21b(0x24a)]();if(_0x5e2998['revision']<=_0x1fc072)return this;if(this['_checkMissing'](_0x5e2998))return this[_0x4ac21b(0x103)]['createInstance'](P,this[_0x4ac21b(0x2f8)],this['type'],this[_0x4ac21b(0x104)],this[_0x4ac21b(0x26e)],_0x5e2998['revision'],[],this[_0x4ac21b(0x350)]);this[_0x4ac21b(0x19a)]();let _0x98c5c=this['_injector']['createInstance'](k,this[_0x4ac21b(0x2f8)],this[_0x4ac21b(0x23b)],this[_0x4ac21b(0x26e)],this[_0x4ac21b(0x350)]);return _0x98c5c['_schedule'](),_0x98c5c[_0x4ac21b(0x27f)](),_0x98c5c;}[_0x281ba4(0x1d8)](_0x2493c3){const _0x65714c=_0x281ba4;return this[_0x65714c(0x22d)](!!(_0x2493c3!=null&&_0x2493c3['isPermissionRej']));}[_0x281ba4(0x16f)](_0x42c107){const _0x3bd0bd=_0x281ba4;return this['_maxTotalRetryTimeout']>He?this['toggleOffline']():(this[_0x3bd0bd(0x37b)]=Ie(this[_0x3bd0bd(0x3ca)],{'timeout':this[_0x3bd0bd(0x3ca)],'reqId':_0x42c107[_0x3bd0bd(0x376)]}),this['_sender']=this[_0x3bd0bd(0x37b)][_0x3bd0bd(0x2a5)](({reqId:_0x14c2cd,timeout:_0x5825c1})=>{const _0x283ce7=_0x3bd0bd;this[_0x283ce7(0xea)](_0x14c2cd,_0x5825c1);}),this);}[_0x281ba4(0x3a4)](){const _0x3a9114=_0x281ba4;return this[_0x3a9114(0x2f6)](),this['_injector'][_0x3a9114(0x237)](N,this[_0x3a9114(0x2f8)],this['type'],this['_awaitingChangeset'],this[_0x3a9114(0x26e)],this[_0x3a9114(0x350)]);}[_0x281ba4(0x329)](){return this;}[_0x281ba4(0x231)](){const _0x5607d3=_0x281ba4;this[_0x5607d3(0x350)][_0x5607d3(0x1c1)](this[_0x5607d3(0x104)]);}[_0x281ba4(0x22d)](_0xc5863b){const _0x267269=_0x281ba4;return this[_0x267269(0x2f6)](),this[_0x267269(0x103)][_0x267269(0x237)](M,this[_0x267269(0x2f8)],this[_0x267269(0x23b)],null,this[_0x267269(0x26e)],this[_0x267269(0x350)],_0xc5863b);}[_0x281ba4(0xea)](_0x59a90c,_0x301f3f){const _0x146c3f=_0x281ba4;var _0x4ae83b;_0x59a90c===((_0x4ae83b=this['_awaitingChangeset'])==null?void 0x0:_0x4ae83b[_0x146c3f(0x376)])&&(this['resend'](),this['_resendTimeout']=_0x301f3f===0x0?0x3e8:Math[_0x146c3f(0x3ac)](_0x301f3f*0x2,Ve),this[_0x146c3f(0x235)]+=this[_0x146c3f(0x3ca)]);}[_0x281ba4(0x2f6)](){const _0x17e1b7=_0x281ba4;var _0x367aa5;(_0x367aa5=this[_0x17e1b7(0x34a)])==null||_0x367aa5[_0x17e1b7(0x259)](),this[_0x17e1b7(0x3ca)]=0x0,this[_0x17e1b7(0x235)]=0x0;}};j=ze=y([v(0x6,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x8,t['ICommandService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,e['ITransformService']),v(0xb,t[_0x281ba4(0x194)]),v(0xc,(0x0,t[_0x281ba4(0x325)])(S))],j);let M=class extends D{constructor(_0x47c50e,_0x1c8d67,_0x1422a8,_0x1a45c2,_0x495f9,_0x532945=!0x1,_0x537d93,_0x4c9ac0,_0x51dcc6,_0x236db7,_0x5ba46f,_0x404418,_0x4c63e2){const _0x16c7bf=_0x281ba4;super(_0x47c50e,_0x1c8d67,_0x1422a8,_0x1a45c2,_0x495f9,_0x4c9ac0,_0x51dcc6,_0x236db7,_0x4c63e2),this[_0x16c7bf(0x2f9)]=_0x532945,this[_0x16c7bf(0x203)]=_0x537d93,this[_0x16c7bf(0x166)]=_0x5ba46f,this[_0x16c7bf(0x1a1)]=_0x404418,this[_0x16c7bf(0x290)]=_0x4c63e2,g(this,_0x16c7bf(0x132),_0x16c7bf(0x175)),this[_0x16c7bf(0x3c5)](),this[_0x16c7bf(0x2be)](),this[_0x16c7bf(0x3ab)]();}[_0x281ba4(0x3d4)](){return this;}[_0x281ba4(0x26a)](){return this;}[_0x281ba4(0x28a)](){return this;}[_0x281ba4(0x1d8)](){return this;}[_0x281ba4(0x16f)](){return this;}[_0x281ba4(0x3a4)](){return this;}[_0x281ba4(0x329)](){return this;}[_0x281ba4(0x231)](){const _0x450fbd=_0x281ba4;throw Error(_0x450fbd(0x1e2));}[_0x281ba4(0x2be)](){const _0x5c301c=_0x281ba4;var _0x2319c7,_0x49f9c8,_0xbbe16;(_0x2319c7=this[_0x5c301c(0x1ed)])==null||(_0x49f9c8=_0x2319c7['backupOfflineData'])==null||(_0x49f9c8=_0x49f9c8[_0x5c301c(0x35d)](_0x2319c7,this[_0x5c301c(0x2f8)],_0x5c301c(0x175)))==null||_0x49f9c8[_0x5c301c(0x234)](()=>void 0x0),(_0xbbe16=this[_0x5c301c(0x1ed)])==null||_0xbbe16['updateOfflineData'](this[_0x5c301c(0x2f8)],this[_0x5c301c(0x23b)],null,[]);}[_0x281ba4(0x3c5)](){const _0x764612=_0x281ba4;this[_0x764612(0x2f9)]?this[_0x764612(0x1a1)][_0x764612(0x298)]({'id':_0x764612(0x278)}):this[_0x764612(0x1a1)][_0x764612(0x298)]({'id':_0x764612(0xdb)});}[_0x281ba4(0x3ab)](){const _0x51bdbe=_0x281ba4;this[_0x51bdbe(0x203)][_0x51bdbe(0x30d)](new r[(_0x51bdbe(0x10a))](this[_0x51bdbe(0x2f8)])['id'],!0x1);}};M=y([v(0x6,(0x0,t['Inject'])(t[_0x281ba4(0x26f)])),v(0x7,t[_0x281ba4(0x300)]),v(0x8,t[_0x281ba4(0x194)]),v(0x9,(0x0,t['Inject'])(e[_0x281ba4(0x2cb)])),v(0xa,(0x0,t[_0x281ba4(0x241)])(t['LocaleService'])),v(0xb,(0x0,t['Inject'])(_)),v(0xc,(0x0,t[_0x281ba4(0x325)])(S))],M);let N=class extends D{constructor(_0x1ce33e,_0x36bc68,_0x544e0e,_0x4aaa56,_0x124807,_0x345d38,_0x45b10a,_0x31a7c5,_0x4dbe6b,_0xfffa56){const _0x155a08=_0x281ba4;super(_0x1ce33e,_0x36bc68,_0x544e0e,_0x4aaa56,_0x124807,_0x31a7c5,_0x4dbe6b,_0x45b10a,_0xfffa56),this['_injector']=_0x345d38,g(this,_0x155a08(0x132),_0x155a08(0x2da));}[_0x281ba4(0x3d4)](_0x13387f){const _0x5516d6=_0x281ba4;return this[_0x5516d6(0x26e)][_0x5516d6(0x2a2)](_0x13387f),this[_0x5516d6(0x27f)](),this;}[_0x281ba4(0x26a)](_0x2bb161){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x321142=_0x281ba4;throw Error(_0x321142(0x313));}[_0x281ba4(0x1d8)](){const _0x487b23=_0x281ba4;throw Error(_0x487b23(0x36d));}['onRemoteRetry'](){return this;}[_0x281ba4(0x3a4)](){return this;}[_0x281ba4(0x329)](){const _0x3b1675=_0x281ba4;let {_injector:_0x66a05f,_pendingMutations:_0x178458,_awaitingChangeset:_0x47dd2c,unitID:_0x410ab9,_handler:_0x28a060,type:_0x6edf20}=this,_0x13c6ef=Ue(_0x66a05f,_0x410ab9,_0x6edf20,_0x47dd2c,_0x178458,_0x28a060);return _0x13c6ef instanceof k?_0x13c6ef[_0x3b1675(0x3ad)]():(_0x13c6ef instanceof j||_0x13c6ef instanceof A)&&_0x13c6ef['resend'](),_0x13c6ef;}[_0x281ba4(0x231)](){const _0x2c7edd=_0x281ba4;throw Error(_0x2c7edd(0x19f));}};N=y([v(0x5,(0x0,t[_0x281ba4(0x241)])(t['Injector'])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,t[_0x281ba4(0x300)]),v(0x8,t[_0x281ba4(0x194)]),v(0x9,(0x0,t[_0x281ba4(0x325)])(S))],N);let P=class extends D{constructor(_0x55e603,_0x1064f1,_0x44ce24,_0x556305,_0x489e40,_0xa1396f,_0x46b7a0,_0x527752,_0x14e920,_0x55ef18,_0xae2da9,_0x22db60,_0x4dc534,_0x4caa42){const _0x38113f=_0x281ba4;super(_0x55e603,_0x1064f1,_0x44ce24,_0x556305,_0x46b7a0,_0xae2da9,_0x22db60,_0x14e920,_0x4caa42),this['_acknowledgedAwaitingRevision']=_0x489e40,this[_0x38113f(0x3d7)]=_0xa1396f,this['_injector']=_0x527752,this[_0x38113f(0x3a2)]=_0x55ef18,this[_0x38113f(0x1d7)]=_0x4dc534,this[_0x38113f(0x290)]=_0x4caa42,g(this,_0x38113f(0x132),_0x38113f(0x258));}[_0x281ba4(0x26d)](_0x4a8957){const _0x10f3f5=_0x281ba4;try{if(this['_handleRemoteChangesets'](_0x4a8957)[_0x10f3f5(0x34f)])throw Error(_0x10f3f5(0x1b5));if(this[_0x10f3f5(0x349)]([...this[_0x10f3f5(0x3d7)]][_0x10f3f5(0x139)]((_0x405014,_0x723a3)=>_0x405014['revision']-_0x723a3[_0x10f3f5(0x1ca)]))[_0x10f3f5(0x34f)])return this[_0x10f3f5(0x3d7)]=[],this[_0x10f3f5(0x27f)](),this[_0x10f3f5(0x350)][_0x10f3f5(0x20e)]({'from':this[_0x10f3f5(0x24a)](),'to':0x0}),this;let _0x468ed2=this[_0x10f3f5(0x104)],_0x4725b1=this['_pendingMutations'],_0xb70c51;if(_0x468ed2&&_0x4725b1[_0x10f3f5(0x16d)]!==0x0)_0xb70c51=this[_0x10f3f5(0x103)][_0x10f3f5(0x237)](j,this[_0x10f3f5(0x2f8)],this['type'],_0x468ed2,_0x4725b1,this['_handler'],void 0x0);else{if(_0x468ed2&&_0x4725b1[_0x10f3f5(0x16d)]===0x0)_0x468ed2[_0x10f3f5(0x32e)]=this[_0x10f3f5(0x24a)](),_0xb70c51=this[_0x10f3f5(0x103)]['createInstance'](A,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],_0x468ed2,this['_handler']);else{if(_0x4725b1[_0x10f3f5(0x16d)]!==0x0){let _0x10cf49=this[_0x10f3f5(0x103)]['createInstance'](k,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],_0x4725b1,this['_handler']);_0x10cf49[_0x10f3f5(0x3ad)](),_0xb70c51=_0x10cf49;}else _0xb70c51=this[_0x10f3f5(0x103)]['createInstance'](O,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],this[_0x10f3f5(0x350)]);}}return _0xb70c51[_0x10f3f5(0x27f)](),_0xb70c51;}catch(_0x3fb07a){return this[_0x10f3f5(0x3a2)][_0x10f3f5(0x3b2)](_0x10f3f5(0x2a9),_0x10f3f5(0x24e),_0x3fb07a),this[_0x10f3f5(0x103)][_0x10f3f5(0x237)](M,this[_0x10f3f5(0x2f8)],this[_0x10f3f5(0x23b)],this[_0x10f3f5(0x104)],this['_pendingMutations'],this[_0x10f3f5(0x350)],!0x1);}}[_0x281ba4(0x349)](_0x3771fb){const _0x11ba37=_0x281ba4;this[_0x11ba37(0x315)]();for(let _0x584eac=0x0;_0x584eac<_0x3771fb[_0x11ba37(0x16d)];_0x584eac++){let _0x4552dc=_0x3771fb[_0x584eac],_0x8509d1=this['_getCurrentRevision']();if(!(_0x4552dc[_0x11ba37(0x1ca)]<=_0x8509d1)){if(_0x4552dc[_0x11ba37(0x1ca)]>_0x8509d1+0x1)return{'missingChangesets':!0x0};if(this[_0x11ba37(0x3c4)](_0x4552dc)){this[_0x11ba37(0x3a1)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x4552dc),this[_0x11ba37(0x315)]();}}return{'missingChangesets':!0x1};}[_0x281ba4(0x39a)](_0x3012a5){const _0x2de16f=_0x281ba4;let _0x3a74cf=_0x3012a5,_0x12c648=this[_0x2de16f(0x104)];if(_0x12c648){let _0x2105fe=this['_transformService'][_0x2de16f(0x397)]([_0x3012a5],[_0x12c648],!0x1);if(!(0x0,e[_0x2de16f(0x36b)])(_0x2105fe))throw _0x2105fe[_0x2de16f(0x3b2)];_0x3a74cf=_0x2105fe[_0x2de16f(0x167)][0x0],_0x12c648=_0x2105fe[_0x2de16f(0x18f)][0x0];}let _0x2189cb=this[_0x2de16f(0x26e)];if(_0x2189cb['length']){let _0x50e9b=this[_0x2de16f(0x1d7)]['transformMutationsWithChangeset'](_0x3a74cf,_0x2189cb);if(!(0x0,e[_0x2de16f(0x3c6)])(_0x50e9b))throw _0x50e9b['error'];_0x3a74cf=_0x50e9b[_0x2de16f(0x167)],_0x2189cb=_0x50e9b[_0x2de16f(0x275)];}this['_executeRemoteChangeset'](_0x3a74cf),_0x12c648&&(_0x12c648['baseRev']=this[_0x2de16f(0x24a)]()),this[_0x2de16f(0x104)]=_0x12c648,this[_0x2de16f(0x26e)]=_0x2189cb;}[_0x281ba4(0x315)](){const _0x32a50c=_0x281ba4;if(!this['_awaitingChangeset']||this[_0x32a50c(0x327)]==null)return;let _0x2d07e9=this[_0x32a50c(0x24a)]();if(this[_0x32a50c(0x327)]<=_0x2d07e9)throw Error(_0x32a50c(0x34d)+this[_0x32a50c(0x327)]+'.');this['_acknowledgedAwaitingRevision']===_0x2d07e9+0x1&&this[_0x32a50c(0x3a1)]();}['_acknowledgeAwaiting'](){const _0xe2597e=_0x281ba4;this[_0xe2597e(0x19a)](),this['_awaitingChangeset']=null,this[_0xe2597e(0x327)]=null;}[_0x281ba4(0x3c4)](_0x5d2f21){const _0x2718cd=_0x281ba4;let _0x2be4e6=this['_awaitingChangeset'];return!_0x2be4e6||!_0x2be4e6[_0x2718cd(0x239)]||_0x2be4e6[_0x2718cd(0x376)]===null||_0x2be4e6[_0x2718cd(0x376)]===void 0x0?!0x1:_0x5d2f21[_0x2718cd(0x2f8)]===_0x2be4e6[_0x2718cd(0x2f8)]&&_0x5d2f21[_0x2718cd(0x239)]===_0x2be4e6[_0x2718cd(0x239)]&&_0x5d2f21['reqId']===_0x2be4e6[_0x2718cd(0x376)];}['resend'](){const _0x650584=_0x281ba4;throw Error(_0x650584(0x192));}[_0x281ba4(0x3d4)](_0x31875f){const _0x23b946=_0x281ba4;return this[_0x23b946(0x26e)]['push'](_0x31875f),this;}[_0x281ba4(0x26a)](_0x30ab2b){const _0x35d989=_0x281ba4;return this[_0x35d989(0x3d7)][_0x35d989(0x2a2)](_0x30ab2b),this;}[_0x281ba4(0x28a)](_0x33c7d8){const _0xc2cc2d=_0x281ba4;if(this[_0xc2cc2d(0x104)]){let _0x4d6cd9=this[_0xc2cc2d(0x24a)]();return _0x33c7d8['revision']<=_0x4d6cd9||(_0x4d6cd9+0x1===_0x33c7d8[_0xc2cc2d(0x1ca)]?(this[_0xc2cc2d(0x19a)](),this[_0xc2cc2d(0x104)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0xc2cc2d(0x327)]=_0x33c7d8[_0xc2cc2d(0x1ca)]),this;}if(_0x33c7d8[_0xc2cc2d(0x1ca)]<=this[_0xc2cc2d(0x24a)]())return this;throw Error(_0xc2cc2d(0x216));}[_0x281ba4(0x1d8)](_0x5d3805){const _0x1c62e0=_0x281ba4;return this[_0x1c62e0(0x22d)](!!(_0x5d3805!=null&&_0x5d3805[_0x1c62e0(0x39d)]));}[_0x281ba4(0x16f)](){return this;}[_0x281ba4(0x3a4)](){const _0x2d7118=_0x281ba4;return this[_0x2d7118(0x103)]['createInstance'](N,this[_0x2d7118(0x2f8)],this['type'],this[_0x2d7118(0x104)],this[_0x2d7118(0x26e)],this[_0x2d7118(0x350)]);}[_0x281ba4(0x329)](){return this;}[_0x281ba4(0x22d)](_0x38cf61){const _0x2b795d=_0x281ba4;return this[_0x2b795d(0x103)][_0x2b795d(0x237)](M,this['unitID'],this[_0x2b795d(0x23b)],this[_0x2b795d(0x104)],this[_0x2b795d(0x26e)],this[_0x2b795d(0x350)],_0x38cf61);}};P=y([v(0x7,(0x0,t['Inject'])(t[_0x281ba4(0x145)])),v(0x8,(0x0,t[_0x281ba4(0x241)])(e['RevisionService'])),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t['IUndoRedoService']),v(0xc,e[_0x281ba4(0x1eb)]),v(0xd,(0x0,t[_0x281ba4(0x325)])(S))],P);function Ue(_0x667d11,_0x9621e9,_0x5df0bb,_0x2e5388,_0xf3a2e1,_0x31bd87){const _0x49c45b=_0x281ba4;return _0x2e5388&&_0xf3a2e1[_0x49c45b(0x16d)]?_0x667d11[_0x49c45b(0x237)](j,_0x9621e9,_0x5df0bb,_0x2e5388,_0xf3a2e1,_0x31bd87,void 0x0):_0x2e5388?_0x667d11['createInstance'](A,_0x9621e9,_0x5df0bb,_0x2e5388,_0x31bd87):_0xf3a2e1[_0x49c45b(0x16d)]?_0x667d11[_0x49c45b(0x237)](k,_0x9621e9,_0x5df0bb,_0xf3a2e1,_0x31bd87):_0x667d11[_0x49c45b(0x237)](O,_0x9621e9,_0x5df0bb,_0x31bd87);}let F=class extends t['RxDisposable']{get[_0x281ba4(0x304)](){const _0x54dca5=_0x281ba4;return this[_0x54dca5(0x372)];}constructor(_0x18f88e,_0x22b3b9,_0x753960,_0x1e1efe,_0x491c42,_0xd9707e,_0x143d37,_0x18fbdd,_0x23724f,_0x441b3d,_0xdfb6b6,_0x4345b8,_0x19b5f9,_0x451364){const _0x17983b=_0x281ba4;super(),this[_0x17983b(0x2f8)]=_0x18f88e,this[_0x17983b(0x2cc)]=_0x22b3b9,this['_type']=_0x753960,this[_0x17983b(0x103)]=_0x1e1efe,this[_0x17983b(0x35c)]=_0x491c42,this[_0x17983b(0x166)]=_0xd9707e,this[_0x17983b(0x1d1)]=_0x143d37,this[_0x17983b(0x110)]=_0x18fbdd,this[_0x17983b(0x193)]=_0x23724f,this[_0x17983b(0x3a2)]=_0x441b3d,this['_commandService']=_0xdfb6b6,this[_0x17983b(0x203)]=_0x4345b8,this[_0x17983b(0x15e)]=_0x19b5f9,this['_localCacheService']=_0x451364,g(this,_0x17983b(0x2b9),new i[(_0x17983b(0x332))](null)),g(this,_0x17983b(0xd3),this[_0x17983b(0x2b9)]['asObservable']()),g(this,'_state',void 0x0),g(this,_0x17983b(0x2cd),!0x1),g(this,_0x17983b(0x14b),''),g(this,_0x17983b(0x330),0x0),g(this,_0x17983b(0x3a9),this[_0x17983b(0xd3)]['pipe']((0x0,i[_0x17983b(0x26b)])(_0x1f95fa=>_0x1f95fa?_0x1f95fa[_0x17983b(0x132)]:_0x17983b(0x2da)),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x17983b(0x351),!0x1),g(this,_0x17983b(0x255),[]);}async[_0x281ba4(0x2cf)](){const _0x21cd63=_0x281ba4;if(this[_0x21cd63(0x304)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x21cd63(0x379)]();}[_0x281ba4(0x2d3)](){const _0x168f77=_0x281ba4;return this[_0x168f77(0x2cd)]=!0x0,(0x0,t[_0x168f77(0x2c6)])(()=>{const _0x5e331e=_0x168f77;this[_0x5e331e(0x2cd)]=!0x1,this[_0x5e331e(0x3aa)]();});}[_0x281ba4(0x2b6)](_0x230a71){const _0x460250=_0x281ba4;this[_0x460250(0x22f)](_0x230a71);}['_updateState'](_0x5c225b){const _0x4ee147=_0x281ba4;this[_0x4ee147(0x372)]=_0x5c225b,this[_0x4ee147(0x2b9)]['next'](_0x5c225b);}async[_0x281ba4(0x379)](){const _0x1bcbd1=_0x281ba4;if(this[_0x1bcbd1(0x126)](await this[_0x1bcbd1(0x31f)]()),this['_singleActiveUnitService']){var _0x5645d6;(_0x5645d6=this[_0x1bcbd1(0x15e)])==null||_0x5645d6[_0x1bcbd1(0x380)](this[_0x1bcbd1(0x2f8)]),this[_0x1bcbd1(0x143)](this[_0x1bcbd1(0x15e)][_0x1bcbd1(0x343)](this['unitID'])[_0x1bcbd1(0x2a5)](_0x392cdd=>{const _0x1c7fef=_0x1bcbd1;this[_0x1c7fef(0x3a2)]['debug'](_0x1c7fef(0x361),_0x1c7fef(0xd6),_0x392cdd),_0x392cdd===0x1?(this[_0x1c7fef(0x110)][_0x1c7fef(0x298)]({'id':_0x1c7fef(0xf3)}),this[_0x1c7fef(0x203)][_0x1c7fef(0x30d)](new r[(_0x1c7fef(0x10a))](this[_0x1c7fef(0x2f8)])['id'],!0x1),this['_permissionService'][_0x1c7fef(0x12b)](!0x1)):(this[_0x1c7fef(0x203)][_0x1c7fef(0x30d)](new r[(_0x1c7fef(0x10a))](this[_0x1c7fef(0x2f8)])['id'],!0x0),this[_0x1c7fef(0x203)]['setShowComponents'](!0x0));}));}let _0x106926=!0x1;return this['disposeWithMe'](this['session'][_0x1bcbd1(0x1a6)][_0x1bcbd1(0x2a5)](_0x16da46=>{const _0x366e3c=_0x1bcbd1;_0x16da46===0x3?this[_0x366e3c(0x33f)](_0x106926):_0x16da46===0x2&&(_0x106926=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x1bcbd1(0x2cc)][_0x1bcbd1(0x22c)]['subscribe'](_0x51d247=>{const _0x244a61=_0x1bcbd1;try{switch(_0x51d247[_0x244a61(0x35a)]){case e[_0x244a61(0x137)][_0x244a61(0xcf)]:this[_0x244a61(0x28d)]((0x0,e['parseProtocolChangeset'])(_0x51d247[_0x244a61(0x346)]));break;case e[_0x244a61(0x137)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x51d247[_0x244a61(0x346)]);break;case e[_0x244a61(0x137)][_0x244a61(0x3c7)]:this[_0x244a61(0x1b4)]();break;case e[_0x244a61(0x137)][_0x244a61(0x3e2)]:this[_0x244a61(0x266)](_0x51d247['data']);break;case e[_0x244a61(0x137)][_0x244a61(0x2fd)]:this[_0x244a61(0x316)](_0x51d247['data'][_0x244a61(0x395)][_0x244a61(0x26b)](_0x5af48=>(0x0,e['parseProtocolChangeset'])(_0x5af48)));break;case e[_0x244a61(0x137)][_0x244a61(0x3d6)]:this[_0x244a61(0x1b4)]({'isPermissionRej':!0x0});break;case e['CollaborationEvent'][_0x244a61(0x180)]:break;}}catch(_0x276e6b){throw console[_0x244a61(0x3b2)](_0x244a61(0x108),_0x276e6b),_0x276e6b;}})),this['_state'];}[_0x281ba4(0x202)](){const _0x1dc213=_0x281ba4;this[_0x1dc213(0x351)]=!0x1;}[_0x281ba4(0x1f0)](){const _0x2c522f=_0x281ba4;if(this[_0x2c522f(0x351)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x2c522f(0x351)]=!0x0;}[_0x281ba4(0x22f)](_0x4bf62e){const _0x8efaba=_0x281ba4;this['_lockTransition'](),this['_updateState'](this[_0x8efaba(0x372)]['appendMutation'](_0x4bf62e)),this[_0x8efaba(0x202)]();}[_0x281ba4(0x28d)](_0x25de90){const _0xfa9d34=_0x281ba4;if(!(_0x25de90[_0xfa9d34(0x1ca)]<=this[_0xfa9d34(0x1d1)][_0xfa9d34(0xcc)](this[_0xfa9d34(0x2f8)]))){if(this['_collaborationPaused']){this[_0xfa9d34(0x255)][_0xfa9d34(0x2a2)](_0x25de90);return;}this['_applyRemoteChangeset'](_0x25de90);}}[_0x281ba4(0x3aa)](){const _0xe5b25d=_0x281ba4;this[_0xe5b25d(0x255)][_0xe5b25d(0x179)](_0x10e211=>this[_0xe5b25d(0xc6)](_0x10e211)),this[_0xe5b25d(0x255)]=[];}[_0x281ba4(0xc6)](_0x373991){const _0xca430d=_0x281ba4;let _0x1d51f3=this[_0xca430d(0x35c)][_0xca430d(0x34c)][_0xca430d(0x2bb)](this['_compressMutationService']['interceptor'][_0xca430d(0x114)]()[_0xca430d(0x205)])(_0x373991[_0xca430d(0x2b5)],null)||_0x373991[_0xca430d(0x2b5)],_0x505706={..._0x373991,'mutations':_0x1d51f3};this[_0xca430d(0x1f0)](),this[_0xca430d(0x126)](this[_0xca430d(0x372)][_0xca430d(0x26a)](_0x505706)),this[_0xca430d(0x202)]();}[_0x281ba4(0x19b)](_0x41e7fb){const _0x1ab588=_0x281ba4;this[_0x1ab588(0x1f0)](),this[_0x1ab588(0x126)](this[_0x1ab588(0x372)][_0x1ab588(0x28a)](_0x41e7fb)),this[_0x1ab588(0x202)]();}[_0x281ba4(0x1b4)](_0x18eff1){const _0x16529d=_0x281ba4;this['_lockTransition'](),this['_updateState'](this[_0x16529d(0x372)]['onRemoteRej'](_0x18eff1)),this[_0x16529d(0x202)]();}[_0x281ba4(0x266)](_0x2265d9){const _0x1da1ba=_0x281ba4;this[_0x1da1ba(0x1f0)](),this[_0x1da1ba(0x126)](this[_0x1da1ba(0x372)][_0x1da1ba(0x16f)](_0x2265d9)),this['_unlockTransition']();}[_0x281ba4(0x316)](_0x1907d1){const _0x9f276a=_0x281ba4;if(!(this[_0x9f276a(0x372)]instanceof P))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x405b70=_0x1907d1[_0x9f276a(0x26b)](_0x8c3cf1=>{const _0x228d62=_0x9f276a;let _0x5eeb3e=this[_0x228d62(0x35c)][_0x228d62(0x34c)][_0x228d62(0x2bb)](this[_0x228d62(0x35c)]['interceptor'][_0x228d62(0x114)]()[_0x228d62(0x205)])(_0x8c3cf1[_0x228d62(0x2b5)],null)||_0x8c3cf1[_0x228d62(0x2b5)];return{..._0x8c3cf1,'mutations':_0x5eeb3e};});this[_0x9f276a(0x1f0)](),this['_updateState'](this[_0x9f276a(0x372)]['onMissedChangesetFetched'](_0x405b70)),this['_unlockTransition']();}[_0x281ba4(0x377)](){const _0x2ad0ab=_0x281ba4;this[_0x2ad0ab(0x1f0)](),this['_updateState'](this['_state'][_0x2ad0ab(0x3a4)]()),this[_0x2ad0ab(0x202)]();}[_0x281ba4(0x33f)](_0x3162e3=!0x1){const _0x47d1cb=_0x281ba4;this[_0x47d1cb(0x1f0)](),this[_0x47d1cb(0x126)](this[_0x47d1cb(0x372)][_0x47d1cb(0x329)]()),this['_unlockTransition']();let _0x17407e=this[_0x47d1cb(0x372)];_0x3162e3&&_0x17407e instanceof O&&(this[_0x47d1cb(0x1f0)](),this[_0x47d1cb(0x126)](_0x17407e['fetchMiss']()),this[_0x47d1cb(0x202)]());}async[_0x281ba4(0x31f)](){return new Promise(_0x201681=>{const _0x18cd02=_0x2431;this[_0x18cd02(0x2cc)]['sessionStatus$'][_0x18cd02(0x21e)]((0x0,i[_0x18cd02(0x2ce)])(0x1))[_0x18cd02(0x2a5)](async _0x445696=>{const _0x3bec6f=_0x18cd02;_0x201681(await this[_0x3bec6f(0x36c)](_0x445696===0x3));});});}['_createHandler'](){const _0x101427=_0x281ba4;let _0x1e21ae=this[_0x101427(0x2f8)];return{'onStateChange':(_0x159987,_0x397307)=>{const _0x237487=_0x101427;if(_0x159987!==this['_state'])throw Error(_0x237487(0x172)+_0x159987['status']+_0x237487(0x3e0)+_0x397307['status']+_0x237487(0xc8)+this[_0x237487(0x372)]['status']);this[_0x237487(0x126)](_0x397307);},'onSendChangeset':_0xa30207=>{const _0x2814f2=_0x101427;_0xa30207[_0x2814f2(0x239)]||(_0xa30207[_0x2814f2(0x239)]=this[_0x2814f2(0x14b)],_0xa30207[_0x2814f2(0x376)]=++this[_0x2814f2(0x330)]);let _0x5e12ac={'eventID':e[_0x2814f2(0x137)][_0x2814f2(0x14a)],'data':{'unitID':_0xa30207[_0x2814f2(0x2f8)],'unitType':this[_0x2814f2(0x32c)],'changeset':_0xa30207,'memberID':this[_0x2814f2(0x2cc)][_0x2814f2(0x12f)]()}};this[_0x2814f2(0x2cc)][_0x2814f2(0x396)](_0x5e12ac,this[_0x2814f2(0x2f8)]);},'onMissingChangesets':({from:_0x3683c3,to:_0x4672f1})=>{const _0x280a0d=_0x101427;this[_0x280a0d(0x3a2)][_0x280a0d(0x2e4)](_0x280a0d(0x361),'fetching\x20missing\x20changesets\x20from\x20'+_0x3683c3+'\x20to\x20'+_0x4672f1);let _0x5c6025={'eventID':e[_0x280a0d(0x137)][_0x280a0d(0x2fa)],'data':{'unitID':_0x1e21ae,'unitType':this[_0x280a0d(0x32c)],'from':_0x3683c3,'to':_0x4672f1}};this[_0x280a0d(0x2cc)][_0x280a0d(0x396)](_0x5c6025,this[_0x280a0d(0x2f8)]);}};}async['_createInitialStateImpl'](_0x4961a8){const _0x10fdf7=_0x281ba4;var _0x550790,_0x21a847,_0xe2c4c1;let _0x181bc1=await((_0x550790=this[_0x10fdf7(0x1ed)])==null?void 0x0:_0x550790[_0x10fdf7(0x1bb)](this['unitID'])),_0x265b4c=(_0x21a847=_0x181bc1==null?void 0x0:_0x181bc1[_0x10fdf7(0x2b5)])==null?[]:_0x21a847,_0x1c7e07=(_0xe2c4c1=_0x181bc1==null?void 0x0:_0x181bc1[_0x10fdf7(0x1fb)])==null?null:_0xe2c4c1,_0x3a88ee=!!(_0x1c7e07!=null&&_0x1c7e07[_0x10fdf7(0x239)])&&!!(_0x1c7e07!=null&&_0x1c7e07[_0x10fdf7(0x376)]);this[_0x10fdf7(0x14b)]=_0x3a88ee?_0x1c7e07[_0x10fdf7(0x239)]:(0x0,e[_0x10fdf7(0x245)])(),this['_changesetReqId']=_0x3a88ee?_0x1c7e07['reqId']:0x0;let _0x2dd2e5=this[_0x10fdf7(0x2f8)];try{this[_0x10fdf7(0x153)](_0x1c7e07,_0x265b4c);}catch(_0x222f88){this[_0x10fdf7(0x3a2)]['error'](_0x222f88);}let _0x20c116=this['_createHandler']();if(_0x4961a8){let _0x279cde=Ue(this[_0x10fdf7(0x103)],_0x2dd2e5,this[_0x10fdf7(0x32c)],_0x1c7e07,_0x265b4c,_0x20c116);return _0x279cde instanceof k?_0x279cde['_schedule']():(_0x279cde instanceof j||_0x279cde instanceof A)&&_0x279cde['resend'](),_0x279cde;}return this[_0x10fdf7(0x103)][_0x10fdf7(0x237)](N,_0x2dd2e5,this[_0x10fdf7(0x32c)],_0x1c7e07,_0x265b4c,_0x20c116);}[_0x281ba4(0x153)](_0x590f20,_0x57b58f){const _0x35142e=_0x281ba4;var _0x351d6a,_0xf5f5ee;let _0x2e95f3=this[_0x35142e(0x35c)][_0x35142e(0x34c)]['fetchThroughInterceptors'](this[_0x35142e(0x35c)][_0x35142e(0x34c)][_0x35142e(0x114)]()[_0x35142e(0x205)]);(_0x351d6a=_0x2e95f3((_0x590f20==null?void 0x0:_0x590f20[_0x35142e(0x2b5)])||[],null))==null||_0x351d6a['forEach'](_0x54fad7=>this[_0x35142e(0x19d)][_0x35142e(0x344)](_0x54fad7['id'],_0x54fad7[_0x35142e(0x390)])),(_0xf5f5ee=_0x2e95f3(_0x57b58f||[],null))==null||_0xf5f5ee[_0x35142e(0x179)](_0x5d2575=>this[_0x35142e(0x19d)][_0x35142e(0x344)](_0x5d2575['id'],_0x5d2575[_0x35142e(0x390)]));}};F=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t['Injector'])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t[_0x281ba4(0x325)])(w)),v(0xd,(0x0,t[_0x281ba4(0x325)])(S))],F);let I=class extends F{constructor(_0x1b51e3,_0x3accda,_0x275cfa,_0x435b81,_0x2c9b74,_0x8bb57,_0x47c1f6,_0x4c6476,_0x1037fc,_0x55b1b0,_0x3dc46f,_0x3e759a,_0x444a8b,_0x53cab5,_0xb112c7){const _0x4d1b78=_0x281ba4;super(_0x1b51e3,_0x275cfa,_0x3accda,_0x435b81,_0x2c9b74,_0x8bb57,_0x47c1f6,_0x4c6476,_0x1037fc,_0x55b1b0,_0x3dc46f,_0x3e759a,_0x53cab5,_0xb112c7),this['unitID']=_0x1b51e3,this[_0x4d1b78(0x23b)]=_0x3accda,this[_0x4d1b78(0x24f)]=_0x444a8b,g(this,_0x4d1b78(0x173),null);}[_0x281ba4(0x3bc)](_0x5c85f4){const _0x1df208=_0x281ba4;this[_0x1df208(0x173)]=_0x5c85f4;}[_0x281ba4(0x25c)](){const _0x5161e9=_0x281ba4;this[_0x5161e9(0x173)]=null,super[_0x5161e9(0x25c)]();}[_0x281ba4(0x162)](){const _0x39ecdf=_0x281ba4;let _0x400d82=super['_createHandler']();return _0x400d82['onTransformIME']=_0xd02a08=>{const _0x540fe1=_0x2431;var _0x7b7acf,_0x4ca853;return(_0x7b7acf=this[_0x540fe1(0x173)])==null||(_0x4ca853=_0x7b7acf['onTransformIME'])==null?void 0x0:_0x4ca853['call'](_0x7b7acf,_0xd02a08);},_0x400d82[_0x39ecdf(0x17e)]=_0x43c936=>{const _0x502ce1=_0x39ecdf;var _0x317395,_0x2f0701;return(_0x317395=this[_0x502ce1(0x173)])==null||(_0x2f0701=_0x317395['onTransformState'])==null?void 0x0:_0x2f0701['call'](_0x317395,_0x43c936);},_0x400d82['onTransformSelections']=_0x5ab090=>{const _0xa32bff=_0x39ecdf;var _0xb8595e,_0x1a03a8;return(_0xb8595e=this[_0xa32bff(0x173)])==null||(_0x1a03a8=_0xb8595e[_0xa32bff(0x3c2)])==null?void 0x0:_0x1a03a8['call'](_0xb8595e,_0x5ab090);},_0x400d82[_0x39ecdf(0x102)]=_0x258827=>{const _0x3fe0ea=_0x39ecdf;var _0x3c57d1,_0xbf379d;return(_0x3c57d1=this[_0x3fe0ea(0x173)])==null||(_0xbf379d=_0x3c57d1[_0x3fe0ea(0x102)])==null?void 0x0:_0xbf379d[_0x3fe0ea(0x35d)](_0x3c57d1,_0x258827);},_0x400d82[_0x39ecdf(0x186)]=_0x29b5c4=>{const _0xb493dd=_0x39ecdf;var _0x5561c2,_0x4ca0ba,_0x290e33;return(_0x5561c2=(_0x4ca0ba=this[_0xb493dd(0x173)])==null||(_0x290e33=_0x4ca0ba['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x290e33[_0xb493dd(0x35d)](_0x4ca0ba,_0x29b5c4))==null?_0x29b5c4:_0x5561c2;},_0x400d82[_0x39ecdf(0x134)]=_0x4555d1=>{const _0x4af162=_0x39ecdf;var _0x2f33c3,_0x1ff1f2,_0x264c16;return(_0x2f33c3=(_0x1ff1f2=this[_0x4af162(0x173)])==null||(_0x264c16=_0x1ff1f2[_0x4af162(0x134)])==null?void 0x0:_0x264c16[_0x4af162(0x35d)](_0x1ff1f2,_0x4555d1))==null?_0x4555d1:_0x2f33c3;},_0x400d82;}async['_init'](){const _0x57d44e=_0x281ba4;let _0x19ceb8=await super[_0x57d44e(0x379)]();return this[_0x57d44e(0x143)](this['_docStateChangeManagerService'][_0x57d44e(0x1c0)][_0x57d44e(0x2a5)](_0x85e407=>{const _0x4fa270=_0x57d44e;if(_0x85e407==null||_0x85e407[_0x4fa270(0x118)]!==this[_0x4fa270(0x2f8)])return;let {commandId:_0x32718d,redoState:_0x3ea1c3,unitId:_0x47daa2}=_0x85e407,_0x59016f={'id':_0x32718d,'type':t[_0x4fa270(0xde)][_0x4fa270(0x276)],'params':{'unitId':_0x47daa2,'actions':_0x3ea1c3[_0x4fa270(0x2df)],'textRanges':null}};this[_0x4fa270(0x22f)](_0x59016f);})),this[_0x57d44e(0x143)](this[_0x57d44e(0x19d)][_0x57d44e(0x265)]((_0x5e6344,_0x1d9e11)=>{const _0x525fd0=_0x57d44e;if(_0x5e6344[_0x525fd0(0x23b)]!==t['CommandType'][_0x525fd0(0x276)]||_0x1d9e11!=null&&_0x1d9e11[_0x525fd0(0x27b)]||_0x1d9e11!=null&&_0x1d9e11[_0x525fd0(0x31c)]||_0x5e6344['id']===n[_0x525fd0(0x1c8)]['id'])return;let _0x522e2d=_0x5e6344[_0x525fd0(0x390)];if((_0x522e2d==null?void 0x0:_0x522e2d[_0x525fd0(0x118)])!==this[_0x525fd0(0x2f8)])return;let _0x3af794=_0x5e6344,_0x3cfd2a=this[_0x525fd0(0x35c)][_0x525fd0(0x34c)]['fetchThroughInterceptors'](this[_0x525fd0(0x35c)]['interceptor'][_0x525fd0(0x114)]()[_0x525fd0(0xf9)])([_0x3af794],this[_0x525fd0(0x193)])||[_0x3af794];this[_0x525fd0(0x22f)](_0x3cfd2a[0x0]);})),_0x19ceb8;}};I=y([v(0x3,(0x0,t['Inject'])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t[_0x281ba4(0x1ad)]),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t[_0x281ba4(0x241)])(n[_0x281ba4(0x191)])),v(0xd,(0x0,t[_0x281ba4(0x325)])(w)),v(0xe,(0x0,t[_0x281ba4(0x325)])(S))],I);let L=class extends F{constructor(_0x5835b2,_0xd75170,_0x50f8cf,_0x3fce9e,_0x2fcb6d,_0x293b21,_0x1349fb,_0x5d9760,_0x42bd3f,_0x2e501c,_0x38fd83,_0x364d44,_0x1e27a7,_0x1949be){const _0x41ffd2=_0x281ba4;super(_0x5835b2,_0x50f8cf,_0xd75170,_0x3fce9e,_0x2fcb6d,_0x293b21,_0x1349fb,_0x5d9760,_0x42bd3f,_0x2e501c,_0x38fd83,_0x364d44,_0x1e27a7,_0x1949be),this['unitID']=_0x5835b2,this[_0x41ffd2(0x23b)]=_0xd75170;}async['_init'](){const _0x1a762b=_0x281ba4;let _0x5e5e91=await super[_0x1a762b(0x379)]();return this[_0x1a762b(0x143)](this['_commandService'][_0x1a762b(0x265)]((_0x1804ea,_0x3a190c)=>{const _0x242d3f=_0x1a762b;if(_0x1804ea['type']!==t['CommandType'][_0x242d3f(0x276)]||_0x3a190c!=null&&_0x3a190c[_0x242d3f(0x27b)]||_0x3a190c!=null&&_0x3a190c['onlyLocal'])return;let _0x10e879=_0x1804ea[_0x242d3f(0x390)];if((_0x10e879==null?void 0x0:_0x10e879[_0x242d3f(0x118)])!==this[_0x242d3f(0x2f8)])return;let _0x1850d3=_0x1804ea,_0x1c0400=this[_0x242d3f(0x35c)][_0x242d3f(0x34c)][_0x242d3f(0x2bb)](this[_0x242d3f(0x35c)]['interceptor'][_0x242d3f(0x114)]()[_0x242d3f(0xf9)])([_0x1850d3],this[_0x242d3f(0x193)])||[_0x1850d3];this[_0x242d3f(0x22f)](_0x1c0400[0x0]);})),_0x5e5e91;}};L=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t['Inject'])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t['Inject'])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t['ICommandService']),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t['Optional'])(w)),v(0xd,(0x0,t['Optional'])(S))],L);let R=class extends F{constructor(_0x4158ed,_0x223a12,_0x348ff8,_0x49e27f,_0x474037,_0x47e795,_0x7e967a,_0x16b7e1,_0x259e29,_0x460d15,_0x4bc1a2,_0x1d325b,_0x445697,_0x2fc418,_0x441508){const _0x17e2c8=_0x281ba4;super(_0x4158ed,_0x348ff8,_0x223a12,_0x49e27f,_0x474037,_0x47e795,_0x7e967a,_0x259e29,_0x460d15,_0x4bc1a2,_0x1d325b,_0x445697,_0x2fc418,_0x441508),this['unitID']=_0x4158ed,this[_0x17e2c8(0x23b)]=_0x223a12,this[_0x17e2c8(0x2a3)]=_0x16b7e1;}[_0x281ba4(0x162)](){const _0x2a3ac5=_0x281ba4;let _0x4ee0ae=super[_0x2a3ac5(0x162)]();return _0x4ee0ae[_0x2a3ac5(0x3c2)]=_0x5189d2=>this['_sheetTransformSelectionsService']['transformSelections'](_0x5189d2),_0x4ee0ae;}async[_0x281ba4(0x379)](){const _0x5e63e7=_0x281ba4;let _0xb2789d=await super[_0x5e63e7(0x379)]();return this[_0x5e63e7(0x143)](this[_0x5e63e7(0x19d)][_0x5e63e7(0x265)]((_0x3905df,_0x92e1d6)=>{const _0x527c67=_0x5e63e7;if(_0x3905df[_0x527c67(0x23b)]!==t['CommandType'][_0x527c67(0x276)]||_0x92e1d6!=null&&_0x92e1d6[_0x527c67(0x27b)]||_0x92e1d6!=null&&_0x92e1d6[_0x527c67(0x31c)])return;let _0x64e4b1=_0x3905df['params'];if((_0x64e4b1==null?void 0x0:_0x64e4b1[_0x527c67(0x118)])!==this['unitID'])return;let _0x19c984=_0x3905df,_0x28aed1=this[_0x527c67(0x35c)][_0x527c67(0x34c)][_0x527c67(0x2bb)](this['_compressMutationService'][_0x527c67(0x34c)][_0x527c67(0x114)]()[_0x527c67(0xf9)])([_0x19c984],this['_univerInstanceService'])||[_0x19c984];this[_0x527c67(0x22f)](_0x28aed1[0x0]);})),_0xb2789d;}};R=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t[_0x281ba4(0x241)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(C)),v(0x8,(0x0,t[_0x281ba4(0x241)])(_)),v(0x9,t[_0x281ba4(0x1ad)]),v(0xa,t[_0x281ba4(0x150)]),v(0xb,t[_0x281ba4(0x300)]),v(0xc,t[_0x281ba4(0x26f)]),v(0xd,(0x0,t['Optional'])(w)),v(0xe,(0x0,t[_0x281ba4(0x325)])(S))],R);let z=class extends F{constructor(_0x30a37d,_0x1286c8,_0x2ef8aa,_0x22618d,_0x33e081,_0xb3616d,_0x581b43,_0x322122,_0x1c4c68,_0x1dde77,_0x1bb6e5,_0x43a3fa,_0x14839d,_0x1b0aab){const _0x39725b=_0x281ba4;super(_0x30a37d,_0x2ef8aa,_0x1286c8,_0x22618d,_0x33e081,_0xb3616d,_0x581b43,_0x322122,_0x1c4c68,_0x1dde77,_0x1bb6e5,_0x43a3fa,_0x14839d,_0x1b0aab),this[_0x39725b(0x2f8)]=_0x30a37d,this[_0x39725b(0x23b)]=_0x1286c8;}async[_0x281ba4(0x379)](){const _0x1be1c2=_0x281ba4;let _0x2b39fe=await super[_0x1be1c2(0x379)]();return this['disposeWithMe'](this[_0x1be1c2(0x19d)][_0x1be1c2(0x265)]((_0x129181,_0x44c81f)=>{const _0x59daf5=_0x1be1c2;if(_0x129181[_0x59daf5(0x23b)]!==t['CommandType'][_0x59daf5(0x276)]||_0x44c81f!=null&&_0x44c81f[_0x59daf5(0x27b)]||_0x44c81f!=null&&_0x44c81f[_0x59daf5(0x31c)])return;let _0x425ebc=_0x129181[_0x59daf5(0x390)];if((_0x425ebc==null?void 0x0:_0x425ebc[_0x59daf5(0x118)])!==this['unitID'])return;let _0x1e3813=_0x129181,_0x191f95=this[_0x59daf5(0x35c)][_0x59daf5(0x34c)][_0x59daf5(0x2bb)](this['_compressMutationService'][_0x59daf5(0x34c)][_0x59daf5(0x114)]()['COMPRESS_MUTATION_SEND'])([_0x1e3813],this[_0x59daf5(0x193)])||[_0x1e3813];this[_0x59daf5(0x22f)](_0x191f95[0x0]);})),_0x2b39fe;}};function _0x4951(){const _0x690ddd=['debug','b64DecodeUnicode','cmd','string','univer-pro.collaboration-client-adapter-service','incrementRevOfUnit','updateMember','sequenceExecute','isInternalEditorID','SUBMIT_CHANGESET_TIMEOUT','CollaborationImageIoService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','SOCKET_FAILED','SetSelectionsOperation','endsWith','[DataLoaderService]','snapshotServerUrl','title','_clearScheduledTask','ONLINE','unitID','_isPermissionRej','FETCH_MISSING','getUnitType','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','PSEUDO_FETCH_MISSING_RESULT','ISocketService','DataLoaderService','ICommandService','&assign=','target','getCurrentSelections','state','_status$','function','members','updateCollaborator','close','hasOwnProperty','getCollabEntity$','Quantity','updatePermissionPoint','size','_substituteRedoStack','getGlobalObject','unitType','getTime','[OfflineState]:\x20received\x20acknowledgement.','UniverInstanceType','_acknowledgeAwaitingIfReady','_onFetchMissResult','_unitInfo$','OTHER_CLIENTS_EDITING','SheetsSelectionsService','originalMeta','MoveSlidePageMutation','onlyLocal','DEFAULT_WS_SESSION_TICKET_URL','142367sPAkxh','_createInitialState','loadBase','getConfig','DocCollaborationEntity','get','candidateSocket','Optional','_registerDependencies','_acknowledgedAwaitingRevision','onload','toggleOnline','fetchMiss','then','_type','randomBytes','baseRev','list','_changesetReqId','socketMessageSubscription','BehaviorSubject','telemetry\x20info\x20is\x20not\x20initialized','selections','resourceIDs','SYNCED','UUID','sessionStatus','url','_members$','headers','INGEST','clear','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_toggleOnline','549145xvzRjo','loadUnitOfRevision','retryConnectingTimer','getUnitStatus$','executeCommand','origin','data','_tryReconnect','UnitStatus','_handleRemoteChangesets','_sender','sendChangesetTimeout','interceptor','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getUnitId','missingChangesets','_handler','_transitionLocked','UNIVER_SLIDE','session.room-cnt-exceeds','_scheduleCollaborationTimeoutTimer','Module','/-/object/list','getCurrentUser','_sendHeartbeat','getLatestCsReqIdBySid','eventID','_checkMissing','_compressMutationService','call','10619080djaamt','values','addImageSourceCache','[CollaborationEntity]','copyFileMeta','removeMember','Univer','_sessionChannels','concatBytes','getActiveSheet','resolveWithBasePath','infoRsp','toStringTag','isTransformChangesetsSuccess','_createInitialStateImpl','[OfflineState]:\x20received\x20rejection.','People','/universer-api/comb','HEARTBEAT_TIMEOUT_KEY','_members','_state','session.join-failed','_roomCreated$','_getCtorByUniverInstanceType','reqId','_toggleOffline','_stopTelemetryCollaborationNewChangeset','_init','startsWith','_resendTimer','_sendingTimer','listCollaborators','UNIVER_BASE','_networkConditionService','editingUnit','_sessionStatus$','getTypeOfUnitAdded$','LIVESHARE_OPERATION','?url=','range','_memberService','_getSignURL','getLocalCacheKey','getFocusedUnit','_replaceFileID','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','[CollaborationSessionService]','online$','_transformStateCache','/object','params','ISnapshotServerService','file','closeSession','hostname','changesets','send','transformChangesets','/universer-api/snapshot/','HELLO','_transformAndApplyRemoteChangeset','textRanges','UnitEmbedded','isPermissionRej','_initRequestHeader','1149448AYDuJU','liveShareNewHost','_acknowledgeAwaiting','_logService','CmdRspCode','toggleOffline','AuthzIoHttpService','univer-pro.collaboration-client.network-condition.service','/role','_joinRoom','status$','_exhaustRemoteChangesetQueue','_disableEditing','min','_schedule','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','PERSON','__splitChunk__','INetworkConditionService','error','compose','FAIL','enableOfflineEditing','Tools','_collaborationSessionService','[PendingState]:\x20received\x20rejection.','subject','subUnitId','POST','addHandlerCallback','entries','accept','post','cbc','find','onTransformSelections','_roomMembers','_isEchoedAwaitingChangeset','_showConflictNotification','isTransformMutationsWithChangesetSuccess','CHANGESET_REJ','leaveEvent','/universer-api/authz','_resendTimeout','toRemote','RemoveSlidePageMutation','_cfgEnableObjInherit','/-/object/-/batch_allowed','AwaitingWithPendingState','_userManagerService','_rescheduleHeartbeat','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','LIVESHARE_TERMINATE','appendMutation','_shouldReportTelemetry','PERMISSION_REJ','_queuedRemoteChangesets','11sSsJBw','iterator','__Key__','userID','enableAuthServer','saveSnapshot','Subject','Workbook','\x0aAfter:\x20','SHOULD_CLOSE_CONN','CHANGESET_SHOULD_RETRY','CollaborationStatus','collabSubmitChangesetUrl','JOIN_ROOM_NOT_EXISTS','_applyRemoteChangeset','liveShareOperation','\x0aCurrent:\x20','uniscriptRunEvent','IConfigService','result','getCurrentRevOfUnit','LOCAL_CACHE_INTERVAL','joinEvent','NEW_CHANGESETS','_getUploadFileURL','sendHeartbeatTimer','next','state$','_clearCollaborationTimeoutTimer','IImageIoService','editing\x20status\x20changed\x20to','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','endpoint','routeKey','USERS_LEAVE','CONFLICT','socket$','4408893lDZkKN','CommandType','getSheetBlock','getAllMembers','LIVESHARE_FETCH_OPERATIONS','onTransformIME','BASE64','Disposable','CombCmd','_change$','newCsEvent','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','splice','_resendWithTimeout','HEARTBEAT_TIMEOUT','RETRY_CONNECTING_MAX_COUNT','deepClone','UserManagerService','isCompositionEnd','_startTelemetryCollaborationNewChangeset','_snapshotServerService','fromCharCode','OTHER_CLIENT_EDITING','_event$','IContextService','_clearRetryConnectingTimer','setWaitCount','stringify','COMPRESS_MUTATION_SEND','AttachmentSourceType','collaboration-client.config','listRoles','FileSource','_HTTPService','unitLoaded$','_createSocket','initWorkbookPermissionChange','onSyncEditingCollabCursor','_injector','_awaitingChangeset','_resolveSessionIdentity','objectType','commentUpdateEvent','Error\x20on\x20receiving\x20event','dispose$','WorkbookEditablePermission','NOT_COLLAB','collaboratorID','7522QyyTbM','uploadFileServerUrl','_removeRoom','_eventService','/unit/','Failed\x20to\x20update\x20permission\x20point','getTypeOfUnitDisposed$','getInterceptPoints','ws://127.0.0.1:8000/universer-api/comb/connect','encode','LOCAL_CACHE_INTERVAL_KEY','unitId','members$','/universer-api/uniscript','text-x','localUnitId','objects','transformSelections','upload','JOINING','IAuthzIoService','/universer-api/stream/file/upload','registerHTTPInterceptor','object','has','_updateState','CollaborationSession','_syncEditingCollabCursor','filter','_hasSessionsForEndpoint','setShowComponents','loadSlide','put','COLLABORATION_ENDPOINT_INVALID','getMemberID','132VwNJQV','saveAttachment','status','BaseCollaborationEntity','onTransformRemoteChangesetByStateCache','_onRecvEvent','number','CollaborationEvent','LocalUndoRedoService','sort','ISingleActiveUnitService','getCfgEnableObjInherit','/universer-api/oidc/authpage','FileId','_unitLoaded$','version','parseChangesetToProtocol','pluginName','CollaborationUIEventService','disposeWithMe','objectActions','Injector','_upload','complete','_executeRemoteChangeset','socketService','SUBMIT_CHANGESET','_changesetSessionId','JOIN','_listenToNetworkCondition','base-ui.attachment-io.service','LEAVE','ILogService','some','setCfgEnableObjInherit','_replayCachedMutations','getValue','max','responseType','UNIVER_DOC','_scheduleCompleteTimestamp','onStateChange','confirm','override','/object/','readAsDataURL','_singleActiveUnitService','{fileID}','createIdentifier','collaboration-client.local-cache-service','_createHandler','toLocal','slice','_redoStacks','_localeService','c1Prime','endpointKey','4MOFwiT','univer-pro.collaboration-client.single-active-unit-service','&source=','csAckEvent','length','sheets','onRemoteRetry','isArray','ERROR_EXCEED_SIZE','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_handlerCallback','EnsureSlideMasterPageMutation','conflict','[SyncedState]:\x20received\x20acknowledgement.','_substituteUndoStack','_onUserLeave','forEach','IDLE','UNIVER_SHEET','reverse','_snapshotService','onTransformState','AwaitingState','UNISCRIPT_RUN','withCredentials','DEFAULT_FILE_NAME','href','FetchingMissState','append','onTransformRemoteChangesetByIMECache','BoardCollaborationEntity','capture','Plugin','utf8ToBytes','7GajiMx','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_telemetryService','getUnitOnRev','c2Prime','getSnapshotAPIPath','DocStateChangeManagerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_univerInstanceService','IUndoRedoService','[CollaborationUndoRedoService]','JOIN_ROOM_PERMISSION_DENIED','ReplaySubject','ICollaborationSocketService','resolve','_incrementRevisionNumber','_onRemoteACK','isTransformMutationsWithChangesetFailure','_commandService','delete','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','pending','_collaborationUIEventService','roomInfos','/fetchmissing?from=','UniverCollaborationPlugin','_getLoginPath','sessionStatus$','saveSheetBlock','_identity','HTTPRequest','SnapshotService','update','_commentService','IUniverInstanceService','_collabSessionService','resolveUnit','_getDownloadEndpointURL','add','save\x20fail\x20reason\x20is\x20','socket\x20close','_onRemoteRejected','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','timeoutTimer','concatMap','deserializeToCombResponse','CHANGESET_ACK','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','loadOfflineData','_getSendChangesetTimeout','getMember','_updateStatus','collaMsg','docStateChange$','onSendChangeset','snapshot','OfflineState','_transformRemoteChangesetByStateCache','NO_OTHER_CLIENTS_EDITING','LIVESHARE_REQUEST_HOST','touchDependencies','RichTextEditingMutation','defineProperty','revision','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_socketMessageSubscription','downloadEndpointUrl','loadBoard','mapDocumentTypeToUniverInstanceType','_socket','_revisionService','/resources','RETRY_CONNECTING_MAX_COUNT_KEY','ERROR_IMAGE','synced','_entities','_transformService','onRemoteRej','_entityInit$','_onJoinRoomEvent','_throwTelemetryCollaborationNewChangeset','IMentionIOService','MentionType','_onConnectionOpen','UPDATE_CURSOR','_onConnectionFailed','submit\x20changeset\x20error!','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_undoStacks','startTime','roles','_imageSourceCache','RECV','session.room-permission-denied','URL','awaiting_with_pending','ITransformService','_initCloseConn','_localCacheService','csShouldRetryEvent','saveChangeset','_lockTransition','ITelemetryService','createSocket','_pendingSessions','_initUnitPermissionChange','takeUntil','_httpService','Rectangle','createUniverCollaborationAdapter','LocaleService','workbook','awaitingChangeset','_instanceService','onCommentUpdate','reconnect','prototype','_submitChangeset','waitForRoom$','_unlockTransition','_permissionService','CompressMutationService','COMPRESS_MUTATION_APPLY','loadSheet','transformMutationsWithChangeset','MemberService','action','transformStack\x20failed!','_clearRedo','memberID','CLOSE_ROOM','onMissingChangesets','ERROR_IMAGE_TYPE','serializeCombRequest','COMMENT_UPDATE','charCodeAt','changeset','_transformSelections','disableLocalCache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','permissionRejEvent','parseProtocolChangeset','name','generateRandomId','_configService','_getAPIPrefixPath','_socketChannels','pipe','textEncoder','HEARTBEAT','create','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_waitCount','_tryEnsureSocket','UniverNetworkPlugin','getWorkbookSelections','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','equals','_adapter','_fetchMissChangesets','_onCombEvent','event$','_onConflict','/rev/','_onLocalMutation','duration','resend','getRoom','collaborators','catch','_maxTotalRetryTimeout','getOwnPropertyDescriptor','createInstance','objectID','sid','PendingState','type','collabWebSocketUrl','ImageUploadStatusType','/universer-api/user/session-ticket','_getRedoStack','reject','Inject','reduce','set','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','uuidv4','entityInit$','DEFAULT_COLLAB_WEB_SOCKET_URL','AddSlidePageMutation','toString','_getCurrentRevision','_clearHeartbeatTimer','_clearTimeoutTimer','RxDisposable','failed\x20to\x20apply\x20missed\x20changesets!','_docStateChangeManagerService','retryCount','univer-pro.collaboration-client-socket-service','collaboration_new_changeset','setCurrentUser','/new_changes','_remoteChangesetQueue','OFFLINE','_decreaseWaiting','fetch_missing','unsubscribe','/block/','getImageSourceCache','dispose','unit','encodeURIComponent','_getAPIPrefix','_telemetryInfo','shouldCloseConn','every','_sessions','deleteCollaborator','onMutationExecutedForCollab','_onRemoteRetry','[UniverCollaborationClientPlugin]','UNIVER_COLLABORATION_CLIENT_PLUGIN','HEARTBEAT_INTERVAL_KEY','onRemoteChangeset','map','joinRsp','onMissedChangesetFetched','_pendingMutations','IPermissionService','_collaborationTimeoutTimer','trim','enableCollaboration','SNAPSHOT_URL_KEY','_transformStack','m2Prime','MUTATION','ImageSourceType','PERMISSION_DENIED','/collaborator','fetchMissingChangesets','fromCollab','_onUserJoin','_onMessage','unknown','_updateLocalCache','IAttachmentIoService','GLOBAL_ROOMS_CNT_EXCEEDS','error$','awaiting','asObservable','constructor','AWAITING','SheetCollaborationEntity','CollaborationSessionService','packageName','onRemoteAck','registerDependencies','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_onRemoteChangeset','1906308HiQZZF','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','localCacheService','getResourcesRequest','delay','maxSize','USERS_ENTER','transformUndoRedo','_initDependencies','requireSession','emitEvent','merge','allowed','SheetTransformSelectionsService','SOCKET_FAILED_RETRY','_onOffline','_config','decorate','now','UNIVER_BOARD','push','_sheetTransformSelectionsService','code','subscribe','_getUndoStack','&to=','DRAWING_IMAGE_ALLOW_IMAGE_LIST','[FetchMissState]','replace','MSG_FOR_ERROR','JOIN_ROOM_FULL','close$','HEARTBEAT_INTERVAL','socketReady','LIVESHARE_NEW_HOST','_emitMembers','location','_socketService','indexOf','mutations','onLocalMutation','enableSingleActiveInstanceLock','_undoRedoService','_state$','_getSocketChannel','fetchThroughInterceptors','patch','connection\x20error','_clearLocalCache','rev','readyForCollab','_getConfig','symbol','includes','open$','_transformUndoredo','toDisposable','_transformRemoteChangesetByIMECache','JOIN_ROOM_FAILED','_waitForHeartbeatResponse','message$','RevisionService','session','_collaborationPaused','take','init','getUploadOptions','_commentUpdate$','_createSession','pauseCollaboration','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','FETCH_MISS','?size=','_startCollaboration','loadDoc','signUrlServerUrl','offline','@univerjs-pro/collaboration-client','body','requestParams','localeService','actions','SlideCollaborationEntity','loginUrlKey','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HTTPService'];_0x4951=function(){return _0x690ddd;};return _0x4951();}z=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t['Inject'])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x2cb)])),v(0x7,(0x0,t[_0x281ba4(0x241)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t[_0x281ba4(0x26f)]),v(0xc,(0x0,t[_0x281ba4(0x325)])(w)),v(0xd,(0x0,t['Optional'])(S))],z);let B=class extends F{constructor(_0x25f3e1,_0x5f0fe1,_0x4f89a2,_0x52dddd,_0x1b95ec,_0x2f228f,_0x54cb9f,_0x2c359d,_0x58e282,_0x1e149b,_0x3c4172,_0x43277d,_0x47ab82,_0x30f3d9){const _0x473b26=_0x281ba4;super(_0x25f3e1,_0x4f89a2,_0x5f0fe1,_0x52dddd,_0x1b95ec,_0x2f228f,_0x54cb9f,_0x2c359d,_0x58e282,_0x1e149b,_0x3c4172,_0x43277d,_0x47ab82,_0x30f3d9),this['unitID']=_0x25f3e1,this[_0x473b26(0x23b)]=_0x5f0fe1;}async[_0x281ba4(0x379)](){const _0x45c6f9=_0x281ba4;let _0x29e571=await super[_0x45c6f9(0x379)]();return this[_0x45c6f9(0x143)](this[_0x45c6f9(0x19d)][_0x45c6f9(0x265)]((_0x1e3dd0,_0x28392c)=>{const _0x684058=_0x45c6f9;if(_0x1e3dd0[_0x684058(0x23b)]!==t[_0x684058(0xde)][_0x684058(0x276)]||_0x28392c!=null&&_0x28392c[_0x684058(0x27b)]||_0x28392c!=null&&_0x28392c['onlyLocal'])return;let _0x300896=_0x1e3dd0[_0x684058(0x390)];if((_0x300896==null?void 0x0:_0x300896[_0x684058(0x118)])!==this[_0x684058(0x2f8)])return;let _0x2f79fa=_0x1e3dd0,_0x300710=this[_0x684058(0x35c)][_0x684058(0x34c)][_0x684058(0x2bb)](this[_0x684058(0x35c)][_0x684058(0x34c)][_0x684058(0x114)]()['COMPRESS_MUTATION_SEND'])([_0x2f79fa],this[_0x684058(0x193)])||[_0x2f79fa];this[_0x684058(0x22f)](_0x300710[0x0]);})),_0x29e571;}};B=y([v(0x3,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x4,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x204)])),v(0x5,(0x0,t['Inject'])(t[_0x281ba4(0x1f9)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x281ba4(0x1ad)]),v(0x9,t[_0x281ba4(0x150)]),v(0xa,t[_0x281ba4(0x300)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x281ba4(0x325)])(w)),v(0xd,(0x0,t['Optional'])(S))],B);const We=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x3a6));function Ge(_0x353696){const _0x2775de=_0x281ba4;let _0x51a62e=_0x353696['data'],_0xec5bd7=JSON['parse'](_0x51a62e);switch(_0xec5bd7['cmd']){case a['CombCmd']['HEARTBEAT']:case a[_0x2775de(0xe5)]['HELLO']:{let _0x314070=_0xec5bd7[_0x2775de(0x369)];return{..._0xec5bd7,'data':_0x314070,'cmd':_0xec5bd7[_0x2775de(0x2e6)]};}case a['CombCmd'][_0x2775de(0x14c)]:{let _0x57339a=_0xec5bd7[_0x2775de(0x26c)];return{..._0xec5bd7,'data':_0x57339a,'cmd':_0xec5bd7['cmd']};}case a[_0x2775de(0xe5)][_0x2775de(0x1e7)]:{let _0x26b86e=_0xec5bd7[_0x2775de(0x1bf)];switch(_0x26b86e[_0x2775de(0x35a)]){case e[_0x2775de(0x137)][_0x2775de(0x3d6)]:var _0x34b6e5;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x34b6e5=_0x26b86e[_0x2775de(0x217)])==null?void 0x0:_0x34b6e5['cs']},'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)]['CHANGESET_ACK']:var _0x2fb8ed;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x2fb8ed=_0x26b86e[_0x2775de(0x16c)])==null?void 0x0:_0x2fb8ed['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)][_0x2775de(0xcf)]:var _0x5f0089;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x5f0089=_0x26b86e[_0x2775de(0xe7)])==null?void 0x0:_0x5f0089['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent']['CHANGESET_REJ']:var _0x5d80b0;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x5d80b0=_0x26b86e['csRejEvent'])==null?void 0x0:_0x5d80b0['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent'][_0x2775de(0x3e2)]:var _0x5d1ad8;return{..._0xec5bd7,'data':{..._0x26b86e,'data':(_0x5d1ad8=_0x26b86e[_0x2775de(0x1ee)])==null?void 0x0:_0x5d1ad8['cs']},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)][_0x2775de(0x1df)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e['updateCursorEvent']},'cmd':_0xec5bd7['cmd']};case e['CollaborationEvent']['USERS_ENTER']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0xce)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent']['USERS_LEAVE']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x3c8)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x3a0)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)]['LIVESHARE_FETCH_OPERATIONS']:case e[_0x2775de(0x137)][_0x2775de(0x383)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0xc7)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)][_0x2775de(0x3d3)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x3a0)]},'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)][_0x2775de(0x2ab)]:return{..._0xec5bd7,'data':_0x26b86e,'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)]['COMMENT_UPDATE']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x107)]},'cmd':_0xec5bd7['cmd']};case e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e['updatePermissionObjEvent']},'cmd':_0xec5bd7['cmd']};case e[_0x2775de(0x137)][_0x2775de(0x3e1)]:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0x261)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};case e[_0x2775de(0x137)]['UNISCRIPT_RUN']:return{..._0xec5bd7,'data':{..._0x26b86e,'data':_0x26b86e[_0x2775de(0xc9)]},'cmd':_0xec5bd7[_0x2775de(0x2e6)]};default:return _0xec5bd7;}}default:return _0xec5bd7;}}function Ke(_0x820d0){const _0x2ff13a=_0x281ba4;switch(_0x820d0[_0x2ff13a(0x2e6)]){case a[_0x2ff13a(0xe5)][_0x2ff13a(0x220)]:case a[_0x2ff13a(0xe5)]['HELLO']:return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0['cmd'],'routeKey':_0x820d0[_0x2ff13a(0xd9)]});case a[_0x2ff13a(0xe5)][_0x2ff13a(0x33c)]:{let _0x3032f4;switch(_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x35a)]){case e['CollaborationEvent'][_0x2ff13a(0x1df)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x1df)],'updateCursorEvent':_0x820d0['data'][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0xda)]:_0x3032f4={'eventID':e['CollaborationEvent'][_0x2ff13a(0xda)],'leaveEvent':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0x294)]:_0x3032f4={'eventID':e['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0x2b0)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x2b0)],'liveShareNewHost':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e['CollaborationEvent'][_0x2ff13a(0x383)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x383)],'liveShareOperation':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e['CollaborationEvent']['LIVESHARE_TERMINATE']:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x3d3)],'liveShareTerminate':_0x820d0['data'][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0x1c6)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0x1c6)],'liveShareRequestHost':_0x820d0[_0x2ff13a(0x346)][_0x2ff13a(0x346)]};break;case e[_0x2ff13a(0x137)][_0x2ff13a(0xe1)]:_0x3032f4={'eventID':e[_0x2ff13a(0x137)][_0x2ff13a(0xe1)]};break;default:_0x3032f4={'eventID':_0x820d0[_0x2ff13a(0x346)]['eventID']};}return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0[_0x2ff13a(0x2e6)],'routeKey':_0x820d0[_0x2ff13a(0xd9)],'collaMsg':_0x3032f4});}case a['CombCmd'][_0x2ff13a(0x14c)]:return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0[_0x2ff13a(0x2e6)],'routeKey':_0x820d0['routeKey'],'joinReq':_0x820d0[_0x2ff13a(0x346)]});case a[_0x2ff13a(0xe5)]['LEAVE']:return JSON[_0x2ff13a(0xf8)]({'cmd':_0x820d0['cmd'],'routeKey':_0x820d0[_0x2ff13a(0xd9)],'leaveReq':_0x820d0['data']});default:throw Error(_0x2ff13a(0x1cb));}}const qe=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x251));function Je(_0x64b641,_0x538918,_0x511361){const _0x298264=_0x281ba4;return _0x64b641+'/'+_0x538918+_0x298264(0x111)+_0x511361+_0x298264(0x254);}let Ye=class extends t[_0x281ba4(0xe4)]{constructor(_0x2a2112,_0x3da103,_0x51b006,_0x1da8b3,_0x5e75cc){const _0x5a77d0=_0x281ba4;super(),this[_0x5a77d0(0x103)]=_0x2a2112,this[_0x5a77d0(0x1f6)]=_0x3da103,this[_0x5a77d0(0x21b)]=_0x51b006,this[_0x5a77d0(0x3a2)]=_0x1da8b3,this[_0x5a77d0(0xf1)]=_0x5e75cc;}['_doCreateSocket'](_0x50d872){const _0x212e1c=_0x281ba4;let _0x7108c4=this[_0x212e1c(0x103)][_0x212e1c(0x323)](l[_0x212e1c(0x2fe)]);if(!_0x7108c4)throw Error(_0x212e1c(0x227));let _0x3507ef=_0x7108c4[_0x212e1c(0x1f2)](_0x50d872);if(!_0x3507ef)throw Error(_0x212e1c(0x28f));let _0x35d63e=new t['DisposableCollection'](),_0x2bd3ae=new i[(_0x212e1c(0x3de))]();_0x35d63e['add'](_0x3507ef[_0x212e1c(0x2ad)]['subscribe'](_0x3f263e=>_0x2bd3ae[_0x212e1c(0xd2)](_0x3f263e))),_0x35d63e[_0x212e1c(0x1b1)]((0x0,t[_0x212e1c(0x2c6)])(()=>_0x2bd3ae[_0x212e1c(0x147)]()));let _0xd03344=new i[(_0x212e1c(0x3de))]();_0x35d63e[_0x212e1c(0x1b1)](_0x3507ef[_0x212e1c(0x282)][_0x212e1c(0x2a5)](_0x107c18=>_0xd03344[_0x212e1c(0xd2)](_0x107c18))),_0x35d63e[_0x212e1c(0x1b1)]((0x0,t[_0x212e1c(0x2c6)])(()=>_0xd03344[_0x212e1c(0x147)]()));let _0x535443=new i[(_0x212e1c(0x3de))]();_0x35d63e['add'](_0x3507ef['message$'][_0x212e1c(0x2a5)](_0x288bae=>{const _0xe7dbfc=_0x212e1c;let _0x3bdb6b=Ge(_0x288bae);_0x535443[_0xe7dbfc(0xd2)](_0x3bdb6b);})),_0x35d63e[_0x212e1c(0x1b1)]((0x0,t[_0x212e1c(0x2c6)])(()=>_0x535443[_0x212e1c(0x147)]()));let _0x1c206c,_0x375593=()=>{const _0x44fc96=_0x212e1c;_0xd03344['next'](new Event(_0x44fc96(0x2bd))),_0x2bd3ae[_0x44fc96(0xd2)](new Event(_0x44fc96(0x2bd))),_0x1c206c['close']();};return _0x1c206c={'memberID':'','close$':_0x2bd3ae['asObservable'](),'error$':_0xd03344[_0x212e1c(0x284)](),'open$':_0x3507ef['open$'],'message$':_0x535443[_0x212e1c(0x284)](),'send':_0x392d79=>{const _0x168ade=_0x212e1c;if(_0x392d79[_0x168ade(0x2e6)]===a[_0x168ade(0xe5)][_0x168ade(0x33c)]){if(_0x392d79['data']['eventID']===e[_0x168ade(0x137)][_0x168ade(0x14a)]){this['_submitChangeset'](_0x1c206c,_0x392d79[_0x168ade(0x346)])[_0x168ade(0x234)](_0x2e1d6a=>{const _0x52cb9b=_0x168ade;this[_0x52cb9b(0x3a2)][_0x52cb9b(0x3b2)](_0x2e1d6a),_0x375593();});return;}if(_0x392d79[_0x168ade(0x346)][_0x168ade(0x35a)]===e[_0x168ade(0x137)][_0x168ade(0x2fa)]){let _0xa7619a=_0x392d79[_0x168ade(0x346)];this[_0x168ade(0x22a)](_0xa7619a)[_0x168ade(0x32b)](_0x5cc0c=>{const _0x312fb6=_0x168ade;_0x535443[_0x312fb6(0xd2)]({'cmd':a[_0x312fb6(0xe5)][_0x312fb6(0x1e7)],'code':a[_0x312fb6(0x3a3)]['OK'],'routeKey':_0xa7619a[_0x312fb6(0x346)][_0x312fb6(0x2f8)],'routeType':'','data':{'eventID':e[_0x312fb6(0x137)][_0x312fb6(0x2fd)],'data':{'changesets':_0x5cc0c}}});})[_0x168ade(0x234)](_0x4895f7=>{const _0x22a999=_0x168ade;this[_0x22a999(0x3a2)]['error'](_0x4895f7),_0x375593();});return;}}_0x3507ef[_0x168ade(0x396)](Ke(_0x392d79));},'close':()=>{const _0x3de473=_0x212e1c;_0x3507ef[_0x3de473(0x309)](),_0x35d63e[_0x3de473(0x25c)]();}},_0x1c206c;}async[_0x281ba4(0x200)](_0x384943,_0x5465cf){const _0x3aa25d=_0x281ba4;var _0x1a9fa8;let {unitType:_0x5e43a1,unitID:_0x458c2b,changeset:_0x38e9d4}=_0x5465cf[_0x3aa25d(0x346)],_0x3ef0df={'unitID':_0x458c2b,'memberID':_0x384943[_0x3aa25d(0x20c)],'type':_0x5e43a1,'changeset':(0x0,e[_0x3aa25d(0x140)])(_0x38e9d4)},_0x171d9f=this['_configService'][_0x3aa25d(0x321)](m),_0x134d4b=Je((_0x1a9fa8=_0x171d9f==null?void 0x0:_0x171d9f[_0x3aa25d(0x3e4)])==null?_0x3aa25d(0x36f):_0x1a9fa8,_0x5e43a1,_0x458c2b);try{await this[_0x3aa25d(0x1f6)][_0x3aa25d(0x3bf)](_0x134d4b,{'body':_0x3ef0df});}catch(_0x25250e){throw this[_0x3aa25d(0x3a2)][_0x3aa25d(0x3b2)]('[CollaborationSession]',_0x3aa25d(0x1e1)),_0x25250e;}}async[_0x281ba4(0x22a)](_0x20b03c){const _0x5935b2=_0x281ba4;let {unitID:_0x5d0075,from:_0x412145,to:_0x176562,unitType:_0x1143ec}=_0x20b03c[_0x5935b2(0x346)];return(await this[_0x5935b2(0xf1)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5d0075,'type':_0x1143ec,'from':_0x412145,'to':_0x176562}))[_0x5935b2(0x395)][_0x5935b2(0x26b)](_0x4cc7e3=>((_0x4cc7e3[_0x5935b2(0x2b5)]===null||_0x4cc7e3[_0x5935b2(0x2b5)]===void 0x0)&&(_0x4cc7e3[_0x5935b2(0x2b5)]=[]),_0x4cc7e3));}};function _0x2431(_0x143849,_0x164b47){_0x143849=_0x143849-0xc5;const _0x49514c=_0x4951();let _0x24314d=_0x49514c[_0x143849];return _0x24314d;}Ye=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x2,t[_0x281ba4(0xca)]),v(0x3,t[_0x281ba4(0x150)]),v(0x4,e['ISnapshotServerService'])],Ye);const Xe=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x2e8));function Ze(_0x7ef1ae={}){const _0x11fc01=_0x281ba4;return _0x7ef1ae[_0x11fc01(0x1af)]?{'resolveUnit':_0x7ef1ae['resolveUnit']}:{'resolveUnit':_0x188e23=>({'target':{'unitId':_0x188e23[_0x11fc01(0x118)],'unitType':_0x188e23[_0x11fc01(0x311)]}})};}function Qe(_0x45fe21,_0x56154d,_0xc2d053){const _0x2948f4=_0x281ba4;var _0x5bb405;let _0x513dff=_0xc2d053['target'][_0x2948f4(0xd8)];if(_0x513dff!=null&&_0x513dff[_0x2948f4(0x271)]()==='')throw Error(_0x2948f4(0x12e));if(!_0xc2d053[_0x2948f4(0x302)][_0x2948f4(0x118)])throw Error(_0x2948f4(0x3ae));return{'localUnitId':_0x45fe21,'unitType':_0x56154d,'target':{'endpoint':_0x513dff,'unitId':_0xc2d053[_0x2948f4(0x302)]['unitId'],'unitType':(_0x5bb405=_0xc2d053[_0x2948f4(0x302)]['unitType'])==null?_0x56154d:_0x5bb405},'changeset':_0xc2d053[_0x2948f4(0x213)]};}let V=class extends t[_0x281ba4(0xe4)]{constructor(_0x4c6cfb,_0x4d2fed,_0x4371a8,_0x2c28e5,_0x344508,_0x4a9fc7,_0x10d4ec){const _0x44d446=_0x281ba4;super(),this[_0x44d446(0x103)]=_0x4c6cfb,this[_0x44d446(0x3a2)]=_0x4d2fed,this[_0x44d446(0x21b)]=_0x4371a8,this['_socketService']=_0x2c28e5,this['_collaborationUIEventService']=_0x344508,this[_0x44d446(0x229)]=_0x4a9fc7,this[_0x44d446(0x37f)]=_0x10d4ec,g(this,_0x44d446(0x263),new Map()),g(this,'_pendingSessions',new Map()),g(this,_0x44d446(0x365),new Map()),g(this,_0x44d446(0x21d),new Map()),g(this,_0x44d446(0xdc),this[_0x44d446(0x2ba)](void 0x0)[_0x44d446(0xdc)]['asObservable']()),g(this,_0x44d446(0x305),new i['BehaviorSubject'](0x0)),g(this,_0x44d446(0x3a9),this[_0x44d446(0x305)]['asObservable']()),this[_0x44d446(0x14d)]();}[_0x281ba4(0x14d)](){const _0x58d9ef=_0x281ba4;this[_0x58d9ef(0x37f)]&&this[_0x58d9ef(0x143)](this[_0x58d9ef(0x37f)][_0x58d9ef(0x38d)][_0x58d9ef(0x2a5)](_0x314105=>{const _0x3cf032=_0x58d9ef;_0x314105&&this['reconnect'](),_0x314105||this['_socketChannels']['forEach'](_0x3fc48e=>this[_0x3cf032(0x29d)](_0x3fc48e));}));}[_0x281ba4(0x25c)](){const _0x1ec290=_0x281ba4;super[_0x1ec290(0x25c)](),this[_0x1ec290(0x21d)]['forEach'](_0x4430a4=>{const _0x2d4d6f=_0x1ec290;var _0x285302,_0x28162c;(_0x285302=_0x4430a4['socketMessageSubscription'])==null||_0x285302['unsubscribe'](),_0x4430a4[_0x2d4d6f(0x331)]=null,this['_clearRetryConnectingTimer'](_0x4430a4),this[_0x2d4d6f(0x24c)](_0x4430a4),this[_0x2d4d6f(0x24b)](_0x4430a4),(_0x28162c=_0x4430a4[_0x2d4d6f(0xdc)][_0x2d4d6f(0x154)]())==null||_0x28162c[_0x2d4d6f(0x309)](),_0x4430a4['socket$'][_0x2d4d6f(0x147)]();}),this[_0x1ec290(0x21d)][_0x1ec290(0x33d)](),this[_0x1ec290(0x263)][_0x1ec290(0x179)](_0x53e8ec=>_0x53e8ec[_0x1ec290(0x25c)]()),this['_sessions'][_0x1ec290(0x33d)](),this['_sessionChannels'][_0x1ec290(0x33d)](),this[_0x1ec290(0x305)][_0x1ec290(0x147)]();}async[_0x281ba4(0x297)](_0x24c75e,_0x179496){const _0x4505b9=_0x281ba4;if(this[_0x4505b9(0x263)][_0x4505b9(0x125)](_0x24c75e))return this[_0x4505b9(0x263)][_0x4505b9(0x323)](_0x24c75e);let _0x44f70d=this[_0x4505b9(0x1f3)]['get'](_0x24c75e);if(_0x44f70d)return _0x44f70d;let _0x21d1c4=this[_0x4505b9(0x2d2)](_0x24c75e,_0x179496);this[_0x4505b9(0x1f3)]['set'](_0x24c75e,_0x21d1c4);try{return await _0x21d1c4;}finally{this[_0x4505b9(0x1f3)][_0x4505b9(0x19e)](_0x24c75e);}}async[_0x281ba4(0x2d2)](_0x529853,_0x259a71){const _0x181a5f=_0x281ba4;let _0x248d63=await this[_0x181a5f(0x105)](_0x529853,_0x259a71),_0x49da67=this[_0x181a5f(0x2ba)](_0x248d63[_0x181a5f(0x302)]['endpoint']);this[_0x181a5f(0x224)](_0x49da67);let _0x3cc8f9=this[_0x181a5f(0x103)][_0x181a5f(0x237)](x,_0x248d63,_0x49da67[_0x181a5f(0xdc)][_0x181a5f(0x284)]());return this['_sessions'][_0x181a5f(0x243)](_0x529853,_0x3cc8f9),this['_sessionChannels']['set'](_0x529853,_0x49da67[_0x181a5f(0x168)]),_0x3cc8f9;}[_0x281ba4(0x393)](_0x496d8e){const _0x3859ab=_0x281ba4;let _0x39ffed=this['_sessions'][_0x3859ab(0x323)](_0x496d8e),_0x50dce2=this['_sessionChannels']['get'](_0x496d8e);if(_0x39ffed&&(this[_0x3859ab(0x263)]['delete'](_0x496d8e),this[_0x3859ab(0x365)][_0x3859ab(0x19e)](_0x496d8e),_0x39ffed[_0x3859ab(0x309)]()),_0x50dce2&&!this[_0x3859ab(0x12a)](_0x50dce2)){var _0x907b50;let _0x394354=this[_0x3859ab(0x21d)][_0x3859ab(0x323)](_0x50dce2);_0x394354==null||(_0x907b50=_0x394354['socket$'][_0x3859ab(0x154)]())==null||_0x907b50[_0x3859ab(0x309)]();}}[_0x281ba4(0x1fe)](){const _0x2ebec7=_0x281ba4;(this[_0x2ebec7(0x21d)][_0x2ebec7(0x30e)]?[...this['_socketChannels']['values']()]:[this[_0x2ebec7(0x2ba)](void 0x0)])[_0x2ebec7(0x179)](_0x20db88=>{const _0x2b6b05=_0x2ebec7;_0x20db88[_0x2b6b05(0x250)]=0x0,this[_0x2b6b05(0xf6)](_0x20db88),this[_0x2b6b05(0x347)](_0x20db88);});}['_clearRetryConnectingTimer'](_0x1616a5){const _0x95561f=_0x281ba4;_0x1616a5[_0x95561f(0x342)]!=null&&(clearTimeout(_0x1616a5[_0x95561f(0x342)]),_0x1616a5[_0x95561f(0x342)]=null);}async[_0x281ba4(0x100)](_0x3bf295){const _0x416e0f=_0x281ba4;var _0x197d2f,_0x459935;let _0x53b833=this[_0x416e0f(0x21b)]['getConfig'](m),_0x2811f4=(_0x197d2f=(_0x459935=_0x3bf295[_0x416e0f(0xd8)])==null?_0x53b833==null?void 0x0:_0x53b833[_0x416e0f(0x23c)]:_0x459935)==null?te:_0x197d2f,_0x1291b1=await this[_0x416e0f(0x2b3)][_0x416e0f(0x1f2)](_0x2811f4);return _0x3bf295[_0x416e0f(0x324)]=_0x1291b1,_0x1291b1;}async[_0x281ba4(0x224)](_0x3e5a09){const _0x1c53b9=_0x281ba4;try{var _0x4e934d,_0x44b6d0;let _0x4a700a=(_0x4e934d=(_0x44b6d0=_0x3e5a09[_0x1c53b9(0xdc)]['getValue']())==null?_0x3e5a09[_0x1c53b9(0x324)]:_0x44b6d0)==null?await this[_0x1c53b9(0x100)](_0x3e5a09):_0x4e934d;if(_0x4a700a){var _0x1ebafa;let _0x3346d0=_0x4a700a[_0x1c53b9(0x396)];_0x4a700a[_0x1c53b9(0x396)]=_0x13486f=>(_0x13486f['cmd']!==a[_0x1c53b9(0xe5)]['LEAVE']&&this['_rescheduleHeartbeat'](_0x3e5a09),_0x3346d0['apply'](_0x4a700a,[_0x13486f])),(_0x1ebafa=_0x3e5a09[_0x1c53b9(0x331)])==null||_0x1ebafa[_0x1c53b9(0x259)](),_0x3e5a09[_0x1c53b9(0x331)]=null,_0x3e5a09['socketMessageSubscription']=_0x4a700a['message$']['subscribe'](_0x18930a=>this[_0x1c53b9(0x27d)](_0x3e5a09,_0x4a700a,_0x18930a)),_0x4a700a[_0x1c53b9(0x282)][_0x1c53b9(0x21e)]((0x0,s[_0x1c53b9(0x2ce)])(0x1))[_0x1c53b9(0x2a5)](_0x51247f=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x51247f)),_0x4a700a[_0x1c53b9(0x2c4)][_0x1c53b9(0x21e)]((0x0,s[_0x1c53b9(0x2ce)])(0x1))[_0x1c53b9(0x2a5)](()=>{this['_onConnectionOpen'](_0x3e5a09,_0x4a700a);}),_0x4a700a[_0x1c53b9(0x2ad)][_0x1c53b9(0x21e)]((0x0,s[_0x1c53b9(0x2ce)])(0x1))['subscribe'](_0x1932f2=>{const _0x3ce866=_0x1c53b9;this['_logService'][_0x3ce866(0x2e4)](_0x3ce866(0x38c),_0x3ce866(0x1b3),_0x1932f2),this[_0x3ce866(0x1e0)](_0x3e5a09);});}}catch(_0x4952c0){this['_logService'][_0x1c53b9(0x3b2)](_0x4952c0),this[_0x1c53b9(0x1e0)](_0x3e5a09);}}[_0x281ba4(0x1de)](_0x3ea4ce,_0x1b70d1){const _0x317625=_0x281ba4;this[_0x317625(0x3a2)][_0x317625(0x2e4)](_0x317625(0x38c),'socket\x20open.'),_0x1b70d1[_0x317625(0x396)]({'cmd':a[_0x317625(0xe5)][_0x317625(0x399)]}),this[_0x317625(0x3d1)](_0x3ea4ce);}['_onOffline'](_0x4fe617){const _0x5316c8=_0x281ba4;_0x4fe617[_0x5316c8(0x2af)]=!0x1,_0x4fe617[_0x5316c8(0x324)]=null,this[_0x5316c8(0x305)]['next'](0x2),_0x4fe617[_0x5316c8(0xdc)][_0x5316c8(0xd2)](null),this['_clearTimeoutTimer'](_0x4fe617),this[_0x5316c8(0x24b)](_0x4fe617);}['_onConnectionFailed'](_0x141fb3){const _0x4bd993=_0x281ba4;var _0x32407c;this[_0x4bd993(0x29d)](_0x141fb3),this[_0x4bd993(0x12a)](_0x141fb3[_0x4bd993(0x168)])&&(_0x141fb3[_0x4bd993(0x250)]<((_0x32407c=this['_configService']['getConfig'](_0x4bd993(0xec)))==null?0x3:_0x32407c)?(this[_0x4bd993(0x1a1)][_0x4bd993(0x298)]({'id':_0x4bd993(0x29c)}),this[_0x4bd993(0x347)](_0x141fb3)):this[_0x4bd993(0x1a1)][_0x4bd993(0x298)]({'id':_0x4bd993(0x2f0)}));}[_0x281ba4(0x347)](_0x371863){const _0x139504=_0x281ba4;var _0x3d178f;let _0xeba030=_0x371863[_0x139504(0x250)],_0x1f1e04=this['_configService']['getConfig'](m),_0x22c506=_0xeba030===0x0?0x0:((_0x3d178f=_0x1f1e04==null?void 0x0:_0x1f1e04['retryConnectingInterval'])==null?0x4e20:_0x3d178f)*0x2**_0xeba030;_0x371863[_0x139504(0x342)]=setTimeout(()=>{const _0x318a16=_0x139504;clearTimeout(_0x371863[_0x318a16(0x342)]),_0x371863[_0x318a16(0x342)]=null,this[_0x318a16(0x224)](_0x371863);},_0x22c506),_0x371863['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x1020a4,_0x3fc572){const _0x1f1fca=_0x281ba4;return Qe(_0x1020a4,_0x3fc572,await this[_0x1f1fca(0x229)][_0x1f1fca(0x1af)]({'unitId':_0x1020a4,'unitType':_0x3fc572}));}[_0x281ba4(0x27d)](_0x337433,_0x299a62,_0xc9ea0f){const _0x360992=_0x281ba4;let {cmd:_0x299e49}=_0xc9ea0f;_0x299e49===a[_0x360992(0xe5)][_0x360992(0x399)]&&!_0x337433[_0x360992(0x2af)]&&(_0x299a62[_0x360992(0x20c)]=_0xc9ea0f['data']['memberID'],_0x337433[_0x360992(0xdc)]['next'](_0x299a62),this['_status$'][_0x360992(0xd2)](0x3),_0x337433[_0x360992(0x2af)]=!0x0,_0x337433[_0x360992(0x324)]=null),_0x299e49===a[_0x360992(0xe5)]['HEARTBEAT']&&this[_0x360992(0x24c)](_0x337433),this[_0x360992(0x3d1)](_0x337433);}['_hasSessionsForEndpoint'](_0x596365){const _0x30c7d6=_0x281ba4;return[...this[_0x30c7d6(0x365)]['values']()]['some'](_0x5e6e37=>_0x5e6e37===_0x596365);}[_0x281ba4(0x2ba)](_0x3348da){const _0x363fc0=_0x281ba4;let _0x16b02f=_0x3348da==null?'':_0x3348da,_0x186d79=this[_0x363fc0(0x21d)][_0x363fc0(0x323)](_0x16b02f);if(_0x186d79)return _0x186d79;let _0x46ec7d={'endpointKey':_0x16b02f,'endpoint':_0x3348da,'socket$':new i[(_0x363fc0(0x332))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x363fc0(0x21d)][_0x363fc0(0x243)](_0x16b02f,_0x46ec7d),_0x46ec7d;}[_0x281ba4(0x3d1)](_0x2c5911){const _0x4dc7b3=_0x281ba4;var _0xce05e;this[_0x4dc7b3(0x24b)](_0x2c5911),_0x2c5911[_0x4dc7b3(0xd1)]=setTimeout(()=>this['_sendHeartbeat'](_0x2c5911),(_0xce05e=this[_0x4dc7b3(0x21b)][_0x4dc7b3(0x321)](_0x4dc7b3(0x2ae)))==null?0x7530:_0xce05e);}[_0x281ba4(0x358)](_0xdadce8){const _0x5b4540=_0x281ba4;_0xdadce8[_0x5b4540(0xdc)]['getValue']()['send']({'cmd':a[_0x5b4540(0xe5)][_0x5b4540(0x220)]}),this['_waitForHeartbeatResponse'](_0xdadce8);}[_0x281ba4(0x2c9)](_0x9ab7c3){const _0x46c041=_0x281ba4;var _0x13a838;_0x9ab7c3[_0x46c041(0x1b6)]=setTimeout(()=>this[_0x46c041(0x1e0)](_0x9ab7c3),(_0x13a838=this[_0x46c041(0x21b)][_0x46c041(0x321)](_0x46c041(0xeb)))==null?ne:_0x13a838);}[_0x281ba4(0x24b)](_0x39cd21){const _0x14edcf=_0x281ba4;_0x39cd21[_0x14edcf(0xd1)]!=null&&(clearTimeout(_0x39cd21[_0x14edcf(0xd1)]),_0x39cd21['sendHeartbeatTimer']=null);}[_0x281ba4(0x24c)](_0x30112e){const _0x55c0c0=_0x281ba4;_0x30112e[_0x55c0c0(0x1b6)]!=null&&(clearTimeout(_0x30112e[_0x55c0c0(0x1b6)]),_0x30112e['timeoutTimer']=null);}};V=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,t[_0x281ba4(0x150)]),v(0x2,t[_0x281ba4(0xca)]),v(0x3,qe),v(0x4,(0x0,t[_0x281ba4(0x241)])(_)),v(0x5,Xe),v(0x6,(0x0,t['Optional'])(We))],V);let H=class extends t[_0x281ba4(0x24d)]{constructor(_0x2944c1,_0x45487b,_0x395946,_0x3ad1d2){const _0x31be65=_0x281ba4;var _0x3c9d58;super(),this['_injector']=_0x2944c1,this['_collabSessionService']=_0x45487b,this['_configService']=_0x395946,this[_0x31be65(0x193)]=_0x3ad1d2,g(this,'_entities',new Map()),g(this,_0x31be65(0x1d9),new i[(_0x31be65(0x3de))]()),g(this,_0x31be65(0x246),this['_entityInit$'][_0x31be65(0x284)]()),((_0x3c9d58=this[_0x31be65(0x21b)][_0x31be65(0x321)](_0x31be65(0xfb)))==null?void 0x0:_0x3c9d58[_0x31be65(0x272)])!==!0x1&&this[_0x31be65(0x379)]();}[_0x281ba4(0x25c)](){const _0x38b99c=_0x281ba4;super[_0x38b99c(0x25c)](),this['_entities']['forEach'](_0x579cd4=>_0x579cd4[_0x38b99c(0x25c)]()),this[_0x38b99c(0x1d6)][_0x38b99c(0x33d)]();}['getCollabEntity'](_0x340a8a){const _0x2fb1db=_0x281ba4;var _0x16713c;return(_0x16713c=this[_0x2fb1db(0x1d6)][_0x2fb1db(0x323)](_0x340a8a))==null?null:_0x16713c;}[_0x281ba4(0x30b)](_0x293ee5){const _0x344ba0=_0x281ba4;let _0x45e0e9=this['getCollabEntity'](_0x293ee5);return _0x45e0e9?(0x0,i['of'])(_0x45e0e9):this['_entityInit$'][_0x344ba0(0x21e)]((0x0,s['filter'])(_0x228f4f=>_0x228f4f[_0x344ba0(0x2f8)]===_0x293ee5));}[_0x281ba4(0x2c0)](_0x348439){const _0x1d9b33=_0x281ba4;return(0x0,i['firstValueFrom'])(this[_0x1d9b33(0x30b)](_0x348439)[_0x1d9b33(0x21e)]((0x0,s[_0x1d9b33(0x26b)])(()=>void 0x0)));}['_init'](){const _0x3d68c6=_0x281ba4;this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t['UniverInstanceType'][_0x3d68c6(0x17b)])[_0x3d68c6(0x21e)]((0x0,i[_0x3d68c6(0x1f5)])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))['subscribe'](async _0x51a84f=>{const _0x75594a=_0x3d68c6;let _0x3fa837=_0x51a84f[_0x75594a(0x25d)][_0x75594a(0x34e)](),_0x591130=await this[_0x75594a(0x2d7)](_0x3fa837,t['UniverInstanceType']['UNIVER_SHEET']);this[_0x75594a(0x1d6)]['set'](_0x3fa837,_0x591130);}),this['_univerInstanceService'][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)][_0x3d68c6(0x157)])['pipe']((0x0,i[_0x3d68c6(0x1f5)])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))[_0x3d68c6(0x21e)]((0x0,s['filter'])(_0x10dd97=>!_0x10dd97[_0x3d68c6(0x25d)][_0x3d68c6(0x34e)]()[_0x3d68c6(0x37a)]('__')))[_0x3d68c6(0x2a5)](async _0x11e108=>{const _0x4d21ef=_0x3d68c6;let _0x7d5e39=_0x11e108[_0x4d21ef(0x25d)][_0x4d21ef(0x34e)](),_0x30427f=await this[_0x4d21ef(0x2d7)](_0x7d5e39,t['UniverInstanceType'][_0x4d21ef(0x157)]);this['_entities'][_0x4d21ef(0x243)](_0x7d5e39,_0x30427f);}),this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)]['UNIVER_SLIDE'])[_0x3d68c6(0x21e)]((0x0,i['takeUntil'])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))[_0x3d68c6(0x2a5)](async _0x32d540=>{const _0xe9be52=_0x3d68c6;let _0x5dabcb=_0x32d540[_0xe9be52(0x25d)][_0xe9be52(0x34e)](),_0x1359eb=await this[_0xe9be52(0x2d7)](_0x5dabcb,t[_0xe9be52(0x314)][_0xe9be52(0x352)]);this[_0xe9be52(0x1d6)][_0xe9be52(0x243)](_0x5dabcb,_0x1359eb);}),this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)][_0x3d68c6(0x2a1)])['pipe']((0x0,i['takeUntil'])(this[_0x3d68c6(0x109)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x3f8488=>{const _0x2bea2e=_0x3d68c6;let _0x1ba027=_0x3f8488[_0x2bea2e(0x25d)]['getUnitId'](),_0x5927fc=await this[_0x2bea2e(0x2d7)](_0x1ba027,t[_0x2bea2e(0x314)]['UNIVER_BOARD']);this[_0x2bea2e(0x1d6)][_0x2bea2e(0x243)](_0x1ba027,_0x5927fc);}),this[_0x3d68c6(0x193)][_0x3d68c6(0x382)](t[_0x3d68c6(0x314)][_0x3d68c6(0x37e)])[_0x3d68c6(0x21e)]((0x0,i['takeUntil'])(this[_0x3d68c6(0x109)]),(0x0,s[_0x3d68c6(0x292)])(0x10))[_0x3d68c6(0x2a5)](async _0x60fba8=>{const _0x29916b=_0x3d68c6;let _0x515ab8=_0x60fba8[_0x29916b(0x25d)][_0x29916b(0x34e)](),_0x1bed66=await this[_0x29916b(0x2d7)](_0x515ab8,t['UniverInstanceType'][_0x29916b(0x37e)]);this[_0x29916b(0x1d6)][_0x29916b(0x243)](_0x515ab8,_0x1bed66);}),(0x0,i[_0x3d68c6(0x299)])(this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t[_0x3d68c6(0x314)]['UNIVER_SHEET']),this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t[_0x3d68c6(0x314)][_0x3d68c6(0x157)]),this[_0x3d68c6(0x193)]['getTypeOfUnitDisposed$'](t[_0x3d68c6(0x314)][_0x3d68c6(0x352)]),this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t['UniverInstanceType']['UNIVER_BOARD']),this[_0x3d68c6(0x193)][_0x3d68c6(0x113)](t[_0x3d68c6(0x314)][_0x3d68c6(0x37e)]))[_0x3d68c6(0x21e)]((0x0,i[_0x3d68c6(0x1f5)])(this[_0x3d68c6(0x109)]))['subscribe'](_0x224067=>{const _0x402d30=_0x3d68c6;let _0x4dedf4=_0x224067['getUnitId'](),_0x2a0458=this[_0x402d30(0x1d6)]['get'](_0x4dedf4);_0x2a0458&&(_0x2a0458[_0x402d30(0x25c)](),this[_0x402d30(0x1d6)]['delete'](_0x4dedf4));});}async[_0x281ba4(0x2d7)](_0x4d86c0,_0x5a2161){const _0x433ddc=_0x281ba4;let _0x4f2358=await this[_0x433ddc(0x1ae)][_0x433ddc(0x297)](_0x4d86c0),_0x5ee4ef=this[_0x433ddc(0x103)][_0x433ddc(0x237)](this['_getCtorByUniverInstanceType'](_0x5a2161),_0x4d86c0,_0x5a2161,_0x4f2358);return await _0x5ee4ef[_0x433ddc(0x2cf)](),this[_0x433ddc(0x1d9)][_0x433ddc(0xd2)](_0x5ee4ef),_0x5ee4ef;}[_0x281ba4(0x375)](_0xef814){const _0x79c4c8=_0x281ba4;switch(_0xef814){case t[_0x79c4c8(0x314)]['UNIVER_DOC']:return I;case t['UniverInstanceType'][_0x79c4c8(0x17b)]:return R;case t['UniverInstanceType']['UNIVER_SLIDE']:return z;case t[_0x79c4c8(0x314)]['UNIVER_BOARD']:return B;case t[_0x79c4c8(0x314)][_0x79c4c8(0x37e)]:return L;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0xef814);}}};H=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(V)),v(0x2,t[_0x281ba4(0xca)]),v(0x3,t[_0x281ba4(0x1ad)])],H);var $e=_0x281ba4(0x2db),et='1.0.0-alpha.5';let tt=class extends t[_0x281ba4(0xe4)]{constructor(_0x30f38c,_0x161ad7){const _0x177d23=_0x281ba4;super(),this[_0x177d23(0x193)]=_0x30f38c,this[_0x177d23(0x21b)]=_0x161ad7,this[_0x177d23(0x379)]();}['_init'](){const _0x283fad=_0x281ba4;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x283fad(0x2a5)](()=>{const _0x1658e2=_0x283fad;var _0x3037d7;let _0x647ac2=this[_0x1658e2(0x193)][_0x1658e2(0x389)](),_0x8d4e7c=(_0x3037d7=this[_0x1658e2(0x21b)]['getConfig'](_0x1658e2(0x182)))==null?_0x1658e2(0x364):_0x3037d7;_0x647ac2 instanceof t[_0x1658e2(0x3df)]&&(_0x8d4e7c=_0x647ac2['name']),document[_0x1658e2(0x2f5)]=_0x8d4e7c;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x281ba4(0xca)])],tt);let nt=function(_0x27d664){const _0xf68566=_0x281ba4;return _0x27d664[_0xf68566(0x1e9)]=_0xf68566(0x1e9),_0x27d664[_0xf68566(0x337)]=_0xf68566(0x337),_0x27d664[_0xf68566(0xe3)]=_0xf68566(0xe3),_0x27d664;}({});const rt=(0x0,t[_0x281ba4(0x160)])(_0x281ba4(0x14e));let U=class{constructor(_0x75515e,_0x32db69,_0x2ce729){const _0x104492=_0x281ba4;this[_0x104492(0x1f6)]=_0x75515e,this['_configService']=_0x32db69,this['_univerInstanceService']=_0x2ce729;}[_0x281ba4(0x2d0)](){const _0x2c1a4c=_0x281ba4;var _0x387a30;return(_0x387a30=this[_0x2c1a4c(0x2c1)]()['attachment'])==null?{}:_0x387a30;}async[_0x281ba4(0x131)](_0x423879){const _0xc171ee=_0x281ba4;let _0x2b35e1=this[_0xc171ee(0x2d0)]();if(it(_0x423879,_0x2b35e1),_0x2b35e1[_0xc171ee(0x11f)])return _0x2b35e1['upload'](_0x423879);let _0x196b52=await this[_0xc171ee(0x146)](_0x423879);return{'id':_0x196b52,'name':_0x423879[_0xc171ee(0x219)],'mimeType':_0x423879[_0xc171ee(0x23b)],'size':_0x423879[_0xc171ee(0x30e)],'sourceType':_0xc171ee(0x337),'source':_0x196b52};}async[_0x281ba4(0x146)](_0x1e8e82){const _0x2ac304=_0x281ba4;let _0x29c88f=this[_0x2ac304(0x193)]['getFocusedUnit'](),_0x5dfcfc=_0x29c88f==null?void 0x0:_0x29c88f[_0x2ac304(0x34e)]();if(!_0x5dfcfc)throw Error(_0x2ac304(0x38b));let _0x1d4f91=new FormData();_0x1d4f91[_0x2ac304(0x185)](_0x2ac304(0x392),_0x1e8e82);let _0x4ae412=this[_0x2ac304(0xd0)]()+_0x2ac304(0x2d6)+_0x1e8e82[_0x2ac304(0x30e)][_0x2ac304(0x249)]()+'&source='+a[_0x2ac304(0xfd)][_0x2ac304(0x39c)]+_0x2ac304(0x301)+encodeURIComponent(_0x5dfcfc),_0x2fdef6=(await this[_0x2ac304(0x1f6)]['post'](_0x4ae412,{'body':_0x1d4f91}))[_0x2ac304(0x2dc)][_0x2ac304(0x13d)];if(typeof _0x2fdef6!=_0x2ac304(0x2e7)||!_0x2fdef6)throw Error(_0x2ac304(0x244));return _0x2fdef6;}['_getUploadFileURL'](){const _0x149d1f=_0x281ba4;var _0xdfd83;return(_0xdfd83=this[_0x149d1f(0x2c1)]()[_0x149d1f(0x10e)])==null?_0x149d1f(0x122):_0xdfd83;}[_0x281ba4(0x2c1)](){const _0x395ad4=_0x281ba4;var _0x51d782;return(_0x51d782=this['_configService'][_0x395ad4(0x321)](_0x395ad4(0xfb)))==null?{}:_0x51d782;}};U=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0xca)])),v(0x2,(0x0,t['Inject'])(t['IUniverInstanceService']))],U);function it(_0x27da43,_0x2b5086){const _0x2ee735=_0x281ba4;var _0xc459a2;if(_0x2b5086[_0x2ee735(0x293)]!=null&&_0x27da43[_0x2ee735(0x30e)]>_0x2b5086[_0x2ee735(0x293)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0xc459a2=_0x2b5086[_0x2ee735(0x3be)])!=null&&_0xc459a2['length']&&!_0x2b5086['accept'][_0x2ee735(0x151)](_0x5783b5=>_0x27da43[_0x2ee735(0x23b)]===_0x5783b5||_0x27da43[_0x2ee735(0x219)][_0x2ee735(0x2f2)](_0x5783b5)||_0x5783b5[_0x2ee735(0x2f2)]('/*')&&_0x27da43[_0x2ee735(0x23b)][_0x2ee735(0x37a)](_0x5783b5[_0x2ee735(0x164)](0x0,-0x1))))throw Error(_0x2ee735(0x1ba));}let W=class{constructor(_0x34095b,_0x58e5a2,_0xb838d1){const _0x1799ad=_0x281ba4;this[_0x1799ad(0x21b)]=_0x34095b,this[_0x1799ad(0x1f6)]=_0x58e5a2,this[_0x1799ad(0x2de)]=_0xb838d1,this[_0x1799ad(0x2cf)]();}[_0x281ba4(0x2cf)](){const _0x1dd0aa=_0x281ba4;this[_0x1dd0aa(0x1f6)][_0x1dd0aa(0x123)]({'priority':0x1,'interceptor':(_0x5a184b,_0x167b02)=>_0x167b02(_0x5a184b)[_0x1dd0aa(0x21e)]((0x0,i[_0x1dd0aa(0x1b7)])(async _0x1474da=>{const _0x2af237=_0x1dd0aa;let _0x672395=_0x1474da;if(_0x672395[_0x2af237(0x132)]===0x191){if(typeof window>'u')throw Error(_0x2af237(0x18c));if(window[_0x2af237(0x15a)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x19cf44=window[_0x2af237(0x25e)](window[_0x2af237(0x2b2)][_0x2af237(0x183)]);window[_0x2af237(0x2b2)][_0x2af237(0x183)]=this[_0x2af237(0x1a5)]()+_0x2af237(0x384)+_0x19cf44;}}return _0x672395;}))});}[_0x281ba4(0x1a5)](){const _0x22c004=_0x281ba4;var _0x54fd93;let _0x1bb9de=this[_0x22c004(0x21b)][_0x22c004(0x321)](m);return(_0x54fd93=_0x1bb9de==null?void 0x0:_0x1bb9de[_0x22c004(0x2e1)])==null?_0x22c004(0x13c):_0x54fd93;}};W=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t['Inject'])(l[_0x281ba4(0x2e3)])),v(0x2,(0x0,t[_0x281ba4(0x241)])(t['LocaleService']))],W);let G=class extends t[_0x281ba4(0xe4)]{constructor(_0x590c4e,_0x5e45e3){const _0x565093=_0x281ba4;super(),this[_0x565093(0xfe)]=_0x590c4e,this[_0x565093(0x21b)]=_0x5e45e3,g(this,'_cfgEnableObjInherit',!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x59b7bc=_0x281ba4;let _0x1badcc=this;this[_0x59b7bc(0x143)](this[_0x59b7bc(0xfe)][_0x59b7bc(0x123)]({'priority':0x3e7,'interceptor':(0x0,l['MergeInterceptorFactory'])({'isMatch'(_0x26ac29){const _0x5784bc=_0x59b7bc;var _0x4031f8;if(_0x26ac29['method']===_0x5784bc(0x3bb)&&(_0x4031f8=_0x26ac29['requestParams'])!=null&&_0x4031f8['body']){let {objectID:_0x5d335e,objectType:_0x33cdd8}=_0x26ac29[_0x5784bc(0x2dd)][_0x5784bc(0x2dc)]||{};if(!_0x5d335e||_0x33cdd8===void 0x0)return!0x1;let _0x1ab27=_0x1badcc[_0x5784bc(0x21c)]()+'/'+_0x33cdd8+_0x5784bc(0x15c)+_0x5d335e+'/allowed';if(_0x26ac29[_0x5784bc(0x339)]===_0x1ab27)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x591806){const _0x5f05d6=_0x59b7bc;var _0x4a9d7e;return(_0x4a9d7e=_0x591806[_0x5f05d6(0x2dd)])==null?void 0x0:_0x4a9d7e[_0x5f05d6(0x2dc)];},'mergeParamsToRequest'(_0x2c752b,_0x4f57a7){const _0x11c6b3=_0x59b7bc;let _0x371955=_0x1badcc[_0x11c6b3(0x21c)]()+_0x11c6b3(0x3ce),_0x3e6f71=_0x2c752b['reduce']((_0x3e0c00,_0x4a7ca3)=>{const _0x28eee7=_0x11c6b3;let {unitID:_0x12fdab,objectID:_0x137a4b,objectType:_0x68108f,actions:_0x259800}=_0x4a7ca3;return _0x3e0c00[_0x12fdab]||(_0x3e0c00[_0x12fdab]={}),_0x3e0c00[_0x12fdab][_0x137a4b]||(_0x3e0c00[_0x12fdab][_0x137a4b]={'objectID':_0x137a4b,'objectType':_0x68108f,'actions':[]}),_0x3e0c00[_0x12fdab][_0x137a4b][_0x28eee7(0x2df)]['push'](..._0x259800),_0x3e0c00;},{}),_0x3027fe=[];for(let _0x2afe2c in _0x3e6f71)for(let _0x1332a9 in _0x3e6f71[_0x2afe2c]){let {actions:_0x2a2f88,objectType:_0xc6d08a}=_0x3e6f71[_0x2afe2c][_0x1332a9],_0x19f053=[...new Set(_0x2a2f88)];_0x3027fe[_0x11c6b3(0x2a2)]({'unitID':_0x2afe2c,'objectID':_0x1332a9,'objectType':_0xc6d08a,'actions':_0x19f053});}return new l[(_0x11c6b3(0x1a9))](_0x11c6b3(0x3bb),_0x371955,{'headers':_0x4f57a7[_0x11c6b3(0x33b)],'withCredentials':_0x4f57a7[_0x11c6b3(0x181)],'responseType':_0x4f57a7[_0x11c6b3(0x156)],'body':{'requests':_0x3027fe}});}},{'distributeResult'(_0x8459ed,_0x37c81d){const _0x190af1=_0x59b7bc;let {objectActions:_0x412ed7}=_0x8459ed;return _0x37c81d[_0x190af1(0x26b)](_0x5a8352=>{const _0x56b5b9=_0x190af1;let {unitID:_0x517260,objectID:_0x561f80,actions:_0x2aed30}=_0x5a8352,_0x5ad7b4=_0x412ed7['find'](_0x1b9ff0=>_0x1b9ff0['unitID']===_0x517260&&_0x1b9ff0[_0x56b5b9(0x238)]===_0x561f80);return{'config':_0x5a8352,'result':{'actions':_0x2aed30[_0x56b5b9(0x26b)](_0xfda549=>_0x5ad7b4==null?void 0x0:_0x5ad7b4[_0x56b5b9(0x2df)]['find'](_0x2175f3=>_0x2175f3[_0x56b5b9(0x209)]===_0xfda549))[_0x56b5b9(0x129)](_0x291c8e=>!!_0x291c8e),'error':_0x8459ed[_0x56b5b9(0x3b2)]}};});}})}));}[_0x281ba4(0x21c)](){const _0x53cbe7=_0x281ba4;var _0x4676cd;let _0x41ad7e=this[_0x53cbe7(0x21b)][_0x53cbe7(0x321)](m);return(_0x4676cd=_0x41ad7e==null?void 0x0:_0x41ad7e['authzUrl'])==null?'/universer-api/authz':_0x4676cd;}async[_0x281ba4(0x221)](_0x3dd13a){const _0x4383c6=_0x281ba4;let _0x12bb93=this['_getAPIPrefixPath']()+'/'+_0x3dd13a[_0x4383c6(0x106)]+_0x4383c6(0x38f);return(await this['_HTTPService'][_0x4383c6(0x3bf)](_0x12bb93,{'body':_0x3dd13a}))[_0x4383c6(0x2dc)][_0x4383c6(0x238)]||'';}async[_0x281ba4(0x32f)](_0x461c70){const _0x4b1a5a=_0x281ba4;let _0x5b475a=this[_0x4b1a5a(0x21c)]()+_0x4b1a5a(0x356);return(await this[_0x4b1a5a(0xfe)][_0x4b1a5a(0x3bf)](_0x5b475a,{'body':_0x461c70}))[_0x4b1a5a(0x2dc)][_0x4b1a5a(0x11d)];}async[_0x281ba4(0x1ab)](_0x439ed4){const _0xab5b35=_0x281ba4;var _0x1956c5;let _0x34737c=this[_0xab5b35(0x21c)]()+'/'+_0x439ed4[_0xab5b35(0x106)]+_0xab5b35(0x15c)+_0x439ed4[_0xab5b35(0x238)],_0x4ca8d8=await this[_0xab5b35(0xfe)][_0xab5b35(0x12d)](_0x34737c,{'body':_0x439ed4});if((_0x4ca8d8==null||(_0x1956c5=_0x4ca8d8[_0xab5b35(0x2dc)])==null||(_0x1956c5=_0x1956c5['error'])==null?void 0x0:_0x1956c5[_0xab5b35(0x2a4)])!==0x1)throw Error(_0xab5b35(0x112));}async[_0x281ba4(0x29a)](_0x13ee76){const _0x513f20=_0x281ba4;let _0x370fe2=this['_getAPIPrefixPath']()+'/'+_0x13ee76[_0x513f20(0x106)]+_0x513f20(0x15c)+_0x13ee76['objectID']+'/allowed';return(await this[_0x513f20(0xfe)][_0x513f20(0x3bf)](_0x370fe2,{'body':_0x13ee76}))['body'][_0x513f20(0x2df)];}async['batchAllowed'](_0x510afe){const _0x138737=_0x281ba4;let _0x4b7e5e=this[_0x138737(0x21c)]()+_0x138737(0x3ce);return(await this[_0x138737(0xfe)]['post'](_0x4b7e5e,{'body':{'requests':_0x510afe}}))[_0x138737(0x2dc)][_0x138737(0x144)];}async[_0x281ba4(0xfc)](_0x3f77db){const _0xf6e9be=_0x281ba4;let _0x429c7e=this[_0xf6e9be(0x21c)]()+'/'+_0x3f77db['objectType']+_0xf6e9be(0x3a7),_0x331e3e=await this[_0xf6e9be(0xfe)][_0xf6e9be(0x3bf)](_0x429c7e,{'body':_0x3f77db});return{'roles':_0x331e3e[_0xf6e9be(0x2dc)][_0xf6e9be(0x1e5)],'actions':_0x331e3e['body'][_0xf6e9be(0x2df)]};}async[_0x281ba4(0x264)](_0x4a2786){const _0x52905c=_0x281ba4;let _0x24b2c7=this[_0x52905c(0x21c)]()+_0x52905c(0x279);await this['_HTTPService'][_0x52905c(0x19e)](_0x24b2c7,{'params':{'collaboratorID':_0x4a2786[_0x52905c(0x10c)],'objectID':_0x4a2786[_0x52905c(0x238)],'unitID':_0x4a2786['unitID']}});}async[_0x281ba4(0x308)](_0x426125){const _0x103b55=_0x281ba4;let _0x4f711b=this[_0x103b55(0x21c)]()+_0x103b55(0x279);await this['_HTTPService'][_0x103b55(0x2bc)](_0x4f711b,{'body':_0x426125});}async['createCollaborator'](_0x292079){const _0x4c5259=_0x281ba4;let _0x55d464=this[_0x4c5259(0x21c)]()+_0x4c5259(0x279);await this['_HTTPService']['post'](_0x55d464,{'body':_0x292079});}async[_0x281ba4(0x37d)](_0x304c94){const _0x26de37=_0x281ba4;var _0x3ecb2e;let _0x5dcb89=this[_0x26de37(0x21c)]()+_0x26de37(0x279),_0x353195=await this['_HTTPService'][_0x26de37(0x323)](_0x5dcb89,{'params':{'objectID':_0x304c94['objectID'],'unitID':_0x304c94['unitID']}});return this[_0x26de37(0x152)]((_0x3ecb2e=_0x353195[_0x26de37(0x2dc)]['cfgEnableObjInherit'])==null?!0x1:_0x3ecb2e),_0x353195[_0x26de37(0x2dc)][_0x26de37(0x233)];}async['putCollaborators'](_0x10a01c){const _0x1d3eb4=_0x281ba4;let _0x25affa=this['_getAPIPrefixPath']()+_0x1d3eb4(0x279);await this['_HTTPService'][_0x1d3eb4(0x12d)](_0x25affa,{'body':_0x10a01c});}[_0x281ba4(0x152)](_0x28733a){const _0xbe2d30=_0x281ba4;this[_0xbe2d30(0x3cd)]=_0x28733a;}[_0x281ba4(0x13b)](){return this['_cfgEnableObjInherit'];}};G=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(t['IConfigService']))],G);function at(_0x40d0b8){const _0x3454a5=_0x281ba4;let _0x4d6d57=atob(_0x40d0b8),_0x4d4b40=new Uint8Array(_0x4d6d57[_0x3454a5(0x16d)]);for(let _0x44c409=0x0;_0x44c409<_0x4d6d57[_0x3454a5(0x16d)];_0x44c409++)_0x4d4b40[_0x44c409]=_0x4d6d57[_0x3454a5(0x212)](_0x44c409);return _0x4d4b40;}function ot(_0x434681){const _0x2961d0=_0x281ba4;let _0x95ab4f='';for(let _0xa191d=0x0;_0xa191d<_0x434681['length'];_0xa191d++)_0x95ab4f+=String[_0x2961d0(0xf2)](_0x434681[_0xa191d]);return btoa(_0x95ab4f);}function st(_0x4d2c25,_0x52308a){const _0x176c30=_0x281ba4;let _0x5f4aad=at(_0x52308a),_0x1aafdc=(0x0,f[_0x176c30(0x32d)])(0x10);return ot((0x0,f[_0x176c30(0x366)])(_0x1aafdc,(0x0,d[_0x176c30(0x3c0)])(_0x5f4aad,_0x1aafdc)['encrypt']((0x0,f[_0x176c30(0x18a)])(_0x4d2c25))));}function ct(){const _0x5940c4=_0x281ba4;let _0x385af7=(0x0,u[_0x5940c4(0x310)])()[_0x5940c4(0x3da)];if(typeof window<'u'&&window[_0x5940c4(0x2b2)]!==void 0x0&&_0x385af7){let _0x4889da={'time':Math['floor'](Date['now']()/0x3e8),'domain':location[_0x5940c4(0x394)]};return st(JSON[_0x5940c4(0xf8)](_0x4889da),_0x385af7);}}let K=class{constructor(_0x3c5aa3){const _0x359522=_0x281ba4;this[_0x359522(0x1f6)]=_0x3c5aa3,this[_0x359522(0x39e)]();}[_0x281ba4(0x39e)](){const _0x474b9b=_0x281ba4;this[_0x474b9b(0x1f6)][_0x474b9b(0x123)]({'interceptor':(_0x2228a1,_0x31146f)=>{const _0x5e8bb4=_0x474b9b;let _0x46c1f9=ct();return _0x46c1f9&&_0x2228a1[_0x5e8bb4(0x33b)][_0x5e8bb4(0x243)]('x-univer-host',_0x46c1f9),_0x31146f(_0x2228a1);}});}};K=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l['HTTPService']))],K);let q=class extends t[_0x281ba4(0x24d)]{constructor(_0x39261c,_0x133663,_0x76c973){const _0x276c21=_0x281ba4;super(),this[_0x276c21(0x3a2)]=_0x39261c,this[_0x276c21(0x17d)]=_0x133663,this[_0x276c21(0x1ed)]=_0x76c973,g(this,'_unitInfo$',new i['BehaviorSubject'](null)),g(this,_0x276c21(0x13e),new i[(_0x276c21(0x3de))]()),g(this,'unitInfo$',this[_0x276c21(0x317)][_0x276c21(0x284)]()),g(this,_0x276c21(0xff),this[_0x276c21(0x13e)][_0x276c21(0x284)]());}[_0x281ba4(0x25c)](){const _0x59ba6e=_0x281ba4;super[_0x59ba6e(0x25c)](),this[_0x59ba6e(0x13e)]['complete'](),this[_0x59ba6e(0x317)][_0x59ba6e(0x147)]();}async[_0x281ba4(0x341)](_0x54fe90,_0x2996cb,_0x367bad,_0x282237){const _0x19a6a8=_0x281ba4;this['_unitInfo$'][_0x19a6a8(0xd2)]({'unitId':_0x54fe90,'type':_0x2996cb,'subUnitId':_0x282237});let _0x32ba64=null;switch(_0x2996cb){case t[_0x19a6a8(0x314)][_0x19a6a8(0x17b)]:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x206)](_0x54fe90,_0x367bad,void 0x0,{'initialSubUnitId':_0x282237});break;case t[_0x19a6a8(0x314)]['UNIVER_DOC']:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x2d8)](_0x54fe90,_0x367bad);break;case t[_0x19a6a8(0x314)][_0x19a6a8(0x352)]:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x12c)](_0x54fe90,_0x367bad);break;case t[_0x19a6a8(0x314)][_0x19a6a8(0x2a1)]:_0x32ba64=await this[_0x19a6a8(0x17d)][_0x19a6a8(0x1ce)](_0x54fe90,_0x367bad);break;case t[_0x19a6a8(0x314)][_0x19a6a8(0x37e)]:_0x32ba64=await this['_snapshotService'][_0x19a6a8(0x320)](_0x54fe90,_0x367bad);break;default:this[_0x19a6a8(0x3a2)][_0x19a6a8(0x3b2)](_0x19a6a8(0x2f3),_0x19a6a8(0x2e2));break;}return _0x32ba64&&this[_0x19a6a8(0x13e)][_0x19a6a8(0xd2)](_0x32ba64),_0x32ba64;}async['loadUnit'](_0x4c87f6,_0x23ed2f,_0x88bcc4){const _0x40e1c1=_0x281ba4;var _0x53509e;this[_0x40e1c1(0x317)][_0x40e1c1(0xd2)]({'unitId':_0x4c87f6,'type':_0x23ed2f,'subUnitId':_0x88bcc4});let _0x5b5160=0x0,_0xb1ffdf=await((_0x53509e=this['_localCacheService'])==null?void 0x0:_0x53509e[_0x40e1c1(0x1bb)](_0x4c87f6));return _0xb1ffdf&&(_0xb1ffdf[_0x40e1c1(0x1fb)]||_0xb1ffdf[_0x40e1c1(0x2b5)][_0x40e1c1(0x16d)]!==0x0)&&(_0x5b5160=_0xb1ffdf[_0x40e1c1(0x2bf)]),_0x5b5160===0x0&&this[_0x40e1c1(0x3a2)][_0x40e1c1(0x2e4)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x40e1c1(0x341)](_0x4c87f6,_0x23ed2f,_0x5b5160,_0x88bcc4);}};q=y([v(0x0,t['ILogService']),v(0x1,(0x0,t[_0x281ba4(0x241)])(e[_0x281ba4(0x1aa)])),v(0x2,(0x0,t[_0x281ba4(0x325)])(S))],q);let J=class{constructor(_0xd7099d,_0x4f844e,_0x3f73a3){const _0x2eb457=_0x281ba4;this[_0x2eb457(0x1f6)]=_0xd7099d,this[_0x2eb457(0x21b)]=_0x4f844e,this[_0x2eb457(0x193)]=_0x3f73a3,g(this,'_waitCount',0x0),g(this,_0x2eb457(0xe6),new i[(_0x2eb457(0x3de))]()),g(this,'change$',this[_0x2eb457(0xe6)]),g(this,_0x2eb457(0x1e6),new Map());}[_0x281ba4(0xf7)](_0xc09555){const _0x687f47=_0x281ba4;this[_0x687f47(0x223)]=_0xc09555,this[_0x687f47(0xe6)][_0x687f47(0xd2)](_0xc09555);}[_0x281ba4(0x25b)](_0x242459,_0x48b918){const _0x204417=_0x281ba4;if(_0x48b918===t[_0x204417(0x277)]['BASE64']){let _0x370e6b=new Image();return _0x370e6b['src']=_0x242459,_0x370e6b;}return this[_0x204417(0x1e6)][_0x204417(0x323)](_0x242459);}[_0x281ba4(0x360)](_0x29defc,_0x4060a4,_0x96dd7f){const _0x80f084=_0x281ba4;_0x4060a4===t['ImageSourceType'][_0x80f084(0xe3)]||_0x96dd7f==null||this[_0x80f084(0x1e6)]['set'](_0x29defc,_0x96dd7f);}async['getImage'](_0x40c90b){const _0x216f92=_0x281ba4;try{let _0x595684=this[_0x216f92(0x38a)](this['_getSignURL'](),''+_0x40c90b),_0x4a8412=(await this[_0x216f92(0x1f6)][_0x216f92(0x323)](_0x595684))[_0x216f92(0x2dc)];if(_0x4a8412[_0x216f92(0x3b2)]&&_0x4a8412[_0x216f92(0x3b2)][_0x216f92(0x2a4)]===a['ErrorCode']['OK']){let _0x2cb2c9=(0x0,t[_0x216f92(0x368)])(_0x4a8412['url'],this[_0x216f92(0x1b0)]());return Promise[_0x216f92(0x199)](_0x2cb2c9);}return Promise[_0x216f92(0x240)](_0x4a8412[_0x216f92(0x3b2)]);}catch(_0x40c4da){return Promise[_0x216f92(0x240)](_0x40c4da);}}async['saveImage'](_0x863186){const _0x1981a7=_0x281ba4;let _0x40edbf='';if(!p[_0x1981a7(0x2a8)][_0x1981a7(0x2c3)](_0x863186[_0x1981a7(0x23b)]))return this['_decreaseWaiting'](),Promise[_0x1981a7(0x240)](Error(t['ImageUploadStatusType'][_0x1981a7(0x20f)]));if(_0x863186[_0x1981a7(0x30e)]>(0x0,p['getDrawingImageAllowSize'])())return this['_decreaseWaiting'](),Promise['reject'](Error(t[_0x1981a7(0x23d)][_0x1981a7(0x171)]));try{let _0x3d7a34=new FormData();_0x3d7a34[_0x1981a7(0x185)]('file',_0x863186);let _0x4f46eb=this[_0x1981a7(0x193)]['getFocusedUnit'](),_0x372eac=_0x4f46eb==null?void 0x0:_0x4f46eb[_0x1981a7(0x34e)]();if(!_0x372eac)throw Error('unitId\x20is\x20not\x20found');let _0x37c863=this[_0x1981a7(0xd0)]()+'?size='+_0x863186[_0x1981a7(0x30e)][_0x1981a7(0x249)]()+_0x1981a7(0x16b)+a['FileSource']['UnitEmbedded']+_0x1981a7(0x301)+encodeURIComponent(_0x372eac),_0x42390e={'body':_0x3d7a34},_0xfd2120=(await this[_0x1981a7(0x1f6)][_0x1981a7(0x3bf)](_0x37c863,_0x42390e))['body'];if(typeof _0xfd2120[_0x1981a7(0x13d)]!=_0x1981a7(0x2e7))return this[_0x1981a7(0x257)](),Promise['reject'](Error(t[_0x1981a7(0x23d)][_0x1981a7(0x1d4)]));_0x40edbf=_0xfd2120[_0x1981a7(0x13d)];}catch{return this[_0x1981a7(0x257)](),Promise[_0x1981a7(0x240)](Error(t[_0x1981a7(0x23d)][_0x1981a7(0x1d4)]));}return new Promise((_0x90ba0e,_0x2cd47f)=>{const _0x467678=_0x1981a7;let _0x5ac45e=new FileReader();_0x5ac45e[_0x467678(0x15d)](_0x863186),_0x5ac45e[_0x467678(0x328)]=_0x243e9f=>{const _0x132625=_0x467678;var _0x4774eb;let _0x3aa46c=(_0x4774eb=_0x243e9f['target'])==null?void 0x0:_0x4774eb[_0x132625(0xcb)];if(_0x3aa46c==null){this[_0x132625(0x257)](),_0x2cd47f(Error(t[_0x132625(0x23d)][_0x132625(0x1d4)]));return;}_0x90ba0e({'imageId':(0x0,t[_0x132625(0x21a)])(0x6),'imageSourceType':t[_0x132625(0x277)]['UUID'],'source':_0x40edbf,'base64Cache':_0x3aa46c,'status':t[_0x132625(0x23d)]['SUCCUSS']}),this[_0x132625(0x257)]();};});}[_0x281ba4(0xd0)](){const _0x1ea61e=_0x281ba4;var _0x1ab065;let _0x174572=this[_0x1ea61e(0x21b)][_0x1ea61e(0x321)](m);return(_0x1ab065=_0x174572==null?void 0x0:_0x174572[_0x1ea61e(0x10e)])==null?_0x1ea61e(0x122):_0x1ab065;}[_0x281ba4(0x387)](){const _0x53968b=_0x281ba4;var _0x26aaee;let _0x17ef6c=this[_0x53968b(0x21b)][_0x53968b(0x321)](m);return(_0x26aaee=_0x17ef6c==null?void 0x0:_0x17ef6c[_0x53968b(0x2d9)])==null?'/universer-api/file/{fileID}/sign-url':_0x26aaee;}[_0x281ba4(0x1b0)](){const _0x379ea8=_0x281ba4;var _0x43f981;let _0x1f1343=this[_0x379ea8(0x21b)]['getConfig'](m);return(_0x43f981=_0x1f1343==null?void 0x0:_0x1f1343[_0x379ea8(0x1cd)])==null?location[_0x379ea8(0x345)]:_0x43f981;}[_0x281ba4(0x38a)](_0x40d6bf,_0x581352){const _0x1479b6=_0x281ba4;return _0x40d6bf[_0x1479b6(0x2aa)](_0x1479b6(0x15f),_0x581352);}['_decreaseWaiting'](){const _0x91e451=_0x281ba4;--this[_0x91e451(0x223)],this[_0x91e451(0xe6)][_0x91e451(0xd2)](this[_0x91e451(0x223)]);}};J=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t[_0x281ba4(0x241)])(t['IUniverInstanceService']))],J);let Y=class{constructor(_0x4a1586,_0x2627fb){const _0x2c2012=_0x281ba4;this['_configService']=_0x4a1586,this[_0x2c2012(0xfe)]=_0x2627fb;}['_getAPIPrefixPath'](){const _0xfb3258=_0x281ba4;var _0x7f7245;let _0x299fb3=this[_0xfb3258(0x21b)][_0xfb3258(0x321)](m);return(_0x7f7245=_0x299fb3==null?void 0x0:_0x299fb3['authzUrl'])==null?_0xfb3258(0x3c9):_0x7f7245;}async[_0x281ba4(0x32f)](_0x36515d){const _0xf936d3=_0x281ba4;let _0x49c828=this['_getAPIPrefixPath']()+'/collaborator';return{'list':[{'title':_0xf936d3(0x36e),'mentions':(await this[_0xf936d3(0xfe)][_0xf936d3(0x323)](_0x49c828,{'params':{'objectID':_0x36515d[_0xf936d3(0x118)],'unitID':_0x36515d['unitId']}}))[_0xf936d3(0x2dc)]['collaborators']['map'](_0x2cd31d=>({'objectId':_0x2cd31d['id'],'name':_0x2cd31d[_0xf936d3(0x3b9)][_0xf936d3(0x219)],'metadata':{'icon':_0x2cd31d[_0xf936d3(0x3b9)]['avatar']},'label':_0x2cd31d['subject'][_0xf936d3(0x219)],'objectType':t['MentionType'][_0xf936d3(0x3af)]})),'metadata':{},'type':t[_0xf936d3(0x1dd)][_0xf936d3(0x3af)]}]};}};Y=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0xca)])),v(0x1,(0x0,t[_0x281ba4(0x241)])(l[_0x281ba4(0x2e3)]))],Y);let X=class extends t[_0x281ba4(0x24d)]{constructor(_0x423dcd,_0x1dbab2,_0x57d410,_0x22a5c0,_0x4e428){const _0x1b8587=_0x281ba4;super(),this[_0x1b8587(0x103)]=_0x423dcd,this[_0x1b8587(0x193)]=_0x1dbab2,this['_permissionService']=_0x57d410,this['_collaborationSessionService']=_0x22a5c0,this[_0x1b8587(0x1a1)]=_0x4e428,this['_initUnitPermissionChange'](),this[_0x1b8587(0x1ec)]();}['_initCloseConn'](){const _0x1160c5=_0x281ba4;let _0x1330b8=async _0x2b4c89=>{const _0x1d862d=_0x2431;(await this['_collaborationSessionService'][_0x1d862d(0x297)](_0x2b4c89))['event$'][_0x1d862d(0x21e)]((0x0,s[_0x1d862d(0x129)])(_0x552879=>_0x552879[_0x1d862d(0x35a)]===e[_0x1d862d(0x137)][_0x1d862d(0x3e1)]),(0x0,s[_0x1d862d(0x1f5)])(this[_0x1d862d(0x109)]))[_0x1d862d(0x2a5)](_0x4443ff=>{const _0x3cce82=_0x1d862d;let {reason:_0x2d5ebf}=_0x4443ff[_0x3cce82(0x346)];this[_0x3cce82(0x1a1)][_0x3cce82(0x298)]({'id':_0x3cce82(0x20d),'data':_0x2d5ebf}),this['_permissionService'][_0x3cce82(0x30d)](new r[(_0x3cce82(0x10a))](_0x2b4c89)['id'],!0x1),this[_0x3cce82(0x3b7)][_0x3cce82(0x393)](_0x2b4c89);});};(0x0,i[_0x1160c5(0x299)])(this['_univerInstanceService'][_0x1160c5(0x382)](t['UniverInstanceType'][_0x1160c5(0x17b)]),this['_univerInstanceService'][_0x1160c5(0x382)](t[_0x1160c5(0x314)][_0x1160c5(0x157)]),this[_0x1160c5(0x193)][_0x1160c5(0x382)](t[_0x1160c5(0x314)][_0x1160c5(0x2a1)]),this[_0x1160c5(0x193)][_0x1160c5(0x382)](t['UniverInstanceType']['UNIVER_BASE']))['pipe']((0x0,s[_0x1160c5(0x26b)])(_0xb30f26=>_0xb30f26['unit']['getUnitId']()),(0x0,s['filter'])(_0x733d46=>!(0x0,t[_0x1160c5(0x2ec)])(_0x733d46)),(0x0,s[_0x1160c5(0x1f5)])(this[_0x1160c5(0x109)]))[_0x1160c5(0x2a5)](_0x18220c=>{_0x1330b8(_0x18220c);});}[_0x281ba4(0x1f4)](){const _0x472e6c=_0x281ba4;let _0x487374=async _0x581696=>{const _0x52e714=_0x2431;let _0x529cdc=await this['_collaborationSessionService'][_0x52e714(0x297)](_0x581696),_0x57b3ed=this[_0x52e714(0x103)][_0x52e714(0x323)](r['SheetPermissionInitController']);_0x529cdc[_0x52e714(0x22c)]['pipe']((0x0,s[_0x52e714(0x129)])(_0x22fece=>_0x22fece['eventID']===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s[_0x52e714(0x1f5)])(this[_0x52e714(0x109)]))[_0x52e714(0x2a5)](_0x53a5fb=>{const _0x375dc0=_0x52e714;let {objectId:_0x3d707a}=_0x53a5fb[_0x375dc0(0x346)];_0x3d707a===_0x581696?_0x57b3ed[_0x375dc0(0x101)](_0x581696):_0x57b3ed['refreshPermission'](_0x581696,_0x3d707a);});};(0x0,i['merge'])(this['_univerInstanceService'][_0x472e6c(0x382)](t['UniverInstanceType'][_0x472e6c(0x17b)]))[_0x472e6c(0x21e)]((0x0,s[_0x472e6c(0x26b)])(_0x12f82e=>_0x12f82e[_0x472e6c(0x25d)][_0x472e6c(0x34e)]()),(0x0,s[_0x472e6c(0x129)])(_0x21a87a=>!(0x0,t[_0x472e6c(0x2ec)])(_0x21a87a)),(0x0,s[_0x472e6c(0x1f5)])(this[_0x472e6c(0x109)]))[_0x472e6c(0x2a5)](_0x4831ff=>{_0x487374(_0x4831ff);});}};X=y([v(0x0,(0x0,t[_0x281ba4(0x241)])(t[_0x281ba4(0x145)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x281ba4(0x26f)]),v(0x3,(0x0,t[_0x281ba4(0x241)])(V)),v(0x4,(0x0,t[_0x281ba4(0x241)])(_))],X);let Z=class{constructor(_0x363507,_0x460db4){const _0x3e2a34=_0x281ba4;this[_0x3e2a34(0x21b)]=_0x363507,this['_httpService']=_0x460db4;}async[_0x281ba4(0x18e)](_0x3ebf69,_0x1072f5){const _0x281642=_0x281ba4;var _0x3f0aba;let {unitID:_0x186b07,type:_0x240e0a,revision:_0x21fed4=0x0}=_0x1072f5,_0x3dd69e=this[_0x281642(0x190)]()+'/'+_0x240e0a+_0x281642(0x111)+_0x186b07+_0x281642(0x22e)+_0x21fed4,_0x38dc6a=(await this[_0x281642(0x1f6)][_0x281642(0x323)](_0x3dd69e))[_0x281642(0x2dc)],_0x484e14=(_0x3f0aba=_0x38dc6a[_0x281642(0x1c2)])==null?void 0x0:_0x3f0aba[_0x281642(0x1fa)];if(_0x484e14){let _0x22a2f8=_0x484e14==null?void 0x0:_0x484e14[_0x281642(0x31a)];_0x484e14['originalMeta']=e['textEncoder'][_0x281642(0x116)]((0x0,e[_0x281642(0x2e5)])(_0x22a2f8)),Object[_0x281642(0x3bd)](_0x484e14[_0x281642(0x16e)])[_0x281642(0x179)](([,_0x24239d])=>{const _0x5ad908=_0x281642;let _0x2ab75e=_0x24239d[_0x5ad908(0x31a)];_0x24239d[_0x5ad908(0x31a)]=e[_0x5ad908(0x21f)][_0x5ad908(0x116)]((0x0,e['b64DecodeUnicode'])(_0x2ab75e));});}return _0x38dc6a;}async[_0x281ba4(0xdf)](_0x3854dc,_0x2fd448){const _0xfeecb8=_0x281ba4;let {unitID:_0x1cda83,type:_0x2c47bc,blockID:_0x5c6b}=_0x2fd448,_0x108022=this['_getAPIPrefix']()+'/'+_0x2c47bc+_0xfeecb8(0x111)+_0x1cda83+_0xfeecb8(0x25a)+_0x5c6b;return(await this[_0xfeecb8(0x1f6)][_0xfeecb8(0x323)](_0x108022))['body'];}async['getDeserializedSheetBlock'](_0xc10b8e,_0x565ea5){const _0x421d1b=_0x281ba4;let {unitID:_0x40369e,type:_0x4b577b,blockID:_0x488d5a}=_0x565ea5,_0x560ec6=this[_0x421d1b(0x25f)]()+'/block/'+_0x4b577b+_0x421d1b(0x111)+_0x40369e+_0x421d1b(0x25a)+_0x488d5a;return(await this['_httpService'][_0x421d1b(0x323)](_0x560ec6))[_0x421d1b(0x2dc)];}async[_0x281ba4(0x27a)](_0x4b62bb,_0x3e14ba){const _0x1a9262=_0x281ba4;let {unitID:_0x248059,type:_0x3d47bc,from:_0x4dcb8e,to:_0x29e8f2}=_0x3e14ba,_0x102338=this[_0x1a9262(0x25f)]()+'/'+_0x3d47bc+_0x1a9262(0x111)+_0x248059+_0x1a9262(0x1a3)+_0x4dcb8e+_0x1a9262(0x2a7)+_0x29e8f2;return(await this[_0x1a9262(0x1f6)][_0x1a9262(0x323)](_0x102338))[_0x1a9262(0x2dc)];}[_0x281ba4(0x190)](){const _0x1d880d=_0x281ba4;var _0x57affc;return(_0x57affc=this[_0x1d880d(0x21b)][_0x1d880d(0x321)](_0x1d880d(0x273)))==null?this['_getAPIPrefix']():_0x57affc;}['_getAPIPrefix'](){const _0x228dde=_0x281ba4;var _0x334aa0;let _0x16a664=this['_configService'][_0x228dde(0x321)](m);return(_0x334aa0=_0x16a664==null?void 0x0:_0x16a664[_0x228dde(0x2f4)])==null?'/universer-api/snapshot':_0x334aa0;}async[_0x281ba4(0x291)](_0x31b58d,_0x3e317c){const _0x51b6d4=_0x281ba4;let _0x52a851=_0x51b6d4(0x398)+_0x3e317c['type']+_0x51b6d4(0x111)+_0x3e317c['unitID']+_0x51b6d4(0x1d2);return(await this[_0x51b6d4(0x1f6)]['get'](_0x52a851,{'params':{'resourceId':JSON[_0x51b6d4(0xf8)](_0x3e317c[_0x51b6d4(0x335)])}}))['body'];}[_0x281ba4(0x3dd)](){const _0x3415a2=_0x281ba4;throw Error(_0x3415a2(0x222));}['updateSnapshot'](){const _0x16c687=_0x281ba4;throw Error(_0x16c687(0x222));}[_0x281ba4(0x1a7)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x281ba4(0x1ef)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x281ba4(0x362)](){const _0x505d84=_0x281ba4;throw Error(_0x505d84(0x222));}[_0x281ba4(0x359)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Z=y([v(0x0,t[_0x281ba4(0xca)]),v(0x1,(0x0,t[_0x281ba4(0x241)])(l['HTTPService']))],Z);let Q=class extends t[_0x281ba4(0x138)]{constructor(_0x4bdee7,_0x416c3d,_0x54887f,_0x191ea8,_0x1a55df){const _0x3af722=_0x281ba4;super(_0x4bdee7,_0x416c3d,_0x54887f),this[_0x3af722(0x1d7)]=_0x191ea8,this[_0x3af722(0x3a2)]=_0x1a55df;}[_0x281ba4(0x295)](_0x2e2587,_0x10cedd){const _0x5b16b5=_0x281ba4;let _0x553bd2=this[_0x5b16b5(0x2a6)](_0x2e2587);if(_0x553bd2)try{let _0x40526e=this['_transformStack'](_0x553bd2,_0x10cedd);this[_0x5b16b5(0x177)](_0x2e2587,_0x40526e);}catch(_0x58ca59){this[_0x5b16b5(0x3a2)][_0x5b16b5(0x3b2)](_0x5b16b5(0x195),_0x58ca59),this['_clearUndo'](_0x2e2587);}let _0x504003=this[_0x5b16b5(0x23f)](_0x2e2587);if(_0x504003)try{let _0x4bd217=this[_0x5b16b5(0x274)](_0x504003,_0x10cedd);this['_substituteRedoStack'](_0x2e2587,_0x4bd217);}catch(_0x2db85b){this['_logService'][_0x5b16b5(0x3b2)](_0x2db85b),this['_clearRedo'](_0x2e2587);}}['_clearUndo'](_0x1ccdaf){const _0x48df4e=_0x281ba4;let _0x1ecdf0=this[_0x48df4e(0x2a6)](_0x1ccdaf);_0x1ecdf0&&(_0x1ecdf0[_0x48df4e(0x16d)]=0x0,this[_0x48df4e(0x1be)]());}[_0x281ba4(0x20b)](_0x114605){const _0x5af231=_0x281ba4;let _0x501fbb=this[_0x5af231(0x23f)](_0x114605);_0x501fbb&&(_0x501fbb['length']=0x0,this[_0x5af231(0x1be)]());}['_substituteUndoStack'](_0x971816,_0x25157a){const _0x423226=_0x281ba4;this[_0x423226(0x1e3)][_0x423226(0x243)](_0x971816,_0x25157a),this[_0x423226(0x1be)]();}[_0x281ba4(0x30f)](_0x42b06f,_0x19c695){const _0xa400b6=_0x281ba4;this[_0xa400b6(0x165)][_0xa400b6(0x243)](_0x42b06f,_0x19c695),this['_updateStatus']();}[_0x281ba4(0x274)](_0x2914f8,_0x895cb0){const _0x56dc3d=_0x281ba4;let _0x3c2cc9=[],_0x55cd51=_0x895cb0,_0xf6c8ce=_0x895cb0;for(let _0x2392f9=_0x2914f8[_0x56dc3d(0x16d)]-0x1;_0x2392f9>=0x0;_0x2392f9--){let {unitID:_0x203c16,undoMutations:_0x18dbb8,redoMutations:_0x7de78}=_0x2914f8[_0x2392f9],_0x167402=this['_transformService'][_0x56dc3d(0x207)](_0x55cd51,_0x18dbb8),_0x4086cb=this[_0x56dc3d(0x1d7)]['transformMutationsWithChangeset'](_0xf6c8ce,_0x7de78);if((0x0,e[_0x56dc3d(0x19c)])(_0x167402)||(0x0,e[_0x56dc3d(0x19c)])(_0x4086cb)){this[_0x56dc3d(0x3a2)][_0x56dc3d(0x3b2)]('[CollaborationUndoRedoService]',_0x56dc3d(0x20a),_0x167402,_0x4086cb);break;}_0x55cd51=_0x167402[_0x56dc3d(0x167)],_0xf6c8ce=_0x4086cb[_0x56dc3d(0x167)],_0x3c2cc9[_0x56dc3d(0x2a2)]({'unitID':_0x203c16,'undoMutations':_0x167402['m2Prime'],'redoMutations':_0x4086cb[_0x56dc3d(0x275)]});}return _0x3c2cc9[_0x56dc3d(0x17c)]();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x281ba4(0x300)]),v(0x2,t[_0x281ba4(0xf5)]),v(0x3,e['ITransformService']),v(0x4,t[_0x281ba4(0x150)])],Q);let $=class extends t[_0x281ba4(0x189)]{constructor(_0x51dffc=ee,_0x2de9ad,_0x32b776,_0x2a1a7d){const _0x16096e=_0x281ba4;super(),this[_0x16096e(0x29e)]=_0x51dffc,this[_0x16096e(0x3a2)]=_0x2de9ad,this[_0x16096e(0x103)]=_0x32b776,this[_0x16096e(0x21b)]=_0x2a1a7d;let {..._0x4e61c2}=(0x0,t[_0x16096e(0x299)])({},ee,this[_0x16096e(0x29e)]);if(!_0x4e61c2[_0x16096e(0x149)])throw Error(_0x16096e(0x28c));this[_0x16096e(0x29e)]=_0x4e61c2,this[_0x16096e(0x21b)]['setConfig'](m,_0x4e61c2);}['onStarting'](){const _0x110d22=_0x281ba4;this[_0x110d22(0x326)](),this[_0x110d22(0x296)]();}[_0x281ba4(0x326)](){const _0xcc5313=_0x281ba4;var _0x246131,_0x53ec8b;this['_injector'][_0xcc5313(0x125)](t[_0xcc5313(0x194)])&&this[_0xcc5313(0x3a2)][_0xcc5313(0x3b2)](_0xcc5313(0x267),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x5388e2=(0x0,t['mergeOverrideWithDependencies'])([[t[_0xcc5313(0x194)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0xcc5313(0x29e)][_0xcc5313(0x149)]}],[e[_0xcc5313(0x391)],{'useClass':Z}],[t[_0xcc5313(0x121)],{'useClass':G}],[t[_0xcc5313(0xd5)],{'useClass':J}],[rt,{'useClass':U}],[t[_0xcc5313(0x1dc)],{'useClass':Y}],[H],[tt]],(_0x246131=this['_config'])==null?void 0x0:_0x246131[_0xcc5313(0x15b)]);if(!((_0x53ec8b=this[_0xcc5313(0x29e)])!=null&&_0x53ec8b[_0xcc5313(0x2b7)])){let _0xb9baf2=_0x5388e2['findIndex'](([_0x45f815])=>_0x45f815===w);_0xb9baf2!==-0x1&&_0x5388e2[_0xcc5313(0xe9)](_0xb9baf2,0x1);}(0x0,t[_0xcc5313(0x28b)])(this[_0xcc5313(0x103)],_0x5388e2);}[_0x281ba4(0x296)](){const _0x1f1c8f=_0x281ba4;var _0x1d38d8,_0x62d53f;if(this[_0x1f1c8f(0x103)][_0x1f1c8f(0x323)](l[_0x1f1c8f(0x2e3)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,l['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x1d38d8=this[_0x1f1c8f(0x29e)])!=null&&_0x1d38d8[_0x1f1c8f(0x3b5)])){var _0x10b4fe;(_0x10b4fe=this[_0x1f1c8f(0x103)]['get'](S,t[_0x1f1c8f(0x30c)]['OPTIONAL']))==null||_0x10b4fe[_0x1f1c8f(0x215)]();}(_0x62d53f=this[_0x1f1c8f(0x29e)])!=null&&_0x62d53f[_0x1f1c8f(0x3dc)]&&(0x0,t['touchDependencies'])(this['_injector'],[[W]]),(0x0,t[_0x1f1c8f(0x1c7)])(this[_0x1f1c8f(0x103)],[[K],[H],[X]]);}};g($,_0x281ba4(0x141),_0x281ba4(0x268)),g($,_0x281ba4(0x289),$e),g($,_0x281ba4(0x13f),et),$=y([(0x0,t['DependentOn'])(u['UniverLicensePlugin'],e[_0x281ba4(0x1a4)],l[_0x281ba4(0x225)]),v(0x1,t[_0x281ba4(0x150)]),v(0x2,(0x0,t['Inject'])(t[_0x281ba4(0x145)])),v(0x3,t[_0x281ba4(0xca)])],$),exports[_0x281ba4(0xfa)]=nt,Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x3a5),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x281ba4(0x17f),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x3cf),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x133),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x187),{'enumerable':!0x0,'get':function(){return B;}}),exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=m,Object[_0x281ba4(0x1c9)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x281ba4(0x1c9)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x281ba4(0x1c9)](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x2ee),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x127),{'enumerable':!0x0,'get':function(){return x;}}),Object['defineProperty'](exports,_0x281ba4(0x288),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x281ba4(0x1c9)](exports,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x281ba4(0x3e3)]=Be,exports['CollaborationUIEventId']=oe,exports[_0x281ba4(0x142)]=_,Object[_0x281ba4(0x1c9)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports['CommentService']=se,Object[_0x281ba4(0x1c9)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x281ba4(0x247)]=te,exports[_0x281ba4(0x2fc)]=_0x281ba4(0x11a),exports[_0x281ba4(0x31d)]=_0x281ba4(0x23e),Object['defineProperty'](exports,_0x281ba4(0x2ff),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x322),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x184),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x281ba4(0x269)]=_0x281ba4(0x2ae),exports[_0x281ba4(0x370)]=_0x281ba4(0xeb),exports[_0x281ba4(0x280)]=rt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x281ba4(0x198)]=qe,exports['ILocalCacheService']=S,exports[_0x281ba4(0x3b1)]=We,exports[_0x281ba4(0x13a)]=w,exports[_0x281ba4(0xcd)]=0x3e8,exports[_0x281ba4(0x117)]=_0x281ba4(0xcd),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x208),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x281ba4(0x1c9)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x1c3),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x23a),{'enumerable':!0x0,'get':function(){return k;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x281ba4(0xe8),exports[_0x281ba4(0x1d3)]=_0x281ba4(0xec),exports['SessionStatus']=ve,Object['defineProperty'](exports,_0x281ba4(0x287),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x29b),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x281ba4(0x1c9)](exports,_0x281ba4(0x2e0),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x281ba4(0x1c9)](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x281ba4(0x348)]=Se,Object[_0x281ba4(0x1c9)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x281ba4(0x1f8)]=Ze,exports[_0x281ba4(0x1b8)]=Ge,exports[_0x281ba4(0x388)]=be,exports[_0x281ba4(0x210)]=Ke;
1
+ const _0x5a7686=_0x5741;(function(_0x3ed621,_0x375178){const _0x300a5e=_0x5741,_0x245da6=_0x3ed621();while(!![]){try{const _0xe07164=parseInt(_0x300a5e(0xfb))/0x1+-parseInt(_0x300a5e(0x136))/0x2+-parseInt(_0x300a5e(0x2ce))/0x3+parseInt(_0x300a5e(0x391))/0x4*(parseInt(_0x300a5e(0x2fa))/0x5)+parseInt(_0x300a5e(0x185))/0x6+-parseInt(_0x300a5e(0x15a))/0x7*(parseInt(_0x300a5e(0x1da))/0x8)+parseInt(_0x300a5e(0x36d))/0x9;if(_0xe07164===_0x375178)break;else _0x245da6['push'](_0x245da6['shift']());}catch(_0x1ace8d){_0x245da6['push'](_0x245da6['shift']());}}}(_0x37aa,0x59dc2),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5a7686(0x14d)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x5a7686(0x159),ee={},te=_0x5a7686(0x172),ne=0x4e20;function re(_0x53d7fe){const _0xed14d0=_0x5a7686;return JSON['stringify'](_0x53d7fe)[_0xed14d0(0x225)];}function h(_0x5c886d){'@babel/helpers - typeof';const _0x318a9e=_0x5a7686;return h=typeof Symbol==_0x318a9e(0x137)&&typeof Symbol['iterator']==_0x318a9e(0x372)?function(_0x200a9c){return typeof _0x200a9c;}:function(_0x35d4d6){const _0x4663fd=_0x318a9e;return _0x35d4d6&&typeof Symbol==_0x4663fd(0x137)&&_0x35d4d6[_0x4663fd(0x169)]===Symbol&&_0x35d4d6!==Symbol[_0x4663fd(0x31c)]?_0x4663fd(0x372):typeof _0x35d4d6;},h(_0x5c886d);}function ie(_0x5b590b,_0x3564cd){const _0x5538b3=_0x5a7686;if(h(_0x5b590b)!=_0x5538b3(0x32b)||!_0x5b590b)return _0x5b590b;var _0xb32292=_0x5b590b[Symbol[_0x5538b3(0x2e5)]];if(_0xb32292!==void 0x0){var _0x4bc327=_0xb32292[_0x5538b3(0x259)](_0x5b590b,_0x3564cd||_0x5538b3(0x288));if(h(_0x4bc327)!=_0x5538b3(0x32b))return _0x4bc327;throw TypeError(_0x5538b3(0x7e));}return(_0x3564cd===_0x5538b3(0x354)?String:Number)(_0x5b590b);}function ae(_0x17afdd){const _0x3ab301=_0x5a7686;var _0x360b02=ie(_0x17afdd,_0x3ab301(0x354));return h(_0x360b02)==_0x3ab301(0x372)?_0x360b02:_0x360b02+'';}function g(_0x4e5318,_0x333f3d,_0x4df28b){const _0x4d8b58=_0x5a7686;return(_0x333f3d=ae(_0x333f3d))in _0x4e5318?Object[_0x4d8b58(0xd8)](_0x4e5318,_0x333f3d,{'value':_0x4df28b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e5318[_0x333f3d]=_0x4df28b,_0x4e5318;}let oe=function(_0x17ab7d){const _0x33755d=_0x5a7686;return _0x17ab7d[_0x33755d(0x130)]='OTHER_CLIENT_EDITING',_0x17ab7d['PERMISSION_DENIED']=_0x33755d(0x1a8),_0x17ab7d[_0x33755d(0x276)]=_0x33755d(0x276),_0x17ab7d[_0x33755d(0x192)]=_0x33755d(0x192),_0x17ab7d['JOIN_ROOM_FAILED']=_0x33755d(0x230),_0x17ab7d[_0x33755d(0x181)]=_0x33755d(0x181),_0x17ab7d[_0x33755d(0x199)]=_0x33755d(0x199),_0x17ab7d[_0x33755d(0x374)]=_0x33755d(0x374),_0x17ab7d;}({});var _=class{constructor(){const _0x2468f0=_0x5a7686;g(this,_0x2468f0(0x25f),new i['Subject']()),g(this,_0x2468f0(0x127),this['_event$']['asObservable']());}[_0x5a7686(0x388)](_0xf17539){const _0x1d7360=_0x5a7686;this['_event$'][_0x1d7360(0x1eb)](_0xf17539);}},se=class{constructor(){const _0x28e2a=_0x5a7686;g(this,'_commentUpdate$',new i[(_0x28e2a(0x340))]()),g(this,_0x28e2a(0x19d),this[_0x28e2a(0x2ba)][_0x28e2a(0xea)]());}[_0x5a7686(0x2a5)](_0x10fbee){const _0x1e3a57=_0x5a7686;this['_commentUpdate$'][_0x1e3a57(0x1eb)](_0x10fbee);}};function v(_0x1c0871,_0x3c2a88){return function(_0x2e732d,_0x18e2cc){_0x3c2a88(_0x2e732d,_0x18e2cc,_0x1c0871);};}function y(_0x48aef3,_0x5260d0,_0x554538,_0x2e7241){const _0x1d5ebc=_0x5a7686;var _0xa1ac62=arguments[_0x1d5ebc(0x225)],_0x5123bd=_0xa1ac62<0x3?_0x5260d0:_0x2e7241===null?_0x2e7241=Object['getOwnPropertyDescriptor'](_0x5260d0,_0x554538):_0x2e7241,_0x25bf26;if(typeof Reflect=='object'&&typeof Reflect[_0x1d5ebc(0x342)]=='function')_0x5123bd=Reflect[_0x1d5ebc(0x342)](_0x48aef3,_0x5260d0,_0x554538,_0x2e7241);else{for(var _0x4f47b8=_0x48aef3[_0x1d5ebc(0x225)]-0x1;_0x4f47b8>=0x0;_0x4f47b8--)(_0x25bf26=_0x48aef3[_0x4f47b8])&&(_0x5123bd=(_0xa1ac62<0x3?_0x25bf26(_0x5123bd):_0xa1ac62>0x3?_0x25bf26(_0x5260d0,_0x554538,_0x5123bd):_0x25bf26(_0x5260d0,_0x554538))||_0x5123bd);}return _0xa1ac62>0x3&&_0x5123bd&&Object[_0x1d5ebc(0xd8)](_0x5260d0,_0x554538,_0x5123bd),_0x5123bd;}let b=class extends t[_0x5a7686(0x117)]{constructor(_0x7afd07,_0x155ef4){const _0x577483=_0x5a7686;super(),this[_0x577483(0x104)]=_0x7afd07,this[_0x577483(0x17e)]=_0x155ef4,g(this,'_roomMembers',new Map()),g(this,_0x577483(0xfc),new i[(_0x577483(0x340))]()),this[_0x577483(0x17d)]((0x0,i[_0x577483(0x316)])(this['_univerInstanceService'][_0x577483(0x16b)](t[_0x577483(0x2e9)][_0x577483(0xa2)])[_0x577483(0xf8)]((0x0,s['map'])(_0x53ce26=>_0x53ce26[_0x577483(0x250)]())),this['_univerInstanceService'][_0x577483(0x16b)](t[_0x577483(0x2e9)]['UNIVER_DOC'])['pipe']((0x0,s[_0x577483(0x350)])(_0x84bd48=>_0x84bd48[_0x577483(0x250)]())),this[_0x577483(0x104)]['getTypeOfUnitDisposed$'](t[_0x577483(0x2e9)][_0x577483(0x320)])[_0x577483(0xf8)]((0x0,s[_0x577483(0x350)])(_0x20c9f1=>_0x20c9f1[_0x577483(0x250)]())),this[_0x577483(0x104)]['getTypeOfUnitDisposed$'](t[_0x577483(0x2e9)][_0x577483(0x27f)])['pipe']((0x0,s[_0x577483(0x350)])(_0x313c11=>_0x313c11['getUnitId']())))[_0x577483(0x24b)](_0x248410=>this[_0x577483(0x1ff)](_0x248410)));}[_0x5a7686(0x327)](_0x29e702){const _0x3bd5b2=_0x5a7686;return this[_0x3bd5b2(0x1b6)]['has'](_0x29e702)?(0x0,i['of'])(this[_0x3bd5b2(0x1b6)][_0x3bd5b2(0x1b7)](_0x29e702)):this[_0x3bd5b2(0xfc)][_0x3bd5b2(0xf8)]((0x0,s[_0x3bd5b2(0x350)])(_0x4b0fcb=>{const _0x5aec48=_0x3bd5b2;if(_0x4b0fcb===_0x29e702)return this['_roomMembers'][_0x5aec48(0x1b7)](_0x4b0fcb);}));}[_0x5a7686(0x9e)](_0x4e7a66){const _0x5389a3=_0x5a7686;this['_userManagerService'][_0x5389a3(0x9e)](_0x4e7a66);}[_0x5a7686(0x7a)](){const _0xa00f16=_0x5a7686;return this[_0xa00f16(0x17e)][_0xa00f16(0x7a)]();}[_0x5a7686(0xd1)](_0x1df353,_0x344841){const _0xa11beb=_0x5a7686;let _0x28a56b=this['_roomMembers'][_0xa11beb(0x1b7)](_0x1df353);_0x28a56b||(_0x28a56b=new ce(),this[_0xa11beb(0x1b6)][_0xa11beb(0x22c)](_0x1df353,_0x28a56b),this[_0xa11beb(0xfc)][_0xa11beb(0x1eb)](_0x1df353)),_0x28a56b[_0xa11beb(0xd1)](_0x344841);}[_0x5a7686(0x18d)](_0x337d05,_0x3a3257){const _0x1deea8=_0x5a7686;let _0x4b8c94=this[_0x1deea8(0x1b6)][_0x1deea8(0x1b7)](_0x337d05);_0x4b8c94&&_0x4b8c94['removeMember'](_0x3a3257);}[_0x5a7686(0xda)](_0x6b7742){const _0x2084b4=_0x5a7686;return this[_0x2084b4(0x1b6)]['get'](_0x6b7742);}['getMember'](_0xd9851d,_0xd5d0ac){const _0x2022e8=_0x5a7686;let _0x2d198f=this[_0x2022e8(0x1b6)][_0x2022e8(0x1b7)](_0xd9851d);if(_0x2d198f)return _0x2d198f[_0x2022e8(0x348)](_0xd5d0ac);}[_0x5a7686(0x1ff)](_0x5d4b09){const _0x1c8f61=_0x5a7686;let _0xda0db6=this[_0x1c8f61(0x1b6)][_0x1c8f61(0x1b7)](_0x5d4b09);_0xda0db6&&(_0xda0db6[_0x1c8f61(0x177)](),this['_roomMembers'][_0x1c8f61(0x36f)](_0x5d4b09));}[_0x5a7686(0x177)](){const _0x541d6d=_0x5a7686;this['_roomMembers'][_0x541d6d(0x1de)](_0x48cfd2=>_0x48cfd2[_0x541d6d(0x177)]()),this[_0x541d6d(0x1b6)][_0x541d6d(0x384)](),this[_0x541d6d(0xfc)]['complete']();}};b=y([v(0x0,t[_0x5a7686(0x2d4)]),v(0x1,(0x0,t['Inject'])(t['UserManagerService']))],b);var ce=class extends t[_0x5a7686(0x117)]{constructor(..._0x5f39bb){const _0x501aef=_0x5a7686;super(..._0x5f39bb),g(this,_0x501aef(0x365),new Map()),g(this,_0x501aef(0x2cc),new i[(_0x501aef(0x334))](this[_0x501aef(0x365)])),g(this,_0x501aef(0x243),this[_0x501aef(0x2cc)][_0x501aef(0xea)]());}[_0x5a7686(0x177)](){const _0x1dc478=_0x5a7686;this['_members'][_0x1dc478(0x384)](),this['_members$'][_0x1dc478(0x1fa)]();}[_0x5a7686(0xd1)](_0x58fb16){const _0x10a6fb=_0x5a7686;this[_0x10a6fb(0x365)]['set'](_0x58fb16[_0x10a6fb(0x30d)],_0x58fb16),this[_0x10a6fb(0x1f5)]();}[_0x5a7686(0x18d)](_0x392d22){const _0x36a2a3=_0x5a7686;this[_0x36a2a3(0x365)]['delete'](_0x392d22),this[_0x36a2a3(0x1f5)]();}[_0x5a7686(0x348)](_0x11427e){const _0x13de1b=_0x5a7686;return this[_0x13de1b(0x365)][_0x13de1b(0x1b7)](_0x11427e);}[_0x5a7686(0x182)](){const _0x5a8b17=_0x5a7686;return Array['from'](this[_0x5a8b17(0x365)][_0x5a8b17(0x2c5)]());}[_0x5a7686(0x1f5)](){const _0x42c5a1=_0x5a7686;this[_0x42c5a1(0x2cc)][_0x42c5a1(0x1eb)](this[_0x42c5a1(0x365)]);}};function le(_0x1594b8,_0x4d7935){const _0x25394b=_0x5a7686;if(de(_0x1594b8))return _0x4d7935;if(_0x4d7935[_0x25394b(0x25a)]===e[_0x25394b(0xd2)][_0x25394b(0x186)]){var _0x482800;let _0x14c8bb=ge(_0x1594b8),_0xe6c503=_0x4d7935;return{..._0xe6c503,'data':{..._0xe6c503[_0x25394b(0x21f)],'unitID':_0x1594b8[_0x25394b(0xbd)][_0x25394b(0x135)],'unitType':(_0x482800=_0x1594b8[_0x25394b(0xbd)][_0x25394b(0x29c)])==null?_0xe6c503[_0x25394b(0x21f)][_0x25394b(0x29c)]:_0x482800,'changeset':_0x14c8bb[_0x25394b(0x162)](_0xe6c503[_0x25394b(0x21f)][_0x25394b(0x1cd)],_e(_0x1594b8))}};}if(_0x4d7935[_0x25394b(0x25a)]===e['CollaborationEvent'][_0x25394b(0x224)]){var _0x46dc61;let _0x23b53f=_0x4d7935;return{..._0x23b53f,'data':{..._0x23b53f['data'],'unitID':_0x1594b8[_0x25394b(0xbd)][_0x25394b(0x135)],'unitType':(_0x46dc61=_0x1594b8['target'][_0x25394b(0x29c)])==null?_0x23b53f[_0x25394b(0x21f)]['unitType']:_0x46dc61}};}return _0x4d7935;}function ue(_0x5393b2,_0x1b177){const _0x5c39ce=_0x5a7686;if(de(_0x5393b2))return[_0x1b177];switch(_0x1b177[_0x5c39ce(0x25a)]){case e[_0x5c39ce(0xd2)]['NEW_CHANGESETS']:return[fe(_0x5393b2,_0x1b177)];case e['CollaborationEvent'][_0x5c39ce(0x201)]:return[me(_0x5393b2,_0x1b177)];case e[_0x5c39ce(0xd2)][_0x5c39ce(0x11a)]:return[pe(_0x5393b2,_0x1b177)];default:return[_0x1b177];}}function de(_0x19b990){const _0x21f8f8=_0x5a7686;return _0x19b990[_0x21f8f8(0xbd)][_0x21f8f8(0x1cb)]==null&&_0x19b990[_0x21f8f8(0xbd)][_0x21f8f8(0x135)]===_0x19b990[_0x21f8f8(0x2a0)]&&!_0x19b990[_0x21f8f8(0x1cd)];}function fe(_0x516618,_0x2fa698){const _0x19b5ab=_0x5a7686;return{..._0x2fa698,'data':(0x0,e[_0x19b5ab(0x2ab)])(he(_0x516618,(0x0,e[_0x19b5ab(0x12b)])(_0x2fa698[_0x19b5ab(0x21f)])))};}function pe(_0x45eb52,_0x52b000){const _0x293c26=_0x5a7686;return{..._0x52b000,'data':he(_0x45eb52,_0x52b000[_0x293c26(0x21f)])};}function me(_0x34c65c,_0x3f8373){const _0x429947=_0x5a7686;let _0x59c35e=_0x3f8373[_0x429947(0x21f)];return{..._0x3f8373,'data':{..._0x59c35e,'changesets':_0x59c35e[_0x429947(0x2f8)][_0x429947(0x350)](_0x27e273=>(0x0,e[_0x429947(0x2ab)])(he(_0x34c65c,(0x0,e[_0x429947(0x12b)])(_0x27e273))))}};}function he(_0x49019c,_0x533ae0){const _0x5d32b4=_0x5a7686;return ge(_0x49019c)[_0x5d32b4(0x29d)](_0x533ae0,_e(_0x49019c));}function ge(_0x174987){const _0x4fc794=_0x5a7686;if(!_0x174987[_0x4fc794(0x1cd)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x174987[_0x4fc794(0x1cd)];}function _e(_0x4520a8){const _0x3f4dfb=_0x5a7686;return{'localUnitId':_0x4520a8['localUnitId'],'unitType':_0x4520a8['unitType'],'target':_0x4520a8[_0x3f4dfb(0xbd)]};}let ve=function(_0x14460e){const _0x2a73b1=_0x5a7686;return _0x14460e[_0x14460e[_0x2a73b1(0x156)]=0x0]='IDLE',_0x14460e[_0x14460e[_0x2a73b1(0x309)]=0x1]=_0x2a73b1(0x309),_0x14460e[_0x14460e[_0x2a73b1(0xf6)]=0x2]=_0x2a73b1(0xf6),_0x14460e[_0x14460e[_0x2a73b1(0x369)]=0x3]=_0x2a73b1(0x369),_0x14460e;}({});const ye={[a[_0x5a7686(0x1ae)][_0x5a7686(0x361)]]:_0x5a7686(0x306),[a[_0x5a7686(0x1ae)][_0x5a7686(0x1cc)]]:_0x5a7686(0x248),[a[_0x5a7686(0x1ae)]['JOIN_ROOM_NOT_EXISTS']]:'session.room-not-exists',[a['CmdRspCode'][_0x5a7686(0x2b8)]]:_0x5a7686(0x318),[a[_0x5a7686(0x1ae)][_0x5a7686(0x142)]]:_0x5a7686(0x246)};let x=class extends t[_0x5a7686(0x1a2)]{get[_0x5a7686(0x378)](){const _0x48a8d2=_0x5a7686;return this[_0x48a8d2(0x2d7)][_0x48a8d2(0x1d1)]();}constructor(_0x594433,_0x3eb18d,_0x37571a,_0x1ce11e,_0x27dd40,_0x37baee,_0x1a7ca4,_0x19ece4){const _0x1f3a5e=_0x5a7686;super(),this[_0x1f3a5e(0x286)]=_0x594433,this['_logService']=_0x37571a,this[_0x1f3a5e(0x16d)]=_0x1ce11e,this['_memberService']=_0x27dd40,this[_0x1f3a5e(0x123)]=_0x37baee,this[_0x1f3a5e(0x12c)]=_0x1a7ca4,this['_telemetryService']=_0x19ece4,g(this,_0x1f3a5e(0x2d7),new i['BehaviorSubject'](0x0)),g(this,_0x1f3a5e(0x1d7),this[_0x1f3a5e(0x2d7)]['asObservable']()),g(this,_0x1f3a5e(0x25f),new i[(_0x1f3a5e(0x340))]()),g(this,_0x1f3a5e(0x127),this[_0x1f3a5e(0x25f)][_0x1f3a5e(0xea)]()),g(this,_0x1f3a5e(0x105),void 0x0),g(this,_0x1f3a5e(0x95),void 0x0),g(this,'_collaborationTimeoutTimer',void 0x0),g(this,_0x1f3a5e(0x14b),!0x1),g(this,_0x1f3a5e(0x1d5),null),this['_shouldReportTelemetry']=!!this[_0x1f3a5e(0x17b)],_0x3eb18d[_0x1f3a5e(0xf8)]((0x0,i[_0x1f3a5e(0x27c)])(this[_0x1f3a5e(0x211)]))[_0x1f3a5e(0x24b)](_0x5c71bc=>{const _0x4c577d=_0x1f3a5e;if(_0x5c71bc!==void 0x0){if(this[_0x4c577d(0x105)]=_0x5c71bc,_0x5c71bc)this[_0x4c577d(0x328)](_0x5c71bc),this[_0x4c577d(0x95)]=_0x5c71bc['message$'][_0x4c577d(0x24b)](_0x380e93=>{const _0x414195=_0x4c577d;_0x380e93[_0x414195(0x2d6)]===this[_0x414195(0x286)][_0x414195(0xbd)][_0x414195(0x135)]&&this[_0x414195(0x2be)](_0x380e93);});else{var _0x3aa3f0;this[_0x4c577d(0x183)](),this[_0x4c577d(0x2d7)][_0x4c577d(0x1eb)](0x2),(_0x3aa3f0=this[_0x4c577d(0x95)])==null||_0x3aa3f0[_0x4c577d(0x393)](),this['_socketMessageSubscription']=null;}}});}[_0x5a7686(0x2f5)](){const _0x164b6e=_0x5a7686;var _0x3706ce,_0x5cab5b;return(_0x3706ce=(_0x5cab5b=this[_0x164b6e(0x105)])==null?void 0x0:_0x5cab5b[_0x164b6e(0x30d)])==null?null:_0x3706ce;}[_0x5a7686(0x177)](){const _0x13c5bc=_0x5a7686;super[_0x13c5bc(0x177)](),this['close'](),this['dispose$'][_0x13c5bc(0x1eb)](),this[_0x13c5bc(0x211)][_0x13c5bc(0x1fa)]();}[_0x5a7686(0x240)](){const _0x4d3876=_0x5a7686;var _0x5dd92f;this[_0x4d3876(0x183)](),(_0x5dd92f=this[_0x4d3876(0x105)])==null||_0x5dd92f[_0x4d3876(0x29f)]({'cmd':a[_0x4d3876(0x180)][_0x4d3876(0xe6)],'data':{'roomID':this[_0x4d3876(0x286)][_0x4d3876(0xbd)][_0x4d3876(0x135)]}}),this[_0x4d3876(0x25f)][_0x4d3876(0x1fa)](),this['_sessionStatus$']['complete']();}[_0x5a7686(0x2be)](_0x2b7181){const _0x291e9e=_0x5a7686;_0x2b7181['cmd']===a[_0x291e9e(0x180)]['JOIN']?this[_0x291e9e(0xa7)](_0x2b7181):_0x2b7181[_0x291e9e(0x29e)]===a[_0x291e9e(0x180)][_0x291e9e(0x38f)]&&this[_0x291e9e(0x20e)](_0x2b7181);}[_0x5a7686(0x328)](_0x16ae38){const _0x5ba81c=_0x5a7686;this[_0x5ba81c(0x2d7)][_0x5ba81c(0x1eb)](0x1),_0x16ae38['send']({'cmd':a[_0x5ba81c(0x180)]['JOIN'],'routeKey':this[_0x5ba81c(0x286)]['target'][_0x5ba81c(0x135)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5ba81c(0x286)][_0x5ba81c(0xbd)][_0x5ba81c(0x135)]}]}});}['_onJoinRoomEvent'](_0x1ddb14){const _0xc4d197=_0x5a7686;var _0x32d786;if(_0x1ddb14[_0xc4d197(0x2b5)]in ye){this[_0xc4d197(0x12c)][_0xc4d197(0x388)]({'id':_0xc4d197(0x230),'data':ye[_0x1ddb14['code']]}),this[_0xc4d197(0x2d7)][_0xc4d197(0x1eb)](0x2);return;}this['_sessionStatus$'][_0xc4d197(0x1eb)](0x3);let _0x734e3=(_0x32d786=_0x1ddb14[_0xc4d197(0x21f)]['roomInfos'][this[_0xc4d197(0x286)]['target']['unitId']])==null?void 0x0:_0x32d786['members'];_0x734e3&&_0x734e3[_0xc4d197(0x1de)](_0x8fc0e8=>this[_0xc4d197(0x1a4)]['updateMember'](this[_0xc4d197(0x286)]['localUnitId'],_0x8fc0e8));}['_onRecvEvent'](_0x9c20c2){const _0x4d09ab=_0x5a7686;try{let _0x24c2e5=ue(this['_identity'],_0x9c20c2['data']);for(let _0xc91419 of _0x24c2e5)switch(_0xc91419[_0x4d09ab(0x25a)]){case e[_0x4d09ab(0xd2)]['USERS_ENTER']:this[_0x4d09ab(0x147)](_0xc91419),this['_event$']['next'](_0xc91419);break;case e['CollaborationEvent']['USERS_LEAVE']:this[_0x4d09ab(0xaa)](_0xc91419),this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);break;case e[_0x4d09ab(0xd2)]['CHANGESET_ACK']:case e[_0x4d09ab(0xd2)]['CHANGESET_SHOULD_RETRY']:this[_0x4d09ab(0x2e1)](),this[_0x4d09ab(0x1db)](),this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);break;case e[_0x4d09ab(0xd2)][_0x4d09ab(0x314)]:this[_0x4d09ab(0x8f)]['error'](_0x4d09ab(0x35d)+JSON[_0x4d09ab(0x121)](_0xc91419)),this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);break;case e[_0x4d09ab(0xd2)][_0x4d09ab(0x120)]:this[_0x4d09ab(0x123)][_0x4d09ab(0x2a5)](_0xc91419[_0x4d09ab(0x21f)]),this['_event$'][_0x4d09ab(0x1eb)](_0xc91419);break;default:this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);}}catch(_0x2792a3){this['_logService'][_0x4d09ab(0x36a)](_0x2792a3,_0x9c20c2);}}['_onUserJoin'](_0x3c8d1b){const _0x10542a=_0x5a7686;this[_0x10542a(0x1a4)]['updateMember'](this[_0x10542a(0x286)]['localUnitId'],_0x3c8d1b[_0x10542a(0x21f)]);}['_onUserLeave'](_0x5a46ac){const _0x45ec72=_0x5a7686;this[_0x45ec72(0x1a4)]['removeMember'](this['_identity']['localUnitId'],_0x5a46ac['data'][_0x45ec72(0x30d)]);}async[_0x5a7686(0x29f)](_0x276613,_0x376cf5){const _0x422f62=_0x5a7686;if(this[_0x422f62(0x378)]!==0x3||!this[_0x422f62(0x105)])throw Error(_0x422f62(0x2f4));try{let _0x1cefdc=le(this[_0x422f62(0x286)],_0x276613);_0x1cefdc[_0x422f62(0x25a)]===e[_0x422f62(0xd2)]['SUBMIT_CHANGESET']&&(this[_0x422f62(0x34f)](),this['_startTelemetryCollaborationNewChangeset'](_0x1cefdc)),this[_0x422f62(0x105)][_0x422f62(0x29f)]({'cmd':a[_0x422f62(0x180)][_0x422f62(0x92)],'routeKey':this[_0x422f62(0x286)][_0x422f62(0xbd)][_0x422f62(0x135)],'routeType':'','data':_0x1cefdc});}catch(_0x2c786a){this['_logService'][_0x422f62(0x36a)](_0x2c786a);}}['_scheduleCollaborationTimeoutTimer'](){const _0x249275=_0x5a7686;var _0x15028a;this[_0x249275(0x2f9)]=setTimeout(()=>{const _0x429ad9=_0x249275;this[_0x429ad9(0x2f9)]=null,this[_0x429ad9(0x12c)]['emitEvent']({'id':_0x429ad9(0x374)});},(_0x15028a=this[_0x249275(0x16d)]['getConfig'](_0x249275(0xe4)))==null?ne:_0x15028a);}[_0x5a7686(0x1db)](){const _0x372766=_0x5a7686;this[_0x372766(0x2f9)]&&(clearTimeout(this[_0x372766(0x2f9)]),this[_0x372766(0x2f9)]=null);}[_0x5a7686(0xc6)](_0x6ca1bc){const _0x1e1447=_0x5a7686;if(!this[_0x1e1447(0x14b)])return;let {data:_0x30a3a7}=_0x6ca1bc,{unitID:_0x4bdaca,changeset:_0x77d920}=_0x30a3a7,{mutations:_0x117924,type:_0x20d4a6}=_0x77d920;this[_0x1e1447(0x1d5)]={'unitId':_0x4bdaca,'type':_0x20d4a6,'startTime':performance[_0x1e1447(0x379)](),'stopTime':0x0,'duration':0x0,'size':re(_0x117924)};}[_0x5a7686(0x2e1)](){const _0x25be91=_0x5a7686;if(this[_0x25be91(0x14b)]){if(!this['_telemetryInfo']){this[_0x25be91(0x8f)][_0x25be91(0x36a)]('[CollaborationSession]',_0x25be91(0x291));return;}this['_telemetryInfo'][_0x25be91(0x26e)]=performance[_0x25be91(0x379)](),this['_telemetryInfo']['duration']=this[_0x25be91(0x1d5)]['stopTime']-this[_0x25be91(0x1d5)][_0x25be91(0x30c)],this[_0x25be91(0x17b)][_0x25be91(0x307)](_0x25be91(0x333),this[_0x25be91(0x1d5)]),this[_0x25be91(0x1d5)]=null;}}[_0x5a7686(0x183)](){const _0x484793=_0x5a7686;this[_0x484793(0x1d5)]=null;}};x=y([v(0x2,t[_0x5a7686(0x2c2)]),v(0x3,t[_0x5a7686(0x298)]),v(0x4,(0x0,t['Inject'])(b)),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(se)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x5a7686(0xa3)])(o[_0x5a7686(0x33f)]))],x);const S=(0x0,t['createIdentifier'])(_0x5a7686(0x26c));function be(_0x679705){const _0x258c57=_0x5a7686;return _0x258c57(0x205)+_0x679705;}function xe(_0x86f0a6){const _0x5d34ed=_0x5a7686;let {unitID:_0x108fe4,mutations:_0xa5a435}=_0x86f0a6;return{'unitId':_0x108fe4,'subUnitId':_0xa5a435[_0x5d34ed(0x225)]>0x0?_0xa5a435[0x0][_0x5d34ed(0x274)][_0x5d34ed(0xdc)]:null};}let C=class{constructor(_0x20ab09,_0x426764,_0x5d9c56){const _0x342b0a=_0x5a7686;this[_0x342b0a(0x271)]=_0x20ab09,this[_0x342b0a(0x19c)]=_0x426764,this[_0x342b0a(0x275)]=_0x5d9c56;}[_0x5a7686(0x303)](_0x3b6752){const _0x33f1e1=_0x5a7686;var _0x597d21,_0x50b929;let _0x3782f4=this[_0x33f1e1(0x271)][_0x33f1e1(0x1b7)](r['SheetsSelectionsService']),{unitId:_0x57c60c,subUnitId:_0x5b5d2c}=xe(_0x3b6752),_0x43bfc7=_0x3782f4==null?void 0x0:_0x3782f4[_0x33f1e1(0xa6)](_0x57c60c)[_0x33f1e1(0x140)](),_0x1412a5=(_0x597d21=this['_instanceService'][_0x33f1e1(0xcc)](_0x57c60c))==null||(_0x597d21=_0x597d21[_0x33f1e1(0x1be)]())==null?void 0x0:_0x597d21[_0x33f1e1(0x38b)]();if(_0x43bfc7[_0x33f1e1(0x225)]===0x0||!_0x57c60c||!_0x5b5d2c)return;let _0xa60e43=[{'id':r[_0x33f1e1(0x7f)]['id'],'params':{'unitId':_0x57c60c,'subUnitId':_0x1412a5,'selections':t[_0x33f1e1(0x143)][_0x33f1e1(0x1d8)](_0x43bfc7)}}],_0x5c483d=this[_0x33f1e1(0x19c)][_0x33f1e1(0x1ab)](_0x3b6752,_0xa60e43);if(!(0x0,e[_0x33f1e1(0x2b4)])(_0x5c483d))throw _0x5c483d[_0x33f1e1(0x36a)];let _0x174160=(_0x50b929=_0x5c483d['m2Prime'][0x0])==null||(_0x50b929=_0x50b929[_0x33f1e1(0x274)])==null?void 0x0:_0x50b929['selections'];if(Array[_0x33f1e1(0x2dc)](_0x174160)&&_0x174160[_0x33f1e1(0x225)]){if(_0x174160['length']===_0xa60e43[0x0][_0x33f1e1(0x274)][_0x33f1e1(0x1c6)][_0x33f1e1(0x225)]&&_0x174160[_0x33f1e1(0xcb)]((_0x20bc88,_0x182c8e)=>t['Rectangle'][_0x33f1e1(0x154)](_0x20bc88['range'],_0xa60e43[0x0][_0x33f1e1(0x274)][_0x33f1e1(0x1c6)][_0x182c8e][_0x33f1e1(0x190)])))return;this[_0x33f1e1(0x271)][_0x33f1e1(0x1b7)](t[_0x33f1e1(0x170)])['executeCommand'](r[_0x33f1e1(0x7f)]['id'],{'unitId':_0x57c60c,'subUnitId':_0x1412a5,'selections':_0x174160});}}};C=y([v(0x0,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x1,e[_0x5a7686(0x296)]),v(0x2,t[_0x5a7686(0x2d4)])],C);const w=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x101));let Se=function(_0x475bef){const _0x6df819=_0x5a7686;return _0x475bef[_0x475bef['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x6df819(0x360),_0x475bef[_0x475bef['OTHER_CLIENTS_EDITING']=0x1]=_0x6df819(0x2cb),_0x475bef;}({});function Ce(_0x4685c5){const _0x15c0a4=_0x5a7686;var _0x149b2c;return!!((_0x149b2c=_0x4685c5[_0x15c0a4(0x274)])!=null&&_0x149b2c[_0x15c0a4(0x1e9)]);}const we=new Set([r[_0x5a7686(0xc7)]['id']]),Te=new Set([c[_0x5a7686(0x15c)]['id'],c[_0x5a7686(0x24d)]['id'],c['MoveSlidePageMutation']['id'],c[_0x5a7686(0xa4)]['id']]);function Ee(_0x35e230,_0x5c7e0b=we){const _0x572a90=_0x5a7686;let _0x495ec9=[];for(let _0x7c6117 of _0x35e230){if(_0x5c7e0b[_0x572a90(0xbf)](_0x7c6117['id'])){if(_0x495ec9[_0x572a90(0x225)]>0x0)break;_0x495ec9[_0x572a90(0x244)](_0x7c6117);break;}if(Ce(_0x7c6117)){if(_0x495ec9['length']>0x0)break;_0x495ec9[_0x572a90(0x244)](_0x7c6117);break;}_0x495ec9[_0x572a90(0x244)](_0x7c6117);}return _0x495ec9;}function T(_0x483f27,_0x29523e,_0x566d10,_0x1f6280,_0x17092e){const _0x1b1f29=_0x5a7686;var _0x30f48c,_0x1819e7,_0x3e8dcc,_0x1611c8;let _0x298c67=Ee(_0x483f27),_0x520a3c=(_0x30f48c=(_0x1819e7=_0x17092e[_0x1b1f29(0x7a)]())==null?void 0x0:_0x1819e7['userID'])==null?'unknown':_0x30f48c,_0x514ebf=(_0x3e8dcc=(_0x1611c8=_0x17092e['getCurrentUser']())==null?void 0x0:_0x1611c8['memberID'])==null?_0x1b1f29(0x2c6):_0x3e8dcc;return{'changeset':{'unitID':_0x29523e,'type':(0x0,e[_0x1b1f29(0x124)])(_0x566d10[_0x1b1f29(0x21d)](_0x29523e)),'baseRev':_0x1f6280[_0x1b1f29(0x2de)](_0x29523e),'revision':0x0,'userID':_0x520a3c,'memberID':_0x514ebf,'mutations':_0x298c67},'pendingMutations':_0x483f27[_0x1b1f29(0x184)](_0x298c67[_0x1b1f29(0x225)])};}function De(_0xa626e5,_0x377aaa,_0x228c7b,_0xa1a53c,_0x1e3653){const _0x47216f=_0x5a7686;var _0x4a6f91,_0x29c496,_0x4edb3c,_0x272ebb;let _0x25a324=Ee(_0xa626e5,Te),_0x549a2c=(_0x4a6f91=(_0x29c496=_0x1e3653[_0x47216f(0x7a)]())==null?void 0x0:_0x29c496['userID'])==null?_0x47216f(0x2c6):_0x4a6f91,_0x4686c7=(_0x4edb3c=(_0x272ebb=_0x1e3653[_0x47216f(0x7a)]())==null?void 0x0:_0x272ebb[_0x47216f(0x30d)])==null?'unknown':_0x4edb3c;return{'changeset':{'unitID':_0x377aaa,'type':(0x0,e[_0x47216f(0x124)])(_0x228c7b[_0x47216f(0x21d)](_0x377aaa)),'baseRev':_0xa1a53c['getCurrentRevOfUnit'](_0x377aaa),'revision':0x0,'userID':_0x549a2c,'memberID':_0x4686c7,'mutations':_0x25a324},'pendingMutations':_0xa626e5[_0x47216f(0x184)](_0x25a324['length'])};}function Oe(_0x2d7afa,_0x578788,_0x40c772,_0x309f97,_0x41f747){const _0x85d6d6=_0x5a7686;var _0x134bc0,_0x44c0ad,_0x90eb79,_0x204fd6;let _0x5e3fda=_0x2d7afa[_0x85d6d6(0xec)]((_0x9b8a31,_0x3e968a)=>{const _0x195c57=_0x85d6d6;let _0x302ec2=_0x9b8a31[_0x9b8a31['length']-0x1],{id:_0x26c10c}=_0x302ec2==null?{}:_0x302ec2,{id:_0xdf45e,type:_0x2a85e4}=_0x3e968a,_0x223db2=_0x3e968a[_0x195c57(0x274)];if(_0x26c10c&&_0x26c10c!==_0xdf45e)throw Error(_0x195c57(0x15d)+_0x26c10c+_0x195c57(0x13a)+_0xdf45e+'.');if(!_0x302ec2)return[{'id':_0xdf45e,'type':_0x2a85e4,'params':{'unitId':_0x223db2['unitId'],'textRanges':_0x223db2[_0x195c57(0x362)],'actions':_0x223db2[_0x195c57(0xa0)]}}];let _0x21d97d=_0x302ec2[_0x195c57(0x274)];return ke(_0x21d97d,_0x223db2)?[..._0x9b8a31[_0x195c57(0x184)](0x0,-0x1),{..._0x302ec2,'id':_0xdf45e,'type':_0x2a85e4,'params':{'unitId':_0x223db2['unitId'],'textRanges':_0x223db2[_0x195c57(0x362)],'actions':t[_0x195c57(0x363)][_0x195c57(0xe5)](_0x21d97d['actions'],_0x223db2[_0x195c57(0xa0)])}}]:[..._0x9b8a31,{'id':_0xdf45e,'type':_0x2a85e4,'params':{'unitId':_0x223db2[_0x195c57(0x135)],'textRanges':_0x223db2[_0x195c57(0x362)],'actions':_0x223db2[_0x195c57(0xa0)]}}];},[]),_0x5bf4c9=(_0x134bc0=(_0x44c0ad=_0x41f747[_0x85d6d6(0x7a)]())==null?void 0x0:_0x44c0ad[_0x85d6d6(0xa5)])==null?_0x85d6d6(0x2c6):_0x134bc0,_0x5638eb=(_0x90eb79=(_0x204fd6=_0x41f747['getCurrentUser']())==null?void 0x0:_0x204fd6['memberID'])==null?_0x85d6d6(0x2c6):_0x90eb79;return{'changeset':{'unitID':_0x578788,'type':(0x0,e[_0x85d6d6(0x124)])(_0x40c772[_0x85d6d6(0x21d)](_0x578788)),'baseRev':_0x309f97[_0x85d6d6(0x2de)](_0x578788),'revision':0x0,'userID':_0x5bf4c9,'memberID':_0x5638eb,'mutations':_0x5e3fda},'pendingMutations':_0x2d7afa[_0x85d6d6(0x184)](_0x2d7afa['length'])};}function ke(_0x223100,_0x49b259){const _0x5213e5=_0x5a7686;return!Ae(_0x223100)&&!Ae(_0x49b259)&&je(_0x223100[_0x5213e5(0xa0)],_0x49b259[_0x5213e5(0xa0)]);}function Ae(_0x1f7069){const _0x129c8d=_0x5a7686;return _0x1f7069[_0x129c8d(0x25d)]!==void 0x0;}function je(_0x48ee46,_0xba826d){return Me(_0x48ee46)&&Me(_0xba826d)&&!Pe(_0x48ee46)&&!Pe(_0xba826d)&&!Ne(_0x48ee46)&&!Ne(_0xba826d);}function Me(_0x2b0a95){const _0x1f0302=_0x5a7686;return Fe(_0x2b0a95)[_0x1f0302(0x165)](_0x2060f0=>E(_0x2060f0)&&_0x2060f0['et']===_0x1f0302(0xb4));}function Ne(_0x1a92b5){const _0x3a7970=_0x5a7686;return Fe(_0x1a92b5)[_0x3a7970(0x165)](_0x2baf3c=>Array['isArray'](_0x2baf3c)||typeof _0x2baf3c==_0x3a7970(0x354)||typeof _0x2baf3c==_0x3a7970(0x25c));}function Pe(_0x520ca9){const _0x48f41e=_0x5a7686;return Fe(_0x520ca9)[_0x48f41e(0x165)](_0x4fd5f7=>!E(_0x4fd5f7)||_0x4fd5f7['et']!==_0x48f41e(0xb4)||!Array[_0x48f41e(0x2dc)](_0x4fd5f7['e'])?!0x1:_0x4fd5f7['e'][_0x48f41e(0x165)](_0xe4002e=>!E(_0xe4002e)||!E(_0xe4002e['body'])?!0x1:Object['prototype'][_0x48f41e(0x23c)][_0x48f41e(0x259)](_0xe4002e[_0x48f41e(0x30b)],_0x48f41e(0xef))||Object[_0x48f41e(0x31c)]['hasOwnProperty'][_0x48f41e(0x259)](_0xe4002e['body'],_0x48f41e(0xd9))||Object['prototype'][_0x48f41e(0x23c)][_0x48f41e(0x259)](_0xe4002e['body'],_0x48f41e(0x17f))));}function Fe(_0x5cb6b5){const _0x4a3feb=_0x5a7686;if(!Array[_0x4a3feb(0x2dc)](_0x5cb6b5))return[];let _0x44b795=_0x5cb6b5['includes']('body')?_0x5cb6b5:_0x5cb6b5[_0x4a3feb(0x158)](_0x385775=>Array['isArray'](_0x385775)&&_0x385775[_0x4a3feb(0xc8)](_0x4a3feb(0x30b)));if(!Array[_0x4a3feb(0x2dc)](_0x44b795))return[];let _0x41440c=_0x44b795[_0x4a3feb(0x28b)](_0x4a3feb(0x30b));return _0x41440c===-0x1?[]:_0x44b795[_0x4a3feb(0x184)](_0x41440c+0x1);}function E(_0x425f56){const _0x41c1be=_0x5a7686;return typeof _0x425f56=='object'&&!!_0x425f56&&!Array[_0x41c1be(0x2dc)](_0x425f56);}function Ie(_0x2d13ff,_0x5698ba){const _0x4eb5c2=_0x5a7686;let _0xda58dc=new i[(_0x4eb5c2(0x115))](0x1);return setTimeout(()=>_0xda58dc[_0x4eb5c2(0x1eb)](_0x5698ba),_0x2d13ff),_0xda58dc['asObservable']()['pipe']((0x0,i[_0x4eb5c2(0x1a5)])(0x1));}var Le,Re,ze;let Be=function(_0x431896){const _0x581f6f=_0x5a7686;return _0x431896['NOT_COLLAB']=_0x581f6f(0x26a),_0x431896[_0x581f6f(0x203)]='synced',_0x431896[_0x581f6f(0xad)]='pending',_0x431896['AWAITING']=_0x581f6f(0x310),_0x431896['AWAITING_WITH_PENDING']=_0x581f6f(0xf5),_0x431896['FETCH_MISS']=_0x581f6f(0x33a),_0x431896['CONFLICT']=_0x581f6f(0x2af),_0x431896[_0x581f6f(0xf6)]='offline',_0x431896;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0x34ceff,_0x2b9c8e,_0x29ffd2,_0x4c7a81,_0x7bc787,_0x241fbc,_0x78e9d1,_0x253dab,_0x407fa1){const _0x44b71c=_0x5a7686;this['unitID']=_0x34ceff,this['type']=_0x2b9c8e,this[_0x44b71c(0x277)]=_0x7bc787,this[_0x44b71c(0x10d)]=_0x241fbc,this[_0x44b71c(0x347)]=_0x78e9d1,this[_0x44b71c(0x302)]=_0x253dab,this['_localCacheService']=_0x407fa1,g(this,_0x44b71c(0x1e6),null),g(this,_0x44b71c(0x34e),[]),this['_awaitingChangeset']=_0x29ffd2,this[_0x44b71c(0x34e)]=_0x4c7a81;}[_0x5a7686(0x2b6)](_0x46e58a){const _0x4cc654=_0x5a7686;let _0x44e028=this[_0x4cc654(0x302)][_0x4cc654(0x2de)](this[_0x4cc654(0x17c)]);return _0x46e58a[_0x4cc654(0x1d4)]>_0x44e028+0x1?(this[_0x4cc654(0x277)][_0x4cc654(0x32f)]({'from':_0x44e028,'to':_0x46e58a[_0x4cc654(0x1d4)]-0x1}),!0x0):!0x1;}[_0x5a7686(0x84)](_0x14759a){const _0x35c920=_0x5a7686;this[_0x35c920(0x347)][_0x35c920(0xae)](this['unitID'],_0x14759a);}[_0x5a7686(0x1e7)](_0x14ce54){const _0xf0f46d=_0x5a7686;var _0x38bf4f,_0xa865c3;(_0x38bf4f=(_0xa865c3=this['_handler'])[_0xf0f46d(0xb8)])==null||_0x38bf4f[_0xf0f46d(0x259)](_0xa865c3,_0x14ce54);}[_0x5a7686(0x20c)](_0x2c7406){const _0x3837b=_0x5a7686;var _0x18227c,_0x4b619b;return(_0x18227c=(_0x4b619b=this['_handler'])[_0x3837b(0x2c7)])==null?void 0x0:_0x18227c[_0x3837b(0x259)](_0x4b619b,_0x2c7406);}['_transformStateCache'](_0x50b29c){const _0x59add8=_0x5a7686;var _0x366d26,_0x353caf;return(_0x366d26=(_0x353caf=this['_handler'])[_0x59add8(0x32e)])==null?void 0x0:_0x366d26['call'](_0x353caf,_0x50b29c);}[_0x5a7686(0x97)](_0x53217a){const _0x4a144d=_0x5a7686;var _0x58aa52,_0x54be06,_0x2d79ec;return(_0x58aa52=(_0x54be06=(_0x2d79ec=this[_0x4a144d(0x277)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x54be06['call'](_0x2d79ec,_0x53217a))==null?_0x53217a:_0x58aa52;}[_0x5a7686(0x11b)](_0x3754ed){const _0x2e622c=_0x5a7686;var _0x329d8a,_0x6d5129,_0x424288;return(_0x329d8a=(_0x6d5129=(_0x424288=this[_0x2e622c(0x277)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x6d5129[_0x2e622c(0x259)](_0x424288,_0x3754ed))==null?_0x3754ed:_0x329d8a;}['_syncEditingCollabCursor'](_0x4304c1){const _0x17f742=_0x5a7686;if(this[_0x17f742(0x234)]===t[_0x17f742(0x2e9)][_0x17f742(0x301)]){let {unitID:_0x18712c,mutations:_0x51ed33,memberID:_0x3e1926}=_0x4304c1,_0x32dedf=_0x51ed33['length']>0x0?_0x51ed33[0x0][_0x17f742(0x274)][_0x17f742(0x362)]:[];if(Array['isArray'](_0x32dedf)&&_0x32dedf[_0x17f742(0x225)]>0x0){var _0x3e6421,_0x420be1;(_0x3e6421=(_0x420be1=this[_0x17f742(0x277)])['onSyncEditingCollabCursor'])==null||_0x3e6421[_0x17f742(0x259)](_0x420be1,{'unitID':_0x18712c,'memberID':_0x3e1926,'textRanges':_0x32dedf});}}}['_updateLocalCache'](){const _0x56021a=_0x5a7686;var _0x51fc20;(_0x51fc20=this['_localCacheService'])==null||_0x51fc20[_0x56021a(0x2fb)](this['unitID'],this[_0x56021a(0x234)],this[_0x56021a(0x1e6)],this[_0x56021a(0x34e)]);}['_getCurrentRevision'](){const _0x55f7ab=_0x5a7686;return this['_revisionService']['getCurrentRevOfUnit'](this[_0x55f7ab(0x17c)]);}[_0x5a7686(0x106)](){const _0x5b275a=_0x5a7686;this['_revisionService'][_0x5b275a(0x353)](this['unitID']);}[_0x5a7686(0x390)](_0x14d13f){const _0x4922d4=_0x5a7686;let _0x2271af=this[_0x4922d4(0x97)](_0x14d13f);_0x2271af=this[_0x4922d4(0x11b)](_0x2271af);let _0x154d5d=(0x0,t['sequenceExecute'])(_0x2271af[_0x4922d4(0x1c7)],this['_commandService'],{'fromCollab':!0x0});if(!_0x154d5d['result']){var _0x4300fb;throw _0x154d5d[_0x4922d4(0x36a)]instanceof Error?_0x154d5d[_0x4922d4(0x36a)]:Error((_0x4300fb=_0x154d5d[_0x4922d4(0x36a)])==null?_0x4922d4(0x150):_0x4300fb);}this[_0x4922d4(0x20c)](_0x2271af),this[_0x4922d4(0x221)](_0x2271af),this[_0x4922d4(0x84)](_0x14d13f),this['_transformSelections'](_0x2271af),this[_0x4922d4(0x228)](_0x2271af),this[_0x4922d4(0x106)]();}};let O=class extends D{constructor(_0x40eb05,_0x3b89cf,_0x143b84,_0x452c01,_0x2012e4,_0x24f4b5,_0x431218,_0x3a8e85,_0x45a4f5,_0x526f1d){const _0x69b6a9=_0x5a7686;super(_0x40eb05,_0x3b89cf,null,[],_0x143b84,_0x431218,_0x24f4b5,_0x452c01,_0x526f1d),this[_0x69b6a9(0x271)]=_0x2012e4,this['_logService']=_0x3a8e85,this['_transformService']=_0x45a4f5,this[_0x69b6a9(0xc5)]=_0x526f1d,g(this,'status',_0x69b6a9(0x273));}[_0x5a7686(0x2d5)](_0x7a76dd){const _0x58dbf1=_0x5a7686;let _0x49aedd=this['_injector']['createInstance'](k,this[_0x58dbf1(0x17c)],this[_0x58dbf1(0x234)],[_0x7a76dd],this[_0x58dbf1(0x277)]);return _0x49aedd[_0x58dbf1(0x202)](),_0x49aedd[_0x58dbf1(0xe7)](),_0x49aedd;}['onRemoteChangeset'](_0x35e42e){const _0x2660fe=_0x5a7686;if(this['_checkMissing'](_0x35e42e))return this[_0x2660fe(0x271)][_0x2660fe(0x313)](P,this[_0x2660fe(0x17c)],this[_0x2660fe(0x234)],null,[],null,[_0x35e42e],this[_0x2660fe(0x277)]);try{let _0x1521e3=this[_0x2660fe(0x19c)][_0x2660fe(0x1ab)](_0x35e42e,[e[_0x2660fe(0x31d)]]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x1521e3)){let {c1Prime:_0x4c2df0}=_0x1521e3;return this[_0x2660fe(0x390)](_0x4c2df0),this;}throw _0x1521e3[_0x2660fe(0x36a)];}catch(_0xa80f5b){return this[_0x2660fe(0x8f)][_0x2660fe(0x36a)](_0xa80f5b),this[_0x2660fe(0x34c)](!0x1);}}[_0x5a7686(0x34c)](_0x58760f){const _0x272e01=_0x5a7686;return this['_injector'][_0x272e01(0x313)](M,this[_0x272e01(0x17c)],this[_0x272e01(0x234)],null,[],this[_0x272e01(0x277)],_0x58760f);}[_0x5a7686(0x2a3)](_0x249955){const _0xe0ba4f=_0x5a7686;if(_0x249955[_0xe0ba4f(0x1d4)]<=this[_0xe0ba4f(0xac)]())return this;throw Error(_0xe0ba4f(0x376));}['onRemoteRej'](){const _0x1d6cd2=_0x5a7686;throw Error(_0x1d6cd2(0x1ec));}[_0x5a7686(0x212)](){return this;}['toggleOffline'](){const _0x5d8506=_0x5a7686;return this['_injector'][_0x5d8506(0x313)](N,this[_0x5d8506(0x17c)],this[_0x5d8506(0x234)],null,[],this[_0x5d8506(0x277)]);}[_0x5a7686(0x81)](){return this;}[_0x5a7686(0x1ba)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x2abfa0=_0x5a7686;let _0x41611a=this[_0x2abfa0(0x302)][_0x2abfa0(0x2de)](this['unitID']);return this[_0x2abfa0(0x277)][_0x2abfa0(0x32f)]({'from':_0x41611a,'to':0x0}),this['_injector']['createInstance'](P,this[_0x2abfa0(0x17c)],this[_0x2abfa0(0x234)],null,[],null,[],this[_0x2abfa0(0x277)]);}};O=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t[_0x5a7686(0x1fe)]),v(0x6,t['ICommandService']),v(0x7,t[_0x5a7686(0x2c2)]),v(0x8,e[_0x5a7686(0x296)]),v(0x9,(0x0,t[_0x5a7686(0xa3)])(S))],O);let k=Le=class extends D{constructor(_0x458e4c,_0x30c48e,_0x963c1e,_0x72066,_0xc0a827,_0x31a86e,_0x6e7b2,_0xf19e48,_0x436678,_0x4fc19e,_0x20e3d6,_0x1b5948,_0x12c793,_0x27a3cb){const _0xf9b40c=_0x5a7686;super(_0x458e4c,_0x30c48e,null,_0x963c1e,_0x72066,_0x436678,_0x12c793,_0x31a86e,_0x27a3cb),this['_injector']=_0xc0a827,this[_0xf9b40c(0x1a4)]=_0x6e7b2,this[_0xf9b40c(0x8f)]=_0xf19e48,this[_0xf9b40c(0x16d)]=_0x4fc19e,this[_0xf9b40c(0x19c)]=_0x20e3d6,this[_0xf9b40c(0x104)]=_0x1b5948,g(this,'status',_0xf9b40c(0x218)),g(this,'_scheduleCompleteTimestamp',null),g(this,_0xf9b40c(0x2c4),null);}[_0x5a7686(0x2d5)](_0x1ccb6a){const _0x5d18e1=_0x5a7686;return this['_pendingMutations'][_0x5d18e1(0x244)](_0x1ccb6a),this[_0x5d18e1(0xe7)](),this;}['onRemoteChangeset'](_0x249ad4){const _0x3b3f8b=_0x5a7686;if(this[_0x3b3f8b(0x2b6)](_0x249ad4))return this[_0x3b3f8b(0x98)](),this[_0x3b3f8b(0x271)][_0x3b3f8b(0x313)](P,this[_0x3b3f8b(0x17c)],this[_0x3b3f8b(0x234)],null,this[_0x3b3f8b(0x34e)],null,[_0x249ad4],this[_0x3b3f8b(0x277)]);try{let _0x5eeeb0=this[_0x3b3f8b(0x19c)][_0x3b3f8b(0x1ab)](_0x249ad4,this[_0x3b3f8b(0x34e)]);if((0x0,e[_0x3b3f8b(0x2b4)])(_0x5eeeb0)){let {c1Prime:_0x513c88,m2Prime:_0x30b5cd}=_0x5eeeb0;this[_0x3b3f8b(0x390)](_0x513c88);let _0x4ca1c4=this[_0x3b3f8b(0x271)][_0x3b3f8b(0x313)](Le,this[_0x3b3f8b(0x17c)],this[_0x3b3f8b(0x234)],_0x30b5cd,this[_0x3b3f8b(0x277)]);this[_0x3b3f8b(0x98)]();let _0xde98e3=new Date()[_0x3b3f8b(0xa9)](),_0x4e3d73=this[_0x3b3f8b(0x161)]?Math[_0x3b3f8b(0x1dd)](this[_0x3b3f8b(0x161)]-_0xde98e3,0x0):this[_0x3b3f8b(0xca)]();return _0x4ca1c4[_0x3b3f8b(0x202)](_0x4e3d73),_0x4ca1c4;}throw _0x5eeeb0[_0x3b3f8b(0x36a)];}catch(_0x2a9e71){return this[_0x3b3f8b(0x8f)][_0x3b3f8b(0x36a)](_0x2a9e71),this['_onConflict'](!0x1);}}[_0x5a7686(0x2a3)](_0x4ddbf9){const _0x549ee3=_0x5a7686;if(_0x4ddbf9[_0x549ee3(0x1d4)]<=this[_0x549ee3(0xac)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5a7686(0x8d)](){const _0x2cd8e2=_0x5a7686;throw Error(_0x2cd8e2(0x91));}['onRemoteRetry'](){return this;}[_0x5a7686(0x21e)](){const _0x129dce=_0x5a7686;return this[_0x129dce(0x98)](),this[_0x129dce(0x271)][_0x129dce(0x313)](N,this[_0x129dce(0x17c)],this[_0x129dce(0x234)],null,this[_0x129dce(0x34e)],this[_0x129dce(0x277)]);}[_0x5a7686(0x81)](){return this;}['_schedule'](_0x3268b5){const _0x261c2d=_0x5a7686;let _0x5573cb=_0x3268b5==null?this[_0x261c2d(0xca)]():_0x3268b5;this[_0x261c2d(0x161)]=new Date()[_0x261c2d(0xa9)]()+_0x5573cb,this[_0x261c2d(0x2c4)]=setTimeout(()=>{const _0x35a357=_0x261c2d;this[_0x35a357(0x98)]();let _0x299fd4=null;switch(this['type']){case t[_0x35a357(0x2e9)][_0x35a357(0xa2)]:_0x299fd4=T(this['_pendingMutations'],this[_0x35a357(0x17c)],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]);break;case t['UniverInstanceType'][_0x35a357(0x301)]:_0x299fd4=this[_0x35a357(0x34e)][_0x35a357(0xcb)](_0x32f135=>_0x32f135['id']===n[_0x35a357(0x209)]['id'])?Oe(this[_0x35a357(0x34e)],this[_0x35a357(0x17c)],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]):T(this[_0x35a357(0x34e)],this['unitID'],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]);break;case t[_0x35a357(0x2e9)][_0x35a357(0x319)]:_0x299fd4=De(this['_pendingMutations'],this['unitID'],this[_0x35a357(0x104)],this['_revisionService'],this[_0x35a357(0x1a4)]);break;case t[_0x35a357(0x2e9)][_0x35a357(0x320)]:_0x299fd4=T(this[_0x35a357(0x34e)],this[_0x35a357(0x17c)],this['_univerInstanceService'],this[_0x35a357(0x302)],this['_memberService']);break;case t[_0x35a357(0x2e9)][_0x35a357(0x27f)]:_0x299fd4=T(this['_pendingMutations'],this[_0x35a357(0x17c)],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]);break;default:throw Error(_0x35a357(0x329)+this[_0x35a357(0x234)]+'\x20in\x20_schedule.');}let {changeset:_0x25c849,pendingMutations:_0x102d93}=_0x299fd4;this[_0x35a357(0x277)]['onSendChangeset'](_0x25c849);let _0x52e27d=_0x102d93['length']?this[_0x35a357(0x271)][_0x35a357(0x313)](j,this[_0x35a357(0x17c)],this[_0x35a357(0x234)],_0x25c849,_0x102d93,this['_handler'],void 0x0):this[_0x35a357(0x271)][_0x35a357(0x313)](A,this[_0x35a357(0x17c)],this[_0x35a357(0x234)],_0x25c849,this[_0x35a357(0x277)]);_0x52e27d[_0x35a357(0xe7)](),this[_0x35a357(0x277)][_0x35a357(0x31b)](this,_0x52e27d);},_0x5573cb);}[_0x5a7686(0xca)](){const _0x329e4c=_0x5a7686;var _0x56a5e1;let _0x503034=this[_0x329e4c(0x16d)][_0x329e4c(0x34b)](m);return(_0x56a5e1=_0x503034==null?void 0x0:_0x503034[_0x329e4c(0x12a)])==null?0x7d0:_0x56a5e1;}[_0x5a7686(0x1ba)](){const _0x26a7fa=_0x5a7686;throw Error(_0x26a7fa(0x125));}[_0x5a7686(0x98)](){const _0x1dad88=_0x5a7686;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1dad88(0x2c4)]),this[_0x1dad88(0x2c4)]=null);}['_onConflict'](_0xc8ba6b){const _0x1864e3=_0x5a7686;return this[_0x1864e3(0x98)](),this[_0x1864e3(0x271)][_0x1864e3(0x313)](M,this['unitID'],this[_0x1864e3(0x234)],null,this[_0x1864e3(0x34e)],this['_handler'],_0xc8ba6b);}};k=Le=y([v(0x4,(0x0,t[_0x5a7686(0x1c9)])(t['Injector'])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(e['RevisionService'])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(b)),v(0x7,t[_0x5a7686(0x2c2)]),v(0x8,t[_0x5a7686(0x170)]),v(0x9,t[_0x5a7686(0x298)]),v(0xa,e[_0x5a7686(0x296)]),v(0xb,t[_0x5a7686(0x2d4)]),v(0xc,t[_0x5a7686(0x1fe)]),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],k);let A=Re=class extends D{constructor(_0x3074b3,_0x32ca7b,_0x4a8240,_0x4eb02a,_0x1dc165,_0x4055cf,_0x44e3f4,_0x321407,_0x11a31a,_0x49a439,_0x34bc94){const _0x288f8c=_0x5a7686;super(_0x3074b3,_0x32ca7b,_0x4a8240,[],_0x4eb02a,_0x44e3f4,_0x49a439,_0x4055cf,_0x34bc94),this[_0x288f8c(0x271)]=_0x1dc165,this['_logService']=_0x321407,this['_transformService']=_0x11a31a,g(this,_0x288f8c(0x385),_0x288f8c(0x310)),g(this,_0x288f8c(0x1d3),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x288f8c(0x164),void 0x0),g(this,_0x288f8c(0x264),void 0x0);}[_0x5a7686(0x2d5)](_0x41be6e){const _0x5b0583=_0x5a7686;this[_0x5b0583(0x98)]();let _0x28c0c6=this[_0x5b0583(0x271)][_0x5b0583(0x313)](j,this[_0x5b0583(0x17c)],this[_0x5b0583(0x234)],this[_0x5b0583(0x1e6)],[_0x41be6e],this[_0x5b0583(0x277)],this[_0x5b0583(0x164)]);return _0x28c0c6['_updateLocalCache'](),_0x28c0c6;}['onRemoteChangeset'](_0x48366d){const _0x4cb9b8=_0x5a7686;if(this['_checkMissing'](_0x48366d))return this[_0x4cb9b8(0x98)](),this[_0x4cb9b8(0x271)][_0x4cb9b8(0x313)](P,this[_0x4cb9b8(0x17c)],this[_0x4cb9b8(0x234)],this['_awaitingChangeset'],[],null,[_0x48366d],this['_handler']);try{let _0x51f4d6=this[_0x4cb9b8(0x19c)]['transformChangesets']([_0x48366d],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x4cb9b8(0x129)])(_0x51f4d6)){let {c1Prime:_0x4879b2,c2Prime:_0x3c075d}=_0x51f4d6;this[_0x4cb9b8(0x390)](_0x4879b2[0x0]),_0x3c075d[0x0][_0x4cb9b8(0x349)]=this[_0x4cb9b8(0xac)](),this['_clearScheduledTask']();let _0x40d0f8=this[_0x4cb9b8(0x271)][_0x4cb9b8(0x313)](Re,this[_0x4cb9b8(0x17c)],this['type'],_0x3c075d[0x0],this[_0x4cb9b8(0x277)]);return _0x40d0f8['_updateLocalCache'](),_0x40d0f8;}throw _0x51f4d6[_0x4cb9b8(0x36a)];}catch(_0x575b6a){return this[_0x4cb9b8(0x8f)][_0x4cb9b8(0x36a)](_0x575b6a),this[_0x4cb9b8(0x34c)](!0x1);}}['onRemoteAck'](_0x33e42d){const _0x3c209f=_0x5a7686;this['_clearScheduledTask']();let _0x3d8e73=this[_0x3c209f(0x302)]['getCurrentRevOfUnit'](this[_0x3c209f(0x17c)]);if(_0x33e42d[_0x3c209f(0x1d4)]<=_0x3d8e73)return this;if(this['_checkMissing'](_0x33e42d))return this[_0x3c209f(0x271)][_0x3c209f(0x313)](P,this[_0x3c209f(0x17c)],this[_0x3c209f(0x234)],this['_awaitingChangeset'],[],_0x33e42d[_0x3c209f(0x1d4)],[],this['_handler']);this[_0x3c209f(0x106)]();let _0x5bb2b2=this['_injector']['createInstance'](O,this[_0x3c209f(0x17c)],this[_0x3c209f(0x234)],this[_0x3c209f(0x277)]);return _0x5bb2b2['_updateLocalCache'](),_0x5bb2b2;}[_0x5a7686(0x8d)](_0x43d656){return this['_onConflict'](!!(_0x43d656!=null&&_0x43d656['isPermissionRej']));}[_0x5a7686(0x212)](_0x12afd0){const _0x46133b=_0x5a7686;return this[_0x46133b(0x33d)]>He?this[_0x46133b(0x21e)]():(this[_0x46133b(0x164)]=Ie(this[_0x46133b(0x1d3)],{'timeout':this[_0x46133b(0x1d3)],'reqId':_0x12afd0[_0x46133b(0x2a2)]}),this['_sender']=this[_0x46133b(0x164)][_0x46133b(0x24b)](({reqId:_0x2d8ba,timeout:_0xe481a7})=>{const _0x4fe6ce=_0x46133b;this[_0x4fe6ce(0x2d2)](_0x2d8ba,_0xe481a7);}),this);}[_0x5a7686(0x21e)](){const _0x2ddb4f=_0x5a7686;return this[_0x2ddb4f(0x98)](),this[_0x2ddb4f(0x271)]['createInstance'](N,this[_0x2ddb4f(0x17c)],this[_0x2ddb4f(0x234)],this[_0x2ddb4f(0x1e6)],[],this[_0x2ddb4f(0x277)]);}['toggleOnline'](){return this;}[_0x5a7686(0x1ba)](){const _0x25e312=_0x5a7686;this[_0x25e312(0x277)]['onSendChangeset'](this[_0x25e312(0x1e6)]);}['_onConflict'](_0x271898){const _0x1884d2=_0x5a7686;return this['_clearScheduledTask'](),this[_0x1884d2(0x271)][_0x1884d2(0x313)](M,this[_0x1884d2(0x17c)],this[_0x1884d2(0x234)],this[_0x1884d2(0x1e6)],[],this[_0x1884d2(0x277)],_0x271898);}[_0x5a7686(0x2d2)](_0x52bf22,_0x338ace){const _0x3a9e06=_0x5a7686;var _0x38fbb2;_0x52bf22===((_0x38fbb2=this['_awaitingChangeset'])==null?void 0x0:_0x38fbb2[_0x3a9e06(0x2a2)])&&(this[_0x3a9e06(0x1ba)](),this['_resendTimeout']=_0x338ace===0x0?0x3e8:Math[_0x3a9e06(0x317)](_0x338ace*0x2,Ve),this[_0x3a9e06(0x33d)]+=this[_0x3a9e06(0x1d3)]);}[_0x5a7686(0x98)](){const _0x2e4258=_0x5a7686;var _0x1397be;(_0x1397be=this['_sender'])==null||_0x1397be[_0x2e4258(0x393)](),this[_0x2e4258(0x1d3)]=0x0,this[_0x2e4258(0x33d)]=0x0;}};A=Re=y([v(0x4,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x6,t[_0x5a7686(0x170)]),v(0x7,t[_0x5a7686(0x2c2)]),v(0x8,e[_0x5a7686(0x296)]),v(0x9,t[_0x5a7686(0x1fe)]),v(0xa,(0x0,t[_0x5a7686(0xa3)])(S))],A);let j=ze=class extends D{constructor(_0x200a74,_0x4c8c1b,_0x189d05,_0x43b3d3,_0x4fdcef,_0x195dfb,_0x4c09a5,_0x57800d,_0x453d4d,_0x8f42a3,_0x3dcecf,_0x24ac22,_0x34ea82){const _0x471e05=_0x5a7686;super(_0x200a74,_0x4c8c1b,_0x189d05,_0x43b3d3,_0x4fdcef,_0x453d4d,_0x24ac22,_0x57800d,_0x34ea82),this['_injector']=_0x4c09a5,this['_logService']=_0x8f42a3,this[_0x471e05(0x19c)]=_0x3dcecf,this[_0x471e05(0xc5)]=_0x34ea82,g(this,_0x471e05(0x385),_0x471e05(0xf5)),g(this,'_resendTimeout',0x0),g(this,_0x471e05(0x33d),0x0),g(this,'_resendTimer',void 0x0),g(this,_0x471e05(0x264),void 0x0),_0x195dfb&&(this['_resendTimer']=_0x195dfb,this[_0x471e05(0x264)]=this[_0x471e05(0x164)][_0x471e05(0x24b)](({reqId:_0x35656e,timeout:_0x12094c})=>{const _0x2fe6b2=_0x471e05;this[_0x2fe6b2(0x2d2)](_0x35656e,_0x12094c);}));}['appendMutation'](_0x4bed63){const _0x27f308=_0x5a7686;return this[_0x27f308(0x34e)][_0x27f308(0x244)](_0x4bed63),this;}['onRemoteChangeset'](_0x4b4ec6){const _0x212a4c=_0x5a7686;if(this[_0x212a4c(0x2b6)](_0x4b4ec6))return this['_clearScheduledTask'](),this[_0x212a4c(0x271)][_0x212a4c(0x313)](P,this[_0x212a4c(0x17c)],this[_0x212a4c(0x234)],this[_0x212a4c(0x1e6)],this[_0x212a4c(0x34e)],null,[_0x4b4ec6],this[_0x212a4c(0x277)]);try{let _0x2cb301=this['_transformService'][_0x212a4c(0x12d)]([_0x4b4ec6],[this[_0x212a4c(0x1e6)]],!0x1);if((0x0,e[_0x212a4c(0x129)])(_0x2cb301)){let {c1Prime:_0x1a5598,c2Prime:_0x279064}=_0x2cb301,_0x4923af=this[_0x212a4c(0x19c)][_0x212a4c(0x1ab)](_0x1a5598[0x0],this[_0x212a4c(0x34e)]);if((0x0,e[_0x212a4c(0x2b4)])(_0x4923af)){let {c1Prime:_0x157732,m2Prime:_0x402003}=_0x4923af;return this['_executeRemoteChangeset'](_0x157732),_0x279064[0x0]['baseRev']=this[_0x212a4c(0xac)](),this[_0x212a4c(0x98)](),this['_injector'][_0x212a4c(0x313)](ze,this['unitID'],this[_0x212a4c(0x234)],_0x279064[0x0],_0x402003,this[_0x212a4c(0x277)],void 0x0);}throw _0x4923af[_0x212a4c(0x36a)];}throw _0x2cb301[_0x212a4c(0x36a)];}catch(_0x27df4a){return this['_logService']['error'](_0x27df4a),this[_0x212a4c(0x34c)](!0x1);}}[_0x5a7686(0x2a3)](_0x20f119){const _0x3a3679=_0x5a7686;this[_0x3a3679(0x98)]();let _0x3c9e2c=this[_0x3a3679(0xac)]();if(_0x20f119[_0x3a3679(0x1d4)]<=_0x3c9e2c)return this;if(this[_0x3a3679(0x2b6)](_0x20f119))return this[_0x3a3679(0x271)]['createInstance'](P,this[_0x3a3679(0x17c)],this[_0x3a3679(0x234)],this[_0x3a3679(0x1e6)],this[_0x3a3679(0x34e)],_0x20f119['revision'],[],this['_handler']);this[_0x3a3679(0x106)]();let _0x47be76=this['_injector']['createInstance'](k,this[_0x3a3679(0x17c)],this['type'],this[_0x3a3679(0x34e)],this['_handler']);return _0x47be76['_schedule'](),_0x47be76['_updateLocalCache'](),_0x47be76;}['onRemoteRej'](_0x2a5f65){const _0x2cf8d8=_0x5a7686;return this[_0x2cf8d8(0x34c)](!!(_0x2a5f65!=null&&_0x2a5f65[_0x2cf8d8(0xdd)]));}[_0x5a7686(0x212)](_0x44a4df){const _0x1046e6=_0x5a7686;return this[_0x1046e6(0x33d)]>He?this[_0x1046e6(0x21e)]():(this[_0x1046e6(0x164)]=Ie(this[_0x1046e6(0x1d3)],{'timeout':this[_0x1046e6(0x1d3)],'reqId':_0x44a4df[_0x1046e6(0x2a2)]}),this[_0x1046e6(0x264)]=this[_0x1046e6(0x164)][_0x1046e6(0x24b)](({reqId:_0x1ac892,timeout:_0x3061a8})=>{const _0x385ab4=_0x1046e6;this[_0x385ab4(0x2d2)](_0x1ac892,_0x3061a8);}),this);}[_0x5a7686(0x21e)](){const _0x28fbbc=_0x5a7686;return this['_clearScheduledTask'](),this['_injector']['createInstance'](N,this[_0x28fbbc(0x17c)],this[_0x28fbbc(0x234)],this[_0x28fbbc(0x1e6)],this[_0x28fbbc(0x34e)],this[_0x28fbbc(0x277)]);}[_0x5a7686(0x81)](){return this;}[_0x5a7686(0x1ba)](){const _0xfaba10=_0x5a7686;this[_0xfaba10(0x277)][_0xfaba10(0x18b)](this[_0xfaba10(0x1e6)]);}['_onConflict'](_0xbe8869){const _0x4224ad=_0x5a7686;return this[_0x4224ad(0x98)](),this[_0x4224ad(0x271)][_0x4224ad(0x313)](M,this[_0x4224ad(0x17c)],this['type'],null,this['_pendingMutations'],this[_0x4224ad(0x277)],_0xbe8869);}[_0x5a7686(0x2d2)](_0x5b88f7,_0x124553){const _0x493dd9=_0x5a7686;var _0x263e4b;_0x5b88f7===((_0x263e4b=this['_awaitingChangeset'])==null?void 0x0:_0x263e4b[_0x493dd9(0x2a2)])&&(this[_0x493dd9(0x1ba)](),this['_resendTimeout']=_0x124553===0x0?0x3e8:Math['min'](_0x124553*0x2,Ve),this[_0x493dd9(0x33d)]+=this[_0x493dd9(0x1d3)]);}[_0x5a7686(0x98)](){const _0x2bf854=_0x5a7686;var _0x2cf177;(_0x2cf177=this[_0x2bf854(0x264)])==null||_0x2cf177[_0x2bf854(0x393)](),this[_0x2bf854(0x1d3)]=0x0,this[_0x2bf854(0x33d)]=0x0;}};function _0x37aa(){const _0xa47838=['hasOwnProperty','toString','_waitCount','parse','close','_lockTransition','ERROR_IMAGE','members$','push','url','session.room-cnt-exceeds','fromCollab','session.room-full','PERMISSION_REJ','loadSheet','subscribe','ImageUploadStatusType','EnsureSlideMasterPageMutation','_state$','entries','getUnitId','createSocket','setCfgEnableObjInherit','_clearTimeoutTimer','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','MUTATION','_socketChannels','size','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','call','eventID','/universer-api/comb','number','isCompositionEnd','_onRemoteRetry','_event$','objects','upload','_HTTPService','liveShareNewHost','_sender','LIVESHARE_FETCH_OPERATIONS','csAckEvent','LIVESHARE_OPERATION','HEARTBEAT_TIMEOUT_KEY','_getAPIPrefixPath','not_collab','&assign=','collaboration-client.local-cache-service','/-/object/-/batch_allowed','stopTime','SnapshotServerOverHTTPService','/universer-api/snapshot/','_injector','HEARTBEAT_INTERVAL_KEY','synced','params','_instanceService','CONFLICT','_handler','AwaitingWithPendingState','[UniverCollaborationClientPlugin]','csShouldRetryEvent','sendHeartbeatTimer','takeUntil','\x0aCurrent:\x20','_undoStacks','UNIVER_BASE','resolveUnit','_onRemoteRejected','setShowComponents','_registerDependencies','focused$','error$','_identity','_getRedoStack','default','_permissionService','href','indexOf','UNISCRIPT_RUN','b64DecodeUnicode','socket\x20close','_changesetSessionId','_showConflictNotification','telemetry\x20info\x20is\x20not\x20initialized','deleteCollaborator','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity$','requireSession','ITransformService','INetworkConditionService','IConfigService','/universer-api/file/{fileID}/sign-url','_startCollaboration','refreshPermission','unitType','toLocal','cmd','send','localUnitId','origin','reqId','onRemoteAck','Quantity','onCommentUpdate','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_localCacheService','_docStateChangeManagerService','COLLABORATION_ENDPOINT_INVALID','_adapter','parseChangesetToProtocol','csRejEvent','_createInitialState','_onRemoteChangeset','conflict','_getConfig','_exhaustRemoteChangesetQueue','saveSheetBlock','state$','isTransformMutationsWithChangesetSuccess','code','_checkMissing','&source=','JOIN_ROOM_PERMISSION_DENIED','/new_changes','_commentUpdate$','CollaborationSessionService','_isPermissionRej','entityInit$','_onCombEvent','CollaborationStatus','_doCreateSocket','_updateState','ILogService','m2Prime','_sendingTimer','values','unknown','onTransformIME','univer-pro.collaboration-client-adapter-service','CollaborationSocketService','SheetCollaborationEntity','OTHER_CLIENTS_EDITING','_members$','leaveEvent','1637961IbohND','base-ui.attachment-io.service','onload','ERROR_EXCEED_SIZE','_resendWithTimeout','CommandType','IUniverInstanceService','appendMutation','routeKey','_sessionStatus$','_clearRetryConnectingTimer','RevisionService','enableCollaboration','onMutationExecutedForCollab','isArray','_replaceFileID','getCurrentRevOfUnit','_updateStatus','updatePermissionObjEvent','_stopTelemetryCollaborationNewChangeset','status$','_status$','_eventService','toPrimitive','FileSource','socket\x20open.','infoRsp','UniverInstanceType','socketReady','onTransformRemoteChangesetByStateCache','_substituteUndoStack','enableAuthServer','\x20to\x20','CompressMutationService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_sessions','encode','_unitLoaded$','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getMemberID','action','resourceIDs','changesets','_collaborationTimeoutTimer','15lesqNq','updateOfflineData','_acknowledgeAwaitingIfReady','_onConnectionOpen','_createInitialStateImpl','_upload','fetchMiss','UNIVER_DOC','_revisionService','transformSelections','Injector','UPDATE_PERMISSION_OBJ','session.join-failed','capture','method','JOINING','override','body','startTime','memberID','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_handleRemoteChangesets','awaiting','[DataLoaderService]','_waitForHeartbeatResponse','createInstance','MSG_FOR_ERROR','state','merge','min','session.room-permission-denied','UNIVER_SLIDE','createCollaborator','onStateChange','prototype','EmptyMutationInfo','RETRY_CONNECTING_MAX_COUNT','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','UNIVER_BOARD','collabSubmitChangesetUrl','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','/fetchmissing?from=','_acknowledgedAwaitingRevision','joinRsp','?url=','waitForRoom$','_joinRoom','[PendingState]:\x20unhandled\x20univer\x20type:\x20','LOCAL_CACHE_INTERVAL_KEY','object','src','disableLocalCache','onTransformState','onMissingChangesets','socket$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','BaseCollaborationEntity','collaboration_new_changeset','BehaviorSubject','isTransformMutationsWithChangesetFailure','_cfgEnableObjInherit','LocaleService','Plugin','ThresholdInterceptorFactory','fetch_missing','AuthzIoHttpService','liveShareOperation','_maxTotalRetryTimeout','CollaborationEntity','ITelemetryService','Subject','SyncedState','decorate','_networkConditionService','_onMessage','confirm','UUID','_undoRedoService','getMember','baseRev','sid','getConfig','_onConflict','IMentionIOService','_pendingMutations','_scheduleCollaborationTimeoutTimer','map','Workbook','ILocalCacheService','incrementRevOfUnit','string','getUnitStatus$','_clearRedo','update','ErrorCode','readyForCollab','_tryReconnect','_collabSessionService','onTransformRemoteChangesetByIMECache','save\x20fail\x20reason\x20is\x20','HTTPService','_snapshotService','NO_OTHER_CLIENTS_EDITING','FAIL','textRanges','JSONX','createIdentifier','_members','fetchThroughInterceptors','close$','NEW_CHANGESETS','ONLINE','error','univer-pro.collaboration-client-socket-service','_handlerCallback','3775464tvZPtE','missingChangesets','delete','initWorkbookPermissionChange','result','symbol','editing\x20status\x20changed\x20to','SUBMIT_CHANGESET_TIMEOUT','_applyRemoteChangeset','[SyncedState]:\x20received\x20acknowledgement.','MentionIoHttpService','sessionStatus','now','_onLocalMutation','joinEvent','loadUnit','getCollabEntity','_tryEnsureSocket','CollaborationUIEventService','_isEchoedAwaitingChangeset','_entityInit$','_sessionChannels','originalMeta','clear','status','resolve','ISnapshotServerService','emitEvent','_onOffline','DEFAULT_WS_SESSION_TICKET_URL','getSheetId','subject','retryConnectingTimer','_getUploadFileURL','RECV','_executeRemoteChangeset','23988MmyGUo','OfflineState','unsubscribe','_createHandler','_initRequestHeader','getCurrentUser','_initCloseConn','loadSlide','timeoutTimer','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SetSelectionsOperation','HEARTBEAT','toggleOnline','SlideCollaborationEntity','DocCollaborationEntity','_transformUndoredo','endsWith','init','URL','commentUpdateEvent','trim','_type','_change$','_httpService','onRemoteRej','/universer-api/user/session-ticket','_logService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[PendingState]:\x20received\x20rejection.','INGEST','file','getLocalCacheKey','_socketMessageSubscription','authzUrl','_transformRemoteChangesetByIMECache','_clearScheduledTask','connection\x20error','_config','[CollaborationEntity]','/unit/','pauseCollaboration','setCurrentUser','post','actions','getImage','UNIVER_SHEET','Optional','RemoveSlidePageMutation','userID','getWorkbookSelections','_onJoinRoomEvent','cfgEnableObjInherit','getTime','_onUserLeave','_transitionLocked','_getCurrentRevision','PENDING','transformUndoRedo','/object/','_initUnitPermissionChange','[CollaborationUndoRedoService]','getSheetBlock','CHANGESET_REJ','text-x','_snapshotServerService','putCollaborators','updateCursorEvent','onTransformSelections','saveChangeset','snapshotServerUrl','LIVESHARE_NEW_HOST','_queuedRemoteChangesets','target','_listenToNetworkCondition','has','closeSession','ImageSourceType','getDrawingImageAllowSize','_decreaseWaiting','objectID','localCacheService','_startTelemetryCollaborationNewChangeset','InsertSheetMutation','includes','HEARTBEAT_INTERVAL','_getSendChangesetTimeout','every','getUnit','delay','IPermissionService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','UPDATE_CURSOR','updateMember','CollaborationEvent','fromCharCode','HELLO','/block/','_unlockTransition','/-/object/list','defineProperty','columnGroups','getRoom','retryCount','subUnitId','isPermissionRej','create','_localeService','batchAllowed','candidateSocket','_getDownloadEndpointURL','_initDependencies','HEARTBEAT_TIMEOUT','compose','LEAVE','_updateLocalCache','x-univer-host','_onFetchMissResult','asObservable','onMissedChangesetFetched','reduce','loadBoard','IImageIoService','tables','fetching\x20missing\x20changesets\x20from\x20','DEFAULT_FILE_NAME','FetchingMissState','_collaborationSessionService','headers','awaiting_with_pending','OFFLINE','HTTPRequest','pipe','socketMessageSubscription','/object','481710VXzHgT','_roomCreated$','/universer-api/oidc/authpage','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','collabWebSocketUrl','_toggleOnline','univer-pro.collaboration-client.single-active-unit-service','LOCAL_CACHE_INTERVAL','/rev/','_univerInstanceService','_socket','_incrementRevisionNumber','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','location','uploadFileServerUrl','UniverNetworkPlugin','_createSocket','_commandService','1.0.0-alpha.6','LIVESHARE_REQUEST_HOST','_submitChangeset','People','_createSession','objectType','_fetchMissChangesets','ReplaySubject','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','Disposable','session','floor','CHANGESET_SHOULD_RETRY','_transformRemoteChangesetByStateCache','_getSignURL','_initMergeInterceptor','onlyLocal','_changesetReqId','COMMENT_UPDATE','stringify','[CollaborationSessionService]','_commentService','mapDocumentTypeToUniverInstanceType','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','sheets','event$','_collaborationPaused','isTransformChangesetsSuccess','sendChangesetTimeout','parseProtocolChangeset','_collaborationUIEventService','transformChangesets','workbook','downloadEndpointUrl','OTHER_CLIENT_EDITING','snapshot','collaboratorID','UnitStatus','loadBase','unitId','533138gMLIMW','function','BASE64','_disableEditing','\x20-\x20','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','concatBytes','Univer','CollaborationImageIoService','ISingleActiveUnitService','getCurrentSelections','SHOULD_CLOSE_CONN','GLOBAL_ROOMS_CNT_EXCEEDS','Tools','[FetchMissState]','mergeOverrideWithDependencies','COMPRESS_MUTATION_APPLY','_onUserJoin','_resolveSessionIdentity','/resources','updateSnapshot','_shouldReportTelemetry','UniverCollaborationPlugin','Module','DocStateChangeManagerService','_singleActiveUnitService','[CollaborationState]:\x20apply\x20error!','attachment','OPTIONAL','IAuthzIoService','equals','unitId\x20is\x20not\x20found','IDLE','c1Prime','find','collaboration-client.config','14ldZJIV','getFocusedUnit','AddSlidePageMutation','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','list','[OfflineState]:\x20received\x20rejection.','/collaborator','_scheduleCompleteTimestamp','toRemote','_rescheduleHeartbeat','_resendTimer','some','toDisposable','PendingState','packageName','constructor','IAttachmentIoService','getTypeOfUnitDisposed$','message$','_configService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','version','ICommandService','_state','ws://127.0.0.1:8000/universer-api/comb/connect','ICollaborationSocketService','RETRY_CONNECTING_MAX_COUNT_KEY','SnapshotService','&to=','dispose','CollaborativeUndoRedoService','CollaborationAttachmentIoService','/role','_telemetryService','unitID','disposeWithMe','_userManagerService','blockRanges','CombCmd','SOCKET_FAILED_RETRY','getAllMembers','_throwTelemetryCollaborationNewChangeset','slice','2078274vfQylp','SUBMIT_CHANGESET','[CollaborationSession]','socketService','MergeInterceptorFactory','filter','onSendChangeset','/allowed','removeMember','_pendingSessions','put','range','startsWith','CLOSE_ROOM','getInterceptPoints','_init','_compressMutationService','getDeserializedSheetBlock','ISocketService','catch','SOCKET_FAILED','UnitEmbedded','_imageSourceCache','_transformService','commentUpdate$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','withCredentials','_getAPIPrefix','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','RxDisposable','responseType','_memberService','take','randomBytes','retryConnectingInterval','PERMISSION_DENIED','loadUnitOfRevision','SheetTransformSelectionsService','transformMutationsWithChangeset','copyFileMeta','touchDependencies','CmdRspCode','/universer-api/authz','debug','_sheetTransformSelectionsService','_substituteRedoStack','isInternalEditorID','requestParams','setConfig','_roomMembers','get','permissionRejEvent','/universer-api/stream/file/upload','resend','_clearHeartbeatTimer','loginUrlKey','name','getActiveSheet','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','submit\x20changeset\x20error!','saveAttachment','newCsEvent','unit','_unitInfo$','_entities','selections','mutations','fetchMissingChangesets','Inject','shouldCloseConn','endpoint','JOIN_ROOM_FULL','changeset','WorkbookEditablePermission','rev','getTypeOfUnitAdded$','getValue','hostname','_resendTimeout','revision','_telemetryInfo','firstValueFrom','sessionStatus$','deepClone','_clearLocalCache','339816RqshnW','_clearCollaborationTimeoutTimer','enableSingleActiveInstanceLock','max','forEach','_transformStack','getUploadOptions','loadOfflineData','executeCommand','registerHTTPInterceptor','COMPRESS_MUTATION_SEND','_getCtorByUniverInstanceType','_awaitingChangeset','_transformSelections','setWaitCount','__splitChunk__','JOIN','next','[SyncedState]:\x20received\x20rejection.','localeService','CommentService','{fileID}','_onRemoteACK','onRemoteChangeset','add','CollaborationSession','accept','_emitMembers','FileId','_acknowledgeAwaiting','roles','addHandlerCallback','complete','_hasSessionsForEndpoint','append','patch','IUndoRedoService','_removeRoom','open$','PSEUDO_FETCH_MISSING_RESULT','_schedule','SYNCED','DependentOn','unit-cache-','onSyncEditingCollabCursor','saveSnapshot','?size=','RichTextEditingMutation','textEncoder','objectActions','_transformIMECache','_socketService','_onRecvEvent','_onConnectionFailed','interceptor','dispose$','onRemoteRetry','LIVESHARE_TERMINATE','docStateChange$','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','MentionType','online$','pending','ConflictState','[CollaborationSessionService]:\x20socket\x20error','collaMsg','reject','getUnitType','toggleOffline','data','CHANGESET_ACK','_transformStateCache','addImageSourceCache','_replayCachedMutations','FETCH_MISSING','length','UNIVER_COLLABORATION_CLIENT_PLUGIN','getSnapshotAPIPath','_syncEditingCollabCursor','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onStarting','endpointKey','set','pluginName','collaborators','updatePermissionPoint','JOIN_ROOM_FAILED','AwaitingState','[OfflineState]:\x20received\x20acknowledgement.','_transformAndApplyRemoteChangeset','type','_toggleOffline','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','USERS_ENTER','USERS_LEAVE','loadDoc','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_getSocketChannel'];_0x37aa=function(){return _0xa47838;};return _0x37aa();}j=ze=y([v(0x6,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x7,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x8,t[_0x5a7686(0x170)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,e[_0x5a7686(0x296)]),v(0xb,t[_0x5a7686(0x1fe)]),v(0xc,(0x0,t[_0x5a7686(0xa3)])(S))],j);let M=class extends D{constructor(_0x5e031e,_0x58fc8a,_0x2486d5,_0x13008b,_0x4d0e6e,_0x595c1e=!0x1,_0x23b1a2,_0x5ba1e5,_0x41912c,_0x132afb,_0x515232,_0x23f2dc,_0xad89ee){const _0x3d7fcc=_0x5a7686;super(_0x5e031e,_0x58fc8a,_0x2486d5,_0x13008b,_0x4d0e6e,_0x5ba1e5,_0x41912c,_0x132afb,_0xad89ee),this[_0x3d7fcc(0x2bc)]=_0x595c1e,this['_permissionService']=_0x23b1a2,this['_localeService']=_0x515232,this[_0x3d7fcc(0x12c)]=_0x23f2dc,this[_0x3d7fcc(0xc5)]=_0xad89ee,g(this,_0x3d7fcc(0x385),_0x3d7fcc(0x2af)),this[_0x3d7fcc(0x290)](),this[_0x3d7fcc(0x1d9)](),this[_0x3d7fcc(0x139)]();}['appendMutation'](){return this;}[_0x5a7686(0x1f1)](){return this;}[_0x5a7686(0x2a3)](){return this;}[_0x5a7686(0x8d)](){return this;}[_0x5a7686(0x212)](){return this;}[_0x5a7686(0x21e)](){return this;}[_0x5a7686(0x81)](){return this;}['resend'](){const _0x463783=_0x5a7686;throw Error(_0x463783(0x293));}[_0x5a7686(0x1d9)](){const _0x23b779=_0x5a7686;var _0x49fb19,_0x4167e5,_0x150f23;(_0x49fb19=this[_0x23b779(0x2a7)])==null||(_0x4167e5=_0x49fb19['backupOfflineData'])==null||(_0x4167e5=_0x4167e5['call'](_0x49fb19,this[_0x23b779(0x17c)],_0x23b779(0x2af)))==null||_0x4167e5[_0x23b779(0x198)](()=>void 0x0),(_0x150f23=this[_0x23b779(0x2a7)])==null||_0x150f23[_0x23b779(0x2fb)](this['unitID'],this[_0x23b779(0x234)],null,[]);}[_0x5a7686(0x290)](){const _0x20432b=_0x5a7686;this[_0x20432b(0x2bc)]?this[_0x20432b(0x12c)][_0x20432b(0x388)]({'id':_0x20432b(0x1a8)}):this[_0x20432b(0x12c)]['emitEvent']({'id':_0x20432b(0x276)});}[_0x5a7686(0x139)](){const _0x14ab05=_0x5a7686;this[_0x14ab05(0x289)][_0x14ab05(0x22f)](new r[(_0x14ab05(0x1ce))](this['unitID'])['id'],!0x1);}};M=y([v(0x6,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0xce)])),v(0x7,t[_0x5a7686(0x170)]),v(0x8,t[_0x5a7686(0x1fe)]),v(0x9,(0x0,t['Inject'])(e[_0x5a7686(0x2d9)])),v(0xa,(0x0,t['Inject'])(t[_0x5a7686(0x337)])),v(0xb,(0x0,t[_0x5a7686(0x1c9)])(_)),v(0xc,(0x0,t[_0x5a7686(0xa3)])(S))],M);let N=class extends D{constructor(_0x4b9fa2,_0x3eeee2,_0x250b03,_0x372c81,_0x2fff40,_0x427f00,_0x10aa53,_0xb92928,_0x38f7e5,_0x35d0cd){const _0x38fbba=_0x5a7686;super(_0x4b9fa2,_0x3eeee2,_0x250b03,_0x372c81,_0x2fff40,_0xb92928,_0x38f7e5,_0x10aa53,_0x35d0cd),this[_0x38fbba(0x271)]=_0x427f00,g(this,_0x38fbba(0x385),'offline');}[_0x5a7686(0x2d5)](_0x15124a){const _0xa6257c=_0x5a7686;return this['_pendingMutations'][_0xa6257c(0x244)](_0x15124a),this['_updateLocalCache'](),this;}[_0x5a7686(0x1f1)](_0x2af568){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x5a7686(0x2a3)](){const _0x212e12=_0x5a7686;throw Error(_0x212e12(0x232));}[_0x5a7686(0x8d)](){const _0x3f8aa8=_0x5a7686;throw Error(_0x3f8aa8(0x15f));}['onRemoteRetry'](){return this;}[_0x5a7686(0x21e)](){return this;}[_0x5a7686(0x81)](){const _0x4da606=_0x5a7686;let {_injector:_0x3995d5,_pendingMutations:_0x51eb4a,_awaitingChangeset:_0x138836,unitID:_0x53598a,_handler:_0x5f20bb,type:_0x5f1761}=this,_0x1b00af=Ue(_0x3995d5,_0x53598a,_0x5f1761,_0x138836,_0x51eb4a,_0x5f20bb);return _0x1b00af instanceof k?_0x1b00af['_schedule']():(_0x1b00af instanceof j||_0x1b00af instanceof A)&&_0x1b00af[_0x4da606(0x1ba)](),_0x1b00af;}['resend'](){const _0x40ab22=_0x5a7686;throw Error(_0x40ab22(0x229));}};N=y([v(0x5,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x6,(0x0,t['Inject'])(e[_0x5a7686(0x2d9)])),v(0x7,t['ICommandService']),v(0x8,t[_0x5a7686(0x1fe)]),v(0x9,(0x0,t[_0x5a7686(0xa3)])(S))],N);let P=class extends D{constructor(_0x10fb30,_0x43a82f,_0x1129b5,_0x38feaa,_0x1269a6,_0xbbaf1f,_0x1697fa,_0x175b91,_0xdeee79,_0x699ee2,_0x37127e,_0x1f60d0,_0x3e51a5,_0x4cba1e){const _0xd18a2b=_0x5a7686;super(_0x10fb30,_0x43a82f,_0x1129b5,_0x38feaa,_0x1697fa,_0x37127e,_0x1f60d0,_0xdeee79,_0x4cba1e),this['_acknowledgedAwaitingRevision']=_0x1269a6,this[_0xd18a2b(0xbc)]=_0xbbaf1f,this[_0xd18a2b(0x271)]=_0x175b91,this[_0xd18a2b(0x8f)]=_0x699ee2,this[_0xd18a2b(0x19c)]=_0x3e51a5,this['localCacheService']=_0x4cba1e,g(this,'status',_0xd18a2b(0x33a));}['onMissedChangesetFetched'](_0x13c12c){const _0xd17e60=_0x5a7686;try{if(this['_handleRemoteChangesets'](_0x13c12c)[_0xd17e60(0x36e)])throw Error(_0xd17e60(0xcf));if(this[_0xd17e60(0x30f)]([...this['_queuedRemoteChangesets']]['sort']((_0x28d87d,_0x22f161)=>_0x28d87d['revision']-_0x22f161['revision']))[_0xd17e60(0x36e)])return this['_queuedRemoteChangesets']=[],this[_0xd17e60(0xe7)](),this['_handler']['onMissingChangesets']({'from':this[_0xd17e60(0xac)](),'to':0x0}),this;let _0x369c9a=this[_0xd17e60(0x1e6)],_0x3676a6=this['_pendingMutations'],_0x25e58d;if(_0x369c9a&&_0x3676a6[_0xd17e60(0x225)]!==0x0)_0x25e58d=this['_injector'][_0xd17e60(0x313)](j,this['unitID'],this[_0xd17e60(0x234)],_0x369c9a,_0x3676a6,this['_handler'],void 0x0);else{if(_0x369c9a&&_0x3676a6[_0xd17e60(0x225)]===0x0)_0x369c9a[_0xd17e60(0x349)]=this[_0xd17e60(0xac)](),_0x25e58d=this[_0xd17e60(0x271)]['createInstance'](A,this[_0xd17e60(0x17c)],this[_0xd17e60(0x234)],_0x369c9a,this['_handler']);else{if(_0x3676a6[_0xd17e60(0x225)]!==0x0){let _0x37e596=this[_0xd17e60(0x271)][_0xd17e60(0x313)](k,this['unitID'],this['type'],_0x3676a6,this[_0xd17e60(0x277)]);_0x37e596[_0xd17e60(0x202)](),_0x25e58d=_0x37e596;}else _0x25e58d=this['_injector'][_0xd17e60(0x313)](O,this[_0xd17e60(0x17c)],this['type'],this[_0xd17e60(0x277)]);}}return _0x25e58d[_0xd17e60(0xe7)](),_0x25e58d;}catch(_0x294a8c){return this[_0xd17e60(0x8f)]['error'](_0xd17e60(0x144),'failed\x20to\x20apply\x20missed\x20changesets!',_0x294a8c),this[_0xd17e60(0x271)][_0xd17e60(0x313)](M,this[_0xd17e60(0x17c)],this[_0xd17e60(0x234)],this['_awaitingChangeset'],this[_0xd17e60(0x34e)],this[_0xd17e60(0x277)],!0x1);}}[_0x5a7686(0x30f)](_0x3070ba){const _0x4c43d6=_0x5a7686;this[_0x4c43d6(0x2fc)]();for(let _0x20368e=0x0;_0x20368e<_0x3070ba[_0x4c43d6(0x225)];_0x20368e++){let _0x5222f9=_0x3070ba[_0x20368e],_0x4ce939=this['_getCurrentRevision']();if(!(_0x5222f9[_0x4c43d6(0x1d4)]<=_0x4ce939)){if(_0x5222f9[_0x4c43d6(0x1d4)]>_0x4ce939+0x1)return{'missingChangesets':!0x0};if(this[_0x4c43d6(0x380)](_0x5222f9)){this[_0x4c43d6(0x1f7)]();continue;}this[_0x4c43d6(0x233)](_0x5222f9),this[_0x4c43d6(0x2fc)]();}}return{'missingChangesets':!0x1};}[_0x5a7686(0x233)](_0x1251eb){const _0x2e91a2=_0x5a7686;let _0x1f2c2c=_0x1251eb,_0x56c2d2=this[_0x2e91a2(0x1e6)];if(_0x56c2d2){let _0x3b41b5=this[_0x2e91a2(0x19c)][_0x2e91a2(0x12d)]([_0x1251eb],[_0x56c2d2],!0x1);if(!(0x0,e['isTransformChangesetsSuccess'])(_0x3b41b5))throw _0x3b41b5['error'];_0x1f2c2c=_0x3b41b5[_0x2e91a2(0x157)][0x0],_0x56c2d2=_0x3b41b5['c2Prime'][0x0];}let _0x298137=this[_0x2e91a2(0x34e)];if(_0x298137[_0x2e91a2(0x225)]){let _0x47fb02=this[_0x2e91a2(0x19c)]['transformMutationsWithChangeset'](_0x1f2c2c,_0x298137);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x47fb02))throw _0x47fb02[_0x2e91a2(0x36a)];_0x1f2c2c=_0x47fb02[_0x2e91a2(0x157)],_0x298137=_0x47fb02[_0x2e91a2(0x2c3)];}this[_0x2e91a2(0x390)](_0x1f2c2c),_0x56c2d2&&(_0x56c2d2[_0x2e91a2(0x349)]=this[_0x2e91a2(0xac)]()),this[_0x2e91a2(0x1e6)]=_0x56c2d2,this[_0x2e91a2(0x34e)]=_0x298137;}[_0x5a7686(0x2fc)](){const _0x3236c7=_0x5a7686;if(!this[_0x3236c7(0x1e6)]||this[_0x3236c7(0x324)]==null)return;let _0x1d3aef=this[_0x3236c7(0xac)]();if(this[_0x3236c7(0x324)]<=_0x1d3aef)throw Error(_0x3236c7(0x254)+this[_0x3236c7(0x324)]+'.');this['_acknowledgedAwaitingRevision']===_0x1d3aef+0x1&&this['_acknowledgeAwaiting']();}[_0x5a7686(0x1f7)](){const _0x4c661d=_0x5a7686;this['_incrementRevisionNumber'](),this[_0x4c661d(0x1e6)]=null,this[_0x4c661d(0x324)]=null;}[_0x5a7686(0x380)](_0x3d310e){const _0x59809a=_0x5a7686;let _0x5292b6=this[_0x59809a(0x1e6)];return!_0x5292b6||!_0x5292b6[_0x59809a(0x34a)]||_0x5292b6['reqId']===null||_0x5292b6[_0x59809a(0x2a2)]===void 0x0?!0x1:_0x3d310e['unitID']===_0x5292b6[_0x59809a(0x17c)]&&_0x3d310e[_0x59809a(0x34a)]===_0x5292b6[_0x59809a(0x34a)]&&_0x3d310e[_0x59809a(0x2a2)]===_0x5292b6[_0x59809a(0x2a2)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5a7686(0x2d5)](_0x1a1d17){const _0x1763c1=_0x5a7686;return this[_0x1763c1(0x34e)][_0x1763c1(0x244)](_0x1a1d17),this;}[_0x5a7686(0x1f1)](_0xc60568){const _0x36dd86=_0x5a7686;return this[_0x36dd86(0xbc)]['push'](_0xc60568),this;}['onRemoteAck'](_0xedb419){const _0x23f777=_0x5a7686;if(this[_0x23f777(0x1e6)]){let _0x3b8c21=this[_0x23f777(0xac)]();return _0xedb419['revision']<=_0x3b8c21||(_0x3b8c21+0x1===_0xedb419[_0x23f777(0x1d4)]?(this['_incrementRevisionNumber'](),this[_0x23f777(0x1e6)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x23f777(0x324)]=_0xedb419[_0x23f777(0x1d4)]),this;}if(_0xedb419[_0x23f777(0x1d4)]<=this['_getCurrentRevision']())return this;throw Error(_0x23f777(0x107));}[_0x5a7686(0x8d)](_0x257294){const _0x5bdf22=_0x5a7686;return this['_onConflict'](!!(_0x257294!=null&&_0x257294[_0x5bdf22(0xdd)]));}[_0x5a7686(0x212)](){return this;}['toggleOffline'](){const _0xfe111e=_0x5a7686;return this[_0xfe111e(0x271)][_0xfe111e(0x313)](N,this['unitID'],this[_0xfe111e(0x234)],this[_0xfe111e(0x1e6)],this[_0xfe111e(0x34e)],this['_handler']);}[_0x5a7686(0x81)](){return this;}[_0x5a7686(0x34c)](_0xbb5517){const _0x35bd4f=_0x5a7686;return this[_0x35bd4f(0x271)][_0x35bd4f(0x313)](M,this[_0x35bd4f(0x17c)],this[_0x35bd4f(0x234)],this[_0x35bd4f(0x1e6)],this[_0x35bd4f(0x34e)],this[_0x35bd4f(0x277)],_0xbb5517);}};P=y([v(0x7,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x8,(0x0,t[_0x5a7686(0x1c9)])(e['RevisionService'])),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t['ICommandService']),v(0xb,t[_0x5a7686(0x1fe)]),v(0xc,e[_0x5a7686(0x296)]),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],P);function Ue(_0x4947d9,_0x2af1a5,_0x2ebed8,_0x997dd8,_0x4343ec,_0xdcf2da){const _0x20c40c=_0x5a7686;return _0x997dd8&&_0x4343ec[_0x20c40c(0x225)]?_0x4947d9['createInstance'](j,_0x2af1a5,_0x2ebed8,_0x997dd8,_0x4343ec,_0xdcf2da,void 0x0):_0x997dd8?_0x4947d9['createInstance'](A,_0x2af1a5,_0x2ebed8,_0x997dd8,_0xdcf2da):_0x4343ec[_0x20c40c(0x225)]?_0x4947d9[_0x20c40c(0x313)](k,_0x2af1a5,_0x2ebed8,_0x4343ec,_0xdcf2da):_0x4947d9[_0x20c40c(0x313)](O,_0x2af1a5,_0x2ebed8,_0xdcf2da);}let F=class extends t[_0x5a7686(0x1a2)]{get[_0x5a7686(0x315)](){const _0x49756d=_0x5a7686;return this[_0x49756d(0x171)];}constructor(_0x15025f,_0x2a8b3d,_0x2b9d9c,_0x21cacc,_0x5b3e64,_0x54d534,_0x4b1802,_0x36334f,_0x1d6b21,_0x538919,_0x68a46c,_0x52aa44,_0x514758,_0x159aca){const _0x41ad33=_0x5a7686;super(),this['unitID']=_0x15025f,this[_0x41ad33(0x118)]=_0x2a8b3d,this[_0x41ad33(0x8a)]=_0x2b9d9c,this[_0x41ad33(0x271)]=_0x21cacc,this[_0x41ad33(0x195)]=_0x5b3e64,this[_0x41ad33(0xdf)]=_0x54d534,this['_revisionService']=_0x4b1802,this[_0x41ad33(0x2e4)]=_0x36334f,this[_0x41ad33(0x104)]=_0x1d6b21,this['_logService']=_0x538919,this[_0x41ad33(0x10d)]=_0x68a46c,this['_permissionService']=_0x52aa44,this[_0x41ad33(0x14f)]=_0x514758,this[_0x41ad33(0x2a7)]=_0x159aca,g(this,_0x41ad33(0x24e),new i[(_0x41ad33(0x334))](null)),g(this,_0x41ad33(0x2b3),this[_0x41ad33(0x24e)][_0x41ad33(0xea)]()),g(this,_0x41ad33(0x171),void 0x0),g(this,_0x41ad33(0x128),!0x1),g(this,'_changesetSessionId',''),g(this,_0x41ad33(0x11f),0x0),g(this,'status$',this['state$'][_0x41ad33(0xf8)]((0x0,i[_0x41ad33(0x350)])(_0x44b655=>_0x44b655?_0x44b655[_0x41ad33(0x385)]:'offline'),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,'_transitionLocked',!0x1),g(this,'_remoteChangesetQueue',[]);}async[_0x5a7686(0x86)](){const _0x146cb0=_0x5a7686;if(this[_0x146cb0(0x315)])throw Error(_0x146cb0(0x236));await this[_0x146cb0(0x194)]();}[_0x5a7686(0x9d)](){const _0x14c6a2=_0x5a7686;return this[_0x14c6a2(0x128)]=!0x0,(0x0,t[_0x14c6a2(0x166)])(()=>{const _0x32e449=_0x14c6a2;this[_0x32e449(0x128)]=!0x1,this[_0x32e449(0x2b1)]();});}['onLocalMutation'](_0x2ab7bb){const _0x11f447=_0x5a7686;this[_0x11f447(0x37a)](_0x2ab7bb);}[_0x5a7686(0x2c1)](_0x1b0651){const _0x2df104=_0x5a7686;this[_0x2df104(0x171)]=_0x1b0651,this[_0x2df104(0x24e)][_0x2df104(0x1eb)](_0x1b0651);}async['_init'](){const _0x56dda6=_0x5a7686;if(this['_updateState'](await this['_createInitialState']()),this[_0x56dda6(0x14f)]){var _0x550bef;(_0x550bef=this['_singleActiveUnitService'])==null||_0x550bef['editingUnit'](this[_0x56dda6(0x17c)]),this[_0x56dda6(0x17d)](this[_0x56dda6(0x14f)][_0x56dda6(0x355)](this[_0x56dda6(0x17c)])[_0x56dda6(0x24b)](_0x3acf33=>{const _0x21dc0a=_0x56dda6;this[_0x21dc0a(0x8f)][_0x21dc0a(0x1b0)]('[CollaborationEntity]',_0x21dc0a(0x373),_0x3acf33),_0x3acf33===0x1?(this[_0x21dc0a(0x2e4)]['emitEvent']({'id':_0x21dc0a(0x130)}),this[_0x21dc0a(0x289)][_0x21dc0a(0x22f)](new r['WorkbookEditablePermission'](this[_0x21dc0a(0x17c)])['id'],!0x1),this[_0x21dc0a(0x289)][_0x21dc0a(0x282)](!0x1)):(this[_0x21dc0a(0x289)][_0x21dc0a(0x22f)](new r[(_0x21dc0a(0x1ce))](this[_0x21dc0a(0x17c)])['id'],!0x0),this['_permissionService'][_0x21dc0a(0x282)](!0x0));}));}let _0x3adf20=!0x1;return this[_0x56dda6(0x17d)](this[_0x56dda6(0x118)][_0x56dda6(0x1d7)][_0x56dda6(0x24b)](_0x12ecc5=>{const _0x46634b=_0x56dda6;_0x12ecc5===0x3?this[_0x46634b(0x100)](_0x3adf20):_0x12ecc5===0x2&&(_0x3adf20=!0x0,this[_0x46634b(0x235)]());})),this[_0x56dda6(0x17d)](this['session'][_0x56dda6(0x127)][_0x56dda6(0x24b)](_0x3209af=>{const _0x235e3b=_0x56dda6;try{switch(_0x3209af['eventID']){case e['CollaborationEvent'][_0x235e3b(0x368)]:this[_0x235e3b(0x2ae)]((0x0,e[_0x235e3b(0x12b)])(_0x3209af[_0x235e3b(0x21f)]));break;case e['CollaborationEvent'][_0x235e3b(0x220)]:this[_0x235e3b(0x1f0)](_0x3209af['data']);break;case e['CollaborationEvent'][_0x235e3b(0xb3)]:this[_0x235e3b(0x281)]();break;case e[_0x235e3b(0xd2)][_0x235e3b(0x11a)]:this[_0x235e3b(0x25e)](_0x3209af[_0x235e3b(0x21f)]);break;case e[_0x235e3b(0xd2)][_0x235e3b(0x201)]:this[_0x235e3b(0xe9)](_0x3209af[_0x235e3b(0x21f)]['changesets']['map'](_0x5cafee=>(0x0,e[_0x235e3b(0x12b)])(_0x5cafee)));break;case e[_0x235e3b(0xd2)][_0x235e3b(0x249)]:this[_0x235e3b(0x281)]({'isPermissionRej':!0x0});break;case e[_0x235e3b(0xd2)][_0x235e3b(0x28c)]:break;}}catch(_0xa5dc9){throw console[_0x235e3b(0x36a)]('Error\x20on\x20receiving\x20event',_0xa5dc9),_0xa5dc9;}})),this[_0x56dda6(0x171)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x5a7686(0x241)](){const _0x558c3b=_0x5a7686;if(this[_0x558c3b(0xab)])throw Error(_0x558c3b(0x31f));this[_0x558c3b(0xab)]=!0x0;}['_onLocalMutation'](_0x4cc172){const _0x407bf0=_0x5a7686;this['_lockTransition'](),this[_0x407bf0(0x2c1)](this[_0x407bf0(0x171)][_0x407bf0(0x2d5)](_0x4cc172)),this[_0x407bf0(0xd6)]();}[_0x5a7686(0x2ae)](_0x3b0e20){const _0x200716=_0x5a7686;if(!(_0x3b0e20[_0x200716(0x1d4)]<=this[_0x200716(0x302)][_0x200716(0x2de)](this[_0x200716(0x17c)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x200716(0x244)](_0x3b0e20);return;}this[_0x200716(0x375)](_0x3b0e20);}}[_0x5a7686(0x2b1)](){const _0x572c7b=_0x5a7686;this['_remoteChangesetQueue'][_0x572c7b(0x1de)](_0x36e497=>this[_0x572c7b(0x375)](_0x36e497)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x4d88ce){const _0x3d0b7f=_0x5a7686;let _0x299cd4=this['_compressMutationService']['interceptor'][_0x3d0b7f(0x366)](this[_0x3d0b7f(0x195)][_0x3d0b7f(0x210)][_0x3d0b7f(0x193)]()[_0x3d0b7f(0x146)])(_0x4d88ce[_0x3d0b7f(0x1c7)],null)||_0x4d88ce['mutations'],_0x1500f1={..._0x4d88ce,'mutations':_0x299cd4};this[_0x3d0b7f(0x241)](),this['_updateState'](this[_0x3d0b7f(0x171)][_0x3d0b7f(0x1f1)](_0x1500f1)),this[_0x3d0b7f(0xd6)]();}[_0x5a7686(0x1f0)](_0x47c35a){const _0x19b897=_0x5a7686;this[_0x19b897(0x241)](),this[_0x19b897(0x2c1)](this['_state'][_0x19b897(0x2a3)](_0x47c35a)),this[_0x19b897(0xd6)]();}[_0x5a7686(0x281)](_0x36a8f7){const _0x517a94=_0x5a7686;this['_lockTransition'](),this[_0x517a94(0x2c1)](this[_0x517a94(0x171)][_0x517a94(0x8d)](_0x36a8f7)),this[_0x517a94(0xd6)]();}[_0x5a7686(0x25e)](_0x462200){const _0x24290a=_0x5a7686;this[_0x24290a(0x241)](),this[_0x24290a(0x2c1)](this[_0x24290a(0x171)][_0x24290a(0x212)](_0x462200)),this['_unlockTransition']();}[_0x5a7686(0xe9)](_0x2d501e){const _0x25df76=_0x5a7686;if(!(this[_0x25df76(0x171)]instanceof P))throw TypeError(_0x25df76(0x322));let _0x87b853=_0x2d501e[_0x25df76(0x350)](_0x37d592=>{const _0x444fd1=_0x25df76;let _0x23b560=this[_0x444fd1(0x195)][_0x444fd1(0x210)]['fetchThroughInterceptors'](this[_0x444fd1(0x195)][_0x444fd1(0x210)]['getInterceptPoints']()[_0x444fd1(0x146)])(_0x37d592[_0x444fd1(0x1c7)],null)||_0x37d592[_0x444fd1(0x1c7)];return{..._0x37d592,'mutations':_0x23b560};});this[_0x25df76(0x241)](),this[_0x25df76(0x2c1)](this[_0x25df76(0x171)][_0x25df76(0xeb)](_0x87b853)),this[_0x25df76(0xd6)]();}[_0x5a7686(0x235)](){const _0x4f72f2=_0x5a7686;this[_0x4f72f2(0x241)](),this[_0x4f72f2(0x2c1)](this[_0x4f72f2(0x171)][_0x4f72f2(0x21e)]()),this[_0x4f72f2(0xd6)]();}[_0x5a7686(0x100)](_0x361525=!0x1){const _0x53ba67=_0x5a7686;this[_0x53ba67(0x241)](),this['_updateState'](this[_0x53ba67(0x171)]['toggleOnline']()),this[_0x53ba67(0xd6)]();let _0x47f9ed=this[_0x53ba67(0x171)];_0x361525&&_0x47f9ed instanceof O&&(this[_0x53ba67(0x241)](),this[_0x53ba67(0x2c1)](_0x47f9ed[_0x53ba67(0x300)]()),this[_0x53ba67(0xd6)]());}async[_0x5a7686(0x2ad)](){return new Promise(_0xd7b60=>{const _0x42ab5e=_0x5741;this[_0x42ab5e(0x118)][_0x42ab5e(0x1d7)][_0x42ab5e(0xf8)]((0x0,i[_0x42ab5e(0x1a5)])(0x1))[_0x42ab5e(0x24b)](async _0x154425=>{const _0x4b9812=_0x42ab5e;_0xd7b60(await this[_0x4b9812(0x2fe)](_0x154425===0x3));});});}['_createHandler'](){let _0xcd833a=this['unitID'];return{'onStateChange':(_0x33c6ee,_0x3bce9e)=>{const _0x3d1605=_0x5741;if(_0x33c6ee!==this[_0x3d1605(0x171)])throw Error(_0x3d1605(0x1bf)+_0x33c6ee[_0x3d1605(0x385)]+'\x0aAfter:\x20'+_0x3bce9e['status']+_0x3d1605(0x27d)+this[_0x3d1605(0x171)][_0x3d1605(0x385)]);this['_updateState'](_0x3bce9e);},'onSendChangeset':_0x262e4e=>{const _0x45ebc1=_0x5741;_0x262e4e[_0x45ebc1(0x34a)]||(_0x262e4e[_0x45ebc1(0x34a)]=this['_changesetSessionId'],_0x262e4e['reqId']=++this['_changesetReqId']);let _0xb758ad={'eventID':e[_0x45ebc1(0xd2)][_0x45ebc1(0x186)],'data':{'unitID':_0x262e4e['unitID'],'unitType':this[_0x45ebc1(0x8a)],'changeset':_0x262e4e,'memberID':this[_0x45ebc1(0x118)][_0x45ebc1(0x2f5)]()}};this[_0x45ebc1(0x118)][_0x45ebc1(0x29f)](_0xb758ad,this[_0x45ebc1(0x17c)]);},'onMissingChangesets':({from:_0x27c851,to:_0x5e5347})=>{const _0x216657=_0x5741;this[_0x216657(0x8f)][_0x216657(0x1b0)](_0x216657(0x9b),_0x216657(0xf0)+_0x27c851+_0x216657(0x2ee)+_0x5e5347);let _0x5f9d6f={'eventID':e[_0x216657(0xd2)][_0x216657(0x224)],'data':{'unitID':_0xcd833a,'unitType':this['_type'],'from':_0x27c851,'to':_0x5e5347}};this[_0x216657(0x118)][_0x216657(0x29f)](_0x5f9d6f,this['unitID']);}};}async[_0x5a7686(0x2fe)](_0x4369fa){const _0x297875=_0x5a7686;var _0x2ac6d5,_0x5a6f4b,_0xe0c2a3;let _0x5a766a=await((_0x2ac6d5=this[_0x297875(0x2a7)])==null?void 0x0:_0x2ac6d5['loadOfflineData'](this[_0x297875(0x17c)])),_0xec46e1=(_0x5a6f4b=_0x5a766a==null?void 0x0:_0x5a766a[_0x297875(0x1c7)])==null?[]:_0x5a6f4b,_0x16b50f=(_0xe0c2a3=_0x5a766a==null?void 0x0:_0x5a766a['awaitingChangeset'])==null?null:_0xe0c2a3,_0x5ce141=!!(_0x16b50f!=null&&_0x16b50f['sid'])&&!!(_0x16b50f!=null&&_0x16b50f[_0x297875(0x2a2)]);this[_0x297875(0x28f)]=_0x5ce141?_0x16b50f[_0x297875(0x34a)]:(0x0,e['uuidv4'])(),this[_0x297875(0x11f)]=_0x5ce141?_0x16b50f[_0x297875(0x2a2)]:0x0;let _0x4dfc96=this[_0x297875(0x17c)];try{this[_0x297875(0x223)](_0x16b50f,_0xec46e1);}catch(_0x117003){this[_0x297875(0x8f)]['error'](_0x117003);}let _0x4d80af=this[_0x297875(0x394)]();if(_0x4369fa){let _0x82a21f=Ue(this['_injector'],_0x4dfc96,this[_0x297875(0x8a)],_0x16b50f,_0xec46e1,_0x4d80af);return _0x82a21f instanceof k?_0x82a21f['_schedule']():(_0x82a21f instanceof j||_0x82a21f instanceof A)&&_0x82a21f[_0x297875(0x1ba)](),_0x82a21f;}return this[_0x297875(0x271)][_0x297875(0x313)](N,_0x4dfc96,this[_0x297875(0x8a)],_0x16b50f,_0xec46e1,_0x4d80af);}['_replayCachedMutations'](_0x5d06c5,_0x1ad601){const _0x1a8133=_0x5a7686;var _0x1abf58,_0x309722;let _0x42d856=this[_0x1a8133(0x195)][_0x1a8133(0x210)][_0x1a8133(0x366)](this['_compressMutationService'][_0x1a8133(0x210)][_0x1a8133(0x193)]()[_0x1a8133(0x146)]);(_0x1abf58=_0x42d856((_0x5d06c5==null?void 0x0:_0x5d06c5['mutations'])||[],null))==null||_0x1abf58[_0x1a8133(0x1de)](_0x44685a=>this[_0x1a8133(0x10d)]['executeCommand'](_0x44685a['id'],_0x44685a[_0x1a8133(0x274)])),(_0x309722=_0x42d856(_0x1ad601||[],null))==null||_0x309722[_0x1a8133(0x1de)](_0x3a4b3b=>this[_0x1a8133(0x10d)][_0x1a8133(0x1e2)](_0x3a4b3b['id'],_0x3a4b3b[_0x1a8133(0x274)]));}};F=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t['Injector'])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],F);let I=class extends F{constructor(_0x4273bc,_0x4b6ef,_0xaee9b6,_0x4f9750,_0x3b972c,_0x3f5a5e,_0x14f988,_0x4cbe68,_0x19531c,_0x1e538a,_0xfbf6fb,_0x5a42a2,_0x1b5d3a,_0x166217,_0x1b7f1d){const _0x279126=_0x5a7686;super(_0x4273bc,_0xaee9b6,_0x4b6ef,_0x4f9750,_0x3b972c,_0x3f5a5e,_0x14f988,_0x4cbe68,_0x19531c,_0x1e538a,_0xfbf6fb,_0x5a42a2,_0x166217,_0x1b7f1d),this['unitID']=_0x4273bc,this[_0x279126(0x234)]=_0x4b6ef,this[_0x279126(0x2a8)]=_0x1b5d3a,g(this,_0x279126(0x36c),null);}[_0x5a7686(0x1f9)](_0x5f05f9){const _0x446ff1=_0x5a7686;this[_0x446ff1(0x36c)]=_0x5f05f9;}[_0x5a7686(0x177)](){const _0x3948e4=_0x5a7686;this['_handlerCallback']=null,super[_0x3948e4(0x177)]();}[_0x5a7686(0x394)](){const _0x165e1a=_0x5a7686;let _0x4cfc6d=super[_0x165e1a(0x394)]();return _0x4cfc6d[_0x165e1a(0x2c7)]=_0x5715c5=>{const _0x23a0d9=_0x165e1a;var _0x19e32b,_0x3356a0;return(_0x19e32b=this[_0x23a0d9(0x36c)])==null||(_0x3356a0=_0x19e32b[_0x23a0d9(0x2c7)])==null?void 0x0:_0x3356a0[_0x23a0d9(0x259)](_0x19e32b,_0x5715c5);},_0x4cfc6d[_0x165e1a(0x32e)]=_0xc0e09d=>{const _0x458117=_0x165e1a;var _0x560966,_0x30f072;return(_0x560966=this['_handlerCallback'])==null||(_0x30f072=_0x560966[_0x458117(0x32e)])==null?void 0x0:_0x30f072[_0x458117(0x259)](_0x560966,_0xc0e09d);},_0x4cfc6d[_0x165e1a(0xb8)]=_0x2760da=>{const _0x1b361e=_0x165e1a;var _0x482ecb,_0x546479;return(_0x482ecb=this[_0x1b361e(0x36c)])==null||(_0x546479=_0x482ecb[_0x1b361e(0xb8)])==null?void 0x0:_0x546479[_0x1b361e(0x259)](_0x482ecb,_0x2760da);},_0x4cfc6d[_0x165e1a(0x206)]=_0x5aa408=>{const _0x242641=_0x165e1a;var _0x5bec35,_0x3d2d0a;return(_0x5bec35=this[_0x242641(0x36c)])==null||(_0x3d2d0a=_0x5bec35['onSyncEditingCollabCursor'])==null?void 0x0:_0x3d2d0a[_0x242641(0x259)](_0x5bec35,_0x5aa408);},_0x4cfc6d[_0x165e1a(0x35c)]=_0x20051a=>{const _0x495d6f=_0x165e1a;var _0x5c3b79,_0x207d60,_0x421518;return(_0x5c3b79=(_0x207d60=this[_0x495d6f(0x36c)])==null||(_0x421518=_0x207d60[_0x495d6f(0x35c)])==null?void 0x0:_0x421518[_0x495d6f(0x259)](_0x207d60,_0x20051a))==null?_0x20051a:_0x5c3b79;},_0x4cfc6d[_0x165e1a(0x2eb)]=_0xc8623e=>{const _0x4c207a=_0x165e1a;var _0xb2dda4,_0x419b69,_0x4eba45;return(_0xb2dda4=(_0x419b69=this[_0x4c207a(0x36c)])==null||(_0x4eba45=_0x419b69['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x4eba45[_0x4c207a(0x259)](_0x419b69,_0xc8623e))==null?_0xc8623e:_0xb2dda4;},_0x4cfc6d;}async['_init'](){const _0x161671=_0x5a7686;let _0x5ddb54=await super[_0x161671(0x194)]();return this[_0x161671(0x17d)](this[_0x161671(0x2a8)][_0x161671(0x214)][_0x161671(0x24b)](_0x215574=>{const _0x5a268b=_0x161671;if(_0x215574==null||_0x215574[_0x5a268b(0x135)]!==this[_0x5a268b(0x17c)])return;let {commandId:_0x46d691,redoState:_0x1ced45,unitId:_0x9e2ca1}=_0x215574,_0x46a44c={'id':_0x46d691,'type':t['CommandType'][_0x5a268b(0x255)],'params':{'unitId':_0x9e2ca1,'actions':_0x1ced45['actions'],'textRanges':null}};this[_0x5a268b(0x37a)](_0x46a44c);})),this[_0x161671(0x17d)](this[_0x161671(0x10d)][_0x161671(0x2db)]((_0x1cfd6e,_0xb8869)=>{const _0x5047df=_0x161671;if(_0x1cfd6e[_0x5047df(0x234)]!==t[_0x5047df(0x2d3)]['MUTATION']||_0xb8869!=null&&_0xb8869[_0x5047df(0x247)]||_0xb8869!=null&&_0xb8869['onlyLocal']||_0x1cfd6e['id']===n[_0x5047df(0x209)]['id'])return;let _0x556300=_0x1cfd6e[_0x5047df(0x274)];if((_0x556300==null?void 0x0:_0x556300[_0x5047df(0x135)])!==this[_0x5047df(0x17c)])return;let _0x142b6d=_0x1cfd6e,_0xb2db94=this[_0x5047df(0x195)][_0x5047df(0x210)][_0x5047df(0x366)](this['_compressMutationService'][_0x5047df(0x210)][_0x5047df(0x193)]()[_0x5047df(0x1e4)])([_0x142b6d],this[_0x5047df(0x104)])||[_0x142b6d];this[_0x5047df(0x37a)](_0xb2db94[0x0]);})),_0x5ddb54;}};I=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t['Inject'])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t[_0x5a7686(0x1c9)])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t[_0x5a7686(0xce)]),v(0xc,(0x0,t[_0x5a7686(0x1c9)])(n[_0x5a7686(0x14e)])),v(0xd,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xe,(0x0,t[_0x5a7686(0xa3)])(S))],I);let L=class extends F{constructor(_0x526cc8,_0x3cb7e5,_0x6022a5,_0x342e60,_0x235dad,_0x50be14,_0x211724,_0x21c934,_0x18af8d,_0x573979,_0xa016b1,_0x42044d,_0x4e06f9,_0x899ffc){const _0x4e43ad=_0x5a7686;super(_0x526cc8,_0x6022a5,_0x3cb7e5,_0x342e60,_0x235dad,_0x50be14,_0x211724,_0x21c934,_0x18af8d,_0x573979,_0xa016b1,_0x42044d,_0x4e06f9,_0x899ffc),this[_0x4e43ad(0x17c)]=_0x526cc8,this['type']=_0x3cb7e5;}async['_init'](){const _0x5cdf63=_0x5a7686;let _0x3bd156=await super['_init']();return this['disposeWithMe'](this[_0x5cdf63(0x10d)]['onMutationExecutedForCollab']((_0x4bde3a,_0x1456f2)=>{const _0xbb9c93=_0x5cdf63;if(_0x4bde3a[_0xbb9c93(0x234)]!==t[_0xbb9c93(0x2d3)][_0xbb9c93(0x255)]||_0x1456f2!=null&&_0x1456f2[_0xbb9c93(0x247)]||_0x1456f2!=null&&_0x1456f2['onlyLocal'])return;let _0x3c73a1=_0x4bde3a['params'];if((_0x3c73a1==null?void 0x0:_0x3c73a1[_0xbb9c93(0x135)])!==this['unitID'])return;let _0x4cfeb9=_0x4bde3a,_0x1db913=this[_0xbb9c93(0x195)][_0xbb9c93(0x210)]['fetchThroughInterceptors'](this[_0xbb9c93(0x195)][_0xbb9c93(0x210)][_0xbb9c93(0x193)]()[_0xbb9c93(0x1e4)])([_0x4cfeb9],this[_0xbb9c93(0x104)])||[_0x4cfeb9];this[_0xbb9c93(0x37a)](_0x1db913[0x0]);})),_0x3bd156;}};L=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t['Inject'])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],L);let R=class extends F{constructor(_0x1b517d,_0x3acaa1,_0x1899e4,_0xa6ac3a,_0x289e82,_0x2b9388,_0x59de08,_0x152294,_0x45dd01,_0x33e226,_0x56e419,_0x327984,_0x59762f,_0xb355ee,_0x147ac0){const _0x946674=_0x5a7686;super(_0x1b517d,_0x1899e4,_0x3acaa1,_0xa6ac3a,_0x289e82,_0x2b9388,_0x59de08,_0x45dd01,_0x33e226,_0x56e419,_0x327984,_0x59762f,_0xb355ee,_0x147ac0),this[_0x946674(0x17c)]=_0x1b517d,this[_0x946674(0x234)]=_0x3acaa1,this['_sheetTransformSelectionsService']=_0x152294;}[_0x5a7686(0x394)](){const _0x22a140=_0x5a7686;let _0x1fb2a4=super[_0x22a140(0x394)]();return _0x1fb2a4[_0x22a140(0xb8)]=_0x4955f9=>this[_0x22a140(0x1b1)][_0x22a140(0x303)](_0x4955f9),_0x1fb2a4;}async[_0x5a7686(0x194)](){const _0x4dbcb6=_0x5a7686;let _0x34588a=await super[_0x4dbcb6(0x194)]();return this[_0x4dbcb6(0x17d)](this[_0x4dbcb6(0x10d)][_0x4dbcb6(0x2db)]((_0x43450a,_0x9e1a27)=>{const _0x233ff5=_0x4dbcb6;if(_0x43450a[_0x233ff5(0x234)]!==t[_0x233ff5(0x2d3)][_0x233ff5(0x255)]||_0x9e1a27!=null&&_0x9e1a27[_0x233ff5(0x247)]||_0x9e1a27!=null&&_0x9e1a27[_0x233ff5(0x11e)])return;let _0x1cba69=_0x43450a[_0x233ff5(0x274)];if((_0x1cba69==null?void 0x0:_0x1cba69[_0x233ff5(0x135)])!==this[_0x233ff5(0x17c)])return;let _0x41d2fc=_0x43450a,_0x3be898=this['_compressMutationService'][_0x233ff5(0x210)][_0x233ff5(0x366)](this[_0x233ff5(0x195)][_0x233ff5(0x210)][_0x233ff5(0x193)]()['COMPRESS_MUTATION_SEND'])([_0x41d2fc],this[_0x233ff5(0x104)])||[_0x41d2fc];this[_0x233ff5(0x37a)](_0x3be898[0x0]);})),_0x34588a;}};R=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t['Inject'])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t['Inject'])(C)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x5a7686(0x2d4)]),v(0xa,t[_0x5a7686(0x2c2)]),v(0xb,t[_0x5a7686(0x170)]),v(0xc,t[_0x5a7686(0xce)]),v(0xd,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xe,(0x0,t[_0x5a7686(0xa3)])(S))],R);let z=class extends F{constructor(_0x304f02,_0x28ec71,_0x1e98a4,_0x18af92,_0x55dc1d,_0x511b5f,_0x5ec6a6,_0x34a866,_0x484d09,_0x3443f7,_0x53a136,_0xad8d03,_0x1a703e,_0x4f5b39){const _0xb2af16=_0x5a7686;super(_0x304f02,_0x1e98a4,_0x28ec71,_0x18af92,_0x55dc1d,_0x511b5f,_0x5ec6a6,_0x34a866,_0x484d09,_0x3443f7,_0x53a136,_0xad8d03,_0x1a703e,_0x4f5b39),this[_0xb2af16(0x17c)]=_0x304f02,this['type']=_0x28ec71;}async[_0x5a7686(0x194)](){const _0x332de4=_0x5a7686;let _0x2b4ee7=await super[_0x332de4(0x194)]();return this[_0x332de4(0x17d)](this['_commandService']['onMutationExecutedForCollab']((_0x59cba4,_0x1b6620)=>{const _0x322417=_0x332de4;if(_0x59cba4[_0x322417(0x234)]!==t[_0x322417(0x2d3)][_0x322417(0x255)]||_0x1b6620!=null&&_0x1b6620[_0x322417(0x247)]||_0x1b6620!=null&&_0x1b6620[_0x322417(0x11e)])return;let _0x202d70=_0x59cba4[_0x322417(0x274)];if((_0x202d70==null?void 0x0:_0x202d70['unitId'])!==this[_0x322417(0x17c)])return;let _0xc4957f=_0x59cba4,_0x19e1da=this['_compressMutationService']['interceptor'][_0x322417(0x366)](this[_0x322417(0x195)]['interceptor'][_0x322417(0x193)]()[_0x322417(0x1e4)])([_0xc4957f],this['_univerInstanceService'])||[_0xc4957f];this['_onLocalMutation'](_0x19e1da[0x0]);})),_0x2b4ee7;}};z=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t['ILogService']),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t['Optional'])(S))],z);let B=class extends F{constructor(_0x155b8b,_0x54bbd0,_0x39c0ae,_0x4d1cfd,_0x52e485,_0xfb27b9,_0x59fdcc,_0x1fed3e,_0x413b26,_0x318765,_0x3749ca,_0x35d460,_0x697a8b,_0x2740fd){const _0x4c3a86=_0x5a7686;super(_0x155b8b,_0x39c0ae,_0x54bbd0,_0x4d1cfd,_0x52e485,_0xfb27b9,_0x59fdcc,_0x1fed3e,_0x413b26,_0x318765,_0x3749ca,_0x35d460,_0x697a8b,_0x2740fd),this['unitID']=_0x155b8b,this[_0x4c3a86(0x234)]=_0x54bbd0;}async[_0x5a7686(0x194)](){const _0x1f3805=_0x5a7686;let _0x17a7b6=await super[_0x1f3805(0x194)]();return this[_0x1f3805(0x17d)](this['_commandService'][_0x1f3805(0x2db)]((_0x246c43,_0x496f50)=>{const _0x1eb305=_0x1f3805;if(_0x246c43[_0x1eb305(0x234)]!==t['CommandType'][_0x1eb305(0x255)]||_0x496f50!=null&&_0x496f50['fromCollab']||_0x496f50!=null&&_0x496f50[_0x1eb305(0x11e)])return;let _0x38aae0=_0x246c43[_0x1eb305(0x274)];if((_0x38aae0==null?void 0x0:_0x38aae0[_0x1eb305(0x135)])!==this['unitID'])return;let _0x252f4b=_0x246c43,_0x59306f=this['_compressMutationService'][_0x1eb305(0x210)][_0x1eb305(0x366)](this[_0x1eb305(0x195)][_0x1eb305(0x210)][_0x1eb305(0x193)]()[_0x1eb305(0x1e4)])([_0x252f4b],this[_0x1eb305(0x104)])||[_0x252f4b];this[_0x1eb305(0x37a)](_0x59306f[0x0]);})),_0x17a7b6;}};B=y([v(0x3,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t['LocaleService'])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t['ICommandService']),v(0xb,t[_0x5a7686(0xce)]),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],B);const We=(0x0,t[_0x5a7686(0x364)])('univer-pro.collaboration-client.network-condition.service');function Ge(_0x2e3592){const _0x4b35b3=_0x5a7686;let _0x4d96b8=_0x2e3592[_0x4b35b3(0x21f)],_0x1c104c=JSON[_0x4b35b3(0x23f)](_0x4d96b8);switch(_0x1c104c[_0x4b35b3(0x29e)]){case a['CombCmd'][_0x4b35b3(0x80)]:case a[_0x4b35b3(0x180)][_0x4b35b3(0xd4)]:{let _0x5940b9=_0x1c104c[_0x4b35b3(0x2e8)];return{..._0x1c104c,'data':_0x5940b9,'cmd':_0x1c104c[_0x4b35b3(0x29e)]};}case a[_0x4b35b3(0x180)]['JOIN']:{let _0x208dc9=_0x1c104c[_0x4b35b3(0x325)];return{..._0x1c104c,'data':_0x208dc9,'cmd':_0x1c104c[_0x4b35b3(0x29e)]};}case a[_0x4b35b3(0x180)][_0x4b35b3(0x38f)]:{let _0x136c0e=_0x1c104c[_0x4b35b3(0x21b)];switch(_0x136c0e[_0x4b35b3(0x25a)]){case e[_0x4b35b3(0xd2)][_0x4b35b3(0x249)]:var _0x1b9ada;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x1b9ada=_0x136c0e[_0x4b35b3(0x1b8)])==null?void 0x0:_0x1b9ada['cs']},'cmd':_0x1c104c['cmd']};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x220)]:var _0x5d1313;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x5d1313=_0x136c0e[_0x4b35b3(0x266)])==null?void 0x0:_0x5d1313['cs']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x368)]:var _0x33b183;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x33b183=_0x136c0e[_0x4b35b3(0x1c2)])==null?void 0x0:_0x33b183['cs']},'cmd':_0x1c104c['cmd']};case e['CollaborationEvent'][_0x4b35b3(0xb3)]:var _0x26f6ce;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x26f6ce=_0x136c0e[_0x4b35b3(0x2ac)])==null?void 0x0:_0x26f6ce['cs']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x11a)]:var _0x40d546;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x40d546=_0x136c0e[_0x4b35b3(0x27a)])==null?void 0x0:_0x40d546['cs']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0xd0)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0xb7)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e['CollaborationEvent']['USERS_ENTER']:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x37b)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x238)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x2cd)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0xbb)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x263)]},'cmd':_0x1c104c['cmd']};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x265)]:case e[_0x4b35b3(0xd2)][_0x4b35b3(0x267)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x33c)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e['CollaborationEvent'][_0x4b35b3(0x213)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e['liveShareNewHost']},'cmd':_0x1c104c['cmd']};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x314)]:return{..._0x1c104c,'data':_0x136c0e,'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e['CollaborationEvent'][_0x4b35b3(0x120)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x88)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x305)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x2e0)]},'cmd':_0x1c104c['cmd']};case e['CollaborationEvent'][_0x4b35b3(0x141)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x1ca)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x28c)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e['uniscriptRunEvent']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};default:return _0x1c104c;}}default:return _0x1c104c;}}function Ke(_0x5730ac){const _0x14a44b=_0x5a7686;switch(_0x5730ac['cmd']){case a[_0x14a44b(0x180)][_0x14a44b(0x80)]:case a[_0x14a44b(0x180)][_0x14a44b(0xd4)]:return JSON[_0x14a44b(0x121)]({'cmd':_0x5730ac[_0x14a44b(0x29e)],'routeKey':_0x5730ac[_0x14a44b(0x2d6)]});case a['CombCmd'][_0x14a44b(0x92)]:{let _0x3c16d1;switch(_0x5730ac[_0x14a44b(0x21f)]['eventID']){case e[_0x14a44b(0xd2)][_0x14a44b(0xd0)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0xd0)],'updateCursorEvent':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e['CollaborationEvent'][_0x14a44b(0x238)]:_0x3c16d1={'eventID':e['CollaborationEvent'][_0x14a44b(0x238)],'leaveEvent':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e[_0x14a44b(0xd2)][_0x14a44b(0x237)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0x237)],'joinEvent':_0x5730ac[_0x14a44b(0x21f)]['data']};break;case e[_0x14a44b(0xd2)][_0x14a44b(0xbb)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0xbb)],'liveShareNewHost':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e[_0x14a44b(0xd2)][_0x14a44b(0x267)]:_0x3c16d1={'eventID':e['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e['CollaborationEvent']['LIVESHARE_TERMINATE']:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e['CollaborationEvent'][_0x14a44b(0x10f)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0x10f)],'liveShareRequestHost':_0x5730ac[_0x14a44b(0x21f)]['data']};break;case e[_0x14a44b(0xd2)][_0x14a44b(0x265)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0x265)]};break;default:_0x3c16d1={'eventID':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x25a)]};}return JSON[_0x14a44b(0x121)]({'cmd':_0x5730ac['cmd'],'routeKey':_0x5730ac[_0x14a44b(0x2d6)],'collaMsg':_0x3c16d1});}case a[_0x14a44b(0x180)][_0x14a44b(0x1ea)]:return JSON[_0x14a44b(0x121)]({'cmd':_0x5730ac[_0x14a44b(0x29e)],'routeKey':_0x5730ac['routeKey'],'joinReq':_0x5730ac[_0x14a44b(0x21f)]});case a[_0x14a44b(0x180)][_0x14a44b(0xe6)]:return JSON['stringify']({'cmd':_0x5730ac[_0x14a44b(0x29e)],'routeKey':_0x5730ac['routeKey'],'leaveReq':_0x5730ac[_0x14a44b(0x21f)]});default:throw Error(_0x14a44b(0x16e));}}const qe=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x36b));function Je(_0xaa2cc,_0x189e94,_0x4cea2c){const _0x471c5a=_0x5a7686;return _0xaa2cc+'/'+_0x189e94+_0x471c5a(0x9c)+_0x4cea2c+_0x471c5a(0x2b9);}let Ye=class extends t[_0x5a7686(0x117)]{constructor(_0x2f875d,_0x2f7157,_0x179096,_0x4b09e3,_0x313e54){const _0x544e74=_0x5a7686;super(),this[_0x544e74(0x271)]=_0x2f875d,this[_0x544e74(0x8c)]=_0x2f7157,this[_0x544e74(0x16d)]=_0x179096,this[_0x544e74(0x8f)]=_0x4b09e3,this[_0x544e74(0xb5)]=_0x313e54;}[_0x5a7686(0x2c0)](_0x4f3235){const _0x1bbad2=_0x5a7686;let _0x5de049=this[_0x1bbad2(0x271)][_0x1bbad2(0x1b7)](l[_0x1bbad2(0x197)]);if(!_0x5de049)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x164810=_0x5de049[_0x1bbad2(0x251)](_0x4f3235);if(!_0x164810)throw Error(_0x1bbad2(0x2a6));let _0x2ed2a2=new t['DisposableCollection'](),_0x327c18=new i[(_0x1bbad2(0x340))]();_0x2ed2a2[_0x1bbad2(0x1f2)](_0x164810[_0x1bbad2(0x367)][_0x1bbad2(0x24b)](_0x5a3277=>_0x327c18['next'](_0x5a3277))),_0x2ed2a2[_0x1bbad2(0x1f2)]((0x0,t[_0x1bbad2(0x166)])(()=>_0x327c18[_0x1bbad2(0x1fa)]()));let _0x541d7d=new i[(_0x1bbad2(0x340))]();_0x2ed2a2[_0x1bbad2(0x1f2)](_0x164810['error$'][_0x1bbad2(0x24b)](_0x43f9ca=>_0x541d7d['next'](_0x43f9ca))),_0x2ed2a2[_0x1bbad2(0x1f2)]((0x0,t[_0x1bbad2(0x166)])(()=>_0x541d7d[_0x1bbad2(0x1fa)]()));let _0x31ed64=new i[(_0x1bbad2(0x340))]();_0x2ed2a2[_0x1bbad2(0x1f2)](_0x164810[_0x1bbad2(0x16c)][_0x1bbad2(0x24b)](_0x3e49a8=>{const _0x363d8e=_0x1bbad2;let _0x319c70=Ge(_0x3e49a8);_0x31ed64[_0x363d8e(0x1eb)](_0x319c70);})),_0x2ed2a2[_0x1bbad2(0x1f2)]((0x0,t['toDisposable'])(()=>_0x31ed64[_0x1bbad2(0x1fa)]()));let _0x5e4449,_0x91eff6=()=>{const _0x528b40=_0x1bbad2;_0x541d7d[_0x528b40(0x1eb)](new Event(_0x528b40(0x99))),_0x327c18[_0x528b40(0x1eb)](new Event(_0x528b40(0x99))),_0x5e4449['close']();};return _0x5e4449={'memberID':'','close$':_0x327c18[_0x1bbad2(0xea)](),'error$':_0x541d7d[_0x1bbad2(0xea)](),'open$':_0x164810['open$'],'message$':_0x31ed64[_0x1bbad2(0xea)](),'send':_0x31f789=>{const _0x1089c6=_0x1bbad2;if(_0x31f789[_0x1089c6(0x29e)]===a[_0x1089c6(0x180)][_0x1089c6(0x92)]){if(_0x31f789[_0x1089c6(0x21f)][_0x1089c6(0x25a)]===e[_0x1089c6(0xd2)][_0x1089c6(0x186)]){this['_submitChangeset'](_0x5e4449,_0x31f789[_0x1089c6(0x21f)])[_0x1089c6(0x198)](_0x3c6cd6=>{const _0xe0fe84=_0x1089c6;this['_logService'][_0xe0fe84(0x36a)](_0x3c6cd6),_0x91eff6();});return;}if(_0x31f789['data'][_0x1089c6(0x25a)]===e[_0x1089c6(0xd2)][_0x1089c6(0x224)]){let _0x436f16=_0x31f789['data'];this[_0x1089c6(0x114)](_0x436f16)['then'](_0x401c1b=>{const _0x524362=_0x1089c6;_0x31ed64[_0x524362(0x1eb)]({'cmd':a[_0x524362(0x180)][_0x524362(0x38f)],'code':a[_0x524362(0x1ae)]['OK'],'routeKey':_0x436f16[_0x524362(0x21f)][_0x524362(0x17c)],'routeType':'','data':{'eventID':e[_0x524362(0xd2)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x401c1b}}});})['catch'](_0x1a251c=>{const _0x42d45f=_0x1089c6;this['_logService'][_0x42d45f(0x36a)](_0x1a251c),_0x91eff6();});return;}}_0x164810[_0x1089c6(0x29f)](Ke(_0x31f789));},'close':()=>{const _0x28a07e=_0x1bbad2;_0x164810[_0x28a07e(0x240)](),_0x2ed2a2[_0x28a07e(0x177)]();}},_0x5e4449;}async[_0x5a7686(0x110)](_0x4eb18d,_0x43b568){const _0x4fc138=_0x5a7686;var _0x5776ee;let {unitType:_0x22cecf,unitID:_0x5f2613,changeset:_0x501cfd}=_0x43b568[_0x4fc138(0x21f)],_0x5cadbf={'unitID':_0x5f2613,'memberID':_0x4eb18d[_0x4fc138(0x30d)],'type':_0x22cecf,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x501cfd)},_0x57489a=this[_0x4fc138(0x16d)]['getConfig'](m),_0x576556=Je((_0x5776ee=_0x57489a==null?void 0x0:_0x57489a[_0x4fc138(0x321)])==null?_0x4fc138(0x25b):_0x5776ee,_0x22cecf,_0x5f2613);try{await this['_httpService'][_0x4fc138(0x9f)](_0x576556,{'body':_0x5cadbf});}catch(_0x5817a0){throw this[_0x4fc138(0x8f)]['error'](_0x4fc138(0x187),_0x4fc138(0x1c0)),_0x5817a0;}}async[_0x5a7686(0x114)](_0x4f3b17){const _0x1c85d6=_0x5a7686;let {unitID:_0x580db4,from:_0x30e9ce,to:_0x1354dc,unitType:_0x3d977f}=_0x4f3b17['data'];return(await this['_snapshotServerService'][_0x1c85d6(0x1c8)]({'metadata':void 0x0},{'unitID':_0x580db4,'type':_0x3d977f,'from':_0x30e9ce,'to':_0x1354dc}))[_0x1c85d6(0x2f8)]['map'](_0x307400=>((_0x307400[_0x1c85d6(0x1c7)]===null||_0x307400[_0x1c85d6(0x1c7)]===void 0x0)&&(_0x307400[_0x1c85d6(0x1c7)]=[]),_0x307400));}};Ye=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x2,t['IConfigService']),v(0x3,t[_0x5a7686(0x2c2)]),v(0x4,e[_0x5a7686(0x387)])],Ye);const Xe=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x2c8));function Ze(_0x57dbe6={}){const _0x36c809=_0x5a7686;return _0x57dbe6[_0x36c809(0x280)]?{'resolveUnit':_0x57dbe6['resolveUnit']}:{'resolveUnit':_0x1f097e=>({'target':{'unitId':_0x1f097e[_0x36c809(0x135)],'unitType':_0x1f097e[_0x36c809(0x29c)]}})};}function Qe(_0x48cf37,_0x2967cb,_0x219301){const _0xce6850=_0x5a7686;var _0x4eb876;let _0x34255a=_0x219301[_0xce6850(0xbd)][_0xce6850(0x1cb)];if(_0x34255a!=null&&_0x34255a[_0xce6850(0x89)]()==='')throw Error(_0xce6850(0x2a9));if(!_0x219301[_0xce6850(0xbd)][_0xce6850(0x135)])throw Error(_0xce6850(0x215));return{'localUnitId':_0x48cf37,'unitType':_0x2967cb,'target':{'endpoint':_0x34255a,'unitId':_0x219301[_0xce6850(0xbd)][_0xce6850(0x135)],'unitType':(_0x4eb876=_0x219301['target']['unitType'])==null?_0x2967cb:_0x4eb876},'changeset':_0x219301['changeset']};}let V=class extends t[_0x5a7686(0x117)]{constructor(_0x3784da,_0x42d536,_0x24a6e2,_0x3aa7ef,_0x3e2b61,_0x3360ae,_0x8b57e2){const _0x15d9fa=_0x5a7686;super(),this['_injector']=_0x3784da,this[_0x15d9fa(0x8f)]=_0x42d536,this[_0x15d9fa(0x16d)]=_0x24a6e2,this[_0x15d9fa(0x20d)]=_0x3aa7ef,this[_0x15d9fa(0x12c)]=_0x3e2b61,this[_0x15d9fa(0x2aa)]=_0x3360ae,this[_0x15d9fa(0x343)]=_0x8b57e2,g(this,'_sessions',new Map()),g(this,_0x15d9fa(0x18e),new Map()),g(this,'_sessionChannels',new Map()),g(this,_0x15d9fa(0x256),new Map()),g(this,'socket$',this['_getSocketChannel'](void 0x0)['socket$'][_0x15d9fa(0xea)]()),g(this,_0x15d9fa(0x2e3),new i[(_0x15d9fa(0x334))](0x0)),g(this,_0x15d9fa(0x2e2),this['_status$']['asObservable']()),this[_0x15d9fa(0xbe)]();}[_0x5a7686(0xbe)](){const _0x551eec=_0x5a7686;this['_networkConditionService']&&this[_0x551eec(0x17d)](this['_networkConditionService'][_0x551eec(0x217)]['subscribe'](_0x120d09=>{const _0x5074c0=_0x551eec;_0x120d09&&this['reconnect'](),_0x120d09||this[_0x5074c0(0x256)]['forEach'](_0x1bf7f0=>this[_0x5074c0(0x389)](_0x1bf7f0));}));}[_0x5a7686(0x177)](){const _0x133e55=_0x5a7686;super[_0x133e55(0x177)](),this[_0x133e55(0x256)][_0x133e55(0x1de)](_0x4688d3=>{const _0x205686=_0x133e55;var _0x447ee5,_0x22e85a;(_0x447ee5=_0x4688d3[_0x205686(0xf9)])==null||_0x447ee5[_0x205686(0x393)](),_0x4688d3['socketMessageSubscription']=null,this[_0x205686(0x2d8)](_0x4688d3),this[_0x205686(0x253)](_0x4688d3),this[_0x205686(0x1bb)](_0x4688d3),(_0x22e85a=_0x4688d3['socket$'][_0x205686(0x1d1)]())==null||_0x22e85a[_0x205686(0x240)](),_0x4688d3[_0x205686(0x330)][_0x205686(0x1fa)]();}),this[_0x133e55(0x256)][_0x133e55(0x384)](),this[_0x133e55(0x2f1)][_0x133e55(0x1de)](_0x581ef6=>_0x581ef6[_0x133e55(0x177)]()),this[_0x133e55(0x2f1)]['clear'](),this[_0x133e55(0x382)][_0x133e55(0x384)](),this[_0x133e55(0x2e3)][_0x133e55(0x1fa)]();}async[_0x5a7686(0x295)](_0x263382,_0x879c87){const _0x40e611=_0x5a7686;if(this[_0x40e611(0x2f1)][_0x40e611(0xbf)](_0x263382))return this['_sessions'][_0x40e611(0x1b7)](_0x263382);let _0x535b78=this[_0x40e611(0x18e)][_0x40e611(0x1b7)](_0x263382);if(_0x535b78)return _0x535b78;let _0x49f367=this[_0x40e611(0x112)](_0x263382,_0x879c87);this[_0x40e611(0x18e)][_0x40e611(0x22c)](_0x263382,_0x49f367);try{return await _0x49f367;}finally{this[_0x40e611(0x18e)]['delete'](_0x263382);}}async['_createSession'](_0x409946,_0x56a252){const _0x24bf5e=_0x5a7686;let _0xfb500d=await this[_0x24bf5e(0x148)](_0x409946,_0x56a252),_0x4f67d2=this[_0x24bf5e(0x23b)](_0xfb500d['target'][_0x24bf5e(0x1cb)]);this[_0x24bf5e(0x37e)](_0x4f67d2);let _0x426892=this[_0x24bf5e(0x271)][_0x24bf5e(0x313)](x,_0xfb500d,_0x4f67d2['socket$'][_0x24bf5e(0xea)]());return this[_0x24bf5e(0x2f1)][_0x24bf5e(0x22c)](_0x409946,_0x426892),this[_0x24bf5e(0x382)][_0x24bf5e(0x22c)](_0x409946,_0x4f67d2[_0x24bf5e(0x22b)]),_0x426892;}['closeSession'](_0x139310){const _0x27cc45=_0x5a7686;let _0x360ddc=this[_0x27cc45(0x2f1)][_0x27cc45(0x1b7)](_0x139310),_0x54b042=this[_0x27cc45(0x382)]['get'](_0x139310);if(_0x360ddc&&(this[_0x27cc45(0x2f1)][_0x27cc45(0x36f)](_0x139310),this[_0x27cc45(0x382)][_0x27cc45(0x36f)](_0x139310),_0x360ddc[_0x27cc45(0x240)]()),_0x54b042&&!this[_0x27cc45(0x1fb)](_0x54b042)){var _0xd81916;let _0x36e4de=this[_0x27cc45(0x256)][_0x27cc45(0x1b7)](_0x54b042);_0x36e4de==null||(_0xd81916=_0x36e4de['socket$']['getValue']())==null||_0xd81916[_0x27cc45(0x240)]();}}['reconnect'](){const _0x26d4d8=_0x5a7686;(this[_0x26d4d8(0x256)][_0x26d4d8(0x257)]?[...this[_0x26d4d8(0x256)]['values']()]:[this[_0x26d4d8(0x23b)](void 0x0)])[_0x26d4d8(0x1de)](_0x188b53=>{const _0x408af4=_0x26d4d8;_0x188b53[_0x408af4(0xdb)]=0x0,this[_0x408af4(0x2d8)](_0x188b53),this['_tryReconnect'](_0x188b53);});}[_0x5a7686(0x2d8)](_0x185d9c){const _0x2e7776=_0x5a7686;_0x185d9c[_0x2e7776(0x38d)]!=null&&(clearTimeout(_0x185d9c[_0x2e7776(0x38d)]),_0x185d9c['retryConnectingTimer']=null);}async[_0x5a7686(0x10c)](_0x49710f){const _0x49162d=_0x5a7686;var _0x44dff1,_0x1979cd;let _0x32c0b2=this['_configService'][_0x49162d(0x34b)](m),_0x57be82=(_0x44dff1=(_0x1979cd=_0x49710f[_0x49162d(0x1cb)])==null?_0x32c0b2==null?void 0x0:_0x32c0b2[_0x49162d(0xff)]:_0x1979cd)==null?te:_0x44dff1,_0x2e07d3=await this[_0x49162d(0x20d)]['createSocket'](_0x57be82);return _0x49710f['candidateSocket']=_0x2e07d3,_0x2e07d3;}async[_0x5a7686(0x37e)](_0x410a7d){const _0x102939=_0x5a7686;try{var _0x2c7e9b,_0x5a7f87;let _0x33f8ab=(_0x2c7e9b=(_0x5a7f87=_0x410a7d[_0x102939(0x330)][_0x102939(0x1d1)]())==null?_0x410a7d[_0x102939(0xe1)]:_0x5a7f87)==null?await this[_0x102939(0x10c)](_0x410a7d):_0x2c7e9b;if(_0x33f8ab){var _0x470e75;let _0x3e9b92=_0x33f8ab['send'];_0x33f8ab[_0x102939(0x29f)]=_0x14d1b9=>(_0x14d1b9[_0x102939(0x29e)]!==a['CombCmd'][_0x102939(0xe6)]&&this[_0x102939(0x163)](_0x410a7d),_0x3e9b92['apply'](_0x33f8ab,[_0x14d1b9])),(_0x470e75=_0x410a7d[_0x102939(0xf9)])==null||_0x470e75[_0x102939(0x393)](),_0x410a7d[_0x102939(0xf9)]=null,_0x410a7d[_0x102939(0xf9)]=_0x33f8ab[_0x102939(0x16c)][_0x102939(0x24b)](_0xa424d1=>this['_onMessage'](_0x410a7d,_0x33f8ab,_0xa424d1)),_0x33f8ab[_0x102939(0x285)][_0x102939(0xf8)]((0x0,s['take'])(0x1))[_0x102939(0x24b)](_0x446408=>this[_0x102939(0x8f)][_0x102939(0x36a)](_0x102939(0x21a),_0x446408)),_0x33f8ab[_0x102939(0x200)]['pipe']((0x0,s[_0x102939(0x1a5)])(0x1))[_0x102939(0x24b)](()=>{this['_onConnectionOpen'](_0x410a7d,_0x33f8ab);}),_0x33f8ab['close$'][_0x102939(0xf8)]((0x0,s[_0x102939(0x1a5)])(0x1))[_0x102939(0x24b)](_0x198616=>{const _0x13a79d=_0x102939;this['_logService'][_0x13a79d(0x1b0)](_0x13a79d(0x122),_0x13a79d(0x28e),_0x198616),this[_0x13a79d(0x20f)](_0x410a7d);});}}catch(_0x36f211){this[_0x102939(0x8f)][_0x102939(0x36a)](_0x36f211),this[_0x102939(0x20f)](_0x410a7d);}}[_0x5a7686(0x2fd)](_0x37e378,_0x46fb12){const _0x2289cb=_0x5a7686;this[_0x2289cb(0x8f)]['debug'](_0x2289cb(0x122),_0x2289cb(0x2e7)),_0x46fb12[_0x2289cb(0x29f)]({'cmd':a[_0x2289cb(0x180)][_0x2289cb(0xd4)]}),this[_0x2289cb(0x163)](_0x37e378);}[_0x5a7686(0x389)](_0x3a818a){const _0x49c44a=_0x5a7686;_0x3a818a[_0x49c44a(0x2ea)]=!0x1,_0x3a818a[_0x49c44a(0xe1)]=null,this[_0x49c44a(0x2e3)][_0x49c44a(0x1eb)](0x2),_0x3a818a[_0x49c44a(0x330)]['next'](null),this[_0x49c44a(0x253)](_0x3a818a),this[_0x49c44a(0x1bb)](_0x3a818a);}[_0x5a7686(0x20f)](_0x4353aa){const _0x203544=_0x5a7686;var _0x424d0d;this[_0x203544(0x389)](_0x4353aa),this[_0x203544(0x1fb)](_0x4353aa['endpointKey'])&&(_0x4353aa[_0x203544(0xdb)]<((_0x424d0d=this[_0x203544(0x16d)][_0x203544(0x34b)](_0x203544(0x31e)))==null?0x3:_0x424d0d)?(this[_0x203544(0x12c)][_0x203544(0x388)]({'id':_0x203544(0x181)}),this[_0x203544(0x35a)](_0x4353aa)):this[_0x203544(0x12c)][_0x203544(0x388)]({'id':_0x203544(0x199)}));}[_0x5a7686(0x35a)](_0xa3a944){const _0x40f632=_0x5a7686;var _0x4c591f;let _0x3b9a4f=_0xa3a944[_0x40f632(0xdb)],_0x525848=this[_0x40f632(0x16d)]['getConfig'](m),_0x3021c9=_0x3b9a4f===0x0?0x0:((_0x4c591f=_0x525848==null?void 0x0:_0x525848[_0x40f632(0x1a7)])==null?0x4e20:_0x4c591f)*0x2**_0x3b9a4f;_0xa3a944[_0x40f632(0x38d)]=setTimeout(()=>{const _0xea96c9=_0x40f632;clearTimeout(_0xa3a944[_0xea96c9(0x38d)]),_0xa3a944['retryConnectingTimer']=null,this['_tryEnsureSocket'](_0xa3a944);},_0x3021c9),_0xa3a944['retryCount']+=0x1;}async[_0x5a7686(0x148)](_0x396b5a,_0x322715){const _0x2d1b0b=_0x5a7686;return Qe(_0x396b5a,_0x322715,await this[_0x2d1b0b(0x2aa)][_0x2d1b0b(0x280)]({'unitId':_0x396b5a,'unitType':_0x322715}));}[_0x5a7686(0x344)](_0x575a55,_0x36d763,_0x522f8e){const _0x56913c=_0x5a7686;let {cmd:_0x44228b}=_0x522f8e;_0x44228b===a[_0x56913c(0x180)][_0x56913c(0xd4)]&&!_0x575a55['socketReady']&&(_0x36d763[_0x56913c(0x30d)]=_0x522f8e['data'][_0x56913c(0x30d)],_0x575a55[_0x56913c(0x330)][_0x56913c(0x1eb)](_0x36d763),this['_status$'][_0x56913c(0x1eb)](0x3),_0x575a55[_0x56913c(0x2ea)]=!0x0,_0x575a55['candidateSocket']=null),_0x44228b===a['CombCmd'][_0x56913c(0x80)]&&this['_clearTimeoutTimer'](_0x575a55),this['_rescheduleHeartbeat'](_0x575a55);}[_0x5a7686(0x1fb)](_0x4c1267){const _0x3172fe=_0x5a7686;return[...this[_0x3172fe(0x382)]['values']()][_0x3172fe(0x165)](_0x416702=>_0x416702===_0x4c1267);}[_0x5a7686(0x23b)](_0x3ecd18){const _0x2684c1=_0x5a7686;let _0x110444=_0x3ecd18==null?'':_0x3ecd18,_0x4acef6=this['_socketChannels'][_0x2684c1(0x1b7)](_0x110444);if(_0x4acef6)return _0x4acef6;let _0x36814d={'endpointKey':_0x110444,'endpoint':_0x3ecd18,'socket$':new i['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x2684c1(0x22c)](_0x110444,_0x36814d),_0x36814d;}[_0x5a7686(0x163)](_0x2bc293){const _0x343da1=_0x5a7686;var _0x5e1152;this[_0x343da1(0x1bb)](_0x2bc293),_0x2bc293['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2bc293),(_0x5e1152=this['_configService'][_0x343da1(0x34b)](_0x343da1(0xc9)))==null?0x7530:_0x5e1152);}['_sendHeartbeat'](_0x3ba396){const _0x335e0e=_0x5a7686;_0x3ba396[_0x335e0e(0x330)][_0x335e0e(0x1d1)]()['send']({'cmd':a[_0x335e0e(0x180)][_0x335e0e(0x80)]}),this['_waitForHeartbeatResponse'](_0x3ba396);}[_0x5a7686(0x312)](_0x393746){const _0x100243=_0x5a7686;var _0x3d1d22;_0x393746[_0x100243(0x7d)]=setTimeout(()=>this[_0x100243(0x20f)](_0x393746),(_0x3d1d22=this[_0x100243(0x16d)]['getConfig'](_0x100243(0xe4)))==null?ne:_0x3d1d22);}['_clearHeartbeatTimer'](_0x4faa06){const _0x4f48a5=_0x5a7686;_0x4faa06[_0x4f48a5(0x27b)]!=null&&(clearTimeout(_0x4faa06[_0x4f48a5(0x27b)]),_0x4faa06[_0x4f48a5(0x27b)]=null);}[_0x5a7686(0x253)](_0x18e742){const _0x341580=_0x5a7686;_0x18e742[_0x341580(0x7d)]!=null&&(clearTimeout(_0x18e742[_0x341580(0x7d)]),_0x18e742[_0x341580(0x7d)]=null);}};V=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,t[_0x5a7686(0x2c2)]),v(0x2,t[_0x5a7686(0x298)]),v(0x3,qe),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x5a7686(0xa3)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x3ed476,_0x37c38b,_0x25222f,_0x851906){const _0x214d5f=_0x5a7686;var _0x1c5067;super(),this[_0x214d5f(0x271)]=_0x3ed476,this[_0x214d5f(0x35b)]=_0x37c38b,this[_0x214d5f(0x16d)]=_0x25222f,this[_0x214d5f(0x104)]=_0x851906,g(this,'_entities',new Map()),g(this,'_entityInit$',new i[(_0x214d5f(0x340))]()),g(this,_0x214d5f(0x2bd),this[_0x214d5f(0x381)][_0x214d5f(0xea)]()),((_0x1c5067=this[_0x214d5f(0x16d)]['getConfig'](_0x214d5f(0x159)))==null?void 0x0:_0x1c5067[_0x214d5f(0x2da)])!==!0x1&&this['_init']();}[_0x5a7686(0x177)](){const _0x58e4f1=_0x5a7686;super[_0x58e4f1(0x177)](),this['_entities'][_0x58e4f1(0x1de)](_0x594d54=>_0x594d54['dispose']()),this[_0x58e4f1(0x1c5)][_0x58e4f1(0x384)]();}['getCollabEntity'](_0xfd7be1){const _0x13ffa8=_0x5a7686;var _0xea993c;return(_0xea993c=this[_0x13ffa8(0x1c5)][_0x13ffa8(0x1b7)](_0xfd7be1))==null?null:_0xea993c;}[_0x5a7686(0x294)](_0x238239){const _0x34fd7b=_0x5a7686;let _0xcbb7b0=this[_0x34fd7b(0x37d)](_0x238239);return _0xcbb7b0?(0x0,i['of'])(_0xcbb7b0):this['_entityInit$'][_0x34fd7b(0xf8)]((0x0,s[_0x34fd7b(0x18a)])(_0x2e63e5=>_0x2e63e5[_0x34fd7b(0x17c)]===_0x238239));}[_0x5a7686(0x359)](_0x5e85ad){const _0x2022a6=_0x5a7686;return(0x0,i[_0x2022a6(0x1d6)])(this[_0x2022a6(0x294)](_0x5e85ad)['pipe']((0x0,s['map'])(()=>void 0x0)));}['_init'](){const _0x2336ee=_0x5a7686;this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)]['UNIVER_SHEET'])[_0x2336ee(0xf8)]((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0x24b)](async _0x5f313c=>{const _0x3bdd29=_0x2336ee;let _0x4cee59=_0x5f313c[_0x3bdd29(0x1c3)][_0x3bdd29(0x250)](),_0x51c0f3=await this[_0x3bdd29(0x29a)](_0x4cee59,t['UniverInstanceType']['UNIVER_SHEET']);this[_0x3bdd29(0x1c5)]['set'](_0x4cee59,_0x51c0f3);}),this[_0x2336ee(0x104)]['getTypeOfUnitAdded$'](t[_0x2336ee(0x2e9)][_0x2336ee(0x301)])[_0x2336ee(0xf8)]((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0xf8)]((0x0,s['filter'])(_0x1d2340=>!_0x1d2340[_0x2336ee(0x1c3)][_0x2336ee(0x250)]()[_0x2336ee(0x191)]('__')))[_0x2336ee(0x24b)](async _0x59b740=>{const _0x55517a=_0x2336ee;let _0xe172b2=_0x59b740[_0x55517a(0x1c3)]['getUnitId'](),_0x1041a1=await this[_0x55517a(0x29a)](_0xe172b2,t[_0x55517a(0x2e9)]['UNIVER_DOC']);this[_0x55517a(0x1c5)][_0x55517a(0x22c)](_0xe172b2,_0x1041a1);}),this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)][_0x2336ee(0x319)])['pipe']((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s['delay'])(0x10))[_0x2336ee(0x24b)](async _0x148b4b=>{const _0x90c8dd=_0x2336ee;let _0x183b7f=_0x148b4b[_0x90c8dd(0x1c3)][_0x90c8dd(0x250)](),_0x12c4a7=await this['_startCollaboration'](_0x183b7f,t['UniverInstanceType'][_0x90c8dd(0x319)]);this[_0x90c8dd(0x1c5)]['set'](_0x183b7f,_0x12c4a7);}),this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)][_0x2336ee(0x320)])['pipe']((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0x24b)](async _0x189457=>{const _0x931ae9=_0x2336ee;let _0x2e0dd4=_0x189457[_0x931ae9(0x1c3)]['getUnitId'](),_0x259212=await this[_0x931ae9(0x29a)](_0x2e0dd4,t[_0x931ae9(0x2e9)]['UNIVER_BOARD']);this[_0x931ae9(0x1c5)][_0x931ae9(0x22c)](_0x2e0dd4,_0x259212);}),this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)]['UNIVER_BASE'])['pipe']((0x0,i['takeUntil'])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0x24b)](async _0x2d580b=>{const _0x102f13=_0x2336ee;let _0x10260c=_0x2d580b[_0x102f13(0x1c3)][_0x102f13(0x250)](),_0x576434=await this['_startCollaboration'](_0x10260c,t[_0x102f13(0x2e9)][_0x102f13(0x27f)]);this[_0x102f13(0x1c5)][_0x102f13(0x22c)](_0x10260c,_0x576434);}),(0x0,i['merge'])(this[_0x2336ee(0x104)]['getTypeOfUnitDisposed$'](t[_0x2336ee(0x2e9)][_0x2336ee(0xa2)]),this[_0x2336ee(0x104)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x2336ee(0x301)]),this[_0x2336ee(0x104)]['getTypeOfUnitDisposed$'](t[_0x2336ee(0x2e9)][_0x2336ee(0x319)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x2336ee(0x320)]),this[_0x2336ee(0x104)][_0x2336ee(0x16b)](t[_0x2336ee(0x2e9)][_0x2336ee(0x27f)]))[_0x2336ee(0xf8)]((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]))[_0x2336ee(0x24b)](_0x545b1b=>{const _0x1777bb=_0x2336ee;let _0x3f06ce=_0x545b1b[_0x1777bb(0x250)](),_0x3cbede=this[_0x1777bb(0x1c5)][_0x1777bb(0x1b7)](_0x3f06ce);_0x3cbede&&(_0x3cbede[_0x1777bb(0x177)](),this[_0x1777bb(0x1c5)][_0x1777bb(0x36f)](_0x3f06ce));});}async[_0x5a7686(0x29a)](_0x4ec5d8,_0xafe29d){const _0x29bf56=_0x5a7686;let _0x3cf2b8=await this[_0x29bf56(0x35b)]['requireSession'](_0x4ec5d8),_0xbd095a=this[_0x29bf56(0x271)]['createInstance'](this[_0x29bf56(0x1e5)](_0xafe29d),_0x4ec5d8,_0xafe29d,_0x3cf2b8);return await _0xbd095a[_0x29bf56(0x86)](),this[_0x29bf56(0x381)][_0x29bf56(0x1eb)](_0xbd095a),_0xbd095a;}['_getCtorByUniverInstanceType'](_0x20bb95){const _0x35ca1b=_0x5a7686;switch(_0x20bb95){case t['UniverInstanceType']['UNIVER_DOC']:return I;case t[_0x35ca1b(0x2e9)][_0x35ca1b(0xa2)]:return R;case t[_0x35ca1b(0x2e9)]['UNIVER_SLIDE']:return z;case t[_0x35ca1b(0x2e9)][_0x35ca1b(0x320)]:return B;case t[_0x35ca1b(0x2e9)]['UNIVER_BASE']:return L;default:throw Error(_0x35ca1b(0x13b)+_0x20bb95);}}};H=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(V)),v(0x2,t['IConfigService']),v(0x3,t['IUniverInstanceService'])],H);var $e='@univerjs-pro/collaboration-client',et=_0x5a7686(0x10e);let tt=class extends t[_0x5a7686(0x117)]{constructor(_0x20e22a,_0x318e63){const _0x2df0c9=_0x5a7686;super(),this[_0x2df0c9(0x104)]=_0x20e22a,this[_0x2df0c9(0x16d)]=_0x318e63,this['_init']();}[_0x5a7686(0x194)](){const _0x42dc65=_0x5a7686;this[_0x42dc65(0x17d)](this[_0x42dc65(0x104)][_0x42dc65(0x284)]['subscribe'](()=>{const _0x1ab15c=_0x42dc65;var _0x70f8dd;let _0xff5b1d=this[_0x1ab15c(0x104)][_0x1ab15c(0x15b)](),_0xdd0041=(_0x70f8dd=this[_0x1ab15c(0x16d)][_0x1ab15c(0x34b)](_0x1ab15c(0xf1)))==null?_0x1ab15c(0x13d):_0x70f8dd;_0xff5b1d instanceof t[_0x1ab15c(0x351)]&&(_0xdd0041=_0xff5b1d[_0x1ab15c(0x1bd)]),document['title']=_0xdd0041;}));}};tt=y([v(0x0,t[_0x5a7686(0x2d4)]),v(0x1,t[_0x5a7686(0x298)])],tt);let nt=function(_0x31af7e){const _0x215841=_0x5a7686;return _0x31af7e[_0x215841(0x87)]=_0x215841(0x87),_0x31af7e['UUID']=_0x215841(0x346),_0x31af7e[_0x215841(0x138)]=_0x215841(0x138),_0x31af7e;}({});const rt=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x2cf));let U=class{constructor(_0x142b17,_0x3628e7,_0x44f402){const _0x3e88ab=_0x5a7686;this['_httpService']=_0x142b17,this[_0x3e88ab(0x16d)]=_0x3628e7,this[_0x3e88ab(0x104)]=_0x44f402;}[_0x5a7686(0x1e0)](){const _0x4c73b9=_0x5a7686;var _0x462294;return(_0x462294=this[_0x4c73b9(0x2b0)]()[_0x4c73b9(0x151)])==null?{}:_0x462294;}async[_0x5a7686(0x1c1)](_0x7c5d86){const _0x28a5b9=_0x5a7686;let _0x21277a=this[_0x28a5b9(0x1e0)]();if(it(_0x7c5d86,_0x21277a),_0x21277a['upload'])return _0x21277a[_0x28a5b9(0x261)](_0x7c5d86);let _0x25505f=await this[_0x28a5b9(0x2ff)](_0x7c5d86);return{'id':_0x25505f,'name':_0x7c5d86[_0x28a5b9(0x1bd)],'mimeType':_0x7c5d86[_0x28a5b9(0x234)],'size':_0x7c5d86[_0x28a5b9(0x257)],'sourceType':_0x28a5b9(0x346),'source':_0x25505f};}async[_0x5a7686(0x2ff)](_0x576e8f){const _0x200cc2=_0x5a7686;let _0x20ec15=this[_0x200cc2(0x104)][_0x200cc2(0x15b)](),_0x326d97=_0x20ec15==null?void 0x0:_0x20ec15[_0x200cc2(0x250)]();if(!_0x326d97)throw Error(_0x200cc2(0x23a));let _0x2026b3=new FormData();_0x2026b3[_0x200cc2(0x1fc)](_0x200cc2(0x93),_0x576e8f);let _0x43b528=this[_0x200cc2(0x38e)]()+_0x200cc2(0x208)+_0x576e8f['size'][_0x200cc2(0x23d)]()+'&source='+a[_0x200cc2(0x2e6)][_0x200cc2(0x19a)]+_0x200cc2(0x26b)+encodeURIComponent(_0x326d97),_0x238a62=(await this[_0x200cc2(0x8c)]['post'](_0x43b528,{'body':_0x2026b3}))[_0x200cc2(0x30b)][_0x200cc2(0x1f6)];if(typeof _0x238a62!='string'||!_0x238a62)throw Error(_0x200cc2(0x108));return _0x238a62;}[_0x5a7686(0x38e)](){const _0x3d0782=_0x5a7686;var _0x86d4d4;return(_0x86d4d4=this[_0x3d0782(0x2b0)]()[_0x3d0782(0x10a)])==null?'/universer-api/stream/file/upload':_0x86d4d4;}[_0x5a7686(0x2b0)](){const _0x8ca138=_0x5a7686;var _0x460afd;return(_0x460afd=this[_0x8ca138(0x16d)][_0x8ca138(0x34b)]('collaboration-client.config'))==null?{}:_0x460afd;}};U=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(t['IConfigService'])),v(0x2,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x2d4)]))],U);function it(_0x24c15d,_0x50d3cd){const _0x510c5f=_0x5a7686;var _0x5a63af;if(_0x50d3cd['maxSize']!=null&&_0x24c15d[_0x510c5f(0x257)]>_0x50d3cd['maxSize'])throw Error(_0x510c5f(0x116));if((_0x5a63af=_0x50d3cd[_0x510c5f(0x1f4)])!=null&&_0x5a63af['length']&&!_0x50d3cd[_0x510c5f(0x1f4)]['some'](_0x5b0aeb=>_0x24c15d[_0x510c5f(0x234)]===_0x5b0aeb||_0x24c15d[_0x510c5f(0x1bd)][_0x510c5f(0x85)](_0x5b0aeb)||_0x5b0aeb[_0x510c5f(0x85)]('/*')&&_0x24c15d['type']['startsWith'](_0x5b0aeb[_0x510c5f(0x184)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x210d4d,_0x572c60,_0x5c0769){const _0x458a6c=_0x5a7686;this[_0x458a6c(0x16d)]=_0x210d4d,this[_0x458a6c(0x8c)]=_0x572c60,this[_0x458a6c(0x1ed)]=_0x5c0769,this[_0x458a6c(0x86)]();}['init'](){const _0x26455c=_0x5a7686;this[_0x26455c(0x8c)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x153706,_0x29dc01)=>_0x29dc01(_0x153706)[_0x26455c(0xf8)]((0x0,i['concatMap'])(async _0x1cc9cf=>{const _0x2cf724=_0x26455c;let _0x8ca35a=_0x1cc9cf;if(_0x8ca35a[_0x2cf724(0x385)]===0x191){if(typeof window>'u')throw Error(_0x2cf724(0xfe));if(window[_0x2cf724(0x345)](this[_0x2cf724(0x1ed)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x201036=window['encodeURIComponent'](window[_0x2cf724(0x109)]['href']);window['location'][_0x2cf724(0x28a)]=this['_getLoginPath']()+_0x2cf724(0x326)+_0x201036;}}return _0x8ca35a;}))});}['_getLoginPath'](){const _0x23b1bb=_0x5a7686;var _0x4c2db6;let _0x36143c=this[_0x23b1bb(0x16d)]['getConfig'](m);return(_0x4c2db6=_0x36143c==null?void 0x0:_0x36143c[_0x23b1bb(0x1bc)])==null?_0x23b1bb(0xfd):_0x4c2db6;}};W=y([v(0x0,t[_0x5a7686(0x298)]),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x2,(0x0,t['Inject'])(t[_0x5a7686(0x337)]))],W);let G=class extends t['Disposable']{constructor(_0x4fd73a,_0x501f18){const _0x111675=_0x5a7686;super(),this[_0x111675(0x262)]=_0x4fd73a,this[_0x111675(0x16d)]=_0x501f18,g(this,_0x111675(0x336),!0x1),this[_0x111675(0x11d)]();}[_0x5a7686(0x11d)](){const _0x430f17=_0x5a7686;let _0x5beea8=this;this[_0x430f17(0x17d)](this[_0x430f17(0x262)][_0x430f17(0x1e3)]({'priority':0x3e7,'interceptor':(0x0,l[_0x430f17(0x189)])({'isMatch'(_0xb522f4){const _0x113de5=_0x430f17;var _0x32f339;if(_0xb522f4[_0x113de5(0x308)]==='POST'&&(_0x32f339=_0xb522f4['requestParams'])!=null&&_0x32f339[_0x113de5(0x30b)]){let {objectID:_0x34506b,objectType:_0x36f50b}=_0xb522f4[_0x113de5(0x1b4)][_0x113de5(0x30b)]||{};if(!_0x34506b||_0x36f50b===void 0x0)return!0x1;let _0x56249a=_0x5beea8[_0x113de5(0x269)]()+'/'+_0x36f50b+'/object/'+_0x34506b+'/allowed';if(_0xb522f4[_0x113de5(0x245)]===_0x56249a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x252e47){var _0x5783da;return(_0x5783da=_0x252e47['requestParams'])==null?void 0x0:_0x5783da['body'];},'mergeParamsToRequest'(_0x582491,_0x5996ae){const _0x4ad5c0=_0x430f17;let _0x35319c=_0x5beea8[_0x4ad5c0(0x269)]()+'/-/object/-/batch_allowed',_0x439313=_0x582491[_0x4ad5c0(0xec)]((_0x15d846,_0x375260)=>{const _0xe7c485=_0x4ad5c0;let {unitID:_0x2e155,objectID:_0x30eba4,objectType:_0x2c45c4,actions:_0x1ce1a5}=_0x375260;return _0x15d846[_0x2e155]||(_0x15d846[_0x2e155]={}),_0x15d846[_0x2e155][_0x30eba4]||(_0x15d846[_0x2e155][_0x30eba4]={'objectID':_0x30eba4,'objectType':_0x2c45c4,'actions':[]}),_0x15d846[_0x2e155][_0x30eba4]['actions'][_0xe7c485(0x244)](..._0x1ce1a5),_0x15d846;},{}),_0x24f678=[];for(let _0x166f98 in _0x439313)for(let _0x2e0573 in _0x439313[_0x166f98]){let {actions:_0x3af77f,objectType:_0x123e81}=_0x439313[_0x166f98][_0x2e0573],_0x2ae95a=[...new Set(_0x3af77f)];_0x24f678[_0x4ad5c0(0x244)]({'unitID':_0x166f98,'objectID':_0x2e0573,'objectType':_0x123e81,'actions':_0x2ae95a});}return new l[(_0x4ad5c0(0xf7))]('POST',_0x35319c,{'headers':_0x5996ae[_0x4ad5c0(0xf4)],'withCredentials':_0x5996ae[_0x4ad5c0(0x19f)],'responseType':_0x5996ae[_0x4ad5c0(0x1a3)],'body':{'requests':_0x24f678}});}},{'distributeResult'(_0x37690a,_0x4f222f){const _0xdf151b=_0x430f17;let {objectActions:_0x951481}=_0x37690a;return _0x4f222f[_0xdf151b(0x350)](_0x2b8343=>{const _0x70e2f7=_0xdf151b;let {unitID:_0x3a6086,objectID:_0x4268c0,actions:_0x5054dc}=_0x2b8343,_0x4e06c6=_0x951481[_0x70e2f7(0x158)](_0x298d85=>_0x298d85[_0x70e2f7(0x17c)]===_0x3a6086&&_0x298d85[_0x70e2f7(0xc4)]===_0x4268c0);return{'config':_0x2b8343,'result':{'actions':_0x5054dc[_0x70e2f7(0x350)](_0x411a5f=>_0x4e06c6==null?void 0x0:_0x4e06c6['actions']['find'](_0x39159f=>_0x39159f[_0x70e2f7(0x2f6)]===_0x411a5f))[_0x70e2f7(0x18a)](_0x249434=>!!_0x249434),'error':_0x37690a['error']}};});}})}));}[_0x5a7686(0x269)](){const _0x36dca3=_0x5a7686;var _0x2e8a82;let _0x1245f2=this[_0x36dca3(0x16d)][_0x36dca3(0x34b)](m);return(_0x2e8a82=_0x1245f2==null?void 0x0:_0x1245f2[_0x36dca3(0x96)])==null?_0x36dca3(0x1af):_0x2e8a82;}async[_0x5a7686(0xde)](_0x2ea26b){const _0xadda45=_0x5a7686;let _0x5afdd4=this[_0xadda45(0x269)]()+'/'+_0x2ea26b[_0xadda45(0x113)]+_0xadda45(0xfa);return(await this['_HTTPService'][_0xadda45(0x9f)](_0x5afdd4,{'body':_0x2ea26b}))[_0xadda45(0x30b)][_0xadda45(0xc4)]||'';}async['list'](_0x4e5742){const _0x4c8087=_0x5a7686;let _0x223451=this[_0x4c8087(0x269)]()+_0x4c8087(0xd7);return(await this['_HTTPService'][_0x4c8087(0x9f)](_0x223451,{'body':_0x4e5742}))[_0x4c8087(0x30b)][_0x4c8087(0x260)];}async[_0x5a7686(0x357)](_0x3a9e12){const _0x3dd3dd=_0x5a7686;var _0x5cf206;let _0x55b431=this['_getAPIPrefixPath']()+'/'+_0x3a9e12[_0x3dd3dd(0x113)]+_0x3dd3dd(0xaf)+_0x3a9e12[_0x3dd3dd(0xc4)],_0x2125d3=await this['_HTTPService'][_0x3dd3dd(0x18f)](_0x55b431,{'body':_0x3a9e12});if((_0x2125d3==null||(_0x5cf206=_0x2125d3[_0x3dd3dd(0x30b)])==null||(_0x5cf206=_0x5cf206[_0x3dd3dd(0x36a)])==null?void 0x0:_0x5cf206[_0x3dd3dd(0x2b5)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async['allowed'](_0x5c4374){const _0x1f113d=_0x5a7686;let _0x261fc9=this[_0x1f113d(0x269)]()+'/'+_0x5c4374['objectType']+_0x1f113d(0xaf)+_0x5c4374['objectID']+_0x1f113d(0x18c);return(await this[_0x1f113d(0x262)][_0x1f113d(0x9f)](_0x261fc9,{'body':_0x5c4374}))[_0x1f113d(0x30b)][_0x1f113d(0xa0)];}async[_0x5a7686(0xe0)](_0x236523){const _0x2c53d0=_0x5a7686;let _0xaf9f1b=this[_0x2c53d0(0x269)]()+_0x2c53d0(0x26d);return(await this[_0x2c53d0(0x262)]['post'](_0xaf9f1b,{'body':{'requests':_0x236523}}))[_0x2c53d0(0x30b)][_0x2c53d0(0x20b)];}async['listRoles'](_0x220028){const _0x3bb995=_0x5a7686;let _0x3fe658=this['_getAPIPrefixPath']()+'/'+_0x220028['objectType']+_0x3bb995(0x17a),_0x462c8a=await this[_0x3bb995(0x262)][_0x3bb995(0x9f)](_0x3fe658,{'body':_0x220028});return{'roles':_0x462c8a[_0x3bb995(0x30b)][_0x3bb995(0x1f8)],'actions':_0x462c8a['body'][_0x3bb995(0xa0)]};}async[_0x5a7686(0x292)](_0x345cf4){const _0x3a90fe=_0x5a7686;let _0x164961=this[_0x3a90fe(0x269)]()+_0x3a90fe(0x160);await this[_0x3a90fe(0x262)]['delete'](_0x164961,{'params':{'collaboratorID':_0x345cf4[_0x3a90fe(0x132)],'objectID':_0x345cf4[_0x3a90fe(0xc4)],'unitID':_0x345cf4[_0x3a90fe(0x17c)]}});}async['updateCollaborator'](_0x6ae06f){const _0x21a628=_0x5a7686;let _0x39fd2d=this[_0x21a628(0x269)]()+_0x21a628(0x160);await this[_0x21a628(0x262)][_0x21a628(0x1fd)](_0x39fd2d,{'body':_0x6ae06f});}async[_0x5a7686(0x31a)](_0x231216){const _0x1f2558=_0x5a7686;let _0x29b1a5=this[_0x1f2558(0x269)]()+_0x1f2558(0x160);await this[_0x1f2558(0x262)][_0x1f2558(0x9f)](_0x29b1a5,{'body':_0x231216});}async['listCollaborators'](_0x15b1d3){const _0x510895=_0x5a7686;var _0x43405e;let _0x29ba8e=this['_getAPIPrefixPath']()+_0x510895(0x160),_0xed5c5=await this[_0x510895(0x262)]['get'](_0x29ba8e,{'params':{'objectID':_0x15b1d3[_0x510895(0xc4)],'unitID':_0x15b1d3[_0x510895(0x17c)]}});return this[_0x510895(0x252)]((_0x43405e=_0xed5c5[_0x510895(0x30b)][_0x510895(0xa8)])==null?!0x1:_0x43405e),_0xed5c5[_0x510895(0x30b)][_0x510895(0x22e)];}async[_0x5a7686(0xb6)](_0x4db67a){const _0x2cc259=_0x5a7686;let _0x202bc1=this[_0x2cc259(0x269)]()+'/collaborator';await this[_0x2cc259(0x262)][_0x2cc259(0x18f)](_0x202bc1,{'body':_0x4db67a});}['setCfgEnableObjInherit'](_0x252eb3){const _0x5a2652=_0x5a7686;this[_0x5a2652(0x336)]=_0x252eb3;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x5a7686(0x35e)])),v(0x1,(0x0,t['Inject'])(t[_0x5a7686(0x298)]))],G);function at(_0x4c7553){const _0x472cb6=_0x5a7686;let _0x440dfb=atob(_0x4c7553),_0x39c1a1=new Uint8Array(_0x440dfb[_0x472cb6(0x225)]);for(let _0x6c457b=0x0;_0x6c457b<_0x440dfb[_0x472cb6(0x225)];_0x6c457b++)_0x39c1a1[_0x6c457b]=_0x440dfb['charCodeAt'](_0x6c457b);return _0x39c1a1;}function ot(_0x59b31e){const _0xf35ee=_0x5a7686;let _0x3d420c='';for(let _0x12c4e=0x0;_0x12c4e<_0x59b31e['length'];_0x12c4e++)_0x3d420c+=String[_0xf35ee(0xd3)](_0x59b31e[_0x12c4e]);return btoa(_0x3d420c);}function st(_0x3db569,_0x3ae5a2){const _0x31bc4c=_0x5a7686;let _0x264d79=at(_0x3ae5a2),_0x330189=(0x0,f[_0x31bc4c(0x1a6)])(0x10);return ot((0x0,f[_0x31bc4c(0x13c)])(_0x330189,(0x0,d['cbc'])(_0x264d79,_0x330189)['encrypt']((0x0,f['utf8ToBytes'])(_0x3db569))));}function ct(){const _0xbcaf11=_0x5a7686;let _0x140fac=(0x0,u['getGlobalObject'])()['__Key__'];if(typeof window<'u'&&window[_0xbcaf11(0x109)]!==void 0x0&&_0x140fac){let _0x55a286={'time':Math[_0xbcaf11(0x119)](Date[_0xbcaf11(0x379)]()/0x3e8),'domain':location[_0xbcaf11(0x1d2)]};return st(JSON[_0xbcaf11(0x121)](_0x55a286),_0x140fac);}}let K=class{constructor(_0x53e031){const _0x5a3367=_0x5a7686;this[_0x5a3367(0x8c)]=_0x53e031,this[_0x5a3367(0x79)]();}['_initRequestHeader'](){const _0x27d328=_0x5a7686;this[_0x27d328(0x8c)][_0x27d328(0x1e3)]({'interceptor':(_0x3addc1,_0x1dca2e)=>{const _0x1835fa=_0x27d328;let _0x2ab3b5=ct();return _0x2ab3b5&&_0x3addc1[_0x1835fa(0xf4)][_0x1835fa(0x22c)](_0x1835fa(0xe8),_0x2ab3b5),_0x1dca2e(_0x3addc1);}});}};K=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)]))],K);let q=class extends t[_0x5a7686(0x1a2)]{constructor(_0x7a32e3,_0x144fb4,_0x60b2b7){const _0xe33946=_0x5a7686;super(),this['_logService']=_0x7a32e3,this[_0xe33946(0x35f)]=_0x144fb4,this[_0xe33946(0x2a7)]=_0x60b2b7,g(this,_0xe33946(0x1c4),new i['BehaviorSubject'](null)),g(this,_0xe33946(0x2f3),new i[(_0xe33946(0x340))]()),g(this,'unitInfo$',this[_0xe33946(0x1c4)][_0xe33946(0xea)]()),g(this,'unitLoaded$',this['_unitLoaded$'][_0xe33946(0xea)]());}[_0x5a7686(0x177)](){const _0x281f7b=_0x5a7686;super['dispose'](),this[_0x281f7b(0x2f3)]['complete'](),this[_0x281f7b(0x1c4)]['complete']();}async[_0x5a7686(0x1a9)](_0x15ecb3,_0x343f60,_0x2cc56f,_0x57e7aa){const _0x403e58=_0x5a7686;this[_0x403e58(0x1c4)]['next']({'unitId':_0x15ecb3,'type':_0x343f60,'subUnitId':_0x57e7aa});let _0x282c0b=null;switch(_0x343f60){case t[_0x403e58(0x2e9)][_0x403e58(0xa2)]:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0x24a)](_0x15ecb3,_0x2cc56f,void 0x0,{'initialSubUnitId':_0x57e7aa});break;case t[_0x403e58(0x2e9)]['UNIVER_DOC']:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0x239)](_0x15ecb3,_0x2cc56f);break;case t[_0x403e58(0x2e9)][_0x403e58(0x319)]:_0x282c0b=await this['_snapshotService'][_0x403e58(0x7c)](_0x15ecb3,_0x2cc56f);break;case t[_0x403e58(0x2e9)][_0x403e58(0x320)]:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0xed)](_0x15ecb3,_0x2cc56f);break;case t[_0x403e58(0x2e9)]['UNIVER_BASE']:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0x134)](_0x15ecb3,_0x2cc56f);break;default:this[_0x403e58(0x8f)][_0x403e58(0x36a)](_0x403e58(0x311),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x282c0b&&this[_0x403e58(0x2f3)][_0x403e58(0x1eb)](_0x282c0b),_0x282c0b;}async[_0x5a7686(0x37c)](_0x2dd77c,_0x329234,_0x220c0a){const _0x19b100=_0x5a7686;var _0x2a7bfd;this['_unitInfo$'][_0x19b100(0x1eb)]({'unitId':_0x2dd77c,'type':_0x329234,'subUnitId':_0x220c0a});let _0x4f178d=0x0,_0x303221=await((_0x2a7bfd=this[_0x19b100(0x2a7)])==null?void 0x0:_0x2a7bfd[_0x19b100(0x1e1)](_0x2dd77c));return _0x303221&&(_0x303221['awaitingChangeset']||_0x303221[_0x19b100(0x1c7)]['length']!==0x0)&&(_0x4f178d=_0x303221[_0x19b100(0x1cf)]),_0x4f178d===0x0&&this[_0x19b100(0x8f)]['debug'](_0x19b100(0x311),_0x19b100(0x2f0)),this[_0x19b100(0x1a9)](_0x2dd77c,_0x329234,_0x4f178d,_0x220c0a);}};q=y([v(0x0,t[_0x5a7686(0x2c2)]),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x175)])),v(0x2,(0x0,t[_0x5a7686(0xa3)])(S))],q);let J=class{constructor(_0x4ccf1a,_0x542e6a,_0x333cd0){const _0x4fd2eb=_0x5a7686;this[_0x4fd2eb(0x8c)]=_0x4ccf1a,this['_configService']=_0x542e6a,this['_univerInstanceService']=_0x333cd0,g(this,_0x4fd2eb(0x23e),0x0),g(this,_0x4fd2eb(0x8b),new i[(_0x4fd2eb(0x340))]()),g(this,'change$',this[_0x4fd2eb(0x8b)]),g(this,_0x4fd2eb(0x19b),new Map());}[_0x5a7686(0x1e8)](_0x118df1){const _0x555147=_0x5a7686;this[_0x555147(0x23e)]=_0x118df1,this[_0x555147(0x8b)][_0x555147(0x1eb)](_0x118df1);}['getImageSourceCache'](_0x443fc4,_0x27b899){const _0xf94a43=_0x5a7686;if(_0x27b899===t['ImageSourceType'][_0xf94a43(0x138)]){let _0xbcbed6=new Image();return _0xbcbed6[_0xf94a43(0x32c)]=_0x443fc4,_0xbcbed6;}return this[_0xf94a43(0x19b)][_0xf94a43(0x1b7)](_0x443fc4);}[_0x5a7686(0x222)](_0x271a00,_0x4ba376,_0x456d9c){const _0xbc4f92=_0x5a7686;_0x4ba376===t[_0xbc4f92(0xc1)][_0xbc4f92(0x138)]||_0x456d9c==null||this[_0xbc4f92(0x19b)][_0xbc4f92(0x22c)](_0x271a00,_0x456d9c);}async[_0x5a7686(0xa1)](_0x5aaedd){const _0x2ce1ea=_0x5a7686;try{let _0x5cebf6=this[_0x2ce1ea(0x2dd)](this[_0x2ce1ea(0x11c)](),''+_0x5aaedd),_0x2e6c1b=(await this[_0x2ce1ea(0x8c)]['get'](_0x5cebf6))[_0x2ce1ea(0x30b)];if(_0x2e6c1b[_0x2ce1ea(0x36a)]&&_0x2e6c1b[_0x2ce1ea(0x36a)][_0x2ce1ea(0x2b5)]===a[_0x2ce1ea(0x358)]['OK']){let _0x170edf=(0x0,t['resolveWithBasePath'])(_0x2e6c1b['url'],this[_0x2ce1ea(0xe2)]());return Promise[_0x2ce1ea(0x386)](_0x170edf);}return Promise[_0x2ce1ea(0x21c)](_0x2e6c1b[_0x2ce1ea(0x36a)]);}catch(_0x4d1377){return Promise[_0x2ce1ea(0x21c)](_0x4d1377);}}async['saveImage'](_0x5cfaeb){const _0x4aae5a=_0x5a7686;let _0x581d6c='';if(!p[_0x4aae5a(0x30e)][_0x4aae5a(0xc8)](_0x5cfaeb['type']))return this['_decreaseWaiting'](),Promise[_0x4aae5a(0x21c)](Error(t[_0x4aae5a(0x24c)]['ERROR_IMAGE_TYPE']));if(_0x5cfaeb[_0x4aae5a(0x257)]>(0x0,p[_0x4aae5a(0xc2)])())return this[_0x4aae5a(0xc3)](),Promise[_0x4aae5a(0x21c)](Error(t['ImageUploadStatusType'][_0x4aae5a(0x2d1)]));try{let _0x39597e=new FormData();_0x39597e[_0x4aae5a(0x1fc)](_0x4aae5a(0x93),_0x5cfaeb);let _0x1b6667=this['_univerInstanceService'][_0x4aae5a(0x15b)](),_0xf14d01=_0x1b6667==null?void 0x0:_0x1b6667[_0x4aae5a(0x250)]();if(!_0xf14d01)throw Error(_0x4aae5a(0x155));let _0xdb4ef6=this['_getUploadFileURL']()+_0x4aae5a(0x208)+_0x5cfaeb[_0x4aae5a(0x257)][_0x4aae5a(0x23d)]()+_0x4aae5a(0x2b7)+a[_0x4aae5a(0x2e6)][_0x4aae5a(0x19a)]+_0x4aae5a(0x26b)+encodeURIComponent(_0xf14d01),_0x21473c={'body':_0x39597e},_0x17f187=(await this[_0x4aae5a(0x8c)]['post'](_0xdb4ef6,_0x21473c))[_0x4aae5a(0x30b)];if(typeof _0x17f187[_0x4aae5a(0x1f6)]!='string')return this['_decreaseWaiting'](),Promise[_0x4aae5a(0x21c)](Error(t[_0x4aae5a(0x24c)]['ERROR_IMAGE']));_0x581d6c=_0x17f187[_0x4aae5a(0x1f6)];}catch{return this[_0x4aae5a(0xc3)](),Promise[_0x4aae5a(0x21c)](Error(t[_0x4aae5a(0x24c)]['ERROR_IMAGE']));}return new Promise((_0x34ee90,_0x3610ff)=>{const _0x461461=_0x4aae5a;let _0x3ee6ee=new FileReader();_0x3ee6ee['readAsDataURL'](_0x5cfaeb),_0x3ee6ee[_0x461461(0x2d0)]=_0x28e928=>{const _0xe74e0e=_0x461461;var _0x3ee7a7;let _0x574ea1=(_0x3ee7a7=_0x28e928[_0xe74e0e(0xbd)])==null?void 0x0:_0x3ee7a7[_0xe74e0e(0x371)];if(_0x574ea1==null){this[_0xe74e0e(0xc3)](),_0x3610ff(Error(t[_0xe74e0e(0x24c)][_0xe74e0e(0x242)]));return;}_0x34ee90({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t['ImageSourceType'][_0xe74e0e(0x346)],'source':_0x581d6c,'base64Cache':_0x574ea1,'status':t['ImageUploadStatusType']['SUCCUSS']}),this[_0xe74e0e(0xc3)]();};});}[_0x5a7686(0x38e)](){const _0x414f75=_0x5a7686;var _0x3eef53;let _0x28ceb9=this[_0x414f75(0x16d)][_0x414f75(0x34b)](m);return(_0x3eef53=_0x28ceb9==null?void 0x0:_0x28ceb9[_0x414f75(0x10a)])==null?_0x414f75(0x1b9):_0x3eef53;}[_0x5a7686(0x11c)](){const _0x48bffd=_0x5a7686;var _0x388b78;let _0x546613=this[_0x48bffd(0x16d)][_0x48bffd(0x34b)](m);return(_0x388b78=_0x546613==null?void 0x0:_0x546613['signUrlServerUrl'])==null?_0x48bffd(0x299):_0x388b78;}[_0x5a7686(0xe2)](){const _0x439372=_0x5a7686;var _0x474fae;let _0xe904f6=this[_0x439372(0x16d)][_0x439372(0x34b)](m);return(_0x474fae=_0xe904f6==null?void 0x0:_0xe904f6[_0x439372(0x12f)])==null?location[_0x439372(0x2a1)]:_0x474fae;}[_0x5a7686(0x2dd)](_0x60286c,_0xa8371){const _0x22c97e=_0x5a7686;return _0x60286c['replace'](_0x22c97e(0x1ef),_0xa8371);}[_0x5a7686(0xc3)](){const _0x41f75a=_0x5a7686;--this[_0x41f75a(0x23e)],this[_0x41f75a(0x8b)][_0x41f75a(0x1eb)](this[_0x41f75a(0x23e)]);}};J=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x1,t[_0x5a7686(0x298)]),v(0x2,(0x0,t['Inject'])(t[_0x5a7686(0x2d4)]))],J);let Y=class{constructor(_0x2a86df,_0x5168dc){const _0x3d0b47=_0x5a7686;this[_0x3d0b47(0x16d)]=_0x2a86df,this[_0x3d0b47(0x262)]=_0x5168dc;}[_0x5a7686(0x269)](){const _0x186bef=_0x5a7686;var _0x131e64;let _0xc9b8=this[_0x186bef(0x16d)][_0x186bef(0x34b)](m);return(_0x131e64=_0xc9b8==null?void 0x0:_0xc9b8[_0x186bef(0x96)])==null?_0x186bef(0x1af):_0x131e64;}async[_0x5a7686(0x15e)](_0x16860d){const _0x55eb94=_0x5a7686;let _0x1bfd3c=this[_0x55eb94(0x269)]()+'/collaborator';return{'list':[{'title':_0x55eb94(0x111),'mentions':(await this[_0x55eb94(0x262)][_0x55eb94(0x1b7)](_0x1bfd3c,{'params':{'objectID':_0x16860d[_0x55eb94(0x135)],'unitID':_0x16860d[_0x55eb94(0x135)]}}))[_0x55eb94(0x30b)][_0x55eb94(0x22e)][_0x55eb94(0x350)](_0x2a2037=>({'objectId':_0x2a2037['id'],'name':_0x2a2037[_0x55eb94(0x38c)][_0x55eb94(0x1bd)],'metadata':{'icon':_0x2a2037[_0x55eb94(0x38c)]['avatar']},'label':_0x2a2037[_0x55eb94(0x38c)][_0x55eb94(0x1bd)],'objectType':t[_0x55eb94(0x216)]['PERSON']})),'metadata':{},'type':t['MentionType']['PERSON']}]};}};Y=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x298)])),v(0x1,(0x0,t['Inject'])(l[_0x5a7686(0x35e)]))],Y);function _0x5741(_0x53d8f0,_0x18c440){_0x53d8f0=_0x53d8f0-0x79;const _0x37aa3b=_0x37aa();let _0x5741a3=_0x37aa3b[_0x53d8f0];return _0x5741a3;}let X=class extends t[_0x5a7686(0x1a2)]{constructor(_0x314749,_0x191bfd,_0x22b9fe,_0x48d775,_0x8f63c7){const _0x4c1beb=_0x5a7686;super(),this[_0x4c1beb(0x271)]=_0x314749,this[_0x4c1beb(0x104)]=_0x191bfd,this[_0x4c1beb(0x289)]=_0x22b9fe,this[_0x4c1beb(0xf3)]=_0x48d775,this[_0x4c1beb(0x12c)]=_0x8f63c7,this[_0x4c1beb(0xb0)](),this[_0x4c1beb(0x7b)]();}[_0x5a7686(0x7b)](){const _0x4c44ad=_0x5a7686;let _0x9dfbdf=async _0x372abb=>{const _0x3b1a68=_0x5741;(await this['_collaborationSessionService'][_0x3b1a68(0x295)](_0x372abb))['event$'][_0x3b1a68(0xf8)]((0x0,s['filter'])(_0xed810d=>_0xed810d[_0x3b1a68(0x25a)]===e[_0x3b1a68(0xd2)][_0x3b1a68(0x141)]),(0x0,s['takeUntil'])(this['dispose$']))[_0x3b1a68(0x24b)](_0x38fc45=>{const _0x5d98d6=_0x3b1a68;let {reason:_0x3cf3f1}=_0x38fc45['data'];this[_0x5d98d6(0x12c)]['emitEvent']({'id':_0x5d98d6(0x192),'data':_0x3cf3f1}),this[_0x5d98d6(0x289)][_0x5d98d6(0x22f)](new r[(_0x5d98d6(0x1ce))](_0x372abb)['id'],!0x1),this[_0x5d98d6(0xf3)][_0x5d98d6(0xc0)](_0x372abb);});};(0x0,i[_0x4c44ad(0x316)])(this[_0x4c44ad(0x104)][_0x4c44ad(0x1d0)](t[_0x4c44ad(0x2e9)][_0x4c44ad(0xa2)]),this['_univerInstanceService'][_0x4c44ad(0x1d0)](t[_0x4c44ad(0x2e9)][_0x4c44ad(0x301)]),this[_0x4c44ad(0x104)][_0x4c44ad(0x1d0)](t[_0x4c44ad(0x2e9)]['UNIVER_BOARD']),this[_0x4c44ad(0x104)]['getTypeOfUnitAdded$'](t[_0x4c44ad(0x2e9)][_0x4c44ad(0x27f)]))['pipe']((0x0,s['map'])(_0x4dd30e=>_0x4dd30e[_0x4c44ad(0x1c3)][_0x4c44ad(0x250)]()),(0x0,s['filter'])(_0x4bf832=>!(0x0,t[_0x4c44ad(0x1b3)])(_0x4bf832)),(0x0,s[_0x4c44ad(0x27c)])(this[_0x4c44ad(0x211)]))[_0x4c44ad(0x24b)](_0xadc150=>{_0x9dfbdf(_0xadc150);});}[_0x5a7686(0xb0)](){const _0x1b23ab=_0x5a7686;let _0xa44b5f=async _0x4a9635=>{const _0x2b745d=_0x5741;let _0x439634=await this[_0x2b745d(0xf3)][_0x2b745d(0x295)](_0x4a9635),_0x5410bf=this[_0x2b745d(0x271)][_0x2b745d(0x1b7)](r['SheetPermissionInitController']);_0x439634[_0x2b745d(0x127)][_0x2b745d(0xf8)]((0x0,s[_0x2b745d(0x18a)])(_0xec9d39=>_0xec9d39[_0x2b745d(0x25a)]===e[_0x2b745d(0xd2)][_0x2b745d(0x305)]),(0x0,s[_0x2b745d(0x27c)])(this[_0x2b745d(0x211)]))[_0x2b745d(0x24b)](_0x5ebb16=>{const _0x19ed78=_0x2b745d;let {objectId:_0x3a4356}=_0x5ebb16[_0x19ed78(0x21f)];_0x3a4356===_0x4a9635?_0x5410bf[_0x19ed78(0x370)](_0x4a9635):_0x5410bf[_0x19ed78(0x29b)](_0x4a9635,_0x3a4356);});};(0x0,i[_0x1b23ab(0x316)])(this[_0x1b23ab(0x104)][_0x1b23ab(0x1d0)](t[_0x1b23ab(0x2e9)][_0x1b23ab(0xa2)]))[_0x1b23ab(0xf8)]((0x0,s[_0x1b23ab(0x350)])(_0x4e609d=>_0x4e609d[_0x1b23ab(0x1c3)][_0x1b23ab(0x250)]()),(0x0,s['filter'])(_0x80ac54=>!(0x0,t[_0x1b23ab(0x1b3)])(_0x80ac54)),(0x0,s[_0x1b23ab(0x27c)])(this['dispose$']))[_0x1b23ab(0x24b)](_0x25193b=>{_0xa44b5f(_0x25193b);});}};X=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x5a7686(0xce)]),v(0x3,(0x0,t[_0x5a7686(0x1c9)])(V)),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(_))],X);let Z=class{constructor(_0x5e6573,_0x59067e){const _0x1cbe67=_0x5a7686;this[_0x1cbe67(0x16d)]=_0x5e6573,this[_0x1cbe67(0x8c)]=_0x59067e;}async['getUnitOnRev'](_0x547ff5,_0x155de5){const _0x4121c9=_0x5a7686;var _0x271dd9;let {unitID:_0x3972d7,type:_0x397b3c,revision:_0x47dfc1=0x0}=_0x155de5,_0x1fe954=this['getSnapshotAPIPath']()+'/'+_0x397b3c+_0x4121c9(0x9c)+_0x3972d7+_0x4121c9(0x103)+_0x47dfc1,_0x50d599=(await this[_0x4121c9(0x8c)][_0x4121c9(0x1b7)](_0x1fe954))[_0x4121c9(0x30b)],_0x587919=(_0x271dd9=_0x50d599[_0x4121c9(0x131)])==null?void 0x0:_0x271dd9[_0x4121c9(0x12e)];if(_0x587919){let _0x5e23e9=_0x587919==null?void 0x0:_0x587919[_0x4121c9(0x383)];_0x587919[_0x4121c9(0x383)]=e[_0x4121c9(0x20a)][_0x4121c9(0x2f2)]((0x0,e[_0x4121c9(0x28d)])(_0x5e23e9)),Object[_0x4121c9(0x24f)](_0x587919[_0x4121c9(0x126)])[_0x4121c9(0x1de)](([,_0x2fc43a])=>{const _0xa4adb9=_0x4121c9;let _0x21276a=_0x2fc43a['originalMeta'];_0x2fc43a[_0xa4adb9(0x383)]=e[_0xa4adb9(0x20a)][_0xa4adb9(0x2f2)]((0x0,e[_0xa4adb9(0x28d)])(_0x21276a));});}return _0x50d599;}async[_0x5a7686(0xb2)](_0x5ac4e6,_0x53e41b){const _0x674496=_0x5a7686;let {unitID:_0x4aa913,type:_0x189b66,blockID:_0x59f4fc}=_0x53e41b,_0x4c3a93=this[_0x674496(0x1a0)]()+'/'+_0x189b66+_0x674496(0x9c)+_0x4aa913+_0x674496(0xd5)+_0x59f4fc;return(await this[_0x674496(0x8c)][_0x674496(0x1b7)](_0x4c3a93))[_0x674496(0x30b)];}async[_0x5a7686(0x196)](_0x121c04,_0xd05dd9){const _0x2d30ba=_0x5a7686;let {unitID:_0x4a22df,type:_0x295fcd,blockID:_0x627db4}=_0xd05dd9,_0x263ce2=this[_0x2d30ba(0x1a0)]()+_0x2d30ba(0xd5)+_0x295fcd+'/unit/'+_0x4a22df+_0x2d30ba(0xd5)+_0x627db4;return(await this[_0x2d30ba(0x8c)][_0x2d30ba(0x1b7)](_0x263ce2))['body'];}async[_0x5a7686(0x1c8)](_0x19d7c2,_0x5d9f38){const _0x4e7892=_0x5a7686;let {unitID:_0x4faf0e,type:_0x31b281,from:_0x425a97,to:_0x2b77cf}=_0x5d9f38,_0x17da41=this[_0x4e7892(0x1a0)]()+'/'+_0x31b281+_0x4e7892(0x9c)+_0x4faf0e+_0x4e7892(0x323)+_0x425a97+_0x4e7892(0x176)+_0x2b77cf;return(await this[_0x4e7892(0x8c)][_0x4e7892(0x1b7)](_0x17da41))[_0x4e7892(0x30b)];}[_0x5a7686(0x227)](){const _0x23a74b=_0x5a7686;var _0x4ec057;return(_0x4ec057=this[_0x23a74b(0x16d)]['getConfig']('SNAPSHOT_URL_KEY'))==null?this[_0x23a74b(0x1a0)]():_0x4ec057;}[_0x5a7686(0x1a0)](){const _0x553c73=_0x5a7686;var _0x116ebf;let _0x5a2973=this[_0x553c73(0x16d)][_0x553c73(0x34b)](m);return(_0x116ebf=_0x5a2973==null?void 0x0:_0x5a2973[_0x553c73(0xba)])==null?'/universer-api/snapshot':_0x116ebf;}async['getResourcesRequest'](_0x37fbc1,_0x2c87f7){const _0x44fe23=_0x5a7686;let _0x1af360=_0x44fe23(0x270)+_0x2c87f7[_0x44fe23(0x234)]+_0x44fe23(0x9c)+_0x2c87f7[_0x44fe23(0x17c)]+_0x44fe23(0x149);return(await this[_0x44fe23(0x8c)]['get'](_0x1af360,{'params':{'resourceId':JSON[_0x44fe23(0x121)](_0x2c87f7[_0x44fe23(0x2f7)])}}))[_0x44fe23(0x30b)];}[_0x5a7686(0x207)](){const _0x33f9d6=_0x5a7686;throw Error(_0x33f9d6(0x1a1));}[_0x5a7686(0x14a)](){const _0x38d549=_0x5a7686;throw Error(_0x38d549(0x1a1));}[_0x5a7686(0x2b2)](){const _0x1a005e=_0x5a7686;throw Error(_0x1a005e(0x1a1));}[_0x5a7686(0xb9)](){const _0x46cbb3=_0x5a7686;throw Error(_0x46cbb3(0x1a1));}[_0x5a7686(0x1ac)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x3dc55a=_0x5a7686;throw Error(_0x3dc55a(0x1a1));}};Z=y([v(0x0,t[_0x5a7686(0x298)]),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)]))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0xb83aa5,_0x361346,_0x3dd997,_0x7eeb2c,_0x522aa2){const _0x384a26=_0x5a7686;super(_0xb83aa5,_0x361346,_0x3dd997),this[_0x384a26(0x19c)]=_0x7eeb2c,this[_0x384a26(0x8f)]=_0x522aa2;}[_0x5a7686(0xae)](_0x19691d,_0x3e4722){const _0x4d0b13=_0x5a7686;let _0xafba09=this['_getUndoStack'](_0x19691d);if(_0xafba09)try{let _0x3d7259=this[_0x4d0b13(0x1df)](_0xafba09,_0x3e4722);this['_substituteUndoStack'](_0x19691d,_0x3d7259);}catch(_0x5016e9){this[_0x4d0b13(0x8f)][_0x4d0b13(0x36a)](_0x4d0b13(0xb1),_0x5016e9),this['_clearUndo'](_0x19691d);}let _0x4414e1=this[_0x4d0b13(0x287)](_0x19691d);if(_0x4414e1)try{let _0x3c1d82=this[_0x4d0b13(0x1df)](_0x4414e1,_0x3e4722);this[_0x4d0b13(0x1b2)](_0x19691d,_0x3c1d82);}catch(_0x321d73){this['_logService'][_0x4d0b13(0x36a)](_0x321d73),this[_0x4d0b13(0x356)](_0x19691d);}}['_clearUndo'](_0x38b867){const _0x2a74d7=_0x5a7686;let _0x21da11=this['_getUndoStack'](_0x38b867);_0x21da11&&(_0x21da11[_0x2a74d7(0x225)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x3cff1a){const _0x4abeab=_0x5a7686;let _0x346582=this[_0x4abeab(0x287)](_0x3cff1a);_0x346582&&(_0x346582[_0x4abeab(0x225)]=0x0,this[_0x4abeab(0x2df)]());}[_0x5a7686(0x2ec)](_0x5acdb3,_0x21f060){const _0x27dcb6=_0x5a7686;this[_0x27dcb6(0x27e)][_0x27dcb6(0x22c)](_0x5acdb3,_0x21f060),this[_0x27dcb6(0x2df)]();}['_substituteRedoStack'](_0x573db8,_0x579c02){const _0x33ae85=_0x5a7686;this['_redoStacks'][_0x33ae85(0x22c)](_0x573db8,_0x579c02),this[_0x33ae85(0x2df)]();}[_0x5a7686(0x1df)](_0x2c3af3,_0x1722d9){const _0x53db2d=_0x5a7686;let _0x323226=[],_0x513765=_0x1722d9,_0x3c5c98=_0x1722d9;for(let _0x5131e3=_0x2c3af3[_0x53db2d(0x225)]-0x1;_0x5131e3>=0x0;_0x5131e3--){let {unitID:_0x29072,undoMutations:_0x482938,redoMutations:_0x34a076}=_0x2c3af3[_0x5131e3],_0x5e66c3=this[_0x53db2d(0x19c)][_0x53db2d(0x1ab)](_0x513765,_0x482938),_0x3d5e0e=this['_transformService'][_0x53db2d(0x1ab)](_0x3c5c98,_0x34a076);if((0x0,e[_0x53db2d(0x335)])(_0x5e66c3)||(0x0,e[_0x53db2d(0x335)])(_0x3d5e0e)){this[_0x53db2d(0x8f)][_0x53db2d(0x36a)](_0x53db2d(0xb1),'transformStack\x20failed!',_0x5e66c3,_0x3d5e0e);break;}_0x513765=_0x5e66c3['c1Prime'],_0x3c5c98=_0x3d5e0e[_0x53db2d(0x157)],_0x323226['push']({'unitID':_0x29072,'undoMutations':_0x5e66c3[_0x53db2d(0x2c3)],'redoMutations':_0x3d5e0e[_0x53db2d(0x2c3)]});}return _0x323226['reverse']();}};Q=y([v(0x0,t[_0x5a7686(0x2d4)]),v(0x1,t[_0x5a7686(0x170)]),v(0x2,t['IContextService']),v(0x3,e[_0x5a7686(0x296)]),v(0x4,t[_0x5a7686(0x2c2)])],Q);let $=class extends t[_0x5a7686(0x338)]{constructor(_0x13134b=ee,_0x2a9879,_0x58c354,_0x16e429){const _0x3d5124=_0x5a7686;super(),this['_config']=_0x13134b,this[_0x3d5124(0x8f)]=_0x2a9879,this[_0x3d5124(0x271)]=_0x58c354,this[_0x3d5124(0x16d)]=_0x16e429;let {..._0x2d41cd}=(0x0,t[_0x3d5124(0x316)])({},ee,this['_config']);if(!_0x2d41cd[_0x3d5124(0x188)])throw Error(_0x3d5124(0x258));this[_0x3d5124(0x9a)]=_0x2d41cd,this[_0x3d5124(0x16d)][_0x3d5124(0x1b5)](m,_0x2d41cd);}[_0x5a7686(0x22a)](){const _0x41eb5e=_0x5a7686;this[_0x41eb5e(0x283)](),this[_0x41eb5e(0xe3)]();}[_0x5a7686(0x283)](){const _0x4a2cfc=_0x5a7686;var _0x434e39,_0x221124;this[_0x4a2cfc(0x271)]['has'](t[_0x4a2cfc(0x1fe)])&&this[_0x4a2cfc(0x8f)][_0x4a2cfc(0x36a)](_0x4a2cfc(0x279),_0x4a2cfc(0x19e));let _0x35f6f5=(0x0,t[_0x4a2cfc(0x145)])([[t[_0x4a2cfc(0x1fe)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0x4a2cfc(0x9a)][_0x4a2cfc(0x188)]}],[e[_0x4a2cfc(0x387)],{'useClass':Z}],[t[_0x4a2cfc(0x153)],{'useClass':G}],[t[_0x4a2cfc(0xee)],{'useClass':J}],[rt,{'useClass':U}],[t[_0x4a2cfc(0x34d)],{'useClass':Y}],[H],[tt]],(_0x434e39=this['_config'])==null?void 0x0:_0x434e39[_0x4a2cfc(0x30a)]);if(!((_0x221124=this[_0x4a2cfc(0x9a)])!=null&&_0x221124[_0x4a2cfc(0x1dc)])){let _0x33e6f7=_0x35f6f5['findIndex'](([_0x33f7d3])=>_0x33f7d3===w);_0x33e6f7!==-0x1&&_0x35f6f5['splice'](_0x33e6f7,0x1);}(0x0,t['registerDependencies'])(this['_injector'],_0x35f6f5);}['_initDependencies'](){const _0x1fa883=_0x5a7686;var _0x43c9c8,_0x1b7f0a;if(this[_0x1fa883(0x271)]['get'](l['HTTPService'])[_0x1fa883(0x1e3)]({'priority':0x14,'interceptor':(0x0,l[_0x1fa883(0x339)])({'maxParallel':0x6})}),!((_0x43c9c8=this['_config'])!=null&&_0x43c9c8['enableOfflineEditing'])){var _0x586718;(_0x586718=this[_0x1fa883(0x271)][_0x1fa883(0x1b7)](S,t[_0x1fa883(0x2a4)][_0x1fa883(0x152)]))==null||_0x586718[_0x1fa883(0x32d)]();}(_0x1b7f0a=this[_0x1fa883(0x9a)])!=null&&_0x1b7f0a[_0x1fa883(0x2ed)]&&(0x0,t['touchDependencies'])(this[_0x1fa883(0x271)],[[W]]),(0x0,t[_0x1fa883(0x1ad)])(this[_0x1fa883(0x271)],[[K],[H],[X]]);}};g($,_0x5a7686(0x22d),_0x5a7686(0x226)),g($,_0x5a7686(0x168),$e),g($,_0x5a7686(0x16f),et),$=y([(0x0,t[_0x5a7686(0x204)])(u['UniverLicensePlugin'],e[_0x5a7686(0x14c)],l[_0x5a7686(0x10b)]),v(0x1,t[_0x5a7686(0x2c2)]),v(0x2,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x3,t[_0x5a7686(0x298)])],$),exports['AttachmentSourceType']=nt,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x33b),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x5a7686(0x231),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x278),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x332),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x5a7686(0xd8)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x5a7686(0x331)]=m,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x179),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x5a7686(0xd8)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x33e),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x13e),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x1f3),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x2bb),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x2c9),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x5a7686(0x2bf)]=Be,exports['CollaborationUIEventId']=oe,exports[_0x5a7686(0x37f)]=_,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x178),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x5a7686(0x1ee)]=se,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x219),{'enumerable':!0x0,'get':function(){return M;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=te,exports[_0x5a7686(0x90)]='/universer-api/uniscript',exports[_0x5a7686(0x38a)]=_0x5a7686(0x8e),Object[_0x5a7686(0xd8)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x83),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x5a7686(0xf2),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x5a7686(0x272)]='HEARTBEAT_INTERVAL',exports[_0x5a7686(0x268)]=_0x5a7686(0xe4),exports[_0x5a7686(0x16a)]=rt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x5a7686(0x173)]=qe,exports[_0x5a7686(0x352)]=S,exports[_0x5a7686(0x297)]=We,exports[_0x5a7686(0x13f)]=w,exports[_0x5a7686(0x102)]=0x3e8,exports[_0x5a7686(0x32a)]=_0x5a7686(0x102),Object[_0x5a7686(0xd8)](exports,'MemberService',{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x377),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x392),{'enumerable':!0x0,'get':function(){return N;}}),Object['defineProperty'](exports,_0x5a7686(0x167),{'enumerable':!0x0,'get':function(){return k;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x5a7686(0x174)]='RETRY_CONNECTING_MAX_COUNT',exports['SessionStatus']=ve,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x2ca),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x1aa),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x82),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x26f),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x341),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x5a7686(0x133)]=Se,Object[_0x5a7686(0xd8)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports['deserializeToCombResponse']=Ge,exports[_0x5a7686(0x94)]=be,exports['serializeCombRequest']=Ke;