@univerjs-pro/collaboration-client 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5d41f9,_0x1f3449){const _0x557d7b=_0x328a,_0x2069f1=_0x5d41f9();while(!![]){try{const _0xde426a=-parseInt(_0x557d7b(0x29d))/0x1+-parseInt(_0x557d7b(0x2d3))/0x2+parseInt(_0x557d7b(0x359))/0x3*(-parseInt(_0x557d7b(0x2d5))/0x4)+-parseInt(_0x557d7b(0x16d))/0x5+-parseInt(_0x557d7b(0x38f))/0x6*(-parseInt(_0x557d7b(0x22a))/0x7)+parseInt(_0x557d7b(0x37b))/0x8*(parseInt(_0x557d7b(0x297))/0x9)+parseInt(_0x557d7b(0x41c))/0xa;if(_0xde426a===_0x1f3449)break;else _0x2069f1['push'](_0x2069f1['shift']());}catch(_0x1a442e){_0x2069f1['push'](_0x2069f1['shift']());}}}(_0x3671,0xbb312),function(_0x3e0c36,_0x23a2f7){const _0x10629f=_0x328a;typeof exports==_0x10629f(0x26e)&&typeof module<'u'?_0x23a2f7(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x10629f(0x474)&&define[_0x10629f(0x3f7)]?define([_0x10629f(0x1b6),_0x10629f(0x367),_0x10629f(0x27c),_0x10629f(0x156),_0x10629f(0x1d5),_0x10629f(0x374),_0x10629f(0x3d1),_0x10629f(0x2df),_0x10629f(0x263),_0x10629f(0x246),_0x10629f(0x1bc),_0x10629f(0x24c),_0x10629f(0x1ee)],_0x23a2f7):(_0x3e0c36=typeof globalThis<'u'?globalThis:_0x3e0c36||self,_0x23a2f7(_0x3e0c36[_0x10629f(0x288)]={},_0x3e0c36['UniverProCollaboration'],_0x3e0c36[_0x10629f(0x153)],_0x3e0c36['UniverDocs'],_0x3e0c36[_0x10629f(0x119)],_0x3e0c36['rxjs'],_0x3e0c36[_0x10629f(0x1b2)],_0x3e0c36[_0x10629f(0x3bd)],_0x3e0c36[_0x10629f(0x374)]['operators'],_0x3e0c36[_0x10629f(0x1d9)],_0x3e0c36[_0x10629f(0x285)],_0x3e0c36[_0x10629f(0x125)],_0x3e0c36[_0x10629f(0x40f)]));}(this,function(_0x27ec94,_0x5199be,_0x4b2515,_0x120ed0,_0x4ea268,_0xccd21e,_0x349630,_0x3ca46c,_0x2c33e8,_0x471a79,_0x530da8,_0x3ed42b,_0x443efc){const _0x9884d2=_0x328a;Object[_0x9884d2(0x1ce)](_0x27ec94,Symbol['toStringTag'],{'value':_0x9884d2(0x3a0)});let _0x3c0330=_0x9884d2(0x3c1),_0xa070fb={};function _0x3edac7(_0x2f3b25){const _0x284ec1=_0x9884d2;return JSON[_0x284ec1(0x3ee)](_0x2f3b25)['length'];}function _0xbbfc1d(_0x334e0c){'@babel/helpers - typeof';const _0x113da6=_0x9884d2;return _0xbbfc1d=typeof Symbol==_0x113da6(0x474)&&typeof Symbol[_0x113da6(0x37e)]==_0x113da6(0x3ab)?function(_0x1f0765){return typeof _0x1f0765;}:function(_0x2da0db){const _0x5ad084=_0x113da6;return _0x2da0db&&typeof Symbol==_0x5ad084(0x474)&&_0x2da0db[_0x5ad084(0x11a)]===Symbol&&_0x2da0db!==Symbol['prototype']?'symbol':typeof _0x2da0db;},_0xbbfc1d(_0x334e0c);}function _0x1685ec(_0x4449c8,_0x5f1454){const _0x3daeb4=_0x9884d2;if(_0xbbfc1d(_0x4449c8)!=_0x3daeb4(0x26e)||!_0x4449c8)return _0x4449c8;var _0x312b62=_0x4449c8[Symbol[_0x3daeb4(0x28a)]];if(_0x312b62!==void 0x0){var _0x516cd9=_0x312b62[_0x3daeb4(0x43d)](_0x4449c8,_0x5f1454||'default');if(_0xbbfc1d(_0x516cd9)!=_0x3daeb4(0x26e))return _0x516cd9;throw TypeError(_0x3daeb4(0x129));}return(_0x5f1454===_0x3daeb4(0x212)?String:Number)(_0x4449c8);}function _0x2c1259(_0x805b6c){const _0x1c366c=_0x9884d2;var _0xefed27=_0x1685ec(_0x805b6c,'string');return _0xbbfc1d(_0xefed27)==_0x1c366c(0x3ab)?_0xefed27:_0xefed27+'';}function _0x60128a(_0x32986f,_0x46e5eb,_0x9c5410){const _0x5c2cf0=_0x9884d2;return(_0x46e5eb=_0x2c1259(_0x46e5eb))in _0x32986f?Object[_0x5c2cf0(0x1ce)](_0x32986f,_0x46e5eb,{'value':_0x9c5410,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32986f[_0x46e5eb]=_0x9c5410,_0x32986f;}let _0x491b70=function(_0x5e0f1b){const _0x163610=_0x9884d2;return _0x5e0f1b['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5e0f1b[_0x163610(0x1f9)]=_0x163610(0x1f9),_0x5e0f1b[_0x163610(0x296)]=_0x163610(0x296),_0x5e0f1b['CONFLICT_CACHE_CLEAR_FAILED']=_0x163610(0x260),_0x5e0f1b[_0x163610(0x24a)]=_0x163610(0x24a),_0x5e0f1b['CLOSE_ROOM']=_0x163610(0x345),_0x5e0f1b[_0x163610(0x44e)]=_0x163610(0x44e),_0x5e0f1b['SOCKET_FAILED_RETRY']=_0x163610(0x3a2),_0x5e0f1b[_0x163610(0x163)]=_0x163610(0x163),_0x5e0f1b[_0x163610(0x3db)]='SUBMIT_CHANGESET_TIMEOUT',_0x5e0f1b;}({});var _0xeca6ce=class{constructor(){const _0x305bfd=_0x9884d2;_0x60128a(this,_0x305bfd(0x3f8),new _0xccd21e[(_0x305bfd(0x200))]()),_0x60128a(this,'event$',this[_0x305bfd(0x3f8)]['asObservable']());}[_0x9884d2(0x1db)](_0x229be6){const _0x3b4597=_0x9884d2;this[_0x3b4597(0x3f8)][_0x3b4597(0x17e)](_0x229be6);}},_0x16a8e3=class{constructor(){const _0x3afdff=_0x9884d2;_0x60128a(this,'_commentUpdate$',new _0xccd21e[(_0x3afdff(0x200))]()),_0x60128a(this,'commentUpdate$',this[_0x3afdff(0x44a)][_0x3afdff(0x43c)]());}['onCommentUpdate'](_0x185f18){const _0x1bde87=_0x9884d2;this[_0x1bde87(0x44a)]['next'](_0x185f18);}};function _0x3b5628(_0x22c973,_0x24d50f){return function(_0x4f3fe3,_0x581892){_0x24d50f(_0x4f3fe3,_0x581892,_0x22c973);};}function _0x33ad5b(_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8){const _0x4af901=_0x9884d2;var _0x1b1f95=arguments['length'],_0x53af28=_0x1b1f95<0x3?_0x5454ad:_0x4423c8===null?_0x4423c8=Object[_0x4af901(0x13f)](_0x5454ad,_0x1be3b1):_0x4423c8,_0x2d52b9;if(typeof Reflect==_0x4af901(0x26e)&&typeof Reflect[_0x4af901(0x2c0)]==_0x4af901(0x474))_0x53af28=Reflect['decorate'](_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8);else{for(var _0x293edd=_0x145fb3['length']-0x1;_0x293edd>=0x0;_0x293edd--)(_0x2d52b9=_0x145fb3[_0x293edd])&&(_0x53af28=(_0x1b1f95<0x3?_0x2d52b9(_0x53af28):_0x1b1f95>0x3?_0x2d52b9(_0x5454ad,_0x1be3b1,_0x53af28):_0x2d52b9(_0x5454ad,_0x1be3b1))||_0x53af28);}return _0x1b1f95>0x3&&_0x53af28&&Object[_0x4af901(0x1ce)](_0x5454ad,_0x1be3b1,_0x53af28),_0x53af28;}let _0x50f206=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x4cd417){const _0x1f32e4=_0x9884d2;super(),this['_univerInstanceService']=_0x4cd417,_0x60128a(this,_0x1f32e4(0x2f8),new Map()),_0x60128a(this,'_roomCreated$',new _0xccd21e[(_0x1f32e4(0x200))]()),this[_0x1f32e4(0x472)]((0x0,_0xccd21e[_0x1f32e4(0x448)])(this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)]['UNIVER_SHEET'])['pipe']((0x0,_0x2c33e8['map'])(_0x5cc4a9=>_0x5cc4a9[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x10f)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x1996a3=>_0x1996a3['getUnitId']())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515['UniverInstanceType'][_0x1f32e4(0x339)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x40c809=>_0x40c809[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x267)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x327d34=>_0x327d34[_0x1f32e4(0x413)]())))[_0x1f32e4(0x23b)](_0x58562a=>this[_0x1f32e4(0x29c)](_0x58562a)));}[_0x9884d2(0x392)](_0x389bcd){const _0x1d0a20=_0x9884d2;return this[_0x1d0a20(0x2f8)]['has'](_0x389bcd)?(0x0,_0xccd21e['of'])(this['_roomMembers'][_0x1d0a20(0x2eb)](_0x389bcd)):this[_0x1d0a20(0x350)][_0x1d0a20(0x486)]((0x0,_0x2c33e8[_0x1d0a20(0x333)])(_0x483201=>{const _0x1e56c3=_0x1d0a20;if(_0x483201===_0x389bcd)return this['_roomMembers'][_0x1e56c3(0x2eb)](_0x483201);}));}['updateMember'](_0x4ef1c2,_0x2d0c8e){const _0x2d9744=_0x9884d2;let _0x324644=this['_roomMembers'][_0x2d9744(0x2eb)](_0x4ef1c2);_0x324644||(_0x324644=new _0x361b33(),this[_0x2d9744(0x2f8)]['set'](_0x4ef1c2,_0x324644),this[_0x2d9744(0x350)][_0x2d9744(0x17e)](_0x4ef1c2)),_0x324644[_0x2d9744(0x2d4)](_0x2d0c8e);}['removeMember'](_0x5cd723,_0x1950e7){const _0x5ae998=_0x9884d2;let _0x50f80d=this[_0x5ae998(0x2f8)]['get'](_0x5cd723);_0x50f80d&&_0x50f80d[_0x5ae998(0x110)](_0x1950e7);}[_0x9884d2(0x45d)](_0x2ec5c2){const _0x49b6fd=_0x9884d2;return this[_0x49b6fd(0x2f8)][_0x49b6fd(0x2eb)](_0x2ec5c2);}[_0x9884d2(0x1e1)](_0x4bfdc6,_0x21f9b3){const _0x900b69=_0x9884d2;let _0x31b98e=this[_0x900b69(0x2f8)][_0x900b69(0x2eb)](_0x4bfdc6);if(_0x31b98e)return _0x31b98e[_0x900b69(0x1e1)](_0x21f9b3);}[_0x9884d2(0x29c)](_0x2bac59){const _0x29d5fa=_0x9884d2;let _0x1b13a0=this[_0x29d5fa(0x2f8)]['get'](_0x2bac59);_0x1b13a0&&(_0x1b13a0[_0x29d5fa(0x314)](),this[_0x29d5fa(0x2f8)][_0x29d5fa(0x287)](_0x2bac59));}[_0x9884d2(0x314)](){const _0x3059d0=_0x9884d2;this[_0x3059d0(0x2f8)][_0x3059d0(0x1e3)](_0x23c006=>_0x23c006[_0x3059d0(0x314)]()),this['_roomMembers'][_0x3059d0(0x214)](),this[_0x3059d0(0x350)][_0x3059d0(0x41f)]();}};_0x50f206=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x405)])],_0x50f206);var _0x361b33=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(..._0xd6def7){const _0xb998ca=_0x9884d2;super(..._0xd6def7),_0x60128a(this,'_members',new Map()),_0x60128a(this,_0xb998ca(0x32c),new _0xccd21e['BehaviorSubject'](this[_0xb998ca(0x1f0)])),_0x60128a(this,'members$',this[_0xb998ca(0x32c)][_0xb998ca(0x43c)]());}['dispose'](){const _0x148145=_0x9884d2;this['_members']['clear'](),this[_0x148145(0x32c)][_0x148145(0x41f)]();}[_0x9884d2(0x2d4)](_0x45add4){const _0x3822e0=_0x9884d2;this[_0x3822e0(0x1f0)][_0x3822e0(0x41e)](_0x45add4[_0x3822e0(0x417)],_0x45add4),this[_0x3822e0(0x121)]();}['removeMember'](_0x5a1ff1){const _0x1e3682=_0x9884d2;this[_0x1e3682(0x1f0)][_0x1e3682(0x287)](_0x5a1ff1),this[_0x1e3682(0x121)]();}[_0x9884d2(0x1e1)](_0x5e20cc){const _0x4f0d1c=_0x9884d2;return this[_0x4f0d1c(0x1f0)]['get'](_0x5e20cc);}[_0x9884d2(0x3c4)](){const _0x56e609=_0x9884d2;return Array[_0x56e609(0x178)](this['_members'][_0x56e609(0x1f3)]());}[_0x9884d2(0x121)](){const _0x5a5068=_0x9884d2;this[_0x5a5068(0x32c)][_0x5a5068(0x17e)](this[_0x5a5068(0x1f0)]);}};function _0x17beb4(_0x323e1d,_0x353213){const _0x55e6f4=_0x9884d2;if(_0x57c9b8(_0x323e1d))return _0x353213;if(_0x353213['eventID']===_0x5199be[_0x55e6f4(0x261)][_0x55e6f4(0x209)]){let _0x572194=_0x5453e8(_0x323e1d),_0x561983=_0x353213;return{..._0x561983,'data':{..._0x561983['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x3f0)],'unitType':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x294)]??_0x561983['data']['unitType'],'changeset':_0x572194['toRemote'](_0x561983[_0x55e6f4(0x1b4)][_0x55e6f4(0x166)],_0x1acbbf(_0x323e1d))}};}if(_0x353213[_0x55e6f4(0x1b3)]===_0x5199be['CollaborationEvent'][_0x55e6f4(0x318)]){let _0x285f5c=_0x353213;return{..._0x285f5c,'data':{..._0x285f5c['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)]['unitId'],'unitType':_0x323e1d[_0x55e6f4(0x479)]['unitType']??_0x285f5c[_0x55e6f4(0x1b4)][_0x55e6f4(0x294)]}};}return _0x353213;}function _0x1441b1(_0x5bf069,_0x13bf88){const _0x43433a=_0x9884d2;if(_0x57c9b8(_0x5bf069))return[_0x13bf88];switch(_0x13bf88[_0x43433a(0x1b3)]){case _0x5199be[_0x43433a(0x261)]['NEW_CHANGESETS']:return[_0x5428aa(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x18e)]:return[_0x2ffb12(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x238)]:return[_0x4893b9(_0x5bf069,_0x13bf88)];default:return[_0x13bf88];}}function _0x57c9b8(_0x47e813){const _0x45f1d=_0x9884d2;return _0x47e813[_0x45f1d(0x479)][_0x45f1d(0x13b)]==null&&_0x47e813[_0x45f1d(0x479)][_0x45f1d(0x3f0)]===_0x47e813[_0x45f1d(0x2be)]&&!_0x47e813[_0x45f1d(0x166)];}function _0x5428aa(_0x17de18,_0x36b94e){const _0x434c5a=_0x9884d2;return{..._0x36b94e,'data':(0x0,_0x5199be[_0x434c5a(0x21a)])(_0x70e246(_0x17de18,(0x0,_0x5199be[_0x434c5a(0x22c)])(_0x36b94e[_0x434c5a(0x1b4)])))};}function _0x4893b9(_0x569776,_0x56db55){return{..._0x56db55,'data':_0x70e246(_0x569776,_0x56db55['data'])};}function _0x2ffb12(_0x2e888b,_0xa6dad2){const _0x324788=_0x9884d2;let _0xf2d938=_0xa6dad2[_0x324788(0x1b4)];return{..._0xa6dad2,'data':{..._0xf2d938,'changesets':_0xf2d938[_0x324788(0x3cd)][_0x324788(0x333)](_0x276145=>(0x0,_0x5199be['parseChangesetToProtocol'])(_0x70e246(_0x2e888b,(0x0,_0x5199be['parseProtocolChangeset'])(_0x276145))))}};}function _0x70e246(_0xa509bc,_0x1b3cc1){const _0x496533=_0x9884d2;return _0x5453e8(_0xa509bc)[_0x496533(0x396)](_0x1b3cc1,_0x1acbbf(_0xa509bc));}function _0x5453e8(_0x2ec3fa){const _0x403bf6=_0x9884d2;if(!_0x2ec3fa[_0x403bf6(0x166)])throw Error(_0x403bf6(0x241));return _0x2ec3fa[_0x403bf6(0x166)];}function _0x1acbbf(_0x354c5f){const _0x26d162=_0x9884d2;return{'localUnitId':_0x354c5f[_0x26d162(0x2be)],'unitType':_0x354c5f[_0x26d162(0x294)],'target':_0x354c5f[_0x26d162(0x479)]};}let _0x5089ce=function(_0x35e7c6){const _0x5d786b=_0x9884d2;return _0x35e7c6[_0x35e7c6[_0x5d786b(0x1d7)]=0x0]=_0x5d786b(0x1d7),_0x35e7c6[_0x35e7c6[_0x5d786b(0x401)]=0x1]=_0x5d786b(0x401),_0x35e7c6[_0x35e7c6['OFFLINE']=0x2]='OFFLINE',_0x35e7c6[_0x35e7c6[_0x5d786b(0x1d6)]=0x3]=_0x5d786b(0x1d6),_0x35e7c6;}({}),_0x1f73eb={[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x346)]]:'session.join-failed',[_0x349630[_0x9884d2(0x440)]['JOIN_ROOM_FULL']]:_0x9884d2(0x115),[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x13d)]]:_0x9884d2(0x113),[_0x349630['CmdRspCode'][_0x9884d2(0x1f2)]]:'session.room-permission-denied',[_0x349630[_0x9884d2(0x440)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x9884d2(0x459)},_0x188c53=class extends _0x4b2515[_0x9884d2(0x190)]{get[_0x9884d2(0x2e5)](){const _0xdeba48=_0x9884d2;return this[_0xdeba48(0x250)][_0xdeba48(0x383)]();}constructor(_0x3328e5,_0x41f739,_0x54e447,_0x16b47c,_0x4f8fc2,_0x19f651,_0x116cee,_0x34deb2){const _0x22668a=_0x9884d2;super(),this[_0x22668a(0x1fd)]=_0x3328e5,this[_0x22668a(0x344)]=_0x54e447,this[_0x22668a(0x3c6)]=_0x16b47c,this[_0x22668a(0x13c)]=_0x4f8fc2,this['_commentService']=_0x19f651,this['_collaborationUIEventService']=_0x116cee,this[_0x22668a(0x3d8)]=_0x34deb2,_0x60128a(this,_0x22668a(0x250),new _0xccd21e[(_0x22668a(0x379))](0x0)),_0x60128a(this,_0x22668a(0x148),this[_0x22668a(0x250)][_0x22668a(0x43c)]()),_0x60128a(this,_0x22668a(0x3f8),new _0xccd21e[(_0x22668a(0x200))]()),_0x60128a(this,_0x22668a(0x2e6),this['_event$'][_0x22668a(0x43c)]()),_0x60128a(this,'_socket',void 0x0),_0x60128a(this,_0x22668a(0x1a5),void 0x0),_0x60128a(this,_0x22668a(0x36d),void 0x0),_0x60128a(this,_0x22668a(0x1c6),!0x1),_0x60128a(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x41f739['pipe']((0x0,_0xccd21e['takeUntil'])(this[_0x22668a(0x36c)]))[_0x22668a(0x23b)](_0x3dcdec=>{const _0x24100c=_0x22668a;if(_0x3dcdec!==void 0x0){if(this[_0x24100c(0x160)]=_0x3dcdec,_0x3dcdec)this[_0x24100c(0x306)](_0x3dcdec),this[_0x24100c(0x1a5)]=_0x3dcdec[_0x24100c(0x400)]['subscribe'](_0x4db2ef=>{const _0x4028ef=_0x24100c;_0x4db2ef[_0x4028ef(0x3f4)]===this['_identity'][_0x4028ef(0x479)]['unitId']&&this[_0x4028ef(0x33d)](_0x4db2ef);});else{var _0x1df242;this[_0x24100c(0x426)](),this['_sessionStatus$'][_0x24100c(0x17e)](0x2),(_0x1df242=this[_0x24100c(0x1a5)])==null||_0x1df242[_0x24100c(0x29f)](),this[_0x24100c(0x1a5)]=null;}}});}[_0x9884d2(0x444)](){const _0x7823af=_0x9884d2;var _0x51c1c5;return((_0x51c1c5=this['_socket'])==null?void 0x0:_0x51c1c5[_0x7823af(0x417)])??null;}['dispose'](){const _0x36f7d9=_0x9884d2;super['dispose'](),this[_0x36f7d9(0x243)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x17e)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x41f)]();}[_0x9884d2(0x243)](){const _0x456ccd=_0x9884d2;var _0x44f8b7;this[_0x456ccd(0x426)](),(_0x44f8b7=this[_0x456ccd(0x160)])==null||_0x44f8b7[_0x456ccd(0x2d6)]({'cmd':_0x349630[_0x456ccd(0x293)][_0x456ccd(0x2fc)],'data':{'roomID':this[_0x456ccd(0x1fd)][_0x456ccd(0x479)][_0x456ccd(0x3f0)]}}),this[_0x456ccd(0x3f8)]['complete'](),this['_sessionStatus$']['complete']();}['_onCombEvent'](_0x16cfb1){const _0x1a92c2=_0x9884d2;_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)][_0x1a92c2(0x213)]?this[_0x1a92c2(0x2b7)](_0x16cfb1):_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)]['RECV']&&this[_0x1a92c2(0x418)](_0x16cfb1);}['_joinRoom'](_0x16abef){const _0x1bcd09=_0x9884d2;this['_sessionStatus$']['next'](0x1),_0x16abef[_0x1bcd09(0x2d6)]({'cmd':_0x349630[_0x1bcd09(0x293)][_0x1bcd09(0x213)],'routeKey':this['_identity'][_0x1bcd09(0x479)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x1bcd09(0x479)][_0x1bcd09(0x3f0)]}]}});}[_0x9884d2(0x2b7)](_0x125217){const _0x333da2=_0x9884d2;var _0x51e532;if(_0x125217[_0x333da2(0x3f6)]in _0x1f73eb){this['_collaborationUIEventService'][_0x333da2(0x1db)]({'id':'JOIN_ROOM_FAILED','data':_0x1f73eb[_0x125217['code']]}),this[_0x333da2(0x250)][_0x333da2(0x17e)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x18cd46=(_0x51e532=_0x125217[_0x333da2(0x1b4)][_0x333da2(0x3b4)][this['_identity'][_0x333da2(0x479)][_0x333da2(0x3f0)]])==null?void 0x0:_0x51e532['members'];_0x18cd46&&_0x18cd46[_0x333da2(0x1e3)](_0x4bfff7=>this['_memberService'][_0x333da2(0x2d4)](this[_0x333da2(0x1fd)][_0x333da2(0x2be)],_0x4bfff7));}[_0x9884d2(0x418)](_0x390f25){const _0x26bdca=_0x9884d2;try{let _0x4389aa=_0x1441b1(this[_0x26bdca(0x1fd)],_0x390f25[_0x26bdca(0x1b4)]);for(let _0x41a542 of _0x4389aa)switch(_0x41a542[_0x26bdca(0x1b3)]){case _0x5199be[_0x26bdca(0x261)]['USERS_ENTER']:this[_0x26bdca(0x274)](_0x41a542),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x197)]:this['_onUserLeave'](_0x41a542),this[_0x26bdca(0x3f8)]['next'](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1f7)]:case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x238)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x26bdca(0x30b)](),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1b1)]:this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0x26bdca(0x1d1)+JSON[_0x26bdca(0x3ee)](_0x41a542)),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x3df)]:this[_0x26bdca(0x31f)][_0x26bdca(0x445)](_0x41a542[_0x26bdca(0x1b4)]),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;default:this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);}}catch(_0xcf2cfe){this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0xcf2cfe,_0x390f25);}}['_onUserJoin'](_0x4fed8e){const _0x4b61a2=_0x9884d2;this[_0x4b61a2(0x13c)][_0x4b61a2(0x2d4)](this[_0x4b61a2(0x1fd)][_0x4b61a2(0x2be)],_0x4fed8e[_0x4b61a2(0x1b4)]);}['_onUserLeave'](_0x4ceeeb){const _0x2fa8fb=_0x9884d2;this[_0x2fa8fb(0x13c)][_0x2fa8fb(0x110)](this[_0x2fa8fb(0x1fd)][_0x2fa8fb(0x2be)],_0x4ceeeb['data']['memberID']);}async[_0x9884d2(0x2d6)](_0x3569e7,_0x382908){const _0x4d6609=_0x9884d2;if(this[_0x4d6609(0x2e5)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0xfe0bf4=_0x17beb4(this[_0x4d6609(0x1fd)],_0x3569e7);_0xfe0bf4['eventID']===_0x5199be['CollaborationEvent'][_0x4d6609(0x209)]&&(this[_0x4d6609(0x399)](),this[_0x4d6609(0x157)](_0xfe0bf4)),this[_0x4d6609(0x160)][_0x4d6609(0x2d6)]({'cmd':_0x349630[_0x4d6609(0x293)]['INGEST'],'routeKey':this[_0x4d6609(0x1fd)][_0x4d6609(0x479)][_0x4d6609(0x3f0)],'routeType':'','data':_0xfe0bf4});}catch(_0x567545){this['_logService']['error'](_0x567545);}}[_0x9884d2(0x399)](){const _0x20855c=_0x9884d2;this[_0x20855c(0x36d)]=setTimeout(()=>{const _0x4345f5=_0x20855c;this[_0x4345f5(0x36d)]=null,this[_0x4345f5(0x427)][_0x4345f5(0x1db)]({'id':_0x4345f5(0x3db)});},this[_0x20855c(0x3c6)][_0x20855c(0x32f)](_0x20855c(0x207))??0x4e20);}[_0x9884d2(0x30b)](){const _0x202a8e=_0x9884d2;this[_0x202a8e(0x36d)]&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}[_0x9884d2(0x157)](_0x12a38e){const _0x58aa6b=_0x9884d2;if(!this[_0x58aa6b(0x1c6)])return;let {data:_0x111d58}=_0x12a38e,{unitID:_0x407241,changeset:_0x20f267}=_0x111d58,{mutations:_0x5af8a7,type:_0x42d901}=_0x20f267;this[_0x58aa6b(0x111)]={'unitId':_0x407241,'type':_0x42d901,'startTime':performance[_0x58aa6b(0x17d)](),'stopTime':0x0,'duration':0x0,'size':_0x3edac7(_0x5af8a7)};}[_0x9884d2(0x20c)](){const _0x157b65=_0x9884d2;if(this[_0x157b65(0x1c6)]){if(!this[_0x157b65(0x111)]){this[_0x157b65(0x344)][_0x157b65(0x1b5)](_0x157b65(0x192),_0x157b65(0x26d));return;}this[_0x157b65(0x111)][_0x157b65(0x471)]=performance[_0x157b65(0x17d)](),this[_0x157b65(0x111)][_0x157b65(0x226)]=this[_0x157b65(0x111)][_0x157b65(0x471)]-this[_0x157b65(0x111)][_0x157b65(0x3e4)],this[_0x157b65(0x3d8)][_0x157b65(0x252)](_0x157b65(0x33e),this[_0x157b65(0x111)]),this[_0x157b65(0x111)]=null;}}[_0x9884d2(0x426)](){this['_telemetryInfo']=null;}};_0x188c53=_0x33ad5b([_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x50f206)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x16a8e3)),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ca46c[_0x9884d2(0x47c)]))],_0x188c53);let _0x2b4688=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x364));function _0x41bf27(_0x144972){const _0x26cd95=_0x9884d2;return _0x26cd95(0x184)+_0x144972;}function _0x116324(_0x2f1878){const _0x2284a9=_0x9884d2;let {unitID:_0x14735a,mutations:_0x276379}=_0x2f1878;return{'unitId':_0x14735a,'subUnitId':_0x276379['length']>0x0?_0x276379[0x0][_0x2284a9(0x3f5)][_0x2284a9(0x488)]:null};}let _0x2326c2=class{constructor(_0x2f2be1,_0x4d7d67,_0x5b342d){const _0x253ca1=_0x9884d2;this[_0x253ca1(0x46a)]=_0x2f2be1,this[_0x253ca1(0x2a6)]=_0x4d7d67,this[_0x253ca1(0x26c)]=_0x5b342d;}['transformSelections'](_0x598e45){const _0x4270a0=_0x9884d2;var _0x1147b6,_0x388580;let _0x2dac76=this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4ea268[_0x4270a0(0x34c)]),{unitId:_0x4bd23b,subUnitId:_0x1a1958}=_0x116324(_0x598e45),_0x312573=_0x2dac76==null?void 0x0:_0x2dac76[_0x4270a0(0x316)](_0x4bd23b)[_0x4270a0(0x204)](),_0x3963b9=(_0x1147b6=this['_instanceService'][_0x4270a0(0x380)](_0x4bd23b))==null||(_0x1147b6=_0x1147b6[_0x4270a0(0x470)]())==null?void 0x0:_0x1147b6['getSheetId']();if(_0x312573[_0x4270a0(0x147)]===0x0||!_0x4bd23b||!_0x1a1958)return;let _0x51ba0a=[{'id':_0x4ea268[_0x4270a0(0x20a)]['id'],'params':{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4b2515[_0x4270a0(0x1a2)][_0x4270a0(0x2ee)](_0x312573)}}],_0x35f34d=this[_0x4270a0(0x2a6)]['transformMutationsWithChangeset'](_0x598e45,_0x51ba0a);if(!(0x0,_0x5199be[_0x4270a0(0x358)])(_0x35f34d))throw _0x35f34d['error'];let _0x4bf711=(_0x388580=_0x35f34d['m2Prime'][0x0])==null||(_0x388580=_0x388580[_0x4270a0(0x3f5)])==null?void 0x0:_0x388580['selections'];if(Array[_0x4270a0(0x3cb)](_0x4bf711)&&_0x4bf711[_0x4270a0(0x147)]){if(_0x4bf711['length']===_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections']['length']&&_0x4bf711['every']((_0x18bae7,_0x5a510e)=>_0x4b2515[_0x4270a0(0x2a3)]['equals'](_0x18bae7[_0x4270a0(0x1e6)],_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections'][_0x5a510e][_0x4270a0(0x1e6)])))return;this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4b2515[_0x4270a0(0x16b)])[_0x4270a0(0x47a)](_0x4ea268[_0x4270a0(0x20a)]['id'],{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4bf711});}}};_0x2326c2=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x5199be['ITransformService']),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x405)])],_0x2326c2);let _0x55fbad=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1c0)),_0xa9151d=function(_0x5f1a02){const _0x5717fd=_0x9884d2;return _0x5f1a02[_0x5f1a02['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5717fd(0x326),_0x5f1a02[_0x5f1a02['OTHER_CLIENTS_EDITING']=0x1]=_0x5717fd(0x3a5),_0x5f1a02;}({});function _0x21a96d(_0x5b4fe3){const _0x4c94b2=_0x9884d2;var _0x2d1321;return!!((_0x2d1321=_0x5b4fe3[_0x4c94b2(0x3f5)])!=null&&_0x2d1321[_0x4c94b2(0x336)]);}let _0xd9ab7a=new Set([_0x4ea268['InsertSheetMutation']['id']]),_0x5bc0ca=new Set([_0x471a79[_0x9884d2(0x441)]['id'],_0x471a79['EnsureSlideMasterPageMutation']['id'],_0x471a79[_0x9884d2(0x14d)]['id'],_0x471a79[_0x9884d2(0x3d5)]['id']]);function _0x331267(_0x47a1d7,_0x5b4ee4=_0xd9ab7a){const _0x2846f6=_0x9884d2;let _0x1112a9=[];for(let _0x56ae63 of _0x47a1d7){if(_0x5b4ee4[_0x2846f6(0x40a)](_0x56ae63['id'])){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}if(_0x21a96d(_0x56ae63)){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);}return _0x1112a9;}function _0xd48940(_0x2f6cc1,_0x180d16,_0x2cec70,_0xc278c4,_0x1b867c){const _0xde0724=_0x9884d2;let _0x205c62=_0x331267(_0x2f6cc1),_0x4e4ebb=_0x1b867c[_0xde0724(0x203)](),_0x36de35=(_0x4e4ebb==null?void 0x0:_0x4e4ebb[_0xde0724(0x36b)])??_0xde0724(0x1a8),_0x2cd25c=(_0x4e4ebb==null?void 0x0:_0x4e4ebb['memberID'])??_0xde0724(0x1a8);return{'changeset':{'unitID':_0x180d16,'type':(0x0,_0x5199be[_0xde0724(0x433)])(_0x2cec70['getUnitType'](_0x180d16)),'baseRev':_0xc278c4[_0xde0724(0x421)](_0x180d16),'revision':0x0,'userID':_0x36de35,'memberID':_0x2cd25c,'mutations':_0x205c62},'pendingMutations':_0x2f6cc1[_0xde0724(0x3d6)](_0x205c62[_0xde0724(0x147)])};}let _0x583864=_0xd48940;function _0x1fdd81(_0x28b4ff,_0x3314cc,_0x5d8dad,_0x325b1d,_0x30ff46){const _0x45a2dd=_0x9884d2;let _0x7c0c75=_0x331267(_0x28b4ff,_0x5bc0ca),_0x18aefa=_0x30ff46[_0x45a2dd(0x203)](),_0x1aa80a=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x36b)])??_0x45a2dd(0x1a8),_0x111963=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x417)])??_0x45a2dd(0x1a8);return{'changeset':{'unitID':_0x3314cc,'type':(0x0,_0x5199be['mapDocumentTypeToUniverInstanceType'])(_0x5d8dad[_0x45a2dd(0x429)](_0x3314cc)),'baseRev':_0x325b1d['getCurrentRevOfUnit'](_0x3314cc),'revision':0x0,'userID':_0x1aa80a,'memberID':_0x111963,'mutations':_0x7c0c75},'pendingMutations':_0x28b4ff['slice'](_0x7c0c75['length'])};}function _0x23ac61(_0x296586,_0x57fe11,_0x34d7ef,_0xb63f61,_0x3e94a6){const _0x31c924=_0x9884d2;let _0x372146=_0x296586['reduce']((_0x97f275,_0x1f403f)=>{const _0x4cb02e=_0x328a;let _0x42036e=_0x97f275[_0x97f275['length']-0x1],{id:_0x24937a}=_0x42036e??{},{id:_0x1fb9cd,type:_0x27d312}=_0x1f403f,_0x47fe1f=_0x1f403f[_0x4cb02e(0x3f5)];if(_0x24937a&&_0x24937a!==_0x1fb9cd)throw Error(_0x4cb02e(0x3ed)+_0x24937a+_0x4cb02e(0x1ca)+_0x1fb9cd+'.');if(!_0x42036e)return[{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];let _0x2344f8=_0x42036e[_0x4cb02e(0x3f5)];return _0x454968(_0x2344f8,_0x47fe1f)?[..._0x97f275[_0x4cb02e(0x3d6)](0x0,-0x1),{..._0x42036e,'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f['unitId'],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x4b2515[_0x4cb02e(0x19a)]['compose'](_0x2344f8[_0x4cb02e(0x37a)],_0x47fe1f[_0x4cb02e(0x37a)])}}]:[..._0x97f275,{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f['textRanges'],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];},[]),_0x325a41=_0x3e94a6['getCurrentUser'](),_0x16f8fc=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x36b)])??_0x31c924(0x1a8),_0x264aed=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x417)])??'unknown';return{'changeset':{'unitID':_0x57fe11,'type':(0x0,_0x5199be[_0x31c924(0x433)])(_0x34d7ef[_0x31c924(0x429)](_0x57fe11)),'baseRev':_0xb63f61[_0x31c924(0x421)](_0x57fe11),'revision':0x0,'userID':_0x16f8fc,'memberID':_0x264aed,'mutations':_0x372146},'pendingMutations':_0x296586[_0x31c924(0x3d6)](_0x296586[_0x31c924(0x147)])};}function _0x454968(_0xf36500,_0x3510da){const _0x1b3af1=_0x9884d2;return!_0x5af5a8(_0xf36500)&&!_0x5af5a8(_0x3510da)&&_0x31b485(_0xf36500[_0x1b3af1(0x37a)],_0x3510da[_0x1b3af1(0x37a)]);}function _0x5af5a8(_0x275338){const _0x345f2a=_0x9884d2;return _0x275338[_0x345f2a(0x3e6)]!==void 0x0;}function _0x31b485(_0x566e08,_0x69f0d8){return _0x1d625f(_0x566e08)&&_0x1d625f(_0x69f0d8)&&!_0x567205(_0x566e08)&&!_0x567205(_0x69f0d8)&&!_0xa2447e(_0x566e08)&&!_0xa2447e(_0x69f0d8);}function _0x1d625f(_0x449392){const _0x17d5dc=_0x9884d2;return _0x566349(_0x449392)[_0x17d5dc(0x3e3)](_0x50bf05=>_0xf69dff(_0x50bf05)&&_0x50bf05['et']===_0x17d5dc(0x28f));}function _0xa2447e(_0x189c80){const _0x17c5ee=_0x9884d2;return _0x566349(_0x189c80)['some'](_0x31940b=>Array[_0x17c5ee(0x3cb)](_0x31940b)||typeof _0x31940b==_0x17c5ee(0x212)||typeof _0x31940b==_0x17c5ee(0x266));}function _0x567205(_0x4e6d92){const _0x4097e7=_0x9884d2;return _0x566349(_0x4e6d92)['some'](_0x4c63a8=>!_0xf69dff(_0x4c63a8)||_0x4c63a8['et']!==_0x4097e7(0x28f)||!Array[_0x4097e7(0x3cb)](_0x4c63a8['e'])?!0x1:_0x4c63a8['e'][_0x4097e7(0x3e3)](_0x2e4785=>!_0xf69dff(_0x2e4785)||!_0xf69dff(_0x2e4785[_0x4097e7(0x450)])?!0x1:Object[_0x4097e7(0x167)][_0x4097e7(0x30e)][_0x4097e7(0x43d)](_0x2e4785[_0x4097e7(0x450)],'tables')||Object['prototype'][_0x4097e7(0x30e)]['call'](_0x2e4785['body'],_0x4097e7(0x35c))||Object[_0x4097e7(0x167)][_0x4097e7(0x30e)]['call'](_0x2e4785[_0x4097e7(0x450)],_0x4097e7(0x324))));}function _0x566349(_0x57a02a){const _0x971bf3=_0x9884d2;if(!Array[_0x971bf3(0x3cb)](_0x57a02a))return[];let _0x142d23=_0x57a02a[_0x971bf3(0x473)](_0x971bf3(0x450))?_0x57a02a:_0x57a02a[_0x971bf3(0x34a)](_0x10955d=>Array[_0x971bf3(0x3cb)](_0x10955d)&&_0x10955d[_0x971bf3(0x473)](_0x971bf3(0x450)));if(!Array[_0x971bf3(0x3cb)](_0x142d23))return[];let _0x3000c0=_0x142d23[_0x971bf3(0x172)](_0x971bf3(0x450));return _0x3000c0===-0x1?[]:_0x142d23[_0x971bf3(0x3d6)](_0x3000c0+0x1);}function _0xf69dff(_0x2b96bd){const _0x54b936=_0x9884d2;return typeof _0x2b96bd==_0x54b936(0x26e)&&!!_0x2b96bd&&!Array[_0x54b936(0x3cb)](_0x2b96bd);}function _0x415646(_0x52f55d,_0x3b32a3){const _0x4d6866=_0x9884d2;let _0x5e1520=new _0xccd21e[(_0x4d6866(0x375))](0x1);return setTimeout(()=>_0x5e1520[_0x4d6866(0x17e)](_0x3b32a3),_0x52f55d),_0x5e1520[_0x4d6866(0x43c)]()['pipe']((0x0,_0xccd21e[_0x4d6866(0x1dc)])(0x1));}var _0x5e05f6,_0x25d68a,_0x1aa808;let _0x500434=function(_0x4c3ad0){const _0x3c4fa1=_0x9884d2;return _0x4c3ad0[_0x3c4fa1(0x3dd)]='not_collab',_0x4c3ad0['SYNCED']=_0x3c4fa1(0x443),_0x4c3ad0['PENDING']=_0x3c4fa1(0x1a3),_0x4c3ad0[_0x3c4fa1(0x452)]=_0x3c4fa1(0x1cf),_0x4c3ad0['AWAITING_WITH_PENDING']=_0x3c4fa1(0x283),_0x4c3ad0[_0x3c4fa1(0x338)]=_0x3c4fa1(0x2dc),_0x4c3ad0['CONFLICT']=_0x3c4fa1(0x1bf),_0x4c3ad0['OFFLINE']=_0x3c4fa1(0x219),_0x4c3ad0;}({}),_0x5b1e26=0x4e20,_0x11c58e=0x2bf20;var _0x26e5b5=class{constructor(_0x59b3ec,_0x3a0fb3,_0x237086,_0x685c24,_0x4abec9,_0x412b01,_0x43fd0d,_0x4489b5,_0x1fbcb8){const _0xae4397=_0x9884d2;this[_0xae4397(0x258)]=_0x59b3ec,this[_0xae4397(0x415)]=_0x3a0fb3,this[_0xae4397(0x3f2)]=_0x4abec9,this['_commandService']=_0x412b01,this[_0xae4397(0x25b)]=_0x43fd0d,this[_0xae4397(0x196)]=_0x4489b5,this['_localCacheService']=_0x1fbcb8,_0x60128a(this,_0xae4397(0x402),null),_0x60128a(this,_0xae4397(0x44f),[]),this[_0xae4397(0x402)]=_0x237086,this['_pendingMutations']=_0x685c24;}['_checkMissing'](_0x40d468){const _0x54a183=_0x9884d2;let _0x370816=this[_0x54a183(0x196)]['getCurrentRevOfUnit'](this[_0x54a183(0x258)]);return _0x40d468['revision']>_0x370816+0x1&&(this[_0x54a183(0x3f2)][_0x54a183(0x228)]({'from':_0x370816,'to':_0x40d468[_0x54a183(0x2f4)]-0x1}),!0x0);}[_0x9884d2(0x244)](_0x549ae2){const _0x1c45c2=_0x9884d2;this[_0x1c45c2(0x25b)][_0x1c45c2(0x3b7)](this['unitID'],_0x549ae2);}[_0x9884d2(0x233)](_0x3b5ab9){const _0x231bfd=_0x9884d2;var _0x1f3ab4,_0x64701f;(_0x1f3ab4=(_0x64701f=this['_handler'])[_0x231bfd(0x3c2)])==null||_0x1f3ab4['call'](_0x64701f,_0x3b5ab9);}['_prepareTransformSelections'](_0x4b581a){const _0x186a58=_0x9884d2;var _0x4266fa,_0x22d74f;return((_0x4266fa=(_0x22d74f=this['_handler'])[_0x186a58(0x3da)])==null?void 0x0:_0x4266fa['call'](_0x22d74f,_0x4b581a))??null;}[_0x9884d2(0x3d0)](_0x44adb0){const _0x131ffa=_0x9884d2;var _0x48aafb,_0xa8d939;return(_0x48aafb=(_0xa8d939=this[_0x131ffa(0x3f2)])[_0x131ffa(0x31a)])==null?void 0x0:_0x48aafb['call'](_0xa8d939,_0x44adb0);}[_0x9884d2(0x369)](_0x1a423e){const _0x52c039=_0x9884d2;var _0x385062,_0xe3e5b1;return(_0x385062=(_0xe3e5b1=this[_0x52c039(0x3f2)])[_0x52c039(0x330)])==null?void 0x0:_0x385062[_0x52c039(0x43d)](_0xe3e5b1,_0x1a423e);}['_transformRemoteChangesetByIMECache'](_0x34d1fb){const _0xeee69a=_0x9884d2;var _0x3d9487,_0x45a58a;return((_0x3d9487=(_0x45a58a=this[_0xeee69a(0x3f2)])[_0xeee69a(0x311)])==null?void 0x0:_0x3d9487[_0xeee69a(0x43d)](_0x45a58a,_0x34d1fb))??_0x34d1fb;}[_0x9884d2(0x362)](_0x322c9b){const _0x17be89=_0x9884d2;var _0x41d443,_0x6375b7;return((_0x41d443=(_0x6375b7=this[_0x17be89(0x3f2)])[_0x17be89(0x206)])==null?void 0x0:_0x41d443[_0x17be89(0x43d)](_0x6375b7,_0x322c9b))??_0x322c9b;}[_0x9884d2(0x476)](_0x45f5dc){const _0x20fd80=_0x9884d2;if(this[_0x20fd80(0x415)]===_0x4b2515[_0x20fd80(0x223)][_0x20fd80(0x10f)]){let {unitID:_0xb29239,mutations:_0x2f4384,memberID:_0x1adfc3}=_0x45f5dc,_0x2169a3=_0x2f4384[_0x20fd80(0x147)]>0x0?_0x2f4384[0x0][_0x20fd80(0x3f5)][_0x20fd80(0x229)]:[];if(Array[_0x20fd80(0x3cb)](_0x2169a3)&&_0x2169a3[_0x20fd80(0x147)]>0x0){var _0x128ca5,_0x1710b1;(_0x128ca5=(_0x1710b1=this[_0x20fd80(0x3f2)])['onSyncEditingCollabCursor'])==null||_0x128ca5[_0x20fd80(0x43d)](_0x1710b1,{'unitID':_0xb29239,'memberID':_0x1adfc3,'textRanges':_0x2169a3});}}}['_updateLocalCache'](){const _0x1eaf8d=_0x9884d2;var _0x12a7db;(_0x12a7db=this[_0x1eaf8d(0x323)])==null||_0x12a7db['updateOfflineData'](this[_0x1eaf8d(0x258)],this['type'],this[_0x1eaf8d(0x402)],this[_0x1eaf8d(0x44f)]);}[_0x9884d2(0x21d)](){const _0x58dc3a=_0x9884d2;return this[_0x58dc3a(0x196)][_0x58dc3a(0x421)](this[_0x58dc3a(0x258)]);}['_incrementRevisionNumber'](){const _0x5855f1=_0x9884d2;this['_revisionService'][_0x5855f1(0x404)](this['unitID']);}['_executeRemoteChangeset'](_0x4fed3a){const _0x2dca5b=_0x9884d2;let _0x4d4a85=this[_0x2dca5b(0x3ba)](_0x4fed3a);_0x4d4a85=this[_0x2dca5b(0x362)](_0x4d4a85);let _0x5a4edc=this[_0x2dca5b(0x1d3)](_0x4d4a85),_0x1c5d1c=(0x0,_0x4b2515[_0x2dca5b(0x3d4)])(_0x4d4a85[_0x2dca5b(0x25c)],this[_0x2dca5b(0x2ef)],{'fromCollab':!0x0});if(!_0x1c5d1c[_0x2dca5b(0x312)])throw _0x5a4edc==null||_0x5a4edc['rollback'](),_0x1c5d1c[_0x2dca5b(0x1b5)]instanceof Error?_0x1c5d1c['error']:Error(_0x1c5d1c[_0x2dca5b(0x1b5)]??_0x2dca5b(0x308));_0x5a4edc==null||_0x5a4edc[_0x2dca5b(0x120)](),this[_0x2dca5b(0x3d0)](_0x4d4a85),this[_0x2dca5b(0x369)](_0x4d4a85),this[_0x2dca5b(0x244)](_0x4fed3a),this['_transformSelections'](_0x4d4a85),this['_syncEditingCollabCursor'](_0x4d4a85),this[_0x2dca5b(0x301)]();}};let _0x57c5eb=class extends _0x26e5b5{constructor(_0x4e67c2,_0x59283d,_0x3eb65b,_0x5ed7ab,_0x4bc597,_0x87df29,_0x4fad72,_0x17e8d5,_0x578edc,_0x1f4939){const _0x42edb3=_0x9884d2;super(_0x4e67c2,_0x59283d,null,[],_0x3eb65b,_0x4fad72,_0x87df29,_0x5ed7ab,_0x1f4939),this[_0x42edb3(0x46a)]=_0x4bc597,this[_0x42edb3(0x344)]=_0x17e8d5,this['_transformService']=_0x578edc,this['localCacheService']=_0x1f4939,_0x60128a(this,_0x42edb3(0x45f),'synced');}[_0x9884d2(0x3ea)](_0x52d705){const _0x2207f1=_0x9884d2;let _0x45db65=this[_0x2207f1(0x46a)]['createInstance'](_0x27ecb8,this[_0x2207f1(0x258)],this[_0x2207f1(0x415)],[_0x52d705],this[_0x2207f1(0x3f2)]);return _0x45db65['_schedule'](),_0x45db65[_0x2207f1(0x34f)](),_0x45db65;}['onRemoteChangeset'](_0x36d36e){const _0x5e0fc5=_0x9884d2;if(this['_checkMissing'](_0x36d36e))return this['_injector'][_0x5e0fc5(0x40d)](_0x394019,this[_0x5e0fc5(0x258)],this[_0x5e0fc5(0x415)],null,[],null,[_0x36d36e],this['_handler']);try{let _0x438edb=this[_0x5e0fc5(0x2a6)][_0x5e0fc5(0x457)](_0x36d36e,[_0x5199be[_0x5e0fc5(0x182)]]);if((0x0,_0x5199be[_0x5e0fc5(0x358)])(_0x438edb)){let {c1Prime:_0x1ed816}=_0x438edb;return this[_0x5e0fc5(0x24d)](_0x1ed816),this;}throw _0x438edb['error'];}catch(_0x26b39e){return this['_logService'][_0x5e0fc5(0x1b5)](_0x26b39e),this['_onConflict'](!0x1);}}[_0x9884d2(0x143)](_0x3ecea5){const _0x282eae=_0x9884d2;return this[_0x282eae(0x46a)]['createInstance'](_0x4b9c5b,this[_0x282eae(0x258)],this[_0x282eae(0x415)],null,[],this[_0x282eae(0x3f2)],_0x3ecea5);}['onRemoteAck'](_0x300aa5){const _0x47e78e=_0x9884d2;if(_0x300aa5['revision']<=this[_0x47e78e(0x21d)]())return this;throw Error(_0x47e78e(0x2ed));}['onRemoteRej'](){const _0x9bb747=_0x9884d2;throw Error(_0x9bb747(0x2d2));}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x53b312=_0x9884d2;return this[_0x53b312(0x46a)][_0x53b312(0x40d)](_0x20a1e1,this[_0x53b312(0x258)],this['type'],null,[],this['_handler']);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x496089=_0x9884d2;throw Error(_0x496089(0x225));}[_0x9884d2(0x15d)](){const _0x2a3c5d=_0x9884d2;let _0x2f6df4=this['_revisionService']['getCurrentRevOfUnit'](this[_0x2a3c5d(0x258)]);return this[_0x2a3c5d(0x3f2)][_0x2a3c5d(0x228)]({'from':_0x2f6df4,'to':0x0}),this[_0x2a3c5d(0x46a)][_0x2a3c5d(0x40d)](_0x394019,this[_0x2a3c5d(0x258)],this[_0x2a3c5d(0x415)],null,[],null,[],this[_0x2a3c5d(0x3f2)]);}};_0x57c5eb=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x57c5eb);let _0x27ecb8=_0x5e05f6=class extends _0x26e5b5{constructor(_0x13ba07,_0x523be8,_0x2bf74f,_0x3c2f40,_0x5e298f,_0xf9ff7e,_0x19aa01,_0xff4b1c,_0x2e1f7d,_0x46e01d,_0x4e597c,_0x2e7cce,_0x3991e6,_0x1c7c6c){const _0xc8ed98=_0x9884d2;super(_0x13ba07,_0x523be8,null,_0x2bf74f,_0x3c2f40,_0x2e1f7d,_0x3991e6,_0xf9ff7e,_0x1c7c6c),this['_injector']=_0x5e298f,this[_0xc8ed98(0x1c5)]=_0x19aa01,this['_logService']=_0xff4b1c,this[_0xc8ed98(0x3c6)]=_0x46e01d,this[_0xc8ed98(0x2a6)]=_0x4e597c,this[_0xc8ed98(0x118)]=_0x2e7cce,_0x60128a(this,_0xc8ed98(0x45f),_0xc8ed98(0x1a3)),_0x60128a(this,_0xc8ed98(0x453),null),_0x60128a(this,'_sendingTimer',null);}[_0x9884d2(0x3ea)](_0x13d40d){const _0x5c7aa0=_0x9884d2;return this[_0x5c7aa0(0x44f)]['push'](_0x13d40d),this[_0x5c7aa0(0x34f)](),this;}[_0x9884d2(0x32d)](_0x144ed3){const _0x5ce221=_0x9884d2;if(this[_0x5ce221(0x2db)](_0x144ed3))return this['_clearScheduledTask'](),this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x394019,this['unitID'],this[_0x5ce221(0x415)],null,this['_pendingMutations'],null,[_0x144ed3],this[_0x5ce221(0x3f2)]);try{let _0x4a4f28=this[_0x5ce221(0x2a6)][_0x5ce221(0x457)](_0x144ed3,this[_0x5ce221(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x4a4f28)){let {c1Prime:_0x4a3344,m2Prime:_0x1aa0d0}=_0x4a4f28;this['_executeRemoteChangeset'](_0x4a3344);let _0x3d8d3b=this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x5e05f6,this[_0x5ce221(0x258)],this[_0x5ce221(0x415)],_0x1aa0d0,this['_handler']);this[_0x5ce221(0x3eb)]();let _0xc96928=new Date()[_0x5ce221(0x1c7)](),_0x1fa90a=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x5ce221(0x453)]-_0xc96928,0x0):this[_0x5ce221(0x11b)]();return _0x3d8d3b[_0x5ce221(0x334)](_0x1fa90a),_0x3d8d3b;}throw _0x4a4f28[_0x5ce221(0x1b5)];}catch(_0x3ecf87){return this[_0x5ce221(0x344)][_0x5ce221(0x1b5)](_0x3ecf87),this[_0x5ce221(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x160a1d){const _0x153e11=_0x9884d2;if(_0x160a1d[_0x153e11(0x2f4)]<=this['_getCurrentRevision']())return this;throw Error(_0x153e11(0x2c5));}[_0x9884d2(0x21f)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x46ae34=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x46ae34(0x40d)](_0x20a1e1,this[_0x46ae34(0x258)],this[_0x46ae34(0x415)],null,this[_0x46ae34(0x44f)],this[_0x46ae34(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x334)](_0x55d7cd){const _0x46134b=_0x9884d2;let _0x30d90f=_0x55d7cd??this[_0x46134b(0x11b)]();this['_scheduleCompleteTimestamp']=new Date()['getTime']()+_0x30d90f,this[_0x46134b(0x36a)]=setTimeout(()=>{const _0x411eb3=_0x46134b;this[_0x411eb3(0x3eb)]();let _0x54a717=null;switch(this['type']){case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x465)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)]['UNIVER_DOC']:_0x54a717=this[_0x411eb3(0x44f)]['every'](_0xfc2cc4=>_0xfc2cc4['id']===_0x120ed0['RichTextEditingMutation']['id'])?_0x23ac61(this[_0x411eb3(0x44f)],this['unitID'],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]):_0xd48940(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x281)]:_0x54a717=_0x1fdd81(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515['UniverInstanceType'][_0x411eb3(0x1b9)]:_0x54a717=_0x583864(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515['UniverInstanceType']['UNIVER_BOARD']:_0x54a717=_0xd48940(this[_0x411eb3(0x44f)],this['unitID'],this['_univerInstanceService'],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x267)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this['_revisionService'],this[_0x411eb3(0x1c5)]);break;default:throw Error(_0x411eb3(0x42b)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x2f50d4,pendingMutations:_0x2816a8}=_0x54a717;this[_0x411eb3(0x3f2)]['onSendChangeset'](_0x2f50d4);let _0x568d11=_0x2816a8[_0x411eb3(0x147)]?this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x1e3872,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,_0x2816a8,this[_0x411eb3(0x3f2)],void 0x0):this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x57ae4a,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,this['_handler']);_0x568d11[_0x411eb3(0x34f)](),this[_0x411eb3(0x3f2)][_0x411eb3(0x171)](this,_0x568d11);},_0x30d90f);}[_0x9884d2(0x11b)](){const _0x35a2d9=_0x9884d2;let _0x1c595e=this[_0x35a2d9(0x3c6)][_0x35a2d9(0x32f)](_0x3c0330);return(_0x1c595e==null?void 0x0:_0x1c595e[_0x35a2d9(0x1df)])??0x7d0;}[_0x9884d2(0x1fc)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x13b932=_0x9884d2;this[_0x13b932(0x36a)]!=null&&(clearTimeout(this[_0x13b932(0x36a)]),this['_sendingTimer']=null);}[_0x9884d2(0x143)](_0x2c93df){const _0x2f9e73=_0x9884d2;return this[_0x2f9e73(0x3eb)](),this['_injector'][_0x2f9e73(0x40d)](_0x4b9c5b,this[_0x2f9e73(0x258)],this['type'],null,this[_0x2f9e73(0x44f)],this[_0x2f9e73(0x3f2)],_0x2c93df);}};_0x27ecb8=_0x5e05f6=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x169)])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0xa,_0x5199be['ITransformService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x27ecb8);let _0x57ae4a=_0x25d68a=class extends _0x26e5b5{constructor(_0x180175,_0x4e6460,_0x103a8a,_0x41fc57,_0x2d7d7b,_0xbd2d3c,_0x19ba92,_0x39f69f,_0x52778a,_0x36ff7a,_0x12ae4a){const _0x2cdfeb=_0x9884d2;super(_0x180175,_0x4e6460,_0x103a8a,[],_0x41fc57,_0x19ba92,_0x36ff7a,_0xbd2d3c,_0x12ae4a),this[_0x2cdfeb(0x46a)]=_0x2d7d7b,this['_logService']=_0x39f69f,this['_transformService']=_0x52778a,_0x60128a(this,_0x2cdfeb(0x45f),_0x2cdfeb(0x1cf)),_0x60128a(this,_0x2cdfeb(0x269),0x0),_0x60128a(this,_0x2cdfeb(0x300),0x0),_0x60128a(this,_0x2cdfeb(0x425),void 0x0),_0x60128a(this,_0x2cdfeb(0x14a),void 0x0);}['appendMutation'](_0x2ff023){const _0x255c75=_0x9884d2;this[_0x255c75(0x3eb)]();let _0x3118b4=this['_injector'][_0x255c75(0x40d)](_0x1e3872,this['unitID'],this[_0x255c75(0x415)],this['_awaitingChangeset'],[_0x2ff023],this[_0x255c75(0x3f2)],this[_0x255c75(0x425)]);return _0x3118b4['_updateLocalCache'](),_0x3118b4;}[_0x9884d2(0x32d)](_0x262a6e){const _0x360299=_0x9884d2;if(this[_0x360299(0x2db)](_0x262a6e))return this[_0x360299(0x3eb)](),this['_injector']['createInstance'](_0x394019,this[_0x360299(0x258)],this[_0x360299(0x415)],this[_0x360299(0x402)],[],null,[_0x262a6e],this['_handler']);try{let _0x2aef68=this['_transformService']['transformChangesets']([_0x262a6e],[this[_0x360299(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x2aef68)){let {c1Prime:_0x3062f0,c2Prime:_0x4b0b68}=_0x2aef68;this['_executeRemoteChangeset'](_0x3062f0[0x0]),_0x4b0b68[0x0][_0x360299(0x1d4)]=this['_getCurrentRevision'](),this[_0x360299(0x3eb)]();let _0x22d8ab=this[_0x360299(0x46a)][_0x360299(0x40d)](_0x25d68a,this[_0x360299(0x258)],this[_0x360299(0x415)],_0x4b0b68[0x0],this['_handler']);return _0x22d8ab['_updateLocalCache'](),_0x22d8ab;}throw _0x2aef68[_0x360299(0x1b5)];}catch(_0x3e2744){return this['_logService'][_0x360299(0x1b5)](_0x3e2744),this[_0x360299(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x43d502){const _0x5623cd=_0x9884d2;this['_clearScheduledTask']();let _0x1cbfaa=this[_0x5623cd(0x196)][_0x5623cd(0x421)](this[_0x5623cd(0x258)]);if(_0x43d502[_0x5623cd(0x2f4)]<=_0x1cbfaa)return this;if(this[_0x5623cd(0x2db)](_0x43d502))return this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x394019,this['unitID'],this['type'],this['_awaitingChangeset'],[],_0x43d502['revision'],[],this[_0x5623cd(0x3f2)]);this[_0x5623cd(0x301)]();let _0x593297=this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x57c5eb,this[_0x5623cd(0x258)],this[_0x5623cd(0x415)],this[_0x5623cd(0x3f2)]);return _0x593297[_0x5623cd(0x34f)](),_0x593297;}[_0x9884d2(0x21f)](_0x20fef7){const _0x5c7def=_0x9884d2;return this[_0x5c7def(0x143)](!!(_0x20fef7!=null&&_0x20fef7[_0x5c7def(0x439)]));}['onRemoteRetry'](_0x22f515){const _0x3a992a=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x3a992a(0x3ec)]():(this[_0x3a992a(0x425)]=_0x415646(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x22f515[_0x3a992a(0x12c)]}),this[_0x3a992a(0x14a)]=this[_0x3a992a(0x425)][_0x3a992a(0x23b)](({reqId:_0x5605b8,timeout:_0x42707a})=>{const _0x4b6056=_0x3a992a;this[_0x4b6056(0x447)](_0x5605b8,_0x42707a);}),this);}['toggleOffline'](){const _0x12d032=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x12d032(0x40d)](_0x20a1e1,this['unitID'],this[_0x12d032(0x415)],this[_0x12d032(0x402)],[],this[_0x12d032(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x8780e7=_0x9884d2;this['_handler'][_0x8780e7(0x15f)](this[_0x8780e7(0x402)]);}[_0x9884d2(0x143)](_0x4444aa){const _0x2c7942=_0x9884d2;return this['_clearScheduledTask'](),this[_0x2c7942(0x46a)][_0x2c7942(0x40d)](_0x4b9c5b,this[_0x2c7942(0x258)],this[_0x2c7942(0x415)],this['_awaitingChangeset'],[],this[_0x2c7942(0x3f2)],_0x4444aa);}[_0x9884d2(0x447)](_0x4fd463,_0x23d1b6){const _0x132069=_0x9884d2;var _0x471b8c;_0x4fd463===((_0x471b8c=this['_awaitingChangeset'])==null?void 0x0:_0x471b8c[_0x132069(0x12c)])&&(this[_0x132069(0x1fc)](),this[_0x132069(0x269)]=_0x23d1b6===0x0?0x3e8:Math[_0x132069(0x231)](_0x23d1b6*0x2,_0x5b1e26),this[_0x132069(0x300)]+=this[_0x132069(0x269)]);}[_0x9884d2(0x3eb)](){const _0x176019=_0x9884d2;var _0x3c3163;(_0x3c3163=this['_sender'])==null||_0x3c3163[_0x176019(0x29f)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x57ae4a=_0x25d68a=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x57ae4a);let _0x1e3872=_0x1aa808=class extends _0x26e5b5{constructor(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x560c27,_0x3ca60a,_0x22e410,_0x20d452,_0x1b58c8,_0x32588e,_0x1ee5a6,_0x3f7175){const _0x17e121=_0x9884d2;super(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x20d452,_0x1ee5a6,_0x22e410,_0x3f7175),this[_0x17e121(0x46a)]=_0x3ca60a,this[_0x17e121(0x344)]=_0x1b58c8,this['_transformService']=_0x32588e,this['localCacheService']=_0x3f7175,_0x60128a(this,_0x17e121(0x45f),_0x17e121(0x283)),_0x60128a(this,_0x17e121(0x269),0x0),_0x60128a(this,'_maxTotalRetryTimeout',0x0),_0x60128a(this,_0x17e121(0x425),void 0x0),_0x60128a(this,_0x17e121(0x14a),void 0x0),_0x560c27&&(this[_0x17e121(0x425)]=_0x560c27,this[_0x17e121(0x14a)]=this['_resendTimer']['subscribe'](({reqId:_0x3aba34,timeout:_0x8922ae})=>{const _0x334cbc=_0x17e121;this[_0x334cbc(0x447)](_0x3aba34,_0x8922ae);}));}[_0x9884d2(0x3ea)](_0x31f260){const _0x51a130=_0x9884d2;return this[_0x51a130(0x44f)][_0x51a130(0x42c)](_0x31f260),this;}['onRemoteChangeset'](_0x3c9ef9){const _0x5a7e72=_0x9884d2;if(this['_checkMissing'](_0x3c9ef9))return this[_0x5a7e72(0x3eb)](),this['_injector'][_0x5a7e72(0x40d)](_0x394019,this[_0x5a7e72(0x258)],this[_0x5a7e72(0x415)],this['_awaitingChangeset'],this[_0x5a7e72(0x44f)],null,[_0x3c9ef9],this[_0x5a7e72(0x3f2)]);try{let _0x1938d4=this[_0x5a7e72(0x2a6)][_0x5a7e72(0x270)]([_0x3c9ef9],[this[_0x5a7e72(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x1938d4)){let {c1Prime:_0x5a3057,c2Prime:_0x503401}=_0x1938d4,_0x15b627=this['_transformService'][_0x5a7e72(0x457)](_0x5a3057[0x0],this[_0x5a7e72(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x15b627)){let {c1Prime:_0x1dff4d,m2Prime:_0x32fb21}=_0x15b627;return this[_0x5a7e72(0x24d)](_0x1dff4d),_0x503401[0x0][_0x5a7e72(0x1d4)]=this['_getCurrentRevision'](),this[_0x5a7e72(0x3eb)](),this[_0x5a7e72(0x46a)][_0x5a7e72(0x40d)](_0x1aa808,this['unitID'],this['type'],_0x503401[0x0],_0x32fb21,this[_0x5a7e72(0x3f2)],void 0x0);}throw _0x15b627[_0x5a7e72(0x1b5)];}throw _0x1938d4[_0x5a7e72(0x1b5)];}catch(_0xcb0eed){return this[_0x5a7e72(0x344)]['error'](_0xcb0eed),this['_onConflict'](!0x1);}}[_0x9884d2(0x2de)](_0x1b88f1){const _0xddd303=_0x9884d2;this[_0xddd303(0x3eb)]();let _0x3f2bff=this[_0xddd303(0x21d)]();if(_0x1b88f1['revision']<=_0x3f2bff)return this;if(this[_0xddd303(0x2db)](_0x1b88f1))return this[_0xddd303(0x46a)][_0xddd303(0x40d)](_0x394019,this['unitID'],this[_0xddd303(0x415)],this['_awaitingChangeset'],this['_pendingMutations'],_0x1b88f1[_0xddd303(0x2f4)],[],this[_0xddd303(0x3f2)]);this[_0xddd303(0x301)]();let _0x5ac893=this['_injector'][_0xddd303(0x40d)](_0x27ecb8,this[_0xddd303(0x258)],this[_0xddd303(0x415)],this['_pendingMutations'],this[_0xddd303(0x3f2)]);return _0x5ac893['_schedule'](),_0x5ac893['_updateLocalCache'](),_0x5ac893;}['onRemoteRej'](_0x40cc90){const _0x4a52e2=_0x9884d2;return this[_0x4a52e2(0x143)](!!(_0x40cc90!=null&&_0x40cc90[_0x4a52e2(0x439)]));}['onRemoteRetry'](_0x3fd1aa){const _0x1a3b89=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x1a3b89(0x3ec)]():(this[_0x1a3b89(0x425)]=_0x415646(this[_0x1a3b89(0x269)],{'timeout':this[_0x1a3b89(0x269)],'reqId':_0x3fd1aa['reqId']}),this[_0x1a3b89(0x14a)]=this[_0x1a3b89(0x425)][_0x1a3b89(0x23b)](({reqId:_0x21ab13,timeout:_0x3df606})=>{const _0xc1ea77=_0x1a3b89;this[_0xc1ea77(0x447)](_0x21ab13,_0x3df606);}),this);}[_0x9884d2(0x3ec)](){const _0x133e14=_0x9884d2;return this[_0x133e14(0x3eb)](),this[_0x133e14(0x46a)][_0x133e14(0x40d)](_0x20a1e1,this[_0x133e14(0x258)],this[_0x133e14(0x415)],this[_0x133e14(0x402)],this[_0x133e14(0x44f)],this[_0x133e14(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x5424ec=_0x9884d2;this[_0x5424ec(0x3f2)][_0x5424ec(0x15f)](this['_awaitingChangeset']);}['_onConflict'](_0x47c18a){const _0x23123d=_0x9884d2;return this[_0x23123d(0x3eb)](),this[_0x23123d(0x46a)]['createInstance'](_0x4b9c5b,this[_0x23123d(0x258)],this[_0x23123d(0x415)],null,this[_0x23123d(0x44f)],this[_0x23123d(0x3f2)],_0x47c18a);}[_0x9884d2(0x447)](_0x32a38f,_0x30773c){const _0x571ae4=_0x9884d2;var _0x3ebb03;_0x32a38f===((_0x3ebb03=this[_0x571ae4(0x402)])==null?void 0x0:_0x3ebb03[_0x571ae4(0x12c)])&&(this['resend'](),this[_0x571ae4(0x269)]=_0x30773c===0x0?0x3e8:Math[_0x571ae4(0x231)](_0x30773c*0x2,_0x5b1e26),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x9884d2(0x3eb)](){const _0x53d6b2=_0x9884d2;var _0x4d080a;(_0x4d080a=this[_0x53d6b2(0x14a)])==null||_0x4d080a[_0x53d6b2(0x29f)](),this[_0x53d6b2(0x269)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1e3872=_0x1aa808=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x1e3872);let _0x4b9c5b=class extends _0x26e5b5{constructor(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x326fa5=!0x1,_0x197bcc,_0x23ae37,_0xe51963,_0x4bc507,_0x5388dd,_0xbc9eb2,_0xab6356){const _0x50f092=_0x9884d2;super(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x23ae37,_0xe51963,_0x4bc507,_0xab6356),this['_isPermissionRej']=_0x326fa5,this[_0x50f092(0x2ba)]=_0x197bcc,this['_localeService']=_0x5388dd,this['_collaborationUIEventService']=_0xbc9eb2,this['localCacheService']=_0xab6356,_0x60128a(this,_0x50f092(0x45f),_0x50f092(0x1bf)),this[_0x50f092(0x149)](),this['_showConflictProcessingNotification'](),this['_prepareConflictRecovery']();}[_0x9884d2(0x3ea)](){return this;}['onRemoteChangeset'](){return this;}[_0x9884d2(0x2de)](){return this;}[_0x9884d2(0x21f)](){return this;}[_0x9884d2(0x39b)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x34cec3=_0x9884d2;throw Error(_0x34cec3(0x320));}async[_0x9884d2(0x259)](){const _0x3862dd=_0x9884d2;var _0x4562d8,_0x722370;await((_0x4562d8=this[_0x3862dd(0x323)])==null||(_0x722370=_0x4562d8[_0x3862dd(0x25d)])==null?void 0x0:_0x722370['call'](_0x4562d8,this[_0x3862dd(0x258)],_0x3862dd(0x1bf))[_0x3862dd(0x2d9)](()=>void 0x0));try{var _0x5076fc;await((_0x5076fc=this[_0x3862dd(0x323)])==null?void 0x0:_0x5076fc[_0x3862dd(0x21c)](this['unitID']));}catch{this[_0x3862dd(0x427)][_0x3862dd(0x1db)]({'id':_0x3862dd(0x260),'unitID':this['unitID']});return;}this[_0x3862dd(0x428)]();}[_0x9884d2(0x35b)](){const _0x321d4a=_0x9884d2;this[_0x321d4a(0x427)][_0x321d4a(0x1db)]({'id':_0x321d4a(0x296)});}[_0x9884d2(0x428)](){const _0x640f17=_0x9884d2;this['_isPermissionRej']?this[_0x640f17(0x427)]['emitEvent']({'id':_0x640f17(0x1f9)}):this[_0x640f17(0x427)][_0x640f17(0x1db)]({'id':_0x640f17(0x24a)});}['_disableEditing'](){const _0x31c305=_0x9884d2;this[_0x31c305(0x2ba)][_0x31c305(0x2c7)](new _0x4ea268[(_0x31c305(0x34e))](this['unitID'])['id'],!0x1);}};_0x4b9c5b=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IPermissionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515['IUndoRedoService']),_0x3b5628(0x9,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0xb,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x4b9c5b);let _0x20a1e1=class extends _0x26e5b5{constructor(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3625ee,_0x1de92b,_0x3cbd68,_0x93d6a1,_0x45a137){const _0x200071=_0x9884d2;super(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3cbd68,_0x93d6a1,_0x1de92b,_0x45a137),this[_0x200071(0x46a)]=_0x3625ee,_0x60128a(this,_0x200071(0x45f),_0x200071(0x219));}['appendMutation'](_0x307747){const _0x368033=_0x9884d2;return this[_0x368033(0x44f)][_0x368033(0x42c)](_0x307747),this[_0x368033(0x34f)](),this;}['onRemoteChangeset'](_0x35d57c){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x9884d2(0x2de)](){const _0x1bad45=_0x9884d2;throw Error(_0x1bad45(0x43a));}['onRemoteRej'](){const _0x11f3a2=_0x9884d2;throw Error(_0x11f3a2(0x1e4));}['onRemoteRetry'](){return this;}[_0x9884d2(0x3ec)](){return this;}['toggleOnline'](){const _0x274484=_0x9884d2;let {_injector:_0x334bc7,_pendingMutations:_0x47e987,_awaitingChangeset:_0x3939a1,unitID:_0x145129,_handler:_0x533ca2,type:_0x4291ea}=this,_0x560bee=_0x2f4bec(_0x334bc7,_0x145129,_0x4291ea,_0x3939a1,_0x47e987,_0x533ca2);return _0x560bee instanceof _0x27ecb8?_0x560bee[_0x274484(0x334)]():(_0x560bee instanceof _0x1e3872||_0x560bee instanceof _0x57ae4a)&&_0x560bee['resend'](),_0x560bee;}['resend'](){const _0x13fea1=_0x9884d2;throw Error(_0x13fea1(0x3a4));}};_0x20a1e1=_0x33ad5b([_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x9,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x20a1e1);let _0x394019=class extends _0x26e5b5{constructor(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1125ac,_0x5cc252,_0x1044d9,_0x51f1d9,_0x85aa8,_0x23d3a6,_0x20ee28,_0xe0b3a,_0x178df5,_0x5c00d9){const _0x1c4e63=_0x9884d2;super(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1044d9,_0x20ee28,_0xe0b3a,_0x85aa8,_0x5c00d9),this[_0x1c4e63(0x3bb)]=_0x1125ac,this[_0x1c4e63(0x282)]=_0x5cc252,this[_0x1c4e63(0x46a)]=_0x51f1d9,this['_logService']=_0x23d3a6,this['_transformService']=_0x178df5,this[_0x1c4e63(0x43b)]=_0x5c00d9,_0x60128a(this,_0x1c4e63(0x45f),_0x1c4e63(0x2dc));}['onMissedChangesetFetched'](_0x4632bf){const _0x1f8642=_0x9884d2;try{if(this[_0x1f8642(0x1c4)](_0x4632bf)['missingChangesets'])throw Error(_0x1f8642(0x481));if(this['_handleRemoteChangesets']([...this[_0x1f8642(0x282)]][_0x1f8642(0x122)]((_0x4cfb1f,_0x4442f3)=>_0x4cfb1f['revision']-_0x4442f3['revision']))[_0x1f8642(0x2fb)])return this[_0x1f8642(0x282)]=[],this[_0x1f8642(0x34f)](),this[_0x1f8642(0x3f2)][_0x1f8642(0x228)]({'from':this[_0x1f8642(0x21d)](),'to':0x0}),this;let _0x53d16d=this[_0x1f8642(0x402)],_0x398153=this['_pendingMutations'],_0x2a67e2;if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]!==0x0)_0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x1e3872,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,_0x398153,this['_handler'],void 0x0);else{if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]===0x0)_0x53d16d[_0x1f8642(0x1d4)]=this[_0x1f8642(0x21d)](),_0x2a67e2=this['_injector'][_0x1f8642(0x40d)](_0x57ae4a,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,this[_0x1f8642(0x3f2)]);else{if(_0x398153[_0x1f8642(0x147)]!==0x0){let _0x1ece0e=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x27ecb8,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],_0x398153,this[_0x1f8642(0x3f2)]);_0x1ece0e[_0x1f8642(0x334)](),_0x2a67e2=_0x1ece0e;}else _0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x57c5eb,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this['_handler']);}}return _0x2a67e2[_0x1f8642(0x34f)](),_0x2a67e2;}catch(_0x19b2a3){return this['_logService'][_0x1f8642(0x1b5)](_0x1f8642(0x30c),_0x1f8642(0x3cf),_0x19b2a3),this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x4b9c5b,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this[_0x1f8642(0x402)],this[_0x1f8642(0x44f)],this[_0x1f8642(0x3f2)],!0x1);}}[_0x9884d2(0x1c4)](_0x3a4af5){const _0x184b88=_0x9884d2;this['_acknowledgeAwaitingIfReady']();for(let _0x4d45fa=0x0;_0x4d45fa<_0x3a4af5[_0x184b88(0x147)];_0x4d45fa++){let _0x18a521=_0x3a4af5[_0x4d45fa],_0x1498a6=this[_0x184b88(0x21d)]();if(!(_0x18a521[_0x184b88(0x2f4)]<=_0x1498a6)){if(_0x18a521['revision']>_0x1498a6+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x18a521)){this[_0x184b88(0x463)]();continue;}this[_0x184b88(0x21b)](_0x18a521),this[_0x184b88(0x3fd)]();}}return{'missingChangesets':!0x1};}[_0x9884d2(0x21b)](_0x3b94f1){const _0x2434d4=_0x9884d2;let _0x171d77=_0x3b94f1,_0x310eab=this['_awaitingChangeset'];if(_0x310eab){let _0x2283d7=this[_0x2434d4(0x2a6)][_0x2434d4(0x270)]([_0x3b94f1],[_0x310eab],!0x1);if(!(0x0,_0x5199be[_0x2434d4(0x387)])(_0x2283d7))throw _0x2283d7['error'];_0x171d77=_0x2283d7[_0x2434d4(0x25e)][0x0],_0x310eab=_0x2283d7['c2Prime'][0x0];}let _0x158fed=this[_0x2434d4(0x44f)];if(_0x158fed['length']){let _0x3b5963=this['_transformService']['transformMutationsWithChangeset'](_0x171d77,_0x158fed);if(!(0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x3b5963))throw _0x3b5963[_0x2434d4(0x1b5)];_0x171d77=_0x3b5963[_0x2434d4(0x25e)],_0x158fed=_0x3b5963['m2Prime'];}this[_0x2434d4(0x24d)](_0x171d77),_0x310eab&&(_0x310eab[_0x2434d4(0x1d4)]=this[_0x2434d4(0x21d)]()),this[_0x2434d4(0x402)]=_0x310eab,this[_0x2434d4(0x44f)]=_0x158fed;}[_0x9884d2(0x3fd)](){const _0x1ba19d=_0x9884d2;if(!this[_0x1ba19d(0x402)]||this[_0x1ba19d(0x3bb)]==null)return;let _0xe3012f=this[_0x1ba19d(0x21d)]();if(this[_0x1ba19d(0x3bb)]<=_0xe3012f)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x1ba19d(0x3bb)]+'.');this[_0x1ba19d(0x3bb)]===_0xe3012f+0x1&&this[_0x1ba19d(0x463)]();}['_acknowledgeAwaiting'](){const _0x3a8205=_0x9884d2;this[_0x3a8205(0x301)](),this[_0x3a8205(0x402)]=null,this[_0x3a8205(0x3bb)]=null;}[_0x9884d2(0x272)](_0x5b18cf){const _0x5d6082=_0x9884d2;let _0x162b69=this[_0x5d6082(0x402)];return!_0x162b69||!_0x162b69[_0x5d6082(0x356)]||_0x162b69[_0x5d6082(0x12c)]===null||_0x162b69[_0x5d6082(0x12c)]===void 0x0?!0x1:_0x5b18cf[_0x5d6082(0x258)]===_0x162b69[_0x5d6082(0x258)]&&_0x5b18cf[_0x5d6082(0x356)]===_0x162b69[_0x5d6082(0x356)]&&_0x5b18cf[_0x5d6082(0x12c)]===_0x162b69[_0x5d6082(0x12c)];}[_0x9884d2(0x1fc)](){const _0x56e788=_0x9884d2;throw Error(_0x56e788(0x1e2));}[_0x9884d2(0x3ea)](_0x1b410d){const _0x151e77=_0x9884d2;return this[_0x151e77(0x44f)]['push'](_0x1b410d),this;}['onRemoteChangeset'](_0x143726){const _0x5da245=_0x9884d2;return this[_0x5da245(0x282)][_0x5da245(0x42c)](_0x143726),this;}[_0x9884d2(0x2de)](_0x3d5528){const _0x1bb96b=_0x9884d2;if(this[_0x1bb96b(0x402)]){let _0x25b2bb=this[_0x1bb96b(0x21d)]();return _0x3d5528[_0x1bb96b(0x2f4)]<=_0x25b2bb||(_0x25b2bb+0x1===_0x3d5528[_0x1bb96b(0x2f4)]?(this[_0x1bb96b(0x301)](),this[_0x1bb96b(0x402)]=null,this[_0x1bb96b(0x3bb)]=null):this[_0x1bb96b(0x3bb)]=_0x3d5528[_0x1bb96b(0x2f4)]),this;}if(_0x3d5528[_0x1bb96b(0x2f4)]<=this[_0x1bb96b(0x21d)]())return this;throw Error(_0x1bb96b(0x211));}['onRemoteRej'](_0x539054){const _0x4e3b22=_0x9884d2;return this[_0x4e3b22(0x143)](!!(_0x539054!=null&&_0x539054[_0x4e3b22(0x439)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x51ffa7=_0x9884d2;return this[_0x51ffa7(0x46a)][_0x51ffa7(0x40d)](_0x20a1e1,this['unitID'],this[_0x51ffa7(0x415)],this[_0x51ffa7(0x402)],this[_0x51ffa7(0x44f)],this[_0x51ffa7(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x143)](_0x269fca){const _0x1cf3b1=_0x9884d2;return this[_0x1cf3b1(0x46a)][_0x1cf3b1(0x40d)](_0x4b9c5b,this['unitID'],this[_0x1cf3b1(0x415)],this[_0x1cf3b1(0x402)],this[_0x1cf3b1(0x44f)],this[_0x1cf3b1(0x3f2)],_0x269fca);}};_0x394019=_0x33ad5b([_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IUndoRedoService']),_0x3b5628(0xc,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x394019);function _0x2f4bec(_0xa2deea,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf){const _0x2aa35f=_0x9884d2;return _0x116220&&_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea[_0x2aa35f(0x40d)](_0x1e3872,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf,void 0x0):_0x116220?_0xa2deea[_0x2aa35f(0x40d)](_0x57ae4a,_0x130de3,_0x4d4f16,_0x116220,_0x2f3acf):_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea['createInstance'](_0x27ecb8,_0x130de3,_0x4d4f16,_0x2472b2,_0x2f3acf):_0xa2deea[_0x2aa35f(0x40d)](_0x57c5eb,_0x130de3,_0x4d4f16,_0x2f3acf);}let _0xe2b433=class extends _0x4b2515['RxDisposable']{get[_0x9884d2(0x144)](){const _0x28ed07=_0x9884d2;return this[_0x28ed07(0x237)];}constructor(_0xc7b9d0,_0x1ff7d7,_0x57f758,_0x5ca1d1,_0x553546,_0x401a89,_0x3586ff,_0x228d6a,_0x2a081b,_0xb67ded,_0x3cb9fd,_0x28ec7e,_0x2aeb6d,_0x70edf6){const _0x2df4dd=_0x9884d2;super(),this[_0x2df4dd(0x258)]=_0xc7b9d0,this['session']=_0x1ff7d7,this[_0x2df4dd(0x3e2)]=_0x57f758,this[_0x2df4dd(0x46a)]=_0x5ca1d1,this['_compressMutationService']=_0x553546,this[_0x2df4dd(0x1f4)]=_0x401a89,this[_0x2df4dd(0x196)]=_0x3586ff,this[_0x2df4dd(0x186)]=_0x228d6a,this[_0x2df4dd(0x118)]=_0x2a081b,this[_0x2df4dd(0x344)]=_0xb67ded,this[_0x2df4dd(0x2ef)]=_0x3cb9fd,this['_permissionService']=_0x28ec7e,this['_singleActiveUnitService']=_0x2aeb6d,this[_0x2df4dd(0x323)]=_0x70edf6,_0x60128a(this,_0x2df4dd(0x29b),new _0xccd21e[(_0x2df4dd(0x379))](null)),_0x60128a(this,_0x2df4dd(0x416),this['_state$'][_0x2df4dd(0x43c)]()),_0x60128a(this,'_state',void 0x0),_0x60128a(this,_0x2df4dd(0x355),!0x1),_0x60128a(this,'_changesetSessionId',''),_0x60128a(this,_0x2df4dd(0x28d),0x0),_0x60128a(this,_0x2df4dd(0x298),this[_0x2df4dd(0x416)][_0x2df4dd(0x486)]((0x0,_0xccd21e[_0x2df4dd(0x333)])(_0x2376f8=>_0x2376f8?_0x2376f8[_0x2df4dd(0x45f)]:_0x2df4dd(0x219)),(0x0,_0xccd21e['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x60128a(this,_0x2df4dd(0x2fe),!0x1),_0x60128a(this,_0x2df4dd(0x26f),[]);}async['init'](){const _0x4fc8da=_0x9884d2;if(this[_0x4fc8da(0x144)])throw Error(_0x4fc8da(0x3c3));await this[_0x4fc8da(0x386)]();}[_0x9884d2(0x1c3)](){const _0xfcfaa8=_0x9884d2;return this[_0xfcfaa8(0x355)]=!0x0,(0x0,_0x4b2515[_0xfcfaa8(0x299)])(()=>{const _0x352fe3=_0xfcfaa8;this['_collaborationPaused']=!0x1,this[_0x352fe3(0x46e)]();});}[_0x9884d2(0x2e2)](_0x4075d9){const _0x531846=_0x9884d2;this[_0x531846(0x17a)](_0x4075d9);}[_0x9884d2(0x3ad)](_0x51c65a){const _0x4f3121=_0x9884d2;this[_0x4f3121(0x237)]=_0x51c65a,this[_0x4f3121(0x29b)]['next'](_0x51c65a);}async[_0x9884d2(0x386)](){const _0x19a05a=_0x9884d2;if(this[_0x19a05a(0x3ad)](await this[_0x19a05a(0x2f2)]()),this['_singleActiveUnitService']){var _0x25ed18;(_0x25ed18=this['_singleActiveUnitService'])==null||_0x25ed18[_0x19a05a(0x191)](this['unitID']),this[_0x19a05a(0x472)](this[_0x19a05a(0x20f)][_0x19a05a(0x3e0)](this[_0x19a05a(0x258)])[_0x19a05a(0x23b)](_0x31ff01=>{const _0x2acbe1=_0x19a05a;this[_0x2acbe1(0x344)]['debug']('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x31ff01),_0x31ff01===0x1?(this['_eventService'][_0x2acbe1(0x1db)]({'id':_0x2acbe1(0x3c7)}),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x1),this['_permissionService'][_0x2acbe1(0x124)](!0x1)):(this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x0),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x124)](!0x0));}));}let _0x30a5f9=!0x1;return this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['sessionStatus$'][_0x19a05a(0x23b)](_0x367c9d=>{const _0x3a8552=_0x19a05a;_0x367c9d===0x3?this['_toggleOnline'](_0x30a5f9):_0x367c9d===0x2&&(_0x30a5f9=!0x0,this[_0x3a8552(0x39d)]());})),this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['event$'][_0x19a05a(0x23b)](_0x2fdd04=>{const _0x22e5b9=_0x19a05a;try{switch(_0x2fdd04[_0x22e5b9(0x1b3)]){case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x41b)]:this['_onRemoteChangeset']((0x0,_0x5199be['parseProtocolChangeset'])(_0x2fdd04[_0x22e5b9(0x1b4)]));break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x1f7)]:this['_onRemoteACK'](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x19d)]:this[_0x22e5b9(0x468)]();break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x238)]:this[_0x22e5b9(0x3f3)](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x18e)]:this['_onFetchMissResult'](_0x2fdd04[_0x22e5b9(0x1b4)][_0x22e5b9(0x3cd)][_0x22e5b9(0x333)](_0xa0c399=>(0x0,_0x5199be[_0x22e5b9(0x22c)])(_0xa0c399)));break;case _0x5199be[_0x22e5b9(0x261)]['PERMISSION_REJ']:this[_0x22e5b9(0x468)]({'isPermissionRej':!0x0});break;case _0x5199be['CollaborationEvent'][_0x22e5b9(0x32a)]:}}catch(_0x4ff8b5){throw console[_0x22e5b9(0x1b5)](_0x22e5b9(0x1e5),_0x4ff8b5),_0x4ff8b5;}})),this['_state'];}['_unlockTransition'](){const _0xc864c=_0x9884d2;this[_0xc864c(0x2fe)]=!0x1;}[_0x9884d2(0x436)](){const _0x499860=_0x9884d2;if(this[_0x499860(0x2fe)])throw Error(_0x499860(0x37d));this[_0x499860(0x2fe)]=!0x0;}[_0x9884d2(0x17a)](_0xc9b537){const _0x466af0=_0x9884d2;this[_0x466af0(0x436)](),this[_0x466af0(0x3ad)](this['_state'][_0x466af0(0x3ea)](_0xc9b537)),this[_0x466af0(0x33b)]();}[_0x9884d2(0x3a3)](_0x21de25){const _0x534203=_0x9884d2;if(!(_0x21de25[_0x534203(0x2f4)]<=this[_0x534203(0x196)][_0x534203(0x421)](this[_0x534203(0x258)]))){if(this[_0x534203(0x355)]){this[_0x534203(0x26f)][_0x534203(0x42c)](_0x21de25);return;}this[_0x534203(0x179)](_0x21de25);}}['_exhaustRemoteChangesetQueue'](){const _0x41c6f0=_0x9884d2;this[_0x41c6f0(0x26f)][_0x41c6f0(0x1e3)](_0x3ad973=>this[_0x41c6f0(0x179)](_0x3ad973)),this[_0x41c6f0(0x26f)]=[];}[_0x9884d2(0x179)](_0x1a0b91){const _0x269bde=_0x9884d2;let _0x16064d=this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x18d)](this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x176)]()[_0x269bde(0x1d2)])(_0x1a0b91[_0x269bde(0x25c)],null)||_0x1a0b91[_0x269bde(0x25c)],_0x3ca999={..._0x1a0b91,'mutations':_0x16064d};this[_0x269bde(0x436)](),this[_0x269bde(0x3ad)](this[_0x269bde(0x237)][_0x269bde(0x32d)](_0x3ca999)),this[_0x269bde(0x33b)]();}[_0x9884d2(0x393)](_0x1ad769){const _0x986858=_0x9884d2;this[_0x986858(0x436)](),this[_0x986858(0x3ad)](this['_state']['onRemoteAck'](_0x1ad769)),this[_0x986858(0x33b)]();}['_onRemoteRejected'](_0x5ea219){const _0x35019c=_0x9884d2;this[_0x35019c(0x436)](),this[_0x35019c(0x3ad)](this[_0x35019c(0x237)][_0x35019c(0x21f)](_0x5ea219)),this[_0x35019c(0x33b)]();}[_0x9884d2(0x3f3)](_0x319b36){const _0x4cd980=_0x9884d2;this['_lockTransition'](),this[_0x4cd980(0x3ad)](this['_state'][_0x4cd980(0x39b)](_0x319b36)),this[_0x4cd980(0x33b)]();}[_0x9884d2(0x146)](_0x3bb68f){const _0x36c404=_0x9884d2;if(!(this['_state']instanceof _0x394019))throw TypeError(_0x36c404(0x20b));let _0x2448a9=_0x3bb68f[_0x36c404(0x333)](_0x25e174=>{const _0x397b86=_0x36c404;let _0x138642=this[_0x397b86(0x188)][_0x397b86(0x395)]['fetchThroughInterceptors'](this[_0x397b86(0x188)][_0x397b86(0x395)]['getInterceptPoints']()[_0x397b86(0x1d2)])(_0x25e174[_0x397b86(0x25c)],null)||_0x25e174[_0x397b86(0x25c)];return{..._0x25e174,'mutations':_0x138642};});this[_0x36c404(0x436)](),this[_0x36c404(0x3ad)](this[_0x36c404(0x237)][_0x36c404(0x128)](_0x2448a9)),this[_0x36c404(0x33b)]();}[_0x9884d2(0x39d)](){const _0xcbac54=_0x9884d2;this[_0xcbac54(0x436)](),this[_0xcbac54(0x3ad)](this[_0xcbac54(0x237)][_0xcbac54(0x3ec)]()),this[_0xcbac54(0x33b)]();}[_0x9884d2(0x1c9)](_0x5d5b96=!0x1){const _0x536ad7=_0x9884d2;this[_0x536ad7(0x436)](),this[_0x536ad7(0x3ad)](this[_0x536ad7(0x237)][_0x536ad7(0x357)]()),this[_0x536ad7(0x33b)]();let _0xec24a2=this['_state'];_0x5d5b96&&_0xec24a2 instanceof _0x57c5eb&&(this[_0x536ad7(0x436)](),this['_updateState'](_0xec24a2[_0x536ad7(0x15d)]()),this[_0x536ad7(0x33b)]());}async[_0x9884d2(0x2f2)](){return new Promise(_0xa33ae2=>{const _0x11f756=_0x328a;this['session']['sessionStatus$'][_0x11f756(0x486)]((0x0,_0xccd21e['take'])(0x1))[_0x11f756(0x23b)](async _0x1de063=>{_0xa33ae2(await this['_createInitialStateImpl'](_0x1de063===0x3));});});}[_0x9884d2(0x18c)](){let _0xa1268=this['unitID'];return{'onStateChange':(_0x21e2a2,_0x4cd637)=>{const _0x5edfc9=_0x328a;if(_0x21e2a2!==this['_state'])throw Error(_0x5edfc9(0x1e0)+_0x21e2a2[_0x5edfc9(0x45f)]+_0x5edfc9(0x2cd)+_0x4cd637[_0x5edfc9(0x45f)]+_0x5edfc9(0x16a)+this[_0x5edfc9(0x237)][_0x5edfc9(0x45f)]);this[_0x5edfc9(0x3ad)](_0x4cd637);},'onSendChangeset':_0x2dd10e=>{const _0xfdebb1=_0x328a;_0x2dd10e[_0xfdebb1(0x356)]||(_0x2dd10e['sid']=this['_changesetSessionId'],_0x2dd10e[_0xfdebb1(0x12c)]=++this[_0xfdebb1(0x28d)]);let _0x3405f2={'eventID':_0x5199be[_0xfdebb1(0x261)][_0xfdebb1(0x209)],'data':{'unitID':_0x2dd10e[_0xfdebb1(0x258)],'unitType':this[_0xfdebb1(0x3e2)],'changeset':_0x2dd10e,'memberID':this[_0xfdebb1(0x28b)][_0xfdebb1(0x444)]()}};this[_0xfdebb1(0x28b)][_0xfdebb1(0x2d6)](_0x3405f2,this[_0xfdebb1(0x258)]);},'onMissingChangesets':({from:_0x2de9f3,to:_0x17889e})=>{const _0x316483=_0x328a;this['_logService'][_0x316483(0x348)](_0x316483(0x239),_0x316483(0x370)+_0x2de9f3+'\x20to\x20'+_0x17889e);let _0x2c59fc={'eventID':_0x5199be[_0x316483(0x261)][_0x316483(0x318)],'data':{'unitID':_0xa1268,'unitType':this['_type'],'from':_0x2de9f3,'to':_0x17889e}};this[_0x316483(0x28b)][_0x316483(0x2d6)](_0x2c59fc,this[_0x316483(0x258)]);}};}async['_createInitialStateImpl'](_0x39b4a9){const _0x3e2f7f=_0x9884d2;var _0xb7ce5;let _0x2e856e=await((_0xb7ce5=this[_0x3e2f7f(0x323)])==null?void 0x0:_0xb7ce5[_0x3e2f7f(0x469)](this[_0x3e2f7f(0x258)])),_0x43550d=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x25c)])??[],_0x4b1bda=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x232)])??null,_0x338b11=!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x356)])&&!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x12c)]);this[_0x3e2f7f(0x1aa)]=_0x338b11?_0x4b1bda[_0x3e2f7f(0x356)]:(0x0,_0x5199be[_0x3e2f7f(0x39a)])(),this['_changesetReqId']=_0x338b11?_0x4b1bda[_0x3e2f7f(0x12c)]:0x0;let _0x2854f8=this[_0x3e2f7f(0x258)];try{this[_0x3e2f7f(0x313)](_0x4b1bda,_0x43550d);}catch(_0x12cb3b){this[_0x3e2f7f(0x344)][_0x3e2f7f(0x1b5)](_0x12cb3b);}let _0xbe27b=this[_0x3e2f7f(0x18c)]();if(_0x39b4a9){let _0x13eac3=_0x2f4bec(this[_0x3e2f7f(0x46a)],_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);return _0x13eac3 instanceof _0x27ecb8?_0x13eac3[_0x3e2f7f(0x334)]():(_0x13eac3 instanceof _0x1e3872||_0x13eac3 instanceof _0x57ae4a)&&_0x13eac3['resend'](),_0x13eac3;}return this[_0x3e2f7f(0x46a)][_0x3e2f7f(0x40d)](_0x20a1e1,_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);}['_replayCachedMutations'](_0x2b87df,_0x56e89d){const _0x34ea08=_0x9884d2;var _0x6398ea,_0x26f60b;let _0xf3da4e=this['_compressMutationService'][_0x34ea08(0x395)][_0x34ea08(0x18d)](this['_compressMutationService'][_0x34ea08(0x395)]['getInterceptPoints']()[_0x34ea08(0x1d2)]);(_0x6398ea=_0xf3da4e((_0x2b87df==null?void 0x0:_0x2b87df[_0x34ea08(0x25c)])||[],null))==null||_0x6398ea[_0x34ea08(0x1e3)](_0x39599f=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x39599f['id'],_0x39599f[_0x34ea08(0x3f5)])),(_0x26f60b=_0xf3da4e(_0x56e89d||[],null))==null||_0x26f60b[_0x34ea08(0x1e3)](_0x2dab0d=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x2dab0d['id'],_0x2dab0d[_0x34ea08(0x3f5)]));}};_0xe2b433=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0xe2b433);let _0x94e744=class extends _0xe2b433{constructor(_0x2af5ac,_0x1e39f3,_0x4823f8,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x296926,_0x5e272f,_0xdde246){const _0x2d40eb=_0x9884d2;super(_0x2af5ac,_0x4823f8,_0x1e39f3,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x5e272f,_0xdde246),this['unitID']=_0x2af5ac,this[_0x2d40eb(0x415)]=_0x1e39f3,this[_0x2d40eb(0x3a8)]=_0x296926,_0x60128a(this,'_handlerCallback',null);}[_0x9884d2(0x22d)](_0x572928){this['_handlerCallback']=_0x572928;}['dispose'](){const _0x4123dc=_0x9884d2;this['_handlerCallback']=null,super[_0x4123dc(0x314)]();}[_0x9884d2(0x18c)](){const _0x16d545=_0x9884d2;let _0x575102=super['_createHandler']();return _0x575102['onTransformIME']=_0x2ec0d4=>{const _0x348eae=_0x328a;var _0x4f72d3,_0x560a37;return(_0x4f72d3=this[_0x348eae(0x3c5)])==null||(_0x560a37=_0x4f72d3[_0x348eae(0x31a)])==null?void 0x0:_0x560a37[_0x348eae(0x43d)](_0x4f72d3,_0x2ec0d4);},_0x575102[_0x16d545(0x330)]=_0x458d26=>{const _0x44dc76=_0x16d545;var _0x5c06dd,_0x587442;return(_0x5c06dd=this['_handlerCallback'])==null||(_0x587442=_0x5c06dd[_0x44dc76(0x330)])==null?void 0x0:_0x587442[_0x44dc76(0x43d)](_0x5c06dd,_0x458d26);},_0x575102[_0x16d545(0x3da)]=_0x2b004e=>{const _0x24cf9c=_0x16d545;var _0x2a21d4,_0x376c6a;return((_0x2a21d4=this[_0x24cf9c(0x3c5)])==null||(_0x376c6a=_0x2a21d4['onPrepareTransformSelections'])==null?void 0x0:_0x376c6a[_0x24cf9c(0x43d)](_0x2a21d4,_0x2b004e))??null;},_0x575102[_0x16d545(0x3c2)]=_0x5bfad7=>{const _0x2cffcd=_0x16d545;var _0x34ace1,_0xac5bf7;return(_0x34ace1=this[_0x2cffcd(0x3c5)])==null||(_0xac5bf7=_0x34ace1[_0x2cffcd(0x3c2)])==null?void 0x0:_0xac5bf7[_0x2cffcd(0x43d)](_0x34ace1,_0x5bfad7);},_0x575102['onSyncEditingCollabCursor']=_0x1d6325=>{const _0x1180eb=_0x16d545;var _0x1465ae,_0x1ecd1e;return(_0x1465ae=this[_0x1180eb(0x3c5)])==null||(_0x1ecd1e=_0x1465ae[_0x1180eb(0x3cc)])==null?void 0x0:_0x1ecd1e[_0x1180eb(0x43d)](_0x1465ae,_0x1d6325);},_0x575102[_0x16d545(0x311)]=_0x14f3f9=>{const _0x6aa338=_0x16d545;var _0x793da4,_0x5b49e0;return((_0x793da4=this[_0x6aa338(0x3c5)])==null||(_0x5b49e0=_0x793da4['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b49e0[_0x6aa338(0x43d)](_0x793da4,_0x14f3f9))??_0x14f3f9;},_0x575102['onTransformRemoteChangesetByStateCache']=_0x31e4af=>{const _0x6392d8=_0x16d545;var _0x8decc2,_0x33f126;return((_0x8decc2=this[_0x6392d8(0x3c5)])==null||(_0x33f126=_0x8decc2[_0x6392d8(0x206)])==null?void 0x0:_0x33f126[_0x6392d8(0x43d)](_0x8decc2,_0x31e4af))??_0x31e4af;},_0x575102;}async[_0x9884d2(0x386)](){const _0x3b5556=_0x9884d2;let _0x147c0d=await super['_init']();return this[_0x3b5556(0x472)](this[_0x3b5556(0x3a8)][_0x3b5556(0x27b)][_0x3b5556(0x23b)](_0x5c99ac=>{const _0x3573e0=_0x3b5556;if(_0x5c99ac==null||_0x5c99ac[_0x3573e0(0x3f0)]!==this[_0x3573e0(0x258)])return;let {commandId:_0x35db53,redoState:_0x3049b3,unitId:_0x2a1e37}=_0x5c99ac,_0x3d4a9a={'id':_0x35db53,'type':_0x4b2515[_0x3573e0(0x389)][_0x3573e0(0x46f)],'params':{'unitId':_0x2a1e37,'actions':_0x3049b3[_0x3573e0(0x37a)],'textRanges':null}};this['_onLocalMutation'](_0x3d4a9a);})),this[_0x3b5556(0x472)](this[_0x3b5556(0x2ef)][_0x3b5556(0x1cd)]((_0x3ae6b9,_0x4463f8)=>{const _0x1a012e=_0x3b5556;if(_0x3ae6b9[_0x1a012e(0x415)]!==_0x4b2515[_0x1a012e(0x389)][_0x1a012e(0x46f)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x371)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x1ba)]||_0x3ae6b9['id']===_0x120ed0[_0x1a012e(0x16f)]['id'])return;let _0xfe2257=_0x3ae6b9[_0x1a012e(0x3f5)];if((_0xfe2257==null?void 0x0:_0xfe2257['unitId'])!==this[_0x1a012e(0x258)])return;let _0x5cd73f=_0x3ae6b9,_0x216451=this[_0x1a012e(0x188)][_0x1a012e(0x395)][_0x1a012e(0x18d)](this['_compressMutationService'][_0x1a012e(0x395)][_0x1a012e(0x176)]()[_0x1a012e(0x139)])([_0x5cd73f],this[_0x1a012e(0x118)])||[_0x5cd73f];this[_0x1a012e(0x17a)](_0x216451[0x0]);})),_0x147c0d;}};_0x94e744=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['Injector'])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Inject'])(_0x120ed0[_0x9884d2(0x279)])),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x94e744);let _0x24daae=class extends _0xe2b433{constructor(_0x25d113,_0x1097f9,_0x4b3115,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc){const _0x1d8611=_0x9884d2;super(_0x25d113,_0x4b3115,_0x1097f9,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc),this[_0x1d8611(0x258)]=_0x25d113,this['type']=_0x1097f9;}async[_0x9884d2(0x386)](){const _0x36c4c8=_0x9884d2;let _0xedcf31=await super['_init']();return this[_0x36c4c8(0x472)](this[_0x36c4c8(0x2ef)][_0x36c4c8(0x1cd)]((_0x1605c1,_0x1e0d08)=>{const _0x12b996=_0x36c4c8;if(_0x1605c1[_0x12b996(0x415)]!==_0x4b2515[_0x12b996(0x389)][_0x12b996(0x46f)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x371)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x1ba)])return;let _0x40211e=_0x1605c1[_0x12b996(0x3f5)];if((_0x40211e==null?void 0x0:_0x40211e['unitId'])!==this[_0x12b996(0x258)])return;let _0x174a90=_0x1605c1,_0x2bf63f=this[_0x12b996(0x188)]['interceptor'][_0x12b996(0x18d)](this['_compressMutationService'][_0x12b996(0x395)][_0x12b996(0x176)]()[_0x12b996(0x139)])([_0x174a90],this[_0x12b996(0x118)])||[_0x174a90];this[_0x12b996(0x17a)](_0x2bf63f[0x0]);})),_0xedcf31;}};_0x24daae=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x24daae);let _0xe8b1d4=class extends _0xe2b433{constructor(_0x2fdbbd,_0x199b88,_0x1096de,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x592310,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d){const _0xec093b=_0x9884d2;super(_0x2fdbbd,_0x1096de,_0x199b88,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d),this[_0xec093b(0x258)]=_0x2fdbbd,this[_0xec093b(0x415)]=_0x199b88,this[_0xec093b(0x2e1)]=_0x592310;}[_0x9884d2(0x18c)](){const _0xceed92=_0x9884d2;let _0x3bafdc=super[_0xceed92(0x18c)]();return _0x3bafdc[_0xceed92(0x3c2)]=_0x2a5c37=>this['_sheetTransformSelectionsService'][_0xceed92(0x378)](_0x2a5c37),_0x3bafdc;}async[_0x9884d2(0x386)](){const _0x2a7bb1=_0x9884d2;let _0x274d95=await super['_init']();return this[_0x2a7bb1(0x472)](this[_0x2a7bb1(0x2ef)][_0x2a7bb1(0x1cd)]((_0x727565,_0xe933a8)=>{const _0x5a1a0f=_0x2a7bb1;if(_0x727565[_0x5a1a0f(0x415)]!==_0x4b2515[_0x5a1a0f(0x389)][_0x5a1a0f(0x46f)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x371)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x1ba)])return;let _0x2bc7e0=_0x727565[_0x5a1a0f(0x3f5)];if((_0x2bc7e0==null?void 0x0:_0x2bc7e0[_0x5a1a0f(0x3f0)])!==this[_0x5a1a0f(0x258)])return;let _0x327762=_0x727565,_0x5be8f2=this[_0x5a1a0f(0x188)][_0x5a1a0f(0x395)][_0x5a1a0f(0x18d)](this['_compressMutationService']['interceptor'][_0x5a1a0f(0x176)]()[_0x5a1a0f(0x139)])([_0x327762],this[_0x5a1a0f(0x118)])||[_0x327762];this[_0x5a1a0f(0x17a)](_0x5be8f2[0x0]);})),_0x274d95;}};_0xe8b1d4=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x2326c2)),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0xe8b1d4);let _0x3a9411=class extends _0xe2b433{constructor(_0x45bcfd,_0x4334af,_0x3fda22,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578){const _0x5855e3=_0x9884d2;super(_0x45bcfd,_0x3fda22,_0x4334af,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578),this[_0x5855e3(0x258)]=_0x45bcfd,this['type']=_0x4334af;}async['_init'](){const _0x46d8be=_0x9884d2;let _0x59223a=await super[_0x46d8be(0x386)]();return this[_0x46d8be(0x472)](this[_0x46d8be(0x2ef)][_0x46d8be(0x1cd)]((_0x2a687a,_0xe7f08f)=>{const _0xf4b19e=_0x46d8be;if(_0x2a687a[_0xf4b19e(0x415)]!==_0x4b2515[_0xf4b19e(0x389)][_0xf4b19e(0x46f)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x371)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x1ba)])return;let _0x196946=_0x2a687a[_0xf4b19e(0x3f5)];if((_0x196946==null?void 0x0:_0x196946[_0xf4b19e(0x3f0)])!==this[_0xf4b19e(0x258)])return;let _0x235949=_0x2a687a,_0x4fd273=this[_0xf4b19e(0x188)]['interceptor'][_0xf4b19e(0x18d)](this[_0xf4b19e(0x188)][_0xf4b19e(0x395)][_0xf4b19e(0x176)]()[_0xf4b19e(0x139)])([_0x235949],this[_0xf4b19e(0x118)])||[_0x235949];this[_0xf4b19e(0x17a)](_0x4fd273[0x0]);})),_0x59223a;}};_0x3a9411=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x3a9411);let _0x4deb99=class extends _0xe2b433{constructor(_0x2d5626,_0x24df18,_0x38a190,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946){const _0x1a9c72=_0x9884d2;super(_0x2d5626,_0x38a190,_0x24df18,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946),this[_0x1a9c72(0x258)]=_0x2d5626,this[_0x1a9c72(0x415)]=_0x24df18;}async[_0x9884d2(0x386)](){const _0x113e73=_0x9884d2;let _0x5b479b=await super[_0x113e73(0x386)]();return this[_0x113e73(0x472)](this[_0x113e73(0x2ef)][_0x113e73(0x1cd)]((_0x201929,_0x5b4b90)=>{const _0x4e6d6c=_0x113e73;if(_0x201929[_0x4e6d6c(0x415)]!==_0x4b2515[_0x4e6d6c(0x389)][_0x4e6d6c(0x46f)]||_0x5b4b90!=null&&_0x5b4b90[_0x4e6d6c(0x371)]||_0x5b4b90!=null&&_0x5b4b90['onlyLocal'])return;let _0x13a315=_0x201929[_0x4e6d6c(0x3f5)];if((_0x13a315==null?void 0x0:_0x13a315['unitId'])!==this[_0x4e6d6c(0x258)])return;let _0x5dfae5=_0x201929,_0x24247d=this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x18d)](this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x176)]()[_0x4e6d6c(0x139)])([_0x5dfae5],this[_0x4e6d6c(0x118)])||[_0x5dfae5];this[_0x4e6d6c(0x17a)](_0x24247d[0x0]);})),_0x5b479b;}};_0x4deb99=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x4deb99);let _0x2226d9=class extends _0xe2b433{constructor(_0x39bacc,_0x4963e3,_0x137430,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b){const _0x9ac04b=_0x9884d2;super(_0x39bacc,_0x137430,_0x4963e3,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b),this['unitID']=_0x39bacc,this[_0x9ac04b(0x415)]=_0x4963e3;}async['_init'](){const _0x5b4c2a=_0x9884d2;let _0x620ab5=await super[_0x5b4c2a(0x386)]();return this[_0x5b4c2a(0x472)](this[_0x5b4c2a(0x2ef)][_0x5b4c2a(0x1cd)]((_0x31c8a0,_0x503ce1)=>{const _0x2c6d9c=_0x5b4c2a;if(_0x31c8a0[_0x2c6d9c(0x415)]!==_0x4b2515['CommandType']['MUTATION']||_0x503ce1!=null&&_0x503ce1['fromCollab']||_0x503ce1!=null&&_0x503ce1[_0x2c6d9c(0x1ba)])return;let _0x5842ac=_0x31c8a0[_0x2c6d9c(0x3f5)];if((_0x5842ac==null?void 0x0:_0x5842ac[_0x2c6d9c(0x3f0)])!==this[_0x2c6d9c(0x258)])return;let _0x4c325a=_0x31c8a0,_0x48f578=this['_compressMutationService'][_0x2c6d9c(0x395)][_0x2c6d9c(0x18d)](this[_0x2c6d9c(0x188)][_0x2c6d9c(0x395)][_0x2c6d9c(0x176)]()['COMPRESS_MUTATION_SEND'])([_0x4c325a],this[_0x2c6d9c(0x118)])||[_0x4c325a];this[_0x2c6d9c(0x17a)](_0x48f578[0x0]);})),_0x620ab5;}};_0x2226d9=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515['ICommandService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x2226d9);let _0x3ce8fd=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1d8));function _0x36e901(_0x280e88){const _0x7fdfa7=_0x9884d2;let _0x2ea195=_0x280e88[_0x7fdfa7(0x1b4)],_0x3f48d9=JSON['parse'](_0x2ea195);switch(_0x3f48d9['cmd']){case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x280)]:case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x35a)]:{let _0x2c5fe7=_0x3f48d9['infoRsp'];return{..._0x3f48d9,'data':_0x2c5fe7,'cmd':_0x3f48d9['cmd']};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x213)]:{let _0x372532=_0x3f48d9[_0x7fdfa7(0x3b8)];return{..._0x3f48d9,'data':_0x372532,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x2c1)]:{let _0x4122f9=_0x3f48d9[_0x7fdfa7(0x3a9)];switch(_0x4122f9['eventID']){case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x384)]:var _0x148b50;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x148b50=_0x4122f9[_0x7fdfa7(0x26a)])==null?void 0x0:_0x148b50['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f7)]:var _0x2dd5e7;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2dd5e7=_0x4122f9['csAckEvent'])==null?void 0x0:_0x2dd5e7['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be['CollaborationEvent']['NEW_CHANGESETS']:var _0x5607e8;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x5607e8=_0x4122f9[_0x7fdfa7(0x3ef)])==null?void 0x0:_0x5607e8['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['CHANGESET_REJ']:var _0x507131;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x507131=_0x4122f9[_0x7fdfa7(0x34b)])==null?void 0x0:_0x507131['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x238)]:var _0x2b1979;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2b1979=_0x4122f9[_0x7fdfa7(0x11c)])==null?void 0x0:_0x2b1979['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f5)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x1f8)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x377)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x2e7)]},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x197)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['leaveEvent']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x460)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)]['LIVESHARE_FETCH_OPERATIONS']:case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x44c)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x419)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x3f9)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['MSG_FOR_ERROR']:return{..._0x3f48d9,'data':_0x4122f9,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['COMMENT_UPDATE']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x13a)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['UPDATE_PERMISSION_OBJ']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x278)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x478)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['shouldCloseConn']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x32a)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x366)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};default:return _0x3f48d9;}}default:return _0x3f48d9;}}function _0x320ae2(_0x3dc493){const _0x1db023=_0x9884d2;switch(_0x3dc493[_0x1db023(0x35f)]){case _0x349630[_0x1db023(0x293)][_0x1db023(0x280)]:case _0x349630[_0x1db023(0x293)]['HELLO']:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493['routeKey']});case _0x349630['CombCmd'][_0x1db023(0x198)]:{let _0x4de506;switch(_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b3)]){case _0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)],'updateCursorEvent':_0x3dc493['data']['data']};break;case _0x5199be[_0x1db023(0x261)]['USERS_LEAVE']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)]['USERS_LEAVE'],'leaveEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x377)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x377)],'joinEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent'][_0x1db023(0x460)]:_0x4de506={'eventID':_0x5199be['CollaborationEvent'][_0x1db023(0x460)],'liveShareNewHost':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_OPERATION']:_0x4de506={'eventID':_0x5199be['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)],'liveShareTerminate':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x14e)],'liveShareRequestHost':_0x3dc493['data'][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]};break;default:_0x4de506={'eventID':_0x3dc493['data']['eventID']};}return JSON['stringify']({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'collaMsg':_0x4de506});}case _0x349630[_0x1db023(0x293)][_0x1db023(0x213)]:return JSON['stringify']({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'joinReq':_0x3dc493[_0x1db023(0x1b4)]});case _0x349630[_0x1db023(0x293)][_0x1db023(0x2fc)]:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'leaveReq':_0x3dc493['data']});default:throw Error(_0x1db023(0x2e8));}}let _0x4f7089=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x236));function _0x91aa4f(_0x130d95,_0x1cfb53,_0x7f067a){const _0x431a88=_0x9884d2;return _0x130d95+'/'+_0x1cfb53+_0x431a88(0x3b3)+_0x7f067a+_0x431a88(0x3c9);}let _0x1df3dc=class extends _0x4b2515['Disposable']{constructor(_0x32437f,_0x1adece,_0x38bc9d,_0x38b53e,_0x62919){const _0x21482e=_0x9884d2;super(),this[_0x21482e(0x46a)]=_0x32437f,this['_httpService']=_0x1adece,this[_0x21482e(0x3c6)]=_0x38bc9d,this[_0x21482e(0x344)]=_0x38b53e,this[_0x21482e(0x331)]=_0x62919;}['_doCreateSocket'](_0x57a379){const _0x30d7e3=_0x9884d2;let _0x169deb=this[_0x30d7e3(0x46a)][_0x30d7e3(0x2eb)](_0x530da8[_0x30d7e3(0x19f)]);if(!_0x169deb)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x5c2ffb=_0x169deb[_0x30d7e3(0x3b2)](_0x57a379);if(!_0x5c2ffb)throw Error(_0x30d7e3(0x44d));let _0xf8d825=new _0x4b2515[(_0x30d7e3(0x277))](),_0x2e59c1=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb['close$'][_0x30d7e3(0x23b)](_0x549212=>_0x2e59c1[_0x30d7e3(0x17e)](_0x549212))),_0xf8d825['add']((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x2e59c1[_0x30d7e3(0x41f)]()));let _0x236b20=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x199)][_0x30d7e3(0x23b)](_0x44f913=>_0x236b20[_0x30d7e3(0x17e)](_0x44f913))),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515['toDisposable'])(()=>_0x236b20[_0x30d7e3(0x41f)]()));let _0x21e5a4=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x400)][_0x30d7e3(0x23b)](_0x5f46dd=>{const _0xf03245=_0x30d7e3;let _0x1031ac=_0x36e901(_0x5f46dd);_0x21e5a4[_0xf03245(0x17e)](_0x1031ac);})),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x21e5a4[_0x30d7e3(0x41f)]()));let _0x449514,_0x20b06b=()=>{const _0x102195=_0x30d7e3;_0x236b20[_0x102195(0x17e)](new Event('connection\x20error')),_0x2e59c1[_0x102195(0x17e)](new Event(_0x102195(0x130))),_0x449514[_0x102195(0x243)]();};return _0x449514={'memberID':'','close$':_0x2e59c1['asObservable'](),'error$':_0x236b20[_0x30d7e3(0x43c)](),'open$':_0x5c2ffb[_0x30d7e3(0x265)],'message$':_0x21e5a4[_0x30d7e3(0x43c)](),'send':_0x313295=>{const _0x99a789=_0x30d7e3;if(_0x313295[_0x99a789(0x35f)]===_0x349630[_0x99a789(0x293)][_0x99a789(0x198)]){if(_0x313295[_0x99a789(0x1b4)]['eventID']===_0x5199be[_0x99a789(0x261)][_0x99a789(0x209)]){this[_0x99a789(0x2c9)](_0x449514,_0x313295[_0x99a789(0x1b4)])[_0x99a789(0x2d9)](_0x509579=>{const _0x3885c4=_0x99a789;this[_0x3885c4(0x344)]['error'](_0x509579),_0x20b06b();});return;}if(_0x313295['data'][_0x99a789(0x1b3)]===_0x5199be[_0x99a789(0x261)][_0x99a789(0x318)]){let _0xbf2899=_0x313295[_0x99a789(0x1b4)];this[_0x99a789(0x3c0)](_0xbf2899)[_0x99a789(0x2b5)](_0x255bb7=>{const _0x106f20=_0x99a789;_0x21e5a4[_0x106f20(0x17e)]({'cmd':_0x349630[_0x106f20(0x293)]['RECV'],'code':_0x349630[_0x106f20(0x440)]['OK'],'routeKey':_0xbf2899[_0x106f20(0x1b4)][_0x106f20(0x258)],'routeType':'','data':{'eventID':_0x5199be[_0x106f20(0x261)][_0x106f20(0x18e)],'data':{'changesets':_0x255bb7}}});})['catch'](_0x113b42=>{const _0x567b81=_0x99a789;this[_0x567b81(0x344)]['error'](_0x113b42),_0x20b06b();});return;}}_0x5c2ffb[_0x99a789(0x2d6)](_0x320ae2(_0x313295));},'close':()=>{const _0x465d27=_0x30d7e3;_0x5c2ffb[_0x465d27(0x243)](),_0xf8d825[_0x465d27(0x314)]();}},_0x449514;}async[_0x9884d2(0x2c9)](_0x1a0829,_0x4c994a){const _0xb97675=_0x9884d2;let {unitType:_0x4d4036,unitID:_0x4a5a44,changeset:_0x528e9a}=_0x4c994a['data'],_0x122aa4={'unitID':_0x4a5a44,'memberID':_0x1a0829[_0xb97675(0x417)],'type':_0x4d4036,'changeset':(0x0,_0x5199be[_0xb97675(0x21a)])(_0x528e9a)},_0x1f4f4d=this['_configService']['getConfig'](_0x3c0330),_0x436f30=_0x91aa4f((_0x1f4f4d==null?void 0x0:_0x1f4f4d[_0xb97675(0x3c8)])??_0xb97675(0x485),_0x4d4036,_0x4a5a44);try{await this[_0xb97675(0x1d0)][_0xb97675(0x31b)](_0x436f30,{'body':_0x122aa4});}catch(_0x155549){throw this['_logService'][_0xb97675(0x1b5)]('[CollaborationSession]',_0xb97675(0x290)),_0x155549;}}async[_0x9884d2(0x3c0)](_0x4681f8){const _0x19b578=_0x9884d2;let {unitID:_0x86b1f2,from:_0x42002f,to:_0x5e7b31,unitType:_0x5d2651}=_0x4681f8[_0x19b578(0x1b4)];return(await this[_0x19b578(0x331)][_0x19b578(0x30d)]({'metadata':void 0x0},{'unitID':_0x86b1f2,'type':_0x5d2651,'from':_0x42002f,'to':_0x5e7b31}))['changesets']['map'](_0x34cb36=>((_0x34cb36['mutations']===null||_0x34cb36[_0x19b578(0x25c)]===void 0x0)&&(_0x34cb36[_0x19b578(0x25c)]=[]),_0x34cb36));}};_0x1df3dc=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x4,_0x5199be['ISnapshotServerService'])],_0x1df3dc);let _0x14183e=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x18b));function _0x8c16f0(_0x15162c={}){const _0x2c8c03=_0x9884d2;return _0x15162c['resolveUnit']?{'resolveUnit':_0x15162c['resolveUnit']}:{'resolveUnit':_0xf7315b=>({'target':{'unitId':_0xf7315b[_0x2c8c03(0x3f0)],'unitType':_0xf7315b[_0x2c8c03(0x294)]}})};}function _0x163e78(_0x292dd3,_0x404ee5,_0x282c45){const _0x187b88=_0x9884d2;let _0x5919b9=_0x282c45[_0x187b88(0x479)]['endpoint'];if(_0x5919b9!=null&&_0x5919b9[_0x187b88(0x2c4)]()==='')throw Error(_0x187b88(0x29a));if(!_0x282c45[_0x187b88(0x479)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x292dd3,'unitType':_0x404ee5,'target':{'endpoint':_0x5919b9,'unitId':_0x282c45[_0x187b88(0x479)][_0x187b88(0x3f0)],'unitType':_0x282c45[_0x187b88(0x479)][_0x187b88(0x294)]??_0x404ee5},'changeset':_0x282c45[_0x187b88(0x166)]};}let _0x283d67=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x33c3a5,_0x4d2567,_0x4c0374,_0x429065,_0xb88d64,_0x4312d2,_0x2ee563){const _0x576a62=_0x9884d2;super(),this[_0x576a62(0x46a)]=_0x33c3a5,this['_logService']=_0x4d2567,this[_0x576a62(0x3c6)]=_0x4c0374,this[_0x576a62(0x159)]=_0x429065,this[_0x576a62(0x427)]=_0xb88d64,this['_adapter']=_0x4312d2,this[_0x576a62(0x185)]=_0x2ee563,_0x60128a(this,_0x576a62(0x175),new Map()),_0x60128a(this,_0x576a62(0x3de),new Map()),_0x60128a(this,_0x576a62(0x3a1),new Map()),_0x60128a(this,'_socketChannels',new Map()),_0x60128a(this,_0x576a62(0x352),this[_0x576a62(0x132)](void 0x0)['socket$'][_0x576a62(0x43c)]()),_0x60128a(this,_0x576a62(0x310),new _0xccd21e['BehaviorSubject'](0x0)),_0x60128a(this,'status$',this['_status$'][_0x576a62(0x43c)]()),this[_0x576a62(0x17f)]();}[_0x9884d2(0x17f)](){const _0x5511d9=_0x9884d2;this['_networkConditionService']&&this[_0x5511d9(0x472)](this['_networkConditionService'][_0x5511d9(0x2bf)][_0x5511d9(0x23b)](_0xa6e86=>{const _0xf2b175=_0x5511d9;_0xa6e86&&this[_0xf2b175(0x158)](),_0xa6e86||this[_0xf2b175(0x397)]['forEach'](_0x3abeed=>this[_0xf2b175(0x216)](_0x3abeed));}));}[_0x9884d2(0x314)](){const _0x4ed839=_0x9884d2;super[_0x4ed839(0x314)](),this[_0x4ed839(0x397)][_0x4ed839(0x1e3)](_0x216968=>{const _0x297bf8=_0x4ed839;var _0x4318c0,_0xfa6c6a;(_0x4318c0=_0x216968[_0x297bf8(0x390)])==null||_0x4318c0[_0x297bf8(0x29f)](),_0x216968['socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](_0x216968),this[_0x297bf8(0x309)](_0x216968),this[_0x297bf8(0x1a6)](_0x216968),(_0xfa6c6a=_0x216968['socket$'][_0x297bf8(0x383)]())==null||_0xfa6c6a[_0x297bf8(0x243)](),_0x216968['socket$'][_0x297bf8(0x41f)]();}),this['_socketChannels'][_0x4ed839(0x214)](),this[_0x4ed839(0x175)][_0x4ed839(0x1e3)](_0x3b1985=>_0x3b1985['dispose']()),this[_0x4ed839(0x175)]['clear'](),this[_0x4ed839(0x3a1)][_0x4ed839(0x214)](),this['_status$']['complete']();}async[_0x9884d2(0x1a4)](_0x4b265c,_0x53efb6){const _0x5f0503=_0x9884d2;if(this['_sessions'][_0x5f0503(0x40a)](_0x4b265c))return this[_0x5f0503(0x175)][_0x5f0503(0x2eb)](_0x4b265c);let _0x4f8d9b=this['_pendingSessions'][_0x5f0503(0x2eb)](_0x4b265c);if(_0x4f8d9b)return _0x4f8d9b;let _0x17e2f6=this[_0x5f0503(0x47b)](_0x4b265c,_0x53efb6);this[_0x5f0503(0x3de)][_0x5f0503(0x41e)](_0x4b265c,_0x17e2f6);try{return await _0x17e2f6;}finally{this[_0x5f0503(0x3de)][_0x5f0503(0x287)](_0x4b265c);}}async['_createSession'](_0x5f523a,_0xfd5ca0){const _0xd28c36=_0x9884d2;let _0x5b88e4=await this[_0xd28c36(0x1a1)](_0x5f523a,_0xfd5ca0),_0x1f511f=this[_0xd28c36(0x132)](_0x5b88e4['target']['endpoint']);this[_0xd28c36(0x23a)](_0x1f511f);let _0x242dd2=this[_0xd28c36(0x46a)][_0xd28c36(0x40d)](_0x188c53,_0x5b88e4,_0x1f511f[_0xd28c36(0x352)][_0xd28c36(0x43c)]());return this[_0xd28c36(0x175)][_0xd28c36(0x41e)](_0x5f523a,_0x242dd2),this['_sessionChannels'][_0xd28c36(0x41e)](_0x5f523a,_0x1f511f['endpointKey']),_0x242dd2;}['closeSession'](_0xdb0608){const _0x49dd17=_0x9884d2;let _0x1f50f6=this['_sessions'][_0x49dd17(0x2eb)](_0xdb0608),_0x63df11=this['_sessionChannels'][_0x49dd17(0x2eb)](_0xdb0608);if(_0x1f50f6&&(this[_0x49dd17(0x175)][_0x49dd17(0x287)](_0xdb0608),this[_0x49dd17(0x3a1)]['delete'](_0xdb0608),_0x1f50f6[_0x49dd17(0x243)]()),_0x63df11&&!this[_0x49dd17(0x271)](_0x63df11)){var _0x1ff0c3;let _0x4d77f3=this[_0x49dd17(0x397)][_0x49dd17(0x2eb)](_0x63df11);_0x4d77f3==null||(_0x1ff0c3=_0x4d77f3[_0x49dd17(0x352)][_0x49dd17(0x383)]())==null||_0x1ff0c3[_0x49dd17(0x243)]();}}['reconnect'](){const _0x5787ee=_0x9884d2;(this['_socketChannels']['size']?[...this['_socketChannels']['values']()]:[this[_0x5787ee(0x132)](void 0x0)])['forEach'](_0x432e8b=>{const _0x5c0b59=_0x5787ee;_0x432e8b[_0x5c0b59(0x2d0)]=0x0,this['_clearRetryConnectingTimer'](_0x432e8b),this['_tryReconnect'](_0x432e8b);});}[_0x9884d2(0x141)](_0x41100b){const _0xe515e=_0x9884d2;_0x41100b[_0xe515e(0x117)]!=null&&(clearTimeout(_0x41100b[_0xe515e(0x117)]),_0x41100b['retryConnectingTimer']=null);}async[_0x9884d2(0x2e3)](_0x419d73){const _0x5b007d=_0x9884d2;let _0x5a006b=this[_0x5b007d(0x3c6)][_0x5b007d(0x32f)](_0x3c0330),_0x40de5e=_0x419d73['endpoint']??(_0x5a006b==null?void 0x0:_0x5a006b[_0x5b007d(0x430)])??_0x5b007d(0x3fb),_0x1c76b4=await this[_0x5b007d(0x159)]['createSocket'](_0x40de5e);return _0x419d73[_0x5b007d(0x127)]=_0x1c76b4,_0x1c76b4;}async[_0x9884d2(0x23a)](_0x51c6a2){const _0x231436=_0x9884d2;try{let _0x520b3c=_0x51c6a2['socket$'][_0x231436(0x383)]()??_0x51c6a2[_0x231436(0x127)]??await this[_0x231436(0x2e3)](_0x51c6a2);if(_0x520b3c){var _0x3c45e6;let _0x2a79cb=_0x520b3c['send'];_0x520b3c['send']=_0x36b545=>(_0x36b545['cmd']!==_0x349630['CombCmd'][_0x231436(0x2fc)]&&this[_0x231436(0x36e)](_0x51c6a2),_0x2a79cb[_0x231436(0x349)](_0x520b3c,[_0x36b545])),(_0x3c45e6=_0x51c6a2[_0x231436(0x390)])==null||_0x3c45e6[_0x231436(0x29f)](),_0x51c6a2[_0x231436(0x390)]=null,_0x51c6a2[_0x231436(0x390)]=_0x520b3c[_0x231436(0x400)][_0x231436(0x23b)](_0x269594=>this[_0x231436(0x136)](_0x51c6a2,_0x520b3c,_0x269594)),_0x520b3c['error$']['pipe']((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0xafd6ce=>this[_0x231436(0x344)][_0x231436(0x1b5)](_0x231436(0x25f),_0xafd6ce)),_0x520b3c[_0x231436(0x265)][_0x231436(0x486)]((0x0,_0x2c33e8['take'])(0x1))[_0x231436(0x23b)](()=>{const _0x10694f=_0x231436;this[_0x10694f(0x1fe)](_0x51c6a2,_0x520b3c);}),_0x520b3c[_0x231436(0x484)][_0x231436(0x486)]((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0x220fcb=>{const _0x76858c=_0x231436;this['_logService'][_0x76858c(0x348)](_0x76858c(0x2b6),'socket\x20close',_0x220fcb),this['_onConnectionFailed'](_0x51c6a2);});}}catch(_0x4d8b16){this['_logService'][_0x231436(0x1b5)](_0x4d8b16),this[_0x231436(0x19c)](_0x51c6a2);}}['_onConnectionOpen'](_0x224e3c,_0x1186fc){const _0x5020b1=_0x9884d2;this[_0x5020b1(0x344)][_0x5020b1(0x348)]('[CollaborationSessionService]',_0x5020b1(0x18a)),_0x1186fc[_0x5020b1(0x2d6)]({'cmd':_0x349630[_0x5020b1(0x293)]['HELLO']}),this[_0x5020b1(0x36e)](_0x224e3c);}[_0x9884d2(0x216)](_0x35dcb3){const _0x354a56=_0x9884d2;_0x35dcb3['socketReady']=!0x1,_0x35dcb3[_0x354a56(0x127)]=null,this[_0x354a56(0x310)][_0x354a56(0x17e)](0x2),_0x35dcb3[_0x354a56(0x352)][_0x354a56(0x17e)](null),this[_0x354a56(0x309)](_0x35dcb3),this[_0x354a56(0x1a6)](_0x35dcb3);}[_0x9884d2(0x19c)](_0x3e7655){const _0x426f6a=_0x9884d2;this[_0x426f6a(0x216)](_0x3e7655),this[_0x426f6a(0x271)](_0x3e7655[_0x426f6a(0x2a8)])&&(_0x3e7655[_0x426f6a(0x2d0)]<(this[_0x426f6a(0x3c6)][_0x426f6a(0x32f)](_0x426f6a(0x458))??0x3)?(this['_collaborationUIEventService'][_0x426f6a(0x1db)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x3e7655)):this[_0x426f6a(0x427)][_0x426f6a(0x1db)]({'id':_0x426f6a(0x163)}));}[_0x9884d2(0x2ea)](_0x17439a){const _0x45b1df=_0x9884d2;let _0x2ddcca=_0x17439a[_0x45b1df(0x2d0)],_0x3e0cb4=this[_0x45b1df(0x3c6)][_0x45b1df(0x32f)](_0x3c0330),_0x3aecc6=_0x2ddcca===0x0?0x0:((_0x3e0cb4==null?void 0x0:_0x3e0cb4[_0x45b1df(0x483)])??0x4e20)*0x2**_0x2ddcca;_0x17439a['retryConnectingTimer']=setTimeout(()=>{const _0x1124cc=_0x45b1df;clearTimeout(_0x17439a[_0x1124cc(0x117)]),_0x17439a[_0x1124cc(0x117)]=null,this[_0x1124cc(0x23a)](_0x17439a);},_0x3aecc6),_0x17439a[_0x45b1df(0x2d0)]+=0x1;}async[_0x9884d2(0x1a1)](_0x2d2ff8,_0x5a35ea){const _0x1ec27e=_0x9884d2;return _0x163e78(_0x2d2ff8,_0x5a35ea,await this[_0x1ec27e(0x42a)][_0x1ec27e(0x329)]({'unitId':_0x2d2ff8,'unitType':_0x5a35ea}));}['_onMessage'](_0x263751,_0x3a8811,_0x1dea63){const _0x2ed5d2=_0x9884d2;let {cmd:_0x1dcca1}=_0x1dea63;_0x1dcca1===_0x349630[_0x2ed5d2(0x293)]['HELLO']&&!_0x263751['socketReady']&&(_0x3a8811[_0x2ed5d2(0x417)]=_0x1dea63[_0x2ed5d2(0x1b4)][_0x2ed5d2(0x417)],_0x263751[_0x2ed5d2(0x2d0)]=0x0,_0x263751[_0x2ed5d2(0x352)][_0x2ed5d2(0x17e)](_0x3a8811),this[_0x2ed5d2(0x310)][_0x2ed5d2(0x17e)](0x3),_0x263751[_0x2ed5d2(0x351)]=!0x0,_0x263751[_0x2ed5d2(0x127)]=null),_0x1dcca1===_0x349630[_0x2ed5d2(0x293)][_0x2ed5d2(0x280)]&&this[_0x2ed5d2(0x309)](_0x263751),this[_0x2ed5d2(0x36e)](_0x263751);}[_0x9884d2(0x271)](_0x6619b6){const _0xc31e31=_0x9884d2;return[...this[_0xc31e31(0x3a1)]['values']()]['some'](_0x47f76d=>_0x47f76d===_0x6619b6);}[_0x9884d2(0x132)](_0x1c53e5){const _0x4fd072=_0x9884d2;let _0x13b26d=_0x1c53e5??'',_0x398980=this[_0x4fd072(0x397)][_0x4fd072(0x2eb)](_0x13b26d);if(_0x398980)return _0x398980;let _0xa7e94b={'endpointKey':_0x13b26d,'endpoint':_0x1c53e5,'socket$':new _0xccd21e[(_0x4fd072(0x379))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4fd072(0x397)][_0x4fd072(0x41e)](_0x13b26d,_0xa7e94b),_0xa7e94b;}['_rescheduleHeartbeat'](_0x5cd700){const _0x479fc6=_0x9884d2;this[_0x479fc6(0x1a6)](_0x5cd700),_0x5cd700[_0x479fc6(0x12f)]=setTimeout(()=>this[_0x479fc6(0x31c)](_0x5cd700),this[_0x479fc6(0x3c6)][_0x479fc6(0x32f)](_0x479fc6(0x3bc))??0x7530);}['_sendHeartbeat'](_0x2e5bad){const _0x6f7f3e=_0x9884d2;_0x2e5bad[_0x6f7f3e(0x352)]['getValue']()[_0x6f7f3e(0x2d6)]({'cmd':_0x349630[_0x6f7f3e(0x293)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2e5bad);}[_0x9884d2(0x2cc)](_0x41dd83){const _0x24f6e2=_0x9884d2;_0x41dd83[_0x24f6e2(0x2ca)]=setTimeout(()=>this[_0x24f6e2(0x19c)](_0x41dd83),this[_0x24f6e2(0x3c6)][_0x24f6e2(0x32f)](_0x24f6e2(0x207))??0x4e20);}['_clearHeartbeatTimer'](_0x45efdd){const _0x361ab8=_0x9884d2;_0x45efdd[_0x361ab8(0x12f)]!=null&&(clearTimeout(_0x45efdd[_0x361ab8(0x12f)]),_0x45efdd[_0x361ab8(0x12f)]=null);}['_clearTimeoutTimer'](_0x4d2c24){const _0x40e942=_0x9884d2;_0x4d2c24[_0x40e942(0x2ca)]!=null&&(clearTimeout(_0x4d2c24[_0x40e942(0x2ca)]),_0x4d2c24[_0x40e942(0x2ca)]=null);}};_0x283d67=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x3,_0x4f7089),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x5,_0x14183e),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ce8fd))],_0x283d67);let _0x4809ba=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x134365,_0x210a1e,_0x15caca,_0x50580a){const _0x149089=_0x9884d2;var _0x2c8958;super(),this['_injector']=_0x134365,this['_collabSessionService']=_0x210a1e,this[_0x149089(0x3c6)]=_0x15caca,this[_0x149089(0x118)]=_0x50580a,_0x60128a(this,_0x149089(0x1cc),new Map()),_0x60128a(this,_0x149089(0x482),new _0xccd21e[(_0x149089(0x200))]()),_0x60128a(this,_0x149089(0x3be),this['_entityInit$'][_0x149089(0x43c)]()),((_0x2c8958=this[_0x149089(0x3c6)]['getConfig'](_0x149089(0x3c1)))==null?void 0x0:_0x2c8958[_0x149089(0x2a9)])!==!0x1&&this['_init']();}[_0x9884d2(0x314)](){const _0x113111=_0x9884d2;super[_0x113111(0x314)](),this[_0x113111(0x1cc)][_0x113111(0x1e3)](_0x2bed69=>_0x2bed69[_0x113111(0x314)]()),this[_0x113111(0x1cc)][_0x113111(0x214)]();}[_0x9884d2(0x16c)](_0x436773){const _0x1d5249=_0x9884d2;return this[_0x1d5249(0x1cc)]['get'](_0x436773)??null;}[_0x9884d2(0x406)](_0x305589){const _0x376278=_0x9884d2;let _0x37185a=this[_0x376278(0x16c)](_0x305589);return _0x37185a?(0x0,_0xccd21e['of'])(_0x37185a):this[_0x376278(0x482)][_0x376278(0x486)]((0x0,_0x2c33e8[_0x376278(0x10d)])(_0x4afbd6=>_0x4afbd6['unitID']===_0x305589));}[_0x9884d2(0x23c)](_0xb3d4d9){const _0x158b39=_0x9884d2;return(0x0,_0xccd21e[_0x158b39(0x224)])(this['getCollabEntity$'](_0xb3d4d9)[_0x158b39(0x486)]((0x0,_0x2c33e8['map'])(()=>void 0x0)));}['_init'](){const _0x512cb5=_0x9884d2;this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x3b4602=>{const _0xf13bd7=_0x512cb5;let _0x5d9045=_0x3b4602['unit'][_0xf13bd7(0x413)](),_0x587f90=await this[_0xf13bd7(0x477)](_0x5d9045,_0x4b2515[_0xf13bd7(0x223)]['UNIVER_SHEET']);this[_0xf13bd7(0x1cc)][_0xf13bd7(0x41e)](_0x5d9045,_0x587f90);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x10f)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x486)]((0x0,_0x2c33e8[_0x512cb5(0x10d)])(_0x1a2f50=>!_0x1a2f50[_0x512cb5(0x145)][_0x512cb5(0x413)]()['startsWith']('__')))['subscribe'](async _0x118cf6=>{const _0x594eb5=_0x512cb5;let _0x2a1158=_0x118cf6[_0x594eb5(0x145)][_0x594eb5(0x413)](),_0x1355c1=await this['_startCollaboration'](_0x2a1158,_0x4b2515[_0x594eb5(0x223)][_0x594eb5(0x10f)]);this['_entities'][_0x594eb5(0x41e)](_0x2a1158,_0x1355c1);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_SLIDE'])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x6d07a9=>{const _0x1010da=_0x512cb5;let _0x4100ed=_0x6d07a9['unit'][_0x1010da(0x413)](),_0x470474=await this[_0x1010da(0x477)](_0x4100ed,_0x4b2515[_0x1010da(0x223)][_0x1010da(0x281)]);this[_0x1010da(0x1cc)][_0x1010da(0x41e)](_0x4100ed,_0x470474);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x339)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x387225=>{const _0x538ab3=_0x512cb5;let _0x532432=_0x387225[_0x538ab3(0x145)][_0x538ab3(0x413)](),_0x9e8928=await this[_0x538ab3(0x477)](_0x532432,_0x4b2515[_0x538ab3(0x223)][_0x538ab3(0x339)]);this[_0x538ab3(0x1cc)][_0x538ab3(0x41e)](_0x532432,_0x9e8928);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x267)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']),(0x0,_0x2c33e8['delay'])(0x10))['subscribe'](async _0x56fecc=>{const _0x43f387=_0x512cb5;let _0x77a74b=_0x56fecc['unit']['getUnitId'](),_0x3559fa=await this[_0x43f387(0x477)](_0x77a74b,_0x4b2515[_0x43f387(0x223)][_0x43f387(0x267)]);this[_0x43f387(0x1cc)][_0x43f387(0x41e)](_0x77a74b,_0x3559fa);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515['UniverInstanceType'][_0x512cb5(0x1b9)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x265bba=>{const _0x526f11=_0x512cb5;let _0x44e276=_0x265bba[_0x526f11(0x145)]['getUnitId'](),_0x58ec7a=await this[_0x526f11(0x477)](_0x44e276,_0x4b2515[_0x526f11(0x223)]['UNIVER_PDF']);this['_entities'][_0x526f11(0x41e)](_0x44e276,_0x58ec7a);}),(0x0,_0xccd21e[_0x512cb5(0x448)])(this[_0x512cb5(0x118)]['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_DOC']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515['UniverInstanceType']['UNIVER_SLIDE']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x339)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x267)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x1b9)]))[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']))[_0x512cb5(0x23b)](_0x237064=>{const _0x3e1af6=_0x512cb5;let _0x4f3342=_0x237064[_0x3e1af6(0x413)](),_0x2867db=this['_entities'][_0x3e1af6(0x2eb)](_0x4f3342);_0x2867db&&(_0x2867db[_0x3e1af6(0x314)](),this[_0x3e1af6(0x1cc)][_0x3e1af6(0x287)](_0x4f3342));});}async[_0x9884d2(0x477)](_0x2da858,_0x53a8fa){const _0xcbc4bc=_0x9884d2;let _0xb192af=await this[_0xcbc4bc(0x455)][_0xcbc4bc(0x1a4)](_0x2da858),_0x5ca766=this[_0xcbc4bc(0x46a)][_0xcbc4bc(0x40d)](this['_getCtorByUniverInstanceType'](_0x53a8fa),_0x2da858,_0x53a8fa,_0xb192af);return await _0x5ca766[_0xcbc4bc(0x2ce)](),this[_0xcbc4bc(0x482)][_0xcbc4bc(0x17e)](_0x5ca766),_0x5ca766;}[_0x9884d2(0x40b)](_0x3533cf){const _0x4a7871=_0x9884d2;switch(_0x3533cf){case _0x4b2515[_0x4a7871(0x223)]['UNIVER_DOC']:return _0x94e744;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x465)]:return _0xe8b1d4;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_SLIDE']:return _0x3a9411;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x339)]:return _0x4deb99;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_BASE']:return _0x24daae;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x1b9)]:return _0x2226d9;default:throw Error(_0x4a7871(0x451)+_0x3533cf);}}};_0x4809ba=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x405)])],_0x4809ba);var _0x3ff4bc='@univerjs-pro/collaboration-client',_0x303b92=_0x9884d2(0x14f);let _0x2fc493=class extends _0x4b2515['Disposable']{constructor(_0x211476,_0x2137a2){const _0x3ea04f=_0x9884d2;super(),this['_univerInstanceService']=_0x211476,this[_0x3ea04f(0x3c6)]=_0x2137a2,this['_init']();}['_init'](){const _0x18646f=_0x9884d2;this[_0x18646f(0x472)](this[_0x18646f(0x118)]['focused$'][_0x18646f(0x23b)](()=>{const _0x2447f1=_0x18646f;let _0x2a5812=this[_0x2447f1(0x118)][_0x2447f1(0x340)](),_0x43d363=this[_0x2447f1(0x3c6)][_0x2447f1(0x32f)]('DEFAULT_FILE_NAME')??_0x2447f1(0x39f);_0x2a5812 instanceof _0x4b2515[_0x2447f1(0x3b5)]&&(_0x43d363=_0x2a5812['name']),document[_0x2447f1(0x420)]=_0x43d363;}));}};_0x2fc493=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)])],_0x2fc493);let _0x5e4e05=(0x0,_0x4b2515[_0x9884d2(0x2c3)])('base-ui.attachment-io.service'),_0x5b1674=class{constructor(_0x13c454,_0x11be8a,_0x480864){const _0x2e06b9=_0x9884d2;this[_0x2e06b9(0x1d0)]=_0x13c454,this[_0x2e06b9(0x3c6)]=_0x11be8a,this[_0x2e06b9(0x118)]=_0x480864;}['getUploadOptions'](){const _0x395082=_0x9884d2;return this[_0x395082(0x13e)]()[_0x395082(0x11e)]??{};}async[_0x9884d2(0x248)](_0x308a27){const _0x409072=_0x9884d2;let _0xb864ae=this[_0x409072(0x2b9)]();if(_0x1b7456(_0x308a27,_0xb864ae),_0xb864ae[_0x409072(0x247)])return _0xb864ae[_0x409072(0x247)](_0x308a27);let _0x49af20=await this[_0x409072(0x1dd)](_0x308a27);return{'id':_0x49af20,'name':_0x308a27['name'],'mimeType':_0x308a27[_0x409072(0x415)],'size':_0x308a27['size'],'sourceType':_0x4b2515[_0x409072(0x3fe)][_0x409072(0x46c)],'source':_0x49af20};}async[_0x9884d2(0x161)](_0x37683d,_0x623fb7){const _0x598a1d=_0x9884d2;if(_0x623fb7!==_0x4b2515[_0x598a1d(0x3fe)]['UUID'])return _0x37683d;let _0x44d161=(await this[_0x598a1d(0x1d0)][_0x598a1d(0x2eb)](this['_getSignURL']()[_0x598a1d(0x3b0)](_0x598a1d(0x2e9),_0x37683d)))[_0x598a1d(0x450)];if(_0x44d161[_0x598a1d(0x1b5)]&&_0x44d161[_0x598a1d(0x1b5)][_0x598a1d(0x3f6)]!==_0x349630[_0x598a1d(0x328)]['OK'])throw _0x44d161[_0x598a1d(0x1b5)];if(!_0x44d161[_0x598a1d(0x424)])throw Error(_0x598a1d(0x253));return(0x0,_0x4b2515[_0x598a1d(0x302)])(_0x44d161[_0x598a1d(0x424)],this['_getDownloadEndpointURL']());}async[_0x9884d2(0x1dd)](_0x1351ab){const _0x22b842=_0x9884d2;let _0xa30f0e=this[_0x22b842(0x118)][_0x22b842(0x340)](),_0x9fe994=_0xa30f0e==null?void 0x0:_0xa30f0e[_0x22b842(0x413)]();if(!_0x9fe994)throw Error(_0x22b842(0x33f));let _0x147d83=new FormData();_0x147d83['append'](_0x22b842(0x23e),_0x1351ab);let _0xab3e31=this['_getUploadFileURL']()+_0x22b842(0x295)+_0x1351ab[_0x22b842(0x442)][_0x22b842(0x353)]()+'&source='+_0x349630[_0x22b842(0x3a6)][_0x22b842(0x14c)]+'&assign='+encodeURIComponent(_0x9fe994),_0x4619ad=(await this['_httpService'][_0x22b842(0x31b)](_0xab3e31,{'body':_0x147d83}))[_0x22b842(0x450)][_0x22b842(0x414)];if(typeof _0x4619ad!='string'||!_0x4619ad)throw Error(_0x22b842(0x22f));return _0x4619ad;}[_0x9884d2(0x264)](){const _0x32a014=_0x9884d2;return this[_0x32a014(0x13e)]()[_0x32a014(0x431)]??_0x32a014(0x42f);}[_0x9884d2(0x322)](){const _0x4642ad=_0x9884d2;return this['_getConfig']()[_0x4642ad(0x218)]??'/universer-api/file/{fileID}/sign-url';}[_0x9884d2(0x337)](){const _0x3f188c=_0x9884d2;let _0x2edee1=this[_0x3f188c(0x13e)]();return _0x2edee1[_0x3f188c(0x47d)]?_0x2edee1[_0x3f188c(0x47d)]:typeof location<'u'?location[_0x3f188c(0x142)]:_0x2edee1[_0x3f188c(0x431)]??'';}['_getConfig'](){const _0x5a5ef5=_0x9884d2;return this[_0x5a5ef5(0x3c6)][_0x5a5ef5(0x32f)](_0x5a5ef5(0x3c1))??{};}};_0x5b1674=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0x5b1674);function _0x1b7456(_0x3f2a01,_0x3bef62){const _0x2b73d8=_0x9884d2;var _0x4ef5f5;if(_0x3bef62[_0x2b73d8(0x3e5)]!=null&&_0x3f2a01[_0x2b73d8(0x442)]>_0x3bef62[_0x2b73d8(0x3e5)])throw Error(_0x2b73d8(0x15a));if((_0x4ef5f5=_0x3bef62[_0x2b73d8(0x40c)])!=null&&_0x4ef5f5[_0x2b73d8(0x147)]&&!_0x3bef62[_0x2b73d8(0x40c)][_0x2b73d8(0x3e3)](_0x2d41ff=>_0x3f2a01[_0x2b73d8(0x415)]===_0x2d41ff||_0x3f2a01[_0x2b73d8(0x114)]['endsWith'](_0x2d41ff)||_0x2d41ff[_0x2b73d8(0x2a5)]('/*')&&_0x3f2a01[_0x2b73d8(0x415)][_0x2b73d8(0x12b)](_0x2d41ff[_0x2b73d8(0x3d6)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x324e1c=class{constructor(_0x44fa07,_0x436277,_0x31fcde){const _0x38d7e8=_0x9884d2;this['_configService']=_0x44fa07,this[_0x38d7e8(0x1d0)]=_0x436277,this['localeService']=_0x31fcde,this[_0x38d7e8(0x2ce)]();}[_0x9884d2(0x2ce)](){const _0x4fae09=_0x9884d2;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3c41e3,_0x35b35f)=>_0x35b35f(_0x3c41e3)['pipe']((0x0,_0xccd21e[_0x4fae09(0x1ef)])(async _0x2d4706=>{const _0x229e33=_0x4fae09;let _0x2ce203=_0x2d4706;if(_0x2ce203[_0x229e33(0x45f)]===0x191){if(typeof window>'u')throw Error(_0x229e33(0x41a));if(window[_0x229e33(0x27d)](this['localeService']['t'](_0x229e33(0x1eb)))){let _0x37c0ff=window['encodeURIComponent'](window[_0x229e33(0x2b2)]['href']);window[_0x229e33(0x2b2)]['href']=this[_0x229e33(0x315)]()+'?url='+_0x37c0ff;}}return _0x2ce203;}))});}[_0x9884d2(0x315)](){const _0x1122b6=_0x9884d2;let _0x16d12b=this[_0x1122b6(0x3c6)][_0x1122b6(0x32f)](_0x3c0330);return(_0x16d12b==null?void 0x0:_0x16d12b[_0x1122b6(0x45c)])??'/universer-api/oidc/authpage';}};_0x324e1c=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)]))],_0x324e1c);let _0x15f3fe=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x18c2f4,_0x3c12ae){const _0x1d893a=_0x9884d2;super(),this['_HTTPService']=_0x18c2f4,this['_configService']=_0x3c12ae,_0x60128a(this,_0x1d893a(0x3d9),!0x1),this[_0x1d893a(0x3a7)]();}[_0x9884d2(0x3a7)](){const _0x387c52=_0x9884d2;let _0x43e5b2=this;this[_0x387c52(0x472)](this[_0x387c52(0x480)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x530da8[_0x387c52(0x2ac)])({'isMatch'(_0x35845e){const _0x2a4838=_0x387c52;var _0x580e8b;if(_0x35845e[_0x2a4838(0x449)]===_0x2a4838(0x2c8)&&(_0x580e8b=_0x35845e[_0x2a4838(0x138)])!=null&&_0x580e8b[_0x2a4838(0x450)]){let {objectID:_0x59a132,objectType:_0x4fbdf1}=_0x35845e['requestParams'][_0x2a4838(0x450)]||{};if(!_0x59a132||_0x4fbdf1===void 0x0)return!0x1;let _0x3c1823=_0x43e5b2['_getAPIPrefixPath']()+'/'+_0x4fbdf1+_0x2a4838(0x2a1)+encodeURIComponent(_0x59a132)+_0x2a4838(0x17b);if(_0x35845e['url']===_0x3c1823)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x530550){const _0x75e5df=_0x387c52;var _0x6bb710;return(_0x6bb710=_0x530550[_0x75e5df(0x138)])==null?void 0x0:_0x6bb710[_0x75e5df(0x450)];},'mergeParamsToRequest'(_0x552eb4,_0x4b2f65){const _0x35eb09=_0x387c52;let _0x2214f0=_0x43e5b2[_0x35eb09(0x133)]()+_0x35eb09(0x183),_0x261b38=_0x552eb4['reduce']((_0x53eb4b,_0x410e19)=>{const _0x115f25=_0x35eb09;let {unitID:_0x70140e,objectID:_0xd6b2c7,objectType:_0x288cfe,actions:_0x3bf78e}=_0x410e19;return _0x53eb4b[_0x70140e]||(_0x53eb4b[_0x70140e]=Object[_0x115f25(0x173)](null)),_0x53eb4b[_0x70140e][_0xd6b2c7]||(_0x53eb4b[_0x70140e][_0xd6b2c7]={'objectID':_0xd6b2c7,'objectType':_0x288cfe,'actions':[]}),_0x53eb4b[_0x70140e][_0xd6b2c7][_0x115f25(0x37a)][_0x115f25(0x42c)](..._0x3bf78e),_0x53eb4b;},Object[_0x35eb09(0x173)](null)),_0x4b07ac=[];for(let _0x94ea31 in _0x261b38)for(let _0x12490f in _0x261b38[_0x94ea31]){let {actions:_0xd732bd,objectType:_0x48eac6}=_0x261b38[_0x94ea31][_0x12490f],_0x45e2f2=[...new Set(_0xd732bd)];_0x4b07ac['push']({'unitID':_0x94ea31,'objectID':_0x12490f,'objectType':_0x48eac6,'actions':_0x45e2f2});}return new _0x530da8['HTTPRequest'](_0x35eb09(0x2c8),_0x2214f0,{'headers':_0x4b2f65[_0x35eb09(0x112)],'withCredentials':_0x4b2f65['withCredentials'],'responseType':_0x4b2f65['responseType'],'body':{'requests':_0x4b07ac}});}},{'distributeResult'(_0x240549,_0x5874b4){let {objectActions:_0x3121b7}=_0x240549;return _0x5874b4['map'](_0x54c3b3=>{const _0x5c1274=_0x328a;let {unitID:_0x10dafb,objectID:_0x5f17ce,actions:_0x2ef637}=_0x54c3b3,_0x5a233c=_0x3121b7[_0x5c1274(0x34a)](_0x1cec5b=>_0x1cec5b[_0x5c1274(0x258)]===_0x10dafb&&_0x1cec5b['objectID']===_0x5f17ce);return{'config':_0x54c3b3,'result':{'actions':_0x2ef637['map'](_0x20042e=>_0x5a233c==null?void 0x0:_0x5a233c[_0x5c1274(0x37a)][_0x5c1274(0x34a)](_0x2587c6=>_0x2587c6['action']===_0x20042e))['filter'](_0x25f8d6=>!!_0x25f8d6),'error':_0x240549['error']}};});}})}));}[_0x9884d2(0x133)](){const _0x4783cc=_0x9884d2;let _0x6049e0=this[_0x4783cc(0x3c6)][_0x4783cc(0x32f)](_0x3c0330);return(_0x6049e0==null?void 0x0:_0x6049e0[_0x4783cc(0x2d7)])??'/universer-api/authz';}async['create'](_0x3bc20f){const _0x529388=_0x9884d2;let _0x166965=this['_getAPIPrefixPath']()+'/'+_0x3bc20f[_0x529388(0x46b)]+_0x529388(0x2dd);return(await this[_0x529388(0x480)][_0x529388(0x31b)](_0x166965,{'body':_0x3bc20f}))['body'][_0x529388(0x475)]||'';}async[_0x9884d2(0x240)](_0x258047){const _0x25f78c=_0x9884d2;let _0x28d150=this[_0x25f78c(0x133)]()+_0x25f78c(0x2cb);return(await this[_0x25f78c(0x480)]['post'](_0x28d150,{'body':_0x258047}))[_0x25f78c(0x450)]['objects'];}async[_0x9884d2(0x3fa)](_0xb88fa5){const _0x580ed2=_0x9884d2;var _0x3ecdf5;let _0x5c3d51=this[_0x580ed2(0x133)]()+'/'+_0xb88fa5['objectType']+_0x580ed2(0x2a1)+encodeURIComponent(_0xb88fa5['objectID']),_0x4c87a1=await this[_0x580ed2(0x480)][_0x580ed2(0x26b)](_0x5c3d51,{'body':_0xb88fa5});if((_0x4c87a1==null||(_0x3ecdf5=_0x4c87a1[_0x580ed2(0x450)])==null||(_0x3ecdf5=_0x3ecdf5[_0x580ed2(0x1b5)])==null?void 0x0:_0x3ecdf5[_0x580ed2(0x3f6)])!==0x1)throw Error(_0x580ed2(0x140));}async['allowed'](_0x365764){const _0x901640=_0x9884d2;let _0x27a3a3=this[_0x901640(0x133)]()+'/'+_0x365764[_0x901640(0x46b)]+_0x901640(0x2a1)+encodeURIComponent(_0x365764['objectID'])+_0x901640(0x17b);return(await this[_0x901640(0x480)][_0x901640(0x31b)](_0x27a3a3,{'body':_0x365764}))[_0x901640(0x450)][_0x901640(0x37a)];}async['batchAllowed'](_0x1744fa){const _0x58ee39=_0x9884d2;let _0x3720d9=this['_getAPIPrefixPath']()+_0x58ee39(0x183);return(await this[_0x58ee39(0x480)]['post'](_0x3720d9,{'body':{'requests':_0x1744fa}}))[_0x58ee39(0x450)][_0x58ee39(0x152)];}async['listRoles'](_0x5ce200){const _0x1d521e=_0x9884d2;let _0x1adbaf=this[_0x1d521e(0x133)]()+'/'+_0x5ce200['objectType']+_0x1d521e(0x438),_0x1c5c94=await this[_0x1d521e(0x480)][_0x1d521e(0x31b)](_0x1adbaf,{'body':_0x5ce200});return{'roles':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x242)],'actions':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x37a)]};}async[_0x9884d2(0x466)](_0x43ca4a){const _0xb2cac9=_0x9884d2;let _0x44fb18=this['_getAPIPrefixPath']()+_0xb2cac9(0x275);await this['_HTTPService'][_0xb2cac9(0x287)](_0x44fb18,{'params':{'collaboratorID':_0x43ca4a[_0xb2cac9(0x394)],'objectID':_0x43ca4a[_0xb2cac9(0x475)],'unitID':_0x43ca4a['unitID']}});}async[_0x9884d2(0x126)](_0x2c7165){const _0x3fab53=_0x9884d2;let _0x3312e9=this['_getAPIPrefixPath']()+_0x3fab53(0x275);await this[_0x3fab53(0x480)]['patch'](_0x3312e9,{'body':_0x2c7165});}async[_0x9884d2(0x256)](_0xcc2c87){const _0x39dae5=_0x9884d2;let _0x406b55=this[_0x39dae5(0x133)]()+_0x39dae5(0x275);await this[_0x39dae5(0x480)][_0x39dae5(0x31b)](_0x406b55,{'body':_0xcc2c87});}async[_0x9884d2(0x38c)](_0x41942b){const _0x47ce56=_0x9884d2;let _0x544439=this[_0x47ce56(0x133)]()+_0x47ce56(0x275),_0x5f138a=await this['_HTTPService'][_0x47ce56(0x2eb)](_0x544439,{'params':{'objectID':_0x41942b[_0x47ce56(0x475)],'unitID':_0x41942b[_0x47ce56(0x258)]}});return this[_0x47ce56(0x245)](_0x5f138a[_0x47ce56(0x450)]['cfgEnableObjInherit']??!0x1),_0x5f138a[_0x47ce56(0x450)][_0x47ce56(0x3ff)];}async[_0x9884d2(0x2b4)](_0x260fcd){const _0x32f597=_0x9884d2;let _0x51d5d8=this[_0x32f597(0x133)]()+'/collaborator';await this[_0x32f597(0x480)][_0x32f597(0x26b)](_0x51d5d8,{'body':_0x260fcd});}[_0x9884d2(0x245)](_0x29e572){this['_cfgEnableObjInherit']=_0x29e572;}['getCfgEnableObjInherit'](){const _0x33815e=_0x9884d2;return this[_0x33815e(0x3d9)];}};_0x15f3fe=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IConfigService']))],_0x15f3fe);function _0x384d25(_0x527497){const _0x5630ff=_0x9884d2;return _0x527497 instanceof Uint8Array||ArrayBuffer['isView'](_0x527497)&&_0x527497[_0x5630ff(0x11a)][_0x5630ff(0x114)]===_0x5630ff(0x487)&&_0x5630ff(0x1ae)in _0x527497&&_0x527497['BYTES_PER_ELEMENT']===0x1;}let _0x5b4ae0=_0x22d729=>_0x22d729?'\x22'+_0x22d729+'\x22\x20':'';function _0x4fb7a8(_0x527d9,_0x8c229c=''){const _0x2e7b1d=_0x9884d2;if(typeof _0x527d9!=_0x2e7b1d(0x266))throw TypeError(_0x5b4ae0(_0x8c229c)+'expected\x20number,\x20got\x20'+typeof _0x527d9);if(!Number[_0x2e7b1d(0x131)](_0x527d9)||_0x527d9<0x0)throw RangeError(_0x5b4ae0(_0x8c229c)+_0x2e7b1d(0x14b)+_0x527d9);return _0x527d9;}function _0x5022ca(_0x1e12f7,_0x3e8cb1,_0x5da82f=''){const _0x31b033=_0x9884d2;if(_0x384d25(_0x1e12f7)&&(_0x3e8cb1===void 0x0||_0x1e12f7[_0x31b033(0x147)]===_0x3e8cb1))return _0x1e12f7;_0x3e8cb1!==void 0x0&&_0x4fb7a8(_0x3e8cb1,_0x31b033(0x147));let _0x121841=_0x384d25(_0x1e12f7),_0xdd3c9f=_0x3e8cb1===void 0x0?'':_0x31b033(0x123)+_0x3e8cb1,_0x4df749=_0x121841?'length='+_0x1e12f7[_0x31b033(0x147)]:_0x31b033(0x332)+typeof _0x1e12f7,_0x479d2c=_0x5b4ae0(_0x5da82f)+_0x31b033(0x381)+_0xdd3c9f+_0x31b033(0x31d)+_0x4df749;throw _0x121841?RangeError(_0x479d2c):TypeError(_0x479d2c);}function _0x199311(_0x5cdce4){const _0x1d6bc3=_0x9884d2;return new Uint32Array(_0x5cdce4[_0x1d6bc3(0x2ab)],_0x5cdce4[_0x1d6bc3(0x28c)],Math[_0x1d6bc3(0x2bd)](_0x5cdce4[_0x1d6bc3(0x37f)]/0x4));}function _0x57dbaa(..._0x3f21e7){const _0x348d63=_0x9884d2;for(let _0xe31dc9=0x0;_0xe31dc9<_0x3f21e7[_0x348d63(0x147)];_0xe31dc9++)_0x3f21e7[_0xe31dc9][_0x348d63(0x249)](0x0);}let _0x129fb4=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x2d4194(_0x5a9acc){return _0x5a9acc<<0x18&0xff000000|_0x5a9acc<<0x8&0xff0000|_0x5a9acc>>>0x8&0xff00|_0x5a9acc>>>0x18&0xff;}function _0x4dbcec(_0x2dade7){const _0x34df53=_0x9884d2;for(let _0x2f50be=0x0;_0x2f50be<_0x2dade7[_0x34df53(0x147)];_0x2f50be++)_0x2dade7[_0x2f50be]=_0x2d4194(_0x2dade7[_0x2f50be]);return _0x2dade7;}let _0x5f5a67=_0x129fb4?_0x52086a=>_0x52086a:_0x4dbcec;function _0x37b28a(_0x3e0585){const _0x5da1be=_0x9884d2;if(typeof _0x3e0585!=_0x5da1be(0x212))throw TypeError(_0x5da1be(0x168));return new Uint8Array(new TextEncoder()['encode'](_0x3e0585));}function _0x2e1fb6(_0x8ba964,_0xa1e50f){const _0x2f6a45=_0x9884d2;return!_0x8ba964['byteLength']||!_0xa1e50f['byteLength']?!0x1:_0x8ba964[_0x2f6a45(0x2ab)]===_0xa1e50f[_0x2f6a45(0x2ab)]&&_0x8ba964[_0x2f6a45(0x28c)]<_0xa1e50f[_0x2f6a45(0x28c)]+_0xa1e50f[_0x2f6a45(0x37f)]&&_0xa1e50f['byteOffset']<_0x8ba964[_0x2f6a45(0x28c)]+_0x8ba964['byteLength'];}function _0x3920fa(_0x58f3b4,_0x991d25){const _0x28af28=_0x9884d2;if(_0x2e1fb6(_0x58f3b4,_0x991d25)&&_0x58f3b4[_0x28af28(0x28c)]<_0x991d25[_0x28af28(0x28c)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x10db65(..._0x3f9026){const _0x3f578c=_0x9884d2;let _0x2be5f8=0x0;for(let _0x53f88f=0x0;_0x53f88f<_0x3f9026[_0x3f578c(0x147)];_0x53f88f++){let _0x3d3122=_0x3f9026[_0x53f88f];_0x5022ca(_0x3d3122),_0x2be5f8+=_0x3d3122[_0x3f578c(0x147)];}let _0x118bd3=new Uint8Array(_0x2be5f8);for(let _0x32075f=0x0,_0x3d22bd=0x0;_0x32075f<_0x3f9026[_0x3f578c(0x147)];_0x32075f++){let _0x4ec53e=_0x3f9026[_0x32075f];_0x118bd3[_0x3f578c(0x41e)](_0x4ec53e,_0x3d22bd),_0x3d22bd+=_0x4ec53e[_0x3f578c(0x147)];}return _0x118bd3;}let _0x22a48f=(_0x4d17ad,_0x5a89e8)=>{const _0x204b69=_0x9884d2;function _0x4788e5(_0x46e618,..._0x1a76df){const _0x3db422=_0x328a;if(_0x5022ca(_0x46e618,void 0x0,_0x3db422(0x365)),_0x4d17ad[_0x3db422(0x335)]!==void 0x0){let _0x5d91c9=_0x1a76df[0x0];_0x5022ca(_0x5d91c9,_0x4d17ad[_0x3db422(0x1c2)]?void 0x0:_0x4d17ad[_0x3db422(0x335)],_0x3db422(0x15b));}let _0x4d6db7=_0x4d17ad[_0x3db422(0x221)],_0x45a823=_0x4d17ad[_0x3db422(0x335)]===void 0x0?0x0:0x1;if(!_0x4d17ad['withAAD']){for(let _0x5058c3=_0x45a823;_0x5058c3<_0x1a76df[_0x3db422(0x147)];_0x5058c3++)if(_0x384d25(_0x1a76df[_0x5058c3]))throw Error(_0x3db422(0x284));}_0x4d17ad[_0x3db422(0x20d)]&&_0x1a76df[_0x45a823]!==void 0x0&&_0x5022ca(_0x1a76df[_0x45a823],void 0x0,'AAD');let _0x44bb78=_0x5a89e8(_0x46e618,..._0x1a76df),_0x35faa0=(_0x39fd85,_0x1560ec)=>{const _0x504c2a=_0x3db422;if(_0x1560ec!==void 0x0){if(_0x39fd85!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x5022ca(_0x1560ec,void 0x0,_0x504c2a(0x1ed));}},_0x7bfdf=!0x1;return{'encrypt'(_0x33b7a9,_0x398b10){const _0x1ac072=_0x3db422;if(_0x7bfdf)throw Error(_0x1ac072(0x2ad));return _0x7bfdf=!0x0,_0x5022ca(_0x33b7a9,void 0x0,'data'),_0x35faa0(_0x44bb78[_0x1ac072(0x391)][_0x1ac072(0x147)],_0x398b10),_0x44bb78[_0x1ac072(0x391)](_0x33b7a9,_0x398b10);},'decrypt'(_0x2482d0,_0x1260d3){const _0x3f9fe5=_0x3db422;if(_0x5022ca(_0x2482d0,void 0x0,_0x3f9fe5(0x1b4)),_0x4d6db7&&_0x2482d0[_0x3f9fe5(0x147)]<_0x4d6db7)throw Error(_0x3f9fe5(0x319)+_0x4d6db7);return _0x35faa0(_0x44bb78[_0x3f9fe5(0x205)]['length'],_0x1260d3),_0x44bb78[_0x3f9fe5(0x205)](_0x2482d0,_0x1260d3);}};}return Object[_0x204b69(0x276)](_0x4788e5,_0x4d17ad),_0x4788e5;};function _0x10294a(_0x6d8277,_0x387d3d,_0x2dbadb=!0x0){const _0x232224=_0x9884d2;if(_0x387d3d===void 0x0)return new Uint8Array(_0x6d8277);if(_0x5022ca(_0x387d3d,_0x6d8277,'output'),_0x2dbadb&&!_0x50253f(_0x387d3d))throw Error(_0x232224(0x227));return _0x387d3d;}function _0x50253f(_0x4dd8cd){const _0x30829b=_0x9884d2;return _0x4dd8cd[_0x30829b(0x28c)]%0x4==0x0;}function _0x2cad28(_0x4b05ad){return Uint8Array['from'](_0x5022ca(_0x4b05ad));}function _0x49b1fc(_0xd25560=0x20){const _0x529d98=_0x9884d2;_0x4fb7a8(_0xd25560,'bytesLength');let _0x4ea7e0=typeof globalThis==_0x529d98(0x26e)?globalThis[_0x529d98(0x3ae)]:null;if(typeof(_0x4ea7e0==null?void 0x0:_0x4ea7e0[_0x529d98(0x1c8)])!=_0x529d98(0x474))throw Error(_0x529d98(0x407));if(_0xd25560>0x10000)throw RangeError(_0x529d98(0x19e)+_0xd25560);return _0x4ea7e0[_0x529d98(0x1c8)](new Uint8Array(_0xd25560));}function _0x3b137f(_0x319d71){const _0x3569a7=_0x9884d2;if(![0x10,0x18,0x20]['includes'](_0x319d71[_0x3569a7(0x147)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x319d71[_0x3569a7(0x147)]);}function _0x28c7a1(_0x3ac7e4){return _0x3ac7e4<<0x1^0x11b&-(_0x3ac7e4>>0x7);}function _0x406fc2(_0x463f6b,_0x5bc642){let _0x2449c8=0x0;for(;_0x5bc642>0x0;_0x5bc642>>=0x1)_0x2449c8^=_0x463f6b&-(_0x5bc642&0x1),_0x463f6b=_0x28c7a1(_0x463f6b);return _0x2449c8;}let _0xf00a23=((()=>{let _0x18cf91=new Uint8Array(0x100);for(let _0x5965f8=0x0,_0x1bf7b6=0x1;_0x5965f8<0x100;_0x5965f8++,_0x1bf7b6^=_0x28c7a1(_0x1bf7b6))_0x18cf91[_0x5965f8]=_0x1bf7b6;let _0x96eaa4=new Uint8Array(0x100);_0x96eaa4[0x0]=0x63;for(let _0x3a8287=0x0;_0x3a8287<0xff;_0x3a8287++){let _0x505896=_0x18cf91[0xff-_0x3a8287];_0x505896|=_0x505896<<0x8,_0x96eaa4[_0x18cf91[_0x3a8287]]=(_0x505896^_0x505896>>0x4^_0x505896>>0x5^_0x505896>>0x6^_0x505896>>0x7^0x63)&0xff;}return _0x57dbaa(_0x18cf91),_0x96eaa4;})()),_0x2984fc=_0xf00a23[_0x9884d2(0x333)]((_0x389279,_0x59f16f)=>_0xf00a23[_0x9884d2(0x172)](_0x59f16f)),_0x2047a0=_0x3848d0=>_0x3848d0<<0x18|_0x3848d0>>>0x8,_0x5f4f0e=_0x1790ea=>_0x1790ea<<0x8|_0x1790ea>>>0x18;function _0x1a4579(_0x1a1949,_0x5486f0){const _0x4e0f68=_0x9884d2;if(_0x1a1949[_0x4e0f68(0x147)]!==0x100)throw Error(_0x4e0f68(0x368));let _0x2dc52a=new Uint32Array(0x100)[_0x4e0f68(0x333)]((_0x3f8c9a,_0x537f1b)=>_0x5486f0(_0x1a1949[_0x537f1b])),_0x487d14=_0x2dc52a['map'](_0x5f4f0e),_0x562ffd=_0x487d14[_0x4e0f68(0x333)](_0x5f4f0e),_0x17dfd6=_0x562ffd['map'](_0x5f4f0e),_0x396ac6=new Uint32Array(0x10000),_0x16227a=new Uint32Array(0x10000),_0x489ba9=new Uint16Array(0x10000);for(let _0x1f9126=0x0;_0x1f9126<0x100;_0x1f9126++)for(let _0x116141=0x0;_0x116141<0x100;_0x116141++){let _0x95d21a=_0x1f9126*0x100+_0x116141;_0x396ac6[_0x95d21a]=_0x2dc52a[_0x1f9126]^_0x487d14[_0x116141],_0x16227a[_0x95d21a]=_0x562ffd[_0x1f9126]^_0x17dfd6[_0x116141],_0x489ba9[_0x95d21a]=_0x1a1949[_0x1f9126]<<0x8|_0x1a1949[_0x116141];}return{'sbox':_0x1a1949,'sbox2':_0x489ba9,'T0':_0x2dc52a,'T1':_0x487d14,'T2':_0x562ffd,'T3':_0x17dfd6,'T01':_0x396ac6,'T23':_0x16227a};}let _0xd1fae5=_0x1a4579(_0xf00a23,_0x37cdd4=>_0x406fc2(_0x37cdd4,0x3)<<0x18|_0x37cdd4<<0x10|_0x37cdd4<<0x8|_0x406fc2(_0x37cdd4,0x2)),_0x38ea3f=_0x1a4579(_0x2984fc,_0x35dd7e=>_0x406fc2(_0x35dd7e,0xb)<<0x18|_0x406fc2(_0x35dd7e,0xd)<<0x10|_0x406fc2(_0x35dd7e,0x9)<<0x8|_0x406fc2(_0x35dd7e,0xe)),_0x123c1d=((()=>{let _0xc39ceb=new Uint8Array(0x10);for(let _0x38c0da=0x0,_0x51f38f=0x1;_0x38c0da<0x10;_0x38c0da++,_0x51f38f=_0x28c7a1(_0x51f38f))_0xc39ceb[_0x38c0da]=_0x51f38f;return _0xc39ceb;})());function _0x4362e7(_0x565fb5){const _0x4f3c96=_0x9884d2;_0x5022ca(_0x565fb5);let _0x4c8b29=_0x565fb5['length'];_0x3b137f(_0x565fb5);let {sbox2:_0x7ae62}=_0xd1fae5,_0x15010a=[];(!_0x129fb4||!_0x50253f(_0x565fb5))&&_0x15010a[_0x4f3c96(0x42c)](_0x565fb5=_0x2cad28(_0x565fb5));let _0x2bccd9=_0x5f5a67(_0x199311(_0x565fb5)),_0x4ced2=_0x2bccd9['length'],_0x1d35c4=_0x7de057=>_0x4e69e5(_0x7ae62,_0x7de057,_0x7de057,_0x7de057,_0x7de057),_0x1e9602=new Uint32Array(_0x4c8b29+0x1c);_0x1e9602[_0x4f3c96(0x41e)](_0x2bccd9);for(let _0x27cd9f=_0x4ced2;_0x27cd9f<_0x1e9602[_0x4f3c96(0x147)];_0x27cd9f++){let _0x208e86=_0x1e9602[_0x27cd9f-0x1];_0x27cd9f%_0x4ced2===0x0?_0x208e86=_0x1d35c4(_0x2047a0(_0x208e86))^_0x123c1d[_0x27cd9f/_0x4ced2-0x1]:_0x4ced2>0x6&&_0x27cd9f%_0x4ced2===0x4&&(_0x208e86=_0x1d35c4(_0x208e86)),_0x1e9602[_0x27cd9f]=_0x1e9602[_0x27cd9f-_0x4ced2]^_0x208e86;}return _0x57dbaa(..._0x15010a),_0x1e9602;}function _0x1f98ed(_0x5efc76){let _0x352827=_0x4362e7(_0x5efc76),_0x417a56=_0x352827['slice'](),_0x5b7ddb=_0x352827['length'],{sbox2:_0x5ae301}=_0xd1fae5,{T0:_0x3a6ebd,T1:_0x26d5b9,T2:_0x1d85b4,T3:_0x4483df}=_0x38ea3f;for(let _0x2068f3=0x0;_0x2068f3<_0x5b7ddb;_0x2068f3+=0x4)for(let _0x452e31=0x0;_0x452e31<0x4;_0x452e31++)_0x417a56[_0x2068f3+_0x452e31]=_0x352827[_0x5b7ddb-_0x2068f3-0x4+_0x452e31];_0x57dbaa(_0x352827);for(let _0x13543f=0x4;_0x13543f<_0x5b7ddb-0x4;_0x13543f++){let _0x6d214c=_0x417a56[_0x13543f],_0x2d8517=_0x4e69e5(_0x5ae301,_0x6d214c,_0x6d214c,_0x6d214c,_0x6d214c);_0x417a56[_0x13543f]=_0x3a6ebd[_0x2d8517&0xff]^_0x26d5b9[_0x2d8517>>>0x8&0xff]^_0x1d85b4[_0x2d8517>>>0x10&0xff]^_0x4483df[_0x2d8517>>>0x18];}return _0x417a56;}function _0x4d7535(_0x7a615a,_0x55cafd,_0x1f1e73,_0x3fb21b,_0x4b917c,_0x592921){return _0x7a615a[_0x1f1e73<<0x8&0xff00|_0x3fb21b>>>0x8&0xff]^_0x55cafd[_0x4b917c>>>0x8&0xff00|_0x592921>>>0x18&0xff];}function _0x4e69e5(_0x4bd7cb,_0x586108,_0x4f743f,_0x2cce92,_0x151f3f){return _0x4bd7cb[_0x586108&0xff|_0x4f743f&0xff00]|_0x4bd7cb[_0x2cce92>>>0x10&0xff|_0x151f3f>>>0x10&0xff00]<<0x10;}function _0x51944f(_0x37b714,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671){const _0x2079a2=_0x9884d2;let {sbox2:_0x5888b1,T01:_0x336c48,T23:_0x3e6256}=_0xd1fae5,_0x13e475=0x0;_0xc530b1^=_0x37b714[_0x13e475++],_0x158fdc^=_0x37b714[_0x13e475++],_0xaf1e79^=_0x37b714[_0x13e475++],_0x4a9671^=_0x37b714[_0x13e475++];let _0x9fb9ea=_0x37b714[_0x2079a2(0x147)]/0x4-0x2;for(let _0x4f6c2a=0x0;_0x4f6c2a<_0x9fb9ea;_0x4f6c2a++){let _0x185aff=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),_0x4604c4=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),_0x891d18=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),_0x103678=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79);_0xc530b1=_0x185aff,_0x158fdc=_0x4604c4,_0xaf1e79=_0x891d18,_0x4a9671=_0x103678;}return{'s0':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),'s1':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),'s2':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),'s3':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79)};}function _0x491d38(_0x1dbdbb,_0x2d15b8,_0x539442,_0x427711,_0x500a10){const _0x4e00cf=_0x9884d2;let {sbox2:_0x47de4e,T01:_0x391c1d,T23:_0x4de135}=_0x38ea3f,_0x5a21fc=0x0;_0x2d15b8^=_0x1dbdbb[_0x5a21fc++],_0x539442^=_0x1dbdbb[_0x5a21fc++],_0x427711^=_0x1dbdbb[_0x5a21fc++],_0x500a10^=_0x1dbdbb[_0x5a21fc++];let _0x1bc109=_0x1dbdbb[_0x4e00cf(0x147)]/0x4-0x2;for(let _0x456665=0x0;_0x456665<_0x1bc109;_0x456665++){let _0x4ebcd8=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x2d15b8,_0x500a10,_0x427711,_0x539442),_0x48b991=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x539442,_0x2d15b8,_0x500a10,_0x427711),_0x45d548=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x427711,_0x539442,_0x2d15b8,_0x500a10),_0x51a9a6=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x500a10,_0x427711,_0x539442,_0x2d15b8);_0x2d15b8=_0x4ebcd8,_0x539442=_0x48b991,_0x427711=_0x45d548,_0x500a10=_0x51a9a6;}return{'s0':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x2d15b8,_0x500a10,_0x427711,_0x539442),'s1':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x539442,_0x2d15b8,_0x500a10,_0x427711),'s2':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x427711,_0x539442,_0x2d15b8,_0x500a10),'s3':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x500a10,_0x427711,_0x539442,_0x2d15b8)};}function _0x2f8f97(_0x29b2e1,_0x206e6c){const _0x1e551b=_0x9884d2;if(_0x5022ca(_0x29b2e1),_0x29b2e1['length']%0x10!=0x0)throw Error(_0x1e551b(0x385));_0x206e6c!==void 0x0&&(_0x10294a(_0x29b2e1[_0x1e551b(0x147)],_0x206e6c),_0x3920fa(_0x29b2e1,_0x206e6c));}function _0x1b8a16(_0x26bf17,_0x8ed2c,_0x444115){const _0x364610=_0x9884d2;_0x5022ca(_0x26bf17);let _0x500e90=_0x26bf17[_0x364610(0x147)],_0x15f519=_0x500e90%0x10;if(!_0x8ed2c&&_0x15f519!==0x0)throw Error(_0x364610(0x1e8));if(_0x8ed2c){let _0x106079=0x10-_0x15f519;_0x106079||=0x10,_0x500e90+=_0x106079;}return _0x444115!==void 0x0&&(_0x10294a(_0x500e90,_0x444115),_0x3920fa(_0x26bf17,_0x444115)),_0x500e90;}function _0x2d8cc4(_0x37faaa,_0x2a3208,_0x32841e){_0x32841e===void 0x0&&(_0x32841e=new Uint8Array(_0x2a3208)),(!_0x129fb4||!_0x50253f(_0x37faaa))&&(_0x37faaa=_0x2cad28(_0x37faaa));let _0x2a637b=_0x199311(_0x32841e);return{'b':_0x37faaa,'o':_0x2a637b,'out':_0x32841e};}function _0x1886b6(_0x5a11ce,_0x452e43){const _0x846b2a=_0x9884d2;if(!_0x452e43)return _0x5a11ce;let _0x4a081f=_0x5a11ce[_0x846b2a(0x147)];if(_0x4a081f===0x0)throw Error(_0x846b2a(0x2c6));let _0x2c01b3=_0x5a11ce[_0x4a081f-0x1],_0x4fe5fc=0x1;_0x4fe5fc&=_0x2c01b3-0x1>>>0x1f^0x1,_0x4fe5fc&=0x10-_0x2c01b3>>>0x1f^0x1;for(let _0x883c31=0x0;_0x883c31<0x10;_0x883c31++){let _0x1dbd53=_0x883c31-_0x2c01b3>>>0x1f,_0x5bc462=+((_0x5a11ce[_0x4a081f-0x1-_0x883c31]^_0x2c01b3)===0x0);_0x4fe5fc&=_0x5bc462|_0x1dbd53^0x1;}if(!_0x4fe5fc)throw Error(_0x846b2a(0x372));return _0x5a11ce[_0x846b2a(0x2af)](0x0,_0x4a081f-_0x2c01b3);}function _0x31d810(_0x49258c){const _0x18be91=_0x9884d2;let _0x34b36b=new Uint8Array(0x10),_0x28ed17=_0x199311(_0x34b36b);_0x34b36b[_0x18be91(0x41e)](_0x49258c);let _0x586cea=0x10-_0x49258c['length'];for(let _0x1cbb4e=0x10-_0x586cea;_0x1cbb4e<0x10;_0x1cbb4e++)_0x34b36b[_0x1cbb4e]=_0x586cea;return _0x28ed17;}let _0x3222fd=_0x22a48f({'blockSize':0x10,'nonceLength':0x10},function(_0x30bf1a,_0x4a66e9,_0x3d41c6={}){const _0x3a8a1d=_0x9884d2;let _0x279fd8=!_0x3d41c6[_0x3a8a1d(0x257)];return{'encrypt'(_0x51c26b,_0xd406c8){const _0x1915cb=_0x3a8a1d;let _0x48b13d=_0x1b8a16(_0x51c26b,_0x279fd8,_0xd406c8),_0x37a532=_0x4362e7(_0x30bf1a),{b:_0x11790b,o:_0x5a64a0,out:_0x102252}=_0x2d8cc4(_0x51c26b,_0x48b13d,_0xd406c8),_0x5baa4d=_0x199311(_0x11790b);_0x5f5a67(_0x5baa4d);let _0x25e57b=_0x4a66e9,_0x1c68ea=[_0x37a532];(!_0x129fb4||!_0x50253f(_0x25e57b))&&_0x1c68ea[_0x1915cb(0x42c)](_0x25e57b=_0x2cad28(_0x25e57b));let _0x3a5880=_0x199311(_0x25e57b);_0x5f5a67(_0x3a5880);let _0x2b0876=_0x3a5880[0x0],_0x2dda49=_0x3a5880[0x1],_0x55c3c3=_0x3a5880[0x2],_0x15a056=_0x3a5880[0x3],_0x259aba=0x0;for(;_0x259aba+0x4<=_0x5baa4d['length'];)_0x2b0876^=_0x5baa4d[_0x259aba+0x0],_0x2dda49^=_0x5baa4d[_0x259aba+0x1],_0x55c3c3^=_0x5baa4d[_0x259aba+0x2],_0x15a056^=_0x5baa4d[_0x259aba+0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056;if(_0x279fd8){let _0x287963=_0x31d810(_0x51c26b[_0x1915cb(0x2af)](_0x259aba*0x4));_0x5f5a67(_0x287963),_0x2b0876^=_0x287963[0x0],_0x2dda49^=_0x287963[0x1],_0x55c3c3^=_0x287963[0x2],_0x15a056^=_0x287963[0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056,_0x57dbaa(_0x287963);}return _0x5f5a67(_0x5a64a0),_0x57dbaa(..._0x1c68ea),_0x11790b!==_0x51c26b&&_0x57dbaa(_0x11790b),_0x102252;},'decrypt'(_0x19d969,_0x2d94bf){const _0x3fb934=_0x3a8a1d;_0x2f8f97(_0x19d969,_0x2d94bf);let _0x4cdfa3=_0x1f98ed(_0x30bf1a);_0x2d94bf===void 0x0&&(_0x2d94bf=new Uint8Array(_0x19d969['length']));let _0x48d5af=_0x4a66e9,_0x1f7542=[_0x4cdfa3];(!_0x129fb4||!_0x50253f(_0x48d5af))&&_0x1f7542[_0x3fb934(0x42c)](_0x48d5af=_0x2cad28(_0x48d5af));let _0x54d23f=_0x199311(_0x48d5af);_0x5f5a67(_0x54d23f),(!_0x129fb4||!_0x50253f(_0x19d969))&&_0x1f7542[_0x3fb934(0x42c)](_0x19d969=_0x2cad28(_0x19d969));let _0x301998=_0x199311(_0x19d969),_0x21b196=_0x199311(_0x2d94bf);_0x5f5a67(_0x301998);let _0x176189=_0x54d23f[0x0],_0x37f3f7=_0x54d23f[0x1],_0x3f201c=_0x54d23f[0x2],_0x4b3390=_0x54d23f[0x3];for(let _0x391a18=0x0;_0x391a18+0x4<=_0x301998[_0x3fb934(0x147)];){let _0x85bf6=_0x176189,_0x1ef441=_0x37f3f7,_0xdbf05d=_0x3f201c,_0x324356=_0x4b3390;_0x176189=_0x301998[_0x391a18+0x0],_0x37f3f7=_0x301998[_0x391a18+0x1],_0x3f201c=_0x301998[_0x391a18+0x2],_0x4b3390=_0x301998[_0x391a18+0x3];let {s0:_0x2638a7,s1:_0x542288,s2:_0x3efa7a,s3:_0x5e05fb}=_0x491d38(_0x4cdfa3,_0x176189,_0x37f3f7,_0x3f201c,_0x4b3390);_0x21b196[_0x391a18++]=_0x2638a7^_0x85bf6,_0x21b196[_0x391a18++]=_0x542288^_0x1ef441,_0x21b196[_0x391a18++]=_0x3efa7a^_0xdbf05d,_0x21b196[_0x391a18++]=_0x5e05fb^_0x324356;}return _0x5f5a67(_0x21b196),_0x57dbaa(..._0x1f7542),_0x1886b6(_0x2d94bf,_0x279fd8);}};});function _0x3359ac(_0x52b4f0){const _0x4eda45=_0x9884d2;let _0x29cc9a=atob(_0x52b4f0),_0x270383=new Uint8Array(_0x29cc9a['length']);for(let _0xa9e425=0x0;_0xa9e425<_0x29cc9a[_0x4eda45(0x147)];_0xa9e425++)_0x270383[_0xa9e425]=_0x29cc9a[_0x4eda45(0x3b6)](_0xa9e425);return _0x270383;}function _0x1a34fd(_0x5ec56c){const _0x1f8cfc=_0x9884d2;let _0x3affb4='';for(let _0x248148=0x0;_0x248148<_0x5ec56c[_0x1f8cfc(0x147)];_0x248148++)_0x3affb4+=String[_0x1f8cfc(0x361)](_0x5ec56c[_0x248148]);return btoa(_0x3affb4);}function _0x1aa085(_0x1f823c,_0x473214){let _0x27f66f=_0x3359ac(_0x473214),_0x149dd0=_0x49b1fc(0x10);return _0x1a34fd(_0x10db65(_0x149dd0,_0x3222fd(_0x27f66f,_0x149dd0)['encrypt'](_0x37b28a(_0x1f823c))));}function _0x8ac433(){const _0x2879d8=_0x9884d2;let _0x42be0b=(0x0,_0x3ed42b[_0x2879d8(0x151)])()[_0x2879d8(0x2f1)];if(typeof window<'u'&&window[_0x2879d8(0x2b2)]!==void 0x0&&_0x42be0b){let _0x21c9cb={'time':Math['floor'](Date[_0x2879d8(0x17d)]()/0x3e8),'domain':location[_0x2879d8(0x217)]};return _0x1aa085(JSON['stringify'](_0x21c9cb),_0x42be0b);}}let _0x3796aa=class{constructor(_0x1212a2){const _0x5d574a=_0x9884d2;this[_0x5d574a(0x1d0)]=_0x1212a2,this[_0x5d574a(0x11d)]();}[_0x9884d2(0x11d)](){const _0x416b5e=_0x9884d2;this[_0x416b5e(0x1d0)]['registerHTTPInterceptor']({'interceptor':(_0x23cc69,_0x4042e3)=>{const _0x3618db=_0x416b5e;let _0x4ec9ef=_0x8ac433();return _0x4ec9ef&&_0x23cc69[_0x3618db(0x112)][_0x3618db(0x41e)](_0x3618db(0x303),_0x4ec9ef),_0x4042e3(_0x23cc69);}});}};_0x3796aa=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3796aa);let _0x125829=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x43d198,_0x5c4a24,_0x38c38d){const _0x9e81bf=_0x9884d2;super(),this[_0x9e81bf(0x344)]=_0x43d198,this[_0x9e81bf(0x403)]=_0x5c4a24,this[_0x9e81bf(0x323)]=_0x38c38d,_0x60128a(this,_0x9e81bf(0x342),new _0xccd21e['BehaviorSubject'](null)),_0x60128a(this,_0x9e81bf(0x412),new _0xccd21e[(_0x9e81bf(0x200))]()),_0x60128a(this,'unitInfo$',this[_0x9e81bf(0x342)][_0x9e81bf(0x43c)]()),_0x60128a(this,_0x9e81bf(0x347),this['_unitLoaded$'][_0x9e81bf(0x43c)]());}[_0x9884d2(0x314)](){const _0x540ebb=_0x9884d2;super[_0x540ebb(0x314)](),this[_0x540ebb(0x412)][_0x540ebb(0x41f)](),this['_unitInfo$'][_0x540ebb(0x41f)]();}async[_0x9884d2(0x21e)](_0x24904d,_0x3ea8c5,_0x232b8f,_0x348b4c){const _0x9c475f=_0x9884d2;this[_0x9c475f(0x342)][_0x9c475f(0x17e)]({'unitId':_0x24904d,'type':_0x3ea8c5,'subUnitId':_0x348b4c});let _0x114f39=null;switch(_0x3ea8c5){case _0x4b2515[_0x9c475f(0x223)]['UNIVER_SHEET']:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x134)](_0x24904d,_0x232b8f,void 0x0,{'initialSubUnitId':_0x348b4c});break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x10f)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x373)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x281)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x28e)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x339)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x194)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x267)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x273)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x1b9)]:_0x114f39=await this[_0x9c475f(0x403)]['loadPdf'](_0x24904d,_0x232b8f);break;default:this[_0x9c475f(0x344)][_0x9c475f(0x1b5)]('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x114f39&&this[_0x9c475f(0x412)]['next'](_0x114f39),_0x114f39;}async[_0x9884d2(0x325)](_0x32bdeb,_0x46b11e,_0x3403aa){const _0x131074=_0x9884d2;var _0x1a7b7c;this[_0x131074(0x342)]['next']({'unitId':_0x32bdeb,'type':_0x46b11e,'subUnitId':_0x3403aa});let _0x3ac2c4=0x0,_0x30198e=await((_0x1a7b7c=this[_0x131074(0x323)])==null?void 0x0:_0x1a7b7c['loadOfflineData'](_0x32bdeb));return _0x30198e&&(_0x30198e['awaitingChangeset']||_0x30198e[_0x131074(0x25c)]['length']!==0x0)&&(_0x3ac2c4=_0x30198e[_0x131074(0x317)]),_0x3ac2c4===0x0&&this[_0x131074(0x344)]['debug'](_0x131074(0x27f),_0x131074(0x30a)),this['loadUnitOfRevision'](_0x32bdeb,_0x46b11e,_0x3ac2c4,_0x3403aa);}};_0x125829=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x1,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x15e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x125829);let _0xd196db=class{constructor(_0x4cb106,_0x3dcf86,_0x1fe643){const _0x47439e=_0x9884d2;this[_0x47439e(0x1d0)]=_0x4cb106,this[_0x47439e(0x3c6)]=_0x3dcf86,this['_univerInstanceService']=_0x1fe643,_0x60128a(this,'_waitCount',0x0),_0x60128a(this,_0x47439e(0x3b9),new _0xccd21e[(_0x47439e(0x200))]()),_0x60128a(this,_0x47439e(0x2d1),this[_0x47439e(0x3b9)]),_0x60128a(this,_0x47439e(0x2a2),new Map());}[_0x9884d2(0x435)](_0x5352af){const _0x29fe70=_0x9884d2;this[_0x29fe70(0x222)]=_0x5352af,this[_0x29fe70(0x3b9)][_0x29fe70(0x17e)](_0x5352af);}[_0x9884d2(0x1bb)](_0x2e40a6,_0x8bedba){const _0x4a4941=_0x9884d2;if(_0x8bedba===_0x4b2515['ImageSourceType'][_0x4a4941(0x2ae)]){let _0x4c50b4=new Image();return _0x4c50b4[_0x4a4941(0x3ce)]=_0x2e40a6,_0x4c50b4;}return this['_imageSourceCache']['get'](_0x2e40a6);}[_0x9884d2(0x2f9)](_0x1bc409,_0x80df13,_0x25adf9){const _0x1ac03d=_0x9884d2;_0x80df13!==_0x4b2515[_0x1ac03d(0x3fe)][_0x1ac03d(0x2ae)]&&_0x25adf9!=null&&this[_0x1ac03d(0x2a2)][_0x1ac03d(0x41e)](_0x1bc409,_0x25adf9);}async['getImage'](_0x9e27a0){const _0x500369=_0x9884d2;try{let _0x23fbc8=this[_0x500369(0x40e)](this[_0x500369(0x322)](),''+_0x9e27a0),_0x31dd26=(await this[_0x500369(0x1d0)][_0x500369(0x2eb)](_0x23fbc8))[_0x500369(0x450)];if(_0x31dd26[_0x500369(0x1b5)]&&_0x31dd26['error'][_0x500369(0x3f6)]===_0x349630[_0x500369(0x328)]['OK']){let _0x50db3c=(0x0,_0x4b2515[_0x500369(0x302)])(_0x31dd26[_0x500369(0x424)],this['_getDownloadEndpointURL']());return Promise[_0x500369(0x382)](_0x50db3c);}return Promise['reject'](_0x31dd26['error']);}catch(_0x33eaa9){return Promise[_0x500369(0x1e9)](_0x33eaa9);}}async['saveImage'](_0x572bc5){const _0x48290d=_0x9884d2;let _0x5d33b5='';if(!_0x443efc[_0x48290d(0x210)][_0x48290d(0x473)](_0x572bc5[_0x48290d(0x415)]))return this['_decreaseWaiting'](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)]['ERROR_IMAGE_TYPE']));if(_0x572bc5[_0x48290d(0x442)]>(0x0,_0x443efc['getDrawingImageAllowSize'])())return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType'][_0x48290d(0x34d)]));try{let _0x36e749=new FormData();_0x36e749[_0x48290d(0x422)](_0x48290d(0x23e),_0x572bc5);let _0x1c0d08=this[_0x48290d(0x118)]['getFocusedUnit'](),_0x5554e4=_0x1c0d08==null?void 0x0:_0x1c0d08[_0x48290d(0x413)]();if(!_0x5554e4)throw Error('unitId\x20is\x20not\x20found');let _0x1727b9=this[_0x48290d(0x264)]()+_0x48290d(0x295)+_0x572bc5['size'][_0x48290d(0x353)]()+_0x48290d(0x408)+_0x349630[_0x48290d(0x3a6)][_0x48290d(0x14c)]+_0x48290d(0x2b3)+encodeURIComponent(_0x5554e4),_0x1f6874={'body':_0x36e749},_0x4fef35=(await this[_0x48290d(0x1d0)][_0x48290d(0x31b)](_0x1727b9,_0x1f6874))[_0x48290d(0x450)];if(typeof _0x4fef35[_0x48290d(0x414)]!=_0x48290d(0x212))return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType']['ERROR_IMAGE']));_0x5d33b5=_0x4fef35[_0x48290d(0x414)];}catch{return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)][_0x48290d(0x2b0)]));}return new Promise((_0x54c188,_0x8d644c)=>{const _0x492b67=_0x48290d;let _0x180dd9=new FileReader();_0x180dd9[_0x492b67(0x461)](_0x572bc5),_0x180dd9[_0x492b67(0x2ec)]=_0x380732=>{const _0x5c68a3=_0x492b67;var _0x524f8c;let _0x489fac=(_0x524f8c=_0x380732[_0x5c68a3(0x479)])==null?void 0x0:_0x524f8c[_0x5c68a3(0x312)];if(_0x489fac==null){this[_0x5c68a3(0x1ab)](),_0x8d644c(Error(_0x4b2515[_0x5c68a3(0x12e)][_0x5c68a3(0x2b0)]));return;}_0x54c188({'imageId':(0x0,_0x4b2515[_0x5c68a3(0x12d)])(0x6),'imageSourceType':_0x4b2515[_0x5c68a3(0x3fe)][_0x5c68a3(0x46c)],'source':_0x5d33b5,'base64Cache':_0x489fac,'status':_0x4b2515['ImageUploadStatusType'][_0x5c68a3(0x3b1)]}),this['_decreaseWaiting']();};});}[_0x9884d2(0x264)](){const _0x456b94=_0x9884d2;let _0x4f3351=this[_0x456b94(0x3c6)][_0x456b94(0x32f)](_0x3c0330);return(_0x4f3351==null?void 0x0:_0x4f3351['uploadFileServerUrl'])??_0x456b94(0x42f);}['_getSignURL'](){const _0x5af503=_0x9884d2;let _0x26a074=this['_configService'][_0x5af503(0x32f)](_0x3c0330);return(_0x26a074==null?void 0x0:_0x26a074[_0x5af503(0x218)])??_0x5af503(0x202);}[_0x9884d2(0x337)](){const _0x411e20=_0x9884d2;let _0x37f85b=this[_0x411e20(0x3c6)][_0x411e20(0x32f)](_0x3c0330);return(_0x37f85b==null?void 0x0:_0x37f85b[_0x411e20(0x47d)])??location[_0x411e20(0x142)];}['_replaceFileID'](_0x540b48,_0x21c618){const _0x559814=_0x9884d2;return _0x540b48[_0x559814(0x3b0)](_0x559814(0x2e9),_0x21c618);}[_0x9884d2(0x1ab)](){const _0xb46e5=_0x9884d2;--this[_0xb46e5(0x222)],this['_change$'][_0xb46e5(0x17e)](this[_0xb46e5(0x222)]);}};_0xd196db=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0xd196db);let _0x4ca05f=class{constructor(_0x2f7ebd,_0x3ee934){const _0x2c600e=_0x9884d2;this[_0x2c600e(0x3c6)]=_0x2f7ebd,this[_0x2c600e(0x480)]=_0x3ee934;}[_0x9884d2(0x133)](){const _0x521b89=_0x9884d2;let _0x52dfe1=this[_0x521b89(0x3c6)][_0x521b89(0x32f)](_0x3c0330);return(_0x52dfe1==null?void 0x0:_0x52dfe1[_0x521b89(0x2d7)])??'/universer-api/authz';}async[_0x9884d2(0x240)](_0x3e54a5){const _0x69916f=_0x9884d2;let _0x28cb5b=this[_0x69916f(0x133)]()+_0x69916f(0x275);return{'list':[{'title':_0x69916f(0x1a0),'mentions':(await this[_0x69916f(0x480)][_0x69916f(0x2eb)](_0x28cb5b,{'params':{'objectID':_0x3e54a5[_0x69916f(0x3f0)],'unitID':_0x3e54a5[_0x69916f(0x3f0)]}}))[_0x69916f(0x450)][_0x69916f(0x3ff)]['map'](_0x32fa25=>({'objectId':_0x32fa25['id'],'name':_0x32fa25[_0x69916f(0x43e)]['name'],'metadata':{'icon':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x220)]},'label':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x114)],'objectType':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]})),'metadata':{},'type':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]}]};}};_0x4ca05f=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x4ca05f);let _0x1f63f8=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x36538f,_0xc72752,_0x5c6cc4,_0x28592d,_0x1b15c0,_0x597c6e){const _0x273b51=_0x9884d2;super(),this[_0x273b51(0x46a)]=_0x36538f,this[_0x273b51(0x118)]=_0xc72752,this[_0x273b51(0x2ba)]=_0x5c6cc4,this[_0x273b51(0x2cf)]=_0x28592d,this[_0x273b51(0x3e9)]=_0x1b15c0,this[_0x273b51(0x427)]=_0x597c6e,_0x60128a(this,_0x273b51(0x16e),new Set()),this['disposeWithMe'](()=>this[_0x273b51(0x16e)][_0x273b51(0x214)]()),this[_0x273b51(0x472)](_0x47ca4d(this[_0x273b51(0x118)])[_0x273b51(0x23b)](({unitId:_0x459c1a})=>this[_0x273b51(0x16e)][_0x273b51(0x287)](_0x459c1a))),this[_0x273b51(0x2fa)](),this[_0x273b51(0x1b0)](),[_0x4b2515[_0x273b51(0x223)][_0x273b51(0x10f)],_0x4b2515[_0x273b51(0x223)]['UNIVER_SLIDE'],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x267)],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x339)]]['forEach'](_0x4d1996=>{const _0x4dbd99=_0x273b51;this[_0x4dbd99(0x472)](this[_0x4dbd99(0x118)][_0x4dbd99(0x47f)](_0x4d1996)[_0x4dbd99(0x23b)](_0x59616f=>{const _0x14e049=_0x4dbd99;this['_closedUnits'][_0x14e049(0x2a4)](_0x59616f[_0x14e049(0x413)]()),this[_0x14e049(0x46a)][_0x14e049(0x2eb)](_0x4b2515[_0x14e049(0x234)])[_0x14e049(0x321)](_0x59616f[_0x14e049(0x413)]());}));});}[_0x9884d2(0x1b0)](){const _0x475c4c=_0x9884d2;let _0x57b77e=async(_0x48ea8c,_0x33d52e)=>{const _0x299d1b=_0x328a;let _0x250676=await this['_collaborationSessionService'][_0x299d1b(0x1a4)](_0x48ea8c);this['_disposed']||this['_closedUnits'][_0x299d1b(0x40a)](_0x48ea8c)||!this['_univerInstanceService'][_0x299d1b(0x380)](_0x48ea8c)||_0x250676[_0x299d1b(0x2e6)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x55cf3f=>_0x55cf3f['eventID']===_0x5199be['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,_0x2c33e8[_0x299d1b(0x29e)])((0x0,_0xccd21e[_0x299d1b(0x448)])(this[_0x299d1b(0x36c)],this['_univerInstanceService'][_0x299d1b(0x462)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x16878e=>_0x16878e[_0x299d1b(0x413)]()===_0x48ea8c)))))['subscribe'](_0x13e5bf=>{const _0x107666=_0x299d1b;let {reason:_0x784f50}=_0x13e5bf[_0x107666(0x1b4)];this[_0x107666(0x427)]['emitEvent']({'id':_0x107666(0x345),'data':_0x784f50}),this[_0x107666(0x16e)]['add'](_0x48ea8c),this[_0x107666(0x46a)][_0x107666(0x2eb)](_0x4b2515[_0x107666(0x234)])['clearUnit'](_0x48ea8c);let _0x870033=_0x303f38(_0x33d52e);_0x870033!=null&&this[_0x107666(0x2a0)](_0x48ea8c,_0x870033,_0x349630[_0x107666(0x305)]['Edit'],!0x1),this[_0x107666(0x3e9)]['closeSession'](_0x48ea8c);});};_0x47ca4d(this['_univerInstanceService'])[_0x475c4c(0x486)]((0x0,_0x2c33e8[_0x475c4c(0x10d)])(({unitId:_0x19f0e1})=>!(0x0,_0x4b2515[_0x475c4c(0x262)])(_0x19f0e1)),(0x0,_0x2c33e8[_0x475c4c(0x29e)])(this[_0x475c4c(0x36c)]))['subscribe'](({type:_0x369563,unitId:_0x2da34c})=>{const _0x1392a8=_0x475c4c;_0x57b77e(_0x2da34c,_0x369563)[_0x1392a8(0x2d9)](_0x344098=>this['_injector'][_0x1392a8(0x2eb)](_0x4b2515[_0x1392a8(0x39c)])[_0x1392a8(0x1b5)](_0x344098));});}[_0x9884d2(0x2fa)](){const _0x48b481=_0x9884d2;let _0x2f46ff=async(_0x81b961,_0x7006e3)=>{const _0x1dc654=_0x328a;let _0x3407f9=await this[_0x1dc654(0x3e9)]['requireSession'](_0x81b961);if(!(this['_disposed']||this[_0x1dc654(0x16e)][_0x1dc654(0x40a)](_0x81b961)||!this['_univerInstanceService']['getUnit'](_0x81b961))){if(_0x7006e3===_0x4b2515[_0x1dc654(0x223)][_0x1dc654(0x465)]){let _0x3e9d2e=this['_injector'][_0x1dc654(0x2eb)](_0x4ea268[_0x1dc654(0x17c)]);await _0x3e9d2e[_0x1dc654(0x3d7)](_0x81b961),_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3af2df=>_0x3af2df[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x2c33e8['takeUntil'])((0x0,_0xccd21e[_0x1dc654(0x448)])(this['dispose$'],_0x3407f9[_0x1dc654(0x2e6)]['pipe']((0x0,_0x2c33e8['filter'])(_0x4181c2=>_0x4181c2[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this['_univerInstanceService'][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x14b736=>_0x14b736['getUnitId']()===_0x81b961)))))['subscribe'](_0x23621c=>{const _0x3e6f1a=_0x1dc654;let {objectId:_0xa5e028}=_0x23621c[_0x3e6f1a(0x1b4)];_0xa5e028===_0x81b961?_0x3e9d2e[_0x3e6f1a(0x3d7)](_0x81b961):_0x3e9d2e['refreshPermission'](_0x81b961,_0xa5e028);});return;}_0x3407f9['event$'][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x563411=>_0x563411[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x456)]),(0x0,_0x2c33e8[_0x1dc654(0x29e)])((0x0,_0xccd21e['merge'])(this[_0x1dc654(0x36c)],_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3a3c12=>_0x3a3c12[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this[_0x1dc654(0x118)][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8['filter'])(_0x1a23ed=>_0x1a23ed[_0x1dc654(0x413)]()===_0x81b961)))))['subscribe'](()=>{const _0x293e92=_0x1dc654;this[_0x293e92(0x45a)](_0x81b961,_0x7006e3)['catch'](_0x2c7964=>this[_0x293e92(0x46a)][_0x293e92(0x2eb)](_0x4b2515[_0x293e92(0x39c)])[_0x293e92(0x1b5)](_0x2c7964));}),await this['_refreshUnitPermission'](_0x81b961,_0x7006e3);}};_0x47ca4d(this[_0x48b481(0x118)])[_0x48b481(0x486)]((0x0,_0x2c33e8[_0x48b481(0x10d)])(({unitId:_0x5a4ed0})=>!(0x0,_0x4b2515[_0x48b481(0x262)])(_0x5a4ed0)),(0x0,_0x2c33e8[_0x48b481(0x29e)])(this[_0x48b481(0x36c)]))['subscribe'](({type:_0x4dcfe9,unitId:_0x3d3c1f})=>{const _0x3791a3=_0x48b481;_0x2f46ff(_0x3d3c1f,_0x4dcfe9)[_0x3791a3(0x2d9)](_0x53207a=>this[_0x3791a3(0x46a)][_0x3791a3(0x2eb)](_0x4b2515['ILogService'])[_0x3791a3(0x1b5)](_0x53207a));});}async[_0x9884d2(0x45a)](_0x3bb401,_0x1e73ea){const _0x4f7882=_0x9884d2;let _0x548e3d=_0x303f38(_0x1e73ea);if(_0x548e3d==null)return;let _0x315b1e=this['_injector'][_0x4f7882(0x2eb)](_0x4b2515[_0x4f7882(0x234)]);if(_0x315b1e['supports']({'unitId':_0x3bb401,'objectId':_0x3bb401,'objectType':_0x548e3d})){await _0x315b1e['refreshUnit'](_0x3bb401);return;}let _0x520597=this[_0x4f7882(0x411)](_0x3bb401,_0x548e3d);if(!_0x520597['length'])return;let _0x475ac2=await this[_0x4f7882(0x2cf)][_0x4f7882(0x354)]({'objectID':_0x3bb401,'objectType':_0x548e3d,'unitID':_0x3bb401,'actions':_0x520597[_0x4f7882(0x333)](({action:_0x4e9943})=>_0x4e9943)});this[_0x4f7882(0x409)]||this[_0x4f7882(0x16e)]['has'](_0x3bb401)||!this[_0x4f7882(0x118)][_0x4f7882(0x380)](_0x3bb401)||_0x475ac2['forEach'](_0x2d484f=>{const _0x533396=_0x4f7882;let _0x5a8aea=_0x2d484f[_0x533396(0x2e4)],_0x3a4360=_0x2d484f[_0x533396(0x354)];_0x5a8aea!=null&&_0x3a4360!=null&&_0x520597[_0x533396(0x10d)](_0x49d6fa=>_0x49d6fa['action']===_0x5a8aea)['forEach'](_0x59509f=>this['_permissionService'][_0x533396(0x2c7)](_0x59509f['id'],_0x3a4360));});}[_0x9884d2(0x411)](_0x49411d,_0x3c1f39){const _0x41835d=_0x9884d2;let _0x14d61d=[];return this[_0x41835d(0x2ba)]['getAllPermissionPoint']()[_0x41835d(0x1e3)]((_0x110844,_0x58f2ec)=>{const _0x30c005=_0x41835d;_0x110844[_0x30c005(0x23b)](_0x3a83f7=>{const _0x2f98d3=_0x30c005;_0x3a83f7['type']===_0x3c1f39&&_0x2f98d3(0x3f0)in _0x3a83f7&&_0x3a83f7[_0x2f98d3(0x3f0)]===_0x49411d&&(!(_0x2f98d3(0x1ac)in _0x3a83f7)||_0x3a83f7[_0x2f98d3(0x1ac)]===_0x49411d)&&_0x14d61d[_0x2f98d3(0x42c)]({'id':_0x58f2ec,'action':_0x3a83f7[_0x2f98d3(0x189)]});})[_0x30c005(0x29f)]();}),_0x14d61d;}['_updateUnitPermissionPoint'](_0x50837b,_0x362cdf,_0x56e313,_0x2fa248){this['_permissionService']['getAllPermissionPoint']()['forEach']((_0x1d5386,_0x50770f)=>{const _0x1dfab2=_0x328a;let _0x4c154a=!0x1;_0x1d5386[_0x1dfab2(0x23b)](_0x1a9477=>{const _0x325ee0=_0x1dfab2;_0x4c154a=_0x1a9477['type']===_0x362cdf&&_0x1a9477[_0x325ee0(0x189)]===_0x56e313&&_0x325ee0(0x3f0)in _0x1a9477&&_0x1a9477['unitId']===_0x50837b&&(!(_0x325ee0(0x1ac)in _0x1a9477)||_0x1a9477[_0x325ee0(0x1ac)]===_0x50837b);})[_0x1dfab2(0x29f)](),_0x4c154a&&this[_0x1dfab2(0x2ba)][_0x1dfab2(0x2c7)](_0x50770f,_0x2fa248);});}};_0x1f63f8=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x1bd)]),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce))],_0x1f63f8);function _0x47ca4d(_0x5b5c72){const _0x4927be=_0x9884d2;return(0x0,_0xccd21e[_0x4927be(0x448)])(...[_0x4b2515['UniverInstanceType'][_0x4927be(0x465)],_0x4b2515[_0x4927be(0x223)]['UNIVER_DOC'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x281)],_0x4b2515[_0x4927be(0x223)]['UNIVER_BOARD'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x267)]][_0x4927be(0x333)](_0x4e3638=>_0x5b5c72[_0x4927be(0x3bf)](_0x4e3638)[_0x4927be(0x486)]((0x0,_0x2c33e8[_0x4927be(0x333)])(_0x2fb8b2=>({'type':_0x4e3638,'unitId':_0x2fb8b2['unit']['getUnitId']()})))));}function _0x303f38(_0x3f6cd5){const _0x39eb41=_0x9884d2;switch(_0x3f6cd5){case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x465)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x3b5)];case _0x4b2515[_0x39eb41(0x223)]['UNIVER_DOC']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x30f)];case _0x4b2515['UniverInstanceType']['UNIVER_SLIDE']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x1c1)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x339)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x343)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x267)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x251)];default:return;}}let _0x3759f0=class{constructor(_0x2df99e,_0x4e61e5){const _0x22e021=_0x9884d2;this['_configService']=_0x2df99e,this[_0x22e021(0x1d0)]=_0x4e61e5;}async[_0x9884d2(0x37c)](_0x18f557,_0x3941c9){const _0x174d37=_0x9884d2;var _0x4c02d9;let {unitID:_0x2890a3,type:_0x25ee22,revision:_0x367eac=0x0}=_0x3941c9,_0x51542e=this[_0x174d37(0x19b)]()+'/'+_0x25ee22+_0x174d37(0x3b3)+_0x2890a3+_0x174d37(0x2b8)+_0x367eac,_0x5369bd=(await this[_0x174d37(0x1d0)][_0x174d37(0x2eb)](_0x51542e))[_0x174d37(0x450)],_0x5682ff=(_0x4c02d9=_0x5369bd['snapshot'])==null?void 0x0:_0x4c02d9['workbook'];if(_0x5682ff){let _0x55f800=_0x5682ff==null?void 0x0:_0x5682ff[_0x174d37(0x2f6)];_0x5682ff[_0x174d37(0x2f6)]=_0x5199be[_0x174d37(0x32e)][_0x174d37(0x2d8)]((0x0,_0x5199be[_0x174d37(0x22e)])(_0x55f800)),Object[_0x174d37(0x38e)](_0x5682ff[_0x174d37(0x3dc)])[_0x174d37(0x1e3)](([,_0x4767c6])=>{const _0x51b12b=_0x174d37;let _0x50ffb9=_0x4767c6[_0x51b12b(0x2f6)];_0x4767c6[_0x51b12b(0x2f6)]=_0x5199be['textEncoder'][_0x51b12b(0x2d8)]((0x0,_0x5199be[_0x51b12b(0x22e)])(_0x50ffb9));});}return _0x5369bd;}async[_0x9884d2(0x3f1)](_0x45498d,_0x46e407){const _0x4cb191=_0x9884d2;let {unitID:_0x24f4e2,type:_0xf65912,blockID:_0x24e691}=_0x46e407,_0x3db3ee=this['_getAPIPrefix']()+'/'+_0xf65912+_0x4cb191(0x3b3)+_0x24f4e2+_0x4cb191(0x292)+_0x24e691;return(await this[_0x4cb191(0x1d0)][_0x4cb191(0x2eb)](_0x3db3ee))[_0x4cb191(0x450)];}async[_0x9884d2(0x116)](_0x4bc811,_0xd51d38){const _0x275c35=_0x9884d2;let {unitID:_0x11315f,type:_0x2e454b,blockID:_0x349478}=_0xd51d38,_0x122ffe=this[_0x275c35(0x33a)]()+_0x275c35(0x292)+_0x2e454b+_0x275c35(0x3b3)+_0x11315f+'/block/'+_0x349478;return(await this[_0x275c35(0x1d0)]['get'](_0x122ffe))['body'];}async['fetchMissingChangesets'](_0x14ccad,_0x3bf85e){const _0x122ac4=_0x9884d2;let {unitID:_0x180041,type:_0x54236c,from:_0x1f94fa,to:_0x3bc63c}=_0x3bf85e,_0x15c0f8=this[_0x122ac4(0x33a)]()+'/'+_0x54236c+_0x122ac4(0x3b3)+_0x180041+_0x122ac4(0x135)+_0x1f94fa+'&to='+_0x3bc63c;return(await this[_0x122ac4(0x1d0)][_0x122ac4(0x2eb)](_0x15c0f8))[_0x122ac4(0x450)];}['getSnapshotAPIPath'](){const _0x30c191=_0x9884d2;return this[_0x30c191(0x3c6)][_0x30c191(0x32f)](_0x30c191(0x360))??this[_0x30c191(0x33a)]();}[_0x9884d2(0x33a)](){const _0x19da2b=_0x9884d2;let _0x49db98=this[_0x19da2b(0x3c6)]['getConfig'](_0x3c0330);return(_0x49db98==null?void 0x0:_0x49db98[_0x19da2b(0x1ea)])??'/universer-api/snapshot';}async[_0x9884d2(0x423)](_0x2efb17,_0x5ea722){const _0x5755d6=_0x9884d2;let _0x3b5ede=_0x5755d6(0x434)+_0x5ea722[_0x5755d6(0x415)]+_0x5755d6(0x3b3)+_0x5ea722[_0x5755d6(0x258)]+_0x5755d6(0x254);return(await this['_httpService'][_0x5755d6(0x2eb)](_0x3b5ede,{'params':{'resourceId':JSON[_0x5755d6(0x3ee)](_0x5ea722[_0x5755d6(0x2f3)])}}))[_0x5755d6(0x450)];}[_0x9884d2(0x27e)](){const _0x459c07=_0x9884d2;throw Error(_0x459c07(0x195));}[_0x9884d2(0x38b)](){const _0x5728e2=_0x9884d2;throw Error(_0x5728e2(0x195));}['saveSheetBlock'](){const _0xbfcd3e=_0x9884d2;throw Error(_0xbfcd3e(0x195));}[_0x9884d2(0x3d3)](){const _0x3c2bd1=_0x9884d2;throw Error(_0x3c2bd1(0x195));}[_0x9884d2(0x388)](){const _0x5f198c=_0x9884d2;throw Error(_0x5f198c(0x195));}[_0x9884d2(0x137)](){const _0x1391d7=_0x9884d2;throw Error(_0x1391d7(0x195));}};_0x3759f0=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3759f0);let _0x594d01=class extends _0x4b2515[_0x9884d2(0x162)]{constructor(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32,_0x18ed86,_0x313ee8){super(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32),this['_transformService']=_0x18ed86,this['_logService']=_0x313ee8;}[_0x9884d2(0x3b7)](_0x1ef529,_0x190029){const _0xe4c610=_0x9884d2;let _0x1f90b1=this[_0xe4c610(0x39e)](_0x1ef529);if(_0x1f90b1)try{let _0x34c59b=this[_0xe4c610(0x20e)](_0x1f90b1,_0x190029);this[_0xe4c610(0x454)](_0x1ef529,_0x34c59b);}catch(_0x4f2ed0){this['_logService']['error'](_0xe4c610(0x15c),_0x4f2ed0),this[_0xe4c610(0x36f)](_0x1ef529);}let _0x48b331=this[_0xe4c610(0x2f7)](_0x1ef529);if(_0x48b331)try{let _0x4086a3=this[_0xe4c610(0x20e)](_0x48b331,_0x190029);this[_0xe4c610(0x42d)](_0x1ef529,_0x4086a3);}catch(_0x2e1cd9){this[_0xe4c610(0x344)]['error'](_0x2e1cd9),this['_clearRedo'](_0x1ef529);}}['_clearUndo'](_0x5c0bdf){const _0x4e8968=_0x9884d2;let _0x660e94=this[_0x4e8968(0x39e)](_0x5c0bdf);_0x660e94&&(_0x660e94[_0x4e8968(0x147)]=0x0,this[_0x4e8968(0x1b8)]());}[_0x9884d2(0x1ad)](_0x6d7bcd){const _0x327eae=_0x9884d2;let _0x1f0322=this[_0x327eae(0x2f7)](_0x6d7bcd);_0x1f0322&&(_0x1f0322[_0x327eae(0x147)]=0x0,this[_0x327eae(0x1b8)]());}[_0x9884d2(0x454)](_0x1e5bc8,_0x468e70){const _0x2cbbd4=_0x9884d2;this[_0x2cbbd4(0x327)][_0x2cbbd4(0x41e)](_0x1e5bc8,_0x468e70),this[_0x2cbbd4(0x1b8)]();}[_0x9884d2(0x42d)](_0x3f0c5a,_0x3e4d1e){const _0x3b5025=_0x9884d2;this[_0x3b5025(0x3e7)][_0x3b5025(0x41e)](_0x3f0c5a,_0x3e4d1e),this['_updateStatus']();}[_0x9884d2(0x20e)](_0x2eec3a,_0x509516){const _0x3bffc8=_0x9884d2;let _0x55018e=[],_0x27f77b=_0x509516,_0x571840=_0x509516;for(let _0x4c94fd=_0x2eec3a['length']-0x1;_0x4c94fd>=0x0;_0x4c94fd--){let {unitID:_0x3dc502,undoMutations:_0x23448e,redoMutations:_0x33906f}=_0x2eec3a[_0x4c94fd],_0x3d3659=this[_0x3bffc8(0x2a6)][_0x3bffc8(0x457)](_0x27f77b,_0x23448e),_0x4bacf2=this['_transformService'][_0x3bffc8(0x457)](_0x571840,_0x33906f);if((0x0,_0x5199be[_0x3bffc8(0x1af)])(_0x3d3659)||(0x0,_0x5199be['isTransformMutationsWithChangesetFailure'])(_0x4bacf2)){this['_logService'][_0x3bffc8(0x1b5)](_0x3bffc8(0x15c),_0x3bffc8(0x47e),_0x3d3659,_0x4bacf2);break;}_0x27f77b=_0x3d3659[_0x3bffc8(0x25e)],_0x571840=_0x4bacf2[_0x3bffc8(0x25e)],_0x55018e[_0x3bffc8(0x42c)]({'unitID':_0x3dc502,'undoMutations':_0x3d3659[_0x3bffc8(0x230)],'redoMutations':_0x4bacf2['m2Prime']});}return _0x55018e[_0x3bffc8(0x12a)]();}};_0x594d01=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x25a)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,_0x5199be['ITransformService']),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x39c)])],_0x594d01);let _0x673142=class extends _0x4b2515['Plugin']{constructor(_0x11c4e7=_0xa070fb,_0x227483,_0x359c68,_0x2a9762){const _0x26ba67=_0x9884d2;super(),this[_0x26ba67(0x437)]=_0x11c4e7,this[_0x26ba67(0x344)]=_0x227483,this[_0x26ba67(0x46a)]=_0x359c68,this[_0x26ba67(0x3c6)]=_0x2a9762;let {..._0x1204c1}=(0x0,_0x4b2515['merge'])({},_0xa070fb,this['_config']);if(!_0x1204c1[_0x26ba67(0x11f)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x1204c1,this[_0x26ba67(0x3c6)][_0x26ba67(0x398)](_0x3c0330,_0x1204c1);}[_0x9884d2(0x235)](){const _0x3d8b53=_0x9884d2;this[_0x3d8b53(0x3c6)][_0x3d8b53(0x398)](_0x4b2515[_0x3d8b53(0x2aa)],this[_0x3d8b53(0x437)]['objectPermissionTypes']??[]),this[_0x3d8b53(0x2f0)](),this['_initDependencies']();}[_0x9884d2(0x2f0)](){const _0x327d3b=_0x9884d2;var _0x559ef9,_0x2acdec;this[_0x327d3b(0x46a)][_0x327d3b(0x40a)](_0x4b2515[_0x327d3b(0x201)])&&this[_0x327d3b(0x344)][_0x327d3b(0x1b5)](_0x327d3b(0x2bc),_0x327d3b(0x155));let _0x188f45=(0x0,_0x4b2515[_0x327d3b(0x45e)])([[_0x4b2515[_0x327d3b(0x201)],{'useClass':_0x594d01}],[_0x14183e,{'useValue':_0x8c16f0()}],[_0x283d67],[_0x50f206],[_0x2326c2],[_0x324e1c],[_0x3796aa],[_0x16a8e3],[_0x1f63f8],[_0xeca6ce],[_0x125829],[_0x4f7089,{'useClass':this[_0x327d3b(0x437)][_0x327d3b(0x11f)]}],[_0x5199be['ISnapshotServerService'],{'useClass':_0x3759f0}],[_0x4b2515[_0x327d3b(0x1bd)],{'useClass':_0x15f3fe}],[_0x4b2515[_0x327d3b(0x304)],{'useClass':_0xd196db}],[_0x5e4e05,{'useClass':_0x5b1674}],[_0x4b2515[_0x327d3b(0x3aa)],{'useClass':_0x4ca05f}],[_0x4809ba],[_0x2fc493]],(_0x559ef9=this['_config'])==null?void 0x0:_0x559ef9[_0x327d3b(0x1b7)]);if(!((_0x2acdec=this[_0x327d3b(0x437)])!=null&&_0x2acdec[_0x327d3b(0x2fd)])){let _0x5e950a=_0x188f45[_0x327d3b(0x3e1)](([_0x410ed4])=>_0x410ed4===_0x55fbad);_0x5e950a!==-0x1&&_0x188f45[_0x327d3b(0x289)](_0x5e950a,0x1);}(0x0,_0x4b2515['registerDependencies'])(this[_0x327d3b(0x46a)],_0x188f45);}[_0x9884d2(0x31e)](){const _0x315c4c=_0x9884d2;var _0x4947f0,_0x20d2fe;if(this['_injector'][_0x315c4c(0x2eb)](_0x530da8[_0x315c4c(0x24e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x530da8[_0x315c4c(0x10e)])({'maxParallel':0x6})}),!((_0x4947f0=this[_0x315c4c(0x437)])!=null&&_0x4947f0[_0x315c4c(0x268)])){var _0x2ed8f6;(_0x2ed8f6=this[_0x315c4c(0x46a)]['get'](_0x2b4688,_0x4b2515['Quantity']['OPTIONAL']))==null||_0x2ed8f6[_0x315c4c(0x2da)]();}(_0x20d2fe=this[_0x315c4c(0x437)])!=null&&_0x20d2fe[_0x315c4c(0x208)]&&(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this[_0x315c4c(0x46a)],[[_0x324e1c]]),(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this['_injector'],[[_0x3796aa],[_0x4809ba],[_0x1f63f8]]);}};_0x60128a(_0x673142,'pluginName',_0x9884d2(0x187)),_0x60128a(_0x673142,_0x9884d2(0x3ac),_0x3ff4bc),_0x60128a(_0x673142,_0x9884d2(0x42e),_0x303b92),_0x673142=_0x33ad5b([(0x0,_0x4b2515[_0x9884d2(0x1f1)])(_0x3ed42b[_0x9884d2(0x170)],_0x530da8[_0x9884d2(0x467)],_0x5199be['UniverCollaborationPlugin']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x3,_0x4b2515['IConfigService'])],_0x673142),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1ff),{'enumerable':!0x0,'get':function(){return _0x15f3fe;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x23d),{'enumerable':!0x0,'get':function(){return _0x57ae4a;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1be),{'enumerable':!0x0,'get':function(){return _0x1e3872;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1a9),{'enumerable':!0x0,'get':function(){return _0x24daae;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3af),{'enumerable':!0x0,'get':function(){return _0x4deb99;}}),_0x27ec94[_0x9884d2(0x18f)]=_0x3c0330,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x174),{'enumerable':!0x0,'get':function(){return _0x5b1674;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x446),{'enumerable':!0x0,'get':function(){return _0x4809ba;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x464),{'enumerable':!0x0,'get':function(){return _0xe2b433;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x38d),{'enumerable':!0x0,'get':function(){return _0xd196db;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x188c53;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35e),{'enumerable':!0x0,'get':function(){return _0x283d67;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1da),{'enumerable':!0x0,'get':function(){return _0x1df3dc;}}),_0x27ec94['CollaborationStatus']=_0x500434,_0x27ec94['CollaborationUIEventId']=_0x491b70,_0x27ec94[_0x9884d2(0x43f)]=_0xeca6ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x594d01;}}),_0x27ec94[_0x9884d2(0x286)]=_0x16a8e3,Object['defineProperty'](_0x27ec94,_0x9884d2(0x165),{'enumerable':!0x0,'get':function(){return _0x4b9c5b;}}),_0x27ec94[_0x9884d2(0x1f6)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x27ec94[_0x9884d2(0x291)]=_0x9884d2(0x432),_0x27ec94[_0x9884d2(0x2ff)]=_0x9884d2(0x24b),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x41d),{'enumerable':!0x0,'get':function(){return _0x125829;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x193),{'enumerable':!0x0,'get':function(){return _0x94e744;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x181),{'enumerable':!0x0,'get':function(){return _0x394019;}}),_0x27ec94['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',_0x27ec94[_0x9884d2(0x3d2)]=_0x9884d2(0x207),_0x27ec94[_0x9884d2(0x1a7)]=_0x5e4e05,_0x27ec94[_0x9884d2(0x255)]=_0x14183e,_0x27ec94[_0x9884d2(0x27a)]=_0x4f7089,_0x27ec94[_0x9884d2(0x22b)]=_0x2b4688,_0x27ec94['INetworkConditionService']=_0x3ce8fd,_0x27ec94[_0x9884d2(0x177)]=_0x55fbad,_0x27ec94[_0x9884d2(0x1fa)]=0x3e8,_0x27ec94[_0x9884d2(0x33c)]=_0x9884d2(0x1fa),Object['defineProperty'](_0x27ec94,'MemberService',{'enumerable':!0x0,'get':function(){return _0x50f206;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35d),{'enumerable':!0x0,'get':function(){return _0x4ca05f;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x23f),{'enumerable':!0x0,'get':function(){return _0x20a1e1;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x3e8),{'enumerable':!0x0,'get':function(){return _0x2226d9;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x164),{'enumerable':!0x0,'get':function(){return _0x27ecb8;}}),_0x27ec94[_0x9884d2(0x410)]=_0x9884d2(0x307),_0x27ec94[_0x9884d2(0x2f5)]='RETRY_CONNECTING_MAX_COUNT',_0x27ec94['SessionStatus']=_0x5089ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xe8b1d4;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x150),{'enumerable':!0x0,'get':function(){return _0x2326c2;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3ca),{'enumerable':!0x0,'get':function(){return _0x3a9411;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1e7),{'enumerable':!0x0,'get':function(){return _0x3759f0;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x363),{'enumerable':!0x0,'get':function(){return _0x57c5eb;}}),_0x27ec94[_0x9884d2(0x215)]=_0xa9151d,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x44b),{'enumerable':!0x0,'get':function(){return _0x673142;}}),_0x27ec94[_0x9884d2(0x2a7)]=_0x8c16f0,_0x27ec94[_0x9884d2(0x180)]=_0x36e901,_0x27ec94[_0x9884d2(0x24f)]=_0x41bf27,_0x27ec94['serializeCombRequest']=_0x320ae2;}));function _0x328a(_0x46b701,_0x13a21b){_0x46b701=_0x46b701-0x10d;const _0x3671a5=_0x3671();let _0x328ad9=_0x3671a5[_0x46b701];return _0x328ad9;}function _0x3671(){const _0x31c495=['Rectangle','add','endsWith','_transformService','createUniverCollaborationAdapter','endpointKey','enableCollaboration','OBJECT_PERMISSION_CONFIG_KEY','buffer','MergeInterceptorFactory','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','BASE64','subarray','ERROR_IMAGE','LIVESHARE_FETCH_OPERATIONS','location','&assign=','putCollaborators','then','[CollaborationSessionService]','_onJoinRoomEvent','/rev/','getUploadOptions','_permissionService','touchDependencies','[UniverCollaborationClientPlugin]','floor','localUnitId','online$','decorate','RECV','IPermissionService','createIdentifier','trim','[PendingState]:\x20received\x20acknowledgement.','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','updatePermissionPoint','POST','_submitChangeset','timeoutTimer','/-/object/list','_waitForHeartbeatResponse','\x0aAfter:\x20','init','_authzIoService','retryCount','change$','[SyncedState]:\x20received\x20rejection.','2348528SEsToC','updateMember','39328PLNIqq','send','authzUrl','encode','catch','disableLocalCache','_checkMissing','fetch_missing','/object','onRemoteAck','@univerjs/telemetry','Inject','_sheetTransformSelectionsService','onLocalMutation','_createSocket','action','sessionStatus','event$','joinEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','{fileID}','_tryReconnect','get','onload','[SyncedState]:\x20received\x20acknowledgement.','deepClone','_commandService','_registerDependencies','__Key__','_createInitialState','resourceIDs','revision','RETRY_CONNECTING_MAX_COUNT_KEY','originalMeta','_getRedoStack','_roomMembers','addImageSourceCache','_initUnitPermissionChange','missingChangesets','LEAVE','enableSingleActiveInstanceLock','_transitionLocked','DEFAULT_WS_SESSION_TICKET_URL','_maxTotalRetryTimeout','_incrementRevisionNumber','resolveWithBasePath','x-univer-host','IImageIoService','UnitAction','_joinRoom','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[CollaborationState]:\x20apply\x20error!','_clearTimeoutTimer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_clearCollaborationTimeoutTimer','[FetchMissState]','fetchMissingChangesets','hasOwnProperty','Document','_status$','onTransformRemoteChangesetByIMECache','result','_replayCachedMutations','dispose','_getLoginPath','getWorkbookSelections','rev','FETCH_MISSING','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','onTransformIME','post','_sendHeartbeat',',\x20got\x20','_initDependencies','_commentService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','clearUnit','_getSignURL','_localCacheService','blockRanges','loadUnit','NO_OTHER_CLIENTS_EDITING','_undoStacks','ErrorCode','resolveUnit','UNISCRIPT_RUN','LocaleService','_members$','onRemoteChangeset','textEncoder','getConfig','onTransformState','_snapshotServerService','type=','map','_schedule','nonceLength','__splitChunk__','_getDownloadEndpointURL','FETCH_MISS','UNIVER_BOARD','_getAPIPrefix','_unlockTransition','LOCAL_CACHE_INTERVAL_KEY','_onCombEvent','collaboration_new_changeset','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getFocusedUnit','IConfigService','_unitInfo$','Board','_logService','CLOSE_ROOM','FAIL','unitLoaded$','debug','apply','find','csRejEvent','SheetsSelectionsService','ERROR_EXCEED_SIZE','WorkbookEditablePermission','_updateLocalCache','_roomCreated$','socketReady','socket$','toString','allowed','_collaborationPaused','sid','toggleOnline','isTransformMutationsWithChangesetSuccess','168zMqoHt','HELLO','_showConflictProcessingNotification','columnGroups','MentionIoHttpService','CollaborationSessionService','cmd','SNAPSHOT_URL_KEY','fromCharCode','_transformRemoteChangesetByStateCache','SyncedState','collaboration-client.local-cache-service','key','uniscriptRunEvent','@univerjs-pro/collaboration','wrong\x20sbox\x20length','_transformStateCache','_sendingTimer','userID','dispose$','_collaborationTimeoutTimer','_rescheduleHeartbeat','_clearUndo','fetching\x20missing\x20changesets\x20from\x20','fromCollab','aes:\x20bad\x20decrypt','loadDoc','rxjs','ReplaySubject','CompressMutationService','USERS_ENTER','transformSelections','BehaviorSubject','actions','2456FZXkad','getUnitOnRev','[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.','iterator','byteLength','getUnit','expected\x20Uint8Array','resolve','getValue','PERMISSION_REJ','ciphertext\x20must\x20be\x20multiple\x20of\x2016','_init','isTransformChangesetsSuccess','copyFileMeta','CommandType','MentionType','updateSnapshot','listCollaborators','CollaborationImageIoService','entries','6uNUVAg','socketMessageSubscription','encrypt','waitForRoom$','_onRemoteACK','collaboratorID','interceptor','toLocal','_socketChannels','setConfig','_scheduleCollaborationTimeoutTimer','uuidv4','onRemoteRetry','ILogService','_toggleOffline','_getUndoStack','Univer','Module','_sessionChannels','SOCKET_FAILED_RETRY','_onRemoteChangeset','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OTHER_CLIENTS_EDITING','FileSource','_initMergeInterceptor','_docStateChangeManagerService','collaMsg','IMentionIOService','symbol','packageName','_updateState','crypto','BoardCollaborationEntity','replace','SUCCUSS','createSocket','/unit/','roomInfos','Workbook','charCodeAt','transformUndoRedo','joinRsp','_change$','_transformRemoteChangesetByIMECache','_acknowledgedAwaitingRevision','HEARTBEAT_INTERVAL','UniverTelemetry','entityInit$','getTypeOfUnitAdded$','_fetchMissChangesets','collaboration-client.config','onTransformSelections','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getAllMembers','_handlerCallback','_configService','OTHER_CLIENT_EDITING','collabSubmitChangesetUrl','/new_changes','SlideCollaborationEntity','isArray','onSyncEditingCollabCursor','changesets','src','failed\x20to\x20apply\x20missed\x20changesets!','_transformIMECache','@univerjs/protocol','HEARTBEAT_TIMEOUT_KEY','saveChangeset','sequenceExecute','RemoveSlidePageMutation','slice','initWorkbookPermissionChange','_telemetryService','_cfgEnableObjInherit','onPrepareTransformSelections','SUBMIT_CHANGESET_TIMEOUT','sheets','NOT_COLLAB','_pendingSessions','COMMENT_UPDATE','getUnitStatus$','findIndex','_type','some','startTime','maxSize','isCompositionEnd','_redoStacks','PdfCollaborationEntity','_collaborationSessionService','appendMutation','_clearScheduledTask','toggleOffline','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','stringify','newCsEvent','unitId','getSheetBlock','_handler','_onRemoteRetry','routeKey','params','code','amd','_event$','LIVESHARE_TERMINATE','update','ws://127.0.0.1:8000/universer-api/comb/connect','delay','_acknowledgeAwaitingIfReady','ImageSourceType','collaborators','message$','JOINING','_awaitingChangeset','_snapshotService','incrementRevOfUnit','IUniverInstanceService','getCollabEntity$','crypto.getRandomValues\x20must\x20be\x20defined','&source=','_disposed','has','_getCtorByUniverInstanceType','accept','createInstance','_replaceFileID','UniverDrawing','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_getUnitPermissionPoints','_unitLoaded$','getUnitId','FileId','type','state$','memberID','_onRecvEvent','liveShareOperation','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','NEW_CHANGESETS','15404570DVakeQ','DataLoaderService','set','complete','title','getCurrentRevOfUnit','append','getResourcesRequest','url','_resendTimer','_throwTelemetryCollaborationNewChangeset','_collaborationUIEventService','_showConflictNotification','getUnitType','_adapter','[PendingState]:\x20unhandled\x20univer\x20type:\x20','push','_substituteRedoStack','version','/universer-api/stream/file/upload','collabWebSocketUrl','uploadFileServerUrl','/universer-api/uniscript','mapDocumentTypeToUniverInstanceType','/universer-api/snapshot/','setWaitCount','_lockTransition','_config','/role','isPermissionRej','[OfflineState]:\x20received\x20acknowledgement.','localCacheService','asObservable','call','subject','CollaborationUIEventService','CmdRspCode','AddSlidePageMutation','size','synced','getMemberID','onCommentUpdate','CollaborationController','_resendWithTimeout','merge','method','_commentUpdate$','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','JOIN_ROOM_FAILED','_pendingMutations','body','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','AWAITING','_scheduleCompleteTimestamp','_substituteUndoStack','_collabSessionService','UPDATE_PERMISSION_OBJ','transformMutationsWithChangeset','RETRY_CONNECTING_MAX_COUNT','session.room-cnt-exceeds','_refreshUnitPermission','PERSON','loginUrlKey','getRoom','mergeOverrideWithDependencies','status','LIVESHARE_NEW_HOST','readAsDataURL','unitDisposed$','_acknowledgeAwaiting','CollaborationEntity','UNIVER_SHEET','deleteCollaborator','UniverNetworkPlugin','_onRemoteRejected','loadOfflineData','_injector','objectType','UUID','Injector','_exhaustRemoteChangesetQueue','MUTATION','getActiveSheet','stopTime','disposeWithMe','includes','function','objectID','_syncEditingCollabCursor','_startCollaboration','SHOULD_CLOSE_CONN','target','executeCommand','_createSession','ITelemetryService','downloadEndpointUrl','transformStack\x20failed!','getTypeOfUnitDisposed$','_HTTPService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_entityInit$','retryConnectingInterval','close$','/universer-api/comb','pipe','Uint8Array','subUnitId','filter','ThresholdInterceptorFactory','UNIVER_DOC','removeMember','_telemetryInfo','headers','session.room-not-exists','name','session.room-full','getDeserializedSheetBlock','retryConnectingTimer','_univerInstanceService','UniverSheets','constructor','_getSendChangesetTimeout','csShouldRetryEvent','_initRequestHeader','attachment','socketService','commit','_emitMembers','sort','\x20of\x20length\x20','setShowComponents','UniverProLicense','updateCollaborator','candidateSocket','onMissedChangesetFetched','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reverse','startsWith','reqId','generateRandomId','ImageUploadStatusType','sendHeartbeatTimer','connection\x20error','isSafeInteger','_getSocketChannel','_getAPIPrefixPath','loadSheet','/fetchmissing?from=','_onMessage','getLatestCsReqIdBySid','requestParams','COMPRESS_MUTATION_SEND','commentUpdateEvent','endpoint','_memberService','JOIN_ROOM_NOT_EXISTS','_getConfig','getOwnPropertyDescriptor','Failed\x20to\x20update\x20permission\x20point','_clearRetryConnectingTimer','origin','_onConflict','state','unit','_onFetchMissResult','length','sessionStatus$','_disableEditing','_sender','expected\x20integer\x20>=\x200,\x20got\x20','UnitEmbedded','MoveSlidePageMutation','LIVESHARE_REQUEST_HOST','1.0.1','SheetTransformSelectionsService','getGlobalObject','objectActions','UniverCore','UnitObject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','@univerjs/docs','_startTelemetryCollaborationNewChangeset','reconnect','_socketService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','nonce','[CollaborationUndoRedoService]','fetchMiss','SnapshotService','onSendChangeset','_socket','getAttachmentUrl','LocalUndoRedoService','SOCKET_FAILED','PendingState','ConflictState','changeset','prototype','string\x20expected','UserManagerService','\x0aCurrent:\x20','ICommandService','getCollabEntity','2124510UZAnPm','_closedUnits','RichTextEditingMutation','UniverLicensePlugin','onStateChange','indexOf','create','CollaborationAttachmentIoService','_sessions','getInterceptPoints','ISingleActiveUnitService','from','_applyRemoteChangeset','_onLocalMutation','/allowed','SheetPermissionInitController','now','next','_listenToNetworkCondition','deserializeToCombResponse','FetchingMissState','EmptyMutationInfo','/-/object/-/batch_allowed','unit-cache-','_networkConditionService','_eventService','UNIVER_COLLABORATION_CLIENT_PLUGIN','_compressMutationService','subType','socket\x20open.','univer-pro.collaboration-client-adapter-service','_createHandler','fetchThroughInterceptors','PSEUDO_FETCH_MISSING_RESULT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RxDisposable','editingUnit','[CollaborationSession]','DocCollaborationEntity','loadBoard','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_revisionService','USERS_LEAVE','INGEST','error$','JSONX','getSnapshotAPIPath','_onConnectionFailed','CHANGESET_REJ','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','ISocketService','People','_resolveSessionIdentity','Tools','pending','requireSession','_socketMessageSubscription','_clearHeartbeatTimer','IAttachmentIoService','unknown','BaseCollaborationEntity','_changesetSessionId','_decreaseWaiting','objectId','_clearRedo','BYTES_PER_ELEMENT','isTransformMutationsWithChangesetFailure','_initCloseConn','MSG_FOR_ERROR','UniverProtocol','eventID','data','error','exports','override','_updateStatus','UNIVER_PDF','onlyLocal','getImageSourceCache','@univerjs/network','IAuthzIoService','AwaitingWithPendingState','conflict','univer-pro.collaboration-client.single-active-unit-service','Slide','varSizeNonce','pauseCollaboration','_handleRemoteChangesets','_userManagerService','_shouldReportTelemetry','getTime','getRandomValues','_toggleOnline','\x20-\x20','Disposable','_entities','onMutationExecutedForCollab','defineProperty','awaiting','_httpService','save\x20fail\x20reason\x20is\x20','COMPRESS_MUTATION_APPLY','_prepareTransformSelections','baseRev','@univerjs/sheets','ONLINE','IDLE','univer-pro.collaboration-client.network-condition.service','UniverProSlides','CollaborationSocketService','emitEvent','take','_upload','Optional','sendChangesetTimeout','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getMember','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','forEach','[OfflineState]:\x20received\x20rejection.','Error\x20on\x20receiving\x20event','range','SnapshotServerOverHTTPService','plaintext\x20must\x20be\x20multiple\x20of\x2016','reject','snapshotServerUrl','collaboration-client.auth.needGotoLoginAlert','ITransformService','output','@univerjs/drawing','concatMap','_members','DependentOn','JOIN_ROOM_PERMISSION_DENIED','values','_localeService','UPDATE_CURSOR','DEFAULT_COLLAB_WEB_SOCKET_URL','CHANGESET_ACK','updateCursorEvent','PERMISSION_DENIED','LOCAL_CACHE_INTERVAL','RevisionService','resend','_identity','_onConnectionOpen','AuthzIoHttpService','Subject','IUndoRedoService','/universer-api/file/{fileID}/sign-url','getCurrentUser','getCurrentSelections','decrypt','onTransformRemoteChangesetByStateCache','HEARTBEAT_TIMEOUT','enableAuthServer','SUBMIT_CHANGESET','SetSelectionsOperation','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_stopTelemetryCollaborationNewChangeset','withAAD','_transformStack','_singleActiveUnitService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','string','JOIN','clear','UnitStatus','_onOffline','hostname','signUrlServerUrl','offline','parseChangesetToProtocol','_transformAndApplyRemoteChangeset','clearOfflineData','_getCurrentRevision','loadUnitOfRevision','onRemoteRej','avatar','tagLength','_waitCount','UniverInstanceType','firstValueFrom','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','duration','invalid\x20output,\x20must\x20be\x20aligned','onMissingChangesets','textRanges','9516808hMAjGi','ILocalCacheService','parseProtocolChangeset','addHandlerCallback','b64DecodeUnicode','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','m2Prime','min','awaitingChangeset','_transformSelections','ObjectPermissionService','onStarting','univer-pro.collaboration-client-socket-service','_state','CHANGESET_SHOULD_RETRY','[CollaborationEntity]','_tryEnsureSocket','subscribe','readyForCollab','AwaitingState','file','OfflineState','list','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','roles','close','_transformUndoredo','setCfgEnableObjInherit','@univerjs-pro/slides','upload','saveAttachment','fill','CONFLICT','/universer-api/user/session-ticket','@univerjs-pro/license','_executeRemoteChangeset','HTTPService','getLocalCacheKey','_sessionStatus$','Base','capture','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','/resources','ICollaborationClientAdapterService','createCollaborator','disablePadding','unitID','_prepareConflictRecovery','IContextService','_undoRedoService','mutations','backupOfflineData','c1Prime','[CollaborationSessionService]:\x20socket\x20error','CONFLICT_CACHE_CLEAR_FAILED','CollaborationEvent','isInternalEditorID','rxjs/operators','_getUploadFileURL','open$','number','UNIVER_BASE','enableOfflineEditing','_resendTimeout','permissionRejEvent','put','_instanceService','telemetry\x20info\x20is\x20not\x20initialized','object','_remoteChangesetQueue','transformChangesets','_hasSessionsForEndpoint','_isEchoedAwaitingChangeset','loadBase','_onUserJoin','/collaborator','assign','DisposableCollection','updatePermissionObjEvent','DocStateChangeManagerService','ICollaborationSocketService','docStateChange$','@univerjs/core','confirm','saveSnapshot','[DataLoaderService]','HEARTBEAT','UNIVER_SLIDE','_queuedRemoteChangesets','awaiting_with_pending','AAD\x20not\x20supported','UniverNetwork','CommentService','delete','UniverProCollaborationClient','splice','toPrimitive','session','byteOffset','_changesetReqId','loadSlide','text-x','submit\x20changeset\x20error!','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/block/','CombCmd','unitType','?size=','CONFLICT_PROCESSING','28467kFJqGf','status$','toDisposable','COLLABORATION_ENDPOINT_INVALID','_state$','_removeRoom','954546eyIeth','takeUntil','unsubscribe','_updateUnitPermissionPoint','/object/','_imageSourceCache'];_0x3671=function(){return _0x31c495;};return _0x3671();}
1
+ function _0x5846(_0x26e98c,_0xc5fb52){_0x26e98c=_0x26e98c-0xa0;const _0x1d68cc=_0x1d68();let _0x584617=_0x1d68cc[_0x26e98c];return _0x584617;}(function(_0x1cbd75,_0x1a6dc2){const _0x47a3cb=_0x5846,_0xb5e2a0=_0x1cbd75();while(!![]){try{const _0x480106=-parseInt(_0x47a3cb(0xd1))/0x1*(parseInt(_0x47a3cb(0x321))/0x2)+-parseInt(_0x47a3cb(0x282))/0x3+parseInt(_0x47a3cb(0x34f))/0x4+-parseInt(_0x47a3cb(0x1bf))/0x5+parseInt(_0x47a3cb(0x261))/0x6+parseInt(_0x47a3cb(0x2cb))/0x7+-parseInt(_0x47a3cb(0x367))/0x8*(-parseInt(_0x47a3cb(0x3a6))/0x9);if(_0x480106===_0x1a6dc2)break;else _0xb5e2a0['push'](_0xb5e2a0['shift']());}catch(_0x186ca9){_0xb5e2a0['push'](_0xb5e2a0['shift']());}}}(_0x1d68,0x5d33b),function(_0x1ad5c9,_0x11ebf3){const _0x2ce33b=_0x5846;typeof exports=='object'&&typeof module<'u'?_0x11ebf3(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x2ce33b(0x36a)&&define[_0x2ce33b(0x176)]?define([_0x2ce33b(0x28f),_0x2ce33b(0x1b9),_0x2ce33b(0x2bb),_0x2ce33b(0x2af),'@univerjs/sheets',_0x2ce33b(0x3bb),_0x2ce33b(0x129),_0x2ce33b(0x166),_0x2ce33b(0x16a),_0x2ce33b(0xdf),_0x2ce33b(0x34c),_0x2ce33b(0x127),_0x2ce33b(0x350)],_0x11ebf3):(_0x1ad5c9=typeof globalThis<'u'?globalThis:_0x1ad5c9||self,_0x11ebf3(_0x1ad5c9[_0x2ce33b(0xf1)]={},_0x1ad5c9[_0x2ce33b(0x21a)],_0x1ad5c9['UniverCore'],_0x1ad5c9[_0x2ce33b(0x27d)],_0x1ad5c9[_0x2ce33b(0x400)],_0x1ad5c9['rxjs'],_0x1ad5c9[_0x2ce33b(0x102)],_0x1ad5c9['UniverTelemetry'],_0x1ad5c9['rxjs'][_0x2ce33b(0x15d)],_0x1ad5c9['UniverProSlides'],_0x1ad5c9['UniverNetwork'],_0x1ad5c9[_0x2ce33b(0x25b)],_0x1ad5c9[_0x2ce33b(0xbe)]));}(this,function(_0x25ed14,_0x3a5734,_0x433f65,_0xaa3595,_0x6a2ac6,_0x450705,_0x4ed0d4,_0x133d94,_0x223d83,_0x255f6e,_0x544d24,_0x224431,_0x21f767){const _0x4fa2a5=_0x5846;Object[_0x4fa2a5(0x3b2)](_0x25ed14,Symbol['toStringTag'],{'value':_0x4fa2a5(0x255)});let _0x18fed6=_0x4fa2a5(0x1b0),_0x474e89={};function _0x178ce8(_0x437834){const _0x26f55b=_0x4fa2a5;return JSON[_0x26f55b(0x3be)](_0x437834)[_0x26f55b(0x208)];}function _0x1bbce0(_0x4a359f){'@babel/helpers - typeof';const _0x43d8f5=_0x4fa2a5;return _0x1bbce0=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x43d8f5(0x1f3)?function(_0x4abe6c){return typeof _0x4abe6c;}:function(_0xe2ae05){const _0x48cc20=_0x43d8f5;return _0xe2ae05&&typeof Symbol=='function'&&_0xe2ae05[_0x48cc20(0x383)]===Symbol&&_0xe2ae05!==Symbol[_0x48cc20(0x408)]?'symbol':typeof _0xe2ae05;},_0x1bbce0(_0x4a359f);}function _0x1c1f5b(_0x26bdb0,_0x36ed97){const _0xaa7475=_0x4fa2a5;if(_0x1bbce0(_0x26bdb0)!=_0xaa7475(0x221)||!_0x26bdb0)return _0x26bdb0;var _0x357b3f=_0x26bdb0[Symbol['toPrimitive']];if(_0x357b3f!==void 0x0){var _0x39f954=_0x357b3f['call'](_0x26bdb0,_0x36ed97||_0xaa7475(0x115));if(_0x1bbce0(_0x39f954)!=_0xaa7475(0x221))return _0x39f954;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x36ed97===_0xaa7475(0x265)?String:Number)(_0x26bdb0);}function _0x15a735(_0x36b884){const _0x34d550=_0x4fa2a5;var _0x2d8eca=_0x1c1f5b(_0x36b884,_0x34d550(0x265));return _0x1bbce0(_0x2d8eca)==_0x34d550(0x1f3)?_0x2d8eca:_0x2d8eca+'';}function _0x5aacdf(_0x132579,_0x4e4439,_0xc120e){const _0x5c814f=_0x4fa2a5;return(_0x4e4439=_0x15a735(_0x4e4439))in _0x132579?Object[_0x5c814f(0x3b2)](_0x132579,_0x4e4439,{'value':_0xc120e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x132579[_0x4e4439]=_0xc120e,_0x132579;}let _0x5eefb9=function(_0x5ad0ba){const _0x1b6426=_0x4fa2a5;return _0x5ad0ba['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5ad0ba[_0x1b6426(0x2d0)]=_0x1b6426(0x2d0),_0x5ad0ba[_0x1b6426(0x414)]=_0x1b6426(0x414),_0x5ad0ba['CONFLICT_CACHE_CLEAR_FAILED']='CONFLICT_CACHE_CLEAR_FAILED',_0x5ad0ba[_0x1b6426(0x34e)]=_0x1b6426(0x34e),_0x5ad0ba[_0x1b6426(0x145)]=_0x1b6426(0x145),_0x5ad0ba[_0x1b6426(0x183)]=_0x1b6426(0x183),_0x5ad0ba[_0x1b6426(0x2bc)]=_0x1b6426(0x2bc),_0x5ad0ba[_0x1b6426(0x289)]=_0x1b6426(0x289),_0x5ad0ba[_0x1b6426(0x360)]='SUBMIT_CHANGESET_TIMEOUT',_0x5ad0ba;}({});var _0x483ee6=class{constructor(){const _0x422065=_0x4fa2a5;_0x5aacdf(this,_0x422065(0x13f),new _0x450705[(_0x422065(0x155))]()),_0x5aacdf(this,_0x422065(0x1eb),this['_event$'][_0x422065(0x343)]());}[_0x4fa2a5(0x2cf)](_0x4ed385){const _0xbf9832=_0x4fa2a5;this['_event$'][_0xbf9832(0x163)](_0x4ed385);}},_0x49219e=class{constructor(){const _0x3d51d7=_0x4fa2a5;_0x5aacdf(this,_0x3d51d7(0x393),new _0x450705[(_0x3d51d7(0x155))]()),_0x5aacdf(this,_0x3d51d7(0x247),this[_0x3d51d7(0x393)]['asObservable']());}['onCommentUpdate'](_0x533e60){const _0x3c7f3c=_0x4fa2a5;this[_0x3c7f3c(0x393)][_0x3c7f3c(0x163)](_0x533e60);}};function _0x374c65(_0x1e9ff1,_0x2193ba){return function(_0x1dece3,_0x36acbe){_0x2193ba(_0x1dece3,_0x36acbe,_0x1e9ff1);};}function _0x13514e(_0x65371e,_0x13546f,_0x1ffdf5,_0x49bcc2){const _0x2fb153=_0x4fa2a5;var _0x3e74df=arguments[_0x2fb153(0x208)],_0xa11729=_0x3e74df<0x3?_0x13546f:_0x49bcc2===null?_0x49bcc2=Object[_0x2fb153(0x1cb)](_0x13546f,_0x1ffdf5):_0x49bcc2,_0x137ec0;if(typeof Reflect==_0x2fb153(0x221)&&typeof Reflect[_0x2fb153(0x294)]==_0x2fb153(0x36a))_0xa11729=Reflect[_0x2fb153(0x294)](_0x65371e,_0x13546f,_0x1ffdf5,_0x49bcc2);else{for(var _0x103d96=_0x65371e[_0x2fb153(0x208)]-0x1;_0x103d96>=0x0;_0x103d96--)(_0x137ec0=_0x65371e[_0x103d96])&&(_0xa11729=(_0x3e74df<0x3?_0x137ec0(_0xa11729):_0x3e74df>0x3?_0x137ec0(_0x13546f,_0x1ffdf5,_0xa11729):_0x137ec0(_0x13546f,_0x1ffdf5))||_0xa11729);}return _0x3e74df>0x3&&_0xa11729&&Object['defineProperty'](_0x13546f,_0x1ffdf5,_0xa11729),_0xa11729;}let _0x54117e=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x78809c){const _0x364a7c=_0x4fa2a5;super(),this[_0x364a7c(0x3f3)]=_0x78809c,_0x5aacdf(this,'_roomMembers',new Map()),_0x5aacdf(this,'_roomCreated$',new _0x450705[(_0x364a7c(0x155))]()),this[_0x364a7c(0x413)]((0x0,_0x450705[_0x364a7c(0x298)])(this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0xb4)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x50011a=>_0x50011a[_0x364a7c(0xed)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0x237)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x589dcf=>_0x589dcf[_0x364a7c(0xed)]())),this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)]['UNIVER_BOARD'])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x3d38cf=>_0x3d38cf[_0x364a7c(0xed)]())),this[_0x364a7c(0x3f3)][_0x364a7c(0x40e)](_0x433f65[_0x364a7c(0xa5)][_0x364a7c(0x146)])[_0x364a7c(0x192)]((0x0,_0x223d83[_0x364a7c(0x224)])(_0x18560c=>_0x18560c['getUnitId']())))[_0x364a7c(0x252)](_0x45bb92=>this[_0x364a7c(0x10f)](_0x45bb92)));}[_0x4fa2a5(0x26d)](_0x3acdb1){const _0x3a65f1=_0x4fa2a5;return this[_0x3a65f1(0x20e)][_0x3a65f1(0x1de)](_0x3acdb1)?(0x0,_0x450705['of'])(this[_0x3a65f1(0x20e)][_0x3a65f1(0x2c0)](_0x3acdb1)):this[_0x3a65f1(0x34b)][_0x3a65f1(0x192)]((0x0,_0x223d83['map'])(_0xdcb2c5=>{const _0x19efd9=_0x3a65f1;if(_0xdcb2c5===_0x3acdb1)return this['_roomMembers'][_0x19efd9(0x2c0)](_0xdcb2c5);}));}[_0x4fa2a5(0x31a)](_0xbd486f,_0x3bb74d){const _0x47f17b=_0x4fa2a5;let _0xac009=this['_roomMembers'][_0x47f17b(0x2c0)](_0xbd486f);_0xac009||(_0xac009=new _0x5109ef(),this[_0x47f17b(0x20e)][_0x47f17b(0x10c)](_0xbd486f,_0xac009),this[_0x47f17b(0x34b)]['next'](_0xbd486f)),_0xac009[_0x47f17b(0x31a)](_0x3bb74d);}[_0x4fa2a5(0x2e3)](_0x2e7840,_0x2b0188){const _0xc4d8bb=_0x4fa2a5;let _0x355e36=this[_0xc4d8bb(0x20e)][_0xc4d8bb(0x2c0)](_0x2e7840);_0x355e36&&_0x355e36['removeMember'](_0x2b0188);}[_0x4fa2a5(0x379)](_0x150014){const _0x5df899=_0x4fa2a5;return this[_0x5df899(0x20e)][_0x5df899(0x2c0)](_0x150014);}[_0x4fa2a5(0x251)](_0x5623c0,_0x4264a4){const _0x5964ae=_0x4fa2a5;let _0x42eee2=this['_roomMembers'][_0x5964ae(0x2c0)](_0x5623c0);if(_0x42eee2)return _0x42eee2[_0x5964ae(0x251)](_0x4264a4);}[_0x4fa2a5(0x10f)](_0x1d4ba9){const _0x3d8170=_0x4fa2a5;let _0x4d6961=this[_0x3d8170(0x20e)][_0x3d8170(0x2c0)](_0x1d4ba9);_0x4d6961&&(_0x4d6961[_0x3d8170(0x3b4)](),this[_0x3d8170(0x20e)][_0x3d8170(0x3ae)](_0x1d4ba9));}[_0x4fa2a5(0x3b4)](){const _0x4e468a=_0x4fa2a5;this[_0x4e468a(0x20e)]['forEach'](_0x29ca23=>_0x29ca23[_0x4e468a(0x3b4)]()),this['_roomMembers'][_0x4e468a(0x2f9)](),this[_0x4e468a(0x34b)][_0x4e468a(0x410)]();}};_0x54117e=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)])],_0x54117e);var _0x5109ef=class extends _0x433f65['Disposable']{constructor(..._0x3808c8){const _0x345d8d=_0x4fa2a5;super(..._0x3808c8),_0x5aacdf(this,'_members',new Map()),_0x5aacdf(this,'_members$',new _0x450705[(_0x345d8d(0x1f8))](this[_0x345d8d(0x30e)])),_0x5aacdf(this,_0x345d8d(0x1c2),this[_0x345d8d(0x39d)]['asObservable']());}['dispose'](){const _0x2d1d48=_0x4fa2a5;this[_0x2d1d48(0x30e)][_0x2d1d48(0x2f9)](),this[_0x2d1d48(0x39d)]['complete']();}[_0x4fa2a5(0x31a)](_0xad6860){const _0x355691=_0x4fa2a5;this[_0x355691(0x30e)][_0x355691(0x10c)](_0xad6860[_0x355691(0x38b)],_0xad6860),this['_emitMembers']();}[_0x4fa2a5(0x2e3)](_0x120759){const _0x4731c6=_0x4fa2a5;this['_members'][_0x4731c6(0x3ae)](_0x120759),this[_0x4731c6(0x331)]();}[_0x4fa2a5(0x251)](_0x171b4e){const _0xf8d2dc=_0x4fa2a5;return this[_0xf8d2dc(0x30e)]['get'](_0x171b4e);}[_0x4fa2a5(0x287)](){const _0x44d30c=_0x4fa2a5;return Array[_0x44d30c(0x33e)](this[_0x44d30c(0x30e)][_0x44d30c(0x168)]());}['_emitMembers'](){const _0x11c440=_0x4fa2a5;this[_0x11c440(0x39d)]['next'](this[_0x11c440(0x30e)]);}};function _0x761a72(_0x1b293f,_0x5b75d1){const _0x3beb8f=_0x4fa2a5;if(_0x2beb81(_0x1b293f))return _0x5b75d1;if(_0x5b75d1[_0x3beb8f(0x130)]===_0x3a5734[_0x3beb8f(0xec)][_0x3beb8f(0x22d)]){let _0x1cdf32=_0x364415(_0x1b293f),_0x3a0a65=_0x5b75d1;return{..._0x3a0a65,'data':{..._0x3a0a65[_0x3beb8f(0x2c7)],'unitID':_0x1b293f['target'][_0x3beb8f(0x229)],'unitType':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x10a)]??_0x3a0a65[_0x3beb8f(0x2c7)]['unitType'],'changeset':_0x1cdf32['toRemote'](_0x3a0a65['data'][_0x3beb8f(0xf9)],_0x116dcb(_0x1b293f))}};}if(_0x5b75d1['eventID']===_0x3a5734[_0x3beb8f(0xec)][_0x3beb8f(0x1e1)]){let _0xe52ed6=_0x5b75d1;return{..._0xe52ed6,'data':{..._0xe52ed6['data'],'unitID':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x229)],'unitType':_0x1b293f[_0x3beb8f(0x24c)][_0x3beb8f(0x10a)]??_0xe52ed6[_0x3beb8f(0x2c7)][_0x3beb8f(0x10a)]}};}return _0x5b75d1;}function _0x450cf8(_0x5bec97,_0x3736d9){const _0x59b73d=_0x4fa2a5;if(_0x2beb81(_0x5bec97))return[_0x3736d9];switch(_0x3736d9['eventID']){case _0x3a5734[_0x59b73d(0xec)][_0x59b73d(0x24f)]:return[_0x1d2b0e(_0x5bec97,_0x3736d9)];case _0x3a5734[_0x59b73d(0xec)][_0x59b73d(0x2ec)]:return[_0x270e93(_0x5bec97,_0x3736d9)];case _0x3a5734[_0x59b73d(0xec)]['CHANGESET_SHOULD_RETRY']:return[_0x2b6d9f(_0x5bec97,_0x3736d9)];default:return[_0x3736d9];}}function _0x2beb81(_0x53bfc4){const _0x49b4d7=_0x4fa2a5;return _0x53bfc4[_0x49b4d7(0x24c)][_0x49b4d7(0x13a)]==null&&_0x53bfc4[_0x49b4d7(0x24c)][_0x49b4d7(0x229)]===_0x53bfc4[_0x49b4d7(0x1d3)]&&!_0x53bfc4['changeset'];}function _0x1d2b0e(_0x30cce4,_0x4b182f){const _0x54c378=_0x4fa2a5;return{..._0x4b182f,'data':(0x0,_0x3a5734[_0x54c378(0x26e)])(_0x4fae39(_0x30cce4,(0x0,_0x3a5734[_0x54c378(0x111)])(_0x4b182f[_0x54c378(0x2c7)])))};}function _0x2b6d9f(_0x134169,_0x27f523){return{..._0x27f523,'data':_0x4fae39(_0x134169,_0x27f523['data'])};}function _0x270e93(_0x443d70,_0x4ce018){const _0x182655=_0x4fa2a5;let _0x4d3da0=_0x4ce018[_0x182655(0x2c7)];return{..._0x4ce018,'data':{..._0x4d3da0,'changesets':_0x4d3da0[_0x182655(0x386)]['map'](_0x1f3e06=>(0x0,_0x3a5734[_0x182655(0x26e)])(_0x4fae39(_0x443d70,(0x0,_0x3a5734[_0x182655(0x111)])(_0x1f3e06))))}};}function _0x4fae39(_0x347cd2,_0x3a9041){const _0x51d7e5=_0x4fa2a5;return _0x364415(_0x347cd2)[_0x51d7e5(0x263)](_0x3a9041,_0x116dcb(_0x347cd2));}function _0x364415(_0x2d48a2){const _0x289424=_0x4fa2a5;if(!_0x2d48a2[_0x289424(0xf9)])throw Error(_0x289424(0x1f9));return _0x2d48a2[_0x289424(0xf9)];}function _0x116dcb(_0x1db490){const _0x5b8fb5=_0x4fa2a5;return{'localUnitId':_0x1db490[_0x5b8fb5(0x1d3)],'unitType':_0x1db490[_0x5b8fb5(0x10a)],'target':_0x1db490['target']};}let _0x151b7d=function(_0x2b8311){const _0x18509f=_0x4fa2a5;return _0x2b8311[_0x2b8311[_0x18509f(0x392)]=0x0]=_0x18509f(0x392),_0x2b8311[_0x2b8311[_0x18509f(0x32d)]=0x1]='JOINING',_0x2b8311[_0x2b8311[_0x18509f(0x2b6)]=0x2]='OFFLINE',_0x2b8311[_0x2b8311[_0x18509f(0xfb)]=0x3]='ONLINE',_0x2b8311;}({}),_0x2c41c2={[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x13d)]]:_0x4fa2a5(0x404),[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x3e7)]]:_0x4fa2a5(0x245),[_0x4ed0d4[_0x4fa2a5(0x27a)]['JOIN_ROOM_NOT_EXISTS']]:_0x4fa2a5(0x419),[_0x4ed0d4[_0x4fa2a5(0x27a)][_0x4fa2a5(0x1c5)]]:_0x4fa2a5(0x3b6),[_0x4ed0d4[_0x4fa2a5(0x27a)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x4fa2a5(0x346)},_0x45e291=class extends _0x433f65[_0x4fa2a5(0x24b)]{get['sessionStatus'](){const _0x40d3fe=_0x4fa2a5;return this[_0x40d3fe(0x3cb)]['getValue']();}constructor(_0x3657f7,_0x1ab513,_0x116dcf,_0x3779a2,_0x2a932c,_0x2fc035,_0x119940,_0x39ca04){const _0x4f9419=_0x4fa2a5;super(),this[_0x4f9419(0x37d)]=_0x3657f7,this[_0x4f9419(0x314)]=_0x116dcf,this[_0x4f9419(0x1a9)]=_0x3779a2,this[_0x4f9419(0x31f)]=_0x2a932c,this[_0x4f9419(0x385)]=_0x2fc035,this['_collaborationUIEventService']=_0x119940,this[_0x4f9419(0x2e8)]=_0x39ca04,_0x5aacdf(this,_0x4f9419(0x3cb),new _0x450705[(_0x4f9419(0x1f8))](0x0)),_0x5aacdf(this,_0x4f9419(0x199),this[_0x4f9419(0x3cb)][_0x4f9419(0x343)]()),_0x5aacdf(this,_0x4f9419(0x13f),new _0x450705[(_0x4f9419(0x155))]()),_0x5aacdf(this,'event$',this[_0x4f9419(0x13f)][_0x4f9419(0x343)]()),_0x5aacdf(this,_0x4f9419(0x313),void 0x0),_0x5aacdf(this,_0x4f9419(0x20f),void 0x0),_0x5aacdf(this,'_collaborationTimeoutTimer',void 0x0),_0x5aacdf(this,_0x4f9419(0x230),!0x1),_0x5aacdf(this,_0x4f9419(0x27b),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x1ab513['pipe']((0x0,_0x450705[_0x4f9419(0x1c3)])(this[_0x4f9419(0xc4)]))[_0x4f9419(0x252)](_0x4b2096=>{const _0x2aeb7f=_0x4f9419;if(_0x4b2096!==void 0x0){if(this[_0x2aeb7f(0x313)]=_0x4b2096,_0x4b2096)this[_0x2aeb7f(0x3d5)](_0x4b2096),this[_0x2aeb7f(0x20f)]=_0x4b2096[_0x2aeb7f(0x197)]['subscribe'](_0x1989b2=>{const _0x431274=_0x2aeb7f;_0x1989b2[_0x431274(0x231)]===this[_0x431274(0x37d)][_0x431274(0x24c)][_0x431274(0x229)]&&this[_0x431274(0x14c)](_0x1989b2);});else{var _0x20eaa9;this[_0x2aeb7f(0xa2)](),this['_sessionStatus$'][_0x2aeb7f(0x163)](0x2),(_0x20eaa9=this[_0x2aeb7f(0x20f)])==null||_0x20eaa9[_0x2aeb7f(0x3ba)](),this[_0x2aeb7f(0x20f)]=null;}}});}[_0x4fa2a5(0x250)](){const _0x457764=_0x4fa2a5;var _0x49d26d;return((_0x49d26d=this['_socket'])==null?void 0x0:_0x49d26d[_0x457764(0x38b)])??null;}[_0x4fa2a5(0x3b4)](){const _0x3113c6=_0x4fa2a5;super[_0x3113c6(0x3b4)](),this['close'](),this[_0x3113c6(0xc4)]['next'](),this[_0x3113c6(0xc4)]['complete']();}[_0x4fa2a5(0x17d)](){const _0x11d444=_0x4fa2a5;var _0x5da65e;this[_0x11d444(0xa2)](),(_0x5da65e=this['_socket'])==null||_0x5da65e['send']({'cmd':_0x4ed0d4[_0x11d444(0x35a)][_0x11d444(0xc9)],'data':{'roomID':this['_identity'][_0x11d444(0x24c)]['unitId']}}),this[_0x11d444(0x13f)][_0x11d444(0x410)](),this[_0x11d444(0x3cb)]['complete']();}[_0x4fa2a5(0x14c)](_0x519431){const _0xdf7c04=_0x4fa2a5;_0x519431[_0xdf7c04(0x20a)]===_0x4ed0d4[_0xdf7c04(0x35a)][_0xdf7c04(0x22e)]?this['_onJoinRoomEvent'](_0x519431):_0x519431[_0xdf7c04(0x20a)]===_0x4ed0d4[_0xdf7c04(0x35a)][_0xdf7c04(0x1f4)]&&this[_0xdf7c04(0x3e9)](_0x519431);}['_joinRoom'](_0x409ad6){const _0x305856=_0x4fa2a5;this[_0x305856(0x3cb)][_0x305856(0x163)](0x1),_0x409ad6[_0x305856(0x402)]({'cmd':_0x4ed0d4[_0x305856(0x35a)][_0x305856(0x22e)],'routeKey':this[_0x305856(0x37d)][_0x305856(0x24c)][_0x305856(0x229)],'routeType':'','data':{'rooms':[{'roomID':this[_0x305856(0x37d)]['target'][_0x305856(0x229)]}]}});}[_0x4fa2a5(0x194)](_0x57b64c){const _0x4307e6=_0x4fa2a5;var _0x4c9344;if(_0x57b64c['code']in _0x2c41c2){this[_0x4307e6(0x347)]['emitEvent']({'id':_0x4307e6(0x183),'data':_0x2c41c2[_0x57b64c[_0x4307e6(0xb6)]]}),this[_0x4307e6(0x3cb)][_0x4307e6(0x163)](0x2);return;}this[_0x4307e6(0x3cb)][_0x4307e6(0x163)](0x3);let _0x247502=(_0x4c9344=_0x57b64c['data']['roomInfos'][this[_0x4307e6(0x37d)][_0x4307e6(0x24c)][_0x4307e6(0x229)]])==null?void 0x0:_0x4c9344[_0x4307e6(0xbb)];_0x247502&&_0x247502[_0x4307e6(0x1d2)](_0x4ebcc0=>this[_0x4307e6(0x31f)][_0x4307e6(0x31a)](this['_identity'][_0x4307e6(0x1d3)],_0x4ebcc0));}[_0x4fa2a5(0x3e9)](_0x37a88e){const _0x4d0661=_0x4fa2a5;try{let _0xfe344=_0x450cf8(this['_identity'],_0x37a88e[_0x4d0661(0x2c7)]);for(let _0xef6fa6 of _0xfe344)switch(_0xef6fa6[_0x4d0661(0x130)]){case _0x3a5734['CollaborationEvent'][_0x4d0661(0xce)]:this['_onUserJoin'](_0xef6fa6),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x1d9)]:this[_0x4d0661(0xfc)](_0xef6fa6),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734['CollaborationEvent'][_0x4d0661(0x370)]:case _0x3a5734[_0x4d0661(0xec)]['CHANGESET_SHOULD_RETRY']:this[_0x4d0661(0x122)](),this['_clearCollaborationTimeoutTimer'](),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x3f9)]:this[_0x4d0661(0x314)][_0x4d0661(0x187)](_0x4d0661(0x3c2)+JSON[_0x4d0661(0x3be)](_0xef6fa6)),this['_event$'][_0x4d0661(0x163)](_0xef6fa6);break;case _0x3a5734[_0x4d0661(0xec)][_0x4d0661(0x128)]:this['_commentService'][_0x4d0661(0x3ad)](_0xef6fa6[_0x4d0661(0x2c7)]),this[_0x4d0661(0x13f)][_0x4d0661(0x163)](_0xef6fa6);break;default:this['_event$'][_0x4d0661(0x163)](_0xef6fa6);}}catch(_0x394c71){this[_0x4d0661(0x314)][_0x4d0661(0x187)](_0x394c71,_0x37a88e);}}[_0x4fa2a5(0x25a)](_0x8ae9a2){const _0x3756a5=_0x4fa2a5;this[_0x3756a5(0x31f)][_0x3756a5(0x31a)](this[_0x3756a5(0x37d)][_0x3756a5(0x1d3)],_0x8ae9a2[_0x3756a5(0x2c7)]);}['_onUserLeave'](_0x5323ee){const _0x1afc2c=_0x4fa2a5;this['_memberService']['removeMember'](this[_0x1afc2c(0x37d)][_0x1afc2c(0x1d3)],_0x5323ee[_0x1afc2c(0x2c7)][_0x1afc2c(0x38b)]);}async[_0x4fa2a5(0x402)](_0x30e30c,_0x59e224){const _0x55801d=_0x4fa2a5;if(this[_0x55801d(0xb9)]!==0x3||!this[_0x55801d(0x313)])throw Error(_0x55801d(0x3a4));try{let _0x35e72d=_0x761a72(this[_0x55801d(0x37d)],_0x30e30c);_0x35e72d[_0x55801d(0x130)]===_0x3a5734[_0x55801d(0xec)][_0x55801d(0x22d)]&&(this[_0x55801d(0x25c)](),this['_startTelemetryCollaborationNewChangeset'](_0x35e72d)),this[_0x55801d(0x313)][_0x55801d(0x402)]({'cmd':_0x4ed0d4[_0x55801d(0x35a)]['INGEST'],'routeKey':this[_0x55801d(0x37d)][_0x55801d(0x24c)][_0x55801d(0x229)],'routeType':'','data':_0x35e72d});}catch(_0x31b2f5){this[_0x55801d(0x314)][_0x55801d(0x187)](_0x31b2f5);}}[_0x4fa2a5(0x25c)](){const _0x484f8e=_0x4fa2a5;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x5b6d49=_0x5846;this[_0x5b6d49(0x2d7)]=null,this['_collaborationUIEventService']['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this['_configService']['getConfig'](_0x484f8e(0x107))??0x4e20);}[_0x4fa2a5(0x19c)](){const _0x35dd3e=_0x4fa2a5;this[_0x35dd3e(0x2d7)]&&=(clearTimeout(this[_0x35dd3e(0x2d7)]),null);}[_0x4fa2a5(0x3af)](_0xb09fe1){const _0x3eec05=_0x4fa2a5;if(!this['_shouldReportTelemetry'])return;let {data:_0x3c2ce3}=_0xb09fe1,{unitID:_0x33dd1c,changeset:_0x37d2f8}=_0x3c2ce3,{mutations:_0x59a6db,type:_0x4a3324}=_0x37d2f8;this[_0x3eec05(0x27b)]={'unitId':_0x33dd1c,'type':_0x4a3324,'startTime':performance[_0x3eec05(0x3f4)](),'stopTime':0x0,'duration':0x0,'size':_0x178ce8(_0x59a6db)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x2872ab=_0x4fa2a5;if(this[_0x2872ab(0x230)]){if(!this['_telemetryInfo']){this[_0x2872ab(0x314)][_0x2872ab(0x187)](_0x2872ab(0x21e),_0x2872ab(0x39c));return;}this['_telemetryInfo'][_0x2872ab(0x241)]=performance[_0x2872ab(0x3f4)](),this[_0x2872ab(0x27b)][_0x2872ab(0x411)]=this['_telemetryInfo'][_0x2872ab(0x241)]-this[_0x2872ab(0x27b)][_0x2872ab(0x2fa)],this[_0x2872ab(0x2e8)][_0x2872ab(0x113)](_0x2872ab(0x1e0),this['_telemetryInfo']),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x3987dd=_0x4fa2a5;this[_0x3987dd(0x27b)]=null;}};_0x45e291=_0x13514e([_0x374c65(0x2,_0x433f65['ILogService']),_0x374c65(0x3,_0x433f65['IConfigService']),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x54117e)),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x49219e)),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x133d94['ITelemetryService']))],_0x45e291);let _0x471235=(0x0,_0x433f65[_0x4fa2a5(0xad)])('collaboration-client.local-cache-service');function _0x12d23(_0x59377c){return'unit-cache-'+_0x59377c;}function _0x2552c9(_0x16abab){const _0x4c626d=_0x4fa2a5;let {unitID:_0x128dd4,mutations:_0x3bc2d3}=_0x16abab;return{'unitId':_0x128dd4,'subUnitId':_0x3bc2d3[_0x4c626d(0x208)]>0x0?_0x3bc2d3[0x0][_0x4c626d(0x206)][_0x4c626d(0x110)]:null};}let _0x41b88d=class{constructor(_0x2ca3e4,_0x389ef8,_0x4309ff){const _0x5e68c0=_0x4fa2a5;this['_injector']=_0x2ca3e4,this['_transformService']=_0x389ef8,this[_0x5e68c0(0x175)]=_0x4309ff;}['transformSelections'](_0x420aac){const _0x374f75=_0x4fa2a5;var _0xd2f423,_0x48cfe1;let _0x536a9d=this['_injector'][_0x374f75(0x2c0)](_0x6a2ac6[_0x374f75(0x25e)]),{unitId:_0x467184,subUnitId:_0x4c1554}=_0x2552c9(_0x420aac),_0x4f84b4=_0x536a9d==null?void 0x0:_0x536a9d[_0x374f75(0x2eb)](_0x467184)['getCurrentSelections'](),_0xae9448=(_0xd2f423=this[_0x374f75(0x175)][_0x374f75(0x2df)](_0x467184))==null||(_0xd2f423=_0xd2f423[_0x374f75(0xfd)]())==null?void 0x0:_0xd2f423[_0x374f75(0x339)]();if(_0x4f84b4[_0x374f75(0x208)]===0x0||!_0x467184||!_0x4c1554)return;let _0x335cf0=[{'id':_0x6a2ac6[_0x374f75(0x29e)]['id'],'params':{'unitId':_0x467184,'subUnitId':_0xae9448,'selections':_0x433f65[_0x374f75(0x23d)][_0x374f75(0x30f)](_0x4f84b4)}}],_0x4bb417=this[_0x374f75(0x324)]['transformMutationsWithChangeset'](_0x420aac,_0x335cf0);if(!(0x0,_0x3a5734[_0x374f75(0xe3)])(_0x4bb417))throw _0x4bb417[_0x374f75(0x187)];let _0x2298c1=(_0x48cfe1=_0x4bb417[_0x374f75(0x259)][0x0])==null||(_0x48cfe1=_0x48cfe1['params'])==null?void 0x0:_0x48cfe1['selections'];if(Array[_0x374f75(0x1f7)](_0x2298c1)&&_0x2298c1[_0x374f75(0x208)]){if(_0x2298c1[_0x374f75(0x208)]===_0x335cf0[0x0]['params'][_0x374f75(0x159)]['length']&&_0x2298c1[_0x374f75(0x139)]((_0x6f4b48,_0x507abd)=>_0x433f65[_0x374f75(0x2d2)]['equals'](_0x6f4b48[_0x374f75(0xcb)],_0x335cf0[0x0][_0x374f75(0x206)][_0x374f75(0x159)][_0x507abd][_0x374f75(0xcb)])))return;this[_0x374f75(0x40f)][_0x374f75(0x2c0)](_0x433f65[_0x374f75(0x16d)])[_0x374f75(0x2bd)](_0x6a2ac6[_0x374f75(0x29e)]['id'],{'unitId':_0x467184,'subUnitId':_0xae9448,'selections':_0x2298c1});}}};_0x41b88d=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x39b)])],_0x41b88d);let _0x4aaa76=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0x31d)),_0x1af2a5=function(_0x52cdd0){const _0x2584c3=_0x4fa2a5;return _0x52cdd0[_0x52cdd0[_0x2584c3(0x1cc)]=0x0]=_0x2584c3(0x1cc),_0x52cdd0[_0x52cdd0['OTHER_CLIENTS_EDITING']=0x1]=_0x2584c3(0x409),_0x52cdd0;}({});function _0x2786b9(_0x1e2017){const _0x93d29c=_0x4fa2a5;var _0x42ec96;return!!((_0x42ec96=_0x1e2017[_0x93d29c(0x206)])!=null&&_0x42ec96['__splitChunk__']);}let _0x2d94c0=new Set([_0x6a2ac6[_0x4fa2a5(0x13b)]['id']]),_0xebbaea=new Set([_0x255f6e[_0x4fa2a5(0x3f8)]['id'],_0x255f6e[_0x4fa2a5(0x371)]['id'],_0x255f6e[_0x4fa2a5(0xf7)]['id'],_0x255f6e[_0x4fa2a5(0x167)]['id']]);function _0x23a530(_0x1d6bfd,_0x3fbe2f=_0x2d94c0){const _0x347fe9=_0x4fa2a5;let _0x54c855=[];for(let _0x4ef12b of _0x1d6bfd){if(_0x3fbe2f['has'](_0x4ef12b['id'])){if(_0x54c855[_0x347fe9(0x208)]>0x0)break;_0x54c855[_0x347fe9(0x227)](_0x4ef12b);break;}if(_0x2786b9(_0x4ef12b)){if(_0x54c855['length']>0x0)break;_0x54c855[_0x347fe9(0x227)](_0x4ef12b);break;}_0x54c855[_0x347fe9(0x227)](_0x4ef12b);}return _0x54c855;}function _0x3b283c(_0x4c71fa,_0x353c4e,_0x5e398d,_0x38d08f,_0x2b48ac){const _0x377a77=_0x4fa2a5;let _0x42e379=_0x23a530(_0x4c71fa),_0x240e76=_0x2b48ac[_0x377a77(0x3b3)](),_0x367ccb=(_0x240e76==null?void 0x0:_0x240e76['userID'])??_0x377a77(0x281),_0x21c39e=(_0x240e76==null?void 0x0:_0x240e76[_0x377a77(0x38b)])??'unknown';return{'changeset':{'unitID':_0x353c4e,'type':(0x0,_0x3a5734[_0x377a77(0x3fb)])(_0x5e398d[_0x377a77(0x3c3)](_0x353c4e)),'baseRev':_0x38d08f['getCurrentRevOfUnit'](_0x353c4e),'revision':0x0,'userID':_0x367ccb,'memberID':_0x21c39e,'mutations':_0x42e379},'pendingMutations':_0x4c71fa[_0x377a77(0x1b2)](_0x42e379[_0x377a77(0x208)])};}let _0x5b1810=_0x3b283c;function _0x1cafbd(_0x2659f5,_0x331d2f,_0x360bc8,_0x19c09b,_0xe06320){const _0x1f2355=_0x4fa2a5;let _0x1f51a6=_0x23a530(_0x2659f5,_0xebbaea),_0x5586bd=_0xe06320['getCurrentUser'](),_0x11584d=(_0x5586bd==null?void 0x0:_0x5586bd[_0x1f2355(0x161)])??_0x1f2355(0x281),_0x2da08f=(_0x5586bd==null?void 0x0:_0x5586bd[_0x1f2355(0x38b)])??_0x1f2355(0x281);return{'changeset':{'unitID':_0x331d2f,'type':(0x0,_0x3a5734[_0x1f2355(0x3fb)])(_0x360bc8[_0x1f2355(0x3c3)](_0x331d2f)),'baseRev':_0x19c09b[_0x1f2355(0x36f)](_0x331d2f),'revision':0x0,'userID':_0x11584d,'memberID':_0x2da08f,'mutations':_0x1f51a6},'pendingMutations':_0x2659f5[_0x1f2355(0x1b2)](_0x1f51a6[_0x1f2355(0x208)])};}function _0x33f309(_0x97a916,_0x267b92,_0x563ba6,_0x2bd6d6,_0x34e6b5){const _0x258b69=_0x4fa2a5;let _0xd47a59=_0x97a916[_0x258b69(0xa0)]((_0x52799c,_0x4295db)=>{const _0x4b3b40=_0x258b69;let _0x4ced80=_0x52799c[_0x52799c[_0x4b3b40(0x208)]-0x1],{id:_0x3f51be}=_0x4ced80??{},{id:_0x273da5,type:_0xa25d0d}=_0x4295db,_0x183dd9=_0x4295db[_0x4b3b40(0x206)];if(_0x3f51be&&_0x3f51be!==_0x273da5)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3f51be+_0x4b3b40(0x296)+_0x273da5+'.');if(!_0x4ced80)return[{'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9['unitId'],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x183dd9[_0x4b3b40(0x30a)]}}];let _0x3b0c8c=_0x4ced80[_0x4b3b40(0x206)];return _0x1f406a(_0x3b0c8c,_0x183dd9)?[..._0x52799c[_0x4b3b40(0x1b2)](0x0,-0x1),{..._0x4ced80,'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9[_0x4b3b40(0x229)],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x433f65[_0x4b3b40(0x152)][_0x4b3b40(0x357)](_0x3b0c8c[_0x4b3b40(0x30a)],_0x183dd9[_0x4b3b40(0x30a)])}}]:[..._0x52799c,{'id':_0x273da5,'type':_0xa25d0d,'params':{'unitId':_0x183dd9[_0x4b3b40(0x229)],'textRanges':_0x183dd9[_0x4b3b40(0x1ba)],'actions':_0x183dd9[_0x4b3b40(0x30a)]}}];},[]),_0x20fc7d=_0x34e6b5[_0x258b69(0x3b3)](),_0x7fdb8b=(_0x20fc7d==null?void 0x0:_0x20fc7d[_0x258b69(0x161)])??_0x258b69(0x281),_0x35a75d=(_0x20fc7d==null?void 0x0:_0x20fc7d['memberID'])??_0x258b69(0x281);return{'changeset':{'unitID':_0x267b92,'type':(0x0,_0x3a5734[_0x258b69(0x3fb)])(_0x563ba6[_0x258b69(0x3c3)](_0x267b92)),'baseRev':_0x2bd6d6[_0x258b69(0x36f)](_0x267b92),'revision':0x0,'userID':_0x7fdb8b,'memberID':_0x35a75d,'mutations':_0xd47a59},'pendingMutations':_0x97a916[_0x258b69(0x1b2)](_0x97a916['length'])};}function _0x1f406a(_0x4d70e5,_0x44700a){const _0x2bf64c=_0x4fa2a5;return!_0x11f43a(_0x4d70e5)&&!_0x11f43a(_0x44700a)&&_0x1979fd(_0x4d70e5[_0x2bf64c(0x30a)],_0x44700a[_0x2bf64c(0x30a)]);}function _0x11f43a(_0x12da7b){const _0x547dc8=_0x4fa2a5;return _0x12da7b[_0x547dc8(0x1a6)]!==void 0x0;}function _0x1979fd(_0x2f04f1,_0x3271e4){return _0x297b4a(_0x2f04f1)&&_0x297b4a(_0x3271e4)&&!_0x276fdb(_0x2f04f1)&&!_0x276fdb(_0x3271e4)&&!_0x26c8a3(_0x2f04f1)&&!_0x26c8a3(_0x3271e4);}function _0x297b4a(_0x55088a){const _0x1bd725=_0x4fa2a5;return _0x5c43bb(_0x55088a)[_0x1bd725(0x2b5)](_0x306220=>_0x3032f7(_0x306220)&&_0x306220['et']==='text-x');}function _0x26c8a3(_0x3fcf96){const _0x2169f3=_0x4fa2a5;return _0x5c43bb(_0x3fcf96)[_0x2169f3(0x2b5)](_0x27eaf7=>Array[_0x2169f3(0x1f7)](_0x27eaf7)||typeof _0x27eaf7==_0x2169f3(0x265)||typeof _0x27eaf7==_0x2169f3(0x374));}function _0x276fdb(_0x484a4d){const _0x593333=_0x4fa2a5;return _0x5c43bb(_0x484a4d)[_0x593333(0x2b5)](_0x32c705=>!_0x3032f7(_0x32c705)||_0x32c705['et']!==_0x593333(0x32f)||!Array[_0x593333(0x1f7)](_0x32c705['e'])?!0x1:_0x32c705['e'][_0x593333(0x2b5)](_0xe48d47=>!_0x3032f7(_0xe48d47)||!_0x3032f7(_0xe48d47['body'])?!0x1:Object[_0x593333(0x408)]['hasOwnProperty'][_0x593333(0x2e5)](_0xe48d47[_0x593333(0x280)],'tables')||Object[_0x593333(0x408)][_0x593333(0x3a0)]['call'](_0xe48d47[_0x593333(0x280)],_0x593333(0x2db))||Object[_0x593333(0x408)][_0x593333(0x3a0)][_0x593333(0x2e5)](_0xe48d47[_0x593333(0x280)],'blockRanges')));}function _0x5c43bb(_0x2b7cbb){const _0x296b0c=_0x4fa2a5;if(!Array[_0x296b0c(0x1f7)](_0x2b7cbb))return[];let _0x1f8d97=_0x2b7cbb['includes'](_0x296b0c(0x280))?_0x2b7cbb:_0x2b7cbb[_0x296b0c(0x101)](_0x4c9cca=>Array['isArray'](_0x4c9cca)&&_0x4c9cca[_0x296b0c(0x3ce)](_0x296b0c(0x280)));if(!Array['isArray'](_0x1f8d97))return[];let _0x2eade3=_0x1f8d97['indexOf']('body');return _0x2eade3===-0x1?[]:_0x1f8d97[_0x296b0c(0x1b2)](_0x2eade3+0x1);}function _0x3032f7(_0x4933aa){const _0x4c8900=_0x4fa2a5;return typeof _0x4933aa==_0x4c8900(0x221)&&!!_0x4933aa&&!Array[_0x4c8900(0x1f7)](_0x4933aa);}function _0x3e6378(_0x490abc,_0x9d61dd){const _0x41b0e9=_0x4fa2a5;let _0x222ff5=new _0x450705[(_0x41b0e9(0x337))](0x1);return setTimeout(()=>_0x222ff5['next'](_0x9d61dd),_0x490abc),_0x222ff5[_0x41b0e9(0x343)]()[_0x41b0e9(0x192)]((0x0,_0x450705[_0x41b0e9(0x3b1)])(0x1));}var _0x12ed9d,_0x2acb98,_0x413c1b;let _0x34aefb=function(_0x408003){const _0x5de86b=_0x4fa2a5;return _0x408003['NOT_COLLAB']=_0x5de86b(0x234),_0x408003['SYNCED']='synced',_0x408003[_0x5de86b(0x2e6)]=_0x5de86b(0x23c),_0x408003['AWAITING']=_0x5de86b(0x253),_0x408003[_0x5de86b(0x2f2)]=_0x5de86b(0x3db),_0x408003[_0x5de86b(0x1d0)]='fetch_missing',_0x408003[_0x5de86b(0x34e)]='conflict',_0x408003[_0x5de86b(0x2b6)]=_0x5de86b(0x233),_0x408003;}({}),_0x206406=0x4e20,_0x49318e=0x2bf20;var _0xfca92=class{constructor(_0x2714b0,_0x253db1,_0x47fd72,_0x2eb151,_0x32755f,_0xe63ae1,_0x40a2f2,_0x347ca7,_0x4bb0d0){const _0x2c7862=_0x4fa2a5;this[_0x2c7862(0x210)]=_0x2714b0,this['type']=_0x253db1,this['_handler']=_0x32755f,this[_0x2c7862(0x1ee)]=_0xe63ae1,this[_0x2c7862(0x26f)]=_0x40a2f2,this['_revisionService']=_0x347ca7,this[_0x2c7862(0x304)]=_0x4bb0d0,_0x5aacdf(this,'_awaitingChangeset',null),_0x5aacdf(this,_0x2c7862(0x2e1),[]),this['_awaitingChangeset']=_0x47fd72,this[_0x2c7862(0x2e1)]=_0x2eb151;}[_0x4fa2a5(0x217)](_0x381eb5){const _0x563742=_0x4fa2a5;let _0x112cc8=this['_revisionService'][_0x563742(0x36f)](this[_0x563742(0x210)]);return _0x381eb5[_0x563742(0x3bf)]>_0x112cc8+0x1&&(this[_0x563742(0x384)][_0x563742(0xea)]({'from':_0x112cc8,'to':_0x381eb5[_0x563742(0x3bf)]-0x1}),!0x0);}[_0x4fa2a5(0x31b)](_0x319d0f){const _0x238ac6=_0x4fa2a5;this[_0x238ac6(0x26f)]['transformUndoRedo'](this[_0x238ac6(0x210)],_0x319d0f);}[_0x4fa2a5(0x311)](_0x2a047e){const _0x345ded=_0x4fa2a5;var _0x504690,_0x48253d;(_0x504690=(_0x48253d=this[_0x345ded(0x384)])['onTransformSelections'])==null||_0x504690[_0x345ded(0x2e5)](_0x48253d,_0x2a047e);}[_0x4fa2a5(0x236)](_0x2f5ada){const _0x363598=_0x4fa2a5;var _0x196dd6,_0x248540;return((_0x196dd6=(_0x248540=this[_0x363598(0x384)])[_0x363598(0xba)])==null?void 0x0:_0x196dd6['call'](_0x248540,_0x2f5ada))??null;}['_transformIMECache'](_0x2b12e7){const _0x3c57ed=_0x4fa2a5;var _0x526f7,_0x409d62;return(_0x526f7=(_0x409d62=this[_0x3c57ed(0x384)])['onTransformIME'])==null?void 0x0:_0x526f7[_0x3c57ed(0x2e5)](_0x409d62,_0x2b12e7);}[_0x4fa2a5(0x25d)](_0x1f6806){const _0x1e3e23=_0x4fa2a5;var _0x51be8b,_0x4c4ecc;return(_0x51be8b=(_0x4c4ecc=this[_0x1e3e23(0x384)])['onTransformState'])==null?void 0x0:_0x51be8b[_0x1e3e23(0x2e5)](_0x4c4ecc,_0x1f6806);}[_0x4fa2a5(0x1e3)](_0x38e3a1){const _0x1ad7fb=_0x4fa2a5;var _0x2685da,_0x3d695c;return((_0x2685da=(_0x3d695c=this[_0x1ad7fb(0x384)])[_0x1ad7fb(0x1af)])==null?void 0x0:_0x2685da[_0x1ad7fb(0x2e5)](_0x3d695c,_0x38e3a1))??_0x38e3a1;}[_0x4fa2a5(0x2f7)](_0x4e1478){const _0x13fc92=_0x4fa2a5;var _0x3c8036,_0x343a59;return((_0x3c8036=(_0x343a59=this[_0x13fc92(0x384)])[_0x13fc92(0x116)])==null?void 0x0:_0x3c8036[_0x13fc92(0x2e5)](_0x343a59,_0x4e1478))??_0x4e1478;}['_syncEditingCollabCursor'](_0x3089f5){const _0x2a6f21=_0x4fa2a5;if(this['type']===_0x433f65['UniverInstanceType'][_0x2a6f21(0x237)]){let {unitID:_0xdce07,mutations:_0x4b9876,memberID:_0x4d129c}=_0x3089f5,_0x48d4b9=_0x4b9876[_0x2a6f21(0x208)]>0x0?_0x4b9876[0x0]['params'][_0x2a6f21(0x1ba)]:[];if(Array[_0x2a6f21(0x1f7)](_0x48d4b9)&&_0x48d4b9['length']>0x0){var _0x1f238d,_0x46ba33;(_0x1f238d=(_0x46ba33=this['_handler'])[_0x2a6f21(0x256)])==null||_0x1f238d['call'](_0x46ba33,{'unitID':_0xdce07,'memberID':_0x4d129c,'textRanges':_0x48d4b9});}}}[_0x4fa2a5(0xc0)](){const _0x27007c=_0x4fa2a5;var _0x2121bf;(_0x2121bf=this[_0x27007c(0x304)])==null||_0x2121bf['updateOfflineData'](this[_0x27007c(0x210)],this[_0x27007c(0x3c6)],this[_0x27007c(0x2fe)],this[_0x27007c(0x2e1)]);}[_0x4fa2a5(0x28c)](){const _0x478fc6=_0x4fa2a5;return this[_0x478fc6(0x141)][_0x478fc6(0x36f)](this[_0x478fc6(0x210)]);}['_incrementRevisionNumber'](){const _0x247791=_0x4fa2a5;this[_0x247791(0x141)][_0x247791(0xf6)](this[_0x247791(0x210)]);}[_0x4fa2a5(0x19a)](_0x635a59){const _0x2068f4=_0x4fa2a5;let _0x4e855a=this[_0x2068f4(0x1e3)](_0x635a59);_0x4e855a=this['_transformRemoteChangesetByStateCache'](_0x4e855a);let _0x46f0d0=this[_0x2068f4(0x236)](_0x4e855a),_0x202910=(0x0,_0x433f65[_0x2068f4(0x1e5)])(_0x4e855a[_0x2068f4(0x2d5)],this['_commandService'],{'fromCollab':!0x0});if(!_0x202910['result'])throw _0x46f0d0==null||_0x46f0d0[_0x2068f4(0x369)](),_0x202910['error']instanceof Error?_0x202910[_0x2068f4(0x187)]:Error(_0x202910[_0x2068f4(0x187)]??'[CollaborationState]:\x20apply\x20error!');_0x46f0d0==null||_0x46f0d0[_0x2068f4(0x38c)](),this[_0x2068f4(0x38e)](_0x4e855a),this[_0x2068f4(0x25d)](_0x4e855a),this[_0x2068f4(0x31b)](_0x635a59),this[_0x2068f4(0x311)](_0x4e855a),this[_0x2068f4(0x174)](_0x4e855a),this[_0x2068f4(0xb5)]();}};let _0x4f3cea=class extends _0xfca92{constructor(_0x558be1,_0x377a1f,_0xed7e54,_0x142012,_0x314cb9,_0x3c6b13,_0x5ac759,_0x28915c,_0x257d15,_0x54dd5f){const _0x1dc13c=_0x4fa2a5;super(_0x558be1,_0x377a1f,null,[],_0xed7e54,_0x5ac759,_0x3c6b13,_0x142012,_0x54dd5f),this[_0x1dc13c(0x40f)]=_0x314cb9,this[_0x1dc13c(0x314)]=_0x28915c,this[_0x1dc13c(0x324)]=_0x257d15,this['localCacheService']=_0x54dd5f,_0x5aacdf(this,'status',_0x1dc13c(0x1cd));}['appendMutation'](_0x30a24a){const _0x1017c4=_0x4fa2a5;let _0xfc7700=this[_0x1017c4(0x40f)][_0x1017c4(0x11d)](_0x2845dd,this[_0x1017c4(0x210)],this['type'],[_0x30a24a],this[_0x1017c4(0x384)]);return _0xfc7700[_0x1017c4(0x39a)](),_0xfc7700[_0x1017c4(0xc0)](),_0xfc7700;}[_0x4fa2a5(0x24a)](_0x5b5a75){const _0x4ca84c=_0x4fa2a5;if(this[_0x4ca84c(0x217)](_0x5b5a75))return this['_injector'][_0x4ca84c(0x11d)](_0x1ba45e,this[_0x4ca84c(0x210)],this[_0x4ca84c(0x3c6)],null,[],null,[_0x5b5a75],this['_handler']);try{let _0x41198b=this[_0x4ca84c(0x324)]['transformMutationsWithChangeset'](_0x5b5a75,[_0x3a5734['EmptyMutationInfo']]);if((0x0,_0x3a5734['isTransformMutationsWithChangesetSuccess'])(_0x41198b)){let {c1Prime:_0x39ec58}=_0x41198b;return this['_executeRemoteChangeset'](_0x39ec58),this;}throw _0x41198b[_0x4ca84c(0x187)];}catch(_0xaaf94c){return this['_logService'][_0x4ca84c(0x187)](_0xaaf94c),this[_0x4ca84c(0xae)](!0x1);}}['_onConflict'](_0x4c10d9){const _0x5bb5a8=_0x4fa2a5;return this[_0x5bb5a8(0x40f)]['createInstance'](_0x7d595b,this['unitID'],this[_0x5bb5a8(0x3c6)],null,[],this[_0x5bb5a8(0x384)],_0x4c10d9);}[_0x4fa2a5(0xb1)](_0x5d0fca){const _0x1fac14=_0x4fa2a5;if(_0x5d0fca[_0x1fac14(0x3bf)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4fa2a5(0x18d)](){const _0xd22d33=_0x4fa2a5;throw Error(_0xd22d33(0xd3));}[_0x4fa2a5(0xdd)](){return this;}['toggleOffline'](){const _0x44ff1a=_0x4fa2a5;return this[_0x44ff1a(0x40f)][_0x44ff1a(0x11d)](_0x5a97ff,this['unitID'],this[_0x44ff1a(0x3c6)],null,[],this[_0x44ff1a(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4fa2a5(0x1ab)](){const _0xadc7d0=_0x4fa2a5;let _0x43e9c8=this[_0xadc7d0(0x141)][_0xadc7d0(0x36f)](this[_0xadc7d0(0x210)]);return this[_0xadc7d0(0x384)]['onMissingChangesets']({'from':_0x43e9c8,'to':0x0}),this[_0xadc7d0(0x40f)]['createInstance'](_0x1ba45e,this[_0xadc7d0(0x210)],this[_0xadc7d0(0x3c6)],null,[],null,[],this[_0xadc7d0(0x384)]);}};_0x4f3cea=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x6,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x7,_0x433f65['ILogService']),_0x374c65(0x8,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x4f3cea);let _0x2845dd=_0x12ed9d=class extends _0xfca92{constructor(_0x2ff4ce,_0x566013,_0x1caab2,_0x228065,_0x2fd929,_0x1938f6,_0x27ac8f,_0x416b0a,_0x13c931,_0x3d6a5a,_0x28909f,_0x5c8c7a,_0x14c554,_0x44d389){const _0x48f0f3=_0x4fa2a5;super(_0x2ff4ce,_0x566013,null,_0x1caab2,_0x228065,_0x13c931,_0x14c554,_0x1938f6,_0x44d389),this['_injector']=_0x2fd929,this[_0x48f0f3(0xdb)]=_0x27ac8f,this[_0x48f0f3(0x314)]=_0x416b0a,this[_0x48f0f3(0x1a9)]=_0x3d6a5a,this['_transformService']=_0x28909f,this['_univerInstanceService']=_0x5c8c7a,_0x5aacdf(this,_0x48f0f3(0x1e8),_0x48f0f3(0x23c)),_0x5aacdf(this,_0x48f0f3(0x14f),null),_0x5aacdf(this,'_sendingTimer',null);}[_0x4fa2a5(0x407)](_0x555a7e){const _0x29e96a=_0x4fa2a5;return this['_pendingMutations']['push'](_0x555a7e),this[_0x29e96a(0xc0)](),this;}[_0x4fa2a5(0x24a)](_0x1d7935){const _0x3a1e59=_0x4fa2a5;if(this[_0x3a1e59(0x217)](_0x1d7935))return this[_0x3a1e59(0x2c2)](),this[_0x3a1e59(0x40f)][_0x3a1e59(0x11d)](_0x1ba45e,this[_0x3a1e59(0x210)],this['type'],null,this['_pendingMutations'],null,[_0x1d7935],this[_0x3a1e59(0x384)]);try{let _0x460d18=this[_0x3a1e59(0x324)][_0x3a1e59(0x2ad)](_0x1d7935,this[_0x3a1e59(0x2e1)]);if((0x0,_0x3a5734[_0x3a1e59(0xe3)])(_0x460d18)){let {c1Prime:_0x1b4fbd,m2Prime:_0x240038}=_0x460d18;this[_0x3a1e59(0x19a)](_0x1b4fbd);let _0x32cfb4=this[_0x3a1e59(0x40f)][_0x3a1e59(0x11d)](_0x12ed9d,this[_0x3a1e59(0x210)],this[_0x3a1e59(0x3c6)],_0x240038,this[_0x3a1e59(0x384)]);this[_0x3a1e59(0x2c2)]();let _0x460c7a=new Date()[_0x3a1e59(0x28b)](),_0x1c9e61=this[_0x3a1e59(0x14f)]?Math['max'](this[_0x3a1e59(0x14f)]-_0x460c7a,0x0):this[_0x3a1e59(0x189)]();return _0x32cfb4[_0x3a1e59(0x39a)](_0x1c9e61),_0x32cfb4;}throw _0x460d18[_0x3a1e59(0x187)];}catch(_0x341d57){return this['_logService'][_0x3a1e59(0x187)](_0x341d57),this[_0x3a1e59(0xae)](!0x1);}}[_0x4fa2a5(0xb1)](_0x497080){const _0x269969=_0x4fa2a5;if(_0x497080[_0x269969(0x3bf)]<=this[_0x269969(0x28c)]())return this;throw Error(_0x269969(0x1a1));}[_0x4fa2a5(0x18d)](){const _0x59b374=_0x4fa2a5;throw Error(_0x59b374(0x3fa));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){const _0x47d494=_0x4fa2a5;return this[_0x47d494(0x2c2)](),this[_0x47d494(0x40f)][_0x47d494(0x11d)](_0x5a97ff,this[_0x47d494(0x210)],this[_0x47d494(0x3c6)],null,this[_0x47d494(0x2e1)],this['_handler']);}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0x39a)](_0xdba75b){const _0x2321dc=_0x4fa2a5;let _0x20b5e7=_0xdba75b??this[_0x2321dc(0x189)]();this[_0x2321dc(0x14f)]=new Date()['getTime']()+_0x20b5e7,this[_0x2321dc(0x10e)]=setTimeout(()=>{const _0x472163=_0x2321dc;this[_0x472163(0x2c2)]();let _0xa90c34=null;switch(this['type']){case _0x433f65['UniverInstanceType'][_0x472163(0xb4)]:_0xa90c34=_0x3b283c(this['_pendingMutations'],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_DOC']:_0xa90c34=this['_pendingMutations'][_0x472163(0x139)](_0x394eda=>_0x394eda['id']===_0xaa3595[_0x472163(0x184)]['id'])?_0x33f309(this['_pendingMutations'],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this['_userManagerService']):_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65[_0x472163(0xa5)][_0x472163(0xcd)]:_0xa90c34=_0x1cafbd(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_PDF']:_0xa90c34=_0x5b1810(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65['UniverInstanceType']['UNIVER_BOARD']:_0xa90c34=_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this['_univerInstanceService'],this[_0x472163(0x141)],this[_0x472163(0xdb)]);break;case _0x433f65[_0x472163(0xa5)]['UNIVER_BASE']:_0xa90c34=_0x3b283c(this[_0x472163(0x2e1)],this[_0x472163(0x210)],this[_0x472163(0x3f3)],this['_revisionService'],this[_0x472163(0xdb)]);break;default:throw Error(_0x472163(0x355)+this['type']+_0x472163(0x283));}let {changeset:_0x2207c4,pendingMutations:_0x4f330e}=_0xa90c34;this[_0x472163(0x384)][_0x472163(0x2d9)](_0x2207c4);let _0x4f702f=_0x4f330e['length']?this['_injector'][_0x472163(0x11d)](_0x16395e,this[_0x472163(0x210)],this[_0x472163(0x3c6)],_0x2207c4,_0x4f330e,this['_handler'],void 0x0):this[_0x472163(0x40f)][_0x472163(0x11d)](_0x42f6fe,this[_0x472163(0x210)],this[_0x472163(0x3c6)],_0x2207c4,this[_0x472163(0x384)]);_0x4f702f[_0x472163(0xc0)](),this['_handler']['onStateChange'](this,_0x4f702f);},_0x20b5e7);}['_getSendChangesetTimeout'](){const _0x1294ad=_0x4fa2a5;let _0x3aca28=this[_0x1294ad(0x1a9)][_0x1294ad(0xd7)](_0x18fed6);return(_0x3aca28==null?void 0x0:_0x3aca28[_0x1294ad(0x138)])??0x7d0;}[_0x4fa2a5(0x3e0)](){const _0x2b04a4=_0x4fa2a5;throw Error(_0x2b04a4(0x19f));}['_clearScheduledTask'](){const _0x271cd1=_0x4fa2a5;this[_0x271cd1(0x10e)]!=null&&(clearTimeout(this[_0x271cd1(0x10e)]),this[_0x271cd1(0x10e)]=null);}[_0x4fa2a5(0xae)](_0x23a1ec){const _0x13ad5a=_0x4fa2a5;return this[_0x13ad5a(0x2c2)](),this[_0x13ad5a(0x40f)][_0x13ad5a(0x11d)](_0x7d595b,this['unitID'],this[_0x13ad5a(0x3c6)],null,this[_0x13ad5a(0x2e1)],this[_0x13ad5a(0x384)],_0x23a1ec);}};_0x2845dd=_0x12ed9d=_0x13514e([_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['RevisionService'])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x3b8)])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x8,_0x433f65['ICommandService']),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0xa,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0xc,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x2845dd);let _0x42f6fe=_0x2acb98=class extends _0xfca92{constructor(_0x412df1,_0x29b40d,_0x54058b,_0x65886a,_0x45db62,_0xdb789c,_0x56ee38,_0x3fd21a,_0x479316,_0x271db1,_0x108b6f){const _0x1a156e=_0x4fa2a5;super(_0x412df1,_0x29b40d,_0x54058b,[],_0x65886a,_0x56ee38,_0x271db1,_0xdb789c,_0x108b6f),this[_0x1a156e(0x40f)]=_0x45db62,this['_logService']=_0x3fd21a,this['_transformService']=_0x479316,_0x5aacdf(this,_0x1a156e(0x1e8),_0x1a156e(0x253)),_0x5aacdf(this,_0x1a156e(0x22f),0x0),_0x5aacdf(this,_0x1a156e(0x31c),0x0),_0x5aacdf(this,_0x1a156e(0x359),void 0x0),_0x5aacdf(this,_0x1a156e(0x3a2),void 0x0);}[_0x4fa2a5(0x407)](_0x5a4972){const _0x2fb417=_0x4fa2a5;this[_0x2fb417(0x2c2)]();let _0x45434b=this[_0x2fb417(0x40f)][_0x2fb417(0x11d)](_0x16395e,this[_0x2fb417(0x210)],this[_0x2fb417(0x3c6)],this[_0x2fb417(0x2fe)],[_0x5a4972],this[_0x2fb417(0x384)],this[_0x2fb417(0x359)]);return _0x45434b[_0x2fb417(0xc0)](),_0x45434b;}[_0x4fa2a5(0x24a)](_0x980301){const _0x19b569=_0x4fa2a5;if(this[_0x19b569(0x217)](_0x980301))return this[_0x19b569(0x2c2)](),this['_injector'][_0x19b569(0x11d)](_0x1ba45e,this['unitID'],this[_0x19b569(0x3c6)],this[_0x19b569(0x2fe)],[],null,[_0x980301],this[_0x19b569(0x384)]);try{let _0x4aa265=this[_0x19b569(0x324)][_0x19b569(0x142)]([_0x980301],[this[_0x19b569(0x2fe)]],!0x1);if((0x0,_0x3a5734[_0x19b569(0x153)])(_0x4aa265)){let {c1Prime:_0x45d187,c2Prime:_0x7c3b8c}=_0x4aa265;this[_0x19b569(0x19a)](_0x45d187[0x0]),_0x7c3b8c[0x0]['baseRev']=this[_0x19b569(0x28c)](),this[_0x19b569(0x2c2)]();let _0x1472b6=this[_0x19b569(0x40f)][_0x19b569(0x11d)](_0x2acb98,this[_0x19b569(0x210)],this[_0x19b569(0x3c6)],_0x7c3b8c[0x0],this[_0x19b569(0x384)]);return _0x1472b6[_0x19b569(0xc0)](),_0x1472b6;}throw _0x4aa265[_0x19b569(0x187)];}catch(_0x1a1141){return this[_0x19b569(0x314)][_0x19b569(0x187)](_0x1a1141),this[_0x19b569(0xae)](!0x1);}}[_0x4fa2a5(0xb1)](_0xcafcd2){const _0x551b57=_0x4fa2a5;this[_0x551b57(0x2c2)]();let _0x7019aa=this[_0x551b57(0x141)][_0x551b57(0x36f)](this['unitID']);if(_0xcafcd2[_0x551b57(0x3bf)]<=_0x7019aa)return this;if(this['_checkMissing'](_0xcafcd2))return this[_0x551b57(0x40f)][_0x551b57(0x11d)](_0x1ba45e,this['unitID'],this[_0x551b57(0x3c6)],this['_awaitingChangeset'],[],_0xcafcd2[_0x551b57(0x3bf)],[],this[_0x551b57(0x384)]);this['_incrementRevisionNumber']();let _0x20cc9c=this['_injector'][_0x551b57(0x11d)](_0x4f3cea,this['unitID'],this[_0x551b57(0x3c6)],this[_0x551b57(0x384)]);return _0x20cc9c[_0x551b57(0xc0)](),_0x20cc9c;}[_0x4fa2a5(0x18d)](_0x3f62cc){const _0x54827d=_0x4fa2a5;return this[_0x54827d(0xae)](!!(_0x3f62cc!=null&&_0x3f62cc[_0x54827d(0x30b)]));}['onRemoteRetry'](_0x1a7919){const _0x28f01c=_0x4fa2a5;return this[_0x28f01c(0x31c)]>_0x49318e?this[_0x28f01c(0x299)]():(this[_0x28f01c(0x359)]=_0x3e6378(this[_0x28f01c(0x22f)],{'timeout':this[_0x28f01c(0x22f)],'reqId':_0x1a7919[_0x28f01c(0x1f2)]}),this[_0x28f01c(0x3a2)]=this[_0x28f01c(0x359)][_0x28f01c(0x252)](({reqId:_0x4fb407,timeout:_0x4777a3})=>{const _0x5060f6=_0x28f01c;this[_0x5060f6(0x3fc)](_0x4fb407,_0x4777a3);}),this);}[_0x4fa2a5(0x299)](){const _0x5b25d9=_0x4fa2a5;return this[_0x5b25d9(0x2c2)](),this[_0x5b25d9(0x40f)][_0x5b25d9(0x11d)](_0x5a97ff,this[_0x5b25d9(0x210)],this[_0x5b25d9(0x3c6)],this[_0x5b25d9(0x2fe)],[],this[_0x5b25d9(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){const _0x3691dc=_0x4fa2a5;this[_0x3691dc(0x384)][_0x3691dc(0x2d9)](this['_awaitingChangeset']);}[_0x4fa2a5(0xae)](_0x15f03c){const _0x4af36e=_0x4fa2a5;return this[_0x4af36e(0x2c2)](),this[_0x4af36e(0x40f)][_0x4af36e(0x11d)](_0x7d595b,this[_0x4af36e(0x210)],this[_0x4af36e(0x3c6)],this[_0x4af36e(0x2fe)],[],this[_0x4af36e(0x384)],_0x15f03c);}['_resendWithTimeout'](_0x526cc0,_0x1873fd){const _0x1007fb=_0x4fa2a5;var _0x595df8;_0x526cc0===((_0x595df8=this[_0x1007fb(0x2fe)])==null?void 0x0:_0x595df8['reqId'])&&(this[_0x1007fb(0x3e0)](),this[_0x1007fb(0x22f)]=_0x1873fd===0x0?0x3e8:Math[_0x1007fb(0x21c)](_0x1873fd*0x2,_0x206406),this['_maxTotalRetryTimeout']+=this[_0x1007fb(0x22f)]);}[_0x4fa2a5(0x2c2)](){const _0x3b9353=_0x4fa2a5;var _0x58e728;(_0x58e728=this[_0x3b9353(0x3a2)])==null||_0x58e728[_0x3b9353(0x3ba)](),this[_0x3b9353(0x22f)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x42f6fe=_0x2acb98=_0x13514e([_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x6,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x7,_0x433f65['ILogService']),_0x374c65(0x8,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xa,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x42f6fe);let _0x16395e=_0x413c1b=class extends _0xfca92{constructor(_0x2fbe93,_0x5f0aad,_0x222813,_0x4d36b8,_0x2d4e8a,_0x19d286,_0x2d9e31,_0x2023df,_0x157c9b,_0x39585b,_0x44b53f,_0x176fdb,_0x2b04d5){const _0x55805a=_0x4fa2a5;super(_0x2fbe93,_0x5f0aad,_0x222813,_0x4d36b8,_0x2d4e8a,_0x157c9b,_0x176fdb,_0x2023df,_0x2b04d5),this[_0x55805a(0x40f)]=_0x2d9e31,this['_logService']=_0x39585b,this[_0x55805a(0x324)]=_0x44b53f,this[_0x55805a(0x405)]=_0x2b04d5,_0x5aacdf(this,_0x55805a(0x1e8),_0x55805a(0x3db)),_0x5aacdf(this,_0x55805a(0x22f),0x0),_0x5aacdf(this,_0x55805a(0x31c),0x0),_0x5aacdf(this,_0x55805a(0x359),void 0x0),_0x5aacdf(this,'_sender',void 0x0),_0x19d286&&(this[_0x55805a(0x359)]=_0x19d286,this[_0x55805a(0x3a2)]=this[_0x55805a(0x359)][_0x55805a(0x252)](({reqId:_0x59d23f,timeout:_0x425849})=>{const _0x30c12f=_0x55805a;this[_0x30c12f(0x3fc)](_0x59d23f,_0x425849);}));}[_0x4fa2a5(0x407)](_0x2b2b67){const _0x1c1f1f=_0x4fa2a5;return this[_0x1c1f1f(0x2e1)][_0x1c1f1f(0x227)](_0x2b2b67),this;}[_0x4fa2a5(0x24a)](_0x1f36f4){const _0x1200f2=_0x4fa2a5;if(this['_checkMissing'](_0x1f36f4))return this[_0x1200f2(0x2c2)](),this[_0x1200f2(0x40f)][_0x1200f2(0x11d)](_0x1ba45e,this[_0x1200f2(0x210)],this[_0x1200f2(0x3c6)],this[_0x1200f2(0x2fe)],this[_0x1200f2(0x2e1)],null,[_0x1f36f4],this['_handler']);try{let _0x282cf0=this[_0x1200f2(0x324)]['transformChangesets']([_0x1f36f4],[this[_0x1200f2(0x2fe)]],!0x1);if((0x0,_0x3a5734[_0x1200f2(0x153)])(_0x282cf0)){let {c1Prime:_0x281417,c2Prime:_0x550dce}=_0x282cf0,_0x15468b=this[_0x1200f2(0x324)]['transformMutationsWithChangeset'](_0x281417[0x0],this[_0x1200f2(0x2e1)]);if((0x0,_0x3a5734[_0x1200f2(0xe3)])(_0x15468b)){let {c1Prime:_0x41ad90,m2Prime:_0x13e2da}=_0x15468b;return this[_0x1200f2(0x19a)](_0x41ad90),_0x550dce[0x0][_0x1200f2(0x3a5)]=this[_0x1200f2(0x28c)](),this[_0x1200f2(0x2c2)](),this[_0x1200f2(0x40f)]['createInstance'](_0x413c1b,this[_0x1200f2(0x210)],this[_0x1200f2(0x3c6)],_0x550dce[0x0],_0x13e2da,this[_0x1200f2(0x384)],void 0x0);}throw _0x15468b[_0x1200f2(0x187)];}throw _0x282cf0['error'];}catch(_0x39adf5){return this[_0x1200f2(0x314)]['error'](_0x39adf5),this['_onConflict'](!0x1);}}[_0x4fa2a5(0xb1)](_0x47c6c4){const _0x58efc8=_0x4fa2a5;this[_0x58efc8(0x2c2)]();let _0x1aa767=this[_0x58efc8(0x28c)]();if(_0x47c6c4['revision']<=_0x1aa767)return this;if(this[_0x58efc8(0x217)](_0x47c6c4))return this[_0x58efc8(0x40f)][_0x58efc8(0x11d)](_0x1ba45e,this[_0x58efc8(0x210)],this[_0x58efc8(0x3c6)],this['_awaitingChangeset'],this[_0x58efc8(0x2e1)],_0x47c6c4[_0x58efc8(0x3bf)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x4bc93e=this['_injector'][_0x58efc8(0x11d)](_0x2845dd,this[_0x58efc8(0x210)],this[_0x58efc8(0x3c6)],this[_0x58efc8(0x2e1)],this['_handler']);return _0x4bc93e[_0x58efc8(0x39a)](),_0x4bc93e['_updateLocalCache'](),_0x4bc93e;}[_0x4fa2a5(0x18d)](_0x42fddc){const _0x177a31=_0x4fa2a5;return this[_0x177a31(0xae)](!!(_0x42fddc!=null&&_0x42fddc['isPermissionRej']));}[_0x4fa2a5(0xdd)](_0x21bf9d){const _0x18e4cf=_0x4fa2a5;return this['_maxTotalRetryTimeout']>_0x49318e?this['toggleOffline']():(this[_0x18e4cf(0x359)]=_0x3e6378(this[_0x18e4cf(0x22f)],{'timeout':this['_resendTimeout'],'reqId':_0x21bf9d[_0x18e4cf(0x1f2)]}),this[_0x18e4cf(0x3a2)]=this[_0x18e4cf(0x359)]['subscribe'](({reqId:_0x158aaf,timeout:_0x442d18})=>{const _0x50be43=_0x18e4cf;this[_0x50be43(0x3fc)](_0x158aaf,_0x442d18);}),this);}[_0x4fa2a5(0x299)](){const _0xe21395=_0x4fa2a5;return this[_0xe21395(0x2c2)](),this[_0xe21395(0x40f)][_0xe21395(0x11d)](_0x5a97ff,this[_0xe21395(0x210)],this['type'],this[_0xe21395(0x2fe)],this[_0xe21395(0x2e1)],this[_0xe21395(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}['resend'](){const _0x496980=_0x4fa2a5;this[_0x496980(0x384)][_0x496980(0x2d9)](this[_0x496980(0x2fe)]);}['_onConflict'](_0x5a287f){const _0x52860a=_0x4fa2a5;return this[_0x52860a(0x2c2)](),this[_0x52860a(0x40f)][_0x52860a(0x11d)](_0x7d595b,this[_0x52860a(0x210)],this[_0x52860a(0x3c6)],null,this['_pendingMutations'],this['_handler'],_0x5a287f);}[_0x4fa2a5(0x3fc)](_0x2d20fe,_0x146132){const _0x365d15=_0x4fa2a5;var _0x49aeca;_0x2d20fe===((_0x49aeca=this[_0x365d15(0x2fe)])==null?void 0x0:_0x49aeca['reqId'])&&(this[_0x365d15(0x3e0)](),this[_0x365d15(0x22f)]=_0x146132===0x0?0x3e8:Math[_0x365d15(0x21c)](_0x146132*0x2,_0x206406),this[_0x365d15(0x31c)]+=this[_0x365d15(0x22f)]);}[_0x4fa2a5(0x2c2)](){const _0x5d00ff=_0x4fa2a5;var _0x7a2048;(_0x7a2048=this['_sender'])==null||_0x7a2048['unsubscribe'](),this[_0x5d00ff(0x22f)]=0x0,this[_0x5d00ff(0x31c)]=0x0;}};_0x16395e=_0x413c1b=_0x13514e([_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['RevisionService'])),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xc,(0x0,_0x433f65['Optional'])(_0x471235))],_0x16395e);let _0x7d595b=class extends _0xfca92{constructor(_0xb80aa5,_0x13fb56,_0x391672,_0x11181d,_0x40ff7d,_0x5e7fb1=!0x1,_0x37d2fb,_0x244301,_0x4205d0,_0x5619cd,_0x34bda0,_0x477e8e,_0x35b3e0){const _0x1b9831=_0x4fa2a5;super(_0xb80aa5,_0x13fb56,_0x391672,_0x11181d,_0x40ff7d,_0x244301,_0x4205d0,_0x5619cd,_0x35b3e0),this[_0x1b9831(0x3de)]=_0x5e7fb1,this['_permissionService']=_0x37d2fb,this[_0x1b9831(0x267)]=_0x34bda0,this[_0x1b9831(0x347)]=_0x477e8e,this[_0x1b9831(0x405)]=_0x35b3e0,_0x5aacdf(this,_0x1b9831(0x1e8),_0x1b9831(0x3c5)),this[_0x1b9831(0x16f)](),this[_0x1b9831(0x3c1)](),this['_prepareConflictRecovery']();}[_0x4fa2a5(0x407)](){return this;}[_0x4fa2a5(0x24a)](){return this;}['onRemoteAck'](){return this;}[_0x4fa2a5(0x18d)](){return this;}[_0x4fa2a5(0xdd)](){return this;}['toggleOffline'](){return this;}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0x3e0)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async[_0x4fa2a5(0x23a)](){const _0xf33b3d=_0x4fa2a5;var _0x2ef1d2,_0xf85e7d;await((_0x2ef1d2=this['_localCacheService'])==null||(_0xf85e7d=_0x2ef1d2[_0xf33b3d(0x372)])==null?void 0x0:_0xf85e7d['call'](_0x2ef1d2,this[_0xf33b3d(0x210)],_0xf33b3d(0x3c5))[_0xf33b3d(0x1a4)](()=>void 0x0));try{var _0x9b0359;await((_0x9b0359=this['_localCacheService'])==null?void 0x0:_0x9b0359['clearOfflineData'](this[_0xf33b3d(0x210)]));}catch{this[_0xf33b3d(0x347)][_0xf33b3d(0x2cf)]({'id':_0xf33b3d(0x3d2),'unitID':this[_0xf33b3d(0x210)]});return;}this['_showConflictNotification']();}[_0x4fa2a5(0x3c1)](){const _0x462645=_0x4fa2a5;this[_0x462645(0x347)][_0x462645(0x2cf)]({'id':_0x462645(0x414)});}[_0x4fa2a5(0x1e6)](){const _0x4ef465=_0x4fa2a5;this[_0x4ef465(0x3de)]?this[_0x4ef465(0x347)][_0x4ef465(0x2cf)]({'id':'PERMISSION_DENIED'}):this[_0x4ef465(0x347)]['emitEvent']({'id':_0x4ef465(0x34e)});}[_0x4fa2a5(0x16f)](){const _0x2d42bb=_0x4fa2a5;this[_0x2d42bb(0x3c9)][_0x2d42bb(0x28e)](new _0x6a2ac6[(_0x2d42bb(0x37a))](this[_0x2d42bb(0x210)])['id'],!0x1);}};_0x7d595b=_0x13514e([_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['IPermissionService'])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0xa,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['LocaleService'])),_0x374c65(0xb,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x7d595b);let _0x5a97ff=class extends _0xfca92{constructor(_0x49191b,_0xd097c,_0x471f6d,_0x20c9c0,_0x466b9f,_0x58513b,_0x5896ac,_0xd2b46c,_0x3fecbf,_0x973ddb){super(_0x49191b,_0xd097c,_0x471f6d,_0x20c9c0,_0x466b9f,_0xd2b46c,_0x3fecbf,_0x5896ac,_0x973ddb),this['_injector']=_0x58513b,_0x5aacdf(this,'status','offline');}[_0x4fa2a5(0x407)](_0xeabb13){const _0x3ac63b=_0x4fa2a5;return this[_0x3ac63b(0x2e1)]['push'](_0xeabb13),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x446445){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x4fa2a5(0xb1)](){const _0x353c34=_0x4fa2a5;throw Error(_0x353c34(0x223));}[_0x4fa2a5(0x18d)](){const _0x523e3c=_0x4fa2a5;throw Error(_0x523e3c(0xf2));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){return this;}['toggleOnline'](){const _0x48829e=_0x4fa2a5;let {_injector:_0x4ddb64,_pendingMutations:_0x410785,_awaitingChangeset:_0x5ecd21,unitID:_0x55afc3,_handler:_0x3d0fb3,type:_0x195ea6}=this,_0x2ba566=_0x2acb52(_0x4ddb64,_0x55afc3,_0x195ea6,_0x5ecd21,_0x410785,_0x3d0fb3);return _0x2ba566 instanceof _0x2845dd?_0x2ba566[_0x48829e(0x39a)]():(_0x2ba566 instanceof _0x16395e||_0x2ba566 instanceof _0x42f6fe)&&_0x2ba566['resend'](),_0x2ba566;}[_0x4fa2a5(0x3e0)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x5a97ff=_0x13514e([_0x374c65(0x5,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0x9,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x5a97ff);let _0x1ba45e=class extends _0xfca92{constructor(_0x47f7bb,_0x42ae03,_0x204b1,_0x40c8f7,_0x2ccc45,_0x39da7d,_0xec1a0e,_0x124930,_0x1311d3,_0x335a7,_0x2b99b9,_0x462013,_0x54325f,_0x1fbc8a){const _0x1d62c2=_0x4fa2a5;super(_0x47f7bb,_0x42ae03,_0x204b1,_0x40c8f7,_0xec1a0e,_0x2b99b9,_0x462013,_0x1311d3,_0x1fbc8a),this[_0x1d62c2(0x1c8)]=_0x2ccc45,this['_queuedRemoteChangesets']=_0x39da7d,this['_injector']=_0x124930,this[_0x1d62c2(0x314)]=_0x335a7,this[_0x1d62c2(0x324)]=_0x54325f,this[_0x1d62c2(0x405)]=_0x1fbc8a,_0x5aacdf(this,_0x1d62c2(0x1e8),_0x1d62c2(0x248));}['onMissedChangesetFetched'](_0x371bf1){const _0x2351de=_0x4fa2a5;try{if(this[_0x2351de(0x2c1)](_0x371bf1)[_0x2351de(0x1e7)])throw Error(_0x2351de(0x352));if(this[_0x2351de(0x2c1)]([...this['_queuedRemoteChangesets']][_0x2351de(0x242)]((_0x185032,_0x96cb3e)=>_0x185032[_0x2351de(0x3bf)]-_0x96cb3e['revision']))[_0x2351de(0x1e7)])return this[_0x2351de(0x273)]=[],this[_0x2351de(0xc0)](),this[_0x2351de(0x384)][_0x2351de(0xea)]({'from':this[_0x2351de(0x28c)](),'to':0x0}),this;let _0x2ff04c=this[_0x2351de(0x2fe)],_0x20c899=this[_0x2351de(0x2e1)],_0x101f78;if(_0x2ff04c&&_0x20c899['length']!==0x0)_0x101f78=this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x16395e,this[_0x2351de(0x210)],this['type'],_0x2ff04c,_0x20c899,this[_0x2351de(0x384)],void 0x0);else{if(_0x2ff04c&&_0x20c899['length']===0x0)_0x2ff04c[_0x2351de(0x3a5)]=this[_0x2351de(0x28c)](),_0x101f78=this[_0x2351de(0x40f)]['createInstance'](_0x42f6fe,this['unitID'],this[_0x2351de(0x3c6)],_0x2ff04c,this[_0x2351de(0x384)]);else{if(_0x20c899[_0x2351de(0x208)]!==0x0){let _0x48a36f=this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x2845dd,this['unitID'],this[_0x2351de(0x3c6)],_0x20c899,this[_0x2351de(0x384)]);_0x48a36f[_0x2351de(0x39a)](),_0x101f78=_0x48a36f;}else _0x101f78=this['_injector'][_0x2351de(0x11d)](_0x4f3cea,this[_0x2351de(0x210)],this[_0x2351de(0x3c6)],this['_handler']);}}return _0x101f78[_0x2351de(0xc0)](),_0x101f78;}catch(_0x4797c1){return this['_logService'][_0x2351de(0x187)](_0x2351de(0x15a),_0x2351de(0x16c),_0x4797c1),this[_0x2351de(0x40f)][_0x2351de(0x11d)](_0x7d595b,this['unitID'],this['type'],this[_0x2351de(0x2fe)],this[_0x2351de(0x2e1)],this[_0x2351de(0x384)],!0x1);}}[_0x4fa2a5(0x2c1)](_0x5b7078){const _0x3724c7=_0x4fa2a5;this[_0x3724c7(0x26b)]();for(let _0x3f3a7f=0x0;_0x3f3a7f<_0x5b7078[_0x3724c7(0x208)];_0x3f3a7f++){let _0xe2a1b5=_0x5b7078[_0x3f3a7f],_0x428da4=this['_getCurrentRevision']();if(!(_0xe2a1b5[_0x3724c7(0x3bf)]<=_0x428da4)){if(_0xe2a1b5[_0x3724c7(0x3bf)]>_0x428da4+0x1)return{'missingChangesets':!0x0};if(this[_0x3724c7(0x191)](_0xe2a1b5)){this['_acknowledgeAwaiting']();continue;}this[_0x3724c7(0x292)](_0xe2a1b5),this[_0x3724c7(0x26b)]();}}return{'missingChangesets':!0x1};}[_0x4fa2a5(0x292)](_0x4c2022){const _0x168a70=_0x4fa2a5;let _0x3885f1=_0x4c2022,_0x330534=this[_0x168a70(0x2fe)];if(_0x330534){let _0x275f2f=this['_transformService'][_0x168a70(0x142)]([_0x4c2022],[_0x330534],!0x1);if(!(0x0,_0x3a5734[_0x168a70(0x153)])(_0x275f2f))throw _0x275f2f[_0x168a70(0x187)];_0x3885f1=_0x275f2f[_0x168a70(0x3ab)][0x0],_0x330534=_0x275f2f[_0x168a70(0x2be)][0x0];}let _0x49154f=this[_0x168a70(0x2e1)];if(_0x49154f[_0x168a70(0x208)]){let _0x32bd43=this[_0x168a70(0x324)]['transformMutationsWithChangeset'](_0x3885f1,_0x49154f);if(!(0x0,_0x3a5734[_0x168a70(0xe3)])(_0x32bd43))throw _0x32bd43[_0x168a70(0x187)];_0x3885f1=_0x32bd43['c1Prime'],_0x49154f=_0x32bd43['m2Prime'];}this[_0x168a70(0x19a)](_0x3885f1),_0x330534&&(_0x330534[_0x168a70(0x3a5)]=this[_0x168a70(0x28c)]()),this[_0x168a70(0x2fe)]=_0x330534,this[_0x168a70(0x2e1)]=_0x49154f;}[_0x4fa2a5(0x26b)](){const _0x4d0e30=_0x4fa2a5;if(!this[_0x4d0e30(0x2fe)]||this[_0x4d0e30(0x1c8)]==null)return;let _0x52340d=this[_0x4d0e30(0x28c)]();if(this[_0x4d0e30(0x1c8)]<=_0x52340d)throw Error(_0x4d0e30(0x1db)+this['_acknowledgedAwaitingRevision']+'.');this[_0x4d0e30(0x1c8)]===_0x52340d+0x1&&this[_0x4d0e30(0xc3)]();}['_acknowledgeAwaiting'](){const _0x594a56=_0x4fa2a5;this[_0x594a56(0xb5)](),this[_0x594a56(0x2fe)]=null,this['_acknowledgedAwaitingRevision']=null;}[_0x4fa2a5(0x191)](_0x483e92){const _0x27502=_0x4fa2a5;let _0x6da977=this[_0x27502(0x2fe)];return!_0x6da977||!_0x6da977['sid']||_0x6da977['reqId']===null||_0x6da977['reqId']===void 0x0?!0x1:_0x483e92['unitID']===_0x6da977[_0x27502(0x210)]&&_0x483e92['sid']===_0x6da977[_0x27502(0x2d4)]&&_0x483e92[_0x27502(0x1f2)]===_0x6da977[_0x27502(0x1f2)];}[_0x4fa2a5(0x3e0)](){const _0x28cafb=_0x4fa2a5;throw Error(_0x28cafb(0x1f6));}[_0x4fa2a5(0x407)](_0x173702){const _0x14d387=_0x4fa2a5;return this[_0x14d387(0x2e1)][_0x14d387(0x227)](_0x173702),this;}[_0x4fa2a5(0x24a)](_0xa6b8ce){const _0x41b0e4=_0x4fa2a5;return this[_0x41b0e4(0x273)][_0x41b0e4(0x227)](_0xa6b8ce),this;}[_0x4fa2a5(0xb1)](_0x109c36){const _0x4ef822=_0x4fa2a5;if(this[_0x4ef822(0x2fe)]){let _0x1190ee=this['_getCurrentRevision']();return _0x109c36['revision']<=_0x1190ee||(_0x1190ee+0x1===_0x109c36[_0x4ef822(0x3bf)]?(this[_0x4ef822(0xb5)](),this[_0x4ef822(0x2fe)]=null,this[_0x4ef822(0x1c8)]=null):this[_0x4ef822(0x1c8)]=_0x109c36[_0x4ef822(0x3bf)]),this;}if(_0x109c36['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x4ef822(0x2ae));}[_0x4fa2a5(0x18d)](_0x135069){const _0x16fb60=_0x4fa2a5;return this[_0x16fb60(0xae)](!!(_0x135069!=null&&_0x135069[_0x16fb60(0x30b)]));}[_0x4fa2a5(0xdd)](){return this;}[_0x4fa2a5(0x299)](){const _0x392819=_0x4fa2a5;return this[_0x392819(0x40f)][_0x392819(0x11d)](_0x5a97ff,this[_0x392819(0x210)],this[_0x392819(0x3c6)],this['_awaitingChangeset'],this[_0x392819(0x2e1)],this[_0x392819(0x384)]);}[_0x4fa2a5(0xa6)](){return this;}[_0x4fa2a5(0xae)](_0x58daba){const _0x355db3=_0x4fa2a5;return this['_injector'][_0x355db3(0x11d)](_0x7d595b,this[_0x355db3(0x210)],this[_0x355db3(0x3c6)],this[_0x355db3(0x2fe)],this['_pendingMutations'],this['_handler'],_0x58daba);}};_0x1ba45e=_0x13514e([_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x8,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x380)]),_0x374c65(0xc,_0x3a5734['ITransformService']),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1ba45e);function _0x2acb52(_0x1f5b4c,_0x40ac0c,_0x560a9c,_0x20080d,_0x4db5fa,_0x2f3f96){const _0x18a051=_0x4fa2a5;return _0x20080d&&_0x4db5fa[_0x18a051(0x208)]?_0x1f5b4c[_0x18a051(0x11d)](_0x16395e,_0x40ac0c,_0x560a9c,_0x20080d,_0x4db5fa,_0x2f3f96,void 0x0):_0x20080d?_0x1f5b4c[_0x18a051(0x11d)](_0x42f6fe,_0x40ac0c,_0x560a9c,_0x20080d,_0x2f3f96):_0x4db5fa['length']?_0x1f5b4c[_0x18a051(0x11d)](_0x2845dd,_0x40ac0c,_0x560a9c,_0x4db5fa,_0x2f3f96):_0x1f5b4c['createInstance'](_0x4f3cea,_0x40ac0c,_0x560a9c,_0x2f3f96);}let _0x18d3ff=class extends _0x433f65[_0x4fa2a5(0x24b)]{get[_0x4fa2a5(0x1be)](){const _0x9f7812=_0x4fa2a5;return this[_0x9f7812(0xda)];}constructor(_0x5e91c8,_0x3fb652,_0x31802b,_0x48af4b,_0x2b57b4,_0x295ed8,_0x12d838,_0x4011da,_0x3a1638,_0x5420a8,_0x2efb3f,_0x108ecf,_0x1ecc3c,_0x1c76bb){const _0x4a5792=_0x4fa2a5;super(),this[_0x4a5792(0x210)]=_0x5e91c8,this[_0x4a5792(0x277)]=_0x3fb652,this[_0x4a5792(0x1ca)]=_0x31802b,this[_0x4a5792(0x40f)]=_0x48af4b,this['_compressMutationService']=_0x2b57b4,this['_localeService']=_0x295ed8,this['_revisionService']=_0x12d838,this[_0x4a5792(0x258)]=_0x4011da,this['_univerInstanceService']=_0x3a1638,this[_0x4a5792(0x314)]=_0x5420a8,this[_0x4a5792(0x1ee)]=_0x2efb3f,this['_permissionService']=_0x108ecf,this[_0x4a5792(0x3c0)]=_0x1ecc3c,this[_0x4a5792(0x304)]=_0x1c76bb,_0x5aacdf(this,_0x4a5792(0x276),new _0x450705[(_0x4a5792(0x1f8))](null)),_0x5aacdf(this,'state$',this[_0x4a5792(0x276)][_0x4a5792(0x343)]()),_0x5aacdf(this,_0x4a5792(0xda),void 0x0),_0x5aacdf(this,'_collaborationPaused',!0x1),_0x5aacdf(this,_0x4a5792(0x106),''),_0x5aacdf(this,_0x4a5792(0x2a8),0x0),_0x5aacdf(this,_0x4a5792(0x1ed),this[_0x4a5792(0x340)]['pipe']((0x0,_0x450705[_0x4a5792(0x224)])(_0x3d81f7=>_0x3d81f7?_0x3d81f7[_0x4a5792(0x1e8)]:'offline'),(0x0,_0x450705[_0x4a5792(0xd4)])({'bufferSize':0x1,'refCount':!0x0}))),_0x5aacdf(this,_0x4a5792(0x222),!0x1),_0x5aacdf(this,_0x4a5792(0x2fc),[]);}async[_0x4fa2a5(0x2ef)](){const _0x49ed79=_0x4fa2a5;if(this['state'])throw Error(_0x49ed79(0x318));await this[_0x49ed79(0x29b)]();}[_0x4fa2a5(0x323)](){return this['_collaborationPaused']=!0x0,(0x0,_0x433f65['toDisposable'])(()=>{const _0x58df83=_0x5846;this[_0x58df83(0x1bd)]=!0x1,this[_0x58df83(0x3df)]();});}[_0x4fa2a5(0x336)](_0x482c2f){const _0x53a8d5=_0x4fa2a5;this[_0x53a8d5(0x35d)](_0x482c2f);}[_0x4fa2a5(0x3d6)](_0x467bf5){const _0x2e72a2=_0x4fa2a5;this[_0x2e72a2(0xda)]=_0x467bf5,this[_0x2e72a2(0x276)]['next'](_0x467bf5);}async[_0x4fa2a5(0x29b)](){const _0x59e2ff=_0x4fa2a5;if(this[_0x59e2ff(0x3d6)](await this[_0x59e2ff(0xb2)]()),this[_0x59e2ff(0x3c0)]){var _0xa395d0;(_0xa395d0=this[_0x59e2ff(0x3c0)])==null||_0xa395d0[_0x59e2ff(0x216)](this[_0x59e2ff(0x210)]),this[_0x59e2ff(0x413)](this[_0x59e2ff(0x3c0)][_0x59e2ff(0x330)](this['unitID'])[_0x59e2ff(0x252)](_0x3d2553=>{const _0x5c0f44=_0x59e2ff;this[_0x5c0f44(0x314)][_0x5c0f44(0x23b)]('[CollaborationEntity]',_0x5c0f44(0x2c6),_0x3d2553),_0x3d2553===0x1?(this['_eventService'][_0x5c0f44(0x2cf)]({'id':_0x5c0f44(0x3f0)}),this[_0x5c0f44(0x3c9)]['updatePermissionPoint'](new _0x6a2ac6['WorkbookEditablePermission'](this[_0x5c0f44(0x210)])['id'],!0x1),this[_0x5c0f44(0x3c9)][_0x5c0f44(0x2b0)](!0x1)):(this[_0x5c0f44(0x3c9)][_0x5c0f44(0x28e)](new _0x6a2ac6[(_0x5c0f44(0x37a))](this[_0x5c0f44(0x210)])['id'],!0x0),this[_0x5c0f44(0x3c9)][_0x5c0f44(0x2b0)](!0x0));}));}let _0x1f915c=!0x1;return this[_0x59e2ff(0x413)](this[_0x59e2ff(0x277)][_0x59e2ff(0x199)]['subscribe'](_0x232a78=>{const _0x227c94=_0x59e2ff;_0x232a78===0x3?this[_0x227c94(0x1e4)](_0x1f915c):_0x232a78===0x2&&(_0x1f915c=!0x0,this[_0x227c94(0x3ac)]());})),this['disposeWithMe'](this[_0x59e2ff(0x277)][_0x59e2ff(0x1eb)][_0x59e2ff(0x252)](_0x107add=>{const _0x4be6c2=_0x59e2ff;try{switch(_0x107add[_0x4be6c2(0x130)]){case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x24f)]:this[_0x4be6c2(0x368)]((0x0,_0x3a5734['parseProtocolChangeset'])(_0x107add[_0x4be6c2(0x2c7)]));break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x370)]:this[_0x4be6c2(0x30c)](_0x107add['data']);break;case _0x3a5734['CollaborationEvent'][_0x4be6c2(0x373)]:this[_0x4be6c2(0x144)]();break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x20b)]:this['_onRemoteRetry'](_0x107add['data']);break;case _0x3a5734['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x4be6c2(0x1c6)](_0x107add['data'][_0x4be6c2(0x386)]['map'](_0x508fec=>(0x0,_0x3a5734['parseProtocolChangeset'])(_0x508fec)));break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x19e)]:this[_0x4be6c2(0x144)]({'isPermissionRej':!0x0});break;case _0x3a5734[_0x4be6c2(0xec)][_0x4be6c2(0x406)]:}}catch(_0x34f17a){throw console[_0x4be6c2(0x187)](_0x4be6c2(0x1ce),_0x34f17a),_0x34f17a;}})),this[_0x59e2ff(0xda)];}[_0x4fa2a5(0xc1)](){const _0x49d109=_0x4fa2a5;this[_0x49d109(0x222)]=!0x1;}[_0x4fa2a5(0x1b8)](){const _0x267dd3=_0x4fa2a5;if(this[_0x267dd3(0x222)])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[_0x267dd3(0x222)]=!0x0;}[_0x4fa2a5(0x35d)](_0x525b05){const _0x447f48=_0x4fa2a5;this[_0x447f48(0x1b8)](),this['_updateState'](this[_0x447f48(0xda)][_0x447f48(0x407)](_0x525b05)),this[_0x447f48(0xc1)]();}[_0x4fa2a5(0x368)](_0x209f79){const _0x5f0b8d=_0x4fa2a5;if(!(_0x209f79[_0x5f0b8d(0x3bf)]<=this['_revisionService'][_0x5f0b8d(0x36f)](this['unitID']))){if(this[_0x5f0b8d(0x1bd)]){this[_0x5f0b8d(0x2fc)][_0x5f0b8d(0x227)](_0x209f79);return;}this[_0x5f0b8d(0x2dc)](_0x209f79);}}[_0x4fa2a5(0x3df)](){const _0xd903b0=_0x4fa2a5;this[_0xd903b0(0x2fc)][_0xd903b0(0x1d2)](_0x2fe6dc=>this[_0xd903b0(0x2dc)](_0x2fe6dc)),this[_0xd903b0(0x2fc)]=[];}[_0x4fa2a5(0x2dc)](_0x1886c7){const _0x5b6a2a=_0x4fa2a5;let _0x1a8cff=this[_0x5b6a2a(0x396)][_0x5b6a2a(0x2c4)][_0x5b6a2a(0x285)](this[_0x5b6a2a(0x396)]['interceptor'][_0x5b6a2a(0x193)]()[_0x5b6a2a(0x198)])(_0x1886c7[_0x5b6a2a(0x2d5)],null)||_0x1886c7[_0x5b6a2a(0x2d5)],_0x36cf13={..._0x1886c7,'mutations':_0x1a8cff};this['_lockTransition'](),this[_0x5b6a2a(0x3d6)](this[_0x5b6a2a(0xda)][_0x5b6a2a(0x24a)](_0x36cf13)),this[_0x5b6a2a(0xc1)]();}[_0x4fa2a5(0x30c)](_0x18778d){const _0xf24840=_0x4fa2a5;this['_lockTransition'](),this['_updateState'](this[_0xf24840(0xda)][_0xf24840(0xb1)](_0x18778d)),this[_0xf24840(0xc1)]();}[_0x4fa2a5(0x144)](_0x495e4b){const _0x42dcf2=_0x4fa2a5;this[_0x42dcf2(0x1b8)](),this[_0x42dcf2(0x3d6)](this[_0x42dcf2(0xda)][_0x42dcf2(0x18d)](_0x495e4b)),this['_unlockTransition']();}[_0x4fa2a5(0x288)](_0x37d364){const _0x5b6493=_0x4fa2a5;this[_0x5b6493(0x1b8)](),this[_0x5b6493(0x3d6)](this[_0x5b6493(0xda)][_0x5b6493(0xdd)](_0x37d364)),this[_0x5b6493(0xc1)]();}[_0x4fa2a5(0x1c6)](_0x21d156){const _0x347696=_0x4fa2a5;if(!(this[_0x347696(0xda)]instanceof _0x1ba45e))throw TypeError(_0x347696(0x11a));let _0x36d653=_0x21d156[_0x347696(0x224)](_0x27ccf8=>{const _0x1932a6=_0x347696;let _0x34b58c=this['_compressMutationService'][_0x1932a6(0x2c4)][_0x1932a6(0x285)](this[_0x1932a6(0x396)][_0x1932a6(0x2c4)]['getInterceptPoints']()[_0x1932a6(0x198)])(_0x27ccf8[_0x1932a6(0x2d5)],null)||_0x27ccf8[_0x1932a6(0x2d5)];return{..._0x27ccf8,'mutations':_0x34b58c};});this[_0x347696(0x1b8)](),this[_0x347696(0x3d6)](this[_0x347696(0xda)][_0x347696(0x188)](_0x36d653)),this[_0x347696(0xc1)]();}[_0x4fa2a5(0x3ac)](){const _0x41c9be=_0x4fa2a5;this[_0x41c9be(0x1b8)](),this[_0x41c9be(0x3d6)](this[_0x41c9be(0xda)][_0x41c9be(0x299)]()),this[_0x41c9be(0xc1)]();}['_toggleOnline'](_0xe46577=!0x1){const _0xc041a4=_0x4fa2a5;this['_lockTransition'](),this[_0xc041a4(0x3d6)](this[_0xc041a4(0xda)][_0xc041a4(0xa6)]()),this[_0xc041a4(0xc1)]();let _0x24d116=this[_0xc041a4(0xda)];_0xe46577&&_0x24d116 instanceof _0x4f3cea&&(this[_0xc041a4(0x1b8)](),this[_0xc041a4(0x3d6)](_0x24d116[_0xc041a4(0x1ab)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x48c9d6=>{const _0x3a0a17=_0x5846;this[_0x3a0a17(0x277)][_0x3a0a17(0x199)][_0x3a0a17(0x192)]((0x0,_0x450705['take'])(0x1))[_0x3a0a17(0x252)](async _0x59a15c=>{const _0x928b4d=_0x3a0a17;_0x48c9d6(await this[_0x928b4d(0xe0)](_0x59a15c===0x3));});});}[_0x4fa2a5(0x1b3)](){let _0x460ee5=this['unitID'];return{'onStateChange':(_0x57f8dc,_0x274e55)=>{const _0x30eee7=_0x5846;if(_0x57f8dc!==this[_0x30eee7(0xda)])throw Error(_0x30eee7(0x2ca)+_0x57f8dc[_0x30eee7(0x1e8)]+'\x0aAfter:\x20'+_0x274e55[_0x30eee7(0x1e8)]+'\x0aCurrent:\x20'+this[_0x30eee7(0xda)][_0x30eee7(0x1e8)]);this[_0x30eee7(0x3d6)](_0x274e55);},'onSendChangeset':_0x42d62c=>{const _0x197a26=_0x5846;_0x42d62c[_0x197a26(0x2d4)]||(_0x42d62c[_0x197a26(0x2d4)]=this[_0x197a26(0x106)],_0x42d62c['reqId']=++this[_0x197a26(0x2a8)]);let _0x278c72={'eventID':_0x3a5734[_0x197a26(0xec)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x42d62c[_0x197a26(0x210)],'unitType':this[_0x197a26(0x1ca)],'changeset':_0x42d62c,'memberID':this[_0x197a26(0x277)]['getMemberID']()}};this['session'][_0x197a26(0x402)](_0x278c72,this[_0x197a26(0x210)]);},'onMissingChangesets':({from:_0x2cf068,to:_0x31f80e})=>{const _0xd97d0e=_0x5846;this[_0xd97d0e(0x314)][_0xd97d0e(0x23b)](_0xd97d0e(0x20c),'fetching\x20missing\x20changesets\x20from\x20'+_0x2cf068+_0xd97d0e(0x2b2)+_0x31f80e);let _0x8e654f={'eventID':_0x3a5734['CollaborationEvent'][_0xd97d0e(0x1e1)],'data':{'unitID':_0x460ee5,'unitType':this[_0xd97d0e(0x1ca)],'from':_0x2cf068,'to':_0x31f80e}};this[_0xd97d0e(0x277)]['send'](_0x8e654f,this['unitID']);}};}async[_0x4fa2a5(0xe0)](_0x1ae4e5){const _0x30c612=_0x4fa2a5;var _0x4ba55d;let _0x1e11ef=await((_0x4ba55d=this[_0x30c612(0x304)])==null?void 0x0:_0x4ba55d['loadOfflineData'](this[_0x30c612(0x210)])),_0x37b514=(_0x1e11ef==null?void 0x0:_0x1e11ef[_0x30c612(0x2d5)])??[],_0x4c4985=(_0x1e11ef==null?void 0x0:_0x1e11ef['awaitingChangeset'])??null,_0x36e0b1=!!(_0x4c4985!=null&&_0x4c4985[_0x30c612(0x2d4)])&&!!(_0x4c4985!=null&&_0x4c4985[_0x30c612(0x1f2)]);this[_0x30c612(0x106)]=_0x36e0b1?_0x4c4985[_0x30c612(0x2d4)]:(0x0,_0x3a5734[_0x30c612(0x257)])(),this[_0x30c612(0x2a8)]=_0x36e0b1?_0x4c4985[_0x30c612(0x1f2)]:0x0;let _0x5a52cf=this[_0x30c612(0x210)];try{this[_0x30c612(0x1c7)](_0x4c4985,_0x37b514);}catch(_0x134aa2){this[_0x30c612(0x314)][_0x30c612(0x187)](_0x134aa2);}let _0x406027=this[_0x30c612(0x1b3)]();if(_0x1ae4e5){let _0x4db187=_0x2acb52(this['_injector'],_0x5a52cf,this['_type'],_0x4c4985,_0x37b514,_0x406027);return _0x4db187 instanceof _0x2845dd?_0x4db187['_schedule']():(_0x4db187 instanceof _0x16395e||_0x4db187 instanceof _0x42f6fe)&&_0x4db187[_0x30c612(0x3e0)](),_0x4db187;}return this[_0x30c612(0x40f)][_0x30c612(0x11d)](_0x5a97ff,_0x5a52cf,this[_0x30c612(0x1ca)],_0x4c4985,_0x37b514,_0x406027);}[_0x4fa2a5(0x1c7)](_0xa9e19d,_0x347dac){const _0x17ba9e=_0x4fa2a5;var _0x434c89,_0x320481;let _0x346156=this[_0x17ba9e(0x396)][_0x17ba9e(0x2c4)]['fetchThroughInterceptors'](this[_0x17ba9e(0x396)][_0x17ba9e(0x2c4)]['getInterceptPoints']()[_0x17ba9e(0x198)]);(_0x434c89=_0x346156((_0xa9e19d==null?void 0x0:_0xa9e19d[_0x17ba9e(0x2d5)])||[],null))==null||_0x434c89[_0x17ba9e(0x1d2)](_0x2a53e5=>this[_0x17ba9e(0x1ee)][_0x17ba9e(0x2bd)](_0x2a53e5['id'],_0x2a53e5[_0x17ba9e(0x206)])),(_0x320481=_0x346156(_0x347dac||[],null))==null||_0x320481['forEach'](_0x5ef6b3=>this[_0x17ba9e(0x1ee)][_0x17ba9e(0x2bd)](_0x5ef6b3['id'],_0x5ef6b3[_0x17ba9e(0x206)]));}};_0x18d3ff=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x18d3ff);let _0x31d725=class extends _0x18d3ff{constructor(_0x54a0b2,_0x16cb1c,_0x3741ab,_0x2950c6,_0x28248f,_0x11f2af,_0x407b93,_0x43c6bc,_0x155a6f,_0x19e2af,_0x3a7bcc,_0x3afcb3,_0x2b8ca3,_0x17faf5,_0x8a8c6d){const _0xac01a5=_0x4fa2a5;super(_0x54a0b2,_0x3741ab,_0x16cb1c,_0x2950c6,_0x28248f,_0x11f2af,_0x407b93,_0x43c6bc,_0x155a6f,_0x19e2af,_0x3a7bcc,_0x3afcb3,_0x17faf5,_0x8a8c6d),this['unitID']=_0x54a0b2,this[_0xac01a5(0x3c6)]=_0x16cb1c,this[_0xac01a5(0x38a)]=_0x2b8ca3,_0x5aacdf(this,'_handlerCallback',null);}[_0x4fa2a5(0x264)](_0x5e7d6c){this['_handlerCallback']=_0x5e7d6c;}[_0x4fa2a5(0x3b4)](){const _0x37b6a4=_0x4fa2a5;this[_0x37b6a4(0x3aa)]=null,super[_0x37b6a4(0x3b4)]();}[_0x4fa2a5(0x1b3)](){const _0x11f51a=_0x4fa2a5;let _0x38e045=super[_0x11f51a(0x1b3)]();return _0x38e045[_0x11f51a(0x2ac)]=_0x409ce1=>{const _0x46298d=_0x11f51a;var _0x3cf94c,_0x3380a1;return(_0x3cf94c=this['_handlerCallback'])==null||(_0x3380a1=_0x3cf94c['onTransformIME'])==null?void 0x0:_0x3380a1[_0x46298d(0x2e5)](_0x3cf94c,_0x409ce1);},_0x38e045[_0x11f51a(0x19b)]=_0x44ca74=>{const _0x661a2c=_0x11f51a;var _0x29061c,_0x47ab5b;return(_0x29061c=this[_0x661a2c(0x3aa)])==null||(_0x47ab5b=_0x29061c[_0x661a2c(0x19b)])==null?void 0x0:_0x47ab5b['call'](_0x29061c,_0x44ca74);},_0x38e045[_0x11f51a(0xba)]=_0x506fdc=>{const _0x1065c1=_0x11f51a;var _0x3bd9a0,_0x78d32d;return((_0x3bd9a0=this[_0x1065c1(0x3aa)])==null||(_0x78d32d=_0x3bd9a0[_0x1065c1(0xba)])==null?void 0x0:_0x78d32d['call'](_0x3bd9a0,_0x506fdc))??null;},_0x38e045[_0x11f51a(0xfa)]=_0x9af00d=>{const _0x140cb9=_0x11f51a;var _0x2b3aad,_0x42f299;return(_0x2b3aad=this[_0x140cb9(0x3aa)])==null||(_0x42f299=_0x2b3aad[_0x140cb9(0xfa)])==null?void 0x0:_0x42f299['call'](_0x2b3aad,_0x9af00d);},_0x38e045[_0x11f51a(0x256)]=_0xa60236=>{const _0x3872ff=_0x11f51a;var _0x316031,_0x74268f;return(_0x316031=this[_0x3872ff(0x3aa)])==null||(_0x74268f=_0x316031[_0x3872ff(0x256)])==null?void 0x0:_0x74268f[_0x3872ff(0x2e5)](_0x316031,_0xa60236);},_0x38e045[_0x11f51a(0x1af)]=_0x50de6f=>{const _0x558ab3=_0x11f51a;var _0x457f78,_0xba37d8;return((_0x457f78=this[_0x558ab3(0x3aa)])==null||(_0xba37d8=_0x457f78[_0x558ab3(0x1af)])==null?void 0x0:_0xba37d8['call'](_0x457f78,_0x50de6f))??_0x50de6f;},_0x38e045['onTransformRemoteChangesetByStateCache']=_0x2741ea=>{const _0x305d5e=_0x11f51a;var _0x115a69,_0x3c9173;return((_0x115a69=this[_0x305d5e(0x3aa)])==null||(_0x3c9173=_0x115a69[_0x305d5e(0x116)])==null?void 0x0:_0x3c9173[_0x305d5e(0x2e5)](_0x115a69,_0x2741ea))??_0x2741ea;},_0x38e045;}async[_0x4fa2a5(0x29b)](){const _0x33f79e=_0x4fa2a5;let _0x16ed21=await super[_0x33f79e(0x29b)]();return this[_0x33f79e(0x413)](this[_0x33f79e(0x38a)][_0x33f79e(0x147)]['subscribe'](_0x57b1f4=>{const _0x291739=_0x33f79e;if(_0x57b1f4==null||_0x57b1f4[_0x291739(0x229)]!==this[_0x291739(0x210)])return;let {commandId:_0x5c29b8,redoState:_0xa04936,unitId:_0x470bb7}=_0x57b1f4,_0x5a27df={'id':_0x5c29b8,'type':_0x433f65[_0x291739(0x390)]['MUTATION'],'params':{'unitId':_0x470bb7,'actions':_0xa04936[_0x291739(0x30a)],'textRanges':null}};this[_0x291739(0x35d)](_0x5a27df);})),this[_0x33f79e(0x413)](this[_0x33f79e(0x1ee)][_0x33f79e(0x117)]((_0x197b4f,_0x14b81b)=>{const _0x328129=_0x33f79e;if(_0x197b4f['type']!==_0x433f65[_0x328129(0x390)][_0x328129(0x157)]||_0x14b81b!=null&&_0x14b81b[_0x328129(0x416)]||_0x14b81b!=null&&_0x14b81b[_0x328129(0x2fb)]||_0x197b4f['id']===_0xaa3595[_0x328129(0x184)]['id'])return;let _0x5d7eab=_0x197b4f['params'];if((_0x5d7eab==null?void 0x0:_0x5d7eab[_0x328129(0x229)])!==this[_0x328129(0x210)])return;let _0x54cdd3=_0x197b4f,_0x502231=this[_0x328129(0x396)]['interceptor'][_0x328129(0x285)](this[_0x328129(0x396)][_0x328129(0x2c4)]['getInterceptPoints']()[_0x328129(0x376)])([_0x54cdd3],this['_univerInstanceService'])||[_0x54cdd3];this['_onLocalMutation'](_0x502231[0x0]);})),_0x16ed21;}};_0x31d725=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['CompressMutationService'])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65['IUniverInstanceService']),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65['IPermissionService']),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0xaa3595[_0x4fa2a5(0x1fc)])),_0x374c65(0xd,(0x0,_0x433f65['Optional'])(_0x4aaa76)),_0x374c65(0xe,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x31d725);let _0x53717a=class extends _0x18d3ff{constructor(_0x1863fa,_0x4889d5,_0x1ab233,_0x52aad7,_0x4719ee,_0x158d68,_0x243eec,_0x4ec774,_0x25dacf,_0x186740,_0x2f98c6,_0x3c076b,_0x31054a,_0x53e3e5){const _0xec55b0=_0x4fa2a5;super(_0x1863fa,_0x1ab233,_0x4889d5,_0x52aad7,_0x4719ee,_0x158d68,_0x243eec,_0x4ec774,_0x25dacf,_0x186740,_0x2f98c6,_0x3c076b,_0x31054a,_0x53e3e5),this[_0xec55b0(0x210)]=_0x1863fa,this['type']=_0x4889d5;}async['_init'](){const _0x45ffc3=_0x4fa2a5;let _0x5d3c23=await super[_0x45ffc3(0x29b)]();return this[_0x45ffc3(0x413)](this[_0x45ffc3(0x1ee)][_0x45ffc3(0x117)]((_0x53c3cc,_0x16bc48)=>{const _0x54f89c=_0x45ffc3;if(_0x53c3cc[_0x54f89c(0x3c6)]!==_0x433f65['CommandType'][_0x54f89c(0x157)]||_0x16bc48!=null&&_0x16bc48[_0x54f89c(0x416)]||_0x16bc48!=null&&_0x16bc48[_0x54f89c(0x2fb)])return;let _0x5e7229=_0x53c3cc[_0x54f89c(0x206)];if((_0x5e7229==null?void 0x0:_0x5e7229['unitId'])!==this[_0x54f89c(0x210)])return;let _0x29c35a=_0x53c3cc,_0x3066f0=this[_0x54f89c(0x396)][_0x54f89c(0x2c4)][_0x54f89c(0x285)](this[_0x54f89c(0x396)][_0x54f89c(0x2c4)]['getInterceptPoints']()[_0x54f89c(0x376)])([_0x29c35a],this['_univerInstanceService'])||[_0x29c35a];this[_0x54f89c(0x35d)](_0x3066f0[0x0]);})),_0x5d3c23;}};_0x53717a=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734['CompressMutationService'])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x53717a);let _0x89772b=class extends _0x18d3ff{constructor(_0x41af6d,_0x5ab735,_0x508180,_0x3a7afd,_0x154478,_0x30e1b5,_0x4ce192,_0x1e397a,_0x3183f2,_0x4a3246,_0x411eb6,_0x2644ef,_0xe4eab0,_0x3f6573,_0xad4ca9){const _0x11ac25=_0x4fa2a5;super(_0x41af6d,_0x508180,_0x5ab735,_0x3a7afd,_0x154478,_0x30e1b5,_0x4ce192,_0x3183f2,_0x4a3246,_0x411eb6,_0x2644ef,_0xe4eab0,_0x3f6573,_0xad4ca9),this[_0x11ac25(0x210)]=_0x41af6d,this[_0x11ac25(0x3c6)]=_0x5ab735,this['_sheetTransformSelectionsService']=_0x1e397a;}[_0x4fa2a5(0x1b3)](){const _0xd1535e=_0x4fa2a5;let _0x4b7711=super[_0xd1535e(0x1b3)]();return _0x4b7711[_0xd1535e(0xfa)]=_0x1bafb4=>this[_0xd1535e(0xb0)]['transformSelections'](_0x1bafb4),_0x4b7711;}async['_init'](){const _0x326279=_0x4fa2a5;let _0x1190aa=await super[_0x326279(0x29b)]();return this[_0x326279(0x413)](this[_0x326279(0x1ee)]['onMutationExecutedForCollab']((_0x2cc799,_0x5d207c)=>{const _0x15be00=_0x326279;if(_0x2cc799['type']!==_0x433f65[_0x15be00(0x390)]['MUTATION']||_0x5d207c!=null&&_0x5d207c[_0x15be00(0x416)]||_0x5d207c!=null&&_0x5d207c['onlyLocal'])return;let _0x3e65c0=_0x2cc799[_0x15be00(0x206)];if((_0x3e65c0==null?void 0x0:_0x3e65c0['unitId'])!==this[_0x15be00(0x210)])return;let _0x1d5c82=_0x2cc799,_0x385f02=this[_0x15be00(0x396)][_0x15be00(0x2c4)][_0x15be00(0x285)](this[_0x15be00(0x396)]['interceptor'][_0x15be00(0x193)]()[_0x15be00(0x376)])([_0x1d5c82],this[_0x15be00(0x3f3)])||[_0x1d5c82];this[_0x15be00(0x35d)](_0x385f02[0x0]);})),_0x1190aa;}};_0x89772b=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['LocaleService'])),_0x374c65(0x6,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x41b88d)),_0x374c65(0x8,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xc,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xe,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x89772b);let _0x1b8073=class extends _0x18d3ff{constructor(_0x37c8a2,_0x20f801,_0x57d21b,_0x157777,_0x42a487,_0x24e11c,_0x16abbd,_0x386a60,_0x41b885,_0x595782,_0x422cda,_0xf830a8,_0x3bd560,_0x58aba4){const _0x5504b6=_0x4fa2a5;super(_0x37c8a2,_0x57d21b,_0x20f801,_0x157777,_0x42a487,_0x24e11c,_0x16abbd,_0x386a60,_0x41b885,_0x595782,_0x422cda,_0xf830a8,_0x3bd560,_0x58aba4),this['unitID']=_0x37c8a2,this[_0x5504b6(0x3c6)]=_0x20f801;}async[_0x4fa2a5(0x29b)](){const _0x5c0b07=_0x4fa2a5;let _0x3a8a7c=await super[_0x5c0b07(0x29b)]();return this['disposeWithMe'](this[_0x5c0b07(0x1ee)]['onMutationExecutedForCollab']((_0xd067c6,_0x2b6288)=>{const _0x5028e6=_0x5c0b07;if(_0xd067c6['type']!==_0x433f65[_0x5028e6(0x390)][_0x5028e6(0x157)]||_0x2b6288!=null&&_0x2b6288[_0x5028e6(0x416)]||_0x2b6288!=null&&_0x2b6288[_0x5028e6(0x2fb)])return;let _0x2a0284=_0xd067c6['params'];if((_0x2a0284==null?void 0x0:_0x2a0284[_0x5028e6(0x229)])!==this['unitID'])return;let _0x2af4fc=_0xd067c6,_0x10962b=this[_0x5028e6(0x396)][_0x5028e6(0x2c4)][_0x5028e6(0x285)](this[_0x5028e6(0x396)][_0x5028e6(0x2c4)][_0x5028e6(0x193)]()[_0x5028e6(0x376)])([_0x2af4fc],this[_0x5028e6(0x3f3)])||[_0x2af4fc];this[_0x5028e6(0x35d)](_0x10962b[0x0]);})),_0x3a8a7c;}};_0x1b8073=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['Injector'])),_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65['IUniverInstanceService']),_0x374c65(0x9,_0x433f65['ILogService']),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1b8073);let _0x1dc09d=class extends _0x18d3ff{constructor(_0x345549,_0x659245,_0x35e89f,_0x2489e3,_0x372ce4,_0x56c8c1,_0x3e714a,_0x2df6e4,_0x20e71c,_0x2c6feb,_0x315cc0,_0x1ae0ca,_0x4ec982,_0x50462a){const _0x5c50e1=_0x4fa2a5;super(_0x345549,_0x35e89f,_0x659245,_0x2489e3,_0x372ce4,_0x56c8c1,_0x3e714a,_0x2df6e4,_0x20e71c,_0x2c6feb,_0x315cc0,_0x1ae0ca,_0x4ec982,_0x50462a),this[_0x5c50e1(0x210)]=_0x345549,this[_0x5c50e1(0x3c6)]=_0x659245;}async['_init'](){const _0x24bcc9=_0x4fa2a5;let _0x138e75=await super[_0x24bcc9(0x29b)]();return this['disposeWithMe'](this[_0x24bcc9(0x1ee)][_0x24bcc9(0x117)]((_0x76ee44,_0x3271ec)=>{const _0x53ee80=_0x24bcc9;if(_0x76ee44['type']!==_0x433f65[_0x53ee80(0x390)][_0x53ee80(0x157)]||_0x3271ec!=null&&_0x3271ec[_0x53ee80(0x416)]||_0x3271ec!=null&&_0x3271ec[_0x53ee80(0x2fb)])return;let _0x31c6d5=_0x76ee44[_0x53ee80(0x206)];if((_0x31c6d5==null?void 0x0:_0x31c6d5['unitId'])!==this['unitID'])return;let _0x2693fc=_0x76ee44,_0x2bed9e=this[_0x53ee80(0x396)]['interceptor'][_0x53ee80(0x285)](this[_0x53ee80(0x396)][_0x53ee80(0x2c4)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2693fc],this['_univerInstanceService'])||[_0x2693fc];this[_0x53ee80(0x35d)](_0x2bed9e[0x0]);})),_0x138e75;}};_0x1dc09d=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65['Inject'])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65['ILogService']),_0x374c65(0xa,_0x433f65[_0x4fa2a5(0x16d)]),_0x374c65(0xb,_0x433f65['IPermissionService']),_0x374c65(0xc,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x1dc09d);let _0x25572c=class extends _0x18d3ff{constructor(_0x4b0eba,_0x1c5aec,_0x47e610,_0x37bfb8,_0x4d282e,_0x194cb2,_0x123aac,_0xcce933,_0x2957e0,_0x19f6ac,_0xc43478,_0x291735,_0x562722,_0x3ef426){super(_0x4b0eba,_0x47e610,_0x1c5aec,_0x37bfb8,_0x4d282e,_0x194cb2,_0x123aac,_0xcce933,_0x2957e0,_0x19f6ac,_0xc43478,_0x291735,_0x562722,_0x3ef426),this['unitID']=_0x4b0eba,this['type']=_0x1c5aec;}async['_init'](){const _0x3f8781=_0x4fa2a5;let _0x239e44=await super[_0x3f8781(0x29b)]();return this[_0x3f8781(0x413)](this['_commandService']['onMutationExecutedForCollab']((_0x4caafc,_0x1d6851)=>{const _0x543dca=_0x3f8781;if(_0x4caafc['type']!==_0x433f65[_0x543dca(0x390)][_0x543dca(0x157)]||_0x1d6851!=null&&_0x1d6851['fromCollab']||_0x1d6851!=null&&_0x1d6851[_0x543dca(0x2fb)])return;let _0xe952cc=_0x4caafc[_0x543dca(0x206)];if((_0xe952cc==null?void 0x0:_0xe952cc['unitId'])!==this[_0x543dca(0x210)])return;let _0x626fa=_0x4caafc,_0x19731d=this[_0x543dca(0x396)][_0x543dca(0x2c4)]['fetchThroughInterceptors'](this[_0x543dca(0x396)][_0x543dca(0x2c4)][_0x543dca(0x193)]()[_0x543dca(0x376)])([_0x626fa],this[_0x543dca(0x3f3)])||[_0x626fa];this[_0x543dca(0x35d)](_0x19731d[0x0]);})),_0x239e44;}};_0x25572c=_0x13514e([_0x374c65(0x3,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x1da)])),_0x374c65(0x5,(0x0,_0x433f65['Inject'])(_0x433f65[_0x4fa2a5(0x366)])),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0xbc)])),_0x374c65(0x7,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x8,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x9,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0xa,_0x433f65['ICommandService']),_0x374c65(0xb,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0xc,(0x0,_0x433f65['Optional'])(_0x4aaa76)),_0x374c65(0xd,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x25572c);let _0x43e589=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0xd6));function _0x18ff47(_0x1dfa86){const _0x5b6676=_0x4fa2a5;let _0x53170c=_0x1dfa86[_0x5b6676(0x2c7)],_0x3fe055=JSON[_0x5b6676(0x200)](_0x53170c);switch(_0x3fe055[_0x5b6676(0x20a)]){case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x14b)]:case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x215)]:{let _0x43a200=_0x3fe055[_0x5b6676(0x156)];return{..._0x3fe055,'data':_0x43a200,'cmd':_0x3fe055[_0x5b6676(0x20a)]};}case _0x4ed0d4['CombCmd']['JOIN']:{let _0x5cdbc7=_0x3fe055[_0x5b6676(0x1ec)];return{..._0x3fe055,'data':_0x5cdbc7,'cmd':_0x3fe055['cmd']};}case _0x4ed0d4[_0x5b6676(0x35a)][_0x5b6676(0x1f4)]:{let _0x241d1e=_0x3fe055[_0x5b6676(0x244)];switch(_0x241d1e[_0x5b6676(0x130)]){case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x19e)]:var _0x2da991;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x2da991=_0x241d1e['permissionRejEvent'])==null?void 0x0:_0x2da991['cs']},'cmd':_0x3fe055['cmd']};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x370)]:var _0x520034;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x520034=_0x241d1e[_0x5b6676(0xf8)])==null?void 0x0:_0x520034['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0x24f)]:var _0x3c4985;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x3c4985=_0x241d1e[_0x5b6676(0x14d)])==null?void 0x0:_0x3c4985['cs']},'cmd':_0x3fe055['cmd']};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x373)]:var _0x32bedd;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x32bedd=_0x241d1e['csRejEvent'])==null?void 0x0:_0x32bedd['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x20b)]:var _0x58efe7;return{..._0x3fe055,'data':{..._0x241d1e,'data':(_0x58efe7=_0x241d1e[_0x5b6676(0xbf)])==null?void 0x0:_0x58efe7['cs']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x2c5)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e['updateCursorEvent']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0xce)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x14e)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x1d9)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x36e)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_NEW_HOST']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x100)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_FETCH_OPERATIONS']:case _0x3a5734['CollaborationEvent'][_0x5b6676(0xd2)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x3da)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['LIVESHARE_TERMINATE']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x100)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734['CollaborationEvent'][_0x5b6676(0x3f9)]:return{..._0x3fe055,'data':_0x241d1e,'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['COMMENT_UPDATE']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x3d9)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x136)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0xc8)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)]['SHOULD_CLOSE_CONN']:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e[_0x5b6676(0x2f0)]},'cmd':_0x3fe055[_0x5b6676(0x20a)]};case _0x3a5734[_0x5b6676(0xec)][_0x5b6676(0x406)]:return{..._0x3fe055,'data':{..._0x241d1e,'data':_0x241d1e['uniscriptRunEvent']},'cmd':_0x3fe055[_0x5b6676(0x20a)]};default:return _0x3fe055;}}default:return _0x3fe055;}}function _0xe30654(_0x599f4d){const _0x3bd712=_0x4fa2a5;switch(_0x599f4d[_0x3bd712(0x20a)]){case _0x4ed0d4[_0x3bd712(0x35a)][_0x3bd712(0x14b)]:case _0x4ed0d4[_0x3bd712(0x35a)]['HELLO']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)]});case _0x4ed0d4[_0x3bd712(0x35a)][_0x3bd712(0x207)]:{let _0x5ceedb;switch(_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x130)]){case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x2c5)]:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0x2c5)],'updateCursorEvent':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x1d9)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x1d9)],'leaveEvent':_0x599f4d['data'][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['USERS_ENTER']:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0xce)],'joinEvent':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x108)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x108)],'liveShareNewHost':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0xd2)]:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0xd2)],'liveShareOperation':_0x599f4d['data'][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['LIVESHARE_TERMINATE']:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x2a5)],'liveShareTerminate':_0x599f4d[_0x3bd712(0x2c7)][_0x3bd712(0x2c7)]};break;case _0x3a5734[_0x3bd712(0xec)]['LIVESHARE_REQUEST_HOST']:_0x5ceedb={'eventID':_0x3a5734[_0x3bd712(0xec)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x599f4d[_0x3bd712(0x2c7)]['data']};break;case _0x3a5734[_0x3bd712(0xec)][_0x3bd712(0x164)]:_0x5ceedb={'eventID':_0x3a5734['CollaborationEvent'][_0x3bd712(0x164)]};break;default:_0x5ceedb={'eventID':_0x599f4d['data'][_0x3bd712(0x130)]};}return JSON['stringify']({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)],'collaMsg':_0x5ceedb});}case _0x4ed0d4[_0x3bd712(0x35a)]['JOIN']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d[_0x3bd712(0x20a)],'routeKey':_0x599f4d[_0x3bd712(0x231)],'joinReq':_0x599f4d['data']});case _0x4ed0d4[_0x3bd712(0x35a)]['LEAVE']:return JSON[_0x3bd712(0x3be)]({'cmd':_0x599f4d['cmd'],'routeKey':_0x599f4d[_0x3bd712(0x231)],'leaveReq':_0x599f4d[_0x3bd712(0x2c7)]});default:throw Error(_0x3bd712(0xa1));}}let _0x1121da=(0x0,_0x433f65[_0x4fa2a5(0xad)])(_0x4fa2a5(0x1a7));function _0x5c47b5(_0xfc5ac3,_0x179ed1,_0x59e9fb){const _0x322c0c=_0x4fa2a5;return _0xfc5ac3+'/'+_0x179ed1+_0x322c0c(0x394)+_0x59e9fb+_0x322c0c(0x2b7);}let _0x28996e=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x3ccef8,_0x5c662d,_0x4d4b88,_0x2de870,_0x3d92fb){const _0x2c64d8=_0x4fa2a5;super(),this[_0x2c64d8(0x40f)]=_0x3ccef8,this[_0x2c64d8(0x33c)]=_0x5c662d,this[_0x2c64d8(0x1a9)]=_0x4d4b88,this[_0x2c64d8(0x314)]=_0x2de870,this[_0x2c64d8(0x120)]=_0x3d92fb;}[_0x4fa2a5(0x37f)](_0x3f9e2d){const _0x1cf71a=_0x4fa2a5;let _0x453e3e=this[_0x1cf71a(0x40f)]['get'](_0x544d24['ISocketService']);if(!_0x453e3e)throw Error(_0x1cf71a(0x17c));let _0x2bde4d=_0x453e3e[_0x1cf71a(0x21f)](_0x3f9e2d);if(!_0x2bde4d)throw Error(_0x1cf71a(0x2a3));let _0xa787=new _0x433f65[(_0x1cf71a(0x238))](),_0x513475=new _0x450705['Subject']();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d[_0x1cf71a(0x33d)]['subscribe'](_0x3e293a=>_0x513475[_0x1cf71a(0x163)](_0x3e293a))),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x513475[_0x1cf71a(0x410)]()));let _0x2d7a02=new _0x450705[(_0x1cf71a(0x155))]();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d['error$']['subscribe'](_0x3b18c2=>_0x2d7a02[_0x1cf71a(0x163)](_0x3b18c2))),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x2d7a02[_0x1cf71a(0x410)]()));let _0x3d9a5d=new _0x450705['Subject']();_0xa787[_0x1cf71a(0x21b)](_0x2bde4d[_0x1cf71a(0x197)][_0x1cf71a(0x252)](_0x439ae8=>{const _0x161340=_0x1cf71a;let _0x556779=_0x18ff47(_0x439ae8);_0x3d9a5d[_0x161340(0x163)](_0x556779);})),_0xa787[_0x1cf71a(0x21b)]((0x0,_0x433f65[_0x1cf71a(0x228)])(()=>_0x3d9a5d[_0x1cf71a(0x410)]()));let _0x4a0ffb,_0x4385f9=()=>{const _0x47445e=_0x1cf71a;_0x2d7a02['next'](new Event(_0x47445e(0x27f))),_0x513475[_0x47445e(0x163)](new Event(_0x47445e(0x27f))),_0x4a0ffb[_0x47445e(0x17d)]();};return _0x4a0ffb={'memberID':'','close$':_0x513475['asObservable'](),'error$':_0x2d7a02['asObservable'](),'open$':_0x2bde4d[_0x1cf71a(0x2ff)],'message$':_0x3d9a5d['asObservable'](),'send':_0x17ecf8=>{const _0x1acc71=_0x1cf71a;if(_0x17ecf8[_0x1acc71(0x20a)]===_0x4ed0d4[_0x1acc71(0x35a)][_0x1acc71(0x207)]){if(_0x17ecf8['data'][_0x1acc71(0x130)]===_0x3a5734[_0x1acc71(0xec)][_0x1acc71(0x22d)]){this[_0x1acc71(0x335)](_0x4a0ffb,_0x17ecf8[_0x1acc71(0x2c7)])[_0x1acc71(0x1a4)](_0x10c083=>{this['_logService']['error'](_0x10c083),_0x4385f9();});return;}if(_0x17ecf8[_0x1acc71(0x2c7)]['eventID']===_0x3a5734[_0x1acc71(0xec)][_0x1acc71(0x1e1)]){let _0x122850=_0x17ecf8[_0x1acc71(0x2c7)];this['_fetchMissChangesets'](_0x122850)['then'](_0x3b8800=>{const _0x22a9ec=_0x1acc71;_0x3d9a5d['next']({'cmd':_0x4ed0d4[_0x22a9ec(0x35a)][_0x22a9ec(0x1f4)],'code':_0x4ed0d4[_0x22a9ec(0x27a)]['OK'],'routeKey':_0x122850[_0x22a9ec(0x2c7)][_0x22a9ec(0x210)],'routeType':'','data':{'eventID':_0x3a5734[_0x22a9ec(0xec)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3b8800}}});})[_0x1acc71(0x1a4)](_0x9c3400=>{const _0x491d3b=_0x1acc71;this[_0x491d3b(0x314)]['error'](_0x9c3400),_0x4385f9();});return;}}_0x2bde4d[_0x1acc71(0x402)](_0xe30654(_0x17ecf8));},'close':()=>{const _0x4e15e4=_0x1cf71a;_0x2bde4d[_0x4e15e4(0x17d)](),_0xa787[_0x4e15e4(0x3b4)]();}},_0x4a0ffb;}async[_0x4fa2a5(0x335)](_0x35a73b,_0x2db676){const _0x6092b6=_0x4fa2a5;let {unitType:_0x5d4690,unitID:_0x30b878,changeset:_0x369136}=_0x2db676[_0x6092b6(0x2c7)],_0x392a6e={'unitID':_0x30b878,'memberID':_0x35a73b[_0x6092b6(0x38b)],'type':_0x5d4690,'changeset':(0x0,_0x3a5734[_0x6092b6(0x26e)])(_0x369136)},_0x5c63a9=this[_0x6092b6(0x1a9)][_0x6092b6(0xd7)](_0x18fed6),_0x415c5a=_0x5c47b5((_0x5c63a9==null?void 0x0:_0x5c63a9[_0x6092b6(0x378)])??_0x6092b6(0x361),_0x5d4690,_0x30b878);try{await this[_0x6092b6(0x33c)][_0x6092b6(0x201)](_0x415c5a,{'body':_0x392a6e});}catch(_0x1722cf){throw this[_0x6092b6(0x314)][_0x6092b6(0x187)](_0x6092b6(0x21e),'submit\x20changeset\x20error!'),_0x1722cf;}}async[_0x4fa2a5(0x182)](_0x4cf506){const _0x8cc18c=_0x4fa2a5;let {unitID:_0xf7f3af,from:_0x28b707,to:_0x5af570,unitType:_0x10ecbf}=_0x4cf506[_0x8cc18c(0x2c7)];return(await this[_0x8cc18c(0x120)][_0x8cc18c(0x1df)]({'metadata':void 0x0},{'unitID':_0xf7f3af,'type':_0x10ecbf,'from':_0x28b707,'to':_0x5af570}))['changesets'][_0x8cc18c(0x224)](_0x250cec=>((_0x250cec['mutations']===null||_0x250cec[_0x8cc18c(0x2d5)]===void 0x0)&&(_0x250cec[_0x8cc18c(0x2d5)]=[]),_0x250cec));}};_0x28996e=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x433f65['ILogService']),_0x374c65(0x4,_0x3a5734[_0x4fa2a5(0xb8)])],_0x28996e);let _0x2a5cd3=(0x0,_0x433f65[_0x4fa2a5(0xad)])('univer-pro.collaboration-client-adapter-service');function _0x200c62(_0x2b460d={}){const _0x3c5864=_0x4fa2a5;return _0x2b460d[_0x3c5864(0x33f)]?{'resolveUnit':_0x2b460d[_0x3c5864(0x33f)]}:{'resolveUnit':_0xe78064=>({'target':{'unitId':_0xe78064[_0x3c5864(0x229)],'unitType':_0xe78064[_0x3c5864(0x10a)]}})};}function _0x5dcc79(_0x3443a8,_0x50a49f,_0x31fb8){const _0xdb97f7=_0x4fa2a5;let _0x5c4506=_0x31fb8[_0xdb97f7(0x24c)][_0xdb97f7(0x13a)];if(_0x5c4506!=null&&_0x5c4506[_0xdb97f7(0x1c1)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x31fb8[_0xdb97f7(0x24c)][_0xdb97f7(0x229)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x3443a8,'unitType':_0x50a49f,'target':{'endpoint':_0x5c4506,'unitId':_0x31fb8[_0xdb97f7(0x24c)]['unitId'],'unitType':_0x31fb8[_0xdb97f7(0x24c)]['unitType']??_0x50a49f},'changeset':_0x31fb8[_0xdb97f7(0xf9)]};}let _0x2b5c76=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x28945f,_0x1becdd,_0x3b9c84,_0x2d374a,_0x4dc1bb,_0x470aac,_0x521b84){const _0x1909de=_0x4fa2a5;super(),this['_injector']=_0x28945f,this[_0x1909de(0x314)]=_0x1becdd,this[_0x1909de(0x1a9)]=_0x3b9c84,this['_socketService']=_0x2d374a,this[_0x1909de(0x347)]=_0x4dc1bb,this[_0x1909de(0x134)]=_0x470aac,this[_0x1909de(0x3dc)]=_0x521b84,_0x5aacdf(this,_0x1909de(0x342),new Map()),_0x5aacdf(this,_0x1909de(0x209),new Map()),_0x5aacdf(this,_0x1909de(0x1e2),new Map()),_0x5aacdf(this,_0x1909de(0x32c),new Map()),_0x5aacdf(this,_0x1909de(0x103),this[_0x1909de(0x1d4)](void 0x0)[_0x1909de(0x103)][_0x1909de(0x343)]()),_0x5aacdf(this,_0x1909de(0x3d1),new _0x450705[(_0x1909de(0x1f8))](0x0)),_0x5aacdf(this,_0x1909de(0x1ed),this[_0x1909de(0x3d1)][_0x1909de(0x343)]()),this[_0x1909de(0x1a3)]();}[_0x4fa2a5(0x1a3)](){const _0x5805cf=_0x4fa2a5;this[_0x5805cf(0x3dc)]&&this['disposeWithMe'](this[_0x5805cf(0x3dc)][_0x5805cf(0x403)][_0x5805cf(0x252)](_0x59a303=>{const _0xc1cf05=_0x5805cf;_0x59a303&&this[_0xc1cf05(0x332)](),_0x59a303||this[_0xc1cf05(0x32c)][_0xc1cf05(0x1d2)](_0x5ee5a9=>this[_0xc1cf05(0x254)](_0x5ee5a9));}));}[_0x4fa2a5(0x3b4)](){const _0x1468e9=_0x4fa2a5;super['dispose'](),this['_socketChannels']['forEach'](_0x10d91f=>{const _0x549f82=_0x5846;var _0x1f7197,_0x193f03;(_0x1f7197=_0x10d91f[_0x549f82(0x12d)])==null||_0x1f7197[_0x549f82(0x3ba)](),_0x10d91f['socketMessageSubscription']=null,this[_0x549f82(0xe8)](_0x10d91f),this[_0x549f82(0x1d8)](_0x10d91f),this[_0x549f82(0x12a)](_0x10d91f),(_0x193f03=_0x10d91f[_0x549f82(0x103)][_0x549f82(0x3ee)]())==null||_0x193f03[_0x549f82(0x17d)](),_0x10d91f[_0x549f82(0x103)][_0x549f82(0x410)]();}),this[_0x1468e9(0x32c)][_0x1468e9(0x2f9)](),this['_sessions']['forEach'](_0x181eab=>_0x181eab[_0x1468e9(0x3b4)]()),this[_0x1468e9(0x342)][_0x1468e9(0x2f9)](),this['_sessionChannels'][_0x1468e9(0x2f9)](),this[_0x1468e9(0x3d1)][_0x1468e9(0x410)]();}async[_0x4fa2a5(0x40c)](_0x58d040,_0x260e26){const _0x33cf1c=_0x4fa2a5;if(this[_0x33cf1c(0x342)][_0x33cf1c(0x1de)](_0x58d040))return this[_0x33cf1c(0x342)][_0x33cf1c(0x2c0)](_0x58d040);let _0x3275a9=this[_0x33cf1c(0x209)][_0x33cf1c(0x2c0)](_0x58d040);if(_0x3275a9)return _0x3275a9;let _0x203412=this[_0x33cf1c(0x35c)](_0x58d040,_0x260e26);this[_0x33cf1c(0x209)][_0x33cf1c(0x10c)](_0x58d040,_0x203412);try{return await _0x203412;}finally{this[_0x33cf1c(0x209)][_0x33cf1c(0x3ae)](_0x58d040);}}async[_0x4fa2a5(0x35c)](_0x109ecd,_0x1904e4){const _0x5ef0c5=_0x4fa2a5;let _0x2679b9=await this[_0x5ef0c5(0x27e)](_0x109ecd,_0x1904e4),_0x2b864f=this['_getSocketChannel'](_0x2679b9[_0x5ef0c5(0x24c)][_0x5ef0c5(0x13a)]);this['_tryEnsureSocket'](_0x2b864f);let _0x4884e3=this['_injector'][_0x5ef0c5(0x11d)](_0x45e291,_0x2679b9,_0x2b864f['socket$'][_0x5ef0c5(0x343)]());return this[_0x5ef0c5(0x342)][_0x5ef0c5(0x10c)](_0x109ecd,_0x4884e3),this[_0x5ef0c5(0x1e2)]['set'](_0x109ecd,_0x2b864f[_0x5ef0c5(0x11b)]),_0x4884e3;}[_0x4fa2a5(0x284)](_0x562da1){const _0x2a869c=_0x4fa2a5;let _0x26cc30=this[_0x2a869c(0x342)][_0x2a869c(0x2c0)](_0x562da1),_0x3217ed=this[_0x2a869c(0x1e2)][_0x2a869c(0x2c0)](_0x562da1);if(_0x26cc30&&(this[_0x2a869c(0x342)]['delete'](_0x562da1),this[_0x2a869c(0x1e2)][_0x2a869c(0x3ae)](_0x562da1),_0x26cc30['close']()),_0x3217ed&&!this[_0x2a869c(0xab)](_0x3217ed)){var _0x1f774b;let _0x2298c4=this[_0x2a869c(0x32c)][_0x2a869c(0x2c0)](_0x3217ed);_0x2298c4==null||(_0x1f774b=_0x2298c4[_0x2a869c(0x103)][_0x2a869c(0x3ee)]())==null||_0x1f774b[_0x2a869c(0x17d)]();}}[_0x4fa2a5(0x332)](){const _0x3b757e=_0x4fa2a5;(this[_0x3b757e(0x32c)][_0x3b757e(0x1dd)]?[...this[_0x3b757e(0x32c)][_0x3b757e(0x168)]()]:[this[_0x3b757e(0x1d4)](void 0x0)])['forEach'](_0x3c488c=>{const _0x43d4ea=_0x3b757e;_0x3c488c[_0x43d4ea(0x3e6)]=0x0,this[_0x43d4ea(0xe8)](_0x3c488c),this[_0x43d4ea(0xaf)](_0x3c488c);});}[_0x4fa2a5(0xe8)](_0x133ffe){const _0x37ca9c=_0x4fa2a5;_0x133ffe[_0x37ca9c(0x18c)]!=null&&(clearTimeout(_0x133ffe[_0x37ca9c(0x18c)]),_0x133ffe[_0x37ca9c(0x18c)]=null);}async[_0x4fa2a5(0x114)](_0x370195){const _0x427cb9=_0x4fa2a5;let _0x404e4d=this[_0x427cb9(0x1a9)][_0x427cb9(0xd7)](_0x18fed6),_0x2a1e5c=_0x370195[_0x427cb9(0x13a)]??(_0x404e4d==null?void 0x0:_0x404e4d[_0x427cb9(0x2e9)])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x4f23de=await this['_socketService'][_0x427cb9(0x21f)](_0x2a1e5c);return _0x370195[_0x427cb9(0xbd)]=_0x4f23de,_0x4f23de;}async[_0x4fa2a5(0x2b9)](_0x24d930){const _0x2c006c=_0x4fa2a5;try{let _0x2f56aa=_0x24d930[_0x2c006c(0x103)][_0x2c006c(0x3ee)]()??_0x24d930['candidateSocket']??await this[_0x2c006c(0x114)](_0x24d930);if(_0x2f56aa){var _0x938e69;let _0x2b9155=_0x2f56aa[_0x2c006c(0x402)];_0x2f56aa[_0x2c006c(0x402)]=_0x1aa686=>(_0x1aa686[_0x2c006c(0x20a)]!==_0x4ed0d4[_0x2c006c(0x35a)][_0x2c006c(0xc9)]&&this['_rescheduleHeartbeat'](_0x24d930),_0x2b9155['apply'](_0x2f56aa,[_0x1aa686])),(_0x938e69=_0x24d930[_0x2c006c(0x12d)])==null||_0x938e69[_0x2c006c(0x3ba)](),_0x24d930[_0x2c006c(0x12d)]=null,_0x24d930[_0x2c006c(0x12d)]=_0x2f56aa[_0x2c006c(0x197)][_0x2c006c(0x252)](_0x17ef04=>this[_0x2c006c(0x35b)](_0x24d930,_0x2f56aa,_0x17ef04)),_0x2f56aa[_0x2c006c(0x124)][_0x2c006c(0x192)]((0x0,_0x223d83['take'])(0x1))[_0x2c006c(0x252)](_0x149f2c=>this[_0x2c006c(0x314)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x149f2c)),_0x2f56aa[_0x2c006c(0x2ff)][_0x2c006c(0x192)]((0x0,_0x223d83[_0x2c006c(0x3b1)])(0x1))[_0x2c006c(0x252)](()=>{const _0xdc2553=_0x2c006c;this[_0xdc2553(0x14a)](_0x24d930,_0x2f56aa);}),_0x2f56aa[_0x2c006c(0x33d)][_0x2c006c(0x192)]((0x0,_0x223d83[_0x2c006c(0x3b1)])(0x1))[_0x2c006c(0x252)](_0xd30b66=>{const _0x339330=_0x2c006c;this[_0x339330(0x314)][_0x339330(0x23b)](_0x339330(0x418),_0x339330(0x38d),_0xd30b66),this['_onConnectionFailed'](_0x24d930);});}}catch(_0x2a90fb){this[_0x2c006c(0x314)][_0x2c006c(0x187)](_0x2a90fb),this['_onConnectionFailed'](_0x24d930);}}['_onConnectionOpen'](_0x13a19c,_0x31cd85){const _0x3e87f1=_0x4fa2a5;this[_0x3e87f1(0x314)]['debug']('[CollaborationSessionService]','socket\x20open.'),_0x31cd85[_0x3e87f1(0x402)]({'cmd':_0x4ed0d4[_0x3e87f1(0x35a)][_0x3e87f1(0x215)]}),this['_rescheduleHeartbeat'](_0x13a19c);}[_0x4fa2a5(0x254)](_0x40aea7){const _0x24ea5c=_0x4fa2a5;_0x40aea7[_0x24ea5c(0x226)]=!0x1,_0x40aea7['candidateSocket']=null,this['_status$'][_0x24ea5c(0x163)](0x2),_0x40aea7[_0x24ea5c(0x103)][_0x24ea5c(0x163)](null),this['_clearTimeoutTimer'](_0x40aea7),this[_0x24ea5c(0x12a)](_0x40aea7);}['_onConnectionFailed'](_0x156b82){const _0x1b8ba4=_0x4fa2a5;this[_0x1b8ba4(0x254)](_0x156b82),this[_0x1b8ba4(0xab)](_0x156b82[_0x1b8ba4(0x11b)])&&(_0x156b82['retryCount']<(this[_0x1b8ba4(0x1a9)][_0x1b8ba4(0xd7)](_0x1b8ba4(0x3cf))??0x3)?(this['_collaborationUIEventService'][_0x1b8ba4(0x2cf)]({'id':_0x1b8ba4(0x2bc)}),this[_0x1b8ba4(0xaf)](_0x156b82)):this[_0x1b8ba4(0x347)]['emitEvent']({'id':_0x1b8ba4(0x289)}));}[_0x4fa2a5(0xaf)](_0x173c98){const _0x31bca3=_0x4fa2a5;let _0x49b827=_0x173c98[_0x31bca3(0x3e6)],_0x5b2b34=this[_0x31bca3(0x1a9)]['getConfig'](_0x18fed6),_0xf494e3=_0x49b827===0x0?0x0:((_0x5b2b34==null?void 0x0:_0x5b2b34[_0x31bca3(0xa8)])??0x4e20)*0x2**_0x49b827;_0x173c98['retryConnectingTimer']=setTimeout(()=>{const _0x46b07b=_0x31bca3;clearTimeout(_0x173c98[_0x46b07b(0x18c)]),_0x173c98[_0x46b07b(0x18c)]=null,this[_0x46b07b(0x2b9)](_0x173c98);},_0xf494e3),_0x173c98[_0x31bca3(0x3e6)]+=0x1;}async[_0x4fa2a5(0x27e)](_0x503a40,_0x5ba38b){const _0x2e850c=_0x4fa2a5;return _0x5dcc79(_0x503a40,_0x5ba38b,await this[_0x2e850c(0x134)][_0x2e850c(0x33f)]({'unitId':_0x503a40,'unitType':_0x5ba38b}));}[_0x4fa2a5(0x35b)](_0x47ea34,_0x221091,_0x7ceafc){const _0xa5200=_0x4fa2a5;let {cmd:_0x110169}=_0x7ceafc;_0x110169===_0x4ed0d4[_0xa5200(0x35a)][_0xa5200(0x215)]&&!_0x47ea34['socketReady']&&(_0x221091[_0xa5200(0x38b)]=_0x7ceafc[_0xa5200(0x2c7)][_0xa5200(0x38b)],_0x47ea34[_0xa5200(0x3e6)]=0x0,_0x47ea34['socket$']['next'](_0x221091),this[_0xa5200(0x3d1)]['next'](0x3),_0x47ea34['socketReady']=!0x0,_0x47ea34[_0xa5200(0xbd)]=null),_0x110169===_0x4ed0d4[_0xa5200(0x35a)]['HEARTBEAT']&&this['_clearTimeoutTimer'](_0x47ea34),this[_0xa5200(0x36b)](_0x47ea34);}[_0x4fa2a5(0xab)](_0x46a21a){const _0x51d57f=_0x4fa2a5;return[...this[_0x51d57f(0x1e2)]['values']()][_0x51d57f(0x2b5)](_0x2a7850=>_0x2a7850===_0x46a21a);}[_0x4fa2a5(0x1d4)](_0x1ad0f1){const _0x8ec492=_0x4fa2a5;let _0x39f1b3=_0x1ad0f1??'',_0x17691f=this[_0x8ec492(0x32c)][_0x8ec492(0x2c0)](_0x39f1b3);if(_0x17691f)return _0x17691f;let _0x3eeb56={'endpointKey':_0x39f1b3,'endpoint':_0x1ad0f1,'socket$':new _0x450705[(_0x8ec492(0x1f8))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x8ec492(0x32c)][_0x8ec492(0x10c)](_0x39f1b3,_0x3eeb56),_0x3eeb56;}[_0x4fa2a5(0x36b)](_0x2a7875){const _0x3fd774=_0x4fa2a5;this[_0x3fd774(0x12a)](_0x2a7875),_0x2a7875['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2a7875),this[_0x3fd774(0x1a9)][_0x3fd774(0xd7)]('HEARTBEAT_INTERVAL')??0x7530);}[_0x4fa2a5(0x290)](_0x2cff23){const _0x439817=_0x4fa2a5;_0x2cff23[_0x439817(0x103)][_0x439817(0x3ee)]()[_0x439817(0x402)]({'cmd':_0x4ed0d4[_0x439817(0x35a)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2cff23);}[_0x4fa2a5(0xef)](_0x5af192){const _0x4fac99=_0x4fa2a5;_0x5af192['timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](_0x5af192),this[_0x4fac99(0x1a9)][_0x4fac99(0xd7)](_0x4fac99(0x107))??0x4e20);}[_0x4fa2a5(0x12a)](_0x37505a){const _0xc3bd7d=_0x4fa2a5;_0x37505a[_0xc3bd7d(0x25f)]!=null&&(clearTimeout(_0x37505a[_0xc3bd7d(0x25f)]),_0x37505a[_0xc3bd7d(0x25f)]=null);}[_0x4fa2a5(0x1d8)](_0x344f08){const _0x2b197c=_0x4fa2a5;_0x344f08[_0x2b197c(0x344)]!=null&&(clearTimeout(_0x344f08[_0x2b197c(0x344)]),_0x344f08[_0x2b197c(0x344)]=null);}};_0x2b5c76=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x433f65['Injector'])),_0x374c65(0x1,_0x433f65['ILogService']),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x1121da),_0x374c65(0x4,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6)),_0x374c65(0x5,_0x2a5cd3),_0x374c65(0x6,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x43e589))],_0x2b5c76);let _0x39314f=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x147a91,_0x4e95b2,_0x7ecc26,_0xe0d28f){const _0x2cc805=_0x4fa2a5;var _0x4a81f0;super(),this[_0x2cc805(0x40f)]=_0x147a91,this[_0x2cc805(0x297)]=_0x4e95b2,this[_0x2cc805(0x1a9)]=_0x7ecc26,this[_0x2cc805(0x3f3)]=_0xe0d28f,_0x5aacdf(this,_0x2cc805(0x33a),new Map()),_0x5aacdf(this,_0x2cc805(0x3bd),new _0x450705[(_0x2cc805(0x155))]()),_0x5aacdf(this,_0x2cc805(0x334),this[_0x2cc805(0x3bd)][_0x2cc805(0x343)]()),((_0x4a81f0=this[_0x2cc805(0x1a9)][_0x2cc805(0xd7)](_0x2cc805(0x1b0)))==null?void 0x0:_0x4a81f0[_0x2cc805(0x239)])!==!0x1&&this[_0x2cc805(0x29b)]();}[_0x4fa2a5(0x3b4)](){const _0x2e5ffc=_0x4fa2a5;super['dispose'](),this[_0x2e5ffc(0x33a)][_0x2e5ffc(0x1d2)](_0x290b9e=>_0x290b9e['dispose']()),this['_entities'][_0x2e5ffc(0x2f9)]();}['getCollabEntity'](_0x242a22){const _0x44693e=_0x4fa2a5;return this[_0x44693e(0x33a)][_0x44693e(0x2c0)](_0x242a22)??null;}[_0x4fa2a5(0x3d0)](_0x4f666b){const _0x2583b1=_0x4fa2a5;let _0xd10e91=this[_0x2583b1(0x381)](_0x4f666b);return _0xd10e91?(0x0,_0x450705['of'])(_0xd10e91):this[_0x2583b1(0x3bd)][_0x2583b1(0x192)]((0x0,_0x223d83[_0x2583b1(0x260)])(_0x403cad=>_0x403cad[_0x2583b1(0x210)]===_0x4f666b));}[_0x4fa2a5(0x1fe)](_0x59298d){const _0x4b6a6a=_0x4fa2a5;return(0x0,_0x450705[_0x4b6a6a(0x3d7)])(this[_0x4b6a6a(0x3d0)](_0x59298d)['pipe']((0x0,_0x223d83[_0x4b6a6a(0x224)])(()=>void 0x0)));}['_init'](){const _0x133693=_0x4fa2a5;this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0xb4)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83['delay'])(0x10))[_0x133693(0x252)](async _0x4f2ba0=>{const _0x426666=_0x133693;let _0x5a526e=_0x4f2ba0['unit'][_0x426666(0xed)](),_0x19ee73=await this[_0x426666(0x105)](_0x5a526e,_0x433f65[_0x426666(0xa5)][_0x426666(0xb4)]);this['_entities'][_0x426666(0x10c)](_0x5a526e,_0x19ee73);}),this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0x237)])['pipe']((0x0,_0x450705[_0x133693(0x1c3)])(this['dispose$']),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x192)]((0x0,_0x223d83[_0x133693(0x260)])(_0xbb659b=>!_0xbb659b[_0x133693(0xa4)][_0x133693(0xed)]()[_0x133693(0x143)]('__')))[_0x133693(0x252)](async _0x34fe18=>{const _0x5a5e50=_0x133693;let _0x59a7fc=_0x34fe18[_0x5a5e50(0xa4)][_0x5a5e50(0xed)](),_0x43f561=await this[_0x5a5e50(0x105)](_0x59a7fc,_0x433f65[_0x5a5e50(0xa5)][_0x5a5e50(0x237)]);this[_0x5a5e50(0x33a)][_0x5a5e50(0x10c)](_0x59a7fc,_0x43f561);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0xcd)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x114ed1=>{const _0x2fa3bf=_0x133693;let _0x50fb77=_0x114ed1[_0x2fa3bf(0xa4)][_0x2fa3bf(0xed)](),_0x3a9996=await this[_0x2fa3bf(0x105)](_0x50fb77,_0x433f65[_0x2fa3bf(0xa5)]['UNIVER_SLIDE']);this['_entities'][_0x2fa3bf(0x10c)](_0x50fb77,_0x3a9996);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0x169)])['pipe']((0x0,_0x450705[_0x133693(0x1c3)])(this['dispose$']),(0x0,_0x223d83['delay'])(0x10))[_0x133693(0x252)](async _0x21d190=>{const _0x34301d=_0x133693;let _0x55de0d=_0x21d190[_0x34301d(0xa4)]['getUnitId'](),_0x48ee21=await this[_0x34301d(0x105)](_0x55de0d,_0x433f65['UniverInstanceType']['UNIVER_BOARD']);this[_0x34301d(0x33a)][_0x34301d(0x10c)](_0x55de0d,_0x48ee21);}),this[_0x133693(0x3f3)]['getTypeOfUnitAdded$'](_0x433f65[_0x133693(0xa5)][_0x133693(0x146)])['pipe']((0x0,_0x450705['takeUntil'])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x2404b1=>{const _0x147291=_0x133693;let _0x327331=_0x2404b1[_0x147291(0xa4)][_0x147291(0xed)](),_0xad5c33=await this[_0x147291(0x105)](_0x327331,_0x433f65[_0x147291(0xa5)][_0x147291(0x146)]);this['_entities'][_0x147291(0x10c)](_0x327331,_0xad5c33);}),this[_0x133693(0x3f3)][_0x133693(0x1bb)](_0x433f65[_0x133693(0xa5)][_0x133693(0x3ff)])[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]),(0x0,_0x223d83[_0x133693(0x16e)])(0x10))[_0x133693(0x252)](async _0x4646ab=>{const _0x2d4862=_0x133693;let _0x7468b7=_0x4646ab['unit']['getUnitId'](),_0x390f34=await this[_0x2d4862(0x105)](_0x7468b7,_0x433f65[_0x2d4862(0xa5)][_0x2d4862(0x3ff)]);this['_entities'][_0x2d4862(0x10c)](_0x7468b7,_0x390f34);}),(0x0,_0x450705['merge'])(this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65[_0x133693(0xa5)][_0x133693(0xb4)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65[_0x133693(0xa5)]['UNIVER_DOC']),this[_0x133693(0x3f3)]['getTypeOfUnitDisposed$'](_0x433f65[_0x133693(0xa5)][_0x133693(0xcd)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x433f65['UniverInstanceType']['UNIVER_BOARD']),this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65[_0x133693(0xa5)][_0x133693(0x146)]),this[_0x133693(0x3f3)][_0x133693(0x40e)](_0x433f65['UniverInstanceType'][_0x133693(0x3ff)]))[_0x133693(0x192)]((0x0,_0x450705[_0x133693(0x1c3)])(this[_0x133693(0xc4)]))[_0x133693(0x252)](_0x14430f=>{const _0xf8c77d=_0x133693;let _0x488407=_0x14430f[_0xf8c77d(0xed)](),_0x2f8823=this[_0xf8c77d(0x33a)]['get'](_0x488407);_0x2f8823&&(_0x2f8823['dispose'](),this['_entities'][_0xf8c77d(0x3ae)](_0x488407));});}async['_startCollaboration'](_0x2e517f,_0x31f940){const _0x426b4f=_0x4fa2a5;let _0x369b2e=await this['_collabSessionService'][_0x426b4f(0x40c)](_0x2e517f),_0x28434c=this[_0x426b4f(0x40f)][_0x426b4f(0x11d)](this[_0x426b4f(0x3d4)](_0x31f940),_0x2e517f,_0x31f940,_0x369b2e);return await _0x28434c[_0x426b4f(0x2ef)](),this[_0x426b4f(0x3bd)][_0x426b4f(0x163)](_0x28434c),_0x28434c;}[_0x4fa2a5(0x3d4)](_0x1a2cc9){const _0x35ab52=_0x4fa2a5;switch(_0x1a2cc9){case _0x433f65[_0x35ab52(0xa5)]['UNIVER_DOC']:return _0x31d725;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0xb4)]:return _0x89772b;case _0x433f65['UniverInstanceType'][_0x35ab52(0xcd)]:return _0x1b8073;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0x169)]:return _0x1dc09d;case _0x433f65[_0x35ab52(0xa5)][_0x35ab52(0x146)]:return _0x53717a;case _0x433f65['UniverInstanceType'][_0x35ab52(0x3ff)]:return _0x25572c;default:throw Error(_0x35ab52(0x2fd)+_0x1a2cc9);}}};_0x39314f=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x433f65['Injector'])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x2b5c76)),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x39b)])],_0x39314f);var _0x434948=_0x4fa2a5(0x1c4),_0x11be1f='1.0.2';let _0x1c06e7=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x48f311,_0x221e06){const _0x5696d0=_0x4fa2a5;super(),this[_0x5696d0(0x3f3)]=_0x48f311,this['_configService']=_0x221e06,this[_0x5696d0(0x29b)]();}[_0x4fa2a5(0x29b)](){const _0x510e2e=_0x4fa2a5;this['disposeWithMe'](this['_univerInstanceService'][_0x510e2e(0x2d6)]['subscribe'](()=>{const _0x11c353=_0x510e2e;let _0x2179e4=this['_univerInstanceService'][_0x11c353(0x2f5)](),_0x5f584c=this[_0x11c353(0x1a9)][_0x11c353(0xd7)](_0x11c353(0x2d3))??_0x11c353(0x22b);_0x2179e4 instanceof _0x433f65['Workbook']&&(_0x5f584c=_0x2179e4[_0x11c353(0x341)]),document[_0x11c353(0x22a)]=_0x5f584c;}));}};_0x1c06e7=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x2aa)])],_0x1c06e7);let _0x495c62=(0x0,_0x433f65[_0x4fa2a5(0xad)])('base-ui.attachment-io.service'),_0x3f38f5=class{constructor(_0x5bf7c4,_0xe3df97,_0x491ea4){const _0x325555=_0x4fa2a5;this['_httpService']=_0x5bf7c4,this[_0x325555(0x1a9)]=_0xe3df97,this[_0x325555(0x3f3)]=_0x491ea4;}[_0x4fa2a5(0x3fd)](){const _0xc1cc09=_0x4fa2a5;return this[_0xc1cc09(0x1e9)]()[_0xc1cc09(0x3a8)]??{};}async[_0x4fa2a5(0x12f)](_0x5b84bc){const _0x42b627=_0x4fa2a5;let _0x50e668=this[_0x42b627(0x3fd)]();if(_0xca792d(_0x5b84bc,_0x50e668),_0x50e668[_0x42b627(0x24e)])return _0x50e668[_0x42b627(0x24e)](_0x5b84bc);let _0xe389c9=await this[_0x42b627(0x2e2)](_0x5b84bc);return{'id':_0xe389c9,'name':_0x5b84bc[_0x42b627(0x341)],'mimeType':_0x5b84bc[_0x42b627(0x3c6)],'size':_0x5b84bc[_0x42b627(0x1dd)],'sourceType':_0x433f65['ImageSourceType'][_0x42b627(0x2b3)],'source':_0xe389c9};}async[_0x4fa2a5(0x41a)](_0x6f07f9,_0x56a7fc){const _0xda000=_0x4fa2a5;if(_0x56a7fc!==_0x433f65[_0xda000(0x17b)][_0xda000(0x2b3)])return _0x6f07f9;let _0x1a3db5=(await this[_0xda000(0x33c)][_0xda000(0x2c0)](this['_getSignURL']()[_0xda000(0x3cd)](_0xda000(0x30d),_0x6f07f9)))[_0xda000(0x280)];if(_0x1a3db5['error']&&_0x1a3db5['error'][_0xda000(0xb6)]!==_0x4ed0d4[_0xda000(0x326)]['OK'])throw _0x1a3db5['error'];if(!_0x1a3db5[_0xda000(0x345)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,_0x433f65[_0xda000(0x28a)])(_0x1a3db5['url'],this[_0xda000(0x2d1)]());}async[_0x4fa2a5(0x2e2)](_0x387e7b){const _0x5d6cbc=_0x4fa2a5;let _0x3ea207=this[_0x5d6cbc(0x3f3)][_0x5d6cbc(0x2f5)](),_0x42cf06=_0x3ea207==null?void 0x0:_0x3ea207['getUnitId']();if(!_0x42cf06)throw Error(_0x5d6cbc(0x1b5));let _0x5eb983=new FormData();_0x5eb983[_0x5d6cbc(0x3c4)](_0x5d6cbc(0x173),_0x387e7b);let _0x9e8135=this['_getUploadFileURL']()+_0x5d6cbc(0x131)+_0x387e7b['size'][_0x5d6cbc(0x172)]()+_0x5d6cbc(0x19d)+_0x4ed0d4[_0x5d6cbc(0x158)][_0x5d6cbc(0x375)]+'&assign='+encodeURIComponent(_0x42cf06),_0x41c8ad=(await this['_httpService'][_0x5d6cbc(0x201)](_0x9e8135,{'body':_0x5eb983}))[_0x5d6cbc(0x280)][_0x5d6cbc(0x219)];if(typeof _0x41c8ad!=_0x5d6cbc(0x265)||!_0x41c8ad)throw Error(_0x5d6cbc(0x3b9));return _0x41c8ad;}['_getUploadFileURL'](){const _0x53594d=_0x4fa2a5;return this[_0x53594d(0x1e9)]()[_0x53594d(0x2de)]??_0x53594d(0x329);}[_0x4fa2a5(0x2f6)](){const _0x8e98f7=_0x4fa2a5;return this[_0x8e98f7(0x1e9)]()[_0x8e98f7(0x362)]??_0x8e98f7(0x338);}['_getDownloadEndpointURL'](){const _0x5d2fee=_0x4fa2a5;let _0x518409=this[_0x5d2fee(0x1e9)]();return _0x518409[_0x5d2fee(0x18f)]?_0x518409['downloadEndpointUrl']:typeof location<'u'?location[_0x5d2fee(0x1b7)]:_0x518409[_0x5d2fee(0x2de)]??'';}['_getConfig'](){const _0x39dba5=_0x4fa2a5;return this[_0x39dba5(0x1a9)]['getConfig'](_0x39dba5(0x1b0))??{};}};_0x3f38f5=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x39b)]))],_0x3f38f5);function _0xca792d(_0x485c20,_0xc051ed){const _0x1e0b9f=_0x4fa2a5;var _0x3ffe86;if(_0xc051ed[_0x1e0b9f(0x37c)]!=null&&_0x485c20['size']>_0xc051ed['maxSize'])throw Error(_0x1e0b9f(0x2f8));if((_0x3ffe86=_0xc051ed[_0x1e0b9f(0x3d3)])!=null&&_0x3ffe86[_0x1e0b9f(0x208)]&&!_0xc051ed['accept'][_0x1e0b9f(0x2b5)](_0x508ae9=>_0x485c20[_0x1e0b9f(0x3c6)]===_0x508ae9||_0x485c20[_0x1e0b9f(0x341)][_0x1e0b9f(0x171)](_0x508ae9)||_0x508ae9[_0x1e0b9f(0x171)]('/*')&&_0x485c20[_0x1e0b9f(0x3c6)][_0x1e0b9f(0x143)](_0x508ae9[_0x1e0b9f(0x1b2)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x4aff48=class{constructor(_0x3ec08a,_0x18b991,_0x8b8416){const _0x44505f=_0x4fa2a5;this[_0x44505f(0x1a9)]=_0x3ec08a,this['_httpService']=_0x18b991,this[_0x44505f(0x26a)]=_0x8b8416,this[_0x44505f(0x2ef)]();}[_0x4fa2a5(0x2ef)](){const _0x14f2cb=_0x4fa2a5;this[_0x14f2cb(0x33c)][_0x14f2cb(0x3f1)]({'priority':0x1,'interceptor':(_0x3c0fcc,_0x5561a9)=>_0x5561a9(_0x3c0fcc)['pipe']((0x0,_0x450705[_0x14f2cb(0x1c9)])(async _0x1a99c2=>{const _0x3b0c4e=_0x14f2cb;let _0x774a82=_0x1a99c2;if(_0x774a82[_0x3b0c4e(0x1e8)]===0x191){if(typeof window>'u')throw Error(_0x3b0c4e(0x1fa));if(window[_0x3b0c4e(0x165)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x296b69=window[_0x3b0c4e(0x351)](window[_0x3b0c4e(0x31e)]['href']);window[_0x3b0c4e(0x31e)][_0x3b0c4e(0x3f2)]=this['_getLoginPath']()+_0x3b0c4e(0x1d5)+_0x296b69;}}return _0x774a82;}))});}[_0x4fa2a5(0xfe)](){const _0x45ce31=_0x4fa2a5;let _0x4c8c33=this['_configService'][_0x45ce31(0xd7)](_0x18fed6);return(_0x4c8c33==null?void 0x0:_0x4c8c33[_0x45ce31(0x310)])??_0x45ce31(0x363);}};_0x4aff48=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24['HTTPService'])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x366)]))],_0x4aff48);let _0x5b1470=class extends _0x433f65[_0x4fa2a5(0x325)]{constructor(_0x5cab58,_0x4c1a96){const _0x330fb4=_0x4fa2a5;super(),this[_0x330fb4(0x2c9)]=_0x5cab58,this[_0x330fb4(0x1a9)]=_0x4c1a96,_0x5aacdf(this,_0x330fb4(0x315),!0x1),this[_0x330fb4(0x2ba)]();}[_0x4fa2a5(0x2ba)](){const _0xf79993=_0x4fa2a5;let _0x1ea0f3=this;this[_0xf79993(0x413)](this[_0xf79993(0x2c9)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x544d24['MergeInterceptorFactory'])({'isMatch'(_0x59caae){const _0x2245ee=_0xf79993;var _0x180caf;if(_0x59caae[_0x2245ee(0x12b)]===_0x2245ee(0x365)&&(_0x180caf=_0x59caae[_0x2245ee(0xc7)])!=null&&_0x180caf[_0x2245ee(0x280)]){let {objectID:_0x27a6b4,objectType:_0x2d5779}=_0x59caae[_0x2245ee(0xc7)]['body']||{};if(!_0x27a6b4||_0x2d5779===void 0x0)return!0x1;let _0x3a5e98=_0x1ea0f3[_0x2245ee(0x213)]()+'/'+_0x2d5779+'/object/'+encodeURIComponent(_0x27a6b4)+_0x2245ee(0x123);if(_0x59caae[_0x2245ee(0x345)]===_0x3a5e98)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x34b67f){const _0x5bddb6=_0xf79993;var _0x9e0fbf;return(_0x9e0fbf=_0x34b67f['requestParams'])==null?void 0x0:_0x9e0fbf[_0x5bddb6(0x280)];},'mergeParamsToRequest'(_0x3388bd,_0x242116){const _0x240687=_0xf79993;let _0x5d65fc=_0x1ea0f3[_0x240687(0x213)]()+_0x240687(0xd8),_0x1b78c8=_0x3388bd['reduce']((_0x4f3b85,_0x21b233)=>{const _0x542db5=_0x240687;let {unitID:_0x270cae,objectID:_0x3e9468,objectType:_0x36eaf7,actions:_0x163ae9}=_0x21b233;return _0x4f3b85[_0x270cae]||(_0x4f3b85[_0x270cae]=Object[_0x542db5(0x1a2)](null)),_0x4f3b85[_0x270cae][_0x3e9468]||(_0x4f3b85[_0x270cae][_0x3e9468]={'objectID':_0x3e9468,'objectType':_0x36eaf7,'actions':[]}),_0x4f3b85[_0x270cae][_0x3e9468]['actions'][_0x542db5(0x227)](..._0x163ae9),_0x4f3b85;},Object['create'](null)),_0x5dc823=[];for(let _0x420e09 in _0x1b78c8)for(let _0x9da7b9 in _0x1b78c8[_0x420e09]){let {actions:_0x127cc0,objectType:_0xb66477}=_0x1b78c8[_0x420e09][_0x9da7b9],_0x474ed9=[...new Set(_0x127cc0)];_0x5dc823['push']({'unitID':_0x420e09,'objectID':_0x9da7b9,'objectType':_0xb66477,'actions':_0x474ed9});}return new _0x544d24[(_0x240687(0x204))](_0x240687(0x365),_0x5d65fc,{'headers':_0x242116[_0x240687(0x17e)],'withCredentials':_0x242116[_0x240687(0x13e)],'responseType':_0x242116[_0x240687(0x3c7)],'body':{'requests':_0x5dc823}});}},{'distributeResult'(_0x14cb78,_0x210add){let {objectActions:_0x5daeee}=_0x14cb78;return _0x210add['map'](_0x1cf044=>{const _0x25aa00=_0x5846;let {unitID:_0x212002,objectID:_0x307eb2,actions:_0x52a02b}=_0x1cf044,_0x3d8656=_0x5daeee[_0x25aa00(0x101)](_0x47b701=>_0x47b701[_0x25aa00(0x210)]===_0x212002&&_0x47b701[_0x25aa00(0x2e7)]===_0x307eb2);return{'config':_0x1cf044,'result':{'actions':_0x52a02b['map'](_0x33d0c9=>_0x3d8656==null?void 0x0:_0x3d8656[_0x25aa00(0x30a)][_0x25aa00(0x101)](_0x5dbc8e=>_0x5dbc8e['action']===_0x33d0c9))['filter'](_0x1676c1=>!!_0x1676c1),'error':_0x14cb78['error']}};});}})}));}[_0x4fa2a5(0x213)](){const _0x5b21c7=_0x4fa2a5;let _0xcabaaa=this[_0x5b21c7(0x1a9)][_0x5b21c7(0xd7)](_0x18fed6);return(_0xcabaaa==null?void 0x0:_0xcabaaa[_0x5b21c7(0x301)])??_0x5b21c7(0xca);}async['create'](_0x47e23a){const _0x4a170e=_0x4fa2a5;let _0x23345b=this[_0x4a170e(0x213)]()+'/'+_0x47e23a[_0x4a170e(0xeb)]+'/object';return(await this[_0x4a170e(0x2c9)][_0x4a170e(0x201)](_0x23345b,{'body':_0x47e23a}))[_0x4a170e(0x280)]['objectID']||'';}async[_0x4fa2a5(0x2d8)](_0x37e8ec){const _0x354e95=_0x4fa2a5;let _0x523627=this[_0x354e95(0x213)]()+_0x354e95(0x308);return(await this['_HTTPService'][_0x354e95(0x201)](_0x523627,{'body':_0x37e8ec}))['body'][_0x354e95(0x34a)];}async[_0x4fa2a5(0x148)](_0x4aad78){const _0x4bd44f=_0x4fa2a5;var _0xcc9826;let _0x3eb861=this['_getAPIPrefixPath']()+'/'+_0x4aad78[_0x4bd44f(0xeb)]+_0x4bd44f(0x316)+encodeURIComponent(_0x4aad78[_0x4bd44f(0x2e7)]),_0x8ad2aa=await this[_0x4bd44f(0x2c9)]['put'](_0x3eb861,{'body':_0x4aad78});if((_0x8ad2aa==null||(_0xcc9826=_0x8ad2aa[_0x4bd44f(0x280)])==null||(_0xcc9826=_0xcc9826[_0x4bd44f(0x187)])==null?void 0x0:_0xcc9826[_0x4bd44f(0xb6)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x4fa2a5(0x137)](_0x49004d){const _0x2ae321=_0x4fa2a5;let _0x2d9a40=this[_0x2ae321(0x213)]()+'/'+_0x49004d[_0x2ae321(0xeb)]+_0x2ae321(0x316)+encodeURIComponent(_0x49004d['objectID'])+'/allowed';return(await this['_HTTPService'][_0x2ae321(0x201)](_0x2d9a40,{'body':_0x49004d}))[_0x2ae321(0x280)]['actions'];}async[_0x4fa2a5(0xe6)](_0x256246){const _0x562b2b=_0x4fa2a5;let _0x3a9814=this[_0x562b2b(0x213)]()+_0x562b2b(0xd8);return(await this[_0x562b2b(0x2c9)][_0x562b2b(0x201)](_0x3a9814,{'body':{'requests':_0x256246}}))[_0x562b2b(0x280)][_0x562b2b(0x2a4)];}async['listRoles'](_0x59451d){const _0x287b8f=_0x4fa2a5;let _0x585fac=this[_0x287b8f(0x213)]()+'/'+_0x59451d['objectType']+'/role',_0x4387c7=await this[_0x287b8f(0x2c9)][_0x287b8f(0x201)](_0x585fac,{'body':_0x59451d});return{'roles':_0x4387c7[_0x287b8f(0x280)][_0x287b8f(0x348)],'actions':_0x4387c7[_0x287b8f(0x280)][_0x287b8f(0x30a)]};}async[_0x4fa2a5(0x179)](_0x34b7c0){const _0x436391=_0x4fa2a5;let _0x333372=this[_0x436391(0x213)]()+_0x436391(0x225);await this[_0x436391(0x2c9)][_0x436391(0x3ae)](_0x333372,{'params':{'collaboratorID':_0x34b7c0[_0x436391(0x389)],'objectID':_0x34b7c0[_0x436391(0x2e7)],'unitID':_0x34b7c0[_0x436391(0x210)]}});}async[_0x4fa2a5(0x3e2)](_0x8e4296){const _0x15509f=_0x4fa2a5;let _0x9faf30=this[_0x15509f(0x213)]()+'/collaborator';await this[_0x15509f(0x2c9)]['patch'](_0x9faf30,{'body':_0x8e4296});}async[_0x4fa2a5(0x181)](_0x4df8dc){const _0x3ca48c=_0x4fa2a5;let _0x5da32a=this['_getAPIPrefixPath']()+_0x3ca48c(0x225);await this[_0x3ca48c(0x2c9)][_0x3ca48c(0x201)](_0x5da32a,{'body':_0x4df8dc});}async[_0x4fa2a5(0x266)](_0x152511){const _0x32834c=_0x4fa2a5;let _0x4249dd=this[_0x32834c(0x213)]()+_0x32834c(0x225),_0x38ec51=await this['_HTTPService'][_0x32834c(0x2c0)](_0x4249dd,{'params':{'objectID':_0x152511['objectID'],'unitID':_0x152511[_0x32834c(0x210)]}});return this['setCfgEnableObjInherit'](_0x38ec51[_0x32834c(0x280)][_0x32834c(0x3b7)]??!0x1),_0x38ec51[_0x32834c(0x280)]['collaborators'];}async[_0x4fa2a5(0x2ce)](_0xdd7918){const _0x56245a=_0x4fa2a5;let _0x583e1c=this[_0x56245a(0x213)]()+'/collaborator';await this['_HTTPService'][_0x56245a(0x2e0)](_0x583e1c,{'body':_0xdd7918});}['setCfgEnableObjInherit'](_0x1bc54e){const _0x53a67d=_0x4fa2a5;this[_0x53a67d(0x315)]=_0x1bc54e;}[_0x4fa2a5(0x36c)](){return this['_cfgEnableObjInherit'];}};_0x5b1470=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)]))],_0x5b1470);function _0x66f7a1(_0x45def9){const _0x2694ad=_0x4fa2a5;return _0x45def9 instanceof Uint8Array||ArrayBuffer['isView'](_0x45def9)&&_0x45def9['constructor']['name']===_0x2694ad(0xde)&&_0x2694ad(0x23f)in _0x45def9&&_0x45def9[_0x2694ad(0x23f)]===0x1;}let _0x41d565=_0x4863e2=>_0x4863e2?'\x22'+_0x4863e2+'\x22\x20':'';function _0x42aebd(_0x17c1f8,_0x1857b4=''){const _0x50a949=_0x4fa2a5;if(typeof _0x17c1f8!=_0x50a949(0x374))throw TypeError(_0x41d565(_0x1857b4)+'expected\x20number,\x20got\x20'+typeof _0x17c1f8);if(!Number['isSafeInteger'](_0x17c1f8)||_0x17c1f8<0x0)throw RangeError(_0x41d565(_0x1857b4)+'expected\x20integer\x20>=\x200,\x20got\x20'+_0x17c1f8);return _0x17c1f8;}function _0x9aeef9(_0x22800f,_0x2fde33,_0x524e73=''){const _0x391569=_0x4fa2a5;if(_0x66f7a1(_0x22800f)&&(_0x2fde33===void 0x0||_0x22800f['length']===_0x2fde33))return _0x22800f;_0x2fde33!==void 0x0&&_0x42aebd(_0x2fde33,'length');let _0x10a2c4=_0x66f7a1(_0x22800f),_0x3cb26c=_0x2fde33===void 0x0?'':_0x391569(0x39e)+_0x2fde33,_0x33aaea=_0x10a2c4?_0x391569(0xd5)+_0x22800f[_0x391569(0x208)]:'type='+typeof _0x22800f,_0x56bf05=_0x41d565(_0x524e73)+'expected\x20Uint8Array'+_0x3cb26c+_0x391569(0x154)+_0x33aaea;throw _0x10a2c4?RangeError(_0x56bf05):TypeError(_0x56bf05);}function _0x10e10c(_0x8f8e20){const _0x5bac0e=_0x4fa2a5;return new Uint32Array(_0x8f8e20['buffer'],_0x8f8e20[_0x5bac0e(0x272)],Math['floor'](_0x8f8e20[_0x5bac0e(0x29a)]/0x4));}function _0x39afad(..._0xe1b20){const _0x546635=_0x4fa2a5;for(let _0x1bce7f=0x0;_0x1bce7f<_0xe1b20[_0x546635(0x208)];_0x1bce7f++)_0xe1b20[_0x1bce7f]['fill'](0x0);}let _0x6c24=new Uint8Array(new Uint32Array([0x11223344])[_0x4fa2a5(0x18e)])[0x0]===0x44;function _0x372bc6(_0x57266c){return _0x57266c<<0x18&0xff000000|_0x57266c<<0x8&0xff0000|_0x57266c>>>0x8&0xff00|_0x57266c>>>0x18&0xff;}function _0x44655d(_0x5e3073){for(let _0x29f2f2=0x0;_0x29f2f2<_0x5e3073['length'];_0x29f2f2++)_0x5e3073[_0x29f2f2]=_0x372bc6(_0x5e3073[_0x29f2f2]);return _0x5e3073;}let _0x3f32bc=_0x6c24?_0x2d4fba=>_0x2d4fba:_0x44655d;function _0x38f376(_0x3f6cd2){const _0x428784=_0x4fa2a5;if(typeof _0x3f6cd2!='string')throw TypeError(_0x428784(0x275));return new Uint8Array(new TextEncoder()[_0x428784(0x382)](_0x3f6cd2));}function _0x30a19e(_0x1d8591,_0x53a145){const _0x2b62c1=_0x4fa2a5;return!_0x1d8591[_0x2b62c1(0x29a)]||!_0x53a145[_0x2b62c1(0x29a)]?!0x1:_0x1d8591[_0x2b62c1(0x18e)]===_0x53a145[_0x2b62c1(0x18e)]&&_0x1d8591['byteOffset']<_0x53a145[_0x2b62c1(0x272)]+_0x53a145[_0x2b62c1(0x29a)]&&_0x53a145[_0x2b62c1(0x272)]<_0x1d8591[_0x2b62c1(0x272)]+_0x1d8591[_0x2b62c1(0x29a)];}function _0x33d077(_0x1158ce,_0x3e8b67){const _0xdb53cc=_0x4fa2a5;if(_0x30a19e(_0x1158ce,_0x3e8b67)&&_0x1158ce[_0xdb53cc(0x272)]<_0x3e8b67[_0xdb53cc(0x272)])throw Error(_0xdb53cc(0x2b4));}function _0x24f204(..._0x2dc00b){const _0x22518f=_0x4fa2a5;let _0x4962af=0x0;for(let _0xcb11dc=0x0;_0xcb11dc<_0x2dc00b['length'];_0xcb11dc++){let _0x1769c2=_0x2dc00b[_0xcb11dc];_0x9aeef9(_0x1769c2),_0x4962af+=_0x1769c2[_0x22518f(0x208)];}let _0x23e741=new Uint8Array(_0x4962af);for(let _0x3c517b=0x0,_0x5a09a3=0x0;_0x3c517b<_0x2dc00b[_0x22518f(0x208)];_0x3c517b++){let _0x4449f3=_0x2dc00b[_0x3c517b];_0x23e741[_0x22518f(0x10c)](_0x4449f3,_0x5a09a3),_0x5a09a3+=_0x4449f3[_0x22518f(0x208)];}return _0x23e741;}let _0x28f13a=(_0x1278b0,_0x1a76a5)=>{const _0x2533f2=_0x4fa2a5;function _0x5582af(_0x208196,..._0x39c876){const _0x5abcba=_0x5846;if(_0x9aeef9(_0x208196,void 0x0,_0x5abcba(0x41b)),_0x1278b0['nonceLength']!==void 0x0){let _0x3f5344=_0x39c876[0x0];_0x9aeef9(_0x3f5344,_0x1278b0[_0x5abcba(0x262)]?void 0x0:_0x1278b0[_0x5abcba(0xdc)],_0x5abcba(0x305));}let _0x41296b=_0x1278b0[_0x5abcba(0x18a)],_0x56d60a=_0x1278b0[_0x5abcba(0xdc)]===void 0x0?0x0:0x1;if(!_0x1278b0[_0x5abcba(0x395)]){for(let _0x570b3c=_0x56d60a;_0x570b3c<_0x39c876['length'];_0x570b3c++)if(_0x66f7a1(_0x39c876[_0x570b3c]))throw Error('AAD\x20not\x20supported');}_0x1278b0[_0x5abcba(0x395)]&&_0x39c876[_0x56d60a]!==void 0x0&&_0x9aeef9(_0x39c876[_0x56d60a],void 0x0,_0x5abcba(0x196));let _0xb4e6c7=_0x1a76a5(_0x208196,..._0x39c876),_0xcb4fdb=(_0x24c26d,_0xd9c8aa)=>{const _0x38f8e8=_0x5abcba;if(_0xd9c8aa!==void 0x0){if(_0x24c26d!==0x2)throw Error(_0x38f8e8(0x11c));_0x9aeef9(_0xd9c8aa,void 0x0,'output');}},_0x1cf0e3=!0x1;return{'encrypt'(_0xe12c8c,_0xf820c6){const _0x1eded5=_0x5abcba;if(_0x1cf0e3)throw Error(_0x1eded5(0x38f));return _0x1cf0e3=!0x0,_0x9aeef9(_0xe12c8c,void 0x0,'data'),_0xcb4fdb(_0xb4e6c7['encrypt'][_0x1eded5(0x208)],_0xf820c6),_0xb4e6c7['encrypt'](_0xe12c8c,_0xf820c6);},'decrypt'(_0x13ec72,_0x5efa21){const _0x290705=_0x5abcba;if(_0x9aeef9(_0x13ec72,void 0x0,_0x290705(0x2c7)),_0x41296b&&_0x13ec72[_0x290705(0x208)]<_0x41296b)throw Error('\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength='+_0x41296b);return _0xcb4fdb(_0xb4e6c7[_0x290705(0x12e)][_0x290705(0x208)],_0x5efa21),_0xb4e6c7[_0x290705(0x12e)](_0x13ec72,_0x5efa21);}};}return Object[_0x2533f2(0x317)](_0x5582af,_0x1278b0),_0x5582af;};function _0x5e877e(_0x94847c,_0x3a1ce4,_0x1a265d=!0x0){const _0xdc5890=_0x4fa2a5;if(_0x3a1ce4===void 0x0)return new Uint8Array(_0x94847c);if(_0x9aeef9(_0x3a1ce4,_0x94847c,_0xdc5890(0x307)),_0x1a265d&&!_0x541e5f(_0x3a1ce4))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x3a1ce4;}function _0x541e5f(_0x5dbbcb){const _0x4cbbd2=_0x4fa2a5;return _0x5dbbcb[_0x4cbbd2(0x272)]%0x4==0x0;}function _0x17e0a5(_0x2b84c6){return Uint8Array['from'](_0x9aeef9(_0x2b84c6));}function _0x381ba2(_0x4fd5d5=0x20){const _0x5a5766=_0x4fa2a5;_0x42aebd(_0x4fd5d5,_0x5a5766(0x1a5));let _0x486543=typeof globalThis==_0x5a5766(0x221)?globalThis[_0x5a5766(0xcc)]:null;if(typeof(_0x486543==null?void 0x0:_0x486543[_0x5a5766(0x190)])!='function')throw Error('crypto.getRandomValues\x20must\x20be\x20defined');if(_0x4fd5d5>0x10000)throw RangeError(_0x5a5766(0x302)+_0x4fd5d5);return _0x486543[_0x5a5766(0x190)](new Uint8Array(_0x4fd5d5));}function _0x15ba46(_0x22ab0f){const _0x50e852=_0x4fa2a5;if(![0x10,0x18,0x20][_0x50e852(0x3ce)](_0x22ab0f[_0x50e852(0x208)]))throw Error(_0x50e852(0x1b6)+_0x22ab0f['length']);}function _0x511e71(_0x267b7e){return _0x267b7e<<0x1^0x11b&-(_0x267b7e>>0x7);}function _0x2ad33e(_0x5967e1,_0x10c9e3){let _0x566963=0x0;for(;_0x10c9e3>0x0;_0x10c9e3>>=0x1)_0x566963^=_0x5967e1&-(_0x10c9e3&0x1),_0x5967e1=_0x511e71(_0x5967e1);return _0x566963;}let _0x1be0a3=((()=>{let _0x277c91=new Uint8Array(0x100);for(let _0x123655=0x0,_0x56e1dc=0x1;_0x123655<0x100;_0x123655++,_0x56e1dc^=_0x511e71(_0x56e1dc))_0x277c91[_0x123655]=_0x56e1dc;let _0x291482=new Uint8Array(0x100);_0x291482[0x0]=0x63;for(let _0x28faa8=0x0;_0x28faa8<0xff;_0x28faa8++){let _0x4fd8e2=_0x277c91[0xff-_0x28faa8];_0x4fd8e2|=_0x4fd8e2<<0x8,_0x291482[_0x277c91[_0x28faa8]]=(_0x4fd8e2^_0x4fd8e2>>0x4^_0x4fd8e2>>0x5^_0x4fd8e2>>0x6^_0x4fd8e2>>0x7^0x63)&0xff;}return _0x39afad(_0x277c91),_0x291482;})()),_0x12c2d1=_0x1be0a3[_0x4fa2a5(0x224)]((_0x276075,_0x3bd99f)=>_0x1be0a3[_0x4fa2a5(0x3e1)](_0x3bd99f)),_0x3e91ed=_0x4007f=>_0x4007f<<0x18|_0x4007f>>>0x8,_0x2ebf87=_0x268244=>_0x268244<<0x8|_0x268244>>>0x18;function _0x5cb8b1(_0x253f9c,_0x40841f){const _0xdd543f=_0x4fa2a5;if(_0x253f9c[_0xdd543f(0x208)]!==0x100)throw Error(_0xdd543f(0x37b));let _0x22fb50=new Uint32Array(0x100)['map']((_0xfd826e,_0xa638ce)=>_0x40841f(_0x253f9c[_0xa638ce])),_0xc6223c=_0x22fb50['map'](_0x2ebf87),_0x1b5f6c=_0xc6223c['map'](_0x2ebf87),_0x520d28=_0x1b5f6c[_0xdd543f(0x224)](_0x2ebf87),_0x5b50bc=new Uint32Array(0x10000),_0x1c3da7=new Uint32Array(0x10000),_0x122a31=new Uint16Array(0x10000);for(let _0x11a4b2=0x0;_0x11a4b2<0x100;_0x11a4b2++)for(let _0x305263=0x0;_0x305263<0x100;_0x305263++){let _0x8551ee=_0x11a4b2*0x100+_0x305263;_0x5b50bc[_0x8551ee]=_0x22fb50[_0x11a4b2]^_0xc6223c[_0x305263],_0x1c3da7[_0x8551ee]=_0x1b5f6c[_0x11a4b2]^_0x520d28[_0x305263],_0x122a31[_0x8551ee]=_0x253f9c[_0x11a4b2]<<0x8|_0x253f9c[_0x305263];}return{'sbox':_0x253f9c,'sbox2':_0x122a31,'T0':_0x22fb50,'T1':_0xc6223c,'T2':_0x1b5f6c,'T3':_0x520d28,'T01':_0x5b50bc,'T23':_0x1c3da7};}let _0x4fb346=_0x5cb8b1(_0x1be0a3,_0x2cae9b=>_0x2ad33e(_0x2cae9b,0x3)<<0x18|_0x2cae9b<<0x10|_0x2cae9b<<0x8|_0x2ad33e(_0x2cae9b,0x2)),_0x1f171e=_0x5cb8b1(_0x12c2d1,_0x2d98f8=>_0x2ad33e(_0x2d98f8,0xb)<<0x18|_0x2ad33e(_0x2d98f8,0xd)<<0x10|_0x2ad33e(_0x2d98f8,0x9)<<0x8|_0x2ad33e(_0x2d98f8,0xe)),_0x48b978=((()=>{let _0x13cef6=new Uint8Array(0x10);for(let _0x1cc35a=0x0,_0x296ec5=0x1;_0x1cc35a<0x10;_0x1cc35a++,_0x296ec5=_0x511e71(_0x296ec5))_0x13cef6[_0x1cc35a]=_0x296ec5;return _0x13cef6;})());function _0x996450(_0x27de13){const _0x560af2=_0x4fa2a5;_0x9aeef9(_0x27de13);let _0x370b6d=_0x27de13[_0x560af2(0x208)];_0x15ba46(_0x27de13);let {sbox2:_0x4e4d84}=_0x4fb346,_0x3e548f=[];(!_0x6c24||!_0x541e5f(_0x27de13))&&_0x3e548f[_0x560af2(0x227)](_0x27de13=_0x17e0a5(_0x27de13));let _0xded20d=_0x3f32bc(_0x10e10c(_0x27de13)),_0xbd30ef=_0xded20d[_0x560af2(0x208)],_0xb82a8=_0x4bf6af=>_0xcc15aa(_0x4e4d84,_0x4bf6af,_0x4bf6af,_0x4bf6af,_0x4bf6af),_0x4050f0=new Uint32Array(_0x370b6d+0x1c);_0x4050f0[_0x560af2(0x10c)](_0xded20d);for(let _0x71333d=_0xbd30ef;_0x71333d<_0x4050f0['length'];_0x71333d++){let _0x974034=_0x4050f0[_0x71333d-0x1];_0x71333d%_0xbd30ef===0x0?_0x974034=_0xb82a8(_0x3e91ed(_0x974034))^_0x48b978[_0x71333d/_0xbd30ef-0x1]:_0xbd30ef>0x6&&_0x71333d%_0xbd30ef===0x4&&(_0x974034=_0xb82a8(_0x974034)),_0x4050f0[_0x71333d]=_0x4050f0[_0x71333d-_0xbd30ef]^_0x974034;}return _0x39afad(..._0x3e548f),_0x4050f0;}function _0xbf30f9(_0x255025){const _0x686dcf=_0x4fa2a5;let _0x2a0a58=_0x996450(_0x255025),_0x46cf0e=_0x2a0a58[_0x686dcf(0x1b2)](),_0x29431b=_0x2a0a58[_0x686dcf(0x208)],{sbox2:_0x2d3ed9}=_0x4fb346,{T0:_0x436809,T1:_0x36f200,T2:_0x2980e7,T3:_0x3a12de}=_0x1f171e;for(let _0x7b5061=0x0;_0x7b5061<_0x29431b;_0x7b5061+=0x4)for(let _0x52acac=0x0;_0x52acac<0x4;_0x52acac++)_0x46cf0e[_0x7b5061+_0x52acac]=_0x2a0a58[_0x29431b-_0x7b5061-0x4+_0x52acac];_0x39afad(_0x2a0a58);for(let _0xd2071=0x4;_0xd2071<_0x29431b-0x4;_0xd2071++){let _0x5b72fd=_0x46cf0e[_0xd2071],_0x2b42df=_0xcc15aa(_0x2d3ed9,_0x5b72fd,_0x5b72fd,_0x5b72fd,_0x5b72fd);_0x46cf0e[_0xd2071]=_0x436809[_0x2b42df&0xff]^_0x36f200[_0x2b42df>>>0x8&0xff]^_0x2980e7[_0x2b42df>>>0x10&0xff]^_0x3a12de[_0x2b42df>>>0x18];}return _0x46cf0e;}function _0x4a3c47(_0x233b85,_0x11f9bb,_0x934b55,_0x25134a,_0x15f2f1,_0x9d1b45){return _0x233b85[_0x934b55<<0x8&0xff00|_0x25134a>>>0x8&0xff]^_0x11f9bb[_0x15f2f1>>>0x8&0xff00|_0x9d1b45>>>0x18&0xff];}function _0xcc15aa(_0x35adb6,_0x3d2281,_0x44cf4e,_0x2560c0,_0x3ac240){return _0x35adb6[_0x3d2281&0xff|_0x44cf4e&0xff00]|_0x35adb6[_0x2560c0>>>0x10&0xff|_0x3ac240>>>0x10&0xff00]<<0x10;}function _0x4b1787(_0x9f406,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df){let {sbox2:_0x424451,T01:_0x5076fa,T23:_0x5b4a5a}=_0x4fb346,_0x1349f7=0x0;_0x3d28ce^=_0x9f406[_0x1349f7++],_0x7b339^=_0x9f406[_0x1349f7++],_0x2968e7^=_0x9f406[_0x1349f7++],_0x4b21df^=_0x9f406[_0x1349f7++];let _0x5a4327=_0x9f406['length']/0x4-0x2;for(let _0x45be64=0x0;_0x45be64<_0x5a4327;_0x45be64++){let _0x477429=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df),_0x57597d=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x7b339,_0x2968e7,_0x4b21df,_0x3d28ce),_0x4d7ad8=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x2968e7,_0x4b21df,_0x3d28ce,_0x7b339),_0x218fdc=_0x9f406[_0x1349f7++]^_0x4a3c47(_0x5076fa,_0x5b4a5a,_0x4b21df,_0x3d28ce,_0x7b339,_0x2968e7);_0x3d28ce=_0x477429,_0x7b339=_0x57597d,_0x2968e7=_0x4d7ad8,_0x4b21df=_0x218fdc;}return{'s0':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x3d28ce,_0x7b339,_0x2968e7,_0x4b21df),'s1':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x7b339,_0x2968e7,_0x4b21df,_0x3d28ce),'s2':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x2968e7,_0x4b21df,_0x3d28ce,_0x7b339),'s3':_0x9f406[_0x1349f7++]^_0xcc15aa(_0x424451,_0x4b21df,_0x3d28ce,_0x7b339,_0x2968e7)};}function _0x44b129(_0x23eafb,_0x2227a5,_0x54fb49,_0x1a4896,_0x478fb4){const _0xf1d553=_0x4fa2a5;let {sbox2:_0x2be31c,T01:_0x392f60,T23:_0x2881bd}=_0x1f171e,_0x5c953b=0x0;_0x2227a5^=_0x23eafb[_0x5c953b++],_0x54fb49^=_0x23eafb[_0x5c953b++],_0x1a4896^=_0x23eafb[_0x5c953b++],_0x478fb4^=_0x23eafb[_0x5c953b++];let _0x312ab5=_0x23eafb[_0xf1d553(0x208)]/0x4-0x2;for(let _0x122f49=0x0;_0x122f49<_0x312ab5;_0x122f49++){let _0x2da6be=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x2227a5,_0x478fb4,_0x1a4896,_0x54fb49),_0x508763=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x54fb49,_0x2227a5,_0x478fb4,_0x1a4896),_0x1cb58f=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x1a4896,_0x54fb49,_0x2227a5,_0x478fb4),_0x227cc9=_0x23eafb[_0x5c953b++]^_0x4a3c47(_0x392f60,_0x2881bd,_0x478fb4,_0x1a4896,_0x54fb49,_0x2227a5);_0x2227a5=_0x2da6be,_0x54fb49=_0x508763,_0x1a4896=_0x1cb58f,_0x478fb4=_0x227cc9;}return{'s0':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x2227a5,_0x478fb4,_0x1a4896,_0x54fb49),'s1':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x54fb49,_0x2227a5,_0x478fb4,_0x1a4896),'s2':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x1a4896,_0x54fb49,_0x2227a5,_0x478fb4),'s3':_0x23eafb[_0x5c953b++]^_0xcc15aa(_0x2be31c,_0x478fb4,_0x1a4896,_0x54fb49,_0x2227a5)};}function _0x2aa85d(_0x19a8c7,_0x32bfc0){const _0x2bb7d7=_0x4fa2a5;if(_0x9aeef9(_0x19a8c7),_0x19a8c7[_0x2bb7d7(0x208)]%0x10!=0x0)throw Error(_0x2bb7d7(0x1ae));_0x32bfc0!==void 0x0&&(_0x5e877e(_0x19a8c7[_0x2bb7d7(0x208)],_0x32bfc0),_0x33d077(_0x19a8c7,_0x32bfc0));}function _0x2cb0cc(_0x392e32,_0x141d97,_0x32d3ea){const _0x464291=_0x4fa2a5;_0x9aeef9(_0x392e32);let _0x5be1f3=_0x392e32[_0x464291(0x208)],_0x333bb3=_0x5be1f3%0x10;if(!_0x141d97&&_0x333bb3!==0x0)throw Error('plaintext\x20must\x20be\x20multiple\x20of\x2016');if(_0x141d97){let _0x255e8f=0x10-_0x333bb3;_0x255e8f||=0x10,_0x5be1f3+=_0x255e8f;}return _0x32d3ea!==void 0x0&&(_0x5e877e(_0x5be1f3,_0x32d3ea),_0x33d077(_0x392e32,_0x32d3ea)),_0x5be1f3;}function _0x38bc57(_0x165c4e,_0x42a5c1,_0x51d518){_0x51d518===void 0x0&&(_0x51d518=new Uint8Array(_0x42a5c1)),(!_0x6c24||!_0x541e5f(_0x165c4e))&&(_0x165c4e=_0x17e0a5(_0x165c4e));let _0xd1f02=_0x10e10c(_0x51d518);return{'b':_0x165c4e,'o':_0xd1f02,'out':_0x51d518};}function _0x2bb417(_0x3717b7,_0x37d1bf){const _0x2231ed=_0x4fa2a5;if(!_0x37d1bf)return _0x3717b7;let _0xabbc35=_0x3717b7['length'];if(_0xabbc35===0x0)throw Error(_0x2231ed(0x2ea));let _0x3a4d62=_0x3717b7[_0xabbc35-0x1],_0x2a9d86=0x1;_0x2a9d86&=_0x3a4d62-0x1>>>0x1f^0x1,_0x2a9d86&=0x10-_0x3a4d62>>>0x1f^0x1;for(let _0x2e75ee=0x0;_0x2e75ee<0x10;_0x2e75ee++){let _0x451984=_0x2e75ee-_0x3a4d62>>>0x1f,_0x4d5c37=+((_0x3717b7[_0xabbc35-0x1-_0x2e75ee]^_0x3a4d62)===0x0);_0x2a9d86&=_0x4d5c37|_0x451984^0x1;}if(!_0x2a9d86)throw Error(_0x2231ed(0x1bc));return _0x3717b7[_0x2231ed(0x398)](0x0,_0xabbc35-_0x3a4d62);}function _0x1d2973(_0x2d0d66){const _0x45f036=_0x4fa2a5;let _0x1d3c3a=new Uint8Array(0x10),_0x2a1e01=_0x10e10c(_0x1d3c3a);_0x1d3c3a[_0x45f036(0x10c)](_0x2d0d66);let _0x2e591e=0x10-_0x2d0d66[_0x45f036(0x208)];for(let _0x2c915=0x10-_0x2e591e;_0x2c915<0x10;_0x2c915++)_0x1d3c3a[_0x2c915]=_0x2e591e;return _0x2a1e01;}let _0x2b7111=_0x28f13a({'blockSize':0x10,'nonceLength':0x10},function(_0x55335c,_0x3e7687,_0x49df19={}){const _0x39de58=_0x4fa2a5;let _0x350ce2=!_0x49df19[_0x39de58(0x35e)];return{'encrypt'(_0x7d8e14,_0x388409){const _0x2e629f=_0x39de58;let _0x4c67cf=_0x2cb0cc(_0x7d8e14,_0x350ce2,_0x388409),_0x507bd3=_0x996450(_0x55335c),{b:_0x4c8f4c,o:_0x5f34fd,out:_0x932166}=_0x38bc57(_0x7d8e14,_0x4c67cf,_0x388409),_0x4caf25=_0x10e10c(_0x4c8f4c);_0x3f32bc(_0x4caf25);let _0x5f27db=_0x3e7687,_0x233edc=[_0x507bd3];(!_0x6c24||!_0x541e5f(_0x5f27db))&&_0x233edc[_0x2e629f(0x227)](_0x5f27db=_0x17e0a5(_0x5f27db));let _0x246193=_0x10e10c(_0x5f27db);_0x3f32bc(_0x246193);let _0x552ec0=_0x246193[0x0],_0x1a8ffd=_0x246193[0x1],_0x118cd1=_0x246193[0x2],_0x2b8cbc=_0x246193[0x3],_0x1adf15=0x0;for(;_0x1adf15+0x4<=_0x4caf25[_0x2e629f(0x208)];)_0x552ec0^=_0x4caf25[_0x1adf15+0x0],_0x1a8ffd^=_0x4caf25[_0x1adf15+0x1],_0x118cd1^=_0x4caf25[_0x1adf15+0x2],_0x2b8cbc^=_0x4caf25[_0x1adf15+0x3],{s0:_0x552ec0,s1:_0x1a8ffd,s2:_0x118cd1,s3:_0x2b8cbc}=_0x4b1787(_0x507bd3,_0x552ec0,_0x1a8ffd,_0x118cd1,_0x2b8cbc),_0x5f34fd[_0x1adf15++]=_0x552ec0,_0x5f34fd[_0x1adf15++]=_0x1a8ffd,_0x5f34fd[_0x1adf15++]=_0x118cd1,_0x5f34fd[_0x1adf15++]=_0x2b8cbc;if(_0x350ce2){let _0x4f05a4=_0x1d2973(_0x7d8e14[_0x2e629f(0x398)](_0x1adf15*0x4));_0x3f32bc(_0x4f05a4),_0x552ec0^=_0x4f05a4[0x0],_0x1a8ffd^=_0x4f05a4[0x1],_0x118cd1^=_0x4f05a4[0x2],_0x2b8cbc^=_0x4f05a4[0x3],{s0:_0x552ec0,s1:_0x1a8ffd,s2:_0x118cd1,s3:_0x2b8cbc}=_0x4b1787(_0x507bd3,_0x552ec0,_0x1a8ffd,_0x118cd1,_0x2b8cbc),_0x5f34fd[_0x1adf15++]=_0x552ec0,_0x5f34fd[_0x1adf15++]=_0x1a8ffd,_0x5f34fd[_0x1adf15++]=_0x118cd1,_0x5f34fd[_0x1adf15++]=_0x2b8cbc,_0x39afad(_0x4f05a4);}return _0x3f32bc(_0x5f34fd),_0x39afad(..._0x233edc),_0x4c8f4c!==_0x7d8e14&&_0x39afad(_0x4c8f4c),_0x932166;},'decrypt'(_0x798f23,_0x9a40bd){const _0x20b6a5=_0x39de58;_0x2aa85d(_0x798f23,_0x9a40bd);let _0x57e33b=_0xbf30f9(_0x55335c);_0x9a40bd===void 0x0&&(_0x9a40bd=new Uint8Array(_0x798f23['length']));let _0x136d58=_0x3e7687,_0x70af0d=[_0x57e33b];(!_0x6c24||!_0x541e5f(_0x136d58))&&_0x70af0d[_0x20b6a5(0x227)](_0x136d58=_0x17e0a5(_0x136d58));let _0x1fde1f=_0x10e10c(_0x136d58);_0x3f32bc(_0x1fde1f),(!_0x6c24||!_0x541e5f(_0x798f23))&&_0x70af0d[_0x20b6a5(0x227)](_0x798f23=_0x17e0a5(_0x798f23));let _0x38ea7c=_0x10e10c(_0x798f23),_0x50ad17=_0x10e10c(_0x9a40bd);_0x3f32bc(_0x38ea7c);let _0xa0c74a=_0x1fde1f[0x0],_0x3d92a8=_0x1fde1f[0x1],_0x5c523d=_0x1fde1f[0x2],_0x15c11d=_0x1fde1f[0x3];for(let _0x1a0f9c=0x0;_0x1a0f9c+0x4<=_0x38ea7c[_0x20b6a5(0x208)];){let _0x14dab0=_0xa0c74a,_0x5d58df=_0x3d92a8,_0x37348c=_0x5c523d,_0x111fdc=_0x15c11d;_0xa0c74a=_0x38ea7c[_0x1a0f9c+0x0],_0x3d92a8=_0x38ea7c[_0x1a0f9c+0x1],_0x5c523d=_0x38ea7c[_0x1a0f9c+0x2],_0x15c11d=_0x38ea7c[_0x1a0f9c+0x3];let {s0:_0x58048c,s1:_0x16ab14,s2:_0x46cbcd,s3:_0x286f3c}=_0x44b129(_0x57e33b,_0xa0c74a,_0x3d92a8,_0x5c523d,_0x15c11d);_0x50ad17[_0x1a0f9c++]=_0x58048c^_0x14dab0,_0x50ad17[_0x1a0f9c++]=_0x16ab14^_0x5d58df,_0x50ad17[_0x1a0f9c++]=_0x46cbcd^_0x37348c,_0x50ad17[_0x1a0f9c++]=_0x286f3c^_0x111fdc;}return _0x3f32bc(_0x50ad17),_0x39afad(..._0x70af0d),_0x2bb417(_0x9a40bd,_0x350ce2);}};});function _0x4a357b(_0x4c1dd8){const _0x4a69a2=_0x4fa2a5;let _0x506e34=atob(_0x4c1dd8),_0x15a89a=new Uint8Array(_0x506e34['length']);for(let _0x85363b=0x0;_0x85363b<_0x506e34[_0x4a69a2(0x208)];_0x85363b++)_0x15a89a[_0x85363b]=_0x506e34[_0x4a69a2(0x1a0)](_0x85363b);return _0x15a89a;}function _0x1e1e57(_0x2ac82a){const _0xa1300=_0x4fa2a5;let _0x1bcb9d='';for(let _0x264517=0x0;_0x264517<_0x2ac82a[_0xa1300(0x208)];_0x264517++)_0x1bcb9d+=String['fromCharCode'](_0x2ac82a[_0x264517]);return btoa(_0x1bcb9d);}function _0x3e87cc(_0x37ca8b,_0x85ac32){const _0x231b11=_0x4fa2a5;let _0x258c9e=_0x4a357b(_0x85ac32),_0x4d9a3d=_0x381ba2(0x10);return _0x1e1e57(_0x24f204(_0x4d9a3d,_0x2b7111(_0x258c9e,_0x4d9a3d)[_0x231b11(0x1ff)](_0x38f376(_0x37ca8b))));}function _0x582dbe(){const _0x18de8f=_0x4fa2a5;let _0x5506ef=(0x0,_0x224431[_0x18de8f(0x112)])()[_0x18de8f(0xe2)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5506ef){let _0x1fc186={'time':Math['floor'](Date[_0x18de8f(0x3f4)]()/0x3e8),'domain':location[_0x18de8f(0x125)]};return _0x3e87cc(JSON[_0x18de8f(0x3be)](_0x1fc186),_0x5506ef);}}let _0x2a10c7=class{constructor(_0x3dc080){const _0x194ead=_0x4fa2a5;this[_0x194ead(0x33c)]=_0x3dc080,this[_0x194ead(0x150)]();}['_initRequestHeader'](){const _0x33ab45=_0x4fa2a5;this[_0x33ab45(0x33c)][_0x33ab45(0x3f1)]({'interceptor':(_0x2060d6,_0x142c48)=>{const _0x36ed41=_0x33ab45;let _0x3234ce=_0x582dbe();return _0x3234ce&&_0x2060d6[_0x36ed41(0x17e)]['set'](_0x36ed41(0x2f3),_0x3234ce),_0x142c48(_0x2060d6);}});}};_0x2a10c7=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)]))],_0x2a10c7);let _0x4f0cf4=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x346ce8,_0x374d7c,_0x263488){const _0x23ac41=_0x4fa2a5;super(),this[_0x23ac41(0x314)]=_0x346ce8,this[_0x23ac41(0xff)]=_0x374d7c,this[_0x23ac41(0x304)]=_0x263488,_0x5aacdf(this,_0x23ac41(0x218),new _0x450705[(_0x23ac41(0x1f8))](null)),_0x5aacdf(this,'_unitLoaded$',new _0x450705[(_0x23ac41(0x155))]()),_0x5aacdf(this,_0x23ac41(0x3f5),this[_0x23ac41(0x218)][_0x23ac41(0x343)]()),_0x5aacdf(this,_0x23ac41(0x21d),this[_0x23ac41(0x220)][_0x23ac41(0x343)]());}[_0x4fa2a5(0x3b4)](){const _0x3ad2ac=_0x4fa2a5;super[_0x3ad2ac(0x3b4)](),this[_0x3ad2ac(0x220)][_0x3ad2ac(0x410)](),this[_0x3ad2ac(0x218)]['complete']();}async[_0x4fa2a5(0x177)](_0x28c302,_0xcc0f12,_0x18eb7f,_0x590452){const _0x2b1a08=_0x4fa2a5;this[_0x2b1a08(0x218)][_0x2b1a08(0x163)]({'unitId':_0x28c302,'type':_0xcc0f12,'subUnitId':_0x590452});let _0x370c22=null;switch(_0xcc0f12){case _0x433f65['UniverInstanceType'][_0x2b1a08(0xb4)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0xf0)](_0x28c302,_0x18eb7f,void 0x0,{'initialSubUnitId':_0x590452});break;case _0x433f65['UniverInstanceType'][_0x2b1a08(0x237)]:_0x370c22=await this['_snapshotService'][_0x2b1a08(0x2ed)](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0xcd)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0x126)](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x169)]:_0x370c22=await this[_0x2b1a08(0xff)]['loadBoard'](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x146)]:_0x370c22=await this[_0x2b1a08(0xff)]['loadBase'](_0x28c302,_0x18eb7f);break;case _0x433f65[_0x2b1a08(0xa5)][_0x2b1a08(0x3ff)]:_0x370c22=await this[_0x2b1a08(0xff)][_0x2b1a08(0x3cc)](_0x28c302,_0x18eb7f);break;default:this[_0x2b1a08(0x314)][_0x2b1a08(0x187)](_0x2b1a08(0x2a6),_0x2b1a08(0x327));}return _0x370c22&&this['_unitLoaded$'][_0x2b1a08(0x163)](_0x370c22),_0x370c22;}async[_0x4fa2a5(0x312)](_0x3bd510,_0x45cff8,_0x68fe01){const _0x3f3356=_0x4fa2a5;var _0x5880a6;this[_0x3f3356(0x218)][_0x3f3356(0x163)]({'unitId':_0x3bd510,'type':_0x45cff8,'subUnitId':_0x68fe01});let _0x3c5bb1=0x0,_0x25f299=await((_0x5880a6=this[_0x3f3356(0x304)])==null?void 0x0:_0x5880a6['loadOfflineData'](_0x3bd510));return _0x25f299&&(_0x25f299[_0x3f3356(0x391)]||_0x25f299['mutations'][_0x3f3356(0x208)]!==0x0)&&(_0x3c5bb1=_0x25f299[_0x3f3356(0xf5)]),_0x3c5bb1===0x0&&this[_0x3f3356(0x314)][_0x3f3356(0x23b)](_0x3f3356(0x2a6),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3f3356(0x177)](_0x3bd510,_0x45cff8,_0x3c5bb1,_0x68fe01);}};_0x4f0cf4=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x3a5734[_0x4fa2a5(0x2a1)])),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x32b)])(_0x471235))],_0x4f0cf4);let _0x55876d=class{constructor(_0x41680f,_0x10f0ba,_0x3cb1ef){const _0x437afe=_0x4fa2a5;this['_httpService']=_0x41680f,this['_configService']=_0x10f0ba,this[_0x437afe(0x3f3)]=_0x3cb1ef,_0x5aacdf(this,'_waitCount',0x0),_0x5aacdf(this,_0x437afe(0x415),new _0x450705[(_0x437afe(0x155))]()),_0x5aacdf(this,_0x437afe(0x322),this[_0x437afe(0x415)]),_0x5aacdf(this,_0x437afe(0x271),new Map());}[_0x4fa2a5(0x149)](_0x1437fd){const _0x454090=_0x4fa2a5;this[_0x454090(0x133)]=_0x1437fd,this['_change$'][_0x454090(0x163)](_0x1437fd);}[_0x4fa2a5(0x118)](_0x279a05,_0x2d012f){const _0x58f93f=_0x4fa2a5;if(_0x2d012f===_0x433f65[_0x58f93f(0x17b)]['BASE64']){let _0x13e129=new Image();return _0x13e129[_0x58f93f(0x28d)]=_0x279a05,_0x13e129;}return this[_0x58f93f(0x271)][_0x58f93f(0x2c0)](_0x279a05);}[_0x4fa2a5(0xc2)](_0x1b4d47,_0x51cbab,_0x173a25){const _0x193f78=_0x4fa2a5;_0x51cbab!==_0x433f65[_0x193f78(0x17b)]['BASE64']&&_0x173a25!=null&&this['_imageSourceCache'][_0x193f78(0x10c)](_0x1b4d47,_0x173a25);}async[_0x4fa2a5(0x397)](_0x395d1b){const _0x48c20c=_0x4fa2a5;try{let _0x8bb483=this[_0x48c20c(0x3b0)](this[_0x48c20c(0x2f6)](),''+_0x395d1b),_0x496be0=(await this['_httpService']['get'](_0x8bb483))[_0x48c20c(0x280)];if(_0x496be0['error']&&_0x496be0[_0x48c20c(0x187)][_0x48c20c(0xb6)]===_0x4ed0d4['ErrorCode']['OK']){let _0x5383c9=(0x0,_0x433f65['resolveWithBasePath'])(_0x496be0['url'],this[_0x48c20c(0x2d1)]());return Promise[_0x48c20c(0x140)](_0x5383c9);}return Promise['reject'](_0x496be0[_0x48c20c(0x187)]);}catch(_0x59d559){return Promise[_0x48c20c(0x170)](_0x59d559);}}async[_0x4fa2a5(0x132)](_0x4b592e){const _0x57c80c=_0x4fa2a5;let _0xfd4c26='';if(!_0x21f767[_0x57c80c(0x2dd)]['includes'](_0x4b592e[_0x57c80c(0x3c6)]))return this['_decreaseWaiting'](),Promise[_0x57c80c(0x170)](Error(_0x433f65['ImageUploadStatusType'][_0x57c80c(0x212)]));if(_0x4b592e[_0x57c80c(0x1dd)]>(0x0,_0x21f767[_0x57c80c(0x1fb)])())return this[_0x57c80c(0x388)](),Promise['reject'](Error(_0x433f65[_0x57c80c(0x29d)][_0x57c80c(0x319)]));try{let _0x44ddc4=new FormData();_0x44ddc4[_0x57c80c(0x3c4)](_0x57c80c(0x173),_0x4b592e);let _0x583de1=this[_0x57c80c(0x3f3)][_0x57c80c(0x2f5)](),_0x4ca7ba=_0x583de1==null?void 0x0:_0x583de1[_0x57c80c(0xed)]();if(!_0x4ca7ba)throw Error(_0x57c80c(0x2a9));let _0x319913=this[_0x57c80c(0x3dd)]()+'?size='+_0x4b592e[_0x57c80c(0x1dd)]['toString']()+_0x57c80c(0x19d)+_0x4ed0d4[_0x57c80c(0x158)]['UnitEmbedded']+_0x57c80c(0x180)+encodeURIComponent(_0x4ca7ba),_0x1997e1={'body':_0x44ddc4},_0x15a5e1=(await this['_httpService'][_0x57c80c(0x201)](_0x319913,_0x1997e1))['body'];if(typeof _0x15a5e1['FileId']!=_0x57c80c(0x265))return this[_0x57c80c(0x388)](),Promise[_0x57c80c(0x170)](Error(_0x433f65[_0x57c80c(0x29d)][_0x57c80c(0x1cf)]));_0xfd4c26=_0x15a5e1['FileId'];}catch{return this[_0x57c80c(0x388)](),Promise['reject'](Error(_0x433f65[_0x57c80c(0x29d)]['ERROR_IMAGE']));}return new Promise((_0x2f5aba,_0x1b8b7c)=>{const _0x4fc8de=_0x57c80c;let _0x585083=new FileReader();_0x585083['readAsDataURL'](_0x4b592e),_0x585083[_0x4fc8de(0xf3)]=_0x3b8a34=>{const _0x46ee09=_0x4fc8de;var _0x517af7;let _0x42cd53=(_0x517af7=_0x3b8a34[_0x46ee09(0x24c)])==null?void 0x0:_0x517af7['result'];if(_0x42cd53==null){this[_0x46ee09(0x388)](),_0x1b8b7c(Error(_0x433f65[_0x46ee09(0x29d)][_0x46ee09(0x1cf)]));return;}_0x2f5aba({'imageId':(0x0,_0x433f65[_0x46ee09(0xb7)])(0x6),'imageSourceType':_0x433f65[_0x46ee09(0x17b)][_0x46ee09(0x2b3)],'source':_0xfd4c26,'base64Cache':_0x42cd53,'status':_0x433f65[_0x46ee09(0x29d)][_0x46ee09(0x109)]}),this[_0x46ee09(0x388)]();};});}[_0x4fa2a5(0x3dd)](){const _0xfca754=_0x4fa2a5;let _0x48ecc3=this[_0xfca754(0x1a9)]['getConfig'](_0x18fed6);return(_0x48ecc3==null?void 0x0:_0x48ecc3[_0xfca754(0x2de)])??'/universer-api/stream/file/upload';}[_0x4fa2a5(0x2f6)](){const _0x3ed238=_0x4fa2a5;let _0x1f11a4=this['_configService'][_0x3ed238(0xd7)](_0x18fed6);return(_0x1f11a4==null?void 0x0:_0x1f11a4['signUrlServerUrl'])??_0x3ed238(0x338);}[_0x4fa2a5(0x2d1)](){const _0x1021a3=_0x4fa2a5;let _0x211fcf=this[_0x1021a3(0x1a9)]['getConfig'](_0x18fed6);return(_0x211fcf==null?void 0x0:_0x211fcf[_0x1021a3(0x18f)])??location[_0x1021a3(0x1b7)];}[_0x4fa2a5(0x3b0)](_0x3b18bd,_0x501555){const _0x4bd075=_0x4fa2a5;return _0x3b18bd[_0x4bd075(0x3cd)](_0x4bd075(0x30d),_0x501555);}[_0x4fa2a5(0x388)](){const _0x186817=_0x4fa2a5;--this[_0x186817(0x133)],this['_change$']['next'](this[_0x186817(0x133)]);}};_0x55876d=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)])),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65['IUniverInstanceService']))],_0x55876d);let _0x1e046a=class{constructor(_0x4b52c5,_0x12e510){const _0x139615=_0x4fa2a5;this[_0x139615(0x1a9)]=_0x4b52c5,this[_0x139615(0x2c9)]=_0x12e510;}[_0x4fa2a5(0x213)](){const _0x492a67=_0x4fa2a5;let _0x5424de=this[_0x492a67(0x1a9)][_0x492a67(0xd7)](_0x18fed6);return(_0x5424de==null?void 0x0:_0x5424de[_0x492a67(0x301)])??_0x492a67(0xca);}async[_0x4fa2a5(0x2d8)](_0x204eb4){const _0xcfe38f=_0x4fa2a5;let _0x3021d5=this[_0xcfe38f(0x213)]()+_0xcfe38f(0x225);return{'list':[{'title':_0xcfe38f(0x2ee),'mentions':(await this[_0xcfe38f(0x2c9)][_0xcfe38f(0x2c0)](_0x3021d5,{'params':{'objectID':_0x204eb4[_0xcfe38f(0x229)],'unitID':_0x204eb4[_0xcfe38f(0x229)]}}))[_0xcfe38f(0x280)][_0xcfe38f(0x195)]['map'](_0x9e7654=>({'objectId':_0x9e7654['id'],'name':_0x9e7654[_0xcfe38f(0x3bc)]['name'],'metadata':{'icon':_0x9e7654[_0xcfe38f(0x3bc)]['avatar']},'label':_0x9e7654[_0xcfe38f(0x3bc)][_0xcfe38f(0x341)],'objectType':_0x433f65['MentionType'][_0xcfe38f(0x1d7)]})),'metadata':{},'type':_0x433f65[_0xcfe38f(0x35f)][_0xcfe38f(0x1d7)]}]};}};_0x1e046a=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x2aa)])),_0x374c65(0x1,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x544d24[_0x4fa2a5(0x320)]))],_0x1e046a);let _0x151d68=class extends _0x433f65[_0x4fa2a5(0x24b)]{constructor(_0x1fef3e,_0xc362b,_0x10e084,_0x31c88b,_0x5e3c64,_0x5d10ed){const _0x28844d=_0x4fa2a5;super(),this[_0x28844d(0x40f)]=_0x1fef3e,this[_0x28844d(0x3f3)]=_0xc362b,this[_0x28844d(0x3c9)]=_0x10e084,this[_0x28844d(0x2a2)]=_0x31c88b,this[_0x28844d(0x119)]=_0x5e3c64,this[_0x28844d(0x347)]=_0x5d10ed,_0x5aacdf(this,_0x28844d(0x249),new Set()),this[_0x28844d(0x413)](()=>this[_0x28844d(0x249)][_0x28844d(0x2f9)]()),this[_0x28844d(0x413)](_0x298028(this[_0x28844d(0x3f3)])[_0x28844d(0x252)](({unitId:_0x505f2f})=>this[_0x28844d(0x249)][_0x28844d(0x3ae)](_0x505f2f))),this[_0x28844d(0x186)](),this[_0x28844d(0x1f1)](),[_0x433f65[_0x28844d(0xa5)][_0x28844d(0x237)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0xcd)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0x146)],_0x433f65[_0x28844d(0xa5)][_0x28844d(0x169)]][_0x28844d(0x1d2)](_0x43a6c9=>{const _0x35b67a=_0x28844d;this['disposeWithMe'](this[_0x35b67a(0x3f3)][_0x35b67a(0x40e)](_0x43a6c9)['subscribe'](_0x1366d4=>{const _0x5d3a40=_0x35b67a;this['_closedUnits'][_0x5d3a40(0x21b)](_0x1366d4[_0x5d3a40(0xed)]()),this[_0x5d3a40(0x40f)][_0x5d3a40(0x2c0)](_0x433f65[_0x5d3a40(0x15c)])[_0x5d3a40(0x286)](_0x1366d4[_0x5d3a40(0xed)]());}));});}[_0x4fa2a5(0x1f1)](){const _0x3a3aaf=_0x4fa2a5;let _0x29b3a0=async(_0x48057e,_0x46b4ec)=>{const _0x4350a2=_0x5846;let _0x2173e8=await this[_0x4350a2(0x119)][_0x4350a2(0x40c)](_0x48057e);this[_0x4350a2(0x18b)]||this[_0x4350a2(0x249)]['has'](_0x48057e)||!this['_univerInstanceService'][_0x4350a2(0x2df)](_0x48057e)||_0x2173e8[_0x4350a2(0x1eb)][_0x4350a2(0x192)]((0x0,_0x223d83[_0x4350a2(0x260)])(_0x16ed23=>_0x16ed23[_0x4350a2(0x130)]===_0x3a5734[_0x4350a2(0xec)][_0x4350a2(0x3ef)]),(0x0,_0x223d83[_0x4350a2(0x1c3)])((0x0,_0x450705['merge'])(this[_0x4350a2(0xc4)],this['_univerInstanceService'][_0x4350a2(0x3eb)][_0x4350a2(0x192)]((0x0,_0x223d83[_0x4350a2(0x260)])(_0x54fdba=>_0x54fdba['getUnitId']()===_0x48057e)))))[_0x4350a2(0x252)](_0xbb233=>{const _0x307500=_0x4350a2;let {reason:_0x52b78a}=_0xbb233[_0x307500(0x2c7)];this[_0x307500(0x347)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x52b78a}),this[_0x307500(0x249)]['add'](_0x48057e),this['_injector'][_0x307500(0x2c0)](_0x433f65[_0x307500(0x15c)])[_0x307500(0x286)](_0x48057e);let _0x2b1cc6=_0x3d16ab(_0x46b4ec);_0x2b1cc6!=null&&this[_0x307500(0x303)](_0x48057e,_0x2b1cc6,_0x4ed0d4[_0x307500(0x17f)][_0x307500(0x268)],!0x1),this['_collaborationSessionService'][_0x307500(0x284)](_0x48057e);});};_0x298028(this[_0x3a3aaf(0x3f3)])[_0x3a3aaf(0x192)]((0x0,_0x223d83[_0x3a3aaf(0x260)])(({unitId:_0x135563})=>!(0x0,_0x433f65['isInternalEditorID'])(_0x135563)),(0x0,_0x223d83[_0x3a3aaf(0x1c3)])(this['dispose$']))[_0x3a3aaf(0x252)](({type:_0x1a3f5,unitId:_0xd8a18b})=>{const _0x457280=_0x3a3aaf;_0x29b3a0(_0xd8a18b,_0x1a3f5)[_0x457280(0x1a4)](_0x107f7a=>this[_0x457280(0x40f)][_0x457280(0x2c0)](_0x433f65['ILogService'])[_0x457280(0x187)](_0x107f7a));});}[_0x4fa2a5(0x186)](){const _0x22d873=_0x4fa2a5;let _0xb6dfbc=async(_0xd1196f,_0x1af461)=>{const _0x239792=_0x5846;let _0x5a73c5=await this['_collaborationSessionService'][_0x239792(0x40c)](_0xd1196f);if(!(this[_0x239792(0x18b)]||this[_0x239792(0x249)][_0x239792(0x1de)](_0xd1196f)||!this['_univerInstanceService'][_0x239792(0x2df)](_0xd1196f))){if(_0x1af461===_0x433f65[_0x239792(0xa5)][_0x239792(0xb4)]){let _0x4f2648=this[_0x239792(0x40f)][_0x239792(0x2c0)](_0x6a2ac6['SheetPermissionInitController']);await _0x4f2648[_0x239792(0x2f4)](_0xd1196f),_0x5a73c5[_0x239792(0x1eb)][_0x239792(0x192)]((0x0,_0x223d83[_0x239792(0x260)])(_0x5054dc=>_0x5054dc[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x136)]),(0x0,_0x223d83[_0x239792(0x1c3)])((0x0,_0x450705[_0x239792(0x298)])(this[_0x239792(0xc4)],_0x5a73c5['event$'][_0x239792(0x192)]((0x0,_0x223d83['filter'])(_0x36fbee=>_0x36fbee[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x3ef)])),this[_0x239792(0x3f3)][_0x239792(0x3eb)][_0x239792(0x192)]((0x0,_0x223d83['filter'])(_0x22a505=>_0x22a505[_0x239792(0xed)]()===_0xd1196f)))))[_0x239792(0x252)](_0x530a61=>{const _0x367084=_0x239792;let {objectId:_0x677f8e}=_0x530a61['data'];_0x677f8e===_0xd1196f?_0x4f2648['initWorkbookPermissionChange'](_0xd1196f):_0x4f2648[_0x367084(0x40a)](_0xd1196f,_0x677f8e);});return;}_0x5a73c5['event$']['pipe']((0x0,_0x223d83[_0x239792(0x260)])(_0x1a2fc9=>_0x1a2fc9[_0x239792(0x130)]===_0x3a5734['CollaborationEvent'][_0x239792(0x136)]),(0x0,_0x223d83[_0x239792(0x1c3)])((0x0,_0x450705[_0x239792(0x298)])(this[_0x239792(0xc4)],_0x5a73c5[_0x239792(0x1eb)]['pipe']((0x0,_0x223d83[_0x239792(0x260)])(_0x2d3fa3=>_0x2d3fa3[_0x239792(0x130)]===_0x3a5734[_0x239792(0xec)][_0x239792(0x3ef)])),this[_0x239792(0x3f3)]['unitDisposed$'][_0x239792(0x192)]((0x0,_0x223d83[_0x239792(0x260)])(_0x5f2ebc=>_0x5f2ebc[_0x239792(0xed)]()===_0xd1196f)))))[_0x239792(0x252)](()=>{const _0x185572=_0x239792;this[_0x185572(0x2b8)](_0xd1196f,_0x1af461)[_0x185572(0x1a4)](_0x102a02=>this[_0x185572(0x40f)][_0x185572(0x2c0)](_0x433f65[_0x185572(0x1b1)])['error'](_0x102a02));}),await this[_0x239792(0x2b8)](_0xd1196f,_0x1af461);}};_0x298028(this[_0x22d873(0x3f3)])[_0x22d873(0x192)]((0x0,_0x223d83['filter'])(({unitId:_0x1a440f})=>!(0x0,_0x433f65[_0x22d873(0x412)])(_0x1a440f)),(0x0,_0x223d83[_0x22d873(0x1c3)])(this[_0x22d873(0xc4)]))[_0x22d873(0x252)](({type:_0x2476ce,unitId:_0x44bd48})=>{const _0x2de8e1=_0x22d873;_0xb6dfbc(_0x44bd48,_0x2476ce)[_0x2de8e1(0x1a4)](_0x514826=>this[_0x2de8e1(0x40f)][_0x2de8e1(0x2c0)](_0x433f65[_0x2de8e1(0x1b1)])[_0x2de8e1(0x187)](_0x514826));});}async[_0x4fa2a5(0x2b8)](_0x3ab792,_0x16eab5){const _0x3f9d5e=_0x4fa2a5;let _0x4ab38e=_0x3d16ab(_0x16eab5);if(_0x4ab38e==null)return;let _0x40fa0d=this[_0x3f9d5e(0x40f)][_0x3f9d5e(0x2c0)](_0x433f65['ObjectPermissionService']);if(_0x40fa0d['supports']({'unitId':_0x3ab792,'objectId':_0x3ab792,'objectType':_0x4ab38e})){await _0x40fa0d['refreshUnit'](_0x3ab792);return;}let _0x5f0621=this[_0x3f9d5e(0x13c)](_0x3ab792,_0x4ab38e);if(!_0x5f0621[_0x3f9d5e(0x208)])return;let _0x222a99=await this[_0x3f9d5e(0x2a2)][_0x3f9d5e(0x137)]({'objectID':_0x3ab792,'objectType':_0x4ab38e,'unitID':_0x3ab792,'actions':_0x5f0621[_0x3f9d5e(0x224)](({action:_0x58cada})=>_0x58cada)});this[_0x3f9d5e(0x18b)]||this[_0x3f9d5e(0x249)][_0x3f9d5e(0x1de)](_0x3ab792)||!this[_0x3f9d5e(0x3f3)][_0x3f9d5e(0x2df)](_0x3ab792)||_0x222a99[_0x3f9d5e(0x1d2)](_0x27c379=>{const _0x7941c1=_0x3f9d5e;let _0x2c1911=_0x27c379[_0x7941c1(0x1d1)],_0x4bb9b2=_0x27c379['allowed'];_0x2c1911!=null&&_0x4bb9b2!=null&&_0x5f0621['filter'](_0x13b3ee=>_0x13b3ee[_0x7941c1(0x1d1)]===_0x2c1911)[_0x7941c1(0x1d2)](_0x357527=>this[_0x7941c1(0x3c9)]['updatePermissionPoint'](_0x357527['id'],_0x4bb9b2));});}[_0x4fa2a5(0x13c)](_0x30e326,_0xcfaff3){const _0x4342e0=_0x4fa2a5;let _0x583037=[];return this[_0x4342e0(0x3c9)][_0x4342e0(0x2a7)]()[_0x4342e0(0x1d2)]((_0x210e94,_0x46e0fb)=>{const _0x6b4f93=_0x4342e0;_0x210e94[_0x6b4f93(0x252)](_0x3cc629=>{const _0xf4eb3d=_0x6b4f93;_0x3cc629[_0xf4eb3d(0x3c6)]===_0xcfaff3&&_0xf4eb3d(0x229)in _0x3cc629&&_0x3cc629[_0xf4eb3d(0x229)]===_0x30e326&&(!(_0xf4eb3d(0x3b5)in _0x3cc629)||_0x3cc629[_0xf4eb3d(0x3b5)]===_0x30e326)&&_0x583037['push']({'id':_0x46e0fb,'action':_0x3cc629['subType']});})[_0x6b4f93(0x3ba)]();}),_0x583037;}['_updateUnitPermissionPoint'](_0x18af0f,_0x2f7ee9,_0x2fdc86,_0x3c3bb8){const _0x4e258d=_0x4fa2a5;this[_0x4e258d(0x3c9)][_0x4e258d(0x2a7)]()[_0x4e258d(0x1d2)]((_0x22a915,_0x47c51d)=>{const _0x435c2c=_0x4e258d;let _0x667087=!0x1;_0x22a915[_0x435c2c(0x252)](_0x346ffe=>{const _0x181d7a=_0x435c2c;_0x667087=_0x346ffe[_0x181d7a(0x3c6)]===_0x2f7ee9&&_0x346ffe[_0x181d7a(0x2da)]===_0x2fdc86&&_0x181d7a(0x229)in _0x346ffe&&_0x346ffe[_0x181d7a(0x229)]===_0x18af0f&&(!('objectId'in _0x346ffe)||_0x346ffe[_0x181d7a(0x3b5)]===_0x18af0f);})[_0x435c2c(0x3ba)](),_0x667087&&this[_0x435c2c(0x3c9)][_0x435c2c(0x28e)](_0x47c51d,_0x3c3bb8);});}};_0x151d68=_0x13514e([_0x374c65(0x0,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x26c)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x3ed)]),_0x374c65(0x4,(0x0,_0x433f65['Inject'])(_0x2b5c76)),_0x374c65(0x5,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x483ee6))],_0x151d68);function _0x298028(_0x1f4429){const _0x84f9ed=_0x4fa2a5;return(0x0,_0x450705[_0x84f9ed(0x298)])(...[_0x433f65[_0x84f9ed(0xa5)]['UNIVER_SHEET'],_0x433f65[_0x84f9ed(0xa5)][_0x84f9ed(0x237)],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_SLIDE'],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_BOARD'],_0x433f65[_0x84f9ed(0xa5)]['UNIVER_BASE']][_0x84f9ed(0x224)](_0x5ee4a3=>_0x1f4429[_0x84f9ed(0x1bb)](_0x5ee4a3)['pipe']((0x0,_0x223d83[_0x84f9ed(0x224)])(_0x3244f2=>({'type':_0x5ee4a3,'unitId':_0x3244f2[_0x84f9ed(0xa4)]['getUnitId']()})))));}function _0x3d16ab(_0x579a97){const _0x56d354=_0x4fa2a5;switch(_0x579a97){case _0x433f65[_0x56d354(0xa5)]['UNIVER_SHEET']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x269)];case _0x433f65[_0x56d354(0xa5)]['UNIVER_DOC']:return _0x4ed0d4[_0x56d354(0x23e)]['Document'];case _0x433f65[_0x56d354(0xa5)]['UNIVER_SLIDE']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x3a7)];case _0x433f65['UniverInstanceType']['UNIVER_BOARD']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x211)];case _0x433f65[_0x56d354(0xa5)]['UNIVER_BASE']:return _0x4ed0d4[_0x56d354(0x23e)][_0x56d354(0x3f7)];default:return;}}let _0x557990=class{constructor(_0x10814c,_0x1d5d08){const _0x54e3dc=_0x4fa2a5;this[_0x54e3dc(0x1a9)]=_0x10814c,this['_httpService']=_0x1d5d08;}async['getUnitOnRev'](_0x43f941,_0x842129){const _0x5ec2b3=_0x4fa2a5;var _0x294723;let {unitID:_0x579180,type:_0xe657d3,revision:_0x172eb0=0x0}=_0x842129,_0x149cf2=this[_0x5ec2b3(0x1dc)]()+'/'+_0xe657d3+_0x5ec2b3(0x394)+_0x579180+_0x5ec2b3(0x29c)+_0x172eb0,_0x4668b9=(await this[_0x5ec2b3(0x33c)][_0x5ec2b3(0x2c0)](_0x149cf2))[_0x5ec2b3(0x280)],_0x5826b1=(_0x294723=_0x4668b9[_0x5ec2b3(0x3a9)])==null?void 0x0:_0x294723['workbook'];if(_0x5826b1){let _0x1c52db=_0x5826b1==null?void 0x0:_0x5826b1[_0x5ec2b3(0x32e)];_0x5826b1[_0x5ec2b3(0x32e)]=_0x3a5734['textEncoder'][_0x5ec2b3(0x382)]((0x0,_0x3a5734['b64DecodeUnicode'])(_0x1c52db)),Object[_0x5ec2b3(0x1a8)](_0x5826b1[_0x5ec2b3(0xe5)])['forEach'](([,_0x54a7a0])=>{const _0x4098de=_0x5ec2b3;let _0x3359b6=_0x54a7a0[_0x4098de(0x32e)];_0x54a7a0[_0x4098de(0x32e)]=_0x3a5734[_0x4098de(0x2bf)][_0x4098de(0x382)]((0x0,_0x3a5734[_0x4098de(0xd9)])(_0x3359b6));});}return _0x4668b9;}async['getSheetBlock'](_0x2d2149,_0xe63271){const _0x382d77=_0x4fa2a5;let {unitID:_0x28a3d0,type:_0x372184,blockID:_0x117a96}=_0xe63271,_0x48fbfa=this[_0x382d77(0x202)]()+'/'+_0x372184+_0x382d77(0x394)+_0x28a3d0+_0x382d77(0x104)+_0x117a96;return(await this[_0x382d77(0x33c)]['get'](_0x48fbfa))[_0x382d77(0x280)];}async[_0x4fa2a5(0x135)](_0x5bf04f,_0x242a9f){const _0x5770ce=_0x4fa2a5;let {unitID:_0x1cf6b7,type:_0x243683,blockID:_0x5b10c9}=_0x242a9f,_0x461f6d=this['_getAPIPrefix']()+_0x5770ce(0x104)+_0x243683+'/unit/'+_0x1cf6b7+_0x5770ce(0x104)+_0x5b10c9;return(await this['_httpService'][_0x5770ce(0x2c0)](_0x461f6d))[_0x5770ce(0x280)];}async['fetchMissingChangesets'](_0x212e49,_0x544af6){const _0x35ee11=_0x4fa2a5;let {unitID:_0x515b2e,type:_0x24e589,from:_0x2501c5,to:_0xd2037b}=_0x544af6,_0x2e84c0=this[_0x35ee11(0x202)]()+'/'+_0x24e589+'/unit/'+_0x515b2e+_0x35ee11(0xd0)+_0x2501c5+'&to='+_0xd2037b;return(await this[_0x35ee11(0x33c)][_0x35ee11(0x2c0)](_0x2e84c0))[_0x35ee11(0x280)];}['getSnapshotAPIPath'](){const _0x495c82=_0x4fa2a5;return this['_configService'][_0x495c82(0xd7)](_0x495c82(0xa7))??this[_0x495c82(0x202)]();}['_getAPIPrefix'](){const _0x1a4a2d=_0x4fa2a5;let _0x4bef65=this[_0x1a4a2d(0x1a9)][_0x1a4a2d(0xd7)](_0x18fed6);return(_0x4bef65==null?void 0x0:_0x4bef65['snapshotServerUrl'])??_0x1a4a2d(0x205);}async[_0x4fa2a5(0x278)](_0x56f845,_0x3140a9){const _0x560b80=_0x4fa2a5;let _0x132e25=_0x560b80(0xa3)+_0x3140a9[_0x560b80(0x3c6)]+_0x560b80(0x394)+_0x3140a9[_0x560b80(0x210)]+_0x560b80(0x1f0);return(await this[_0x560b80(0x33c)]['get'](_0x132e25,{'params':{'resourceId':JSON[_0x560b80(0x3be)](_0x3140a9[_0x560b80(0x349)])}}))[_0x560b80(0x280)];}[_0x4fa2a5(0x306)](){const _0x36ece3=_0x4fa2a5;throw Error(_0x36ece3(0x295));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4fa2a5(0x3e4)](){const _0x514cd1=_0x4fa2a5;throw Error(_0x514cd1(0x295));}[_0x4fa2a5(0x333)](){const _0x48182c=_0x4fa2a5;throw Error(_0x48182c(0x295));}['copyFileMeta'](){const _0x274b25=_0x4fa2a5;throw Error(_0x274b25(0x295));}[_0x4fa2a5(0x356)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x557990=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x1,(0x0,_0x433f65['Inject'])(_0x544d24[_0x4fa2a5(0x320)]))],_0x557990);let _0x274b20=class extends _0x433f65[_0x4fa2a5(0xcf)]{constructor(_0x31b6b1,_0x516987,_0x2d24b0,_0x3df5d0,_0x28bca1,_0x1b43b2){const _0x27f620=_0x4fa2a5;super(_0x31b6b1,_0x516987,_0x2d24b0,_0x3df5d0),this['_transformService']=_0x28bca1,this[_0x27f620(0x314)]=_0x1b43b2;}[_0x4fa2a5(0x3e5)](_0x23a4be,_0x5a6b62){const _0x1782ce=_0x4fa2a5;let _0x4c6279=this[_0x1782ce(0x22c)](_0x23a4be);if(_0x4c6279)try{let _0x593214=this[_0x1782ce(0x1d6)](_0x4c6279,_0x5a6b62);this[_0x1782ce(0x20d)](_0x23a4be,_0x593214);}catch(_0x385e98){this['_logService']['error']('[CollaborationUndoRedoService]',_0x385e98),this[_0x1782ce(0x279)](_0x23a4be);}let _0x1aecfa=this[_0x1782ce(0x2cd)](_0x23a4be);if(_0x1aecfa)try{let _0xf9e458=this[_0x1782ce(0x1d6)](_0x1aecfa,_0x5a6b62);this[_0x1782ce(0x24d)](_0x23a4be,_0xf9e458);}catch(_0x139d99){this['_logService'][_0x1782ce(0x187)](_0x139d99),this[_0x1782ce(0x40d)](_0x23a4be);}}[_0x4fa2a5(0x279)](_0x42f5ed){let _0x53d353=this['_getUndoStack'](_0x42f5ed);_0x53d353&&(_0x53d353['length']=0x0,this['_updateStatus']());}[_0x4fa2a5(0x40d)](_0x59f914){const _0x1983e9=_0x4fa2a5;let _0x3bd86f=this[_0x1983e9(0x2cd)](_0x59f914);_0x3bd86f&&(_0x3bd86f[_0x1983e9(0x208)]=0x0,this[_0x1983e9(0x2a0)]());}[_0x4fa2a5(0x20d)](_0x32b1c3,_0xa54aae){const _0x2cc760=_0x4fa2a5;this[_0x2cc760(0x29f)][_0x2cc760(0x10c)](_0x32b1c3,_0xa54aae),this[_0x2cc760(0x2a0)]();}['_substituteRedoStack'](_0x2f7e04,_0x2f6fb8){const _0x3cc10d=_0x4fa2a5;this[_0x3cc10d(0x270)][_0x3cc10d(0x10c)](_0x2f7e04,_0x2f6fb8),this[_0x3cc10d(0x2a0)]();}['_transformStack'](_0x12c790,_0x5a479a){const _0x2fcbf1=_0x4fa2a5;let _0x1dee6a=[],_0x219243=_0x5a479a,_0x413ffc=_0x5a479a;for(let _0x49421a=_0x12c790[_0x2fcbf1(0x208)]-0x1;_0x49421a>=0x0;_0x49421a--){let {unitID:_0x2245a2,undoMutations:_0xf59a8f,redoMutations:_0x71adc0}=_0x12c790[_0x49421a],_0x5f41ff=this['_transformService'][_0x2fcbf1(0x2ad)](_0x219243,_0xf59a8f),_0x36b5db=this[_0x2fcbf1(0x324)][_0x2fcbf1(0x2ad)](_0x413ffc,_0x71adc0);if((0x0,_0x3a5734[_0x2fcbf1(0x377)])(_0x5f41ff)||(0x0,_0x3a5734[_0x2fcbf1(0x377)])(_0x36b5db)){this[_0x2fcbf1(0x314)][_0x2fcbf1(0x187)](_0x2fcbf1(0x1fd),'transformStack\x20failed!',_0x5f41ff,_0x36b5db);break;}_0x219243=_0x5f41ff[_0x2fcbf1(0x3ab)],_0x413ffc=_0x36b5db[_0x2fcbf1(0x3ab)],_0x1dee6a['push']({'unitID':_0x2245a2,'undoMutations':_0x5f41ff[_0x2fcbf1(0x259)],'redoMutations':_0x36b5db[_0x2fcbf1(0x259)]});}return _0x1dee6a[_0x2fcbf1(0xf4)]();}};_0x274b20=_0x13514e([_0x374c65(0x0,_0x433f65[_0x4fa2a5(0x39b)]),_0x374c65(0x1,_0x433f65['ICommandService']),_0x374c65(0x2,_0x433f65[_0x4fa2a5(0x214)]),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x2aa)]),_0x374c65(0x4,_0x3a5734[_0x4fa2a5(0x2cc)]),_0x374c65(0x5,_0x433f65['ILogService'])],_0x274b20);let _0x4489be=class extends _0x433f65[_0x4fa2a5(0xac)]{constructor(_0x3875ad=_0x474e89,_0x713ac2,_0x35a0ec,_0x2b7094){const _0x2dd630=_0x4fa2a5;super(),this[_0x2dd630(0xc6)]=_0x3875ad,this[_0x2dd630(0x314)]=_0x713ac2,this[_0x2dd630(0x40f)]=_0x35a0ec,this[_0x2dd630(0x1a9)]=_0x2b7094;let {..._0x237ba6}=(0x0,_0x433f65['merge'])({},_0x474e89,this[_0x2dd630(0xc6)]);if(!_0x237ba6[_0x2dd630(0x33b)])throw Error(_0x2dd630(0xb3));this[_0x2dd630(0xc6)]=_0x237ba6,this[_0x2dd630(0x1a9)][_0x2dd630(0x40b)](_0x18fed6,_0x237ba6);}[_0x4fa2a5(0x309)](){const _0xf2102e=_0x4fa2a5;this['_configService'][_0xf2102e(0x40b)](_0x433f65[_0xf2102e(0x36d)],this[_0xf2102e(0xc6)][_0xf2102e(0xaa)]??[]),this[_0xf2102e(0xee)](),this[_0xf2102e(0x10d)]();}[_0x4fa2a5(0xee)](){const _0x3e80ae=_0x4fa2a5;var _0x513f35,_0x57cc03;this[_0x3e80ae(0x40f)]['has'](_0x433f65[_0x3e80ae(0x380)])&&this[_0x3e80ae(0x314)][_0x3e80ae(0x187)](_0x3e80ae(0x3ea),_0x3e80ae(0x3a3));let _0x175992=(0x0,_0x433f65[_0x3e80ae(0xe4)])([[_0x433f65[_0x3e80ae(0x380)],{'useClass':_0x274b20}],[_0x2a5cd3,{'useValue':_0x200c62()}],[_0x2b5c76],[_0x54117e],[_0x41b88d],[_0x4aff48],[_0x2a10c7],[_0x49219e],[_0x151d68],[_0x483ee6],[_0x4f0cf4],[_0x1121da,{'useClass':this[_0x3e80ae(0xc6)]['socketService']}],[_0x3a5734['ISnapshotServerService'],{'useClass':_0x557990}],[_0x433f65[_0x3e80ae(0x3ed)],{'useClass':_0x5b1470}],[_0x433f65[_0x3e80ae(0x151)],{'useClass':_0x55876d}],[_0x495c62,{'useClass':_0x3f38f5}],[_0x433f65[_0x3e80ae(0x39f)],{'useClass':_0x1e046a}],[_0x39314f],[_0x1c06e7]],(_0x513f35=this['_config'])==null?void 0x0:_0x513f35['override']);if(!((_0x57cc03=this[_0x3e80ae(0xc6)])!=null&&_0x57cc03[_0x3e80ae(0x10b)])){let _0x119a87=_0x175992['findIndex'](([_0x141ba5])=>_0x141ba5===_0x4aaa76);_0x119a87!==-0x1&&_0x175992[_0x3e80ae(0x27c)](_0x119a87,0x1);}(0x0,_0x433f65[_0x3e80ae(0x399)])(this[_0x3e80ae(0x40f)],_0x175992);}['_initDependencies'](){const _0x440beb=_0x4fa2a5;var _0x5425b2,_0x132acb;if(this['_injector'][_0x440beb(0x2c0)](_0x544d24[_0x440beb(0x320)])[_0x440beb(0x3f1)]({'priority':0x14,'interceptor':(0x0,_0x544d24[_0x440beb(0x16b)])({'maxParallel':0x6})}),!((_0x5425b2=this['_config'])!=null&&_0x5425b2[_0x440beb(0x12c)])){var _0x5544a5;(_0x5544a5=this[_0x440beb(0x40f)]['get'](_0x471235,_0x433f65[_0x440beb(0x2e4)][_0x440beb(0x1aa)]))==null||_0x5544a5[_0x440beb(0x246)]();}(_0x132acb=this['_config'])!=null&&_0x132acb['enableAuthServer']&&(0x0,_0x433f65[_0x440beb(0x2b1)])(this[_0x440beb(0x40f)],[[_0x4aff48]]),(0x0,_0x433f65[_0x440beb(0x2b1)])(this['_injector'],[[_0x2a10c7],[_0x39314f],[_0x151d68]]);}};_0x5aacdf(_0x4489be,_0x4fa2a5(0x3ec),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x5aacdf(_0x4489be,_0x4fa2a5(0x2c3),_0x434948),_0x5aacdf(_0x4489be,_0x4fa2a5(0x401),_0x11be1f),_0x4489be=_0x13514e([(0x0,_0x433f65['DependentOn'])(_0x224431[_0x4fa2a5(0x15f)],_0x544d24[_0x4fa2a5(0x3e8)],_0x3a5734[_0x4fa2a5(0x3ca)]),_0x374c65(0x1,_0x433f65[_0x4fa2a5(0x1b1)]),_0x374c65(0x2,(0x0,_0x433f65[_0x4fa2a5(0x178)])(_0x433f65[_0x4fa2a5(0x274)])),_0x374c65(0x3,_0x433f65[_0x4fa2a5(0x2aa)])],_0x4489be),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x1ef),{'enumerable':!0x0,'get':function(){return _0x5b1470;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x34d),{'enumerable':!0x0,'get':function(){return _0x42f6fe;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x328),{'enumerable':!0x0,'get':function(){return _0x16395e;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x15b),{'enumerable':!0x0,'get':function(){return _0x53717a;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x15e),{'enumerable':!0x0,'get':function(){return _0x1dc09d;}}),_0x25ed14[_0x4fa2a5(0x162)]=_0x18fed6,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x293),{'enumerable':!0x0,'get':function(){return _0x3f38f5;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x240),{'enumerable':!0x0,'get':function(){return _0x39314f;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x17a),{'enumerable':!0x0,'get':function(){return _0x18d3ff;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x291),{'enumerable':!0x0,'get':function(){return _0x55876d;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x45e291;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x32a),{'enumerable':!0x0,'get':function(){return _0x2b5c76;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x3a1),{'enumerable':!0x0,'get':function(){return _0x28996e;}}),_0x25ed14[_0x4fa2a5(0x1f5)]=_0x34aefb,_0x25ed14[_0x4fa2a5(0x203)]=_0x5eefb9,_0x25ed14[_0x4fa2a5(0x3d8)]=_0x483ee6,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x300),{'enumerable':!0x0,'get':function(){return _0x274b20;}}),_0x25ed14['CommentService']=_0x49219e,Object[_0x4fa2a5(0x3b2)](_0x25ed14,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x7d595b;}}),_0x25ed14[_0x4fa2a5(0x121)]=_0x4fa2a5(0x3e3),_0x25ed14[_0x4fa2a5(0x1ea)]=_0x4fa2a5(0x37e),_0x25ed14[_0x4fa2a5(0x353)]=_0x4fa2a5(0x417),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xe9),{'enumerable':!0x0,'get':function(){return _0x4f0cf4;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x243),{'enumerable':!0x0,'get':function(){return _0x31d725;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x11f),{'enumerable':!0x0,'get':function(){return _0x1ba45e;}}),_0x25ed14['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',_0x25ed14[_0x4fa2a5(0x185)]=_0x4fa2a5(0x107),_0x25ed14['IAttachmentIoService']=_0x495c62,_0x25ed14[_0x4fa2a5(0x3c8)]=_0x2a5cd3,_0x25ed14[_0x4fa2a5(0x3f6)]=_0x1121da,_0x25ed14[_0x4fa2a5(0x3fe)]=_0x471235,_0x25ed14[_0x4fa2a5(0x1ad)]=_0x43e589,_0x25ed14[_0x4fa2a5(0x364)]=_0x4aaa76,_0x25ed14['LOCAL_CACHE_INTERVAL']=0x3e8,_0x25ed14['LOCAL_CACHE_INTERVAL_KEY']=_0x4fa2a5(0x358),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x1b4),{'enumerable':!0x0,'get':function(){return _0x54117e;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x387),{'enumerable':!0x0,'get':function(){return _0x1e046a;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x1ac),{'enumerable':!0x0,'get':function(){return _0x5a97ff;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xe7),{'enumerable':!0x0,'get':function(){return _0x25572c;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x354),{'enumerable':!0x0,'get':function(){return _0x2845dd;}}),_0x25ed14['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x4fa2a5(0xc5),_0x25ed14[_0x4fa2a5(0x235)]='RETRY_CONNECTING_MAX_COUNT',_0x25ed14['SessionStatus']=_0x151b7d,Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x2c8),{'enumerable':!0x0,'get':function(){return _0x89772b;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0x11e),{'enumerable':!0x0,'get':function(){return _0x41b88d;}}),Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x160),{'enumerable':!0x0,'get':function(){return _0x1b8073;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,_0x4fa2a5(0xa9),{'enumerable':!0x0,'get':function(){return _0x557990;}}),Object[_0x4fa2a5(0x3b2)](_0x25ed14,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x4f3cea;}}),_0x25ed14[_0x4fa2a5(0xe1)]=_0x1af2a5,Object['defineProperty'](_0x25ed14,_0x4fa2a5(0x232),{'enumerable':!0x0,'get':function(){return _0x4489be;}}),_0x25ed14['createUniverCollaborationAdapter']=_0x200c62,_0x25ed14[_0x4fa2a5(0x1c0)]=_0x18ff47,_0x25ed14[_0x4fa2a5(0x2ab)]=_0x12d23,_0x25ed14[_0x4fa2a5(0x2f1)]=_0xe30654;}));function _0x1d68(){const _0x3abf33=['backupOfflineData','CHANGESET_REJ','number','UnitEmbedded','COMPRESS_MUTATION_SEND','isTransformMutationsWithChangesetFailure','collabSubmitChangesetUrl','getRoom','WorkbookEditablePermission','wrong\x20sbox\x20length','maxSize','_identity','/universer-api/uniscript','_doCreateSocket','IUndoRedoService','getCollabEntity','encode','constructor','_handler','_commentService','changesets','MentionIoHttpService','_decreaseWaiting','collaboratorID','_docStateChangeManagerService','memberID','commit','socket\x20close','_transformIMECache','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','CommandType','awaitingChangeset','IDLE','_commentUpdate$','/unit/','withAAD','_compressMutationService','getImage','subarray','registerDependencies','_schedule','IUniverInstanceService','telemetry\x20info\x20is\x20not\x20initialized','_members$','\x20of\x20length\x20','IMentionIOService','hasOwnProperty','CollaborationSocketService','_sender','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','baseRev','9dUgQEE','Slide','attachment','snapshot','_handlerCallback','c1Prime','_toggleOffline','onCommentUpdate','delete','_startTelemetryCollaborationNewChangeset','_replaceFileID','take','defineProperty','getCurrentUser','dispose','objectId','session.room-permission-denied','cfgEnableObjInherit','UserManagerService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','unsubscribe','rxjs','subject','_entityInit$','stringify','revision','_singleActiveUnitService','_showConflictProcessingNotification','save\x20fail\x20reason\x20is\x20','getUnitType','append','conflict','type','responseType','ICollaborationClientAdapterService','_permissionService','UniverCollaborationPlugin','_sessionStatus$','loadPdf','replace','includes','RETRY_CONNECTING_MAX_COUNT','getCollabEntity$','_status$','CONFLICT_CACHE_CLEAR_FAILED','accept','_getCtorByUniverInstanceType','_joinRoom','_updateState','firstValueFrom','CollaborationUIEventService','commentUpdateEvent','liveShareOperation','awaiting_with_pending','_networkConditionService','_getUploadFileURL','_isPermissionRej','_exhaustRemoteChangesetQueue','resend','indexOf','updateCollaborator','ws://127.0.0.1:8000/universer-api/comb/connect','saveSheetBlock','transformUndoRedo','retryCount','JOIN_ROOM_FULL','UniverNetworkPlugin','_onRecvEvent','[UniverCollaborationClientPlugin]','unitDisposed$','pluginName','IAuthzIoService','getValue','SHOULD_CLOSE_CONN','OTHER_CLIENT_EDITING','registerHTTPInterceptor','href','_univerInstanceService','now','unitInfo$','ICollaborationSocketService','Base','AddSlidePageMutation','MSG_FOR_ERROR','[PendingState]:\x20received\x20rejection.','mapDocumentTypeToUniverInstanceType','_resendWithTimeout','getUploadOptions','ILocalCacheService','UNIVER_PDF','UniverSheets','version','send','online$','session.join-failed','localCacheService','UNISCRIPT_RUN','appendMutation','prototype','OTHER_CLIENTS_EDITING','refreshPermission','setConfig','requireSession','_clearRedo','getTypeOfUnitDisposed$','_injector','complete','duration','isInternalEditorID','disposeWithMe','CONFLICT_PROCESSING','_change$','fromCollab','/universer-api/user/session-ticket','[CollaborationSessionService]','session.room-not-exists','getAttachmentUrl','key','reduce','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_throwTelemetryCollaborationNewChangeset','/universer-api/snapshot/','unit','UniverInstanceType','toggleOnline','SNAPSHOT_URL_KEY','retryConnectingInterval','SnapshotServerOverHTTPService','objectPermissionTypes','_hasSessionsForEndpoint','Plugin','createIdentifier','_onConflict','_tryReconnect','_sheetTransformSelectionsService','onRemoteAck','_createInitialState','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','UNIVER_SHEET','_incrementRevisionNumber','code','generateRandomId','ISnapshotServerService','sessionStatus','onPrepareTransformSelections','members','RevisionService','candidateSocket','UniverDrawing','csShouldRetryEvent','_updateLocalCache','_unlockTransition','addImageSourceCache','_acknowledgeAwaiting','dispose$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_config','requestParams','updatePermissionObjEvent','LEAVE','/universer-api/authz','range','crypto','UNIVER_SLIDE','USERS_ENTER','LocalUndoRedoService','/fetchmissing?from=','9EXhpDO','LIVESHARE_OPERATION','[SyncedState]:\x20received\x20rejection.','shareReplay','length=','univer-pro.collaboration-client.network-condition.service','getConfig','/-/object/-/batch_allowed','b64DecodeUnicode','_state','_userManagerService','nonceLength','onRemoteRetry','Uint8Array','@univerjs-pro/slides','_createInitialStateImpl','UnitStatus','__Key__','isTransformMutationsWithChangesetSuccess','mergeOverrideWithDependencies','sheets','batchAllowed','PdfCollaborationEntity','_clearRetryConnectingTimer','DataLoaderService','onMissingChangesets','objectType','CollaborationEvent','getUnitId','_registerDependencies','_waitForHeartbeatResponse','loadSheet','UniverProCollaborationClient','[OfflineState]:\x20received\x20rejection.','onload','reverse','rev','incrementRevOfUnit','MoveSlidePageMutation','csAckEvent','changeset','onTransformSelections','ONLINE','_onUserLeave','getActiveSheet','_getLoginPath','_snapshotService','liveShareNewHost','find','UniverProtocol','socket$','/block/','_startCollaboration','_changesetSessionId','HEARTBEAT_TIMEOUT','LIVESHARE_NEW_HOST','SUCCUSS','unitType','enableSingleActiveInstanceLock','set','_initDependencies','_sendingTimer','_removeRoom','subUnitId','parseProtocolChangeset','getGlobalObject','capture','_createSocket','default','onTransformRemoteChangesetByStateCache','onMutationExecutedForCollab','getImageSourceCache','_collaborationSessionService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','endpointKey','cipher\x20output\x20not\x20supported','createInstance','SheetTransformSelectionsService','FetchingMissState','_snapshotServerService','DEFAULT_COLLAB_WEB_SOCKET_URL','_stopTelemetryCollaborationNewChangeset','/allowed','error$','hostname','loadSlide','@univerjs-pro/license','COMMENT_UPDATE','@univerjs/protocol','_clearHeartbeatTimer','method','enableOfflineEditing','socketMessageSubscription','decrypt','saveAttachment','eventID','?size=','saveImage','_waitCount','_adapter','getDeserializedSheetBlock','UPDATE_PERMISSION_OBJ','allowed','sendChangesetTimeout','every','endpoint','InsertSheetMutation','_getUnitPermissionPoints','FAIL','withCredentials','_event$','resolve','_revisionService','transformChangesets','startsWith','_onRemoteRejected','CLOSE_ROOM','UNIVER_BASE','docStateChange$','update','setWaitCount','_onConnectionOpen','HEARTBEAT','_onCombEvent','newCsEvent','joinEvent','_scheduleCompleteTimestamp','_initRequestHeader','IImageIoService','JSONX','isTransformChangesetsSuccess',',\x20got\x20','Subject','infoRsp','MUTATION','FileSource','selections','[FetchMissState]','BaseCollaborationEntity','ObjectPermissionService','operators','BoardCollaborationEntity','UniverLicensePlugin','SlideCollaborationEntity','userID','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','next','LIVESHARE_FETCH_OPERATIONS','confirm','@univerjs/telemetry','RemoveSlidePageMutation','values','UNIVER_BOARD','rxjs/operators','ThresholdInterceptorFactory','failed\x20to\x20apply\x20missed\x20changesets!','ICommandService','delay','_disableEditing','reject','endsWith','toString','file','_syncEditingCollabCursor','_instanceService','amd','loadUnitOfRevision','Inject','deleteCollaborator','CollaborationEntity','ImageSourceType','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','close','headers','UnitAction','&assign=','createCollaborator','_fetchMissChangesets','JOIN_ROOM_FAILED','RichTextEditingMutation','HEARTBEAT_TIMEOUT_KEY','_initUnitPermissionChange','error','onMissedChangesetFetched','_getSendChangesetTimeout','tagLength','_disposed','retryConnectingTimer','onRemoteRej','buffer','downloadEndpointUrl','getRandomValues','_isEchoedAwaitingChangeset','pipe','getInterceptPoints','_onJoinRoomEvent','collaborators','AAD','message$','COMPRESS_MUTATION_APPLY','sessionStatus$','_executeRemoteChangeset','onTransformState','_clearCollaborationTimeoutTimer','&source=','PERMISSION_REJ','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','charCodeAt','[PendingState]:\x20received\x20acknowledgement.','create','_listenToNetworkCondition','catch','bytesLength','isCompositionEnd','univer-pro.collaboration-client-socket-service','entries','_configService','OPTIONAL','fetchMiss','OfflineState','INetworkConditionService','ciphertext\x20must\x20be\x20multiple\x20of\x2016','onTransformRemoteChangesetByIMECache','collaboration-client.config','ILogService','slice','_createHandler','MemberService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','origin','_lockTransition','@univerjs-pro/collaboration','textRanges','getTypeOfUnitAdded$','aes:\x20bad\x20decrypt','_collaborationPaused','state','468080jxhwNn','deserializeToCombResponse','trim','members$','takeUntil','@univerjs-pro/collaboration-client','JOIN_ROOM_PERMISSION_DENIED','_onFetchMissResult','_replayCachedMutations','_acknowledgedAwaitingRevision','concatMap','_type','getOwnPropertyDescriptor','NO_OTHER_CLIENTS_EDITING','synced','Error\x20on\x20receiving\x20event','ERROR_IMAGE','FETCH_MISS','action','forEach','localUnitId','_getSocketChannel','?url=','_transformStack','PERSON','_clearTimeoutTimer','USERS_LEAVE','CompressMutationService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getSnapshotAPIPath','size','has','fetchMissingChangesets','collaboration_new_changeset','FETCH_MISSING','_sessionChannels','_transformRemoteChangesetByIMECache','_toggleOnline','sequenceExecute','_showConflictNotification','missingChangesets','status','_getConfig','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','event$','joinRsp','status$','_commandService','AuthzIoHttpService','/resources','_initCloseConn','reqId','symbol','RECV','CollaborationStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','isArray','BehaviorSubject','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','getDrawingImageAllowSize','DocStateChangeManagerService','[CollaborationUndoRedoService]','readyForCollab','encrypt','parse','post','_getAPIPrefix','CollaborationUIEventId','HTTPRequest','/universer-api/snapshot','params','INGEST','length','_pendingSessions','cmd','CHANGESET_SHOULD_RETRY','[CollaborationEntity]','_substituteUndoStack','_roomMembers','_socketMessageSubscription','unitID','Board','ERROR_IMAGE_TYPE','_getAPIPrefixPath','IContextService','HELLO','editingUnit','_checkMissing','_unitInfo$','FileId','UniverProCollaboration','add','min','unitLoaded$','[CollaborationSession]','createSocket','_unitLoaded$','object','_transitionLocked','[OfflineState]:\x20received\x20acknowledgement.','map','/collaborator','socketReady','push','toDisposable','unitId','title','Univer','_getUndoStack','SUBMIT_CHANGESET','JOIN','_resendTimeout','_shouldReportTelemetry','routeKey','UniverCollaborationClientPlugin','offline','not_collab','RETRY_CONNECTING_MAX_COUNT_KEY','_prepareTransformSelections','UNIVER_DOC','DisposableCollection','enableCollaboration','_prepareConflictRecovery','debug','pending','Tools','UnitObject','BYTES_PER_ELEMENT','CollaborationController','stopTime','sort','DocCollaborationEntity','collaMsg','session.room-full','disableLocalCache','commentUpdate$','fetch_missing','_closedUnits','onRemoteChangeset','RxDisposable','target','_substituteRedoStack','upload','NEW_CHANGESETS','getMemberID','getMember','subscribe','awaiting','_onOffline','Module','onSyncEditingCollabCursor','uuidv4','_eventService','m2Prime','_onUserJoin','UniverProLicense','_scheduleCollaborationTimeoutTimer','_transformStateCache','SheetsSelectionsService','sendHeartbeatTimer','filter','162540ZWNvGP','varSizeNonce','toLocal','addHandlerCallback','string','listCollaborators','_localeService','Edit','Workbook','localeService','_acknowledgeAwaitingIfReady','IPermissionService','waitForRoom$','parseChangesetToProtocol','_undoRedoService','_redoStacks','_imageSourceCache','byteOffset','_queuedRemoteChangesets','Injector','string\x20expected','_state$','session','getResourcesRequest','_clearUndo','CmdRspCode','_telemetryInfo','splice','UniverDocs','_resolveSessionIdentity','connection\x20error','body','unknown','1311633zRFGMv','\x20in\x20_schedule.','closeSession','fetchThroughInterceptors','clearUnit','getAllMembers','_onRemoteRetry','SOCKET_FAILED','resolveWithBasePath','getTime','_getCurrentRevision','src','updatePermissionPoint','exports','_sendHeartbeat','CollaborationImageIoService','_transformAndApplyRemoteChangeset','CollaborationAttachmentIoService','decorate','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','\x20-\x20','_collabSessionService','merge','toggleOffline','byteLength','_init','/rev/','ImageUploadStatusType','SetSelectionsOperation','_undoStacks','_updateStatus','SnapshotService','_authzIoService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','objectActions','LIVESHARE_TERMINATE','[DataLoaderService]','getAllPermissionPoint','_changesetReqId','unitId\x20is\x20not\x20found','IConfigService','getLocalCacheKey','onTransformIME','transformMutationsWithChangeset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','@univerjs/docs','setShowComponents','touchDependencies','\x20to\x20','UUID','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','some','OFFLINE','/new_changes','_refreshUnitPermission','_tryEnsureSocket','_initMergeInterceptor','@univerjs/core','SOCKET_FAILED_RETRY','executeCommand','c2Prime','textEncoder','get','_handleRemoteChangesets','_clearScheduledTask','packageName','interceptor','UPDATE_CURSOR','editing\x20status\x20changed\x20to','data','SheetCollaborationEntity','_HTTPService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','2601410KJEeIf','ITransformService','_getRedoStack','putCollaborators','emitEvent','PERMISSION_DENIED','_getDownloadEndpointURL','Rectangle','DEFAULT_FILE_NAME','sid','mutations','focused$','_collaborationTimeoutTimer','list','onSendChangeset','subType','columnGroups','_applyRemoteChangeset','DRAWING_IMAGE_ALLOW_IMAGE_LIST','uploadFileServerUrl','getUnit','put','_pendingMutations','_upload','removeMember','Quantity','call','PENDING','objectID','_telemetryService','collabWebSocketUrl','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','getWorkbookSelections','PSEUDO_FETCH_MISSING_RESULT','loadDoc','People','init','shouldCloseConn','serializeCombRequest','AWAITING_WITH_PENDING','x-univer-host','initWorkbookPermissionChange','getFocusedUnit','_getSignURL','_transformRemoteChangesetByStateCache','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','clear','startTime','onlyLocal','_remoteChangesetQueue','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_awaitingChangeset','open$','CollaborativeUndoRedoService','authzUrl','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','_updateUnitPermissionPoint','_localCacheService','nonce','saveSnapshot','output','/-/object/list','onStarting','actions','isPermissionRej','_onRemoteACK','{fileID}','_members','deepClone','loginUrlKey','_transformSelections','loadUnit','_socket','_logService','_cfgEnableObjInherit','/object/','assign','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','ERROR_EXCEED_SIZE','updateMember','_transformUndoredo','_maxTotalRetryTimeout','univer-pro.collaboration-client.single-active-unit-service','location','_memberService','HTTPService','88562OYHEqS','change$','pauseCollaboration','_transformService','Disposable','ErrorCode','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','AwaitingWithPendingState','/universer-api/stream/file/upload','CollaborationSessionService','Optional','_socketChannels','JOINING','originalMeta','text-x','getUnitStatus$','_emitMembers','reconnect','saveChangeset','entityInit$','_submitChangeset','onLocalMutation','ReplaySubject','/universer-api/file/{fileID}/sign-url','getSheetId','_entities','socketService','_httpService','close$','from','resolveUnit','state$','name','_sessions','asObservable','timeoutTimer','url','session.room-cnt-exceeds','_collaborationUIEventService','roles','resourceIDs','objects','_roomCreated$','@univerjs/network','AwaitingState','CONFLICT','1378056ngeUVI','@univerjs/drawing','encodeURIComponent','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','DEFAULT_WS_SESSION_TICKET_URL','PendingState','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getLatestCsReqIdBySid','compose','LOCAL_CACHE_INTERVAL','_resendTimer','CombCmd','_onMessage','_createSession','_onLocalMutation','disablePadding','MentionType','SUBMIT_CHANGESET_TIMEOUT','/universer-api/comb','signUrlServerUrl','/universer-api/oidc/authpage','ISingleActiveUnitService','POST','LocaleService','4543016AMkCkt','_onRemoteChangeset','rollback','function','_rescheduleHeartbeat','getCfgEnableObjInherit','OBJECT_PERMISSION_CONFIG_KEY','leaveEvent','getCurrentRevOfUnit','CHANGESET_ACK','EnsureSlideMasterPageMutation'];_0x1d68=function(){return _0x3abf33;};return _0x1d68();}