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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +14 -14
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2b93(_0x453626,_0x42080f){_0x453626=_0x453626-0xc3;const _0x184503=_0x1845();let _0x2b935f=_0x184503[_0x453626];return _0x2b935f;}(function(_0x518ed7,_0x4d7e7a){const _0x212e04=_0x2b93,_0x56a473=_0x518ed7();while(!![]){try{const _0x5dcf11=parseInt(_0x212e04(0x2c4))/0x1+parseInt(_0x212e04(0x262))/0x2+parseInt(_0x212e04(0x27b))/0x3+-parseInt(_0x212e04(0x3bc))/0x4+parseInt(_0x212e04(0x3bb))/0x5*(-parseInt(_0x212e04(0x16d))/0x6)+-parseInt(_0x212e04(0x309))/0x7+parseInt(_0x212e04(0x35a))/0x8*(parseInt(_0x212e04(0x258))/0x9);if(_0x5dcf11===_0x4d7e7a)break;else _0x56a473['push'](_0x56a473['shift']());}catch(_0x2f29e0){_0x56a473['push'](_0x56a473['shift']());}}}(_0x1845,0xb4faf),function(_0x11a0db,_0x1c65fe){const _0xedd403=_0x2b93;typeof exports=='object'&&typeof module<'u'?_0x1c65fe(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==_0xedd403(0x259)&&define[_0xedd403(0x13e)]?define(['exports','@univerjs-pro/collaboration',_0xedd403(0x35f),_0xedd403(0x16c),_0xedd403(0x302),_0xedd403(0x25a),_0xedd403(0x39e),'@univerjs/telemetry',_0xedd403(0x100),_0xedd403(0x202),_0xedd403(0x2d4),_0xedd403(0x38a),_0xedd403(0xd2)],_0x1c65fe):(_0x11a0db=typeof globalThis<'u'?globalThis:_0x11a0db||self,_0x1c65fe(_0x11a0db[_0xedd403(0x3b7)]={},_0x11a0db[_0xedd403(0x398)],_0x11a0db[_0xedd403(0x1eb)],_0x11a0db['UniverDocs'],_0x11a0db['UniverSheets'],_0x11a0db['rxjs'],_0x11a0db['UniverProtocol'],_0x11a0db['UniverTelemetry'],_0x11a0db[_0xedd403(0x25a)][_0xedd403(0x1e7)],_0x11a0db[_0xedd403(0x216)],_0x11a0db[_0xedd403(0x2d5)],_0x11a0db[_0xedd403(0x260)],_0x11a0db[_0xedd403(0x201)]));}(this,function(_0x15bcea,_0x4c2ece,_0x868841,_0x45a7a0,_0x1d347c,_0x409690,_0x1df2bb,_0x5a2801,_0x4f74e1,_0x5aad88,_0x8bc35f,_0xae8d13,_0x50acd0){const _0x21648f=_0x2b93;Object['defineProperty'](_0x15bcea,Symbol['toStringTag'],{'value':_0x21648f(0x3a2)});let _0x4b92ba='collaboration-client.config',_0x361839={},_0x3838c0=_0x21648f(0x2e8),_0x4067ce=0x4e20;function _0x503d89(_0x1a26fd){const _0x3b3adc=_0x21648f;return JSON[_0x3b3adc(0x102)](_0x1a26fd)['length'];}function _0x1ba9b8(_0x34130b){'@babel/helpers - typeof';const _0x2ea7a0=_0x21648f;return _0x1ba9b8=typeof Symbol==_0x2ea7a0(0x259)&&typeof Symbol[_0x2ea7a0(0x3ef)]=='symbol'?function(_0x52a812){return typeof _0x52a812;}:function(_0x2bd6c4){const _0x3e61fc=_0x2ea7a0;return _0x2bd6c4&&typeof Symbol=='function'&&_0x2bd6c4[_0x3e61fc(0x32e)]===Symbol&&_0x2bd6c4!==Symbol[_0x3e61fc(0x180)]?_0x3e61fc(0x12d):typeof _0x2bd6c4;},_0x1ba9b8(_0x34130b);}function _0xa931ec(_0x57b192,_0x238a0b){const _0x26a046=_0x21648f;if(_0x1ba9b8(_0x57b192)!=_0x26a046(0x2a6)||!_0x57b192)return _0x57b192;var _0xfce670=_0x57b192[Symbol[_0x26a046(0x3fe)]];if(_0xfce670!==void 0x0){var _0x33ce7b=_0xfce670[_0x26a046(0x257)](_0x57b192,_0x238a0b||'default');if(_0x1ba9b8(_0x33ce7b)!=_0x26a046(0x2a6))return _0x33ce7b;throw TypeError(_0x26a046(0x30a));}return(_0x238a0b===_0x26a046(0x353)?String:Number)(_0x57b192);}function _0x493338(_0xdcd2d2){const _0x17cf5d=_0x21648f;var _0x53774d=_0xa931ec(_0xdcd2d2,_0x17cf5d(0x353));return _0x1ba9b8(_0x53774d)==_0x17cf5d(0x12d)?_0x53774d:_0x53774d+'';}function _0x6d65c2(_0x45be95,_0x1a8ec8,_0x140abe){const _0x1c36dd=_0x21648f;return(_0x1a8ec8=_0x493338(_0x1a8ec8))in _0x45be95?Object[_0x1c36dd(0x131)](_0x45be95,_0x1a8ec8,{'value':_0x140abe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45be95[_0x1a8ec8]=_0x140abe,_0x45be95;}let _0x1ca442=function(_0x412781){const _0xd4730d=_0x21648f;return _0x412781[_0xd4730d(0x1aa)]=_0xd4730d(0x1aa),_0x412781['PERMISSION_DENIED']='PERMISSION_DENIED',_0x412781['CONFLICT']=_0xd4730d(0xdf),_0x412781['CLOSE_ROOM']='CLOSE_ROOM',_0x412781[_0xd4730d(0x256)]=_0xd4730d(0x256),_0x412781[_0xd4730d(0x363)]=_0xd4730d(0x363),_0x412781[_0xd4730d(0x1bf)]=_0xd4730d(0x1bf),_0x412781['SUBMIT_CHANGESET_TIMEOUT']=_0xd4730d(0x208),_0x412781;}({});var _0x55b02d=class{constructor(){const _0x2912c4=_0x21648f;_0x6d65c2(this,_0x2912c4(0x397),new _0x409690[(_0x2912c4(0x409))]()),_0x6d65c2(this,_0x2912c4(0x219),this[_0x2912c4(0x397)][_0x2912c4(0x340)]());}['emitEvent'](_0xd7f722){const _0x545918=_0x21648f;this[_0x545918(0x397)][_0x545918(0xdd)](_0xd7f722);}},_0x278d59=class{constructor(){const _0x4bd0a1=_0x21648f;_0x6d65c2(this,'_commentUpdate$',new _0x409690[(_0x4bd0a1(0x409))]()),_0x6d65c2(this,_0x4bd0a1(0x20d),this[_0x4bd0a1(0x22b)]['asObservable']());}['onCommentUpdate'](_0x2967f6){const _0x242c9f=_0x21648f;this[_0x242c9f(0x22b)][_0x242c9f(0xdd)](_0x2967f6);}};function _0x273192(_0x317ef7,_0x1c783b){return function(_0x58a84b,_0x2cf3b0){_0x1c783b(_0x58a84b,_0x2cf3b0,_0x317ef7);};}function _0x3e0941(_0x1c346d,_0xca1e8e,_0x495f91,_0x3f2aa8){const _0x1d4be8=_0x21648f;var _0x210ff9=arguments[_0x1d4be8(0x207)],_0x26f230=_0x210ff9<0x3?_0xca1e8e:_0x3f2aa8===null?_0x3f2aa8=Object[_0x1d4be8(0xee)](_0xca1e8e,_0x495f91):_0x3f2aa8,_0x11ea26;if(typeof Reflect==_0x1d4be8(0x2a6)&&typeof Reflect[_0x1d4be8(0x377)]=='function')_0x26f230=Reflect[_0x1d4be8(0x377)](_0x1c346d,_0xca1e8e,_0x495f91,_0x3f2aa8);else{for(var _0x2ea1e7=_0x1c346d[_0x1d4be8(0x207)]-0x1;_0x2ea1e7>=0x0;_0x2ea1e7--)(_0x11ea26=_0x1c346d[_0x2ea1e7])&&(_0x26f230=(_0x210ff9<0x3?_0x11ea26(_0x26f230):_0x210ff9>0x3?_0x11ea26(_0xca1e8e,_0x495f91,_0x26f230):_0x11ea26(_0xca1e8e,_0x495f91))||_0x26f230);}return _0x210ff9>0x3&&_0x26f230&&Object[_0x1d4be8(0x131)](_0xca1e8e,_0x495f91,_0x26f230),_0x26f230;}let _0x568427=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x37a3b5,_0x337d70){const _0x33c3cf=_0x21648f;super(),this['_univerInstanceService']=_0x37a3b5,this[_0x33c3cf(0x37f)]=_0x337d70,_0x6d65c2(this,_0x33c3cf(0x292),new Map()),_0x6d65c2(this,_0x33c3cf(0x289),new _0x409690[(_0x33c3cf(0x409))]()),this[_0x33c3cf(0xd1)]((0x0,_0x409690[_0x33c3cf(0x382)])(this[_0x33c3cf(0x32f)][_0x33c3cf(0x166)](_0x868841[_0x33c3cf(0x2f8)][_0x33c3cf(0x23b)])[_0x33c3cf(0x320)]((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x1fa643=>_0x1fa643[_0x33c3cf(0x128)]())),this[_0x33c3cf(0x32f)][_0x33c3cf(0x166)](_0x868841['UniverInstanceType'][_0x33c3cf(0x332)])['pipe']((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x5ade4a=>_0x5ade4a[_0x33c3cf(0x128)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x868841['UniverInstanceType'][_0x33c3cf(0x28a)])['pipe']((0x0,_0x4f74e1[_0x33c3cf(0x26e)])(_0x27749a=>_0x27749a[_0x33c3cf(0x128)]())),this['_univerInstanceService'][_0x33c3cf(0x166)](_0x868841[_0x33c3cf(0x2f8)][_0x33c3cf(0x2a9)])['pipe']((0x0,_0x4f74e1['map'])(_0xc5603d=>_0xc5603d[_0x33c3cf(0x128)]())))['subscribe'](_0x361a0c=>this[_0x33c3cf(0x2da)](_0x361a0c)));}[_0x21648f(0x39d)](_0x207b9d){const _0x5a5a40=_0x21648f;return this[_0x5a5a40(0x292)][_0x5a5a40(0x215)](_0x207b9d)?(0x0,_0x409690['of'])(this[_0x5a5a40(0x292)][_0x5a5a40(0x224)](_0x207b9d)):this['_roomCreated$'][_0x5a5a40(0x320)]((0x0,_0x4f74e1[_0x5a5a40(0x26e)])(_0x2633d7=>{const _0x3cc90e=_0x5a5a40;if(_0x2633d7===_0x207b9d)return this[_0x3cc90e(0x292)]['get'](_0x2633d7);}));}[_0x21648f(0x380)](_0x68cc0f){const _0x57901b=_0x21648f;this['_userManagerService'][_0x57901b(0x380)](_0x68cc0f);}[_0x21648f(0x11f)](){const _0x52ba7f=_0x21648f;return this[_0x52ba7f(0x37f)][_0x52ba7f(0x11f)]();}[_0x21648f(0x10e)](_0x58960c,_0x1c8856){const _0x7e42d=_0x21648f;let _0x3298f8=this[_0x7e42d(0x292)][_0x7e42d(0x224)](_0x58960c);_0x3298f8||(_0x3298f8=new _0x3c8861(),this[_0x7e42d(0x292)][_0x7e42d(0x213)](_0x58960c,_0x3298f8),this[_0x7e42d(0x289)][_0x7e42d(0xdd)](_0x58960c)),_0x3298f8[_0x7e42d(0x10e)](_0x1c8856);}[_0x21648f(0x19e)](_0x2c3260,_0x393262){const _0x280e53=_0x21648f;let _0x3e82c0=this[_0x280e53(0x292)]['get'](_0x2c3260);_0x3e82c0&&_0x3e82c0[_0x280e53(0x19e)](_0x393262);}[_0x21648f(0x2ca)](_0x18e50a){const _0x4e3eae=_0x21648f;return this[_0x4e3eae(0x292)][_0x4e3eae(0x224)](_0x18e50a);}['getMember'](_0xa618b0,_0x1adbde){const _0x215de3=_0x21648f;let _0x59153e=this[_0x215de3(0x292)]['get'](_0xa618b0);if(_0x59153e)return _0x59153e[_0x215de3(0x1b0)](_0x1adbde);}[_0x21648f(0x2da)](_0x2bf0fe){const _0x7074d5=_0x21648f;let _0x318d87=this[_0x7074d5(0x292)][_0x7074d5(0x224)](_0x2bf0fe);_0x318d87&&(_0x318d87['dispose'](),this[_0x7074d5(0x292)]['delete'](_0x2bf0fe));}[_0x21648f(0x265)](){const _0x302eb1=_0x21648f;this[_0x302eb1(0x292)][_0x302eb1(0x352)](_0x36e006=>_0x36e006[_0x302eb1(0x265)]()),this[_0x302eb1(0x292)][_0x302eb1(0x13a)](),this[_0x302eb1(0x289)]['complete']();}};_0x568427=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x297)]))],_0x568427);var _0x3c8861=class extends _0x868841[_0x21648f(0x25b)]{constructor(..._0xf3e333){const _0x4be757=_0x21648f;super(..._0xf3e333),_0x6d65c2(this,_0x4be757(0x2dc),new Map()),_0x6d65c2(this,_0x4be757(0x1cc),new _0x409690[(_0x4be757(0x193))](this[_0x4be757(0x2dc)])),_0x6d65c2(this,'members$',this[_0x4be757(0x1cc)][_0x4be757(0x340)]());}['dispose'](){const _0x586482=_0x21648f;this[_0x586482(0x2dc)][_0x586482(0x13a)](),this['_members$'][_0x586482(0x3f5)]();}[_0x21648f(0x10e)](_0x5344ab){const _0x14a14e=_0x21648f;this[_0x14a14e(0x2dc)][_0x14a14e(0x213)](_0x5344ab[_0x14a14e(0x14c)],_0x5344ab),this[_0x14a14e(0x2e5)]();}[_0x21648f(0x19e)](_0x2a135d){const _0x5ad294=_0x21648f;this[_0x5ad294(0x2dc)][_0x5ad294(0xe0)](_0x2a135d),this[_0x5ad294(0x2e5)]();}['getMember'](_0x56f3fb){const _0x1b95cb=_0x21648f;return this[_0x1b95cb(0x2dc)]['get'](_0x56f3fb);}[_0x21648f(0x140)](){const _0x53a875=_0x21648f;return Array[_0x53a875(0x1a1)](this[_0x53a875(0x2dc)][_0x53a875(0x2d7)]());}[_0x21648f(0x2e5)](){const _0x56ee22=_0x21648f;this['_members$'][_0x56ee22(0xdd)](this[_0x56ee22(0x2dc)]);}};function _0x1d758e(_0x1e0b67,_0x484380){const _0x1e429d=_0x21648f;if(_0xf42fbb(_0x1e0b67))return _0x484380;if(_0x484380[_0x1e429d(0x1d9)]===_0x4c2ece[_0x1e429d(0x343)]['SUBMIT_CHANGESET']){var _0x2f2ebc;let _0x14f98c=_0x155741(_0x1e0b67),_0x5662b2=_0x484380;return{..._0x5662b2,'data':{..._0x5662b2['data'],'unitID':_0x1e0b67['target'][_0x1e429d(0x3b9)],'unitType':(_0x2f2ebc=_0x1e0b67['target'][_0x1e429d(0x172)])==null?_0x5662b2[_0x1e429d(0x29b)][_0x1e429d(0x172)]:_0x2f2ebc,'changeset':_0x14f98c[_0x1e429d(0x3fc)](_0x5662b2[_0x1e429d(0x29b)][_0x1e429d(0x17b)],_0xe428e0(_0x1e0b67))}};}if(_0x484380[_0x1e429d(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x1e429d(0x2f4)]){var _0x1dfe18;let _0x512963=_0x484380;return{..._0x512963,'data':{..._0x512963[_0x1e429d(0x29b)],'unitID':_0x1e0b67[_0x1e429d(0x355)]['unitId'],'unitType':(_0x1dfe18=_0x1e0b67[_0x1e429d(0x355)][_0x1e429d(0x172)])==null?_0x512963[_0x1e429d(0x29b)]['unitType']:_0x1dfe18}};}return _0x484380;}function _0xee3e37(_0xeb5ccf,_0x5c118a){const _0x161465=_0x21648f;if(_0xf42fbb(_0xeb5ccf))return[_0x5c118a];switch(_0x5c118a['eventID']){case _0x4c2ece[_0x161465(0x343)][_0x161465(0x174)]:return[_0x36cfc6(_0xeb5ccf,_0x5c118a)];case _0x4c2ece[_0x161465(0x343)][_0x161465(0x26a)]:return[_0x2140ec(_0xeb5ccf,_0x5c118a)];case _0x4c2ece['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:return[_0x5178e5(_0xeb5ccf,_0x5c118a)];default:return[_0x5c118a];}}function _0xf42fbb(_0x4d1ef2){const _0x22b3e5=_0x21648f;return _0x4d1ef2[_0x22b3e5(0x355)][_0x22b3e5(0x3db)]==null&&_0x4d1ef2[_0x22b3e5(0x355)][_0x22b3e5(0x3b9)]===_0x4d1ef2[_0x22b3e5(0x3bf)]&&!_0x4d1ef2[_0x22b3e5(0x17b)];}function _0x36cfc6(_0x3ce053,_0x5a057f){const _0x38833f=_0x21648f;return{..._0x5a057f,'data':(0x0,_0x4c2ece[_0x38833f(0x383)])(_0x59be3c(_0x3ce053,(0x0,_0x4c2ece[_0x38833f(0x3bd)])(_0x5a057f[_0x38833f(0x29b)])))};}function _0x5178e5(_0x3421ab,_0x521940){const _0x2f7c35=_0x21648f;return{..._0x521940,'data':_0x59be3c(_0x3421ab,_0x521940[_0x2f7c35(0x29b)])};}function _0x2140ec(_0x59d97d,_0x2fb5ee){const _0x4ba596=_0x21648f;let _0x54621f=_0x2fb5ee['data'];return{..._0x2fb5ee,'data':{..._0x54621f,'changesets':_0x54621f['changesets']['map'](_0x23b90b=>(0x0,_0x4c2ece[_0x4ba596(0x383)])(_0x59be3c(_0x59d97d,(0x0,_0x4c2ece['parseProtocolChangeset'])(_0x23b90b))))}};}function _0x59be3c(_0x2fcb2c,_0x2eb16e){const _0x28f6e5=_0x21648f;return _0x155741(_0x2fcb2c)[_0x28f6e5(0x136)](_0x2eb16e,_0xe428e0(_0x2fcb2c));}function _0x155741(_0xf62f0a){const _0x2fcdc3=_0x21648f;if(!_0xf62f0a[_0x2fcdc3(0x17b)])throw Error(_0x2fcdc3(0x223));return _0xf62f0a[_0x2fcdc3(0x17b)];}function _0xe428e0(_0x21d3d3){const _0x2d257d=_0x21648f;return{'localUnitId':_0x21d3d3[_0x2d257d(0x3bf)],'unitType':_0x21d3d3['unitType'],'target':_0x21d3d3[_0x2d257d(0x355)]};}let _0x138ed3=function(_0xc73412){const _0x5dd4fd=_0x21648f;return _0xc73412[_0xc73412[_0x5dd4fd(0x384)]=0x0]=_0x5dd4fd(0x384),_0xc73412[_0xc73412[_0x5dd4fd(0x337)]=0x1]=_0x5dd4fd(0x337),_0xc73412[_0xc73412[_0x5dd4fd(0x33b)]=0x2]=_0x5dd4fd(0x33b),_0xc73412[_0xc73412[_0x5dd4fd(0x2c5)]=0x3]=_0x5dd4fd(0x2c5),_0xc73412;}({}),_0x12cc86={[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x15e)]]:_0x21648f(0x2b0),[_0x1df2bb[_0x21648f(0x17a)]['JOIN_ROOM_FULL']]:'session.room-full',[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x27c)]]:_0x21648f(0xea),[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0x3c8)]]:_0x21648f(0x3d7),[_0x1df2bb[_0x21648f(0x17a)][_0x21648f(0xcb)]]:_0x21648f(0x1c7)},_0x4d2902=class extends _0x868841['RxDisposable']{get['sessionStatus'](){const _0x1bafdd=_0x21648f;return this[_0x1bafdd(0x147)][_0x1bafdd(0x2eb)]();}constructor(_0x5e1116,_0x22a20e,_0x255952,_0x371f34,_0x4bd640,_0x5b2056,_0x32cf60,_0x37f0dd){const _0x1e5c9=_0x21648f;super(),this[_0x1e5c9(0x1bc)]=_0x5e1116,this['_logService']=_0x255952,this['_configService']=_0x371f34,this[_0x1e5c9(0x132)]=_0x4bd640,this[_0x1e5c9(0x40c)]=_0x5b2056,this['_collaborationUIEventService']=_0x32cf60,this[_0x1e5c9(0x34a)]=_0x37f0dd,_0x6d65c2(this,'_sessionStatus$',new _0x409690[(_0x1e5c9(0x193))](0x0)),_0x6d65c2(this,_0x1e5c9(0x1ce),this[_0x1e5c9(0x147)][_0x1e5c9(0x340)]()),_0x6d65c2(this,_0x1e5c9(0x397),new _0x409690['Subject']()),_0x6d65c2(this,'event$',this[_0x1e5c9(0x397)][_0x1e5c9(0x340)]()),_0x6d65c2(this,'_socket',void 0x0),_0x6d65c2(this,_0x1e5c9(0x167),void 0x0),_0x6d65c2(this,'_collaborationTimeoutTimer',void 0x0),_0x6d65c2(this,_0x1e5c9(0x34d),!0x1),_0x6d65c2(this,_0x1e5c9(0x1fb),null),this[_0x1e5c9(0x34d)]=!!this['_telemetryService'],_0x22a20e[_0x1e5c9(0x320)]((0x0,_0x409690['takeUntil'])(this['dispose$']))[_0x1e5c9(0x3b6)](_0xaa9a5d=>{const _0x19c432=_0x1e5c9;if(_0xaa9a5d!==void 0x0){if(this[_0x19c432(0x1b2)]=_0xaa9a5d,_0xaa9a5d)this[_0x19c432(0x2cf)](_0xaa9a5d),this[_0x19c432(0x167)]=_0xaa9a5d['message$'][_0x19c432(0x3b6)](_0x40a5d8=>{const _0x4c3eb7=_0x19c432;_0x40a5d8['routeKey']===this['_identity']['target'][_0x4c3eb7(0x3b9)]&&this[_0x4c3eb7(0x3f6)](_0x40a5d8);});else{var _0x414b73;this[_0x19c432(0x199)](),this[_0x19c432(0x147)][_0x19c432(0xdd)](0x2),(_0x414b73=this[_0x19c432(0x167)])==null||_0x414b73[_0x19c432(0x157)](),this['_socketMessageSubscription']=null;}}});}['getMemberID'](){const _0x558dc3=_0x21648f;var _0xac5f28,_0x5f345e;return(_0xac5f28=(_0x5f345e=this['_socket'])==null?void 0x0:_0x5f345e[_0x558dc3(0x14c)])==null?null:_0xac5f28;}[_0x21648f(0x265)](){const _0x511529=_0x21648f;super[_0x511529(0x265)](),this[_0x511529(0x3da)](),this['dispose$'][_0x511529(0xdd)](),this[_0x511529(0xf2)][_0x511529(0x3f5)]();}[_0x21648f(0x3da)](){const _0x51a986=_0x21648f;var _0xf65532;this[_0x51a986(0x199)](),(_0xf65532=this['_socket'])==null||_0xf65532[_0x51a986(0x182)]({'cmd':_0x1df2bb[_0x51a986(0x3d6)][_0x51a986(0x168)],'data':{'roomID':this[_0x51a986(0x1bc)]['target'][_0x51a986(0x3b9)]}}),this['_event$'][_0x51a986(0x3f5)](),this[_0x51a986(0x147)][_0x51a986(0x3f5)]();}[_0x21648f(0x3f6)](_0xcb15b4){const _0x3e2e97=_0x21648f;_0xcb15b4[_0x3e2e97(0x26b)]===_0x1df2bb[_0x3e2e97(0x3d6)]['JOIN']?this['_onJoinRoomEvent'](_0xcb15b4):_0xcb15b4[_0x3e2e97(0x26b)]===_0x1df2bb[_0x3e2e97(0x3d6)][_0x3e2e97(0x176)]&&this[_0x3e2e97(0xfb)](_0xcb15b4);}[_0x21648f(0x2cf)](_0xda9612){const _0x104b30=_0x21648f;this[_0x104b30(0x147)][_0x104b30(0xdd)](0x1),_0xda9612[_0x104b30(0x182)]({'cmd':_0x1df2bb[_0x104b30(0x3d6)][_0x104b30(0xf1)],'routeKey':this[_0x104b30(0x1bc)][_0x104b30(0x355)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x104b30(0x1bc)][_0x104b30(0x355)][_0x104b30(0x3b9)]}]}});}['_onJoinRoomEvent'](_0x854478){const _0x28cb23=_0x21648f;var _0xdd002a;if(_0x854478[_0x28cb23(0x2b5)]in _0x12cc86){this[_0x28cb23(0x2bd)]['emitEvent']({'id':_0x28cb23(0x256),'data':_0x12cc86[_0x854478[_0x28cb23(0x2b5)]]}),this['_sessionStatus$']['next'](0x2);return;}this[_0x28cb23(0x147)]['next'](0x3);let _0x530902=(_0xdd002a=_0x854478['data']['roomInfos'][this[_0x28cb23(0x1bc)][_0x28cb23(0x355)][_0x28cb23(0x3b9)]])==null?void 0x0:_0xdd002a['members'];_0x530902&&_0x530902[_0x28cb23(0x352)](_0x481d7b=>this[_0x28cb23(0x132)][_0x28cb23(0x10e)](this[_0x28cb23(0x1bc)][_0x28cb23(0x3bf)],_0x481d7b));}['_onRecvEvent'](_0xd0d8e1){const _0x465be7=_0x21648f;try{let _0x208a42=_0xee3e37(this[_0x465be7(0x1bc)],_0xd0d8e1[_0x465be7(0x29b)]);for(let _0x289be8 of _0x208a42)switch(_0x289be8['eventID']){case _0x4c2ece[_0x465be7(0x343)]['USERS_ENTER']:this[_0x465be7(0x328)](_0x289be8),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)]['USERS_LEAVE']:this[_0x465be7(0x231)](_0x289be8),this['_event$'][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)]['CHANGESET_ACK']:case _0x4c2ece[_0x465be7(0x343)]['CHANGESET_SHOULD_RETRY']:this[_0x465be7(0x304)](),this[_0x465be7(0x1de)](),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece['CollaborationEvent']['MSG_FOR_ERROR']:this['_logService']['error'](_0x465be7(0x3ec)+JSON[_0x465be7(0x102)](_0x289be8)),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;case _0x4c2ece[_0x465be7(0x343)][_0x465be7(0x1a9)]:this[_0x465be7(0x40c)][_0x465be7(0x3cc)](_0x289be8[_0x465be7(0x29b)]),this[_0x465be7(0x397)][_0x465be7(0xdd)](_0x289be8);break;default:this[_0x465be7(0x397)]['next'](_0x289be8);}}catch(_0x2ff079){this[_0x465be7(0x2fc)]['error'](_0x2ff079,_0xd0d8e1);}}[_0x21648f(0x328)](_0x1866e3){const _0x4934a1=_0x21648f;this[_0x4934a1(0x132)][_0x4934a1(0x10e)](this[_0x4934a1(0x1bc)][_0x4934a1(0x3bf)],_0x1866e3[_0x4934a1(0x29b)]);}[_0x21648f(0x231)](_0x37e1ef){const _0xa7957=_0x21648f;this[_0xa7957(0x132)][_0xa7957(0x19e)](this[_0xa7957(0x1bc)]['localUnitId'],_0x37e1ef[_0xa7957(0x29b)][_0xa7957(0x14c)]);}async[_0x21648f(0x182)](_0x5a7257,_0x27f270){const _0x160eb6=_0x21648f;if(this[_0x160eb6(0x141)]!==0x3||!this[_0x160eb6(0x1b2)])throw Error(_0x160eb6(0x142));try{let _0x439fad=_0x1d758e(this[_0x160eb6(0x1bc)],_0x5a7257);_0x439fad[_0x160eb6(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x160eb6(0x2a3)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x160eb6(0x36d)](_0x439fad)),this[_0x160eb6(0x1b2)][_0x160eb6(0x182)]({'cmd':_0x1df2bb['CombCmd'][_0x160eb6(0x159)],'routeKey':this[_0x160eb6(0x1bc)]['target']['unitId'],'routeType':'','data':_0x439fad});}catch(_0x54517b){this['_logService'][_0x160eb6(0x29e)](_0x54517b);}}['_scheduleCollaborationTimeoutTimer'](){const _0x20477f=_0x21648f;var _0x4ba5da;this[_0x20477f(0x177)]=setTimeout(()=>{const _0x285bba=_0x20477f;this[_0x285bba(0x177)]=null,this[_0x285bba(0x2bd)][_0x285bba(0x203)]({'id':_0x285bba(0x208)});},(_0x4ba5da=this[_0x20477f(0x23e)][_0x20477f(0x33e)](_0x20477f(0x276)))==null?_0x4067ce:_0x4ba5da);}[_0x21648f(0x1de)](){const _0x636cf0=_0x21648f;this[_0x636cf0(0x177)]&&(clearTimeout(this[_0x636cf0(0x177)]),this[_0x636cf0(0x177)]=null);}[_0x21648f(0x36d)](_0x335738){const _0x349495=_0x21648f;if(!this['_shouldReportTelemetry'])return;let {data:_0xb82da4}=_0x335738,{unitID:_0x43a284,changeset:_0x33e496}=_0xb82da4,{mutations:_0x2c78e7,type:_0xc63af5}=_0x33e496;this[_0x349495(0x1fb)]={'unitId':_0x43a284,'type':_0xc63af5,'startTime':performance[_0x349495(0x1c2)](),'stopTime':0x0,'duration':0x0,'size':_0x503d89(_0x2c78e7)};}[_0x21648f(0x304)](){const _0x11b8e4=_0x21648f;if(this['_shouldReportTelemetry']){if(!this[_0x11b8e4(0x1fb)]){this[_0x11b8e4(0x2fc)][_0x11b8e4(0x29e)]('[CollaborationSession]',_0x11b8e4(0x22e));return;}this[_0x11b8e4(0x1fb)]['stopTime']=performance[_0x11b8e4(0x1c2)](),this[_0x11b8e4(0x1fb)][_0x11b8e4(0xc8)]=this['_telemetryInfo'][_0x11b8e4(0x371)]-this[_0x11b8e4(0x1fb)][_0x11b8e4(0x21b)],this[_0x11b8e4(0x34a)][_0x11b8e4(0x148)](_0x11b8e4(0x225),this[_0x11b8e4(0x1fb)]),this[_0x11b8e4(0x1fb)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x35be7f=_0x21648f;this[_0x35be7f(0x1fb)]=null;}};_0x4d2902=_0x3e0941([_0x273192(0x2,_0x868841[_0x21648f(0x206)]),_0x273192(0x3,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x568427)),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x278d59)),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x238)])(_0x5a2801['ITelemetryService']))],_0x4d2902);let _0x47d8b0=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x36e));function _0x32415a(_0x5e6de9){const _0x14c39d=_0x21648f;return _0x14c39d(0x3d2)+_0x5e6de9;}function _0x305427(_0x5b1839){const _0x3b8ee3=_0x21648f;let {unitID:_0x4888c9,mutations:_0x907cb7}=_0x5b1839;return{'unitId':_0x4888c9,'subUnitId':_0x907cb7[_0x3b8ee3(0x207)]>0x0?_0x907cb7[0x0]['params'][_0x3b8ee3(0x410)]:null};}let _0xd82d96=class{constructor(_0x5bd23b,_0x417081,_0x23d2b6){const _0x2f72f9=_0x21648f;this[_0x2f72f9(0x2d9)]=_0x5bd23b,this['_transformService']=_0x417081,this['_instanceService']=_0x23d2b6;}[_0x21648f(0x3f0)](_0x26f08d){const _0xd4ee2a=_0x21648f;var _0x5709fd,_0x12e4cc;let _0x5529cf=this['_injector'][_0xd4ee2a(0x224)](_0x1d347c['SheetsSelectionsService']),{unitId:_0x30f6e9,subUnitId:_0x3084f6}=_0x305427(_0x26f08d),_0x5ac66a=_0x5529cf==null?void 0x0:_0x5529cf['getWorkbookSelections'](_0x30f6e9)[_0xd4ee2a(0x41c)](),_0x1ad502=(_0x5709fd=this[_0xd4ee2a(0x2b7)][_0xd4ee2a(0x209)](_0x30f6e9))==null||(_0x5709fd=_0x5709fd[_0xd4ee2a(0x3d5)]())==null?void 0x0:_0x5709fd[_0xd4ee2a(0x162)]();if(_0x5ac66a[_0xd4ee2a(0x207)]===0x0||!_0x30f6e9||!_0x3084f6)return;let _0x5a243f=[{'id':_0x1d347c['SetSelectionsOperation']['id'],'params':{'unitId':_0x30f6e9,'subUnitId':_0x1ad502,'selections':_0x868841['Tools']['deepClone'](_0x5ac66a)}}],_0x12421e=this[_0xd4ee2a(0x376)]['transformMutationsWithChangeset'](_0x26f08d,_0x5a243f);if(!(0x0,_0x4c2ece[_0xd4ee2a(0x2fa)])(_0x12421e))throw _0x12421e[_0xd4ee2a(0x29e)];let _0x7baf38=(_0x12e4cc=_0x12421e['m2Prime'][0x0])==null||(_0x12e4cc=_0x12e4cc[_0xd4ee2a(0x2b4)])==null?void 0x0:_0x12e4cc[_0xd4ee2a(0x31d)];if(Array[_0xd4ee2a(0x3af)](_0x7baf38)&&_0x7baf38[_0xd4ee2a(0x207)]){if(_0x7baf38[_0xd4ee2a(0x207)]===_0x5a243f[0x0]['params'][_0xd4ee2a(0x31d)][_0xd4ee2a(0x207)]&&_0x7baf38[_0xd4ee2a(0x27e)]((_0xcca689,_0x145697)=>_0x868841[_0xd4ee2a(0x348)]['equals'](_0xcca689[_0xd4ee2a(0x161)],_0x5a243f[0x0][_0xd4ee2a(0x2b4)]['selections'][_0x145697][_0xd4ee2a(0x161)])))return;this[_0xd4ee2a(0x2d9)][_0xd4ee2a(0x224)](_0x868841[_0xd4ee2a(0x2fd)])['executeCommand'](_0x1d347c['SetSelectionsOperation']['id'],{'unitId':_0x30f6e9,'subUnitId':_0x1ad502,'selections':_0x7baf38});}}};_0xd82d96=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x1,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x2,_0x868841[_0x21648f(0x214)])],_0xd82d96);let _0x3857c0=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x181)),_0x294d78=function(_0x1f528b){const _0x50e08c=_0x21648f;return _0x1f528b[_0x1f528b[_0x50e08c(0x2d8)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x1f528b[_0x1f528b['OTHER_CLIENTS_EDITING']=0x1]=_0x50e08c(0x111),_0x1f528b;}({});function _0x5eaa92(_0x55a25f){const _0x3347b6=_0x21648f;var _0x109781;return!!((_0x109781=_0x55a25f[_0x3347b6(0x2b4)])!=null&&_0x109781[_0x3347b6(0x13b)]);}let _0x26c3bc=new Set([_0x1d347c['InsertSheetMutation']['id']]),_0x4130ba=new Set([_0x5aad88[_0x21648f(0x1b6)]['id'],_0x5aad88[_0x21648f(0x16e)]['id'],_0x5aad88[_0x21648f(0x317)]['id'],_0x5aad88[_0x21648f(0x2cc)]['id']]);function _0x2414e9(_0x2643cf,_0x43bbc4=_0x26c3bc){const _0x4cfd84=_0x21648f;let _0x5aa50c=[];for(let _0x2730aa of _0x2643cf){if(_0x43bbc4[_0x4cfd84(0x215)](_0x2730aa['id'])){if(_0x5aa50c['length']>0x0)break;_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);break;}if(_0x5eaa92(_0x2730aa)){if(_0x5aa50c[_0x4cfd84(0x207)]>0x0)break;_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);break;}_0x5aa50c[_0x4cfd84(0x327)](_0x2730aa);}return _0x5aa50c;}function _0x3782fb(_0x1e8292,_0x5d3203,_0x3ddf10,_0x2f7350,_0x48515f){const _0x1537c4=_0x21648f;var _0x280e80,_0x21c987,_0x5ed6fa,_0x1cdda1;let _0x51a9c3=_0x2414e9(_0x1e8292),_0x5cd162=(_0x280e80=(_0x21c987=_0x48515f[_0x1537c4(0x11f)]())==null?void 0x0:_0x21c987['userID'])==null?'unknown':_0x280e80,_0x3f8694=(_0x5ed6fa=(_0x1cdda1=_0x48515f[_0x1537c4(0x11f)]())==null?void 0x0:_0x1cdda1['memberID'])==null?_0x1537c4(0x20c):_0x5ed6fa;return{'changeset':{'unitID':_0x5d3203,'type':(0x0,_0x4c2ece['mapDocumentTypeToUniverInstanceType'])(_0x3ddf10[_0x1537c4(0x101)](_0x5d3203)),'baseRev':_0x2f7350[_0x1537c4(0x133)](_0x5d3203),'revision':0x0,'userID':_0x5cd162,'memberID':_0x3f8694,'mutations':_0x51a9c3},'pendingMutations':_0x1e8292[_0x1537c4(0x129)](_0x51a9c3['length'])};}function _0x1be665(_0x4ea150,_0x578466,_0x599a10,_0x2d3b74,_0x476cd7){const _0x43a971=_0x21648f;var _0x514152,_0x690bf2,_0x30ed31,_0x23f50b;let _0x4f47ad=_0x2414e9(_0x4ea150,_0x4130ba),_0x2c95c6=(_0x514152=(_0x690bf2=_0x476cd7['getCurrentUser']())==null?void 0x0:_0x690bf2[_0x43a971(0x185)])==null?'unknown':_0x514152,_0xdba0fc=(_0x30ed31=(_0x23f50b=_0x476cd7[_0x43a971(0x11f)]())==null?void 0x0:_0x23f50b['memberID'])==null?'unknown':_0x30ed31;return{'changeset':{'unitID':_0x578466,'type':(0x0,_0x4c2ece['mapDocumentTypeToUniverInstanceType'])(_0x599a10[_0x43a971(0x101)](_0x578466)),'baseRev':_0x2d3b74['getCurrentRevOfUnit'](_0x578466),'revision':0x0,'userID':_0x2c95c6,'memberID':_0xdba0fc,'mutations':_0x4f47ad},'pendingMutations':_0x4ea150['slice'](_0x4f47ad['length'])};}function _0x1a4977(_0xf17977,_0x20bc71,_0x19d9af,_0x1a1535,_0x10796b){const _0x2d2bda=_0x21648f;var _0x654db5,_0xb5c18b,_0x7449c6,_0x250fbb;let _0x5a0af8=_0xf17977[_0x2d2bda(0x25f)]((_0x4a9221,_0x529dac)=>{const _0x270826=_0x2d2bda;let _0x15332f=_0x4a9221[_0x4a9221[_0x270826(0x207)]-0x1],{id:_0x47c4b8}=_0x15332f==null?{}:_0x15332f,{id:_0x4cfd3c,type:_0x174b0a}=_0x529dac,_0x54dd9d=_0x529dac['params'];if(_0x47c4b8&&_0x47c4b8!==_0x4cfd3c)throw Error(_0x270826(0xe2)+_0x47c4b8+_0x270826(0x150)+_0x4cfd3c+'.');if(!_0x15332f)return[{'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d['unitId'],'textRanges':_0x54dd9d[_0x270826(0x40d)],'actions':_0x54dd9d[_0x270826(0x130)]}}];let _0x1e9354=_0x15332f[_0x270826(0x2b4)];return _0x23e2e8(_0x1e9354,_0x54dd9d)?[..._0x4a9221[_0x270826(0x129)](0x0,-0x1),{..._0x15332f,'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d[_0x270826(0x3b9)],'textRanges':_0x54dd9d['textRanges'],'actions':_0x868841[_0x270826(0x310)][_0x270826(0x268)](_0x1e9354[_0x270826(0x130)],_0x54dd9d[_0x270826(0x130)])}}]:[..._0x4a9221,{'id':_0x4cfd3c,'type':_0x174b0a,'params':{'unitId':_0x54dd9d[_0x270826(0x3b9)],'textRanges':_0x54dd9d['textRanges'],'actions':_0x54dd9d[_0x270826(0x130)]}}];},[]),_0x50a348=(_0x654db5=(_0xb5c18b=_0x10796b[_0x2d2bda(0x11f)]())==null?void 0x0:_0xb5c18b[_0x2d2bda(0x185)])==null?_0x2d2bda(0x20c):_0x654db5,_0x28707a=(_0x7449c6=(_0x250fbb=_0x10796b[_0x2d2bda(0x11f)]())==null?void 0x0:_0x250fbb[_0x2d2bda(0x14c)])==null?_0x2d2bda(0x20c):_0x7449c6;return{'changeset':{'unitID':_0x20bc71,'type':(0x0,_0x4c2ece[_0x2d2bda(0x3ee)])(_0x19d9af['getUnitType'](_0x20bc71)),'baseRev':_0x1a1535[_0x2d2bda(0x133)](_0x20bc71),'revision':0x0,'userID':_0x50a348,'memberID':_0x28707a,'mutations':_0x5a0af8},'pendingMutations':_0xf17977['slice'](_0xf17977[_0x2d2bda(0x207)])};}function _0x23e2e8(_0x322db7,_0x34950e){const _0x1b04ad=_0x21648f;return!_0x4deb3e(_0x322db7)&&!_0x4deb3e(_0x34950e)&&_0xe3dc4(_0x322db7[_0x1b04ad(0x130)],_0x34950e['actions']);}function _0x4deb3e(_0x22b01c){const _0x1e224b=_0x21648f;return _0x22b01c[_0x1e224b(0x3e6)]!==void 0x0;}function _0xe3dc4(_0x17e8e6,_0x4e4268){return _0x235ef7(_0x17e8e6)&&_0x235ef7(_0x4e4268)&&!_0x2c975f(_0x17e8e6)&&!_0x2c975f(_0x4e4268)&&!_0x48609b(_0x17e8e6)&&!_0x48609b(_0x4e4268);}function _0x235ef7(_0x35de33){const _0x10c6c9=_0x21648f;return _0xbdb930(_0x35de33)[_0x10c6c9(0x329)](_0x5426f7=>_0x232392(_0x5426f7)&&_0x5426f7['et']===_0x10c6c9(0x1c4));}function _0x48609b(_0x2a5556){const _0x117583=_0x21648f;return _0xbdb930(_0x2a5556)[_0x117583(0x329)](_0x517adf=>Array[_0x117583(0x3af)](_0x517adf)||typeof _0x517adf==_0x117583(0x353)||typeof _0x517adf==_0x117583(0x373));}function _0x2c975f(_0x46a73e){const _0x3a65c6=_0x21648f;return _0xbdb930(_0x46a73e)[_0x3a65c6(0x329)](_0x541053=>!_0x232392(_0x541053)||_0x541053['et']!=='text-x'||!Array['isArray'](_0x541053['e'])?!0x1:_0x541053['e'][_0x3a65c6(0x329)](_0x35e442=>!_0x232392(_0x35e442)||!_0x232392(_0x35e442['body'])?!0x1:Object[_0x3a65c6(0x180)][_0x3a65c6(0xc4)]['call'](_0x35e442['body'],'tables')||Object['prototype'][_0x3a65c6(0xc4)][_0x3a65c6(0x257)](_0x35e442[_0x3a65c6(0x346)],_0x3a65c6(0x110))||Object['prototype'][_0x3a65c6(0xc4)][_0x3a65c6(0x257)](_0x35e442[_0x3a65c6(0x346)],_0x3a65c6(0x11c))));}function _0xbdb930(_0x13e662){const _0x535ed=_0x21648f;if(!Array[_0x535ed(0x3af)](_0x13e662))return[];let _0x166f08=_0x13e662['includes']('body')?_0x13e662:_0x13e662['find'](_0x149cf3=>Array['isArray'](_0x149cf3)&&_0x149cf3[_0x535ed(0x335)](_0x535ed(0x346)));if(!Array[_0x535ed(0x3af)](_0x166f08))return[];let _0x39adbf=_0x166f08[_0x535ed(0xed)](_0x535ed(0x346));return _0x39adbf===-0x1?[]:_0x166f08[_0x535ed(0x129)](_0x39adbf+0x1);}function _0x232392(_0x259f01){const _0xf3b545=_0x21648f;return typeof _0x259f01=='object'&&!!_0x259f01&&!Array[_0xf3b545(0x3af)](_0x259f01);}function _0x11cbd2(_0x2c5486,_0x26ca69){const _0x650849=_0x21648f;let _0x385b34=new _0x409690[(_0x650849(0x235))](0x1);return setTimeout(()=>_0x385b34[_0x650849(0xdd)](_0x26ca69),_0x2c5486),_0x385b34[_0x650849(0x340)]()['pipe']((0x0,_0x409690['take'])(0x1));}var _0x402be7,_0x22ebf8,_0x4b7fc1;let _0x5c8834=function(_0x3cea28){const _0x19eef1=_0x21648f;return _0x3cea28[_0x19eef1(0x3ba)]='not_collab',_0x3cea28[_0x19eef1(0x286)]=_0x19eef1(0x39f),_0x3cea28[_0x19eef1(0x308)]=_0x19eef1(0x1f2),_0x3cea28['AWAITING']=_0x19eef1(0x359),_0x3cea28[_0x19eef1(0x10f)]='awaiting_with_pending',_0x3cea28[_0x19eef1(0xd7)]='fetch_missing',_0x3cea28[_0x19eef1(0xdf)]=_0x19eef1(0x1c5),_0x3cea28[_0x19eef1(0x33b)]=_0x19eef1(0x250),_0x3cea28;}({}),_0xf1445d=0x4e20,_0x4ff607=0x2bf20;var _0x316f37=class{constructor(_0x16dac4,_0x11bc9d,_0x29aee8,_0x5519aa,_0x15d99c,_0x14b68c,_0x165373,_0x475565,_0x38f642){const _0xb0b8d9=_0x21648f;this[_0xb0b8d9(0xff)]=_0x16dac4,this[_0xb0b8d9(0x350)]=_0x11bc9d,this['_handler']=_0x15d99c,this['_commandService']=_0x14b68c,this[_0xb0b8d9(0x17e)]=_0x165373,this[_0xb0b8d9(0xda)]=_0x475565,this[_0xb0b8d9(0x2c8)]=_0x38f642,_0x6d65c2(this,'_awaitingChangeset',null),_0x6d65c2(this,_0xb0b8d9(0x3c3),[]),this[_0xb0b8d9(0x1ca)]=_0x29aee8,this[_0xb0b8d9(0x3c3)]=_0x5519aa;}[_0x21648f(0x3c0)](_0x12d7e3){const _0x2f4f77=_0x21648f;let _0x3696da=this[_0x2f4f77(0xda)][_0x2f4f77(0x133)](this['unitID']);return _0x12d7e3[_0x2f4f77(0xcf)]>_0x3696da+0x1?(this[_0x2f4f77(0x306)][_0x2f4f77(0x25d)]({'from':_0x3696da,'to':_0x12d7e3[_0x2f4f77(0xcf)]-0x1}),!0x0):!0x1;}[_0x21648f(0x25c)](_0x31170f){const _0x3c367f=_0x21648f;this[_0x3c367f(0x17e)][_0x3c367f(0x3e8)](this[_0x3c367f(0xff)],_0x31170f);}[_0x21648f(0x1fd)](_0x147b73){const _0x22d32a=_0x21648f;var _0x12dbcb,_0x227655;(_0x12dbcb=(_0x227655=this[_0x22d32a(0x306)])[_0x22d32a(0x33c)])==null||_0x12dbcb['call'](_0x227655,_0x147b73);}[_0x21648f(0x400)](_0x10d0ca){const _0x3b2dce=_0x21648f;var _0x20e742,_0x1633c3;return(_0x20e742=(_0x1633c3=this[_0x3b2dce(0x306)])[_0x3b2dce(0x1d5)])==null?void 0x0:_0x20e742[_0x3b2dce(0x257)](_0x1633c3,_0x10d0ca);}[_0x21648f(0x2a7)](_0x13a8af){const _0x3fd7ac=_0x21648f;var _0x1c3b08,_0x1dc3e5;return(_0x1c3b08=(_0x1dc3e5=this['_handler'])[_0x3fd7ac(0x2e0)])==null?void 0x0:_0x1c3b08['call'](_0x1dc3e5,_0x13a8af);}[_0x21648f(0x29a)](_0x2d6f1b){const _0x134c76=_0x21648f;var _0x569785,_0x39c775,_0x5e4780;return(_0x569785=(_0x39c775=(_0x5e4780=this[_0x134c76(0x306)])[_0x134c76(0x19f)])==null?void 0x0:_0x39c775[_0x134c76(0x257)](_0x5e4780,_0x2d6f1b))==null?_0x2d6f1b:_0x569785;}[_0x21648f(0x18c)](_0x234c1b){const _0x4ec5bb=_0x21648f;var _0x3d098d,_0x50be7a,_0x49eeeb;return(_0x3d098d=(_0x50be7a=(_0x49eeeb=this['_handler'])[_0x4ec5bb(0x347)])==null?void 0x0:_0x50be7a['call'](_0x49eeeb,_0x234c1b))==null?_0x234c1b:_0x3d098d;}[_0x21648f(0x164)](_0x6b9721){const _0x3e9833=_0x21648f;if(this[_0x3e9833(0x350)]===_0x868841[_0x3e9833(0x2f8)]['UNIVER_DOC']){let {unitID:_0x4db691,mutations:_0xdb2e4e,memberID:_0x1109f4}=_0x6b9721,_0x6b5a0=_0xdb2e4e[_0x3e9833(0x207)]>0x0?_0xdb2e4e[0x0][_0x3e9833(0x2b4)][_0x3e9833(0x40d)]:[];if(Array[_0x3e9833(0x3af)](_0x6b5a0)&&_0x6b5a0[_0x3e9833(0x207)]>0x0){var _0x567999,_0x10580e;(_0x567999=(_0x10580e=this[_0x3e9833(0x306)])['onSyncEditingCollabCursor'])==null||_0x567999[_0x3e9833(0x257)](_0x10580e,{'unitID':_0x4db691,'memberID':_0x1109f4,'textRanges':_0x6b5a0});}}}[_0x21648f(0xf3)](){const _0x194d19=_0x21648f;var _0x22a023;(_0x22a023=this['_localCacheService'])==null||_0x22a023[_0x194d19(0x2f0)](this[_0x194d19(0xff)],this[_0x194d19(0x350)],this[_0x194d19(0x1ca)],this[_0x194d19(0x3c3)]);}[_0x21648f(0x183)](){const _0x5a7613=_0x21648f;return this[_0x5a7613(0xda)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x4770e5=_0x21648f;this[_0x4770e5(0xda)][_0x4770e5(0xe6)](this[_0x4770e5(0xff)]);}[_0x21648f(0x296)](_0xe2d5d1){const _0x68942c=_0x21648f;let _0x427d1f=this[_0x68942c(0x29a)](_0xe2d5d1);_0x427d1f=this['_transformRemoteChangesetByStateCache'](_0x427d1f);let _0x54f59d=(0x0,_0x868841[_0x68942c(0x190)])(_0x427d1f[_0x68942c(0x1bb)],this[_0x68942c(0x155)],{'fromCollab':!0x0});if(!_0x54f59d['result']){var _0xaa9270;throw _0x54f59d[_0x68942c(0x29e)]instanceof Error?_0x54f59d[_0x68942c(0x29e)]:Error((_0xaa9270=_0x54f59d['error'])==null?_0x68942c(0x27d):_0xaa9270);}this[_0x68942c(0x400)](_0x427d1f),this[_0x68942c(0x2a7)](_0x427d1f),this[_0x68942c(0x25c)](_0xe2d5d1),this[_0x68942c(0x1fd)](_0x427d1f),this['_syncEditingCollabCursor'](_0x427d1f),this[_0x68942c(0x3d3)]();}};let _0x1e7b48=class extends _0x316f37{constructor(_0x28596a,_0x1003f0,_0x3902a2,_0x382168,_0x197ee9,_0x28e0fc,_0x338a24,_0x3bbd59,_0x5c8383,_0x31201b){const _0x25fef4=_0x21648f;super(_0x28596a,_0x1003f0,null,[],_0x3902a2,_0x338a24,_0x28e0fc,_0x382168,_0x31201b),this[_0x25fef4(0x2d9)]=_0x197ee9,this[_0x25fef4(0x2fc)]=_0x3bbd59,this[_0x25fef4(0x376)]=_0x5c8383,this[_0x25fef4(0x3f1)]=_0x31201b,_0x6d65c2(this,_0x25fef4(0x341),_0x25fef4(0x39f));}['appendMutation'](_0x369665){const _0x49ab15=_0x21648f;let _0x17476d=this[_0x49ab15(0x2d9)][_0x49ab15(0x3d9)](_0x5f0bc1,this['unitID'],this['type'],[_0x369665],this[_0x49ab15(0x306)]);return _0x17476d[_0x49ab15(0xf4)](),_0x17476d[_0x49ab15(0xf3)](),_0x17476d;}[_0x21648f(0x2ae)](_0x5331a6){const _0x11acc5=_0x21648f;if(this[_0x11acc5(0x3c0)](_0x5331a6))return this[_0x11acc5(0x2d9)][_0x11acc5(0x3d9)](_0x2ef93b,this[_0x11acc5(0xff)],this[_0x11acc5(0x350)],null,[],null,[_0x5331a6],this['_handler']);try{let _0xb74efe=this[_0x11acc5(0x376)]['transformMutationsWithChangeset'](_0x5331a6,[_0x4c2ece[_0x11acc5(0x2bb)]]);if((0x0,_0x4c2ece['isTransformMutationsWithChangesetSuccess'])(_0xb74efe)){let {c1Prime:_0x1f0716}=_0xb74efe;return this[_0x11acc5(0x296)](_0x1f0716),this;}throw _0xb74efe[_0x11acc5(0x29e)];}catch(_0xfc7dc6){return this['_logService']['error'](_0xfc7dc6),this['_onConflict'](!0x1);}}[_0x21648f(0x2b9)](_0x2420bc){const _0x253f96=_0x21648f;return this[_0x253f96(0x2d9)][_0x253f96(0x3d9)](_0x391b2a,this[_0x253f96(0xff)],this[_0x253f96(0x350)],null,[],this[_0x253f96(0x306)],_0x2420bc);}[_0x21648f(0xc9)](_0x50b5bd){const _0x217f01=_0x21648f;if(_0x50b5bd['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x217f01(0x3fa));}[_0x21648f(0x394)](){const _0x11b267=_0x21648f;throw Error(_0x11b267(0x298));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x198807=_0x21648f;return this['_injector'][_0x198807(0x3d9)](_0x519d9e,this[_0x198807(0xff)],this[_0x198807(0x350)],null,[],this['_handler']);}[_0x21648f(0x29d)](){return this;}['resend'](){const _0x34da07=_0x21648f;throw Error(_0x34da07(0x305));}[_0x21648f(0x175)](){const _0xdddcb0=_0x21648f;let _0x2873fc=this[_0xdddcb0(0xda)][_0xdddcb0(0x133)](this[_0xdddcb0(0xff)]);return this['_handler']['onMissingChangesets']({'from':_0x2873fc,'to':0x0}),this['_injector'][_0xdddcb0(0x3d9)](_0x2ef93b,this[_0xdddcb0(0xff)],this[_0xdddcb0(0x350)],null,[],null,[],this['_handler']);}};_0x1e7b48=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,_0x868841['IUndoRedoService']),_0x273192(0x6,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x7,_0x868841['ILogService']),_0x273192(0x8,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x1e7b48);let _0x5f0bc1=_0x402be7=class extends _0x316f37{constructor(_0x31790b,_0x3464ac,_0x54bd81,_0x3651d3,_0x561c88,_0x462302,_0x1acb1f,_0xc4512e,_0x3a6fa9,_0x1ab000,_0x3653eb,_0x3aecc7,_0x2accca,_0x2e9cb6){const _0x3634c1=_0x21648f;super(_0x31790b,_0x3464ac,null,_0x54bd81,_0x3651d3,_0x3a6fa9,_0x2accca,_0x462302,_0x2e9cb6),this[_0x3634c1(0x2d9)]=_0x561c88,this[_0x3634c1(0x132)]=_0x1acb1f,this['_logService']=_0xc4512e,this[_0x3634c1(0x23e)]=_0x1ab000,this[_0x3634c1(0x376)]=_0x3653eb,this[_0x3634c1(0x32f)]=_0x3aecc7,_0x6d65c2(this,_0x3634c1(0x341),_0x3634c1(0x1f2)),_0x6d65c2(this,_0x3634c1(0x212),null),_0x6d65c2(this,'_sendingTimer',null);}[_0x21648f(0x20f)](_0x4925a5){const _0x2fe1d6=_0x21648f;return this[_0x2fe1d6(0x3c3)][_0x2fe1d6(0x327)](_0x4925a5),this[_0x2fe1d6(0xf3)](),this;}[_0x21648f(0x2ae)](_0x11c9c6){const _0x340136=_0x21648f;if(this[_0x340136(0x3c0)](_0x11c9c6))return this[_0x340136(0x12b)](),this[_0x340136(0x2d9)]['createInstance'](_0x2ef93b,this[_0x340136(0xff)],this['type'],null,this['_pendingMutations'],null,[_0x11c9c6],this[_0x340136(0x306)]);try{let _0x2a8d55=this[_0x340136(0x376)]['transformMutationsWithChangeset'](_0x11c9c6,this[_0x340136(0x3c3)]);if((0x0,_0x4c2ece[_0x340136(0x2fa)])(_0x2a8d55)){let {c1Prime:_0x11e06d,m2Prime:_0xbdefc2}=_0x2a8d55;this['_executeRemoteChangeset'](_0x11e06d);let _0x27ba2e=this[_0x340136(0x2d9)][_0x340136(0x3d9)](_0x402be7,this[_0x340136(0xff)],this[_0x340136(0x350)],_0xbdefc2,this['_handler']);this['_clearScheduledTask']();let _0x56d743=new Date()[_0x340136(0x21f)](),_0x3c472c=this[_0x340136(0x212)]?Math['max'](this[_0x340136(0x212)]-_0x56d743,0x0):this[_0x340136(0x205)]();return _0x27ba2e[_0x340136(0xf4)](_0x3c472c),_0x27ba2e;}throw _0x2a8d55[_0x340136(0x29e)];}catch(_0x56e3c2){return this[_0x340136(0x2fc)]['error'](_0x56e3c2),this['_onConflict'](!0x1);}}[_0x21648f(0xc9)](_0x194d71){if(_0x194d71['revision']<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x21648f(0x394)](){const _0x351154=_0x21648f;throw Error(_0x351154(0x35b));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x1325b4=_0x21648f;return this[_0x1325b4(0x12b)](),this[_0x1325b4(0x2d9)][_0x1325b4(0x3d9)](_0x519d9e,this['unitID'],this['type'],null,this[_0x1325b4(0x3c3)],this[_0x1325b4(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0xf4)](_0x4ee875){const _0x3b5429=_0x21648f;let _0x179dc6=_0x4ee875==null?this['_getSendChangesetTimeout']():_0x4ee875;this[_0x3b5429(0x212)]=new Date()[_0x3b5429(0x21f)]()+_0x179dc6,this[_0x3b5429(0x253)]=setTimeout(()=>{const _0x143ff1=_0x3b5429;this[_0x143ff1(0x12b)]();let _0x1768fb=null;switch(this['type']){case _0x868841['UniverInstanceType'][_0x143ff1(0x23b)]:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this['unitID'],this[_0x143ff1(0x32f)],this['_revisionService'],this[_0x143ff1(0x132)]);break;case _0x868841[_0x143ff1(0x2f8)]['UNIVER_DOC']:_0x1768fb=this[_0x143ff1(0x3c3)][_0x143ff1(0x27e)](_0xc18059=>_0xc18059['id']===_0x45a7a0[_0x143ff1(0x364)]['id'])?_0x1a4977(this['_pendingMutations'],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]):_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]);break;case _0x868841['UniverInstanceType'][_0x143ff1(0x2b1)]:_0x1768fb=_0x1be665(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;case _0x868841[_0x143ff1(0x2f8)][_0x143ff1(0x28a)]:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this[_0x143ff1(0x132)]);break;case _0x868841[_0x143ff1(0x2f8)]['UNIVER_BASE']:_0x1768fb=_0x3782fb(this[_0x143ff1(0x3c3)],this[_0x143ff1(0xff)],this[_0x143ff1(0x32f)],this[_0x143ff1(0xda)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x143ff1(0x165));}let {changeset:_0x532721,pendingMutations:_0x43f5d0}=_0x1768fb;this[_0x143ff1(0x306)][_0x143ff1(0x11d)](_0x532721);let _0x160015=_0x43f5d0['length']?this[_0x143ff1(0x2d9)][_0x143ff1(0x3d9)](_0x4c911a,this[_0x143ff1(0xff)],this[_0x143ff1(0x350)],_0x532721,_0x43f5d0,this[_0x143ff1(0x306)],void 0x0):this['_injector'][_0x143ff1(0x3d9)](_0x403ace,this[_0x143ff1(0xff)],this[_0x143ff1(0x350)],_0x532721,this[_0x143ff1(0x306)]);_0x160015[_0x143ff1(0xf3)](),this[_0x143ff1(0x306)][_0x143ff1(0x1ba)](this,_0x160015);},_0x179dc6);}[_0x21648f(0x205)](){const _0x46c01d=_0x21648f;var _0x213287;let _0x28bb7f=this[_0x46c01d(0x23e)][_0x46c01d(0x33e)](_0x4b92ba);return(_0x213287=_0x28bb7f==null?void 0x0:_0x28bb7f[_0x46c01d(0x1da)])==null?0x7d0:_0x213287;}[_0x21648f(0x3ac)](){const _0x4bbf57=_0x21648f;throw Error(_0x4bbf57(0x20e));}[_0x21648f(0x12b)](){const _0x57a910=_0x21648f;this['_sendingTimer']!=null&&(clearTimeout(this[_0x57a910(0x253)]),this[_0x57a910(0x253)]=null);}['_onConflict'](_0xc4569){const _0x269ed9=_0x21648f;return this[_0x269ed9(0x12b)](),this['_injector'][_0x269ed9(0x3d9)](_0x391b2a,this[_0x269ed9(0xff)],this[_0x269ed9(0x350)],null,this[_0x269ed9(0x3c3)],this[_0x269ed9(0x306)],_0xc4569);}};_0x5f0bc1=_0x402be7=_0x3e0941([_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x568427)),_0x273192(0x7,_0x868841[_0x21648f(0x206)]),_0x273192(0x8,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x9,_0x868841[_0x21648f(0x2ba)]),_0x273192(0xa,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xb,_0x868841[_0x21648f(0x214)]),_0x273192(0xc,_0x868841[_0x21648f(0x351)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x5f0bc1);let _0x403ace=_0x22ebf8=class extends _0x316f37{constructor(_0x567123,_0x4fa01e,_0x48d64d,_0x111284,_0x4ab0d2,_0x54e873,_0x319569,_0x3e3796,_0x54ea18,_0x585d98,_0x511833){const _0x1a96b8=_0x21648f;super(_0x567123,_0x4fa01e,_0x48d64d,[],_0x111284,_0x319569,_0x585d98,_0x54e873,_0x511833),this[_0x1a96b8(0x2d9)]=_0x4ab0d2,this[_0x1a96b8(0x2fc)]=_0x3e3796,this['_transformService']=_0x54ea18,_0x6d65c2(this,_0x1a96b8(0x341),_0x1a96b8(0x359)),_0x6d65c2(this,_0x1a96b8(0x3e3),0x0),_0x6d65c2(this,_0x1a96b8(0x415),0x0),_0x6d65c2(this,_0x1a96b8(0x2ff),void 0x0),_0x6d65c2(this,_0x1a96b8(0xf7),void 0x0);}[_0x21648f(0x20f)](_0x4ff127){const _0x327416=_0x21648f;this[_0x327416(0x12b)]();let _0xae963=this[_0x327416(0x2d9)]['createInstance'](_0x4c911a,this[_0x327416(0xff)],this[_0x327416(0x350)],this[_0x327416(0x1ca)],[_0x4ff127],this['_handler'],this[_0x327416(0x2ff)]);return _0xae963[_0x327416(0xf3)](),_0xae963;}[_0x21648f(0x2ae)](_0x22077a){const _0x59eaf0=_0x21648f;if(this[_0x59eaf0(0x3c0)](_0x22077a))return this[_0x59eaf0(0x12b)](),this['_injector'][_0x59eaf0(0x3d9)](_0x2ef93b,this['unitID'],this[_0x59eaf0(0x350)],this[_0x59eaf0(0x1ca)],[],null,[_0x22077a],this[_0x59eaf0(0x306)]);try{let _0xb346a8=this[_0x59eaf0(0x376)][_0x59eaf0(0x419)]([_0x22077a],[this[_0x59eaf0(0x1ca)]],!0x1);if((0x0,_0x4c2ece['isTransformChangesetsSuccess'])(_0xb346a8)){let {c1Prime:_0x3d6eef,c2Prime:_0x542453}=_0xb346a8;this['_executeRemoteChangeset'](_0x3d6eef[0x0]),_0x542453[0x0][_0x59eaf0(0x1d8)]=this[_0x59eaf0(0x183)](),this[_0x59eaf0(0x12b)]();let _0x433757=this[_0x59eaf0(0x2d9)][_0x59eaf0(0x3d9)](_0x22ebf8,this[_0x59eaf0(0xff)],this[_0x59eaf0(0x350)],_0x542453[0x0],this[_0x59eaf0(0x306)]);return _0x433757[_0x59eaf0(0xf3)](),_0x433757;}throw _0xb346a8[_0x59eaf0(0x29e)];}catch(_0x141ab4){return this['_logService']['error'](_0x141ab4),this[_0x59eaf0(0x2b9)](!0x1);}}[_0x21648f(0xc9)](_0x5a526a){const _0x593c43=_0x21648f;this[_0x593c43(0x12b)]();let _0x45eb78=this[_0x593c43(0xda)][_0x593c43(0x133)](this['unitID']);if(_0x5a526a[_0x593c43(0xcf)]<=_0x45eb78)return this;if(this[_0x593c43(0x3c0)](_0x5a526a))return this[_0x593c43(0x2d9)]['createInstance'](_0x2ef93b,this[_0x593c43(0xff)],this[_0x593c43(0x350)],this['_awaitingChangeset'],[],_0x5a526a[_0x593c43(0xcf)],[],this[_0x593c43(0x306)]);this['_incrementRevisionNumber']();let _0x18dc40=this[_0x593c43(0x2d9)]['createInstance'](_0x1e7b48,this['unitID'],this[_0x593c43(0x350)],this[_0x593c43(0x306)]);return _0x18dc40[_0x593c43(0xf3)](),_0x18dc40;}[_0x21648f(0x394)](_0xff5aac){const _0x2fec91=_0x21648f;return this[_0x2fec91(0x2b9)](!!(_0xff5aac!=null&&_0xff5aac['isPermissionRej']));}[_0x21648f(0x145)](_0x155ab8){const _0x3cee16=_0x21648f;return this[_0x3cee16(0x415)]>_0x4ff607?this[_0x3cee16(0x3b5)]():(this[_0x3cee16(0x2ff)]=_0x11cbd2(this[_0x3cee16(0x3e3)],{'timeout':this['_resendTimeout'],'reqId':_0x155ab8[_0x3cee16(0x1ff)]}),this[_0x3cee16(0xf7)]=this[_0x3cee16(0x2ff)][_0x3cee16(0x3b6)](({reqId:_0x2f6a28,timeout:_0x5b2729})=>{this['_resendWithTimeout'](_0x2f6a28,_0x5b2729);}),this);}[_0x21648f(0x3b5)](){const _0x3b1428=_0x21648f;return this[_0x3b1428(0x12b)](),this[_0x3b1428(0x2d9)][_0x3b1428(0x3d9)](_0x519d9e,this[_0x3b1428(0xff)],this[_0x3b1428(0x350)],this['_awaitingChangeset'],[],this[_0x3b1428(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x2da836=_0x21648f;this[_0x2da836(0x306)][_0x2da836(0x11d)](this['_awaitingChangeset']);}['_onConflict'](_0x3eb075){const _0x28fa34=_0x21648f;return this[_0x28fa34(0x12b)](),this[_0x28fa34(0x2d9)][_0x28fa34(0x3d9)](_0x391b2a,this[_0x28fa34(0xff)],this['type'],this[_0x28fa34(0x1ca)],[],this[_0x28fa34(0x306)],_0x3eb075);}['_resendWithTimeout'](_0x8157da,_0x42b20a){const _0x243966=_0x21648f;var _0x39bd69;_0x8157da===((_0x39bd69=this[_0x243966(0x1ca)])==null?void 0x0:_0x39bd69[_0x243966(0x1ff)])&&(this[_0x243966(0x3ac)](),this['_resendTimeout']=_0x42b20a===0x0?0x3e8:Math[_0x243966(0xdb)](_0x42b20a*0x2,_0xf1445d),this[_0x243966(0x415)]+=this[_0x243966(0x3e3)]);}['_clearScheduledTask'](){const _0x323503=_0x21648f;var _0x5d237c;(_0x5d237c=this[_0x323503(0xf7)])==null||_0x5d237c[_0x323503(0x157)](),this[_0x323503(0x3e3)]=0x0,this[_0x323503(0x415)]=0x0;}};_0x403ace=_0x22ebf8=_0x3e0941([_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x6,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x7,_0x868841[_0x21648f(0x206)]),_0x273192(0x8,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0x9,_0x868841[_0x21648f(0x351)]),_0x273192(0xa,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x403ace);let _0x4c911a=_0x4b7fc1=class extends _0x316f37{constructor(_0x1545f4,_0x326363,_0x3a17ba,_0x2485e4,_0x3d727b,_0x3dbdb9,_0x303364,_0x344a94,_0x4843a7,_0x4fb051,_0x1ed5d9,_0x251732,_0x575a36){const _0x3d4adf=_0x21648f;super(_0x1545f4,_0x326363,_0x3a17ba,_0x2485e4,_0x3d727b,_0x4843a7,_0x251732,_0x344a94,_0x575a36),this['_injector']=_0x303364,this[_0x3d4adf(0x2fc)]=_0x4fb051,this['_transformService']=_0x1ed5d9,this['localCacheService']=_0x575a36,_0x6d65c2(this,_0x3d4adf(0x341),_0x3d4adf(0x3dc)),_0x6d65c2(this,_0x3d4adf(0x3e3),0x0),_0x6d65c2(this,_0x3d4adf(0x415),0x0),_0x6d65c2(this,_0x3d4adf(0x2ff),void 0x0),_0x6d65c2(this,'_sender',void 0x0),_0x3dbdb9&&(this['_resendTimer']=_0x3dbdb9,this[_0x3d4adf(0xf7)]=this['_resendTimer'][_0x3d4adf(0x3b6)](({reqId:_0x1392cc,timeout:_0x5326db})=>{const _0x2247ea=_0x3d4adf;this[_0x2247ea(0x1e3)](_0x1392cc,_0x5326db);}));}['appendMutation'](_0x278e75){const _0x5cc352=_0x21648f;return this[_0x5cc352(0x3c3)]['push'](_0x278e75),this;}[_0x21648f(0x2ae)](_0x5d4c52){const _0x37c736=_0x21648f;if(this['_checkMissing'](_0x5d4c52))return this['_clearScheduledTask'](),this[_0x37c736(0x2d9)]['createInstance'](_0x2ef93b,this['unitID'],this[_0x37c736(0x350)],this[_0x37c736(0x1ca)],this['_pendingMutations'],null,[_0x5d4c52],this['_handler']);try{let _0x1e815a=this[_0x37c736(0x376)][_0x37c736(0x419)]([_0x5d4c52],[this[_0x37c736(0x1ca)]],!0x1);if((0x0,_0x4c2ece['isTransformChangesetsSuccess'])(_0x1e815a)){let {c1Prime:_0x1f3243,c2Prime:_0x21430d}=_0x1e815a,_0xd54dc3=this[_0x37c736(0x376)][_0x37c736(0x3e9)](_0x1f3243[0x0],this[_0x37c736(0x3c3)]);if((0x0,_0x4c2ece[_0x37c736(0x2fa)])(_0xd54dc3)){let {c1Prime:_0x38d4d3,m2Prime:_0x4068d0}=_0xd54dc3;return this[_0x37c736(0x296)](_0x38d4d3),_0x21430d[0x0][_0x37c736(0x1d8)]=this[_0x37c736(0x183)](),this[_0x37c736(0x12b)](),this[_0x37c736(0x2d9)][_0x37c736(0x3d9)](_0x4b7fc1,this[_0x37c736(0xff)],this[_0x37c736(0x350)],_0x21430d[0x0],_0x4068d0,this['_handler'],void 0x0);}throw _0xd54dc3['error'];}throw _0x1e815a[_0x37c736(0x29e)];}catch(_0x5d22c9){return this['_logService'][_0x37c736(0x29e)](_0x5d22c9),this[_0x37c736(0x2b9)](!0x1);}}[_0x21648f(0xc9)](_0x54cca7){const _0x48b5b6=_0x21648f;this[_0x48b5b6(0x12b)]();let _0x2e4a19=this['_getCurrentRevision']();if(_0x54cca7['revision']<=_0x2e4a19)return this;if(this[_0x48b5b6(0x3c0)](_0x54cca7))return this[_0x48b5b6(0x2d9)][_0x48b5b6(0x3d9)](_0x2ef93b,this['unitID'],this[_0x48b5b6(0x350)],this['_awaitingChangeset'],this[_0x48b5b6(0x3c3)],_0x54cca7[_0x48b5b6(0xcf)],[],this['_handler']);this[_0x48b5b6(0x3d3)]();let _0x67c0bd=this[_0x48b5b6(0x2d9)][_0x48b5b6(0x3d9)](_0x5f0bc1,this[_0x48b5b6(0xff)],this[_0x48b5b6(0x350)],this[_0x48b5b6(0x3c3)],this[_0x48b5b6(0x306)]);return _0x67c0bd[_0x48b5b6(0xf4)](),_0x67c0bd['_updateLocalCache'](),_0x67c0bd;}[_0x21648f(0x394)](_0x26ca86){return this['_onConflict'](!!(_0x26ca86!=null&&_0x26ca86['isPermissionRej']));}[_0x21648f(0x145)](_0x36ac7e){const _0x291d59=_0x21648f;return this[_0x291d59(0x415)]>_0x4ff607?this[_0x291d59(0x3b5)]():(this['_resendTimer']=_0x11cbd2(this[_0x291d59(0x3e3)],{'timeout':this[_0x291d59(0x3e3)],'reqId':_0x36ac7e[_0x291d59(0x1ff)]}),this[_0x291d59(0xf7)]=this[_0x291d59(0x2ff)][_0x291d59(0x3b6)](({reqId:_0x203127,timeout:_0x1cbc07})=>{const _0x1f3c5c=_0x291d59;this[_0x1f3c5c(0x1e3)](_0x203127,_0x1cbc07);}),this);}[_0x21648f(0x3b5)](){const _0x59a5da=_0x21648f;return this['_clearScheduledTask'](),this['_injector'][_0x59a5da(0x3d9)](_0x519d9e,this[_0x59a5da(0xff)],this[_0x59a5da(0x350)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x59a5da(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x192d08=_0x21648f;this[_0x192d08(0x306)][_0x192d08(0x11d)](this['_awaitingChangeset']);}[_0x21648f(0x2b9)](_0x3aa7aa){const _0x52799c=_0x21648f;return this['_clearScheduledTask'](),this[_0x52799c(0x2d9)][_0x52799c(0x3d9)](_0x391b2a,this[_0x52799c(0xff)],this[_0x52799c(0x350)],null,this[_0x52799c(0x3c3)],this[_0x52799c(0x306)],_0x3aa7aa);}['_resendWithTimeout'](_0x438e99,_0x3ec63a){const _0x2eab44=_0x21648f;var _0x1d6ef4;_0x438e99===((_0x1d6ef4=this['_awaitingChangeset'])==null?void 0x0:_0x1d6ef4[_0x2eab44(0x1ff)])&&(this[_0x2eab44(0x3ac)](),this['_resendTimeout']=_0x3ec63a===0x0?0x3e8:Math[_0x2eab44(0xdb)](_0x3ec63a*0x2,_0xf1445d),this[_0x2eab44(0x415)]+=this['_resendTimeout']);}[_0x21648f(0x12b)](){const _0x2cd220=_0x21648f;var _0x7c1f7a;(_0x7c1f7a=this[_0x2cd220(0xf7)])==null||_0x7c1f7a[_0x2cd220(0x157)](),this[_0x2cd220(0x3e3)]=0x0,this[_0x2cd220(0x415)]=0x0;}};_0x4c911a=_0x4b7fc1=_0x3e0941([_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x7,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x8,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xb,_0x868841[_0x21648f(0x351)]),_0x273192(0xc,(0x0,_0x868841['Optional'])(_0x47d8b0))],_0x4c911a);let _0x391b2a=class extends _0x316f37{constructor(_0x1fa4bb,_0x4fe3af,_0x44d3c6,_0x711e4c,_0x394721,_0x220d1e=!0x1,_0x2f9282,_0x439a53,_0x1dedb6,_0x329cce,_0x42b005,_0x536963,_0x3dddab){const _0x2fdcc2=_0x21648f;super(_0x1fa4bb,_0x4fe3af,_0x44d3c6,_0x711e4c,_0x394721,_0x439a53,_0x1dedb6,_0x329cce,_0x3dddab),this[_0x2fdcc2(0x301)]=_0x220d1e,this[_0x2fdcc2(0x393)]=_0x2f9282,this[_0x2fdcc2(0x178)]=_0x42b005,this['_collaborationUIEventService']=_0x536963,this[_0x2fdcc2(0x3f1)]=_0x3dddab,_0x6d65c2(this,_0x2fdcc2(0x341),_0x2fdcc2(0x1c5)),this[_0x2fdcc2(0x2bf)](),this[_0x2fdcc2(0x1f9)](),this['_disableEditing']();}[_0x21648f(0x20f)](){return this;}['onRemoteChangeset'](){return this;}[_0x21648f(0xc9)](){return this;}[_0x21648f(0x394)](){return this;}[_0x21648f(0x145)](){return this;}['toggleOffline'](){return this;}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x3ac)](){const _0x5813cc=_0x21648f;throw Error(_0x5813cc(0xf5));}[_0x21648f(0x1f9)](){const _0x57d56e=_0x21648f;var _0x2538b1,_0x35e0c5,_0x36783d;(_0x2538b1=this[_0x57d56e(0x2c8)])==null||(_0x35e0c5=_0x2538b1[_0x57d56e(0x379)])==null||(_0x35e0c5=_0x35e0c5[_0x57d56e(0x257)](_0x2538b1,this[_0x57d56e(0xff)],_0x57d56e(0x1c5)))==null||_0x35e0c5[_0x57d56e(0x34b)](()=>void 0x0),(_0x36783d=this[_0x57d56e(0x2c8)])==null||_0x36783d[_0x57d56e(0x2f0)](this[_0x57d56e(0xff)],this['type'],null,[]);}[_0x21648f(0x2bf)](){const _0x12451d=_0x21648f;this[_0x12451d(0x301)]?this[_0x12451d(0x2bd)][_0x12451d(0x203)]({'id':_0x12451d(0xe7)}):this[_0x12451d(0x2bd)][_0x12451d(0x203)]({'id':'CONFLICT'});}[_0x21648f(0x152)](){const _0x26ed4b=_0x21648f;this[_0x26ed4b(0x393)][_0x26ed4b(0x339)](new _0x1d347c[(_0x26ed4b(0x360))](this['unitID'])['id'],!0x1);}};_0x391b2a=_0x3e0941([_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x307)])),_0x273192(0x7,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x8,_0x868841[_0x21648f(0x351)]),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['RevisionService'])),_0x273192(0xa,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x290)])),_0x273192(0xb,(0x0,_0x868841['Inject'])(_0x55b02d)),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x391b2a);let _0x519d9e=class extends _0x316f37{constructor(_0x1458d6,_0x316881,_0x34d0d3,_0x25195f,_0x3367d9,_0x7f01f0,_0x2d3633,_0x4c434a,_0x50b797,_0x37cef3){const _0x1e9e7a=_0x21648f;super(_0x1458d6,_0x316881,_0x34d0d3,_0x25195f,_0x3367d9,_0x4c434a,_0x50b797,_0x2d3633,_0x37cef3),this['_injector']=_0x7f01f0,_0x6d65c2(this,'status',_0x1e9e7a(0x250));}[_0x21648f(0x20f)](_0x1d240c){const _0x3ffccf=_0x21648f;return this['_pendingMutations']['push'](_0x1d240c),this[_0x3ffccf(0xf3)](),this;}[_0x21648f(0x2ae)](_0x2f4845){const _0x277f22=_0x21648f;throw Error(_0x277f22(0x295));}[_0x21648f(0xc9)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x2ffd21=_0x21648f;throw Error(_0x2ffd21(0x270));}[_0x21648f(0x145)](){return this;}['toggleOffline'](){return this;}[_0x21648f(0x29d)](){const _0x733b5d=_0x21648f;let {_injector:_0x3720ff,_pendingMutations:_0x25d72f,_awaitingChangeset:_0x9911d3,unitID:_0x2cbedd,_handler:_0x41375d,type:_0x38091e}=this,_0x42e244=_0x1522ce(_0x3720ff,_0x2cbedd,_0x38091e,_0x9911d3,_0x25d72f,_0x41375d);return _0x42e244 instanceof _0x5f0bc1?_0x42e244[_0x733b5d(0xf4)]():(_0x42e244 instanceof _0x4c911a||_0x42e244 instanceof _0x403ace)&&_0x42e244[_0x733b5d(0x3ac)](),_0x42e244;}[_0x21648f(0x3ac)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x519d9e=_0x3e0941([_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x8,_0x868841['IUndoRedoService']),_0x273192(0x9,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x519d9e);let _0x2ef93b=class extends _0x316f37{constructor(_0x2d2fa5,_0x56ef58,_0x5eb312,_0x2cb5ef,_0x51f5f0,_0x3d81db,_0x36701d,_0x3a5a31,_0x451b05,_0x5c5fe7,_0x592ed4,_0x4c4b47,_0x4b71f7,_0x2b2da5){const _0x1cc25b=_0x21648f;super(_0x2d2fa5,_0x56ef58,_0x5eb312,_0x2cb5ef,_0x36701d,_0x592ed4,_0x4c4b47,_0x451b05,_0x2b2da5),this[_0x1cc25b(0x2f7)]=_0x51f5f0,this['_queuedRemoteChangesets']=_0x3d81db,this[_0x1cc25b(0x2d9)]=_0x3a5a31,this[_0x1cc25b(0x2fc)]=_0x5c5fe7,this[_0x1cc25b(0x376)]=_0x4b71f7,this[_0x1cc25b(0x3f1)]=_0x2b2da5,_0x6d65c2(this,_0x1cc25b(0x341),_0x1cc25b(0x402));}[_0x21648f(0xc7)](_0x1aa240){const _0x52b322=_0x21648f;try{if(this[_0x52b322(0x342)](_0x1aa240)[_0x52b322(0x3e2)])throw Error(_0x52b322(0x403));if(this['_handleRemoteChangesets']([...this[_0x52b322(0x3f3)]]['sort']((_0x1a0bb5,_0x17905f)=>_0x1a0bb5[_0x52b322(0xcf)]-_0x17905f[_0x52b322(0xcf)]))[_0x52b322(0x3e2)])return this[_0x52b322(0x3f3)]=[],this[_0x52b322(0xf3)](),this['_handler'][_0x52b322(0x25d)]({'from':this[_0x52b322(0x183)](),'to':0x0}),this;let _0x3ac448=this[_0x52b322(0x1ca)],_0x4bfbd1=this[_0x52b322(0x3c3)],_0x4151ae;if(_0x3ac448&&_0x4bfbd1[_0x52b322(0x207)]!==0x0)_0x4151ae=this['_injector'][_0x52b322(0x3d9)](_0x4c911a,this[_0x52b322(0xff)],this[_0x52b322(0x350)],_0x3ac448,_0x4bfbd1,this[_0x52b322(0x306)],void 0x0);else{if(_0x3ac448&&_0x4bfbd1[_0x52b322(0x207)]===0x0)_0x3ac448[_0x52b322(0x1d8)]=this['_getCurrentRevision'](),_0x4151ae=this[_0x52b322(0x2d9)]['createInstance'](_0x403ace,this['unitID'],this[_0x52b322(0x350)],_0x3ac448,this[_0x52b322(0x306)]);else{if(_0x4bfbd1[_0x52b322(0x207)]!==0x0){let _0x210198=this[_0x52b322(0x2d9)]['createInstance'](_0x5f0bc1,this[_0x52b322(0xff)],this[_0x52b322(0x350)],_0x4bfbd1,this[_0x52b322(0x306)]);_0x210198[_0x52b322(0xf4)](),_0x4151ae=_0x210198;}else _0x4151ae=this[_0x52b322(0x2d9)][_0x52b322(0x3d9)](_0x1e7b48,this[_0x52b322(0xff)],this['type'],this[_0x52b322(0x306)]);}}return _0x4151ae[_0x52b322(0xf3)](),_0x4151ae;}catch(_0x53937f){return this['_logService']['error']('[FetchMissState]',_0x52b322(0x32d),_0x53937f),this[_0x52b322(0x2d9)][_0x52b322(0x3d9)](_0x391b2a,this['unitID'],this[_0x52b322(0x350)],this[_0x52b322(0x1ca)],this[_0x52b322(0x3c3)],this[_0x52b322(0x306)],!0x1);}}[_0x21648f(0x342)](_0x5e0e20){const _0x26ff9d=_0x21648f;this[_0x26ff9d(0x12a)]();for(let _0x3c7968=0x0;_0x3c7968<_0x5e0e20[_0x26ff9d(0x207)];_0x3c7968++){let _0x185664=_0x5e0e20[_0x3c7968],_0x322897=this[_0x26ff9d(0x183)]();if(!(_0x185664[_0x26ff9d(0xcf)]<=_0x322897)){if(_0x185664['revision']>_0x322897+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x185664)){this[_0x26ff9d(0x375)]();continue;}this[_0x26ff9d(0x1f1)](_0x185664),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x21648f(0x1f1)](_0x159b49){const _0x331a9c=_0x21648f;let _0x549fda=_0x159b49,_0x432d78=this[_0x331a9c(0x1ca)];if(_0x432d78){let _0x44abca=this[_0x331a9c(0x376)]['transformChangesets']([_0x159b49],[_0x432d78],!0x1);if(!(0x0,_0x4c2ece[_0x331a9c(0x3a4)])(_0x44abca))throw _0x44abca[_0x331a9c(0x29e)];_0x549fda=_0x44abca[_0x331a9c(0x3ae)][0x0],_0x432d78=_0x44abca[_0x331a9c(0x1dc)][0x0];}let _0x46f055=this[_0x331a9c(0x3c3)];if(_0x46f055[_0x331a9c(0x207)]){let _0x30e93c=this[_0x331a9c(0x376)][_0x331a9c(0x3e9)](_0x549fda,_0x46f055);if(!(0x0,_0x4c2ece[_0x331a9c(0x2fa)])(_0x30e93c))throw _0x30e93c['error'];_0x549fda=_0x30e93c[_0x331a9c(0x3ae)],_0x46f055=_0x30e93c[_0x331a9c(0x188)];}this[_0x331a9c(0x296)](_0x549fda),_0x432d78&&(_0x432d78[_0x331a9c(0x1d8)]=this[_0x331a9c(0x183)]()),this[_0x331a9c(0x1ca)]=_0x432d78,this[_0x331a9c(0x3c3)]=_0x46f055;}[_0x21648f(0x12a)](){const _0x53f3c2=_0x21648f;if(!this[_0x53f3c2(0x1ca)]||this[_0x53f3c2(0x2f7)]==null)return;let _0xe0dc16=this[_0x53f3c2(0x183)]();if(this[_0x53f3c2(0x2f7)]<=_0xe0dc16)throw Error(_0x53f3c2(0x16f)+this[_0x53f3c2(0x2f7)]+'.');this['_acknowledgedAwaitingRevision']===_0xe0dc16+0x1&&this[_0x53f3c2(0x375)]();}[_0x21648f(0x375)](){const _0x34ed63=_0x21648f;this[_0x34ed63(0x3d3)](),this[_0x34ed63(0x1ca)]=null,this[_0x34ed63(0x2f7)]=null;}[_0x21648f(0x12e)](_0x439fd5){const _0x26495b=_0x21648f;let _0x5ddd1f=this['_awaitingChangeset'];return!_0x5ddd1f||!_0x5ddd1f[_0x26495b(0x2d6)]||_0x5ddd1f[_0x26495b(0x1ff)]===null||_0x5ddd1f[_0x26495b(0x1ff)]===void 0x0?!0x1:_0x439fd5['unitID']===_0x5ddd1f['unitID']&&_0x439fd5[_0x26495b(0x2d6)]===_0x5ddd1f[_0x26495b(0x2d6)]&&_0x439fd5[_0x26495b(0x1ff)]===_0x5ddd1f[_0x26495b(0x1ff)];}[_0x21648f(0x3ac)](){const _0xb16caa=_0x21648f;throw Error(_0xb16caa(0x248));}['appendMutation'](_0x4453af){const _0x577b8e=_0x21648f;return this[_0x577b8e(0x3c3)][_0x577b8e(0x327)](_0x4453af),this;}[_0x21648f(0x2ae)](_0x3c99b9){const _0x1187d2=_0x21648f;return this[_0x1187d2(0x3f3)][_0x1187d2(0x327)](_0x3c99b9),this;}[_0x21648f(0xc9)](_0x28bb11){const _0x3a54bd=_0x21648f;if(this[_0x3a54bd(0x1ca)]){let _0x1d842b=this[_0x3a54bd(0x183)]();return _0x28bb11['revision']<=_0x1d842b||(_0x1d842b+0x1===_0x28bb11['revision']?(this['_incrementRevisionNumber'](),this[_0x3a54bd(0x1ca)]=null,this[_0x3a54bd(0x2f7)]=null):this[_0x3a54bd(0x2f7)]=_0x28bb11[_0x3a54bd(0xcf)]),this;}if(_0x28bb11[_0x3a54bd(0xcf)]<=this['_getCurrentRevision']())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x17834b){const _0x42ade0=_0x21648f;return this[_0x42ade0(0x2b9)](!!(_0x17834b!=null&&_0x17834b['isPermissionRej']));}[_0x21648f(0x145)](){return this;}[_0x21648f(0x3b5)](){const _0x197895=_0x21648f;return this[_0x197895(0x2d9)][_0x197895(0x3d9)](_0x519d9e,this[_0x197895(0xff)],this[_0x197895(0x350)],this[_0x197895(0x1ca)],this['_pendingMutations'],this[_0x197895(0x306)]);}[_0x21648f(0x29d)](){return this;}[_0x21648f(0x2b9)](_0x5c4b63){const _0x2c4c55=_0x21648f;return this[_0x2c4c55(0x2d9)]['createInstance'](_0x391b2a,this[_0x2c4c55(0xff)],this[_0x2c4c55(0x350)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x2c4c55(0x306)],_0x5c4b63);}};_0x2ef93b=_0x3e0941([_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x8,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x351)]),_0x273192(0xc,_0x4c2ece[_0x21648f(0x236)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x2ef93b);function _0x1522ce(_0x12f76d,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x37e4e9,_0x18bb95){const _0x177e92=_0x21648f;return _0x3ccd6d&&_0x37e4e9['length']?_0x12f76d['createInstance'](_0x4c911a,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x37e4e9,_0x18bb95,void 0x0):_0x3ccd6d?_0x12f76d[_0x177e92(0x3d9)](_0x403ace,_0x12fbd4,_0x3b33f7,_0x3ccd6d,_0x18bb95):_0x37e4e9[_0x177e92(0x207)]?_0x12f76d[_0x177e92(0x3d9)](_0x5f0bc1,_0x12fbd4,_0x3b33f7,_0x37e4e9,_0x18bb95):_0x12f76d['createInstance'](_0x1e7b48,_0x12fbd4,_0x3b33f7,_0x18bb95);}let _0x598b2a=class extends _0x868841[_0x21648f(0x112)]{get[_0x21648f(0xcc)](){return this['_state'];}constructor(_0x4be8eb,_0x4fd579,_0x4bc0c1,_0xf5bb5e,_0x3e40c2,_0x5ab8a5,_0x2fd36f,_0x115cce,_0x146ea5,_0x5c5944,_0x2a680a,_0x3cefb3,_0x40014d,_0x234439){const _0x3f8697=_0x21648f;super(),this[_0x3f8697(0xff)]=_0x4be8eb,this['session']=_0x4fd579,this[_0x3f8697(0x321)]=_0x4bc0c1,this[_0x3f8697(0x2d9)]=_0xf5bb5e,this[_0x3f8697(0x2ab)]=_0x3e40c2,this[_0x3f8697(0x178)]=_0x5ab8a5,this[_0x3f8697(0xda)]=_0x2fd36f,this[_0x3f8697(0x11e)]=_0x115cce,this[_0x3f8697(0x32f)]=_0x146ea5,this[_0x3f8697(0x2fc)]=_0x5c5944,this[_0x3f8697(0x155)]=_0x2a680a,this['_permissionService']=_0x3cefb3,this['_singleActiveUnitService']=_0x40014d,this[_0x3f8697(0x2c8)]=_0x234439,_0x6d65c2(this,_0x3f8697(0x18b),new _0x409690['BehaviorSubject'](null)),_0x6d65c2(this,'state$',this['_state$'][_0x3f8697(0x340)]()),_0x6d65c2(this,'_state',void 0x0),_0x6d65c2(this,'_collaborationPaused',!0x1),_0x6d65c2(this,_0x3f8697(0x2e6),''),_0x6d65c2(this,_0x3f8697(0x2d0),0x0),_0x6d65c2(this,_0x3f8697(0x396),this[_0x3f8697(0xfc)][_0x3f8697(0x320)]((0x0,_0x409690[_0x3f8697(0x26e)])(_0x13ec61=>_0x13ec61?_0x13ec61['status']:'offline'),(0x0,_0x409690['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x6d65c2(this,_0x3f8697(0x323),!0x1),_0x6d65c2(this,_0x3f8697(0x2f2),[]);}async[_0x21648f(0x18a)](){const _0x223762=_0x21648f;if(this[_0x223762(0xcc)])throw Error(_0x223762(0x2e4));await this[_0x223762(0x139)]();}[_0x21648f(0x13f)](){const _0x302e80=_0x21648f;return this[_0x302e80(0x28c)]=!0x0,(0x0,_0x868841['toDisposable'])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x21648f(0x3b1)](_0x4b0caa){const _0x3f6426=_0x21648f;this[_0x3f6426(0x211)](_0x4b0caa);}[_0x21648f(0x3dd)](_0x1b2811){const _0x220302=_0x21648f;this[_0x220302(0x392)]=_0x1b2811,this[_0x220302(0x18b)][_0x220302(0xdd)](_0x1b2811);}async[_0x21648f(0x139)](){const _0x37651c=_0x21648f;if(this[_0x37651c(0x3dd)](await this[_0x37651c(0x1f6)]()),this[_0x37651c(0x1a6)]){var _0x48db3b;(_0x48db3b=this[_0x37651c(0x1a6)])==null||_0x48db3b[_0x37651c(0x1f4)](this['unitID']),this[_0x37651c(0xd1)](this['_singleActiveUnitService'][_0x37651c(0x19b)](this[_0x37651c(0xff)])[_0x37651c(0x3b6)](_0x4c131c=>{const _0x134d99=_0x37651c;this['_logService'][_0x134d99(0x39c)](_0x134d99(0xde),_0x134d99(0x3b0),_0x4c131c),_0x4c131c===0x1?(this[_0x134d99(0x11e)][_0x134d99(0x203)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x134d99(0x339)](new _0x1d347c[(_0x134d99(0x360))](this[_0x134d99(0xff)])['id'],!0x1),this[_0x134d99(0x393)][_0x134d99(0x2b6)](!0x1)):(this[_0x134d99(0x393)][_0x134d99(0x339)](new _0x1d347c[(_0x134d99(0x360))](this['unitID'])['id'],!0x0),this[_0x134d99(0x393)][_0x134d99(0x2b6)](!0x0));}));}let _0x571e6d=!0x1;return this['disposeWithMe'](this[_0x37651c(0x24d)][_0x37651c(0x1ce)][_0x37651c(0x3b6)](_0x53f712=>{const _0x49bf78=_0x37651c;_0x53f712===0x3?this[_0x49bf78(0x1e2)](_0x571e6d):_0x53f712===0x2&&(_0x571e6d=!0x0,this[_0x49bf78(0x311)]());})),this[_0x37651c(0xd1)](this[_0x37651c(0x24d)]['event$'][_0x37651c(0x3b6)](_0x43bda4=>{const _0x3dfb7c=_0x37651c;try{switch(_0x43bda4[_0x3dfb7c(0x1d9)]){case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x174)]:this[_0x3dfb7c(0x221)]((0x0,_0x4c2ece['parseProtocolChangeset'])(_0x43bda4[_0x3dfb7c(0x29b)]));break;case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x3c2)]:this[_0x3dfb7c(0x1d2)](_0x43bda4[_0x3dfb7c(0x29b)]);break;case _0x4c2ece[_0x3dfb7c(0x343)]['CHANGESET_REJ']:this[_0x3dfb7c(0x361)]();break;case _0x4c2ece[_0x3dfb7c(0x343)][_0x3dfb7c(0x2be)]:this[_0x3dfb7c(0x12f)](_0x43bda4[_0x3dfb7c(0x29b)]);break;case _0x4c2ece[_0x3dfb7c(0x343)][_0x3dfb7c(0x26a)]:this['_onFetchMissResult'](_0x43bda4[_0x3dfb7c(0x29b)][_0x3dfb7c(0x14b)]['map'](_0x4cc82d=>(0x0,_0x4c2ece['parseProtocolChangeset'])(_0x4cc82d)));break;case _0x4c2ece[_0x3dfb7c(0x343)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x4c2ece['CollaborationEvent'][_0x3dfb7c(0x1cd)]:break;}}catch(_0x347df9){throw console[_0x3dfb7c(0x29e)](_0x3dfb7c(0x29c),_0x347df9),_0x347df9;}})),this[_0x37651c(0x392)];}['_unlockTransition'](){const _0x11e18a=_0x21648f;this[_0x11e18a(0x323)]=!0x1;}[_0x21648f(0x365)](){const _0x56538e=_0x21648f;if(this[_0x56538e(0x323)])throw Error(_0x56538e(0x34e));this['_transitionLocked']=!0x0;}[_0x21648f(0x211)](_0x455eae){const _0x36527c=_0x21648f;this[_0x36527c(0x365)](),this[_0x36527c(0x3dd)](this[_0x36527c(0x392)]['appendMutation'](_0x455eae)),this['_unlockTransition']();}[_0x21648f(0x221)](_0x275215){const _0x1021ec=_0x21648f;if(!(_0x275215['revision']<=this[_0x1021ec(0xda)][_0x1021ec(0x133)](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x275215);return;}this[_0x1021ec(0x405)](_0x275215);}}[_0x21648f(0x105)](){const _0x1ba669=_0x21648f;this[_0x1ba669(0x2f2)][_0x1ba669(0x352)](_0x593eca=>this[_0x1ba669(0x405)](_0x593eca)),this[_0x1ba669(0x2f2)]=[];}[_0x21648f(0x405)](_0x444928){const _0x5b7c21=_0x21648f;let _0xd8a8fe=this[_0x5b7c21(0x2ab)]['interceptor'][_0x5b7c21(0x3b3)](this[_0x5b7c21(0x2ab)][_0x5b7c21(0x1a2)][_0x5b7c21(0x378)]()[_0x5b7c21(0xc6)])(_0x444928[_0x5b7c21(0x1bb)],null)||_0x444928[_0x5b7c21(0x1bb)],_0xed1f79={..._0x444928,'mutations':_0xd8a8fe};this[_0x5b7c21(0x365)](),this[_0x5b7c21(0x3dd)](this['_state'][_0x5b7c21(0x2ae)](_0xed1f79)),this['_unlockTransition']();}[_0x21648f(0x1d2)](_0x4d6841){const _0x2eebf6=_0x21648f;this['_lockTransition'](),this[_0x2eebf6(0x3dd)](this[_0x2eebf6(0x392)]['onRemoteAck'](_0x4d6841)),this['_unlockTransition']();}['_onRemoteRejected'](_0x1d1939){const _0x372a08=_0x21648f;this['_lockTransition'](),this[_0x372a08(0x3dd)](this['_state'][_0x372a08(0x394)](_0x1d1939)),this[_0x372a08(0x18f)]();}['_onRemoteRetry'](_0x1de9b0){const _0x281e52=_0x21648f;this['_lockTransition'](),this['_updateState'](this[_0x281e52(0x392)]['onRemoteRetry'](_0x1de9b0)),this[_0x281e52(0x18f)]();}['_onFetchMissResult'](_0x18d77b){const _0x3d0fd2=_0x21648f;if(!(this[_0x3d0fd2(0x392)]instanceof _0x2ef93b))throw TypeError(_0x3d0fd2(0x247));let _0x4945b5=_0x18d77b[_0x3d0fd2(0x26e)](_0x1c66aa=>{const _0x2835c8=_0x3d0fd2;let _0x37102b=this['_compressMutationService'][_0x2835c8(0x1a2)][_0x2835c8(0x3b3)](this[_0x2835c8(0x2ab)][_0x2835c8(0x1a2)][_0x2835c8(0x378)]()['COMPRESS_MUTATION_APPLY'])(_0x1c66aa['mutations'],null)||_0x1c66aa['mutations'];return{..._0x1c66aa,'mutations':_0x37102b};});this[_0x3d0fd2(0x365)](),this['_updateState'](this[_0x3d0fd2(0x392)][_0x3d0fd2(0xc7)](_0x4945b5)),this[_0x3d0fd2(0x18f)]();}[_0x21648f(0x311)](){const _0x47b022=_0x21648f;this[_0x47b022(0x365)](),this['_updateState'](this[_0x47b022(0x392)][_0x47b022(0x3b5)]()),this[_0x47b022(0x18f)]();}[_0x21648f(0x1e2)](_0x30fc87=!0x1){const _0x4e7cfa=_0x21648f;this['_lockTransition'](),this[_0x4e7cfa(0x3dd)](this[_0x4e7cfa(0x392)][_0x4e7cfa(0x29d)]()),this['_unlockTransition']();let _0x1b6b57=this[_0x4e7cfa(0x392)];_0x30fc87&&_0x1b6b57 instanceof _0x1e7b48&&(this[_0x4e7cfa(0x365)](),this[_0x4e7cfa(0x3dd)](_0x1b6b57[_0x4e7cfa(0x175)]()),this[_0x4e7cfa(0x18f)]());}async['_createInitialState'](){return new Promise(_0x1d328c=>{const _0x40d769=_0x2b93;this[_0x40d769(0x24d)]['sessionStatus$'][_0x40d769(0x320)]((0x0,_0x409690[_0x40d769(0x2e2)])(0x1))[_0x40d769(0x3b6)](async _0x2017eb=>{const _0x12751f=_0x40d769;_0x1d328c(await this[_0x12751f(0x10b)](_0x2017eb===0x3));});});}['_createHandler'](){const _0x3a4aaf=_0x21648f;let _0x36b61f=this[_0x3a4aaf(0xff)];return{'onStateChange':(_0x275da5,_0xb8b92a)=>{const _0x47799a=_0x3a4aaf;if(_0x275da5!==this[_0x47799a(0x392)])throw Error(_0x47799a(0x26c)+_0x275da5['status']+_0x47799a(0x22f)+_0xb8b92a[_0x47799a(0x341)]+_0x47799a(0x23d)+this['_state']['status']);this[_0x47799a(0x3dd)](_0xb8b92a);},'onSendChangeset':_0x1b84d1=>{const _0x46cec2=_0x3a4aaf;_0x1b84d1[_0x46cec2(0x2d6)]||(_0x1b84d1[_0x46cec2(0x2d6)]=this[_0x46cec2(0x2e6)],_0x1b84d1['reqId']=++this[_0x46cec2(0x2d0)]);let _0xfbecf5={'eventID':_0x4c2ece[_0x46cec2(0x343)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x1b84d1['unitID'],'unitType':this['_type'],'changeset':_0x1b84d1,'memberID':this[_0x46cec2(0x24d)][_0x46cec2(0x372)]()}};this[_0x46cec2(0x24d)][_0x46cec2(0x182)](_0xfbecf5,this[_0x46cec2(0xff)]);},'onMissingChangesets':({from:_0x253d53,to:_0x1baa33})=>{const _0x4c5209=_0x3a4aaf;this[_0x4c5209(0x2fc)][_0x4c5209(0x39c)](_0x4c5209(0xde),_0x4c5209(0x2af)+_0x253d53+_0x4c5209(0x368)+_0x1baa33);let _0x2ebec9={'eventID':_0x4c2ece[_0x4c5209(0x343)][_0x4c5209(0x2f4)],'data':{'unitID':_0x36b61f,'unitType':this[_0x4c5209(0x321)],'from':_0x253d53,'to':_0x1baa33}};this[_0x4c5209(0x24d)]['send'](_0x2ebec9,this[_0x4c5209(0xff)]);}};}async['_createInitialStateImpl'](_0x3bbdb4){const _0x448190=_0x21648f;var _0x1d80bf,_0x6e39e7,_0x4a3a74;let _0x39f77a=await((_0x1d80bf=this[_0x448190(0x2c8)])==null?void 0x0:_0x1d80bf[_0x448190(0x38e)](this[_0x448190(0xff)])),_0x2f9da2=(_0x6e39e7=_0x39f77a==null?void 0x0:_0x39f77a[_0x448190(0x1bb)])==null?[]:_0x6e39e7,_0x3c4431=(_0x4a3a74=_0x39f77a==null?void 0x0:_0x39f77a[_0x448190(0x1ed)])==null?null:_0x4a3a74,_0x361e06=!!(_0x3c4431!=null&&_0x3c4431[_0x448190(0x2d6)])&&!!(_0x3c4431!=null&&_0x3c4431[_0x448190(0x1ff)]);this[_0x448190(0x2e6)]=_0x361e06?_0x3c4431[_0x448190(0x2d6)]:(0x0,_0x4c2ece['uuidv4'])(),this[_0x448190(0x2d0)]=_0x361e06?_0x3c4431['reqId']:0x0;let _0x406679=this['unitID'];try{this['_replayCachedMutations'](_0x3c4431,_0x2f9da2);}catch(_0x2eee9c){this['_logService'][_0x448190(0x29e)](_0x2eee9c);}let _0x2e42ae=this[_0x448190(0x1a7)]();if(_0x3bbdb4){let _0x215a77=_0x1522ce(this[_0x448190(0x2d9)],_0x406679,this[_0x448190(0x321)],_0x3c4431,_0x2f9da2,_0x2e42ae);return _0x215a77 instanceof _0x5f0bc1?_0x215a77[_0x448190(0xf4)]():(_0x215a77 instanceof _0x4c911a||_0x215a77 instanceof _0x403ace)&&_0x215a77[_0x448190(0x3ac)](),_0x215a77;}return this[_0x448190(0x2d9)][_0x448190(0x3d9)](_0x519d9e,_0x406679,this[_0x448190(0x321)],_0x3c4431,_0x2f9da2,_0x2e42ae);}[_0x21648f(0x169)](_0x4eff8d,_0x5ced76){const _0x2b61e4=_0x21648f;var _0x279c86,_0x266434;let _0x52f7fb=this[_0x2b61e4(0x2ab)][_0x2b61e4(0x1a2)][_0x2b61e4(0x3b3)](this['_compressMutationService']['interceptor'][_0x2b61e4(0x378)]()[_0x2b61e4(0xc6)]);(_0x279c86=_0x52f7fb((_0x4eff8d==null?void 0x0:_0x4eff8d['mutations'])||[],null))==null||_0x279c86[_0x2b61e4(0x352)](_0x2067b7=>this[_0x2b61e4(0x155)]['executeCommand'](_0x2067b7['id'],_0x2067b7[_0x2b61e4(0x2b4)])),(_0x266434=_0x52f7fb(_0x5ced76||[],null))==null||_0x266434[_0x2b61e4(0x352)](_0x2e599b=>this['_commandService'][_0x2b61e4(0x1cb)](_0x2e599b['id'],_0x2e599b[_0x2b61e4(0x2b4)]));}};_0x598b2a=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x4,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841['Optional'])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x598b2a);let _0x148d55=class extends _0x598b2a{constructor(_0x17f7da,_0x3931cc,_0x55f2f2,_0x354dd9,_0x4069fa,_0xfdbccb,_0xb8af4a,_0x37ff4e,_0x2ed815,_0x4ee4ae,_0x4016d5,_0x2dad82,_0x3a9fbf,_0x42a31a,_0x86b865){const _0x22146d=_0x21648f;super(_0x17f7da,_0x55f2f2,_0x3931cc,_0x354dd9,_0x4069fa,_0xfdbccb,_0xb8af4a,_0x37ff4e,_0x2ed815,_0x4ee4ae,_0x4016d5,_0x2dad82,_0x42a31a,_0x86b865),this[_0x22146d(0xff)]=_0x17f7da,this[_0x22146d(0x350)]=_0x3931cc,this[_0x22146d(0x14a)]=_0x3a9fbf,_0x6d65c2(this,_0x22146d(0x3ff),null);}[_0x21648f(0x31c)](_0x2fb48d){const _0x22a0f0=_0x21648f;this[_0x22a0f0(0x3ff)]=_0x2fb48d;}[_0x21648f(0x265)](){this['_handlerCallback']=null,super['dispose']();}[_0x21648f(0x1a7)](){const _0xd159e8=_0x21648f;let _0x22bea2=super['_createHandler']();return _0x22bea2[_0xd159e8(0x1d5)]=_0x218232=>{const _0x5c3e6c=_0xd159e8;var _0xeffb27,_0x5e6a54;return(_0xeffb27=this['_handlerCallback'])==null||(_0x5e6a54=_0xeffb27[_0x5c3e6c(0x1d5)])==null?void 0x0:_0x5e6a54[_0x5c3e6c(0x257)](_0xeffb27,_0x218232);},_0x22bea2[_0xd159e8(0x2e0)]=_0x51597b=>{const _0x34f593=_0xd159e8;var _0x2b536b,_0x4f0d89;return(_0x2b536b=this[_0x34f593(0x3ff)])==null||(_0x4f0d89=_0x2b536b[_0x34f593(0x2e0)])==null?void 0x0:_0x4f0d89[_0x34f593(0x257)](_0x2b536b,_0x51597b);},_0x22bea2[_0xd159e8(0x33c)]=_0x38e5cf=>{const _0x2d2104=_0xd159e8;var _0x294729,_0x310019;return(_0x294729=this[_0x2d2104(0x3ff)])==null||(_0x310019=_0x294729[_0x2d2104(0x33c)])==null?void 0x0:_0x310019[_0x2d2104(0x257)](_0x294729,_0x38e5cf);},_0x22bea2[_0xd159e8(0x2f6)]=_0x5d649e=>{const _0x16c791=_0xd159e8;var _0x1de910,_0x59aaef;return(_0x1de910=this[_0x16c791(0x3ff)])==null||(_0x59aaef=_0x1de910[_0x16c791(0x2f6)])==null?void 0x0:_0x59aaef['call'](_0x1de910,_0x5d649e);},_0x22bea2[_0xd159e8(0x19f)]=_0x48151a=>{const _0x30e389=_0xd159e8;var _0x4c0359,_0x28e2ac,_0x1ba06d;return(_0x4c0359=(_0x28e2ac=this[_0x30e389(0x3ff)])==null||(_0x1ba06d=_0x28e2ac[_0x30e389(0x19f)])==null?void 0x0:_0x1ba06d[_0x30e389(0x257)](_0x28e2ac,_0x48151a))==null?_0x48151a:_0x4c0359;},_0x22bea2[_0xd159e8(0x347)]=_0x4fe4a5=>{const _0x4bfb77=_0xd159e8;var _0x165193,_0x2f83ee,_0xa73929;return(_0x165193=(_0x2f83ee=this[_0x4bfb77(0x3ff)])==null||(_0xa73929=_0x2f83ee[_0x4bfb77(0x347)])==null?void 0x0:_0xa73929[_0x4bfb77(0x257)](_0x2f83ee,_0x4fe4a5))==null?_0x4fe4a5:_0x165193;},_0x22bea2;}async[_0x21648f(0x139)](){const _0x3527c2=_0x21648f;let _0x184730=await super[_0x3527c2(0x139)]();return this[_0x3527c2(0xd1)](this[_0x3527c2(0x14a)]['docStateChange$']['subscribe'](_0x3a8d72=>{const _0xe82aea=_0x3527c2;if(_0x3a8d72==null||_0x3a8d72[_0xe82aea(0x3b9)]!==this[_0xe82aea(0xff)])return;let {commandId:_0xef0038,redoState:_0x41fc93,unitId:_0x8a5b0d}=_0x3a8d72,_0x6c313={'id':_0xef0038,'type':_0x868841[_0xe82aea(0x3a8)][_0xe82aea(0x2f9)],'params':{'unitId':_0x8a5b0d,'actions':_0x41fc93[_0xe82aea(0x130)],'textRanges':null}};this[_0xe82aea(0x211)](_0x6c313);})),this[_0x3527c2(0xd1)](this[_0x3527c2(0x155)][_0x3527c2(0x217)]((_0x243989,_0x593b35)=>{const _0x1a03a3=_0x3527c2;if(_0x243989[_0x1a03a3(0x350)]!==_0x868841[_0x1a03a3(0x3a8)]['MUTATION']||_0x593b35!=null&&_0x593b35[_0x1a03a3(0xd8)]||_0x593b35!=null&&_0x593b35[_0x1a03a3(0x234)]||_0x243989['id']===_0x45a7a0[_0x1a03a3(0x364)]['id'])return;let _0x17fb1d=_0x243989[_0x1a03a3(0x2b4)];if((_0x17fb1d==null?void 0x0:_0x17fb1d[_0x1a03a3(0x3b9)])!==this[_0x1a03a3(0xff)])return;let _0x4641bf=_0x243989,_0x27c2fb=this[_0x1a03a3(0x2ab)][_0x1a03a3(0x1a2)][_0x1a03a3(0x3b3)](this[_0x1a03a3(0x2ab)][_0x1a03a3(0x1a2)][_0x1a03a3(0x378)]()['COMPRESS_MUTATION_SEND'])([_0x4641bf],this['_univerInstanceService'])||[_0x4641bf];this[_0x1a03a3(0x211)](_0x27c2fb[0x0]);})),_0x184730;}};_0x148d55=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841['ILogService']),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841['Inject'])(_0x45a7a0[_0x21648f(0x1a8)])),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xe,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x148d55);let _0x552cde=class extends _0x598b2a{constructor(_0x186d7a,_0x4323e9,_0x30b0da,_0x466a33,_0x2aa647,_0x177394,_0x4d3cd3,_0x1e31c9,_0x3cc2f7,_0x1a8e43,_0x272e9c,_0x2b54ef,_0x4808ec,_0x20c77b){const _0x2c3002=_0x21648f;super(_0x186d7a,_0x30b0da,_0x4323e9,_0x466a33,_0x2aa647,_0x177394,_0x4d3cd3,_0x1e31c9,_0x3cc2f7,_0x1a8e43,_0x272e9c,_0x2b54ef,_0x4808ec,_0x20c77b),this[_0x2c3002(0xff)]=_0x186d7a,this[_0x2c3002(0x350)]=_0x4323e9;}async[_0x21648f(0x139)](){const _0xfe353e=_0x21648f;let _0x3e3a81=await super[_0xfe353e(0x139)]();return this[_0xfe353e(0xd1)](this[_0xfe353e(0x155)][_0xfe353e(0x217)]((_0x2cbd2e,_0x226759)=>{const _0x24c0c0=_0xfe353e;if(_0x2cbd2e[_0x24c0c0(0x350)]!==_0x868841[_0x24c0c0(0x3a8)][_0x24c0c0(0x2f9)]||_0x226759!=null&&_0x226759['fromCollab']||_0x226759!=null&&_0x226759[_0x24c0c0(0x234)])return;let _0x5e04c2=_0x2cbd2e[_0x24c0c0(0x2b4)];if((_0x5e04c2==null?void 0x0:_0x5e04c2[_0x24c0c0(0x3b9)])!==this[_0x24c0c0(0xff)])return;let _0x401639=_0x2cbd2e,_0x3e746a=this[_0x24c0c0(0x2ab)][_0x24c0c0(0x1a2)]['fetchThroughInterceptors'](this[_0x24c0c0(0x2ab)][_0x24c0c0(0x1a2)][_0x24c0c0(0x378)]()[_0x24c0c0(0x232)])([_0x401639],this[_0x24c0c0(0x32f)])||[_0x401639];this['_onLocalMutation'](_0x3e746a[0x0]);})),_0x3e3a81;}};_0x552cde=_0x3e0941([_0x273192(0x3,(0x0,_0x868841['Inject'])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['CompressMutationService'])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841['ILogService']),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841[_0x21648f(0x307)]),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x552cde);let _0x4b3c61=class extends _0x598b2a{constructor(_0x546c45,_0x430960,_0x3dd5ef,_0x46c816,_0x5f3ef5,_0x161c92,_0x45a231,_0x7a50f8,_0x4ab9b2,_0x14a51c,_0x23a81c,_0x3a76e9,_0x69fcf0,_0x1dedca,_0x236483){const _0x55fc0f=_0x21648f;super(_0x546c45,_0x3dd5ef,_0x430960,_0x46c816,_0x5f3ef5,_0x161c92,_0x45a231,_0x4ab9b2,_0x14a51c,_0x23a81c,_0x3a76e9,_0x69fcf0,_0x1dedca,_0x236483),this[_0x55fc0f(0xff)]=_0x546c45,this[_0x55fc0f(0x350)]=_0x430960,this['_sheetTransformSelectionsService']=_0x7a50f8;}[_0x21648f(0x1a7)](){const _0x49c307=_0x21648f;let _0x34d240=super['_createHandler']();return _0x34d240[_0x49c307(0x33c)]=_0x37c2f3=>this[_0x49c307(0x385)][_0x49c307(0x3f0)](_0x37c2f3),_0x34d240;}async['_init'](){const _0x36276c=_0x21648f;let _0x48cb5b=await super['_init']();return this[_0x36276c(0xd1)](this[_0x36276c(0x155)][_0x36276c(0x217)]((_0x108427,_0x15ced0)=>{const _0x4e4e04=_0x36276c;if(_0x108427[_0x4e4e04(0x350)]!==_0x868841['CommandType'][_0x4e4e04(0x2f9)]||_0x15ced0!=null&&_0x15ced0['fromCollab']||_0x15ced0!=null&&_0x15ced0[_0x4e4e04(0x234)])return;let _0x2d3a99=_0x108427[_0x4e4e04(0x2b4)];if((_0x2d3a99==null?void 0x0:_0x2d3a99[_0x4e4e04(0x3b9)])!==this[_0x4e4e04(0xff)])return;let _0x464732=_0x108427,_0x24692f=this[_0x4e4e04(0x2ab)][_0x4e4e04(0x1a2)][_0x4e4e04(0x3b3)](this[_0x4e4e04(0x2ab)][_0x4e4e04(0x1a2)][_0x4e4e04(0x378)]()['COMPRESS_MUTATION_SEND'])([_0x464732],this[_0x4e4e04(0x32f)])||[_0x464732];this[_0x4e4e04(0x211)](_0x24692f[0x0]);})),_0x48cb5b;}};_0x4b3c61=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece['RevisionService'])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0xd82d96)),_0x273192(0x8,(0x0,_0x868841['Inject'])(_0x55b02d)),_0x273192(0x9,_0x868841[_0x21648f(0x214)]),_0x273192(0xa,_0x868841['ILogService']),_0x273192(0xb,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xc,_0x868841[_0x21648f(0x307)]),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xe,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x4b3c61);let _0x52744e=class extends _0x598b2a{constructor(_0x392e77,_0x27b124,_0x47576f,_0x31b428,_0x29d625,_0x1d19c7,_0x3bcd9f,_0x56db5d,_0x4d9975,_0x1c964d,_0x409e03,_0x107d21,_0x10ac95,_0x3f62e3){const _0x472ca1=_0x21648f;super(_0x392e77,_0x47576f,_0x27b124,_0x31b428,_0x29d625,_0x1d19c7,_0x3bcd9f,_0x56db5d,_0x4d9975,_0x1c964d,_0x409e03,_0x107d21,_0x10ac95,_0x3f62e3),this[_0x472ca1(0xff)]=_0x392e77,this[_0x472ca1(0x350)]=_0x27b124;}async['_init'](){const _0x5b1b3f=_0x21648f;let _0x381b20=await super[_0x5b1b3f(0x139)]();return this[_0x5b1b3f(0xd1)](this[_0x5b1b3f(0x155)][_0x5b1b3f(0x217)]((_0x572392,_0x19095f)=>{const _0x2e8c01=_0x5b1b3f;if(_0x572392['type']!==_0x868841[_0x2e8c01(0x3a8)][_0x2e8c01(0x2f9)]||_0x19095f!=null&&_0x19095f[_0x2e8c01(0xd8)]||_0x19095f!=null&&_0x19095f[_0x2e8c01(0x234)])return;let _0x54b6e7=_0x572392['params'];if((_0x54b6e7==null?void 0x0:_0x54b6e7['unitId'])!==this[_0x2e8c01(0xff)])return;let _0x3bb2f3=_0x572392,_0x3d67c2=this[_0x2e8c01(0x2ab)][_0x2e8c01(0x1a2)][_0x2e8c01(0x3b3)](this['_compressMutationService'][_0x2e8c01(0x1a2)][_0x2e8c01(0x378)]()[_0x2e8c01(0x232)])([_0x3bb2f3],this[_0x2e8c01(0x32f)])||[_0x3bb2f3];this[_0x2e8c01(0x211)](_0x3d67c2[0x0]);})),_0x381b20;}};_0x52744e=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x290)])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841['ICommandService']),_0x273192(0xb,_0x868841['IPermissionService']),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841['Optional'])(_0x47d8b0))],_0x52744e);let _0x9a1332=class extends _0x598b2a{constructor(_0x195e8d,_0x1557fb,_0x413977,_0x2b8a6e,_0x23ac6b,_0x5b619a,_0x1007e7,_0x5182f8,_0x6bc01c,_0x2467dc,_0x3c5e30,_0x504c41,_0x38897f,_0x50c7f3){const _0x51c008=_0x21648f;super(_0x195e8d,_0x413977,_0x1557fb,_0x2b8a6e,_0x23ac6b,_0x5b619a,_0x1007e7,_0x5182f8,_0x6bc01c,_0x2467dc,_0x3c5e30,_0x504c41,_0x38897f,_0x50c7f3),this['unitID']=_0x195e8d,this[_0x51c008(0x350)]=_0x1557fb;}async['_init'](){const _0x3ef3c7=_0x21648f;let _0x3bca3c=await super[_0x3ef3c7(0x139)]();return this['disposeWithMe'](this[_0x3ef3c7(0x155)][_0x3ef3c7(0x217)]((_0x588378,_0x5f1753)=>{const _0x4981ce=_0x3ef3c7;if(_0x588378[_0x4981ce(0x350)]!==_0x868841[_0x4981ce(0x3a8)][_0x4981ce(0x2f9)]||_0x5f1753!=null&&_0x5f1753[_0x4981ce(0xd8)]||_0x5f1753!=null&&_0x5f1753['onlyLocal'])return;let _0x42b4ed=_0x588378[_0x4981ce(0x2b4)];if((_0x42b4ed==null?void 0x0:_0x42b4ed['unitId'])!==this['unitID'])return;let _0x4a19e2=_0x588378,_0x58f2ff=this[_0x4981ce(0x2ab)][_0x4981ce(0x1a2)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x4981ce(0x1a2)][_0x4981ce(0x378)]()[_0x4981ce(0x232)])([_0x4a19e2],this[_0x4981ce(0x32f)])||[_0x4a19e2];this['_onLocalMutation'](_0x58f2ff[0x0]);})),_0x3bca3c;}};_0x9a1332=_0x3e0941([_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['Injector'])),_0x273192(0x4,(0x0,_0x868841['Inject'])(_0x4c2ece[_0x21648f(0x275)])),_0x273192(0x5,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService'])),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x15f)])),_0x273192(0x7,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x8,_0x868841[_0x21648f(0x214)]),_0x273192(0x9,_0x868841[_0x21648f(0x206)]),_0x273192(0xa,_0x868841[_0x21648f(0x2fd)]),_0x273192(0xb,_0x868841['IPermissionService']),_0x273192(0xc,(0x0,_0x868841[_0x21648f(0x238)])(_0x3857c0)),_0x273192(0xd,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x9a1332);let _0x161fca=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x31f));function _0x3b8398(_0x46b29e){const _0x4c5da3=_0x21648f;let _0x56a881=_0x46b29e['data'],_0x79cf66=JSON['parse'](_0x56a881);switch(_0x79cf66['cmd']){case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x1d6)]:case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x3ed)]:{let _0x27f621=_0x79cf66[_0x4c5da3(0xe9)];return{..._0x79cf66,'data':_0x27f621,'cmd':_0x79cf66[_0x4c5da3(0x26b)]};}case _0x1df2bb['CombCmd'][_0x4c5da3(0xf1)]:{let _0x228e7f=_0x79cf66['joinRsp'];return{..._0x79cf66,'data':_0x228e7f,'cmd':_0x79cf66[_0x4c5da3(0x26b)]};}case _0x1df2bb[_0x4c5da3(0x3d6)][_0x4c5da3(0x176)]:{let _0x557bec=_0x79cf66['collaMsg'];switch(_0x557bec['eventID']){case _0x4c2ece['CollaborationEvent']['PERMISSION_REJ']:var _0x5bc9a2;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x5bc9a2=_0x557bec[_0x4c5da3(0x1ac)])==null?void 0x0:_0x5bc9a2['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)]['CHANGESET_ACK']:var _0x434395;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x434395=_0x557bec[_0x4c5da3(0x273)])==null?void 0x0:_0x434395['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x174)]:var _0x3d30bd;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x3d30bd=_0x557bec['newCsEvent'])==null?void 0x0:_0x3d30bd['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece['CollaborationEvent'][_0x4c5da3(0x13d)]:var _0x4cdaef;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x4cdaef=_0x557bec[_0x4c5da3(0x3c4)])==null?void 0x0:_0x4cdaef['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x2be)]:var _0x422d25;return{..._0x79cf66,'data':{..._0x557bec,'data':(_0x422d25=_0x557bec['csShouldRetryEvent'])==null?void 0x0:_0x422d25['cs']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1a3)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec['updateCursorEvent']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x146)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec['joinEvent']},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece['CollaborationEvent'][_0x4c5da3(0x27a)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0xd6)]},'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1a0)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x106)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x24a)]:case _0x4c2ece[_0x4c5da3(0x343)]['LIVESHARE_OPERATION']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x2c3)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)]['LIVESHARE_TERMINATE']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x106)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x3f4)]:return{..._0x79cf66,'data':_0x557bec,'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)]['COMMENT_UPDATE']:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x280)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x2ea)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x40e)]},'cmd':_0x79cf66['cmd']};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1fe)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x13c)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};case _0x4c2ece[_0x4c5da3(0x343)][_0x4c5da3(0x1cd)]:return{..._0x79cf66,'data':{..._0x557bec,'data':_0x557bec[_0x4c5da3(0x255)]},'cmd':_0x79cf66[_0x4c5da3(0x26b)]};default:return _0x79cf66;}}default:return _0x79cf66;}}function _0x43de64(_0x58f43a){const _0xdaf5e=_0x21648f;switch(_0x58f43a[_0xdaf5e(0x26b)]){case _0x1df2bb[_0xdaf5e(0x3d6)][_0xdaf5e(0x1d6)]:case _0x1df2bb[_0xdaf5e(0x3d6)]['HELLO']:return JSON[_0xdaf5e(0x102)]({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)]});case _0x1df2bb[_0xdaf5e(0x3d6)][_0xdaf5e(0x159)]:{let _0x3f9748;switch(_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x1d9)]){case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0x1a3)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x1a3)],'updateCursorEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x27a)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['USERS_LEAVE'],'leaveEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x146)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x146)],'joinEvent':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece['CollaborationEvent']['LIVESHARE_NEW_HOST']:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x58f43a[_0xdaf5e(0x29b)]['data']};break;case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0x1b7)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)][_0xdaf5e(0x1b7)],'liveShareOperation':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_TERMINATE']:_0x3f9748={'eventID':_0x4c2ece['CollaborationEvent'][_0xdaf5e(0x2ce)],'liveShareTerminate':_0x58f43a['data'][_0xdaf5e(0x29b)]};break;case _0x4c2ece['CollaborationEvent'][_0xdaf5e(0xf9)]:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x58f43a[_0xdaf5e(0x29b)][_0xdaf5e(0x29b)]};break;case _0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_FETCH_OPERATIONS']:_0x3f9748={'eventID':_0x4c2ece[_0xdaf5e(0x343)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x3f9748={'eventID':_0x58f43a['data'][_0xdaf5e(0x1d9)]};}return JSON['stringify']({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'collaMsg':_0x3f9748});}case _0x1df2bb['CombCmd']['JOIN']:return JSON['stringify']({'cmd':_0x58f43a['cmd'],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'joinReq':_0x58f43a['data']});case _0x1df2bb[_0xdaf5e(0x3d6)]['LEAVE']:return JSON['stringify']({'cmd':_0x58f43a[_0xdaf5e(0x26b)],'routeKey':_0x58f43a[_0xdaf5e(0x25e)],'leaveReq':_0x58f43a[_0xdaf5e(0x29b)]});default:throw Error(_0xdaf5e(0x2d1));}}let _0x4e1025=(0x0,_0x868841['createIdentifier'])(_0x21648f(0x408));function _0x1b6dad(_0x496ffb,_0x18e938,_0x287720){const _0xb5d0c5=_0x21648f;return _0x496ffb+'/'+_0x18e938+_0xb5d0c5(0x19c)+_0x287720+'/new_changes';}let _0x594520=class extends _0x868841['Disposable']{constructor(_0x5bc5c6,_0x449065,_0x31a7ca,_0xda3843,_0x5a4e29){const _0x144229=_0x21648f;super(),this[_0x144229(0x2d9)]=_0x5bc5c6,this['_httpService']=_0x449065,this['_configService']=_0x31a7ca,this[_0x144229(0x2fc)]=_0xda3843,this['_snapshotServerService']=_0x5a4e29;}[_0x21648f(0x370)](_0x24ff96){const _0xd48c30=_0x21648f;let _0x5bc034=this[_0xd48c30(0x2d9)][_0xd48c30(0x224)](_0x8bc35f[_0xd48c30(0x3e0)]);if(!_0x5bc034)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x16203f=_0x5bc034[_0xd48c30(0x113)](_0x24ff96);if(!_0x16203f)throw Error(_0xd48c30(0x357));let _0x16d4ee=new _0x868841['DisposableCollection'](),_0x38f507=new _0x409690[(_0xd48c30(0x409))]();_0x16d4ee[_0xd48c30(0x388)](_0x16203f[_0xd48c30(0x2ef)]['subscribe'](_0x4a655a=>_0x38f507[_0xd48c30(0xdd)](_0x4a655a))),_0x16d4ee[_0xd48c30(0x388)]((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x38f507['complete']()));let _0x485cf4=new _0x409690[(_0xd48c30(0x409))]();_0x16d4ee[_0xd48c30(0x388)](_0x16203f[_0xd48c30(0x31e)]['subscribe'](_0x44d770=>_0x485cf4['next'](_0x44d770))),_0x16d4ee['add']((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x485cf4['complete']()));let _0x2e5de5=new _0x409690['Subject']();_0x16d4ee['add'](_0x16203f[_0xd48c30(0x32c)][_0xd48c30(0x3b6)](_0x49c175=>{const _0x4e42c8=_0xd48c30;let _0x3ff90f=_0x3b8398(_0x49c175);_0x2e5de5[_0x4e42c8(0xdd)](_0x3ff90f);})),_0x16d4ee[_0xd48c30(0x388)]((0x0,_0x868841[_0xd48c30(0x233)])(()=>_0x2e5de5[_0xd48c30(0x3f5)]()));let _0x20256e,_0x8af2b0=()=>{const _0x434246=_0xd48c30;_0x485cf4[_0x434246(0xdd)](new Event(_0x434246(0x229))),_0x38f507['next'](new Event(_0x434246(0x229))),_0x20256e[_0x434246(0x3da)]();};return _0x20256e={'memberID':'','close$':_0x38f507['asObservable'](),'error$':_0x485cf4[_0xd48c30(0x340)](),'open$':_0x16203f[_0xd48c30(0x20a)],'message$':_0x2e5de5[_0xd48c30(0x340)](),'send':_0x11cfa8=>{const _0x57dc82=_0xd48c30;if(_0x11cfa8['cmd']===_0x1df2bb['CombCmd'][_0x57dc82(0x159)]){if(_0x11cfa8['data'][_0x57dc82(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x57dc82(0x2a3)]){this[_0x57dc82(0x24e)](_0x20256e,_0x11cfa8[_0x57dc82(0x29b)])[_0x57dc82(0x34b)](_0x2785da=>{const _0x5674da=_0x57dc82;this[_0x5674da(0x2fc)][_0x5674da(0x29e)](_0x2785da),_0x8af2b0();});return;}if(_0x11cfa8['data']['eventID']===_0x4c2ece[_0x57dc82(0x343)][_0x57dc82(0x2f4)]){let _0x38438c=_0x11cfa8['data'];this[_0x57dc82(0x2c7)](_0x38438c)[_0x57dc82(0x2e1)](_0x4d4bbe=>{const _0x2a0635=_0x57dc82;_0x2e5de5['next']({'cmd':_0x1df2bb[_0x2a0635(0x3d6)][_0x2a0635(0x176)],'code':_0x1df2bb[_0x2a0635(0x17a)]['OK'],'routeKey':_0x38438c['data']['unitID'],'routeType':'','data':{'eventID':_0x4c2ece[_0x2a0635(0x343)][_0x2a0635(0x26a)],'data':{'changesets':_0x4d4bbe}}});})[_0x57dc82(0x34b)](_0x23b425=>{const _0x10fba6=_0x57dc82;this[_0x10fba6(0x2fc)]['error'](_0x23b425),_0x8af2b0();});return;}}_0x16203f[_0x57dc82(0x182)](_0x43de64(_0x11cfa8));},'close':()=>{const _0x43db86=_0xd48c30;_0x16203f[_0x43db86(0x3da)](),_0x16d4ee[_0x43db86(0x265)]();}},_0x20256e;}async[_0x21648f(0x24e)](_0x103ac6,_0x4e9d44){const _0xcfd72=_0x21648f;var _0xc4b570;let {unitType:_0x27dc16,unitID:_0x2be19d,changeset:_0x3e728c}=_0x4e9d44['data'],_0x220504={'unitID':_0x2be19d,'memberID':_0x103ac6[_0xcfd72(0x14c)],'type':_0x27dc16,'changeset':(0x0,_0x4c2ece['parseChangesetToProtocol'])(_0x3e728c)},_0x530af0=this['_configService']['getConfig'](_0x4b92ba),_0x5148fe=_0x1b6dad((_0xc4b570=_0x530af0==null?void 0x0:_0x530af0[_0xcfd72(0x124)])==null?_0xcfd72(0x313):_0xc4b570,_0x27dc16,_0x2be19d);try{await this[_0xcfd72(0x3a7)][_0xcfd72(0x18e)](_0x5148fe,{'body':_0x220504});}catch(_0xb09880){throw this[_0xcfd72(0x2fc)][_0xcfd72(0x29e)]('[CollaborationSession]',_0xcfd72(0x26f)),_0xb09880;}}async[_0x21648f(0x2c7)](_0x313966){const _0x50c505=_0x21648f;let {unitID:_0x509d87,from:_0x4721df,to:_0xa4236b,unitType:_0x1640e7}=_0x313966['data'];return(await this[_0x50c505(0x104)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x509d87,'type':_0x1640e7,'from':_0x4721df,'to':_0xa4236b}))[_0x50c505(0x14b)][_0x50c505(0x26e)](_0x317095=>((_0x317095[_0x50c505(0x1bb)]===null||_0x317095[_0x50c505(0x1bb)]===void 0x0)&&(_0x317095[_0x50c505(0x1bb)]=[]),_0x317095));}};_0x594520=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x2,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x3,_0x868841[_0x21648f(0x206)]),_0x273192(0x4,_0x4c2ece[_0x21648f(0x170)])],_0x594520);let _0x2bd49e=(0x0,_0x868841[_0x21648f(0x330)])(_0x21648f(0x284));function _0x55fb30(_0x4c23d={}){const _0x164b45=_0x21648f;return _0x4c23d['resolveUnit']?{'resolveUnit':_0x4c23d[_0x164b45(0x160)]}:{'resolveUnit':_0x356226=>({'target':{'unitId':_0x356226[_0x164b45(0x3b9)],'unitType':_0x356226['unitType']}})};}function _0x35cec2(_0x5b4bb9,_0x4b9034,_0xb0160b){const _0x19ed7f=_0x21648f;var _0x50418f;let _0x19f271=_0xb0160b[_0x19ed7f(0x355)]['endpoint'];if(_0x19f271!=null&&_0x19f271[_0x19ed7f(0x3eb)]()==='')throw Error(_0x19ed7f(0x3f7));if(!_0xb0160b[_0x19ed7f(0x355)][_0x19ed7f(0x3b9)])throw Error(_0x19ed7f(0x1b1));return{'localUnitId':_0x5b4bb9,'unitType':_0x4b9034,'target':{'endpoint':_0x19f271,'unitId':_0xb0160b[_0x19ed7f(0x355)][_0x19ed7f(0x3b9)],'unitType':(_0x50418f=_0xb0160b['target'][_0x19ed7f(0x172)])==null?_0x4b9034:_0x50418f},'changeset':_0xb0160b[_0x19ed7f(0x17b)]};}let _0x4bf0aa=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x5f1297,_0x1dea19,_0x30d513,_0x134566,_0x1d34f7,_0x28c940,_0x411751){const _0x44ba7d=_0x21648f;super(),this[_0x44ba7d(0x2d9)]=_0x5f1297,this[_0x44ba7d(0x2fc)]=_0x1dea19,this[_0x44ba7d(0x23e)]=_0x30d513,this[_0x44ba7d(0x3d1)]=_0x134566,this[_0x44ba7d(0x2bd)]=_0x1d34f7,this[_0x44ba7d(0x21a)]=_0x28c940,this['_networkConditionService']=_0x411751,_0x6d65c2(this,_0x44ba7d(0x288),new Map()),_0x6d65c2(this,_0x44ba7d(0x264),new Map()),_0x6d65c2(this,_0x44ba7d(0x204),new Map()),_0x6d65c2(this,_0x44ba7d(0x3c9),new Map()),_0x6d65c2(this,'socket$',this[_0x44ba7d(0x15a)](void 0x0)[_0x44ba7d(0x118)][_0x44ba7d(0x340)]()),_0x6d65c2(this,'_status$',new _0x409690['BehaviorSubject'](0x0)),_0x6d65c2(this,_0x44ba7d(0x396),this[_0x44ba7d(0x107)]['asObservable']()),this[_0x44ba7d(0x303)]();}[_0x21648f(0x303)](){const _0x4fbd3a=_0x21648f;this[_0x4fbd3a(0x3a9)]&&this['disposeWithMe'](this['_networkConditionService']['online$'][_0x4fbd3a(0x3b6)](_0xb3be63=>{const _0x33caed=_0x4fbd3a;_0xb3be63&&this[_0x33caed(0xd0)](),_0xb3be63||this['_socketChannels'][_0x33caed(0x352)](_0x42c973=>this[_0x33caed(0x2dd)](_0x42c973));}));}[_0x21648f(0x265)](){const _0x28565d=_0x21648f;super['dispose'](),this['_socketChannels'][_0x28565d(0x352)](_0x126a3a=>{const _0x352ed5=_0x28565d;var _0x12dbb2,_0x3676d1;(_0x12dbb2=_0x126a3a[_0x352ed5(0x186)])==null||_0x12dbb2['unsubscribe'](),_0x126a3a['socketMessageSubscription']=null,this[_0x352ed5(0x37e)](_0x126a3a),this[_0x352ed5(0x282)](_0x126a3a),this[_0x352ed5(0x1b8)](_0x126a3a),(_0x3676d1=_0x126a3a[_0x352ed5(0x118)][_0x352ed5(0x2eb)]())==null||_0x3676d1[_0x352ed5(0x3da)](),_0x126a3a[_0x352ed5(0x118)][_0x352ed5(0x3f5)]();}),this[_0x28565d(0x3c9)][_0x28565d(0x13a)](),this['_sessions'][_0x28565d(0x352)](_0xff8cf1=>_0xff8cf1['dispose']()),this[_0x28565d(0x288)][_0x28565d(0x13a)](),this['_sessionChannels'][_0x28565d(0x13a)](),this['_status$'][_0x28565d(0x3f5)]();}async[_0x21648f(0x2a4)](_0x42f925,_0x5269c6){const _0x4a85dc=_0x21648f;if(this[_0x4a85dc(0x288)][_0x4a85dc(0x215)](_0x42f925))return this['_sessions'][_0x4a85dc(0x224)](_0x42f925);let _0x37c4ba=this[_0x4a85dc(0x264)][_0x4a85dc(0x224)](_0x42f925);if(_0x37c4ba)return _0x37c4ba;let _0x553cff=this[_0x4a85dc(0x125)](_0x42f925,_0x5269c6);this[_0x4a85dc(0x264)][_0x4a85dc(0x213)](_0x42f925,_0x553cff);try{return await _0x553cff;}finally{this[_0x4a85dc(0x264)]['delete'](_0x42f925);}}async['_createSession'](_0x1ea2e7,_0x379cde){const _0x28b0f7=_0x21648f;let _0x1e471a=await this[_0x28b0f7(0x40a)](_0x1ea2e7,_0x379cde),_0x33f59b=this[_0x28b0f7(0x15a)](_0x1e471a['target'][_0x28b0f7(0x3db)]);this[_0x28b0f7(0x38d)](_0x33f59b);let _0x40bf70=this[_0x28b0f7(0x2d9)][_0x28b0f7(0x3d9)](_0x4d2902,_0x1e471a,_0x33f59b['socket$'][_0x28b0f7(0x340)]());return this[_0x28b0f7(0x288)]['set'](_0x1ea2e7,_0x40bf70),this[_0x28b0f7(0x204)][_0x28b0f7(0x213)](_0x1ea2e7,_0x33f59b[_0x28b0f7(0x2ed)]),_0x40bf70;}[_0x21648f(0x115)](_0x187962){const _0x54bf91=_0x21648f;let _0x40ddb2=this[_0x54bf91(0x288)][_0x54bf91(0x224)](_0x187962),_0x238bb6=this[_0x54bf91(0x204)][_0x54bf91(0x224)](_0x187962);if(_0x40ddb2&&(this[_0x54bf91(0x288)][_0x54bf91(0xe0)](_0x187962),this[_0x54bf91(0x204)]['delete'](_0x187962),_0x40ddb2['close']()),_0x238bb6&&!this[_0x54bf91(0x278)](_0x238bb6)){var _0x3aa571;let _0xdd2fc2=this['_socketChannels'][_0x54bf91(0x224)](_0x238bb6);_0xdd2fc2==null||(_0x3aa571=_0xdd2fc2[_0x54bf91(0x118)][_0x54bf91(0x2eb)]())==null||_0x3aa571[_0x54bf91(0x3da)]();}}[_0x21648f(0xd0)](){const _0x4b4968=_0x21648f;(this[_0x4b4968(0x3c9)][_0x4b4968(0x362)]?[...this[_0x4b4968(0x3c9)][_0x4b4968(0x2d7)]()]:[this[_0x4b4968(0x15a)](void 0x0)])[_0x4b4968(0x352)](_0x31db0b=>{const _0x2577a4=_0x4b4968;_0x31db0b[_0x2577a4(0x243)]=0x0,this[_0x2577a4(0x37e)](_0x31db0b),this[_0x2577a4(0x293)](_0x31db0b);});}[_0x21648f(0x37e)](_0x1ef4a9){const _0x3c8d9f=_0x21648f;_0x1ef4a9['retryConnectingTimer']!=null&&(clearTimeout(_0x1ef4a9['retryConnectingTimer']),_0x1ef4a9[_0x3c8d9f(0x20b)]=null);}async[_0x21648f(0x195)](_0x4a281f){const _0x229bfe=_0x21648f;var _0x110216,_0x19a584;let _0x65793d=this['_configService']['getConfig'](_0x4b92ba),_0x55d615=(_0x110216=(_0x19a584=_0x4a281f['endpoint'])==null?_0x65793d==null?void 0x0:_0x65793d[_0x229bfe(0x277)]:_0x19a584)==null?_0x3838c0:_0x110216,_0x1d5201=await this[_0x229bfe(0x3d1)][_0x229bfe(0x113)](_0x55d615);return _0x4a281f[_0x229bfe(0x3a3)]=_0x1d5201,_0x1d5201;}async[_0x21648f(0x38d)](_0x576f72){const _0x3c36ef=_0x21648f;try{var _0x5bae3a,_0x434353;let _0x104418=(_0x5bae3a=(_0x434353=_0x576f72[_0x3c36ef(0x118)]['getValue']())==null?_0x576f72[_0x3c36ef(0x3a3)]:_0x434353)==null?await this[_0x3c36ef(0x195)](_0x576f72):_0x5bae3a;if(_0x104418){var _0x4e368e;let _0xca14ec=_0x104418[_0x3c36ef(0x182)];_0x104418[_0x3c36ef(0x182)]=_0x5bcd6e=>(_0x5bcd6e[_0x3c36ef(0x26b)]!==_0x1df2bb[_0x3c36ef(0x3d6)][_0x3c36ef(0x168)]&&this[_0x3c36ef(0x2cd)](_0x576f72),_0xca14ec[_0x3c36ef(0x294)](_0x104418,[_0x5bcd6e])),(_0x4e368e=_0x576f72[_0x3c36ef(0x186)])==null||_0x4e368e[_0x3c36ef(0x157)](),_0x576f72[_0x3c36ef(0x186)]=null,_0x576f72[_0x3c36ef(0x186)]=_0x104418['message$'][_0x3c36ef(0x3b6)](_0x16a9cf=>this[_0x3c36ef(0x200)](_0x576f72,_0x104418,_0x16a9cf)),_0x104418[_0x3c36ef(0x31e)][_0x3c36ef(0x320)]((0x0,_0x4f74e1['take'])(0x1))[_0x3c36ef(0x3b6)](_0x4bcb5c=>this['_logService'][_0x3c36ef(0x29e)](_0x3c36ef(0x23a),_0x4bcb5c)),_0x104418[_0x3c36ef(0x20a)][_0x3c36ef(0x320)]((0x0,_0x4f74e1[_0x3c36ef(0x2e2)])(0x1))[_0x3c36ef(0x3b6)](()=>{this['_onConnectionOpen'](_0x576f72,_0x104418);}),_0x104418[_0x3c36ef(0x2ef)][_0x3c36ef(0x320)]((0x0,_0x4f74e1[_0x3c36ef(0x2e2)])(0x1))['subscribe'](_0x10adea=>{const _0x59f0a2=_0x3c36ef;this[_0x59f0a2(0x2fc)][_0x59f0a2(0x39c)](_0x59f0a2(0x406),_0x59f0a2(0x41b),_0x10adea),this['_onConnectionFailed'](_0x576f72);});}}catch(_0x2ee50b){this[_0x3c36ef(0x2fc)][_0x3c36ef(0x29e)](_0x2ee50b),this['_onConnectionFailed'](_0x576f72);}}[_0x21648f(0x35d)](_0x58995a,_0x3ed93d){const _0x2b1032=_0x21648f;this['_logService'][_0x2b1032(0x39c)](_0x2b1032(0x406),'socket\x20open.'),_0x3ed93d[_0x2b1032(0x182)]({'cmd':_0x1df2bb[_0x2b1032(0x3d6)]['HELLO']}),this[_0x2b1032(0x2cd)](_0x58995a);}[_0x21648f(0x2dd)](_0x4a0cbf){const _0x1be033=_0x21648f;_0x4a0cbf[_0x1be033(0xca)]=!0x1,_0x4a0cbf[_0x1be033(0x3a3)]=null,this[_0x1be033(0x107)][_0x1be033(0xdd)](0x2),_0x4a0cbf[_0x1be033(0x118)][_0x1be033(0xdd)](null),this['_clearTimeoutTimer'](_0x4a0cbf),this['_clearHeartbeatTimer'](_0x4a0cbf);}[_0x21648f(0x22a)](_0x4a9aca){const _0x121447=_0x21648f;var _0x31ede3;this[_0x121447(0x2dd)](_0x4a9aca),this[_0x121447(0x278)](_0x4a9aca[_0x121447(0x2ed)])&&(_0x4a9aca[_0x121447(0x243)]<((_0x31ede3=this[_0x121447(0x23e)][_0x121447(0x33e)](_0x121447(0x2d2)))==null?0x3:_0x31ede3)?(this[_0x121447(0x2bd)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x121447(0x293)](_0x4a9aca)):this[_0x121447(0x2bd)]['emitEvent']({'id':_0x121447(0x1bf)}));}[_0x21648f(0x293)](_0x4b0706){const _0x227848=_0x21648f;var _0x4fb259;let _0x5a5323=_0x4b0706['retryCount'],_0x1b61bb=this[_0x227848(0x23e)][_0x227848(0x33e)](_0x4b92ba),_0x39bdb4=_0x5a5323===0x0?0x0:((_0x4fb259=_0x1b61bb==null?void 0x0:_0x1b61bb[_0x227848(0x14e)])==null?0x4e20:_0x4fb259)*0x2**_0x5a5323;_0x4b0706[_0x227848(0x20b)]=setTimeout(()=>{const _0x4e86de=_0x227848;clearTimeout(_0x4b0706[_0x4e86de(0x20b)]),_0x4b0706[_0x4e86de(0x20b)]=null,this[_0x4e86de(0x38d)](_0x4b0706);},_0x39bdb4),_0x4b0706[_0x227848(0x243)]+=0x1;}async[_0x21648f(0x40a)](_0x3329a3,_0x1c507d){const _0x55b3ab=_0x21648f;return _0x35cec2(_0x3329a3,_0x1c507d,await this['_adapter'][_0x55b3ab(0x160)]({'unitId':_0x3329a3,'unitType':_0x1c507d}));}[_0x21648f(0x200)](_0x27e30d,_0x184449,_0xe86c11){const _0xa91b7d=_0x21648f;let {cmd:_0x721d85}=_0xe86c11;_0x721d85===_0x1df2bb[_0xa91b7d(0x3d6)]['HELLO']&&!_0x27e30d[_0xa91b7d(0xca)]&&(_0x184449[_0xa91b7d(0x14c)]=_0xe86c11[_0xa91b7d(0x29b)][_0xa91b7d(0x14c)],_0x27e30d[_0xa91b7d(0x118)][_0xa91b7d(0xdd)](_0x184449),this[_0xa91b7d(0x107)][_0xa91b7d(0xdd)](0x3),_0x27e30d[_0xa91b7d(0xca)]=!0x0,_0x27e30d[_0xa91b7d(0x3a3)]=null),_0x721d85===_0x1df2bb[_0xa91b7d(0x3d6)]['HEARTBEAT']&&this[_0xa91b7d(0x282)](_0x27e30d),this['_rescheduleHeartbeat'](_0x27e30d);}[_0x21648f(0x278)](_0xd34267){const _0xdbf9c3=_0x21648f;return[...this['_sessionChannels'][_0xdbf9c3(0x2d7)]()][_0xdbf9c3(0x329)](_0x3625c4=>_0x3625c4===_0xd34267);}[_0x21648f(0x15a)](_0x3b55fd){const _0x5a2517=_0x21648f;let _0x15c7bc=_0x3b55fd==null?'':_0x3b55fd,_0x1c6ec7=this['_socketChannels'][_0x5a2517(0x224)](_0x15c7bc);if(_0x1c6ec7)return _0x1c6ec7;let _0x3f22ce={'endpointKey':_0x15c7bc,'endpoint':_0x3b55fd,'socket$':new _0x409690[(_0x5a2517(0x193))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5a2517(0x3c9)]['set'](_0x15c7bc,_0x3f22ce),_0x3f22ce;}[_0x21648f(0x2cd)](_0x3f045a){const _0x3de94c=_0x21648f;var _0x4c29aa;this[_0x3de94c(0x1b8)](_0x3f045a),_0x3f045a['sendHeartbeatTimer']=setTimeout(()=>this[_0x3de94c(0x1df)](_0x3f045a),(_0x4c29aa=this['_configService'][_0x3de94c(0x33e)](_0x3de94c(0x1ef)))==null?0x7530:_0x4c29aa);}[_0x21648f(0x1df)](_0x4c580e){const _0x43676f=_0x21648f;_0x4c580e['socket$'][_0x43676f(0x2eb)]()[_0x43676f(0x182)]({'cmd':_0x1df2bb[_0x43676f(0x3d6)][_0x43676f(0x1d6)]}),this[_0x43676f(0x1e8)](_0x4c580e);}[_0x21648f(0x1e8)](_0x1a1b46){const _0x5e01fd=_0x21648f;var _0x3c9f44;_0x1a1b46[_0x5e01fd(0x24b)]=setTimeout(()=>this[_0x5e01fd(0x22a)](_0x1a1b46),(_0x3c9f44=this[_0x5e01fd(0x23e)][_0x5e01fd(0x33e)](_0x5e01fd(0x276)))==null?_0x4067ce:_0x3c9f44);}[_0x21648f(0x1b8)](_0x4332af){const _0x34f67d=_0x21648f;_0x4332af[_0x34f67d(0x1b5)]!=null&&(clearTimeout(_0x4332af[_0x34f67d(0x1b5)]),_0x4332af[_0x34f67d(0x1b5)]=null);}[_0x21648f(0x282)](_0x219f27){const _0x40ab2b=_0x21648f;_0x219f27[_0x40ab2b(0x24b)]!=null&&(clearTimeout(_0x219f27[_0x40ab2b(0x24b)]),_0x219f27[_0x40ab2b(0x24b)]=null);}};_0x4bf0aa=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,_0x868841[_0x21648f(0x206)]),_0x273192(0x2,_0x868841['IConfigService']),_0x273192(0x3,_0x4e1025),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d)),_0x273192(0x5,_0x2bd49e),_0x273192(0x6,(0x0,_0x868841[_0x21648f(0x238)])(_0x161fca))],_0x4bf0aa);let _0x5ad10a=class extends _0x868841['RxDisposable']{constructor(_0x1837d3,_0x5b4030,_0x4fa3ac,_0x278ea7){const _0x5ee03a=_0x21648f;var _0x407238;super(),this[_0x5ee03a(0x2d9)]=_0x1837d3,this[_0x5ee03a(0x2ec)]=_0x5b4030,this[_0x5ee03a(0x23e)]=_0x4fa3ac,this[_0x5ee03a(0x32f)]=_0x278ea7,_0x6d65c2(this,'_entities',new Map()),_0x6d65c2(this,_0x5ee03a(0x41d),new _0x409690[(_0x5ee03a(0x409))]()),_0x6d65c2(this,_0x5ee03a(0x230),this[_0x5ee03a(0x41d)][_0x5ee03a(0x340)]()),((_0x407238=this[_0x5ee03a(0x23e)][_0x5ee03a(0x33e)](_0x5ee03a(0x369)))==null?void 0x0:_0x407238[_0x5ee03a(0x153)])!==!0x1&&this[_0x5ee03a(0x139)]();}[_0x21648f(0x265)](){const _0x5687d6=_0x21648f;super[_0x5687d6(0x265)](),this[_0x5687d6(0x143)][_0x5687d6(0x352)](_0x54de69=>_0x54de69[_0x5687d6(0x265)]()),this[_0x5687d6(0x143)][_0x5687d6(0x13a)]();}[_0x21648f(0xdc)](_0x3d597c){const _0x3859cb=_0x21648f;var _0x217308;return(_0x217308=this[_0x3859cb(0x143)][_0x3859cb(0x224)](_0x3d597c))==null?null:_0x217308;}[_0x21648f(0x23f)](_0x4a2756){const _0x2e902b=_0x21648f;let _0x4991d0=this[_0x2e902b(0xdc)](_0x4a2756);return _0x4991d0?(0x0,_0x409690['of'])(_0x4991d0):this['_entityInit$'][_0x2e902b(0x320)]((0x0,_0x4f74e1[_0x2e902b(0x11a)])(_0xd9f1c9=>_0xd9f1c9[_0x2e902b(0xff)]===_0x4a2756));}['readyForCollab'](_0x2f0e9d){const _0x3588f9=_0x21648f;return(0x0,_0x409690[_0x3588f9(0x14f)])(this[_0x3588f9(0x23f)](_0x2f0e9d)[_0x3588f9(0x320)]((0x0,_0x4f74e1[_0x3588f9(0x26e)])(()=>void 0x0)));}[_0x21648f(0x139)](){const _0x367a0a=_0x21648f;this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x23b)])['pipe']((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]),(0x0,_0x4f74e1['delay'])(0x10))[_0x367a0a(0x3b6)](async _0x2c800f=>{const _0x17c41a=_0x367a0a;let _0x4418cf=_0x2c800f[_0x17c41a(0x2ee)][_0x17c41a(0x128)](),_0x4451cd=await this[_0x17c41a(0xd3)](_0x4418cf,_0x868841[_0x17c41a(0x2f8)][_0x17c41a(0x23b)]);this[_0x17c41a(0x143)][_0x17c41a(0x213)](_0x4418cf,_0x4451cd);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x332)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1['delay'])(0x10))[_0x367a0a(0x320)]((0x0,_0x4f74e1['filter'])(_0x12b89b=>!_0x12b89b[_0x367a0a(0x2ee)][_0x367a0a(0x128)]()[_0x367a0a(0x3c1)]('__')))[_0x367a0a(0x3b6)](async _0x127909=>{const _0x1a6ff9=_0x367a0a;let _0x87e7e9=_0x127909['unit']['getUnitId'](),_0x522892=await this['_startCollaboration'](_0x87e7e9,_0x868841[_0x1a6ff9(0x2f8)][_0x1a6ff9(0x332)]);this[_0x1a6ff9(0x143)][_0x1a6ff9(0x213)](_0x87e7e9,_0x522892);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841['UniverInstanceType'][_0x367a0a(0x2b1)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))[_0x367a0a(0x3b6)](async _0x3040d1=>{const _0x4e8b5a=_0x367a0a;let _0x2a539b=_0x3040d1['unit'][_0x4e8b5a(0x128)](),_0x1fe010=await this[_0x4e8b5a(0xd3)](_0x2a539b,_0x868841[_0x4e8b5a(0x2f8)]['UNIVER_SLIDE']);this[_0x4e8b5a(0x143)]['set'](_0x2a539b,_0x1fe010);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841['UniverInstanceType']['UNIVER_BOARD'])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))[_0x367a0a(0x3b6)](async _0x3e3c2d=>{const _0x431c2f=_0x367a0a;let _0x256879=_0x3e3c2d['unit'][_0x431c2f(0x128)](),_0x2c19c9=await this[_0x431c2f(0xd3)](_0x256879,_0x868841[_0x431c2f(0x2f8)]['UNIVER_BOARD']);this['_entities'][_0x431c2f(0x213)](_0x256879,_0x2c19c9);}),this[_0x367a0a(0x32f)][_0x367a0a(0x14d)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x2a9)])[_0x367a0a(0x320)]((0x0,_0x409690[_0x367a0a(0x374)])(this['dispose$']),(0x0,_0x4f74e1[_0x367a0a(0x184)])(0x10))['subscribe'](async _0x5d823c=>{const _0x379037=_0x367a0a;let _0x59d5f4=_0x5d823c[_0x379037(0x2ee)]['getUnitId'](),_0x403bef=await this[_0x379037(0xd3)](_0x59d5f4,_0x868841[_0x379037(0x2f8)][_0x379037(0x2a9)]);this[_0x379037(0x143)][_0x379037(0x213)](_0x59d5f4,_0x403bef);}),(0x0,_0x409690[_0x367a0a(0x382)])(this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x23b)]),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)][_0x367a0a(0x332)]),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841[_0x367a0a(0x2f8)]['UNIVER_SLIDE']),this[_0x367a0a(0x32f)][_0x367a0a(0x166)](_0x868841['UniverInstanceType'][_0x367a0a(0x28a)]),this[_0x367a0a(0x32f)]['getTypeOfUnitDisposed$'](_0x868841['UniverInstanceType']['UNIVER_BASE']))['pipe']((0x0,_0x409690[_0x367a0a(0x374)])(this[_0x367a0a(0xf2)]))[_0x367a0a(0x3b6)](_0x140edb=>{const _0x504966=_0x367a0a;let _0x25e208=_0x140edb['getUnitId'](),_0x5e839b=this[_0x504966(0x143)][_0x504966(0x224)](_0x25e208);_0x5e839b&&(_0x5e839b[_0x504966(0x265)](),this['_entities'][_0x504966(0xe0)](_0x25e208));});}async[_0x21648f(0xd3)](_0xa2fe03,_0x138691){const _0x3fcd22=_0x21648f;let _0x339150=await this[_0x3fcd22(0x2ec)][_0x3fcd22(0x2a4)](_0xa2fe03),_0x1c254e=this[_0x3fcd22(0x2d9)][_0x3fcd22(0x3d9)](this[_0x3fcd22(0x390)](_0x138691),_0xa2fe03,_0x138691,_0x339150);return await _0x1c254e[_0x3fcd22(0x18a)](),this['_entityInit$'][_0x3fcd22(0xdd)](_0x1c254e),_0x1c254e;}['_getCtorByUniverInstanceType'](_0x1b25cd){const _0x29b081=_0x21648f;switch(_0x1b25cd){case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x332)]:return _0x148d55;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x23b)]:return _0x4b3c61;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x2b1)]:return _0x52744e;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x28a)]:return _0x9a1332;case _0x868841[_0x29b081(0x2f8)][_0x29b081(0x2a9)]:return _0x552cde;default:throw Error(_0x29b081(0x33f)+_0x1b25cd);}}};_0x5ad10a=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x1,(0x0,_0x868841['Inject'])(_0x4bf0aa)),_0x273192(0x2,_0x868841['IConfigService']),_0x273192(0x3,_0x868841['IUniverInstanceService'])],_0x5ad10a);var _0x32f204='@univerjs-pro/collaboration-client',_0x3be6e8=_0x21648f(0x33a);let _0x448220=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x1e8c03,_0x56f4fc){const _0x44e9fc=_0x21648f;super(),this['_univerInstanceService']=_0x1e8c03,this[_0x44e9fc(0x23e)]=_0x56f4fc,this[_0x44e9fc(0x139)]();}[_0x21648f(0x139)](){const _0x36cb7b=_0x21648f;this[_0x36cb7b(0xd1)](this[_0x36cb7b(0x32f)][_0x36cb7b(0x1ec)][_0x36cb7b(0x3b6)](()=>{const _0x52fb5c=_0x36cb7b;var _0xb48104;let _0x619d6e=this['_univerInstanceService'][_0x52fb5c(0x2e3)](),_0x225197=(_0xb48104=this[_0x52fb5c(0x23e)]['getConfig'](_0x52fb5c(0x3ce)))==null?_0x52fb5c(0x30b):_0xb48104;_0x619d6e instanceof _0x868841[_0x52fb5c(0xe1)]&&(_0x225197=_0x619d6e['name']),document[_0x52fb5c(0x3e5)]=_0x225197;}));}};_0x448220=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,_0x868841['IConfigService'])],_0x448220);let _0x5ec8e0=function(_0xdc3347){const _0x2b0ff4=_0x21648f;return _0xdc3347[_0x2b0ff4(0x2ac)]=_0x2b0ff4(0x2ac),_0xdc3347[_0x2b0ff4(0x3de)]=_0x2b0ff4(0x3de),_0xdc3347[_0x2b0ff4(0x37b)]='BASE64',_0xdc3347;}({}),_0x3673e6=(0x0,_0x868841[_0x21648f(0x330)])('base-ui.attachment-io.service'),_0x1ba482=class{constructor(_0x54f264,_0x4fedbc,_0x56c886){const _0x2e8cf7=_0x21648f;this[_0x2e8cf7(0x3a7)]=_0x54f264,this['_configService']=_0x4fedbc,this[_0x2e8cf7(0x32f)]=_0x56c886;}[_0x21648f(0x324)](){const _0xdfec2f=_0x21648f;var _0x3bed90;return(_0x3bed90=this[_0xdfec2f(0x156)]()[_0xdfec2f(0x1f5)])==null?{}:_0x3bed90;}async[_0x21648f(0x210)](_0x4db81a){const _0x92f195=_0x21648f;let _0x5939cc=this['getUploadOptions']();if(_0x422f11(_0x4db81a,_0x5939cc),_0x5939cc[_0x92f195(0x261)])return _0x5939cc[_0x92f195(0x261)](_0x4db81a);let _0x4f62ba=await this[_0x92f195(0x287)](_0x4db81a);return{'id':_0x4f62ba,'name':_0x4db81a[_0x92f195(0x414)],'mimeType':_0x4db81a['type'],'size':_0x4db81a[_0x92f195(0x362)],'sourceType':_0x92f195(0x3de),'source':_0x4f62ba};}async[_0x21648f(0x287)](_0x19add9){const _0x27ba42=_0x21648f;let _0x28bfa5=this['_univerInstanceService'][_0x27ba42(0x2e3)](),_0x48d1c3=_0x28bfa5==null?void 0x0:_0x28bfa5['getUnitId']();if(!_0x48d1c3)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0xd185ed=new FormData();_0xd185ed[_0x27ba42(0x407)](_0x27ba42(0xce),_0x19add9);let _0x480e24=this[_0x27ba42(0xfa)]()+_0x27ba42(0x10a)+_0x19add9['size'][_0x27ba42(0x11b)]()+_0x27ba42(0x244)+_0x1df2bb[_0x27ba42(0x2bc)][_0x27ba42(0x108)]+_0x27ba42(0x1bd)+encodeURIComponent(_0x48d1c3),_0x33a0ab=(await this[_0x27ba42(0x3a7)][_0x27ba42(0x18e)](_0x480e24,{'body':_0xd185ed}))[_0x27ba42(0x346)][_0x27ba42(0x3c7)];if(typeof _0x33a0ab!='string'||!_0x33a0ab)throw Error(_0x27ba42(0x271));return _0x33a0ab;}['_getUploadFileURL'](){const _0xb12f7b=_0x21648f;var _0x420ed8;return(_0x420ed8=this['_getConfig']()[_0xb12f7b(0x2a2)])==null?_0xb12f7b(0xeb):_0x420ed8;}['_getConfig'](){const _0x3a5c4e=_0x21648f;var _0x47a83f;return(_0x47a83f=this['_configService'][_0x3a5c4e(0x33e)](_0x3a5c4e(0x369)))==null?{}:_0x47a83f;}};_0x1ba482=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService'])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x2ba)])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x214)]))],_0x1ba482);function _0x422f11(_0x960d64,_0xb79a1c){const _0x2f2eb4=_0x21648f;var _0x556177;if(_0xb79a1c[_0x2f2eb4(0x227)]!=null&&_0x960d64[_0x2f2eb4(0x362)]>_0xb79a1c['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x556177=_0xb79a1c[_0x2f2eb4(0x413)])!=null&&_0x556177[_0x2f2eb4(0x207)]&&!_0xb79a1c[_0x2f2eb4(0x413)]['some'](_0x39462d=>_0x960d64[_0x2f2eb4(0x350)]===_0x39462d||_0x960d64[_0x2f2eb4(0x414)]['endsWith'](_0x39462d)||_0x39462d[_0x2f2eb4(0x21e)]('/*')&&_0x960d64['type'][_0x2f2eb4(0x3c1)](_0x39462d[_0x2f2eb4(0x129)](0x0,-0x1))))throw Error(_0x2f2eb4(0x31a));}let _0x36e2b4=class{constructor(_0x4d721a,_0x4a1d47,_0x1a38e5){const _0x3730ca=_0x21648f;this[_0x3730ca(0x23e)]=_0x4d721a,this[_0x3730ca(0x3a7)]=_0x4a1d47,this['localeService']=_0x1a38e5,this['init']();}[_0x21648f(0x18a)](){const _0x1c1679=_0x21648f;this[_0x1c1679(0x3a7)][_0x1c1679(0x2a0)]({'priority':0x1,'interceptor':(_0x13ca62,_0x407afb)=>_0x407afb(_0x13ca62)['pipe']((0x0,_0x409690[_0x1c1679(0x3be)])(async _0x406e14=>{const _0x420cdd=_0x1c1679;let _0x2c78cb=_0x406e14;if(_0x2c78cb['status']===0x191){if(typeof window>'u')throw Error(_0x420cdd(0x1a5));if(window['confirm'](this[_0x420cdd(0x27f)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x5d650e=window[_0x420cdd(0x3ad)](window[_0x420cdd(0x241)][_0x420cdd(0x36f)]);window[_0x420cdd(0x241)]['href']=this[_0x420cdd(0x28f)]()+_0x420cdd(0x1ae)+_0x5d650e;}}return _0x2c78cb;}))});}[_0x21648f(0x28f)](){const _0x5b46c5=_0x21648f;var _0x253896;let _0x2f8cdf=this[_0x5b46c5(0x23e)]['getConfig'](_0x4b92ba);return(_0x253896=_0x2f8cdf==null?void 0x0:_0x2f8cdf[_0x5b46c5(0x267)])==null?'/universer-api/oidc/authpage':_0x253896;}};_0x36e2b4=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService'])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841['LocaleService']))],_0x36e2b4);let _0x37ea91=class extends _0x868841[_0x21648f(0x25b)]{constructor(_0x41cfa7,_0x376b3a){const _0x321ab6=_0x21648f;super(),this['_HTTPService']=_0x41cfa7,this['_configService']=_0x376b3a,_0x6d65c2(this,_0x321ab6(0x126),!0x1),this['_initMergeInterceptor']();}[_0x21648f(0xd5)](){const _0x59ecc6=_0x21648f;let _0x58d2a6=this;this[_0x59ecc6(0xd1)](this[_0x59ecc6(0x1ad)][_0x59ecc6(0x2a0)]({'priority':0x3e7,'interceptor':(0x0,_0x8bc35f[_0x59ecc6(0x1c6)])({'isMatch'(_0x272901){const _0x11b1df=_0x59ecc6;var _0x5d2d93;if(_0x272901[_0x11b1df(0x2e9)]===_0x11b1df(0x325)&&(_0x5d2d93=_0x272901[_0x11b1df(0x171)])!=null&&_0x5d2d93[_0x11b1df(0x346)]){let {objectID:_0x262592,objectType:_0x8a5c6}=_0x272901[_0x11b1df(0x171)][_0x11b1df(0x346)]||{};if(!_0x262592||_0x8a5c6===void 0x0)return!0x1;let _0x524cf5=_0x58d2a6[_0x11b1df(0x366)]()+'/'+_0x8a5c6+_0x11b1df(0x349)+_0x262592+'/allowed';if(_0x272901['url']===_0x524cf5)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x18b5f7){const _0x390de0=_0x59ecc6;var _0x25fe24;return(_0x25fe24=_0x18b5f7['requestParams'])==null?void 0x0:_0x25fe24[_0x390de0(0x346)];},'mergeParamsToRequest'(_0x4524e1,_0x408c41){const _0x2990de=_0x59ecc6;let _0x3654aa=_0x58d2a6[_0x2990de(0x366)]()+_0x2990de(0x2f5),_0xdf4b9f=_0x4524e1[_0x2990de(0x25f)]((_0x6a2c39,_0x516442)=>{const _0x2d6f17=_0x2990de;let {unitID:_0x42bc54,objectID:_0x31a020,objectType:_0x3826e3,actions:_0x52b13c}=_0x516442;return _0x6a2c39[_0x42bc54]||(_0x6a2c39[_0x42bc54]={}),_0x6a2c39[_0x42bc54][_0x31a020]||(_0x6a2c39[_0x42bc54][_0x31a020]={'objectID':_0x31a020,'objectType':_0x3826e3,'actions':[]}),_0x6a2c39[_0x42bc54][_0x31a020][_0x2d6f17(0x130)][_0x2d6f17(0x327)](..._0x52b13c),_0x6a2c39;},{}),_0x233a10=[];for(let _0x3d4fd9 in _0xdf4b9f)for(let _0x57c44b in _0xdf4b9f[_0x3d4fd9]){let {actions:_0x22a011,objectType:_0x4f2501}=_0xdf4b9f[_0x3d4fd9][_0x57c44b],_0x3bfee5=[...new Set(_0x22a011)];_0x233a10[_0x2990de(0x327)]({'unitID':_0x3d4fd9,'objectID':_0x57c44b,'objectType':_0x4f2501,'actions':_0x3bfee5});}return new _0x8bc35f['HTTPRequest'](_0x2990de(0x325),_0x3654aa,{'headers':_0x408c41[_0x2990de(0x356)],'withCredentials':_0x408c41['withCredentials'],'responseType':_0x408c41[_0x2990de(0x31b)],'body':{'requests':_0x233a10}});}},{'distributeResult'(_0x51f87b,_0x5005a7){const _0x86fa82=_0x59ecc6;let {objectActions:_0x237ee3}=_0x51f87b;return _0x5005a7[_0x86fa82(0x26e)](_0x97a191=>{const _0x44985a=_0x86fa82;let {unitID:_0x268ded,objectID:_0x5867b7,actions:_0x16acab}=_0x97a191,_0x713033=_0x237ee3[_0x44985a(0x3ab)](_0x32280c=>_0x32280c['unitID']===_0x268ded&&_0x32280c[_0x44985a(0x24f)]===_0x5867b7);return{'config':_0x97a191,'result':{'actions':_0x16acab[_0x44985a(0x26e)](_0xe295ee=>_0x713033==null?void 0x0:_0x713033['actions'][_0x44985a(0x3ab)](_0x23883d=>_0x23883d[_0x44985a(0x12c)]===_0xe295ee))[_0x44985a(0x11a)](_0x2a0690=>!!_0x2a0690),'error':_0x51f87b['error']}};});}})}));}[_0x21648f(0x366)](){const _0x25ec52=_0x21648f;var _0x97093e;let _0x2fc58a=this['_configService'][_0x25ec52(0x33e)](_0x4b92ba);return(_0x97093e=_0x2fc58a==null?void 0x0:_0x2fc58a[_0x25ec52(0x1be)])==null?_0x25ec52(0x1b3):_0x97093e;}async[_0x21648f(0x3c6)](_0x421587){const _0x5973fa=_0x21648f;let _0x29898e=this[_0x5973fa(0x366)]()+'/'+_0x421587[_0x5973fa(0x35e)]+_0x5973fa(0x399);return(await this[_0x5973fa(0x1ad)][_0x5973fa(0x18e)](_0x29898e,{'body':_0x421587}))[_0x5973fa(0x346)][_0x5973fa(0x24f)]||'';}async[_0x21648f(0x417)](_0x36603c){const _0x18b3e2=_0x21648f;let _0x5133a9=this[_0x18b3e2(0x366)]()+_0x18b3e2(0x1c8);return(await this[_0x18b3e2(0x1ad)][_0x18b3e2(0x18e)](_0x5133a9,{'body':_0x36603c}))[_0x18b3e2(0x346)][_0x18b3e2(0x154)];}async[_0x21648f(0x120)](_0x6d1587){const _0x1e9b24=_0x21648f;var _0x2c13a6;let _0x350ac5=this['_getAPIPrefixPath']()+'/'+_0x6d1587[_0x1e9b24(0x35e)]+_0x1e9b24(0x349)+_0x6d1587[_0x1e9b24(0x24f)],_0x1f69b0=await this[_0x1e9b24(0x1ad)]['put'](_0x350ac5,{'body':_0x6d1587});if((_0x1f69b0==null||(_0x2c13a6=_0x1f69b0[_0x1e9b24(0x346)])==null||(_0x2c13a6=_0x2c13a6[_0x1e9b24(0x29e)])==null?void 0x0:_0x2c13a6[_0x1e9b24(0x2b5)])!==0x1)throw Error(_0x1e9b24(0x338));}async[_0x21648f(0x1c0)](_0x527299){const _0x3591fd=_0x21648f;let _0x5603c2=this[_0x3591fd(0x366)]()+'/'+_0x527299['objectType']+'/object/'+_0x527299[_0x3591fd(0x24f)]+'/allowed';return(await this['_HTTPService']['post'](_0x5603c2,{'body':_0x527299}))[_0x3591fd(0x346)][_0x3591fd(0x130)];}async[_0x21648f(0x2c1)](_0x3256db){const _0x30e1a6=_0x21648f;let _0x3360e3=this[_0x30e1a6(0x366)]()+_0x30e1a6(0x2f5);return(await this[_0x30e1a6(0x1ad)][_0x30e1a6(0x18e)](_0x3360e3,{'body':{'requests':_0x3256db}}))['body'][_0x30e1a6(0x36a)];}async[_0x21648f(0x122)](_0x55eb56){const _0x4873a3=_0x21648f;let _0x1d83f3=this[_0x4873a3(0x366)]()+'/'+_0x55eb56[_0x4873a3(0x35e)]+_0x4873a3(0x15d),_0x3ebccf=await this[_0x4873a3(0x1ad)][_0x4873a3(0x18e)](_0x1d83f3,{'body':_0x55eb56});return{'roles':_0x3ebccf[_0x4873a3(0x346)][_0x4873a3(0x137)],'actions':_0x3ebccf[_0x4873a3(0x346)][_0x4873a3(0x130)]};}async[_0x21648f(0x3f2)](_0x27d3e0){const _0x331c0a=_0x21648f;let _0x5c7dc3=this[_0x331c0a(0x366)]()+_0x331c0a(0x10c);await this[_0x331c0a(0x1ad)][_0x331c0a(0xe0)](_0x5c7dc3,{'params':{'collaboratorID':_0x27d3e0['collaboratorID'],'objectID':_0x27d3e0[_0x331c0a(0x24f)],'unitID':_0x27d3e0[_0x331c0a(0xff)]}});}async[_0x21648f(0x1f8)](_0x2e9036){const _0x27b2da=_0x21648f;let _0x4e5966=this['_getAPIPrefixPath']()+_0x27b2da(0x10c);await this[_0x27b2da(0x1ad)][_0x27b2da(0x251)](_0x4e5966,{'body':_0x2e9036});}async[_0x21648f(0x3a6)](_0x58a01f){const _0x193b4b=_0x21648f;let _0x5bec3a=this[_0x193b4b(0x366)]()+_0x193b4b(0x10c);await this[_0x193b4b(0x1ad)][_0x193b4b(0x18e)](_0x5bec3a,{'body':_0x58a01f});}async[_0x21648f(0x35c)](_0x59a9cb){const _0x370642=_0x21648f;var _0x4c71b5;let _0x2a6f1f=this[_0x370642(0x366)]()+_0x370642(0x10c),_0x1e3bf2=await this[_0x370642(0x1ad)]['get'](_0x2a6f1f,{'params':{'objectID':_0x59a9cb[_0x370642(0x24f)],'unitID':_0x59a9cb['unitID']}});return this['setCfgEnableObjInherit']((_0x4c71b5=_0x1e3bf2['body'][_0x370642(0x3a0)])==null?!0x1:_0x4c71b5),_0x1e3bf2[_0x370642(0x346)][_0x370642(0x2a8)];}async[_0x21648f(0xfd)](_0x5775a7){const _0xa961b7=_0x21648f;let _0x5a78f3=this[_0xa961b7(0x366)]()+'/collaborator';await this[_0xa961b7(0x1ad)][_0xa961b7(0x2fe)](_0x5a78f3,{'body':_0x5775a7});}[_0x21648f(0x26d)](_0x12e033){const _0x15601=_0x21648f;this[_0x15601(0x126)]=_0x12e033;}['getCfgEnableObjInherit'](){const _0x29502d=_0x21648f;return this[_0x29502d(0x126)];}};_0x37ea91=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x2ba)]))],_0x37ea91);function _0x1d4a37(_0xb155e7){const _0x4b9058=_0x21648f;return _0xb155e7 instanceof Uint8Array||ArrayBuffer[_0x4b9058(0x269)](_0xb155e7)&&_0xb155e7[_0x4b9058(0x32e)]['name']==='Uint8Array'&&'BYTES_PER_ELEMENT'in _0xb155e7&&_0xb155e7[_0x4b9058(0x1c3)]===0x1;}function _0x508742(_0x2ae40c){const _0x1ccb8c=_0x21648f;if(typeof _0x2ae40c!='number')throw TypeError('number\x20expected,\x20got\x20'+typeof _0x2ae40c);if(!Number[_0x1ccb8c(0x3e7)](_0x2ae40c)||_0x2ae40c<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x2ae40c);}function _0x4ace98(_0x2b58ad,_0x55152f,_0x19aa12=''){const _0x5b9e96=_0x21648f;let _0x310141=_0x1d4a37(_0x2b58ad),_0x5bae8f=_0x2b58ad==null?void 0x0:_0x2b58ad[_0x5b9e96(0x207)],_0x3d0f08=_0x55152f!==void 0x0;if(!_0x310141||_0x3d0f08&&_0x5bae8f!==_0x55152f){let _0x5c961b=_0x19aa12&&'\x22'+_0x19aa12+'\x22\x20',_0x342cd9=_0x3d0f08?_0x5b9e96(0x17d)+_0x55152f:'',_0x1e59b7=_0x310141?'length='+_0x5bae8f:_0x5b9e96(0x418)+typeof _0x2b58ad,_0x3acf37=_0x5c961b+_0x5b9e96(0x149)+_0x342cd9+_0x5b9e96(0x134)+_0x1e59b7;throw _0x310141?RangeError(_0x3acf37):TypeError(_0x3acf37);}return _0x2b58ad;}function _0x3950d7(_0x97cb30){const _0x21d13e=_0x21648f;return new Uint32Array(_0x97cb30['buffer'],_0x97cb30['byteOffset'],Math[_0x21d13e(0x299)](_0x97cb30['byteLength']/0x4));}function _0xa6a925(..._0x1aea95){const _0x395d51=_0x21648f;for(let _0x1c67b7=0x0;_0x1c67b7<_0x1aea95['length'];_0x1c67b7++)_0x1aea95[_0x1c67b7][_0x395d51(0x344)](0x0);}let _0x5bfac2=new Uint8Array(new Uint32Array([0x11223344])[_0x21648f(0x412)])[0x0]===0x44,_0x29d85e=_0x5c4d10=>_0x5c4d10<<0x18&0xff000000|_0x5c4d10<<0x8&0xff0000|_0x5c4d10>>>0x8&0xff00|_0x5c4d10>>>0x18&0xff,_0x27bf18=_0x5bfac2?_0x1407d2=>_0x1407d2:_0x12bea5=>{for(let _0x2589fd=0x0;_0x2589fd<_0x12bea5['length'];_0x2589fd++)_0x12bea5[_0x2589fd]=_0x29d85e(_0x12bea5[_0x2589fd]);return _0x12bea5;};function _0x51fa95(_0x5a0554){const _0x3c44fd=_0x21648f;if(typeof _0x5a0554!='string')throw TypeError(_0x3c44fd(0x2c6));return new Uint8Array(new TextEncoder()[_0x3c44fd(0x28e)](_0x5a0554));}function _0xfb58bc(_0x46086d,_0x5cabbe){const _0x543dfd=_0x21648f;return!_0x46086d[_0x543dfd(0x249)]||!_0x5cabbe[_0x543dfd(0x249)]?!0x1:_0x46086d[_0x543dfd(0x412)]===_0x5cabbe[_0x543dfd(0x412)]&&_0x46086d[_0x543dfd(0x38b)]<_0x5cabbe['byteOffset']+_0x5cabbe[_0x543dfd(0x249)]&&_0x5cabbe[_0x543dfd(0x38b)]<_0x46086d['byteOffset']+_0x46086d[_0x543dfd(0x249)];}function _0x307ed9(_0x298312,_0x250bd6){const _0x164895=_0x21648f;if(_0xfb58bc(_0x298312,_0x250bd6)&&_0x298312[_0x164895(0x38b)]<_0x250bd6[_0x164895(0x38b)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0xf48190(..._0x2dd8a8){const _0x17ee90=_0x21648f;let _0x1700c4=0x0;for(let _0x34f70f=0x0;_0x34f70f<_0x2dd8a8[_0x17ee90(0x207)];_0x34f70f++){let _0x3cfaa9=_0x2dd8a8[_0x34f70f];_0x4ace98(_0x3cfaa9),_0x1700c4+=_0x3cfaa9[_0x17ee90(0x207)];}let _0x64ca42=new Uint8Array(_0x1700c4);for(let _0x172ac1=0x0,_0x334b78=0x0;_0x172ac1<_0x2dd8a8[_0x17ee90(0x207)];_0x172ac1++){let _0x1a51e8=_0x2dd8a8[_0x172ac1];_0x64ca42[_0x17ee90(0x213)](_0x1a51e8,_0x334b78),_0x334b78+=_0x1a51e8[_0x17ee90(0x207)];}return _0x64ca42;}let _0x4a721e=(_0x1005fd,_0x19538d)=>{function _0x485c21(_0x58c603,..._0x2caf98){const _0x4b5bd1=_0x2b93;if(_0x4ace98(_0x58c603,void 0x0,_0x4b5bd1(0xec)),_0x1005fd[_0x4b5bd1(0x192)]!==void 0x0){let _0x27ff7d=_0x2caf98[0x0];_0x4ace98(_0x27ff7d,_0x1005fd[_0x4b5bd1(0x19d)]?void 0x0:_0x1005fd[_0x4b5bd1(0x192)],_0x4b5bd1(0x3aa));}let _0x30d542=_0x1005fd[_0x4b5bd1(0x334)];_0x30d542&&_0x2caf98[0x1]!==void 0x0&&_0x4ace98(_0x2caf98[0x1],void 0x0,_0x4b5bd1(0x279));let _0x189e9a=_0x19538d(_0x58c603,..._0x2caf98),_0x2f1845=(_0x1b6471,_0x518165)=>{if(_0x518165!==void 0x0){if(_0x1b6471!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x4ace98(_0x518165,void 0x0,'output');}},_0x55132b=!0x1;return{'encrypt'(_0x563ecf,_0x2c8842){const _0x13053c=_0x4b5bd1;if(_0x55132b)throw Error(_0x13053c(0x41e));return _0x55132b=!0x0,_0x4ace98(_0x563ecf),_0x2f1845(_0x189e9a['encrypt'][_0x13053c(0x207)],_0x2c8842),_0x189e9a[_0x13053c(0xc3)](_0x563ecf,_0x2c8842);},'decrypt'(_0x4525a4,_0x14c3ce){const _0x1bb892=_0x4b5bd1;if(_0x4ace98(_0x4525a4),_0x30d542&&_0x4525a4[_0x1bb892(0x207)]<_0x30d542)throw Error(_0x1bb892(0x2a1)+_0x30d542);return _0x2f1845(_0x189e9a[_0x1bb892(0x322)]['length'],_0x14c3ce),_0x189e9a[_0x1bb892(0x322)](_0x4525a4,_0x14c3ce);}};}return Object['assign'](_0x485c21,_0x1005fd),_0x485c21;};function _0x1e24ee(_0x486675,_0x1d2ad1,_0x368aaf=!0x0){const _0x3f0e3c=_0x21648f;if(_0x1d2ad1===void 0x0)return new Uint8Array(_0x486675);if(_0x4ace98(_0x1d2ad1,void 0x0,_0x3f0e3c(0x242)),_0x1d2ad1[_0x3f0e3c(0x207)]!==_0x486675)throw Error(_0x3f0e3c(0x3cb)+_0x486675+_0x3f0e3c(0x228)+_0x1d2ad1[_0x3f0e3c(0x207)]);if(_0x368aaf&&!_0x39f7e5(_0x1d2ad1))throw Error(_0x3f0e3c(0x2a5));return _0x1d2ad1;}function _0x39f7e5(_0x7945ac){const _0x4af272=_0x21648f;return _0x7945ac[_0x4af272(0x38b)]%0x4==0x0;}function _0x1138f9(_0x38a9b6){return Uint8Array['from'](_0x4ace98(_0x38a9b6));}function _0x41fb8b(_0x2a7bd2=0x20){const _0x433425=_0x21648f;_0x508742(_0x2a7bd2);let _0x3635e2=typeof globalThis==_0x433425(0x2a6)?globalThis['crypto']:null;if(typeof(_0x3635e2==null?void 0x0:_0x3635e2[_0x433425(0xf0)])!=_0x433425(0x259))throw Error(_0x433425(0x32a));return _0x3635e2['getRandomValues'](new Uint8Array(_0x2a7bd2));}function _0x418a99(_0xc1aaab){const _0xf62e2b=_0x21648f;if(![0x10,0x18,0x20][_0xf62e2b(0x335)](_0xc1aaab[_0xf62e2b(0x207)]))throw Error(_0xf62e2b(0x1e0)+_0xc1aaab['length']);}function _0x4482e7(_0x19b7dd){return _0x19b7dd<<0x1^0x11b&-(_0x19b7dd>>0x7);}function _0x32cd2d(_0x2a045f,_0x247e5e){let _0x2b8eba=0x0;for(;_0x247e5e>0x0;_0x247e5e>>=0x1)_0x2b8eba^=_0x2a045f&-(_0x247e5e&0x1),_0x2a045f=_0x4482e7(_0x2a045f);return _0x2b8eba;}let _0x13f9b2=((()=>{let _0x11a003=new Uint8Array(0x100);for(let _0x507c85=0x0,_0x59d175=0x1;_0x507c85<0x100;_0x507c85++,_0x59d175^=_0x4482e7(_0x59d175))_0x11a003[_0x507c85]=_0x59d175;let _0x32b077=new Uint8Array(0x100);_0x32b077[0x0]=0x63;for(let _0x1e85d5=0x0;_0x1e85d5<0xff;_0x1e85d5++){let _0x29fcbf=_0x11a003[0xff-_0x1e85d5];_0x29fcbf|=_0x29fcbf<<0x8,_0x32b077[_0x11a003[_0x1e85d5]]=(_0x29fcbf^_0x29fcbf>>0x4^_0x29fcbf>>0x5^_0x29fcbf>>0x6^_0x29fcbf>>0x7^0x63)&0xff;}return _0xa6a925(_0x11a003),_0x32b077;})()),_0x73ad1f=_0x13f9b2[_0x21648f(0x26e)]((_0x4b47e3,_0x357073)=>_0x13f9b2[_0x21648f(0xed)](_0x357073)),_0x3ac031=_0x53a339=>_0x53a339<<0x18|_0x53a339>>>0x8,_0x1ee802=_0x6ce9e7=>_0x6ce9e7<<0x8|_0x6ce9e7>>>0x18;function _0x19bf21(_0x1243c0,_0x3bb26b){const _0xf86b47=_0x21648f;if(_0x1243c0[_0xf86b47(0x207)]!==0x100)throw Error(_0xf86b47(0x29f));let _0x540707=new Uint32Array(0x100)[_0xf86b47(0x26e)]((_0x302bb6,_0x151d74)=>_0x3bb26b(_0x1243c0[_0x151d74])),_0x3a921e=_0x540707[_0xf86b47(0x26e)](_0x1ee802),_0x2710f5=_0x3a921e['map'](_0x1ee802),_0x3cd067=_0x2710f5[_0xf86b47(0x26e)](_0x1ee802),_0x4d016b=new Uint32Array(0x100*0x100),_0x49d710=new Uint32Array(0x100*0x100),_0x12fe1f=new Uint16Array(0x100*0x100);for(let _0xf68ba6=0x0;_0xf68ba6<0x100;_0xf68ba6++)for(let _0x1b4e4d=0x0;_0x1b4e4d<0x100;_0x1b4e4d++){let _0x7fb296=_0xf68ba6*0x100+_0x1b4e4d;_0x4d016b[_0x7fb296]=_0x540707[_0xf68ba6]^_0x3a921e[_0x1b4e4d],_0x49d710[_0x7fb296]=_0x2710f5[_0xf68ba6]^_0x3cd067[_0x1b4e4d],_0x12fe1f[_0x7fb296]=_0x1243c0[_0xf68ba6]<<0x8|_0x1243c0[_0x1b4e4d];}return{'sbox':_0x1243c0,'sbox2':_0x12fe1f,'T0':_0x540707,'T1':_0x3a921e,'T2':_0x2710f5,'T3':_0x3cd067,'T01':_0x4d016b,'T23':_0x49d710};}let _0x23a347=_0x19bf21(_0x13f9b2,_0x196f79=>_0x32cd2d(_0x196f79,0x3)<<0x18|_0x196f79<<0x10|_0x196f79<<0x8|_0x32cd2d(_0x196f79,0x2)),_0x383ebf=_0x19bf21(_0x73ad1f,_0x4eee50=>_0x32cd2d(_0x4eee50,0xb)<<0x18|_0x32cd2d(_0x4eee50,0xd)<<0x10|_0x32cd2d(_0x4eee50,0x9)<<0x8|_0x32cd2d(_0x4eee50,0xe)),_0x4325fc=((()=>{let _0x3099de=new Uint8Array(0x10);for(let _0x3fea12=0x0,_0x3fbf30=0x1;_0x3fea12<0x10;_0x3fea12++,_0x3fbf30=_0x4482e7(_0x3fbf30))_0x3099de[_0x3fea12]=_0x3fbf30;return _0x3099de;})());function _0x217231(_0x32562d){const _0x5e8c7d=_0x21648f;_0x4ace98(_0x32562d);let _0x467745=_0x32562d[_0x5e8c7d(0x207)];_0x418a99(_0x32562d);let {sbox2:_0x253225}=_0x23a347,_0x39927b=[];(!_0x5bfac2||!_0x39f7e5(_0x32562d))&&_0x39927b['push'](_0x32562d=_0x1138f9(_0x32562d));let _0x28fcfb=_0x27bf18(_0x3950d7(_0x32562d)),_0x36d4fb=_0x28fcfb[_0x5e8c7d(0x207)],_0x3d89e2=_0x3842e6=>_0x443ac3(_0x253225,_0x3842e6,_0x3842e6,_0x3842e6,_0x3842e6),_0x310d25=new Uint32Array(_0x467745+0x1c);_0x310d25['set'](_0x28fcfb);for(let _0x373899=_0x36d4fb;_0x373899<_0x310d25['length'];_0x373899++){let _0x368e7a=_0x310d25[_0x373899-0x1];_0x373899%_0x36d4fb===0x0?_0x368e7a=_0x3d89e2(_0x3ac031(_0x368e7a))^_0x4325fc[_0x373899/_0x36d4fb-0x1]:_0x36d4fb>0x6&&_0x373899%_0x36d4fb===0x4&&(_0x368e7a=_0x3d89e2(_0x368e7a)),_0x310d25[_0x373899]=_0x310d25[_0x373899-_0x36d4fb]^_0x368e7a;}return _0xa6a925(..._0x39927b),_0x310d25;}function _0x3f6652(_0x5b4041){let _0x17c195=_0x217231(_0x5b4041),_0xe5978f=_0x17c195['slice'](),_0x191c20=_0x17c195['length'],{sbox2:_0xc4d29e}=_0x23a347,{T0:_0x5a9142,T1:_0x2aecc8,T2:_0x52d860,T3:_0x47592d}=_0x383ebf;for(let _0x5a2291=0x0;_0x5a2291<_0x191c20;_0x5a2291+=0x4)for(let _0x1ca840=0x0;_0x1ca840<0x4;_0x1ca840++)_0xe5978f[_0x5a2291+_0x1ca840]=_0x17c195[_0x191c20-_0x5a2291-0x4+_0x1ca840];_0xa6a925(_0x17c195);for(let _0x7d6016=0x4;_0x7d6016<_0x191c20-0x4;_0x7d6016++){let _0x5f3d3a=_0xe5978f[_0x7d6016],_0x553f7b=_0x443ac3(_0xc4d29e,_0x5f3d3a,_0x5f3d3a,_0x5f3d3a,_0x5f3d3a);_0xe5978f[_0x7d6016]=_0x5a9142[_0x553f7b&0xff]^_0x2aecc8[_0x553f7b>>>0x8&0xff]^_0x52d860[_0x553f7b>>>0x10&0xff]^_0x47592d[_0x553f7b>>>0x18];}return _0xe5978f;}function _0x24ac2b(_0x5c7fb6,_0x193d64,_0x56eb7a,_0x42fd27,_0x5a0e42,_0x41f4cd){return _0x5c7fb6[_0x56eb7a<<0x8&0xff00|_0x42fd27>>>0x8&0xff]^_0x193d64[_0x5a0e42>>>0x8&0xff00|_0x41f4cd>>>0x18&0xff];}function _0x443ac3(_0xa99fa6,_0x4572b7,_0x5985e8,_0x26f05a,_0x365feb){return _0xa99fa6[_0x4572b7&0xff|_0x5985e8&0xff00]|_0xa99fa6[_0x26f05a>>>0x10&0xff|_0x365feb>>>0x10&0xff00]<<0x10;}function _0x5d3c98(_0x4d5239,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d){const _0x58aa8d=_0x21648f;let {sbox2:_0x314ca6,T01:_0x2c99e2,T23:_0x533658}=_0x23a347,_0x5acefd=0x0;_0x6e5db1^=_0x4d5239[_0x5acefd++],_0x4a9f7c^=_0x4d5239[_0x5acefd++],_0x3e9a2b^=_0x4d5239[_0x5acefd++],_0x9c789d^=_0x4d5239[_0x5acefd++];let _0x4a18f1=_0x4d5239[_0x58aa8d(0x207)]/0x4-0x2;for(let _0x563c93=0x0;_0x563c93<_0x4a18f1;_0x563c93++){let _0x32babc=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d),_0x210dc4=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x4a9f7c,_0x3e9a2b,_0x9c789d,_0x6e5db1),_0xdbb414=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x3e9a2b,_0x9c789d,_0x6e5db1,_0x4a9f7c),_0xa2ec56=_0x4d5239[_0x5acefd++]^_0x24ac2b(_0x2c99e2,_0x533658,_0x9c789d,_0x6e5db1,_0x4a9f7c,_0x3e9a2b);_0x6e5db1=_0x32babc,_0x4a9f7c=_0x210dc4,_0x3e9a2b=_0xdbb414,_0x9c789d=_0xa2ec56;}return{'s0':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x6e5db1,_0x4a9f7c,_0x3e9a2b,_0x9c789d),'s1':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x4a9f7c,_0x3e9a2b,_0x9c789d,_0x6e5db1),'s2':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x3e9a2b,_0x9c789d,_0x6e5db1,_0x4a9f7c),'s3':_0x4d5239[_0x5acefd++]^_0x443ac3(_0x314ca6,_0x9c789d,_0x6e5db1,_0x4a9f7c,_0x3e9a2b)};}function _0x2924f2(_0x3f2b95,_0x4022d7,_0x4df684,_0x394663,_0x7592f5){const _0x36db84=_0x21648f;let {sbox2:_0x241f31,T01:_0x2ae9d0,T23:_0x229cb1}=_0x383ebf,_0x3561be=0x0;_0x4022d7^=_0x3f2b95[_0x3561be++],_0x4df684^=_0x3f2b95[_0x3561be++],_0x394663^=_0x3f2b95[_0x3561be++],_0x7592f5^=_0x3f2b95[_0x3561be++];let _0x3942a8=_0x3f2b95[_0x36db84(0x207)]/0x4-0x2;for(let _0x23200d=0x0;_0x23200d<_0x3942a8;_0x23200d++){let _0x1c1a7e=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x4022d7,_0x7592f5,_0x394663,_0x4df684),_0x419215=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x4df684,_0x4022d7,_0x7592f5,_0x394663),_0x125eb9=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x394663,_0x4df684,_0x4022d7,_0x7592f5),_0x524432=_0x3f2b95[_0x3561be++]^_0x24ac2b(_0x2ae9d0,_0x229cb1,_0x7592f5,_0x394663,_0x4df684,_0x4022d7);_0x4022d7=_0x1c1a7e,_0x4df684=_0x419215,_0x394663=_0x125eb9,_0x7592f5=_0x524432;}return{'s0':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x4022d7,_0x7592f5,_0x394663,_0x4df684),'s1':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x4df684,_0x4022d7,_0x7592f5,_0x394663),'s2':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x394663,_0x4df684,_0x4022d7,_0x7592f5),'s3':_0x3f2b95[_0x3561be++]^_0x443ac3(_0x241f31,_0x7592f5,_0x394663,_0x4df684,_0x4022d7)};}function _0x3c06fc(_0x2f6d1d){const _0x829ac1=_0x21648f;if(_0x4ace98(_0x2f6d1d),_0x2f6d1d[_0x829ac1(0x207)]%0x10!=0x0)throw Error(_0x829ac1(0x187));}function _0x2341df(_0x155727,_0x29d84c,_0x5aed0b){const _0x222258=_0x21648f;_0x4ace98(_0x155727);let _0x2ee885=_0x155727[_0x222258(0x207)],_0x4a24ef=_0x2ee885%0x10;if(!_0x29d84c&&_0x4a24ef!==0x0)throw Error(_0x222258(0x17f));if(_0x29d84c){let _0x20d6ff=0x10-_0x4a24ef;_0x20d6ff||(_0x20d6ff=0x10),_0x2ee885+=_0x20d6ff;}_0x5aed0b=_0x1e24ee(_0x2ee885,_0x5aed0b),_0x307ed9(_0x155727,_0x5aed0b),(!_0x5bfac2||!_0x39f7e5(_0x155727))&&(_0x155727=_0x1138f9(_0x155727));let _0x183b9d=_0x3950d7(_0x155727);return _0x27bf18(_0x183b9d),{'b':_0x183b9d,'o':_0x3950d7(_0x5aed0b),'out':_0x5aed0b};}function _0x4307d1(_0x29b671,_0x2453df){const _0xe97730=_0x21648f;if(!_0x2453df)return _0x29b671;let _0x52a18f=_0x29b671[_0xe97730(0x207)];if(_0x52a18f===0x0)throw Error(_0xe97730(0x319));let _0x5c1778=_0x29b671[_0x52a18f-0x1],_0x4a2002=0x1;_0x4a2002&=_0x5c1778-0x1>>>0x1f^0x1,_0x4a2002&=0x10-_0x5c1778>>>0x1f^0x1;for(let _0x4affec=0x0;_0x4affec<0x10;_0x4affec++){let _0x3957d5=_0x4affec-_0x5c1778>>>0x1f,_0x5b0003=+((_0x29b671[_0x52a18f-0x1-_0x4affec]^_0x5c1778)===0x0);_0x4a2002&=_0x5b0003|_0x3957d5^0x1;}if(!_0x4a2002)throw Error(_0xe97730(0x2df));return _0x29b671[_0xe97730(0x314)](0x0,_0x52a18f-_0x5c1778);}function _0x398041(_0x5d768f){const _0x4b6e41=_0x21648f;let _0x55cd85=new Uint8Array(0x10),_0x549030=_0x3950d7(_0x55cd85);_0x55cd85[_0x4b6e41(0x213)](_0x5d768f);let _0x953bd5=0x10-_0x5d768f[_0x4b6e41(0x207)];for(let _0x54a493=0x10-_0x953bd5;_0x54a493<0x10;_0x54a493++)_0x55cd85[_0x54a493]=_0x953bd5;return _0x549030;}let _0x22b264=_0x4a721e({'blockSize':0x10,'nonceLength':0x10},function(_0x18989c,_0x2f99bd,_0x3b4170={}){let _0x2179b4=!_0x3b4170['disablePadding'];return{'encrypt'(_0x5da101,_0x4ddc28){const _0x2ba143=_0x2b93;let _0x9da018=_0x217231(_0x18989c),{b:_0x23d981,o:_0x5c8ce7,out:_0x1530ae}=_0x2341df(_0x5da101,_0x2179b4,_0x4ddc28),_0x17fa34=_0x2f99bd,_0x16d08b=[_0x9da018];(!_0x5bfac2||!_0x39f7e5(_0x17fa34))&&_0x16d08b[_0x2ba143(0x327)](_0x17fa34=_0x1138f9(_0x17fa34));let _0x18808d=_0x3950d7(_0x17fa34);_0x27bf18(_0x18808d);let _0x345830=_0x18808d[0x0],_0xa2803a=_0x18808d[0x1],_0x469eb7=_0x18808d[0x2],_0x2182b7=_0x18808d[0x3],_0x3a3640=0x0;for(;_0x3a3640+0x4<=_0x23d981[_0x2ba143(0x207)];)_0x345830^=_0x23d981[_0x3a3640+0x0],_0xa2803a^=_0x23d981[_0x3a3640+0x1],_0x469eb7^=_0x23d981[_0x3a3640+0x2],_0x2182b7^=_0x23d981[_0x3a3640+0x3],{s0:_0x345830,s1:_0xa2803a,s2:_0x469eb7,s3:_0x2182b7}=_0x5d3c98(_0x9da018,_0x345830,_0xa2803a,_0x469eb7,_0x2182b7),_0x5c8ce7[_0x3a3640++]=_0x345830,_0x5c8ce7[_0x3a3640++]=_0xa2803a,_0x5c8ce7[_0x3a3640++]=_0x469eb7,_0x5c8ce7[_0x3a3640++]=_0x2182b7;if(_0x2179b4){let _0x159bb6=_0x398041(_0x5da101[_0x2ba143(0x314)](_0x3a3640*0x4));_0x27bf18(_0x159bb6),_0x345830^=_0x159bb6[0x0],_0xa2803a^=_0x159bb6[0x1],_0x469eb7^=_0x159bb6[0x2],_0x2182b7^=_0x159bb6[0x3],{s0:_0x345830,s1:_0xa2803a,s2:_0x469eb7,s3:_0x2182b7}=_0x5d3c98(_0x9da018,_0x345830,_0xa2803a,_0x469eb7,_0x2182b7),_0x5c8ce7[_0x3a3640++]=_0x345830,_0x5c8ce7[_0x3a3640++]=_0xa2803a,_0x5c8ce7[_0x3a3640++]=_0x469eb7,_0x5c8ce7[_0x3a3640++]=_0x2182b7;}return _0x27bf18(_0x5c8ce7),_0xa6a925(..._0x16d08b),_0x1530ae;},'decrypt'(_0x52b95d,_0x2d0963){const _0x479cbd=_0x2b93;_0x3c06fc(_0x52b95d);let _0x4801c6=_0x3f6652(_0x18989c),_0x16083a=_0x2f99bd,_0x21582a=[_0x4801c6];(!_0x5bfac2||!_0x39f7e5(_0x16083a))&&_0x21582a['push'](_0x16083a=_0x1138f9(_0x16083a));let _0x4121ad=_0x3950d7(_0x16083a);_0x27bf18(_0x4121ad),_0x2d0963=_0x1e24ee(_0x52b95d[_0x479cbd(0x207)],_0x2d0963),_0x307ed9(_0x52b95d,_0x2d0963),(!_0x5bfac2||!_0x39f7e5(_0x52b95d))&&_0x21582a[_0x479cbd(0x327)](_0x52b95d=_0x1138f9(_0x52b95d));let _0x20ff75=_0x3950d7(_0x52b95d),_0x6c9c33=_0x3950d7(_0x2d0963);_0x27bf18(_0x20ff75);let _0x398e05=_0x4121ad[0x0],_0x1ec1a8=_0x4121ad[0x1],_0x32930e=_0x4121ad[0x2],_0x1452e3=_0x4121ad[0x3];for(let _0x1eaaa5=0x0;_0x1eaaa5+0x4<=_0x20ff75[_0x479cbd(0x207)];){let _0x1aecc6=_0x398e05,_0x5896fb=_0x1ec1a8,_0x5a7d34=_0x32930e,_0x335b96=_0x1452e3;_0x398e05=_0x20ff75[_0x1eaaa5+0x0],_0x1ec1a8=_0x20ff75[_0x1eaaa5+0x1],_0x32930e=_0x20ff75[_0x1eaaa5+0x2],_0x1452e3=_0x20ff75[_0x1eaaa5+0x3];let {s0:_0x49e950,s1:_0x4f3409,s2:_0x58f776,s3:_0x12d0f1}=_0x2924f2(_0x4801c6,_0x398e05,_0x1ec1a8,_0x32930e,_0x1452e3);_0x6c9c33[_0x1eaaa5++]=_0x49e950^_0x1aecc6,_0x6c9c33[_0x1eaaa5++]=_0x4f3409^_0x5896fb,_0x6c9c33[_0x1eaaa5++]=_0x58f776^_0x5a7d34,_0x6c9c33[_0x1eaaa5++]=_0x12d0f1^_0x335b96;}return _0x27bf18(_0x6c9c33),_0xa6a925(..._0x21582a),_0x4307d1(_0x2d0963,_0x2179b4);}};});function _0x5d4008(_0x39c832){const _0x264e19=_0x21648f;let _0x4384bb=atob(_0x39c832),_0x2c42ae=new Uint8Array(_0x4384bb[_0x264e19(0x207)]);for(let _0x59549a=0x0;_0x59549a<_0x4384bb[_0x264e19(0x207)];_0x59549a++)_0x2c42ae[_0x59549a]=_0x4384bb['charCodeAt'](_0x59549a);return _0x2c42ae;}function _0xc11ea2(_0x5fda37){const _0x13550a=_0x21648f;let _0x1ea8da='';for(let _0xbd9d56=0x0;_0xbd9d56<_0x5fda37[_0x13550a(0x207)];_0xbd9d56++)_0x1ea8da+=String[_0x13550a(0x3fd)](_0x5fda37[_0xbd9d56]);return btoa(_0x1ea8da);}function _0x54d039(_0x23534d,_0x149f84){const _0x31d1b5=_0x21648f;let _0x74faf5=_0x5d4008(_0x149f84),_0x5bc8f1=_0x41fb8b(0x10);return _0xc11ea2(_0xf48190(_0x5bc8f1,_0x22b264(_0x74faf5,_0x5bc8f1)[_0x31d1b5(0xc3)](_0x51fa95(_0x23534d))));}function _0x101d1c(){const _0xa272b1=_0x21648f;let _0x424da0=(0x0,_0xae8d13[_0xa272b1(0x15b)])()[_0xa272b1(0x239)];if(typeof window<'u'&&window[_0xa272b1(0x241)]!==void 0x0&&_0x424da0){let _0x2d4ecb={'time':Math[_0xa272b1(0x299)](Date[_0xa272b1(0x1c2)]()/0x3e8),'domain':location[_0xa272b1(0x30c)]};return _0x54d039(JSON[_0xa272b1(0x102)](_0x2d4ecb),_0x424da0);}}let _0x2f8f91=class{constructor(_0x37acfa){const _0x2d83a1=_0x21648f;this[_0x2d83a1(0x3a7)]=_0x37acfa,this[_0x2d83a1(0x196)]();}[_0x21648f(0x196)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2227e1,_0x12fdb)=>{const _0x21ef9f=_0x2b93;let _0x21b5c6=_0x101d1c();return _0x21b5c6&&_0x2227e1['headers'][_0x21ef9f(0x213)]('x-univer-host',_0x21b5c6),_0x12fdb(_0x2227e1);}});}};_0x2f8f91=_0x3e0941([_0x273192(0x0,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f['HTTPService']))],_0x2f8f91);let _0x49a43c=class extends _0x868841['RxDisposable']{constructor(_0xade241,_0x2ea219,_0x471d3e){const _0x49c9ff=_0x21648f;super(),this[_0x49c9ff(0x2fc)]=_0xade241,this[_0x49c9ff(0x179)]=_0x2ea219,this[_0x49c9ff(0x2c8)]=_0x471d3e,_0x6d65c2(this,_0x49c9ff(0x391),new _0x409690[(_0x49c9ff(0x193))](null)),_0x6d65c2(this,_0x49c9ff(0x285),new _0x409690['Subject']()),_0x6d65c2(this,_0x49c9ff(0x245),this['_unitInfo$']['asObservable']()),_0x6d65c2(this,_0x49c9ff(0x1e1),this[_0x49c9ff(0x285)][_0x49c9ff(0x340)]());}[_0x21648f(0x265)](){const _0x5875fd=_0x21648f;super[_0x5875fd(0x265)](),this[_0x5875fd(0x285)][_0x5875fd(0x3f5)](),this[_0x5875fd(0x391)]['complete']();}async[_0x21648f(0x3a1)](_0x1e8825,_0x130e4c,_0x2cec49,_0x3638f3){const _0x339f77=_0x21648f;this[_0x339f77(0x391)][_0x339f77(0xdd)]({'unitId':_0x1e8825,'type':_0x130e4c,'subUnitId':_0x3638f3});let _0x3cc234=null;switch(_0x130e4c){case _0x868841[_0x339f77(0x2f8)][_0x339f77(0x23b)]:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x326)](_0x1e8825,_0x2cec49,void 0x0,{'initialSubUnitId':_0x3638f3});break;case _0x868841['UniverInstanceType']['UNIVER_DOC']:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x34c)](_0x1e8825,_0x2cec49);break;case _0x868841['UniverInstanceType'][_0x339f77(0x2b1)]:_0x3cc234=await this[_0x339f77(0x179)]['loadSlide'](_0x1e8825,_0x2cec49);break;case _0x868841['UniverInstanceType'][_0x339f77(0x28a)]:_0x3cc234=await this[_0x339f77(0x179)][_0x339f77(0x1d3)](_0x1e8825,_0x2cec49);break;case _0x868841[_0x339f77(0x2f8)][_0x339f77(0x2a9)]:_0x3cc234=await this[_0x339f77(0x179)]['loadBase'](_0x1e8825,_0x2cec49);break;default:this[_0x339f77(0x2fc)][_0x339f77(0x29e)](_0x339f77(0x18d),_0x339f77(0x2c2));break;}return _0x3cc234&&this[_0x339f77(0x285)]['next'](_0x3cc234),_0x3cc234;}async[_0x21648f(0x291)](_0x59c6ed,_0xa105d,_0xaf3871){const _0x69003=_0x21648f;var _0x5a9f3f;this[_0x69003(0x391)][_0x69003(0xdd)]({'unitId':_0x59c6ed,'type':_0xa105d,'subUnitId':_0xaf3871});let _0x4b59c4=0x0,_0x5b29d3=await((_0x5a9f3f=this['_localCacheService'])==null?void 0x0:_0x5a9f3f[_0x69003(0x38e)](_0x59c6ed));return _0x5b29d3&&(_0x5b29d3[_0x69003(0x1ed)]||_0x5b29d3[_0x69003(0x1bb)][_0x69003(0x207)]!==0x0)&&(_0x4b59c4=_0x5b29d3['rev']),_0x4b59c4===0x0&&this[_0x69003(0x2fc)][_0x69003(0x39c)](_0x69003(0x18d),_0x69003(0x3b4)),this[_0x69003(0x3a1)](_0x59c6ed,_0xa105d,_0x4b59c4,_0xaf3871);}};_0x49a43c=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x206)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x4c2ece[_0x21648f(0x1e5)])),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x238)])(_0x47d8b0))],_0x49a43c);let _0x4a2349=class{constructor(_0x375d46,_0x1e86a7,_0xdffc2f){const _0x5a524c=_0x21648f;this[_0x5a524c(0x3a7)]=_0x375d46,this['_configService']=_0x1e86a7,this[_0x5a524c(0x32f)]=_0xdffc2f,_0x6d65c2(this,_0x5a524c(0x1ea),0x0),_0x6d65c2(this,_0x5a524c(0xe3),new _0x409690[(_0x5a524c(0x409))]()),_0x6d65c2(this,_0x5a524c(0x37a),this[_0x5a524c(0xe3)]),_0x6d65c2(this,_0x5a524c(0x158),new Map());}[_0x21648f(0x41a)](_0xc2318a){const _0x174a9d=_0x21648f;this[_0x174a9d(0x1ea)]=_0xc2318a,this[_0x174a9d(0xe3)][_0x174a9d(0xdd)](_0xc2318a);}[_0x21648f(0x3cf)](_0x365fff,_0x2c8dbd){const _0x1f037b=_0x21648f;if(_0x2c8dbd===_0x868841[_0x1f037b(0x1ee)][_0x1f037b(0x37b)]){let _0x1d459e=new Image();return _0x1d459e[_0x1f037b(0x315)]=_0x365fff,_0x1d459e;}return this[_0x1f037b(0x158)][_0x1f037b(0x224)](_0x365fff);}['addImageSourceCache'](_0x3c13a8,_0x4a5ec6,_0x3bf52d){const _0x554153=_0x21648f;_0x4a5ec6===_0x868841['ImageSourceType'][_0x554153(0x37b)]||_0x3bf52d==null||this[_0x554153(0x158)]['set'](_0x3c13a8,_0x3bf52d);}async[_0x21648f(0x123)](_0x3b7279){const _0x1fc2cb=_0x21648f;try{let _0x45185f=this[_0x1fc2cb(0x135)](this['_getSignURL'](),''+_0x3b7279),_0x28084a=(await this['_httpService'][_0x1fc2cb(0x224)](_0x45185f))[_0x1fc2cb(0x346)];if(_0x28084a[_0x1fc2cb(0x29e)]&&_0x28084a[_0x1fc2cb(0x29e)]['code']===_0x1df2bb[_0x1fc2cb(0xf6)]['OK']){let _0x53845f=(0x0,_0x868841[_0x1fc2cb(0x33d)])(_0x28084a['url'],this[_0x1fc2cb(0x189)]());return Promise[_0x1fc2cb(0x103)](_0x53845f);}return Promise[_0x1fc2cb(0x2d3)](_0x28084a[_0x1fc2cb(0x29e)]);}catch(_0xe05115){return Promise[_0x1fc2cb(0x2d3)](_0xe05115);}}async[_0x21648f(0x331)](_0x18030c){const _0x698d35=_0x21648f;let _0x535fb5='';if(!_0x50acd0[_0x698d35(0x2aa)]['includes'](_0x18030c['type']))return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0x3b8)]));if(_0x18030c[_0x698d35(0x362)]>(0x0,_0x50acd0['getDrawingImageAllowSize'])())return this[_0x698d35(0x28d)](),Promise['reject'](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0x316)]));try{let _0x1df78e=new FormData();_0x1df78e[_0x698d35(0x407)]('file',_0x18030c);let _0x314e5f=this[_0x698d35(0x32f)][_0x698d35(0x2e3)](),_0xee9b51=_0x314e5f==null?void 0x0:_0x314e5f['getUnitId']();if(!_0xee9b51)throw Error(_0x698d35(0x3ca));let _0x12e1d5=this[_0x698d35(0xfa)]()+_0x698d35(0x10a)+_0x18030c[_0x698d35(0x362)][_0x698d35(0x11b)]()+'&source='+_0x1df2bb['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0xee9b51),_0x405ee6={'body':_0x1df78e},_0x2eb1e6=(await this[_0x698d35(0x3a7)]['post'](_0x12e1d5,_0x405ee6))[_0x698d35(0x346)];if(typeof _0x2eb1e6[_0x698d35(0x3c7)]!=_0x698d35(0x353))return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841[_0x698d35(0x39a)][_0x698d35(0xef)]));_0x535fb5=_0x2eb1e6[_0x698d35(0x3c7)];}catch{return this[_0x698d35(0x28d)](),Promise[_0x698d35(0x2d3)](Error(_0x868841['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x371fa8,_0x284270)=>{const _0xbd7028=_0x698d35;let _0x3ef25e=new FileReader();_0x3ef25e[_0xbd7028(0x40f)](_0x18030c),_0x3ef25e[_0xbd7028(0x281)]=_0xa0e8c1=>{const _0x45441d=_0xbd7028;var _0xb12346;let _0x4183a6=(_0xb12346=_0xa0e8c1['target'])==null?void 0x0:_0xb12346[_0x45441d(0x144)];if(_0x4183a6==null){this['_decreaseWaiting'](),_0x284270(Error(_0x868841['ImageUploadStatusType'][_0x45441d(0xef)]));return;}_0x371fa8({'imageId':(0x0,_0x868841[_0x45441d(0x2db)])(0x6),'imageSourceType':_0x868841['ImageSourceType'][_0x45441d(0x3de)],'source':_0x535fb5,'base64Cache':_0x4183a6,'status':_0x868841[_0x45441d(0x39a)][_0x45441d(0x318)]}),this[_0x45441d(0x28d)]();};});}[_0x21648f(0xfa)](){const _0x378742=_0x21648f;var _0x1a6c66;let _0x3fb55e=this[_0x378742(0x23e)][_0x378742(0x33e)](_0x4b92ba);return(_0x1a6c66=_0x3fb55e==null?void 0x0:_0x3fb55e[_0x378742(0x2a2)])==null?_0x378742(0xeb):_0x1a6c66;}['_getSignURL'](){const _0x2ba620=_0x21648f;var _0x163b00;let _0x23dfcf=this[_0x2ba620(0x23e)][_0x2ba620(0x33e)](_0x4b92ba);return(_0x163b00=_0x23dfcf==null?void 0x0:_0x23dfcf[_0x2ba620(0x30f)])==null?_0x2ba620(0x274):_0x163b00;}[_0x21648f(0x189)](){const _0x2cb2df=_0x21648f;var _0x467055;let _0x505f4b=this[_0x2cb2df(0x23e)][_0x2cb2df(0x33e)](_0x4b92ba);return(_0x467055=_0x505f4b==null?void 0x0:_0x505f4b[_0x2cb2df(0x21d)])==null?location[_0x2cb2df(0x1c9)]:_0x467055;}[_0x21648f(0x135)](_0x4ec18f,_0x33ff09){const _0xa58c4d=_0x21648f;return _0x4ec18f[_0xa58c4d(0x336)](_0xa58c4d(0x1e4),_0x33ff09);}[_0x21648f(0x28d)](){const _0x1147f8=_0x21648f;--this[_0x1147f8(0x1ea)],this[_0x1147f8(0xe3)][_0x1147f8(0xdd)](this[_0x1147f8(0x1ea)]);}};_0x4a2349=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x8bc35f[_0x21648f(0x1a4)])),_0x273192(0x1,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x2,(0x0,_0x868841['Inject'])(_0x868841['IUniverInstanceService']))],_0x4a2349);let _0x3f1171=class{constructor(_0x477ced,_0x4197a6){const _0x4363a5=_0x21648f;this[_0x4363a5(0x23e)]=_0x477ced,this[_0x4363a5(0x1ad)]=_0x4197a6;}[_0x21648f(0x366)](){const _0x5c468e=_0x21648f;var _0x368fb1;let _0x1c9cf5=this['_configService'][_0x5c468e(0x33e)](_0x4b92ba);return(_0x368fb1=_0x1c9cf5==null?void 0x0:_0x1c9cf5['authzUrl'])==null?_0x5c468e(0x1b3):_0x368fb1;}async[_0x21648f(0x417)](_0x8f7010){const _0x5902e3=_0x21648f;let _0x30e59e=this[_0x5902e3(0x366)]()+_0x5902e3(0x10c);return{'list':[{'title':'People','mentions':(await this[_0x5902e3(0x1ad)]['get'](_0x30e59e,{'params':{'objectID':_0x8f7010['unitId'],'unitID':_0x8f7010[_0x5902e3(0x3b9)]}}))[_0x5902e3(0x346)][_0x5902e3(0x2a8)][_0x5902e3(0x26e)](_0x5db6a0=>({'objectId':_0x5db6a0['id'],'name':_0x5db6a0[_0x5902e3(0xcd)][_0x5902e3(0x414)],'metadata':{'icon':_0x5db6a0[_0x5902e3(0xcd)][_0x5902e3(0x3e1)]},'label':_0x5db6a0['subject'][_0x5902e3(0x414)],'objectType':_0x868841[_0x5902e3(0x345)]['PERSON']})),'metadata':{},'type':_0x868841[_0x5902e3(0x345)][_0x5902e3(0x21c)]}]};}};_0x3f1171=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841[_0x21648f(0x2ba)])),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)]))],_0x3f1171);let _0x473d8e=class extends _0x868841[_0x21648f(0x112)]{constructor(_0x18e4b3,_0x46426a,_0x4cc25e,_0x360b05,_0xad89d2){const _0x3f9d1d=_0x21648f;super(),this[_0x3f9d1d(0x2d9)]=_0x18e4b3,this[_0x3f9d1d(0x32f)]=_0x46426a,this[_0x3f9d1d(0x393)]=_0x4cc25e,this[_0x3f9d1d(0x226)]=_0x360b05,this[_0x3f9d1d(0x2bd)]=_0xad89d2,this[_0x3f9d1d(0xd4)](),this[_0x3f9d1d(0x3d4)]();}[_0x21648f(0x3d4)](){const _0x2a80f2=_0x21648f;let _0x59db62=async _0x383b88=>{const _0x4742e2=_0x2b93;(await this[_0x4742e2(0x226)][_0x4742e2(0x2a4)](_0x383b88))[_0x4742e2(0x219)][_0x4742e2(0x320)]((0x0,_0x4f74e1['filter'])(_0x599763=>_0x599763[_0x4742e2(0x1d9)]===_0x4c2ece['CollaborationEvent'][_0x4742e2(0x1fe)]),(0x0,_0x4f74e1[_0x4742e2(0x374)])(this['dispose$']))[_0x4742e2(0x3b6)](_0x29abfb=>{const _0x78ea3f=_0x4742e2;let {reason:_0x4fa3d6}=_0x29abfb['data'];this[_0x78ea3f(0x2bd)][_0x78ea3f(0x203)]({'id':_0x78ea3f(0x386),'data':_0x4fa3d6}),this[_0x78ea3f(0x393)][_0x78ea3f(0x339)](new _0x1d347c[(_0x78ea3f(0x360))](_0x383b88)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x383b88);});};(0x0,_0x409690[_0x2a80f2(0x382)])(this[_0x2a80f2(0x32f)]['getTypeOfUnitAdded$'](_0x868841['UniverInstanceType'][_0x2a80f2(0x23b)]),this['_univerInstanceService'][_0x2a80f2(0x14d)](_0x868841[_0x2a80f2(0x2f8)][_0x2a80f2(0x332)]),this[_0x2a80f2(0x32f)][_0x2a80f2(0x14d)](_0x868841[_0x2a80f2(0x2f8)]['UNIVER_BOARD']),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x868841['UniverInstanceType'][_0x2a80f2(0x2a9)]))[_0x2a80f2(0x320)]((0x0,_0x4f74e1['map'])(_0x97fb3d=>_0x97fb3d['unit'][_0x2a80f2(0x128)]()),(0x0,_0x4f74e1[_0x2a80f2(0x11a)])(_0x5effac=>!(0x0,_0x868841[_0x2a80f2(0x1fc)])(_0x5effac)),(0x0,_0x4f74e1[_0x2a80f2(0x374)])(this['dispose$']))[_0x2a80f2(0x3b6)](_0x539a60=>{_0x59db62(_0x539a60);});}[_0x21648f(0xd4)](){const _0x556b0c=_0x21648f;let _0x435f49=async _0x22826f=>{const _0x51bd98=_0x2b93;let _0x46ea70=await this[_0x51bd98(0x226)][_0x51bd98(0x2a4)](_0x22826f),_0x15bd94=this[_0x51bd98(0x2d9)]['get'](_0x1d347c[_0x51bd98(0x254)]);_0x46ea70[_0x51bd98(0x219)]['pipe']((0x0,_0x4f74e1[_0x51bd98(0x11a)])(_0x23e63b=>_0x23e63b[_0x51bd98(0x1d9)]===_0x4c2ece[_0x51bd98(0x343)][_0x51bd98(0x2ea)]),(0x0,_0x4f74e1[_0x51bd98(0x374)])(this[_0x51bd98(0xf2)]))['subscribe'](_0x2517b2=>{const _0x396b61=_0x51bd98;let {objectId:_0x3da172}=_0x2517b2[_0x396b61(0x29b)];_0x3da172===_0x22826f?_0x15bd94[_0x396b61(0x2f3)](_0x22826f):_0x15bd94[_0x396b61(0x333)](_0x22826f,_0x3da172);});};(0x0,_0x409690[_0x556b0c(0x382)])(this[_0x556b0c(0x32f)][_0x556b0c(0x14d)](_0x868841[_0x556b0c(0x2f8)][_0x556b0c(0x23b)]))[_0x556b0c(0x320)]((0x0,_0x4f74e1[_0x556b0c(0x26e)])(_0x565388=>_0x565388[_0x556b0c(0x2ee)][_0x556b0c(0x128)]()),(0x0,_0x4f74e1['filter'])(_0x59eb0d=>!(0x0,_0x868841[_0x556b0c(0x1fc)])(_0x59eb0d)),(0x0,_0x4f74e1[_0x556b0c(0x374)])(this[_0x556b0c(0xf2)]))[_0x556b0c(0x3b6)](_0x9541ab=>{_0x435f49(_0x9541ab);});}};_0x473d8e=_0x3e0941([_0x273192(0x0,(0x0,_0x868841['Inject'])(_0x868841['Injector'])),_0x273192(0x1,_0x868841['IUniverInstanceService']),_0x273192(0x2,_0x868841[_0x21648f(0x307)]),_0x273192(0x3,(0x0,_0x868841[_0x21648f(0x138)])(_0x4bf0aa)),_0x273192(0x4,(0x0,_0x868841[_0x21648f(0x138)])(_0x55b02d))],_0x473d8e);let _0x238261=class{constructor(_0x3d7d09,_0x520dda){const _0x3b22ed=_0x21648f;this[_0x3b22ed(0x23e)]=_0x3d7d09,this[_0x3b22ed(0x3a7)]=_0x520dda;}async[_0x21648f(0x416)](_0x4ababb,_0x3128b3){const _0x42fe1f=_0x21648f;var _0x58274b;let {unitID:_0x4d0833,type:_0x37ca7b,revision:_0x233d52=0x0}=_0x3128b3,_0x18c4eb=this[_0x42fe1f(0x23c)]()+'/'+_0x37ca7b+_0x42fe1f(0x19c)+_0x4d0833+_0x42fe1f(0x24c)+_0x233d52,_0x3fa3ec=(await this[_0x42fe1f(0x3a7)][_0x42fe1f(0x224)](_0x18c4eb))[_0x42fe1f(0x346)],_0x3c15c3=(_0x58274b=_0x3fa3ec['snapshot'])==null?void 0x0:_0x58274b[_0x42fe1f(0x411)];if(_0x3c15c3){let _0xcd835c=_0x3c15c3==null?void 0x0:_0x3c15c3[_0x42fe1f(0x237)];_0x3c15c3[_0x42fe1f(0x237)]=_0x4c2ece[_0x42fe1f(0x16b)][_0x42fe1f(0x28e)]((0x0,_0x4c2ece[_0x42fe1f(0x266)])(_0xcd835c)),Object[_0x42fe1f(0x1d1)](_0x3c15c3['sheets'])[_0x42fe1f(0x352)](([,_0x36554a])=>{const _0x466621=_0x42fe1f;let _0x2f6ede=_0x36554a[_0x466621(0x237)];_0x36554a[_0x466621(0x237)]=_0x4c2ece[_0x466621(0x16b)][_0x466621(0x28e)]((0x0,_0x4c2ece[_0x466621(0x266)])(_0x2f6ede));});}return _0x3fa3ec;}async[_0x21648f(0x263)](_0x351e2c,_0x1c0af1){const _0x3a8a11=_0x21648f;let {unitID:_0x25ebfb,type:_0x4b5310,blockID:_0x1372d6}=_0x1c0af1,_0x2e9a2a=this[_0x3a8a11(0x1ab)]()+'/'+_0x4b5310+_0x3a8a11(0x19c)+_0x25ebfb+_0x3a8a11(0x272)+_0x1372d6;return(await this[_0x3a8a11(0x3a7)][_0x3a8a11(0x224)](_0x2e9a2a))[_0x3a8a11(0x346)];}async['getDeserializedSheetBlock'](_0x486804,_0x28bc72){const _0x43ae95=_0x21648f;let {unitID:_0x4798bc,type:_0x49e792,blockID:_0x216f26}=_0x28bc72,_0x198b84=this['_getAPIPrefix']()+_0x43ae95(0x272)+_0x49e792+_0x43ae95(0x19c)+_0x4798bc+'/block/'+_0x216f26;return(await this[_0x43ae95(0x3a7)][_0x43ae95(0x224)](_0x198b84))['body'];}async[_0x21648f(0x1f7)](_0x415e40,_0xb1ed09){const _0x417d43=_0x21648f;let {unitID:_0x487705,type:_0x42886d,from:_0x176417,to:_0xbc9912}=_0xb1ed09,_0x568896=this['_getAPIPrefix']()+'/'+_0x42886d+_0x417d43(0x19c)+_0x487705+_0x417d43(0x163)+_0x176417+'&to='+_0xbc9912;return(await this[_0x417d43(0x3a7)]['get'](_0x568896))[_0x417d43(0x346)];}[_0x21648f(0x23c)](){const _0x5641fe=_0x21648f;var _0x5d249d;return(_0x5d249d=this[_0x5641fe(0x23e)][_0x5641fe(0x33e)](_0x5641fe(0x1af)))==null?this[_0x5641fe(0x1ab)]():_0x5d249d;}['_getAPIPrefix'](){const _0x163938=_0x21648f;var _0x27add4;let _0x3dbfa6=this['_configService'][_0x163938(0x33e)](_0x4b92ba);return(_0x27add4=_0x3dbfa6==null?void 0x0:_0x3dbfa6['snapshotServerUrl'])==null?_0x163938(0xc5):_0x27add4;}async['getResourcesRequest'](_0x3d6ff3,_0x8308a6){const _0x12e21a=_0x21648f;let _0x58bea3='/universer-api/snapshot/'+_0x8308a6[_0x12e21a(0x350)]+_0x12e21a(0x19c)+_0x8308a6['unitID']+'/resources';return(await this['_httpService'][_0x12e21a(0x224)](_0x58bea3,{'params':{'resourceId':JSON['stringify'](_0x8308a6[_0x12e21a(0x3e4)])}}))[_0x12e21a(0x346)];}['saveSnapshot'](){const _0x54433f=_0x21648f;throw Error(_0x54433f(0x36b));}[_0x21648f(0x2c9)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x21648f(0x1f0)](){const _0x3fb897=_0x21648f;throw Error(_0x3fb897(0x36b));}[_0x21648f(0x2e7)](){const _0x1844b6=_0x21648f;throw Error(_0x1844b6(0x36b));}[_0x21648f(0x3a5)](){const _0x156805=_0x21648f;throw Error(_0x156805(0x36b));}[_0x21648f(0x1b4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x238261=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x2ba)]),_0x273192(0x1,(0x0,_0x868841[_0x21648f(0x138)])(_0x8bc35f[_0x21648f(0x1a4)]))],_0x238261);let _0x42867b=class extends _0x868841[_0x21648f(0x1f3)]{constructor(_0x57d07b,_0x2e7805,_0x29f7b6,_0x5d887f,_0x3200c4){const _0x43ab4b=_0x21648f;super(_0x57d07b,_0x2e7805,_0x29f7b6),this[_0x43ab4b(0x376)]=_0x5d887f,this[_0x43ab4b(0x2fc)]=_0x3200c4;}[_0x21648f(0x3e8)](_0x7dcff3,_0x5ec8b0){const _0x6f215e=_0x21648f;let _0x4fd00f=this[_0x6f215e(0x151)](_0x7dcff3);if(_0x4fd00f)try{let _0x25ec28=this[_0x6f215e(0x1db)](_0x4fd00f,_0x5ec8b0);this[_0x6f215e(0x222)](_0x7dcff3,_0x25ec28);}catch(_0x42f640){this['_logService'][_0x6f215e(0x29e)]('[CollaborationUndoRedoService]',_0x42f640),this[_0x6f215e(0x2cb)](_0x7dcff3);}let _0x47243d=this[_0x6f215e(0x36c)](_0x7dcff3);if(_0x47243d)try{let _0x20cd88=this[_0x6f215e(0x1db)](_0x47243d,_0x5ec8b0);this[_0x6f215e(0x2b3)](_0x7dcff3,_0x20cd88);}catch(_0x3a00e7){this[_0x6f215e(0x2fc)][_0x6f215e(0x29e)](_0x3a00e7),this['_clearRedo'](_0x7dcff3);}}[_0x21648f(0x2cb)](_0x32863b){const _0x1e86a6=_0x21648f;let _0x209ee4=this['_getUndoStack'](_0x32863b);_0x209ee4&&(_0x209ee4[_0x1e86a6(0x207)]=0x0,this['_updateStatus']());}[_0x21648f(0xfe)](_0x1cfae5){const _0x25bbb8=_0x21648f;let _0x21d5bb=this[_0x25bbb8(0x36c)](_0x1cfae5);_0x21d5bb&&(_0x21d5bb['length']=0x0,this[_0x25bbb8(0x1d7)]());}[_0x21648f(0x222)](_0x2eb8a5,_0x5c03c0){const _0x40b514=_0x21648f;this[_0x40b514(0x3cd)][_0x40b514(0x213)](_0x2eb8a5,_0x5c03c0),this['_updateStatus']();}['_substituteRedoStack'](_0x3ec5c2,_0x584dda){const _0x660ae3=_0x21648f;this['_redoStacks']['set'](_0x3ec5c2,_0x584dda),this[_0x660ae3(0x1d7)]();}['_transformStack'](_0x964e27,_0x2c6a4e){const _0x272eb7=_0x21648f;let _0x3de360=[],_0x9b7121=_0x2c6a4e,_0x539d3d=_0x2c6a4e;for(let _0x878066=_0x964e27[_0x272eb7(0x207)]-0x1;_0x878066>=0x0;_0x878066--){let {unitID:_0x202ad6,undoMutations:_0x1d501c,redoMutations:_0x23cd42}=_0x964e27[_0x878066],_0x2b9577=this[_0x272eb7(0x376)][_0x272eb7(0x3e9)](_0x9b7121,_0x1d501c),_0x38c6f0=this[_0x272eb7(0x376)][_0x272eb7(0x3e9)](_0x539d3d,_0x23cd42);if((0x0,_0x4c2ece[_0x272eb7(0x3f9)])(_0x2b9577)||(0x0,_0x4c2ece['isTransformMutationsWithChangesetFailure'])(_0x38c6f0)){this[_0x272eb7(0x2fc)][_0x272eb7(0x29e)](_0x272eb7(0x220),_0x272eb7(0x395),_0x2b9577,_0x38c6f0);break;}_0x9b7121=_0x2b9577[_0x272eb7(0x3ae)],_0x539d3d=_0x38c6f0['c1Prime'],_0x3de360[_0x272eb7(0x327)]({'unitID':_0x202ad6,'undoMutations':_0x2b9577[_0x272eb7(0x188)],'redoMutations':_0x38c6f0[_0x272eb7(0x188)]});}return _0x3de360[_0x272eb7(0x38f)]();}};_0x42867b=_0x3e0941([_0x273192(0x0,_0x868841[_0x21648f(0x214)]),_0x273192(0x1,_0x868841[_0x21648f(0x2fd)]),_0x273192(0x2,_0x868841['IContextService']),_0x273192(0x3,_0x4c2ece['ITransformService']),_0x273192(0x4,_0x868841[_0x21648f(0x206)])],_0x42867b);let _0xc03cc9=class extends _0x868841[_0x21648f(0x197)]{constructor(_0x5cdcab=_0x361839,_0x2cbaf2,_0xb7c95b,_0x1eb90d){const _0x53be8c=_0x21648f;super(),this['_config']=_0x5cdcab,this[_0x53be8c(0x2fc)]=_0x2cbaf2,this[_0x53be8c(0x2d9)]=_0xb7c95b,this[_0x53be8c(0x23e)]=_0x1eb90d;let {..._0x5815e0}=(0x0,_0x868841['merge'])({},_0x361839,this['_config']);if(!_0x5815e0[_0x53be8c(0x389)])throw Error(_0x53be8c(0x32b));this[_0x53be8c(0x3fb)]=_0x5815e0,this[_0x53be8c(0x23e)][_0x53be8c(0xe8)](_0x4b92ba,_0x5815e0);}['onStarting'](){const _0x21c718=_0x21648f;this['_registerDependencies'](),this[_0x21c718(0x252)]();}[_0x21648f(0xe5)](){const _0x5229cb=_0x21648f;var _0x26a5e3,_0x3e8d8c;this['_injector'][_0x5229cb(0x215)](_0x868841[_0x5229cb(0x351)])&&this[_0x5229cb(0x2fc)][_0x5229cb(0x29e)](_0x5229cb(0x1d0),_0x5229cb(0x37c));let _0x517329=(0x0,_0x868841['mergeOverrideWithDependencies'])([[_0x868841[_0x5229cb(0x351)],{'useClass':_0x42867b}],[_0x2bd49e,{'useValue':_0x55fb30()}],[_0x4bf0aa],[_0x568427],[_0xd82d96],[_0x36e2b4],[_0x2f8f91],[_0x278d59],[_0x473d8e],[_0x55b02d],[_0x49a43c],[_0x4e1025,{'useClass':this[_0x5229cb(0x3fb)][_0x5229cb(0x389)]}],[_0x4c2ece[_0x5229cb(0x170)],{'useClass':_0x238261}],[_0x868841[_0x5229cb(0x218)],{'useClass':_0x37ea91}],[_0x868841[_0x5229cb(0x28b)],{'useClass':_0x4a2349}],[_0x3673e6,{'useClass':_0x1ba482}],[_0x868841['IMentionIOService'],{'useClass':_0x3f1171}],[_0x5ad10a],[_0x448220]],(_0x26a5e3=this[_0x5229cb(0x3fb)])==null?void 0x0:_0x26a5e3[_0x5229cb(0x367)]);if(!((_0x3e8d8c=this[_0x5229cb(0x3fb)])!=null&&_0x3e8d8c[_0x5229cb(0x3d8)])){let _0x4a5964=_0x517329['findIndex'](([_0x484fe8])=>_0x484fe8===_0x3857c0);_0x4a5964!==-0x1&&_0x517329[_0x5229cb(0x109)](_0x4a5964,0x1);}(0x0,_0x868841[_0x5229cb(0x354)])(this['_injector'],_0x517329);}[_0x21648f(0x252)](){const _0x2e4b6a=_0x21648f;var _0xac3cee,_0x4f5906;if(this['_injector']['get'](_0x8bc35f['HTTPService'])[_0x2e4b6a(0x2a0)]({'priority':0x14,'interceptor':(0x0,_0x8bc35f[_0x2e4b6a(0x2f1)])({'maxParallel':0x6})}),!((_0xac3cee=this[_0x2e4b6a(0x3fb)])!=null&&_0xac3cee[_0x2e4b6a(0x22c)])){var _0x1c2e62;(_0x1c2e62=this['_injector'][_0x2e4b6a(0x224)](_0x47d8b0,_0x868841[_0x2e4b6a(0x37d)]['OPTIONAL']))==null||_0x1c2e62[_0x2e4b6a(0x381)]();}(_0x4f5906=this[_0x2e4b6a(0x3fb)])!=null&&_0x4f5906[_0x2e4b6a(0x19a)]&&(0x0,_0x868841[_0x2e4b6a(0x121)])(this[_0x2e4b6a(0x2d9)],[[_0x36e2b4]]),(0x0,_0x868841['touchDependencies'])(this[_0x2e4b6a(0x2d9)],[[_0x2f8f91],[_0x5ad10a],[_0x473d8e]]);}};_0x6d65c2(_0xc03cc9,_0x21648f(0x1dd),_0x21648f(0x1c1)),_0x6d65c2(_0xc03cc9,'packageName',_0x32f204),_0x6d65c2(_0xc03cc9,'version',_0x3be6e8),_0xc03cc9=_0x3e0941([(0x0,_0x868841[_0x21648f(0x283)])(_0xae8d13[_0x21648f(0x1cf)],_0x4c2ece[_0x21648f(0x22d)],_0x8bc35f[_0x21648f(0x3c5)]),_0x273192(0x1,_0x868841[_0x21648f(0x206)]),_0x273192(0x2,(0x0,_0x868841[_0x21648f(0x138)])(_0x868841[_0x21648f(0x404)])),_0x273192(0x3,_0x868841['IConfigService'])],_0xc03cc9),_0x15bcea['AttachmentSourceType']=_0x5ec8e0,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x1b9),{'enumerable':!0x0,'get':function(){return _0x37ea91;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x15c),{'enumerable':!0x0,'get':function(){return _0x403ace;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x17c),{'enumerable':!0x0,'get':function(){return _0x4c911a;}}),Object['defineProperty'](_0x15bcea,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x552cde;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x39b),{'enumerable':!0x0,'get':function(){return _0x9a1332;}}),_0x15bcea['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x4b92ba,Object[_0x21648f(0x131)](_0x15bcea,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x1ba482;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x114),{'enumerable':!0x0,'get':function(){return _0x5ad10a;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x117),{'enumerable':!0x0,'get':function(){return _0x598b2a;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x10d),{'enumerable':!0x0,'get':function(){return _0x4a2349;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x3ea),{'enumerable':!0x0,'get':function(){return _0x4d2902;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x30d),{'enumerable':!0x0,'get':function(){return _0x4bf0aa;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x358),{'enumerable':!0x0,'get':function(){return _0x594520;}}),_0x15bcea[_0x21648f(0x2ad)]=_0x5c8834,_0x15bcea[_0x21648f(0x1fa)]=_0x1ca442,_0x15bcea[_0x21648f(0x16a)]=_0x55b02d,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x3f8),{'enumerable':!0x0,'get':function(){return _0x42867b;}}),_0x15bcea['CommentService']=_0x278d59,Object['defineProperty'](_0x15bcea,_0x21648f(0x2b8),{'enumerable':!0x0,'get':function(){return _0x391b2a;}}),_0x15bcea[_0x21648f(0x300)]=_0x3838c0,_0x15bcea[_0x21648f(0x2b2)]=_0x21648f(0x38c),_0x15bcea[_0x21648f(0x240)]=_0x21648f(0x387),Object['defineProperty'](_0x15bcea,_0x21648f(0x1d4),{'enumerable':!0x0,'get':function(){return _0x49a43c;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x1e6),{'enumerable':!0x0,'get':function(){return _0x148d55;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x3d0),{'enumerable':!0x0,'get':function(){return _0x2ef93b;}}),_0x15bcea['HEARTBEAT_INTERVAL_KEY']=_0x21648f(0x1ef),_0x15bcea[_0x21648f(0x312)]='HEARTBEAT_TIMEOUT',_0x15bcea[_0x21648f(0x116)]=_0x3673e6,_0x15bcea[_0x21648f(0x173)]=_0x2bd49e,_0x15bcea[_0x21648f(0x3b2)]=_0x4e1025,_0x15bcea['ILocalCacheService']=_0x47d8b0,_0x15bcea[_0x21648f(0xd9)]=_0x161fca,_0x15bcea[_0x21648f(0x30e)]=_0x3857c0,_0x15bcea[_0x21648f(0x34f)]=0x3e8,_0x15bcea['LOCAL_CACHE_INTERVAL_KEY']=_0x21648f(0x34f),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x119),{'enumerable':!0x0,'get':function(){return _0x568427;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x40b),{'enumerable':!0x0,'get':function(){return _0x3f1171;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x2fb),{'enumerable':!0x0,'get':function(){return _0x519d9e;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x194),{'enumerable':!0x0,'get':function(){return _0x5f0bc1;}}),_0x15bcea[_0x21648f(0x246)]=_0x21648f(0x3df),_0x15bcea[_0x21648f(0x198)]=_0x21648f(0x2d2),_0x15bcea['SessionStatus']=_0x138ed3,Object['defineProperty'](_0x15bcea,_0x21648f(0x1e9),{'enumerable':!0x0,'get':function(){return _0x4b3c61;}}),Object['defineProperty'](_0x15bcea,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return _0xd82d96;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x127),{'enumerable':!0x0,'get':function(){return _0x52744e;}}),Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0x2c0),{'enumerable':!0x0,'get':function(){return _0x238261;}}),Object['defineProperty'](_0x15bcea,_0x21648f(0x401),{'enumerable':!0x0,'get':function(){return _0x1e7b48;}}),_0x15bcea['UnitStatus']=_0x294d78,Object[_0x21648f(0x131)](_0x15bcea,_0x21648f(0xe4),{'enumerable':!0x0,'get':function(){return _0xc03cc9;}}),_0x15bcea[_0x21648f(0xf8)]=_0x55fb30,_0x15bcea['deserializeToCombResponse']=_0x3b8398,_0x15bcea[_0x21648f(0x2de)]=_0x32415a,_0x15bcea[_0x21648f(0x191)]=_0x43de64;}));function _0x1845(){const _0x48f206=['replace','JOINING','Failed\x20to\x20update\x20permission\x20point','updatePermissionPoint','1.0.0-alpha.5','OFFLINE','onTransformSelections','resolveWithBasePath','getConfig','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','asObservable','status','_handleRemoteChangesets','CollaborationEvent','fill','MentionType','body','onTransformRemoteChangesetByStateCache','Rectangle','/object/','_telemetryService','catch','loadDoc','_shouldReportTelemetry','[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.','LOCAL_CACHE_INTERVAL','type','IUndoRedoService','forEach','string','registerDependencies','target','headers','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CollaborationSocketService','awaiting','8368368GzFwPU','[PendingState]:\x20received\x20rejection.','listCollaborators','_onConnectionOpen','objectType','@univerjs/core','WorkbookEditablePermission','_onRemoteRejected','size','SOCKET_FAILED_RETRY','RichTextEditingMutation','_lockTransition','_getAPIPrefixPath','override','\x20to\x20','collaboration-client.config','objectActions','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getRedoStack','_startTelemetryCollaborationNewChangeset','collaboration-client.local-cache-service','href','_doCreateSocket','stopTime','getMemberID','number','takeUntil','_acknowledgeAwaiting','_transformService','decorate','getInterceptPoints','backupOfflineData','change$','BASE64','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','Quantity','_clearRetryConnectingTimer','_userManagerService','setCurrentUser','disableLocalCache','merge','parseChangesetToProtocol','IDLE','_sheetTransformSelectionsService','CLOSE_ROOM','/universer-api/user/session-ticket','add','socketService','@univerjs-pro/license','byteOffset','/universer-api/uniscript','_tryEnsureSocket','loadOfflineData','reverse','_getCtorByUniverInstanceType','_unitInfo$','_state','_permissionService','onRemoteRej','transformStack\x20failed!','status$','_event$','UniverProCollaboration','/object','ImageUploadStatusType','BoardCollaborationEntity','debug','waitForRoom$','@univerjs/protocol','synced','cfgEnableObjInherit','loadUnitOfRevision','Module','candidateSocket','isTransformChangesetsSuccess','copyFileMeta','createCollaborator','_httpService','CommandType','_networkConditionService','nonce','find','resend','encodeURIComponent','c1Prime','isArray','editing\x20status\x20changed\x20to','onLocalMutation','ICollaborationSocketService','fetchThroughInterceptors','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','toggleOffline','subscribe','UniverProCollaborationClient','ERROR_IMAGE_TYPE','unitId','NOT_COLLAB','5IUgWsd','3163676IPtqTF','parseProtocolChangeset','concatMap','localUnitId','_checkMissing','startsWith','CHANGESET_ACK','_pendingMutations','csRejEvent','UniverNetworkPlugin','create','FileId','JOIN_ROOM_PERMISSION_DENIED','_socketChannels','unitId\x20is\x20not\x20found','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','onCommentUpdate','_undoStacks','DEFAULT_FILE_NAME','getImageSourceCache','FetchingMissState','_socketService','unit-cache-','_incrementRevisionNumber','_initCloseConn','getActiveSheet','CombCmd','session.room-permission-denied','enableSingleActiveInstanceLock','createInstance','close','endpoint','awaiting_with_pending','_updateState','UUID','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','ISocketService','avatar','missingChangesets','_resendTimeout','resourceIDs','title','isCompositionEnd','isSafeInteger','transformUndoRedo','transformMutationsWithChangeset','CollaborationSession','trim','save\x20fail\x20reason\x20is\x20','HELLO','mapDocumentTypeToUniverInstanceType','iterator','transformSelections','localCacheService','deleteCollaborator','_queuedRemoteChangesets','MSG_FOR_ERROR','complete','_onCombEvent','COLLABORATION_ENDPOINT_INVALID','CollaborativeUndoRedoService','isTransformMutationsWithChangesetFailure','[SyncedState]:\x20received\x20acknowledgement.','_config','toRemote','fromCharCode','toPrimitive','_handlerCallback','_transformIMECache','SyncedState','fetch_missing','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','Injector','_applyRemoteChangeset','[CollaborationSessionService]','append','univer-pro.collaboration-client-socket-service','Subject','_resolveSessionIdentity','MentionIoHttpService','_commentService','textRanges','updatePermissionObjEvent','readAsDataURL','subUnitId','workbook','buffer','accept','name','_maxTotalRetryTimeout','getUnitOnRev','list','type=','transformChangesets','setWaitCount','socket\x20close','getCurrentSelections','_entityInit$','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','encrypt','hasOwnProperty','/universer-api/snapshot','COMPRESS_MUTATION_APPLY','onMissedChangesetFetched','duration','onRemoteAck','socketReady','GLOBAL_ROOMS_CNT_EXCEEDS','state','subject','file','revision','reconnect','disposeWithMe','@univerjs/drawing','_startCollaboration','_initUnitPermissionChange','_initMergeInterceptor','leaveEvent','FETCH_MISS','fromCollab','INetworkConditionService','_revisionService','min','getCollabEntity','next','[CollaborationEntity]','CONFLICT','delete','Workbook','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_change$','UniverCollaborationClientPlugin','_registerDependencies','incrementRevOfUnit','PERMISSION_DENIED','setConfig','infoRsp','session.room-not-exists','/universer-api/stream/file/upload','key','indexOf','getOwnPropertyDescriptor','ERROR_IMAGE','getRandomValues','JOIN','dispose$','_updateLocalCache','_schedule','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','ErrorCode','_sender','createUniverCollaborationAdapter','LIVESHARE_REQUEST_HOST','_getUploadFileURL','_onRecvEvent','state$','putCollaborators','_clearRedo','unitID','rxjs/operators','getUnitType','stringify','resolve','_snapshotServerService','_exhaustRemoteChangesetQueue','liveShareNewHost','_status$','UnitEmbedded','splice','?size=','_createInitialStateImpl','/collaborator','CollaborationImageIoService','updateMember','AWAITING_WITH_PENDING','columnGroups','OTHER_CLIENTS_EDITING','RxDisposable','createSocket','CollaborationController','closeSession','IAttachmentIoService','CollaborationEntity','socket$','MemberService','filter','toString','blockRanges','onSendChangeset','_eventService','getCurrentUser','update','touchDependencies','listRoles','getImage','collabSubmitChangesetUrl','_createSession','_cfgEnableObjInherit','SlideCollaborationEntity','getUnitId','slice','_acknowledgeAwaitingIfReady','_clearScheduledTask','action','symbol','_isEchoedAwaitingChangeset','_onRemoteRetry','actions','defineProperty','_memberService','getCurrentRevOfUnit',',\x20got\x20','_replaceFileID','toLocal','roles','Inject','_init','clear','__splitChunk__','shouldCloseConn','CHANGESET_REJ','amd','pauseCollaboration','getAllMembers','sessionStatus','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_entities','result','onRemoteRetry','USERS_ENTER','_sessionStatus$','capture','expected\x20Uint8Array','_docStateChangeManagerService','changesets','memberID','getTypeOfUnitAdded$','retryConnectingInterval','firstValueFrom','\x20-\x20','_getUndoStack','_disableEditing','enableCollaboration','objects','_commandService','_getConfig','unsubscribe','_imageSourceCache','INGEST','_getSocketChannel','getGlobalObject','AwaitingState','/role','FAIL','RevisionService','resolveUnit','range','getSheetId','/fetchmissing?from=','_syncEditingCollabCursor','\x20in\x20_schedule.','getTypeOfUnitDisposed$','_socketMessageSubscription','LEAVE','_replayCachedMutations','CollaborationUIEventService','textEncoder','@univerjs/docs','2366526ZaUvld','EnsureSlideMasterPageMutation','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','ISnapshotServerService','requestParams','unitType','ICollaborationClientAdapterService','NEW_CHANGESETS','fetchMiss','RECV','_collaborationTimeoutTimer','_localeService','_snapshotService','CmdRspCode','changeset','AwaitingWithPendingState','\x20of\x20length\x20','_undoRedoService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','prototype','univer-pro.collaboration-client.single-active-unit-service','send','_getCurrentRevision','delay','userID','socketMessageSubscription','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','m2Prime','_getDownloadEndpointURL','init','_state$','_transformRemoteChangesetByStateCache','[DataLoaderService]','post','_unlockTransition','sequenceExecute','serializeCombRequest','nonceLength','BehaviorSubject','PendingState','_createSocket','_initRequestHeader','Plugin','RETRY_CONNECTING_MAX_COUNT_KEY','_throwTelemetryCollaborationNewChangeset','enableAuthServer','getUnitStatus$','/unit/','varSizeNonce','removeMember','onTransformRemoteChangesetByIMECache','LIVESHARE_NEW_HOST','from','interceptor','UPDATE_CURSOR','HTTPService','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_singleActiveUnitService','_createHandler','DocStateChangeManagerService','COMMENT_UPDATE','OTHER_CLIENT_EDITING','_getAPIPrefix','permissionRejEvent','_HTTPService','?url=','SNAPSHOT_URL_KEY','getMember','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_socket','/universer-api/authz','getLatestCsReqIdBySid','sendHeartbeatTimer','AddSlidePageMutation','LIVESHARE_OPERATION','_clearHeartbeatTimer','AuthzIoHttpService','onStateChange','mutations','_identity','&assign=','authzUrl','SOCKET_FAILED','allowed','UNIVER_COLLABORATION_CLIENT_PLUGIN','now','BYTES_PER_ELEMENT','text-x','conflict','MergeInterceptorFactory','session.room-cnt-exceeds','/-/object/list','origin','_awaitingChangeset','executeCommand','_members$','UNISCRIPT_RUN','sessionStatus$','UniverLicensePlugin','[UniverCollaborationClientPlugin]','entries','_onRemoteACK','loadBoard','DataLoaderService','onTransformIME','HEARTBEAT','_updateStatus','baseRev','eventID','sendChangesetTimeout','_transformStack','c2Prime','pluginName','_clearCollaborationTimeoutTimer','_sendHeartbeat','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','unitLoaded$','_toggleOnline','_resendWithTimeout','{fileID}','SnapshotService','DocCollaborationEntity','operators','_waitForHeartbeatResponse','SheetCollaborationEntity','_waitCount','UniverCore','focused$','awaitingChangeset','ImageSourceType','HEARTBEAT_INTERVAL','saveSheetBlock','_transformAndApplyRemoteChangeset','pending','LocalUndoRedoService','editingUnit','attachment','_createInitialState','fetchMissingChangesets','updateCollaborator','_clearLocalCache','CollaborationUIEventId','_telemetryInfo','isInternalEditorID','_transformSelections','SHOULD_CLOSE_CONN','reqId','_onMessage','UniverDrawing','@univerjs-pro/slides','emitEvent','_sessionChannels','_getSendChangesetTimeout','ILogService','length','SUBMIT_CHANGESET_TIMEOUT','getUnit','open$','retryConnectingTimer','unknown','commentUpdate$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','appendMutation','saveAttachment','_onLocalMutation','_scheduleCompleteTimestamp','set','IUniverInstanceService','has','UniverProSlides','onMutationExecutedForCollab','IAuthzIoService','event$','_adapter','startTime','PERSON','downloadEndpointUrl','endsWith','getTime','[CollaborationUndoRedoService]','_onRemoteChangeset','_substituteUndoStack','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','get','collaboration_new_changeset','_collaborationSessionService','maxSize',',\x20got:\x20','connection\x20error','_onConnectionFailed','_commentUpdate$','enableOfflineEditing','UniverCollaborationPlugin','telemetry\x20info\x20is\x20not\x20initialized','\x0aAfter:\x20','entityInit$','_onUserLeave','COMPRESS_MUTATION_SEND','toDisposable','onlyLocal','ReplaySubject','ITransformService','originalMeta','Optional','__Key__','[CollaborationSessionService]:\x20socket\x20error','UNIVER_SHEET','getSnapshotAPIPath','\x0aCurrent:\x20','_configService','getCollabEntity$','DEFAULT_WS_SESSION_TICKET_URL','location','output','retryCount','&source=','unitInfo$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','byteLength','LIVESHARE_FETCH_OPERATIONS','timeoutTimer','/rev/','session','_submitChangeset','objectID','offline','patch','_initDependencies','_sendingTimer','SheetPermissionInitController','uniscriptRunEvent','JOIN_ROOM_FAILED','call','18bhAPGv','function','rxjs','Disposable','_transformUndoredo','onMissingChangesets','routeKey','reduce','UniverProLicense','upload','309472USnFSa','getSheetBlock','_pendingSessions','dispose','b64DecodeUnicode','loginUrlKey','compose','isView','PSEUDO_FETCH_MISSING_RESULT','cmd','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','setCfgEnableObjInherit','map','submit\x20changeset\x20error!','[OfflineState]:\x20received\x20rejection.','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/block/','csAckEvent','/universer-api/file/{fileID}/sign-url','CompressMutationService','HEARTBEAT_TIMEOUT','collabWebSocketUrl','_hasSessionsForEndpoint','AAD','USERS_LEAVE','961059AoDdts','JOIN_ROOM_NOT_EXISTS','[CollaborationState]:\x20apply\x20error!','every','localeService','commentUpdateEvent','onload','_clearTimeoutTimer','DependentOn','univer-pro.collaboration-client-adapter-service','_unitLoaded$','SYNCED','_upload','_sessions','_roomCreated$','UNIVER_BOARD','IImageIoService','_collaborationPaused','_decreaseWaiting','encode','_getLoginPath','LocaleService','loadUnit','_roomMembers','_tryReconnect','apply','[OfflineState]:\x20received\x20changeset.','_executeRemoteChangeset','UserManagerService','[SyncedState]:\x20received\x20rejection.','floor','_transformRemoteChangesetByIMECache','data','Error\x20on\x20receiving\x20event','toggleOnline','error','Wrong\x20sbox\x20length','registerHTTPInterceptor','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','uploadFileServerUrl','SUBMIT_CHANGESET','requireSession','invalid\x20output,\x20must\x20be\x20aligned','object','_transformStateCache','collaborators','UNIVER_BASE','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_compressMutationService','URL','CollaborationStatus','onRemoteChangeset','fetching\x20missing\x20changesets\x20from\x20','session.join-failed','UNIVER_SLIDE','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_substituteRedoStack','params','code','setShowComponents','_instanceService','ConflictState','_onConflict','IConfigService','EmptyMutationInfo','FileSource','_collaborationUIEventService','CHANGESET_SHOULD_RETRY','_showConflictNotification','SnapshotServerOverHTTPService','batchAllowed','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','liveShareOperation','822518ONdhVn','ONLINE','string\x20expected','_fetchMissChangesets','_localCacheService','updateSnapshot','getRoom','_clearUndo','RemoveSlidePageMutation','_rescheduleHeartbeat','LIVESHARE_TERMINATE','_joinRoom','_changesetReqId','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','RETRY_CONNECTING_MAX_COUNT','reject','@univerjs/network','UniverNetwork','sid','values','NO_OTHER_CLIENTS_EDITING','_injector','_removeRoom','generateRandomId','_members','_onOffline','getLocalCacheKey','aes/pkcs7:\x20wrong\x20padding','onTransformState','then','take','getFocusedUnit','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_emitMembers','_changesetSessionId','saveChangeset','ws://127.0.0.1:8000/universer-api/comb/connect','method','UPDATE_PERMISSION_OBJ','getValue','_collabSessionService','endpointKey','unit','close$','updateOfflineData','ThresholdInterceptorFactory','_remoteChangesetQueue','initWorkbookPermissionChange','FETCH_MISSING','/-/object/-/batch_allowed','onSyncEditingCollabCursor','_acknowledgedAwaitingRevision','UniverInstanceType','MUTATION','isTransformMutationsWithChangesetSuccess','OfflineState','_logService','ICommandService','put','_resendTimer','DEFAULT_COLLAB_WEB_SOCKET_URL','_isPermissionRej','@univerjs/sheets','_listenToNetworkCondition','_stopTelemetryCollaborationNewChangeset','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_handler','IPermissionService','PENDING','10241448GDmmVQ','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','hostname','CollaborationSessionService','ISingleActiveUnitService','signUrlServerUrl','JSONX','_toggleOffline','HEARTBEAT_TIMEOUT_KEY','/universer-api/comb','subarray','src','ERROR_EXCEED_SIZE','MoveSlidePageMutation','SUCCUSS','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','responseType','addHandlerCallback','selections','error$','univer-pro.collaboration-client.network-condition.service','pipe','_type','decrypt','_transitionLocked','getUploadOptions','POST','loadSheet','push','_onUserJoin','some','crypto.getRandomValues\x20must\x20be\x20defined','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','message$','failed\x20to\x20apply\x20missed\x20changesets!','constructor','_univerInstanceService','createIdentifier','saveImage','UNIVER_DOC','refreshPermission','tagLength','includes'];_0x1845=function(){return _0x48f206;};return _0x1845();}
1
+ function _0x1420(_0x4f9d18,_0x344777){_0x4f9d18=_0x4f9d18-0xca;const _0x59a06e=_0x59a0();let _0x1420e1=_0x59a06e[_0x4f9d18];return _0x1420e1;}function _0x59a0(){const _0x3f6eee=['_onRemoteRejected','_rescheduleHeartbeat','resolve','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','push','objectType','RETRY_CONNECTING_MAX_COUNT','_onRecvEvent','SessionStatus','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','state','CollaborationUIEventId','UNIVER_BASE','getDeserializedSheetBlock','entries','unknown','updateCollaborator','LIVESHARE_TERMINATE','_getCurrentRevision','isCompositionEnd','routeKey','setConfig','/fetchmissing?from=','loadSlide','_onFetchMissResult','unitId','getValue','getCurrentRevOfUnit','URL','snapshot','connection\x20error','getUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20-\x20','_socket','updateOfflineData','_onConnectionOpen','cmd','downloadEndpointUrl','complete','values','UnitEmbedded','b64DecodeUnicode','BoardCollaborationEntity','update','rxjs','getUploadOptions','session.room-permission-denied','USERS_LEAVE','range','UNIVER_SLIDE','COMMENT_UPDATE','number\x20expected,\x20got\x20','_getUploadFileURL','JOIN_ROOM_FAILED','Error\x20on\x20receiving\x20event','ERROR_IMAGE','CONFLICT','pending','_memberService','_onCombEvent','LocalUndoRedoService','_HTTPService','readyForCollab','\x0aAfter:\x20','findIndex','fromCharCode','RECV','_schedule','unitInfo$','People','varSizeNonce','toStringTag','IImageIoService','getInterceptPoints','CLOSE_ROOM','_unlockTransition','nonceLength','_event$','DocStateChangeManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','GLOBAL_ROOMS_CNT_EXCEEDS','_sessions','AttachmentSourceType','getSnapshotAPIPath','SOCKET_FAILED_RETRY','SYNCED','mutations','uuidv4','MergeInterceptorFactory','cfgEnableObjInherit','init','_members$','type=','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getUnitOnRev','_resendWithTimeout','_collaborationSessionService','CHANGESET_ACK','unitType','byteOffset','resend','tagLength','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','AuthzIoHttpService','ILogService','_change$','_onRemoteRetry','_permissionService','CollaborationSessionService','Plugin','_waitCount','CollaborationSession','removeMember','toLocal','offline','_isEchoedAwaitingChangeset','@univerjs/sheets','_univerInstanceService','_onLocalMutation','CompressMutationService','@univerjs/core','patch','LIVESHARE_REQUEST_HOST','OFFLINE','onTransformIME','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','?size=','ISnapshotServerService','startTime','LIVESHARE_OPERATION','CommentService','_roomCreated$','message$','_commandService','subscribe','/rev/','PENDING','NEW_CHANGESETS','createInstance','_roomMembers','map','/allowed','next','status','getSheetBlock','@univerjs-pro/license','__splitChunk__','socketService','_compressMutationService','rxjs/operators','\x20in\x20_schedule.','prototype','/-/object/list','INetworkConditionService','snapshotServerUrl','OfflineState','COLLABORATION_ENDPOINT_INVALID','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SUCCUSS','ErrorCode','\x20of\x20length\x20','changesets','IUndoRedoService','CHANGESET_REJ','_onOffline','collaMsg','[CollaborationSession]','onTransformSelections','m2Prime','_upload','_scheduleCompleteTimestamp','parseProtocolChangeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-pro.collaboration-client.network-condition.service','JOIN_ROOM_PERMISSION_DENIED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','docStateChange$','_getLoginPath','RETRY_CONNECTING_MAX_COUNT_KEY','DisposableCollection','_redoStacks','putCollaborators','_collaborationPaused','getActiveSheet','listRoles','98870IOqqfH','members$','&assign=','_tryReconnect','list','MSG_FOR_ERROR','Inject','collaboration-client.local-cache-service','onCommentUpdate','incrementRevOfUnit','append','_entities','status$','IPermissionService','base-ui.attachment-io.service','[OfflineState]:\x20received\x20acknowledgement.','transformStack\x20failed!','collabWebSocketUrl','getFocusedUnit','PERSON','csShouldRetryEvent','getTypeOfUnitAdded$','disposeWithMe','_httpService','CmdRspCode','_pendingMutations','state$','name','MemberService','packageName','HEARTBEAT','[FetchMissState]','endsWith','ERROR_EXCEED_SIZE','copyFileMeta','maxSize','stringify','_submitChangeset','MentionIoHttpService','save\x20fail\x20reason\x20is\x20','@univerjs/drawing','splice','CollaborationEvent','action','liveShareNewHost','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_clearUndo','_clearRedo','getUnitId','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','online$','getMember','_updateState','/new_changes','EnsureSlideMasterPageMutation','ImageUploadStatusType','sendHeartbeatTimer','createCollaborator','LIVESHARE_NEW_HOST','UniverInstanceType','function','reconnect','isInternalEditorID','Injector','data','Quantity','UUID','generateRandomId','some','members','merge','HTTPRequest','42wgzfkO','readAsDataURL','loadDoc','HELLO','[PendingState]:\x20received\x20rejection.','isTransformChangesetsSuccess','_syncEditingCollabCursor','requireSession','_createHandler','invalid\x20output,\x20must\x20be\x20aligned','_registerDependencies','floor','length','NO_OTHER_CLIENTS_EDITING','SnapshotService','debug','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getUnitType','ILocalCacheService','fromCollab','UNIVER_BOARD','_getAPIPrefix','requestParams','onRemoteAck','isTransformMutationsWithChangesetSuccess','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getRoom','SyncedState','[DataLoaderService]','@univerjs/protocol','getCurrentSelections','_shouldReportTelemetry','registerHTTPInterceptor','sort','symbol','fetchMiss','DataLoaderService','_state$','UniverCollaborationClientPlugin','url','deepClone','_getSocketChannel','HEARTBEAT_INTERVAL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','responseType','takeUntil','FileId','LocaleService','CollaborationImageIoService','onlyLocal','not_collab','_getAPIPrefixPath','buffer','HEARTBEAT_TIMEOUT','error$','pauseCollaboration','revision','_handleRemoteChangesets','_onConnectionFailed','_decreaseWaiting','joinEvent','endpointKey','nonce','_init','onRemoteRej','_startTelemetryCollaborationNewChangeset','_collaborationTimeoutTimer','includes','getTime','RxDisposable','hasOwnProperty','set','onRemoteChangeset','_transformRemoteChangesetByStateCache','_disableEditing','delay','batchAllowed','params','createIdentifier','_sendingTimer','has','1.0.0-alpha.6','UniverProCollaboration','_lockTransition','getDrawingImageAllowSize','updateSnapshot','_revisionService','_sessionChannels','LOCAL_CACHE_INTERVAL_KEY','subject','subUnitId','ISocketService','onSyncEditingCollabCursor','awaiting','HEARTBEAT_INTERVAL_KEY','string\x20expected','_snapshotService','objects','sheets','Failed\x20to\x20update\x20permission\x20point','OTHER_CLIENT_EDITING','crypto.getRandomValues\x20must\x20be\x20defined','_transformSelections','number','mergeOverrideWithDependencies','saveAttachment','getUnitStatus$','_collaborationUIEventService','COMPRESS_MUTATION_SEND','isSafeInteger','fetch_missing','UniverNetwork','pipe','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getResourcesRequest','enableAuthServer','CHANGESET_SHOULD_RETRY','setWaitCount','columnGroups','_applyRemoteChangeset','_transformRemoteChangesetByIMECache','setCfgEnableObjInherit','encodeURIComponent','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','DEFAULT_COLLAB_WEB_SOCKET_URL','setCurrentUser','UPDATE_PERMISSION_OBJ','filter','univer-pro.collaboration-client-adapter-service','result','CollaborationSocketService','createUniverCollaborationAdapter','reject','c2Prime','transformUndoRedo','_unitLoaded$','IAttachmentIoService','unsubscribe','post','userID','_handler','_onUserLeave','permissionRejEvent','Module','[SyncedState]:\x20received\x20rejection.','toString','textRanges','changeset','_maxTotalRetryTimeout','_transformAndApplyRemoteChangeset','/-/object/-/batch_allowed','session.room-full','missingChangesets','/object','ImageSourceType','_handlerCallback','univer-pro.collaboration-client.single-active-unit-service','telemetry\x20info\x20is\x20not\x20initialized','compose','_transformService','slice','add','getCollabEntity$','_initMergeInterceptor','getCollabEntity','every','_config','_telemetryInfo','onload','_toggleOffline','_adapter','/universer-api/file/{fileID}/sign-url','close','candidateSocket','_initUnitPermissionChange','SUBMIT_CHANGESET','socket\x20close','UniverNetworkPlugin','socketReady','CollaborationUIEventService','selections','_executeRemoteChangeset','SheetsSelectionsService','Wrong\x20sbox\x20length','_socketMessageSubscription','PERMISSION_REJ','ISingleActiveUnitService','collaboratorID','send','_sendHeartbeat','_checkMissing','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/resources','retryConnectingTimer','_cfgEnableObjInherit','_updateStatus','_exhaustRemoteChangesetQueue','isPermissionRej','_createSocket','onMutationExecutedForCollab','[PendingState]:\x20received\x20acknowledgement.','collaboration-client.config','Rectangle','transformMutationsWithChangeset','timeoutTimer','collabSubmitChangesetUrl','location','session.room-cnt-exceeds','CollaborationStatus','_socketChannels','UniverProtocol','override','interceptor','file','CombCmd','SheetCollaborationEntity','_sheetTransformSelectionsService','COMPRESS_MUTATION_APPLY','_localCacheService','_transformStack','dispose$','getSheetId','awaiting_with_pending','executeCommand','IConfigService','getConfig','unit','conflict','SetSelectionsOperation','upload','retryCount','_joinRoom','DEFAULT_WS_SESSION_TICKET_URL','CollaborationEntity','_acknowledgedAwaitingRevision','collaborators','serializeCombRequest','_listenToNetworkCondition','isView','decrypt','joinRsp','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_logService','_tryEnsureSocket','origin','eventID','ThresholdInterceptorFactory','@univerjs/docs','_fetchMissChangesets','updatePermissionPoint','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','memberID','_createSession','getLocalCacheKey','get','workbook','touchDependencies','SNAPSHOT_URL_KEY','4553464ClJtLJ','_hasSessionsForEndpoint','UniverProLicense','_getSignURL','_state','_throwTelemetryCollaborationNewChangeset','collaboration_new_changeset','actions','_showConflictNotification','_removeRoom','_clearLocalCache','_onMessage','_identity','[PendingState]:\x20unhandled\x20univer\x20type:\x20','text-x','_commentService','authzUrl','IDLE','take','_onRemoteACK','tables','_undoRedoService','roles','awaitingChangeset','MentionType','reduce','_getDownloadEndpointURL','attachment','_incrementRevisionNumber','_substituteRedoStack','ITransformService','trim','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','resolveUnit','disablePadding','1056627rMVwQP','_pendingSessions','_replaceFileID','HEARTBEAT_TIMEOUT_KEY','_remoteChangesetQueue','_resolveSessionIdentity','ONLINE','liveShareOperation','getGlobalObject','_substituteUndoStack','JOINING','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_sender','AWAITING_WITH_PENDING','hostname','roomInfos','UniverProCollaborationClient','_getRedoStack','[CollaborationSessionService]','_clearRetryConnectingTimer','constructor','JOIN','_resendTimeout','operators','WorkbookEditablePermission','_createInitialStateImpl','session','_getSendChangesetTimeout','LIVESHARE_FETCH_OPERATIONS','objectID','_members','@univerjs-pro/slides','AwaitingState','SUBMIT_CHANGESET_TIMEOUT','size','_awaitingChangeset','emitEvent','method','createSocket','create','code','put','_initDependencies','_localeService','RevisionService','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','_transformIMECache','waitForRoom$','find','listCollaborators','fetchMissingChangesets','UniverDocs','_commentUpdate$','byteLength','RichTextEditingMutation','/object/','_transformStateCache','reqId','Univer','session.join-failed','OPTIONAL','transformChangesets','UniverDrawing','/universer-api/stream/file/upload','reverse','[SyncedState]:\x20received\x20acknowledgement.','target','_imageSourceCache','length=','appendMutation','toDisposable','_initCloseConn','from','onRemoteRetry','iterator','getCurrentUser','_startCollaboration','decorate','CommandType','FAIL','_sessionStatus$','amd','_waitForHeartbeatResponse','version','_configService','toggleOffline','getImageSourceCache','enableSingleActiveInstanceLock','mapDocumentTypeToUniverInstanceType','isArray','SheetTransformSelectionsService','title','closeSession','JSONX','refreshPermission','Optional','24958UhKPxg','IUniverInstanceService','toPrimitive','[CollaborationEntity]','IAuthzIoService','UNIVER_SHEET','@univerjs/network','{fileID}','localCacheService','UnitStatus',',\x20got\x20','headers','/role','/collaborator','3508176xkHzbq','UNIVER_DOC','onSendChangeset','SOCKET_FAILED','PERMISSION_DENIED','/universer-api/snapshot','_status$','clear','crypto','min','DRAWING_IMAGE_ALLOW_IMAGE_LIST','onTransformState','2601ODSbSD','resourceIDs','baseRev','_isPermissionRej','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','parseChangesetToProtocol','sequenceExecute','unitId\x20is\x20not\x20found','Subject','UPDATE_CURSOR','encrypt','RemoveSlidePageMutation','call','BehaviorSubject','ICommandService','collaboration-client.auth.needGotoLoginAlert','Disposable','_snapshotServerService','USERS_ENTER','OTHER_CLIENTS_EDITING','2511880OUqYEc','getMemberID','INGEST','UniverLicensePlugin','@univerjs/telemetry','string','confirm','defineProperty','infoRsp','&source=','_clearHeartbeatTimer','textEncoder','SlideCollaborationEntity','_undoStacks','_onConflict','UniverTelemetry','@univerjs-pro/collaboration','uniscriptRunEvent','delete','enableCollaboration','\x20to\x20','saveSnapshot','_unitInfo$','_telemetryService','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','_clearCollaborationTimeoutTimer','UniverProSlides','socketMessageSubscription','_acknowledgeAwaitingIfReady','concatMap','_initRequestHeader','accept','_collabSessionService','parse','now','CollaborationController','_userManagerService','avatar','/unit/','onLocalMutation','getTypeOfUnitDisposed$','PendingState','LOCAL_CACHE_INTERVAL','Uint8Array','addHandlerCallback','getRandomValues','indexOf','onTransformRemoteChangesetByIMECache','_updateLocalCache','\x0aCurrent:\x20','error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','FETCH_MISSING','_instanceService','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','transformSelections','catch','originalMeta','session.room-not-exists','isTransformMutationsWithChangesetFailure','_getUndoStack','retryConnectingInterval','registerDependencies','ERROR_IMAGE_TYPE','_clearTimeoutTimer','entityInit$','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','sessionStatus','_changesetSessionId','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','fetchThroughInterceptors','EmptyMutationInfo','stopTime','onMissingChangesets','_resendTimer','close$','SHOULD_CLOSE_CONN','type','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','c1Prime','asObservable','_getCtorByUniverInstanceType','newCsEvent','max','positive\x20integer\x20expected,\x20got\x20','_transitionLocked','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','getWorkbookSelections','leaveEvent','fetching\x20missing\x20changesets\x20from\x20','dispose','disableLocalCache','/universer-api/uniscript','loadBoard','_networkConditionService','_docStateChangeManagerService','localUnitId','/universer-api/oidc/authpage','uploadFileServerUrl','IMentionIOService','JOIN_ROOM_FULL','_changesetReqId','localeService','sid','_socketService','_transformUndoredo','submit\x20changeset\x20error!','_onJoinRoomEvent','enableOfflineEditing','FileSource','output','toggleOnline','NOT_COLLAB','onTransformRemoteChangesetByStateCache','/universer-api/authz','updateMember','unitLoaded$','loadUnitOfRevision','_entityInit$','body','synced','BYTES_PER_ELEMENT','_clearScheduledTask','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','csRejEvent','startsWith','onStateChange','_acknowledgeAwaiting','onMissedChangesetFetched','loadOfflineData','endpoint','?url=','HTTPService','_getConfig','_toggleOnline','object','unitID','3327468yfhUJI','7qwCGqa','setShowComponents','_singleActiveUnitService','event$','BASE64','sessionStatus$','_type','pluginName','encode','saveChangeset','/block/','MoveSlidePageMutation','sendChangesetTimeout','[CollaborationUndoRedoService]','MUTATION','PSEUDO_FETCH_MISSING_RESULT','shouldCloseConn','_queuedRemoteChangesets','_injector','socket$','toRemote','_emitMembers','forEach','subarray','_eventService','saveImage','_onRemoteChangeset'];_0x59a0=function(){return _0x3f6eee;};return _0x59a0();}(function(_0x4f22db,_0x5404d7){const _0xccef8f=_0x1420,_0xeca711=_0x4f22db();while(!![]){try{const _0x274cca=-parseInt(_0xccef8f(0x409))/0x1*(-parseInt(_0xccef8f(0x234))/0x2)+parseInt(_0xccef8f(0x1d4))/0x3+parseInt(_0xccef8f(0x1b1))/0x4+parseInt(_0xccef8f(0x262))/0x5+parseInt(_0xccef8f(0x2eb))/0x6+-parseInt(_0xccef8f(0x2ec))/0x7*(-parseInt(_0xccef8f(0x242))/0x8)+parseInt(_0xccef8f(0x24e))/0x9*(-parseInt(_0xccef8f(0x3c1))/0xa);if(_0x274cca===_0x5404d7)break;else _0xeca711['push'](_0xeca711['shift']());}catch(_0x598f5c){_0xeca711['push'](_0xeca711['shift']());}}}(_0x59a0,0x9f61a),function(_0xf3bf87,_0x3b88b5){const _0x1e1bd6=_0x1420;typeof exports==_0x1e1bd6(0x2e9)&&typeof module<'u'?_0x3b88b5(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==_0x1e1bd6(0x3fd)&&define[_0x1e1bd6(0x225)]?define(['exports',_0x1e1bd6(0x272),_0x1e1bd6(0x380),_0x1e1bd6(0x1a6),_0x1e1bd6(0x37c),_0x1e1bd6(0x334),_0x1e1bd6(0xcc),_0x1e1bd6(0x266),_0x1e1bd6(0x39d),_0x1e1bd6(0x1f3),_0x1e1bd6(0x23a),_0x1e1bd6(0x399),_0x1e1bd6(0x3e9)],_0x3b88b5):(_0xf3bf87=typeof globalThis<'u'?globalThis:_0xf3bf87||self,_0x3b88b5(_0xf3bf87[_0x1e1bd6(0x1e4)]={},_0xf3bf87[_0x1e1bd6(0x101)],_0xf3bf87['UniverCore'],_0xf3bf87[_0x1e1bd6(0x207)],_0xf3bf87['UniverSheets'],_0xf3bf87[_0x1e1bd6(0x334)],_0xf3bf87[_0x1e1bd6(0x181)],_0xf3bf87[_0x1e1bd6(0x271)],_0xf3bf87[_0x1e1bd6(0x334)][_0x1e1bd6(0x1eb)],_0xf3bf87[_0x1e1bd6(0x27c)],_0xf3bf87[_0x1e1bd6(0x11e)],_0xf3bf87[_0x1e1bd6(0x1b3)],_0xf3bf87[_0x1e1bd6(0x212)]));}(this,function(_0x79aec8,_0x149d12,_0x47f753,_0x459006,_0x1e2709,_0x470009,_0x26a654,_0x32d36d,_0x5ba228,_0x40163b,_0x8f2da5,_0x4326e6,_0x5d9de4){const _0x27b931=_0x1420;Object['defineProperty'](_0x79aec8,Symbol[_0x27b931(0x34f)],{'value':_0x27b931(0x13e)});let _0x3c17be=_0x27b931(0x178),_0xa759f3={},_0x5f4f64='ws://127.0.0.1:8000/universer-api/comb/connect',_0x1dfc3f=0x4e20;function _0x378d76(_0x568036){const _0x10c551=_0x27b931;return JSON['stringify'](_0x568036)[_0x10c551(0x415)];}function _0x53ca1f(_0x443e56){'@babel/helpers - typeof';const _0x8e961b=_0x27b931;return _0x53ca1f=typeof Symbol=='function'&&typeof Symbol[_0x8e961b(0x21e)]==_0x8e961b(0xd1)?function(_0x211581){return typeof _0x211581;}:function(_0x1a99ba){const _0x96793a=_0x8e961b;return _0x1a99ba&&typeof Symbol=='function'&&_0x1a99ba[_0x96793a(0x1e8)]===Symbol&&_0x1a99ba!==Symbol[_0x96793a(0x39f)]?'symbol':typeof _0x1a99ba;},_0x53ca1f(_0x443e56);}function _0x314c9f(_0x4f11ac,_0x4800ec){const _0x17f180=_0x27b931;if(_0x53ca1f(_0x4f11ac)!=_0x17f180(0x2e9)||!_0x4f11ac)return _0x4f11ac;var _0x5f4e1f=_0x4f11ac[Symbol[_0x17f180(0x236)]];if(_0x5f4e1f!==void 0x0){var _0x14dabf=_0x5f4e1f[_0x17f180(0x25a)](_0x4f11ac,_0x4800ec||'default');if(_0x53ca1f(_0x14dabf)!=_0x17f180(0x2e9))return _0x14dabf;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4800ec===_0x17f180(0x267)?String:Number)(_0x4f11ac);}function _0x1bd536(_0x8a9a56){const _0x758d9d=_0x27b931;var _0x4aeeb9=_0x314c9f(_0x8a9a56,_0x758d9d(0x267));return _0x53ca1f(_0x4aeeb9)=='symbol'?_0x4aeeb9:_0x4aeeb9+'';}function _0x2dd74e(_0x32913c,_0x3b4252,_0x136e74){return(_0x3b4252=_0x1bd536(_0x3b4252))in _0x32913c?Object['defineProperty'](_0x32913c,_0x3b4252,{'value':_0x136e74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32913c[_0x3b4252]=_0x136e74,_0x32913c;}let _0x204edc=function(_0x4db85f){const _0xfe7ed6=_0x27b931;return _0x4db85f[_0xfe7ed6(0x113)]='OTHER_CLIENT_EDITING',_0x4db85f[_0xfe7ed6(0x246)]=_0xfe7ed6(0x246),_0x4db85f[_0xfe7ed6(0x340)]='CONFLICT',_0x4db85f[_0xfe7ed6(0x352)]=_0xfe7ed6(0x352),_0x4db85f[_0xfe7ed6(0x33d)]=_0xfe7ed6(0x33d),_0x4db85f[_0xfe7ed6(0x35c)]='SOCKET_FAILED_RETRY',_0x4db85f['SOCKET_FAILED']=_0xfe7ed6(0x245),_0x4db85f['SUBMIT_CHANGESET_TIMEOUT']=_0xfe7ed6(0x1f5),_0x4db85f;}({});var _0x2a71d9=class{constructor(){const _0x5864ce=_0x27b931;_0x2dd74e(this,_0x5864ce(0x355),new _0x470009['Subject']()),_0x2dd74e(this,_0x5864ce(0x2ef),this[_0x5864ce(0x355)]['asObservable']());}[_0x27b931(0x1f8)](_0x10a53e){const _0x3d4175=_0x27b931;this[_0x3d4175(0x355)][_0x3d4175(0x396)](_0x10a53e);}},_0x101a15=class{constructor(){const _0x19f1ca=_0x27b931;_0x2dd74e(this,_0x19f1ca(0x208),new _0x470009[(_0x19f1ca(0x256))]()),_0x2dd74e(this,'commentUpdate$',this[_0x19f1ca(0x208)]['asObservable']());}[_0x27b931(0x3c9)](_0x4e0a95){const _0x6d326e=_0x27b931;this['_commentUpdate$'][_0x6d326e(0x396)](_0x4e0a95);}};function _0x2af294(_0x49a262,_0x4b23ed){return function(_0x5b6c9b,_0x101c5c){_0x4b23ed(_0x5b6c9b,_0x101c5c,_0x49a262);};}function _0x1fb4c2(_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0){const _0x103adc=_0x27b931;var _0x1575bb=arguments[_0x103adc(0x415)],_0x472b88=_0x1575bb<0x3?_0x6cb102:_0x4ba2d0===null?_0x4ba2d0=Object['getOwnPropertyDescriptor'](_0x6cb102,_0xf51705):_0x4ba2d0,_0x12e7e1;if(typeof Reflect==_0x103adc(0x2e9)&&typeof Reflect[_0x103adc(0x221)]==_0x103adc(0x3fd))_0x472b88=Reflect[_0x103adc(0x221)](_0x42787d,_0x6cb102,_0xf51705,_0x4ba2d0);else{for(var _0x51cefb=_0x42787d['length']-0x1;_0x51cefb>=0x0;_0x51cefb--)(_0x12e7e1=_0x42787d[_0x51cefb])&&(_0x472b88=(_0x1575bb<0x3?_0x12e7e1(_0x472b88):_0x1575bb>0x3?_0x12e7e1(_0x6cb102,_0xf51705,_0x472b88):_0x12e7e1(_0x6cb102,_0xf51705))||_0x472b88);}return _0x1575bb>0x3&&_0x472b88&&Object['defineProperty'](_0x6cb102,_0xf51705,_0x472b88),_0x472b88;}let _0x541d7d=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x53b271,_0x56cf77){const _0x30c3c7=_0x27b931;super(),this[_0x30c3c7(0x37d)]=_0x53b271,this[_0x30c3c7(0x286)]=_0x56cf77,_0x2dd74e(this,_0x30c3c7(0x393),new Map()),_0x2dd74e(this,_0x30c3c7(0x38b),new _0x470009['Subject']()),this['disposeWithMe']((0x0,_0x470009['merge'])(this[_0x30c3c7(0x37d)]['getTypeOfUnitDisposed$'](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x239)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228['map'])(_0x351e64=>_0x351e64['getUnitId']())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)]['UNIVER_DOC'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5bbb79=>_0x5bbb79[_0x30c3c7(0x3f1)]())),this[_0x30c3c7(0x37d)][_0x30c3c7(0x28a)](_0x47f753[_0x30c3c7(0x3fc)][_0x30c3c7(0x41d)])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x5b392f=>_0x5b392f[_0x30c3c7(0x3f1)]())),this['_univerInstanceService'][_0x30c3c7(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_BASE'])[_0x30c3c7(0x11f)]((0x0,_0x5ba228[_0x30c3c7(0x394)])(_0x1282e9=>_0x1282e9['getUnitId']())))[_0x30c3c7(0x38e)](_0x374181=>this[_0x30c3c7(0x1ba)](_0x374181)));}[_0x27b931(0x203)](_0xf6f7bf){const _0x17ab8a=_0x27b931;return this['_roomMembers'][_0x17ab8a(0xff)](_0xf6f7bf)?(0x0,_0x470009['of'])(this[_0x17ab8a(0x393)][_0x17ab8a(0x1ad)](_0xf6f7bf)):this[_0x17ab8a(0x38b)][_0x17ab8a(0x11f)]((0x0,_0x5ba228[_0x17ab8a(0x394)])(_0x318f66=>{const _0x59283b=_0x17ab8a;if(_0x318f66===_0xf6f7bf)return this['_roomMembers'][_0x59283b(0x1ad)](_0x318f66);}));}['setCurrentUser'](_0x4093ae){const _0x432a5c=_0x27b931;this[_0x432a5c(0x286)][_0x432a5c(0x12c)](_0x4093ae);}[_0x27b931(0x21f)](){const _0x4b548c=_0x27b931;return this[_0x4b548c(0x286)][_0x4b548c(0x21f)]();}[_0x27b931(0x2d5)](_0x401a8f,_0x245a29){const _0x4e866d=_0x27b931;let _0x175bf9=this[_0x4e866d(0x393)][_0x4e866d(0x1ad)](_0x401a8f);_0x175bf9||(_0x175bf9=new _0xf7c34(),this['_roomMembers'][_0x4e866d(0xf6)](_0x401a8f,_0x175bf9),this[_0x4e866d(0x38b)]['next'](_0x401a8f)),_0x175bf9[_0x4e866d(0x2d5)](_0x245a29);}[_0x27b931(0x378)](_0x1b4d97,_0xe78b19){const _0x2f8171=_0x27b931;let _0x3f4d5c=this['_roomMembers'][_0x2f8171(0x1ad)](_0x1b4d97);_0x3f4d5c&&_0x3f4d5c[_0x2f8171(0x378)](_0xe78b19);}[_0x27b931(0x423)](_0x5b115a){const _0x56445e=_0x27b931;return this[_0x56445e(0x393)][_0x56445e(0x1ad)](_0x5b115a);}[_0x27b931(0x3f4)](_0x31ad3f,_0x22813a){const _0x443e51=_0x27b931;let _0xd00e42=this[_0x443e51(0x393)][_0x443e51(0x1ad)](_0x31ad3f);if(_0xd00e42)return _0xd00e42[_0x443e51(0x3f4)](_0x22813a);}[_0x27b931(0x1ba)](_0x333f4d){const _0x576a83=_0x27b931;let _0x61281f=this['_roomMembers'][_0x576a83(0x1ad)](_0x333f4d);_0x61281f&&(_0x61281f[_0x576a83(0x2bc)](),this['_roomMembers'][_0x576a83(0x274)](_0x333f4d));}[_0x27b931(0x2bc)](){const _0xec40a7=_0x27b931;this[_0xec40a7(0x393)][_0xec40a7(0x302)](_0x17efbf=>_0x17efbf['dispose']()),this[_0xec40a7(0x393)][_0xec40a7(0x249)](),this[_0xec40a7(0x38b)]['complete']();}};_0x541d7d=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['UserManagerService']))],_0x541d7d);var _0xf7c34=class extends _0x47f753[_0x27b931(0x25e)]{constructor(..._0x154fd2){const _0x47e862=_0x27b931;super(..._0x154fd2),_0x2dd74e(this,_0x47e862(0x1f2),new Map()),_0x2dd74e(this,_0x47e862(0x363),new _0x470009[(_0x47e862(0x25b))](this[_0x47e862(0x1f2)])),_0x2dd74e(this,_0x47e862(0x3c2),this[_0x47e862(0x363)]['asObservable']());}[_0x27b931(0x2bc)](){const _0x25b912=_0x27b931;this[_0x25b912(0x1f2)][_0x25b912(0x249)](),this[_0x25b912(0x363)][_0x25b912(0x32e)]();}[_0x27b931(0x2d5)](_0x132fdf){const _0x1f2acf=_0x27b931;this[_0x1f2acf(0x1f2)][_0x1f2acf(0xf6)](_0x132fdf[_0x1f2acf(0x1aa)],_0x132fdf),this[_0x1f2acf(0x301)]();}[_0x27b931(0x378)](_0x59f612){const _0xe48603=_0x27b931;this[_0xe48603(0x1f2)][_0xe48603(0x274)](_0x59f612),this[_0xe48603(0x301)]();}[_0x27b931(0x3f4)](_0x323819){const _0x2c25f9=_0x27b931;return this[_0x2c25f9(0x1f2)][_0x2c25f9(0x1ad)](_0x323819);}['getAllMembers'](){const _0x5d717a=_0x27b931;return Array[_0x5d717a(0x21c)](this['_members'][_0x5d717a(0x32f)]());}[_0x27b931(0x301)](){const _0xd9b36c=_0x27b931;this[_0xd9b36c(0x363)][_0xd9b36c(0x396)](this['_members']);}};function _0x389eba(_0xdad32b,_0x596517){const _0xc37ae6=_0x27b931;if(_0x274f91(_0xdad32b))return _0x596517;if(_0x596517[_0xc37ae6(0x1a4)]===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x15e)]){var _0x183ea5;let _0x3b43fa=_0x47ce7e(_0xdad32b),_0x49eb4e=_0x596517;return{..._0x49eb4e,'data':{..._0x49eb4e[_0xc37ae6(0x401)],'unitID':_0xdad32b['target'][_0xc37ae6(0x320)],'unitType':(_0x183ea5=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x49eb4e[_0xc37ae6(0x401)][_0xc37ae6(0x36a)]:_0x183ea5,'changeset':_0x3b43fa[_0xc37ae6(0x300)](_0x49eb4e[_0xc37ae6(0x401)]['changeset'],_0x5a1101(_0xdad32b))}};}if(_0x596517['eventID']===_0x149d12[_0xc37ae6(0x3eb)][_0xc37ae6(0x296)]){var _0xce705a;let _0x3537d7=_0x596517;return{..._0x3537d7,'data':{..._0x3537d7[_0xc37ae6(0x401)],'unitID':_0xdad32b[_0xc37ae6(0x216)]['unitId'],'unitType':(_0xce705a=_0xdad32b[_0xc37ae6(0x216)][_0xc37ae6(0x36a)])==null?_0x3537d7[_0xc37ae6(0x401)]['unitType']:_0xce705a}};}return _0x596517;}function _0x34b807(_0x336ab3,_0xbd97c4){const _0x473144=_0x27b931;if(_0x274f91(_0x336ab3))return[_0xbd97c4];switch(_0xbd97c4[_0x473144(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x473144(0x391)]:return[_0x144706(_0x336ab3,_0xbd97c4)];case _0x149d12['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:return[_0x4a7ff6(_0x336ab3,_0xbd97c4)];case _0x149d12[_0x473144(0x3eb)][_0x473144(0x123)]:return[_0x247c91(_0x336ab3,_0xbd97c4)];default:return[_0xbd97c4];}}function _0x274f91(_0x2ea2db){const _0x3e81d7=_0x27b931;return _0x2ea2db['target'][_0x3e81d7(0x2e4)]==null&&_0x2ea2db['target'][_0x3e81d7(0x320)]===_0x2ea2db[_0x3e81d7(0x2c2)]&&!_0x2ea2db['changeset'];}function _0x144706(_0x85d2d7,_0x43158f){const _0x35def0=_0x27b931;return{..._0x43158f,'data':(0x0,_0x149d12[_0x35def0(0x253)])(_0x59d321(_0x85d2d7,(0x0,_0x149d12[_0x35def0(0x3b3)])(_0x43158f['data'])))};}function _0x247c91(_0x273d85,_0x6ef248){const _0xc9ce1f=_0x27b931;return{..._0x6ef248,'data':_0x59d321(_0x273d85,_0x6ef248[_0xc9ce1f(0x401)])};}function _0x4a7ff6(_0xe609fe,_0x207fac){const _0x2bb6cf=_0x27b931;let _0x49a3c1=_0x207fac[_0x2bb6cf(0x401)];return{..._0x207fac,'data':{..._0x49a3c1,'changesets':_0x49a3c1[_0x2bb6cf(0x3a9)][_0x2bb6cf(0x394)](_0x30ae58=>(0x0,_0x149d12[_0x2bb6cf(0x253)])(_0x59d321(_0xe609fe,(0x0,_0x149d12['parseProtocolChangeset'])(_0x30ae58))))}};}function _0x59d321(_0x54f60d,_0x3864fe){const _0x1664a9=_0x27b931;return _0x47ce7e(_0x54f60d)[_0x1664a9(0x379)](_0x3864fe,_0x5a1101(_0x54f60d));}function _0x47ce7e(_0x5d5047){const _0x451672=_0x27b931;if(!_0x5d5047[_0x451672(0x142)])throw Error(_0x451672(0x298));return _0x5d5047[_0x451672(0x142)];}function _0x5a1101(_0x438b10){const _0x3ba676=_0x27b931;return{'localUnitId':_0x438b10['localUnitId'],'unitType':_0x438b10[_0x3ba676(0x36a)],'target':_0x438b10[_0x3ba676(0x216)]};}let _0x1e08f9=function(_0x4db365){const _0x137091=_0x27b931;return _0x4db365[_0x4db365[_0x137091(0x1c2)]=0x0]='IDLE',_0x4db365[_0x4db365[_0x137091(0x1de)]=0x1]=_0x137091(0x1de),_0x4db365[_0x4db365[_0x137091(0x383)]=0x2]=_0x137091(0x383),_0x4db365[_0x4db365[_0x137091(0x1da)]=0x3]=_0x137091(0x1da),_0x4db365;}({}),_0x49999b={[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x223)]]:_0x27b931(0x20f),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x2c6)]]:_0x27b931(0x146),[_0x26a654[_0x27b931(0x3d9)]['JOIN_ROOM_NOT_EXISTS']]:_0x27b931(0x29c),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x3b6)]]:_0x27b931(0x336),[_0x26a654[_0x27b931(0x3d9)][_0x27b931(0x358)]]:_0x27b931(0x17e)},_0x4ea072=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x2a5)](){const _0x97ef0a=_0x27b931;return this[_0x97ef0a(0x224)][_0x97ef0a(0x321)]();}constructor(_0x401c9a,_0x374591,_0x301394,_0xbcef47,_0x574d7c,_0x38e0d6,_0x3304fe,_0xcd259){const _0x388ac8=_0x27b931;super(),this[_0x388ac8(0x1bd)]=_0x401c9a,this[_0x388ac8(0x1a1)]=_0x301394,this[_0x388ac8(0x228)]=_0xbcef47,this[_0x388ac8(0x342)]=_0x574d7c,this['_commentService']=_0x38e0d6,this[_0x388ac8(0x11a)]=_0x3304fe,this['_telemetryService']=_0xcd259,_0x2dd74e(this,_0x388ac8(0x224),new _0x470009[(_0x388ac8(0x25b))](0x0)),_0x2dd74e(this,_0x388ac8(0x2f1),this[_0x388ac8(0x224)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x355),new _0x470009[(_0x388ac8(0x256))]()),_0x2dd74e(this,_0x388ac8(0x2ef),this[_0x388ac8(0x355)][_0x388ac8(0x2b2)]()),_0x2dd74e(this,_0x388ac8(0x329),void 0x0),_0x2dd74e(this,_0x388ac8(0x167),void 0x0),_0x2dd74e(this,_0x388ac8(0xf1),void 0x0),_0x2dd74e(this,_0x388ac8(0xce),!0x1),_0x2dd74e(this,_0x388ac8(0x156),null),this[_0x388ac8(0xce)]=!!this['_telemetryService'],_0x374591[_0x388ac8(0x11f)]((0x0,_0x470009['takeUntil'])(this['dispose$']))[_0x388ac8(0x38e)](_0x39d082=>{const _0xf8e897=_0x388ac8;if(_0x39d082!==void 0x0){if(this[_0xf8e897(0x329)]=_0x39d082,_0x39d082)this[_0xf8e897(0x196)](_0x39d082),this[_0xf8e897(0x167)]=_0x39d082['message$'][_0xf8e897(0x38e)](_0x542626=>{const _0x294c60=_0xf8e897;_0x542626[_0x294c60(0x31b)]===this[_0x294c60(0x1bd)]['target'][_0x294c60(0x320)]&&this[_0x294c60(0x343)](_0x542626);});else{var _0xa3e06a;this[_0xf8e897(0x1b6)](),this[_0xf8e897(0x224)][_0xf8e897(0x396)](0x2),(_0xa3e06a=this[_0xf8e897(0x167)])==null||_0xa3e06a[_0xf8e897(0x138)](),this['_socketMessageSubscription']=null;}}});}[_0x27b931(0x263)](){const _0x4466ff=_0x27b931;var _0x138fb8,_0x2d503e;return(_0x138fb8=(_0x2d503e=this[_0x4466ff(0x329)])==null?void 0x0:_0x2d503e['memberID'])==null?null:_0x138fb8;}[_0x27b931(0x2bc)](){const _0x2d507f=_0x27b931;super[_0x2d507f(0x2bc)](),this[_0x2d507f(0x15b)](),this[_0x2d507f(0x18b)][_0x2d507f(0x396)](),this[_0x2d507f(0x18b)]['complete']();}[_0x27b931(0x15b)](){const _0x4a17cc=_0x27b931;var _0x1d7a02;this[_0x4a17cc(0x1b6)](),(_0x1d7a02=this[_0x4a17cc(0x329)])==null||_0x1d7a02['send']({'cmd':_0x26a654[_0x4a17cc(0x185)]['LEAVE'],'data':{'roomID':this[_0x4a17cc(0x1bd)]['target']['unitId']}}),this[_0x4a17cc(0x355)][_0x4a17cc(0x32e)](),this[_0x4a17cc(0x224)][_0x4a17cc(0x32e)]();}[_0x27b931(0x343)](_0x3a7996){const _0x1209a1=_0x27b931;_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x1e9)]?this['_onJoinRoomEvent'](_0x3a7996):_0x3a7996['cmd']===_0x26a654[_0x1209a1(0x185)][_0x1209a1(0x34a)]&&this['_onRecvEvent'](_0x3a7996);}[_0x27b931(0x196)](_0x446b22){const _0x540b70=_0x27b931;this[_0x540b70(0x224)][_0x540b70(0x396)](0x1),_0x446b22[_0x540b70(0x16b)]({'cmd':_0x26a654[_0x540b70(0x185)][_0x540b70(0x1e9)],'routeKey':this['_identity'][_0x540b70(0x216)][_0x540b70(0x320)],'routeType':'','data':{'rooms':[{'roomID':this[_0x540b70(0x1bd)]['target'][_0x540b70(0x320)]}]}});}[_0x27b931(0x2cd)](_0x2a69e3){const _0x329e67=_0x27b931;var _0x7629f8;if(_0x2a69e3[_0x329e67(0x1fc)]in _0x49999b){this['_collaborationUIEventService']['emitEvent']({'id':_0x329e67(0x33d),'data':_0x49999b[_0x2a69e3[_0x329e67(0x1fc)]]}),this[_0x329e67(0x224)][_0x329e67(0x396)](0x2);return;}this[_0x329e67(0x224)]['next'](0x3);let _0x5ede63=(_0x7629f8=_0x2a69e3[_0x329e67(0x401)][_0x329e67(0x1e3)][this[_0x329e67(0x1bd)]['target'][_0x329e67(0x320)]])==null?void 0x0:_0x7629f8[_0x329e67(0x406)];_0x5ede63&&_0x5ede63[_0x329e67(0x302)](_0xead38f=>this[_0x329e67(0x342)][_0x329e67(0x2d5)](this[_0x329e67(0x1bd)][_0x329e67(0x2c2)],_0xead38f));}[_0x27b931(0x30e)](_0x5dbc2a){const _0x282876=_0x27b931;try{let _0x1eaad6=_0x34b807(this[_0x282876(0x1bd)],_0x5dbc2a['data']);for(let _0x39f2d9 of _0x1eaad6)switch(_0x39f2d9[_0x282876(0x1a4)]){case _0x149d12[_0x282876(0x3eb)][_0x282876(0x260)]:this['_onUserJoin'](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x337)]:this[_0x282876(0x13c)](_0x39f2d9),this[_0x282876(0x355)]['next'](_0x39f2d9);break;case _0x149d12[_0x282876(0x3eb)][_0x282876(0x369)]:case _0x149d12[_0x282876(0x3eb)]['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x282876(0x27b)](),this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x3c6)]:this[_0x282876(0x1a1)][_0x282876(0x294)](_0x282876(0x3e8)+JSON[_0x282876(0x3e5)](_0x39f2d9)),this['_event$'][_0x282876(0x396)](_0x39f2d9);break;case _0x149d12['CollaborationEvent'][_0x282876(0x33a)]:this[_0x282876(0x1c0)][_0x282876(0x3c9)](_0x39f2d9[_0x282876(0x401)]),this['_event$']['next'](_0x39f2d9);break;default:this[_0x282876(0x355)][_0x282876(0x396)](_0x39f2d9);}}catch(_0x471105){this[_0x282876(0x1a1)][_0x282876(0x294)](_0x471105,_0x5dbc2a);}}['_onUserJoin'](_0x3d3c00){const _0x1ea8da=_0x27b931;this[_0x1ea8da(0x342)][_0x1ea8da(0x2d5)](this[_0x1ea8da(0x1bd)][_0x1ea8da(0x2c2)],_0x3d3c00['data']);}[_0x27b931(0x13c)](_0x436d5a){const _0x5cd189=_0x27b931;this[_0x5cd189(0x342)][_0x5cd189(0x378)](this['_identity'][_0x5cd189(0x2c2)],_0x436d5a['data'][_0x5cd189(0x1aa)]);}async[_0x27b931(0x16b)](_0x1716d5,_0x740026){const _0x40f57e=_0x27b931;if(this[_0x40f57e(0x2a5)]!==0x3||!this['_socket'])throw Error(_0x40f57e(0x252));try{let _0x3fc24d=_0x389eba(this['_identity'],_0x1716d5);_0x3fc24d[_0x40f57e(0x1a4)]===_0x149d12[_0x40f57e(0x3eb)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x40f57e(0xf0)](_0x3fc24d)),this[_0x40f57e(0x329)][_0x40f57e(0x16b)]({'cmd':_0x26a654['CombCmd'][_0x40f57e(0x264)],'routeKey':this[_0x40f57e(0x1bd)][_0x40f57e(0x216)][_0x40f57e(0x320)],'routeType':'','data':_0x3fc24d});}catch(_0xcf6991){this[_0x40f57e(0x1a1)][_0x40f57e(0x294)](_0xcf6991);}}['_scheduleCollaborationTimeoutTimer'](){const _0x5a2c15=_0x27b931;var _0x485392;this[_0x5a2c15(0xf1)]=setTimeout(()=>{const _0x13d696=_0x5a2c15;this[_0x13d696(0xf1)]=null,this[_0x13d696(0x11a)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x485392=this['_configService']['getConfig'](_0x5a2c15(0xe4)))==null?_0x1dfc3f:_0x485392);}[_0x27b931(0x27b)](){const _0x196b10=_0x27b931;this[_0x196b10(0xf1)]&&(clearTimeout(this[_0x196b10(0xf1)]),this[_0x196b10(0xf1)]=null);}[_0x27b931(0xf0)](_0x557994){const _0x30324b=_0x27b931;if(!this['_shouldReportTelemetry'])return;let {data:_0x370353}=_0x557994,{unitID:_0x5246c3,changeset:_0x1735bb}=_0x370353,{mutations:_0x4ecaf9,type:_0x13e145}=_0x1735bb;this['_telemetryInfo']={'unitId':_0x5246c3,'type':_0x13e145,'startTime':performance[_0x30324b(0x284)](),'stopTime':0x0,'duration':0x0,'size':_0x378d76(_0x4ecaf9)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x30c0ef=_0x27b931;if(this[_0x30c0ef(0xce)]){if(!this[_0x30c0ef(0x156)]){this[_0x30c0ef(0x1a1)][_0x30c0ef(0x294)](_0x30c0ef(0x3ae),_0x30c0ef(0x14c));return;}this[_0x30c0ef(0x156)]['stopTime']=performance['now'](),this[_0x30c0ef(0x156)]['duration']=this[_0x30c0ef(0x156)][_0x30c0ef(0x2aa)]-this[_0x30c0ef(0x156)][_0x30c0ef(0x388)],this[_0x30c0ef(0x279)]['capture'](_0x30c0ef(0x1b7),this[_0x30c0ef(0x156)]),this[_0x30c0ef(0x156)]=null;}}[_0x27b931(0x1b6)](){const _0x3586a8=_0x27b931;this[_0x3586a8(0x156)]=null;}};_0x4ea072=_0x1fb4c2([_0x2af294(0x2,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x541d7d)),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x101a15)),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x233)])(_0x32d36d['ITelemetryService']))],_0x4ea072);let _0x419224=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3c8));function _0xe42769(_0x3209bf){return'unit-cache-'+_0x3209bf;}function _0xec7bcb(_0x4ac1da){const _0xf65499=_0x27b931;let {unitID:_0x195a4a,mutations:_0x366d2a}=_0x4ac1da;return{'unitId':_0x195a4a,'subUnitId':_0x366d2a[_0xf65499(0x415)]>0x0?_0x366d2a[0x0][_0xf65499(0xfc)][_0xf65499(0x109)]:null};}let _0x2e077e=class{constructor(_0x27e62a,_0x24817f,_0x2d27c6){const _0x32a71c=_0x27b931;this[_0x32a71c(0x2fe)]=_0x27e62a,this[_0x32a71c(0x14e)]=_0x24817f,this[_0x32a71c(0x297)]=_0x2d27c6;}[_0x27b931(0x299)](_0x4b9dd7){const _0x535aaf=_0x27b931;var _0xdadce7,_0x939a9f;let _0x5d4114=this[_0x535aaf(0x2fe)][_0x535aaf(0x1ad)](_0x1e2709[_0x535aaf(0x165)]),{unitId:_0x395e32,subUnitId:_0x3f76c9}=_0xec7bcb(_0x4b9dd7),_0x565885=_0x5d4114==null?void 0x0:_0x5d4114[_0x535aaf(0x2b9)](_0x395e32)[_0x535aaf(0xcd)](),_0x4a62f2=(_0xdadce7=this['_instanceService'][_0x535aaf(0x326)](_0x395e32))==null||(_0xdadce7=_0xdadce7[_0x535aaf(0x3bf)]())==null?void 0x0:_0xdadce7[_0x535aaf(0x18c)]();if(_0x565885[_0x535aaf(0x415)]===0x0||!_0x395e32||!_0x3f76c9)return;let _0x289c74=[{'id':_0x1e2709[_0x535aaf(0x193)]['id'],'params':{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x47f753['Tools'][_0x535aaf(0xd7)](_0x565885)}}],_0x116b3b=this['_transformService'][_0x535aaf(0x17a)](_0x4b9dd7,_0x289c74);if(!(0x0,_0x149d12[_0x535aaf(0x421)])(_0x116b3b))throw _0x116b3b[_0x535aaf(0x294)];let _0x423418=(_0x939a9f=_0x116b3b[_0x535aaf(0x3b0)][0x0])==null||(_0x939a9f=_0x939a9f[_0x535aaf(0xfc)])==null?void 0x0:_0x939a9f[_0x535aaf(0x163)];if(Array[_0x535aaf(0x22d)](_0x423418)&&_0x423418[_0x535aaf(0x415)]){if(_0x423418[_0x535aaf(0x415)]===_0x289c74[0x0][_0x535aaf(0xfc)]['selections'][_0x535aaf(0x415)]&&_0x423418[_0x535aaf(0x154)]((_0x1b496d,_0x4e0a82)=>_0x47f753[_0x535aaf(0x179)]['equals'](_0x1b496d[_0x535aaf(0x338)],_0x289c74[0x0][_0x535aaf(0xfc)][_0x535aaf(0x163)][_0x4e0a82]['range'])))return;this['_injector'][_0x535aaf(0x1ad)](_0x47f753[_0x535aaf(0x25c)])['executeCommand'](_0x1e2709['SetSelectionsOperation']['id'],{'unitId':_0x395e32,'subUnitId':_0x4a62f2,'selections':_0x423418});}}};_0x2e077e=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x149d12['ITransformService']),_0x2af294(0x2,_0x47f753['IUniverInstanceService'])],_0x2e077e);let _0x435069=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x14b)),_0x709438=function(_0x2fec58){const _0x2c0578=_0x27b931;return _0x2fec58[_0x2fec58[_0x2c0578(0x416)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2fec58[_0x2fec58[_0x2c0578(0x261)]=0x1]='OTHER_CLIENTS_EDITING',_0x2fec58;}({});function _0xd39fe(_0x6c1112){const _0x36dea6=_0x27b931;var _0x5ad218;return!!((_0x5ad218=_0x6c1112['params'])!=null&&_0x5ad218[_0x36dea6(0x39a)]);}let _0xb89c6b=new Set([_0x1e2709['InsertSheetMutation']['id']]),_0x23d1ab=new Set([_0x40163b['AddSlidePageMutation']['id'],_0x40163b[_0x27b931(0x3f7)]['id'],_0x40163b[_0x27b931(0x2f7)]['id'],_0x40163b[_0x27b931(0x259)]['id']]);function _0x46bcf2(_0x17a8d6,_0x917eac=_0xb89c6b){const _0x2ebda0=_0x27b931;let _0x2500ef=[];for(let _0x2f3ef0 of _0x17a8d6){if(_0x917eac[_0x2ebda0(0xff)](_0x2f3ef0['id'])){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}if(_0xd39fe(_0x2f3ef0)){if(_0x2500ef[_0x2ebda0(0x415)]>0x0)break;_0x2500ef['push'](_0x2f3ef0);break;}_0x2500ef[_0x2ebda0(0x30b)](_0x2f3ef0);}return _0x2500ef;}function _0x56f864(_0x146cc8,_0x1423b5,_0x2cbb2e,_0xad4e4b,_0x1109d6){const _0x5c3349=_0x27b931;var _0x3590ed,_0x54772a,_0x135651,_0x4b8e0d;let _0x528e0a=_0x46bcf2(_0x146cc8),_0x2f0a3f=(_0x3590ed=(_0x54772a=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x54772a[_0x5c3349(0x13a)])==null?_0x5c3349(0x316):_0x3590ed,_0x33e71a=(_0x135651=(_0x4b8e0d=_0x1109d6[_0x5c3349(0x21f)]())==null?void 0x0:_0x4b8e0d[_0x5c3349(0x1aa)])==null?'unknown':_0x135651;return{'changeset':{'unitID':_0x1423b5,'type':(0x0,_0x149d12[_0x5c3349(0x22c)])(_0x2cbb2e['getUnitType'](_0x1423b5)),'baseRev':_0xad4e4b['getCurrentRevOfUnit'](_0x1423b5),'revision':0x0,'userID':_0x2f0a3f,'memberID':_0x33e71a,'mutations':_0x528e0a},'pendingMutations':_0x146cc8['slice'](_0x528e0a[_0x5c3349(0x415)])};}function _0x4c958f(_0x18b1c5,_0xa7cb33,_0x211a4f,_0x467a25,_0x5f5af6){const _0x274ebe=_0x27b931;var _0x162acd,_0x29004c,_0x17f22e,_0x41abdd;let _0x13f1aa=_0x46bcf2(_0x18b1c5,_0x23d1ab),_0x4e1c9f=(_0x162acd=(_0x29004c=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x29004c['userID'])==null?_0x274ebe(0x316):_0x162acd,_0x173fdc=(_0x17f22e=(_0x41abdd=_0x5f5af6[_0x274ebe(0x21f)]())==null?void 0x0:_0x41abdd['memberID'])==null?_0x274ebe(0x316):_0x17f22e;return{'changeset':{'unitID':_0xa7cb33,'type':(0x0,_0x149d12[_0x274ebe(0x22c)])(_0x211a4f['getUnitType'](_0xa7cb33)),'baseRev':_0x467a25[_0x274ebe(0x322)](_0xa7cb33),'revision':0x0,'userID':_0x4e1c9f,'memberID':_0x173fdc,'mutations':_0x13f1aa},'pendingMutations':_0x18b1c5[_0x274ebe(0x14f)](_0x13f1aa['length'])};}function _0x1f4433(_0xe01410,_0x301f91,_0x51344f,_0x569429,_0x3f5b8a){const _0xd86b22=_0x27b931;var _0x306596,_0xc87f4b,_0x162fef,_0x21708e;let _0x18894b=_0xe01410[_0xd86b22(0x1ca)]((_0x2a69eb,_0x4a1fbf)=>{const _0x1a45fc=_0xd86b22;let _0x3b1633=_0x2a69eb[_0x2a69eb[_0x1a45fc(0x415)]-0x1],{id:_0x42267c}=_0x3b1633==null?{}:_0x3b1633,{id:_0x39e99d,type:_0x18dc55}=_0x4a1fbf,_0xf853ba=_0x4a1fbf[_0x1a45fc(0xfc)];if(_0x42267c&&_0x42267c!==_0x39e99d)throw Error(_0x1a45fc(0x419)+_0x42267c+_0x1a45fc(0x328)+_0x39e99d+'.');if(!_0x3b1633)return[{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba['textRanges'],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];let _0x5640e2=_0x3b1633[_0x1a45fc(0xfc)];return _0x431857(_0x5640e2,_0xf853ba)?[..._0x2a69eb[_0x1a45fc(0x14f)](0x0,-0x1),{..._0x3b1633,'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba[_0x1a45fc(0x320)],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0x47f753[_0x1a45fc(0x231)][_0x1a45fc(0x14d)](_0x5640e2['actions'],_0xf853ba[_0x1a45fc(0x1b8)])}}]:[..._0x2a69eb,{'id':_0x39e99d,'type':_0x18dc55,'params':{'unitId':_0xf853ba['unitId'],'textRanges':_0xf853ba[_0x1a45fc(0x141)],'actions':_0xf853ba[_0x1a45fc(0x1b8)]}}];},[]),_0x26f2a8=(_0x306596=(_0xc87f4b=_0x3f5b8a['getCurrentUser']())==null?void 0x0:_0xc87f4b[_0xd86b22(0x13a)])==null?_0xd86b22(0x316):_0x306596,_0x29cddc=(_0x162fef=(_0x21708e=_0x3f5b8a[_0xd86b22(0x21f)]())==null?void 0x0:_0x21708e[_0xd86b22(0x1aa)])==null?_0xd86b22(0x316):_0x162fef;return{'changeset':{'unitID':_0x301f91,'type':(0x0,_0x149d12['mapDocumentTypeToUniverInstanceType'])(_0x51344f[_0xd86b22(0x41a)](_0x301f91)),'baseRev':_0x569429[_0xd86b22(0x322)](_0x301f91),'revision':0x0,'userID':_0x26f2a8,'memberID':_0x29cddc,'mutations':_0x18894b},'pendingMutations':_0xe01410['slice'](_0xe01410[_0xd86b22(0x415)])};}function _0x431857(_0x47ee0d,_0x4a16cc){const _0x3cebdc=_0x27b931;return!_0x3b13eb(_0x47ee0d)&&!_0x3b13eb(_0x4a16cc)&&_0x34cc88(_0x47ee0d[_0x3cebdc(0x1b8)],_0x4a16cc[_0x3cebdc(0x1b8)]);}function _0x3b13eb(_0x23dc22){const _0x4ae797=_0x27b931;return _0x23dc22[_0x4ae797(0x31a)]!==void 0x0;}function _0x34cc88(_0x486544,_0x29babb){return _0x14ae70(_0x486544)&&_0x14ae70(_0x29babb)&&!_0x2c2db9(_0x486544)&&!_0x2c2db9(_0x29babb)&&!_0x1e58ef(_0x486544)&&!_0x1e58ef(_0x29babb);}function _0x14ae70(_0x4ef133){const _0x2e19b5=_0x27b931;return _0x54bd72(_0x4ef133)['some'](_0x3b31da=>_0xbf6c98(_0x3b31da)&&_0x3b31da['et']===_0x2e19b5(0x1bf));}function _0x1e58ef(_0xf294c2){const _0x10e102=_0x27b931;return _0x54bd72(_0xf294c2)['some'](_0x380308=>Array[_0x10e102(0x22d)](_0x380308)||typeof _0x380308==_0x10e102(0x267)||typeof _0x380308==_0x10e102(0x116));}function _0x2c2db9(_0x4bf3ec){const _0x3cf840=_0x27b931;return _0x54bd72(_0x4bf3ec)[_0x3cf840(0x405)](_0x36fc77=>!_0xbf6c98(_0x36fc77)||_0x36fc77['et']!==_0x3cf840(0x1bf)||!Array[_0x3cf840(0x22d)](_0x36fc77['e'])?!0x1:_0x36fc77['e'][_0x3cf840(0x405)](_0x4f40c4=>!_0xbf6c98(_0x4f40c4)||!_0xbf6c98(_0x4f40c4[_0x3cf840(0x2d9)])?!0x1:Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4[_0x3cf840(0x2d9)],_0x3cf840(0x1c5))||Object[_0x3cf840(0x39f)]['hasOwnProperty'][_0x3cf840(0x25a)](_0x4f40c4['body'],_0x3cf840(0x125))||Object[_0x3cf840(0x39f)][_0x3cf840(0xf5)]['call'](_0x4f40c4['body'],'blockRanges')));}function _0x54bd72(_0x4080be){const _0xc909af=_0x27b931;if(!Array['isArray'](_0x4080be))return[];let _0x6a6ab3=_0x4080be[_0xc909af(0xf2)](_0xc909af(0x2d9))?_0x4080be:_0x4080be['find'](_0x4a2571=>Array[_0xc909af(0x22d)](_0x4a2571)&&_0x4a2571[_0xc909af(0xf2)](_0xc909af(0x2d9)));if(!Array[_0xc909af(0x22d)](_0x6a6ab3))return[];let _0x1cb57=_0x6a6ab3[_0xc909af(0x290)]('body');return _0x1cb57===-0x1?[]:_0x6a6ab3[_0xc909af(0x14f)](_0x1cb57+0x1);}function _0xbf6c98(_0x1976cc){return typeof _0x1976cc=='object'&&!!_0x1976cc&&!Array['isArray'](_0x1976cc);}function _0xa9ec8e(_0x20dd9a,_0x3b97db){const _0x3a569b=_0x27b931;let _0x300331=new _0x470009['ReplaySubject'](0x1);return setTimeout(()=>_0x300331[_0x3a569b(0x396)](_0x3b97db),_0x20dd9a),_0x300331[_0x3a569b(0x2b2)]()[_0x3a569b(0x11f)]((0x0,_0x470009[_0x3a569b(0x1c3)])(0x1));}var _0x3fe01c,_0x273481,_0xf27d34;let _0xdb2824=function(_0x2c6cd2){const _0x598750=_0x27b931;return _0x2c6cd2[_0x598750(0x2d2)]=_0x598750(0xe1),_0x2c6cd2[_0x598750(0x35d)]=_0x598750(0x2da),_0x2c6cd2[_0x598750(0x390)]=_0x598750(0x341),_0x2c6cd2['AWAITING']=_0x598750(0x10c),_0x2c6cd2[_0x598750(0x1e1)]='awaiting_with_pending',_0x2c6cd2['FETCH_MISS']=_0x598750(0x11d),_0x2c6cd2['CONFLICT']='conflict',_0x2c6cd2[_0x598750(0x383)]='offline',_0x2c6cd2;}({}),_0x3d7ed8=0x4e20,_0xb2329d=0x2bf20;var _0x245952=class{constructor(_0x57bcf8,_0x931ec2,_0x2b29e9,_0xb47052,_0x504c99,_0x3aaef6,_0x5145d6,_0x5e197d,_0x549dae){const _0x34789c=_0x27b931;this[_0x34789c(0x2ea)]=_0x57bcf8,this[_0x34789c(0x2af)]=_0x931ec2,this[_0x34789c(0x13b)]=_0x504c99,this[_0x34789c(0x38d)]=_0x3aaef6,this[_0x34789c(0x1c6)]=_0x5145d6,this[_0x34789c(0x105)]=_0x5e197d,this['_localCacheService']=_0x549dae,_0x2dd74e(this,_0x34789c(0x1f7),null),_0x2dd74e(this,'_pendingMutations',[]),this[_0x34789c(0x1f7)]=_0x2b29e9,this[_0x34789c(0x3da)]=_0xb47052;}[_0x27b931(0x16d)](_0x3186f0){const _0x31c648=_0x27b931;let _0x549bba=this[_0x31c648(0x105)]['getCurrentRevOfUnit'](this[_0x31c648(0x2ea)]);return _0x3186f0['revision']>_0x549bba+0x1?(this['_handler']['onMissingChangesets']({'from':_0x549bba,'to':_0x3186f0[_0x31c648(0xe7)]-0x1}),!0x0):!0x1;}[_0x27b931(0x2cb)](_0x1ff250){const _0x505782=_0x27b931;this[_0x505782(0x1c6)][_0x505782(0x135)](this[_0x505782(0x2ea)],_0x1ff250);}['_transformSelections'](_0x28e87a){const _0x50894a=_0x27b931;var _0x331d49,_0x49990b;(_0x331d49=(_0x49990b=this[_0x50894a(0x13b)])['onTransformSelections'])==null||_0x331d49['call'](_0x49990b,_0x28e87a);}[_0x27b931(0x202)](_0x53c6ff){const _0x5a4e5c=_0x27b931;var _0x40c765,_0x1ba128;return(_0x40c765=(_0x1ba128=this[_0x5a4e5c(0x13b)])[_0x5a4e5c(0x384)])==null?void 0x0:_0x40c765[_0x5a4e5c(0x25a)](_0x1ba128,_0x53c6ff);}[_0x27b931(0x20c)](_0x281e2a){const _0x31181f=_0x27b931;var _0x33beaa,_0x2ab297;return(_0x33beaa=(_0x2ab297=this[_0x31181f(0x13b)])['onTransformState'])==null?void 0x0:_0x33beaa['call'](_0x2ab297,_0x281e2a);}[_0x27b931(0x127)](_0x6b03b3){const _0x1b1e48=_0x27b931;var _0x387270,_0x1e3e7f,_0x389d1f;return(_0x387270=(_0x1e3e7f=(_0x389d1f=this[_0x1b1e48(0x13b)])[_0x1b1e48(0x291)])==null?void 0x0:_0x1e3e7f[_0x1b1e48(0x25a)](_0x389d1f,_0x6b03b3))==null?_0x6b03b3:_0x387270;}[_0x27b931(0xf8)](_0x2259e5){const _0x372a90=_0x27b931;var _0x2b2e95,_0x1f2afa,_0x39736f;return(_0x2b2e95=(_0x1f2afa=(_0x39736f=this['_handler'])[_0x372a90(0x2d3)])==null?void 0x0:_0x1f2afa['call'](_0x39736f,_0x2259e5))==null?_0x2259e5:_0x2b2e95;}[_0x27b931(0x40f)](_0x4862c6){const _0xfe8aff=_0x27b931;if(this[_0xfe8aff(0x2af)]===_0x47f753[_0xfe8aff(0x3fc)][_0xfe8aff(0x243)]){let {unitID:_0x2f3efc,mutations:_0x45e9a1,memberID:_0x23787b}=_0x4862c6,_0x261deb=_0x45e9a1['length']>0x0?_0x45e9a1[0x0][_0xfe8aff(0xfc)][_0xfe8aff(0x141)]:[];if(Array[_0xfe8aff(0x22d)](_0x261deb)&&_0x261deb['length']>0x0){var _0x344b8f,_0x330db2;(_0x344b8f=(_0x330db2=this[_0xfe8aff(0x13b)])[_0xfe8aff(0x10b)])==null||_0x344b8f[_0xfe8aff(0x25a)](_0x330db2,{'unitID':_0x2f3efc,'memberID':_0x23787b,'textRanges':_0x261deb});}}}[_0x27b931(0x292)](){const _0x31c0aa=_0x27b931;var _0x2771a8;(_0x2771a8=this[_0x31c0aa(0x189)])==null||_0x2771a8['updateOfflineData'](this[_0x31c0aa(0x2ea)],this[_0x31c0aa(0x2af)],this[_0x31c0aa(0x1f7)],this[_0x31c0aa(0x3da)]);}[_0x27b931(0x319)](){const _0x507949=_0x27b931;return this[_0x507949(0x105)]['getCurrentRevOfUnit'](this['unitID']);}['_incrementRevisionNumber'](){const _0x36f468=_0x27b931;this['_revisionService'][_0x36f468(0x3ca)](this[_0x36f468(0x2ea)]);}[_0x27b931(0x164)](_0x40f6ef){const _0x44d695=_0x27b931;let _0x422095=this[_0x44d695(0x127)](_0x40f6ef);_0x422095=this[_0x44d695(0xf8)](_0x422095);let _0x188526=(0x0,_0x47f753[_0x44d695(0x254)])(_0x422095['mutations'],this[_0x44d695(0x38d)],{'fromCollab':!0x0});if(!_0x188526['result']){var _0x371fd1;throw _0x188526['error']instanceof Error?_0x188526['error']:Error((_0x371fd1=_0x188526[_0x44d695(0x294)])==null?'[CollaborationState]:\x20apply\x20error!':_0x371fd1);}this[_0x44d695(0x202)](_0x422095),this['_transformStateCache'](_0x422095),this[_0x44d695(0x2cb)](_0x40f6ef),this[_0x44d695(0x115)](_0x422095),this[_0x44d695(0x40f)](_0x422095),this[_0x44d695(0x1cd)]();}};let _0x50a3a4=class extends _0x245952{constructor(_0x3fb7e8,_0x284423,_0x483460,_0xd19e43,_0x52afde,_0x507f12,_0x544021,_0x5c4548,_0x27494b,_0x4cccb3){const _0x483582=_0x27b931;super(_0x3fb7e8,_0x284423,null,[],_0x483460,_0x544021,_0x507f12,_0xd19e43,_0x4cccb3),this['_injector']=_0x52afde,this['_logService']=_0x5c4548,this['_transformService']=_0x27494b,this[_0x483582(0x23c)]=_0x4cccb3,_0x2dd74e(this,_0x483582(0x397),_0x483582(0x2da));}[_0x27b931(0x219)](_0x3a5c6a){const _0x50508d=_0x27b931;let _0x3678f1=this[_0x50508d(0x2fe)][_0x50508d(0x392)](_0x467875,this[_0x50508d(0x2ea)],this[_0x50508d(0x2af)],[_0x3a5c6a],this[_0x50508d(0x13b)]);return _0x3678f1[_0x50508d(0x34b)](),_0x3678f1[_0x50508d(0x292)](),_0x3678f1;}[_0x27b931(0xf7)](_0x1dddc9){const _0x4a50e9=_0x27b931;if(this[_0x4a50e9(0x16d)](_0x1dddc9))return this['_injector'][_0x4a50e9(0x392)](_0x3b1a33,this[_0x4a50e9(0x2ea)],this[_0x4a50e9(0x2af)],null,[],null,[_0x1dddc9],this[_0x4a50e9(0x13b)]);try{let _0x46e4e4=this[_0x4a50e9(0x14e)][_0x4a50e9(0x17a)](_0x1dddc9,[_0x149d12[_0x4a50e9(0x2a9)]]);if((0x0,_0x149d12['isTransformMutationsWithChangesetSuccess'])(_0x46e4e4)){let {c1Prime:_0x73f905}=_0x46e4e4;return this['_executeRemoteChangeset'](_0x73f905),this;}throw _0x46e4e4['error'];}catch(_0x303d5e){return this[_0x4a50e9(0x1a1)][_0x4a50e9(0x294)](_0x303d5e),this[_0x4a50e9(0x270)](!0x1);}}[_0x27b931(0x270)](_0x555fc9){const _0x30d063=_0x27b931;return this[_0x30d063(0x2fe)]['createInstance'](_0x41f3d6,this[_0x30d063(0x2ea)],this['type'],null,[],this['_handler'],_0x555fc9);}[_0x27b931(0x420)](_0x54d810){const _0x3d6110=_0x27b931;if(_0x54d810[_0x3d6110(0xe7)]<=this[_0x3d6110(0x319)]())return this;throw Error(_0x3d6110(0x215));}[_0x27b931(0xef)](){const _0x3f1f4f=_0x27b931;throw Error(_0x3f1f4f(0x13f));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x2b9da4=_0x27b931;return this[_0x2b9da4(0x2fe)][_0x2b9da4(0x392)](_0x58261a,this['unitID'],this['type'],null,[],this['_handler']);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x147fee=_0x27b931;throw Error(_0x147fee(0x12a));}[_0x27b931(0xd2)](){const _0x333f4b=_0x27b931;let _0xd9d335=this[_0x333f4b(0x105)][_0x333f4b(0x322)](this[_0x333f4b(0x2ea)]);return this['_handler'][_0x333f4b(0x2ab)]({'from':_0xd9d335,'to':0x0}),this[_0x333f4b(0x2fe)][_0x333f4b(0x392)](_0x3b1a33,this[_0x333f4b(0x2ea)],this[_0x333f4b(0x2af)],null,[],null,[],this[_0x333f4b(0x13b)]);}};_0x50a3a4=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,_0x47f753['IUndoRedoService']),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x50a3a4);let _0x467875=_0x3fe01c=class extends _0x245952{constructor(_0x34b6f7,_0x290244,_0x3a145d,_0x562046,_0x5bd416,_0x292127,_0x1bd9ce,_0xef5cfe,_0x349a87,_0x43a8a2,_0x1755d3,_0x19b40b,_0x4b38e7,_0x1ecccb){const _0x468c5e=_0x27b931;super(_0x34b6f7,_0x290244,null,_0x3a145d,_0x562046,_0x349a87,_0x4b38e7,_0x292127,_0x1ecccb),this[_0x468c5e(0x2fe)]=_0x5bd416,this['_memberService']=_0x1bd9ce,this[_0x468c5e(0x1a1)]=_0xef5cfe,this['_configService']=_0x43a8a2,this[_0x468c5e(0x14e)]=_0x1755d3,this[_0x468c5e(0x37d)]=_0x19b40b,_0x2dd74e(this,_0x468c5e(0x397),'pending'),_0x2dd74e(this,_0x468c5e(0x3b2),null),_0x2dd74e(this,'_sendingTimer',null);}[_0x27b931(0x219)](_0x3fb845){const _0x1959b5=_0x27b931;return this[_0x1959b5(0x3da)]['push'](_0x3fb845),this[_0x1959b5(0x292)](),this;}[_0x27b931(0xf7)](_0x7d723d){const _0x2f696f=_0x27b931;if(this[_0x2f696f(0x16d)](_0x7d723d))return this[_0x2f696f(0x2dc)](),this[_0x2f696f(0x2fe)][_0x2f696f(0x392)](_0x3b1a33,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],null,this[_0x2f696f(0x3da)],null,[_0x7d723d],this[_0x2f696f(0x13b)]);try{let _0x19a963=this['_transformService'][_0x2f696f(0x17a)](_0x7d723d,this[_0x2f696f(0x3da)]);if((0x0,_0x149d12[_0x2f696f(0x421)])(_0x19a963)){let {c1Prime:_0x4f9446,m2Prime:_0x61bdeb}=_0x19a963;this[_0x2f696f(0x164)](_0x4f9446);let _0x437c87=this['_injector'][_0x2f696f(0x392)](_0x3fe01c,this[_0x2f696f(0x2ea)],this[_0x2f696f(0x2af)],_0x61bdeb,this[_0x2f696f(0x13b)]);this[_0x2f696f(0x2dc)]();let _0x230ae8=new Date()[_0x2f696f(0xf3)](),_0x162506=this[_0x2f696f(0x3b2)]?Math[_0x2f696f(0x2b5)](this[_0x2f696f(0x3b2)]-_0x230ae8,0x0):this[_0x2f696f(0x1ef)]();return _0x437c87[_0x2f696f(0x34b)](_0x162506),_0x437c87;}throw _0x19a963[_0x2f696f(0x294)];}catch(_0x195047){return this[_0x2f696f(0x1a1)][_0x2f696f(0x294)](_0x195047),this[_0x2f696f(0x270)](!0x1);}}[_0x27b931(0x420)](_0x4fdc33){const _0x32f6d8=_0x27b931;if(_0x4fdc33[_0x32f6d8(0xe7)]<=this['_getCurrentRevision']())return this;throw Error(_0x32f6d8(0x177));}[_0x27b931(0xef)](){const _0x12069d=_0x27b931;throw Error(_0x12069d(0x40d));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x3dc17d=_0x27b931;return this['_clearScheduledTask'](),this[_0x3dc17d(0x2fe)][_0x3dc17d(0x392)](_0x58261a,this['unitID'],this[_0x3dc17d(0x2af)],null,this[_0x3dc17d(0x3da)],this[_0x3dc17d(0x13b)]);}['toggleOnline'](){return this;}['_schedule'](_0x4e3c4f){const _0x31c9fc=_0x27b931;let _0x45c791=_0x4e3c4f==null?this[_0x31c9fc(0x1ef)]():_0x4e3c4f;this[_0x31c9fc(0x3b2)]=new Date()[_0x31c9fc(0xf3)]()+_0x45c791,this['_sendingTimer']=setTimeout(()=>{const _0x5ac572=_0x31c9fc;this[_0x5ac572(0x2dc)]();let _0x423db3=null;switch(this[_0x5ac572(0x2af)]){case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x239)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x243)]:_0x423db3=this[_0x5ac572(0x3da)]['every'](_0x5f43d1=>_0x5f43d1['id']===_0x459006[_0x5ac572(0x20a)]['id'])?_0x1f4433(this['_pendingMutations'],this['unitID'],this[_0x5ac572(0x37d)],this['_revisionService'],this[_0x5ac572(0x342)]):_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x339)]:_0x423db3=_0x4c958f(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this['_memberService']);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x41d)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;case _0x47f753[_0x5ac572(0x3fc)][_0x5ac572(0x313)]:_0x423db3=_0x56f864(this[_0x5ac572(0x3da)],this[_0x5ac572(0x2ea)],this[_0x5ac572(0x37d)],this[_0x5ac572(0x105)],this[_0x5ac572(0x342)]);break;default:throw Error(_0x5ac572(0x1be)+this['type']+_0x5ac572(0x39e));}let {changeset:_0x17a977,pendingMutations:_0x176b59}=_0x423db3;this[_0x5ac572(0x13b)][_0x5ac572(0x244)](_0x17a977);let _0x35712=_0x176b59['length']?this[_0x5ac572(0x2fe)][_0x5ac572(0x392)](_0x15bd87,this[_0x5ac572(0x2ea)],this[_0x5ac572(0x2af)],_0x17a977,_0x176b59,this[_0x5ac572(0x13b)],void 0x0):this[_0x5ac572(0x2fe)]['createInstance'](_0x42dff3,this['unitID'],this[_0x5ac572(0x2af)],_0x17a977,this[_0x5ac572(0x13b)]);_0x35712[_0x5ac572(0x292)](),this['_handler'][_0x5ac572(0x2e0)](this,_0x35712);},_0x45c791);}['_getSendChangesetTimeout'](){const _0x26f588=_0x27b931;var _0xbf852b;let _0x2b55e7=this[_0x26f588(0x228)][_0x26f588(0x190)](_0x3c17be);return(_0xbf852b=_0x2b55e7==null?void 0x0:_0x2b55e7[_0x26f588(0x2f8)])==null?0x7d0:_0xbf852b;}[_0x27b931(0x36c)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x1e54c6=_0x27b931;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1e54c6(0xfe)]=null);}[_0x27b931(0x270)](_0x171a98){const _0x1564b2=_0x27b931;return this['_clearScheduledTask'](),this[_0x1564b2(0x2fe)][_0x1564b2(0x392)](_0x41f3d6,this['unitID'],this[_0x1564b2(0x2af)],null,this['_pendingMutations'],this[_0x1564b2(0x13b)],_0x171a98);}};_0x467875=_0x3fe01c=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x541d7d)),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUniverInstanceService']),_0x2af294(0xc,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x419224))],_0x467875);let _0x42dff3=_0x273481=class extends _0x245952{constructor(_0x4748fe,_0x271465,_0x2a93a7,_0x3bdc99,_0x204a6d,_0x445d70,_0x399cea,_0x5bbd19,_0x297c11,_0x2344af,_0x5ead2e){const _0x432940=_0x27b931;super(_0x4748fe,_0x271465,_0x2a93a7,[],_0x3bdc99,_0x399cea,_0x2344af,_0x445d70,_0x5ead2e),this[_0x432940(0x2fe)]=_0x204a6d,this[_0x432940(0x1a1)]=_0x5bbd19,this[_0x432940(0x14e)]=_0x297c11,_0x2dd74e(this,_0x432940(0x397),'awaiting'),_0x2dd74e(this,'_resendTimeout',0x0),_0x2dd74e(this,_0x432940(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0x432940(0x1e0),void 0x0);}[_0x27b931(0x219)](_0x4bfcd3){const _0x6c38e0=_0x27b931;this[_0x6c38e0(0x2dc)]();let _0x5e7f22=this[_0x6c38e0(0x2fe)][_0x6c38e0(0x392)](_0x15bd87,this['unitID'],this[_0x6c38e0(0x2af)],this[_0x6c38e0(0x1f7)],[_0x4bfcd3],this['_handler'],this[_0x6c38e0(0x2ac)]);return _0x5e7f22['_updateLocalCache'](),_0x5e7f22;}['onRemoteChangeset'](_0x4ed9db){const _0x244667=_0x27b931;if(this[_0x244667(0x16d)](_0x4ed9db))return this[_0x244667(0x2dc)](),this[_0x244667(0x2fe)][_0x244667(0x392)](_0x3b1a33,this[_0x244667(0x2ea)],this['type'],this[_0x244667(0x1f7)],[],null,[_0x4ed9db],this['_handler']);try{let _0x4c992c=this['_transformService']['transformChangesets']([_0x4ed9db],[this[_0x244667(0x1f7)]],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x4c992c)){let {c1Prime:_0x482d9d,c2Prime:_0x15fd72}=_0x4c992c;this[_0x244667(0x164)](_0x482d9d[0x0]),_0x15fd72[0x0]['baseRev']=this[_0x244667(0x319)](),this[_0x244667(0x2dc)]();let _0x505cb5=this['_injector'][_0x244667(0x392)](_0x273481,this[_0x244667(0x2ea)],this[_0x244667(0x2af)],_0x15fd72[0x0],this[_0x244667(0x13b)]);return _0x505cb5[_0x244667(0x292)](),_0x505cb5;}throw _0x4c992c[_0x244667(0x294)];}catch(_0x545e0b){return this[_0x244667(0x1a1)][_0x244667(0x294)](_0x545e0b),this[_0x244667(0x270)](!0x1);}}[_0x27b931(0x420)](_0x51cde3){const _0x50332c=_0x27b931;this[_0x50332c(0x2dc)]();let _0x55bbc0=this[_0x50332c(0x105)]['getCurrentRevOfUnit'](this[_0x50332c(0x2ea)]);if(_0x51cde3['revision']<=_0x55bbc0)return this;if(this[_0x50332c(0x16d)](_0x51cde3))return this['_injector'][_0x50332c(0x392)](_0x3b1a33,this[_0x50332c(0x2ea)],this[_0x50332c(0x2af)],this[_0x50332c(0x1f7)],[],_0x51cde3[_0x50332c(0xe7)],[],this[_0x50332c(0x13b)]);this[_0x50332c(0x1cd)]();let _0x1acb96=this['_injector']['createInstance'](_0x50a3a4,this[_0x50332c(0x2ea)],this['type'],this[_0x50332c(0x13b)]);return _0x1acb96[_0x50332c(0x292)](),_0x1acb96;}[_0x27b931(0xef)](_0x1ea7c4){const _0x51aca7=_0x27b931;return this[_0x51aca7(0x270)](!!(_0x1ea7c4!=null&&_0x1ea7c4[_0x51aca7(0x174)]));}[_0x27b931(0x21d)](_0x4087a7){const _0x4aacb7=_0x27b931;return this[_0x4aacb7(0x143)]>_0xb2329d?this[_0x4aacb7(0x229)]():(this[_0x4aacb7(0x2ac)]=_0xa9ec8e(this[_0x4aacb7(0x1ea)],{'timeout':this['_resendTimeout'],'reqId':_0x4087a7[_0x4aacb7(0x20d)]}),this['_sender']=this['_resendTimer'][_0x4aacb7(0x38e)](({reqId:_0x1dd7b8,timeout:_0x2a1172})=>{this['_resendWithTimeout'](_0x1dd7b8,_0x2a1172);}),this);}[_0x27b931(0x229)](){const _0x148910=_0x27b931;return this[_0x148910(0x2dc)](),this[_0x148910(0x2fe)][_0x148910(0x392)](_0x58261a,this[_0x148910(0x2ea)],this[_0x148910(0x2af)],this[_0x148910(0x1f7)],[],this[_0x148910(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x1efb13=_0x27b931;this[_0x1efb13(0x13b)][_0x1efb13(0x244)](this[_0x1efb13(0x1f7)]);}[_0x27b931(0x270)](_0x595b5a){const _0x1b7f3f=_0x27b931;return this[_0x1b7f3f(0x2dc)](),this[_0x1b7f3f(0x2fe)][_0x1b7f3f(0x392)](_0x41f3d6,this[_0x1b7f3f(0x2ea)],this[_0x1b7f3f(0x2af)],this['_awaitingChangeset'],[],this[_0x1b7f3f(0x13b)],_0x595b5a);}[_0x27b931(0x367)](_0x41b188,_0x3d0d10){const _0xe5273f=_0x27b931;var _0x4bd098;_0x41b188===((_0x4bd098=this[_0xe5273f(0x1f7)])==null?void 0x0:_0x4bd098[_0xe5273f(0x20d)])&&(this[_0xe5273f(0x36c)](),this[_0xe5273f(0x1ea)]=_0x3d0d10===0x0?0x3e8:Math[_0xe5273f(0x24b)](_0x3d0d10*0x2,_0x3d7ed8),this[_0xe5273f(0x143)]+=this[_0xe5273f(0x1ea)]);}[_0x27b931(0x2dc)](){const _0x198027=_0x27b931;var _0x377e74;(_0x377e74=this[_0x198027(0x1e0)])==null||_0x377e74[_0x198027(0x138)](),this[_0x198027(0x1ea)]=0x0,this[_0x198027(0x143)]=0x0;}};_0x42dff3=_0x273481=_0x1fb4c2([_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x6,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x7,_0x47f753['ILogService']),_0x2af294(0x8,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x42dff3);let _0x15bd87=_0xf27d34=class extends _0x245952{constructor(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x47303c,_0x42d343,_0x31be82,_0x38e4d3,_0x3f00ff,_0x51e1a3,_0x15d3d0,_0x3fa04e){const _0xe3a42b=_0x27b931;super(_0x5cae2d,_0x268ec7,_0x378a20,_0x29631c,_0x41d31f,_0x38e4d3,_0x15d3d0,_0x31be82,_0x3fa04e),this[_0xe3a42b(0x2fe)]=_0x42d343,this['_logService']=_0x3f00ff,this[_0xe3a42b(0x14e)]=_0x51e1a3,this[_0xe3a42b(0x23c)]=_0x3fa04e,_0x2dd74e(this,'status',_0xe3a42b(0x18d)),_0x2dd74e(this,_0xe3a42b(0x1ea),0x0),_0x2dd74e(this,_0xe3a42b(0x143),0x0),_0x2dd74e(this,'_resendTimer',void 0x0),_0x2dd74e(this,_0xe3a42b(0x1e0),void 0x0),_0x47303c&&(this[_0xe3a42b(0x2ac)]=_0x47303c,this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x5ad90b,timeout:_0x2fb45d})=>{const _0x18284c=_0xe3a42b;this[_0x18284c(0x367)](_0x5ad90b,_0x2fb45d);}));}[_0x27b931(0x219)](_0x3944dd){const _0x5b3eaa=_0x27b931;return this[_0x5b3eaa(0x3da)][_0x5b3eaa(0x30b)](_0x3944dd),this;}[_0x27b931(0xf7)](_0x43bd73){const _0x11dd14=_0x27b931;if(this['_checkMissing'](_0x43bd73))return this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)][_0x11dd14(0x392)](_0x3b1a33,this['unitID'],this[_0x11dd14(0x2af)],this[_0x11dd14(0x1f7)],this[_0x11dd14(0x3da)],null,[_0x43bd73],this[_0x11dd14(0x13b)]);try{let _0x11d314=this[_0x11dd14(0x14e)][_0x11dd14(0x211)]([_0x43bd73],[this['_awaitingChangeset']],!0x1);if((0x0,_0x149d12['isTransformChangesetsSuccess'])(_0x11d314)){let {c1Prime:_0x36e158,c2Prime:_0xa4f225}=_0x11d314,_0x55ec0f=this[_0x11dd14(0x14e)][_0x11dd14(0x17a)](_0x36e158[0x0],this['_pendingMutations']);if((0x0,_0x149d12[_0x11dd14(0x421)])(_0x55ec0f)){let {c1Prime:_0x1fddd4,m2Prime:_0x18ab84}=_0x55ec0f;return this[_0x11dd14(0x164)](_0x1fddd4),_0xa4f225[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x11dd14(0x2dc)](),this[_0x11dd14(0x2fe)]['createInstance'](_0xf27d34,this[_0x11dd14(0x2ea)],this['type'],_0xa4f225[0x0],_0x18ab84,this[_0x11dd14(0x13b)],void 0x0);}throw _0x55ec0f['error'];}throw _0x11d314[_0x11dd14(0x294)];}catch(_0x4fbe08){return this[_0x11dd14(0x1a1)]['error'](_0x4fbe08),this['_onConflict'](!0x1);}}[_0x27b931(0x420)](_0x95e346){const _0x5ca60b=_0x27b931;this[_0x5ca60b(0x2dc)]();let _0x49512a=this[_0x5ca60b(0x319)]();if(_0x95e346['revision']<=_0x49512a)return this;if(this[_0x5ca60b(0x16d)](_0x95e346))return this['_injector'][_0x5ca60b(0x392)](_0x3b1a33,this[_0x5ca60b(0x2ea)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],_0x95e346[_0x5ca60b(0xe7)],[],this[_0x5ca60b(0x13b)]);this[_0x5ca60b(0x1cd)]();let _0x2d5898=this[_0x5ca60b(0x2fe)][_0x5ca60b(0x392)](_0x467875,this[_0x5ca60b(0x2ea)],this['type'],this['_pendingMutations'],this['_handler']);return _0x2d5898[_0x5ca60b(0x34b)](),_0x2d5898[_0x5ca60b(0x292)](),_0x2d5898;}['onRemoteRej'](_0x57f853){const _0x5a8459=_0x27b931;return this[_0x5a8459(0x270)](!!(_0x57f853!=null&&_0x57f853[_0x5a8459(0x174)]));}[_0x27b931(0x21d)](_0x345f76){const _0x520876=_0x27b931;return this[_0x520876(0x143)]>_0xb2329d?this[_0x520876(0x229)]():(this[_0x520876(0x2ac)]=_0xa9ec8e(this['_resendTimeout'],{'timeout':this[_0x520876(0x1ea)],'reqId':_0x345f76['reqId']}),this[_0x520876(0x1e0)]=this[_0x520876(0x2ac)][_0x520876(0x38e)](({reqId:_0x7ffb81,timeout:_0x7d4633})=>{const _0xade1d9=_0x520876;this[_0xade1d9(0x367)](_0x7ffb81,_0x7d4633);}),this);}[_0x27b931(0x229)](){const _0xd05189=_0x27b931;return this[_0xd05189(0x2dc)](),this[_0xd05189(0x2fe)][_0xd05189(0x392)](_0x58261a,this[_0xd05189(0x2ea)],this[_0xd05189(0x2af)],this[_0xd05189(0x1f7)],this['_pendingMutations'],this[_0xd05189(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x417c48=_0x27b931;this['_handler'][_0x417c48(0x244)](this[_0x417c48(0x1f7)]);}['_onConflict'](_0x2f0e27){const _0x4f1741=_0x27b931;return this[_0x4f1741(0x2dc)](),this[_0x4f1741(0x2fe)]['createInstance'](_0x41f3d6,this[_0x4f1741(0x2ea)],this[_0x4f1741(0x2af)],null,this[_0x4f1741(0x3da)],this[_0x4f1741(0x13b)],_0x2f0e27);}[_0x27b931(0x367)](_0x78fb5c,_0x30fb6b){const _0x365b27=_0x27b931;var _0x2c2508;_0x78fb5c===((_0x2c2508=this[_0x365b27(0x1f7)])==null?void 0x0:_0x2c2508[_0x365b27(0x20d)])&&(this[_0x365b27(0x36c)](),this[_0x365b27(0x1ea)]=_0x30fb6b===0x0?0x3e8:Math[_0x365b27(0x24b)](_0x30fb6b*0x2,_0x3d7ed8),this[_0x365b27(0x143)]+=this['_resendTimeout']);}[_0x27b931(0x2dc)](){const _0x53af1c=_0x27b931;var _0x68ab8a;(_0x68ab8a=this[_0x53af1c(0x1e0)])==null||_0x68ab8a[_0x53af1c(0x138)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x15bd87=_0xf27d34=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x8,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xb,_0x47f753['IUndoRedoService']),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x419224))],_0x15bd87);let _0x41f3d6=class extends _0x245952{constructor(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x1e41b0=!0x1,_0x204bd9,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x4f471c,_0x18420f,_0x297cd0){const _0x3bfc05=_0x27b931;super(_0x19e308,_0x3fcbc9,_0x48c12a,_0x477105,_0x3220b3,_0x3d047f,_0x7e55d4,_0x3ddb7f,_0x297cd0),this[_0x3bfc05(0x251)]=_0x1e41b0,this['_permissionService']=_0x204bd9,this[_0x3bfc05(0x1ff)]=_0x4f471c,this[_0x3bfc05(0x11a)]=_0x18420f,this[_0x3bfc05(0x23c)]=_0x297cd0,_0x2dd74e(this,_0x3bfc05(0x397),_0x3bfc05(0x192)),this[_0x3bfc05(0x1b9)](),this['_clearLocalCache'](),this[_0x3bfc05(0xf9)]();}[_0x27b931(0x219)](){return this;}[_0x27b931(0xf7)](){return this;}[_0x27b931(0x420)](){return this;}[_0x27b931(0xef)](){return this;}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x36c)](){const _0x58b88d=_0x27b931;throw Error(_0x58b88d(0x3b4));}[_0x27b931(0x1bb)](){const _0xfb9183=_0x27b931;var _0x42b1b6,_0xf7e2c7,_0x2e10ed;(_0x42b1b6=this['_localCacheService'])==null||(_0xf7e2c7=_0x42b1b6['backupOfflineData'])==null||(_0xf7e2c7=_0xf7e2c7[_0xfb9183(0x25a)](_0x42b1b6,this[_0xfb9183(0x2ea)],_0xfb9183(0x192)))==null||_0xf7e2c7[_0xfb9183(0x29a)](()=>void 0x0),(_0x2e10ed=this['_localCacheService'])==null||_0x2e10ed[_0xfb9183(0x32a)](this['unitID'],this[_0xfb9183(0x2af)],null,[]);}[_0x27b931(0x1b9)](){const _0x17cfb3=_0x27b931;this['_isPermissionRej']?this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'PERMISSION_DENIED'}):this[_0x17cfb3(0x11a)][_0x17cfb3(0x1f8)]({'id':'CONFLICT'});}[_0x27b931(0xf9)](){const _0x2d9f39=_0x27b931;this[_0x2d9f39(0x373)][_0x2d9f39(0x1a8)](new _0x1e2709[(_0x2d9f39(0x1ec))](this['unitID'])['id'],!0x1);}};_0x41f3d6=_0x1fb4c2([_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x3ce)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0xa,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0xb,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x41f3d6);let _0x58261a=class extends _0x245952{constructor(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x1b2d6f,_0x3ca9ac,_0x292b5b,_0x33ae8e,_0x595459){const _0x294e0d=_0x27b931;super(_0x32f420,_0x58701e,_0x40fe08,_0x41497e,_0x48f67d,_0x292b5b,_0x33ae8e,_0x3ca9ac,_0x595459),this[_0x294e0d(0x2fe)]=_0x1b2d6f,_0x2dd74e(this,'status',_0x294e0d(0x37a));}[_0x27b931(0x219)](_0x326a58){const _0x3ff21c=_0x27b931;return this['_pendingMutations'][_0x3ff21c(0x30b)](_0x326a58),this[_0x3ff21c(0x292)](),this;}[_0x27b931(0xf7)](_0x3e8f63){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x27b931(0x420)](){const _0x2a5a00=_0x27b931;throw Error(_0x2a5a00(0x3d0));}[_0x27b931(0xef)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){return this;}[_0x27b931(0x2d1)](){const _0x398cd6=_0x27b931;let {_injector:_0x24537f,_pendingMutations:_0x23ca6e,_awaitingChangeset:_0x19d2e8,unitID:_0x1359e8,_handler:_0x4e383a,type:_0xbb3a5f}=this,_0x714acb=_0x1512ca(_0x24537f,_0x1359e8,_0xbb3a5f,_0x19d2e8,_0x23ca6e,_0x4e383a);return _0x714acb instanceof _0x467875?_0x714acb[_0x398cd6(0x34b)]():(_0x714acb instanceof _0x15bd87||_0x714acb instanceof _0x42dff3)&&_0x714acb['resend'](),_0x714acb;}['resend'](){const _0x39436b=_0x27b931;throw Error(_0x39436b(0x327));}};_0x58261a=_0x1fb4c2([_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x8,_0x47f753['IUndoRedoService']),_0x2af294(0x9,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x58261a);let _0x3b1a33=class extends _0x245952{constructor(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1e404c,_0x4a488b,_0x1738c2,_0x12d7ec,_0xd34bc4,_0x1a8734,_0x4b46f0,_0x4f66f8,_0x3cbe37,_0x34a70b){const _0x54c103=_0x27b931;super(_0x3cfcad,_0x5c20f7,_0x4c860f,_0x45ec50,_0x1738c2,_0x4b46f0,_0x4f66f8,_0xd34bc4,_0x34a70b),this['_acknowledgedAwaitingRevision']=_0x1e404c,this['_queuedRemoteChangesets']=_0x4a488b,this[_0x54c103(0x2fe)]=_0x12d7ec,this[_0x54c103(0x1a1)]=_0x1a8734,this[_0x54c103(0x14e)]=_0x3cbe37,this['localCacheService']=_0x34a70b,_0x2dd74e(this,_0x54c103(0x397),_0x54c103(0x11d));}[_0x27b931(0x2e2)](_0x223b16){const _0x1bbce3=_0x27b931;try{if(this[_0x1bbce3(0xe8)](_0x223b16)[_0x1bbce3(0x147)])throw Error(_0x1bbce3(0x3f2));if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x1bbce3(0xd0)]((_0x4935fb,_0x3813d5)=>_0x4935fb[_0x1bbce3(0xe7)]-_0x3813d5['revision']))[_0x1bbce3(0x147)])return this[_0x1bbce3(0x2fd)]=[],this[_0x1bbce3(0x292)](),this[_0x1bbce3(0x13b)][_0x1bbce3(0x2ab)]({'from':this[_0x1bbce3(0x319)](),'to':0x0}),this;let _0x3fbd01=this[_0x1bbce3(0x1f7)],_0x4ccd8d=this[_0x1bbce3(0x3da)],_0x50c95;if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]!==0x0)_0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x15bd87,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,_0x4ccd8d,this['_handler'],void 0x0);else{if(_0x3fbd01&&_0x4ccd8d[_0x1bbce3(0x415)]===0x0)_0x3fbd01[_0x1bbce3(0x250)]=this[_0x1bbce3(0x319)](),_0x50c95=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x42dff3,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x3fbd01,this[_0x1bbce3(0x13b)]);else{if(_0x4ccd8d[_0x1bbce3(0x415)]!==0x0){let _0x409812=this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x467875,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],_0x4ccd8d,this[_0x1bbce3(0x13b)]);_0x409812['_schedule'](),_0x50c95=_0x409812;}else _0x50c95=this[_0x1bbce3(0x2fe)]['createInstance'](_0x50a3a4,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x13b)]);}}return _0x50c95['_updateLocalCache'](),_0x50c95;}catch(_0x2d96ce){return this['_logService']['error'](_0x1bbce3(0x3e0),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2d96ce),this[_0x1bbce3(0x2fe)][_0x1bbce3(0x392)](_0x41f3d6,this[_0x1bbce3(0x2ea)],this[_0x1bbce3(0x2af)],this[_0x1bbce3(0x1f7)],this[_0x1bbce3(0x3da)],this[_0x1bbce3(0x13b)],!0x1);}}[_0x27b931(0xe8)](_0x3e7595){const _0x5096e8=_0x27b931;this[_0x5096e8(0x27e)]();for(let _0xe20e73=0x0;_0xe20e73<_0x3e7595['length'];_0xe20e73++){let _0xa16fa=_0x3e7595[_0xe20e73],_0x88cb28=this[_0x5096e8(0x319)]();if(!(_0xa16fa[_0x5096e8(0xe7)]<=_0x88cb28)){if(_0xa16fa[_0x5096e8(0xe7)]>_0x88cb28+0x1)return{'missingChangesets':!0x0};if(this[_0x5096e8(0x37b)](_0xa16fa)){this[_0x5096e8(0x2e1)]();continue;}this[_0x5096e8(0x144)](_0xa16fa),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x3d11a7){const _0x5a74ca=_0x27b931;let _0xdaf86f=_0x3d11a7,_0x4925f2=this['_awaitingChangeset'];if(_0x4925f2){let _0x387d39=this[_0x5a74ca(0x14e)][_0x5a74ca(0x211)]([_0x3d11a7],[_0x4925f2],!0x1);if(!(0x0,_0x149d12[_0x5a74ca(0x40e)])(_0x387d39))throw _0x387d39[_0x5a74ca(0x294)];_0xdaf86f=_0x387d39[_0x5a74ca(0x2b1)][0x0],_0x4925f2=_0x387d39[_0x5a74ca(0x134)][0x0];}let _0x480a5c=this[_0x5a74ca(0x3da)];if(_0x480a5c['length']){let _0x46151f=this[_0x5a74ca(0x14e)][_0x5a74ca(0x17a)](_0xdaf86f,_0x480a5c);if(!(0x0,_0x149d12[_0x5a74ca(0x421)])(_0x46151f))throw _0x46151f['error'];_0xdaf86f=_0x46151f[_0x5a74ca(0x2b1)],_0x480a5c=_0x46151f[_0x5a74ca(0x3b0)];}this['_executeRemoteChangeset'](_0xdaf86f),_0x4925f2&&(_0x4925f2[_0x5a74ca(0x250)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x4925f2,this[_0x5a74ca(0x3da)]=_0x480a5c;}['_acknowledgeAwaitingIfReady'](){const _0x6864a6=_0x27b931;if(!this[_0x6864a6(0x1f7)]||this[_0x6864a6(0x199)]==null)return;let _0x5b3fec=this[_0x6864a6(0x319)]();if(this['_acknowledgedAwaitingRevision']<=_0x5b3fec)throw Error(_0x6864a6(0x2b0)+this['_acknowledgedAwaitingRevision']+'.');this[_0x6864a6(0x199)]===_0x5b3fec+0x1&&this['_acknowledgeAwaiting']();}[_0x27b931(0x2e1)](){const _0x2efd38=_0x27b931;this[_0x2efd38(0x1cd)](),this[_0x2efd38(0x1f7)]=null,this[_0x2efd38(0x199)]=null;}[_0x27b931(0x37b)](_0x2e2752){const _0x3f8ffc=_0x27b931;let _0x26c8d0=this[_0x3f8ffc(0x1f7)];return!_0x26c8d0||!_0x26c8d0[_0x3f8ffc(0x2c9)]||_0x26c8d0['reqId']===null||_0x26c8d0[_0x3f8ffc(0x20d)]===void 0x0?!0x1:_0x2e2752[_0x3f8ffc(0x2ea)]===_0x26c8d0['unitID']&&_0x2e2752[_0x3f8ffc(0x2c9)]===_0x26c8d0[_0x3f8ffc(0x2c9)]&&_0x2e2752[_0x3f8ffc(0x20d)]===_0x26c8d0[_0x3f8ffc(0x20d)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x503f15){const _0x2e8e48=_0x27b931;return this[_0x2e8e48(0x3da)][_0x2e8e48(0x30b)](_0x503f15),this;}[_0x27b931(0xf7)](_0x277fb8){const _0x3b6bc8=_0x27b931;return this[_0x3b6bc8(0x2fd)][_0x3b6bc8(0x30b)](_0x277fb8),this;}[_0x27b931(0x420)](_0x3db218){const _0x586464=_0x27b931;if(this[_0x586464(0x1f7)]){let _0x339be2=this[_0x586464(0x319)]();return _0x3db218['revision']<=_0x339be2||(_0x339be2+0x1===_0x3db218['revision']?(this[_0x586464(0x1cd)](),this[_0x586464(0x1f7)]=null,this[_0x586464(0x199)]=null):this[_0x586464(0x199)]=_0x3db218['revision']),this;}if(_0x3db218['revision']<=this[_0x586464(0x319)]())return this;throw Error(_0x586464(0x365));}[_0x27b931(0xef)](_0x5bf8a3){const _0x23554b=_0x27b931;return this['_onConflict'](!!(_0x5bf8a3!=null&&_0x5bf8a3[_0x23554b(0x174)]));}[_0x27b931(0x21d)](){return this;}[_0x27b931(0x229)](){const _0x45970e=_0x27b931;return this[_0x45970e(0x2fe)][_0x45970e(0x392)](_0x58261a,this[_0x45970e(0x2ea)],this[_0x45970e(0x2af)],this[_0x45970e(0x1f7)],this['_pendingMutations'],this[_0x45970e(0x13b)]);}[_0x27b931(0x2d1)](){return this;}[_0x27b931(0x270)](_0x3eea07){const _0x10f9fb=_0x27b931;return this['_injector'][_0x10f9fb(0x392)](_0x41f3d6,this[_0x10f9fb(0x2ea)],this[_0x10f9fb(0x2af)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x10f9fb(0x13b)],_0x3eea07);}};_0x3b1a33=_0x1fb4c2([_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3aa)]),_0x2af294(0xc,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x3b1a33);function _0x1512ca(_0x4f7dbe,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff){const _0x1cf845=_0x27b931;return _0x127416&&_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe[_0x1cf845(0x392)](_0x15bd87,_0x272d92,_0x156cee,_0x127416,_0x4185a6,_0x59d0ff,void 0x0):_0x127416?_0x4f7dbe['createInstance'](_0x42dff3,_0x272d92,_0x156cee,_0x127416,_0x59d0ff):_0x4185a6[_0x1cf845(0x415)]?_0x4f7dbe['createInstance'](_0x467875,_0x272d92,_0x156cee,_0x4185a6,_0x59d0ff):_0x4f7dbe['createInstance'](_0x50a3a4,_0x272d92,_0x156cee,_0x59d0ff);}let _0x25f5ac=class extends _0x47f753[_0x27b931(0xf4)]{get[_0x27b931(0x311)](){const _0x2fa006=_0x27b931;return this[_0x2fa006(0x1b5)];}constructor(_0x213ced,_0x5b6284,_0x35a374,_0x14785b,_0x3417ab,_0x38c22f,_0x30fc17,_0x47d71a,_0x348e3d,_0xc68e03,_0x4f3939,_0x49b3ed,_0x326e0f,_0x337a0b){const _0x4cde78=_0x27b931;super(),this[_0x4cde78(0x2ea)]=_0x213ced,this[_0x4cde78(0x1ee)]=_0x5b6284,this[_0x4cde78(0x2f2)]=_0x35a374,this['_injector']=_0x14785b,this[_0x4cde78(0x39c)]=_0x3417ab,this[_0x4cde78(0x1ff)]=_0x38c22f,this[_0x4cde78(0x105)]=_0x30fc17,this[_0x4cde78(0x304)]=_0x47d71a,this[_0x4cde78(0x37d)]=_0x348e3d,this[_0x4cde78(0x1a1)]=_0xc68e03,this[_0x4cde78(0x38d)]=_0x4f3939,this[_0x4cde78(0x373)]=_0x49b3ed,this['_singleActiveUnitService']=_0x326e0f,this[_0x4cde78(0x189)]=_0x337a0b,_0x2dd74e(this,_0x4cde78(0xd4),new _0x470009[(_0x4cde78(0x25b))](null)),_0x2dd74e(this,_0x4cde78(0x3db),this[_0x4cde78(0xd4)][_0x4cde78(0x2b2)]()),_0x2dd74e(this,'_state',void 0x0),_0x2dd74e(this,_0x4cde78(0x3be),!0x1),_0x2dd74e(this,'_changesetSessionId',''),_0x2dd74e(this,_0x4cde78(0x2c7),0x0),_0x2dd74e(this,_0x4cde78(0x3cd),this['state$'][_0x4cde78(0x11f)]((0x0,_0x470009[_0x4cde78(0x394)])(_0x40f002=>_0x40f002?_0x40f002[_0x4cde78(0x397)]:_0x4cde78(0x37a)),(0x0,_0x470009['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x2dd74e(this,_0x4cde78(0x2b7),!0x1),_0x2dd74e(this,_0x4cde78(0x1d8),[]);}async[_0x27b931(0x362)](){const _0x2d2364=_0x27b931;if(this[_0x2d2364(0x311)])throw Error(_0x2d2364(0x2dd));await this[_0x2d2364(0xee)]();}[_0x27b931(0xe6)](){const _0x5c398c=_0x27b931;return this[_0x5c398c(0x3be)]=!0x0,(0x0,_0x47f753[_0x5c398c(0x21a)])(()=>{const _0x53e78f=_0x5c398c;this[_0x53e78f(0x3be)]=!0x1,this[_0x53e78f(0x173)]();});}[_0x27b931(0x289)](_0x432db0){this['_onLocalMutation'](_0x432db0);}[_0x27b931(0x3f5)](_0x37a638){const _0x16e3bf=_0x27b931;this['_state']=_0x37a638,this[_0x16e3bf(0xd4)][_0x16e3bf(0x396)](_0x37a638);}async[_0x27b931(0xee)](){const _0x3499e8=_0x27b931;if(this[_0x3499e8(0x3f5)](await this['_createInitialState']()),this[_0x3499e8(0x2ee)]){var _0x593177;(_0x593177=this['_singleActiveUnitService'])==null||_0x593177['editingUnit'](this[_0x3499e8(0x2ea)]),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x2ee)][_0x3499e8(0x119)](this['unitID'])['subscribe'](_0x5b4d1f=>{const _0x42d776=_0x3499e8;this[_0x42d776(0x1a1)][_0x42d776(0x418)](_0x42d776(0x237),'editing\x20status\x20changed\x20to',_0x5b4d1f),_0x5b4d1f===0x1?(this[_0x42d776(0x304)][_0x42d776(0x1f8)]({'id':_0x42d776(0x113)}),this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x1),this[_0x42d776(0x373)][_0x42d776(0x2ed)](!0x1)):(this[_0x42d776(0x373)]['updatePermissionPoint'](new _0x1e2709['WorkbookEditablePermission'](this[_0x42d776(0x2ea)])['id'],!0x0),this['_permissionService'][_0x42d776(0x2ed)](!0x0));}));}let _0x4fccd0=!0x1;return this[_0x3499e8(0x3d7)](this['session'][_0x3499e8(0x2f1)][_0x3499e8(0x38e)](_0x4de845=>{const _0x228b93=_0x3499e8;_0x4de845===0x3?this['_toggleOnline'](_0x4fccd0):_0x4de845===0x2&&(_0x4fccd0=!0x0,this[_0x228b93(0x158)]());})),this[_0x3499e8(0x3d7)](this[_0x3499e8(0x1ee)][_0x3499e8(0x2ef)]['subscribe'](_0x1b00d7=>{const _0x3df785=_0x3499e8;try{switch(_0x1b00d7['eventID']){case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x391)]:this[_0x3df785(0x306)]((0x0,_0x149d12['parseProtocolChangeset'])(_0x1b00d7['data']));break;case _0x149d12[_0x3df785(0x3eb)]['CHANGESET_ACK']:this[_0x3df785(0x1c4)](_0x1b00d7['data']);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x3ab)]:this[_0x3df785(0x307)]();break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x123)]:this[_0x3df785(0x372)](_0x1b00d7[_0x3df785(0x401)]);break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x2fb)]:this[_0x3df785(0x31f)](_0x1b00d7[_0x3df785(0x401)][_0x3df785(0x3a9)][_0x3df785(0x394)](_0x1cce04=>(0x0,_0x149d12[_0x3df785(0x3b3)])(_0x1cce04)));break;case _0x149d12[_0x3df785(0x3eb)][_0x3df785(0x168)]:this[_0x3df785(0x307)]({'isPermissionRej':!0x0});break;case _0x149d12['CollaborationEvent']['UNISCRIPT_RUN']:break;}}catch(_0x4c10aa){throw console[_0x3df785(0x294)](_0x3df785(0x33e),_0x4c10aa),_0x4c10aa;}})),this[_0x3499e8(0x1b5)];}['_unlockTransition'](){const _0x9a1961=_0x27b931;this[_0x9a1961(0x2b7)]=!0x1;}[_0x27b931(0x102)](){const _0x11c03b=_0x27b931;if(this[_0x11c03b(0x2b7)])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[_0x11c03b(0x2b7)]=!0x0;}[_0x27b931(0x37e)](_0x5b939a){const _0xe99e73=_0x27b931;this[_0xe99e73(0x102)](),this[_0xe99e73(0x3f5)](this['_state']['appendMutation'](_0x5b939a)),this[_0xe99e73(0x353)]();}[_0x27b931(0x306)](_0x37f8b1){const _0x1861e9=_0x27b931;if(!(_0x37f8b1['revision']<=this['_revisionService'][_0x1861e9(0x322)](this['unitID']))){if(this[_0x1861e9(0x3be)]){this[_0x1861e9(0x1d8)][_0x1861e9(0x30b)](_0x37f8b1);return;}this[_0x1861e9(0x126)](_0x37f8b1);}}[_0x27b931(0x173)](){const _0xe69977=_0x27b931;this[_0xe69977(0x1d8)][_0xe69977(0x302)](_0x6a6e40=>this[_0xe69977(0x126)](_0x6a6e40)),this[_0xe69977(0x1d8)]=[];}[_0x27b931(0x126)](_0x2c66d8){const _0x1180ae=_0x27b931;let _0x1b88ae=this['_compressMutationService'][_0x1180ae(0x183)][_0x1180ae(0x2a8)](this[_0x1180ae(0x39c)][_0x1180ae(0x183)][_0x1180ae(0x351)]()[_0x1180ae(0x188)])(_0x2c66d8['mutations'],null)||_0x2c66d8['mutations'],_0x2b3d70={..._0x2c66d8,'mutations':_0x1b88ae};this['_lockTransition'](),this[_0x1180ae(0x3f5)](this[_0x1180ae(0x1b5)]['onRemoteChangeset'](_0x2b3d70)),this[_0x1180ae(0x353)]();}['_onRemoteACK'](_0x591810){const _0x3c4969=_0x27b931;this[_0x3c4969(0x102)](),this['_updateState'](this[_0x3c4969(0x1b5)]['onRemoteAck'](_0x591810)),this[_0x3c4969(0x353)]();}[_0x27b931(0x307)](_0x7266a){const _0x3b79b9=_0x27b931;this[_0x3b79b9(0x102)](),this[_0x3b79b9(0x3f5)](this[_0x3b79b9(0x1b5)][_0x3b79b9(0xef)](_0x7266a)),this[_0x3b79b9(0x353)]();}[_0x27b931(0x372)](_0x344e02){const _0x1f8841=_0x27b931;this[_0x1f8841(0x102)](),this[_0x1f8841(0x3f5)](this[_0x1f8841(0x1b5)][_0x1f8841(0x21d)](_0x344e02)),this['_unlockTransition']();}[_0x27b931(0x31f)](_0x2832c4){const _0x344727=_0x27b931;if(!(this[_0x344727(0x1b5)]instanceof _0x3b1a33))throw TypeError(_0x344727(0x2b8));let _0x50a849=_0x2832c4[_0x344727(0x394)](_0x52cef1=>{const _0x5a47ff=_0x344727;let _0x426774=this[_0x5a47ff(0x39c)][_0x5a47ff(0x183)][_0x5a47ff(0x2a8)](this[_0x5a47ff(0x39c)]['interceptor'][_0x5a47ff(0x351)]()[_0x5a47ff(0x188)])(_0x52cef1[_0x5a47ff(0x35e)],null)||_0x52cef1[_0x5a47ff(0x35e)];return{..._0x52cef1,'mutations':_0x426774};});this[_0x344727(0x102)](),this['_updateState'](this[_0x344727(0x1b5)][_0x344727(0x2e2)](_0x50a849)),this[_0x344727(0x353)]();}[_0x27b931(0x158)](){const _0x389eb4=_0x27b931;this[_0x389eb4(0x102)](),this[_0x389eb4(0x3f5)](this[_0x389eb4(0x1b5)][_0x389eb4(0x229)]()),this[_0x389eb4(0x353)]();}[_0x27b931(0x2e8)](_0x3f8a72=!0x1){const _0x1aab48=_0x27b931;this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](this[_0x1aab48(0x1b5)][_0x1aab48(0x2d1)]()),this['_unlockTransition']();let _0x29bcbb=this[_0x1aab48(0x1b5)];_0x3f8a72&&_0x29bcbb instanceof _0x50a3a4&&(this[_0x1aab48(0x102)](),this[_0x1aab48(0x3f5)](_0x29bcbb['fetchMiss']()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x2944c7=>{const _0x1f2c28=_0x1420;this[_0x1f2c28(0x1ee)][_0x1f2c28(0x2f1)]['pipe']((0x0,_0x470009[_0x1f2c28(0x1c3)])(0x1))[_0x1f2c28(0x38e)](async _0x375609=>{const _0x1e4c9b=_0x1f2c28;_0x2944c7(await this[_0x1e4c9b(0x1ed)](_0x375609===0x3));});});}[_0x27b931(0x411)](){const _0x5086c9=_0x27b931;let _0x959ff8=this[_0x5086c9(0x2ea)];return{'onStateChange':(_0x351825,_0x5d09a4)=>{const _0x580568=_0x5086c9;if(_0x351825!==this[_0x580568(0x1b5)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x351825[_0x580568(0x397)]+_0x580568(0x347)+_0x5d09a4[_0x580568(0x397)]+_0x580568(0x293)+this[_0x580568(0x1b5)][_0x580568(0x397)]);this[_0x580568(0x3f5)](_0x5d09a4);},'onSendChangeset':_0x5aa354=>{const _0x34aa01=_0x5086c9;_0x5aa354[_0x34aa01(0x2c9)]||(_0x5aa354[_0x34aa01(0x2c9)]=this[_0x34aa01(0x2a6)],_0x5aa354[_0x34aa01(0x20d)]=++this[_0x34aa01(0x2c7)]);let _0x12f673={'eventID':_0x149d12['CollaborationEvent'][_0x34aa01(0x15e)],'data':{'unitID':_0x5aa354[_0x34aa01(0x2ea)],'unitType':this[_0x34aa01(0x2f2)],'changeset':_0x5aa354,'memberID':this[_0x34aa01(0x1ee)]['getMemberID']()}};this[_0x34aa01(0x1ee)][_0x34aa01(0x16b)](_0x12f673,this[_0x34aa01(0x2ea)]);},'onMissingChangesets':({from:_0x48bad9,to:_0x3088de})=>{const _0x368ac7=_0x5086c9;this['_logService']['debug'](_0x368ac7(0x237),_0x368ac7(0x2bb)+_0x48bad9+_0x368ac7(0x276)+_0x3088de);let _0x257d3c={'eventID':_0x149d12['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x959ff8,'unitType':this[_0x368ac7(0x2f2)],'from':_0x48bad9,'to':_0x3088de}};this['session'][_0x368ac7(0x16b)](_0x257d3c,this[_0x368ac7(0x2ea)]);}};}async['_createInitialStateImpl'](_0x45ae2e){const _0x2cabbe=_0x27b931;var _0x44c51d,_0x57b94c,_0x33e589;let _0x57a8b7=await((_0x44c51d=this[_0x2cabbe(0x189)])==null?void 0x0:_0x44c51d[_0x2cabbe(0x2e3)](this['unitID'])),_0x2460cc=(_0x57b94c=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x35e)])==null?[]:_0x57b94c,_0x56959=(_0x33e589=_0x57a8b7==null?void 0x0:_0x57a8b7[_0x2cabbe(0x1c8)])==null?null:_0x33e589,_0xa23cd9=!!(_0x56959!=null&&_0x56959[_0x2cabbe(0x2c9)])&&!!(_0x56959!=null&&_0x56959['reqId']);this[_0x2cabbe(0x2a6)]=_0xa23cd9?_0x56959[_0x2cabbe(0x2c9)]:(0x0,_0x149d12[_0x2cabbe(0x35f)])(),this['_changesetReqId']=_0xa23cd9?_0x56959[_0x2cabbe(0x20d)]:0x0;let _0x11a74a=this[_0x2cabbe(0x2ea)];try{this['_replayCachedMutations'](_0x56959,_0x2460cc);}catch(_0x4b6066){this['_logService'][_0x2cabbe(0x294)](_0x4b6066);}let _0x28c84d=this[_0x2cabbe(0x411)]();if(_0x45ae2e){let _0x4c8c19=_0x1512ca(this[_0x2cabbe(0x2fe)],_0x11a74a,this[_0x2cabbe(0x2f2)],_0x56959,_0x2460cc,_0x28c84d);return _0x4c8c19 instanceof _0x467875?_0x4c8c19['_schedule']():(_0x4c8c19 instanceof _0x15bd87||_0x4c8c19 instanceof _0x42dff3)&&_0x4c8c19[_0x2cabbe(0x36c)](),_0x4c8c19;}return this[_0x2cabbe(0x2fe)]['createInstance'](_0x58261a,_0x11a74a,this['_type'],_0x56959,_0x2460cc,_0x28c84d);}['_replayCachedMutations'](_0x47a513,_0x1b7f76){const _0x26793f=_0x27b931;var _0x451392,_0x44e41a;let _0x288efa=this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x2a8)](this[_0x26793f(0x39c)][_0x26793f(0x183)][_0x26793f(0x351)]()[_0x26793f(0x188)]);(_0x451392=_0x288efa((_0x47a513==null?void 0x0:_0x47a513['mutations'])||[],null))==null||_0x451392['forEach'](_0x41f747=>this[_0x26793f(0x38d)][_0x26793f(0x18e)](_0x41f747['id'],_0x41f747[_0x26793f(0xfc)])),(_0x44e41a=_0x288efa(_0x1b7f76||[],null))==null||_0x44e41a['forEach'](_0x16a42e=>this[_0x26793f(0x38d)]['executeCommand'](_0x16a42e['id'],_0x16a42e[_0x26793f(0xfc)]));}};_0x25f5ac=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x25f5ac);let _0x9eef43=class extends _0x25f5ac{constructor(_0x360220,_0x43aab0,_0x3ed42c,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x4f2e7d,_0x38285f,_0x2f8c07){const _0x723622=_0x27b931;super(_0x360220,_0x3ed42c,_0x43aab0,_0x54f7e7,_0x18a329,_0x1131d6,_0x276104,_0x1e868f,_0x50dc6b,_0x27a478,_0x2d9478,_0x516ac8,_0x38285f,_0x2f8c07),this['unitID']=_0x360220,this[_0x723622(0x2af)]=_0x43aab0,this['_docStateChangeManagerService']=_0x4f2e7d,_0x2dd74e(this,_0x723622(0x14a),null);}[_0x27b931(0x28e)](_0x2e0cac){const _0x5a703a=_0x27b931;this[_0x5a703a(0x14a)]=_0x2e0cac;}['dispose'](){const _0x2b23af=_0x27b931;this[_0x2b23af(0x14a)]=null,super['dispose']();}[_0x27b931(0x411)](){const _0x442eec=_0x27b931;let _0x972d6d=super[_0x442eec(0x411)]();return _0x972d6d[_0x442eec(0x384)]=_0x197c26=>{const _0x213cd9=_0x442eec;var _0x5cc0b4,_0x280017;return(_0x5cc0b4=this[_0x213cd9(0x14a)])==null||(_0x280017=_0x5cc0b4[_0x213cd9(0x384)])==null?void 0x0:_0x280017[_0x213cd9(0x25a)](_0x5cc0b4,_0x197c26);},_0x972d6d[_0x442eec(0x24d)]=_0x4bbb39=>{const _0x2f045b=_0x442eec;var _0x2ed162,_0x532721;return(_0x2ed162=this[_0x2f045b(0x14a)])==null||(_0x532721=_0x2ed162[_0x2f045b(0x24d)])==null?void 0x0:_0x532721[_0x2f045b(0x25a)](_0x2ed162,_0x4bbb39);},_0x972d6d[_0x442eec(0x3af)]=_0x313d8a=>{const _0x228152=_0x442eec;var _0x4a4e1b,_0x49bcc2;return(_0x4a4e1b=this[_0x228152(0x14a)])==null||(_0x49bcc2=_0x4a4e1b[_0x228152(0x3af)])==null?void 0x0:_0x49bcc2[_0x228152(0x25a)](_0x4a4e1b,_0x313d8a);},_0x972d6d[_0x442eec(0x10b)]=_0x48e349=>{const _0x19f322=_0x442eec;var _0x2f564e,_0x1c4efb;return(_0x2f564e=this['_handlerCallback'])==null||(_0x1c4efb=_0x2f564e[_0x19f322(0x10b)])==null?void 0x0:_0x1c4efb[_0x19f322(0x25a)](_0x2f564e,_0x48e349);},_0x972d6d[_0x442eec(0x291)]=_0x3b5c63=>{const _0x4a62d6=_0x442eec;var _0x23e1c1,_0x2d5631,_0x3dc779;return(_0x23e1c1=(_0x2d5631=this['_handlerCallback'])==null||(_0x3dc779=_0x2d5631[_0x4a62d6(0x291)])==null?void 0x0:_0x3dc779[_0x4a62d6(0x25a)](_0x2d5631,_0x3b5c63))==null?_0x3b5c63:_0x23e1c1;},_0x972d6d[_0x442eec(0x2d3)]=_0x2955bd=>{const _0x110ef3=_0x442eec;var _0x3bd4e2,_0x9c5a20,_0x1117ed;return(_0x3bd4e2=(_0x9c5a20=this['_handlerCallback'])==null||(_0x1117ed=_0x9c5a20[_0x110ef3(0x2d3)])==null?void 0x0:_0x1117ed[_0x110ef3(0x25a)](_0x9c5a20,_0x2955bd))==null?_0x2955bd:_0x3bd4e2;},_0x972d6d;}async[_0x27b931(0xee)](){const _0x86b725=_0x27b931;let _0x5d95b5=await super[_0x86b725(0xee)]();return this[_0x86b725(0x3d7)](this[_0x86b725(0x2c1)][_0x86b725(0x3b8)][_0x86b725(0x38e)](_0x239187=>{const _0x570333=_0x86b725;if(_0x239187==null||_0x239187[_0x570333(0x320)]!==this[_0x570333(0x2ea)])return;let {commandId:_0x103046,redoState:_0x31dd37,unitId:_0x576456}=_0x239187,_0x2a8435={'id':_0x103046,'type':_0x47f753['CommandType'][_0x570333(0x2fa)],'params':{'unitId':_0x576456,'actions':_0x31dd37[_0x570333(0x1b8)],'textRanges':null}};this[_0x570333(0x37e)](_0x2a8435);})),this['disposeWithMe'](this[_0x86b725(0x38d)][_0x86b725(0x176)]((_0x1770e8,_0xbef6e8)=>{const _0x2ea8db=_0x86b725;if(_0x1770e8[_0x2ea8db(0x2af)]!==_0x47f753[_0x2ea8db(0x222)][_0x2ea8db(0x2fa)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0x41c)]||_0xbef6e8!=null&&_0xbef6e8[_0x2ea8db(0xe0)]||_0x1770e8['id']===_0x459006['RichTextEditingMutation']['id'])return;let _0x375c89=_0x1770e8[_0x2ea8db(0xfc)];if((_0x375c89==null?void 0x0:_0x375c89[_0x2ea8db(0x320)])!==this[_0x2ea8db(0x2ea)])return;let _0x38fd45=_0x1770e8,_0xa6f5cf=this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x2a8)](this[_0x2ea8db(0x39c)][_0x2ea8db(0x183)][_0x2ea8db(0x351)]()[_0x2ea8db(0x11b)])([_0x38fd45],this[_0x2ea8db(0x37d)])||[_0x38fd45];this[_0x2ea8db(0x37e)](_0xa6f5cf[0x0]);})),_0x5d95b5;}};_0x9eef43=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753['Inject'])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x459006[_0x27b931(0x356)])),_0x2af294(0xd,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753['Optional'])(_0x419224))],_0x9eef43);let _0x5c3e77=class extends _0x25f5ac{constructor(_0x59db3b,_0x219289,_0xbe3a38,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c){const _0x298a15=_0x27b931;super(_0x59db3b,_0xbe3a38,_0x219289,_0x5e60fe,_0x2a6bf9,_0xb0e3ec,_0x851988,_0x42f89a,_0x222f94,_0xb3f9b0,_0x32e921,_0x5bbcaa,_0x300ad1,_0xb12d6c),this[_0x298a15(0x2ea)]=_0x59db3b,this[_0x298a15(0x2af)]=_0x219289;}async[_0x27b931(0xee)](){const _0x28f07e=_0x27b931;let _0x4c9bb0=await super[_0x28f07e(0xee)]();return this[_0x28f07e(0x3d7)](this[_0x28f07e(0x38d)]['onMutationExecutedForCollab']((_0x1179ce,_0x305f73)=>{const _0xe9a418=_0x28f07e;if(_0x1179ce['type']!==_0x47f753['CommandType'][_0xe9a418(0x2fa)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0x41c)]||_0x305f73!=null&&_0x305f73[_0xe9a418(0xe0)])return;let _0x22ec1b=_0x1179ce[_0xe9a418(0xfc)];if((_0x22ec1b==null?void 0x0:_0x22ec1b[_0xe9a418(0x320)])!==this[_0xe9a418(0x2ea)])return;let _0x3ec508=_0x1179ce,_0x57f982=this[_0xe9a418(0x39c)][_0xe9a418(0x183)]['fetchThroughInterceptors'](this[_0xe9a418(0x39c)][_0xe9a418(0x183)][_0xe9a418(0x351)]()[_0xe9a418(0x11b)])([_0x3ec508],this['_univerInstanceService'])||[_0x3ec508];this['_onLocalMutation'](_0x57f982[0x0]);})),_0x4c9bb0;}};_0x5c3e77=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['LocaleService'])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753['ILogService']),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5c3e77);let _0x151d10=class extends _0x25f5ac{constructor(_0x56d3b3,_0x962f4f,_0x4a5b9d,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x2441f5,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f){const _0x1ee84e=_0x27b931;super(_0x56d3b3,_0x4a5b9d,_0x962f4f,_0xa80cb0,_0x5c4e7e,_0x3e8af7,_0x40f5fc,_0x255643,_0x44acc7,_0xae2883,_0x11cecf,_0x77f54,_0x3a8bc1,_0x3bc65f),this[_0x1ee84e(0x2ea)]=_0x56d3b3,this['type']=_0x962f4f,this['_sheetTransformSelectionsService']=_0x2441f5;}[_0x27b931(0x411)](){const _0x3c126b=_0x27b931;let _0x5a8cbd=super[_0x3c126b(0x411)]();return _0x5a8cbd[_0x3c126b(0x3af)]=_0x24df1f=>this[_0x3c126b(0x187)][_0x3c126b(0x299)](_0x24df1f),_0x5a8cbd;}async[_0x27b931(0xee)](){const _0x4c985b=_0x27b931;let _0x568e46=await super[_0x4c985b(0xee)]();return this[_0x4c985b(0x3d7)](this[_0x4c985b(0x38d)][_0x4c985b(0x176)]((_0x2ea1f1,_0x17d655)=>{const _0xd58ba8=_0x4c985b;if(_0x2ea1f1[_0xd58ba8(0x2af)]!==_0x47f753[_0xd58ba8(0x222)][_0xd58ba8(0x2fa)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0x41c)]||_0x17d655!=null&&_0x17d655[_0xd58ba8(0xe0)])return;let _0x1efae4=_0x2ea1f1[_0xd58ba8(0xfc)];if((_0x1efae4==null?void 0x0:_0x1efae4[_0xd58ba8(0x320)])!==this[_0xd58ba8(0x2ea)])return;let _0x2683fd=_0x2ea1f1,_0x1ba3a3=this['_compressMutationService'][_0xd58ba8(0x183)][_0xd58ba8(0x2a8)](this['_compressMutationService']['interceptor'][_0xd58ba8(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x2683fd],this[_0xd58ba8(0x37d)])||[_0x2683fd];this['_onLocalMutation'](_0x1ba3a3[0x0]);})),_0x568e46;}};_0x151d10=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12['CompressMutationService'])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12['RevisionService'])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2e077e)),_0x2af294(0x8,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x9,_0x47f753[_0x27b931(0x235)]),_0x2af294(0xa,_0x47f753['ILogService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xc,_0x47f753['IPermissionService']),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xe,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x151d10);let _0x292824=class extends _0x25f5ac{constructor(_0x4285d6,_0x29417c,_0x46772c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294){const _0x11e54d=_0x27b931;super(_0x4285d6,_0x46772c,_0x29417c,_0x2b31e4,_0x3f3f95,_0x2e5381,_0x2b2595,_0x39431d,_0x129610,_0x4cf3ab,_0x10bdf0,_0x25c326,_0x2de6a2,_0x571294),this[_0x11e54d(0x2ea)]=_0x4285d6,this[_0x11e54d(0x2af)]=_0x29417c;}async[_0x27b931(0xee)](){const _0x31516e=_0x27b931;let _0x6e0cef=await super['_init']();return this[_0x31516e(0x3d7)](this[_0x31516e(0x38d)][_0x31516e(0x176)]((_0x840fae,_0x124705)=>{const _0x1db22e=_0x31516e;if(_0x840fae[_0x1db22e(0x2af)]!==_0x47f753[_0x1db22e(0x222)][_0x1db22e(0x2fa)]||_0x124705!=null&&_0x124705[_0x1db22e(0x41c)]||_0x124705!=null&&_0x124705['onlyLocal'])return;let _0x4f5dbb=_0x840fae[_0x1db22e(0xfc)];if((_0x4f5dbb==null?void 0x0:_0x4f5dbb[_0x1db22e(0x320)])!==this['unitID'])return;let _0x5c0389=_0x840fae,_0x35eeb2=this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x2a8)](this[_0x1db22e(0x39c)][_0x1db22e(0x183)][_0x1db22e(0x351)]()[_0x1db22e(0x11b)])([_0x5c0389],this['_univerInstanceService'])||[_0x5c0389];this[_0x1db22e(0x37e)](_0x35eeb2[0x0]);})),_0x6e0cef;}};_0x292824=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753['Inject'])(_0x2a71d9)),_0x2af294(0x8,_0x47f753['IUniverInstanceService']),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753['ICommandService']),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753['Optional'])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x292824);let _0x4b522f=class extends _0x25f5ac{constructor(_0x24d450,_0x1678a9,_0x1dbfb2,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2){const _0x3f9838=_0x27b931;super(_0x24d450,_0x1dbfb2,_0x1678a9,_0x21ca05,_0x12516f,_0x5756ae,_0x39fc1e,_0x5a4713,_0x461ffb,_0xaae6e,_0x299d45,_0x20c75b,_0x2c90fb,_0x3fd0c2),this[_0x3f9838(0x2ea)]=_0x24d450,this[_0x3f9838(0x2af)]=_0x1678a9;}async[_0x27b931(0xee)](){const _0x500416=_0x27b931;let _0x451db9=await super[_0x500416(0xee)]();return this[_0x500416(0x3d7)](this[_0x500416(0x38d)]['onMutationExecutedForCollab']((_0x4e5f02,_0x13e503)=>{const _0x59d4fb=_0x500416;if(_0x4e5f02['type']!==_0x47f753[_0x59d4fb(0x222)]['MUTATION']||_0x13e503!=null&&_0x13e503[_0x59d4fb(0x41c)]||_0x13e503!=null&&_0x13e503[_0x59d4fb(0xe0)])return;let _0x10fe65=_0x4e5f02[_0x59d4fb(0xfc)];if((_0x10fe65==null?void 0x0:_0x10fe65[_0x59d4fb(0x320)])!==this[_0x59d4fb(0x2ea)])return;let _0x1f5fdb=_0x4e5f02,_0x267e44=this['_compressMutationService'][_0x59d4fb(0x183)]['fetchThroughInterceptors'](this[_0x59d4fb(0x39c)][_0x59d4fb(0x183)][_0x59d4fb(0x351)]()['COMPRESS_MUTATION_SEND'])([_0x1f5fdb],this[_0x59d4fb(0x37d)])||[_0x1f5fdb];this[_0x59d4fb(0x37e)](_0x267e44[0x0]);})),_0x451db9;}};_0x4b522f=_0x1fb4c2([_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x37f)])),_0x2af294(0x5,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)])),_0x2af294(0x6,(0x0,_0x47f753['Inject'])(_0x149d12[_0x27b931(0x200)])),_0x2af294(0x7,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x8,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x9,_0x47f753[_0x27b931(0x370)]),_0x2af294(0xa,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0xb,_0x47f753[_0x27b931(0x3ce)]),_0x2af294(0xc,(0x0,_0x47f753[_0x27b931(0x233)])(_0x435069)),_0x2af294(0xd,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x4b522f);let _0x4501c7=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x3b5));function _0x44e4df(_0x331c06){const _0x16cd14=_0x27b931;let _0x2e9b78=_0x331c06[_0x16cd14(0x401)],_0x2a7bbe=JSON[_0x16cd14(0x283)](_0x2e9b78);switch(_0x2a7bbe[_0x16cd14(0x32c)]){case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x3df)]:case _0x26a654['CombCmd']['HELLO']:{let _0x25bc58=_0x2a7bbe[_0x16cd14(0x26a)];return{..._0x2a7bbe,'data':_0x25bc58,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x1e9)]:{let _0x25692a=_0x2a7bbe[_0x16cd14(0x19f)];return{..._0x2a7bbe,'data':_0x25692a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};}case _0x26a654[_0x16cd14(0x185)][_0x16cd14(0x34a)]:{let _0xb5b34a=_0x2a7bbe[_0x16cd14(0x3ad)];switch(_0xb5b34a[_0x16cd14(0x1a4)]){case _0x149d12['CollaborationEvent'][_0x16cd14(0x168)]:var _0x2485c0;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x2485c0=_0xb5b34a[_0x16cd14(0x13d)])==null?void 0x0:_0x2485c0['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x369)]:var _0x51237d;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x51237d=_0xb5b34a['csAckEvent'])==null?void 0x0:_0x51237d['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['NEW_CHANGESETS']:var _0x13ec9c;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x13ec9c=_0xb5b34a[_0x16cd14(0x2b4)])==null?void 0x0:_0x13ec9c['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['CHANGESET_REJ']:var _0x55dd82;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x55dd82=_0xb5b34a[_0x16cd14(0x2de)])==null?void 0x0:_0x55dd82['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x123)]:var _0x451eb1;return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':(_0x451eb1=_0xb5b34a[_0x16cd14(0x3d5)])==null?void 0x0:_0x451eb1['cs']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updateCursorEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x260)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0xeb)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x337)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2ba)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x3fb)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['liveShareNewHost']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x1f0)]:case _0x149d12['CollaborationEvent'][_0x16cd14(0x389)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x1db)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x318)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x3ed)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2a7bbe,'data':_0xb5b34a,'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['commentUpdateEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x12d)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a['updatePermissionObjEvent']},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)][_0x16cd14(0x2ae)]:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x2fc)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};case _0x149d12[_0x16cd14(0x3eb)]['UNISCRIPT_RUN']:return{..._0x2a7bbe,'data':{..._0xb5b34a,'data':_0xb5b34a[_0x16cd14(0x273)]},'cmd':_0x2a7bbe[_0x16cd14(0x32c)]};default:return _0x2a7bbe;}}default:return _0x2a7bbe;}}function _0x5db7a4(_0x58b983){const _0x49a4a1=_0x27b931;switch(_0x58b983[_0x49a4a1(0x32c)]){case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x3df)]:case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x40c)]:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)]});case _0x26a654[_0x49a4a1(0x185)][_0x49a4a1(0x264)]:{let _0x39c782;switch(_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]){case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x257)],'updateCursorEvent':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x337)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['USERS_LEAVE'],'leaveEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent']['USERS_ENTER']:_0x39c782={'eventID':_0x149d12['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x401)]};break;case _0x149d12['CollaborationEvent'][_0x49a4a1(0x3fb)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)]:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x389)],'liveShareOperation':_0x58b983['data']['data']};break;case _0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x318)]:_0x39c782={'eventID':_0x149d12['CollaborationEvent'][_0x49a4a1(0x318)],'liveShareTerminate':_0x58b983['data'][_0x49a4a1(0x401)]};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_REQUEST_HOST']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x382)],'liveShareRequestHost':_0x58b983[_0x49a4a1(0x401)]['data']};break;case _0x149d12[_0x49a4a1(0x3eb)]['LIVESHARE_FETCH_OPERATIONS']:_0x39c782={'eventID':_0x149d12[_0x49a4a1(0x3eb)][_0x49a4a1(0x1f0)]};break;default:_0x39c782={'eventID':_0x58b983[_0x49a4a1(0x401)][_0x49a4a1(0x1a4)]};}return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983['routeKey'],'collaMsg':_0x39c782});}case _0x26a654[_0x49a4a1(0x185)]['JOIN']:return JSON[_0x49a4a1(0x3e5)]({'cmd':_0x58b983['cmd'],'routeKey':_0x58b983['routeKey'],'joinReq':_0x58b983[_0x49a4a1(0x401)]});case _0x26a654[_0x49a4a1(0x185)]['LEAVE']:return JSON['stringify']({'cmd':_0x58b983[_0x49a4a1(0x32c)],'routeKey':_0x58b983[_0x49a4a1(0x31b)],'leaveReq':_0x58b983[_0x49a4a1(0x401)]});default:throw Error(_0x49a4a1(0x295));}}let _0x2bd014=(0x0,_0x47f753['createIdentifier'])('univer-pro.collaboration-client-socket-service');function _0x24f9db(_0x4bad50,_0x724b6c,_0x114b75){const _0x23a48e=_0x27b931;return _0x4bad50+'/'+_0x724b6c+_0x23a48e(0x288)+_0x114b75+_0x23a48e(0x3f6);}let _0x1bc98c=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x12ecdf,_0x42177a,_0x52a666,_0x2665c0,_0x119933){const _0x1deb8b=_0x27b931;super(),this['_injector']=_0x12ecdf,this[_0x1deb8b(0x3d8)]=_0x42177a,this[_0x1deb8b(0x228)]=_0x52a666,this[_0x1deb8b(0x1a1)]=_0x2665c0,this[_0x1deb8b(0x25f)]=_0x119933;}['_doCreateSocket'](_0x8f85ed){const _0xf8337a=_0x27b931;let _0x253316=this[_0xf8337a(0x2fe)][_0xf8337a(0x1ad)](_0x8f2da5[_0xf8337a(0x10a)]);if(!_0x253316)throw Error(_0xf8337a(0x3ee));let _0x355985=_0x253316[_0xf8337a(0x1fa)](_0x8f85ed);if(!_0x355985)throw Error(_0xf8337a(0x357));let _0x4402bd=new _0x47f753[(_0xf8337a(0x3bb))](),_0x715eff=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x2ad)][_0xf8337a(0x38e)](_0x4bf796=>_0x715eff['next'](_0x4bf796))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x715eff[_0xf8337a(0x32e)]()));let _0x1c7f9b=new _0x470009['Subject']();_0x4402bd[_0xf8337a(0x150)](_0x355985[_0xf8337a(0xe5)]['subscribe'](_0x5014ad=>_0x1c7f9b[_0xf8337a(0x396)](_0x5014ad))),_0x4402bd[_0xf8337a(0x150)]((0x0,_0x47f753[_0xf8337a(0x21a)])(()=>_0x1c7f9b[_0xf8337a(0x32e)]()));let _0x482733=new _0x470009[(_0xf8337a(0x256))]();_0x4402bd['add'](_0x355985[_0xf8337a(0x38c)][_0xf8337a(0x38e)](_0x597f18=>{let _0xf994c6=_0x44e4df(_0x597f18);_0x482733['next'](_0xf994c6);})),_0x4402bd['add']((0x0,_0x47f753['toDisposable'])(()=>_0x482733[_0xf8337a(0x32e)]()));let _0x44e985,_0x40f59a=()=>{const _0x5ccca5=_0xf8337a;_0x1c7f9b[_0x5ccca5(0x396)](new Event('connection\x20error')),_0x715eff[_0x5ccca5(0x396)](new Event(_0x5ccca5(0x325))),_0x44e985[_0x5ccca5(0x15b)]();};return _0x44e985={'memberID':'','close$':_0x715eff[_0xf8337a(0x2b2)](),'error$':_0x1c7f9b[_0xf8337a(0x2b2)](),'open$':_0x355985['open$'],'message$':_0x482733[_0xf8337a(0x2b2)](),'send':_0x10f839=>{const _0x2c830a=_0xf8337a;if(_0x10f839[_0x2c830a(0x32c)]===_0x26a654[_0x2c830a(0x185)][_0x2c830a(0x264)]){if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)][_0x2c830a(0x15e)]){this[_0x2c830a(0x3e6)](_0x44e985,_0x10f839['data'])[_0x2c830a(0x29a)](_0x43fac5=>{const _0x461914=_0x2c830a;this[_0x461914(0x1a1)][_0x461914(0x294)](_0x43fac5),_0x40f59a();});return;}if(_0x10f839['data'][_0x2c830a(0x1a4)]===_0x149d12[_0x2c830a(0x3eb)]['FETCH_MISSING']){let _0x18ecff=_0x10f839[_0x2c830a(0x401)];this['_fetchMissChangesets'](_0x18ecff)['then'](_0x5afb00=>{const _0x3b5bfd=_0x2c830a;_0x482733[_0x3b5bfd(0x396)]({'cmd':_0x26a654[_0x3b5bfd(0x185)]['RECV'],'code':_0x26a654[_0x3b5bfd(0x3d9)]['OK'],'routeKey':_0x18ecff[_0x3b5bfd(0x401)]['unitID'],'routeType':'','data':{'eventID':_0x149d12[_0x3b5bfd(0x3eb)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5afb00}}});})[_0x2c830a(0x29a)](_0x245f78=>{const _0x362abd=_0x2c830a;this[_0x362abd(0x1a1)][_0x362abd(0x294)](_0x245f78),_0x40f59a();});return;}}_0x355985[_0x2c830a(0x16b)](_0x5db7a4(_0x10f839));},'close':()=>{const _0x4faddb=_0xf8337a;_0x355985[_0x4faddb(0x15b)](),_0x4402bd[_0x4faddb(0x2bc)]();}},_0x44e985;}async['_submitChangeset'](_0x144ad5,_0x44d749){const _0x5caf5a=_0x27b931;var _0x1487b1;let {unitType:_0xf99c55,unitID:_0x2c0894,changeset:_0xa73b1d}=_0x44d749[_0x5caf5a(0x401)],_0x5dfa39={'unitID':_0x2c0894,'memberID':_0x144ad5['memberID'],'type':_0xf99c55,'changeset':(0x0,_0x149d12[_0x5caf5a(0x253)])(_0xa73b1d)},_0x2884c3=this[_0x5caf5a(0x228)][_0x5caf5a(0x190)](_0x3c17be),_0xa5beba=_0x24f9db((_0x1487b1=_0x2884c3==null?void 0x0:_0x2884c3[_0x5caf5a(0x17c)])==null?'/universer-api/comb':_0x1487b1,_0xf99c55,_0x2c0894);try{await this['_httpService'][_0x5caf5a(0x139)](_0xa5beba,{'body':_0x5dfa39});}catch(_0x326a4f){throw this[_0x5caf5a(0x1a1)][_0x5caf5a(0x294)](_0x5caf5a(0x3ae),_0x5caf5a(0x2cc)),_0x326a4f;}}async[_0x27b931(0x1a7)](_0x2eeea6){const _0x515513=_0x27b931;let {unitID:_0x493817,from:_0x46a51f,to:_0x43fbd7,unitType:_0x57edb8}=_0x2eeea6[_0x515513(0x401)];return(await this[_0x515513(0x25f)][_0x515513(0x206)]({'metadata':void 0x0},{'unitID':_0x493817,'type':_0x57edb8,'from':_0x46a51f,'to':_0x43fbd7}))['changesets'][_0x515513(0x394)](_0xd7955c=>((_0xd7955c[_0x515513(0x35e)]===null||_0xd7955c['mutations']===void 0x0)&&(_0xd7955c[_0x515513(0x35e)]=[]),_0xd7955c));}};_0x1bc98c=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753['ILogService']),_0x2af294(0x4,_0x149d12['ISnapshotServerService'])],_0x1bc98c);let _0x1e5735=(0x0,_0x47f753['createIdentifier'])(_0x27b931(0x12f));function _0x122337(_0x2b5089={}){const _0x395d9f=_0x27b931;return _0x2b5089['resolveUnit']?{'resolveUnit':_0x2b5089[_0x395d9f(0x1d2)]}:{'resolveUnit':_0x1a5cd5=>({'target':{'unitId':_0x1a5cd5[_0x395d9f(0x320)],'unitType':_0x1a5cd5[_0x395d9f(0x36a)]}})};}function _0x1e962d(_0x5844cf,_0x3d11da,_0x3e0fd7){const _0x54a3e7=_0x27b931;var _0x1b7df3;let _0x1b1a98=_0x3e0fd7[_0x54a3e7(0x216)]['endpoint'];if(_0x1b1a98!=null&&_0x1b1a98[_0x54a3e7(0x1d0)]()==='')throw Error(_0x54a3e7(0x3a4));if(!_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)])throw Error(_0x54a3e7(0x310));return{'localUnitId':_0x5844cf,'unitType':_0x3d11da,'target':{'endpoint':_0x1b1a98,'unitId':_0x3e0fd7[_0x54a3e7(0x216)][_0x54a3e7(0x320)],'unitType':(_0x1b7df3=_0x3e0fd7[_0x54a3e7(0x216)]['unitType'])==null?_0x3d11da:_0x1b7df3},'changeset':_0x3e0fd7[_0x54a3e7(0x142)]};}let _0xc5d6a5=class extends _0x47f753['Disposable']{constructor(_0xe241fe,_0x46acdf,_0x3cd971,_0x1dc87b,_0x2ab592,_0x5a1e86,_0x4543cb){const _0x431c60=_0x27b931;super(),this['_injector']=_0xe241fe,this[_0x431c60(0x1a1)]=_0x46acdf,this[_0x431c60(0x228)]=_0x3cd971,this['_socketService']=_0x1dc87b,this[_0x431c60(0x11a)]=_0x2ab592,this[_0x431c60(0x159)]=_0x5a1e86,this['_networkConditionService']=_0x4543cb,_0x2dd74e(this,_0x431c60(0x359),new Map()),_0x2dd74e(this,_0x431c60(0x1d5),new Map()),_0x2dd74e(this,_0x431c60(0x106),new Map()),_0x2dd74e(this,_0x431c60(0x180),new Map()),_0x2dd74e(this,_0x431c60(0x2ff),this[_0x431c60(0xd8)](void 0x0)[_0x431c60(0x2ff)][_0x431c60(0x2b2)]()),_0x2dd74e(this,_0x431c60(0x248),new _0x470009[(_0x431c60(0x25b))](0x0)),_0x2dd74e(this,_0x431c60(0x3cd),this[_0x431c60(0x248)][_0x431c60(0x2b2)]()),this['_listenToNetworkCondition']();}[_0x27b931(0x19c)](){const _0x275fc2=_0x27b931;this[_0x275fc2(0x2c0)]&&this[_0x275fc2(0x3d7)](this[_0x275fc2(0x2c0)][_0x275fc2(0x3f3)][_0x275fc2(0x38e)](_0x4fabf2=>{const _0x4f7c31=_0x275fc2;_0x4fabf2&&this[_0x4f7c31(0x3fe)](),_0x4fabf2||this[_0x4f7c31(0x180)]['forEach'](_0x5c6aa7=>this[_0x4f7c31(0x3ac)](_0x5c6aa7));}));}[_0x27b931(0x2bc)](){const _0x5a2cf5=_0x27b931;super[_0x5a2cf5(0x2bc)](),this['_socketChannels'][_0x5a2cf5(0x302)](_0x432fa3=>{const _0x2e9373=_0x5a2cf5;var _0x50c120,_0x315cdd;(_0x50c120=_0x432fa3[_0x2e9373(0x27d)])==null||_0x50c120[_0x2e9373(0x138)](),_0x432fa3[_0x2e9373(0x27d)]=null,this[_0x2e9373(0x1e7)](_0x432fa3),this[_0x2e9373(0x2a2)](_0x432fa3),this[_0x2e9373(0x26c)](_0x432fa3),(_0x315cdd=_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x321)]())==null||_0x315cdd[_0x2e9373(0x15b)](),_0x432fa3[_0x2e9373(0x2ff)][_0x2e9373(0x32e)]();}),this[_0x5a2cf5(0x180)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x302)](_0x1d0ca7=>_0x1d0ca7[_0x5a2cf5(0x2bc)]()),this[_0x5a2cf5(0x359)][_0x5a2cf5(0x249)](),this[_0x5a2cf5(0x106)][_0x5a2cf5(0x249)](),this['_status$'][_0x5a2cf5(0x32e)]();}async[_0x27b931(0x410)](_0x1819c1,_0x1f290b){const _0x273ec6=_0x27b931;if(this[_0x273ec6(0x359)][_0x273ec6(0xff)](_0x1819c1))return this[_0x273ec6(0x359)][_0x273ec6(0x1ad)](_0x1819c1);let _0x255179=this[_0x273ec6(0x1d5)][_0x273ec6(0x1ad)](_0x1819c1);if(_0x255179)return _0x255179;let _0x1d65dc=this[_0x273ec6(0x1ab)](_0x1819c1,_0x1f290b);this['_pendingSessions'][_0x273ec6(0xf6)](_0x1819c1,_0x1d65dc);try{return await _0x1d65dc;}finally{this[_0x273ec6(0x1d5)]['delete'](_0x1819c1);}}async['_createSession'](_0x5a4823,_0x413be3){const _0x177b2c=_0x27b931;let _0x55d621=await this['_resolveSessionIdentity'](_0x5a4823,_0x413be3),_0x546f14=this[_0x177b2c(0xd8)](_0x55d621[_0x177b2c(0x216)]['endpoint']);this[_0x177b2c(0x1a2)](_0x546f14);let _0x3a8cfc=this[_0x177b2c(0x2fe)][_0x177b2c(0x392)](_0x4ea072,_0x55d621,_0x546f14[_0x177b2c(0x2ff)][_0x177b2c(0x2b2)]());return this[_0x177b2c(0x359)][_0x177b2c(0xf6)](_0x5a4823,_0x3a8cfc),this[_0x177b2c(0x106)]['set'](_0x5a4823,_0x546f14[_0x177b2c(0xec)]),_0x3a8cfc;}[_0x27b931(0x230)](_0xb286ff){const _0x334672=_0x27b931;let _0x286274=this[_0x334672(0x359)]['get'](_0xb286ff),_0x10a6cb=this[_0x334672(0x106)]['get'](_0xb286ff);if(_0x286274&&(this[_0x334672(0x359)][_0x334672(0x274)](_0xb286ff),this['_sessionChannels']['delete'](_0xb286ff),_0x286274[_0x334672(0x15b)]()),_0x10a6cb&&!this[_0x334672(0x1b2)](_0x10a6cb)){var _0x27a697;let _0x3b6206=this['_socketChannels'][_0x334672(0x1ad)](_0x10a6cb);_0x3b6206==null||(_0x27a697=_0x3b6206['socket$']['getValue']())==null||_0x27a697[_0x334672(0x15b)]();}}['reconnect'](){const _0x5b7e5f=_0x27b931;(this[_0x5b7e5f(0x180)][_0x5b7e5f(0x1f6)]?[...this['_socketChannels'][_0x5b7e5f(0x32f)]()]:[this['_getSocketChannel'](void 0x0)])[_0x5b7e5f(0x302)](_0x54ba58=>{const _0x3ea5da=_0x5b7e5f;_0x54ba58[_0x3ea5da(0x195)]=0x0,this[_0x3ea5da(0x1e7)](_0x54ba58),this[_0x3ea5da(0x3c4)](_0x54ba58);});}[_0x27b931(0x1e7)](_0x1fb1da){const _0xf670da=_0x27b931;_0x1fb1da[_0xf670da(0x170)]!=null&&(clearTimeout(_0x1fb1da[_0xf670da(0x170)]),_0x1fb1da[_0xf670da(0x170)]=null);}async[_0x27b931(0x175)](_0x5657f7){const _0x1acdac=_0x27b931;var _0x12a158,_0x5e20a2;let _0x5f56ea=this['_configService'][_0x1acdac(0x190)](_0x3c17be),_0x35bf01=(_0x12a158=(_0x5e20a2=_0x5657f7[_0x1acdac(0x2e4)])==null?_0x5f56ea==null?void 0x0:_0x5f56ea[_0x1acdac(0x3d2)]:_0x5e20a2)==null?_0x5f4f64:_0x12a158,_0x208712=await this[_0x1acdac(0x2ca)][_0x1acdac(0x1fa)](_0x35bf01);return _0x5657f7[_0x1acdac(0x15c)]=_0x208712,_0x208712;}async[_0x27b931(0x1a2)](_0xabb92e){const _0x510fe3=_0x27b931;try{var _0x403d6b,_0x4b673b;let _0x4320e4=(_0x403d6b=(_0x4b673b=_0xabb92e[_0x510fe3(0x2ff)]['getValue']())==null?_0xabb92e[_0x510fe3(0x15c)]:_0x4b673b)==null?await this[_0x510fe3(0x175)](_0xabb92e):_0x403d6b;if(_0x4320e4){var _0x1bb48b;let _0x4e57aa=_0x4320e4[_0x510fe3(0x16b)];_0x4320e4[_0x510fe3(0x16b)]=_0x29c18d=>(_0x29c18d[_0x510fe3(0x32c)]!==_0x26a654[_0x510fe3(0x185)]['LEAVE']&&this[_0x510fe3(0x308)](_0xabb92e),_0x4e57aa['apply'](_0x4320e4,[_0x29c18d])),(_0x1bb48b=_0xabb92e[_0x510fe3(0x27d)])==null||_0x1bb48b[_0x510fe3(0x138)](),_0xabb92e[_0x510fe3(0x27d)]=null,_0xabb92e['socketMessageSubscription']=_0x4320e4[_0x510fe3(0x38c)]['subscribe'](_0x4dd7db=>this[_0x510fe3(0x1bc)](_0xabb92e,_0x4320e4,_0x4dd7db)),_0x4320e4[_0x510fe3(0xe5)][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](_0x24dae4=>this['_logService'][_0x510fe3(0x294)]('[CollaborationSessionService]:\x20socket\x20error',_0x24dae4)),_0x4320e4['open$'][_0x510fe3(0x11f)]((0x0,_0x5ba228['take'])(0x1))[_0x510fe3(0x38e)](()=>{this['_onConnectionOpen'](_0xabb92e,_0x4320e4);}),_0x4320e4[_0x510fe3(0x2ad)]['pipe']((0x0,_0x5ba228[_0x510fe3(0x1c3)])(0x1))[_0x510fe3(0x38e)](_0x227618=>{const _0x1e95a0=_0x510fe3;this['_logService']['debug'](_0x1e95a0(0x1e6),_0x1e95a0(0x15f),_0x227618),this[_0x1e95a0(0xe9)](_0xabb92e);});}}catch(_0x54ff90){this[_0x510fe3(0x1a1)][_0x510fe3(0x294)](_0x54ff90),this[_0x510fe3(0xe9)](_0xabb92e);}}[_0x27b931(0x32b)](_0x438863,_0x15786c){const _0x4df184=_0x27b931;this[_0x4df184(0x1a1)][_0x4df184(0x418)](_0x4df184(0x1e6),'socket\x20open.'),_0x15786c['send']({'cmd':_0x26a654[_0x4df184(0x185)][_0x4df184(0x40c)]}),this[_0x4df184(0x308)](_0x438863);}[_0x27b931(0x3ac)](_0x1ed5de){const _0x1fd552=_0x27b931;_0x1ed5de['socketReady']=!0x1,_0x1ed5de['candidateSocket']=null,this['_status$'][_0x1fd552(0x396)](0x2),_0x1ed5de[_0x1fd552(0x2ff)][_0x1fd552(0x396)](null),this[_0x1fd552(0x2a2)](_0x1ed5de),this['_clearHeartbeatTimer'](_0x1ed5de);}[_0x27b931(0xe9)](_0x1e4bb6){const _0x11b849=_0x27b931;var _0x3fcb6a;this[_0x11b849(0x3ac)](_0x1e4bb6),this[_0x11b849(0x1b2)](_0x1e4bb6[_0x11b849(0xec)])&&(_0x1e4bb6[_0x11b849(0x195)]<((_0x3fcb6a=this[_0x11b849(0x228)][_0x11b849(0x190)](_0x11b849(0x30d)))==null?0x3:_0x3fcb6a)?(this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x35c)}),this[_0x11b849(0x3c4)](_0x1e4bb6)):this[_0x11b849(0x11a)][_0x11b849(0x1f8)]({'id':_0x11b849(0x245)}));}[_0x27b931(0x3c4)](_0x2c7a8d){const _0x36ef33=_0x27b931;var _0x5b5767;let _0x11a395=_0x2c7a8d['retryCount'],_0x3032a2=this[_0x36ef33(0x228)][_0x36ef33(0x190)](_0x3c17be),_0x2dffb8=_0x11a395===0x0?0x0:((_0x5b5767=_0x3032a2==null?void 0x0:_0x3032a2[_0x36ef33(0x29f)])==null?0x4e20:_0x5b5767)*0x2**_0x11a395;_0x2c7a8d[_0x36ef33(0x170)]=setTimeout(()=>{const _0x488c91=_0x36ef33;clearTimeout(_0x2c7a8d['retryConnectingTimer']),_0x2c7a8d[_0x488c91(0x170)]=null,this['_tryEnsureSocket'](_0x2c7a8d);},_0x2dffb8),_0x2c7a8d['retryCount']+=0x1;}async[_0x27b931(0x1d9)](_0x583e2d,_0x5acd42){const _0x3a4866=_0x27b931;return _0x1e962d(_0x583e2d,_0x5acd42,await this['_adapter'][_0x3a4866(0x1d2)]({'unitId':_0x583e2d,'unitType':_0x5acd42}));}[_0x27b931(0x1bc)](_0xa23bef,_0x1b0fc9,_0xa50696){const _0x571fe3=_0x27b931;let {cmd:_0x3bef68}=_0xa50696;_0x3bef68===_0x26a654['CombCmd'][_0x571fe3(0x40c)]&&!_0xa23bef[_0x571fe3(0x161)]&&(_0x1b0fc9[_0x571fe3(0x1aa)]=_0xa50696[_0x571fe3(0x401)]['memberID'],_0xa23bef[_0x571fe3(0x2ff)][_0x571fe3(0x396)](_0x1b0fc9),this['_status$']['next'](0x3),_0xa23bef[_0x571fe3(0x161)]=!0x0,_0xa23bef[_0x571fe3(0x15c)]=null),_0x3bef68===_0x26a654[_0x571fe3(0x185)][_0x571fe3(0x3df)]&&this[_0x571fe3(0x2a2)](_0xa23bef),this['_rescheduleHeartbeat'](_0xa23bef);}['_hasSessionsForEndpoint'](_0x3b85af){const _0x135026=_0x27b931;return[...this[_0x135026(0x106)][_0x135026(0x32f)]()][_0x135026(0x405)](_0x157242=>_0x157242===_0x3b85af);}[_0x27b931(0xd8)](_0xacdc69){const _0xba3e4f=_0x27b931;let _0x565502=_0xacdc69==null?'':_0xacdc69,_0x50b750=this[_0xba3e4f(0x180)][_0xba3e4f(0x1ad)](_0x565502);if(_0x50b750)return _0x50b750;let _0x38ec8e={'endpointKey':_0x565502,'endpoint':_0xacdc69,'socket$':new _0x470009[(_0xba3e4f(0x25b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0xba3e4f(0x180)][_0xba3e4f(0xf6)](_0x565502,_0x38ec8e),_0x38ec8e;}[_0x27b931(0x308)](_0x266b89){const _0x455b90=_0x27b931;var _0x2b05d8;this[_0x455b90(0x26c)](_0x266b89),_0x266b89[_0x455b90(0x3f9)]=setTimeout(()=>this['_sendHeartbeat'](_0x266b89),(_0x2b05d8=this[_0x455b90(0x228)]['getConfig'](_0x455b90(0xd9)))==null?0x7530:_0x2b05d8);}[_0x27b931(0x16c)](_0x5275c7){const _0x307ef8=_0x27b931;_0x5275c7[_0x307ef8(0x2ff)]['getValue']()['send']({'cmd':_0x26a654['CombCmd']['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x5275c7);}[_0x27b931(0x226)](_0x119c39){const _0x54f9a0=_0x27b931;var _0x427f65;_0x119c39[_0x54f9a0(0x17b)]=setTimeout(()=>this[_0x54f9a0(0xe9)](_0x119c39),(_0x427f65=this[_0x54f9a0(0x228)][_0x54f9a0(0x190)]('HEARTBEAT_TIMEOUT'))==null?_0x1dfc3f:_0x427f65);}[_0x27b931(0x26c)](_0x947f5){const _0x33b20=_0x27b931;_0x947f5[_0x33b20(0x3f9)]!=null&&(clearTimeout(_0x947f5[_0x33b20(0x3f9)]),_0x947f5[_0x33b20(0x3f9)]=null);}[_0x27b931(0x2a2)](_0x1040d3){const _0x60c6e9=_0x27b931;_0x1040d3[_0x60c6e9(0x17b)]!=null&&(clearTimeout(_0x1040d3['timeoutTimer']),_0x1040d3[_0x60c6e9(0x17b)]=null);}};_0xc5d6a5=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x2bd014),_0x2af294(0x4,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x2a71d9)),_0x2af294(0x5,_0x1e5735),_0x2af294(0x6,(0x0,_0x47f753[_0x27b931(0x233)])(_0x4501c7))],_0xc5d6a5);let _0x203f75=class extends _0x47f753[_0x27b931(0xf4)]{constructor(_0x1c807d,_0x306dec,_0x2c930c,_0x8a7cca){const _0x368a3a=_0x27b931;var _0x1082cc;super(),this[_0x368a3a(0x2fe)]=_0x1c807d,this[_0x368a3a(0x282)]=_0x306dec,this['_configService']=_0x2c930c,this['_univerInstanceService']=_0x8a7cca,_0x2dd74e(this,_0x368a3a(0x3cc),new Map()),_0x2dd74e(this,_0x368a3a(0x2d8),new _0x470009['Subject']()),_0x2dd74e(this,_0x368a3a(0x2a3),this[_0x368a3a(0x2d8)][_0x368a3a(0x2b2)]()),((_0x1082cc=this[_0x368a3a(0x228)][_0x368a3a(0x190)]('collaboration-client.config'))==null?void 0x0:_0x1082cc[_0x368a3a(0x275)])!==!0x1&&this[_0x368a3a(0xee)]();}['dispose'](){const _0x52577f=_0x27b931;super[_0x52577f(0x2bc)](),this[_0x52577f(0x3cc)][_0x52577f(0x302)](_0x2ccd7b=>_0x2ccd7b[_0x52577f(0x2bc)]()),this[_0x52577f(0x3cc)]['clear']();}[_0x27b931(0x153)](_0x157e12){var _0x380f6b;return(_0x380f6b=this['_entities']['get'](_0x157e12))==null?null:_0x380f6b;}[_0x27b931(0x151)](_0x1f8902){const _0x596fba=_0x27b931;let _0xdcbc4d=this[_0x596fba(0x153)](_0x1f8902);return _0xdcbc4d?(0x0,_0x470009['of'])(_0xdcbc4d):this['_entityInit$'][_0x596fba(0x11f)]((0x0,_0x5ba228[_0x596fba(0x12e)])(_0x575159=>_0x575159[_0x596fba(0x2ea)]===_0x1f8902));}[_0x27b931(0x346)](_0x261641){const _0x338c60=_0x27b931;return(0x0,_0x470009['firstValueFrom'])(this[_0x338c60(0x151)](_0x261641)['pipe']((0x0,_0x5ba228['map'])(()=>void 0x0)));}[_0x27b931(0xee)](){const _0x132b41=_0x27b931;this['_univerInstanceService'][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228['delay'])(0x10))['subscribe'](async _0x34786d=>{const _0x11bcc3=_0x132b41;let _0x10cab0=_0x34786d['unit'][_0x11bcc3(0x3f1)](),_0x336efa=await this['_startCollaboration'](_0x10cab0,_0x47f753[_0x11bcc3(0x3fc)][_0x11bcc3(0x239)]);this[_0x11bcc3(0x3cc)][_0x11bcc3(0xf6)](_0x10cab0,_0x336efa);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x243)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))['pipe']((0x0,_0x5ba228['filter'])(_0xad0059=>!_0xad0059[_0x132b41(0x191)][_0x132b41(0x3f1)]()['startsWith']('__')))[_0x132b41(0x38e)](async _0x2dfdef=>{const _0x168ed0=_0x132b41;let _0x525fc8=_0x2dfdef[_0x168ed0(0x191)]['getUnitId'](),_0x22a696=await this[_0x168ed0(0x220)](_0x525fc8,_0x47f753['UniverInstanceType'][_0x168ed0(0x243)]);this[_0x168ed0(0x3cc)][_0x168ed0(0xf6)](_0x525fc8,_0x22a696);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)])[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x38a096=>{const _0x1c14ec=_0x132b41;let _0x31019d=_0x38a096['unit']['getUnitId'](),_0x4dec06=await this['_startCollaboration'](_0x31019d,_0x47f753[_0x1c14ec(0x3fc)][_0x1c14ec(0x339)]);this[_0x1c14ec(0x3cc)][_0x1c14ec(0xf6)](_0x31019d,_0x4dec06);}),this[_0x132b41(0x37d)][_0x132b41(0x3d6)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)])['pipe']((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228[_0x132b41(0xfa)])(0x10))[_0x132b41(0x38e)](async _0x2d7b66=>{const _0x18b966=_0x132b41;let _0xde6610=_0x2d7b66[_0x18b966(0x191)][_0x18b966(0x3f1)](),_0x32790f=await this[_0x18b966(0x220)](_0xde6610,_0x47f753['UniverInstanceType'][_0x18b966(0x41d)]);this[_0x18b966(0x3cc)]['set'](_0xde6610,_0x32790f);}),this[_0x132b41(0x37d)]['getTypeOfUnitAdded$'](_0x47f753['UniverInstanceType'][_0x132b41(0x313)])[_0x132b41(0x11f)]((0x0,_0x470009[_0x132b41(0xdc)])(this['dispose$']),(0x0,_0x5ba228['delay'])(0x10))[_0x132b41(0x38e)](async _0x175386=>{const _0x4cddbc=_0x132b41;let _0x4bc7d8=_0x175386['unit'][_0x4cddbc(0x3f1)](),_0x35bcec=await this['_startCollaboration'](_0x4bc7d8,_0x47f753[_0x4cddbc(0x3fc)][_0x4cddbc(0x313)]);this[_0x4cddbc(0x3cc)][_0x4cddbc(0xf6)](_0x4bc7d8,_0x35bcec);}),(0x0,_0x470009[_0x132b41(0x407)])(this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x239)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753['UniverInstanceType']['UNIVER_DOC']),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x339)]),this[_0x132b41(0x37d)][_0x132b41(0x28a)](_0x47f753[_0x132b41(0x3fc)][_0x132b41(0x41d)]),this['_univerInstanceService'][_0x132b41(0x28a)](_0x47f753['UniverInstanceType'][_0x132b41(0x313)]))[_0x132b41(0x11f)]((0x0,_0x470009['takeUntil'])(this[_0x132b41(0x18b)]))[_0x132b41(0x38e)](_0x2710e8=>{const _0x57c330=_0x132b41;let _0x16e39f=_0x2710e8[_0x57c330(0x3f1)](),_0x3619fa=this[_0x57c330(0x3cc)]['get'](_0x16e39f);_0x3619fa&&(_0x3619fa[_0x57c330(0x2bc)](),this[_0x57c330(0x3cc)][_0x57c330(0x274)](_0x16e39f));});}async['_startCollaboration'](_0x46d33d,_0x13a62d){const _0x40d43b=_0x27b931;let _0x162442=await this[_0x40d43b(0x282)][_0x40d43b(0x410)](_0x46d33d),_0x3a4fdc=this['_injector'][_0x40d43b(0x392)](this['_getCtorByUniverInstanceType'](_0x13a62d),_0x46d33d,_0x13a62d,_0x162442);return await _0x3a4fdc[_0x40d43b(0x362)](),this[_0x40d43b(0x2d8)][_0x40d43b(0x396)](_0x3a4fdc),_0x3a4fdc;}[_0x27b931(0x2b3)](_0x14ed04){const _0x340e64=_0x27b931;switch(_0x14ed04){case _0x47f753[_0x340e64(0x3fc)]['UNIVER_DOC']:return _0x9eef43;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x239)]:return _0x151d10;case _0x47f753['UniverInstanceType'][_0x340e64(0x339)]:return _0x292824;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x41d)]:return _0x4b522f;case _0x47f753[_0x340e64(0x3fc)][_0x340e64(0x313)]:return _0x5c3e77;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x14ed04);}}};_0x203f75=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753['Injector'])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0xc5d6a5)),_0x2af294(0x2,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x3,_0x47f753[_0x27b931(0x235)])],_0x203f75);var _0x58d19e='@univerjs-pro/collaboration-client',_0x4c6d06=_0x27b931(0x100);let _0x43ec5e=class extends _0x47f753['Disposable']{constructor(_0x4bc8ae,_0x21d0a3){const _0x49d4e5=_0x27b931;super(),this[_0x49d4e5(0x37d)]=_0x4bc8ae,this['_configService']=_0x21d0a3,this['_init']();}[_0x27b931(0xee)](){const _0x5320d0=_0x27b931;this[_0x5320d0(0x3d7)](this[_0x5320d0(0x37d)]['focused$'][_0x5320d0(0x38e)](()=>{const _0x1fa01a=_0x5320d0;var _0x580932;let _0x3feb73=this[_0x1fa01a(0x37d)]['getFocusedUnit'](),_0x4d9279=(_0x580932=this['_configService'][_0x1fa01a(0x190)]('DEFAULT_FILE_NAME'))==null?_0x1fa01a(0x20e):_0x580932;_0x3feb73 instanceof _0x47f753['Workbook']&&(_0x4d9279=_0x3feb73['name']),document[_0x1fa01a(0x22f)]=_0x4d9279;}));}};_0x43ec5e=_0x1fb4c2([_0x2af294(0x0,_0x47f753['IUniverInstanceService']),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)])],_0x43ec5e);let _0x46b0a8=function(_0x4bc59d){const _0x418614=_0x27b931;return _0x4bc59d[_0x418614(0x323)]=_0x418614(0x323),_0x4bc59d[_0x418614(0x403)]='UUID',_0x4bc59d[_0x418614(0x2f0)]=_0x418614(0x2f0),_0x4bc59d;}({}),_0x4f7a6f=(0x0,_0x47f753[_0x27b931(0xfd)])(_0x27b931(0x3cf)),_0xeb1ef2=class{constructor(_0x4cf89f,_0x4b1f2a,_0x35ab87){const _0x180d80=_0x27b931;this[_0x180d80(0x3d8)]=_0x4cf89f,this['_configService']=_0x4b1f2a,this[_0x180d80(0x37d)]=_0x35ab87;}[_0x27b931(0x335)](){const _0x4d4640=_0x27b931;var _0x170302;return(_0x170302=this[_0x4d4640(0x2e7)]()[_0x4d4640(0x1cc)])==null?{}:_0x170302;}async[_0x27b931(0x118)](_0x1e7298){const _0x387dba=_0x27b931;let _0x4466af=this['getUploadOptions']();if(_0x2cf7d5(_0x1e7298,_0x4466af),_0x4466af[_0x387dba(0x194)])return _0x4466af[_0x387dba(0x194)](_0x1e7298);let _0x2ef366=await this[_0x387dba(0x3b1)](_0x1e7298);return{'id':_0x2ef366,'name':_0x1e7298[_0x387dba(0x3dc)],'mimeType':_0x1e7298[_0x387dba(0x2af)],'size':_0x1e7298['size'],'sourceType':'UUID','source':_0x2ef366};}async[_0x27b931(0x3b1)](_0x394604){const _0x59b3ec=_0x27b931;let _0x36cfad=this[_0x59b3ec(0x37d)]['getFocusedUnit'](),_0x785ec6=_0x36cfad==null?void 0x0:_0x36cfad[_0x59b3ec(0x3f1)]();if(!_0x785ec6)throw Error(_0x59b3ec(0x1d1));let _0x5af19e=new FormData();_0x5af19e[_0x59b3ec(0x3cb)](_0x59b3ec(0x184),_0x394604);let _0xc6005a=this[_0x59b3ec(0x33c)]()+_0x59b3ec(0x386)+_0x394604[_0x59b3ec(0x1f6)][_0x59b3ec(0x140)]()+'&source='+_0x26a654[_0x59b3ec(0x2cf)][_0x59b3ec(0x330)]+_0x59b3ec(0x3c3)+encodeURIComponent(_0x785ec6),_0x29cf76=(await this[_0x59b3ec(0x3d8)][_0x59b3ec(0x139)](_0xc6005a,{'body':_0x5af19e}))['body']['FileId'];if(typeof _0x29cf76!=_0x59b3ec(0x267)||!_0x29cf76)throw Error(_0x59b3ec(0x16e));return _0x29cf76;}['_getUploadFileURL'](){const _0x934759=_0x27b931;var _0x4a84e1;return(_0x4a84e1=this['_getConfig']()[_0x934759(0x2c4)])==null?_0x934759(0x213):_0x4a84e1;}[_0x27b931(0x2e7)](){const _0x3af5f3=_0x27b931;var _0x2d864f;return(_0x2d864f=this[_0x3af5f3(0x228)]['getConfig'](_0x3af5f3(0x178)))==null?{}:_0x2d864f;}};_0xeb1ef2=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0xeb1ef2);function _0x2cf7d5(_0x452f38,_0x186b2b){const _0x2a8312=_0x27b931;var _0x2462e0;if(_0x186b2b[_0x2a8312(0x3e4)]!=null&&_0x452f38[_0x2a8312(0x1f6)]>_0x186b2b[_0x2a8312(0x3e4)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x2462e0=_0x186b2b[_0x2a8312(0x281)])!=null&&_0x2462e0[_0x2a8312(0x415)]&&!_0x186b2b[_0x2a8312(0x281)][_0x2a8312(0x405)](_0x1cc0b1=>_0x452f38[_0x2a8312(0x2af)]===_0x1cc0b1||_0x452f38['name']['endsWith'](_0x1cc0b1)||_0x1cc0b1[_0x2a8312(0x3e1)]('/*')&&_0x452f38[_0x2a8312(0x2af)][_0x2a8312(0x2df)](_0x1cc0b1[_0x2a8312(0x14f)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x149557=class{constructor(_0x230a0f,_0x3fead6,_0xa170d9){const _0x496d3b=_0x27b931;this[_0x496d3b(0x228)]=_0x230a0f,this[_0x496d3b(0x3d8)]=_0x3fead6,this[_0x496d3b(0x2c8)]=_0xa170d9,this[_0x496d3b(0x362)]();}[_0x27b931(0x362)](){const _0x11bf78=_0x27b931;this[_0x11bf78(0x3d8)][_0x11bf78(0xcf)]({'priority':0x1,'interceptor':(_0x481c57,_0x14685a)=>_0x14685a(_0x481c57)[_0x11bf78(0x11f)]((0x0,_0x470009[_0x11bf78(0x27f)])(async _0x5a4c77=>{const _0x163da4=_0x11bf78;let _0x3e8853=_0x5a4c77;if(_0x3e8853[_0x163da4(0x397)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x163da4(0x268)](this[_0x163da4(0x2c8)]['t'](_0x163da4(0x25d)))){let _0x5b3946=window[_0x163da4(0x129)](window['location']['href']);window['location']['href']=this[_0x163da4(0x3b9)]()+_0x163da4(0x2e5)+_0x5b3946;}}return _0x3e8853;}))});}[_0x27b931(0x3b9)](){const _0x56bd05=_0x27b931;var _0x135871;let _0x3d9b9e=this[_0x56bd05(0x228)]['getConfig'](_0x3c17be);return(_0x135871=_0x3d9b9e==null?void 0x0:_0x3d9b9e['loginUrlKey'])==null?_0x56bd05(0x2c3):_0x135871;}};_0x149557=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5['HTTPService'])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0xde)]))],_0x149557);let _0x3d6a88=class extends _0x47f753[_0x27b931(0x25e)]{constructor(_0x590399,_0x58c645){const _0x136149=_0x27b931;super(),this[_0x136149(0x345)]=_0x590399,this['_configService']=_0x58c645,_0x2dd74e(this,_0x136149(0x171),!0x1),this[_0x136149(0x152)]();}[_0x27b931(0x152)](){const _0xa2a887=_0x27b931;let _0x1f9c20=this;this[_0xa2a887(0x3d7)](this[_0xa2a887(0x345)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x8f2da5[_0xa2a887(0x360)])({'isMatch'(_0x149dcc){const _0x9853ee=_0xa2a887;var _0x37010;if(_0x149dcc[_0x9853ee(0x1f9)]==='POST'&&(_0x37010=_0x149dcc[_0x9853ee(0x41f)])!=null&&_0x37010[_0x9853ee(0x2d9)]){let {objectID:_0x4fd24e,objectType:_0x1d5a9c}=_0x149dcc[_0x9853ee(0x41f)][_0x9853ee(0x2d9)]||{};if(!_0x4fd24e||_0x1d5a9c===void 0x0)return!0x1;let _0x2dfd8f=_0x1f9c20[_0x9853ee(0xe2)]()+'/'+_0x1d5a9c+_0x9853ee(0x20b)+_0x4fd24e+_0x9853ee(0x395);if(_0x149dcc[_0x9853ee(0xd6)]===_0x2dfd8f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x596061){const _0x281a30=_0xa2a887;var _0x3fcca1;return(_0x3fcca1=_0x596061[_0x281a30(0x41f)])==null?void 0x0:_0x3fcca1[_0x281a30(0x2d9)];},'mergeParamsToRequest'(_0x3a94ce,_0x3a3f23){const _0x538489=_0xa2a887;let _0x2ffb68=_0x1f9c20[_0x538489(0xe2)]()+_0x538489(0x145),_0x57158f=_0x3a94ce[_0x538489(0x1ca)]((_0x3989ed,_0x4a00cd)=>{const _0x12fd24=_0x538489;let {unitID:_0x5581b5,objectID:_0x26d386,objectType:_0x2d7051,actions:_0x50d2fa}=_0x4a00cd;return _0x3989ed[_0x5581b5]||(_0x3989ed[_0x5581b5]={}),_0x3989ed[_0x5581b5][_0x26d386]||(_0x3989ed[_0x5581b5][_0x26d386]={'objectID':_0x26d386,'objectType':_0x2d7051,'actions':[]}),_0x3989ed[_0x5581b5][_0x26d386][_0x12fd24(0x1b8)][_0x12fd24(0x30b)](..._0x50d2fa),_0x3989ed;},{}),_0x33b7c8=[];for(let _0x5181d7 in _0x57158f)for(let _0x4b1a77 in _0x57158f[_0x5181d7]){let {actions:_0x4bedbf,objectType:_0x2ef9e9}=_0x57158f[_0x5181d7][_0x4b1a77],_0x36a0f3=[...new Set(_0x4bedbf)];_0x33b7c8['push']({'unitID':_0x5181d7,'objectID':_0x4b1a77,'objectType':_0x2ef9e9,'actions':_0x36a0f3});}return new _0x8f2da5[(_0x538489(0x408))]('POST',_0x2ffb68,{'headers':_0x3a3f23['headers'],'withCredentials':_0x3a3f23['withCredentials'],'responseType':_0x3a3f23[_0x538489(0xdb)],'body':{'requests':_0x33b7c8}});}},{'distributeResult'(_0x5dad24,_0x478e10){const _0x50c98e=_0xa2a887;let {objectActions:_0x400011}=_0x5dad24;return _0x478e10[_0x50c98e(0x394)](_0x1cd1e0=>{const _0x51cce8=_0x50c98e;let {unitID:_0x1c2e2d,objectID:_0x43d917,actions:_0x15cee2}=_0x1cd1e0,_0x1f2a54=_0x400011[_0x51cce8(0x204)](_0x50f37f=>_0x50f37f[_0x51cce8(0x2ea)]===_0x1c2e2d&&_0x50f37f[_0x51cce8(0x1f1)]===_0x43d917);return{'config':_0x1cd1e0,'result':{'actions':_0x15cee2[_0x51cce8(0x394)](_0x213f8f=>_0x1f2a54==null?void 0x0:_0x1f2a54[_0x51cce8(0x1b8)]['find'](_0x5042eb=>_0x5042eb[_0x51cce8(0x3ec)]===_0x213f8f))[_0x51cce8(0x12e)](_0x467684=>!!_0x467684),'error':_0x5dad24[_0x51cce8(0x294)]}};});}})}));}[_0x27b931(0xe2)](){const _0x3bb04f=_0x27b931;var _0x194cc5;let _0x2627a0=this['_configService']['getConfig'](_0x3c17be);return(_0x194cc5=_0x2627a0==null?void 0x0:_0x2627a0[_0x3bb04f(0x1c1)])==null?_0x3bb04f(0x2d4):_0x194cc5;}async[_0x27b931(0x1fb)](_0x472dcc){const _0x79e3f9=_0x27b931;let _0x583be9=this[_0x79e3f9(0xe2)]()+'/'+_0x472dcc[_0x79e3f9(0x30c)]+_0x79e3f9(0x148);return(await this[_0x79e3f9(0x345)][_0x79e3f9(0x139)](_0x583be9,{'body':_0x472dcc}))[_0x79e3f9(0x2d9)][_0x79e3f9(0x1f1)]||'';}async[_0x27b931(0x3c5)](_0x3ac3a0){const _0x412014=_0x27b931;let _0x5957da=this['_getAPIPrefixPath']()+_0x412014(0x3a0);return(await this[_0x412014(0x345)]['post'](_0x5957da,{'body':_0x3ac3a0}))['body'][_0x412014(0x110)];}async[_0x27b931(0x333)](_0x204403){const _0x2b246e=_0x27b931;var _0x5601ac;let _0xae7a70=this[_0x2b246e(0xe2)]()+'/'+_0x204403[_0x2b246e(0x30c)]+_0x2b246e(0x20b)+_0x204403[_0x2b246e(0x1f1)],_0x29657c=await this[_0x2b246e(0x345)][_0x2b246e(0x1fd)](_0xae7a70,{'body':_0x204403});if((_0x29657c==null||(_0x5601ac=_0x29657c[_0x2b246e(0x2d9)])==null||(_0x5601ac=_0x5601ac[_0x2b246e(0x294)])==null?void 0x0:_0x5601ac[_0x2b246e(0x1fc)])!==0x1)throw Error(_0x2b246e(0x112));}async['allowed'](_0xd9a9b8){const _0x3cd183=_0x27b931;let _0x1ad9c3=this[_0x3cd183(0xe2)]()+'/'+_0xd9a9b8[_0x3cd183(0x30c)]+_0x3cd183(0x20b)+_0xd9a9b8[_0x3cd183(0x1f1)]+_0x3cd183(0x395);return(await this['_HTTPService'][_0x3cd183(0x139)](_0x1ad9c3,{'body':_0xd9a9b8}))['body'][_0x3cd183(0x1b8)];}async[_0x27b931(0xfb)](_0x341669){const _0x42d944=_0x27b931;let _0x3d6283=this[_0x42d944(0xe2)]()+_0x42d944(0x145);return(await this[_0x42d944(0x345)][_0x42d944(0x139)](_0x3d6283,{'body':{'requests':_0x341669}}))['body']['objectActions'];}async[_0x27b931(0x3c0)](_0x29c21e){const _0x4cf224=_0x27b931;let _0x529754=this['_getAPIPrefixPath']()+'/'+_0x29c21e[_0x4cf224(0x30c)]+_0x4cf224(0x240),_0x4684ec=await this[_0x4cf224(0x345)][_0x4cf224(0x139)](_0x529754,{'body':_0x29c21e});return{'roles':_0x4684ec['body'][_0x4cf224(0x1c7)],'actions':_0x4684ec[_0x4cf224(0x2d9)][_0x4cf224(0x1b8)]};}async['deleteCollaborator'](_0x3339fc){const _0x546a60=_0x27b931;let _0x4e19ca=this[_0x546a60(0xe2)]()+_0x546a60(0x241);await this[_0x546a60(0x345)][_0x546a60(0x274)](_0x4e19ca,{'params':{'collaboratorID':_0x3339fc[_0x546a60(0x16a)],'objectID':_0x3339fc[_0x546a60(0x1f1)],'unitID':_0x3339fc[_0x546a60(0x2ea)]}});}async[_0x27b931(0x317)](_0xc1d3dc){const _0x457695=_0x27b931;let _0x5628c7=this[_0x457695(0xe2)]()+_0x457695(0x241);await this[_0x457695(0x345)][_0x457695(0x381)](_0x5628c7,{'body':_0xc1d3dc});}async[_0x27b931(0x3fa)](_0x1e0e2b){const _0x467530=_0x27b931;let _0x55a39a=this[_0x467530(0xe2)]()+'/collaborator';await this[_0x467530(0x345)]['post'](_0x55a39a,{'body':_0x1e0e2b});}async[_0x27b931(0x205)](_0xc03d24){const _0xad8b98=_0x27b931;var _0x1dc95d;let _0x5f37ca=this[_0xad8b98(0xe2)]()+'/collaborator',_0x28da2b=await this[_0xad8b98(0x345)]['get'](_0x5f37ca,{'params':{'objectID':_0xc03d24[_0xad8b98(0x1f1)],'unitID':_0xc03d24[_0xad8b98(0x2ea)]}});return this[_0xad8b98(0x128)]((_0x1dc95d=_0x28da2b['body'][_0xad8b98(0x361)])==null?!0x1:_0x1dc95d),_0x28da2b['body'][_0xad8b98(0x19a)];}async[_0x27b931(0x3bd)](_0x427007){const _0x943ab6=_0x27b931;let _0x2ee8c3=this[_0x943ab6(0xe2)]()+_0x943ab6(0x241);await this['_HTTPService']['put'](_0x2ee8c3,{'body':_0x427007});}['setCfgEnableObjInherit'](_0x2c863a){const _0x2dc2fe=_0x27b931;this[_0x2dc2fe(0x171)]=_0x2c863a;}['getCfgEnableObjInherit'](){const _0x25a9b0=_0x27b931;return this[_0x25a9b0(0x171)];}};_0x3d6a88=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)]))],_0x3d6a88);function _0x3602e5(_0x52e75a){const _0x3f9892=_0x27b931;return _0x52e75a instanceof Uint8Array||ArrayBuffer[_0x3f9892(0x19d)](_0x52e75a)&&_0x52e75a['constructor'][_0x3f9892(0x3dc)]===_0x3f9892(0x28d)&&_0x3f9892(0x2db)in _0x52e75a&&_0x52e75a[_0x3f9892(0x2db)]===0x1;}function _0x149fcc(_0x5edd6e){const _0x31abaa=_0x27b931;if(typeof _0x5edd6e!=_0x31abaa(0x116))throw TypeError(_0x31abaa(0x33b)+typeof _0x5edd6e);if(!Number[_0x31abaa(0x11c)](_0x5edd6e)||_0x5edd6e<0x0)throw RangeError(_0x31abaa(0x2b6)+_0x5edd6e);}function _0x241cc3(_0x1ae51d,_0x284b11,_0x2ae0a0=''){const _0x1caaff=_0x27b931;let _0x22d788=_0x3602e5(_0x1ae51d),_0x5405f0=_0x1ae51d==null?void 0x0:_0x1ae51d[_0x1caaff(0x415)],_0x4eff70=_0x284b11!==void 0x0;if(!_0x22d788||_0x4eff70&&_0x5405f0!==_0x284b11){let _0x4920e3=_0x2ae0a0&&'\x22'+_0x2ae0a0+'\x22\x20',_0x1bc4cb=_0x4eff70?_0x1caaff(0x3a8)+_0x284b11:'',_0x42ba4=_0x22d788?_0x1caaff(0x218)+_0x5405f0:_0x1caaff(0x364)+typeof _0x1ae51d,_0x1fd482=_0x4920e3+'expected\x20Uint8Array'+_0x1bc4cb+_0x1caaff(0x23e)+_0x42ba4;throw _0x22d788?RangeError(_0x1fd482):TypeError(_0x1fd482);}return _0x1ae51d;}function _0x505ef8(_0x3f7e79){const _0x5e2b64=_0x27b931;return new Uint32Array(_0x3f7e79[_0x5e2b64(0xe3)],_0x3f7e79[_0x5e2b64(0x36b)],Math['floor'](_0x3f7e79[_0x5e2b64(0x209)]/0x4));}function _0xfcd1a4(..._0x58e63d){const _0xf65bd0=_0x27b931;for(let _0x2712b4=0x0;_0x2712b4<_0x58e63d[_0xf65bd0(0x415)];_0x2712b4++)_0x58e63d[_0x2712b4]['fill'](0x0);}let _0x4fbc4d=new Uint8Array(new Uint32Array([0x11223344])[_0x27b931(0xe3)])[0x0]===0x44,_0x15bbe2=_0x537e2d=>_0x537e2d<<0x18&0xff000000|_0x537e2d<<0x8&0xff0000|_0x537e2d>>>0x8&0xff00|_0x537e2d>>>0x18&0xff,_0x93eb92=_0x4fbc4d?_0x5acde6=>_0x5acde6:_0xc26f0=>{for(let _0x227cd1=0x0;_0x227cd1<_0xc26f0['length'];_0x227cd1++)_0xc26f0[_0x227cd1]=_0x15bbe2(_0xc26f0[_0x227cd1]);return _0xc26f0;};function _0x395142(_0x3ec1a5){const _0x5767e1=_0x27b931;if(typeof _0x3ec1a5!=_0x5767e1(0x267))throw TypeError(_0x5767e1(0x10e));return new Uint8Array(new TextEncoder()[_0x5767e1(0x2f4)](_0x3ec1a5));}function _0x4490ca(_0x288f1a,_0x28bd82){const _0x1a10da=_0x27b931;return!_0x288f1a[_0x1a10da(0x209)]||!_0x28bd82[_0x1a10da(0x209)]?!0x1:_0x288f1a[_0x1a10da(0xe3)]===_0x28bd82[_0x1a10da(0xe3)]&&_0x288f1a['byteOffset']<_0x28bd82[_0x1a10da(0x36b)]+_0x28bd82[_0x1a10da(0x209)]&&_0x28bd82['byteOffset']<_0x288f1a['byteOffset']+_0x288f1a[_0x1a10da(0x209)];}function _0x34ca96(_0x1522c1,_0x793018){const _0x317d52=_0x27b931;if(_0x4490ca(_0x1522c1,_0x793018)&&_0x1522c1[_0x317d52(0x36b)]<_0x793018[_0x317d52(0x36b)])throw Error(_0x317d52(0x27a));}function _0x3f9ffe(..._0x2db177){const _0x407638=_0x27b931;let _0x11faea=0x0;for(let _0x176e2b=0x0;_0x176e2b<_0x2db177['length'];_0x176e2b++){let _0x561d95=_0x2db177[_0x176e2b];_0x241cc3(_0x561d95),_0x11faea+=_0x561d95[_0x407638(0x415)];}let _0x2212c3=new Uint8Array(_0x11faea);for(let _0x1c996a=0x0,_0x244f6b=0x0;_0x1c996a<_0x2db177[_0x407638(0x415)];_0x1c996a++){let _0x131447=_0x2db177[_0x1c996a];_0x2212c3[_0x407638(0xf6)](_0x131447,_0x244f6b),_0x244f6b+=_0x131447['length'];}return _0x2212c3;}let _0x53e818=(_0x43b0e0,_0x39bf04)=>{function _0x4da402(_0x10d859,..._0x5319cc){const _0x5f4f2d=_0x1420;if(_0x241cc3(_0x10d859,void 0x0,'key'),_0x43b0e0[_0x5f4f2d(0x354)]!==void 0x0){let _0x48b0b1=_0x5319cc[0x0];_0x241cc3(_0x48b0b1,_0x43b0e0[_0x5f4f2d(0x34e)]?void 0x0:_0x43b0e0[_0x5f4f2d(0x354)],_0x5f4f2d(0xed));}let _0x5a04ac=_0x43b0e0[_0x5f4f2d(0x36d)];_0x5a04ac&&_0x5319cc[0x1]!==void 0x0&&_0x241cc3(_0x5319cc[0x1],void 0x0,'AAD');let _0x281876=_0x39bf04(_0x10d859,..._0x5319cc),_0x4eccd4=(_0x397952,_0x2e34a4)=>{const _0x1b9e46=_0x5f4f2d;if(_0x2e34a4!==void 0x0){if(_0x397952!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x241cc3(_0x2e34a4,void 0x0,_0x1b9e46(0x2d0));}},_0x4a820e=!0x1;return{'encrypt'(_0x209749,_0x5a3164){const _0x28fde3=_0x5f4f2d;if(_0x4a820e)throw Error(_0x28fde3(0x2a7));return _0x4a820e=!0x0,_0x241cc3(_0x209749),_0x4eccd4(_0x281876['encrypt'][_0x28fde3(0x415)],_0x5a3164),_0x281876[_0x28fde3(0x258)](_0x209749,_0x5a3164);},'decrypt'(_0x3b87be,_0x56fe85){const _0x1c8044=_0x5f4f2d;if(_0x241cc3(_0x3b87be),_0x5a04ac&&_0x3b87be[_0x1c8044(0x415)]<_0x5a04ac)throw Error(_0x1c8044(0x30a)+_0x5a04ac);return _0x4eccd4(_0x281876['decrypt'][_0x1c8044(0x415)],_0x56fe85),_0x281876[_0x1c8044(0x19e)](_0x3b87be,_0x56fe85);}};}return Object['assign'](_0x4da402,_0x43b0e0),_0x4da402;};function _0x30f906(_0x2d1dbe,_0x4db4f6,_0x2829ff=!0x0){const _0x4df560=_0x27b931;if(_0x4db4f6===void 0x0)return new Uint8Array(_0x2d1dbe);if(_0x241cc3(_0x4db4f6,void 0x0,_0x4df560(0x2d0)),_0x4db4f6['length']!==_0x2d1dbe)throw Error(_0x4df560(0x2a4)+_0x2d1dbe+',\x20got:\x20'+_0x4db4f6[_0x4df560(0x415)]);if(_0x2829ff&&!_0x15866a(_0x4db4f6))throw Error(_0x4df560(0x412));return _0x4db4f6;}function _0x15866a(_0x4036c9){const _0xb716a1=_0x27b931;return _0x4036c9[_0xb716a1(0x36b)]%0x4==0x0;}function _0x5b679f(_0x490316){const _0x10e637=_0x27b931;return Uint8Array[_0x10e637(0x21c)](_0x241cc3(_0x490316));}function _0x2d2cd9(_0x304e43=0x20){const _0x2a816b=_0x27b931;_0x149fcc(_0x304e43);let _0x28591d=typeof globalThis==_0x2a816b(0x2e9)?globalThis[_0x2a816b(0x24a)]:null;if(typeof(_0x28591d==null?void 0x0:_0x28591d[_0x2a816b(0x28f)])!='function')throw Error(_0x2a816b(0x114));return _0x28591d[_0x2a816b(0x28f)](new Uint8Array(_0x304e43));}function _0x6bc83e(_0x2f5cec){const _0x36a804=_0x27b931;if(![0x10,0x18,0x20][_0x36a804(0xf2)](_0x2f5cec[_0x36a804(0x415)]))throw Error(_0x36a804(0x1df)+_0x2f5cec[_0x36a804(0x415)]);}function _0x18f630(_0x2f6f80){return _0x2f6f80<<0x1^0x11b&-(_0x2f6f80>>0x7);}function _0x41759a(_0x3a5b9c,_0x28051d){let _0x16b53e=0x0;for(;_0x28051d>0x0;_0x28051d>>=0x1)_0x16b53e^=_0x3a5b9c&-(_0x28051d&0x1),_0x3a5b9c=_0x18f630(_0x3a5b9c);return _0x16b53e;}let _0x21c9fc=((()=>{let _0x140eeb=new Uint8Array(0x100);for(let _0x419ef8=0x0,_0x25bafa=0x1;_0x419ef8<0x100;_0x419ef8++,_0x25bafa^=_0x18f630(_0x25bafa))_0x140eeb[_0x419ef8]=_0x25bafa;let _0x3a9dc2=new Uint8Array(0x100);_0x3a9dc2[0x0]=0x63;for(let _0x423d1a=0x0;_0x423d1a<0xff;_0x423d1a++){let _0x31ae1b=_0x140eeb[0xff-_0x423d1a];_0x31ae1b|=_0x31ae1b<<0x8,_0x3a9dc2[_0x140eeb[_0x423d1a]]=(_0x31ae1b^_0x31ae1b>>0x4^_0x31ae1b>>0x5^_0x31ae1b>>0x6^_0x31ae1b>>0x7^0x63)&0xff;}return _0xfcd1a4(_0x140eeb),_0x3a9dc2;})()),_0x1560ce=_0x21c9fc[_0x27b931(0x394)]((_0xd0c344,_0x315b2f)=>_0x21c9fc[_0x27b931(0x290)](_0x315b2f)),_0x580e75=_0x2398e0=>_0x2398e0<<0x18|_0x2398e0>>>0x8,_0x2ebee5=_0x58cbd4=>_0x58cbd4<<0x8|_0x58cbd4>>>0x18;function _0x44a576(_0x18585d,_0x2e4bb3){const _0x353094=_0x27b931;if(_0x18585d[_0x353094(0x415)]!==0x100)throw Error(_0x353094(0x166));let _0x1f5e53=new Uint32Array(0x100)[_0x353094(0x394)]((_0x1f9213,_0x1a2034)=>_0x2e4bb3(_0x18585d[_0x1a2034])),_0x4facc5=_0x1f5e53['map'](_0x2ebee5),_0x4a3060=_0x4facc5[_0x353094(0x394)](_0x2ebee5),_0xd5e156=_0x4a3060[_0x353094(0x394)](_0x2ebee5),_0x480a76=new Uint32Array(0x100*0x100),_0x30ad27=new Uint32Array(0x100*0x100),_0xf716dd=new Uint16Array(0x100*0x100);for(let _0x1472bf=0x0;_0x1472bf<0x100;_0x1472bf++)for(let _0x35856b=0x0;_0x35856b<0x100;_0x35856b++){let _0x222fdc=_0x1472bf*0x100+_0x35856b;_0x480a76[_0x222fdc]=_0x1f5e53[_0x1472bf]^_0x4facc5[_0x35856b],_0x30ad27[_0x222fdc]=_0x4a3060[_0x1472bf]^_0xd5e156[_0x35856b],_0xf716dd[_0x222fdc]=_0x18585d[_0x1472bf]<<0x8|_0x18585d[_0x35856b];}return{'sbox':_0x18585d,'sbox2':_0xf716dd,'T0':_0x1f5e53,'T1':_0x4facc5,'T2':_0x4a3060,'T3':_0xd5e156,'T01':_0x480a76,'T23':_0x30ad27};}let _0x396ca3=_0x44a576(_0x21c9fc,_0x5e8dbf=>_0x41759a(_0x5e8dbf,0x3)<<0x18|_0x5e8dbf<<0x10|_0x5e8dbf<<0x8|_0x41759a(_0x5e8dbf,0x2)),_0x2ab22e=_0x44a576(_0x1560ce,_0x8b1175=>_0x41759a(_0x8b1175,0xb)<<0x18|_0x41759a(_0x8b1175,0xd)<<0x10|_0x41759a(_0x8b1175,0x9)<<0x8|_0x41759a(_0x8b1175,0xe)),_0x4363d3=((()=>{let _0x1137bc=new Uint8Array(0x10);for(let _0x26f165=0x0,_0x5807e1=0x1;_0x26f165<0x10;_0x26f165++,_0x5807e1=_0x18f630(_0x5807e1))_0x1137bc[_0x26f165]=_0x5807e1;return _0x1137bc;})());function _0x1bd2b0(_0x3ae0f5){const _0x4e7820=_0x27b931;_0x241cc3(_0x3ae0f5);let _0xf4e211=_0x3ae0f5[_0x4e7820(0x415)];_0x6bc83e(_0x3ae0f5);let {sbox2:_0x15903c}=_0x396ca3,_0x564a30=[];(!_0x4fbc4d||!_0x15866a(_0x3ae0f5))&&_0x564a30[_0x4e7820(0x30b)](_0x3ae0f5=_0x5b679f(_0x3ae0f5));let _0x20fa68=_0x93eb92(_0x505ef8(_0x3ae0f5)),_0x1f78ef=_0x20fa68['length'],_0x147e4e=_0x1f1585=>_0x48b4a2(_0x15903c,_0x1f1585,_0x1f1585,_0x1f1585,_0x1f1585),_0x5d2edf=new Uint32Array(_0xf4e211+0x1c);_0x5d2edf['set'](_0x20fa68);for(let _0x4ad34b=_0x1f78ef;_0x4ad34b<_0x5d2edf[_0x4e7820(0x415)];_0x4ad34b++){let _0x34e210=_0x5d2edf[_0x4ad34b-0x1];_0x4ad34b%_0x1f78ef===0x0?_0x34e210=_0x147e4e(_0x580e75(_0x34e210))^_0x4363d3[_0x4ad34b/_0x1f78ef-0x1]:_0x1f78ef>0x6&&_0x4ad34b%_0x1f78ef===0x4&&(_0x34e210=_0x147e4e(_0x34e210)),_0x5d2edf[_0x4ad34b]=_0x5d2edf[_0x4ad34b-_0x1f78ef]^_0x34e210;}return _0xfcd1a4(..._0x564a30),_0x5d2edf;}function _0x81f1df(_0x193b99){const _0x1671cf=_0x27b931;let _0x580c97=_0x1bd2b0(_0x193b99),_0x170f8d=_0x580c97[_0x1671cf(0x14f)](),_0x177c0e=_0x580c97['length'],{sbox2:_0x4bdea7}=_0x396ca3,{T0:_0x40ae63,T1:_0x57055d,T2:_0x2f8524,T3:_0x222bbb}=_0x2ab22e;for(let _0x57fa2d=0x0;_0x57fa2d<_0x177c0e;_0x57fa2d+=0x4)for(let _0x5d214d=0x0;_0x5d214d<0x4;_0x5d214d++)_0x170f8d[_0x57fa2d+_0x5d214d]=_0x580c97[_0x177c0e-_0x57fa2d-0x4+_0x5d214d];_0xfcd1a4(_0x580c97);for(let _0x3e7f67=0x4;_0x3e7f67<_0x177c0e-0x4;_0x3e7f67++){let _0x26b82b=_0x170f8d[_0x3e7f67],_0x50a572=_0x48b4a2(_0x4bdea7,_0x26b82b,_0x26b82b,_0x26b82b,_0x26b82b);_0x170f8d[_0x3e7f67]=_0x40ae63[_0x50a572&0xff]^_0x57055d[_0x50a572>>>0x8&0xff]^_0x2f8524[_0x50a572>>>0x10&0xff]^_0x222bbb[_0x50a572>>>0x18];}return _0x170f8d;}function _0x55bab8(_0x40b2e1,_0xdad542,_0x3a7beb,_0x551b24,_0x3fafdf,_0x3caec2){return _0x40b2e1[_0x3a7beb<<0x8&0xff00|_0x551b24>>>0x8&0xff]^_0xdad542[_0x3fafdf>>>0x8&0xff00|_0x3caec2>>>0x18&0xff];}function _0x48b4a2(_0xfe73fc,_0x428702,_0x94e3a5,_0x591b4d,_0x5bfc43){return _0xfe73fc[_0x428702&0xff|_0x94e3a5&0xff00]|_0xfe73fc[_0x591b4d>>>0x10&0xff|_0x5bfc43>>>0x10&0xff00]<<0x10;}function _0x430a23(_0x3f3681,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745){const _0x36fd69=_0x27b931;let {sbox2:_0x24ff21,T01:_0x59f07d,T23:_0x535e66}=_0x396ca3,_0x4c5f05=0x0;_0x1f2927^=_0x3f3681[_0x4c5f05++],_0x1f81f9^=_0x3f3681[_0x4c5f05++],_0x29b3d3^=_0x3f3681[_0x4c5f05++],_0xf01745^=_0x3f3681[_0x4c5f05++];let _0x440da1=_0x3f3681[_0x36fd69(0x415)]/0x4-0x2;for(let _0x443a2c=0x0;_0x443a2c<_0x440da1;_0x443a2c++){let _0x16b8bb=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),_0x1a392d=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),_0x18e3f7=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),_0x31bf33=_0x3f3681[_0x4c5f05++]^_0x55bab8(_0x59f07d,_0x535e66,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3);_0x1f2927=_0x16b8bb,_0x1f81f9=_0x1a392d,_0x29b3d3=_0x18e3f7,_0xf01745=_0x31bf33;}return{'s0':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f2927,_0x1f81f9,_0x29b3d3,_0xf01745),'s1':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x1f81f9,_0x29b3d3,_0xf01745,_0x1f2927),'s2':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0x29b3d3,_0xf01745,_0x1f2927,_0x1f81f9),'s3':_0x3f3681[_0x4c5f05++]^_0x48b4a2(_0x24ff21,_0xf01745,_0x1f2927,_0x1f81f9,_0x29b3d3)};}function _0x1b88cd(_0x4cb57f,_0x350100,_0x587263,_0x32d497,_0xf4e04d){const _0x2c0d2b=_0x27b931;let {sbox2:_0x5dd316,T01:_0xea43b4,T23:_0x4f6e8a}=_0x2ab22e,_0x481196=0x0;_0x350100^=_0x4cb57f[_0x481196++],_0x587263^=_0x4cb57f[_0x481196++],_0x32d497^=_0x4cb57f[_0x481196++],_0xf4e04d^=_0x4cb57f[_0x481196++];let _0x477037=_0x4cb57f[_0x2c0d2b(0x415)]/0x4-0x2;for(let _0x362b73=0x0;_0x362b73<_0x477037;_0x362b73++){let _0x209215=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x350100,_0xf4e04d,_0x32d497,_0x587263),_0x5d0db5=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x587263,_0x350100,_0xf4e04d,_0x32d497),_0x523796=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0x32d497,_0x587263,_0x350100,_0xf4e04d),_0x4f4dee=_0x4cb57f[_0x481196++]^_0x55bab8(_0xea43b4,_0x4f6e8a,_0xf4e04d,_0x32d497,_0x587263,_0x350100);_0x350100=_0x209215,_0x587263=_0x5d0db5,_0x32d497=_0x523796,_0xf4e04d=_0x4f4dee;}return{'s0':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x350100,_0xf4e04d,_0x32d497,_0x587263),'s1':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x587263,_0x350100,_0xf4e04d,_0x32d497),'s2':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0x32d497,_0x587263,_0x350100,_0xf4e04d),'s3':_0x4cb57f[_0x481196++]^_0x48b4a2(_0x5dd316,_0xf4e04d,_0x32d497,_0x587263,_0x350100)};}function _0x2fa415(_0x1a9c90){const _0x2b14fb=_0x27b931;if(_0x241cc3(_0x1a9c90),_0x1a9c90[_0x2b14fb(0x415)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x574f0b(_0x1996a5,_0x38547e,_0x5df844){const _0x3f1eac=_0x27b931;_0x241cc3(_0x1996a5);let _0x236dbb=_0x1996a5[_0x3f1eac(0x415)],_0x19e906=_0x236dbb%0x10;if(!_0x38547e&&_0x19e906!==0x0)throw Error(_0x3f1eac(0x201));if(_0x38547e){let _0x329311=0x10-_0x19e906;_0x329311||(_0x329311=0x10),_0x236dbb+=_0x329311;}_0x5df844=_0x30f906(_0x236dbb,_0x5df844),_0x34ca96(_0x1996a5,_0x5df844),(!_0x4fbc4d||!_0x15866a(_0x1996a5))&&(_0x1996a5=_0x5b679f(_0x1996a5));let _0x544b1a=_0x505ef8(_0x1996a5);return _0x93eb92(_0x544b1a),{'b':_0x544b1a,'o':_0x505ef8(_0x5df844),'out':_0x5df844};}function _0x1f93cc(_0x492f90,_0x43cebc){const _0x349ec2=_0x27b931;if(!_0x43cebc)return _0x492f90;let _0x232a6e=_0x492f90[_0x349ec2(0x415)];if(_0x232a6e===0x0)throw Error('aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x508e50=_0x492f90[_0x232a6e-0x1],_0x257a67=0x1;_0x257a67&=_0x508e50-0x1>>>0x1f^0x1,_0x257a67&=0x10-_0x508e50>>>0x1f^0x1;for(let _0x5b1135=0x0;_0x5b1135<0x10;_0x5b1135++){let _0xab635=_0x5b1135-_0x508e50>>>0x1f,_0x3e920e=+((_0x492f90[_0x232a6e-0x1-_0x5b1135]^_0x508e50)===0x0);_0x257a67&=_0x3e920e|_0xab635^0x1;}if(!_0x257a67)throw Error('aes/pkcs7:\x20wrong\x20padding');return _0x492f90[_0x349ec2(0x303)](0x0,_0x232a6e-_0x508e50);}function _0x3b18c1(_0x11de29){let _0xa8fff3=new Uint8Array(0x10),_0x56c33f=_0x505ef8(_0xa8fff3);_0xa8fff3['set'](_0x11de29);let _0x38f803=0x10-_0x11de29['length'];for(let _0x26195a=0x10-_0x38f803;_0x26195a<0x10;_0x26195a++)_0xa8fff3[_0x26195a]=_0x38f803;return _0x56c33f;}let _0x18a27a=_0x53e818({'blockSize':0x10,'nonceLength':0x10},function(_0x2ef2c0,_0x5a966a,_0x27025d={}){const _0x54c511=_0x27b931;let _0x5aec79=!_0x27025d[_0x54c511(0x1d3)];return{'encrypt'(_0x4681f4,_0x26695f){const _0x47d583=_0x54c511;let _0x50d8fb=_0x1bd2b0(_0x2ef2c0),{b:_0x55f466,o:_0x1a8ce1,out:_0x1d1c9d}=_0x574f0b(_0x4681f4,_0x5aec79,_0x26695f),_0x5c43db=_0x5a966a,_0xdd4792=[_0x50d8fb];(!_0x4fbc4d||!_0x15866a(_0x5c43db))&&_0xdd4792[_0x47d583(0x30b)](_0x5c43db=_0x5b679f(_0x5c43db));let _0x4b0f41=_0x505ef8(_0x5c43db);_0x93eb92(_0x4b0f41);let _0xd6e879=_0x4b0f41[0x0],_0x457b69=_0x4b0f41[0x1],_0x2d5852=_0x4b0f41[0x2],_0x3756eb=_0x4b0f41[0x3],_0x42bc5c=0x0;for(;_0x42bc5c+0x4<=_0x55f466['length'];)_0xd6e879^=_0x55f466[_0x42bc5c+0x0],_0x457b69^=_0x55f466[_0x42bc5c+0x1],_0x2d5852^=_0x55f466[_0x42bc5c+0x2],_0x3756eb^=_0x55f466[_0x42bc5c+0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;if(_0x5aec79){let _0x3a9196=_0x3b18c1(_0x4681f4[_0x47d583(0x303)](_0x42bc5c*0x4));_0x93eb92(_0x3a9196),_0xd6e879^=_0x3a9196[0x0],_0x457b69^=_0x3a9196[0x1],_0x2d5852^=_0x3a9196[0x2],_0x3756eb^=_0x3a9196[0x3],{s0:_0xd6e879,s1:_0x457b69,s2:_0x2d5852,s3:_0x3756eb}=_0x430a23(_0x50d8fb,_0xd6e879,_0x457b69,_0x2d5852,_0x3756eb),_0x1a8ce1[_0x42bc5c++]=_0xd6e879,_0x1a8ce1[_0x42bc5c++]=_0x457b69,_0x1a8ce1[_0x42bc5c++]=_0x2d5852,_0x1a8ce1[_0x42bc5c++]=_0x3756eb;}return _0x93eb92(_0x1a8ce1),_0xfcd1a4(..._0xdd4792),_0x1d1c9d;},'decrypt'(_0x519358,_0x5c844d){const _0x26e2c0=_0x54c511;_0x2fa415(_0x519358);let _0xff2254=_0x81f1df(_0x2ef2c0),_0x3b1a8b=_0x5a966a,_0x4d3e2c=[_0xff2254];(!_0x4fbc4d||!_0x15866a(_0x3b1a8b))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x3b1a8b=_0x5b679f(_0x3b1a8b));let _0x3b6fbe=_0x505ef8(_0x3b1a8b);_0x93eb92(_0x3b6fbe),_0x5c844d=_0x30f906(_0x519358['length'],_0x5c844d),_0x34ca96(_0x519358,_0x5c844d),(!_0x4fbc4d||!_0x15866a(_0x519358))&&_0x4d3e2c[_0x26e2c0(0x30b)](_0x519358=_0x5b679f(_0x519358));let _0x12c40b=_0x505ef8(_0x519358),_0x4590ca=_0x505ef8(_0x5c844d);_0x93eb92(_0x12c40b);let _0x5cbe9a=_0x3b6fbe[0x0],_0x559957=_0x3b6fbe[0x1],_0x59cccf=_0x3b6fbe[0x2],_0x10a0b0=_0x3b6fbe[0x3];for(let _0x39b707=0x0;_0x39b707+0x4<=_0x12c40b[_0x26e2c0(0x415)];){let _0x191478=_0x5cbe9a,_0x1d41cd=_0x559957,_0x3233ff=_0x59cccf,_0x260c10=_0x10a0b0;_0x5cbe9a=_0x12c40b[_0x39b707+0x0],_0x559957=_0x12c40b[_0x39b707+0x1],_0x59cccf=_0x12c40b[_0x39b707+0x2],_0x10a0b0=_0x12c40b[_0x39b707+0x3];let {s0:_0x132c79,s1:_0x662fc0,s2:_0x41c37c,s3:_0x547ff3}=_0x1b88cd(_0xff2254,_0x5cbe9a,_0x559957,_0x59cccf,_0x10a0b0);_0x4590ca[_0x39b707++]=_0x132c79^_0x191478,_0x4590ca[_0x39b707++]=_0x662fc0^_0x1d41cd,_0x4590ca[_0x39b707++]=_0x41c37c^_0x3233ff,_0x4590ca[_0x39b707++]=_0x547ff3^_0x260c10;}return _0x93eb92(_0x4590ca),_0xfcd1a4(..._0x4d3e2c),_0x1f93cc(_0x5c844d,_0x5aec79);}};});function _0x1fa79a(_0x5c1cd7){const _0x209a9a=_0x27b931;let _0x413d12=atob(_0x5c1cd7),_0x372a47=new Uint8Array(_0x413d12[_0x209a9a(0x415)]);for(let _0x214544=0x0;_0x214544<_0x413d12[_0x209a9a(0x415)];_0x214544++)_0x372a47[_0x214544]=_0x413d12['charCodeAt'](_0x214544);return _0x372a47;}function _0x24d31d(_0x263b65){const _0x1fca9e=_0x27b931;let _0x3478cb='';for(let _0x20f15f=0x0;_0x20f15f<_0x263b65['length'];_0x20f15f++)_0x3478cb+=String[_0x1fca9e(0x349)](_0x263b65[_0x20f15f]);return btoa(_0x3478cb);}function _0x7b17e0(_0x5333b7,_0x4757f8){let _0x102b62=_0x1fa79a(_0x4757f8),_0x4e54ac=_0x2d2cd9(0x10);return _0x24d31d(_0x3f9ffe(_0x4e54ac,_0x18a27a(_0x102b62,_0x4e54ac)['encrypt'](_0x395142(_0x5333b7))));}function _0x1bc6dc(){const _0x3228a0=_0x27b931;let _0x2615c5=(0x0,_0x4326e6[_0x3228a0(0x1dc)])()['__Key__'];if(typeof window<'u'&&window[_0x3228a0(0x17d)]!==void 0x0&&_0x2615c5){let _0x313dbc={'time':Math[_0x3228a0(0x414)](Date[_0x3228a0(0x284)]()/0x3e8),'domain':location[_0x3228a0(0x1e2)]};return _0x7b17e0(JSON[_0x3228a0(0x3e5)](_0x313dbc),_0x2615c5);}}let _0x1a45aa=class{constructor(_0x4b0052){const _0x14f518=_0x27b931;this[_0x14f518(0x3d8)]=_0x4b0052,this['_initRequestHeader']();}[_0x27b931(0x280)](){const _0x2b049a=_0x27b931;this[_0x2b049a(0x3d8)][_0x2b049a(0xcf)]({'interceptor':(_0x2a0631,_0x4ee535)=>{const _0x858528=_0x2b049a;let _0x35685c=_0x1bc6dc();return _0x35685c&&_0x2a0631[_0x858528(0x23f)]['set']('x-univer-host',_0x35685c),_0x4ee535(_0x2a0631);}});}};_0x1a45aa=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x1a45aa);let _0x5cf05d=class extends _0x47f753['RxDisposable']{constructor(_0x5a5e7a,_0x4e7e4e,_0xfc9824){const _0xa1941c=_0x27b931;super(),this[_0xa1941c(0x1a1)]=_0x5a5e7a,this[_0xa1941c(0x10f)]=_0x4e7e4e,this[_0xa1941c(0x189)]=_0xfc9824,_0x2dd74e(this,_0xa1941c(0x278),new _0x470009[(_0xa1941c(0x25b))](null)),_0x2dd74e(this,'_unitLoaded$',new _0x470009[(_0xa1941c(0x256))]()),_0x2dd74e(this,_0xa1941c(0x34c),this[_0xa1941c(0x278)]['asObservable']()),_0x2dd74e(this,_0xa1941c(0x2d6),this[_0xa1941c(0x136)][_0xa1941c(0x2b2)]());}['dispose'](){const _0x5bce73=_0x27b931;super[_0x5bce73(0x2bc)](),this[_0x5bce73(0x136)][_0x5bce73(0x32e)](),this[_0x5bce73(0x278)][_0x5bce73(0x32e)]();}async['loadUnitOfRevision'](_0x2485a7,_0x4c3ae1,_0x1b9cc6,_0x2614d2){const _0x496717=_0x27b931;this[_0x496717(0x278)][_0x496717(0x396)]({'unitId':_0x2485a7,'type':_0x4c3ae1,'subUnitId':_0x2614d2});let _0x3ee92=null;switch(_0x4c3ae1){case _0x47f753[_0x496717(0x3fc)][_0x496717(0x239)]:_0x3ee92=await this[_0x496717(0x10f)]['loadSheet'](_0x2485a7,_0x1b9cc6,void 0x0,{'initialSubUnitId':_0x2614d2});break;case _0x47f753['UniverInstanceType'][_0x496717(0x243)]:_0x3ee92=await this['_snapshotService'][_0x496717(0x40b)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)][_0x496717(0x339)]:_0x3ee92=await this[_0x496717(0x10f)][_0x496717(0x31e)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BOARD']:_0x3ee92=await this['_snapshotService'][_0x496717(0x2bf)](_0x2485a7,_0x1b9cc6);break;case _0x47f753[_0x496717(0x3fc)]['UNIVER_BASE']:_0x3ee92=await this[_0x496717(0x10f)]['loadBase'](_0x2485a7,_0x1b9cc6);break;default:this['_logService'][_0x496717(0x294)](_0x496717(0xcb),_0x496717(0x3a5));break;}return _0x3ee92&&this['_unitLoaded$']['next'](_0x3ee92),_0x3ee92;}async['loadUnit'](_0x2aeaee,_0x311d9c,_0x3de567){const _0x2dad63=_0x27b931;var _0x22faa1;this[_0x2dad63(0x278)][_0x2dad63(0x396)]({'unitId':_0x2aeaee,'type':_0x311d9c,'subUnitId':_0x3de567});let _0x37b937=0x0,_0x19a130=await((_0x22faa1=this['_localCacheService'])==null?void 0x0:_0x22faa1[_0x2dad63(0x2e3)](_0x2aeaee));return _0x19a130&&(_0x19a130['awaitingChangeset']||_0x19a130[_0x2dad63(0x35e)][_0x2dad63(0x415)]!==0x0)&&(_0x37b937=_0x19a130['rev']),_0x37b937===0x0&&this['_logService'][_0x2dad63(0x418)]('[DataLoaderService]',_0x2dad63(0x1a0)),this[_0x2dad63(0x2d7)](_0x2aeaee,_0x311d9c,_0x37b937,_0x3de567);}};_0x5cf05d=_0x1fb4c2([_0x2af294(0x0,_0x47f753['ILogService']),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x149d12[_0x27b931(0x417)])),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x233)])(_0x419224))],_0x5cf05d);let _0x48896b=class{constructor(_0x531e90,_0x3c57a7,_0x1ba3dd){const _0x3b2471=_0x27b931;this[_0x3b2471(0x3d8)]=_0x531e90,this[_0x3b2471(0x228)]=_0x3c57a7,this[_0x3b2471(0x37d)]=_0x1ba3dd,_0x2dd74e(this,_0x3b2471(0x376),0x0),_0x2dd74e(this,_0x3b2471(0x371),new _0x470009[(_0x3b2471(0x256))]()),_0x2dd74e(this,'change$',this[_0x3b2471(0x371)]),_0x2dd74e(this,_0x3b2471(0x217),new Map());}[_0x27b931(0x124)](_0x18a9f2){const _0x255d53=_0x27b931;this[_0x255d53(0x376)]=_0x18a9f2,this[_0x255d53(0x371)]['next'](_0x18a9f2);}[_0x27b931(0x22a)](_0x3df041,_0x16ee03){const _0x4d47f2=_0x27b931;if(_0x16ee03===_0x47f753['ImageSourceType'][_0x4d47f2(0x2f0)]){let _0x3e01ca=new Image();return _0x3e01ca['src']=_0x3df041,_0x3e01ca;}return this['_imageSourceCache'][_0x4d47f2(0x1ad)](_0x3df041);}['addImageSourceCache'](_0x50a963,_0x125fb1,_0x56f4ac){const _0x4360be=_0x27b931;_0x125fb1===_0x47f753[_0x4360be(0x149)]['BASE64']||_0x56f4ac==null||this['_imageSourceCache']['set'](_0x50a963,_0x56f4ac);}async['getImage'](_0x14f507){const _0x5aa894=_0x27b931;try{let _0x1121be=this[_0x5aa894(0x1d6)](this[_0x5aa894(0x1b4)](),''+_0x14f507),_0x323267=(await this[_0x5aa894(0x3d8)][_0x5aa894(0x1ad)](_0x1121be))[_0x5aa894(0x2d9)];if(_0x323267[_0x5aa894(0x294)]&&_0x323267[_0x5aa894(0x294)][_0x5aa894(0x1fc)]===_0x26a654[_0x5aa894(0x3a7)]['OK']){let _0x3ef3e2=(0x0,_0x47f753['resolveWithBasePath'])(_0x323267['url'],this[_0x5aa894(0x1cb)]());return Promise[_0x5aa894(0x309)](_0x3ef3e2);}return Promise[_0x5aa894(0x133)](_0x323267[_0x5aa894(0x294)]);}catch(_0xa9540){return Promise[_0x5aa894(0x133)](_0xa9540);}}async[_0x27b931(0x305)](_0x4ee011){const _0x1c7f38=_0x27b931;let _0x35da22='';if(!_0x5d9de4[_0x1c7f38(0x24c)][_0x1c7f38(0xf2)](_0x4ee011[_0x1c7f38(0x2af)]))return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x2a1)]));if(_0x4ee011['size']>(0x0,_0x5d9de4[_0x1c7f38(0x103)])())return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x3e2)]));try{let _0x486981=new FormData();_0x486981[_0x1c7f38(0x3cb)](_0x1c7f38(0x184),_0x4ee011);let _0x4c0f74=this['_univerInstanceService'][_0x1c7f38(0x3d3)](),_0x2896e9=_0x4c0f74==null?void 0x0:_0x4c0f74[_0x1c7f38(0x3f1)]();if(!_0x2896e9)throw Error(_0x1c7f38(0x255));let _0x124d00=this['_getUploadFileURL']()+'?size='+_0x4ee011[_0x1c7f38(0x1f6)][_0x1c7f38(0x140)]()+_0x1c7f38(0x26b)+_0x26a654[_0x1c7f38(0x2cf)][_0x1c7f38(0x330)]+_0x1c7f38(0x3c3)+encodeURIComponent(_0x2896e9),_0x2627da={'body':_0x486981},_0x125749=(await this[_0x1c7f38(0x3d8)][_0x1c7f38(0x139)](_0x124d00,_0x2627da))[_0x1c7f38(0x2d9)];if(typeof _0x125749[_0x1c7f38(0xdd)]!=_0x1c7f38(0x267))return this[_0x1c7f38(0xea)](),Promise['reject'](Error(_0x47f753[_0x1c7f38(0x3f8)][_0x1c7f38(0x33f)]));_0x35da22=_0x125749[_0x1c7f38(0xdd)];}catch{return this['_decreaseWaiting'](),Promise[_0x1c7f38(0x133)](Error(_0x47f753['ImageUploadStatusType'][_0x1c7f38(0x33f)]));}return new Promise((_0x224cb5,_0x136da2)=>{const _0x1d9b8b=_0x1c7f38;let _0x4da59e=new FileReader();_0x4da59e[_0x1d9b8b(0x40a)](_0x4ee011),_0x4da59e[_0x1d9b8b(0x157)]=_0x5375da=>{const _0x18f125=_0x1d9b8b;var _0x3165c2;let _0x43c00d=(_0x3165c2=_0x5375da[_0x18f125(0x216)])==null?void 0x0:_0x3165c2[_0x18f125(0x130)];if(_0x43c00d==null){this[_0x18f125(0xea)](),_0x136da2(Error(_0x47f753[_0x18f125(0x3f8)][_0x18f125(0x33f)]));return;}_0x224cb5({'imageId':(0x0,_0x47f753[_0x18f125(0x404)])(0x6),'imageSourceType':_0x47f753['ImageSourceType'][_0x18f125(0x403)],'source':_0x35da22,'base64Cache':_0x43c00d,'status':_0x47f753['ImageUploadStatusType'][_0x18f125(0x3a6)]}),this[_0x18f125(0xea)]();};});}[_0x27b931(0x33c)](){const _0x1b0cbe=_0x27b931;var _0x101ce9;let _0x3c955e=this[_0x1b0cbe(0x228)][_0x1b0cbe(0x190)](_0x3c17be);return(_0x101ce9=_0x3c955e==null?void 0x0:_0x3c955e[_0x1b0cbe(0x2c4)])==null?_0x1b0cbe(0x213):_0x101ce9;}[_0x27b931(0x1b4)](){const _0xd478d8=_0x27b931;var _0x3be4bf;let _0x1973de=this[_0xd478d8(0x228)][_0xd478d8(0x190)](_0x3c17be);return(_0x3be4bf=_0x1973de==null?void 0x0:_0x1973de['signUrlServerUrl'])==null?_0xd478d8(0x15a):_0x3be4bf;}[_0x27b931(0x1cb)](){const _0x1c104a=_0x27b931;var _0x40c3ed;let _0x7ce1fb=this[_0x1c104a(0x228)][_0x1c104a(0x190)](_0x3c17be);return(_0x40c3ed=_0x7ce1fb==null?void 0x0:_0x7ce1fb[_0x1c104a(0x32d)])==null?location[_0x1c104a(0x1a3)]:_0x40c3ed;}['_replaceFileID'](_0x20b2c8,_0x1f75a9){const _0x4e0600=_0x27b931;return _0x20b2c8['replace'](_0x4e0600(0x23b),_0x1f75a9);}[_0x27b931(0xea)](){const _0x4c0ac6=_0x27b931;--this[_0x4c0ac6(0x376)],this['_change$']['next'](this[_0x4c0ac6(0x376)]);}};_0x48896b=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x2,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x235)]))],_0x48896b);let _0x113be6=class{constructor(_0x10f987,_0x540b2b){const _0xa77bc4=_0x27b931;this['_configService']=_0x10f987,this[_0xa77bc4(0x345)]=_0x540b2b;}[_0x27b931(0xe2)](){const _0x4ca23f=_0x27b931;var _0x2a2d3b;let _0x2304e8=this[_0x4ca23f(0x228)][_0x4ca23f(0x190)](_0x3c17be);return(_0x2a2d3b=_0x2304e8==null?void 0x0:_0x2304e8[_0x4ca23f(0x1c1)])==null?_0x4ca23f(0x2d4):_0x2a2d3b;}async[_0x27b931(0x3c5)](_0x4c2208){const _0x5a37cc=_0x27b931;let _0x66d711=this[_0x5a37cc(0xe2)]()+_0x5a37cc(0x241);return{'list':[{'title':_0x5a37cc(0x34d),'mentions':(await this['_HTTPService'][_0x5a37cc(0x1ad)](_0x66d711,{'params':{'objectID':_0x4c2208[_0x5a37cc(0x320)],'unitID':_0x4c2208[_0x5a37cc(0x320)]}}))[_0x5a37cc(0x2d9)][_0x5a37cc(0x19a)][_0x5a37cc(0x394)](_0x41f2d3=>({'objectId':_0x41f2d3['id'],'name':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'metadata':{'icon':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x287)]},'label':_0x41f2d3[_0x5a37cc(0x108)][_0x5a37cc(0x3dc)],'objectType':_0x47f753['MentionType'][_0x5a37cc(0x3d4)]})),'metadata':{},'type':_0x47f753[_0x5a37cc(0x1c9)][_0x5a37cc(0x3d4)]}]};}};_0x113be6=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x18f)])),_0x2af294(0x1,(0x0,_0x47f753['Inject'])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x113be6);let _0x369c1a=class extends _0x47f753['RxDisposable']{constructor(_0x51c59b,_0x3bd0a0,_0x1bb048,_0xf3743a,_0x5aabd0){const _0x29c184=_0x27b931;super(),this[_0x29c184(0x2fe)]=_0x51c59b,this[_0x29c184(0x37d)]=_0x3bd0a0,this[_0x29c184(0x373)]=_0x1bb048,this['_collaborationSessionService']=_0xf3743a,this['_collaborationUIEventService']=_0x5aabd0,this[_0x29c184(0x15d)](),this['_initCloseConn']();}[_0x27b931(0x21b)](){const _0x294151=_0x27b931;let _0x523644=async _0x20287b=>{const _0x33ee3a=_0x1420;(await this[_0x33ee3a(0x368)][_0x33ee3a(0x410)](_0x20287b))[_0x33ee3a(0x2ef)][_0x33ee3a(0x11f)]((0x0,_0x5ba228[_0x33ee3a(0x12e)])(_0x2c1a75=>_0x2c1a75[_0x33ee3a(0x1a4)]===_0x149d12['CollaborationEvent'][_0x33ee3a(0x2ae)]),(0x0,_0x5ba228[_0x33ee3a(0xdc)])(this[_0x33ee3a(0x18b)]))[_0x33ee3a(0x38e)](_0x57c193=>{const _0xca1d3f=_0x33ee3a;let {reason:_0x1a00e9}=_0x57c193[_0xca1d3f(0x401)];this[_0xca1d3f(0x11a)]['emitEvent']({'id':_0xca1d3f(0x352),'data':_0x1a00e9}),this[_0xca1d3f(0x373)][_0xca1d3f(0x1a8)](new _0x1e2709['WorkbookEditablePermission'](_0x20287b)['id'],!0x1),this[_0xca1d3f(0x368)]['closeSession'](_0x20287b);});};(0x0,_0x470009[_0x294151(0x407)])(this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753['UniverInstanceType'][_0x294151(0x239)]),this[_0x294151(0x37d)]['getTypeOfUnitAdded$'](_0x47f753[_0x294151(0x3fc)][_0x294151(0x243)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x41d)]),this[_0x294151(0x37d)][_0x294151(0x3d6)](_0x47f753[_0x294151(0x3fc)][_0x294151(0x313)]))[_0x294151(0x11f)]((0x0,_0x5ba228[_0x294151(0x394)])(_0x3433a0=>_0x3433a0[_0x294151(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x20831a=>!(0x0,_0x47f753[_0x294151(0x3ff)])(_0x20831a)),(0x0,_0x5ba228[_0x294151(0xdc)])(this['dispose$']))['subscribe'](_0x221744=>{_0x523644(_0x221744);});}[_0x27b931(0x15d)](){const _0x1a2606=_0x27b931;let _0x34d0b6=async _0x2d8032=>{const _0x4af072=_0x1420;let _0x5e3576=await this[_0x4af072(0x368)]['requireSession'](_0x2d8032),_0x10189c=this[_0x4af072(0x2fe)][_0x4af072(0x1ad)](_0x1e2709['SheetPermissionInitController']);_0x5e3576[_0x4af072(0x2ef)][_0x4af072(0x11f)]((0x0,_0x5ba228[_0x4af072(0x12e)])(_0x56d278=>_0x56d278[_0x4af072(0x1a4)]===_0x149d12['CollaborationEvent'][_0x4af072(0x12d)]),(0x0,_0x5ba228[_0x4af072(0xdc)])(this['dispose$']))[_0x4af072(0x38e)](_0x1e0a97=>{const _0x2e3497=_0x4af072;let {objectId:_0x4186b2}=_0x1e0a97[_0x2e3497(0x401)];_0x4186b2===_0x2d8032?_0x10189c['initWorkbookPermissionChange'](_0x2d8032):_0x10189c[_0x2e3497(0x232)](_0x2d8032,_0x4186b2);});};(0x0,_0x470009[_0x1a2606(0x407)])(this[_0x1a2606(0x37d)][_0x1a2606(0x3d6)](_0x47f753[_0x1a2606(0x3fc)]['UNIVER_SHEET']))[_0x1a2606(0x11f)]((0x0,_0x5ba228['map'])(_0x175680=>_0x175680[_0x1a2606(0x191)]['getUnitId']()),(0x0,_0x5ba228['filter'])(_0x2668c6=>!(0x0,_0x47f753[_0x1a2606(0x3ff)])(_0x2668c6)),(0x0,_0x5ba228[_0x1a2606(0xdc)])(this[_0x1a2606(0x18b)]))[_0x1a2606(0x38e)](_0x19e70f=>{_0x34d0b6(_0x19e70f);});}};_0x369c1a=_0x1fb4c2([_0x2af294(0x0,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x1,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x2,_0x47f753['IPermissionService']),_0x2af294(0x3,(0x0,_0x47f753['Inject'])(_0xc5d6a5)),_0x2af294(0x4,(0x0,_0x47f753['Inject'])(_0x2a71d9))],_0x369c1a);let _0x51c4c2=class{constructor(_0x247f85,_0x396830){const _0x332c11=_0x27b931;this['_configService']=_0x247f85,this[_0x332c11(0x3d8)]=_0x396830;}async[_0x27b931(0x366)](_0x27afab,_0x4484c7){const _0x574cdd=_0x27b931;var _0xbe6dc8;let {unitID:_0x5bd64c,type:_0x29b948,revision:_0x6510ef=0x0}=_0x4484c7,_0x2fc9d6=this[_0x574cdd(0x35b)]()+'/'+_0x29b948+_0x574cdd(0x288)+_0x5bd64c+_0x574cdd(0x38f)+_0x6510ef,_0x3afc3e=(await this[_0x574cdd(0x3d8)]['get'](_0x2fc9d6))[_0x574cdd(0x2d9)],_0x277967=(_0xbe6dc8=_0x3afc3e[_0x574cdd(0x324)])==null?void 0x0:_0xbe6dc8[_0x574cdd(0x1ae)];if(_0x277967){let _0x2a50a5=_0x277967==null?void 0x0:_0x277967['originalMeta'];_0x277967[_0x574cdd(0x29b)]=_0x149d12['textEncoder'][_0x574cdd(0x2f4)]((0x0,_0x149d12[_0x574cdd(0x331)])(_0x2a50a5)),Object[_0x574cdd(0x315)](_0x277967[_0x574cdd(0x111)])[_0x574cdd(0x302)](([,_0x4a14f3])=>{const _0x584e30=_0x574cdd;let _0x48f85d=_0x4a14f3['originalMeta'];_0x4a14f3['originalMeta']=_0x149d12[_0x584e30(0x26d)]['encode']((0x0,_0x149d12['b64DecodeUnicode'])(_0x48f85d));});}return _0x3afc3e;}async[_0x27b931(0x398)](_0x545a3d,_0x5b13ec){const _0x34cd44=_0x27b931;let {unitID:_0x202a09,type:_0x1738f8,blockID:_0x2a9f61}=_0x5b13ec,_0x1b6820=this[_0x34cd44(0x41e)]()+'/'+_0x1738f8+_0x34cd44(0x288)+_0x202a09+_0x34cd44(0x2f6)+_0x2a9f61;return(await this[_0x34cd44(0x3d8)]['get'](_0x1b6820))[_0x34cd44(0x2d9)];}async[_0x27b931(0x314)](_0x2752bc,_0x454f3f){const _0x4c59b0=_0x27b931;let {unitID:_0x434e91,type:_0x2b50bf,blockID:_0x3650df}=_0x454f3f,_0x4dc9eb=this[_0x4c59b0(0x41e)]()+_0x4c59b0(0x2f6)+_0x2b50bf+'/unit/'+_0x434e91+_0x4c59b0(0x2f6)+_0x3650df;return(await this[_0x4c59b0(0x3d8)][_0x4c59b0(0x1ad)](_0x4dc9eb))[_0x4c59b0(0x2d9)];}async['fetchMissingChangesets'](_0x54f2af,_0x157710){const _0x467a7f=_0x27b931;let {unitID:_0x58d878,type:_0x255f9d,from:_0x253598,to:_0x33ff57}=_0x157710,_0x356cc9=this[_0x467a7f(0x41e)]()+'/'+_0x255f9d+_0x467a7f(0x288)+_0x58d878+_0x467a7f(0x31d)+_0x253598+'&to='+_0x33ff57;return(await this[_0x467a7f(0x3d8)][_0x467a7f(0x1ad)](_0x356cc9))[_0x467a7f(0x2d9)];}['getSnapshotAPIPath'](){const _0x3106d1=_0x27b931;var _0x1e25c3;return(_0x1e25c3=this[_0x3106d1(0x228)][_0x3106d1(0x190)](_0x3106d1(0x1b0)))==null?this[_0x3106d1(0x41e)]():_0x1e25c3;}[_0x27b931(0x41e)](){const _0x10832f=_0x27b931;var _0x4408cc;let _0x3d6d25=this['_configService'][_0x10832f(0x190)](_0x3c17be);return(_0x4408cc=_0x3d6d25==null?void 0x0:_0x3d6d25[_0x10832f(0x3a2)])==null?_0x10832f(0x247):_0x4408cc;}async[_0x27b931(0x121)](_0x627f93,_0x1a74b5){const _0x1b9cc4=_0x27b931;let _0x36eb1d='/universer-api/snapshot/'+_0x1a74b5[_0x1b9cc4(0x2af)]+_0x1b9cc4(0x288)+_0x1a74b5[_0x1b9cc4(0x2ea)]+_0x1b9cc4(0x16f);return(await this['_httpService'][_0x1b9cc4(0x1ad)](_0x36eb1d,{'params':{'resourceId':JSON[_0x1b9cc4(0x3e5)](_0x1a74b5[_0x1b9cc4(0x24f)])}}))[_0x1b9cc4(0x2d9)];}[_0x27b931(0x277)](){const _0x2c08e2=_0x27b931;throw Error(_0x2c08e2(0x385));}[_0x27b931(0x104)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x186677=_0x27b931;throw Error(_0x186677(0x385));}[_0x27b931(0x2f5)](){const _0x2b401f=_0x27b931;throw Error(_0x2b401f(0x385));}[_0x27b931(0x3e3)](){const _0x59ffa4=_0x27b931;throw Error(_0x59ffa4(0x385));}['getLatestCsReqIdBySid'](){const _0x1f1004=_0x27b931;throw Error(_0x1f1004(0x385));}};_0x51c4c2=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x18f)]),_0x2af294(0x1,(0x0,_0x47f753[_0x27b931(0x3c7)])(_0x8f2da5[_0x27b931(0x2e6)]))],_0x51c4c2);let _0x10a064=class extends _0x47f753[_0x27b931(0x344)]{constructor(_0x241591,_0xe3db0,_0x2b2004,_0x412ea1,_0x598113){const _0x3935f4=_0x27b931;super(_0x241591,_0xe3db0,_0x2b2004),this['_transformService']=_0x412ea1,this[_0x3935f4(0x1a1)]=_0x598113;}[_0x27b931(0x135)](_0x431723,_0x102200){const _0x5349aa=_0x27b931;let _0x1c1ec7=this[_0x5349aa(0x29e)](_0x431723);if(_0x1c1ec7)try{let _0x5af08c=this[_0x5349aa(0x18a)](_0x1c1ec7,_0x102200);this[_0x5349aa(0x1dd)](_0x431723,_0x5af08c);}catch(_0x30c705){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x5349aa(0x2f9),_0x30c705),this[_0x5349aa(0x3ef)](_0x431723);}let _0x398252=this['_getRedoStack'](_0x431723);if(_0x398252)try{let _0x1cf9e2=this[_0x5349aa(0x18a)](_0x398252,_0x102200);this[_0x5349aa(0x1ce)](_0x431723,_0x1cf9e2);}catch(_0x3f8a44){this[_0x5349aa(0x1a1)][_0x5349aa(0x294)](_0x3f8a44),this[_0x5349aa(0x3f0)](_0x431723);}}[_0x27b931(0x3ef)](_0x2b222d){const _0x3d34b8=_0x27b931;let _0x15c268=this['_getUndoStack'](_0x2b222d);_0x15c268&&(_0x15c268[_0x3d34b8(0x415)]=0x0,this[_0x3d34b8(0x172)]());}[_0x27b931(0x3f0)](_0x231cb4){const _0xa5be6b=_0x27b931;let _0x2cb8e1=this[_0xa5be6b(0x1e5)](_0x231cb4);_0x2cb8e1&&(_0x2cb8e1[_0xa5be6b(0x415)]=0x0,this[_0xa5be6b(0x172)]());}[_0x27b931(0x1dd)](_0x595f50,_0x531b3e){const _0x283fcf=_0x27b931;this[_0x283fcf(0x26f)][_0x283fcf(0xf6)](_0x595f50,_0x531b3e),this['_updateStatus']();}[_0x27b931(0x1ce)](_0x20e304,_0x5bda7a){const _0x4bf43a=_0x27b931;this[_0x4bf43a(0x3bc)][_0x4bf43a(0xf6)](_0x20e304,_0x5bda7a),this[_0x4bf43a(0x172)]();}['_transformStack'](_0x66f137,_0x57edff){const _0x5526a6=_0x27b931;let _0x469575=[],_0x2020f8=_0x57edff,_0x4ffed9=_0x57edff;for(let _0x46a03f=_0x66f137[_0x5526a6(0x415)]-0x1;_0x46a03f>=0x0;_0x46a03f--){let {unitID:_0x4a31d4,undoMutations:_0x5aeaae,redoMutations:_0x2d791e}=_0x66f137[_0x46a03f],_0xc8c51b=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x2020f8,_0x5aeaae),_0x881ac6=this[_0x5526a6(0x14e)][_0x5526a6(0x17a)](_0x4ffed9,_0x2d791e);if((0x0,_0x149d12[_0x5526a6(0x29d)])(_0xc8c51b)||(0x0,_0x149d12[_0x5526a6(0x29d)])(_0x881ac6)){this[_0x5526a6(0x1a1)][_0x5526a6(0x294)](_0x5526a6(0x2f9),_0x5526a6(0x3d1),_0xc8c51b,_0x881ac6);break;}_0x2020f8=_0xc8c51b['c1Prime'],_0x4ffed9=_0x881ac6[_0x5526a6(0x2b1)],_0x469575[_0x5526a6(0x30b)]({'unitID':_0x4a31d4,'undoMutations':_0xc8c51b[_0x5526a6(0x3b0)],'redoMutations':_0x881ac6[_0x5526a6(0x3b0)]});}return _0x469575[_0x5526a6(0x214)]();}};_0x10a064=_0x1fb4c2([_0x2af294(0x0,_0x47f753[_0x27b931(0x235)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x25c)]),_0x2af294(0x2,_0x47f753['IContextService']),_0x2af294(0x3,_0x149d12[_0x27b931(0x1cf)]),_0x2af294(0x4,_0x47f753[_0x27b931(0x370)])],_0x10a064);let _0x45d7d9=class extends _0x47f753[_0x27b931(0x375)]{constructor(_0xb50407=_0xa759f3,_0x51a7c7,_0x534e2f,_0x43085b){const _0x2e2ed8=_0x27b931;super(),this[_0x2e2ed8(0x155)]=_0xb50407,this['_logService']=_0x51a7c7,this[_0x2e2ed8(0x2fe)]=_0x534e2f,this[_0x2e2ed8(0x228)]=_0x43085b;let {..._0x3d5207}=(0x0,_0x47f753[_0x2e2ed8(0x407)])({},_0xa759f3,this['_config']);if(!_0x3d5207[_0x2e2ed8(0x39b)])throw Error(_0x2e2ed8(0x120));this[_0x2e2ed8(0x155)]=_0x3d5207,this['_configService'][_0x2e2ed8(0x31c)](_0x3c17be,_0x3d5207);}['onStarting'](){const _0xd8e49=_0x27b931;this[_0xd8e49(0x413)](),this[_0xd8e49(0x1fe)]();}[_0x27b931(0x413)](){const _0x4a5a8b=_0x27b931;var _0x25e736,_0x2d400d;this['_injector'][_0x4a5a8b(0xff)](_0x47f753['IUndoRedoService'])&&this['_logService'][_0x4a5a8b(0x294)]('[UniverCollaborationClientPlugin]',_0x4a5a8b(0xda));let _0x271fb1=(0x0,_0x47f753[_0x4a5a8b(0x117)])([[_0x47f753['IUndoRedoService'],{'useClass':_0x10a064}],[_0x1e5735,{'useValue':_0x122337()}],[_0xc5d6a5],[_0x541d7d],[_0x2e077e],[_0x149557],[_0x1a45aa],[_0x101a15],[_0x369c1a],[_0x2a71d9],[_0x5cf05d],[_0x2bd014,{'useClass':this[_0x4a5a8b(0x155)][_0x4a5a8b(0x39b)]}],[_0x149d12[_0x4a5a8b(0x387)],{'useClass':_0x51c4c2}],[_0x47f753[_0x4a5a8b(0x238)],{'useClass':_0x3d6a88}],[_0x47f753[_0x4a5a8b(0x350)],{'useClass':_0x48896b}],[_0x4f7a6f,{'useClass':_0xeb1ef2}],[_0x47f753[_0x4a5a8b(0x2c5)],{'useClass':_0x113be6}],[_0x203f75],[_0x43ec5e]],(_0x25e736=this[_0x4a5a8b(0x155)])==null?void 0x0:_0x25e736[_0x4a5a8b(0x182)]);if(!((_0x2d400d=this['_config'])!=null&&_0x2d400d[_0x4a5a8b(0x22b)])){let _0x2c62e4=_0x271fb1[_0x4a5a8b(0x348)](([_0x31ce5f])=>_0x31ce5f===_0x435069);_0x2c62e4!==-0x1&&_0x271fb1[_0x4a5a8b(0x3ea)](_0x2c62e4,0x1);}(0x0,_0x47f753[_0x4a5a8b(0x2a0)])(this[_0x4a5a8b(0x2fe)],_0x271fb1);}[_0x27b931(0x1fe)](){const _0x42a48f=_0x27b931;var _0x6fd7dd,_0x5ec58c;if(this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x8f2da5[_0x42a48f(0x2e6)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x8f2da5[_0x42a48f(0x1a5)])({'maxParallel':0x6})}),!((_0x6fd7dd=this['_config'])!=null&&_0x6fd7dd[_0x42a48f(0x2ce)])){var _0x57e086;(_0x57e086=this[_0x42a48f(0x2fe)][_0x42a48f(0x1ad)](_0x419224,_0x47f753[_0x42a48f(0x402)][_0x42a48f(0x210)]))==null||_0x57e086[_0x42a48f(0x2bd)]();}(_0x5ec58c=this[_0x42a48f(0x155)])!=null&&_0x5ec58c[_0x42a48f(0x122)]&&(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x149557]]),(0x0,_0x47f753[_0x42a48f(0x1af)])(this[_0x42a48f(0x2fe)],[[_0x1a45aa],[_0x203f75],[_0x369c1a]]);}};_0x2dd74e(_0x45d7d9,_0x27b931(0x2f3),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x2dd74e(_0x45d7d9,_0x27b931(0x3de),_0x58d19e),_0x2dd74e(_0x45d7d9,_0x27b931(0x227),_0x4c6d06),_0x45d7d9=_0x1fb4c2([(0x0,_0x47f753['DependentOn'])(_0x4326e6[_0x27b931(0x265)],_0x149d12['UniverCollaborationPlugin'],_0x8f2da5[_0x27b931(0x160)]),_0x2af294(0x1,_0x47f753[_0x27b931(0x370)]),_0x2af294(0x2,(0x0,_0x47f753['Inject'])(_0x47f753[_0x27b931(0x400)])),_0x2af294(0x3,_0x47f753[_0x27b931(0x18f)])],_0x45d7d9),_0x79aec8[_0x27b931(0x35a)]=_0x46b0a8,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x36f),{'enumerable':!0x0,'get':function(){return _0x3d6a88;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x1f4),{'enumerable':!0x0,'get':function(){return _0x42dff3;}}),Object[_0x27b931(0x269)](_0x79aec8,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return _0x15bd87;}}),Object['defineProperty'](_0x79aec8,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x5c3e77;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x332),{'enumerable':!0x0,'get':function(){return _0x4b522f;}}),_0x79aec8[_0x27b931(0x422)]=_0x3c17be,Object[_0x27b931(0x269)](_0x79aec8,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0xeb1ef2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x285),{'enumerable':!0x0,'get':function(){return _0x203f75;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x198),{'enumerable':!0x0,'get':function(){return _0x25f5ac;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0xdf),{'enumerable':!0x0,'get':function(){return _0x48896b;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x377),{'enumerable':!0x0,'get':function(){return _0x4ea072;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x374),{'enumerable':!0x0,'get':function(){return _0xc5d6a5;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x131),{'enumerable':!0x0,'get':function(){return _0x1bc98c;}}),_0x79aec8[_0x27b931(0x17f)]=_0xdb2824,_0x79aec8[_0x27b931(0x312)]=_0x204edc,_0x79aec8[_0x27b931(0x162)]=_0x2a71d9,Object[_0x27b931(0x269)](_0x79aec8,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x10a064;}}),_0x79aec8[_0x27b931(0x38a)]=_0x101a15,Object['defineProperty'](_0x79aec8,'ConflictState',{'enumerable':!0x0,'get':function(){return _0x41f3d6;}}),_0x79aec8[_0x27b931(0x12b)]=_0x5f4f64,_0x79aec8[_0x27b931(0x1a9)]=_0x27b931(0x2be),_0x79aec8[_0x27b931(0x197)]='/universer-api/user/session-ticket',Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd3),{'enumerable':!0x0,'get':function(){return _0x5cf05d;}}),Object['defineProperty'](_0x79aec8,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x9eef43;}}),Object[_0x27b931(0x269)](_0x79aec8,'FetchingMissState',{'enumerable':!0x0,'get':function(){return _0x3b1a33;}}),_0x79aec8[_0x27b931(0x10d)]='HEARTBEAT_INTERVAL',_0x79aec8[_0x27b931(0x1d7)]=_0x27b931(0xe4),_0x79aec8[_0x27b931(0x137)]=_0x4f7a6f,_0x79aec8['ICollaborationClientAdapterService']=_0x1e5735,_0x79aec8['ICollaborationSocketService']=_0x2bd014,_0x79aec8[_0x27b931(0x41b)]=_0x419224,_0x79aec8[_0x27b931(0x3a1)]=_0x4501c7,_0x79aec8[_0x27b931(0x169)]=_0x435069,_0x79aec8[_0x27b931(0x28c)]=0x3e8,_0x79aec8[_0x27b931(0x107)]=_0x27b931(0x28c),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3dd),{'enumerable':!0x0,'get':function(){return _0x541d7d;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x3e7),{'enumerable':!0x0,'get':function(){return _0x113be6;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x3a3),{'enumerable':!0x0,'get':function(){return _0x58261a;}}),Object['defineProperty'](_0x79aec8,_0x27b931(0x28b),{'enumerable':!0x0,'get':function(){return _0x467875;}}),_0x79aec8[_0x27b931(0x3b7)]=_0x27b931(0x36e),_0x79aec8[_0x27b931(0x3ba)]=_0x27b931(0x30d),_0x79aec8[_0x27b931(0x30f)]=_0x1e08f9,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x186),{'enumerable':!0x0,'get':function(){return _0x151d10;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x22e),{'enumerable':!0x0,'get':function(){return _0x2e077e;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0x26e),{'enumerable':!0x0,'get':function(){return _0x292824;}}),Object[_0x27b931(0x269)](_0x79aec8,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x51c4c2;}}),Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xca),{'enumerable':!0x0,'get':function(){return _0x50a3a4;}}),_0x79aec8[_0x27b931(0x23d)]=_0x709438,Object[_0x27b931(0x269)](_0x79aec8,_0x27b931(0xd5),{'enumerable':!0x0,'get':function(){return _0x45d7d9;}}),_0x79aec8[_0x27b931(0x132)]=_0x122337,_0x79aec8['deserializeToCombResponse']=_0x44e4df,_0x79aec8[_0x27b931(0x1ac)]=_0xe42769,_0x79aec8[_0x27b931(0x19b)]=_0x5db7a4;}));