@univerjs-pro/collaboration-client 1.0.4 → 1.1.0

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 (91) 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/types/controllers/collaboration/collaboration-state.d.ts +51 -11
  65. package/lib/types/facade/f-collaboration.d.ts +3 -4
  66. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
  67. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +1 -0
  68. package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
  69. package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
  70. package/lib/umd/facade.js +1 -1
  71. package/lib/umd/index.js +1 -1
  72. package/lib/umd/locale/ar-SA.js +1 -1
  73. package/lib/umd/locale/ca-ES.js +1 -1
  74. package/lib/umd/locale/de-DE.js +1 -1
  75. package/lib/umd/locale/en-US.js +1 -1
  76. package/lib/umd/locale/es-ES.js +1 -1
  77. package/lib/umd/locale/fa-IR.js +1 -1
  78. package/lib/umd/locale/fr-FR.js +1 -1
  79. package/lib/umd/locale/id-ID.js +1 -1
  80. package/lib/umd/locale/it-IT.js +1 -1
  81. package/lib/umd/locale/ja-JP.js +1 -1
  82. package/lib/umd/locale/ko-KR.js +1 -1
  83. package/lib/umd/locale/pl-PL.js +1 -1
  84. package/lib/umd/locale/pt-BR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/sk-SK.js +1 -1
  87. package/lib/umd/locale/vi-VN.js +1 -1
  88. package/lib/umd/locale/zh-CN.js +1 -1
  89. package/lib/umd/locale/zh-HK.js +1 -1
  90. package/lib/umd/locale/zh-TW.js +1 -1
  91. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x51c992=_0x3ab5;(function(_0x47e575,_0x3f131f){const _0x13a324=_0x3ab5,_0x9de24d=_0x47e575();while(!![]){try{const _0x4a868f=parseInt(_0x13a324(0x33a))/0x1*(parseInt(_0x13a324(0x2ef))/0x2)+parseInt(_0x13a324(0x46f))/0x3*(-parseInt(_0x13a324(0x220))/0x4)+-parseInt(_0x13a324(0x347))/0x5*(-parseInt(_0x13a324(0x36a))/0x6)+-parseInt(_0x13a324(0x32b))/0x7+-parseInt(_0x13a324(0x18f))/0x8*(parseInt(_0x13a324(0x2da))/0x9)+-parseInt(_0x13a324(0x218))/0xa*(parseInt(_0x13a324(0x236))/0xb)+parseInt(_0x13a324(0x266))/0xc;if(_0x4a868f===_0x3f131f)break;else _0x9de24d['push'](_0x9de24d['shift']());}catch(_0x2a143d){_0x9de24d['push'](_0x9de24d['shift']());}}}(_0x60bf,0xc7868),Object['defineProperty'](exports,Symbol[_0x51c992(0x452)],{'value':'Module'}));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=_0x51c992(0x39b),ee={};function te(_0x41472c){const _0x2adb6c=_0x51c992;return JSON[_0x2adb6c(0x45d)](_0x41472c)[_0x2adb6c(0x187)];}function h(_0x442285){'@babel/helpers - typeof';const _0x4d94bd=_0x51c992;return h=typeof Symbol==_0x4d94bd(0x2b3)&&typeof Symbol[_0x4d94bd(0x3ef)]=='symbol'?function(_0x2fcef0){return typeof _0x2fcef0;}:function(_0x3b5eb1){const _0x4bc191=_0x4d94bd;return _0x3b5eb1&&typeof Symbol==_0x4bc191(0x2b3)&&_0x3b5eb1['constructor']===Symbol&&_0x3b5eb1!==Symbol[_0x4bc191(0x3fa)]?_0x4bc191(0x407):typeof _0x3b5eb1;},h(_0x442285);}function ne(_0x67a18f,_0x458af9){const _0x1b313e=_0x51c992;if(h(_0x67a18f)!='object'||!_0x67a18f)return _0x67a18f;var _0x3f67e1=_0x67a18f[Symbol[_0x1b313e(0x3f0)]];if(_0x3f67e1!==void 0x0){var _0x33a8cd=_0x3f67e1[_0x1b313e(0x454)](_0x67a18f,_0x458af9||_0x1b313e(0x19a));if(h(_0x33a8cd)!=_0x1b313e(0x31b))return _0x33a8cd;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x458af9===_0x1b313e(0x2dc)?String:Number)(_0x67a18f);}function re(_0x4e4aab){const _0x162027=_0x51c992;var _0x97f0df=ne(_0x4e4aab,_0x162027(0x2dc));return h(_0x97f0df)==_0x162027(0x407)?_0x97f0df:_0x97f0df+'';}function g(_0x458fe6,_0x5403d6,_0x36c256){return(_0x5403d6=re(_0x5403d6))in _0x458fe6?Object['defineProperty'](_0x458fe6,_0x5403d6,{'value':_0x36c256,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x458fe6[_0x5403d6]=_0x36c256,_0x458fe6;}let ie=function(_0xc7c05e){const _0x3f3525=_0x51c992;return _0xc7c05e[_0x3f3525(0x289)]=_0x3f3525(0x289),_0xc7c05e[_0x3f3525(0x3ae)]='PERMISSION_DENIED',_0xc7c05e[_0x3f3525(0x3af)]=_0x3f3525(0x3af),_0xc7c05e[_0x3f3525(0x25e)]=_0x3f3525(0x25e),_0xc7c05e[_0x3f3525(0x1ad)]=_0x3f3525(0x1ad),_0xc7c05e[_0x3f3525(0x2cf)]=_0x3f3525(0x2cf),_0xc7c05e[_0x3f3525(0x237)]='JOIN_ROOM_FAILED',_0xc7c05e[_0x3f3525(0x43a)]=_0x3f3525(0x43a),_0xc7c05e['SOCKET_FAILED']=_0x3f3525(0x1ce),_0xc7c05e[_0x3f3525(0x33c)]=_0x3f3525(0x33c),_0xc7c05e;}({});var _=class{constructor(){const _0x13f38a=_0x51c992;g(this,_0x13f38a(0x1e5),new i[(_0x13f38a(0x29d))]()),g(this,'event$',this[_0x13f38a(0x1e5)][_0x13f38a(0x3e3)]());}[_0x51c992(0x3e8)](_0x99385d){const _0x2bc159=_0x51c992;this[_0x2bc159(0x1e5)]['next'](_0x99385d);}},ae=class{constructor(){const _0x2da332=_0x51c992;g(this,_0x2da332(0x42a),new i[(_0x2da332(0x29d))]()),g(this,'commentUpdate$',this[_0x2da332(0x42a)][_0x2da332(0x3e3)]());}[_0x51c992(0x2aa)](_0x2af392){const _0x1aefac=_0x51c992;this[_0x1aefac(0x42a)][_0x1aefac(0x443)](_0x2af392);}};function v(_0x50110d,_0x4f07a0){return function(_0x57c8b9,_0x295836){_0x4f07a0(_0x57c8b9,_0x295836,_0x50110d);};}function y(_0x27adb2,_0x33ef4d,_0x81ee6,_0x33ff1a){const _0x15a711=_0x51c992;var _0x1167b6=arguments[_0x15a711(0x187)],_0x538276=_0x1167b6<0x3?_0x33ef4d:_0x33ff1a===null?_0x33ff1a=Object[_0x15a711(0x304)](_0x33ef4d,_0x81ee6):_0x33ff1a,_0x1e6dfb;if(typeof Reflect==_0x15a711(0x31b)&&typeof Reflect[_0x15a711(0x36c)]==_0x15a711(0x2b3))_0x538276=Reflect[_0x15a711(0x36c)](_0x27adb2,_0x33ef4d,_0x81ee6,_0x33ff1a);else{for(var _0x25e6fe=_0x27adb2[_0x15a711(0x187)]-0x1;_0x25e6fe>=0x0;_0x25e6fe--)(_0x1e6dfb=_0x27adb2[_0x25e6fe])&&(_0x538276=(_0x1167b6<0x3?_0x1e6dfb(_0x538276):_0x1167b6>0x3?_0x1e6dfb(_0x33ef4d,_0x81ee6,_0x538276):_0x1e6dfb(_0x33ef4d,_0x81ee6))||_0x538276);}return _0x1167b6>0x3&&_0x538276&&Object[_0x15a711(0x478)](_0x33ef4d,_0x81ee6,_0x538276),_0x538276;}let b=class extends t[_0x51c992(0x3ac)]{constructor(_0x4f3784){const _0x1725f2=_0x51c992;super(),this[_0x1725f2(0x322)]=_0x4f3784,g(this,_0x1725f2(0x1aa),new Map()),g(this,_0x1725f2(0x49e),new i[(_0x1725f2(0x29d))]()),this['disposeWithMe']((0x0,i[_0x1725f2(0x335)])(this[_0x1725f2(0x322)]['getTypeOfUnitDisposed$'](t[_0x1725f2(0x2b4)][_0x1725f2(0x3f5)])['pipe']((0x0,s[_0x1725f2(0x231)])(_0x4714d2=>_0x4714d2[_0x1725f2(0x1c8)]())),this['_univerInstanceService'][_0x1725f2(0x29f)](t['UniverInstanceType'][_0x1725f2(0x47c)])[_0x1725f2(0x3a2)]((0x0,s[_0x1725f2(0x231)])(_0xeb7993=>_0xeb7993[_0x1725f2(0x1c8)]())),this[_0x1725f2(0x322)][_0x1725f2(0x29f)](t['UniverInstanceType']['UNIVER_BOARD'])['pipe']((0x0,s[_0x1725f2(0x231)])(_0x2bf1bf=>_0x2bf1bf['getUnitId']())),this[_0x1725f2(0x322)]['getTypeOfUnitDisposed$'](t[_0x1725f2(0x2b4)][_0x1725f2(0x387)])[_0x1725f2(0x3a2)]((0x0,s[_0x1725f2(0x231)])(_0x390e25=>_0x390e25[_0x1725f2(0x1c8)]())))[_0x1725f2(0x481)](_0x338eb5=>this[_0x1725f2(0x2cb)](_0x338eb5)));}[_0x51c992(0x2e9)](_0x22aaf3){const _0x373407=_0x51c992;return this[_0x373407(0x1aa)][_0x373407(0x2d4)](_0x22aaf3)?(0x0,i['of'])(this['_roomMembers'][_0x373407(0x403)](_0x22aaf3)):this[_0x373407(0x49e)][_0x373407(0x3a2)]((0x0,s[_0x373407(0x231)])(_0x2e0e09=>{const _0x51ea73=_0x373407;if(_0x2e0e09===_0x22aaf3)return this[_0x51ea73(0x1aa)][_0x51ea73(0x403)](_0x2e0e09);}));}[_0x51c992(0x1eb)](_0xb22e6f,_0x13e768){const _0xa388a7=_0x51c992;let _0x4e459b=this[_0xa388a7(0x1aa)][_0xa388a7(0x403)](_0xb22e6f);_0x4e459b||(_0x4e459b=new oe(),this['_roomMembers']['set'](_0xb22e6f,_0x4e459b),this['_roomCreated$'][_0xa388a7(0x443)](_0xb22e6f)),_0x4e459b[_0xa388a7(0x1eb)](_0x13e768);}[_0x51c992(0x179)](_0x302306,_0x13c954){const _0x155fd4=_0x51c992;let _0x34f340=this[_0x155fd4(0x1aa)]['get'](_0x302306);_0x34f340&&_0x34f340[_0x155fd4(0x179)](_0x13c954);}['getRoom'](_0x270175){const _0x547a64=_0x51c992;return this['_roomMembers'][_0x547a64(0x403)](_0x270175);}[_0x51c992(0x1b5)](_0x2d0462,_0x5e43be){const _0x48ce24=_0x51c992;let _0x513812=this['_roomMembers'][_0x48ce24(0x403)](_0x2d0462);if(_0x513812)return _0x513812[_0x48ce24(0x1b5)](_0x5e43be);}[_0x51c992(0x2cb)](_0x4b8aa4){const _0x30c77a=_0x51c992;let _0x2ca327=this[_0x30c77a(0x1aa)]['get'](_0x4b8aa4);_0x2ca327&&(_0x2ca327['dispose'](),this[_0x30c77a(0x1aa)][_0x30c77a(0x404)](_0x4b8aa4));}[_0x51c992(0x37b)](){const _0x3f4178=_0x51c992;this[_0x3f4178(0x1aa)]['forEach'](_0x3ffde1=>_0x3ffde1[_0x3f4178(0x37b)]()),this[_0x3f4178(0x1aa)][_0x3f4178(0x47a)](),this[_0x3f4178(0x49e)][_0x3f4178(0x3a9)]();}};b=y([v(0x0,t[_0x51c992(0x1dd)])],b);var oe=class extends t[_0x51c992(0x3ac)]{constructor(..._0x524f3c){const _0x5c303d=_0x51c992;super(..._0x524f3c),g(this,_0x5c303d(0x3ad),new Map()),g(this,_0x5c303d(0x380),new i[(_0x5c303d(0x3f2))](this['_members'])),g(this,_0x5c303d(0x2a3),this[_0x5c303d(0x380)]['asObservable']());}[_0x51c992(0x37b)](){const _0x2b0961=_0x51c992;this['_members']['clear'](),this[_0x2b0961(0x380)]['complete']();}[_0x51c992(0x1eb)](_0x32b77b){const _0x3acbf9=_0x51c992;this['_members'][_0x3acbf9(0x35e)](_0x32b77b[_0x3acbf9(0x44a)],_0x32b77b),this[_0x3acbf9(0x1fc)]();}[_0x51c992(0x179)](_0x3a2340){const _0x35419e=_0x51c992;this[_0x35419e(0x3ad)][_0x35419e(0x404)](_0x3a2340),this[_0x35419e(0x1fc)]();}[_0x51c992(0x1b5)](_0x36691b){const _0x115a04=_0x51c992;return this[_0x115a04(0x3ad)][_0x115a04(0x403)](_0x36691b);}[_0x51c992(0x3ea)](){const _0x22213e=_0x51c992;return Array[_0x22213e(0x1f3)](this['_members'][_0x22213e(0x215)]());}[_0x51c992(0x1fc)](){const _0x1eac08=_0x51c992;this[_0x1eac08(0x380)][_0x1eac08(0x443)](this[_0x1eac08(0x3ad)]);}};function se(_0x4edd19,_0x5038a1){const _0x25f9ec=_0x51c992;if(le(_0x4edd19))return _0x5038a1;if(_0x5038a1[_0x25f9ec(0x309)]===e['CollaborationEvent'][_0x25f9ec(0x1de)]){let _0x30ecaa=me(_0x4edd19),_0x31401c=_0x5038a1;return{..._0x31401c,'data':{..._0x31401c[_0x25f9ec(0x2e1)],'unitID':_0x4edd19[_0x25f9ec(0x280)]['unitId'],'unitType':_0x4edd19[_0x25f9ec(0x280)]['unitType']??_0x31401c[_0x25f9ec(0x2e1)][_0x25f9ec(0x19c)],'changeset':_0x30ecaa[_0x25f9ec(0x3c7)](_0x31401c['data'][_0x25f9ec(0x184)],he(_0x4edd19))}};}if(_0x5038a1[_0x25f9ec(0x309)]===e[_0x25f9ec(0x496)]['FETCH_MISSING']){let _0x274f10=_0x5038a1;return{..._0x274f10,'data':{..._0x274f10[_0x25f9ec(0x2e1)],'unitID':_0x4edd19[_0x25f9ec(0x280)][_0x25f9ec(0x44c)],'unitType':_0x4edd19[_0x25f9ec(0x280)][_0x25f9ec(0x19c)]??_0x274f10[_0x25f9ec(0x2e1)]['unitType']}};}return _0x5038a1;}function ce(_0x199dc9,_0x421f30){const _0x2da760=_0x51c992;if(le(_0x199dc9))return[_0x421f30];switch(_0x421f30[_0x2da760(0x309)]){case e['CollaborationEvent']['NEW_CHANGESETS']:return[ue(_0x199dc9,_0x421f30)];case e[_0x2da760(0x496)][_0x2da760(0x40a)]:return[fe(_0x199dc9,_0x421f30)];case e['CollaborationEvent'][_0x2da760(0x2cd)]:return[de(_0x199dc9,_0x421f30)];default:return[_0x421f30];}}function le(_0x265422){const _0x3d79ca=_0x51c992;return _0x265422['target'][_0x3d79ca(0x2ee)]==null&&_0x265422[_0x3d79ca(0x280)][_0x3d79ca(0x44c)]===_0x265422['localUnitId']&&!_0x265422[_0x3d79ca(0x184)];}function ue(_0x10d8bb,_0x48b003){const _0x1d6e54=_0x51c992;return{..._0x48b003,'data':(0x0,e[_0x1d6e54(0x225)])(pe(_0x10d8bb,(0x0,e[_0x1d6e54(0x3a5)])(_0x48b003[_0x1d6e54(0x2e1)])))};}function de(_0x104bb5,_0x4d5843){const _0x2d806b=_0x51c992;return{..._0x4d5843,'data':pe(_0x104bb5,_0x4d5843[_0x2d806b(0x2e1)])};}function fe(_0x15102e,_0x4bf32e){const _0x537816=_0x51c992;let _0x2ea62d=_0x4bf32e[_0x537816(0x2e1)];return{..._0x4bf32e,'data':{..._0x2ea62d,'changesets':_0x2ea62d[_0x537816(0x1b9)]['map'](_0x24ef97=>(0x0,e[_0x537816(0x225)])(pe(_0x15102e,(0x0,e[_0x537816(0x3a5)])(_0x24ef97))))}};}function pe(_0x90073f,_0x5e26cc){const _0x79d4ce=_0x51c992;return me(_0x90073f)[_0x79d4ce(0x2c5)](_0x5e26cc,he(_0x90073f));}function me(_0x13af7d){const _0x679ebe=_0x51c992;if(!_0x13af7d[_0x679ebe(0x184)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x13af7d[_0x679ebe(0x184)];}function he(_0x3339a7){const _0x14ac1b=_0x51c992;return{'localUnitId':_0x3339a7[_0x14ac1b(0x242)],'unitType':_0x3339a7[_0x14ac1b(0x19c)],'target':_0x3339a7['target']};}let ge=function(_0x1a423c){const _0x319e25=_0x51c992;return _0x1a423c[_0x1a423c[_0x319e25(0x406)]=0x0]=_0x319e25(0x406),_0x1a423c[_0x1a423c[_0x319e25(0x3aa)]=0x1]=_0x319e25(0x3aa),_0x1a423c[_0x1a423c[_0x319e25(0x40d)]=0x2]=_0x319e25(0x40d),_0x1a423c[_0x1a423c['ONLINE']=0x3]='ONLINE',_0x1a423c;}({});const _e={[a['CmdRspCode'][_0x51c992(0x425)]]:_0x51c992(0x3c2),[a['CmdRspCode'][_0x51c992(0x1a1)]]:_0x51c992(0x395),[a[_0x51c992(0x28c)][_0x51c992(0x2f1)]]:_0x51c992(0x441),[a[_0x51c992(0x28c)][_0x51c992(0x2f3)]]:_0x51c992(0x490),[a[_0x51c992(0x28c)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x51c992(0x495)};let ve=class extends t[_0x51c992(0x251)]{get[_0x51c992(0x3ab)](){const _0x413dec=_0x51c992;return this[_0x413dec(0x1e1)][_0x413dec(0x2a8)]();}constructor(_0x59743f,_0x332d33,_0x544092,_0x109538,_0x392908,_0x3be8f8,_0xf9fe9a,_0x77a54c){const _0x52621e=_0x51c992;super(),this[_0x52621e(0x38d)]=_0x59743f,this[_0x52621e(0x396)]=_0x544092,this[_0x52621e(0x214)]=_0x109538,this[_0x52621e(0x2c0)]=_0x392908,this[_0x52621e(0x2c6)]=_0x3be8f8,this[_0x52621e(0x2f5)]=_0xf9fe9a,this['_telemetryService']=_0x77a54c,g(this,_0x52621e(0x1e1),new i[(_0x52621e(0x3f2))](0x0)),g(this,'sessionStatus$',this['_sessionStatus$'][_0x52621e(0x3e3)]()),g(this,_0x52621e(0x1e5),new i['Subject']()),g(this,_0x52621e(0x40b),this[_0x52621e(0x1e5)][_0x52621e(0x3e3)]()),g(this,'_socket',void 0x0),g(this,_0x52621e(0x447),void 0x0),g(this,_0x52621e(0x273),void 0x0),g(this,'_shouldReportTelemetry',!0x1),g(this,_0x52621e(0x3c1),null),this['_shouldReportTelemetry']=!!this[_0x52621e(0x22c)],_0x332d33[_0x52621e(0x3a2)]((0x0,i[_0x52621e(0x2ec)])(this[_0x52621e(0x257)]))[_0x52621e(0x481)](_0x1618e9=>{const _0x1632c1=_0x52621e;if(_0x1618e9!==void 0x0){if(this[_0x1632c1(0x429)]=_0x1618e9,_0x1618e9)this[_0x1632c1(0x1dc)](_0x1618e9),this[_0x1632c1(0x447)]=_0x1618e9[_0x1632c1(0x194)]['subscribe'](_0x359a28=>{const _0x1b6552=_0x1632c1;_0x359a28[_0x1b6552(0x308)]===this[_0x1b6552(0x38d)][_0x1b6552(0x280)]['unitId']&&this[_0x1b6552(0x265)](_0x359a28);});else{var _0x21ae00;this[_0x1632c1(0x332)](),this['_sessionStatus$'][_0x1632c1(0x443)](0x2),(_0x21ae00=this[_0x1632c1(0x447)])==null||_0x21ae00[_0x1632c1(0x2df)](),this[_0x1632c1(0x447)]=null;}}});}[_0x51c992(0x30d)](){const _0x3a945b=_0x51c992;var _0x19baad;return((_0x19baad=this['_socket'])==null?void 0x0:_0x19baad[_0x3a945b(0x44a)])??null;}[_0x51c992(0x37b)](){const _0x5904b7=_0x51c992;super[_0x5904b7(0x37b)](),this[_0x5904b7(0x35f)](),this[_0x5904b7(0x257)]['next'](),this[_0x5904b7(0x257)][_0x5904b7(0x3a9)]();}['close'](){const _0x5c3b59=_0x51c992;var _0x59540b;this[_0x5c3b59(0x332)](),(_0x59540b=this[_0x5c3b59(0x429)])==null||_0x59540b[_0x5c3b59(0x2a9)]({'cmd':a[_0x5c3b59(0x399)][_0x5c3b59(0x442)],'data':{'roomID':this[_0x5c3b59(0x38d)][_0x5c3b59(0x280)]['unitId']}}),this[_0x5c3b59(0x1e5)][_0x5c3b59(0x3a9)](),this[_0x5c3b59(0x1e1)][_0x5c3b59(0x3a9)]();}[_0x51c992(0x265)](_0x47368b){const _0x1e63ad=_0x51c992;_0x47368b[_0x1e63ad(0x19b)]===a[_0x1e63ad(0x399)][_0x1e63ad(0x1af)]?this[_0x1e63ad(0x244)](_0x47368b):_0x47368b[_0x1e63ad(0x19b)]===a[_0x1e63ad(0x399)][_0x1e63ad(0x3ce)]&&this[_0x1e63ad(0x2ae)](_0x47368b);}['_joinRoom'](_0x43c62e){const _0x1a6fed=_0x51c992;this[_0x1a6fed(0x1e1)][_0x1a6fed(0x443)](0x1),_0x43c62e['send']({'cmd':a[_0x1a6fed(0x399)][_0x1a6fed(0x1af)],'routeKey':this[_0x1a6fed(0x38d)][_0x1a6fed(0x280)][_0x1a6fed(0x44c)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1a6fed(0x38d)][_0x1a6fed(0x280)][_0x1a6fed(0x44c)]}]}});}['_onJoinRoomEvent'](_0x2503e7){const _0x37034f=_0x51c992;var _0x4af724;if(_0x2503e7['code']in _e){this[_0x37034f(0x2f5)][_0x37034f(0x3e8)]({'id':_0x37034f(0x237),'data':_e[_0x2503e7[_0x37034f(0x25c)]]}),this[_0x37034f(0x1e1)][_0x37034f(0x443)](0x2);return;}this['_sessionStatus$'][_0x37034f(0x443)](0x3);let _0x32d1de=(_0x4af724=_0x2503e7['data'][_0x37034f(0x1fa)][this['_identity'][_0x37034f(0x280)]['unitId']])==null?void 0x0:_0x4af724[_0x37034f(0x28f)];_0x32d1de&&_0x32d1de[_0x37034f(0x1be)](_0x1139b6=>this[_0x37034f(0x2c0)]['updateMember'](this['_identity'][_0x37034f(0x242)],_0x1139b6));}['_onRecvEvent'](_0x2ae878){const _0xef1b7a=_0x51c992;try{let _0x4eebe2=ce(this['_identity'],_0x2ae878['data']);for(let _0x13703f of _0x4eebe2)switch(_0x13703f[_0xef1b7a(0x309)]){case e[_0xef1b7a(0x496)][_0xef1b7a(0x2c2)]:this[_0xef1b7a(0x493)](_0x13703f),this['_event$'][_0xef1b7a(0x443)](_0x13703f);break;case e[_0xef1b7a(0x496)][_0xef1b7a(0x34e)]:this['_onUserLeave'](_0x13703f),this['_event$']['next'](_0x13703f);break;case e[_0xef1b7a(0x496)]['CHANGESET_ACK']:case e[_0xef1b7a(0x496)][_0xef1b7a(0x2cd)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0xef1b7a(0x41e)](),this['_event$'][_0xef1b7a(0x443)](_0x13703f);break;case e[_0xef1b7a(0x496)][_0xef1b7a(0x1c6)]:this[_0xef1b7a(0x396)][_0xef1b7a(0x420)](_0xef1b7a(0x24b)+JSON[_0xef1b7a(0x45d)](_0x13703f)),this[_0xef1b7a(0x1e5)][_0xef1b7a(0x443)](_0x13703f);break;case e['CollaborationEvent'][_0xef1b7a(0x2c8)]:this[_0xef1b7a(0x2c6)][_0xef1b7a(0x2aa)](_0x13703f['data']),this['_event$'][_0xef1b7a(0x443)](_0x13703f);break;default:this[_0xef1b7a(0x1e5)][_0xef1b7a(0x443)](_0x13703f);}}catch(_0xc9433a){this[_0xef1b7a(0x396)]['error'](_0xc9433a,_0x2ae878);}}[_0x51c992(0x493)](_0x5136d3){const _0x51e78f=_0x51c992;this[_0x51e78f(0x2c0)][_0x51e78f(0x1eb)](this[_0x51e78f(0x38d)]['localUnitId'],_0x5136d3[_0x51e78f(0x2e1)]);}['_onUserLeave'](_0x2744a5){const _0x3c7d50=_0x51c992;this[_0x3c7d50(0x2c0)]['removeMember'](this[_0x3c7d50(0x38d)][_0x3c7d50(0x242)],_0x2744a5[_0x3c7d50(0x2e1)]['memberID']);}async[_0x51c992(0x2a9)](_0xb10f22,_0x4bd263){const _0x3a41f2=_0x51c992;if(this[_0x3a41f2(0x3ab)]!==0x3||!this[_0x3a41f2(0x429)])throw Error(_0x3a41f2(0x455));try{let _0x2b338d=se(this['_identity'],_0xb10f22);_0x2b338d[_0x3a41f2(0x309)]===e[_0x3a41f2(0x496)]['SUBMIT_CHANGESET']&&(this[_0x3a41f2(0x239)](),this[_0x3a41f2(0x315)](_0x2b338d)),this['_socket'][_0x3a41f2(0x2a9)]({'cmd':a[_0x3a41f2(0x399)][_0x3a41f2(0x37f)],'routeKey':this[_0x3a41f2(0x38d)][_0x3a41f2(0x280)]['unitId'],'routeType':'','data':_0x2b338d});}catch(_0x3e7e56){this['_logService'][_0x3a41f2(0x420)](_0x3e7e56);}}[_0x51c992(0x239)](){const _0x32e721=_0x51c992;this[_0x32e721(0x273)]=setTimeout(()=>{const _0x3301c6=_0x32e721;this['_collaborationTimeoutTimer']=null,this['_collaborationUIEventService'][_0x3301c6(0x3e8)]({'id':_0x3301c6(0x33c)});},this[_0x32e721(0x214)][_0x32e721(0x310)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x51c992(0x41e)](){const _0x4fbc67=_0x51c992;this['_collaborationTimeoutTimer']&&=(clearTimeout(this[_0x4fbc67(0x273)]),null);}['_startTelemetryCollaborationNewChangeset'](_0xdd6da1){const _0x212f49=_0x51c992;if(!this[_0x212f49(0x39d)])return;let {data:_0x5b495c}=_0xdd6da1,{unitID:_0x470d16,changeset:_0x1a77e8}=_0x5b495c,{mutations:_0x2dce5f,type:_0x477c31}=_0x1a77e8;this[_0x212f49(0x3c1)]={'unitId':_0x470d16,'type':_0x477c31,'startTime':performance[_0x212f49(0x472)](),'stopTime':0x0,'duration':0x0,'size':te(_0x2dce5f)};}[_0x51c992(0x24d)](){const _0x5a2d23=_0x51c992;if(this['_shouldReportTelemetry']){if(!this[_0x5a2d23(0x3c1)]){this[_0x5a2d23(0x396)][_0x5a2d23(0x420)](_0x5a2d23(0x1d7),_0x5a2d23(0x2fb));return;}this[_0x5a2d23(0x3c1)][_0x5a2d23(0x416)]=performance['now'](),this[_0x5a2d23(0x3c1)][_0x5a2d23(0x3df)]=this['_telemetryInfo']['stopTime']-this['_telemetryInfo'][_0x5a2d23(0x176)],this['_telemetryService'][_0x5a2d23(0x460)]('collaboration_new_changeset',this['_telemetryInfo']),this[_0x5a2d23(0x3c1)]=null;}}[_0x51c992(0x332)](){const _0x11d6bf=_0x51c992;this[_0x11d6bf(0x3c1)]=null;}};ve=y([v(0x2,t[_0x51c992(0x291)]),v(0x3,t[_0x51c992(0x46e)]),v(0x4,(0x0,t['Inject'])(b)),v(0x5,(0x0,t[_0x51c992(0x1ba)])(ae)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x51c992(0x47e)])(o[_0x51c992(0x205)]))],ve);const x=(0x0,t[_0x51c992(0x2e3)])(_0x51c992(0x44b));function ye(_0x56b8a3){const _0x1d19d7=_0x51c992;return _0x1d19d7(0x17e)+_0x56b8a3;}function be(_0x4dbcae){const _0x1d17b1=_0x51c992;let {unitID:_0x3bfb87,mutations:_0x210123}=_0x4dbcae;return{'unitId':_0x3bfb87,'subUnitId':_0x210123[_0x1d17b1(0x187)]>0x0?_0x210123[0x0][_0x1d17b1(0x2a5)][_0x1d17b1(0x26b)]:null};}let S=class{constructor(_0x3f9894,_0x4efaee,_0x39c671){const _0x1f5936=_0x51c992;this['_injector']=_0x3f9894,this[_0x1f5936(0x364)]=_0x4efaee,this[_0x1f5936(0x2ba)]=_0x39c671;}[_0x51c992(0x24e)](_0x377342){const _0x361d11=_0x51c992;var _0x14da3d,_0x20416b;let _0x9dc1d7=this[_0x361d11(0x4a1)][_0x361d11(0x403)](r[_0x361d11(0x46b)]),{unitId:_0x2d30f9,subUnitId:_0x1976f3}=be(_0x377342),_0x5e7331=_0x9dc1d7==null?void 0x0:_0x9dc1d7[_0x361d11(0x279)](_0x2d30f9)[_0x361d11(0x26e)](),_0x56c600=(_0x14da3d=this[_0x361d11(0x2ba)][_0x361d11(0x2e2)](_0x2d30f9))==null||(_0x14da3d=_0x14da3d[_0x361d11(0x286)]())==null?void 0x0:_0x14da3d[_0x361d11(0x2d6)]();if(_0x5e7331[_0x361d11(0x187)]===0x0||!_0x2d30f9||!_0x1976f3)return;let _0x2c8905=[{'id':r[_0x361d11(0x474)]['id'],'params':{'unitId':_0x2d30f9,'subUnitId':_0x56c600,'selections':t['Tools'][_0x361d11(0x290)](_0x5e7331)}}],_0x540d65=this[_0x361d11(0x364)][_0x361d11(0x262)](_0x377342,_0x2c8905);if(!(0x0,e[_0x361d11(0x21b)])(_0x540d65))throw _0x540d65[_0x361d11(0x420)];let _0x477c2c=(_0x20416b=_0x540d65[_0x361d11(0x1d1)][0x0])==null||(_0x20416b=_0x20416b[_0x361d11(0x2a5)])==null?void 0x0:_0x20416b[_0x361d11(0x30b)];if(Array[_0x361d11(0x29b)](_0x477c2c)&&_0x477c2c['length']){if(_0x477c2c[_0x361d11(0x187)]===_0x2c8905[0x0][_0x361d11(0x2a5)]['selections'][_0x361d11(0x187)]&&_0x477c2c[_0x361d11(0x1cb)]((_0x32740f,_0x3aa5a2)=>t[_0x361d11(0x294)][_0x361d11(0x43b)](_0x32740f[_0x361d11(0x1e4)],_0x2c8905[0x0][_0x361d11(0x2a5)]['selections'][_0x3aa5a2]['range'])))return;this[_0x361d11(0x4a1)][_0x361d11(0x403)](t[_0x361d11(0x48c)])[_0x361d11(0x1f8)](r['SetSelectionsOperation']['id'],{'unitId':_0x2d30f9,'subUnitId':_0x56c600,'selections':_0x477c2c});}}};S=y([v(0x0,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x1,e[_0x51c992(0x354)]),v(0x2,t[_0x51c992(0x1dd)])],S);function _0x3ab5(_0x515c6d,_0x30aaa8){_0x515c6d=_0x515c6d-0x176;const _0x60bff3=_0x60bf();let _0x3ab550=_0x60bff3[_0x515c6d];return _0x3ab550;}const C=(0x0,t[_0x51c992(0x2e3)])(_0x51c992(0x32e));let xe=function(_0xb6e8e1){const _0x14b742=_0x51c992;return _0xb6e8e1[_0xb6e8e1[_0x14b742(0x2b7)]=0x0]=_0x14b742(0x2b7),_0xb6e8e1[_0xb6e8e1[_0x14b742(0x2f2)]=0x1]=_0x14b742(0x2f2),_0xb6e8e1;}({});function Se(_0x5f6e4f){const _0x19832d=_0x51c992;var _0x129e53;return!!((_0x129e53=_0x5f6e4f[_0x19832d(0x2a5)])!=null&&_0x129e53['__splitChunk__']);}const Ce=new Set([r['InsertSheetMutation']['id']]),we=new Set([c['AddSlidePageMutation']['id'],c[_0x51c992(0x40c)]['id'],c[_0x51c992(0x32a)]['id'],c[_0x51c992(0x219)]['id']]);function Te(_0xe8027c,_0x1b04cf=Ce){const _0x3ae594=_0x51c992;let _0x5f00bc=[];for(let _0x5d7750 of _0xe8027c){if(_0x1b04cf[_0x3ae594(0x2d4)](_0x5d7750['id'])){if(_0x5f00bc['length']>0x0)break;_0x5f00bc[_0x3ae594(0x499)](_0x5d7750);break;}if(Se(_0x5d7750)){if(_0x5f00bc['length']>0x0)break;_0x5f00bc[_0x3ae594(0x499)](_0x5d7750);break;}_0x5f00bc['push'](_0x5d7750);}return _0x5f00bc;}function w(_0x10c00f,_0x5144b4,_0x40e328,_0x51a6a8,_0x5e87c4){const _0x363816=_0x51c992;let _0x1de105=Te(_0x10c00f),_0x3ff42b=_0x5e87c4['getCurrentUser'](),_0x531c41=(_0x3ff42b==null?void 0x0:_0x3ff42b['userID'])??_0x363816(0x216),_0x51845e=(_0x3ff42b==null?void 0x0:_0x3ff42b[_0x363816(0x44a)])??_0x363816(0x216);return{'changeset':{'unitID':_0x5144b4,'type':(0x0,e[_0x363816(0x180)])(_0x40e328[_0x363816(0x188)](_0x5144b4)),'baseRev':_0x51a6a8['getCurrentRevOfUnit'](_0x5144b4),'revision':0x0,'userID':_0x531c41,'memberID':_0x51845e,'mutations':_0x1de105},'pendingMutations':_0x10c00f[_0x363816(0x1f1)](_0x1de105[_0x363816(0x187)])};}const Ee=w;function De(_0x2f6f43,_0x53c992,_0x35d1cf,_0x5203b1,_0x163bf8){const _0x5d9783=_0x51c992;let _0x185ace=Te(_0x2f6f43,we),_0x161f46=_0x163bf8[_0x5d9783(0x28d)](),_0x55ad2c=(_0x161f46==null?void 0x0:_0x161f46[_0x5d9783(0x183)])??'unknown',_0x2d0242=(_0x161f46==null?void 0x0:_0x161f46[_0x5d9783(0x44a)])??_0x5d9783(0x216);return{'changeset':{'unitID':_0x53c992,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x35d1cf[_0x5d9783(0x188)](_0x53c992)),'baseRev':_0x5203b1['getCurrentRevOfUnit'](_0x53c992),'revision':0x0,'userID':_0x55ad2c,'memberID':_0x2d0242,'mutations':_0x185ace},'pendingMutations':_0x2f6f43[_0x5d9783(0x1f1)](_0x185ace[_0x5d9783(0x187)])};}function Oe(_0x3a4719,_0x3077ab,_0x599cf7,_0x66ab5f,_0x277d6c){const _0x5b4905=_0x51c992;let _0xcdbb4f=_0x3a4719[_0x5b4905(0x42c)]((_0x1de8a8,_0x56f733)=>{const _0x507fea=_0x5b4905;let _0x3a1381=_0x1de8a8[_0x1de8a8['length']-0x1],{id:_0x5c157d}=_0x3a1381??{},{id:_0x39e1f5,type:_0x2f5d10}=_0x56f733,_0x5a7601=_0x56f733[_0x507fea(0x2a5)];if(_0x5c157d&&_0x5c157d!==_0x39e1f5)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5c157d+_0x507fea(0x485)+_0x39e1f5+'.');if(!_0x3a1381)return[{'id':_0x39e1f5,'type':_0x2f5d10,'params':{'unitId':_0x5a7601[_0x507fea(0x44c)],'textRanges':_0x5a7601[_0x507fea(0x30f)],'actions':_0x5a7601['actions']}}];let _0x1c5457=_0x3a1381[_0x507fea(0x2a5)];return ke(_0x1c5457,_0x5a7601)?[..._0x1de8a8[_0x507fea(0x1f1)](0x0,-0x1),{..._0x3a1381,'id':_0x39e1f5,'type':_0x2f5d10,'params':{'unitId':_0x5a7601[_0x507fea(0x44c)],'textRanges':_0x5a7601[_0x507fea(0x30f)],'actions':t['JSONX']['compose'](_0x1c5457[_0x507fea(0x27c)],_0x5a7601[_0x507fea(0x27c)])}}]:[..._0x1de8a8,{'id':_0x39e1f5,'type':_0x2f5d10,'params':{'unitId':_0x5a7601['unitId'],'textRanges':_0x5a7601['textRanges'],'actions':_0x5a7601['actions']}}];},[]),_0x56ed63=_0x277d6c[_0x5b4905(0x28d)](),_0x5493e4=(_0x56ed63==null?void 0x0:_0x56ed63['userID'])??_0x5b4905(0x216),_0x30c85c=(_0x56ed63==null?void 0x0:_0x56ed63[_0x5b4905(0x44a)])??'unknown';return{'changeset':{'unitID':_0x3077ab,'type':(0x0,e[_0x5b4905(0x180)])(_0x599cf7[_0x5b4905(0x188)](_0x3077ab)),'baseRev':_0x66ab5f[_0x5b4905(0x388)](_0x3077ab),'revision':0x0,'userID':_0x5493e4,'memberID':_0x30c85c,'mutations':_0xcdbb4f},'pendingMutations':_0x3a4719[_0x5b4905(0x1f1)](_0x3a4719[_0x5b4905(0x187)])};}function ke(_0x4e7090,_0x49db5b){const _0x1cd00b=_0x51c992;return!Ae(_0x4e7090)&&!Ae(_0x49db5b)&&je(_0x4e7090[_0x1cd00b(0x27c)],_0x49db5b[_0x1cd00b(0x27c)]);}function _0x60bf(){const _0x3e21ef=['_type','toggleOnline','RETRY_CONNECTING_MAX_COUNT','getOwnPropertyDescriptor','_resendWithTimeout','_prepareTransformSelections','retryConnectingTimer','routeKey','eventID','loadOfflineData','selections','loadPdf','getMemberID','_submitChangeset','textRanges','getConfig','HEARTBEAT','listRoles','CollaborationEntity','_transformStack','_startTelemetryCollaborationNewChangeset','&to=','getLatestCsReqIdBySid','CollaborationSession','NEW_CHANGESETS','Base','object','_lockTransition','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','unitInfo$','_createHandler','resolveUnit','create','_univerInstanceService','refreshUnit','action','SheetTransformSelectionsService','_onRemoteChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ReplaySubject','name','MoveSlidePageMutation','10436867wZyTYG','_sendingTimer','sort','univer-pro.collaboration-client.single-active-unit-service','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','subject','copyFileMeta','_throwTelemetryCollaborationNewChangeset','retryConnectingInterval','_unitLoaded$','merge','_tryReconnect','SYNCED','entries','signUrlServerUrl','67388QCHVxk','ImageUploadStatusType','SUBMIT_CHANGESET_TIMEOUT','tables','univer-pro.collaboration-client-socket-service','onTransformState','FETCH_MISSING','setWaitCount','RevisionService','_imageSourceCache','_collaborationPaused','requireSession','INetworkConditionService','4145xlStyd','__Key__','registerDependencies','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','headers','DocCollaborationEntity','registerHTTPInterceptor','USERS_LEAVE','CollaborationStatus','UnitEmbedded','SlideCollaborationEntity','_getDownloadEndpointURL','text-x','ITransformService','sheets','ERROR_IMAGE','_change$','ISingleActiveUnitService','ICollaborationSocketService','Failed\x20to\x20update\x20permission\x20point','_waitCount','appendMutation','pending','set','close','isPermissionRej','loadDoc','_initDependencies','/universer-api/oidc/authpage','_transformService','columnGroups','maxSize','DependentOn','liveShareOperation','fetch_missing','9906oMnNzO','onload','decorate','encrypt','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_closedUnits','CollaborationImageIoService','socket\x20open.','getResourcesRequest','_incrementRevisionNumber','getUnitOnRev','responseType','pauseCollaboration','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','touchDependencies','_collabSessionService','_transformIMECache','dispose','_transformSelections','_onRemoteRetry','localeService','INGEST','_members$','update','_getUploadFileURL','_createInitialState','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/new_changes','/universer-api/stream/file/upload','UNIVER_BASE','getCurrentRevOfUnit','getTypeOfUnitAdded$','FileSource','error$','_acknowledgedAwaitingRevision','_identity','toggleOffline','/collaborator','IUndoRedoService','_config','_transformStateCache','_initMergeInterceptor','submit\x20changeset\x20error!','session.room-full','_logService','catch','BASE64','CombCmd','enableCollaboration','collaboration-client.config','_initCloseConn','_shouldReportTelemetry','_pendingMutations','PERMISSION_REJ','LocalUndoRedoService','/allowed','pipe','charCodeAt','_getSocketChannel','parseProtocolChangeset','SNAPSHOT_URL_KEY','requestParams','onTransformRemoteChangesetByIMECache','complete','JOINING','sessionStatus','Disposable','_members','PERMISSION_DENIED','CONFLICT_PROCESSING','?size=','_onRemoteRejected','onMissedChangesetFetched','roles','onSyncEditingCollabCursor','_refreshUnitPermission','socketMessageSubscription','AuthzIoHttpService','allowed','DataLoaderService','_changesetSessionId','collaborators','BoardCollaborationEntity','conflict','packageName','awaiting_with_pending','textEncoder','_telemetryInfo','session.join-failed','getLocalCacheKey','getDeserializedSheetBlock','ws://127.0.0.1:8000/universer-api/comb/connect','c1Prime','toRemote','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','ISocketService','\x0aAfter:\x20','sendChangesetTimeout','localCacheService','_toggleOffline','RECV','createSocket','resend','commentUpdateEvent','UnitStatus','_cfgEnableObjInherit','resolveWithBasePath','_localeService','toString','_HTTPService','filter','_clearScheduledTask','updateOfflineData','LIVESHARE_OPERATION','updateCursorEvent','UNISCRIPT_RUN','_pendingSessions','duration','SHOULD_CLOSE_CONN','[OfflineState]:\x20received\x20rejection.','UUID','asObservable','_commandService','socket$','_sheetTransformSelectionsService','HEARTBEAT_INTERVAL','emitEvent','initWorkbookPermissionChange','getAllMembers','UNIVER_PDF','isTransformChangesetsSuccess','objectID','permissionRejEvent','iterator','toPrimitive','DisposableCollection','BehaviorSubject','UNIVER_BOARD','AWAITING_WITH_PENDING','UNIVER_SHEET','list','[CollaborationState]:\x20apply\x20error!','awaitingChangeset','ImageSourceType','prototype','createInstance','type','DEFAULT_COLLAB_WEB_SOCKET_URL','/universer-api/uniscript','_userManagerService','Edit','Injector','_compressMutationService','get','delete','_fetchMissChangesets','IDLE','symbol','url','setConfig','PSEUDO_FETCH_MISSING_RESULT','event$','EnsureSlideMasterPageMutation','OFFLINE','FetchingMissState','_handlerCallback','IAttachmentIoService','loadBase','&assign=','clearOfflineData','onStarting','_resendTimeout','stopTime','onlyLocal','saveAttachment','&source=','updateSnapshot','COMPRESS_MUTATION_SEND','PERSON','transformStack\x20failed!','_clearCollaborationTimeoutTimer','endpointKey','error','_handler','isTransformMutationsWithChangesetFailure','objectType','joinRsp','FAIL','_onConnectionOpen','setShowComponents','sendHeartbeatTimer','_socket','_commentUpdate$','getCollabEntity$','reduce','addImageSourceCache','toDisposable','objectId','_remoteChangesetQueue','_sender','session','unitLoaded$','status$','_state$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','UNIVER_COLLABORATION_CLIENT_PLUGIN','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','UNIVER_SLIDE','SOCKET_FAILED_RETRY','equals','ISnapshotServerService','loadSheet','onRemoteChangeset','fromCollab','debug','session.room-not-exists','LEAVE','next','put','UniverLicensePlugin','_isEchoedAwaitingChangeset','_socketMessageSubscription','_upload','POST','memberID','collaboration-client.local-cache-service','unitId','CollaborationController','onRemoteRej','ObjectPermissionService','authzUrl','_localCacheService','toStringTag','_tryEnsureSocket','call','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','status','WorkbookEditablePermission','onRemoteAck','method','add','replace','avatar','stringify','_resendTimer','fetchMissingChangesets','capture','revision','_transitionLocked','CHANGESET_REJ','COLLABORATION_ENDPOINT_INVALID','transformUndoRedo','loadUnitOfRevision','\x0aCurrent:\x20','/role','result','_onOffline','SheetsSelectionsService','_unlockTransition','resolve','IConfigService','3JOqZIc','_substituteUndoStack','SnapshotServerOverHTTPService','now','csRejEvent','SetSelectionsOperation','transformChangesets','UPDATE_CURSOR','startsWith','defineProperty','getAllPermissionPoint','clear','_onFetchMissResult','UNIVER_DOC','accept','Optional','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','CollaborationSocketService','subscribe','ConflictState','append','post','\x20-\x20','indexOf','SyncedState','MUTATION','_transformRemoteChangesetByIMECache','[CollaborationSessionService]','_onConnectionFailed','ICommandService','encodeURIComponent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','findIndex','session.room-permission-denied','objectPermissionTypes','HTTPService','_onUserJoin','_changesetReqId','session.room-cnt-exceeds','CollaborationEvent','_awaitingChangeset','_hasSessionsForEndpoint','push','saveChangeset','addHandlerCallback','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_getAPIPrefix','_roomCreated$','_clearTimeoutTimer','/universer-api/file/{fileID}/sign-url','_injector','HTTPRequest','_transformUndoredo','fetchMiss','UPDATE_PERMISSION_OBJ','LIVESHARE_NEW_HOST','awaiting','_listenToNetworkCondition','size','onTransformIME','_schedule','getAttachmentUrl','_getLoginPath','UserManagerService','editing\x20status\x20changed\x20to','endsWith','startTime','_authzIoService','snapshot','removeMember','subType','_queuedRemoteChangesets','some','floor','unit-cache-','updatePermissionPoint','mapDocumentTypeToUniverInstanceType','updateCollaborator','liveShareNewHost','userID','changeset','file','CollaborationSessionService','length','getUnitType','patch','uploadFileServerUrl','_createSocket','[SyncedState]:\x20received\x20rejection.','socketService','_undoStacks','173784mAcdpr','number','_getRedoStack','_docStateChangeManagerService','_socketService','message$','docStateChange$','onTransformRemoteChangesetByStateCache','[FetchMissState]','/unit/','_showConflictProcessingNotification','default','cmd','unitType','_acknowledgeAwaitingIfReady','/fetchmissing?from=','UniverCollaborationClientPlugin','_executeRemoteChangeset','JOIN_ROOM_FULL','DEFAULT_FILE_NAME','_updateStatus','_prepareConflictRecovery','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','missingChangesets','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_clearHeartbeatTimer','apply','_roomMembers','_permissionService','sid','CONFLICT','min','JOIN','_rescheduleHeartbeat','_acknowledgeAwaiting','socketReady','_replayCachedMutations','failed\x20to\x20apply\x20missed\x20changesets!','getMember','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','PdfCollaborationEntity','MentionIoHttpService','changesets','Inject','joinEvent','isInternalEditorID','/-/object/-/batch_allowed','forEach','saveImage','getCollabEntity','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','SessionStatus','MemberService','onSendChangeset','getImage','MSG_FOR_ERROR','not_collab','getUnitId','/universer-api/authz','onMutationExecutedForCollab','every','_onLocalMutation','delay','SOCKET_FAILED','getSnapshotAPIPath','hasOwnProperty','m2Prime','DRAWING_IMAGE_ALLOW_IMAGE_LIST','baseRev','Plugin','_initRequestHeader','loadSlide','[CollaborationSession]','_snapshotServerService','_networkConditionService','_getSignURL','[PendingState]:\x20received\x20acknowledgement.','_joinRoom','IUniverInstanceService','SUBMIT_CHANGESET','UnitObject','ErrorCode','_sessionStatus$','{fileID}','take','range','_event$','reconnect','HELLO','location','clearUnit','_initUnitPermissionChange','updateMember','_socketChannels','SnapshotService','_sessions','unitDisposed$','CompressMutationService','slice','_createSession','from','_getCtorByUniverInstanceType','_onConflict','onLocalMutation','univer-pro.collaboration-client.network-condition.service','executeCommand','shareReplay','roomInfos','/universer-api/user/session-ticket','_emitMembers','[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.','_onRemoteACK','\x20in\x20_schedule.','CommentService','fromCharCode','_transformRemoteChangesetByStateCache','OfflineState','_exhaustRemoteChangesetQueue','ITelemetryService','state','loadUnit','_getSendChangesetTimeout','_waitForHeartbeatResponse','timeoutTimer','/universer-api/snapshot/','encode','COMPRESS_MUTATION_APPLY','_replaceFileID','retryCount','fetchThroughInterceptors','unit','origin','_applyRemoteChangeset','_configService','values','unknown','supports','316760QxdHWz','RemoveSlidePageMutation','LIVESHARE_FETCH_OPERATIONS','isTransformMutationsWithChangesetSuccess','_updateState','trim','batchAllowed','version','6355948UEhxKj','onRemoteRetry','src','_init','reqId','parseChangesetToProtocol','workbook','[PendingState]:\x20received\x20rejection.','_getConfig','loadBoard','_sendHeartbeat','ICollaborationClientAdapterService','_telemetryService','_scheduleCompleteTimestamp','then','_httpService','_resolveSessionIdentity','map','MergeInterceptorFactory','getTime','firstValueFrom','NOT_COLLAB','418yiizuc','JOIN_ROOM_FAILED','resourceIDs','_scheduleCollaborationTimeoutTimer','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','unitID','_transformAndApplyRemoteChangeset','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','fetching\x20missing\x20changesets\x20from\x20','_revisionService','HEARTBEAT_TIMEOUT','_getUnitPermissionPoints','localUnitId','LOCAL_CACHE_INTERVAL','_onJoinRoomEvent','close$','_undoRedoService','parse','_substituteRedoStack','max','ERROR_IMAGE_TYPE','save\x20fail\x20reason\x20is\x20','downloadEndpointUrl','_stopTelemetryCollaborationNewChangeset','transformSelections','_unitInfo$','href','RxDisposable','LIVESHARE_TERMINATE','body','@univerjs-pro/collaboration-client','IPermissionService','leaveEvent','dispose$','/object/','_status$','_startCollaboration','Board','code','_toggleOnline','CONFLICT_CACHE_CLEAR_FAILED','MentionType','mergeOverrideWithDependencies','reject','transformMutationsWithChangeset','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','/block/','_onCombEvent','57687456psknzA','?url=','cbc','[DataLoaderService]','_clearRetryConnectingTimer','subUnitId','putCollaborators','enableAuthServer','getCurrentSelections','_showConflictNotification','AwaitingWithPendingState','getSheetBlock','_adapter','_collaborationTimeoutTimer','interceptor','enableOfflineEditing','_sessionChannels','OPTIONAL','setCfgEnableObjInherit','getWorkbookSelections','RichTextEditingMutation','c2Prime','actions','_entityInit$','_updateUnitPermissionPoint','backupOfflineData','target','collabWebSocketUrl','LIVESHARE_REQUEST_HOST','CommandType','IAuthzIoService','/-/object/list','getActiveSheet','1.0.4','connection\x20error','OTHER_CLIENT_EDITING','_entities','synced','CmdRspCode','getCurrentUser','_getUndoStack','members','deepClone','ILogService','concatMap','offline','Rectangle','_createInitialStateImpl','loginUrlKey','_maxTotalRetryTimeout','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_disableEditing','readyForCollab','isArray','onPrepareTransformSelections','Subject','LocaleService','getTypeOfUnitDisposed$','originalMeta','_getCurrentRevision','mutations','members$','candidateSocket','params','confirm','includes','getValue','send','onCommentUpdate','change$','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','FileId','_onRecvEvent','OBJECT_PERMISSION_CONFIG_KEY','_redoStacks','_singleActiveUnitService','onMissingChangesets','function','UniverInstanceType','[CollaborationEntity]','init','NO_OTHER_CLIENTS_EDITING','People','online$','_instanceService','title','_clearRedo','_state','_disposed','_registerDependencies','_memberService','_snapshotService','USERS_ENTER','_getAPIPrefixPath','Slide','toLocal','_commentService','collaMsg','COMMENT_UPDATE','Workbook','BaseCollaborationEntity','_removeRoom','_updateLocalCache','CHANGESET_SHOULD_RETRY','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','CLOSE_ROOM','onTransformSelections','/object','closeSession','LOCAL_CACHE_INTERVAL_KEY','has','concatBytes','getSheetId','disposeWithMe','_decreaseWaiting','_collaborationSessionService','585HRRiKh','editingUnit','string','base-ui.attachment-io.service','_syncEditingCollabCursor','unsubscribe','sessionStatus$','data','getUnit','createIdentifier','[SyncedState]:\x20received\x20acknowledgement.','HEARTBEAT_INTERVAL_KEY','EmptyMutationInfo','SheetPermissionInitController','UnitAction','waitForRoom$','find','UniverNetworkPlugin','takeUntil','getUploadOptions','endpoint','10tRhrKe','IImageIoService','JOIN_ROOM_NOT_EXISTS','OTHER_CLIENTS_EDITING','JOIN_ROOM_PERMISSION_DENIED','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_collaborationUIEventService','csAckEvent','_handleRemoteChangesets','CollaborationAttachmentIoService','_checkMissing','blockRanges','telemetry\x20info\x20is\x20not\x20initialized','CollaborationUIEventService','getFocusedUnit','getInterceptPoints','UniverCollaborationPlugin','override'];_0x60bf=function(){return _0x3e21ef;};return _0x60bf();}function Ae(_0x54ace6){return _0x54ace6['isCompositionEnd']!==void 0x0;}function je(_0x28dcc9,_0x19cf50){return Me(_0x28dcc9)&&Me(_0x19cf50)&&!Pe(_0x28dcc9)&&!Pe(_0x19cf50)&&!Ne(_0x28dcc9)&&!Ne(_0x19cf50);}function Me(_0x4636f4){const _0x2aa571=_0x51c992;return Fe(_0x4636f4)[_0x2aa571(0x17c)](_0x254b77=>T(_0x254b77)&&_0x254b77['et']==='text-x');}function Ne(_0x45713d){const _0x4c8df4=_0x51c992;return Fe(_0x45713d)[_0x4c8df4(0x17c)](_0x4694bf=>Array[_0x4c8df4(0x29b)](_0x4694bf)||typeof _0x4694bf==_0x4c8df4(0x2dc)||typeof _0x4694bf==_0x4c8df4(0x190));}function Pe(_0x36825c){const _0x3e65c2=_0x51c992;return Fe(_0x36825c)[_0x3e65c2(0x17c)](_0x4bdcdb=>!T(_0x4bdcdb)||_0x4bdcdb['et']!==_0x3e65c2(0x353)||!Array['isArray'](_0x4bdcdb['e'])?!0x1:_0x4bdcdb['e'][_0x3e65c2(0x17c)](_0x6742a5=>!T(_0x6742a5)||!T(_0x6742a5[_0x3e65c2(0x253)])?!0x1:Object[_0x3e65c2(0x3fa)][_0x3e65c2(0x1d0)][_0x3e65c2(0x454)](_0x6742a5[_0x3e65c2(0x253)],_0x3e65c2(0x33d))||Object[_0x3e65c2(0x3fa)][_0x3e65c2(0x1d0)][_0x3e65c2(0x454)](_0x6742a5[_0x3e65c2(0x253)],_0x3e65c2(0x365))||Object['prototype'][_0x3e65c2(0x1d0)]['call'](_0x6742a5[_0x3e65c2(0x253)],_0x3e65c2(0x2fa))));}function Fe(_0xc0f098){const _0x4eb05a=_0x51c992;if(!Array[_0x4eb05a(0x29b)](_0xc0f098))return[];let _0x3fb27f=_0xc0f098[_0x4eb05a(0x2a7)]('body')?_0xc0f098:_0xc0f098['find'](_0x76b6d9=>Array['isArray'](_0x76b6d9)&&_0x76b6d9[_0x4eb05a(0x2a7)](_0x4eb05a(0x253)));if(!Array['isArray'](_0x3fb27f))return[];let _0x3c43cb=_0x3fb27f[_0x4eb05a(0x486)]('body');return _0x3c43cb===-0x1?[]:_0x3fb27f[_0x4eb05a(0x1f1)](_0x3c43cb+0x1);}function T(_0x5cc325){const _0x3aefe1=_0x51c992;return typeof _0x5cc325==_0x3aefe1(0x31b)&&!!_0x5cc325&&!Array[_0x3aefe1(0x29b)](_0x5cc325);}function Ie(_0x41fc09,_0x41b860){const _0x5d03fa=_0x51c992;let _0x2a8577=new i[(_0x5d03fa(0x328))](0x1);return setTimeout(()=>_0x2a8577[_0x5d03fa(0x443)](_0x41b860),_0x41fc09),_0x2a8577[_0x5d03fa(0x3e3)]()[_0x5d03fa(0x3a2)]((0x0,i[_0x5d03fa(0x1e3)])(0x1));}var Le,Re,ze;let Be=function(_0x4054ac){const _0x1d7116=_0x51c992;return _0x4054ac[_0x1d7116(0x235)]=_0x1d7116(0x1c7),_0x4054ac[_0x1d7116(0x337)]=_0x1d7116(0x28b),_0x4054ac['PENDING']='pending',_0x4054ac['AWAITING']=_0x1d7116(0x4a7),_0x4054ac[_0x1d7116(0x3f4)]=_0x1d7116(0x3bf),_0x4054ac['FETCH_MISS']=_0x1d7116(0x369),_0x4054ac['CONFLICT']='conflict',_0x4054ac['OFFLINE']=_0x1d7116(0x293),_0x4054ac;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x4bb309,_0x5aeebc,_0x529176,_0x58c52e,_0xe8b9ac,_0x55a151,_0xb074d3,_0x3b141a,_0x456dd7){const _0x33a60c=_0x51c992;this[_0x33a60c(0x23b)]=_0x4bb309,this[_0x33a60c(0x3fc)]=_0x5aeebc,this[_0x33a60c(0x421)]=_0xe8b9ac,this['_commandService']=_0x55a151,this['_undoRedoService']=_0xb074d3,this['_revisionService']=_0x3b141a,this['_localCacheService']=_0x456dd7,g(this,'_awaitingChangeset',null),g(this,_0x33a60c(0x39e),[]),this[_0x33a60c(0x497)]=_0x529176,this['_pendingMutations']=_0x58c52e;}[_0x51c992(0x2f9)](_0x481026){const _0x43327a=_0x51c992;let _0x23127d=this[_0x43327a(0x23f)][_0x43327a(0x388)](this[_0x43327a(0x23b)]);return _0x481026[_0x43327a(0x461)]>_0x23127d+0x1&&(this[_0x43327a(0x421)][_0x43327a(0x2b2)]({'from':_0x23127d,'to':_0x481026[_0x43327a(0x461)]-0x1}),!0x0);}[_0x51c992(0x4a3)](_0x141780){const _0x4b087a=_0x51c992;this[_0x4b087a(0x246)][_0x4b087a(0x465)](this['unitID'],_0x141780);}[_0x51c992(0x37c)](_0x12e90c){const _0x518bfc=_0x51c992;var _0xa5d106,_0x3bf1f0;(_0xa5d106=(_0x3bf1f0=this[_0x518bfc(0x421)])[_0x518bfc(0x2d0)])==null||_0xa5d106[_0x518bfc(0x454)](_0x3bf1f0,_0x12e90c);}['_prepareTransformSelections'](_0x15b024){const _0x1b44bf=_0x51c992;var _0xfea5c6,_0x169bde;return((_0xfea5c6=(_0x169bde=this[_0x1b44bf(0x421)])[_0x1b44bf(0x29c)])==null?void 0x0:_0xfea5c6[_0x1b44bf(0x454)](_0x169bde,_0x15b024))??null;}[_0x51c992(0x37a)](_0x4eb9a4){const _0x2100d7=_0x51c992;var _0x1aff26,_0x2ae71a;return(_0x1aff26=(_0x2ae71a=this[_0x2100d7(0x421)])[_0x2100d7(0x4aa)])==null?void 0x0:_0x1aff26['call'](_0x2ae71a,_0x4eb9a4);}[_0x51c992(0x392)](_0x137f2d){const _0x3eb8f0=_0x51c992;var _0x20096e,_0x16f78d;return(_0x20096e=(_0x16f78d=this[_0x3eb8f0(0x421)])['onTransformState'])==null?void 0x0:_0x20096e[_0x3eb8f0(0x454)](_0x16f78d,_0x137f2d);}[_0x51c992(0x489)](_0x2e46b3){const _0x5e9fd3=_0x51c992;var _0x331b5a,_0x5d8295;return((_0x331b5a=(_0x5d8295=this[_0x5e9fd3(0x421)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x331b5a['call'](_0x5d8295,_0x2e46b3))??_0x2e46b3;}['_transformRemoteChangesetByStateCache'](_0x479094){const _0x50118a=_0x51c992;var _0x4340e5,_0x2b2a53;return((_0x4340e5=(_0x2b2a53=this[_0x50118a(0x421)])[_0x50118a(0x196)])==null?void 0x0:_0x4340e5[_0x50118a(0x454)](_0x2b2a53,_0x479094))??_0x479094;}[_0x51c992(0x2de)](_0x576d14){const _0xca601b=_0x51c992;if(this[_0xca601b(0x3fc)]===t[_0xca601b(0x2b4)]['UNIVER_DOC']){let {unitID:_0x2ff851,mutations:_0x465e64,memberID:_0x264867}=_0x576d14,_0x2c9354=_0x465e64[_0xca601b(0x187)]>0x0?_0x465e64[0x0]['params']['textRanges']:[];if(Array[_0xca601b(0x29b)](_0x2c9354)&&_0x2c9354[_0xca601b(0x187)]>0x0){var _0x52feec,_0x289989;(_0x52feec=(_0x289989=this['_handler'])[_0xca601b(0x3b4)])==null||_0x52feec[_0xca601b(0x454)](_0x289989,{'unitID':_0x2ff851,'memberID':_0x264867,'textRanges':_0x2c9354});}}}[_0x51c992(0x2cc)](){const _0xaa134d=_0x51c992;var _0x5b6f2e;(_0x5b6f2e=this[_0xaa134d(0x451)])==null||_0x5b6f2e[_0xaa134d(0x3da)](this[_0xaa134d(0x23b)],this[_0xaa134d(0x3fc)],this['_awaitingChangeset'],this[_0xaa134d(0x39e)]);}[_0x51c992(0x2a1)](){const _0x3802ce=_0x51c992;return this[_0x3802ce(0x23f)]['getCurrentRevOfUnit'](this[_0x3802ce(0x23b)]);}['_incrementRevisionNumber'](){const _0x2c76b0=_0x51c992;this['_revisionService']['incrementRevOfUnit'](this[_0x2c76b0(0x23b)]);}[_0x51c992(0x1a0)](_0x26a213){const _0xac6726=_0x51c992;let _0x47db18=this[_0xac6726(0x489)](_0x26a213);_0x47db18=this[_0xac6726(0x202)](_0x47db18);let _0x381393=this[_0xac6726(0x306)](_0x47db18),_0x17547c=(0x0,t['sequenceExecute'])(_0x47db18[_0xac6726(0x2a2)],this[_0xac6726(0x3e4)],{'fromCollab':!0x0});if(!_0x17547c[_0xac6726(0x469)])throw _0x381393==null||_0x381393['rollback'](),_0x17547c[_0xac6726(0x420)]instanceof Error?_0x17547c[_0xac6726(0x420)]:Error(_0x17547c['error']??_0xac6726(0x3f7));_0x381393==null||_0x381393['commit'](),this[_0xac6726(0x37a)](_0x47db18),this[_0xac6726(0x392)](_0x47db18),this['_transformUndoredo'](_0x26a213),this[_0xac6726(0x37c)](_0x47db18),this[_0xac6726(0x2de)](_0x47db18),this[_0xac6726(0x373)]();}};let D=class extends E{constructor(_0x40c01c,_0x2d2a0d,_0x1e18b2,_0x39a9ac,_0x2284be,_0x303210,_0x3e6c7f,_0x7d0e0,_0x29b317,_0x57cc7e){const _0x521399=_0x51c992;super(_0x40c01c,_0x2d2a0d,null,[],_0x1e18b2,_0x3e6c7f,_0x303210,_0x39a9ac,_0x57cc7e),this[_0x521399(0x4a1)]=_0x2284be,this[_0x521399(0x396)]=_0x7d0e0,this[_0x521399(0x364)]=_0x29b317,this[_0x521399(0x3cc)]=_0x57cc7e,g(this,_0x521399(0x456),_0x521399(0x28b));}[_0x51c992(0x35c)](_0xfcae97){const _0x1ae72a=_0x51c992;let _0x2348da=this[_0x1ae72a(0x4a1)][_0x1ae72a(0x3fb)](O,this[_0x1ae72a(0x23b)],this[_0x1ae72a(0x3fc)],[_0xfcae97],this['_handler']);return _0x2348da[_0x1ae72a(0x4ab)](),_0x2348da[_0x1ae72a(0x2cc)](),_0x2348da;}[_0x51c992(0x43e)](_0x432ec2){const _0x5e8801=_0x51c992;if(this['_checkMissing'](_0x432ec2))return this[_0x5e8801(0x4a1)][_0x5e8801(0x3fb)](N,this[_0x5e8801(0x23b)],this['type'],null,[],null,[_0x432ec2],this['_handler']);try{let _0x2758b3=this[_0x5e8801(0x364)]['transformMutationsWithChangeset'](_0x432ec2,[e[_0x5e8801(0x2e6)]]);if((0x0,e[_0x5e8801(0x21b)])(_0x2758b3)){let {c1Prime:_0x9b541}=_0x2758b3;return this[_0x5e8801(0x1a0)](_0x9b541),this;}throw _0x2758b3[_0x5e8801(0x420)];}catch(_0x491080){return this[_0x5e8801(0x396)][_0x5e8801(0x420)](_0x491080),this[_0x5e8801(0x1f5)](!0x1);}}[_0x51c992(0x1f5)](_0x24f39c){const _0x447c5d=_0x51c992;return this[_0x447c5d(0x4a1)]['createInstance'](j,this[_0x447c5d(0x23b)],this[_0x447c5d(0x3fc)],null,[],this['_handler'],_0x24f39c);}[_0x51c992(0x458)](_0x49a055){const _0x135c2e=_0x51c992;if(_0x49a055[_0x135c2e(0x461)]<=this[_0x135c2e(0x2a1)]())return this;throw Error(_0x135c2e(0x2e4));}[_0x51c992(0x44e)](){const _0xea515c=_0x51c992;throw Error(_0xea515c(0x18c));}[_0x51c992(0x221)](){return this;}['toggleOffline'](){const _0x52ca75=_0x51c992;return this['_injector'][_0x52ca75(0x3fb)](M,this[_0x52ca75(0x23b)],this[_0x52ca75(0x3fc)],null,[],this[_0x52ca75(0x421)]);}['toggleOnline'](){return this;}[_0x51c992(0x3d0)](){const _0x2f62b8=_0x51c992;throw Error(_0x2f62b8(0x384));}[_0x51c992(0x4a4)](){const _0x3cb776=_0x51c992;let _0x1788c9=this[_0x3cb776(0x23f)]['getCurrentRevOfUnit'](this[_0x3cb776(0x23b)]);return this['_handler'][_0x3cb776(0x2b2)]({'from':_0x1788c9,'to':0x0}),this[_0x3cb776(0x4a1)][_0x3cb776(0x3fb)](N,this['unitID'],this[_0x3cb776(0x3fc)],null,[],null,[],this[_0x3cb776(0x421)]);}};D=y([v(0x3,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x342)])),v(0x4,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x5,t['IUndoRedoService']),v(0x6,t['ICommandService']),v(0x7,t[_0x51c992(0x291)]),v(0x8,e[_0x51c992(0x354)]),v(0x9,(0x0,t[_0x51c992(0x47e)])(x))],D);let O=Le=class extends E{constructor(_0x5b4cc2,_0x56c11f,_0x567983,_0x84317b,_0x4adb91,_0x189a01,_0x1957a1,_0x56f046,_0x135ef4,_0x4d606e,_0x5de1f6,_0x41f0b0,_0x53c319,_0x179b4d){const _0x137d65=_0x51c992;super(_0x5b4cc2,_0x56c11f,null,_0x567983,_0x84317b,_0x135ef4,_0x53c319,_0x189a01,_0x179b4d),this[_0x137d65(0x4a1)]=_0x4adb91,this[_0x137d65(0x3ff)]=_0x1957a1,this[_0x137d65(0x396)]=_0x56f046,this[_0x137d65(0x214)]=_0x4d606e,this[_0x137d65(0x364)]=_0x5de1f6,this[_0x137d65(0x322)]=_0x41f0b0,g(this,'status',_0x137d65(0x35d)),g(this,_0x137d65(0x22d),null),g(this,_0x137d65(0x32c),null);}[_0x51c992(0x35c)](_0x1405e2){const _0x2cb7c2=_0x51c992;return this[_0x2cb7c2(0x39e)][_0x2cb7c2(0x499)](_0x1405e2),this[_0x2cb7c2(0x2cc)](),this;}[_0x51c992(0x43e)](_0x373d86){const _0x49f85b=_0x51c992;if(this['_checkMissing'](_0x373d86))return this[_0x49f85b(0x3d9)](),this[_0x49f85b(0x4a1)][_0x49f85b(0x3fb)](N,this[_0x49f85b(0x23b)],this[_0x49f85b(0x3fc)],null,this[_0x49f85b(0x39e)],null,[_0x373d86],this[_0x49f85b(0x421)]);try{let _0x38efc3=this[_0x49f85b(0x364)][_0x49f85b(0x262)](_0x373d86,this['_pendingMutations']);if((0x0,e[_0x49f85b(0x21b)])(_0x38efc3)){let {c1Prime:_0x403ca8,m2Prime:_0x34971e}=_0x38efc3;this[_0x49f85b(0x1a0)](_0x403ca8);let _0x2daae2=this[_0x49f85b(0x4a1)][_0x49f85b(0x3fb)](Le,this['unitID'],this[_0x49f85b(0x3fc)],_0x34971e,this[_0x49f85b(0x421)]);this['_clearScheduledTask']();let _0x14e5e9=new Date()[_0x49f85b(0x233)](),_0x448eda=this[_0x49f85b(0x22d)]?Math[_0x49f85b(0x249)](this[_0x49f85b(0x22d)]-_0x14e5e9,0x0):this[_0x49f85b(0x208)]();return _0x2daae2['_schedule'](_0x448eda),_0x2daae2;}throw _0x38efc3[_0x49f85b(0x420)];}catch(_0x280fbd){return this[_0x49f85b(0x396)][_0x49f85b(0x420)](_0x280fbd),this['_onConflict'](!0x1);}}[_0x51c992(0x458)](_0x11f37f){const _0x5e13d4=_0x51c992;if(_0x11f37f[_0x5e13d4(0x461)]<=this[_0x5e13d4(0x2a1)]())return this;throw Error(_0x5e13d4(0x1db));}[_0x51c992(0x44e)](){const _0xc24246=_0x51c992;throw Error(_0xc24246(0x227));}[_0x51c992(0x221)](){return this;}[_0x51c992(0x38e)](){const _0x392537=_0x51c992;return this[_0x392537(0x3d9)](),this[_0x392537(0x4a1)]['createInstance'](M,this[_0x392537(0x23b)],this[_0x392537(0x3fc)],null,this[_0x392537(0x39e)],this[_0x392537(0x421)]);}[_0x51c992(0x302)](){return this;}['_schedule'](_0x54dc92){const _0x2d066a=_0x51c992;let _0x3bf86e=_0x54dc92??this[_0x2d066a(0x208)]();this[_0x2d066a(0x22d)]=new Date()[_0x2d066a(0x233)]()+_0x3bf86e,this[_0x2d066a(0x32c)]=setTimeout(()=>{const _0x3e73a1=_0x2d066a;this[_0x3e73a1(0x3d9)]();let _0x36fc1f=null;switch(this[_0x3e73a1(0x3fc)]){case t[_0x3e73a1(0x2b4)][_0x3e73a1(0x3f5)]:_0x36fc1f=w(this['_pendingMutations'],this[_0x3e73a1(0x23b)],this[_0x3e73a1(0x322)],this[_0x3e73a1(0x23f)],this[_0x3e73a1(0x3ff)]);break;case t[_0x3e73a1(0x2b4)][_0x3e73a1(0x47c)]:_0x36fc1f=this['_pendingMutations'][_0x3e73a1(0x1cb)](_0x3729b0=>_0x3729b0['id']===n['RichTextEditingMutation']['id'])?Oe(this['_pendingMutations'],this[_0x3e73a1(0x23b)],this[_0x3e73a1(0x322)],this[_0x3e73a1(0x23f)],this['_userManagerService']):w(this[_0x3e73a1(0x39e)],this[_0x3e73a1(0x23b)],this['_univerInstanceService'],this[_0x3e73a1(0x23f)],this['_userManagerService']);break;case t[_0x3e73a1(0x2b4)][_0x3e73a1(0x439)]:_0x36fc1f=De(this[_0x3e73a1(0x39e)],this[_0x3e73a1(0x23b)],this[_0x3e73a1(0x322)],this[_0x3e73a1(0x23f)],this[_0x3e73a1(0x3ff)]);break;case t['UniverInstanceType'][_0x3e73a1(0x3eb)]:_0x36fc1f=Ee(this[_0x3e73a1(0x39e)],this[_0x3e73a1(0x23b)],this[_0x3e73a1(0x322)],this['_revisionService'],this[_0x3e73a1(0x3ff)]);break;case t[_0x3e73a1(0x2b4)][_0x3e73a1(0x3f3)]:_0x36fc1f=w(this[_0x3e73a1(0x39e)],this[_0x3e73a1(0x23b)],this[_0x3e73a1(0x322)],this['_revisionService'],this[_0x3e73a1(0x3ff)]);break;case t['UniverInstanceType'][_0x3e73a1(0x387)]:_0x36fc1f=w(this[_0x3e73a1(0x39e)],this['unitID'],this[_0x3e73a1(0x322)],this[_0x3e73a1(0x23f)],this['_userManagerService']);break;default:throw Error(_0x3e73a1(0x436)+this['type']+_0x3e73a1(0x1ff));}let {changeset:_0x50a6ff,pendingMutations:_0x46b4c6}=_0x36fc1f;this['_handler']['onSendChangeset'](_0x50a6ff);let _0x20a62c=_0x46b4c6[_0x3e73a1(0x187)]?this[_0x3e73a1(0x4a1)]['createInstance'](A,this[_0x3e73a1(0x23b)],this[_0x3e73a1(0x3fc)],_0x50a6ff,_0x46b4c6,this['_handler'],void 0x0):this[_0x3e73a1(0x4a1)][_0x3e73a1(0x3fb)](k,this[_0x3e73a1(0x23b)],this[_0x3e73a1(0x3fc)],_0x50a6ff,this['_handler']);_0x20a62c['_updateLocalCache'](),this[_0x3e73a1(0x421)]['onStateChange'](this,_0x20a62c);},_0x3bf86e);}[_0x51c992(0x208)](){const _0xb60b02=_0x51c992;let _0x187996=this[_0xb60b02(0x214)]['getConfig'](m);return(_0x187996==null?void 0x0:_0x187996[_0xb60b02(0x3cb)])??0x7d0;}[_0x51c992(0x3d0)](){const _0x43575e=_0x51c992;throw Error(_0x43575e(0x377));}['_clearScheduledTask'](){const _0x4f313a=_0x51c992;this[_0x4f313a(0x32c)]!=null&&(clearTimeout(this[_0x4f313a(0x32c)]),this[_0x4f313a(0x32c)]=null);}[_0x51c992(0x1f5)](_0x5ba2c3){const _0x4b716f=_0x51c992;return this[_0x4b716f(0x3d9)](),this[_0x4b716f(0x4a1)][_0x4b716f(0x3fb)](j,this[_0x4b716f(0x23b)],this[_0x4b716f(0x3fc)],null,this[_0x4b716f(0x39e)],this['_handler'],_0x5ba2c3);}};O=Le=y([v(0x4,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x5,(0x0,t[_0x51c992(0x1ba)])(e['RevisionService'])),v(0x6,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x4ae)])),v(0x7,t[_0x51c992(0x291)]),v(0x8,t['ICommandService']),v(0x9,t[_0x51c992(0x46e)]),v(0xa,e['ITransformService']),v(0xb,t[_0x51c992(0x1dd)]),v(0xc,t[_0x51c992(0x390)]),v(0xd,(0x0,t[_0x51c992(0x47e)])(x))],O);let k=Re=class extends E{constructor(_0x246c0a,_0xe22b53,_0x4a9670,_0x3026d8,_0x19a16b,_0x29dd0f,_0x4cf4e8,_0x4dfb2f,_0x2835d3,_0x515bd0,_0x277fe7){const _0x424fd7=_0x51c992;super(_0x246c0a,_0xe22b53,_0x4a9670,[],_0x3026d8,_0x4cf4e8,_0x515bd0,_0x29dd0f,_0x277fe7),this['_injector']=_0x19a16b,this[_0x424fd7(0x396)]=_0x4dfb2f,this[_0x424fd7(0x364)]=_0x2835d3,g(this,_0x424fd7(0x456),'awaiting'),g(this,_0x424fd7(0x415),0x0),g(this,_0x424fd7(0x297),0x0),g(this,_0x424fd7(0x45e),void 0x0),g(this,_0x424fd7(0x431),void 0x0);}[_0x51c992(0x35c)](_0x14a1c5){const _0x427896=_0x51c992;this['_clearScheduledTask']();let _0x25c9bb=this['_injector'][_0x427896(0x3fb)](A,this[_0x427896(0x23b)],this[_0x427896(0x3fc)],this['_awaitingChangeset'],[_0x14a1c5],this[_0x427896(0x421)],this[_0x427896(0x45e)]);return _0x25c9bb['_updateLocalCache'](),_0x25c9bb;}[_0x51c992(0x43e)](_0x410727){const _0x1434ea=_0x51c992;if(this['_checkMissing'](_0x410727))return this[_0x1434ea(0x3d9)](),this[_0x1434ea(0x4a1)][_0x1434ea(0x3fb)](N,this[_0x1434ea(0x23b)],this['type'],this['_awaitingChangeset'],[],null,[_0x410727],this[_0x1434ea(0x421)]);try{let _0x4d1865=this['_transformService'][_0x1434ea(0x475)]([_0x410727],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x1434ea(0x3ec)])(_0x4d1865)){let {c1Prime:_0x9804fa,c2Prime:_0x3644b0}=_0x4d1865;this[_0x1434ea(0x1a0)](_0x9804fa[0x0]),_0x3644b0[0x0][_0x1434ea(0x1d3)]=this[_0x1434ea(0x2a1)](),this['_clearScheduledTask']();let _0x161a5f=this[_0x1434ea(0x4a1)][_0x1434ea(0x3fb)](Re,this[_0x1434ea(0x23b)],this[_0x1434ea(0x3fc)],_0x3644b0[0x0],this[_0x1434ea(0x421)]);return _0x161a5f[_0x1434ea(0x2cc)](),_0x161a5f;}throw _0x4d1865['error'];}catch(_0x36eca5){return this[_0x1434ea(0x396)][_0x1434ea(0x420)](_0x36eca5),this[_0x1434ea(0x1f5)](!0x1);}}[_0x51c992(0x458)](_0x5723d2){const _0x4a0aa2=_0x51c992;this[_0x4a0aa2(0x3d9)]();let _0xb1a49b=this[_0x4a0aa2(0x23f)][_0x4a0aa2(0x388)](this[_0x4a0aa2(0x23b)]);if(_0x5723d2[_0x4a0aa2(0x461)]<=_0xb1a49b)return this;if(this['_checkMissing'](_0x5723d2))return this[_0x4a0aa2(0x4a1)][_0x4a0aa2(0x3fb)](N,this['unitID'],this[_0x4a0aa2(0x3fc)],this[_0x4a0aa2(0x497)],[],_0x5723d2[_0x4a0aa2(0x461)],[],this[_0x4a0aa2(0x421)]);this[_0x4a0aa2(0x373)]();let _0xba813c=this[_0x4a0aa2(0x4a1)][_0x4a0aa2(0x3fb)](D,this[_0x4a0aa2(0x23b)],this[_0x4a0aa2(0x3fc)],this[_0x4a0aa2(0x421)]);return _0xba813c[_0x4a0aa2(0x2cc)](),_0xba813c;}['onRemoteRej'](_0x4d7697){const _0x3dea02=_0x51c992;return this[_0x3dea02(0x1f5)](!!(_0x4d7697!=null&&_0x4d7697[_0x3dea02(0x360)]));}['onRemoteRetry'](_0x14b3bf){const _0x34960d=_0x51c992;return this[_0x34960d(0x297)]>He?this[_0x34960d(0x38e)]():(this[_0x34960d(0x45e)]=Ie(this['_resendTimeout'],{'timeout':this[_0x34960d(0x415)],'reqId':_0x14b3bf[_0x34960d(0x224)]}),this['_sender']=this[_0x34960d(0x45e)][_0x34960d(0x481)](({reqId:_0x42903a,timeout:_0x52bfdf})=>{this['_resendWithTimeout'](_0x42903a,_0x52bfdf);}),this);}[_0x51c992(0x38e)](){const _0x3dd071=_0x51c992;return this['_clearScheduledTask'](),this[_0x3dd071(0x4a1)][_0x3dd071(0x3fb)](M,this['unitID'],this[_0x3dd071(0x3fc)],this[_0x3dd071(0x497)],[],this['_handler']);}[_0x51c992(0x302)](){return this;}['resend'](){const _0x25e08e=_0x51c992;this[_0x25e08e(0x421)][_0x25e08e(0x1c4)](this[_0x25e08e(0x497)]);}[_0x51c992(0x1f5)](_0x54c698){const _0x1bdef8=_0x51c992;return this[_0x1bdef8(0x3d9)](),this[_0x1bdef8(0x4a1)]['createInstance'](j,this[_0x1bdef8(0x23b)],this[_0x1bdef8(0x3fc)],this['_awaitingChangeset'],[],this['_handler'],_0x54c698);}[_0x51c992(0x305)](_0x4a9cae,_0x206f5d){const _0x4135c9=_0x51c992;var _0x1c0007;_0x4a9cae===((_0x1c0007=this[_0x4135c9(0x497)])==null?void 0x0:_0x1c0007[_0x4135c9(0x224)])&&(this[_0x4135c9(0x3d0)](),this[_0x4135c9(0x415)]=_0x206f5d===0x0?0x3e8:Math[_0x4135c9(0x1ae)](_0x206f5d*0x2,Ve),this[_0x4135c9(0x297)]+=this['_resendTimeout']);}[_0x51c992(0x3d9)](){const _0xdf5285=_0x51c992;var _0x4f927e;(_0x4f927e=this[_0xdf5285(0x431)])==null||_0x4f927e[_0xdf5285(0x2df)](),this[_0xdf5285(0x415)]=0x0,this[_0xdf5285(0x297)]=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x5,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x342)])),v(0x6,t[_0x51c992(0x48c)]),v(0x7,t[_0x51c992(0x291)]),v(0x8,e[_0x51c992(0x354)]),v(0x9,t[_0x51c992(0x390)]),v(0xa,(0x0,t['Optional'])(x))],k);let A=ze=class extends E{constructor(_0x1074dc,_0x1cdf9e,_0x55273f,_0x4a5b30,_0x1cfaa3,_0x357dba,_0x7399af,_0x2fb937,_0x564ffc,_0x27c190,_0x378ae1,_0x4e1b35,_0x42dcdf){const _0x4e6c9d=_0x51c992;super(_0x1074dc,_0x1cdf9e,_0x55273f,_0x4a5b30,_0x1cfaa3,_0x564ffc,_0x4e1b35,_0x2fb937,_0x42dcdf),this['_injector']=_0x7399af,this[_0x4e6c9d(0x396)]=_0x27c190,this[_0x4e6c9d(0x364)]=_0x378ae1,this['localCacheService']=_0x42dcdf,g(this,_0x4e6c9d(0x456),_0x4e6c9d(0x3bf)),g(this,_0x4e6c9d(0x415),0x0),g(this,_0x4e6c9d(0x297),0x0),g(this,'_resendTimer',void 0x0),g(this,'_sender',void 0x0),_0x357dba&&(this[_0x4e6c9d(0x45e)]=_0x357dba,this[_0x4e6c9d(0x431)]=this[_0x4e6c9d(0x45e)]['subscribe'](({reqId:_0x4a977d,timeout:_0x441b8e})=>{const _0x4bb7ab=_0x4e6c9d;this[_0x4bb7ab(0x305)](_0x4a977d,_0x441b8e);}));}[_0x51c992(0x35c)](_0x2e526b){const _0x30fbd6=_0x51c992;return this['_pendingMutations'][_0x30fbd6(0x499)](_0x2e526b),this;}['onRemoteChangeset'](_0x3a407e){const _0x28810c=_0x51c992;if(this['_checkMissing'](_0x3a407e))return this[_0x28810c(0x3d9)](),this[_0x28810c(0x4a1)]['createInstance'](N,this[_0x28810c(0x23b)],this[_0x28810c(0x3fc)],this['_awaitingChangeset'],this[_0x28810c(0x39e)],null,[_0x3a407e],this[_0x28810c(0x421)]);try{let _0x1cdd2c=this[_0x28810c(0x364)]['transformChangesets']([_0x3a407e],[this[_0x28810c(0x497)]],!0x1);if((0x0,e[_0x28810c(0x3ec)])(_0x1cdd2c)){let {c1Prime:_0x81fc2,c2Prime:_0x272928}=_0x1cdd2c,_0x1fb399=this[_0x28810c(0x364)][_0x28810c(0x262)](_0x81fc2[0x0],this[_0x28810c(0x39e)]);if((0x0,e[_0x28810c(0x21b)])(_0x1fb399)){let {c1Prime:_0x3347c9,m2Prime:_0x243adc}=_0x1fb399;return this[_0x28810c(0x1a0)](_0x3347c9),_0x272928[0x0][_0x28810c(0x1d3)]=this[_0x28810c(0x2a1)](),this[_0x28810c(0x3d9)](),this[_0x28810c(0x4a1)][_0x28810c(0x3fb)](ze,this[_0x28810c(0x23b)],this[_0x28810c(0x3fc)],_0x272928[0x0],_0x243adc,this[_0x28810c(0x421)],void 0x0);}throw _0x1fb399[_0x28810c(0x420)];}throw _0x1cdd2c[_0x28810c(0x420)];}catch(_0x45c19b){return this[_0x28810c(0x396)]['error'](_0x45c19b),this['_onConflict'](!0x1);}}[_0x51c992(0x458)](_0x4dc351){const _0x503c0a=_0x51c992;this[_0x503c0a(0x3d9)]();let _0x335f63=this[_0x503c0a(0x2a1)]();if(_0x4dc351[_0x503c0a(0x461)]<=_0x335f63)return this;if(this[_0x503c0a(0x2f9)](_0x4dc351))return this[_0x503c0a(0x4a1)][_0x503c0a(0x3fb)](N,this[_0x503c0a(0x23b)],this['type'],this[_0x503c0a(0x497)],this[_0x503c0a(0x39e)],_0x4dc351['revision'],[],this['_handler']);this['_incrementRevisionNumber']();let _0x26ffc5=this[_0x503c0a(0x4a1)]['createInstance'](O,this[_0x503c0a(0x23b)],this['type'],this['_pendingMutations'],this[_0x503c0a(0x421)]);return _0x26ffc5['_schedule'](),_0x26ffc5['_updateLocalCache'](),_0x26ffc5;}[_0x51c992(0x44e)](_0x4adbb2){const _0x50f4cf=_0x51c992;return this[_0x50f4cf(0x1f5)](!!(_0x4adbb2!=null&&_0x4adbb2['isPermissionRej']));}[_0x51c992(0x221)](_0x3587cc){const _0x199a28=_0x51c992;return this[_0x199a28(0x297)]>He?this[_0x199a28(0x38e)]():(this[_0x199a28(0x45e)]=Ie(this[_0x199a28(0x415)],{'timeout':this[_0x199a28(0x415)],'reqId':_0x3587cc['reqId']}),this[_0x199a28(0x431)]=this[_0x199a28(0x45e)][_0x199a28(0x481)](({reqId:_0x1963ea,timeout:_0x1c05ec})=>{const _0x577e93=_0x199a28;this[_0x577e93(0x305)](_0x1963ea,_0x1c05ec);}),this);}[_0x51c992(0x38e)](){const _0x1cf06e=_0x51c992;return this[_0x1cf06e(0x3d9)](),this[_0x1cf06e(0x4a1)][_0x1cf06e(0x3fb)](M,this[_0x1cf06e(0x23b)],this['type'],this[_0x1cf06e(0x497)],this['_pendingMutations'],this['_handler']);}[_0x51c992(0x302)](){return this;}['resend'](){const _0x4413c2=_0x51c992;this['_handler'][_0x4413c2(0x1c4)](this[_0x4413c2(0x497)]);}[_0x51c992(0x1f5)](_0x5a2568){const _0x7da8d7=_0x51c992;return this['_clearScheduledTask'](),this[_0x7da8d7(0x4a1)][_0x7da8d7(0x3fb)](j,this['unitID'],this['type'],null,this[_0x7da8d7(0x39e)],this[_0x7da8d7(0x421)],_0x5a2568);}[_0x51c992(0x305)](_0x1abbf8,_0x5e539a){const _0x4705f7=_0x51c992;var _0x5e7d0e;_0x1abbf8===((_0x5e7d0e=this[_0x4705f7(0x497)])==null?void 0x0:_0x5e7d0e['reqId'])&&(this[_0x4705f7(0x3d0)](),this[_0x4705f7(0x415)]=_0x5e539a===0x0?0x3e8:Math[_0x4705f7(0x1ae)](_0x5e539a*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x4705f7(0x415)]);}[_0x51c992(0x3d9)](){const _0x54a2ef=_0x51c992;var _0x4eb1eb;(_0x4eb1eb=this[_0x54a2ef(0x431)])==null||_0x4eb1eb[_0x54a2ef(0x2df)](),this[_0x54a2ef(0x415)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};A=ze=y([v(0x6,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x7,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x342)])),v(0x8,t[_0x51c992(0x48c)]),v(0x9,t['ILogService']),v(0xa,e[_0x51c992(0x354)]),v(0xb,t[_0x51c992(0x390)]),v(0xc,(0x0,t[_0x51c992(0x47e)])(x))],A);let j=class extends E{constructor(_0x3c732c,_0x7efc6c,_0xce16f3,_0x576b33,_0x331eed,_0x2a6f84=!0x1,_0x5decdd,_0x3749a1,_0x29bd16,_0x4c385b,_0x1cad44,_0x1cdc9b,_0x546d6f){const _0x243661=_0x51c992;super(_0x3c732c,_0x7efc6c,_0xce16f3,_0x576b33,_0x331eed,_0x3749a1,_0x29bd16,_0x4c385b,_0x546d6f),this['_isPermissionRej']=_0x2a6f84,this['_permissionService']=_0x5decdd,this[_0x243661(0x3d5)]=_0x1cad44,this[_0x243661(0x2f5)]=_0x1cdc9b,this[_0x243661(0x3cc)]=_0x546d6f,g(this,'status',_0x243661(0x3bd)),this[_0x243661(0x299)](),this[_0x243661(0x199)](),this[_0x243661(0x1a4)]();}['appendMutation'](){return this;}[_0x51c992(0x43e)](){return this;}[_0x51c992(0x458)](){return this;}[_0x51c992(0x44e)](){return this;}['onRemoteRetry'](){return this;}[_0x51c992(0x38e)](){return this;}[_0x51c992(0x302)](){return this;}[_0x51c992(0x3d0)](){const _0x45e4cb=_0x51c992;throw Error(_0x45e4cb(0x32f));}async['_prepareConflictRecovery'](){const _0x3e3b9d=_0x51c992;var _0x2f7a5d,_0x37f62d;await((_0x2f7a5d=this['_localCacheService'])==null||(_0x37f62d=_0x2f7a5d[_0x3e3b9d(0x27f)])==null?void 0x0:_0x37f62d[_0x3e3b9d(0x454)](_0x2f7a5d,this[_0x3e3b9d(0x23b)],_0x3e3b9d(0x3bd))['catch'](()=>void 0x0));try{var _0x260ee9;await((_0x260ee9=this[_0x3e3b9d(0x451)])==null?void 0x0:_0x260ee9[_0x3e3b9d(0x413)](this['unitID']));}catch{this[_0x3e3b9d(0x2f5)][_0x3e3b9d(0x3e8)]({'id':_0x3e3b9d(0x25e),'unitID':this['unitID']});return;}this['_showConflictNotification']();}['_showConflictProcessingNotification'](){const _0x10f033=_0x51c992;this[_0x10f033(0x2f5)][_0x10f033(0x3e8)]({'id':_0x10f033(0x3af)});}[_0x51c992(0x26f)](){const _0x33e505=_0x51c992;this['_isPermissionRej']?this['_collaborationUIEventService'][_0x33e505(0x3e8)]({'id':_0x33e505(0x3ae)}):this['_collaborationUIEventService']['emitEvent']({'id':'CONFLICT'});}['_disableEditing'](){const _0x34f8c0=_0x51c992;this[_0x34f8c0(0x1ab)][_0x34f8c0(0x17f)](new r['WorkbookEditablePermission'](this[_0x34f8c0(0x23b)])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x255)])),v(0x7,t[_0x51c992(0x48c)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t[_0x51c992(0x1ba)])(e['RevisionService'])),v(0xa,(0x0,t[_0x51c992(0x1ba)])(t['LocaleService'])),v(0xb,(0x0,t[_0x51c992(0x1ba)])(_)),v(0xc,(0x0,t['Optional'])(x))],j);let M=class extends E{constructor(_0x30d1c0,_0x5c7c32,_0x16fd8e,_0x539fab,_0x8f2acd,_0x36b913,_0x1f431a,_0x1a04ae,_0x1a88a7,_0x22de51){const _0x5ef6bc=_0x51c992;super(_0x30d1c0,_0x5c7c32,_0x16fd8e,_0x539fab,_0x8f2acd,_0x1a04ae,_0x1a88a7,_0x1f431a,_0x22de51),this[_0x5ef6bc(0x4a1)]=_0x36b913,g(this,_0x5ef6bc(0x456),'offline');}[_0x51c992(0x35c)](_0x23235d){const _0x296746=_0x51c992;return this[_0x296746(0x39e)][_0x296746(0x499)](_0x23235d),this[_0x296746(0x2cc)](),this;}[_0x51c992(0x43e)](_0x34c80f){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x51c992(0x44e)](){const _0x4b1fa9=_0x51c992;throw Error(_0x4b1fa9(0x3e1));}['onRemoteRetry'](){return this;}[_0x51c992(0x38e)](){return this;}[_0x51c992(0x302)](){const _0x278954=_0x51c992;let {_injector:_0x2028b4,_pendingMutations:_0x49122e,_awaitingChangeset:_0x46dc73,unitID:_0x2dcb7a,_handler:_0x3c1e14,type:_0x314a3a}=this,_0x35c576=Ue(_0x2028b4,_0x2dcb7a,_0x314a3a,_0x46dc73,_0x49122e,_0x3c1e14);return _0x35c576 instanceof O?_0x35c576[_0x278954(0x4ab)]():(_0x35c576 instanceof A||_0x35c576 instanceof k)&&_0x35c576[_0x278954(0x3d0)](),_0x35c576;}[_0x51c992(0x3d0)](){const _0x510aa8=_0x51c992;throw Error(_0x510aa8(0x1a5));}};M=y([v(0x5,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x6,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x342)])),v(0x7,t[_0x51c992(0x48c)]),v(0x8,t[_0x51c992(0x390)]),v(0x9,(0x0,t[_0x51c992(0x47e)])(x))],M);let N=class extends E{constructor(_0x430e71,_0x2f5e1e,_0x26b6f7,_0x39d590,_0x30cc93,_0x2db25a,_0x21f467,_0x283f83,_0x231752,_0x584586,_0x381b11,_0x45505b,_0x11f525,_0x38fe89){const _0x5338dd=_0x51c992;super(_0x430e71,_0x2f5e1e,_0x26b6f7,_0x39d590,_0x21f467,_0x381b11,_0x45505b,_0x231752,_0x38fe89),this[_0x5338dd(0x38c)]=_0x30cc93,this['_queuedRemoteChangesets']=_0x2db25a,this[_0x5338dd(0x4a1)]=_0x283f83,this['_logService']=_0x584586,this[_0x5338dd(0x364)]=_0x11f525,this['localCacheService']=_0x38fe89,g(this,_0x5338dd(0x456),_0x5338dd(0x369));}[_0x51c992(0x3b2)](_0x12ae72){const _0x4297e9=_0x51c992;try{if(this[_0x4297e9(0x2f7)](_0x12ae72)[_0x4297e9(0x1a6)])throw Error(_0x4297e9(0x2f4));if(this[_0x4297e9(0x2f7)]([...this['_queuedRemoteChangesets']][_0x4297e9(0x32d)]((_0x2edeae,_0x6749f2)=>_0x2edeae[_0x4297e9(0x461)]-_0x6749f2['revision']))[_0x4297e9(0x1a6)])return this[_0x4297e9(0x17b)]=[],this['_updateLocalCache'](),this['_handler'][_0x4297e9(0x2b2)]({'from':this[_0x4297e9(0x2a1)](),'to':0x0}),this;let _0x46eb60=this[_0x4297e9(0x497)],_0x3574c4=this['_pendingMutations'],_0x3d64e0;if(_0x46eb60&&_0x3574c4[_0x4297e9(0x187)]!==0x0)_0x3d64e0=this['_injector']['createInstance'](A,this[_0x4297e9(0x23b)],this[_0x4297e9(0x3fc)],_0x46eb60,_0x3574c4,this[_0x4297e9(0x421)],void 0x0);else{if(_0x46eb60&&_0x3574c4[_0x4297e9(0x187)]===0x0)_0x46eb60[_0x4297e9(0x1d3)]=this[_0x4297e9(0x2a1)](),_0x3d64e0=this[_0x4297e9(0x4a1)][_0x4297e9(0x3fb)](k,this['unitID'],this[_0x4297e9(0x3fc)],_0x46eb60,this[_0x4297e9(0x421)]);else{if(_0x3574c4[_0x4297e9(0x187)]!==0x0){let _0x2b5042=this[_0x4297e9(0x4a1)][_0x4297e9(0x3fb)](O,this[_0x4297e9(0x23b)],this[_0x4297e9(0x3fc)],_0x3574c4,this[_0x4297e9(0x421)]);_0x2b5042[_0x4297e9(0x4ab)](),_0x3d64e0=_0x2b5042;}else _0x3d64e0=this[_0x4297e9(0x4a1)][_0x4297e9(0x3fb)](D,this[_0x4297e9(0x23b)],this[_0x4297e9(0x3fc)],this['_handler']);}}return _0x3d64e0['_updateLocalCache'](),_0x3d64e0;}catch(_0x5926c1){return this[_0x4297e9(0x396)][_0x4297e9(0x420)](_0x4297e9(0x197),_0x4297e9(0x1b4),_0x5926c1),this[_0x4297e9(0x4a1)][_0x4297e9(0x3fb)](j,this[_0x4297e9(0x23b)],this['type'],this['_awaitingChangeset'],this[_0x4297e9(0x39e)],this[_0x4297e9(0x421)],!0x1);}}['_handleRemoteChangesets'](_0x1fa111){const _0xcd615d=_0x51c992;this[_0xcd615d(0x19d)]();for(let _0x4dd0f5=0x0;_0x4dd0f5<_0x1fa111[_0xcd615d(0x187)];_0x4dd0f5++){let _0x4bb712=_0x1fa111[_0x4dd0f5],_0x5b4d4f=this['_getCurrentRevision']();if(!(_0x4bb712['revision']<=_0x5b4d4f)){if(_0x4bb712[_0xcd615d(0x461)]>_0x5b4d4f+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x4bb712)){this[_0xcd615d(0x1b1)]();continue;}this[_0xcd615d(0x23c)](_0x4bb712),this[_0xcd615d(0x19d)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x4d8623){const _0xcb8d45=_0x51c992;let _0x130e55=_0x4d8623,_0x4024a8=this[_0xcb8d45(0x497)];if(_0x4024a8){let _0x53af4f=this[_0xcb8d45(0x364)][_0xcb8d45(0x475)]([_0x4d8623],[_0x4024a8],!0x1);if(!(0x0,e[_0xcb8d45(0x3ec)])(_0x53af4f))throw _0x53af4f[_0xcb8d45(0x420)];_0x130e55=_0x53af4f['c1Prime'][0x0],_0x4024a8=_0x53af4f[_0xcb8d45(0x27b)][0x0];}let _0x46f292=this['_pendingMutations'];if(_0x46f292['length']){let _0x36b9b2=this['_transformService'][_0xcb8d45(0x262)](_0x130e55,_0x46f292);if(!(0x0,e[_0xcb8d45(0x21b)])(_0x36b9b2))throw _0x36b9b2['error'];_0x130e55=_0x36b9b2[_0xcb8d45(0x3c6)],_0x46f292=_0x36b9b2[_0xcb8d45(0x1d1)];}this[_0xcb8d45(0x1a0)](_0x130e55),_0x4024a8&&(_0x4024a8['baseRev']=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x4024a8,this['_pendingMutations']=_0x46f292;}['_acknowledgeAwaitingIfReady'](){const _0x381aca=_0x51c992;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x5ef4ef=this[_0x381aca(0x2a1)]();if(this['_acknowledgedAwaitingRevision']<=_0x5ef4ef)throw Error(_0x381aca(0x438)+this['_acknowledgedAwaitingRevision']+'.');this[_0x381aca(0x38c)]===_0x5ef4ef+0x1&&this['_acknowledgeAwaiting']();}[_0x51c992(0x1b1)](){const _0x2a257b=_0x51c992;this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x2a257b(0x38c)]=null;}[_0x51c992(0x446)](_0x10dcdd){const _0x4ec41c=_0x51c992;let _0x105d01=this[_0x4ec41c(0x497)];return!_0x105d01||!_0x105d01[_0x4ec41c(0x1ac)]||_0x105d01[_0x4ec41c(0x224)]===null||_0x105d01[_0x4ec41c(0x224)]===void 0x0?!0x1:_0x10dcdd['unitID']===_0x105d01[_0x4ec41c(0x23b)]&&_0x10dcdd[_0x4ec41c(0x1ac)]===_0x105d01['sid']&&_0x10dcdd[_0x4ec41c(0x224)]===_0x105d01['reqId'];}[_0x51c992(0x3d0)](){const _0x4589a6=_0x51c992;throw Error(_0x4589a6(0x31d));}[_0x51c992(0x35c)](_0x24dd7e){const _0x122855=_0x51c992;return this[_0x122855(0x39e)][_0x122855(0x499)](_0x24dd7e),this;}[_0x51c992(0x43e)](_0x3ada0c){return this['_queuedRemoteChangesets']['push'](_0x3ada0c),this;}[_0x51c992(0x458)](_0x4a55b6){const _0x15379a=_0x51c992;if(this[_0x15379a(0x497)]){let _0x322bfd=this[_0x15379a(0x2a1)]();return _0x4a55b6[_0x15379a(0x461)]<=_0x322bfd||(_0x322bfd+0x1===_0x4a55b6[_0x15379a(0x461)]?(this['_incrementRevisionNumber'](),this[_0x15379a(0x497)]=null,this[_0x15379a(0x38c)]=null):this[_0x15379a(0x38c)]=_0x4a55b6[_0x15379a(0x461)]),this;}if(_0x4a55b6[_0x15379a(0x461)]<=this[_0x15379a(0x2a1)]())return this;throw Error(_0x15379a(0x48e));}[_0x51c992(0x44e)](_0x5dc207){const _0x1ee985=_0x51c992;return this[_0x1ee985(0x1f5)](!!(_0x5dc207!=null&&_0x5dc207[_0x1ee985(0x360)]));}['onRemoteRetry'](){return this;}[_0x51c992(0x38e)](){const _0x1710d6=_0x51c992;return this['_injector'][_0x1710d6(0x3fb)](M,this[_0x1710d6(0x23b)],this[_0x1710d6(0x3fc)],this[_0x1710d6(0x497)],this[_0x1710d6(0x39e)],this[_0x1710d6(0x421)]);}[_0x51c992(0x302)](){return this;}[_0x51c992(0x1f5)](_0x2bf965){const _0x321559=_0x51c992;return this[_0x321559(0x4a1)][_0x321559(0x3fb)](j,this['unitID'],this[_0x321559(0x3fc)],this['_awaitingChangeset'],this[_0x321559(0x39e)],this[_0x321559(0x421)],_0x2bf965);}};N=y([v(0x7,(0x0,t['Inject'])(t['Injector'])),v(0x8,(0x0,t[_0x51c992(0x1ba)])(e['RevisionService'])),v(0x9,t[_0x51c992(0x291)]),v(0xa,t[_0x51c992(0x48c)]),v(0xb,t['IUndoRedoService']),v(0xc,e[_0x51c992(0x354)]),v(0xd,(0x0,t['Optional'])(x))],N);function Ue(_0x56c24b,_0x82daf5,_0x5974c4,_0x222a1f,_0x176f30,_0x594494){const _0x5504bc=_0x51c992;return _0x222a1f&&_0x176f30[_0x5504bc(0x187)]?_0x56c24b[_0x5504bc(0x3fb)](A,_0x82daf5,_0x5974c4,_0x222a1f,_0x176f30,_0x594494,void 0x0):_0x222a1f?_0x56c24b[_0x5504bc(0x3fb)](k,_0x82daf5,_0x5974c4,_0x222a1f,_0x594494):_0x176f30['length']?_0x56c24b[_0x5504bc(0x3fb)](O,_0x82daf5,_0x5974c4,_0x176f30,_0x594494):_0x56c24b[_0x5504bc(0x3fb)](D,_0x82daf5,_0x5974c4,_0x594494);}let P=class extends t[_0x51c992(0x251)]{get['state'](){return this['_state'];}constructor(_0x3a421f,_0x4c19b4,_0x56b4d0,_0x26a6f0,_0xafed40,_0xc0cf92,_0x5a221a,_0x4d307e,_0x24506f,_0x1eccdb,_0x5cad82,_0x5f0e37,_0x567a7b,_0x34324a){const _0x4c04f0=_0x51c992;super(),this[_0x4c04f0(0x23b)]=_0x3a421f,this[_0x4c04f0(0x432)]=_0x4c19b4,this[_0x4c04f0(0x301)]=_0x56b4d0,this[_0x4c04f0(0x4a1)]=_0x26a6f0,this[_0x4c04f0(0x402)]=_0xafed40,this[_0x4c04f0(0x3d5)]=_0xc0cf92,this['_revisionService']=_0x5a221a,this['_eventService']=_0x4d307e,this[_0x4c04f0(0x322)]=_0x24506f,this['_logService']=_0x1eccdb,this[_0x4c04f0(0x3e4)]=_0x5cad82,this[_0x4c04f0(0x1ab)]=_0x5f0e37,this[_0x4c04f0(0x2b1)]=_0x567a7b,this[_0x4c04f0(0x451)]=_0x34324a,g(this,_0x4c04f0(0x435),new i[(_0x4c04f0(0x3f2))](null)),g(this,'state$',this[_0x4c04f0(0x435)][_0x4c04f0(0x3e3)]()),g(this,'_state',void 0x0),g(this,_0x4c04f0(0x344),!0x1),g(this,_0x4c04f0(0x3ba),''),g(this,_0x4c04f0(0x494),0x0),g(this,_0x4c04f0(0x434),this['state$'][_0x4c04f0(0x3a2)]((0x0,i['map'])(_0x143a08=>_0x143a08?_0x143a08[_0x4c04f0(0x456)]:_0x4c04f0(0x293)),(0x0,i[_0x4c04f0(0x1f9)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x4c04f0(0x462),!0x1),g(this,_0x4c04f0(0x430),[]);}async[_0x51c992(0x2b6)](){const _0x563df0=_0x51c992;if(this[_0x563df0(0x206)])throw Error(_0x563df0(0x47f));await this[_0x563df0(0x223)]();}[_0x51c992(0x376)](){const _0x3d16f1=_0x51c992;return this[_0x3d16f1(0x344)]=!0x0,(0x0,t[_0x3d16f1(0x42e)])(()=>{const _0x2ae6d1=_0x3d16f1;this[_0x2ae6d1(0x344)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x51c992(0x1f6)](_0x3f36eb){const _0x1287f7=_0x51c992;this[_0x1287f7(0x1cc)](_0x3f36eb);}[_0x51c992(0x21c)](_0x4f942b){const _0x3b70b4=_0x51c992;this[_0x3b70b4(0x2bd)]=_0x4f942b,this[_0x3b70b4(0x435)][_0x3b70b4(0x443)](_0x4f942b);}async[_0x51c992(0x223)](){const _0x1aae5b=_0x51c992;if(this[_0x1aae5b(0x21c)](await this[_0x1aae5b(0x383)]()),this[_0x1aae5b(0x2b1)]){var _0x5a6725;(_0x5a6725=this['_singleActiveUnitService'])==null||_0x5a6725[_0x1aae5b(0x2db)](this[_0x1aae5b(0x23b)]),this[_0x1aae5b(0x2d7)](this[_0x1aae5b(0x2b1)]['getUnitStatus$'](this[_0x1aae5b(0x23b)])['subscribe'](_0x64935a=>{const _0x493c73=_0x1aae5b;this[_0x493c73(0x396)][_0x493c73(0x440)](_0x493c73(0x2b5),_0x493c73(0x4af),_0x64935a),_0x64935a===0x1?(this['_eventService'][_0x493c73(0x3e8)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x493c73(0x17f)](new r['WorkbookEditablePermission'](this[_0x493c73(0x23b)])['id'],!0x1),this[_0x493c73(0x1ab)][_0x493c73(0x427)](!0x1)):(this[_0x493c73(0x1ab)][_0x493c73(0x17f)](new r[(_0x493c73(0x457))](this['unitID'])['id'],!0x0),this[_0x493c73(0x1ab)][_0x493c73(0x427)](!0x0));}));}let _0x56b66b=!0x1;return this['disposeWithMe'](this[_0x1aae5b(0x432)][_0x1aae5b(0x2e0)][_0x1aae5b(0x481)](_0x5d400c=>{const _0x1d445c=_0x1aae5b;_0x5d400c===0x3?this[_0x1d445c(0x25d)](_0x56b66b):_0x5d400c===0x2&&(_0x56b66b=!0x0,this[_0x1d445c(0x3cd)]());})),this[_0x1aae5b(0x2d7)](this[_0x1aae5b(0x432)][_0x1aae5b(0x40b)]['subscribe'](_0x56431e=>{const _0x10b766=_0x1aae5b;try{switch(_0x56431e[_0x10b766(0x309)]){case e[_0x10b766(0x496)]['NEW_CHANGESETS']:this[_0x10b766(0x326)]((0x0,e['parseProtocolChangeset'])(_0x56431e[_0x10b766(0x2e1)]));break;case e[_0x10b766(0x496)]['CHANGESET_ACK']:this[_0x10b766(0x1fe)](_0x56431e[_0x10b766(0x2e1)]);break;case e[_0x10b766(0x496)][_0x10b766(0x463)]:this['_onRemoteRejected']();break;case e[_0x10b766(0x496)][_0x10b766(0x2cd)]:this[_0x10b766(0x37d)](_0x56431e[_0x10b766(0x2e1)]);break;case e['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x10b766(0x47b)](_0x56431e[_0x10b766(0x2e1)][_0x10b766(0x1b9)][_0x10b766(0x231)](_0x16d9e3=>(0x0,e[_0x10b766(0x3a5)])(_0x16d9e3)));break;case e['CollaborationEvent']['PERMISSION_REJ']:this[_0x10b766(0x3b1)]({'isPermissionRej':!0x0});break;case e['CollaborationEvent'][_0x10b766(0x3dd)]:}}catch(_0x2a5428){throw console[_0x10b766(0x420)]('Error\x20on\x20receiving\x20event',_0x2a5428),_0x2a5428;}})),this[_0x1aae5b(0x2bd)];}[_0x51c992(0x46c)](){this['_transitionLocked']=!0x1;}[_0x51c992(0x31c)](){const _0x369d9b=_0x51c992;if(this[_0x369d9b(0x462)])throw Error(_0x369d9b(0x1fd));this[_0x369d9b(0x462)]=!0x0;}['_onLocalMutation'](_0x2e3a6d){const _0x3aa625=_0x51c992;this[_0x3aa625(0x31c)](),this[_0x3aa625(0x21c)](this[_0x3aa625(0x2bd)][_0x3aa625(0x35c)](_0x2e3a6d)),this[_0x3aa625(0x46c)]();}[_0x51c992(0x326)](_0x1cf938){const _0x1729db=_0x51c992;if(!(_0x1cf938[_0x1729db(0x461)]<=this[_0x1729db(0x23f)][_0x1729db(0x388)](this[_0x1729db(0x23b)]))){if(this[_0x1729db(0x344)]){this[_0x1729db(0x430)][_0x1729db(0x499)](_0x1cf938);return;}this[_0x1729db(0x213)](_0x1cf938);}}[_0x51c992(0x204)](){const _0x598575=_0x51c992;this[_0x598575(0x430)][_0x598575(0x1be)](_0x6d9153=>this[_0x598575(0x213)](_0x6d9153)),this[_0x598575(0x430)]=[];}[_0x51c992(0x213)](_0x18ba61){const _0x1dd471=_0x51c992;let _0x4c2b90=this[_0x1dd471(0x402)][_0x1dd471(0x274)][_0x1dd471(0x210)](this[_0x1dd471(0x402)][_0x1dd471(0x274)]['getInterceptPoints']()[_0x1dd471(0x20d)])(_0x18ba61[_0x1dd471(0x2a2)],null)||_0x18ba61['mutations'],_0x4a59b6={..._0x18ba61,'mutations':_0x4c2b90};this[_0x1dd471(0x31c)](),this['_updateState'](this['_state'][_0x1dd471(0x43e)](_0x4a59b6)),this[_0x1dd471(0x46c)]();}[_0x51c992(0x1fe)](_0xbdc927){const _0xa8ea21=_0x51c992;this[_0xa8ea21(0x31c)](),this[_0xa8ea21(0x21c)](this[_0xa8ea21(0x2bd)][_0xa8ea21(0x458)](_0xbdc927)),this[_0xa8ea21(0x46c)]();}[_0x51c992(0x3b1)](_0x1519db){const _0x284da5=_0x51c992;this['_lockTransition'](),this[_0x284da5(0x21c)](this[_0x284da5(0x2bd)][_0x284da5(0x44e)](_0x1519db)),this[_0x284da5(0x46c)]();}[_0x51c992(0x37d)](_0x33dbc8){const _0x32f1e8=_0x51c992;this[_0x32f1e8(0x31c)](),this[_0x32f1e8(0x21c)](this[_0x32f1e8(0x2bd)][_0x32f1e8(0x221)](_0x33dbc8)),this['_unlockTransition']();}[_0x51c992(0x47b)](_0x5c6a04){const _0x3be0c5=_0x51c992;if(!(this[_0x3be0c5(0x2bd)]instanceof N))throw TypeError(_0x3be0c5(0x23d));let _0x19294f=_0x5c6a04[_0x3be0c5(0x231)](_0x1c8898=>{const _0x1fa1b7=_0x3be0c5;let _0x211117=this[_0x1fa1b7(0x402)][_0x1fa1b7(0x274)][_0x1fa1b7(0x210)](this['_compressMutationService'][_0x1fa1b7(0x274)][_0x1fa1b7(0x2fe)]()[_0x1fa1b7(0x20d)])(_0x1c8898['mutations'],null)||_0x1c8898['mutations'];return{..._0x1c8898,'mutations':_0x211117};});this[_0x3be0c5(0x31c)](),this[_0x3be0c5(0x21c)](this[_0x3be0c5(0x2bd)][_0x3be0c5(0x3b2)](_0x19294f)),this[_0x3be0c5(0x46c)]();}['_toggleOffline'](){const _0xa7d5d6=_0x51c992;this['_lockTransition'](),this[_0xa7d5d6(0x21c)](this['_state'][_0xa7d5d6(0x38e)]()),this[_0xa7d5d6(0x46c)]();}[_0x51c992(0x25d)](_0x13856b=!0x1){const _0x1628fe=_0x51c992;this[_0x1628fe(0x31c)](),this[_0x1628fe(0x21c)](this[_0x1628fe(0x2bd)][_0x1628fe(0x302)]()),this[_0x1628fe(0x46c)]();let _0x2e1376=this[_0x1628fe(0x2bd)];_0x13856b&&_0x2e1376 instanceof D&&(this[_0x1628fe(0x31c)](),this[_0x1628fe(0x21c)](_0x2e1376[_0x1628fe(0x4a4)]()),this[_0x1628fe(0x46c)]());}async[_0x51c992(0x383)](){return new Promise(_0x21c790=>{const _0x4e4f82=_0x3ab5;this[_0x4e4f82(0x432)][_0x4e4f82(0x2e0)][_0x4e4f82(0x3a2)]((0x0,i[_0x4e4f82(0x1e3)])(0x1))[_0x4e4f82(0x481)](async _0x505ce6=>{const _0x1f4e34=_0x4e4f82;_0x21c790(await this[_0x1f4e34(0x295)](_0x505ce6===0x3));});});}[_0x51c992(0x31f)](){let _0x1af68a=this['unitID'];return{'onStateChange':(_0x3a789c,_0x4f44df)=>{const _0x1148db=_0x3ab5;if(_0x3a789c!==this[_0x1148db(0x2bd)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3a789c[_0x1148db(0x456)]+_0x1148db(0x3ca)+_0x4f44df['status']+_0x1148db(0x467)+this[_0x1148db(0x2bd)]['status']);this['_updateState'](_0x4f44df);},'onSendChangeset':_0x1e1321=>{const _0x5e50e5=_0x3ab5;_0x1e1321[_0x5e50e5(0x1ac)]||(_0x1e1321[_0x5e50e5(0x1ac)]=this[_0x5e50e5(0x3ba)],_0x1e1321[_0x5e50e5(0x224)]=++this['_changesetReqId']);let _0x53e3df={'eventID':e[_0x5e50e5(0x496)][_0x5e50e5(0x1de)],'data':{'unitID':_0x1e1321[_0x5e50e5(0x23b)],'unitType':this[_0x5e50e5(0x301)],'changeset':_0x1e1321,'memberID':this[_0x5e50e5(0x432)][_0x5e50e5(0x30d)]()}};this[_0x5e50e5(0x432)]['send'](_0x53e3df,this['unitID']);},'onMissingChangesets':({from:_0x289a6f,to:_0x1661a8})=>{const _0x24962e=_0x3ab5;this[_0x24962e(0x396)]['debug'](_0x24962e(0x2b5),_0x24962e(0x23e)+_0x289a6f+'\x20to\x20'+_0x1661a8);let _0x525bad={'eventID':e[_0x24962e(0x496)][_0x24962e(0x340)],'data':{'unitID':_0x1af68a,'unitType':this[_0x24962e(0x301)],'from':_0x289a6f,'to':_0x1661a8}};this['session'][_0x24962e(0x2a9)](_0x525bad,this[_0x24962e(0x23b)]);}};}async[_0x51c992(0x295)](_0x47db5a){const _0x11041a=_0x51c992;var _0x24194e;let _0x1cf1d7=await((_0x24194e=this[_0x11041a(0x451)])==null?void 0x0:_0x24194e[_0x11041a(0x30a)](this[_0x11041a(0x23b)])),_0x2bcd5e=(_0x1cf1d7==null?void 0x0:_0x1cf1d7[_0x11041a(0x2a2)])??[],_0x4b6841=(_0x1cf1d7==null?void 0x0:_0x1cf1d7[_0x11041a(0x3f8)])??null,_0xc51812=!!(_0x4b6841!=null&&_0x4b6841['sid'])&&!!(_0x4b6841!=null&&_0x4b6841[_0x11041a(0x224)]);this[_0x11041a(0x3ba)]=_0xc51812?_0x4b6841[_0x11041a(0x1ac)]:(0x0,e['uuidv4'])(),this[_0x11041a(0x494)]=_0xc51812?_0x4b6841[_0x11041a(0x224)]:0x0;let _0x4604ba=this[_0x11041a(0x23b)];try{this[_0x11041a(0x1b3)](_0x4b6841,_0x2bcd5e);}catch(_0x52b838){this[_0x11041a(0x396)][_0x11041a(0x420)](_0x52b838);}let _0x2dbe45=this[_0x11041a(0x31f)]();if(_0x47db5a){let _0x426479=Ue(this[_0x11041a(0x4a1)],_0x4604ba,this['_type'],_0x4b6841,_0x2bcd5e,_0x2dbe45);return _0x426479 instanceof O?_0x426479['_schedule']():(_0x426479 instanceof A||_0x426479 instanceof k)&&_0x426479[_0x11041a(0x3d0)](),_0x426479;}return this['_injector'][_0x11041a(0x3fb)](M,_0x4604ba,this[_0x11041a(0x301)],_0x4b6841,_0x2bcd5e,_0x2dbe45);}['_replayCachedMutations'](_0x2cc63a,_0x259af1){const _0x45a9e1=_0x51c992;var _0x28e2a7,_0x133626;let _0x2055d5=this['_compressMutationService']['interceptor'][_0x45a9e1(0x210)](this['_compressMutationService'][_0x45a9e1(0x274)][_0x45a9e1(0x2fe)]()[_0x45a9e1(0x20d)]);(_0x28e2a7=_0x2055d5((_0x2cc63a==null?void 0x0:_0x2cc63a[_0x45a9e1(0x2a2)])||[],null))==null||_0x28e2a7['forEach'](_0x15f3e2=>this[_0x45a9e1(0x3e4)][_0x45a9e1(0x1f8)](_0x15f3e2['id'],_0x15f3e2[_0x45a9e1(0x2a5)])),(_0x133626=_0x2055d5(_0x259af1||[],null))==null||_0x133626[_0x45a9e1(0x1be)](_0x184bd7=>this[_0x45a9e1(0x3e4)][_0x45a9e1(0x1f8)](_0x184bd7['id'],_0x184bd7[_0x45a9e1(0x2a5)]));}};P=y([v(0x3,(0x0,t[_0x51c992(0x1ba)])(t['Injector'])),v(0x4,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x1f0)])),v(0x5,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x29e)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t[_0x51c992(0x1ba)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x51c992(0x291)]),v(0xa,t['ICommandService']),v(0xb,t[_0x51c992(0x255)]),v(0xc,(0x0,t[_0x51c992(0x47e)])(C)),v(0xd,(0x0,t['Optional'])(x))],P);let F=class extends P{constructor(_0xa6d2a5,_0x9b71d7,_0x36aca9,_0x31b9a0,_0x164683,_0x2ba182,_0x315963,_0x8812d7,_0x168a5d,_0x178f88,_0x4160c9,_0x25ad35,_0x2547da,_0xd98bb2,_0x56a5dd){const _0x38bd60=_0x51c992;super(_0xa6d2a5,_0x36aca9,_0x9b71d7,_0x31b9a0,_0x164683,_0x2ba182,_0x315963,_0x8812d7,_0x168a5d,_0x178f88,_0x4160c9,_0x25ad35,_0xd98bb2,_0x56a5dd),this[_0x38bd60(0x23b)]=_0xa6d2a5,this[_0x38bd60(0x3fc)]=_0x9b71d7,this[_0x38bd60(0x192)]=_0x2547da,g(this,_0x38bd60(0x40f),null);}[_0x51c992(0x49b)](_0x438fa8){const _0x4fe58c=_0x51c992;this[_0x4fe58c(0x40f)]=_0x438fa8;}[_0x51c992(0x37b)](){const _0x505037=_0x51c992;this[_0x505037(0x40f)]=null,super[_0x505037(0x37b)]();}[_0x51c992(0x31f)](){const _0x12b22e=_0x51c992;let _0x472e0c=super[_0x12b22e(0x31f)]();return _0x472e0c[_0x12b22e(0x4aa)]=_0x36e73b=>{const _0xc6ab8c=_0x12b22e;var _0x98f2dd,_0x34baca;return(_0x98f2dd=this[_0xc6ab8c(0x40f)])==null||(_0x34baca=_0x98f2dd[_0xc6ab8c(0x4aa)])==null?void 0x0:_0x34baca[_0xc6ab8c(0x454)](_0x98f2dd,_0x36e73b);},_0x472e0c['onTransformState']=_0x228cde=>{const _0x92e9d5=_0x12b22e;var _0xb99196,_0x91c330;return(_0xb99196=this[_0x92e9d5(0x40f)])==null||(_0x91c330=_0xb99196[_0x92e9d5(0x33f)])==null?void 0x0:_0x91c330['call'](_0xb99196,_0x228cde);},_0x472e0c[_0x12b22e(0x29c)]=_0x9e1335=>{const _0x2bf898=_0x12b22e;var _0x5203aa,_0x5e1501;return((_0x5203aa=this['_handlerCallback'])==null||(_0x5e1501=_0x5203aa[_0x2bf898(0x29c)])==null?void 0x0:_0x5e1501[_0x2bf898(0x454)](_0x5203aa,_0x9e1335))??null;},_0x472e0c[_0x12b22e(0x2d0)]=_0x2c9792=>{const _0x2fdf35=_0x12b22e;var _0x2487d9,_0x138ac7;return(_0x2487d9=this[_0x2fdf35(0x40f)])==null||(_0x138ac7=_0x2487d9[_0x2fdf35(0x2d0)])==null?void 0x0:_0x138ac7[_0x2fdf35(0x454)](_0x2487d9,_0x2c9792);},_0x472e0c['onSyncEditingCollabCursor']=_0x11b8de=>{const _0x5eaf11=_0x12b22e;var _0x1a4d6a,_0x259f38;return(_0x1a4d6a=this[_0x5eaf11(0x40f)])==null||(_0x259f38=_0x1a4d6a[_0x5eaf11(0x3b4)])==null?void 0x0:_0x259f38[_0x5eaf11(0x454)](_0x1a4d6a,_0x11b8de);},_0x472e0c[_0x12b22e(0x3a8)]=_0x47213e=>{const _0x42c63b=_0x12b22e;var _0x460fa7,_0x27e298;return((_0x460fa7=this[_0x42c63b(0x40f)])==null||(_0x27e298=_0x460fa7[_0x42c63b(0x3a8)])==null?void 0x0:_0x27e298[_0x42c63b(0x454)](_0x460fa7,_0x47213e))??_0x47213e;},_0x472e0c[_0x12b22e(0x196)]=_0x425730=>{const _0x4bf654=_0x12b22e;var _0x30e766,_0x2a0e35;return((_0x30e766=this[_0x4bf654(0x40f)])==null||(_0x2a0e35=_0x30e766[_0x4bf654(0x196)])==null?void 0x0:_0x2a0e35[_0x4bf654(0x454)](_0x30e766,_0x425730))??_0x425730;},_0x472e0c;}async[_0x51c992(0x223)](){const _0x1207a8=_0x51c992;let _0x4a5ec2=await super[_0x1207a8(0x223)]();return this[_0x1207a8(0x2d7)](this[_0x1207a8(0x192)][_0x1207a8(0x195)][_0x1207a8(0x481)](_0x4cd293=>{const _0x5cbacc=_0x1207a8;if(_0x4cd293==null||_0x4cd293[_0x5cbacc(0x44c)]!==this[_0x5cbacc(0x23b)])return;let {commandId:_0x133560,redoState:_0x2b163d,unitId:_0x358171}=_0x4cd293,_0x4c62d7={'id':_0x133560,'type':t[_0x5cbacc(0x283)][_0x5cbacc(0x488)],'params':{'unitId':_0x358171,'actions':_0x2b163d[_0x5cbacc(0x27c)],'textRanges':null}};this[_0x5cbacc(0x1cc)](_0x4c62d7);})),this[_0x1207a8(0x2d7)](this[_0x1207a8(0x3e4)][_0x1207a8(0x1ca)]((_0x479f02,_0x704dd3)=>{const _0xed864=_0x1207a8;if(_0x479f02['type']!==t['CommandType'][_0xed864(0x488)]||_0x704dd3!=null&&_0x704dd3[_0xed864(0x43f)]||_0x704dd3!=null&&_0x704dd3['onlyLocal']||_0x479f02['id']===n[_0xed864(0x27a)]['id'])return;let _0x320190=_0x479f02['params'];if((_0x320190==null?void 0x0:_0x320190[_0xed864(0x44c)])!==this[_0xed864(0x23b)])return;let _0x402211=_0x479f02,_0x5efa99=this[_0xed864(0x402)]['interceptor'][_0xed864(0x210)](this['_compressMutationService'][_0xed864(0x274)][_0xed864(0x2fe)]()[_0xed864(0x41b)])([_0x402211],this[_0xed864(0x322)])||[_0x402211];this[_0xed864(0x1cc)](_0x5efa99[0x0]);})),_0x4a5ec2;}};F=y([v(0x3,(0x0,t['Inject'])(t[_0x51c992(0x401)])),v(0x4,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x1f0)])),v(0x5,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x29e)])),v(0x6,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x342)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x51c992(0x291)]),v(0xa,t[_0x51c992(0x48c)]),v(0xb,t[_0x51c992(0x255)]),v(0xc,(0x0,t[_0x51c992(0x1ba)])(n['DocStateChangeManagerService'])),v(0xd,(0x0,t[_0x51c992(0x47e)])(C)),v(0xe,(0x0,t[_0x51c992(0x47e)])(x))],F);let I=class extends P{constructor(_0x56500a,_0x330b54,_0x3b2090,_0x5909d5,_0x17f023,_0x134557,_0x57e365,_0x4c5c51,_0x44a835,_0x56d048,_0xb9bc3a,_0x4c9d8f,_0x48395b,_0x4b3255){const _0x38897d=_0x51c992;super(_0x56500a,_0x3b2090,_0x330b54,_0x5909d5,_0x17f023,_0x134557,_0x57e365,_0x4c5c51,_0x44a835,_0x56d048,_0xb9bc3a,_0x4c9d8f,_0x48395b,_0x4b3255),this['unitID']=_0x56500a,this[_0x38897d(0x3fc)]=_0x330b54;}async['_init'](){const _0x21d788=_0x51c992;let _0x4c520b=await super[_0x21d788(0x223)]();return this[_0x21d788(0x2d7)](this[_0x21d788(0x3e4)][_0x21d788(0x1ca)]((_0x26fe0d,_0x298b3f)=>{const _0x8dcd71=_0x21d788;if(_0x26fe0d[_0x8dcd71(0x3fc)]!==t[_0x8dcd71(0x283)][_0x8dcd71(0x488)]||_0x298b3f!=null&&_0x298b3f[_0x8dcd71(0x43f)]||_0x298b3f!=null&&_0x298b3f['onlyLocal'])return;let _0x1b30c0=_0x26fe0d['params'];if((_0x1b30c0==null?void 0x0:_0x1b30c0[_0x8dcd71(0x44c)])!==this['unitID'])return;let _0x8f2c3f=_0x26fe0d,_0x368735=this[_0x8dcd71(0x402)][_0x8dcd71(0x274)][_0x8dcd71(0x210)](this[_0x8dcd71(0x402)][_0x8dcd71(0x274)][_0x8dcd71(0x2fe)]()[_0x8dcd71(0x41b)])([_0x8f2c3f],this[_0x8dcd71(0x322)])||[_0x8f2c3f];this[_0x8dcd71(0x1cc)](_0x368735[0x0]);})),_0x4c520b;}};I=y([v(0x3,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x4,(0x0,t[_0x51c992(0x1ba)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x51c992(0x29e)])),v(0x6,(0x0,t['Inject'])(e[_0x51c992(0x342)])),v(0x7,(0x0,t[_0x51c992(0x1ba)])(_)),v(0x8,t[_0x51c992(0x1dd)]),v(0x9,t[_0x51c992(0x291)]),v(0xa,t[_0x51c992(0x48c)]),v(0xb,t[_0x51c992(0x255)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x51c992(0x47e)])(x))],I);let L=class extends P{constructor(_0x1a95e6,_0x52ff4c,_0x19d3ad,_0x34df9f,_0x530c70,_0x1b7eaf,_0x55ed53,_0x14f1db,_0xaf56bd,_0x5a27a7,_0x1514c3,_0x54e9ed,_0x38121a,_0xf342f9,_0x2c3146){const _0x3a22d1=_0x51c992;super(_0x1a95e6,_0x19d3ad,_0x52ff4c,_0x34df9f,_0x530c70,_0x1b7eaf,_0x55ed53,_0xaf56bd,_0x5a27a7,_0x1514c3,_0x54e9ed,_0x38121a,_0xf342f9,_0x2c3146),this[_0x3a22d1(0x23b)]=_0x1a95e6,this[_0x3a22d1(0x3fc)]=_0x52ff4c,this[_0x3a22d1(0x3e6)]=_0x14f1db;}[_0x51c992(0x31f)](){const _0xeb8d04=_0x51c992;let _0x5b3ad2=super['_createHandler']();return _0x5b3ad2[_0xeb8d04(0x2d0)]=_0x5a9f80=>this[_0xeb8d04(0x3e6)][_0xeb8d04(0x24e)](_0x5a9f80),_0x5b3ad2;}async[_0x51c992(0x223)](){const _0x298e3e=_0x51c992;let _0x62405e=await super[_0x298e3e(0x223)]();return this[_0x298e3e(0x2d7)](this[_0x298e3e(0x3e4)][_0x298e3e(0x1ca)]((_0x46f616,_0x4d3c92)=>{const _0x210659=_0x298e3e;if(_0x46f616[_0x210659(0x3fc)]!==t['CommandType'][_0x210659(0x488)]||_0x4d3c92!=null&&_0x4d3c92[_0x210659(0x43f)]||_0x4d3c92!=null&&_0x4d3c92[_0x210659(0x417)])return;let _0x5c4020=_0x46f616[_0x210659(0x2a5)];if((_0x5c4020==null?void 0x0:_0x5c4020[_0x210659(0x44c)])!==this[_0x210659(0x23b)])return;let _0x1a29df=_0x46f616,_0x357b66=this[_0x210659(0x402)][_0x210659(0x274)][_0x210659(0x210)](this[_0x210659(0x402)][_0x210659(0x274)][_0x210659(0x2fe)]()[_0x210659(0x41b)])([_0x1a29df],this[_0x210659(0x322)])||[_0x1a29df];this[_0x210659(0x1cc)](_0x357b66[0x0]);})),_0x62405e;}};L=y([v(0x3,(0x0,t['Inject'])(t[_0x51c992(0x401)])),v(0x4,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x1f0)])),v(0x5,(0x0,t['Inject'])(t[_0x51c992(0x29e)])),v(0x6,(0x0,t['Inject'])(e[_0x51c992(0x342)])),v(0x7,(0x0,t[_0x51c992(0x1ba)])(S)),v(0x8,(0x0,t[_0x51c992(0x1ba)])(_)),v(0x9,t['IUniverInstanceService']),v(0xa,t['ILogService']),v(0xb,t[_0x51c992(0x48c)]),v(0xc,t[_0x51c992(0x255)]),v(0xd,(0x0,t[_0x51c992(0x47e)])(C)),v(0xe,(0x0,t[_0x51c992(0x47e)])(x))],L);let R=class extends P{constructor(_0x4ba393,_0x2c050c,_0x3facce,_0x124d54,_0x18f7d0,_0x2d1794,_0x250655,_0x544f0e,_0x4c35ae,_0x124621,_0x4e34a9,_0x28acb4,_0x52fd80,_0x18c375){const _0xabf747=_0x51c992;super(_0x4ba393,_0x3facce,_0x2c050c,_0x124d54,_0x18f7d0,_0x2d1794,_0x250655,_0x544f0e,_0x4c35ae,_0x124621,_0x4e34a9,_0x28acb4,_0x52fd80,_0x18c375),this[_0xabf747(0x23b)]=_0x4ba393,this[_0xabf747(0x3fc)]=_0x2c050c;}async['_init'](){const _0xac2454=_0x51c992;let _0x5b012b=await super[_0xac2454(0x223)]();return this['disposeWithMe'](this[_0xac2454(0x3e4)][_0xac2454(0x1ca)]((_0x144355,_0x1fbee2)=>{const _0x5b2a1d=_0xac2454;if(_0x144355[_0x5b2a1d(0x3fc)]!==t['CommandType']['MUTATION']||_0x1fbee2!=null&&_0x1fbee2[_0x5b2a1d(0x43f)]||_0x1fbee2!=null&&_0x1fbee2[_0x5b2a1d(0x417)])return;let _0x4625db=_0x144355[_0x5b2a1d(0x2a5)];if((_0x4625db==null?void 0x0:_0x4625db['unitId'])!==this[_0x5b2a1d(0x23b)])return;let _0x1ffba8=_0x144355,_0x122989=this['_compressMutationService'][_0x5b2a1d(0x274)][_0x5b2a1d(0x210)](this[_0x5b2a1d(0x402)][_0x5b2a1d(0x274)]['getInterceptPoints']()[_0x5b2a1d(0x41b)])([_0x1ffba8],this[_0x5b2a1d(0x322)])||[_0x1ffba8];this[_0x5b2a1d(0x1cc)](_0x122989[0x0]);})),_0x5b012b;}};R=y([v(0x3,(0x0,t['Inject'])(t[_0x51c992(0x401)])),v(0x4,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x1f0)])),v(0x5,(0x0,t[_0x51c992(0x1ba)])(t['LocaleService'])),v(0x6,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x342)])),v(0x7,(0x0,t[_0x51c992(0x1ba)])(_)),v(0x8,t[_0x51c992(0x1dd)]),v(0x9,t[_0x51c992(0x291)]),v(0xa,t['ICommandService']),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x51c992(0x47e)])(C)),v(0xd,(0x0,t[_0x51c992(0x47e)])(x))],R);let z=class extends P{constructor(_0x6df323,_0x1cdc87,_0x29c3bf,_0x1ab627,_0x2a4d66,_0x5cb0ee,_0x12d33c,_0x5c2c9c,_0xf5cf0,_0x1bad75,_0x2e6e8f,_0x2b79a0,_0x5a9b76,_0x342304){const _0x300911=_0x51c992;super(_0x6df323,_0x29c3bf,_0x1cdc87,_0x1ab627,_0x2a4d66,_0x5cb0ee,_0x12d33c,_0x5c2c9c,_0xf5cf0,_0x1bad75,_0x2e6e8f,_0x2b79a0,_0x5a9b76,_0x342304),this['unitID']=_0x6df323,this[_0x300911(0x3fc)]=_0x1cdc87;}async[_0x51c992(0x223)](){const _0x394f4b=_0x51c992;let _0x335bb2=await super[_0x394f4b(0x223)]();return this['disposeWithMe'](this[_0x394f4b(0x3e4)][_0x394f4b(0x1ca)]((_0x443cf8,_0x1c2463)=>{const _0x1d32e3=_0x394f4b;if(_0x443cf8[_0x1d32e3(0x3fc)]!==t[_0x1d32e3(0x283)][_0x1d32e3(0x488)]||_0x1c2463!=null&&_0x1c2463[_0x1d32e3(0x43f)]||_0x1c2463!=null&&_0x1c2463[_0x1d32e3(0x417)])return;let _0x42f638=_0x443cf8['params'];if((_0x42f638==null?void 0x0:_0x42f638['unitId'])!==this[_0x1d32e3(0x23b)])return;let _0xcf01ff=_0x443cf8,_0x1bdbd7=this['_compressMutationService']['interceptor'][_0x1d32e3(0x210)](this[_0x1d32e3(0x402)]['interceptor'][_0x1d32e3(0x2fe)]()['COMPRESS_MUTATION_SEND'])([_0xcf01ff],this[_0x1d32e3(0x322)])||[_0xcf01ff];this[_0x1d32e3(0x1cc)](_0x1bdbd7[0x0]);})),_0x335bb2;}};z=y([v(0x3,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x4,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x1f0)])),v(0x5,(0x0,t['Inject'])(t[_0x51c992(0x29e)])),v(0x6,(0x0,t['Inject'])(e[_0x51c992(0x342)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x51c992(0x1dd)]),v(0x9,t[_0x51c992(0x291)]),v(0xa,t[_0x51c992(0x48c)]),v(0xb,t[_0x51c992(0x255)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],z);let B=class extends P{constructor(_0x4af697,_0x7ee5e5,_0x1d4ad1,_0x39dd5e,_0x2786ef,_0x5776d1,_0x3aef2b,_0x50d545,_0x50a873,_0x357e4a,_0x114bf6,_0x50d231,_0x437091,_0x470eb9){const _0x3dec0d=_0x51c992;super(_0x4af697,_0x1d4ad1,_0x7ee5e5,_0x39dd5e,_0x2786ef,_0x5776d1,_0x3aef2b,_0x50d545,_0x50a873,_0x357e4a,_0x114bf6,_0x50d231,_0x437091,_0x470eb9),this[_0x3dec0d(0x23b)]=_0x4af697,this[_0x3dec0d(0x3fc)]=_0x7ee5e5;}async[_0x51c992(0x223)](){const _0x485434=_0x51c992;let _0x353bad=await super['_init']();return this[_0x485434(0x2d7)](this[_0x485434(0x3e4)]['onMutationExecutedForCollab']((_0x13ae5c,_0x5be509)=>{const _0x490030=_0x485434;if(_0x13ae5c['type']!==t['CommandType'][_0x490030(0x488)]||_0x5be509!=null&&_0x5be509['fromCollab']||_0x5be509!=null&&_0x5be509[_0x490030(0x417)])return;let _0xea1c8c=_0x13ae5c[_0x490030(0x2a5)];if((_0xea1c8c==null?void 0x0:_0xea1c8c[_0x490030(0x44c)])!==this[_0x490030(0x23b)])return;let _0x91cac3=_0x13ae5c,_0x54fa9b=this[_0x490030(0x402)]['interceptor']['fetchThroughInterceptors'](this[_0x490030(0x402)]['interceptor'][_0x490030(0x2fe)]()[_0x490030(0x41b)])([_0x91cac3],this[_0x490030(0x322)])||[_0x91cac3];this[_0x490030(0x1cc)](_0x54fa9b[0x0]);})),_0x353bad;}};B=y([v(0x3,(0x0,t['Inject'])(t[_0x51c992(0x401)])),v(0x4,(0x0,t['Inject'])(e[_0x51c992(0x1f0)])),v(0x5,(0x0,t[_0x51c992(0x1ba)])(t['LocaleService'])),v(0x6,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x342)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x51c992(0x1dd)]),v(0x9,t['ILogService']),v(0xa,t[_0x51c992(0x48c)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x51c992(0x47e)])(C)),v(0xd,(0x0,t[_0x51c992(0x47e)])(x))],B);const We=(0x0,t['createIdentifier'])(_0x51c992(0x1f7));function Ge(_0x551367){const _0x42afb3=_0x51c992;let _0x1f371c=_0x551367[_0x42afb3(0x2e1)],_0x2f6993=JSON[_0x42afb3(0x247)](_0x1f371c);switch(_0x2f6993[_0x42afb3(0x19b)]){case a[_0x42afb3(0x399)]['HEARTBEAT']:case a['CombCmd'][_0x42afb3(0x1e7)]:{let _0x403bdf=_0x2f6993['infoRsp'];return{..._0x2f6993,'data':_0x403bdf,'cmd':_0x2f6993[_0x42afb3(0x19b)]};}case a[_0x42afb3(0x399)][_0x42afb3(0x1af)]:{let _0x3dc1fb=_0x2f6993[_0x42afb3(0x424)];return{..._0x2f6993,'data':_0x3dc1fb,'cmd':_0x2f6993['cmd']};}case a[_0x42afb3(0x399)]['RECV']:{let _0x350c65=_0x2f6993[_0x42afb3(0x2c7)];switch(_0x350c65[_0x42afb3(0x309)]){case e[_0x42afb3(0x496)][_0x42afb3(0x39f)]:var _0x2cad05;return{..._0x2f6993,'data':{..._0x350c65,'data':(_0x2cad05=_0x350c65[_0x42afb3(0x3ee)])==null?void 0x0:_0x2cad05['cs']},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)]['CHANGESET_ACK']:var _0x5e8ed4;return{..._0x2f6993,'data':{..._0x350c65,'data':(_0x5e8ed4=_0x350c65[_0x42afb3(0x2f6)])==null?void 0x0:_0x5e8ed4['cs']},'cmd':_0x2f6993['cmd']};case e[_0x42afb3(0x496)][_0x42afb3(0x319)]:var _0x4b7599;return{..._0x2f6993,'data':{..._0x350c65,'data':(_0x4b7599=_0x350c65['newCsEvent'])==null?void 0x0:_0x4b7599['cs']},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)][_0x42afb3(0x463)]:var _0x36f9cc;return{..._0x2f6993,'data':{..._0x350c65,'data':(_0x36f9cc=_0x350c65[_0x42afb3(0x473)])==null?void 0x0:_0x36f9cc['cs']},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)][_0x42afb3(0x2cd)]:var _0x304c81;return{..._0x2f6993,'data':{..._0x350c65,'data':(_0x304c81=_0x350c65['csShouldRetryEvent'])==null?void 0x0:_0x304c81['cs']},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)][_0x42afb3(0x476)]:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65[_0x42afb3(0x3dc)]},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)]['USERS_ENTER']:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65[_0x42afb3(0x1bb)]},'cmd':_0x2f6993['cmd']};case e[_0x42afb3(0x496)]['USERS_LEAVE']:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65[_0x42afb3(0x256)]},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)][_0x42afb3(0x4a6)]:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65[_0x42afb3(0x182)]},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)][_0x42afb3(0x21a)]:case e[_0x42afb3(0x496)][_0x42afb3(0x3db)]:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65[_0x42afb3(0x368)]},'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)]['LIVESHARE_TERMINATE']:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65['liveShareNewHost']},'cmd':_0x2f6993['cmd']};case e[_0x42afb3(0x496)]['MSG_FOR_ERROR']:return{..._0x2f6993,'data':_0x350c65,'cmd':_0x2f6993[_0x42afb3(0x19b)]};case e[_0x42afb3(0x496)]['COMMENT_UPDATE']:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65[_0x42afb3(0x3d1)]},'cmd':_0x2f6993['cmd']};case e[_0x42afb3(0x496)][_0x42afb3(0x4a5)]:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65['updatePermissionObjEvent']},'cmd':_0x2f6993['cmd']};case e[_0x42afb3(0x496)]['SHOULD_CLOSE_CONN']:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65['shouldCloseConn']},'cmd':_0x2f6993['cmd']};case e[_0x42afb3(0x496)]['UNISCRIPT_RUN']:return{..._0x2f6993,'data':{..._0x350c65,'data':_0x350c65['uniscriptRunEvent']},'cmd':_0x2f6993['cmd']};default:return _0x2f6993;}}default:return _0x2f6993;}}function Ke(_0x1386af){const _0x12294a=_0x51c992;switch(_0x1386af[_0x12294a(0x19b)]){case a['CombCmd'][_0x12294a(0x311)]:case a['CombCmd'][_0x12294a(0x1e7)]:return JSON[_0x12294a(0x45d)]({'cmd':_0x1386af[_0x12294a(0x19b)],'routeKey':_0x1386af['routeKey']});case a[_0x12294a(0x399)][_0x12294a(0x37f)]:{let _0x5993ef;switch(_0x1386af['data']['eventID']){case e[_0x12294a(0x496)]['UPDATE_CURSOR']:_0x5993ef={'eventID':e['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x1386af[_0x12294a(0x2e1)][_0x12294a(0x2e1)]};break;case e['CollaborationEvent'][_0x12294a(0x34e)]:_0x5993ef={'eventID':e[_0x12294a(0x496)]['USERS_LEAVE'],'leaveEvent':_0x1386af['data'][_0x12294a(0x2e1)]};break;case e[_0x12294a(0x496)][_0x12294a(0x2c2)]:_0x5993ef={'eventID':e['CollaborationEvent'][_0x12294a(0x2c2)],'joinEvent':_0x1386af[_0x12294a(0x2e1)][_0x12294a(0x2e1)]};break;case e[_0x12294a(0x496)][_0x12294a(0x4a6)]:_0x5993ef={'eventID':e[_0x12294a(0x496)][_0x12294a(0x4a6)],'liveShareNewHost':_0x1386af[_0x12294a(0x2e1)][_0x12294a(0x2e1)]};break;case e[_0x12294a(0x496)]['LIVESHARE_OPERATION']:_0x5993ef={'eventID':e[_0x12294a(0x496)][_0x12294a(0x3db)],'liveShareOperation':_0x1386af[_0x12294a(0x2e1)][_0x12294a(0x2e1)]};break;case e[_0x12294a(0x496)]['LIVESHARE_TERMINATE']:_0x5993ef={'eventID':e[_0x12294a(0x496)][_0x12294a(0x252)],'liveShareTerminate':_0x1386af[_0x12294a(0x2e1)]['data']};break;case e[_0x12294a(0x496)][_0x12294a(0x282)]:_0x5993ef={'eventID':e[_0x12294a(0x496)][_0x12294a(0x282)],'liveShareRequestHost':_0x1386af[_0x12294a(0x2e1)][_0x12294a(0x2e1)]};break;case e['CollaborationEvent'][_0x12294a(0x21a)]:_0x5993ef={'eventID':e[_0x12294a(0x496)][_0x12294a(0x21a)]};break;default:_0x5993ef={'eventID':_0x1386af['data'][_0x12294a(0x309)]};}return JSON[_0x12294a(0x45d)]({'cmd':_0x1386af[_0x12294a(0x19b)],'routeKey':_0x1386af[_0x12294a(0x308)],'collaMsg':_0x5993ef});}case a[_0x12294a(0x399)][_0x12294a(0x1af)]:return JSON[_0x12294a(0x45d)]({'cmd':_0x1386af[_0x12294a(0x19b)],'routeKey':_0x1386af[_0x12294a(0x308)],'joinReq':_0x1386af[_0x12294a(0x2e1)]});case a[_0x12294a(0x399)][_0x12294a(0x442)]:return JSON[_0x12294a(0x45d)]({'cmd':_0x1386af[_0x12294a(0x19b)],'routeKey':_0x1386af['routeKey'],'leaveReq':_0x1386af[_0x12294a(0x2e1)]});default:throw Error(_0x12294a(0x298));}}const qe=(0x0,t[_0x51c992(0x2e3)])(_0x51c992(0x33e));function Je(_0x204d6f,_0x2c37ba,_0x2641ba){const _0x2254b2=_0x51c992;return _0x204d6f+'/'+_0x2c37ba+_0x2254b2(0x198)+_0x2641ba+_0x2254b2(0x385);}let Ye=class extends t[_0x51c992(0x3ac)]{constructor(_0x138473,_0x2e5708,_0x54763c,_0x40127f,_0x1de40e){const _0x24379c=_0x51c992;super(),this[_0x24379c(0x4a1)]=_0x138473,this['_httpService']=_0x2e5708,this['_configService']=_0x54763c,this[_0x24379c(0x396)]=_0x40127f,this['_snapshotServerService']=_0x1de40e;}['_doCreateSocket'](_0x62b799){const _0x26db32=_0x51c992;let _0x5d8c73=this[_0x26db32(0x4a1)][_0x26db32(0x403)](l[_0x26db32(0x3c9)]);if(!_0x5d8c73)throw Error(_0x26db32(0x36e));let _0x269e56=_0x5d8c73[_0x26db32(0x3cf)](_0x62b799);if(!_0x269e56)throw Error(_0x26db32(0x34a));let _0x4e7b5b=new t[(_0x26db32(0x3f1))](),_0xdc7753=new i[(_0x26db32(0x29d))]();_0x4e7b5b[_0x26db32(0x45a)](_0x269e56[_0x26db32(0x245)]['subscribe'](_0x1b9ceb=>_0xdc7753[_0x26db32(0x443)](_0x1b9ceb))),_0x4e7b5b['add']((0x0,t[_0x26db32(0x42e)])(()=>_0xdc7753['complete']()));let _0x25fdda=new i[(_0x26db32(0x29d))]();_0x4e7b5b[_0x26db32(0x45a)](_0x269e56[_0x26db32(0x38b)]['subscribe'](_0x4ea30a=>_0x25fdda[_0x26db32(0x443)](_0x4ea30a))),_0x4e7b5b[_0x26db32(0x45a)]((0x0,t[_0x26db32(0x42e)])(()=>_0x25fdda[_0x26db32(0x3a9)]()));let _0x4ee658=new i[(_0x26db32(0x29d))]();_0x4e7b5b[_0x26db32(0x45a)](_0x269e56[_0x26db32(0x194)][_0x26db32(0x481)](_0x3c3cfe=>{let _0x174d08=Ge(_0x3c3cfe);_0x4ee658['next'](_0x174d08);})),_0x4e7b5b[_0x26db32(0x45a)]((0x0,t['toDisposable'])(()=>_0x4ee658['complete']()));let _0x3f6e35,_0x25a264=()=>{const _0x4445f9=_0x26db32;_0x25fdda[_0x4445f9(0x443)](new Event(_0x4445f9(0x288))),_0xdc7753[_0x4445f9(0x443)](new Event('connection\x20error')),_0x3f6e35[_0x4445f9(0x35f)]();};return _0x3f6e35={'memberID':'','close$':_0xdc7753[_0x26db32(0x3e3)](),'error$':_0x25fdda[_0x26db32(0x3e3)](),'open$':_0x269e56['open$'],'message$':_0x4ee658[_0x26db32(0x3e3)](),'send':_0x4fd21a=>{const _0x5cf6c0=_0x26db32;if(_0x4fd21a['cmd']===a[_0x5cf6c0(0x399)][_0x5cf6c0(0x37f)]){if(_0x4fd21a[_0x5cf6c0(0x2e1)][_0x5cf6c0(0x309)]===e['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x5cf6c0(0x30e)](_0x3f6e35,_0x4fd21a[_0x5cf6c0(0x2e1)])[_0x5cf6c0(0x397)](_0x3d6203=>{this['_logService']['error'](_0x3d6203),_0x25a264();});return;}if(_0x4fd21a['data'][_0x5cf6c0(0x309)]===e[_0x5cf6c0(0x496)][_0x5cf6c0(0x340)]){let _0x4e255b=_0x4fd21a[_0x5cf6c0(0x2e1)];this[_0x5cf6c0(0x405)](_0x4e255b)[_0x5cf6c0(0x22e)](_0x1fe412=>{const _0x344c20=_0x5cf6c0;_0x4ee658[_0x344c20(0x443)]({'cmd':a[_0x344c20(0x399)][_0x344c20(0x3ce)],'code':a[_0x344c20(0x28c)]['OK'],'routeKey':_0x4e255b[_0x344c20(0x2e1)]['unitID'],'routeType':'','data':{'eventID':e[_0x344c20(0x496)][_0x344c20(0x40a)],'data':{'changesets':_0x1fe412}}});})[_0x5cf6c0(0x397)](_0x5352f8=>{const _0x43ae87=_0x5cf6c0;this[_0x43ae87(0x396)][_0x43ae87(0x420)](_0x5352f8),_0x25a264();});return;}}_0x269e56[_0x5cf6c0(0x2a9)](Ke(_0x4fd21a));},'close':()=>{const _0xf3753a=_0x26db32;_0x269e56[_0xf3753a(0x35f)](),_0x4e7b5b[_0xf3753a(0x37b)]();}},_0x3f6e35;}async['_submitChangeset'](_0x53f117,_0x23343c){const _0x18a059=_0x51c992;let {unitType:_0xa4aeb,unitID:_0x1fdc39,changeset:_0x308564}=_0x23343c[_0x18a059(0x2e1)],_0x34ad8b={'unitID':_0x1fdc39,'memberID':_0x53f117[_0x18a059(0x44a)],'type':_0xa4aeb,'changeset':(0x0,e[_0x18a059(0x225)])(_0x308564)},_0x1518c5=this[_0x18a059(0x214)]['getConfig'](m),_0x1e8626=Je((_0x1518c5==null?void 0x0:_0x1518c5['collabSubmitChangesetUrl'])??'/universer-api/comb',_0xa4aeb,_0x1fdc39);try{await this[_0x18a059(0x22f)][_0x18a059(0x484)](_0x1e8626,{'body':_0x34ad8b});}catch(_0x2edbb1){throw this[_0x18a059(0x396)][_0x18a059(0x420)](_0x18a059(0x1d7),_0x18a059(0x394)),_0x2edbb1;}}async['_fetchMissChangesets'](_0x2d631a){const _0x3a3806=_0x51c992;let {unitID:_0x2c4585,from:_0x37778b,to:_0x5c77c0,unitType:_0x4d1b27}=_0x2d631a['data'];return(await this[_0x3a3806(0x1d8)][_0x3a3806(0x45f)]({'metadata':void 0x0},{'unitID':_0x2c4585,'type':_0x4d1b27,'from':_0x37778b,'to':_0x5c77c0}))['changesets'][_0x3a3806(0x231)](_0x47727f=>((_0x47727f[_0x3a3806(0x2a2)]===null||_0x47727f['mutations']===void 0x0)&&(_0x47727f[_0x3a3806(0x2a2)]=[]),_0x47727f));}};Ye=y([v(0x0,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x1,(0x0,t['Inject'])(l[_0x51c992(0x492)])),v(0x2,t['IConfigService']),v(0x3,t[_0x51c992(0x291)]),v(0x4,e[_0x51c992(0x43c)])],Ye);const Xe=(0x0,t[_0x51c992(0x2e3)])('univer-pro.collaboration-client-adapter-service');function Ze(_0x4b12a8={}){const _0x1b9554=_0x51c992;return _0x4b12a8['resolveUnit']?{'resolveUnit':_0x4b12a8[_0x1b9554(0x320)]}:{'resolveUnit':_0x409f45=>({'target':{'unitId':_0x409f45[_0x1b9554(0x44c)],'unitType':_0x409f45[_0x1b9554(0x19c)]}})};}function Qe(_0x6ebaab,_0x9749cf,_0x2c8406){const _0x52f59a=_0x51c992;let _0x4f3dd1=_0x2c8406[_0x52f59a(0x280)][_0x52f59a(0x2ee)];if(_0x4f3dd1!=null&&_0x4f3dd1[_0x52f59a(0x21d)]()==='')throw Error(_0x52f59a(0x464));if(!_0x2c8406[_0x52f59a(0x280)]['unitId'])throw Error(_0x52f59a(0x2ce));return{'localUnitId':_0x6ebaab,'unitType':_0x9749cf,'target':{'endpoint':_0x4f3dd1,'unitId':_0x2c8406[_0x52f59a(0x280)][_0x52f59a(0x44c)],'unitType':_0x2c8406[_0x52f59a(0x280)][_0x52f59a(0x19c)]??_0x9749cf},'changeset':_0x2c8406['changeset']};}let V=class extends t[_0x51c992(0x3ac)]{constructor(_0x5159cb,_0x1edb03,_0x2cb815,_0x2b8737,_0x1092a8,_0x94aa78,_0x2f6d87){const _0xfe0df1=_0x51c992;super(),this['_injector']=_0x5159cb,this['_logService']=_0x1edb03,this['_configService']=_0x2cb815,this['_socketService']=_0x2b8737,this[_0xfe0df1(0x2f5)]=_0x1092a8,this[_0xfe0df1(0x272)]=_0x94aa78,this[_0xfe0df1(0x1d9)]=_0x2f6d87,g(this,'_sessions',new Map()),g(this,_0xfe0df1(0x3de),new Map()),g(this,_0xfe0df1(0x276),new Map()),g(this,_0xfe0df1(0x1ec),new Map()),g(this,_0xfe0df1(0x3e5),this[_0xfe0df1(0x3a4)](void 0x0)[_0xfe0df1(0x3e5)][_0xfe0df1(0x3e3)]()),g(this,_0xfe0df1(0x259),new i[(_0xfe0df1(0x3f2))](0x0)),g(this,'status$',this[_0xfe0df1(0x259)][_0xfe0df1(0x3e3)]()),this['_listenToNetworkCondition']();}[_0x51c992(0x4a8)](){const _0x1a1419=_0x51c992;this[_0x1a1419(0x1d9)]&&this[_0x1a1419(0x2d7)](this[_0x1a1419(0x1d9)][_0x1a1419(0x2b9)][_0x1a1419(0x481)](_0x2ee3c1=>{const _0x264104=_0x1a1419;_0x2ee3c1&&this['reconnect'](),_0x2ee3c1||this[_0x264104(0x1ec)][_0x264104(0x1be)](_0x26086e=>this[_0x264104(0x46a)](_0x26086e));}));}[_0x51c992(0x37b)](){const _0x3d90bf=_0x51c992;super[_0x3d90bf(0x37b)](),this['_socketChannels'][_0x3d90bf(0x1be)](_0x562a5b=>{const _0x57efd7=_0x3d90bf;var _0x5b956a,_0x42ca15;(_0x5b956a=_0x562a5b[_0x57efd7(0x3b6)])==null||_0x5b956a['unsubscribe'](),_0x562a5b[_0x57efd7(0x3b6)]=null,this[_0x57efd7(0x26a)](_0x562a5b),this[_0x57efd7(0x49f)](_0x562a5b),this[_0x57efd7(0x1a8)](_0x562a5b),(_0x42ca15=_0x562a5b[_0x57efd7(0x3e5)][_0x57efd7(0x2a8)]())==null||_0x42ca15['close'](),_0x562a5b[_0x57efd7(0x3e5)][_0x57efd7(0x3a9)]();}),this['_socketChannels'][_0x3d90bf(0x47a)](),this[_0x3d90bf(0x1ee)][_0x3d90bf(0x1be)](_0x232663=>_0x232663['dispose']()),this[_0x3d90bf(0x1ee)][_0x3d90bf(0x47a)](),this[_0x3d90bf(0x276)]['clear'](),this[_0x3d90bf(0x259)][_0x3d90bf(0x3a9)]();}async[_0x51c992(0x345)](_0x1e450f,_0x5d1912){const _0x37874e=_0x51c992;if(this[_0x37874e(0x1ee)][_0x37874e(0x2d4)](_0x1e450f))return this[_0x37874e(0x1ee)]['get'](_0x1e450f);let _0x503962=this[_0x37874e(0x3de)][_0x37874e(0x403)](_0x1e450f);if(_0x503962)return _0x503962;let _0x5784f8=this[_0x37874e(0x1f2)](_0x1e450f,_0x5d1912);this['_pendingSessions'][_0x37874e(0x35e)](_0x1e450f,_0x5784f8);try{return await _0x5784f8;}finally{this[_0x37874e(0x3de)][_0x37874e(0x404)](_0x1e450f);}}async[_0x51c992(0x1f2)](_0x3156c0,_0x303bda){const _0x29405e=_0x51c992;let _0x476612=await this[_0x29405e(0x230)](_0x3156c0,_0x303bda),_0x2d26a9=this[_0x29405e(0x3a4)](_0x476612[_0x29405e(0x280)][_0x29405e(0x2ee)]);this[_0x29405e(0x453)](_0x2d26a9);let _0x225c5b=this[_0x29405e(0x4a1)][_0x29405e(0x3fb)](ve,_0x476612,_0x2d26a9[_0x29405e(0x3e5)][_0x29405e(0x3e3)]());return this[_0x29405e(0x1ee)][_0x29405e(0x35e)](_0x3156c0,_0x225c5b),this[_0x29405e(0x276)][_0x29405e(0x35e)](_0x3156c0,_0x2d26a9[_0x29405e(0x41f)]),_0x225c5b;}[_0x51c992(0x2d2)](_0x5f3003){const _0x423b39=_0x51c992;let _0x3867aa=this[_0x423b39(0x1ee)][_0x423b39(0x403)](_0x5f3003),_0x291eda=this[_0x423b39(0x276)][_0x423b39(0x403)](_0x5f3003);if(_0x3867aa&&(this[_0x423b39(0x1ee)][_0x423b39(0x404)](_0x5f3003),this[_0x423b39(0x276)][_0x423b39(0x404)](_0x5f3003),_0x3867aa[_0x423b39(0x35f)]()),_0x291eda&&!this['_hasSessionsForEndpoint'](_0x291eda)){var _0x1a7fea;let _0x32c911=this[_0x423b39(0x1ec)][_0x423b39(0x403)](_0x291eda);_0x32c911==null||(_0x1a7fea=_0x32c911[_0x423b39(0x3e5)][_0x423b39(0x2a8)]())==null||_0x1a7fea[_0x423b39(0x35f)]();}}[_0x51c992(0x1e6)](){const _0x50ffa1=_0x51c992;(this[_0x50ffa1(0x1ec)]['size']?[...this[_0x50ffa1(0x1ec)]['values']()]:[this[_0x50ffa1(0x3a4)](void 0x0)])['forEach'](_0x3843fc=>{const _0x44e8d6=_0x50ffa1;_0x3843fc['retryCount']=0x0,this['_clearRetryConnectingTimer'](_0x3843fc),this[_0x44e8d6(0x336)](_0x3843fc);});}[_0x51c992(0x26a)](_0xecc639){const _0x14e93b=_0x51c992;_0xecc639['retryConnectingTimer']!=null&&(clearTimeout(_0xecc639[_0x14e93b(0x307)]),_0xecc639[_0x14e93b(0x307)]=null);}async[_0x51c992(0x18b)](_0x3d5503){const _0x444638=_0x51c992;let _0x353cc5=this[_0x444638(0x214)][_0x444638(0x310)](m),_0x2d6f88=_0x3d5503['endpoint']??(_0x353cc5==null?void 0x0:_0x353cc5[_0x444638(0x281)])??_0x444638(0x3c5),_0x58c1fe=await this[_0x444638(0x193)][_0x444638(0x3cf)](_0x2d6f88);return _0x3d5503[_0x444638(0x2a4)]=_0x58c1fe,_0x58c1fe;}async[_0x51c992(0x453)](_0x240d01){const _0x133d8b=_0x51c992;try{let _0x430971=_0x240d01[_0x133d8b(0x3e5)][_0x133d8b(0x2a8)]()??_0x240d01['candidateSocket']??await this[_0x133d8b(0x18b)](_0x240d01);if(_0x430971){var _0x39343c;let _0x218de5=_0x430971[_0x133d8b(0x2a9)];_0x430971['send']=_0x169b36=>(_0x169b36[_0x133d8b(0x19b)]!==a[_0x133d8b(0x399)][_0x133d8b(0x442)]&&this[_0x133d8b(0x1b0)](_0x240d01),_0x218de5[_0x133d8b(0x1a9)](_0x430971,[_0x169b36])),(_0x39343c=_0x240d01[_0x133d8b(0x3b6)])==null||_0x39343c[_0x133d8b(0x2df)](),_0x240d01[_0x133d8b(0x3b6)]=null,_0x240d01['socketMessageSubscription']=_0x430971[_0x133d8b(0x194)][_0x133d8b(0x481)](_0x2d79ed=>this['_onMessage'](_0x240d01,_0x430971,_0x2d79ed)),_0x430971[_0x133d8b(0x38b)][_0x133d8b(0x3a2)]((0x0,s[_0x133d8b(0x1e3)])(0x1))[_0x133d8b(0x481)](_0x3906a1=>this['_logService'][_0x133d8b(0x420)]('[CollaborationSessionService]:\x20socket\x20error',_0x3906a1)),_0x430971['open$']['pipe']((0x0,s[_0x133d8b(0x1e3)])(0x1))[_0x133d8b(0x481)](()=>{this['_onConnectionOpen'](_0x240d01,_0x430971);}),_0x430971[_0x133d8b(0x245)][_0x133d8b(0x3a2)]((0x0,s[_0x133d8b(0x1e3)])(0x1))[_0x133d8b(0x481)](_0x5b1708=>{const _0x374499=_0x133d8b;this[_0x374499(0x396)][_0x374499(0x440)](_0x374499(0x48a),'socket\x20close',_0x5b1708),this[_0x374499(0x48b)](_0x240d01);});}}catch(_0x88d9d2){this['_logService'][_0x133d8b(0x420)](_0x88d9d2),this[_0x133d8b(0x48b)](_0x240d01);}}[_0x51c992(0x426)](_0x172964,_0x4094d2){const _0x29b25e=_0x51c992;this[_0x29b25e(0x396)][_0x29b25e(0x440)]('[CollaborationSessionService]',_0x29b25e(0x371)),_0x4094d2[_0x29b25e(0x2a9)]({'cmd':a[_0x29b25e(0x399)][_0x29b25e(0x1e7)]}),this[_0x29b25e(0x1b0)](_0x172964);}['_onOffline'](_0x2b687b){const _0x22eb6a=_0x51c992;_0x2b687b[_0x22eb6a(0x1b2)]=!0x1,_0x2b687b[_0x22eb6a(0x2a4)]=null,this[_0x22eb6a(0x259)]['next'](0x2),_0x2b687b[_0x22eb6a(0x3e5)]['next'](null),this['_clearTimeoutTimer'](_0x2b687b),this['_clearHeartbeatTimer'](_0x2b687b);}[_0x51c992(0x48b)](_0x43b23f){const _0x3498c2=_0x51c992;this[_0x3498c2(0x46a)](_0x43b23f),this['_hasSessionsForEndpoint'](_0x43b23f[_0x3498c2(0x41f)])&&(_0x43b23f['retryCount']<(this[_0x3498c2(0x214)]['getConfig'](_0x3498c2(0x303))??0x3)?(this[_0x3498c2(0x2f5)]['emitEvent']({'id':_0x3498c2(0x43a)}),this[_0x3498c2(0x336)](_0x43b23f)):this[_0x3498c2(0x2f5)][_0x3498c2(0x3e8)]({'id':_0x3498c2(0x1ce)}));}['_tryReconnect'](_0x1d0fbf){const _0x577a8e=_0x51c992;let _0x1ca6dc=_0x1d0fbf[_0x577a8e(0x20f)],_0x586389=this[_0x577a8e(0x214)][_0x577a8e(0x310)](m),_0x217546=_0x1ca6dc===0x0?0x0:((_0x586389==null?void 0x0:_0x586389[_0x577a8e(0x333)])??0x4e20)*0x2**_0x1ca6dc;_0x1d0fbf[_0x577a8e(0x307)]=setTimeout(()=>{const _0x4d9c67=_0x577a8e;clearTimeout(_0x1d0fbf[_0x4d9c67(0x307)]),_0x1d0fbf[_0x4d9c67(0x307)]=null,this[_0x4d9c67(0x453)](_0x1d0fbf);},_0x217546),_0x1d0fbf[_0x577a8e(0x20f)]+=0x1;}async[_0x51c992(0x230)](_0x106e89,_0xb007bd){const _0x8e7b58=_0x51c992;return Qe(_0x106e89,_0xb007bd,await this[_0x8e7b58(0x272)][_0x8e7b58(0x320)]({'unitId':_0x106e89,'unitType':_0xb007bd}));}['_onMessage'](_0x7d23ea,_0x35122a,_0x6d2799){const _0x1594b0=_0x51c992;let {cmd:_0x5a2896}=_0x6d2799;_0x5a2896===a[_0x1594b0(0x399)][_0x1594b0(0x1e7)]&&!_0x7d23ea[_0x1594b0(0x1b2)]&&(_0x35122a[_0x1594b0(0x44a)]=_0x6d2799[_0x1594b0(0x2e1)][_0x1594b0(0x44a)],_0x7d23ea[_0x1594b0(0x20f)]=0x0,_0x7d23ea[_0x1594b0(0x3e5)][_0x1594b0(0x443)](_0x35122a),this['_status$']['next'](0x3),_0x7d23ea[_0x1594b0(0x1b2)]=!0x0,_0x7d23ea[_0x1594b0(0x2a4)]=null),_0x5a2896===a[_0x1594b0(0x399)]['HEARTBEAT']&&this[_0x1594b0(0x49f)](_0x7d23ea),this['_rescheduleHeartbeat'](_0x7d23ea);}[_0x51c992(0x498)](_0x3a5cd8){const _0x3d64da=_0x51c992;return[...this[_0x3d64da(0x276)][_0x3d64da(0x215)]()][_0x3d64da(0x17c)](_0x5b74fa=>_0x5b74fa===_0x3a5cd8);}[_0x51c992(0x3a4)](_0x19a859){const _0x2faf41=_0x51c992;let _0x1f6a63=_0x19a859??'',_0x298556=this[_0x2faf41(0x1ec)][_0x2faf41(0x403)](_0x1f6a63);if(_0x298556)return _0x298556;let _0x507543={'endpointKey':_0x1f6a63,'endpoint':_0x19a859,'socket$':new i[(_0x2faf41(0x3f2))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x2faf41(0x1ec)][_0x2faf41(0x35e)](_0x1f6a63,_0x507543),_0x507543;}['_rescheduleHeartbeat'](_0x2e58f1){const _0x4926f6=_0x51c992;this['_clearHeartbeatTimer'](_0x2e58f1),_0x2e58f1['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2e58f1),this[_0x4926f6(0x214)]['getConfig']('HEARTBEAT_INTERVAL')??0x7530);}[_0x51c992(0x22a)](_0x2c21b8){const _0x3e95b8=_0x51c992;_0x2c21b8[_0x3e95b8(0x3e5)][_0x3e95b8(0x2a8)]()[_0x3e95b8(0x2a9)]({'cmd':a[_0x3e95b8(0x399)][_0x3e95b8(0x311)]}),this[_0x3e95b8(0x209)](_0x2c21b8);}[_0x51c992(0x209)](_0x104fd9){const _0xc93118=_0x51c992;_0x104fd9[_0xc93118(0x20a)]=setTimeout(()=>this[_0xc93118(0x48b)](_0x104fd9),this[_0xc93118(0x214)][_0xc93118(0x310)](_0xc93118(0x240))??0x4e20);}[_0x51c992(0x1a8)](_0x261da3){const _0x50be68=_0x51c992;_0x261da3[_0x50be68(0x428)]!=null&&(clearTimeout(_0x261da3[_0x50be68(0x428)]),_0x261da3['sendHeartbeatTimer']=null);}[_0x51c992(0x49f)](_0x3377b2){const _0x38ff1a=_0x51c992;_0x3377b2[_0x38ff1a(0x20a)]!=null&&(clearTimeout(_0x3377b2[_0x38ff1a(0x20a)]),_0x3377b2[_0x38ff1a(0x20a)]=null);}};V=y([v(0x0,(0x0,t[_0x51c992(0x1ba)])(t['Injector'])),v(0x1,t[_0x51c992(0x291)]),v(0x2,t['IConfigService']),v(0x3,qe),v(0x4,(0x0,t[_0x51c992(0x1ba)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x51c992(0x47e)])(We))],V);let H=class extends t[_0x51c992(0x251)]{constructor(_0x4a50c3,_0xa9cf14,_0x45754b,_0x590ed4){const _0x2a66ba=_0x51c992;var _0x4839eb;super(),this[_0x2a66ba(0x4a1)]=_0x4a50c3,this[_0x2a66ba(0x379)]=_0xa9cf14,this[_0x2a66ba(0x214)]=_0x45754b,this['_univerInstanceService']=_0x590ed4,g(this,_0x2a66ba(0x28a),new Map()),g(this,'_entityInit$',new i[(_0x2a66ba(0x29d))]()),g(this,'entityInit$',this[_0x2a66ba(0x27d)][_0x2a66ba(0x3e3)]()),((_0x4839eb=this['_configService'][_0x2a66ba(0x310)]('collaboration-client.config'))==null?void 0x0:_0x4839eb[_0x2a66ba(0x39a)])!==!0x1&&this['_init']();}[_0x51c992(0x37b)](){const _0x1b361a=_0x51c992;super[_0x1b361a(0x37b)](),this['_entities'][_0x1b361a(0x1be)](_0x10e273=>_0x10e273[_0x1b361a(0x37b)]()),this[_0x1b361a(0x28a)][_0x1b361a(0x47a)]();}['getCollabEntity'](_0x371a5e){const _0x2c8cfb=_0x51c992;return this[_0x2c8cfb(0x28a)][_0x2c8cfb(0x403)](_0x371a5e)??null;}[_0x51c992(0x42b)](_0x5939e9){const _0x330305=_0x51c992;let _0x4f94e3=this[_0x330305(0x1c0)](_0x5939e9);return _0x4f94e3?(0x0,i['of'])(_0x4f94e3):this[_0x330305(0x27d)][_0x330305(0x3a2)]((0x0,s[_0x330305(0x3d8)])(_0x21e873=>_0x21e873[_0x330305(0x23b)]===_0x5939e9));}[_0x51c992(0x29a)](_0x3d0217){const _0x360de9=_0x51c992;return(0x0,i[_0x360de9(0x234)])(this[_0x360de9(0x42b)](_0x3d0217)['pipe']((0x0,s[_0x360de9(0x231)])(()=>void 0x0)));}['_init'](){const _0x506138=_0x51c992;this['_univerInstanceService'][_0x506138(0x389)](t['UniverInstanceType'][_0x506138(0x3f5)])[_0x506138(0x3a2)]((0x0,i[_0x506138(0x2ec)])(this[_0x506138(0x257)]),(0x0,s[_0x506138(0x1cd)])(0x10))['subscribe'](async _0x2afd0c=>{const _0x2f09a6=_0x506138;let _0x3796c0=_0x2afd0c[_0x2f09a6(0x211)][_0x2f09a6(0x1c8)](),_0x35ec15=await this[_0x2f09a6(0x25a)](_0x3796c0,t[_0x2f09a6(0x2b4)][_0x2f09a6(0x3f5)]);this['_entities'][_0x2f09a6(0x35e)](_0x3796c0,_0x35ec15);}),this[_0x506138(0x322)][_0x506138(0x389)](t[_0x506138(0x2b4)]['UNIVER_DOC'])['pipe']((0x0,i[_0x506138(0x2ec)])(this[_0x506138(0x257)]),(0x0,s[_0x506138(0x1cd)])(0x10))[_0x506138(0x3a2)]((0x0,s[_0x506138(0x3d8)])(_0x291014=>!_0x291014[_0x506138(0x211)]['getUnitId']()['startsWith']('__')))[_0x506138(0x481)](async _0x55479c=>{const _0x54b13c=_0x506138;let _0x2a4189=_0x55479c[_0x54b13c(0x211)][_0x54b13c(0x1c8)](),_0x5e631c=await this[_0x54b13c(0x25a)](_0x2a4189,t['UniverInstanceType'][_0x54b13c(0x47c)]);this['_entities']['set'](_0x2a4189,_0x5e631c);}),this[_0x506138(0x322)][_0x506138(0x389)](t[_0x506138(0x2b4)][_0x506138(0x439)])[_0x506138(0x3a2)]((0x0,i['takeUntil'])(this[_0x506138(0x257)]),(0x0,s['delay'])(0x10))[_0x506138(0x481)](async _0x301cdc=>{const _0x583d55=_0x506138;let _0x5d5c08=_0x301cdc[_0x583d55(0x211)][_0x583d55(0x1c8)](),_0x14fc82=await this[_0x583d55(0x25a)](_0x5d5c08,t[_0x583d55(0x2b4)][_0x583d55(0x439)]);this[_0x583d55(0x28a)][_0x583d55(0x35e)](_0x5d5c08,_0x14fc82);}),this[_0x506138(0x322)][_0x506138(0x389)](t[_0x506138(0x2b4)][_0x506138(0x3f3)])['pipe']((0x0,i[_0x506138(0x2ec)])(this[_0x506138(0x257)]),(0x0,s[_0x506138(0x1cd)])(0x10))[_0x506138(0x481)](async _0x1d5746=>{const _0x52156a=_0x506138;let _0x202aef=_0x1d5746[_0x52156a(0x211)][_0x52156a(0x1c8)](),_0x2f64b7=await this[_0x52156a(0x25a)](_0x202aef,t['UniverInstanceType'][_0x52156a(0x3f3)]);this[_0x52156a(0x28a)][_0x52156a(0x35e)](_0x202aef,_0x2f64b7);}),this[_0x506138(0x322)][_0x506138(0x389)](t[_0x506138(0x2b4)]['UNIVER_BASE'])[_0x506138(0x3a2)]((0x0,i[_0x506138(0x2ec)])(this[_0x506138(0x257)]),(0x0,s['delay'])(0x10))[_0x506138(0x481)](async _0x32077d=>{const _0x341b3b=_0x506138;let _0x44846a=_0x32077d[_0x341b3b(0x211)][_0x341b3b(0x1c8)](),_0x6436d0=await this[_0x341b3b(0x25a)](_0x44846a,t[_0x341b3b(0x2b4)][_0x341b3b(0x387)]);this[_0x341b3b(0x28a)][_0x341b3b(0x35e)](_0x44846a,_0x6436d0);}),this['_univerInstanceService'][_0x506138(0x389)](t['UniverInstanceType'][_0x506138(0x3eb)])[_0x506138(0x3a2)]((0x0,i['takeUntil'])(this[_0x506138(0x257)]),(0x0,s[_0x506138(0x1cd)])(0x10))[_0x506138(0x481)](async _0x4aa921=>{const _0x14e353=_0x506138;let _0x41846b=_0x4aa921[_0x14e353(0x211)][_0x14e353(0x1c8)](),_0x57eefd=await this[_0x14e353(0x25a)](_0x41846b,t['UniverInstanceType'][_0x14e353(0x3eb)]);this['_entities'][_0x14e353(0x35e)](_0x41846b,_0x57eefd);}),(0x0,i[_0x506138(0x335)])(this[_0x506138(0x322)][_0x506138(0x29f)](t[_0x506138(0x2b4)][_0x506138(0x3f5)]),this[_0x506138(0x322)][_0x506138(0x29f)](t['UniverInstanceType'][_0x506138(0x47c)]),this[_0x506138(0x322)][_0x506138(0x29f)](t[_0x506138(0x2b4)][_0x506138(0x439)]),this[_0x506138(0x322)][_0x506138(0x29f)](t[_0x506138(0x2b4)][_0x506138(0x3f3)]),this[_0x506138(0x322)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x506138(0x387)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x506138(0x2b4)]['UNIVER_PDF']))[_0x506138(0x3a2)]((0x0,i['takeUntil'])(this['dispose$']))[_0x506138(0x481)](_0x27da31=>{const _0x1107b1=_0x506138;let _0x29bd0d=_0x27da31[_0x1107b1(0x1c8)](),_0x3dc018=this[_0x1107b1(0x28a)][_0x1107b1(0x403)](_0x29bd0d);_0x3dc018&&(_0x3dc018['dispose'](),this[_0x1107b1(0x28a)]['delete'](_0x29bd0d));});}async[_0x51c992(0x25a)](_0x5eb336,_0x49228c){const _0x20b998=_0x51c992;let _0x560659=await this[_0x20b998(0x379)][_0x20b998(0x345)](_0x5eb336),_0x405e72=this[_0x20b998(0x4a1)][_0x20b998(0x3fb)](this[_0x20b998(0x1f4)](_0x49228c),_0x5eb336,_0x49228c,_0x560659);return await _0x405e72[_0x20b998(0x2b6)](),this[_0x20b998(0x27d)][_0x20b998(0x443)](_0x405e72),_0x405e72;}[_0x51c992(0x1f4)](_0x32e7e1){const _0x3a2f7e=_0x51c992;switch(_0x32e7e1){case t[_0x3a2f7e(0x2b4)][_0x3a2f7e(0x47c)]:return F;case t['UniverInstanceType'][_0x3a2f7e(0x3f5)]:return L;case t[_0x3a2f7e(0x2b4)][_0x3a2f7e(0x439)]:return R;case t['UniverInstanceType'][_0x3a2f7e(0x3f3)]:return z;case t['UniverInstanceType'][_0x3a2f7e(0x387)]:return I;case t[_0x3a2f7e(0x2b4)][_0x3a2f7e(0x3eb)]:return B;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x32e7e1);}}};H=y([v(0x0,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x401)])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t[_0x51c992(0x46e)]),v(0x3,t[_0x51c992(0x1dd)])],H);var $e=_0x51c992(0x254),et=_0x51c992(0x287);let tt=class extends t[_0x51c992(0x3ac)]{constructor(_0x502e64,_0x43bb28){const _0x3733ac=_0x51c992;super(),this[_0x3733ac(0x322)]=_0x502e64,this['_configService']=_0x43bb28,this[_0x3733ac(0x223)]();}[_0x51c992(0x223)](){const _0x53d731=_0x51c992;this[_0x53d731(0x2d7)](this[_0x53d731(0x322)]['focused$'][_0x53d731(0x481)](()=>{const _0x85026d=_0x53d731;let _0x2d09f8=this[_0x85026d(0x322)][_0x85026d(0x2fd)](),_0x132533=this[_0x85026d(0x214)]['getConfig'](_0x85026d(0x1a2))??'Univer';_0x2d09f8 instanceof t[_0x85026d(0x2c9)]&&(_0x132533=_0x2d09f8[_0x85026d(0x329)]),document[_0x85026d(0x2bb)]=_0x132533;}));}};tt=y([v(0x0,t[_0x51c992(0x1dd)]),v(0x1,t['IConfigService'])],tt);const nt=(0x0,t[_0x51c992(0x2e3)])(_0x51c992(0x2dd));let U=class{constructor(_0x245b7c,_0x205079,_0x8e13d9){const _0x4b1e4e=_0x51c992;this[_0x4b1e4e(0x22f)]=_0x245b7c,this[_0x4b1e4e(0x214)]=_0x205079,this['_univerInstanceService']=_0x8e13d9;}[_0x51c992(0x2ed)](){return this['_getConfig']()['attachment']??{};}async[_0x51c992(0x418)](_0x559265){const _0x26fd71=_0x51c992;let _0x107bc4=this[_0x26fd71(0x2ed)]();if(rt(_0x559265,_0x107bc4),_0x107bc4['upload'])return _0x107bc4['upload'](_0x559265);let _0x20cf8f=await this['_upload'](_0x559265);return{'id':_0x20cf8f,'name':_0x559265[_0x26fd71(0x329)],'mimeType':_0x559265[_0x26fd71(0x3fc)],'size':_0x559265[_0x26fd71(0x4a9)],'sourceType':t['ImageSourceType']['UUID'],'source':_0x20cf8f};}async[_0x51c992(0x4ac)](_0x4142b0,_0x33c562){const _0x437255=_0x51c992;if(_0x33c562!==t['ImageSourceType'][_0x437255(0x3e2)])return _0x4142b0;let _0x54db2b=(await this['_httpService']['get'](this['_getSignURL']()[_0x437255(0x45b)]('{fileID}',_0x4142b0)))[_0x437255(0x253)];if(_0x54db2b[_0x437255(0x420)]&&_0x54db2b['error'][_0x437255(0x25c)]!==a[_0x437255(0x1e0)]['OK'])throw _0x54db2b[_0x437255(0x420)];if(!_0x54db2b[_0x437255(0x408)])throw Error(_0x437255(0x263));return(0x0,t[_0x437255(0x3d4)])(_0x54db2b[_0x437255(0x408)],this['_getDownloadEndpointURL']());}async[_0x51c992(0x448)](_0x21724f){const _0x4f88a0=_0x51c992;let _0x51fa8b=this[_0x4f88a0(0x322)][_0x4f88a0(0x2fd)](),_0x31f787=_0x51fa8b==null?void 0x0:_0x51fa8b[_0x4f88a0(0x1c8)]();if(!_0x31f787)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0xdd9e95=new FormData();_0xdd9e95['append']('file',_0x21724f);let _0x2691ef=this[_0x4f88a0(0x382)]()+_0x4f88a0(0x3b0)+_0x21724f[_0x4f88a0(0x4a9)]['toString']()+_0x4f88a0(0x419)+a[_0x4f88a0(0x38a)][_0x4f88a0(0x350)]+_0x4f88a0(0x412)+encodeURIComponent(_0x31f787),_0xf21fe1=(await this[_0x4f88a0(0x22f)][_0x4f88a0(0x484)](_0x2691ef,{'body':_0xdd9e95}))[_0x4f88a0(0x253)]['FileId'];if(typeof _0xf21fe1!=_0x4f88a0(0x2dc)||!_0xf21fe1)throw Error(_0x4f88a0(0x1a7));return _0xf21fe1;}['_getUploadFileURL'](){const _0xa58e22=_0x51c992;return this['_getConfig']()[_0xa58e22(0x18a)]??_0xa58e22(0x386);}['_getSignURL'](){const _0x7cbbc=_0x51c992;return this['_getConfig']()[_0x7cbbc(0x339)]??_0x7cbbc(0x4a0);}['_getDownloadEndpointURL'](){const _0x71427a=_0x51c992;let _0x1f3edf=this[_0x71427a(0x228)]();return _0x1f3edf[_0x71427a(0x24c)]?_0x1f3edf[_0x71427a(0x24c)]:typeof location<'u'?location[_0x71427a(0x212)]:_0x1f3edf[_0x71427a(0x18a)]??'';}[_0x51c992(0x228)](){const _0x2b9e7c=_0x51c992;return this[_0x2b9e7c(0x214)][_0x2b9e7c(0x310)](_0x2b9e7c(0x39b))??{};}};U=y([v(0x0,(0x0,t[_0x51c992(0x1ba)])(l[_0x51c992(0x492)])),v(0x1,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x46e)])),v(0x2,(0x0,t['Inject'])(t[_0x51c992(0x1dd)]))],U);function rt(_0x4fee15,_0x236720){const _0x29163e=_0x51c992;var _0x4a7775;if(_0x236720[_0x29163e(0x366)]!=null&&_0x4fee15[_0x29163e(0x4a9)]>_0x236720[_0x29163e(0x366)])throw Error(_0x29163e(0x2ac));if((_0x4a7775=_0x236720[_0x29163e(0x47d)])!=null&&_0x4a7775[_0x29163e(0x187)]&&!_0x236720[_0x29163e(0x47d)][_0x29163e(0x17c)](_0x18812c=>_0x4fee15[_0x29163e(0x3fc)]===_0x18812c||_0x4fee15['name']['endsWith'](_0x18812c)||_0x18812c[_0x29163e(0x4b0)]('/*')&&_0x4fee15[_0x29163e(0x3fc)][_0x29163e(0x477)](_0x18812c[_0x29163e(0x1f1)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x5268d3,_0x38cb38,_0x48d447){const _0x2a2f44=_0x51c992;this[_0x2a2f44(0x214)]=_0x5268d3,this['_httpService']=_0x38cb38,this['localeService']=_0x48d447,this[_0x2a2f44(0x2b6)]();}[_0x51c992(0x2b6)](){const _0x235e15=_0x51c992;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3e9fd3,_0x4e806c)=>_0x4e806c(_0x3e9fd3)[_0x235e15(0x3a2)]((0x0,i[_0x235e15(0x292)])(async _0x30cbd6=>{const _0x4f65a7=_0x235e15;let _0x1109f7=_0x30cbd6;if(_0x1109f7[_0x4f65a7(0x456)]===0x191){if(typeof window>'u')throw Error(_0x4f65a7(0x3c8));if(window[_0x4f65a7(0x2a6)](this[_0x4f65a7(0x37e)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x5da0b7=window[_0x4f65a7(0x48d)](window[_0x4f65a7(0x1e8)][_0x4f65a7(0x250)]);window[_0x4f65a7(0x1e8)][_0x4f65a7(0x250)]=this[_0x4f65a7(0x4ad)]()+_0x4f65a7(0x267)+_0x5da0b7;}}return _0x1109f7;}))});}['_getLoginPath'](){const _0x4ca2a9=_0x51c992;let _0x3d5307=this[_0x4ca2a9(0x214)]['getConfig'](m);return(_0x3d5307==null?void 0x0:_0x3d5307[_0x4ca2a9(0x296)])??_0x4ca2a9(0x363);}};W=y([v(0x0,t[_0x51c992(0x46e)]),v(0x1,(0x0,t[_0x51c992(0x1ba)])(l[_0x51c992(0x492)])),v(0x2,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x29e)]))],W);let G=class extends t[_0x51c992(0x3ac)]{constructor(_0x2e662d,_0x57125b){const _0x310145=_0x51c992;super(),this[_0x310145(0x3d7)]=_0x2e662d,this[_0x310145(0x214)]=_0x57125b,g(this,_0x310145(0x3d3),!0x1),this[_0x310145(0x393)]();}['_initMergeInterceptor'](){const _0x363ca6=_0x51c992;let _0xab5921=this;this[_0x363ca6(0x2d7)](this[_0x363ca6(0x3d7)][_0x363ca6(0x34d)]({'priority':0x3e7,'interceptor':(0x0,l[_0x363ca6(0x232)])({'isMatch'(_0xfa213d){const _0x37047f=_0x363ca6;var _0x41ccf7;if(_0xfa213d[_0x37047f(0x459)]===_0x37047f(0x449)&&(_0x41ccf7=_0xfa213d[_0x37047f(0x3a7)])!=null&&_0x41ccf7[_0x37047f(0x253)]){let {objectID:_0x33cb1c,objectType:_0xe8b6d8}=_0xfa213d['requestParams']['body']||{};if(!_0x33cb1c||_0xe8b6d8===void 0x0)return!0x1;let _0x559d30=_0xab5921['_getAPIPrefixPath']()+'/'+_0xe8b6d8+_0x37047f(0x258)+encodeURIComponent(_0x33cb1c)+_0x37047f(0x3a1);if(_0xfa213d[_0x37047f(0x408)]===_0x559d30)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5ed801){const _0x373ea4=_0x363ca6;var _0x4f0a08;return(_0x4f0a08=_0x5ed801['requestParams'])==null?void 0x0:_0x4f0a08[_0x373ea4(0x253)];},'mergeParamsToRequest'(_0x49eb3b,_0x109605){const _0x467249=_0x363ca6;let _0x150bfe=_0xab5921[_0x467249(0x2c3)]()+_0x467249(0x1bd),_0x217b04=_0x49eb3b[_0x467249(0x42c)]((_0x24ebbc,_0x1664d1)=>{const _0x239216=_0x467249;let {unitID:_0x34e02e,objectID:_0x1a2d05,objectType:_0x4850e6,actions:_0x4f56d2}=_0x1664d1;return _0x24ebbc[_0x34e02e]||(_0x24ebbc[_0x34e02e]=Object['create'](null)),_0x24ebbc[_0x34e02e][_0x1a2d05]||(_0x24ebbc[_0x34e02e][_0x1a2d05]={'objectID':_0x1a2d05,'objectType':_0x4850e6,'actions':[]}),_0x24ebbc[_0x34e02e][_0x1a2d05][_0x239216(0x27c)][_0x239216(0x499)](..._0x4f56d2),_0x24ebbc;},Object[_0x467249(0x321)](null)),_0xe2f026=[];for(let _0x4ae2ee in _0x217b04)for(let _0x4e81c5 in _0x217b04[_0x4ae2ee]){let {actions:_0x510780,objectType:_0x4382a3}=_0x217b04[_0x4ae2ee][_0x4e81c5],_0x16ae24=[...new Set(_0x510780)];_0xe2f026[_0x467249(0x499)]({'unitID':_0x4ae2ee,'objectID':_0x4e81c5,'objectType':_0x4382a3,'actions':_0x16ae24});}return new l[(_0x467249(0x4a2))](_0x467249(0x449),_0x150bfe,{'headers':_0x109605[_0x467249(0x34b)],'withCredentials':_0x109605['withCredentials'],'responseType':_0x109605[_0x467249(0x375)],'body':{'requests':_0xe2f026}});}},{'distributeResult'(_0x5f15ed,_0x3cb4b0){const _0x30008e=_0x363ca6;let {objectActions:_0x4e766a}=_0x5f15ed;return _0x3cb4b0[_0x30008e(0x231)](_0x4c262d=>{const _0x3692f3=_0x30008e;let {unitID:_0x2780dd,objectID:_0x51f698,actions:_0x2dbebb}=_0x4c262d,_0x1d505e=_0x4e766a[_0x3692f3(0x2ea)](_0x59bf1=>_0x59bf1[_0x3692f3(0x23b)]===_0x2780dd&&_0x59bf1[_0x3692f3(0x3ed)]===_0x51f698);return{'config':_0x4c262d,'result':{'actions':_0x2dbebb[_0x3692f3(0x231)](_0x4c6d53=>_0x1d505e==null?void 0x0:_0x1d505e[_0x3692f3(0x27c)][_0x3692f3(0x2ea)](_0xbd2abd=>_0xbd2abd[_0x3692f3(0x324)]===_0x4c6d53))[_0x3692f3(0x3d8)](_0x16c932=>!!_0x16c932),'error':_0x5f15ed[_0x3692f3(0x420)]}};});}})}));}[_0x51c992(0x2c3)](){const _0x36238b=_0x51c992;let _0x4ee7bd=this['_configService'][_0x36238b(0x310)](m);return(_0x4ee7bd==null?void 0x0:_0x4ee7bd[_0x36238b(0x450)])??_0x36238b(0x1c9);}async[_0x51c992(0x321)](_0x4ff883){const _0x3dba07=_0x51c992;let _0x520ff2=this[_0x3dba07(0x2c3)]()+'/'+_0x4ff883[_0x3dba07(0x423)]+_0x3dba07(0x2d1);return(await this[_0x3dba07(0x3d7)]['post'](_0x520ff2,{'body':_0x4ff883}))[_0x3dba07(0x253)][_0x3dba07(0x3ed)]||'';}async[_0x51c992(0x3f6)](_0x4ee9d0){const _0x449df8=_0x51c992;let _0x17711d=this[_0x449df8(0x2c3)]()+_0x449df8(0x285);return(await this['_HTTPService'][_0x449df8(0x484)](_0x17711d,{'body':_0x4ee9d0}))['body']['objects'];}async[_0x51c992(0x381)](_0x4d3d51){const _0x477ef4=_0x51c992;var _0x1de6ab;let _0x5c66cb=this[_0x477ef4(0x2c3)]()+'/'+_0x4d3d51['objectType']+'/object/'+encodeURIComponent(_0x4d3d51['objectID']),_0x59dcdf=await this['_HTTPService'][_0x477ef4(0x444)](_0x5c66cb,{'body':_0x4d3d51});if((_0x59dcdf==null||(_0x1de6ab=_0x59dcdf[_0x477ef4(0x253)])==null||(_0x1de6ab=_0x1de6ab['error'])==null?void 0x0:_0x1de6ab[_0x477ef4(0x25c)])!==0x1)throw Error(_0x477ef4(0x35a));}async['allowed'](_0x29da46){const _0xcc82d8=_0x51c992;let _0x42b822=this[_0xcc82d8(0x2c3)]()+'/'+_0x29da46[_0xcc82d8(0x423)]+_0xcc82d8(0x258)+encodeURIComponent(_0x29da46[_0xcc82d8(0x3ed)])+'/allowed';return(await this[_0xcc82d8(0x3d7)][_0xcc82d8(0x484)](_0x42b822,{'body':_0x29da46}))['body'][_0xcc82d8(0x27c)];}async[_0x51c992(0x21e)](_0x3fa583){const _0x2bac27=_0x51c992;let _0x35e83a=this[_0x2bac27(0x2c3)]()+'/-/object/-/batch_allowed';return(await this[_0x2bac27(0x3d7)][_0x2bac27(0x484)](_0x35e83a,{'body':{'requests':_0x3fa583}}))[_0x2bac27(0x253)]['objectActions'];}async[_0x51c992(0x312)](_0x9e5037){const _0x51e4c0=_0x51c992;let _0x3abde1=this[_0x51e4c0(0x2c3)]()+'/'+_0x9e5037[_0x51e4c0(0x423)]+_0x51e4c0(0x468),_0x16e1d2=await this[_0x51e4c0(0x3d7)][_0x51e4c0(0x484)](_0x3abde1,{'body':_0x9e5037});return{'roles':_0x16e1d2[_0x51e4c0(0x253)][_0x51e4c0(0x3b3)],'actions':_0x16e1d2[_0x51e4c0(0x253)][_0x51e4c0(0x27c)]};}async['deleteCollaborator'](_0xdea229){const _0x521f88=_0x51c992;let _0xd72854=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x521f88(0x3d7)][_0x521f88(0x404)](_0xd72854,{'params':{'collaboratorID':_0xdea229['collaboratorID'],'objectID':_0xdea229['objectID'],'unitID':_0xdea229[_0x521f88(0x23b)]}});}async[_0x51c992(0x181)](_0x46cc0b){const _0x205c15=_0x51c992;let _0x5af393=this[_0x205c15(0x2c3)]()+_0x205c15(0x38f);await this[_0x205c15(0x3d7)][_0x205c15(0x189)](_0x5af393,{'body':_0x46cc0b});}async['createCollaborator'](_0x16465f){const _0x1ae1e3=_0x51c992;let _0x149ca2=this[_0x1ae1e3(0x2c3)]()+'/collaborator';await this[_0x1ae1e3(0x3d7)][_0x1ae1e3(0x484)](_0x149ca2,{'body':_0x16465f});}async['listCollaborators'](_0x904f09){const _0x3fadfc=_0x51c992;let _0x3b3aa6=this[_0x3fadfc(0x2c3)]()+_0x3fadfc(0x38f),_0x3e6c2a=await this[_0x3fadfc(0x3d7)][_0x3fadfc(0x403)](_0x3b3aa6,{'params':{'objectID':_0x904f09['objectID'],'unitID':_0x904f09[_0x3fadfc(0x23b)]}});return this[_0x3fadfc(0x278)](_0x3e6c2a[_0x3fadfc(0x253)]['cfgEnableObjInherit']??!0x1),_0x3e6c2a[_0x3fadfc(0x253)][_0x3fadfc(0x3bb)];}async[_0x51c992(0x26c)](_0xf33740){const _0x130e07=_0x51c992;let _0x3b08bb=this[_0x130e07(0x2c3)]()+_0x130e07(0x38f);await this['_HTTPService'][_0x130e07(0x444)](_0x3b08bb,{'body':_0xf33740});}[_0x51c992(0x278)](_0x3d82a8){const _0x3152f3=_0x51c992;this[_0x3152f3(0x3d3)]=_0x3d82a8;}['getCfgEnableObjInherit'](){const _0x17dd5c=_0x51c992;return this[_0x17dd5c(0x3d3)];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x51c992(0x492)])),v(0x1,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x46e)]))],G);function it(_0x5980d5){const _0x56f57f=_0x51c992;let _0x18f4a8=atob(_0x5980d5),_0x263c48=new Uint8Array(_0x18f4a8[_0x56f57f(0x187)]);for(let _0x10ad63=0x0;_0x10ad63<_0x18f4a8[_0x56f57f(0x187)];_0x10ad63++)_0x263c48[_0x10ad63]=_0x18f4a8[_0x56f57f(0x3a3)](_0x10ad63);return _0x263c48;}function at(_0x53e850){const _0x5be70e=_0x51c992;let _0x2ae03c='';for(let _0x1454b1=0x0;_0x1454b1<_0x53e850[_0x5be70e(0x187)];_0x1454b1++)_0x2ae03c+=String[_0x5be70e(0x201)](_0x53e850[_0x1454b1]);return btoa(_0x2ae03c);}function ot(_0x390d21,_0x457e26){const _0x557a5d=_0x51c992;let _0x2fc667=it(_0x457e26),_0x82aeb3=(0x0,f['randomBytes'])(0x10),_0x3aa137=(0x0,d[_0x557a5d(0x268)])(_0x2fc667,_0x82aeb3)[_0x557a5d(0x36d)]((0x0,f['utf8ToBytes'])(_0x390d21));return at((0x0,f[_0x557a5d(0x2d5)])(_0x82aeb3,_0x3aa137));}function st(){const _0x5dd0e7=_0x51c992;let _0x2ea16b=(0x0,u['getGlobalObject'])()[_0x5dd0e7(0x348)];if(typeof window<'u'&&window[_0x5dd0e7(0x1e8)]!==void 0x0&&_0x2ea16b){let _0x2da395={'time':Math[_0x5dd0e7(0x17d)](Date[_0x5dd0e7(0x472)]()/0x3e8),'domain':location['hostname']};return ot(JSON[_0x5dd0e7(0x45d)](_0x2da395),_0x2ea16b);}}let K=class{constructor(_0x58c2e9){const _0x5eb440=_0x51c992;this[_0x5eb440(0x22f)]=_0x58c2e9,this['_initRequestHeader']();}[_0x51c992(0x1d5)](){const _0x2aa034=_0x51c992;this['_httpService'][_0x2aa034(0x34d)]({'interceptor':(_0x1ff340,_0x34d96c)=>{const _0x24d059=_0x2aa034;let _0xf5a294=st();return _0xf5a294&&_0x1ff340['headers'][_0x24d059(0x35e)]('x-univer-host',_0xf5a294),_0x34d96c(_0x1ff340);}});}};K=y([v(0x0,(0x0,t['Inject'])(l['HTTPService']))],K);let q=class extends t[_0x51c992(0x251)]{constructor(_0xee4fbc,_0x5eb423,_0x19faa7){const _0x4de05e=_0x51c992;super(),this['_logService']=_0xee4fbc,this['_snapshotService']=_0x5eb423,this[_0x4de05e(0x451)]=_0x19faa7,g(this,_0x4de05e(0x24f),new i[(_0x4de05e(0x3f2))](null)),g(this,_0x4de05e(0x334),new i['Subject']()),g(this,_0x4de05e(0x31e),this[_0x4de05e(0x24f)][_0x4de05e(0x3e3)]()),g(this,_0x4de05e(0x433),this[_0x4de05e(0x334)]['asObservable']());}[_0x51c992(0x37b)](){const _0x1aef3c=_0x51c992;super[_0x1aef3c(0x37b)](),this[_0x1aef3c(0x334)]['complete'](),this[_0x1aef3c(0x24f)][_0x1aef3c(0x3a9)]();}async[_0x51c992(0x466)](_0x2dd0f6,_0x396349,_0x48008e,_0x29ac26){const _0x35904d=_0x51c992;this[_0x35904d(0x24f)]['next']({'unitId':_0x2dd0f6,'type':_0x396349,'subUnitId':_0x29ac26});let _0x23e66f=null;switch(_0x396349){case t[_0x35904d(0x2b4)][_0x35904d(0x3f5)]:_0x23e66f=await this[_0x35904d(0x2c1)][_0x35904d(0x43d)](_0x2dd0f6,_0x48008e,void 0x0,{'initialSubUnitId':_0x29ac26});break;case t[_0x35904d(0x2b4)][_0x35904d(0x47c)]:_0x23e66f=await this['_snapshotService'][_0x35904d(0x361)](_0x2dd0f6,_0x48008e);break;case t['UniverInstanceType'][_0x35904d(0x439)]:_0x23e66f=await this['_snapshotService'][_0x35904d(0x1d6)](_0x2dd0f6,_0x48008e);break;case t[_0x35904d(0x2b4)][_0x35904d(0x3f3)]:_0x23e66f=await this['_snapshotService'][_0x35904d(0x229)](_0x2dd0f6,_0x48008e);break;case t[_0x35904d(0x2b4)]['UNIVER_BASE']:_0x23e66f=await this[_0x35904d(0x2c1)][_0x35904d(0x411)](_0x2dd0f6,_0x48008e);break;case t['UniverInstanceType'][_0x35904d(0x3eb)]:_0x23e66f=await this['_snapshotService'][_0x35904d(0x30c)](_0x2dd0f6,_0x48008e);break;default:this[_0x35904d(0x396)][_0x35904d(0x420)](_0x35904d(0x269),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x23e66f&&this[_0x35904d(0x334)][_0x35904d(0x443)](_0x23e66f),_0x23e66f;}async[_0x51c992(0x207)](_0x274556,_0x2b3ab9,_0x20c806){const _0x653113=_0x51c992;var _0x4158b6;this['_unitInfo$'][_0x653113(0x443)]({'unitId':_0x274556,'type':_0x2b3ab9,'subUnitId':_0x20c806});let _0x221edd=0x0,_0x7238b4=await((_0x4158b6=this[_0x653113(0x451)])==null?void 0x0:_0x4158b6[_0x653113(0x30a)](_0x274556));return _0x7238b4&&(_0x7238b4[_0x653113(0x3f8)]||_0x7238b4[_0x653113(0x2a2)]['length']!==0x0)&&(_0x221edd=_0x7238b4['rev']),_0x221edd===0x0&&this[_0x653113(0x396)]['debug'](_0x653113(0x269),_0x653113(0x1c1)),this[_0x653113(0x466)](_0x274556,_0x2b3ab9,_0x221edd,_0x20c806);}};q=y([v(0x0,t[_0x51c992(0x291)]),v(0x1,(0x0,t[_0x51c992(0x1ba)])(e[_0x51c992(0x1ed)])),v(0x2,(0x0,t[_0x51c992(0x47e)])(x))],q);let J=class{constructor(_0x5b51b2,_0x11ab21,_0x2ff0ab){const _0x1bf070=_0x51c992;this[_0x1bf070(0x22f)]=_0x5b51b2,this['_configService']=_0x11ab21,this[_0x1bf070(0x322)]=_0x2ff0ab,g(this,'_waitCount',0x0),g(this,_0x1bf070(0x357),new i[(_0x1bf070(0x29d))]()),g(this,_0x1bf070(0x2ab),this[_0x1bf070(0x357)]),g(this,_0x1bf070(0x343),new Map());}[_0x51c992(0x341)](_0x52a8d4){const _0x24eef5=_0x51c992;this[_0x24eef5(0x35b)]=_0x52a8d4,this[_0x24eef5(0x357)][_0x24eef5(0x443)](_0x52a8d4);}['getImageSourceCache'](_0x538024,_0x67566c){const _0x390f41=_0x51c992;if(_0x67566c===t[_0x390f41(0x3f9)][_0x390f41(0x398)]){let _0x1033a5=new Image();return _0x1033a5[_0x390f41(0x222)]=_0x538024,_0x1033a5;}return this[_0x390f41(0x343)][_0x390f41(0x403)](_0x538024);}[_0x51c992(0x42d)](_0xad7f43,_0x25baf2,_0x457db3){const _0x19998f=_0x51c992;_0x25baf2!==t[_0x19998f(0x3f9)][_0x19998f(0x398)]&&_0x457db3!=null&&this[_0x19998f(0x343)][_0x19998f(0x35e)](_0xad7f43,_0x457db3);}async[_0x51c992(0x1c5)](_0x241eea){const _0xa2f05=_0x51c992;try{let _0x28d167=this['_replaceFileID'](this[_0xa2f05(0x1da)](),''+_0x241eea),_0x2a09a5=(await this[_0xa2f05(0x22f)][_0xa2f05(0x403)](_0x28d167))[_0xa2f05(0x253)];if(_0x2a09a5[_0xa2f05(0x420)]&&_0x2a09a5['error'][_0xa2f05(0x25c)]===a[_0xa2f05(0x1e0)]['OK']){let _0x1add89=(0x0,t[_0xa2f05(0x3d4)])(_0x2a09a5['url'],this[_0xa2f05(0x352)]());return Promise[_0xa2f05(0x46d)](_0x1add89);}return Promise['reject'](_0x2a09a5['error']);}catch(_0x3b66f2){return Promise[_0xa2f05(0x261)](_0x3b66f2);}}async[_0x51c992(0x1bf)](_0x46e2c7){const _0x4de2a5=_0x51c992;let _0x53310c='';if(!p[_0x4de2a5(0x1d2)]['includes'](_0x46e2c7[_0x4de2a5(0x3fc)]))return this[_0x4de2a5(0x2d8)](),Promise[_0x4de2a5(0x261)](Error(t[_0x4de2a5(0x33b)][_0x4de2a5(0x24a)]));if(_0x46e2c7['size']>(0x0,p['getDrawingImageAllowSize'])())return this[_0x4de2a5(0x2d8)](),Promise[_0x4de2a5(0x261)](Error(t[_0x4de2a5(0x33b)]['ERROR_EXCEED_SIZE']));try{let _0x345a47=new FormData();_0x345a47[_0x4de2a5(0x483)](_0x4de2a5(0x185),_0x46e2c7);let _0x4922fe=this[_0x4de2a5(0x322)]['getFocusedUnit'](),_0x532426=_0x4922fe==null?void 0x0:_0x4922fe['getUnitId']();if(!_0x532426)throw Error('unitId\x20is\x20not\x20found');let _0x55ebd1=this[_0x4de2a5(0x382)]()+_0x4de2a5(0x3b0)+_0x46e2c7['size'][_0x4de2a5(0x3d6)]()+_0x4de2a5(0x419)+a[_0x4de2a5(0x38a)][_0x4de2a5(0x350)]+_0x4de2a5(0x412)+encodeURIComponent(_0x532426),_0x4187d7={'body':_0x345a47},_0x5700fb=(await this[_0x4de2a5(0x22f)][_0x4de2a5(0x484)](_0x55ebd1,_0x4187d7))[_0x4de2a5(0x253)];if(typeof _0x5700fb[_0x4de2a5(0x2ad)]!=_0x4de2a5(0x2dc))return this[_0x4de2a5(0x2d8)](),Promise[_0x4de2a5(0x261)](Error(t[_0x4de2a5(0x33b)][_0x4de2a5(0x356)]));_0x53310c=_0x5700fb[_0x4de2a5(0x2ad)];}catch{return this['_decreaseWaiting'](),Promise[_0x4de2a5(0x261)](Error(t[_0x4de2a5(0x33b)][_0x4de2a5(0x356)]));}return new Promise((_0x3ab916,_0x29ee65)=>{const _0x1941fc=_0x4de2a5;let _0x56fc15=new FileReader();_0x56fc15['readAsDataURL'](_0x46e2c7),_0x56fc15[_0x1941fc(0x36b)]=_0x5c5767=>{const _0x27af25=_0x1941fc;var _0x5b9611;let _0x7dddc2=(_0x5b9611=_0x5c5767[_0x27af25(0x280)])==null?void 0x0:_0x5b9611[_0x27af25(0x469)];if(_0x7dddc2==null){this[_0x27af25(0x2d8)](),_0x29ee65(Error(t['ImageUploadStatusType']['ERROR_IMAGE']));return;}_0x3ab916({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t['ImageSourceType'][_0x27af25(0x3e2)],'source':_0x53310c,'base64Cache':_0x7dddc2,'status':t['ImageUploadStatusType']['SUCCUSS']}),this[_0x27af25(0x2d8)]();};});}[_0x51c992(0x382)](){const _0x35f0d4=_0x51c992;let _0x215aa6=this[_0x35f0d4(0x214)][_0x35f0d4(0x310)](m);return(_0x215aa6==null?void 0x0:_0x215aa6[_0x35f0d4(0x18a)])??_0x35f0d4(0x386);}['_getSignURL'](){const _0x28d058=_0x51c992;let _0x2d48a7=this[_0x28d058(0x214)][_0x28d058(0x310)](m);return(_0x2d48a7==null?void 0x0:_0x2d48a7[_0x28d058(0x339)])??_0x28d058(0x4a0);}['_getDownloadEndpointURL'](){const _0x49923d=_0x51c992;let _0x1025f1=this[_0x49923d(0x214)][_0x49923d(0x310)](m);return(_0x1025f1==null?void 0x0:_0x1025f1[_0x49923d(0x24c)])??location['origin'];}[_0x51c992(0x20e)](_0x12f535,_0x525c49){const _0x14dd87=_0x51c992;return _0x12f535[_0x14dd87(0x45b)](_0x14dd87(0x1e2),_0x525c49);}[_0x51c992(0x2d8)](){const _0x8485d=_0x51c992;--this[_0x8485d(0x35b)],this[_0x8485d(0x357)][_0x8485d(0x443)](this[_0x8485d(0x35b)]);}};J=y([v(0x0,(0x0,t['Inject'])(l[_0x51c992(0x492)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t['Inject'])(t['IUniverInstanceService']))],J);let Y=class{constructor(_0x158775,_0xd0472c){const _0x78f829=_0x51c992;this[_0x78f829(0x214)]=_0x158775,this[_0x78f829(0x3d7)]=_0xd0472c;}[_0x51c992(0x2c3)](){const _0x357278=_0x51c992;let _0x2a7c42=this[_0x357278(0x214)]['getConfig'](m);return(_0x2a7c42==null?void 0x0:_0x2a7c42[_0x357278(0x450)])??'/universer-api/authz';}async[_0x51c992(0x3f6)](_0x1bf1e6){const _0x4a6b0a=_0x51c992;let _0x3dc237=this['_getAPIPrefixPath']()+_0x4a6b0a(0x38f);return{'list':[{'title':_0x4a6b0a(0x2b8),'mentions':(await this[_0x4a6b0a(0x3d7)][_0x4a6b0a(0x403)](_0x3dc237,{'params':{'objectID':_0x1bf1e6['unitId'],'unitID':_0x1bf1e6[_0x4a6b0a(0x44c)]}}))['body']['collaborators'][_0x4a6b0a(0x231)](_0x33d23d=>({'objectId':_0x33d23d['id'],'name':_0x33d23d[_0x4a6b0a(0x330)][_0x4a6b0a(0x329)],'metadata':{'icon':_0x33d23d['subject'][_0x4a6b0a(0x45c)]},'label':_0x33d23d['subject'][_0x4a6b0a(0x329)],'objectType':t['MentionType'][_0x4a6b0a(0x41c)]})),'metadata':{},'type':t[_0x4a6b0a(0x25f)]['PERSON']}]};}};Y=y([v(0x0,(0x0,t[_0x51c992(0x1ba)])(t[_0x51c992(0x46e)])),v(0x1,(0x0,t['Inject'])(l[_0x51c992(0x492)]))],Y);let X=class extends t[_0x51c992(0x251)]{constructor(_0x50f839,_0x98ad1a,_0x30e917,_0xb5c4f5,_0x14d38b,_0xf5fa98){const _0x19b981=_0x51c992;super(),this[_0x19b981(0x4a1)]=_0x50f839,this[_0x19b981(0x322)]=_0x98ad1a,this[_0x19b981(0x1ab)]=_0x30e917,this[_0x19b981(0x177)]=_0xb5c4f5,this[_0x19b981(0x2d9)]=_0x14d38b,this[_0x19b981(0x2f5)]=_0xf5fa98,g(this,_0x19b981(0x36f),new Set()),this[_0x19b981(0x2d7)](()=>this[_0x19b981(0x36f)]['clear']()),this['disposeWithMe'](ct(this[_0x19b981(0x322)])[_0x19b981(0x481)](({unitId:_0x43bfad})=>this[_0x19b981(0x36f)][_0x19b981(0x404)](_0x43bfad))),this[_0x19b981(0x1ea)](),this['_initCloseConn'](),[t['UniverInstanceType']['UNIVER_DOC'],t['UniverInstanceType'][_0x19b981(0x439)],t['UniverInstanceType']['UNIVER_BASE'],t[_0x19b981(0x2b4)][_0x19b981(0x3f3)]][_0x19b981(0x1be)](_0x444e4f=>{const _0x1bdb9c=_0x19b981;this['disposeWithMe'](this[_0x1bdb9c(0x322)]['getTypeOfUnitDisposed$'](_0x444e4f)[_0x1bdb9c(0x481)](_0x1da032=>{const _0x4bb9e9=_0x1bdb9c;this['_closedUnits']['add'](_0x1da032[_0x4bb9e9(0x1c8)]()),this[_0x4bb9e9(0x4a1)]['get'](t[_0x4bb9e9(0x44f)])[_0x4bb9e9(0x1e9)](_0x1da032['getUnitId']());}));});}[_0x51c992(0x39c)](){const _0x34806e=_0x51c992;let _0x3e824f=async(_0x5a1b74,_0x57af0f)=>{const _0x1f87ac=_0x3ab5;let _0x41c6d3=await this[_0x1f87ac(0x2d9)][_0x1f87ac(0x345)](_0x5a1b74);this[_0x1f87ac(0x2be)]||this[_0x1f87ac(0x36f)][_0x1f87ac(0x2d4)](_0x5a1b74)||!this[_0x1f87ac(0x322)][_0x1f87ac(0x2e2)](_0x5a1b74)||_0x41c6d3[_0x1f87ac(0x40b)][_0x1f87ac(0x3a2)]((0x0,s[_0x1f87ac(0x3d8)])(_0x5cd221=>_0x5cd221[_0x1f87ac(0x309)]===e[_0x1f87ac(0x496)][_0x1f87ac(0x3e0)]),(0x0,s[_0x1f87ac(0x2ec)])((0x0,i[_0x1f87ac(0x335)])(this[_0x1f87ac(0x257)],this['_univerInstanceService'][_0x1f87ac(0x1ef)][_0x1f87ac(0x3a2)]((0x0,s[_0x1f87ac(0x3d8)])(_0x5074db=>_0x5074db[_0x1f87ac(0x1c8)]()===_0x5a1b74)))))[_0x1f87ac(0x481)](_0x5bd9df=>{const _0x59b820=_0x1f87ac;let {reason:_0x4c3968}=_0x5bd9df[_0x59b820(0x2e1)];this[_0x59b820(0x2f5)][_0x59b820(0x3e8)]({'id':_0x59b820(0x2cf),'data':_0x4c3968}),this[_0x59b820(0x36f)][_0x59b820(0x45a)](_0x5a1b74),this[_0x59b820(0x4a1)][_0x59b820(0x403)](t[_0x59b820(0x44f)])[_0x59b820(0x1e9)](_0x5a1b74);let _0x34f7f0=lt(_0x57af0f);_0x34f7f0!=null&&this[_0x59b820(0x27e)](_0x5a1b74,_0x34f7f0,a[_0x59b820(0x2e8)][_0x59b820(0x400)],!0x1),this[_0x59b820(0x2d9)][_0x59b820(0x2d2)](_0x5a1b74);});};ct(this[_0x34806e(0x322)])['pipe']((0x0,s[_0x34806e(0x3d8)])(({unitId:_0x59ee24})=>!(0x0,t[_0x34806e(0x1bc)])(_0x59ee24)),(0x0,s['takeUntil'])(this[_0x34806e(0x257)]))[_0x34806e(0x481)](({type:_0x3deefe,unitId:_0x5397d2})=>{const _0xd3bf2c=_0x34806e;_0x3e824f(_0x5397d2,_0x3deefe)[_0xd3bf2c(0x397)](_0x20ae69=>this[_0xd3bf2c(0x4a1)][_0xd3bf2c(0x403)](t[_0xd3bf2c(0x291)])['error'](_0x20ae69));});}[_0x51c992(0x1ea)](){const _0x3a1688=_0x51c992;let _0x283cb0=async(_0x287949,_0x57277a)=>{const _0x4fe940=_0x3ab5;let _0x39d624=await this[_0x4fe940(0x2d9)]['requireSession'](_0x287949);if(!(this[_0x4fe940(0x2be)]||this[_0x4fe940(0x36f)][_0x4fe940(0x2d4)](_0x287949)||!this[_0x4fe940(0x322)][_0x4fe940(0x2e2)](_0x287949))){if(_0x57277a===t[_0x4fe940(0x2b4)][_0x4fe940(0x3f5)]){let _0x84833c=this[_0x4fe940(0x4a1)][_0x4fe940(0x403)](r[_0x4fe940(0x2e7)]);await _0x84833c['initWorkbookPermissionChange'](_0x287949),_0x39d624[_0x4fe940(0x40b)][_0x4fe940(0x3a2)]((0x0,s[_0x4fe940(0x3d8)])(_0x2b93d3=>_0x2b93d3[_0x4fe940(0x309)]===e[_0x4fe940(0x496)][_0x4fe940(0x4a5)]),(0x0,s[_0x4fe940(0x2ec)])((0x0,i['merge'])(this[_0x4fe940(0x257)],_0x39d624[_0x4fe940(0x40b)][_0x4fe940(0x3a2)]((0x0,s[_0x4fe940(0x3d8)])(_0x46ccd3=>_0x46ccd3[_0x4fe940(0x309)]===e[_0x4fe940(0x496)]['SHOULD_CLOSE_CONN'])),this[_0x4fe940(0x322)][_0x4fe940(0x1ef)][_0x4fe940(0x3a2)]((0x0,s[_0x4fe940(0x3d8)])(_0x16665f=>_0x16665f[_0x4fe940(0x1c8)]()===_0x287949)))))[_0x4fe940(0x481)](_0x3ff0a0=>{const _0x4b8c33=_0x4fe940;let {objectId:_0x340e41}=_0x3ff0a0['data'];_0x340e41===_0x287949?_0x84833c[_0x4b8c33(0x3e9)](_0x287949):_0x84833c['refreshPermission'](_0x287949,_0x340e41);});return;}_0x39d624['event$']['pipe']((0x0,s[_0x4fe940(0x3d8)])(_0xbedd25=>_0xbedd25[_0x4fe940(0x309)]===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s[_0x4fe940(0x2ec)])((0x0,i['merge'])(this[_0x4fe940(0x257)],_0x39d624[_0x4fe940(0x40b)][_0x4fe940(0x3a2)]((0x0,s[_0x4fe940(0x3d8)])(_0x720cc9=>_0x720cc9[_0x4fe940(0x309)]===e[_0x4fe940(0x496)][_0x4fe940(0x3e0)])),this[_0x4fe940(0x322)][_0x4fe940(0x1ef)][_0x4fe940(0x3a2)]((0x0,s[_0x4fe940(0x3d8)])(_0x1f02c0=>_0x1f02c0[_0x4fe940(0x1c8)]()===_0x287949)))))[_0x4fe940(0x481)](()=>{const _0x412f9d=_0x4fe940;this[_0x412f9d(0x3b5)](_0x287949,_0x57277a)[_0x412f9d(0x397)](_0x32f7c3=>this[_0x412f9d(0x4a1)][_0x412f9d(0x403)](t[_0x412f9d(0x291)])[_0x412f9d(0x420)](_0x32f7c3));}),await this[_0x4fe940(0x3b5)](_0x287949,_0x57277a);}};ct(this[_0x3a1688(0x322)])[_0x3a1688(0x3a2)]((0x0,s[_0x3a1688(0x3d8)])(({unitId:_0x466cb5})=>!(0x0,t[_0x3a1688(0x1bc)])(_0x466cb5)),(0x0,s['takeUntil'])(this[_0x3a1688(0x257)]))[_0x3a1688(0x481)](({type:_0x5647c2,unitId:_0x165c68})=>{const _0x8be8f3=_0x3a1688;_0x283cb0(_0x165c68,_0x5647c2)[_0x8be8f3(0x397)](_0x559aab=>this[_0x8be8f3(0x4a1)][_0x8be8f3(0x403)](t[_0x8be8f3(0x291)])[_0x8be8f3(0x420)](_0x559aab));});}async['_refreshUnitPermission'](_0x390d5d,_0x5cec4b){const _0x185e9d=_0x51c992;let _0x2928f1=lt(_0x5cec4b);if(_0x2928f1==null)return;let _0x5c8d9b=this[_0x185e9d(0x4a1)][_0x185e9d(0x403)](t['ObjectPermissionService']);if(_0x5c8d9b[_0x185e9d(0x217)]({'unitId':_0x390d5d,'objectId':_0x390d5d,'objectType':_0x2928f1})){await _0x5c8d9b[_0x185e9d(0x323)](_0x390d5d);return;}let _0x452c25=this[_0x185e9d(0x241)](_0x390d5d,_0x2928f1);if(!_0x452c25[_0x185e9d(0x187)])return;let _0x609719=await this[_0x185e9d(0x177)][_0x185e9d(0x3b8)]({'objectID':_0x390d5d,'objectType':_0x2928f1,'unitID':_0x390d5d,'actions':_0x452c25[_0x185e9d(0x231)](({action:_0x1263f2})=>_0x1263f2)});this[_0x185e9d(0x2be)]||this[_0x185e9d(0x36f)][_0x185e9d(0x2d4)](_0x390d5d)||!this[_0x185e9d(0x322)][_0x185e9d(0x2e2)](_0x390d5d)||_0x609719['forEach'](_0x35b40a=>{const _0x4afd7d=_0x185e9d;let _0x4da73a=_0x35b40a[_0x4afd7d(0x324)],_0x5955b8=_0x35b40a[_0x4afd7d(0x3b8)];_0x4da73a!=null&&_0x5955b8!=null&&_0x452c25[_0x4afd7d(0x3d8)](_0x1e7595=>_0x1e7595[_0x4afd7d(0x324)]===_0x4da73a)[_0x4afd7d(0x1be)](_0x5d2021=>this[_0x4afd7d(0x1ab)][_0x4afd7d(0x17f)](_0x5d2021['id'],_0x5955b8));});}['_getUnitPermissionPoints'](_0x2174ac,_0x29756f){const _0x19ce86=_0x51c992;let _0x1ab609=[];return this[_0x19ce86(0x1ab)][_0x19ce86(0x479)]()['forEach']((_0x48698d,_0x1c49d3)=>{const _0x516883=_0x19ce86;_0x48698d[_0x516883(0x481)](_0x35b6a8=>{const _0x297943=_0x516883;_0x35b6a8[_0x297943(0x3fc)]===_0x29756f&&_0x297943(0x44c)in _0x35b6a8&&_0x35b6a8[_0x297943(0x44c)]===_0x2174ac&&(!('objectId'in _0x35b6a8)||_0x35b6a8[_0x297943(0x42f)]===_0x2174ac)&&_0x1ab609[_0x297943(0x499)]({'id':_0x1c49d3,'action':_0x35b6a8[_0x297943(0x17a)]});})[_0x516883(0x2df)]();}),_0x1ab609;}[_0x51c992(0x27e)](_0x1f9e0f,_0x4db4ef,_0x533500,_0x2263d6){const _0x158903=_0x51c992;this[_0x158903(0x1ab)][_0x158903(0x479)]()[_0x158903(0x1be)]((_0x238329,_0x3dadb7)=>{const _0xf7db5d=_0x158903;let _0x179bd6=!0x1;_0x238329['subscribe'](_0x38e81f=>{const _0x5f15cb=_0x3ab5;_0x179bd6=_0x38e81f[_0x5f15cb(0x3fc)]===_0x4db4ef&&_0x38e81f[_0x5f15cb(0x17a)]===_0x533500&&'unitId'in _0x38e81f&&_0x38e81f[_0x5f15cb(0x44c)]===_0x1f9e0f&&(!(_0x5f15cb(0x42f)in _0x38e81f)||_0x38e81f[_0x5f15cb(0x42f)]===_0x1f9e0f);})[_0xf7db5d(0x2df)](),_0x179bd6&&this['_permissionService'][_0xf7db5d(0x17f)](_0x3dadb7,_0x2263d6);});}};X=y([v(0x0,(0x0,t[_0x51c992(0x1ba)])(t['Injector'])),v(0x1,t[_0x51c992(0x1dd)]),v(0x2,t[_0x51c992(0x255)]),v(0x3,t[_0x51c992(0x284)]),v(0x4,(0x0,t[_0x51c992(0x1ba)])(V)),v(0x5,(0x0,t[_0x51c992(0x1ba)])(_))],X);function ct(_0x46ef50){const _0x3b1477=_0x51c992;return(0x0,i[_0x3b1477(0x335)])(...[t[_0x3b1477(0x2b4)]['UNIVER_SHEET'],t[_0x3b1477(0x2b4)][_0x3b1477(0x47c)],t[_0x3b1477(0x2b4)]['UNIVER_SLIDE'],t[_0x3b1477(0x2b4)]['UNIVER_BOARD'],t[_0x3b1477(0x2b4)][_0x3b1477(0x387)]][_0x3b1477(0x231)](_0x546d8e=>_0x46ef50[_0x3b1477(0x389)](_0x546d8e)['pipe']((0x0,s[_0x3b1477(0x231)])(_0x45c565=>({'type':_0x546d8e,'unitId':_0x45c565[_0x3b1477(0x211)][_0x3b1477(0x1c8)]()})))));}function lt(_0x371436){const _0x3fe99c=_0x51c992;switch(_0x371436){case t[_0x3fe99c(0x2b4)]['UNIVER_SHEET']:return a[_0x3fe99c(0x1df)][_0x3fe99c(0x2c9)];case t[_0x3fe99c(0x2b4)][_0x3fe99c(0x47c)]:return a[_0x3fe99c(0x1df)]['Document'];case t['UniverInstanceType'][_0x3fe99c(0x439)]:return a[_0x3fe99c(0x1df)][_0x3fe99c(0x2c4)];case t[_0x3fe99c(0x2b4)][_0x3fe99c(0x3f3)]:return a[_0x3fe99c(0x1df)][_0x3fe99c(0x25b)];case t[_0x3fe99c(0x2b4)][_0x3fe99c(0x387)]:return a[_0x3fe99c(0x1df)][_0x3fe99c(0x31a)];default:return;}}let Z=class{constructor(_0x27abbf,_0x513d82){const _0x301cd2=_0x51c992;this[_0x301cd2(0x214)]=_0x27abbf,this[_0x301cd2(0x22f)]=_0x513d82;}async[_0x51c992(0x374)](_0x1f1eb6,_0x2eaa46){const _0x9c96e0=_0x51c992;var _0x2e82c3;let {unitID:_0x4f9be7,type:_0x270141,revision:_0x197767=0x0}=_0x2eaa46,_0x360909=this[_0x9c96e0(0x1cf)]()+'/'+_0x270141+'/unit/'+_0x4f9be7+'/rev/'+_0x197767,_0x44b37a=(await this[_0x9c96e0(0x22f)][_0x9c96e0(0x403)](_0x360909))[_0x9c96e0(0x253)],_0x224636=(_0x2e82c3=_0x44b37a[_0x9c96e0(0x178)])==null?void 0x0:_0x2e82c3[_0x9c96e0(0x226)];if(_0x224636){let _0x286d96=_0x224636==null?void 0x0:_0x224636[_0x9c96e0(0x2a0)];_0x224636[_0x9c96e0(0x2a0)]=e[_0x9c96e0(0x3c0)][_0x9c96e0(0x20c)]((0x0,e['b64DecodeUnicode'])(_0x286d96)),Object[_0x9c96e0(0x338)](_0x224636[_0x9c96e0(0x355)])[_0x9c96e0(0x1be)](([,_0x3013a3])=>{const _0x38ece8=_0x9c96e0;let _0xf7f5cb=_0x3013a3[_0x38ece8(0x2a0)];_0x3013a3['originalMeta']=e[_0x38ece8(0x3c0)]['encode']((0x0,e['b64DecodeUnicode'])(_0xf7f5cb));});}return _0x44b37a;}async[_0x51c992(0x271)](_0x5aa90f,_0x37d0e4){const _0x22e5b9=_0x51c992;let {unitID:_0x7591d7,type:_0x362093,blockID:_0x399342}=_0x37d0e4,_0x1bce01=this[_0x22e5b9(0x49d)]()+'/'+_0x362093+_0x22e5b9(0x198)+_0x7591d7+_0x22e5b9(0x264)+_0x399342;return(await this[_0x22e5b9(0x22f)]['get'](_0x1bce01))[_0x22e5b9(0x253)];}async[_0x51c992(0x3c4)](_0x4fc7a1,_0x53f7cf){const _0x141776=_0x51c992;let {unitID:_0x10d93c,type:_0x55cc37,blockID:_0x286e91}=_0x53f7cf,_0x1a22a6=this['_getAPIPrefix']()+'/block/'+_0x55cc37+_0x141776(0x198)+_0x10d93c+_0x141776(0x264)+_0x286e91;return(await this[_0x141776(0x22f)][_0x141776(0x403)](_0x1a22a6))[_0x141776(0x253)];}async[_0x51c992(0x45f)](_0x4bf44d,_0x1dbc64){const _0x4927aa=_0x51c992;let {unitID:_0x144848,type:_0x8da564,from:_0x2e4210,to:_0x485595}=_0x1dbc64,_0x6983d7=this[_0x4927aa(0x49d)]()+'/'+_0x8da564+'/unit/'+_0x144848+_0x4927aa(0x19e)+_0x2e4210+_0x4927aa(0x316)+_0x485595;return(await this[_0x4927aa(0x22f)][_0x4927aa(0x403)](_0x6983d7))['body'];}['getSnapshotAPIPath'](){const _0x4671a5=_0x51c992;return this[_0x4671a5(0x214)][_0x4671a5(0x310)](_0x4671a5(0x3a6))??this[_0x4671a5(0x49d)]();}[_0x51c992(0x49d)](){const _0x3a147d=_0x51c992;let _0x26951b=this[_0x3a147d(0x214)]['getConfig'](m);return(_0x26951b==null?void 0x0:_0x26951b['snapshotServerUrl'])??'/universer-api/snapshot';}async[_0x51c992(0x372)](_0x2a08d7,_0x3e9795){const _0x51c236=_0x51c992;let _0x35a72e=_0x51c236(0x20b)+_0x3e9795[_0x51c236(0x3fc)]+_0x51c236(0x198)+_0x3e9795[_0x51c236(0x23b)]+'/resources';return(await this['_httpService'][_0x51c236(0x403)](_0x35a72e,{'params':{'resourceId':JSON[_0x51c236(0x45d)](_0x3e9795[_0x51c236(0x238)])}}))[_0x51c236(0x253)];}['saveSnapshot'](){const _0x2da311=_0x51c992;throw Error(_0x2da311(0x1b6));}[_0x51c992(0x41a)](){const _0x153487=_0x51c992;throw Error(_0x153487(0x1b6));}['saveSheetBlock'](){const _0x417b9c=_0x51c992;throw Error(_0x417b9c(0x1b6));}[_0x51c992(0x49a)](){const _0x48ae7d=_0x51c992;throw Error(_0x48ae7d(0x1b6));}[_0x51c992(0x331)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x51c992(0x317)](){const _0x179602=_0x51c992;throw Error(_0x179602(0x1b6));}};Z=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x51c992(0x1ba)])(l['HTTPService']))],Z);let Q=class extends t[_0x51c992(0x3a0)]{constructor(_0x41c03e,_0x3aade6,_0x2eca12,_0x576a39,_0x46d183,_0x5aaa45){const _0x4a6c15=_0x51c992;super(_0x41c03e,_0x3aade6,_0x2eca12,_0x576a39),this[_0x4a6c15(0x364)]=_0x46d183,this[_0x4a6c15(0x396)]=_0x5aaa45;}[_0x51c992(0x465)](_0x5db439,_0x21d7af){const _0x111691=_0x51c992;let _0x305a84=this[_0x111691(0x28e)](_0x5db439);if(_0x305a84)try{let _0x2c7a1c=this[_0x111691(0x314)](_0x305a84,_0x21d7af);this['_substituteUndoStack'](_0x5db439,_0x2c7a1c);}catch(_0x4396a0){this[_0x111691(0x396)]['error']('[CollaborationUndoRedoService]',_0x4396a0),this['_clearUndo'](_0x5db439);}let _0x480f02=this[_0x111691(0x191)](_0x5db439);if(_0x480f02)try{let _0x28f8b3=this[_0x111691(0x314)](_0x480f02,_0x21d7af);this[_0x111691(0x248)](_0x5db439,_0x28f8b3);}catch(_0x51a071){this['_logService'][_0x111691(0x420)](_0x51a071),this[_0x111691(0x2bc)](_0x5db439);}}['_clearUndo'](_0x161795){const _0x440561=_0x51c992;let _0x2d46a3=this[_0x440561(0x28e)](_0x161795);_0x2d46a3&&(_0x2d46a3[_0x440561(0x187)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x3f77f6){const _0x5ca949=_0x51c992;let _0xee0cd=this[_0x5ca949(0x191)](_0x3f77f6);_0xee0cd&&(_0xee0cd[_0x5ca949(0x187)]=0x0,this['_updateStatus']());}[_0x51c992(0x470)](_0x58b5b1,_0xae4c49){const _0x2b892b=_0x51c992;this[_0x2b892b(0x18e)][_0x2b892b(0x35e)](_0x58b5b1,_0xae4c49),this['_updateStatus']();}[_0x51c992(0x248)](_0x2f0f07,_0x248524){const _0x53091a=_0x51c992;this[_0x53091a(0x2b0)][_0x53091a(0x35e)](_0x2f0f07,_0x248524),this[_0x53091a(0x1a3)]();}[_0x51c992(0x314)](_0x4edba5,_0xaa8263){const _0x32e180=_0x51c992;let _0x37eff6=[],_0x5facb3=_0xaa8263,_0x2d0804=_0xaa8263;for(let _0x2ca198=_0x4edba5[_0x32e180(0x187)]-0x1;_0x2ca198>=0x0;_0x2ca198--){let {unitID:_0x4a2043,undoMutations:_0x1606d0,redoMutations:_0x5cc682}=_0x4edba5[_0x2ca198],_0x317568=this[_0x32e180(0x364)][_0x32e180(0x262)](_0x5facb3,_0x1606d0),_0x45a465=this[_0x32e180(0x364)][_0x32e180(0x262)](_0x2d0804,_0x5cc682);if((0x0,e[_0x32e180(0x422)])(_0x317568)||(0x0,e[_0x32e180(0x422)])(_0x45a465)){this[_0x32e180(0x396)][_0x32e180(0x420)]('[CollaborationUndoRedoService]',_0x32e180(0x41d),_0x317568,_0x45a465);break;}_0x5facb3=_0x317568[_0x32e180(0x3c6)],_0x2d0804=_0x45a465['c1Prime'],_0x37eff6[_0x32e180(0x499)]({'unitID':_0x4a2043,'undoMutations':_0x317568[_0x32e180(0x1d1)],'redoMutations':_0x45a465[_0x32e180(0x1d1)]});}return _0x37eff6['reverse']();}};Q=y([v(0x0,t[_0x51c992(0x1dd)]),v(0x1,t['ICommandService']),v(0x2,t['IContextService']),v(0x3,t[_0x51c992(0x46e)]),v(0x4,e['ITransformService']),v(0x5,t[_0x51c992(0x291)])],Q);let $=class extends t[_0x51c992(0x1d4)]{constructor(_0x4dfe6d=ee,_0x56147d,_0x38f399,_0x13f469){const _0x2c5d2c=_0x51c992;super(),this['_config']=_0x4dfe6d,this[_0x2c5d2c(0x396)]=_0x56147d,this[_0x2c5d2c(0x4a1)]=_0x38f399,this[_0x2c5d2c(0x214)]=_0x13f469;let {..._0x5eea75}=(0x0,t[_0x2c5d2c(0x335)])({},ee,this[_0x2c5d2c(0x391)]);if(!_0x5eea75[_0x2c5d2c(0x18d)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x5eea75,this['_configService'][_0x2c5d2c(0x409)](m,_0x5eea75);}[_0x51c992(0x414)](){const _0x27eeda=_0x51c992;this[_0x27eeda(0x214)][_0x27eeda(0x409)](t[_0x27eeda(0x2af)],this[_0x27eeda(0x391)][_0x27eeda(0x491)]??[]),this[_0x27eeda(0x2bf)](),this[_0x27eeda(0x362)]();}[_0x51c992(0x2bf)](){const _0x25225d=_0x51c992;var _0x3fd2a2,_0x31dbe2;this[_0x25225d(0x4a1)][_0x25225d(0x2d4)](t['IUndoRedoService'])&&this[_0x25225d(0x396)][_0x25225d(0x420)]('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x491d01=(0x0,t[_0x25225d(0x260)])([[t[_0x25225d(0x390)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this[_0x25225d(0x391)]['socketService']}],[e[_0x25225d(0x43c)],{'useClass':Z}],[t[_0x25225d(0x284)],{'useClass':G}],[t[_0x25225d(0x2f0)],{'useClass':J}],[nt,{'useClass':U}],[t['IMentionIOService'],{'useClass':Y}],[H],[tt]],(_0x3fd2a2=this[_0x25225d(0x391)])==null?void 0x0:_0x3fd2a2[_0x25225d(0x300)]);if(!((_0x31dbe2=this[_0x25225d(0x391)])!=null&&_0x31dbe2['enableSingleActiveInstanceLock'])){let _0x93b5c0=_0x491d01[_0x25225d(0x48f)](([_0xc9cc7d])=>_0xc9cc7d===C);_0x93b5c0!==-0x1&&_0x491d01['splice'](_0x93b5c0,0x1);}(0x0,t[_0x25225d(0x349)])(this[_0x25225d(0x4a1)],_0x491d01);}['_initDependencies'](){const _0x1ff06=_0x51c992;var _0x2c72af,_0x582561;if(this[_0x1ff06(0x4a1)]['get'](l['HTTPService'])[_0x1ff06(0x34d)]({'priority':0x14,'interceptor':(0x0,l['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x2c72af=this['_config'])!=null&&_0x2c72af[_0x1ff06(0x275)])){var _0x3dcd49;(_0x3dcd49=this[_0x1ff06(0x4a1)]['get'](x,t['Quantity'][_0x1ff06(0x277)]))==null||_0x3dcd49['disableLocalCache']();}(_0x582561=this[_0x1ff06(0x391)])!=null&&_0x582561[_0x1ff06(0x26d)]&&(0x0,t[_0x1ff06(0x378)])(this[_0x1ff06(0x4a1)],[[W]]),(0x0,t[_0x1ff06(0x378)])(this['_injector'],[[K],[H],[X]]);}};g($,'pluginName',_0x51c992(0x437)),g($,_0x51c992(0x3be),$e),g($,_0x51c992(0x21f),et),$=y([(0x0,t[_0x51c992(0x367)])(u[_0x51c992(0x445)],l[_0x51c992(0x2eb)],e[_0x51c992(0x2ff)]),v(0x1,t['ILogService']),v(0x2,(0x0,t['Inject'])(t['Injector'])),v(0x3,t[_0x51c992(0x46e)])],$),Object[_0x51c992(0x478)](exports,_0x51c992(0x3b7),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return k;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x270),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x2ca),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x3bc),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x51c992(0x49c)]=m,Object[_0x51c992(0x478)](exports,_0x51c992(0x2f8),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x44d),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x313),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x370),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x318),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x186),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x480),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x51c992(0x34f)]=Be,exports['CollaborationUIEventId']=ie,exports[_0x51c992(0x2fc)]=_,Object[_0x51c992(0x478)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x51c992(0x200)]=ae,Object[_0x51c992(0x478)](exports,_0x51c992(0x482),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x51c992(0x3fd)]=_0x51c992(0x3c5),exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x51c992(0x3fe),exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x51c992(0x1fb),Object['defineProperty'](exports,_0x51c992(0x3b9),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x34c),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x40e),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x51c992(0x2e5)]=_0x51c992(0x3e7),exports['HEARTBEAT_TIMEOUT_KEY']=_0x51c992(0x240),exports[_0x51c992(0x410)]=nt,exports[_0x51c992(0x22b)]=Xe,exports[_0x51c992(0x359)]=qe,exports['ILocalCacheService']=x,exports[_0x51c992(0x346)]=We,exports[_0x51c992(0x358)]=C,exports[_0x51c992(0x243)]=0x3e8,exports[_0x51c992(0x2d3)]=_0x51c992(0x243),Object[_0x51c992(0x478)](exports,_0x51c992(0x1c3),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x1b8),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x203),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x1b7),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x51c992(0x478)](exports,'PendingState',{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x51c992(0x23a)]=_0x51c992(0x327),exports['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x51c992(0x303),exports[_0x51c992(0x1c2)]=ge,Object[_0x51c992(0x478)](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object['defineProperty'](exports,_0x51c992(0x325),{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x51c992(0x351),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x471),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x51c992(0x478)](exports,_0x51c992(0x487),{'enumerable':!0x0,'get':function(){return D;}}),exports[_0x51c992(0x3d2)]=xe,Object['defineProperty'](exports,_0x51c992(0x19f),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports['deserializeToCombResponse']=Ge,exports[_0x51c992(0x3c3)]=ye,exports['serializeCombRequest']=Ke;
1
+ const _0x47c516=_0x88a9;(function(_0x4ac19e,_0x39e52e){const _0xad1a30=_0x88a9,_0xb8ac0e=_0x4ac19e();while(!![]){try{const _0x113a92=parseInt(_0xad1a30(0x23a))/0x1*(-parseInt(_0xad1a30(0x4ca))/0x2)+parseInt(_0xad1a30(0x3f3))/0x3+parseInt(_0xad1a30(0x407))/0x4*(-parseInt(_0xad1a30(0x355))/0x5)+-parseInt(_0xad1a30(0x34f))/0x6*(parseInt(_0xad1a30(0x434))/0x7)+parseInt(_0xad1a30(0x52e))/0x8+-parseInt(_0xad1a30(0x22a))/0x9+parseInt(_0xad1a30(0x261))/0xa*(parseInt(_0xad1a30(0x414))/0xb);if(_0x113a92===_0x39e52e)break;else _0xb8ac0e['push'](_0xb8ac0e['shift']());}catch(_0x5e1e75){_0xb8ac0e['push'](_0xb8ac0e['shift']());}}}(_0x6063,0x6a4ee),Object[_0x47c516(0x202)](exports,Symbol[_0x47c516(0x517)],{'value':_0x47c516(0x45d)}));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='collaboration-client.config',ee={};function te(_0x29630b){const _0x2e0734=_0x47c516;return JSON[_0x2e0734(0x307)](_0x29630b)['length'];}function h(_0x34f693){'@babel/helpers - typeof';const _0x2571e4=_0x47c516;return h=typeof Symbol==_0x2571e4(0x484)&&typeof Symbol[_0x2571e4(0x4bd)]==_0x2571e4(0x380)?function(_0x506617){return typeof _0x506617;}:function(_0x1c699d){const _0xccdb02=_0x2571e4;return _0x1c699d&&typeof Symbol=='function'&&_0x1c699d[_0xccdb02(0x253)]===Symbol&&_0x1c699d!==Symbol['prototype']?_0xccdb02(0x380):typeof _0x1c699d;},h(_0x34f693);}function ne(_0x535a94,_0x426faa){const _0x18cef0=_0x47c516;if(h(_0x535a94)!=_0x18cef0(0x227)||!_0x535a94)return _0x535a94;var _0x2ae51f=_0x535a94[Symbol['toPrimitive']];if(_0x2ae51f!==void 0x0){var _0xc3ee7b=_0x2ae51f['call'](_0x535a94,_0x426faa||_0x18cef0(0x46f));if(h(_0xc3ee7b)!=_0x18cef0(0x227))return _0xc3ee7b;throw TypeError(_0x18cef0(0x3b7));}return(_0x426faa==='string'?String:Number)(_0x535a94);}function re(_0x41813d){const _0x5cd8b2=_0x47c516;var _0x22dd5d=ne(_0x41813d,_0x5cd8b2(0x46a));return h(_0x22dd5d)=='symbol'?_0x22dd5d:_0x22dd5d+'';}function g(_0x53a630,_0x99b030,_0x533b57){return(_0x99b030=re(_0x99b030))in _0x53a630?Object['defineProperty'](_0x53a630,_0x99b030,{'value':_0x533b57,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53a630[_0x99b030]=_0x533b57,_0x53a630;}let ie=function(_0x2aea50){const _0x246dd1=_0x47c516;return _0x2aea50[_0x246dd1(0x451)]='OTHER_CLIENT_EDITING',_0x2aea50[_0x246dd1(0x33b)]=_0x246dd1(0x33b),_0x2aea50[_0x246dd1(0x3f9)]='CONFLICT_PROCESSING',_0x2aea50[_0x246dd1(0x216)]=_0x246dd1(0x216),_0x2aea50[_0x246dd1(0x30f)]=_0x246dd1(0x30f),_0x2aea50['CLOSE_ROOM']='CLOSE_ROOM',_0x2aea50[_0x246dd1(0x345)]='JOIN_ROOM_FAILED',_0x2aea50['SOCKET_FAILED_RETRY']=_0x246dd1(0x3fb),_0x2aea50[_0x246dd1(0x4ce)]=_0x246dd1(0x4ce),_0x2aea50['SUBMIT_CHANGESET_TIMEOUT']=_0x246dd1(0x3e5),_0x2aea50;}({});var _=class{constructor(){const _0x1807f4=_0x47c516;g(this,_0x1807f4(0x21c),new i[(_0x1807f4(0x369))]()),g(this,'event$',this[_0x1807f4(0x21c)]['asObservable']());}['emitEvent'](_0x1b909f){const _0x215380=_0x47c516;this[_0x215380(0x21c)][_0x215380(0x485)](_0x1b909f);}},ae=class{constructor(){const _0xde36e9=_0x47c516;g(this,_0xde36e9(0x338),new i[(_0xde36e9(0x369))]()),g(this,_0xde36e9(0x28d),this['_commentUpdate$'][_0xde36e9(0x404)]());}['onCommentUpdate'](_0x5156e3){const _0x127118=_0x47c516;this['_commentUpdate$'][_0x127118(0x485)](_0x5156e3);}};function v(_0x3bdf90,_0x53ec26){return function(_0x36cccd,_0x2bf602){_0x53ec26(_0x36cccd,_0x2bf602,_0x3bdf90);};}function y(_0x439018,_0x4fa86e,_0x18fbc7,_0x104305){const _0x348ab=_0x47c516;var _0x3c1e38=arguments[_0x348ab(0x476)],_0x22ff1f=_0x3c1e38<0x3?_0x4fa86e:_0x104305===null?_0x104305=Object[_0x348ab(0x2ef)](_0x4fa86e,_0x18fbc7):_0x104305,_0x1ca185;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x22ff1f=Reflect[_0x348ab(0x37c)](_0x439018,_0x4fa86e,_0x18fbc7,_0x104305);else{for(var _0x9d5403=_0x439018[_0x348ab(0x476)]-0x1;_0x9d5403>=0x0;_0x9d5403--)(_0x1ca185=_0x439018[_0x9d5403])&&(_0x22ff1f=(_0x3c1e38<0x3?_0x1ca185(_0x22ff1f):_0x3c1e38>0x3?_0x1ca185(_0x4fa86e,_0x18fbc7,_0x22ff1f):_0x1ca185(_0x4fa86e,_0x18fbc7))||_0x22ff1f);}return _0x3c1e38>0x3&&_0x22ff1f&&Object[_0x348ab(0x202)](_0x4fa86e,_0x18fbc7,_0x22ff1f),_0x22ff1f;}let b=class extends t[_0x47c516(0x542)]{constructor(_0x3b6da9){const _0x548d73=_0x47c516;super(),this[_0x548d73(0x2af)]=_0x3b6da9,g(this,_0x548d73(0x27c),new Map()),g(this,_0x548d73(0x35e),new i['Subject']()),this[_0x548d73(0x4dc)]((0x0,i[_0x548d73(0x4f0)])(this[_0x548d73(0x2af)][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)][_0x548d73(0x4ab)])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x2b5f7f=>_0x2b5f7f[_0x548d73(0x4fc)]())),this[_0x548d73(0x2af)][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)][_0x548d73(0x48e)])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x42c348=>_0x42c348['getUnitId']())),this['_univerInstanceService'][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)]['UNIVER_BOARD'])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x59addf=>_0x59addf['getUnitId']())),this['_univerInstanceService'][_0x548d73(0x4bf)](t[_0x548d73(0x4f3)]['UNIVER_BASE'])[_0x548d73(0x3e8)]((0x0,s[_0x548d73(0x41a)])(_0x1adf9c=>_0x1adf9c[_0x548d73(0x4fc)]())))[_0x548d73(0x51a)](_0x7d5735=>this[_0x548d73(0x2c8)](_0x7d5735)));}['waitForRoom$'](_0x21206b){const _0x4e6f06=_0x47c516;return this['_roomMembers'][_0x4e6f06(0x51d)](_0x21206b)?(0x0,i['of'])(this[_0x4e6f06(0x27c)][_0x4e6f06(0x1fa)](_0x21206b)):this[_0x4e6f06(0x35e)][_0x4e6f06(0x3e8)]((0x0,s[_0x4e6f06(0x41a)])(_0x1989d8=>{const _0x492aa4=_0x4e6f06;if(_0x1989d8===_0x21206b)return this[_0x492aa4(0x27c)][_0x492aa4(0x1fa)](_0x1989d8);}));}[_0x47c516(0x388)](_0x4a725f,_0x5dab26){const _0x274fd6=_0x47c516;let _0x329d77=this[_0x274fd6(0x27c)][_0x274fd6(0x1fa)](_0x4a725f);_0x329d77||(_0x329d77=new oe(),this[_0x274fd6(0x27c)][_0x274fd6(0x2f5)](_0x4a725f,_0x329d77),this[_0x274fd6(0x35e)]['next'](_0x4a725f)),_0x329d77[_0x274fd6(0x388)](_0x5dab26);}['removeMember'](_0x14ec26,_0x25c124){const _0x58cb09=_0x47c516;let _0x5bfd9e=this[_0x58cb09(0x27c)][_0x58cb09(0x1fa)](_0x14ec26);_0x5bfd9e&&_0x5bfd9e[_0x58cb09(0x4a5)](_0x25c124);}[_0x47c516(0x2bc)](_0x395396){const _0x190e9e=_0x47c516;return this[_0x190e9e(0x27c)]['get'](_0x395396);}[_0x47c516(0x457)](_0xc6e158,_0x1a9b22){const _0xf75555=_0x47c516;let _0x56c2a5=this[_0xf75555(0x27c)][_0xf75555(0x1fa)](_0xc6e158);if(_0x56c2a5)return _0x56c2a5['getMember'](_0x1a9b22);}[_0x47c516(0x2c8)](_0xb02f40){const _0x18c547=_0x47c516;let _0x5b8988=this[_0x18c547(0x27c)]['get'](_0xb02f40);_0x5b8988&&(_0x5b8988[_0x18c547(0x328)](),this['_roomMembers'][_0x18c547(0x512)](_0xb02f40));}['dispose'](){const _0x23db99=_0x47c516;this['_roomMembers'][_0x23db99(0x4b1)](_0x257923=>_0x257923['dispose']()),this[_0x23db99(0x27c)]['clear'](),this[_0x23db99(0x35e)]['complete']();}};b=y([v(0x0,t['IUniverInstanceService'])],b);var oe=class extends t[_0x47c516(0x542)]{constructor(..._0x26025d){const _0x183587=_0x47c516;super(..._0x26025d),g(this,_0x183587(0x3fd),new Map()),g(this,_0x183587(0x2b3),new i[(_0x183587(0x2f4))](this[_0x183587(0x3fd)])),g(this,_0x183587(0x40a),this[_0x183587(0x2b3)]['asObservable']());}['dispose'](){const _0xbffcc8=_0x47c516;this['_members'][_0xbffcc8(0x4c9)](),this['_members$'][_0xbffcc8(0x2ce)]();}[_0x47c516(0x388)](_0x28fc36){const _0x39df6f=_0x47c516;this['_members']['set'](_0x28fc36[_0x39df6f(0x46e)],_0x28fc36),this[_0x39df6f(0x4af)]();}[_0x47c516(0x4a5)](_0x2bbafb){const _0x3d7f9a=_0x47c516;this[_0x3d7f9a(0x3fd)]['delete'](_0x2bbafb),this['_emitMembers']();}[_0x47c516(0x457)](_0x436ad2){const _0x1439a0=_0x47c516;return this[_0x1439a0(0x3fd)][_0x1439a0(0x1fa)](_0x436ad2);}[_0x47c516(0x3bc)](){const _0x24481e=_0x47c516;return Array['from'](this[_0x24481e(0x3fd)][_0x24481e(0x283)]());}[_0x47c516(0x4af)](){const _0x12c804=_0x47c516;this[_0x12c804(0x2b3)][_0x12c804(0x485)](this[_0x12c804(0x3fd)]);}};function se(_0x54661e,_0x53eb66){const _0x24b451=_0x47c516;if(le(_0x54661e))return _0x53eb66;if(_0x53eb66[_0x24b451(0x393)]===e[_0x24b451(0x427)][_0x24b451(0x45e)]){let _0x5731c4=me(_0x54661e),_0x5b1285=_0x53eb66;return{..._0x5b1285,'data':{..._0x5b1285[_0x24b451(0x3cf)],'unitID':_0x54661e[_0x24b451(0x2cf)][_0x24b451(0x220)],'unitType':_0x54661e[_0x24b451(0x2cf)][_0x24b451(0x4aa)]??_0x5b1285[_0x24b451(0x3cf)][_0x24b451(0x4aa)],'changeset':_0x5731c4['toRemote'](_0x5b1285[_0x24b451(0x3cf)][_0x24b451(0x28a)],he(_0x54661e))}};}if(_0x53eb66[_0x24b451(0x393)]===e[_0x24b451(0x427)][_0x24b451(0x525)]){let _0x5b553b=_0x53eb66;return{..._0x5b553b,'data':{..._0x5b553b[_0x24b451(0x3cf)],'unitID':_0x54661e[_0x24b451(0x2cf)][_0x24b451(0x220)],'unitType':_0x54661e[_0x24b451(0x2cf)]['unitType']??_0x5b553b['data']['unitType']}};}return _0x53eb66;}function ce(_0x2671cd,_0x5f5549){const _0x41a59c=_0x47c516;if(le(_0x2671cd))return[_0x5f5549];switch(_0x5f5549['eventID']){case e[_0x41a59c(0x427)][_0x41a59c(0x363)]:return[ue(_0x2671cd,_0x5f5549)];case e[_0x41a59c(0x427)][_0x41a59c(0x446)]:return[fe(_0x2671cd,_0x5f5549)];case e[_0x41a59c(0x427)][_0x41a59c(0x2fa)]:return[de(_0x2671cd,_0x5f5549)];default:return[_0x5f5549];}}function le(_0x385d21){const _0x591c82=_0x47c516;return _0x385d21[_0x591c82(0x2cf)]['endpoint']==null&&_0x385d21[_0x591c82(0x2cf)][_0x591c82(0x220)]===_0x385d21[_0x591c82(0x399)]&&!_0x385d21[_0x591c82(0x28a)];}function ue(_0x510c01,_0x28e64b){const _0x342d5e=_0x47c516;return{..._0x28e64b,'data':(0x0,e[_0x342d5e(0x505)])(pe(_0x510c01,(0x0,e[_0x342d5e(0x450)])(_0x28e64b[_0x342d5e(0x3cf)])))};}function de(_0x4ba7c5,_0x80ce01){const _0xb9edf3=_0x47c516;return{..._0x80ce01,'data':pe(_0x4ba7c5,_0x80ce01[_0xb9edf3(0x3cf)])};}function fe(_0x5dc88b,_0x560d9e){const _0x9106f3=_0x47c516;let _0x6f951c=_0x560d9e[_0x9106f3(0x3cf)];return{..._0x560d9e,'data':{..._0x6f951c,'changesets':_0x6f951c[_0x9106f3(0x4a9)][_0x9106f3(0x41a)](_0x573f2d=>(0x0,e[_0x9106f3(0x505)])(pe(_0x5dc88b,(0x0,e['parseProtocolChangeset'])(_0x573f2d))))}};}function pe(_0x225916,_0x109844){const _0x26ea88=_0x47c516;return me(_0x225916)[_0x26ea88(0x41b)](_0x109844,he(_0x225916));}function me(_0x547872){const _0x2dc92b=_0x47c516;if(!_0x547872[_0x2dc92b(0x28a)])throw Error(_0x2dc92b(0x364));return _0x547872['changeset'];}function he(_0x3b90f0){const _0x29fbc5=_0x47c516;return{'localUnitId':_0x3b90f0[_0x29fbc5(0x399)],'unitType':_0x3b90f0[_0x29fbc5(0x4aa)],'target':_0x3b90f0['target']};}let ge=function(_0xf7bd12){const _0x5c34ea=_0x47c516;return _0xf7bd12[_0xf7bd12[_0x5c34ea(0x53d)]=0x0]=_0x5c34ea(0x53d),_0xf7bd12[_0xf7bd12[_0x5c34ea(0x428)]=0x1]=_0x5c34ea(0x428),_0xf7bd12[_0xf7bd12['OFFLINE']=0x2]='OFFLINE',_0xf7bd12[_0xf7bd12[_0x5c34ea(0x392)]=0x3]=_0x5c34ea(0x392),_0xf7bd12;}({});const _e={[a[_0x47c516(0x487)][_0x47c516(0x252)]]:_0x47c516(0x3da),[a[_0x47c516(0x487)][_0x47c516(0x211)]]:_0x47c516(0x21b),[a[_0x47c516(0x487)][_0x47c516(0x453)]]:_0x47c516(0x25e),[a[_0x47c516(0x487)][_0x47c516(0x33f)]]:'session.room-permission-denied',[a['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x47c516(0x300)};let ve=class extends t[_0x47c516(0x3b6)]{get[_0x47c516(0x462)](){const _0x328a2e=_0x47c516;return this[_0x328a2e(0x291)][_0x328a2e(0x28b)]();}constructor(_0x14f800,_0x34e89d,_0x370e7d,_0x2e62a1,_0x5638ab,_0x31729a,_0x8ca638,_0x297e8b){const _0xf0d411=_0x47c516;super(),this[_0xf0d411(0x4c7)]=_0x14f800,this[_0xf0d411(0x266)]=_0x370e7d,this[_0xf0d411(0x469)]=_0x2e62a1,this[_0xf0d411(0x2e6)]=_0x5638ab,this['_commentService']=_0x31729a,this[_0xf0d411(0x396)]=_0x8ca638,this[_0xf0d411(0x228)]=_0x297e8b,g(this,_0xf0d411(0x291),new i[(_0xf0d411(0x2f4))](0x0)),g(this,_0xf0d411(0x455),this[_0xf0d411(0x291)][_0xf0d411(0x404)]()),g(this,_0xf0d411(0x21c),new i[(_0xf0d411(0x369))]()),g(this,_0xf0d411(0x502),this['_event$'][_0xf0d411(0x404)]()),g(this,_0xf0d411(0x36a),void 0x0),g(this,'_socketMessageSubscription',void 0x0),g(this,_0xf0d411(0x4dd),void 0x0),g(this,_0xf0d411(0x49b),!0x1),g(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0xf0d411(0x228)],_0x34e89d[_0xf0d411(0x3e8)]((0x0,i['takeUntil'])(this[_0xf0d411(0x25f)]))[_0xf0d411(0x51a)](_0x15c67b=>{const _0x4d5652=_0xf0d411;if(_0x15c67b!==void 0x0){if(this[_0x4d5652(0x36a)]=_0x15c67b,_0x15c67b)this['_joinRoom'](_0x15c67b),this[_0x4d5652(0x39e)]=_0x15c67b['message$']['subscribe'](_0x499420=>{const _0x44b284=_0x4d5652;_0x499420[_0x44b284(0x46d)]===this[_0x44b284(0x4c7)][_0x44b284(0x2cf)][_0x44b284(0x220)]&&this[_0x44b284(0x2ac)](_0x499420);});else{var _0x37759a;this[_0x4d5652(0x4ff)](),this[_0x4d5652(0x291)]['next'](0x2),(_0x37759a=this[_0x4d5652(0x39e)])==null||_0x37759a[_0x4d5652(0x44d)](),this[_0x4d5652(0x39e)]=null;}}});}['getMemberID'](){const _0x29327d=_0x47c516;var _0x3837ad;return((_0x3837ad=this[_0x29327d(0x36a)])==null?void 0x0:_0x3837ad[_0x29327d(0x46e)])??null;}['dispose'](){const _0x4decf2=_0x47c516;super['dispose'](),this[_0x4decf2(0x37d)](),this[_0x4decf2(0x25f)][_0x4decf2(0x485)](),this[_0x4decf2(0x25f)][_0x4decf2(0x2ce)]();}[_0x47c516(0x37d)](){const _0x8f794f=_0x47c516;var _0x469fdf;this[_0x8f794f(0x4ff)](),(_0x469fdf=this['_socket'])==null||_0x469fdf[_0x8f794f(0x422)]({'cmd':a[_0x8f794f(0x513)][_0x8f794f(0x269)],'data':{'roomID':this[_0x8f794f(0x4c7)]['target'][_0x8f794f(0x220)]}}),this['_event$']['complete'](),this['_sessionStatus$'][_0x8f794f(0x2ce)]();}[_0x47c516(0x2ac)](_0x216bf1){const _0x379a9f=_0x47c516;_0x216bf1[_0x379a9f(0x3ab)]===a[_0x379a9f(0x513)][_0x379a9f(0x342)]?this[_0x379a9f(0x3e7)](_0x216bf1):_0x216bf1[_0x379a9f(0x3ab)]===a[_0x379a9f(0x513)][_0x379a9f(0x2dc)]&&this[_0x379a9f(0x32d)](_0x216bf1);}[_0x47c516(0x4b5)](_0x23e07e){const _0xdd6b44=_0x47c516;this[_0xdd6b44(0x291)]['next'](0x1),_0x23e07e['send']({'cmd':a[_0xdd6b44(0x513)]['JOIN'],'routeKey':this[_0xdd6b44(0x4c7)][_0xdd6b44(0x2cf)][_0xdd6b44(0x220)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0xdd6b44(0x2cf)]['unitId']}]}});}[_0x47c516(0x3e7)](_0x36c7ba){const _0x30e0cb=_0x47c516;var _0x46cca0;if(_0x36c7ba[_0x30e0cb(0x30a)]in _e){this[_0x30e0cb(0x396)]['emitEvent']({'id':_0x30e0cb(0x345),'data':_e[_0x36c7ba[_0x30e0cb(0x30a)]]}),this[_0x30e0cb(0x291)]['next'](0x2);return;}this[_0x30e0cb(0x291)]['next'](0x3);let _0x794874=(_0x46cca0=_0x36c7ba[_0x30e0cb(0x3cf)][_0x30e0cb(0x271)][this['_identity']['target'][_0x30e0cb(0x220)]])==null?void 0x0:_0x46cca0['members'];_0x794874&&_0x794874[_0x30e0cb(0x4b1)](_0x5044a6=>this[_0x30e0cb(0x2e6)][_0x30e0cb(0x388)](this[_0x30e0cb(0x4c7)][_0x30e0cb(0x399)],_0x5044a6));}['_onRecvEvent'](_0x296ca1){const _0x5802ca=_0x47c516;try{let _0x2adf94=ce(this[_0x5802ca(0x4c7)],_0x296ca1[_0x5802ca(0x3cf)]);for(let _0x3949e5 of _0x2adf94)switch(_0x3949e5['eventID']){case e[_0x5802ca(0x427)]['USERS_ENTER']:this[_0x5802ca(0x4d6)](_0x3949e5),this['_event$'][_0x5802ca(0x485)](_0x3949e5);break;case e[_0x5802ca(0x427)][_0x5802ca(0x235)]:this[_0x5802ca(0x21e)](_0x3949e5),this[_0x5802ca(0x21c)][_0x5802ca(0x485)](_0x3949e5);break;case e[_0x5802ca(0x427)][_0x5802ca(0x30b)]:case e['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x5802ca(0x4c5)](),this[_0x5802ca(0x523)](),this[_0x5802ca(0x21c)][_0x5802ca(0x485)](_0x3949e5);break;case e[_0x5802ca(0x427)]['MSG_FOR_ERROR']:this[_0x5802ca(0x266)][_0x5802ca(0x492)](_0x5802ca(0x2a2)+JSON[_0x5802ca(0x307)](_0x3949e5)),this[_0x5802ca(0x21c)]['next'](_0x3949e5);break;case e[_0x5802ca(0x427)][_0x5802ca(0x507)]:this[_0x5802ca(0x254)][_0x5802ca(0x4df)](_0x3949e5['data']),this[_0x5802ca(0x21c)][_0x5802ca(0x485)](_0x3949e5);break;default:this[_0x5802ca(0x21c)]['next'](_0x3949e5);}}catch(_0x2d65dd){this[_0x5802ca(0x266)][_0x5802ca(0x492)](_0x2d65dd,_0x296ca1);}}['_onUserJoin'](_0xdb62aa){const _0x1d21a5=_0x47c516;this['_memberService'][_0x1d21a5(0x388)](this[_0x1d21a5(0x4c7)][_0x1d21a5(0x399)],_0xdb62aa[_0x1d21a5(0x3cf)]);}[_0x47c516(0x21e)](_0x3f1aef){const _0x2b3efd=_0x47c516;this[_0x2b3efd(0x2e6)]['removeMember'](this[_0x2b3efd(0x4c7)][_0x2b3efd(0x399)],_0x3f1aef[_0x2b3efd(0x3cf)]['memberID']);}async['send'](_0x1c911c,_0x316b2a){const _0xaaf7e5=_0x47c516;if(this[_0xaaf7e5(0x462)]!==0x3||!this['_socket'])throw Error(_0xaaf7e5(0x2e5));try{let _0x4fabf7=se(this['_identity'],_0x1c911c);_0x4fabf7[_0xaaf7e5(0x393)]===e[_0xaaf7e5(0x427)][_0xaaf7e5(0x45e)]&&(this[_0xaaf7e5(0x296)](),this['_startTelemetryCollaborationNewChangeset'](_0x4fabf7)),this[_0xaaf7e5(0x36a)][_0xaaf7e5(0x422)]({'cmd':a[_0xaaf7e5(0x513)][_0xaaf7e5(0x467)],'routeKey':this['_identity'][_0xaaf7e5(0x2cf)][_0xaaf7e5(0x220)],'routeType':'','data':_0x4fabf7});}catch(_0x2c3430){this[_0xaaf7e5(0x266)][_0xaaf7e5(0x492)](_0x2c3430);}}['_scheduleCollaborationTimeoutTimer'](){const _0x48b056=_0x47c516;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3481d3=_0x88a9;this[_0x3481d3(0x4dd)]=null,this[_0x3481d3(0x396)][_0x3481d3(0x315)]({'id':_0x3481d3(0x3e5)});},this[_0x48b056(0x469)][_0x48b056(0x33e)](_0x48b056(0x540))??0x4e20);}[_0x47c516(0x523)](){this['_collaborationTimeoutTimer']&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}[_0x47c516(0x336)](_0xe80764){const _0x489bd3=_0x47c516;if(!this['_shouldReportTelemetry'])return;let {data:_0x2853d5}=_0xe80764,{unitID:_0x454715,changeset:_0x49bd93}=_0x2853d5,{mutations:_0x730a2e,type:_0x2f6817}=_0x49bd93;this[_0x489bd3(0x518)]={'unitId':_0x454715,'type':_0x2f6817,'startTime':performance[_0x489bd3(0x3e6)](),'stopTime':0x0,'duration':0x0,'size':te(_0x730a2e)};}[_0x47c516(0x4c5)](){const _0x4d7817=_0x47c516;this[_0x4d7817(0x49b)]&&(this[_0x4d7817(0x518)]?(this[_0x4d7817(0x518)][_0x4d7817(0x368)]=performance['now'](),this[_0x4d7817(0x518)][_0x4d7817(0x49d)]=this['_telemetryInfo'][_0x4d7817(0x368)]-this[_0x4d7817(0x518)]['startTime'],this['_telemetryService'][_0x4d7817(0x4d3)]('collaboration_new_changeset',this[_0x4d7817(0x518)]),this[_0x4d7817(0x518)]=null):this['_logService'][_0x4d7817(0x492)](_0x4d7817(0x239),'telemetry\x20info\x20is\x20not\x20initialized'));}[_0x47c516(0x4ff)](){const _0x2e9b43=_0x47c516;this[_0x2e9b43(0x518)]=null;}};function _0x6063(){const _0x4b802d=['now','_onJoinRoomEvent','pipe','some','_tryEnsureSocket','_handler','_rescheduleHeartbeat','_schedule','getCurrentUser','objects','_substituteRedoStack','BoardCollaborationEntity','resolveUnit','121125hLKEPn','getLocalCacheKey','HEARTBEAT_INTERVAL_KEY','ITransformService','_clearHandshakeTimer','find','CONFLICT_PROCESSING','awaiting','SOCKET_FAILED_RETRY','IAuthzIoService','_members','USERS_ENTER','onTransformSelections','_injector','setCfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','/object/','asObservable','_acknowledgedAwaitingRevision','serializeCombRequest','4bveDLV','_loadUnit','getFocusedUnit','members$','_runScheduledResend','ImageUploadStatusType','getUploadOptions','objectActions','_prepareConflictRecovery','refreshUnit','collaboration-client.auth.needGotoLoginAlert','_onOffline','[CollaborationUndoRedoService]','258049UDIbJi','SnapshotService','Injector','editing\x20status\x20changed\x20to','HEARTBEAT_INTERVAL','setWaitCount','map','toLocal','state','_fetchMissChangesets','_getUnitPermissionPoints','onTransformRemoteChangesetByIMECache','unitDisposed$','getCollabEntity','send','DocStateChangeManagerService','getUnitOnRev','_getSignURL','subType','CollaborationEvent','JOINING','isInternalEditorID','RETRY_CONNECTING_MAX_COUNT_KEY','socketReady','_tryReconnect','MoveSlidePageMutation','resend','getImage','equals','ISnapshotServerService','allowed','collaborators','112wPpebV','[SyncedState]:\x20received\x20rejection.','signUrlServerUrl','_getLoginPath','DependentOn','userID','getDeserializedSheetBlock','_maxTotalRetryTimeout','getUnitStatus$','timeoutTimer','reject','text-x','_disposed','filter','OPTIONAL','_compressMutationService','UnitStatus','HELLO','PSEUDO_FETCH_MISSING_RESULT','[OfflineState]:\x20received\x20rejection.','\x20in\x20_schedule.','loadSlide','_pendingSessions','PERSON','textEncoder','unsubscribe','/universer-api/oidc/authpage','_replayCachedMutations','parseProtocolChangeset','OTHER_CLIENT_EDITING','_handlerCallback','JOIN_ROOM_NOT_EXISTS','downloadEndpointUrl','sessionStatus$','docStateChange$','getMember','_eventService','updatePermissionObjEvent','delay','HTTPService','UnitEmbedded','Module','SUBMIT_CHANGESET','unit-cache-','appendMutation','ICollaborationSocketService','sessionStatus','CollaborationImageIoService','error$','location','_authzIoService','INGEST','getTime','_configService','string','_refreshUnitPermission','_executeRemoteChangeset','routeKey','memberID','default','?url=','MentionIoHttpService','socketSubscription','_registerDependencies','IMentionIOService','onStarting','length','_onLocalMutation','_clearUndo','getCurrentRevOfUnit','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','/universer-api/snapshot','getWorkbookSelections','localeService','deepClone','_type','unit','_showConflictNotification','includes','CollaborationUIEventService','function','next','_unitInfo$','CmdRspCode','_clearHeartbeatTimer','CommentService','/universer-api/stream/file/upload','createCollaborator','_createInitialState','roles','UNIVER_DOC','UNIVER_BOARD','onSyncEditingCollabCursor','_change$','error','IUniverInstanceService','onMissedChangesetFetched','ignored\x20stale\x20ack\x20of\x20revision\x20','_awaitingChangeset','min','_resendTimer','socketService','_status$','_shouldReportTelemetry','[OfflineState]:\x20received\x20changeset.','duration','&source=','[CollaborationSessionService]','method','LIVESHARE_OPERATION','timer','AwaitingState','createIdentifier','removeMember','executeCommand','UNIVER_PDF','PendingState','changesets','unitType','UNIVER_SHEET','getSheetBlock','saveChangeset','closeSession','_emitMembers','_acknowledgeAwaiting','forEach','/block/','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_exhaustRemoteChangesetQueue','_joinRoom','SheetsSelectionsService','CollaborationSession','endpoint','awaitingChangeset','localCacheService','UnitObject','splice','iterator','unitLoaded$','getTypeOfUnitDisposed$','selections','saveSnapshot','__Key__','_listenToNetworkCondition','onSendChangeset','_stopTelemetryCollaborationNewChangeset','ConflictState','_identity','/collaborator','clear','177830EdptYu','POST','_socketChannels','IContextService','SOCKET_FAILED','call','_sender','UNIVER_BASE','conflict','capture','AWAITING','loadPdf','_onUserJoin','UUID','UserManagerService','sendHeartbeatTimer','c2Prime','UniverLicensePlugin','disposeWithMe','_collaborationTimeoutTimer','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onCommentUpdate','ILogService','onTransformState','not_collab','OTHER_CLIENTS_EDITING','_revisionService','getCollabEntity$','SNAPSHOT_URL_KEY','backupOfflineData','take','unitID','LIVESHARE_FETCH_OPERATIONS','_HTTPService','onPrepareTransformSelections','_snapshotService','_getConfig','collaMsg','merge','\x20at\x20revision\x20','getSnapshotAPIPath','UniverInstanceType','\x0aCurrent:\x20','status','_changesetSessionId','m2Prime','DEFAULT_COLLAB_WEB_SOCKET_URL','baseRev','SUCCUSS','result','getUnitId','_userManagerService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_throwTelemetryCollaborationNewChangeset','SHOULD_CLOSE_CONN','createSocket','event$','_httpService','_clearScheduledTask','parseChangesetToProtocol','[PendingState]:\x20received\x20rejection.','COMMENT_UPDATE','_collaborationSessionService','_submitChangeset','uuidv4','_isAppliedRevision','/allowed','awaiting_with_pending','IImageIoService','WorkbookEditablePermission','_dropAcknowledgedAwaiting','BaseCollaborationEntity','delete','CombCmd','OFFLINE','_clearTimeoutTimer','textRanges','toStringTag','_telemetryInfo','deleteCollaborator','subscribe','socket$','responseType','has','deserializeToCombResponse','_singleActiveUnitService','revision','prototype','LIVESHARE_REQUEST_HOST','_clearCollaborationTimeoutTimer','_networkConditionService','FETCH_MISSING','IUndoRedoService','_remoteChangesetQueue','Inject','retryConnectingInterval','fetchMiss','getAllPermissionPoint','concatMap','_sheetTransformSelectionsService','4520720bQcUUs','fromCharCode','saveImage','_createSocket','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','rev','&to=','_transitionLocked','UniverCollaborationPlugin','__splitChunk__','snapshotServerUrl','_permissionService','?size=','onRemoteRej','registerHTTPInterceptor','IDLE','getResourcesRequest','_onConflict','HEARTBEAT_TIMEOUT','number','Disposable','addHandlerCallback','collabWebSocketUrl','entityInit$','encodeURIComponent','_disableEditing','ObjectPermissionService','JSONX','randomBytes','_getSendChangesetTimeout','online','actions','updateSnapshot','resolveWithBasePath','OfflineState','updateCursorEvent','reverse','sid','get','_instanceService','loadSheet','total','type','_snapshotServerService','_queuedRemoteChangesets','onlyLocal','defineProperty','_substituteUndoStack','entries','_transformRemoteChangesetByStateCache','loginUrlKey','unknown','state$','action','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','create','UPDATE_PERMISSION_OBJ','then','\x20to\x20','Board','EmptyMutationInfo','JOIN_ROOM_FULL','ICommandService','_commandService','ErrorCode','ws://127.0.0.1:8000/universer-api/comb/connect','CONFLICT_CACHE_CLEAR_FAILED','_initRequestHeader','isTransformMutationsWithChangesetSuccess','subUnitId','encrypt','session.room-full','_event$','mapDocumentTypeToUniverInstanceType','_onUserLeave','RevisionService','unitId','retryCount','subject','mutations','CollaborationStatus','DataLoaderService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','object','_telemetryService','UnitAction','3702348mHnrcf','PENDING','_getUndoStack','Rectangle','liveShareNewHost','add','ImageSourceType','_getAPIPrefixPath','ThresholdInterceptorFactory','_showConflictProcessingNotification','handshakeTimer','USERS_LEAVE','NO_OTHER_CLIENTS_EDITING','FileSource','fetch_missing','[CollaborationSession]','1gstNtL','_sendHeartbeat','_updateUnitPermissionPoint','/-/object/list','isArray','_sessionChannels','CommandType','enableOfflineEditing','_subscribeResendTimer','init','_collaborationPaused','_transformRemoteChangesetByIMECache','OBJECT_PERMISSION_CONFIG_KEY','_closedUnits','getInterceptPoints','connectionAttempt','b64DecodeUnicode','accept','maxSize','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/universer-api/file/{fileID}/sign-url','_hasSessionsForEndpoint','_updateLocalCache','_replaceFileID','FAIL','constructor','_commentService','CollaborationController','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','session','/-/object/-/batch_allowed','_incrementRevisionNumber','_startCollaboration','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','IAttachmentIoService','saveAttachment','session.room-not-exists','dispose$','transformUndoRedo','570VaLEeh','ILocalCacheService','Optional','_getUploadFileURL','getLatestCsReqIdBySid','_logService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','body','LEAVE','getUnit','putCollaborators','every','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','LOCAL_CACHE_INTERVAL_KEY','_resendSchedule','range','roomInfos','liveShareOperation','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','[DataLoaderService]','replace','version','requestParams','resourceIDs','message$','_resendTimeout','_transformAndApplyRemoteChangeset','_roomMembers','Failed\x20to\x20update\x20permission\x20point','_loadSnapshot','columnGroups','batchAllowed','file','originalMeta','values','DEFAULT_FILE_NAME','csAckEvent','joinRsp','authzUrl','RichTextEditingMutation','_redoStacks','changeset','getValue','isTransformChangesetsSuccess','commentUpdate$','put','c1Prime','Slide','_sessionStatus$','sequenceExecute','append','indexOf','loadBase','_scheduleCollaborationTimeoutTimer','_updateState','getSheetId','_localeService','[FetchMissState]','loadUnitOfRevision','concatBytes','LOCAL_CACHE_INTERVAL','SlideCollaborationEntity','post','_createHandler','_toggleOnline','save\x20fail\x20reason\x20is\x20','hasOwnProperty','_isEchoedAwaitingChangeset','ICollaborationClientAdapterService','CompressMutationService','upload','candidateSocket','_clearRedo','getActiveSheet','onMissingChangesets','_onCombEvent','offline','IConfigService','_univerInstanceService','\x0aAfter:\x20','/unit/','floor','_members$','UNIVER_SLIDE','_updateStatus','params','x-univer-host','UniverNetworkPlugin','max','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','COMPRESS_MUTATION_APPLY','getRoom','ReplaySubject','saveSheetBlock','_prepareTransformSelections','CollaborationUIEventId','[AwaitingWithPendingState]','withCredentials','transformSelections','close$','url','CollaborationSocketService','_init','_removeRoom','Quantity','attachment','transformMutationsWithChangeset','initWorkbookPermissionChange','[CollaborationState]:\x20apply\x20error!','complete','target','enableCollaboration','pluginName','getCfgEnableObjInherit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','toggleOnline','objectType','change$','[SyncedState]:\x20received\x20acknowledgement.','_undoStacks','size','copyFileMeta','readAsDataURL','RECV','_initCloseConn','hostname','uploadFileServerUrl','_lockTransition','onRemoteAck','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_transformSelections','Workbook','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_memberService','ITelemetryService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onRemoteChangeset','updateOfflineData','retryConnectingTimer','MentionType','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','getTypeOfUnitAdded$','getOwnPropertyDescriptor','touchDependencies','getCurrentSelections','toggleOffline','HEARTBEAT','BehaviorSubject','set','_entities','_scheduleCompleteTimestamp','_onConnectionFailed','newCsEvent','CHANGESET_SHOULD_RETRY','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','loadUnit','_changesetReqId','_initDependencies','_entityInit$','session.room-cnt-exceeds','DEFAULT_WS_SESSION_TICKET_URL','_state$','_cfgEnableObjInherit','_checkMissing','COLLABORATION_ENDPOINT_INVALID','/universer-api/authz','stringify','getUnitType','transformChangesets','code','CHANGESET_ACK','onRemoteRetry','snapshot','endsWith','CONFLICT','name','CollaborationAttachmentIoService','sendChangesetTimeout','collaboration-client.config','focused$','emitEvent','_unitLoaded$','{fileID}','_onConnectionOpen','SheetTransformSelectionsService','isCompositionEnd','ERROR_IMAGE','_toggleOffline','_sendingTimer','RETRY_CONNECTING_MAX_COUNT','confirm','addImageSourceCache','_socketService','_undoRedoService','/rev/','UNIVER_COLLABORATION_CLIENT_PLUGIN','push','_config','1.1.0','dispose','[CollaborationSessionService]:\x20socket\x20error','_onRemoteACK','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','/object','_onRecvEvent','_unlockTransition','_getCtorByUniverInstanceType','fetchMissingChangesets','FileId','_transformIMECache','IPermissionService','_getDownloadEndpointURL','parse','_startTelemetryCollaborationNewChangeset','_waitForHeartbeatResponse','_commentUpdate$','tables','slice','PERMISSION_DENIED','INetworkConditionService','Univer','getConfig','JOIN_ROOM_PERMISSION_DENIED','readyForCollab','createInstance','JOIN','_pendingMutations','_localCacheService','JOIN_ROOM_FAILED','LocaleService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','unitInfo$','_doCreateSocket','setShowComponents','_transformStateCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','uniscriptRunEvent','_upload','146562rUxadX','registerDependencies','shouldCloseConn','list','missingChangesets','LIVESHARE_NEW_HOST','3080355eklVmq','_state','takeUntil','packageName','resolve','_docStateChangeManagerService','Plugin','shareReplay','online$','_roomCreated$','_waitCount','[UniverCollaborationClientPlugin]','CHANGESET_REJ','interceptor','NEW_CHANGESETS','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','origin','listCollaborators','fromCollab','stopTime','Subject','_socket','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','pauseCollaboration','firstValueFrom','SessionStatus','BASE64','_acknowledgeAwaitingIfReady','CollaborationEntity','_onRemoteRejected','workbook','_initUnitPermissionChange','MUTATION','MemberService','univer-pro.collaboration-client.single-active-unit-service','csRejEvent','timeout','_handleRemoteChangesets','loadOfflineData','decorate','close','DisposableCollection','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','symbol','_sessions','_decreaseWaiting','PERMISSION_REJ','objectID','AuthzIoHttpService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','status$','updateMember','reconnect','LIVESHARE_TERMINATE','onMutationExecutedForCollab','requireSession','startsWith','@univerjs-pro/collaboration-client','AWAITING_WITH_PENDING','_getCurrentRevision','UPDATE_CURSOR','ONLINE','eventID','SheetPermissionInitController','supports','_collaborationUIEventService','Tools','_isPermissionRej','localUnitId','objectId','loadBoard','updateCollaborator','reduce','_socketMessageSubscription','univer-pro.collaboration-client-socket-service','_onRemoteChangeset','infoRsp','_isAckOfAwaitingChangeset','sheets','clearUnit','EnsureSlideMasterPageMutation','objectPermissionTypes','/universer-api/uniscript','cbc','_transformStack','_initMergeInterceptor','cmd','refreshPermission','pending','SYNCED','_clearRetryConnectingTimer','avatar','MergeInterceptorFactory','_getSocketChannel','_collabSessionService','toDisposable','collaboratorID','RxDisposable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','UNISCRIPT_RUN','_resolveSessionIdentity','incrementRevOfUnit','getAllMembers','_createInitialStateImpl','updatePermissionPoint','_getAPIPrefix','onLocalMutation','SnapshotServerOverHTTPService','reqId','onTransformRemoteChangesetByStateCache','debug','joinEvent','collabSubmitChangesetUrl','isPermissionRej','compose','InsertSheetMutation','open$','RemoveSlidePageMutation','href','leaveEvent','getAttachmentUrl','data','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_adapter','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_onFetchMissResult','listRoles','charCodeAt','title','HEARTBEAT_TIMEOUT_KEY','_onRemoteRetry','SetSelectionsOperation','session.join-failed','HTTPRequest','catch','_applyRemoteChangeset','onTransformIME','COMPRESS_MUTATION_SEND','/universer-api/snapshot/','endpointKey','fetchThroughInterceptors','UniverCollaborationClientPlugin','_transformService','SUBMIT_CHANGESET_TIMEOUT'];_0x6063=function(){return _0x4b802d;};return _0x6063();}ve=y([v(0x2,t[_0x47c516(0x4e0)]),v(0x3,t[_0x47c516(0x2ae)]),v(0x4,(0x0,t[_0x47c516(0x528)])(b)),v(0x5,(0x0,t[_0x47c516(0x528)])(ae)),v(0x6,(0x0,t[_0x47c516(0x528)])(_)),v(0x7,(0x0,t[_0x47c516(0x263)])(o[_0x47c516(0x2e7)]))],ve);const x=(0x0,t[_0x47c516(0x4a4)])('collaboration-client.local-cache-service');function ye(_0x308df2,_0x1e1d08){const _0x48f451=_0x47c516;return _0x1e1d08===''||_0x1e1d08==null?_0x48f451(0x45f)+_0x308df2:_0x48f451(0x45f)+_0x308df2+'-'+encodeURIComponent(_0x1e1d08);}function be(_0x2c4174){const _0x44da82=_0x47c516;let {unitID:_0xdf4b43,mutations:_0x3c1f8a}=_0x2c4174;return{'unitId':_0xdf4b43,'subUnitId':_0x3c1f8a[_0x44da82(0x476)]>0x0?_0x3c1f8a[0x0][_0x44da82(0x2b6)][_0x44da82(0x219)]:null};}let S=class{constructor(_0x1de769,_0x31908a,_0x102fbc){const _0x249d78=_0x47c516;this[_0x249d78(0x400)]=_0x1de769,this[_0x249d78(0x3e4)]=_0x31908a,this[_0x249d78(0x1fb)]=_0x102fbc;}['transformSelections'](_0xd451e5){const _0x443558=_0x47c516;var _0x3a4cbe,_0x4fb713;let _0x145ce6=this['_injector'][_0x443558(0x1fa)](r[_0x443558(0x4b6)]),{unitId:_0x8d453d,subUnitId:_0x3753a7}=be(_0xd451e5),_0x25d2f0=_0x145ce6==null?void 0x0:_0x145ce6[_0x443558(0x47c)](_0x8d453d)[_0x443558(0x2f1)](),_0x1d5cf7=(_0x3a4cbe=this[_0x443558(0x1fb)][_0x443558(0x26a)](_0x8d453d))==null||(_0x3a4cbe=_0x3a4cbe[_0x443558(0x2aa)]())==null?void 0x0:_0x3a4cbe[_0x443558(0x298)]();if(_0x25d2f0[_0x443558(0x476)]===0x0||!_0x8d453d||!_0x3753a7)return;let _0x4cba84=[{'id':r[_0x443558(0x3d9)]['id'],'params':{'unitId':_0x8d453d,'subUnitId':_0x1d5cf7,'selections':t[_0x443558(0x397)][_0x443558(0x47e)](_0x25d2f0)}}],_0x2bffde=this['_transformService']['transformMutationsWithChangeset'](_0xd451e5,_0x4cba84);if(!(0x0,e[_0x443558(0x218)])(_0x2bffde))throw _0x2bffde['error'];let _0x7a742e=(_0x4fb713=_0x2bffde[_0x443558(0x4f7)][0x0])==null||(_0x4fb713=_0x4fb713['params'])==null?void 0x0:_0x4fb713['selections'];if(Array[_0x443558(0x23e)](_0x7a742e)&&_0x7a742e[_0x443558(0x476)]){if(_0x7a742e[_0x443558(0x476)]===_0x4cba84[0x0][_0x443558(0x2b6)]['selections'][_0x443558(0x476)]&&_0x7a742e[_0x443558(0x26c)]((_0x5276ac,_0x114209)=>t[_0x443558(0x22d)][_0x443558(0x430)](_0x5276ac[_0x443558(0x270)],_0x4cba84[0x0][_0x443558(0x2b6)][_0x443558(0x4c0)][_0x114209][_0x443558(0x270)])))return;this['_injector'][_0x443558(0x1fa)](t[_0x443558(0x212)])[_0x443558(0x4a6)](r['SetSelectionsOperation']['id'],{'unitId':_0x8d453d,'subUnitId':_0x1d5cf7,'selections':_0x7a742e});}}};S=y([v(0x0,(0x0,t['Inject'])(t['Injector'])),v(0x1,e[_0x47c516(0x3f6)]),v(0x2,t[_0x47c516(0x493)])],S);const C=(0x0,t[_0x47c516(0x4a4)])(_0x47c516(0x377));let xe=function(_0x28e67f){const _0x30a8d9=_0x47c516;return _0x28e67f[_0x28e67f[_0x30a8d9(0x236)]=0x0]=_0x30a8d9(0x236),_0x28e67f[_0x28e67f[_0x30a8d9(0x4e3)]=0x1]=_0x30a8d9(0x4e3),_0x28e67f;}({});function Se(_0x2930b4){const _0x39969b=_0x47c516;var _0x1b41c6;return!!((_0x1b41c6=_0x2930b4[_0x39969b(0x2b6)])!=null&&_0x1b41c6[_0x39969b(0x537)]);}const Ce=new Set([r[_0x47c516(0x3c9)]['id']]),we=new Set([c['AddSlidePageMutation']['id'],c[_0x47c516(0x3a5)]['id'],c[_0x47c516(0x42d)]['id'],c[_0x47c516(0x3cb)]['id']]);function Te(_0x1e0089,_0x1ad1fd=Ce){const _0x28f75f=_0x47c516;let _0x50dc57=[];for(let _0x43719c of _0x1e0089){if(_0x1ad1fd[_0x28f75f(0x51d)](_0x43719c['id'])||Se(_0x43719c)){if(_0x50dc57['length']>0x0)break;_0x50dc57[_0x28f75f(0x325)](_0x43719c);break;}_0x50dc57[_0x28f75f(0x325)](_0x43719c);}return _0x50dc57;}function w(_0x1cf9c3,_0x32caa7,_0x220684,_0x2af43f,_0x16d7fc){const _0x22a95c=_0x47c516;let _0x1c7448=Te(_0x1cf9c3),_0x4f2c98=_0x16d7fc['getCurrentUser'](),_0x1e1fb9=(_0x4f2c98==null?void 0x0:_0x4f2c98[_0x22a95c(0x439)])??_0x22a95c(0x207),_0x369387=(_0x4f2c98==null?void 0x0:_0x4f2c98[_0x22a95c(0x46e)])??_0x22a95c(0x207);return{'changeset':{'unitID':_0x32caa7,'type':(0x0,e[_0x22a95c(0x21d)])(_0x220684['getUnitType'](_0x32caa7)),'baseRev':_0x2af43f[_0x22a95c(0x479)](_0x32caa7),'revision':0x0,'userID':_0x1e1fb9,'memberID':_0x369387,'mutations':_0x1c7448},'pendingMutations':_0x1cf9c3[_0x22a95c(0x33a)](_0x1c7448[_0x22a95c(0x476)])};}const Ee=w;function De(_0x3077d9,_0x25f4e8,_0x39c3de,_0x44d936,_0x1dcccf){const _0x4db887=_0x47c516;let _0x2986aa=Te(_0x3077d9,we),_0x24e502=_0x1dcccf[_0x4db887(0x3ee)](),_0x4015de=(_0x24e502==null?void 0x0:_0x24e502['userID'])??_0x4db887(0x207),_0x363d52=(_0x24e502==null?void 0x0:_0x24e502[_0x4db887(0x46e)])??'unknown';return{'changeset':{'unitID':_0x25f4e8,'type':(0x0,e[_0x4db887(0x21d)])(_0x39c3de[_0x4db887(0x308)](_0x25f4e8)),'baseRev':_0x44d936['getCurrentRevOfUnit'](_0x25f4e8),'revision':0x0,'userID':_0x4015de,'memberID':_0x363d52,'mutations':_0x2986aa},'pendingMutations':_0x3077d9[_0x4db887(0x33a)](_0x2986aa[_0x4db887(0x476)])};}function Oe(_0x178266,_0x328665,_0x33fdfc,_0x40f9f8,_0x375b8a){const _0x35dfb9=_0x47c516;let _0x4725ec=_0x178266[_0x35dfb9(0x39d)]((_0x326f21,_0x351b80)=>{const _0x8e2129=_0x35dfb9;let _0x4a7a18=_0x326f21[_0x326f21[_0x8e2129(0x476)]-0x1],{id:_0x3b19fa}=_0x4a7a18??{},{id:_0xa41935,type:_0x4685c0}=_0x351b80,_0x46e8c0=_0x351b80[_0x8e2129(0x2b6)];if(_0x3b19fa&&_0x3b19fa!==_0xa41935)throw Error(_0x8e2129(0x20a)+_0x3b19fa+'\x20-\x20'+_0xa41935+'.');if(!_0x4a7a18)return[{'id':_0xa41935,'type':_0x4685c0,'params':{'unitId':_0x46e8c0[_0x8e2129(0x220)],'textRanges':_0x46e8c0[_0x8e2129(0x516)],'actions':_0x46e8c0[_0x8e2129(0x1f3)]}}];let _0x542932=_0x4a7a18[_0x8e2129(0x2b6)];return ke(_0x542932,_0x46e8c0)?[..._0x326f21['slice'](0x0,-0x1),{..._0x4a7a18,'id':_0xa41935,'type':_0x4685c0,'params':{'unitId':_0x46e8c0[_0x8e2129(0x220)],'textRanges':_0x46e8c0[_0x8e2129(0x516)],'actions':t[_0x8e2129(0x1ef)][_0x8e2129(0x3c8)](_0x542932['actions'],_0x46e8c0[_0x8e2129(0x1f3)])}}]:[..._0x326f21,{'id':_0xa41935,'type':_0x4685c0,'params':{'unitId':_0x46e8c0[_0x8e2129(0x220)],'textRanges':_0x46e8c0[_0x8e2129(0x516)],'actions':_0x46e8c0[_0x8e2129(0x1f3)]}}];},[]),_0x3b5ef7=_0x375b8a[_0x35dfb9(0x3ee)](),_0x4cf4e5=(_0x3b5ef7==null?void 0x0:_0x3b5ef7[_0x35dfb9(0x439)])??'unknown',_0x4f53b0=(_0x3b5ef7==null?void 0x0:_0x3b5ef7[_0x35dfb9(0x46e)])??'unknown';return{'changeset':{'unitID':_0x328665,'type':(0x0,e[_0x35dfb9(0x21d)])(_0x33fdfc['getUnitType'](_0x328665)),'baseRev':_0x40f9f8[_0x35dfb9(0x479)](_0x328665),'revision':0x0,'userID':_0x4cf4e5,'memberID':_0x4f53b0,'mutations':_0x4725ec},'pendingMutations':_0x178266[_0x35dfb9(0x33a)](_0x178266['length'])};}function ke(_0x1f378f,_0x170866){const _0x800dd7=_0x47c516;return!Ae(_0x1f378f)&&!Ae(_0x170866)&&je(_0x1f378f[_0x800dd7(0x1f3)],_0x170866[_0x800dd7(0x1f3)]);}function Ae(_0x3a5fef){const _0x52fa3e=_0x47c516;return _0x3a5fef[_0x52fa3e(0x31a)]!==void 0x0;}function je(_0x5b9e88,_0x10cc02){return Me(_0x5b9e88)&&Me(_0x10cc02)&&!Pe(_0x5b9e88)&&!Pe(_0x10cc02)&&!Ne(_0x5b9e88)&&!Ne(_0x10cc02);}function Me(_0x49ed67){const _0x283bdb=_0x47c516;return Fe(_0x49ed67)[_0x283bdb(0x3e9)](_0x5a7370=>T(_0x5a7370)&&_0x5a7370['et']===_0x283bdb(0x43f));}function Ne(_0x3a383b){const _0x22c7d8=_0x47c516;return Fe(_0x3a383b)['some'](_0x13f99e=>Array[_0x22c7d8(0x23e)](_0x13f99e)||typeof _0x13f99e==_0x22c7d8(0x46a)||typeof _0x13f99e==_0x22c7d8(0x541));}function Pe(_0x408188){const _0x22297a=_0x47c516;return Fe(_0x408188)['some'](_0x19f632=>!T(_0x19f632)||_0x19f632['et']!=='text-x'||!Array[_0x22297a(0x23e)](_0x19f632['e'])?!0x1:_0x19f632['e'][_0x22297a(0x3e9)](_0x3d225d=>!T(_0x3d225d)||!T(_0x3d225d[_0x22297a(0x268)])?!0x1:Object['prototype'][_0x22297a(0x2a3)][_0x22297a(0x4cf)](_0x3d225d[_0x22297a(0x268)],_0x22297a(0x339))||Object[_0x22297a(0x521)][_0x22297a(0x2a3)][_0x22297a(0x4cf)](_0x3d225d[_0x22297a(0x268)],_0x22297a(0x27f))||Object[_0x22297a(0x521)][_0x22297a(0x2a3)][_0x22297a(0x4cf)](_0x3d225d[_0x22297a(0x268)],'blockRanges')));}function Fe(_0x362999){const _0x14ae4c=_0x47c516;if(!Array[_0x14ae4c(0x23e)](_0x362999))return[];let _0x4de7bd=_0x362999[_0x14ae4c(0x482)](_0x14ae4c(0x268))?_0x362999:_0x362999[_0x14ae4c(0x3f8)](_0x111a44=>Array[_0x14ae4c(0x23e)](_0x111a44)&&_0x111a44[_0x14ae4c(0x482)](_0x14ae4c(0x268)));if(!Array[_0x14ae4c(0x23e)](_0x4de7bd))return[];let _0x18aeb3=_0x4de7bd[_0x14ae4c(0x294)](_0x14ae4c(0x268));return _0x18aeb3===-0x1?[]:_0x4de7bd[_0x14ae4c(0x33a)](_0x18aeb3+0x1);}function T(_0x2d3501){const _0x46b585=_0x47c516;return typeof _0x2d3501==_0x46b585(0x227)&&!!_0x2d3501&&!Array[_0x46b585(0x23e)](_0x2d3501);}function Ie(_0x368deb,_0x38a1b1){const _0x3fe3a9=_0x47c516;let _0x9a2bb8=new i[(_0x3fe3a9(0x2bd))](0x1);return setTimeout(()=>_0x9a2bb8['next'](_0x38a1b1),_0x368deb),_0x9a2bb8[_0x3fe3a9(0x404)]()[_0x3fe3a9(0x3e8)]((0x0,i[_0x3fe3a9(0x4e8)])(0x1));}var Le,Re,ze;let Be=function(_0x33fe8d){const _0x74c6dc=_0x47c516;return _0x33fe8d['NOT_COLLAB']=_0x74c6dc(0x4e2),_0x33fe8d[_0x74c6dc(0x3ae)]='synced',_0x33fe8d[_0x74c6dc(0x22b)]='pending',_0x33fe8d[_0x74c6dc(0x4d4)]=_0x74c6dc(0x3fa),_0x33fe8d[_0x74c6dc(0x38f)]=_0x74c6dc(0x50d),_0x33fe8d['FETCH_MISS']=_0x74c6dc(0x238),_0x33fe8d[_0x74c6dc(0x30f)]=_0x74c6dc(0x4d2),_0x33fe8d[_0x74c6dc(0x514)]='offline',_0x33fe8d;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x5c76f7,_0x15a372,_0x1ef5b5,_0x26afd0,_0x1a35d3,_0x71871e,_0x1b2de2,_0x5ed80c,_0x43953f){const _0x38a0d0=_0x47c516;this[_0x38a0d0(0x4e9)]=_0x5c76f7,this[_0x38a0d0(0x1fe)]=_0x15a372,this[_0x38a0d0(0x3eb)]=_0x1a35d3,this[_0x38a0d0(0x213)]=_0x71871e,this[_0x38a0d0(0x322)]=_0x1b2de2,this[_0x38a0d0(0x4e4)]=_0x5ed80c,this['_localCacheService']=_0x43953f,g(this,'_awaitingChangeset',null),g(this,_0x38a0d0(0x343),[]),this[_0x38a0d0(0x496)]=_0x1ef5b5,this['_pendingMutations']=_0x26afd0;}[_0x47c516(0x304)](_0x5b529b){const _0x599a94=_0x47c516;let _0x514fb5=this[_0x599a94(0x4e4)][_0x599a94(0x479)](this[_0x599a94(0x4e9)]);return _0x5b529b[_0x599a94(0x520)]>_0x514fb5+0x1&&(this[_0x599a94(0x3eb)][_0x599a94(0x2ab)]({'from':_0x514fb5,'to':_0x5b529b[_0x599a94(0x520)]-0x1}),!0x0);}['_transformUndoredo'](_0x92bdb6){const _0x516b89=_0x47c516;this[_0x516b89(0x322)][_0x516b89(0x260)](this[_0x516b89(0x4e9)],_0x92bdb6);}[_0x47c516(0x2e3)](_0x1fbf66){const _0xfeb4a7=_0x47c516;var _0x334fb9,_0x404337;(_0x334fb9=(_0x404337=this[_0xfeb4a7(0x3eb)])['onTransformSelections'])==null||_0x334fb9[_0xfeb4a7(0x4cf)](_0x404337,_0x1fbf66);}[_0x47c516(0x2bf)](_0x3facf6){const _0x369769=_0x47c516;var _0x4d49d9,_0x3a65ff;return((_0x4d49d9=(_0x3a65ff=this[_0x369769(0x3eb)])[_0x369769(0x4ec)])==null?void 0x0:_0x4d49d9[_0x369769(0x4cf)](_0x3a65ff,_0x3facf6))??null;}[_0x47c516(0x332)](_0x3911d2){const _0x15a781=_0x47c516;var _0xb38569,_0x1274c4;return(_0xb38569=(_0x1274c4=this[_0x15a781(0x3eb)])[_0x15a781(0x3de)])==null?void 0x0:_0xb38569[_0x15a781(0x4cf)](_0x1274c4,_0x3911d2);}[_0x47c516(0x34b)](_0x408352){const _0x5cc7fd=_0x47c516;var _0x4945dd,_0x4ef912;return(_0x4945dd=(_0x4ef912=this[_0x5cc7fd(0x3eb)])[_0x5cc7fd(0x4e1)])==null?void 0x0:_0x4945dd[_0x5cc7fd(0x4cf)](_0x4ef912,_0x408352);}[_0x47c516(0x245)](_0x4d95f5){const _0xc8795e=_0x47c516;var _0x384910,_0x309282;return((_0x384910=(_0x309282=this[_0xc8795e(0x3eb)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x384910[_0xc8795e(0x4cf)](_0x309282,_0x4d95f5))??_0x4d95f5;}['_transformRemoteChangesetByStateCache'](_0x40242a){const _0x2a1ba8=_0x47c516;var _0x2ceae3,_0x4d49db;return((_0x2ceae3=(_0x4d49db=this[_0x2a1ba8(0x3eb)])[_0x2a1ba8(0x3c3)])==null?void 0x0:_0x2ceae3[_0x2a1ba8(0x4cf)](_0x4d49db,_0x40242a))??_0x40242a;}['_syncEditingCollabCursor'](_0x4932eb){const _0x56c269=_0x47c516;if(this['type']===t[_0x56c269(0x4f3)][_0x56c269(0x48e)]){let {unitID:_0x5520e7,mutations:_0x1ed4ba,memberID:_0x2b1742}=_0x4932eb,_0x2ec751=_0x1ed4ba[_0x56c269(0x476)]>0x0?_0x1ed4ba[0x0]['params'][_0x56c269(0x516)]:[];if(Array[_0x56c269(0x23e)](_0x2ec751)&&_0x2ec751[_0x56c269(0x476)]>0x0){var _0x54a4a4,_0x4fc608;(_0x54a4a4=(_0x4fc608=this[_0x56c269(0x3eb)])[_0x56c269(0x490)])==null||_0x54a4a4[_0x56c269(0x4cf)](_0x4fc608,{'unitID':_0x5520e7,'memberID':_0x2b1742,'textRanges':_0x2ec751});}}}[_0x47c516(0x250)](){const _0x2a6470=_0x47c516;var _0x4a3ef0;(_0x4a3ef0=this[_0x2a6470(0x344)])==null||_0x4a3ef0[_0x2a6470(0x2ea)](this[_0x2a6470(0x4e9)],this[_0x2a6470(0x1fe)],this['_awaitingChangeset'],this[_0x2a6470(0x343)]);}['_getCurrentRevision'](){const _0x2adf45=_0x47c516;return this[_0x2adf45(0x4e4)][_0x2adf45(0x479)](this[_0x2adf45(0x4e9)]);}[_0x47c516(0x50b)](_0x32c2c4){const _0x3e846c=_0x47c516;return _0x32c2c4[_0x3e846c(0x520)]<=this[_0x3e846c(0x390)]();}[_0x47c516(0x2a4)](_0x766827){const _0x3c05b5=_0x47c516;let _0x86cfa3=this[_0x3c05b5(0x496)];return!_0x86cfa3||!_0x86cfa3[_0x3c05b5(0x1f9)]||_0x86cfa3[_0x3c05b5(0x3c2)]===null||_0x86cfa3[_0x3c05b5(0x3c2)]===void 0x0?!0x1:_0x766827[_0x3c05b5(0x4e9)]===_0x86cfa3[_0x3c05b5(0x4e9)]&&_0x766827[_0x3c05b5(0x1f9)]===_0x86cfa3['sid']&&_0x766827[_0x3c05b5(0x3c2)]===_0x86cfa3[_0x3c05b5(0x3c2)];}[_0x47c516(0x3a2)](_0x54e120){const _0x5c5643=_0x47c516;let _0x296da2=this[_0x5c5643(0x496)];return!(_0x296da2!=null&&_0x296da2['sid'])||_0x296da2['reqId']==null||!_0x54e120[_0x5c5643(0x1f9)]||_0x54e120['reqId']==null?!0x1:_0x54e120['sid']===_0x296da2['sid']&&_0x54e120[_0x5c5643(0x3c2)]===_0x296da2[_0x5c5643(0x3c2)];}['_incrementRevisionNumber'](){const _0x27544b=_0x47c516;this[_0x27544b(0x4e4)][_0x27544b(0x3bb)](this[_0x27544b(0x4e9)]);}['_executeRemoteChangeset'](_0x2d4c3b){const _0x328b61=_0x47c516;let _0x52275f=this[_0x328b61(0x245)](_0x2d4c3b);_0x52275f=this[_0x328b61(0x205)](_0x52275f);let _0x329f15=this[_0x328b61(0x2bf)](_0x52275f),_0x545360=(0x0,t[_0x328b61(0x292)])(_0x52275f[_0x328b61(0x223)],this['_commandService'],{'fromCollab':!0x0});if(!_0x545360['result'])throw _0x329f15==null||_0x329f15['rollback'](),_0x545360[_0x328b61(0x492)]instanceof Error?_0x545360[_0x328b61(0x492)]:Error(_0x545360['error']??_0x328b61(0x2cd));_0x329f15==null||_0x329f15['commit'](),this[_0x328b61(0x332)](_0x52275f),this[_0x328b61(0x34b)](_0x52275f),this['_transformUndoredo'](_0x2d4c3b),this[_0x328b61(0x2e3)](_0x52275f),this['_syncEditingCollabCursor'](_0x52275f),this['_incrementRevisionNumber']();}};let D=class extends E{constructor(_0x6e8898,_0x15a6ae,_0x30963b,_0x15b0a4,_0x318077,_0x530950,_0x49b18d,_0x58c19c,_0x27d2dc,_0x5c5ffb){const _0x1d1d26=_0x47c516;super(_0x6e8898,_0x15a6ae,null,[],_0x30963b,_0x49b18d,_0x530950,_0x15b0a4,_0x5c5ffb),this[_0x1d1d26(0x400)]=_0x318077,this[_0x1d1d26(0x266)]=_0x58c19c,this[_0x1d1d26(0x3e4)]=_0x27d2dc,this[_0x1d1d26(0x4ba)]=_0x5c5ffb,g(this,'status','synced');}[_0x47c516(0x460)](_0x3dd408){const _0x3e47ff=_0x47c516;let _0xa6b0d9=this[_0x3e47ff(0x400)]['createInstance'](O,this[_0x3e47ff(0x4e9)],this['type'],[_0x3dd408],this[_0x3e47ff(0x3eb)]);return _0xa6b0d9['_schedule'](),_0xa6b0d9['_updateLocalCache'](),_0xa6b0d9;}[_0x47c516(0x2e9)](_0x4a3206){const _0x517983=_0x47c516;if(this['_isAppliedRevision'](_0x4a3206))return this;if(this[_0x517983(0x304)](_0x4a3206))return this[_0x517983(0x400)][_0x517983(0x341)](N,this[_0x517983(0x4e9)],this[_0x517983(0x1fe)],null,[],null,[_0x4a3206],this[_0x517983(0x3eb)],void 0x0);try{let _0x22102e=this[_0x517983(0x3e4)][_0x517983(0x2cb)](_0x4a3206,[e[_0x517983(0x210)]]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x22102e)){let {c1Prime:_0x3fc64b}=_0x22102e;return this[_0x517983(0x46c)](_0x3fc64b),this;}throw _0x22102e[_0x517983(0x492)];}catch(_0x2c0483){return this[_0x517983(0x266)][_0x517983(0x492)](_0x2c0483),this[_0x517983(0x53f)](!0x1);}}[_0x47c516(0x53f)](_0xbf75ed){const _0x195918=_0x47c516;return this[_0x195918(0x400)]['createInstance'](j,this[_0x195918(0x4e9)],this['type'],null,[],this[_0x195918(0x3eb)],_0xbf75ed);}[_0x47c516(0x2e1)](_0x3d2261){const _0x69ba05=_0x47c516;if(_0x3d2261[_0x69ba05(0x520)]<=this[_0x69ba05(0x390)]())return this;throw Error(_0x69ba05(0x2d7));}['onRemoteRej'](){const _0x3f1186=_0x47c516;throw Error(_0x3f1186(0x435));}['onRemoteRetry'](){return this;}[_0x47c516(0x2f2)](){const _0x3c0fae=_0x47c516;return this[_0x3c0fae(0x400)]['createInstance'](M,this['unitID'],this[_0x3c0fae(0x1fe)],null,[],this[_0x3c0fae(0x3eb)]);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x42e)](){const _0x361f80=_0x47c516;throw Error(_0x361f80(0x3d0));}[_0x47c516(0x52a)](){const _0x227ab5=_0x47c516;let _0x52c234=this[_0x227ab5(0x4e4)][_0x227ab5(0x479)](this[_0x227ab5(0x4e9)]);return this[_0x227ab5(0x3eb)][_0x227ab5(0x2ab)]({'from':_0x52c234,'to':0x0}),this[_0x227ab5(0x400)][_0x227ab5(0x341)](N,this[_0x227ab5(0x4e9)],this['type'],null,[],null,[],this['_handler'],void 0x0);}};D=y([v(0x3,(0x0,t['Inject'])(e['RevisionService'])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x47c516(0x212)]),v(0x7,t[_0x47c516(0x4e0)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t['Optional'])(x))],D);let O=Le=class extends E{constructor(_0x4abf50,_0x3fa849,_0x5c1536,_0x4802fb,_0x26d9f5,_0x4dc70f,_0x16bc32,_0x403759,_0x1b8fe3,_0x1c3df2,_0x471599,_0x406bac,_0x34652a,_0x219f8b){const _0x5e887f=_0x47c516;super(_0x4abf50,_0x3fa849,null,_0x5c1536,_0x4802fb,_0x1b8fe3,_0x34652a,_0x4dc70f,_0x219f8b),this[_0x5e887f(0x400)]=_0x26d9f5,this[_0x5e887f(0x4fd)]=_0x16bc32,this[_0x5e887f(0x266)]=_0x403759,this[_0x5e887f(0x469)]=_0x1c3df2,this[_0x5e887f(0x3e4)]=_0x471599,this[_0x5e887f(0x2af)]=_0x406bac,g(this,'status',_0x5e887f(0x3ad)),g(this,_0x5e887f(0x2f7),null),g(this,_0x5e887f(0x31d),null);}[_0x47c516(0x460)](_0x19b6d){const _0x525fbe=_0x47c516;return this[_0x525fbe(0x343)][_0x525fbe(0x325)](_0x19b6d),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x20d0c2){const _0x1064da=_0x47c516;if(this[_0x1064da(0x50b)](_0x20d0c2))return this;if(this['_checkMissing'](_0x20d0c2))return this['_clearScheduledTask'](),this[_0x1064da(0x400)][_0x1064da(0x341)](N,this['unitID'],this[_0x1064da(0x1fe)],null,this[_0x1064da(0x343)],null,[_0x20d0c2],this[_0x1064da(0x3eb)],void 0x0);try{let _0x3b86bc=this[_0x1064da(0x3e4)][_0x1064da(0x2cb)](_0x20d0c2,this['_pendingMutations']);if((0x0,e[_0x1064da(0x218)])(_0x3b86bc)){let {c1Prime:_0x50e723,m2Prime:_0x447549}=_0x3b86bc;this[_0x1064da(0x46c)](_0x50e723);let _0x2e2854=this[_0x1064da(0x400)]['createInstance'](Le,this[_0x1064da(0x4e9)],this[_0x1064da(0x1fe)],_0x447549,this['_handler']);this[_0x1064da(0x504)]();let _0x4d2d5b=new Date()[_0x1064da(0x468)](),_0x4f47cd=this[_0x1064da(0x2f7)]?Math[_0x1064da(0x2b9)](this[_0x1064da(0x2f7)]-_0x4d2d5b,0x0):this[_0x1064da(0x1f1)]();return _0x2e2854[_0x1064da(0x3ed)](_0x4f47cd),_0x2e2854;}throw _0x3b86bc[_0x1064da(0x492)];}catch(_0x5aef27){return this[_0x1064da(0x266)]['error'](_0x5aef27),this['_onConflict'](!0x1);}}[_0x47c516(0x2e1)](_0x17c595){const _0x57c13a=_0x47c516;if(_0x17c595['revision']<=this[_0x57c13a(0x390)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x47c516(0x53b)](){const _0x9be495=_0x47c516;throw Error(_0x9be495(0x506));}[_0x47c516(0x30c)](){return this;}[_0x47c516(0x2f2)](){const _0x2289ea=_0x47c516;return this[_0x2289ea(0x504)](),this['_injector'][_0x2289ea(0x341)](M,this[_0x2289ea(0x4e9)],this['type'],null,this[_0x2289ea(0x343)],this[_0x2289ea(0x3eb)]);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x3ed)](_0x58e474){const _0x5642e5=_0x47c516;let _0x27c3bd=_0x58e474??this['_getSendChangesetTimeout']();this[_0x5642e5(0x2f7)]=new Date()[_0x5642e5(0x468)]()+_0x27c3bd,this[_0x5642e5(0x31d)]=setTimeout(()=>{const _0x4869cb=_0x5642e5;this[_0x4869cb(0x504)]();let _0x54635e=null;switch(this[_0x4869cb(0x1fe)]){case t[_0x4869cb(0x4f3)][_0x4869cb(0x4ab)]:_0x54635e=w(this[_0x4869cb(0x343)],this['unitID'],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t[_0x4869cb(0x4f3)][_0x4869cb(0x48e)]:_0x54635e=this['_pendingMutations'][_0x4869cb(0x26c)](_0x9fa69d=>_0x9fa69d['id']===n['RichTextEditingMutation']['id'])?Oe(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this['_univerInstanceService'],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]):w(this[_0x4869cb(0x343)],this['unitID'],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t['UniverInstanceType'][_0x4869cb(0x2b4)]:_0x54635e=De(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this['_univerInstanceService'],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t[_0x4869cb(0x4f3)][_0x4869cb(0x4a7)]:_0x54635e=Ee(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this[_0x4869cb(0x4fd)]);break;case t[_0x4869cb(0x4f3)][_0x4869cb(0x48f)]:_0x54635e=w(this['_pendingMutations'],this['unitID'],this[_0x4869cb(0x2af)],this[_0x4869cb(0x4e4)],this['_userManagerService']);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x54635e=w(this[_0x4869cb(0x343)],this[_0x4869cb(0x4e9)],this[_0x4869cb(0x2af)],this['_revisionService'],this[_0x4869cb(0x4fd)]);break;default:throw Error(_0x4869cb(0x24d)+this['type']+_0x4869cb(0x448));}let {changeset:_0x3d410d,pendingMutations:_0x121818}=_0x54635e;this['_handler'][_0x4869cb(0x4c4)](_0x3d410d);let _0x224379=_0x121818[_0x4869cb(0x476)]?this[_0x4869cb(0x400)]['createInstance'](A,this[_0x4869cb(0x4e9)],this[_0x4869cb(0x1fe)],_0x3d410d,_0x121818,this[_0x4869cb(0x3eb)],void 0x0):this[_0x4869cb(0x400)][_0x4869cb(0x341)](k,this[_0x4869cb(0x4e9)],this[_0x4869cb(0x1fe)],_0x3d410d,this['_handler'],void 0x0);_0x224379[_0x4869cb(0x250)](),this[_0x4869cb(0x3eb)]['onStateChange'](this,_0x224379);},_0x27c3bd);}[_0x47c516(0x1f1)](){const _0x7677e2=_0x47c516;let _0x22d602=this[_0x7677e2(0x469)]['getConfig'](m);return(_0x22d602==null?void 0x0:_0x22d602[_0x7677e2(0x312)])??0x7d0;}['resend'](){const _0x8c6a5c=_0x47c516;throw Error(_0x8c6a5c(0x34c));}[_0x47c516(0x504)](){const _0x7ef2de=_0x47c516;this[_0x7ef2de(0x31d)]!=null&&(clearTimeout(this[_0x7ef2de(0x31d)]),this[_0x7ef2de(0x31d)]=null);}[_0x47c516(0x53f)](_0x2094fb){const _0x5edadf=_0x47c516;return this[_0x5edadf(0x504)](),this['_injector']['createInstance'](j,this[_0x5edadf(0x4e9)],this[_0x5edadf(0x1fe)],null,this[_0x5edadf(0x343)],this['_handler'],_0x2094fb);}};O=Le=y([v(0x4,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x5,(0x0,t['Inject'])(e[_0x47c516(0x21f)])),v(0x6,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x4d8)])),v(0x7,t[_0x47c516(0x4e0)]),v(0x8,t['ICommandService']),v(0x9,t[_0x47c516(0x2ae)]),v(0xa,e[_0x47c516(0x3f6)]),v(0xb,t[_0x47c516(0x493)]),v(0xc,t[_0x47c516(0x526)]),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],O);let k=Re=class extends E{constructor(_0x4b11c4,_0x45719e,_0x1b9cf1,_0x4642c8,_0x358e38,_0x2cfc8e,_0x109f06,_0x17d06f,_0x53026a,_0x2db839,_0x1eb1ee,_0x2fa88b){const _0x362826=_0x47c516;super(_0x4b11c4,_0x45719e,_0x1b9cf1,[],_0x4642c8,_0x17d06f,_0x1eb1ee,_0x109f06,_0x2fa88b),this[_0x362826(0x400)]=_0x2cfc8e,this[_0x362826(0x266)]=_0x53026a,this[_0x362826(0x3e4)]=_0x2db839,g(this,_0x362826(0x4f5),_0x362826(0x3fa)),g(this,_0x362826(0x27a),0x0),g(this,_0x362826(0x43b),0x0),g(this,'_resendTimer',void 0x0),g(this,_0x362826(0x4d0),void 0x0),_0x358e38&&(this['_resendTimeout']=_0x358e38[_0x362826(0x379)],this[_0x362826(0x43b)]=_0x358e38['total'],this['_subscribeResendTimer'](_0x358e38[_0x362826(0x4a2)]));}[_0x47c516(0x460)](_0x4441b1){const _0xec1562=_0x47c516;this[_0xec1562(0x504)]();let _0x2b2fca=this[_0xec1562(0x400)][_0xec1562(0x341)](A,this['unitID'],this[_0xec1562(0x1fe)],this[_0xec1562(0x496)],[_0x4441b1],this[_0xec1562(0x3eb)],this[_0xec1562(0x26f)]());return _0x2b2fca[_0xec1562(0x250)](),_0x2b2fca;}[_0x47c516(0x2e9)](_0x1e7b5c){const _0x4be7ca=_0x47c516;if(this[_0x4be7ca(0x2a4)](_0x1e7b5c))return this[_0x4be7ca(0x2e1)](_0x1e7b5c);if(this[_0x4be7ca(0x50b)](_0x1e7b5c))return this;if(this[_0x4be7ca(0x304)](_0x1e7b5c))return this[_0x4be7ca(0x504)](),this[_0x4be7ca(0x400)][_0x4be7ca(0x341)](N,this[_0x4be7ca(0x4e9)],this[_0x4be7ca(0x1fe)],this[_0x4be7ca(0x496)],[],null,[_0x1e7b5c],this[_0x4be7ca(0x3eb)],this[_0x4be7ca(0x26f)]());try{let _0x341854=this['_transformService'][_0x4be7ca(0x309)]([_0x1e7b5c],[this[_0x4be7ca(0x496)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x341854)){let {c1Prime:_0x45d921,c2Prime:_0x235dd4}=_0x341854;this[_0x4be7ca(0x46c)](_0x45d921[0x0]),_0x235dd4[0x0]['baseRev']=this[_0x4be7ca(0x390)](),this[_0x4be7ca(0x504)]();let _0x307b33=this[_0x4be7ca(0x400)][_0x4be7ca(0x341)](Re,this[_0x4be7ca(0x4e9)],this[_0x4be7ca(0x1fe)],_0x235dd4[0x0],this['_handler'],this[_0x4be7ca(0x26f)]());return _0x307b33[_0x4be7ca(0x250)](),_0x307b33;}throw _0x341854[_0x4be7ca(0x492)];}catch(_0x5df29b){return this[_0x4be7ca(0x266)][_0x4be7ca(0x492)](_0x5df29b),this[_0x4be7ca(0x53f)](!0x1);}}[_0x47c516(0x2e1)](_0x4d182f){const _0x51f319=_0x47c516;let _0x420824=this[_0x51f319(0x4e4)][_0x51f319(0x479)](this[_0x51f319(0x4e9)]);if(_0x4d182f['revision']<=_0x420824){if(this[_0x51f319(0x3a2)](_0x4d182f)){this[_0x51f319(0x504)]();let _0x1cdede=this[_0x51f319(0x400)][_0x51f319(0x341)](D,this[_0x51f319(0x4e9)],this[_0x51f319(0x1fe)],this[_0x51f319(0x3eb)]);return _0x1cdede[_0x51f319(0x250)](),_0x1cdede;}return this[_0x51f319(0x266)][_0x51f319(0x3c4)]('[AwaitingState]',_0x51f319(0x495)+_0x4d182f[_0x51f319(0x520)]+_0x51f319(0x4f1)+_0x420824+'.'),this;}if(this[_0x51f319(0x504)](),this['_checkMissing'](_0x4d182f))return this[_0x51f319(0x400)][_0x51f319(0x341)](N,this['unitID'],this['type'],this[_0x51f319(0x496)],[],_0x4d182f[_0x51f319(0x520)],[],this[_0x51f319(0x3eb)],void 0x0);this[_0x51f319(0x259)]();let _0x48f2f2=this[_0x51f319(0x400)]['createInstance'](D,this[_0x51f319(0x4e9)],this[_0x51f319(0x1fe)],this[_0x51f319(0x3eb)]);return _0x48f2f2['_updateLocalCache'](),_0x48f2f2;}['onRemoteRej'](_0x355e66){const _0x340681=_0x47c516;return this[_0x340681(0x53f)](!!(_0x355e66!=null&&_0x355e66['isPermissionRej']));}[_0x47c516(0x30c)](_0x2fee08){const _0x32aa73=_0x47c516;var _0x3c9a98;return _0x2fee08[_0x32aa73(0x3c2)]===((_0x3c9a98=this['_awaitingChangeset'])==null?void 0x0:_0x3c9a98[_0x32aa73(0x3c2)])?this[_0x32aa73(0x43b)]>He?this['toggleOffline']():(this[_0x32aa73(0x242)](Ie(this[_0x32aa73(0x27a)],{'reqId':_0x2fee08[_0x32aa73(0x3c2)]})),this):this;}['toggleOffline'](){const _0x49937c=_0x47c516;return this[_0x49937c(0x504)](),this[_0x49937c(0x400)]['createInstance'](M,this['unitID'],this[_0x49937c(0x1fe)],this[_0x49937c(0x496)],[],this['_handler']);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x42e)](){const _0x5cc0f5=_0x47c516;this[_0x5cc0f5(0x3eb)][_0x5cc0f5(0x4c4)](this['_awaitingChangeset']);}[_0x47c516(0x53f)](_0x3668be){const _0x2206fd=_0x47c516;return this['_clearScheduledTask'](),this[_0x2206fd(0x400)][_0x2206fd(0x341)](j,this[_0x2206fd(0x4e9)],this['type'],this[_0x2206fd(0x496)],[],this[_0x2206fd(0x3eb)],_0x3668be);}[_0x47c516(0x242)](_0x5a22d1){const _0x5f5b2d=_0x47c516;var _0x2f3d23;(_0x2f3d23=this[_0x5f5b2d(0x4d0)])==null||_0x2f3d23[_0x5f5b2d(0x44d)](),this[_0x5f5b2d(0x498)]=_0x5a22d1,this[_0x5f5b2d(0x4d0)]=_0x5a22d1==null?void 0x0:_0x5a22d1[_0x5f5b2d(0x51a)](({reqId:_0x164d85})=>this[_0x5f5b2d(0x40b)](_0x164d85));}[_0x47c516(0x40b)](_0x357311){const _0x324e51=_0x47c516;var _0x54c005;_0x357311===((_0x54c005=this[_0x324e51(0x496)])==null?void 0x0:_0x54c005[_0x324e51(0x3c2)])&&(this[_0x324e51(0x498)]=void 0x0,this[_0x324e51(0x42e)](),this[_0x324e51(0x27a)]=this['_resendTimeout']===0x0?0x3e8:Math[_0x324e51(0x497)](this['_resendTimeout']*0x2,Ve),this[_0x324e51(0x43b)]+=this[_0x324e51(0x27a)]);}[_0x47c516(0x26f)](){const _0x3306c6=_0x47c516;return{'timer':this[_0x3306c6(0x498)],'timeout':this['_resendTimeout'],'total':this[_0x3306c6(0x43b)]};}[_0x47c516(0x504)](){const _0x66dc38=_0x47c516;var _0x4a0ccb;(_0x4a0ccb=this['_sender'])==null||_0x4a0ccb[_0x66dc38(0x44d)]();}};k=Re=y([v(0x5,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,t[_0x47c516(0x212)]),v(0x8,t[_0x47c516(0x4e0)]),v(0x9,e['ITransformService']),v(0xa,t['IUndoRedoService']),v(0xb,(0x0,t[_0x47c516(0x263)])(x))],k);let A=ze=class extends E{constructor(_0x109189,_0x1ab65e,_0x4532a6,_0x32aa1f,_0x2bdca5,_0xcd5d8,_0x434865,_0x18c6d8,_0x563569,_0x5a1bfd,_0x2384f7,_0x1a6570,_0x5f3713){const _0x529b40=_0x47c516;super(_0x109189,_0x1ab65e,_0x4532a6,_0x32aa1f,_0x2bdca5,_0x563569,_0x1a6570,_0x18c6d8,_0x5f3713),this[_0x529b40(0x400)]=_0x434865,this[_0x529b40(0x266)]=_0x5a1bfd,this[_0x529b40(0x3e4)]=_0x2384f7,this[_0x529b40(0x4ba)]=_0x5f3713,g(this,_0x529b40(0x4f5),_0x529b40(0x50d)),g(this,'_resendTimeout',0x0),g(this,_0x529b40(0x43b),0x0),g(this,_0x529b40(0x498),void 0x0),g(this,'_sender',void 0x0),_0xcd5d8&&(this[_0x529b40(0x27a)]=_0xcd5d8[_0x529b40(0x379)],this[_0x529b40(0x43b)]=_0xcd5d8['total'],this[_0x529b40(0x242)](_0xcd5d8['timer']));}['appendMutation'](_0x15b87b){const _0xc8656c=_0x47c516;return this[_0xc8656c(0x343)][_0xc8656c(0x325)](_0x15b87b),this;}['onRemoteChangeset'](_0x4632e6){const _0x41b46a=_0x47c516;if(this['_isEchoedAwaitingChangeset'](_0x4632e6))return this[_0x41b46a(0x2e1)](_0x4632e6);if(this[_0x41b46a(0x50b)](_0x4632e6))return this;if(this['_checkMissing'](_0x4632e6))return this['_clearScheduledTask'](),this[_0x41b46a(0x400)]['createInstance'](N,this[_0x41b46a(0x4e9)],this[_0x41b46a(0x1fe)],this[_0x41b46a(0x496)],this['_pendingMutations'],null,[_0x4632e6],this[_0x41b46a(0x3eb)],this[_0x41b46a(0x26f)]());try{let _0x25c412=this['_transformService'][_0x41b46a(0x309)]([_0x4632e6],[this[_0x41b46a(0x496)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x25c412)){let {c1Prime:_0x332c4c,c2Prime:_0x8d44ea}=_0x25c412,_0x40b0f6=this['_transformService'][_0x41b46a(0x2cb)](_0x332c4c[0x0],this[_0x41b46a(0x343)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x40b0f6)){let {c1Prime:_0x1423eb,m2Prime:_0x45ad94}=_0x40b0f6;return this[_0x41b46a(0x46c)](_0x1423eb),_0x8d44ea[0x0][_0x41b46a(0x4f9)]=this[_0x41b46a(0x390)](),this[_0x41b46a(0x504)](),this[_0x41b46a(0x400)][_0x41b46a(0x341)](ze,this[_0x41b46a(0x4e9)],this[_0x41b46a(0x1fe)],_0x8d44ea[0x0],_0x45ad94,this[_0x41b46a(0x3eb)],this[_0x41b46a(0x26f)]());}throw _0x40b0f6[_0x41b46a(0x492)];}throw _0x25c412[_0x41b46a(0x492)];}catch(_0x33829d){return this[_0x41b46a(0x266)][_0x41b46a(0x492)](_0x33829d),this[_0x41b46a(0x53f)](!0x1);}}[_0x47c516(0x2e1)](_0x39c511){const _0x12d906=_0x47c516;let _0x4cd881=this[_0x12d906(0x390)]();if(_0x39c511[_0x12d906(0x520)]<=_0x4cd881){if(this[_0x12d906(0x3a2)](_0x39c511)){this[_0x12d906(0x504)]();let _0x21b5e2=this['_injector'][_0x12d906(0x341)](O,this[_0x12d906(0x4e9)],this[_0x12d906(0x1fe)],this['_pendingMutations'],this[_0x12d906(0x3eb)]);return _0x21b5e2[_0x12d906(0x3ed)](),_0x21b5e2[_0x12d906(0x250)](),_0x21b5e2;}return this[_0x12d906(0x266)][_0x12d906(0x3c4)](_0x12d906(0x2c1),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x39c511[_0x12d906(0x520)]+_0x12d906(0x4f1)+_0x4cd881+'.'),this;}if(this[_0x12d906(0x504)](),this[_0x12d906(0x304)](_0x39c511))return this[_0x12d906(0x400)]['createInstance'](N,this['unitID'],this[_0x12d906(0x1fe)],this[_0x12d906(0x496)],this[_0x12d906(0x343)],_0x39c511['revision'],[],this[_0x12d906(0x3eb)],void 0x0);this['_incrementRevisionNumber']();let _0x1b5ff7=this[_0x12d906(0x400)][_0x12d906(0x341)](O,this[_0x12d906(0x4e9)],this[_0x12d906(0x1fe)],this[_0x12d906(0x343)],this[_0x12d906(0x3eb)]);return _0x1b5ff7[_0x12d906(0x3ed)](),_0x1b5ff7[_0x12d906(0x250)](),_0x1b5ff7;}[_0x47c516(0x53b)](_0x439365){const _0x5c4f5d=_0x47c516;return this[_0x5c4f5d(0x53f)](!!(_0x439365!=null&&_0x439365[_0x5c4f5d(0x3c7)]));}['onRemoteRetry'](_0x35c6fe){const _0x55f18f=_0x47c516;var _0x1d8366;return _0x35c6fe[_0x55f18f(0x3c2)]===((_0x1d8366=this[_0x55f18f(0x496)])==null?void 0x0:_0x1d8366['reqId'])?this['_maxTotalRetryTimeout']>He?this[_0x55f18f(0x2f2)]():(this['_subscribeResendTimer'](Ie(this[_0x55f18f(0x27a)],{'reqId':_0x35c6fe[_0x55f18f(0x3c2)]})),this):this;}[_0x47c516(0x2f2)](){const _0x52be52=_0x47c516;return this['_clearScheduledTask'](),this[_0x52be52(0x400)][_0x52be52(0x341)](M,this[_0x52be52(0x4e9)],this[_0x52be52(0x1fe)],this[_0x52be52(0x496)],this[_0x52be52(0x343)],this[_0x52be52(0x3eb)]);}[_0x47c516(0x2d4)](){return this;}[_0x47c516(0x42e)](){const _0x5f2c2c=_0x47c516;this[_0x5f2c2c(0x3eb)][_0x5f2c2c(0x4c4)](this[_0x5f2c2c(0x496)]);}[_0x47c516(0x53f)](_0x2d43aa){const _0x3594a4=_0x47c516;return this[_0x3594a4(0x504)](),this[_0x3594a4(0x400)][_0x3594a4(0x341)](j,this[_0x3594a4(0x4e9)],this[_0x3594a4(0x1fe)],null,this[_0x3594a4(0x343)],this['_handler'],_0x2d43aa);}[_0x47c516(0x242)](_0x315551){const _0x44a4a9=_0x47c516;var _0x1d9a05;(_0x1d9a05=this[_0x44a4a9(0x4d0)])==null||_0x1d9a05[_0x44a4a9(0x44d)](),this[_0x44a4a9(0x498)]=_0x315551,this[_0x44a4a9(0x4d0)]=_0x315551==null?void 0x0:_0x315551[_0x44a4a9(0x51a)](({reqId:_0x416211})=>this[_0x44a4a9(0x40b)](_0x416211));}['_runScheduledResend'](_0x1ceaac){const _0x18acea=_0x47c516;var _0x13f936;_0x1ceaac===((_0x13f936=this[_0x18acea(0x496)])==null?void 0x0:_0x13f936[_0x18acea(0x3c2)])&&(this[_0x18acea(0x498)]=void 0x0,this[_0x18acea(0x42e)](),this[_0x18acea(0x27a)]=this[_0x18acea(0x27a)]===0x0?0x3e8:Math[_0x18acea(0x497)](this['_resendTimeout']*0x2,Ve),this[_0x18acea(0x43b)]+=this[_0x18acea(0x27a)]);}[_0x47c516(0x26f)](){const _0x338edb=_0x47c516;return{'timer':this[_0x338edb(0x498)],'timeout':this[_0x338edb(0x27a)],'total':this['_maxTotalRetryTimeout']};}[_0x47c516(0x504)](){const _0x189db8=_0x47c516;var _0x2429ca;(_0x2429ca=this[_0x189db8(0x4d0)])==null||_0x2429ca['unsubscribe']();}};A=ze=y([v(0x6,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x7,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x8,t['ICommandService']),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,e[_0x47c516(0x3f6)]),v(0xb,t[_0x47c516(0x526)]),v(0xc,(0x0,t['Optional'])(x))],A);let j=class extends E{constructor(_0x7b7434,_0x78440,_0x519430,_0x355891,_0x117648,_0x262b96=!0x1,_0x32a22c,_0xa89d2d,_0x53c134,_0xa9e77e,_0x3e4c8c,_0x50e395,_0x576921,_0x40bd11,_0x2e66d2){const _0x587537=_0x47c516;super(_0x7b7434,_0x78440,_0x519430,_0x355891,_0x117648,_0xa89d2d,_0x53c134,_0xa9e77e,_0x2e66d2),this[_0x587537(0x398)]=_0x262b96,this[_0x587537(0x539)]=_0x32a22c,this[_0x587537(0x299)]=_0x3e4c8c,this['_userManagerService']=_0x50e395,this[_0x587537(0x266)]=_0x576921,this['_collaborationUIEventService']=_0x40bd11,this[_0x587537(0x4ba)]=_0x2e66d2,g(this,_0x587537(0x4f5),_0x587537(0x4d2)),this[_0x587537(0x547)](),this[_0x587537(0x233)](),this[_0x587537(0x40f)]()['catch'](_0x21815c=>this[_0x587537(0x266)]['error'](_0x21815c));}[_0x47c516(0x460)](){return this;}[_0x47c516(0x2e9)](){return this;}[_0x47c516(0x2e1)](){return this;}[_0x47c516(0x53b)](){return this;}[_0x47c516(0x30c)](){return this;}[_0x47c516(0x2f2)](){return this;}['toggleOnline'](){return this;}[_0x47c516(0x42e)](){const _0x3d36dc=_0x47c516;throw Error(_0x3d36dc(0x386));}async['_prepareConflictRecovery'](){const _0x3e56d0=_0x47c516;var _0x3a724b,_0x488333,_0xfeff9e;let _0x43148a=((_0x3a724b=this[_0x3e56d0(0x4fd)][_0x3e56d0(0x3ee)]())==null?void 0x0:_0x3a724b['userID'])??'';await((_0x488333=this[_0x3e56d0(0x344)])==null||(_0xfeff9e=_0x488333[_0x3e56d0(0x4e7)])==null?void 0x0:_0xfeff9e[_0x3e56d0(0x4cf)](_0x488333,this[_0x3e56d0(0x4e9)],_0x3e56d0(0x4d2),_0x43148a)['catch'](()=>void 0x0));try{var _0x249e53;await((_0x249e53=this[_0x3e56d0(0x344)])==null?void 0x0:_0x249e53['clearOfflineData'](this[_0x3e56d0(0x4e9)],_0x43148a));}catch{this[_0x3e56d0(0x396)][_0x3e56d0(0x315)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x3e56d0(0x4e9)],'userId':_0x43148a});return;}this[_0x3e56d0(0x481)]();}[_0x47c516(0x233)](){const _0x9243e5=_0x47c516;this['_collaborationUIEventService'][_0x9243e5(0x315)]({'id':'CONFLICT_PROCESSING'});}['_showConflictNotification'](){const _0x2c2a2e=_0x47c516;this[_0x2c2a2e(0x398)]?this[_0x2c2a2e(0x396)][_0x2c2a2e(0x315)]({'id':_0x2c2a2e(0x33b)}):this[_0x2c2a2e(0x396)]['emitEvent']({'id':_0x2c2a2e(0x30f)});}[_0x47c516(0x547)](){const _0x424044=_0x47c516;this[_0x424044(0x539)][_0x424044(0x3be)](new r[(_0x424044(0x50f))](this['unitID'])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x333)])),v(0x7,t[_0x47c516(0x212)]),v(0x8,t[_0x47c516(0x526)]),v(0x9,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0xa,(0x0,t['Inject'])(t[_0x47c516(0x346)])),v(0xb,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x4d8)])),v(0xc,t[_0x47c516(0x4e0)]),v(0xd,(0x0,t[_0x47c516(0x528)])(_)),v(0xe,(0x0,t[_0x47c516(0x263)])(x))],j);let M=class extends E{constructor(_0x597d71,_0x19f8ee,_0x556f12,_0x5f2e11,_0x130c8c,_0x235303,_0x7e9dd1,_0x3a47a1,_0x22e24a,_0x3ceca8){const _0x32183b=_0x47c516;super(_0x597d71,_0x19f8ee,_0x556f12,_0x5f2e11,_0x130c8c,_0x3a47a1,_0x22e24a,_0x7e9dd1,_0x3ceca8),this[_0x32183b(0x400)]=_0x235303,g(this,_0x32183b(0x4f5),_0x32183b(0x2ad));}[_0x47c516(0x460)](_0x4e5c2a){const _0x5d29b7=_0x47c516;return this['_pendingMutations'][_0x5d29b7(0x325)](_0x4e5c2a),this['_updateLocalCache'](),this;}[_0x47c516(0x2e9)](_0x4d8c11){const _0x4b034e=_0x47c516;throw Error(_0x4b034e(0x49c));}[_0x47c516(0x2e1)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x47c516(0x53b)](){const _0x238989=_0x47c516;throw Error(_0x238989(0x447));}[_0x47c516(0x30c)](){return this;}['toggleOffline'](){return this;}[_0x47c516(0x2d4)](){const _0x3382f8=_0x47c516;let {_injector:_0x33588e,_pendingMutations:_0xbce035,_awaitingChangeset:_0x1041f0,unitID:_0x22893d,_handler:_0x40154f,type:_0x4e420a}=this,_0xe7c175=Ue(_0x33588e,_0x22893d,_0x4e420a,_0x1041f0,_0xbce035,_0x40154f);return _0xe7c175 instanceof O?_0xe7c175[_0x3382f8(0x3ed)]():(_0xe7c175 instanceof A||_0xe7c175 instanceof k)&&_0xe7c175['resend'](),_0xe7c175;}[_0x47c516(0x42e)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x6,(0x0,t['Inject'])(e[_0x47c516(0x21f)])),v(0x7,t['ICommandService']),v(0x8,t[_0x47c516(0x526)]),v(0x9,(0x0,t[_0x47c516(0x263)])(x))],M);function _0x88a9(_0x444fdc,_0x50131f){_0x444fdc=_0x444fdc-0x1ee;const _0x606370=_0x6063();let _0x88a978=_0x606370[_0x444fdc];return _0x88a978;}let N=class extends E{constructor(_0x14701a,_0x15af1a,_0x53bcfb,_0x3a9fd5,_0x3799da,_0x869b8b,_0x5c397f,_0x1966fb,_0x5c8825,_0x1310b8,_0x1c7db0,_0x27d364,_0x57206d,_0x8b134a,_0x543c90){const _0x3fd50d=_0x47c516;super(_0x14701a,_0x15af1a,_0x53bcfb,_0x3a9fd5,_0x5c397f,_0x27d364,_0x57206d,_0x1310b8,_0x543c90),this['_acknowledgedAwaitingRevision']=_0x3799da,this[_0x3fd50d(0x200)]=_0x869b8b,this['_resendSchedule']=_0x1966fb,this[_0x3fd50d(0x400)]=_0x5c8825,this['_logService']=_0x1c7db0,this[_0x3fd50d(0x3e4)]=_0x8b134a,this[_0x3fd50d(0x4ba)]=_0x543c90,g(this,'status',_0x3fd50d(0x238));}[_0x47c516(0x494)](_0x12fcf7){const _0x1504e5=_0x47c516;try{if(this[_0x1504e5(0x37a)](_0x12fcf7)[_0x1504e5(0x353)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this[_0x1504e5(0x200)]]['sort']((_0x1a83f8,_0xdbeefd)=>_0x1a83f8[_0x1504e5(0x520)]-_0xdbeefd[_0x1504e5(0x520)]))[_0x1504e5(0x353)])return this['_queuedRemoteChangesets']=[],this[_0x1504e5(0x250)](),this[_0x1504e5(0x3eb)][_0x1504e5(0x2ab)]({'from':this[_0x1504e5(0x390)](),'to':0x0}),this;let _0x45ce7d=this[_0x1504e5(0x496)],_0x178c51=this['_pendingMutations'],_0x1f391e;if(_0x45ce7d&&_0x178c51['length']!==0x0)_0x1f391e=this['_injector'][_0x1504e5(0x341)](A,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],_0x45ce7d,_0x178c51,this[_0x1504e5(0x3eb)],this[_0x1504e5(0x26f)]);else{if(_0x45ce7d&&_0x178c51['length']===0x0)_0x45ce7d[_0x1504e5(0x4f9)]=this[_0x1504e5(0x390)](),_0x1f391e=this[_0x1504e5(0x400)][_0x1504e5(0x341)](k,this[_0x1504e5(0x4e9)],this['type'],_0x45ce7d,this[_0x1504e5(0x3eb)],this[_0x1504e5(0x26f)]);else{if(_0x178c51['length']!==0x0){let _0x3c42d2=this[_0x1504e5(0x400)][_0x1504e5(0x341)](O,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],_0x178c51,this[_0x1504e5(0x3eb)]);_0x3c42d2[_0x1504e5(0x3ed)](),_0x1f391e=_0x3c42d2;}else _0x1f391e=this[_0x1504e5(0x400)][_0x1504e5(0x341)](D,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],this[_0x1504e5(0x3eb)]);}}return _0x1f391e[_0x1504e5(0x250)](),_0x1f391e;}catch(_0x566a29){return this[_0x1504e5(0x266)][_0x1504e5(0x492)](_0x1504e5(0x29a),'failed\x20to\x20apply\x20missed\x20changesets!',_0x566a29),this['_injector']['createInstance'](j,this[_0x1504e5(0x4e9)],this[_0x1504e5(0x1fe)],this[_0x1504e5(0x496)],this[_0x1504e5(0x343)],this[_0x1504e5(0x3eb)],!0x1);}}['_handleRemoteChangesets'](_0x345b92){const _0x902ce9=_0x47c516;this[_0x902ce9(0x370)]();for(let _0x4096b7=0x0;_0x4096b7<_0x345b92['length'];_0x4096b7++){let _0x430c56=_0x345b92[_0x4096b7],_0x1f1c39=this['_getCurrentRevision']();if(this[_0x902ce9(0x2a4)](_0x430c56)){if(_0x430c56[_0x902ce9(0x520)]>_0x1f1c39+0x1)return{'missingChangesets':!0x0};_0x430c56[_0x902ce9(0x520)]<=_0x1f1c39?this[_0x902ce9(0x510)]():this[_0x902ce9(0x4b0)]();}else{if(!(_0x430c56['revision']<=_0x1f1c39)){if(_0x430c56['revision']>_0x1f1c39+0x1)return{'missingChangesets':!0x0};this['_transformAndApplyRemoteChangeset'](_0x430c56),this['_acknowledgeAwaitingIfReady']();}}}return{'missingChangesets':!0x1};}[_0x47c516(0x27b)](_0x387d1b){const _0x1e06e8=_0x47c516;let _0x2aeee8=_0x387d1b,_0x4053e4=this['_awaitingChangeset'];if(_0x4053e4){let _0x2a5fb7=this[_0x1e06e8(0x3e4)][_0x1e06e8(0x309)]([_0x387d1b],[_0x4053e4],!0x1);if(!(0x0,e[_0x1e06e8(0x28c)])(_0x2a5fb7))throw _0x2a5fb7['error'];_0x2aeee8=_0x2a5fb7['c1Prime'][0x0],_0x4053e4=_0x2a5fb7[_0x1e06e8(0x4da)][0x0];}let _0x4362e1=this[_0x1e06e8(0x343)];if(_0x4362e1[_0x1e06e8(0x476)]){let _0x35c235=this['_transformService'][_0x1e06e8(0x2cb)](_0x2aeee8,_0x4362e1);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x35c235))throw _0x35c235[_0x1e06e8(0x492)];_0x2aeee8=_0x35c235[_0x1e06e8(0x28f)],_0x4362e1=_0x35c235[_0x1e06e8(0x4f7)];}this['_executeRemoteChangeset'](_0x2aeee8),_0x4053e4&&(_0x4053e4[_0x1e06e8(0x4f9)]=this[_0x1e06e8(0x390)]()),this['_awaitingChangeset']=_0x4053e4,this[_0x1e06e8(0x343)]=_0x4362e1;}['_acknowledgeAwaitingIfReady'](){const _0x24cafd=_0x47c516;if(!this[_0x24cafd(0x496)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x4c8523=this[_0x24cafd(0x390)]();if(this['_acknowledgedAwaitingRevision']<=_0x4c8523)throw Error(_0x24cafd(0x2fb)+this[_0x24cafd(0x405)]+'.');this[_0x24cafd(0x405)]===_0x4c8523+0x1&&this['_acknowledgeAwaiting']();}[_0x47c516(0x4b0)](){const _0x2d0c5d=_0x47c516;this[_0x2d0c5d(0x259)](),this[_0x2d0c5d(0x510)]();}['_dropAcknowledgedAwaiting'](){const _0xc3139e=_0x47c516;this['_awaitingChangeset']=null,this[_0xc3139e(0x405)]=null,this['_resendSchedule']=void 0x0;}['resend'](){const _0x35ed9d=_0x47c516;throw Error(_0x35ed9d(0x226));}['appendMutation'](_0x106f5d){const _0x4847d2=_0x47c516;return this[_0x4847d2(0x343)][_0x4847d2(0x325)](_0x106f5d),this;}[_0x47c516(0x2e9)](_0x4767f8){const _0x7cec81=_0x47c516;return this[_0x7cec81(0x200)][_0x7cec81(0x325)](_0x4767f8),this;}[_0x47c516(0x2e1)](_0x3eaeb6){const _0x5d2301=_0x47c516;if(this[_0x5d2301(0x496)]){let _0x5803c5=this['_getCurrentRevision']();return _0x3eaeb6[_0x5d2301(0x520)]<=_0x5803c5?(this[_0x5d2301(0x3a2)](_0x3eaeb6)&&this[_0x5d2301(0x510)](),this):(_0x5803c5+0x1===_0x3eaeb6[_0x5d2301(0x520)]?this[_0x5d2301(0x4b0)]():(this['_acknowledgedAwaitingRevision']=_0x3eaeb6[_0x5d2301(0x520)],this[_0x5d2301(0x26f)]=void 0x0),this);}if(_0x3eaeb6[_0x5d2301(0x520)]<=this[_0x5d2301(0x390)]())return this;throw Error(_0x5d2301(0x267));}[_0x47c516(0x53b)](_0x1f4362){const _0x552e7b=_0x47c516;return this[_0x552e7b(0x53f)](!!(_0x1f4362!=null&&_0x1f4362[_0x552e7b(0x3c7)]));}['onRemoteRetry'](_0x3ebea9){const _0x23a6c0=_0x47c516;var _0x1d1a32;if(this[_0x23a6c0(0x405)]!=null||_0x3ebea9[_0x23a6c0(0x3c2)]!==((_0x1d1a32=this[_0x23a6c0(0x496)])==null?void 0x0:_0x1d1a32[_0x23a6c0(0x3c2)]))return this;let _0xfd4773=this[_0x23a6c0(0x26f)]??{'timer':void 0x0,'timeout':0x0,'total':0x0};return _0xfd4773[_0x23a6c0(0x4a2)]?this:_0xfd4773[_0x23a6c0(0x1fd)]>He?this[_0x23a6c0(0x2f2)]():(this[_0x23a6c0(0x26f)]={..._0xfd4773,'timer':Ie(_0xfd4773[_0x23a6c0(0x379)],{'reqId':_0x3ebea9[_0x23a6c0(0x3c2)]})},this);}[_0x47c516(0x2f2)](){const _0x36190d=_0x47c516;return this[_0x36190d(0x400)][_0x36190d(0x341)](M,this['unitID'],this['type'],this[_0x36190d(0x496)],this[_0x36190d(0x343)],this[_0x36190d(0x3eb)]);}['toggleOnline'](){return this;}[_0x47c516(0x53f)](_0x41e0db){const _0xf2003f=_0x47c516;return this[_0xf2003f(0x400)][_0xf2003f(0x341)](j,this['unitID'],this[_0xf2003f(0x1fe)],this['_awaitingChangeset'],this[_0xf2003f(0x343)],this[_0xf2003f(0x3eb)],_0x41e0db);}};N=y([v(0x8,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x9,(0x0,t['Inject'])(e['RevisionService'])),v(0xa,t[_0x47c516(0x4e0)]),v(0xb,t[_0x47c516(0x212)]),v(0xc,t[_0x47c516(0x526)]),v(0xd,e['ITransformService']),v(0xe,(0x0,t[_0x47c516(0x263)])(x))],N);function Ue(_0x12963e,_0x4f4421,_0x1a91e9,_0xf95dae,_0xa0d25e,_0x4c0374){const _0x5dfcd9=_0x47c516;return _0xf95dae&&_0xa0d25e[_0x5dfcd9(0x476)]?_0x12963e[_0x5dfcd9(0x341)](A,_0x4f4421,_0x1a91e9,_0xf95dae,_0xa0d25e,_0x4c0374,void 0x0):_0xf95dae?_0x12963e[_0x5dfcd9(0x341)](k,_0x4f4421,_0x1a91e9,_0xf95dae,_0x4c0374,void 0x0):_0xa0d25e[_0x5dfcd9(0x476)]?_0x12963e['createInstance'](O,_0x4f4421,_0x1a91e9,_0xa0d25e,_0x4c0374):_0x12963e[_0x5dfcd9(0x341)](D,_0x4f4421,_0x1a91e9,_0x4c0374);}let P=class extends t[_0x47c516(0x3b6)]{get[_0x47c516(0x41c)](){const _0x39913a=_0x47c516;return this[_0x39913a(0x356)];}constructor(_0xe7ac27,_0x15c45a,_0x43872f,_0x1e1b5f,_0x3d46bf,_0x586f06,_0x42768e,_0x54c7fc,_0x4ba864,_0xaec247,_0x4badea,_0x17ca9a,_0x586f70,_0x3db6e){const _0xcbba4=_0x47c516;super(),this[_0xcbba4(0x4e9)]=_0xe7ac27,this[_0xcbba4(0x257)]=_0x15c45a,this['_type']=_0x43872f,this[_0xcbba4(0x400)]=_0x1e1b5f,this[_0xcbba4(0x443)]=_0x3d46bf,this['_localeService']=_0x586f06,this[_0xcbba4(0x4e4)]=_0x42768e,this[_0xcbba4(0x458)]=_0x54c7fc,this[_0xcbba4(0x2af)]=_0x4ba864,this[_0xcbba4(0x266)]=_0xaec247,this[_0xcbba4(0x213)]=_0x4badea,this['_permissionService']=_0x17ca9a,this[_0xcbba4(0x51f)]=_0x586f70,this[_0xcbba4(0x344)]=_0x3db6e,g(this,_0xcbba4(0x302),new i[(_0xcbba4(0x2f4))](null)),g(this,_0xcbba4(0x208),this[_0xcbba4(0x302)][_0xcbba4(0x404)]()),g(this,_0xcbba4(0x356),void 0x0),g(this,_0xcbba4(0x244),!0x1),g(this,_0xcbba4(0x4f6),''),g(this,'_changesetReqId',0x0),g(this,'status$',this['state$']['pipe']((0x0,i[_0xcbba4(0x41a)])(_0x47cd68=>_0x47cd68?_0x47cd68[_0xcbba4(0x4f5)]:_0xcbba4(0x2ad)),(0x0,i[_0xcbba4(0x35c)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0xcbba4(0x535),!0x1),g(this,_0xcbba4(0x527),[]);}async[_0x47c516(0x243)](){const _0x5ea469=_0x47c516;if(this[_0x5ea469(0x41c)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x47c516(0x36c)](){const _0x35337b=_0x47c516;return this[_0x35337b(0x244)]=!0x0,(0x0,t[_0x35337b(0x3b4)])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x47c516(0x3c0)](_0x130c47){const _0x85ae4=_0x47c516;this[_0x85ae4(0x477)](_0x130c47);}['_updateState'](_0x7eab3b){const _0x5e4f42=_0x47c516;this['_state']=_0x7eab3b,this[_0x5e4f42(0x302)][_0x5e4f42(0x485)](_0x7eab3b);}async[_0x47c516(0x2c7)](){const _0x54e190=_0x47c516;if(this[_0x54e190(0x297)](await this[_0x54e190(0x48c)]()),this[_0x54e190(0x51f)]){var _0x162043;(_0x162043=this['_singleActiveUnitService'])==null||_0x162043['editingUnit'](this[_0x54e190(0x4e9)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x54e190(0x43c)](this[_0x54e190(0x4e9)])[_0x54e190(0x51a)](_0xffa5b1=>{const _0xe9a271=_0x54e190;this[_0xe9a271(0x266)][_0xe9a271(0x3c4)]('[CollaborationEntity]',_0xe9a271(0x417),_0xffa5b1),_0xffa5b1===0x1?(this[_0xe9a271(0x458)]['emitEvent']({'id':_0xe9a271(0x451)}),this[_0xe9a271(0x539)][_0xe9a271(0x3be)](new r['WorkbookEditablePermission'](this[_0xe9a271(0x4e9)])['id'],!0x1),this[_0xe9a271(0x539)][_0xe9a271(0x34a)](!0x1)):(this[_0xe9a271(0x539)][_0xe9a271(0x3be)](new r[(_0xe9a271(0x50f))](this[_0xe9a271(0x4e9)])['id'],!0x0),this['_permissionService'][_0xe9a271(0x34a)](!0x0));}));}let _0x2ee624=!0x1;return this[_0x54e190(0x4dc)](this['session'][_0x54e190(0x455)]['subscribe'](_0x518069=>{const _0x56d6a9=_0x54e190;_0x518069===0x3?this[_0x56d6a9(0x2a1)](_0x2ee624):_0x518069===0x2&&(_0x2ee624=!0x0,this[_0x56d6a9(0x31c)]());})),this[_0x54e190(0x4dc)](this['session'][_0x54e190(0x502)][_0x54e190(0x51a)](_0x394057=>{const _0x50d73a=_0x54e190;try{switch(_0x394057[_0x50d73a(0x393)]){case e['CollaborationEvent'][_0x50d73a(0x363)]:this[_0x50d73a(0x3a0)]((0x0,e[_0x50d73a(0x450)])(_0x394057[_0x50d73a(0x3cf)]));break;case e[_0x50d73a(0x427)]['CHANGESET_ACK']:this[_0x50d73a(0x32a)](_0x394057[_0x50d73a(0x3cf)]);break;case e[_0x50d73a(0x427)][_0x50d73a(0x361)]:this[_0x50d73a(0x372)]();break;case e[_0x50d73a(0x427)][_0x50d73a(0x2fa)]:this[_0x50d73a(0x3d8)](_0x394057[_0x50d73a(0x3cf)]);break;case e[_0x50d73a(0x427)][_0x50d73a(0x446)]:this['_onFetchMissResult'](_0x394057[_0x50d73a(0x3cf)][_0x50d73a(0x4a9)]['map'](_0x552131=>(0x0,e['parseProtocolChangeset'])(_0x552131)));break;case e[_0x50d73a(0x427)][_0x50d73a(0x383)]:this[_0x50d73a(0x372)]({'isPermissionRej':!0x0});break;case e[_0x50d73a(0x427)]['UNISCRIPT_RUN']:}}catch(_0x4b7ea0){throw console[_0x50d73a(0x492)]('Error\x20on\x20receiving\x20event',_0x4b7ea0),_0x4b7ea0;}})),this[_0x54e190(0x356)];}[_0x47c516(0x32e)](){const _0x2beb65=_0x47c516;this[_0x2beb65(0x535)]=!0x1;}[_0x47c516(0x2e0)](){const _0x5a4366=_0x47c516;if(this[_0x5a4366(0x535)])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[_0x5a4366(0x535)]=!0x0;}[_0x47c516(0x477)](_0x5ee127){const _0x285de4=_0x47c516;this['_lockTransition'](),this[_0x285de4(0x297)](this[_0x285de4(0x356)]['appendMutation'](_0x5ee127)),this[_0x285de4(0x32e)]();}[_0x47c516(0x3a0)](_0xdfdeb){const _0x2c50cd=_0x47c516;this['_collaborationPaused']?this[_0x2c50cd(0x527)][_0x2c50cd(0x325)](_0xdfdeb):this['_applyRemoteChangeset'](_0xdfdeb);}[_0x47c516(0x4b4)](){const _0x7bfab6=_0x47c516;this['_remoteChangesetQueue'][_0x7bfab6(0x4b1)](_0x116d77=>this['_applyRemoteChangeset'](_0x116d77)),this[_0x7bfab6(0x527)]=[];}[_0x47c516(0x3dd)](_0x59f584){const _0x41b518=_0x47c516;let _0x59dd95=this[_0x41b518(0x443)][_0x41b518(0x362)][_0x41b518(0x3e2)](this[_0x41b518(0x443)][_0x41b518(0x362)][_0x41b518(0x248)]()['COMPRESS_MUTATION_APPLY'])(_0x59f584[_0x41b518(0x223)],null)||_0x59f584[_0x41b518(0x223)],_0x59a6c8={..._0x59f584,'mutations':_0x59dd95};this[_0x41b518(0x2e0)](),this[_0x41b518(0x297)](this['_state'][_0x41b518(0x2e9)](_0x59a6c8)),this[_0x41b518(0x32e)]();}[_0x47c516(0x32a)](_0x3de175){const _0x4562ad=_0x47c516;this[_0x4562ad(0x2e0)](),this[_0x4562ad(0x297)](this[_0x4562ad(0x356)][_0x4562ad(0x2e1)](_0x3de175)),this[_0x4562ad(0x32e)]();}['_onRemoteRejected'](_0x3a35e4){const _0x2ae0ae=_0x47c516;this['_lockTransition'](),this['_updateState'](this['_state'][_0x2ae0ae(0x53b)](_0x3a35e4)),this[_0x2ae0ae(0x32e)]();}[_0x47c516(0x3d8)](_0x157d44){const _0x4f8bfe=_0x47c516;this[_0x4f8bfe(0x2e0)](),this['_updateState'](this['_state'][_0x4f8bfe(0x30c)](_0x157d44)),this['_unlockTransition']();}[_0x47c516(0x3d3)](_0x4d208e){const _0x470fba=_0x47c516;if(!(this['_state']instanceof N))throw TypeError(_0x470fba(0x2e2));let _0x55d612=_0x4d208e[_0x470fba(0x41a)](_0x3041a9=>{const _0x4db05d=_0x470fba;let _0x3fe027=this[_0x4db05d(0x443)]['interceptor'][_0x4db05d(0x3e2)](this[_0x4db05d(0x443)][_0x4db05d(0x362)][_0x4db05d(0x248)]()[_0x4db05d(0x2bb)])(_0x3041a9[_0x4db05d(0x223)],null)||_0x3041a9[_0x4db05d(0x223)];return{..._0x3041a9,'mutations':_0x3fe027};});this[_0x470fba(0x2e0)](),this['_updateState'](this['_state'][_0x470fba(0x494)](_0x55d612)),this[_0x470fba(0x32e)]();}['_toggleOffline'](){const _0x509c8b=_0x47c516;this[_0x509c8b(0x2e0)](),this['_updateState'](this[_0x509c8b(0x356)]['toggleOffline']()),this[_0x509c8b(0x32e)]();}[_0x47c516(0x2a1)](_0x823a9a=!0x1){const _0x47a8d6=_0x47c516;this[_0x47a8d6(0x2e0)](),this['_updateState'](this[_0x47a8d6(0x356)][_0x47a8d6(0x2d4)]()),this[_0x47a8d6(0x32e)]();let _0x4e2d7f=this[_0x47a8d6(0x356)];_0x823a9a&&_0x4e2d7f instanceof D&&(this[_0x47a8d6(0x2e0)](),this['_updateState'](_0x4e2d7f['fetchMiss']()),this[_0x47a8d6(0x32e)]());}async[_0x47c516(0x48c)](){return new Promise(_0x5c352c=>{const _0x5bafb5=_0x88a9;this['session'][_0x5bafb5(0x455)]['pipe']((0x0,i['take'])(0x1))[_0x5bafb5(0x51a)](async _0x54611a=>{const _0x2dd7fc=_0x5bafb5;_0x5c352c(await this[_0x2dd7fc(0x3bd)](_0x54611a===0x3));});});}[_0x47c516(0x2a0)](){const _0x40f881=_0x47c516;let _0x1b2f13=this[_0x40f881(0x4e9)];return{'onStateChange':(_0x46adad,_0x2fcda0)=>{const _0x178e52=_0x40f881;if(_0x46adad!==this[_0x178e52(0x356)])throw Error(_0x178e52(0x36b)+_0x46adad[_0x178e52(0x4f5)]+_0x178e52(0x2b0)+_0x2fcda0[_0x178e52(0x4f5)]+_0x178e52(0x4f4)+this[_0x178e52(0x356)][_0x178e52(0x4f5)]);this['_updateState'](_0x2fcda0);},'onSendChangeset':_0x27ea3d=>{const _0x5043a9=_0x40f881;_0x27ea3d[_0x5043a9(0x1f9)]||(_0x27ea3d[_0x5043a9(0x1f9)]=this['_changesetSessionId'],_0x27ea3d['reqId']=++this[_0x5043a9(0x2fd)]);let _0x5786a4={'eventID':e[_0x5043a9(0x427)][_0x5043a9(0x45e)],'data':{'unitID':_0x27ea3d[_0x5043a9(0x4e9)],'unitType':this[_0x5043a9(0x47f)],'changeset':_0x27ea3d,'memberID':this['session']['getMemberID']()}};this[_0x5043a9(0x257)][_0x5043a9(0x422)](_0x5786a4,this[_0x5043a9(0x4e9)]);},'onMissingChangesets':({from:_0x575321,to:_0x17ae77})=>{const _0x1796c3=_0x40f881;this[_0x1796c3(0x266)][_0x1796c3(0x3c4)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x575321+_0x1796c3(0x20e)+_0x17ae77);let _0x44e70d={'eventID':e[_0x1796c3(0x427)]['FETCH_MISSING'],'data':{'unitID':_0x1b2f13,'unitType':this[_0x1796c3(0x47f)],'from':_0x575321,'to':_0x17ae77}};this[_0x1796c3(0x257)]['send'](_0x44e70d,this['unitID']);}};}async[_0x47c516(0x3bd)](_0x34a839){const _0x10e133=_0x47c516;var _0x2480f3;let _0x47572c=await((_0x2480f3=this[_0x10e133(0x344)])==null?void 0x0:_0x2480f3[_0x10e133(0x37b)](this['unitID'])),_0x5a51ca=(_0x47572c==null?void 0x0:_0x47572c[_0x10e133(0x223)])??[],_0x2561ad=(_0x47572c==null?void 0x0:_0x47572c[_0x10e133(0x4b9)])??null,_0x375973=!!(_0x2561ad!=null&&_0x2561ad[_0x10e133(0x1f9)])&&!!(_0x2561ad!=null&&_0x2561ad[_0x10e133(0x3c2)]);this['_changesetSessionId']=_0x375973?_0x2561ad['sid']:(0x0,e[_0x10e133(0x50a)])(),this[_0x10e133(0x2fd)]=_0x375973?_0x2561ad[_0x10e133(0x3c2)]:0x0;let _0x459a69=this[_0x10e133(0x4e9)];try{this['_replayCachedMutations'](_0x2561ad,_0x5a51ca);}catch(_0x59da74){this[_0x10e133(0x266)][_0x10e133(0x492)](_0x59da74);}let _0xc4c466=this[_0x10e133(0x2a0)]();if(_0x34a839){let _0x2c74f5=Ue(this[_0x10e133(0x400)],_0x459a69,this[_0x10e133(0x47f)],_0x2561ad,_0x5a51ca,_0xc4c466);return _0x2c74f5 instanceof O?_0x2c74f5[_0x10e133(0x3ed)]():(_0x2c74f5 instanceof A||_0x2c74f5 instanceof k)&&_0x2c74f5[_0x10e133(0x42e)](),_0x2c74f5;}return this[_0x10e133(0x400)][_0x10e133(0x341)](M,_0x459a69,this[_0x10e133(0x47f)],_0x2561ad,_0x5a51ca,_0xc4c466);}[_0x47c516(0x44f)](_0x35911b,_0x244d4b){const _0x10b837=_0x47c516;var _0x44aa8c,_0x34622c;let _0x577349=this['_compressMutationService'][_0x10b837(0x362)][_0x10b837(0x3e2)](this[_0x10b837(0x443)][_0x10b837(0x362)][_0x10b837(0x248)]()[_0x10b837(0x2bb)]);(_0x44aa8c=_0x577349((_0x35911b==null?void 0x0:_0x35911b['mutations'])||[],null))==null||_0x44aa8c[_0x10b837(0x4b1)](_0x5c6688=>this[_0x10b837(0x213)][_0x10b837(0x4a6)](_0x5c6688['id'],_0x5c6688[_0x10b837(0x2b6)])),(_0x34622c=_0x577349(_0x244d4b||[],null))==null||_0x34622c[_0x10b837(0x4b1)](_0x29801c=>this[_0x10b837(0x213)][_0x10b837(0x4a6)](_0x29801c['id'],_0x29801c[_0x10b837(0x2b6)]));}};P=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x47c516(0x528)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],P);let F=class extends P{constructor(_0x5271bb,_0x5241fb,_0x13a64e,_0x17dec9,_0x55fc01,_0x3b4e7c,_0x286237,_0x6f46fa,_0x3008e0,_0x3f0c4c,_0x449c3a,_0x32b7b3,_0x1fc657,_0x30f4ad,_0x343a40){const _0x27ab98=_0x47c516;super(_0x5271bb,_0x13a64e,_0x5241fb,_0x17dec9,_0x55fc01,_0x3b4e7c,_0x286237,_0x6f46fa,_0x3008e0,_0x3f0c4c,_0x449c3a,_0x32b7b3,_0x30f4ad,_0x343a40),this['unitID']=_0x5271bb,this[_0x27ab98(0x1fe)]=_0x5241fb,this[_0x27ab98(0x35a)]=_0x1fc657,g(this,'_handlerCallback',null);}[_0x47c516(0x543)](_0x253b1f){const _0x528204=_0x47c516;this[_0x528204(0x452)]=_0x253b1f;}['dispose'](){const _0xf5cf53=_0x47c516;this[_0xf5cf53(0x452)]=null,super[_0xf5cf53(0x328)]();}[_0x47c516(0x2a0)](){const _0x3978c1=_0x47c516;let _0x59e15c=super[_0x3978c1(0x2a0)]();return _0x59e15c[_0x3978c1(0x3de)]=_0x7fffef=>{const _0x2a1568=_0x3978c1;var _0x4089f7,_0x5b9b7f;return(_0x4089f7=this[_0x2a1568(0x452)])==null||(_0x5b9b7f=_0x4089f7[_0x2a1568(0x3de)])==null?void 0x0:_0x5b9b7f[_0x2a1568(0x4cf)](_0x4089f7,_0x7fffef);},_0x59e15c[_0x3978c1(0x4e1)]=_0x4e55ea=>{const _0x3effd1=_0x3978c1;var _0x2ab44e,_0x511d39;return(_0x2ab44e=this[_0x3effd1(0x452)])==null||(_0x511d39=_0x2ab44e[_0x3effd1(0x4e1)])==null?void 0x0:_0x511d39['call'](_0x2ab44e,_0x4e55ea);},_0x59e15c[_0x3978c1(0x4ec)]=_0x2462ad=>{const _0x4014f7=_0x3978c1;var _0x21746f,_0x25e8f8;return((_0x21746f=this[_0x4014f7(0x452)])==null||(_0x25e8f8=_0x21746f[_0x4014f7(0x4ec)])==null?void 0x0:_0x25e8f8[_0x4014f7(0x4cf)](_0x21746f,_0x2462ad))??null;},_0x59e15c[_0x3978c1(0x3ff)]=_0x5a7f41=>{var _0x41dff2,_0x410ff8;return(_0x41dff2=this['_handlerCallback'])==null||(_0x410ff8=_0x41dff2['onTransformSelections'])==null?void 0x0:_0x410ff8['call'](_0x41dff2,_0x5a7f41);},_0x59e15c[_0x3978c1(0x490)]=_0x10d14b=>{const _0x314f47=_0x3978c1;var _0x10cd7a,_0x4ad7d8;return(_0x10cd7a=this[_0x314f47(0x452)])==null||(_0x4ad7d8=_0x10cd7a['onSyncEditingCollabCursor'])==null?void 0x0:_0x4ad7d8[_0x314f47(0x4cf)](_0x10cd7a,_0x10d14b);},_0x59e15c[_0x3978c1(0x41f)]=_0x37861b=>{const _0x4b74dc=_0x3978c1;var _0x353764,_0x487dd3;return((_0x353764=this['_handlerCallback'])==null||(_0x487dd3=_0x353764[_0x4b74dc(0x41f)])==null?void 0x0:_0x487dd3[_0x4b74dc(0x4cf)](_0x353764,_0x37861b))??_0x37861b;},_0x59e15c[_0x3978c1(0x3c3)]=_0x43c3f4=>{const _0x14501a=_0x3978c1;var _0x5dc8f5,_0x58f1f2;return((_0x5dc8f5=this['_handlerCallback'])==null||(_0x58f1f2=_0x5dc8f5[_0x14501a(0x3c3)])==null?void 0x0:_0x58f1f2[_0x14501a(0x4cf)](_0x5dc8f5,_0x43c3f4))??_0x43c3f4;},_0x59e15c;}async[_0x47c516(0x2c7)](){const _0x13ccaa=_0x47c516;let _0x2697a4=await super['_init']();return this[_0x13ccaa(0x4dc)](this['_docStateChangeManagerService'][_0x13ccaa(0x456)][_0x13ccaa(0x51a)](_0x418d97=>{const _0x595675=_0x13ccaa;if(_0x418d97==null||_0x418d97[_0x595675(0x220)]!==this[_0x595675(0x4e9)])return;let {commandId:_0x408c0b,redoState:_0x3cb623,unitId:_0x550a0c}=_0x418d97,_0x5dde7e={'id':_0x408c0b,'type':t[_0x595675(0x240)]['MUTATION'],'params':{'unitId':_0x550a0c,'actions':_0x3cb623['actions'],'textRanges':null}};this['_onLocalMutation'](_0x5dde7e);})),this[_0x13ccaa(0x4dc)](this[_0x13ccaa(0x213)]['onMutationExecutedForCollab']((_0x4ddb3e,_0x28f5ce)=>{const _0x472869=_0x13ccaa;if(_0x4ddb3e[_0x472869(0x1fe)]!==t[_0x472869(0x240)][_0x472869(0x375)]||_0x28f5ce!=null&&_0x28f5ce[_0x472869(0x367)]||_0x28f5ce!=null&&_0x28f5ce[_0x472869(0x201)]||_0x4ddb3e['id']===n[_0x472869(0x288)]['id'])return;let _0xc6a2dd=_0x4ddb3e[_0x472869(0x2b6)];if((_0xc6a2dd==null?void 0x0:_0xc6a2dd[_0x472869(0x220)])!==this[_0x472869(0x4e9)])return;let _0x46ebe1=_0x4ddb3e,_0x3d3085=this[_0x472869(0x443)][_0x472869(0x362)][_0x472869(0x3e2)](this[_0x472869(0x443)][_0x472869(0x362)]['getInterceptPoints']()[_0x472869(0x3df)])([_0x46ebe1],this[_0x472869(0x2af)])||[_0x46ebe1];this[_0x472869(0x477)](_0x3d3085[0x0]);})),_0x2697a4;}};F=y([v(0x3,(0x0,t['Inject'])(t[_0x47c516(0x416)])),v(0x4,(0x0,t['Inject'])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e['RevisionService'])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x528)])(n[_0x47c516(0x423)])),v(0xd,(0x0,t[_0x47c516(0x263)])(C)),v(0xe,(0x0,t['Optional'])(x))],F);let I=class extends P{constructor(_0x1b8e5e,_0x40863d,_0x396694,_0x308a48,_0x4da81d,_0x1673ff,_0x59d716,_0x2de02c,_0x61f743,_0x26f335,_0x5b191c,_0x4bf198,_0x33ceeb,_0x475c23){const _0x49f529=_0x47c516;super(_0x1b8e5e,_0x396694,_0x40863d,_0x308a48,_0x4da81d,_0x1673ff,_0x59d716,_0x2de02c,_0x61f743,_0x26f335,_0x5b191c,_0x4bf198,_0x33ceeb,_0x475c23),this['unitID']=_0x1b8e5e,this[_0x49f529(0x1fe)]=_0x40863d;}async[_0x47c516(0x2c7)](){const _0x44f905=_0x47c516;let _0x4e1f97=await super[_0x44f905(0x2c7)]();return this[_0x44f905(0x4dc)](this[_0x44f905(0x213)][_0x44f905(0x38b)]((_0x40f48e,_0x4a48dd)=>{const _0x59a23b=_0x44f905;if(_0x40f48e[_0x59a23b(0x1fe)]!==t[_0x59a23b(0x240)][_0x59a23b(0x375)]||_0x4a48dd!=null&&_0x4a48dd[_0x59a23b(0x367)]||_0x4a48dd!=null&&_0x4a48dd[_0x59a23b(0x201)])return;let _0x294df0=_0x40f48e[_0x59a23b(0x2b6)];if((_0x294df0==null?void 0x0:_0x294df0['unitId'])!==this[_0x59a23b(0x4e9)])return;let _0x1cbb74=_0x40f48e,_0x288bc2=this[_0x59a23b(0x443)][_0x59a23b(0x362)][_0x59a23b(0x3e2)](this[_0x59a23b(0x443)][_0x59a23b(0x362)][_0x59a23b(0x248)]()[_0x59a23b(0x3df)])([_0x1cbb74],this['_univerInstanceService'])||[_0x1cbb74];this[_0x59a23b(0x477)](_0x288bc2[0x0]);})),_0x4e1f97;}};I=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t['Injector'])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t['ICommandService']),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],I);let L=class extends P{constructor(_0x203163,_0x55c474,_0x278808,_0x33491d,_0x38ef55,_0x3acc79,_0x3d2e43,_0x58d44c,_0x1d70a7,_0x2a397a,_0x2e5d9b,_0x2154df,_0xbcaf5f,_0x59ddcc,_0x205222){const _0x4b19f=_0x47c516;super(_0x203163,_0x278808,_0x55c474,_0x33491d,_0x38ef55,_0x3acc79,_0x3d2e43,_0x1d70a7,_0x2a397a,_0x2e5d9b,_0x2154df,_0xbcaf5f,_0x59ddcc,_0x205222),this[_0x4b19f(0x4e9)]=_0x203163,this[_0x4b19f(0x1fe)]=_0x55c474,this[_0x4b19f(0x52d)]=_0x58d44c;}[_0x47c516(0x2a0)](){const _0x159619=_0x47c516;let _0x6fa60d=super[_0x159619(0x2a0)]();return _0x6fa60d[_0x159619(0x3ff)]=_0xbf5888=>this[_0x159619(0x52d)][_0x159619(0x2c3)](_0xbf5888),_0x6fa60d;}async['_init'](){const _0x3e760d=_0x47c516;let _0x22cd63=await super[_0x3e760d(0x2c7)]();return this[_0x3e760d(0x4dc)](this[_0x3e760d(0x213)]['onMutationExecutedForCollab']((_0x5bdcb6,_0x32118c)=>{const _0x43a383=_0x3e760d;if(_0x5bdcb6['type']!==t[_0x43a383(0x240)][_0x43a383(0x375)]||_0x32118c!=null&&_0x32118c[_0x43a383(0x367)]||_0x32118c!=null&&_0x32118c[_0x43a383(0x201)])return;let _0x448aa0=_0x5bdcb6[_0x43a383(0x2b6)];if((_0x448aa0==null?void 0x0:_0x448aa0[_0x43a383(0x220)])!==this[_0x43a383(0x4e9)])return;let _0x2e32c5=_0x5bdcb6,_0xc3e544=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x43a383(0x443)][_0x43a383(0x362)][_0x43a383(0x248)]()[_0x43a383(0x3df)])([_0x2e32c5],this[_0x43a383(0x2af)])||[_0x2e32c5];this['_onLocalMutation'](_0xc3e544[0x0]);})),_0x22cd63;}};L=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(S)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x47c516(0x493)]),v(0xa,t['ILogService']),v(0xb,t[_0x47c516(0x212)]),v(0xc,t['IPermissionService']),v(0xd,(0x0,t[_0x47c516(0x263)])(C)),v(0xe,(0x0,t[_0x47c516(0x263)])(x))],L);let R=class extends P{constructor(_0x454a03,_0x20f58f,_0x233fd,_0x20b82d,_0x3d131f,_0x291322,_0x55db48,_0x55a601,_0x303744,_0x6053a4,_0x135e15,_0x5ae066,_0x57e718,_0x322bba){const _0x574855=_0x47c516;super(_0x454a03,_0x233fd,_0x20f58f,_0x20b82d,_0x3d131f,_0x291322,_0x55db48,_0x55a601,_0x303744,_0x6053a4,_0x135e15,_0x5ae066,_0x57e718,_0x322bba),this[_0x574855(0x4e9)]=_0x454a03,this[_0x574855(0x1fe)]=_0x20f58f;}async[_0x47c516(0x2c7)](){const _0x2f9cc1=_0x47c516;let _0x1eae05=await super[_0x2f9cc1(0x2c7)]();return this[_0x2f9cc1(0x4dc)](this[_0x2f9cc1(0x213)][_0x2f9cc1(0x38b)]((_0xce2a85,_0x2b368c)=>{const _0x265a3a=_0x2f9cc1;if(_0xce2a85['type']!==t[_0x265a3a(0x240)][_0x265a3a(0x375)]||_0x2b368c!=null&&_0x2b368c[_0x265a3a(0x367)]||_0x2b368c!=null&&_0x2b368c[_0x265a3a(0x201)])return;let _0x28ec55=_0xce2a85[_0x265a3a(0x2b6)];if((_0x28ec55==null?void 0x0:_0x28ec55[_0x265a3a(0x220)])!==this['unitID'])return;let _0x5abb7a=_0xce2a85,_0x3955f8=this[_0x265a3a(0x443)][_0x265a3a(0x362)]['fetchThroughInterceptors'](this[_0x265a3a(0x443)]['interceptor'][_0x265a3a(0x248)]()[_0x265a3a(0x3df)])([_0x5abb7a],this['_univerInstanceService'])||[_0x5abb7a];this[_0x265a3a(0x477)](_0x3955f8[0x0]);})),_0x1eae05;}};R=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],R);let z=class extends P{constructor(_0x324edc,_0xd52cf9,_0x19b824,_0x5b0e9d,_0x19302c,_0x17adea,_0x1e12d1,_0x52b902,_0x160714,_0xe72212,_0x177b64,_0x5c8aad,_0x3e0958,_0x3440c4){const _0x4cba9c=_0x47c516;super(_0x324edc,_0x19b824,_0xd52cf9,_0x5b0e9d,_0x19302c,_0x17adea,_0x1e12d1,_0x52b902,_0x160714,_0xe72212,_0x177b64,_0x5c8aad,_0x3e0958,_0x3440c4),this[_0x4cba9c(0x4e9)]=_0x324edc,this[_0x4cba9c(0x1fe)]=_0xd52cf9;}async['_init'](){const _0x24eac7=_0x47c516;let _0x408625=await super[_0x24eac7(0x2c7)]();return this[_0x24eac7(0x4dc)](this['_commandService'][_0x24eac7(0x38b)]((_0xf3cd1b,_0x3bcdeb)=>{const _0x76e673=_0x24eac7;if(_0xf3cd1b[_0x76e673(0x1fe)]!==t['CommandType'][_0x76e673(0x375)]||_0x3bcdeb!=null&&_0x3bcdeb[_0x76e673(0x367)]||_0x3bcdeb!=null&&_0x3bcdeb[_0x76e673(0x201)])return;let _0x581931=_0xf3cd1b[_0x76e673(0x2b6)];if((_0x581931==null?void 0x0:_0x581931[_0x76e673(0x220)])!==this[_0x76e673(0x4e9)])return;let _0x1db547=_0xf3cd1b,_0x2f450b=this[_0x76e673(0x443)]['interceptor'][_0x76e673(0x3e2)](this[_0x76e673(0x443)][_0x76e673(0x362)][_0x76e673(0x248)]()['COMPRESS_MUTATION_SEND'])([_0x1db547],this[_0x76e673(0x2af)])||[_0x1db547];this[_0x76e673(0x477)](_0x2f450b[0x0]);})),_0x408625;}};z=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t['LocaleService'])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t['ICommandService']),v(0xb,t[_0x47c516(0x333)]),v(0xc,(0x0,t[_0x47c516(0x263)])(C)),v(0xd,(0x0,t['Optional'])(x))],z);let B=class extends P{constructor(_0x1c4905,_0x22e48a,_0xc0d6c6,_0x426f0c,_0x2be24f,_0x1c3372,_0x8df6c3,_0x1599a5,_0x21b196,_0x4f2852,_0x254045,_0x5489da,_0x1f8b1e,_0x2630bd){const _0xf29db3=_0x47c516;super(_0x1c4905,_0xc0d6c6,_0x22e48a,_0x426f0c,_0x2be24f,_0x1c3372,_0x8df6c3,_0x1599a5,_0x21b196,_0x4f2852,_0x254045,_0x5489da,_0x1f8b1e,_0x2630bd),this[_0xf29db3(0x4e9)]=_0x1c4905,this['type']=_0x22e48a;}async['_init'](){const _0x23477f=_0x47c516;let _0x1113a6=await super[_0x23477f(0x2c7)]();return this['disposeWithMe'](this[_0x23477f(0x213)][_0x23477f(0x38b)]((_0x16ea77,_0x40d22d)=>{const _0x45ad9c=_0x23477f;if(_0x16ea77['type']!==t[_0x45ad9c(0x240)][_0x45ad9c(0x375)]||_0x40d22d!=null&&_0x40d22d['fromCollab']||_0x40d22d!=null&&_0x40d22d[_0x45ad9c(0x201)])return;let _0x51a468=_0x16ea77['params'];if((_0x51a468==null?void 0x0:_0x51a468[_0x45ad9c(0x220)])!==this[_0x45ad9c(0x4e9)])return;let _0xce5eaf=_0x16ea77,_0x2fd7ad=this['_compressMutationService'][_0x45ad9c(0x362)][_0x45ad9c(0x3e2)](this[_0x45ad9c(0x443)]['interceptor'][_0x45ad9c(0x248)]()[_0x45ad9c(0x3df)])([_0xce5eaf],this[_0x45ad9c(0x2af)])||[_0xce5eaf];this[_0x45ad9c(0x477)](_0x2fd7ad[0x0]);})),_0x1113a6;}};B=y([v(0x3,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x4,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x2a6)])),v(0x5,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)])),v(0x6,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x21f)])),v(0x7,(0x0,t[_0x47c516(0x528)])(_)),v(0x8,t[_0x47c516(0x493)]),v(0x9,t[_0x47c516(0x4e0)]),v(0xa,t[_0x47c516(0x212)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x47c516(0x263)])(x))],B);const We=(0x0,t[_0x47c516(0x4a4)])('univer-pro.collaboration-client.network-condition.service');function Ge(_0x2cc5de){const _0x49cc5c=_0x47c516;let _0xcfe1a4=_0x2cc5de[_0x49cc5c(0x3cf)],_0x96d731=JSON[_0x49cc5c(0x335)](_0xcfe1a4);switch(_0x96d731[_0x49cc5c(0x3ab)]){case a[_0x49cc5c(0x513)][_0x49cc5c(0x2f3)]:case a['CombCmd'][_0x49cc5c(0x445)]:{let _0x31a3ef=_0x96d731[_0x49cc5c(0x3a1)];return{..._0x96d731,'data':_0x31a3ef,'cmd':_0x96d731[_0x49cc5c(0x3ab)]};}case a[_0x49cc5c(0x513)][_0x49cc5c(0x342)]:{let _0x12985b=_0x96d731[_0x49cc5c(0x286)];return{..._0x96d731,'data':_0x12985b,'cmd':_0x96d731[_0x49cc5c(0x3ab)]};}case a[_0x49cc5c(0x513)][_0x49cc5c(0x2dc)]:{let _0x4747fc=_0x96d731[_0x49cc5c(0x4ef)];switch(_0x4747fc[_0x49cc5c(0x393)]){case e['CollaborationEvent']['PERMISSION_REJ']:var _0x285917;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x285917=_0x4747fc['permissionRejEvent'])==null?void 0x0:_0x285917['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent'][_0x49cc5c(0x30b)]:var _0x2a8055;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x2a8055=_0x4747fc[_0x49cc5c(0x285)])==null?void 0x0:_0x2a8055['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['NEW_CHANGESETS']:var _0x5192e5;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x5192e5=_0x4747fc[_0x49cc5c(0x2f9)])==null?void 0x0:_0x5192e5['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['CHANGESET_REJ']:var _0x42aa68;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x42aa68=_0x4747fc[_0x49cc5c(0x378)])==null?void 0x0:_0x42aa68['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x2fa)]:var _0x419955;return{..._0x96d731,'data':{..._0x4747fc,'data':(_0x419955=_0x4747fc['csShouldRetryEvent'])==null?void 0x0:_0x419955['cs']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x391)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x1f7)]},'cmd':_0x96d731['cmd']};case e['CollaborationEvent']['USERS_ENTER']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x3c5)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent'][_0x49cc5c(0x235)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x3cd)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x354)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x22e)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x4ea)]:case e[_0x49cc5c(0x427)]['LIVESHARE_OPERATION']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x272)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x38a)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x22e)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)]['MSG_FOR_ERROR']:return{..._0x96d731,'data':_0x4747fc,'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e[_0x49cc5c(0x427)][_0x49cc5c(0x507)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc['commentUpdateEvent']},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x459)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};case e['CollaborationEvent']['SHOULD_CLOSE_CONN']:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x351)]},'cmd':_0x96d731['cmd']};case e[_0x49cc5c(0x427)][_0x49cc5c(0x3b9)]:return{..._0x96d731,'data':{..._0x4747fc,'data':_0x4747fc[_0x49cc5c(0x34d)]},'cmd':_0x96d731[_0x49cc5c(0x3ab)]};default:return _0x96d731;}}default:return _0x96d731;}}function Ke(_0x3d13b8){const _0xae62ff=_0x47c516;switch(_0x3d13b8[_0xae62ff(0x3ab)]){case a[_0xae62ff(0x513)][_0xae62ff(0x2f3)]:case a[_0xae62ff(0x513)][_0xae62ff(0x445)]:return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8[_0xae62ff(0x3ab)],'routeKey':_0x3d13b8[_0xae62ff(0x46d)]});case a[_0xae62ff(0x513)]['INGEST']:{let _0x14397c;switch(_0x3d13b8[_0xae62ff(0x3cf)]['eventID']){case e[_0xae62ff(0x427)][_0xae62ff(0x391)]:_0x14397c={'eventID':e['CollaborationEvent'][_0xae62ff(0x391)],'updateCursorEvent':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x3cf)]};break;case e['CollaborationEvent'][_0xae62ff(0x235)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x235)],'leaveEvent':_0x3d13b8['data'][_0xae62ff(0x3cf)]};break;case e['CollaborationEvent']['USERS_ENTER']:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x3fe)],'joinEvent':_0x3d13b8[_0xae62ff(0x3cf)]['data']};break;case e[_0xae62ff(0x427)]['LIVESHARE_NEW_HOST']:_0x14397c={'eventID':e['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x3cf)]};break;case e[_0xae62ff(0x427)]['LIVESHARE_OPERATION']:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x4a1)],'liveShareOperation':_0x3d13b8['data']['data']};break;case e[_0xae62ff(0x427)][_0xae62ff(0x38a)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x38a)],'liveShareTerminate':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x3cf)]};break;case e[_0xae62ff(0x427)][_0xae62ff(0x522)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x522)],'liveShareRequestHost':_0x3d13b8[_0xae62ff(0x3cf)]['data']};break;case e[_0xae62ff(0x427)][_0xae62ff(0x4ea)]:_0x14397c={'eventID':e[_0xae62ff(0x427)][_0xae62ff(0x4ea)]};break;default:_0x14397c={'eventID':_0x3d13b8[_0xae62ff(0x3cf)][_0xae62ff(0x393)]};}return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8[_0xae62ff(0x3ab)],'routeKey':_0x3d13b8[_0xae62ff(0x46d)],'collaMsg':_0x14397c});}case a['CombCmd'][_0xae62ff(0x342)]:return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8['cmd'],'routeKey':_0x3d13b8[_0xae62ff(0x46d)],'joinReq':_0x3d13b8[_0xae62ff(0x3cf)]});case a['CombCmd'][_0xae62ff(0x269)]:return JSON[_0xae62ff(0x307)]({'cmd':_0x3d13b8[_0xae62ff(0x3ab)],'routeKey':_0x3d13b8['routeKey'],'leaveReq':_0x3d13b8[_0xae62ff(0x3cf)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const qe=(0x0,t['createIdentifier'])(_0x47c516(0x39f));function Je(_0x5df600,_0x4306ad,_0x519a1c){const _0x4a0e3d=_0x47c516;return _0x5df600+'/'+_0x4306ad+_0x4a0e3d(0x2b1)+_0x519a1c+'/new_changes';}let Ye=class extends t['Disposable']{constructor(_0x29b781,_0x3495df,_0x1f3426,_0x34d7c9,_0x51253c){const _0x3c3c79=_0x47c516;super(),this['_injector']=_0x29b781,this['_httpService']=_0x3495df,this[_0x3c3c79(0x469)]=_0x1f3426,this['_logService']=_0x34d7c9,this[_0x3c3c79(0x1ff)]=_0x51253c;}[_0x47c516(0x349)](_0x181233){const _0x3173a9=_0x47c516;let _0x2d5824=this[_0x3173a9(0x400)][_0x3173a9(0x1fa)](l['ISocketService']);if(!_0x2d5824)throw Error(_0x3173a9(0x4b3));let _0x1b88b6=_0x2d5824[_0x3173a9(0x501)](_0x181233);if(!_0x1b88b6)throw Error(_0x3173a9(0x25b));let _0x2b6dc4=new t[(_0x3173a9(0x37e))](),_0x24c814=new i[(_0x3173a9(0x369))]();_0x2b6dc4[_0x3173a9(0x22f)](_0x1b88b6[_0x3173a9(0x2c4)]['subscribe'](_0x54b94b=>_0x24c814[_0x3173a9(0x485)](_0x54b94b))),_0x2b6dc4[_0x3173a9(0x22f)]((0x0,t['toDisposable'])(()=>_0x24c814[_0x3173a9(0x2ce)]()));let _0x2eb531=new i['Subject']();_0x2b6dc4[_0x3173a9(0x22f)](_0x1b88b6['error$'][_0x3173a9(0x51a)](_0x2814c1=>_0x2eb531['next'](_0x2814c1))),_0x2b6dc4[_0x3173a9(0x22f)]((0x0,t[_0x3173a9(0x3b4)])(()=>_0x2eb531['complete']()));let _0x1fdb29=new i[(_0x3173a9(0x369))]();_0x2b6dc4[_0x3173a9(0x22f)](_0x1b88b6[_0x3173a9(0x279)]['subscribe'](_0xe5926=>{let _0xcf19bc=Ge(_0xe5926);_0x1fdb29['next'](_0xcf19bc);})),_0x2b6dc4[_0x3173a9(0x22f)]((0x0,t[_0x3173a9(0x3b4)])(()=>_0x1fdb29[_0x3173a9(0x2ce)]()));let _0x3c4e1a,_0x18779a=()=>{const _0x43b9b4=_0x3173a9;_0x2eb531[_0x43b9b4(0x485)](new Event('connection\x20error')),_0x24c814[_0x43b9b4(0x485)](new Event('connection\x20error')),_0x3c4e1a[_0x43b9b4(0x37d)]();};return _0x3c4e1a={'memberID':'','close$':_0x24c814[_0x3173a9(0x404)](),'error$':_0x2eb531['asObservable'](),'open$':_0x1b88b6[_0x3173a9(0x3ca)],'message$':_0x1fdb29[_0x3173a9(0x404)](),'send':_0x4f420d=>{const _0x1468f2=_0x3173a9;if(_0x4f420d[_0x1468f2(0x3ab)]===a['CombCmd'][_0x1468f2(0x467)]){if(_0x4f420d['data'][_0x1468f2(0x393)]===e[_0x1468f2(0x427)][_0x1468f2(0x45e)]){this[_0x1468f2(0x509)](_0x3c4e1a,_0x4f420d[_0x1468f2(0x3cf)])[_0x1468f2(0x3dc)](_0x2484c7=>{const _0x459963=_0x1468f2;this[_0x459963(0x266)]['error'](_0x2484c7),_0x18779a();});return;}if(_0x4f420d[_0x1468f2(0x3cf)]['eventID']===e[_0x1468f2(0x427)]['FETCH_MISSING']){let _0x195197=_0x4f420d['data'];this[_0x1468f2(0x41d)](_0x195197)[_0x1468f2(0x20d)](_0x55279f=>{const _0x5d9dc1=_0x1468f2;_0x1fdb29[_0x5d9dc1(0x485)]({'cmd':a[_0x5d9dc1(0x513)]['RECV'],'code':a['CmdRspCode']['OK'],'routeKey':_0x195197[_0x5d9dc1(0x3cf)]['unitID'],'routeType':'','data':{'eventID':e[_0x5d9dc1(0x427)][_0x5d9dc1(0x446)],'data':{'changesets':_0x55279f}}});})[_0x1468f2(0x3dc)](_0x19d9e8=>{const _0x171c5d=_0x1468f2;this['_logService'][_0x171c5d(0x492)](_0x19d9e8),_0x18779a();});return;}}_0x1b88b6['send'](Ke(_0x4f420d));},'close':()=>{const _0x30d754=_0x3173a9;_0x1b88b6[_0x30d754(0x37d)](),_0x2b6dc4[_0x30d754(0x328)]();}},_0x3c4e1a;}async[_0x47c516(0x509)](_0x33b6e4,_0x377c95){const _0xa4fac2=_0x47c516;let {unitType:_0x347af0,unitID:_0x2769e6,changeset:_0x2eb819}=_0x377c95[_0xa4fac2(0x3cf)],_0x1ef198={'unitID':_0x2769e6,'memberID':_0x33b6e4[_0xa4fac2(0x46e)],'type':_0x347af0,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x2eb819)},_0x32a64f=this['_configService']['getConfig'](m),_0x117d33=Je((_0x32a64f==null?void 0x0:_0x32a64f[_0xa4fac2(0x3c6)])??'/universer-api/comb',_0x347af0,_0x2769e6);try{await this[_0xa4fac2(0x503)][_0xa4fac2(0x29f)](_0x117d33,{'body':_0x1ef198});}catch(_0x17d144){throw this[_0xa4fac2(0x266)][_0xa4fac2(0x492)](_0xa4fac2(0x239),'submit\x20changeset\x20error!'),_0x17d144;}}async[_0x47c516(0x41d)](_0x362ee3){const _0x28cab4=_0x47c516;let {unitID:_0x57f476,from:_0x4479df,to:_0x59fd7d,unitType:_0x5ed9bb}=_0x362ee3[_0x28cab4(0x3cf)];return(await this[_0x28cab4(0x1ff)][_0x28cab4(0x330)]({'metadata':void 0x0},{'unitID':_0x57f476,'type':_0x5ed9bb,'from':_0x4479df,'to':_0x59fd7d}))['changesets'][_0x28cab4(0x41a)](_0x23bc7d=>((_0x23bc7d[_0x28cab4(0x223)]===null||_0x23bc7d[_0x28cab4(0x223)]===void 0x0)&&(_0x23bc7d['mutations']=[]),_0x23bc7d));}};Ye=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x2,t[_0x47c516(0x2ae)]),v(0x3,t[_0x47c516(0x4e0)]),v(0x4,e['ISnapshotServerService'])],Ye);const Xe=(0x0,t[_0x47c516(0x4a4)])('univer-pro.collaboration-client-adapter-service');function Ze(_0x2ccc1a={}){const _0x47b8d5=_0x47c516;return _0x2ccc1a['resolveUnit']?{'resolveUnit':_0x2ccc1a[_0x47b8d5(0x3f2)]}:{'resolveUnit':_0x3e5a43=>({'target':{'unitId':_0x3e5a43[_0x47b8d5(0x220)],'unitType':_0x3e5a43[_0x47b8d5(0x4aa)]}})};}function Qe(_0x57b33a,_0x18fbac,_0x22a09f){const _0x53f5c7=_0x47c516;let _0x1057d9=_0x22a09f[_0x53f5c7(0x2cf)][_0x53f5c7(0x4b8)];if(_0x1057d9!=null&&_0x1057d9['trim']()==='')throw Error(_0x53f5c7(0x305));if(!_0x22a09f[_0x53f5c7(0x2cf)][_0x53f5c7(0x220)])throw Error(_0x53f5c7(0x2ba));return{'localUnitId':_0x57b33a,'unitType':_0x18fbac,'target':{'endpoint':_0x1057d9,'unitId':_0x22a09f[_0x53f5c7(0x2cf)]['unitId'],'unitType':_0x22a09f[_0x53f5c7(0x2cf)][_0x53f5c7(0x4aa)]??_0x18fbac},'changeset':_0x22a09f[_0x53f5c7(0x28a)]};}let V=class extends t[_0x47c516(0x542)]{constructor(_0x1331bf,_0x4f4244,_0x41a1d4,_0x916a98,_0x525495,_0x3a5c28){const _0x573c05=_0x47c516;super(),this[_0x573c05(0x400)]=_0x1331bf,this[_0x573c05(0x266)]=_0x4f4244,this[_0x573c05(0x469)]=_0x41a1d4,this[_0x573c05(0x321)]=_0x916a98,this['_collaborationUIEventService']=_0x525495,this['_adapter']=_0x3a5c28,g(this,_0x573c05(0x381),new Map()),g(this,_0x573c05(0x44a),new Map()),g(this,_0x573c05(0x23f),new Map()),g(this,_0x573c05(0x4cc),new Map()),g(this,_0x573c05(0x524),void 0x0),g(this,_0x573c05(0x51b),this[_0x573c05(0x3b2)](void 0x0)[_0x573c05(0x51b)][_0x573c05(0x404)]()),g(this,_0x573c05(0x49a),new i[(_0x573c05(0x2f4))](0x0)),g(this,_0x573c05(0x387),this['_status$'][_0x573c05(0x404)]());}[_0x47c516(0x4c3)](){const _0x417c99=_0x47c516;this['_networkConditionService']||(this[_0x417c99(0x524)]=this[_0x417c99(0x400)]['get'](We,t[_0x417c99(0x2c9)][_0x417c99(0x442)])??void 0x0,this['_networkConditionService']&&this[_0x417c99(0x4dc)](this[_0x417c99(0x524)][_0x417c99(0x35d)]['subscribe'](_0x1e7c04=>{const _0x5769ce=_0x417c99;_0x1e7c04&&this[_0x5769ce(0x389)](),_0x1e7c04||this['_socketChannels'][_0x5769ce(0x4b1)](_0x4db9d6=>this['_onOffline'](_0x4db9d6));})));}['dispose'](){const _0x7e871b=_0x47c516;super[_0x7e871b(0x328)](),this[_0x7e871b(0x4cc)][_0x7e871b(0x4b1)](_0x30b03d=>{const _0x3df5f9=_0x7e871b;var _0x5ea9df,_0xa31039,_0x203cf8;(_0x5ea9df=_0x30b03d[_0x3df5f9(0x472)])==null||_0x5ea9df[_0x3df5f9(0x44d)](),_0x30b03d[_0x3df5f9(0x472)]=null,this[_0x3df5f9(0x3f7)](_0x30b03d),this[_0x3df5f9(0x3af)](_0x30b03d),this[_0x3df5f9(0x515)](_0x30b03d),this[_0x3df5f9(0x488)](_0x30b03d),(_0xa31039=_0x30b03d[_0x3df5f9(0x51b)][_0x3df5f9(0x28b)]())==null||_0xa31039[_0x3df5f9(0x37d)](),(_0x203cf8=_0x30b03d['candidateSocket'])==null||_0x203cf8[_0x3df5f9(0x37d)](),_0x30b03d[_0x3df5f9(0x51b)][_0x3df5f9(0x2ce)]();}),this['_socketChannels']['clear'](),this[_0x7e871b(0x381)][_0x7e871b(0x4b1)](_0x34ed06=>_0x34ed06[_0x7e871b(0x328)]()),this[_0x7e871b(0x381)][_0x7e871b(0x4c9)](),this[_0x7e871b(0x23f)][_0x7e871b(0x4c9)](),this[_0x7e871b(0x49a)][_0x7e871b(0x2ce)]();}async[_0x47c516(0x38c)](_0x56223a,_0x343079){const _0x345d26=_0x47c516;if(this[_0x345d26(0x4c3)](),this[_0x345d26(0x381)][_0x345d26(0x51d)](_0x56223a))return this['_sessions']['get'](_0x56223a);let _0xef0fa=this[_0x345d26(0x44a)][_0x345d26(0x1fa)](_0x56223a);if(_0xef0fa)return _0xef0fa;let _0x349573=this['_createSession'](_0x56223a,_0x343079);this['_pendingSessions'][_0x345d26(0x2f5)](_0x56223a,_0x349573);try{return await _0x349573;}finally{this[_0x345d26(0x44a)][_0x345d26(0x512)](_0x56223a);}}async['_createSession'](_0x5864f5,_0x20cf87){const _0x448b62=_0x47c516;let _0x437296=await this[_0x448b62(0x3ba)](_0x5864f5,_0x20cf87),_0x1cb261=this[_0x448b62(0x3b2)](_0x437296[_0x448b62(0x2cf)][_0x448b62(0x4b8)]);this['_tryEnsureSocket'](_0x1cb261);let _0x1b52fb=this[_0x448b62(0x400)][_0x448b62(0x341)](ve,_0x437296,_0x1cb261[_0x448b62(0x51b)][_0x448b62(0x404)]());return this[_0x448b62(0x381)][_0x448b62(0x2f5)](_0x5864f5,_0x1b52fb),this['_sessionChannels'][_0x448b62(0x2f5)](_0x5864f5,_0x1cb261[_0x448b62(0x3e1)]),_0x1b52fb;}[_0x47c516(0x4ae)](_0x399873){const _0x2d4044=_0x47c516;let _0x370cca=this[_0x2d4044(0x381)][_0x2d4044(0x1fa)](_0x399873),_0x272921=this['_sessionChannels'][_0x2d4044(0x1fa)](_0x399873);if(_0x370cca&&(this[_0x2d4044(0x381)][_0x2d4044(0x512)](_0x399873),this['_sessionChannels'][_0x2d4044(0x512)](_0x399873),_0x370cca[_0x2d4044(0x37d)]()),_0x272921!==void 0x0&&!this[_0x2d4044(0x24f)](_0x272921)){let _0x59a305=this[_0x2d4044(0x4cc)][_0x2d4044(0x1fa)](_0x272921);_0x59a305&&this[_0x2d4044(0x412)](_0x59a305);}}[_0x47c516(0x389)](){const _0x224e31=_0x47c516;(this[_0x224e31(0x4cc)][_0x224e31(0x2d9)]?[...this[_0x224e31(0x4cc)][_0x224e31(0x283)]()]:[this[_0x224e31(0x3b2)](void 0x0)])[_0x224e31(0x4b1)](_0x245a43=>{const _0x298799=_0x224e31;!this[_0x298799(0x24f)](_0x245a43[_0x298799(0x3e1)])||_0x245a43[_0x298799(0x42b)]||_0x245a43[_0x298799(0x2a8)]||_0x245a43[_0x298799(0x249)]||(_0x245a43[_0x298799(0x221)]=0x0,this[_0x298799(0x3af)](_0x245a43),this['_tryReconnect'](_0x245a43));});}['_clearRetryConnectingTimer'](_0xe39d0b){const _0x5f3003=_0x47c516;_0xe39d0b['retryConnectingTimer']!=null&&(clearTimeout(_0xe39d0b[_0x5f3003(0x2eb)]),_0xe39d0b[_0x5f3003(0x2eb)]=null);}[_0x47c516(0x531)](_0x12a89f){const _0x198a48=_0x47c516;let _0x1a87cd=this[_0x198a48(0x469)][_0x198a48(0x33e)](m),_0x56e4c3=_0x12a89f[_0x198a48(0x4b8)]??(_0x1a87cd==null?void 0x0:_0x1a87cd[_0x198a48(0x544)])??_0x198a48(0x215);return this['_socketService']['createSocket'](_0x56e4c3);}async[_0x47c516(0x3ea)](_0x363bf1){const _0x5ebb3a=_0x47c516;var _0x371171;if(this['_disposed']||((_0x371171=this[_0x5ebb3a(0x524)])==null?void 0x0:_0x371171['online'])===!0x1||_0x363bf1[_0x5ebb3a(0x42b)]||_0x363bf1['candidateSocket']||_0x363bf1['connectionAttempt'])return;let _0x87e9b7={};_0x363bf1[_0x5ebb3a(0x249)]=_0x87e9b7;try{let _0x41f58f=await this[_0x5ebb3a(0x531)](_0x363bf1);if(this[_0x5ebb3a(0x440)]||_0x363bf1[_0x5ebb3a(0x249)]!==_0x87e9b7){_0x41f58f==null||_0x41f58f['close']();return;}if(_0x41f58f){var _0x187cdc;_0x363bf1[_0x5ebb3a(0x2a8)]=_0x41f58f,_0x363bf1['handshakeTimer']=setTimeout(()=>{const _0x562f19=_0x5ebb3a;!this['_disposed']&&_0x363bf1[_0x562f19(0x2a8)]===_0x41f58f&&this[_0x562f19(0x2f8)](_0x363bf1);},0x4e20);let _0x3b4873=_0x41f58f[_0x5ebb3a(0x422)];_0x41f58f['send']=_0x1c2dc4=>(_0x1c2dc4[_0x5ebb3a(0x3ab)]!==a['CombCmd'][_0x5ebb3a(0x269)]&&_0x363bf1[_0x5ebb3a(0x42b)]&&_0x363bf1[_0x5ebb3a(0x51b)][_0x5ebb3a(0x28b)]()===_0x41f58f&&this[_0x5ebb3a(0x3ec)](_0x363bf1),_0x3b4873['apply'](_0x41f58f,[_0x1c2dc4])),(_0x187cdc=_0x363bf1['socketSubscription'])==null||_0x187cdc['unsubscribe']();let _0x5a5f3a=new i['Subscription']();_0x363bf1[_0x5ebb3a(0x472)]=_0x5a5f3a,_0x5a5f3a['add'](_0x41f58f[_0x5ebb3a(0x279)][_0x5ebb3a(0x51a)](_0x3b3862=>this['_onMessage'](_0x363bf1,_0x41f58f,_0x3b3862))),_0x5a5f3a[_0x5ebb3a(0x22f)](_0x41f58f[_0x5ebb3a(0x464)][_0x5ebb3a(0x3e8)]((0x0,s[_0x5ebb3a(0x4e8)])(0x1))[_0x5ebb3a(0x51a)](_0xa7767d=>this[_0x5ebb3a(0x266)]['error'](_0x5ebb3a(0x329),_0xa7767d))),_0x5a5f3a[_0x5ebb3a(0x22f)](_0x41f58f[_0x5ebb3a(0x3ca)]['pipe']((0x0,s['take'])(0x1))[_0x5ebb3a(0x51a)](()=>{const _0x16a729=_0x5ebb3a;this[_0x16a729(0x318)](_0x363bf1,_0x41f58f);})),_0x5a5f3a[_0x5ebb3a(0x22f)](_0x41f58f[_0x5ebb3a(0x2c4)]['pipe']((0x0,s[_0x5ebb3a(0x4e8)])(0x1))[_0x5ebb3a(0x51a)](_0xaca9f6=>{const _0x1b616c=_0x5ebb3a;(_0x363bf1['candidateSocket']===_0x41f58f||_0x363bf1[_0x1b616c(0x51b)][_0x1b616c(0x28b)]()===_0x41f58f)&&(this['_logService']['debug'](_0x1b616c(0x49f),'socket\x20close',_0xaca9f6),this[_0x1b616c(0x2f8)](_0x363bf1));}));}}catch(_0xe1446){if(_0x363bf1['connectionAttempt']!==_0x87e9b7)return;this[_0x5ebb3a(0x266)][_0x5ebb3a(0x492)](_0xe1446),this[_0x5ebb3a(0x2f8)](_0x363bf1);}finally{_0x363bf1[_0x5ebb3a(0x249)]===_0x87e9b7&&(_0x363bf1['connectionAttempt']=null);}}['_onConnectionOpen'](_0x20424b,_0x4687df){const _0x37faa3=_0x47c516;this[_0x37faa3(0x440)]||_0x20424b[_0x37faa3(0x2a8)]!==_0x4687df||(this[_0x37faa3(0x266)][_0x37faa3(0x3c4)](_0x37faa3(0x49f),'socket\x20open.'),_0x4687df[_0x37faa3(0x422)]({'cmd':a[_0x37faa3(0x513)]['HELLO']}));}['_onOffline'](_0x44ba15){const _0x27fdd2=_0x47c516;var _0x54b633;let _0x375c03=_0x44ba15[_0x27fdd2(0x51b)][_0x27fdd2(0x28b)]()??_0x44ba15[_0x27fdd2(0x2a8)];_0x44ba15[_0x27fdd2(0x249)]=null,_0x44ba15['socketReady']=!0x1,_0x44ba15[_0x27fdd2(0x2a8)]=null,(_0x54b633=_0x44ba15[_0x27fdd2(0x472)])==null||_0x54b633[_0x27fdd2(0x44d)](),_0x44ba15['socketSubscription']=null,this[_0x27fdd2(0x49a)][_0x27fdd2(0x485)](0x2),_0x44ba15[_0x27fdd2(0x51b)]['next'](null),this[_0x27fdd2(0x3af)](_0x44ba15),this[_0x27fdd2(0x3f7)](_0x44ba15),this['_clearTimeoutTimer'](_0x44ba15),this[_0x27fdd2(0x488)](_0x44ba15),_0x375c03==null||_0x375c03[_0x27fdd2(0x37d)]();}[_0x47c516(0x2f8)](_0x1b5198){const _0x17ace0=_0x47c516;var _0x590c0f;this['_onOffline'](_0x1b5198),!this[_0x17ace0(0x440)]&&((_0x590c0f=this[_0x17ace0(0x524)])==null?void 0x0:_0x590c0f[_0x17ace0(0x1f2)])!==!0x1&&this[_0x17ace0(0x24f)](_0x1b5198[_0x17ace0(0x3e1)])&&(_0x1b5198['retryCount']<(this['_configService'][_0x17ace0(0x33e)](_0x17ace0(0x31e))??0x3)?(this[_0x17ace0(0x396)][_0x17ace0(0x315)]({'id':_0x17ace0(0x3fb)}),this[_0x17ace0(0x42c)](_0x1b5198)):this[_0x17ace0(0x396)][_0x17ace0(0x315)]({'id':_0x17ace0(0x4ce)}));}['_tryReconnect'](_0x4ab34d){const _0x38b213=_0x47c516;let _0x20468c=_0x4ab34d[_0x38b213(0x221)],_0x583479=this[_0x38b213(0x469)][_0x38b213(0x33e)](m),_0x487b89=_0x20468c===0x0?0x0:((_0x583479==null?void 0x0:_0x583479[_0x38b213(0x529)])??0x4e20)*0x2**_0x20468c;_0x4ab34d['retryConnectingTimer']=setTimeout(()=>{const _0x1caba2=_0x38b213;clearTimeout(_0x4ab34d[_0x1caba2(0x2eb)]),_0x4ab34d['retryConnectingTimer']=null,this[_0x1caba2(0x3ea)](_0x4ab34d);},_0x487b89),_0x4ab34d[_0x38b213(0x221)]+=0x1;}async[_0x47c516(0x3ba)](_0x57e69d,_0x5f5521){const _0x56fd03=_0x47c516;return Qe(_0x57e69d,_0x5f5521,await this[_0x56fd03(0x3d1)][_0x56fd03(0x3f2)]({'unitId':_0x57e69d,'unitType':_0x5f5521}));}['_onMessage'](_0x334421,_0x415a3b,_0x2d59b5){const _0x2fa49e=_0x47c516;if(this[_0x2fa49e(0x440)]||_0x334421[_0x2fa49e(0x2a8)]!==_0x415a3b&&_0x334421[_0x2fa49e(0x51b)][_0x2fa49e(0x28b)]()!==_0x415a3b)return;let {cmd:_0x4df583}=_0x2d59b5;if(_0x4df583===a[_0x2fa49e(0x513)][_0x2fa49e(0x445)]&&!_0x334421['socketReady']){var _0x35ae99;if((_0x2d59b5[_0x2fa49e(0x30a)]??a[_0x2fa49e(0x487)]['OK'])!==a[_0x2fa49e(0x487)]['OK']||!((_0x35ae99=_0x2d59b5['data'])!=null&&_0x35ae99[_0x2fa49e(0x46e)])){this[_0x2fa49e(0x2f8)](_0x334421);return;}this[_0x2fa49e(0x3f7)](_0x334421),_0x415a3b[_0x2fa49e(0x46e)]=_0x2d59b5['data'][_0x2fa49e(0x46e)],_0x334421[_0x2fa49e(0x221)]=0x0,_0x334421[_0x2fa49e(0x42b)]=!0x0,_0x334421['candidateSocket']=null,_0x334421['socket$']['next'](_0x415a3b),this['_status$']['next'](0x3);}_0x4df583===a['CombCmd'][_0x2fa49e(0x2f3)]&&this[_0x2fa49e(0x515)](_0x334421),this['_rescheduleHeartbeat'](_0x334421);}[_0x47c516(0x24f)](_0x4ec065){const _0x3a8c90=_0x47c516;return[...this[_0x3a8c90(0x23f)][_0x3a8c90(0x283)]()]['some'](_0x3fc933=>_0x3fc933===_0x4ec065);}[_0x47c516(0x3b2)](_0x1e49c3){const _0x5f2b10=_0x47c516;let _0x57fa7c=_0x1e49c3??'',_0x11f692=this[_0x5f2b10(0x4cc)]['get'](_0x57fa7c);if(_0x11f692)return _0x11f692;let _0x5f1ce6={'endpointKey':_0x57fa7c,'endpoint':_0x1e49c3,'socket$':new i[(_0x5f2b10(0x2f4))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5f2b10(0x4cc)][_0x5f2b10(0x2f5)](_0x57fa7c,_0x5f1ce6),_0x5f1ce6;}[_0x47c516(0x3f7)](_0x14067c){const _0x50cb53=_0x47c516;_0x14067c[_0x50cb53(0x234)]!=null&&(clearTimeout(_0x14067c[_0x50cb53(0x234)]),_0x14067c[_0x50cb53(0x234)]=null);}[_0x47c516(0x3ec)](_0x2c7044){const _0x299674=_0x47c516;this[_0x299674(0x488)](_0x2c7044),_0x2c7044[_0x299674(0x42b)]&&(_0x2c7044['sendHeartbeatTimer']=setTimeout(()=>this[_0x299674(0x23b)](_0x2c7044),this['_configService'][_0x299674(0x33e)](_0x299674(0x418))??0x7530));}[_0x47c516(0x23b)](_0x1fbfaa){const _0x3090a3=_0x47c516;let _0x49eca5=_0x1fbfaa[_0x3090a3(0x51b)][_0x3090a3(0x28b)]();_0x1fbfaa[_0x3090a3(0x42b)]&&_0x49eca5&&(_0x49eca5[_0x3090a3(0x422)]({'cmd':a[_0x3090a3(0x513)][_0x3090a3(0x2f3)]}),this[_0x3090a3(0x337)](_0x1fbfaa));}[_0x47c516(0x337)](_0x18d6b8){const _0x40549b=_0x47c516;_0x18d6b8['timeoutTimer']=setTimeout(()=>this[_0x40549b(0x2f8)](_0x18d6b8),this[_0x40549b(0x469)][_0x40549b(0x33e)]('HEARTBEAT_TIMEOUT')??0x4e20);}['_clearHeartbeatTimer'](_0x2ad265){const _0x22968e=_0x47c516;_0x2ad265[_0x22968e(0x4d9)]!=null&&(clearTimeout(_0x2ad265['sendHeartbeatTimer']),_0x2ad265[_0x22968e(0x4d9)]=null);}[_0x47c516(0x515)](_0x1e3a71){const _0x3ac7e4=_0x47c516;_0x1e3a71[_0x3ac7e4(0x43d)]!=null&&(clearTimeout(_0x1e3a71[_0x3ac7e4(0x43d)]),_0x1e3a71['timeoutTimer']=null);}};V=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,t[_0x47c516(0x4e0)]),v(0x2,t['IConfigService']),v(0x3,qe),v(0x4,(0x0,t[_0x47c516(0x528)])(_)),v(0x5,Xe)],V);let H=class extends t[_0x47c516(0x3b6)]{constructor(_0x4fc1be,_0xaa4f8c,_0x537c29,_0x3a8e2b){const _0x449c60=_0x47c516;var _0x256cba;super(),this[_0x449c60(0x400)]=_0x4fc1be,this[_0x449c60(0x3b3)]=_0xaa4f8c,this[_0x449c60(0x469)]=_0x537c29,this[_0x449c60(0x2af)]=_0x3a8e2b,g(this,_0x449c60(0x2f6),new Map()),g(this,'_entityInit$',new i[(_0x449c60(0x369))]()),g(this,_0x449c60(0x545),this[_0x449c60(0x2ff)][_0x449c60(0x404)]()),((_0x256cba=this['_configService'][_0x449c60(0x33e)](_0x449c60(0x313)))==null?void 0x0:_0x256cba[_0x449c60(0x2d0)])!==!0x1&&this['_init']();}[_0x47c516(0x328)](){const _0x2f5322=_0x47c516;super[_0x2f5322(0x328)](),this[_0x2f5322(0x2f6)]['forEach'](_0x56b3ae=>_0x56b3ae[_0x2f5322(0x328)]()),this[_0x2f5322(0x2f6)][_0x2f5322(0x4c9)]();}[_0x47c516(0x421)](_0x2144b6){const _0xee2ecd=_0x47c516;return this[_0xee2ecd(0x2f6)][_0xee2ecd(0x1fa)](_0x2144b6)??null;}[_0x47c516(0x4e5)](_0x58151e){const _0x57bf41=_0x47c516;let _0x312380=this[_0x57bf41(0x421)](_0x58151e);return _0x312380?(0x0,i['of'])(_0x312380):this[_0x57bf41(0x2ff)][_0x57bf41(0x3e8)]((0x0,s[_0x57bf41(0x441)])(_0x3e2015=>_0x3e2015[_0x57bf41(0x4e9)]===_0x58151e));}[_0x47c516(0x340)](_0x53460c){const _0x8f5458=_0x47c516;return(0x0,i[_0x8f5458(0x36d)])(this['getCollabEntity$'](_0x53460c)[_0x8f5458(0x3e8)]((0x0,s[_0x8f5458(0x41a)])(()=>void 0x0)));}[_0x47c516(0x2c7)](){const _0x43e2a7=_0x47c516;this['_univerInstanceService'][_0x43e2a7(0x2ee)](t['UniverInstanceType'][_0x43e2a7(0x4ab)])[_0x43e2a7(0x3e8)]((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x43e2a7(0x45a)])(0x10))[_0x43e2a7(0x51a)](async _0x58a050=>{const _0x14fc65=_0x43e2a7;let _0x75212c=_0x58a050['unit'][_0x14fc65(0x4fc)](),_0x278b0f=await this[_0x14fc65(0x25a)](_0x75212c,t[_0x14fc65(0x4f3)][_0x14fc65(0x4ab)]);this[_0x14fc65(0x2f6)][_0x14fc65(0x2f5)](_0x75212c,_0x278b0f);}),this['_univerInstanceService'][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x48e)])[_0x43e2a7(0x3e8)]((0x0,i[_0x43e2a7(0x357)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x43e2a7(0x3e8)]((0x0,s['filter'])(_0x3358a9=>!_0x3358a9[_0x43e2a7(0x480)][_0x43e2a7(0x4fc)]()[_0x43e2a7(0x38d)]('__')))[_0x43e2a7(0x51a)](async _0x3dde4b=>{const _0x4bca5c=_0x43e2a7;let _0x157108=_0x3dde4b[_0x4bca5c(0x480)][_0x4bca5c(0x4fc)](),_0x29deb6=await this['_startCollaboration'](_0x157108,t[_0x4bca5c(0x4f3)]['UNIVER_DOC']);this[_0x4bca5c(0x2f6)]['set'](_0x157108,_0x29deb6);}),this[_0x43e2a7(0x2af)][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x2b4)])['pipe']((0x0,i[_0x43e2a7(0x357)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x43e2a7(0x51a)](async _0x32f6e2=>{const _0xb8a53d=_0x43e2a7;let _0xca2b1e=_0x32f6e2[_0xb8a53d(0x480)][_0xb8a53d(0x4fc)](),_0x58af0b=await this[_0xb8a53d(0x25a)](_0xca2b1e,t['UniverInstanceType']['UNIVER_SLIDE']);this[_0xb8a53d(0x2f6)][_0xb8a53d(0x2f5)](_0xca2b1e,_0x58af0b);}),this[_0x43e2a7(0x2af)]['getTypeOfUnitAdded$'](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x48f)])['pipe']((0x0,i[_0x43e2a7(0x357)])(this[_0x43e2a7(0x25f)]),(0x0,s[_0x43e2a7(0x45a)])(0x10))[_0x43e2a7(0x51a)](async _0x2d0567=>{const _0x777777=_0x43e2a7;let _0x10b14f=_0x2d0567[_0x777777(0x480)][_0x777777(0x4fc)](),_0x141cc5=await this[_0x777777(0x25a)](_0x10b14f,t['UniverInstanceType'][_0x777777(0x48f)]);this[_0x777777(0x2f6)]['set'](_0x10b14f,_0x141cc5);}),this[_0x43e2a7(0x2af)][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)]['UNIVER_BASE'])[_0x43e2a7(0x3e8)]((0x0,i[_0x43e2a7(0x357)])(this[_0x43e2a7(0x25f)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x1d05f2=>{const _0x2986ab=_0x43e2a7;let _0x2c38e1=_0x1d05f2['unit'][_0x2986ab(0x4fc)](),_0x42cafa=await this[_0x2986ab(0x25a)](_0x2c38e1,t[_0x2986ab(0x4f3)][_0x2986ab(0x4d1)]);this[_0x2986ab(0x2f6)][_0x2986ab(0x2f5)](_0x2c38e1,_0x42cafa);}),this['_univerInstanceService'][_0x43e2a7(0x2ee)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4a7)])['pipe']((0x0,i['takeUntil'])(this[_0x43e2a7(0x25f)]),(0x0,s[_0x43e2a7(0x45a)])(0x10))['subscribe'](async _0x542676=>{const _0x531721=_0x43e2a7;let _0x154a87=_0x542676['unit']['getUnitId'](),_0x19289a=await this['_startCollaboration'](_0x154a87,t[_0x531721(0x4f3)][_0x531721(0x4a7)]);this[_0x531721(0x2f6)][_0x531721(0x2f5)](_0x154a87,_0x19289a);}),(0x0,i['merge'])(this[_0x43e2a7(0x2af)][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4ab)]),this[_0x43e2a7(0x2af)][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x48e)]),this['_univerInstanceService'][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)]['UNIVER_SLIDE']),this[_0x43e2a7(0x2af)][_0x43e2a7(0x4bf)](t[_0x43e2a7(0x4f3)]['UNIVER_BOARD']),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4d1)]),this[_0x43e2a7(0x2af)]['getTypeOfUnitDisposed$'](t[_0x43e2a7(0x4f3)][_0x43e2a7(0x4a7)]))[_0x43e2a7(0x3e8)]((0x0,i[_0x43e2a7(0x357)])(this[_0x43e2a7(0x25f)]))['subscribe'](_0x38b6e1=>{const _0x1f3125=_0x43e2a7;let _0x4a2cfe=_0x38b6e1[_0x1f3125(0x4fc)](),_0x5abd64=this['_entities']['get'](_0x4a2cfe);_0x5abd64&&(_0x5abd64[_0x1f3125(0x328)](),this['_entities'][_0x1f3125(0x512)](_0x4a2cfe));});}async[_0x47c516(0x25a)](_0x4130a6,_0x293741){const _0x1e9ad2=_0x47c516;let _0xec4247=await this[_0x1e9ad2(0x3b3)]['requireSession'](_0x4130a6),_0x379237=this['_injector']['createInstance'](this[_0x1e9ad2(0x32f)](_0x293741),_0x4130a6,_0x293741,_0xec4247);return await _0x379237[_0x1e9ad2(0x243)](),this[_0x1e9ad2(0x2ff)]['next'](_0x379237),_0x379237;}[_0x47c516(0x32f)](_0x2b6cb1){const _0x55b91e=_0x47c516;switch(_0x2b6cb1){case t[_0x55b91e(0x4f3)][_0x55b91e(0x48e)]:return F;case t[_0x55b91e(0x4f3)]['UNIVER_SHEET']:return L;case t[_0x55b91e(0x4f3)][_0x55b91e(0x2b4)]:return R;case t['UniverInstanceType'][_0x55b91e(0x48f)]:return z;case t[_0x55b91e(0x4f3)][_0x55b91e(0x4d1)]:return I;case t[_0x55b91e(0x4f3)]['UNIVER_PDF']:return B;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2b6cb1);}}};H=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t[_0x47c516(0x2ae)]),v(0x3,t[_0x47c516(0x493)])],H);var $e=_0x47c516(0x38e),et=_0x47c516(0x327);let tt=class extends t[_0x47c516(0x542)]{constructor(_0xada6b8,_0x2e4fc4){const _0x3460e0=_0x47c516;super(),this[_0x3460e0(0x2af)]=_0xada6b8,this['_configService']=_0x2e4fc4,this[_0x3460e0(0x2c7)]();}['_init'](){const _0xc2156=_0x47c516;this[_0xc2156(0x4dc)](this['_univerInstanceService'][_0xc2156(0x314)][_0xc2156(0x51a)](()=>{const _0x5c49ba=_0xc2156;let _0x38bc11=this[_0x5c49ba(0x2af)][_0x5c49ba(0x409)](),_0x1f3d37=this['_configService'][_0x5c49ba(0x33e)](_0x5c49ba(0x284))??_0x5c49ba(0x33d);_0x38bc11 instanceof t[_0x5c49ba(0x2e4)]&&(_0x1f3d37=_0x38bc11[_0x5c49ba(0x310)]),document[_0x5c49ba(0x3d6)]=_0x1f3d37;}));}};tt=y([v(0x0,t[_0x47c516(0x493)]),v(0x1,t[_0x47c516(0x2ae)])],tt);const nt=(0x0,t[_0x47c516(0x4a4)])('base-ui.attachment-io.service');let U=class{constructor(_0x469b12,_0x4d369b,_0x2235ce){const _0x4b766f=_0x47c516;this[_0x4b766f(0x503)]=_0x469b12,this[_0x4b766f(0x469)]=_0x4d369b,this[_0x4b766f(0x2af)]=_0x2235ce;}[_0x47c516(0x40d)](){const _0x45d218=_0x47c516;return this[_0x45d218(0x4ee)]()[_0x45d218(0x2ca)]??{};}async[_0x47c516(0x25d)](_0x3847b7){const _0x1c6c0f=_0x47c516;let _0x2f3d8a=this[_0x1c6c0f(0x40d)]();if(rt(_0x3847b7,_0x2f3d8a),_0x2f3d8a[_0x1c6c0f(0x2a7)])return _0x2f3d8a['upload'](_0x3847b7);let _0x569b58=await this['_upload'](_0x3847b7);return{'id':_0x569b58,'name':_0x3847b7[_0x1c6c0f(0x310)],'mimeType':_0x3847b7[_0x1c6c0f(0x1fe)],'size':_0x3847b7[_0x1c6c0f(0x2d9)],'sourceType':t[_0x1c6c0f(0x230)][_0x1c6c0f(0x4d7)],'source':_0x569b58};}async[_0x47c516(0x3ce)](_0x17395c,_0x569774){const _0x21e364=_0x47c516;if(_0x569774!==t[_0x21e364(0x230)]['UUID'])return _0x17395c;let _0x3318a2=(await this[_0x21e364(0x503)][_0x21e364(0x1fa)](this['_getSignURL']()[_0x21e364(0x275)](_0x21e364(0x317),_0x17395c)))[_0x21e364(0x268)];if(_0x3318a2[_0x21e364(0x492)]&&_0x3318a2[_0x21e364(0x492)]['code']!==a[_0x21e364(0x214)]['OK'])throw _0x3318a2['error'];if(!_0x3318a2[_0x21e364(0x2c5)])throw Error(_0x21e364(0x2d3));return(0x0,t[_0x21e364(0x1f5)])(_0x3318a2[_0x21e364(0x2c5)],this[_0x21e364(0x334)]());}async[_0x47c516(0x34e)](_0x484eb5){const _0x7f6d70=_0x47c516;let _0x40b7cb=this[_0x7f6d70(0x2af)][_0x7f6d70(0x409)](),_0x1407cd=_0x40b7cb==null?void 0x0:_0x40b7cb[_0x7f6d70(0x4fc)]();if(!_0x1407cd)throw Error(_0x7f6d70(0x402));let _0x51edb2=new FormData();_0x51edb2[_0x7f6d70(0x293)](_0x7f6d70(0x281),_0x484eb5);let _0x35c2c9=this['_getUploadFileURL']()+'?size='+_0x484eb5['size']['toString']()+'&source='+a['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1407cd),_0x1766d6=(await this[_0x7f6d70(0x503)]['post'](_0x35c2c9,{'body':_0x51edb2}))[_0x7f6d70(0x268)]['FileId'];if(typeof _0x1766d6!=_0x7f6d70(0x46a)||!_0x1766d6)throw Error(_0x7f6d70(0x2ed));return _0x1766d6;}[_0x47c516(0x264)](){const _0x8cdbbc=_0x47c516;return this['_getConfig']()['uploadFileServerUrl']??_0x8cdbbc(0x48a);}[_0x47c516(0x425)](){const _0x414d7b=_0x47c516;return this[_0x414d7b(0x4ee)]()['signUrlServerUrl']??_0x414d7b(0x24e);}[_0x47c516(0x334)](){const _0x543d99=_0x47c516;let _0x62e88=this[_0x543d99(0x4ee)]();return _0x62e88[_0x543d99(0x454)]?_0x62e88['downloadEndpointUrl']:typeof location<'u'?location[_0x543d99(0x365)]:_0x62e88[_0x543d99(0x2df)]??'';}[_0x47c516(0x4ee)](){const _0x323863=_0x47c516;return this['_configService'][_0x323863(0x33e)](_0x323863(0x313))??{};}};U=y([v(0x0,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x1,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x2ae)])),v(0x2,(0x0,t['Inject'])(t[_0x47c516(0x493)]))],U);function rt(_0x21e556,_0x4a89e8){const _0x456211=_0x47c516;var _0xb5af35;if(_0x4a89e8['maxSize']!=null&&_0x21e556[_0x456211(0x2d9)]>_0x4a89e8[_0x456211(0x24c)])throw Error(_0x456211(0x32b));if((_0xb5af35=_0x4a89e8[_0x456211(0x24b)])!=null&&_0xb5af35[_0x456211(0x476)]&&!_0x4a89e8[_0x456211(0x24b)][_0x456211(0x3e9)](_0x12ae28=>_0x21e556[_0x456211(0x1fe)]===_0x12ae28||_0x21e556[_0x456211(0x310)][_0x456211(0x30e)](_0x12ae28)||_0x12ae28[_0x456211(0x30e)]('/*')&&_0x21e556[_0x456211(0x1fe)][_0x456211(0x38d)](_0x12ae28[_0x456211(0x33a)](0x0,-0x1))))throw Error(_0x456211(0x37f));}let W=class{constructor(_0x469ce5,_0x59a34d,_0x17c65d){const _0x116d1d=_0x47c516;this[_0x116d1d(0x469)]=_0x469ce5,this[_0x116d1d(0x503)]=_0x59a34d,this['localeService']=_0x17c65d,this[_0x116d1d(0x243)]();}[_0x47c516(0x243)](){const _0x3293d8=_0x47c516;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x439a00,_0x23744a)=>_0x23744a(_0x439a00)[_0x3293d8(0x3e8)]((0x0,i[_0x3293d8(0x52c)])(async _0x5be297=>{const _0x3b3089=_0x3293d8;let _0x386b84=_0x5be297;if(_0x386b84[_0x3b3089(0x4f5)]===0x191){if(typeof window>'u')throw Error(_0x3b3089(0x256));if(window[_0x3b3089(0x31f)](this[_0x3b3089(0x47d)]['t'](_0x3b3089(0x411)))){let _0x14dd4b=window[_0x3b3089(0x546)](window[_0x3b3089(0x465)][_0x3b3089(0x3cc)]);window['location']['href']=this[_0x3b3089(0x437)]()+_0x3b3089(0x470)+_0x14dd4b;}}return _0x386b84;}))});}[_0x47c516(0x437)](){const _0x528dbe=_0x47c516;let _0x305715=this[_0x528dbe(0x469)][_0x528dbe(0x33e)](m);return(_0x305715==null?void 0x0:_0x305715[_0x528dbe(0x206)])??_0x528dbe(0x44e);}};W=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)])),v(0x2,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x346)]))],W);let G=class extends t[_0x47c516(0x542)]{constructor(_0x3e9200,_0x2ca22a){const _0x31a218=_0x47c516;super(),this[_0x31a218(0x4eb)]=_0x3e9200,this[_0x31a218(0x469)]=_0x2ca22a,g(this,'_cfgEnableObjInherit',!0x1),this[_0x31a218(0x3aa)]();}[_0x47c516(0x3aa)](){const _0x1eb340=_0x47c516;let _0x37aa34=this;this[_0x1eb340(0x4dc)](this[_0x1eb340(0x4eb)][_0x1eb340(0x53c)]({'priority':0x3e7,'interceptor':(0x0,l[_0x1eb340(0x3b1)])({'isMatch'(_0x83bb45){const _0x51b1e9=_0x1eb340;var _0x2a0fbf;if(_0x83bb45[_0x51b1e9(0x4a0)]==='POST'&&(_0x2a0fbf=_0x83bb45[_0x51b1e9(0x277)])!=null&&_0x2a0fbf[_0x51b1e9(0x268)]){let {objectID:_0x23eeff,objectType:_0x420a4e}=_0x83bb45[_0x51b1e9(0x277)][_0x51b1e9(0x268)]||{};if(!_0x23eeff||_0x420a4e===void 0x0)return!0x1;let _0x32ca39=_0x37aa34[_0x51b1e9(0x231)]()+'/'+_0x420a4e+'/object/'+encodeURIComponent(_0x23eeff)+_0x51b1e9(0x50c);if(_0x83bb45['url']===_0x32ca39)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x191fee){const _0x4dd376=_0x1eb340;var _0x1b1342;return(_0x1b1342=_0x191fee[_0x4dd376(0x277)])==null?void 0x0:_0x1b1342['body'];},'mergeParamsToRequest'(_0x297515,_0x2a428a){const _0x43dab2=_0x1eb340;let _0x438cf5=_0x37aa34[_0x43dab2(0x231)]()+_0x43dab2(0x258),_0x3c2a17=_0x297515[_0x43dab2(0x39d)]((_0x101d9d,_0x231b05)=>{const _0x28eced=_0x43dab2;let {unitID:_0x21d0ca,objectID:_0x4517a1,objectType:_0x25b405,actions:_0x4e5f46}=_0x231b05;return _0x101d9d[_0x21d0ca]||(_0x101d9d[_0x21d0ca]=Object['create'](null)),_0x101d9d[_0x21d0ca][_0x4517a1]||(_0x101d9d[_0x21d0ca][_0x4517a1]={'objectID':_0x4517a1,'objectType':_0x25b405,'actions':[]}),_0x101d9d[_0x21d0ca][_0x4517a1][_0x28eced(0x1f3)][_0x28eced(0x325)](..._0x4e5f46),_0x101d9d;},Object['create'](null)),_0xb396f5=[];for(let _0x2f3cbf in _0x3c2a17)for(let _0x4cca14 in _0x3c2a17[_0x2f3cbf]){let {actions:_0x133db0,objectType:_0x3eb52f}=_0x3c2a17[_0x2f3cbf][_0x4cca14],_0x4337d0=[...new Set(_0x133db0)];_0xb396f5[_0x43dab2(0x325)]({'unitID':_0x2f3cbf,'objectID':_0x4cca14,'objectType':_0x3eb52f,'actions':_0x4337d0});}return new l[(_0x43dab2(0x3db))](_0x43dab2(0x4cb),_0x438cf5,{'headers':_0x2a428a['headers'],'withCredentials':_0x2a428a[_0x43dab2(0x2c2)],'responseType':_0x2a428a[_0x43dab2(0x51c)],'body':{'requests':_0xb396f5}});}},{'distributeResult'(_0x51df89,_0x594ef4){let {objectActions:_0x6dc5b8}=_0x51df89;return _0x594ef4['map'](_0x1bdfe3=>{const _0x53eee1=_0x88a9;let {unitID:_0x3fba2e,objectID:_0x45f8c5,actions:_0x40de98}=_0x1bdfe3,_0x35ddd9=_0x6dc5b8['find'](_0x13d70b=>_0x13d70b[_0x53eee1(0x4e9)]===_0x3fba2e&&_0x13d70b[_0x53eee1(0x384)]===_0x45f8c5);return{'config':_0x1bdfe3,'result':{'actions':_0x40de98[_0x53eee1(0x41a)](_0xc0dc35=>_0x35ddd9==null?void 0x0:_0x35ddd9['actions'][_0x53eee1(0x3f8)](_0x5c3313=>_0x5c3313[_0x53eee1(0x209)]===_0xc0dc35))[_0x53eee1(0x441)](_0x51049f=>!!_0x51049f),'error':_0x51df89[_0x53eee1(0x492)]}};});}})}));}['_getAPIPrefixPath'](){const _0x5b86d0=_0x47c516;let _0x42a5c1=this[_0x5b86d0(0x469)][_0x5b86d0(0x33e)](m);return(_0x42a5c1==null?void 0x0:_0x42a5c1[_0x5b86d0(0x287)])??_0x5b86d0(0x306);}async[_0x47c516(0x20b)](_0xda19a1){const _0x32aa65=_0x47c516;let _0x5ce8b8=this[_0x32aa65(0x231)]()+'/'+_0xda19a1[_0x32aa65(0x2d5)]+_0x32aa65(0x32c);return(await this[_0x32aa65(0x4eb)][_0x32aa65(0x29f)](_0x5ce8b8,{'body':_0xda19a1}))[_0x32aa65(0x268)][_0x32aa65(0x384)]||'';}async[_0x47c516(0x352)](_0x113dc3){const _0x1ead66=_0x47c516;let _0x4dc4a6=this['_getAPIPrefixPath']()+_0x1ead66(0x23d);return(await this[_0x1ead66(0x4eb)][_0x1ead66(0x29f)](_0x4dc4a6,{'body':_0x113dc3}))[_0x1ead66(0x268)][_0x1ead66(0x3ef)];}async['update'](_0x4a9236){const _0x5039b4=_0x47c516;var _0xabf7e4;let _0x1797b7=this[_0x5039b4(0x231)]()+'/'+_0x4a9236['objectType']+_0x5039b4(0x403)+encodeURIComponent(_0x4a9236['objectID']),_0x1d0907=await this[_0x5039b4(0x4eb)][_0x5039b4(0x28e)](_0x1797b7,{'body':_0x4a9236});if((_0x1d0907==null||(_0xabf7e4=_0x1d0907[_0x5039b4(0x268)])==null||(_0xabf7e4=_0xabf7e4[_0x5039b4(0x492)])==null?void 0x0:_0xabf7e4[_0x5039b4(0x30a)])!==0x1)throw Error(_0x5039b4(0x27d));}async['allowed'](_0x4030ad){const _0x521573=_0x47c516;let _0x310821=this[_0x521573(0x231)]()+'/'+_0x4030ad['objectType']+'/object/'+encodeURIComponent(_0x4030ad['objectID'])+_0x521573(0x50c);return(await this[_0x521573(0x4eb)][_0x521573(0x29f)](_0x310821,{'body':_0x4030ad}))[_0x521573(0x268)][_0x521573(0x1f3)];}async[_0x47c516(0x280)](_0x5de166){const _0x260571=_0x47c516;let _0x82a23e=this[_0x260571(0x231)]()+'/-/object/-/batch_allowed';return(await this[_0x260571(0x4eb)][_0x260571(0x29f)](_0x82a23e,{'body':{'requests':_0x5de166}}))[_0x260571(0x268)][_0x260571(0x40e)];}async[_0x47c516(0x3d4)](_0x39d04e){const _0x3d4aec=_0x47c516;let _0x3a787d=this[_0x3d4aec(0x231)]()+'/'+_0x39d04e[_0x3d4aec(0x2d5)]+'/role',_0x2d79fb=await this[_0x3d4aec(0x4eb)][_0x3d4aec(0x29f)](_0x3a787d,{'body':_0x39d04e});return{'roles':_0x2d79fb['body'][_0x3d4aec(0x48d)],'actions':_0x2d79fb[_0x3d4aec(0x268)]['actions']};}async[_0x47c516(0x519)](_0x1872c6){const _0x2a411b=_0x47c516;let _0x714e98=this['_getAPIPrefixPath']()+'/collaborator';await this['_HTTPService'][_0x2a411b(0x512)](_0x714e98,{'params':{'collaboratorID':_0x1872c6[_0x2a411b(0x3b5)],'objectID':_0x1872c6[_0x2a411b(0x384)],'unitID':_0x1872c6['unitID']}});}async[_0x47c516(0x39c)](_0x71edbe){const _0x5a2a9e=_0x47c516;let _0x26ef07=this[_0x5a2a9e(0x231)]()+_0x5a2a9e(0x4c8);await this['_HTTPService']['patch'](_0x26ef07,{'body':_0x71edbe});}async[_0x47c516(0x48b)](_0x305bf9){const _0x5bf040=_0x47c516;let _0x1f481b=this[_0x5bf040(0x231)]()+_0x5bf040(0x4c8);await this[_0x5bf040(0x4eb)][_0x5bf040(0x29f)](_0x1f481b,{'body':_0x305bf9});}async[_0x47c516(0x366)](_0x397fc3){const _0x163c19=_0x47c516;let _0x1515a0=this['_getAPIPrefixPath']()+_0x163c19(0x4c8),_0x182385=await this[_0x163c19(0x4eb)][_0x163c19(0x1fa)](_0x1515a0,{'params':{'objectID':_0x397fc3[_0x163c19(0x384)],'unitID':_0x397fc3[_0x163c19(0x4e9)]}});return this[_0x163c19(0x401)](_0x182385['body']['cfgEnableObjInherit']??!0x1),_0x182385[_0x163c19(0x268)]['collaborators'];}async[_0x47c516(0x26b)](_0x5de595){const _0x401884=_0x47c516;let _0x2c709b=this[_0x401884(0x231)]()+_0x401884(0x4c8);await this[_0x401884(0x4eb)][_0x401884(0x28e)](_0x2c709b,{'body':_0x5de595});}[_0x47c516(0x401)](_0x4ae532){const _0x3591b3=_0x47c516;this[_0x3591b3(0x303)]=_0x4ae532;}[_0x47c516(0x2d2)](){const _0x326a0e=_0x47c516;return this[_0x326a0e(0x303)];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x1,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x2ae)]))],G);function it(_0x5c491f){const _0x10b04f=_0x47c516;let _0x413d8b=atob(_0x5c491f),_0x5d2627=new Uint8Array(_0x413d8b[_0x10b04f(0x476)]);for(let _0x3f1622=0x0;_0x3f1622<_0x413d8b[_0x10b04f(0x476)];_0x3f1622++)_0x5d2627[_0x3f1622]=_0x413d8b[_0x10b04f(0x3d5)](_0x3f1622);return _0x5d2627;}function at(_0x590987){const _0x15b24e=_0x47c516;let _0x31db10='';for(let _0x1f4716=0x0;_0x1f4716<_0x590987['length'];_0x1f4716++)_0x31db10+=String[_0x15b24e(0x52f)](_0x590987[_0x1f4716]);return btoa(_0x31db10);}function ot(_0x194114,_0x1e8369){const _0x5f4ff5=_0x47c516;let _0x53187d=it(_0x1e8369),_0x38f2fe=(0x0,f[_0x5f4ff5(0x1f0)])(0x10),_0x29ecc0=(0x0,d[_0x5f4ff5(0x3a8)])(_0x53187d,_0x38f2fe)[_0x5f4ff5(0x21a)]((0x0,f['utf8ToBytes'])(_0x194114));return at((0x0,f[_0x5f4ff5(0x29c)])(_0x38f2fe,_0x29ecc0));}function st(){const _0x52c5ee=_0x47c516;let _0xe9e151=(0x0,u['getGlobalObject'])()[_0x52c5ee(0x4c2)];if(typeof window<'u'&&window[_0x52c5ee(0x465)]!==void 0x0&&_0xe9e151){let _0x25c872={'time':Math[_0x52c5ee(0x2b2)](Date[_0x52c5ee(0x3e6)]()/0x3e8),'domain':location[_0x52c5ee(0x2de)]};return ot(JSON[_0x52c5ee(0x307)](_0x25c872),_0xe9e151);}}let K=class{constructor(_0x51d6f2){const _0x3394b0=_0x47c516;this['_httpService']=_0x51d6f2,this[_0x3394b0(0x217)]();}[_0x47c516(0x217)](){const _0x580441=_0x47c516;this[_0x580441(0x503)][_0x580441(0x53c)]({'interceptor':(_0x1ec577,_0x553a03)=>{const _0x34918=_0x580441;let _0x140742=st();return _0x140742&&_0x1ec577['headers'][_0x34918(0x2f5)](_0x34918(0x2b7),_0x140742),_0x553a03(_0x1ec577);}});}};K=y([v(0x0,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)]))],K);let q=class extends t[_0x47c516(0x3b6)]{constructor(_0x5d74f9,_0x298cff,_0x1363ff){const _0x57ca26=_0x47c516;super(),this[_0x57ca26(0x266)]=_0x5d74f9,this[_0x57ca26(0x4ed)]=_0x298cff,this[_0x57ca26(0x344)]=_0x1363ff,g(this,_0x57ca26(0x486),new i['BehaviorSubject'](null)),g(this,_0x57ca26(0x316),new i['Subject']()),g(this,_0x57ca26(0x348),this[_0x57ca26(0x486)]['asObservable']()),g(this,_0x57ca26(0x4be),this[_0x57ca26(0x316)]['asObservable']());}[_0x47c516(0x328)](){const _0x1a7f99=_0x47c516;super['dispose'](),this[_0x1a7f99(0x316)][_0x1a7f99(0x2ce)](),this[_0x1a7f99(0x486)][_0x1a7f99(0x2ce)]();}[_0x47c516(0x29b)](_0xa50bff,_0x5f03f8,_0x94042c,_0x327232,_0x4b07e4){const _0x24b210=_0x47c516;return this[_0x24b210(0x408)](_0xa50bff,_0x5f03f8,_0x94042c,_0x327232,_0x4b07e4);}[_0x47c516(0x2fc)](_0x42a930,_0x33f2fc,_0x2e826c,_0x2833b0){const _0x3d2f26=_0x47c516;return this[_0x3d2f26(0x408)](_0x42a930,_0x33f2fc,void 0x0,_0x2e826c,_0x2833b0);}async[_0x47c516(0x408)](_0x52c907,_0x43d45c,_0x5e031a,_0x5f25ed,_0x566436){const _0x4110e5=_0x47c516;this[_0x4110e5(0x486)][_0x4110e5(0x485)]({'unitId':_0x52c907,'type':_0x43d45c,'subUnitId':_0x5f25ed});let _0x37f9a8=_0x5e031a;if(_0x37f9a8===void 0x0){var _0x11340c;let _0x56b989=await((_0x11340c=this[_0x4110e5(0x344)])==null?void 0x0:_0x11340c[_0x4110e5(0x37b)](_0x52c907));_0x37f9a8=_0x56b989&&(_0x56b989[_0x4110e5(0x4b9)]||_0x56b989[_0x4110e5(0x223)][_0x4110e5(0x476)]!==0x0)?_0x56b989[_0x4110e5(0x533)]:0x0,_0x37f9a8===0x0&&this[_0x4110e5(0x266)][_0x4110e5(0x3c4)](_0x4110e5(0x274),_0x4110e5(0x3b8));}return this[_0x4110e5(0x27e)](_0x52c907,_0x43d45c,_0x37f9a8,_0x5f25ed,_0x566436);}async['_loadSnapshot'](_0x57adf3,_0x2c8f3b,_0x3d7ed8,_0x5c4db4,_0x4c0e3f){const _0x335526=_0x47c516;let _0x3acc40=null;switch(_0x2c8f3b){case t[_0x335526(0x4f3)]['UNIVER_SHEET']:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x1fc)](_0x57adf3,_0x3d7ed8,_0x4c0e3f,{'initialSubUnitId':_0x5c4db4});break;case t[_0x335526(0x4f3)]['UNIVER_DOC']:_0x3acc40=await this[_0x335526(0x4ed)]['loadDoc'](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t[_0x335526(0x4f3)][_0x335526(0x2b4)]:_0x3acc40=await this['_snapshotService'][_0x335526(0x449)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t['UniverInstanceType'][_0x335526(0x48f)]:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x39b)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t[_0x335526(0x4f3)][_0x335526(0x4d1)]:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x295)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;case t[_0x335526(0x4f3)][_0x335526(0x4a7)]:_0x3acc40=await this[_0x335526(0x4ed)][_0x335526(0x4d5)](_0x57adf3,_0x3d7ed8,_0x4c0e3f);break;default:this['_logService'][_0x335526(0x492)](_0x335526(0x274),_0x335526(0x3d2));}return _0x3acc40&&this[_0x335526(0x316)][_0x335526(0x485)](_0x3acc40),_0x3acc40;}};q=y([v(0x0,t[_0x47c516(0x4e0)]),v(0x1,(0x0,t[_0x47c516(0x528)])(e[_0x47c516(0x415)])),v(0x2,(0x0,t[_0x47c516(0x263)])(x))],q);let J=class{constructor(_0x3b638e,_0x483dc8,_0x158698){const _0x52b492=_0x47c516;this[_0x52b492(0x503)]=_0x3b638e,this[_0x52b492(0x469)]=_0x483dc8,this[_0x52b492(0x2af)]=_0x158698,g(this,_0x52b492(0x35f),0x0),g(this,_0x52b492(0x491),new i['Subject']()),g(this,_0x52b492(0x2d6),this[_0x52b492(0x491)]),g(this,'_imageSourceCache',new Map());}[_0x47c516(0x419)](_0x243daa){const _0x27ed76=_0x47c516;this['_waitCount']=_0x243daa,this[_0x27ed76(0x491)]['next'](_0x243daa);}['getImageSourceCache'](_0x3b66a9,_0x492ff1){const _0x4826f4=_0x47c516;if(_0x492ff1===t[_0x4826f4(0x230)][_0x4826f4(0x36f)]){let _0x206090=new Image();return _0x206090['src']=_0x3b66a9,_0x206090;}return this['_imageSourceCache'][_0x4826f4(0x1fa)](_0x3b66a9);}[_0x47c516(0x320)](_0x6e9f78,_0x3a94d2,_0x11f813){const _0x31fdc8=_0x47c516;_0x3a94d2!==t['ImageSourceType'][_0x31fdc8(0x36f)]&&_0x11f813!=null&&this['_imageSourceCache'][_0x31fdc8(0x2f5)](_0x6e9f78,_0x11f813);}async[_0x47c516(0x42f)](_0x4c4d99){const _0x389215=_0x47c516;try{let _0x98ad00=this['_replaceFileID'](this[_0x389215(0x425)](),''+_0x4c4d99),_0x2dca4f=(await this[_0x389215(0x503)][_0x389215(0x1fa)](_0x98ad00))['body'];if(_0x2dca4f['error']&&_0x2dca4f[_0x389215(0x492)][_0x389215(0x30a)]===a['ErrorCode']['OK']){let _0x584172=(0x0,t[_0x389215(0x1f5)])(_0x2dca4f['url'],this[_0x389215(0x334)]());return Promise[_0x389215(0x359)](_0x584172);}return Promise['reject'](_0x2dca4f[_0x389215(0x492)]);}catch(_0x16edc2){return Promise[_0x389215(0x43e)](_0x16edc2);}}async[_0x47c516(0x530)](_0x47eb65){const _0x290c69=_0x47c516;let _0xb51cc='';if(!p[_0x290c69(0x347)][_0x290c69(0x482)](_0x47eb65['type']))return this[_0x290c69(0x382)](),Promise[_0x290c69(0x43e)](Error(t[_0x290c69(0x40c)]['ERROR_IMAGE_TYPE']));if(_0x47eb65[_0x290c69(0x2d9)]>(0x0,p['getDrawingImageAllowSize'])())return this[_0x290c69(0x382)](),Promise['reject'](Error(t['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{let _0x511890=new FormData();_0x511890[_0x290c69(0x293)]('file',_0x47eb65);let _0x1cb85d=this[_0x290c69(0x2af)][_0x290c69(0x409)](),_0x583e1b=_0x1cb85d==null?void 0x0:_0x1cb85d[_0x290c69(0x4fc)]();if(!_0x583e1b)throw Error('unitId\x20is\x20not\x20found');let _0x110af6=this['_getUploadFileURL']()+_0x290c69(0x53a)+_0x47eb65[_0x290c69(0x2d9)]['toString']()+_0x290c69(0x49e)+a[_0x290c69(0x237)][_0x290c69(0x45c)]+'&assign='+encodeURIComponent(_0x583e1b),_0x4030d8={'body':_0x511890},_0x2ff453=(await this[_0x290c69(0x503)]['post'](_0x110af6,_0x4030d8))[_0x290c69(0x268)];if(typeof _0x2ff453[_0x290c69(0x331)]!=_0x290c69(0x46a))return this[_0x290c69(0x382)](),Promise[_0x290c69(0x43e)](Error(t['ImageUploadStatusType'][_0x290c69(0x31b)]));_0xb51cc=_0x2ff453[_0x290c69(0x331)];}catch{return this[_0x290c69(0x382)](),Promise[_0x290c69(0x43e)](Error(t[_0x290c69(0x40c)][_0x290c69(0x31b)]));}return new Promise((_0x3981f6,_0x2262a0)=>{const _0x2030c1=_0x290c69;let _0x3e8e36=new FileReader();_0x3e8e36[_0x2030c1(0x2db)](_0x47eb65),_0x3e8e36['onload']=_0x107fde=>{const _0x580d50=_0x2030c1;var _0xa6ad42;let _0x3a0b72=(_0xa6ad42=_0x107fde['target'])==null?void 0x0:_0xa6ad42[_0x580d50(0x4fb)];_0x3a0b72==null?(this[_0x580d50(0x382)](),_0x2262a0(Error(t['ImageUploadStatusType'][_0x580d50(0x31b)]))):(_0x3981f6({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t[_0x580d50(0x230)][_0x580d50(0x4d7)],'source':_0xb51cc,'base64Cache':_0x3a0b72,'status':t[_0x580d50(0x40c)][_0x580d50(0x4fa)]}),this['_decreaseWaiting']());};});}[_0x47c516(0x264)](){const _0x2c9aa6=_0x47c516;let _0x369e12=this[_0x2c9aa6(0x469)][_0x2c9aa6(0x33e)](m);return(_0x369e12==null?void 0x0:_0x369e12[_0x2c9aa6(0x2df)])??'/universer-api/stream/file/upload';}[_0x47c516(0x425)](){const _0x46e275=_0x47c516;let _0xbd4e4d=this[_0x46e275(0x469)][_0x46e275(0x33e)](m);return(_0xbd4e4d==null?void 0x0:_0xbd4e4d[_0x46e275(0x436)])??_0x46e275(0x24e);}['_getDownloadEndpointURL'](){const _0x595e27=_0x47c516;let _0x1b7500=this['_configService'][_0x595e27(0x33e)](m);return(_0x1b7500==null?void 0x0:_0x1b7500[_0x595e27(0x454)])??location[_0x595e27(0x365)];}[_0x47c516(0x251)](_0x149bd5,_0x47142d){const _0x249ff5=_0x47c516;return _0x149bd5[_0x249ff5(0x275)](_0x249ff5(0x317),_0x47142d);}[_0x47c516(0x382)](){const _0x209bb8=_0x47c516;--this[_0x209bb8(0x35f)],this['_change$'][_0x209bb8(0x485)](this['_waitCount']);}};J=y([v(0x0,(0x0,t['Inject'])(l[_0x47c516(0x45b)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t[_0x47c516(0x528)])(t['IUniverInstanceService']))],J);let Y=class{constructor(_0x2008d7,_0x362fe8){const _0x3d2d25=_0x47c516;this[_0x3d2d25(0x469)]=_0x2008d7,this[_0x3d2d25(0x4eb)]=_0x362fe8;}[_0x47c516(0x231)](){const _0x2bda0b=_0x47c516;let _0x28e6fa=this['_configService']['getConfig'](m);return(_0x28e6fa==null?void 0x0:_0x28e6fa[_0x2bda0b(0x287)])??_0x2bda0b(0x306);}async[_0x47c516(0x352)](_0x267a59){const _0x4a9cfe=_0x47c516;let _0xaa1778=this[_0x4a9cfe(0x231)]()+_0x4a9cfe(0x4c8);return{'list':[{'title':'People','mentions':(await this[_0x4a9cfe(0x4eb)]['get'](_0xaa1778,{'params':{'objectID':_0x267a59[_0x4a9cfe(0x220)],'unitID':_0x267a59['unitId']}}))[_0x4a9cfe(0x268)][_0x4a9cfe(0x433)][_0x4a9cfe(0x41a)](_0x38d7c8=>({'objectId':_0x38d7c8['id'],'name':_0x38d7c8[_0x4a9cfe(0x222)][_0x4a9cfe(0x310)],'metadata':{'icon':_0x38d7c8[_0x4a9cfe(0x222)][_0x4a9cfe(0x3b0)]},'label':_0x38d7c8['subject']['name'],'objectType':t['MentionType'][_0x4a9cfe(0x44b)]})),'metadata':{},'type':t[_0x4a9cfe(0x2ec)]['PERSON']}]};}};Y=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x2ae)])),v(0x1,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)]))],Y);let X=class extends t[_0x47c516(0x3b6)]{constructor(_0x57fe0e,_0x51ea56,_0x61fa49,_0x5b8a27,_0x105247,_0x867327){const _0x2aa5f5=_0x47c516;super(),this[_0x2aa5f5(0x400)]=_0x57fe0e,this[_0x2aa5f5(0x2af)]=_0x51ea56,this[_0x2aa5f5(0x539)]=_0x61fa49,this[_0x2aa5f5(0x466)]=_0x5b8a27,this['_collaborationSessionService']=_0x105247,this[_0x2aa5f5(0x396)]=_0x867327,g(this,_0x2aa5f5(0x247),new Set()),this[_0x2aa5f5(0x4dc)](()=>this[_0x2aa5f5(0x247)][_0x2aa5f5(0x4c9)]()),this[_0x2aa5f5(0x4dc)](ct(this[_0x2aa5f5(0x2af)])[_0x2aa5f5(0x51a)](({unitId:_0x1d7c7b})=>this[_0x2aa5f5(0x247)]['delete'](_0x1d7c7b))),this[_0x2aa5f5(0x374)](),this['_initCloseConn'](),[t[_0x2aa5f5(0x4f3)][_0x2aa5f5(0x48e)],t[_0x2aa5f5(0x4f3)][_0x2aa5f5(0x2b4)],t['UniverInstanceType'][_0x2aa5f5(0x4d1)],t[_0x2aa5f5(0x4f3)][_0x2aa5f5(0x48f)]][_0x2aa5f5(0x4b1)](_0x2cc506=>{const _0x2c7a16=_0x2aa5f5;this['disposeWithMe'](this[_0x2c7a16(0x2af)]['getTypeOfUnitDisposed$'](_0x2cc506)[_0x2c7a16(0x51a)](_0x1be67e=>{const _0x10ed92=_0x2c7a16;this[_0x10ed92(0x247)][_0x10ed92(0x22f)](_0x1be67e[_0x10ed92(0x4fc)]()),this['_injector'][_0x10ed92(0x1fa)](t[_0x10ed92(0x1ee)])[_0x10ed92(0x3a4)](_0x1be67e[_0x10ed92(0x4fc)]());}));});}[_0x47c516(0x2dd)](){const _0xe1ad5d=_0x47c516;let _0x13e85d=async(_0x144667,_0x1afc92)=>{const _0x445a66=_0x88a9;let _0x175929=await this['_collaborationSessionService'][_0x445a66(0x38c)](_0x144667);this[_0x445a66(0x440)]||this[_0x445a66(0x247)][_0x445a66(0x51d)](_0x144667)||!this[_0x445a66(0x2af)][_0x445a66(0x26a)](_0x144667)||_0x175929[_0x445a66(0x502)][_0x445a66(0x3e8)]((0x0,s['filter'])(_0x5d51a2=>_0x5d51a2[_0x445a66(0x393)]===e['CollaborationEvent'][_0x445a66(0x500)]),(0x0,s['takeUntil'])((0x0,i[_0x445a66(0x4f0)])(this['dispose$'],this[_0x445a66(0x2af)][_0x445a66(0x420)][_0x445a66(0x3e8)]((0x0,s[_0x445a66(0x441)])(_0x2934f9=>_0x2934f9[_0x445a66(0x4fc)]()===_0x144667)))))['subscribe'](_0xd408a3=>{const _0xa35c4f=_0x445a66;let {reason:_0xff5b96}=_0xd408a3[_0xa35c4f(0x3cf)];this[_0xa35c4f(0x396)][_0xa35c4f(0x315)]({'id':'CLOSE_ROOM','data':_0xff5b96}),this[_0xa35c4f(0x247)][_0xa35c4f(0x22f)](_0x144667),this['_injector'][_0xa35c4f(0x1fa)](t[_0xa35c4f(0x1ee)])[_0xa35c4f(0x3a4)](_0x144667);let _0x53037e=lt(_0x1afc92);_0x53037e!=null&&this['_updateUnitPermissionPoint'](_0x144667,_0x53037e,a[_0xa35c4f(0x229)]['Edit'],!0x1),this[_0xa35c4f(0x508)][_0xa35c4f(0x4ae)](_0x144667);});};ct(this[_0xe1ad5d(0x2af)])[_0xe1ad5d(0x3e8)]((0x0,s[_0xe1ad5d(0x441)])(({unitId:_0x4b2c17})=>!(0x0,t[_0xe1ad5d(0x429)])(_0x4b2c17)),(0x0,s[_0xe1ad5d(0x357)])(this[_0xe1ad5d(0x25f)]))['subscribe'](({type:_0x1bdf77,unitId:_0x4997d2})=>{const _0x429d6c=_0xe1ad5d;_0x13e85d(_0x4997d2,_0x1bdf77)['catch'](_0x48c3dd=>this[_0x429d6c(0x400)][_0x429d6c(0x1fa)](t[_0x429d6c(0x4e0)])['error'](_0x48c3dd));});}[_0x47c516(0x374)](){const _0x36432a=_0x47c516;let _0x3d8593=async(_0x813fd2,_0x5755db)=>{const _0x2689e1=_0x88a9;let _0x30585a=await this[_0x2689e1(0x508)]['requireSession'](_0x813fd2);if(!(this[_0x2689e1(0x440)]||this[_0x2689e1(0x247)][_0x2689e1(0x51d)](_0x813fd2)||!this['_univerInstanceService'][_0x2689e1(0x26a)](_0x813fd2))){if(_0x5755db===t['UniverInstanceType'][_0x2689e1(0x4ab)]){let _0x3bfe3b=this['_injector'][_0x2689e1(0x1fa)](r[_0x2689e1(0x394)]);await _0x3bfe3b[_0x2689e1(0x2cc)](_0x813fd2),_0x30585a['event$'][_0x2689e1(0x3e8)]((0x0,s[_0x2689e1(0x441)])(_0x50d060=>_0x50d060['eventID']===e[_0x2689e1(0x427)][_0x2689e1(0x20c)]),(0x0,s[_0x2689e1(0x357)])((0x0,i[_0x2689e1(0x4f0)])(this[_0x2689e1(0x25f)],_0x30585a[_0x2689e1(0x502)][_0x2689e1(0x3e8)]((0x0,s[_0x2689e1(0x441)])(_0xf47c7d=>_0xf47c7d[_0x2689e1(0x393)]===e[_0x2689e1(0x427)][_0x2689e1(0x500)])),this[_0x2689e1(0x2af)][_0x2689e1(0x420)][_0x2689e1(0x3e8)]((0x0,s['filter'])(_0x2ca111=>_0x2ca111[_0x2689e1(0x4fc)]()===_0x813fd2)))))[_0x2689e1(0x51a)](_0x3edb2a=>{const _0x299188=_0x2689e1;let {objectId:_0x23db1e}=_0x3edb2a[_0x299188(0x3cf)];_0x23db1e===_0x813fd2?_0x3bfe3b[_0x299188(0x2cc)](_0x813fd2):_0x3bfe3b[_0x299188(0x3ac)](_0x813fd2,_0x23db1e);});}else _0x30585a['event$']['pipe']((0x0,s['filter'])(_0xf7c23c=>_0xf7c23c[_0x2689e1(0x393)]===e[_0x2689e1(0x427)][_0x2689e1(0x20c)]),(0x0,s['takeUntil'])((0x0,i[_0x2689e1(0x4f0)])(this['dispose$'],_0x30585a['event$'][_0x2689e1(0x3e8)]((0x0,s['filter'])(_0x2532d1=>_0x2532d1[_0x2689e1(0x393)]===e[_0x2689e1(0x427)][_0x2689e1(0x500)])),this[_0x2689e1(0x2af)][_0x2689e1(0x420)][_0x2689e1(0x3e8)]((0x0,s[_0x2689e1(0x441)])(_0x9466ce=>_0x9466ce[_0x2689e1(0x4fc)]()===_0x813fd2)))))[_0x2689e1(0x51a)](()=>{const _0xcbae20=_0x2689e1;this[_0xcbae20(0x46b)](_0x813fd2,_0x5755db)[_0xcbae20(0x3dc)](_0x3741ee=>this[_0xcbae20(0x400)]['get'](t[_0xcbae20(0x4e0)])[_0xcbae20(0x492)](_0x3741ee));}),await this[_0x2689e1(0x46b)](_0x813fd2,_0x5755db);}};ct(this[_0x36432a(0x2af)])[_0x36432a(0x3e8)]((0x0,s[_0x36432a(0x441)])(({unitId:_0x582221})=>!(0x0,t[_0x36432a(0x429)])(_0x582221)),(0x0,s[_0x36432a(0x357)])(this[_0x36432a(0x25f)]))[_0x36432a(0x51a)](({type:_0x52582b,unitId:_0x120cff})=>{const _0x908e7b=_0x36432a;_0x3d8593(_0x120cff,_0x52582b)[_0x908e7b(0x3dc)](_0x366dca=>this[_0x908e7b(0x400)]['get'](t[_0x908e7b(0x4e0)])[_0x908e7b(0x492)](_0x366dca));});}async[_0x47c516(0x46b)](_0x5b401a,_0x23c356){const _0x35da36=_0x47c516;let _0x119b16=lt(_0x23c356);if(_0x119b16==null)return;let _0xe3c23c=this[_0x35da36(0x400)]['get'](t[_0x35da36(0x1ee)]);if(_0xe3c23c[_0x35da36(0x395)]({'unitId':_0x5b401a,'objectId':_0x5b401a,'objectType':_0x119b16})){await _0xe3c23c[_0x35da36(0x410)](_0x5b401a);return;}let _0x2871cc=this['_getUnitPermissionPoints'](_0x5b401a,_0x119b16);if(!_0x2871cc[_0x35da36(0x476)])return;let _0x73dbc2=await this[_0x35da36(0x466)]['allowed']({'objectID':_0x5b401a,'objectType':_0x119b16,'unitID':_0x5b401a,'actions':_0x2871cc[_0x35da36(0x41a)](({action:_0x50b62c})=>_0x50b62c)});this[_0x35da36(0x440)]||this[_0x35da36(0x247)]['has'](_0x5b401a)||!this['_univerInstanceService'][_0x35da36(0x26a)](_0x5b401a)||_0x73dbc2[_0x35da36(0x4b1)](_0x4fb444=>{const _0x9f7b6c=_0x35da36;let _0x4c2b8a=_0x4fb444[_0x9f7b6c(0x209)],_0x532820=_0x4fb444[_0x9f7b6c(0x432)];_0x4c2b8a!=null&&_0x532820!=null&&_0x2871cc[_0x9f7b6c(0x441)](_0x741149=>_0x741149[_0x9f7b6c(0x209)]===_0x4c2b8a)['forEach'](_0x49b98a=>this['_permissionService'][_0x9f7b6c(0x3be)](_0x49b98a['id'],_0x532820));});}[_0x47c516(0x41e)](_0x3b7de1,_0x1b0f6b){const _0x553912=_0x47c516;let _0x1c343a=[];return this[_0x553912(0x539)][_0x553912(0x52b)]()[_0x553912(0x4b1)]((_0x3dc00d,_0x5cb8d6)=>{const _0x380338=_0x553912;_0x3dc00d['subscribe'](_0x4ce2d2=>{const _0x24d001=_0x88a9;_0x4ce2d2['type']===_0x1b0f6b&&'unitId'in _0x4ce2d2&&_0x4ce2d2[_0x24d001(0x220)]===_0x3b7de1&&(!(_0x24d001(0x39a)in _0x4ce2d2)||_0x4ce2d2[_0x24d001(0x39a)]===_0x3b7de1)&&_0x1c343a[_0x24d001(0x325)]({'id':_0x5cb8d6,'action':_0x4ce2d2[_0x24d001(0x426)]});})[_0x380338(0x44d)]();}),_0x1c343a;}[_0x47c516(0x23c)](_0x35951a,_0x2586c8,_0x3cbc20,_0x2f954a){const _0x44f608=_0x47c516;this[_0x44f608(0x539)][_0x44f608(0x52b)]()[_0x44f608(0x4b1)]((_0x16b8b3,_0x4b8a3f)=>{const _0x53a7af=_0x44f608;let _0x3631d5=!0x1;_0x16b8b3[_0x53a7af(0x51a)](_0x579951=>{const _0xa22b4d=_0x53a7af;_0x3631d5=_0x579951[_0xa22b4d(0x1fe)]===_0x2586c8&&_0x579951[_0xa22b4d(0x426)]===_0x3cbc20&&_0xa22b4d(0x220)in _0x579951&&_0x579951[_0xa22b4d(0x220)]===_0x35951a&&(!(_0xa22b4d(0x39a)in _0x579951)||_0x579951['objectId']===_0x35951a);})[_0x53a7af(0x44d)](),_0x3631d5&&this[_0x53a7af(0x539)][_0x53a7af(0x3be)](_0x4b8a3f,_0x2f954a);});}};X=y([v(0x0,(0x0,t[_0x47c516(0x528)])(t[_0x47c516(0x416)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x47c516(0x333)]),v(0x3,t[_0x47c516(0x3fc)]),v(0x4,(0x0,t[_0x47c516(0x528)])(V)),v(0x5,(0x0,t[_0x47c516(0x528)])(_))],X);function ct(_0x29127c){const _0x54b6b3=_0x47c516;return(0x0,i[_0x54b6b3(0x4f0)])(...[t['UniverInstanceType'][_0x54b6b3(0x4ab)],t[_0x54b6b3(0x4f3)][_0x54b6b3(0x48e)],t[_0x54b6b3(0x4f3)][_0x54b6b3(0x2b4)],t[_0x54b6b3(0x4f3)][_0x54b6b3(0x48f)],t['UniverInstanceType'][_0x54b6b3(0x4d1)]][_0x54b6b3(0x41a)](_0xdca99f=>_0x29127c[_0x54b6b3(0x2ee)](_0xdca99f)[_0x54b6b3(0x3e8)]((0x0,s[_0x54b6b3(0x41a)])(_0x4b31ed=>({'type':_0xdca99f,'unitId':_0x4b31ed['unit'][_0x54b6b3(0x4fc)]()})))));}function lt(_0x870ff7){const _0x46924d=_0x47c516;switch(_0x870ff7){case t[_0x46924d(0x4f3)][_0x46924d(0x4ab)]:return a[_0x46924d(0x4bb)][_0x46924d(0x2e4)];case t[_0x46924d(0x4f3)][_0x46924d(0x48e)]:return a['UnitObject']['Document'];case t['UniverInstanceType'][_0x46924d(0x2b4)]:return a[_0x46924d(0x4bb)][_0x46924d(0x290)];case t[_0x46924d(0x4f3)][_0x46924d(0x48f)]:return a['UnitObject'][_0x46924d(0x20f)];case t[_0x46924d(0x4f3)][_0x46924d(0x4d1)]:return a[_0x46924d(0x4bb)]['Base'];default:return;}}let Z=class{constructor(_0x5bb902,_0x42503b){const _0x526f74=_0x47c516;this[_0x526f74(0x469)]=_0x5bb902,this[_0x526f74(0x503)]=_0x42503b;}async[_0x47c516(0x424)](_0x5c5044,_0x2c0abd){const _0x47849e=_0x47c516;var _0x2747c0;let {unitID:_0x294a8d,type:_0x4fe899,revision:_0x417b9e=0x0}=_0x2c0abd,_0x39be96=this[_0x47849e(0x4f2)]()+'/'+_0x4fe899+_0x47849e(0x2b1)+_0x294a8d+_0x47849e(0x323)+_0x417b9e,_0x3fa1aa=(await this['_httpService'][_0x47849e(0x1fa)](_0x39be96))['body'],_0x659ad=(_0x2747c0=_0x3fa1aa[_0x47849e(0x30d)])==null?void 0x0:_0x2747c0[_0x47849e(0x373)];if(_0x659ad){let _0x1322f2=_0x659ad==null?void 0x0:_0x659ad['originalMeta'];_0x659ad[_0x47849e(0x282)]=e[_0x47849e(0x44c)]['encode']((0x0,e[_0x47849e(0x24a)])(_0x1322f2)),Object[_0x47849e(0x204)](_0x659ad[_0x47849e(0x3a3)])[_0x47849e(0x4b1)](([,_0x200f5c])=>{let _0x37ac2b=_0x200f5c['originalMeta'];_0x200f5c['originalMeta']=e['textEncoder']['encode']((0x0,e['b64DecodeUnicode'])(_0x37ac2b));});}return _0x3fa1aa;}async[_0x47c516(0x4ac)](_0x2bc1e1,_0x9c2cb3){const _0x7e44fa=_0x47c516;let {unitID:_0x168e23,type:_0x55078a,blockID:_0x1edca9}=_0x9c2cb3,_0x2396d2=this[_0x7e44fa(0x3bf)]()+'/'+_0x55078a+'/unit/'+_0x168e23+_0x7e44fa(0x4b2)+_0x1edca9;return(await this[_0x7e44fa(0x503)]['get'](_0x2396d2))[_0x7e44fa(0x268)];}async[_0x47c516(0x43a)](_0x4de253,_0x485deb){const _0x19e1c6=_0x47c516;let {unitID:_0x20e9ee,type:_0x3d7d17,blockID:_0x5090c2}=_0x485deb,_0x13eb7d=this[_0x19e1c6(0x3bf)]()+'/block/'+_0x3d7d17+'/unit/'+_0x20e9ee+_0x19e1c6(0x4b2)+_0x5090c2;return(await this[_0x19e1c6(0x503)][_0x19e1c6(0x1fa)](_0x13eb7d))[_0x19e1c6(0x268)];}async['fetchMissingChangesets'](_0x1e2c75,_0x3e6e44){const _0x4a7589=_0x47c516;let {unitID:_0x1c1d49,type:_0x168947,from:_0x300942,to:_0x3e686b}=_0x3e6e44,_0x444729=this[_0x4a7589(0x3bf)]()+'/'+_0x168947+_0x4a7589(0x2b1)+_0x1c1d49+'/fetchmissing?from='+_0x300942+_0x4a7589(0x534)+_0x3e686b;return(await this[_0x4a7589(0x503)][_0x4a7589(0x1fa)](_0x444729))['body'];}[_0x47c516(0x4f2)](){const _0x3feb3a=_0x47c516;return this[_0x3feb3a(0x469)][_0x3feb3a(0x33e)](_0x3feb3a(0x4e6))??this['_getAPIPrefix']();}[_0x47c516(0x3bf)](){const _0x222ac2=_0x47c516;let _0x20d766=this[_0x222ac2(0x469)][_0x222ac2(0x33e)](m);return(_0x20d766==null?void 0x0:_0x20d766[_0x222ac2(0x538)])??_0x222ac2(0x47b);}async[_0x47c516(0x53e)](_0x5d5865,_0x14c274){const _0x11e631=_0x47c516;let _0x1ac025=_0x11e631(0x3e0)+_0x14c274[_0x11e631(0x1fe)]+_0x11e631(0x2b1)+_0x14c274['unitID']+'/resources';return(await this['_httpService'][_0x11e631(0x1fa)](_0x1ac025,{'params':{'resourceId':JSON[_0x11e631(0x307)](_0x14c274[_0x11e631(0x278)])}}))[_0x11e631(0x268)];}[_0x47c516(0x4c1)](){const _0x1005e2=_0x47c516;throw Error(_0x1005e2(0x532));}[_0x47c516(0x1f4)](){const _0x609ed4=_0x47c516;throw Error(_0x609ed4(0x532));}[_0x47c516(0x2be)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x47c516(0x4ad)](){const _0x51fafe=_0x47c516;throw Error(_0x51fafe(0x532));}[_0x47c516(0x2da)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x47c516(0x265)](){const _0x5a3baf=_0x47c516;throw Error(_0x5a3baf(0x532));}};Z=y([v(0x0,t[_0x47c516(0x2ae)]),v(0x1,(0x0,t[_0x47c516(0x528)])(l[_0x47c516(0x45b)]))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x38f697,_0x256cc1,_0x3c533b,_0x110a6e,_0x4ade2f,_0x30790b){const _0x39c6c7=_0x47c516;super(_0x38f697,_0x256cc1,_0x3c533b,_0x110a6e),this[_0x39c6c7(0x3e4)]=_0x4ade2f,this[_0x39c6c7(0x266)]=_0x30790b;}[_0x47c516(0x260)](_0x1c1443,_0x5e9f42){const _0x3efe09=_0x47c516;let _0x44c0dd=this[_0x3efe09(0x22c)](_0x1c1443);if(_0x44c0dd)try{let _0x3f81e0=this[_0x3efe09(0x3a9)](_0x44c0dd,_0x5e9f42);this[_0x3efe09(0x203)](_0x1c1443,_0x3f81e0);}catch(_0x3c47bc){this[_0x3efe09(0x266)][_0x3efe09(0x492)](_0x3efe09(0x413),_0x3c47bc),this[_0x3efe09(0x478)](_0x1c1443);}let _0x235903=this['_getRedoStack'](_0x1c1443);if(_0x235903)try{let _0x398af9=this['_transformStack'](_0x235903,_0x5e9f42);this[_0x3efe09(0x3f0)](_0x1c1443,_0x398af9);}catch(_0xa9d8a7){this[_0x3efe09(0x266)]['error'](_0xa9d8a7),this[_0x3efe09(0x2a9)](_0x1c1443);}}[_0x47c516(0x478)](_0x21ae0d){const _0x356734=_0x47c516;let _0x4b97ee=this[_0x356734(0x22c)](_0x21ae0d);_0x4b97ee&&(_0x4b97ee[_0x356734(0x476)]=0x0,this[_0x356734(0x2b5)]());}[_0x47c516(0x2a9)](_0x449909){let _0x7e109a=this['_getRedoStack'](_0x449909);_0x7e109a&&(_0x7e109a['length']=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x54232b,_0x33d8ac){const _0x25a042=_0x47c516;this[_0x25a042(0x2d8)]['set'](_0x54232b,_0x33d8ac),this[_0x25a042(0x2b5)]();}[_0x47c516(0x3f0)](_0x23488b,_0x140510){const _0xc5722c=_0x47c516;this[_0xc5722c(0x289)][_0xc5722c(0x2f5)](_0x23488b,_0x140510),this[_0xc5722c(0x2b5)]();}['_transformStack'](_0x3b7c96,_0x503036){const _0x448d5f=_0x47c516;let _0x9e61ac=[],_0x593b7b=_0x503036,_0x18309f=_0x503036;for(let _0x30ab5d=_0x3b7c96[_0x448d5f(0x476)]-0x1;_0x30ab5d>=0x0;_0x30ab5d--){let {unitID:_0x1c0548,undoMutations:_0x3e0c52,redoMutations:_0x564d72}=_0x3b7c96[_0x30ab5d],_0x2e9849=this[_0x448d5f(0x3e4)]['transformMutationsWithChangeset'](_0x593b7b,_0x3e0c52),_0x57342e=this['_transformService']['transformMutationsWithChangeset'](_0x18309f,_0x564d72);if((0x0,e['isTransformMutationsWithChangesetFailure'])(_0x2e9849)||(0x0,e['isTransformMutationsWithChangesetFailure'])(_0x57342e)){this[_0x448d5f(0x266)][_0x448d5f(0x492)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2e9849,_0x57342e);break;}_0x593b7b=_0x2e9849[_0x448d5f(0x28f)],_0x18309f=_0x57342e[_0x448d5f(0x28f)],_0x9e61ac[_0x448d5f(0x325)]({'unitID':_0x1c0548,'undoMutations':_0x2e9849['m2Prime'],'redoMutations':_0x57342e['m2Prime']});}return _0x9e61ac[_0x448d5f(0x1f8)]();}};Q=y([v(0x0,t[_0x47c516(0x493)]),v(0x1,t[_0x47c516(0x212)]),v(0x2,t[_0x47c516(0x4cd)]),v(0x3,t[_0x47c516(0x2ae)]),v(0x4,e[_0x47c516(0x3f6)]),v(0x5,t[_0x47c516(0x4e0)])],Q);let $=class extends t[_0x47c516(0x35b)]{constructor(_0x4a331c=ee,_0x249303,_0x1ac833,_0x358196){const _0x19cbcd=_0x47c516;super(),this[_0x19cbcd(0x326)]=_0x4a331c,this['_logService']=_0x249303,this[_0x19cbcd(0x400)]=_0x1ac833,this[_0x19cbcd(0x469)]=_0x358196;let {..._0x3bd00f}=(0x0,t[_0x19cbcd(0x4f0)])({},ee,this['_config']);if(!_0x3bd00f[_0x19cbcd(0x499)])throw Error(_0x19cbcd(0x273));this[_0x19cbcd(0x326)]=_0x3bd00f,this[_0x19cbcd(0x469)]['setConfig'](m,_0x3bd00f);}[_0x47c516(0x475)](){const _0x4c9fb5=_0x47c516;this[_0x4c9fb5(0x469)]['setConfig'](t[_0x4c9fb5(0x246)],this[_0x4c9fb5(0x326)][_0x4c9fb5(0x3a6)]??[]),this['_registerDependencies'](),this[_0x4c9fb5(0x2fe)]();}[_0x47c516(0x473)](){const _0x2bf828=_0x47c516;var _0x206c62,_0xae688;this[_0x2bf828(0x400)]['has'](t[_0x2bf828(0x526)])&&this[_0x2bf828(0x266)][_0x2bf828(0x492)](_0x2bf828(0x360),_0x2bf828(0x47a));let _0x3d581e=(0x0,t['mergeOverrideWithDependencies'])([[t[_0x2bf828(0x526)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this[_0x2bf828(0x326)][_0x2bf828(0x499)]}],[e[_0x2bf828(0x431)],{'useClass':Z}],[t[_0x2bf828(0x3fc)],{'useClass':G}],[t[_0x2bf828(0x50e)],{'useClass':J}],[nt,{'useClass':U}],[t[_0x2bf828(0x474)],{'useClass':Y}],[H],[tt]],(_0x206c62=this[_0x2bf828(0x326)])==null?void 0x0:_0x206c62['override']);if(!((_0xae688=this[_0x2bf828(0x326)])!=null&&_0xae688['enableSingleActiveInstanceLock'])){let _0x4a5fa2=_0x3d581e['findIndex'](([_0x5a7559])=>_0x5a7559===C);_0x4a5fa2!==-0x1&&_0x3d581e[_0x2bf828(0x4bc)](_0x4a5fa2,0x1);}(0x0,t[_0x2bf828(0x350)])(this[_0x2bf828(0x400)],_0x3d581e);}[_0x47c516(0x2fe)](){const _0x548e8b=_0x47c516;var _0x1ad70a,_0x2d3c34;if(this[_0x548e8b(0x400)][_0x548e8b(0x1fa)](l[_0x548e8b(0x45b)])[_0x548e8b(0x53c)]({'priority':0x14,'interceptor':(0x0,l[_0x548e8b(0x232)])({'maxParallel':0x6})}),!((_0x1ad70a=this['_config'])!=null&&_0x1ad70a[_0x548e8b(0x241)])){var _0x235586;(_0x235586=this[_0x548e8b(0x400)][_0x548e8b(0x1fa)](x,t[_0x548e8b(0x2c9)][_0x548e8b(0x442)]))==null||_0x235586['disableLocalCache']();}(_0x2d3c34=this[_0x548e8b(0x326)])!=null&&_0x2d3c34['enableAuthServer']&&(0x0,t[_0x548e8b(0x2f0)])(this[_0x548e8b(0x400)],[[W]]),(0x0,t[_0x548e8b(0x2f0)])(this[_0x548e8b(0x400)],[[K],[H],[X]]);}};g($,_0x47c516(0x2d1),_0x47c516(0x324)),g($,_0x47c516(0x358),$e),g($,_0x47c516(0x276),et),$=y([(0x0,t[_0x47c516(0x438)])(u[_0x47c516(0x4db)],l[_0x47c516(0x2b8)],e[_0x47c516(0x536)]),v(0x1,t[_0x47c516(0x4e0)]),v(0x2,(0x0,t[_0x47c516(0x528)])(t['Injector'])),v(0x3,t[_0x47c516(0x2ae)])],$),Object[_0x47c516(0x202)](exports,_0x47c516(0x385),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x4a3),{'enumerable':!0x0,'get':function(){return k;}}),Object['defineProperty'](exports,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x511),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x3f1),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x47c516(0x26d)]=m,Object[_0x47c516(0x202)](exports,_0x47c516(0x311),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x255),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x371),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x463),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x4b7),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x47c516(0x202)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x2c6),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x47c516(0x224)]=Be,exports[_0x47c516(0x2c0)]=ie,exports[_0x47c516(0x483)]=_,Object['defineProperty'](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x47c516(0x489)]=ae,Object[_0x47c516(0x202)](exports,_0x47c516(0x4c6),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x47c516(0x4f8)]=_0x47c516(0x215),exports[_0x47c516(0x4de)]=_0x47c516(0x3a7),exports[_0x47c516(0x301)]='/universer-api/user/session-ticket',Object[_0x47c516(0x202)](exports,_0x47c516(0x225),{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x47c516(0x202)](exports,'FetchingMissState',{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x47c516(0x3f5)]=_0x47c516(0x418),exports[_0x47c516(0x3d7)]=_0x47c516(0x540),exports[_0x47c516(0x25c)]=nt,exports[_0x47c516(0x2a5)]=Xe,exports[_0x47c516(0x461)]=qe,exports[_0x47c516(0x262)]=x,exports[_0x47c516(0x33c)]=We,exports['ISingleActiveUnitService']=C,exports[_0x47c516(0x29d)]=0x3e8,exports[_0x47c516(0x26e)]='LOCAL_CACHE_INTERVAL',Object[_0x47c516(0x202)](exports,_0x47c516(0x376),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x471),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x1f6),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x47c516(0x202)](exports,'PdfCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x4a8),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x47c516(0x4fe)]=_0x47c516(0x2e8),exports[_0x47c516(0x42a)]=_0x47c516(0x31e),exports[_0x47c516(0x36e)]=ge,Object['defineProperty'](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x319),{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x47c516(0x29e),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x47c516(0x202)](exports,_0x47c516(0x3c1),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports[_0x47c516(0x444)]=xe,Object[_0x47c516(0x202)](exports,_0x47c516(0x3e3),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x47c516(0x51e)]=Ge,exports[_0x47c516(0x3f4)]=ye,exports[_0x47c516(0x406)]=Ke;