@univerjs-pro/collaboration-client 1.1.0 → 1.3.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 (100) hide show
  1. package/README.md +2 -0
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/config/config.d.ts +19 -0
  66. package/lib/types/controllers/collaboration/changeset-submitter.d.ts +132 -0
  67. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +29 -2
  68. package/lib/types/controllers/collaboration/collaboration-state.d.ts +181 -87
  69. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +7 -0
  70. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +7 -3
  71. package/lib/types/facade/f-collaboration.d.ts +17 -0
  72. package/lib/types/facade/f-event.d.ts +89 -2
  73. package/lib/types/index.d.ts +5 -3
  74. package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -8
  75. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +2 -1
  76. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +10 -0
  77. package/lib/types/services/socket/collaboration-socket.service.d.ts +10 -2
  78. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +5 -0
  79. package/lib/umd/facade.js +1 -1
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/de-DE.js +1 -1
  84. package/lib/umd/locale/en-US.js +1 -1
  85. package/lib/umd/locale/es-ES.js +1 -1
  86. package/lib/umd/locale/fa-IR.js +1 -1
  87. package/lib/umd/locale/fr-FR.js +1 -1
  88. package/lib/umd/locale/id-ID.js +1 -1
  89. package/lib/umd/locale/it-IT.js +1 -1
  90. package/lib/umd/locale/ja-JP.js +1 -1
  91. package/lib/umd/locale/ko-KR.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/vi-VN.js +1 -1
  97. package/lib/umd/locale/zh-CN.js +1 -1
  98. package/lib/umd/locale/zh-HK.js +1 -1
  99. package/lib/umd/locale/zh-TW.js +1 -1
  100. package/package.json +15 -15
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
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;
1
+ const _0x3bc608=_0xa8b9;(function(_0x492356,_0x365e2e){const _0x1db5fd=_0xa8b9,_0x498b44=_0x492356();while(!![]){try{const _0x463aff=-parseInt(_0x1db5fd(0x2d5))/0x1+parseInt(_0x1db5fd(0x437))/0x2+-parseInt(_0x1db5fd(0x232))/0x3*(-parseInt(_0x1db5fd(0x3a4))/0x4)+parseInt(_0x1db5fd(0x272))/0x5+-parseInt(_0x1db5fd(0x3f3))/0x6+-parseInt(_0x1db5fd(0x3b2))/0x7+parseInt(_0x1db5fd(0x3bd))/0x8*(-parseInt(_0x1db5fd(0x493))/0x9);if(_0x463aff===_0x365e2e)break;else _0x498b44['push'](_0x498b44['shift']());}catch(_0x333715){_0x498b44['push'](_0x498b44['shift']());}}}(_0x449c,0x7140b),Object[_0x3bc608(0xf1)](exports,Symbol[_0x3bc608(0x3f9)],{'value':_0x3bc608(0x41f)}));let e=require('@univerjs/network'),t=require('rxjs'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs/core'),i=require('@univerjs/docs'),a=require('@univerjs/sheets'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x3bc608(0x2f1),h={};function g(_0xa4665f){'@babel/helpers - typeof';const _0x5c709e=_0x3bc608;return g=typeof Symbol==_0x5c709e(0x265)&&typeof Symbol[_0x5c709e(0x196)]==_0x5c709e(0x489)?function(_0x149bcc){return typeof _0x149bcc;}:function(_0xdeb486){const _0x1bf0a3=_0x5c709e;return _0xdeb486&&typeof Symbol==_0x1bf0a3(0x265)&&_0xdeb486[_0x1bf0a3(0x492)]===Symbol&&_0xdeb486!==Symbol[_0x1bf0a3(0x164)]?'symbol':typeof _0xdeb486;},g(_0xa4665f);}function ee(_0x44aa93,_0x5cc36e){const _0x5fa71f=_0x3bc608;if(g(_0x44aa93)!='object'||!_0x44aa93)return _0x44aa93;var _0x24557e=_0x44aa93[Symbol['toPrimitive']];if(_0x24557e!==void 0x0){var _0x390d87=_0x24557e[_0x5fa71f(0x1e2)](_0x44aa93,_0x5cc36e||_0x5fa71f(0x1d4));if(g(_0x390d87)!='object')return _0x390d87;throw TypeError(_0x5fa71f(0x47e));}return(_0x5cc36e===_0x5fa71f(0x268)?String:Number)(_0x44aa93);}function te(_0x2cef52){const _0x43a36a=_0x3bc608;var _0x570975=ee(_0x2cef52,_0x43a36a(0x268));return g(_0x570975)==_0x43a36a(0x489)?_0x570975:_0x570975+'';}function _(_0x14fb5a,_0x3fb526,_0x2f9c4c){const _0x42ef59=_0x3bc608;return(_0x3fb526=te(_0x3fb526))in _0x14fb5a?Object[_0x42ef59(0xf1)](_0x14fb5a,_0x3fb526,{'value':_0x2f9c4c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14fb5a[_0x3fb526]=_0x2f9c4c,_0x14fb5a;}var ne=class{constructor(_0x200981,_0x3f0170,_0xbc9e8e={}){const _0x2f5676=_0x3bc608;this[_0x2f5676(0x141)]=_0x3f0170,this['_options']=_0xbc9e8e,_(this,_0x2f5676(0x304),0x0),_(this,_0x2f5676(0x13e),void 0x0),_(this,'_ackTimeout',void 0x0),_(this,_0x2f5676(0x40f),void 0x0),_(this,_0x2f5676(0x223),0x0),_(this,'_nextDelay',0x0),_(this,'_timer',null),_(this,_0x2f5676(0x3ea),null),_(this,_0x2f5676(0x478),null),_(this,_0x2f5676(0x3fd),0x0),_(this,_0x2f5676(0x14d),!0x1),_(this,'_now',void 0x0),_(this,_0x2f5676(0x44d),void 0x0),this[_0x2f5676(0x44d)]=_0x200981,this[_0x2f5676(0x12f)]=_0xbc9e8e[_0x2f5676(0x21a)]??0x4e20,this[_0x2f5676(0x40f)]=Math[_0x2f5676(0x44b)](_0xbc9e8e[_0x2f5676(0x428)]??0x1d4c0,this[_0x2f5676(0x12f)]),this[_0x2f5676(0x2ae)]=_0xbc9e8e['now']??(()=>Date[_0x2f5676(0x261)]()),this[_0x2f5676(0x13e)]=this['_now']();}get[_0x3bc608(0x198)](){return this['_reqId'];}get['attempt'](){const _0x41a77c=_0x3bc608;return this[_0x41a77c(0x304)];}get['nextDelayMs'](){const _0x4bbc1b=_0x3bc608;return this[_0x4bbc1b(0x440)];}get[_0x3bc608(0x1a0)](){const _0x162e9b=_0x3bc608;return this[_0x162e9b(0x2ae)]()-this[_0x162e9b(0x13e)];}['bind'](_0x4f6132){const _0xb8832b=_0x3bc608;if(this[_0xb8832b(0x14d)])return;this[_0xb8832b(0x478)]=_0x4f6132;let _0x214644=this[_0xb8832b(0x3ea)];_0x214644&&(this[_0xb8832b(0x3ea)]=null,this['_resend'](_0x214644));}[_0x3bc608(0x315)](){this['_source']=null;}['submit'](_0x448d53,_0x2aefb1,_0x3fc4de){const _0x51bb3b=_0x3bc608;this[_0x51bb3b(0x14d)]||(_0x3fc4de&&this[_0x51bb3b(0x431)](_0x3fc4de),this[_0x51bb3b(0x412)](),this[_0x51bb3b(0x450)](_0x448d53),this[_0x51bb3b(0x44d)]=_0x448d53[_0x51bb3b(0x198)]??this['_reqId'],_0x3fc4de&&this[_0x51bb3b(0x3c7)](_0x3fc4de,_0x2aefb1));}[_0x3bc608(0x412)](){const _0x8bb662=_0x3bc608;this[_0x8bb662(0x32e)](this['_ackTimeout'],'ack_timeout');}[_0x3bc608(0x2a9)](_0x45e123=_0x3bc608(0x24e)){const _0x5e99d2=_0x3bc608;this[_0x5e99d2(0x32e)](this[_0x5e99d2(0x223)],_0x45e123);}['dispose'](){const _0x39235f=_0x3bc608;this[_0x39235f(0x14d)]=!0x0,this['_clearTimer'](),this[_0x39235f(0x478)]=null,this[_0x39235f(0x3ea)]=null;}[_0x3bc608(0x450)](_0x403976){const _0x34c14b=_0x3bc608;let _0x106085=++this['_sendToken'],_0x1b946a;try{_0x1b946a=this[_0x34c14b(0x141)](_0x403976,{'timeout':this[_0x34c14b(0x12f)]});}catch(_0x1b1b88){this['_onRequestFailed'](_0x106085,_0x1b1b88);return;}_0x1b946a instanceof Promise&&_0x1b946a['catch'](_0x5f0d4f=>this[_0x34c14b(0x215)](_0x106085,_0x5f0d4f));}[_0x3bc608(0x215)](_0x397eb2,_0x278985){const _0x42b8c6=_0x3bc608;if(this['_disposed']||_0x397eb2!==this[_0x42b8c6(0x3fd)])return;let _0x48f7fb=re(_0x278985,this[_0x42b8c6(0x223)]);_0x48f7fb!==null&&this[_0x42b8c6(0x32e)](_0x48f7fb,_0x42b8c6(0x330));}[_0x3bc608(0x32e)](_0x14b2d3,_0x277ed1){const _0x2cc6f4=_0x3bc608;this[_0x2cc6f4(0x14d)]||(this['_clearTimer'](),this[_0x2cc6f4(0x3ea)]=null,this[_0x2cc6f4(0x440)]=_0x14b2d3,this[_0x2cc6f4(0x360)]=setTimeout(()=>{const _0x39e761=_0x2cc6f4;this[_0x39e761(0x360)]=null,this[_0x39e761(0x478)]?this[_0x39e761(0x1c2)](_0x277ed1):this[_0x39e761(0x3ea)]=_0x277ed1;},_0x14b2d3));}[_0x3bc608(0x1c2)](_0x51afc5){const _0x20807c=_0x3bc608;let _0x1ccb4c=this[_0x20807c(0x478)];if(!_0x1ccb4c||this[_0x20807c(0x14d)])return;let {changeset:_0x3e3a0f,unsyncedMutationCount:_0xccf3b4}=_0x1ccb4c();this[_0x20807c(0x431)](_0x51afc5),this['armAckTimeout'](),this[_0x20807c(0x450)](_0x3e3a0f),this['_reqId']=_0x3e3a0f[_0x20807c(0x198)]??this[_0x20807c(0x44d)],this[_0x20807c(0x3c7)](_0x51afc5,_0xccf3b4);}[_0x3bc608(0x431)](_0x34fbcc){const _0x3fb1f2=_0x3bc608;this[_0x3fb1f2(0x304)]+=0x1,_0x34fbcc==='should_retry'||_0x34fbcc===_0x3fb1f2(0x330)||_0x34fbcc===_0x3fb1f2(0x214)?this[_0x3fb1f2(0x223)]=this[_0x3fb1f2(0x223)]===0x0?0x3e8:Math[_0x3fb1f2(0x20c)](this['_retryBackoff']*0x2,0x4e20):_0x34fbcc==='ack_timeout'&&(this[_0x3fb1f2(0x12f)]=Math[_0x3fb1f2(0x20c)](this['_ackTimeout']*0x2,this[_0x3fb1f2(0x40f)]));}[_0x3bc608(0x3c7)](_0x138c17,_0x377fa0){const _0x122f80=_0x3bc608;var _0x20cb61,_0x1a70a8;this[_0x122f80(0x14d)]||(_0x20cb61=(_0x1a70a8=this['_options'])[_0x122f80(0x1f9)])==null||_0x20cb61['call'](_0x1a70a8,{'reqId':this[_0x122f80(0x44d)],'reason':_0x138c17,'attempt':this[_0x122f80(0x304)],'elapsedMs':this['elapsedMs'],'unsyncedMutationCount':_0x377fa0,'nextDelayMs':this['_ackTimeout']});}['_clearTimer'](){const _0x5ba417=_0x3bc608;this['_timer']!=null&&(clearTimeout(this['_timer']),this[_0x5ba417(0x360)]=null);}};function re(_0x4414e4,_0x100b63){const _0xe66388=_0x3bc608;if(_0x4414e4 instanceof t[_0xe66388(0x2c5)])return null;if(_0x4414e4 instanceof e[_0xe66388(0x19b)]){let _0x3475a6=_0x4414e4['status']??0x0;return _0x3475a6===0x0||_0x3475a6===0x198||_0x3475a6===0x1ad||_0x3475a6>=0x1f4?Math['max'](_0x100b63,ie(_0x4414e4)):null;}return _0x100b63;}function ie(_0x42ac0b){const _0x5a079d=_0x3bc608;var _0x2b0c27;let _0x377d60=(_0x2b0c27=_0x42ac0b['headers'])==null||(_0x2b0c27=_0x2b0c27['get'](_0x5a079d(0x3cd)))==null?void 0x0:_0x2b0c27[0x0],_0x2b701a=_0x377d60===void 0x0?NaN:Number(_0x377d60);return Number[_0x5a079d(0x31f)](_0x2b701a)&&_0x2b701a>0x0?_0x2b701a*0x3e8:0x0;}function ae(_0x452857){const _0x6b640e=_0x3bc608;return JSON[_0x6b640e(0x42b)](_0x452857)[_0x6b640e(0x16e)];}let oe=function(_0x100461){const _0x1b8209=_0x3bc608;return _0x100461[_0x1b8209(0x26b)]='OTHER_CLIENT_EDITING',_0x100461[_0x1b8209(0x1e1)]=_0x1b8209(0x1e1),_0x100461[_0x1b8209(0x3b6)]=_0x1b8209(0x3b6),_0x100461[_0x1b8209(0x27c)]=_0x1b8209(0x27c),_0x100461[_0x1b8209(0x400)]=_0x1b8209(0x400),_0x100461['CLOSE_ROOM']=_0x1b8209(0x39b),_0x100461[_0x1b8209(0x393)]='JOIN_ROOM_FAILED',_0x100461[_0x1b8209(0x471)]=_0x1b8209(0x471),_0x100461[_0x1b8209(0x125)]=_0x1b8209(0x125),_0x100461[_0x1b8209(0x367)]=_0x1b8209(0x367),_0x100461['SUBMIT_CHANGESET_TIMEOUT']=_0x1b8209(0x238),_0x100461;}({});var v=class{constructor(){const _0x32a696=_0x3bc608;_(this,_0x32a696(0x408),new t['Subject']()),_(this,'event$',this[_0x32a696(0x408)][_0x32a696(0x40b)]());}[_0x3bc608(0x2d0)](_0x38fc23){this['_event$']['next'](_0x38fc23);}},se=class{constructor(){const _0x4966e2=_0x3bc608;_(this,_0x4966e2(0x448),new t[(_0x4966e2(0x1a3))]()),_(this,_0x4966e2(0x436),this[_0x4966e2(0x448)][_0x4966e2(0x40b)]());}['onCommentUpdate'](_0x4e0aa8){const _0x3b7271=_0x3bc608;this[_0x3b7271(0x448)][_0x3b7271(0x33a)](_0x4e0aa8);}};function y(_0x8f43d8,_0x2a238b){return function(_0x437b9a,_0x35f786){_0x2a238b(_0x437b9a,_0x35f786,_0x8f43d8);};}function b(_0x4f3b90,_0x1f7ccc,_0x28f5ac,_0x4e4ceb){const _0x4d248d=_0x3bc608;var _0x26948e=arguments[_0x4d248d(0x16e)],_0x58e9cd=_0x26948e<0x3?_0x1f7ccc:_0x4e4ceb===null?_0x4e4ceb=Object[_0x4d248d(0x288)](_0x1f7ccc,_0x28f5ac):_0x4e4ceb,_0x2e1e39;if(typeof Reflect==_0x4d248d(0x435)&&typeof Reflect[_0x4d248d(0x1a7)]==_0x4d248d(0x265))_0x58e9cd=Reflect[_0x4d248d(0x1a7)](_0x4f3b90,_0x1f7ccc,_0x28f5ac,_0x4e4ceb);else{for(var _0x55c2ae=_0x4f3b90[_0x4d248d(0x16e)]-0x1;_0x55c2ae>=0x0;_0x55c2ae--)(_0x2e1e39=_0x4f3b90[_0x55c2ae])&&(_0x58e9cd=(_0x26948e<0x3?_0x2e1e39(_0x58e9cd):_0x26948e>0x3?_0x2e1e39(_0x1f7ccc,_0x28f5ac,_0x58e9cd):_0x2e1e39(_0x1f7ccc,_0x28f5ac))||_0x58e9cd);}return _0x26948e>0x3&&_0x58e9cd&&Object['defineProperty'](_0x1f7ccc,_0x28f5ac,_0x58e9cd),_0x58e9cd;}let x=class extends r['Disposable']{constructor(_0x50c65f){const _0x3722cb=_0x3bc608;super(),this['_univerInstanceService']=_0x50c65f,_(this,_0x3722cb(0x2a3),new Map()),_(this,'_roomCreated$',new t[(_0x3722cb(0x1a3))]()),this[_0x3722cb(0x24c)]((0x0,t[_0x3722cb(0x22a)])(this[_0x3722cb(0x414)][_0x3722cb(0x343)](r[_0x3722cb(0x403)][_0x3722cb(0xf2)])[_0x3722cb(0x1d6)]((0x0,c[_0x3722cb(0x222)])(_0x4a9d1b=>_0x4a9d1b[_0x3722cb(0x363)]())),this['_univerInstanceService'][_0x3722cb(0x343)](r[_0x3722cb(0x403)][_0x3722cb(0x2c2)])[_0x3722cb(0x1d6)]((0x0,c[_0x3722cb(0x222)])(_0xb3dfd3=>_0xb3dfd3[_0x3722cb(0x363)]())),this[_0x3722cb(0x414)]['getTypeOfUnitDisposed$'](r[_0x3722cb(0x403)][_0x3722cb(0x398)])[_0x3722cb(0x1d6)]((0x0,c[_0x3722cb(0x222)])(_0x563f61=>_0x563f61[_0x3722cb(0x363)]())),this[_0x3722cb(0x414)][_0x3722cb(0x343)](r[_0x3722cb(0x403)][_0x3722cb(0x2c4)])['pipe']((0x0,c['map'])(_0x539fc0=>_0x539fc0[_0x3722cb(0x363)]())))[_0x3722cb(0x2ad)](_0x5df451=>this['_removeRoom'](_0x5df451)));}[_0x3bc608(0x314)](_0xed193){const _0x145ed0=_0x3bc608;return this['_roomMembers'][_0x145ed0(0x411)](_0xed193)?(0x0,t['of'])(this[_0x145ed0(0x2a3)][_0x145ed0(0x119)](_0xed193)):this['_roomCreated$'][_0x145ed0(0x1d6)]((0x0,c['map'])(_0x32417a=>{const _0xe4bc33=_0x145ed0;if(_0x32417a===_0xed193)return this[_0xe4bc33(0x2a3)]['get'](_0x32417a);}));}[_0x3bc608(0x23a)](_0x2592f6,_0x4228dc){const _0x53c8e0=_0x3bc608;let _0x1b531c=this[_0x53c8e0(0x2a3)][_0x53c8e0(0x119)](_0x2592f6);_0x1b531c||(_0x1b531c=new ce(),this[_0x53c8e0(0x2a3)][_0x53c8e0(0x122)](_0x2592f6,_0x1b531c),this[_0x53c8e0(0x2ab)][_0x53c8e0(0x33a)](_0x2592f6)),_0x1b531c['updateMember'](_0x4228dc);}[_0x3bc608(0x22d)](_0x14e577,_0x598177){const _0x4ee6a7=_0x3bc608;let _0x55f6b4=this[_0x4ee6a7(0x2a3)][_0x4ee6a7(0x119)](_0x14e577);_0x55f6b4&&_0x55f6b4[_0x4ee6a7(0x22d)](_0x598177);}[_0x3bc608(0x1da)](_0x26c886){const _0x5c83e6=_0x3bc608;return this[_0x5c83e6(0x2a3)]['get'](_0x26c886);}[_0x3bc608(0x1c5)](_0x178376,_0x1bb225){const _0x5d0ad2=_0x3bc608;let _0x3ece76=this['_roomMembers'][_0x5d0ad2(0x119)](_0x178376);if(_0x3ece76)return _0x3ece76[_0x5d0ad2(0x1c5)](_0x1bb225);}[_0x3bc608(0xec)](_0x490bd2){const _0x2285e8=_0x3bc608;let _0x2ee78d=this[_0x2285e8(0x2a3)][_0x2285e8(0x119)](_0x490bd2);_0x2ee78d&&(_0x2ee78d[_0x2285e8(0x3cc)](),this['_roomMembers']['delete'](_0x490bd2));}[_0x3bc608(0x3cc)](){const _0x4763fe=_0x3bc608;this[_0x4763fe(0x2a3)]['forEach'](_0x53f611=>_0x53f611[_0x4763fe(0x3cc)]()),this[_0x4763fe(0x2a3)][_0x4763fe(0x3ca)](),this['_roomCreated$'][_0x4763fe(0x10e)]();}};x=b([y(0x0,r[_0x3bc608(0x260)])],x);var ce=class extends r[_0x3bc608(0x358)]{constructor(..._0x3ed803){const _0x49aabb=_0x3bc608;super(..._0x3ed803),_(this,_0x49aabb(0x2b5),new Map()),_(this,'_members$',new t['BehaviorSubject'](this[_0x49aabb(0x2b5)])),_(this,'members$',this['_members$']['asObservable']());}[_0x3bc608(0x3cc)](){const _0x2ddd82=_0x3bc608;this[_0x2ddd82(0x2b5)][_0x2ddd82(0x3ca)](),this[_0x2ddd82(0x45a)][_0x2ddd82(0x10e)]();}['updateMember'](_0x4fe1f9){const _0x362d2f=_0x3bc608;this[_0x362d2f(0x2b5)]['set'](_0x4fe1f9[_0x362d2f(0x28c)],_0x4fe1f9),this[_0x362d2f(0x1e7)]();}['removeMember'](_0x133ea0){const _0x198610=_0x3bc608;this[_0x198610(0x2b5)][_0x198610(0x3a1)](_0x133ea0),this[_0x198610(0x1e7)]();}[_0x3bc608(0x1c5)](_0x347651){const _0x3fc65b=_0x3bc608;return this[_0x3fc65b(0x2b5)][_0x3fc65b(0x119)](_0x347651);}['getAllMembers'](){const _0x2bb2a2=_0x3bc608;return Array[_0x2bb2a2(0x32f)](this[_0x2bb2a2(0x2b5)]['values']());}[_0x3bc608(0x1e7)](){const _0x32b09e=_0x3bc608;this[_0x32b09e(0x45a)][_0x32b09e(0x33a)](this[_0x32b09e(0x2b5)]);}};function le(_0x26a4d2,_0x34ff49){const _0x574bcc=_0x3bc608;if(de(_0x26a4d2))return _0x34ff49;if(_0x34ff49[_0x574bcc(0x1e5)]===n[_0x574bcc(0x1be)][_0x574bcc(0x47b)]){let _0x7c2224=ge(_0x26a4d2),_0xdf174=_0x34ff49;return{..._0xdf174,'data':{..._0xdf174[_0x574bcc(0x34b)],'unitID':_0x26a4d2['target']['unitId'],'unitType':_0x26a4d2[_0x574bcc(0x1f4)][_0x574bcc(0x1b8)]??_0xdf174[_0x574bcc(0x34b)][_0x574bcc(0x1b8)],'changeset':_0x7c2224[_0x574bcc(0x207)](_0xdf174[_0x574bcc(0x34b)]['changeset'],_e(_0x26a4d2))}};}if(_0x34ff49[_0x574bcc(0x1e5)]===n[_0x574bcc(0x1be)][_0x574bcc(0x3d4)]){let _0x373e5f=_0x34ff49;return{..._0x373e5f,'data':{..._0x373e5f['data'],'unitID':_0x26a4d2['target'][_0x574bcc(0x3dc)],'unitType':_0x26a4d2[_0x574bcc(0x1f4)][_0x574bcc(0x1b8)]??_0x373e5f[_0x574bcc(0x34b)]['unitType']}};}return _0x34ff49;}function ue(_0x4438ec,_0x45db2c){const _0x5d586e=_0x3bc608;if(de(_0x4438ec))return[_0x45db2c];switch(_0x45db2c['eventID']){case n[_0x5d586e(0x1be)][_0x5d586e(0x1f0)]:return[fe(_0x4438ec,_0x45db2c)];case n[_0x5d586e(0x1be)][_0x5d586e(0x2c6)]:return[me(_0x4438ec,_0x45db2c)];case n[_0x5d586e(0x1be)]['CHANGESET_SHOULD_RETRY']:return[pe(_0x4438ec,_0x45db2c)];default:return[_0x45db2c];}}function de(_0x522dc8){const _0x48be76=_0x3bc608;return _0x522dc8[_0x48be76(0x1f4)][_0x48be76(0x295)]==null&&_0x522dc8[_0x48be76(0x1f4)][_0x48be76(0x3dc)]===_0x522dc8[_0x48be76(0x26e)]&&!_0x522dc8[_0x48be76(0x167)];}function fe(_0x1f900a,_0x4258b2){const _0x21e454=_0x3bc608;return{..._0x4258b2,'data':(0x0,n[_0x21e454(0x17f)])(he(_0x1f900a,(0x0,n[_0x21e454(0x395)])(_0x4258b2[_0x21e454(0x34b)])))};}function pe(_0x425672,_0x1828ab){const _0x4d921f=_0x3bc608;return{..._0x1828ab,'data':he(_0x425672,_0x1828ab[_0x4d921f(0x34b)])};}function me(_0x154e31,_0x25df23){const _0xea48d7=_0x3bc608;let _0x3c5b28=_0x25df23[_0xea48d7(0x34b)];return{..._0x25df23,'data':{..._0x3c5b28,'changesets':_0x3c5b28[_0xea48d7(0x1ee)]['map'](_0x327b96=>(0x0,n[_0xea48d7(0x17f)])(he(_0x154e31,(0x0,n[_0xea48d7(0x395)])(_0x327b96))))}};}function he(_0x3dd89e,_0x5bfa9f){const _0x59421c=_0x3bc608;return ge(_0x3dd89e)[_0x59421c(0x338)](_0x5bfa9f,_e(_0x3dd89e));}function ge(_0x42c01a){const _0x113d33=_0x3bc608;if(!_0x42c01a[_0x113d33(0x167)])throw Error(_0x113d33(0xe9));return _0x42c01a['changeset'];}function _e(_0x13a811){const _0x55d1ae=_0x3bc608;return{'localUnitId':_0x13a811[_0x55d1ae(0x26e)],'unitType':_0x13a811['unitType'],'target':_0x13a811['target']};}let ve=function(_0x437e73){const _0xddec02=_0x3bc608;return _0x437e73[_0x437e73[_0xddec02(0x285)]=0x0]='IDLE',_0x437e73[_0x437e73[_0xddec02(0x264)]=0x1]=_0xddec02(0x264),_0x437e73[_0x437e73[_0xddec02(0x25d)]=0x2]='OFFLINE',_0x437e73[_0x437e73['ONLINE']=0x3]='ONLINE',_0x437e73;}({});const ye={[o[_0x3bc608(0x2c9)][_0x3bc608(0x475)]]:'session.join-failed',[o[_0x3bc608(0x2c9)][_0x3bc608(0x356)]]:_0x3bc608(0x3ff),[o[_0x3bc608(0x2c9)]['JOIN_ROOM_NOT_EXISTS']]:_0x3bc608(0x108),[o['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:_0x3bc608(0x1d8),[o[_0x3bc608(0x2c9)][_0x3bc608(0x446)]]:'session.room-cnt-exceeds'};let S=class extends r['RxDisposable']{get[_0x3bc608(0x445)](){const _0x587208=_0x3bc608;return this[_0x587208(0x35f)]['getValue']();}constructor(_0x2eb05f,_0x545756,_0x54289a,_0x270135,_0x5d10b8,_0x4b9ccc,_0x45bba7){const _0xba4a42=_0x3bc608;super(),this[_0xba4a42(0x434)]=_0x2eb05f,this[_0xba4a42(0x2bc)]=_0x54289a,this[_0xba4a42(0x389)]=_0x270135,this[_0xba4a42(0x101)]=_0x5d10b8,this[_0xba4a42(0x1fe)]=_0x4b9ccc,this[_0xba4a42(0x1bb)]=_0x45bba7,_(this,_0xba4a42(0x35f),new t[(_0xba4a42(0x249))](0x0)),_(this,_0xba4a42(0x1d5),this[_0xba4a42(0x35f)][_0xba4a42(0x40b)]()),_(this,_0xba4a42(0x408),new t[(_0xba4a42(0x1a3))]()),_(this,_0xba4a42(0x165),this[_0xba4a42(0x408)][_0xba4a42(0x40b)]()),_(this,_0xba4a42(0x2e0),void 0x0),_(this,_0xba4a42(0x12a),void 0x0),_(this,_0xba4a42(0x373),!0x1),_(this,_0xba4a42(0xef),null),this['_shouldReportTelemetry']=!!this[_0xba4a42(0x1bb)],_0x545756[_0xba4a42(0x1d6)]((0x0,t['takeUntil'])(this['dispose$']))['subscribe'](_0x3a59b1=>{const _0x11c7bb=_0xba4a42;if(_0x3a59b1!==void 0x0){if(this[_0x11c7bb(0x2e0)]=_0x3a59b1,_0x3a59b1)this[_0x11c7bb(0x22e)](_0x3a59b1),this[_0x11c7bb(0x12a)]=_0x3a59b1[_0x11c7bb(0x30d)][_0x11c7bb(0x2ad)](_0x3a5b42=>{const _0x33e6a8=_0x11c7bb;_0x3a5b42['routeKey']===this[_0x33e6a8(0x434)][_0x33e6a8(0x1f4)][_0x33e6a8(0x3dc)]&&this['_onCombEvent'](_0x3a5b42);});else{var _0x5a6864;this[_0x11c7bb(0x178)](),this[_0x11c7bb(0x35f)][_0x11c7bb(0x33a)](0x2),(_0x5a6864=this[_0x11c7bb(0x12a)])==null||_0x5a6864['unsubscribe'](),this[_0x11c7bb(0x12a)]=null;}}});}[_0x3bc608(0x1a6)](){const _0x50c851=_0x3bc608;var _0x1ec028;return((_0x1ec028=this[_0x50c851(0x2e0)])==null?void 0x0:_0x1ec028[_0x50c851(0x28c)])??null;}[_0x3bc608(0x3cc)](){const _0x27ab68=_0x3bc608;super[_0x27ab68(0x3cc)](),this['close'](),this['dispose$']['next'](),this['dispose$'][_0x27ab68(0x10e)]();}['close'](){const _0x14576f=_0x3bc608;var _0x8c7296;this[_0x14576f(0x178)](),(_0x8c7296=this[_0x14576f(0x2e0)])==null||_0x8c7296[_0x14576f(0x153)]({'cmd':o[_0x14576f(0x162)][_0x14576f(0x37e)],'data':{'roomID':this['_identity']['target']['unitId']}}),this[_0x14576f(0x408)][_0x14576f(0x10e)](),this[_0x14576f(0x35f)]['complete']();}[_0x3bc608(0x11e)](_0x24ee36){const _0x50a10f=_0x3bc608;_0x24ee36['cmd']===o[_0x50a10f(0x162)][_0x50a10f(0x21c)]?this[_0x50a10f(0x2d7)](_0x24ee36):_0x24ee36[_0x50a10f(0x1e9)]===o[_0x50a10f(0x162)][_0x50a10f(0x2d4)]&&this[_0x50a10f(0x3ee)](_0x24ee36);}[_0x3bc608(0x22e)](_0xca103a){const _0x59588b=_0x3bc608;this[_0x59588b(0x35f)][_0x59588b(0x33a)](0x1),_0xca103a[_0x59588b(0x153)]({'cmd':o[_0x59588b(0x162)][_0x59588b(0x21c)],'routeKey':this[_0x59588b(0x434)][_0x59588b(0x1f4)][_0x59588b(0x3dc)],'routeType':'','data':{'rooms':[{'roomID':this[_0x59588b(0x434)][_0x59588b(0x1f4)][_0x59588b(0x3dc)]}]}});}[_0x3bc608(0x2d7)](_0x5f0a54){const _0x1d0fd0=_0x3bc608;var _0x527bc2;if(_0x5f0a54[_0x1d0fd0(0x3e2)]in ye){this[_0x1d0fd0(0x1fe)][_0x1d0fd0(0x2d0)]({'id':_0x1d0fd0(0x393),'data':ye[_0x5f0a54[_0x1d0fd0(0x3e2)]]}),this[_0x1d0fd0(0x35f)][_0x1d0fd0(0x33a)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x17b3a7=(_0x527bc2=_0x5f0a54[_0x1d0fd0(0x34b)][_0x1d0fd0(0x2b2)][this[_0x1d0fd0(0x434)]['target']['unitId']])==null?void 0x0:_0x527bc2['members'];_0x17b3a7&&_0x17b3a7[_0x1d0fd0(0x103)](_0x11dfb7=>this['_memberService']['updateMember'](this[_0x1d0fd0(0x434)][_0x1d0fd0(0x26e)],_0x11dfb7));}[_0x3bc608(0x3ee)](_0x3452f2){const _0x22635b=_0x3bc608;try{let _0x29a1e4=ue(this[_0x22635b(0x434)],_0x3452f2[_0x22635b(0x34b)]);for(let _0xec59e2 of _0x29a1e4)switch(_0xec59e2[_0x22635b(0x1e5)]){case n[_0x22635b(0x1be)][_0x22635b(0x34a)]:this[_0x22635b(0x157)](_0xec59e2),this[_0x22635b(0x408)][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)][_0x22635b(0x390)]:this['_onUserLeave'](_0xec59e2),this['_event$'][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)][_0x22635b(0x362)]:case n[_0x22635b(0x1be)][_0x22635b(0x34e)]:this[_0x22635b(0x10d)](),this[_0x22635b(0x408)][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)]['MSG_FOR_ERROR']:this[_0x22635b(0x2bc)][_0x22635b(0x3a2)](_0x22635b(0x40c)+JSON[_0x22635b(0x42b)](_0xec59e2)),this['_event$'][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)][_0x22635b(0x218)]:this[_0x22635b(0x101)]['onCommentUpdate'](_0xec59e2[_0x22635b(0x34b)]),this['_event$'][_0x22635b(0x33a)](_0xec59e2);break;default:this[_0x22635b(0x408)]['next'](_0xec59e2);}}catch(_0x4cb9a8){this[_0x22635b(0x2bc)][_0x22635b(0x3a2)](_0x4cb9a8,_0x3452f2);}}[_0x3bc608(0x157)](_0xbd29c6){const _0x324697=_0x3bc608;this[_0x324697(0x389)][_0x324697(0x23a)](this['_identity'][_0x324697(0x26e)],_0xbd29c6[_0x324697(0x34b)]);}[_0x3bc608(0x374)](_0x407d1e){const _0xf30042=_0x3bc608;this[_0xf30042(0x389)][_0xf30042(0x22d)](this[_0xf30042(0x434)][_0xf30042(0x26e)],_0x407d1e['data'][_0xf30042(0x28c)]);}async[_0x3bc608(0x153)](_0x4dd40d,_0x3ca19f,_0x2f7783){const _0x1dfc97=_0x3bc608;if(this['sessionStatus']!==0x3||!this[_0x1dfc97(0x2e0)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x87b46=le(this[_0x1dfc97(0x434)],_0x4dd40d);_0x87b46[_0x1dfc97(0x1e5)]===n['CollaborationEvent']['SUBMIT_CHANGESET']&&this[_0x1dfc97(0x20e)](_0x87b46);let _0x390dff={'cmd':o[_0x1dfc97(0x162)][_0x1dfc97(0x496)],'routeKey':this[_0x1dfc97(0x434)][_0x1dfc97(0x1f4)][_0x1dfc97(0x3dc)],'routeType':'','data':_0x87b46};return _0x2f7783===void 0x0?this['_socket'][_0x1dfc97(0x153)](_0x390dff):this[_0x1dfc97(0x2e0)][_0x1dfc97(0x153)](_0x390dff,_0x2f7783);}catch(_0x28c827){this[_0x1dfc97(0x2bc)]['error'](_0x28c827);}}[_0x3bc608(0x20e)](_0x55c621){const _0x4c38b2=_0x3bc608;if(!this[_0x4c38b2(0x373)])return;let {data:_0x592f62}=_0x55c621,{unitID:_0x3878f7,changeset:_0x1f96ce}=_0x592f62,{mutations:_0x1df69f,type:_0x2f4c04}=_0x1f96ce;this['_telemetryInfo']={'unitId':_0x3878f7,'type':_0x2f4c04,'startTime':performance[_0x4c38b2(0x261)](),'stopTime':0x0,'duration':0x0,'size':ae(_0x1df69f)};}[_0x3bc608(0x10d)](){const _0x4baf3c=_0x3bc608;this[_0x4baf3c(0x373)]&&(this[_0x4baf3c(0xef)]?(this['_telemetryInfo'][_0x4baf3c(0x18b)]=performance[_0x4baf3c(0x261)](),this[_0x4baf3c(0xef)]['duration']=this[_0x4baf3c(0xef)][_0x4baf3c(0x18b)]-this[_0x4baf3c(0xef)][_0x4baf3c(0x332)],this[_0x4baf3c(0x1bb)][_0x4baf3c(0x1f2)](_0x4baf3c(0x3d7),this[_0x4baf3c(0xef)]),this[_0x4baf3c(0xef)]=null):this['_logService'][_0x4baf3c(0x3a2)](_0x4baf3c(0x19f),_0x4baf3c(0x313)));}[_0x3bc608(0x178)](){const _0x4b91b2=_0x3bc608;this[_0x4b91b2(0xef)]=null;}};S=b([y(0x2,r['ILogService']),y(0x3,(0x0,r[_0x3bc608(0x2bb)])(x)),y(0x4,(0x0,r['Inject'])(se)),y(0x5,(0x0,r['Inject'])(v)),y(0x6,(0x0,r[_0x3bc608(0x18d)])(s['ITelemetryService']))],S);const C=(0x0,r[_0x3bc608(0x2e1)])(_0x3bc608(0x211));function be(_0x40cb90,_0x282c24){const _0x257cbf=_0x3bc608;return _0x282c24===''||_0x282c24==null?_0x257cbf(0x202)+_0x40cb90:_0x257cbf(0x202)+_0x40cb90+'-'+encodeURIComponent(_0x282c24);}function xe(_0x1a5fed){const _0x1b4eac=_0x3bc608;let {unitID:_0x38fb18,mutations:_0x9e2522}=_0x1a5fed;return{'unitId':_0x38fb18,'subUnitId':_0x9e2522[_0x1b4eac(0x16e)]>0x0?_0x9e2522[0x0][_0x1b4eac(0x41a)][_0x1b4eac(0x219)]:null};}let w=class{constructor(_0x162a66,_0x5452dd,_0x574eed){const _0x1f6c9f=_0x3bc608;this['_injector']=_0x162a66,this[_0x1f6c9f(0x378)]=_0x5452dd,this[_0x1f6c9f(0x2c3)]=_0x574eed;}[_0x3bc608(0x286)](_0x5095ea){const _0x576201=_0x3bc608;var _0x3fc84d,_0x53cbc5;let _0x1a703d=this['_injector'][_0x576201(0x119)](a[_0x576201(0x1bc)]),{unitId:_0x194657,subUnitId:_0x4fd5a3}=xe(_0x5095ea),_0x3d60b1=_0x1a703d==null?void 0x0:_0x1a703d[_0x576201(0x375)](_0x194657)['getCurrentSelections'](),_0x594f0d=(_0x3fc84d=this['_instanceService']['getUnit'](_0x194657))==null||(_0x3fc84d=_0x3fc84d[_0x576201(0x42c)]())==null?void 0x0:_0x3fc84d[_0x576201(0x146)]();if(_0x3d60b1['length']===0x0||!_0x194657||!_0x4fd5a3)return;let _0x555ed8=[{'id':a['SetSelectionsOperation']['id'],'params':{'unitId':_0x194657,'subUnitId':_0x594f0d,'selections':r[_0x576201(0x42e)][_0x576201(0x47d)](_0x3d60b1)}}],_0x3b0603=this['_transformService']['transformMutationsWithChangeset'](_0x5095ea,_0x555ed8);if(!(0x0,n[_0x576201(0x3c5)])(_0x3b0603))throw _0x3b0603[_0x576201(0x3a2)];let _0x106462=(_0x53cbc5=_0x3b0603[_0x576201(0x2fd)][0x0])==null||(_0x53cbc5=_0x53cbc5[_0x576201(0x41a)])==null?void 0x0:_0x53cbc5[_0x576201(0x25f)];if(Array[_0x576201(0x2f7)](_0x106462)&&_0x106462[_0x576201(0x16e)]){if(_0x106462['length']===_0x555ed8[0x0][_0x576201(0x41a)][_0x576201(0x25f)][_0x576201(0x16e)]&&_0x106462[_0x576201(0x127)]((_0x12e282,_0x24a74f)=>r[_0x576201(0x189)]['equals'](_0x12e282[_0x576201(0x3c9)],_0x555ed8[0x0]['params'][_0x576201(0x25f)][_0x24a74f]['range'])))return;this[_0x576201(0x1aa)]['get'](r[_0x576201(0x185)])['executeCommand'](a['SetSelectionsOperation']['id'],{'unitId':_0x194657,'subUnitId':_0x594f0d,'selections':_0x106462});}}};w=b([y(0x0,(0x0,r['Inject'])(r['Injector'])),y(0x1,n[_0x3bc608(0x331)]),y(0x2,r[_0x3bc608(0x260)])],w);const T=(0x0,r['createIdentifier'])(_0x3bc608(0x413));let Se=function(_0x53edc5){const _0x2f28e7=_0x3bc608;return _0x53edc5[_0x53edc5[_0x2f28e7(0x3e1)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x53edc5[_0x53edc5[_0x2f28e7(0x134)]=0x1]='OTHER_CLIENTS_EDITING',_0x53edc5;}({});function Ce(_0x21cf4e){const _0x30d393=_0x3bc608;var _0x56b8b0;return!!((_0x56b8b0=_0x21cf4e[_0x30d393(0x41a)])!=null&&_0x56b8b0['__splitChunk__']);}const we=new Set([a['InsertSheetMutation']['id']]),Te=new Set([l[_0x3bc608(0x253)]['id'],l['EnsureSlideMasterPageMutation']['id'],l[_0x3bc608(0x2cc)]['id'],l[_0x3bc608(0x246)]['id']]);function Ee(_0x3526b5,_0x185d9c=we){const _0x5a4bb9=_0x3bc608;let _0xfc21f7=[];for(let _0x3f1cd3 of _0x3526b5){if(_0x185d9c['has'](_0x3f1cd3['id'])||Ce(_0x3f1cd3)){if(_0xfc21f7[_0x5a4bb9(0x16e)]>0x0)break;_0xfc21f7[_0x5a4bb9(0x13a)](_0x3f1cd3);break;}_0xfc21f7[_0x5a4bb9(0x13a)](_0x3f1cd3);}return _0xfc21f7;}function E(_0xe485c4,_0xdfa981,_0x233215,_0x4d3294,_0x2cfaf3){const _0x1fff43=_0x3bc608;let _0x2d67e8=Ee(_0xe485c4),_0x1d9045=_0x2cfaf3['getCurrentUser'](),_0x20e8a2=(_0x1d9045==null?void 0x0:_0x1d9045[_0x1fff43(0x381)])??_0x1fff43(0x1bd),_0x32b8d7=(_0x1d9045==null?void 0x0:_0x1d9045[_0x1fff43(0x28c)])??'unknown';return{'changeset':{'unitID':_0xdfa981,'type':(0x0,n[_0x1fff43(0x429)])(_0x233215[_0x1fff43(0x1a2)](_0xdfa981)),'baseRev':_0x4d3294[_0x1fff43(0x1b4)](_0xdfa981),'revision':0x0,'userID':_0x20e8a2,'memberID':_0x32b8d7,'mutations':_0x2d67e8},'pendingMutations':_0xe485c4['slice'](_0x2d67e8[_0x1fff43(0x16e)])};}const De=E;function Oe(_0x4c8bf6,_0x194174,_0x9981a2,_0x30b899,_0x54452e){const _0x20bc1a=_0x3bc608;let _0x24a773=Ee(_0x4c8bf6,Te),_0x4a40bb=_0x54452e[_0x20bc1a(0x147)](),_0x4c38ee=(_0x4a40bb==null?void 0x0:_0x4a40bb[_0x20bc1a(0x381)])??'unknown',_0x1dd5dd=(_0x4a40bb==null?void 0x0:_0x4a40bb['memberID'])??_0x20bc1a(0x1bd);return{'changeset':{'unitID':_0x194174,'type':(0x0,n[_0x20bc1a(0x429)])(_0x9981a2[_0x20bc1a(0x1a2)](_0x194174)),'baseRev':_0x30b899['getCurrentRevOfUnit'](_0x194174),'revision':0x0,'userID':_0x4c38ee,'memberID':_0x1dd5dd,'mutations':_0x24a773},'pendingMutations':_0x4c8bf6[_0x20bc1a(0x1a1)](_0x24a773[_0x20bc1a(0x16e)])};}function ke(_0x1cc2ac,_0x2beada,_0x41bc7f,_0x27be7b,_0x4b49e0){const _0x1037cd=_0x3bc608;let _0x5c4a19=_0x1cc2ac[_0x1037cd(0x2a5)]((_0x28b8e6,_0x23a9b1)=>{const _0x50feb5=_0x1037cd;let _0x3a0c31=_0x28b8e6[_0x28b8e6[_0x50feb5(0x16e)]-0x1],{id:_0x3ac973}=_0x3a0c31??{},{id:_0x1f5eda,type:_0x24378e}=_0x23a9b1,_0x1de6f5=_0x23a9b1[_0x50feb5(0x41a)];if(_0x3ac973&&_0x3ac973!==_0x1f5eda)throw Error(_0x50feb5(0x321)+_0x3ac973+_0x50feb5(0x427)+_0x1f5eda+'.');if(!_0x3a0c31)return[{'id':_0x1f5eda,'type':_0x24378e,'params':{'unitId':_0x1de6f5[_0x50feb5(0x3dc)],'textRanges':_0x1de6f5[_0x50feb5(0x344)],'actions':_0x1de6f5[_0x50feb5(0x33d)]}}];let _0x261f91=_0x3a0c31['params'];return Ae(_0x261f91,_0x1de6f5)?[..._0x28b8e6[_0x50feb5(0x1a1)](0x0,-0x1),{..._0x3a0c31,'id':_0x1f5eda,'type':_0x24378e,'params':{'unitId':_0x1de6f5[_0x50feb5(0x3dc)],'textRanges':_0x1de6f5[_0x50feb5(0x344)],'actions':r[_0x50feb5(0x1d0)][_0x50feb5(0x491)](_0x261f91[_0x50feb5(0x33d)],_0x1de6f5[_0x50feb5(0x33d)])}}]:[..._0x28b8e6,{'id':_0x1f5eda,'type':_0x24378e,'params':{'unitId':_0x1de6f5['unitId'],'textRanges':_0x1de6f5[_0x50feb5(0x344)],'actions':_0x1de6f5[_0x50feb5(0x33d)]}}];},[]),_0x1b27df=_0x4b49e0[_0x1037cd(0x147)](),_0x31d1ed=(_0x1b27df==null?void 0x0:_0x1b27df[_0x1037cd(0x381)])??_0x1037cd(0x1bd),_0x1a594e=(_0x1b27df==null?void 0x0:_0x1b27df[_0x1037cd(0x28c)])??_0x1037cd(0x1bd);return{'changeset':{'unitID':_0x2beada,'type':(0x0,n[_0x1037cd(0x429)])(_0x41bc7f[_0x1037cd(0x1a2)](_0x2beada)),'baseRev':_0x27be7b['getCurrentRevOfUnit'](_0x2beada),'revision':0x0,'userID':_0x31d1ed,'memberID':_0x1a594e,'mutations':_0x5c4a19},'pendingMutations':_0x1cc2ac[_0x1037cd(0x1a1)](_0x1cc2ac['length'])};}function Ae(_0xefe0aa,_0x8ac5cd){const _0x31d7e4=_0x3bc608;return!je(_0xefe0aa)&&!je(_0x8ac5cd)&&Me(_0xefe0aa[_0x31d7e4(0x33d)],_0x8ac5cd['actions']);}function je(_0x470eee){const _0x721282=_0x3bc608;return _0x470eee[_0x721282(0x335)]!==void 0x0;}function Me(_0x2abe86,_0xdbf0b2){return Ne(_0x2abe86)&&Ne(_0xdbf0b2)&&!Fe(_0x2abe86)&&!Fe(_0xdbf0b2)&&!Pe(_0x2abe86)&&!Pe(_0xdbf0b2);}function Ne(_0x4a66cd){const _0x48b73e=_0x3bc608;return Ie(_0x4a66cd)[_0x48b73e(0x3fc)](_0x402cc2=>D(_0x402cc2)&&_0x402cc2['et']===_0x48b73e(0x459));}function Pe(_0x5ad193){const _0x551f58=_0x3bc608;return Ie(_0x5ad193)[_0x551f58(0x3fc)](_0x1cb56c=>Array[_0x551f58(0x2f7)](_0x1cb56c)||typeof _0x1cb56c=='string'||typeof _0x1cb56c==_0x551f58(0x3b9));}function Fe(_0x1ed097){const _0x332e11=_0x3bc608;return Ie(_0x1ed097)[_0x332e11(0x3fc)](_0x2ca115=>!D(_0x2ca115)||_0x2ca115['et']!==_0x332e11(0x459)||!Array[_0x332e11(0x2f7)](_0x2ca115['e'])?!0x1:_0x2ca115['e'][_0x332e11(0x3fc)](_0x51e677=>!D(_0x51e677)||!D(_0x51e677[_0x332e11(0x28e)])?!0x1:Object[_0x332e11(0x164)]['hasOwnProperty'][_0x332e11(0x1e2)](_0x51e677[_0x332e11(0x28e)],_0x332e11(0x16f))||Object[_0x332e11(0x164)][_0x332e11(0x3ec)][_0x332e11(0x1e2)](_0x51e677[_0x332e11(0x28e)],_0x332e11(0x40a))||Object[_0x332e11(0x164)][_0x332e11(0x3ec)]['call'](_0x51e677[_0x332e11(0x28e)],'blockRanges')));}function Ie(_0x2e3652){const _0x1391a0=_0x3bc608;if(!Array[_0x1391a0(0x2f7)](_0x2e3652))return[];let _0x1ba9f0=_0x2e3652[_0x1391a0(0x480)](_0x1391a0(0x28e))?_0x2e3652:_0x2e3652['find'](_0x5a63cd=>Array[_0x1391a0(0x2f7)](_0x5a63cd)&&_0x5a63cd[_0x1391a0(0x480)](_0x1391a0(0x28e)));if(!Array[_0x1391a0(0x2f7)](_0x1ba9f0))return[];let _0x26f461=_0x1ba9f0[_0x1391a0(0x3af)](_0x1391a0(0x28e));return _0x26f461===-0x1?[]:_0x1ba9f0[_0x1391a0(0x1a1)](_0x26f461+0x1);}function D(_0x459176){const _0x2fe6be=_0x3bc608;return typeof _0x459176==_0x2fe6be(0x435)&&!!_0x459176&&!Array[_0x2fe6be(0x2f7)](_0x459176);}function Le(_0x29008c,_0x108b10){const _0x171037=_0x3bc608;for(let _0x4c9b7a of _0x29008c[_0x171037(0x29d)]){if(_0x4c9b7a['id']!==n['RevertRevisionMutation']['id'])continue;let _0x1f0dd0=_0x4c9b7a[_0x171037(0x41a)];if((_0x1f0dd0==null?void 0x0:_0x1f0dd0[_0x171037(0x3dc)])===_0x108b10&&typeof _0x1f0dd0['revision']=='number')return{'unitId':_0x1f0dd0[_0x171037(0x3dc)],'revision':_0x1f0dd0[_0x171037(0x2f9)]};}return null;}var Re,ze,Be,Ve=class extends Error{constructor(_0x2817da){const _0x76f004=_0x3bc608;super(_0x2817da instanceof Error?_0x2817da[_0x76f004(0x3c4)]:typeof _0x2817da=='string'?_0x2817da:'[CollaborationState]:\x20apply\x20error!'),this[_0x76f004(0x33f)]=_0x2817da,this[_0x76f004(0x142)]=_0x76f004(0x497);}},He=class extends Error{constructor(_0x864f9){const _0x164ae6=_0x3bc608;var _0x622b41;super(_0x164ae6(0x12b)+((_0x622b41=_0x864f9[_0x164ae6(0x337)])==null?void 0x0:_0x622b41['revision'])+'.'),this[_0x164ae6(0x1d3)]=_0x864f9,this[_0x164ae6(0x142)]=_0x164ae6(0x19e);}};let Ue=function(_0x1f7421){const _0xe2492b=_0x3bc608;return _0x1f7421['NOT_COLLAB']=_0xe2492b(0x212),_0x1f7421[_0xe2492b(0x2f4)]=_0xe2492b(0x359),_0x1f7421['PENDING']=_0xe2492b(0x149),_0x1f7421[_0xe2492b(0x449)]='awaiting',_0x1f7421[_0xe2492b(0x2aa)]=_0xe2492b(0x20b),_0x1f7421[_0xe2492b(0x300)]=_0xe2492b(0x241),_0x1f7421['CONFLICT']=_0xe2492b(0x473),_0x1f7421[_0xe2492b(0x25d)]=_0xe2492b(0x290),_0x1f7421;}({});var O=class{constructor(_0x809d0f,_0x4c8192,_0x360e28,_0x6a4914,_0x5d1358,_0x4be876,_0x164efd,_0x4a9c5f,_0x2ae104){const _0x5b7f73=_0x3bc608;this['unitID']=_0x809d0f,this[_0x5b7f73(0x48f)]=_0x4c8192,this[_0x5b7f73(0x3fa)]=_0x5d1358,this[_0x5b7f73(0x2f5)]=_0x4be876,this[_0x5b7f73(0x104)]=_0x164efd,this['_revisionService']=_0x4a9c5f,this['_localCacheService']=_0x2ae104,_(this,'_awaitingChangeset',null),_(this,_0x5b7f73(0x112),[]),this[_0x5b7f73(0x48e)]=_0x360e28,this[_0x5b7f73(0x112)]=_0x6a4914;}[_0x3bc608(0x406)](){const _0x959180=_0x3bc608;return!!this[_0x959180(0x48e)]||this[_0x959180(0x112)][_0x959180(0x16e)]>0x0;}[_0x3bc608(0x3cc)](){}['_unsyncedMutationCount'](){const _0x1a2a70=_0x3bc608;var _0x570c05;return(((_0x570c05=this[_0x1a2a70(0x48e)])==null?void 0x0:_0x570c05['mutations'][_0x1a2a70(0x16e)])??0x0)+this[_0x1a2a70(0x112)][_0x1a2a70(0x16e)];}[_0x3bc608(0x401)](_0x3d7eec){const _0x2d213a=_0x3bc608;return new ne(_0x3d7eec['reqId']??0x0,(_0x2f295b,_0x3a3c9a)=>this[_0x2d213a(0x3fa)][_0x2d213a(0x140)](_0x2f295b,_0x3a3c9a),{...this['_handler'][_0x2d213a(0x177)],'onResend':_0x196e8b=>{const _0x3a3d00=_0x2d213a;var _0x16821c,_0x3e776c;return(_0x16821c=(_0x3e776c=this[_0x3a3d00(0x3fa)])[_0x3a3d00(0x319)])==null?void 0x0:_0x16821c[_0x3a3d00(0x1e2)](_0x3e776c,_0x196e8b);}});}['_classifyRemoteChangeset'](_0x320644){const _0x22c24e=_0x3bc608;if(this['_isEchoedAwaitingChangeset'](_0x320644))return _0x22c24e(0x39d);if(Le(_0x320644,this['unitID']))return'remote_revert';let _0xd372ed=this[_0x22c24e(0x447)]();return _0x320644['revision']<=_0xd372ed?'applied':_0x320644['revision']>_0xd372ed+0x1?'missing':'apply';}[_0x3bc608(0x2d6)](_0x54faa0){const _0x5f50ed=_0x3bc608;let _0x2b7df5=this[_0x5f50ed(0x447)]();return _0x54faa0[_0x5f50ed(0x2f9)]<=_0x2b7df5?this['_isAckOfAwaitingChangeset'](_0x54faa0)?_0x5f50ed(0x276):_0x5f50ed(0x2ef):_0x54faa0[_0x5f50ed(0x2f9)]>_0x2b7df5+0x1?'missing':_0x5f50ed(0x33a);}[_0x3bc608(0x11f)](_0x2736b8,_0x13ea6f){const _0x558e02=_0x3bc608;switch(this['_classifyRemoteChangeset'](_0x2736b8)){case _0x558e02(0x39d):return this[_0x558e02(0x38d)](_0x2736b8);case _0x558e02(0x43a):return _0x13ea6f[_0x558e02(0x28b)](_0x2736b8);case _0x558e02(0x36b):return this;case _0x558e02(0x38e):return this[_0x558e02(0x29a)](_0x2736b8[_0x558e02(0x2f9)]),_0x13ea6f[_0x558e02(0x30e)](_0x2736b8);case _0x558e02(0x3ce):return _0x13ea6f[_0x558e02(0x34f)](_0x2736b8);}}['_remoteRevertInfo'](_0x1db267){const _0x212fd4=_0x3bc608;return{'reason':_0x212fd4(0x43a),'revert':{'revision':Le(_0x1db267,this['unitID'])[_0x212fd4(0x2f9)],'memberId':_0x1db267[_0x212fd4(0x28c)],'userId':_0x1db267[_0x212fd4(0x381)]}};}[_0x3bc608(0x334)](_0x4c255f){const _0x314629=_0x3bc608;return{'reason':_0x4c255f instanceof Ve?'apply_failed':_0x314629(0x2b1),'message':_0x4c255f instanceof Error?_0x4c255f[_0x314629(0x3c4)]:typeof _0x4c255f==_0x314629(0x268)?_0x4c255f:void 0x0};}[_0x3bc608(0x442)](_0x16da09){const _0x4333ca=_0x3bc608;return{'reason':_0x16da09!=null&&_0x16da09[_0x4333ca(0x287)]?_0x4333ca(0x17c):(_0x16da09==null?void 0x0:_0x16da09[_0x4333ca(0x3e2)])===o[_0x4333ca(0x43c)][_0x4333ca(0x418)]?_0x4333ca(0x323):_0x4333ca(0x156),'message':_0x16da09==null?void 0x0:_0x16da09['reason']};}[_0x3bc608(0x225)](_0x173e18){const _0x16f2a0=_0x3bc608;return _0x173e18===o['ErrorCode'][_0x16f2a0(0x2fa)]?_0x16f2a0(0x214):_0x16f2a0(0x24e);}[_0x3bc608(0x29a)](_0x5daeaa){const _0x49c89f=_0x3bc608;this[_0x49c89f(0x3fa)][_0x49c89f(0x357)]({'from':this[_0x49c89f(0x447)](),'to':_0x5daeaa-0x1});}['_transformUndoredo'](_0x4f59fb){const _0x30c7b1=_0x3bc608;this[_0x30c7b1(0x104)][_0x30c7b1(0x1c9)](this['unitID'],_0x4f59fb);}[_0x3bc608(0x27e)](_0x3aa4fd){const _0x715c61=_0x3bc608;var _0xaef70a,_0x12bece;(_0xaef70a=(_0x12bece=this['_handler'])[_0x715c61(0x245)])==null||_0xaef70a[_0x715c61(0x1e2)](_0x12bece,_0x3aa4fd);}[_0x3bc608(0x46c)](_0x265bfe){const _0x23c658=_0x3bc608;var _0x2a7c8f,_0x102fcd;return((_0x2a7c8f=(_0x102fcd=this[_0x23c658(0x3fa)])['onPrepareTransformSelections'])==null?void 0x0:_0x2a7c8f[_0x23c658(0x1e2)](_0x102fcd,_0x265bfe))??null;}[_0x3bc608(0xeb)](_0x4f7ecc){const _0x57346f=_0x3bc608;var _0x20bf70,_0x5eb8b4;return(_0x20bf70=(_0x5eb8b4=this['_handler'])[_0x57346f(0x468)])==null?void 0x0:_0x20bf70[_0x57346f(0x1e2)](_0x5eb8b4,_0x4f7ecc);}[_0x3bc608(0x258)](_0x55416f){const _0x1b4a53=_0x3bc608;var _0x4d519f,_0x4f5acf;return(_0x4d519f=(_0x4f5acf=this[_0x1b4a53(0x3fa)])[_0x1b4a53(0x34c)])==null?void 0x0:_0x4d519f[_0x1b4a53(0x1e2)](_0x4f5acf,_0x55416f);}[_0x3bc608(0x29b)](_0x74fced){const _0x305cdb=_0x3bc608;var _0x3c436e,_0x63d02e;return((_0x3c436e=(_0x63d02e=this[_0x305cdb(0x3fa)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3c436e[_0x305cdb(0x1e2)](_0x63d02e,_0x74fced))??_0x74fced;}[_0x3bc608(0x39c)](_0x41fda){const _0x1c718e=_0x3bc608;var _0x1f2206,_0x18bc90;return((_0x1f2206=(_0x18bc90=this[_0x1c718e(0x3fa)])[_0x1c718e(0x2be)])==null?void 0x0:_0x1f2206['call'](_0x18bc90,_0x41fda))??_0x41fda;}[_0x3bc608(0x40e)](_0x37818b){const _0x214643=_0x3bc608;if(this[_0x214643(0x48f)]===r[_0x214643(0x403)][_0x214643(0x2c2)]){let {unitID:_0x574b40,mutations:_0x159767,memberID:_0x7c970c}=_0x37818b,_0x212997=_0x159767[_0x214643(0x16e)]>0x0?_0x159767[0x0][_0x214643(0x41a)][_0x214643(0x344)]:[];if(Array['isArray'](_0x212997)&&_0x212997[_0x214643(0x16e)]>0x0){var _0x4c9817,_0x1df5a5;(_0x4c9817=(_0x1df5a5=this[_0x214643(0x3fa)])[_0x214643(0x1f7)])==null||_0x4c9817[_0x214643(0x1e2)](_0x1df5a5,{'unitID':_0x574b40,'memberID':_0x7c970c,'textRanges':_0x212997});}}}[_0x3bc608(0x1d2)](){const _0x4cdd1b=_0x3bc608;var _0x4b2525;(_0x4b2525=this['_localCacheService'])==null||_0x4b2525['updateOfflineData'](this['unitID'],this[_0x4cdd1b(0x48f)],this[_0x4cdd1b(0x48e)],this[_0x4cdd1b(0x112)]);}[_0x3bc608(0x447)](){const _0x5cb69a=_0x3bc608;return this[_0x5cb69a(0x2d8)]['getCurrentRevOfUnit'](this[_0x5cb69a(0x29f)]);}[_0x3bc608(0x443)](_0x285d2c){const _0x160f39=_0x3bc608;let _0x52a0ef=this[_0x160f39(0x48e)];return!_0x52a0ef||!_0x52a0ef['sid']||_0x52a0ef[_0x160f39(0x198)]===null||_0x52a0ef[_0x160f39(0x198)]===void 0x0?!0x1:_0x285d2c[_0x160f39(0x29f)]===_0x52a0ef[_0x160f39(0x29f)]&&_0x285d2c['sid']===_0x52a0ef[_0x160f39(0xfe)]&&_0x285d2c[_0x160f39(0x198)]===_0x52a0ef[_0x160f39(0x198)];}['_isAckOfAwaitingChangeset'](_0xfc608){const _0x18776c=_0x3bc608;let _0x57ef2d=this['_awaitingChangeset'];return!(_0x57ef2d!=null&&_0x57ef2d[_0x18776c(0xfe)])||_0x57ef2d[_0x18776c(0x198)]==null||!_0xfc608['sid']||_0xfc608[_0x18776c(0x198)]==null?!0x1:_0xfc608[_0x18776c(0xfe)]===_0x57ef2d[_0x18776c(0xfe)]&&_0xfc608['reqId']===_0x57ef2d['reqId'];}[_0x3bc608(0x2e6)](){const _0x52cca4=_0x3bc608;this[_0x52cca4(0x2d8)]['incrementRevOfUnit'](this[_0x52cca4(0x29f)]);}[_0x3bc608(0x155)](_0x8391be){const _0x3cd486=_0x3bc608;let _0x51d123=this['_transformRemoteChangesetByIMECache'](_0x8391be);_0x51d123=this[_0x3cd486(0x39c)](_0x51d123);let _0x4f5317=this[_0x3cd486(0x46c)](_0x51d123),_0x4a27ce=(0x0,r[_0x3cd486(0x37c)])(_0x51d123[_0x3cd486(0x29d)],this['_commandService'],{'fromCollab':!0x0});if(!_0x4a27ce[_0x3cd486(0x179)])throw _0x4f5317==null||_0x4f5317['rollback'](),new Ve(_0x4a27ce[_0x3cd486(0x3a2)]);_0x4f5317==null||_0x4f5317[_0x3cd486(0x416)](),this[_0x3cd486(0xeb)](_0x51d123),this[_0x3cd486(0x258)](_0x51d123),this[_0x3cd486(0xf7)](_0x8391be),this['_transformSelections'](_0x51d123),this[_0x3cd486(0x40e)](_0x51d123),this['_incrementRevisionNumber']();}};let k=class extends O{constructor(_0x3b4ad5,_0x54eb34,_0x366c16,_0x7f8f82,_0xf0e27a,_0x35f2ca,_0x36e7e1,_0x1a6bdb,_0xd098d9,_0x5469ac){const _0x4d8120=_0x3bc608;super(_0x3b4ad5,_0x54eb34,null,[],_0x366c16,_0x36e7e1,_0x35f2ca,_0x7f8f82,_0x5469ac),this['_injector']=_0xf0e27a,this[_0x4d8120(0x2bc)]=_0x1a6bdb,this['_transformService']=_0xd098d9,this['localCacheService']=_0x5469ac,_(this,_0x4d8120(0x1eb),_0x4d8120(0x359));}[_0x3bc608(0x38c)](_0x37d844){const _0x363b00=_0x3bc608;let _0x3951d5=this[_0x363b00(0x1aa)]['createInstance'](A,this[_0x363b00(0x29f)],this['type'],[_0x37d844],this[_0x363b00(0x3fa)]);return _0x3951d5[_0x363b00(0x32e)](),_0x3951d5['_updateLocalCache'](),_0x3951d5;}['onRemoteChangeset'](_0x4a3aab){const _0x381244=_0x3bc608;return this[_0x381244(0x11f)](_0x4a3aab,{'onMissing':()=>this['_injector'][_0x381244(0x169)](F,this[_0x381244(0x29f)],this[_0x381244(0x48f)],null,[],null,[_0x4a3aab],this[_0x381244(0x3fa)],void 0x0),'onApply':()=>this[_0x381244(0x2f2)](_0x4a3aab),'onRemoteRevert':()=>this['_onConflict'](this[_0x381244(0x3c3)](_0x4a3aab))});}['_transformAndApply'](_0x9b13ab){const _0x1b25da=_0x3bc608;try{let _0x1004b8=this[_0x1b25da(0x378)][_0x1b25da(0x464)](_0x9b13ab,[n['EmptyMutationInfo']]);if((0x0,n[_0x1b25da(0x3c5)])(_0x1004b8)){let {c1Prime:_0x503e1b}=_0x1004b8;return this['_executeRemoteChangeset'](_0x503e1b),this;}throw _0x1004b8[_0x1b25da(0x3a2)];}catch(_0x1b5b2f){return this[_0x1b25da(0x2bc)]['error'](_0x1b5b2f),this['_onConflict'](this['_conflictInfoFromError'](_0x1b5b2f));}}[_0x3bc608(0x46f)](_0x11afd9){const _0x2278ac=_0x3bc608;return this[_0x2278ac(0x1aa)]['createInstance'](N,this['unitID'],this[_0x2278ac(0x48f)],null,[],this['_handler'],_0x11afd9);}[_0x3bc608(0x38d)](_0x43e49d){const _0x5aa150=_0x3bc608;if(this[_0x5aa150(0x2d6)](_0x43e49d)===_0x5aa150(0x2ef))return this;throw Error(_0x5aa150(0x2da));}[_0x3bc608(0x2ca)](){const _0xa74a8a=_0x3bc608;throw Error(_0xa74a8a(0x13f));}[_0x3bc608(0x455)](){return this;}[_0x3bc608(0x361)](){const _0x488fe8=_0x3bc608;return this['_injector']['createInstance'](P,this[_0x488fe8(0x29f)],this[_0x488fe8(0x48f)],null,[],this[_0x488fe8(0x3fa)]);}[_0x3bc608(0x1b1)](){return this;}[_0x3bc608(0x426)](){const _0x48d5b4=_0x3bc608;throw Error(_0x48d5b4(0x351));}[_0x3bc608(0x36d)](){const _0x2568b6=_0x3bc608;let _0x4c8a90=this[_0x2568b6(0x2d8)][_0x2568b6(0x1b4)](this[_0x2568b6(0x29f)]);return this['_handler']['onMissingChangesets']({'from':_0x4c8a90,'to':0x0}),this['_injector'][_0x2568b6(0x169)](F,this[_0x2568b6(0x29f)],this['type'],null,[],null,[],this['_handler'],void 0x0);}};k=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(r['Injector'])),y(0x5,r[_0x3bc608(0x41b)]),y(0x6,r['ICommandService']),y(0x7,r[_0x3bc608(0x3ae)]),y(0x8,n[_0x3bc608(0x331)]),y(0x9,(0x0,r['Optional'])(C))],k);let A=Re=class extends O{constructor(_0x3537e6,_0x333bdd,_0x3ecb7,_0x2b68b0,_0x28ad02,_0x17aa4d,_0x3988cc,_0x8563fa,_0x2d2375,_0x491c2d,_0x49ea78,_0x2e8206,_0x41c114,_0x50c7fd){const _0x9f7a46=_0x3bc608;super(_0x3537e6,_0x333bdd,null,_0x3ecb7,_0x2b68b0,_0x2d2375,_0x41c114,_0x17aa4d,_0x50c7fd),this[_0x9f7a46(0x1aa)]=_0x28ad02,this[_0x9f7a46(0x1f6)]=_0x3988cc,this[_0x9f7a46(0x2bc)]=_0x8563fa,this['_configService']=_0x491c2d,this[_0x9f7a46(0x378)]=_0x49ea78,this[_0x9f7a46(0x414)]=_0x2e8206,_(this,'status',_0x9f7a46(0x149)),_(this,_0x9f7a46(0x174),null),_(this,_0x9f7a46(0x1d9),null);}[_0x3bc608(0x38c)](_0x1d97be){const _0x5c221b=_0x3bc608;return this['_pendingMutations'][_0x5c221b(0x13a)](_0x1d97be),this['_updateLocalCache'](),this;}[_0x3bc608(0x424)](_0x43c84e){const _0x5f020b=_0x3bc608;return this['_dispatchRemoteChangeset'](_0x43c84e,{'onMissing':()=>(this[_0x5f020b(0x1a8)](),this[_0x5f020b(0x1aa)][_0x5f020b(0x169)](F,this['unitID'],this[_0x5f020b(0x48f)],null,this['_pendingMutations'],null,[_0x43c84e],this[_0x5f020b(0x3fa)],void 0x0)),'onApply':()=>this['_transformAndApply'](_0x43c84e),'onRemoteRevert':()=>this[_0x5f020b(0x46f)](this[_0x5f020b(0x3c3)](_0x43c84e))});}['_transformAndApply'](_0x1ab6c6){const _0x1c3632=_0x3bc608;try{let _0x3852f5=this['_transformService'][_0x1c3632(0x464)](_0x1ab6c6,this[_0x1c3632(0x112)]);if((0x0,n[_0x1c3632(0x3c5)])(_0x3852f5)){let {c1Prime:_0x2be065,m2Prime:_0xda64d3}=_0x3852f5;this[_0x1c3632(0x155)](_0x2be065);let _0x5b3968=this['_injector']['createInstance'](Re,this[_0x1c3632(0x29f)],this[_0x1c3632(0x48f)],_0xda64d3,this[_0x1c3632(0x3fa)]);_0x5b3968[_0x1c3632(0x1d2)](),this['_clearScheduledTask']();let _0x1f72f2=new Date()[_0x1c3632(0xf0)](),_0x224c99=this[_0x1c3632(0x174)]?Math[_0x1c3632(0x44b)](this[_0x1c3632(0x174)]-_0x1f72f2,0x0):this['_getSendChangesetTimeout']();return _0x5b3968[_0x1c3632(0x32e)](_0x224c99),_0x5b3968;}throw _0x3852f5['error'];}catch(_0x2f5ebd){return this[_0x1c3632(0x2bc)]['error'](_0x2f5ebd),this[_0x1c3632(0x46f)](this[_0x1c3632(0x334)](_0x2f5ebd));}}[_0x3bc608(0x38d)](_0x1afe06){const _0x4a3328=_0x3bc608;if(this['_classifyAck'](_0x1afe06)==='stale')return this;throw Error(_0x4a3328(0x15d));}[_0x3bc608(0x2ca)](){const _0x377348=_0x3bc608;throw Error(_0x377348(0x13d));}['onRemoteRetry'](){return this;}[_0x3bc608(0x361)](){const _0x3b7be2=_0x3bc608;return this[_0x3b7be2(0x1a8)](),this['_injector'][_0x3b7be2(0x169)](P,this[_0x3b7be2(0x29f)],this['type'],null,this[_0x3b7be2(0x112)],this[_0x3b7be2(0x3fa)]);}['toggleOnline'](){return this;}[_0x3bc608(0x32e)](_0x38265d){const _0xe28906=_0x3bc608;let _0x3c55a7=_0x38265d??this[_0xe28906(0x1d7)]();this[_0xe28906(0x174)]=new Date()[_0xe28906(0xf0)]()+_0x3c55a7,this[_0xe28906(0x1d9)]=setTimeout(()=>{const _0x4372ac=_0xe28906;this[_0x4372ac(0x1a8)]();let _0x3f3927=null;switch(this[_0x4372ac(0x48f)]){case r[_0x4372ac(0x403)][_0x4372ac(0xf2)]:_0x3f3927=E(this[_0x4372ac(0x112)],this['unitID'],this[_0x4372ac(0x414)],this['_revisionService'],this['_userManagerService']);break;case r['UniverInstanceType'][_0x4372ac(0x2c2)]:_0x3f3927=this[_0x4372ac(0x112)][_0x4372ac(0x127)](_0x489148=>_0x489148['id']===i[_0x4372ac(0x341)]['id'])?ke(this['_pendingMutations'],this['unitID'],this[_0x4372ac(0x414)],this['_revisionService'],this[_0x4372ac(0x1f6)]):E(this['_pendingMutations'],this[_0x4372ac(0x29f)],this[_0x4372ac(0x414)],this['_revisionService'],this['_userManagerService']);break;case r[_0x4372ac(0x403)][_0x4372ac(0x1ab)]:_0x3f3927=Oe(this['_pendingMutations'],this[_0x4372ac(0x29f)],this['_univerInstanceService'],this[_0x4372ac(0x2d8)],this[_0x4372ac(0x1f6)]);break;case r[_0x4372ac(0x403)][_0x4372ac(0x326)]:_0x3f3927=De(this[_0x4372ac(0x112)],this[_0x4372ac(0x29f)],this[_0x4372ac(0x414)],this[_0x4372ac(0x2d8)],this['_userManagerService']);break;case r['UniverInstanceType'][_0x4372ac(0x398)]:_0x3f3927=E(this['_pendingMutations'],this[_0x4372ac(0x29f)],this['_univerInstanceService'],this[_0x4372ac(0x2d8)],this[_0x4372ac(0x1f6)]);break;case r[_0x4372ac(0x403)]['UNIVER_BASE']:_0x3f3927=E(this[_0x4372ac(0x112)],this[_0x4372ac(0x29f)],this['_univerInstanceService'],this[_0x4372ac(0x2d8)],this[_0x4372ac(0x1f6)]);break;default:throw Error(_0x4372ac(0x26c)+this['type']+_0x4372ac(0x299));}let {changeset:_0x536f70,pendingMutations:_0x3ed720}=_0x3f3927,_0x28f85d=this['_createChangesetSubmitter'](_0x536f70);_0x28f85d['submit'](_0x536f70,_0x536f70['mutations']['length']+_0x3ed720[_0x4372ac(0x16e)]);let _0x1fa3ff=_0x3ed720[_0x4372ac(0x16e)]?this[_0x4372ac(0x1aa)][_0x4372ac(0x169)](M,this['unitID'],this[_0x4372ac(0x48f)],_0x536f70,_0x3ed720,this[_0x4372ac(0x3fa)],_0x28f85d):this['_injector'][_0x4372ac(0x169)](j,this[_0x4372ac(0x29f)],this['type'],_0x536f70,this[_0x4372ac(0x3fa)],_0x28f85d);_0x1fa3ff[_0x4372ac(0x1d2)](),this['_handler'][_0x4372ac(0x2c7)](this,_0x1fa3ff);},_0x3c55a7);}['_getSendChangesetTimeout'](){const _0x3e0c74=_0x3bc608;let _0x16de6e=this['_configService'][_0x3e0c74(0x2de)](m);return(_0x16de6e==null?void 0x0:_0x16de6e[_0x3e0c74(0x27f)])??0x7d0;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc608(0x1a8)](){const _0xc98a0d=_0x3bc608;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0xc98a0d(0x1d9)]=null);}[_0x3bc608(0x3cc)](){const _0x4243ca=_0x3bc608;this[_0x4243ca(0x1a8)]();}['_onConflict'](_0x208810){const _0x5b25fa=_0x3bc608;return this[_0x5b25fa(0x1a8)](),this['_injector'][_0x5b25fa(0x169)](N,this['unitID'],this[_0x5b25fa(0x48f)],null,this[_0x5b25fa(0x112)],this['_handler'],_0x208810);}};A=Re=b([y(0x4,(0x0,r['Inject'])(r['Injector'])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(r['UserManagerService'])),y(0x7,r[_0x3bc608(0x3ae)]),y(0x8,r[_0x3bc608(0x185)]),y(0x9,r[_0x3bc608(0x190)]),y(0xa,n['ITransformService']),y(0xb,r[_0x3bc608(0x260)]),y(0xc,r[_0x3bc608(0x41b)]),y(0xd,(0x0,r['Optional'])(C))],A);let j=ze=class extends O{constructor(_0x5f44d7,_0x1cf205,_0x3ae6a9,_0x38e783,_0x23859f,_0x3eca51,_0x3ce966,_0x43d17b,_0x1bd9f4,_0x1f24d4,_0x5b93a7,_0x4cb07f){const _0x47319f=_0x3bc608;super(_0x5f44d7,_0x1cf205,_0x3ae6a9,[],_0x38e783,_0x43d17b,_0x5b93a7,_0x3ce966,_0x4cb07f),this[_0x47319f(0x1aa)]=_0x3eca51,this[_0x47319f(0x2bc)]=_0x1bd9f4,this[_0x47319f(0x378)]=_0x1f24d4,_(this,_0x47319f(0x1eb),_0x47319f(0x2ec)),_(this,_0x47319f(0x148),void 0x0),this['_submitter']=_0x23859f??this[_0x47319f(0x401)](_0x3ae6a9),this['_submitter'][_0x47319f(0x25c)](()=>({'changeset':this[_0x47319f(0x48e)],'unsyncedMutationCount':this[_0x47319f(0x298)]()})),_0x23859f||this[_0x47319f(0x148)][_0x47319f(0x412)]();}[_0x3bc608(0x38c)](_0x240534){const _0x28b022=_0x3bc608;this['_detachSubmitter']();let _0x203d9a=this[_0x28b022(0x1aa)][_0x28b022(0x169)](M,this[_0x28b022(0x29f)],this[_0x28b022(0x48f)],this['_awaitingChangeset'],[_0x240534],this[_0x28b022(0x3fa)],this[_0x28b022(0x148)]);return _0x203d9a[_0x28b022(0x1d2)](),_0x203d9a;}['onRemoteChangeset'](_0x30569c){const _0x4bfb90=_0x3bc608;return this['_dispatchRemoteChangeset'](_0x30569c,{'onMissing':()=>(this[_0x4bfb90(0x237)](),this['_injector']['createInstance'](F,this['unitID'],this['type'],this['_awaitingChangeset'],[],null,[_0x30569c],this[_0x4bfb90(0x3fa)],this[_0x4bfb90(0x148)])),'onApply':()=>this[_0x4bfb90(0x2f2)](_0x30569c),'onRemoteRevert':()=>this[_0x4bfb90(0x46f)](this[_0x4bfb90(0x3c3)](_0x30569c))});}[_0x3bc608(0x2f2)](_0x331561){const _0x44a78e=_0x3bc608;try{let _0x1beb4c=this[_0x44a78e(0x378)][_0x44a78e(0x1c4)]([_0x331561],[this[_0x44a78e(0x48e)]],!0x1);if((0x0,n[_0x44a78e(0x38b)])(_0x1beb4c)){let {c1Prime:_0x4436f9,c2Prime:_0x3e6923}=_0x1beb4c;this[_0x44a78e(0x155)](_0x4436f9[0x0]),_0x3e6923[0x0][_0x44a78e(0x32b)]=this[_0x44a78e(0x447)](),this[_0x44a78e(0x237)]();let _0x38cc65=this[_0x44a78e(0x1aa)][_0x44a78e(0x169)](ze,this['unitID'],this['type'],_0x3e6923[0x0],this[_0x44a78e(0x3fa)],this['_submitter']);return _0x38cc65[_0x44a78e(0x1d2)](),_0x38cc65;}throw _0x1beb4c[_0x44a78e(0x3a2)];}catch(_0x222e79){return this['_logService'][_0x44a78e(0x3a2)](_0x222e79),this['_onConflict'](this[_0x44a78e(0x334)](_0x222e79));}}['onRemoteAck'](_0x3cbfd6){const _0x1129c0=_0x3bc608;switch(this[_0x1129c0(0x2d6)](_0x3cbfd6)){case _0x1129c0(0x2ef):return this[_0x1129c0(0x2bc)][_0x1129c0(0x3eb)](_0x1129c0(0x113),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x3cbfd6[_0x1129c0(0x2f9)]+'\x20at\x20revision\x20'+this[_0x1129c0(0x447)]()+'.'),this;case _0x1129c0(0x276):return this[_0x1129c0(0x148)][_0x1129c0(0x3cc)](),this[_0x1129c0(0x47c)]();case _0x1129c0(0x38e):return this[_0x1129c0(0x148)][_0x1129c0(0x3cc)](),this[_0x1129c0(0x29a)](_0x3cbfd6['revision']),this['_injector'][_0x1129c0(0x169)](F,this['unitID'],this[_0x1129c0(0x48f)],this[_0x1129c0(0x48e)],[],_0x3cbfd6['revision'],[],this[_0x1129c0(0x3fa)],void 0x0);case _0x1129c0(0x33a):return this[_0x1129c0(0x148)][_0x1129c0(0x3cc)](),this[_0x1129c0(0x2e6)](),this['_toSynced']();}}['_toSynced'](){const _0x4f1fd2=_0x3bc608;let _0x324e1b=this[_0x4f1fd2(0x1aa)][_0x4f1fd2(0x169)](k,this['unitID'],this[_0x4f1fd2(0x48f)],this['_handler']);return _0x324e1b[_0x4f1fd2(0x1d2)](),_0x324e1b;}['onRemoteRej'](_0x4e2ca7){const _0x1e997a=_0x3bc608;return this['_onConflict'](this[_0x1e997a(0x442)](_0x4e2ca7));}[_0x3bc608(0x455)](_0x56977e,_0x50f96b){const _0x33b867=_0x3bc608;var _0x4ac9d3;return _0x56977e[_0x33b867(0x198)]===((_0x4ac9d3=this[_0x33b867(0x48e)])==null?void 0x0:_0x4ac9d3['reqId'])&&this[_0x33b867(0x148)][_0x33b867(0x2a9)](this[_0x33b867(0x225)](_0x50f96b)),this;}[_0x3bc608(0x361)](){const _0x310152=_0x3bc608;return this[_0x310152(0x148)][_0x310152(0x3cc)](),this[_0x310152(0x1aa)][_0x310152(0x169)](P,this[_0x310152(0x29f)],this[_0x310152(0x48f)],this[_0x310152(0x48e)],[],this[_0x310152(0x3fa)]);}[_0x3bc608(0x1b1)](){return this;}['resend'](_0x13a168=_0x3bc608(0x1e3)){const _0x1e02db=_0x3bc608;this['_submitter'][_0x1e02db(0x312)](this[_0x1e02db(0x48e)],this[_0x1e02db(0x298)](),_0x13a168);}[_0x3bc608(0x46f)](_0x22ecb6){const _0x3defd8=_0x3bc608;return this[_0x3defd8(0x148)][_0x3defd8(0x3cc)](),this[_0x3defd8(0x1aa)]['createInstance'](N,this[_0x3defd8(0x29f)],this[_0x3defd8(0x48f)],this[_0x3defd8(0x48e)],[],this['_handler'],_0x22ecb6);}[_0x3bc608(0x3cc)](){const _0x48dfcb=_0x3bc608;this[_0x48dfcb(0x148)][_0x48dfcb(0x3cc)]();}[_0x3bc608(0x237)](){const _0x3cb186=_0x3bc608;this[_0x3cb186(0x148)][_0x3cb186(0x315)]();}};j=ze=b([y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n['RevisionService'])),y(0x7,r[_0x3bc608(0x185)]),y(0x8,r[_0x3bc608(0x3ae)]),y(0x9,n[_0x3bc608(0x331)]),y(0xa,r[_0x3bc608(0x41b)]),y(0xb,(0x0,r[_0x3bc608(0x18d)])(C))],j);function _0x449c(){const _0x117d5c=['collaMsg','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getSnapshotAPIPath','RECV','295798tFqLPS','_classifyAck','_onJoinRoomEvent','_revisionService','_onConnectionFailed','[SyncedState]:\x20received\x20acknowledgement.','resolveWithBasePath','infoRsp','loadUnitOfRevision','getConfig','AwaitingState','_socket','createIdentifier','unsubscribe','_hasSessionsForEndpoint','connectionAttempt','updatePermissionObjEvent','_incrementRevisionNumber','_sendHeartbeat','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','LocaleService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','awaiting','getSnapshot','/object','stale','/universer-api/snapshot/','collaboration-client.config','_transformAndApply','shouldCloseConn','SYNCED','_commandService','getTypeOfUnitAdded$','isArray','/allowed','revision','LICENSE_EDITING_CONNECTIONS_EXCEEDED','retryCount','downloadEndpointUrl','m2Prime','_refreshUnitPermission','deleteCollaborator','FETCH_MISS','[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.','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','requireSession','_attempt','resent\x20changeset\x20','INetworkConditionService','unit','getImageSourceCache','retryConnectingTimer','getDeserializedSheetBlock','confirm','delay','message$','onMissing','_tryEnsureSocket','missingChangesets','INSERT','submit','telemetry\x20info\x20is\x20not\x20initialized','waitForRoom$','unbind','_cfgEnableObjInherit','_getDownloadEndpointURL','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','onChangesetResend','POST','objectId','getSheetBlock','_acknowledgeAwaitingIfReady','_rebaseUnchangedAttributes','isFinite','_adapter','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','UniverCollaborationClientPlugin','license_unit_type_rejected','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','LIVESHARE_REQUEST_HOST','UNIVER_PDF','/-/object/list','generateRandomId','editing\x20status\x20changed\x20to','LOCAL_CACHE_INTERVAL','baseRev','IPermissionService','Plugin','_schedule','from','request_failed','ITransformService','startTime','_acknowledgedAwaitingRevision','_conflictInfoFromError','isCompositionEnd','CommandType','revert','toLocal','objectActions','next','getGlobalObject','online$','actions','LIVESHARE_NEW_HOST','applyError','sort','RichTextEditingMutation','textEncoder','getTypeOfUnitDisposed$','textRanges','enableOfflineEditing','onStarting','_config','RETRY_CONNECTING_MAX_COUNT_KEY','/universer-api/snapshot','USERS_ENTER','data','onTransformState','_rebaseParagraphHistory','CHANGESET_SHOULD_RETRY','onApply','getCfgEnableObjInherit','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/collaborator','[FetchMissState]','setWaitCount','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','JOIN_ROOM_FULL','onMissingChangesets','Disposable','synced','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_transformStack','rev','timeoutTimer','UnitObject','_sessionStatus$','_timer','toggleOffline','CHANGESET_ACK','getUnitId','unitDisposed$','/universer-api/user/session-ticket','fetchMissingChangesets','LICENSE_DOMAIN_REJECTED','toDisposable','\x20failed:\x20','SNAPSHOT_URL_KEY','applied','_onRemoteACK','fetchMiss','sheets','headers','/-/object/-/batch_allowed','_onRemoteRejected','unitLoaded$','_shouldReportTelemetry','_onUserLeave','getWorkbookSelections','accept','focused$','_transformService','enableAuthServer','withCredentials','_toggleOffline','sequenceExecute','_onMessage','LEAVE','ignored\x20stale\x20ack\x20of\x20revision\x20','post','userID','replace','method','reason','deleteProperty','getUnitStatus$','ignored\x20remote\x20changeset\x20of\x20revision\x20','/unit/','_memberService','WorkbookEditablePermission','isTransformChangesetsSuccess','appendMutation','onRemoteAck','missing','_initCloseConn','USERS_LEAVE','_closedUnits','pauseCollaboration','JOIN_ROOM_FAILED','endpointKey','parseProtocolChangeset','uploadFileServerUrl','subject','UNIVER_BOARD','_toggleOnline','getValue','CLOSE_ROOM','_transformRemoteChangesetByStateCache','echo','_disposeSubmitter','authzUrl','_HTTPService','delete','error','[DataLoaderService]','4dKIQHI','UpdateDocsAttributeType','failed\x20to\x20apply\x20missed\x20changesets!','registerDependencies','putCollaborators','UnitEmbedded','CollaborationSession','_getConfig','Slide','loadDoc','ILogService','indexOf','refreshPermission','/rev/','1319549mGkLsN','_socketChannels','_getLoginPath','_waitForHeartbeatResponse','CONFLICT_PROCESSING','_onLocalMutation','_collaborationSessionService','number','?size=','takeUntil','/universer-api/authz','186376mXiMHM','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onLocalMutation','COMPRESS_MUTATION_APPLY','/universer-api/uniscript','Injector','_remoteRevertInfo','message','isTransformMutationsWithChangesetSuccess','localChanges','_notifyResend','_substituteUndoStack','range','clear','stream','dispose','retry-after','apply','paragraphs','RETRY_CONNECTING_MAX_COUNT','clearUnit','file','href','FETCH_MISSING','_unlockTransition','[UniverCollaborationClientPlugin]','collaboration_new_changeset','interceptor','changesetAckTimeout','readCursor','enableSingleActiveInstanceLock','unitId','version','DisposableCollection','MSG_FOR_ERROR','SessionStatus','NO_OTHER_CLIENTS_EDITING','code','PERSON','session','getAllPermissionPoint','attempt','UPDATE_PERMISSION_OBJ','loadUnit','batchAllowed','_pendingReason','debug','hasOwnProperty','localeService','_onRecvEvent','CompressMutationService','UniverCollaborationPlugin','_listenToNetworkCondition','unitInfo$','2033628pExMxB','HTTPEventType','touchDependencies','setShowComponents','action','hostname','toStringTag','_handler','concatMap','some','_sendToken','packageName','session.room-full','CONFLICT','_createChangesetSubmitter','/universer-api/file/{fileID}/sign-url','UniverInstanceType','len','DependentOn','hasLocalChanges','CollaborationAttachmentIoService','_event$','saveSheetBlock','columnGroups','asObservable','save\x20fail\x20reason\x20is\x20','collabSubmitChangesetUrl','_syncEditingCollabCursor','_maxAckTimeout','collaborators','has','armAckTimeout','univer-pro.collaboration-client.single-active-unit-service','_univerInstanceService','TextXActionType','commit','take','LICENSE_UNIT_TYPE_REJECTED','ICollaborationSocketService','params','IUndoRedoService','_loadSnapshot','transformStack\x20failed!','SheetTransformSelectionsService','Module','_onOffline','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_changesetReqId','OPTIONAL','onRemoteChangeset','listCollaborators','resend','\x20-\x20','maxAckTimeout','mapDocumentTypeToUniverInstanceType','location','stringify','getActiveSheet','joinEvent','Tools','_clearHeartbeatTimer','_configService','_countResend','UPDATE_CURSOR','_getAPIPrefix','_identity','object','commentUpdate$','1287918dfGkOf','UnitAction','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','remote_revert','startsWith','ErrorCode','splice','_unitLoaded$','filter','_nextDelay','_waitCount','_rejectionInfo','_isEchoedAwaitingChangeset','disableLocalCache','sessionStatus','GLOBAL_ROOMS_CNT_EXCEEDS','_getCurrentRevision','_commentUpdate$','AWAITING','ChangesetSubmitter','max','ImageSourceType','_reqId','LIVESHARE_OPERATION','MUTATION','_deliver','_sheetTransformSelectionsService','_collaborationPaused','utf8ToBytes','HELLO','onRemoteRetry','_tryReconnect','paragraphId','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','text-x','_members$','setCfgEnableObjInherit','close','Quantity','_startCollaboration','\x20to\x20','HEARTBEAT_TIMEOUT','onTransformRemoteChangesetByIMECache','toString','updatePermissionPoint','transformMutationsWithChangeset','b64DecodeUnicode','_socketService','add','onTransformIME','isInternalEditorID','DEFAULT_WS_SESSION_TICKET_URL','getLatestCsReqIdBySid','_prepareTransformSelections','addHandlerCallback','HEARTBEAT_INTERVAL','_onConflict','cfgEnableObjInherit','SOCKET_FAILED_RETRY','UnitStatus','conflict','IAuthzIoService','FAIL','size','_snapshotService','_source','_unitInfo$','[OfflineState]','SUBMIT_CHANGESET','_toSynced','deepClone','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onLicenseRejected','includes','getCollabEntity','SUCCUSS','keys','setConfig','SheetPermissionInitController','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','liveShareOperation','readAsDataURL','symbol','[CollaborationSessionService]','Failed\x20to\x20update\x20permission\x20point','DEFAULT_FILE_NAME','catch','_awaitingChangeset','type','_getUnitPermissionPoints','compose','constructor','81BtydHp','_singleActiveUnitService','UUID','INGEST','RemoteChangesetApplyError','Error\x20on\x20receiving\x20event','_httpService','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','snapshotServerUrl','_transformIMECache','_removeRoom','originalMeta','open$','_telemetryInfo','getTime','defineProperty','UNIVER_SHEET','awaitingChangeset','RxDisposable','handshakeTimer','&to=','_transformUndoredo','LocalUndoRedoService','find','AuthzIoHttpService','_replaceFileID','saveChangeset','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sid','HTTPService','\x20at\x20revision\x20','_commentService','getCollabEntities','forEach','_undoRedoService','candidateSocket','_replayCachedMutations','HEARTBEAT_INTERVAL_KEY','session.room-not-exists','CollaborationEntity','MentionType','MAX_ACK_TIMEOUT','_onFetchMissResult','_stopTelemetryCollaborationNewChangeset','complete','CollaborativeUndoRedoService','maxSize','ERROR_IMAGE_TYPE','_pendingMutations','[AwaitingState]','avatar','error$',',\x20attempt\x20','getFocusedUnit','coverType','get','loadPdf','change$','getPath','_acknowledgeAwaiting','_onCombEvent','_dispatchRemoteChangeset','CollaborationController','backupOfflineData','set','upload','_state$','SOCKET_FAILED','/object/','every','routeKey','isTransformMutationsWithChangesetFailure','_socketMessageSubscription','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ILocalCacheService','closeSession','_ackTimeout','socket\x20close','_sessionChannels','Subscription','/block/','OTHER_CLIENTS_EDITING','readyForCollab','Univer','getCollabEntity$','_queuedRemoteChangesets','ISocketService','push','_undoStacks','writeCursor','[PendingState]:\x20received\x20rejection.','_firstSentAt','[SyncedState]:\x20received\x20rejection.','onSendChangeset','_send','name','SlideCollaborationEntity','put','editingUnit','getSheetId','getCurrentUser','_submitter','pending','FetchingMissState','/new_changes','state$','_disposed','UniverNetworkPlugin','_status$','ImageUploadStatusType','_remoteChangesetQueue','_applyRemoteChangeset','send','_transformHistoryMutations','_executeRemoteChangeset','changeset_rejected','_onUserJoin','_classifyRemoteChangeset','_fetchMissChangesets','ws://127.0.0.1:8000/universer-api/comb/connect','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_onRemoteRetry','[PendingState]:\x20received\x20acknowledgement.','closed','[CollaborationUndoRedoService]','create','_substituteRedoStack','CombCmd','loginUrlKey','prototype','event$','saveImage','changeset','docStateChange$','createInstance','_state','socketReady','_getSocketChannel','UniverLicensePlugin','length','tables','LIVESHARE_FETCH_OPERATIONS','csRejEvent','reject','getInterceptPoints','_scheduleCompleteTimestamp','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_snapshotServerService','resendTimeouts','_throwTelemetryCollaborationNewChangeset','result','_clearTimeoutTimer','ignored\x20acknowledgement\x20of\x20revision\x20','permission_rejected','ConflictState','init','parseChangesetToProtocol','socket$','BoardCollaborationEntity','loadBase','_onConnectionOpen','_getUndoStack','ICommandService','_init','dispose$','/universer-api/oidc/authpage','Rectangle','_authzIoService','stopTime','_decreaseWaiting','Optional','CollaborationSocketService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','IConfigService','_createSocket','retryConnectingInterval','OBJECT_PERMISSION_CONFIG_KEY','_getRedoStack','IAttachmentIoService','iterator','getLocalCacheKey','reqId','getImage','deserializeToCombResponse','HTTPResponseError','url','&assign=','RemoteRevertError','[CollaborationSession]','elapsedMs','slice','getUnitType','Subject','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_initDependencies','getMemberID','decorate','_clearScheduledTask','_getAPIPrefixPath','_injector','UNIVER_SLIDE','?url=','[AwaitingWithPendingState]','_disableEditing','connection\x20error','_initRequestHeader','toggleOnline','randomBytes','loadOfflineData','getCurrentRevOfUnit','ObjectPermissionService','_clearUndo','serializeCombRequest','unitType','_prepareConflictRecovery','c1Prime','_telemetryService','SheetsSelectionsService','unknown','CollaborationEvent','timeout','_updateUnitPermissionPoint','_clearHandshakeTimer','_resend','ERROR_IMAGE','transformChangesets','getMember','reverse','_changesetSessionId','SHOULD_CLOSE_CONN','transformUndoRedo','ISnapshotServerService','MergeInterceptorFactory','_invertDocumentHistory','{fileID}','_transitionLocked','parse','JSONX','ThresholdInterceptorFactory','_updateLocalCache','info','default','sessionStatus$','pipe','_getSendChangesetTimeout','session.room-permission-denied','_sendingTimer','getRoom','isObject','univer-pro.collaboration-client-socket-service','_registerDependencies','_resolveSessionIdentity','clearOfflineData','_showConflictProcessingNotification','PERMISSION_DENIED','call','reconnect','socketSubscription','eventID','IMentionIOService','_emitMembers','_permissionService','cmd','localCacheService','status','CollaborationSessionService','c2Prime','changesets','liveShareNewHost','NEW_CHANGESETS','oldBody','capture','_toPending','target','[CollaborationEntity]','_userManagerService','onSyncEditingCollabCursor','tableSource','onResend','_entityInit$','updateCollaborator','_updateStatus','_handlerCallback','_collaborationUIEventService','_conflict$','snapshot','_entities','unit-cache-','traverse','getUploadOptions','refreshUnit','listRoles','toRemote','AwaitingWithPendingState','&source=','_pendingSessions','awaiting_with_pending','min','createSocket','_startTelemetryCollaborationNewChangeset','HEARTBEAT_TIMEOUT_KEY','_createHandler','collaboration-client.local-cache-service','not_collab','_lockTransition','license_editing_connections_exceeded','_onRequestFailed','fromCollab','CollaborationImageIoService','COMMENT_UPDATE','subUnitId','ackTimeout','status$','JOIN','findIndex','objectType','FileSource','values','commentUpdateEvent','map','_retryBackoff','collaboratorID','_retryReason','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','charCodeAt','HEARTBEAT','onMutationExecutedForCollab','merge','_getUploadFileURL','_changesetResend$','removeMember','_joinRoom','_change$','getAttachmentUrl','roles','27309NmuGFl','_initMergeInterceptor','Document','firstValueFrom','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_detachSubmitter','SUBMIT_CHANGESET_TIMEOUT','_localCacheService','updateMember','patch','_transformAndApplyRemoteChangeset','_transit','close$','_upload','endsWith','fetch_missing','_compressMutationService','_rescheduleHeartbeat','requestParams','onTransformSelections','RemoveSlidePageMutation','CollaborationUIEventId','paragraph','BehaviorSubject','_getCtorByUniverInstanceType','Board','disposeWithMe','_sessions','should_retry','DocCollaborationEntity','getUnit','state','createUniverCollaborationAdapter','AddSlidePageMutation','title','registerHTTPInterceptor','_submitChangeset','ICollaborationClientAdapterService','_transformStateCache','then','univer-pro.collaboration-client-adapter-service','PendingState','bind','OFFLINE','csAckEvent','selections','IUniverInstanceService','now','socketService','BASE64','JOINING','function','signUrlServerUrl','_collabSessionService','string','COMPRESS_MUTATION_SEND','responseType','OTHER_CLIENT_EDITING','[PendingState]:\x20unhandled\x20univer\x20type:\x20','resourceIDs','localUnitId','_docStateChangeManagerService','startIndex','floor','4218685aFqgPY','resolveUnit','onlyLocal','src','ack_of_awaiting','sendHeartbeatTimer','_filterTableActions','RevisionService','x-univer-host','online','CONFLICT_CACHE_CLEAR_FAILED','unitId\x20is\x20not\x20found','_transformSelections','sendChangesetTimeout','DocStateChangeManagerService','_clearRetryConnectingTimer','objectID','REPLACE','CollaborationUIEventService','IDLE','transformSelections','isPermissionRej','getOwnPropertyDescriptor','onPrepareTransformSelections','hasWritePending','onRemoteRevert','memberID','diffValue','body','_handleRemoteChangesets','offline','/universer-api/comb','_createInitialState','_loadUnit','_imageSourceCache','endpoint','SnapshotService','JSON1','_unsyncedMutationCount','\x20in\x20_schedule.','_requestMissingChangesets','_transformRemoteChangesetByIMECache','__Key__','mutations','SnapshotServerOverHTTPService','unitID','PdfCollaborationEntity','append','_onRemoteChangeset','_roomMembers','saveAttachment','reduce','allowed','PERMISSION_REJ','Base','requestRetry','AWAITING_WITH_PENDING','_roomCreated$','_getSignURL','subscribe','_now','list','_exhaustRemoteChangesetQueue','transform_failed','roomInfos','fetchThroughInterceptors','origin','_members','collabWebSocketUrl','_updateState','_networkConditionService','_type','csShouldRetryEvent','Inject','_logService','_initUnitPermissionChange','onTransformRemoteChangesetByStateCache','FileId','subType','updateSnapshot','UNIVER_DOC','_instanceService','UNIVER_BASE','TimeoutError','PSEUDO_FETCH_MISSING_RESULT','onStateChange','_dropAcknowledgedAwaiting','CmdRspCode','onRemoteRej','onConflict','MoveSlidePageMutation','_eventService','CHANGESET_REJ','_localeService','emitEvent'];_0x449c=function(){return _0x117d5c;};return _0x449c();}let M=Be=class extends O{constructor(_0x1f3ca1,_0x199e1f,_0x4ba5f8,_0x501c7b,_0x35634,_0x2d714d,_0x416f0d,_0x5f413f,_0xed259d,_0x2ba730,_0x4b2dc6,_0x4baa4a,_0x4aee96){const _0x41bf48=_0x3bc608;super(_0x1f3ca1,_0x199e1f,_0x4ba5f8,_0x501c7b,_0x35634,_0xed259d,_0x4baa4a,_0x5f413f,_0x4aee96),this[_0x41bf48(0x1aa)]=_0x416f0d,this['_logService']=_0x2ba730,this[_0x41bf48(0x378)]=_0x4b2dc6,this[_0x41bf48(0x1ea)]=_0x4aee96,_(this,_0x41bf48(0x1eb),'awaiting_with_pending'),_(this,'_submitter',void 0x0),this[_0x41bf48(0x148)]=_0x2d714d??this[_0x41bf48(0x401)](_0x4ba5f8),this[_0x41bf48(0x148)]['bind'](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this[_0x41bf48(0x298)]()})),_0x2d714d||this['_submitter'][_0x41bf48(0x412)]();}[_0x3bc608(0x38c)](_0x2a3634){const _0x345f83=_0x3bc608;return this[_0x345f83(0x112)]['push'](_0x2a3634),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x52f2c6){const _0x4f6ac7=_0x3bc608;return this[_0x4f6ac7(0x11f)](_0x52f2c6,{'onMissing':()=>(this[_0x4f6ac7(0x237)](),this[_0x4f6ac7(0x1aa)][_0x4f6ac7(0x169)](F,this[_0x4f6ac7(0x29f)],this[_0x4f6ac7(0x48f)],this[_0x4f6ac7(0x48e)],this['_pendingMutations'],null,[_0x52f2c6],this[_0x4f6ac7(0x3fa)],this[_0x4f6ac7(0x148)])),'onApply':()=>this[_0x4f6ac7(0x2f2)](_0x52f2c6),'onRemoteRevert':()=>this['_onConflict'](this[_0x4f6ac7(0x3c3)](_0x52f2c6))});}[_0x3bc608(0x2f2)](_0x448d7f){const _0x338bb5=_0x3bc608;try{let _0x578b96=this['_transformService']['transformChangesets']([_0x448d7f],[this['_awaitingChangeset']],!0x1);if((0x0,n[_0x338bb5(0x38b)])(_0x578b96)){let {c1Prime:_0x4345a5,c2Prime:_0x2631d3}=_0x578b96,_0x4b48da=this[_0x338bb5(0x378)]['transformMutationsWithChangeset'](_0x4345a5[0x0],this[_0x338bb5(0x112)]);if((0x0,n[_0x338bb5(0x3c5)])(_0x4b48da)){let {c1Prime:_0xf4e19c,m2Prime:_0x7bc176}=_0x4b48da;this['_executeRemoteChangeset'](_0xf4e19c),_0x2631d3[0x0][_0x338bb5(0x32b)]=this[_0x338bb5(0x447)](),this[_0x338bb5(0x237)]();let _0x24a28f=this[_0x338bb5(0x1aa)]['createInstance'](Be,this[_0x338bb5(0x29f)],this[_0x338bb5(0x48f)],_0x2631d3[0x0],_0x7bc176,this[_0x338bb5(0x3fa)],this['_submitter']);return _0x24a28f[_0x338bb5(0x1d2)](),_0x24a28f;}throw _0x4b48da[_0x338bb5(0x3a2)];}throw _0x578b96[_0x338bb5(0x3a2)];}catch(_0x4dceb7){return this[_0x338bb5(0x2bc)][_0x338bb5(0x3a2)](_0x4dceb7),this['_onConflict'](this[_0x338bb5(0x334)](_0x4dceb7));}}['onRemoteAck'](_0x2f9114){const _0x8a31cb=_0x3bc608;switch(this[_0x8a31cb(0x2d6)](_0x2f9114)){case _0x8a31cb(0x2ef):return this[_0x8a31cb(0x2bc)][_0x8a31cb(0x3eb)](_0x8a31cb(0x1ad),_0x8a31cb(0x37f)+_0x2f9114[_0x8a31cb(0x2f9)]+_0x8a31cb(0x100)+this['_getCurrentRevision']()+'.'),this;case _0x8a31cb(0x276):return this[_0x8a31cb(0x148)]['dispose'](),this[_0x8a31cb(0x1f3)]();case _0x8a31cb(0x38e):return this[_0x8a31cb(0x148)][_0x8a31cb(0x3cc)](),this[_0x8a31cb(0x29a)](_0x2f9114[_0x8a31cb(0x2f9)]),this[_0x8a31cb(0x1aa)][_0x8a31cb(0x169)](F,this['unitID'],this[_0x8a31cb(0x48f)],this['_awaitingChangeset'],this[_0x8a31cb(0x112)],_0x2f9114[_0x8a31cb(0x2f9)],[],this[_0x8a31cb(0x3fa)],void 0x0);case _0x8a31cb(0x33a):return this[_0x8a31cb(0x148)][_0x8a31cb(0x3cc)](),this[_0x8a31cb(0x2e6)](),this[_0x8a31cb(0x1f3)]();}}[_0x3bc608(0x1f3)](){const _0x8b95d9=_0x3bc608;let _0x1ae84f=this[_0x8b95d9(0x1aa)][_0x8b95d9(0x169)](A,this[_0x8b95d9(0x29f)],this['type'],this[_0x8b95d9(0x112)],this[_0x8b95d9(0x3fa)]);return _0x1ae84f[_0x8b95d9(0x32e)](),_0x1ae84f[_0x8b95d9(0x1d2)](),_0x1ae84f;}[_0x3bc608(0x2ca)](_0x4ecc68){const _0xabf641=_0x3bc608;return this[_0xabf641(0x46f)](this[_0xabf641(0x442)](_0x4ecc68));}['onRemoteRetry'](_0x403ed1,_0xb9c1e8){const _0x4a9da1=_0x3bc608;var _0x1a0996;return _0x403ed1['reqId']===((_0x1a0996=this[_0x4a9da1(0x48e)])==null?void 0x0:_0x1a0996['reqId'])&&this[_0x4a9da1(0x148)]['requestRetry'](this[_0x4a9da1(0x225)](_0xb9c1e8)),this;}[_0x3bc608(0x361)](){const _0x3d50f4=_0x3bc608;return this[_0x3d50f4(0x148)][_0x3d50f4(0x3cc)](),this[_0x3d50f4(0x1aa)][_0x3d50f4(0x169)](P,this[_0x3d50f4(0x29f)],this[_0x3d50f4(0x48f)],this[_0x3d50f4(0x48e)],this[_0x3d50f4(0x112)],this[_0x3d50f4(0x3fa)]);}['toggleOnline'](){return this;}[_0x3bc608(0x426)](_0x3f98c1=_0x3bc608(0x1e3)){const _0x5842ef=_0x3bc608;this[_0x5842ef(0x148)][_0x5842ef(0x312)](this[_0x5842ef(0x48e)],this[_0x5842ef(0x298)](),_0x3f98c1);}[_0x3bc608(0x46f)](_0x15bcad){const _0x24f4ae=_0x3bc608;return this[_0x24f4ae(0x148)][_0x24f4ae(0x3cc)](),this[_0x24f4ae(0x1aa)]['createInstance'](N,this[_0x24f4ae(0x29f)],this['type'],this[_0x24f4ae(0x48e)],this[_0x24f4ae(0x112)],this[_0x24f4ae(0x3fa)],_0x15bcad);}[_0x3bc608(0x3cc)](){const _0x75afde=_0x3bc608;this[_0x75afde(0x148)]['dispose']();}['_detachSubmitter'](){const _0x1c3e91=_0x3bc608;this[_0x1c3e91(0x148)]['unbind']();}};function _0xa8b9(_0x1496fa,_0x1e5f0e){_0x1496fa=_0x1496fa-0xe9;const _0x449cda=_0x449c();let _0xa8b931=_0x449cda[_0x1496fa];return _0xa8b931;}M=Be=b([y(0x6,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x8,r[_0x3bc608(0x185)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,n[_0x3bc608(0x331)]),y(0xb,r[_0x3bc608(0x41b)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(C))],M);let N=class extends O{constructor(_0x3ba72f,_0x271897,_0x32e34a,_0x5917ef,_0x5105e1,_0x53b179,_0x423fd7,_0x408f1d,_0xf763db,_0x52b5f4,_0x2b4a3a,_0x29c3b5,_0x306d4d,_0x5b2fa3){const _0x4866bc=_0x3bc608;var _0x593ab4;super(_0x3ba72f,_0x271897,_0x32e34a,_0x5917ef,_0x5105e1,_0x408f1d,_0xf763db,_0x52b5f4,_0x5b2fa3),this[_0x4866bc(0x1d3)]=_0x53b179,this[_0x4866bc(0x1e8)]=_0x423fd7,this[_0x4866bc(0x1f6)]=_0x2b4a3a,this[_0x4866bc(0x2bc)]=_0x29c3b5,this[_0x4866bc(0x1fe)]=_0x306d4d,this['localCacheService']=_0x5b2fa3,_(this,_0x4866bc(0x1eb),'conflict'),_(this,_0x4866bc(0x3c6),void 0x0);let _0x3de485=((_0x593ab4=this['_userManagerService'][_0x4866bc(0x147)]())==null?void 0x0:_0x593ab4[_0x4866bc(0x381)])??'';this['localChanges']=_0x32e34a||_0x5917ef[_0x4866bc(0x16e)]?{'unitID':_0x3ba72f,'userId':_0x3de485||void 0x0,'type':_0x271897,'rev':this[_0x4866bc(0x447)](),'awaitingChangeset':_0x32e34a,'mutations':_0x5917ef}:null,this[_0x4866bc(0x1ae)](),this[_0x4866bc(0x1e0)](),this[_0x4866bc(0x1b9)](_0x3de485)['catch'](_0x4cb9b8=>this[_0x4866bc(0x2bc)][_0x4866bc(0x3a2)](_0x4cb9b8));}async[_0x3bc608(0x1b9)](_0x300679){const _0x113326=_0x3bc608;var _0x807c80,_0x1e4112,_0x49952e,_0x3783d6;await((_0x807c80=this[_0x113326(0x239)])==null||(_0x1e4112=_0x807c80[_0x113326(0x121)])==null?void 0x0:_0x1e4112[_0x113326(0x1e2)](_0x807c80,this[_0x113326(0x29f)],this[_0x113326(0x1d3)]['reason'],_0x300679)[_0x113326(0x48d)](()=>void 0x0));let _0x2df621=!0x0;try{var _0x39495a;await((_0x39495a=this['_localCacheService'])==null?void 0x0:_0x39495a[_0x113326(0x1df)](this[_0x113326(0x29f)],_0x300679));}catch{_0x2df621=!0x1,this[_0x113326(0x1fe)]['emitEvent']({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x113326(0x29f)],'userId':_0x300679});}(_0x49952e=(_0x3783d6=this[_0x113326(0x3fa)])[_0x113326(0x2cb)])==null||_0x49952e['call'](_0x3783d6,this[_0x113326(0x1d3)],this[_0x113326(0x3c6)],_0x2df621);}[_0x3bc608(0x38c)](){return this;}[_0x3bc608(0x424)](){return this;}[_0x3bc608(0x38d)](){return this;}[_0x3bc608(0x2ca)](){return this;}[_0x3bc608(0x455)](){return this;}[_0x3bc608(0x361)](){return this;}[_0x3bc608(0x1b1)](){return this;}[_0x3bc608(0x426)](){const _0xa64bc4=_0x3bc608;throw Error(_0xa64bc4(0x18f));}[_0x3bc608(0x1e0)](){const _0x5501b2=_0x3bc608;this[_0x5501b2(0x1fe)][_0x5501b2(0x2d0)]({'id':_0x5501b2(0x3b6),'unitID':this[_0x5501b2(0x29f)]});}[_0x3bc608(0x1ae)](){const _0x149fd4=_0x3bc608;this[_0x149fd4(0x1e8)][_0x149fd4(0x463)](new a[(_0x149fd4(0x38a))](this['unitID'])['id'],!0x1);}};N=b([y(0x6,(0x0,r['Inject'])(r[_0x3bc608(0x32c)])),y(0x7,r[_0x3bc608(0x185)]),y(0x8,r[_0x3bc608(0x41b)]),y(0x9,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0xa,(0x0,r[_0x3bc608(0x2bb)])(r['UserManagerService'])),y(0xb,r[_0x3bc608(0x3ae)]),y(0xc,(0x0,r['Inject'])(v)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],N);let P=class extends O{constructor(_0x161ab3,_0x5a72d9,_0x26b7db,_0x2ecdcd,_0x759935,_0x1c31ec,_0xe193ed,_0x5acfe6,_0x1b1cf2,_0x3a1e65,_0x12be56){const _0x52039c=_0x3bc608;super(_0x161ab3,_0x5a72d9,_0x26b7db,_0x2ecdcd,_0x759935,_0x5acfe6,_0x1b1cf2,_0xe193ed,_0x12be56),this[_0x52039c(0x1aa)]=_0x1c31ec,this[_0x52039c(0x2bc)]=_0x3a1e65,_(this,_0x52039c(0x1eb),_0x52039c(0x290));}[_0x3bc608(0x38c)](_0x1f3111){const _0x28e97e=_0x3bc608;return this[_0x28e97e(0x112)]['push'](_0x1f3111),this[_0x28e97e(0x1d2)](),this;}[_0x3bc608(0x424)](_0x5f0e87){const _0x503856=_0x3bc608;return this[_0x503856(0x2bc)]['debug'](_0x503856(0x47a),_0x503856(0x387)+_0x5f0e87['revision']+'.'),this;}[_0x3bc608(0x38d)](_0x3e5b5e){const _0x59b533=_0x3bc608;return this['_logService'][_0x59b533(0x3eb)](_0x59b533(0x47a),_0x59b533(0x17b)+_0x3e5b5e['revision']+'.'),this;}[_0x3bc608(0x2ca)](){const _0x3a9608=_0x3bc608;return this[_0x3a9608(0x2bc)][_0x3a9608(0x3eb)](_0x3a9608(0x47a),'ignored\x20rejection.'),this;}[_0x3bc608(0x455)](){return this;}[_0x3bc608(0x361)](){return this;}[_0x3bc608(0x1b1)](){const _0x46df83=_0x3bc608;let {_injector:_0x5c312b,_pendingMutations:_0x1e7810,_awaitingChangeset:_0x2dcead,unitID:_0x382580,_handler:_0x5adb51,type:_0x57e75b}=this,_0x438c42=We(_0x5c312b,_0x382580,_0x57e75b,_0x2dcead,_0x1e7810,_0x5adb51);return _0x438c42 instanceof A?_0x438c42['_schedule']():(_0x438c42 instanceof M||_0x438c42 instanceof j)&&_0x438c42[_0x46df83(0x426)](),_0x438c42;}['resend'](){const _0x51091f=_0x3bc608;throw Error(_0x51091f(0x1a4));}};P=b([y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r['Injector'])),y(0x6,(0x0,r['Inject'])(n['RevisionService'])),y(0x7,r[_0x3bc608(0x185)]),y(0x8,r[_0x3bc608(0x41b)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,(0x0,r['Optional'])(C))],P);let F=class extends O{constructor(_0x3be3ac,_0x4af8fa,_0x39b94b,_0x49c72a,_0x4b3e36,_0x4c2fa7,_0x113553,_0x6f6a86,_0x19625e,_0x50b5c3,_0x249eb9,_0x2d49c7,_0x2e8fd8,_0x2376e8,_0x283e50){const _0x427a5f=_0x3bc608;super(_0x3be3ac,_0x4af8fa,_0x39b94b,_0x49c72a,_0x113553,_0x2d49c7,_0x2e8fd8,_0x50b5c3,_0x283e50),this[_0x427a5f(0x333)]=_0x4b3e36,this['_queuedRemoteChangesets']=_0x4c2fa7,this['_submitter']=_0x6f6a86,this['_injector']=_0x19625e,this[_0x427a5f(0x2bc)]=_0x249eb9,this[_0x427a5f(0x378)]=_0x2376e8,this[_0x427a5f(0x1ea)]=_0x283e50,_(this,_0x427a5f(0x1eb),_0x427a5f(0x241));}['onMissedChangesetFetched'](_0x4ee265){const _0xf28aa4=_0x3bc608;try{if(this[_0xf28aa4(0x28f)](_0x4ee265)[_0xf28aa4(0x310)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0xf28aa4(0x28f)]([...this[_0xf28aa4(0x138)]][_0xf28aa4(0x340)]((_0x4cdb98,_0x43d685)=>_0x4cdb98[_0xf28aa4(0x2f9)]-_0x43d685['revision']))[_0xf28aa4(0x310)])return this['_queuedRemoteChangesets']=[],this[_0xf28aa4(0x1d2)](),this[_0xf28aa4(0x3fa)][_0xf28aa4(0x357)]({'from':this[_0xf28aa4(0x447)](),'to':0x0}),this;let _0x289a13=this[_0xf28aa4(0x48e)],_0x3063f4=this[_0xf28aa4(0x112)],_0x457a40;if(_0x289a13&&_0x3063f4[_0xf28aa4(0x16e)]!==0x0)_0x457a40=this[_0xf28aa4(0x1aa)][_0xf28aa4(0x169)](M,this['unitID'],this[_0xf28aa4(0x48f)],_0x289a13,_0x3063f4,this[_0xf28aa4(0x3fa)],this[_0xf28aa4(0x148)]);else{if(_0x289a13&&_0x3063f4[_0xf28aa4(0x16e)]===0x0)_0x289a13[_0xf28aa4(0x32b)]=this[_0xf28aa4(0x447)](),_0x457a40=this[_0xf28aa4(0x1aa)][_0xf28aa4(0x169)](j,this['unitID'],this[_0xf28aa4(0x48f)],_0x289a13,this[_0xf28aa4(0x3fa)],this['_submitter']);else{if(_0x3063f4[_0xf28aa4(0x16e)]!==0x0){let _0xca1673=this[_0xf28aa4(0x1aa)]['createInstance'](A,this[_0xf28aa4(0x29f)],this[_0xf28aa4(0x48f)],_0x3063f4,this[_0xf28aa4(0x3fa)]);_0xca1673[_0xf28aa4(0x32e)](),_0x457a40=_0xca1673;}else _0x457a40=this[_0xf28aa4(0x1aa)][_0xf28aa4(0x169)](k,this[_0xf28aa4(0x29f)],this['type'],this[_0xf28aa4(0x3fa)]);}}return _0x457a40[_0xf28aa4(0x1d2)](),_0x457a40;}catch(_0x33b35c){return _0x33b35c instanceof He?(this['_logService']['debug']('[FetchMissState]',_0x33b35c[_0xf28aa4(0x3c4)]),this['_onConflict'](_0x33b35c['info'])):(this[_0xf28aa4(0x2bc)]['error'](_0xf28aa4(0x353),_0xf28aa4(0x3a6),_0x33b35c),this[_0xf28aa4(0x46f)](this[_0xf28aa4(0x334)](_0x33b35c)));}}[_0x3bc608(0x28f)](_0xcfa999){const _0x220df4=_0x3bc608;this[_0x220df4(0x31d)]();for(let _0x58c5ed=0x0;_0x58c5ed<_0xcfa999[_0x220df4(0x16e)];_0x58c5ed++){let _0x83c1ac=_0xcfa999[_0x58c5ed];switch(this[_0x220df4(0x158)](_0x83c1ac)){case _0x220df4(0x39d):{let _0x2fe680=this['_getCurrentRevision']();if(_0x83c1ac[_0x220df4(0x2f9)]>_0x2fe680+0x1)return{'missingChangesets':!0x0};_0x83c1ac['revision']<=_0x2fe680?this['_dropAcknowledgedAwaiting']():this['_acknowledgeAwaiting']();break;}case'remote_revert':throw new He(this[_0x220df4(0x3c3)](_0x83c1ac));case _0x220df4(0x36b):break;case'missing':return{'missingChangesets':!0x0};case _0x220df4(0x3ce):this[_0x220df4(0x23c)](_0x83c1ac),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x3bc608(0x23c)](_0x17ce3c){const _0x343b90=_0x3bc608;let _0x1a0988=_0x17ce3c,_0x5c9e03=this[_0x343b90(0x48e)];if(_0x5c9e03){let _0x57d90a=this[_0x343b90(0x378)][_0x343b90(0x1c4)]([_0x17ce3c],[_0x5c9e03],!0x1);if(!(0x0,n[_0x343b90(0x38b)])(_0x57d90a))throw _0x57d90a[_0x343b90(0x3a2)];_0x1a0988=_0x57d90a['c1Prime'][0x0],_0x5c9e03=_0x57d90a[_0x343b90(0x1ed)][0x0];}let _0x972e08=this['_pendingMutations'];if(_0x972e08[_0x343b90(0x16e)]){let _0x15f587=this[_0x343b90(0x378)][_0x343b90(0x464)](_0x1a0988,_0x972e08);if(!(0x0,n[_0x343b90(0x3c5)])(_0x15f587))throw _0x15f587['error'];_0x1a0988=_0x15f587[_0x343b90(0x1ba)],_0x972e08=_0x15f587[_0x343b90(0x2fd)];}this[_0x343b90(0x155)](_0x1a0988),_0x5c9e03&&(_0x5c9e03['baseRev']=this[_0x343b90(0x447)]()),this[_0x343b90(0x48e)]=_0x5c9e03,this['_pendingMutations']=_0x972e08;}[_0x3bc608(0x31d)](){const _0x4665f2=_0x3bc608;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x59109b=this[_0x4665f2(0x447)]();if(this[_0x4665f2(0x333)]<=_0x59109b)throw Error(_0x4665f2(0x35a)+this[_0x4665f2(0x333)]+'.');this['_acknowledgedAwaitingRevision']===_0x59109b+0x1&&this[_0x4665f2(0x11d)]();}[_0x3bc608(0x11d)](){const _0x58faec=_0x3bc608;this['_incrementRevisionNumber'](),this[_0x58faec(0x2c8)]();}[_0x3bc608(0x2c8)](){const _0x363982=_0x3bc608;this[_0x363982(0x48e)]=null,this[_0x363982(0x333)]=null,this[_0x363982(0x39e)]();}[_0x3bc608(0x39e)](){const _0x13a01d=_0x3bc608;var _0x511c88;(_0x511c88=this['_submitter'])==null||_0x511c88[_0x13a01d(0x3cc)](),this[_0x13a01d(0x148)]=void 0x0;}[_0x3bc608(0x3cc)](){const _0x7ff1f2=_0x3bc608;this[_0x7ff1f2(0x39e)]();}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc608(0x38c)](_0x8fcd10){const _0x3a140c=_0x3bc608;return this['_pendingMutations']['push'](_0x8fcd10),this[_0x3a140c(0x1d2)](),this;}[_0x3bc608(0x424)](_0x35e7ac){const _0x5be4dd=_0x3bc608;return this['_queuedRemoteChangesets'][_0x5be4dd(0x13a)](_0x35e7ac),this;}['onRemoteAck'](_0x526ca6){const _0x399732=_0x3bc608;let _0x161e7b=this[_0x399732(0x2d6)](_0x526ca6);if(this[_0x399732(0x48e)]){switch(_0x161e7b){case _0x399732(0x276):this[_0x399732(0x2c8)]();break;case _0x399732(0x2ef):break;case _0x399732(0x33a):this[_0x399732(0x11d)]();break;case'missing':this[_0x399732(0x333)]=_0x526ca6[_0x399732(0x2f9)],this['_disposeSubmitter']();}return this;}if(_0x161e7b===_0x399732(0x2ef))return this;throw Error(_0x399732(0x2eb));}[_0x3bc608(0x2ca)](_0x4bbbd7){const _0x56f31d=_0x3bc608;return this[_0x56f31d(0x46f)](this['_rejectionInfo'](_0x4bbbd7));}[_0x3bc608(0x455)](_0x3510a2,_0x4b1c4a){const _0xc07497=_0x3bc608;var _0x22fdab;return this[_0xc07497(0x333)]!=null||_0x3510a2[_0xc07497(0x198)]!==((_0x22fdab=this[_0xc07497(0x48e)])==null?void 0x0:_0x22fdab['reqId'])||(this[_0xc07497(0x148)]??=this[_0xc07497(0x401)](this['_awaitingChangeset']),this[_0xc07497(0x148)]['requestRetry'](this[_0xc07497(0x225)](_0x4b1c4a))),this;}['toggleOffline'](){const _0x307aa0=_0x3bc608;return this[_0x307aa0(0x39e)](),this[_0x307aa0(0x1aa)][_0x307aa0(0x169)](P,this[_0x307aa0(0x29f)],this[_0x307aa0(0x48f)],this[_0x307aa0(0x48e)],this[_0x307aa0(0x112)],this[_0x307aa0(0x3fa)]);}[_0x3bc608(0x1b1)](){return this;}[_0x3bc608(0x46f)](_0x5ea9a6){const _0x14aa1b=_0x3bc608;return this[_0x14aa1b(0x39e)](),this['_injector'][_0x14aa1b(0x169)](N,this[_0x14aa1b(0x29f)],this[_0x14aa1b(0x48f)],this[_0x14aa1b(0x48e)],this['_pendingMutations'],this[_0x14aa1b(0x3fa)],_0x5ea9a6);}};F=b([y(0x8,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x9,(0x0,r[_0x3bc608(0x2bb)])(n['RevisionService'])),y(0xa,r['ILogService']),y(0xb,r['ICommandService']),y(0xc,r[_0x3bc608(0x41b)]),y(0xd,n[_0x3bc608(0x331)]),y(0xe,(0x0,r[_0x3bc608(0x18d)])(C))],F);function We(_0x6bf7a,_0x47130d,_0x138852,_0x147810,_0x509a6b,_0x559200){const _0x281a4e=_0x3bc608;return _0x147810&&_0x509a6b['length']?_0x6bf7a[_0x281a4e(0x169)](M,_0x47130d,_0x138852,_0x147810,_0x509a6b,_0x559200,void 0x0):_0x147810?_0x6bf7a['createInstance'](j,_0x47130d,_0x138852,_0x147810,_0x559200,void 0x0):_0x509a6b[_0x281a4e(0x16e)]?_0x6bf7a['createInstance'](A,_0x47130d,_0x138852,_0x509a6b,_0x559200):_0x6bf7a['createInstance'](k,_0x47130d,_0x138852,_0x559200);}let I=class extends r[_0x3bc608(0xf4)]{get['state'](){const _0x495e60=_0x3bc608;return this[_0x495e60(0x16a)];}constructor(_0x4868c0,_0x8e2062,_0x58d9b3,_0x327309,_0xcb6d63,_0x2f474d,_0x41bce3,_0x4ee173,_0x128584,_0x18b2ca,_0x2804e0,_0xf19cea,_0x4db606,_0x357143){const _0x152308=_0x3bc608;super(),this[_0x152308(0x29f)]=_0x4868c0,this['session']=_0x8e2062,this[_0x152308(0x2b9)]=_0x58d9b3,this['_injector']=_0x327309,this[_0x152308(0x242)]=_0xcb6d63,this[_0x152308(0x2cf)]=_0x2f474d,this[_0x152308(0x2d8)]=_0x41bce3,this[_0x152308(0x2cd)]=_0x4ee173,this[_0x152308(0x414)]=_0x128584,this[_0x152308(0x2bc)]=_0x18b2ca,this[_0x152308(0x2f5)]=_0x2804e0,this['_permissionService']=_0xf19cea,this['_singleActiveUnitService']=_0x4db606,this['_localCacheService']=_0x357143,_(this,_0x152308(0x124),new t[(_0x152308(0x249))](null)),_(this,'state$',this[_0x152308(0x124)]['asObservable']()),_(this,_0x152308(0x16a),void 0x0),_(this,_0x152308(0x452),!0x1),_(this,_0x152308(0x1c7),''),_(this,_0x152308(0x422),0x0),_(this,_0x152308(0x21b),this[_0x152308(0x14c)][_0x152308(0x1d6)]((0x0,t[_0x152308(0x222)])(_0x1f2c95=>_0x1f2c95?_0x1f2c95['status']:_0x152308(0x290)),(0x0,t['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x152308(0x22c),new t[(_0x152308(0x1a3))]()),_(this,'changesetResend$',this['_changesetResend$']['asObservable']()),_(this,'_conflict$',new t[(_0x152308(0x1a3))]()),_(this,'conflict$',this[_0x152308(0x1ff)]['asObservable']()),_(this,_0x152308(0x1ce),!0x1),_(this,_0x152308(0x151),[]);}async[_0x3bc608(0x17e)](){const _0x43c8fb=_0x3bc608;if(this[_0x43c8fb(0x251)])throw Error(_0x43c8fb(0x3be));await this[_0x43c8fb(0x186)]();}[_0x3bc608(0x392)](){const _0x1cc091=_0x3bc608;return this['_collaborationPaused']=!0x0,(0x0,r[_0x1cc091(0x368)])(()=>{const _0x38b78d=_0x1cc091;this[_0x38b78d(0x452)]=!0x1,this[_0x38b78d(0x2b0)]();});}[_0x3bc608(0x3bf)](_0x7b384a){const _0x3410f1=_0x3bc608;this[_0x3410f1(0x3b7)](_0x7b384a);}[_0x3bc608(0x28a)](){var _0xccecf7;return((_0xccecf7=this['_state'])==null?void 0x0:_0xccecf7['hasLocalChanges']())??!0x1;}['dispose'](){const _0x56329f=_0x3bc608;var _0x2b463d;super['dispose'](),(_0x2b463d=this[_0x56329f(0x16a)])==null||_0x2b463d[_0x56329f(0x3cc)](),this[_0x56329f(0x22c)][_0x56329f(0x10e)](),this[_0x56329f(0x1ff)]['complete']();}['_updateState'](_0x4db9d5){const _0x17947d=_0x3bc608;this[_0x17947d(0x16a)]=_0x4db9d5,this[_0x17947d(0x124)][_0x17947d(0x33a)](_0x4db9d5);}async[_0x3bc608(0x186)](){const _0x4deea6=_0x3bc608;if(this[_0x4deea6(0x2b7)](await this[_0x4deea6(0x292)]()),this['_singleActiveUnitService']){var _0x46e22a;(_0x46e22a=this[_0x4deea6(0x494)])==null||_0x46e22a[_0x4deea6(0x145)](this[_0x4deea6(0x29f)]),this[_0x4deea6(0x24c)](this[_0x4deea6(0x494)][_0x4deea6(0x386)](this['unitID'])[_0x4deea6(0x2ad)](_0x1fffc2=>{const _0x102b84=_0x4deea6;this[_0x102b84(0x2bc)][_0x102b84(0x3eb)](_0x102b84(0x1f5),_0x102b84(0x329),_0x1fffc2),_0x1fffc2===0x1?(this[_0x102b84(0x2cd)][_0x102b84(0x2d0)]({'id':_0x102b84(0x26b)}),this[_0x102b84(0x1e8)][_0x102b84(0x463)](new a[(_0x102b84(0x38a))](this[_0x102b84(0x29f)])['id'],!0x1),this[_0x102b84(0x1e8)][_0x102b84(0x3f6)](!0x1)):(this[_0x102b84(0x1e8)][_0x102b84(0x463)](new a[(_0x102b84(0x38a))](this[_0x102b84(0x29f)])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));}));}let _0x3c617e=!0x1;return this[_0x4deea6(0x24c)](this[_0x4deea6(0x3e4)][_0x4deea6(0x1d5)][_0x4deea6(0x2ad)](_0x2cb767=>{const _0x58d040=_0x4deea6;_0x2cb767===0x3?this[_0x58d040(0x399)](_0x3c617e):_0x2cb767===0x2&&(_0x3c617e=!0x0,this[_0x58d040(0x37b)]());})),this[_0x4deea6(0x24c)](this[_0x4deea6(0x3e4)][_0x4deea6(0x165)][_0x4deea6(0x2ad)](_0x3d39f0=>{const _0x300723=_0x4deea6;try{switch(_0x3d39f0[_0x300723(0x1e5)]){case n[_0x300723(0x1be)][_0x300723(0x1f0)]:this[_0x300723(0x2a2)]((0x0,n[_0x300723(0x395)])(_0x3d39f0['data']));break;case n['CollaborationEvent'][_0x300723(0x362)]:this['_onRemoteACK'](_0x3d39f0['data']);break;case n[_0x300723(0x1be)][_0x300723(0x2ce)]:this['_onRemoteRejected']({'isPermissionRej':!0x1,'reason':_0x3d39f0[_0x300723(0x384)],'code':_0x3d39f0[_0x300723(0x3e2)]});break;case n[_0x300723(0x1be)][_0x300723(0x34e)]:{let _0x50e0ad=_0x3d39f0;this[_0x300723(0x15c)](_0x50e0ad['data'],_0x50e0ad[_0x300723(0x3e2)]);break;}case n[_0x300723(0x1be)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x300723(0x10c)](_0x3d39f0[_0x300723(0x34b)]['changesets'][_0x300723(0x222)](_0x35ad13=>(0x0,n[_0x300723(0x395)])(_0x35ad13)));break;case n[_0x300723(0x1be)][_0x300723(0x2a7)]:this[_0x300723(0x371)]({'isPermissionRej':!0x0,'reason':_0x3d39f0['reason'],'code':_0x3d39f0[_0x300723(0x3e2)]});break;case n['CollaborationEvent']['UNISCRIPT_RUN']:}}catch(_0x26cd24){throw console[_0x300723(0x3a2)](_0x300723(0x498),_0x26cd24),_0x26cd24;}})),this[_0x4deea6(0x16a)];}[_0x3bc608(0x3d5)](){const _0x3e2a09=_0x3bc608;this[_0x3e2a09(0x1ce)]=!0x1;}[_0x3bc608(0x213)](){const _0x134b6a=_0x3bc608;if(this[_0x134b6a(0x1ce)])throw Error(_0x134b6a(0x301));this[_0x134b6a(0x1ce)]=!0x0;}[_0x3bc608(0x23d)](_0x29a7bd){const _0x1a9baf=_0x3bc608;this[_0x1a9baf(0x213)]();try{this[_0x1a9baf(0x2b7)](_0x29a7bd());}finally{this['_unlockTransition']();}}[_0x3bc608(0x3b7)](_0x5af978){const _0x1aefe7=_0x3bc608;this['_transit'](()=>this[_0x1aefe7(0x16a)][_0x1aefe7(0x38c)](_0x5af978));}[_0x3bc608(0x2a2)](_0x4a2177){const _0x2d7e39=_0x3bc608;this['_collaborationPaused']?this[_0x2d7e39(0x151)]['push'](_0x4a2177):this['_applyRemoteChangeset'](_0x4a2177);}['_exhaustRemoteChangesetQueue'](){const _0x37ba84=_0x3bc608;this[_0x37ba84(0x151)][_0x37ba84(0x103)](_0x5aca83=>this[_0x37ba84(0x152)](_0x5aca83)),this['_remoteChangesetQueue']=[];}[_0x3bc608(0x152)](_0x235075){const _0x2199f9=_0x3bc608;let _0x52867b=this['_compressMutationService'][_0x2199f9(0x3d8)][_0x2199f9(0x2b3)](this[_0x2199f9(0x242)][_0x2199f9(0x3d8)][_0x2199f9(0x173)]()[_0x2199f9(0x3c0)])(_0x235075[_0x2199f9(0x29d)],null)||_0x235075[_0x2199f9(0x29d)],_0x43e576={..._0x235075,'mutations':_0x52867b};this[_0x2199f9(0x23d)](()=>this[_0x2199f9(0x16a)]['onRemoteChangeset'](_0x43e576));}[_0x3bc608(0x36c)](_0x19a84d){const _0x4da386=_0x3bc608;this['_transit'](()=>this[_0x4da386(0x16a)]['onRemoteAck'](_0x19a84d));}[_0x3bc608(0x371)](_0x112aa8){const _0x3c4e6=_0x3bc608;this[_0x3c4e6(0x23d)](()=>this[_0x3c4e6(0x16a)][_0x3c4e6(0x2ca)](_0x112aa8));}['_onRemoteRetry'](_0x4b443e,_0xcc117b){const _0x233592=_0x3bc608;this['_transit'](()=>this['_state'][_0x233592(0x455)](_0x4b443e,_0xcc117b));}[_0x3bc608(0x10c)](_0x865fe9){const _0x210bdb=_0x3bc608;let _0x314088=this[_0x210bdb(0x16a)];if(!(_0x314088 instanceof F))throw TypeError(_0x210bdb(0x12c));let _0x3ec273=_0x865fe9[_0x210bdb(0x222)](_0x4e4428=>{const _0x335d7b=_0x210bdb;let _0x2c77b8=this[_0x335d7b(0x242)][_0x335d7b(0x3d8)][_0x335d7b(0x2b3)](this[_0x335d7b(0x242)][_0x335d7b(0x3d8)]['getInterceptPoints']()[_0x335d7b(0x3c0)])(_0x4e4428[_0x335d7b(0x29d)],null)||_0x4e4428[_0x335d7b(0x29d)];return{..._0x4e4428,'mutations':_0x2c77b8};});this['_transit'](()=>_0x314088['onMissedChangesetFetched'](_0x3ec273));}[_0x3bc608(0x37b)](){const _0x23e63f=_0x3bc608;this[_0x23e63f(0x23d)](()=>this['_state'][_0x23e63f(0x361)]());}[_0x3bc608(0x399)](_0x4b515f=!0x1){const _0x5ab6a4=_0x3bc608;this[_0x5ab6a4(0x23d)](()=>this['_state'][_0x5ab6a4(0x1b1)]());let _0xce92ab=this[_0x5ab6a4(0x16a)];_0x4b515f&&_0xce92ab instanceof k&&this[_0x5ab6a4(0x23d)](()=>_0xce92ab['fetchMiss']());}async[_0x3bc608(0x292)](){return new Promise(_0x646c2d=>{const _0x3c0c34=_0xa8b9;this[_0x3c0c34(0x3e4)][_0x3c0c34(0x1d5)][_0x3c0c34(0x1d6)]((0x0,t[_0x3c0c34(0x417)])(0x1))['subscribe'](async _0x46fa24=>{_0x646c2d(await this['_createInitialStateImpl'](_0x46fa24===0x3));});});}['_createHandler'](){const _0x310982=_0x3bc608;let _0x193ecc=this['unitID'],_0x26fb93=this[_0x310982(0x1aa)][_0x310982(0x119)](r[_0x310982(0x190)])[_0x310982(0x2de)](m);return{'resendTimeouts':{'ackTimeout':_0x26fb93==null?void 0x0:_0x26fb93[_0x310982(0x3d9)],'maxAckTimeout':_0x26fb93==null?void 0x0:_0x26fb93['maxChangesetAckTimeout']},'onStateChange':(_0x2e7f06,_0x409e4b)=>{const _0x4e9e76=_0x310982;if(_0x2e7f06!==this[_0x4e9e76(0x16a)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2e7f06[_0x4e9e76(0x1eb)]+'\x0aAfter:\x20'+_0x409e4b[_0x4e9e76(0x1eb)]+'\x0aCurrent:\x20'+this[_0x4e9e76(0x16a)]['status']);this[_0x4e9e76(0x2b7)](_0x409e4b);},'onSendChangeset':(_0x45a58a,_0x400353)=>{const _0x2a0644=_0x310982;_0x45a58a[_0x2a0644(0xfe)]||(_0x45a58a[_0x2a0644(0xfe)]=this[_0x2a0644(0x1c7)],_0x45a58a[_0x2a0644(0x198)]=++this[_0x2a0644(0x422)]);let _0x39aa2b={'eventID':n[_0x2a0644(0x1be)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x45a58a[_0x2a0644(0x29f)],'unitType':this[_0x2a0644(0x2b9)],'changeset':_0x45a58a,'memberID':this[_0x2a0644(0x3e4)][_0x2a0644(0x1a6)]()}};return this[_0x2a0644(0x3e4)][_0x2a0644(0x153)](_0x39aa2b,this[_0x2a0644(0x29f)],_0x400353);},'onConflict':(_0x4e1323,_0x2ee6b0,_0x4986ac)=>{const _0x4eb6b1=_0x310982;this[_0x4eb6b1(0x1ff)][_0x4eb6b1(0x15e)]||this['_conflict$']['next']({'unitID':_0x193ecc,..._0x4e1323,'localChanges':_0x2ee6b0,'cacheCleared':_0x4986ac});},'onChangesetResend':_0x4b076d=>{const _0x5a3ae0=_0x310982;this[_0x5a3ae0(0x2bc)][_0x5a3ae0(0x3eb)](_0x5a3ae0(0x1f5),_0x5a3ae0(0x305)+_0x4b076d['reqId']+'\x20('+_0x4b076d[_0x5a3ae0(0x384)]+_0x5a3ae0(0x116)+_0x4b076d[_0x5a3ae0(0x3e6)]+')'),queueMicrotask(()=>{const _0x61c3cf=_0x5a3ae0;this[_0x61c3cf(0x22c)][_0x61c3cf(0x15e)]||this[_0x61c3cf(0x22c)][_0x61c3cf(0x33a)]({'unitID':_0x193ecc,..._0x4b076d});});},'onMissingChangesets':({from:_0x3a951c,to:_0x19d640})=>{const _0x1c561d=_0x310982;this['_logService'][_0x1c561d(0x3eb)](_0x1c561d(0x1f5),'fetching\x20missing\x20changesets\x20from\x20'+_0x3a951c+_0x1c561d(0x45f)+_0x19d640);let _0x47aac4={'eventID':n[_0x1c561d(0x1be)]['FETCH_MISSING'],'data':{'unitID':_0x193ecc,'unitType':this[_0x1c561d(0x2b9)],'from':_0x3a951c,'to':_0x19d640}};this[_0x1c561d(0x3e4)][_0x1c561d(0x153)](_0x47aac4,this[_0x1c561d(0x29f)]);}};}async['_createInitialStateImpl'](_0x5ea0a6){const _0x223c69=_0x3bc608;var _0x1a0e96;let _0x342d42=await((_0x1a0e96=this[_0x223c69(0x239)])==null?void 0x0:_0x1a0e96['loadOfflineData'](this[_0x223c69(0x29f)])),_0x142cb3=(_0x342d42==null?void 0x0:_0x342d42['mutations'])??[],_0x40eced=(_0x342d42==null?void 0x0:_0x342d42[_0x223c69(0xf3)])??null,_0x1d89e5=!!(_0x40eced!=null&&_0x40eced[_0x223c69(0xfe)])&&!!(_0x40eced!=null&&_0x40eced[_0x223c69(0x198)]);this[_0x223c69(0x1c7)]=_0x1d89e5?_0x40eced[_0x223c69(0xfe)]:(0x0,n['uuidv4'])(),this['_changesetReqId']=_0x1d89e5?_0x40eced[_0x223c69(0x198)]:0x0;let _0x4f46c0=this['unitID'];try{this[_0x223c69(0x106)](_0x40eced,_0x142cb3);}catch(_0x342d7f){this['_logService'][_0x223c69(0x3a2)](_0x342d7f);}let _0x4bef9a=this[_0x223c69(0x210)]();if(_0x5ea0a6){let _0x283c39=We(this['_injector'],_0x4f46c0,this[_0x223c69(0x2b9)],_0x40eced,_0x142cb3,_0x4bef9a);return _0x283c39 instanceof A?_0x283c39[_0x223c69(0x32e)]():(_0x283c39 instanceof M||_0x283c39 instanceof j)&&_0x283c39[_0x223c69(0x426)](),_0x283c39;}return this[_0x223c69(0x1aa)][_0x223c69(0x169)](P,_0x4f46c0,this[_0x223c69(0x2b9)],_0x40eced,_0x142cb3,_0x4bef9a);}[_0x3bc608(0x106)](_0x8b99b1,_0x28f72e){const _0x356d2=_0x3bc608;var _0x1a7fc4,_0x595728;let _0x4f3a42=this['_compressMutationService'][_0x356d2(0x3d8)][_0x356d2(0x2b3)](this['_compressMutationService'][_0x356d2(0x3d8)]['getInterceptPoints']()[_0x356d2(0x3c0)]);(_0x1a7fc4=_0x4f3a42((_0x8b99b1==null?void 0x0:_0x8b99b1[_0x356d2(0x29d)])||[],null))==null||_0x1a7fc4['forEach'](_0x1f2794=>this['_commandService']['executeCommand'](_0x1f2794['id'],_0x1f2794[_0x356d2(0x41a)])),(_0x595728=_0x4f3a42(_0x28f72e||[],null))==null||_0x595728[_0x356d2(0x103)](_0x255dab=>this['_commandService']['executeCommand'](_0x255dab['id'],_0x255dab[_0x356d2(0x41a)]));}};I=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r['LocaleService'])),y(0x6,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r['ICommandService']),y(0xb,r[_0x3bc608(0x32c)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],I);let L=class extends I{constructor(_0x11953f,_0x667379,_0x53fa30,_0x5e9e6d,_0x575c79,_0xc1d69f,_0x3520cc,_0x366e58,_0x5b4d0c,_0x3dfcba,_0x1848a6,_0x22d7f7,_0x5c6dfd,_0x4dc3dd,_0x12707f){const _0x40b6a3=_0x3bc608;super(_0x11953f,_0x53fa30,_0x667379,_0x5e9e6d,_0x575c79,_0xc1d69f,_0x3520cc,_0x366e58,_0x5b4d0c,_0x3dfcba,_0x1848a6,_0x22d7f7,_0x4dc3dd,_0x12707f),this[_0x40b6a3(0x29f)]=_0x11953f,this[_0x40b6a3(0x48f)]=_0x667379,this[_0x40b6a3(0x26f)]=_0x5c6dfd,_(this,_0x40b6a3(0x1fd),null);}[_0x3bc608(0x46d)](_0x12191b){this['_handlerCallback']=_0x12191b;}['dispose'](){const _0x279223=_0x3bc608;this[_0x279223(0x1fd)]=null,super['dispose']();}['_createHandler'](){const _0x3256a1=_0x3bc608;let _0x1aebc9=super[_0x3256a1(0x210)]();return _0x1aebc9[_0x3256a1(0x468)]=_0x510112=>{const _0x3b3b31=_0x3256a1;var _0x885add,_0x350b37;return(_0x885add=this[_0x3b3b31(0x1fd)])==null||(_0x350b37=_0x885add[_0x3b3b31(0x468)])==null?void 0x0:_0x350b37[_0x3b3b31(0x1e2)](_0x885add,_0x510112);},_0x1aebc9[_0x3256a1(0x34c)]=_0x2c6f41=>{const _0x3f9cd1=_0x3256a1;var _0x19a475,_0x25872a;return(_0x19a475=this[_0x3f9cd1(0x1fd)])==null||(_0x25872a=_0x19a475['onTransformState'])==null?void 0x0:_0x25872a[_0x3f9cd1(0x1e2)](_0x19a475,_0x2c6f41);},_0x1aebc9[_0x3256a1(0x289)]=_0x5f5567=>{const _0x42d3d2=_0x3256a1;var _0x10d123,_0x5be8ff;return((_0x10d123=this[_0x42d3d2(0x1fd)])==null||(_0x5be8ff=_0x10d123[_0x42d3d2(0x289)])==null?void 0x0:_0x5be8ff[_0x42d3d2(0x1e2)](_0x10d123,_0x5f5567))??null;},_0x1aebc9[_0x3256a1(0x245)]=_0x42ff5e=>{const _0x1c1120=_0x3256a1;var _0x3e27dd,_0x37c005;return(_0x3e27dd=this['_handlerCallback'])==null||(_0x37c005=_0x3e27dd[_0x1c1120(0x245)])==null?void 0x0:_0x37c005[_0x1c1120(0x1e2)](_0x3e27dd,_0x42ff5e);},_0x1aebc9['onSyncEditingCollabCursor']=_0x2c096d=>{const _0x6e7f50=_0x3256a1;var _0x2ea803,_0x456909;return(_0x2ea803=this[_0x6e7f50(0x1fd)])==null||(_0x456909=_0x2ea803[_0x6e7f50(0x1f7)])==null?void 0x0:_0x456909[_0x6e7f50(0x1e2)](_0x2ea803,_0x2c096d);},_0x1aebc9[_0x3256a1(0x461)]=_0x3595fb=>{const _0x2b3d6d=_0x3256a1;var _0x42fd02,_0x4811fd;return((_0x42fd02=this[_0x2b3d6d(0x1fd)])==null||(_0x4811fd=_0x42fd02[_0x2b3d6d(0x461)])==null?void 0x0:_0x4811fd[_0x2b3d6d(0x1e2)](_0x42fd02,_0x3595fb))??_0x3595fb;},_0x1aebc9[_0x3256a1(0x2be)]=_0x50832b=>{const _0x99ce25=_0x3256a1;var _0x14b190,_0x2c7646;return((_0x14b190=this[_0x99ce25(0x1fd)])==null||(_0x2c7646=_0x14b190[_0x99ce25(0x2be)])==null?void 0x0:_0x2c7646[_0x99ce25(0x1e2)](_0x14b190,_0x50832b))??_0x50832b;},_0x1aebc9;}async['_init'](){const _0x33f06c=_0x3bc608;let _0x19786e=await super[_0x33f06c(0x186)]();return this[_0x33f06c(0x24c)](this[_0x33f06c(0x26f)][_0x33f06c(0x168)][_0x33f06c(0x2ad)](_0x7b5824=>{const _0x378fea=_0x33f06c;if(_0x7b5824==null||_0x7b5824['unitId']!==this[_0x378fea(0x29f)])return;let {commandId:_0xf0b912,redoState:_0x9a0c51,unitId:_0x452931}=_0x7b5824,_0x4ad067={'id':_0xf0b912,'type':r[_0x378fea(0x336)][_0x378fea(0x44f)],'params':{'unitId':_0x452931,'actions':_0x9a0c51['actions'],'textRanges':null}};this[_0x378fea(0x3b7)](_0x4ad067);})),this[_0x33f06c(0x24c)](this[_0x33f06c(0x2f5)][_0x33f06c(0x229)]((_0x4823c4,_0x1e5444)=>{const _0x31149d=_0x33f06c;if(_0x4823c4[_0x31149d(0x48f)]!==r[_0x31149d(0x336)][_0x31149d(0x44f)]||_0x1e5444!=null&&_0x1e5444[_0x31149d(0x216)]||_0x1e5444!=null&&_0x1e5444[_0x31149d(0x274)]||_0x4823c4['id']===i[_0x31149d(0x341)]['id'])return;let _0x55fdcb=_0x4823c4[_0x31149d(0x41a)];if((_0x55fdcb==null?void 0x0:_0x55fdcb['unitId'])!==this[_0x31149d(0x29f)])return;let _0x51a495=_0x4823c4,_0x522899=this[_0x31149d(0x242)]['interceptor'][_0x31149d(0x2b3)](this[_0x31149d(0x242)][_0x31149d(0x3d8)][_0x31149d(0x173)]()[_0x31149d(0x269)])([_0x51a495],this[_0x31149d(0x414)])||[_0x51a495];this[_0x31149d(0x3b7)](_0x522899[0x0]);})),_0x19786e;}};L=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r['ICommandService']),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x3bc608(0x2bb)])(i[_0x3bc608(0x280)])),y(0xd,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xe,(0x0,r['Optional'])(C))],L);let R=class extends I{constructor(_0x32d12f,_0xc6465f,_0xb87e49,_0x101e15,_0x583b8f,_0x49fc3b,_0xd7dec2,_0x46e52f,_0x544fee,_0x11fe5e,_0x58fe37,_0x5bb860,_0x2645fc,_0x7946cb){const _0x34f81a=_0x3bc608;super(_0x32d12f,_0xb87e49,_0xc6465f,_0x101e15,_0x583b8f,_0x49fc3b,_0xd7dec2,_0x46e52f,_0x544fee,_0x11fe5e,_0x58fe37,_0x5bb860,_0x2645fc,_0x7946cb),this[_0x34f81a(0x29f)]=_0x32d12f,this[_0x34f81a(0x48f)]=_0xc6465f;}async['_init'](){const _0x1bd499=_0x3bc608;let _0x22c93c=await super['_init']();return this[_0x1bd499(0x24c)](this[_0x1bd499(0x2f5)][_0x1bd499(0x229)]((_0x25b6c2,_0xfcfae7)=>{const _0x2921b4=_0x1bd499;if(_0x25b6c2[_0x2921b4(0x48f)]!==r['CommandType'][_0x2921b4(0x44f)]||_0xfcfae7!=null&&_0xfcfae7[_0x2921b4(0x216)]||_0xfcfae7!=null&&_0xfcfae7['onlyLocal'])return;let _0x100709=_0x25b6c2['params'];if((_0x100709==null?void 0x0:_0x100709['unitId'])!==this[_0x2921b4(0x29f)])return;let _0x382a27=_0x25b6c2,_0x2cc43e=this[_0x2921b4(0x242)][_0x2921b4(0x3d8)][_0x2921b4(0x2b3)](this[_0x2921b4(0x242)][_0x2921b4(0x3d8)][_0x2921b4(0x173)]()[_0x2921b4(0x269)])([_0x382a27],this[_0x2921b4(0x414)])||[_0x382a27];this[_0x2921b4(0x3b7)](_0x2cc43e[0x0]);})),_0x22c93c;}};R=b([y(0x3,(0x0,r['Inject'])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r['ICommandService']),y(0xb,r[_0x3bc608(0x32c)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],R);let z=class extends I{constructor(_0xb7ee6c,_0x4449d3,_0x30d869,_0x3be37d,_0x5d5989,_0x11da13,_0x2a81dd,_0xdde4eb,_0x2716f6,_0x2d3697,_0x5dfee9,_0x201d88,_0x223530,_0x114453,_0x5ed631){const _0x146c0a=_0x3bc608;super(_0xb7ee6c,_0x30d869,_0x4449d3,_0x3be37d,_0x5d5989,_0x11da13,_0x2a81dd,_0x2716f6,_0x2d3697,_0x5dfee9,_0x201d88,_0x223530,_0x114453,_0x5ed631),this['unitID']=_0xb7ee6c,this[_0x146c0a(0x48f)]=_0x4449d3,this['_sheetTransformSelectionsService']=_0xdde4eb;}['_createHandler'](){const _0x20454d=_0x3bc608;let _0x82a720=super[_0x20454d(0x210)]();return _0x82a720[_0x20454d(0x245)]=_0x115854=>this[_0x20454d(0x451)][_0x20454d(0x286)](_0x115854),_0x82a720;}async[_0x3bc608(0x186)](){const _0xe21f36=_0x3bc608;let _0x1fb586=await super[_0xe21f36(0x186)]();return this[_0xe21f36(0x24c)](this[_0xe21f36(0x2f5)][_0xe21f36(0x229)]((_0x307444,_0x2e6f0e)=>{const _0x506e19=_0xe21f36;if(_0x307444[_0x506e19(0x48f)]!==r[_0x506e19(0x336)][_0x506e19(0x44f)]||_0x2e6f0e!=null&&_0x2e6f0e[_0x506e19(0x216)]||_0x2e6f0e!=null&&_0x2e6f0e[_0x506e19(0x274)])return;let _0x4dd681=_0x307444['params'];if((_0x4dd681==null?void 0x0:_0x4dd681[_0x506e19(0x3dc)])!==this[_0x506e19(0x29f)])return;let _0x3bd371=_0x307444,_0x4bcbae=this[_0x506e19(0x242)][_0x506e19(0x3d8)][_0x506e19(0x2b3)](this[_0x506e19(0x242)][_0x506e19(0x3d8)][_0x506e19(0x173)]()[_0x506e19(0x269)])([_0x3bd371],this['_univerInstanceService'])||[_0x3bd371];this['_onLocalMutation'](_0x4bcbae[0x0]);})),_0x1fb586;}};z=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(w)),y(0x8,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x9,r['IUniverInstanceService']),y(0xa,r[_0x3bc608(0x3ae)]),y(0xb,r[_0x3bc608(0x185)]),y(0xc,r['IPermissionService']),y(0xd,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xe,(0x0,r[_0x3bc608(0x18d)])(C))],z);let B=class extends I{constructor(_0x58189a,_0x3dfa1b,_0x3a6d62,_0x19e4f4,_0x253694,_0xef0029,_0x51d40d,_0x4901be,_0x5b4e64,_0x3ccbc8,_0x546b37,_0x5e8989,_0x463e0c,_0x5b6dbf){const _0x24d3b2=_0x3bc608;super(_0x58189a,_0x3a6d62,_0x3dfa1b,_0x19e4f4,_0x253694,_0xef0029,_0x51d40d,_0x4901be,_0x5b4e64,_0x3ccbc8,_0x546b37,_0x5e8989,_0x463e0c,_0x5b6dbf),this[_0x24d3b2(0x29f)]=_0x58189a,this[_0x24d3b2(0x48f)]=_0x3dfa1b;}async[_0x3bc608(0x186)](){const _0x3c5b93=_0x3bc608;let _0x3a7c05=await super[_0x3c5b93(0x186)]();return this[_0x3c5b93(0x24c)](this[_0x3c5b93(0x2f5)][_0x3c5b93(0x229)]((_0x10b751,_0x5130d0)=>{const _0x464bfe=_0x3c5b93;if(_0x10b751[_0x464bfe(0x48f)]!==r['CommandType'][_0x464bfe(0x44f)]||_0x5130d0!=null&&_0x5130d0['fromCollab']||_0x5130d0!=null&&_0x5130d0[_0x464bfe(0x274)])return;let _0x320268=_0x10b751['params'];if((_0x320268==null?void 0x0:_0x320268[_0x464bfe(0x3dc)])!==this[_0x464bfe(0x29f)])return;let _0x103528=_0x10b751,_0x2ff4e6=this[_0x464bfe(0x242)][_0x464bfe(0x3d8)]['fetchThroughInterceptors'](this[_0x464bfe(0x242)][_0x464bfe(0x3d8)][_0x464bfe(0x173)]()[_0x464bfe(0x269)])([_0x103528],this[_0x464bfe(0x414)])||[_0x103528];this[_0x464bfe(0x3b7)](_0x2ff4e6[0x0]);})),_0x3a7c05;}};B=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r['Injector'])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n['CompressMutationService'])),y(0x5,(0x0,r['Inject'])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r[_0x3bc608(0x185)]),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],B);let V=class extends I{constructor(_0xb111c7,_0x312e1f,_0x2a6123,_0x594b58,_0x1ece9b,_0x135816,_0x1b48b7,_0x57d173,_0x3c3e00,_0x591ccf,_0x5d10d9,_0x532348,_0x5d05ee,_0x56efd1){const _0x3e21af=_0x3bc608;super(_0xb111c7,_0x2a6123,_0x312e1f,_0x594b58,_0x1ece9b,_0x135816,_0x1b48b7,_0x57d173,_0x3c3e00,_0x591ccf,_0x5d10d9,_0x532348,_0x5d05ee,_0x56efd1),this[_0x3e21af(0x29f)]=_0xb111c7,this['type']=_0x312e1f;}async[_0x3bc608(0x186)](){const _0x2e4896=_0x3bc608;let _0x126d1b=await super[_0x2e4896(0x186)]();return this[_0x2e4896(0x24c)](this[_0x2e4896(0x2f5)]['onMutationExecutedForCollab']((_0x88e27f,_0x7f603d)=>{const _0x306c57=_0x2e4896;if(_0x88e27f['type']!==r[_0x306c57(0x336)]['MUTATION']||_0x7f603d!=null&&_0x7f603d[_0x306c57(0x216)]||_0x7f603d!=null&&_0x7f603d['onlyLocal'])return;let _0x2d5db9=_0x88e27f[_0x306c57(0x41a)];if((_0x2d5db9==null?void 0x0:_0x2d5db9[_0x306c57(0x3dc)])!==this[_0x306c57(0x29f)])return;let _0x41e3c9=_0x88e27f,_0x4670ee=this[_0x306c57(0x242)][_0x306c57(0x3d8)][_0x306c57(0x2b3)](this[_0x306c57(0x242)][_0x306c57(0x3d8)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x41e3c9],this[_0x306c57(0x414)])||[_0x41e3c9];this[_0x306c57(0x3b7)](_0x4670ee[0x0]);})),_0x126d1b;}};V=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r['Inject'])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r['Inject'])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r[_0x3bc608(0x185)]),y(0xb,r[_0x3bc608(0x32c)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r['Optional'])(C))],V);let H=class extends I{constructor(_0x38c5e1,_0x1b7366,_0x5723b9,_0x4c9573,_0x54d311,_0x2bf632,_0x4cad0a,_0x9bd6e9,_0x348b6d,_0x536bdc,_0x51fd1d,_0x1b475a,_0x31bf3d,_0x351089){super(_0x38c5e1,_0x5723b9,_0x1b7366,_0x4c9573,_0x54d311,_0x2bf632,_0x4cad0a,_0x9bd6e9,_0x348b6d,_0x536bdc,_0x51fd1d,_0x1b475a,_0x31bf3d,_0x351089),this['unitID']=_0x38c5e1,this['type']=_0x1b7366;}async[_0x3bc608(0x186)](){const _0x3db443=_0x3bc608;let _0x1bde26=await super[_0x3db443(0x186)]();return this[_0x3db443(0x24c)](this[_0x3db443(0x2f5)][_0x3db443(0x229)]((_0x406d70,_0x265ffe)=>{const _0x1722d8=_0x3db443;if(_0x406d70[_0x1722d8(0x48f)]!==r['CommandType'][_0x1722d8(0x44f)]||_0x265ffe!=null&&_0x265ffe[_0x1722d8(0x216)]||_0x265ffe!=null&&_0x265ffe[_0x1722d8(0x274)])return;let _0x18bc41=_0x406d70['params'];if((_0x18bc41==null?void 0x0:_0x18bc41[_0x1722d8(0x3dc)])!==this['unitID'])return;let _0x4be2f1=_0x406d70,_0xb37ad2=this[_0x1722d8(0x242)][_0x1722d8(0x3d8)][_0x1722d8(0x2b3)](this['_compressMutationService']['interceptor'][_0x1722d8(0x173)]()[_0x1722d8(0x269)])([_0x4be2f1],this[_0x1722d8(0x414)])||[_0x4be2f1];this[_0x1722d8(0x3b7)](_0xb37ad2[0x0]);})),_0x1bde26;}};H=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r[_0x3bc608(0x185)]),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],H);const Ge=(0x0,r[_0x3bc608(0x2e1)])('univer-pro.collaboration-client.network-condition.service');function Ke(_0x362c89){const _0x52bbc3=_0x3bc608;let _0x1aad93=_0x362c89[_0x52bbc3(0x34b)],_0x5e4518=JSON[_0x52bbc3(0x1cf)](_0x1aad93);switch(_0x5e4518['cmd']){case o[_0x52bbc3(0x162)][_0x52bbc3(0x228)]:case o['CombCmd']['HELLO']:{let _0x422e19=_0x5e4518[_0x52bbc3(0x2dc)];return{..._0x5e4518,'data':_0x422e19,'cmd':_0x5e4518['cmd']};}case o[_0x52bbc3(0x162)][_0x52bbc3(0x21c)]:{let _0x425f6d=_0x5e4518['joinRsp'];return{..._0x5e4518,'data':_0x425f6d,'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};}case o[_0x52bbc3(0x162)][_0x52bbc3(0x2d4)]:{let _0x25ea30=_0x5e4518[_0x52bbc3(0x2d1)];switch(_0x25ea30['eventID']){case n[_0x52bbc3(0x1be)]['PERMISSION_REJ']:{let {cs:_0x3c6dbb,code:_0x24acfd,reason:_0x202ba4}=_0x25ea30['permissionRejEvent']??{};return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x3c6dbb,'code':_0x24acfd,'reason':_0x202ba4},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};}case n[_0x52bbc3(0x1be)]['CHANGESET_ACK']:var _0x182801;return{..._0x5e4518,'data':{..._0x25ea30,'data':(_0x182801=_0x25ea30[_0x52bbc3(0x25e)])==null?void 0x0:_0x182801['cs']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x1f0)]:var _0xd80136;return{..._0x5e4518,'data':{..._0x25ea30,'data':(_0xd80136=_0x25ea30['newCsEvent'])==null?void 0x0:_0xd80136['cs']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x2ce)]:{let {cs:_0x32c930,code:_0x26e173,reason:_0xb19883}=_0x25ea30[_0x52bbc3(0x171)]??{};return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x32c930,'code':_0x26e173,'reason':_0xb19883},'cmd':_0x5e4518['cmd']};}case n[_0x52bbc3(0x1be)][_0x52bbc3(0x34e)]:{let {cs:_0x18c633,code:_0x5b9747,reason:_0x3abb3e}=_0x25ea30[_0x52bbc3(0x2ba)]??{};return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x18c633,'code':_0x5b9747,'reason':_0x3abb3e},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};}case n[_0x52bbc3(0x1be)][_0x52bbc3(0x432)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30['updateCursorEvent']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x34a)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x42d)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)]['USERS_LEAVE']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30['leaveEvent']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x33e)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x1ef)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x170)]:case n[_0x52bbc3(0x1be)]['LIVESHARE_OPERATION']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x487)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)]['LIVESHARE_TERMINATE']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x1ef)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x3df)]:return{..._0x5e4518,'data':_0x25ea30,'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x218)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x221)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n['CollaborationEvent'][_0x52bbc3(0x3e7)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x2e5)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x1c8)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x2f3)]},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)]['UNISCRIPT_RUN']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30['uniscriptRunEvent']},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};default:return _0x5e4518;}}default:return _0x5e4518;}}function qe(_0x36ff0d){const _0x1e45bd=_0x3bc608;switch(_0x36ff0d[_0x1e45bd(0x1e9)]){case o[_0x1e45bd(0x162)]['HEARTBEAT']:case o[_0x1e45bd(0x162)]['HELLO']:return JSON[_0x1e45bd(0x42b)]({'cmd':_0x36ff0d[_0x1e45bd(0x1e9)],'routeKey':_0x36ff0d[_0x1e45bd(0x128)]});case o[_0x1e45bd(0x162)]['INGEST']:{let _0x926304;switch(_0x36ff0d[_0x1e45bd(0x34b)]['eventID']){case n[_0x1e45bd(0x1be)][_0x1e45bd(0x432)]:_0x926304={'eventID':n['CollaborationEvent'][_0x1e45bd(0x432)],'updateCursorEvent':_0x36ff0d[_0x1e45bd(0x34b)]['data']};break;case n[_0x1e45bd(0x1be)][_0x1e45bd(0x390)]:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x390)],'leaveEvent':_0x36ff0d['data'][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['USERS_ENTER']:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x34a)],'joinEvent':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)][_0x1e45bd(0x33e)]:_0x926304={'eventID':n['CollaborationEvent'][_0x1e45bd(0x33e)],'liveShareNewHost':_0x36ff0d['data'][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['LIVESHARE_OPERATION']:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x44e)],'liveShareOperation':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['LIVESHARE_TERMINATE']:_0x926304={'eventID':n[_0x1e45bd(0x1be)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n['CollaborationEvent'][_0x1e45bd(0x325)]:_0x926304={'eventID':n['CollaborationEvent'][_0x1e45bd(0x325)],'liveShareRequestHost':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['LIVESHARE_FETCH_OPERATIONS']:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x170)]};break;default:_0x926304={'eventID':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x1e5)]};}return JSON[_0x1e45bd(0x42b)]({'cmd':_0x36ff0d[_0x1e45bd(0x1e9)],'routeKey':_0x36ff0d[_0x1e45bd(0x128)],'collaMsg':_0x926304});}case o[_0x1e45bd(0x162)][_0x1e45bd(0x21c)]:return JSON[_0x1e45bd(0x42b)]({'cmd':_0x36ff0d['cmd'],'routeKey':_0x36ff0d[_0x1e45bd(0x128)],'joinReq':_0x36ff0d[_0x1e45bd(0x34b)]});case o[_0x1e45bd(0x162)][_0x1e45bd(0x37e)]:return JSON['stringify']({'cmd':_0x36ff0d[_0x1e45bd(0x1e9)],'routeKey':_0x36ff0d[_0x1e45bd(0x128)],'leaveReq':_0x36ff0d['data']});default:throw Error(_0x1e45bd(0x2d2));}}const Je=(0x0,r['createIdentifier'])(_0x3bc608(0x1dc));function Ye(_0x295c8f,_0x1cabb3,_0x245ef4){const _0x2b26b9=_0x3bc608;return _0x295c8f+'/'+_0x1cabb3+_0x2b26b9(0x388)+_0x245ef4+_0x2b26b9(0x14b);}let Xe=class extends r[_0x3bc608(0x358)]{constructor(_0x4802a1,_0x527c86,_0x30129d,_0x3f3e84,_0x5ec1ef){const _0x4ed824=_0x3bc608;super(),this[_0x4ed824(0x1aa)]=_0x4802a1,this[_0x4ed824(0x499)]=_0x527c86,this[_0x4ed824(0x430)]=_0x30129d,this['_logService']=_0x3f3e84,this[_0x4ed824(0x176)]=_0x5ec1ef;}['_doCreateSocket'](_0x552453){const _0x4f063e=_0x3bc608;let _0x233c17=this[_0x4f063e(0x1aa)][_0x4f063e(0x119)](e[_0x4f063e(0x139)]);if(!_0x233c17)throw Error(_0x4f063e(0x324));let _0x27b556=_0x233c17[_0x4f063e(0x20d)](_0x552453);if(!_0x27b556)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x388622=new r[(_0x4f063e(0x3de))](),_0x16bbf7=new t[(_0x4f063e(0x1a3))]();_0x388622['add'](_0x27b556[_0x4f063e(0x23e)][_0x4f063e(0x2ad)](_0x2b5dc1=>_0x16bbf7[_0x4f063e(0x33a)](_0x2b5dc1))),_0x388622[_0x4f063e(0x467)]((0x0,r[_0x4f063e(0x368)])(()=>_0x16bbf7[_0x4f063e(0x10e)]()));let _0x12d413=new t['Subject']();_0x388622[_0x4f063e(0x467)](_0x27b556[_0x4f063e(0x115)][_0x4f063e(0x2ad)](_0x2e28f6=>_0x12d413[_0x4f063e(0x33a)](_0x2e28f6))),_0x388622[_0x4f063e(0x467)]((0x0,r[_0x4f063e(0x368)])(()=>_0x12d413[_0x4f063e(0x10e)]()));let _0x2447fd=new t[(_0x4f063e(0x1a3))]();_0x388622[_0x4f063e(0x467)](_0x27b556[_0x4f063e(0x30d)][_0x4f063e(0x2ad)](_0x43aa86=>{const _0x2fb304=_0x4f063e;let _0x3bed16=Ke(_0x43aa86);_0x2447fd[_0x2fb304(0x33a)](_0x3bed16);})),_0x388622[_0x4f063e(0x467)]((0x0,r[_0x4f063e(0x368)])(()=>_0x2447fd['complete']()));let _0x1949f4,_0x41a6aa=()=>{const _0xdbc84f=_0x4f063e;_0x12d413[_0xdbc84f(0x33a)](new Event('connection\x20error')),_0x16bbf7[_0xdbc84f(0x33a)](new Event(_0xdbc84f(0x1af))),_0x1949f4[_0xdbc84f(0x45c)]();};return _0x1949f4={'memberID':'','close$':_0x16bbf7[_0x4f063e(0x40b)](),'error$':_0x12d413['asObservable'](),'open$':_0x27b556[_0x4f063e(0xee)],'message$':_0x2447fd[_0x4f063e(0x40b)](),'send':(_0x26f053,_0x4dda32)=>{const _0x54c80f=_0x4f063e;if(_0x26f053[_0x54c80f(0x1e9)]===o[_0x54c80f(0x162)]['INGEST']){if(_0x26f053[_0x54c80f(0x34b)][_0x54c80f(0x1e5)]===n[_0x54c80f(0x1be)][_0x54c80f(0x47b)]){let _0x215b88=this[_0x54c80f(0x256)](_0x1949f4,_0x26f053['data'],(_0x4dda32==null?void 0x0:_0x4dda32[_0x54c80f(0x1bf)])??0x1d4c0);return _0x215b88[_0x54c80f(0x48d)](()=>void 0x0),_0x215b88;}if(_0x26f053[_0x54c80f(0x34b)][_0x54c80f(0x1e5)]===n[_0x54c80f(0x1be)][_0x54c80f(0x3d4)]){let _0xcb2afb=_0x26f053[_0x54c80f(0x34b)];this[_0x54c80f(0x159)](_0xcb2afb)['then'](_0x58c4fa=>{const _0x2074fc=_0x54c80f;_0x2447fd[_0x2074fc(0x33a)]({'cmd':o[_0x2074fc(0x162)][_0x2074fc(0x2d4)],'code':o[_0x2074fc(0x2c9)]['OK'],'routeKey':_0xcb2afb['data'][_0x2074fc(0x29f)],'routeType':'','data':{'eventID':n[_0x2074fc(0x1be)][_0x2074fc(0x2c6)],'data':{'changesets':_0x58c4fa}}});})[_0x54c80f(0x48d)](_0x1ed40e=>{const _0x12526d=_0x54c80f;this[_0x12526d(0x2bc)]['error'](_0x1ed40e),_0x41a6aa();});return;}}_0x27b556[_0x54c80f(0x153)](qe(_0x26f053));},'close':()=>{const _0x5b4dbe=_0x4f063e;_0x27b556[_0x5b4dbe(0x45c)](),_0x388622[_0x5b4dbe(0x3cc)]();}},_0x1949f4;}[_0x3bc608(0x256)](_0x2a3fda,_0x1c47ef,_0xbf55a3){const _0x2ab244=_0x3bc608;let {unitType:_0x4bfb8f,unitID:_0x2705be,changeset:_0x3f2c6c}=_0x1c47ef[_0x2ab244(0x34b)],_0x3bd084={'unitID':_0x2705be,'memberID':_0x2a3fda[_0x2ab244(0x28c)],'type':_0x4bfb8f,'changeset':(0x0,n[_0x2ab244(0x17f)])(_0x3f2c6c)},_0x391fb1=this[_0x2ab244(0x430)]['getConfig'](m),_0x3244b1=Ye((_0x391fb1==null?void 0x0:_0x391fb1[_0x2ab244(0x40d)])??_0x2ab244(0x291),_0x4bfb8f,_0x2705be);return(0x0,t['firstValueFrom'])(this[_0x2ab244(0x499)][_0x2ab244(0x3cb)](_0x2ab244(0x31a),_0x3244b1,{'body':_0x3bd084})[_0x2ab244(0x1d6)]((0x0,t[_0x2ab244(0x43f)])(_0x1acb07=>_0x1acb07['type']===e[_0x2ab244(0x3f4)]['Response']),(0x0,t[_0x2ab244(0x1bf)])(_0xbf55a3)))[_0x2ab244(0x259)](()=>void 0x0,_0x5965bd=>{const _0x1544fc=_0x2ab244;throw this[_0x1544fc(0x2bc)]['warn']('[CollaborationSocketService]','submitting\x20changeset\x20'+_0x3f2c6c[_0x1544fc(0xfe)]+':'+_0x3f2c6c[_0x1544fc(0x198)]+_0x1544fc(0x369)+Ze(_0x5965bd)),_0x5965bd;});}async[_0x3bc608(0x159)](_0x313d9e){const _0x4c9990=_0x3bc608;let {unitID:_0x2dfb6c,from:_0x4c4395,to:_0x292062,unitType:_0xaef858}=_0x313d9e[_0x4c9990(0x34b)];return(await this['_snapshotServerService'][_0x4c9990(0x366)]({'metadata':void 0x0},{'unitID':_0x2dfb6c,'type':_0xaef858,'from':_0x4c4395,'to':_0x292062}))['changesets'][_0x4c9990(0x222)](_0x56b88f=>((_0x56b88f[_0x4c9990(0x29d)]===null||_0x56b88f[_0x4c9990(0x29d)]===void 0x0)&&(_0x56b88f['mutations']=[]),_0x56b88f));}};Xe=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x1,(0x0,r['Inject'])(e[_0x3bc608(0xff)])),y(0x2,r[_0x3bc608(0x190)]),y(0x3,r['ILogService']),y(0x4,n['ISnapshotServerService'])],Xe);function Ze(_0x8b4cf7){const _0x264218=_0x3bc608;return _0x8b4cf7 instanceof e[_0x264218(0x19b)]?'HTTP\x20'+(_0x8b4cf7['status']??0x0):_0x8b4cf7 instanceof Error?_0x8b4cf7[_0x264218(0x142)]:String(_0x8b4cf7);}const Qe=(0x0,r[_0x3bc608(0x2e1)])(_0x3bc608(0x25a));function $e(_0x3150dd={}){const _0x7fd797=_0x3bc608;return _0x3150dd['resolveUnit']?{'resolveUnit':_0x3150dd['resolveUnit']}:{'resolveUnit':_0x273cfd=>({'target':{'unitId':_0x273cfd[_0x7fd797(0x3dc)],'unitType':_0x273cfd[_0x7fd797(0x1b8)]}})};}function et(_0x1a7b75,_0x3639af,_0xce094){const _0x36f433=_0x3bc608;let _0x7062b4=_0xce094['target'][_0x36f433(0x295)];if(_0x7062b4!=null&&_0x7062b4['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0xce094['target'][_0x36f433(0x3dc)])throw Error(_0x36f433(0x2e9));return{'localUnitId':_0x1a7b75,'unitType':_0x3639af,'target':{'endpoint':_0x7062b4,'unitId':_0xce094['target'][_0x36f433(0x3dc)],'unitType':_0xce094[_0x36f433(0x1f4)]['unitType']??_0x3639af},'changeset':_0xce094[_0x36f433(0x167)]};}let U=class extends r['Disposable']{constructor(_0x5eae7e,_0x4e2e5f,_0x123a1b,_0x2b69d1,_0x38c69b,_0x521063){const _0x420a58=_0x3bc608;super(),this[_0x420a58(0x1aa)]=_0x5eae7e,this[_0x420a58(0x2bc)]=_0x4e2e5f,this[_0x420a58(0x430)]=_0x123a1b,this[_0x420a58(0x466)]=_0x2b69d1,this[_0x420a58(0x1fe)]=_0x38c69b,this['_adapter']=_0x521063,_(this,_0x420a58(0x24d),new Map()),_(this,_0x420a58(0x20a),new Map()),_(this,'_sessionChannels',new Map()),_(this,_0x420a58(0x3b3),new Map()),_(this,_0x420a58(0x2b8),void 0x0),_(this,'socket$',this['_getSocketChannel'](void 0x0)[_0x420a58(0x180)][_0x420a58(0x40b)]()),_(this,_0x420a58(0x14f),new t[(_0x420a58(0x249))](0x0)),_(this,_0x420a58(0x21b),this[_0x420a58(0x14f)][_0x420a58(0x40b)]());}[_0x3bc608(0x3f1)](){const _0xb83801=_0x3bc608;this[_0xb83801(0x2b8)]||(this[_0xb83801(0x2b8)]=this[_0xb83801(0x1aa)][_0xb83801(0x119)](Ge,r['Quantity']['OPTIONAL'])??void 0x0,this[_0xb83801(0x2b8)]&&this[_0xb83801(0x24c)](this[_0xb83801(0x2b8)][_0xb83801(0x33c)][_0xb83801(0x2ad)](_0x23efe2=>{const _0xdc040e=_0xb83801;_0x23efe2&&this[_0xdc040e(0x1e3)](),_0x23efe2||this[_0xdc040e(0x3b3)][_0xdc040e(0x103)](_0x2e5882=>this[_0xdc040e(0x420)](_0x2e5882));})));}[_0x3bc608(0x3cc)](){const _0x367e49=_0x3bc608;super[_0x367e49(0x3cc)](),this[_0x367e49(0x3b3)][_0x367e49(0x103)](_0x5a15a7=>{const _0x2dddfa=_0x367e49;var _0x414ede,_0x3f939a,_0x3005a6;(_0x414ede=_0x5a15a7[_0x2dddfa(0x1e4)])==null||_0x414ede['unsubscribe'](),_0x5a15a7[_0x2dddfa(0x1e4)]=null,this[_0x2dddfa(0x1c1)](_0x5a15a7),this[_0x2dddfa(0x281)](_0x5a15a7),this[_0x2dddfa(0x17a)](_0x5a15a7),this['_clearHeartbeatTimer'](_0x5a15a7),(_0x3f939a=_0x5a15a7[_0x2dddfa(0x180)][_0x2dddfa(0x39a)]())==null||_0x3f939a[_0x2dddfa(0x45c)](),(_0x3005a6=_0x5a15a7['candidateSocket'])==null||_0x3005a6[_0x2dddfa(0x45c)](),_0x5a15a7[_0x2dddfa(0x180)][_0x2dddfa(0x10e)]();}),this[_0x367e49(0x3b3)][_0x367e49(0x3ca)](),this[_0x367e49(0x24d)]['forEach'](_0x1a0afb=>_0x1a0afb[_0x367e49(0x3cc)]()),this[_0x367e49(0x24d)]['clear'](),this[_0x367e49(0x131)][_0x367e49(0x3ca)](),this['_status$'][_0x367e49(0x10e)]();}async[_0x3bc608(0x303)](_0x4fdf66,_0x3be25c){const _0x4dc523=_0x3bc608;if(this[_0x4dc523(0x3f1)](),this[_0x4dc523(0x24d)]['has'](_0x4fdf66))return this[_0x4dc523(0x24d)][_0x4dc523(0x119)](_0x4fdf66);let _0x6df233=this['_pendingSessions'][_0x4dc523(0x119)](_0x4fdf66);if(_0x6df233)return _0x6df233;let _0x27707e=this['_createSession'](_0x4fdf66,_0x3be25c);this['_pendingSessions']['set'](_0x4fdf66,_0x27707e);try{return await _0x27707e;}finally{this['_pendingSessions']['delete'](_0x4fdf66);}}async['_createSession'](_0x4c8a1e,_0x156149){const _0x511a58=_0x3bc608;let _0x554346=await this[_0x511a58(0x1de)](_0x4c8a1e,_0x156149),_0x47d154=this['_getSocketChannel'](_0x554346[_0x511a58(0x1f4)][_0x511a58(0x295)]);this[_0x511a58(0x30f)](_0x47d154);let _0xcc221d=this['_injector']['createInstance'](S,_0x554346,_0x47d154[_0x511a58(0x180)][_0x511a58(0x40b)]());return this[_0x511a58(0x24d)][_0x511a58(0x122)](_0x4c8a1e,_0xcc221d),this[_0x511a58(0x131)][_0x511a58(0x122)](_0x4c8a1e,_0x47d154[_0x511a58(0x394)]),_0xcc221d;}[_0x3bc608(0x12e)](_0x43de8e){const _0x100029=_0x3bc608;let _0xecefb3=this[_0x100029(0x24d)][_0x100029(0x119)](_0x43de8e),_0x1e599b=this[_0x100029(0x131)][_0x100029(0x119)](_0x43de8e);if(_0xecefb3&&(this[_0x100029(0x24d)][_0x100029(0x3a1)](_0x43de8e),this[_0x100029(0x131)][_0x100029(0x3a1)](_0x43de8e),_0xecefb3['close']()),_0x1e599b!==void 0x0&&!this[_0x100029(0x2e3)](_0x1e599b)){let _0x1b550b=this[_0x100029(0x3b3)][_0x100029(0x119)](_0x1e599b);_0x1b550b&&this[_0x100029(0x420)](_0x1b550b);}}[_0x3bc608(0x1e3)](){const _0x4621ec=_0x3bc608;(this[_0x4621ec(0x3b3)][_0x4621ec(0x476)]?[...this['_socketChannels'][_0x4621ec(0x220)]()]:[this[_0x4621ec(0x16c)](void 0x0)])[_0x4621ec(0x103)](_0x3d4ba7=>{const _0x13084e=_0x4621ec;!this[_0x13084e(0x2e3)](_0x3d4ba7[_0x13084e(0x394)])||_0x3d4ba7['socketReady']||_0x3d4ba7[_0x13084e(0x105)]||_0x3d4ba7['connectionAttempt']||(_0x3d4ba7[_0x13084e(0x2fb)]=0x0,this[_0x13084e(0x281)](_0x3d4ba7),this[_0x13084e(0x456)](_0x3d4ba7));});}[_0x3bc608(0x281)](_0x15f85b){const _0x4ad3e3=_0x3bc608;_0x15f85b[_0x4ad3e3(0x309)]!=null&&(clearTimeout(_0x15f85b[_0x4ad3e3(0x309)]),_0x15f85b[_0x4ad3e3(0x309)]=null);}[_0x3bc608(0x191)](_0xbb1d0){const _0x40891a=_0x3bc608;let _0x32e885=this[_0x40891a(0x430)][_0x40891a(0x2de)](m),_0x18786f=_0xbb1d0[_0x40891a(0x295)]??(_0x32e885==null?void 0x0:_0x32e885[_0x40891a(0x2b6)])??'ws://127.0.0.1:8000/universer-api/comb/connect';return this[_0x40891a(0x466)][_0x40891a(0x20d)](_0x18786f);}async[_0x3bc608(0x30f)](_0x21b534){const _0x38bde0=_0x3bc608;var _0x1239c7;if(this[_0x38bde0(0x14d)]||((_0x1239c7=this['_networkConditionService'])==null?void 0x0:_0x1239c7[_0x38bde0(0x27b)])===!0x1||_0x21b534[_0x38bde0(0x16b)]||_0x21b534[_0x38bde0(0x105)]||_0x21b534[_0x38bde0(0x2e4)])return;let _0x32fd16={};_0x21b534[_0x38bde0(0x2e4)]=_0x32fd16;try{let _0x562962=await this['_createSocket'](_0x21b534);if(this[_0x38bde0(0x14d)]||_0x21b534[_0x38bde0(0x2e4)]!==_0x32fd16){_0x562962==null||_0x562962[_0x38bde0(0x45c)]();return;}if(_0x562962){var _0xe03267;_0x21b534[_0x38bde0(0x105)]=_0x562962,_0x21b534['handshakeTimer']=setTimeout(()=>{const _0x340799=_0x38bde0;!this[_0x340799(0x14d)]&&_0x21b534[_0x340799(0x105)]===_0x562962&&this[_0x340799(0x2d9)](_0x21b534);},0x4e20);let _0x372b28=_0x562962[_0x38bde0(0x153)];_0x562962[_0x38bde0(0x153)]=(_0x494f74,_0x4a36be)=>{const _0x4cb1dc=_0x38bde0;_0x494f74[_0x4cb1dc(0x1e9)]!==o[_0x4cb1dc(0x162)][_0x4cb1dc(0x37e)]&&!tt(_0x494f74)&&_0x21b534[_0x4cb1dc(0x16b)]&&_0x21b534[_0x4cb1dc(0x180)][_0x4cb1dc(0x39a)]()===_0x562962&&this[_0x4cb1dc(0x243)](_0x21b534);let _0x2a4481=_0x4a36be===void 0x0?_0x372b28[_0x4cb1dc(0x1e2)](_0x562962,_0x494f74):_0x372b28['call'](_0x562962,_0x494f74,_0x4a36be);return _0x2a4481 instanceof Promise&&_0x2a4481['catch'](_0x313381=>{const _0x4b9b87=_0x4cb1dc;nt(_0x313381)&&_0x21b534[_0x4b9b87(0x180)][_0x4b9b87(0x39a)]()===_0x562962&&this['_onLicenseRejected'](_0x21b534);}),_0x2a4481;},(_0xe03267=_0x21b534[_0x38bde0(0x1e4)])==null||_0xe03267[_0x38bde0(0x2e2)]();let _0x4fd32a=new t[(_0x38bde0(0x132))]();_0x21b534[_0x38bde0(0x1e4)]=_0x4fd32a,_0x4fd32a[_0x38bde0(0x467)](_0x562962['message$']['subscribe'](_0x4e3ea0=>this['_onMessage'](_0x21b534,_0x562962,_0x4e3ea0))),_0x4fd32a['add'](_0x562962[_0x38bde0(0x115)][_0x38bde0(0x1d6)]((0x0,c['take'])(0x1))[_0x38bde0(0x2ad)](_0x625c20=>this['_logService'][_0x38bde0(0x3a2)]('[CollaborationSessionService]:\x20socket\x20error',_0x625c20))),_0x4fd32a[_0x38bde0(0x467)](_0x562962[_0x38bde0(0xee)]['pipe']((0x0,c['take'])(0x1))['subscribe'](()=>{const _0xca4f5e=_0x38bde0;this[_0xca4f5e(0x183)](_0x21b534,_0x562962);})),_0x4fd32a[_0x38bde0(0x467)](_0x562962[_0x38bde0(0x23e)][_0x38bde0(0x1d6)]((0x0,c['take'])(0x1))['subscribe'](_0x5104c8=>{const _0x239276=_0x38bde0;(_0x21b534[_0x239276(0x105)]===_0x562962||_0x21b534['socket$'][_0x239276(0x39a)]()===_0x562962)&&(this['_logService'][_0x239276(0x3eb)](_0x239276(0x48a),_0x239276(0x130),_0x5104c8),this[_0x239276(0x2d9)](_0x21b534));}));}}catch(_0xaf68e5){if(_0x21b534[_0x38bde0(0x2e4)]!==_0x32fd16)return;if(nt(_0xaf68e5)){this['_onLicenseRejected'](_0x21b534);return;}this['_logService'][_0x38bde0(0x3a2)](_0xaf68e5),this[_0x38bde0(0x2d9)](_0x21b534);}finally{_0x21b534[_0x38bde0(0x2e4)]===_0x32fd16&&(_0x21b534[_0x38bde0(0x2e4)]=null);}}[_0x3bc608(0x183)](_0x398e0a,_0x5ee960){const _0x4dc314=_0x3bc608;this[_0x4dc314(0x14d)]||_0x398e0a[_0x4dc314(0x105)]!==_0x5ee960||(this[_0x4dc314(0x2bc)][_0x4dc314(0x3eb)](_0x4dc314(0x48a),'socket\x20open.'),_0x5ee960[_0x4dc314(0x153)]({'cmd':o[_0x4dc314(0x162)][_0x4dc314(0x454)]}));}[_0x3bc608(0x420)](_0x1f062f){const _0x5d7fb6=_0x3bc608;var _0x48d908;let _0x56e956=_0x1f062f['socket$']['getValue']()??_0x1f062f[_0x5d7fb6(0x105)];_0x1f062f['connectionAttempt']=null,_0x1f062f['socketReady']=!0x1,_0x1f062f[_0x5d7fb6(0x105)]=null,(_0x48d908=_0x1f062f[_0x5d7fb6(0x1e4)])==null||_0x48d908[_0x5d7fb6(0x2e2)](),_0x1f062f['socketSubscription']=null,this[_0x5d7fb6(0x14f)][_0x5d7fb6(0x33a)](0x2),_0x1f062f[_0x5d7fb6(0x180)]['next'](null),this['_clearRetryConnectingTimer'](_0x1f062f),this[_0x5d7fb6(0x1c1)](_0x1f062f),this['_clearTimeoutTimer'](_0x1f062f),this[_0x5d7fb6(0x42f)](_0x1f062f),_0x56e956==null||_0x56e956[_0x5d7fb6(0x45c)]();}[_0x3bc608(0x47f)](_0x919703){const _0x21db7b=_0x3bc608;this[_0x21db7b(0x420)](_0x919703),this[_0x21db7b(0x1fe)]['emitEvent']({'id':_0x21db7b(0x367)});}[_0x3bc608(0x2d9)](_0x51a6f1){const _0x3d8b9f=_0x3bc608;var _0x44b807;this[_0x3d8b9f(0x420)](_0x51a6f1),!this[_0x3d8b9f(0x14d)]&&((_0x44b807=this[_0x3d8b9f(0x2b8)])==null?void 0x0:_0x44b807[_0x3d8b9f(0x27b)])!==!0x1&&this[_0x3d8b9f(0x2e3)](_0x51a6f1[_0x3d8b9f(0x394)])&&(_0x51a6f1[_0x3d8b9f(0x2fb)]<(this[_0x3d8b9f(0x430)][_0x3d8b9f(0x2de)](_0x3d8b9f(0x3d0))??0x3)?(this[_0x3d8b9f(0x1fe)]['emitEvent']({'id':_0x3d8b9f(0x471)}),this[_0x3d8b9f(0x456)](_0x51a6f1)):this['_collaborationUIEventService'][_0x3d8b9f(0x2d0)]({'id':_0x3d8b9f(0x125)}));}[_0x3bc608(0x456)](_0x3b8e48){const _0x54cc30=_0x3bc608;let _0x5c54cc=_0x3b8e48[_0x54cc30(0x2fb)],_0x27355d=this[_0x54cc30(0x430)][_0x54cc30(0x2de)](m),_0xde770a=_0x5c54cc===0x0?0x0:((_0x27355d==null?void 0x0:_0x27355d[_0x54cc30(0x192)])??0x4e20)*0x2**_0x5c54cc;_0x3b8e48[_0x54cc30(0x309)]=setTimeout(()=>{const _0x32c4ca=_0x54cc30;clearTimeout(_0x3b8e48[_0x32c4ca(0x309)]),_0x3b8e48[_0x32c4ca(0x309)]=null,this[_0x32c4ca(0x30f)](_0x3b8e48);},_0xde770a),_0x3b8e48['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x37fcb0,_0x10e606){const _0x204352=_0x3bc608;return et(_0x37fcb0,_0x10e606,await this[_0x204352(0x320)][_0x204352(0x273)]({'unitId':_0x37fcb0,'unitType':_0x10e606}));}[_0x3bc608(0x37d)](_0x3f0f08,_0x2a8c22,_0x27ee36){const _0x17f87b=_0x3bc608;if(this[_0x17f87b(0x14d)]||_0x3f0f08['candidateSocket']!==_0x2a8c22&&_0x3f0f08[_0x17f87b(0x180)][_0x17f87b(0x39a)]()!==_0x2a8c22)return;let {cmd:_0x5d915d}=_0x27ee36;if(_0x5d915d===o[_0x17f87b(0x162)][_0x17f87b(0x454)]&&!_0x3f0f08[_0x17f87b(0x16b)]){var _0x317c82;if((_0x27ee36[_0x17f87b(0x3e2)]??o['CmdRspCode']['OK'])!==o['CmdRspCode']['OK']||!((_0x317c82=_0x27ee36[_0x17f87b(0x34b)])!=null&&_0x317c82[_0x17f87b(0x28c)])){this[_0x17f87b(0x2d9)](_0x3f0f08);return;}this[_0x17f87b(0x1c1)](_0x3f0f08),_0x2a8c22['memberID']=_0x27ee36[_0x17f87b(0x34b)][_0x17f87b(0x28c)],_0x3f0f08['retryCount']=0x0,_0x3f0f08['socketReady']=!0x0,_0x3f0f08[_0x17f87b(0x105)]=null,_0x3f0f08[_0x17f87b(0x180)][_0x17f87b(0x33a)](_0x2a8c22),this[_0x17f87b(0x14f)][_0x17f87b(0x33a)](0x3);}_0x5d915d===o[_0x17f87b(0x162)][_0x17f87b(0x228)]&&this[_0x17f87b(0x17a)](_0x3f0f08),this['_rescheduleHeartbeat'](_0x3f0f08);}[_0x3bc608(0x2e3)](_0x5b2a6a){const _0x2f896e=_0x3bc608;return[...this[_0x2f896e(0x131)][_0x2f896e(0x220)]()]['some'](_0x1caae6=>_0x1caae6===_0x5b2a6a);}[_0x3bc608(0x16c)](_0xc75d38){const _0x3ceba1=_0x3bc608;let _0x351ed2=_0xc75d38??'',_0x52ba3a=this[_0x3ceba1(0x3b3)][_0x3ceba1(0x119)](_0x351ed2);if(_0x52ba3a)return _0x52ba3a;let _0x2d766b={'endpointKey':_0x351ed2,'endpoint':_0xc75d38,'socket$':new t[(_0x3ceba1(0x249))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x3ceba1(0x122)](_0x351ed2,_0x2d766b),_0x2d766b;}[_0x3bc608(0x1c1)](_0x56ec92){const _0x57fbb6=_0x3bc608;_0x56ec92[_0x57fbb6(0xf5)]!=null&&(clearTimeout(_0x56ec92[_0x57fbb6(0xf5)]),_0x56ec92[_0x57fbb6(0xf5)]=null);}['_rescheduleHeartbeat'](_0x2b615e){const _0x199fa1=_0x3bc608;this[_0x199fa1(0x42f)](_0x2b615e),_0x2b615e['socketReady']&&(_0x2b615e[_0x199fa1(0x277)]=setTimeout(()=>this[_0x199fa1(0x2e7)](_0x2b615e),this[_0x199fa1(0x430)]['getConfig']('HEARTBEAT_INTERVAL')??0x7530));}[_0x3bc608(0x2e7)](_0x4cff29){const _0x8feda0=_0x3bc608;let _0x1496e0=_0x4cff29['socket$']['getValue']();_0x4cff29[_0x8feda0(0x16b)]&&_0x1496e0&&(_0x1496e0[_0x8feda0(0x153)]({'cmd':o[_0x8feda0(0x162)][_0x8feda0(0x228)]}),this[_0x8feda0(0x3b5)](_0x4cff29));}['_waitForHeartbeatResponse'](_0x3f0d4a){const _0x2004dc=_0x3bc608;_0x3f0d4a[_0x2004dc(0x35d)]=setTimeout(()=>this['_onConnectionFailed'](_0x3f0d4a),this[_0x2004dc(0x430)]['getConfig'](_0x2004dc(0x460))??0x4e20);}[_0x3bc608(0x42f)](_0x55d62c){const _0x42179c=_0x3bc608;_0x55d62c[_0x42179c(0x277)]!=null&&(clearTimeout(_0x55d62c[_0x42179c(0x277)]),_0x55d62c[_0x42179c(0x277)]=null);}[_0x3bc608(0x17a)](_0x42f84e){const _0xe055d8=_0x3bc608;_0x42f84e[_0xe055d8(0x35d)]!=null&&(clearTimeout(_0x42f84e[_0xe055d8(0x35d)]),_0x42f84e['timeoutTimer']=null);}};U=b([y(0x0,(0x0,r['Inject'])(r[_0x3bc608(0x3c2)])),y(0x1,r['ILogService']),y(0x2,r[_0x3bc608(0x190)]),y(0x3,Je),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x5,Qe)],U);function tt(_0x3e8843){const _0x1b08c4=_0x3bc608;if(_0x3e8843[_0x1b08c4(0x1e9)]!==o['CombCmd'][_0x1b08c4(0x496)])return!0x1;let _0x6bde=_0x3e8843[_0x1b08c4(0x34b)][_0x1b08c4(0x1e5)];return _0x6bde===n[_0x1b08c4(0x1be)][_0x1b08c4(0x47b)]||_0x6bde===n[_0x1b08c4(0x1be)][_0x1b08c4(0x3d4)];}function nt(_0x52f37d){const _0x53d741=_0x3bc608;var _0x3a2de2;if(!(_0x52f37d instanceof e[_0x53d741(0x19b)])||_0x52f37d[_0x53d741(0x1eb)]!==0x193)return!0x1;let _0x595086=_0x52f37d[_0x53d741(0x3a2)];return(_0x595086==null||(_0x3a2de2=_0x595086[_0x53d741(0x3a2)])==null?void 0x0:_0x3a2de2['code'])===o[_0x53d741(0x43c)][_0x53d741(0x367)];}let W=class extends r['RxDisposable']{constructor(_0x10a4c2,_0x1c9e66,_0x517c74,_0xa70e72){const _0xac7ca2=_0x3bc608;var _0x4406ad;super(),this['_injector']=_0x10a4c2,this[_0xac7ca2(0x267)]=_0x1c9e66,this[_0xac7ca2(0x430)]=_0x517c74,this[_0xac7ca2(0x414)]=_0xa70e72,_(this,_0xac7ca2(0x201),new Map()),_(this,_0xac7ca2(0x1fa),new t[(_0xac7ca2(0x1a3))]()),_(this,'entityInit$',this['_entityInit$'][_0xac7ca2(0x40b)]()),((_0x4406ad=this[_0xac7ca2(0x430)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x4406ad['enableCollaboration'])!==!0x1&&this[_0xac7ca2(0x186)]();}[_0x3bc608(0x3cc)](){const _0x1a3370=_0x3bc608;super[_0x1a3370(0x3cc)](),this[_0x1a3370(0x201)][_0x1a3370(0x103)](_0x59d95f=>_0x59d95f[_0x1a3370(0x3cc)]()),this['_entities'][_0x1a3370(0x3ca)]();}[_0x3bc608(0x481)](_0x1006b2){const _0x197cf3=_0x3bc608;return this['_entities'][_0x197cf3(0x119)](_0x1006b2)??null;}[_0x3bc608(0x102)](){const _0x4d9149=_0x3bc608;return Array[_0x4d9149(0x32f)](this[_0x4d9149(0x201)][_0x4d9149(0x220)]());}['getCollabEntity$'](_0xe6af25){const _0x4fac16=_0x3bc608;let _0x31c850=this[_0x4fac16(0x481)](_0xe6af25);return _0x31c850?(0x0,t['of'])(_0x31c850):this[_0x4fac16(0x1fa)][_0x4fac16(0x1d6)]((0x0,c[_0x4fac16(0x43f)])(_0xbb6ac4=>_0xbb6ac4[_0x4fac16(0x29f)]===_0xe6af25));}[_0x3bc608(0x135)](_0x17b2e0){const _0x1758ac=_0x3bc608;return(0x0,t[_0x1758ac(0x235)])(this[_0x1758ac(0x137)](_0x17b2e0)['pipe']((0x0,c[_0x1758ac(0x222)])(()=>void 0x0)));}['hasWritePending'](_0x4e9a4b){const _0x27e995=_0x3bc608;if(_0x4e9a4b!==void 0x0){var _0x4cbb08;return((_0x4cbb08=this[_0x27e995(0x201)][_0x27e995(0x119)](_0x4e9a4b))==null?void 0x0:_0x4cbb08[_0x27e995(0x28a)]())??!0x1;}for(let _0x195e43 of this[_0x27e995(0x201)][_0x27e995(0x220)]())if(_0x195e43['hasWritePending']())return!0x0;return!0x1;}['_init'](){const _0x1ecbbd=_0x3bc608;this[_0x1ecbbd(0x414)]['getTypeOfUnitAdded$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0xf2)])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0x45e6c4=>{const _0x48c7c1=_0x1ecbbd;let _0x52d033=_0x45e6c4[_0x48c7c1(0x307)][_0x48c7c1(0x363)](),_0x26f879=await this[_0x48c7c1(0x45e)](_0x52d033,r[_0x48c7c1(0x403)][_0x48c7c1(0xf2)]);this[_0x48c7c1(0x201)]['set'](_0x52d033,_0x26f879);}),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x2f6)](r['UniverInstanceType'][_0x1ecbbd(0x2c2)])['pipe']((0x0,t[_0x1ecbbd(0x3bb)])(this['dispose$']),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x1d6)]((0x0,c[_0x1ecbbd(0x43f)])(_0x20eb1d=>!_0x20eb1d[_0x1ecbbd(0x307)]['getUnitId']()[_0x1ecbbd(0x43b)]('__')))[_0x1ecbbd(0x2ad)](async _0x52344c=>{const _0x4e2afc=_0x1ecbbd;let _0x2de732=_0x52344c['unit']['getUnitId'](),_0xd1e41f=await this[_0x4e2afc(0x45e)](_0x2de732,r[_0x4e2afc(0x403)]['UNIVER_DOC']);this[_0x4e2afc(0x201)][_0x4e2afc(0x122)](_0x2de732,_0xd1e41f);}),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x2f6)](r[_0x1ecbbd(0x403)]['UNIVER_SLIDE'])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0x3f0b71=>{const _0x41f2f1=_0x1ecbbd;let _0x2b049b=_0x3f0b71[_0x41f2f1(0x307)]['getUnitId'](),_0x4d637d=await this[_0x41f2f1(0x45e)](_0x2b049b,r[_0x41f2f1(0x403)][_0x41f2f1(0x1ab)]);this[_0x41f2f1(0x201)][_0x41f2f1(0x122)](_0x2b049b,_0x4d637d);}),this[_0x1ecbbd(0x414)]['getTypeOfUnitAdded$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x398)])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this['dispose$']),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0xb1599d=>{const _0x5e8a06=_0x1ecbbd;let _0x41a719=_0xb1599d[_0x5e8a06(0x307)]['getUnitId'](),_0x5675c2=await this[_0x5e8a06(0x45e)](_0x41a719,r[_0x5e8a06(0x403)][_0x5e8a06(0x398)]);this[_0x5e8a06(0x201)]['set'](_0x41a719,_0x5675c2);}),this[_0x1ecbbd(0x414)]['getTypeOfUnitAdded$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x2c4)])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))['subscribe'](async _0x5bea02=>{const _0x18990a=_0x1ecbbd;let _0x21944c=_0x5bea02['unit'][_0x18990a(0x363)](),_0x419d95=await this[_0x18990a(0x45e)](_0x21944c,r[_0x18990a(0x403)][_0x18990a(0x2c4)]);this[_0x18990a(0x201)][_0x18990a(0x122)](_0x21944c,_0x419d95);}),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x2f6)](r[_0x1ecbbd(0x403)]['UNIVER_PDF'])['pipe']((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0x49e4df=>{const _0x57606f=_0x1ecbbd;let _0x598f1a=_0x49e4df[_0x57606f(0x307)]['getUnitId'](),_0x42f51e=await this['_startCollaboration'](_0x598f1a,r[_0x57606f(0x403)]['UNIVER_PDF']);this[_0x57606f(0x201)][_0x57606f(0x122)](_0x598f1a,_0x42f51e);}),(0x0,t[_0x1ecbbd(0x22a)])(this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r[_0x1ecbbd(0x403)]['UNIVER_SHEET']),this[_0x1ecbbd(0x414)]['getTypeOfUnitDisposed$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x2c2)]),this['_univerInstanceService'][_0x1ecbbd(0x343)](r['UniverInstanceType'][_0x1ecbbd(0x1ab)]),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x398)]),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x2c4)]),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r['UniverInstanceType'][_0x1ecbbd(0x326)]))['pipe']((0x0,t[_0x1ecbbd(0x3bb)])(this['dispose$']))[_0x1ecbbd(0x2ad)](_0x4005da=>{const _0x1c3435=_0x1ecbbd;let _0x1599c6=_0x4005da[_0x1c3435(0x363)](),_0x3e5d5c=this['_entities'][_0x1c3435(0x119)](_0x1599c6);_0x3e5d5c&&(_0x3e5d5c[_0x1c3435(0x3cc)](),this[_0x1c3435(0x201)][_0x1c3435(0x3a1)](_0x1599c6));});}async['_startCollaboration'](_0x135a2f,_0xc83675){const _0x370c56=_0x3bc608;let _0x4a3723=await this[_0x370c56(0x267)][_0x370c56(0x303)](_0x135a2f),_0x1a3bad=this['_injector'][_0x370c56(0x169)](this[_0x370c56(0x24a)](_0xc83675),_0x135a2f,_0xc83675,_0x4a3723);return await _0x1a3bad[_0x370c56(0x17e)](),this['_entityInit$'][_0x370c56(0x33a)](_0x1a3bad),_0x1a3bad;}['_getCtorByUniverInstanceType'](_0x56a371){const _0x4a37bf=_0x3bc608;switch(_0x56a371){case r[_0x4a37bf(0x403)]['UNIVER_DOC']:return L;case r[_0x4a37bf(0x403)][_0x4a37bf(0xf2)]:return z;case r['UniverInstanceType'][_0x4a37bf(0x1ab)]:return B;case r[_0x4a37bf(0x403)]['UNIVER_BOARD']:return V;case r[_0x4a37bf(0x403)][_0x4a37bf(0x2c4)]:return R;case r[_0x4a37bf(0x403)]['UNIVER_PDF']:return H;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x56a371);}}};W=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(U)),y(0x2,r['IConfigService']),y(0x3,r[_0x3bc608(0x260)])],W);var rt='@univerjs-pro/collaboration-client',it='1.3.0';let at=class extends r[_0x3bc608(0x358)]{constructor(_0x42f10a,_0x4a7168){const _0x5232b6=_0x3bc608;super(),this[_0x5232b6(0x414)]=_0x42f10a,this[_0x5232b6(0x430)]=_0x4a7168,this[_0x5232b6(0x186)]();}[_0x3bc608(0x186)](){const _0x17dc29=_0x3bc608;this[_0x17dc29(0x24c)](this[_0x17dc29(0x414)][_0x17dc29(0x377)]['subscribe'](()=>{const _0x486894=_0x17dc29;let _0x3331a0=this[_0x486894(0x414)][_0x486894(0x117)](),_0x5aefc8=this[_0x486894(0x430)][_0x486894(0x2de)](_0x486894(0x48c))??_0x486894(0x136);_0x3331a0 instanceof r['Workbook']&&(_0x5aefc8=_0x3331a0['name']),document[_0x486894(0x254)]=_0x5aefc8;}));}};at=b([y(0x0,r[_0x3bc608(0x260)]),y(0x1,r[_0x3bc608(0x190)])],at);const ot=(0x0,r[_0x3bc608(0x2e1)])('base-ui.attachment-io.service');let G=class{constructor(_0x42c1ac,_0x6cf2c,_0x285888){const _0x478029=_0x3bc608;this[_0x478029(0x499)]=_0x42c1ac,this[_0x478029(0x430)]=_0x6cf2c,this[_0x478029(0x414)]=_0x285888;}['getUploadOptions'](){const _0x541c08=_0x3bc608;return this[_0x541c08(0x3ab)]()['attachment']??{};}async[_0x3bc608(0x2a4)](_0x58d2fd){const _0x444961=_0x3bc608;let _0x38dccc=this[_0x444961(0x204)]();if(st(_0x58d2fd,_0x38dccc),_0x38dccc['upload'])return _0x38dccc[_0x444961(0x123)](_0x58d2fd);let _0x2dea99=await this[_0x444961(0x23f)](_0x58d2fd);return{'id':_0x2dea99,'name':_0x58d2fd[_0x444961(0x142)],'mimeType':_0x58d2fd[_0x444961(0x48f)],'size':_0x58d2fd[_0x444961(0x476)],'sourceType':r[_0x444961(0x44c)][_0x444961(0x495)],'source':_0x2dea99};}async[_0x3bc608(0x230)](_0x58c4c2,_0xe5aca4){const _0x1b47cc=_0x3bc608;if(_0xe5aca4!==r[_0x1b47cc(0x44c)][_0x1b47cc(0x495)])return _0x58c4c2;let _0x41da6a=(await this[_0x1b47cc(0x499)][_0x1b47cc(0x119)](this[_0x1b47cc(0x2ac)]()[_0x1b47cc(0x382)](_0x1b47cc(0x1cd),_0x58c4c2)))[_0x1b47cc(0x28e)];if(_0x41da6a['error']&&_0x41da6a['error'][_0x1b47cc(0x3e2)]!==o['ErrorCode']['OK'])throw _0x41da6a['error'];if(!_0x41da6a['url'])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,r[_0x1b47cc(0x2db)])(_0x41da6a[_0x1b47cc(0x19c)],this[_0x1b47cc(0x317)]());}async['_upload'](_0x245764){const _0x7cdcf4=_0x3bc608;let _0x4c0eaf=this[_0x7cdcf4(0x414)][_0x7cdcf4(0x117)](),_0x23dcb2=_0x4c0eaf==null?void 0x0:_0x4c0eaf['getUnitId']();if(!_0x23dcb2)throw Error(_0x7cdcf4(0x458));let _0x3574ef=new FormData();_0x3574ef['append'](_0x7cdcf4(0x3d2),_0x245764);let _0x2ec945=this[_0x7cdcf4(0x22b)]()+_0x7cdcf4(0x3ba)+_0x245764[_0x7cdcf4(0x476)][_0x7cdcf4(0x462)]()+_0x7cdcf4(0x209)+o[_0x7cdcf4(0x21f)][_0x7cdcf4(0x3a9)]+_0x7cdcf4(0x19d)+encodeURIComponent(_0x23dcb2),_0x2adef3=(await this[_0x7cdcf4(0x499)]['post'](_0x2ec945,{'body':_0x3574ef}))['body'][_0x7cdcf4(0x2bf)];if(typeof _0x2adef3!='string'||!_0x2adef3)throw Error(_0x7cdcf4(0x439));return _0x2adef3;}[_0x3bc608(0x22b)](){const _0x2baa5e=_0x3bc608;return this[_0x2baa5e(0x3ab)]()[_0x2baa5e(0x396)]??'/universer-api/stream/file/upload';}[_0x3bc608(0x2ac)](){const _0x2892eb=_0x3bc608;return this[_0x2892eb(0x3ab)]()[_0x2892eb(0x266)]??_0x2892eb(0x402);}[_0x3bc608(0x317)](){const _0x2c46d1=_0x3bc608;let _0x29a670=this[_0x2c46d1(0x3ab)]();return _0x29a670[_0x2c46d1(0x2fc)]?_0x29a670[_0x2c46d1(0x2fc)]:typeof location<'u'?location[_0x2c46d1(0x2b4)]:_0x29a670[_0x2c46d1(0x396)]??'';}['_getConfig'](){const _0x177a52=_0x3bc608;return this['_configService'][_0x177a52(0x2de)](_0x177a52(0x2f1))??{};}};G=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e['HTTPService'])),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(r['IConfigService'])),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x260)]))],G);function st(_0x5d170d,_0x37dec6){const _0x444795=_0x3bc608;var _0x224743;if(_0x37dec6['maxSize']!=null&&_0x5d170d['size']>_0x37dec6[_0x444795(0x110)])throw Error(_0x444795(0x355));if((_0x224743=_0x37dec6['accept'])!=null&&_0x224743[_0x444795(0x16e)]&&!_0x37dec6[_0x444795(0x376)][_0x444795(0x3fc)](_0x4a02bf=>_0x5d170d[_0x444795(0x48f)]===_0x4a02bf||_0x5d170d['name'][_0x444795(0x240)](_0x4a02bf)||_0x4a02bf[_0x444795(0x240)]('/*')&&_0x5d170d[_0x444795(0x48f)]['startsWith'](_0x4a02bf[_0x444795(0x1a1)](0x0,-0x1))))throw Error(_0x444795(0x302));}let K=class{constructor(_0x182553,_0x2c33e0,_0x26ff42){const _0x3ace32=_0x3bc608;this[_0x3ace32(0x430)]=_0x182553,this['_httpService']=_0x2c33e0,this[_0x3ace32(0x3ed)]=_0x26ff42,this[_0x3ace32(0x17e)]();}[_0x3bc608(0x17e)](){const _0x588b36=_0x3bc608;this[_0x588b36(0x499)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2af238,_0xc43243)=>_0xc43243(_0x2af238)[_0x588b36(0x1d6)]((0x0,t[_0x588b36(0x3fb)])(async _0x2c58c3=>{const _0x4fad8e=_0x588b36;let _0x314271=_0x2c58c3;if(_0x314271[_0x4fad8e(0x1eb)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x4fad8e(0x30b)](this[_0x4fad8e(0x3ed)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x3f9f8d=window['encodeURIComponent'](window[_0x4fad8e(0x42a)][_0x4fad8e(0x3d3)]);window['location']['href']=this['_getLoginPath']()+_0x4fad8e(0x1ac)+_0x3f9f8d;}}return _0x314271;}))});}[_0x3bc608(0x3b4)](){const _0xc5615b=_0x3bc608;let _0x1ff679=this[_0xc5615b(0x430)][_0xc5615b(0x2de)](m);return(_0x1ff679==null?void 0x0:_0x1ff679[_0xc5615b(0x163)])??_0xc5615b(0x188);}};K=b([y(0x0,r[_0x3bc608(0x190)]),y(0x1,(0x0,r['Inject'])(e[_0x3bc608(0xff)])),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)]))],K);let q=class extends r[_0x3bc608(0x358)]{constructor(_0x464e5b,_0x25e359){const _0x1545bc=_0x3bc608;super(),this[_0x1545bc(0x3a0)]=_0x464e5b,this[_0x1545bc(0x430)]=_0x25e359,_(this,_0x1545bc(0x316),!0x1),this[_0x1545bc(0x233)]();}['_initMergeInterceptor'](){const _0x4cf7cc=_0x3bc608;let _0x584bdd=this;this[_0x4cf7cc(0x24c)](this[_0x4cf7cc(0x3a0)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,e[_0x4cf7cc(0x1cb)])({'isMatch'(_0x40230c){const _0x436690=_0x4cf7cc;var _0x429751;if(_0x40230c[_0x436690(0x383)]==='POST'&&(_0x429751=_0x40230c[_0x436690(0x244)])!=null&&_0x429751['body']){let {objectID:_0x3fc495,objectType:_0x4736b1}=_0x40230c['requestParams'][_0x436690(0x28e)]||{};if(!_0x3fc495||_0x4736b1===void 0x0)return!0x1;let _0x5af9ee=_0x584bdd[_0x436690(0x1a9)]()+'/'+_0x4736b1+_0x436690(0x126)+encodeURIComponent(_0x3fc495)+'/allowed';if(_0x40230c['url']===_0x5af9ee)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x53a63a){const _0x231a0f=_0x4cf7cc;var _0x1efef1;return(_0x1efef1=_0x53a63a[_0x231a0f(0x244)])==null?void 0x0:_0x1efef1[_0x231a0f(0x28e)];},'mergeParamsToRequest'(_0x4f0ee4,_0xfc7e5a){const _0x14219c=_0x4cf7cc;let _0x5705bc=_0x584bdd[_0x14219c(0x1a9)]()+_0x14219c(0x370),_0x72356=_0x4f0ee4['reduce']((_0x547123,_0x1ffa65)=>{const _0x2054f8=_0x14219c;let {unitID:_0x4a1d12,objectID:_0x4392b7,objectType:_0x292739,actions:_0x272cb8}=_0x1ffa65;return _0x547123[_0x4a1d12]||(_0x547123[_0x4a1d12]=Object[_0x2054f8(0x160)](null)),_0x547123[_0x4a1d12][_0x4392b7]||(_0x547123[_0x4a1d12][_0x4392b7]={'objectID':_0x4392b7,'objectType':_0x292739,'actions':[]}),_0x547123[_0x4a1d12][_0x4392b7][_0x2054f8(0x33d)][_0x2054f8(0x13a)](..._0x272cb8),_0x547123;},Object['create'](null)),_0x517362=[];for(let _0x2477e8 in _0x72356)for(let _0x4a8da8 in _0x72356[_0x2477e8]){let {actions:_0x15329f,objectType:_0x40c892}=_0x72356[_0x2477e8][_0x4a8da8],_0x4844e5=[...new Set(_0x15329f)];_0x517362['push']({'unitID':_0x2477e8,'objectID':_0x4a8da8,'objectType':_0x40c892,'actions':_0x4844e5});}return new e['HTTPRequest']('POST',_0x5705bc,{'headers':_0xfc7e5a[_0x14219c(0x36f)],'withCredentials':_0xfc7e5a[_0x14219c(0x37a)],'responseType':_0xfc7e5a[_0x14219c(0x26a)],'body':{'requests':_0x517362}});}},{'distributeResult'(_0x5c3e66,_0x5429a1){const _0x1128bb=_0x4cf7cc;let {objectActions:_0x2569bb}=_0x5c3e66;return _0x5429a1[_0x1128bb(0x222)](_0x5deacd=>{const _0x3a3eb1=_0x1128bb;let {unitID:_0x4638b0,objectID:_0x44b362,actions:_0x1ca8f1}=_0x5deacd,_0xfa04ac=_0x2569bb[_0x3a3eb1(0xf9)](_0x211313=>_0x211313[_0x3a3eb1(0x29f)]===_0x4638b0&&_0x211313[_0x3a3eb1(0x282)]===_0x44b362);return{'config':_0x5deacd,'result':{'actions':_0x1ca8f1['map'](_0x52fce9=>_0xfa04ac==null?void 0x0:_0xfa04ac[_0x3a3eb1(0x33d)][_0x3a3eb1(0xf9)](_0x50d6b9=>_0x50d6b9[_0x3a3eb1(0x3f7)]===_0x52fce9))[_0x3a3eb1(0x43f)](_0x4a93e1=>!!_0x4a93e1),'error':_0x5c3e66[_0x3a3eb1(0x3a2)]}};});}})}));}[_0x3bc608(0x1a9)](){const _0x5da955=_0x3bc608;let _0x4d50dc=this[_0x5da955(0x430)][_0x5da955(0x2de)](m);return(_0x4d50dc==null?void 0x0:_0x4d50dc[_0x5da955(0x39f)])??_0x5da955(0x3bc);}async['create'](_0x75caea){const _0x59bba2=_0x3bc608;let _0x419628=this[_0x59bba2(0x1a9)]()+'/'+_0x75caea[_0x59bba2(0x21e)]+_0x59bba2(0x2ee);return(await this[_0x59bba2(0x3a0)]['post'](_0x419628,{'body':_0x75caea}))[_0x59bba2(0x28e)][_0x59bba2(0x282)]||'';}async[_0x3bc608(0x2af)](_0x25b456){const _0x2d2108=_0x3bc608;let _0x68286=this[_0x2d2108(0x1a9)]()+_0x2d2108(0x327);return(await this[_0x2d2108(0x3a0)][_0x2d2108(0x380)](_0x68286,{'body':_0x25b456}))[_0x2d2108(0x28e)]['objects'];}async['update'](_0xa9cb7){const _0x4c4a82=_0x3bc608;var _0x124fe6;let _0x15e4a7=this[_0x4c4a82(0x1a9)]()+'/'+_0xa9cb7[_0x4c4a82(0x21e)]+_0x4c4a82(0x126)+encodeURIComponent(_0xa9cb7[_0x4c4a82(0x282)]),_0x18ca42=await this[_0x4c4a82(0x3a0)][_0x4c4a82(0x144)](_0x15e4a7,{'body':_0xa9cb7});if((_0x18ca42==null||(_0x124fe6=_0x18ca42[_0x4c4a82(0x28e)])==null||(_0x124fe6=_0x124fe6[_0x4c4a82(0x3a2)])==null?void 0x0:_0x124fe6['code'])!==0x1)throw Error(_0x4c4a82(0x48b));}async['allowed'](_0x129328){const _0x93c752=_0x3bc608;let _0x8c4f6=this[_0x93c752(0x1a9)]()+'/'+_0x129328[_0x93c752(0x21e)]+_0x93c752(0x126)+encodeURIComponent(_0x129328[_0x93c752(0x282)])+_0x93c752(0x2f8);return(await this[_0x93c752(0x3a0)]['post'](_0x8c4f6,{'body':_0x129328}))[_0x93c752(0x28e)][_0x93c752(0x33d)];}async[_0x3bc608(0x3e9)](_0x14e4a9){const _0xad71c4=_0x3bc608;let _0x2a1616=this[_0xad71c4(0x1a9)]()+_0xad71c4(0x370);return(await this[_0xad71c4(0x3a0)][_0xad71c4(0x380)](_0x2a1616,{'body':{'requests':_0x14e4a9}}))[_0xad71c4(0x28e)][_0xad71c4(0x339)];}async[_0x3bc608(0x206)](_0x4e807f){const _0x5e74d9=_0x3bc608;let _0x58f4d7=this['_getAPIPrefixPath']()+'/'+_0x4e807f['objectType']+'/role',_0x5483c6=await this['_HTTPService'][_0x5e74d9(0x380)](_0x58f4d7,{'body':_0x4e807f});return{'roles':_0x5483c6[_0x5e74d9(0x28e)][_0x5e74d9(0x231)],'actions':_0x5483c6[_0x5e74d9(0x28e)][_0x5e74d9(0x33d)]};}async[_0x3bc608(0x2ff)](_0x30c856){const _0x13ba37=_0x3bc608;let _0x45aeea=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x13ba37(0x3a0)]['delete'](_0x45aeea,{'params':{'collaboratorID':_0x30c856[_0x13ba37(0x224)],'objectID':_0x30c856[_0x13ba37(0x282)],'unitID':_0x30c856['unitID']}});}async[_0x3bc608(0x1fb)](_0x52466f){const _0x23deab=_0x3bc608;let _0x11915f=this[_0x23deab(0x1a9)]()+_0x23deab(0x352);await this['_HTTPService'][_0x23deab(0x23b)](_0x11915f,{'body':_0x52466f});}async['createCollaborator'](_0x1e1e7c){const _0x1613b4=_0x3bc608;let _0x459aba=this['_getAPIPrefixPath']()+_0x1613b4(0x352);await this['_HTTPService']['post'](_0x459aba,{'body':_0x1e1e7c});}async[_0x3bc608(0x425)](_0x520427){const _0x27fec3=_0x3bc608;let _0xd0d8b=this[_0x27fec3(0x1a9)]()+_0x27fec3(0x352),_0x32a655=await this['_HTTPService'][_0x27fec3(0x119)](_0xd0d8b,{'params':{'objectID':_0x520427['objectID'],'unitID':_0x520427['unitID']}});return this['setCfgEnableObjInherit'](_0x32a655[_0x27fec3(0x28e)][_0x27fec3(0x470)]??!0x1),_0x32a655['body'][_0x27fec3(0x410)];}async[_0x3bc608(0x3a8)](_0x3e06dc){const _0x28d561=_0x3bc608;let _0x2769f2=this[_0x28d561(0x1a9)]()+_0x28d561(0x352);await this[_0x28d561(0x3a0)][_0x28d561(0x144)](_0x2769f2,{'body':_0x3e06dc});}[_0x3bc608(0x45b)](_0x3c6c8d){const _0x2b0ec4=_0x3bc608;this[_0x2b0ec4(0x316)]=_0x3c6c8d;}[_0x3bc608(0x350)](){const _0x3f98b9=_0x3bc608;return this[_0x3f98b9(0x316)];}};q=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e[_0x3bc608(0xff)])),y(0x1,(0x0,r['Inject'])(r[_0x3bc608(0x190)]))],q);function ct(_0x1d575b){const _0x2652c4=_0x3bc608;let _0x2fada9=atob(_0x1d575b),_0x42e108=new Uint8Array(_0x2fada9[_0x2652c4(0x16e)]);for(let _0xbf7bad=0x0;_0xbf7bad<_0x2fada9[_0x2652c4(0x16e)];_0xbf7bad++)_0x42e108[_0xbf7bad]=_0x2fada9[_0x2652c4(0x227)](_0xbf7bad);return _0x42e108;}function lt(_0x5ead9a){const _0x315f7f=_0x3bc608;let _0xc8612a='';for(let _0x3fa9ce=0x0;_0x3fa9ce<_0x5ead9a[_0x315f7f(0x16e)];_0x3fa9ce++)_0xc8612a+=String['fromCharCode'](_0x5ead9a[_0x3fa9ce]);return btoa(_0xc8612a);}function ut(_0x6ea063,_0x19143c){const _0x49a6ed=_0x3bc608;let _0x371641=ct(_0x19143c),_0x49eb4a=(0x0,f[_0x49a6ed(0x1b2)])(0x10),_0x43ddb1=(0x0,d['cbc'])(_0x371641,_0x49eb4a)['encrypt']((0x0,f[_0x49a6ed(0x453)])(_0x6ea063));return lt((0x0,f['concatBytes'])(_0x49eb4a,_0x43ddb1));}function dt(){const _0x2532ce=_0x3bc608;let _0x2dbb7b=(0x0,u[_0x2532ce(0x33b)])()[_0x2532ce(0x29c)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x2dbb7b){let _0x5ef5ec={'time':Math[_0x2532ce(0x271)](Date[_0x2532ce(0x261)]()/0x3e8),'domain':location[_0x2532ce(0x3f8)]};return ut(JSON[_0x2532ce(0x42b)](_0x5ef5ec),_0x2dbb7b);}}let J=class{constructor(_0x5a0c16){this['_httpService']=_0x5a0c16,this['_initRequestHeader']();}[_0x3bc608(0x1b0)](){const _0xbc6554=_0x3bc608;this['_httpService'][_0xbc6554(0x255)]({'interceptor':(_0x13eac5,_0x25d22a)=>{const _0x1b0128=_0xbc6554;let _0x464739=dt();return _0x464739&&_0x13eac5['headers'][_0x1b0128(0x122)](_0x1b0128(0x27a),_0x464739),_0x25d22a(_0x13eac5);}});}};J=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e['HTTPService']))],J);let Y=class extends r['RxDisposable']{constructor(_0x3b3403,_0x3464e9,_0x53249e){const _0x2f51ad=_0x3bc608;super(),this['_logService']=_0x3b3403,this[_0x2f51ad(0x477)]=_0x3464e9,this[_0x2f51ad(0x239)]=_0x53249e,_(this,_0x2f51ad(0x479),new t[(_0x2f51ad(0x249))](null)),_(this,_0x2f51ad(0x43e),new t[(_0x2f51ad(0x1a3))]()),_(this,_0x2f51ad(0x3f2),this['_unitInfo$']['asObservable']()),_(this,_0x2f51ad(0x372),this[_0x2f51ad(0x43e)]['asObservable']());}['dispose'](){const _0x1faadc=_0x3bc608;super[_0x1faadc(0x3cc)](),this[_0x1faadc(0x43e)][_0x1faadc(0x10e)](),this[_0x1faadc(0x479)][_0x1faadc(0x10e)]();}[_0x3bc608(0x2dd)](_0x5f09e2,_0x368f1a,_0x21a95d,_0x2b6fbb,_0x16f920){const _0x591f00=_0x3bc608;return this[_0x591f00(0x293)](_0x5f09e2,_0x368f1a,_0x21a95d,_0x2b6fbb,_0x16f920);}[_0x3bc608(0x3e8)](_0x5f4b2a,_0x12d945,_0xe301cf,_0x25582f){return this['_loadUnit'](_0x5f4b2a,_0x12d945,void 0x0,_0xe301cf,_0x25582f);}async[_0x3bc608(0x293)](_0x41e3af,_0x5a242a,_0x440eee,_0x13992a,_0x587db8){const _0x1c33f3=_0x3bc608;this[_0x1c33f3(0x479)]['next']({'unitId':_0x41e3af,'type':_0x5a242a,'subUnitId':_0x13992a});let _0x39a2c8=_0x440eee;if(_0x39a2c8===void 0x0){var _0x3290ea;let _0x353ac4=await((_0x3290ea=this['_localCacheService'])==null?void 0x0:_0x3290ea[_0x1c33f3(0x1b3)](_0x41e3af));_0x39a2c8=_0x353ac4&&(_0x353ac4[_0x1c33f3(0xf3)]||_0x353ac4['mutations'][_0x1c33f3(0x16e)]!==0x0)?_0x353ac4[_0x1c33f3(0x35c)]:0x0,_0x39a2c8===0x0&&this[_0x1c33f3(0x2bc)]['debug'](_0x1c33f3(0x3a3),_0x1c33f3(0x421));}return this['_loadSnapshot'](_0x41e3af,_0x5a242a,_0x39a2c8,_0x13992a,_0x587db8);}async[_0x3bc608(0x41c)](_0x58c34,_0x251995,_0x1c6460,_0x323a86,_0x4cceac){const _0x55bce1=_0x3bc608;let _0x3c8870=null;switch(_0x251995){case r[_0x55bce1(0x403)][_0x55bce1(0xf2)]:_0x3c8870=await this[_0x55bce1(0x477)]['loadSheet'](_0x58c34,_0x1c6460,_0x4cceac,{'initialSubUnitId':_0x323a86});break;case r['UniverInstanceType'][_0x55bce1(0x2c2)]:_0x3c8870=await this[_0x55bce1(0x477)][_0x55bce1(0x3ad)](_0x58c34,_0x1c6460,_0x4cceac);break;case r['UniverInstanceType'][_0x55bce1(0x1ab)]:_0x3c8870=await this[_0x55bce1(0x477)]['loadSlide'](_0x58c34,_0x1c6460,_0x4cceac);break;case r[_0x55bce1(0x403)][_0x55bce1(0x398)]:_0x3c8870=await this[_0x55bce1(0x477)]['loadBoard'](_0x58c34,_0x1c6460,_0x4cceac);break;case r[_0x55bce1(0x403)][_0x55bce1(0x2c4)]:_0x3c8870=await this[_0x55bce1(0x477)][_0x55bce1(0x182)](_0x58c34,_0x1c6460,_0x4cceac);break;case r[_0x55bce1(0x403)][_0x55bce1(0x326)]:_0x3c8870=await this[_0x55bce1(0x477)][_0x55bce1(0x11a)](_0x58c34,_0x1c6460,_0x4cceac);break;default:this[_0x55bce1(0x2bc)][_0x55bce1(0x3a2)]('[DataLoaderService]',_0x55bce1(0x236));}return _0x3c8870&&this[_0x55bce1(0x43e)][_0x55bce1(0x33a)](_0x3c8870),_0x3c8870;}};Y=b([y(0x0,r[_0x3bc608(0x3ae)]),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x296)])),y(0x2,(0x0,r[_0x3bc608(0x18d)])(C))],Y);let X=class{constructor(_0x47ca30,_0x2374b4,_0x552bc0){const _0x4fc6=_0x3bc608;this[_0x4fc6(0x499)]=_0x47ca30,this[_0x4fc6(0x430)]=_0x2374b4,this[_0x4fc6(0x414)]=_0x552bc0,_(this,_0x4fc6(0x441),0x0),_(this,_0x4fc6(0x22f),new t['Subject']()),_(this,_0x4fc6(0x11b),this['_change$']),_(this,_0x4fc6(0x294),new Map());}[_0x3bc608(0x354)](_0x47e80b){const _0x3f4db0=_0x3bc608;this[_0x3f4db0(0x441)]=_0x47e80b,this[_0x3f4db0(0x22f)]['next'](_0x47e80b);}[_0x3bc608(0x308)](_0x115c9a,_0x48b4fd){const _0x3b3bdb=_0x3bc608;if(_0x48b4fd===r[_0x3b3bdb(0x44c)][_0x3b3bdb(0x263)]){let _0x3b93c0=new Image();return _0x3b93c0[_0x3b3bdb(0x275)]=_0x115c9a,_0x3b93c0;}return this[_0x3b3bdb(0x294)][_0x3b3bdb(0x119)](_0x115c9a);}['addImageSourceCache'](_0x35b2b2,_0x347033,_0x5189af){const _0x2f6cc6=_0x3bc608;_0x347033!==r['ImageSourceType'][_0x2f6cc6(0x263)]&&_0x5189af!=null&&this[_0x2f6cc6(0x294)][_0x2f6cc6(0x122)](_0x35b2b2,_0x5189af);}async[_0x3bc608(0x199)](_0x321c51){const _0x3eded6=_0x3bc608;try{let _0x25ee44=this[_0x3eded6(0xfb)](this[_0x3eded6(0x2ac)](),''+_0x321c51),_0x136d47=(await this['_httpService'][_0x3eded6(0x119)](_0x25ee44))[_0x3eded6(0x28e)];if(_0x136d47[_0x3eded6(0x3a2)]&&_0x136d47[_0x3eded6(0x3a2)]['code']===o[_0x3eded6(0x43c)]['OK']){let _0x3a39fb=(0x0,r['resolveWithBasePath'])(_0x136d47[_0x3eded6(0x19c)],this[_0x3eded6(0x317)]());return Promise['resolve'](_0x3a39fb);}return Promise[_0x3eded6(0x172)](_0x136d47[_0x3eded6(0x3a2)]);}catch(_0x2be375){return Promise['reject'](_0x2be375);}}async[_0x3bc608(0x166)](_0x3bcba2){const _0x1fe130=_0x3bc608;let _0x530fd1='';if(!p[_0x1fe130(0x175)][_0x1fe130(0x480)](_0x3bcba2[_0x1fe130(0x48f)]))return this['_decreaseWaiting'](),Promise['reject'](Error(r[_0x1fe130(0x150)][_0x1fe130(0x111)]));if(_0x3bcba2[_0x1fe130(0x476)]>(0x0,p['getDrawingImageAllowSize'])())return this[_0x1fe130(0x18c)](),Promise[_0x1fe130(0x172)](Error(r[_0x1fe130(0x150)]['ERROR_EXCEED_SIZE']));try{let _0xe20cbf=new FormData();_0xe20cbf[_0x1fe130(0x2a1)]('file',_0x3bcba2);let _0x54b177=this[_0x1fe130(0x414)][_0x1fe130(0x117)](),_0x58e2e8=_0x54b177==null?void 0x0:_0x54b177[_0x1fe130(0x363)]();if(!_0x58e2e8)throw Error(_0x1fe130(0x27d));let _0x3972cf=this['_getUploadFileURL']()+_0x1fe130(0x3ba)+_0x3bcba2[_0x1fe130(0x476)][_0x1fe130(0x462)]()+'&source='+o[_0x1fe130(0x21f)][_0x1fe130(0x3a9)]+_0x1fe130(0x19d)+encodeURIComponent(_0x58e2e8),_0x213c64={'body':_0xe20cbf},_0x640690=(await this['_httpService'][_0x1fe130(0x380)](_0x3972cf,_0x213c64))[_0x1fe130(0x28e)];if(typeof _0x640690['FileId']!=_0x1fe130(0x268))return this['_decreaseWaiting'](),Promise['reject'](Error(r[_0x1fe130(0x150)][_0x1fe130(0x1c3)]));_0x530fd1=_0x640690[_0x1fe130(0x2bf)];}catch{return this[_0x1fe130(0x18c)](),Promise[_0x1fe130(0x172)](Error(r[_0x1fe130(0x150)][_0x1fe130(0x1c3)]));}return new Promise((_0x4fc6b4,_0xca68a6)=>{const _0x4d0168=_0x1fe130;let _0x5768b1=new FileReader();_0x5768b1[_0x4d0168(0x488)](_0x3bcba2),_0x5768b1['onload']=_0xc29cdc=>{const _0x3a467f=_0x4d0168;var _0x38771d;let _0x624f23=(_0x38771d=_0xc29cdc[_0x3a467f(0x1f4)])==null?void 0x0:_0x38771d[_0x3a467f(0x179)];_0x624f23==null?(this[_0x3a467f(0x18c)](),_0xca68a6(Error(r[_0x3a467f(0x150)]['ERROR_IMAGE']))):(_0x4fc6b4({'imageId':(0x0,r[_0x3a467f(0x328)])(0x6),'imageSourceType':r[_0x3a467f(0x44c)][_0x3a467f(0x495)],'source':_0x530fd1,'base64Cache':_0x624f23,'status':r[_0x3a467f(0x150)][_0x3a467f(0x482)]}),this[_0x3a467f(0x18c)]());};});}[_0x3bc608(0x22b)](){const _0x31c399=_0x3bc608;let _0x2498bf=this['_configService'][_0x31c399(0x2de)](m);return(_0x2498bf==null?void 0x0:_0x2498bf[_0x31c399(0x396)])??'/universer-api/stream/file/upload';}[_0x3bc608(0x2ac)](){const _0x62db28=_0x3bc608;let _0x2c352d=this[_0x62db28(0x430)]['getConfig'](m);return(_0x2c352d==null?void 0x0:_0x2c352d[_0x62db28(0x266)])??_0x62db28(0x402);}[_0x3bc608(0x317)](){const _0x2b4d17=_0x3bc608;let _0xd8ab8c=this['_configService'][_0x2b4d17(0x2de)](m);return(_0xd8ab8c==null?void 0x0:_0xd8ab8c[_0x2b4d17(0x2fc)])??location['origin'];}[_0x3bc608(0xfb)](_0x2797b7,_0x5ca2e9){const _0x595c8d=_0x3bc608;return _0x2797b7[_0x595c8d(0x382)](_0x595c8d(0x1cd),_0x5ca2e9);}['_decreaseWaiting'](){const _0xd8d330=_0x3bc608;--this[_0xd8d330(0x441)],this['_change$'][_0xd8d330(0x33a)](this[_0xd8d330(0x441)]);}};X=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e[_0x3bc608(0xff)])),y(0x1,r[_0x3bc608(0x190)]),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x260)]))],X);let Z=class{constructor(_0x461da1,_0x1af4bc){const _0xca3b2b=_0x3bc608;this[_0xca3b2b(0x430)]=_0x461da1,this['_HTTPService']=_0x1af4bc;}[_0x3bc608(0x1a9)](){const _0x13f85a=_0x3bc608;let _0x177c03=this['_configService'][_0x13f85a(0x2de)](m);return(_0x177c03==null?void 0x0:_0x177c03[_0x13f85a(0x39f)])??'/universer-api/authz';}async[_0x3bc608(0x2af)](_0x37e3f3){const _0x2396df=_0x3bc608;let _0x205633=this[_0x2396df(0x1a9)]()+_0x2396df(0x352);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x2396df(0x119)](_0x205633,{'params':{'objectID':_0x37e3f3['unitId'],'unitID':_0x37e3f3[_0x2396df(0x3dc)]}}))[_0x2396df(0x28e)]['collaborators'][_0x2396df(0x222)](_0x4ef808=>({'objectId':_0x4ef808['id'],'name':_0x4ef808[_0x2396df(0x397)][_0x2396df(0x142)],'metadata':{'icon':_0x4ef808[_0x2396df(0x397)][_0x2396df(0x114)]},'label':_0x4ef808[_0x2396df(0x397)][_0x2396df(0x142)],'objectType':r[_0x2396df(0x10a)]['PERSON']})),'metadata':{},'type':r[_0x2396df(0x10a)][_0x2396df(0x3e3)]}]};}};Z=b([y(0x0,(0x0,r['Inject'])(r[_0x3bc608(0x190)])),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(e[_0x3bc608(0xff)]))],Z);let Q=class extends r[_0x3bc608(0xf4)]{constructor(_0x4ecf0e,_0x57e701,_0x164b3a,_0x4907c1,_0x406b26,_0x2d9bb3){const _0x179d83=_0x3bc608;super(),this[_0x179d83(0x1aa)]=_0x4ecf0e,this[_0x179d83(0x414)]=_0x57e701,this['_permissionService']=_0x164b3a,this[_0x179d83(0x18a)]=_0x4907c1,this[_0x179d83(0x3b8)]=_0x406b26,this['_collaborationUIEventService']=_0x2d9bb3,_(this,'_closedUnits',new Set()),this[_0x179d83(0x24c)](()=>this['_closedUnits'][_0x179d83(0x3ca)]()),this[_0x179d83(0x24c)](ft(this[_0x179d83(0x414)])[_0x179d83(0x2ad)](({unitId:_0x3469fb})=>this[_0x179d83(0x391)][_0x179d83(0x3a1)](_0x3469fb))),this[_0x179d83(0x2bd)](),this[_0x179d83(0x38f)](),[r[_0x179d83(0x403)][_0x179d83(0x2c2)],r[_0x179d83(0x403)]['UNIVER_SLIDE'],r['UniverInstanceType'][_0x179d83(0x2c4)],r['UniverInstanceType'][_0x179d83(0x398)]][_0x179d83(0x103)](_0x595cda=>{const _0x290ce5=_0x179d83;this[_0x290ce5(0x24c)](this[_0x290ce5(0x414)][_0x290ce5(0x343)](_0x595cda)[_0x290ce5(0x2ad)](_0x558cb0=>{const _0x3a3049=_0x290ce5;this['_closedUnits'][_0x3a3049(0x467)](_0x558cb0[_0x3a3049(0x363)]()),this[_0x3a3049(0x1aa)][_0x3a3049(0x119)](r[_0x3a3049(0x1b5)])['clearUnit'](_0x558cb0[_0x3a3049(0x363)]());}));});}[_0x3bc608(0x38f)](){const _0x545fe2=_0x3bc608;let _0x1aadb2=async(_0x175857,_0x315c1c)=>{const _0x1e11f6=_0xa8b9;let _0x56d693=await this['_collaborationSessionService'][_0x1e11f6(0x303)](_0x175857);this[_0x1e11f6(0x14d)]||this[_0x1e11f6(0x391)][_0x1e11f6(0x411)](_0x175857)||!this[_0x1e11f6(0x414)]['getUnit'](_0x175857)||_0x56d693[_0x1e11f6(0x165)][_0x1e11f6(0x1d6)]((0x0,c['filter'])(_0x128df2=>_0x128df2[_0x1e11f6(0x1e5)]===n['CollaborationEvent'][_0x1e11f6(0x1c8)]),(0x0,c[_0x1e11f6(0x3bb)])((0x0,t[_0x1e11f6(0x22a)])(this[_0x1e11f6(0x187)],this['_univerInstanceService'][_0x1e11f6(0x364)][_0x1e11f6(0x1d6)]((0x0,c[_0x1e11f6(0x43f)])(_0x290a5d=>_0x290a5d[_0x1e11f6(0x363)]()===_0x175857)))))[_0x1e11f6(0x2ad)](_0xff9552=>{const _0x2ed11f=_0x1e11f6;let {reason:_0x3dfd06}=_0xff9552['data'];this[_0x2ed11f(0x1fe)][_0x2ed11f(0x2d0)]({'id':_0x2ed11f(0x39b),'data':_0x3dfd06}),this[_0x2ed11f(0x391)][_0x2ed11f(0x467)](_0x175857),this[_0x2ed11f(0x1aa)][_0x2ed11f(0x119)](r['ObjectPermissionService'])[_0x2ed11f(0x3d1)](_0x175857);let _0x300a63=pt(_0x315c1c);_0x300a63!=null&&this[_0x2ed11f(0x1c0)](_0x175857,_0x300a63,o[_0x2ed11f(0x438)]['Edit'],!0x1),this['_collaborationSessionService'][_0x2ed11f(0x12e)](_0x175857);});};ft(this[_0x545fe2(0x414)])[_0x545fe2(0x1d6)]((0x0,c[_0x545fe2(0x43f)])(({unitId:_0x5a3ae5})=>!(0x0,r[_0x545fe2(0x469)])(_0x5a3ae5)),(0x0,c['takeUntil'])(this['dispose$']))[_0x545fe2(0x2ad)](({type:_0x2380be,unitId:_0x10e3e0})=>{const _0x573846=_0x545fe2;_0x1aadb2(_0x10e3e0,_0x2380be)['catch'](_0x2ae928=>this['_injector']['get'](r[_0x573846(0x3ae)])['error'](_0x2ae928));});}['_initUnitPermissionChange'](){const _0x2c4717=_0x3bc608;let _0x17c53f=async(_0x1840ee,_0x20a57f)=>{const _0x1402fd=_0xa8b9;let _0x509c8f=await this[_0x1402fd(0x3b8)][_0x1402fd(0x303)](_0x1840ee);if(!(this[_0x1402fd(0x14d)]||this['_closedUnits'][_0x1402fd(0x411)](_0x1840ee)||!this[_0x1402fd(0x414)][_0x1402fd(0x250)](_0x1840ee))){if(_0x20a57f===r['UniverInstanceType'][_0x1402fd(0xf2)]){let _0x5c4f6d=this[_0x1402fd(0x1aa)][_0x1402fd(0x119)](a[_0x1402fd(0x485)]);await _0x5c4f6d['initWorkbookPermissionChange'](_0x1840ee),_0x509c8f[_0x1402fd(0x165)][_0x1402fd(0x1d6)]((0x0,c['filter'])(_0x1cb967=>_0x1cb967[_0x1402fd(0x1e5)]===n[_0x1402fd(0x1be)][_0x1402fd(0x3e7)]),(0x0,c['takeUntil'])((0x0,t[_0x1402fd(0x22a)])(this[_0x1402fd(0x187)],_0x509c8f['event$'][_0x1402fd(0x1d6)]((0x0,c['filter'])(_0x5c07d8=>_0x5c07d8[_0x1402fd(0x1e5)]===n['CollaborationEvent'][_0x1402fd(0x1c8)])),this['_univerInstanceService'][_0x1402fd(0x364)]['pipe']((0x0,c[_0x1402fd(0x43f)])(_0x1b2738=>_0x1b2738[_0x1402fd(0x363)]()===_0x1840ee)))))['subscribe'](_0x5aab69=>{const _0x4d35ab=_0x1402fd;let {objectId:_0x35ba14}=_0x5aab69['data'];_0x35ba14===_0x1840ee?_0x5c4f6d['initWorkbookPermissionChange'](_0x1840ee):_0x5c4f6d[_0x4d35ab(0x3b0)](_0x1840ee,_0x35ba14);});}else _0x509c8f['event$'][_0x1402fd(0x1d6)]((0x0,c[_0x1402fd(0x43f)])(_0x37f614=>_0x37f614[_0x1402fd(0x1e5)]===n[_0x1402fd(0x1be)][_0x1402fd(0x3e7)]),(0x0,c[_0x1402fd(0x3bb)])((0x0,t[_0x1402fd(0x22a)])(this[_0x1402fd(0x187)],_0x509c8f[_0x1402fd(0x165)][_0x1402fd(0x1d6)]((0x0,c['filter'])(_0x30bff7=>_0x30bff7['eventID']===n[_0x1402fd(0x1be)][_0x1402fd(0x1c8)])),this['_univerInstanceService']['unitDisposed$']['pipe']((0x0,c['filter'])(_0x1c950b=>_0x1c950b[_0x1402fd(0x363)]()===_0x1840ee)))))[_0x1402fd(0x2ad)](()=>{const _0x5abc5c=_0x1402fd;this[_0x5abc5c(0x2fe)](_0x1840ee,_0x20a57f)['catch'](_0x1be670=>this['_injector'][_0x5abc5c(0x119)](r[_0x5abc5c(0x3ae)])[_0x5abc5c(0x3a2)](_0x1be670));}),await this[_0x1402fd(0x2fe)](_0x1840ee,_0x20a57f);}};ft(this[_0x2c4717(0x414)])[_0x2c4717(0x1d6)]((0x0,c[_0x2c4717(0x43f)])(({unitId:_0xefa5c1})=>!(0x0,r['isInternalEditorID'])(_0xefa5c1)),(0x0,c[_0x2c4717(0x3bb)])(this[_0x2c4717(0x187)]))[_0x2c4717(0x2ad)](({type:_0x2ad92a,unitId:_0x33f50e})=>{const _0x725b6f=_0x2c4717;_0x17c53f(_0x33f50e,_0x2ad92a)[_0x725b6f(0x48d)](_0x1455aa=>this[_0x725b6f(0x1aa)]['get'](r['ILogService'])['error'](_0x1455aa));});}async[_0x3bc608(0x2fe)](_0x1e145f,_0x9d868c){const _0x983056=_0x3bc608;let _0x2bce22=pt(_0x9d868c);if(_0x2bce22==null)return;let _0x199958=this['_injector'][_0x983056(0x119)](r[_0x983056(0x1b5)]);if(_0x199958['supports']({'unitId':_0x1e145f,'objectId':_0x1e145f,'objectType':_0x2bce22})){await _0x199958[_0x983056(0x205)](_0x1e145f);return;}let _0x2b6650=this[_0x983056(0x490)](_0x1e145f,_0x2bce22);if(!_0x2b6650[_0x983056(0x16e)])return;let _0x304a98=await this[_0x983056(0x18a)]['allowed']({'objectID':_0x1e145f,'objectType':_0x2bce22,'unitID':_0x1e145f,'actions':_0x2b6650[_0x983056(0x222)](({action:_0x5a22e0})=>_0x5a22e0)});this[_0x983056(0x14d)]||this[_0x983056(0x391)][_0x983056(0x411)](_0x1e145f)||!this['_univerInstanceService'][_0x983056(0x250)](_0x1e145f)||_0x304a98['forEach'](_0x1925e0=>{const _0x3c3f1d=_0x983056;let _0x3cfb6b=_0x1925e0[_0x3c3f1d(0x3f7)],_0xd93c95=_0x1925e0[_0x3c3f1d(0x2a6)];_0x3cfb6b!=null&&_0xd93c95!=null&&_0x2b6650[_0x3c3f1d(0x43f)](_0x579dcf=>_0x579dcf[_0x3c3f1d(0x3f7)]===_0x3cfb6b)['forEach'](_0x2fb1eb=>this[_0x3c3f1d(0x1e8)][_0x3c3f1d(0x463)](_0x2fb1eb['id'],_0xd93c95));});}['_getUnitPermissionPoints'](_0x56cfcf,_0x430e1){const _0x38a6b6=_0x3bc608;let _0x21ffe9=[];return this[_0x38a6b6(0x1e8)][_0x38a6b6(0x3e5)]()[_0x38a6b6(0x103)]((_0x5d768c,_0x2b8db0)=>{const _0x5b43f3=_0x38a6b6;_0x5d768c[_0x5b43f3(0x2ad)](_0x273be5=>{const _0x566720=_0x5b43f3;_0x273be5[_0x566720(0x48f)]===_0x430e1&&_0x566720(0x3dc)in _0x273be5&&_0x273be5[_0x566720(0x3dc)]===_0x56cfcf&&(!(_0x566720(0x31b)in _0x273be5)||_0x273be5[_0x566720(0x31b)]===_0x56cfcf)&&_0x21ffe9[_0x566720(0x13a)]({'id':_0x2b8db0,'action':_0x273be5['subType']});})[_0x5b43f3(0x2e2)]();}),_0x21ffe9;}[_0x3bc608(0x1c0)](_0xa427ea,_0x454300,_0xd13c17,_0x29bf8f){const _0x4e8afa=_0x3bc608;this[_0x4e8afa(0x1e8)][_0x4e8afa(0x3e5)]()[_0x4e8afa(0x103)]((_0x40471e,_0x324146)=>{const _0x398f01=_0x4e8afa;let _0x374fd1=!0x1;_0x40471e['subscribe'](_0x4125e5=>{const _0x13ec0b=_0xa8b9;_0x374fd1=_0x4125e5[_0x13ec0b(0x48f)]===_0x454300&&_0x4125e5[_0x13ec0b(0x2c0)]===_0xd13c17&&'unitId'in _0x4125e5&&_0x4125e5[_0x13ec0b(0x3dc)]===_0xa427ea&&(!('objectId'in _0x4125e5)||_0x4125e5[_0x13ec0b(0x31b)]===_0xa427ea);})['unsubscribe'](),_0x374fd1&&this[_0x398f01(0x1e8)][_0x398f01(0x463)](_0x324146,_0x29bf8f);});}};Q=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x1,r[_0x3bc608(0x260)]),y(0x2,r[_0x3bc608(0x32c)]),y(0x3,r[_0x3bc608(0x474)]),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(U)),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(v))],Q);function ft(_0x38bff2){const _0x2ac241=_0x3bc608;return(0x0,t[_0x2ac241(0x22a)])(...[r['UniverInstanceType']['UNIVER_SHEET'],r[_0x2ac241(0x403)][_0x2ac241(0x2c2)],r[_0x2ac241(0x403)][_0x2ac241(0x1ab)],r[_0x2ac241(0x403)][_0x2ac241(0x398)],r['UniverInstanceType'][_0x2ac241(0x2c4)]][_0x2ac241(0x222)](_0x2172d7=>_0x38bff2[_0x2ac241(0x2f6)](_0x2172d7)[_0x2ac241(0x1d6)]((0x0,c[_0x2ac241(0x222)])(_0x39d5f4=>({'type':_0x2172d7,'unitId':_0x39d5f4['unit']['getUnitId']()})))));}function pt(_0xd2d68b){const _0x586c8a=_0x3bc608;switch(_0xd2d68b){case r['UniverInstanceType'][_0x586c8a(0xf2)]:return o[_0x586c8a(0x35e)]['Workbook'];case r[_0x586c8a(0x403)]['UNIVER_DOC']:return o[_0x586c8a(0x35e)][_0x586c8a(0x234)];case r[_0x586c8a(0x403)][_0x586c8a(0x1ab)]:return o['UnitObject'][_0x586c8a(0x3ac)];case r[_0x586c8a(0x403)][_0x586c8a(0x398)]:return o[_0x586c8a(0x35e)][_0x586c8a(0x24b)];case r[_0x586c8a(0x403)]['UNIVER_BASE']:return o[_0x586c8a(0x35e)][_0x586c8a(0x2a8)];default:return;}}let mt=class{constructor(_0x996979,_0xbd7f5a){const _0x380aad=_0x3bc608;this[_0x380aad(0x430)]=_0x996979,this[_0x380aad(0x499)]=_0xbd7f5a;}async['getUnitOnRev'](_0x4dd1b9,_0x2dd386){const _0x8c9799=_0x3bc608;var _0x59e613;let {unitID:_0x178141,type:_0x93ced4,revision:_0x5a2cef=0x0}=_0x2dd386,_0x3eeec4=this[_0x8c9799(0x2d3)]()+'/'+_0x93ced4+'/unit/'+_0x178141+_0x8c9799(0x3b1)+_0x5a2cef,_0x23bc27=(await this['_httpService'][_0x8c9799(0x119)](_0x3eeec4))[_0x8c9799(0x28e)],_0x41e075=(_0x59e613=_0x23bc27[_0x8c9799(0x200)])==null?void 0x0:_0x59e613['workbook'];if(_0x41e075){let _0x472f41=_0x41e075==null?void 0x0:_0x41e075['originalMeta'];_0x41e075[_0x8c9799(0xed)]=n[_0x8c9799(0x342)]['encode']((0x0,n[_0x8c9799(0x465)])(_0x472f41)),Object['entries'](_0x41e075[_0x8c9799(0x36e)])[_0x8c9799(0x103)](([,_0x143d7b])=>{const _0x5ed2e9=_0x8c9799;let _0x1752b1=_0x143d7b[_0x5ed2e9(0xed)];_0x143d7b['originalMeta']=n[_0x5ed2e9(0x342)]['encode']((0x0,n[_0x5ed2e9(0x465)])(_0x1752b1));});}return _0x23bc27;}async[_0x3bc608(0x31c)](_0x57dd52,_0x20fa82){const _0x3c859c=_0x3bc608;let {unitID:_0x1b7e3b,type:_0x5f0f90,blockID:_0x54ce86}=_0x20fa82,_0x472dc9=this[_0x3c859c(0x433)]()+'/'+_0x5f0f90+_0x3c859c(0x388)+_0x1b7e3b+_0x3c859c(0x133)+_0x54ce86;return(await this[_0x3c859c(0x499)][_0x3c859c(0x119)](_0x472dc9))[_0x3c859c(0x28e)];}async[_0x3bc608(0x30a)](_0xd3a9f9,_0x5577c9){const _0x39c8cb=_0x3bc608;let {unitID:_0x568922,type:_0x2679d9,blockID:_0x2a91f6}=_0x5577c9,_0x31d3d6=this[_0x39c8cb(0x433)]()+'/block/'+_0x2679d9+'/unit/'+_0x568922+'/block/'+_0x2a91f6;return(await this[_0x39c8cb(0x499)][_0x39c8cb(0x119)](_0x31d3d6))['body'];}async[_0x3bc608(0x366)](_0x38ee45,_0x5f0df6){const _0x3e38c2=_0x3bc608;let {unitID:_0x23b891,type:_0x55d5de,from:_0xb1707b,to:_0x92bc43}=_0x5f0df6,_0x29852a=this[_0x3e38c2(0x433)]()+'/'+_0x55d5de+_0x3e38c2(0x388)+_0x23b891+'/fetchmissing?from='+_0xb1707b+_0x3e38c2(0xf6)+_0x92bc43;return(await this['_httpService'][_0x3e38c2(0x119)](_0x29852a))[_0x3e38c2(0x28e)];}[_0x3bc608(0x2d3)](){const _0xe360f0=_0x3bc608;return this['_configService'][_0xe360f0(0x2de)](_0xe360f0(0x36a))??this[_0xe360f0(0x433)]();}[_0x3bc608(0x433)](){const _0x84f4a7=_0x3bc608;let _0x59911b=this[_0x84f4a7(0x430)][_0x84f4a7(0x2de)](m);return(_0x59911b==null?void 0x0:_0x59911b[_0x84f4a7(0xea)])??_0x84f4a7(0x349);}async['getResourcesRequest'](_0x4d5f18,_0x145169){const _0x2a5692=_0x3bc608;let _0x3cc27a=_0x2a5692(0x2f0)+_0x145169[_0x2a5692(0x48f)]+_0x2a5692(0x388)+_0x145169[_0x2a5692(0x29f)]+'/resources';return(await this[_0x2a5692(0x499)][_0x2a5692(0x119)](_0x3cc27a,{'params':{'resourceId':JSON[_0x2a5692(0x42b)](_0x145169[_0x2a5692(0x26d)])}}))['body'];}['saveSnapshot'](){const _0x1bd504=_0x3bc608;throw Error(_0x1bd504(0xfd));}[_0x3bc608(0x2c1)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3bc608(0x409)](){const _0x14e914=_0x3bc608;throw Error(_0x14e914(0xfd));}[_0x3bc608(0xfc)](){const _0x99dc23=_0x3bc608;throw Error(_0x99dc23(0xfd));}['copyFileMeta'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3bc608(0x46b)](){const _0x24db0a=_0x3bc608;throw Error(_0x24db0a(0xfd));}};mt=b([y(0x0,r[_0x3bc608(0x190)]),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(e['HTTPService']))],mt);let ht=class extends r[_0x3bc608(0xf8)]{constructor(_0x9e0a48,_0x40029a,_0x2ad68a,_0xe84daa,_0x3fb35f,_0x3a58f3){const _0x3b1ee1=_0x3bc608;super(_0x9e0a48,_0x40029a,_0x2ad68a,_0xe84daa),this[_0x3b1ee1(0x378)]=_0x3fb35f,this[_0x3b1ee1(0x2bc)]=_0x3a58f3;}[_0x3bc608(0x1c9)](_0x17e48c,_0xa6a7bc){const _0x208473=_0x3bc608;let _0x1f379a=this[_0x208473(0x184)](_0x17e48c);if(_0x1f379a)try{let _0xb3124a=this[_0x208473(0x35b)](_0x1f379a,_0xa6a7bc);this[_0x208473(0x3c8)](_0x17e48c,_0xb3124a);}catch(_0x2505d7){this[_0x208473(0x2bc)][_0x208473(0x3a2)](_0x208473(0x15f),_0x2505d7),this[_0x208473(0x1b6)](_0x17e48c);}let _0x379469=this[_0x208473(0x194)](_0x17e48c);if(_0x379469)try{let _0x9e3853=this[_0x208473(0x35b)](_0x379469,_0xa6a7bc,!0x0);this[_0x208473(0x161)](_0x17e48c,_0x9e3853);}catch(_0x21304e){this[_0x208473(0x2bc)][_0x208473(0x3a2)](_0x21304e),this['_clearRedo'](_0x17e48c);}}['_clearUndo'](_0xf60cff){const _0x58d1c1=_0x3bc608;let _0x2f12ac=this[_0x58d1c1(0x184)](_0xf60cff);_0x2f12ac&&(_0x2f12ac[_0x58d1c1(0x16e)]=0x0,this[_0x58d1c1(0x1fc)]());}['_clearRedo'](_0x5428ee){const _0x399ebe=_0x3bc608;let _0xc41fb8=this['_getRedoStack'](_0x5428ee);_0xc41fb8&&(_0xc41fb8[_0x399ebe(0x16e)]=0x0,this[_0x399ebe(0x1fc)]());}[_0x3bc608(0x3c8)](_0x23bab8,_0x570ed3){const _0x15132c=_0x3bc608;this[_0x15132c(0x13b)][_0x15132c(0x122)](_0x23bab8,_0x570ed3),this[_0x15132c(0x1fc)]();}['_substituteRedoStack'](_0x487210,_0x2f72a6){this['_redoStacks']['set'](_0x487210,_0x2f72a6),this['_updateStatus']();}[_0x3bc608(0x35b)](_0x2246ff,_0x5a89de,_0x5acf49=!0x1){const _0x239b53=_0x3bc608;if(!_0x2246ff[_0x239b53(0x16e)])return[];let _0x444b11=[],_0x289ee9=_0x5a89de,_0x48d18a=_0x5a89de['type']===r[_0x239b53(0x403)][_0x239b53(0x2c2)]?this['_univerInstanceService'][_0x239b53(0x250)](_0x5a89de[_0x239b53(0x29f)],r['UniverInstanceType'][_0x239b53(0x2c2)]):null,_0x4ef22b=_0x48d18a?{'id':_0x48d18a[_0x239b53(0x363)](),'documentStyle':{},'tableSource':r[_0x239b53(0x42e)][_0x239b53(0x47d)](_0x48d18a[_0x239b53(0x2ed)]()[_0x239b53(0x1f8)]??{})}:null;for(let _0x12d05c=_0x2246ff['length']-0x1;_0x12d05c>=0x0;_0x12d05c--){let {unitID:_0x5243e5,undoMutations:_0x58d80a,redoMutations:_0x3ab8ea}=_0x2246ff[_0x12d05c],_0x58acb8=_0x5acf49?_0x3ab8ea:_0x58d80a,_0x5dd505=this[_0x239b53(0x154)](_0x289ee9,_0x58acb8);if((0x0,n['isTransformMutationsWithChangesetFailure'])(_0x5dd505)){this[_0x239b53(0x2bc)]['error']('[CollaborationUndoRedoService]',_0x239b53(0x41d),_0x5dd505);break;}let _0x45adda=_0x5acf49?_0x58d80a:_0x3ab8ea,_0x71589e=this[_0x239b53(0x154)](_0x5dd505[_0x239b53(0x1ba)],_0x45adda);if((0x0,n[_0x239b53(0x129)])(_0x71589e)){this['_logService'][_0x239b53(0x3a2)](_0x239b53(0x15f),_0x239b53(0x41d),_0x71589e);break;}let _0x5242c3=_0x5acf49?_0x71589e:_0x5dd505,_0x3e722b=_0x5acf49?_0x5dd505:_0x71589e;_0x289ee9=_0x5dd505['c1Prime'],_0x4ef22b&&=this[_0x239b53(0x1cc)](_0x4ef22b,_0x5dd505[_0x239b53(0x2fd)],_0x71589e['m2Prime']),_0x444b11[_0x239b53(0x13a)]({'unitID':_0x5243e5,'undoMutations':_0x5242c3[_0x239b53(0x2fd)],'redoMutations':_0x3e722b[_0x239b53(0x2fd)]});}return _0x444b11[_0x239b53(0x1c6)]();}['_transformHistoryMutations'](_0x79ffe1,_0xab8f00){const _0x3f30ff=_0x3bc608;if(_0x79ffe1[_0x3f30ff(0x48f)]!==r[_0x3f30ff(0x403)]['UNIVER_DOC']||_0xab8f00['some'](_0x240047=>_0x240047['id']!==i[_0x3f30ff(0x341)]['id']))return this[_0x3f30ff(0x378)]['transformMutationsWithChangeset'](_0x79ffe1,_0xab8f00);let _0x394094=r[_0x3f30ff(0x42e)]['deepClone'](_0xab8f00),_0xb904ef=[];for(let _0x1cab1a of _0x79ffe1['mutations']){let _0xb20fdb={..._0x79ffe1,'mutations':[_0x1cab1a]},_0x40c0e4=[];for(let _0x2e25ce of _0x394094){_0xb20fdb=this[_0x3f30ff(0x34d)](_0xb20fdb,[_0x2e25ce]);let _0x1fccd8=this[_0x3f30ff(0x378)][_0x3f30ff(0x464)](_0xb20fdb,[_0x2e25ce]);if((0x0,n[_0x3f30ff(0x129)])(_0x1fccd8))return _0x1fccd8;_0xb20fdb=_0x1fccd8[_0x3f30ff(0x1ba)],_0x40c0e4['push'](..._0x1fccd8[_0x3f30ff(0x2fd)]);}_0x394094=_0x40c0e4,_0xb904ef['push'](..._0xb20fdb[_0x3f30ff(0x29d)]);}return{'m2Prime':_0x394094,'c1Prime':{..._0x79ffe1,'mutations':_0xb904ef}};}[_0x3bc608(0x34d)](_0x1c3079,_0x1a478d){const _0x340f0f=_0x3bc608;let _0x2fc842=new Map(),_0x27cb93=r[_0x340f0f(0x297)][_0x340f0f(0x48f)][_0x340f0f(0x3da)](_0x1a478d[0x0]['params'][_0x340f0f(0x33d)]);if(_0x27cb93[_0x340f0f(0x203)](null,_0x424394=>{const _0x5d408e=_0x340f0f;if(_0x424394['et']!==_0x5d408e(0x459))return;let _0x16690a=JSON['stringify'](_0x27cb93[_0x5d408e(0x11c)]()),_0x59424e=_0x2fc842[_0x5d408e(0x119)](_0x16690a)??new Map(),_0x456003=0x0;for(let _0x17d446 of _0x424394['e']){if(_0x17d446['t']===r['TextXActionType']['RETAIN']){var _0xac6d15;for(let _0xa472bc of((_0xac6d15=_0x17d446[_0x5d408e(0x28e)])==null?void 0x0:_0xac6d15[_0x5d408e(0x3cf)])??[])_0x59424e[_0x5d408e(0x122)](_0x456003+_0xa472bc[_0x5d408e(0x270)],{'paragraph':_0xa472bc,'replace':_0x17d446[_0x5d408e(0x118)]===r['UpdateDocsAttributeType'][_0x5d408e(0x283)]});}_0x17d446['t']!==r[_0x5d408e(0x415)][_0x5d408e(0x311)]&&(_0x456003+=_0x17d446['len']);}_0x59424e[_0x5d408e(0x476)]>0x0&&_0x2fc842[_0x5d408e(0x122)](_0x16690a,_0x59424e);}),_0x2fc842[_0x340f0f(0x476)]===0x0)return _0x1c3079;let _0x607229=r[_0x340f0f(0x42e)][_0x340f0f(0x47d)](_0x1c3079);for(let _0x382195 of _0x607229[_0x340f0f(0x29d)]){if(_0x382195['id']!==i[_0x340f0f(0x341)]['id'])continue;let _0x51e725=r[_0x340f0f(0x297)]['type']['readCursor'](_0x382195[_0x340f0f(0x41a)][_0x340f0f(0x33d)]);_0x51e725['traverse'](null,_0x3b3cd4=>{const _0x3af1ad=_0x340f0f;if(_0x3b3cd4['et']!==_0x3af1ad(0x459))return;let _0x949f4f=JSON['stringify'](_0x51e725[_0x3af1ad(0x11c)]()),_0x5ac109=_0x2fc842[_0x3af1ad(0x119)](_0x949f4f);if(!(_0x5ac109!=null&&_0x5ac109[_0x3af1ad(0x476)]))return;let _0x48e747=0x0;for(let _0x229889 of _0x3b3cd4['e']){if(_0x229889['t']===r[_0x3af1ad(0x415)]['RETAIN']&&_0x229889['coverType']===r[_0x3af1ad(0x3a5)][_0x3af1ad(0x283)]){var _0x517d90;for(let _0x35fe4d of((_0x517d90=_0x229889[_0x3af1ad(0x28e)])==null?void 0x0:_0x517d90[_0x3af1ad(0x3cf)])??[]){var _0xc83212;let _0x2a3a3e=(_0xc83212=_0x229889[_0x3af1ad(0x1f1)])==null||(_0xc83212=_0xc83212[_0x3af1ad(0x3cf)])==null?void 0x0:_0xc83212[_0x3af1ad(0xf9)](_0x2b9da1=>_0x2b9da1[_0x3af1ad(0x270)]===_0x35fe4d[_0x3af1ad(0x270)]),_0x3d7f7f=_0x5ac109[_0x3af1ad(0x119)](_0x48e747+_0x35fe4d['startIndex']);if(_0x2a3a3e&&_0x3d7f7f){this['_rebaseUnchangedAttributes'](_0x35fe4d,_0x2a3a3e,_0x3d7f7f['paragraph'],_0x3d7f7f[_0x3af1ad(0x382)]);let _0x7dedbe=_0x3d7f7f[_0x3af1ad(0x382)]?new Set([...Object['keys'](_0x3d7f7f[_0x3af1ad(0x248)]),...Object[_0x3af1ad(0x483)](_0x35fe4d)]):Object[_0x3af1ad(0x483)](_0x3d7f7f[_0x3af1ad(0x248)]);for(let _0x46884e of _0x7dedbe){if(_0x46884e==='startIndex'||_0x46884e===_0x3af1ad(0x457))continue;let _0x9ee2d=Reflect[_0x3af1ad(0x119)](_0x35fe4d,_0x46884e);_0x9ee2d===void 0x0?Reflect[_0x3af1ad(0x385)](_0x3d7f7f[_0x3af1ad(0x248)],_0x46884e):Reflect[_0x3af1ad(0x122)](_0x3d7f7f[_0x3af1ad(0x248)],_0x46884e,r[_0x3af1ad(0x42e)][_0x3af1ad(0x47d)](_0x9ee2d));}}}}_0x229889['t']!==r[_0x3af1ad(0x415)][_0x3af1ad(0x311)]&&(_0x48e747+=_0x229889[_0x3af1ad(0x404)]);}});}return _0x607229;}[_0x3bc608(0x31e)](_0x581afe,_0x2c2c3f,_0x3630a8,_0x1ccd5d){const _0x12f9f1=_0x3bc608;let _0xddaf09=new Set([...Object[_0x12f9f1(0x483)](_0x581afe),...Object['keys'](_0x2c2c3f),...Object[_0x12f9f1(0x483)](_0x3630a8)]);for(let _0x355f70 of _0xddaf09){if(_0x355f70===_0x12f9f1(0x270)||_0x355f70===_0x12f9f1(0x457))continue;let _0x47d9e4=Reflect[_0x12f9f1(0x119)](_0x581afe,_0x355f70),_0x341f35=Reflect[_0x12f9f1(0x119)](_0x2c2c3f,_0x355f70),_0x52d483=Reflect[_0x12f9f1(0x119)](_0x3630a8,_0x355f70);if(_0x1ccd5d||_0x52d483!==void 0x0){if(r[_0x12f9f1(0x42e)][_0x12f9f1(0x28d)](_0x47d9e4,_0x341f35))_0x52d483===void 0x0?(Reflect[_0x12f9f1(0x385)](_0x581afe,_0x355f70),Reflect[_0x12f9f1(0x385)](_0x2c2c3f,_0x355f70)):(Reflect[_0x12f9f1(0x122)](_0x581afe,_0x355f70,r[_0x12f9f1(0x42e)][_0x12f9f1(0x47d)](_0x52d483)),Reflect[_0x12f9f1(0x122)](_0x2c2c3f,_0x355f70,r[_0x12f9f1(0x42e)][_0x12f9f1(0x47d)](_0x52d483)));else{if(r[_0x12f9f1(0x42e)][_0x12f9f1(0x1db)](_0x47d9e4)&&(r[_0x12f9f1(0x42e)][_0x12f9f1(0x1db)](_0x341f35)||_0x341f35===void 0x0)){let _0x212314=_0x341f35??{};this['_rebaseUnchangedAttributes'](_0x47d9e4,_0x212314,r[_0x12f9f1(0x42e)][_0x12f9f1(0x1db)](_0x52d483)?_0x52d483:{},_0x1ccd5d),(_0x341f35!==void 0x0||Object[_0x12f9f1(0x483)](_0x212314)[_0x12f9f1(0x16e)]>0x0)&&Reflect[_0x12f9f1(0x122)](_0x2c2c3f,_0x355f70,_0x212314);}}}}}['_invertDocumentHistory'](_0xd6400e,_0x11a7ba,_0x3d4a75){const _0x5b3e70=_0x3bc608;if(_0x11a7ba[_0x5b3e70(0x16e)]!==0x1||_0x3d4a75['length']!==0x1||_0x11a7ba[0x0]['id']!==i[_0x5b3e70(0x341)]['id']||_0x3d4a75[0x0]['id']!==i[_0x5b3e70(0x341)]['id'])return _0xd6400e;let _0x5068cd=_0x11a7ba[0x0][_0x5b3e70(0x41a)],_0x8d454d=_0x3d4a75[0x0][_0x5b3e70(0x41a)],_0x416958=this[_0x5b3e70(0x278)](_0x5068cd['actions'],!0x0);return r[_0x5b3e70(0x1d0)]['isNoop'](_0x416958)?_0xd6400e:(_0x8d454d[_0x5b3e70(0x33d)]=r[_0x5b3e70(0x1d0)][_0x5b3e70(0x491)](this[_0x5b3e70(0x278)](_0x8d454d[_0x5b3e70(0x33d)],!0x1),r[_0x5b3e70(0x1d0)]['invertWithDoc'](_0x416958,_0xd6400e)),r[_0x5b3e70(0x1d0)][_0x5b3e70(0x3ce)](_0xd6400e,_0x416958)??_0xd6400e);}[_0x3bc608(0x278)](_0x4f1a60,_0x18cb6f){const _0x2c6ce3=_0x3bc608;let _0x1e05f8=r[_0x2c6ce3(0x297)][_0x2c6ce3(0x48f)][_0x2c6ce3(0x3da)](_0x4f1a60),_0x318836=r['JSON1'][_0x2c6ce3(0x48f)][_0x2c6ce3(0x13c)]();return _0x1e05f8[_0x2c6ce3(0x203)](null,_0x7132ff=>{const _0x5171f7=_0x2c6ce3;let _0x386b7a=_0x1e05f8['getPath']();if(_0x386b7a[0x0]==='tableSource'===_0x18cb6f){for(let _0x242208 of Object[_0x5171f7(0x483)](_0x7132ff))_0x318836['writeAtPath'](_0x386b7a,_0x242208,_0x7132ff[_0x242208]);}}),_0x318836[_0x2c6ce3(0x119)]();}};ht=b([y(0x0,r['IUniverInstanceService']),y(0x1,r[_0x3bc608(0x185)]),y(0x2,r['IContextService']),y(0x3,r['IConfigService']),y(0x4,n[_0x3bc608(0x331)]),y(0x5,r[_0x3bc608(0x3ae)])],ht);let $=class extends r[_0x3bc608(0x32d)]{constructor(_0x2ac22f=h,_0x1b9aa2,_0x2ddf22,_0x2d6f7d){const _0x2fcf41=_0x3bc608;super(),this['_config']=_0x2ac22f,this[_0x2fcf41(0x2bc)]=_0x1b9aa2,this[_0x2fcf41(0x1aa)]=_0x2ddf22,this[_0x2fcf41(0x430)]=_0x2d6f7d;let {..._0x3d45cc}=(0x0,r['merge'])({},h,this[_0x2fcf41(0x347)]);if(!_0x3d45cc[_0x2fcf41(0x262)])throw Error(_0x2fcf41(0x318));this['_config']=_0x3d45cc,this[_0x2fcf41(0x430)][_0x2fcf41(0x484)](m,_0x3d45cc);}[_0x3bc608(0x346)](){const _0x53278d=_0x3bc608;this['_configService'][_0x53278d(0x484)](r[_0x53278d(0x193)],this[_0x53278d(0x347)]['objectPermissionTypes']??[]),this[_0x53278d(0x1dd)](),this[_0x53278d(0x1a5)]();}[_0x3bc608(0x1dd)](){const _0x22e6f3=_0x3bc608;var _0x23d61e,_0x3bbf0a;this[_0x22e6f3(0x1aa)]['has'](r[_0x22e6f3(0x41b)])&&this[_0x22e6f3(0x2bc)][_0x22e6f3(0x3a2)](_0x22e6f3(0x3d6),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4f01cc=(0x0,r['mergeOverrideWithDependencies'])([[r[_0x22e6f3(0x41b)],{'useClass':ht}],[Qe,{'useValue':$e()}],[U],[x],[w],[K],[J],[se],[Q],[v],[Y],[Je,{'useClass':this['_config'][_0x22e6f3(0x262)]}],[n[_0x22e6f3(0x1ca)],{'useClass':mt}],[r[_0x22e6f3(0x474)],{'useClass':q}],[r['IImageIoService'],{'useClass':X}],[ot,{'useClass':G}],[r[_0x22e6f3(0x1e6)],{'useClass':Z}],[W],[at]],(_0x23d61e=this[_0x22e6f3(0x347)])==null?void 0x0:_0x23d61e['override']);if(!((_0x3bbf0a=this['_config'])!=null&&_0x3bbf0a[_0x22e6f3(0x3db)])){let _0x46540e=_0x4f01cc[_0x22e6f3(0x21d)](([_0x5ad867])=>_0x5ad867===T);_0x46540e!==-0x1&&_0x4f01cc[_0x22e6f3(0x43d)](_0x46540e,0x1);}(0x0,r[_0x22e6f3(0x3a7)])(this[_0x22e6f3(0x1aa)],_0x4f01cc);}['_initDependencies'](){const _0x54dae9=_0x3bc608;var _0x9eedfa,_0x25e884;if(this[_0x54dae9(0x1aa)][_0x54dae9(0x119)](e[_0x54dae9(0xff)])[_0x54dae9(0x255)]({'priority':0x14,'interceptor':(0x0,e[_0x54dae9(0x1d1)])({'maxParallel':0x6})}),!((_0x9eedfa=this[_0x54dae9(0x347)])!=null&&_0x9eedfa[_0x54dae9(0x345)])){var _0x57fd23;(_0x57fd23=this[_0x54dae9(0x1aa)][_0x54dae9(0x119)](C,r[_0x54dae9(0x45d)][_0x54dae9(0x423)]))==null||_0x57fd23[_0x54dae9(0x444)]();}(_0x25e884=this[_0x54dae9(0x347)])!=null&&_0x25e884[_0x54dae9(0x379)]&&(0x0,r['touchDependencies'])(this[_0x54dae9(0x1aa)],[[K]]),(0x0,r[_0x54dae9(0x3f5)])(this[_0x54dae9(0x1aa)],[[J],[W],[Q]]);}};_($,'pluginName','UNIVER_COLLABORATION_CLIENT_PLUGIN'),_($,_0x3bc608(0x3fe),rt),_($,_0x3bc608(0x3dd),it),$=b([(0x0,r[_0x3bc608(0x405)])(u[_0x3bc608(0x16d)],e[_0x3bc608(0x14e)],n[_0x3bc608(0x3f0)]),y(0x1,r[_0x3bc608(0x3ae)]),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x3,r[_0x3bc608(0x190)])],$),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0xfa),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x2df),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x208),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x3bc608(0x181),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x3bc608(0x2e8)]=m,exports[_0x3bc608(0x44a)]=ne,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x407),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x120),{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x109),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x217),{'enumerable':!0x0,'get':function(){return X;}}),Object['defineProperty'](exports,_0x3bc608(0x3aa),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x1ec),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x3bc608(0x18e),{'enumerable':!0x0,'get':function(){return Xe;}}),exports['CollaborationStatus']=Ue,exports[_0x3bc608(0x247)]=oe,exports[_0x3bc608(0x284)]=v,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x10f),{'enumerable':!0x0,'get':function(){return ht;}}),exports['CommentService']=se,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x17d),{'enumerable':!0x0,'get':function(){return N;}}),exports['DEFAULT_ACK_TIMEOUT']=0x4e20,exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x3bc608(0x15a),exports[_0x3bc608(0x15b)]=_0x3bc608(0x3c1),exports[_0x3bc608(0x46a)]=_0x3bc608(0x365),Object[_0x3bc608(0xf1)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x24f),{'enumerable':!0x0,'get':function(){return L;}}),Object['defineProperty'](exports,_0x3bc608(0x14a),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x3bc608(0x107)]=_0x3bc608(0x46e),exports[_0x3bc608(0x20f)]=_0x3bc608(0x460),exports[_0x3bc608(0x195)]=ot,exports[_0x3bc608(0x257)]=Qe,exports[_0x3bc608(0x419)]=Je,exports[_0x3bc608(0x12d)]=C,exports[_0x3bc608(0x306)]=Ge,exports['ISingleActiveUnitService']=T,exports[_0x3bc608(0x32a)]=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',exports[_0x3bc608(0x10b)]=0x1d4c0,Object[_0x3bc608(0xf1)](exports,'MemberService',{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x3bc608(0xf1)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x3bc608(0xf1)](exports,'OfflineState',{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x2a0),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x3bc608(0x25b),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x3bc608(0x226)]=_0x3bc608(0x486),exports[_0x3bc608(0x348)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x3bc608(0x3e0)]=ve,Object[_0x3bc608(0xf1)](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x41e),{'enumerable':!0x0,'get':function(){return w;}}),Object['defineProperty'](exports,_0x3bc608(0x143),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x29e),{'enumerable':!0x0,'get':function(){return mt;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x3bc608(0x472)]=Se,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x322),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3bc608(0x252)]=$e,exports[_0x3bc608(0x19a)]=Ke,exports[_0x3bc608(0x197)]=be,exports[_0x3bc608(0x1b7)]=qe;