@univerjs-pro/collaboration-client 1.0.0-rc.0 → 1.0.1

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 (89) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/config/config.d.ts +0 -12
  65. package/lib/types/controllers/collaboration/collaboration-state.d.ts +2 -1
  66. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +3 -0
  67. package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
  68. package/lib/umd/facade.js +1 -1
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +16 -16
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3303(_0x5def05,_0x10b15b){_0x5def05=_0x5def05-0xb2;const _0x48aaa7=_0x48aa();let _0x330321=_0x48aaa7[_0x5def05];return _0x330321;}(function(_0x3c6521,_0x1205a4){const _0x198fb2=_0x3303,_0x64c5fa=_0x3c6521();while(!![]){try{const _0xb1f115=-parseInt(_0x198fb2(0x365))/0x1+parseInt(_0x198fb2(0x24c))/0x2+-parseInt(_0x198fb2(0x302))/0x3*(parseInt(_0x198fb2(0x25d))/0x4)+-parseInt(_0x198fb2(0x416))/0x5+parseInt(_0x198fb2(0x3ae))/0x6+-parseInt(_0x198fb2(0x24a))/0x7*(-parseInt(_0x198fb2(0x1be))/0x8)+parseInt(_0x198fb2(0x325))/0x9;if(_0xb1f115===_0x1205a4)break;else _0x64c5fa['push'](_0x64c5fa['shift']());}catch(_0x51b780){_0x64c5fa['push'](_0x64c5fa['shift']());}}}(_0x48aa,0x55e18),function(_0x212647,_0x253bc8){const _0x37f98b=_0x3303;typeof exports==_0x37f98b(0x140)&&typeof module<'u'?_0x253bc8(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==_0x37f98b(0x153)&&define['amd']?define([_0x37f98b(0x32b),_0x37f98b(0x1c0),_0x37f98b(0x2ac),_0x37f98b(0x266),_0x37f98b(0xb6),'rxjs',_0x37f98b(0x3d2),_0x37f98b(0x1ac),'rxjs/operators',_0x37f98b(0x221),_0x37f98b(0x29e),_0x37f98b(0x352),_0x37f98b(0x314)],_0x253bc8):(_0x212647=typeof globalThis<'u'?globalThis:_0x212647||self,_0x253bc8(_0x212647[_0x37f98b(0x23b)]={},_0x212647['UniverProCollaboration'],_0x212647[_0x37f98b(0x276)],_0x212647['UniverDocs'],_0x212647[_0x37f98b(0x3e1)],_0x212647[_0x37f98b(0x407)],_0x212647[_0x37f98b(0x2d3)],_0x212647['UniverTelemetry'],_0x212647[_0x37f98b(0x407)][_0x37f98b(0x401)],_0x212647['UniverProSlides'],_0x212647[_0x37f98b(0x34f)],_0x212647[_0x37f98b(0x371)],_0x212647[_0x37f98b(0x134)]));}(this,function(_0x38e03f,_0x51810d,_0xd0e18a,_0xbd3e77,_0x54675a,_0x23047a,_0x5f374c,_0x26f119,_0x3a34f4,_0x18a25d,_0x3bebf7,_0x2607e7,_0x176ae7){const _0x369941=_0x3303;Object[_0x369941(0x404)](_0x38e03f,Symbol['toStringTag'],{'value':_0x369941(0x23e)});let _0x2de243=_0x369941(0x37d),_0x2cf620={};function _0x158506(_0x47389f){const _0x1af8d0=_0x369941;return JSON[_0x1af8d0(0x1c6)](_0x47389f)[_0x1af8d0(0x396)];}function _0x3f9368(_0xbd4cc){'@babel/helpers - typeof';const _0x5d970d=_0x369941;return _0x3f9368=typeof Symbol==_0x5d970d(0x153)&&typeof Symbol['iterator']==_0x5d970d(0x1e9)?function(_0x10f5eb){return typeof _0x10f5eb;}:function(_0x13560e){const _0x20ff46=_0x5d970d;return _0x13560e&&typeof Symbol==_0x20ff46(0x153)&&_0x13560e[_0x20ff46(0x185)]===Symbol&&_0x13560e!==Symbol[_0x20ff46(0x100)]?'symbol':typeof _0x13560e;},_0x3f9368(_0xbd4cc);}function _0x2044b2(_0x4384d8,_0x4573aa){const _0x325d71=_0x369941;if(_0x3f9368(_0x4384d8)!=_0x325d71(0x140)||!_0x4384d8)return _0x4384d8;var _0x1742da=_0x4384d8[Symbol['toPrimitive']];if(_0x1742da!==void 0x0){var _0x14b40c=_0x1742da['call'](_0x4384d8,_0x4573aa||_0x325d71(0x282));if(_0x3f9368(_0x14b40c)!=_0x325d71(0x140))return _0x14b40c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4573aa==='string'?String:Number)(_0x4384d8);}function _0x52ca89(_0x2be557){const _0x3489bf=_0x369941;var _0x20c746=_0x2044b2(_0x2be557,_0x3489bf(0x1a2));return _0x3f9368(_0x20c746)==_0x3489bf(0x1e9)?_0x20c746:_0x20c746+'';}function _0xf185b(_0x4847b8,_0x60eedc,_0x33ebb4){const _0x376835=_0x369941;return(_0x60eedc=_0x52ca89(_0x60eedc))in _0x4847b8?Object[_0x376835(0x404)](_0x4847b8,_0x60eedc,{'value':_0x33ebb4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4847b8[_0x60eedc]=_0x33ebb4,_0x4847b8;}let _0x3e968d=function(_0x295aab){const _0x32f339=_0x369941;return _0x295aab[_0x32f339(0x377)]=_0x32f339(0x377),_0x295aab[_0x32f339(0xe2)]=_0x32f339(0xe2),_0x295aab[_0x32f339(0x125)]=_0x32f339(0x125),_0x295aab[_0x32f339(0x2f5)]=_0x32f339(0x2f5),_0x295aab[_0x32f339(0xee)]=_0x32f339(0xee),_0x295aab[_0x32f339(0x168)]=_0x32f339(0x168),_0x295aab[_0x32f339(0x28b)]=_0x32f339(0x28b),_0x295aab[_0x32f339(0xd0)]='SUBMIT_CHANGESET_TIMEOUT',_0x295aab;}({});var _0x1d0ad8=class{constructor(){const _0x2e7a22=_0x369941;_0xf185b(this,_0x2e7a22(0x3f8),new _0x23047a[(_0x2e7a22(0x3f9))]()),_0xf185b(this,_0x2e7a22(0x144),this['_event$'][_0x2e7a22(0x395)]());}[_0x369941(0x1d4)](_0x592b1d){this['_event$']['next'](_0x592b1d);}},_0xe78fd8=class{constructor(){const _0x5e9ef1=_0x369941;_0xf185b(this,_0x5e9ef1(0x175),new _0x23047a[(_0x5e9ef1(0x3f9))]()),_0xf185b(this,_0x5e9ef1(0x181),this[_0x5e9ef1(0x175)][_0x5e9ef1(0x395)]());}[_0x369941(0x31c)](_0x36be1a){const _0xe702bc=_0x369941;this[_0xe702bc(0x175)]['next'](_0x36be1a);}};function _0x2b5d73(_0x4f8eea,_0x38627c){return function(_0xed9e61,_0x483a68){_0x38627c(_0xed9e61,_0x483a68,_0x4f8eea);};}function _0x5d2da6(_0xb9135c,_0x304e3a,_0x39af64,_0x2dd04f){const _0x28f867=_0x369941;var _0x488686=arguments[_0x28f867(0x396)],_0x35e317=_0x488686<0x3?_0x304e3a:_0x2dd04f===null?_0x2dd04f=Object['getOwnPropertyDescriptor'](_0x304e3a,_0x39af64):_0x2dd04f,_0x275d6f;if(typeof Reflect==_0x28f867(0x140)&&typeof Reflect[_0x28f867(0x368)]==_0x28f867(0x153))_0x35e317=Reflect[_0x28f867(0x368)](_0xb9135c,_0x304e3a,_0x39af64,_0x2dd04f);else{for(var _0x5c6c71=_0xb9135c['length']-0x1;_0x5c6c71>=0x0;_0x5c6c71--)(_0x275d6f=_0xb9135c[_0x5c6c71])&&(_0x35e317=(_0x488686<0x3?_0x275d6f(_0x35e317):_0x488686>0x3?_0x275d6f(_0x304e3a,_0x39af64,_0x35e317):_0x275d6f(_0x304e3a,_0x39af64))||_0x35e317);}return _0x488686>0x3&&_0x35e317&&Object['defineProperty'](_0x304e3a,_0x39af64,_0x35e317),_0x35e317;}let _0x59a552=class extends _0xd0e18a['Disposable']{constructor(_0x4ca1e8){const _0x2c90e9=_0x369941;super(),this[_0x2c90e9(0x414)]=_0x4ca1e8,_0xf185b(this,_0x2c90e9(0x101),new Map()),_0xf185b(this,_0x2c90e9(0x2b8),new _0x23047a['Subject']()),this['disposeWithMe']((0x0,_0x23047a[_0x2c90e9(0x2dc)])(this[_0x2c90e9(0x414)][_0x2c90e9(0x137)](_0xd0e18a[_0x2c90e9(0x350)][_0x2c90e9(0x375)])['pipe']((0x0,_0x3a34f4[_0x2c90e9(0x102)])(_0x4ef08b=>_0x4ef08b['getUnitId']())),this[_0x2c90e9(0x414)][_0x2c90e9(0x137)](_0xd0e18a['UniverInstanceType'][_0x2c90e9(0x341)])[_0x2c90e9(0x398)]((0x0,_0x3a34f4[_0x2c90e9(0x102)])(_0xbdd056=>_0xbdd056[_0x2c90e9(0x13c)]())),this[_0x2c90e9(0x414)]['getTypeOfUnitDisposed$'](_0xd0e18a[_0x2c90e9(0x350)]['UNIVER_BOARD'])[_0x2c90e9(0x398)]((0x0,_0x3a34f4[_0x2c90e9(0x102)])(_0x2b8e4a=>_0x2b8e4a[_0x2c90e9(0x13c)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0xd0e18a[_0x2c90e9(0x350)][_0x2c90e9(0xd4)])[_0x2c90e9(0x398)]((0x0,_0x3a34f4['map'])(_0x37134d=>_0x37134d[_0x2c90e9(0x13c)]())))['subscribe'](_0x22f450=>this[_0x2c90e9(0x127)](_0x22f450)));}[_0x369941(0x2ce)](_0x6dd66c){const _0x560b06=_0x369941;return this[_0x560b06(0x101)]['has'](_0x6dd66c)?(0x0,_0x23047a['of'])(this[_0x560b06(0x101)][_0x560b06(0x271)](_0x6dd66c)):this[_0x560b06(0x2b8)][_0x560b06(0x398)]((0x0,_0x3a34f4[_0x560b06(0x102)])(_0x1dc9a9=>{const _0x562e3f=_0x560b06;if(_0x1dc9a9===_0x6dd66c)return this[_0x562e3f(0x101)][_0x562e3f(0x271)](_0x1dc9a9);}));}[_0x369941(0x3ac)](_0x2febbe,_0x4f58dc){const _0x873f92=_0x369941;let _0x453f9f=this[_0x873f92(0x101)][_0x873f92(0x271)](_0x2febbe);_0x453f9f||(_0x453f9f=new _0x5d7f2e(),this['_roomMembers']['set'](_0x2febbe,_0x453f9f),this[_0x873f92(0x2b8)]['next'](_0x2febbe)),_0x453f9f['updateMember'](_0x4f58dc);}[_0x369941(0x359)](_0x2fb15d,_0x40430e){const _0x3af314=_0x369941;let _0x1120ad=this[_0x3af314(0x101)][_0x3af314(0x271)](_0x2fb15d);_0x1120ad&&_0x1120ad[_0x3af314(0x359)](_0x40430e);}[_0x369941(0x387)](_0x59c360){const _0x38ce5c=_0x369941;return this[_0x38ce5c(0x101)]['get'](_0x59c360);}['getMember'](_0x5d3a7d,_0x576393){const _0x245ac2=_0x369941;let _0x4f9bb0=this[_0x245ac2(0x101)][_0x245ac2(0x271)](_0x5d3a7d);if(_0x4f9bb0)return _0x4f9bb0['getMember'](_0x576393);}[_0x369941(0x127)](_0x50adf5){const _0x46855a=_0x369941;let _0x45d30e=this[_0x46855a(0x101)][_0x46855a(0x271)](_0x50adf5);_0x45d30e&&(_0x45d30e['dispose'](),this[_0x46855a(0x101)]['delete'](_0x50adf5));}[_0x369941(0x206)](){const _0x48f128=_0x369941;this[_0x48f128(0x101)][_0x48f128(0x3bc)](_0x38aa7e=>_0x38aa7e[_0x48f128(0x206)]()),this[_0x48f128(0x101)][_0x48f128(0x251)](),this[_0x48f128(0x2b8)][_0x48f128(0x1dc)]();}};_0x59a552=_0x5d2da6([_0x2b5d73(0x0,_0xd0e18a[_0x369941(0x390)])],_0x59a552);var _0x5d7f2e=class extends _0xd0e18a[_0x369941(0x1e8)]{constructor(..._0x2e3b8d){const _0x8d5a61=_0x369941;super(..._0x2e3b8d),_0xf185b(this,_0x8d5a61(0x279),new Map()),_0xf185b(this,'_members$',new _0x23047a[(_0x8d5a61(0x22b))](this[_0x8d5a61(0x279)])),_0xf185b(this,'members$',this[_0x8d5a61(0x1e6)][_0x8d5a61(0x395)]());}[_0x369941(0x206)](){const _0x4c5777=_0x369941;this['_members'][_0x4c5777(0x251)](),this[_0x4c5777(0x1e6)]['complete']();}[_0x369941(0x3ac)](_0x2ec4d2){const _0x1b426e=_0x369941;this[_0x1b426e(0x279)][_0x1b426e(0x225)](_0x2ec4d2[_0x1b426e(0x37f)],_0x2ec4d2),this[_0x1b426e(0xf9)]();}[_0x369941(0x359)](_0x205909){const _0x98934=_0x369941;this[_0x98934(0x279)][_0x98934(0x2ed)](_0x205909),this[_0x98934(0xf9)]();}[_0x369941(0x247)](_0x2ca6b5){const _0x2dd800=_0x369941;return this[_0x2dd800(0x279)][_0x2dd800(0x271)](_0x2ca6b5);}['getAllMembers'](){const _0x17e001=_0x369941;return Array[_0x17e001(0x22d)](this['_members'][_0x17e001(0x36c)]());}['_emitMembers'](){const _0x29656b=_0x369941;this[_0x29656b(0x1e6)][_0x29656b(0x300)](this[_0x29656b(0x279)]);}};function _0x40cffe(_0x5ea62f,_0x464a89){const _0x5d594d=_0x369941;if(_0x2137af(_0x5ea62f))return _0x464a89;if(_0x464a89[_0x5d594d(0x374)]===_0x51810d[_0x5d594d(0x2c9)][_0x5d594d(0x28f)]){let _0x493580=_0x402ca8(_0x5ea62f),_0x4485e5=_0x464a89;return{..._0x4485e5,'data':{..._0x4485e5[_0x5d594d(0x39a)],'unitID':_0x5ea62f['target'][_0x5d594d(0x17f)],'unitType':_0x5ea62f[_0x5d594d(0x391)][_0x5d594d(0x182)]??_0x4485e5[_0x5d594d(0x39a)][_0x5d594d(0x182)],'changeset':_0x493580[_0x5d594d(0x24d)](_0x4485e5[_0x5d594d(0x39a)]['changeset'],_0x2f1627(_0x5ea62f))}};}if(_0x464a89[_0x5d594d(0x374)]===_0x51810d['CollaborationEvent'][_0x5d594d(0x1fe)]){let _0x43ed44=_0x464a89;return{..._0x43ed44,'data':{..._0x43ed44['data'],'unitID':_0x5ea62f['target'][_0x5d594d(0x17f)],'unitType':_0x5ea62f['target'][_0x5d594d(0x182)]??_0x43ed44['data'][_0x5d594d(0x182)]}};}return _0x464a89;}function _0x2c7022(_0x1d7c7d,_0x48d57c){const _0x4303ed=_0x369941;if(_0x2137af(_0x1d7c7d))return[_0x48d57c];switch(_0x48d57c[_0x4303ed(0x374)]){case _0x51810d['CollaborationEvent'][_0x4303ed(0x36f)]:return[_0xde2a8(_0x1d7c7d,_0x48d57c)];case _0x51810d[_0x4303ed(0x2c9)][_0x4303ed(0x327)]:return[_0x4a8f38(_0x1d7c7d,_0x48d57c)];case _0x51810d[_0x4303ed(0x2c9)]['CHANGESET_SHOULD_RETRY']:return[_0x3996b4(_0x1d7c7d,_0x48d57c)];default:return[_0x48d57c];}}function _0x2137af(_0x3c6980){const _0x2b0f89=_0x369941;return _0x3c6980[_0x2b0f89(0x391)][_0x2b0f89(0x203)]==null&&_0x3c6980['target']['unitId']===_0x3c6980[_0x2b0f89(0x2a9)]&&!_0x3c6980['changeset'];}function _0xde2a8(_0xe966ee,_0x5aece8){const _0x3c3f98=_0x369941;return{..._0x5aece8,'data':(0x0,_0x51810d['parseChangesetToProtocol'])(_0x164071(_0xe966ee,(0x0,_0x51810d[_0x3c3f98(0x15b)])(_0x5aece8[_0x3c3f98(0x39a)])))};}function _0x3996b4(_0x185092,_0x4e96f9){const _0x2e97bb=_0x369941;return{..._0x4e96f9,'data':_0x164071(_0x185092,_0x4e96f9[_0x2e97bb(0x39a)])};}function _0x4a8f38(_0x575bdf,_0xf93a43){const _0xeb3540=_0x369941;let _0x2164cf=_0xf93a43[_0xeb3540(0x39a)];return{..._0xf93a43,'data':{..._0x2164cf,'changesets':_0x2164cf['changesets'][_0xeb3540(0x102)](_0x4111f6=>(0x0,_0x51810d[_0xeb3540(0x25e)])(_0x164071(_0x575bdf,(0x0,_0x51810d[_0xeb3540(0x15b)])(_0x4111f6))))}};}function _0x164071(_0x2f1415,_0x5441b7){const _0x4f721a=_0x369941;return _0x402ca8(_0x2f1415)[_0x4f721a(0x132)](_0x5441b7,_0x2f1627(_0x2f1415));}function _0x402ca8(_0x1336ae){const _0x5d97f6=_0x369941;if(!_0x1336ae[_0x5d97f6(0x154)])throw Error(_0x5d97f6(0x26a));return _0x1336ae[_0x5d97f6(0x154)];}function _0x2f1627(_0x925458){const _0x2d2b7c=_0x369941;return{'localUnitId':_0x925458[_0x2d2b7c(0x2a9)],'unitType':_0x925458[_0x2d2b7c(0x182)],'target':_0x925458[_0x2d2b7c(0x391)]};}let _0x3283c8=function(_0x31a934){const _0x221393=_0x369941;return _0x31a934[_0x31a934[_0x221393(0x1e2)]=0x0]=_0x221393(0x1e2),_0x31a934[_0x31a934['JOINING']=0x1]='JOINING',_0x31a934[_0x31a934[_0x221393(0x223)]=0x2]=_0x221393(0x223),_0x31a934[_0x31a934[_0x221393(0x10d)]=0x3]=_0x221393(0x10d),_0x31a934;}({}),_0x4e382c={[_0x5f374c[_0x369941(0x1a4)]['FAIL']]:_0x369941(0x155),[_0x5f374c['CmdRspCode'][_0x369941(0x116)]]:_0x369941(0xce),[_0x5f374c['CmdRspCode'][_0x369941(0x16c)]]:_0x369941(0x384),[_0x5f374c[_0x369941(0x1a4)][_0x369941(0x13b)]]:_0x369941(0x30a),[_0x5f374c[_0x369941(0x1a4)][_0x369941(0x38b)]]:'session.room-cnt-exceeds'},_0x362e75=class extends _0xd0e18a['RxDisposable']{get[_0x369941(0x389)](){const _0x2ce64e=_0x369941;return this[_0x2ce64e(0x16e)][_0x2ce64e(0x33c)]();}constructor(_0x6f539e,_0x25aff7,_0x2ab3cd,_0x23fa94,_0x221818,_0x43ec27,_0x4b3dbe,_0x453f4a){const _0x57fb74=_0x369941;super(),this[_0x57fb74(0x306)]=_0x6f539e,this[_0x57fb74(0x2a2)]=_0x2ab3cd,this['_configService']=_0x23fa94,this[_0x57fb74(0x308)]=_0x221818,this[_0x57fb74(0xd5)]=_0x43ec27,this['_collaborationUIEventService']=_0x4b3dbe,this[_0x57fb74(0x3fe)]=_0x453f4a,_0xf185b(this,'_sessionStatus$',new _0x23047a[(_0x57fb74(0x22b))](0x0)),_0xf185b(this,_0x57fb74(0x135),this['_sessionStatus$']['asObservable']()),_0xf185b(this,'_event$',new _0x23047a['Subject']()),_0xf185b(this,_0x57fb74(0x144),this[_0x57fb74(0x3f8)][_0x57fb74(0x395)]()),_0xf185b(this,_0x57fb74(0x1c1),void 0x0),_0xf185b(this,_0x57fb74(0x131),void 0x0),_0xf185b(this,_0x57fb74(0x109),void 0x0),_0xf185b(this,_0x57fb74(0x18f),!0x1),_0xf185b(this,_0x57fb74(0x19f),null),this[_0x57fb74(0x18f)]=!!this[_0x57fb74(0x3fe)],_0x25aff7[_0x57fb74(0x398)]((0x0,_0x23047a[_0x57fb74(0x224)])(this[_0x57fb74(0x20c)]))[_0x57fb74(0x35a)](_0x4904b7=>{const _0x58b03a=_0x57fb74;if(_0x4904b7!==void 0x0){if(this[_0x58b03a(0x1c1)]=_0x4904b7,_0x4904b7)this[_0x58b03a(0xcb)](_0x4904b7),this['_socketMessageSubscription']=_0x4904b7['message$'][_0x58b03a(0x35a)](_0x3e2d1e=>{const _0x51ff23=_0x58b03a;_0x3e2d1e[_0x51ff23(0x2b5)]===this[_0x51ff23(0x306)][_0x51ff23(0x391)][_0x51ff23(0x17f)]&&this['_onCombEvent'](_0x3e2d1e);});else{var _0x2a9b0f;this[_0x58b03a(0xc8)](),this[_0x58b03a(0x16e)][_0x58b03a(0x300)](0x2),(_0x2a9b0f=this[_0x58b03a(0x131)])==null||_0x2a9b0f[_0x58b03a(0x370)](),this[_0x58b03a(0x131)]=null;}}});}[_0x369941(0x338)](){const _0x2edf19=_0x369941;var _0x485f4a;return((_0x485f4a=this[_0x2edf19(0x1c1)])==null?void 0x0:_0x485f4a[_0x2edf19(0x37f)])??null;}['dispose'](){const _0x4764e2=_0x369941;super[_0x4764e2(0x206)](),this['close'](),this['dispose$'][_0x4764e2(0x300)](),this[_0x4764e2(0x20c)][_0x4764e2(0x1dc)]();}['close'](){const _0x195c6d=_0x369941;var _0x574064;this[_0x195c6d(0xc8)](),(_0x574064=this['_socket'])==null||_0x574064[_0x195c6d(0xd2)]({'cmd':_0x5f374c[_0x195c6d(0x3d3)][_0x195c6d(0x411)],'data':{'roomID':this['_identity']['target'][_0x195c6d(0x17f)]}}),this[_0x195c6d(0x3f8)][_0x195c6d(0x1dc)](),this['_sessionStatus$']['complete']();}[_0x369941(0x257)](_0x1d6759){const _0x20ec4c=_0x369941;_0x1d6759[_0x20ec4c(0xdf)]===_0x5f374c[_0x20ec4c(0x3d3)][_0x20ec4c(0xbe)]?this[_0x20ec4c(0x115)](_0x1d6759):_0x1d6759[_0x20ec4c(0xdf)]===_0x5f374c['CombCmd'][_0x20ec4c(0x29b)]&&this[_0x20ec4c(0x143)](_0x1d6759);}[_0x369941(0xcb)](_0x13ee24){const _0x49ae23=_0x369941;this[_0x49ae23(0x16e)][_0x49ae23(0x300)](0x1),_0x13ee24[_0x49ae23(0xd2)]({'cmd':_0x5f374c[_0x49ae23(0x3d3)]['JOIN'],'routeKey':this['_identity']['target'][_0x49ae23(0x17f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x49ae23(0x306)][_0x49ae23(0x391)][_0x49ae23(0x17f)]}]}});}[_0x369941(0x115)](_0x5284e9){const _0xadcf17=_0x369941;var _0x510406;if(_0x5284e9[_0xadcf17(0x3b1)]in _0x4e382c){this[_0xadcf17(0x3aa)][_0xadcf17(0x1d4)]({'id':_0xadcf17(0xee),'data':_0x4e382c[_0x5284e9['code']]}),this[_0xadcf17(0x16e)][_0xadcf17(0x300)](0x2);return;}this[_0xadcf17(0x16e)][_0xadcf17(0x300)](0x3);let _0x378728=(_0x510406=_0x5284e9[_0xadcf17(0x39a)][_0xadcf17(0x3d6)][this[_0xadcf17(0x306)][_0xadcf17(0x391)][_0xadcf17(0x17f)]])==null?void 0x0:_0x510406['members'];_0x378728&&_0x378728[_0xadcf17(0x3bc)](_0x32a557=>this[_0xadcf17(0x308)]['updateMember'](this[_0xadcf17(0x306)][_0xadcf17(0x2a9)],_0x32a557));}[_0x369941(0x143)](_0x613167){const _0x57a88c=_0x369941;try{let _0x4baa87=_0x2c7022(this['_identity'],_0x613167[_0x57a88c(0x39a)]);for(let _0x315750 of _0x4baa87)switch(_0x315750[_0x57a88c(0x374)]){case _0x51810d[_0x57a88c(0x2c9)][_0x57a88c(0x1ab)]:this['_onUserJoin'](_0x315750),this['_event$']['next'](_0x315750);break;case _0x51810d[_0x57a88c(0x2c9)]['USERS_LEAVE']:this[_0x57a88c(0x2fa)](_0x315750),this[_0x57a88c(0x3f8)]['next'](_0x315750);break;case _0x51810d[_0x57a88c(0x2c9)][_0x57a88c(0xcc)]:case _0x51810d[_0x57a88c(0x2c9)]['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x57a88c(0x3f8)][_0x57a88c(0x300)](_0x315750);break;case _0x51810d[_0x57a88c(0x2c9)][_0x57a88c(0x178)]:this[_0x57a88c(0x2a2)][_0x57a88c(0x254)](_0x57a88c(0x34b)+JSON[_0x57a88c(0x1c6)](_0x315750)),this['_event$'][_0x57a88c(0x300)](_0x315750);break;case _0x51810d[_0x57a88c(0x2c9)][_0x57a88c(0x11c)]:this['_commentService'][_0x57a88c(0x31c)](_0x315750[_0x57a88c(0x39a)]),this['_event$'][_0x57a88c(0x300)](_0x315750);break;default:this[_0x57a88c(0x3f8)][_0x57a88c(0x300)](_0x315750);}}catch(_0x3b4fe4){this[_0x57a88c(0x2a2)][_0x57a88c(0x254)](_0x3b4fe4,_0x613167);}}['_onUserJoin'](_0x369883){const _0x5cda0f=_0x369941;this['_memberService']['updateMember'](this[_0x5cda0f(0x306)][_0x5cda0f(0x2a9)],_0x369883[_0x5cda0f(0x39a)]);}[_0x369941(0x2fa)](_0x49252b){const _0x388fe2=_0x369941;this[_0x388fe2(0x308)][_0x388fe2(0x359)](this[_0x388fe2(0x306)][_0x388fe2(0x2a9)],_0x49252b['data'][_0x388fe2(0x37f)]);}async['send'](_0x3deedf,_0x1004c2){const _0xfdf945=_0x369941;if(this['sessionStatus']!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x403e53=_0x40cffe(this[_0xfdf945(0x306)],_0x3deedf);_0x403e53[_0xfdf945(0x374)]===_0x51810d[_0xfdf945(0x2c9)]['SUBMIT_CHANGESET']&&(this[_0xfdf945(0x3fc)](),this['_startTelemetryCollaborationNewChangeset'](_0x403e53)),this[_0xfdf945(0x1c1)][_0xfdf945(0xd2)]({'cmd':_0x5f374c[_0xfdf945(0x3d3)][_0xfdf945(0x1aa)],'routeKey':this['_identity'][_0xfdf945(0x391)][_0xfdf945(0x17f)],'routeType':'','data':_0x403e53});}catch(_0x4d79fa){this[_0xfdf945(0x2a2)][_0xfdf945(0x254)](_0x4d79fa);}}[_0x369941(0x3fc)](){const _0x163a85=_0x369941;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x2f3417=_0x3303;this[_0x2f3417(0x109)]=null,this[_0x2f3417(0x3aa)][_0x2f3417(0x1d4)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x163a85(0x3da)][_0x163a85(0x3e2)](_0x163a85(0x3ca))??0x4e20);}[_0x369941(0x260)](){const _0x4443d3=_0x369941;this['_collaborationTimeoutTimer']&&=(clearTimeout(this[_0x4443d3(0x109)]),null);}['_startTelemetryCollaborationNewChangeset'](_0x29f263){const _0x974db9=_0x369941;if(!this[_0x974db9(0x18f)])return;let {data:_0x5276e0}=_0x29f263,{unitID:_0x245ef3,changeset:_0x357393}=_0x5276e0,{mutations:_0x19a590,type:_0x21a64a}=_0x357393;this[_0x974db9(0x19f)]={'unitId':_0x245ef3,'type':_0x21a64a,'startTime':performance[_0x974db9(0x1ae)](),'stopTime':0x0,'duration':0x0,'size':_0x158506(_0x19a590)};}[_0x369941(0x2db)](){const _0x139ca1=_0x369941;if(this['_shouldReportTelemetry']){if(!this[_0x139ca1(0x19f)]){this['_logService']['error']('[CollaborationSession]',_0x139ca1(0x26e));return;}this['_telemetryInfo']['stopTime']=performance[_0x139ca1(0x1ae)](),this['_telemetryInfo'][_0x139ca1(0x2f8)]=this['_telemetryInfo'][_0x139ca1(0x3f2)]-this[_0x139ca1(0x19f)][_0x139ca1(0x3d1)],this[_0x139ca1(0x3fe)][_0x139ca1(0x37b)](_0x139ca1(0x39b),this[_0x139ca1(0x19f)]),this[_0x139ca1(0x19f)]=null;}}[_0x369941(0xc8)](){const _0x55571d=_0x369941;this[_0x55571d(0x19f)]=null;}};_0x362e75=_0x5d2da6([_0x2b5d73(0x2,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0x3,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x59a552)),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xe78fd8)),_0x2b5d73(0x6,(0x0,_0xd0e18a['Inject'])(_0x1d0ad8)),_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x26f119[_0x369941(0x298)]))],_0x362e75);let _0x2c8a38=(0x0,_0xd0e18a[_0x369941(0x263)])(_0x369941(0x3be));function _0x1f8124(_0x5c7ce9){const _0x132d55=_0x369941;return _0x132d55(0x141)+_0x5c7ce9;}function _0x2ff0fe(_0x1e088b){const _0x4a844c=_0x369941;let {unitID:_0x36f1d3,mutations:_0xf8be36}=_0x1e088b;return{'unitId':_0x36f1d3,'subUnitId':_0xf8be36[_0x4a844c(0x396)]>0x0?_0xf8be36[0x0][_0x4a844c(0x2cc)]['subUnitId']:null};}let _0x2d04e5=class{constructor(_0x28ba77,_0x1b50e1,_0x83e800){const _0x4331d3=_0x369941;this[_0x4331d3(0x3e6)]=_0x28ba77,this[_0x4331d3(0x172)]=_0x1b50e1,this[_0x4331d3(0x291)]=_0x83e800;}[_0x369941(0x3a1)](_0x179b02){const _0x22cc7b=_0x369941;var _0xea9db0,_0x43c815;let _0x4ade64=this[_0x22cc7b(0x3e6)][_0x22cc7b(0x271)](_0x54675a[_0x22cc7b(0x1e5)]),{unitId:_0x540472,subUnitId:_0x4ebe45}=_0x2ff0fe(_0x179b02),_0x385980=_0x4ade64==null?void 0x0:_0x4ade64[_0x22cc7b(0x129)](_0x540472)['getCurrentSelections'](),_0x490ced=(_0xea9db0=this[_0x22cc7b(0x291)]['getUnit'](_0x540472))==null||(_0xea9db0=_0xea9db0[_0x22cc7b(0x3de)]())==null?void 0x0:_0xea9db0[_0x22cc7b(0x17c)]();if(_0x385980[_0x22cc7b(0x396)]===0x0||!_0x540472||!_0x4ebe45)return;let _0x222d78=[{'id':_0x54675a[_0x22cc7b(0x1ca)]['id'],'params':{'unitId':_0x540472,'subUnitId':_0x490ced,'selections':_0xd0e18a[_0x22cc7b(0x205)][_0x22cc7b(0x112)](_0x385980)}}],_0x15bec9=this[_0x22cc7b(0x172)]['transformMutationsWithChangeset'](_0x179b02,_0x222d78);if(!(0x0,_0x51810d[_0x22cc7b(0x38d)])(_0x15bec9))throw _0x15bec9['error'];let _0x2479ca=(_0x43c815=_0x15bec9[_0x22cc7b(0x3e8)][0x0])==null||(_0x43c815=_0x43c815[_0x22cc7b(0x2cc)])==null?void 0x0:_0x43c815[_0x22cc7b(0x163)];if(Array[_0x22cc7b(0x321)](_0x2479ca)&&_0x2479ca['length']){if(_0x2479ca[_0x22cc7b(0x396)]===_0x222d78[0x0][_0x22cc7b(0x2cc)][_0x22cc7b(0x163)][_0x22cc7b(0x396)]&&_0x2479ca[_0x22cc7b(0x361)]((_0x495e9c,_0x5efb4f)=>_0xd0e18a[_0x22cc7b(0x366)][_0x22cc7b(0x305)](_0x495e9c['range'],_0x222d78[0x0][_0x22cc7b(0x2cc)]['selections'][_0x5efb4f][_0x22cc7b(0x17e)])))return;this['_injector'][_0x22cc7b(0x271)](_0xd0e18a['ICommandService'])[_0x22cc7b(0x34e)](_0x54675a[_0x22cc7b(0x1ca)]['id'],{'unitId':_0x540472,'subUnitId':_0x490ced,'selections':_0x2479ca});}}};_0x2d04e5=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x1,_0x51810d['ITransformService']),_0x2b5d73(0x2,_0xd0e18a[_0x369941(0x390)])],_0x2d04e5);let _0x12ef16=(0x0,_0xd0e18a[_0x369941(0x263)])(_0x369941(0x31f)),_0x96aeb2=function(_0xcae759){const _0x340d1e=_0x369941;return _0xcae759[_0xcae759['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x340d1e(0x31a),_0xcae759[_0xcae759[_0x340d1e(0x210)]=0x1]=_0x340d1e(0x210),_0xcae759;}({});function _0x51eeab(_0x22c475){const _0x275808=_0x369941;var _0x494460;return!!((_0x494460=_0x22c475[_0x275808(0x2cc)])!=null&&_0x494460[_0x275808(0x315)]);}let _0x578b52=new Set([_0x54675a[_0x369941(0x408)]['id']]),_0x3b1ddb=new Set([_0x18a25d[_0x369941(0x1c7)]['id'],_0x18a25d[_0x369941(0x22c)]['id'],_0x18a25d['MoveSlidePageMutation']['id'],_0x18a25d['RemoveSlidePageMutation']['id']]);function _0x1d828b(_0x5b1849,_0x253015=_0x578b52){const _0x3fafc5=_0x369941;let _0x19b687=[];for(let _0x1718e5 of _0x5b1849){if(_0x253015['has'](_0x1718e5['id'])){if(_0x19b687[_0x3fafc5(0x396)]>0x0)break;_0x19b687[_0x3fafc5(0x3f3)](_0x1718e5);break;}if(_0x51eeab(_0x1718e5)){if(_0x19b687[_0x3fafc5(0x396)]>0x0)break;_0x19b687[_0x3fafc5(0x3f3)](_0x1718e5);break;}_0x19b687[_0x3fafc5(0x3f3)](_0x1718e5);}return _0x19b687;}function _0x4cc2d4(_0x15e43a,_0x1ce33a,_0x314b4c,_0x1b0dcf,_0x10948d){const _0x1b4e66=_0x369941;let _0xc1023b=_0x1d828b(_0x15e43a),_0x4a2a46=_0x10948d[_0x1b4e66(0x289)](),_0x47cb84=(_0x4a2a46==null?void 0x0:_0x4a2a46[_0x1b4e66(0x355)])??_0x1b4e66(0x3bb),_0x1b5859=(_0x4a2a46==null?void 0x0:_0x4a2a46[_0x1b4e66(0x37f)])??_0x1b4e66(0x3bb);return{'changeset':{'unitID':_0x1ce33a,'type':(0x0,_0x51810d[_0x1b4e66(0xda)])(_0x314b4c['getUnitType'](_0x1ce33a)),'baseRev':_0x1b0dcf[_0x1b4e66(0xe5)](_0x1ce33a),'revision':0x0,'userID':_0x47cb84,'memberID':_0x1b5859,'mutations':_0xc1023b},'pendingMutations':_0x15e43a[_0x1b4e66(0x2ca)](_0xc1023b['length'])};}let _0x24e0f8=_0x4cc2d4;function _0xa98f45(_0x509553,_0x54c019,_0x8037bb,_0x4269b6,_0x4db955){const _0x1a1c35=_0x369941;let _0x1618f1=_0x1d828b(_0x509553,_0x3b1ddb),_0x55305d=_0x4db955[_0x1a1c35(0x289)](),_0x57a130=(_0x55305d==null?void 0x0:_0x55305d['userID'])??_0x1a1c35(0x3bb),_0x1c9cc5=(_0x55305d==null?void 0x0:_0x55305d[_0x1a1c35(0x37f)])??'unknown';return{'changeset':{'unitID':_0x54c019,'type':(0x0,_0x51810d[_0x1a1c35(0xda)])(_0x8037bb['getUnitType'](_0x54c019)),'baseRev':_0x4269b6[_0x1a1c35(0xe5)](_0x54c019),'revision':0x0,'userID':_0x57a130,'memberID':_0x1c9cc5,'mutations':_0x1618f1},'pendingMutations':_0x509553[_0x1a1c35(0x2ca)](_0x1618f1['length'])};}function _0x45e54c(_0x478a30,_0xb8af07,_0x4d59aa,_0x4cc910,_0x45ba71){const _0x13e075=_0x369941;let _0x40d8e8=_0x478a30[_0x13e075(0x21c)]((_0x263ff7,_0x4b3437)=>{const _0x40afc1=_0x13e075;let _0x3c950a=_0x263ff7[_0x263ff7[_0x40afc1(0x396)]-0x1],{id:_0x2a77b0}=_0x3c950a??{},{id:_0x324186,type:_0x3ed11f}=_0x4b3437,_0x1c6ed9=_0x4b3437[_0x40afc1(0x2cc)];if(_0x2a77b0&&_0x2a77b0!==_0x324186)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x2a77b0+_0x40afc1(0xe9)+_0x324186+'.');if(!_0x3c950a)return[{'id':_0x324186,'type':_0x3ed11f,'params':{'unitId':_0x1c6ed9[_0x40afc1(0x17f)],'textRanges':_0x1c6ed9[_0x40afc1(0x25a)],'actions':_0x1c6ed9[_0x40afc1(0x3f7)]}}];let _0x203eff=_0x3c950a['params'];return _0xe112e8(_0x203eff,_0x1c6ed9)?[..._0x263ff7[_0x40afc1(0x2ca)](0x0,-0x1),{..._0x3c950a,'id':_0x324186,'type':_0x3ed11f,'params':{'unitId':_0x1c6ed9[_0x40afc1(0x17f)],'textRanges':_0x1c6ed9[_0x40afc1(0x25a)],'actions':_0xd0e18a[_0x40afc1(0x1a9)][_0x40afc1(0x319)](_0x203eff[_0x40afc1(0x3f7)],_0x1c6ed9[_0x40afc1(0x3f7)])}}]:[..._0x263ff7,{'id':_0x324186,'type':_0x3ed11f,'params':{'unitId':_0x1c6ed9[_0x40afc1(0x17f)],'textRanges':_0x1c6ed9[_0x40afc1(0x25a)],'actions':_0x1c6ed9[_0x40afc1(0x3f7)]}}];},[]),_0x2a08cc=_0x45ba71[_0x13e075(0x289)](),_0x43c7ad=(_0x2a08cc==null?void 0x0:_0x2a08cc[_0x13e075(0x355)])??_0x13e075(0x3bb),_0x498e61=(_0x2a08cc==null?void 0x0:_0x2a08cc['memberID'])??_0x13e075(0x3bb);return{'changeset':{'unitID':_0xb8af07,'type':(0x0,_0x51810d[_0x13e075(0xda)])(_0x4d59aa[_0x13e075(0x2e4)](_0xb8af07)),'baseRev':_0x4cc910[_0x13e075(0xe5)](_0xb8af07),'revision':0x0,'userID':_0x43c7ad,'memberID':_0x498e61,'mutations':_0x40d8e8},'pendingMutations':_0x478a30[_0x13e075(0x2ca)](_0x478a30[_0x13e075(0x396)])};}function _0xe112e8(_0x16623d,_0x21369a){const _0x3b5bc9=_0x369941;return!_0x1678e8(_0x16623d)&&!_0x1678e8(_0x21369a)&&_0x338831(_0x16623d[_0x3b5bc9(0x3f7)],_0x21369a[_0x3b5bc9(0x3f7)]);}function _0x1678e8(_0x4fa229){const _0x12e274=_0x369941;return _0x4fa229[_0x12e274(0x151)]!==void 0x0;}function _0x338831(_0x2ce37e,_0x1c962a){return _0x255b6a(_0x2ce37e)&&_0x255b6a(_0x1c962a)&&!_0x3cc443(_0x2ce37e)&&!_0x3cc443(_0x1c962a)&&!_0x82733f(_0x2ce37e)&&!_0x82733f(_0x1c962a);}function _0x255b6a(_0x51c339){const _0x241802=_0x369941;return _0x351736(_0x51c339)[_0x241802(0x2ae)](_0x44dae8=>_0x403893(_0x44dae8)&&_0x44dae8['et']==='text-x');}function _0x82733f(_0x702895){const _0x427bf5=_0x369941;return _0x351736(_0x702895)['some'](_0x398bb7=>Array[_0x427bf5(0x321)](_0x398bb7)||typeof _0x398bb7==_0x427bf5(0x1a2)||typeof _0x398bb7==_0x427bf5(0xb4));}function _0x3cc443(_0x45330c){const _0x523d64=_0x369941;return _0x351736(_0x45330c)[_0x523d64(0x2ae)](_0x33f41f=>!_0x403893(_0x33f41f)||_0x33f41f['et']!==_0x523d64(0x1c5)||!Array[_0x523d64(0x321)](_0x33f41f['e'])?!0x1:_0x33f41f['e']['some'](_0x58efd5=>!_0x403893(_0x58efd5)||!_0x403893(_0x58efd5[_0x523d64(0x232)])?!0x1:Object[_0x523d64(0x100)][_0x523d64(0x1c8)][_0x523d64(0x22a)](_0x58efd5[_0x523d64(0x232)],_0x523d64(0x238))||Object['prototype'][_0x523d64(0x1c8)][_0x523d64(0x22a)](_0x58efd5['body'],_0x523d64(0x245))||Object[_0x523d64(0x100)][_0x523d64(0x1c8)][_0x523d64(0x22a)](_0x58efd5[_0x523d64(0x232)],_0x523d64(0x342))));}function _0x351736(_0xfc0f7f){const _0x45ae72=_0x369941;if(!Array[_0x45ae72(0x321)](_0xfc0f7f))return[];let _0xa7e240=_0xfc0f7f[_0x45ae72(0x348)](_0x45ae72(0x232))?_0xfc0f7f:_0xfc0f7f[_0x45ae72(0x303)](_0x2a1f43=>Array[_0x45ae72(0x321)](_0x2a1f43)&&_0x2a1f43[_0x45ae72(0x348)](_0x45ae72(0x232)));if(!Array[_0x45ae72(0x321)](_0xa7e240))return[];let _0x5f3b94=_0xa7e240[_0x45ae72(0x3af)](_0x45ae72(0x232));return _0x5f3b94===-0x1?[]:_0xa7e240[_0x45ae72(0x2ca)](_0x5f3b94+0x1);}function _0x403893(_0x334e60){const _0x193de8=_0x369941;return typeof _0x334e60==_0x193de8(0x140)&&!!_0x334e60&&!Array[_0x193de8(0x321)](_0x334e60);}function _0x4e8a2a(_0x456b7b,_0x4f3562){const _0xdeddad=_0x369941;let _0x1b96b2=new _0x23047a['ReplaySubject'](0x1);return setTimeout(()=>_0x1b96b2['next'](_0x4f3562),_0x456b7b),_0x1b96b2[_0xdeddad(0x395)]()[_0xdeddad(0x398)]((0x0,_0x23047a['take'])(0x1));}var _0x37e334,_0x3f0fee,_0x5a1dc8;let _0x2147f5=function(_0x24c5fb){const _0x1531a6=_0x369941;return _0x24c5fb[_0x1531a6(0x10b)]=_0x1531a6(0x252),_0x24c5fb[_0x1531a6(0x307)]='synced',_0x24c5fb[_0x1531a6(0x25f)]=_0x1531a6(0x2f1),_0x24c5fb[_0x1531a6(0x226)]=_0x1531a6(0x166),_0x24c5fb[_0x1531a6(0x18d)]=_0x1531a6(0x19e),_0x24c5fb[_0x1531a6(0x2ba)]=_0x1531a6(0x2e6),_0x24c5fb[_0x1531a6(0x125)]=_0x1531a6(0x333),_0x24c5fb[_0x1531a6(0x223)]=_0x1531a6(0x233),_0x24c5fb;}({}),_0x1842f5=0x4e20,_0x3387cf=0x2bf20;var _0x53d02b=class{constructor(_0x3f8e56,_0x57a5c3,_0x52dfd0,_0x3ef095,_0x37b33b,_0x16c1d1,_0x48ee6c,_0x104079,_0x4cdb34){const _0x5ea815=_0x369941;this['unitID']=_0x3f8e56,this[_0x5ea815(0x120)]=_0x57a5c3,this['_handler']=_0x37b33b,this[_0x5ea815(0x1b5)]=_0x16c1d1,this['_undoRedoService']=_0x48ee6c,this[_0x5ea815(0x19c)]=_0x104079,this['_localCacheService']=_0x4cdb34,_0xf185b(this,_0x5ea815(0x35f),null),_0xf185b(this,_0x5ea815(0xfc),[]),this[_0x5ea815(0x35f)]=_0x52dfd0,this[_0x5ea815(0xfc)]=_0x3ef095;}['_checkMissing'](_0x542dd6){const _0x1bd14f=_0x369941;let _0x6e8e77=this[_0x1bd14f(0x19c)]['getCurrentRevOfUnit'](this[_0x1bd14f(0x40c)]);return _0x542dd6[_0x1bd14f(0x17b)]>_0x6e8e77+0x1?(this[_0x1bd14f(0x41a)][_0x1bd14f(0x1b9)]({'from':_0x6e8e77,'to':_0x542dd6[_0x1bd14f(0x17b)]-0x1}),!0x0):!0x1;}[_0x369941(0x3ba)](_0x3a0849){const _0x30d4ee=_0x369941;this[_0x30d4ee(0x2e7)][_0x30d4ee(0x108)](this[_0x30d4ee(0x40c)],_0x3a0849);}[_0x369941(0x1df)](_0x3ad2c3){const _0x312174=_0x369941;var _0x2763c4,_0x55c346;(_0x2763c4=(_0x55c346=this['_handler'])[_0x312174(0x113)])==null||_0x2763c4['call'](_0x55c346,_0x3ad2c3);}['_prepareTransformSelections'](_0x1d6cac){const _0x50897a=_0x369941;var _0x3329b3,_0x3b88ec;return((_0x3329b3=(_0x3b88ec=this['_handler'])[_0x50897a(0x285)])==null?void 0x0:_0x3329b3['call'](_0x3b88ec,_0x1d6cac))??null;}[_0x369941(0x1b3)](_0x5850d3){const _0x1ba2f5=_0x369941;var _0x420491,_0x1fd70b;return(_0x420491=(_0x1fd70b=this['_handler'])[_0x1ba2f5(0x3c5)])==null?void 0x0:_0x420491['call'](_0x1fd70b,_0x5850d3);}['_transformStateCache'](_0x517cd7){const _0x373a55=_0x369941;var _0x168011,_0x8f7a44;return(_0x168011=(_0x8f7a44=this[_0x373a55(0x41a)])[_0x373a55(0x394)])==null?void 0x0:_0x168011['call'](_0x8f7a44,_0x517cd7);}[_0x369941(0x2f9)](_0x349160){const _0x52ddcc=_0x369941;var _0x292749,_0x4826ba;return((_0x292749=(_0x4826ba=this[_0x52ddcc(0x41a)])[_0x52ddcc(0x11b)])==null?void 0x0:_0x292749[_0x52ddcc(0x22a)](_0x4826ba,_0x349160))??_0x349160;}['_transformRemoteChangesetByStateCache'](_0x563801){const _0x107b35=_0x369941;var _0x5a8896,_0x203304;return((_0x5a8896=(_0x203304=this[_0x107b35(0x41a)])[_0x107b35(0x2a0)])==null?void 0x0:_0x5a8896[_0x107b35(0x22a)](_0x203304,_0x563801))??_0x563801;}[_0x369941(0x379)](_0x1f7735){const _0x478410=_0x369941;if(this[_0x478410(0x120)]===_0xd0e18a['UniverInstanceType'][_0x478410(0x341)]){let {unitID:_0x4855cf,mutations:_0x483cc0,memberID:_0x3b7bb1}=_0x1f7735,_0x52160e=_0x483cc0[_0x478410(0x396)]>0x0?_0x483cc0[0x0]['params'][_0x478410(0x25a)]:[];if(Array['isArray'](_0x52160e)&&_0x52160e[_0x478410(0x396)]>0x0){var _0x5b10fa,_0xf0caa6;(_0x5b10fa=(_0xf0caa6=this['_handler'])[_0x478410(0x1e4)])==null||_0x5b10fa['call'](_0xf0caa6,{'unitID':_0x4855cf,'memberID':_0x3b7bb1,'textRanges':_0x52160e});}}}['_updateLocalCache'](){const _0x19cba6=_0x369941;var _0x20d230;(_0x20d230=this[_0x19cba6(0x106)])==null||_0x20d230[_0x19cba6(0x2ad)](this[_0x19cba6(0x40c)],this[_0x19cba6(0x120)],this[_0x19cba6(0x35f)],this['_pendingMutations']);}[_0x369941(0x21d)](){const _0x1aae90=_0x369941;return this[_0x1aae90(0x19c)]['getCurrentRevOfUnit'](this[_0x1aae90(0x40c)]);}['_incrementRevisionNumber'](){const _0x1ebe74=_0x369941;this['_revisionService'][_0x1ebe74(0x2de)](this['unitID']);}[_0x369941(0x2ea)](_0x43e2ed){const _0x3ffc3e=_0x369941;let _0x16d72a=this[_0x3ffc3e(0x2f9)](_0x43e2ed);_0x16d72a=this[_0x3ffc3e(0x110)](_0x16d72a);let _0x3a5c43=this[_0x3ffc3e(0x2a3)](_0x16d72a),_0xa8fea0=(0x0,_0xd0e18a['sequenceExecute'])(_0x16d72a['mutations'],this[_0x3ffc3e(0x1b5)],{'fromCollab':!0x0});if(!_0xa8fea0[_0x3ffc3e(0xc7)])throw _0x3a5c43==null||_0x3a5c43['rollback'](),_0xa8fea0[_0x3ffc3e(0x254)]instanceof Error?_0xa8fea0[_0x3ffc3e(0x254)]:Error(_0xa8fea0['error']??_0x3ffc3e(0x357));_0x3a5c43==null||_0x3a5c43[_0x3ffc3e(0x3c6)](),this['_transformIMECache'](_0x16d72a),this['_transformStateCache'](_0x16d72a),this['_transformUndoredo'](_0x43e2ed),this[_0x3ffc3e(0x1df)](_0x16d72a),this[_0x3ffc3e(0x379)](_0x16d72a),this[_0x3ffc3e(0x18b)]();}};let _0x348178=class extends _0x53d02b{constructor(_0x11ed49,_0x20f129,_0x376c03,_0x3c4cfa,_0x56b4a1,_0x28ca78,_0x4bcb41,_0x5dc1ed,_0xe5f5f3,_0x3498ec){const _0x103bc2=_0x369941;super(_0x11ed49,_0x20f129,null,[],_0x376c03,_0x4bcb41,_0x28ca78,_0x3c4cfa,_0x3498ec),this[_0x103bc2(0x3e6)]=_0x56b4a1,this[_0x103bc2(0x2a2)]=_0x5dc1ed,this['_transformService']=_0xe5f5f3,this['localCacheService']=_0x3498ec,_0xf185b(this,_0x103bc2(0x2e9),_0x103bc2(0x37e));}[_0x369941(0x17a)](_0x48b798){const _0x45f9ad=_0x369941;let _0x17f389=this[_0x45f9ad(0x3e6)][_0x45f9ad(0x335)](_0x195d73,this[_0x45f9ad(0x40c)],this['type'],[_0x48b798],this[_0x45f9ad(0x41a)]);return _0x17f389[_0x45f9ad(0x130)](),_0x17f389['_updateLocalCache'](),_0x17f389;}['onRemoteChangeset'](_0x24b90b){const _0xfa4063=_0x369941;if(this[_0xfa4063(0x3c2)](_0x24b90b))return this['_injector'][_0xfa4063(0x335)](_0x44a720,this[_0xfa4063(0x40c)],this[_0xfa4063(0x120)],null,[],null,[_0x24b90b],this[_0xfa4063(0x41a)]);try{let _0x1480ac=this[_0xfa4063(0x172)][_0xfa4063(0xc9)](_0x24b90b,[_0x51810d['EmptyMutationInfo']]);if((0x0,_0x51810d[_0xfa4063(0x38d)])(_0x1480ac)){let {c1Prime:_0x417eeb}=_0x1480ac;return this[_0xfa4063(0x2ea)](_0x417eeb),this;}throw _0x1480ac[_0xfa4063(0x254)];}catch(_0x36e266){return this['_logService']['error'](_0x36e266),this[_0xfa4063(0x3d5)](!0x1);}}[_0x369941(0x3d5)](_0x73fd76){const _0x5e1bf6=_0x369941;return this[_0x5e1bf6(0x3e6)][_0x5e1bf6(0x335)](_0x39876b,this['unitID'],this[_0x5e1bf6(0x120)],null,[],this[_0x5e1bf6(0x41a)],_0x73fd76);}[_0x369941(0x3b9)](_0x2f3af9){const _0x75a2e6=_0x369941;if(_0x2f3af9[_0x75a2e6(0x17b)]<=this[_0x75a2e6(0x21d)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x369941(0x30c)](){const _0x47562f=_0x369941;throw Error(_0x47562f(0x194));}[_0x369941(0x30e)](){return this;}[_0x369941(0x253)](){const _0xf585e6=_0x369941;return this[_0xf585e6(0x3e6)][_0xf585e6(0x335)](_0x2e8d31,this[_0xf585e6(0x40c)],this[_0xf585e6(0x120)],null,[],this[_0xf585e6(0x41a)]);}[_0x369941(0xb5)](){return this;}[_0x369941(0x1de)](){const _0x39f5ba=_0x369941;throw Error(_0x39f5ba(0x2b6));}['fetchMiss'](){const _0x219d6f=_0x369941;let _0xe62510=this[_0x219d6f(0x19c)][_0x219d6f(0xe5)](this[_0x219d6f(0x40c)]);return this[_0x219d6f(0x41a)][_0x219d6f(0x1b9)]({'from':_0xe62510,'to':0x0}),this[_0x219d6f(0x3e6)][_0x219d6f(0x335)](_0x44a720,this[_0x219d6f(0x40c)],this[_0x219d6f(0x120)],null,[],null,[],this[_0x219d6f(0x41a)]);}};_0x348178=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x4,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x5,_0xd0e18a['IUndoRedoService']),_0x2b5d73(0x6,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0x7,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0x8,_0x51810d['ITransformService']),_0x2b5d73(0x9,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x348178);let _0x195d73=_0x37e334=class extends _0x53d02b{constructor(_0xb9d871,_0x38f806,_0x664e14,_0x1073c4,_0x202f29,_0x34716d,_0x1d0e5b,_0x15b130,_0x53055b,_0x26c547,_0x2bcf5d,_0x48b612,_0x1d868b,_0x497bb6){const _0x292a7d=_0x369941;super(_0xb9d871,_0x38f806,null,_0x664e14,_0x1073c4,_0x53055b,_0x1d868b,_0x34716d,_0x497bb6),this[_0x292a7d(0x3e6)]=_0x202f29,this['_userManagerService']=_0x1d0e5b,this[_0x292a7d(0x2a2)]=_0x15b130,this[_0x292a7d(0x3da)]=_0x26c547,this['_transformService']=_0x2bcf5d,this[_0x292a7d(0x414)]=_0x48b612,_0xf185b(this,_0x292a7d(0x2e9),_0x292a7d(0x2f1)),_0xf185b(this,_0x292a7d(0x280),null),_0xf185b(this,_0x292a7d(0x1a6),null);}['appendMutation'](_0x1dab01){const _0x980183=_0x369941;return this[_0x980183(0xfc)]['push'](_0x1dab01),this[_0x980183(0x18a)](),this;}[_0x369941(0x386)](_0xb05823){const _0x53067d=_0x369941;if(this[_0x53067d(0x3c2)](_0xb05823))return this[_0x53067d(0x353)](),this['_injector'][_0x53067d(0x335)](_0x44a720,this[_0x53067d(0x40c)],this[_0x53067d(0x120)],null,this[_0x53067d(0xfc)],null,[_0xb05823],this['_handler']);try{let _0x53ac84=this['_transformService'][_0x53067d(0xc9)](_0xb05823,this[_0x53067d(0xfc)]);if((0x0,_0x51810d['isTransformMutationsWithChangesetSuccess'])(_0x53ac84)){let {c1Prime:_0x135537,m2Prime:_0x3e2883}=_0x53ac84;this[_0x53067d(0x2ea)](_0x135537);let _0x52cd31=this['_injector']['createInstance'](_0x37e334,this['unitID'],this[_0x53067d(0x120)],_0x3e2883,this[_0x53067d(0x41a)]);this[_0x53067d(0x353)]();let _0x54fea4=new Date()[_0x53067d(0x326)](),_0x210495=this[_0x53067d(0x280)]?Math[_0x53067d(0x161)](this[_0x53067d(0x280)]-_0x54fea4,0x0):this[_0x53067d(0x14e)]();return _0x52cd31[_0x53067d(0x130)](_0x210495),_0x52cd31;}throw _0x53ac84['error'];}catch(_0x173941){return this['_logService'][_0x53067d(0x254)](_0x173941),this[_0x53067d(0x3d5)](!0x1);}}[_0x369941(0x3b9)](_0x3237d8){const _0x4e3b1e=_0x369941;if(_0x3237d8[_0x4e3b1e(0x17b)]<=this[_0x4e3b1e(0x21d)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x369941(0x30c)](){const _0x30ac30=_0x369941;throw Error(_0x30ac30(0xff));}[_0x369941(0x30e)](){return this;}[_0x369941(0x253)](){const _0x36a2f0=_0x369941;return this[_0x36a2f0(0x353)](),this[_0x36a2f0(0x3e6)]['createInstance'](_0x2e8d31,this['unitID'],this[_0x36a2f0(0x120)],null,this['_pendingMutations'],this[_0x36a2f0(0x41a)]);}[_0x369941(0xb5)](){return this;}[_0x369941(0x130)](_0x18e16a){const _0x5005d3=_0x369941;let _0x4081ea=_0x18e16a??this[_0x5005d3(0x14e)]();this['_scheduleCompleteTimestamp']=new Date()[_0x5005d3(0x326)]()+_0x4081ea,this[_0x5005d3(0x1a6)]=setTimeout(()=>{const _0x53321b=_0x5005d3;this[_0x53321b(0x353)]();let _0x527cdd=null;switch(this[_0x53321b(0x120)]){case _0xd0e18a[_0x53321b(0x350)][_0x53321b(0x375)]:_0x527cdd=_0x4cc2d4(this['_pendingMutations'],this[_0x53321b(0x40c)],this['_univerInstanceService'],this[_0x53321b(0x19c)],this['_userManagerService']);break;case _0xd0e18a[_0x53321b(0x350)]['UNIVER_DOC']:_0x527cdd=this[_0x53321b(0xfc)][_0x53321b(0x361)](_0x3031e2=>_0x3031e2['id']===_0xbd3e77[_0x53321b(0x344)]['id'])?_0x45e54c(this[_0x53321b(0xfc)],this[_0x53321b(0x40c)],this[_0x53321b(0x414)],this['_revisionService'],this['_userManagerService']):_0x4cc2d4(this[_0x53321b(0xfc)],this[_0x53321b(0x40c)],this['_univerInstanceService'],this['_revisionService'],this[_0x53321b(0x3eb)]);break;case _0xd0e18a[_0x53321b(0x350)][_0x53321b(0x35e)]:_0x527cdd=_0xa98f45(this[_0x53321b(0xfc)],this['unitID'],this[_0x53321b(0x414)],this['_revisionService'],this[_0x53321b(0x3eb)]);break;case _0xd0e18a['UniverInstanceType']['UNIVER_PDF']:_0x527cdd=_0x24e0f8(this[_0x53321b(0xfc)],this[_0x53321b(0x40c)],this[_0x53321b(0x414)],this[_0x53321b(0x19c)],this[_0x53321b(0x3eb)]);break;case _0xd0e18a['UniverInstanceType'][_0x53321b(0x3f1)]:_0x527cdd=_0x4cc2d4(this[_0x53321b(0xfc)],this[_0x53321b(0x40c)],this[_0x53321b(0x414)],this[_0x53321b(0x19c)],this['_userManagerService']);break;case _0xd0e18a['UniverInstanceType'][_0x53321b(0xd4)]:_0x527cdd=_0x4cc2d4(this[_0x53321b(0xfc)],this[_0x53321b(0x40c)],this['_univerInstanceService'],this['_revisionService'],this[_0x53321b(0x3eb)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x53321b(0x120)]+'\x20in\x20_schedule.');}let {changeset:_0x4597b9,pendingMutations:_0x125721}=_0x527cdd;this[_0x53321b(0x41a)][_0x53321b(0x294)](_0x4597b9);let _0x29027d=_0x125721[_0x53321b(0x396)]?this[_0x53321b(0x3e6)][_0x53321b(0x335)](_0x1a8dbf,this[_0x53321b(0x40c)],this[_0x53321b(0x120)],_0x4597b9,_0x125721,this['_handler'],void 0x0):this['_injector'][_0x53321b(0x335)](_0x2fc73c,this[_0x53321b(0x40c)],this['type'],_0x4597b9,this['_handler']);_0x29027d[_0x53321b(0x18a)](),this[_0x53321b(0x41a)][_0x53321b(0x40a)](this,_0x29027d);},_0x4081ea);}['_getSendChangesetTimeout'](){const _0x1bd3e6=_0x369941;let _0x3256ab=this[_0x1bd3e6(0x3da)]['getConfig'](_0x2de243);return(_0x3256ab==null?void 0x0:_0x3256ab[_0x1bd3e6(0x2ef)])??0x7d0;}[_0x369941(0x1de)](){const _0x59f72f=_0x369941;throw Error(_0x59f72f(0x1f9));}[_0x369941(0x353)](){const _0x202389=_0x369941;this[_0x202389(0x1a6)]!=null&&(clearTimeout(this[_0x202389(0x1a6)]),this[_0x202389(0x1a6)]=null);}[_0x369941(0x3d5)](_0x207f45){const _0x1c6ab5=_0x369941;return this[_0x1c6ab5(0x353)](),this[_0x1c6ab5(0x3e6)][_0x1c6ab5(0x335)](_0x39876b,this[_0x1c6ab5(0x40c)],this[_0x1c6ab5(0x120)],null,this[_0x1c6ab5(0xfc)],this['_handler'],_0x207f45);}};_0x195d73=_0x37e334=_0x5d2da6([_0x2b5d73(0x4,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x1d6)])),_0x2b5d73(0x7,_0xd0e18a['ILogService']),_0x2b5d73(0x8,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0x9,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0xa,_0x51810d['ITransformService']),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0x390)]),_0x2b5d73(0xc,_0xd0e18a[_0x369941(0x29d)]),_0x2b5d73(0xd,(0x0,_0xd0e18a['Optional'])(_0x2c8a38))],_0x195d73);let _0x2fc73c=_0x3f0fee=class extends _0x53d02b{constructor(_0x552d4c,_0x56f60,_0x2f17f4,_0x2c54f5,_0x144050,_0x19ed32,_0x45c895,_0xa681d9,_0x2f5aac,_0x5a3141,_0x21ec6b){const _0x55a80c=_0x369941;super(_0x552d4c,_0x56f60,_0x2f17f4,[],_0x2c54f5,_0x45c895,_0x5a3141,_0x19ed32,_0x21ec6b),this['_injector']=_0x144050,this[_0x55a80c(0x2a2)]=_0xa681d9,this[_0x55a80c(0x172)]=_0x2f5aac,_0xf185b(this,_0x55a80c(0x2e9),_0x55a80c(0x166)),_0xf185b(this,_0x55a80c(0x3a8),0x0),_0xf185b(this,_0x55a80c(0x239),0x0),_0xf185b(this,_0x55a80c(0x310),void 0x0),_0xf185b(this,'_sender',void 0x0);}['appendMutation'](_0x3d71cd){const _0x38c6ad=_0x369941;this[_0x38c6ad(0x353)]();let _0x249b86=this['_injector'][_0x38c6ad(0x335)](_0x1a8dbf,this[_0x38c6ad(0x40c)],this['type'],this[_0x38c6ad(0x35f)],[_0x3d71cd],this[_0x38c6ad(0x41a)],this[_0x38c6ad(0x310)]);return _0x249b86['_updateLocalCache'](),_0x249b86;}['onRemoteChangeset'](_0x353e9a){const _0x24a939=_0x369941;if(this[_0x24a939(0x3c2)](_0x353e9a))return this[_0x24a939(0x353)](),this[_0x24a939(0x3e6)][_0x24a939(0x335)](_0x44a720,this[_0x24a939(0x40c)],this[_0x24a939(0x120)],this['_awaitingChangeset'],[],null,[_0x353e9a],this[_0x24a939(0x41a)]);try{let _0x35dd02=this[_0x24a939(0x172)][_0x24a939(0x11a)]([_0x353e9a],[this[_0x24a939(0x35f)]],!0x1);if((0x0,_0x51810d[_0x24a939(0x2c6)])(_0x35dd02)){let {c1Prime:_0x9456a,c2Prime:_0x32f907}=_0x35dd02;this[_0x24a939(0x2ea)](_0x9456a[0x0]),_0x32f907[0x0]['baseRev']=this[_0x24a939(0x21d)](),this[_0x24a939(0x353)]();let _0x179a5c=this[_0x24a939(0x3e6)][_0x24a939(0x335)](_0x3f0fee,this[_0x24a939(0x40c)],this[_0x24a939(0x120)],_0x32f907[0x0],this[_0x24a939(0x41a)]);return _0x179a5c['_updateLocalCache'](),_0x179a5c;}throw _0x35dd02[_0x24a939(0x254)];}catch(_0x12c7af){return this[_0x24a939(0x2a2)][_0x24a939(0x254)](_0x12c7af),this[_0x24a939(0x3d5)](!0x1);}}[_0x369941(0x3b9)](_0x433a85){const _0x1f9a99=_0x369941;this[_0x1f9a99(0x353)]();let _0x5a71fd=this[_0x1f9a99(0x19c)][_0x1f9a99(0xe5)](this[_0x1f9a99(0x40c)]);if(_0x433a85[_0x1f9a99(0x17b)]<=_0x5a71fd)return this;if(this['_checkMissing'](_0x433a85))return this[_0x1f9a99(0x3e6)][_0x1f9a99(0x335)](_0x44a720,this['unitID'],this[_0x1f9a99(0x120)],this['_awaitingChangeset'],[],_0x433a85[_0x1f9a99(0x17b)],[],this['_handler']);this[_0x1f9a99(0x18b)]();let _0x23a75e=this[_0x1f9a99(0x3e6)][_0x1f9a99(0x335)](_0x348178,this['unitID'],this['type'],this['_handler']);return _0x23a75e[_0x1f9a99(0x18a)](),_0x23a75e;}[_0x369941(0x30c)](_0x490952){const _0x4b032b=_0x369941;return this[_0x4b032b(0x3d5)](!!(_0x490952!=null&&_0x490952[_0x4b032b(0x2f3)]));}['onRemoteRetry'](_0x35da46){const _0x2569f4=_0x369941;return this['_maxTotalRetryTimeout']>_0x3387cf?this[_0x2569f4(0x253)]():(this[_0x2569f4(0x310)]=_0x4e8a2a(this[_0x2569f4(0x3a8)],{'timeout':this['_resendTimeout'],'reqId':_0x35da46[_0x2569f4(0xb3)]}),this['_sender']=this[_0x2569f4(0x310)][_0x2569f4(0x35a)](({reqId:_0x3babf9,timeout:_0x310977})=>{const _0x15eb36=_0x2569f4;this[_0x15eb36(0x2b2)](_0x3babf9,_0x310977);}),this);}['toggleOffline'](){const _0x2d09d8=_0x369941;return this[_0x2d09d8(0x353)](),this[_0x2d09d8(0x3e6)][_0x2d09d8(0x335)](_0x2e8d31,this['unitID'],this[_0x2d09d8(0x120)],this['_awaitingChangeset'],[],this['_handler']);}['toggleOnline'](){return this;}[_0x369941(0x1de)](){const _0x3daac1=_0x369941;this['_handler'][_0x3daac1(0x294)](this[_0x3daac1(0x35f)]);}[_0x369941(0x3d5)](_0x18a430){const _0x449a8c=_0x369941;return this[_0x449a8c(0x353)](),this[_0x449a8c(0x3e6)]['createInstance'](_0x39876b,this['unitID'],this[_0x449a8c(0x120)],this['_awaitingChangeset'],[],this[_0x449a8c(0x41a)],_0x18a430);}[_0x369941(0x2b2)](_0x477987,_0x5a9ae1){const _0x155899=_0x369941;var _0x6fcc96;_0x477987===((_0x6fcc96=this[_0x155899(0x35f)])==null?void 0x0:_0x6fcc96[_0x155899(0xb3)])&&(this[_0x155899(0x1de)](),this[_0x155899(0x3a8)]=_0x5a9ae1===0x0?0x3e8:Math['min'](_0x5a9ae1*0x2,_0x1842f5),this[_0x155899(0x239)]+=this[_0x155899(0x3a8)]);}['_clearScheduledTask'](){const _0x30f4b0=_0x369941;var _0x37503f;(_0x37503f=this['_sender'])==null||_0x37503f['unsubscribe'](),this[_0x30f4b0(0x3a8)]=0x0,this[_0x30f4b0(0x239)]=0x0;}};_0x2fc73c=_0x3f0fee=_0x5d2da6([_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['Injector'])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x6,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0x7,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0x8,_0x51810d[_0x369941(0x275)]),_0x2b5d73(0x9,_0xd0e18a['IUndoRedoService']),_0x2b5d73(0xa,(0x0,_0xd0e18a['Optional'])(_0x2c8a38))],_0x2fc73c);let _0x1a8dbf=_0x5a1dc8=class extends _0x53d02b{constructor(_0x3abe36,_0xdcb670,_0x36e147,_0x15940d,_0xe6434c,_0x52a304,_0x5bbd32,_0x1f7f8f,_0x3401d1,_0x478048,_0x1fb926,_0x462daa,_0x3d0e1f){const _0x52192e=_0x369941;super(_0x3abe36,_0xdcb670,_0x36e147,_0x15940d,_0xe6434c,_0x3401d1,_0x462daa,_0x1f7f8f,_0x3d0e1f),this['_injector']=_0x5bbd32,this[_0x52192e(0x2a2)]=_0x478048,this[_0x52192e(0x172)]=_0x1fb926,this['localCacheService']=_0x3d0e1f,_0xf185b(this,'status',_0x52192e(0x19e)),_0xf185b(this,_0x52192e(0x3a8),0x0),_0xf185b(this,'_maxTotalRetryTimeout',0x0),_0xf185b(this,_0x52192e(0x310),void 0x0),_0xf185b(this,_0x52192e(0x249),void 0x0),_0x52a304&&(this['_resendTimer']=_0x52a304,this[_0x52192e(0x249)]=this['_resendTimer'][_0x52192e(0x35a)](({reqId:_0x43e1b8,timeout:_0x290e67})=>{const _0x2ac9a2=_0x52192e;this[_0x2ac9a2(0x2b2)](_0x43e1b8,_0x290e67);}));}[_0x369941(0x17a)](_0x40951a){const _0x8c5da0=_0x369941;return this[_0x8c5da0(0xfc)]['push'](_0x40951a),this;}[_0x369941(0x386)](_0x13ff08){const _0x5416bc=_0x369941;if(this[_0x5416bc(0x3c2)](_0x13ff08))return this[_0x5416bc(0x353)](),this[_0x5416bc(0x3e6)][_0x5416bc(0x335)](_0x44a720,this[_0x5416bc(0x40c)],this[_0x5416bc(0x120)],this['_awaitingChangeset'],this[_0x5416bc(0xfc)],null,[_0x13ff08],this['_handler']);try{let _0x5d81f5=this['_transformService'][_0x5416bc(0x11a)]([_0x13ff08],[this[_0x5416bc(0x35f)]],!0x1);if((0x0,_0x51810d[_0x5416bc(0x2c6)])(_0x5d81f5)){let {c1Prime:_0x161003,c2Prime:_0x32950f}=_0x5d81f5,_0x14fc9f=this[_0x5416bc(0x172)][_0x5416bc(0xc9)](_0x161003[0x0],this[_0x5416bc(0xfc)]);if((0x0,_0x51810d[_0x5416bc(0x38d)])(_0x14fc9f)){let {c1Prime:_0x318751,m2Prime:_0x3afcf1}=_0x14fc9f;return this['_executeRemoteChangeset'](_0x318751),_0x32950f[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x5416bc(0x3e6)][_0x5416bc(0x335)](_0x5a1dc8,this[_0x5416bc(0x40c)],this['type'],_0x32950f[0x0],_0x3afcf1,this[_0x5416bc(0x41a)],void 0x0);}throw _0x14fc9f['error'];}throw _0x5d81f5[_0x5416bc(0x254)];}catch(_0x5150ae){return this[_0x5416bc(0x2a2)]['error'](_0x5150ae),this[_0x5416bc(0x3d5)](!0x1);}}[_0x369941(0x3b9)](_0xcef705){const _0x44b3d8=_0x369941;this['_clearScheduledTask']();let _0x3a3455=this[_0x44b3d8(0x21d)]();if(_0xcef705['revision']<=_0x3a3455)return this;if(this[_0x44b3d8(0x3c2)](_0xcef705))return this[_0x44b3d8(0x3e6)][_0x44b3d8(0x335)](_0x44a720,this['unitID'],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],_0xcef705[_0x44b3d8(0x17b)],[],this['_handler']);this[_0x44b3d8(0x18b)]();let _0x3b2dd0=this[_0x44b3d8(0x3e6)][_0x44b3d8(0x335)](_0x195d73,this[_0x44b3d8(0x40c)],this['type'],this[_0x44b3d8(0xfc)],this[_0x44b3d8(0x41a)]);return _0x3b2dd0[_0x44b3d8(0x130)](),_0x3b2dd0[_0x44b3d8(0x18a)](),_0x3b2dd0;}[_0x369941(0x30c)](_0x118aa0){const _0x1af725=_0x369941;return this[_0x1af725(0x3d5)](!!(_0x118aa0!=null&&_0x118aa0[_0x1af725(0x2f3)]));}['onRemoteRetry'](_0x572bcc){const _0x65f8ea=_0x369941;return this['_maxTotalRetryTimeout']>_0x3387cf?this[_0x65f8ea(0x253)]():(this['_resendTimer']=_0x4e8a2a(this[_0x65f8ea(0x3a8)],{'timeout':this[_0x65f8ea(0x3a8)],'reqId':_0x572bcc[_0x65f8ea(0xb3)]}),this[_0x65f8ea(0x249)]=this[_0x65f8ea(0x310)][_0x65f8ea(0x35a)](({reqId:_0x3431b7,timeout:_0x3a6f2d})=>{const _0x5e8bfe=_0x65f8ea;this[_0x5e8bfe(0x2b2)](_0x3431b7,_0x3a6f2d);}),this);}[_0x369941(0x253)](){const _0x2efaca=_0x369941;return this[_0x2efaca(0x353)](),this[_0x2efaca(0x3e6)]['createInstance'](_0x2e8d31,this['unitID'],this[_0x2efaca(0x120)],this['_awaitingChangeset'],this[_0x2efaca(0xfc)],this[_0x2efaca(0x41a)]);}[_0x369941(0xb5)](){return this;}[_0x369941(0x1de)](){const _0x44439a=_0x369941;this[_0x44439a(0x41a)][_0x44439a(0x294)](this['_awaitingChangeset']);}[_0x369941(0x3d5)](_0x1c624c){const _0x54ecbf=_0x369941;return this[_0x54ecbf(0x353)](),this[_0x54ecbf(0x3e6)][_0x54ecbf(0x335)](_0x39876b,this[_0x54ecbf(0x40c)],this[_0x54ecbf(0x120)],null,this[_0x54ecbf(0xfc)],this[_0x54ecbf(0x41a)],_0x1c624c);}[_0x369941(0x2b2)](_0x3c4c12,_0x5d34c1){const _0x4ccaf0=_0x369941;var _0x16bded;_0x3c4c12===((_0x16bded=this[_0x4ccaf0(0x35f)])==null?void 0x0:_0x16bded[_0x4ccaf0(0xb3)])&&(this[_0x4ccaf0(0x1de)](),this[_0x4ccaf0(0x3a8)]=_0x5d34c1===0x0?0x3e8:Math[_0x4ccaf0(0x381)](_0x5d34c1*0x2,_0x1842f5),this[_0x4ccaf0(0x239)]+=this[_0x4ccaf0(0x3a8)]);}['_clearScheduledTask'](){const _0x4a9d84=_0x369941;var _0x5ebf6e;(_0x5ebf6e=this[_0x4a9d84(0x249)])==null||_0x5ebf6e[_0x4a9d84(0x370)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1a8dbf=_0x5a1dc8=_0x5d2da6([_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x8,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0x9,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0xa,_0x51810d[_0x369941(0x275)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0x29d)]),_0x2b5d73(0xc,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x1a8dbf);let _0x39876b=class extends _0x53d02b{constructor(_0x465eb1,_0xa8fdd4,_0x3f4e54,_0x224bf8,_0x3166f8,_0x26653a=!0x1,_0x1e7b2f,_0x13c5fe,_0x3166a5,_0x1e9f2d,_0x3318ff,_0xb547c9,_0x30d797){const _0x44c8d8=_0x369941;super(_0x465eb1,_0xa8fdd4,_0x3f4e54,_0x224bf8,_0x3166f8,_0x13c5fe,_0x3166a5,_0x1e9f2d,_0x30d797),this['_isPermissionRej']=_0x26653a,this['_permissionService']=_0x1e7b2f,this['_localeService']=_0x3318ff,this[_0x44c8d8(0x3aa)]=_0xb547c9,this[_0x44c8d8(0x362)]=_0x30d797,_0xf185b(this,'status',_0x44c8d8(0x333)),this[_0x44c8d8(0x3cc)](),this['_clearLocalCache'](),this[_0x44c8d8(0x12d)]();}[_0x369941(0x17a)](){return this;}[_0x369941(0x386)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x369941(0x30e)](){return this;}[_0x369941(0x253)](){return this;}['toggleOnline'](){return this;}[_0x369941(0x1de)](){const _0x3a53fc=_0x369941;throw Error(_0x3a53fc(0x244));}['_clearLocalCache'](){const _0xb560cd=_0x369941;var _0x2d7ecb,_0x14bfd5,_0x3f193d;(_0x2d7ecb=this[_0xb560cd(0x106)])==null||(_0x14bfd5=_0x2d7ecb[_0xb560cd(0x111)])==null||(_0x14bfd5=_0x14bfd5['call'](_0x2d7ecb,this[_0xb560cd(0x40c)],'conflict'))==null||_0x14bfd5[_0xb560cd(0x37a)](()=>void 0x0),(_0x3f193d=this[_0xb560cd(0x106)])==null||_0x3f193d[_0xb560cd(0x2ad)](this[_0xb560cd(0x40c)],this[_0xb560cd(0x120)],null,[]);}[_0x369941(0x3cc)](){const _0x463db4=_0x369941;this[_0x463db4(0x243)]?this[_0x463db4(0x3aa)][_0x463db4(0x1d4)]({'id':'PERMISSION_DENIED'}):this[_0x463db4(0x3aa)][_0x463db4(0x1d4)]({'id':_0x463db4(0x125)});}[_0x369941(0x12d)](){const _0x482e48=_0x369941;this[_0x482e48(0x231)][_0x482e48(0x2a6)](new _0x54675a['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};_0x39876b=_0x5d2da6([_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['IPermissionService'])),_0x2b5d73(0x7,_0xd0e18a['ICommandService']),_0x2b5d73(0x8,_0xd0e18a[_0x369941(0x29d)]),_0x2b5d73(0x9,(0x0,_0xd0e18a['Inject'])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0xa,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x1e3)])),_0x2b5d73(0xb,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x1d0ad8)),_0x2b5d73(0xc,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x39876b);let _0x2e8d31=class extends _0x53d02b{constructor(_0x4e8bdd,_0x5291cd,_0x2c9992,_0x539d19,_0x3ec519,_0x11a42c,_0x471bc7,_0x2a5fe5,_0x1ee081,_0x4f4229){const _0x323408=_0x369941;super(_0x4e8bdd,_0x5291cd,_0x2c9992,_0x539d19,_0x3ec519,_0x2a5fe5,_0x1ee081,_0x471bc7,_0x4f4229),this[_0x323408(0x3e6)]=_0x11a42c,_0xf185b(this,_0x323408(0x2e9),_0x323408(0x233));}['appendMutation'](_0x2e3329){const _0x4f37e7=_0x369941;return this[_0x4f37e7(0xfc)]['push'](_0x2e3329),this[_0x4f37e7(0x18a)](),this;}[_0x369941(0x386)](_0x47913b){const _0x1d0e94=_0x369941;throw Error(_0x1d0e94(0x3b2));}[_0x369941(0x3b9)](){const _0x472e10=_0x369941;throw Error(_0x472e10(0x31e));}[_0x369941(0x30c)](){const _0x493eff=_0x369941;throw Error(_0x493eff(0x13a));}['onRemoteRetry'](){return this;}[_0x369941(0x253)](){return this;}[_0x369941(0xb5)](){const _0x47fa5a=_0x369941;let {_injector:_0x198617,_pendingMutations:_0xfc14a3,_awaitingChangeset:_0x333a4a,unitID:_0x78fc7f,_handler:_0x21f0cf,type:_0x145e2d}=this,_0x51c5ad=_0x8b8c32(_0x198617,_0x78fc7f,_0x145e2d,_0x333a4a,_0xfc14a3,_0x21f0cf);return _0x51c5ad instanceof _0x195d73?_0x51c5ad[_0x47fa5a(0x130)]():(_0x51c5ad instanceof _0x1a8dbf||_0x51c5ad instanceof _0x2fc73c)&&_0x51c5ad['resend'](),_0x51c5ad;}[_0x369941(0x1de)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x2e8d31=_0x5d2da6([_0x2b5d73(0x5,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d['RevisionService'])),_0x2b5d73(0x7,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0x8,_0xd0e18a['IUndoRedoService']),_0x2b5d73(0x9,(0x0,_0xd0e18a['Optional'])(_0x2c8a38))],_0x2e8d31);let _0x44a720=class extends _0x53d02b{constructor(_0x89b46a,_0x158ef8,_0x55f983,_0x1bd905,_0x1304cb,_0x2e70a5,_0x429933,_0x4418bb,_0x1d677b,_0x3fbfde,_0x60add1,_0x5aa19b,_0x2124e4,_0x34a2ef){const _0xf2f2c=_0x369941;super(_0x89b46a,_0x158ef8,_0x55f983,_0x1bd905,_0x429933,_0x60add1,_0x5aa19b,_0x1d677b,_0x34a2ef),this[_0xf2f2c(0x2af)]=_0x1304cb,this[_0xf2f2c(0x2cb)]=_0x2e70a5,this[_0xf2f2c(0x3e6)]=_0x4418bb,this[_0xf2f2c(0x2a2)]=_0x3fbfde,this[_0xf2f2c(0x172)]=_0x2124e4,this[_0xf2f2c(0x362)]=_0x34a2ef,_0xf185b(this,_0xf2f2c(0x2e9),_0xf2f2c(0x2e6));}['onMissedChangesetFetched'](_0x70b9f7){const _0x1cb5e2=_0x369941;try{if(this[_0x1cb5e2(0x1b6)](_0x70b9f7)['missingChangesets'])throw Error(_0x1cb5e2(0x316));if(this[_0x1cb5e2(0x1b6)]([...this[_0x1cb5e2(0x2cb)]]['sort']((_0x3c672b,_0x51ccf0)=>_0x3c672b[_0x1cb5e2(0x17b)]-_0x51ccf0[_0x1cb5e2(0x17b)]))[_0x1cb5e2(0x123)])return this[_0x1cb5e2(0x2cb)]=[],this[_0x1cb5e2(0x18a)](),this[_0x1cb5e2(0x41a)]['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x25afb2=this[_0x1cb5e2(0x35f)],_0x41eeda=this['_pendingMutations'],_0x57912c;if(_0x25afb2&&_0x41eeda[_0x1cb5e2(0x396)]!==0x0)_0x57912c=this['_injector'][_0x1cb5e2(0x335)](_0x1a8dbf,this[_0x1cb5e2(0x40c)],this['type'],_0x25afb2,_0x41eeda,this[_0x1cb5e2(0x41a)],void 0x0);else{if(_0x25afb2&&_0x41eeda[_0x1cb5e2(0x396)]===0x0)_0x25afb2[_0x1cb5e2(0x152)]=this[_0x1cb5e2(0x21d)](),_0x57912c=this[_0x1cb5e2(0x3e6)]['createInstance'](_0x2fc73c,this[_0x1cb5e2(0x40c)],this[_0x1cb5e2(0x120)],_0x25afb2,this['_handler']);else{if(_0x41eeda[_0x1cb5e2(0x396)]!==0x0){let _0x5c1c50=this[_0x1cb5e2(0x3e6)][_0x1cb5e2(0x335)](_0x195d73,this['unitID'],this[_0x1cb5e2(0x120)],_0x41eeda,this[_0x1cb5e2(0x41a)]);_0x5c1c50[_0x1cb5e2(0x130)](),_0x57912c=_0x5c1c50;}else _0x57912c=this[_0x1cb5e2(0x3e6)]['createInstance'](_0x348178,this[_0x1cb5e2(0x40c)],this[_0x1cb5e2(0x120)],this[_0x1cb5e2(0x41a)]);}}return _0x57912c['_updateLocalCache'](),_0x57912c;}catch(_0x315a85){return this[_0x1cb5e2(0x2a2)][_0x1cb5e2(0x254)]('[FetchMissState]',_0x1cb5e2(0x200),_0x315a85),this[_0x1cb5e2(0x3e6)][_0x1cb5e2(0x335)](_0x39876b,this[_0x1cb5e2(0x40c)],this[_0x1cb5e2(0x120)],this['_awaitingChangeset'],this[_0x1cb5e2(0xfc)],this[_0x1cb5e2(0x41a)],!0x1);}}[_0x369941(0x1b6)](_0x3c74bd){const _0x12d118=_0x369941;this[_0x12d118(0x2fb)]();for(let _0x1d2304=0x0;_0x1d2304<_0x3c74bd['length'];_0x1d2304++){let _0x480403=_0x3c74bd[_0x1d2304],_0x68e005=this[_0x12d118(0x21d)]();if(!(_0x480403[_0x12d118(0x17b)]<=_0x68e005)){if(_0x480403[_0x12d118(0x17b)]>_0x68e005+0x1)return{'missingChangesets':!0x0};if(this[_0x12d118(0x114)](_0x480403)){this[_0x12d118(0x388)]();continue;}this[_0x12d118(0x14a)](_0x480403),this[_0x12d118(0x2fb)]();}}return{'missingChangesets':!0x1};}[_0x369941(0x14a)](_0xeeec64){const _0x5b63a4=_0x369941;let _0x2555c6=_0xeeec64,_0x4739ee=this[_0x5b63a4(0x35f)];if(_0x4739ee){let _0x35865c=this['_transformService']['transformChangesets']([_0xeeec64],[_0x4739ee],!0x1);if(!(0x0,_0x51810d[_0x5b63a4(0x2c6)])(_0x35865c))throw _0x35865c[_0x5b63a4(0x254)];_0x2555c6=_0x35865c[_0x5b63a4(0xd1)][0x0],_0x4739ee=_0x35865c[_0x5b63a4(0x351)][0x0];}let _0x44360b=this[_0x5b63a4(0xfc)];if(_0x44360b['length']){let _0x835f17=this[_0x5b63a4(0x172)][_0x5b63a4(0xc9)](_0x2555c6,_0x44360b);if(!(0x0,_0x51810d[_0x5b63a4(0x38d)])(_0x835f17))throw _0x835f17['error'];_0x2555c6=_0x835f17[_0x5b63a4(0xd1)],_0x44360b=_0x835f17[_0x5b63a4(0x3e8)];}this['_executeRemoteChangeset'](_0x2555c6),_0x4739ee&&(_0x4739ee['baseRev']=this[_0x5b63a4(0x21d)]()),this[_0x5b63a4(0x35f)]=_0x4739ee,this['_pendingMutations']=_0x44360b;}['_acknowledgeAwaitingIfReady'](){const _0xad205=_0x369941;if(!this['_awaitingChangeset']||this[_0xad205(0x2af)]==null)return;let _0x3655ca=this['_getCurrentRevision']();if(this[_0xad205(0x2af)]<=_0x3655ca)throw Error(_0xad205(0x104)+this[_0xad205(0x2af)]+'.');this['_acknowledgedAwaitingRevision']===_0x3655ca+0x1&&this['_acknowledgeAwaiting']();}['_acknowledgeAwaiting'](){const _0x1427fc=_0x369941;this['_incrementRevisionNumber'](),this[_0x1427fc(0x35f)]=null,this[_0x1427fc(0x2af)]=null;}[_0x369941(0x114)](_0x3107c6){const _0x3346c5=_0x369941;let _0x368983=this[_0x3346c5(0x35f)];return!_0x368983||!_0x368983[_0x3346c5(0x1d7)]||_0x368983[_0x3346c5(0xb3)]===null||_0x368983[_0x3346c5(0xb3)]===void 0x0?!0x1:_0x3107c6[_0x3346c5(0x40c)]===_0x368983[_0x3346c5(0x40c)]&&_0x3107c6[_0x3346c5(0x1d7)]===_0x368983['sid']&&_0x3107c6[_0x3346c5(0xb3)]===_0x368983['reqId'];}['resend'](){const _0x20f0f3=_0x369941;throw Error(_0x20f0f3(0x287));}[_0x369941(0x17a)](_0x513347){const _0x4a7e45=_0x369941;return this[_0x4a7e45(0xfc)][_0x4a7e45(0x3f3)](_0x513347),this;}[_0x369941(0x386)](_0x4b4b52){const _0x3f3171=_0x369941;return this[_0x3f3171(0x2cb)]['push'](_0x4b4b52),this;}[_0x369941(0x3b9)](_0x1263b3){const _0x4ed282=_0x369941;if(this[_0x4ed282(0x35f)]){let _0x599c1a=this['_getCurrentRevision']();return _0x1263b3[_0x4ed282(0x17b)]<=_0x599c1a||(_0x599c1a+0x1===_0x1263b3[_0x4ed282(0x17b)]?(this[_0x4ed282(0x18b)](),this[_0x4ed282(0x35f)]=null,this[_0x4ed282(0x2af)]=null):this[_0x4ed282(0x2af)]=_0x1263b3[_0x4ed282(0x17b)]),this;}if(_0x1263b3[_0x4ed282(0x17b)]<=this['_getCurrentRevision']())return this;throw Error(_0x4ed282(0x1f8));}[_0x369941(0x30c)](_0x80b96b){const _0x458684=_0x369941;return this[_0x458684(0x3d5)](!!(_0x80b96b!=null&&_0x80b96b['isPermissionRej']));}[_0x369941(0x30e)](){return this;}[_0x369941(0x253)](){const _0x480dfd=_0x369941;return this[_0x480dfd(0x3e6)][_0x480dfd(0x335)](_0x2e8d31,this[_0x480dfd(0x40c)],this[_0x480dfd(0x120)],this[_0x480dfd(0x35f)],this[_0x480dfd(0xfc)],this[_0x480dfd(0x41a)]);}[_0x369941(0xb5)](){return this;}[_0x369941(0x3d5)](_0x19f9b7){const _0x1029de=_0x369941;return this[_0x1029de(0x3e6)][_0x1029de(0x335)](_0x39876b,this['unitID'],this[_0x1029de(0x120)],this[_0x1029de(0x35f)],this['_pendingMutations'],this[_0x1029de(0x41a)],_0x19f9b7);}};_0x44a720=_0x5d2da6([_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['Injector'])),_0x2b5d73(0x8,(0x0,_0xd0e18a['Inject'])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x9,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0xa,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0x29d)]),_0x2b5d73(0xc,_0x51810d[_0x369941(0x275)]),_0x2b5d73(0xd,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x44a720);function _0x8b8c32(_0x19456b,_0x36b249,_0x5ef6a2,_0x4973cd,_0x3f2ac8,_0x5d933e){const _0x53e9b2=_0x369941;return _0x4973cd&&_0x3f2ac8[_0x53e9b2(0x396)]?_0x19456b['createInstance'](_0x1a8dbf,_0x36b249,_0x5ef6a2,_0x4973cd,_0x3f2ac8,_0x5d933e,void 0x0):_0x4973cd?_0x19456b[_0x53e9b2(0x335)](_0x2fc73c,_0x36b249,_0x5ef6a2,_0x4973cd,_0x5d933e):_0x3f2ac8[_0x53e9b2(0x396)]?_0x19456b[_0x53e9b2(0x335)](_0x195d73,_0x36b249,_0x5ef6a2,_0x3f2ac8,_0x5d933e):_0x19456b[_0x53e9b2(0x335)](_0x348178,_0x36b249,_0x5ef6a2,_0x5d933e);}let _0x4a2b8c=class extends _0xd0e18a[_0x369941(0x10a)]{get['state'](){const _0x5e1b8a=_0x369941;return this[_0x5e1b8a(0x20a)];}constructor(_0x3b4c0f,_0x351574,_0x590767,_0x3cf49a,_0x4d19d0,_0xe49ad3,_0x339f88,_0x353b08,_0x28eb43,_0x45894f,_0x310289,_0x646920,_0x26682f,_0x2a03c3){const _0x5e38dc=_0x369941;super(),this[_0x5e38dc(0x40c)]=_0x3b4c0f,this['session']=_0x351574,this[_0x5e38dc(0x2bc)]=_0x590767,this[_0x5e38dc(0x3e6)]=_0x3cf49a,this[_0x5e38dc(0x18e)]=_0x4d19d0,this[_0x5e38dc(0x16a)]=_0xe49ad3,this[_0x5e38dc(0x19c)]=_0x339f88,this[_0x5e38dc(0x1bd)]=_0x353b08,this[_0x5e38dc(0x414)]=_0x28eb43,this[_0x5e38dc(0x2a2)]=_0x45894f,this['_commandService']=_0x310289,this['_permissionService']=_0x646920,this['_singleActiveUnitService']=_0x26682f,this['_localCacheService']=_0x2a03c3,_0xf185b(this,_0x5e38dc(0x2c2),new _0x23047a[(_0x5e38dc(0x22b))](null)),_0xf185b(this,_0x5e38dc(0xb9),this[_0x5e38dc(0x2c2)][_0x5e38dc(0x395)]()),_0xf185b(this,_0x5e38dc(0x20a),void 0x0),_0xf185b(this,_0x5e38dc(0x347),!0x1),_0xf185b(this,_0x5e38dc(0x33d),''),_0xf185b(this,_0x5e38dc(0x262),0x0),_0xf185b(this,_0x5e38dc(0x277),this[_0x5e38dc(0xb9)]['pipe']((0x0,_0x23047a['map'])(_0xa0e3d2=>_0xa0e3d2?_0xa0e3d2['status']:_0x5e38dc(0x233)),(0x0,_0x23047a[_0x5e38dc(0x12b)])({'bufferSize':0x1,'refCount':!0x0}))),_0xf185b(this,_0x5e38dc(0x1b0),!0x1),_0xf185b(this,'_remoteChangesetQueue',[]);}async[_0x369941(0x162)](){const _0x44f253=_0x369941;if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x44f253(0x360)]();}[_0x369941(0x27c)](){const _0x2d0202=_0x369941;return this[_0x2d0202(0x347)]=!0x0,(0x0,_0xd0e18a[_0x2d0202(0x290)])(()=>{const _0x5258de=_0x2d0202;this[_0x5258de(0x347)]=!0x1,this[_0x5258de(0x1da)]();});}['onLocalMutation'](_0x5c307f){const _0x19a266=_0x369941;this[_0x19a266(0x318)](_0x5c307f);}[_0x369941(0x128)](_0x1ac85c){const _0x43ae06=_0x369941;this[_0x43ae06(0x20a)]=_0x1ac85c,this[_0x43ae06(0x2c2)][_0x43ae06(0x300)](_0x1ac85c);}async['_init'](){const _0x20d139=_0x369941;if(this[_0x20d139(0x128)](await this['_createInitialState']()),this[_0x20d139(0x3a7)]){var _0x5cbd23;(_0x5cbd23=this['_singleActiveUnitService'])==null||_0x5cbd23[_0x20d139(0x26c)](this['unitID']),this[_0x20d139(0x179)](this[_0x20d139(0x3a7)][_0x20d139(0x159)](this['unitID'])[_0x20d139(0x35a)](_0x2c636c=>{const _0x3056a3=_0x20d139;this[_0x3056a3(0x2a2)][_0x3056a3(0x1b4)](_0x3056a3(0x10e),_0x3056a3(0x278),_0x2c636c),_0x2c636c===0x1?(this[_0x3056a3(0x1bd)]['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this[_0x3056a3(0x231)][_0x3056a3(0x2a6)](new _0x54675a[(_0x3056a3(0x14b))](this['unitID'])['id'],!0x1),this['_permissionService'][_0x3056a3(0x397)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new _0x54675a[(_0x3056a3(0x14b))](this[_0x3056a3(0x40c)])['id'],!0x0),this[_0x3056a3(0x231)][_0x3056a3(0x397)](!0x0));}));}let _0x4a536d=!0x1;return this[_0x20d139(0x179)](this[_0x20d139(0x39e)]['sessionStatus$'][_0x20d139(0x35a)](_0x3f1507=>{const _0x2abb98=_0x20d139;_0x3f1507===0x3?this['_toggleOnline'](_0x4a536d):_0x3f1507===0x2&&(_0x4a536d=!0x0,this[_0x2abb98(0x1f1)]());})),this[_0x20d139(0x179)](this[_0x20d139(0x39e)][_0x20d139(0x144)][_0x20d139(0x35a)](_0x387743=>{const _0x53df3f=_0x20d139;try{switch(_0x387743[_0x53df3f(0x374)]){case _0x51810d[_0x53df3f(0x2c9)]['NEW_CHANGESETS']:this[_0x53df3f(0x2a1)]((0x0,_0x51810d['parseProtocolChangeset'])(_0x387743[_0x53df3f(0x39a)]));break;case _0x51810d[_0x53df3f(0x2c9)][_0x53df3f(0xcc)]:this['_onRemoteACK'](_0x387743[_0x53df3f(0x39a)]);break;case _0x51810d[_0x53df3f(0x2c9)][_0x53df3f(0x1e1)]:this[_0x53df3f(0x3ce)]();break;case _0x51810d[_0x53df3f(0x2c9)]['CHANGESET_SHOULD_RETRY']:this[_0x53df3f(0x1b7)](_0x387743[_0x53df3f(0x39a)]);break;case _0x51810d['CollaborationEvent'][_0x53df3f(0x327)]:this[_0x53df3f(0x3f4)](_0x387743[_0x53df3f(0x39a)][_0x53df3f(0x147)][_0x53df3f(0x102)](_0x56f29d=>(0x0,_0x51810d[_0x53df3f(0x15b)])(_0x56f29d)));break;case _0x51810d['CollaborationEvent'][_0x53df3f(0xc4)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x51810d['CollaborationEvent'][_0x53df3f(0x202)]:break;}}catch(_0x4f0a94){throw console[_0x53df3f(0x254)](_0x53df3f(0x11f),_0x4f0a94),_0x4f0a94;}})),this[_0x20d139(0x20a)];}[_0x369941(0x2b3)](){const _0x2e4117=_0x369941;this[_0x2e4117(0x1b0)]=!0x1;}[_0x369941(0x3cd)](){const _0x3dab6a=_0x369941;if(this[_0x3dab6a(0x1b0)])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[_0x3dab6a(0x1b0)]=!0x0;}['_onLocalMutation'](_0x255cc9){const _0x23ac3f=_0x369941;this[_0x23ac3f(0x3cd)](),this['_updateState'](this['_state']['appendMutation'](_0x255cc9)),this[_0x23ac3f(0x2b3)]();}[_0x369941(0x2a1)](_0x158471){const _0x362c7f=_0x369941;if(!(_0x158471['revision']<=this['_revisionService'][_0x362c7f(0xe5)](this['unitID']))){if(this[_0x362c7f(0x347)]){this[_0x362c7f(0x2b7)]['push'](_0x158471);return;}this[_0x362c7f(0x149)](_0x158471);}}[_0x369941(0x1da)](){const _0x29c06e=_0x369941;this[_0x29c06e(0x2b7)][_0x29c06e(0x3bc)](_0x14b639=>this[_0x29c06e(0x149)](_0x14b639)),this[_0x29c06e(0x2b7)]=[];}['_applyRemoteChangeset'](_0xf030de){const _0x2c0f9a=_0x369941;let _0x37e203=this[_0x2c0f9a(0x18e)][_0x2c0f9a(0x10f)][_0x2c0f9a(0x30b)](this['_compressMutationService'][_0x2c0f9a(0x10f)]['getInterceptPoints']()[_0x2c0f9a(0x299)])(_0xf030de[_0x2c0f9a(0x309)],null)||_0xf030de[_0x2c0f9a(0x309)],_0xd24317={..._0xf030de,'mutations':_0x37e203};this[_0x2c0f9a(0x3cd)](),this[_0x2c0f9a(0x128)](this[_0x2c0f9a(0x20a)][_0x2c0f9a(0x386)](_0xd24317)),this[_0x2c0f9a(0x2b3)]();}[_0x369941(0x18c)](_0x1fa0cb){const _0x256197=_0x369941;this['_lockTransition'](),this[_0x256197(0x128)](this['_state'][_0x256197(0x3b9)](_0x1fa0cb)),this[_0x256197(0x2b3)]();}[_0x369941(0x3ce)](_0x546462){const _0x2bb346=_0x369941;this['_lockTransition'](),this['_updateState'](this['_state'][_0x2bb346(0x30c)](_0x546462)),this[_0x2bb346(0x2b3)]();}[_0x369941(0x1b7)](_0x189448){const _0x1e52fc=_0x369941;this[_0x1e52fc(0x3cd)](),this['_updateState'](this[_0x1e52fc(0x20a)][_0x1e52fc(0x30e)](_0x189448)),this[_0x1e52fc(0x2b3)]();}['_onFetchMissResult'](_0x42afa9){const _0x27e7fa=_0x369941;if(!(this[_0x27e7fa(0x20a)]instanceof _0x44a720))throw TypeError(_0x27e7fa(0x22f));let _0x19fc9f=_0x42afa9[_0x27e7fa(0x102)](_0x41f239=>{const _0x67e62=_0x27e7fa;let _0x389145=this['_compressMutationService'][_0x67e62(0x10f)]['fetchThroughInterceptors'](this[_0x67e62(0x18e)]['interceptor']['getInterceptPoints']()[_0x67e62(0x299)])(_0x41f239[_0x67e62(0x309)],null)||_0x41f239[_0x67e62(0x309)];return{..._0x41f239,'mutations':_0x389145};});this[_0x27e7fa(0x3cd)](),this[_0x27e7fa(0x128)](this[_0x27e7fa(0x20a)][_0x27e7fa(0x28d)](_0x19fc9f)),this[_0x27e7fa(0x2b3)]();}['_toggleOffline'](){const _0x20be5c=_0x369941;this[_0x20be5c(0x3cd)](),this[_0x20be5c(0x128)](this[_0x20be5c(0x20a)][_0x20be5c(0x253)]()),this['_unlockTransition']();}[_0x369941(0x2d6)](_0x561c7a=!0x1){const _0x3a4c1e=_0x369941;this['_lockTransition'](),this['_updateState'](this[_0x3a4c1e(0x20a)][_0x3a4c1e(0xb5)]()),this[_0x3a4c1e(0x2b3)]();let _0x15688f=this[_0x3a4c1e(0x20a)];_0x561c7a&&_0x15688f instanceof _0x348178&&(this['_lockTransition'](),this[_0x3a4c1e(0x128)](_0x15688f[_0x3a4c1e(0x33a)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x3101b1=>{const _0x3a0e1e=_0x3303;this[_0x3a0e1e(0x39e)][_0x3a0e1e(0x135)]['pipe']((0x0,_0x23047a[_0x3a0e1e(0xe0)])(0x1))[_0x3a0e1e(0x35a)](async _0x5176b0=>{_0x3101b1(await this['_createInitialStateImpl'](_0x5176b0===0x3));});});}['_createHandler'](){const _0x5337f4=_0x369941;let _0x541a70=this[_0x5337f4(0x40c)];return{'onStateChange':(_0x1bdadf,_0x24ef3f)=>{const _0x260996=_0x5337f4;if(_0x1bdadf!==this[_0x260996(0x20a)])throw Error(_0x260996(0x2bd)+_0x1bdadf[_0x260996(0x2e9)]+'\x0aAfter:\x20'+_0x24ef3f[_0x260996(0x2e9)]+'\x0aCurrent:\x20'+this[_0x260996(0x20a)]['status']);this['_updateState'](_0x24ef3f);},'onSendChangeset':_0x3950b0=>{const _0x1d6faa=_0x5337f4;_0x3950b0[_0x1d6faa(0x1d7)]||(_0x3950b0[_0x1d6faa(0x1d7)]=this[_0x1d6faa(0x33d)],_0x3950b0[_0x1d6faa(0xb3)]=++this[_0x1d6faa(0x262)]);let _0xc93684={'eventID':_0x51810d[_0x1d6faa(0x2c9)][_0x1d6faa(0x28f)],'data':{'unitID':_0x3950b0[_0x1d6faa(0x40c)],'unitType':this[_0x1d6faa(0x2bc)],'changeset':_0x3950b0,'memberID':this[_0x1d6faa(0x39e)][_0x1d6faa(0x338)]()}};this[_0x1d6faa(0x39e)]['send'](_0xc93684,this[_0x1d6faa(0x40c)]);},'onMissingChangesets':({from:_0x53902a,to:_0x48ddcd})=>{const _0x89800=_0x5337f4;this[_0x89800(0x2a2)][_0x89800(0x1b4)](_0x89800(0x10e),_0x89800(0x36e)+_0x53902a+_0x89800(0x250)+_0x48ddcd);let _0x5e5f28={'eventID':_0x51810d[_0x89800(0x2c9)]['FETCH_MISSING'],'data':{'unitID':_0x541a70,'unitType':this[_0x89800(0x2bc)],'from':_0x53902a,'to':_0x48ddcd}};this['session']['send'](_0x5e5f28,this[_0x89800(0x40c)]);}};}async[_0x369941(0x3c3)](_0x3cc581){const _0x18b81e=_0x369941;var _0x49928d;let _0x1f191=await((_0x49928d=this[_0x18b81e(0x106)])==null?void 0x0:_0x49928d[_0x18b81e(0x16f)](this[_0x18b81e(0x40c)])),_0x24d3f0=(_0x1f191==null?void 0x0:_0x1f191['mutations'])??[],_0x1cea4d=(_0x1f191==null?void 0x0:_0x1f191[_0x18b81e(0x1c4)])??null,_0x55cf4f=!!(_0x1cea4d!=null&&_0x1cea4d['sid'])&&!!(_0x1cea4d!=null&&_0x1cea4d[_0x18b81e(0xb3)]);this[_0x18b81e(0x33d)]=_0x55cf4f?_0x1cea4d[_0x18b81e(0x1d7)]:(0x0,_0x51810d[_0x18b81e(0x3cb)])(),this['_changesetReqId']=_0x55cf4f?_0x1cea4d[_0x18b81e(0xb3)]:0x0;let _0x54fa04=this[_0x18b81e(0x40c)];try{this[_0x18b81e(0x169)](_0x1cea4d,_0x24d3f0);}catch(_0x3013d7){this[_0x18b81e(0x2a2)][_0x18b81e(0x254)](_0x3013d7);}let _0x594e31=this[_0x18b81e(0x419)]();if(_0x3cc581){let _0x1840fd=_0x8b8c32(this['_injector'],_0x54fa04,this[_0x18b81e(0x2bc)],_0x1cea4d,_0x24d3f0,_0x594e31);return _0x1840fd instanceof _0x195d73?_0x1840fd[_0x18b81e(0x130)]():(_0x1840fd instanceof _0x1a8dbf||_0x1840fd instanceof _0x2fc73c)&&_0x1840fd[_0x18b81e(0x1de)](),_0x1840fd;}return this[_0x18b81e(0x3e6)][_0x18b81e(0x335)](_0x2e8d31,_0x54fa04,this[_0x18b81e(0x2bc)],_0x1cea4d,_0x24d3f0,_0x594e31);}[_0x369941(0x169)](_0xc52246,_0x1baa51){const _0x5386ba=_0x369941;var _0x42fa2e,_0x4a4e4e;let _0x11ff42=this['_compressMutationService'][_0x5386ba(0x10f)][_0x5386ba(0x30b)](this[_0x5386ba(0x18e)][_0x5386ba(0x10f)][_0x5386ba(0x10c)]()[_0x5386ba(0x299)]);(_0x42fa2e=_0x11ff42((_0xc52246==null?void 0x0:_0xc52246[_0x5386ba(0x309)])||[],null))==null||_0x42fa2e[_0x5386ba(0x3bc)](_0x44f0d8=>this[_0x5386ba(0x1b5)][_0x5386ba(0x34e)](_0x44f0d8['id'],_0x44f0d8['params'])),(_0x4a4e4e=_0x11ff42(_0x1baa51||[],null))==null||_0x4a4e4e['forEach'](_0x15d431=>this[_0x5386ba(0x1b5)]['executeCommand'](_0x15d431['id'],_0x15d431[_0x5386ba(0x2cc)]));}};_0x4a2b8c=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x3ad)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x1e3)])),_0x2b5d73(0x6,(0x0,_0xd0e18a['Inject'])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x1d0ad8)),_0x2b5d73(0x8,_0xd0e18a[_0x369941(0x390)]),_0x2b5d73(0x9,_0xd0e18a['ILogService']),_0x2b5d73(0xa,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0xc,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x12ef16)),_0x2b5d73(0xd,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x4a2b8c);let _0x572cd7=class extends _0x4a2b8c{constructor(_0x3a35ae,_0x2dc3a3,_0x11da49,_0x5f3c68,_0x4263ef,_0x114000,_0x44ea0f,_0x11509d,_0x289c79,_0xde75ac,_0x32e4e7,_0x3cd91d,_0x48336c,_0x524f80,_0x38e1fa){const _0x4dd84e=_0x369941;super(_0x3a35ae,_0x11da49,_0x2dc3a3,_0x5f3c68,_0x4263ef,_0x114000,_0x44ea0f,_0x11509d,_0x289c79,_0xde75ac,_0x32e4e7,_0x3cd91d,_0x524f80,_0x38e1fa),this[_0x4dd84e(0x40c)]=_0x3a35ae,this[_0x4dd84e(0x120)]=_0x2dc3a3,this[_0x4dd84e(0x3c1)]=_0x48336c,_0xf185b(this,_0x4dd84e(0x1ef),null);}[_0x369941(0x2d2)](_0x4091c8){const _0x17db73=_0x369941;this[_0x17db73(0x1ef)]=_0x4091c8;}[_0x369941(0x206)](){const _0x42bc1c=_0x369941;this[_0x42bc1c(0x1ef)]=null,super[_0x42bc1c(0x206)]();}[_0x369941(0x419)](){const _0x55f3a4=_0x369941;let _0x51fc16=super[_0x55f3a4(0x419)]();return _0x51fc16[_0x55f3a4(0x3c5)]=_0x969dd6=>{const _0x639193=_0x55f3a4;var _0x55ecc8,_0x415486;return(_0x55ecc8=this[_0x639193(0x1ef)])==null||(_0x415486=_0x55ecc8[_0x639193(0x3c5)])==null?void 0x0:_0x415486[_0x639193(0x22a)](_0x55ecc8,_0x969dd6);},_0x51fc16[_0x55f3a4(0x394)]=_0x3b4e27=>{const _0x158837=_0x55f3a4;var _0x166da9,_0x25c28f;return(_0x166da9=this[_0x158837(0x1ef)])==null||(_0x25c28f=_0x166da9['onTransformState'])==null?void 0x0:_0x25c28f[_0x158837(0x22a)](_0x166da9,_0x3b4e27);},_0x51fc16[_0x55f3a4(0x285)]=_0x600c75=>{const _0x4d1264=_0x55f3a4;var _0x17486d,_0x2252bd;return((_0x17486d=this[_0x4d1264(0x1ef)])==null||(_0x2252bd=_0x17486d[_0x4d1264(0x285)])==null?void 0x0:_0x2252bd['call'](_0x17486d,_0x600c75))??null;},_0x51fc16[_0x55f3a4(0x113)]=_0xc68644=>{const _0x35a66f=_0x55f3a4;var _0x3830c2,_0x15f8ed;return(_0x3830c2=this[_0x35a66f(0x1ef)])==null||(_0x15f8ed=_0x3830c2['onTransformSelections'])==null?void 0x0:_0x15f8ed[_0x35a66f(0x22a)](_0x3830c2,_0xc68644);},_0x51fc16[_0x55f3a4(0x1e4)]=_0x3fe87a=>{const _0x53e8ce=_0x55f3a4;var _0x1134ce,_0x274dad;return(_0x1134ce=this['_handlerCallback'])==null||(_0x274dad=_0x1134ce[_0x53e8ce(0x1e4)])==null?void 0x0:_0x274dad['call'](_0x1134ce,_0x3fe87a);},_0x51fc16[_0x55f3a4(0x11b)]=_0x44a664=>{const _0x3b685b=_0x55f3a4;var _0x2c667d,_0x5d51fa;return((_0x2c667d=this['_handlerCallback'])==null||(_0x5d51fa=_0x2c667d[_0x3b685b(0x11b)])==null?void 0x0:_0x5d51fa[_0x3b685b(0x22a)](_0x2c667d,_0x44a664))??_0x44a664;},_0x51fc16[_0x55f3a4(0x2a0)]=_0x591211=>{const _0x19f11a=_0x55f3a4;var _0x6d34cc,_0x117b7d;return((_0x6d34cc=this[_0x19f11a(0x1ef)])==null||(_0x117b7d=_0x6d34cc['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x117b7d[_0x19f11a(0x22a)](_0x6d34cc,_0x591211))??_0x591211;},_0x51fc16;}async[_0x369941(0x360)](){const _0x220a51=_0x369941;let _0x5bdea9=await super[_0x220a51(0x360)]();return this[_0x220a51(0x179)](this[_0x220a51(0x3c1)]['docStateChange$']['subscribe'](_0x48b870=>{const _0x357196=_0x220a51;if(_0x48b870==null||_0x48b870[_0x357196(0x17f)]!==this['unitID'])return;let {commandId:_0x95d345,redoState:_0x543648,unitId:_0x1be60c}=_0x48b870,_0x1dd34f={'id':_0x95d345,'type':_0xd0e18a['CommandType'][_0x357196(0x2d9)],'params':{'unitId':_0x1be60c,'actions':_0x543648[_0x357196(0x3f7)],'textRanges':null}};this[_0x357196(0x318)](_0x1dd34f);})),this[_0x220a51(0x179)](this[_0x220a51(0x1b5)][_0x220a51(0x124)]((_0x194c34,_0x3b973b)=>{const _0x402a91=_0x220a51;if(_0x194c34[_0x402a91(0x120)]!==_0xd0e18a[_0x402a91(0x2ab)]['MUTATION']||_0x3b973b!=null&&_0x3b973b[_0x402a91(0x281)]||_0x3b973b!=null&&_0x3b973b[_0x402a91(0x2ee)]||_0x194c34['id']===_0xbd3e77[_0x402a91(0x344)]['id'])return;let _0xfc3be7=_0x194c34['params'];if((_0xfc3be7==null?void 0x0:_0xfc3be7[_0x402a91(0x17f)])!==this[_0x402a91(0x40c)])return;let _0x47b614=_0x194c34,_0x3ab1b8=this[_0x402a91(0x18e)][_0x402a91(0x10f)][_0x402a91(0x30b)](this[_0x402a91(0x18e)][_0x402a91(0x10f)]['getInterceptPoints']()[_0x402a91(0x204)])([_0x47b614],this[_0x402a91(0x414)])||[_0x47b614];this[_0x402a91(0x318)](_0x3ab1b8[0x0]);})),_0x5bdea9;}};_0x572cd7=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x3ad)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x1e3)])),_0x2b5d73(0x6,(0x0,_0xd0e18a['Inject'])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x1d0ad8)),_0x2b5d73(0x8,_0xd0e18a['IUniverInstanceService']),_0x2b5d73(0x9,_0xd0e18a['ILogService']),_0x2b5d73(0xa,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0xc,(0x0,_0xd0e18a['Inject'])(_0xbd3e77[_0x369941(0x235)])),_0x2b5d73(0xd,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x12ef16)),_0x2b5d73(0xe,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x572cd7);let _0x46c15d=class extends _0x4a2b8c{constructor(_0x2eea64,_0x28af16,_0xae5594,_0x345d87,_0x3d841c,_0x4dff0d,_0x479146,_0x57056d,_0x28a39a,_0x23b603,_0x4a836d,_0x2d99d5,_0x5dc5b3,_0xce99c2){const _0x57052e=_0x369941;super(_0x2eea64,_0xae5594,_0x28af16,_0x345d87,_0x3d841c,_0x4dff0d,_0x479146,_0x57056d,_0x28a39a,_0x23b603,_0x4a836d,_0x2d99d5,_0x5dc5b3,_0xce99c2),this[_0x57052e(0x40c)]=_0x2eea64,this[_0x57052e(0x120)]=_0x28af16;}async[_0x369941(0x360)](){const _0x3ef6cf=_0x369941;let _0x37b6ee=await super[_0x3ef6cf(0x360)]();return this[_0x3ef6cf(0x179)](this[_0x3ef6cf(0x1b5)][_0x3ef6cf(0x124)]((_0x5d31d3,_0x243616)=>{const _0x10e944=_0x3ef6cf;if(_0x5d31d3[_0x10e944(0x120)]!==_0xd0e18a[_0x10e944(0x2ab)][_0x10e944(0x2d9)]||_0x243616!=null&&_0x243616[_0x10e944(0x281)]||_0x243616!=null&&_0x243616[_0x10e944(0x2ee)])return;let _0x532eff=_0x5d31d3['params'];if((_0x532eff==null?void 0x0:_0x532eff[_0x10e944(0x17f)])!==this[_0x10e944(0x40c)])return;let _0x11a70a=_0x5d31d3,_0x1c8245=this[_0x10e944(0x18e)][_0x10e944(0x10f)][_0x10e944(0x30b)](this['_compressMutationService'][_0x10e944(0x10f)][_0x10e944(0x10c)]()[_0x10e944(0x204)])([_0x11a70a],this[_0x10e944(0x414)])||[_0x11a70a];this[_0x10e944(0x318)](_0x1c8245[0x0]);})),_0x37b6ee;}};_0x46c15d=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['Injector'])),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x3ad)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x1e3)])),_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x1d0ad8)),_0x2b5d73(0x8,_0xd0e18a['IUniverInstanceService']),_0x2b5d73(0x9,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0xa,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0xc,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x12ef16)),_0x2b5d73(0xd,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x46c15d);let _0x4e6415=class extends _0x4a2b8c{constructor(_0x4df2dc,_0x56b095,_0x293a21,_0x34f4df,_0xb944f6,_0x215e41,_0x3186f1,_0x299d8b,_0x1427da,_0x1b36bd,_0x4b3095,_0xda476a,_0x3fb1c4,_0x358793,_0x2967de){const _0x20e1dc=_0x369941;super(_0x4df2dc,_0x293a21,_0x56b095,_0x34f4df,_0xb944f6,_0x215e41,_0x3186f1,_0x1427da,_0x1b36bd,_0x4b3095,_0xda476a,_0x3fb1c4,_0x358793,_0x2967de),this[_0x20e1dc(0x40c)]=_0x4df2dc,this[_0x20e1dc(0x120)]=_0x56b095,this[_0x20e1dc(0x17d)]=_0x299d8b;}[_0x369941(0x419)](){const _0x786799=_0x369941;let _0x27529c=super[_0x786799(0x419)]();return _0x27529c['onTransformSelections']=_0x39bf6b=>this[_0x786799(0x17d)][_0x786799(0x3a1)](_0x39bf6b),_0x27529c;}async[_0x369941(0x360)](){const _0x5babaf=_0x369941;let _0xc85383=await super[_0x5babaf(0x360)]();return this[_0x5babaf(0x179)](this['_commandService'][_0x5babaf(0x124)]((_0x4d2bf1,_0x33e0af)=>{const _0x1c5815=_0x5babaf;if(_0x4d2bf1[_0x1c5815(0x120)]!==_0xd0e18a['CommandType'][_0x1c5815(0x2d9)]||_0x33e0af!=null&&_0x33e0af[_0x1c5815(0x281)]||_0x33e0af!=null&&_0x33e0af[_0x1c5815(0x2ee)])return;let _0x2063c6=_0x4d2bf1[_0x1c5815(0x2cc)];if((_0x2063c6==null?void 0x0:_0x2063c6[_0x1c5815(0x17f)])!==this[_0x1c5815(0x40c)])return;let _0x303dca=_0x4d2bf1,_0x250e79=this[_0x1c5815(0x18e)][_0x1c5815(0x10f)][_0x1c5815(0x30b)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x303dca],this[_0x1c5815(0x414)])||[_0x303dca];this[_0x1c5815(0x318)](_0x250e79[0x0]);})),_0xc85383;}};_0x4e6415=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x3ad)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x1e3)])),_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x2d04e5)),_0x2b5d73(0x8,(0x0,_0xd0e18a['Inject'])(_0x1d0ad8)),_0x2b5d73(0x9,_0xd0e18a[_0x369941(0x390)]),_0x2b5d73(0xa,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0xc,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0xd,(0x0,_0xd0e18a['Optional'])(_0x12ef16)),_0x2b5d73(0xe,(0x0,_0xd0e18a['Optional'])(_0x2c8a38))],_0x4e6415);let _0x4b3566=class extends _0x4a2b8c{constructor(_0x2dae43,_0x444b4d,_0x37ff14,_0xe187f3,_0x1fa030,_0x5467dc,_0x130802,_0x473dfc,_0x13fb88,_0xecd110,_0x38f9af,_0x32e562,_0x4e1d21,_0x1b93d1){const _0x43a7db=_0x369941;super(_0x2dae43,_0x37ff14,_0x444b4d,_0xe187f3,_0x1fa030,_0x5467dc,_0x130802,_0x473dfc,_0x13fb88,_0xecd110,_0x38f9af,_0x32e562,_0x4e1d21,_0x1b93d1),this[_0x43a7db(0x40c)]=_0x2dae43,this['type']=_0x444b4d;}async['_init'](){const _0x235e06=_0x369941;let _0x114438=await super[_0x235e06(0x360)]();return this[_0x235e06(0x179)](this['_commandService']['onMutationExecutedForCollab']((_0x2a30c8,_0x48075b)=>{const _0x11c013=_0x235e06;if(_0x2a30c8['type']!==_0xd0e18a[_0x11c013(0x2ab)][_0x11c013(0x2d9)]||_0x48075b!=null&&_0x48075b[_0x11c013(0x281)]||_0x48075b!=null&&_0x48075b[_0x11c013(0x2ee)])return;let _0x41be57=_0x2a30c8[_0x11c013(0x2cc)];if((_0x41be57==null?void 0x0:_0x41be57['unitId'])!==this[_0x11c013(0x40c)])return;let _0x55e680=_0x2a30c8,_0x566367=this[_0x11c013(0x18e)]['interceptor'][_0x11c013(0x30b)](this[_0x11c013(0x18e)][_0x11c013(0x10f)][_0x11c013(0x10c)]()[_0x11c013(0x204)])([_0x55e680],this[_0x11c013(0x414)])||[_0x55e680];this[_0x11c013(0x318)](_0x566367[0x0]);})),_0x114438;}};_0x4b3566=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['Injector'])),_0x2b5d73(0x4,(0x0,_0xd0e18a['Inject'])(_0x51810d[_0x369941(0x3ad)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x1e3)])),_0x2b5d73(0x6,(0x0,_0xd0e18a['Inject'])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x7,(0x0,_0xd0e18a['Inject'])(_0x1d0ad8)),_0x2b5d73(0x8,_0xd0e18a[_0x369941(0x390)]),_0x2b5d73(0x9,_0xd0e18a['ILogService']),_0x2b5d73(0xa,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0xc,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x12ef16)),_0x2b5d73(0xd,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x4b3566);let _0x13f3d3=class extends _0x4a2b8c{constructor(_0x2735cc,_0x438de5,_0x3c1976,_0x882fed,_0x47cf34,_0x2709b9,_0x2d4038,_0x49d324,_0x428378,_0x352699,_0x514dad,_0x24eca9,_0x50ff75,_0x4b310b){const _0x4ef480=_0x369941;super(_0x2735cc,_0x3c1976,_0x438de5,_0x882fed,_0x47cf34,_0x2709b9,_0x2d4038,_0x49d324,_0x428378,_0x352699,_0x514dad,_0x24eca9,_0x50ff75,_0x4b310b),this[_0x4ef480(0x40c)]=_0x2735cc,this[_0x4ef480(0x120)]=_0x438de5;}async[_0x369941(0x360)](){const _0x1ae28d=_0x369941;let _0x1b38f3=await super[_0x1ae28d(0x360)]();return this['disposeWithMe'](this['_commandService'][_0x1ae28d(0x124)]((_0xe7d0eb,_0x9b049a)=>{const _0x4aa781=_0x1ae28d;if(_0xe7d0eb[_0x4aa781(0x120)]!==_0xd0e18a[_0x4aa781(0x2ab)][_0x4aa781(0x2d9)]||_0x9b049a!=null&&_0x9b049a[_0x4aa781(0x281)]||_0x9b049a!=null&&_0x9b049a['onlyLocal'])return;let _0x92c7b5=_0xe7d0eb[_0x4aa781(0x2cc)];if((_0x92c7b5==null?void 0x0:_0x92c7b5['unitId'])!==this['unitID'])return;let _0x222270=_0xe7d0eb,_0x1a9e8f=this[_0x4aa781(0x18e)][_0x4aa781(0x10f)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x4aa781(0x10f)][_0x4aa781(0x10c)]()[_0x4aa781(0x204)])([_0x222270],this[_0x4aa781(0x414)])||[_0x222270];this[_0x4aa781(0x318)](_0x1a9e8f[0x0]);})),_0x1b38f3;}};_0x13f3d3=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x3ad)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['LocaleService'])),_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d['RevisionService'])),_0x2b5d73(0x7,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x1d0ad8)),_0x2b5d73(0x8,_0xd0e18a[_0x369941(0x390)]),_0x2b5d73(0x9,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0xa,_0xd0e18a['ICommandService']),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0xc,(0x0,_0xd0e18a['Optional'])(_0x12ef16)),_0x2b5d73(0xd,(0x0,_0xd0e18a[_0x369941(0xe8)])(_0x2c8a38))],_0x13f3d3);let _0x472779=class extends _0x4a2b8c{constructor(_0x3745cc,_0x14ade4,_0x2969d9,_0x134ff3,_0x41edae,_0x4a71e5,_0x4d6019,_0x41386e,_0x24e6d5,_0x2679a9,_0x5b6dc2,_0x510115,_0x45ce98,_0x452126){const _0x5e96f9=_0x369941;super(_0x3745cc,_0x2969d9,_0x14ade4,_0x134ff3,_0x41edae,_0x4a71e5,_0x4d6019,_0x41386e,_0x24e6d5,_0x2679a9,_0x5b6dc2,_0x510115,_0x45ce98,_0x452126),this[_0x5e96f9(0x40c)]=_0x3745cc,this[_0x5e96f9(0x120)]=_0x14ade4;}async[_0x369941(0x360)](){const _0x4ae9f6=_0x369941;let _0x563450=await super[_0x4ae9f6(0x360)]();return this[_0x4ae9f6(0x179)](this[_0x4ae9f6(0x1b5)][_0x4ae9f6(0x124)]((_0x573dfd,_0x1ab2a7)=>{const _0x350c4d=_0x4ae9f6;if(_0x573dfd['type']!==_0xd0e18a['CommandType']['MUTATION']||_0x1ab2a7!=null&&_0x1ab2a7[_0x350c4d(0x281)]||_0x1ab2a7!=null&&_0x1ab2a7[_0x350c4d(0x2ee)])return;let _0x2d38b2=_0x573dfd[_0x350c4d(0x2cc)];if((_0x2d38b2==null?void 0x0:_0x2d38b2[_0x350c4d(0x17f)])!==this[_0x350c4d(0x40c)])return;let _0x3e15c4=_0x573dfd,_0x50e459=this['_compressMutationService'][_0x350c4d(0x10f)]['fetchThroughInterceptors'](this[_0x350c4d(0x18e)][_0x350c4d(0x10f)][_0x350c4d(0x10c)]()['COMPRESS_MUTATION_SEND'])([_0x3e15c4],this[_0x350c4d(0x414)])||[_0x3e15c4];this[_0x350c4d(0x318)](_0x50e459[0x0]);})),_0x563450;}};_0x472779=_0x5d2da6([_0x2b5d73(0x3,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x3ad)])),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x1e3)])),_0x2b5d73(0x6,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x51810d[_0x369941(0x272)])),_0x2b5d73(0x7,(0x0,_0xd0e18a['Inject'])(_0x1d0ad8)),_0x2b5d73(0x8,_0xd0e18a[_0x369941(0x390)]),_0x2b5d73(0x9,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0xa,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0xb,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0xc,(0x0,_0xd0e18a['Optional'])(_0x12ef16)),_0x2b5d73(0xd,(0x0,_0xd0e18a['Optional'])(_0x2c8a38))],_0x472779);let _0x48d92c=(0x0,_0xd0e18a['createIdentifier'])(_0x369941(0x346));function _0x18792e(_0x3a8835){const _0xf507b1=_0x369941;let _0x4ce025=_0x3a8835[_0xf507b1(0x39a)],_0x531087=JSON['parse'](_0x4ce025);switch(_0x531087[_0xf507b1(0xdf)]){case _0x5f374c[_0xf507b1(0x3d3)][_0xf507b1(0x138)]:case _0x5f374c[_0xf507b1(0x3d3)]['HELLO']:{let _0xb26ee8=_0x531087[_0xf507b1(0x31d)];return{..._0x531087,'data':_0xb26ee8,'cmd':_0x531087[_0xf507b1(0xdf)]};}case _0x5f374c[_0xf507b1(0x3d3)][_0xf507b1(0xbe)]:{let _0x11ff75=_0x531087[_0xf507b1(0x216)];return{..._0x531087,'data':_0x11ff75,'cmd':_0x531087['cmd']};}case _0x5f374c[_0xf507b1(0x3d3)][_0xf507b1(0x29b)]:{let _0x20b990=_0x531087['collaMsg'];switch(_0x20b990[_0xf507b1(0x374)]){case _0x51810d[_0xf507b1(0x2c9)]['PERMISSION_REJ']:var _0xed13f9;return{..._0x531087,'data':{..._0x20b990,'data':(_0xed13f9=_0x20b990[_0xf507b1(0xdc)])==null?void 0x0:_0xed13f9['cs']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d['CollaborationEvent'][_0xf507b1(0xcc)]:var _0x9f138d;return{..._0x531087,'data':{..._0x20b990,'data':(_0x9f138d=_0x20b990['csAckEvent'])==null?void 0x0:_0x9f138d['cs']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d['CollaborationEvent'][_0xf507b1(0x36f)]:var _0x5ea2f7;return{..._0x531087,'data':{..._0x20b990,'data':(_0x5ea2f7=_0x20b990['newCsEvent'])==null?void 0x0:_0x5ea2f7['cs']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x1e1)]:var _0x444a86;return{..._0x531087,'data':{..._0x20b990,'data':(_0x444a86=_0x20b990[_0xf507b1(0x183)])==null?void 0x0:_0x444a86['cs']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x33e)]:var _0x2a7783;return{..._0x531087,'data':{..._0x20b990,'data':(_0x2a7783=_0x20b990[_0xf507b1(0x1eb)])==null?void 0x0:_0x2a7783['cs']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x240)]:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990['updateCursorEvent']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d['CollaborationEvent'][_0xf507b1(0x1ab)]:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990[_0xf507b1(0x119)]},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0xf1)]:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990[_0xf507b1(0x3a6)]},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x1b2)]:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990[_0xf507b1(0x1a0)]},'cmd':_0x531087['cmd']};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x146)]:case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x2d0)]:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990['liveShareOperation']},'cmd':_0x531087['cmd']};case _0x51810d[_0xf507b1(0x2c9)]['LIVESHARE_TERMINATE']:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990['liveShareNewHost']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x178)]:return{..._0x531087,'data':_0x20b990,'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)]['COMMENT_UPDATE']:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990[_0xf507b1(0x2d1)]},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0x1ee)]:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990['updatePermissionObjEvent']},'cmd':_0x531087[_0xf507b1(0xdf)]};case _0x51810d[_0xf507b1(0x2c9)][_0xf507b1(0xd3)]:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990['shouldCloseConn']},'cmd':_0x531087['cmd']};case _0x51810d['CollaborationEvent']['UNISCRIPT_RUN']:return{..._0x531087,'data':{..._0x20b990,'data':_0x20b990[_0xf507b1(0x1d8)]},'cmd':_0x531087[_0xf507b1(0xdf)]};default:return _0x531087;}}default:return _0x531087;}}function _0x5dd052(_0x4b0ecb){const _0x1c1639=_0x369941;switch(_0x4b0ecb[_0x1c1639(0xdf)]){case _0x5f374c[_0x1c1639(0x3d3)][_0x1c1639(0x138)]:case _0x5f374c[_0x1c1639(0x3d3)][_0x1c1639(0x1d9)]:return JSON[_0x1c1639(0x1c6)]({'cmd':_0x4b0ecb[_0x1c1639(0xdf)],'routeKey':_0x4b0ecb[_0x1c1639(0x2b5)]});case _0x5f374c[_0x1c1639(0x3d3)]['INGEST']:{let _0x539662;switch(_0x4b0ecb[_0x1c1639(0x39a)][_0x1c1639(0x374)]){case _0x51810d['CollaborationEvent'][_0x1c1639(0x240)]:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x240)],'updateCursorEvent':_0x4b0ecb[_0x1c1639(0x39a)][_0x1c1639(0x39a)]};break;case _0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0xf1)]:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0xf1)],'leaveEvent':_0x4b0ecb[_0x1c1639(0x39a)][_0x1c1639(0x39a)]};break;case _0x51810d['CollaborationEvent']['USERS_ENTER']:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)]['USERS_ENTER'],'joinEvent':_0x4b0ecb[_0x1c1639(0x39a)]['data']};break;case _0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x1b2)]:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x1b2)],'liveShareNewHost':_0x4b0ecb[_0x1c1639(0x39a)][_0x1c1639(0x39a)]};break;case _0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x2d0)]:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x2d0)],'liveShareOperation':_0x4b0ecb[_0x1c1639(0x39a)]['data']};break;case _0x51810d['CollaborationEvent'][_0x1c1639(0x31b)]:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x31b)],'liveShareTerminate':_0x4b0ecb[_0x1c1639(0x39a)][_0x1c1639(0x39a)]};break;case _0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x24f)]:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x24f)],'liveShareRequestHost':_0x4b0ecb['data']['data']};break;case _0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x146)]:_0x539662={'eventID':_0x51810d[_0x1c1639(0x2c9)][_0x1c1639(0x146)]};break;default:_0x539662={'eventID':_0x4b0ecb[_0x1c1639(0x39a)][_0x1c1639(0x374)]};}return JSON[_0x1c1639(0x1c6)]({'cmd':_0x4b0ecb[_0x1c1639(0xdf)],'routeKey':_0x4b0ecb[_0x1c1639(0x2b5)],'collaMsg':_0x539662});}case _0x5f374c['CombCmd'][_0x1c1639(0xbe)]:return JSON[_0x1c1639(0x1c6)]({'cmd':_0x4b0ecb[_0x1c1639(0xdf)],'routeKey':_0x4b0ecb['routeKey'],'joinReq':_0x4b0ecb[_0x1c1639(0x39a)]});case _0x5f374c[_0x1c1639(0x3d3)][_0x1c1639(0x411)]:return JSON[_0x1c1639(0x1c6)]({'cmd':_0x4b0ecb[_0x1c1639(0xdf)],'routeKey':_0x4b0ecb['routeKey'],'leaveReq':_0x4b0ecb['data']});default:throw Error(_0x1c1639(0x2e0));}}let _0x286a91=(0x0,_0xd0e18a[_0x369941(0x263)])(_0x369941(0x3f6));function _0x4f639d(_0x57fcf4,_0x38b000,_0x17cff0){const _0x193cf5=_0x369941;return _0x57fcf4+'/'+_0x38b000+'/unit/'+_0x17cff0+_0x193cf5(0x3fd);}let _0x1320c7=class extends _0xd0e18a['Disposable']{constructor(_0x33f3a2,_0x739098,_0x359b0f,_0x36989b,_0x45cb99){const _0x2cb258=_0x369941;super(),this['_injector']=_0x33f3a2,this[_0x2cb258(0xcf)]=_0x739098,this[_0x2cb258(0x3da)]=_0x359b0f,this[_0x2cb258(0x2a2)]=_0x36989b,this['_snapshotServerService']=_0x45cb99;}[_0x369941(0x214)](_0x48c278){const _0x1ab8d2=_0x369941;let _0x21cc90=this[_0x1ab8d2(0x3e6)]['get'](_0x3bebf7[_0x1ab8d2(0x30f)]);if(!_0x21cc90)throw Error(_0x1ab8d2(0xd7));let _0x257285=_0x21cc90[_0x1ab8d2(0x328)](_0x48c278);if(!_0x257285)throw Error(_0x1ab8d2(0xd6));let _0x40871f=new _0xd0e18a['DisposableCollection'](),_0x46daf5=new _0x23047a[(_0x1ab8d2(0x3f9))]();_0x40871f[_0x1ab8d2(0x301)](_0x257285[_0x1ab8d2(0x3b7)][_0x1ab8d2(0x35a)](_0x4c67b6=>_0x46daf5['next'](_0x4c67b6))),_0x40871f[_0x1ab8d2(0x301)]((0x0,_0xd0e18a[_0x1ab8d2(0x290)])(()=>_0x46daf5[_0x1ab8d2(0x1dc)]()));let _0x27a078=new _0x23047a['Subject']();_0x40871f[_0x1ab8d2(0x301)](_0x257285[_0x1ab8d2(0x2cf)][_0x1ab8d2(0x35a)](_0x36b22b=>_0x27a078['next'](_0x36b22b))),_0x40871f[_0x1ab8d2(0x301)]((0x0,_0xd0e18a[_0x1ab8d2(0x290)])(()=>_0x27a078[_0x1ab8d2(0x1dc)]()));let _0x18efb8=new _0x23047a[(_0x1ab8d2(0x3f9))]();_0x40871f[_0x1ab8d2(0x301)](_0x257285[_0x1ab8d2(0x317)]['subscribe'](_0x40506e=>{const _0x2c81b3=_0x1ab8d2;let _0x41c1f4=_0x18792e(_0x40506e);_0x18efb8[_0x2c81b3(0x300)](_0x41c1f4);})),_0x40871f[_0x1ab8d2(0x301)]((0x0,_0xd0e18a[_0x1ab8d2(0x290)])(()=>_0x18efb8['complete']()));let _0x51e699,_0x32af83=()=>{const _0x584f25=_0x1ab8d2;_0x27a078[_0x584f25(0x300)](new Event(_0x584f25(0x284))),_0x46daf5[_0x584f25(0x300)](new Event(_0x584f25(0x284))),_0x51e699['close']();};return _0x51e699={'memberID':'','close$':_0x46daf5[_0x1ab8d2(0x395)](),'error$':_0x27a078[_0x1ab8d2(0x395)](),'open$':_0x257285[_0x1ab8d2(0xf6)],'message$':_0x18efb8[_0x1ab8d2(0x395)](),'send':_0x158e76=>{const _0x160d27=_0x1ab8d2;if(_0x158e76[_0x160d27(0xdf)]===_0x5f374c[_0x160d27(0x3d3)][_0x160d27(0x1aa)]){if(_0x158e76[_0x160d27(0x39a)][_0x160d27(0x374)]===_0x51810d[_0x160d27(0x2c9)]['SUBMIT_CHANGESET']){this[_0x160d27(0xf0)](_0x51e699,_0x158e76[_0x160d27(0x39a)])[_0x160d27(0x37a)](_0x24e46c=>{this['_logService']['error'](_0x24e46c),_0x32af83();});return;}if(_0x158e76[_0x160d27(0x39a)][_0x160d27(0x374)]===_0x51810d[_0x160d27(0x2c9)][_0x160d27(0x1fe)]){let _0xdf7b85=_0x158e76[_0x160d27(0x39a)];this[_0x160d27(0x1a7)](_0xdf7b85)[_0x160d27(0x1f6)](_0x311935=>{const _0x52f148=_0x160d27;_0x18efb8[_0x52f148(0x300)]({'cmd':_0x5f374c[_0x52f148(0x3d3)][_0x52f148(0x29b)],'code':_0x5f374c[_0x52f148(0x1a4)]['OK'],'routeKey':_0xdf7b85[_0x52f148(0x39a)][_0x52f148(0x40c)],'routeType':'','data':{'eventID':_0x51810d[_0x52f148(0x2c9)][_0x52f148(0x327)],'data':{'changesets':_0x311935}}});})['catch'](_0x5aa1e8=>{const _0x348668=_0x160d27;this['_logService'][_0x348668(0x254)](_0x5aa1e8),_0x32af83();});return;}}_0x257285['send'](_0x5dd052(_0x158e76));},'close':()=>{const _0x4da22c=_0x1ab8d2;_0x257285[_0x4da22c(0x2ff)](),_0x40871f['dispose']();}},_0x51e699;}async[_0x369941(0xf0)](_0x506be5,_0x5167ae){const _0x3b0dfe=_0x369941;let {unitType:_0x522b2b,unitID:_0x1b3e4e,changeset:_0xec0693}=_0x5167ae[_0x3b0dfe(0x39a)],_0x181327={'unitID':_0x1b3e4e,'memberID':_0x506be5[_0x3b0dfe(0x37f)],'type':_0x522b2b,'changeset':(0x0,_0x51810d[_0x3b0dfe(0x25e)])(_0xec0693)},_0x4826a1=this[_0x3b0dfe(0x3da)]['getConfig'](_0x2de243),_0x2da82a=_0x4f639d((_0x4826a1==null?void 0x0:_0x4826a1[_0x3b0dfe(0x248)])??_0x3b0dfe(0x2f4),_0x522b2b,_0x1b3e4e);try{await this[_0x3b0dfe(0xcf)][_0x3b0dfe(0x3e9)](_0x2da82a,{'body':_0x181327});}catch(_0x242d71){throw this[_0x3b0dfe(0x2a2)][_0x3b0dfe(0x254)](_0x3b0dfe(0x2be),_0x3b0dfe(0x399)),_0x242d71;}}async['_fetchMissChangesets'](_0x1d62e0){const _0x48e136=_0x369941;let {unitID:_0x4a6f4f,from:_0x4ffb11,to:_0x55b0ab,unitType:_0x54774a}=_0x1d62e0[_0x48e136(0x39a)];return(await this[_0x48e136(0x376)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x4a6f4f,'type':_0x54774a,'from':_0x4ffb11,'to':_0x55b0ab}))[_0x48e136(0x147)][_0x48e136(0x102)](_0x1915a9=>((_0x1915a9[_0x48e136(0x309)]===null||_0x1915a9[_0x48e136(0x309)]===void 0x0)&&(_0x1915a9['mutations']=[]),_0x1915a9));}};_0x1320c7=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x1,(0x0,_0xd0e18a['Inject'])(_0x3bebf7[_0x369941(0x14d)])),_0x2b5d73(0x2,_0xd0e18a['IConfigService']),_0x2b5d73(0x3,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0x4,_0x51810d[_0x369941(0xf4)])],_0x1320c7);let _0x521694=(0x0,_0xd0e18a['createIdentifier'])(_0x369941(0x242));function _0x95542e(_0x2f4c81={}){const _0x20572c=_0x369941;return _0x2f4c81[_0x20572c(0x105)]?{'resolveUnit':_0x2f4c81[_0x20572c(0x105)]}:{'resolveUnit':_0xd82607=>({'target':{'unitId':_0xd82607['unitId'],'unitType':_0xd82607[_0x20572c(0x182)]}})};}function _0x2467ec(_0x518f8d,_0xe23f6c,_0x38496b){const _0x186a13=_0x369941;let _0x496a58=_0x38496b[_0x186a13(0x391)][_0x186a13(0x203)];if(_0x496a58!=null&&_0x496a58[_0x186a13(0xbd)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x38496b[_0x186a13(0x391)][_0x186a13(0x17f)])throw Error(_0x186a13(0x246));return{'localUnitId':_0x518f8d,'unitType':_0xe23f6c,'target':{'endpoint':_0x496a58,'unitId':_0x38496b[_0x186a13(0x391)]['unitId'],'unitType':_0x38496b['target'][_0x186a13(0x182)]??_0xe23f6c},'changeset':_0x38496b[_0x186a13(0x154)]};}let _0x3677b4=class extends _0xd0e18a['Disposable']{constructor(_0x429e96,_0x49fde9,_0x4a5df2,_0x3457ed,_0x333870,_0x29a7bd,_0x1ec8cf){const _0x363a35=_0x369941;super(),this[_0x363a35(0x3e6)]=_0x429e96,this[_0x363a35(0x2a2)]=_0x49fde9,this['_configService']=_0x4a5df2,this[_0x363a35(0x39f)]=_0x3457ed,this[_0x363a35(0x3aa)]=_0x333870,this[_0x363a35(0x36b)]=_0x29a7bd,this['_networkConditionService']=_0x1ec8cf,_0xf185b(this,'_sessions',new Map()),_0xf185b(this,_0x363a35(0x258),new Map()),_0xf185b(this,'_sessionChannels',new Map()),_0xf185b(this,_0x363a35(0x3d8),new Map()),_0xf185b(this,_0x363a35(0x1cc),this[_0x363a35(0x32c)](void 0x0)[_0x363a35(0x1cc)][_0x363a35(0x395)]()),_0xf185b(this,_0x363a35(0x3c0),new _0x23047a[(_0x363a35(0x22b))](0x0)),_0xf185b(this,_0x363a35(0x277),this[_0x363a35(0x3c0)][_0x363a35(0x395)]()),this['_listenToNetworkCondition']();}[_0x369941(0x3a2)](){const _0x59106c=_0x369941;this[_0x59106c(0x12e)]&&this[_0x59106c(0x179)](this[_0x59106c(0x12e)]['online$'][_0x59106c(0x35a)](_0x59857c=>{const _0x5e30d9=_0x59106c;_0x59857c&&this[_0x5e30d9(0xde)](),_0x59857c||this[_0x5e30d9(0x3d8)][_0x5e30d9(0x3bc)](_0x187adb=>this[_0x5e30d9(0x241)](_0x187adb));}));}[_0x369941(0x206)](){const _0x45b623=_0x369941;super[_0x45b623(0x206)](),this['_socketChannels'][_0x45b623(0x3bc)](_0x36d7ce=>{const _0x290e8d=_0x45b623;var _0x1658e4,_0x27681b;(_0x1658e4=_0x36d7ce[_0x290e8d(0x215)])==null||_0x1658e4['unsubscribe'](),_0x36d7ce['socketMessageSubscription']=null,this[_0x290e8d(0x312)](_0x36d7ce),this['_clearTimeoutTimer'](_0x36d7ce),this[_0x290e8d(0x34a)](_0x36d7ce),(_0x27681b=_0x36d7ce[_0x290e8d(0x1cc)][_0x290e8d(0x33c)]())==null||_0x27681b[_0x290e8d(0x2ff)](),_0x36d7ce[_0x290e8d(0x1cc)][_0x290e8d(0x1dc)]();}),this['_socketChannels'][_0x45b623(0x251)](),this[_0x45b623(0x3a3)][_0x45b623(0x3bc)](_0x5b312c=>_0x5b312c[_0x45b623(0x206)]()),this[_0x45b623(0x3a3)][_0x45b623(0x251)](),this[_0x45b623(0x1ad)]['clear'](),this[_0x45b623(0x3c0)]['complete']();}async['requireSession'](_0x1df9f6,_0x58d28e){const _0x2bd2d0=_0x369941;if(this[_0x2bd2d0(0x3a3)][_0x2bd2d0(0x409)](_0x1df9f6))return this[_0x2bd2d0(0x3a3)][_0x2bd2d0(0x271)](_0x1df9f6);let _0x173f4b=this[_0x2bd2d0(0x258)][_0x2bd2d0(0x271)](_0x1df9f6);if(_0x173f4b)return _0x173f4b;let _0x497e42=this[_0x2bd2d0(0x1a3)](_0x1df9f6,_0x58d28e);this['_pendingSessions'][_0x2bd2d0(0x225)](_0x1df9f6,_0x497e42);try{return await _0x497e42;}finally{this[_0x2bd2d0(0x258)]['delete'](_0x1df9f6);}}async[_0x369941(0x1a3)](_0x39513d,_0x546795){const _0x506832=_0x369941;let _0x2fe70f=await this[_0x506832(0xea)](_0x39513d,_0x546795),_0x54e99c=this[_0x506832(0x32c)](_0x2fe70f[_0x506832(0x391)]['endpoint']);this[_0x506832(0x29f)](_0x54e99c);let _0x1532f7=this[_0x506832(0x3e6)][_0x506832(0x335)](_0x362e75,_0x2fe70f,_0x54e99c[_0x506832(0x1cc)]['asObservable']());return this[_0x506832(0x3a3)][_0x506832(0x225)](_0x39513d,_0x1532f7),this[_0x506832(0x1ad)][_0x506832(0x225)](_0x39513d,_0x54e99c[_0x506832(0x2c5)]),_0x1532f7;}[_0x369941(0x273)](_0x17b539){const _0x2b57b5=_0x369941;let _0x2ff8ab=this[_0x2b57b5(0x3a3)][_0x2b57b5(0x271)](_0x17b539),_0x5e242f=this[_0x2b57b5(0x1ad)][_0x2b57b5(0x271)](_0x17b539);if(_0x2ff8ab&&(this[_0x2b57b5(0x3a3)][_0x2b57b5(0x2ed)](_0x17b539),this[_0x2b57b5(0x1ad)][_0x2b57b5(0x2ed)](_0x17b539),_0x2ff8ab[_0x2b57b5(0x2ff)]()),_0x5e242f&&!this['_hasSessionsForEndpoint'](_0x5e242f)){var _0xda43d6;let _0x3f5682=this[_0x2b57b5(0x3d8)][_0x2b57b5(0x271)](_0x5e242f);_0x3f5682==null||(_0xda43d6=_0x3f5682['socket$'][_0x2b57b5(0x33c)]())==null||_0xda43d6[_0x2b57b5(0x2ff)]();}}[_0x369941(0xde)](){const _0x4d3e5f=_0x369941;(this['_socketChannels']['size']?[...this[_0x4d3e5f(0x3d8)][_0x4d3e5f(0x36c)]()]:[this[_0x4d3e5f(0x32c)](void 0x0)])[_0x4d3e5f(0x3bc)](_0x44393f=>{const _0x56dc34=_0x4d3e5f;_0x44393f[_0x56dc34(0x30d)]=0x0,this['_clearRetryConnectingTimer'](_0x44393f),this[_0x56dc34(0x196)](_0x44393f);});}[_0x369941(0x312)](_0x4694e2){const _0x4ca729=_0x369941;_0x4694e2[_0x4ca729(0xed)]!=null&&(clearTimeout(_0x4694e2['retryConnectingTimer']),_0x4694e2[_0x4ca729(0xed)]=null);}async['_createSocket'](_0x87da64){const _0x15a4f5=_0x369941;let _0xe6b758=this[_0x15a4f5(0x3da)][_0x15a4f5(0x3e2)](_0x2de243),_0x2b53cf=_0x87da64[_0x15a4f5(0x203)]??(_0xe6b758==null?void 0x0:_0xe6b758[_0x15a4f5(0x3db)])??_0x15a4f5(0x3ee),_0x374d00=await this[_0x15a4f5(0x39f)][_0x15a4f5(0x328)](_0x2b53cf);return _0x87da64['candidateSocket']=_0x374d00,_0x374d00;}async['_tryEnsureSocket'](_0x17a8d8){const _0x37a620=_0x369941;try{let _0x560b07=_0x17a8d8[_0x37a620(0x1cc)]['getValue']()??_0x17a8d8['candidateSocket']??await this[_0x37a620(0x1bc)](_0x17a8d8);if(_0x560b07){var _0x2c5a23;let _0x4c3c55=_0x560b07[_0x37a620(0xd2)];_0x560b07[_0x37a620(0xd2)]=_0x38a33a=>(_0x38a33a[_0x37a620(0xdf)]!==_0x5f374c[_0x37a620(0x3d3)][_0x37a620(0x411)]&&this['_rescheduleHeartbeat'](_0x17a8d8),_0x4c3c55['apply'](_0x560b07,[_0x38a33a])),(_0x2c5a23=_0x17a8d8[_0x37a620(0x215)])==null||_0x2c5a23[_0x37a620(0x370)](),_0x17a8d8[_0x37a620(0x215)]=null,_0x17a8d8['socketMessageSubscription']=_0x560b07[_0x37a620(0x317)][_0x37a620(0x35a)](_0x38276a=>this['_onMessage'](_0x17a8d8,_0x560b07,_0x38276a)),_0x560b07[_0x37a620(0x2cf)]['pipe']((0x0,_0x3a34f4[_0x37a620(0xe0)])(0x1))['subscribe'](_0x5ee5cf=>this['_logService'][_0x37a620(0x254)]('[CollaborationSessionService]:\x20socket\x20error',_0x5ee5cf)),_0x560b07[_0x37a620(0xf6)][_0x37a620(0x398)]((0x0,_0x3a34f4[_0x37a620(0xe0)])(0x1))['subscribe'](()=>{const _0xf64d7d=_0x37a620;this[_0xf64d7d(0xe3)](_0x17a8d8,_0x560b07);}),_0x560b07['close$'][_0x37a620(0x398)]((0x0,_0x3a34f4[_0x37a620(0xe0)])(0x1))[_0x37a620(0x35a)](_0x2eb4ef=>{const _0x170616=_0x37a620;this['_logService'][_0x170616(0x1b4)]('[CollaborationSessionService]','socket\x20close',_0x2eb4ef),this[_0x170616(0x21b)](_0x17a8d8);});}}catch(_0x35341a){this[_0x37a620(0x2a2)][_0x37a620(0x254)](_0x35341a),this[_0x37a620(0x21b)](_0x17a8d8);}}[_0x369941(0xe3)](_0x524fc1,_0x2fdf4d){const _0x17477d=_0x369941;this[_0x17477d(0x2a2)][_0x17477d(0x1b4)](_0x17477d(0x3bf),'socket\x20open.'),_0x2fdf4d[_0x17477d(0xd2)]({'cmd':_0x5f374c[_0x17477d(0x3d3)]['HELLO']}),this[_0x17477d(0x19d)](_0x524fc1);}['_onOffline'](_0x45a80d){const _0x1e5d40=_0x369941;_0x45a80d[_0x1e5d40(0x164)]=!0x1,_0x45a80d[_0x1e5d40(0x28c)]=null,this[_0x1e5d40(0x3c0)]['next'](0x2),_0x45a80d['socket$'][_0x1e5d40(0x300)](null),this['_clearTimeoutTimer'](_0x45a80d),this[_0x1e5d40(0x34a)](_0x45a80d);}[_0x369941(0x21b)](_0x177917){const _0x42637a=_0x369941;this[_0x42637a(0x241)](_0x177917),this[_0x42637a(0x2c3)](_0x177917['endpointKey'])&&(_0x177917[_0x42637a(0x30d)]<(this[_0x42637a(0x3da)][_0x42637a(0x3e2)]('RETRY_CONNECTING_MAX_COUNT')??0x3)?(this['_collaborationUIEventService'][_0x42637a(0x1d4)]({'id':_0x42637a(0x168)}),this['_tryReconnect'](_0x177917)):this[_0x42637a(0x3aa)]['emitEvent']({'id':_0x42637a(0x28b)}));}[_0x369941(0x196)](_0x4c6278){const _0x1dc0b4=_0x369941;let _0x2bf957=_0x4c6278[_0x1dc0b4(0x30d)],_0x5414f9=this[_0x1dc0b4(0x3da)][_0x1dc0b4(0x3e2)](_0x2de243),_0x4278c0=_0x2bf957===0x0?0x0:((_0x5414f9==null?void 0x0:_0x5414f9['retryConnectingInterval'])??0x4e20)*0x2**_0x2bf957;_0x4c6278[_0x1dc0b4(0xed)]=setTimeout(()=>{const _0x82f93d=_0x1dc0b4;clearTimeout(_0x4c6278[_0x82f93d(0xed)]),_0x4c6278[_0x82f93d(0xed)]=null,this[_0x82f93d(0x29f)](_0x4c6278);},_0x4278c0),_0x4c6278[_0x1dc0b4(0x30d)]+=0x1;}async['_resolveSessionIdentity'](_0x18fb8a,_0x735b2){const _0x3388e4=_0x369941;return _0x2467ec(_0x18fb8a,_0x735b2,await this[_0x3388e4(0x36b)][_0x3388e4(0x105)]({'unitId':_0x18fb8a,'unitType':_0x735b2}));}['_onMessage'](_0x54e9f9,_0x47a1f6,_0x16484d){const _0x3aa5ca=_0x369941;let {cmd:_0x468b61}=_0x16484d;_0x468b61===_0x5f374c[_0x3aa5ca(0x3d3)]['HELLO']&&!_0x54e9f9[_0x3aa5ca(0x164)]&&(_0x47a1f6[_0x3aa5ca(0x37f)]=_0x16484d[_0x3aa5ca(0x39a)]['memberID'],_0x54e9f9[_0x3aa5ca(0x1cc)]['next'](_0x47a1f6),this[_0x3aa5ca(0x3c0)][_0x3aa5ca(0x300)](0x3),_0x54e9f9[_0x3aa5ca(0x164)]=!0x0,_0x54e9f9['candidateSocket']=null),_0x468b61===_0x5f374c['CombCmd'][_0x3aa5ca(0x138)]&&this[_0x3aa5ca(0xf2)](_0x54e9f9),this[_0x3aa5ca(0x19d)](_0x54e9f9);}[_0x369941(0x2c3)](_0x53b737){const _0x3fdab9=_0x369941;return[...this['_sessionChannels'][_0x3fdab9(0x36c)]()][_0x3fdab9(0x2ae)](_0x11c2a8=>_0x11c2a8===_0x53b737);}[_0x369941(0x32c)](_0x403d18){const _0x4b200c=_0x369941;let _0x4ca495=_0x403d18??'',_0x423264=this[_0x4b200c(0x3d8)][_0x4b200c(0x271)](_0x4ca495);if(_0x423264)return _0x423264;let _0x4ed1c4={'endpointKey':_0x4ca495,'endpoint':_0x403d18,'socket$':new _0x23047a[(_0x4b200c(0x22b))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4b200c(0x3d8)][_0x4b200c(0x225)](_0x4ca495,_0x4ed1c4),_0x4ed1c4;}[_0x369941(0x19d)](_0x33240f){const _0x8a933b=_0x369941;this[_0x8a933b(0x34a)](_0x33240f),_0x33240f[_0x8a933b(0x25b)]=setTimeout(()=>this[_0x8a933b(0x12a)](_0x33240f),this[_0x8a933b(0x3da)][_0x8a933b(0x3e2)]('HEARTBEAT_INTERVAL')??0x7530);}['_sendHeartbeat'](_0x307111){const _0x2e4737=_0x369941;_0x307111[_0x2e4737(0x1cc)]['getValue']()[_0x2e4737(0xd2)]({'cmd':_0x5f374c['CombCmd'][_0x2e4737(0x138)]}),this[_0x2e4737(0x126)](_0x307111);}[_0x369941(0x126)](_0x561c48){const _0x2508ab=_0x369941;_0x561c48[_0x2508ab(0x3f5)]=setTimeout(()=>this['_onConnectionFailed'](_0x561c48),this[_0x2508ab(0x3da)][_0x2508ab(0x3e2)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x369941(0x34a)](_0xf5eaad){const _0x48b8ca=_0x369941;_0xf5eaad[_0x48b8ca(0x25b)]!=null&&(clearTimeout(_0xf5eaad['sendHeartbeatTimer']),_0xf5eaad[_0x48b8ca(0x25b)]=null);}[_0x369941(0xf2)](_0x966b62){const _0x2c93f5=_0x369941;_0x966b62['timeoutTimer']!=null&&(clearTimeout(_0x966b62[_0x2c93f5(0x3f5)]),_0x966b62[_0x2c93f5(0x3f5)]=null);}};_0x3677b4=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x1,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0x2,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0x3,_0x286a91),_0x2b5d73(0x4,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x1d0ad8)),_0x2b5d73(0x5,_0x521694),_0x2b5d73(0x6,(0x0,_0xd0e18a['Optional'])(_0x48d92c))],_0x3677b4);let _0x5ab613=class extends _0xd0e18a['RxDisposable']{constructor(_0x53295e,_0x339558,_0x598408,_0x597cad){const _0x304b51=_0x369941;var _0x32da86;super(),this[_0x304b51(0x3e6)]=_0x53295e,this[_0x304b51(0x1bb)]=_0x339558,this['_configService']=_0x598408,this[_0x304b51(0x414)]=_0x597cad,_0xf185b(this,_0x304b51(0x1af),new Map()),_0xf185b(this,_0x304b51(0x2d7),new _0x23047a[(_0x304b51(0x3f9))]()),_0xf185b(this,_0x304b51(0x11e),this[_0x304b51(0x2d7)][_0x304b51(0x395)]()),((_0x32da86=this[_0x304b51(0x3da)][_0x304b51(0x3e2)](_0x304b51(0x37d)))==null?void 0x0:_0x32da86['enableCollaboration'])!==!0x1&&this[_0x304b51(0x360)]();}[_0x369941(0x206)](){const _0xf661c9=_0x369941;super['dispose'](),this[_0xf661c9(0x1af)][_0xf661c9(0x3bc)](_0x4108f7=>_0x4108f7[_0xf661c9(0x206)]()),this[_0xf661c9(0x1af)][_0xf661c9(0x251)]();}[_0x369941(0x1cb)](_0x474a3c){const _0x1665c1=_0x369941;return this[_0x1665c1(0x1af)][_0x1665c1(0x271)](_0x474a3c)??null;}['getCollabEntity$'](_0x24a800){const _0x29c4bb=_0x369941;let _0x2d6569=this['getCollabEntity'](_0x24a800);return _0x2d6569?(0x0,_0x23047a['of'])(_0x2d6569):this[_0x29c4bb(0x2d7)]['pipe']((0x0,_0x3a34f4['filter'])(_0x4841e6=>_0x4841e6[_0x29c4bb(0x40c)]===_0x24a800));}[_0x369941(0x219)](_0x4ccf76){const _0x445416=_0x369941;return(0x0,_0x23047a['firstValueFrom'])(this[_0x445416(0x198)](_0x4ccf76)[_0x445416(0x398)]((0x0,_0x3a34f4[_0x445416(0x102)])(()=>void 0x0)));}['_init'](){const _0x1b3c45=_0x369941;this[_0x1b3c45(0x414)][_0x1b3c45(0x19a)](_0xd0e18a[_0x1b3c45(0x350)][_0x1b3c45(0x375)])[_0x1b3c45(0x398)]((0x0,_0x23047a['takeUntil'])(this[_0x1b3c45(0x20c)]),(0x0,_0x3a34f4['delay'])(0x10))[_0x1b3c45(0x35a)](async _0x2e18a8=>{const _0x2edec1=_0x1b3c45;let _0x4e0901=_0x2e18a8[_0x2edec1(0x150)][_0x2edec1(0x13c)](),_0x3439b1=await this[_0x2edec1(0x3e0)](_0x4e0901,_0xd0e18a[_0x2edec1(0x350)][_0x2edec1(0x375)]);this[_0x2edec1(0x1af)][_0x2edec1(0x225)](_0x4e0901,_0x3439b1);}),this[_0x1b3c45(0x414)]['getTypeOfUnitAdded$'](_0xd0e18a[_0x1b3c45(0x350)][_0x1b3c45(0x341)])[_0x1b3c45(0x398)]((0x0,_0x23047a[_0x1b3c45(0x224)])(this['dispose$']),(0x0,_0x3a34f4['delay'])(0x10))[_0x1b3c45(0x398)]((0x0,_0x3a34f4[_0x1b3c45(0x2c1)])(_0x2be994=>!_0x2be994[_0x1b3c45(0x150)][_0x1b3c45(0x13c)]()[_0x1b3c45(0x1fd)]('__')))[_0x1b3c45(0x35a)](async _0x14e587=>{const _0x236bfc=_0x1b3c45;let _0x4ae226=_0x14e587[_0x236bfc(0x150)]['getUnitId'](),_0x5e5538=await this['_startCollaboration'](_0x4ae226,_0xd0e18a['UniverInstanceType'][_0x236bfc(0x341)]);this[_0x236bfc(0x1af)][_0x236bfc(0x225)](_0x4ae226,_0x5e5538);}),this[_0x1b3c45(0x414)][_0x1b3c45(0x19a)](_0xd0e18a[_0x1b3c45(0x350)][_0x1b3c45(0x35e)])['pipe']((0x0,_0x23047a['takeUntil'])(this[_0x1b3c45(0x20c)]),(0x0,_0x3a34f4[_0x1b3c45(0x3d7)])(0x10))['subscribe'](async _0x4917e5=>{const _0xcedd25=_0x1b3c45;let _0x115c30=_0x4917e5[_0xcedd25(0x150)]['getUnitId'](),_0x41f948=await this[_0xcedd25(0x3e0)](_0x115c30,_0xd0e18a[_0xcedd25(0x350)]['UNIVER_SLIDE']);this[_0xcedd25(0x1af)][_0xcedd25(0x225)](_0x115c30,_0x41f948);}),this[_0x1b3c45(0x414)][_0x1b3c45(0x19a)](_0xd0e18a[_0x1b3c45(0x350)]['UNIVER_BOARD'])[_0x1b3c45(0x398)]((0x0,_0x23047a[_0x1b3c45(0x224)])(this[_0x1b3c45(0x20c)]),(0x0,_0x3a34f4[_0x1b3c45(0x3d7)])(0x10))[_0x1b3c45(0x35a)](async _0x39e51f=>{const _0xcd2fa9=_0x1b3c45;let _0x2fec3b=_0x39e51f[_0xcd2fa9(0x150)][_0xcd2fa9(0x13c)](),_0x44a3f6=await this['_startCollaboration'](_0x2fec3b,_0xd0e18a[_0xcd2fa9(0x350)][_0xcd2fa9(0x3f1)]);this[_0xcd2fa9(0x1af)][_0xcd2fa9(0x225)](_0x2fec3b,_0x44a3f6);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0xd0e18a['UniverInstanceType']['UNIVER_BASE'])[_0x1b3c45(0x398)]((0x0,_0x23047a[_0x1b3c45(0x224)])(this[_0x1b3c45(0x20c)]),(0x0,_0x3a34f4['delay'])(0x10))[_0x1b3c45(0x35a)](async _0x5f54f9=>{const _0x6c62b2=_0x1b3c45;let _0xec115b=_0x5f54f9['unit']['getUnitId'](),_0x441eeb=await this[_0x6c62b2(0x3e0)](_0xec115b,_0xd0e18a[_0x6c62b2(0x350)]['UNIVER_BASE']);this[_0x6c62b2(0x1af)][_0x6c62b2(0x225)](_0xec115b,_0x441eeb);}),this[_0x1b3c45(0x414)][_0x1b3c45(0x19a)](_0xd0e18a[_0x1b3c45(0x350)][_0x1b3c45(0x3e5)])[_0x1b3c45(0x398)]((0x0,_0x23047a[_0x1b3c45(0x224)])(this[_0x1b3c45(0x20c)]),(0x0,_0x3a34f4[_0x1b3c45(0x3d7)])(0x10))[_0x1b3c45(0x35a)](async _0x19be6f=>{const _0x523ce3=_0x1b3c45;let _0x3fe0fb=_0x19be6f[_0x523ce3(0x150)][_0x523ce3(0x13c)](),_0x5530a0=await this[_0x523ce3(0x3e0)](_0x3fe0fb,_0xd0e18a[_0x523ce3(0x350)][_0x523ce3(0x3e5)]);this[_0x523ce3(0x1af)][_0x523ce3(0x225)](_0x3fe0fb,_0x5530a0);}),(0x0,_0x23047a[_0x1b3c45(0x2dc)])(this[_0x1b3c45(0x414)]['getTypeOfUnitDisposed$'](_0xd0e18a['UniverInstanceType'][_0x1b3c45(0x375)]),this[_0x1b3c45(0x414)][_0x1b3c45(0x137)](_0xd0e18a[_0x1b3c45(0x350)]['UNIVER_DOC']),this[_0x1b3c45(0x414)]['getTypeOfUnitDisposed$'](_0xd0e18a[_0x1b3c45(0x350)][_0x1b3c45(0x35e)]),this[_0x1b3c45(0x414)][_0x1b3c45(0x137)](_0xd0e18a['UniverInstanceType']['UNIVER_BOARD']),this[_0x1b3c45(0x414)][_0x1b3c45(0x137)](_0xd0e18a['UniverInstanceType']['UNIVER_BASE']),this[_0x1b3c45(0x414)]['getTypeOfUnitDisposed$'](_0xd0e18a[_0x1b3c45(0x350)][_0x1b3c45(0x3e5)]))[_0x1b3c45(0x398)]((0x0,_0x23047a['takeUntil'])(this[_0x1b3c45(0x20c)]))[_0x1b3c45(0x35a)](_0x3e887c=>{const _0x3b3cd4=_0x1b3c45;let _0x3400a3=_0x3e887c[_0x3b3cd4(0x13c)](),_0x3b54e5=this[_0x3b3cd4(0x1af)][_0x3b3cd4(0x271)](_0x3400a3);_0x3b54e5&&(_0x3b54e5[_0x3b3cd4(0x206)](),this[_0x3b3cd4(0x1af)][_0x3b3cd4(0x2ed)](_0x3400a3));});}async['_startCollaboration'](_0x47148f,_0x4a046d){const _0x164f6c=_0x369941;let _0xec9d4f=await this[_0x164f6c(0x1bb)][_0x164f6c(0x26f)](_0x47148f),_0x54a1e7=this[_0x164f6c(0x3e6)][_0x164f6c(0x335)](this[_0x164f6c(0x293)](_0x4a046d),_0x47148f,_0x4a046d,_0xec9d4f);return await _0x54a1e7[_0x164f6c(0x162)](),this[_0x164f6c(0x2d7)][_0x164f6c(0x300)](_0x54a1e7),_0x54a1e7;}['_getCtorByUniverInstanceType'](_0x229cb4){const _0x12177e=_0x369941;switch(_0x229cb4){case _0xd0e18a['UniverInstanceType'][_0x12177e(0x341)]:return _0x572cd7;case _0xd0e18a[_0x12177e(0x350)][_0x12177e(0x375)]:return _0x4e6415;case _0xd0e18a[_0x12177e(0x350)]['UNIVER_SLIDE']:return _0x4b3566;case _0xd0e18a['UniverInstanceType'][_0x12177e(0x3f1)]:return _0x13f3d3;case _0xd0e18a['UniverInstanceType'][_0x12177e(0xd4)]:return _0x46c15d;case _0xd0e18a[_0x12177e(0x350)][_0x12177e(0x3e5)]:return _0x472779;default:throw Error(_0x12177e(0x2c8)+_0x229cb4);}}};_0x5ab613=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x1,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x3677b4)),_0x2b5d73(0x2,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0x3,_0xd0e18a[_0x369941(0x390)])],_0x5ab613);var _0x203063=_0x369941(0x356),_0x1cd0b2=_0x369941(0xf8);let _0x15ccef=class extends _0xd0e18a['Disposable']{constructor(_0x4a6f98,_0x36461c){const _0x3c6928=_0x369941;super(),this[_0x3c6928(0x414)]=_0x4a6f98,this[_0x3c6928(0x3da)]=_0x36461c,this[_0x3c6928(0x360)]();}[_0x369941(0x360)](){const _0x381905=_0x369941;this[_0x381905(0x179)](this[_0x381905(0x414)][_0x381905(0x400)][_0x381905(0x35a)](()=>{const _0x10b514=_0x381905;let _0x258bc1=this[_0x10b514(0x414)][_0x10b514(0x26b)](),_0x4795b9=this[_0x10b514(0x3da)][_0x10b514(0x3e2)](_0x10b514(0x103))??_0x10b514(0x217);_0x258bc1 instanceof _0xd0e18a[_0x10b514(0xef)]&&(_0x4795b9=_0x258bc1[_0x10b514(0x118)]),document[_0x10b514(0x15f)]=_0x4795b9;}));}};_0x15ccef=_0x5d2da6([_0x2b5d73(0x0,_0xd0e18a['IUniverInstanceService']),_0x2b5d73(0x1,_0xd0e18a[_0x369941(0x212)])],_0x15ccef);let _0x4ef5f0=(0x0,_0xd0e18a[_0x369941(0x263)])(_0x369941(0x1d3)),_0x277bb9=class{constructor(_0x5603b2,_0x5a0bfa,_0x1670ae){const _0x26b5a5=_0x369941;this[_0x26b5a5(0xcf)]=_0x5603b2,this[_0x26b5a5(0x3da)]=_0x5a0bfa,this[_0x26b5a5(0x414)]=_0x1670ae;}[_0x369941(0x11d)](){const _0x1005a7=_0x369941;return this['_getConfig']()[_0x1005a7(0x2e2)]??{};}async[_0x369941(0xd8)](_0x5e23f6){const _0x410433=_0x369941;let _0x528966=this[_0x410433(0x11d)]();if(_0x517e43(_0x5e23f6,_0x528966),_0x528966[_0x410433(0x259)])return _0x528966[_0x410433(0x259)](_0x5e23f6);let _0x4da22e=await this[_0x410433(0x41b)](_0x5e23f6);return{'id':_0x4da22e,'name':_0x5e23f6[_0x410433(0x118)],'mimeType':_0x5e23f6[_0x410433(0x120)],'size':_0x5e23f6[_0x410433(0x2b1)],'sourceType':_0xd0e18a[_0x410433(0x405)]['UUID'],'source':_0x4da22e};}async['getAttachmentUrl'](_0x55facf,_0x1bb29b){const _0x276c0a=_0x369941;if(_0x1bb29b!==_0xd0e18a[_0x276c0a(0x405)][_0x276c0a(0x3e3)])return _0x55facf;let _0x13fa78=(await this[_0x276c0a(0xcf)][_0x276c0a(0x271)](this[_0x276c0a(0x1d1)]()[_0x276c0a(0x349)](_0x276c0a(0x322),_0x55facf)))[_0x276c0a(0x232)];if(_0x13fa78['error']&&_0x13fa78[_0x276c0a(0x254)]['code']!==_0x5f374c['ErrorCode']['OK'])throw _0x13fa78[_0x276c0a(0x254)];if(!_0x13fa78[_0x276c0a(0x20b)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,_0xd0e18a[_0x276c0a(0x2b9)])(_0x13fa78[_0x276c0a(0x20b)],this[_0x276c0a(0x3d4)]());}async['_upload'](_0x2e1c20){const _0x4a961c=_0x369941;let _0x46eb49=this[_0x4a961c(0x414)][_0x4a961c(0x26b)](),_0x18958a=_0x46eb49==null?void 0x0:_0x46eb49['getUnitId']();if(!_0x18958a)throw Error(_0x4a961c(0x324));let _0x363a97=new FormData();_0x363a97[_0x4a961c(0xc3)](_0x4a961c(0xbf),_0x2e1c20);let _0x42661b=this['_getUploadFileURL']()+_0x4a961c(0x1dd)+_0x2e1c20[_0x4a961c(0x2b1)][_0x4a961c(0x2eb)]()+'&source='+_0x5f374c[_0x4a961c(0x3df)][_0x4a961c(0x3c9)]+'&assign='+encodeURIComponent(_0x18958a),_0x580e07=(await this[_0x4a961c(0xcf)][_0x4a961c(0x3e9)](_0x42661b,{'body':_0x363a97}))[_0x4a961c(0x232)]['FileId'];if(typeof _0x580e07!='string'||!_0x580e07)throw Error(_0x4a961c(0xc1));return _0x580e07;}[_0x369941(0x2fd)](){const _0x5bc60e=_0x369941;return this[_0x5bc60e(0x380)]()[_0x5bc60e(0x19b)]??_0x5bc60e(0x33b);}[_0x369941(0x1d1)](){const _0x39ffb4=_0x369941;return this[_0x39ffb4(0x380)]()['signUrlServerUrl']??_0x39ffb4(0x2f6);}[_0x369941(0x3d4)](){const _0x4c08b6=_0x369941;let _0x12034a=this['_getConfig']();return _0x12034a['downloadEndpointUrl']?_0x12034a[_0x4c08b6(0x313)]:typeof location<'u'?location['origin']:_0x12034a['uploadFileServerUrl']??'';}[_0x369941(0x380)](){const _0x48e758=_0x369941;return this['_configService'][_0x48e758(0x3e2)](_0x48e758(0x37d))??{};}};_0x277bb9=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a['Inject'])(_0x3bebf7[_0x369941(0x14d)])),_0x2b5d73(0x1,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['IConfigService'])),_0x2b5d73(0x2,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x390)]))],_0x277bb9);function _0x517e43(_0x5900fe,_0x106a09){const _0x322490=_0x369941;var _0xf975ca;if(_0x106a09[_0x322490(0x133)]!=null&&_0x5900fe['size']>_0x106a09[_0x322490(0x133)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0xf975ca=_0x106a09[_0x322490(0xe7)])!=null&&_0xf975ca[_0x322490(0x396)]&&!_0x106a09['accept']['some'](_0x194a86=>_0x5900fe[_0x322490(0x120)]===_0x194a86||_0x5900fe[_0x322490(0x118)][_0x322490(0x38f)](_0x194a86)||_0x194a86[_0x322490(0x38f)]('/*')&&_0x5900fe[_0x322490(0x120)][_0x322490(0x1fd)](_0x194a86['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x57ff61=class{constructor(_0x190959,_0x552f80,_0x5769e5){const _0x133707=_0x369941;this[_0x133707(0x3da)]=_0x190959,this['_httpService']=_0x552f80,this[_0x133707(0x2e8)]=_0x5769e5,this[_0x133707(0x162)]();}[_0x369941(0x162)](){const _0x2952db=_0x369941;this[_0x2952db(0xcf)][_0x2952db(0x229)]({'priority':0x1,'interceptor':(_0x47440d,_0x2295de)=>_0x2295de(_0x47440d)[_0x2952db(0x398)]((0x0,_0x23047a[_0x2952db(0x3f0)])(async _0x1c1642=>{const _0x10b2eb=_0x2952db;let _0x24be1d=_0x1c1642;if(_0x24be1d['status']===0x191){if(typeof window>'u')throw Error(_0x10b2eb(0x3d9));if(window[_0x10b2eb(0x171)](this['localeService']['t'](_0x10b2eb(0x3dd)))){let _0x28aca4=window['encodeURIComponent'](window[_0x10b2eb(0x2f2)][_0x10b2eb(0x13d)]);window[_0x10b2eb(0x2f2)][_0x10b2eb(0x13d)]=this[_0x10b2eb(0x173)]()+_0x10b2eb(0x382)+_0x28aca4;}}return _0x24be1d;}))});}['_getLoginPath'](){const _0x3d7d61=_0x369941;let _0x5f2633=this[_0x3d7d61(0x3da)]['getConfig'](_0x2de243);return(_0x5f2633==null?void 0x0:_0x5f2633[_0x3d7d61(0x38c)])??'/universer-api/oidc/authpage';}};_0x57ff61=_0x5d2da6([_0x2b5d73(0x0,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0x1,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x3bebf7['HTTPService'])),_0x2b5d73(0x2,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['LocaleService']))],_0x57ff61);let _0x23e5ee=class extends _0xd0e18a[_0x369941(0x1e8)]{constructor(_0x7949d1,_0x781023){const _0x21ba99=_0x369941;super(),this[_0x21ba99(0x176)]=_0x7949d1,this[_0x21ba99(0x3da)]=_0x781023,_0xf185b(this,_0x21ba99(0x36d),!0x1),this[_0x21ba99(0x311)]();}[_0x369941(0x311)](){const _0x2eebba=_0x369941;let _0x5e4391=this;this[_0x2eebba(0x179)](this[_0x2eebba(0x176)][_0x2eebba(0x229)]({'priority':0x3e7,'interceptor':(0x0,_0x3bebf7[_0x2eebba(0x2cd)])({'isMatch'(_0xdf9581){const _0x2212ea=_0x2eebba;var _0x12be91;if(_0xdf9581[_0x2212ea(0x3a5)]===_0x2212ea(0xfe)&&(_0x12be91=_0xdf9581[_0x2212ea(0x332)])!=null&&_0x12be91[_0x2212ea(0x232)]){let {objectID:_0x5978b3,objectType:_0x1035c5}=_0xdf9581['requestParams'][_0x2212ea(0x232)]||{};if(!_0x5978b3||_0x1035c5===void 0x0)return!0x1;let _0x48b93f=_0x5e4391[_0x2212ea(0x29c)]()+'/'+_0x1035c5+_0x2212ea(0xbc)+encodeURIComponent(_0x5978b3)+_0x2212ea(0x3e4);if(_0xdf9581[_0x2212ea(0x20b)]===_0x48b93f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x35a21f){const _0x1fd23e=_0x2eebba;var _0x5afae8;return(_0x5afae8=_0x35a21f['requestParams'])==null?void 0x0:_0x5afae8[_0x1fd23e(0x232)];},'mergeParamsToRequest'(_0x1f70e6,_0x301e01){const _0x4fdb4a=_0x2eebba;let _0x4d2642=_0x5e4391[_0x4fdb4a(0x29c)]()+'/-/object/-/batch_allowed',_0x24342e=_0x1f70e6[_0x4fdb4a(0x21c)]((_0x362ac2,_0x37ee7a)=>{const _0x35b8de=_0x4fdb4a;let {unitID:_0x14ecbb,objectID:_0x2ca042,objectType:_0x36f052,actions:_0x4b47b3}=_0x37ee7a;return _0x362ac2[_0x14ecbb]||(_0x362ac2[_0x14ecbb]={}),_0x362ac2[_0x14ecbb][_0x2ca042]||(_0x362ac2[_0x14ecbb][_0x2ca042]={'objectID':_0x2ca042,'objectType':_0x36f052,'actions':[]}),_0x362ac2[_0x14ecbb][_0x2ca042]['actions'][_0x35b8de(0x3f3)](..._0x4b47b3),_0x362ac2;},{}),_0x113b04=[];for(let _0x3487cf in _0x24342e)for(let _0x1c671b in _0x24342e[_0x3487cf]){let {actions:_0x3df8c9,objectType:_0x4bca00}=_0x24342e[_0x3487cf][_0x1c671b],_0x3d4c30=[...new Set(_0x3df8c9)];_0x113b04[_0x4fdb4a(0x3f3)]({'unitID':_0x3487cf,'objectID':_0x1c671b,'objectType':_0x4bca00,'actions':_0x3d4c30});}return new _0x3bebf7[(_0x4fdb4a(0x323))](_0x4fdb4a(0xfe),_0x4d2642,{'headers':_0x301e01[_0x4fdb4a(0x148)],'withCredentials':_0x301e01[_0x4fdb4a(0xba)],'responseType':_0x301e01['responseType'],'body':{'requests':_0x113b04}});}},{'distributeResult'(_0x46148c,_0x1258b9){const _0x26d356=_0x2eebba;let {objectActions:_0x35b929}=_0x46148c;return _0x1258b9[_0x26d356(0x102)](_0x280bdb=>{const _0x545bce=_0x26d356;let {unitID:_0x1b3a74,objectID:_0x58b1f5,actions:_0x38c3d3}=_0x280bdb,_0x3707c3=_0x35b929['find'](_0x570771=>_0x570771[_0x545bce(0x40c)]===_0x1b3a74&&_0x570771['objectID']===_0x58b1f5);return{'config':_0x280bdb,'result':{'actions':_0x38c3d3[_0x545bce(0x102)](_0x13bbaf=>_0x3707c3==null?void 0x0:_0x3707c3[_0x545bce(0x3f7)][_0x545bce(0x303)](_0xfc460d=>_0xfc460d[_0x545bce(0x1f0)]===_0x13bbaf))[_0x545bce(0x2c1)](_0xfc413=>!!_0xfc413),'error':_0x46148c['error']}};});}})}));}[_0x369941(0x29c)](){const _0x5182c1=_0x369941;let _0x1b8632=this['_configService'][_0x5182c1(0x3e2)](_0x2de243);return(_0x1b8632==null?void 0x0:_0x1b8632[_0x5182c1(0x2bb)])??_0x5182c1(0xc2);}async[_0x369941(0x1ce)](_0x667a8f){const _0x34c396=_0x369941;let _0x22e187=this[_0x34c396(0x29c)]()+'/'+_0x667a8f[_0x34c396(0x2e5)]+_0x34c396(0x418);return(await this['_HTTPService'][_0x34c396(0x3e9)](_0x22e187,{'body':_0x667a8f}))[_0x34c396(0x232)]['objectID']||'';}async[_0x369941(0x3ec)](_0xe683e3){const _0x479b9d=_0x369941;let _0x407c80=this[_0x479b9d(0x29c)]()+_0x479b9d(0x186);return(await this[_0x479b9d(0x176)][_0x479b9d(0x3e9)](_0x407c80,{'body':_0xe683e3}))[_0x479b9d(0x232)][_0x479b9d(0x3d0)];}async[_0x369941(0xec)](_0x57edb6){const _0x27163a=_0x369941;var _0x39c469;let _0x202cf7=this[_0x27163a(0x29c)]()+'/'+_0x57edb6[_0x27163a(0x2e5)]+_0x27163a(0xbc)+encodeURIComponent(_0x57edb6[_0x27163a(0x230)]),_0x3eebf9=await this['_HTTPService']['put'](_0x202cf7,{'body':_0x57edb6});if((_0x3eebf9==null||(_0x39c469=_0x3eebf9[_0x27163a(0x232)])==null||(_0x39c469=_0x39c469[_0x27163a(0x254)])==null?void 0x0:_0x39c469[_0x27163a(0x3b1)])!==0x1)throw Error(_0x27163a(0x283));}async[_0x369941(0x297)](_0x297d6b){const _0x1e974b=_0x369941;let _0x5225e1=this[_0x1e974b(0x29c)]()+'/'+_0x297d6b['objectType']+_0x1e974b(0xbc)+encodeURIComponent(_0x297d6b[_0x1e974b(0x230)])+_0x1e974b(0x3e4);return(await this[_0x1e974b(0x176)][_0x1e974b(0x3e9)](_0x5225e1,{'body':_0x297d6b}))[_0x1e974b(0x232)][_0x1e974b(0x3f7)];}async[_0x369941(0x1cf)](_0x53be80){const _0x4933f5=_0x369941;let _0xc94c9f=this[_0x4933f5(0x29c)]()+'/-/object/-/batch_allowed';return(await this[_0x4933f5(0x176)][_0x4933f5(0x3e9)](_0xc94c9f,{'body':{'requests':_0x53be80}}))[_0x4933f5(0x232)][_0x4933f5(0x340)];}async['listRoles'](_0x3258ed){const _0x4f0f0e=_0x369941;let _0x150e74=this[_0x4f0f0e(0x29c)]()+'/'+_0x3258ed[_0x4f0f0e(0x2e5)]+'/role',_0x4a796c=await this[_0x4f0f0e(0x176)][_0x4f0f0e(0x3e9)](_0x150e74,{'body':_0x3258ed});return{'roles':_0x4a796c[_0x4f0f0e(0x232)][_0x4f0f0e(0x14f)],'actions':_0x4a796c[_0x4f0f0e(0x232)]['actions']};}async['deleteCollaborator'](_0x545edb){const _0x10bcd2=_0x369941;let _0x43c3b6=this[_0x10bcd2(0x29c)]()+_0x10bcd2(0x1cd);await this[_0x10bcd2(0x176)][_0x10bcd2(0x2ed)](_0x43c3b6,{'params':{'collaboratorID':_0x545edb['collaboratorID'],'objectID':_0x545edb[_0x10bcd2(0x230)],'unitID':_0x545edb[_0x10bcd2(0x40c)]}});}async[_0x369941(0xb8)](_0x451367){const _0x35fa17=_0x369941;let _0x437760=this['_getAPIPrefixPath']()+_0x35fa17(0x1cd);await this[_0x35fa17(0x176)][_0x35fa17(0x121)](_0x437760,{'body':_0x451367});}async[_0x369941(0x1fc)](_0x3f199a){const _0x1d9048=_0x369941;let _0x292e61=this[_0x1d9048(0x29c)]()+_0x1d9048(0x1cd);await this['_HTTPService'][_0x1d9048(0x3e9)](_0x292e61,{'body':_0x3f199a});}async[_0x369941(0x2fe)](_0x118e10){const _0x3d3090=_0x369941;let _0x490097=this[_0x3d3090(0x29c)]()+'/collaborator',_0x124d5a=await this[_0x3d3090(0x176)]['get'](_0x490097,{'params':{'objectID':_0x118e10[_0x3d3090(0x230)],'unitID':_0x118e10[_0x3d3090(0x40c)]}});return this[_0x3d3090(0x2c4)](_0x124d5a[_0x3d3090(0x232)][_0x3d3090(0x38e)]??!0x1),_0x124d5a[_0x3d3090(0x232)]['collaborators'];}async[_0x369941(0x40e)](_0x29ec02){const _0x112ace=_0x369941;let _0x535ac1=this[_0x112ace(0x29c)]()+_0x112ace(0x1cd);await this[_0x112ace(0x176)][_0x112ace(0x331)](_0x535ac1,{'body':_0x29ec02});}[_0x369941(0x2c4)](_0xf762aa){const _0x13cc9a=_0x369941;this[_0x13cc9a(0x36d)]=_0xf762aa;}[_0x369941(0x3a4)](){const _0x5ba65d=_0x369941;return this[_0x5ba65d(0x36d)];}};_0x23e5ee=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a['Inject'])(_0x3bebf7[_0x369941(0x14d)])),_0x2b5d73(0x1,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x212)]))],_0x23e5ee);function _0x33c96d(_0x389aa2){const _0x110d45=_0x369941;return _0x389aa2 instanceof Uint8Array||ArrayBuffer[_0x110d45(0xdd)](_0x389aa2)&&_0x389aa2[_0x110d45(0x185)][_0x110d45(0x118)]==='Uint8Array'&&_0x110d45(0x3a0)in _0x389aa2&&_0x389aa2[_0x110d45(0x3a0)]===0x1;}function _0x295fec(_0x5e12f2){const _0x1ed1a0=_0x369941;if(typeof _0x5e12f2!=_0x1ed1a0(0xb4))throw TypeError(_0x1ed1a0(0x34c)+typeof _0x5e12f2);if(!Number['isSafeInteger'](_0x5e12f2)||_0x5e12f2<0x0)throw RangeError('positive\x20integer\x20expected,\x20got\x20'+_0x5e12f2);}function _0x51df10(_0x1f4afc,_0x550bbb,_0x40ec33=''){const _0x58a46c=_0x369941;let _0xf45009=_0x33c96d(_0x1f4afc),_0x49cf46=_0x1f4afc==null?void 0x0:_0x1f4afc[_0x58a46c(0x396)],_0x3184b0=_0x550bbb!==void 0x0;if(!_0xf45009||_0x3184b0&&_0x49cf46!==_0x550bbb){let _0x3e8bc1=_0x40ec33&&'\x22'+_0x40ec33+'\x22\x20',_0x8b3175=_0x3184b0?_0x58a46c(0x177)+_0x550bbb:'',_0x5f5181=_0xf45009?'length='+_0x49cf46:'type='+typeof _0x1f4afc,_0x3feb24=_0x3e8bc1+'expected\x20Uint8Array'+_0x8b3175+_0x58a46c(0x25c)+_0x5f5181;throw _0xf45009?RangeError(_0x3feb24):TypeError(_0x3feb24);}return _0x1f4afc;}function _0xa58086(_0x470139){const _0x5473b7=_0x369941;return new Uint32Array(_0x470139[_0x5473b7(0x28e)],_0x470139[_0x5473b7(0x24b)],Math[_0x5473b7(0x3c7)](_0x470139[_0x5473b7(0x2da)]/0x4));}function _0x59dea3(..._0x1b972a){const _0x44d397=_0x369941;for(let _0x12f2ae=0x0;_0x12f2ae<_0x1b972a[_0x44d397(0x396)];_0x12f2ae++)_0x1b972a[_0x12f2ae][_0x44d397(0x139)](0x0);}let _0x5e7aad=new Uint8Array(new Uint32Array([0x11223344])[_0x369941(0x28e)])[0x0]===0x44,_0x3b191c=_0x5e5913=>_0x5e5913<<0x18&0xff000000|_0x5e5913<<0x8&0xff0000|_0x5e5913>>>0x8&0xff00|_0x5e5913>>>0x18&0xff,_0x274537=_0x5e7aad?_0x410476=>_0x410476:_0x223c39=>{const _0x4bd245=_0x369941;for(let _0x24da58=0x0;_0x24da58<_0x223c39[_0x4bd245(0x396)];_0x24da58++)_0x223c39[_0x24da58]=_0x3b191c(_0x223c39[_0x24da58]);return _0x223c39;};function _0x11e36e(_0x70e456){const _0x39c97f=_0x369941;if(typeof _0x70e456!='string')throw TypeError(_0x39c97f(0x2f0));return new Uint8Array(new TextEncoder()[_0x39c97f(0x1a8)](_0x70e456));}function _0xd91453(_0x57c524,_0x2d70b4){const _0x1a9549=_0x369941;return!_0x57c524[_0x1a9549(0x2da)]||!_0x2d70b4[_0x1a9549(0x2da)]?!0x1:_0x57c524[_0x1a9549(0x28e)]===_0x2d70b4[_0x1a9549(0x28e)]&&_0x57c524[_0x1a9549(0x24b)]<_0x2d70b4['byteOffset']+_0x2d70b4[_0x1a9549(0x2da)]&&_0x2d70b4[_0x1a9549(0x24b)]<_0x57c524['byteOffset']+_0x57c524[_0x1a9549(0x2da)];}function _0x1c36fb(_0xdba937,_0x17b0a4){const _0x2d554f=_0x369941;if(_0xd91453(_0xdba937,_0x17b0a4)&&_0xdba937[_0x2d554f(0x24b)]<_0x17b0a4['byteOffset'])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x1fbddc(..._0xcd404a){const _0x32d959=_0x369941;let _0x5672a7=0x0;for(let _0x353ce6=0x0;_0x353ce6<_0xcd404a[_0x32d959(0x396)];_0x353ce6++){let _0x2e8503=_0xcd404a[_0x353ce6];_0x51df10(_0x2e8503),_0x5672a7+=_0x2e8503[_0x32d959(0x396)];}let _0x42b801=new Uint8Array(_0x5672a7);for(let _0x4b905a=0x0,_0x2ef403=0x0;_0x4b905a<_0xcd404a[_0x32d959(0x396)];_0x4b905a++){let _0x323aa2=_0xcd404a[_0x4b905a];_0x42b801['set'](_0x323aa2,_0x2ef403),_0x2ef403+=_0x323aa2[_0x32d959(0x396)];}return _0x42b801;}let _0x1bf5cb=(_0x43efdf,_0x4add57)=>{const _0x3d50a6=_0x369941;function _0x265caf(_0x102555,..._0x9eb824){const _0x28c448=_0x3303;if(_0x51df10(_0x102555,void 0x0,_0x28c448(0x1a1)),_0x43efdf[_0x28c448(0x1a5)]!==void 0x0){let _0x23eb65=_0x9eb824[0x0];_0x51df10(_0x23eb65,_0x43efdf['varSizeNonce']?void 0x0:_0x43efdf[_0x28c448(0x1a5)],'nonce');}let _0x1c361=_0x43efdf['tagLength'];_0x1c361&&_0x9eb824[0x1]!==void 0x0&&_0x51df10(_0x9eb824[0x1],void 0x0,_0x28c448(0x3bd));let _0x32467e=_0x4add57(_0x102555,..._0x9eb824),_0x2d4ca1=(_0x499fea,_0x44efb6)=>{const _0xb5fa7c=_0x28c448;if(_0x44efb6!==void 0x0){if(_0x499fea!==0x2)throw Error(_0xb5fa7c(0x270));_0x51df10(_0x44efb6,void 0x0,_0xb5fa7c(0x3b8));}},_0x1750ed=!0x1;return{'encrypt'(_0x1b28c1,_0x28dafd){const _0x3fa627=_0x28c448;if(_0x1750ed)throw Error(_0x3fa627(0x2c0));return _0x1750ed=!0x0,_0x51df10(_0x1b28c1),_0x2d4ca1(_0x32467e[_0x3fa627(0x2e1)]['length'],_0x28dafd),_0x32467e['encrypt'](_0x1b28c1,_0x28dafd);},'decrypt'(_0x1fc713,_0x30d60c){const _0x23353b=_0x28c448;if(_0x51df10(_0x1fc713),_0x1c361&&_0x1fc713['length']<_0x1c361)throw Error(_0x23353b(0x23f)+_0x1c361);return _0x2d4ca1(_0x32467e[_0x23353b(0x295)][_0x23353b(0x396)],_0x30d60c),_0x32467e[_0x23353b(0x295)](_0x1fc713,_0x30d60c);}};}return Object[_0x3d50a6(0x3cf)](_0x265caf,_0x43efdf),_0x265caf;};function _0x53f89e(_0x5dde93,_0x26a848,_0x1f7ae1=!0x0){const _0x5268f=_0x369941;if(_0x26a848===void 0x0)return new Uint8Array(_0x5dde93);if(_0x51df10(_0x26a848,void 0x0,_0x5268f(0x3b8)),_0x26a848[_0x5268f(0x396)]!==_0x5dde93)throw Error(_0x5268f(0x32f)+_0x5dde93+_0x5268f(0x27a)+_0x26a848[_0x5268f(0x396)]);if(_0x1f7ae1&&!_0x12543c(_0x26a848))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x26a848;}function _0x12543c(_0x5214d0){const _0x452b75=_0x369941;return _0x5214d0[_0x452b75(0x24b)]%0x4==0x0;}function _0x4c46e3(_0x491681){const _0x2b0769=_0x369941;return Uint8Array[_0x2b0769(0x22d)](_0x51df10(_0x491681));}function _0x162213(_0x49a83b=0x20){const _0x569101=_0x369941;_0x295fec(_0x49a83b);let _0x46a28e=typeof globalThis==_0x569101(0x140)?globalThis['crypto']:null;if(typeof(_0x46a28e==null?void 0x0:_0x46a28e[_0x569101(0x1ea)])!='function')throw Error(_0x569101(0xfb));return _0x46a28e[_0x569101(0x1ea)](new Uint8Array(_0x49a83b));}function _0x2c1473(_0x4853dd){const _0x29a057=_0x369941;if(![0x10,0x18,0x20]['includes'](_0x4853dd[_0x29a057(0x396)]))throw Error(_0x29a057(0x236)+_0x4853dd[_0x29a057(0x396)]);}function _0x238769(_0x30e39f){return _0x30e39f<<0x1^0x11b&-(_0x30e39f>>0x7);}function _0x171750(_0x152d7f,_0x1a31c2){let _0x2a93e7=0x0;for(;_0x1a31c2>0x0;_0x1a31c2>>=0x1)_0x2a93e7^=_0x152d7f&-(_0x1a31c2&0x1),_0x152d7f=_0x238769(_0x152d7f);return _0x2a93e7;}let _0x3e18fd=((()=>{let _0x5652ee=new Uint8Array(0x100);for(let _0x4be33b=0x0,_0x32fbae=0x1;_0x4be33b<0x100;_0x4be33b++,_0x32fbae^=_0x238769(_0x32fbae))_0x5652ee[_0x4be33b]=_0x32fbae;let _0x316f41=new Uint8Array(0x100);_0x316f41[0x0]=0x63;for(let _0x35a692=0x0;_0x35a692<0xff;_0x35a692++){let _0x17ee8d=_0x5652ee[0xff-_0x35a692];_0x17ee8d|=_0x17ee8d<<0x8,_0x316f41[_0x5652ee[_0x35a692]]=(_0x17ee8d^_0x17ee8d>>0x4^_0x17ee8d>>0x5^_0x17ee8d>>0x6^_0x17ee8d>>0x7^0x63)&0xff;}return _0x59dea3(_0x5652ee),_0x316f41;})()),_0x4aed4c=_0x3e18fd['map']((_0x1e17f8,_0x2c1656)=>_0x3e18fd[_0x369941(0x3af)](_0x2c1656)),_0x4c36ef=_0x29948e=>_0x29948e<<0x18|_0x29948e>>>0x8,_0x6b8132=_0x14f589=>_0x14f589<<0x8|_0x14f589>>>0x18;function _0xae3520(_0x5ca7f8,_0x93d051){const _0x269028=_0x369941;if(_0x5ca7f8[_0x269028(0x396)]!==0x100)throw Error(_0x269028(0x193));let _0x4e2e1d=new Uint32Array(0x100)[_0x269028(0x102)]((_0x251364,_0x45a8d5)=>_0x93d051(_0x5ca7f8[_0x45a8d5])),_0x232283=_0x4e2e1d[_0x269028(0x102)](_0x6b8132),_0x457f10=_0x232283['map'](_0x6b8132),_0x2ec029=_0x457f10[_0x269028(0x102)](_0x6b8132),_0x55e7f6=new Uint32Array(0x100*0x100),_0x558983=new Uint32Array(0x100*0x100),_0x284ca8=new Uint16Array(0x100*0x100);for(let _0x2f6870=0x0;_0x2f6870<0x100;_0x2f6870++)for(let _0xc22492=0x0;_0xc22492<0x100;_0xc22492++){let _0x166915=_0x2f6870*0x100+_0xc22492;_0x55e7f6[_0x166915]=_0x4e2e1d[_0x2f6870]^_0x232283[_0xc22492],_0x558983[_0x166915]=_0x457f10[_0x2f6870]^_0x2ec029[_0xc22492],_0x284ca8[_0x166915]=_0x5ca7f8[_0x2f6870]<<0x8|_0x5ca7f8[_0xc22492];}return{'sbox':_0x5ca7f8,'sbox2':_0x284ca8,'T0':_0x4e2e1d,'T1':_0x232283,'T2':_0x457f10,'T3':_0x2ec029,'T01':_0x55e7f6,'T23':_0x558983};}let _0x53ede3=_0xae3520(_0x3e18fd,_0x48ae65=>_0x171750(_0x48ae65,0x3)<<0x18|_0x48ae65<<0x10|_0x48ae65<<0x8|_0x171750(_0x48ae65,0x2)),_0x193bb5=_0xae3520(_0x4aed4c,_0x3bafc0=>_0x171750(_0x3bafc0,0xb)<<0x18|_0x171750(_0x3bafc0,0xd)<<0x10|_0x171750(_0x3bafc0,0x9)<<0x8|_0x171750(_0x3bafc0,0xe)),_0x164c94=((()=>{let _0x1bae20=new Uint8Array(0x10);for(let _0x242805=0x0,_0x4486ee=0x1;_0x242805<0x10;_0x242805++,_0x4486ee=_0x238769(_0x4486ee))_0x1bae20[_0x242805]=_0x4486ee;return _0x1bae20;})());function _0x386011(_0x2d0803){const _0xd952fd=_0x369941;_0x51df10(_0x2d0803);let _0x5bb223=_0x2d0803['length'];_0x2c1473(_0x2d0803);let {sbox2:_0x207c95}=_0x53ede3,_0xa3ba8=[];(!_0x5e7aad||!_0x12543c(_0x2d0803))&&_0xa3ba8[_0xd952fd(0x3f3)](_0x2d0803=_0x4c46e3(_0x2d0803));let _0xe88a3f=_0x274537(_0xa58086(_0x2d0803)),_0x5c26c3=_0xe88a3f[_0xd952fd(0x396)],_0x45aa4f=_0x2da9fc=>_0x1a710c(_0x207c95,_0x2da9fc,_0x2da9fc,_0x2da9fc,_0x2da9fc),_0x4b1794=new Uint32Array(_0x5bb223+0x1c);_0x4b1794['set'](_0xe88a3f);for(let _0x48f25f=_0x5c26c3;_0x48f25f<_0x4b1794[_0xd952fd(0x396)];_0x48f25f++){let _0x14de56=_0x4b1794[_0x48f25f-0x1];_0x48f25f%_0x5c26c3===0x0?_0x14de56=_0x45aa4f(_0x4c36ef(_0x14de56))^_0x164c94[_0x48f25f/_0x5c26c3-0x1]:_0x5c26c3>0x6&&_0x48f25f%_0x5c26c3===0x4&&(_0x14de56=_0x45aa4f(_0x14de56)),_0x4b1794[_0x48f25f]=_0x4b1794[_0x48f25f-_0x5c26c3]^_0x14de56;}return _0x59dea3(..._0xa3ba8),_0x4b1794;}function _0x3a789b(_0x121570){const _0x27c381=_0x369941;let _0x58409f=_0x386011(_0x121570),_0x3240a0=_0x58409f[_0x27c381(0x2ca)](),_0x373c5f=_0x58409f[_0x27c381(0x396)],{sbox2:_0x8b094f}=_0x53ede3,{T0:_0x29e13d,T1:_0x1a7c1c,T2:_0x43dd4e,T3:_0xd9969b}=_0x193bb5;for(let _0xdf04cd=0x0;_0xdf04cd<_0x373c5f;_0xdf04cd+=0x4)for(let _0x29d2bf=0x0;_0x29d2bf<0x4;_0x29d2bf++)_0x3240a0[_0xdf04cd+_0x29d2bf]=_0x58409f[_0x373c5f-_0xdf04cd-0x4+_0x29d2bf];_0x59dea3(_0x58409f);for(let _0x39060e=0x4;_0x39060e<_0x373c5f-0x4;_0x39060e++){let _0x2b12a3=_0x3240a0[_0x39060e],_0x482b08=_0x1a710c(_0x8b094f,_0x2b12a3,_0x2b12a3,_0x2b12a3,_0x2b12a3);_0x3240a0[_0x39060e]=_0x29e13d[_0x482b08&0xff]^_0x1a7c1c[_0x482b08>>>0x8&0xff]^_0x43dd4e[_0x482b08>>>0x10&0xff]^_0xd9969b[_0x482b08>>>0x18];}return _0x3240a0;}function _0x472227(_0x39a88b,_0x3b0747,_0x6f500e,_0x5e81ac,_0x2ab5bb,_0x51f732){return _0x39a88b[_0x6f500e<<0x8&0xff00|_0x5e81ac>>>0x8&0xff]^_0x3b0747[_0x2ab5bb>>>0x8&0xff00|_0x51f732>>>0x18&0xff];}function _0x1a710c(_0x4b7fd3,_0x3ccd43,_0x5711b3,_0x28ae23,_0x8dbaa8){return _0x4b7fd3[_0x3ccd43&0xff|_0x5711b3&0xff00]|_0x4b7fd3[_0x28ae23>>>0x10&0xff|_0x8dbaa8>>>0x10&0xff00]<<0x10;}function _0x57acfd(_0x26ce4d,_0x44ea4d,_0x4673d7,_0xa4b59d,_0x36fd7d){const _0x4f490e=_0x369941;let {sbox2:_0x468418,T01:_0x428226,T23:_0x16f4e5}=_0x53ede3,_0x267afc=0x0;_0x44ea4d^=_0x26ce4d[_0x267afc++],_0x4673d7^=_0x26ce4d[_0x267afc++],_0xa4b59d^=_0x26ce4d[_0x267afc++],_0x36fd7d^=_0x26ce4d[_0x267afc++];let _0x15e89c=_0x26ce4d[_0x4f490e(0x396)]/0x4-0x2;for(let _0xe3f52f=0x0;_0xe3f52f<_0x15e89c;_0xe3f52f++){let _0x49ce82=_0x26ce4d[_0x267afc++]^_0x472227(_0x428226,_0x16f4e5,_0x44ea4d,_0x4673d7,_0xa4b59d,_0x36fd7d),_0x32399a=_0x26ce4d[_0x267afc++]^_0x472227(_0x428226,_0x16f4e5,_0x4673d7,_0xa4b59d,_0x36fd7d,_0x44ea4d),_0x163411=_0x26ce4d[_0x267afc++]^_0x472227(_0x428226,_0x16f4e5,_0xa4b59d,_0x36fd7d,_0x44ea4d,_0x4673d7),_0x46780d=_0x26ce4d[_0x267afc++]^_0x472227(_0x428226,_0x16f4e5,_0x36fd7d,_0x44ea4d,_0x4673d7,_0xa4b59d);_0x44ea4d=_0x49ce82,_0x4673d7=_0x32399a,_0xa4b59d=_0x163411,_0x36fd7d=_0x46780d;}return{'s0':_0x26ce4d[_0x267afc++]^_0x1a710c(_0x468418,_0x44ea4d,_0x4673d7,_0xa4b59d,_0x36fd7d),'s1':_0x26ce4d[_0x267afc++]^_0x1a710c(_0x468418,_0x4673d7,_0xa4b59d,_0x36fd7d,_0x44ea4d),'s2':_0x26ce4d[_0x267afc++]^_0x1a710c(_0x468418,_0xa4b59d,_0x36fd7d,_0x44ea4d,_0x4673d7),'s3':_0x26ce4d[_0x267afc++]^_0x1a710c(_0x468418,_0x36fd7d,_0x44ea4d,_0x4673d7,_0xa4b59d)};}function _0x1f17f0(_0x1e6143,_0x2cc6b8,_0x13caaf,_0x29b697,_0x3efd7d){const _0x34f27c=_0x369941;let {sbox2:_0x32d3d1,T01:_0x4d573c,T23:_0x2f0bac}=_0x193bb5,_0x500a75=0x0;_0x2cc6b8^=_0x1e6143[_0x500a75++],_0x13caaf^=_0x1e6143[_0x500a75++],_0x29b697^=_0x1e6143[_0x500a75++],_0x3efd7d^=_0x1e6143[_0x500a75++];let _0x45b295=_0x1e6143[_0x34f27c(0x396)]/0x4-0x2;for(let _0x4a4b95=0x0;_0x4a4b95<_0x45b295;_0x4a4b95++){let _0x2032c7=_0x1e6143[_0x500a75++]^_0x472227(_0x4d573c,_0x2f0bac,_0x2cc6b8,_0x3efd7d,_0x29b697,_0x13caaf),_0x28e6af=_0x1e6143[_0x500a75++]^_0x472227(_0x4d573c,_0x2f0bac,_0x13caaf,_0x2cc6b8,_0x3efd7d,_0x29b697),_0x3e9729=_0x1e6143[_0x500a75++]^_0x472227(_0x4d573c,_0x2f0bac,_0x29b697,_0x13caaf,_0x2cc6b8,_0x3efd7d),_0x10aa37=_0x1e6143[_0x500a75++]^_0x472227(_0x4d573c,_0x2f0bac,_0x3efd7d,_0x29b697,_0x13caaf,_0x2cc6b8);_0x2cc6b8=_0x2032c7,_0x13caaf=_0x28e6af,_0x29b697=_0x3e9729,_0x3efd7d=_0x10aa37;}return{'s0':_0x1e6143[_0x500a75++]^_0x1a710c(_0x32d3d1,_0x2cc6b8,_0x3efd7d,_0x29b697,_0x13caaf),'s1':_0x1e6143[_0x500a75++]^_0x1a710c(_0x32d3d1,_0x13caaf,_0x2cc6b8,_0x3efd7d,_0x29b697),'s2':_0x1e6143[_0x500a75++]^_0x1a710c(_0x32d3d1,_0x29b697,_0x13caaf,_0x2cc6b8,_0x3efd7d),'s3':_0x1e6143[_0x500a75++]^_0x1a710c(_0x32d3d1,_0x3efd7d,_0x29b697,_0x13caaf,_0x2cc6b8)};}function _0x213a12(_0x56e686){const _0x4819a6=_0x369941;if(_0x51df10(_0x56e686),_0x56e686[_0x4819a6(0x396)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x13adb7(_0x38751c,_0x5da75b,_0x2f6ebc){const _0x48148e=_0x369941;_0x51df10(_0x38751c);let _0x3d669b=_0x38751c['length'],_0x23057f=_0x3d669b%0x10;if(!_0x5da75b&&_0x23057f!==0x0)throw Error(_0x48148e(0x1b8));if(_0x5da75b){let _0x59beb6=0x10-_0x23057f;_0x59beb6||=0x10,_0x3d669b+=_0x59beb6;}_0x2f6ebc=_0x53f89e(_0x3d669b,_0x2f6ebc),_0x1c36fb(_0x38751c,_0x2f6ebc),(!_0x5e7aad||!_0x12543c(_0x38751c))&&(_0x38751c=_0x4c46e3(_0x38751c));let _0x1176a5=_0xa58086(_0x38751c);return _0x274537(_0x1176a5),{'b':_0x1176a5,'o':_0xa58086(_0x2f6ebc),'out':_0x2f6ebc};}function _0x27648c(_0x420299,_0x323cb7){const _0x55a0d9=_0x369941;if(!_0x323cb7)return _0x420299;let _0x3c31ca=_0x420299[_0x55a0d9(0x396)];if(_0x3c31ca===0x0)throw Error('aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x5389ea=_0x420299[_0x3c31ca-0x1],_0x3af825=0x1;_0x3af825&=_0x5389ea-0x1>>>0x1f^0x1,_0x3af825&=0x10-_0x5389ea>>>0x1f^0x1;for(let _0xa80f8c=0x0;_0xa80f8c<0x10;_0xa80f8c++){let _0x77267a=_0xa80f8c-_0x5389ea>>>0x1f,_0x5d33bc=+((_0x420299[_0x3c31ca-0x1-_0xa80f8c]^_0x5389ea)===0x0);_0x3af825&=_0x5d33bc|_0x77267a^0x1;}if(!_0x3af825)throw Error('aes/pkcs7:\x20wrong\x20padding');return _0x420299[_0x55a0d9(0xcd)](0x0,_0x3c31ca-_0x5389ea);}function _0x3a195f(_0x15ac28){const _0x35f4df=_0x369941;let _0x56c9bb=new Uint8Array(0x10),_0x244f5f=_0xa58086(_0x56c9bb);_0x56c9bb['set'](_0x15ac28);let _0x498577=0x10-_0x15ac28[_0x35f4df(0x396)];for(let _0xbca1f5=0x10-_0x498577;_0xbca1f5<0x10;_0xbca1f5++)_0x56c9bb[_0xbca1f5]=_0x498577;return _0x244f5f;}let _0x4ec12a=_0x1bf5cb({'blockSize':0x10,'nonceLength':0x10},function(_0x22a302,_0x43f9a8,_0x1b55de={}){const _0x3cf733=_0x369941;let _0x25cdb3=!_0x1b55de[_0x3cf733(0x27b)];return{'encrypt'(_0x32e1ea,_0x26a7e8){const _0x45b71e=_0x3cf733;let _0xfa9786=_0x386011(_0x22a302),{b:_0x1f517f,o:_0x21711c,out:_0x2a05ae}=_0x13adb7(_0x32e1ea,_0x25cdb3,_0x26a7e8),_0x1233e6=_0x43f9a8,_0x51e212=[_0xfa9786];(!_0x5e7aad||!_0x12543c(_0x1233e6))&&_0x51e212['push'](_0x1233e6=_0x4c46e3(_0x1233e6));let _0x4a1d26=_0xa58086(_0x1233e6);_0x274537(_0x4a1d26);let _0x249daf=_0x4a1d26[0x0],_0x422f59=_0x4a1d26[0x1],_0x2bf0ac=_0x4a1d26[0x2],_0x2bbd66=_0x4a1d26[0x3],_0x2d15b6=0x0;for(;_0x2d15b6+0x4<=_0x1f517f[_0x45b71e(0x396)];)_0x249daf^=_0x1f517f[_0x2d15b6+0x0],_0x422f59^=_0x1f517f[_0x2d15b6+0x1],_0x2bf0ac^=_0x1f517f[_0x2d15b6+0x2],_0x2bbd66^=_0x1f517f[_0x2d15b6+0x3],{s0:_0x249daf,s1:_0x422f59,s2:_0x2bf0ac,s3:_0x2bbd66}=_0x57acfd(_0xfa9786,_0x249daf,_0x422f59,_0x2bf0ac,_0x2bbd66),_0x21711c[_0x2d15b6++]=_0x249daf,_0x21711c[_0x2d15b6++]=_0x422f59,_0x21711c[_0x2d15b6++]=_0x2bf0ac,_0x21711c[_0x2d15b6++]=_0x2bbd66;if(_0x25cdb3){let _0x45ddfb=_0x3a195f(_0x32e1ea[_0x45b71e(0xcd)](_0x2d15b6*0x4));_0x274537(_0x45ddfb),_0x249daf^=_0x45ddfb[0x0],_0x422f59^=_0x45ddfb[0x1],_0x2bf0ac^=_0x45ddfb[0x2],_0x2bbd66^=_0x45ddfb[0x3],{s0:_0x249daf,s1:_0x422f59,s2:_0x2bf0ac,s3:_0x2bbd66}=_0x57acfd(_0xfa9786,_0x249daf,_0x422f59,_0x2bf0ac,_0x2bbd66),_0x21711c[_0x2d15b6++]=_0x249daf,_0x21711c[_0x2d15b6++]=_0x422f59,_0x21711c[_0x2d15b6++]=_0x2bf0ac,_0x21711c[_0x2d15b6++]=_0x2bbd66;}return _0x274537(_0x21711c),_0x59dea3(..._0x51e212),_0x2a05ae;},'decrypt'(_0x1f1f33,_0x125f19){const _0x4da32d=_0x3cf733;_0x213a12(_0x1f1f33);let _0x4bc00c=_0x3a789b(_0x22a302),_0x2f4108=_0x43f9a8,_0x4d5246=[_0x4bc00c];(!_0x5e7aad||!_0x12543c(_0x2f4108))&&_0x4d5246[_0x4da32d(0x3f3)](_0x2f4108=_0x4c46e3(_0x2f4108));let _0x22df58=_0xa58086(_0x2f4108);_0x274537(_0x22df58),_0x125f19=_0x53f89e(_0x1f1f33[_0x4da32d(0x396)],_0x125f19),_0x1c36fb(_0x1f1f33,_0x125f19),(!_0x5e7aad||!_0x12543c(_0x1f1f33))&&_0x4d5246[_0x4da32d(0x3f3)](_0x1f1f33=_0x4c46e3(_0x1f1f33));let _0x5e433d=_0xa58086(_0x1f1f33),_0xc37003=_0xa58086(_0x125f19);_0x274537(_0x5e433d);let _0x118ccc=_0x22df58[0x0],_0x1a1ee7=_0x22df58[0x1],_0x397b06=_0x22df58[0x2],_0x4cc121=_0x22df58[0x3];for(let _0x15bb3e=0x0;_0x15bb3e+0x4<=_0x5e433d[_0x4da32d(0x396)];){let _0x48e22e=_0x118ccc,_0x1a6115=_0x1a1ee7,_0x14a417=_0x397b06,_0x38d910=_0x4cc121;_0x118ccc=_0x5e433d[_0x15bb3e+0x0],_0x1a1ee7=_0x5e433d[_0x15bb3e+0x1],_0x397b06=_0x5e433d[_0x15bb3e+0x2],_0x4cc121=_0x5e433d[_0x15bb3e+0x3];let {s0:_0x3654a7,s1:_0x6f6dd4,s2:_0x53efa1,s3:_0xcff69d}=_0x1f17f0(_0x4bc00c,_0x118ccc,_0x1a1ee7,_0x397b06,_0x4cc121);_0xc37003[_0x15bb3e++]=_0x3654a7^_0x48e22e,_0xc37003[_0x15bb3e++]=_0x6f6dd4^_0x1a6115,_0xc37003[_0x15bb3e++]=_0x53efa1^_0x14a417,_0xc37003[_0x15bb3e++]=_0xcff69d^_0x38d910;}return _0x274537(_0xc37003),_0x59dea3(..._0x4d5246),_0x27648c(_0x125f19,_0x25cdb3);}};});function _0x1a3f80(_0xf943b4){const _0xd21622=_0x369941;let _0x9881bd=atob(_0xf943b4),_0x202f44=new Uint8Array(_0x9881bd[_0xd21622(0x396)]);for(let _0x563fac=0x0;_0x563fac<_0x9881bd[_0xd21622(0x396)];_0x563fac++)_0x202f44[_0x563fac]=_0x9881bd[_0xd21622(0x191)](_0x563fac);return _0x202f44;}function _0x1232a7(_0x5a0595){const _0x231d37=_0x369941;let _0x2a34f5='';for(let _0x4d233b=0x0;_0x4d233b<_0x5a0595[_0x231d37(0x396)];_0x4d233b++)_0x2a34f5+=String['fromCharCode'](_0x5a0595[_0x4d233b]);return btoa(_0x2a34f5);}function _0x3b714d(_0x286210,_0x5ef117){let _0x24f9dc=_0x1a3f80(_0x5ef117),_0x229a0e=_0x162213(0x10);return _0x1232a7(_0x1fbddc(_0x229a0e,_0x4ec12a(_0x24f9dc,_0x229a0e)['encrypt'](_0x11e36e(_0x286210))));}function _0x513528(){const _0xfee327=_0x369941;let _0x42593d=(0x0,_0x2607e7['getGlobalObject'])()[_0xfee327(0x27d)];if(typeof window<'u'&&window[_0xfee327(0x2f2)]!==void 0x0&&_0x42593d){let _0x1a3d32={'time':Math[_0xfee327(0x3c7)](Date[_0xfee327(0x1ae)]()/0x3e8),'domain':location[_0xfee327(0x180)]};return _0x3b714d(JSON[_0xfee327(0x1c6)](_0x1a3d32),_0x42593d);}}let _0x3bbf21=class{constructor(_0x30759b){const _0x2abfae=_0x369941;this[_0x2abfae(0xcf)]=_0x30759b,this[_0x2abfae(0x12c)]();}['_initRequestHeader'](){const _0x481c2d=_0x369941;this[_0x481c2d(0xcf)][_0x481c2d(0x229)]({'interceptor':(_0x83db43,_0x4d3733)=>{const _0x252c86=_0x481c2d;let _0x473b62=_0x513528();return _0x473b62&&_0x83db43[_0x252c86(0x148)]['set'](_0x252c86(0x2aa),_0x473b62),_0x4d3733(_0x83db43);}});}};_0x3bbf21=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x3bebf7[_0x369941(0x14d)]))],_0x3bbf21);let _0x4338fb=class extends _0xd0e18a[_0x369941(0x10a)]{constructor(_0x55d3d6,_0x2f5564,_0x15093d){const _0xeb0f0e=_0x369941;super(),this[_0xeb0f0e(0x2a2)]=_0x55d3d6,this[_0xeb0f0e(0x3ab)]=_0x2f5564,this[_0xeb0f0e(0x106)]=_0x15093d,_0xf185b(this,_0xeb0f0e(0x1fa),new _0x23047a[(_0xeb0f0e(0x22b))](null)),_0xf185b(this,'_unitLoaded$',new _0x23047a[(_0xeb0f0e(0x3f9))]()),_0xf185b(this,_0xeb0f0e(0x184),this[_0xeb0f0e(0x1fa)][_0xeb0f0e(0x395)]()),_0xf185b(this,_0xeb0f0e(0x268),this[_0xeb0f0e(0x3c8)][_0xeb0f0e(0x395)]());}[_0x369941(0x206)](){const _0x555148=_0x369941;super[_0x555148(0x206)](),this[_0x555148(0x3c8)][_0x555148(0x1dc)](),this[_0x555148(0x1fa)][_0x555148(0x1dc)]();}async[_0x369941(0xe6)](_0x110cc0,_0xe50754,_0x2f2918,_0x2b23c1){const _0x22353a=_0x369941;this[_0x22353a(0x1fa)][_0x22353a(0x300)]({'unitId':_0x110cc0,'type':_0xe50754,'subUnitId':_0x2b23c1});let _0x42ea1f=null;switch(_0xe50754){case _0xd0e18a[_0x22353a(0x350)][_0x22353a(0x375)]:_0x42ea1f=await this['_snapshotService'][_0x22353a(0x1f4)](_0x110cc0,_0x2f2918,void 0x0,{'initialSubUnitId':_0x2b23c1});break;case _0xd0e18a[_0x22353a(0x350)]['UNIVER_DOC']:_0x42ea1f=await this['_snapshotService']['loadDoc'](_0x110cc0,_0x2f2918);break;case _0xd0e18a[_0x22353a(0x350)]['UNIVER_SLIDE']:_0x42ea1f=await this[_0x22353a(0x3ab)][_0x22353a(0x117)](_0x110cc0,_0x2f2918);break;case _0xd0e18a[_0x22353a(0x350)]['UNIVER_BOARD']:_0x42ea1f=await this['_snapshotService'][_0x22353a(0x23a)](_0x110cc0,_0x2f2918);break;case _0xd0e18a['UniverInstanceType'][_0x22353a(0xd4)]:_0x42ea1f=await this[_0x22353a(0x3ab)][_0x22353a(0x20e)](_0x110cc0,_0x2f2918);break;case _0xd0e18a[_0x22353a(0x350)]['UNIVER_PDF']:_0x42ea1f=await this[_0x22353a(0x3ab)][_0x22353a(0xf5)](_0x110cc0,_0x2f2918);break;default:this[_0x22353a(0x2a2)]['error'](_0x22353a(0x222),_0x22353a(0x1ed));break;}return _0x42ea1f&&this['_unitLoaded$'][_0x22353a(0x300)](_0x42ea1f),_0x42ea1f;}async[_0x369941(0x3ef)](_0x26da66,_0x2d219f,_0x31cf4d){const _0x5dc2c3=_0x369941;var _0xe8dd2;this[_0x5dc2c3(0x1fa)][_0x5dc2c3(0x300)]({'unitId':_0x26da66,'type':_0x2d219f,'subUnitId':_0x31cf4d});let _0x308653=0x0,_0x31ea3e=await((_0xe8dd2=this[_0x5dc2c3(0x106)])==null?void 0x0:_0xe8dd2[_0x5dc2c3(0x16f)](_0x26da66));return _0x31ea3e&&(_0x31ea3e[_0x5dc2c3(0x1c4)]||_0x31ea3e[_0x5dc2c3(0x309)][_0x5dc2c3(0x396)]!==0x0)&&(_0x308653=_0x31ea3e['rev']),_0x308653===0x0&&this[_0x5dc2c3(0x2a2)][_0x5dc2c3(0x1b4)]('[DataLoaderService]',_0x5dc2c3(0x373)),this[_0x5dc2c3(0xe6)](_0x26da66,_0x2d219f,_0x308653,_0x31cf4d);}};_0x4338fb=_0x5d2da6([_0x2b5d73(0x0,_0xd0e18a['ILogService']),_0x2b5d73(0x1,(0x0,_0xd0e18a['Inject'])(_0x51810d[_0x369941(0x2a7)])),_0x2b5d73(0x2,(0x0,_0xd0e18a['Optional'])(_0x2c8a38))],_0x4338fb);let _0x3744a9=class{constructor(_0x1ad511,_0x1e6d2b,_0x160acb){const _0x51527b=_0x369941;this['_httpService']=_0x1ad511,this['_configService']=_0x1e6d2b,this[_0x51527b(0x414)]=_0x160acb,_0xf185b(this,_0x51527b(0x208),0x0),_0xf185b(this,_0x51527b(0x417),new _0x23047a[(_0x51527b(0x3f9))]()),_0xf185b(this,_0x51527b(0xdb),this[_0x51527b(0x417)]),_0xf185b(this,_0x51527b(0x354),new Map());}[_0x369941(0x2e3)](_0x40d814){const _0x57f624=_0x369941;this['_waitCount']=_0x40d814,this[_0x57f624(0x417)]['next'](_0x40d814);}['getImageSourceCache'](_0x14f199,_0x1e0264){const _0x3a313e=_0x369941;if(_0x1e0264===_0xd0e18a[_0x3a313e(0x405)][_0x3a313e(0x255)]){let _0x2c115a=new Image();return _0x2c115a[_0x3a313e(0x3b4)]=_0x14f199,_0x2c115a;}return this[_0x3a313e(0x354)][_0x3a313e(0x271)](_0x14f199);}[_0x369941(0x122)](_0x162b5a,_0x4f07d7,_0xad7e93){const _0x4ee39d=_0x369941;_0x4f07d7!==_0xd0e18a[_0x4ee39d(0x405)]['BASE64']&&_0xad7e93!=null&&this['_imageSourceCache'][_0x4ee39d(0x225)](_0x162b5a,_0xad7e93);}async['getImage'](_0x3f1825){const _0x5ece88=_0x369941;try{let _0x5e12ff=this[_0x5ece88(0x1bf)](this['_getSignURL'](),''+_0x3f1825),_0x266148=(await this[_0x5ece88(0xcf)]['get'](_0x5e12ff))[_0x5ece88(0x232)];if(_0x266148['error']&&_0x266148[_0x5ece88(0x254)][_0x5ece88(0x3b1)]===_0x5f374c[_0x5ece88(0x1e0)]['OK']){let _0x2359c2=(0x0,_0xd0e18a[_0x5ece88(0x2b9)])(_0x266148[_0x5ece88(0x20b)],this[_0x5ece88(0x3d4)]());return Promise[_0x5ece88(0x2d8)](_0x2359c2);}return Promise['reject'](_0x266148['error']);}catch(_0x3fc57f){return Promise[_0x5ece88(0x39c)](_0x3fc57f);}}async[_0x369941(0x187)](_0x405c53){const _0x692224=_0x369941;let _0x18435d='';if(!_0x176ae7['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x692224(0x348)](_0x405c53[_0x692224(0x120)]))return this['_decreaseWaiting'](),Promise[_0x692224(0x39c)](Error(_0xd0e18a[_0x692224(0x267)][_0x692224(0x1f2)]));if(_0x405c53[_0x692224(0x2b1)]>(0x0,_0x176ae7[_0x692224(0xeb)])())return this['_decreaseWaiting'](),Promise['reject'](Error(_0xd0e18a[_0x692224(0x267)]['ERROR_EXCEED_SIZE']));try{let _0x26370c=new FormData();_0x26370c[_0x692224(0xc3)](_0x692224(0xbf),_0x405c53);let _0x2c087e=this[_0x692224(0x414)]['getFocusedUnit'](),_0x32efa8=_0x2c087e==null?void 0x0:_0x2c087e[_0x692224(0x13c)]();if(!_0x32efa8)throw Error(_0x692224(0x1f5));let _0x5cf30c=this[_0x692224(0x2fd)]()+'?size='+_0x405c53[_0x692224(0x2b1)][_0x692224(0x2eb)]()+_0x692224(0x3b6)+_0x5f374c[_0x692224(0x3df)][_0x692224(0x3c9)]+_0x692224(0x39d)+encodeURIComponent(_0x32efa8),_0x3b5802={'body':_0x26370c},_0x1433fa=(await this[_0x692224(0xcf)][_0x692224(0x3e9)](_0x5cf30c,_0x3b5802))[_0x692224(0x232)];if(typeof _0x1433fa[_0x692224(0x15d)]!=_0x692224(0x1a2))return this[_0x692224(0x22e)](),Promise[_0x692224(0x39c)](Error(_0xd0e18a['ImageUploadStatusType'][_0x692224(0x227)]));_0x18435d=_0x1433fa[_0x692224(0x15d)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0xd0e18a[_0x692224(0x267)][_0x692224(0x227)]));}return new Promise((_0x489f57,_0x23083d)=>{const _0x283f67=_0x692224;let _0x40b137=new FileReader();_0x40b137[_0x283f67(0x1c9)](_0x405c53),_0x40b137[_0x283f67(0x195)]=_0x297e3f=>{const _0x463fa9=_0x283f67;var _0x552991;let _0x13e842=(_0x552991=_0x297e3f['target'])==null?void 0x0:_0x552991[_0x463fa9(0xc7)];if(_0x13e842==null){this[_0x463fa9(0x22e)](),_0x23083d(Error(_0xd0e18a[_0x463fa9(0x267)][_0x463fa9(0x227)]));return;}_0x489f57({'imageId':(0x0,_0xd0e18a[_0x463fa9(0x165)])(0x6),'imageSourceType':_0xd0e18a[_0x463fa9(0x405)]['UUID'],'source':_0x18435d,'base64Cache':_0x13e842,'status':_0xd0e18a[_0x463fa9(0x267)][_0x463fa9(0x3ed)]}),this[_0x463fa9(0x22e)]();};});}[_0x369941(0x2fd)](){const _0x42c39a=_0x369941;let _0x3d041e=this[_0x42c39a(0x3da)][_0x42c39a(0x3e2)](_0x2de243);return(_0x3d041e==null?void 0x0:_0x3d041e[_0x42c39a(0x19b)])??_0x42c39a(0x33b);}['_getSignURL'](){const _0x14794f=_0x369941;let _0x4c2fbe=this[_0x14794f(0x3da)]['getConfig'](_0x2de243);return(_0x4c2fbe==null?void 0x0:_0x4c2fbe['signUrlServerUrl'])??_0x14794f(0x2f6);}['_getDownloadEndpointURL'](){const _0x2b1c9e=_0x369941;let _0x16e72e=this[_0x2b1c9e(0x3da)][_0x2b1c9e(0x3e2)](_0x2de243);return(_0x16e72e==null?void 0x0:_0x16e72e[_0x2b1c9e(0x313)])??location[_0x2b1c9e(0x364)];}[_0x369941(0x1bf)](_0x576f0e,_0x13bc4b){const _0x1f3c4e=_0x369941;return _0x576f0e['replace'](_0x1f3c4e(0x322),_0x13bc4b);}['_decreaseWaiting'](){const _0x11f303=_0x369941;--this[_0x11f303(0x208)],this[_0x11f303(0x417)]['next'](this[_0x11f303(0x208)]);}};_0x3744a9=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x3bebf7[_0x369941(0x14d)])),_0x2b5d73(0x1,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0x2,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['IUniverInstanceService']))],_0x3744a9);let _0x1b4b50=class{constructor(_0x2e4257,_0x199f2b){const _0x33c48f=_0x369941;this[_0x33c48f(0x3da)]=_0x2e4257,this[_0x33c48f(0x176)]=_0x199f2b;}[_0x369941(0x29c)](){const _0x2c6169=_0x369941;let _0x48ad8f=this[_0x2c6169(0x3da)][_0x2c6169(0x3e2)](_0x2de243);return(_0x48ad8f==null?void 0x0:_0x48ad8f['authzUrl'])??_0x2c6169(0xc2);}async['list'](_0x11a1ce){const _0x243342=_0x369941;let _0x44baf4=this['_getAPIPrefixPath']()+_0x243342(0x1cd);return{'list':[{'title':_0x243342(0x2d4),'mentions':(await this[_0x243342(0x176)][_0x243342(0x271)](_0x44baf4,{'params':{'objectID':_0x11a1ce[_0x243342(0x17f)],'unitID':_0x11a1ce[_0x243342(0x17f)]}}))[_0x243342(0x232)]['collaborators'][_0x243342(0x102)](_0x2a3cef=>({'objectId':_0x2a3cef['id'],'name':_0x2a3cef[_0x243342(0x16d)][_0x243342(0x118)],'metadata':{'icon':_0x2a3cef[_0x243342(0x16d)][_0x243342(0x264)]},'label':_0x2a3cef[_0x243342(0x16d)]['name'],'objectType':_0xd0e18a[_0x243342(0x3b3)][_0x243342(0xb2)]})),'metadata':{},'type':_0xd0e18a[_0x243342(0x3b3)]['PERSON']}]};}};_0x1b4b50=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a['IConfigService'])),_0x2b5d73(0x1,(0x0,_0xd0e18a['Inject'])(_0x3bebf7[_0x369941(0x14d)]))],_0x1b4b50);let _0x175cf7=class extends _0xd0e18a[_0x369941(0x10a)]{constructor(_0x4f32be,_0x58f528,_0x442cb3,_0x521d4c,_0x2b542d,_0x4e3b58){const _0x406b1c=_0x369941;super(),this[_0x406b1c(0x3e6)]=_0x4f32be,this[_0x406b1c(0x414)]=_0x58f528,this[_0x406b1c(0x231)]=_0x442cb3,this['_authzIoService']=_0x521d4c,this['_collaborationSessionService']=_0x2b542d,this[_0x406b1c(0x3aa)]=_0x4e3b58,_0xf185b(this,_0x406b1c(0x304),new Set()),this[_0x406b1c(0x179)](()=>this['_closedUnits'][_0x406b1c(0x251)]()),this[_0x406b1c(0x179)](_0xcb1247(this[_0x406b1c(0x414)])[_0x406b1c(0x35a)](({unitId:_0x120c52})=>this['_closedUnits'][_0x406b1c(0x2ed)](_0x120c52))),this['_initUnitPermissionChange'](),this['_initCloseConn'](),[_0xd0e18a[_0x406b1c(0x350)]['UNIVER_DOC'],_0xd0e18a[_0x406b1c(0x350)][_0x406b1c(0x35e)],_0xd0e18a[_0x406b1c(0x350)]['UNIVER_BASE'],_0xd0e18a['UniverInstanceType'][_0x406b1c(0x3f1)]][_0x406b1c(0x3bc)](_0x310d38=>{const _0x142caf=_0x406b1c;this[_0x142caf(0x179)](this[_0x142caf(0x414)]['getTypeOfUnitDisposed$'](_0x310d38)[_0x142caf(0x35a)](_0x5d199f=>{const _0x2df608=_0x142caf;this[_0x2df608(0x304)][_0x2df608(0x301)](_0x5d199f[_0x2df608(0x13c)]()),this['_injector'][_0x2df608(0x271)](_0xd0e18a[_0x2df608(0xb7)])[_0x2df608(0x218)](_0x5d199f[_0x2df608(0x13c)]());}));});}[_0x369941(0x1b1)](){const _0x7d3eea=_0x369941;let _0x2cac04=async(_0x535889,_0xb03929)=>{const _0x44b33b=_0x3303;let _0x12bd51=await this[_0x44b33b(0x237)][_0x44b33b(0x26f)](_0x535889);this['_disposed']||this['_closedUnits'][_0x44b33b(0x409)](_0x535889)||!this[_0x44b33b(0x414)][_0x44b33b(0x358)](_0x535889)||_0x12bd51[_0x44b33b(0x144)][_0x44b33b(0x398)]((0x0,_0x3a34f4[_0x44b33b(0x2c1)])(_0x364f54=>_0x364f54[_0x44b33b(0x374)]===_0x51810d[_0x44b33b(0x2c9)][_0x44b33b(0xd3)]),(0x0,_0x3a34f4[_0x44b33b(0x224)])((0x0,_0x23047a[_0x44b33b(0x2dc)])(this['dispose$'],this['_univerInstanceService']['unitDisposed$'][_0x44b33b(0x398)]((0x0,_0x3a34f4[_0x44b33b(0x2c1)])(_0x3b1e39=>_0x3b1e39[_0x44b33b(0x13c)]()===_0x535889)))))['subscribe'](_0x3005bd=>{const _0x160ef0=_0x44b33b;let {reason:_0x13bbb6}=_0x3005bd[_0x160ef0(0x39a)];this[_0x160ef0(0x3aa)][_0x160ef0(0x1d4)]({'id':_0x160ef0(0x2f5),'data':_0x13bbb6}),this[_0x160ef0(0x304)][_0x160ef0(0x301)](_0x535889),this[_0x160ef0(0x3e6)][_0x160ef0(0x271)](_0xd0e18a[_0x160ef0(0xb7)])[_0x160ef0(0x218)](_0x535889);let _0x824879=_0x3c68ce(_0xb03929);_0x824879!=null&&this[_0x160ef0(0x1f7)](_0x535889,_0x824879,_0x5f374c[_0x160ef0(0x2ec)][_0x160ef0(0x339)],!0x1),this[_0x160ef0(0x237)][_0x160ef0(0x273)](_0x535889);});};_0xcb1247(this[_0x7d3eea(0x414)])[_0x7d3eea(0x398)]((0x0,_0x3a34f4['filter'])(({unitId:_0x4e907e})=>!(0x0,_0xd0e18a[_0x7d3eea(0x415)])(_0x4e907e)),(0x0,_0x3a34f4[_0x7d3eea(0x224)])(this[_0x7d3eea(0x20c)]))['subscribe'](({type:_0x19a1a4,unitId:_0x2b5b6d})=>{const _0x8f4ff5=_0x7d3eea;_0x2cac04(_0x2b5b6d,_0x19a1a4)[_0x8f4ff5(0x37a)](_0x497288=>this[_0x8f4ff5(0x3e6)]['get'](_0xd0e18a[_0x8f4ff5(0x160)])[_0x8f4ff5(0x254)](_0x497288));});}[_0x369941(0x261)](){const _0x291217=_0x369941;let _0x18a848=async(_0x2d0da1,_0x4908f8)=>{const _0x559107=_0x3303;let _0x405ab3=await this[_0x559107(0x237)][_0x559107(0x26f)](_0x2d0da1);if(!(this[_0x559107(0x2df)]||this[_0x559107(0x304)]['has'](_0x2d0da1)||!this[_0x559107(0x414)][_0x559107(0x358)](_0x2d0da1))){if(_0x4908f8===_0xd0e18a[_0x559107(0x350)]['UNIVER_SHEET']){let _0x3b7459=this[_0x559107(0x3e6)][_0x559107(0x271)](_0x54675a['SheetPermissionInitController']);await _0x3b7459[_0x559107(0x2bf)](_0x2d0da1),_0x405ab3[_0x559107(0x144)][_0x559107(0x398)]((0x0,_0x3a34f4[_0x559107(0x2c1)])(_0x6ae9c4=>_0x6ae9c4[_0x559107(0x374)]===_0x51810d[_0x559107(0x2c9)][_0x559107(0x1ee)]),(0x0,_0x3a34f4['takeUntil'])((0x0,_0x23047a[_0x559107(0x2dc)])(this[_0x559107(0x20c)],_0x405ab3[_0x559107(0x144)][_0x559107(0x398)]((0x0,_0x3a34f4[_0x559107(0x2c1)])(_0x3aaa26=>_0x3aaa26[_0x559107(0x374)]===_0x51810d['CollaborationEvent'][_0x559107(0xd3)])),this[_0x559107(0x414)][_0x559107(0x337)]['pipe']((0x0,_0x3a34f4[_0x559107(0x2c1)])(_0x104363=>_0x104363[_0x559107(0x13c)]()===_0x2d0da1)))))[_0x559107(0x35a)](_0x28df58=>{const _0x4082a7=_0x559107;let {objectId:_0x550997}=_0x28df58[_0x4082a7(0x39a)];_0x550997===_0x2d0da1?_0x3b7459[_0x4082a7(0x2bf)](_0x2d0da1):_0x3b7459[_0x4082a7(0x32e)](_0x2d0da1,_0x550997);});return;}_0x405ab3[_0x559107(0x144)][_0x559107(0x398)]((0x0,_0x3a34f4['filter'])(_0x55a9d4=>_0x55a9d4[_0x559107(0x374)]===_0x51810d[_0x559107(0x2c9)][_0x559107(0x1ee)]),(0x0,_0x3a34f4[_0x559107(0x224)])((0x0,_0x23047a[_0x559107(0x2dc)])(this[_0x559107(0x20c)],_0x405ab3[_0x559107(0x144)][_0x559107(0x398)]((0x0,_0x3a34f4[_0x559107(0x2c1)])(_0x259902=>_0x259902[_0x559107(0x374)]===_0x51810d[_0x559107(0x2c9)][_0x559107(0xd3)])),this[_0x559107(0x414)][_0x559107(0x337)]['pipe']((0x0,_0x3a34f4[_0x559107(0x2c1)])(_0x4823a4=>_0x4823a4[_0x559107(0x13c)]()===_0x2d0da1)))))[_0x559107(0x35a)](()=>{const _0x3c1191=_0x559107;this['_refreshUnitPermission'](_0x2d0da1,_0x4908f8)[_0x3c1191(0x37a)](_0x510436=>this[_0x3c1191(0x3e6)]['get'](_0xd0e18a[_0x3c1191(0x160)])[_0x3c1191(0x254)](_0x510436));}),await this[_0x559107(0x213)](_0x2d0da1,_0x4908f8);}};_0xcb1247(this[_0x291217(0x414)])[_0x291217(0x398)]((0x0,_0x3a34f4[_0x291217(0x2c1)])(({unitId:_0x168cbf})=>!(0x0,_0xd0e18a[_0x291217(0x415)])(_0x168cbf)),(0x0,_0x3a34f4['takeUntil'])(this['dispose$']))[_0x291217(0x35a)](({type:_0x1f25ef,unitId:_0x3383a6})=>{const _0x252aa2=_0x291217;_0x18a848(_0x3383a6,_0x1f25ef)[_0x252aa2(0x37a)](_0x10398e=>this[_0x252aa2(0x3e6)][_0x252aa2(0x271)](_0xd0e18a[_0x252aa2(0x160)])['error'](_0x10398e));});}async[_0x369941(0x213)](_0x487d17,_0x4ff60b){const _0x502fd6=_0x369941;let _0x3d357f=_0x3c68ce(_0x4ff60b);if(_0x3d357f==null)return;let _0x4b0d7d=this[_0x502fd6(0x3e6)][_0x502fd6(0x271)](_0xd0e18a[_0x502fd6(0xb7)]);if(_0x4b0d7d[_0x502fd6(0x393)]({'unitId':_0x487d17,'objectId':_0x487d17,'objectType':_0x3d357f})){await _0x4b0d7d[_0x502fd6(0x2fc)](_0x487d17);return;}let _0x22ad35=this['_getUnitPermissionPoints'](_0x487d17,_0x3d357f);if(!_0x22ad35[_0x502fd6(0x396)])return;let _0x4646ed=await this[_0x502fd6(0xfd)]['allowed']({'objectID':_0x487d17,'objectType':_0x3d357f,'unitID':_0x487d17,'actions':_0x22ad35[_0x502fd6(0x102)](({action:_0x36ddcd})=>_0x36ddcd)});this['_disposed']||this[_0x502fd6(0x304)][_0x502fd6(0x409)](_0x487d17)||!this['_univerInstanceService']['getUnit'](_0x487d17)||_0x4646ed[_0x502fd6(0x3bc)](_0x40b097=>{const _0x143168=_0x502fd6;let _0xb1df9b=_0x40b097[_0x143168(0x1f0)],_0x53db07=_0x40b097[_0x143168(0x297)];_0xb1df9b!=null&&_0x53db07!=null&&_0x22ad35['filter'](_0x4a3e88=>_0x4a3e88[_0x143168(0x1f0)]===_0xb1df9b)[_0x143168(0x3bc)](_0x50d772=>this[_0x143168(0x231)][_0x143168(0x2a6)](_0x50d772['id'],_0x53db07));});}['_getUnitPermissionPoints'](_0x45ef9f,_0x1ae80a){const _0x3421eb=_0x369941;let _0xa21593=[];return this[_0x3421eb(0x231)][_0x3421eb(0x228)]()[_0x3421eb(0x3bc)]((_0x2f946b,_0x3f2542)=>{const _0x39b7d3=_0x3421eb;_0x2f946b[_0x39b7d3(0x35a)](_0x290bf1=>{const _0x3bc47f=_0x39b7d3;_0x290bf1[_0x3bc47f(0x120)]===_0x1ae80a&&_0x3bc47f(0x17f)in _0x290bf1&&_0x290bf1[_0x3bc47f(0x17f)]===_0x45ef9f&&(!(_0x3bc47f(0x23c)in _0x290bf1)||_0x290bf1[_0x3bc47f(0x23c)]===_0x45ef9f)&&_0xa21593[_0x3bc47f(0x3f3)]({'id':_0x3f2542,'action':_0x290bf1['subType']});})['unsubscribe']();}),_0xa21593;}['_updateUnitPermissionPoint'](_0x19ad96,_0x7a7f0e,_0x51fda3,_0x159931){const _0x3b81c1=_0x369941;this['_permissionService'][_0x3b81c1(0x228)]()[_0x3b81c1(0x3bc)]((_0x392714,_0x22a873)=>{const _0x339e33=_0x3b81c1;let _0xcbb64c=!0x1;_0x392714[_0x339e33(0x35a)](_0x10eb5e=>{const _0x11cbcb=_0x339e33;_0xcbb64c=_0x10eb5e[_0x11cbcb(0x120)]===_0x7a7f0e&&_0x10eb5e['subType']===_0x51fda3&&_0x11cbcb(0x17f)in _0x10eb5e&&_0x10eb5e[_0x11cbcb(0x17f)]===_0x19ad96&&(!(_0x11cbcb(0x23c)in _0x10eb5e)||_0x10eb5e[_0x11cbcb(0x23c)]===_0x19ad96);})[_0x339e33(0x370)](),_0xcbb64c&&this[_0x339e33(0x231)][_0x339e33(0x2a6)](_0x22a873,_0x159931);});}};_0x175cf7=_0x5d2da6([_0x2b5d73(0x0,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x1,_0xd0e18a['IUniverInstanceService']),_0x2b5d73(0x2,_0xd0e18a[_0x369941(0xc0)]),_0x2b5d73(0x3,_0xd0e18a['IAuthzIoService']),_0x2b5d73(0x4,(0x0,_0xd0e18a['Inject'])(_0x3677b4)),_0x2b5d73(0x5,(0x0,_0xd0e18a[_0x369941(0x3b5)])(_0x1d0ad8))],_0x175cf7);function _0xcb1247(_0x212604){const _0x4783b5=_0x369941;return(0x0,_0x23047a[_0x4783b5(0x2dc)])(...[_0xd0e18a['UniverInstanceType']['UNIVER_SHEET'],_0xd0e18a[_0x4783b5(0x350)][_0x4783b5(0x341)],_0xd0e18a[_0x4783b5(0x350)]['UNIVER_SLIDE'],_0xd0e18a[_0x4783b5(0x350)]['UNIVER_BOARD'],_0xd0e18a[_0x4783b5(0x350)][_0x4783b5(0xd4)]][_0x4783b5(0x102)](_0x47fa80=>_0x212604[_0x4783b5(0x19a)](_0x47fa80)['pipe']((0x0,_0x3a34f4[_0x4783b5(0x102)])(_0x114dbd=>({'type':_0x47fa80,'unitId':_0x114dbd[_0x4783b5(0x150)][_0x4783b5(0x13c)]()})))));}function _0x3c68ce(_0x51ea92){const _0x203505=_0x369941;switch(_0x51ea92){case _0xd0e18a[_0x203505(0x350)][_0x203505(0x375)]:return _0x5f374c['UnitObject']['Workbook'];case _0xd0e18a['UniverInstanceType'][_0x203505(0x341)]:return _0x5f374c[_0x203505(0x392)][_0x203505(0x403)];case _0xd0e18a[_0x203505(0x350)][_0x203505(0x35e)]:return _0x5f374c[_0x203505(0x392)]['Slide'];case _0xd0e18a['UniverInstanceType'][_0x203505(0x3f1)]:return _0x5f374c[_0x203505(0x392)][_0x203505(0xca)];case _0xd0e18a['UniverInstanceType'][_0x203505(0xd4)]:return _0x5f374c[_0x203505(0x392)][_0x203505(0x211)];default:return;}}let _0x64be=class{constructor(_0x2651f0,_0xdf10e6){const _0x518f0c=_0x369941;this[_0x518f0c(0x3da)]=_0x2651f0,this[_0x518f0c(0xcf)]=_0xdf10e6;}async[_0x369941(0x220)](_0x1f5d30,_0x29d4e3){const _0x4b8b0d=_0x369941;var _0x1546b3;let {unitID:_0x719756,type:_0x14eecc,revision:_0x1f0992=0x0}=_0x29d4e3,_0xcc946e=this[_0x4b8b0d(0x40d)]()+'/'+_0x14eecc+_0x4b8b0d(0x3a9)+_0x719756+_0x4b8b0d(0x2a5)+_0x1f0992,_0x1121b5=(await this[_0x4b8b0d(0xcf)][_0x4b8b0d(0x271)](_0xcc946e))[_0x4b8b0d(0x232)],_0xdd929e=(_0x1546b3=_0x1121b5['snapshot'])==null?void 0x0:_0x1546b3[_0x4b8b0d(0xe1)];if(_0xdd929e){let _0x37de9e=_0xdd929e==null?void 0x0:_0xdd929e[_0x4b8b0d(0x363)];_0xdd929e[_0x4b8b0d(0x363)]=_0x51810d[_0x4b8b0d(0x40f)]['encode']((0x0,_0x51810d['b64DecodeUnicode'])(_0x37de9e)),Object['entries'](_0xdd929e[_0x4b8b0d(0xbb)])[_0x4b8b0d(0x3bc)](([,_0x3bbe71])=>{const _0x4fc45e=_0x4b8b0d;let _0x337e94=_0x3bbe71[_0x4fc45e(0x363)];_0x3bbe71[_0x4fc45e(0x363)]=_0x51810d[_0x4fc45e(0x40f)][_0x4fc45e(0x1a8)]((0x0,_0x51810d[_0x4fc45e(0x3dc)])(_0x337e94));});}return _0x1121b5;}async[_0x369941(0x329)](_0x5bc3d2,_0x1782b7){const _0x17a6e9=_0x369941;let {unitID:_0x29b12a,type:_0x184de0,blockID:_0x404453}=_0x1782b7,_0x3eb9e9=this['_getAPIPrefix']()+'/'+_0x184de0+'/unit/'+_0x29b12a+_0x17a6e9(0x274)+_0x404453;return(await this[_0x17a6e9(0xcf)][_0x17a6e9(0x271)](_0x3eb9e9))[_0x17a6e9(0x232)];}async['getDeserializedSheetBlock'](_0x439252,_0x4967bd){const _0x471873=_0x369941;let {unitID:_0x19675b,type:_0x51b5bc,blockID:_0xa000e3}=_0x4967bd,_0x132dd3=this[_0x471873(0xc6)]()+'/block/'+_0x51b5bc+_0x471873(0x3a9)+_0x19675b+'/block/'+_0xa000e3;return(await this[_0x471873(0xcf)][_0x471873(0x271)](_0x132dd3))[_0x471873(0x232)];}async[_0x369941(0x29a)](_0x52a0bd,_0x411117){const _0x345c60=_0x369941;let {unitID:_0x51622d,type:_0x577bbf,from:_0xa423d9,to:_0x3c656d}=_0x411117,_0x3ee71f=this[_0x345c60(0xc6)]()+'/'+_0x577bbf+'/unit/'+_0x51622d+'/fetchmissing?from='+_0xa423d9+_0x345c60(0x32a)+_0x3c656d;return(await this[_0x345c60(0xcf)]['get'](_0x3ee71f))[_0x345c60(0x232)];}[_0x369941(0x40d)](){const _0x4796fa=_0x369941;return this[_0x4796fa(0x3da)][_0x4796fa(0x3e2)]('SNAPSHOT_URL_KEY')??this['_getAPIPrefix']();}[_0x369941(0xc6)](){const _0x15954b=_0x369941;let _0x21e7bc=this['_configService'][_0x15954b(0x3e2)](_0x2de243);return(_0x21e7bc==null?void 0x0:_0x21e7bc[_0x15954b(0x406)])??_0x15954b(0x27f);}async[_0x369941(0x34d)](_0x47b864,_0x1011ef){const _0x1dae90=_0x369941;let _0x5b8ec0=_0x1dae90(0x189)+_0x1011ef[_0x1dae90(0x120)]+_0x1dae90(0x3a9)+_0x1011ef[_0x1dae90(0x40c)]+_0x1dae90(0x26d);return(await this[_0x1dae90(0xcf)][_0x1dae90(0x271)](_0x5b8ec0,{'params':{'resourceId':JSON[_0x1dae90(0x1c6)](_0x1011ef[_0x1dae90(0x23d)])}}))[_0x1dae90(0x232)];}['saveSnapshot'](){const _0x1cb86c=_0x369941;throw Error(_0x1cb86c(0x292));}[_0x369941(0x334)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x369941(0x1ec)](){const _0xf1faac=_0x369941;throw Error(_0xf1faac(0x292));}[_0x369941(0xd9)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x369941(0x385)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x64be=_0x5d2da6([_0x2b5d73(0x0,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0x1,(0x0,_0xd0e18a['Inject'])(_0x3bebf7[_0x369941(0x14d)]))],_0x64be);let _0x4902c7=class extends _0xd0e18a[_0x369941(0x33f)]{constructor(_0x58208a,_0x8dc604,_0x4f8af6,_0x10a95d,_0x27dfec,_0x1acff2){const _0x4f5a24=_0x369941;super(_0x58208a,_0x8dc604,_0x4f8af6,_0x10a95d),this[_0x4f5a24(0x172)]=_0x27dfec,this[_0x4f5a24(0x2a2)]=_0x1acff2;}['transformUndoRedo'](_0xa4e219,_0x13a0fd){const _0x2b40d1=_0x369941;let _0x1dcbc7=this[_0x2b40d1(0x410)](_0xa4e219);if(_0x1dcbc7)try{let _0x11d0ad=this[_0x2b40d1(0x320)](_0x1dcbc7,_0x13a0fd);this[_0x2b40d1(0x167)](_0xa4e219,_0x11d0ad);}catch(_0x5186cb){this[_0x2b40d1(0x2a2)]['error']('[CollaborationUndoRedoService]',_0x5186cb),this['_clearUndo'](_0xa4e219);}let _0x57adb1=this[_0x2b40d1(0x14c)](_0xa4e219);if(_0x57adb1)try{let _0x5b9def=this[_0x2b40d1(0x320)](_0x57adb1,_0x13a0fd);this[_0x2b40d1(0x1ff)](_0xa4e219,_0x5b9def);}catch(_0xa71299){this[_0x2b40d1(0x2a2)][_0x2b40d1(0x254)](_0xa71299),this[_0x2b40d1(0x402)](_0xa4e219);}}[_0x369941(0x156)](_0x529f8c){const _0x406dd2=_0x369941;let _0x38fd53=this['_getUndoStack'](_0x529f8c);_0x38fd53&&(_0x38fd53[_0x406dd2(0x396)]=0x0,this['_updateStatus']());}['_clearRedo'](_0xbc03f){const _0x3efd6c=_0x369941;let _0x36f1a5=this[_0x3efd6c(0x14c)](_0xbc03f);_0x36f1a5&&(_0x36f1a5[_0x3efd6c(0x396)]=0x0,this[_0x3efd6c(0x157)]());}[_0x369941(0x167)](_0x2cbb03,_0x222492){const _0x2cc64e=_0x369941;this[_0x2cc64e(0x336)][_0x2cc64e(0x225)](_0x2cbb03,_0x222492),this[_0x2cc64e(0x157)]();}[_0x369941(0x1ff)](_0xda04c3,_0x5584af){const _0x2f2889=_0x369941;this[_0x2f2889(0x207)][_0x2f2889(0x225)](_0xda04c3,_0x5584af),this[_0x2f2889(0x157)]();}[_0x369941(0x320)](_0x393244,_0xf7b801){const _0x4b6490=_0x369941;let _0x51c193=[],_0x30b683=_0xf7b801,_0x1d195f=_0xf7b801;for(let _0x2b2b6b=_0x393244['length']-0x1;_0x2b2b6b>=0x0;_0x2b2b6b--){let {unitID:_0x35e44e,undoMutations:_0x32a59e,redoMutations:_0x141d39}=_0x393244[_0x2b2b6b],_0x227abf=this['_transformService']['transformMutationsWithChangeset'](_0x30b683,_0x32a59e),_0x50a644=this['_transformService'][_0x4b6490(0xc9)](_0x1d195f,_0x141d39);if((0x0,_0x51810d['isTransformMutationsWithChangesetFailure'])(_0x227abf)||(0x0,_0x51810d[_0x4b6490(0x2dd)])(_0x50a644)){this[_0x4b6490(0x2a2)][_0x4b6490(0x254)](_0x4b6490(0x16b),_0x4b6490(0x1ba),_0x227abf,_0x50a644);break;}_0x30b683=_0x227abf[_0x4b6490(0xd1)],_0x1d195f=_0x50a644['c1Prime'],_0x51c193[_0x4b6490(0x3f3)]({'unitID':_0x35e44e,'undoMutations':_0x227abf[_0x4b6490(0x3e8)],'redoMutations':_0x50a644[_0x4b6490(0x3e8)]});}return _0x51c193[_0x4b6490(0x12f)]();}};_0x4902c7=_0x5d2da6([_0x2b5d73(0x0,_0xd0e18a[_0x369941(0x390)]),_0x2b5d73(0x1,_0xd0e18a[_0x369941(0x40b)]),_0x2b5d73(0x2,_0xd0e18a['IContextService']),_0x2b5d73(0x3,_0xd0e18a[_0x369941(0x212)]),_0x2b5d73(0x4,_0x51810d[_0x369941(0x275)]),_0x2b5d73(0x5,_0xd0e18a[_0x369941(0x160)])],_0x4902c7);let _0x4e0921=class extends _0xd0e18a[_0x369941(0x3ff)]{constructor(_0x1d77aa=_0x2cf620,_0x2bc14d,_0x3a696f,_0x2729da){const _0x5355b0=_0x369941;super(),this['_config']=_0x1d77aa,this[_0x5355b0(0x2a2)]=_0x2bc14d,this[_0x5355b0(0x3e6)]=_0x3a696f,this[_0x5355b0(0x3da)]=_0x2729da;let {..._0x2dd275}=(0x0,_0xd0e18a[_0x5355b0(0x2dc)])({},_0x2cf620,this[_0x5355b0(0x234)]);if(!_0x2dd275[_0x5355b0(0xf7)])throw Error(_0x5355b0(0x28a));this[_0x5355b0(0x234)]=_0x2dd275,this['_configService'][_0x5355b0(0x13f)](_0x2de243,_0x2dd275);}[_0x369941(0x158)](){const _0x43434f=_0x369941;this[_0x43434f(0x3da)]['setConfig'](_0xd0e18a[_0x43434f(0x2b0)],this[_0x43434f(0x234)][_0x43434f(0x201)]??[]),this[_0x43434f(0xe4)](),this[_0x43434f(0x1f3)]();}[_0x369941(0xe4)](){const _0x34cf03=_0x369941;var _0x3ba18e,_0x222865;this[_0x34cf03(0x3e6)]['has'](_0xd0e18a[_0x34cf03(0x29d)])&&this[_0x34cf03(0x2a2)][_0x34cf03(0x254)](_0x34cf03(0x35b),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x38af2d=(0x0,_0xd0e18a[_0x34cf03(0x35c)])([[_0xd0e18a[_0x34cf03(0x29d)],{'useClass':_0x4902c7}],[_0x521694,{'useValue':_0x95542e()}],[_0x3677b4],[_0x59a552],[_0x2d04e5],[_0x57ff61],[_0x3bbf21],[_0xe78fd8],[_0x175cf7],[_0x1d0ad8],[_0x4338fb],[_0x286a91,{'useClass':this[_0x34cf03(0x234)][_0x34cf03(0xf7)]}],[_0x51810d['ISnapshotServerService'],{'useClass':_0x64be}],[_0xd0e18a['IAuthzIoService'],{'useClass':_0x23e5ee}],[_0xd0e18a[_0x34cf03(0x413)],{'useClass':_0x3744a9}],[_0x4ef5f0,{'useClass':_0x277bb9}],[_0xd0e18a[_0x34cf03(0xf3)],{'useClass':_0x1b4b50}],[_0x5ab613],[_0x15ccef]],(_0x3ba18e=this[_0x34cf03(0x234)])==null?void 0x0:_0x3ba18e[_0x34cf03(0x15e)]);if(!((_0x222865=this[_0x34cf03(0x234)])!=null&&_0x222865[_0x34cf03(0x2a4)])){let _0x480018=_0x38af2d[_0x34cf03(0x1e7)](([_0x47d4d9])=>_0x47d4d9===_0x12ef16);_0x480018!==-0x1&&_0x38af2d['splice'](_0x480018,0x1);}(0x0,_0xd0e18a[_0x34cf03(0x3ea)])(this[_0x34cf03(0x3e6)],_0x38af2d);}[_0x369941(0x1f3)](){const _0x4cbbf2=_0x369941;var _0xdb99e,_0x263044;if(this[_0x4cbbf2(0x3e6)][_0x4cbbf2(0x271)](_0x3bebf7[_0x4cbbf2(0x14d)])[_0x4cbbf2(0x229)]({'priority':0x14,'interceptor':(0x0,_0x3bebf7[_0x4cbbf2(0x188)])({'maxParallel':0x6})}),!((_0xdb99e=this[_0x4cbbf2(0x234)])!=null&&_0xdb99e[_0x4cbbf2(0x35d)])){var _0x1eb97d;(_0x1eb97d=this[_0x4cbbf2(0x3e6)][_0x4cbbf2(0x271)](_0x2c8a38,_0xd0e18a[_0x4cbbf2(0x192)][_0x4cbbf2(0x174)]))==null||_0x1eb97d[_0x4cbbf2(0x369)]();}(_0x263044=this[_0x4cbbf2(0x234)])!=null&&_0x263044[_0x4cbbf2(0x136)]&&(0x0,_0xd0e18a[_0x4cbbf2(0x38a)])(this[_0x4cbbf2(0x3e6)],[[_0x57ff61]]),(0x0,_0xd0e18a[_0x4cbbf2(0x38a)])(this['_injector'],[[_0x3bbf21],[_0x5ab613],[_0x175cf7]]);}};_0xf185b(_0x4e0921,_0x369941(0x32d),_0x369941(0x209)),_0xf185b(_0x4e0921,_0x369941(0x1d5),_0x203063),_0xf185b(_0x4e0921,_0x369941(0x2d5),_0x1cd0b2),_0x4e0921=_0x5d2da6([(0x0,_0xd0e18a[_0x369941(0x288)])(_0x2607e7['UniverLicensePlugin'],_0x3bebf7[_0x369941(0x21f)],_0x51810d[_0x369941(0x2c7)]),_0x2b5d73(0x1,_0xd0e18a[_0x369941(0x160)]),_0x2b5d73(0x2,(0x0,_0xd0e18a['Inject'])(_0xd0e18a[_0x369941(0x36a)])),_0x2b5d73(0x3,_0xd0e18a[_0x369941(0x212)])],_0x4e0921),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x1db),{'enumerable':!0x0,'get':function(){return _0x23e5ee;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x190),{'enumerable':!0x0,'get':function(){return _0x2fc73c;}}),Object['defineProperty'](_0x38e03f,_0x369941(0x15a),{'enumerable':!0x0,'get':function(){return _0x1a8dbf;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x197),{'enumerable':!0x0,'get':function(){return _0x46c15d;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0xfa),{'enumerable':!0x0,'get':function(){return _0x13f3d3;}}),_0x38e03f[_0x369941(0x3fa)]=_0x2de243,Object['defineProperty'](_0x38e03f,_0x369941(0x20f),{'enumerable':!0x0,'get':function(){return _0x277bb9;}}),Object[_0x369941(0x404)](_0x38e03f,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x5ab613;}}),Object['defineProperty'](_0x38e03f,_0x369941(0x3c4),{'enumerable':!0x0,'get':function(){return _0x4a2b8c;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0xc5),{'enumerable':!0x0,'get':function(){return _0x3744a9;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x107),{'enumerable':!0x0,'get':function(){return _0x362e75;}}),Object[_0x369941(0x404)](_0x38e03f,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x3677b4;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x1fb),{'enumerable':!0x0,'get':function(){return _0x1320c7;}}),_0x38e03f['CollaborationStatus']=_0x2147f5,_0x38e03f[_0x369941(0x296)]=_0x3e968d,_0x38e03f[_0x369941(0x1d2)]=_0x1d0ad8,Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x21e),{'enumerable':!0x0,'get':function(){return _0x4902c7;}}),_0x38e03f[_0x369941(0x330)]=_0xe78fd8,Object['defineProperty'](_0x38e03f,_0x369941(0x345),{'enumerable':!0x0,'get':function(){return _0x39876b;}}),_0x38e03f[_0x369941(0x383)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x38e03f[_0x369941(0x256)]=_0x369941(0x265),_0x38e03f[_0x369941(0x20d)]=_0x369941(0x2f7),Object['defineProperty'](_0x38e03f,_0x369941(0x13e),{'enumerable':!0x0,'get':function(){return _0x4338fb;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x3b0),{'enumerable':!0x0,'get':function(){return _0x572cd7;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x367),{'enumerable':!0x0,'get':function(){return _0x44a720;}}),_0x38e03f['HEARTBEAT_INTERVAL_KEY']=_0x369941(0x269),_0x38e03f['HEARTBEAT_TIMEOUT_KEY']=_0x369941(0x3ca),_0x38e03f[_0x369941(0x21a)]=_0x4ef5f0,_0x38e03f[_0x369941(0x378)]=_0x521694,_0x38e03f[_0x369941(0x3e7)]=_0x286a91,_0x38e03f['ILocalCacheService']=_0x2c8a38,_0x38e03f[_0x369941(0x1c2)]=_0x48d92c,_0x38e03f['ISingleActiveUnitService']=_0x12ef16,_0x38e03f['LOCAL_CACHE_INTERVAL']=0x3e8,_0x38e03f[_0x369941(0x1d0)]=_0x369941(0x145),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x1c3),{'enumerable':!0x0,'get':function(){return _0x59a552;}}),Object['defineProperty'](_0x38e03f,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x1b4b50;}}),Object[_0x369941(0x404)](_0x38e03f,'OfflineState',{'enumerable':!0x0,'get':function(){return _0x2e8d31;}}),Object['defineProperty'](_0x38e03f,_0x369941(0x412),{'enumerable':!0x0,'get':function(){return _0x472779;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x15c),{'enumerable':!0x0,'get':function(){return _0x195d73;}}),_0x38e03f['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x38e03f[_0x369941(0x3fb)]=_0x369941(0x24e),_0x38e03f[_0x369941(0x286)]=_0x3283c8,Object['defineProperty'](_0x38e03f,_0x369941(0x2a8),{'enumerable':!0x0,'get':function(){return _0x4e6415;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x2b4),{'enumerable':!0x0,'get':function(){return _0x2d04e5;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x142),{'enumerable':!0x0,'get':function(){return _0x4b3566;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x170),{'enumerable':!0x0,'get':function(){return _0x64be;}}),Object[_0x369941(0x404)](_0x38e03f,_0x369941(0x343),{'enumerable':!0x0,'get':function(){return _0x348178;}}),_0x38e03f['UnitStatus']=_0x96aeb2,Object[_0x369941(0x404)](_0x38e03f,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return _0x4e0921;}}),_0x38e03f[_0x369941(0x37c)]=_0x95542e,_0x38e03f[_0x369941(0x27e)]=_0x18792e,_0x38e03f[_0x369941(0x372)]=_0x1f8124,_0x38e03f[_0x369941(0x199)]=_0x5dd052;}));function _0x48aa(){const _0x5644bf=['_undoStacks','unitDisposed$','getMemberID','Edit','fetchMiss','/universer-api/stream/file/upload','getValue','_changesetSessionId','CHANGESET_SHOULD_RETRY','LocalUndoRedoService','objectActions','UNIVER_DOC','blockRanges','SyncedState','RichTextEditingMutation','ConflictState','univer-pro.collaboration-client.network-condition.service','_collaborationPaused','includes','replace','_clearHeartbeatTimer','save\x20fail\x20reason\x20is\x20','number\x20expected,\x20got\x20','getResourcesRequest','executeCommand','UniverNetwork','UniverInstanceType','c2Prime','@univerjs-pro/license','_clearScheduledTask','_imageSourceCache','userID','@univerjs-pro/collaboration-client','[CollaborationState]:\x20apply\x20error!','getUnit','removeMember','subscribe','[UniverCollaborationClientPlugin]','mergeOverrideWithDependencies','enableOfflineEditing','UNIVER_SLIDE','_awaitingChangeset','_init','every','localCacheService','originalMeta','origin','417314eIPhLQ','Rectangle','FetchingMissState','decorate','disableLocalCache','Injector','_adapter','values','_cfgEnableObjInherit','fetching\x20missing\x20changesets\x20from\x20','NEW_CHANGESETS','unsubscribe','UniverProLicense','getLocalCacheKey','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','eventID','UNIVER_SHEET','_snapshotServerService','OTHER_CLIENT_EDITING','ICollaborationClientAdapterService','_syncEditingCollabCursor','catch','capture','createUniverCollaborationAdapter','collaboration-client.config','synced','memberID','_getConfig','min','?url=','DEFAULT_COLLAB_WEB_SOCKET_URL','session.room-not-exists','getLatestCsReqIdBySid','onRemoteChangeset','getRoom','_acknowledgeAwaiting','sessionStatus','touchDependencies','GLOBAL_ROOMS_CNT_EXCEEDS','loginUrlKey','isTransformMutationsWithChangesetSuccess','cfgEnableObjInherit','endsWith','IUniverInstanceService','target','UnitObject','supports','onTransformState','asObservable','length','setShowComponents','pipe','submit\x20changeset\x20error!','data','collaboration_new_changeset','reject','&assign=','session','_socketService','BYTES_PER_ELEMENT','transformSelections','_listenToNetworkCondition','_sessions','getCfgEnableObjInherit','method','leaveEvent','_singleActiveUnitService','_resendTimeout','/unit/','_collaborationUIEventService','_snapshotService','updateMember','CompressMutationService','2579196DHLboo','indexOf','DocCollaborationEntity','code','[OfflineState]:\x20received\x20changeset.','MentionType','src','Inject','&source=','close$','output','onRemoteAck','_transformUndoredo','unknown','forEach','AAD','collaboration-client.local-cache-service','[CollaborationSessionService]','_status$','_docStateChangeManagerService','_checkMissing','_createInitialStateImpl','CollaborationEntity','onTransformIME','commit','floor','_unitLoaded$','UnitEmbedded','HEARTBEAT_TIMEOUT','uuidv4','_showConflictNotification','_lockTransition','_onRemoteRejected','assign','objects','startTime','@univerjs/protocol','CombCmd','_getDownloadEndpointURL','_onConflict','roomInfos','delay','_socketChannels','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_configService','collabWebSocketUrl','b64DecodeUnicode','collaboration-client.auth.needGotoLoginAlert','getActiveSheet','FileSource','_startCollaboration','UniverSheets','getConfig','UUID','/allowed','UNIVER_PDF','_injector','ICollaborationSocketService','m2Prime','post','registerDependencies','_userManagerService','list','SUCCUSS','ws://127.0.0.1:8000/universer-api/comb/connect','loadUnit','concatMap','UNIVER_BOARD','stopTime','push','_onFetchMissResult','timeoutTimer','univer-pro.collaboration-client-socket-service','actions','_event$','Subject','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RETRY_CONNECTING_MAX_COUNT_KEY','_scheduleCollaborationTimeoutTimer','/new_changes','_telemetryService','Plugin','focused$','operators','_clearRedo','Document','defineProperty','ImageSourceType','snapshotServerUrl','rxjs','InsertSheetMutation','has','onStateChange','ICommandService','unitID','getSnapshotAPIPath','putCollaborators','textEncoder','_getUndoStack','LEAVE','PdfCollaborationEntity','IImageIoService','_univerInstanceService','isInternalEditorID','2758025yXzTgT','_change$','/object','_createHandler','_handler','_upload','PERSON','reqId','number','toggleOnline','@univerjs/sheets','ObjectPermissionService','updateCollaborator','state$','withCredentials','sheets','/object/','trim','JOIN','file','IPermissionService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/universer-api/authz','append','PERMISSION_REJ','CollaborationImageIoService','_getAPIPrefix','result','_throwTelemetryCollaborationNewChangeset','transformMutationsWithChangeset','Board','_joinRoom','CHANGESET_ACK','subarray','session.room-full','_httpService','SUBMIT_CHANGESET_TIMEOUT','c1Prime','send','SHOULD_CLOSE_CONN','UNIVER_BASE','_commentService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','saveAttachment','copyFileMeta','mapDocumentTypeToUniverInstanceType','change$','permissionRejEvent','isView','reconnect','cmd','take','workbook','PERMISSION_DENIED','_onConnectionOpen','_registerDependencies','getCurrentRevOfUnit','loadUnitOfRevision','accept','Optional','\x20-\x20','_resolveSessionIdentity','getDrawingImageAllowSize','update','retryConnectingTimer','JOIN_ROOM_FAILED','Workbook','_submitChangeset','USERS_LEAVE','_clearTimeoutTimer','IMentionIOService','ISnapshotServerService','loadPdf','open$','socketService','1.0.0-rc.0','_emitMembers','BoardCollaborationEntity','crypto.getRandomValues\x20must\x20be\x20defined','_pendingMutations','_authzIoService','POST','[PendingState]:\x20received\x20rejection.','prototype','_roomMembers','map','DEFAULT_FILE_NAME','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','resolveUnit','_localCacheService','CollaborationSession','transformUndoRedo','_collaborationTimeoutTimer','RxDisposable','NOT_COLLAB','getInterceptPoints','ONLINE','[CollaborationEntity]','interceptor','_transformRemoteChangesetByStateCache','backupOfflineData','deepClone','onTransformSelections','_isEchoedAwaitingChangeset','_onJoinRoomEvent','JOIN_ROOM_FULL','loadSlide','name','joinEvent','transformChangesets','onTransformRemoteChangesetByIMECache','COMMENT_UPDATE','getUploadOptions','entityInit$','Error\x20on\x20receiving\x20event','type','patch','addImageSourceCache','missingChangesets','onMutationExecutedForCollab','CONFLICT','_waitForHeartbeatResponse','_removeRoom','_updateState','getWorkbookSelections','_sendHeartbeat','shareReplay','_initRequestHeader','_disableEditing','_networkConditionService','reverse','_schedule','_socketMessageSubscription','toLocal','maxSize','UniverDrawing','sessionStatus$','enableAuthServer','getTypeOfUnitDisposed$','HEARTBEAT','fill','[OfflineState]:\x20received\x20rejection.','JOIN_ROOM_PERMISSION_DENIED','getUnitId','href','DataLoaderService','setConfig','object','unit-cache-','SlideCollaborationEntity','_onRecvEvent','event$','LOCAL_CACHE_INTERVAL','LIVESHARE_FETCH_OPERATIONS','changesets','headers','_applyRemoteChangeset','_transformAndApplyRemoteChangeset','WorkbookEditablePermission','_getRedoStack','HTTPService','_getSendChangesetTimeout','roles','unit','isCompositionEnd','baseRev','function','changeset','session.join-failed','_clearUndo','_updateStatus','onStarting','getUnitStatus$','AwaitingWithPendingState','parseProtocolChangeset','PendingState','FileId','override','title','ILogService','max','init','selections','socketReady','generateRandomId','awaiting','_substituteUndoStack','SOCKET_FAILED_RETRY','_replayCachedMutations','_localeService','[CollaborationUndoRedoService]','JOIN_ROOM_NOT_EXISTS','subject','_sessionStatus$','loadOfflineData','SnapshotServerOverHTTPService','confirm','_transformService','_getLoginPath','OPTIONAL','_commentUpdate$','_HTTPService','\x20of\x20length\x20','MSG_FOR_ERROR','disposeWithMe','appendMutation','revision','getSheetId','_sheetTransformSelectionsService','range','unitId','hostname','commentUpdate$','unitType','csRejEvent','unitInfo$','constructor','/-/object/list','saveImage','ThresholdInterceptorFactory','/universer-api/snapshot/','_updateLocalCache','_incrementRevisionNumber','_onRemoteACK','AWAITING_WITH_PENDING','_compressMutationService','_shouldReportTelemetry','AwaitingState','charCodeAt','Quantity','Wrong\x20sbox\x20length','[SyncedState]:\x20received\x20rejection.','onload','_tryReconnect','BaseCollaborationEntity','getCollabEntity$','serializeCombRequest','getTypeOfUnitAdded$','uploadFileServerUrl','_revisionService','_rescheduleHeartbeat','awaiting_with_pending','_telemetryInfo','liveShareNewHost','key','string','_createSession','CmdRspCode','nonceLength','_sendingTimer','_fetchMissChangesets','encode','JSONX','INGEST','USERS_ENTER','@univerjs/telemetry','_sessionChannels','now','_entities','_transitionLocked','_initCloseConn','LIVESHARE_NEW_HOST','_transformIMECache','debug','_commandService','_handleRemoteChangesets','_onRemoteRetry','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','onMissingChangesets','transformStack\x20failed!','_collabSessionService','_createSocket','_eventService','8jiOFEO','_replaceFileID','@univerjs-pro/collaboration','_socket','INetworkConditionService','MemberService','awaitingChangeset','text-x','stringify','AddSlidePageMutation','hasOwnProperty','readAsDataURL','SetSelectionsOperation','getCollabEntity','socket$','/collaborator','create','batchAllowed','LOCAL_CACHE_INTERVAL_KEY','_getSignURL','CollaborationUIEventService','base-ui.attachment-io.service','emitEvent','packageName','UserManagerService','sid','uniscriptRunEvent','HELLO','_exhaustRemoteChangesetQueue','AuthzIoHttpService','complete','?size=','resend','_transformSelections','ErrorCode','CHANGESET_REJ','IDLE','LocaleService','onSyncEditingCollabCursor','SheetsSelectionsService','_members$','findIndex','Disposable','symbol','getRandomValues','csShouldRetryEvent','saveChangeset','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UPDATE_PERMISSION_OBJ','_handlerCallback','action','_toggleOffline','ERROR_IMAGE_TYPE','_initDependencies','loadSheet','unitId\x20is\x20not\x20found','then','_updateUnitPermissionPoint','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_unitInfo$','CollaborationSocketService','createCollaborator','startsWith','FETCH_MISSING','_substituteRedoStack','failed\x20to\x20apply\x20missed\x20changesets!','objectPermissionTypes','UNISCRIPT_RUN','endpoint','COMPRESS_MUTATION_SEND','Tools','dispose','_redoStacks','_waitCount','UNIVER_COLLABORATION_CLIENT_PLUGIN','_state','url','dispose$','DEFAULT_WS_SESSION_TICKET_URL','loadBase','CollaborationAttachmentIoService','OTHER_CLIENTS_EDITING','Base','IConfigService','_refreshUnitPermission','_doCreateSocket','socketMessageSubscription','joinRsp','Univer','clearUnit','readyForCollab','IAttachmentIoService','_onConnectionFailed','reduce','_getCurrentRevision','CollaborativeUndoRedoService','UniverNetworkPlugin','getUnitOnRev','@univerjs-pro/slides','[DataLoaderService]','OFFLINE','takeUntil','set','AWAITING','ERROR_IMAGE','getAllPermissionPoint','registerHTTPInterceptor','call','BehaviorSubject','EnsureSlideMasterPageMutation','from','_decreaseWaiting','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','objectID','_permissionService','body','offline','_config','DocStateChangeManagerService','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','_collaborationSessionService','tables','_maxTotalRetryTimeout','loadBoard','UniverProCollaborationClient','objectId','resourceIDs','Module','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','UPDATE_CURSOR','_onOffline','univer-pro.collaboration-client-adapter-service','_isPermissionRej','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','columnGroups','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','getMember','collabSubmitChangesetUrl','_sender','1898561mkoRRX','byteOffset','430320hVWlKv','toRemote','RETRY_CONNECTING_MAX_COUNT','LIVESHARE_REQUEST_HOST','\x20to\x20','clear','not_collab','toggleOffline','error','BASE64','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_onCombEvent','_pendingSessions','upload','textRanges','sendHeartbeatTimer',',\x20got\x20','4ekcvsF','parseChangesetToProtocol','PENDING','_clearCollaborationTimeoutTimer','_initUnitPermissionChange','_changesetReqId','createIdentifier','avatar','/universer-api/uniscript','@univerjs/docs','ImageUploadStatusType','unitLoaded$','HEARTBEAT_INTERVAL','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','getFocusedUnit','editingUnit','/resources','telemetry\x20info\x20is\x20not\x20initialized','requireSession','cipher\x20output\x20not\x20supported','get','RevisionService','closeSession','/block/','ITransformService','UniverCore','status$','editing\x20status\x20changed\x20to','_members',',\x20got:\x20','disablePadding','pauseCollaboration','__Key__','deserializeToCombResponse','/universer-api/snapshot','_scheduleCompleteTimestamp','fromCollab','default','Failed\x20to\x20update\x20permission\x20point','connection\x20error','onPrepareTransformSelections','SessionStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','DependentOn','getCurrentUser','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','SOCKET_FAILED','candidateSocket','onMissedChangesetFetched','buffer','SUBMIT_CHANGESET','toDisposable','_instanceService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getCtorByUniverInstanceType','onSendChangeset','decrypt','CollaborationUIEventId','allowed','ITelemetryService','COMPRESS_MUTATION_APPLY','fetchMissingChangesets','RECV','_getAPIPrefixPath','IUndoRedoService','@univerjs/network','_tryEnsureSocket','onTransformRemoteChangesetByStateCache','_onRemoteChangeset','_logService','_prepareTransformSelections','enableSingleActiveInstanceLock','/rev/','updatePermissionPoint','SnapshotService','SheetCollaborationEntity','localUnitId','x-univer-host','CommandType','@univerjs/core','updateOfflineData','some','_acknowledgedAwaitingRevision','OBJECT_PERMISSION_CONFIG_KEY','size','_resendWithTimeout','_unlockTransition','SheetTransformSelectionsService','routeKey','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_remoteChangesetQueue','_roomCreated$','resolveWithBasePath','FETCH_MISS','authzUrl','_type','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[CollaborationSession]','initWorkbookPermissionChange','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','filter','_state$','_hasSessionsForEndpoint','setCfgEnableObjInherit','endpointKey','isTransformChangesetsSuccess','UniverCollaborationPlugin','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','CollaborationEvent','slice','_queuedRemoteChangesets','params','MergeInterceptorFactory','waitForRoom$','error$','LIVESHARE_OPERATION','commentUpdateEvent','addHandlerCallback','UniverProtocol','People','version','_toggleOnline','_entityInit$','resolve','MUTATION','byteLength','_stopTelemetryCollaborationNewChangeset','merge','isTransformMutationsWithChangesetFailure','incrementRevOfUnit','_disposed','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','encrypt','attachment','setWaitCount','getUnitType','objectType','fetch_missing','_undoRedoService','localeService','status','_executeRemoteChangeset','toString','UnitAction','delete','onlyLocal','sendChangesetTimeout','string\x20expected','pending','location','isPermissionRej','/universer-api/comb','CLOSE_ROOM','/universer-api/file/{fileID}/sign-url','/universer-api/user/session-ticket','duration','_transformRemoteChangesetByIMECache','_onUserLeave','_acknowledgeAwaitingIfReady','refreshUnit','_getUploadFileURL','listCollaborators','close','next','add','226662YgNdRY','find','_closedUnits','equals','_identity','SYNCED','_memberService','mutations','session.room-permission-denied','fetchThroughInterceptors','onRemoteRej','retryCount','onRemoteRetry','ISocketService','_resendTimer','_initMergeInterceptor','_clearRetryConnectingTimer','downloadEndpointUrl','@univerjs/drawing','__splitChunk__','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','message$','_onLocalMutation','compose','NO_OTHER_CLIENTS_EDITING','LIVESHARE_TERMINATE','onCommentUpdate','infoRsp','[OfflineState]:\x20received\x20acknowledgement.','univer-pro.collaboration-client.single-active-unit-service','_transformStack','isArray','{fileID}','HTTPRequest','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','4319928WOdkPA','getTime','PSEUDO_FETCH_MISSING_RESULT','createSocket','getSheetBlock','&to=','exports','_getSocketChannel','pluginName','refreshPermission','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','CommentService','put','requestParams','conflict','updateSnapshot','createInstance'];_0x48aa=function(){return _0x5644bf;};return _0x48aa();}
1
+ (function(_0x5d41f9,_0x1f3449){const _0x557d7b=_0x328a,_0x2069f1=_0x5d41f9();while(!![]){try{const _0xde426a=-parseInt(_0x557d7b(0x29d))/0x1+-parseInt(_0x557d7b(0x2d3))/0x2+parseInt(_0x557d7b(0x359))/0x3*(-parseInt(_0x557d7b(0x2d5))/0x4)+-parseInt(_0x557d7b(0x16d))/0x5+-parseInt(_0x557d7b(0x38f))/0x6*(-parseInt(_0x557d7b(0x22a))/0x7)+parseInt(_0x557d7b(0x37b))/0x8*(parseInt(_0x557d7b(0x297))/0x9)+parseInt(_0x557d7b(0x41c))/0xa;if(_0xde426a===_0x1f3449)break;else _0x2069f1['push'](_0x2069f1['shift']());}catch(_0x1a442e){_0x2069f1['push'](_0x2069f1['shift']());}}}(_0x3671,0xbb312),function(_0x3e0c36,_0x23a2f7){const _0x10629f=_0x328a;typeof exports==_0x10629f(0x26e)&&typeof module<'u'?_0x23a2f7(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define==_0x10629f(0x474)&&define[_0x10629f(0x3f7)]?define([_0x10629f(0x1b6),_0x10629f(0x367),_0x10629f(0x27c),_0x10629f(0x156),_0x10629f(0x1d5),_0x10629f(0x374),_0x10629f(0x3d1),_0x10629f(0x2df),_0x10629f(0x263),_0x10629f(0x246),_0x10629f(0x1bc),_0x10629f(0x24c),_0x10629f(0x1ee)],_0x23a2f7):(_0x3e0c36=typeof globalThis<'u'?globalThis:_0x3e0c36||self,_0x23a2f7(_0x3e0c36[_0x10629f(0x288)]={},_0x3e0c36['UniverProCollaboration'],_0x3e0c36[_0x10629f(0x153)],_0x3e0c36['UniverDocs'],_0x3e0c36[_0x10629f(0x119)],_0x3e0c36['rxjs'],_0x3e0c36[_0x10629f(0x1b2)],_0x3e0c36[_0x10629f(0x3bd)],_0x3e0c36[_0x10629f(0x374)]['operators'],_0x3e0c36[_0x10629f(0x1d9)],_0x3e0c36[_0x10629f(0x285)],_0x3e0c36[_0x10629f(0x125)],_0x3e0c36[_0x10629f(0x40f)]));}(this,function(_0x27ec94,_0x5199be,_0x4b2515,_0x120ed0,_0x4ea268,_0xccd21e,_0x349630,_0x3ca46c,_0x2c33e8,_0x471a79,_0x530da8,_0x3ed42b,_0x443efc){const _0x9884d2=_0x328a;Object[_0x9884d2(0x1ce)](_0x27ec94,Symbol['toStringTag'],{'value':_0x9884d2(0x3a0)});let _0x3c0330=_0x9884d2(0x3c1),_0xa070fb={};function _0x3edac7(_0x2f3b25){const _0x284ec1=_0x9884d2;return JSON[_0x284ec1(0x3ee)](_0x2f3b25)['length'];}function _0xbbfc1d(_0x334e0c){'@babel/helpers - typeof';const _0x113da6=_0x9884d2;return _0xbbfc1d=typeof Symbol==_0x113da6(0x474)&&typeof Symbol[_0x113da6(0x37e)]==_0x113da6(0x3ab)?function(_0x1f0765){return typeof _0x1f0765;}:function(_0x2da0db){const _0x5ad084=_0x113da6;return _0x2da0db&&typeof Symbol==_0x5ad084(0x474)&&_0x2da0db[_0x5ad084(0x11a)]===Symbol&&_0x2da0db!==Symbol['prototype']?'symbol':typeof _0x2da0db;},_0xbbfc1d(_0x334e0c);}function _0x1685ec(_0x4449c8,_0x5f1454){const _0x3daeb4=_0x9884d2;if(_0xbbfc1d(_0x4449c8)!=_0x3daeb4(0x26e)||!_0x4449c8)return _0x4449c8;var _0x312b62=_0x4449c8[Symbol[_0x3daeb4(0x28a)]];if(_0x312b62!==void 0x0){var _0x516cd9=_0x312b62[_0x3daeb4(0x43d)](_0x4449c8,_0x5f1454||'default');if(_0xbbfc1d(_0x516cd9)!=_0x3daeb4(0x26e))return _0x516cd9;throw TypeError(_0x3daeb4(0x129));}return(_0x5f1454===_0x3daeb4(0x212)?String:Number)(_0x4449c8);}function _0x2c1259(_0x805b6c){const _0x1c366c=_0x9884d2;var _0xefed27=_0x1685ec(_0x805b6c,'string');return _0xbbfc1d(_0xefed27)==_0x1c366c(0x3ab)?_0xefed27:_0xefed27+'';}function _0x60128a(_0x32986f,_0x46e5eb,_0x9c5410){const _0x5c2cf0=_0x9884d2;return(_0x46e5eb=_0x2c1259(_0x46e5eb))in _0x32986f?Object[_0x5c2cf0(0x1ce)](_0x32986f,_0x46e5eb,{'value':_0x9c5410,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32986f[_0x46e5eb]=_0x9c5410,_0x32986f;}let _0x491b70=function(_0x5e0f1b){const _0x163610=_0x9884d2;return _0x5e0f1b['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x5e0f1b[_0x163610(0x1f9)]=_0x163610(0x1f9),_0x5e0f1b[_0x163610(0x296)]=_0x163610(0x296),_0x5e0f1b['CONFLICT_CACHE_CLEAR_FAILED']=_0x163610(0x260),_0x5e0f1b[_0x163610(0x24a)]=_0x163610(0x24a),_0x5e0f1b['CLOSE_ROOM']=_0x163610(0x345),_0x5e0f1b[_0x163610(0x44e)]=_0x163610(0x44e),_0x5e0f1b['SOCKET_FAILED_RETRY']=_0x163610(0x3a2),_0x5e0f1b[_0x163610(0x163)]=_0x163610(0x163),_0x5e0f1b[_0x163610(0x3db)]='SUBMIT_CHANGESET_TIMEOUT',_0x5e0f1b;}({});var _0xeca6ce=class{constructor(){const _0x305bfd=_0x9884d2;_0x60128a(this,_0x305bfd(0x3f8),new _0xccd21e[(_0x305bfd(0x200))]()),_0x60128a(this,'event$',this[_0x305bfd(0x3f8)]['asObservable']());}[_0x9884d2(0x1db)](_0x229be6){const _0x3b4597=_0x9884d2;this[_0x3b4597(0x3f8)][_0x3b4597(0x17e)](_0x229be6);}},_0x16a8e3=class{constructor(){const _0x3afdff=_0x9884d2;_0x60128a(this,'_commentUpdate$',new _0xccd21e[(_0x3afdff(0x200))]()),_0x60128a(this,'commentUpdate$',this[_0x3afdff(0x44a)][_0x3afdff(0x43c)]());}['onCommentUpdate'](_0x185f18){const _0x1bde87=_0x9884d2;this[_0x1bde87(0x44a)]['next'](_0x185f18);}};function _0x3b5628(_0x22c973,_0x24d50f){return function(_0x4f3fe3,_0x581892){_0x24d50f(_0x4f3fe3,_0x581892,_0x22c973);};}function _0x33ad5b(_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8){const _0x4af901=_0x9884d2;var _0x1b1f95=arguments['length'],_0x53af28=_0x1b1f95<0x3?_0x5454ad:_0x4423c8===null?_0x4423c8=Object[_0x4af901(0x13f)](_0x5454ad,_0x1be3b1):_0x4423c8,_0x2d52b9;if(typeof Reflect==_0x4af901(0x26e)&&typeof Reflect[_0x4af901(0x2c0)]==_0x4af901(0x474))_0x53af28=Reflect['decorate'](_0x145fb3,_0x5454ad,_0x1be3b1,_0x4423c8);else{for(var _0x293edd=_0x145fb3['length']-0x1;_0x293edd>=0x0;_0x293edd--)(_0x2d52b9=_0x145fb3[_0x293edd])&&(_0x53af28=(_0x1b1f95<0x3?_0x2d52b9(_0x53af28):_0x1b1f95>0x3?_0x2d52b9(_0x5454ad,_0x1be3b1,_0x53af28):_0x2d52b9(_0x5454ad,_0x1be3b1))||_0x53af28);}return _0x1b1f95>0x3&&_0x53af28&&Object[_0x4af901(0x1ce)](_0x5454ad,_0x1be3b1,_0x53af28),_0x53af28;}let _0x50f206=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x4cd417){const _0x1f32e4=_0x9884d2;super(),this['_univerInstanceService']=_0x4cd417,_0x60128a(this,_0x1f32e4(0x2f8),new Map()),_0x60128a(this,'_roomCreated$',new _0xccd21e[(_0x1f32e4(0x200))]()),this[_0x1f32e4(0x472)]((0x0,_0xccd21e[_0x1f32e4(0x448)])(this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)]['UNIVER_SHEET'])['pipe']((0x0,_0x2c33e8['map'])(_0x5cc4a9=>_0x5cc4a9[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x10f)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x1996a3=>_0x1996a3['getUnitId']())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515['UniverInstanceType'][_0x1f32e4(0x339)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x40c809=>_0x40c809[_0x1f32e4(0x413)]())),this[_0x1f32e4(0x118)][_0x1f32e4(0x47f)](_0x4b2515[_0x1f32e4(0x223)][_0x1f32e4(0x267)])[_0x1f32e4(0x486)]((0x0,_0x2c33e8[_0x1f32e4(0x333)])(_0x327d34=>_0x327d34[_0x1f32e4(0x413)]())))[_0x1f32e4(0x23b)](_0x58562a=>this[_0x1f32e4(0x29c)](_0x58562a)));}[_0x9884d2(0x392)](_0x389bcd){const _0x1d0a20=_0x9884d2;return this[_0x1d0a20(0x2f8)]['has'](_0x389bcd)?(0x0,_0xccd21e['of'])(this['_roomMembers'][_0x1d0a20(0x2eb)](_0x389bcd)):this[_0x1d0a20(0x350)][_0x1d0a20(0x486)]((0x0,_0x2c33e8[_0x1d0a20(0x333)])(_0x483201=>{const _0x1e56c3=_0x1d0a20;if(_0x483201===_0x389bcd)return this['_roomMembers'][_0x1e56c3(0x2eb)](_0x483201);}));}['updateMember'](_0x4ef1c2,_0x2d0c8e){const _0x2d9744=_0x9884d2;let _0x324644=this['_roomMembers'][_0x2d9744(0x2eb)](_0x4ef1c2);_0x324644||(_0x324644=new _0x361b33(),this[_0x2d9744(0x2f8)]['set'](_0x4ef1c2,_0x324644),this[_0x2d9744(0x350)][_0x2d9744(0x17e)](_0x4ef1c2)),_0x324644[_0x2d9744(0x2d4)](_0x2d0c8e);}['removeMember'](_0x5cd723,_0x1950e7){const _0x5ae998=_0x9884d2;let _0x50f80d=this[_0x5ae998(0x2f8)]['get'](_0x5cd723);_0x50f80d&&_0x50f80d[_0x5ae998(0x110)](_0x1950e7);}[_0x9884d2(0x45d)](_0x2ec5c2){const _0x49b6fd=_0x9884d2;return this[_0x49b6fd(0x2f8)][_0x49b6fd(0x2eb)](_0x2ec5c2);}[_0x9884d2(0x1e1)](_0x4bfdc6,_0x21f9b3){const _0x900b69=_0x9884d2;let _0x31b98e=this[_0x900b69(0x2f8)][_0x900b69(0x2eb)](_0x4bfdc6);if(_0x31b98e)return _0x31b98e[_0x900b69(0x1e1)](_0x21f9b3);}[_0x9884d2(0x29c)](_0x2bac59){const _0x29d5fa=_0x9884d2;let _0x1b13a0=this[_0x29d5fa(0x2f8)]['get'](_0x2bac59);_0x1b13a0&&(_0x1b13a0[_0x29d5fa(0x314)](),this[_0x29d5fa(0x2f8)][_0x29d5fa(0x287)](_0x2bac59));}[_0x9884d2(0x314)](){const _0x3059d0=_0x9884d2;this[_0x3059d0(0x2f8)][_0x3059d0(0x1e3)](_0x23c006=>_0x23c006[_0x3059d0(0x314)]()),this['_roomMembers'][_0x3059d0(0x214)](),this[_0x3059d0(0x350)][_0x3059d0(0x41f)]();}};_0x50f206=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x405)])],_0x50f206);var _0x361b33=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(..._0xd6def7){const _0xb998ca=_0x9884d2;super(..._0xd6def7),_0x60128a(this,'_members',new Map()),_0x60128a(this,_0xb998ca(0x32c),new _0xccd21e['BehaviorSubject'](this[_0xb998ca(0x1f0)])),_0x60128a(this,'members$',this[_0xb998ca(0x32c)][_0xb998ca(0x43c)]());}['dispose'](){const _0x148145=_0x9884d2;this['_members']['clear'](),this[_0x148145(0x32c)][_0x148145(0x41f)]();}[_0x9884d2(0x2d4)](_0x45add4){const _0x3822e0=_0x9884d2;this[_0x3822e0(0x1f0)][_0x3822e0(0x41e)](_0x45add4[_0x3822e0(0x417)],_0x45add4),this[_0x3822e0(0x121)]();}['removeMember'](_0x5a1ff1){const _0x1e3682=_0x9884d2;this[_0x1e3682(0x1f0)][_0x1e3682(0x287)](_0x5a1ff1),this[_0x1e3682(0x121)]();}[_0x9884d2(0x1e1)](_0x5e20cc){const _0x4f0d1c=_0x9884d2;return this[_0x4f0d1c(0x1f0)]['get'](_0x5e20cc);}[_0x9884d2(0x3c4)](){const _0x56e609=_0x9884d2;return Array[_0x56e609(0x178)](this['_members'][_0x56e609(0x1f3)]());}[_0x9884d2(0x121)](){const _0x5a5068=_0x9884d2;this[_0x5a5068(0x32c)][_0x5a5068(0x17e)](this[_0x5a5068(0x1f0)]);}};function _0x17beb4(_0x323e1d,_0x353213){const _0x55e6f4=_0x9884d2;if(_0x57c9b8(_0x323e1d))return _0x353213;if(_0x353213['eventID']===_0x5199be[_0x55e6f4(0x261)][_0x55e6f4(0x209)]){let _0x572194=_0x5453e8(_0x323e1d),_0x561983=_0x353213;return{..._0x561983,'data':{..._0x561983['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x3f0)],'unitType':_0x323e1d[_0x55e6f4(0x479)][_0x55e6f4(0x294)]??_0x561983['data']['unitType'],'changeset':_0x572194['toRemote'](_0x561983[_0x55e6f4(0x1b4)][_0x55e6f4(0x166)],_0x1acbbf(_0x323e1d))}};}if(_0x353213[_0x55e6f4(0x1b3)]===_0x5199be['CollaborationEvent'][_0x55e6f4(0x318)]){let _0x285f5c=_0x353213;return{..._0x285f5c,'data':{..._0x285f5c['data'],'unitID':_0x323e1d[_0x55e6f4(0x479)]['unitId'],'unitType':_0x323e1d[_0x55e6f4(0x479)]['unitType']??_0x285f5c[_0x55e6f4(0x1b4)][_0x55e6f4(0x294)]}};}return _0x353213;}function _0x1441b1(_0x5bf069,_0x13bf88){const _0x43433a=_0x9884d2;if(_0x57c9b8(_0x5bf069))return[_0x13bf88];switch(_0x13bf88[_0x43433a(0x1b3)]){case _0x5199be[_0x43433a(0x261)]['NEW_CHANGESETS']:return[_0x5428aa(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x18e)]:return[_0x2ffb12(_0x5bf069,_0x13bf88)];case _0x5199be['CollaborationEvent'][_0x43433a(0x238)]:return[_0x4893b9(_0x5bf069,_0x13bf88)];default:return[_0x13bf88];}}function _0x57c9b8(_0x47e813){const _0x45f1d=_0x9884d2;return _0x47e813[_0x45f1d(0x479)][_0x45f1d(0x13b)]==null&&_0x47e813[_0x45f1d(0x479)][_0x45f1d(0x3f0)]===_0x47e813[_0x45f1d(0x2be)]&&!_0x47e813[_0x45f1d(0x166)];}function _0x5428aa(_0x17de18,_0x36b94e){const _0x434c5a=_0x9884d2;return{..._0x36b94e,'data':(0x0,_0x5199be[_0x434c5a(0x21a)])(_0x70e246(_0x17de18,(0x0,_0x5199be[_0x434c5a(0x22c)])(_0x36b94e[_0x434c5a(0x1b4)])))};}function _0x4893b9(_0x569776,_0x56db55){return{..._0x56db55,'data':_0x70e246(_0x569776,_0x56db55['data'])};}function _0x2ffb12(_0x2e888b,_0xa6dad2){const _0x324788=_0x9884d2;let _0xf2d938=_0xa6dad2[_0x324788(0x1b4)];return{..._0xa6dad2,'data':{..._0xf2d938,'changesets':_0xf2d938[_0x324788(0x3cd)][_0x324788(0x333)](_0x276145=>(0x0,_0x5199be['parseChangesetToProtocol'])(_0x70e246(_0x2e888b,(0x0,_0x5199be['parseProtocolChangeset'])(_0x276145))))}};}function _0x70e246(_0xa509bc,_0x1b3cc1){const _0x496533=_0x9884d2;return _0x5453e8(_0xa509bc)[_0x496533(0x396)](_0x1b3cc1,_0x1acbbf(_0xa509bc));}function _0x5453e8(_0x2ec3fa){const _0x403bf6=_0x9884d2;if(!_0x2ec3fa[_0x403bf6(0x166)])throw Error(_0x403bf6(0x241));return _0x2ec3fa[_0x403bf6(0x166)];}function _0x1acbbf(_0x354c5f){const _0x26d162=_0x9884d2;return{'localUnitId':_0x354c5f[_0x26d162(0x2be)],'unitType':_0x354c5f[_0x26d162(0x294)],'target':_0x354c5f[_0x26d162(0x479)]};}let _0x5089ce=function(_0x35e7c6){const _0x5d786b=_0x9884d2;return _0x35e7c6[_0x35e7c6[_0x5d786b(0x1d7)]=0x0]=_0x5d786b(0x1d7),_0x35e7c6[_0x35e7c6[_0x5d786b(0x401)]=0x1]=_0x5d786b(0x401),_0x35e7c6[_0x35e7c6['OFFLINE']=0x2]='OFFLINE',_0x35e7c6[_0x35e7c6[_0x5d786b(0x1d6)]=0x3]=_0x5d786b(0x1d6),_0x35e7c6;}({}),_0x1f73eb={[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x346)]]:'session.join-failed',[_0x349630[_0x9884d2(0x440)]['JOIN_ROOM_FULL']]:_0x9884d2(0x115),[_0x349630[_0x9884d2(0x440)][_0x9884d2(0x13d)]]:_0x9884d2(0x113),[_0x349630['CmdRspCode'][_0x9884d2(0x1f2)]]:'session.room-permission-denied',[_0x349630[_0x9884d2(0x440)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x9884d2(0x459)},_0x188c53=class extends _0x4b2515[_0x9884d2(0x190)]{get[_0x9884d2(0x2e5)](){const _0xdeba48=_0x9884d2;return this[_0xdeba48(0x250)][_0xdeba48(0x383)]();}constructor(_0x3328e5,_0x41f739,_0x54e447,_0x16b47c,_0x4f8fc2,_0x19f651,_0x116cee,_0x34deb2){const _0x22668a=_0x9884d2;super(),this[_0x22668a(0x1fd)]=_0x3328e5,this[_0x22668a(0x344)]=_0x54e447,this[_0x22668a(0x3c6)]=_0x16b47c,this[_0x22668a(0x13c)]=_0x4f8fc2,this['_commentService']=_0x19f651,this['_collaborationUIEventService']=_0x116cee,this[_0x22668a(0x3d8)]=_0x34deb2,_0x60128a(this,_0x22668a(0x250),new _0xccd21e[(_0x22668a(0x379))](0x0)),_0x60128a(this,_0x22668a(0x148),this[_0x22668a(0x250)][_0x22668a(0x43c)]()),_0x60128a(this,_0x22668a(0x3f8),new _0xccd21e[(_0x22668a(0x200))]()),_0x60128a(this,_0x22668a(0x2e6),this['_event$'][_0x22668a(0x43c)]()),_0x60128a(this,'_socket',void 0x0),_0x60128a(this,_0x22668a(0x1a5),void 0x0),_0x60128a(this,_0x22668a(0x36d),void 0x0),_0x60128a(this,_0x22668a(0x1c6),!0x1),_0x60128a(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x41f739['pipe']((0x0,_0xccd21e['takeUntil'])(this[_0x22668a(0x36c)]))[_0x22668a(0x23b)](_0x3dcdec=>{const _0x24100c=_0x22668a;if(_0x3dcdec!==void 0x0){if(this[_0x24100c(0x160)]=_0x3dcdec,_0x3dcdec)this[_0x24100c(0x306)](_0x3dcdec),this[_0x24100c(0x1a5)]=_0x3dcdec[_0x24100c(0x400)]['subscribe'](_0x4db2ef=>{const _0x4028ef=_0x24100c;_0x4db2ef[_0x4028ef(0x3f4)]===this['_identity'][_0x4028ef(0x479)]['unitId']&&this[_0x4028ef(0x33d)](_0x4db2ef);});else{var _0x1df242;this[_0x24100c(0x426)](),this['_sessionStatus$'][_0x24100c(0x17e)](0x2),(_0x1df242=this[_0x24100c(0x1a5)])==null||_0x1df242[_0x24100c(0x29f)](),this[_0x24100c(0x1a5)]=null;}}});}[_0x9884d2(0x444)](){const _0x7823af=_0x9884d2;var _0x51c1c5;return((_0x51c1c5=this['_socket'])==null?void 0x0:_0x51c1c5[_0x7823af(0x417)])??null;}['dispose'](){const _0x36f7d9=_0x9884d2;super['dispose'](),this[_0x36f7d9(0x243)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x17e)](),this[_0x36f7d9(0x36c)][_0x36f7d9(0x41f)]();}[_0x9884d2(0x243)](){const _0x456ccd=_0x9884d2;var _0x44f8b7;this[_0x456ccd(0x426)](),(_0x44f8b7=this[_0x456ccd(0x160)])==null||_0x44f8b7[_0x456ccd(0x2d6)]({'cmd':_0x349630[_0x456ccd(0x293)][_0x456ccd(0x2fc)],'data':{'roomID':this[_0x456ccd(0x1fd)][_0x456ccd(0x479)][_0x456ccd(0x3f0)]}}),this[_0x456ccd(0x3f8)]['complete'](),this['_sessionStatus$']['complete']();}['_onCombEvent'](_0x16cfb1){const _0x1a92c2=_0x9884d2;_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)][_0x1a92c2(0x213)]?this[_0x1a92c2(0x2b7)](_0x16cfb1):_0x16cfb1['cmd']===_0x349630[_0x1a92c2(0x293)]['RECV']&&this[_0x1a92c2(0x418)](_0x16cfb1);}['_joinRoom'](_0x16abef){const _0x1bcd09=_0x9884d2;this['_sessionStatus$']['next'](0x1),_0x16abef[_0x1bcd09(0x2d6)]({'cmd':_0x349630[_0x1bcd09(0x293)][_0x1bcd09(0x213)],'routeKey':this['_identity'][_0x1bcd09(0x479)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x1bcd09(0x479)][_0x1bcd09(0x3f0)]}]}});}[_0x9884d2(0x2b7)](_0x125217){const _0x333da2=_0x9884d2;var _0x51e532;if(_0x125217[_0x333da2(0x3f6)]in _0x1f73eb){this['_collaborationUIEventService'][_0x333da2(0x1db)]({'id':'JOIN_ROOM_FAILED','data':_0x1f73eb[_0x125217['code']]}),this[_0x333da2(0x250)][_0x333da2(0x17e)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x18cd46=(_0x51e532=_0x125217[_0x333da2(0x1b4)][_0x333da2(0x3b4)][this['_identity'][_0x333da2(0x479)][_0x333da2(0x3f0)]])==null?void 0x0:_0x51e532['members'];_0x18cd46&&_0x18cd46[_0x333da2(0x1e3)](_0x4bfff7=>this['_memberService'][_0x333da2(0x2d4)](this[_0x333da2(0x1fd)][_0x333da2(0x2be)],_0x4bfff7));}[_0x9884d2(0x418)](_0x390f25){const _0x26bdca=_0x9884d2;try{let _0x4389aa=_0x1441b1(this[_0x26bdca(0x1fd)],_0x390f25[_0x26bdca(0x1b4)]);for(let _0x41a542 of _0x4389aa)switch(_0x41a542[_0x26bdca(0x1b3)]){case _0x5199be[_0x26bdca(0x261)]['USERS_ENTER']:this[_0x26bdca(0x274)](_0x41a542),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x197)]:this['_onUserLeave'](_0x41a542),this[_0x26bdca(0x3f8)]['next'](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1f7)]:case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x238)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x26bdca(0x30b)](),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be['CollaborationEvent'][_0x26bdca(0x1b1)]:this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0x26bdca(0x1d1)+JSON[_0x26bdca(0x3ee)](_0x41a542)),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;case _0x5199be[_0x26bdca(0x261)][_0x26bdca(0x3df)]:this[_0x26bdca(0x31f)][_0x26bdca(0x445)](_0x41a542[_0x26bdca(0x1b4)]),this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);break;default:this[_0x26bdca(0x3f8)][_0x26bdca(0x17e)](_0x41a542);}}catch(_0xcf2cfe){this[_0x26bdca(0x344)][_0x26bdca(0x1b5)](_0xcf2cfe,_0x390f25);}}['_onUserJoin'](_0x4fed8e){const _0x4b61a2=_0x9884d2;this[_0x4b61a2(0x13c)][_0x4b61a2(0x2d4)](this[_0x4b61a2(0x1fd)][_0x4b61a2(0x2be)],_0x4fed8e[_0x4b61a2(0x1b4)]);}['_onUserLeave'](_0x4ceeeb){const _0x2fa8fb=_0x9884d2;this[_0x2fa8fb(0x13c)][_0x2fa8fb(0x110)](this[_0x2fa8fb(0x1fd)][_0x2fa8fb(0x2be)],_0x4ceeeb['data']['memberID']);}async[_0x9884d2(0x2d6)](_0x3569e7,_0x382908){const _0x4d6609=_0x9884d2;if(this[_0x4d6609(0x2e5)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0xfe0bf4=_0x17beb4(this[_0x4d6609(0x1fd)],_0x3569e7);_0xfe0bf4['eventID']===_0x5199be['CollaborationEvent'][_0x4d6609(0x209)]&&(this[_0x4d6609(0x399)](),this[_0x4d6609(0x157)](_0xfe0bf4)),this[_0x4d6609(0x160)][_0x4d6609(0x2d6)]({'cmd':_0x349630[_0x4d6609(0x293)]['INGEST'],'routeKey':this[_0x4d6609(0x1fd)][_0x4d6609(0x479)][_0x4d6609(0x3f0)],'routeType':'','data':_0xfe0bf4});}catch(_0x567545){this['_logService']['error'](_0x567545);}}[_0x9884d2(0x399)](){const _0x20855c=_0x9884d2;this[_0x20855c(0x36d)]=setTimeout(()=>{const _0x4345f5=_0x20855c;this[_0x4345f5(0x36d)]=null,this[_0x4345f5(0x427)][_0x4345f5(0x1db)]({'id':_0x4345f5(0x3db)});},this[_0x20855c(0x3c6)][_0x20855c(0x32f)](_0x20855c(0x207))??0x4e20);}[_0x9884d2(0x30b)](){const _0x202a8e=_0x9884d2;this[_0x202a8e(0x36d)]&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}[_0x9884d2(0x157)](_0x12a38e){const _0x58aa6b=_0x9884d2;if(!this[_0x58aa6b(0x1c6)])return;let {data:_0x111d58}=_0x12a38e,{unitID:_0x407241,changeset:_0x20f267}=_0x111d58,{mutations:_0x5af8a7,type:_0x42d901}=_0x20f267;this[_0x58aa6b(0x111)]={'unitId':_0x407241,'type':_0x42d901,'startTime':performance[_0x58aa6b(0x17d)](),'stopTime':0x0,'duration':0x0,'size':_0x3edac7(_0x5af8a7)};}[_0x9884d2(0x20c)](){const _0x157b65=_0x9884d2;if(this[_0x157b65(0x1c6)]){if(!this[_0x157b65(0x111)]){this[_0x157b65(0x344)][_0x157b65(0x1b5)](_0x157b65(0x192),_0x157b65(0x26d));return;}this[_0x157b65(0x111)][_0x157b65(0x471)]=performance[_0x157b65(0x17d)](),this[_0x157b65(0x111)][_0x157b65(0x226)]=this[_0x157b65(0x111)][_0x157b65(0x471)]-this[_0x157b65(0x111)][_0x157b65(0x3e4)],this[_0x157b65(0x3d8)][_0x157b65(0x252)](_0x157b65(0x33e),this[_0x157b65(0x111)]),this[_0x157b65(0x111)]=null;}}[_0x9884d2(0x426)](){this['_telemetryInfo']=null;}};_0x188c53=_0x33ad5b([_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x50f206)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x16a8e3)),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ca46c[_0x9884d2(0x47c)]))],_0x188c53);let _0x2b4688=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x364));function _0x41bf27(_0x144972){const _0x26cd95=_0x9884d2;return _0x26cd95(0x184)+_0x144972;}function _0x116324(_0x2f1878){const _0x2284a9=_0x9884d2;let {unitID:_0x14735a,mutations:_0x276379}=_0x2f1878;return{'unitId':_0x14735a,'subUnitId':_0x276379['length']>0x0?_0x276379[0x0][_0x2284a9(0x3f5)][_0x2284a9(0x488)]:null};}let _0x2326c2=class{constructor(_0x2f2be1,_0x4d7d67,_0x5b342d){const _0x253ca1=_0x9884d2;this[_0x253ca1(0x46a)]=_0x2f2be1,this[_0x253ca1(0x2a6)]=_0x4d7d67,this[_0x253ca1(0x26c)]=_0x5b342d;}['transformSelections'](_0x598e45){const _0x4270a0=_0x9884d2;var _0x1147b6,_0x388580;let _0x2dac76=this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4ea268[_0x4270a0(0x34c)]),{unitId:_0x4bd23b,subUnitId:_0x1a1958}=_0x116324(_0x598e45),_0x312573=_0x2dac76==null?void 0x0:_0x2dac76[_0x4270a0(0x316)](_0x4bd23b)[_0x4270a0(0x204)](),_0x3963b9=(_0x1147b6=this['_instanceService'][_0x4270a0(0x380)](_0x4bd23b))==null||(_0x1147b6=_0x1147b6[_0x4270a0(0x470)]())==null?void 0x0:_0x1147b6['getSheetId']();if(_0x312573[_0x4270a0(0x147)]===0x0||!_0x4bd23b||!_0x1a1958)return;let _0x51ba0a=[{'id':_0x4ea268[_0x4270a0(0x20a)]['id'],'params':{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4b2515[_0x4270a0(0x1a2)][_0x4270a0(0x2ee)](_0x312573)}}],_0x35f34d=this[_0x4270a0(0x2a6)]['transformMutationsWithChangeset'](_0x598e45,_0x51ba0a);if(!(0x0,_0x5199be[_0x4270a0(0x358)])(_0x35f34d))throw _0x35f34d['error'];let _0x4bf711=(_0x388580=_0x35f34d['m2Prime'][0x0])==null||(_0x388580=_0x388580[_0x4270a0(0x3f5)])==null?void 0x0:_0x388580['selections'];if(Array[_0x4270a0(0x3cb)](_0x4bf711)&&_0x4bf711[_0x4270a0(0x147)]){if(_0x4bf711['length']===_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections']['length']&&_0x4bf711['every']((_0x18bae7,_0x5a510e)=>_0x4b2515[_0x4270a0(0x2a3)]['equals'](_0x18bae7[_0x4270a0(0x1e6)],_0x51ba0a[0x0][_0x4270a0(0x3f5)]['selections'][_0x5a510e][_0x4270a0(0x1e6)])))return;this[_0x4270a0(0x46a)][_0x4270a0(0x2eb)](_0x4b2515[_0x4270a0(0x16b)])[_0x4270a0(0x47a)](_0x4ea268[_0x4270a0(0x20a)]['id'],{'unitId':_0x4bd23b,'subUnitId':_0x3963b9,'selections':_0x4bf711});}}};_0x2326c2=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x5199be['ITransformService']),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x405)])],_0x2326c2);let _0x55fbad=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1c0)),_0xa9151d=function(_0x5f1a02){const _0x5717fd=_0x9884d2;return _0x5f1a02[_0x5f1a02['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5717fd(0x326),_0x5f1a02[_0x5f1a02['OTHER_CLIENTS_EDITING']=0x1]=_0x5717fd(0x3a5),_0x5f1a02;}({});function _0x21a96d(_0x5b4fe3){const _0x4c94b2=_0x9884d2;var _0x2d1321;return!!((_0x2d1321=_0x5b4fe3[_0x4c94b2(0x3f5)])!=null&&_0x2d1321[_0x4c94b2(0x336)]);}let _0xd9ab7a=new Set([_0x4ea268['InsertSheetMutation']['id']]),_0x5bc0ca=new Set([_0x471a79[_0x9884d2(0x441)]['id'],_0x471a79['EnsureSlideMasterPageMutation']['id'],_0x471a79[_0x9884d2(0x14d)]['id'],_0x471a79[_0x9884d2(0x3d5)]['id']]);function _0x331267(_0x47a1d7,_0x5b4ee4=_0xd9ab7a){const _0x2846f6=_0x9884d2;let _0x1112a9=[];for(let _0x56ae63 of _0x47a1d7){if(_0x5b4ee4[_0x2846f6(0x40a)](_0x56ae63['id'])){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}if(_0x21a96d(_0x56ae63)){if(_0x1112a9[_0x2846f6(0x147)]>0x0)break;_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);break;}_0x1112a9[_0x2846f6(0x42c)](_0x56ae63);}return _0x1112a9;}function _0xd48940(_0x2f6cc1,_0x180d16,_0x2cec70,_0xc278c4,_0x1b867c){const _0xde0724=_0x9884d2;let _0x205c62=_0x331267(_0x2f6cc1),_0x4e4ebb=_0x1b867c[_0xde0724(0x203)](),_0x36de35=(_0x4e4ebb==null?void 0x0:_0x4e4ebb[_0xde0724(0x36b)])??_0xde0724(0x1a8),_0x2cd25c=(_0x4e4ebb==null?void 0x0:_0x4e4ebb['memberID'])??_0xde0724(0x1a8);return{'changeset':{'unitID':_0x180d16,'type':(0x0,_0x5199be[_0xde0724(0x433)])(_0x2cec70['getUnitType'](_0x180d16)),'baseRev':_0xc278c4[_0xde0724(0x421)](_0x180d16),'revision':0x0,'userID':_0x36de35,'memberID':_0x2cd25c,'mutations':_0x205c62},'pendingMutations':_0x2f6cc1[_0xde0724(0x3d6)](_0x205c62[_0xde0724(0x147)])};}let _0x583864=_0xd48940;function _0x1fdd81(_0x28b4ff,_0x3314cc,_0x5d8dad,_0x325b1d,_0x30ff46){const _0x45a2dd=_0x9884d2;let _0x7c0c75=_0x331267(_0x28b4ff,_0x5bc0ca),_0x18aefa=_0x30ff46[_0x45a2dd(0x203)](),_0x1aa80a=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x36b)])??_0x45a2dd(0x1a8),_0x111963=(_0x18aefa==null?void 0x0:_0x18aefa[_0x45a2dd(0x417)])??_0x45a2dd(0x1a8);return{'changeset':{'unitID':_0x3314cc,'type':(0x0,_0x5199be['mapDocumentTypeToUniverInstanceType'])(_0x5d8dad[_0x45a2dd(0x429)](_0x3314cc)),'baseRev':_0x325b1d['getCurrentRevOfUnit'](_0x3314cc),'revision':0x0,'userID':_0x1aa80a,'memberID':_0x111963,'mutations':_0x7c0c75},'pendingMutations':_0x28b4ff['slice'](_0x7c0c75['length'])};}function _0x23ac61(_0x296586,_0x57fe11,_0x34d7ef,_0xb63f61,_0x3e94a6){const _0x31c924=_0x9884d2;let _0x372146=_0x296586['reduce']((_0x97f275,_0x1f403f)=>{const _0x4cb02e=_0x328a;let _0x42036e=_0x97f275[_0x97f275['length']-0x1],{id:_0x24937a}=_0x42036e??{},{id:_0x1fb9cd,type:_0x27d312}=_0x1f403f,_0x47fe1f=_0x1f403f[_0x4cb02e(0x3f5)];if(_0x24937a&&_0x24937a!==_0x1fb9cd)throw Error(_0x4cb02e(0x3ed)+_0x24937a+_0x4cb02e(0x1ca)+_0x1fb9cd+'.');if(!_0x42036e)return[{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];let _0x2344f8=_0x42036e[_0x4cb02e(0x3f5)];return _0x454968(_0x2344f8,_0x47fe1f)?[..._0x97f275[_0x4cb02e(0x3d6)](0x0,-0x1),{..._0x42036e,'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f['unitId'],'textRanges':_0x47fe1f[_0x4cb02e(0x229)],'actions':_0x4b2515[_0x4cb02e(0x19a)]['compose'](_0x2344f8[_0x4cb02e(0x37a)],_0x47fe1f[_0x4cb02e(0x37a)])}}]:[..._0x97f275,{'id':_0x1fb9cd,'type':_0x27d312,'params':{'unitId':_0x47fe1f[_0x4cb02e(0x3f0)],'textRanges':_0x47fe1f['textRanges'],'actions':_0x47fe1f[_0x4cb02e(0x37a)]}}];},[]),_0x325a41=_0x3e94a6['getCurrentUser'](),_0x16f8fc=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x36b)])??_0x31c924(0x1a8),_0x264aed=(_0x325a41==null?void 0x0:_0x325a41[_0x31c924(0x417)])??'unknown';return{'changeset':{'unitID':_0x57fe11,'type':(0x0,_0x5199be[_0x31c924(0x433)])(_0x34d7ef[_0x31c924(0x429)](_0x57fe11)),'baseRev':_0xb63f61[_0x31c924(0x421)](_0x57fe11),'revision':0x0,'userID':_0x16f8fc,'memberID':_0x264aed,'mutations':_0x372146},'pendingMutations':_0x296586[_0x31c924(0x3d6)](_0x296586[_0x31c924(0x147)])};}function _0x454968(_0xf36500,_0x3510da){const _0x1b3af1=_0x9884d2;return!_0x5af5a8(_0xf36500)&&!_0x5af5a8(_0x3510da)&&_0x31b485(_0xf36500[_0x1b3af1(0x37a)],_0x3510da[_0x1b3af1(0x37a)]);}function _0x5af5a8(_0x275338){const _0x345f2a=_0x9884d2;return _0x275338[_0x345f2a(0x3e6)]!==void 0x0;}function _0x31b485(_0x566e08,_0x69f0d8){return _0x1d625f(_0x566e08)&&_0x1d625f(_0x69f0d8)&&!_0x567205(_0x566e08)&&!_0x567205(_0x69f0d8)&&!_0xa2447e(_0x566e08)&&!_0xa2447e(_0x69f0d8);}function _0x1d625f(_0x449392){const _0x17d5dc=_0x9884d2;return _0x566349(_0x449392)[_0x17d5dc(0x3e3)](_0x50bf05=>_0xf69dff(_0x50bf05)&&_0x50bf05['et']===_0x17d5dc(0x28f));}function _0xa2447e(_0x189c80){const _0x17c5ee=_0x9884d2;return _0x566349(_0x189c80)['some'](_0x31940b=>Array[_0x17c5ee(0x3cb)](_0x31940b)||typeof _0x31940b==_0x17c5ee(0x212)||typeof _0x31940b==_0x17c5ee(0x266));}function _0x567205(_0x4e6d92){const _0x4097e7=_0x9884d2;return _0x566349(_0x4e6d92)['some'](_0x4c63a8=>!_0xf69dff(_0x4c63a8)||_0x4c63a8['et']!==_0x4097e7(0x28f)||!Array[_0x4097e7(0x3cb)](_0x4c63a8['e'])?!0x1:_0x4c63a8['e'][_0x4097e7(0x3e3)](_0x2e4785=>!_0xf69dff(_0x2e4785)||!_0xf69dff(_0x2e4785[_0x4097e7(0x450)])?!0x1:Object[_0x4097e7(0x167)][_0x4097e7(0x30e)][_0x4097e7(0x43d)](_0x2e4785[_0x4097e7(0x450)],'tables')||Object['prototype'][_0x4097e7(0x30e)]['call'](_0x2e4785['body'],_0x4097e7(0x35c))||Object[_0x4097e7(0x167)][_0x4097e7(0x30e)]['call'](_0x2e4785[_0x4097e7(0x450)],_0x4097e7(0x324))));}function _0x566349(_0x57a02a){const _0x971bf3=_0x9884d2;if(!Array[_0x971bf3(0x3cb)](_0x57a02a))return[];let _0x142d23=_0x57a02a[_0x971bf3(0x473)](_0x971bf3(0x450))?_0x57a02a:_0x57a02a[_0x971bf3(0x34a)](_0x10955d=>Array[_0x971bf3(0x3cb)](_0x10955d)&&_0x10955d[_0x971bf3(0x473)](_0x971bf3(0x450)));if(!Array[_0x971bf3(0x3cb)](_0x142d23))return[];let _0x3000c0=_0x142d23[_0x971bf3(0x172)](_0x971bf3(0x450));return _0x3000c0===-0x1?[]:_0x142d23[_0x971bf3(0x3d6)](_0x3000c0+0x1);}function _0xf69dff(_0x2b96bd){const _0x54b936=_0x9884d2;return typeof _0x2b96bd==_0x54b936(0x26e)&&!!_0x2b96bd&&!Array[_0x54b936(0x3cb)](_0x2b96bd);}function _0x415646(_0x52f55d,_0x3b32a3){const _0x4d6866=_0x9884d2;let _0x5e1520=new _0xccd21e[(_0x4d6866(0x375))](0x1);return setTimeout(()=>_0x5e1520[_0x4d6866(0x17e)](_0x3b32a3),_0x52f55d),_0x5e1520[_0x4d6866(0x43c)]()['pipe']((0x0,_0xccd21e[_0x4d6866(0x1dc)])(0x1));}var _0x5e05f6,_0x25d68a,_0x1aa808;let _0x500434=function(_0x4c3ad0){const _0x3c4fa1=_0x9884d2;return _0x4c3ad0[_0x3c4fa1(0x3dd)]='not_collab',_0x4c3ad0['SYNCED']=_0x3c4fa1(0x443),_0x4c3ad0['PENDING']=_0x3c4fa1(0x1a3),_0x4c3ad0[_0x3c4fa1(0x452)]=_0x3c4fa1(0x1cf),_0x4c3ad0['AWAITING_WITH_PENDING']=_0x3c4fa1(0x283),_0x4c3ad0[_0x3c4fa1(0x338)]=_0x3c4fa1(0x2dc),_0x4c3ad0['CONFLICT']=_0x3c4fa1(0x1bf),_0x4c3ad0['OFFLINE']=_0x3c4fa1(0x219),_0x4c3ad0;}({}),_0x5b1e26=0x4e20,_0x11c58e=0x2bf20;var _0x26e5b5=class{constructor(_0x59b3ec,_0x3a0fb3,_0x237086,_0x685c24,_0x4abec9,_0x412b01,_0x43fd0d,_0x4489b5,_0x1fbcb8){const _0xae4397=_0x9884d2;this[_0xae4397(0x258)]=_0x59b3ec,this[_0xae4397(0x415)]=_0x3a0fb3,this[_0xae4397(0x3f2)]=_0x4abec9,this['_commandService']=_0x412b01,this[_0xae4397(0x25b)]=_0x43fd0d,this[_0xae4397(0x196)]=_0x4489b5,this['_localCacheService']=_0x1fbcb8,_0x60128a(this,_0xae4397(0x402),null),_0x60128a(this,_0xae4397(0x44f),[]),this[_0xae4397(0x402)]=_0x237086,this['_pendingMutations']=_0x685c24;}['_checkMissing'](_0x40d468){const _0x54a183=_0x9884d2;let _0x370816=this[_0x54a183(0x196)]['getCurrentRevOfUnit'](this[_0x54a183(0x258)]);return _0x40d468['revision']>_0x370816+0x1&&(this[_0x54a183(0x3f2)][_0x54a183(0x228)]({'from':_0x370816,'to':_0x40d468[_0x54a183(0x2f4)]-0x1}),!0x0);}[_0x9884d2(0x244)](_0x549ae2){const _0x1c45c2=_0x9884d2;this[_0x1c45c2(0x25b)][_0x1c45c2(0x3b7)](this['unitID'],_0x549ae2);}[_0x9884d2(0x233)](_0x3b5ab9){const _0x231bfd=_0x9884d2;var _0x1f3ab4,_0x64701f;(_0x1f3ab4=(_0x64701f=this['_handler'])[_0x231bfd(0x3c2)])==null||_0x1f3ab4['call'](_0x64701f,_0x3b5ab9);}['_prepareTransformSelections'](_0x4b581a){const _0x186a58=_0x9884d2;var _0x4266fa,_0x22d74f;return((_0x4266fa=(_0x22d74f=this['_handler'])[_0x186a58(0x3da)])==null?void 0x0:_0x4266fa['call'](_0x22d74f,_0x4b581a))??null;}[_0x9884d2(0x3d0)](_0x44adb0){const _0x131ffa=_0x9884d2;var _0x48aafb,_0xa8d939;return(_0x48aafb=(_0xa8d939=this[_0x131ffa(0x3f2)])[_0x131ffa(0x31a)])==null?void 0x0:_0x48aafb['call'](_0xa8d939,_0x44adb0);}[_0x9884d2(0x369)](_0x1a423e){const _0x52c039=_0x9884d2;var _0x385062,_0xe3e5b1;return(_0x385062=(_0xe3e5b1=this[_0x52c039(0x3f2)])[_0x52c039(0x330)])==null?void 0x0:_0x385062[_0x52c039(0x43d)](_0xe3e5b1,_0x1a423e);}['_transformRemoteChangesetByIMECache'](_0x34d1fb){const _0xeee69a=_0x9884d2;var _0x3d9487,_0x45a58a;return((_0x3d9487=(_0x45a58a=this[_0xeee69a(0x3f2)])[_0xeee69a(0x311)])==null?void 0x0:_0x3d9487[_0xeee69a(0x43d)](_0x45a58a,_0x34d1fb))??_0x34d1fb;}[_0x9884d2(0x362)](_0x322c9b){const _0x17be89=_0x9884d2;var _0x41d443,_0x6375b7;return((_0x41d443=(_0x6375b7=this[_0x17be89(0x3f2)])[_0x17be89(0x206)])==null?void 0x0:_0x41d443[_0x17be89(0x43d)](_0x6375b7,_0x322c9b))??_0x322c9b;}[_0x9884d2(0x476)](_0x45f5dc){const _0x20fd80=_0x9884d2;if(this[_0x20fd80(0x415)]===_0x4b2515[_0x20fd80(0x223)][_0x20fd80(0x10f)]){let {unitID:_0xb29239,mutations:_0x2f4384,memberID:_0x1adfc3}=_0x45f5dc,_0x2169a3=_0x2f4384[_0x20fd80(0x147)]>0x0?_0x2f4384[0x0][_0x20fd80(0x3f5)][_0x20fd80(0x229)]:[];if(Array[_0x20fd80(0x3cb)](_0x2169a3)&&_0x2169a3[_0x20fd80(0x147)]>0x0){var _0x128ca5,_0x1710b1;(_0x128ca5=(_0x1710b1=this[_0x20fd80(0x3f2)])['onSyncEditingCollabCursor'])==null||_0x128ca5[_0x20fd80(0x43d)](_0x1710b1,{'unitID':_0xb29239,'memberID':_0x1adfc3,'textRanges':_0x2169a3});}}}['_updateLocalCache'](){const _0x1eaf8d=_0x9884d2;var _0x12a7db;(_0x12a7db=this[_0x1eaf8d(0x323)])==null||_0x12a7db['updateOfflineData'](this[_0x1eaf8d(0x258)],this['type'],this[_0x1eaf8d(0x402)],this[_0x1eaf8d(0x44f)]);}[_0x9884d2(0x21d)](){const _0x58dc3a=_0x9884d2;return this[_0x58dc3a(0x196)][_0x58dc3a(0x421)](this[_0x58dc3a(0x258)]);}['_incrementRevisionNumber'](){const _0x5855f1=_0x9884d2;this['_revisionService'][_0x5855f1(0x404)](this['unitID']);}['_executeRemoteChangeset'](_0x4fed3a){const _0x2dca5b=_0x9884d2;let _0x4d4a85=this[_0x2dca5b(0x3ba)](_0x4fed3a);_0x4d4a85=this[_0x2dca5b(0x362)](_0x4d4a85);let _0x5a4edc=this[_0x2dca5b(0x1d3)](_0x4d4a85),_0x1c5d1c=(0x0,_0x4b2515[_0x2dca5b(0x3d4)])(_0x4d4a85[_0x2dca5b(0x25c)],this[_0x2dca5b(0x2ef)],{'fromCollab':!0x0});if(!_0x1c5d1c[_0x2dca5b(0x312)])throw _0x5a4edc==null||_0x5a4edc['rollback'](),_0x1c5d1c[_0x2dca5b(0x1b5)]instanceof Error?_0x1c5d1c['error']:Error(_0x1c5d1c[_0x2dca5b(0x1b5)]??_0x2dca5b(0x308));_0x5a4edc==null||_0x5a4edc[_0x2dca5b(0x120)](),this[_0x2dca5b(0x3d0)](_0x4d4a85),this[_0x2dca5b(0x369)](_0x4d4a85),this[_0x2dca5b(0x244)](_0x4fed3a),this['_transformSelections'](_0x4d4a85),this['_syncEditingCollabCursor'](_0x4d4a85),this[_0x2dca5b(0x301)]();}};let _0x57c5eb=class extends _0x26e5b5{constructor(_0x4e67c2,_0x59283d,_0x3eb65b,_0x5ed7ab,_0x4bc597,_0x87df29,_0x4fad72,_0x17e8d5,_0x578edc,_0x1f4939){const _0x42edb3=_0x9884d2;super(_0x4e67c2,_0x59283d,null,[],_0x3eb65b,_0x4fad72,_0x87df29,_0x5ed7ab,_0x1f4939),this[_0x42edb3(0x46a)]=_0x4bc597,this[_0x42edb3(0x344)]=_0x17e8d5,this['_transformService']=_0x578edc,this['localCacheService']=_0x1f4939,_0x60128a(this,_0x42edb3(0x45f),'synced');}[_0x9884d2(0x3ea)](_0x52d705){const _0x2207f1=_0x9884d2;let _0x45db65=this[_0x2207f1(0x46a)]['createInstance'](_0x27ecb8,this[_0x2207f1(0x258)],this[_0x2207f1(0x415)],[_0x52d705],this[_0x2207f1(0x3f2)]);return _0x45db65['_schedule'](),_0x45db65[_0x2207f1(0x34f)](),_0x45db65;}['onRemoteChangeset'](_0x36d36e){const _0x5e0fc5=_0x9884d2;if(this['_checkMissing'](_0x36d36e))return this['_injector'][_0x5e0fc5(0x40d)](_0x394019,this[_0x5e0fc5(0x258)],this[_0x5e0fc5(0x415)],null,[],null,[_0x36d36e],this['_handler']);try{let _0x438edb=this[_0x5e0fc5(0x2a6)][_0x5e0fc5(0x457)](_0x36d36e,[_0x5199be[_0x5e0fc5(0x182)]]);if((0x0,_0x5199be[_0x5e0fc5(0x358)])(_0x438edb)){let {c1Prime:_0x1ed816}=_0x438edb;return this[_0x5e0fc5(0x24d)](_0x1ed816),this;}throw _0x438edb['error'];}catch(_0x26b39e){return this['_logService'][_0x5e0fc5(0x1b5)](_0x26b39e),this['_onConflict'](!0x1);}}[_0x9884d2(0x143)](_0x3ecea5){const _0x282eae=_0x9884d2;return this[_0x282eae(0x46a)]['createInstance'](_0x4b9c5b,this[_0x282eae(0x258)],this[_0x282eae(0x415)],null,[],this[_0x282eae(0x3f2)],_0x3ecea5);}['onRemoteAck'](_0x300aa5){const _0x47e78e=_0x9884d2;if(_0x300aa5['revision']<=this[_0x47e78e(0x21d)]())return this;throw Error(_0x47e78e(0x2ed));}['onRemoteRej'](){const _0x9bb747=_0x9884d2;throw Error(_0x9bb747(0x2d2));}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x53b312=_0x9884d2;return this[_0x53b312(0x46a)][_0x53b312(0x40d)](_0x20a1e1,this[_0x53b312(0x258)],this['type'],null,[],this['_handler']);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x496089=_0x9884d2;throw Error(_0x496089(0x225));}[_0x9884d2(0x15d)](){const _0x2a3c5d=_0x9884d2;let _0x2f6df4=this['_revisionService']['getCurrentRevOfUnit'](this[_0x2a3c5d(0x258)]);return this[_0x2a3c5d(0x3f2)][_0x2a3c5d(0x228)]({'from':_0x2f6df4,'to':0x0}),this[_0x2a3c5d(0x46a)][_0x2a3c5d(0x40d)](_0x394019,this[_0x2a3c5d(0x258)],this[_0x2a3c5d(0x415)],null,[],null,[],this[_0x2a3c5d(0x3f2)]);}};_0x57c5eb=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x57c5eb);let _0x27ecb8=_0x5e05f6=class extends _0x26e5b5{constructor(_0x13ba07,_0x523be8,_0x2bf74f,_0x3c2f40,_0x5e298f,_0xf9ff7e,_0x19aa01,_0xff4b1c,_0x2e1f7d,_0x46e01d,_0x4e597c,_0x2e7cce,_0x3991e6,_0x1c7c6c){const _0xc8ed98=_0x9884d2;super(_0x13ba07,_0x523be8,null,_0x2bf74f,_0x3c2f40,_0x2e1f7d,_0x3991e6,_0xf9ff7e,_0x1c7c6c),this['_injector']=_0x5e298f,this[_0xc8ed98(0x1c5)]=_0x19aa01,this['_logService']=_0xff4b1c,this[_0xc8ed98(0x3c6)]=_0x46e01d,this[_0xc8ed98(0x2a6)]=_0x4e597c,this[_0xc8ed98(0x118)]=_0x2e7cce,_0x60128a(this,_0xc8ed98(0x45f),_0xc8ed98(0x1a3)),_0x60128a(this,_0xc8ed98(0x453),null),_0x60128a(this,'_sendingTimer',null);}[_0x9884d2(0x3ea)](_0x13d40d){const _0x5c7aa0=_0x9884d2;return this[_0x5c7aa0(0x44f)]['push'](_0x13d40d),this[_0x5c7aa0(0x34f)](),this;}[_0x9884d2(0x32d)](_0x144ed3){const _0x5ce221=_0x9884d2;if(this[_0x5ce221(0x2db)](_0x144ed3))return this['_clearScheduledTask'](),this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x394019,this['unitID'],this[_0x5ce221(0x415)],null,this['_pendingMutations'],null,[_0x144ed3],this[_0x5ce221(0x3f2)]);try{let _0x4a4f28=this[_0x5ce221(0x2a6)][_0x5ce221(0x457)](_0x144ed3,this[_0x5ce221(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x4a4f28)){let {c1Prime:_0x4a3344,m2Prime:_0x1aa0d0}=_0x4a4f28;this['_executeRemoteChangeset'](_0x4a3344);let _0x3d8d3b=this[_0x5ce221(0x46a)][_0x5ce221(0x40d)](_0x5e05f6,this[_0x5ce221(0x258)],this[_0x5ce221(0x415)],_0x1aa0d0,this['_handler']);this[_0x5ce221(0x3eb)]();let _0xc96928=new Date()[_0x5ce221(0x1c7)](),_0x1fa90a=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x5ce221(0x453)]-_0xc96928,0x0):this[_0x5ce221(0x11b)]();return _0x3d8d3b[_0x5ce221(0x334)](_0x1fa90a),_0x3d8d3b;}throw _0x4a4f28[_0x5ce221(0x1b5)];}catch(_0x3ecf87){return this[_0x5ce221(0x344)][_0x5ce221(0x1b5)](_0x3ecf87),this[_0x5ce221(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x160a1d){const _0x153e11=_0x9884d2;if(_0x160a1d[_0x153e11(0x2f4)]<=this['_getCurrentRevision']())return this;throw Error(_0x153e11(0x2c5));}[_0x9884d2(0x21f)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x9884d2(0x39b)](){return this;}[_0x9884d2(0x3ec)](){const _0x46ae34=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x46ae34(0x40d)](_0x20a1e1,this[_0x46ae34(0x258)],this[_0x46ae34(0x415)],null,this[_0x46ae34(0x44f)],this[_0x46ae34(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x334)](_0x55d7cd){const _0x46134b=_0x9884d2;let _0x30d90f=_0x55d7cd??this[_0x46134b(0x11b)]();this['_scheduleCompleteTimestamp']=new Date()['getTime']()+_0x30d90f,this[_0x46134b(0x36a)]=setTimeout(()=>{const _0x411eb3=_0x46134b;this[_0x411eb3(0x3eb)]();let _0x54a717=null;switch(this['type']){case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x465)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)]['UNIVER_DOC']:_0x54a717=this[_0x411eb3(0x44f)]['every'](_0xfc2cc4=>_0xfc2cc4['id']===_0x120ed0['RichTextEditingMutation']['id'])?_0x23ac61(this[_0x411eb3(0x44f)],this['unitID'],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]):_0xd48940(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this['_univerInstanceService'],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x281)]:_0x54a717=_0x1fdd81(this[_0x411eb3(0x44f)],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this[_0x411eb3(0x1c5)]);break;case _0x4b2515['UniverInstanceType'][_0x411eb3(0x1b9)]:_0x54a717=_0x583864(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515['UniverInstanceType']['UNIVER_BOARD']:_0x54a717=_0xd48940(this[_0x411eb3(0x44f)],this['unitID'],this['_univerInstanceService'],this[_0x411eb3(0x196)],this['_userManagerService']);break;case _0x4b2515[_0x411eb3(0x223)][_0x411eb3(0x267)]:_0x54a717=_0xd48940(this['_pendingMutations'],this[_0x411eb3(0x258)],this[_0x411eb3(0x118)],this['_revisionService'],this[_0x411eb3(0x1c5)]);break;default:throw Error(_0x411eb3(0x42b)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x2f50d4,pendingMutations:_0x2816a8}=_0x54a717;this[_0x411eb3(0x3f2)]['onSendChangeset'](_0x2f50d4);let _0x568d11=_0x2816a8[_0x411eb3(0x147)]?this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x1e3872,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,_0x2816a8,this[_0x411eb3(0x3f2)],void 0x0):this[_0x411eb3(0x46a)][_0x411eb3(0x40d)](_0x57ae4a,this[_0x411eb3(0x258)],this[_0x411eb3(0x415)],_0x2f50d4,this['_handler']);_0x568d11[_0x411eb3(0x34f)](),this[_0x411eb3(0x3f2)][_0x411eb3(0x171)](this,_0x568d11);},_0x30d90f);}[_0x9884d2(0x11b)](){const _0x35a2d9=_0x9884d2;let _0x1c595e=this[_0x35a2d9(0x3c6)][_0x35a2d9(0x32f)](_0x3c0330);return(_0x1c595e==null?void 0x0:_0x1c595e[_0x35a2d9(0x1df)])??0x7d0;}[_0x9884d2(0x1fc)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x13b932=_0x9884d2;this[_0x13b932(0x36a)]!=null&&(clearTimeout(this[_0x13b932(0x36a)]),this['_sendingTimer']=null);}[_0x9884d2(0x143)](_0x2c93df){const _0x2f9e73=_0x9884d2;return this[_0x2f9e73(0x3eb)](),this['_injector'][_0x2f9e73(0x40d)](_0x4b9c5b,this[_0x2f9e73(0x258)],this['type'],null,this[_0x2f9e73(0x44f)],this[_0x2f9e73(0x3f2)],_0x2c93df);}};_0x27ecb8=_0x5e05f6=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x169)])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0xa,_0x5199be['ITransformService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x27ecb8);let _0x57ae4a=_0x25d68a=class extends _0x26e5b5{constructor(_0x180175,_0x4e6460,_0x103a8a,_0x41fc57,_0x2d7d7b,_0xbd2d3c,_0x19ba92,_0x39f69f,_0x52778a,_0x36ff7a,_0x12ae4a){const _0x2cdfeb=_0x9884d2;super(_0x180175,_0x4e6460,_0x103a8a,[],_0x41fc57,_0x19ba92,_0x36ff7a,_0xbd2d3c,_0x12ae4a),this[_0x2cdfeb(0x46a)]=_0x2d7d7b,this['_logService']=_0x39f69f,this['_transformService']=_0x52778a,_0x60128a(this,_0x2cdfeb(0x45f),_0x2cdfeb(0x1cf)),_0x60128a(this,_0x2cdfeb(0x269),0x0),_0x60128a(this,_0x2cdfeb(0x300),0x0),_0x60128a(this,_0x2cdfeb(0x425),void 0x0),_0x60128a(this,_0x2cdfeb(0x14a),void 0x0);}['appendMutation'](_0x2ff023){const _0x255c75=_0x9884d2;this[_0x255c75(0x3eb)]();let _0x3118b4=this['_injector'][_0x255c75(0x40d)](_0x1e3872,this['unitID'],this[_0x255c75(0x415)],this['_awaitingChangeset'],[_0x2ff023],this[_0x255c75(0x3f2)],this[_0x255c75(0x425)]);return _0x3118b4['_updateLocalCache'](),_0x3118b4;}[_0x9884d2(0x32d)](_0x262a6e){const _0x360299=_0x9884d2;if(this[_0x360299(0x2db)](_0x262a6e))return this[_0x360299(0x3eb)](),this['_injector']['createInstance'](_0x394019,this[_0x360299(0x258)],this[_0x360299(0x415)],this[_0x360299(0x402)],[],null,[_0x262a6e],this['_handler']);try{let _0x2aef68=this['_transformService']['transformChangesets']([_0x262a6e],[this[_0x360299(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x2aef68)){let {c1Prime:_0x3062f0,c2Prime:_0x4b0b68}=_0x2aef68;this['_executeRemoteChangeset'](_0x3062f0[0x0]),_0x4b0b68[0x0][_0x360299(0x1d4)]=this['_getCurrentRevision'](),this[_0x360299(0x3eb)]();let _0x22d8ab=this[_0x360299(0x46a)][_0x360299(0x40d)](_0x25d68a,this[_0x360299(0x258)],this[_0x360299(0x415)],_0x4b0b68[0x0],this['_handler']);return _0x22d8ab['_updateLocalCache'](),_0x22d8ab;}throw _0x2aef68[_0x360299(0x1b5)];}catch(_0x3e2744){return this['_logService'][_0x360299(0x1b5)](_0x3e2744),this[_0x360299(0x143)](!0x1);}}[_0x9884d2(0x2de)](_0x43d502){const _0x5623cd=_0x9884d2;this['_clearScheduledTask']();let _0x1cbfaa=this[_0x5623cd(0x196)][_0x5623cd(0x421)](this[_0x5623cd(0x258)]);if(_0x43d502[_0x5623cd(0x2f4)]<=_0x1cbfaa)return this;if(this[_0x5623cd(0x2db)](_0x43d502))return this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x394019,this['unitID'],this['type'],this['_awaitingChangeset'],[],_0x43d502['revision'],[],this[_0x5623cd(0x3f2)]);this[_0x5623cd(0x301)]();let _0x593297=this[_0x5623cd(0x46a)][_0x5623cd(0x40d)](_0x57c5eb,this[_0x5623cd(0x258)],this[_0x5623cd(0x415)],this[_0x5623cd(0x3f2)]);return _0x593297[_0x5623cd(0x34f)](),_0x593297;}[_0x9884d2(0x21f)](_0x20fef7){const _0x5c7def=_0x9884d2;return this[_0x5c7def(0x143)](!!(_0x20fef7!=null&&_0x20fef7[_0x5c7def(0x439)]));}['onRemoteRetry'](_0x22f515){const _0x3a992a=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x3a992a(0x3ec)]():(this[_0x3a992a(0x425)]=_0x415646(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x22f515[_0x3a992a(0x12c)]}),this[_0x3a992a(0x14a)]=this[_0x3a992a(0x425)][_0x3a992a(0x23b)](({reqId:_0x5605b8,timeout:_0x42707a})=>{const _0x4b6056=_0x3a992a;this[_0x4b6056(0x447)](_0x5605b8,_0x42707a);}),this);}['toggleOffline'](){const _0x12d032=_0x9884d2;return this['_clearScheduledTask'](),this['_injector'][_0x12d032(0x40d)](_0x20a1e1,this['unitID'],this[_0x12d032(0x415)],this[_0x12d032(0x402)],[],this[_0x12d032(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x8780e7=_0x9884d2;this['_handler'][_0x8780e7(0x15f)](this[_0x8780e7(0x402)]);}[_0x9884d2(0x143)](_0x4444aa){const _0x2c7942=_0x9884d2;return this['_clearScheduledTask'](),this[_0x2c7942(0x46a)][_0x2c7942(0x40d)](_0x4b9c5b,this[_0x2c7942(0x258)],this[_0x2c7942(0x415)],this['_awaitingChangeset'],[],this[_0x2c7942(0x3f2)],_0x4444aa);}[_0x9884d2(0x447)](_0x4fd463,_0x23d1b6){const _0x132069=_0x9884d2;var _0x471b8c;_0x4fd463===((_0x471b8c=this['_awaitingChangeset'])==null?void 0x0:_0x471b8c[_0x132069(0x12c)])&&(this[_0x132069(0x1fc)](),this[_0x132069(0x269)]=_0x23d1b6===0x0?0x3e8:Math[_0x132069(0x231)](_0x23d1b6*0x2,_0x5b1e26),this[_0x132069(0x300)]+=this[_0x132069(0x269)]);}[_0x9884d2(0x3eb)](){const _0x176019=_0x9884d2;var _0x3c3163;(_0x3c3163=this['_sender'])==null||_0x3c3163[_0x176019(0x29f)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x57ae4a=_0x25d68a=_0x33ad5b([_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x6,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x8,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x57ae4a);let _0x1e3872=_0x1aa808=class extends _0x26e5b5{constructor(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x560c27,_0x3ca60a,_0x22e410,_0x20d452,_0x1b58c8,_0x32588e,_0x1ee5a6,_0x3f7175){const _0x17e121=_0x9884d2;super(_0x35cf9e,_0x4f9073,_0x58e353,_0x43e725,_0x2d87d5,_0x20d452,_0x1ee5a6,_0x22e410,_0x3f7175),this[_0x17e121(0x46a)]=_0x3ca60a,this[_0x17e121(0x344)]=_0x1b58c8,this['_transformService']=_0x32588e,this['localCacheService']=_0x3f7175,_0x60128a(this,_0x17e121(0x45f),_0x17e121(0x283)),_0x60128a(this,_0x17e121(0x269),0x0),_0x60128a(this,'_maxTotalRetryTimeout',0x0),_0x60128a(this,_0x17e121(0x425),void 0x0),_0x60128a(this,_0x17e121(0x14a),void 0x0),_0x560c27&&(this[_0x17e121(0x425)]=_0x560c27,this[_0x17e121(0x14a)]=this['_resendTimer']['subscribe'](({reqId:_0x3aba34,timeout:_0x8922ae})=>{const _0x334cbc=_0x17e121;this[_0x334cbc(0x447)](_0x3aba34,_0x8922ae);}));}[_0x9884d2(0x3ea)](_0x31f260){const _0x51a130=_0x9884d2;return this[_0x51a130(0x44f)][_0x51a130(0x42c)](_0x31f260),this;}['onRemoteChangeset'](_0x3c9ef9){const _0x5a7e72=_0x9884d2;if(this['_checkMissing'](_0x3c9ef9))return this[_0x5a7e72(0x3eb)](),this['_injector'][_0x5a7e72(0x40d)](_0x394019,this[_0x5a7e72(0x258)],this[_0x5a7e72(0x415)],this['_awaitingChangeset'],this[_0x5a7e72(0x44f)],null,[_0x3c9ef9],this[_0x5a7e72(0x3f2)]);try{let _0x1938d4=this[_0x5a7e72(0x2a6)][_0x5a7e72(0x270)]([_0x3c9ef9],[this[_0x5a7e72(0x402)]],!0x1);if((0x0,_0x5199be['isTransformChangesetsSuccess'])(_0x1938d4)){let {c1Prime:_0x5a3057,c2Prime:_0x503401}=_0x1938d4,_0x15b627=this['_transformService'][_0x5a7e72(0x457)](_0x5a3057[0x0],this[_0x5a7e72(0x44f)]);if((0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x15b627)){let {c1Prime:_0x1dff4d,m2Prime:_0x32fb21}=_0x15b627;return this[_0x5a7e72(0x24d)](_0x1dff4d),_0x503401[0x0][_0x5a7e72(0x1d4)]=this['_getCurrentRevision'](),this[_0x5a7e72(0x3eb)](),this[_0x5a7e72(0x46a)][_0x5a7e72(0x40d)](_0x1aa808,this['unitID'],this['type'],_0x503401[0x0],_0x32fb21,this[_0x5a7e72(0x3f2)],void 0x0);}throw _0x15b627[_0x5a7e72(0x1b5)];}throw _0x1938d4[_0x5a7e72(0x1b5)];}catch(_0xcb0eed){return this[_0x5a7e72(0x344)]['error'](_0xcb0eed),this['_onConflict'](!0x1);}}[_0x9884d2(0x2de)](_0x1b88f1){const _0xddd303=_0x9884d2;this[_0xddd303(0x3eb)]();let _0x3f2bff=this[_0xddd303(0x21d)]();if(_0x1b88f1['revision']<=_0x3f2bff)return this;if(this[_0xddd303(0x2db)](_0x1b88f1))return this[_0xddd303(0x46a)][_0xddd303(0x40d)](_0x394019,this['unitID'],this[_0xddd303(0x415)],this['_awaitingChangeset'],this['_pendingMutations'],_0x1b88f1[_0xddd303(0x2f4)],[],this[_0xddd303(0x3f2)]);this[_0xddd303(0x301)]();let _0x5ac893=this['_injector'][_0xddd303(0x40d)](_0x27ecb8,this[_0xddd303(0x258)],this[_0xddd303(0x415)],this['_pendingMutations'],this[_0xddd303(0x3f2)]);return _0x5ac893['_schedule'](),_0x5ac893['_updateLocalCache'](),_0x5ac893;}['onRemoteRej'](_0x40cc90){const _0x4a52e2=_0x9884d2;return this[_0x4a52e2(0x143)](!!(_0x40cc90!=null&&_0x40cc90[_0x4a52e2(0x439)]));}['onRemoteRetry'](_0x3fd1aa){const _0x1a3b89=_0x9884d2;return this['_maxTotalRetryTimeout']>_0x11c58e?this[_0x1a3b89(0x3ec)]():(this[_0x1a3b89(0x425)]=_0x415646(this[_0x1a3b89(0x269)],{'timeout':this[_0x1a3b89(0x269)],'reqId':_0x3fd1aa['reqId']}),this[_0x1a3b89(0x14a)]=this[_0x1a3b89(0x425)][_0x1a3b89(0x23b)](({reqId:_0x21ab13,timeout:_0x3df606})=>{const _0xc1ea77=_0x1a3b89;this[_0xc1ea77(0x447)](_0x21ab13,_0x3df606);}),this);}[_0x9884d2(0x3ec)](){const _0x133e14=_0x9884d2;return this[_0x133e14(0x3eb)](),this[_0x133e14(0x46a)][_0x133e14(0x40d)](_0x20a1e1,this[_0x133e14(0x258)],this[_0x133e14(0x415)],this[_0x133e14(0x402)],this[_0x133e14(0x44f)],this[_0x133e14(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x1fc)](){const _0x5424ec=_0x9884d2;this[_0x5424ec(0x3f2)][_0x5424ec(0x15f)](this['_awaitingChangeset']);}['_onConflict'](_0x47c18a){const _0x23123d=_0x9884d2;return this[_0x23123d(0x3eb)](),this[_0x23123d(0x46a)]['createInstance'](_0x4b9c5b,this[_0x23123d(0x258)],this[_0x23123d(0x415)],null,this[_0x23123d(0x44f)],this[_0x23123d(0x3f2)],_0x47c18a);}[_0x9884d2(0x447)](_0x32a38f,_0x30773c){const _0x571ae4=_0x9884d2;var _0x3ebb03;_0x32a38f===((_0x3ebb03=this[_0x571ae4(0x402)])==null?void 0x0:_0x3ebb03[_0x571ae4(0x12c)])&&(this['resend'](),this[_0x571ae4(0x269)]=_0x30773c===0x0?0x3e8:Math[_0x571ae4(0x231)](_0x30773c*0x2,_0x5b1e26),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x9884d2(0x3eb)](){const _0x53d6b2=_0x9884d2;var _0x4d080a;(_0x4d080a=this[_0x53d6b2(0x14a)])==null||_0x4d080a[_0x53d6b2(0x29f)](),this[_0x53d6b2(0x269)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x1e3872=_0x1aa808=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515['Inject'])(_0x4b2515['Injector'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x1e3872);let _0x4b9c5b=class extends _0x26e5b5{constructor(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x326fa5=!0x1,_0x197bcc,_0x23ae37,_0xe51963,_0x4bc507,_0x5388dd,_0xbc9eb2,_0xab6356){const _0x50f092=_0x9884d2;super(_0x42e685,_0x5d3024,_0x4a76ea,_0x56f4fd,_0x53c3b0,_0x23ae37,_0xe51963,_0x4bc507,_0xab6356),this['_isPermissionRej']=_0x326fa5,this[_0x50f092(0x2ba)]=_0x197bcc,this['_localeService']=_0x5388dd,this['_collaborationUIEventService']=_0xbc9eb2,this['localCacheService']=_0xab6356,_0x60128a(this,_0x50f092(0x45f),_0x50f092(0x1bf)),this[_0x50f092(0x149)](),this['_showConflictProcessingNotification'](),this['_prepareConflictRecovery']();}[_0x9884d2(0x3ea)](){return this;}['onRemoteChangeset'](){return this;}[_0x9884d2(0x2de)](){return this;}[_0x9884d2(0x21f)](){return this;}[_0x9884d2(0x39b)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x34cec3=_0x9884d2;throw Error(_0x34cec3(0x320));}async[_0x9884d2(0x259)](){const _0x3862dd=_0x9884d2;var _0x4562d8,_0x722370;await((_0x4562d8=this[_0x3862dd(0x323)])==null||(_0x722370=_0x4562d8[_0x3862dd(0x25d)])==null?void 0x0:_0x722370['call'](_0x4562d8,this[_0x3862dd(0x258)],_0x3862dd(0x1bf))[_0x3862dd(0x2d9)](()=>void 0x0));try{var _0x5076fc;await((_0x5076fc=this[_0x3862dd(0x323)])==null?void 0x0:_0x5076fc[_0x3862dd(0x21c)](this['unitID']));}catch{this[_0x3862dd(0x427)][_0x3862dd(0x1db)]({'id':_0x3862dd(0x260),'unitID':this['unitID']});return;}this[_0x3862dd(0x428)]();}[_0x9884d2(0x35b)](){const _0x321d4a=_0x9884d2;this[_0x321d4a(0x427)][_0x321d4a(0x1db)]({'id':_0x321d4a(0x296)});}[_0x9884d2(0x428)](){const _0x640f17=_0x9884d2;this['_isPermissionRej']?this[_0x640f17(0x427)]['emitEvent']({'id':_0x640f17(0x1f9)}):this[_0x640f17(0x427)][_0x640f17(0x1db)]({'id':_0x640f17(0x24a)});}['_disableEditing'](){const _0x31c305=_0x9884d2;this[_0x31c305(0x2ba)][_0x31c305(0x2c7)](new _0x4ea268[(_0x31c305(0x34e))](this['unitID'])['id'],!0x1);}};_0x4b9c5b=_0x33ad5b([_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IPermissionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515['IUndoRedoService']),_0x3b5628(0x9,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0xa,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0xb,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x4b9c5b);let _0x20a1e1=class extends _0x26e5b5{constructor(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3625ee,_0x1de92b,_0x3cbd68,_0x93d6a1,_0x45a137){const _0x200071=_0x9884d2;super(_0x113332,_0x30b37e,_0x406625,_0xf8f1c6,_0x214fc3,_0x3cbd68,_0x93d6a1,_0x1de92b,_0x45a137),this[_0x200071(0x46a)]=_0x3625ee,_0x60128a(this,_0x200071(0x45f),_0x200071(0x219));}['appendMutation'](_0x307747){const _0x368033=_0x9884d2;return this[_0x368033(0x44f)][_0x368033(0x42c)](_0x307747),this[_0x368033(0x34f)](),this;}['onRemoteChangeset'](_0x35d57c){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x9884d2(0x2de)](){const _0x1bad45=_0x9884d2;throw Error(_0x1bad45(0x43a));}['onRemoteRej'](){const _0x11f3a2=_0x9884d2;throw Error(_0x11f3a2(0x1e4));}['onRemoteRetry'](){return this;}[_0x9884d2(0x3ec)](){return this;}['toggleOnline'](){const _0x274484=_0x9884d2;let {_injector:_0x334bc7,_pendingMutations:_0x47e987,_awaitingChangeset:_0x3939a1,unitID:_0x145129,_handler:_0x533ca2,type:_0x4291ea}=this,_0x560bee=_0x2f4bec(_0x334bc7,_0x145129,_0x4291ea,_0x3939a1,_0x47e987,_0x533ca2);return _0x560bee instanceof _0x27ecb8?_0x560bee[_0x274484(0x334)]():(_0x560bee instanceof _0x1e3872||_0x560bee instanceof _0x57ae4a)&&_0x560bee['resend'](),_0x560bee;}['resend'](){const _0x13fea1=_0x9884d2;throw Error(_0x13fea1(0x3a4));}};_0x20a1e1=_0x33ad5b([_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x201)]),_0x3b5628(0x9,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x20a1e1);let _0x394019=class extends _0x26e5b5{constructor(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1125ac,_0x5cc252,_0x1044d9,_0x51f1d9,_0x85aa8,_0x23d3a6,_0x20ee28,_0xe0b3a,_0x178df5,_0x5c00d9){const _0x1c4e63=_0x9884d2;super(_0x2d6a48,_0x4c3a3a,_0x2f86eb,_0x5ae717,_0x1044d9,_0x20ee28,_0xe0b3a,_0x85aa8,_0x5c00d9),this[_0x1c4e63(0x3bb)]=_0x1125ac,this[_0x1c4e63(0x282)]=_0x5cc252,this[_0x1c4e63(0x46a)]=_0x51f1d9,this['_logService']=_0x23d3a6,this['_transformService']=_0x178df5,this[_0x1c4e63(0x43b)]=_0x5c00d9,_0x60128a(this,_0x1c4e63(0x45f),_0x1c4e63(0x2dc));}['onMissedChangesetFetched'](_0x4632bf){const _0x1f8642=_0x9884d2;try{if(this[_0x1f8642(0x1c4)](_0x4632bf)['missingChangesets'])throw Error(_0x1f8642(0x481));if(this['_handleRemoteChangesets']([...this[_0x1f8642(0x282)]][_0x1f8642(0x122)]((_0x4cfb1f,_0x4442f3)=>_0x4cfb1f['revision']-_0x4442f3['revision']))[_0x1f8642(0x2fb)])return this[_0x1f8642(0x282)]=[],this[_0x1f8642(0x34f)](),this[_0x1f8642(0x3f2)][_0x1f8642(0x228)]({'from':this[_0x1f8642(0x21d)](),'to':0x0}),this;let _0x53d16d=this[_0x1f8642(0x402)],_0x398153=this['_pendingMutations'],_0x2a67e2;if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]!==0x0)_0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x1e3872,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,_0x398153,this['_handler'],void 0x0);else{if(_0x53d16d&&_0x398153[_0x1f8642(0x147)]===0x0)_0x53d16d[_0x1f8642(0x1d4)]=this[_0x1f8642(0x21d)](),_0x2a67e2=this['_injector'][_0x1f8642(0x40d)](_0x57ae4a,this['unitID'],this[_0x1f8642(0x415)],_0x53d16d,this[_0x1f8642(0x3f2)]);else{if(_0x398153[_0x1f8642(0x147)]!==0x0){let _0x1ece0e=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x27ecb8,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],_0x398153,this[_0x1f8642(0x3f2)]);_0x1ece0e[_0x1f8642(0x334)](),_0x2a67e2=_0x1ece0e;}else _0x2a67e2=this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x57c5eb,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this['_handler']);}}return _0x2a67e2[_0x1f8642(0x34f)](),_0x2a67e2;}catch(_0x19b2a3){return this['_logService'][_0x1f8642(0x1b5)](_0x1f8642(0x30c),_0x1f8642(0x3cf),_0x19b2a3),this[_0x1f8642(0x46a)][_0x1f8642(0x40d)](_0x4b9c5b,this[_0x1f8642(0x258)],this[_0x1f8642(0x415)],this[_0x1f8642(0x402)],this[_0x1f8642(0x44f)],this[_0x1f8642(0x3f2)],!0x1);}}[_0x9884d2(0x1c4)](_0x3a4af5){const _0x184b88=_0x9884d2;this['_acknowledgeAwaitingIfReady']();for(let _0x4d45fa=0x0;_0x4d45fa<_0x3a4af5[_0x184b88(0x147)];_0x4d45fa++){let _0x18a521=_0x3a4af5[_0x4d45fa],_0x1498a6=this[_0x184b88(0x21d)]();if(!(_0x18a521[_0x184b88(0x2f4)]<=_0x1498a6)){if(_0x18a521['revision']>_0x1498a6+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x18a521)){this[_0x184b88(0x463)]();continue;}this[_0x184b88(0x21b)](_0x18a521),this[_0x184b88(0x3fd)]();}}return{'missingChangesets':!0x1};}[_0x9884d2(0x21b)](_0x3b94f1){const _0x2434d4=_0x9884d2;let _0x171d77=_0x3b94f1,_0x310eab=this['_awaitingChangeset'];if(_0x310eab){let _0x2283d7=this[_0x2434d4(0x2a6)][_0x2434d4(0x270)]([_0x3b94f1],[_0x310eab],!0x1);if(!(0x0,_0x5199be[_0x2434d4(0x387)])(_0x2283d7))throw _0x2283d7['error'];_0x171d77=_0x2283d7[_0x2434d4(0x25e)][0x0],_0x310eab=_0x2283d7['c2Prime'][0x0];}let _0x158fed=this[_0x2434d4(0x44f)];if(_0x158fed['length']){let _0x3b5963=this['_transformService']['transformMutationsWithChangeset'](_0x171d77,_0x158fed);if(!(0x0,_0x5199be['isTransformMutationsWithChangesetSuccess'])(_0x3b5963))throw _0x3b5963[_0x2434d4(0x1b5)];_0x171d77=_0x3b5963[_0x2434d4(0x25e)],_0x158fed=_0x3b5963['m2Prime'];}this[_0x2434d4(0x24d)](_0x171d77),_0x310eab&&(_0x310eab[_0x2434d4(0x1d4)]=this[_0x2434d4(0x21d)]()),this[_0x2434d4(0x402)]=_0x310eab,this[_0x2434d4(0x44f)]=_0x158fed;}[_0x9884d2(0x3fd)](){const _0x1ba19d=_0x9884d2;if(!this[_0x1ba19d(0x402)]||this[_0x1ba19d(0x3bb)]==null)return;let _0xe3012f=this[_0x1ba19d(0x21d)]();if(this[_0x1ba19d(0x3bb)]<=_0xe3012f)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x1ba19d(0x3bb)]+'.');this[_0x1ba19d(0x3bb)]===_0xe3012f+0x1&&this[_0x1ba19d(0x463)]();}['_acknowledgeAwaiting'](){const _0x3a8205=_0x9884d2;this[_0x3a8205(0x301)](),this[_0x3a8205(0x402)]=null,this[_0x3a8205(0x3bb)]=null;}[_0x9884d2(0x272)](_0x5b18cf){const _0x5d6082=_0x9884d2;let _0x162b69=this[_0x5d6082(0x402)];return!_0x162b69||!_0x162b69[_0x5d6082(0x356)]||_0x162b69[_0x5d6082(0x12c)]===null||_0x162b69[_0x5d6082(0x12c)]===void 0x0?!0x1:_0x5b18cf[_0x5d6082(0x258)]===_0x162b69[_0x5d6082(0x258)]&&_0x5b18cf[_0x5d6082(0x356)]===_0x162b69[_0x5d6082(0x356)]&&_0x5b18cf[_0x5d6082(0x12c)]===_0x162b69[_0x5d6082(0x12c)];}[_0x9884d2(0x1fc)](){const _0x56e788=_0x9884d2;throw Error(_0x56e788(0x1e2));}[_0x9884d2(0x3ea)](_0x1b410d){const _0x151e77=_0x9884d2;return this[_0x151e77(0x44f)]['push'](_0x1b410d),this;}['onRemoteChangeset'](_0x143726){const _0x5da245=_0x9884d2;return this[_0x5da245(0x282)][_0x5da245(0x42c)](_0x143726),this;}[_0x9884d2(0x2de)](_0x3d5528){const _0x1bb96b=_0x9884d2;if(this[_0x1bb96b(0x402)]){let _0x25b2bb=this[_0x1bb96b(0x21d)]();return _0x3d5528[_0x1bb96b(0x2f4)]<=_0x25b2bb||(_0x25b2bb+0x1===_0x3d5528[_0x1bb96b(0x2f4)]?(this[_0x1bb96b(0x301)](),this[_0x1bb96b(0x402)]=null,this[_0x1bb96b(0x3bb)]=null):this[_0x1bb96b(0x3bb)]=_0x3d5528[_0x1bb96b(0x2f4)]),this;}if(_0x3d5528[_0x1bb96b(0x2f4)]<=this[_0x1bb96b(0x21d)]())return this;throw Error(_0x1bb96b(0x211));}['onRemoteRej'](_0x539054){const _0x4e3b22=_0x9884d2;return this[_0x4e3b22(0x143)](!!(_0x539054!=null&&_0x539054[_0x4e3b22(0x439)]));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x51ffa7=_0x9884d2;return this[_0x51ffa7(0x46a)][_0x51ffa7(0x40d)](_0x20a1e1,this['unitID'],this[_0x51ffa7(0x415)],this[_0x51ffa7(0x402)],this[_0x51ffa7(0x44f)],this[_0x51ffa7(0x3f2)]);}[_0x9884d2(0x357)](){return this;}[_0x9884d2(0x143)](_0x269fca){const _0x1cf3b1=_0x9884d2;return this[_0x1cf3b1(0x46a)][_0x1cf3b1(0x40d)](_0x4b9c5b,this['unitID'],this[_0x1cf3b1(0x415)],this[_0x1cf3b1(0x402)],this[_0x1cf3b1(0x44f)],this[_0x1cf3b1(0x3f2)],_0x269fca);}};_0x394019=_0x33ad5b([_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IUndoRedoService']),_0x3b5628(0xc,_0x5199be[_0x9884d2(0x1ec)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x394019);function _0x2f4bec(_0xa2deea,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf){const _0x2aa35f=_0x9884d2;return _0x116220&&_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea[_0x2aa35f(0x40d)](_0x1e3872,_0x130de3,_0x4d4f16,_0x116220,_0x2472b2,_0x2f3acf,void 0x0):_0x116220?_0xa2deea[_0x2aa35f(0x40d)](_0x57ae4a,_0x130de3,_0x4d4f16,_0x116220,_0x2f3acf):_0x2472b2[_0x2aa35f(0x147)]?_0xa2deea['createInstance'](_0x27ecb8,_0x130de3,_0x4d4f16,_0x2472b2,_0x2f3acf):_0xa2deea[_0x2aa35f(0x40d)](_0x57c5eb,_0x130de3,_0x4d4f16,_0x2f3acf);}let _0xe2b433=class extends _0x4b2515['RxDisposable']{get[_0x9884d2(0x144)](){const _0x28ed07=_0x9884d2;return this[_0x28ed07(0x237)];}constructor(_0xc7b9d0,_0x1ff7d7,_0x57f758,_0x5ca1d1,_0x553546,_0x401a89,_0x3586ff,_0x228d6a,_0x2a081b,_0xb67ded,_0x3cb9fd,_0x28ec7e,_0x2aeb6d,_0x70edf6){const _0x2df4dd=_0x9884d2;super(),this[_0x2df4dd(0x258)]=_0xc7b9d0,this['session']=_0x1ff7d7,this[_0x2df4dd(0x3e2)]=_0x57f758,this[_0x2df4dd(0x46a)]=_0x5ca1d1,this['_compressMutationService']=_0x553546,this[_0x2df4dd(0x1f4)]=_0x401a89,this[_0x2df4dd(0x196)]=_0x3586ff,this[_0x2df4dd(0x186)]=_0x228d6a,this[_0x2df4dd(0x118)]=_0x2a081b,this[_0x2df4dd(0x344)]=_0xb67ded,this[_0x2df4dd(0x2ef)]=_0x3cb9fd,this['_permissionService']=_0x28ec7e,this['_singleActiveUnitService']=_0x2aeb6d,this[_0x2df4dd(0x323)]=_0x70edf6,_0x60128a(this,_0x2df4dd(0x29b),new _0xccd21e[(_0x2df4dd(0x379))](null)),_0x60128a(this,_0x2df4dd(0x416),this['_state$'][_0x2df4dd(0x43c)]()),_0x60128a(this,'_state',void 0x0),_0x60128a(this,_0x2df4dd(0x355),!0x1),_0x60128a(this,'_changesetSessionId',''),_0x60128a(this,_0x2df4dd(0x28d),0x0),_0x60128a(this,_0x2df4dd(0x298),this[_0x2df4dd(0x416)][_0x2df4dd(0x486)]((0x0,_0xccd21e[_0x2df4dd(0x333)])(_0x2376f8=>_0x2376f8?_0x2376f8[_0x2df4dd(0x45f)]:_0x2df4dd(0x219)),(0x0,_0xccd21e['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0x60128a(this,_0x2df4dd(0x2fe),!0x1),_0x60128a(this,_0x2df4dd(0x26f),[]);}async['init'](){const _0x4fc8da=_0x9884d2;if(this[_0x4fc8da(0x144)])throw Error(_0x4fc8da(0x3c3));await this[_0x4fc8da(0x386)]();}[_0x9884d2(0x1c3)](){const _0xfcfaa8=_0x9884d2;return this[_0xfcfaa8(0x355)]=!0x0,(0x0,_0x4b2515[_0xfcfaa8(0x299)])(()=>{const _0x352fe3=_0xfcfaa8;this['_collaborationPaused']=!0x1,this[_0x352fe3(0x46e)]();});}[_0x9884d2(0x2e2)](_0x4075d9){const _0x531846=_0x9884d2;this[_0x531846(0x17a)](_0x4075d9);}[_0x9884d2(0x3ad)](_0x51c65a){const _0x4f3121=_0x9884d2;this[_0x4f3121(0x237)]=_0x51c65a,this[_0x4f3121(0x29b)]['next'](_0x51c65a);}async[_0x9884d2(0x386)](){const _0x19a05a=_0x9884d2;if(this[_0x19a05a(0x3ad)](await this[_0x19a05a(0x2f2)]()),this['_singleActiveUnitService']){var _0x25ed18;(_0x25ed18=this['_singleActiveUnitService'])==null||_0x25ed18[_0x19a05a(0x191)](this['unitID']),this[_0x19a05a(0x472)](this[_0x19a05a(0x20f)][_0x19a05a(0x3e0)](this[_0x19a05a(0x258)])[_0x19a05a(0x23b)](_0x31ff01=>{const _0x2acbe1=_0x19a05a;this[_0x2acbe1(0x344)]['debug']('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x31ff01),_0x31ff01===0x1?(this['_eventService'][_0x2acbe1(0x1db)]({'id':_0x2acbe1(0x3c7)}),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x1),this['_permissionService'][_0x2acbe1(0x124)](!0x1)):(this[_0x2acbe1(0x2ba)][_0x2acbe1(0x2c7)](new _0x4ea268[(_0x2acbe1(0x34e))](this[_0x2acbe1(0x258)])['id'],!0x0),this[_0x2acbe1(0x2ba)][_0x2acbe1(0x124)](!0x0));}));}let _0x30a5f9=!0x1;return this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['sessionStatus$'][_0x19a05a(0x23b)](_0x367c9d=>{const _0x3a8552=_0x19a05a;_0x367c9d===0x3?this['_toggleOnline'](_0x30a5f9):_0x367c9d===0x2&&(_0x30a5f9=!0x0,this[_0x3a8552(0x39d)]());})),this[_0x19a05a(0x472)](this[_0x19a05a(0x28b)]['event$'][_0x19a05a(0x23b)](_0x2fdd04=>{const _0x22e5b9=_0x19a05a;try{switch(_0x2fdd04[_0x22e5b9(0x1b3)]){case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x41b)]:this['_onRemoteChangeset']((0x0,_0x5199be['parseProtocolChangeset'])(_0x2fdd04[_0x22e5b9(0x1b4)]));break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x1f7)]:this['_onRemoteACK'](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x19d)]:this[_0x22e5b9(0x468)]();break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x238)]:this[_0x22e5b9(0x3f3)](_0x2fdd04[_0x22e5b9(0x1b4)]);break;case _0x5199be[_0x22e5b9(0x261)][_0x22e5b9(0x18e)]:this['_onFetchMissResult'](_0x2fdd04[_0x22e5b9(0x1b4)][_0x22e5b9(0x3cd)][_0x22e5b9(0x333)](_0xa0c399=>(0x0,_0x5199be[_0x22e5b9(0x22c)])(_0xa0c399)));break;case _0x5199be[_0x22e5b9(0x261)]['PERMISSION_REJ']:this[_0x22e5b9(0x468)]({'isPermissionRej':!0x0});break;case _0x5199be['CollaborationEvent'][_0x22e5b9(0x32a)]:}}catch(_0x4ff8b5){throw console[_0x22e5b9(0x1b5)](_0x22e5b9(0x1e5),_0x4ff8b5),_0x4ff8b5;}})),this['_state'];}['_unlockTransition'](){const _0xc864c=_0x9884d2;this[_0xc864c(0x2fe)]=!0x1;}[_0x9884d2(0x436)](){const _0x499860=_0x9884d2;if(this[_0x499860(0x2fe)])throw Error(_0x499860(0x37d));this[_0x499860(0x2fe)]=!0x0;}[_0x9884d2(0x17a)](_0xc9b537){const _0x466af0=_0x9884d2;this[_0x466af0(0x436)](),this[_0x466af0(0x3ad)](this['_state'][_0x466af0(0x3ea)](_0xc9b537)),this[_0x466af0(0x33b)]();}[_0x9884d2(0x3a3)](_0x21de25){const _0x534203=_0x9884d2;if(!(_0x21de25[_0x534203(0x2f4)]<=this[_0x534203(0x196)][_0x534203(0x421)](this[_0x534203(0x258)]))){if(this[_0x534203(0x355)]){this[_0x534203(0x26f)][_0x534203(0x42c)](_0x21de25);return;}this[_0x534203(0x179)](_0x21de25);}}['_exhaustRemoteChangesetQueue'](){const _0x41c6f0=_0x9884d2;this[_0x41c6f0(0x26f)][_0x41c6f0(0x1e3)](_0x3ad973=>this[_0x41c6f0(0x179)](_0x3ad973)),this[_0x41c6f0(0x26f)]=[];}[_0x9884d2(0x179)](_0x1a0b91){const _0x269bde=_0x9884d2;let _0x16064d=this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x18d)](this[_0x269bde(0x188)][_0x269bde(0x395)][_0x269bde(0x176)]()[_0x269bde(0x1d2)])(_0x1a0b91[_0x269bde(0x25c)],null)||_0x1a0b91[_0x269bde(0x25c)],_0x3ca999={..._0x1a0b91,'mutations':_0x16064d};this[_0x269bde(0x436)](),this[_0x269bde(0x3ad)](this[_0x269bde(0x237)][_0x269bde(0x32d)](_0x3ca999)),this[_0x269bde(0x33b)]();}[_0x9884d2(0x393)](_0x1ad769){const _0x986858=_0x9884d2;this[_0x986858(0x436)](),this[_0x986858(0x3ad)](this['_state']['onRemoteAck'](_0x1ad769)),this[_0x986858(0x33b)]();}['_onRemoteRejected'](_0x5ea219){const _0x35019c=_0x9884d2;this[_0x35019c(0x436)](),this[_0x35019c(0x3ad)](this[_0x35019c(0x237)][_0x35019c(0x21f)](_0x5ea219)),this[_0x35019c(0x33b)]();}[_0x9884d2(0x3f3)](_0x319b36){const _0x4cd980=_0x9884d2;this['_lockTransition'](),this[_0x4cd980(0x3ad)](this['_state'][_0x4cd980(0x39b)](_0x319b36)),this[_0x4cd980(0x33b)]();}[_0x9884d2(0x146)](_0x3bb68f){const _0x36c404=_0x9884d2;if(!(this['_state']instanceof _0x394019))throw TypeError(_0x36c404(0x20b));let _0x2448a9=_0x3bb68f[_0x36c404(0x333)](_0x25e174=>{const _0x397b86=_0x36c404;let _0x138642=this[_0x397b86(0x188)][_0x397b86(0x395)]['fetchThroughInterceptors'](this[_0x397b86(0x188)][_0x397b86(0x395)]['getInterceptPoints']()[_0x397b86(0x1d2)])(_0x25e174[_0x397b86(0x25c)],null)||_0x25e174[_0x397b86(0x25c)];return{..._0x25e174,'mutations':_0x138642};});this[_0x36c404(0x436)](),this[_0x36c404(0x3ad)](this[_0x36c404(0x237)][_0x36c404(0x128)](_0x2448a9)),this[_0x36c404(0x33b)]();}[_0x9884d2(0x39d)](){const _0xcbac54=_0x9884d2;this[_0xcbac54(0x436)](),this[_0xcbac54(0x3ad)](this[_0xcbac54(0x237)][_0xcbac54(0x3ec)]()),this[_0xcbac54(0x33b)]();}[_0x9884d2(0x1c9)](_0x5d5b96=!0x1){const _0x536ad7=_0x9884d2;this[_0x536ad7(0x436)](),this[_0x536ad7(0x3ad)](this[_0x536ad7(0x237)][_0x536ad7(0x357)]()),this[_0x536ad7(0x33b)]();let _0xec24a2=this['_state'];_0x5d5b96&&_0xec24a2 instanceof _0x57c5eb&&(this[_0x536ad7(0x436)](),this['_updateState'](_0xec24a2[_0x536ad7(0x15d)]()),this[_0x536ad7(0x33b)]());}async[_0x9884d2(0x2f2)](){return new Promise(_0xa33ae2=>{const _0x11f756=_0x328a;this['session']['sessionStatus$'][_0x11f756(0x486)]((0x0,_0xccd21e['take'])(0x1))[_0x11f756(0x23b)](async _0x1de063=>{_0xa33ae2(await this['_createInitialStateImpl'](_0x1de063===0x3));});});}[_0x9884d2(0x18c)](){let _0xa1268=this['unitID'];return{'onStateChange':(_0x21e2a2,_0x4cd637)=>{const _0x5edfc9=_0x328a;if(_0x21e2a2!==this['_state'])throw Error(_0x5edfc9(0x1e0)+_0x21e2a2[_0x5edfc9(0x45f)]+_0x5edfc9(0x2cd)+_0x4cd637[_0x5edfc9(0x45f)]+_0x5edfc9(0x16a)+this[_0x5edfc9(0x237)][_0x5edfc9(0x45f)]);this[_0x5edfc9(0x3ad)](_0x4cd637);},'onSendChangeset':_0x2dd10e=>{const _0xfdebb1=_0x328a;_0x2dd10e[_0xfdebb1(0x356)]||(_0x2dd10e['sid']=this['_changesetSessionId'],_0x2dd10e[_0xfdebb1(0x12c)]=++this[_0xfdebb1(0x28d)]);let _0x3405f2={'eventID':_0x5199be[_0xfdebb1(0x261)][_0xfdebb1(0x209)],'data':{'unitID':_0x2dd10e[_0xfdebb1(0x258)],'unitType':this[_0xfdebb1(0x3e2)],'changeset':_0x2dd10e,'memberID':this[_0xfdebb1(0x28b)][_0xfdebb1(0x444)]()}};this[_0xfdebb1(0x28b)][_0xfdebb1(0x2d6)](_0x3405f2,this[_0xfdebb1(0x258)]);},'onMissingChangesets':({from:_0x2de9f3,to:_0x17889e})=>{const _0x316483=_0x328a;this['_logService'][_0x316483(0x348)](_0x316483(0x239),_0x316483(0x370)+_0x2de9f3+'\x20to\x20'+_0x17889e);let _0x2c59fc={'eventID':_0x5199be[_0x316483(0x261)][_0x316483(0x318)],'data':{'unitID':_0xa1268,'unitType':this['_type'],'from':_0x2de9f3,'to':_0x17889e}};this[_0x316483(0x28b)][_0x316483(0x2d6)](_0x2c59fc,this[_0x316483(0x258)]);}};}async['_createInitialStateImpl'](_0x39b4a9){const _0x3e2f7f=_0x9884d2;var _0xb7ce5;let _0x2e856e=await((_0xb7ce5=this[_0x3e2f7f(0x323)])==null?void 0x0:_0xb7ce5[_0x3e2f7f(0x469)](this[_0x3e2f7f(0x258)])),_0x43550d=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x25c)])??[],_0x4b1bda=(_0x2e856e==null?void 0x0:_0x2e856e[_0x3e2f7f(0x232)])??null,_0x338b11=!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x356)])&&!!(_0x4b1bda!=null&&_0x4b1bda[_0x3e2f7f(0x12c)]);this[_0x3e2f7f(0x1aa)]=_0x338b11?_0x4b1bda[_0x3e2f7f(0x356)]:(0x0,_0x5199be[_0x3e2f7f(0x39a)])(),this['_changesetReqId']=_0x338b11?_0x4b1bda[_0x3e2f7f(0x12c)]:0x0;let _0x2854f8=this[_0x3e2f7f(0x258)];try{this[_0x3e2f7f(0x313)](_0x4b1bda,_0x43550d);}catch(_0x12cb3b){this[_0x3e2f7f(0x344)][_0x3e2f7f(0x1b5)](_0x12cb3b);}let _0xbe27b=this[_0x3e2f7f(0x18c)]();if(_0x39b4a9){let _0x13eac3=_0x2f4bec(this[_0x3e2f7f(0x46a)],_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);return _0x13eac3 instanceof _0x27ecb8?_0x13eac3[_0x3e2f7f(0x334)]():(_0x13eac3 instanceof _0x1e3872||_0x13eac3 instanceof _0x57ae4a)&&_0x13eac3['resend'](),_0x13eac3;}return this[_0x3e2f7f(0x46a)][_0x3e2f7f(0x40d)](_0x20a1e1,_0x2854f8,this[_0x3e2f7f(0x3e2)],_0x4b1bda,_0x43550d,_0xbe27b);}['_replayCachedMutations'](_0x2b87df,_0x56e89d){const _0x34ea08=_0x9884d2;var _0x6398ea,_0x26f60b;let _0xf3da4e=this['_compressMutationService'][_0x34ea08(0x395)][_0x34ea08(0x18d)](this['_compressMutationService'][_0x34ea08(0x395)]['getInterceptPoints']()[_0x34ea08(0x1d2)]);(_0x6398ea=_0xf3da4e((_0x2b87df==null?void 0x0:_0x2b87df[_0x34ea08(0x25c)])||[],null))==null||_0x6398ea[_0x34ea08(0x1e3)](_0x39599f=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x39599f['id'],_0x39599f[_0x34ea08(0x3f5)])),(_0x26f60b=_0xf3da4e(_0x56e89d||[],null))==null||_0x26f60b[_0x34ea08(0x1e3)](_0x2dab0d=>this[_0x34ea08(0x2ef)][_0x34ea08(0x47a)](_0x2dab0d['id'],_0x2dab0d[_0x34ea08(0x3f5)]));}};_0xe2b433=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0xe2b433);let _0x94e744=class extends _0xe2b433{constructor(_0x2af5ac,_0x1e39f3,_0x4823f8,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x296926,_0x5e272f,_0xdde246){const _0x2d40eb=_0x9884d2;super(_0x2af5ac,_0x4823f8,_0x1e39f3,_0x5212dd,_0x496af2,_0x40c11d,_0x5ba89e,_0x37e34b,_0x21058b,_0x572c56,_0xe0ca77,_0x246d3a,_0x5e272f,_0xdde246),this['unitID']=_0x2af5ac,this[_0x2d40eb(0x415)]=_0x1e39f3,this[_0x2d40eb(0x3a8)]=_0x296926,_0x60128a(this,'_handlerCallback',null);}[_0x9884d2(0x22d)](_0x572928){this['_handlerCallback']=_0x572928;}['dispose'](){const _0x4123dc=_0x9884d2;this['_handlerCallback']=null,super[_0x4123dc(0x314)]();}[_0x9884d2(0x18c)](){const _0x16d545=_0x9884d2;let _0x575102=super['_createHandler']();return _0x575102['onTransformIME']=_0x2ec0d4=>{const _0x348eae=_0x328a;var _0x4f72d3,_0x560a37;return(_0x4f72d3=this[_0x348eae(0x3c5)])==null||(_0x560a37=_0x4f72d3[_0x348eae(0x31a)])==null?void 0x0:_0x560a37[_0x348eae(0x43d)](_0x4f72d3,_0x2ec0d4);},_0x575102[_0x16d545(0x330)]=_0x458d26=>{const _0x44dc76=_0x16d545;var _0x5c06dd,_0x587442;return(_0x5c06dd=this['_handlerCallback'])==null||(_0x587442=_0x5c06dd[_0x44dc76(0x330)])==null?void 0x0:_0x587442[_0x44dc76(0x43d)](_0x5c06dd,_0x458d26);},_0x575102[_0x16d545(0x3da)]=_0x2b004e=>{const _0x24cf9c=_0x16d545;var _0x2a21d4,_0x376c6a;return((_0x2a21d4=this[_0x24cf9c(0x3c5)])==null||(_0x376c6a=_0x2a21d4['onPrepareTransformSelections'])==null?void 0x0:_0x376c6a[_0x24cf9c(0x43d)](_0x2a21d4,_0x2b004e))??null;},_0x575102[_0x16d545(0x3c2)]=_0x5bfad7=>{const _0x2cffcd=_0x16d545;var _0x34ace1,_0xac5bf7;return(_0x34ace1=this[_0x2cffcd(0x3c5)])==null||(_0xac5bf7=_0x34ace1[_0x2cffcd(0x3c2)])==null?void 0x0:_0xac5bf7[_0x2cffcd(0x43d)](_0x34ace1,_0x5bfad7);},_0x575102['onSyncEditingCollabCursor']=_0x1d6325=>{const _0x1180eb=_0x16d545;var _0x1465ae,_0x1ecd1e;return(_0x1465ae=this[_0x1180eb(0x3c5)])==null||(_0x1ecd1e=_0x1465ae[_0x1180eb(0x3cc)])==null?void 0x0:_0x1ecd1e[_0x1180eb(0x43d)](_0x1465ae,_0x1d6325);},_0x575102[_0x16d545(0x311)]=_0x14f3f9=>{const _0x6aa338=_0x16d545;var _0x793da4,_0x5b49e0;return((_0x793da4=this[_0x6aa338(0x3c5)])==null||(_0x5b49e0=_0x793da4['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b49e0[_0x6aa338(0x43d)](_0x793da4,_0x14f3f9))??_0x14f3f9;},_0x575102['onTransformRemoteChangesetByStateCache']=_0x31e4af=>{const _0x6392d8=_0x16d545;var _0x8decc2,_0x33f126;return((_0x8decc2=this[_0x6392d8(0x3c5)])==null||(_0x33f126=_0x8decc2[_0x6392d8(0x206)])==null?void 0x0:_0x33f126[_0x6392d8(0x43d)](_0x8decc2,_0x31e4af))??_0x31e4af;},_0x575102;}async[_0x9884d2(0x386)](){const _0x3b5556=_0x9884d2;let _0x147c0d=await super['_init']();return this[_0x3b5556(0x472)](this[_0x3b5556(0x3a8)][_0x3b5556(0x27b)][_0x3b5556(0x23b)](_0x5c99ac=>{const _0x3573e0=_0x3b5556;if(_0x5c99ac==null||_0x5c99ac[_0x3573e0(0x3f0)]!==this[_0x3573e0(0x258)])return;let {commandId:_0x35db53,redoState:_0x3049b3,unitId:_0x2a1e37}=_0x5c99ac,_0x3d4a9a={'id':_0x35db53,'type':_0x4b2515[_0x3573e0(0x389)][_0x3573e0(0x46f)],'params':{'unitId':_0x2a1e37,'actions':_0x3049b3[_0x3573e0(0x37a)],'textRanges':null}};this['_onLocalMutation'](_0x3d4a9a);})),this[_0x3b5556(0x472)](this[_0x3b5556(0x2ef)][_0x3b5556(0x1cd)]((_0x3ae6b9,_0x4463f8)=>{const _0x1a012e=_0x3b5556;if(_0x3ae6b9[_0x1a012e(0x415)]!==_0x4b2515[_0x1a012e(0x389)][_0x1a012e(0x46f)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x371)]||_0x4463f8!=null&&_0x4463f8[_0x1a012e(0x1ba)]||_0x3ae6b9['id']===_0x120ed0[_0x1a012e(0x16f)]['id'])return;let _0xfe2257=_0x3ae6b9[_0x1a012e(0x3f5)];if((_0xfe2257==null?void 0x0:_0xfe2257['unitId'])!==this[_0x1a012e(0x258)])return;let _0x5cd73f=_0x3ae6b9,_0x216451=this[_0x1a012e(0x188)][_0x1a012e(0x395)][_0x1a012e(0x18d)](this['_compressMutationService'][_0x1a012e(0x395)][_0x1a012e(0x176)]()[_0x1a012e(0x139)])([_0x5cd73f],this[_0x1a012e(0x118)])||[_0x5cd73f];this[_0x1a012e(0x17a)](_0x216451[0x0]);})),_0x147c0d;}};_0x94e744=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['Injector'])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Inject'])(_0x120ed0[_0x9884d2(0x279)])),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x94e744);let _0x24daae=class extends _0xe2b433{constructor(_0x25d113,_0x1097f9,_0x4b3115,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc){const _0x1d8611=_0x9884d2;super(_0x25d113,_0x4b3115,_0x1097f9,_0x44c4be,_0x4db29c,_0x57b1a5,_0x55a0f1,_0x904355,_0x5e04d6,_0x471971,_0x574a8f,_0x246867,_0x49db5e,_0x24eebc),this[_0x1d8611(0x258)]=_0x25d113,this['type']=_0x1097f9;}async[_0x9884d2(0x386)](){const _0x36c4c8=_0x9884d2;let _0xedcf31=await super['_init']();return this[_0x36c4c8(0x472)](this[_0x36c4c8(0x2ef)][_0x36c4c8(0x1cd)]((_0x1605c1,_0x1e0d08)=>{const _0x12b996=_0x36c4c8;if(_0x1605c1[_0x12b996(0x415)]!==_0x4b2515[_0x12b996(0x389)][_0x12b996(0x46f)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x371)]||_0x1e0d08!=null&&_0x1e0d08[_0x12b996(0x1ba)])return;let _0x40211e=_0x1605c1[_0x12b996(0x3f5)];if((_0x40211e==null?void 0x0:_0x40211e['unitId'])!==this[_0x12b996(0x258)])return;let _0x174a90=_0x1605c1,_0x2bf63f=this[_0x12b996(0x188)]['interceptor'][_0x12b996(0x18d)](this['_compressMutationService'][_0x12b996(0x395)][_0x12b996(0x176)]()[_0x12b996(0x139)])([_0x174a90],this[_0x12b996(0x118)])||[_0x174a90];this[_0x12b996(0x17a)](_0x2bf63f[0x0]);})),_0xedcf31;}};_0x24daae=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x24daae);let _0xe8b1d4=class extends _0xe2b433{constructor(_0x2fdbbd,_0x199b88,_0x1096de,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x592310,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d){const _0xec093b=_0x9884d2;super(_0x2fdbbd,_0x1096de,_0x199b88,_0x2eb52f,_0x5bfad5,_0x37b5a4,_0x4cab16,_0x445d4e,_0x2c39a9,_0x8c74bd,_0x4e920f,_0xc390a0,_0x31d324,_0x56253d),this[_0xec093b(0x258)]=_0x2fdbbd,this[_0xec093b(0x415)]=_0x199b88,this[_0xec093b(0x2e1)]=_0x592310;}[_0x9884d2(0x18c)](){const _0xceed92=_0x9884d2;let _0x3bafdc=super[_0xceed92(0x18c)]();return _0x3bafdc[_0xceed92(0x3c2)]=_0x2a5c37=>this['_sheetTransformSelectionsService'][_0xceed92(0x378)](_0x2a5c37),_0x3bafdc;}async[_0x9884d2(0x386)](){const _0x2a7bb1=_0x9884d2;let _0x274d95=await super['_init']();return this[_0x2a7bb1(0x472)](this[_0x2a7bb1(0x2ef)][_0x2a7bb1(0x1cd)]((_0x727565,_0xe933a8)=>{const _0x5a1a0f=_0x2a7bb1;if(_0x727565[_0x5a1a0f(0x415)]!==_0x4b2515[_0x5a1a0f(0x389)][_0x5a1a0f(0x46f)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x371)]||_0xe933a8!=null&&_0xe933a8[_0x5a1a0f(0x1ba)])return;let _0x2bc7e0=_0x727565[_0x5a1a0f(0x3f5)];if((_0x2bc7e0==null?void 0x0:_0x2bc7e0[_0x5a1a0f(0x3f0)])!==this[_0x5a1a0f(0x258)])return;let _0x327762=_0x727565,_0x5be8f2=this[_0x5a1a0f(0x188)][_0x5a1a0f(0x395)][_0x5a1a0f(0x18d)](this['_compressMutationService']['interceptor'][_0x5a1a0f(0x176)]()[_0x5a1a0f(0x139)])([_0x327762],this[_0x5a1a0f(0x118)])||[_0x327762];this[_0x5a1a0f(0x17a)](_0x5be8f2[0x0]);})),_0x274d95;}};_0xe8b1d4=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['LocaleService'])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x2326c2)),_0x3b5628(0x8,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xc,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xd,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xe,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0xe8b1d4);let _0x3a9411=class extends _0xe2b433{constructor(_0x45bcfd,_0x4334af,_0x3fda22,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578){const _0x5855e3=_0x9884d2;super(_0x45bcfd,_0x3fda22,_0x4334af,_0x1da8e2,_0xe8fa77,_0x2b56d1,_0x8114ef,_0x271d6a,_0x10a728,_0x151186,_0x389715,_0x2225fc,_0x20e6b9,_0x3d5578),this[_0x5855e3(0x258)]=_0x45bcfd,this['type']=_0x4334af;}async['_init'](){const _0x46d8be=_0x9884d2;let _0x59223a=await super[_0x46d8be(0x386)]();return this[_0x46d8be(0x472)](this[_0x46d8be(0x2ef)][_0x46d8be(0x1cd)]((_0x2a687a,_0xe7f08f)=>{const _0xf4b19e=_0x46d8be;if(_0x2a687a[_0xf4b19e(0x415)]!==_0x4b2515[_0xf4b19e(0x389)][_0xf4b19e(0x46f)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x371)]||_0xe7f08f!=null&&_0xe7f08f[_0xf4b19e(0x1ba)])return;let _0x196946=_0x2a687a[_0xf4b19e(0x3f5)];if((_0x196946==null?void 0x0:_0x196946[_0xf4b19e(0x3f0)])!==this[_0xf4b19e(0x258)])return;let _0x235949=_0x2a687a,_0x4fd273=this[_0xf4b19e(0x188)]['interceptor'][_0xf4b19e(0x18d)](this[_0xf4b19e(0x188)][_0xf4b19e(0x395)][_0xf4b19e(0x176)]()[_0xf4b19e(0x139)])([_0x235949],this[_0xf4b19e(0x118)])||[_0x235949];this[_0xf4b19e(0x17a)](_0x4fd273[0x0]);})),_0x59223a;}};_0x3a9411=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x3a9411);let _0x4deb99=class extends _0xe2b433{constructor(_0x2d5626,_0x24df18,_0x38a190,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946){const _0x1a9c72=_0x9884d2;super(_0x2d5626,_0x38a190,_0x24df18,_0x47a40c,_0x2b9c2b,_0x4f2b1f,_0x484110,_0x21dcb5,_0xf68338,_0xdac90c,_0x5a68aa,_0x101aec,_0x389be7,_0x596946),this[_0x1a9c72(0x258)]=_0x2d5626,this[_0x1a9c72(0x415)]=_0x24df18;}async[_0x9884d2(0x386)](){const _0x113e73=_0x9884d2;let _0x5b479b=await super[_0x113e73(0x386)]();return this[_0x113e73(0x472)](this[_0x113e73(0x2ef)][_0x113e73(0x1cd)]((_0x201929,_0x5b4b90)=>{const _0x4e6d6c=_0x113e73;if(_0x201929[_0x4e6d6c(0x415)]!==_0x4b2515[_0x4e6d6c(0x389)][_0x4e6d6c(0x46f)]||_0x5b4b90!=null&&_0x5b4b90[_0x4e6d6c(0x371)]||_0x5b4b90!=null&&_0x5b4b90['onlyLocal'])return;let _0x13a315=_0x201929[_0x4e6d6c(0x3f5)];if((_0x13a315==null?void 0x0:_0x13a315['unitId'])!==this[_0x4e6d6c(0x258)])return;let _0x5dfae5=_0x201929,_0x24247d=this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x18d)](this[_0x4e6d6c(0x188)][_0x4e6d6c(0x395)][_0x4e6d6c(0x176)]()[_0x4e6d6c(0x139)])([_0x5dfae5],this[_0x4e6d6c(0x118)])||[_0x5dfae5];this[_0x4e6d6c(0x17a)](_0x24247d[0x0]);})),_0x5b479b;}};_0x4deb99=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515['Inject'])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be['RevisionService'])),_0x3b5628(0x7,(0x0,_0x4b2515['Inject'])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515['ILogService']),_0x3b5628(0xa,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0xb,_0x4b2515['IPermissionService']),_0x3b5628(0xc,(0x0,_0x4b2515['Optional'])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x4deb99);let _0x2226d9=class extends _0xe2b433{constructor(_0x39bacc,_0x4963e3,_0x137430,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b){const _0x9ac04b=_0x9884d2;super(_0x39bacc,_0x137430,_0x4963e3,_0xdf35e7,_0x5da045,_0x17eaf3,_0x4ac213,_0x9ef862,_0x427784,_0x451f46,_0x1f8b64,_0x102053,_0x3961b6,_0x520a5b),this['unitID']=_0x39bacc,this[_0x9ac04b(0x415)]=_0x4963e3;}async['_init'](){const _0x5b4c2a=_0x9884d2;let _0x620ab5=await super[_0x5b4c2a(0x386)]();return this[_0x5b4c2a(0x472)](this[_0x5b4c2a(0x2ef)][_0x5b4c2a(0x1cd)]((_0x31c8a0,_0x503ce1)=>{const _0x2c6d9c=_0x5b4c2a;if(_0x31c8a0[_0x2c6d9c(0x415)]!==_0x4b2515['CommandType']['MUTATION']||_0x503ce1!=null&&_0x503ce1['fromCollab']||_0x503ce1!=null&&_0x503ce1[_0x2c6d9c(0x1ba)])return;let _0x5842ac=_0x31c8a0[_0x2c6d9c(0x3f5)];if((_0x5842ac==null?void 0x0:_0x5842ac[_0x2c6d9c(0x3f0)])!==this[_0x2c6d9c(0x258)])return;let _0x4c325a=_0x31c8a0,_0x48f578=this['_compressMutationService'][_0x2c6d9c(0x395)][_0x2c6d9c(0x18d)](this[_0x2c6d9c(0x188)][_0x2c6d9c(0x395)][_0x2c6d9c(0x176)]()['COMPRESS_MUTATION_SEND'])([_0x4c325a],this[_0x2c6d9c(0x118)])||[_0x4c325a];this[_0x2c6d9c(0x17a)](_0x48f578[0x0]);})),_0x620ab5;}};_0x2226d9=_0x33ad5b([_0x3b5628(0x3,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x4,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x376)])),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)])),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x5199be[_0x9884d2(0x1fb)])),_0x3b5628(0x7,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x8,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x9,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0xa,_0x4b2515['ICommandService']),_0x3b5628(0xb,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0xc,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x55fbad)),_0x3b5628(0xd,(0x0,_0x4b2515['Optional'])(_0x2b4688))],_0x2226d9);let _0x3ce8fd=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x1d8));function _0x36e901(_0x280e88){const _0x7fdfa7=_0x9884d2;let _0x2ea195=_0x280e88[_0x7fdfa7(0x1b4)],_0x3f48d9=JSON['parse'](_0x2ea195);switch(_0x3f48d9['cmd']){case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x280)]:case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x35a)]:{let _0x2c5fe7=_0x3f48d9['infoRsp'];return{..._0x3f48d9,'data':_0x2c5fe7,'cmd':_0x3f48d9['cmd']};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x213)]:{let _0x372532=_0x3f48d9[_0x7fdfa7(0x3b8)];return{..._0x3f48d9,'data':_0x372532,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};}case _0x349630[_0x7fdfa7(0x293)][_0x7fdfa7(0x2c1)]:{let _0x4122f9=_0x3f48d9[_0x7fdfa7(0x3a9)];switch(_0x4122f9['eventID']){case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x384)]:var _0x148b50;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x148b50=_0x4122f9[_0x7fdfa7(0x26a)])==null?void 0x0:_0x148b50['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f7)]:var _0x2dd5e7;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2dd5e7=_0x4122f9['csAckEvent'])==null?void 0x0:_0x2dd5e7['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be['CollaborationEvent']['NEW_CHANGESETS']:var _0x5607e8;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x5607e8=_0x4122f9[_0x7fdfa7(0x3ef)])==null?void 0x0:_0x5607e8['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['CHANGESET_REJ']:var _0x507131;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x507131=_0x4122f9[_0x7fdfa7(0x34b)])==null?void 0x0:_0x507131['cs']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x238)]:var _0x2b1979;return{..._0x3f48d9,'data':{..._0x4122f9,'data':(_0x2b1979=_0x4122f9[_0x7fdfa7(0x11c)])==null?void 0x0:_0x2b1979['cs']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x1f5)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x1f8)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x377)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x2e7)]},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x197)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['leaveEvent']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be['CollaborationEvent'][_0x7fdfa7(0x460)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)]['LIVESHARE_FETCH_OPERATIONS']:case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x44c)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x419)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x3f9)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['liveShareNewHost']},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['MSG_FOR_ERROR']:return{..._0x3f48d9,'data':_0x4122f9,'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['COMMENT_UPDATE']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x13a)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)]['UPDATE_PERMISSION_OBJ']:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x278)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x478)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9['shouldCloseConn']},'cmd':_0x3f48d9['cmd']};case _0x5199be[_0x7fdfa7(0x261)][_0x7fdfa7(0x32a)]:return{..._0x3f48d9,'data':{..._0x4122f9,'data':_0x4122f9[_0x7fdfa7(0x366)]},'cmd':_0x3f48d9[_0x7fdfa7(0x35f)]};default:return _0x3f48d9;}}default:return _0x3f48d9;}}function _0x320ae2(_0x3dc493){const _0x1db023=_0x9884d2;switch(_0x3dc493[_0x1db023(0x35f)]){case _0x349630[_0x1db023(0x293)][_0x1db023(0x280)]:case _0x349630[_0x1db023(0x293)]['HELLO']:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493['routeKey']});case _0x349630['CombCmd'][_0x1db023(0x198)]:{let _0x4de506;switch(_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b3)]){case _0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x1f5)],'updateCursorEvent':_0x3dc493['data']['data']};break;case _0x5199be[_0x1db023(0x261)]['USERS_LEAVE']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)]['USERS_LEAVE'],'leaveEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x377)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x377)],'joinEvent':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent'][_0x1db023(0x460)]:_0x4de506={'eventID':_0x5199be['CollaborationEvent'][_0x1db023(0x460)],'liveShareNewHost':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_OPERATION']:_0x4de506={'eventID':_0x5199be['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x3f9)],'liveShareTerminate':_0x3dc493[_0x1db023(0x1b4)][_0x1db023(0x1b4)]};break;case _0x5199be['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x14e)],'liveShareRequestHost':_0x3dc493['data'][_0x1db023(0x1b4)]};break;case _0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]:_0x4de506={'eventID':_0x5199be[_0x1db023(0x261)][_0x1db023(0x2b1)]};break;default:_0x4de506={'eventID':_0x3dc493['data']['eventID']};}return JSON['stringify']({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'collaMsg':_0x4de506});}case _0x349630[_0x1db023(0x293)][_0x1db023(0x213)]:return JSON['stringify']({'cmd':_0x3dc493[_0x1db023(0x35f)],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'joinReq':_0x3dc493[_0x1db023(0x1b4)]});case _0x349630[_0x1db023(0x293)][_0x1db023(0x2fc)]:return JSON[_0x1db023(0x3ee)]({'cmd':_0x3dc493['cmd'],'routeKey':_0x3dc493[_0x1db023(0x3f4)],'leaveReq':_0x3dc493['data']});default:throw Error(_0x1db023(0x2e8));}}let _0x4f7089=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x236));function _0x91aa4f(_0x130d95,_0x1cfb53,_0x7f067a){const _0x431a88=_0x9884d2;return _0x130d95+'/'+_0x1cfb53+_0x431a88(0x3b3)+_0x7f067a+_0x431a88(0x3c9);}let _0x1df3dc=class extends _0x4b2515['Disposable']{constructor(_0x32437f,_0x1adece,_0x38bc9d,_0x38b53e,_0x62919){const _0x21482e=_0x9884d2;super(),this[_0x21482e(0x46a)]=_0x32437f,this['_httpService']=_0x1adece,this[_0x21482e(0x3c6)]=_0x38bc9d,this[_0x21482e(0x344)]=_0x38b53e,this[_0x21482e(0x331)]=_0x62919;}['_doCreateSocket'](_0x57a379){const _0x30d7e3=_0x9884d2;let _0x169deb=this[_0x30d7e3(0x46a)][_0x30d7e3(0x2eb)](_0x530da8[_0x30d7e3(0x19f)]);if(!_0x169deb)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x5c2ffb=_0x169deb[_0x30d7e3(0x3b2)](_0x57a379);if(!_0x5c2ffb)throw Error(_0x30d7e3(0x44d));let _0xf8d825=new _0x4b2515[(_0x30d7e3(0x277))](),_0x2e59c1=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb['close$'][_0x30d7e3(0x23b)](_0x549212=>_0x2e59c1[_0x30d7e3(0x17e)](_0x549212))),_0xf8d825['add']((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x2e59c1[_0x30d7e3(0x41f)]()));let _0x236b20=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x199)][_0x30d7e3(0x23b)](_0x44f913=>_0x236b20[_0x30d7e3(0x17e)](_0x44f913))),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515['toDisposable'])(()=>_0x236b20[_0x30d7e3(0x41f)]()));let _0x21e5a4=new _0xccd21e[(_0x30d7e3(0x200))]();_0xf8d825[_0x30d7e3(0x2a4)](_0x5c2ffb[_0x30d7e3(0x400)][_0x30d7e3(0x23b)](_0x5f46dd=>{const _0xf03245=_0x30d7e3;let _0x1031ac=_0x36e901(_0x5f46dd);_0x21e5a4[_0xf03245(0x17e)](_0x1031ac);})),_0xf8d825[_0x30d7e3(0x2a4)]((0x0,_0x4b2515[_0x30d7e3(0x299)])(()=>_0x21e5a4[_0x30d7e3(0x41f)]()));let _0x449514,_0x20b06b=()=>{const _0x102195=_0x30d7e3;_0x236b20[_0x102195(0x17e)](new Event('connection\x20error')),_0x2e59c1[_0x102195(0x17e)](new Event(_0x102195(0x130))),_0x449514[_0x102195(0x243)]();};return _0x449514={'memberID':'','close$':_0x2e59c1['asObservable'](),'error$':_0x236b20[_0x30d7e3(0x43c)](),'open$':_0x5c2ffb[_0x30d7e3(0x265)],'message$':_0x21e5a4[_0x30d7e3(0x43c)](),'send':_0x313295=>{const _0x99a789=_0x30d7e3;if(_0x313295[_0x99a789(0x35f)]===_0x349630[_0x99a789(0x293)][_0x99a789(0x198)]){if(_0x313295[_0x99a789(0x1b4)]['eventID']===_0x5199be[_0x99a789(0x261)][_0x99a789(0x209)]){this[_0x99a789(0x2c9)](_0x449514,_0x313295[_0x99a789(0x1b4)])[_0x99a789(0x2d9)](_0x509579=>{const _0x3885c4=_0x99a789;this[_0x3885c4(0x344)]['error'](_0x509579),_0x20b06b();});return;}if(_0x313295['data'][_0x99a789(0x1b3)]===_0x5199be[_0x99a789(0x261)][_0x99a789(0x318)]){let _0xbf2899=_0x313295[_0x99a789(0x1b4)];this[_0x99a789(0x3c0)](_0xbf2899)[_0x99a789(0x2b5)](_0x255bb7=>{const _0x106f20=_0x99a789;_0x21e5a4[_0x106f20(0x17e)]({'cmd':_0x349630[_0x106f20(0x293)]['RECV'],'code':_0x349630[_0x106f20(0x440)]['OK'],'routeKey':_0xbf2899[_0x106f20(0x1b4)][_0x106f20(0x258)],'routeType':'','data':{'eventID':_0x5199be[_0x106f20(0x261)][_0x106f20(0x18e)],'data':{'changesets':_0x255bb7}}});})['catch'](_0x113b42=>{const _0x567b81=_0x99a789;this[_0x567b81(0x344)]['error'](_0x113b42),_0x20b06b();});return;}}_0x5c2ffb[_0x99a789(0x2d6)](_0x320ae2(_0x313295));},'close':()=>{const _0x465d27=_0x30d7e3;_0x5c2ffb[_0x465d27(0x243)](),_0xf8d825[_0x465d27(0x314)]();}},_0x449514;}async[_0x9884d2(0x2c9)](_0x1a0829,_0x4c994a){const _0xb97675=_0x9884d2;let {unitType:_0x4d4036,unitID:_0x4a5a44,changeset:_0x528e9a}=_0x4c994a['data'],_0x122aa4={'unitID':_0x4a5a44,'memberID':_0x1a0829[_0xb97675(0x417)],'type':_0x4d4036,'changeset':(0x0,_0x5199be[_0xb97675(0x21a)])(_0x528e9a)},_0x1f4f4d=this['_configService']['getConfig'](_0x3c0330),_0x436f30=_0x91aa4f((_0x1f4f4d==null?void 0x0:_0x1f4f4d[_0xb97675(0x3c8)])??_0xb97675(0x485),_0x4d4036,_0x4a5a44);try{await this[_0xb97675(0x1d0)][_0xb97675(0x31b)](_0x436f30,{'body':_0x122aa4});}catch(_0x155549){throw this['_logService'][_0xb97675(0x1b5)]('[CollaborationSession]',_0xb97675(0x290)),_0x155549;}}async[_0x9884d2(0x3c0)](_0x4681f8){const _0x19b578=_0x9884d2;let {unitID:_0x86b1f2,from:_0x42002f,to:_0x5e7b31,unitType:_0x5d2651}=_0x4681f8[_0x19b578(0x1b4)];return(await this[_0x19b578(0x331)][_0x19b578(0x30d)]({'metadata':void 0x0},{'unitID':_0x86b1f2,'type':_0x5d2651,'from':_0x42002f,'to':_0x5e7b31}))['changesets']['map'](_0x34cb36=>((_0x34cb36['mutations']===null||_0x34cb36[_0x19b578(0x25c)]===void 0x0)&&(_0x34cb36[_0x19b578(0x25c)]=[]),_0x34cb36));}};_0x1df3dc=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x4,_0x5199be['ISnapshotServerService'])],_0x1df3dc);let _0x14183e=(0x0,_0x4b2515[_0x9884d2(0x2c3)])(_0x9884d2(0x18b));function _0x8c16f0(_0x15162c={}){const _0x2c8c03=_0x9884d2;return _0x15162c['resolveUnit']?{'resolveUnit':_0x15162c['resolveUnit']}:{'resolveUnit':_0xf7315b=>({'target':{'unitId':_0xf7315b[_0x2c8c03(0x3f0)],'unitType':_0xf7315b[_0x2c8c03(0x294)]}})};}function _0x163e78(_0x292dd3,_0x404ee5,_0x282c45){const _0x187b88=_0x9884d2;let _0x5919b9=_0x282c45[_0x187b88(0x479)]['endpoint'];if(_0x5919b9!=null&&_0x5919b9[_0x187b88(0x2c4)]()==='')throw Error(_0x187b88(0x29a));if(!_0x282c45[_0x187b88(0x479)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x292dd3,'unitType':_0x404ee5,'target':{'endpoint':_0x5919b9,'unitId':_0x282c45[_0x187b88(0x479)][_0x187b88(0x3f0)],'unitType':_0x282c45[_0x187b88(0x479)][_0x187b88(0x294)]??_0x404ee5},'changeset':_0x282c45[_0x187b88(0x166)]};}let _0x283d67=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x33c3a5,_0x4d2567,_0x4c0374,_0x429065,_0xb88d64,_0x4312d2,_0x2ee563){const _0x576a62=_0x9884d2;super(),this[_0x576a62(0x46a)]=_0x33c3a5,this['_logService']=_0x4d2567,this[_0x576a62(0x3c6)]=_0x4c0374,this[_0x576a62(0x159)]=_0x429065,this[_0x576a62(0x427)]=_0xb88d64,this['_adapter']=_0x4312d2,this[_0x576a62(0x185)]=_0x2ee563,_0x60128a(this,_0x576a62(0x175),new Map()),_0x60128a(this,_0x576a62(0x3de),new Map()),_0x60128a(this,_0x576a62(0x3a1),new Map()),_0x60128a(this,'_socketChannels',new Map()),_0x60128a(this,_0x576a62(0x352),this[_0x576a62(0x132)](void 0x0)['socket$'][_0x576a62(0x43c)]()),_0x60128a(this,_0x576a62(0x310),new _0xccd21e['BehaviorSubject'](0x0)),_0x60128a(this,'status$',this['_status$'][_0x576a62(0x43c)]()),this[_0x576a62(0x17f)]();}[_0x9884d2(0x17f)](){const _0x5511d9=_0x9884d2;this['_networkConditionService']&&this[_0x5511d9(0x472)](this['_networkConditionService'][_0x5511d9(0x2bf)][_0x5511d9(0x23b)](_0xa6e86=>{const _0xf2b175=_0x5511d9;_0xa6e86&&this[_0xf2b175(0x158)](),_0xa6e86||this[_0xf2b175(0x397)]['forEach'](_0x3abeed=>this[_0xf2b175(0x216)](_0x3abeed));}));}[_0x9884d2(0x314)](){const _0x4ed839=_0x9884d2;super[_0x4ed839(0x314)](),this[_0x4ed839(0x397)][_0x4ed839(0x1e3)](_0x216968=>{const _0x297bf8=_0x4ed839;var _0x4318c0,_0xfa6c6a;(_0x4318c0=_0x216968[_0x297bf8(0x390)])==null||_0x4318c0[_0x297bf8(0x29f)](),_0x216968['socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](_0x216968),this[_0x297bf8(0x309)](_0x216968),this[_0x297bf8(0x1a6)](_0x216968),(_0xfa6c6a=_0x216968['socket$'][_0x297bf8(0x383)]())==null||_0xfa6c6a[_0x297bf8(0x243)](),_0x216968['socket$'][_0x297bf8(0x41f)]();}),this['_socketChannels'][_0x4ed839(0x214)](),this[_0x4ed839(0x175)][_0x4ed839(0x1e3)](_0x3b1985=>_0x3b1985['dispose']()),this[_0x4ed839(0x175)]['clear'](),this[_0x4ed839(0x3a1)][_0x4ed839(0x214)](),this['_status$']['complete']();}async[_0x9884d2(0x1a4)](_0x4b265c,_0x53efb6){const _0x5f0503=_0x9884d2;if(this['_sessions'][_0x5f0503(0x40a)](_0x4b265c))return this[_0x5f0503(0x175)][_0x5f0503(0x2eb)](_0x4b265c);let _0x4f8d9b=this['_pendingSessions'][_0x5f0503(0x2eb)](_0x4b265c);if(_0x4f8d9b)return _0x4f8d9b;let _0x17e2f6=this[_0x5f0503(0x47b)](_0x4b265c,_0x53efb6);this[_0x5f0503(0x3de)][_0x5f0503(0x41e)](_0x4b265c,_0x17e2f6);try{return await _0x17e2f6;}finally{this[_0x5f0503(0x3de)][_0x5f0503(0x287)](_0x4b265c);}}async['_createSession'](_0x5f523a,_0xfd5ca0){const _0xd28c36=_0x9884d2;let _0x5b88e4=await this[_0xd28c36(0x1a1)](_0x5f523a,_0xfd5ca0),_0x1f511f=this[_0xd28c36(0x132)](_0x5b88e4['target']['endpoint']);this[_0xd28c36(0x23a)](_0x1f511f);let _0x242dd2=this[_0xd28c36(0x46a)][_0xd28c36(0x40d)](_0x188c53,_0x5b88e4,_0x1f511f[_0xd28c36(0x352)][_0xd28c36(0x43c)]());return this[_0xd28c36(0x175)][_0xd28c36(0x41e)](_0x5f523a,_0x242dd2),this['_sessionChannels'][_0xd28c36(0x41e)](_0x5f523a,_0x1f511f['endpointKey']),_0x242dd2;}['closeSession'](_0xdb0608){const _0x49dd17=_0x9884d2;let _0x1f50f6=this['_sessions'][_0x49dd17(0x2eb)](_0xdb0608),_0x63df11=this['_sessionChannels'][_0x49dd17(0x2eb)](_0xdb0608);if(_0x1f50f6&&(this[_0x49dd17(0x175)][_0x49dd17(0x287)](_0xdb0608),this[_0x49dd17(0x3a1)]['delete'](_0xdb0608),_0x1f50f6[_0x49dd17(0x243)]()),_0x63df11&&!this[_0x49dd17(0x271)](_0x63df11)){var _0x1ff0c3;let _0x4d77f3=this[_0x49dd17(0x397)][_0x49dd17(0x2eb)](_0x63df11);_0x4d77f3==null||(_0x1ff0c3=_0x4d77f3[_0x49dd17(0x352)][_0x49dd17(0x383)]())==null||_0x1ff0c3[_0x49dd17(0x243)]();}}['reconnect'](){const _0x5787ee=_0x9884d2;(this['_socketChannels']['size']?[...this['_socketChannels']['values']()]:[this[_0x5787ee(0x132)](void 0x0)])['forEach'](_0x432e8b=>{const _0x5c0b59=_0x5787ee;_0x432e8b[_0x5c0b59(0x2d0)]=0x0,this['_clearRetryConnectingTimer'](_0x432e8b),this['_tryReconnect'](_0x432e8b);});}[_0x9884d2(0x141)](_0x41100b){const _0xe515e=_0x9884d2;_0x41100b[_0xe515e(0x117)]!=null&&(clearTimeout(_0x41100b[_0xe515e(0x117)]),_0x41100b['retryConnectingTimer']=null);}async[_0x9884d2(0x2e3)](_0x419d73){const _0x5b007d=_0x9884d2;let _0x5a006b=this[_0x5b007d(0x3c6)][_0x5b007d(0x32f)](_0x3c0330),_0x40de5e=_0x419d73['endpoint']??(_0x5a006b==null?void 0x0:_0x5a006b[_0x5b007d(0x430)])??_0x5b007d(0x3fb),_0x1c76b4=await this[_0x5b007d(0x159)]['createSocket'](_0x40de5e);return _0x419d73[_0x5b007d(0x127)]=_0x1c76b4,_0x1c76b4;}async[_0x9884d2(0x23a)](_0x51c6a2){const _0x231436=_0x9884d2;try{let _0x520b3c=_0x51c6a2['socket$'][_0x231436(0x383)]()??_0x51c6a2[_0x231436(0x127)]??await this[_0x231436(0x2e3)](_0x51c6a2);if(_0x520b3c){var _0x3c45e6;let _0x2a79cb=_0x520b3c['send'];_0x520b3c['send']=_0x36b545=>(_0x36b545['cmd']!==_0x349630['CombCmd'][_0x231436(0x2fc)]&&this[_0x231436(0x36e)](_0x51c6a2),_0x2a79cb[_0x231436(0x349)](_0x520b3c,[_0x36b545])),(_0x3c45e6=_0x51c6a2[_0x231436(0x390)])==null||_0x3c45e6[_0x231436(0x29f)](),_0x51c6a2[_0x231436(0x390)]=null,_0x51c6a2[_0x231436(0x390)]=_0x520b3c[_0x231436(0x400)][_0x231436(0x23b)](_0x269594=>this[_0x231436(0x136)](_0x51c6a2,_0x520b3c,_0x269594)),_0x520b3c['error$']['pipe']((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0xafd6ce=>this[_0x231436(0x344)][_0x231436(0x1b5)](_0x231436(0x25f),_0xafd6ce)),_0x520b3c[_0x231436(0x265)][_0x231436(0x486)]((0x0,_0x2c33e8['take'])(0x1))[_0x231436(0x23b)](()=>{const _0x10694f=_0x231436;this[_0x10694f(0x1fe)](_0x51c6a2,_0x520b3c);}),_0x520b3c[_0x231436(0x484)][_0x231436(0x486)]((0x0,_0x2c33e8[_0x231436(0x1dc)])(0x1))[_0x231436(0x23b)](_0x220fcb=>{const _0x76858c=_0x231436;this['_logService'][_0x76858c(0x348)](_0x76858c(0x2b6),'socket\x20close',_0x220fcb),this['_onConnectionFailed'](_0x51c6a2);});}}catch(_0x4d8b16){this['_logService'][_0x231436(0x1b5)](_0x4d8b16),this[_0x231436(0x19c)](_0x51c6a2);}}['_onConnectionOpen'](_0x224e3c,_0x1186fc){const _0x5020b1=_0x9884d2;this[_0x5020b1(0x344)][_0x5020b1(0x348)]('[CollaborationSessionService]',_0x5020b1(0x18a)),_0x1186fc[_0x5020b1(0x2d6)]({'cmd':_0x349630[_0x5020b1(0x293)]['HELLO']}),this[_0x5020b1(0x36e)](_0x224e3c);}[_0x9884d2(0x216)](_0x35dcb3){const _0x354a56=_0x9884d2;_0x35dcb3['socketReady']=!0x1,_0x35dcb3[_0x354a56(0x127)]=null,this[_0x354a56(0x310)][_0x354a56(0x17e)](0x2),_0x35dcb3[_0x354a56(0x352)][_0x354a56(0x17e)](null),this[_0x354a56(0x309)](_0x35dcb3),this[_0x354a56(0x1a6)](_0x35dcb3);}[_0x9884d2(0x19c)](_0x3e7655){const _0x426f6a=_0x9884d2;this[_0x426f6a(0x216)](_0x3e7655),this[_0x426f6a(0x271)](_0x3e7655[_0x426f6a(0x2a8)])&&(_0x3e7655[_0x426f6a(0x2d0)]<(this[_0x426f6a(0x3c6)][_0x426f6a(0x32f)](_0x426f6a(0x458))??0x3)?(this['_collaborationUIEventService'][_0x426f6a(0x1db)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x3e7655)):this[_0x426f6a(0x427)][_0x426f6a(0x1db)]({'id':_0x426f6a(0x163)}));}[_0x9884d2(0x2ea)](_0x17439a){const _0x45b1df=_0x9884d2;let _0x2ddcca=_0x17439a[_0x45b1df(0x2d0)],_0x3e0cb4=this[_0x45b1df(0x3c6)][_0x45b1df(0x32f)](_0x3c0330),_0x3aecc6=_0x2ddcca===0x0?0x0:((_0x3e0cb4==null?void 0x0:_0x3e0cb4[_0x45b1df(0x483)])??0x4e20)*0x2**_0x2ddcca;_0x17439a['retryConnectingTimer']=setTimeout(()=>{const _0x1124cc=_0x45b1df;clearTimeout(_0x17439a[_0x1124cc(0x117)]),_0x17439a[_0x1124cc(0x117)]=null,this[_0x1124cc(0x23a)](_0x17439a);},_0x3aecc6),_0x17439a[_0x45b1df(0x2d0)]+=0x1;}async[_0x9884d2(0x1a1)](_0x2d2ff8,_0x5a35ea){const _0x1ec27e=_0x9884d2;return _0x163e78(_0x2d2ff8,_0x5a35ea,await this[_0x1ec27e(0x42a)][_0x1ec27e(0x329)]({'unitId':_0x2d2ff8,'unitType':_0x5a35ea}));}['_onMessage'](_0x263751,_0x3a8811,_0x1dea63){const _0x2ed5d2=_0x9884d2;let {cmd:_0x1dcca1}=_0x1dea63;_0x1dcca1===_0x349630[_0x2ed5d2(0x293)]['HELLO']&&!_0x263751['socketReady']&&(_0x3a8811[_0x2ed5d2(0x417)]=_0x1dea63[_0x2ed5d2(0x1b4)][_0x2ed5d2(0x417)],_0x263751[_0x2ed5d2(0x2d0)]=0x0,_0x263751[_0x2ed5d2(0x352)][_0x2ed5d2(0x17e)](_0x3a8811),this[_0x2ed5d2(0x310)][_0x2ed5d2(0x17e)](0x3),_0x263751[_0x2ed5d2(0x351)]=!0x0,_0x263751[_0x2ed5d2(0x127)]=null),_0x1dcca1===_0x349630[_0x2ed5d2(0x293)][_0x2ed5d2(0x280)]&&this[_0x2ed5d2(0x309)](_0x263751),this[_0x2ed5d2(0x36e)](_0x263751);}[_0x9884d2(0x271)](_0x6619b6){const _0xc31e31=_0x9884d2;return[...this[_0xc31e31(0x3a1)]['values']()]['some'](_0x47f76d=>_0x47f76d===_0x6619b6);}[_0x9884d2(0x132)](_0x1c53e5){const _0x4fd072=_0x9884d2;let _0x13b26d=_0x1c53e5??'',_0x398980=this[_0x4fd072(0x397)][_0x4fd072(0x2eb)](_0x13b26d);if(_0x398980)return _0x398980;let _0xa7e94b={'endpointKey':_0x13b26d,'endpoint':_0x1c53e5,'socket$':new _0xccd21e[(_0x4fd072(0x379))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4fd072(0x397)][_0x4fd072(0x41e)](_0x13b26d,_0xa7e94b),_0xa7e94b;}['_rescheduleHeartbeat'](_0x5cd700){const _0x479fc6=_0x9884d2;this[_0x479fc6(0x1a6)](_0x5cd700),_0x5cd700[_0x479fc6(0x12f)]=setTimeout(()=>this[_0x479fc6(0x31c)](_0x5cd700),this[_0x479fc6(0x3c6)][_0x479fc6(0x32f)](_0x479fc6(0x3bc))??0x7530);}['_sendHeartbeat'](_0x2e5bad){const _0x6f7f3e=_0x9884d2;_0x2e5bad[_0x6f7f3e(0x352)]['getValue']()[_0x6f7f3e(0x2d6)]({'cmd':_0x349630[_0x6f7f3e(0x293)]['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x2e5bad);}[_0x9884d2(0x2cc)](_0x41dd83){const _0x24f6e2=_0x9884d2;_0x41dd83[_0x24f6e2(0x2ca)]=setTimeout(()=>this[_0x24f6e2(0x19c)](_0x41dd83),this[_0x24f6e2(0x3c6)][_0x24f6e2(0x32f)](_0x24f6e2(0x207))??0x4e20);}['_clearHeartbeatTimer'](_0x45efdd){const _0x361ab8=_0x9884d2;_0x45efdd[_0x361ab8(0x12f)]!=null&&(clearTimeout(_0x45efdd[_0x361ab8(0x12f)]),_0x45efdd[_0x361ab8(0x12f)]=null);}['_clearTimeoutTimer'](_0x4d2c24){const _0x40e942=_0x9884d2;_0x4d2c24[_0x40e942(0x2ca)]!=null&&(clearTimeout(_0x4d2c24[_0x40e942(0x2ca)]),_0x4d2c24[_0x40e942(0x2ca)]=null);}};_0x283d67=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x3,_0x4f7089),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce)),_0x3b5628(0x5,_0x14183e),_0x3b5628(0x6,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x3ce8fd))],_0x283d67);let _0x4809ba=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x134365,_0x210a1e,_0x15caca,_0x50580a){const _0x149089=_0x9884d2;var _0x2c8958;super(),this['_injector']=_0x134365,this['_collabSessionService']=_0x210a1e,this[_0x149089(0x3c6)]=_0x15caca,this[_0x149089(0x118)]=_0x50580a,_0x60128a(this,_0x149089(0x1cc),new Map()),_0x60128a(this,_0x149089(0x482),new _0xccd21e[(_0x149089(0x200))]()),_0x60128a(this,_0x149089(0x3be),this['_entityInit$'][_0x149089(0x43c)]()),((_0x2c8958=this[_0x149089(0x3c6)]['getConfig'](_0x149089(0x3c1)))==null?void 0x0:_0x2c8958[_0x149089(0x2a9)])!==!0x1&&this['_init']();}[_0x9884d2(0x314)](){const _0x113111=_0x9884d2;super[_0x113111(0x314)](),this[_0x113111(0x1cc)][_0x113111(0x1e3)](_0x2bed69=>_0x2bed69[_0x113111(0x314)]()),this[_0x113111(0x1cc)][_0x113111(0x214)]();}[_0x9884d2(0x16c)](_0x436773){const _0x1d5249=_0x9884d2;return this[_0x1d5249(0x1cc)]['get'](_0x436773)??null;}[_0x9884d2(0x406)](_0x305589){const _0x376278=_0x9884d2;let _0x37185a=this[_0x376278(0x16c)](_0x305589);return _0x37185a?(0x0,_0xccd21e['of'])(_0x37185a):this[_0x376278(0x482)][_0x376278(0x486)]((0x0,_0x2c33e8[_0x376278(0x10d)])(_0x4afbd6=>_0x4afbd6['unitID']===_0x305589));}[_0x9884d2(0x23c)](_0xb3d4d9){const _0x158b39=_0x9884d2;return(0x0,_0xccd21e[_0x158b39(0x224)])(this['getCollabEntity$'](_0xb3d4d9)[_0x158b39(0x486)]((0x0,_0x2c33e8['map'])(()=>void 0x0)));}['_init'](){const _0x512cb5=_0x9884d2;this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x3b4602=>{const _0xf13bd7=_0x512cb5;let _0x5d9045=_0x3b4602['unit'][_0xf13bd7(0x413)](),_0x587f90=await this[_0xf13bd7(0x477)](_0x5d9045,_0x4b2515[_0xf13bd7(0x223)]['UNIVER_SHEET']);this[_0xf13bd7(0x1cc)][_0xf13bd7(0x41e)](_0x5d9045,_0x587f90);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x10f)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x486)]((0x0,_0x2c33e8[_0x512cb5(0x10d)])(_0x1a2f50=>!_0x1a2f50[_0x512cb5(0x145)][_0x512cb5(0x413)]()['startsWith']('__')))['subscribe'](async _0x118cf6=>{const _0x594eb5=_0x512cb5;let _0x2a1158=_0x118cf6[_0x594eb5(0x145)][_0x594eb5(0x413)](),_0x1355c1=await this['_startCollaboration'](_0x2a1158,_0x4b2515[_0x594eb5(0x223)][_0x594eb5(0x10f)]);this['_entities'][_0x594eb5(0x41e)](_0x2a1158,_0x1355c1);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_SLIDE'])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x6d07a9=>{const _0x1010da=_0x512cb5;let _0x4100ed=_0x6d07a9['unit'][_0x1010da(0x413)](),_0x470474=await this[_0x1010da(0x477)](_0x4100ed,_0x4b2515[_0x1010da(0x223)][_0x1010da(0x281)]);this[_0x1010da(0x1cc)][_0x1010da(0x41e)](_0x4100ed,_0x470474);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x339)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8['delay'])(0x10))[_0x512cb5(0x23b)](async _0x387225=>{const _0x538ab3=_0x512cb5;let _0x532432=_0x387225[_0x538ab3(0x145)][_0x538ab3(0x413)](),_0x9e8928=await this[_0x538ab3(0x477)](_0x532432,_0x4b2515[_0x538ab3(0x223)][_0x538ab3(0x339)]);this[_0x538ab3(0x1cc)][_0x538ab3(0x41e)](_0x532432,_0x9e8928);}),this[_0x512cb5(0x118)]['getTypeOfUnitAdded$'](_0x4b2515['UniverInstanceType'][_0x512cb5(0x267)])[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']),(0x0,_0x2c33e8['delay'])(0x10))['subscribe'](async _0x56fecc=>{const _0x43f387=_0x512cb5;let _0x77a74b=_0x56fecc['unit']['getUnitId'](),_0x3559fa=await this[_0x43f387(0x477)](_0x77a74b,_0x4b2515[_0x43f387(0x223)][_0x43f387(0x267)]);this[_0x43f387(0x1cc)][_0x43f387(0x41e)](_0x77a74b,_0x3559fa);}),this[_0x512cb5(0x118)][_0x512cb5(0x3bf)](_0x4b2515['UniverInstanceType'][_0x512cb5(0x1b9)])[_0x512cb5(0x486)]((0x0,_0xccd21e['takeUntil'])(this[_0x512cb5(0x36c)]),(0x0,_0x2c33e8[_0x512cb5(0x3fc)])(0x10))[_0x512cb5(0x23b)](async _0x265bba=>{const _0x526f11=_0x512cb5;let _0x44e276=_0x265bba[_0x526f11(0x145)]['getUnitId'](),_0x58ec7a=await this[_0x526f11(0x477)](_0x44e276,_0x4b2515[_0x526f11(0x223)]['UNIVER_PDF']);this['_entities'][_0x526f11(0x41e)](_0x44e276,_0x58ec7a);}),(0x0,_0xccd21e[_0x512cb5(0x448)])(this[_0x512cb5(0x118)]['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x465)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)]['UNIVER_DOC']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515['UniverInstanceType']['UNIVER_SLIDE']),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x339)]),this[_0x512cb5(0x118)][_0x512cb5(0x47f)](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x267)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4b2515[_0x512cb5(0x223)][_0x512cb5(0x1b9)]))[_0x512cb5(0x486)]((0x0,_0xccd21e[_0x512cb5(0x29e)])(this['dispose$']))[_0x512cb5(0x23b)](_0x237064=>{const _0x3e1af6=_0x512cb5;let _0x4f3342=_0x237064[_0x3e1af6(0x413)](),_0x2867db=this['_entities'][_0x3e1af6(0x2eb)](_0x4f3342);_0x2867db&&(_0x2867db[_0x3e1af6(0x314)](),this[_0x3e1af6(0x1cc)][_0x3e1af6(0x287)](_0x4f3342));});}async[_0x9884d2(0x477)](_0x2da858,_0x53a8fa){const _0xcbc4bc=_0x9884d2;let _0xb192af=await this[_0xcbc4bc(0x455)][_0xcbc4bc(0x1a4)](_0x2da858),_0x5ca766=this[_0xcbc4bc(0x46a)][_0xcbc4bc(0x40d)](this['_getCtorByUniverInstanceType'](_0x53a8fa),_0x2da858,_0x53a8fa,_0xb192af);return await _0x5ca766[_0xcbc4bc(0x2ce)](),this[_0xcbc4bc(0x482)][_0xcbc4bc(0x17e)](_0x5ca766),_0x5ca766;}[_0x9884d2(0x40b)](_0x3533cf){const _0x4a7871=_0x9884d2;switch(_0x3533cf){case _0x4b2515[_0x4a7871(0x223)]['UNIVER_DOC']:return _0x94e744;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x465)]:return _0xe8b1d4;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_SLIDE']:return _0x3a9411;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x339)]:return _0x4deb99;case _0x4b2515[_0x4a7871(0x223)]['UNIVER_BASE']:return _0x24daae;case _0x4b2515[_0x4a7871(0x223)][_0x4a7871(0x1b9)]:return _0x2226d9;default:throw Error(_0x4a7871(0x451)+_0x3533cf);}}};_0x4809ba=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x2,_0x4b2515['IConfigService']),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x405)])],_0x4809ba);var _0x3ff4bc='@univerjs-pro/collaboration-client',_0x303b92=_0x9884d2(0x14f);let _0x2fc493=class extends _0x4b2515['Disposable']{constructor(_0x211476,_0x2137a2){const _0x3ea04f=_0x9884d2;super(),this['_univerInstanceService']=_0x211476,this[_0x3ea04f(0x3c6)]=_0x2137a2,this['_init']();}['_init'](){const _0x18646f=_0x9884d2;this[_0x18646f(0x472)](this[_0x18646f(0x118)]['focused$'][_0x18646f(0x23b)](()=>{const _0x2447f1=_0x18646f;let _0x2a5812=this[_0x2447f1(0x118)][_0x2447f1(0x340)](),_0x43d363=this[_0x2447f1(0x3c6)][_0x2447f1(0x32f)]('DEFAULT_FILE_NAME')??_0x2447f1(0x39f);_0x2a5812 instanceof _0x4b2515[_0x2447f1(0x3b5)]&&(_0x43d363=_0x2a5812['name']),document[_0x2447f1(0x420)]=_0x43d363;}));}};_0x2fc493=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)])],_0x2fc493);let _0x5e4e05=(0x0,_0x4b2515[_0x9884d2(0x2c3)])('base-ui.attachment-io.service'),_0x5b1674=class{constructor(_0x13c454,_0x11be8a,_0x480864){const _0x2e06b9=_0x9884d2;this[_0x2e06b9(0x1d0)]=_0x13c454,this[_0x2e06b9(0x3c6)]=_0x11be8a,this[_0x2e06b9(0x118)]=_0x480864;}['getUploadOptions'](){const _0x395082=_0x9884d2;return this[_0x395082(0x13e)]()[_0x395082(0x11e)]??{};}async[_0x9884d2(0x248)](_0x308a27){const _0x409072=_0x9884d2;let _0xb864ae=this[_0x409072(0x2b9)]();if(_0x1b7456(_0x308a27,_0xb864ae),_0xb864ae[_0x409072(0x247)])return _0xb864ae[_0x409072(0x247)](_0x308a27);let _0x49af20=await this[_0x409072(0x1dd)](_0x308a27);return{'id':_0x49af20,'name':_0x308a27['name'],'mimeType':_0x308a27[_0x409072(0x415)],'size':_0x308a27['size'],'sourceType':_0x4b2515[_0x409072(0x3fe)][_0x409072(0x46c)],'source':_0x49af20};}async[_0x9884d2(0x161)](_0x37683d,_0x623fb7){const _0x598a1d=_0x9884d2;if(_0x623fb7!==_0x4b2515[_0x598a1d(0x3fe)]['UUID'])return _0x37683d;let _0x44d161=(await this[_0x598a1d(0x1d0)][_0x598a1d(0x2eb)](this['_getSignURL']()[_0x598a1d(0x3b0)](_0x598a1d(0x2e9),_0x37683d)))[_0x598a1d(0x450)];if(_0x44d161[_0x598a1d(0x1b5)]&&_0x44d161[_0x598a1d(0x1b5)][_0x598a1d(0x3f6)]!==_0x349630[_0x598a1d(0x328)]['OK'])throw _0x44d161[_0x598a1d(0x1b5)];if(!_0x44d161[_0x598a1d(0x424)])throw Error(_0x598a1d(0x253));return(0x0,_0x4b2515[_0x598a1d(0x302)])(_0x44d161[_0x598a1d(0x424)],this['_getDownloadEndpointURL']());}async[_0x9884d2(0x1dd)](_0x1351ab){const _0x22b842=_0x9884d2;let _0xa30f0e=this[_0x22b842(0x118)][_0x22b842(0x340)](),_0x9fe994=_0xa30f0e==null?void 0x0:_0xa30f0e[_0x22b842(0x413)]();if(!_0x9fe994)throw Error(_0x22b842(0x33f));let _0x147d83=new FormData();_0x147d83['append'](_0x22b842(0x23e),_0x1351ab);let _0xab3e31=this['_getUploadFileURL']()+_0x22b842(0x295)+_0x1351ab[_0x22b842(0x442)][_0x22b842(0x353)]()+'&source='+_0x349630[_0x22b842(0x3a6)][_0x22b842(0x14c)]+'&assign='+encodeURIComponent(_0x9fe994),_0x4619ad=(await this['_httpService'][_0x22b842(0x31b)](_0xab3e31,{'body':_0x147d83}))[_0x22b842(0x450)][_0x22b842(0x414)];if(typeof _0x4619ad!='string'||!_0x4619ad)throw Error(_0x22b842(0x22f));return _0x4619ad;}[_0x9884d2(0x264)](){const _0x32a014=_0x9884d2;return this[_0x32a014(0x13e)]()[_0x32a014(0x431)]??_0x32a014(0x42f);}[_0x9884d2(0x322)](){const _0x4642ad=_0x9884d2;return this['_getConfig']()[_0x4642ad(0x218)]??'/universer-api/file/{fileID}/sign-url';}[_0x9884d2(0x337)](){const _0x3f188c=_0x9884d2;let _0x2edee1=this[_0x3f188c(0x13e)]();return _0x2edee1[_0x3f188c(0x47d)]?_0x2edee1[_0x3f188c(0x47d)]:typeof location<'u'?location[_0x3f188c(0x142)]:_0x2edee1[_0x3f188c(0x431)]??'';}['_getConfig'](){const _0x5a5ef5=_0x9884d2;return this[_0x5a5ef5(0x3c6)][_0x5a5ef5(0x32f)](_0x5a5ef5(0x3c1))??{};}};_0x5b1674=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0x5b1674);function _0x1b7456(_0x3f2a01,_0x3bef62){const _0x2b73d8=_0x9884d2;var _0x4ef5f5;if(_0x3bef62[_0x2b73d8(0x3e5)]!=null&&_0x3f2a01[_0x2b73d8(0x442)]>_0x3bef62[_0x2b73d8(0x3e5)])throw Error(_0x2b73d8(0x15a));if((_0x4ef5f5=_0x3bef62[_0x2b73d8(0x40c)])!=null&&_0x4ef5f5[_0x2b73d8(0x147)]&&!_0x3bef62[_0x2b73d8(0x40c)][_0x2b73d8(0x3e3)](_0x2d41ff=>_0x3f2a01[_0x2b73d8(0x415)]===_0x2d41ff||_0x3f2a01[_0x2b73d8(0x114)]['endsWith'](_0x2d41ff)||_0x2d41ff[_0x2b73d8(0x2a5)]('/*')&&_0x3f2a01[_0x2b73d8(0x415)][_0x2b73d8(0x12b)](_0x2d41ff[_0x2b73d8(0x3d6)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x324e1c=class{constructor(_0x44fa07,_0x436277,_0x31fcde){const _0x38d7e8=_0x9884d2;this['_configService']=_0x44fa07,this[_0x38d7e8(0x1d0)]=_0x436277,this['localeService']=_0x31fcde,this[_0x38d7e8(0x2ce)]();}[_0x9884d2(0x2ce)](){const _0x4fae09=_0x9884d2;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3c41e3,_0x35b35f)=>_0x35b35f(_0x3c41e3)['pipe']((0x0,_0xccd21e[_0x4fae09(0x1ef)])(async _0x2d4706=>{const _0x229e33=_0x4fae09;let _0x2ce203=_0x2d4706;if(_0x2ce203[_0x229e33(0x45f)]===0x191){if(typeof window>'u')throw Error(_0x229e33(0x41a));if(window[_0x229e33(0x27d)](this['localeService']['t'](_0x229e33(0x1eb)))){let _0x37c0ff=window['encodeURIComponent'](window[_0x229e33(0x2b2)]['href']);window[_0x229e33(0x2b2)]['href']=this[_0x229e33(0x315)]()+'?url='+_0x37c0ff;}}return _0x2ce203;}))});}[_0x9884d2(0x315)](){const _0x1122b6=_0x9884d2;let _0x16d12b=this[_0x1122b6(0x3c6)][_0x1122b6(0x32f)](_0x3c0330);return(_0x16d12b==null?void 0x0:_0x16d12b[_0x1122b6(0x45c)])??'/universer-api/oidc/authpage';}};_0x324e1c=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x32b)]))],_0x324e1c);let _0x15f3fe=class extends _0x4b2515[_0x9884d2(0x1cb)]{constructor(_0x18c2f4,_0x3c12ae){const _0x1d893a=_0x9884d2;super(),this['_HTTPService']=_0x18c2f4,this['_configService']=_0x3c12ae,_0x60128a(this,_0x1d893a(0x3d9),!0x1),this[_0x1d893a(0x3a7)]();}[_0x9884d2(0x3a7)](){const _0x387c52=_0x9884d2;let _0x43e5b2=this;this[_0x387c52(0x472)](this[_0x387c52(0x480)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x530da8[_0x387c52(0x2ac)])({'isMatch'(_0x35845e){const _0x2a4838=_0x387c52;var _0x580e8b;if(_0x35845e[_0x2a4838(0x449)]===_0x2a4838(0x2c8)&&(_0x580e8b=_0x35845e[_0x2a4838(0x138)])!=null&&_0x580e8b[_0x2a4838(0x450)]){let {objectID:_0x59a132,objectType:_0x4fbdf1}=_0x35845e['requestParams'][_0x2a4838(0x450)]||{};if(!_0x59a132||_0x4fbdf1===void 0x0)return!0x1;let _0x3c1823=_0x43e5b2['_getAPIPrefixPath']()+'/'+_0x4fbdf1+_0x2a4838(0x2a1)+encodeURIComponent(_0x59a132)+_0x2a4838(0x17b);if(_0x35845e['url']===_0x3c1823)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x530550){const _0x75e5df=_0x387c52;var _0x6bb710;return(_0x6bb710=_0x530550[_0x75e5df(0x138)])==null?void 0x0:_0x6bb710[_0x75e5df(0x450)];},'mergeParamsToRequest'(_0x552eb4,_0x4b2f65){const _0x35eb09=_0x387c52;let _0x2214f0=_0x43e5b2[_0x35eb09(0x133)]()+_0x35eb09(0x183),_0x261b38=_0x552eb4['reduce']((_0x53eb4b,_0x410e19)=>{const _0x115f25=_0x35eb09;let {unitID:_0x70140e,objectID:_0xd6b2c7,objectType:_0x288cfe,actions:_0x3bf78e}=_0x410e19;return _0x53eb4b[_0x70140e]||(_0x53eb4b[_0x70140e]=Object[_0x115f25(0x173)](null)),_0x53eb4b[_0x70140e][_0xd6b2c7]||(_0x53eb4b[_0x70140e][_0xd6b2c7]={'objectID':_0xd6b2c7,'objectType':_0x288cfe,'actions':[]}),_0x53eb4b[_0x70140e][_0xd6b2c7][_0x115f25(0x37a)][_0x115f25(0x42c)](..._0x3bf78e),_0x53eb4b;},Object[_0x35eb09(0x173)](null)),_0x4b07ac=[];for(let _0x94ea31 in _0x261b38)for(let _0x12490f in _0x261b38[_0x94ea31]){let {actions:_0xd732bd,objectType:_0x48eac6}=_0x261b38[_0x94ea31][_0x12490f],_0x45e2f2=[...new Set(_0xd732bd)];_0x4b07ac['push']({'unitID':_0x94ea31,'objectID':_0x12490f,'objectType':_0x48eac6,'actions':_0x45e2f2});}return new _0x530da8['HTTPRequest'](_0x35eb09(0x2c8),_0x2214f0,{'headers':_0x4b2f65[_0x35eb09(0x112)],'withCredentials':_0x4b2f65['withCredentials'],'responseType':_0x4b2f65['responseType'],'body':{'requests':_0x4b07ac}});}},{'distributeResult'(_0x240549,_0x5874b4){let {objectActions:_0x3121b7}=_0x240549;return _0x5874b4['map'](_0x54c3b3=>{const _0x5c1274=_0x328a;let {unitID:_0x10dafb,objectID:_0x5f17ce,actions:_0x2ef637}=_0x54c3b3,_0x5a233c=_0x3121b7[_0x5c1274(0x34a)](_0x1cec5b=>_0x1cec5b[_0x5c1274(0x258)]===_0x10dafb&&_0x1cec5b['objectID']===_0x5f17ce);return{'config':_0x54c3b3,'result':{'actions':_0x2ef637['map'](_0x20042e=>_0x5a233c==null?void 0x0:_0x5a233c[_0x5c1274(0x37a)][_0x5c1274(0x34a)](_0x2587c6=>_0x2587c6['action']===_0x20042e))['filter'](_0x25f8d6=>!!_0x25f8d6),'error':_0x240549['error']}};});}})}));}[_0x9884d2(0x133)](){const _0x4783cc=_0x9884d2;let _0x6049e0=this[_0x4783cc(0x3c6)][_0x4783cc(0x32f)](_0x3c0330);return(_0x6049e0==null?void 0x0:_0x6049e0[_0x4783cc(0x2d7)])??'/universer-api/authz';}async['create'](_0x3bc20f){const _0x529388=_0x9884d2;let _0x166965=this['_getAPIPrefixPath']()+'/'+_0x3bc20f[_0x529388(0x46b)]+_0x529388(0x2dd);return(await this[_0x529388(0x480)][_0x529388(0x31b)](_0x166965,{'body':_0x3bc20f}))['body'][_0x529388(0x475)]||'';}async[_0x9884d2(0x240)](_0x258047){const _0x25f78c=_0x9884d2;let _0x28d150=this[_0x25f78c(0x133)]()+_0x25f78c(0x2cb);return(await this[_0x25f78c(0x480)]['post'](_0x28d150,{'body':_0x258047}))[_0x25f78c(0x450)]['objects'];}async[_0x9884d2(0x3fa)](_0xb88fa5){const _0x580ed2=_0x9884d2;var _0x3ecdf5;let _0x5c3d51=this[_0x580ed2(0x133)]()+'/'+_0xb88fa5['objectType']+_0x580ed2(0x2a1)+encodeURIComponent(_0xb88fa5['objectID']),_0x4c87a1=await this[_0x580ed2(0x480)][_0x580ed2(0x26b)](_0x5c3d51,{'body':_0xb88fa5});if((_0x4c87a1==null||(_0x3ecdf5=_0x4c87a1[_0x580ed2(0x450)])==null||(_0x3ecdf5=_0x3ecdf5[_0x580ed2(0x1b5)])==null?void 0x0:_0x3ecdf5[_0x580ed2(0x3f6)])!==0x1)throw Error(_0x580ed2(0x140));}async['allowed'](_0x365764){const _0x901640=_0x9884d2;let _0x27a3a3=this[_0x901640(0x133)]()+'/'+_0x365764[_0x901640(0x46b)]+_0x901640(0x2a1)+encodeURIComponent(_0x365764['objectID'])+_0x901640(0x17b);return(await this[_0x901640(0x480)][_0x901640(0x31b)](_0x27a3a3,{'body':_0x365764}))[_0x901640(0x450)][_0x901640(0x37a)];}async['batchAllowed'](_0x1744fa){const _0x58ee39=_0x9884d2;let _0x3720d9=this['_getAPIPrefixPath']()+_0x58ee39(0x183);return(await this[_0x58ee39(0x480)]['post'](_0x3720d9,{'body':{'requests':_0x1744fa}}))[_0x58ee39(0x450)][_0x58ee39(0x152)];}async['listRoles'](_0x5ce200){const _0x1d521e=_0x9884d2;let _0x1adbaf=this[_0x1d521e(0x133)]()+'/'+_0x5ce200['objectType']+_0x1d521e(0x438),_0x1c5c94=await this[_0x1d521e(0x480)][_0x1d521e(0x31b)](_0x1adbaf,{'body':_0x5ce200});return{'roles':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x242)],'actions':_0x1c5c94[_0x1d521e(0x450)][_0x1d521e(0x37a)]};}async[_0x9884d2(0x466)](_0x43ca4a){const _0xb2cac9=_0x9884d2;let _0x44fb18=this['_getAPIPrefixPath']()+_0xb2cac9(0x275);await this['_HTTPService'][_0xb2cac9(0x287)](_0x44fb18,{'params':{'collaboratorID':_0x43ca4a[_0xb2cac9(0x394)],'objectID':_0x43ca4a[_0xb2cac9(0x475)],'unitID':_0x43ca4a['unitID']}});}async[_0x9884d2(0x126)](_0x2c7165){const _0x3fab53=_0x9884d2;let _0x3312e9=this['_getAPIPrefixPath']()+_0x3fab53(0x275);await this[_0x3fab53(0x480)]['patch'](_0x3312e9,{'body':_0x2c7165});}async[_0x9884d2(0x256)](_0xcc2c87){const _0x39dae5=_0x9884d2;let _0x406b55=this[_0x39dae5(0x133)]()+_0x39dae5(0x275);await this[_0x39dae5(0x480)][_0x39dae5(0x31b)](_0x406b55,{'body':_0xcc2c87});}async[_0x9884d2(0x38c)](_0x41942b){const _0x47ce56=_0x9884d2;let _0x544439=this[_0x47ce56(0x133)]()+_0x47ce56(0x275),_0x5f138a=await this['_HTTPService'][_0x47ce56(0x2eb)](_0x544439,{'params':{'objectID':_0x41942b[_0x47ce56(0x475)],'unitID':_0x41942b[_0x47ce56(0x258)]}});return this[_0x47ce56(0x245)](_0x5f138a[_0x47ce56(0x450)]['cfgEnableObjInherit']??!0x1),_0x5f138a[_0x47ce56(0x450)][_0x47ce56(0x3ff)];}async[_0x9884d2(0x2b4)](_0x260fcd){const _0x32f597=_0x9884d2;let _0x51d5d8=this[_0x32f597(0x133)]()+'/collaborator';await this[_0x32f597(0x480)][_0x32f597(0x26b)](_0x51d5d8,{'body':_0x260fcd});}[_0x9884d2(0x245)](_0x29e572){this['_cfgEnableObjInherit']=_0x29e572;}['getCfgEnableObjInherit'](){const _0x33815e=_0x9884d2;return this[_0x33815e(0x3d9)];}};_0x15f3fe=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515['IConfigService']))],_0x15f3fe);function _0x384d25(_0x527497){const _0x5630ff=_0x9884d2;return _0x527497 instanceof Uint8Array||ArrayBuffer['isView'](_0x527497)&&_0x527497[_0x5630ff(0x11a)][_0x5630ff(0x114)]===_0x5630ff(0x487)&&_0x5630ff(0x1ae)in _0x527497&&_0x527497['BYTES_PER_ELEMENT']===0x1;}let _0x5b4ae0=_0x22d729=>_0x22d729?'\x22'+_0x22d729+'\x22\x20':'';function _0x4fb7a8(_0x527d9,_0x8c229c=''){const _0x2e7b1d=_0x9884d2;if(typeof _0x527d9!=_0x2e7b1d(0x266))throw TypeError(_0x5b4ae0(_0x8c229c)+'expected\x20number,\x20got\x20'+typeof _0x527d9);if(!Number[_0x2e7b1d(0x131)](_0x527d9)||_0x527d9<0x0)throw RangeError(_0x5b4ae0(_0x8c229c)+_0x2e7b1d(0x14b)+_0x527d9);return _0x527d9;}function _0x5022ca(_0x1e12f7,_0x3e8cb1,_0x5da82f=''){const _0x31b033=_0x9884d2;if(_0x384d25(_0x1e12f7)&&(_0x3e8cb1===void 0x0||_0x1e12f7[_0x31b033(0x147)]===_0x3e8cb1))return _0x1e12f7;_0x3e8cb1!==void 0x0&&_0x4fb7a8(_0x3e8cb1,_0x31b033(0x147));let _0x121841=_0x384d25(_0x1e12f7),_0xdd3c9f=_0x3e8cb1===void 0x0?'':_0x31b033(0x123)+_0x3e8cb1,_0x4df749=_0x121841?'length='+_0x1e12f7[_0x31b033(0x147)]:_0x31b033(0x332)+typeof _0x1e12f7,_0x479d2c=_0x5b4ae0(_0x5da82f)+_0x31b033(0x381)+_0xdd3c9f+_0x31b033(0x31d)+_0x4df749;throw _0x121841?RangeError(_0x479d2c):TypeError(_0x479d2c);}function _0x199311(_0x5cdce4){const _0x1d6bc3=_0x9884d2;return new Uint32Array(_0x5cdce4[_0x1d6bc3(0x2ab)],_0x5cdce4[_0x1d6bc3(0x28c)],Math[_0x1d6bc3(0x2bd)](_0x5cdce4[_0x1d6bc3(0x37f)]/0x4));}function _0x57dbaa(..._0x3f21e7){const _0x348d63=_0x9884d2;for(let _0xe31dc9=0x0;_0xe31dc9<_0x3f21e7[_0x348d63(0x147)];_0xe31dc9++)_0x3f21e7[_0xe31dc9][_0x348d63(0x249)](0x0);}let _0x129fb4=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x2d4194(_0x5a9acc){return _0x5a9acc<<0x18&0xff000000|_0x5a9acc<<0x8&0xff0000|_0x5a9acc>>>0x8&0xff00|_0x5a9acc>>>0x18&0xff;}function _0x4dbcec(_0x2dade7){const _0x34df53=_0x9884d2;for(let _0x2f50be=0x0;_0x2f50be<_0x2dade7[_0x34df53(0x147)];_0x2f50be++)_0x2dade7[_0x2f50be]=_0x2d4194(_0x2dade7[_0x2f50be]);return _0x2dade7;}let _0x5f5a67=_0x129fb4?_0x52086a=>_0x52086a:_0x4dbcec;function _0x37b28a(_0x3e0585){const _0x5da1be=_0x9884d2;if(typeof _0x3e0585!=_0x5da1be(0x212))throw TypeError(_0x5da1be(0x168));return new Uint8Array(new TextEncoder()['encode'](_0x3e0585));}function _0x2e1fb6(_0x8ba964,_0xa1e50f){const _0x2f6a45=_0x9884d2;return!_0x8ba964['byteLength']||!_0xa1e50f['byteLength']?!0x1:_0x8ba964[_0x2f6a45(0x2ab)]===_0xa1e50f[_0x2f6a45(0x2ab)]&&_0x8ba964[_0x2f6a45(0x28c)]<_0xa1e50f[_0x2f6a45(0x28c)]+_0xa1e50f[_0x2f6a45(0x37f)]&&_0xa1e50f['byteOffset']<_0x8ba964[_0x2f6a45(0x28c)]+_0x8ba964['byteLength'];}function _0x3920fa(_0x58f3b4,_0x991d25){const _0x28af28=_0x9884d2;if(_0x2e1fb6(_0x58f3b4,_0x991d25)&&_0x58f3b4[_0x28af28(0x28c)]<_0x991d25[_0x28af28(0x28c)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x10db65(..._0x3f9026){const _0x3f578c=_0x9884d2;let _0x2be5f8=0x0;for(let _0x53f88f=0x0;_0x53f88f<_0x3f9026[_0x3f578c(0x147)];_0x53f88f++){let _0x3d3122=_0x3f9026[_0x53f88f];_0x5022ca(_0x3d3122),_0x2be5f8+=_0x3d3122[_0x3f578c(0x147)];}let _0x118bd3=new Uint8Array(_0x2be5f8);for(let _0x32075f=0x0,_0x3d22bd=0x0;_0x32075f<_0x3f9026[_0x3f578c(0x147)];_0x32075f++){let _0x4ec53e=_0x3f9026[_0x32075f];_0x118bd3[_0x3f578c(0x41e)](_0x4ec53e,_0x3d22bd),_0x3d22bd+=_0x4ec53e[_0x3f578c(0x147)];}return _0x118bd3;}let _0x22a48f=(_0x4d17ad,_0x5a89e8)=>{const _0x204b69=_0x9884d2;function _0x4788e5(_0x46e618,..._0x1a76df){const _0x3db422=_0x328a;if(_0x5022ca(_0x46e618,void 0x0,_0x3db422(0x365)),_0x4d17ad[_0x3db422(0x335)]!==void 0x0){let _0x5d91c9=_0x1a76df[0x0];_0x5022ca(_0x5d91c9,_0x4d17ad[_0x3db422(0x1c2)]?void 0x0:_0x4d17ad[_0x3db422(0x335)],_0x3db422(0x15b));}let _0x4d6db7=_0x4d17ad[_0x3db422(0x221)],_0x45a823=_0x4d17ad[_0x3db422(0x335)]===void 0x0?0x0:0x1;if(!_0x4d17ad['withAAD']){for(let _0x5058c3=_0x45a823;_0x5058c3<_0x1a76df[_0x3db422(0x147)];_0x5058c3++)if(_0x384d25(_0x1a76df[_0x5058c3]))throw Error(_0x3db422(0x284));}_0x4d17ad[_0x3db422(0x20d)]&&_0x1a76df[_0x45a823]!==void 0x0&&_0x5022ca(_0x1a76df[_0x45a823],void 0x0,'AAD');let _0x44bb78=_0x5a89e8(_0x46e618,..._0x1a76df),_0x35faa0=(_0x39fd85,_0x1560ec)=>{const _0x504c2a=_0x3db422;if(_0x1560ec!==void 0x0){if(_0x39fd85!==0x2)throw Error('cipher\x20output\x20not\x20supported');_0x5022ca(_0x1560ec,void 0x0,_0x504c2a(0x1ed));}},_0x7bfdf=!0x1;return{'encrypt'(_0x33b7a9,_0x398b10){const _0x1ac072=_0x3db422;if(_0x7bfdf)throw Error(_0x1ac072(0x2ad));return _0x7bfdf=!0x0,_0x5022ca(_0x33b7a9,void 0x0,'data'),_0x35faa0(_0x44bb78[_0x1ac072(0x391)][_0x1ac072(0x147)],_0x398b10),_0x44bb78[_0x1ac072(0x391)](_0x33b7a9,_0x398b10);},'decrypt'(_0x2482d0,_0x1260d3){const _0x3f9fe5=_0x3db422;if(_0x5022ca(_0x2482d0,void 0x0,_0x3f9fe5(0x1b4)),_0x4d6db7&&_0x2482d0[_0x3f9fe5(0x147)]<_0x4d6db7)throw Error(_0x3f9fe5(0x319)+_0x4d6db7);return _0x35faa0(_0x44bb78[_0x3f9fe5(0x205)]['length'],_0x1260d3),_0x44bb78[_0x3f9fe5(0x205)](_0x2482d0,_0x1260d3);}};}return Object[_0x204b69(0x276)](_0x4788e5,_0x4d17ad),_0x4788e5;};function _0x10294a(_0x6d8277,_0x387d3d,_0x2dbadb=!0x0){const _0x232224=_0x9884d2;if(_0x387d3d===void 0x0)return new Uint8Array(_0x6d8277);if(_0x5022ca(_0x387d3d,_0x6d8277,'output'),_0x2dbadb&&!_0x50253f(_0x387d3d))throw Error(_0x232224(0x227));return _0x387d3d;}function _0x50253f(_0x4dd8cd){const _0x30829b=_0x9884d2;return _0x4dd8cd[_0x30829b(0x28c)]%0x4==0x0;}function _0x2cad28(_0x4b05ad){return Uint8Array['from'](_0x5022ca(_0x4b05ad));}function _0x49b1fc(_0xd25560=0x20){const _0x529d98=_0x9884d2;_0x4fb7a8(_0xd25560,'bytesLength');let _0x4ea7e0=typeof globalThis==_0x529d98(0x26e)?globalThis[_0x529d98(0x3ae)]:null;if(typeof(_0x4ea7e0==null?void 0x0:_0x4ea7e0[_0x529d98(0x1c8)])!=_0x529d98(0x474))throw Error(_0x529d98(0x407));if(_0xd25560>0x10000)throw RangeError(_0x529d98(0x19e)+_0xd25560);return _0x4ea7e0[_0x529d98(0x1c8)](new Uint8Array(_0xd25560));}function _0x3b137f(_0x319d71){const _0x3569a7=_0x9884d2;if(![0x10,0x18,0x20]['includes'](_0x319d71[_0x3569a7(0x147)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x319d71[_0x3569a7(0x147)]);}function _0x28c7a1(_0x3ac7e4){return _0x3ac7e4<<0x1^0x11b&-(_0x3ac7e4>>0x7);}function _0x406fc2(_0x463f6b,_0x5bc642){let _0x2449c8=0x0;for(;_0x5bc642>0x0;_0x5bc642>>=0x1)_0x2449c8^=_0x463f6b&-(_0x5bc642&0x1),_0x463f6b=_0x28c7a1(_0x463f6b);return _0x2449c8;}let _0xf00a23=((()=>{let _0x18cf91=new Uint8Array(0x100);for(let _0x5965f8=0x0,_0x1bf7b6=0x1;_0x5965f8<0x100;_0x5965f8++,_0x1bf7b6^=_0x28c7a1(_0x1bf7b6))_0x18cf91[_0x5965f8]=_0x1bf7b6;let _0x96eaa4=new Uint8Array(0x100);_0x96eaa4[0x0]=0x63;for(let _0x3a8287=0x0;_0x3a8287<0xff;_0x3a8287++){let _0x505896=_0x18cf91[0xff-_0x3a8287];_0x505896|=_0x505896<<0x8,_0x96eaa4[_0x18cf91[_0x3a8287]]=(_0x505896^_0x505896>>0x4^_0x505896>>0x5^_0x505896>>0x6^_0x505896>>0x7^0x63)&0xff;}return _0x57dbaa(_0x18cf91),_0x96eaa4;})()),_0x2984fc=_0xf00a23[_0x9884d2(0x333)]((_0x389279,_0x59f16f)=>_0xf00a23[_0x9884d2(0x172)](_0x59f16f)),_0x2047a0=_0x3848d0=>_0x3848d0<<0x18|_0x3848d0>>>0x8,_0x5f4f0e=_0x1790ea=>_0x1790ea<<0x8|_0x1790ea>>>0x18;function _0x1a4579(_0x1a1949,_0x5486f0){const _0x4e0f68=_0x9884d2;if(_0x1a1949[_0x4e0f68(0x147)]!==0x100)throw Error(_0x4e0f68(0x368));let _0x2dc52a=new Uint32Array(0x100)[_0x4e0f68(0x333)]((_0x3f8c9a,_0x537f1b)=>_0x5486f0(_0x1a1949[_0x537f1b])),_0x487d14=_0x2dc52a['map'](_0x5f4f0e),_0x562ffd=_0x487d14[_0x4e0f68(0x333)](_0x5f4f0e),_0x17dfd6=_0x562ffd['map'](_0x5f4f0e),_0x396ac6=new Uint32Array(0x10000),_0x16227a=new Uint32Array(0x10000),_0x489ba9=new Uint16Array(0x10000);for(let _0x1f9126=0x0;_0x1f9126<0x100;_0x1f9126++)for(let _0x116141=0x0;_0x116141<0x100;_0x116141++){let _0x95d21a=_0x1f9126*0x100+_0x116141;_0x396ac6[_0x95d21a]=_0x2dc52a[_0x1f9126]^_0x487d14[_0x116141],_0x16227a[_0x95d21a]=_0x562ffd[_0x1f9126]^_0x17dfd6[_0x116141],_0x489ba9[_0x95d21a]=_0x1a1949[_0x1f9126]<<0x8|_0x1a1949[_0x116141];}return{'sbox':_0x1a1949,'sbox2':_0x489ba9,'T0':_0x2dc52a,'T1':_0x487d14,'T2':_0x562ffd,'T3':_0x17dfd6,'T01':_0x396ac6,'T23':_0x16227a};}let _0xd1fae5=_0x1a4579(_0xf00a23,_0x37cdd4=>_0x406fc2(_0x37cdd4,0x3)<<0x18|_0x37cdd4<<0x10|_0x37cdd4<<0x8|_0x406fc2(_0x37cdd4,0x2)),_0x38ea3f=_0x1a4579(_0x2984fc,_0x35dd7e=>_0x406fc2(_0x35dd7e,0xb)<<0x18|_0x406fc2(_0x35dd7e,0xd)<<0x10|_0x406fc2(_0x35dd7e,0x9)<<0x8|_0x406fc2(_0x35dd7e,0xe)),_0x123c1d=((()=>{let _0xc39ceb=new Uint8Array(0x10);for(let _0x38c0da=0x0,_0x51f38f=0x1;_0x38c0da<0x10;_0x38c0da++,_0x51f38f=_0x28c7a1(_0x51f38f))_0xc39ceb[_0x38c0da]=_0x51f38f;return _0xc39ceb;})());function _0x4362e7(_0x565fb5){const _0x4f3c96=_0x9884d2;_0x5022ca(_0x565fb5);let _0x4c8b29=_0x565fb5['length'];_0x3b137f(_0x565fb5);let {sbox2:_0x7ae62}=_0xd1fae5,_0x15010a=[];(!_0x129fb4||!_0x50253f(_0x565fb5))&&_0x15010a[_0x4f3c96(0x42c)](_0x565fb5=_0x2cad28(_0x565fb5));let _0x2bccd9=_0x5f5a67(_0x199311(_0x565fb5)),_0x4ced2=_0x2bccd9['length'],_0x1d35c4=_0x7de057=>_0x4e69e5(_0x7ae62,_0x7de057,_0x7de057,_0x7de057,_0x7de057),_0x1e9602=new Uint32Array(_0x4c8b29+0x1c);_0x1e9602[_0x4f3c96(0x41e)](_0x2bccd9);for(let _0x27cd9f=_0x4ced2;_0x27cd9f<_0x1e9602[_0x4f3c96(0x147)];_0x27cd9f++){let _0x208e86=_0x1e9602[_0x27cd9f-0x1];_0x27cd9f%_0x4ced2===0x0?_0x208e86=_0x1d35c4(_0x2047a0(_0x208e86))^_0x123c1d[_0x27cd9f/_0x4ced2-0x1]:_0x4ced2>0x6&&_0x27cd9f%_0x4ced2===0x4&&(_0x208e86=_0x1d35c4(_0x208e86)),_0x1e9602[_0x27cd9f]=_0x1e9602[_0x27cd9f-_0x4ced2]^_0x208e86;}return _0x57dbaa(..._0x15010a),_0x1e9602;}function _0x1f98ed(_0x5efc76){let _0x352827=_0x4362e7(_0x5efc76),_0x417a56=_0x352827['slice'](),_0x5b7ddb=_0x352827['length'],{sbox2:_0x5ae301}=_0xd1fae5,{T0:_0x3a6ebd,T1:_0x26d5b9,T2:_0x1d85b4,T3:_0x4483df}=_0x38ea3f;for(let _0x2068f3=0x0;_0x2068f3<_0x5b7ddb;_0x2068f3+=0x4)for(let _0x452e31=0x0;_0x452e31<0x4;_0x452e31++)_0x417a56[_0x2068f3+_0x452e31]=_0x352827[_0x5b7ddb-_0x2068f3-0x4+_0x452e31];_0x57dbaa(_0x352827);for(let _0x13543f=0x4;_0x13543f<_0x5b7ddb-0x4;_0x13543f++){let _0x6d214c=_0x417a56[_0x13543f],_0x2d8517=_0x4e69e5(_0x5ae301,_0x6d214c,_0x6d214c,_0x6d214c,_0x6d214c);_0x417a56[_0x13543f]=_0x3a6ebd[_0x2d8517&0xff]^_0x26d5b9[_0x2d8517>>>0x8&0xff]^_0x1d85b4[_0x2d8517>>>0x10&0xff]^_0x4483df[_0x2d8517>>>0x18];}return _0x417a56;}function _0x4d7535(_0x7a615a,_0x55cafd,_0x1f1e73,_0x3fb21b,_0x4b917c,_0x592921){return _0x7a615a[_0x1f1e73<<0x8&0xff00|_0x3fb21b>>>0x8&0xff]^_0x55cafd[_0x4b917c>>>0x8&0xff00|_0x592921>>>0x18&0xff];}function _0x4e69e5(_0x4bd7cb,_0x586108,_0x4f743f,_0x2cce92,_0x151f3f){return _0x4bd7cb[_0x586108&0xff|_0x4f743f&0xff00]|_0x4bd7cb[_0x2cce92>>>0x10&0xff|_0x151f3f>>>0x10&0xff00]<<0x10;}function _0x51944f(_0x37b714,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671){const _0x2079a2=_0x9884d2;let {sbox2:_0x5888b1,T01:_0x336c48,T23:_0x3e6256}=_0xd1fae5,_0x13e475=0x0;_0xc530b1^=_0x37b714[_0x13e475++],_0x158fdc^=_0x37b714[_0x13e475++],_0xaf1e79^=_0x37b714[_0x13e475++],_0x4a9671^=_0x37b714[_0x13e475++];let _0x9fb9ea=_0x37b714[_0x2079a2(0x147)]/0x4-0x2;for(let _0x4f6c2a=0x0;_0x4f6c2a<_0x9fb9ea;_0x4f6c2a++){let _0x185aff=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),_0x4604c4=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),_0x891d18=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),_0x103678=_0x37b714[_0x13e475++]^_0x4d7535(_0x336c48,_0x3e6256,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79);_0xc530b1=_0x185aff,_0x158fdc=_0x4604c4,_0xaf1e79=_0x891d18,_0x4a9671=_0x103678;}return{'s0':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xc530b1,_0x158fdc,_0xaf1e79,_0x4a9671),'s1':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x158fdc,_0xaf1e79,_0x4a9671,_0xc530b1),'s2':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0xaf1e79,_0x4a9671,_0xc530b1,_0x158fdc),'s3':_0x37b714[_0x13e475++]^_0x4e69e5(_0x5888b1,_0x4a9671,_0xc530b1,_0x158fdc,_0xaf1e79)};}function _0x491d38(_0x1dbdbb,_0x2d15b8,_0x539442,_0x427711,_0x500a10){const _0x4e00cf=_0x9884d2;let {sbox2:_0x47de4e,T01:_0x391c1d,T23:_0x4de135}=_0x38ea3f,_0x5a21fc=0x0;_0x2d15b8^=_0x1dbdbb[_0x5a21fc++],_0x539442^=_0x1dbdbb[_0x5a21fc++],_0x427711^=_0x1dbdbb[_0x5a21fc++],_0x500a10^=_0x1dbdbb[_0x5a21fc++];let _0x1bc109=_0x1dbdbb[_0x4e00cf(0x147)]/0x4-0x2;for(let _0x456665=0x0;_0x456665<_0x1bc109;_0x456665++){let _0x4ebcd8=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x2d15b8,_0x500a10,_0x427711,_0x539442),_0x48b991=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x539442,_0x2d15b8,_0x500a10,_0x427711),_0x45d548=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x427711,_0x539442,_0x2d15b8,_0x500a10),_0x51a9a6=_0x1dbdbb[_0x5a21fc++]^_0x4d7535(_0x391c1d,_0x4de135,_0x500a10,_0x427711,_0x539442,_0x2d15b8);_0x2d15b8=_0x4ebcd8,_0x539442=_0x48b991,_0x427711=_0x45d548,_0x500a10=_0x51a9a6;}return{'s0':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x2d15b8,_0x500a10,_0x427711,_0x539442),'s1':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x539442,_0x2d15b8,_0x500a10,_0x427711),'s2':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x427711,_0x539442,_0x2d15b8,_0x500a10),'s3':_0x1dbdbb[_0x5a21fc++]^_0x4e69e5(_0x47de4e,_0x500a10,_0x427711,_0x539442,_0x2d15b8)};}function _0x2f8f97(_0x29b2e1,_0x206e6c){const _0x1e551b=_0x9884d2;if(_0x5022ca(_0x29b2e1),_0x29b2e1['length']%0x10!=0x0)throw Error(_0x1e551b(0x385));_0x206e6c!==void 0x0&&(_0x10294a(_0x29b2e1[_0x1e551b(0x147)],_0x206e6c),_0x3920fa(_0x29b2e1,_0x206e6c));}function _0x1b8a16(_0x26bf17,_0x8ed2c,_0x444115){const _0x364610=_0x9884d2;_0x5022ca(_0x26bf17);let _0x500e90=_0x26bf17[_0x364610(0x147)],_0x15f519=_0x500e90%0x10;if(!_0x8ed2c&&_0x15f519!==0x0)throw Error(_0x364610(0x1e8));if(_0x8ed2c){let _0x106079=0x10-_0x15f519;_0x106079||=0x10,_0x500e90+=_0x106079;}return _0x444115!==void 0x0&&(_0x10294a(_0x500e90,_0x444115),_0x3920fa(_0x26bf17,_0x444115)),_0x500e90;}function _0x2d8cc4(_0x37faaa,_0x2a3208,_0x32841e){_0x32841e===void 0x0&&(_0x32841e=new Uint8Array(_0x2a3208)),(!_0x129fb4||!_0x50253f(_0x37faaa))&&(_0x37faaa=_0x2cad28(_0x37faaa));let _0x2a637b=_0x199311(_0x32841e);return{'b':_0x37faaa,'o':_0x2a637b,'out':_0x32841e};}function _0x1886b6(_0x5a11ce,_0x452e43){const _0x846b2a=_0x9884d2;if(!_0x452e43)return _0x5a11ce;let _0x4a081f=_0x5a11ce[_0x846b2a(0x147)];if(_0x4a081f===0x0)throw Error(_0x846b2a(0x2c6));let _0x2c01b3=_0x5a11ce[_0x4a081f-0x1],_0x4fe5fc=0x1;_0x4fe5fc&=_0x2c01b3-0x1>>>0x1f^0x1,_0x4fe5fc&=0x10-_0x2c01b3>>>0x1f^0x1;for(let _0x883c31=0x0;_0x883c31<0x10;_0x883c31++){let _0x1dbd53=_0x883c31-_0x2c01b3>>>0x1f,_0x5bc462=+((_0x5a11ce[_0x4a081f-0x1-_0x883c31]^_0x2c01b3)===0x0);_0x4fe5fc&=_0x5bc462|_0x1dbd53^0x1;}if(!_0x4fe5fc)throw Error(_0x846b2a(0x372));return _0x5a11ce[_0x846b2a(0x2af)](0x0,_0x4a081f-_0x2c01b3);}function _0x31d810(_0x49258c){const _0x18be91=_0x9884d2;let _0x34b36b=new Uint8Array(0x10),_0x28ed17=_0x199311(_0x34b36b);_0x34b36b[_0x18be91(0x41e)](_0x49258c);let _0x586cea=0x10-_0x49258c['length'];for(let _0x1cbb4e=0x10-_0x586cea;_0x1cbb4e<0x10;_0x1cbb4e++)_0x34b36b[_0x1cbb4e]=_0x586cea;return _0x28ed17;}let _0x3222fd=_0x22a48f({'blockSize':0x10,'nonceLength':0x10},function(_0x30bf1a,_0x4a66e9,_0x3d41c6={}){const _0x3a8a1d=_0x9884d2;let _0x279fd8=!_0x3d41c6[_0x3a8a1d(0x257)];return{'encrypt'(_0x51c26b,_0xd406c8){const _0x1915cb=_0x3a8a1d;let _0x48b13d=_0x1b8a16(_0x51c26b,_0x279fd8,_0xd406c8),_0x37a532=_0x4362e7(_0x30bf1a),{b:_0x11790b,o:_0x5a64a0,out:_0x102252}=_0x2d8cc4(_0x51c26b,_0x48b13d,_0xd406c8),_0x5baa4d=_0x199311(_0x11790b);_0x5f5a67(_0x5baa4d);let _0x25e57b=_0x4a66e9,_0x1c68ea=[_0x37a532];(!_0x129fb4||!_0x50253f(_0x25e57b))&&_0x1c68ea[_0x1915cb(0x42c)](_0x25e57b=_0x2cad28(_0x25e57b));let _0x3a5880=_0x199311(_0x25e57b);_0x5f5a67(_0x3a5880);let _0x2b0876=_0x3a5880[0x0],_0x2dda49=_0x3a5880[0x1],_0x55c3c3=_0x3a5880[0x2],_0x15a056=_0x3a5880[0x3],_0x259aba=0x0;for(;_0x259aba+0x4<=_0x5baa4d['length'];)_0x2b0876^=_0x5baa4d[_0x259aba+0x0],_0x2dda49^=_0x5baa4d[_0x259aba+0x1],_0x55c3c3^=_0x5baa4d[_0x259aba+0x2],_0x15a056^=_0x5baa4d[_0x259aba+0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056;if(_0x279fd8){let _0x287963=_0x31d810(_0x51c26b[_0x1915cb(0x2af)](_0x259aba*0x4));_0x5f5a67(_0x287963),_0x2b0876^=_0x287963[0x0],_0x2dda49^=_0x287963[0x1],_0x55c3c3^=_0x287963[0x2],_0x15a056^=_0x287963[0x3],{s0:_0x2b0876,s1:_0x2dda49,s2:_0x55c3c3,s3:_0x15a056}=_0x51944f(_0x37a532,_0x2b0876,_0x2dda49,_0x55c3c3,_0x15a056),_0x5a64a0[_0x259aba++]=_0x2b0876,_0x5a64a0[_0x259aba++]=_0x2dda49,_0x5a64a0[_0x259aba++]=_0x55c3c3,_0x5a64a0[_0x259aba++]=_0x15a056,_0x57dbaa(_0x287963);}return _0x5f5a67(_0x5a64a0),_0x57dbaa(..._0x1c68ea),_0x11790b!==_0x51c26b&&_0x57dbaa(_0x11790b),_0x102252;},'decrypt'(_0x19d969,_0x2d94bf){const _0x3fb934=_0x3a8a1d;_0x2f8f97(_0x19d969,_0x2d94bf);let _0x4cdfa3=_0x1f98ed(_0x30bf1a);_0x2d94bf===void 0x0&&(_0x2d94bf=new Uint8Array(_0x19d969['length']));let _0x48d5af=_0x4a66e9,_0x1f7542=[_0x4cdfa3];(!_0x129fb4||!_0x50253f(_0x48d5af))&&_0x1f7542[_0x3fb934(0x42c)](_0x48d5af=_0x2cad28(_0x48d5af));let _0x54d23f=_0x199311(_0x48d5af);_0x5f5a67(_0x54d23f),(!_0x129fb4||!_0x50253f(_0x19d969))&&_0x1f7542[_0x3fb934(0x42c)](_0x19d969=_0x2cad28(_0x19d969));let _0x301998=_0x199311(_0x19d969),_0x21b196=_0x199311(_0x2d94bf);_0x5f5a67(_0x301998);let _0x176189=_0x54d23f[0x0],_0x37f3f7=_0x54d23f[0x1],_0x3f201c=_0x54d23f[0x2],_0x4b3390=_0x54d23f[0x3];for(let _0x391a18=0x0;_0x391a18+0x4<=_0x301998[_0x3fb934(0x147)];){let _0x85bf6=_0x176189,_0x1ef441=_0x37f3f7,_0xdbf05d=_0x3f201c,_0x324356=_0x4b3390;_0x176189=_0x301998[_0x391a18+0x0],_0x37f3f7=_0x301998[_0x391a18+0x1],_0x3f201c=_0x301998[_0x391a18+0x2],_0x4b3390=_0x301998[_0x391a18+0x3];let {s0:_0x2638a7,s1:_0x542288,s2:_0x3efa7a,s3:_0x5e05fb}=_0x491d38(_0x4cdfa3,_0x176189,_0x37f3f7,_0x3f201c,_0x4b3390);_0x21b196[_0x391a18++]=_0x2638a7^_0x85bf6,_0x21b196[_0x391a18++]=_0x542288^_0x1ef441,_0x21b196[_0x391a18++]=_0x3efa7a^_0xdbf05d,_0x21b196[_0x391a18++]=_0x5e05fb^_0x324356;}return _0x5f5a67(_0x21b196),_0x57dbaa(..._0x1f7542),_0x1886b6(_0x2d94bf,_0x279fd8);}};});function _0x3359ac(_0x52b4f0){const _0x4eda45=_0x9884d2;let _0x29cc9a=atob(_0x52b4f0),_0x270383=new Uint8Array(_0x29cc9a['length']);for(let _0xa9e425=0x0;_0xa9e425<_0x29cc9a[_0x4eda45(0x147)];_0xa9e425++)_0x270383[_0xa9e425]=_0x29cc9a[_0x4eda45(0x3b6)](_0xa9e425);return _0x270383;}function _0x1a34fd(_0x5ec56c){const _0x1f8cfc=_0x9884d2;let _0x3affb4='';for(let _0x248148=0x0;_0x248148<_0x5ec56c[_0x1f8cfc(0x147)];_0x248148++)_0x3affb4+=String[_0x1f8cfc(0x361)](_0x5ec56c[_0x248148]);return btoa(_0x3affb4);}function _0x1aa085(_0x1f823c,_0x473214){let _0x27f66f=_0x3359ac(_0x473214),_0x149dd0=_0x49b1fc(0x10);return _0x1a34fd(_0x10db65(_0x149dd0,_0x3222fd(_0x27f66f,_0x149dd0)['encrypt'](_0x37b28a(_0x1f823c))));}function _0x8ac433(){const _0x2879d8=_0x9884d2;let _0x42be0b=(0x0,_0x3ed42b[_0x2879d8(0x151)])()[_0x2879d8(0x2f1)];if(typeof window<'u'&&window[_0x2879d8(0x2b2)]!==void 0x0&&_0x42be0b){let _0x21c9cb={'time':Math['floor'](Date[_0x2879d8(0x17d)]()/0x3e8),'domain':location[_0x2879d8(0x217)]};return _0x1aa085(JSON['stringify'](_0x21c9cb),_0x42be0b);}}let _0x3796aa=class{constructor(_0x1212a2){const _0x5d574a=_0x9884d2;this[_0x5d574a(0x1d0)]=_0x1212a2,this[_0x5d574a(0x11d)]();}[_0x9884d2(0x11d)](){const _0x416b5e=_0x9884d2;this[_0x416b5e(0x1d0)]['registerHTTPInterceptor']({'interceptor':(_0x23cc69,_0x4042e3)=>{const _0x3618db=_0x416b5e;let _0x4ec9ef=_0x8ac433();return _0x4ec9ef&&_0x23cc69[_0x3618db(0x112)][_0x3618db(0x41e)](_0x3618db(0x303),_0x4ec9ef),_0x4042e3(_0x23cc69);}});}};_0x3796aa=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3796aa);let _0x125829=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x43d198,_0x5c4a24,_0x38c38d){const _0x9e81bf=_0x9884d2;super(),this[_0x9e81bf(0x344)]=_0x43d198,this[_0x9e81bf(0x403)]=_0x5c4a24,this[_0x9e81bf(0x323)]=_0x38c38d,_0x60128a(this,_0x9e81bf(0x342),new _0xccd21e['BehaviorSubject'](null)),_0x60128a(this,_0x9e81bf(0x412),new _0xccd21e[(_0x9e81bf(0x200))]()),_0x60128a(this,'unitInfo$',this[_0x9e81bf(0x342)][_0x9e81bf(0x43c)]()),_0x60128a(this,_0x9e81bf(0x347),this['_unitLoaded$'][_0x9e81bf(0x43c)]());}[_0x9884d2(0x314)](){const _0x540ebb=_0x9884d2;super[_0x540ebb(0x314)](),this[_0x540ebb(0x412)][_0x540ebb(0x41f)](),this['_unitInfo$'][_0x540ebb(0x41f)]();}async[_0x9884d2(0x21e)](_0x24904d,_0x3ea8c5,_0x232b8f,_0x348b4c){const _0x9c475f=_0x9884d2;this[_0x9c475f(0x342)][_0x9c475f(0x17e)]({'unitId':_0x24904d,'type':_0x3ea8c5,'subUnitId':_0x348b4c});let _0x114f39=null;switch(_0x3ea8c5){case _0x4b2515[_0x9c475f(0x223)]['UNIVER_SHEET']:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x134)](_0x24904d,_0x232b8f,void 0x0,{'initialSubUnitId':_0x348b4c});break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x10f)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x373)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x281)]:_0x114f39=await this[_0x9c475f(0x403)][_0x9c475f(0x28e)](_0x24904d,_0x232b8f);break;case _0x4b2515['UniverInstanceType'][_0x9c475f(0x339)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x194)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x267)]:_0x114f39=await this['_snapshotService'][_0x9c475f(0x273)](_0x24904d,_0x232b8f);break;case _0x4b2515[_0x9c475f(0x223)][_0x9c475f(0x1b9)]:_0x114f39=await this[_0x9c475f(0x403)]['loadPdf'](_0x24904d,_0x232b8f);break;default:this[_0x9c475f(0x344)][_0x9c475f(0x1b5)]('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x114f39&&this[_0x9c475f(0x412)]['next'](_0x114f39),_0x114f39;}async[_0x9884d2(0x325)](_0x32bdeb,_0x46b11e,_0x3403aa){const _0x131074=_0x9884d2;var _0x1a7b7c;this[_0x131074(0x342)]['next']({'unitId':_0x32bdeb,'type':_0x46b11e,'subUnitId':_0x3403aa});let _0x3ac2c4=0x0,_0x30198e=await((_0x1a7b7c=this[_0x131074(0x323)])==null?void 0x0:_0x1a7b7c['loadOfflineData'](_0x32bdeb));return _0x30198e&&(_0x30198e['awaitingChangeset']||_0x30198e[_0x131074(0x25c)]['length']!==0x0)&&(_0x3ac2c4=_0x30198e[_0x131074(0x317)]),_0x3ac2c4===0x0&&this[_0x131074(0x344)]['debug'](_0x131074(0x27f),_0x131074(0x30a)),this['loadUnitOfRevision'](_0x32bdeb,_0x46b11e,_0x3ac2c4,_0x3403aa);}};_0x125829=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x1,(0x0,_0x4b2515['Inject'])(_0x5199be[_0x9884d2(0x15e)])),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x1de)])(_0x2b4688))],_0x125829);let _0xd196db=class{constructor(_0x4cb106,_0x3dcf86,_0x1fe643){const _0x47439e=_0x9884d2;this[_0x47439e(0x1d0)]=_0x4cb106,this[_0x47439e(0x3c6)]=_0x3dcf86,this['_univerInstanceService']=_0x1fe643,_0x60128a(this,'_waitCount',0x0),_0x60128a(this,_0x47439e(0x3b9),new _0xccd21e[(_0x47439e(0x200))]()),_0x60128a(this,_0x47439e(0x2d1),this[_0x47439e(0x3b9)]),_0x60128a(this,_0x47439e(0x2a2),new Map());}[_0x9884d2(0x435)](_0x5352af){const _0x29fe70=_0x9884d2;this[_0x29fe70(0x222)]=_0x5352af,this[_0x29fe70(0x3b9)][_0x29fe70(0x17e)](_0x5352af);}[_0x9884d2(0x1bb)](_0x2e40a6,_0x8bedba){const _0x4a4941=_0x9884d2;if(_0x8bedba===_0x4b2515['ImageSourceType'][_0x4a4941(0x2ae)]){let _0x4c50b4=new Image();return _0x4c50b4[_0x4a4941(0x3ce)]=_0x2e40a6,_0x4c50b4;}return this['_imageSourceCache']['get'](_0x2e40a6);}[_0x9884d2(0x2f9)](_0x1bc409,_0x80df13,_0x25adf9){const _0x1ac03d=_0x9884d2;_0x80df13!==_0x4b2515[_0x1ac03d(0x3fe)][_0x1ac03d(0x2ae)]&&_0x25adf9!=null&&this[_0x1ac03d(0x2a2)][_0x1ac03d(0x41e)](_0x1bc409,_0x25adf9);}async['getImage'](_0x9e27a0){const _0x500369=_0x9884d2;try{let _0x23fbc8=this[_0x500369(0x40e)](this[_0x500369(0x322)](),''+_0x9e27a0),_0x31dd26=(await this[_0x500369(0x1d0)][_0x500369(0x2eb)](_0x23fbc8))[_0x500369(0x450)];if(_0x31dd26[_0x500369(0x1b5)]&&_0x31dd26['error'][_0x500369(0x3f6)]===_0x349630[_0x500369(0x328)]['OK']){let _0x50db3c=(0x0,_0x4b2515[_0x500369(0x302)])(_0x31dd26[_0x500369(0x424)],this['_getDownloadEndpointURL']());return Promise[_0x500369(0x382)](_0x50db3c);}return Promise['reject'](_0x31dd26['error']);}catch(_0x33eaa9){return Promise[_0x500369(0x1e9)](_0x33eaa9);}}async['saveImage'](_0x572bc5){const _0x48290d=_0x9884d2;let _0x5d33b5='';if(!_0x443efc[_0x48290d(0x210)][_0x48290d(0x473)](_0x572bc5[_0x48290d(0x415)]))return this['_decreaseWaiting'](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)]['ERROR_IMAGE_TYPE']));if(_0x572bc5[_0x48290d(0x442)]>(0x0,_0x443efc['getDrawingImageAllowSize'])())return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType'][_0x48290d(0x34d)]));try{let _0x36e749=new FormData();_0x36e749[_0x48290d(0x422)](_0x48290d(0x23e),_0x572bc5);let _0x1c0d08=this[_0x48290d(0x118)]['getFocusedUnit'](),_0x5554e4=_0x1c0d08==null?void 0x0:_0x1c0d08[_0x48290d(0x413)]();if(!_0x5554e4)throw Error('unitId\x20is\x20not\x20found');let _0x1727b9=this[_0x48290d(0x264)]()+_0x48290d(0x295)+_0x572bc5['size'][_0x48290d(0x353)]()+_0x48290d(0x408)+_0x349630[_0x48290d(0x3a6)][_0x48290d(0x14c)]+_0x48290d(0x2b3)+encodeURIComponent(_0x5554e4),_0x1f6874={'body':_0x36e749},_0x4fef35=(await this[_0x48290d(0x1d0)][_0x48290d(0x31b)](_0x1727b9,_0x1f6874))[_0x48290d(0x450)];if(typeof _0x4fef35[_0x48290d(0x414)]!=_0x48290d(0x212))return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515['ImageUploadStatusType']['ERROR_IMAGE']));_0x5d33b5=_0x4fef35[_0x48290d(0x414)];}catch{return this[_0x48290d(0x1ab)](),Promise[_0x48290d(0x1e9)](Error(_0x4b2515[_0x48290d(0x12e)][_0x48290d(0x2b0)]));}return new Promise((_0x54c188,_0x8d644c)=>{const _0x492b67=_0x48290d;let _0x180dd9=new FileReader();_0x180dd9[_0x492b67(0x461)](_0x572bc5),_0x180dd9[_0x492b67(0x2ec)]=_0x380732=>{const _0x5c68a3=_0x492b67;var _0x524f8c;let _0x489fac=(_0x524f8c=_0x380732[_0x5c68a3(0x479)])==null?void 0x0:_0x524f8c[_0x5c68a3(0x312)];if(_0x489fac==null){this[_0x5c68a3(0x1ab)](),_0x8d644c(Error(_0x4b2515[_0x5c68a3(0x12e)][_0x5c68a3(0x2b0)]));return;}_0x54c188({'imageId':(0x0,_0x4b2515[_0x5c68a3(0x12d)])(0x6),'imageSourceType':_0x4b2515[_0x5c68a3(0x3fe)][_0x5c68a3(0x46c)],'source':_0x5d33b5,'base64Cache':_0x489fac,'status':_0x4b2515['ImageUploadStatusType'][_0x5c68a3(0x3b1)]}),this['_decreaseWaiting']();};});}[_0x9884d2(0x264)](){const _0x456b94=_0x9884d2;let _0x4f3351=this[_0x456b94(0x3c6)][_0x456b94(0x32f)](_0x3c0330);return(_0x4f3351==null?void 0x0:_0x4f3351['uploadFileServerUrl'])??_0x456b94(0x42f);}['_getSignURL'](){const _0x5af503=_0x9884d2;let _0x26a074=this['_configService'][_0x5af503(0x32f)](_0x3c0330);return(_0x26a074==null?void 0x0:_0x26a074[_0x5af503(0x218)])??_0x5af503(0x202);}[_0x9884d2(0x337)](){const _0x411e20=_0x9884d2;let _0x37f85b=this[_0x411e20(0x3c6)][_0x411e20(0x32f)](_0x3c0330);return(_0x37f85b==null?void 0x0:_0x37f85b[_0x411e20(0x47d)])??location[_0x411e20(0x142)];}['_replaceFileID'](_0x540b48,_0x21c618){const _0x559814=_0x9884d2;return _0x540b48[_0x559814(0x3b0)](_0x559814(0x2e9),_0x21c618);}[_0x9884d2(0x1ab)](){const _0xb46e5=_0x9884d2;--this[_0xb46e5(0x222)],this['_change$'][_0xb46e5(0x17e)](this[_0xb46e5(0x222)]);}};_0xd196db=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515['Inject'])(_0x530da8['HTTPService'])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x405)]))],_0xd196db);let _0x4ca05f=class{constructor(_0x2f7ebd,_0x3ee934){const _0x2c600e=_0x9884d2;this[_0x2c600e(0x3c6)]=_0x2f7ebd,this[_0x2c600e(0x480)]=_0x3ee934;}[_0x9884d2(0x133)](){const _0x521b89=_0x9884d2;let _0x52dfe1=this[_0x521b89(0x3c6)][_0x521b89(0x32f)](_0x3c0330);return(_0x52dfe1==null?void 0x0:_0x52dfe1[_0x521b89(0x2d7)])??'/universer-api/authz';}async[_0x9884d2(0x240)](_0x3e54a5){const _0x69916f=_0x9884d2;let _0x28cb5b=this[_0x69916f(0x133)]()+_0x69916f(0x275);return{'list':[{'title':_0x69916f(0x1a0),'mentions':(await this[_0x69916f(0x480)][_0x69916f(0x2eb)](_0x28cb5b,{'params':{'objectID':_0x3e54a5[_0x69916f(0x3f0)],'unitID':_0x3e54a5[_0x69916f(0x3f0)]}}))[_0x69916f(0x450)][_0x69916f(0x3ff)]['map'](_0x32fa25=>({'objectId':_0x32fa25['id'],'name':_0x32fa25[_0x69916f(0x43e)]['name'],'metadata':{'icon':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x220)]},'label':_0x32fa25[_0x69916f(0x43e)][_0x69916f(0x114)],'objectType':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]})),'metadata':{},'type':_0x4b2515[_0x69916f(0x38a)][_0x69916f(0x45b)]}]};}};_0x4ca05f=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x341)])),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x4ca05f);let _0x1f63f8=class extends _0x4b2515[_0x9884d2(0x190)]{constructor(_0x36538f,_0xc72752,_0x5c6cc4,_0x28592d,_0x1b15c0,_0x597c6e){const _0x273b51=_0x9884d2;super(),this[_0x273b51(0x46a)]=_0x36538f,this[_0x273b51(0x118)]=_0xc72752,this[_0x273b51(0x2ba)]=_0x5c6cc4,this[_0x273b51(0x2cf)]=_0x28592d,this[_0x273b51(0x3e9)]=_0x1b15c0,this[_0x273b51(0x427)]=_0x597c6e,_0x60128a(this,_0x273b51(0x16e),new Set()),this['disposeWithMe'](()=>this[_0x273b51(0x16e)][_0x273b51(0x214)]()),this[_0x273b51(0x472)](_0x47ca4d(this[_0x273b51(0x118)])[_0x273b51(0x23b)](({unitId:_0x459c1a})=>this[_0x273b51(0x16e)][_0x273b51(0x287)](_0x459c1a))),this[_0x273b51(0x2fa)](),this[_0x273b51(0x1b0)](),[_0x4b2515[_0x273b51(0x223)][_0x273b51(0x10f)],_0x4b2515[_0x273b51(0x223)]['UNIVER_SLIDE'],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x267)],_0x4b2515[_0x273b51(0x223)][_0x273b51(0x339)]]['forEach'](_0x4d1996=>{const _0x4dbd99=_0x273b51;this[_0x4dbd99(0x472)](this[_0x4dbd99(0x118)][_0x4dbd99(0x47f)](_0x4d1996)[_0x4dbd99(0x23b)](_0x59616f=>{const _0x14e049=_0x4dbd99;this['_closedUnits'][_0x14e049(0x2a4)](_0x59616f[_0x14e049(0x413)]()),this[_0x14e049(0x46a)][_0x14e049(0x2eb)](_0x4b2515[_0x14e049(0x234)])[_0x14e049(0x321)](_0x59616f[_0x14e049(0x413)]());}));});}[_0x9884d2(0x1b0)](){const _0x475c4c=_0x9884d2;let _0x57b77e=async(_0x48ea8c,_0x33d52e)=>{const _0x299d1b=_0x328a;let _0x250676=await this['_collaborationSessionService'][_0x299d1b(0x1a4)](_0x48ea8c);this['_disposed']||this['_closedUnits'][_0x299d1b(0x40a)](_0x48ea8c)||!this['_univerInstanceService'][_0x299d1b(0x380)](_0x48ea8c)||_0x250676[_0x299d1b(0x2e6)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x55cf3f=>_0x55cf3f['eventID']===_0x5199be['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,_0x2c33e8[_0x299d1b(0x29e)])((0x0,_0xccd21e[_0x299d1b(0x448)])(this[_0x299d1b(0x36c)],this['_univerInstanceService'][_0x299d1b(0x462)][_0x299d1b(0x486)]((0x0,_0x2c33e8[_0x299d1b(0x10d)])(_0x16878e=>_0x16878e[_0x299d1b(0x413)]()===_0x48ea8c)))))['subscribe'](_0x13e5bf=>{const _0x107666=_0x299d1b;let {reason:_0x784f50}=_0x13e5bf[_0x107666(0x1b4)];this[_0x107666(0x427)]['emitEvent']({'id':_0x107666(0x345),'data':_0x784f50}),this[_0x107666(0x16e)]['add'](_0x48ea8c),this[_0x107666(0x46a)][_0x107666(0x2eb)](_0x4b2515[_0x107666(0x234)])['clearUnit'](_0x48ea8c);let _0x870033=_0x303f38(_0x33d52e);_0x870033!=null&&this[_0x107666(0x2a0)](_0x48ea8c,_0x870033,_0x349630[_0x107666(0x305)]['Edit'],!0x1),this[_0x107666(0x3e9)]['closeSession'](_0x48ea8c);});};_0x47ca4d(this['_univerInstanceService'])[_0x475c4c(0x486)]((0x0,_0x2c33e8[_0x475c4c(0x10d)])(({unitId:_0x19f0e1})=>!(0x0,_0x4b2515[_0x475c4c(0x262)])(_0x19f0e1)),(0x0,_0x2c33e8[_0x475c4c(0x29e)])(this[_0x475c4c(0x36c)]))['subscribe'](({type:_0x369563,unitId:_0x2da34c})=>{const _0x1392a8=_0x475c4c;_0x57b77e(_0x2da34c,_0x369563)[_0x1392a8(0x2d9)](_0x344098=>this['_injector'][_0x1392a8(0x2eb)](_0x4b2515[_0x1392a8(0x39c)])[_0x1392a8(0x1b5)](_0x344098));});}[_0x9884d2(0x2fa)](){const _0x48b481=_0x9884d2;let _0x2f46ff=async(_0x81b961,_0x7006e3)=>{const _0x1dc654=_0x328a;let _0x3407f9=await this[_0x1dc654(0x3e9)]['requireSession'](_0x81b961);if(!(this['_disposed']||this[_0x1dc654(0x16e)][_0x1dc654(0x40a)](_0x81b961)||!this['_univerInstanceService']['getUnit'](_0x81b961))){if(_0x7006e3===_0x4b2515[_0x1dc654(0x223)][_0x1dc654(0x465)]){let _0x3e9d2e=this['_injector'][_0x1dc654(0x2eb)](_0x4ea268[_0x1dc654(0x17c)]);await _0x3e9d2e[_0x1dc654(0x3d7)](_0x81b961),_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3af2df=>_0x3af2df[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x2c33e8['takeUntil'])((0x0,_0xccd21e[_0x1dc654(0x448)])(this['dispose$'],_0x3407f9[_0x1dc654(0x2e6)]['pipe']((0x0,_0x2c33e8['filter'])(_0x4181c2=>_0x4181c2[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this['_univerInstanceService'][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x14b736=>_0x14b736['getUnitId']()===_0x81b961)))))['subscribe'](_0x23621c=>{const _0x3e6f1a=_0x1dc654;let {objectId:_0xa5e028}=_0x23621c[_0x3e6f1a(0x1b4)];_0xa5e028===_0x81b961?_0x3e9d2e[_0x3e6f1a(0x3d7)](_0x81b961):_0x3e9d2e['refreshPermission'](_0x81b961,_0xa5e028);});return;}_0x3407f9['event$'][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x563411=>_0x563411[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x456)]),(0x0,_0x2c33e8[_0x1dc654(0x29e)])((0x0,_0xccd21e['merge'])(this[_0x1dc654(0x36c)],_0x3407f9[_0x1dc654(0x2e6)][_0x1dc654(0x486)]((0x0,_0x2c33e8[_0x1dc654(0x10d)])(_0x3a3c12=>_0x3a3c12[_0x1dc654(0x1b3)]===_0x5199be[_0x1dc654(0x261)][_0x1dc654(0x478)])),this[_0x1dc654(0x118)][_0x1dc654(0x462)][_0x1dc654(0x486)]((0x0,_0x2c33e8['filter'])(_0x1a23ed=>_0x1a23ed[_0x1dc654(0x413)]()===_0x81b961)))))['subscribe'](()=>{const _0x293e92=_0x1dc654;this[_0x293e92(0x45a)](_0x81b961,_0x7006e3)['catch'](_0x2c7964=>this[_0x293e92(0x46a)][_0x293e92(0x2eb)](_0x4b2515[_0x293e92(0x39c)])[_0x293e92(0x1b5)](_0x2c7964));}),await this['_refreshUnitPermission'](_0x81b961,_0x7006e3);}};_0x47ca4d(this[_0x48b481(0x118)])[_0x48b481(0x486)]((0x0,_0x2c33e8[_0x48b481(0x10d)])(({unitId:_0x5a4ed0})=>!(0x0,_0x4b2515[_0x48b481(0x262)])(_0x5a4ed0)),(0x0,_0x2c33e8[_0x48b481(0x29e)])(this[_0x48b481(0x36c)]))['subscribe'](({type:_0x4dcfe9,unitId:_0x3d3c1f})=>{const _0x3791a3=_0x48b481;_0x2f46ff(_0x3d3c1f,_0x4dcfe9)[_0x3791a3(0x2d9)](_0x53207a=>this[_0x3791a3(0x46a)][_0x3791a3(0x2eb)](_0x4b2515['ILogService'])[_0x3791a3(0x1b5)](_0x53207a));});}async[_0x9884d2(0x45a)](_0x3bb401,_0x1e73ea){const _0x4f7882=_0x9884d2;let _0x548e3d=_0x303f38(_0x1e73ea);if(_0x548e3d==null)return;let _0x315b1e=this['_injector'][_0x4f7882(0x2eb)](_0x4b2515[_0x4f7882(0x234)]);if(_0x315b1e['supports']({'unitId':_0x3bb401,'objectId':_0x3bb401,'objectType':_0x548e3d})){await _0x315b1e['refreshUnit'](_0x3bb401);return;}let _0x520597=this[_0x4f7882(0x411)](_0x3bb401,_0x548e3d);if(!_0x520597['length'])return;let _0x475ac2=await this[_0x4f7882(0x2cf)][_0x4f7882(0x354)]({'objectID':_0x3bb401,'objectType':_0x548e3d,'unitID':_0x3bb401,'actions':_0x520597[_0x4f7882(0x333)](({action:_0x4e9943})=>_0x4e9943)});this[_0x4f7882(0x409)]||this[_0x4f7882(0x16e)]['has'](_0x3bb401)||!this[_0x4f7882(0x118)][_0x4f7882(0x380)](_0x3bb401)||_0x475ac2['forEach'](_0x2d484f=>{const _0x533396=_0x4f7882;let _0x5a8aea=_0x2d484f[_0x533396(0x2e4)],_0x3a4360=_0x2d484f[_0x533396(0x354)];_0x5a8aea!=null&&_0x3a4360!=null&&_0x520597[_0x533396(0x10d)](_0x49d6fa=>_0x49d6fa['action']===_0x5a8aea)['forEach'](_0x59509f=>this['_permissionService'][_0x533396(0x2c7)](_0x59509f['id'],_0x3a4360));});}[_0x9884d2(0x411)](_0x49411d,_0x3c1f39){const _0x41835d=_0x9884d2;let _0x14d61d=[];return this[_0x41835d(0x2ba)]['getAllPermissionPoint']()[_0x41835d(0x1e3)]((_0x110844,_0x58f2ec)=>{const _0x30c005=_0x41835d;_0x110844[_0x30c005(0x23b)](_0x3a83f7=>{const _0x2f98d3=_0x30c005;_0x3a83f7['type']===_0x3c1f39&&_0x2f98d3(0x3f0)in _0x3a83f7&&_0x3a83f7[_0x2f98d3(0x3f0)]===_0x49411d&&(!(_0x2f98d3(0x1ac)in _0x3a83f7)||_0x3a83f7[_0x2f98d3(0x1ac)]===_0x49411d)&&_0x14d61d[_0x2f98d3(0x42c)]({'id':_0x58f2ec,'action':_0x3a83f7[_0x2f98d3(0x189)]});})[_0x30c005(0x29f)]();}),_0x14d61d;}['_updateUnitPermissionPoint'](_0x50837b,_0x362cdf,_0x56e313,_0x2fa248){this['_permissionService']['getAllPermissionPoint']()['forEach']((_0x1d5386,_0x50770f)=>{const _0x1dfab2=_0x328a;let _0x4c154a=!0x1;_0x1d5386[_0x1dfab2(0x23b)](_0x1a9477=>{const _0x325ee0=_0x1dfab2;_0x4c154a=_0x1a9477['type']===_0x362cdf&&_0x1a9477[_0x325ee0(0x189)]===_0x56e313&&_0x325ee0(0x3f0)in _0x1a9477&&_0x1a9477['unitId']===_0x50837b&&(!(_0x325ee0(0x1ac)in _0x1a9477)||_0x1a9477[_0x325ee0(0x1ac)]===_0x50837b);})[_0x1dfab2(0x29f)](),_0x4c154a&&this[_0x1dfab2(0x2ba)][_0x1dfab2(0x2c7)](_0x50770f,_0x2fa248);});}};_0x1f63f8=_0x33ad5b([_0x3b5628(0x0,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x405)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x2c2)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x1bd)]),_0x3b5628(0x4,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x283d67)),_0x3b5628(0x5,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0xeca6ce))],_0x1f63f8);function _0x47ca4d(_0x5b5c72){const _0x4927be=_0x9884d2;return(0x0,_0xccd21e[_0x4927be(0x448)])(...[_0x4b2515['UniverInstanceType'][_0x4927be(0x465)],_0x4b2515[_0x4927be(0x223)]['UNIVER_DOC'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x281)],_0x4b2515[_0x4927be(0x223)]['UNIVER_BOARD'],_0x4b2515[_0x4927be(0x223)][_0x4927be(0x267)]][_0x4927be(0x333)](_0x4e3638=>_0x5b5c72[_0x4927be(0x3bf)](_0x4e3638)[_0x4927be(0x486)]((0x0,_0x2c33e8[_0x4927be(0x333)])(_0x2fb8b2=>({'type':_0x4e3638,'unitId':_0x2fb8b2['unit']['getUnitId']()})))));}function _0x303f38(_0x3f6cd5){const _0x39eb41=_0x9884d2;switch(_0x3f6cd5){case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x465)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x3b5)];case _0x4b2515[_0x39eb41(0x223)]['UNIVER_DOC']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x30f)];case _0x4b2515['UniverInstanceType']['UNIVER_SLIDE']:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x1c1)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x339)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x343)];case _0x4b2515[_0x39eb41(0x223)][_0x39eb41(0x267)]:return _0x349630[_0x39eb41(0x154)][_0x39eb41(0x251)];default:return;}}let _0x3759f0=class{constructor(_0x2df99e,_0x4e61e5){const _0x22e021=_0x9884d2;this['_configService']=_0x2df99e,this[_0x22e021(0x1d0)]=_0x4e61e5;}async[_0x9884d2(0x37c)](_0x18f557,_0x3941c9){const _0x174d37=_0x9884d2;var _0x4c02d9;let {unitID:_0x2890a3,type:_0x25ee22,revision:_0x367eac=0x0}=_0x3941c9,_0x51542e=this[_0x174d37(0x19b)]()+'/'+_0x25ee22+_0x174d37(0x3b3)+_0x2890a3+_0x174d37(0x2b8)+_0x367eac,_0x5369bd=(await this[_0x174d37(0x1d0)][_0x174d37(0x2eb)](_0x51542e))[_0x174d37(0x450)],_0x5682ff=(_0x4c02d9=_0x5369bd['snapshot'])==null?void 0x0:_0x4c02d9['workbook'];if(_0x5682ff){let _0x55f800=_0x5682ff==null?void 0x0:_0x5682ff[_0x174d37(0x2f6)];_0x5682ff[_0x174d37(0x2f6)]=_0x5199be[_0x174d37(0x32e)][_0x174d37(0x2d8)]((0x0,_0x5199be[_0x174d37(0x22e)])(_0x55f800)),Object[_0x174d37(0x38e)](_0x5682ff[_0x174d37(0x3dc)])[_0x174d37(0x1e3)](([,_0x4767c6])=>{const _0x51b12b=_0x174d37;let _0x50ffb9=_0x4767c6[_0x51b12b(0x2f6)];_0x4767c6[_0x51b12b(0x2f6)]=_0x5199be['textEncoder'][_0x51b12b(0x2d8)]((0x0,_0x5199be[_0x51b12b(0x22e)])(_0x50ffb9));});}return _0x5369bd;}async[_0x9884d2(0x3f1)](_0x45498d,_0x46e407){const _0x4cb191=_0x9884d2;let {unitID:_0x24f4e2,type:_0xf65912,blockID:_0x24e691}=_0x46e407,_0x3db3ee=this['_getAPIPrefix']()+'/'+_0xf65912+_0x4cb191(0x3b3)+_0x24f4e2+_0x4cb191(0x292)+_0x24e691;return(await this[_0x4cb191(0x1d0)][_0x4cb191(0x2eb)](_0x3db3ee))[_0x4cb191(0x450)];}async[_0x9884d2(0x116)](_0x4bc811,_0xd51d38){const _0x275c35=_0x9884d2;let {unitID:_0x11315f,type:_0x2e454b,blockID:_0x349478}=_0xd51d38,_0x122ffe=this[_0x275c35(0x33a)]()+_0x275c35(0x292)+_0x2e454b+_0x275c35(0x3b3)+_0x11315f+'/block/'+_0x349478;return(await this[_0x275c35(0x1d0)]['get'](_0x122ffe))['body'];}async['fetchMissingChangesets'](_0x14ccad,_0x3bf85e){const _0x122ac4=_0x9884d2;let {unitID:_0x180041,type:_0x54236c,from:_0x1f94fa,to:_0x3bc63c}=_0x3bf85e,_0x15c0f8=this[_0x122ac4(0x33a)]()+'/'+_0x54236c+_0x122ac4(0x3b3)+_0x180041+_0x122ac4(0x135)+_0x1f94fa+'&to='+_0x3bc63c;return(await this[_0x122ac4(0x1d0)][_0x122ac4(0x2eb)](_0x15c0f8))[_0x122ac4(0x450)];}['getSnapshotAPIPath'](){const _0x30c191=_0x9884d2;return this[_0x30c191(0x3c6)][_0x30c191(0x32f)](_0x30c191(0x360))??this[_0x30c191(0x33a)]();}[_0x9884d2(0x33a)](){const _0x19da2b=_0x9884d2;let _0x49db98=this[_0x19da2b(0x3c6)]['getConfig'](_0x3c0330);return(_0x49db98==null?void 0x0:_0x49db98[_0x19da2b(0x1ea)])??'/universer-api/snapshot';}async[_0x9884d2(0x423)](_0x2efb17,_0x5ea722){const _0x5755d6=_0x9884d2;let _0x3b5ede=_0x5755d6(0x434)+_0x5ea722[_0x5755d6(0x415)]+_0x5755d6(0x3b3)+_0x5ea722[_0x5755d6(0x258)]+_0x5755d6(0x254);return(await this['_httpService'][_0x5755d6(0x2eb)](_0x3b5ede,{'params':{'resourceId':JSON[_0x5755d6(0x3ee)](_0x5ea722[_0x5755d6(0x2f3)])}}))[_0x5755d6(0x450)];}[_0x9884d2(0x27e)](){const _0x459c07=_0x9884d2;throw Error(_0x459c07(0x195));}[_0x9884d2(0x38b)](){const _0x5728e2=_0x9884d2;throw Error(_0x5728e2(0x195));}['saveSheetBlock'](){const _0xbfcd3e=_0x9884d2;throw Error(_0xbfcd3e(0x195));}[_0x9884d2(0x3d3)](){const _0x3c2bd1=_0x9884d2;throw Error(_0x3c2bd1(0x195));}[_0x9884d2(0x388)](){const _0x5f198c=_0x9884d2;throw Error(_0x5f198c(0x195));}[_0x9884d2(0x137)](){const _0x1391d7=_0x9884d2;throw Error(_0x1391d7(0x195));}};_0x3759f0=_0x33ad5b([_0x3b5628(0x0,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x1,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x530da8[_0x9884d2(0x24e)]))],_0x3759f0);let _0x594d01=class extends _0x4b2515[_0x9884d2(0x162)]{constructor(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32,_0x18ed86,_0x313ee8){super(_0x3fe84d,_0x18465b,_0x386181,_0x58aa32),this['_transformService']=_0x18ed86,this['_logService']=_0x313ee8;}[_0x9884d2(0x3b7)](_0x1ef529,_0x190029){const _0xe4c610=_0x9884d2;let _0x1f90b1=this[_0xe4c610(0x39e)](_0x1ef529);if(_0x1f90b1)try{let _0x34c59b=this[_0xe4c610(0x20e)](_0x1f90b1,_0x190029);this[_0xe4c610(0x454)](_0x1ef529,_0x34c59b);}catch(_0x4f2ed0){this['_logService']['error'](_0xe4c610(0x15c),_0x4f2ed0),this[_0xe4c610(0x36f)](_0x1ef529);}let _0x48b331=this[_0xe4c610(0x2f7)](_0x1ef529);if(_0x48b331)try{let _0x4086a3=this[_0xe4c610(0x20e)](_0x48b331,_0x190029);this[_0xe4c610(0x42d)](_0x1ef529,_0x4086a3);}catch(_0x2e1cd9){this[_0xe4c610(0x344)]['error'](_0x2e1cd9),this['_clearRedo'](_0x1ef529);}}['_clearUndo'](_0x5c0bdf){const _0x4e8968=_0x9884d2;let _0x660e94=this[_0x4e8968(0x39e)](_0x5c0bdf);_0x660e94&&(_0x660e94[_0x4e8968(0x147)]=0x0,this[_0x4e8968(0x1b8)]());}[_0x9884d2(0x1ad)](_0x6d7bcd){const _0x327eae=_0x9884d2;let _0x1f0322=this[_0x327eae(0x2f7)](_0x6d7bcd);_0x1f0322&&(_0x1f0322[_0x327eae(0x147)]=0x0,this[_0x327eae(0x1b8)]());}[_0x9884d2(0x454)](_0x1e5bc8,_0x468e70){const _0x2cbbd4=_0x9884d2;this[_0x2cbbd4(0x327)][_0x2cbbd4(0x41e)](_0x1e5bc8,_0x468e70),this[_0x2cbbd4(0x1b8)]();}[_0x9884d2(0x42d)](_0x3f0c5a,_0x3e4d1e){const _0x3b5025=_0x9884d2;this[_0x3b5025(0x3e7)][_0x3b5025(0x41e)](_0x3f0c5a,_0x3e4d1e),this['_updateStatus']();}[_0x9884d2(0x20e)](_0x2eec3a,_0x509516){const _0x3bffc8=_0x9884d2;let _0x55018e=[],_0x27f77b=_0x509516,_0x571840=_0x509516;for(let _0x4c94fd=_0x2eec3a['length']-0x1;_0x4c94fd>=0x0;_0x4c94fd--){let {unitID:_0x3dc502,undoMutations:_0x23448e,redoMutations:_0x33906f}=_0x2eec3a[_0x4c94fd],_0x3d3659=this[_0x3bffc8(0x2a6)][_0x3bffc8(0x457)](_0x27f77b,_0x23448e),_0x4bacf2=this['_transformService'][_0x3bffc8(0x457)](_0x571840,_0x33906f);if((0x0,_0x5199be[_0x3bffc8(0x1af)])(_0x3d3659)||(0x0,_0x5199be['isTransformMutationsWithChangesetFailure'])(_0x4bacf2)){this['_logService'][_0x3bffc8(0x1b5)](_0x3bffc8(0x15c),_0x3bffc8(0x47e),_0x3d3659,_0x4bacf2);break;}_0x27f77b=_0x3d3659[_0x3bffc8(0x25e)],_0x571840=_0x4bacf2[_0x3bffc8(0x25e)],_0x55018e[_0x3bffc8(0x42c)]({'unitID':_0x3dc502,'undoMutations':_0x3d3659[_0x3bffc8(0x230)],'redoMutations':_0x4bacf2['m2Prime']});}return _0x55018e[_0x3bffc8(0x12a)]();}};_0x594d01=_0x33ad5b([_0x3b5628(0x0,_0x4b2515['IUniverInstanceService']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x16b)]),_0x3b5628(0x2,_0x4b2515[_0x9884d2(0x25a)]),_0x3b5628(0x3,_0x4b2515[_0x9884d2(0x341)]),_0x3b5628(0x4,_0x5199be['ITransformService']),_0x3b5628(0x5,_0x4b2515[_0x9884d2(0x39c)])],_0x594d01);let _0x673142=class extends _0x4b2515['Plugin']{constructor(_0x11c4e7=_0xa070fb,_0x227483,_0x359c68,_0x2a9762){const _0x26ba67=_0x9884d2;super(),this[_0x26ba67(0x437)]=_0x11c4e7,this[_0x26ba67(0x344)]=_0x227483,this[_0x26ba67(0x46a)]=_0x359c68,this[_0x26ba67(0x3c6)]=_0x2a9762;let {..._0x1204c1}=(0x0,_0x4b2515['merge'])({},_0xa070fb,this['_config']);if(!_0x1204c1[_0x26ba67(0x11f)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x1204c1,this[_0x26ba67(0x3c6)][_0x26ba67(0x398)](_0x3c0330,_0x1204c1);}[_0x9884d2(0x235)](){const _0x3d8b53=_0x9884d2;this[_0x3d8b53(0x3c6)][_0x3d8b53(0x398)](_0x4b2515[_0x3d8b53(0x2aa)],this[_0x3d8b53(0x437)]['objectPermissionTypes']??[]),this[_0x3d8b53(0x2f0)](),this['_initDependencies']();}[_0x9884d2(0x2f0)](){const _0x327d3b=_0x9884d2;var _0x559ef9,_0x2acdec;this[_0x327d3b(0x46a)][_0x327d3b(0x40a)](_0x4b2515[_0x327d3b(0x201)])&&this[_0x327d3b(0x344)][_0x327d3b(0x1b5)](_0x327d3b(0x2bc),_0x327d3b(0x155));let _0x188f45=(0x0,_0x4b2515[_0x327d3b(0x45e)])([[_0x4b2515[_0x327d3b(0x201)],{'useClass':_0x594d01}],[_0x14183e,{'useValue':_0x8c16f0()}],[_0x283d67],[_0x50f206],[_0x2326c2],[_0x324e1c],[_0x3796aa],[_0x16a8e3],[_0x1f63f8],[_0xeca6ce],[_0x125829],[_0x4f7089,{'useClass':this[_0x327d3b(0x437)][_0x327d3b(0x11f)]}],[_0x5199be['ISnapshotServerService'],{'useClass':_0x3759f0}],[_0x4b2515[_0x327d3b(0x1bd)],{'useClass':_0x15f3fe}],[_0x4b2515[_0x327d3b(0x304)],{'useClass':_0xd196db}],[_0x5e4e05,{'useClass':_0x5b1674}],[_0x4b2515[_0x327d3b(0x3aa)],{'useClass':_0x4ca05f}],[_0x4809ba],[_0x2fc493]],(_0x559ef9=this['_config'])==null?void 0x0:_0x559ef9[_0x327d3b(0x1b7)]);if(!((_0x2acdec=this[_0x327d3b(0x437)])!=null&&_0x2acdec[_0x327d3b(0x2fd)])){let _0x5e950a=_0x188f45[_0x327d3b(0x3e1)](([_0x410ed4])=>_0x410ed4===_0x55fbad);_0x5e950a!==-0x1&&_0x188f45[_0x327d3b(0x289)](_0x5e950a,0x1);}(0x0,_0x4b2515['registerDependencies'])(this[_0x327d3b(0x46a)],_0x188f45);}[_0x9884d2(0x31e)](){const _0x315c4c=_0x9884d2;var _0x4947f0,_0x20d2fe;if(this['_injector'][_0x315c4c(0x2eb)](_0x530da8[_0x315c4c(0x24e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,_0x530da8[_0x315c4c(0x10e)])({'maxParallel':0x6})}),!((_0x4947f0=this[_0x315c4c(0x437)])!=null&&_0x4947f0[_0x315c4c(0x268)])){var _0x2ed8f6;(_0x2ed8f6=this[_0x315c4c(0x46a)]['get'](_0x2b4688,_0x4b2515['Quantity']['OPTIONAL']))==null||_0x2ed8f6[_0x315c4c(0x2da)]();}(_0x20d2fe=this[_0x315c4c(0x437)])!=null&&_0x20d2fe[_0x315c4c(0x208)]&&(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this[_0x315c4c(0x46a)],[[_0x324e1c]]),(0x0,_0x4b2515[_0x315c4c(0x2bb)])(this['_injector'],[[_0x3796aa],[_0x4809ba],[_0x1f63f8]]);}};_0x60128a(_0x673142,'pluginName',_0x9884d2(0x187)),_0x60128a(_0x673142,_0x9884d2(0x3ac),_0x3ff4bc),_0x60128a(_0x673142,_0x9884d2(0x42e),_0x303b92),_0x673142=_0x33ad5b([(0x0,_0x4b2515[_0x9884d2(0x1f1)])(_0x3ed42b[_0x9884d2(0x170)],_0x530da8[_0x9884d2(0x467)],_0x5199be['UniverCollaborationPlugin']),_0x3b5628(0x1,_0x4b2515[_0x9884d2(0x39c)]),_0x3b5628(0x2,(0x0,_0x4b2515[_0x9884d2(0x2e0)])(_0x4b2515[_0x9884d2(0x46d)])),_0x3b5628(0x3,_0x4b2515['IConfigService'])],_0x673142),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1ff),{'enumerable':!0x0,'get':function(){return _0x15f3fe;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x23d),{'enumerable':!0x0,'get':function(){return _0x57ae4a;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1be),{'enumerable':!0x0,'get':function(){return _0x1e3872;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x1a9),{'enumerable':!0x0,'get':function(){return _0x24daae;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3af),{'enumerable':!0x0,'get':function(){return _0x4deb99;}}),_0x27ec94[_0x9884d2(0x18f)]=_0x3c0330,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x174),{'enumerable':!0x0,'get':function(){return _0x5b1674;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x446),{'enumerable':!0x0,'get':function(){return _0x4809ba;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x464),{'enumerable':!0x0,'get':function(){return _0xe2b433;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x38d),{'enumerable':!0x0,'get':function(){return _0xd196db;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x188c53;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35e),{'enumerable':!0x0,'get':function(){return _0x283d67;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1da),{'enumerable':!0x0,'get':function(){return _0x1df3dc;}}),_0x27ec94['CollaborationStatus']=_0x500434,_0x27ec94['CollaborationUIEventId']=_0x491b70,_0x27ec94[_0x9884d2(0x43f)]=_0xeca6ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x594d01;}}),_0x27ec94[_0x9884d2(0x286)]=_0x16a8e3,Object['defineProperty'](_0x27ec94,_0x9884d2(0x165),{'enumerable':!0x0,'get':function(){return _0x4b9c5b;}}),_0x27ec94[_0x9884d2(0x1f6)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x27ec94[_0x9884d2(0x291)]=_0x9884d2(0x432),_0x27ec94[_0x9884d2(0x2ff)]=_0x9884d2(0x24b),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x41d),{'enumerable':!0x0,'get':function(){return _0x125829;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x193),{'enumerable':!0x0,'get':function(){return _0x94e744;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x181),{'enumerable':!0x0,'get':function(){return _0x394019;}}),_0x27ec94['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',_0x27ec94[_0x9884d2(0x3d2)]=_0x9884d2(0x207),_0x27ec94[_0x9884d2(0x1a7)]=_0x5e4e05,_0x27ec94[_0x9884d2(0x255)]=_0x14183e,_0x27ec94[_0x9884d2(0x27a)]=_0x4f7089,_0x27ec94[_0x9884d2(0x22b)]=_0x2b4688,_0x27ec94['INetworkConditionService']=_0x3ce8fd,_0x27ec94[_0x9884d2(0x177)]=_0x55fbad,_0x27ec94[_0x9884d2(0x1fa)]=0x3e8,_0x27ec94[_0x9884d2(0x33c)]=_0x9884d2(0x1fa),Object['defineProperty'](_0x27ec94,'MemberService',{'enumerable':!0x0,'get':function(){return _0x50f206;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x35d),{'enumerable':!0x0,'get':function(){return _0x4ca05f;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x23f),{'enumerable':!0x0,'get':function(){return _0x20a1e1;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x3e8),{'enumerable':!0x0,'get':function(){return _0x2226d9;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x164),{'enumerable':!0x0,'get':function(){return _0x27ecb8;}}),_0x27ec94[_0x9884d2(0x410)]=_0x9884d2(0x307),_0x27ec94[_0x9884d2(0x2f5)]='RETRY_CONNECTING_MAX_COUNT',_0x27ec94['SessionStatus']=_0x5089ce,Object[_0x9884d2(0x1ce)](_0x27ec94,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0xe8b1d4;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x150),{'enumerable':!0x0,'get':function(){return _0x2326c2;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x3ca),{'enumerable':!0x0,'get':function(){return _0x3a9411;}}),Object['defineProperty'](_0x27ec94,_0x9884d2(0x1e7),{'enumerable':!0x0,'get':function(){return _0x3759f0;}}),Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x363),{'enumerable':!0x0,'get':function(){return _0x57c5eb;}}),_0x27ec94[_0x9884d2(0x215)]=_0xa9151d,Object[_0x9884d2(0x1ce)](_0x27ec94,_0x9884d2(0x44b),{'enumerable':!0x0,'get':function(){return _0x673142;}}),_0x27ec94[_0x9884d2(0x2a7)]=_0x8c16f0,_0x27ec94[_0x9884d2(0x180)]=_0x36e901,_0x27ec94[_0x9884d2(0x24f)]=_0x41bf27,_0x27ec94['serializeCombRequest']=_0x320ae2;}));function _0x328a(_0x46b701,_0x13a21b){_0x46b701=_0x46b701-0x10d;const _0x3671a5=_0x3671();let _0x328ad9=_0x3671a5[_0x46b701];return _0x328ad9;}function _0x3671(){const _0x31c495=['Rectangle','add','endsWith','_transformService','createUniverCollaborationAdapter','endpointKey','enableCollaboration','OBJECT_PERMISSION_CONFIG_KEY','buffer','MergeInterceptorFactory','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','BASE64','subarray','ERROR_IMAGE','LIVESHARE_FETCH_OPERATIONS','location','&assign=','putCollaborators','then','[CollaborationSessionService]','_onJoinRoomEvent','/rev/','getUploadOptions','_permissionService','touchDependencies','[UniverCollaborationClientPlugin]','floor','localUnitId','online$','decorate','RECV','IPermissionService','createIdentifier','trim','[PendingState]:\x20received\x20acknowledgement.','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','updatePermissionPoint','POST','_submitChangeset','timeoutTimer','/-/object/list','_waitForHeartbeatResponse','\x0aAfter:\x20','init','_authzIoService','retryCount','change$','[SyncedState]:\x20received\x20rejection.','2348528SEsToC','updateMember','39328PLNIqq','send','authzUrl','encode','catch','disableLocalCache','_checkMissing','fetch_missing','/object','onRemoteAck','@univerjs/telemetry','Inject','_sheetTransformSelectionsService','onLocalMutation','_createSocket','action','sessionStatus','event$','joinEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','{fileID}','_tryReconnect','get','onload','[SyncedState]:\x20received\x20acknowledgement.','deepClone','_commandService','_registerDependencies','__Key__','_createInitialState','resourceIDs','revision','RETRY_CONNECTING_MAX_COUNT_KEY','originalMeta','_getRedoStack','_roomMembers','addImageSourceCache','_initUnitPermissionChange','missingChangesets','LEAVE','enableSingleActiveInstanceLock','_transitionLocked','DEFAULT_WS_SESSION_TICKET_URL','_maxTotalRetryTimeout','_incrementRevisionNumber','resolveWithBasePath','x-univer-host','IImageIoService','UnitAction','_joinRoom','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[CollaborationState]:\x20apply\x20error!','_clearTimeoutTimer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_clearCollaborationTimeoutTimer','[FetchMissState]','fetchMissingChangesets','hasOwnProperty','Document','_status$','onTransformRemoteChangesetByIMECache','result','_replayCachedMutations','dispose','_getLoginPath','getWorkbookSelections','rev','FETCH_MISSING','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','onTransformIME','post','_sendHeartbeat',',\x20got\x20','_initDependencies','_commentService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','clearUnit','_getSignURL','_localCacheService','blockRanges','loadUnit','NO_OTHER_CLIENTS_EDITING','_undoStacks','ErrorCode','resolveUnit','UNISCRIPT_RUN','LocaleService','_members$','onRemoteChangeset','textEncoder','getConfig','onTransformState','_snapshotServerService','type=','map','_schedule','nonceLength','__splitChunk__','_getDownloadEndpointURL','FETCH_MISS','UNIVER_BOARD','_getAPIPrefix','_unlockTransition','LOCAL_CACHE_INTERVAL_KEY','_onCombEvent','collaboration_new_changeset','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getFocusedUnit','IConfigService','_unitInfo$','Board','_logService','CLOSE_ROOM','FAIL','unitLoaded$','debug','apply','find','csRejEvent','SheetsSelectionsService','ERROR_EXCEED_SIZE','WorkbookEditablePermission','_updateLocalCache','_roomCreated$','socketReady','socket$','toString','allowed','_collaborationPaused','sid','toggleOnline','isTransformMutationsWithChangesetSuccess','168zMqoHt','HELLO','_showConflictProcessingNotification','columnGroups','MentionIoHttpService','CollaborationSessionService','cmd','SNAPSHOT_URL_KEY','fromCharCode','_transformRemoteChangesetByStateCache','SyncedState','collaboration-client.local-cache-service','key','uniscriptRunEvent','@univerjs-pro/collaboration','wrong\x20sbox\x20length','_transformStateCache','_sendingTimer','userID','dispose$','_collaborationTimeoutTimer','_rescheduleHeartbeat','_clearUndo','fetching\x20missing\x20changesets\x20from\x20','fromCollab','aes:\x20bad\x20decrypt','loadDoc','rxjs','ReplaySubject','CompressMutationService','USERS_ENTER','transformSelections','BehaviorSubject','actions','2456FZXkad','getUnitOnRev','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','iterator','byteLength','getUnit','expected\x20Uint8Array','resolve','getValue','PERMISSION_REJ','ciphertext\x20must\x20be\x20multiple\x20of\x2016','_init','isTransformChangesetsSuccess','copyFileMeta','CommandType','MentionType','updateSnapshot','listCollaborators','CollaborationImageIoService','entries','6uNUVAg','socketMessageSubscription','encrypt','waitForRoom$','_onRemoteACK','collaboratorID','interceptor','toLocal','_socketChannels','setConfig','_scheduleCollaborationTimeoutTimer','uuidv4','onRemoteRetry','ILogService','_toggleOffline','_getUndoStack','Univer','Module','_sessionChannels','SOCKET_FAILED_RETRY','_onRemoteChangeset','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OTHER_CLIENTS_EDITING','FileSource','_initMergeInterceptor','_docStateChangeManagerService','collaMsg','IMentionIOService','symbol','packageName','_updateState','crypto','BoardCollaborationEntity','replace','SUCCUSS','createSocket','/unit/','roomInfos','Workbook','charCodeAt','transformUndoRedo','joinRsp','_change$','_transformRemoteChangesetByIMECache','_acknowledgedAwaitingRevision','HEARTBEAT_INTERVAL','UniverTelemetry','entityInit$','getTypeOfUnitAdded$','_fetchMissChangesets','collaboration-client.config','onTransformSelections','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getAllMembers','_handlerCallback','_configService','OTHER_CLIENT_EDITING','collabSubmitChangesetUrl','/new_changes','SlideCollaborationEntity','isArray','onSyncEditingCollabCursor','changesets','src','failed\x20to\x20apply\x20missed\x20changesets!','_transformIMECache','@univerjs/protocol','HEARTBEAT_TIMEOUT_KEY','saveChangeset','sequenceExecute','RemoveSlidePageMutation','slice','initWorkbookPermissionChange','_telemetryService','_cfgEnableObjInherit','onPrepareTransformSelections','SUBMIT_CHANGESET_TIMEOUT','sheets','NOT_COLLAB','_pendingSessions','COMMENT_UPDATE','getUnitStatus$','findIndex','_type','some','startTime','maxSize','isCompositionEnd','_redoStacks','PdfCollaborationEntity','_collaborationSessionService','appendMutation','_clearScheduledTask','toggleOffline','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','stringify','newCsEvent','unitId','getSheetBlock','_handler','_onRemoteRetry','routeKey','params','code','amd','_event$','LIVESHARE_TERMINATE','update','ws://127.0.0.1:8000/universer-api/comb/connect','delay','_acknowledgeAwaitingIfReady','ImageSourceType','collaborators','message$','JOINING','_awaitingChangeset','_snapshotService','incrementRevOfUnit','IUniverInstanceService','getCollabEntity$','crypto.getRandomValues\x20must\x20be\x20defined','&source=','_disposed','has','_getCtorByUniverInstanceType','accept','createInstance','_replaceFileID','UniverDrawing','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_getUnitPermissionPoints','_unitLoaded$','getUnitId','FileId','type','state$','memberID','_onRecvEvent','liveShareOperation','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','NEW_CHANGESETS','15404570DVakeQ','DataLoaderService','set','complete','title','getCurrentRevOfUnit','append','getResourcesRequest','url','_resendTimer','_throwTelemetryCollaborationNewChangeset','_collaborationUIEventService','_showConflictNotification','getUnitType','_adapter','[PendingState]:\x20unhandled\x20univer\x20type:\x20','push','_substituteRedoStack','version','/universer-api/stream/file/upload','collabWebSocketUrl','uploadFileServerUrl','/universer-api/uniscript','mapDocumentTypeToUniverInstanceType','/universer-api/snapshot/','setWaitCount','_lockTransition','_config','/role','isPermissionRej','[OfflineState]:\x20received\x20acknowledgement.','localCacheService','asObservable','call','subject','CollaborationUIEventService','CmdRspCode','AddSlidePageMutation','size','synced','getMemberID','onCommentUpdate','CollaborationController','_resendWithTimeout','merge','method','_commentUpdate$','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','JOIN_ROOM_FAILED','_pendingMutations','body','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','AWAITING','_scheduleCompleteTimestamp','_substituteUndoStack','_collabSessionService','UPDATE_PERMISSION_OBJ','transformMutationsWithChangeset','RETRY_CONNECTING_MAX_COUNT','session.room-cnt-exceeds','_refreshUnitPermission','PERSON','loginUrlKey','getRoom','mergeOverrideWithDependencies','status','LIVESHARE_NEW_HOST','readAsDataURL','unitDisposed$','_acknowledgeAwaiting','CollaborationEntity','UNIVER_SHEET','deleteCollaborator','UniverNetworkPlugin','_onRemoteRejected','loadOfflineData','_injector','objectType','UUID','Injector','_exhaustRemoteChangesetQueue','MUTATION','getActiveSheet','stopTime','disposeWithMe','includes','function','objectID','_syncEditingCollabCursor','_startCollaboration','SHOULD_CLOSE_CONN','target','executeCommand','_createSession','ITelemetryService','downloadEndpointUrl','transformStack\x20failed!','getTypeOfUnitDisposed$','_HTTPService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_entityInit$','retryConnectingInterval','close$','/universer-api/comb','pipe','Uint8Array','subUnitId','filter','ThresholdInterceptorFactory','UNIVER_DOC','removeMember','_telemetryInfo','headers','session.room-not-exists','name','session.room-full','getDeserializedSheetBlock','retryConnectingTimer','_univerInstanceService','UniverSheets','constructor','_getSendChangesetTimeout','csShouldRetryEvent','_initRequestHeader','attachment','socketService','commit','_emitMembers','sort','\x20of\x20length\x20','setShowComponents','UniverProLicense','updateCollaborator','candidateSocket','onMissedChangesetFetched','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','reverse','startsWith','reqId','generateRandomId','ImageUploadStatusType','sendHeartbeatTimer','connection\x20error','isSafeInteger','_getSocketChannel','_getAPIPrefixPath','loadSheet','/fetchmissing?from=','_onMessage','getLatestCsReqIdBySid','requestParams','COMPRESS_MUTATION_SEND','commentUpdateEvent','endpoint','_memberService','JOIN_ROOM_NOT_EXISTS','_getConfig','getOwnPropertyDescriptor','Failed\x20to\x20update\x20permission\x20point','_clearRetryConnectingTimer','origin','_onConflict','state','unit','_onFetchMissResult','length','sessionStatus$','_disableEditing','_sender','expected\x20integer\x20>=\x200,\x20got\x20','UnitEmbedded','MoveSlidePageMutation','LIVESHARE_REQUEST_HOST','1.0.1','SheetTransformSelectionsService','getGlobalObject','objectActions','UniverCore','UnitObject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','@univerjs/docs','_startTelemetryCollaborationNewChangeset','reconnect','_socketService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','nonce','[CollaborationUndoRedoService]','fetchMiss','SnapshotService','onSendChangeset','_socket','getAttachmentUrl','LocalUndoRedoService','SOCKET_FAILED','PendingState','ConflictState','changeset','prototype','string\x20expected','UserManagerService','\x0aCurrent:\x20','ICommandService','getCollabEntity','2124510UZAnPm','_closedUnits','RichTextEditingMutation','UniverLicensePlugin','onStateChange','indexOf','create','CollaborationAttachmentIoService','_sessions','getInterceptPoints','ISingleActiveUnitService','from','_applyRemoteChangeset','_onLocalMutation','/allowed','SheetPermissionInitController','now','next','_listenToNetworkCondition','deserializeToCombResponse','FetchingMissState','EmptyMutationInfo','/-/object/-/batch_allowed','unit-cache-','_networkConditionService','_eventService','UNIVER_COLLABORATION_CLIENT_PLUGIN','_compressMutationService','subType','socket\x20open.','univer-pro.collaboration-client-adapter-service','_createHandler','fetchThroughInterceptors','PSEUDO_FETCH_MISSING_RESULT','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RxDisposable','editingUnit','[CollaborationSession]','DocCollaborationEntity','loadBoard','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_revisionService','USERS_LEAVE','INGEST','error$','JSONX','getSnapshotAPIPath','_onConnectionFailed','CHANGESET_REJ','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','ISocketService','People','_resolveSessionIdentity','Tools','pending','requireSession','_socketMessageSubscription','_clearHeartbeatTimer','IAttachmentIoService','unknown','BaseCollaborationEntity','_changesetSessionId','_decreaseWaiting','objectId','_clearRedo','BYTES_PER_ELEMENT','isTransformMutationsWithChangesetFailure','_initCloseConn','MSG_FOR_ERROR','UniverProtocol','eventID','data','error','exports','override','_updateStatus','UNIVER_PDF','onlyLocal','getImageSourceCache','@univerjs/network','IAuthzIoService','AwaitingWithPendingState','conflict','univer-pro.collaboration-client.single-active-unit-service','Slide','varSizeNonce','pauseCollaboration','_handleRemoteChangesets','_userManagerService','_shouldReportTelemetry','getTime','getRandomValues','_toggleOnline','\x20-\x20','Disposable','_entities','onMutationExecutedForCollab','defineProperty','awaiting','_httpService','save\x20fail\x20reason\x20is\x20','COMPRESS_MUTATION_APPLY','_prepareTransformSelections','baseRev','@univerjs/sheets','ONLINE','IDLE','univer-pro.collaboration-client.network-condition.service','UniverProSlides','CollaborationSocketService','emitEvent','take','_upload','Optional','sendChangesetTimeout','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getMember','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','forEach','[OfflineState]:\x20received\x20rejection.','Error\x20on\x20receiving\x20event','range','SnapshotServerOverHTTPService','plaintext\x20must\x20be\x20multiple\x20of\x2016','reject','snapshotServerUrl','collaboration-client.auth.needGotoLoginAlert','ITransformService','output','@univerjs/drawing','concatMap','_members','DependentOn','JOIN_ROOM_PERMISSION_DENIED','values','_localeService','UPDATE_CURSOR','DEFAULT_COLLAB_WEB_SOCKET_URL','CHANGESET_ACK','updateCursorEvent','PERMISSION_DENIED','LOCAL_CACHE_INTERVAL','RevisionService','resend','_identity','_onConnectionOpen','AuthzIoHttpService','Subject','IUndoRedoService','/universer-api/file/{fileID}/sign-url','getCurrentUser','getCurrentSelections','decrypt','onTransformRemoteChangesetByStateCache','HEARTBEAT_TIMEOUT','enableAuthServer','SUBMIT_CHANGESET','SetSelectionsOperation','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_stopTelemetryCollaborationNewChangeset','withAAD','_transformStack','_singleActiveUnitService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','string','JOIN','clear','UnitStatus','_onOffline','hostname','signUrlServerUrl','offline','parseChangesetToProtocol','_transformAndApplyRemoteChangeset','clearOfflineData','_getCurrentRevision','loadUnitOfRevision','onRemoteRej','avatar','tagLength','_waitCount','UniverInstanceType','firstValueFrom','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','duration','invalid\x20output,\x20must\x20be\x20aligned','onMissingChangesets','textRanges','9516808hMAjGi','ILocalCacheService','parseProtocolChangeset','addHandlerCallback','b64DecodeUnicode','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','m2Prime','min','awaitingChangeset','_transformSelections','ObjectPermissionService','onStarting','univer-pro.collaboration-client-socket-service','_state','CHANGESET_SHOULD_RETRY','[CollaborationEntity]','_tryEnsureSocket','subscribe','readyForCollab','AwaitingState','file','OfflineState','list','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','roles','close','_transformUndoredo','setCfgEnableObjInherit','@univerjs-pro/slides','upload','saveAttachment','fill','CONFLICT','/universer-api/user/session-ticket','@univerjs-pro/license','_executeRemoteChangeset','HTTPService','getLocalCacheKey','_sessionStatus$','Base','capture','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','/resources','ICollaborationClientAdapterService','createCollaborator','disablePadding','unitID','_prepareConflictRecovery','IContextService','_undoRedoService','mutations','backupOfflineData','c1Prime','[CollaborationSessionService]:\x20socket\x20error','CONFLICT_CACHE_CLEAR_FAILED','CollaborationEvent','isInternalEditorID','rxjs/operators','_getUploadFileURL','open$','number','UNIVER_BASE','enableOfflineEditing','_resendTimeout','permissionRejEvent','put','_instanceService','telemetry\x20info\x20is\x20not\x20initialized','object','_remoteChangesetQueue','transformChangesets','_hasSessionsForEndpoint','_isEchoedAwaitingChangeset','loadBase','_onUserJoin','/collaborator','assign','DisposableCollection','updatePermissionObjEvent','DocStateChangeManagerService','ICollaborationSocketService','docStateChange$','@univerjs/core','confirm','saveSnapshot','[DataLoaderService]','HEARTBEAT','UNIVER_SLIDE','_queuedRemoteChangesets','awaiting_with_pending','AAD\x20not\x20supported','UniverNetwork','CommentService','delete','UniverProCollaborationClient','splice','toPrimitive','session','byteOffset','_changesetReqId','loadSlide','text-x','submit\x20changeset\x20error!','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','/block/','CombCmd','unitType','?size=','CONFLICT_PROCESSING','28467kFJqGf','status$','toDisposable','COLLABORATION_ENDPOINT_INVALID','_state$','_removeRoom','954546eyIeth','takeUntil','unsubscribe','_updateUnitPermissionPoint','/object/','_imageSourceCache'];_0x3671=function(){return _0x31c495;};return _0x3671();}