@univerjs-pro/collaboration-client 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collaboration/changeset-submitter.d.ts +2 -2
  65. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
  66. package/lib/types/controllers/collaboration/collaboration-state.d.ts +24 -22
  67. package/lib/types/facade/f-event.d.ts +3 -1
  68. package/lib/types/index.d.ts +1 -1
  69. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
  70. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +2 -0
  71. package/lib/umd/facade.js +1 -1
  72. package/lib/umd/index.js +1 -1
  73. package/lib/umd/locale/ar-SA.js +1 -1
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -1
  81. package/lib/umd/locale/it-IT.js +1 -1
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -1
  85. package/lib/umd/locale/pt-BR.js +1 -1
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -1
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +15 -15
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2c10(_0x746c76,_0x5e5ca2){_0x746c76=_0x746c76-0x95;const _0x4cd7a4=_0x4cd7();let _0x2c1008=_0x4cd7a4[_0x746c76];return _0x2c1008;}(function(_0x55079a,_0x3e7846){const _0x273ad6=_0x2c10,_0x1cb562=_0x55079a();while(!![]){try{const _0x19029c=-parseInt(_0x273ad6(0xc1))/0x1*(parseInt(_0x273ad6(0x3e7))/0x2)+-parseInt(_0x273ad6(0x382))/0x3*(-parseInt(_0x273ad6(0x2b8))/0x4)+parseInt(_0x273ad6(0x1eb))/0x5+parseInt(_0x273ad6(0x1e9))/0x6*(parseInt(_0x273ad6(0x2f3))/0x7)+parseInt(_0x273ad6(0x31a))/0x8*(parseInt(_0x273ad6(0x2d3))/0x9)+parseInt(_0x273ad6(0x185))/0xa*(-parseInt(_0x273ad6(0xf4))/0xb)+-parseInt(_0x273ad6(0x451))/0xc;if(_0x19029c===_0x3e7846)break;else _0x1cb562['push'](_0x1cb562['shift']());}catch(_0xe3b56d){_0x1cb562['push'](_0x1cb562['shift']());}}}(_0x4cd7,0xc30b2),function(_0x4979ef,_0x3fbbd2){const _0x5b5327=_0x2c10;typeof exports==_0x5b5327(0x265)&&typeof module<'u'?_0x3fbbd2(exports,require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x5b5327(0x44d)]?define([_0x5b5327(0x14f),_0x5b5327(0x287),'rxjs',_0x5b5327(0x43b),_0x5b5327(0x478),_0x5b5327(0x34d),'@univerjs/sheets','@univerjs/protocol',_0x5b5327(0x1f3),_0x5b5327(0x379),_0x5b5327(0x44b),_0x5b5327(0x397),_0x5b5327(0x415)],_0x3fbbd2):(_0x4979ef=typeof globalThis<'u'?globalThis:_0x4979ef||self,_0x3fbbd2(_0x4979ef[_0x5b5327(0x2c3)]={},_0x4979ef[_0x5b5327(0x1f4)],_0x4979ef[_0x5b5327(0x3a9)],_0x4979ef[_0x5b5327(0x344)],_0x4979ef[_0x5b5327(0xa6)],_0x4979ef[_0x5b5327(0x284)],_0x4979ef['UniverSheets'],_0x4979ef[_0x5b5327(0x3c6)],_0x4979ef[_0x5b5327(0x3f5)],_0x4979ef['rxjs'][_0x5b5327(0xc3)],_0x4979ef[_0x5b5327(0x1fd)],_0x4979ef[_0x5b5327(0x156)],_0x4979ef['UniverDrawing']));}(this,function(_0x23db49,_0x18cba4,_0x1fdbe2,_0x4524ba,_0x325f28,_0x285e73,_0x29d3a5,_0x483212,_0x15e7af,_0xa8b74d,_0x2ee164,_0x35d7c3,_0x2115ce){const _0x315216=_0x2c10;Object['defineProperty'](_0x23db49,Symbol['toStringTag'],{'value':'Module'});let _0x3a344c=_0x315216(0x146),_0x1e0f56={};function _0x2a0071(_0x2a257e){'@babel/helpers - typeof';const _0x2362f5=_0x315216;return _0x2a0071=typeof Symbol==_0x2362f5(0x246)&&typeof Symbol['iterator']==_0x2362f5(0x327)?function(_0x2b8327){return typeof _0x2b8327;}:function(_0x5dcf18){const _0x57175b=_0x2362f5;return _0x5dcf18&&typeof Symbol==_0x57175b(0x246)&&_0x5dcf18['constructor']===Symbol&&_0x5dcf18!==Symbol[_0x57175b(0x40b)]?_0x57175b(0x327):typeof _0x5dcf18;},_0x2a0071(_0x2a257e);}function _0x23348b(_0x2fb15e,_0xbfd1bb){const _0x27dc8b=_0x315216;if(_0x2a0071(_0x2fb15e)!=_0x27dc8b(0x265)||!_0x2fb15e)return _0x2fb15e;var _0x5ccec1=_0x2fb15e[Symbol[_0x27dc8b(0x1f5)]];if(_0x5ccec1!==void 0x0){var _0x15aeaf=_0x5ccec1[_0x27dc8b(0x20c)](_0x2fb15e,_0xbfd1bb||_0x27dc8b(0x2fa));if(_0x2a0071(_0x15aeaf)!=_0x27dc8b(0x265))return _0x15aeaf;throw TypeError(_0x27dc8b(0x138));}return(_0xbfd1bb===_0x27dc8b(0xd5)?String:Number)(_0x2fb15e);}function _0x485e0c(_0x406d92){const _0x45ea86=_0x315216;var _0x2b7e74=_0x23348b(_0x406d92,_0x45ea86(0xd5));return _0x2a0071(_0x2b7e74)==_0x45ea86(0x327)?_0x2b7e74:_0x2b7e74+'';}function _0x4da1f9(_0x2da904,_0x3aed30,_0x90936f){const _0x51fa02=_0x315216;return(_0x3aed30=_0x485e0c(_0x3aed30))in _0x2da904?Object[_0x51fa02(0xb2)](_0x2da904,_0x3aed30,{'value':_0x90936f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2da904[_0x3aed30]=_0x90936f,_0x2da904;}var _0x18c848=class{constructor(_0x457fc2,_0x830692,_0x3254d3={}){const _0x5b0fc0=_0x315216;this[_0x5b0fc0(0x2db)]=_0x830692,this[_0x5b0fc0(0x45a)]=_0x3254d3,_0x4da1f9(this,'_attempt',0x0),_0x4da1f9(this,_0x5b0fc0(0x16a),void 0x0),_0x4da1f9(this,'_ackTimeout',void 0x0),_0x4da1f9(this,_0x5b0fc0(0x3d3),void 0x0),_0x4da1f9(this,'_retryBackoff',0x0),_0x4da1f9(this,_0x5b0fc0(0x387),0x0),_0x4da1f9(this,_0x5b0fc0(0x12d),null),_0x4da1f9(this,_0x5b0fc0(0x34c),null),_0x4da1f9(this,_0x5b0fc0(0x46d),null),_0x4da1f9(this,_0x5b0fc0(0x2c5),0x0),_0x4da1f9(this,_0x5b0fc0(0x43c),!0x1),_0x4da1f9(this,_0x5b0fc0(0x1e6),void 0x0),_0x4da1f9(this,_0x5b0fc0(0x98),void 0x0),this['_reqId']=_0x457fc2,this['_ackTimeout']=_0x3254d3[_0x5b0fc0(0x370)]??0x4e20,this[_0x5b0fc0(0x3d3)]=Math[_0x5b0fc0(0x30e)](_0x3254d3[_0x5b0fc0(0x2ec)]??0x1d4c0,this['_ackTimeout']),this['_now']=_0x3254d3['now']??(()=>Date['now']()),this[_0x5b0fc0(0x16a)]=this[_0x5b0fc0(0x1e6)]();}get[_0x315216(0x3d0)](){const _0x1013ca=_0x315216;return this[_0x1013ca(0x98)];}get[_0x315216(0x378)](){const _0x2bcacb=_0x315216;return this[_0x2bcacb(0x1fc)];}get['nextDelayMs'](){const _0x487693=_0x315216;return this[_0x487693(0x387)];}get['elapsedMs'](){const _0x25fbd3=_0x315216;return this[_0x25fbd3(0x1e6)]()-this[_0x25fbd3(0x16a)];}[_0x315216(0x3cf)](_0x175a97){const _0x4b030e=_0x315216;if(this[_0x4b030e(0x43c)])return;this[_0x4b030e(0x46d)]=_0x175a97;let _0x2caf26=this['_pendingReason'];_0x2caf26&&(this[_0x4b030e(0x34c)]=null,this['_resend'](_0x2caf26));}['unbind'](){const _0x13bed1=_0x315216;this[_0x13bed1(0x46d)]=null;}[_0x315216(0x2ac)](_0x3a9f1e,_0x43ffb9,_0x42ea86){const _0x1ecfd1=_0x315216;this['_disposed']||(_0x42ea86&&this[_0x1ecfd1(0x19f)](_0x42ea86),this['armAckTimeout'](),this[_0x1ecfd1(0xc7)](_0x3a9f1e),this[_0x1ecfd1(0x98)]=_0x3a9f1e['reqId']??this[_0x1ecfd1(0x98)],_0x42ea86&&this['_notifyResend'](_0x42ea86,_0x43ffb9));}[_0x315216(0x431)](){const _0x5a7fe6=_0x315216;this[_0x5a7fe6(0x122)](this[_0x5a7fe6(0x1ba)],_0x5a7fe6(0xf2));}[_0x315216(0x37d)](){const _0x1af61a=_0x315216;this[_0x1af61a(0x122)](this[_0x1af61a(0x14c)],_0x1af61a(0x281));}[_0x315216(0x15a)](){const _0x1dc062=_0x315216;this['_disposed']=!0x0,this[_0x1dc062(0x434)](),this[_0x1dc062(0x46d)]=null,this['_pendingReason']=null;}['_deliver'](_0x5a9390){const _0x3c58eb=_0x315216;let _0x5a4ab1=++this[_0x3c58eb(0x2c5)],_0x40e93d;try{_0x40e93d=this['_send'](_0x5a9390,{'timeout':this[_0x3c58eb(0x1ba)]});}catch(_0x1e7a3b){this[_0x3c58eb(0x294)](_0x5a4ab1,_0x1e7a3b);return;}_0x40e93d instanceof Promise&&_0x40e93d['catch'](_0xd28712=>this['_onRequestFailed'](_0x5a4ab1,_0xd28712));}[_0x315216(0x294)](_0x545d2e,_0x60681a){const _0x4c2a1b=_0x315216;if(this[_0x4c2a1b(0x43c)]||_0x545d2e!==this[_0x4c2a1b(0x2c5)])return;let _0x2b378e=_0x496eca(_0x60681a,this[_0x4c2a1b(0x14c)]);_0x2b378e!==null&&this[_0x4c2a1b(0x122)](_0x2b378e,'request_failed');}[_0x315216(0x122)](_0x3e62f4,_0xaa41c7){const _0x5b615c=_0x315216;this[_0x5b615c(0x43c)]||(this['_clearTimer'](),this['_pendingReason']=null,this['_nextDelay']=_0x3e62f4,this['_timer']=setTimeout(()=>{const _0x274125=_0x5b615c;this[_0x274125(0x12d)]=null,this[_0x274125(0x46d)]?this['_resend'](_0xaa41c7):this[_0x274125(0x34c)]=_0xaa41c7;},_0x3e62f4));}['_resend'](_0x2e747f){const _0x82c7f7=_0x315216;let _0x45a25f=this[_0x82c7f7(0x46d)];if(!_0x45a25f||this[_0x82c7f7(0x43c)])return;let {changeset:_0x1d023c,unsyncedMutationCount:_0x2f19b0}=_0x45a25f();this[_0x82c7f7(0x19f)](_0x2e747f),this[_0x82c7f7(0x431)](),this['_deliver'](_0x1d023c),this[_0x82c7f7(0x98)]=_0x1d023c['reqId']??this[_0x82c7f7(0x98)],this[_0x82c7f7(0x2ef)](_0x2e747f,_0x2f19b0);}[_0x315216(0x19f)](_0x15c4db){const _0x3f00b1=_0x315216;this[_0x3f00b1(0x1fc)]+=0x1,_0x15c4db===_0x3f00b1(0x281)||_0x15c4db==='request_failed'?this[_0x3f00b1(0x14c)]=this[_0x3f00b1(0x14c)]===0x0?0x3e8:Math[_0x3f00b1(0xef)](this[_0x3f00b1(0x14c)]*0x2,0x4e20):_0x15c4db===_0x3f00b1(0xf2)&&(this[_0x3f00b1(0x1ba)]=Math[_0x3f00b1(0xef)](this[_0x3f00b1(0x1ba)]*0x2,this[_0x3f00b1(0x3d3)]));}['_notifyResend'](_0x37f42d,_0x9a6719){const _0x5b4149=_0x315216;var _0x10eb5d,_0x2d0623;this[_0x5b4149(0x43c)]||(_0x10eb5d=(_0x2d0623=this[_0x5b4149(0x45a)])[_0x5b4149(0x237)])==null||_0x10eb5d[_0x5b4149(0x20c)](_0x2d0623,{'reqId':this['_reqId'],'reason':_0x37f42d,'attempt':this[_0x5b4149(0x1fc)],'elapsedMs':this[_0x5b4149(0x462)],'unsyncedMutationCount':_0x9a6719,'nextDelayMs':this[_0x5b4149(0x1ba)]});}[_0x315216(0x434)](){const _0x5f33ad=_0x315216;this[_0x5f33ad(0x12d)]!=null&&(clearTimeout(this[_0x5f33ad(0x12d)]),this[_0x5f33ad(0x12d)]=null);}};function _0x496eca(_0x4bacae,_0x481059){const _0x442026=_0x315216;if(_0x4bacae instanceof _0x1fdbe2[_0x442026(0x3d6)])return null;if(_0x4bacae instanceof _0x18cba4['HTTPResponseError']){let _0x265c00=_0x4bacae[_0x442026(0x326)]??0x0;return _0x265c00===0x0||_0x265c00===0x198||_0x265c00===0x1ad||_0x265c00>=0x1f4?Math[_0x442026(0x30e)](_0x481059,_0x55b716(_0x4bacae)):null;}return _0x481059;}function _0x55b716(_0x49fe1d){const _0x39e06c=_0x315216;var _0x58088d;let _0x3e7ca1=(_0x58088d=_0x49fe1d[_0x39e06c(0xff)])==null||(_0x58088d=_0x58088d[_0x39e06c(0x1df)](_0x39e06c(0xfc)))==null?void 0x0:_0x58088d[0x0],_0x17ebaf=_0x3e7ca1===void 0x0?NaN:Number(_0x3e7ca1);return Number[_0x39e06c(0x141)](_0x17ebaf)&&_0x17ebaf>0x0?_0x17ebaf*0x3e8:0x0;}function _0x3dae32(_0x33a108){return JSON['stringify'](_0x33a108)['length'];}let _0x4c99b2=function(_0x3cbe0){const _0x30b45e=_0x315216;return _0x3cbe0['OTHER_CLIENT_EDITING']=_0x30b45e(0x1ee),_0x3cbe0[_0x30b45e(0x117)]='PERMISSION_DENIED',_0x3cbe0[_0x30b45e(0x2aa)]='CONFLICT_PROCESSING',_0x3cbe0[_0x30b45e(0x2d1)]=_0x30b45e(0x2d1),_0x3cbe0[_0x30b45e(0x37c)]=_0x30b45e(0x37c),_0x3cbe0[_0x30b45e(0x1bd)]=_0x30b45e(0x1bd),_0x3cbe0[_0x30b45e(0x25b)]=_0x30b45e(0x25b),_0x3cbe0['SOCKET_FAILED_RETRY']=_0x30b45e(0x28c),_0x3cbe0[_0x30b45e(0x2c1)]=_0x30b45e(0x2c1),_0x3cbe0[_0x30b45e(0x114)]='SUBMIT_CHANGESET_TIMEOUT',_0x3cbe0;}({});var _0x11f58a=class{constructor(){const _0x5c8a8d=_0x315216;_0x4da1f9(this,_0x5c8a8d(0x2e5),new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x5c8a8d(0x376),this[_0x5c8a8d(0x2e5)]['asObservable']());}[_0x315216(0x436)](_0x172b48){const _0x3dfc8d=_0x315216;this['_event$'][_0x3dfc8d(0x407)](_0x172b48);}},_0x3313da=class{constructor(){const _0x9db487=_0x315216;_0x4da1f9(this,'_commentUpdate$',new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x9db487(0x440),this[_0x9db487(0x258)]['asObservable']());}[_0x315216(0xec)](_0x4c079c){this['_commentUpdate$']['next'](_0x4c079c);}};function _0x557b04(_0x5f2ec1,_0x1418c6){return function(_0x2ce30c,_0x57d9c3){_0x1418c6(_0x2ce30c,_0x57d9c3,_0x5f2ec1);};}function _0x5af442(_0x551068,_0x14b4a9,_0x2e4beb,_0x4f52df){const _0x32a1ca=_0x315216;var _0xdd6c7b=arguments['length'],_0x1b3829=_0xdd6c7b<0x3?_0x14b4a9:_0x4f52df===null?_0x4f52df=Object[_0x32a1ca(0x173)](_0x14b4a9,_0x2e4beb):_0x4f52df,_0x50b0ba;if(typeof Reflect==_0x32a1ca(0x265)&&typeof Reflect[_0x32a1ca(0x25c)]=='function')_0x1b3829=Reflect[_0x32a1ca(0x25c)](_0x551068,_0x14b4a9,_0x2e4beb,_0x4f52df);else{for(var _0x188ceb=_0x551068[_0x32a1ca(0x250)]-0x1;_0x188ceb>=0x0;_0x188ceb--)(_0x50b0ba=_0x551068[_0x188ceb])&&(_0x1b3829=(_0xdd6c7b<0x3?_0x50b0ba(_0x1b3829):_0xdd6c7b>0x3?_0x50b0ba(_0x14b4a9,_0x2e4beb,_0x1b3829):_0x50b0ba(_0x14b4a9,_0x2e4beb))||_0x1b3829);}return _0xdd6c7b>0x3&&_0x1b3829&&Object[_0x32a1ca(0xb2)](_0x14b4a9,_0x2e4beb,_0x1b3829),_0x1b3829;}let _0x26f228=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x1ee15f){const _0x3ba1ed=_0x315216;super(),this[_0x3ba1ed(0x23b)]=_0x1ee15f,_0x4da1f9(this,_0x3ba1ed(0x267),new Map()),_0x4da1f9(this,'_roomCreated$',new _0x1fdbe2[(_0x3ba1ed(0x112))]()),this[_0x3ba1ed(0x41e)]((0x0,_0x1fdbe2[_0x3ba1ed(0x3f7)])(this[_0x3ba1ed(0x23b)][_0x3ba1ed(0x1b4)](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x33b)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x18d913=>_0x18d913[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)]['getTypeOfUnitDisposed$'](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x2a4)])['pipe']((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x548c17=>_0x548c17[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)][_0x3ba1ed(0x1b4)](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0x3a4)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x4cc685=>_0x4cc685[_0x3ba1ed(0x119)]())),this[_0x3ba1ed(0x23b)]['getTypeOfUnitDisposed$'](_0x325f28[_0x3ba1ed(0x41f)][_0x3ba1ed(0xc9)])[_0x3ba1ed(0xa4)]((0x0,_0xa8b74d[_0x3ba1ed(0x403)])(_0x1e0f44=>_0x1e0f44[_0x3ba1ed(0x119)]())))[_0x3ba1ed(0x28f)](_0x16cbac=>this['_removeRoom'](_0x16cbac)));}[_0x315216(0x21e)](_0x5bbd4e){const _0x37a6d3=_0x315216;return this['_roomMembers']['has'](_0x5bbd4e)?(0x0,_0x1fdbe2['of'])(this[_0x37a6d3(0x267)]['get'](_0x5bbd4e)):this[_0x37a6d3(0x247)][_0x37a6d3(0xa4)]((0x0,_0xa8b74d['map'])(_0x41567b=>{const _0x8d3d6c=_0x37a6d3;if(_0x41567b===_0x5bbd4e)return this[_0x8d3d6c(0x267)][_0x8d3d6c(0x1df)](_0x41567b);}));}[_0x315216(0x1bc)](_0x285d3d,_0x117484){const _0x4e6c33=_0x315216;let _0x2c6dfa=this[_0x4e6c33(0x267)]['get'](_0x285d3d);_0x2c6dfa||(_0x2c6dfa=new _0x1d7d86(),this[_0x4e6c33(0x267)][_0x4e6c33(0x232)](_0x285d3d,_0x2c6dfa),this[_0x4e6c33(0x247)]['next'](_0x285d3d)),_0x2c6dfa[_0x4e6c33(0x1bc)](_0x117484);}[_0x315216(0x22b)](_0x16c35a,_0x19de3a){const _0x57288b=_0x315216;let _0x172569=this[_0x57288b(0x267)][_0x57288b(0x1df)](_0x16c35a);_0x172569&&_0x172569[_0x57288b(0x22b)](_0x19de3a);}[_0x315216(0x32f)](_0x572e9b){const _0x38256f=_0x315216;return this[_0x38256f(0x267)][_0x38256f(0x1df)](_0x572e9b);}[_0x315216(0xcb)](_0x4c5910,_0x52ee28){const _0x57a4ae=_0x315216;let _0x462a17=this['_roomMembers']['get'](_0x4c5910);if(_0x462a17)return _0x462a17[_0x57a4ae(0xcb)](_0x52ee28);}[_0x315216(0x364)](_0x1f3545){const _0x3823f0=_0x315216;let _0x238734=this[_0x3823f0(0x267)][_0x3823f0(0x1df)](_0x1f3545);_0x238734&&(_0x238734[_0x3823f0(0x15a)](),this[_0x3823f0(0x267)]['delete'](_0x1f3545));}[_0x315216(0x15a)](){const _0x3b1a8d=_0x315216;this[_0x3b1a8d(0x267)][_0x3b1a8d(0x216)](_0x158154=>_0x158154[_0x3b1a8d(0x15a)]()),this[_0x3b1a8d(0x267)]['clear'](),this[_0x3b1a8d(0x247)]['complete']();}};_0x26f228=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0xd2)])],_0x26f228);var _0x1d7d86=class extends _0x325f28[_0x315216(0x14a)]{constructor(..._0x40a773){const _0x394a09=_0x315216;super(..._0x40a773),_0x4da1f9(this,_0x394a09(0x188),new Map()),_0x4da1f9(this,_0x394a09(0x22d),new _0x1fdbe2[(_0x394a09(0x1c7))](this[_0x394a09(0x188)])),_0x4da1f9(this,_0x394a09(0x11c),this[_0x394a09(0x22d)][_0x394a09(0xf1)]());}[_0x315216(0x15a)](){const _0x135639=_0x315216;this['_members'][_0x135639(0x14e)](),this[_0x135639(0x22d)][_0x135639(0x313)]();}[_0x315216(0x1bc)](_0x244917){const _0x27dc91=_0x315216;this[_0x27dc91(0x188)][_0x27dc91(0x232)](_0x244917['memberID'],_0x244917),this[_0x27dc91(0x19a)]();}['removeMember'](_0x354071){const _0x28593a=_0x315216;this[_0x28593a(0x188)][_0x28593a(0x385)](_0x354071),this[_0x28593a(0x19a)]();}[_0x315216(0xcb)](_0x735e26){const _0x28dd61=_0x315216;return this['_members'][_0x28dd61(0x1df)](_0x735e26);}['getAllMembers'](){const _0x288ffc=_0x315216;return Array['from'](this[_0x288ffc(0x188)]['values']());}[_0x315216(0x19a)](){const _0x22d5dc=_0x315216;this['_members$'][_0x22d5dc(0x407)](this[_0x22d5dc(0x188)]);}};function _0x5c1479(_0x4c4263,_0x1ae618){const _0x53e28c=_0x315216;if(_0x7e427c(_0x4c4263))return _0x1ae618;if(_0x1ae618[_0x53e28c(0x32e)]===_0x4524ba['CollaborationEvent'][_0x53e28c(0x227)]){let _0x18519f=_0x2a74da(_0x4c4263),_0x19bf61=_0x1ae618;return{..._0x19bf61,'data':{..._0x19bf61['data'],'unitID':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x352)],'unitType':_0x4c4263['target'][_0x53e28c(0x318)]??_0x19bf61[_0x53e28c(0x2a1)][_0x53e28c(0x318)],'changeset':_0x18519f[_0x53e28c(0xa7)](_0x19bf61['data'][_0x53e28c(0x275)],_0x529707(_0x4c4263))}};}if(_0x1ae618[_0x53e28c(0x32e)]===_0x4524ba['CollaborationEvent'][_0x53e28c(0x2dd)]){let _0x3f9675=_0x1ae618;return{..._0x3f9675,'data':{..._0x3f9675[_0x53e28c(0x2a1)],'unitID':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x352)],'unitType':_0x4c4263[_0x53e28c(0x41c)][_0x53e28c(0x318)]??_0x3f9675[_0x53e28c(0x2a1)][_0x53e28c(0x318)]}};}return _0x1ae618;}function _0x533e59(_0x55f5d7,_0x4e64b5){const _0x5e9674=_0x315216;if(_0x7e427c(_0x55f5d7))return[_0x4e64b5];switch(_0x4e64b5[_0x5e9674(0x32e)]){case _0x4524ba['CollaborationEvent'][_0x5e9674(0xf7)]:return[_0x50bdd5(_0x55f5d7,_0x4e64b5)];case _0x4524ba[_0x5e9674(0x1d7)]['PSEUDO_FETCH_MISSING_RESULT']:return[_0x97baf(_0x55f5d7,_0x4e64b5)];case _0x4524ba[_0x5e9674(0x1d7)][_0x5e9674(0xab)]:return[_0xda20c6(_0x55f5d7,_0x4e64b5)];default:return[_0x4e64b5];}}function _0x7e427c(_0x59a6ce){const _0x2b486d=_0x315216;return _0x59a6ce[_0x2b486d(0x41c)][_0x2b486d(0x253)]==null&&_0x59a6ce[_0x2b486d(0x41c)]['unitId']===_0x59a6ce['localUnitId']&&!_0x59a6ce[_0x2b486d(0x275)];}function _0x50bdd5(_0x131493,_0x214ea1){const _0x5a7b35=_0x315216;return{..._0x214ea1,'data':(0x0,_0x4524ba[_0x5a7b35(0xe4)])(_0x636a6b(_0x131493,(0x0,_0x4524ba[_0x5a7b35(0x3cc)])(_0x214ea1[_0x5a7b35(0x2a1)])))};}function _0xda20c6(_0x1337c8,_0x1462a2){const _0x57ce28=_0x315216;return{..._0x1462a2,'data':_0x636a6b(_0x1337c8,_0x1462a2[_0x57ce28(0x2a1)])};}function _0x97baf(_0x1d0273,_0x262e12){const _0x26932a=_0x315216;let _0x169ce4=_0x262e12[_0x26932a(0x2a1)];return{..._0x262e12,'data':{..._0x169ce4,'changesets':_0x169ce4['changesets'][_0x26932a(0x403)](_0x33a059=>(0x0,_0x4524ba[_0x26932a(0xe4)])(_0x636a6b(_0x1d0273,(0x0,_0x4524ba[_0x26932a(0x3cc)])(_0x33a059))))}};}function _0x636a6b(_0x15a75a,_0x22a593){const _0x1712a1=_0x315216;return _0x2a74da(_0x15a75a)[_0x1712a1(0x278)](_0x22a593,_0x529707(_0x15a75a));}function _0x2a74da(_0x41dc03){if(!_0x41dc03['changeset'])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x41dc03['changeset'];}function _0x529707(_0x6928ee){const _0x282d58=_0x315216;return{'localUnitId':_0x6928ee[_0x282d58(0x212)],'unitType':_0x6928ee[_0x282d58(0x318)],'target':_0x6928ee['target']};}let _0x50a43f=function(_0x3d39e5){const _0x4c7ffa=_0x315216;return _0x3d39e5[_0x3d39e5['IDLE']=0x0]=_0x4c7ffa(0x355),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x1f8)]=0x1]=_0x4c7ffa(0x1f8),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x260)]=0x2]=_0x4c7ffa(0x260),_0x3d39e5[_0x3d39e5[_0x4c7ffa(0x336)]=0x3]=_0x4c7ffa(0x336),_0x3d39e5;}({}),_0xf16957={[_0x483212[_0x315216(0x353)][_0x315216(0x124)]]:_0x315216(0x423),[_0x483212[_0x315216(0x353)][_0x315216(0x28a)]]:_0x315216(0x235),[_0x483212[_0x315216(0x353)][_0x315216(0x368)]]:'session.room-not-exists',[_0x483212['CmdRspCode'][_0x315216(0x467)]]:_0x315216(0x424),[_0x483212[_0x315216(0x353)][_0x315216(0x1db)]]:_0x315216(0x24e)},_0x7f99f9=class extends _0x325f28[_0x315216(0x10c)]{get[_0x315216(0x19d)](){const _0x437c57=_0x315216;return this[_0x437c57(0x38d)][_0x437c57(0x3aa)]();}constructor(_0x4d547f,_0xebfd57,_0x3bfc08,_0x147f7b,_0x122b4e,_0x4637ca,_0x358a4b){const _0x2635fb=_0x315216;super(),this[_0x2635fb(0x3be)]=_0x4d547f,this[_0x2635fb(0xb8)]=_0x3bfc08,this[_0x2635fb(0x3dd)]=_0x147f7b,this['_commentService']=_0x122b4e,this[_0x2635fb(0x190)]=_0x4637ca,this[_0x2635fb(0x3f2)]=_0x358a4b,_0x4da1f9(this,_0x2635fb(0x38d),new _0x1fdbe2['BehaviorSubject'](0x0)),_0x4da1f9(this,'sessionStatus$',this[_0x2635fb(0x38d)]['asObservable']()),_0x4da1f9(this,_0x2635fb(0x2e5),new _0x1fdbe2['Subject']()),_0x4da1f9(this,_0x2635fb(0x376),this[_0x2635fb(0x2e5)][_0x2635fb(0xf1)]()),_0x4da1f9(this,'_socket',void 0x0),_0x4da1f9(this,_0x2635fb(0x2b2),void 0x0),_0x4da1f9(this,_0x2635fb(0x3a0),!0x1),_0x4da1f9(this,_0x2635fb(0x248),null),this[_0x2635fb(0x3a0)]=!!this['_telemetryService'],_0xebfd57[_0x2635fb(0xa4)]((0x0,_0x1fdbe2[_0x2635fb(0xf5)])(this[_0x2635fb(0x42a)]))[_0x2635fb(0x28f)](_0x2770be=>{const _0x181d14=_0x2635fb;if(_0x2770be!==void 0x0){if(this[_0x181d14(0x96)]=_0x2770be,_0x2770be)this[_0x181d14(0x97)](_0x2770be),this[_0x181d14(0x2b2)]=_0x2770be['message$'][_0x181d14(0x28f)](_0x8c0a0=>{const _0x3252a8=_0x181d14;_0x8c0a0['routeKey']===this[_0x3252a8(0x3be)]['target'][_0x3252a8(0x352)]&&this[_0x3252a8(0x359)](_0x8c0a0);});else{var _0x910944;this[_0x181d14(0x147)](),this[_0x181d14(0x38d)][_0x181d14(0x407)](0x2),(_0x910944=this['_socketMessageSubscription'])==null||_0x910944[_0x181d14(0x223)](),this[_0x181d14(0x2b2)]=null;}}});}[_0x315216(0x171)](){var _0x308320;return((_0x308320=this['_socket'])==null?void 0x0:_0x308320['memberID'])??null;}[_0x315216(0x15a)](){const _0x31b6d9=_0x315216;super[_0x31b6d9(0x15a)](),this[_0x31b6d9(0x358)](),this[_0x31b6d9(0x42a)][_0x31b6d9(0x407)](),this['dispose$']['complete']();}[_0x315216(0x358)](){const _0x3be4de=_0x315216;var _0x2989d3;this[_0x3be4de(0x147)](),(_0x2989d3=this[_0x3be4de(0x96)])==null||_0x2989d3['send']({'cmd':_0x483212[_0x3be4de(0x422)][_0x3be4de(0x239)],'data':{'roomID':this[_0x3be4de(0x3be)][_0x3be4de(0x41c)]['unitId']}}),this[_0x3be4de(0x2e5)][_0x3be4de(0x313)](),this[_0x3be4de(0x38d)]['complete']();}[_0x315216(0x359)](_0x320a9b){const _0x56c01e=_0x315216;_0x320a9b[_0x56c01e(0x291)]===_0x483212[_0x56c01e(0x422)][_0x56c01e(0x3b6)]?this[_0x56c01e(0x38e)](_0x320a9b):_0x320a9b[_0x56c01e(0x291)]===_0x483212[_0x56c01e(0x422)][_0x56c01e(0x2de)]&&this[_0x56c01e(0x468)](_0x320a9b);}[_0x315216(0x97)](_0x33d4ac){const _0x296105=_0x315216;this['_sessionStatus$'][_0x296105(0x407)](0x1),_0x33d4ac[_0x296105(0x325)]({'cmd':_0x483212[_0x296105(0x422)][_0x296105(0x3b6)],'routeKey':this[_0x296105(0x3be)][_0x296105(0x41c)][_0x296105(0x352)],'routeType':'','data':{'rooms':[{'roomID':this[_0x296105(0x3be)]['target'][_0x296105(0x352)]}]}});}[_0x315216(0x38e)](_0x435662){const _0x119c0a=_0x315216;var _0x5d7272;if(_0x435662[_0x119c0a(0xdf)]in _0xf16957){this[_0x119c0a(0x190)][_0x119c0a(0x436)]({'id':_0x119c0a(0x25b),'data':_0xf16957[_0x435662[_0x119c0a(0xdf)]]}),this[_0x119c0a(0x38d)][_0x119c0a(0x407)](0x2);return;}this[_0x119c0a(0x38d)][_0x119c0a(0x407)](0x3);let _0x13878c=(_0x5d7272=_0x435662[_0x119c0a(0x2a1)]['roomInfos'][this[_0x119c0a(0x3be)][_0x119c0a(0x41c)][_0x119c0a(0x352)]])==null?void 0x0:_0x5d7272[_0x119c0a(0x3c7)];_0x13878c&&_0x13878c[_0x119c0a(0x216)](_0x3fcab2=>this['_memberService'][_0x119c0a(0x1bc)](this[_0x119c0a(0x3be)]['localUnitId'],_0x3fcab2));}[_0x315216(0x468)](_0x37140f){const _0x1e1948=_0x315216;try{let _0x5d21b3=_0x533e59(this[_0x1e1948(0x3be)],_0x37140f['data']);for(let _0x4e5f01 of _0x5d21b3)switch(_0x4e5f01[_0x1e1948(0x32e)]){case _0x4524ba[_0x1e1948(0x1d7)]['USERS_ENTER']:this[_0x1e1948(0x40c)](_0x4e5f01),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x29c)]:this['_onUserLeave'](_0x4e5f01),this['_event$'][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x299)]:case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0xab)]:this[_0x1e1948(0x3a1)](),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba['CollaborationEvent'][_0x1e1948(0x2e9)]:this[_0x1e1948(0xb8)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x1e1948(0x302)](_0x4e5f01)),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;case _0x4524ba[_0x1e1948(0x1d7)][_0x1e1948(0x374)]:this[_0x1e1948(0x292)]['onCommentUpdate'](_0x4e5f01[_0x1e1948(0x2a1)]),this[_0x1e1948(0x2e5)][_0x1e1948(0x407)](_0x4e5f01);break;default:this['_event$'][_0x1e1948(0x407)](_0x4e5f01);}}catch(_0x20a546){this[_0x1e1948(0xb8)]['error'](_0x20a546,_0x37140f);}}[_0x315216(0x40c)](_0xecdaeb){const _0x1fd051=_0x315216;this['_memberService']['updateMember'](this['_identity'][_0x1fd051(0x212)],_0xecdaeb[_0x1fd051(0x2a1)]);}['_onUserLeave'](_0x10d742){const _0x415abe=_0x315216;this[_0x415abe(0x3dd)]['removeMember'](this[_0x415abe(0x3be)]['localUnitId'],_0x10d742['data'][_0x415abe(0x471)]);}async['send'](_0x91f56,_0x4cfe82,_0x5f0955){const _0x58634=_0x315216;if(this['sessionStatus']!==0x3||!this[_0x58634(0x96)])throw Error(_0x58634(0x1b3));try{let _0x239750=_0x5c1479(this[_0x58634(0x3be)],_0x91f56);_0x239750[_0x58634(0x32e)]===_0x4524ba[_0x58634(0x1d7)][_0x58634(0x227)]&&this[_0x58634(0x45d)](_0x239750);let _0x18c9ff={'cmd':_0x483212[_0x58634(0x422)][_0x58634(0x9c)],'routeKey':this[_0x58634(0x3be)][_0x58634(0x41c)][_0x58634(0x352)],'routeType':'','data':_0x239750};return _0x5f0955===void 0x0?this[_0x58634(0x96)][_0x58634(0x325)](_0x18c9ff):this[_0x58634(0x96)]['send'](_0x18c9ff,_0x5f0955);}catch(_0x255905){this[_0x58634(0xb8)][_0x58634(0xd6)](_0x255905);}}[_0x315216(0x45d)](_0x436296){const _0x52da52=_0x315216;if(!this[_0x52da52(0x3a0)])return;let {data:_0xa1de06}=_0x436296,{unitID:_0xb7b79e,changeset:_0x2a44ad}=_0xa1de06,{mutations:_0x4c5d35,type:_0x411530}=_0x2a44ad;this[_0x52da52(0x248)]={'unitId':_0xb7b79e,'type':_0x411530,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x3dae32(_0x4c5d35)};}[_0x315216(0x3a1)](){const _0x5bcca0=_0x315216;this[_0x5bcca0(0x3a0)]&&(this['_telemetryInfo']?(this[_0x5bcca0(0x248)][_0x5bcca0(0x13c)]=performance[_0x5bcca0(0x3fe)](),this[_0x5bcca0(0x248)][_0x5bcca0(0x1ef)]=this[_0x5bcca0(0x248)][_0x5bcca0(0x13c)]-this[_0x5bcca0(0x248)]['startTime'],this[_0x5bcca0(0x3f2)][_0x5bcca0(0x428)](_0x5bcca0(0x482),this[_0x5bcca0(0x248)]),this[_0x5bcca0(0x248)]=null):this[_0x5bcca0(0xb8)][_0x5bcca0(0xd6)](_0x5bcca0(0x254),_0x5bcca0(0x2f2)));}[_0x315216(0x147)](){const _0x3e7225=_0x315216;this[_0x3e7225(0x248)]=null;}};_0x7f99f9=_0x5af442([_0x557b04(0x2,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x26f228)),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x3313da)),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x6,(0x0,_0x325f28['Optional'])(_0x15e7af[_0x315216(0x2eb)]))],_0x7f99f9);let _0x21eb59=(0x0,_0x325f28[_0x315216(0x1ac)])('collaboration-client.local-cache-service');function _0x5b750c(_0x1e8cfe,_0x144640){const _0x12cd34=_0x315216;return _0x144640===''||_0x144640==null?_0x12cd34(0x2d7)+_0x1e8cfe:_0x12cd34(0x2d7)+_0x1e8cfe+'-'+encodeURIComponent(_0x144640);}function _0x61d13b(_0x9688){const _0x27a861=_0x315216;let {unitID:_0x417c08,mutations:_0x3122a4}=_0x9688;return{'unitId':_0x417c08,'subUnitId':_0x3122a4[_0x27a861(0x250)]>0x0?_0x3122a4[0x0]['params'][_0x27a861(0x159)]:null};}let _0x5d0dca=class{constructor(_0x243b8d,_0x2e48d7,_0x3d57ab){const _0x483115=_0x315216;this['_injector']=_0x243b8d,this[_0x483115(0x466)]=_0x2e48d7,this[_0x483115(0x45c)]=_0x3d57ab;}['transformSelections'](_0x274cf8){const _0x169c78=_0x315216;var _0x126ec7,_0x5ef7de;let _0x5643a3=this[_0x169c78(0xe7)][_0x169c78(0x1df)](_0x29d3a5[_0x169c78(0xfb)]),{unitId:_0x1cee05,subUnitId:_0x1a01a3}=_0x61d13b(_0x274cf8),_0x40a64c=_0x5643a3==null?void 0x0:_0x5643a3['getWorkbookSelections'](_0x1cee05)[_0x169c78(0x13f)](),_0x1d6fc2=(_0x126ec7=this[_0x169c78(0x45c)][_0x169c78(0x33c)](_0x1cee05))==null||(_0x126ec7=_0x126ec7[_0x169c78(0x3d4)]())==null?void 0x0:_0x126ec7['getSheetId']();if(_0x40a64c[_0x169c78(0x250)]===0x0||!_0x1cee05||!_0x1a01a3)return;let _0x554886=[{'id':_0x29d3a5[_0x169c78(0x31d)]['id'],'params':{'unitId':_0x1cee05,'subUnitId':_0x1d6fc2,'selections':_0x325f28[_0x169c78(0x261)][_0x169c78(0x209)](_0x40a64c)}}],_0x5222ff=this[_0x169c78(0x466)][_0x169c78(0x425)](_0x274cf8,_0x554886);if(!(0x0,_0x4524ba[_0x169c78(0x2fd)])(_0x5222ff))throw _0x5222ff[_0x169c78(0xd6)];let _0x53fa9c=(_0x5ef7de=_0x5222ff['m2Prime'][0x0])==null||(_0x5ef7de=_0x5ef7de[_0x169c78(0x296)])==null?void 0x0:_0x5ef7de[_0x169c78(0x44f)];if(Array[_0x169c78(0x24d)](_0x53fa9c)&&_0x53fa9c[_0x169c78(0x250)]){if(_0x53fa9c['length']===_0x554886[0x0][_0x169c78(0x296)][_0x169c78(0x44f)][_0x169c78(0x250)]&&_0x53fa9c[_0x169c78(0x2c6)]((_0x3b0844,_0x2d70ce)=>_0x325f28['Rectangle']['equals'](_0x3b0844[_0x169c78(0x1e5)],_0x554886[0x0][_0x169c78(0x296)][_0x169c78(0x44f)][_0x2d70ce][_0x169c78(0x1e5)])))return;this[_0x169c78(0xe7)][_0x169c78(0x1df)](_0x325f28['ICommandService'])['executeCommand'](_0x29d3a5['SetSelectionsOperation']['id'],{'unitId':_0x1cee05,'subUnitId':_0x1d6fc2,'selections':_0x53fa9c});}}};_0x5d0dca=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x2,_0x325f28[_0x315216(0xd2)])],_0x5d0dca);let _0x556ae0=(0x0,_0x325f28[_0x315216(0x1ac)])('univer-pro.collaboration-client.single-active-unit-service'),_0x7a50dc=function(_0x598815){const _0x564342=_0x315216;return _0x598815[_0x598815[_0x564342(0x3b4)]=0x0]=_0x564342(0x3b4),_0x598815[_0x598815[_0x564342(0x312)]=0x1]=_0x564342(0x312),_0x598815;}({});function _0x535e3e(_0x5c50a7){const _0xe65d1f=_0x315216;var _0x368a76;return!!((_0x368a76=_0x5c50a7[_0xe65d1f(0x296)])!=null&&_0x368a76['__splitChunk__']);}let _0x3a6f2f=new Set([_0x29d3a5['InsertSheetMutation']['id']]),_0x3f25c0=new Set([_0x2ee164[_0x315216(0x2df)]['id'],_0x2ee164[_0x315216(0x3ca)]['id'],_0x2ee164[_0x315216(0x2f8)]['id'],_0x2ee164[_0x315216(0x447)]['id']]);function _0x2a129c(_0x5be200,_0x993049=_0x3a6f2f){const _0x59610b=_0x315216;let _0x4a2e10=[];for(let _0x57e6e2 of _0x5be200){if(_0x993049['has'](_0x57e6e2['id'])||_0x535e3e(_0x57e6e2)){if(_0x4a2e10[_0x59610b(0x250)]>0x0)break;_0x4a2e10[_0x59610b(0x46e)](_0x57e6e2);break;}_0x4a2e10[_0x59610b(0x46e)](_0x57e6e2);}return _0x4a2e10;}function _0x3ea32d(_0x1458be,_0x4d5739,_0x2cd52a,_0x44660e,_0x1aa0d9){const _0x5a5299=_0x315216;let _0x14eaf6=_0x2a129c(_0x1458be),_0x541e13=_0x1aa0d9[_0x5a5299(0xbb)](),_0x2b4571=(_0x541e13==null?void 0x0:_0x541e13[_0x5a5299(0x3da)])??_0x5a5299(0x120),_0x12bb08=(_0x541e13==null?void 0x0:_0x541e13[_0x5a5299(0x471)])??_0x5a5299(0x120);return{'changeset':{'unitID':_0x4d5739,'type':(0x0,_0x4524ba[_0x5a5299(0x362)])(_0x2cd52a[_0x5a5299(0x371)](_0x4d5739)),'baseRev':_0x44660e['getCurrentRevOfUnit'](_0x4d5739),'revision':0x0,'userID':_0x2b4571,'memberID':_0x12bb08,'mutations':_0x14eaf6},'pendingMutations':_0x1458be[_0x5a5299(0x106)](_0x14eaf6[_0x5a5299(0x250)])};}let _0x548fbe=_0x3ea32d;function _0x5d8c7d(_0x3888c0,_0x134a47,_0x389b1a,_0x49c6f1,_0x53a789){const _0x1e25d3=_0x315216;let _0x49fd0f=_0x2a129c(_0x3888c0,_0x3f25c0),_0x7573c2=_0x53a789[_0x1e25d3(0xbb)](),_0x1b1cb4=(_0x7573c2==null?void 0x0:_0x7573c2[_0x1e25d3(0x3da)])??'unknown',_0x2a366f=(_0x7573c2==null?void 0x0:_0x7573c2[_0x1e25d3(0x471)])??_0x1e25d3(0x120);return{'changeset':{'unitID':_0x134a47,'type':(0x0,_0x4524ba[_0x1e25d3(0x362)])(_0x389b1a[_0x1e25d3(0x371)](_0x134a47)),'baseRev':_0x49c6f1['getCurrentRevOfUnit'](_0x134a47),'revision':0x0,'userID':_0x1b1cb4,'memberID':_0x2a366f,'mutations':_0x49fd0f},'pendingMutations':_0x3888c0['slice'](_0x49fd0f[_0x1e25d3(0x250)])};}function _0x102089(_0x434ad9,_0xb49a22,_0x3f58b7,_0xcb3d67,_0x52bcc6){const _0x441ad1=_0x315216;let _0x5dfd94=_0x434ad9[_0x441ad1(0x2cc)]((_0x53d428,_0x4282e1)=>{const _0xb4bd08=_0x441ad1;let _0x3d1909=_0x53d428[_0x53d428[_0xb4bd08(0x250)]-0x1],{id:_0x55522f}=_0x3d1909??{},{id:_0x1ab841,type:_0x1748e2}=_0x4282e1,_0x3d8772=_0x4282e1[_0xb4bd08(0x296)];if(_0x55522f&&_0x55522f!==_0x1ab841)throw Error(_0xb4bd08(0x30a)+_0x55522f+_0xb4bd08(0x348)+_0x1ab841+'.');if(!_0x3d1909)return[{'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772[_0xb4bd08(0x352)],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x3d8772[_0xb4bd08(0x3ab)]}}];let _0x5b1b4f=_0x3d1909['params'];return _0x1ad963(_0x5b1b4f,_0x3d8772)?[..._0x53d428['slice'](0x0,-0x1),{..._0x3d1909,'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772[_0xb4bd08(0x352)],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x325f28[_0xb4bd08(0x226)][_0xb4bd08(0x3a8)](_0x5b1b4f[_0xb4bd08(0x3ab)],_0x3d8772['actions'])}}]:[..._0x53d428,{'id':_0x1ab841,'type':_0x1748e2,'params':{'unitId':_0x3d8772['unitId'],'textRanges':_0x3d8772[_0xb4bd08(0x1d0)],'actions':_0x3d8772[_0xb4bd08(0x3ab)]}}];},[]),_0x5055dc=_0x52bcc6[_0x441ad1(0xbb)](),_0x4ccab6=(_0x5055dc==null?void 0x0:_0x5055dc['userID'])??_0x441ad1(0x120),_0x556ebb=(_0x5055dc==null?void 0x0:_0x5055dc[_0x441ad1(0x471)])??_0x441ad1(0x120);return{'changeset':{'unitID':_0xb49a22,'type':(0x0,_0x4524ba[_0x441ad1(0x362)])(_0x3f58b7[_0x441ad1(0x371)](_0xb49a22)),'baseRev':_0xcb3d67['getCurrentRevOfUnit'](_0xb49a22),'revision':0x0,'userID':_0x4ccab6,'memberID':_0x556ebb,'mutations':_0x5dfd94},'pendingMutations':_0x434ad9[_0x441ad1(0x106)](_0x434ad9[_0x441ad1(0x250)])};}function _0x1ad963(_0x2b07d3,_0x5163b9){const _0xc011e9=_0x315216;return!_0x2839aa(_0x2b07d3)&&!_0x2839aa(_0x5163b9)&&_0x5305f1(_0x2b07d3[_0xc011e9(0x3ab)],_0x5163b9[_0xc011e9(0x3ab)]);}function _0x2839aa(_0x3a8f60){const _0x2f8bb6=_0x315216;return _0x3a8f60[_0x2f8bb6(0x3c4)]!==void 0x0;}function _0x5305f1(_0x4f420f,_0x22bb29){return _0x1ad2cf(_0x4f420f)&&_0x1ad2cf(_0x22bb29)&&!_0x498a83(_0x4f420f)&&!_0x498a83(_0x22bb29)&&!_0x3ced51(_0x4f420f)&&!_0x3ced51(_0x22bb29);}function _0x1ad2cf(_0x4f6956){const _0x5a6098=_0x315216;return _0x4de3f5(_0x4f6956)['some'](_0x4ed88f=>_0x259145(_0x4ed88f)&&_0x4ed88f['et']===_0x5a6098(0x300));}function _0x3ced51(_0x411752){const _0x2ef23a=_0x315216;return _0x4de3f5(_0x411752)['some'](_0x4439db=>Array['isArray'](_0x4439db)||typeof _0x4439db==_0x2ef23a(0xd5)||typeof _0x4439db==_0x2ef23a(0x3b0));}function _0x498a83(_0x265d92){const _0x14da45=_0x315216;return _0x4de3f5(_0x265d92)[_0x14da45(0x142)](_0x5041b8=>!_0x259145(_0x5041b8)||_0x5041b8['et']!==_0x14da45(0x300)||!Array[_0x14da45(0x24d)](_0x5041b8['e'])?!0x1:_0x5041b8['e'][_0x14da45(0x142)](_0x192822=>!_0x259145(_0x192822)||!_0x259145(_0x192822[_0x14da45(0x3d5)])?!0x1:Object[_0x14da45(0x40b)][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],'tables')||Object['prototype'][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],_0x14da45(0xb6))||Object[_0x14da45(0x40b)][_0x14da45(0x266)][_0x14da45(0x20c)](_0x192822[_0x14da45(0x3d5)],_0x14da45(0x1f6))));}function _0x4de3f5(_0x173340){const _0x187451=_0x315216;if(!Array[_0x187451(0x24d)](_0x173340))return[];let _0x487532=_0x173340[_0x187451(0x3e1)](_0x187451(0x3d5))?_0x173340:_0x173340['find'](_0x295890=>Array[_0x187451(0x24d)](_0x295890)&&_0x295890['includes']('body'));if(!Array[_0x187451(0x24d)](_0x487532))return[];let _0x448e9b=_0x487532[_0x187451(0x304)](_0x187451(0x3d5));return _0x448e9b===-0x1?[]:_0x487532[_0x187451(0x106)](_0x448e9b+0x1);}function _0x259145(_0x299513){const _0x4bcc45=_0x315216;return typeof _0x299513=='object'&&!!_0x299513&&!Array[_0x4bcc45(0x24d)](_0x299513);}function _0x43988d(_0x429d9b,_0x36a595){const _0x12bca3=_0x315216;for(let _0x3e3b16 of _0x429d9b['mutations']){if(_0x3e3b16['id']!==_0x4524ba[_0x12bca3(0x10d)]['id'])continue;let _0x3e7d22=_0x3e3b16[_0x12bca3(0x296)];if((_0x3e7d22==null?void 0x0:_0x3e7d22['unitId'])===_0x36a595&&typeof _0x3e7d22[_0x12bca3(0x187)]==_0x12bca3(0x3b0))return{'unitId':_0x3e7d22['unitId'],'revision':_0x3e7d22[_0x12bca3(0x187)]};}return null;}var _0x2452b4,_0x38d979,_0x45930f,_0x2da8fc=class extends Error{constructor(_0x18da59){const _0x4086e3=_0x315216;super(_0x18da59 instanceof Error?_0x18da59[_0x4086e3(0x186)]:typeof _0x18da59==_0x4086e3(0xd5)?_0x18da59:_0x4086e3(0x17a)),this['applyError']=_0x18da59,this[_0x4086e3(0x163)]='RemoteChangesetApplyError';}},_0x2073a1=class extends Error{constructor(_0x33ce37){const _0x340aeb=_0x315216;var _0x1689ce;super(_0x340aeb(0x2e3)+((_0x1689ce=_0x33ce37[_0x340aeb(0x357)])==null?void 0x0:_0x1689ce[_0x340aeb(0x187)])+'.'),this[_0x340aeb(0xdd)]=_0x33ce37,this[_0x340aeb(0x163)]=_0x340aeb(0x36e);}};let _0x133dfa=function(_0x5c10b4){const _0x13fce1=_0x315216;return _0x5c10b4[_0x13fce1(0x242)]=_0x13fce1(0x131),_0x5c10b4[_0x13fce1(0x47e)]='synced',_0x5c10b4['PENDING']=_0x13fce1(0x47f),_0x5c10b4[_0x13fce1(0x28e)]='awaiting',_0x5c10b4['AWAITING_WITH_PENDING']=_0x13fce1(0x155),_0x5c10b4['FETCH_MISS']=_0x13fce1(0x39a),_0x5c10b4['CONFLICT']=_0x13fce1(0x151),_0x5c10b4[_0x13fce1(0x260)]=_0x13fce1(0x12e),_0x5c10b4;}({});var _0x34cd3b=class{constructor(_0x4d3160,_0x14332d,_0x1c59e0,_0x69b604,_0x3db01e,_0x2ad0a,_0x73c4f6,_0x26e342,_0x34ebd7){const _0x4ef89c=_0x315216;this[_0x4ef89c(0x154)]=_0x4d3160,this[_0x4ef89c(0x438)]=_0x14332d,this[_0x4ef89c(0x430)]=_0x3db01e,this[_0x4ef89c(0x337)]=_0x2ad0a,this[_0x4ef89c(0xea)]=_0x73c4f6,this[_0x4ef89c(0x1e2)]=_0x26e342,this[_0x4ef89c(0x249)]=_0x34ebd7,_0x4da1f9(this,'_awaitingChangeset',null),_0x4da1f9(this,_0x4ef89c(0x45e),[]),this[_0x4ef89c(0x208)]=_0x1c59e0,this[_0x4ef89c(0x45e)]=_0x69b604;}['hasLocalChanges'](){const _0x3b9962=_0x315216;return!!this[_0x3b9962(0x208)]||this[_0x3b9962(0x45e)]['length']>0x0;}[_0x315216(0x15a)](){}['_unsyncedMutationCount'](){const _0x301c79=_0x315216;var _0x559bdf;return(((_0x559bdf=this[_0x301c79(0x208)])==null?void 0x0:_0x559bdf['mutations'][_0x301c79(0x250)])??0x0)+this[_0x301c79(0x45e)][_0x301c79(0x250)];}[_0x315216(0xa5)](_0x22e041){const _0x3a3cbc=_0x315216;return new _0x18c848(_0x22e041[_0x3a3cbc(0x3d0)]??0x0,(_0x1e1a1e,_0xa5b3ce)=>this[_0x3a3cbc(0x430)][_0x3a3cbc(0x37a)](_0x1e1a1e,_0xa5b3ce),{...this[_0x3a3cbc(0x430)][_0x3a3cbc(0x238)],'onResend':_0x424352=>{const _0x2fee2a=_0x3a3cbc;var _0xdd4c50,_0x29d190;return(_0xdd4c50=(_0x29d190=this[_0x2fee2a(0x430)])['onChangesetResend'])==null?void 0x0:_0xdd4c50['call'](_0x29d190,_0x424352);}});}[_0x315216(0x3ea)](_0x38b99d){const _0x3a6c28=_0x315216;if(this[_0x3a6c28(0x317)](_0x38b99d))return _0x3a6c28(0x14d);if(_0x43988d(_0x38b99d,this[_0x3a6c28(0x154)]))return _0x3a6c28(0x2e0);let _0x9afbf8=this[_0x3a6c28(0x384)]();return _0x38b99d[_0x3a6c28(0x187)]<=_0x9afbf8?_0x3a6c28(0x475):_0x38b99d[_0x3a6c28(0x187)]>_0x9afbf8+0x1?_0x3a6c28(0x28b):_0x3a6c28(0x2dc);}[_0x315216(0x43d)](_0x5f0bca){const _0x5e41ef=_0x315216;let _0x37811b=this[_0x5e41ef(0x384)]();return _0x5f0bca[_0x5e41ef(0x187)]<=_0x37811b?this['_isAckOfAwaitingChangeset'](_0x5f0bca)?_0x5e41ef(0x240):'stale':_0x5f0bca[_0x5e41ef(0x187)]>_0x37811b+0x1?_0x5e41ef(0x28b):_0x5e41ef(0x407);}[_0x315216(0x401)](_0x1ade49,_0x42cfdf){const _0x29d7bc=_0x315216;switch(this[_0x29d7bc(0x3ea)](_0x1ade49)){case _0x29d7bc(0x14d):return this['onRemoteAck'](_0x1ade49);case _0x29d7bc(0x2e0):return _0x42cfdf[_0x29d7bc(0x18b)](_0x1ade49);case'applied':return this;case'missing':return this[_0x29d7bc(0x457)](_0x1ade49['revision']),_0x42cfdf[_0x29d7bc(0x456)](_0x1ade49);case'apply':return _0x42cfdf[_0x29d7bc(0x15f)](_0x1ade49);}}[_0x315216(0xdc)](_0x165d36){const _0x5c1d67=_0x315216;return{'reason':_0x5c1d67(0x2e0),'revert':{'revision':_0x43988d(_0x165d36,this[_0x5c1d67(0x154)])['revision'],'memberId':_0x165d36['memberID'],'userId':_0x165d36[_0x5c1d67(0x3da)]}};}[_0x315216(0x40a)](_0x27d931){const _0x17a5d8=_0x315216;return{'reason':_0x27d931 instanceof _0x2da8fc?_0x17a5d8(0x193):_0x17a5d8(0x196),'message':_0x27d931 instanceof Error?_0x27d931[_0x17a5d8(0x186)]:typeof _0x27d931==_0x17a5d8(0xd5)?_0x27d931:void 0x0};}[_0x315216(0x420)](_0x4c26d1){const _0x31b687=_0x315216;return{'reason':_0x4c26d1!=null&&_0x4c26d1[_0x31b687(0x1d5)]?_0x31b687(0x409):'changeset_rejected'};}[_0x315216(0x457)](_0x32098f){const _0x5976a7=_0x315216;this[_0x5976a7(0x430)]['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':_0x32098f-0x1});}[_0x315216(0x1d6)](_0x1823f1){const _0x2a59b6=_0x315216;this['_undoRedoService'][_0x2a59b6(0x474)](this[_0x2a59b6(0x154)],_0x1823f1);}[_0x315216(0x224)](_0xd2c947){const _0x202470=_0x315216;var _0x15af0a,_0x4353ec;(_0x15af0a=(_0x4353ec=this['_handler'])['onTransformSelections'])==null||_0x15af0a[_0x202470(0x20c)](_0x4353ec,_0xd2c947);}['_prepareTransformSelections'](_0x447134){const _0x3f25f6=_0x315216;var _0x23b6b3,_0x2a9469;return((_0x23b6b3=(_0x2a9469=this['_handler'])[_0x3f25f6(0x319)])==null?void 0x0:_0x23b6b3[_0x3f25f6(0x20c)](_0x2a9469,_0x447134))??null;}[_0x315216(0x452)](_0x58813c){const _0xdc9139=_0x315216;var _0x487fa9,_0x1d370e;return(_0x487fa9=(_0x1d370e=this[_0xdc9139(0x430)])['onTransformIME'])==null?void 0x0:_0x487fa9[_0xdc9139(0x20c)](_0x1d370e,_0x58813c);}[_0x315216(0x429)](_0x3cbba2){const _0x305f7f=_0x315216;var _0x4fda34,_0x14e9f9;return(_0x4fda34=(_0x14e9f9=this[_0x305f7f(0x430)])['onTransformState'])==null?void 0x0:_0x4fda34[_0x305f7f(0x20c)](_0x14e9f9,_0x3cbba2);}['_transformRemoteChangesetByIMECache'](_0x466180){const _0x2c005f=_0x315216;var _0x21564e,_0x450563;return((_0x21564e=(_0x450563=this[_0x2c005f(0x430)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x21564e[_0x2c005f(0x20c)](_0x450563,_0x466180))??_0x466180;}[_0x315216(0x280)](_0x38e7b2){const _0xc8b7fc=_0x315216;var _0x181536,_0x268533;return((_0x181536=(_0x268533=this[_0xc8b7fc(0x430)])[_0xc8b7fc(0x40d)])==null?void 0x0:_0x181536[_0xc8b7fc(0x20c)](_0x268533,_0x38e7b2))??_0x38e7b2;}[_0x315216(0x342)](_0xd3f2c3){const _0xa2565c=_0x315216;if(this[_0xa2565c(0x438)]===_0x325f28['UniverInstanceType'][_0xa2565c(0x2a4)]){let {unitID:_0x75228a,mutations:_0x2d3573,memberID:_0x31229e}=_0xd3f2c3,_0xbd0a9a=_0x2d3573[_0xa2565c(0x250)]>0x0?_0x2d3573[0x0][_0xa2565c(0x296)][_0xa2565c(0x1d0)]:[];if(Array[_0xa2565c(0x24d)](_0xbd0a9a)&&_0xbd0a9a['length']>0x0){var _0xb0a76f,_0x536f6f;(_0xb0a76f=(_0x536f6f=this['_handler'])[_0xa2565c(0x464)])==null||_0xb0a76f[_0xa2565c(0x20c)](_0x536f6f,{'unitID':_0x75228a,'memberID':_0x31229e,'textRanges':_0xbd0a9a});}}}[_0x315216(0x3e8)](){const _0x52b5ed=_0x315216;var _0x51d9e9;(_0x51d9e9=this[_0x52b5ed(0x249)])==null||_0x51d9e9['updateOfflineData'](this[_0x52b5ed(0x154)],this['type'],this[_0x52b5ed(0x208)],this[_0x52b5ed(0x45e)]);}[_0x315216(0x384)](){const _0x9bc6d7=_0x315216;return this[_0x9bc6d7(0x1e2)][_0x9bc6d7(0x2bd)](this['unitID']);}['_isEchoedAwaitingChangeset'](_0x4b1dfe){const _0x3aea35=_0x315216;let _0x5987d4=this['_awaitingChangeset'];return!_0x5987d4||!_0x5987d4[_0x3aea35(0x402)]||_0x5987d4[_0x3aea35(0x3d0)]===null||_0x5987d4[_0x3aea35(0x3d0)]===void 0x0?!0x1:_0x4b1dfe[_0x3aea35(0x154)]===_0x5987d4[_0x3aea35(0x154)]&&_0x4b1dfe[_0x3aea35(0x402)]===_0x5987d4[_0x3aea35(0x402)]&&_0x4b1dfe[_0x3aea35(0x3d0)]===_0x5987d4['reqId'];}[_0x315216(0x288)](_0x56ce29){const _0x3051e0=_0x315216;let _0x5ecc3c=this[_0x3051e0(0x208)];return!(_0x5ecc3c!=null&&_0x5ecc3c[_0x3051e0(0x402)])||_0x5ecc3c[_0x3051e0(0x3d0)]==null||!_0x56ce29['sid']||_0x56ce29[_0x3051e0(0x3d0)]==null?!0x1:_0x56ce29[_0x3051e0(0x402)]===_0x5ecc3c['sid']&&_0x56ce29[_0x3051e0(0x3d0)]===_0x5ecc3c[_0x3051e0(0x3d0)];}[_0x315216(0x290)](){const _0x542354=_0x315216;this[_0x542354(0x1e2)]['incrementRevOfUnit'](this[_0x542354(0x154)]);}['_executeRemoteChangeset'](_0x102409){const _0x5df526=_0x315216;let _0x351ce4=this['_transformRemoteChangesetByIMECache'](_0x102409);_0x351ce4=this[_0x5df526(0x280)](_0x351ce4);let _0x2c6ccc=this['_prepareTransformSelections'](_0x351ce4),_0x24c4e3=(0x0,_0x325f28[_0x5df526(0x26e)])(_0x351ce4[_0x5df526(0x383)],this[_0x5df526(0x337)],{'fromCollab':!0x0});if(!_0x24c4e3['result'])throw _0x2c6ccc==null||_0x2c6ccc[_0x5df526(0x448)](),new _0x2da8fc(_0x24c4e3[_0x5df526(0xd6)]);_0x2c6ccc==null||_0x2c6ccc[_0x5df526(0x366)](),this[_0x5df526(0x452)](_0x351ce4),this[_0x5df526(0x429)](_0x351ce4),this[_0x5df526(0x1d6)](_0x102409),this[_0x5df526(0x224)](_0x351ce4),this[_0x5df526(0x342)](_0x351ce4),this[_0x5df526(0x290)]();}};let _0x30f87e=class extends _0x34cd3b{constructor(_0x43786d,_0x3e15de,_0x24a3eb,_0x482ca7,_0x5cad17,_0x10fc61,_0x1e6aed,_0x4a7b51,_0x7073dd,_0x1bdd5d){const _0x39728c=_0x315216;super(_0x43786d,_0x3e15de,null,[],_0x24a3eb,_0x1e6aed,_0x10fc61,_0x482ca7,_0x1bdd5d),this[_0x39728c(0xe7)]=_0x5cad17,this[_0x39728c(0xb8)]=_0x4a7b51,this[_0x39728c(0x466)]=_0x7073dd,this[_0x39728c(0x3a5)]=_0x1bdd5d,_0x4da1f9(this,_0x39728c(0x326),_0x39728c(0x27b));}['appendMutation'](_0x38b5dd){const _0x3f7ad9=_0x315216;let _0x4d2600=this[_0x3f7ad9(0xe7)][_0x3f7ad9(0x40e)](_0x2f13d7,this[_0x3f7ad9(0x154)],this[_0x3f7ad9(0x438)],[_0x38b5dd],this['_handler']);return _0x4d2600['_schedule'](),_0x4d2600[_0x3f7ad9(0x3e8)](),_0x4d2600;}['onRemoteChangeset'](_0x5f0820){const _0x1f2ec0=_0x315216;return this[_0x1f2ec0(0x401)](_0x5f0820,{'onMissing':()=>this['_injector'][_0x1f2ec0(0x40e)](_0x157fa1,this[_0x1f2ec0(0x154)],this['type'],null,[],null,[_0x5f0820],this['_handler'],void 0x0),'onApply':()=>this[_0x1f2ec0(0x411)](_0x5f0820),'onRemoteRevert':()=>this[_0x1f2ec0(0x412)](this['_remoteRevertInfo'](_0x5f0820))});}[_0x315216(0x411)](_0x44fb1c){const _0x326b21=_0x315216;try{let _0x1c6cc6=this[_0x326b21(0x466)][_0x326b21(0x425)](_0x44fb1c,[_0x4524ba[_0x326b21(0x3d8)]]);if((0x0,_0x4524ba['isTransformMutationsWithChangesetSuccess'])(_0x1c6cc6)){let {c1Prime:_0x4384db}=_0x1c6cc6;return this[_0x326b21(0x18f)](_0x4384db),this;}throw _0x1c6cc6[_0x326b21(0xd6)];}catch(_0x28f0e5){return this[_0x326b21(0xb8)]['error'](_0x28f0e5),this[_0x326b21(0x412)](this['_conflictInfoFromError'](_0x28f0e5));}}['_onConflict'](_0x450b3a){const _0x144f04=_0x315216;return this[_0x144f04(0xe7)][_0x144f04(0x40e)](_0x3a7d93,this[_0x144f04(0x154)],this[_0x144f04(0x438)],null,[],this[_0x144f04(0x430)],_0x450b3a);}['onRemoteAck'](_0x149953){if(this['_classifyAck'](_0x149953)==='stale')return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x39245f=_0x315216;throw Error(_0x39245f(0x9f));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x278b97=_0x315216;return this['_injector']['createInstance'](_0x224cab,this[_0x278b97(0x154)],this[_0x278b97(0x438)],null,[],this[_0x278b97(0x430)]);}[_0x315216(0x162)](){return this;}[_0x315216(0x3ba)](){const _0x2f0816=_0x315216;throw Error(_0x2f0816(0x111));}[_0x315216(0x1ec)](){const _0x576d9a=_0x315216;let _0x51365c=this[_0x576d9a(0x1e2)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x576d9a(0x430)][_0x576d9a(0x3d2)]({'from':_0x51365c,'to':0x0}),this[_0x576d9a(0xe7)][_0x576d9a(0x40e)](_0x157fa1,this[_0x576d9a(0x154)],this['type'],null,[],null,[],this[_0x576d9a(0x430)],void 0x0);}};_0x30f87e=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x5,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0x6,_0x325f28[_0x315216(0x158)]),_0x557b04(0x7,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x8,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x30f87e);let _0x2f13d7=_0x2452b4=class extends _0x34cd3b{constructor(_0x319083,_0x3ae0aa,_0x199e8c,_0x450c8c,_0x2d2cab,_0x1b503d,_0x277685,_0xd389e1,_0x3e40f9,_0x1d73cc,_0x32b3b1,_0x2b16ba,_0x50e9be,_0x304be6){const _0x6fcfa9=_0x315216;super(_0x319083,_0x3ae0aa,null,_0x199e8c,_0x450c8c,_0x3e40f9,_0x50e9be,_0x1b503d,_0x304be6),this['_injector']=_0x2d2cab,this[_0x6fcfa9(0x413)]=_0x277685,this[_0x6fcfa9(0xb8)]=_0xd389e1,this[_0x6fcfa9(0x1ed)]=_0x1d73cc,this[_0x6fcfa9(0x466)]=_0x32b3b1,this[_0x6fcfa9(0x23b)]=_0x2b16ba,_0x4da1f9(this,_0x6fcfa9(0x326),'pending'),_0x4da1f9(this,_0x6fcfa9(0x1a7),null),_0x4da1f9(this,_0x6fcfa9(0x2f6),null);}[_0x315216(0x2d0)](_0x6c4250){const _0x4811a4=_0x315216;return this['_pendingMutations'][_0x4811a4(0x46e)](_0x6c4250),this[_0x4811a4(0x3e8)](),this;}['onRemoteChangeset'](_0x517a47){const _0x37abb0=_0x315216;return this['_dispatchRemoteChangeset'](_0x517a47,{'onMissing':()=>(this[_0x37abb0(0x9b)](),this[_0x37abb0(0xe7)][_0x37abb0(0x40e)](_0x157fa1,this[_0x37abb0(0x154)],this[_0x37abb0(0x438)],null,this[_0x37abb0(0x45e)],null,[_0x517a47],this[_0x37abb0(0x430)],void 0x0)),'onApply':()=>this[_0x37abb0(0x411)](_0x517a47),'onRemoteRevert':()=>this[_0x37abb0(0x412)](this[_0x37abb0(0xdc)](_0x517a47))});}[_0x315216(0x411)](_0x3286f0){const _0x1abfda=_0x315216;try{let _0x295045=this[_0x1abfda(0x466)][_0x1abfda(0x425)](_0x3286f0,this[_0x1abfda(0x45e)]);if((0x0,_0x4524ba[_0x1abfda(0x2fd)])(_0x295045)){let {c1Prime:_0x728896,m2Prime:_0x125dd4}=_0x295045;this['_executeRemoteChangeset'](_0x728896);let _0x268ba9=this[_0x1abfda(0xe7)][_0x1abfda(0x40e)](_0x2452b4,this[_0x1abfda(0x154)],this['type'],_0x125dd4,this[_0x1abfda(0x430)]);_0x268ba9[_0x1abfda(0x3e8)](),this['_clearScheduledTask']();let _0x39d2e7=new Date()['getTime'](),_0x18ed1a=this[_0x1abfda(0x1a7)]?Math[_0x1abfda(0x30e)](this[_0x1abfda(0x1a7)]-_0x39d2e7,0x0):this[_0x1abfda(0xda)]();return _0x268ba9['_schedule'](_0x18ed1a),_0x268ba9;}throw _0x295045['error'];}catch(_0x31e2d0){return this[_0x1abfda(0xb8)][_0x1abfda(0xd6)](_0x31e2d0),this[_0x1abfda(0x412)](this['_conflictInfoFromError'](_0x31e2d0));}}['onRemoteAck'](_0x417db3){const _0x42be15=_0x315216;if(this[_0x42be15(0x43d)](_0x417db3)===_0x42be15(0x47c))return this;throw Error(_0x42be15(0x3f4));}[_0x315216(0x2ba)](){const _0x2f8891=_0x315216;throw Error(_0x2f8891(0x1d3));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x577ae2=_0x315216;return this['_clearScheduledTask'](),this[_0x577ae2(0xe7)][_0x577ae2(0x40e)](_0x224cab,this['unitID'],this['type'],null,this[_0x577ae2(0x45e)],this[_0x577ae2(0x430)]);}['toggleOnline'](){return this;}[_0x315216(0x122)](_0x226472){const _0x3049a9=_0x315216;let _0x5af2ed=_0x226472??this[_0x3049a9(0xda)]();this['_scheduleCompleteTimestamp']=new Date()[_0x3049a9(0x2e4)]()+_0x5af2ed,this['_sendingTimer']=setTimeout(()=>{const _0x2906a2=_0x3049a9;this[_0x2906a2(0x9b)]();let _0x271f48=null;switch(this[_0x2906a2(0x438)]){case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x33b)]:_0x271f48=_0x3ea32d(this['_pendingMutations'],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x2a4)]:_0x271f48=this[_0x2906a2(0x45e)][_0x2906a2(0x2c6)](_0x40da23=>_0x40da23['id']===_0x285e73[_0x2906a2(0x1fb)]['id'])?_0x102089(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this['_univerInstanceService'],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]):_0x3ea32d(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this['_revisionService'],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x1c3)]:_0x271f48=_0x5d8c7d(this['_pendingMutations'],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this['_userManagerService']);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0x45f)]:_0x271f48=_0x548fbe(this[_0x2906a2(0x45e)],this['unitID'],this['_univerInstanceService'],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28['UniverInstanceType'][_0x2906a2(0x3a4)]:_0x271f48=_0x3ea32d(this[_0x2906a2(0x45e)],this[_0x2906a2(0x154)],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this[_0x2906a2(0x413)]);break;case _0x325f28[_0x2906a2(0x41f)][_0x2906a2(0xc9)]:_0x271f48=_0x3ea32d(this[_0x2906a2(0x45e)],this['unitID'],this[_0x2906a2(0x23b)],this[_0x2906a2(0x1e2)],this['_userManagerService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x2906a2(0x373));}let {changeset:_0x4ccdd4,pendingMutations:_0x5a3adc}=_0x271f48,_0x514684=this[_0x2906a2(0xa5)](_0x4ccdd4);_0x514684[_0x2906a2(0x2ac)](_0x4ccdd4,_0x4ccdd4[_0x2906a2(0x383)]['length']+_0x5a3adc['length']);let _0x5677bd=_0x5a3adc[_0x2906a2(0x250)]?this[_0x2906a2(0xe7)]['createInstance'](_0x432f81,this[_0x2906a2(0x154)],this[_0x2906a2(0x438)],_0x4ccdd4,_0x5a3adc,this['_handler'],_0x514684):this[_0x2906a2(0xe7)][_0x2906a2(0x40e)](_0x299420,this[_0x2906a2(0x154)],this['type'],_0x4ccdd4,this['_handler'],_0x514684);_0x5677bd[_0x2906a2(0x3e8)](),this[_0x2906a2(0x430)][_0x2906a2(0x320)](this,_0x5677bd);},_0x5af2ed);}[_0x315216(0xda)](){const _0x43e7e5=_0x315216;let _0x4cccd8=this['_configService']['getConfig'](_0x3a344c);return(_0x4cccd8==null?void 0x0:_0x4cccd8[_0x43e7e5(0x473)])??0x7d0;}[_0x315216(0x3ba)](){const _0x2ed211=_0x315216;throw Error(_0x2ed211(0x399));}[_0x315216(0x9b)](){const _0x2e04bf=_0x315216;this[_0x2e04bf(0x2f6)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2e04bf(0x2f6)]=null);}[_0x315216(0x15a)](){const _0x256c88=_0x315216;this[_0x256c88(0x9b)]();}['_onConflict'](_0x200fcb){const _0x1359b9=_0x315216;return this['_clearScheduledTask'](),this['_injector'][_0x1359b9(0x40e)](_0x3a7d93,this['unitID'],this['type'],null,this[_0x1359b9(0x45e)],this[_0x1359b9(0x430)],_0x200fcb);}};_0x2f13d7=_0x2452b4=_0x5af442([_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x6,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x1b9)])),_0x557b04(0x7,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x8,_0x325f28[_0x315216(0x158)]),_0x557b04(0x9,_0x325f28['IConfigService']),_0x557b04(0xa,_0x4524ba['ITransformService']),_0x557b04(0xb,_0x325f28[_0x315216(0xd2)]),_0x557b04(0xc,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x2f13d7);let _0x299420=_0x38d979=class extends _0x34cd3b{constructor(_0x481e9f,_0x31cff2,_0x4a4153,_0x18d521,_0x250834,_0x3c7b32,_0x21f51e,_0x1c7d98,_0x314a4c,_0x476ab9,_0x17561a,_0x33022b){const _0x311168=_0x315216;super(_0x481e9f,_0x31cff2,_0x4a4153,[],_0x18d521,_0x1c7d98,_0x17561a,_0x21f51e,_0x33022b),this[_0x311168(0xe7)]=_0x3c7b32,this[_0x311168(0xb8)]=_0x314a4c,this[_0x311168(0x466)]=_0x476ab9,_0x4da1f9(this,'status',_0x311168(0x2e7)),_0x4da1f9(this,'_submitter',void 0x0),this[_0x311168(0x1a8)]=_0x250834??this['_createChangesetSubmitter'](_0x4a4153),this['_submitter'][_0x311168(0x3cf)](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x250834||this[_0x311168(0x1a8)][_0x311168(0x431)]();}[_0x315216(0x2d0)](_0x836d95){const _0x2c98f5=_0x315216;this[_0x2c98f5(0x236)]();let _0x2fbf5d=this[_0x2c98f5(0xe7)]['createInstance'](_0x432f81,this[_0x2c98f5(0x154)],this[_0x2c98f5(0x438)],this[_0x2c98f5(0x208)],[_0x836d95],this[_0x2c98f5(0x430)],this[_0x2c98f5(0x1a8)]);return _0x2fbf5d[_0x2c98f5(0x3e8)](),_0x2fbf5d;}[_0x315216(0xee)](_0x151951){const _0x1af2bd=_0x315216;return this[_0x1af2bd(0x401)](_0x151951,{'onMissing':()=>(this['_detachSubmitter'](),this[_0x1af2bd(0xe7)][_0x1af2bd(0x40e)](_0x157fa1,this[_0x1af2bd(0x154)],this[_0x1af2bd(0x438)],this['_awaitingChangeset'],[],null,[_0x151951],this['_handler'],this[_0x1af2bd(0x1a8)])),'onApply':()=>this['_transformAndApply'](_0x151951),'onRemoteRevert':()=>this['_onConflict'](this[_0x1af2bd(0xdc)](_0x151951))});}[_0x315216(0x411)](_0x1372f9){const _0x57bef1=_0x315216;try{let _0x41c887=this['_transformService']['transformChangesets']([_0x1372f9],[this[_0x57bef1(0x208)]],!0x1);if((0x0,_0x4524ba[_0x57bef1(0x38c)])(_0x41c887)){let {c1Prime:_0x564a8a,c2Prime:_0x44adb5}=_0x41c887;this['_executeRemoteChangeset'](_0x564a8a[0x0]),_0x44adb5[0x0][_0x57bef1(0x1d8)]=this[_0x57bef1(0x384)](),this[_0x57bef1(0x236)]();let _0x5249da=this['_injector'][_0x57bef1(0x40e)](_0x38d979,this[_0x57bef1(0x154)],this['type'],_0x44adb5[0x0],this[_0x57bef1(0x430)],this[_0x57bef1(0x1a8)]);return _0x5249da[_0x57bef1(0x3e8)](),_0x5249da;}throw _0x41c887['error'];}catch(_0x503071){return this[_0x57bef1(0xb8)][_0x57bef1(0xd6)](_0x503071),this[_0x57bef1(0x412)](this['_conflictInfoFromError'](_0x503071));}}[_0x315216(0x144)](_0x55bb68){const _0x53bb30=_0x315216;switch(this[_0x53bb30(0x43d)](_0x55bb68)){case _0x53bb30(0x47c):return this[_0x53bb30(0xb8)][_0x53bb30(0x3e5)]('[AwaitingState]',_0x53bb30(0x29b)+_0x55bb68[_0x53bb30(0x187)]+'\x20at\x20revision\x20'+this[_0x53bb30(0x384)]()+'.'),this;case _0x53bb30(0x240):return this[_0x53bb30(0x1a8)][_0x53bb30(0x15a)](),this[_0x53bb30(0x354)]();case _0x53bb30(0x28b):return this['_submitter']['dispose'](),this[_0x53bb30(0x457)](_0x55bb68[_0x53bb30(0x187)]),this[_0x53bb30(0xe7)][_0x53bb30(0x40e)](_0x157fa1,this[_0x53bb30(0x154)],this[_0x53bb30(0x438)],this[_0x53bb30(0x208)],[],_0x55bb68[_0x53bb30(0x187)],[],this[_0x53bb30(0x430)],void 0x0);case _0x53bb30(0x407):return this[_0x53bb30(0x1a8)]['dispose'](),this[_0x53bb30(0x290)](),this['_toSynced']();}}['_toSynced'](){const _0x3f9b04=_0x315216;let _0x465970=this[_0x3f9b04(0xe7)][_0x3f9b04(0x40e)](_0x30f87e,this[_0x3f9b04(0x154)],this[_0x3f9b04(0x438)],this['_handler']);return _0x465970['_updateLocalCache'](),_0x465970;}[_0x315216(0x2ba)](_0x2db33f){const _0x3a23dc=_0x315216;return this[_0x3a23dc(0x412)](this['_rejectionInfo'](_0x2db33f));}[_0x315216(0x3bf)](_0x4aa12b){const _0x4cb843=_0x315216;var _0x3a3684;return _0x4aa12b[_0x4cb843(0x3d0)]===((_0x3a3684=this[_0x4cb843(0x208)])==null?void 0x0:_0x3a3684['reqId'])&&this[_0x4cb843(0x1a8)][_0x4cb843(0x37d)](),this;}[_0x315216(0x3fc)](){const _0x18f8ae=_0x315216;return this['_submitter'][_0x18f8ae(0x15a)](),this[_0x18f8ae(0xe7)][_0x18f8ae(0x40e)](_0x224cab,this[_0x18f8ae(0x154)],this[_0x18f8ae(0x438)],this[_0x18f8ae(0x208)],[],this[_0x18f8ae(0x430)]);}[_0x315216(0x162)](){return this;}['resend'](_0xfdccac='reconnect'){const _0x5b01a2=_0x315216;this[_0x5b01a2(0x1a8)][_0x5b01a2(0x2ac)](this[_0x5b01a2(0x208)],this[_0x5b01a2(0x126)](),_0xfdccac);}[_0x315216(0x412)](_0x3bbc97){const _0xd76e22=_0x315216;return this[_0xd76e22(0x1a8)]['dispose'](),this[_0xd76e22(0xe7)][_0xd76e22(0x40e)](_0x3a7d93,this[_0xd76e22(0x154)],this[_0xd76e22(0x438)],this[_0xd76e22(0x208)],[],this['_handler'],_0x3bbc97);}[_0x315216(0x15a)](){const _0x25ab17=_0x315216;this[_0x25ab17(0x1a8)]['dispose']();}['_detachSubmitter'](){const _0x85c3e5=_0x315216;this['_submitter'][_0x85c3e5(0x1c8)]();}};_0x299420=_0x38d979=_0x5af442([_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28['ILogService']),_0x557b04(0x9,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xa,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xb,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x299420);let _0x432f81=_0x45930f=class extends _0x34cd3b{constructor(_0x335f5c,_0xd6fc5f,_0x50c574,_0x53eb3e,_0x27f13e,_0x23c87f,_0x23e2ce,_0x2f6d38,_0x1c10b3,_0x55571f,_0x19d261,_0x55156e,_0xbe951f){const _0x39430d=_0x315216;super(_0x335f5c,_0xd6fc5f,_0x50c574,_0x53eb3e,_0x27f13e,_0x1c10b3,_0x55156e,_0x2f6d38,_0xbe951f),this[_0x39430d(0xe7)]=_0x23e2ce,this[_0x39430d(0xb8)]=_0x55571f,this['_transformService']=_0x19d261,this[_0x39430d(0x3a5)]=_0xbe951f,_0x4da1f9(this,_0x39430d(0x326),_0x39430d(0x155)),_0x4da1f9(this,'_submitter',void 0x0),this[_0x39430d(0x1a8)]=_0x23c87f??this[_0x39430d(0xa5)](_0x50c574),this[_0x39430d(0x1a8)]['bind'](()=>({'changeset':this[_0x39430d(0x208)],'unsyncedMutationCount':this[_0x39430d(0x126)]()})),_0x23c87f||this[_0x39430d(0x1a8)][_0x39430d(0x431)]();}[_0x315216(0x2d0)](_0x22af20){const _0x2b461a=_0x315216;return this[_0x2b461a(0x45e)][_0x2b461a(0x46e)](_0x22af20),this['_updateLocalCache'](),this;}[_0x315216(0xee)](_0x1618c0){const _0x195a4a=_0x315216;return this[_0x195a4a(0x401)](_0x1618c0,{'onMissing':()=>(this[_0x195a4a(0x236)](),this[_0x195a4a(0xe7)][_0x195a4a(0x40e)](_0x157fa1,this['unitID'],this[_0x195a4a(0x438)],this[_0x195a4a(0x208)],this[_0x195a4a(0x45e)],null,[_0x1618c0],this['_handler'],this[_0x195a4a(0x1a8)])),'onApply':()=>this[_0x195a4a(0x411)](_0x1618c0),'onRemoteRevert':()=>this[_0x195a4a(0x412)](this['_remoteRevertInfo'](_0x1618c0))});}[_0x315216(0x411)](_0x2ae433){const _0x2326dc=_0x315216;try{let _0x5bd7dd=this[_0x2326dc(0x466)][_0x2326dc(0x18c)]([_0x2ae433],[this['_awaitingChangeset']],!0x1);if((0x0,_0x4524ba[_0x2326dc(0x38c)])(_0x5bd7dd)){let {c1Prime:_0xf41fc,c2Prime:_0x44e12f}=_0x5bd7dd,_0x50eed8=this['_transformService'][_0x2326dc(0x425)](_0xf41fc[0x0],this[_0x2326dc(0x45e)]);if((0x0,_0x4524ba[_0x2326dc(0x2fd)])(_0x50eed8)){let {c1Prime:_0x2de89d,m2Prime:_0x537b8c}=_0x50eed8;this[_0x2326dc(0x18f)](_0x2de89d),_0x44e12f[0x0][_0x2326dc(0x1d8)]=this['_getCurrentRevision'](),this['_detachSubmitter']();let _0x345f36=this['_injector'][_0x2326dc(0x40e)](_0x45930f,this[_0x2326dc(0x154)],this[_0x2326dc(0x438)],_0x44e12f[0x0],_0x537b8c,this['_handler'],this[_0x2326dc(0x1a8)]);return _0x345f36[_0x2326dc(0x3e8)](),_0x345f36;}throw _0x50eed8[_0x2326dc(0xd6)];}throw _0x5bd7dd[_0x2326dc(0xd6)];}catch(_0x5e8da2){return this[_0x2326dc(0xb8)][_0x2326dc(0xd6)](_0x5e8da2),this['_onConflict'](this[_0x2326dc(0x40a)](_0x5e8da2));}}[_0x315216(0x144)](_0x48ff31){const _0x33f5a7=_0x315216;switch(this[_0x33f5a7(0x43d)](_0x48ff31)){case'stale':return this[_0x33f5a7(0xb8)]['debug'](_0x33f5a7(0x269),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x48ff31[_0x33f5a7(0x187)]+'\x20at\x20revision\x20'+this[_0x33f5a7(0x384)]()+'.'),this;case _0x33f5a7(0x240):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x174)]();case _0x33f5a7(0x28b):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x457)](_0x48ff31[_0x33f5a7(0x187)]),this[_0x33f5a7(0xe7)][_0x33f5a7(0x40e)](_0x157fa1,this[_0x33f5a7(0x154)],this[_0x33f5a7(0x438)],this[_0x33f5a7(0x208)],this[_0x33f5a7(0x45e)],_0x48ff31[_0x33f5a7(0x187)],[],this[_0x33f5a7(0x430)],void 0x0);case _0x33f5a7(0x407):return this[_0x33f5a7(0x1a8)][_0x33f5a7(0x15a)](),this[_0x33f5a7(0x290)](),this[_0x33f5a7(0x174)]();}}[_0x315216(0x174)](){const _0x2e7ccf=_0x315216;let _0x1d2afd=this['_injector'][_0x2e7ccf(0x40e)](_0x2f13d7,this['unitID'],this[_0x2e7ccf(0x438)],this[_0x2e7ccf(0x45e)],this[_0x2e7ccf(0x430)]);return _0x1d2afd[_0x2e7ccf(0x122)](),_0x1d2afd[_0x2e7ccf(0x3e8)](),_0x1d2afd;}['onRemoteRej'](_0x5c2844){const _0x41bf79=_0x315216;return this[_0x41bf79(0x412)](this[_0x41bf79(0x420)](_0x5c2844));}[_0x315216(0x3bf)](_0x35febf){const _0x36a8a3=_0x315216;var _0x5926cd;return _0x35febf[_0x36a8a3(0x3d0)]===((_0x5926cd=this[_0x36a8a3(0x208)])==null?void 0x0:_0x5926cd[_0x36a8a3(0x3d0)])&&this[_0x36a8a3(0x1a8)][_0x36a8a3(0x37d)](),this;}[_0x315216(0x3fc)](){const _0x4052a8=_0x315216;return this[_0x4052a8(0x1a8)][_0x4052a8(0x15a)](),this[_0x4052a8(0xe7)]['createInstance'](_0x224cab,this['unitID'],this[_0x4052a8(0x438)],this[_0x4052a8(0x208)],this[_0x4052a8(0x45e)],this[_0x4052a8(0x430)]);}[_0x315216(0x162)](){return this;}[_0x315216(0x3ba)](_0x3c2733=_0x315216(0x3b1)){const _0x4e3d8b=_0x315216;this[_0x4e3d8b(0x1a8)][_0x4e3d8b(0x2ac)](this[_0x4e3d8b(0x208)],this[_0x4e3d8b(0x126)](),_0x3c2733);}[_0x315216(0x412)](_0x1cc167){const _0x284670=_0x315216;return this[_0x284670(0x1a8)][_0x284670(0x15a)](),this[_0x284670(0xe7)][_0x284670(0x40e)](_0x3a7d93,this['unitID'],this[_0x284670(0x438)],this[_0x284670(0x208)],this[_0x284670(0x45e)],this[_0x284670(0x430)],_0x1cc167);}['dispose'](){const _0x20b801=_0x315216;this[_0x20b801(0x1a8)][_0x20b801(0x15a)]();}[_0x315216(0x236)](){const _0x336028=_0x315216;this[_0x336028(0x1a8)][_0x336028(0x1c8)]();}};_0x432f81=_0x45930f=_0x5af442([_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x8,_0x325f28['ICommandService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xb,_0x325f28['IUndoRedoService']),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x432f81);let _0x3a7d93=class extends _0x34cd3b{constructor(_0x1e0e25,_0x30ba83,_0x3e0c45,_0x32898d,_0x22f041,_0x110325,_0xdca19b,_0x45619c,_0x32fd7c,_0x3b9d0e,_0x2361e5,_0x1b6d5c,_0x91c98a,_0x336b9b){const _0x53b7da=_0x315216;var _0x2a46f2;super(_0x1e0e25,_0x30ba83,_0x3e0c45,_0x32898d,_0x22f041,_0x45619c,_0x32fd7c,_0x3b9d0e,_0x336b9b),this['info']=_0x110325,this[_0x53b7da(0x1bf)]=_0xdca19b,this[_0x53b7da(0x413)]=_0x2361e5,this['_logService']=_0x1b6d5c,this[_0x53b7da(0x190)]=_0x91c98a,this[_0x53b7da(0x3a5)]=_0x336b9b,_0x4da1f9(this,_0x53b7da(0x326),_0x53b7da(0x151)),_0x4da1f9(this,_0x53b7da(0x19c),void 0x0);let _0x240cd6=((_0x2a46f2=this[_0x53b7da(0x413)]['getCurrentUser']())==null?void 0x0:_0x2a46f2[_0x53b7da(0x3da)])??'';this[_0x53b7da(0x19c)]=_0x3e0c45||_0x32898d[_0x53b7da(0x250)]?{'unitID':_0x1e0e25,'userId':_0x240cd6||void 0x0,'type':_0x30ba83,'rev':this[_0x53b7da(0x384)](),'awaitingChangeset':_0x3e0c45,'mutations':_0x32898d}:null,this[_0x53b7da(0x179)](),this[_0x53b7da(0x1c9)](),this['_prepareConflictRecovery'](_0x240cd6)['catch'](_0x4bcf94=>this[_0x53b7da(0xb8)][_0x53b7da(0xd6)](_0x4bcf94));}async['_prepareConflictRecovery'](_0x3df7b0){const _0x1f0c2e=_0x315216;var _0x92cee4,_0x2937fd,_0x53c060,_0x4fc2c3;await((_0x92cee4=this['_localCacheService'])==null||(_0x2937fd=_0x92cee4['backupOfflineData'])==null?void 0x0:_0x2937fd[_0x1f0c2e(0x20c)](_0x92cee4,this['unitID'],this[_0x1f0c2e(0xdd)][_0x1f0c2e(0x328)],_0x3df7b0)[_0x1f0c2e(0x195)](()=>void 0x0));let _0xfb5fc0=!0x0;try{var _0x13f967;await((_0x13f967=this[_0x1f0c2e(0x249)])==null?void 0x0:_0x13f967[_0x1f0c2e(0xf0)](this[_0x1f0c2e(0x154)],_0x3df7b0));}catch{_0xfb5fc0=!0x1,this[_0x1f0c2e(0x190)][_0x1f0c2e(0x436)]({'id':_0x1f0c2e(0x2d1),'unitID':this[_0x1f0c2e(0x154)],'userId':_0x3df7b0});}(_0x53c060=(_0x4fc2c3=this[_0x1f0c2e(0x430)])[_0x1f0c2e(0x161)])==null||_0x53c060['call'](_0x4fc2c3,this[_0x1f0c2e(0xdd)],this['localChanges'],_0xfb5fc0);}[_0x315216(0x2d0)](){return this;}['onRemoteChangeset'](){return this;}[_0x315216(0x144)](){return this;}[_0x315216(0x2ba)](){return this;}[_0x315216(0x3bf)](){return this;}[_0x315216(0x3fc)](){return this;}['toggleOnline'](){return this;}[_0x315216(0x3ba)](){const _0xacb3e7=_0x315216;throw Error(_0xacb3e7(0x11b));}['_showConflictProcessingNotification'](){const _0x3f238b=_0x315216;this[_0x3f238b(0x190)][_0x3f238b(0x436)]({'id':'CONFLICT_PROCESSING','unitID':this[_0x3f238b(0x154)]});}[_0x315216(0x179)](){const _0xdeba55=_0x315216;this[_0xdeba55(0x1bf)][_0xdeba55(0x26c)](new _0x29d3a5[(_0xdeba55(0x329))](this[_0xdeba55(0x154)])['id'],!0x1);}};_0x3a7d93=_0x5af442([_0x557b04(0x6,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x43e)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0xa,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['UserManagerService'])),_0x557b04(0xb,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xc,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x3a7d93);let _0x224cab=class extends _0x34cd3b{constructor(_0x5de791,_0x4c12a2,_0xd7a444,_0x5800dc,_0x56f9df,_0x40216b,_0x451cfe,_0x16a47d,_0x5497f1,_0x551365,_0x4da1fd){const _0x8f67f3=_0x315216;super(_0x5de791,_0x4c12a2,_0xd7a444,_0x5800dc,_0x56f9df,_0x16a47d,_0x5497f1,_0x451cfe,_0x4da1fd),this[_0x8f67f3(0xe7)]=_0x40216b,this[_0x8f67f3(0xb8)]=_0x551365,_0x4da1f9(this,_0x8f67f3(0x326),'offline');}[_0x315216(0x2d0)](_0x4851c5){const _0x2ae72f=_0x315216;return this[_0x2ae72f(0x45e)][_0x2ae72f(0x46e)](_0x4851c5),this[_0x2ae72f(0x3e8)](),this;}[_0x315216(0xee)](_0x3cc8cc){const _0x264b31=_0x315216;return this[_0x264b31(0xb8)]['debug'](_0x264b31(0x14b),'ignored\x20remote\x20changeset\x20of\x20revision\x20'+_0x3cc8cc[_0x264b31(0x187)]+'.'),this;}[_0x315216(0x144)](_0x306c6e){const _0x5ca500=_0x315216;return this[_0x5ca500(0xb8)][_0x5ca500(0x3e5)](_0x5ca500(0x14b),_0x5ca500(0x175)+_0x306c6e[_0x5ca500(0x187)]+'.'),this;}[_0x315216(0x2ba)](){const _0x43ec8d=_0x315216;return this[_0x43ec8d(0xb8)][_0x43ec8d(0x3e5)](_0x43ec8d(0x14b),'ignored\x20rejection.'),this;}[_0x315216(0x3bf)](){return this;}[_0x315216(0x3fc)](){return this;}[_0x315216(0x162)](){const _0x3d118e=_0x315216;let {_injector:_0x2a5bb7,_pendingMutations:_0x181e3b,_awaitingChangeset:_0x2dae22,unitID:_0x136c14,_handler:_0x2f509e,type:_0x57d137}=this,_0x12a052=_0x5a0323(_0x2a5bb7,_0x136c14,_0x57d137,_0x2dae22,_0x181e3b,_0x2f509e);return _0x12a052 instanceof _0x2f13d7?_0x12a052[_0x3d118e(0x122)]():(_0x12a052 instanceof _0x432f81||_0x12a052 instanceof _0x299420)&&_0x12a052[_0x3d118e(0x3ba)](),_0x12a052;}['resend'](){const _0x33ed30=_0x315216;throw Error(_0x33ed30(0x343));}};_0x224cab=_0x5af442([_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,_0x325f28[_0x315216(0x158)]),_0x557b04(0x8,_0x325f28['IUndoRedoService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x224cab);let _0x157fa1=class extends _0x34cd3b{constructor(_0x2a7d1a,_0x2f56bc,_0x1b778a,_0x302fb2,_0x19ab0b,_0x1c3504,_0x1c3248,_0x7df096,_0x1e1dab,_0x3b1c38,_0x31a2de,_0x3fade5,_0x2cc061,_0xbe3163,_0x49808d){const _0x109df4=_0x315216;super(_0x2a7d1a,_0x2f56bc,_0x1b778a,_0x302fb2,_0x1c3248,_0x3fade5,_0x2cc061,_0x3b1c38,_0x49808d),this[_0x109df4(0x230)]=_0x19ab0b,this[_0x109df4(0x1a6)]=_0x1c3504,this[_0x109df4(0x1a8)]=_0x7df096,this['_injector']=_0x1e1dab,this[_0x109df4(0xb8)]=_0x31a2de,this['_transformService']=_0xbe3163,this['localCacheService']=_0x49808d,_0x4da1f9(this,_0x109df4(0x326),_0x109df4(0x39a));}[_0x315216(0x125)](_0x5f5566){const _0x94720d=_0x315216;try{if(this[_0x94720d(0x148)](_0x5f5566)[_0x94720d(0x39b)])throw Error(_0x94720d(0x2d8));if(this[_0x94720d(0x148)]([...this[_0x94720d(0x1a6)]][_0x94720d(0x47b)]((_0x21d2d4,_0xed23d3)=>_0x21d2d4['revision']-_0xed23d3[_0x94720d(0x187)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x94720d(0x430)][_0x94720d(0x3d2)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xc394f=this['_awaitingChangeset'],_0x2a79a6=this[_0x94720d(0x45e)],_0x3bcb26;if(_0xc394f&&_0x2a79a6[_0x94720d(0x250)]!==0x0)_0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x432f81,this[_0x94720d(0x154)],this['type'],_0xc394f,_0x2a79a6,this['_handler'],this[_0x94720d(0x1a8)]);else{if(_0xc394f&&_0x2a79a6[_0x94720d(0x250)]===0x0)_0xc394f[_0x94720d(0x1d8)]=this[_0x94720d(0x384)](),_0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x299420,this[_0x94720d(0x154)],this['type'],_0xc394f,this[_0x94720d(0x430)],this[_0x94720d(0x1a8)]);else{if(_0x2a79a6['length']!==0x0){let _0x294926=this[_0x94720d(0xe7)]['createInstance'](_0x2f13d7,this['unitID'],this[_0x94720d(0x438)],_0x2a79a6,this['_handler']);_0x294926[_0x94720d(0x122)](),_0x3bcb26=_0x294926;}else _0x3bcb26=this[_0x94720d(0xe7)][_0x94720d(0x40e)](_0x30f87e,this[_0x94720d(0x154)],this[_0x94720d(0x438)],this['_handler']);}}return _0x3bcb26[_0x94720d(0x3e8)](),_0x3bcb26;}catch(_0x5bac43){return _0x5bac43 instanceof _0x2073a1?(this[_0x94720d(0xb8)]['debug'](_0x94720d(0x46b),_0x5bac43[_0x94720d(0x186)]),this[_0x94720d(0x412)](_0x5bac43[_0x94720d(0xdd)])):(this[_0x94720d(0xb8)][_0x94720d(0xd6)](_0x94720d(0x46b),'failed\x20to\x20apply\x20missed\x20changesets!',_0x5bac43),this[_0x94720d(0x412)](this['_conflictInfoFromError'](_0x5bac43)));}}['_handleRemoteChangesets'](_0x14d7d0){const _0x24a0f3=_0x315216;this[_0x24a0f3(0x127)]();for(let _0x15a7be=0x0;_0x15a7be<_0x14d7d0[_0x24a0f3(0x250)];_0x15a7be++){let _0x5d0c87=_0x14d7d0[_0x15a7be];switch(this[_0x24a0f3(0x3ea)](_0x5d0c87)){case _0x24a0f3(0x14d):{let _0x1b89b6=this[_0x24a0f3(0x384)]();if(_0x5d0c87[_0x24a0f3(0x187)]>_0x1b89b6+0x1)return{'missingChangesets':!0x0};_0x5d0c87['revision']<=_0x1b89b6?this[_0x24a0f3(0x309)]():this[_0x24a0f3(0x229)]();break;}case _0x24a0f3(0x2e0):throw new _0x2073a1(this[_0x24a0f3(0xdc)](_0x5d0c87));case _0x24a0f3(0x475):break;case'missing':return{'missingChangesets':!0x0};case _0x24a0f3(0x2dc):this[_0x24a0f3(0x29f)](_0x5d0c87),this[_0x24a0f3(0x127)]();}}return{'missingChangesets':!0x1};}[_0x315216(0x29f)](_0x3a74a4){const _0x1ca888=_0x315216;let _0x29b232=_0x3a74a4,_0x2d7760=this[_0x1ca888(0x208)];if(_0x2d7760){let _0x4f0e4c=this[_0x1ca888(0x466)][_0x1ca888(0x18c)]([_0x3a74a4],[_0x2d7760],!0x1);if(!(0x0,_0x4524ba[_0x1ca888(0x38c)])(_0x4f0e4c))throw _0x4f0e4c[_0x1ca888(0xd6)];_0x29b232=_0x4f0e4c[_0x1ca888(0x167)][0x0],_0x2d7760=_0x4f0e4c['c2Prime'][0x0];}let _0x13ec6a=this[_0x1ca888(0x45e)];if(_0x13ec6a[_0x1ca888(0x250)]){let _0x3a41c9=this[_0x1ca888(0x466)][_0x1ca888(0x425)](_0x29b232,_0x13ec6a);if(!(0x0,_0x4524ba[_0x1ca888(0x2fd)])(_0x3a41c9))throw _0x3a41c9[_0x1ca888(0xd6)];_0x29b232=_0x3a41c9[_0x1ca888(0x167)],_0x13ec6a=_0x3a41c9[_0x1ca888(0xb7)];}this['_executeRemoteChangeset'](_0x29b232),_0x2d7760&&(_0x2d7760['baseRev']=this[_0x1ca888(0x384)]()),this[_0x1ca888(0x208)]=_0x2d7760,this[_0x1ca888(0x45e)]=_0x13ec6a;}[_0x315216(0x127)](){const _0x4eb9f4=_0x315216;if(!this[_0x4eb9f4(0x208)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x17fe1a=this[_0x4eb9f4(0x384)]();if(this[_0x4eb9f4(0x230)]<=_0x17fe1a)throw Error(_0x4eb9f4(0x2fb)+this[_0x4eb9f4(0x230)]+'.');this['_acknowledgedAwaitingRevision']===_0x17fe1a+0x1&&this['_acknowledgeAwaiting']();}[_0x315216(0x229)](){const _0x8cbe28=_0x315216;this[_0x8cbe28(0x290)](),this['_dropAcknowledgedAwaiting']();}[_0x315216(0x309)](){const _0x6ea233=_0x315216;this[_0x6ea233(0x208)]=null,this['_acknowledgedAwaitingRevision']=null,this[_0x6ea233(0x206)]();}[_0x315216(0x206)](){const _0x9a5aa3=_0x315216;var _0x261c33;(_0x261c33=this[_0x9a5aa3(0x1a8)])==null||_0x261c33[_0x9a5aa3(0x15a)](),this[_0x9a5aa3(0x1a8)]=void 0x0;}[_0x315216(0x15a)](){const _0x5ea806=_0x315216;this[_0x5ea806(0x206)]();}[_0x315216(0x3ba)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x315216(0x2d0)](_0x39d2aa){const _0x4c39c7=_0x315216;return this[_0x4c39c7(0x45e)]['push'](_0x39d2aa),this[_0x4c39c7(0x3e8)](),this;}[_0x315216(0xee)](_0x2858dc){const _0x3c4280=_0x315216;return this['_queuedRemoteChangesets'][_0x3c4280(0x46e)](_0x2858dc),this;}[_0x315216(0x144)](_0xb1ef76){const _0x59525d=_0x315216;let _0x3c9309=this[_0x59525d(0x43d)](_0xb1ef76);if(this['_awaitingChangeset']){switch(_0x3c9309){case _0x59525d(0x240):this[_0x59525d(0x309)]();break;case'stale':break;case _0x59525d(0x407):this[_0x59525d(0x229)]();break;case'missing':this[_0x59525d(0x230)]=_0xb1ef76[_0x59525d(0x187)],this[_0x59525d(0x206)]();}return this;}if(_0x3c9309==='stale')return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x315216(0x2ba)](_0x290d42){const _0x184f50=_0x315216;return this[_0x184f50(0x412)](this[_0x184f50(0x420)](_0x290d42));}[_0x315216(0x3bf)](_0x3fdacb){const _0x10a102=_0x315216;var _0x2c10cf;return this[_0x10a102(0x230)]!=null||_0x3fdacb['reqId']!==((_0x2c10cf=this[_0x10a102(0x208)])==null?void 0x0:_0x2c10cf[_0x10a102(0x3d0)])||(this[_0x10a102(0x1a8)]??=this[_0x10a102(0xa5)](this[_0x10a102(0x208)]),this[_0x10a102(0x1a8)][_0x10a102(0x37d)]()),this;}[_0x315216(0x3fc)](){const _0x2c74ba=_0x315216;return this[_0x2c74ba(0x206)](),this[_0x2c74ba(0xe7)][_0x2c74ba(0x40e)](_0x224cab,this[_0x2c74ba(0x154)],this[_0x2c74ba(0x438)],this[_0x2c74ba(0x208)],this[_0x2c74ba(0x45e)],this[_0x2c74ba(0x430)]);}['toggleOnline'](){return this;}[_0x315216(0x412)](_0x39d617){const _0x3e9175=_0x315216;return this['_disposeSubmitter'](),this['_injector'][_0x3e9175(0x40e)](_0x3a7d93,this[_0x3e9175(0x154)],this[_0x3e9175(0x438)],this[_0x3e9175(0x208)],this[_0x3e9175(0x45e)],this[_0x3e9175(0x430)],_0x39d617);}};_0x157fa1=_0x5af442([_0x557b04(0x8,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x9,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['RevisionService'])),_0x557b04(0xa,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xb,_0x325f28[_0x315216(0x158)]),_0x557b04(0xc,_0x325f28[_0x315216(0x3e6)]),_0x557b04(0xd,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0xe,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x157fa1);function _0x5a0323(_0x55d5e6,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x2d010c,_0x4737e2){const _0xe1c49=_0x315216;return _0x5ca0a1&&_0x2d010c['length']?_0x55d5e6['createInstance'](_0x432f81,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x2d010c,_0x4737e2,void 0x0):_0x5ca0a1?_0x55d5e6[_0xe1c49(0x40e)](_0x299420,_0x4747bf,_0x16c89c,_0x5ca0a1,_0x4737e2,void 0x0):_0x2d010c['length']?_0x55d5e6[_0xe1c49(0x40e)](_0x2f13d7,_0x4747bf,_0x16c89c,_0x2d010c,_0x4737e2):_0x55d5e6[_0xe1c49(0x40e)](_0x30f87e,_0x4747bf,_0x16c89c,_0x4737e2);}let _0x1683e1=class extends _0x325f28[_0x315216(0x10c)]{get[_0x315216(0x2b3)](){const _0xcd750d=_0x315216;return this[_0xcd750d(0xe0)];}constructor(_0x233e9a,_0x4707eb,_0x2be4b2,_0x452d01,_0x405002,_0x5d00c5,_0x4b0128,_0x5c03c4,_0x3b089a,_0x3d6204,_0x469616,_0x2179e2,_0x4f4841,_0x33e458){const _0x5c2117=_0x315216;super(),this[_0x5c2117(0x154)]=_0x233e9a,this[_0x5c2117(0x29e)]=_0x4707eb,this[_0x5c2117(0x272)]=_0x2be4b2,this[_0x5c2117(0xe7)]=_0x452d01,this[_0x5c2117(0x3e3)]=_0x405002,this['_localeService']=_0x5d00c5,this['_revisionService']=_0x4b0128,this[_0x5c2117(0x321)]=_0x5c03c4,this[_0x5c2117(0x23b)]=_0x3b089a,this[_0x5c2117(0xb8)]=_0x3d6204,this['_commandService']=_0x469616,this[_0x5c2117(0x1bf)]=_0x2179e2,this['_singleActiveUnitService']=_0x4f4841,this[_0x5c2117(0x249)]=_0x33e458,_0x4da1f9(this,_0x5c2117(0x228),new _0x1fdbe2[(_0x5c2117(0x1c7))](null)),_0x4da1f9(this,'state$',this[_0x5c2117(0x228)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0xe0),void 0x0),_0x4da1f9(this,_0x5c2117(0x95),!0x1),_0x4da1f9(this,'_changesetSessionId',''),_0x4da1f9(this,_0x5c2117(0x443),0x0),_0x4da1f9(this,'status$',this['state$']['pipe']((0x0,_0x1fdbe2['map'])(_0x3a8c55=>_0x3a8c55?_0x3a8c55[_0x5c2117(0x326)]:'offline'),(0x0,_0x1fdbe2[_0x5c2117(0x21b)])({'bufferSize':0x1,'refCount':!0x0}))),_0x4da1f9(this,_0x5c2117(0x398),new _0x1fdbe2[(_0x5c2117(0x112))]()),_0x4da1f9(this,_0x5c2117(0x3a7),this[_0x5c2117(0x398)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0x1ea),new _0x1fdbe2[(_0x5c2117(0x112))]()),_0x4da1f9(this,'conflict$',this[_0x5c2117(0x1ea)][_0x5c2117(0xf1)]()),_0x4da1f9(this,_0x5c2117(0x2a5),!0x1),_0x4da1f9(this,'_remoteChangesetQueue',[]);}async[_0x315216(0x41d)](){const _0x19d4ca=_0x315216;if(this['state'])throw Error(_0x19d4ca(0x107));await this[_0x19d4ca(0x1e3)]();}[_0x315216(0xe1)](){const _0x44ddfe=_0x315216;return this[_0x44ddfe(0x95)]=!0x0,(0x0,_0x325f28[_0x44ddfe(0x25f)])(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0x398058){const _0x4dcf4a=_0x315216;this[_0x4dcf4a(0xfa)](_0x398058);}[_0x315216(0x386)](){const _0x3b9da0=_0x315216;var _0x241a62;return((_0x241a62=this[_0x3b9da0(0xe0)])==null?void 0x0:_0x241a62['hasLocalChanges']())??!0x1;}[_0x315216(0x15a)](){const _0xa6bddb=_0x315216;var _0x557f3f;super['dispose'](),(_0x557f3f=this[_0xa6bddb(0xe0)])==null||_0x557f3f[_0xa6bddb(0x15a)](),this[_0xa6bddb(0x398)][_0xa6bddb(0x313)](),this[_0xa6bddb(0x1ea)]['complete']();}[_0x315216(0x1f2)](_0x1fbfb4){const _0x3b3ac3=_0x315216;this[_0x3b3ac3(0xe0)]=_0x1fbfb4,this['_state$'][_0x3b3ac3(0x407)](_0x1fbfb4);}async['_init'](){const _0x491ca5=_0x315216;if(this[_0x491ca5(0x1f2)](await this[_0x491ca5(0x46f)]()),this[_0x491ca5(0x347)]){var _0x1e1b26;(_0x1e1b26=this[_0x491ca5(0x347)])==null||_0x1e1b26['editingUnit'](this[_0x491ca5(0x154)]),this[_0x491ca5(0x41e)](this[_0x491ca5(0x347)][_0x491ca5(0xa8)](this['unitID'])[_0x491ca5(0x28f)](_0x2b92e3=>{const _0x56212c=_0x491ca5;this[_0x56212c(0xb8)]['debug'](_0x56212c(0x2da),'editing\x20status\x20changed\x20to',_0x2b92e3),_0x2b92e3===0x1?(this[_0x56212c(0x321)][_0x56212c(0x436)]({'id':'OTHER_CLIENT_EDITING'}),this[_0x56212c(0x1bf)]['updatePermissionPoint'](new _0x29d3a5[(_0x56212c(0x329))](this[_0x56212c(0x154)])['id'],!0x1),this[_0x56212c(0x1bf)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x56212c(0x26c)](new _0x29d3a5[(_0x56212c(0x329))](this[_0x56212c(0x154)])['id'],!0x0),this[_0x56212c(0x1bf)]['setShowComponents'](!0x0));}));}let _0x43f17c=!0x1;return this[_0x491ca5(0x41e)](this[_0x491ca5(0x29e)][_0x491ca5(0x26d)]['subscribe'](_0x4912f6=>{const _0x1bf994=_0x491ca5;_0x4912f6===0x3?this['_toggleOnline'](_0x43f17c):_0x4912f6===0x2&&(_0x43f17c=!0x0,this[_0x1bf994(0x2a9)]());})),this['disposeWithMe'](this[_0x491ca5(0x29e)][_0x491ca5(0x376)]['subscribe'](_0x235243=>{const _0x43d701=_0x491ca5;try{switch(_0x235243[_0x43d701(0x32e)]){case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0xf7)]:this[_0x43d701(0xfe)]((0x0,_0x4524ba[_0x43d701(0x3cc)])(_0x235243[_0x43d701(0x2a1)]));break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x299)]:this[_0x43d701(0x445)](_0x235243[_0x43d701(0x2a1)]);break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x2a8)]:this[_0x43d701(0x180)]();break;case _0x4524ba['CollaborationEvent'][_0x43d701(0xab)]:this[_0x43d701(0x100)](_0x235243[_0x43d701(0x2a1)]);break;case _0x4524ba['CollaborationEvent'][_0x43d701(0xa9)]:this[_0x43d701(0x341)](_0x235243[_0x43d701(0x2a1)][_0x43d701(0x45b)][_0x43d701(0x403)](_0x4d45b2=>(0x0,_0x4524ba[_0x43d701(0x3cc)])(_0x4d45b2)));break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x465)]:this[_0x43d701(0x180)]({'isPermissionRej':!0x0});break;case _0x4524ba[_0x43d701(0x1d7)][_0x43d701(0x469)]:}}catch(_0x55f59f){throw console[_0x43d701(0xd6)]('Error\x20on\x20receiving\x20event',_0x55f59f),_0x55f59f;}})),this['_state'];}[_0x315216(0x454)](){const _0x680fd8=_0x315216;this[_0x680fd8(0x2a5)]=!0x1;}[_0x315216(0x1c0)](){const _0x5694d9=_0x315216;if(this[_0x5694d9(0x2a5)])throw Error(_0x5694d9(0x479));this[_0x5694d9(0x2a5)]=!0x0;}['_transit'](_0x56f41a){const _0x547805=_0x315216;this[_0x547805(0x1c0)]();try{this[_0x547805(0x1f2)](_0x56f41a());}finally{this['_unlockTransition']();}}[_0x315216(0xfa)](_0x2f5974){const _0x3a69d5=_0x315216;this[_0x3a69d5(0x307)](()=>this[_0x3a69d5(0xe0)][_0x3a69d5(0x2d0)](_0x2f5974));}['_onRemoteChangeset'](_0x4fc0ee){const _0x4bb938=_0x315216;this[_0x4bb938(0x95)]?this['_remoteChangesetQueue'][_0x4bb938(0x46e)](_0x4fc0ee):this['_applyRemoteChangeset'](_0x4fc0ee);}[_0x315216(0x202)](){const _0x47e1f1=_0x315216;this[_0x47e1f1(0x330)][_0x47e1f1(0x216)](_0x4c1127=>this[_0x47e1f1(0x400)](_0x4c1127)),this[_0x47e1f1(0x330)]=[];}[_0x315216(0x400)](_0x29fe5a){const _0x7f0e92=_0x315216;let _0x1a75b4=this['_compressMutationService'][_0x7f0e92(0x24b)][_0x7f0e92(0x2f9)](this[_0x7f0e92(0x3e3)][_0x7f0e92(0x24b)][_0x7f0e92(0x164)]()[_0x7f0e92(0x243)])(_0x29fe5a[_0x7f0e92(0x383)],null)||_0x29fe5a['mutations'],_0x4786c2={..._0x29fe5a,'mutations':_0x1a75b4};this['_transit'](()=>this[_0x7f0e92(0xe0)][_0x7f0e92(0xee)](_0x4786c2));}[_0x315216(0x445)](_0x4d7f59){const _0x4ba320=_0x315216;this[_0x4ba320(0x307)](()=>this['_state'][_0x4ba320(0x144)](_0x4d7f59));}[_0x315216(0x180)](_0x3f6701){const _0x381562=_0x315216;this['_transit'](()=>this['_state'][_0x381562(0x2ba)](_0x3f6701));}[_0x315216(0x100)](_0x1b5e39){const _0x54ad69=_0x315216;this['_transit'](()=>this[_0x54ad69(0xe0)][_0x54ad69(0x3bf)](_0x1b5e39));}['_onFetchMissResult'](_0x13d1ec){const _0x57bf23=_0x315216;let _0x282e4e=this['_state'];if(!(_0x282e4e instanceof _0x157fa1))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x22db7c=_0x13d1ec[_0x57bf23(0x403)](_0x38cd95=>{const _0x5ede17=_0x57bf23;let _0x5dc0e7=this['_compressMutationService'][_0x5ede17(0x24b)][_0x5ede17(0x2f9)](this[_0x5ede17(0x3e3)][_0x5ede17(0x24b)][_0x5ede17(0x164)]()[_0x5ede17(0x243)])(_0x38cd95['mutations'],null)||_0x38cd95[_0x5ede17(0x383)];return{..._0x38cd95,'mutations':_0x5dc0e7};});this['_transit'](()=>_0x282e4e[_0x57bf23(0x125)](_0x22db7c));}[_0x315216(0x2a9)](){const _0x5a4057=_0x315216;this[_0x5a4057(0x307)](()=>this['_state'][_0x5a4057(0x3fc)]());}[_0x315216(0x1b8)](_0x45d181=!0x1){const _0x4f4caf=_0x315216;this[_0x4f4caf(0x307)](()=>this[_0x4f4caf(0xe0)][_0x4f4caf(0x162)]());let _0x2966fc=this[_0x4f4caf(0xe0)];_0x45d181&&_0x2966fc instanceof _0x30f87e&&this[_0x4f4caf(0x307)](()=>_0x2966fc[_0x4f4caf(0x1ec)]());}async[_0x315216(0x46f)](){return new Promise(_0x26a965=>{const _0x1f60fa=_0x2c10;this[_0x1f60fa(0x29e)]['sessionStatus$'][_0x1f60fa(0xa4)]((0x0,_0x1fdbe2[_0x1f60fa(0xcf)])(0x1))[_0x1f60fa(0x28f)](async _0x240255=>{const _0x15f555=_0x1f60fa;_0x26a965(await this[_0x15f555(0x3a6)](_0x240255===0x3));});});}[_0x315216(0x189)](){const _0x37b778=_0x315216;let _0x432f5e=this[_0x37b778(0x154)],_0x106848=this[_0x37b778(0xe7)]['get'](_0x325f28[_0x37b778(0x1cf)])[_0x37b778(0x455)](_0x3a344c);return{'resendTimeouts':{'ackTimeout':_0x106848==null?void 0x0:_0x106848[_0x37b778(0x34a)],'maxAckTimeout':_0x106848==null?void 0x0:_0x106848['maxChangesetAckTimeout']},'onStateChange':(_0x174078,_0x95bf28)=>{const _0x5e2d6f=_0x37b778;if(_0x174078!==this[_0x5e2d6f(0xe0)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x174078[_0x5e2d6f(0x326)]+_0x5e2d6f(0x406)+_0x95bf28[_0x5e2d6f(0x326)]+'\x0aCurrent:\x20'+this[_0x5e2d6f(0xe0)][_0x5e2d6f(0x326)]);this[_0x5e2d6f(0x1f2)](_0x95bf28);},'onSendChangeset':(_0x4cf655,_0x4fde90)=>{const _0x38d661=_0x37b778;_0x4cf655[_0x38d661(0x402)]||(_0x4cf655['sid']=this[_0x38d661(0x2f1)],_0x4cf655['reqId']=++this[_0x38d661(0x443)]);let _0x43eae3={'eventID':_0x4524ba[_0x38d661(0x1d7)][_0x38d661(0x227)],'data':{'unitID':_0x4cf655[_0x38d661(0x154)],'unitType':this[_0x38d661(0x272)],'changeset':_0x4cf655,'memberID':this[_0x38d661(0x29e)]['getMemberID']()}};return this['session'][_0x38d661(0x325)](_0x43eae3,this[_0x38d661(0x154)],_0x4fde90);},'onConflict':(_0x43ba91,_0x317237,_0x36b23b)=>{const _0x130e91=_0x37b778;this[_0x130e91(0x1ea)]['closed']||this[_0x130e91(0x1ea)][_0x130e91(0x407)]({'unitID':_0x432f5e,..._0x43ba91,'localChanges':_0x317237,'cacheCleared':_0x36b23b});},'onChangesetResend':_0x51ed56=>{const _0x359978=_0x37b778;this[_0x359978(0xb8)]['debug']('[CollaborationEntity]',_0x359978(0x3d9)+_0x51ed56[_0x359978(0x3d0)]+'\x20('+_0x51ed56[_0x359978(0x328)]+',\x20attempt\x20'+_0x51ed56[_0x359978(0x378)]+')'),queueMicrotask(()=>{const _0x44d981=_0x359978;this['_changesetResend$']['closed']||this[_0x44d981(0x398)][_0x44d981(0x407)]({'unitID':_0x432f5e,..._0x51ed56});});},'onMissingChangesets':({from:_0x4bf592,to:_0x5d4ddc})=>{const _0x457741=_0x37b778;this['_logService']['debug'](_0x457741(0x2da),_0x457741(0x201)+_0x4bf592+_0x457741(0x26b)+_0x5d4ddc);let _0x5377d5={'eventID':_0x4524ba[_0x457741(0x1d7)][_0x457741(0x2dd)],'data':{'unitID':_0x432f5e,'unitType':this[_0x457741(0x272)],'from':_0x4bf592,'to':_0x5d4ddc}};this['session'][_0x457741(0x325)](_0x5377d5,this[_0x457741(0x154)]);}};}async[_0x315216(0x3a6)](_0x4c2c48){const _0x67e15b=_0x315216;var _0x195ee0;let _0x48413f=await((_0x195ee0=this['_localCacheService'])==null?void 0x0:_0x195ee0['loadOfflineData'](this[_0x67e15b(0x154)])),_0x93b8e=(_0x48413f==null?void 0x0:_0x48413f['mutations'])??[],_0x26e716=(_0x48413f==null?void 0x0:_0x48413f[_0x67e15b(0x421)])??null,_0x228e1b=!!(_0x26e716!=null&&_0x26e716[_0x67e15b(0x402)])&&!!(_0x26e716!=null&&_0x26e716['reqId']);this[_0x67e15b(0x2f1)]=_0x228e1b?_0x26e716[_0x67e15b(0x402)]:(0x0,_0x4524ba['uuidv4'])(),this[_0x67e15b(0x443)]=_0x228e1b?_0x26e716[_0x67e15b(0x3d0)]:0x0;let _0x5da059=this[_0x67e15b(0x154)];try{this['_replayCachedMutations'](_0x26e716,_0x93b8e);}catch(_0x497a88){this[_0x67e15b(0xb8)]['error'](_0x497a88);}let _0x12ad5f=this[_0x67e15b(0x189)]();if(_0x4c2c48){let _0x4f8b2e=_0x5a0323(this['_injector'],_0x5da059,this[_0x67e15b(0x272)],_0x26e716,_0x93b8e,_0x12ad5f);return _0x4f8b2e instanceof _0x2f13d7?_0x4f8b2e[_0x67e15b(0x122)]():(_0x4f8b2e instanceof _0x432f81||_0x4f8b2e instanceof _0x299420)&&_0x4f8b2e[_0x67e15b(0x3ba)](),_0x4f8b2e;}return this[_0x67e15b(0xe7)][_0x67e15b(0x40e)](_0x224cab,_0x5da059,this['_type'],_0x26e716,_0x93b8e,_0x12ad5f);}[_0x315216(0x2ed)](_0x237567,_0x29f93e){const _0x19a5b2=_0x315216;var _0x5f0cec,_0xb88269;let _0x257f6f=this[_0x19a5b2(0x3e3)][_0x19a5b2(0x24b)][_0x19a5b2(0x2f9)](this[_0x19a5b2(0x3e3)][_0x19a5b2(0x24b)]['getInterceptPoints']()[_0x19a5b2(0x243)]);(_0x5f0cec=_0x257f6f((_0x237567==null?void 0x0:_0x237567[_0x19a5b2(0x383)])||[],null))==null||_0x5f0cec[_0x19a5b2(0x216)](_0x25103a=>this[_0x19a5b2(0x337)]['executeCommand'](_0x25103a['id'],_0x25103a[_0x19a5b2(0x296)])),(_0xb88269=_0x257f6f(_0x29f93e||[],null))==null||_0xb88269[_0x19a5b2(0x216)](_0x110d25=>this[_0x19a5b2(0x337)][_0x19a5b2(0x231)](_0x110d25['id'],_0x110d25['params']));}};_0x1683e1=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['CompressMutationService'])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x1683e1);let _0x464598=class extends _0x1683e1{constructor(_0x2ee5cf,_0x4e913c,_0x3a39a6,_0x1975db,_0x316bbe,_0x4d0a,_0x2ebbba,_0x57ab4d,_0x28b2e6,_0x34c10f,_0x5b2bc2,_0x53b1e4,_0xba9624,_0xd9bfe,_0x24fa05){const _0x22b82d=_0x315216;super(_0x2ee5cf,_0x3a39a6,_0x4e913c,_0x1975db,_0x316bbe,_0x4d0a,_0x2ebbba,_0x57ab4d,_0x28b2e6,_0x34c10f,_0x5b2bc2,_0x53b1e4,_0xd9bfe,_0x24fa05),this['unitID']=_0x2ee5cf,this['type']=_0x4e913c,this[_0x22b82d(0x27f)]=_0xba9624,_0x4da1f9(this,_0x22b82d(0x160),null);}[_0x315216(0x427)](_0x53d5dc){const _0x1130a8=_0x315216;this[_0x1130a8(0x160)]=_0x53d5dc;}[_0x315216(0x15a)](){const _0x3bcd88=_0x315216;this[_0x3bcd88(0x160)]=null,super[_0x3bcd88(0x15a)]();}[_0x315216(0x189)](){const _0x2ddbc9=_0x315216;let _0x50236e=super['_createHandler']();return _0x50236e[_0x2ddbc9(0x2c0)]=_0x1063ce=>{const _0x731234=_0x2ddbc9;var _0x313b96,_0x1ab75c;return(_0x313b96=this['_handlerCallback'])==null||(_0x1ab75c=_0x313b96[_0x731234(0x2c0)])==null?void 0x0:_0x1ab75c[_0x731234(0x20c)](_0x313b96,_0x1063ce);},_0x50236e[_0x2ddbc9(0x2bb)]=_0x5275ea=>{const _0x1e2516=_0x2ddbc9;var _0x5614c0,_0x1d8e9d;return(_0x5614c0=this[_0x1e2516(0x160)])==null||(_0x1d8e9d=_0x5614c0[_0x1e2516(0x2bb)])==null?void 0x0:_0x1d8e9d[_0x1e2516(0x20c)](_0x5614c0,_0x5275ea);},_0x50236e['onPrepareTransformSelections']=_0x283f0c=>{const _0x484c00=_0x2ddbc9;var _0x1f820c,_0x28e5e2;return((_0x1f820c=this['_handlerCallback'])==null||(_0x28e5e2=_0x1f820c[_0x484c00(0x319)])==null?void 0x0:_0x28e5e2[_0x484c00(0x20c)](_0x1f820c,_0x283f0c))??null;},_0x50236e['onTransformSelections']=_0x39a664=>{const _0x48a315=_0x2ddbc9;var _0x409de3,_0x1b454b;return(_0x409de3=this[_0x48a315(0x160)])==null||(_0x1b454b=_0x409de3[_0x48a315(0x3b9)])==null?void 0x0:_0x1b454b[_0x48a315(0x20c)](_0x409de3,_0x39a664);},_0x50236e[_0x2ddbc9(0x464)]=_0x5c2c2b=>{const _0x37efac=_0x2ddbc9;var _0x54e6ef,_0xf410e1;return(_0x54e6ef=this[_0x37efac(0x160)])==null||(_0xf410e1=_0x54e6ef[_0x37efac(0x464)])==null?void 0x0:_0xf410e1['call'](_0x54e6ef,_0x5c2c2b);},_0x50236e[_0x2ddbc9(0x23a)]=_0x4c8e17=>{const _0x1adede=_0x2ddbc9;var _0x2522d2,_0x3e094b;return((_0x2522d2=this['_handlerCallback'])==null||(_0x3e094b=_0x2522d2[_0x1adede(0x23a)])==null?void 0x0:_0x3e094b[_0x1adede(0x20c)](_0x2522d2,_0x4c8e17))??_0x4c8e17;},_0x50236e[_0x2ddbc9(0x40d)]=_0x12b99e=>{const _0x11ebff=_0x2ddbc9;var _0x478e6a,_0x1cdcf7;return((_0x478e6a=this[_0x11ebff(0x160)])==null||(_0x1cdcf7=_0x478e6a[_0x11ebff(0x40d)])==null?void 0x0:_0x1cdcf7[_0x11ebff(0x20c)](_0x478e6a,_0x12b99e))??_0x12b99e;},_0x50236e;}async['_init'](){const _0x239b76=_0x315216;let _0x23c4e4=await super[_0x239b76(0x1e3)]();return this[_0x239b76(0x41e)](this[_0x239b76(0x27f)][_0x239b76(0x295)][_0x239b76(0x28f)](_0x5bb045=>{const _0x9b89d0=_0x239b76;if(_0x5bb045==null||_0x5bb045[_0x9b89d0(0x352)]!==this[_0x9b89d0(0x154)])return;let {commandId:_0x570a26,redoState:_0x2f241f,unitId:_0x1900cb}=_0x5bb045,_0x55e4c1={'id':_0x570a26,'type':_0x325f28[_0x9b89d0(0x31f)][_0x9b89d0(0xb1)],'params':{'unitId':_0x1900cb,'actions':_0x2f241f[_0x9b89d0(0x3ab)],'textRanges':null}};this[_0x9b89d0(0xfa)](_0x55e4c1);})),this[_0x239b76(0x41e)](this[_0x239b76(0x337)][_0x239b76(0xc6)]((_0x4a20d0,_0x22e7df)=>{const _0x293f82=_0x239b76;if(_0x4a20d0[_0x293f82(0x438)]!==_0x325f28['CommandType'][_0x293f82(0xb1)]||_0x22e7df!=null&&_0x22e7df[_0x293f82(0x3ac)]||_0x22e7df!=null&&_0x22e7df[_0x293f82(0x207)]||_0x4a20d0['id']===_0x285e73[_0x293f82(0x1fb)]['id'])return;let _0x3a2523=_0x4a20d0['params'];if((_0x3a2523==null?void 0x0:_0x3a2523[_0x293f82(0x352)])!==this[_0x293f82(0x154)])return;let _0xd3d112=_0x4a20d0,_0x1ca3b3=this[_0x293f82(0x3e3)][_0x293f82(0x24b)][_0x293f82(0x2f9)](this[_0x293f82(0x3e3)][_0x293f82(0x24b)][_0x293f82(0x164)]()[_0x293f82(0x3b8)])([_0xd3d112],this['_univerInstanceService'])||[_0xd3d112];this['_onLocalMutation'](_0x1ca3b3[0x0]);})),_0x23c4e4;}};_0x464598=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['CompressMutationService'])),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Inject'])(_0x285e73[_0x315216(0x129)])),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xe,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x464598);let _0x2033f7=class extends _0x1683e1{constructor(_0x402931,_0x45b5ec,_0x2b4cbb,_0x43fcf1,_0x5ebb7e,_0x17b257,_0x59acf2,_0x41ee17,_0x252c5c,_0x1131e4,_0x1802c3,_0xc04e93,_0x360b32,_0xeecde0){const _0x1b9ffa=_0x315216;super(_0x402931,_0x2b4cbb,_0x45b5ec,_0x43fcf1,_0x5ebb7e,_0x17b257,_0x59acf2,_0x41ee17,_0x252c5c,_0x1131e4,_0x1802c3,_0xc04e93,_0x360b32,_0xeecde0),this['unitID']=_0x402931,this[_0x1b9ffa(0x438)]=_0x45b5ec;}async[_0x315216(0x1e3)](){const _0x27a791=_0x315216;let _0x355e5e=await super['_init']();return this[_0x27a791(0x41e)](this[_0x27a791(0x337)][_0x27a791(0xc6)]((_0x5c6b22,_0x598910)=>{const _0x466802=_0x27a791;if(_0x5c6b22[_0x466802(0x438)]!==_0x325f28['CommandType'][_0x466802(0xb1)]||_0x598910!=null&&_0x598910['fromCollab']||_0x598910!=null&&_0x598910['onlyLocal'])return;let _0x3a10ae=_0x5c6b22[_0x466802(0x296)];if((_0x3a10ae==null?void 0x0:_0x3a10ae[_0x466802(0x352)])!==this[_0x466802(0x154)])return;let _0x4ac2ee=_0x5c6b22,_0x1a4e23=this['_compressMutationService'][_0x466802(0x24b)][_0x466802(0x2f9)](this[_0x466802(0x3e3)]['interceptor'][_0x466802(0x164)]()[_0x466802(0x3b8)])([_0x4ac2ee],this['_univerInstanceService'])||[_0x4ac2ee];this[_0x466802(0xfa)](_0x1a4e23[0x0]);})),_0x355e5e;}};_0x2033f7=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28['ICommandService']),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Optional'])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x2033f7);let _0x3a3d85=class extends _0x1683e1{constructor(_0x4730c1,_0xcfbcf4,_0x412fc7,_0x5f2939,_0x2aa9ef,_0x282d6f,_0x5eabd1,_0xb7f1f9,_0xfeeb21,_0x141413,_0x91163e,_0x40ff0b,_0x37ea41,_0x595958,_0x1ae9c1){const _0x7333c6=_0x315216;super(_0x4730c1,_0x412fc7,_0xcfbcf4,_0x5f2939,_0x2aa9ef,_0x282d6f,_0x5eabd1,_0xfeeb21,_0x141413,_0x91163e,_0x40ff0b,_0x37ea41,_0x595958,_0x1ae9c1),this[_0x7333c6(0x154)]=_0x4730c1,this[_0x7333c6(0x438)]=_0xcfbcf4,this[_0x7333c6(0x27d)]=_0xb7f1f9;}['_createHandler'](){const _0x369761=_0x315216;let _0x53f2bc=super[_0x369761(0x189)]();return _0x53f2bc[_0x369761(0x3b9)]=_0x13f3ed=>this[_0x369761(0x27d)][_0x369761(0x218)](_0x13f3ed),_0x53f2bc;}async[_0x315216(0x1e3)](){const _0x191c92=_0x315216;let _0x154833=await super['_init']();return this[_0x191c92(0x41e)](this[_0x191c92(0x337)]['onMutationExecutedForCollab']((_0x44151e,_0x16eae4)=>{const _0x20e844=_0x191c92;if(_0x44151e[_0x20e844(0x438)]!==_0x325f28[_0x20e844(0x31f)][_0x20e844(0xb1)]||_0x16eae4!=null&&_0x16eae4[_0x20e844(0x3ac)]||_0x16eae4!=null&&_0x16eae4[_0x20e844(0x207)])return;let _0x33a1f6=_0x44151e[_0x20e844(0x296)];if((_0x33a1f6==null?void 0x0:_0x33a1f6[_0x20e844(0x352)])!==this[_0x20e844(0x154)])return;let _0x2d4f58=_0x44151e,_0x5bcd29=this[_0x20e844(0x3e3)][_0x20e844(0x24b)][_0x20e844(0x2f9)](this[_0x20e844(0x3e3)][_0x20e844(0x24b)][_0x20e844(0x164)]()[_0x20e844(0x3b8)])([_0x2d4f58],this[_0x20e844(0x23b)])||[_0x2d4f58];this[_0x20e844(0xfa)](_0x5bcd29[0x0]);})),_0x154833;}};_0x3a3d85=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x5d0dca)),_0x557b04(0x8,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x9,_0x325f28[_0x315216(0xd2)]),_0x557b04(0xa,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xb,_0x325f28[_0x315216(0x158)]),_0x557b04(0xc,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xe,(0x0,_0x325f28['Optional'])(_0x21eb59))],_0x3a3d85);let _0x37ab5d=class extends _0x1683e1{constructor(_0x49c9a2,_0x22f187,_0x332961,_0x5b830b,_0x2c4305,_0x196147,_0x26789a,_0x3e077d,_0x504862,_0x2b3f06,_0x3f8972,_0x52e9e2,_0x9bb87c,_0x356170){const _0xc07d40=_0x315216;super(_0x49c9a2,_0x332961,_0x22f187,_0x5b830b,_0x2c4305,_0x196147,_0x26789a,_0x3e077d,_0x504862,_0x2b3f06,_0x3f8972,_0x52e9e2,_0x9bb87c,_0x356170),this[_0xc07d40(0x154)]=_0x49c9a2,this['type']=_0x22f187;}async[_0x315216(0x1e3)](){const _0x238189=_0x315216;let _0xfe398b=await super[_0x238189(0x1e3)]();return this[_0x238189(0x41e)](this[_0x238189(0x337)][_0x238189(0xc6)]((_0x1951b1,_0x4bf06e)=>{const _0x4ed562=_0x238189;if(_0x1951b1[_0x4ed562(0x438)]!==_0x325f28[_0x4ed562(0x31f)][_0x4ed562(0xb1)]||_0x4bf06e!=null&&_0x4bf06e['fromCollab']||_0x4bf06e!=null&&_0x4bf06e['onlyLocal'])return;let _0x169e63=_0x1951b1[_0x4ed562(0x296)];if((_0x169e63==null?void 0x0:_0x169e63[_0x4ed562(0x352)])!==this[_0x4ed562(0x154)])return;let _0x141e66=_0x1951b1,_0x1b34d5=this['_compressMutationService']['interceptor'][_0x4ed562(0x2f9)](this[_0x4ed562(0x3e3)][_0x4ed562(0x24b)][_0x4ed562(0x164)]()[_0x4ed562(0x3b8)])([_0x141e66],this[_0x4ed562(0x23b)])||[_0x141e66];this[_0x4ed562(0xfa)](_0x1b34d5[0x0]);})),_0xfe398b;}};_0x37ab5d=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x37ab5d);let _0x4df8c8=class extends _0x1683e1{constructor(_0x245354,_0x2a3f7c,_0x22a372,_0x978694,_0x20e647,_0x3e1336,_0x55738a,_0x3a6dd0,_0x5bbaca,_0xdb883e,_0x9d0a9a,_0x1b9375,_0x3e7e01,_0x4b781b){const _0x5a18c6=_0x315216;super(_0x245354,_0x22a372,_0x2a3f7c,_0x978694,_0x20e647,_0x3e1336,_0x55738a,_0x3a6dd0,_0x5bbaca,_0xdb883e,_0x9d0a9a,_0x1b9375,_0x3e7e01,_0x4b781b),this[_0x5a18c6(0x154)]=_0x245354,this[_0x5a18c6(0x438)]=_0x2a3f7c;}async[_0x315216(0x1e3)](){const _0x48918=_0x315216;let _0x1f243a=await super[_0x48918(0x1e3)]();return this[_0x48918(0x41e)](this['_commandService'][_0x48918(0xc6)]((_0x47fbe0,_0x28fb85)=>{const _0x2158f3=_0x48918;if(_0x47fbe0['type']!==_0x325f28[_0x2158f3(0x31f)]['MUTATION']||_0x28fb85!=null&&_0x28fb85[_0x2158f3(0x3ac)]||_0x28fb85!=null&&_0x28fb85[_0x2158f3(0x207)])return;let _0x1514fd=_0x47fbe0[_0x2158f3(0x296)];if((_0x1514fd==null?void 0x0:_0x1514fd[_0x2158f3(0x352)])!==this[_0x2158f3(0x154)])return;let _0x53f6cb=_0x47fbe0,_0x4f1328=this[_0x2158f3(0x3e3)]['interceptor'][_0x2158f3(0x2f9)](this[_0x2158f3(0x3e3)][_0x2158f3(0x24b)][_0x2158f3(0x164)]()[_0x2158f3(0x3b8)])([_0x53f6cb],this[_0x2158f3(0x23b)])||[_0x53f6cb];this[_0x2158f3(0xfa)](_0x4f1328[0x0]);})),_0x1f243a;}};_0x4df8c8=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['Injector'])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x2ae)])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0xc2)])),_0x557b04(0x7,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x8,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28['ICommandService']),_0x557b04(0xb,_0x325f28[_0x315216(0x43e)]),_0x557b04(0xc,(0x0,_0x325f28['Optional'])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x4df8c8);let _0x1e25ce=class extends _0x1683e1{constructor(_0x4450af,_0x173fec,_0x271d0c,_0xe738ae,_0xf74c7,_0x4220d1,_0x40d29e,_0x14d28d,_0x19fc63,_0x220032,_0x4c5b9b,_0x5c6ce8,_0x3d3f95,_0x4ee332){const _0x3df10a=_0x315216;super(_0x4450af,_0x271d0c,_0x173fec,_0xe738ae,_0xf74c7,_0x4220d1,_0x40d29e,_0x14d28d,_0x19fc63,_0x220032,_0x4c5b9b,_0x5c6ce8,_0x3d3f95,_0x4ee332),this[_0x3df10a(0x154)]=_0x4450af,this[_0x3df10a(0x438)]=_0x173fec;}async[_0x315216(0x1e3)](){const _0x105e1b=_0x315216;let _0x288b2d=await super['_init']();return this[_0x105e1b(0x41e)](this['_commandService'][_0x105e1b(0xc6)]((_0x2873c2,_0x1a3d8f)=>{const _0x2f0534=_0x105e1b;if(_0x2873c2[_0x2f0534(0x438)]!==_0x325f28['CommandType']['MUTATION']||_0x1a3d8f!=null&&_0x1a3d8f['fromCollab']||_0x1a3d8f!=null&&_0x1a3d8f['onlyLocal'])return;let _0x1fc8db=_0x2873c2[_0x2f0534(0x296)];if((_0x1fc8db==null?void 0x0:_0x1fc8db['unitId'])!==this[_0x2f0534(0x154)])return;let _0x13d07e=_0x2873c2,_0x31fa33=this[_0x2f0534(0x3e3)][_0x2f0534(0x24b)][_0x2f0534(0x2f9)](this[_0x2f0534(0x3e3)][_0x2f0534(0x24b)]['getInterceptPoints']()[_0x2f0534(0x3b8)])([_0x13d07e],this[_0x2f0534(0x23b)])||[_0x13d07e];this[_0x2f0534(0xfa)](_0x31fa33[0x0]);})),_0x288b2d;}};_0x1e25ce=_0x5af442([_0x557b04(0x3,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x1a9)])),_0x557b04(0x5,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['LocaleService'])),_0x557b04(0x6,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba['RevisionService'])),_0x557b04(0x7,(0x0,_0x325f28['Inject'])(_0x11f58a)),_0x557b04(0x8,_0x325f28['IUniverInstanceService']),_0x557b04(0x9,_0x325f28[_0x315216(0x25d)]),_0x557b04(0xa,_0x325f28[_0x315216(0x158)]),_0x557b04(0xb,_0x325f28['IPermissionService']),_0x557b04(0xc,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x556ae0)),_0x557b04(0xd,(0x0,_0x325f28['Optional'])(_0x21eb59))],_0x1e25ce);let _0x2665e4=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x259));function _0x4703e7(_0xa29de){const _0x33f14a=_0x315216;let _0x187ddf=_0xa29de[_0x33f14a(0x2a1)],_0x2c7bd1=JSON[_0x33f14a(0x20e)](_0x187ddf);switch(_0x2c7bd1[_0x33f14a(0x291)]){case _0x483212['CombCmd'][_0x33f14a(0xe8)]:case _0x483212[_0x33f14a(0x422)]['HELLO']:{let _0x43c6d4=_0x2c7bd1['infoRsp'];return{..._0x2c7bd1,'data':_0x43c6d4,'cmd':_0x2c7bd1[_0x33f14a(0x291)]};}case _0x483212[_0x33f14a(0x422)]['JOIN']:{let _0x469dd5=_0x2c7bd1['joinRsp'];return{..._0x2c7bd1,'data':_0x469dd5,'cmd':_0x2c7bd1['cmd']};}case _0x483212[_0x33f14a(0x422)][_0x33f14a(0x2de)]:{let _0x3cc0bb=_0x2c7bd1[_0x33f14a(0x205)];switch(_0x3cc0bb[_0x33f14a(0x32e)]){case _0x4524ba['CollaborationEvent'][_0x33f14a(0x465)]:var _0x56f83d;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x56f83d=_0x3cc0bb['permissionRejEvent'])==null?void 0x0:_0x56f83d['cs']},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)]['CHANGESET_ACK']:var _0x43128e;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x43128e=_0x3cc0bb[_0x33f14a(0x1d4)])==null?void 0x0:_0x43128e['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent']['NEW_CHANGESETS']:var _0x485c47;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x485c47=_0x3cc0bb[_0x33f14a(0x182)])==null?void 0x0:_0x485c47['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x2a8)]:var _0x143a5f;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x143a5f=_0x3cc0bb['csRejEvent'])==null?void 0x0:_0x143a5f['cs']},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0xab)]:var _0x3fe394;return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':(_0x3fe394=_0x3cc0bb[_0x33f14a(0xd4)])==null?void 0x0:_0x3fe394['cs']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x3dc)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb['updateCursorEvent']},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x2a7)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x3c2)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x29c)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x1ca)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x324)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x310)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x3e2)]:case _0x4524ba[_0x33f14a(0x1d7)]['LIVESHARE_OPERATION']:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x369)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x1e4)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x310)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2c7bd1,'data':_0x3cc0bb,'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba['CollaborationEvent'][_0x33f14a(0x374)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x408)]},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x1ce)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0x2bf)]},'cmd':_0x2c7bd1['cmd']};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x15e)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0xae)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};case _0x4524ba[_0x33f14a(0x1d7)][_0x33f14a(0x469)]:return{..._0x2c7bd1,'data':{..._0x3cc0bb,'data':_0x3cc0bb[_0x33f14a(0xc0)]},'cmd':_0x2c7bd1[_0x33f14a(0x291)]};default:return _0x2c7bd1;}}default:return _0x2c7bd1;}}function _0x3a4172(_0x36f777){const _0x11ec09=_0x315216;switch(_0x36f777[_0x11ec09(0x291)]){case _0x483212[_0x11ec09(0x422)]['HEARTBEAT']:case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x34e)]:return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777['routeKey']});case _0x483212['CombCmd'][_0x11ec09(0x9c)]:{let _0x2bfc44;switch(_0x36f777['data']['eventID']){case _0x4524ba['CollaborationEvent'][_0x11ec09(0x3dc)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3dc)],'updateCursorEvent':_0x36f777['data'][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x29c)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x29c)],'leaveEvent':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x2a7)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x2a7)],'joinEvent':_0x36f777['data']['data']};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x324)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x324)],'liveShareNewHost':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x262)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x262)],'liveShareOperation':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x1e4)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba['CollaborationEvent'][_0x11ec09(0x3a3)]:_0x2bfc44={'eventID':_0x4524ba['CollaborationEvent'][_0x11ec09(0x3a3)],'liveShareRequestHost':_0x36f777[_0x11ec09(0x2a1)][_0x11ec09(0x2a1)]};break;case _0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3e2)]:_0x2bfc44={'eventID':_0x4524ba[_0x11ec09(0x1d7)][_0x11ec09(0x3e2)]};break;default:_0x2bfc44={'eventID':_0x36f777[_0x11ec09(0x2a1)]['eventID']};}return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777[_0x11ec09(0x241)],'collaMsg':_0x2bfc44});}case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x3b6)]:return JSON[_0x11ec09(0x302)]({'cmd':_0x36f777[_0x11ec09(0x291)],'routeKey':_0x36f777[_0x11ec09(0x241)],'joinReq':_0x36f777['data']});case _0x483212[_0x11ec09(0x422)][_0x11ec09(0x239)]:return JSON['stringify']({'cmd':_0x36f777['cmd'],'routeKey':_0x36f777[_0x11ec09(0x241)],'leaveReq':_0x36f777[_0x11ec09(0x2a1)]});default:throw Error(_0x11ec09(0x274));}}let _0x84bd5=(0x0,_0x325f28[_0x315216(0x1ac)])(_0x315216(0x18d));function _0x121798(_0x7d55a0,_0x130a41,_0x270597){const _0xf56efa=_0x315216;return _0x7d55a0+'/'+_0x130a41+_0xf56efa(0x172)+_0x270597+_0xf56efa(0x3cb);}let _0x121d26=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x25458d,_0x5820d4,_0x450a79,_0x2db1ac,_0x4d4d9a){const _0x26da50=_0x315216;super(),this['_injector']=_0x25458d,this[_0x26da50(0xde)]=_0x5820d4,this['_configService']=_0x450a79,this[_0x26da50(0xb8)]=_0x2db1ac,this[_0x26da50(0x375)]=_0x4d4d9a;}[_0x315216(0x44e)](_0x43d68e){const _0x304004=_0x315216;let _0x5e7e09=this[_0x304004(0xe7)][_0x304004(0x1df)](_0x18cba4['ISocketService']);if(!_0x5e7e09)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x35c3bf=_0x5e7e09['createSocket'](_0x43d68e);if(!_0x35c3bf)throw Error(_0x304004(0x203));let _0x5b6ae3=new _0x325f28[(_0x304004(0x16f))](),_0x2bdad2=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3[_0x304004(0xd9)](_0x35c3bf[_0x304004(0x256)][_0x304004(0x28f)](_0x565e4e=>_0x2bdad2['next'](_0x565e4e))),_0x5b6ae3[_0x304004(0xd9)]((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x2bdad2[_0x304004(0x313)]()));let _0x39685d=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3[_0x304004(0xd9)](_0x35c3bf[_0x304004(0x200)]['subscribe'](_0x2454ae=>_0x39685d[_0x304004(0x407)](_0x2454ae))),_0x5b6ae3['add']((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x39685d[_0x304004(0x313)]()));let _0x5a16a4=new _0x1fdbe2[(_0x304004(0x112))]();_0x5b6ae3['add'](_0x35c3bf[_0x304004(0x32a)][_0x304004(0x28f)](_0x52e8eb=>{let _0x4eaeff=_0x4703e7(_0x52e8eb);_0x5a16a4['next'](_0x4eaeff);})),_0x5b6ae3[_0x304004(0xd9)]((0x0,_0x325f28[_0x304004(0x25f)])(()=>_0x5a16a4[_0x304004(0x313)]()));let _0x1b5ad9,_0xb9e22b=()=>{const _0x36de22=_0x304004;_0x39685d[_0x36de22(0x407)](new Event(_0x36de22(0x16c))),_0x2bdad2[_0x36de22(0x407)](new Event(_0x36de22(0x16c))),_0x1b5ad9[_0x36de22(0x358)]();};return _0x1b5ad9={'memberID':'','close$':_0x2bdad2[_0x304004(0xf1)](),'error$':_0x39685d[_0x304004(0xf1)](),'open$':_0x35c3bf[_0x304004(0x3bb)],'message$':_0x5a16a4[_0x304004(0xf1)](),'send':(_0x38e340,_0x309bd7)=>{const _0x51e3f8=_0x304004;if(_0x38e340[_0x51e3f8(0x291)]===_0x483212[_0x51e3f8(0x422)][_0x51e3f8(0x9c)]){if(_0x38e340[_0x51e3f8(0x2a1)]['eventID']===_0x4524ba[_0x51e3f8(0x1d7)][_0x51e3f8(0x227)]){let _0x36c241=this[_0x51e3f8(0x10a)](_0x1b5ad9,_0x38e340['data'],(_0x309bd7==null?void 0x0:_0x309bd7[_0x51e3f8(0x314)])??0x1d4c0);return _0x36c241['catch'](()=>void 0x0),_0x36c241;}if(_0x38e340['data'][_0x51e3f8(0x32e)]===_0x4524ba['CollaborationEvent'][_0x51e3f8(0x2dd)]){let _0x377fd7=_0x38e340[_0x51e3f8(0x2a1)];this[_0x51e3f8(0x204)](_0x377fd7)[_0x51e3f8(0xd0)](_0x12e792=>{const _0x12f75f=_0x51e3f8;_0x5a16a4[_0x12f75f(0x407)]({'cmd':_0x483212[_0x12f75f(0x422)][_0x12f75f(0x2de)],'code':_0x483212[_0x12f75f(0x353)]['OK'],'routeKey':_0x377fd7[_0x12f75f(0x2a1)][_0x12f75f(0x154)],'routeType':'','data':{'eventID':_0x4524ba[_0x12f75f(0x1d7)][_0x12f75f(0xa9)],'data':{'changesets':_0x12e792}}});})[_0x51e3f8(0x195)](_0x48cf5c=>{const _0xfa009c=_0x51e3f8;this[_0xfa009c(0xb8)][_0xfa009c(0xd6)](_0x48cf5c),_0xb9e22b();});return;}}_0x35c3bf['send'](_0x3a4172(_0x38e340));},'close':()=>{const _0x17dd57=_0x304004;_0x35c3bf['close'](),_0x5b6ae3[_0x17dd57(0x15a)]();}},_0x1b5ad9;}['_submitChangeset'](_0x14b24c,_0x45b21c,_0x21f7a0){const _0x5ec540=_0x315216;let {unitType:_0x5cdf6e,unitID:_0x9f2e7e,changeset:_0x4404dd}=_0x45b21c[_0x5ec540(0x2a1)],_0x2be8df={'unitID':_0x9f2e7e,'memberID':_0x14b24c[_0x5ec540(0x471)],'type':_0x5cdf6e,'changeset':(0x0,_0x4524ba[_0x5ec540(0xe4)])(_0x4404dd)},_0x110197=this[_0x5ec540(0x1ed)][_0x5ec540(0x455)](_0x3a344c),_0x2db7ae=_0x121798((_0x110197==null?void 0x0:_0x110197['collabSubmitChangesetUrl'])??_0x5ec540(0x315),_0x5cdf6e,_0x9f2e7e);return(0x0,_0x1fdbe2[_0x5ec540(0x214)])(this[_0x5ec540(0xde)]['stream']('POST',_0x2db7ae,{'body':_0x2be8df})['pipe']((0x0,_0x1fdbe2[_0x5ec540(0x22a)])(_0x5b808d=>_0x5b808d[_0x5ec540(0x438)]===_0x18cba4['HTTPEventType'][_0x5ec540(0xd8)]),(0x0,_0x1fdbe2[_0x5ec540(0x314)])(_0x21f7a0)))[_0x5ec540(0xd0)](()=>void 0x0,_0x356fb2=>{const _0x7430e1=_0x5ec540;throw this[_0x7430e1(0xb8)][_0x7430e1(0xbf)](_0x7430e1(0x301),'submitting\x20changeset\x20'+_0x4404dd[_0x7430e1(0x402)]+':'+_0x4404dd[_0x7430e1(0x3d0)]+'\x20failed:\x20'+_0x29c25b(_0x356fb2)),_0x356fb2;});}async[_0x315216(0x204)](_0x41984f){const _0x34f606=_0x315216;let {unitID:_0x1eff37,from:_0x5e9529,to:_0x501979,unitType:_0x2e88f5}=_0x41984f[_0x34f606(0x2a1)];return(await this[_0x34f606(0x375)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1eff37,'type':_0x2e88f5,'from':_0x5e9529,'to':_0x501979}))['changesets'][_0x34f606(0x403)](_0x2c84cc=>((_0x2c84cc[_0x34f606(0x383)]===null||_0x2c84cc[_0x34f606(0x383)]===void 0x0)&&(_0x2c84cc['mutations']=[]),_0x2c84cc));}};_0x121d26=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x325f28['Injector'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)])),_0x557b04(0x2,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x3,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x4,_0x4524ba[_0x315216(0x289)])],_0x121d26);function _0x29c25b(_0xfe4758){const _0x1b9bec=_0x315216;return _0xfe4758 instanceof _0x18cba4[_0x1b9bec(0x2fe)]?_0x1b9bec(0x2f7)+(_0xfe4758[_0x1b9bec(0x326)]??0x0):_0xfe4758 instanceof Error?_0xfe4758['name']:String(_0xfe4758);}let _0xe6d4d9=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x17b));function _0x1b6d59(_0x4cfd8c={}){const _0x5e7eda=_0x315216;return _0x4cfd8c['resolveUnit']?{'resolveUnit':_0x4cfd8c['resolveUnit']}:{'resolveUnit':_0x498d30=>({'target':{'unitId':_0x498d30[_0x5e7eda(0x352)],'unitType':_0x498d30[_0x5e7eda(0x318)]}})};}function _0x34b57a(_0x458d84,_0x36f9f5,_0x364e50){const _0x301610=_0x315216;let _0x4192ad=_0x364e50[_0x301610(0x41c)][_0x301610(0x253)];if(_0x4192ad!=null&&_0x4192ad[_0x301610(0x34b)]()==='')throw Error(_0x301610(0x433));if(!_0x364e50[_0x301610(0x41c)][_0x301610(0x352)])throw Error(_0x301610(0x15b));return{'localUnitId':_0x458d84,'unitType':_0x36f9f5,'target':{'endpoint':_0x4192ad,'unitId':_0x364e50[_0x301610(0x41c)]['unitId'],'unitType':_0x364e50[_0x301610(0x41c)][_0x301610(0x318)]??_0x36f9f5},'changeset':_0x364e50[_0x301610(0x275)]};}let _0x2c8ade=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x5d524d,_0x3f8519,_0x5592d9,_0x5b95c6,_0x576dab,_0x3ca042){const _0x5a673e=_0x315216;super(),this[_0x5a673e(0xe7)]=_0x5d524d,this[_0x5a673e(0xb8)]=_0x3f8519,this[_0x5a673e(0x1ed)]=_0x5592d9,this[_0x5a673e(0x13e)]=_0x5b95c6,this['_collaborationUIEventService']=_0x576dab,this['_adapter']=_0x3ca042,_0x4da1f9(this,_0x5a673e(0x1af),new Map()),_0x4da1f9(this,'_pendingSessions',new Map()),_0x4da1f9(this,'_sessionChannels',new Map()),_0x4da1f9(this,_0x5a673e(0x1a0),new Map()),_0x4da1f9(this,_0x5a673e(0x480),void 0x0),_0x4da1f9(this,_0x5a673e(0x42b),this['_getSocketChannel'](void 0x0)[_0x5a673e(0x42b)][_0x5a673e(0xf1)]()),_0x4da1f9(this,_0x5a673e(0x3c5),new _0x1fdbe2['BehaviorSubject'](0x0)),_0x4da1f9(this,'status$',this[_0x5a673e(0x3c5)]['asObservable']());}[_0x315216(0x1cc)](){const _0x1173b1=_0x315216;this[_0x1173b1(0x480)]||(this[_0x1173b1(0x480)]=this['_injector']['get'](_0x2665e4,_0x325f28[_0x1173b1(0x323)][_0x1173b1(0x3f1)])??void 0x0,this[_0x1173b1(0x480)]&&this['disposeWithMe'](this[_0x1173b1(0x480)]['online$'][_0x1173b1(0x28f)](_0x2fd1d8=>{const _0x4279b7=_0x1173b1;_0x2fd1d8&&this[_0x4279b7(0x3b1)](),_0x2fd1d8||this[_0x4279b7(0x1a0)]['forEach'](_0x1df1fa=>this[_0x4279b7(0x2d2)](_0x1df1fa));})));}[_0x315216(0x15a)](){const _0x9c6294=_0x315216;super[_0x9c6294(0x15a)](),this[_0x9c6294(0x1a0)]['forEach'](_0x738a82=>{const _0x378748=_0x9c6294;var _0x19b16e,_0x40c947,_0x46783a;(_0x19b16e=_0x738a82[_0x378748(0xb9)])==null||_0x19b16e['unsubscribe'](),_0x738a82[_0x378748(0xb9)]=null,this[_0x378748(0x42e)](_0x738a82),this['_clearRetryConnectingTimer'](_0x738a82),this[_0x378748(0x2ea)](_0x738a82),this[_0x378748(0x1c6)](_0x738a82),(_0x40c947=_0x738a82[_0x378748(0x42b)][_0x378748(0x3aa)]())==null||_0x40c947['close'](),(_0x46783a=_0x738a82['candidateSocket'])==null||_0x46783a[_0x378748(0x358)](),_0x738a82[_0x378748(0x42b)][_0x378748(0x313)]();}),this[_0x9c6294(0x1a0)][_0x9c6294(0x14e)](),this[_0x9c6294(0x1af)]['forEach'](_0x4b1eb6=>_0x4b1eb6[_0x9c6294(0x15a)]()),this[_0x9c6294(0x1af)][_0x9c6294(0x14e)](),this[_0x9c6294(0xbd)][_0x9c6294(0x14e)](),this[_0x9c6294(0x3c5)][_0x9c6294(0x313)]();}async[_0x315216(0x3fb)](_0x2ba215,_0x3cbc3f){const _0x11bcc7=_0x315216;if(this['_listenToNetworkCondition'](),this[_0x11bcc7(0x1af)][_0x11bcc7(0xd1)](_0x2ba215))return this['_sessions'][_0x11bcc7(0x1df)](_0x2ba215);let _0x412c7e=this[_0x11bcc7(0x17d)][_0x11bcc7(0x1df)](_0x2ba215);if(_0x412c7e)return _0x412c7e;let _0x568689=this[_0x11bcc7(0x2c9)](_0x2ba215,_0x3cbc3f);this[_0x11bcc7(0x17d)][_0x11bcc7(0x232)](_0x2ba215,_0x568689);try{return await _0x568689;}finally{this[_0x11bcc7(0x17d)]['delete'](_0x2ba215);}}async['_createSession'](_0x18bd9,_0x24c65d){const _0x30b41d=_0x315216;let _0x2ceca4=await this[_0x30b41d(0x3eb)](_0x18bd9,_0x24c65d),_0x5ecf42=this[_0x30b41d(0x283)](_0x2ceca4[_0x30b41d(0x41c)][_0x30b41d(0x253)]);this[_0x30b41d(0xca)](_0x5ecf42);let _0x1f955b=this[_0x30b41d(0xe7)][_0x30b41d(0x40e)](_0x7f99f9,_0x2ceca4,_0x5ecf42['socket$'][_0x30b41d(0xf1)]());return this[_0x30b41d(0x1af)][_0x30b41d(0x232)](_0x18bd9,_0x1f955b),this[_0x30b41d(0xbd)][_0x30b41d(0x232)](_0x18bd9,_0x5ecf42[_0x30b41d(0x217)]),_0x1f955b;}[_0x315216(0x316)](_0x1720e4){const _0x530df8=_0x315216;let _0x2ca199=this['_sessions']['get'](_0x1720e4),_0x3ec5a5=this['_sessionChannels'][_0x530df8(0x1df)](_0x1720e4);if(_0x2ca199&&(this[_0x530df8(0x1af)]['delete'](_0x1720e4),this['_sessionChannels'][_0x530df8(0x385)](_0x1720e4),_0x2ca199[_0x530df8(0x358)]()),_0x3ec5a5!==void 0x0&&!this[_0x530df8(0x30b)](_0x3ec5a5)){let _0xc9f356=this[_0x530df8(0x1a0)]['get'](_0x3ec5a5);_0xc9f356&&this[_0x530df8(0x2d2)](_0xc9f356);}}[_0x315216(0x3b1)](){const _0x190d86=_0x315216;(this[_0x190d86(0x1a0)][_0x190d86(0x3e0)]?[...this[_0x190d86(0x1a0)][_0x190d86(0x133)]()]:[this[_0x190d86(0x283)](void 0x0)])[_0x190d86(0x216)](_0x397c02=>{const _0x3574cf=_0x190d86;!this[_0x3574cf(0x30b)](_0x397c02[_0x3574cf(0x217)])||_0x397c02['socketReady']||_0x397c02['candidateSocket']||_0x397c02[_0x3574cf(0x213)]||(_0x397c02['retryCount']=0x0,this['_clearRetryConnectingTimer'](_0x397c02),this[_0x3574cf(0xe5)](_0x397c02));});}[_0x315216(0x3e4)](_0x3f744f){const _0x431700=_0x315216;_0x3f744f['retryConnectingTimer']!=null&&(clearTimeout(_0x3f744f[_0x431700(0x169)]),_0x3f744f[_0x431700(0x169)]=null);}[_0x315216(0x32c)](_0x27decf){const _0x2a9f2c=_0x315216;let _0x2e8685=this[_0x2a9f2c(0x1ed)][_0x2a9f2c(0x455)](_0x3a344c),_0x2a6f2b=_0x27decf['endpoint']??(_0x2e8685==null?void 0x0:_0x2e8685['collabWebSocketUrl'])??'ws://127.0.0.1:8000/universer-api/comb/connect';return this[_0x2a9f2c(0x13e)]['createSocket'](_0x2a6f2b);}async[_0x315216(0xca)](_0x36e61c){const _0x130ca6=_0x315216;var _0x53edfa;if(this[_0x130ca6(0x43c)]||((_0x53edfa=this['_networkConditionService'])==null?void 0x0:_0x53edfa[_0x130ca6(0x115)])===!0x1||_0x36e61c[_0x130ca6(0x3b3)]||_0x36e61c[_0x130ca6(0x365)]||_0x36e61c[_0x130ca6(0x213)])return;let _0x2dbabb={};_0x36e61c[_0x130ca6(0x213)]=_0x2dbabb;try{let _0x34c4aa=await this[_0x130ca6(0x32c)](_0x36e61c);if(this[_0x130ca6(0x43c)]||_0x36e61c[_0x130ca6(0x213)]!==_0x2dbabb){_0x34c4aa==null||_0x34c4aa[_0x130ca6(0x358)]();return;}if(_0x34c4aa){var _0x791420;_0x36e61c[_0x130ca6(0x365)]=_0x34c4aa,_0x36e61c[_0x130ca6(0x191)]=setTimeout(()=>{const _0x20e4a3=_0x130ca6;!this[_0x20e4a3(0x43c)]&&_0x36e61c[_0x20e4a3(0x365)]===_0x34c4aa&&this[_0x20e4a3(0x418)](_0x36e61c);},0x4e20);let _0x5b47b8=_0x34c4aa['send'];_0x34c4aa[_0x130ca6(0x325)]=(_0x2baf09,_0x1d7624)=>(_0x2baf09[_0x130ca6(0x291)]!==_0x483212[_0x130ca6(0x422)][_0x130ca6(0x239)]&&!_0x2428fb(_0x2baf09)&&_0x36e61c['socketReady']&&_0x36e61c[_0x130ca6(0x42b)][_0x130ca6(0x3aa)]()===_0x34c4aa&&this['_rescheduleHeartbeat'](_0x36e61c),_0x1d7624===void 0x0?_0x5b47b8[_0x130ca6(0x20c)](_0x34c4aa,_0x2baf09):_0x5b47b8[_0x130ca6(0x20c)](_0x34c4aa,_0x2baf09,_0x1d7624)),(_0x791420=_0x36e61c[_0x130ca6(0xb9)])==null||_0x791420['unsubscribe']();let _0x1e0224=new _0x1fdbe2[(_0x130ca6(0x3ad))]();_0x36e61c[_0x130ca6(0xb9)]=_0x1e0224,_0x1e0224[_0x130ca6(0xd9)](_0x34c4aa[_0x130ca6(0x32a)][_0x130ca6(0x28f)](_0x16d9a3=>this[_0x130ca6(0x102)](_0x36e61c,_0x34c4aa,_0x16d9a3))),_0x1e0224['add'](_0x34c4aa['error$']['pipe']((0x0,_0xa8b74d[_0x130ca6(0xcf)])(0x1))[_0x130ca6(0x28f)](_0x207c93=>this[_0x130ca6(0xb8)][_0x130ca6(0xd6)](_0x130ca6(0x1c5),_0x207c93))),_0x1e0224[_0x130ca6(0xd9)](_0x34c4aa[_0x130ca6(0x3bb)][_0x130ca6(0xa4)]((0x0,_0xa8b74d[_0x130ca6(0xcf)])(0x1))['subscribe'](()=>{const _0x5e9361=_0x130ca6;this[_0x5e9361(0x139)](_0x36e61c,_0x34c4aa);})),_0x1e0224['add'](_0x34c4aa[_0x130ca6(0x256)][_0x130ca6(0xa4)]((0x0,_0xa8b74d['take'])(0x1))[_0x130ca6(0x28f)](_0x4ae19f=>{const _0x3c6583=_0x130ca6;(_0x36e61c[_0x3c6583(0x365)]===_0x34c4aa||_0x36e61c[_0x3c6583(0x42b)][_0x3c6583(0x3aa)]()===_0x34c4aa)&&(this['_logService'][_0x3c6583(0x3e5)]('[CollaborationSessionService]',_0x3c6583(0x108),_0x4ae19f),this[_0x3c6583(0x418)](_0x36e61c));}));}}catch(_0x290f85){if(_0x36e61c[_0x130ca6(0x213)]!==_0x2dbabb)return;this[_0x130ca6(0xb8)][_0x130ca6(0xd6)](_0x290f85),this[_0x130ca6(0x418)](_0x36e61c);}finally{_0x36e61c['connectionAttempt']===_0x2dbabb&&(_0x36e61c[_0x130ca6(0x213)]=null);}}[_0x315216(0x139)](_0x30e35c,_0x34b2c7){const _0xf6d635=_0x315216;this[_0xf6d635(0x43c)]||_0x30e35c['candidateSocket']!==_0x34b2c7||(this[_0xf6d635(0xb8)][_0xf6d635(0x3e5)](_0xf6d635(0x39e),_0xf6d635(0x361)),_0x34b2c7['send']({'cmd':_0x483212[_0xf6d635(0x422)]['HELLO']}));}['_onOffline'](_0xcf00b0){const _0x2b1efa=_0x315216;var _0x40cab9;let _0x1928cd=_0xcf00b0['socket$'][_0x2b1efa(0x3aa)]()??_0xcf00b0[_0x2b1efa(0x365)];_0xcf00b0['connectionAttempt']=null,_0xcf00b0['socketReady']=!0x1,_0xcf00b0[_0x2b1efa(0x365)]=null,(_0x40cab9=_0xcf00b0[_0x2b1efa(0xb9)])==null||_0x40cab9[_0x2b1efa(0x223)](),_0xcf00b0[_0x2b1efa(0xb9)]=null,this[_0x2b1efa(0x3c5)]['next'](0x2),_0xcf00b0[_0x2b1efa(0x42b)]['next'](null),this[_0x2b1efa(0x3e4)](_0xcf00b0),this[_0x2b1efa(0x42e)](_0xcf00b0),this['_clearTimeoutTimer'](_0xcf00b0),this[_0x2b1efa(0x1c6)](_0xcf00b0),_0x1928cd==null||_0x1928cd[_0x2b1efa(0x358)]();}[_0x315216(0x418)](_0x39512f){const _0x1b2b2f=_0x315216;var _0x56e55b;this[_0x1b2b2f(0x2d2)](_0x39512f),!this[_0x1b2b2f(0x43c)]&&((_0x56e55b=this[_0x1b2b2f(0x480)])==null?void 0x0:_0x56e55b[_0x1b2b2f(0x115)])!==!0x1&&this[_0x1b2b2f(0x30b)](_0x39512f['endpointKey'])&&(_0x39512f['retryCount']<(this[_0x1b2b2f(0x1ed)]['getConfig'](_0x1b2b2f(0x2c7))??0x3)?(this[_0x1b2b2f(0x190)]['emitEvent']({'id':_0x1b2b2f(0x28c)}),this[_0x1b2b2f(0xe5)](_0x39512f)):this[_0x1b2b2f(0x190)][_0x1b2b2f(0x436)]({'id':_0x1b2b2f(0x2c1)}));}[_0x315216(0xe5)](_0x41bce4){const _0x5c6f46=_0x315216;let _0x3e4edd=_0x41bce4[_0x5c6f46(0x40f)],_0x15ef86=this[_0x5c6f46(0x1ed)][_0x5c6f46(0x455)](_0x3a344c),_0x4bac81=_0x3e4edd===0x0?0x0:((_0x15ef86==null?void 0x0:_0x15ef86[_0x5c6f46(0x30f)])??0x4e20)*0x2**_0x3e4edd;_0x41bce4[_0x5c6f46(0x169)]=setTimeout(()=>{const _0x5ebceb=_0x5c6f46;clearTimeout(_0x41bce4[_0x5ebceb(0x169)]),_0x41bce4[_0x5ebceb(0x169)]=null,this[_0x5ebceb(0xca)](_0x41bce4);},_0x4bac81),_0x41bce4[_0x5c6f46(0x40f)]+=0x1;}async[_0x315216(0x3eb)](_0x4e7cad,_0x22ad34){const _0x2b4149=_0x315216;return _0x34b57a(_0x4e7cad,_0x22ad34,await this['_adapter'][_0x2b4149(0x10e)]({'unitId':_0x4e7cad,'unitType':_0x22ad34}));}[_0x315216(0x102)](_0x2eac8f,_0x1f088b,_0x26967c){const _0x5868b4=_0x315216;if(this[_0x5868b4(0x43c)]||_0x2eac8f[_0x5868b4(0x365)]!==_0x1f088b&&_0x2eac8f[_0x5868b4(0x42b)]['getValue']()!==_0x1f088b)return;let {cmd:_0x460b87}=_0x26967c;if(_0x460b87===_0x483212[_0x5868b4(0x422)][_0x5868b4(0x34e)]&&!_0x2eac8f[_0x5868b4(0x3b3)]){var _0x47f826;if((_0x26967c['code']??_0x483212[_0x5868b4(0x353)]['OK'])!==_0x483212[_0x5868b4(0x353)]['OK']||!((_0x47f826=_0x26967c[_0x5868b4(0x2a1)])!=null&&_0x47f826[_0x5868b4(0x471)])){this['_onConnectionFailed'](_0x2eac8f);return;}this[_0x5868b4(0x42e)](_0x2eac8f),_0x1f088b[_0x5868b4(0x471)]=_0x26967c['data'][_0x5868b4(0x471)],_0x2eac8f[_0x5868b4(0x40f)]=0x0,_0x2eac8f['socketReady']=!0x0,_0x2eac8f[_0x5868b4(0x365)]=null,_0x2eac8f['socket$'][_0x5868b4(0x407)](_0x1f088b),this[_0x5868b4(0x3c5)][_0x5868b4(0x407)](0x3);}_0x460b87===_0x483212[_0x5868b4(0x422)][_0x5868b4(0xe8)]&&this['_clearTimeoutTimer'](_0x2eac8f),this[_0x5868b4(0x459)](_0x2eac8f);}['_hasSessionsForEndpoint'](_0x4c1976){const _0x29b928=_0x315216;return[...this['_sessionChannels'][_0x29b928(0x133)]()]['some'](_0x270d06=>_0x270d06===_0x4c1976);}[_0x315216(0x283)](_0x555573){const _0x1b9c2e=_0x315216;let _0x414f73=_0x555573??'',_0x15af4b=this[_0x1b9c2e(0x1a0)][_0x1b9c2e(0x1df)](_0x414f73);if(_0x15af4b)return _0x15af4b;let _0x4018a6={'endpointKey':_0x414f73,'endpoint':_0x555573,'socket$':new _0x1fdbe2[(_0x1b9c2e(0x1c7))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1b9c2e(0x1a0)]['set'](_0x414f73,_0x4018a6),_0x4018a6;}[_0x315216(0x42e)](_0x4685c0){const _0x2b35ae=_0x315216;_0x4685c0['handshakeTimer']!=null&&(clearTimeout(_0x4685c0[_0x2b35ae(0x191)]),_0x4685c0['handshakeTimer']=null);}[_0x315216(0x459)](_0xa351fe){const _0x46e7bd=_0x315216;this[_0x46e7bd(0x1c6)](_0xa351fe),_0xa351fe[_0x46e7bd(0x3b3)]&&(_0xa351fe[_0x46e7bd(0x303)]=setTimeout(()=>this[_0x46e7bd(0x31b)](_0xa351fe),this['_configService'][_0x46e7bd(0x455)](_0x46e7bd(0x388))??0x7530));}[_0x315216(0x31b)](_0xcf432a){const _0x10f797=_0x315216;let _0x45257b=_0xcf432a[_0x10f797(0x42b)][_0x10f797(0x3aa)]();_0xcf432a[_0x10f797(0x3b3)]&&_0x45257b&&(_0x45257b[_0x10f797(0x325)]({'cmd':_0x483212[_0x10f797(0x422)][_0x10f797(0xe8)]}),this[_0x10f797(0x31e)](_0xcf432a));}[_0x315216(0x31e)](_0x4ed53e){const _0x557ffe=_0x315216;_0x4ed53e[_0x557ffe(0x2f5)]=setTimeout(()=>this[_0x557ffe(0x418)](_0x4ed53e),this[_0x557ffe(0x1ed)][_0x557ffe(0x455)](_0x557ffe(0x113))??0x4e20);}[_0x315216(0x1c6)](_0x298537){const _0x3dea0a=_0x315216;_0x298537[_0x3dea0a(0x303)]!=null&&(clearTimeout(_0x298537[_0x3dea0a(0x303)]),_0x298537[_0x3dea0a(0x303)]=null);}[_0x315216(0x2ea)](_0x875d62){const _0x184702=_0x315216;_0x875d62[_0x184702(0x2f5)]!=null&&(clearTimeout(_0x875d62[_0x184702(0x2f5)]),_0x875d62[_0x184702(0x2f5)]=null);}};_0x2c8ade=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x2,_0x325f28['IConfigService']),_0x557b04(0x3,_0x84bd5),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x11f58a)),_0x557b04(0x5,_0xe6d4d9)],_0x2c8ade);function _0x2428fb(_0x5868e2){const _0x5b591a=_0x315216;if(_0x5868e2[_0x5b591a(0x291)]!==_0x483212[_0x5b591a(0x422)][_0x5b591a(0x9c)])return!0x1;let _0x132886=_0x5868e2[_0x5b591a(0x2a1)][_0x5b591a(0x32e)];return _0x132886===_0x4524ba[_0x5b591a(0x1d7)][_0x5b591a(0x227)]||_0x132886===_0x4524ba[_0x5b591a(0x1d7)]['FETCH_MISSING'];}let _0x4b66f1=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x56456b,_0x35a390,_0x7c51cb,_0x1517a7){const _0x3f6f50=_0x315216;var _0x28c5e9;super(),this[_0x3f6f50(0xe7)]=_0x56456b,this['_collabSessionService']=_0x35a390,this[_0x3f6f50(0x1ed)]=_0x7c51cb,this[_0x3f6f50(0x23b)]=_0x1517a7,_0x4da1f9(this,'_entities',new Map()),_0x4da1f9(this,_0x3f6f50(0x22e),new _0x1fdbe2[(_0x3f6f50(0x112))]()),_0x4da1f9(this,_0x3f6f50(0x137),this[_0x3f6f50(0x22e)][_0x3f6f50(0xf1)]()),((_0x28c5e9=this['_configService']['getConfig']('collaboration-client.config'))==null?void 0x0:_0x28c5e9[_0x3f6f50(0x441)])!==!0x1&&this[_0x3f6f50(0x1e3)]();}[_0x315216(0x15a)](){const _0xd13161=_0x315216;super[_0xd13161(0x15a)](),this[_0xd13161(0x9e)][_0xd13161(0x216)](_0x5537ca=>_0x5537ca[_0xd13161(0x15a)]()),this[_0xd13161(0x9e)][_0xd13161(0x14e)]();}[_0x315216(0xa3)](_0x4ed8a8){const _0x50ea6d=_0x315216;return this[_0x50ea6d(0x9e)][_0x50ea6d(0x1df)](_0x4ed8a8)??null;}[_0x315216(0x44a)](){const _0x578593=_0x315216;return Array[_0x578593(0x29a)](this[_0x578593(0x9e)][_0x578593(0x133)]());}[_0x315216(0x109)](_0x3277e1){const _0x415307=_0x315216;let _0x1a9c03=this[_0x415307(0xa3)](_0x3277e1);return _0x1a9c03?(0x0,_0x1fdbe2['of'])(_0x1a9c03):this[_0x415307(0x22e)]['pipe']((0x0,_0xa8b74d[_0x415307(0x22a)])(_0x4b0d9a=>_0x4b0d9a[_0x415307(0x154)]===_0x3277e1));}[_0x315216(0x2e2)](_0x982780){const _0x1f16ea=_0x315216;return(0x0,_0x1fdbe2[_0x1f16ea(0x214)])(this[_0x1f16ea(0x109)](_0x982780)[_0x1f16ea(0xa4)]((0x0,_0xa8b74d[_0x1f16ea(0x403)])(()=>void 0x0)));}[_0x315216(0x386)](_0x29c3c5){const _0x1d36db=_0x315216;if(_0x29c3c5!==void 0x0){var _0x120336;return((_0x120336=this['_entities'][_0x1d36db(0x1df)](_0x29c3c5))==null?void 0x0:_0x120336[_0x1d36db(0x386)]())??!0x1;}for(let _0x376280 of this[_0x1d36db(0x9e)][_0x1d36db(0x133)]())if(_0x376280[_0x1d36db(0x386)]())return!0x0;return!0x1;}['_init'](){const _0x2ff494=_0x315216;this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28['UniverInstanceType'][_0x2ff494(0x33b)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2['takeUntil'])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))[_0x2ff494(0x28f)](async _0x48d7af=>{const _0x396d46=_0x2ff494;let _0x5e7b30=_0x48d7af[_0x396d46(0x42f)]['getUnitId'](),_0x5f003b=await this[_0x396d46(0x35f)](_0x5e7b30,_0x325f28[_0x396d46(0x41f)][_0x396d46(0x33b)]);this['_entities']['set'](_0x5e7b30,_0x5f003b);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x2a4)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d['delay'])(0x10))[_0x2ff494(0xa4)]((0x0,_0xa8b74d[_0x2ff494(0x22a)])(_0xbde8d2=>!_0xbde8d2[_0x2ff494(0x42f)][_0x2ff494(0x119)]()[_0x2ff494(0x35a)]('__')))[_0x2ff494(0x28f)](async _0xb54df3=>{const _0x1a40a2=_0x2ff494;let _0x347fa3=_0xb54df3[_0x1a40a2(0x42f)][_0x1a40a2(0x119)](),_0x562bd3=await this[_0x1a40a2(0x35f)](_0x347fa3,_0x325f28[_0x1a40a2(0x41f)]['UNIVER_DOC']);this[_0x1a40a2(0x9e)][_0x1a40a2(0x232)](_0x347fa3,_0x562bd3);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x1c3)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))['subscribe'](async _0x487ab8=>{const _0x232b17=_0x2ff494;let _0xb6b5cb=_0x487ab8['unit'][_0x232b17(0x119)](),_0x250b5a=await this['_startCollaboration'](_0xb6b5cb,_0x325f28[_0x232b17(0x41f)][_0x232b17(0x1c3)]);this[_0x232b17(0x9e)]['set'](_0xb6b5cb,_0x250b5a);}),this[_0x2ff494(0x23b)][_0x2ff494(0x2cb)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x3a4)])['pipe']((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d['delay'])(0x10))[_0x2ff494(0x28f)](async _0x103b6d=>{const _0x1b0714=_0x2ff494;let _0x12a0e2=_0x103b6d['unit'][_0x1b0714(0x119)](),_0x51c396=await this[_0x1b0714(0x35f)](_0x12a0e2,_0x325f28[_0x1b0714(0x41f)]['UNIVER_BOARD']);this[_0x1b0714(0x9e)][_0x1b0714(0x232)](_0x12a0e2,_0x51c396);}),this[_0x2ff494(0x23b)]['getTypeOfUnitAdded$'](_0x325f28[_0x2ff494(0x41f)]['UNIVER_BASE'])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))[_0x2ff494(0x28f)](async _0x5e5f28=>{const _0x408705=_0x2ff494;let _0x1379d5=_0x5e5f28[_0x408705(0x42f)]['getUnitId'](),_0x407389=await this['_startCollaboration'](_0x1379d5,_0x325f28[_0x408705(0x41f)]['UNIVER_BASE']);this['_entities'][_0x408705(0x232)](_0x1379d5,_0x407389);}),this[_0x2ff494(0x23b)]['getTypeOfUnitAdded$'](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x45f)])[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]),(0x0,_0xa8b74d[_0x2ff494(0x350)])(0x10))['subscribe'](async _0x43aa89=>{const _0x17e44e=_0x2ff494;let _0x5f4bc6=_0x43aa89['unit'][_0x17e44e(0x119)](),_0x44e096=await this[_0x17e44e(0x35f)](_0x5f4bc6,_0x325f28[_0x17e44e(0x41f)]['UNIVER_PDF']);this[_0x17e44e(0x9e)][_0x17e44e(0x232)](_0x5f4bc6,_0x44e096);}),(0x0,_0x1fdbe2['merge'])(this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x33b)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)]['UNIVER_DOC']),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x1c3)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28['UniverInstanceType'][_0x2ff494(0x3a4)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28['UniverInstanceType'][_0x2ff494(0xc9)]),this[_0x2ff494(0x23b)][_0x2ff494(0x1b4)](_0x325f28[_0x2ff494(0x41f)][_0x2ff494(0x45f)]))[_0x2ff494(0xa4)]((0x0,_0x1fdbe2[_0x2ff494(0xf5)])(this[_0x2ff494(0x42a)]))['subscribe'](_0x27bfef=>{const _0x4b8b0c=_0x2ff494;let _0x275160=_0x27bfef[_0x4b8b0c(0x119)](),_0x5793b6=this[_0x4b8b0c(0x9e)][_0x4b8b0c(0x1df)](_0x275160);_0x5793b6&&(_0x5793b6[_0x4b8b0c(0x15a)](),this['_entities']['delete'](_0x275160));});}async[_0x315216(0x35f)](_0x577f64,_0x5b30e7){const _0xda098d=_0x315216;let _0x407042=await this[_0xda098d(0x404)][_0xda098d(0x3fb)](_0x577f64),_0x21c3a3=this['_injector']['createInstance'](this['_getCtorByUniverInstanceType'](_0x5b30e7),_0x577f64,_0x5b30e7,_0x407042);return await _0x21c3a3[_0xda098d(0x41d)](),this[_0xda098d(0x22e)][_0xda098d(0x407)](_0x21c3a3),_0x21c3a3;}['_getCtorByUniverInstanceType'](_0x56ef3a){const _0x51ef7e=_0x315216;switch(_0x56ef3a){case _0x325f28['UniverInstanceType']['UNIVER_DOC']:return _0x464598;case _0x325f28['UniverInstanceType'][_0x51ef7e(0x33b)]:return _0x3a3d85;case _0x325f28[_0x51ef7e(0x41f)][_0x51ef7e(0x1c3)]:return _0x37ab5d;case _0x325f28['UniverInstanceType'][_0x51ef7e(0x3a4)]:return _0x4df8c8;case _0x325f28[_0x51ef7e(0x41f)][_0x51ef7e(0xc9)]:return _0x2033f7;case _0x325f28['UniverInstanceType']['UNIVER_PDF']:return _0x1e25ce;default:throw Error(_0x51ef7e(0x472)+_0x56ef3a);}}};_0x4b66f1=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,(0x0,_0x325f28['Inject'])(_0x2c8ade)),_0x557b04(0x2,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x3,_0x325f28[_0x315216(0xd2)])],_0x4b66f1);var _0x5268b1=_0x315216(0x1d2),_0xc74a63=_0x315216(0x1be);let _0x473a89=class extends _0x325f28[_0x315216(0x14a)]{constructor(_0x39f217,_0x391b7b){const _0x323b0e=_0x315216;super(),this[_0x323b0e(0x23b)]=_0x39f217,this['_configService']=_0x391b7b,this[_0x323b0e(0x1e3)]();}[_0x315216(0x1e3)](){const _0x5efd4a=_0x315216;this[_0x5efd4a(0x41e)](this[_0x5efd4a(0x23b)]['focused$'][_0x5efd4a(0x28f)](()=>{const _0x9115d9=_0x5efd4a;let _0x15755d=this[_0x9115d9(0x23b)][_0x9115d9(0x3ed)](),_0x5e5d4a=this[_0x9115d9(0x1ed)][_0x9115d9(0x455)]('DEFAULT_FILE_NAME')??_0x9115d9(0x30d);_0x15755d instanceof _0x325f28['Workbook']&&(_0x5e5d4a=_0x15755d['name']),document[_0x9115d9(0x194)]=_0x5e5d4a;}));}};_0x473a89=_0x5af442([_0x557b04(0x0,_0x325f28['IUniverInstanceService']),_0x557b04(0x1,_0x325f28[_0x315216(0x1cf)])],_0x473a89);let _0x3a6c7e=(0x0,_0x325f28['createIdentifier'])(_0x315216(0x340)),_0x3c9a1b=class{constructor(_0x36d566,_0x9dfac4,_0xbe46f2){const _0x2b8335=_0x315216;this['_httpService']=_0x36d566,this[_0x2b8335(0x1ed)]=_0x9dfac4,this[_0x2b8335(0x23b)]=_0xbe46f2;}[_0x315216(0x2c2)](){const _0xc92d3f=_0x315216;return this[_0xc92d3f(0x331)]()[_0xc92d3f(0x367)]??{};}async[_0x315216(0x449)](_0x52586a){const _0x496384=_0x315216;let _0xe9295c=this[_0x496384(0x2c2)]();if(_0x5708d6(_0x52586a,_0xe9295c),_0xe9295c[_0x496384(0x170)])return _0xe9295c[_0x496384(0x170)](_0x52586a);let _0x8626c0=await this[_0x496384(0x30c)](_0x52586a);return{'id':_0x8626c0,'name':_0x52586a['name'],'mimeType':_0x52586a[_0x496384(0x438)],'size':_0x52586a[_0x496384(0x3e0)],'sourceType':_0x325f28[_0x496384(0x3f6)][_0x496384(0x439)],'source':_0x8626c0};}async['getAttachmentUrl'](_0x52416e,_0x5cf4e0){const _0x5c4c88=_0x315216;if(_0x5cf4e0!==_0x325f28[_0x5c4c88(0x3f6)]['UUID'])return _0x52416e;let _0x1ab950=(await this['_httpService'][_0x5c4c88(0x1df)](this[_0x5c4c88(0xed)]()[_0x5c4c88(0x3bd)](_0x5c4c88(0x23e),_0x52416e)))[_0x5c4c88(0x3d5)];if(_0x1ab950[_0x5c4c88(0xd6)]&&_0x1ab950[_0x5c4c88(0xd6)][_0x5c4c88(0xdf)]!==_0x483212[_0x5c4c88(0x349)]['OK'])throw _0x1ab950[_0x5c4c88(0xd6)];if(!_0x1ab950[_0x5c4c88(0x35c)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,_0x325f28[_0x5c4c88(0x1f1)])(_0x1ab950['url'],this[_0x5c4c88(0x298)]());}async[_0x315216(0x30c)](_0x62ea6c){const _0x468d58=_0x315216;let _0x2f9b0c=this[_0x468d58(0x23b)][_0x468d58(0x3ed)](),_0xd741b4=_0x2f9b0c==null?void 0x0:_0x2f9b0c['getUnitId']();if(!_0xd741b4)throw Error(_0x468d58(0xeb));let _0x1a70bf=new FormData();_0x1a70bf[_0x468d58(0x2b1)](_0x468d58(0xe9),_0x62ea6c);let _0x31b646=this[_0x468d58(0x9a)]()+_0x468d58(0x3ee)+_0x62ea6c[_0x468d58(0x3e0)][_0x468d58(0x3c8)]()+_0x468d58(0x136)+_0x483212[_0x468d58(0x2e8)][_0x468d58(0x392)]+_0x468d58(0x20f)+encodeURIComponent(_0xd741b4),_0xdc969e=(await this[_0x468d58(0xde)]['post'](_0x31b646,{'body':_0x1a70bf}))[_0x468d58(0x3d5)][_0x468d58(0x458)];if(typeof _0xdc969e!='string'||!_0xdc969e)throw Error(_0x468d58(0x15d));return _0xdc969e;}['_getUploadFileURL'](){const _0x3c3860=_0x315216;return this[_0x3c3860(0x331)]()[_0x3c3860(0x322)]??'/universer-api/stream/file/upload';}[_0x315216(0xed)](){const _0x1362ba=_0x315216;return this[_0x1362ba(0x331)]()[_0x1362ba(0x18e)]??_0x1362ba(0x153);}[_0x315216(0x298)](){const _0x55dd69=_0x315216;let _0x52e319=this[_0x55dd69(0x331)]();return _0x52e319[_0x55dd69(0x36a)]?_0x52e319['downloadEndpointUrl']:typeof location<'u'?location['origin']:_0x52e319[_0x55dd69(0x322)]??'';}[_0x315216(0x331)](){const _0x4bae3d=_0x315216;return this[_0x4bae3d(0x1ed)][_0x4bae3d(0x455)](_0x4bae3d(0x146))??{};}};_0x3c9a1b=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x18cba4['HTTPService'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x1cf)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['IUniverInstanceService']))],_0x3c9a1b);function _0x5708d6(_0x57d8fa,_0x7c90f){const _0x25027b=_0x315216;var _0x205782;if(_0x7c90f['maxSize']!=null&&_0x57d8fa[_0x25027b(0x3e0)]>_0x7c90f['maxSize'])throw Error(_0x25027b(0x130));if((_0x205782=_0x7c90f[_0x25027b(0x3ae)])!=null&&_0x205782[_0x25027b(0x250)]&&!_0x7c90f[_0x25027b(0x3ae)][_0x25027b(0x142)](_0x2ed3e8=>_0x57d8fa['type']===_0x2ed3e8||_0x57d8fa[_0x25027b(0x163)]['endsWith'](_0x2ed3e8)||_0x2ed3e8[_0x25027b(0x2e1)]('/*')&&_0x57d8fa[_0x25027b(0x438)][_0x25027b(0x35a)](_0x2ed3e8[_0x25027b(0x106)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x5ef8ed=class{constructor(_0x393ae3,_0x4ce70a,_0xa7fe99){const _0x45fdd2=_0x315216;this[_0x45fdd2(0x1ed)]=_0x393ae3,this[_0x45fdd2(0xde)]=_0x4ce70a,this[_0x45fdd2(0x33e)]=_0xa7fe99,this[_0x45fdd2(0x41d)]();}[_0x315216(0x41d)](){const _0x20cfac=_0x315216;this[_0x20cfac(0xde)][_0x20cfac(0x1c1)]({'priority':0x1,'interceptor':(_0x57a7c5,_0x16ab35)=>_0x16ab35(_0x57a7c5)[_0x20cfac(0xa4)]((0x0,_0x1fdbe2[_0x20cfac(0x391)])(async _0x2e96c9=>{const _0x2b9b2d=_0x20cfac;let _0x5773f8=_0x2e96c9;if(_0x5773f8[_0x2b9b2d(0x326)]===0x191){if(typeof window>'u')throw Error(_0x2b9b2d(0x145));if(window[_0x2b9b2d(0x1dd)](this['localeService']['t'](_0x2b9b2d(0x1d1)))){let _0x5141cb=window[_0x2b9b2d(0x1e8)](window[_0x2b9b2d(0xcd)]['href']);window[_0x2b9b2d(0xcd)][_0x2b9b2d(0x1cb)]=this[_0x2b9b2d(0x103)]()+_0x2b9b2d(0x442)+_0x5141cb;}}return _0x5773f8;}))});}[_0x315216(0x103)](){const _0x107544=_0x315216;let _0x49e9a2=this[_0x107544(0x1ed)][_0x107544(0x455)](_0x3a344c);return(_0x49e9a2==null?void 0x0:_0x49e9a2['loginUrlKey'])??_0x107544(0x3c1);}};_0x5ef8ed=_0x5af442([_0x557b04(0x0,_0x325f28['IConfigService']),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x2ae)]))],_0x5ef8ed);let _0x26c5f0=class extends _0x325f28['Disposable']{constructor(_0x549d28,_0x198d58){const _0x3c5b86=_0x315216;super(),this[_0x3c5b86(0x255)]=_0x549d28,this[_0x3c5b86(0x1ed)]=_0x198d58,_0x4da1f9(this,_0x3c5b86(0x1fa),!0x1),this[_0x3c5b86(0x1da)]();}['_initMergeInterceptor'](){const _0x136bc7=_0x315216;let _0x1b86c9=this;this[_0x136bc7(0x41e)](this[_0x136bc7(0x255)][_0x136bc7(0x1c1)]({'priority':0x3e7,'interceptor':(0x0,_0x18cba4[_0x136bc7(0x264)])({'isMatch'(_0x56b2fa){const _0x56a34f=_0x136bc7;var _0xe139ab;if(_0x56b2fa[_0x56a34f(0x17c)]==='POST'&&(_0xe139ab=_0x56b2fa['requestParams'])!=null&&_0xe139ab[_0x56a34f(0x3d5)]){let {objectID:_0x7d0b8b,objectType:_0x5a0c83}=_0x56b2fa[_0x56a34f(0x3c3)][_0x56a34f(0x3d5)]||{};if(!_0x7d0b8b||_0x5a0c83===void 0x0)return!0x1;let _0x41bd9d=_0x1b86c9[_0x56a34f(0x27a)]()+'/'+_0x5a0c83+_0x56a34f(0x140)+encodeURIComponent(_0x7d0b8b)+'/allowed';if(_0x56b2fa[_0x56a34f(0x35c)]===_0x41bd9d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x315c89){const _0x5db7fa=_0x136bc7;var _0x234e4f;return(_0x234e4f=_0x315c89[_0x5db7fa(0x3c3)])==null?void 0x0:_0x234e4f['body'];},'mergeParamsToRequest'(_0x20aaef,_0x5234eb){const _0x5a3b4c=_0x136bc7;let _0x5896dd=_0x1b86c9[_0x5a3b4c(0x27a)]()+_0x5a3b4c(0x34f),_0x39d0f2=_0x20aaef[_0x5a3b4c(0x2cc)]((_0x5ce8bf,_0x4d7602)=>{const _0x134f3a=_0x5a3b4c;let {unitID:_0x5cdf54,objectID:_0x541537,objectType:_0x239838,actions:_0x2c3e9a}=_0x4d7602;return _0x5ce8bf[_0x5cdf54]||(_0x5ce8bf[_0x5cdf54]=Object['create'](null)),_0x5ce8bf[_0x5cdf54][_0x541537]||(_0x5ce8bf[_0x5cdf54][_0x541537]={'objectID':_0x541537,'objectType':_0x239838,'actions':[]}),_0x5ce8bf[_0x5cdf54][_0x541537]['actions'][_0x134f3a(0x46e)](..._0x2c3e9a),_0x5ce8bf;},Object[_0x5a3b4c(0x39d)](null)),_0x29d2c3=[];for(let _0x4f9bfe in _0x39d0f2)for(let _0x43d91a in _0x39d0f2[_0x4f9bfe]){let {actions:_0x190754,objectType:_0xe01cd0}=_0x39d0f2[_0x4f9bfe][_0x43d91a],_0xe51278=[...new Set(_0x190754)];_0x29d2c3[_0x5a3b4c(0x46e)]({'unitID':_0x4f9bfe,'objectID':_0x43d91a,'objectType':_0xe01cd0,'actions':_0xe51278});}return new _0x18cba4[(_0x5a3b4c(0xf6))](_0x5a3b4c(0x2f4),_0x5896dd,{'headers':_0x5234eb[_0x5a3b4c(0xff)],'withCredentials':_0x5234eb[_0x5a3b4c(0x25a)],'responseType':_0x5234eb[_0x5a3b4c(0x1f0)],'body':{'requests':_0x29d2c3}});}},{'distributeResult'(_0x3b6fe0,_0x505d39){let {objectActions:_0x1d39d6}=_0x3b6fe0;return _0x505d39['map'](_0x254d70=>{const _0x315e92=_0x2c10;let {unitID:_0x30d7db,objectID:_0x579895,actions:_0x24f2c3}=_0x254d70,_0x38a40b=_0x1d39d6['find'](_0x310f2e=>_0x310f2e[_0x315e92(0x154)]===_0x30d7db&&_0x310f2e[_0x315e92(0x46c)]===_0x579895);return{'config':_0x254d70,'result':{'actions':_0x24f2c3[_0x315e92(0x403)](_0x240d3c=>_0x38a40b==null?void 0x0:_0x38a40b[_0x315e92(0x3ab)][_0x315e92(0x3df)](_0xa9ef49=>_0xa9ef49[_0x315e92(0x1b6)]===_0x240d3c))['filter'](_0x1d554f=>!!_0x1d554f),'error':_0x3b6fe0[_0x315e92(0xd6)]}};});}})}));}['_getAPIPrefixPath'](){const _0x28c20a=_0x315216;let _0xea863d=this[_0x28c20a(0x1ed)]['getConfig'](_0x3a344c);return(_0xea863d==null?void 0x0:_0xea863d[_0x28c20a(0x2bc)])??_0x28c20a(0xf9);}async['create'](_0x3fdf56){const _0x2e4566=_0x315216;let _0x2c4150=this['_getAPIPrefixPath']()+'/'+_0x3fdf56[_0x2e4566(0x24f)]+_0x2e4566(0x2a2);return(await this[_0x2e4566(0x255)][_0x2e4566(0x178)](_0x2c4150,{'body':_0x3fdf56}))[_0x2e4566(0x3d5)][_0x2e4566(0x46c)]||'';}async[_0x315216(0x211)](_0x518e3c){const _0x1942ce=_0x315216;let _0x566fad=this[_0x1942ce(0x27a)]()+_0x1942ce(0x17e);return(await this[_0x1942ce(0x255)]['post'](_0x566fad,{'body':_0x518e3c}))[_0x1942ce(0x3d5)][_0x1942ce(0xb0)];}async[_0x315216(0x394)](_0x1ee8cf){const _0x33a302=_0x315216;var _0x5697ed;let _0x3fbb7a=this[_0x33a302(0x27a)]()+'/'+_0x1ee8cf[_0x33a302(0x24f)]+_0x33a302(0x140)+encodeURIComponent(_0x1ee8cf[_0x33a302(0x46c)]),_0x26ac6c=await this[_0x33a302(0x255)][_0x33a302(0x36f)](_0x3fbb7a,{'body':_0x1ee8cf});if((_0x26ac6c==null||(_0x5697ed=_0x26ac6c[_0x33a302(0x3d5)])==null||(_0x5697ed=_0x5697ed['error'])==null?void 0x0:_0x5697ed['code'])!==0x1)throw Error(_0x33a302(0x306));}async[_0x315216(0x257)](_0x23646d){const _0x402f52=_0x315216;let _0x232aa3=this[_0x402f52(0x27a)]()+'/'+_0x23646d[_0x402f52(0x24f)]+'/object/'+encodeURIComponent(_0x23646d[_0x402f52(0x46c)])+_0x402f52(0x2d6);return(await this[_0x402f52(0x255)]['post'](_0x232aa3,{'body':_0x23646d}))[_0x402f52(0x3d5)][_0x402f52(0x3ab)];}async[_0x315216(0x27e)](_0x378aab){const _0x2eb749=_0x315216;let _0x1f5310=this[_0x2eb749(0x27a)]()+_0x2eb749(0x34f);return(await this['_HTTPService']['post'](_0x1f5310,{'body':{'requests':_0x378aab}}))[_0x2eb749(0x3d5)][_0x2eb749(0x1cd)];}async[_0x315216(0x152)](_0x3a147a){const _0x27844c=_0x315216;let _0xb0a7e8=this['_getAPIPrefixPath']()+'/'+_0x3a147a[_0x27844c(0x24f)]+_0x27844c(0x128),_0x43bbd1=await this['_HTTPService']['post'](_0xb0a7e8,{'body':_0x3a147a});return{'roles':_0x43bbd1['body'][_0x27844c(0x461)],'actions':_0x43bbd1[_0x27844c(0x3d5)][_0x27844c(0x3ab)]};}async[_0x315216(0x234)](_0x3b0f12){const _0x14f90c=_0x315216;let _0x2bfeac=this[_0x14f90c(0x27a)]()+_0x14f90c(0x339);await this[_0x14f90c(0x255)]['delete'](_0x2bfeac,{'params':{'collaboratorID':_0x3b0f12[_0x14f90c(0x23d)],'objectID':_0x3b0f12[_0x14f90c(0x46c)],'unitID':_0x3b0f12['unitID']}});}async[_0x315216(0x2c4)](_0x8725e7){const _0x26441e=_0x315216;let _0xec0460=this[_0x26441e(0x27a)]()+_0x26441e(0x339);await this[_0x26441e(0x255)]['patch'](_0xec0460,{'body':_0x8725e7});}async[_0x315216(0x308)](_0x318063){const _0x494a12=_0x315216;let _0x508112=this[_0x494a12(0x27a)]()+'/collaborator';await this['_HTTPService']['post'](_0x508112,{'body':_0x318063});}async['listCollaborators'](_0x42f93b){const _0x2fba28=_0x315216;let _0x3fae2d=this[_0x2fba28(0x27a)]()+'/collaborator',_0x81afe6=await this['_HTTPService']['get'](_0x3fae2d,{'params':{'objectID':_0x42f93b['objectID'],'unitID':_0x42f93b[_0x2fba28(0x154)]}});return this['setCfgEnableObjInherit'](_0x81afe6['body'][_0x2fba28(0x26f)]??!0x1),_0x81afe6[_0x2fba28(0x3d5)][_0x2fba28(0x390)];}async[_0x315216(0x26a)](_0x3c2901){const _0x383aa2=_0x315216;let _0x4f03a1=this[_0x383aa2(0x27a)]()+_0x383aa2(0x339);await this[_0x383aa2(0x255)][_0x383aa2(0x36f)](_0x4f03a1,{'body':_0x3c2901});}['setCfgEnableObjInherit'](_0x5a5d88){const _0xd3e225=_0x315216;this[_0xd3e225(0x1fa)]=_0x5a5d88;}['getCfgEnableObjInherit'](){const _0x158b9f=_0x315216;return this[_0x158b9f(0x1fa)];}};_0x26c5f0=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4['HTTPService'])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28['IConfigService']))],_0x26c5f0);function _0x1dd4fc(_0x541c9c){const _0x16b45c=_0x315216;return _0x541c9c instanceof Uint8Array||ArrayBuffer[_0x16b45c(0x35e)](_0x541c9c)&&_0x541c9c[_0x16b45c(0x3b5)][_0x16b45c(0x163)]===_0x16b45c(0x46a)&&'BYTES_PER_ELEMENT'in _0x541c9c&&_0x541c9c[_0x16b45c(0x3db)]===0x1;}let _0x2f2fa7=_0x2cc876=>_0x2cc876?'\x22'+_0x2cc876+'\x22\x20':'';function _0x3edc45(_0x459f47,_0x4b9fcd=''){const _0xaaa34a=_0x315216;if(typeof _0x459f47!='number')throw TypeError(_0x2f2fa7(_0x4b9fcd)+_0xaaa34a(0x335)+typeof _0x459f47);if(!Number[_0xaaa34a(0x21a)](_0x459f47)||_0x459f47<0x0)throw RangeError(_0x2f2fa7(_0x4b9fcd)+_0xaaa34a(0x286)+_0x459f47);return _0x459f47;}function _0x19408d(_0x29e86d,_0x2b608b,_0x456356=''){const _0x5c02d5=_0x315216;if(_0x1dd4fc(_0x29e86d)&&(_0x2b608b===void 0x0||_0x29e86d[_0x5c02d5(0x250)]===_0x2b608b))return _0x29e86d;_0x2b608b!==void 0x0&&_0x3edc45(_0x2b608b,_0x5c02d5(0x250));let _0x489fa1=_0x1dd4fc(_0x29e86d),_0x26e522=_0x2b608b===void 0x0?'':'\x20of\x20length\x20'+_0x2b608b,_0x5e416c=_0x489fa1?'length='+_0x29e86d[_0x5c02d5(0x250)]:_0x5c02d5(0x419)+typeof _0x29e86d,_0x2704de=_0x2f2fa7(_0x456356)+_0x5c02d5(0xbc)+_0x26e522+',\x20got\x20'+_0x5e416c;throw _0x489fa1?RangeError(_0x2704de):TypeError(_0x2704de);}function _0xda7b2(_0x14ac33){const _0x3f5b47=_0x315216;return new Uint32Array(_0x14ac33[_0x3f5b47(0x12b)],_0x14ac33[_0x3f5b47(0x293)],Math[_0x3f5b47(0x244)](_0x14ac33['byteLength']/0x4));}function _0x4fce4b(..._0xf0f3cc){const _0x3b9f0f=_0x315216;for(let _0x233cd1=0x0;_0x233cd1<_0xf0f3cc[_0x3b9f0f(0x250)];_0x233cd1++)_0xf0f3cc[_0x233cd1]['fill'](0x0);}let _0x558a35=new Uint8Array(new Uint32Array([0x11223344])['buffer'])[0x0]===0x44;function _0x2ae8b0(_0x43498b){return _0x43498b<<0x18&0xff000000|_0x43498b<<0x8&0xff0000|_0x43498b>>>0x8&0xff00|_0x43498b>>>0x18&0xff;}function _0xe55cb4(_0x168ebf){const _0x487a7e=_0x315216;for(let _0x37ef61=0x0;_0x37ef61<_0x168ebf[_0x487a7e(0x250)];_0x37ef61++)_0x168ebf[_0x37ef61]=_0x2ae8b0(_0x168ebf[_0x37ef61]);return _0x168ebf;}let _0x430bce=_0x558a35?_0x20f4ea=>_0x20f4ea:_0xe55cb4;function _0x4bf143(_0x2a5a8b){const _0x5f3b70=_0x315216;if(typeof _0x2a5a8b!=_0x5f3b70(0xd5))throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()[_0x5f3b70(0x476)](_0x2a5a8b));}function _0x52bccf(_0x304908,_0x6bb8de){const _0x1463d0=_0x315216;return!_0x304908[_0x1463d0(0x41a)]||!_0x6bb8de[_0x1463d0(0x41a)]?!0x1:_0x304908[_0x1463d0(0x12b)]===_0x6bb8de['buffer']&&_0x304908['byteOffset']<_0x6bb8de[_0x1463d0(0x293)]+_0x6bb8de['byteLength']&&_0x6bb8de[_0x1463d0(0x293)]<_0x304908['byteOffset']+_0x304908[_0x1463d0(0x41a)];}function _0x49ac1c(_0x7da41d,_0x1b2baa){const _0x579645=_0x315216;if(_0x52bccf(_0x7da41d,_0x1b2baa)&&_0x7da41d[_0x579645(0x293)]<_0x1b2baa['byteOffset'])throw Error(_0x579645(0x3ce));}function _0x2dd4f9(..._0x14902b){const _0x4d3c9d=_0x315216;let _0x5d335e=0x0;for(let _0x568ad4=0x0;_0x568ad4<_0x14902b[_0x4d3c9d(0x250)];_0x568ad4++){let _0x5a66e2=_0x14902b[_0x568ad4];_0x19408d(_0x5a66e2),_0x5d335e+=_0x5a66e2[_0x4d3c9d(0x250)];}let _0x5b4226=new Uint8Array(_0x5d335e);for(let _0x3cbd9d=0x0,_0x327bfc=0x0;_0x3cbd9d<_0x14902b['length'];_0x3cbd9d++){let _0x4a608f=_0x14902b[_0x3cbd9d];_0x5b4226[_0x4d3c9d(0x232)](_0x4a608f,_0x327bfc),_0x327bfc+=_0x4a608f[_0x4d3c9d(0x250)];}return _0x5b4226;}let _0x293aa1=(_0x21d106,_0x1fb69a)=>{const _0x428fe7=_0x315216;function _0x3d8120(_0x1bb6ee,..._0x22a897){const _0x4b6aec=_0x2c10;if(_0x19408d(_0x1bb6ee,void 0x0,'key'),_0x21d106['nonceLength']!==void 0x0){let _0x1e5ce4=_0x22a897[0x0];_0x19408d(_0x1e5ce4,_0x21d106[_0x4b6aec(0x118)]?void 0x0:_0x21d106[_0x4b6aec(0x198)],_0x4b6aec(0x28d));}let _0x13858d=_0x21d106[_0x4b6aec(0x416)],_0x1a1524=_0x21d106[_0x4b6aec(0x198)]===void 0x0?0x0:0x1;if(!_0x21d106[_0x4b6aec(0x16b)]){for(let _0x543c6f=_0x1a1524;_0x543c6f<_0x22a897[_0x4b6aec(0x250)];_0x543c6f++)if(_0x1dd4fc(_0x22a897[_0x543c6f]))throw Error(_0x4b6aec(0x345));}_0x21d106[_0x4b6aec(0x16b)]&&_0x22a897[_0x1a1524]!==void 0x0&&_0x19408d(_0x22a897[_0x1a1524],void 0x0,'AAD');let _0x5447dd=_0x1fb69a(_0x1bb6ee,..._0x22a897),_0x3a7298=(_0x34f765,_0x3c793c)=>{const _0x1871bc=_0x4b6aec;if(_0x3c793c!==void 0x0){if(_0x34f765!==0x2)throw Error(_0x1871bc(0x47d));_0x19408d(_0x3c793c,void 0x0,_0x1871bc(0xdb));}},_0x34eebf=!0x1;return{'encrypt'(_0x789aef,_0x129397){const _0x15e4ad=_0x4b6aec;if(_0x34eebf)throw Error('cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce');return _0x34eebf=!0x0,_0x19408d(_0x789aef,void 0x0,_0x15e4ad(0x2a1)),_0x3a7298(_0x5447dd[_0x15e4ad(0xce)]['length'],_0x129397),_0x5447dd['encrypt'](_0x789aef,_0x129397);},'decrypt'(_0x43e058,_0x2e5697){const _0x5eba06=_0x4b6aec;if(_0x19408d(_0x43e058,void 0x0,_0x5eba06(0x2a1)),_0x13858d&&_0x43e058[_0x5eba06(0x250)]<_0x13858d)throw Error(_0x5eba06(0x11e)+_0x13858d);return _0x3a7298(_0x5447dd[_0x5eba06(0x176)][_0x5eba06(0x250)],_0x2e5697),_0x5447dd['decrypt'](_0x43e058,_0x2e5697);}};}return Object[_0x428fe7(0x3de)](_0x3d8120,_0x21d106),_0x3d8120;};function _0x22c370(_0x404296,_0xffd89,_0x146b2e=!0x0){const _0xc9dc88=_0x315216;if(_0xffd89===void 0x0)return new Uint8Array(_0x404296);if(_0x19408d(_0xffd89,_0x404296,_0xc9dc88(0xdb)),_0x146b2e&&!_0x212fd2(_0xffd89))throw Error(_0xc9dc88(0x3b2));return _0xffd89;}function _0x212fd2(_0xae6b93){const _0x4d7eb9=_0x315216;return _0xae6b93[_0x4d7eb9(0x293)]%0x4==0x0;}function _0x70eb6a(_0x20c493){const _0x40a373=_0x315216;return Uint8Array[_0x40a373(0x29a)](_0x19408d(_0x20c493));}function _0x59afa8(_0x10740b=0x20){const _0x1093cd=_0x315216;_0x3edc45(_0x10740b,_0x1093cd(0x134));let _0x5782f4=typeof globalThis==_0x1093cd(0x265)?globalThis['crypto']:null;if(typeof(_0x5782f4==null?void 0x0:_0x5782f4[_0x1093cd(0x38f)])!=_0x1093cd(0x246))throw Error(_0x1093cd(0x2cd));if(_0x10740b>0x10000)throw RangeError('\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20'+_0x10740b);return _0x5782f4[_0x1093cd(0x38f)](new Uint8Array(_0x10740b));}function _0x236875(_0x5dd9c3){const _0x1e8192=_0x315216;if(![0x10,0x18,0x20]['includes'](_0x5dd9c3[_0x1e8192(0x250)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x5dd9c3[_0x1e8192(0x250)]);}function _0x218f06(_0x1d1d88){return _0x1d1d88<<0x1^0x11b&-(_0x1d1d88>>0x7);}function _0x4906b7(_0x4d4ee7,_0x19d325){let _0x826e90=0x0;for(;_0x19d325>0x0;_0x19d325>>=0x1)_0x826e90^=_0x4d4ee7&-(_0x19d325&0x1),_0x4d4ee7=_0x218f06(_0x4d4ee7);return _0x826e90;}let _0x19fd20=((()=>{let _0x1bfc61=new Uint8Array(0x100);for(let _0x1a26b0=0x0,_0x8fcce7=0x1;_0x1a26b0<0x100;_0x1a26b0++,_0x8fcce7^=_0x218f06(_0x8fcce7))_0x1bfc61[_0x1a26b0]=_0x8fcce7;let _0x55f60f=new Uint8Array(0x100);_0x55f60f[0x0]=0x63;for(let _0x12d2f7=0x0;_0x12d2f7<0xff;_0x12d2f7++){let _0x31077d=_0x1bfc61[0xff-_0x12d2f7];_0x31077d|=_0x31077d<<0x8,_0x55f60f[_0x1bfc61[_0x12d2f7]]=(_0x31077d^_0x31077d>>0x4^_0x31077d>>0x5^_0x31077d>>0x6^_0x31077d>>0x7^0x63)&0xff;}return _0x4fce4b(_0x1bfc61),_0x55f60f;})()),_0x14796c=_0x19fd20[_0x315216(0x403)]((_0x100db8,_0x450d79)=>_0x19fd20[_0x315216(0x304)](_0x450d79)),_0x5e237d=_0x2bbf40=>_0x2bbf40<<0x18|_0x2bbf40>>>0x8,_0x571415=_0x4f14f0=>_0x4f14f0<<0x8|_0x4f14f0>>>0x18;function _0x38385c(_0x4c9017,_0x1c59f2){const _0xa57bfe=_0x315216;if(_0x4c9017['length']!==0x100)throw Error(_0xa57bfe(0x23f));let _0x3137cb=new Uint32Array(0x100)[_0xa57bfe(0x403)]((_0x4b5d37,_0xe49d09)=>_0x1c59f2(_0x4c9017[_0xe49d09])),_0x4fe794=_0x3137cb['map'](_0x571415),_0x526e32=_0x4fe794[_0xa57bfe(0x403)](_0x571415),_0x129ee4=_0x526e32[_0xa57bfe(0x403)](_0x571415),_0xaa6ddf=new Uint32Array(0x10000),_0x5775a6=new Uint32Array(0x10000),_0x5a8d9a=new Uint16Array(0x10000);for(let _0x3141d4=0x0;_0x3141d4<0x100;_0x3141d4++)for(let _0x34c8c0=0x0;_0x34c8c0<0x100;_0x34c8c0++){let _0x112c76=_0x3141d4*0x100+_0x34c8c0;_0xaa6ddf[_0x112c76]=_0x3137cb[_0x3141d4]^_0x4fe794[_0x34c8c0],_0x5775a6[_0x112c76]=_0x526e32[_0x3141d4]^_0x129ee4[_0x34c8c0],_0x5a8d9a[_0x112c76]=_0x4c9017[_0x3141d4]<<0x8|_0x4c9017[_0x34c8c0];}return{'sbox':_0x4c9017,'sbox2':_0x5a8d9a,'T0':_0x3137cb,'T1':_0x4fe794,'T2':_0x526e32,'T3':_0x129ee4,'T01':_0xaa6ddf,'T23':_0x5775a6};}let _0x475e9b=_0x38385c(_0x19fd20,_0x2077dc=>_0x4906b7(_0x2077dc,0x3)<<0x18|_0x2077dc<<0x10|_0x2077dc<<0x8|_0x4906b7(_0x2077dc,0x2)),_0x15efc8=_0x38385c(_0x14796c,_0xf30f65=>_0x4906b7(_0xf30f65,0xb)<<0x18|_0x4906b7(_0xf30f65,0xd)<<0x10|_0x4906b7(_0xf30f65,0x9)<<0x8|_0x4906b7(_0xf30f65,0xe)),_0x126857=((()=>{let _0x31724c=new Uint8Array(0x10);for(let _0x14fc08=0x0,_0x360013=0x1;_0x14fc08<0x10;_0x14fc08++,_0x360013=_0x218f06(_0x360013))_0x31724c[_0x14fc08]=_0x360013;return _0x31724c;})());function _0x267767(_0x338b9a){const _0x53e70c=_0x315216;_0x19408d(_0x338b9a);let _0x445860=_0x338b9a[_0x53e70c(0x250)];_0x236875(_0x338b9a);let {sbox2:_0xa3407}=_0x475e9b,_0x26671f=[];(!_0x558a35||!_0x212fd2(_0x338b9a))&&_0x26671f[_0x53e70c(0x46e)](_0x338b9a=_0x70eb6a(_0x338b9a));let _0x154c71=_0x430bce(_0xda7b2(_0x338b9a)),_0x4b61e9=_0x154c71[_0x53e70c(0x250)],_0x13ce4e=_0x1b5c39=>_0x234054(_0xa3407,_0x1b5c39,_0x1b5c39,_0x1b5c39,_0x1b5c39),_0x362b96=new Uint32Array(_0x445860+0x1c);_0x362b96[_0x53e70c(0x232)](_0x154c71);for(let _0x5925af=_0x4b61e9;_0x5925af<_0x362b96['length'];_0x5925af++){let _0x4c8230=_0x362b96[_0x5925af-0x1];_0x5925af%_0x4b61e9===0x0?_0x4c8230=_0x13ce4e(_0x5e237d(_0x4c8230))^_0x126857[_0x5925af/_0x4b61e9-0x1]:_0x4b61e9>0x6&&_0x5925af%_0x4b61e9===0x4&&(_0x4c8230=_0x13ce4e(_0x4c8230)),_0x362b96[_0x5925af]=_0x362b96[_0x5925af-_0x4b61e9]^_0x4c8230;}return _0x4fce4b(..._0x26671f),_0x362b96;}function _0x14b8de(_0x5f2b08){const _0x34fcf6=_0x315216;let _0x400897=_0x267767(_0x5f2b08),_0x5e9ef3=_0x400897['slice'](),_0x121a6b=_0x400897[_0x34fcf6(0x250)],{sbox2:_0x1a9850}=_0x475e9b,{T0:_0x54e2e9,T1:_0x36eb1a,T2:_0x5eb669,T3:_0x1c01be}=_0x15efc8;for(let _0x1394ca=0x0;_0x1394ca<_0x121a6b;_0x1394ca+=0x4)for(let _0x1ed687=0x0;_0x1ed687<0x4;_0x1ed687++)_0x5e9ef3[_0x1394ca+_0x1ed687]=_0x400897[_0x121a6b-_0x1394ca-0x4+_0x1ed687];_0x4fce4b(_0x400897);for(let _0x3abd69=0x4;_0x3abd69<_0x121a6b-0x4;_0x3abd69++){let _0x1d5b24=_0x5e9ef3[_0x3abd69],_0x471f9f=_0x234054(_0x1a9850,_0x1d5b24,_0x1d5b24,_0x1d5b24,_0x1d5b24);_0x5e9ef3[_0x3abd69]=_0x54e2e9[_0x471f9f&0xff]^_0x36eb1a[_0x471f9f>>>0x8&0xff]^_0x5eb669[_0x471f9f>>>0x10&0xff]^_0x1c01be[_0x471f9f>>>0x18];}return _0x5e9ef3;}function _0x3814a0(_0x56ad66,_0x464104,_0x3826c0,_0x3ad95a,_0x30278d,_0x11420d){return _0x56ad66[_0x3826c0<<0x8&0xff00|_0x3ad95a>>>0x8&0xff]^_0x464104[_0x30278d>>>0x8&0xff00|_0x11420d>>>0x18&0xff];}function _0x234054(_0x178334,_0x3714c6,_0x1db586,_0x27237a,_0x28ddbf){return _0x178334[_0x3714c6&0xff|_0x1db586&0xff00]|_0x178334[_0x27237a>>>0x10&0xff|_0x28ddbf>>>0x10&0xff00]<<0x10;}function _0x431705(_0x9a196e,_0x517c9f,_0x443821,_0x314296,_0x1bca62){const _0x30637c=_0x315216;let {sbox2:_0x5781d4,T01:_0x453818,T23:_0x53b47d}=_0x475e9b,_0x2b3da5=0x0;_0x517c9f^=_0x9a196e[_0x2b3da5++],_0x443821^=_0x9a196e[_0x2b3da5++],_0x314296^=_0x9a196e[_0x2b3da5++],_0x1bca62^=_0x9a196e[_0x2b3da5++];let _0x2e803d=_0x9a196e[_0x30637c(0x250)]/0x4-0x2;for(let _0x433f7e=0x0;_0x433f7e<_0x2e803d;_0x433f7e++){let _0x41f102=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x517c9f,_0x443821,_0x314296,_0x1bca62),_0x1e690e=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x443821,_0x314296,_0x1bca62,_0x517c9f),_0x444e97=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x314296,_0x1bca62,_0x517c9f,_0x443821),_0x4550be=_0x9a196e[_0x2b3da5++]^_0x3814a0(_0x453818,_0x53b47d,_0x1bca62,_0x517c9f,_0x443821,_0x314296);_0x517c9f=_0x41f102,_0x443821=_0x1e690e,_0x314296=_0x444e97,_0x1bca62=_0x4550be;}return{'s0':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x517c9f,_0x443821,_0x314296,_0x1bca62),'s1':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x443821,_0x314296,_0x1bca62,_0x517c9f),'s2':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x314296,_0x1bca62,_0x517c9f,_0x443821),'s3':_0x9a196e[_0x2b3da5++]^_0x234054(_0x5781d4,_0x1bca62,_0x517c9f,_0x443821,_0x314296)};}function _0x310254(_0x48c282,_0x457fe6,_0x179109,_0x435d95,_0x2368ef){const _0x2156b6=_0x315216;let {sbox2:_0x2fdc40,T01:_0x104988,T23:_0x2e07cf}=_0x15efc8,_0x498a3d=0x0;_0x457fe6^=_0x48c282[_0x498a3d++],_0x179109^=_0x48c282[_0x498a3d++],_0x435d95^=_0x48c282[_0x498a3d++],_0x2368ef^=_0x48c282[_0x498a3d++];let _0x15dd5b=_0x48c282[_0x2156b6(0x250)]/0x4-0x2;for(let _0x4466f1=0x0;_0x4466f1<_0x15dd5b;_0x4466f1++){let _0x3e3372=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x457fe6,_0x2368ef,_0x435d95,_0x179109),_0xab6926=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x179109,_0x457fe6,_0x2368ef,_0x435d95),_0xdab7e4=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x435d95,_0x179109,_0x457fe6,_0x2368ef),_0x5d1179=_0x48c282[_0x498a3d++]^_0x3814a0(_0x104988,_0x2e07cf,_0x2368ef,_0x435d95,_0x179109,_0x457fe6);_0x457fe6=_0x3e3372,_0x179109=_0xab6926,_0x435d95=_0xdab7e4,_0x2368ef=_0x5d1179;}return{'s0':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x457fe6,_0x2368ef,_0x435d95,_0x179109),'s1':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x179109,_0x457fe6,_0x2368ef,_0x435d95),'s2':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x435d95,_0x179109,_0x457fe6,_0x2368ef),'s3':_0x48c282[_0x498a3d++]^_0x234054(_0x2fdc40,_0x2368ef,_0x435d95,_0x179109,_0x457fe6)};}function _0x1c7ed6(_0x57ae1e,_0x2fdeba){const _0x26fd02=_0x315216;if(_0x19408d(_0x57ae1e),_0x57ae1e[_0x26fd02(0x250)]%0x10!=0x0)throw Error(_0x26fd02(0x356));_0x2fdeba!==void 0x0&&(_0x22c370(_0x57ae1e[_0x26fd02(0x250)],_0x2fdeba),_0x49ac1c(_0x57ae1e,_0x2fdeba));}function _0x5e4a48(_0x35cdb7,_0x5180e5,_0x42092b){const _0x324564=_0x315216;_0x19408d(_0x35cdb7);let _0xcd86b2=_0x35cdb7[_0x324564(0x250)],_0x3f7c5e=_0xcd86b2%0x10;if(!_0x5180e5&&_0x3f7c5e!==0x0)throw Error(_0x324564(0xbe));if(_0x5180e5){let _0x72d7d6=0x10-_0x3f7c5e;_0x72d7d6||=0x10,_0xcd86b2+=_0x72d7d6;}return _0x42092b!==void 0x0&&(_0x22c370(_0xcd86b2,_0x42092b),_0x49ac1c(_0x35cdb7,_0x42092b)),_0xcd86b2;}function _0x3e7174(_0x23e0c2,_0x378e23,_0x390362){_0x390362===void 0x0&&(_0x390362=new Uint8Array(_0x378e23)),(!_0x558a35||!_0x212fd2(_0x23e0c2))&&(_0x23e0c2=_0x70eb6a(_0x23e0c2));let _0x12b033=_0xda7b2(_0x390362);return{'b':_0x23e0c2,'o':_0x12b033,'out':_0x390362};}function _0x387d35(_0x2e2214,_0x2dd714){const _0x15d0c8=_0x315216;if(!_0x2dd714)return _0x2e2214;let _0x1646ab=_0x2e2214[_0x15d0c8(0x250)];if(_0x1646ab===0x0)throw Error(_0x15d0c8(0x1b0));let _0x1d573a=_0x2e2214[_0x1646ab-0x1],_0x46086c=0x1;_0x46086c&=_0x1d573a-0x1>>>0x1f^0x1,_0x46086c&=0x10-_0x1d573a>>>0x1f^0x1;for(let _0x400dfa=0x0;_0x400dfa<0x10;_0x400dfa++){let _0x3d4075=_0x400dfa-_0x1d573a>>>0x1f,_0x49a0d8=+((_0x2e2214[_0x1646ab-0x1-_0x400dfa]^_0x1d573a)===0x0);_0x46086c&=_0x49a0d8|_0x3d4075^0x1;}if(!_0x46086c)throw Error(_0x15d0c8(0x1e1));return _0x2e2214[_0x15d0c8(0x245)](0x0,_0x1646ab-_0x1d573a);}function _0x201441(_0x2367f6){const _0x274294=_0x315216;let _0xed50f=new Uint8Array(0x10),_0x444c7b=_0xda7b2(_0xed50f);_0xed50f[_0x274294(0x232)](_0x2367f6);let _0x433e84=0x10-_0x2367f6[_0x274294(0x250)];for(let _0x467f39=0x10-_0x433e84;_0x467f39<0x10;_0x467f39++)_0xed50f[_0x467f39]=_0x433e84;return _0x444c7b;}let _0x57f3f7=_0x293aa1({'blockSize':0x10,'nonceLength':0x10},function(_0x4a80d5,_0x168b04,_0x466aec={}){const _0x250446=_0x315216;let _0x30f50f=!_0x466aec[_0x250446(0x39c)];return{'encrypt'(_0x54a95a,_0x3f319e){const _0xcb64d=_0x250446;let _0x1caf31=_0x5e4a48(_0x54a95a,_0x30f50f,_0x3f319e),_0x13bdb3=_0x267767(_0x4a80d5),{b:_0x517598,o:_0xd55007,out:_0x37cc04}=_0x3e7174(_0x54a95a,_0x1caf31,_0x3f319e),_0xc33403=_0xda7b2(_0x517598);_0x430bce(_0xc33403);let _0x3d665d=_0x168b04,_0x22a61a=[_0x13bdb3];(!_0x558a35||!_0x212fd2(_0x3d665d))&&_0x22a61a['push'](_0x3d665d=_0x70eb6a(_0x3d665d));let _0x2d3de7=_0xda7b2(_0x3d665d);_0x430bce(_0x2d3de7);let _0x2fd527=_0x2d3de7[0x0],_0x37d638=_0x2d3de7[0x1],_0x30ba85=_0x2d3de7[0x2],_0x5162f7=_0x2d3de7[0x3],_0x2cf5d7=0x0;for(;_0x2cf5d7+0x4<=_0xc33403[_0xcb64d(0x250)];)_0x2fd527^=_0xc33403[_0x2cf5d7+0x0],_0x37d638^=_0xc33403[_0x2cf5d7+0x1],_0x30ba85^=_0xc33403[_0x2cf5d7+0x2],_0x5162f7^=_0xc33403[_0x2cf5d7+0x3],{s0:_0x2fd527,s1:_0x37d638,s2:_0x30ba85,s3:_0x5162f7}=_0x431705(_0x13bdb3,_0x2fd527,_0x37d638,_0x30ba85,_0x5162f7),_0xd55007[_0x2cf5d7++]=_0x2fd527,_0xd55007[_0x2cf5d7++]=_0x37d638,_0xd55007[_0x2cf5d7++]=_0x30ba85,_0xd55007[_0x2cf5d7++]=_0x5162f7;if(_0x30f50f){let _0x1aa192=_0x201441(_0x54a95a[_0xcb64d(0x245)](_0x2cf5d7*0x4));_0x430bce(_0x1aa192),_0x2fd527^=_0x1aa192[0x0],_0x37d638^=_0x1aa192[0x1],_0x30ba85^=_0x1aa192[0x2],_0x5162f7^=_0x1aa192[0x3],{s0:_0x2fd527,s1:_0x37d638,s2:_0x30ba85,s3:_0x5162f7}=_0x431705(_0x13bdb3,_0x2fd527,_0x37d638,_0x30ba85,_0x5162f7),_0xd55007[_0x2cf5d7++]=_0x2fd527,_0xd55007[_0x2cf5d7++]=_0x37d638,_0xd55007[_0x2cf5d7++]=_0x30ba85,_0xd55007[_0x2cf5d7++]=_0x5162f7,_0x4fce4b(_0x1aa192);}return _0x430bce(_0xd55007),_0x4fce4b(..._0x22a61a),_0x517598!==_0x54a95a&&_0x4fce4b(_0x517598),_0x37cc04;},'decrypt'(_0x41cc13,_0x14fd25){const _0x2fb131=_0x250446;_0x1c7ed6(_0x41cc13,_0x14fd25);let _0x439c5e=_0x14b8de(_0x4a80d5);_0x14fd25===void 0x0&&(_0x14fd25=new Uint8Array(_0x41cc13[_0x2fb131(0x250)]));let _0x2241f6=_0x168b04,_0x47ef26=[_0x439c5e];(!_0x558a35||!_0x212fd2(_0x2241f6))&&_0x47ef26[_0x2fb131(0x46e)](_0x2241f6=_0x70eb6a(_0x2241f6));let _0x5b45d3=_0xda7b2(_0x2241f6);_0x430bce(_0x5b45d3),(!_0x558a35||!_0x212fd2(_0x41cc13))&&_0x47ef26['push'](_0x41cc13=_0x70eb6a(_0x41cc13));let _0x46f23c=_0xda7b2(_0x41cc13),_0x35bfbe=_0xda7b2(_0x14fd25);_0x430bce(_0x46f23c);let _0x536e03=_0x5b45d3[0x0],_0x2b5a95=_0x5b45d3[0x1],_0x5edfbe=_0x5b45d3[0x2],_0x3eaa80=_0x5b45d3[0x3];for(let _0x5a37cf=0x0;_0x5a37cf+0x4<=_0x46f23c['length'];){let _0x50e760=_0x536e03,_0xcb7b8=_0x2b5a95,_0x5c7244=_0x5edfbe,_0x178c58=_0x3eaa80;_0x536e03=_0x46f23c[_0x5a37cf+0x0],_0x2b5a95=_0x46f23c[_0x5a37cf+0x1],_0x5edfbe=_0x46f23c[_0x5a37cf+0x2],_0x3eaa80=_0x46f23c[_0x5a37cf+0x3];let {s0:_0x48ff4c,s1:_0x247648,s2:_0x450596,s3:_0x4e084e}=_0x310254(_0x439c5e,_0x536e03,_0x2b5a95,_0x5edfbe,_0x3eaa80);_0x35bfbe[_0x5a37cf++]=_0x48ff4c^_0x50e760,_0x35bfbe[_0x5a37cf++]=_0x247648^_0xcb7b8,_0x35bfbe[_0x5a37cf++]=_0x450596^_0x5c7244,_0x35bfbe[_0x5a37cf++]=_0x4e084e^_0x178c58;}return _0x430bce(_0x35bfbe),_0x4fce4b(..._0x47ef26),_0x387d35(_0x14fd25,_0x30f50f);}};});function _0x326be3(_0x5e9421){const _0x3c501c=_0x315216;let _0x517c7c=atob(_0x5e9421),_0x60b1e7=new Uint8Array(_0x517c7c['length']);for(let _0xd937a8=0x0;_0xd937a8<_0x517c7c[_0x3c501c(0x250)];_0xd937a8++)_0x60b1e7[_0xd937a8]=_0x517c7c[_0x3c501c(0x3b7)](_0xd937a8);return _0x60b1e7;}function _0x207ea7(_0x374782){const _0x41fff6=_0x315216;let _0x4a58eb='';for(let _0x256282=0x0;_0x256282<_0x374782[_0x41fff6(0x250)];_0x256282++)_0x4a58eb+=String['fromCharCode'](_0x374782[_0x256282]);return btoa(_0x4a58eb);}function _0x5ab43a(_0x3a7db1,_0x11f357){const _0x3e8124=_0x315216;let _0xe3f842=_0x326be3(_0x11f357),_0x562d90=_0x59afa8(0x10);return _0x207ea7(_0x2dd4f9(_0x562d90,_0x57f3f7(_0xe3f842,_0x562d90)[_0x3e8124(0xce)](_0x4bf143(_0x3a7db1))));}function _0x4aaa18(){const _0x5f423c=_0x315216;let _0x229e04=(0x0,_0x35d7c3['getGlobalObject'])()[_0x5f423c(0x405)];if(typeof window<'u'&&window[_0x5f423c(0xcd)]!==void 0x0&&_0x229e04){let _0x216977={'time':Math[_0x5f423c(0x244)](Date['now']()/0x3e8),'domain':location[_0x5f423c(0x165)]};return _0x5ab43a(JSON[_0x5f423c(0x302)](_0x216977),_0x229e04);}}let _0x114505=class{constructor(_0x454377){const _0x500b66=_0x315216;this[_0x500b66(0xde)]=_0x454377,this[_0x500b66(0x36b)]();}['_initRequestHeader'](){const _0x3c879a=_0x315216;this[_0x3c879a(0xde)][_0x3c879a(0x1c1)]({'interceptor':(_0x4bb2a5,_0x31d8e8)=>{const _0x4ae850=_0x3c879a;let _0x4ed677=_0x4aaa18();return _0x4ed677&&_0x4bb2a5['headers'][_0x4ae850(0x232)](_0x4ae850(0xe2),_0x4ed677),_0x31d8e8(_0x4bb2a5);}});}};_0x114505=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)]))],_0x114505);let _0x4e5ab6=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x4303c0,_0x93d14c,_0x2f0426){const _0x33f2b8=_0x315216;super(),this['_logService']=_0x4303c0,this[_0x33f2b8(0x10f)]=_0x93d14c,this[_0x33f2b8(0x249)]=_0x2f0426,_0x4da1f9(this,_0x33f2b8(0x432),new _0x1fdbe2[(_0x33f2b8(0x1c7))](null)),_0x4da1f9(this,_0x33f2b8(0x2b9),new _0x1fdbe2['Subject']()),_0x4da1f9(this,'unitInfo$',this['_unitInfo$'][_0x33f2b8(0xf1)]()),_0x4da1f9(this,_0x33f2b8(0x23c),this[_0x33f2b8(0x2b9)][_0x33f2b8(0xf1)]());}[_0x315216(0x15a)](){const _0x1a379f=_0x315216;super[_0x1a379f(0x15a)](),this[_0x1a379f(0x2b9)][_0x1a379f(0x313)](),this[_0x1a379f(0x432)][_0x1a379f(0x313)]();}[_0x315216(0x2e6)](_0x3727bf,_0x4e6f19,_0x5ad3d0,_0x13ee13,_0x527897){return this['_loadUnit'](_0x3727bf,_0x4e6f19,_0x5ad3d0,_0x13ee13,_0x527897);}[_0x315216(0x1b7)](_0x1e8e1e,_0x218a35,_0x588ae9,_0x19ec81){return this['_loadUnit'](_0x1e8e1e,_0x218a35,void 0x0,_0x588ae9,_0x19ec81);}async[_0x315216(0x271)](_0x2ba25d,_0x3e2e1d,_0x50f923,_0x56664d,_0x374fcd){const _0x1609c2=_0x315216;this[_0x1609c2(0x432)][_0x1609c2(0x407)]({'unitId':_0x2ba25d,'type':_0x3e2e1d,'subUnitId':_0x56664d});let _0x18faeb=_0x50f923;if(_0x18faeb===void 0x0){var _0x20fc39;let _0xf20147=await((_0x20fc39=this[_0x1609c2(0x249)])==null?void 0x0:_0x20fc39[_0x1609c2(0x1ab)](_0x2ba25d));_0x18faeb=_0xf20147&&(_0xf20147[_0x1609c2(0x421)]||_0xf20147[_0x1609c2(0x383)]['length']!==0x0)?_0xf20147[_0x1609c2(0x13a)]:0x0,_0x18faeb===0x0&&this[_0x1609c2(0xb8)][_0x1609c2(0x3e5)](_0x1609c2(0x99),_0x1609c2(0x143));}return this[_0x1609c2(0x2ee)](_0x2ba25d,_0x3e2e1d,_0x18faeb,_0x56664d,_0x374fcd);}async[_0x315216(0x2ee)](_0x576db5,_0x57685c,_0x4e51ba,_0x13b830,_0x45b8d2){const _0x5eb528=_0x315216;let _0xe8fc10=null;switch(_0x57685c){case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x33b)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x1c2)](_0x576db5,_0x4e51ba,_0x45b8d2,{'initialSubUnitId':_0x13b830});break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x2a4)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x1f9)](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)]['UNIVER_SLIDE']:_0xe8fc10=await this[_0x5eb528(0x10f)]['loadSlide'](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x3a4)]:_0xe8fc10=await this[_0x5eb528(0x10f)]['loadBoard'](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28['UniverInstanceType'][_0x5eb528(0xc9)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x3f8)](_0x576db5,_0x4e51ba,_0x45b8d2);break;case _0x325f28[_0x5eb528(0x41f)][_0x5eb528(0x45f)]:_0xe8fc10=await this[_0x5eb528(0x10f)][_0x5eb528(0x43f)](_0x576db5,_0x4e51ba,_0x45b8d2);break;default:this[_0x5eb528(0xb8)]['error']('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0xe8fc10&&this[_0x5eb528(0x2b9)][_0x5eb528(0x407)](_0xe8fc10),_0xe8fc10;}};_0x4e5ab6=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x4524ba[_0x315216(0x2b0)])),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x2d4)])(_0x21eb59))],_0x4e5ab6);let _0x18c5f6=class{constructor(_0x55e397,_0x1fe691,_0x1284c1){const _0x5954cf=_0x315216;this[_0x5954cf(0xde)]=_0x55e397,this[_0x5954cf(0x1ed)]=_0x1fe691,this['_univerInstanceService']=_0x1284c1,_0x4da1f9(this,_0x5954cf(0x42d),0x0),_0x4da1f9(this,_0x5954cf(0x396),new _0x1fdbe2[(_0x5954cf(0x112))]()),_0x4da1f9(this,_0x5954cf(0x380),this[_0x5954cf(0x396)]),_0x4da1f9(this,_0x5954cf(0xa0),new Map());}[_0x315216(0xc4)](_0x21c8b3){const _0x56d17d=_0x315216;this[_0x56d17d(0x42d)]=_0x21c8b3,this[_0x56d17d(0x396)][_0x56d17d(0x407)](_0x21c8b3);}[_0x315216(0x1a5)](_0x544643,_0x4b404d){const _0x6afa51=_0x315216;if(_0x4b404d===_0x325f28[_0x6afa51(0x3f6)]['BASE64']){let _0x21a095=new Image();return _0x21a095['src']=_0x544643,_0x21a095;}return this['_imageSourceCache'][_0x6afa51(0x1df)](_0x544643);}[_0x315216(0x273)](_0x1c9f53,_0x24d543,_0x1951d8){const _0x36d33c=_0x315216;_0x24d543!==_0x325f28[_0x36d33c(0x3f6)][_0x36d33c(0x460)]&&_0x1951d8!=null&&this[_0x36d33c(0xa0)][_0x36d33c(0x232)](_0x1c9f53,_0x1951d8);}async[_0x315216(0x3a2)](_0x41a112){const _0x4f7280=_0x315216;try{let _0xedbcc8=this['_replaceFileID'](this['_getSignURL'](),''+_0x41a112),_0x21a222=(await this['_httpService'][_0x4f7280(0x1df)](_0xedbcc8))[_0x4f7280(0x3d5)];if(_0x21a222['error']&&_0x21a222['error'][_0x4f7280(0xdf)]===_0x483212[_0x4f7280(0x349)]['OK']){let _0x5789c8=(0x0,_0x325f28[_0x4f7280(0x1f1)])(_0x21a222['url'],this[_0x4f7280(0x298)]());return Promise['resolve'](_0x5789c8);}return Promise[_0x4f7280(0xf3)](_0x21a222[_0x4f7280(0xd6)]);}catch(_0x271b8f){return Promise[_0x4f7280(0xf3)](_0x271b8f);}}async[_0x315216(0x150)](_0x29f57d){const _0x39e911=_0x315216;let _0xc1978='';if(!_0x2115ce[_0x39e911(0xa2)][_0x39e911(0x3e1)](_0x29f57d[_0x39e911(0x438)]))return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)]['ERROR_IMAGE_TYPE']));if(_0x29f57d[_0x39e911(0x3e0)]>(0x0,_0x2115ce[_0x39e911(0x3fa)])())return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)]['ERROR_EXCEED_SIZE']));try{let _0x2f5eee=new FormData();_0x2f5eee[_0x39e911(0x2b1)](_0x39e911(0xe9),_0x29f57d);let _0x22ec9a=this[_0x39e911(0x23b)][_0x39e911(0x3ed)](),_0x2458c2=_0x22ec9a==null?void 0x0:_0x22ec9a['getUnitId']();if(!_0x2458c2)throw Error('unitId\x20is\x20not\x20found');let _0x1039e3=this['_getUploadFileURL']()+'?size='+_0x29f57d['size'][_0x39e911(0x3c8)]()+_0x39e911(0x136)+_0x483212[_0x39e911(0x2e8)]['UnitEmbedded']+_0x39e911(0x20f)+encodeURIComponent(_0x2458c2),_0x259620={'body':_0x2f5eee},_0x376efa=(await this['_httpService'][_0x39e911(0x178)](_0x1039e3,_0x259620))[_0x39e911(0x3d5)];if(typeof _0x376efa[_0x39e911(0x458)]!='string')return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)][_0x39e911(0xf8)]));_0xc1978=_0x376efa['FileId'];}catch{return this[_0x39e911(0x252)](),Promise[_0x39e911(0xf3)](Error(_0x325f28[_0x39e911(0xaa)][_0x39e911(0xf8)]));}return new Promise((_0x46b6fb,_0x3b70e4)=>{const _0x583c0d=_0x39e911;let _0x389a35=new FileReader();_0x389a35[_0x583c0d(0xaf)](_0x29f57d),_0x389a35[_0x583c0d(0x414)]=_0x4ab1ca=>{const _0x4de928=_0x583c0d;var _0x24e466;let _0x3bc4c2=(_0x24e466=_0x4ab1ca[_0x4de928(0x41c)])==null?void 0x0:_0x24e466[_0x4de928(0x123)];_0x3bc4c2==null?(this[_0x4de928(0x252)](),_0x3b70e4(Error(_0x325f28['ImageUploadStatusType']['ERROR_IMAGE']))):(_0x46b6fb({'imageId':(0x0,_0x325f28[_0x4de928(0x36d)])(0x6),'imageSourceType':_0x325f28[_0x4de928(0x3f6)][_0x4de928(0x439)],'source':_0xc1978,'base64Cache':_0x3bc4c2,'status':_0x325f28[_0x4de928(0xaa)]['SUCCUSS']}),this[_0x4de928(0x252)]());};});}['_getUploadFileURL'](){const _0x4344c5=_0x315216;let _0x5ec8ed=this[_0x4344c5(0x1ed)]['getConfig'](_0x3a344c);return(_0x5ec8ed==null?void 0x0:_0x5ec8ed[_0x4344c5(0x322)])??_0x4344c5(0x43a);}[_0x315216(0xed)](){const _0x3259f2=_0x315216;let _0x57ef78=this[_0x3259f2(0x1ed)][_0x3259f2(0x455)](_0x3a344c);return(_0x57ef78==null?void 0x0:_0x57ef78[_0x3259f2(0x18e)])??_0x3259f2(0x153);}[_0x315216(0x298)](){const _0x3f4a4c=_0x315216;let _0xe67c07=this[_0x3f4a4c(0x1ed)][_0x3f4a4c(0x455)](_0x3a344c);return(_0xe67c07==null?void 0x0:_0xe67c07[_0x3f4a4c(0x36a)])??location[_0x3f4a4c(0x2ad)];}[_0x315216(0x333)](_0x3abe38,_0x525c9f){const _0x169f8b=_0x315216;return _0x3abe38[_0x169f8b(0x3bd)]('{fileID}',_0x525c9f);}[_0x315216(0x252)](){const _0x36c38b=_0x315216;--this[_0x36c38b(0x42d)],this[_0x36c38b(0x396)][_0x36c38b(0x407)](this['_waitCount']);}};_0x18c5f6=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x18cba4['HTTPService'])),_0x557b04(0x1,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0xd2)]))],_0x18c5f6);let _0x37d84f=class{constructor(_0xe57ebe,_0x83f2b5){const _0x539372=_0x315216;this['_configService']=_0xe57ebe,this[_0x539372(0x255)]=_0x83f2b5;}[_0x315216(0x27a)](){const _0x1fecfc=_0x315216;let _0x2b7e76=this[_0x1fecfc(0x1ed)][_0x1fecfc(0x455)](_0x3a344c);return(_0x2b7e76==null?void 0x0:_0x2b7e76['authzUrl'])??_0x1fecfc(0xf9);}async[_0x315216(0x211)](_0x533235){const _0x59bbb5=_0x315216;let _0x37c235=this[_0x59bbb5(0x27a)]()+_0x59bbb5(0x339);return{'list':[{'title':_0x59bbb5(0x18a),'mentions':(await this[_0x59bbb5(0x255)][_0x59bbb5(0x1df)](_0x37c235,{'params':{'objectID':_0x533235['unitId'],'unitID':_0x533235[_0x59bbb5(0x352)]}}))[_0x59bbb5(0x3d5)][_0x59bbb5(0x390)][_0x59bbb5(0x403)](_0x109c82=>({'objectId':_0x109c82['id'],'name':_0x109c82[_0x59bbb5(0x2b5)][_0x59bbb5(0x163)],'metadata':{'icon':_0x109c82[_0x59bbb5(0x2b5)][_0x59bbb5(0x24c)]},'label':_0x109c82['subject'][_0x59bbb5(0x163)],'objectType':_0x325f28[_0x59bbb5(0x1ff)][_0x59bbb5(0x225)]})),'metadata':{},'type':_0x325f28[_0x59bbb5(0x1ff)][_0x59bbb5(0x225)]}]};}};_0x37d84f=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x1cf)])),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4['HTTPService']))],_0x37d84f);let _0x484143=class extends _0x325f28[_0x315216(0x10c)]{constructor(_0x1f55ec,_0x22da6c,_0x4b0095,_0x10ad71,_0x4a8574,_0x10fce4){const _0x49aa98=_0x315216;super(),this[_0x49aa98(0xe7)]=_0x1f55ec,this[_0x49aa98(0x23b)]=_0x22da6c,this['_permissionService']=_0x4b0095,this[_0x49aa98(0x21d)]=_0x10ad71,this[_0x49aa98(0x19b)]=_0x4a8574,this[_0x49aa98(0x190)]=_0x10fce4,_0x4da1f9(this,_0x49aa98(0x24a),new Set()),this[_0x49aa98(0x41e)](()=>this['_closedUnits'][_0x49aa98(0x14e)]()),this['disposeWithMe'](_0x3bc91a(this[_0x49aa98(0x23b)])[_0x49aa98(0x28f)](({unitId:_0x47feac})=>this[_0x49aa98(0x24a)]['delete'](_0x47feac))),this['_initUnitPermissionChange'](),this[_0x49aa98(0x22f)](),[_0x325f28['UniverInstanceType'][_0x49aa98(0x2a4)],_0x325f28[_0x49aa98(0x41f)][_0x49aa98(0x1c3)],_0x325f28[_0x49aa98(0x41f)][_0x49aa98(0xc9)],_0x325f28['UniverInstanceType'][_0x49aa98(0x3a4)]][_0x49aa98(0x216)](_0x5cc962=>{const _0x38a02d=_0x49aa98;this[_0x38a02d(0x41e)](this[_0x38a02d(0x23b)]['getTypeOfUnitDisposed$'](_0x5cc962)[_0x38a02d(0x28f)](_0x3eb010=>{const _0x55725a=_0x38a02d;this[_0x55725a(0x24a)][_0x55725a(0xd9)](_0x3eb010['getUnitId']()),this[_0x55725a(0xe7)][_0x55725a(0x1df)](_0x325f28[_0x55725a(0x2ab)])[_0x55725a(0x222)](_0x3eb010[_0x55725a(0x119)]());}));});}[_0x315216(0x22f)](){const _0x10510a=_0x315216;let _0x5390d4=async(_0x44612d,_0x1daa62)=>{const _0x4b90b1=_0x2c10;let _0x5f5781=await this[_0x4b90b1(0x19b)]['requireSession'](_0x44612d);this[_0x4b90b1(0x43c)]||this[_0x4b90b1(0x24a)][_0x4b90b1(0xd1)](_0x44612d)||!this[_0x4b90b1(0x23b)]['getUnit'](_0x44612d)||_0x5f5781[_0x4b90b1(0x376)]['pipe']((0x0,_0xa8b74d[_0x4b90b1(0x22a)])(_0x355652=>_0x355652[_0x4b90b1(0x32e)]===_0x4524ba[_0x4b90b1(0x1d7)][_0x4b90b1(0x15e)]),(0x0,_0xa8b74d[_0x4b90b1(0xf5)])((0x0,_0x1fdbe2[_0x4b90b1(0x3f7)])(this[_0x4b90b1(0x42a)],this[_0x4b90b1(0x23b)]['unitDisposed$'][_0x4b90b1(0xa4)]((0x0,_0xa8b74d[_0x4b90b1(0x22a)])(_0x2a681d=>_0x2a681d['getUnitId']()===_0x44612d)))))[_0x4b90b1(0x28f)](_0x17d367=>{const _0x209d26=_0x4b90b1;let {reason:_0x39c697}=_0x17d367['data'];this[_0x209d26(0x190)]['emitEvent']({'id':_0x209d26(0x1bd),'data':_0x39c697}),this[_0x209d26(0x24a)][_0x209d26(0xd9)](_0x44612d),this[_0x209d26(0xe7)]['get'](_0x325f28['ObjectPermissionService'])[_0x209d26(0x222)](_0x44612d);let _0x3ea7bf=_0x11f2de(_0x1daa62);_0x3ea7bf!=null&&this[_0x209d26(0x1a3)](_0x44612d,_0x3ea7bf,_0x483212[_0x209d26(0x2ca)][_0x209d26(0x297)],!0x1),this[_0x209d26(0x19b)][_0x209d26(0x316)](_0x44612d);});};_0x3bc91a(this[_0x10510a(0x23b)])[_0x10510a(0xa4)]((0x0,_0xa8b74d[_0x10510a(0x22a)])(({unitId:_0x481ecc})=>!(0x0,_0x325f28['isInternalEditorID'])(_0x481ecc)),(0x0,_0xa8b74d[_0x10510a(0xf5)])(this[_0x10510a(0x42a)]))['subscribe'](({type:_0x52b96c,unitId:_0x29c30c})=>{const _0x36232c=_0x10510a;_0x5390d4(_0x29c30c,_0x52b96c)[_0x36232c(0x195)](_0x441be5=>this[_0x36232c(0xe7)]['get'](_0x325f28[_0x36232c(0x25d)])[_0x36232c(0xd6)](_0x441be5));});}[_0x315216(0x166)](){const _0x56ac8d=_0x315216;let _0x488edd=async(_0xf960f9,_0x34f52a)=>{const _0x169a7b=_0x2c10;let _0x12d0f3=await this['_collaborationSessionService']['requireSession'](_0xf960f9);if(!(this['_disposed']||this[_0x169a7b(0x24a)][_0x169a7b(0xd1)](_0xf960f9)||!this[_0x169a7b(0x23b)][_0x169a7b(0x33c)](_0xf960f9))){if(_0x34f52a===_0x325f28[_0x169a7b(0x41f)][_0x169a7b(0x33b)]){let _0x2e9d3a=this['_injector'][_0x169a7b(0x1df)](_0x29d3a5[_0x169a7b(0x3f0)]);await _0x2e9d3a[_0x169a7b(0x12c)](_0xf960f9),_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x57836c=>_0x57836c[_0x169a7b(0x32e)]===_0x4524ba[_0x169a7b(0x1d7)][_0x169a7b(0x1ce)]),(0x0,_0xa8b74d['takeUntil'])((0x0,_0x1fdbe2['merge'])(this[_0x169a7b(0x42a)],_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d['filter'])(_0x950e92=>_0x950e92[_0x169a7b(0x32e)]===_0x4524ba[_0x169a7b(0x1d7)][_0x169a7b(0x15e)])),this[_0x169a7b(0x23b)][_0x169a7b(0x360)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x36c4db=>_0x36c4db[_0x169a7b(0x119)]()===_0xf960f9)))))['subscribe'](_0x1d6ff8=>{const _0x5b174c=_0x169a7b;let {objectId:_0x1d2dc2}=_0x1d6ff8[_0x5b174c(0x2a1)];_0x1d2dc2===_0xf960f9?_0x2e9d3a[_0x5b174c(0x12c)](_0xf960f9):_0x2e9d3a[_0x5b174c(0x450)](_0xf960f9,_0x1d2dc2);});}else _0x12d0f3[_0x169a7b(0x376)]['pipe']((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x40cfe4=>_0x40cfe4[_0x169a7b(0x32e)]===_0x4524ba['CollaborationEvent'][_0x169a7b(0x1ce)]),(0x0,_0xa8b74d[_0x169a7b(0xf5)])((0x0,_0x1fdbe2[_0x169a7b(0x3f7)])(this[_0x169a7b(0x42a)],_0x12d0f3[_0x169a7b(0x376)][_0x169a7b(0xa4)]((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x40cd2f=>_0x40cd2f[_0x169a7b(0x32e)]===_0x4524ba['CollaborationEvent'][_0x169a7b(0x15e)])),this['_univerInstanceService']['unitDisposed$']['pipe']((0x0,_0xa8b74d[_0x169a7b(0x22a)])(_0x50cdc8=>_0x50cdc8['getUnitId']()===_0xf960f9)))))['subscribe'](()=>{const _0x5b2d53=_0x169a7b;this[_0x5b2d53(0x2fc)](_0xf960f9,_0x34f52a)['catch'](_0x484847=>this[_0x5b2d53(0xe7)]['get'](_0x325f28[_0x5b2d53(0x25d)])[_0x5b2d53(0xd6)](_0x484847));}),await this['_refreshUnitPermission'](_0xf960f9,_0x34f52a);}};_0x3bc91a(this[_0x56ac8d(0x23b)])[_0x56ac8d(0xa4)]((0x0,_0xa8b74d[_0x56ac8d(0x22a)])(({unitId:_0x8c60ac})=>!(0x0,_0x325f28[_0x56ac8d(0x453)])(_0x8c60ac)),(0x0,_0xa8b74d['takeUntil'])(this[_0x56ac8d(0x42a)]))[_0x56ac8d(0x28f)](({type:_0x285ffb,unitId:_0x34239c})=>{const _0xac0cd4=_0x56ac8d;_0x488edd(_0x34239c,_0x285ffb)[_0xac0cd4(0x195)](_0x4147a5=>this[_0xac0cd4(0xe7)][_0xac0cd4(0x1df)](_0x325f28[_0xac0cd4(0x25d)])[_0xac0cd4(0xd6)](_0x4147a5));});}async['_refreshUnitPermission'](_0x2510ed,_0x110c60){const _0x4a77d7=_0x315216;let _0x2dee13=_0x11f2de(_0x110c60);if(_0x2dee13==null)return;let _0x175368=this[_0x4a77d7(0xe7)][_0x4a77d7(0x1df)](_0x325f28[_0x4a77d7(0x2ab)]);if(_0x175368[_0x4a77d7(0x36c)]({'unitId':_0x2510ed,'objectId':_0x2510ed,'objectType':_0x2dee13})){await _0x175368[_0x4a77d7(0x11d)](_0x2510ed);return;}let _0x3e2b43=this[_0x4a77d7(0xc8)](_0x2510ed,_0x2dee13);if(!_0x3e2b43['length'])return;let _0xba8e2=await this[_0x4a77d7(0x21d)]['allowed']({'objectID':_0x2510ed,'objectType':_0x2dee13,'unitID':_0x2510ed,'actions':_0x3e2b43[_0x4a77d7(0x403)](({action:_0x346bd9})=>_0x346bd9)});this[_0x4a77d7(0x43c)]||this[_0x4a77d7(0x24a)]['has'](_0x2510ed)||!this[_0x4a77d7(0x23b)]['getUnit'](_0x2510ed)||_0xba8e2['forEach'](_0x3762be=>{const _0x4c8297=_0x4a77d7;let _0x41dc31=_0x3762be['action'],_0x4bb933=_0x3762be['allowed'];_0x41dc31!=null&&_0x4bb933!=null&&_0x3e2b43[_0x4c8297(0x22a)](_0x3d9059=>_0x3d9059['action']===_0x41dc31)[_0x4c8297(0x216)](_0x3f8346=>this[_0x4c8297(0x1bf)][_0x4c8297(0x26c)](_0x3f8346['id'],_0x4bb933));});}[_0x315216(0xc8)](_0x2eabbf,_0x4662fb){const _0x34a274=_0x315216;let _0x4a6f90=[];return this[_0x34a274(0x1bf)][_0x34a274(0x393)]()['forEach']((_0x27ae55,_0x3116e6)=>{_0x27ae55['subscribe'](_0x16d7ce=>{const _0x42b6a3=_0x2c10;_0x16d7ce[_0x42b6a3(0x438)]===_0x4662fb&&_0x42b6a3(0x352)in _0x16d7ce&&_0x16d7ce[_0x42b6a3(0x352)]===_0x2eabbf&&(!('objectId'in _0x16d7ce)||_0x16d7ce[_0x42b6a3(0x338)]===_0x2eabbf)&&_0x4a6f90[_0x42b6a3(0x46e)]({'id':_0x3116e6,'action':_0x16d7ce['subType']});})['unsubscribe']();}),_0x4a6f90;}[_0x315216(0x1a3)](_0x35533a,_0x32b191,_0x2326a1,_0x21c91b){const _0x3448dd=_0x315216;this['_permissionService'][_0x3448dd(0x393)]()[_0x3448dd(0x216)]((_0x360026,_0x448439)=>{const _0x56dde2=_0x3448dd;let _0x321c08=!0x1;_0x360026[_0x56dde2(0x28f)](_0x2547ee=>{const _0x537cec=_0x56dde2;_0x321c08=_0x2547ee[_0x537cec(0x438)]===_0x32b191&&_0x2547ee[_0x537cec(0x35b)]===_0x2326a1&&_0x537cec(0x352)in _0x2547ee&&_0x2547ee['unitId']===_0x35533a&&(!(_0x537cec(0x338)in _0x2547ee)||_0x2547ee[_0x537cec(0x338)]===_0x35533a);})[_0x56dde2(0x223)](),_0x321c08&&this[_0x56dde2(0x1bf)]['updatePermissionPoint'](_0x448439,_0x21c91b);});}};_0x484143=_0x5af442([_0x557b04(0x0,(0x0,_0x325f28['Inject'])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x1,_0x325f28['IUniverInstanceService']),_0x557b04(0x2,_0x325f28[_0x315216(0x43e)]),_0x557b04(0x3,_0x325f28['IAuthzIoService']),_0x557b04(0x4,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x2c8ade)),_0x557b04(0x5,(0x0,_0x325f28['Inject'])(_0x11f58a))],_0x484143);function _0x3bc91a(_0x404b02){const _0x534ddf=_0x315216;return(0x0,_0x1fdbe2[_0x534ddf(0x3f7)])(...[_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x33b)],_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x2a4)],_0x325f28[_0x534ddf(0x41f)][_0x534ddf(0x1c3)],_0x325f28[_0x534ddf(0x41f)]['UNIVER_BOARD'],_0x325f28[_0x534ddf(0x41f)]['UNIVER_BASE']][_0x534ddf(0x403)](_0x465bf7=>_0x404b02[_0x534ddf(0x2cb)](_0x465bf7)['pipe']((0x0,_0xa8b74d[_0x534ddf(0x403)])(_0x562484=>({'type':_0x465bf7,'unitId':_0x562484['unit']['getUnitId']()})))));}function _0x11f2de(_0xbe9c7a){const _0x586250=_0x315216;switch(_0xbe9c7a){case _0x325f28['UniverInstanceType'][_0x586250(0x33b)]:return _0x483212[_0x586250(0x22c)][_0x586250(0x199)];case _0x325f28['UniverInstanceType']['UNIVER_DOC']:return _0x483212[_0x586250(0x22c)][_0x586250(0x2b4)];case _0x325f28[_0x586250(0x41f)]['UNIVER_SLIDE']:return _0x483212['UnitObject'][_0x586250(0x168)];case _0x325f28[_0x586250(0x41f)][_0x586250(0x3a4)]:return _0x483212[_0x586250(0x22c)][_0x586250(0x2ce)];case _0x325f28[_0x586250(0x41f)][_0x586250(0xc9)]:return _0x483212[_0x586250(0x22c)]['Base'];default:return;}}let _0x4241ec=class{constructor(_0x1d7511,_0x250a06){const _0x4cd673=_0x315216;this[_0x4cd673(0x1ed)]=_0x1d7511,this[_0x4cd673(0xde)]=_0x250a06;}async[_0x315216(0x268)](_0x4903a8,_0x1fd9d6){const _0x30b63c=_0x315216;var _0x5877d1;let {unitID:_0x49da11,type:_0x1c5211,revision:_0x458047=0x0}=_0x1fd9d6,_0xdd6f3a=this[_0x30b63c(0x32d)]()+'/'+_0x1c5211+_0x30b63c(0x172)+_0x49da11+_0x30b63c(0x3fd)+_0x458047,_0x7d3dcd=(await this['_httpService'][_0x30b63c(0x1df)](_0xdd6f3a))[_0x30b63c(0x3d5)],_0x3262dc=(_0x5877d1=_0x7d3dcd[_0x30b63c(0x2a0)])==null?void 0x0:_0x5877d1[_0x30b63c(0x3e9)];if(_0x3262dc){let _0x4c9d8b=_0x3262dc==null?void 0x0:_0x3262dc['originalMeta'];_0x3262dc[_0x30b63c(0x444)]=_0x4524ba[_0x30b63c(0x105)][_0x30b63c(0x476)]((0x0,_0x4524ba[_0x30b63c(0xfd)])(_0x4c9d8b)),Object['entries'](_0x3262dc['sheets'])[_0x30b63c(0x216)](([,_0x1de8f9])=>{const _0x3ef606=_0x30b63c;let _0x356688=_0x1de8f9[_0x3ef606(0x444)];_0x1de8f9['originalMeta']=_0x4524ba[_0x3ef606(0x105)]['encode']((0x0,_0x4524ba['b64DecodeUnicode'])(_0x356688));});}return _0x7d3dcd;}async[_0x315216(0x35d)](_0x9bdf55,_0x4b1a6c){const _0x1fa5bf=_0x315216;let {unitID:_0x39951b,type:_0x401af9,blockID:_0x2555a8}=_0x4b1a6c,_0x10da04=this[_0x1fa5bf(0x121)]()+'/'+_0x401af9+_0x1fa5bf(0x172)+_0x39951b+_0x1fa5bf(0x47a)+_0x2555a8;return(await this[_0x1fa5bf(0xde)]['get'](_0x10da04))[_0x1fa5bf(0x3d5)];}async[_0x315216(0x2b6)](_0xa0760a,_0x2a1986){const _0x22ebd4=_0x315216;let {unitID:_0x9d889f,type:_0x535850,blockID:_0x73b702}=_0x2a1986,_0xe59188=this[_0x22ebd4(0x121)]()+'/block/'+_0x535850+_0x22ebd4(0x172)+_0x9d889f+'/block/'+_0x73b702;return(await this[_0x22ebd4(0xde)][_0x22ebd4(0x1df)](_0xe59188))['body'];}async['fetchMissingChangesets'](_0x229401,_0xd91083){const _0x2fe11e=_0x315216;let {unitID:_0x3ff518,type:_0x421041,from:_0x488516,to:_0x7ae142}=_0xd91083,_0x4fdc4b=this[_0x2fe11e(0x121)]()+'/'+_0x421041+_0x2fe11e(0x172)+_0x3ff518+_0x2fe11e(0x37e)+_0x488516+_0x2fe11e(0x116)+_0x7ae142;return(await this['_httpService'][_0x2fe11e(0x1df)](_0x4fdc4b))[_0x2fe11e(0x3d5)];}['getSnapshotAPIPath'](){const _0x379aaa=_0x315216;return this[_0x379aaa(0x1ed)][_0x379aaa(0x455)](_0x379aaa(0x31c))??this[_0x379aaa(0x121)]();}[_0x315216(0x121)](){const _0x160af0=_0x315216;let _0x3d9ff4=this[_0x160af0(0x1ed)]['getConfig'](_0x3a344c);return(_0x3d9ff4==null?void 0x0:_0x3d9ff4[_0x160af0(0x282)])??_0x160af0(0xe6);}async[_0x315216(0x263)](_0x1ceeff,_0x5d9a6f){const _0x5a5647=_0x315216;let _0x3b5bad=_0x5a5647(0xba)+_0x5d9a6f[_0x5a5647(0x438)]+'/unit/'+_0x5d9a6f[_0x5a5647(0x154)]+'/resources';return(await this[_0x5a5647(0xde)][_0x5a5647(0x1df)](_0x3b5bad,{'params':{'resourceId':JSON[_0x5a5647(0x302)](_0x5d9a6f[_0x5a5647(0xac)])}}))[_0x5a5647(0x3d5)];}[_0x315216(0x285)](){const _0x48af49=_0x315216;throw Error(_0x48af49(0x210));}['updateSnapshot'](){const _0x5bc758=_0x315216;throw Error(_0x5bc758(0x210));}[_0x315216(0x37b)](){const _0x18aa18=_0x315216;throw Error(_0x18aa18(0x210));}['saveChangeset'](){const _0x1ae383=_0x315216;throw Error(_0x1ae383(0x210));}['copyFileMeta'](){const _0x565db7=_0x315216;throw Error(_0x565db7(0x210));}[_0x315216(0x135)](){const _0xc24761=_0x315216;throw Error(_0xc24761(0x210));}};_0x4241ec=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x1,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x18cba4[_0x315216(0x149)]))],_0x4241ec);let _0x19d53d=class extends _0x325f28[_0x315216(0x377)]{constructor(_0x52de08,_0x52f72a,_0x185e26,_0x3c7b57,_0x15d3c5,_0xc937a2){const _0x63f06a=_0x315216;super(_0x52de08,_0x52f72a,_0x185e26,_0x3c7b57),this['_transformService']=_0x15d3c5,this[_0x63f06a(0xb8)]=_0xc937a2;}[_0x315216(0x474)](_0x577a7e,_0x398e11){const _0x3410e8=_0x315216;let _0x27570f=this[_0x3410e8(0x12a)](_0x577a7e);if(_0x27570f)try{let _0x189186=this[_0x3410e8(0x13b)](_0x27570f,_0x398e11);this[_0x3410e8(0x1de)](_0x577a7e,_0x189186);}catch(_0x3aa08e){this[_0x3410e8(0xb8)][_0x3410e8(0xd6)](_0x3410e8(0x20d),_0x3aa08e),this[_0x3410e8(0x20a)](_0x577a7e);}let _0x2dabe1=this[_0x3410e8(0x2a6)](_0x577a7e);if(_0x2dabe1)try{let _0x41a0b7=this[_0x3410e8(0x13b)](_0x2dabe1,_0x398e11,!0x0);this[_0x3410e8(0x3d1)](_0x577a7e,_0x41a0b7);}catch(_0x21e4c6){this['_logService'][_0x3410e8(0xd6)](_0x21e4c6),this['_clearRedo'](_0x577a7e);}}[_0x315216(0x20a)](_0xb9afdf){const _0x585aef=_0x315216;let _0x23615d=this[_0x585aef(0x12a)](_0xb9afdf);_0x23615d&&(_0x23615d[_0x585aef(0x250)]=0x0,this[_0x585aef(0x3d7)]());}['_clearRedo'](_0xe6c817){const _0x31f6f9=_0x315216;let _0x150d3a=this[_0x31f6f9(0x2a6)](_0xe6c817);_0x150d3a&&(_0x150d3a[_0x31f6f9(0x250)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x3a3081,_0xa5575a){const _0x2d0400=_0x315216;this['_undoStacks'][_0x2d0400(0x232)](_0x3a3081,_0xa5575a),this['_updateStatus']();}['_substituteRedoStack'](_0x5ef62f,_0xbdb3d8){const _0x4c3eb1=_0x315216;this[_0x4c3eb1(0x3f9)]['set'](_0x5ef62f,_0xbdb3d8),this['_updateStatus']();}[_0x315216(0x13b)](_0x5a7c77,_0x568ef1,_0x52a439=!0x1){const _0x588334=_0x315216;if(!_0x5a7c77[_0x588334(0x250)])return[];let _0x42d216=[],_0x551a94=_0x568ef1,_0x185242=_0x568ef1[_0x588334(0x438)]===_0x325f28[_0x588334(0x41f)][_0x588334(0x2a4)]?this[_0x588334(0x23b)][_0x588334(0x33c)](_0x568ef1[_0x588334(0x154)],_0x325f28[_0x588334(0x41f)][_0x588334(0x2a4)]):null,_0x360ffd=_0x185242?{'id':_0x185242['getUnitId'](),'documentStyle':{},'tableSource':_0x325f28[_0x588334(0x261)][_0x588334(0x209)](_0x185242[_0x588334(0x305)]()[_0x588334(0x426)]??{})}:null;for(let _0x425dfe=_0x5a7c77[_0x588334(0x250)]-0x1;_0x425dfe>=0x0;_0x425dfe--){let {unitID:_0x120c2f,undoMutations:_0x1d68a3,redoMutations:_0x30d75b}=_0x5a7c77[_0x425dfe],_0x513e74=_0x52a439?_0x30d75b:_0x1d68a3,_0x53ba7d=this[_0x588334(0x101)](_0x551a94,_0x513e74);if((0x0,_0x4524ba[_0x588334(0x483)])(_0x53ba7d)){this['_logService'][_0x588334(0xd6)](_0x588334(0x20d),_0x588334(0x1f7),_0x53ba7d);break;}let _0x12f450=_0x52a439?_0x1d68a3:_0x30d75b,_0x4c8985=this[_0x588334(0x101)](_0x53ba7d[_0x588334(0x167)],_0x12f450);if((0x0,_0x4524ba['isTransformMutationsWithChangesetFailure'])(_0x4c8985)){this[_0x588334(0xb8)]['error'](_0x588334(0x20d),_0x588334(0x1f7),_0x4c8985);break;}let _0x56590b=_0x52a439?_0x4c8985:_0x53ba7d,_0x264e46=_0x52a439?_0x53ba7d:_0x4c8985;_0x551a94=_0x53ba7d[_0x588334(0x167)],_0x360ffd&&=this[_0x588334(0x13d)](_0x360ffd,_0x53ba7d['m2Prime'],_0x4c8985[_0x588334(0xb7)]),_0x42d216[_0x588334(0x46e)]({'unitID':_0x120c2f,'undoMutations':_0x56590b[_0x588334(0xb7)],'redoMutations':_0x264e46[_0x588334(0xb7)]});}return _0x42d216[_0x588334(0x29d)]();}[_0x315216(0x101)](_0xbca9fb,_0x4bd7e5){const _0x496cc4=_0x315216;if(_0xbca9fb['type']!==_0x325f28[_0x496cc4(0x41f)]['UNIVER_DOC']||_0x4bd7e5[_0x496cc4(0x142)](_0x2f4708=>_0x2f4708['id']!==_0x285e73[_0x496cc4(0x1fb)]['id']))return this[_0x496cc4(0x466)][_0x496cc4(0x425)](_0xbca9fb,_0x4bd7e5);let _0x3a993b=_0x325f28['Tools'][_0x496cc4(0x209)](_0x4bd7e5),_0x4d1a14=[];for(let _0x59b172 of _0xbca9fb[_0x496cc4(0x383)]){let _0x4eacf1={..._0xbca9fb,'mutations':[_0x59b172]},_0x22bc75=[];for(let _0x32251a of _0x3a993b){_0x4eacf1=this[_0x496cc4(0x410)](_0x4eacf1,[_0x32251a]);let _0x2eef6c=this['_transformService'][_0x496cc4(0x425)](_0x4eacf1,[_0x32251a]);if((0x0,_0x4524ba[_0x496cc4(0x483)])(_0x2eef6c))return _0x2eef6c;_0x4eacf1=_0x2eef6c['c1Prime'],_0x22bc75[_0x496cc4(0x46e)](..._0x2eef6c[_0x496cc4(0xb7)]);}_0x3a993b=_0x22bc75,_0x4d1a14['push'](..._0x4eacf1[_0x496cc4(0x383)]);}return{'m2Prime':_0x3a993b,'c1Prime':{..._0xbca9fb,'mutations':_0x4d1a14}};}[_0x315216(0x410)](_0x20e058,_0x44ce9c){const _0xb5c1af=_0x315216;let _0x111b7b=new Map(),_0x2eb194=_0x325f28[_0xb5c1af(0x2a3)][_0xb5c1af(0x438)][_0xb5c1af(0x3ec)](_0x44ce9c[0x0][_0xb5c1af(0x296)][_0xb5c1af(0x3ab)]);if(_0x2eb194[_0xb5c1af(0x27c)](null,_0x156476=>{const _0x2db689=_0xb5c1af;if(_0x156476['et']!=='text-x')return;let _0x4d57ab=JSON['stringify'](_0x2eb194[_0x2db689(0x41b)]()),_0x3cd735=_0x111b7b[_0x2db689(0x1df)](_0x4d57ab)??new Map(),_0x4a684=0x0;for(let _0x16ed92 of _0x156476['e']){if(_0x16ed92['t']===_0x325f28[_0x2db689(0x1d9)][_0x2db689(0x1a1)]){var _0x411a22;for(let _0x2cf02c of((_0x411a22=_0x16ed92[_0x2db689(0x3d5)])==null?void 0x0:_0x411a22['paragraphs'])??[])_0x3cd735['set'](_0x4a684+_0x2cf02c[_0x2db689(0x1b2)],{'paragraph':_0x2cf02c,'replace':_0x16ed92[_0x2db689(0x477)]===_0x325f28['UpdateDocsAttributeType'][_0x2db689(0x25e)]});}_0x16ed92['t']!==_0x325f28[_0x2db689(0x1d9)][_0x2db689(0x157)]&&(_0x4a684+=_0x16ed92[_0x2db689(0x19e)]);}_0x3cd735['size']>0x0&&_0x111b7b[_0x2db689(0x232)](_0x4d57ab,_0x3cd735);}),_0x111b7b['size']===0x0)return _0x20e058;let _0x76688e=_0x325f28[_0xb5c1af(0x261)][_0xb5c1af(0x209)](_0x20e058);for(let _0x4704c7 of _0x76688e[_0xb5c1af(0x383)]){if(_0x4704c7['id']!==_0x285e73[_0xb5c1af(0x1fb)]['id'])continue;let _0x30b355=_0x325f28[_0xb5c1af(0x2a3)][_0xb5c1af(0x438)][_0xb5c1af(0x3ec)](_0x4704c7[_0xb5c1af(0x296)][_0xb5c1af(0x3ab)]);_0x30b355['traverse'](null,_0x1b0884=>{const _0x560bef=_0xb5c1af;if(_0x1b0884['et']!==_0x560bef(0x300))return;let _0x4919a4=JSON[_0x560bef(0x302)](_0x30b355[_0x560bef(0x41b)]()),_0x89b4c0=_0x111b7b[_0x560bef(0x1df)](_0x4919a4);if(!(_0x89b4c0!=null&&_0x89b4c0[_0x560bef(0x3e0)]))return;let _0x29316a=0x0;for(let _0x4813e6 of _0x1b0884['e']){if(_0x4813e6['t']===_0x325f28[_0x560bef(0x1d9)]['RETAIN']&&_0x4813e6[_0x560bef(0x477)]===_0x325f28[_0x560bef(0xd7)][_0x560bef(0x25e)]){var _0x258535;for(let _0x1eb2bb of((_0x258535=_0x4813e6[_0x560bef(0x3d5)])==null?void 0x0:_0x258535['paragraphs'])??[]){var _0x517210;let _0x3223b9=(_0x517210=_0x4813e6[_0x560bef(0x3ff)])==null||(_0x517210=_0x517210[_0x560bef(0xad)])==null?void 0x0:_0x517210[_0x560bef(0x3df)](_0x30ed2b=>_0x30ed2b[_0x560bef(0x1b2)]===_0x1eb2bb[_0x560bef(0x1b2)]),_0x1f4f10=_0x89b4c0['get'](_0x29316a+_0x1eb2bb['startIndex']);if(_0x3223b9&&_0x1f4f10){this[_0x560bef(0x381)](_0x1eb2bb,_0x3223b9,_0x1f4f10['paragraph'],_0x1f4f10[_0x560bef(0x3bd)]);let _0x13163e=_0x1f4f10['replace']?new Set([...Object[_0x560bef(0x346)](_0x1f4f10['paragraph']),...Object[_0x560bef(0x346)](_0x1eb2bb)]):Object[_0x560bef(0x346)](_0x1f4f10[_0x560bef(0x233)]);for(let _0x41a292 of _0x13163e){if(_0x41a292==='startIndex'||_0x41a292===_0x560bef(0x197))continue;let _0x24e27c=Reflect[_0x560bef(0x1df)](_0x1eb2bb,_0x41a292);_0x24e27c===void 0x0?Reflect[_0x560bef(0x1ae)](_0x1f4f10[_0x560bef(0x233)],_0x41a292):Reflect[_0x560bef(0x232)](_0x1f4f10['paragraph'],_0x41a292,_0x325f28[_0x560bef(0x261)][_0x560bef(0x209)](_0x24e27c));}}}}_0x4813e6['t']!==_0x325f28['TextXActionType'][_0x560bef(0x157)]&&(_0x29316a+=_0x4813e6[_0x560bef(0x19e)]);}});}return _0x76688e;}[_0x315216(0x381)](_0x3094ea,_0x5574bd,_0x275d8c,_0x2e5542){const _0x5c4188=_0x315216;let _0x478977=new Set([...Object[_0x5c4188(0x346)](_0x3094ea),...Object['keys'](_0x5574bd),...Object['keys'](_0x275d8c)]);for(let _0x54d1f6 of _0x478977){if(_0x54d1f6==='startIndex'||_0x54d1f6===_0x5c4188(0x197))continue;let _0x26020d=Reflect['get'](_0x3094ea,_0x54d1f6),_0x4b293a=Reflect[_0x5c4188(0x1df)](_0x5574bd,_0x54d1f6),_0xfb3ba4=Reflect[_0x5c4188(0x1df)](_0x275d8c,_0x54d1f6);if(_0x2e5542||_0xfb3ba4!==void 0x0){if(_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xe3)](_0x26020d,_0x4b293a))_0xfb3ba4===void 0x0?(Reflect['deleteProperty'](_0x3094ea,_0x54d1f6),Reflect[_0x5c4188(0x1ae)](_0x5574bd,_0x54d1f6)):(Reflect[_0x5c4188(0x232)](_0x3094ea,_0x54d1f6,_0x325f28[_0x5c4188(0x261)][_0x5c4188(0x209)](_0xfb3ba4)),Reflect['set'](_0x5574bd,_0x54d1f6,_0x325f28[_0x5c4188(0x261)]['deepClone'](_0xfb3ba4)));else{if(_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xcc)](_0x26020d)&&(_0x325f28[_0x5c4188(0x261)]['isObject'](_0x4b293a)||_0x4b293a===void 0x0)){let _0x46517f=_0x4b293a??{};this['_rebaseUnchangedAttributes'](_0x26020d,_0x46517f,_0x325f28[_0x5c4188(0x261)][_0x5c4188(0xcc)](_0xfb3ba4)?_0xfb3ba4:{},_0x2e5542),(_0x4b293a!==void 0x0||Object[_0x5c4188(0x346)](_0x46517f)['length']>0x0)&&Reflect[_0x5c4188(0x232)](_0x5574bd,_0x54d1f6,_0x46517f);}}}}}[_0x315216(0x13d)](_0x1d9d9c,_0x424b30,_0x9505c3){const _0x5c9754=_0x315216;if(_0x424b30[_0x5c9754(0x250)]!==0x1||_0x9505c3[_0x5c9754(0x250)]!==0x1||_0x424b30[0x0]['id']!==_0x285e73['RichTextEditingMutation']['id']||_0x9505c3[0x0]['id']!==_0x285e73[_0x5c9754(0x1fb)]['id'])return _0x1d9d9c;let _0x23299a=_0x424b30[0x0][_0x5c9754(0x296)],_0x3efe09=_0x9505c3[0x0][_0x5c9754(0x296)],_0x2b3f86=this['_filterTableActions'](_0x23299a['actions'],!0x0);return _0x325f28['JSONX']['isNoop'](_0x2b3f86)?_0x1d9d9c:(_0x3efe09[_0x5c9754(0x3ab)]=_0x325f28[_0x5c9754(0x226)]['compose'](this[_0x5c9754(0x395)](_0x3efe09[_0x5c9754(0x3ab)],!0x1),_0x325f28[_0x5c9754(0x226)][_0x5c9754(0x11f)](_0x2b3f86,_0x1d9d9c)),_0x325f28[_0x5c9754(0x226)][_0x5c9754(0x2dc)](_0x1d9d9c,_0x2b3f86)??_0x1d9d9c);}[_0x315216(0x395)](_0x188f73,_0x43a4f0){const _0x3ad3cc=_0x315216;let _0x31f211=_0x325f28[_0x3ad3cc(0x2a3)][_0x3ad3cc(0x438)][_0x3ad3cc(0x3ec)](_0x188f73),_0x317340=_0x325f28[_0x3ad3cc(0x2a3)][_0x3ad3cc(0x438)]['writeCursor']();return _0x31f211[_0x3ad3cc(0x27c)](null,_0x5a6073=>{const _0x1ad447=_0x3ad3cc;let _0x24c96e=_0x31f211[_0x1ad447(0x41b)]();if(_0x24c96e[0x0]===_0x1ad447(0x426)===_0x43a4f0){for(let _0xa298f3 of Object[_0x1ad447(0x346)](_0x5a6073))_0x317340['writeAtPath'](_0x24c96e,_0xa298f3,_0x5a6073[_0xa298f3]);}}),_0x317340[_0x3ad3cc(0x1df)]();}};_0x19d53d=_0x5af442([_0x557b04(0x0,_0x325f28[_0x315216(0xd2)]),_0x557b04(0x1,_0x325f28['ICommandService']),_0x557b04(0x2,_0x325f28[_0x315216(0x1fe)]),_0x557b04(0x3,_0x325f28[_0x315216(0x1cf)]),_0x557b04(0x4,_0x4524ba[_0x315216(0x44c)]),_0x557b04(0x5,_0x325f28[_0x315216(0x25d)])],_0x19d53d);let _0x2e8fa6=class extends _0x325f28[_0x315216(0x15c)]{constructor(_0x5a09ae=_0x1e0f56,_0x2cf8d2,_0x5eb0cc,_0xd44c81){const _0xfe90b3=_0x315216;super(),this['_config']=_0x5a09ae,this['_logService']=_0x2cf8d2,this[_0xfe90b3(0xe7)]=_0x5eb0cc,this[_0xfe90b3(0x1ed)]=_0xd44c81;let {..._0x4c70e7}=(0x0,_0x325f28[_0xfe90b3(0x3f7)])({},_0x1e0f56,this['_config']);if(!_0x4c70e7[_0xfe90b3(0x192)])throw Error(_0xfe90b3(0x42c));this[_0xfe90b3(0x1ad)]=_0x4c70e7,this[_0xfe90b3(0x1ed)][_0xfe90b3(0x334)](_0x3a344c,_0x4c70e7);}[_0x315216(0xb5)](){const _0x2054ae=_0x315216;this[_0x2054ae(0x1ed)][_0x2054ae(0x334)](_0x325f28[_0x2054ae(0x463)],this[_0x2054ae(0x1ad)][_0x2054ae(0x3cd)]??[]),this[_0x2054ae(0x3bc)](),this[_0x2054ae(0x181)]();}[_0x315216(0x3bc)](){const _0x1e1beb=_0x315216;var _0x2965be,_0xbcfb26;this[_0x1e1beb(0xe7)][_0x1e1beb(0xd1)](_0x325f28['IUndoRedoService'])&&this[_0x1e1beb(0xb8)][_0x1e1beb(0xd6)]('[UniverCollaborationClientPlugin]',_0x1e1beb(0xd3));let _0x3821a4=(0x0,_0x325f28[_0x1e1beb(0x351)])([[_0x325f28[_0x1e1beb(0x3e6)],{'useClass':_0x19d53d}],[_0xe6d4d9,{'useValue':_0x1b6d59()}],[_0x2c8ade],[_0x26f228],[_0x5d0dca],[_0x5ef8ed],[_0x114505],[_0x3313da],[_0x484143],[_0x11f58a],[_0x4e5ab6],[_0x84bd5,{'useClass':this[_0x1e1beb(0x1ad)][_0x1e1beb(0x192)]}],[_0x4524ba[_0x1e1beb(0x289)],{'useClass':_0x4241ec}],[_0x325f28[_0x1e1beb(0x1dc)],{'useClass':_0x26c5f0}],[_0x325f28[_0x1e1beb(0x372)],{'useClass':_0x18c5f6}],[_0x3a6c7e,{'useClass':_0x3c9a1b}],[_0x325f28[_0x1e1beb(0x17f)],{'useClass':_0x37d84f}],[_0x4b66f1],[_0x473a89]],(_0x2965be=this[_0x1e1beb(0x1ad)])==null?void 0x0:_0x2965be[_0x1e1beb(0x3c0)]);if(!((_0xbcfb26=this[_0x1e1beb(0x1ad)])!=null&&_0xbcfb26['enableSingleActiveInstanceLock'])){let _0x476451=_0x3821a4[_0x1e1beb(0x1aa)](([_0x530972])=>_0x530972===_0x556ae0);_0x476451!==-0x1&&_0x3821a4['splice'](_0x476451,0x1);}(0x0,_0x325f28[_0x1e1beb(0x446)])(this['_injector'],_0x3821a4);}[_0x315216(0x181)](){const _0xe83d98=_0x315216;var _0x43e231,_0x4eb3a6;if(this[_0xe83d98(0xe7)]['get'](_0x18cba4['HTTPService'])[_0xe83d98(0x1c1)]({'priority':0x14,'interceptor':(0x0,_0x18cba4['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x43e231=this[_0xe83d98(0x1ad)])!=null&&_0x43e231[_0xe83d98(0x1a4)])){var _0x22097f;(_0x22097f=this['_injector'][_0xe83d98(0x1df)](_0x21eb59,_0x325f28['Quantity'][_0xe83d98(0x3f1)]))==null||_0x22097f[_0xe83d98(0x417)]();}(_0x4eb3a6=this[_0xe83d98(0x1ad)])!=null&&_0x4eb3a6[_0xe83d98(0x437)]&&(0x0,_0x325f28[_0xe83d98(0x1bb)])(this[_0xe83d98(0xe7)],[[_0x5ef8ed]]),(0x0,_0x325f28[_0xe83d98(0x1bb)])(this[_0xe83d98(0xe7)],[[_0x114505],[_0x4b66f1],[_0x484143]]);}};_0x4da1f9(_0x2e8fa6,_0x315216(0x183),_0x315216(0x2ff)),_0x4da1f9(_0x2e8fa6,_0x315216(0x38b),_0x5268b1),_0x4da1f9(_0x2e8fa6,'version',_0xc74a63),_0x2e8fa6=_0x5af442([(0x0,_0x325f28[_0x315216(0x470)])(_0x35d7c3[_0x315216(0x2d9)],_0x18cba4[_0x315216(0x3f3)],_0x4524ba[_0x315216(0x33a)]),_0x557b04(0x1,_0x325f28[_0x315216(0x25d)]),_0x557b04(0x2,(0x0,_0x325f28[_0x315216(0x1a2)])(_0x325f28[_0x315216(0x435)])),_0x557b04(0x3,_0x325f28[_0x315216(0x1cf)])],_0x2e8fa6),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x39f),{'enumerable':!0x0,'get':function(){return _0x26c5f0;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x1e7),{'enumerable':!0x0,'get':function(){return _0x299420;}}),Object['defineProperty'](_0x23db49,_0x315216(0xb3),{'enumerable':!0x0,'get':function(){return _0x432f81;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2be),{'enumerable':!0x0,'get':function(){return _0x2033f7;}}),Object['defineProperty'](_0x23db49,_0x315216(0x481),{'enumerable':!0x0,'get':function(){return _0x4df8c8;}}),_0x23db49[_0x315216(0x9d)]=_0x3a344c,_0x23db49['ChangesetSubmitter']=_0x18c848,Object[_0x315216(0xb2)](_0x23db49,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return _0x3c9a1b;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x363),{'enumerable':!0x0,'get':function(){return _0x4b66f1;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x21f),{'enumerable':!0x0,'get':function(){return _0x1683e1;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x21c),{'enumerable':!0x0,'get':function(){return _0x18c5f6;}}),Object['defineProperty'](_0x23db49,'CollaborationSession',{'enumerable':!0x0,'get':function(){return _0x7f99f9;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x3af),{'enumerable':!0x0,'get':function(){return _0x2c8ade;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x251),{'enumerable':!0x0,'get':function(){return _0x121d26;}}),_0x23db49[_0x315216(0x32b)]=_0x133dfa,_0x23db49[_0x315216(0x184)]=_0x4c99b2,_0x23db49[_0x315216(0x10b)]=_0x11f58a,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x11a),{'enumerable':!0x0,'get':function(){return _0x19d53d;}}),_0x23db49[_0x315216(0x215)]=_0x3313da,Object['defineProperty'](_0x23db49,_0x315216(0x1e0),{'enumerable':!0x0,'get':function(){return _0x3a7d93;}}),_0x23db49[_0x315216(0x177)]=0x4e20,_0x23db49['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x315216(0x38a),_0x23db49[_0x315216(0x16e)]=_0x315216(0x12f),_0x23db49[_0x315216(0x20b)]=_0x315216(0x33f),Object[_0x315216(0xb2)](_0x23db49,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x4e5ab6;}}),Object['defineProperty'](_0x23db49,_0x315216(0x220),{'enumerable':!0x0,'get':function(){return _0x464598;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2cf),{'enumerable':!0x0,'get':function(){return _0x157fa1;}}),_0x23db49[_0x315216(0xc5)]=_0x315216(0x388),_0x23db49[_0x315216(0x270)]=_0x315216(0x113),_0x23db49[_0x315216(0x1b5)]=_0x3a6c7e,_0x23db49['ICollaborationClientAdapterService']=_0xe6d4d9,_0x23db49[_0x315216(0x389)]=_0x84bd5,_0x23db49[_0x315216(0x1b1)]=_0x21eb59,_0x23db49[_0x315216(0x2b7)]=_0x2665e4,_0x23db49[_0x315216(0x110)]=_0x556ae0,_0x23db49[_0x315216(0x2d5)]=0x3e8,_0x23db49[_0x315216(0x2f0)]=_0x315216(0x2d5),_0x23db49[_0x315216(0x3ef)]=0x1d4c0,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x311),{'enumerable':!0x0,'get':function(){return _0x26f228;}}),Object[_0x315216(0xb2)](_0x23db49,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x37d84f;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x2c8),{'enumerable':!0x0,'get':function(){return _0x224cab;}}),Object['defineProperty'](_0x23db49,_0x315216(0x2af),{'enumerable':!0x0,'get':function(){return _0x1e25ce;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x16d),{'enumerable':!0x0,'get':function(){return _0x2f13d7;}}),_0x23db49[_0x315216(0x37f)]=_0x315216(0x221),_0x23db49[_0x315216(0xb4)]=_0x315216(0x2c7),_0x23db49[_0x315216(0x33d)]=_0x50a43f,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x332),{'enumerable':!0x0,'get':function(){return _0x3a3d85;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0xa1),{'enumerable':!0x0,'get':function(){return _0x5d0dca;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x3c9),{'enumerable':!0x0,'get':function(){return _0x37ab5d;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x104),{'enumerable':!0x0,'get':function(){return _0x4241ec;}}),Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x276),{'enumerable':!0x0,'get':function(){return _0x30f87e;}}),_0x23db49[_0x315216(0x279)]=_0x7a50dc,Object[_0x315216(0xb2)](_0x23db49,_0x315216(0x132),{'enumerable':!0x0,'get':function(){return _0x2e8fa6;}}),_0x23db49[_0x315216(0x1c4)]=_0x1b6d59,_0x23db49[_0x315216(0x277)]=_0x4703e7,_0x23db49['getLocalCacheKey']=_0x5b750c,_0x23db49[_0x315216(0x219)]=_0x3a4172;}));function _0x4cd7(){const _0x36e483=['_createSocket','getSnapshotAPIPath','eventID','getRoom','_remoteChangesetQueue','_getConfig','SheetCollaborationEntity','_replaceFileID','setConfig','expected\x20number,\x20got\x20','ONLINE','_commandService','objectId','/collaborator','UniverCollaborationPlugin','UNIVER_SHEET','getUnit','SessionStatus','localeService','/universer-api/user/session-ticket','base-ui.attachment-io.service','_onFetchMissResult','_syncEditingCollabCursor','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UniverProCollaboration','AAD\x20not\x20supported','keys','_singleActiveUnitService','\x20-\x20','ErrorCode','changesetAckTimeout','trim','_pendingReason','@univerjs/docs','HELLO','/-/object/-/batch_allowed','delay','mergeOverrideWithDependencies','unitId','CmdRspCode','_toSynced','IDLE','ciphertext\x20must\x20be\x20multiple\x20of\x2016','revert','close','_onCombEvent','startsWith','subType','url','getSheetBlock','isView','_startCollaboration','unitDisposed$','socket\x20open.','mapDocumentTypeToUniverInstanceType','CollaborationController','_removeRoom','candidateSocket','commit','attachment','JOIN_ROOM_NOT_EXISTS','liveShareOperation','downloadEndpointUrl','_initRequestHeader','supports','generateRandomId','RemoteRevertError','put','ackTimeout','getUnitType','IImageIoService','\x20in\x20_schedule.','COMMENT_UPDATE','_snapshotServerService','event$','LocalUndoRedoService','attempt','rxjs/operators','onSendChangeset','saveSheetBlock','CONFLICT','requestRetry','/fetchmissing?from=','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','change$','_rebaseUnchangedAttributes','21SmoWqK','mutations','_getCurrentRevision','delete','hasWritePending','_nextDelay','HEARTBEAT_INTERVAL','ICollaborationSocketService','ws://127.0.0.1:8000/universer-api/comb/connect','packageName','isTransformChangesetsSuccess','_sessionStatus$','_onJoinRoomEvent','getRandomValues','collaborators','concatMap','UnitEmbedded','getAllPermissionPoint','update','_filterTableActions','_change$','@univerjs-pro/license','_changesetResend$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','fetch_missing','missingChangesets','disablePadding','create','[CollaborationSessionService]','AuthzIoHttpService','_shouldReportTelemetry','_stopTelemetryCollaborationNewChangeset','getImage','LIVESHARE_REQUEST_HOST','UNIVER_BOARD','localCacheService','_createInitialStateImpl','changesetResend$','compose','rxjs','getValue','actions','fromCollab','Subscription','accept','CollaborationSessionService','number','reconnect','invalid\x20output,\x20must\x20be\x20aligned','socketReady','NO_OTHER_CLIENTS_EDITING','constructor','JOIN','charCodeAt','COMPRESS_MUTATION_SEND','onTransformSelections','resend','open$','_registerDependencies','replace','_identity','onRemoteRetry','override','/universer-api/oidc/authpage','joinEvent','requestParams','isCompositionEnd','_status$','UniverProtocol','members','toString','SlideCollaborationEntity','EnsureSlideMasterPageMutation','/new_changes','parseProtocolChangeset','objectPermissionTypes','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','bind','reqId','_substituteRedoStack','onMissingChangesets','_maxAckTimeout','getActiveSheet','body','TimeoutError','_updateStatus','EmptyMutationInfo','resent\x20changeset\x20','userID','BYTES_PER_ELEMENT','UPDATE_CURSOR','_memberService','assign','find','size','includes','LIVESHARE_FETCH_OPERATIONS','_compressMutationService','_clearRetryConnectingTimer','debug','IUndoRedoService','102866WqZdPQ','_updateLocalCache','workbook','_classifyRemoteChangeset','_resolveSessionIdentity','readCursor','getFocusedUnit','?size=','MAX_ACK_TIMEOUT','SheetPermissionInitController','OPTIONAL','_telemetryService','UniverNetworkPlugin','[PendingState]:\x20received\x20acknowledgement.','UniverTelemetry','ImageSourceType','merge','loadBase','_redoStacks','getDrawingImageAllowSize','requireSession','toggleOffline','/rev/','now','oldBody','_applyRemoteChangeset','_dispatchRemoteChangeset','sid','map','_collabSessionService','__Key__','\x0aAfter:\x20','next','commentUpdateEvent','permission_rejected','_conflictInfoFromError','prototype','_onUserJoin','onTransformRemoteChangesetByStateCache','createInstance','retryCount','_rebaseParagraphHistory','_transformAndApply','_onConflict','_userManagerService','onload','@univerjs/drawing','tagLength','disableLocalCache','_onConnectionFailed','type=','byteLength','getPath','target','init','disposeWithMe','UniverInstanceType','_rejectionInfo','awaitingChangeset','CombCmd','session.join-failed','session.room-permission-denied','transformMutationsWithChangeset','tableSource','addHandlerCallback','capture','_transformStateCache','dispose$','socket$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_waitCount','_clearHandshakeTimer','unit','_handler','armAckTimeout','_unitInfo$','COLLABORATION_ENDPOINT_INVALID','_clearTimer','Injector','emitEvent','enableAuthServer','type','UUID','/universer-api/stream/file/upload','@univerjs-pro/collaboration','_disposed','_classifyAck','IPermissionService','loadPdf','commentUpdate$','enableCollaboration','?url=','_changesetReqId','originalMeta','_onRemoteACK','registerDependencies','RemoveSlidePageMutation','rollback','saveAttachment','getCollabEntities','@univerjs-pro/slides','ITransformService','amd','_doCreateSocket','selections','refreshPermission','5739756TAfSmj','_transformIMECache','isInternalEditorID','_unlockTransition','getConfig','onMissing','_requestMissingChangesets','FileId','_rescheduleHeartbeat','_options','changesets','_instanceService','_startTelemetryCollaborationNewChangeset','_pendingMutations','UNIVER_PDF','BASE64','roles','elapsedMs','OBJECT_PERMISSION_CONFIG_KEY','onSyncEditingCollabCursor','PERMISSION_REJ','_transformService','JOIN_ROOM_PERMISSION_DENIED','_onRecvEvent','UNISCRIPT_RUN','Uint8Array','[FetchMissState]','objectID','_source','push','_createInitialState','DependentOn','memberID','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','sendChangesetTimeout','transformUndoRedo','applied','encode','coverType','@univerjs/core','[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.','/block/','sort','stale','cipher\x20output\x20not\x20supported','SYNCED','pending','_networkConditionService','BoardCollaborationEntity','collaboration_new_changeset','isTransformMutationsWithChangesetFailure','_collaborationPaused','_socket','_joinRoom','_reqId','[DataLoaderService]','_getUploadFileURL','_clearScheduledTask','INGEST','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_entities','[SyncedState]:\x20received\x20rejection.','_imageSourceCache','SheetTransformSelectionsService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','getCollabEntity','pipe','_createChangesetSubmitter','UniverCore','toRemote','getUnitStatus$','PSEUDO_FETCH_MISSING_RESULT','ImageUploadStatusType','CHANGESET_SHOULD_RETRY','resourceIDs','paragraphs','shouldCloseConn','readAsDataURL','objects','MUTATION','defineProperty','AwaitingWithPendingState','RETRY_CONNECTING_MAX_COUNT_KEY','onStarting','columnGroups','m2Prime','_logService','socketSubscription','/universer-api/snapshot/','getCurrentUser','expected\x20Uint8Array','_sessionChannels','plaintext\x20must\x20be\x20multiple\x20of\x2016','warn','uniscriptRunEvent','31xMzgUq','RevisionService','operators','setWaitCount','HEARTBEAT_INTERVAL_KEY','onMutationExecutedForCollab','_deliver','_getUnitPermissionPoints','UNIVER_BASE','_tryEnsureSocket','getMember','isObject','location','encrypt','take','then','has','IUniverInstanceService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','csShouldRetryEvent','string','error','UpdateDocsAttributeType','Response','add','_getSendChangesetTimeout','output','_remoteRevertInfo','info','_httpService','code','_state','pauseCollaboration','x-univer-host','diffValue','parseChangesetToProtocol','_tryReconnect','/universer-api/snapshot','_injector','HEARTBEAT','file','_undoRedoService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','onCommentUpdate','_getSignURL','onRemoteChangeset','min','clearOfflineData','asObservable','ack_timeout','reject','7802245WpSVTw','takeUntil','HTTPRequest','NEW_CHANGESETS','ERROR_IMAGE','/universer-api/authz','_onLocalMutation','SheetsSelectionsService','retry-after','b64DecodeUnicode','_onRemoteChangeset','headers','_onRemoteRetry','_transformHistoryMutations','_onMessage','_getLoginPath','SnapshotServerOverHTTPService','textEncoder','slice','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','socket\x20close','getCollabEntity$','_submitChangeset','CollaborationUIEventService','RxDisposable','RevertRevisionMutation','resolveUnit','_snapshotService','ISingleActiveUnitService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','Subject','HEARTBEAT_TIMEOUT','SUBMIT_CHANGESET_TIMEOUT','online','&to=','PERMISSION_DENIED','varSizeNonce','getUnitId','CollaborativeUndoRedoService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','members$','refreshUnit','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','invertWithDoc','unknown','_getAPIPrefix','_schedule','result','FAIL','onMissedChangesetFetched','_unsyncedMutationCount','_acknowledgeAwaitingIfReady','/role','DocStateChangeManagerService','_getUndoStack','buffer','initWorkbookPermissionChange','_timer','offline','/universer-api/uniscript','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','not_collab','UniverCollaborationClientPlugin','values','bytesLength','getLatestCsReqIdBySid','&source=','entityInit$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onConnectionOpen','rev','_transformStack','stopTime','_invertDocumentHistory','_socketService','getCurrentSelections','/object/','isFinite','some','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onRemoteAck','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','collaboration-client.config','_throwTelemetryCollaborationNewChangeset','_handleRemoteChangesets','HTTPService','Disposable','[OfflineState]','_retryBackoff','echo','clear','exports','saveImage','conflict','listRoles','/universer-api/file/{fileID}/sign-url','unitID','awaiting_with_pending','UniverProLicense','INSERT','ICommandService','subUnitId','dispose','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','Plugin','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','SHOULD_CLOSE_CONN','onApply','_handlerCallback','onConflict','toggleOnline','name','getInterceptPoints','hostname','_initUnitPermissionChange','c1Prime','Slide','retryConnectingTimer','_firstSentAt','withAAD','connection\x20error','PendingState','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','DisposableCollection','upload','getMemberID','/unit/','getOwnPropertyDescriptor','_toPending','ignored\x20acknowledgement\x20of\x20revision\x20','decrypt','DEFAULT_ACK_TIMEOUT','post','_disableEditing','[CollaborationState]:\x20apply\x20error!','univer-pro.collaboration-client-adapter-service','method','_pendingSessions','/-/object/list','IMentionIOService','_onRemoteRejected','_initDependencies','newCsEvent','pluginName','CollaborationUIEventId','20VmXTey','message','revision','_members','_createHandler','People','onRemoteRevert','transformChangesets','univer-pro.collaboration-client-socket-service','signUrlServerUrl','_executeRemoteChangeset','_collaborationUIEventService','handshakeTimer','socketService','apply_failed','title','catch','transform_failed','paragraphId','nonceLength','Workbook','_emitMembers','_collaborationSessionService','localChanges','sessionStatus','len','_countResend','_socketChannels','RETAIN','Inject','_updateUnitPermissionPoint','enableOfflineEditing','getImageSourceCache','_queuedRemoteChangesets','_scheduleCompleteTimestamp','_submitter','CompressMutationService','findIndex','loadOfflineData','createIdentifier','_config','deleteProperty','_sessions','pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','ILocalCacheService','startIndex','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTypeOfUnitDisposed$','IAttachmentIoService','action','loadUnit','_toggleOnline','UserManagerService','_ackTimeout','touchDependencies','updateMember','CLOSE_ROOM','1.2.0','_permissionService','_lockTransition','registerHTTPInterceptor','loadSheet','UNIVER_SLIDE','createUniverCollaborationAdapter','[CollaborationSessionService]:\x20socket\x20error','_clearHeartbeatTimer','BehaviorSubject','unbind','_showConflictProcessingNotification','leaveEvent','href','_listenToNetworkCondition','objectActions','UPDATE_PERMISSION_OBJ','IConfigService','textRanges','collaboration-client.auth.needGotoLoginAlert','@univerjs-pro/collaboration-client','[PendingState]:\x20received\x20rejection.','csAckEvent','isPermissionRej','_transformUndoredo','CollaborationEvent','baseRev','TextXActionType','_initMergeInterceptor','GLOBAL_ROOMS_CNT_EXCEEDS','IAuthzIoService','confirm','_substituteUndoStack','get','ConflictState','aes:\x20bad\x20decrypt','_revisionService','_init','LIVESHARE_TERMINATE','range','_now','AwaitingState','encodeURIComponent','15294FQHzmk','_conflict$','4426630SXyVPF','fetchMiss','_configService','OTHER_CLIENT_EDITING','duration','responseType','resolveWithBasePath','_updateState','@univerjs/telemetry','UniverNetwork','toPrimitive','blockRanges','transformStack\x20failed!','JOINING','loadDoc','_cfgEnableObjInherit','RichTextEditingMutation','_attempt','UniverProSlides','IContextService','MentionType','error$','fetching\x20missing\x20changesets\x20from\x20','_exhaustRemoteChangesetQueue','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_fetchMissChangesets','collaMsg','_disposeSubmitter','onlyLocal','_awaitingChangeset','deepClone','_clearUndo','DEFAULT_WS_SESSION_TICKET_URL','call','[CollaborationUndoRedoService]','parse','&assign=','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','list','localUnitId','connectionAttempt','firstValueFrom','CommentService','forEach','endpointKey','transformSelections','serializeCombRequest','isSafeInteger','shareReplay','CollaborationImageIoService','_authzIoService','waitForRoom$','CollaborationEntity','DocCollaborationEntity','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','clearUnit','unsubscribe','_transformSelections','PERSON','JSONX','SUBMIT_CHANGESET','_state$','_acknowledgeAwaiting','filter','removeMember','UnitObject','_members$','_entityInit$','_initCloseConn','_acknowledgedAwaitingRevision','executeCommand','set','paragraph','deleteCollaborator','session.room-full','_detachSubmitter','onResend','resendTimeouts','LEAVE','onTransformRemoteChangesetByIMECache','_univerInstanceService','unitLoaded$','collaboratorID','{fileID}','wrong\x20sbox\x20length','ack_of_awaiting','routeKey','NOT_COLLAB','COMPRESS_MUTATION_APPLY','floor','subarray','function','_roomCreated$','_telemetryInfo','_localCacheService','_closedUnits','interceptor','avatar','isArray','session.room-cnt-exceeds','objectType','length','CollaborationSocketService','_decreaseWaiting','endpoint','[CollaborationSession]','_HTTPService','close$','allowed','_commentUpdate$','univer-pro.collaboration-client.network-condition.service','withCredentials','JOIN_ROOM_FAILED','decorate','ILogService','REPLACE','toDisposable','OFFLINE','Tools','LIVESHARE_OPERATION','getResourcesRequest','MergeInterceptorFactory','object','hasOwnProperty','_roomMembers','getUnitOnRev','[AwaitingWithPendingState]','putCollaborators','\x20to\x20','updatePermissionPoint','sessionStatus$','sequenceExecute','cfgEnableObjInherit','HEARTBEAT_TIMEOUT_KEY','_loadUnit','_type','addImageSourceCache','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','changeset','SyncedState','deserializeToCombResponse','toLocal','UnitStatus','_getAPIPrefixPath','synced','traverse','_sheetTransformSelectionsService','batchAllowed','_docStateChangeManagerService','_transformRemoteChangesetByStateCache','should_retry','snapshotServerUrl','_getSocketChannel','UniverDocs','saveSnapshot','expected\x20integer\x20>=\x200,\x20got\x20','@univerjs/network','_isAckOfAwaitingChangeset','ISnapshotServerService','JOIN_ROOM_FULL','missing','SOCKET_FAILED_RETRY','nonce','AWAITING','subscribe','_incrementRevisionNumber','cmd','_commentService','byteOffset','_onRequestFailed','docStateChange$','params','Edit','_getDownloadEndpointURL','CHANGESET_ACK','from','ignored\x20stale\x20ack\x20of\x20revision\x20','USERS_LEAVE','reverse','session','_transformAndApplyRemoteChangeset','snapshot','data','/object','JSON1','UNIVER_DOC','_transitionLocked','_getRedoStack','USERS_ENTER','CHANGESET_REJ','_toggleOffline','CONFLICT_PROCESSING','ObjectPermissionService','submit','origin','LocaleService','PdfCollaborationEntity','SnapshotService','append','_socketMessageSubscription','state','Document','subject','getDeserializedSheetBlock','INetworkConditionService','882460eIMVKd','_unitLoaded$','onRemoteRej','onTransformState','authzUrl','getCurrentRevOfUnit','BaseCollaborationEntity','updatePermissionObjEvent','onTransformIME','SOCKET_FAILED','getUploadOptions','UniverProCollaborationClient','updateCollaborator','_sendToken','every','RETRY_CONNECTING_MAX_COUNT','OfflineState','_createSession','UnitAction','getTypeOfUnitAdded$','reduce','crypto.getRandomValues\x20must\x20be\x20defined','Board','FetchingMissState','appendMutation','CONFLICT_CACHE_CLEAR_FAILED','_onOffline','1899McqWsa','Optional','LOCAL_CACHE_INTERVAL','/allowed','unit-cache-','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','UniverLicensePlugin','[CollaborationEntity]','_send','apply','FETCH_MISSING','RECV','AddSlidePageMutation','remote_revert','endsWith','readyForCollab','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','getTime','_event$','loadUnitOfRevision','awaiting','FileSource','MSG_FOR_ERROR','_clearTimeoutTimer','ITelemetryService','maxAckTimeout','_replayCachedMutations','_loadSnapshot','_notifyResend','LOCAL_CACHE_INTERVAL_KEY','_changesetSessionId','telemetry\x20info\x20is\x20not\x20initialized','3647tUIUQo','POST','timeoutTimer','_sendingTimer','HTTP\x20','MoveSlidePageMutation','fetchThroughInterceptors','default','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_refreshUnitPermission','isTransformMutationsWithChangesetSuccess','HTTPResponseError','UNIVER_COLLABORATION_CLIENT_PLUGIN','text-x','[CollaborationSocketService]','stringify','sendHeartbeatTimer','indexOf','getSnapshot','Failed\x20to\x20update\x20permission\x20point','_transit','createCollaborator','_dropAcknowledgedAwaiting','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_hasSessionsForEndpoint','_upload','Univer','max','retryConnectingInterval','liveShareNewHost','MemberService','OTHER_CLIENTS_EDITING','complete','timeout','/universer-api/comb','closeSession','_isEchoedAwaitingChangeset','unitType','onPrepareTransformSelections','20192MoyDnB','_sendHeartbeat','SNAPSHOT_URL_KEY','SetSelectionsOperation','_waitForHeartbeatResponse','CommandType','onStateChange','_eventService','uploadFileServerUrl','Quantity','LIVESHARE_NEW_HOST','send','status','symbol','reason','WorkbookEditablePermission','message$','CollaborationStatus'];_0x4cd7=function(){return _0x36e483;};return _0x4cd7();}
1
+ function _0xa473(_0x599d51,_0x1d11d2){_0x599d51=_0x599d51-0x134;const _0x25e971=_0x25e9();let _0xa473de=_0x25e971[_0x599d51];return _0xa473de;}(function(_0x71a21c,_0x17f683){const _0x479885=_0xa473,_0x5bd812=_0x71a21c();while(!![]){try{const _0x52e4a9=-parseInt(_0x479885(0x3a2))/0x1+-parseInt(_0x479885(0x4e3))/0x2+parseInt(_0x479885(0x24d))/0x3+parseInt(_0x479885(0x407))/0x4*(parseInt(_0x479885(0x39b))/0x5)+-parseInt(_0x479885(0x4da))/0x6*(parseInt(_0x479885(0x4d5))/0x7)+parseInt(_0x479885(0x221))/0x8+parseInt(_0x479885(0x4a9))/0x9*(parseInt(_0x479885(0x390))/0xa);if(_0x52e4a9===_0x17f683)break;else _0x5bd812['push'](_0x5bd812['shift']());}catch(_0x4d1ca2){_0x5bd812['push'](_0x5bd812['shift']());}}}(_0x25e9,0x4437f),function(_0x4062a6,_0x1e6edf){const _0x1e5b12=_0xa473;typeof exports==_0x1e5b12(0x497)&&typeof module<'u'?_0x1e6edf(exports,require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs-pro/slides'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x1e5b12(0x34a)]?define([_0x1e5b12(0x377),'@univerjs/network',_0x1e5b12(0x421),_0x1e5b12(0x2c4),'@univerjs/core',_0x1e5b12(0x4aa),_0x1e5b12(0x4a7),'@univerjs/protocol',_0x1e5b12(0x1f1),_0x1e5b12(0x27c),_0x1e5b12(0x187),'@univerjs-pro/license',_0x1e5b12(0x457)],_0x1e6edf):(_0x4062a6=typeof globalThis<'u'?globalThis:_0x4062a6||self,_0x1e6edf(_0x4062a6[_0x1e5b12(0x280)]={},_0x4062a6[_0x1e5b12(0x3e6)],_0x4062a6[_0x1e5b12(0x421)],_0x4062a6['UniverProCollaboration'],_0x4062a6['UniverCore'],_0x4062a6[_0x1e5b12(0x42d)],_0x4062a6[_0x1e5b12(0x206)],_0x4062a6[_0x1e5b12(0x2a3)],_0x4062a6[_0x1e5b12(0x27e)],_0x4062a6[_0x1e5b12(0x421)][_0x1e5b12(0x21d)],_0x4062a6[_0x1e5b12(0x4ad)],_0x4062a6[_0x1e5b12(0x389)],_0x4062a6[_0x1e5b12(0x1a7)]));}(this,function(_0x373490,_0x5e0f50,_0x144f8e,_0x4f9696,_0x19e1e0,_0x444f1a,_0x442e6a,_0xc3615a,_0x211c45,_0x472409,_0x40560a,_0x463499,_0x5aa41c){const _0x2e0def=_0xa473;Object['defineProperty'](_0x373490,Symbol[_0x2e0def(0x25c)],{'value':_0x2e0def(0x449)});let _0x21d492=_0x2e0def(0x20f),_0x2094b3={};function _0x1d231e(_0x347460){'@babel/helpers - typeof';const _0x1beec8=_0x2e0def;return _0x1d231e=typeof Symbol==_0x1beec8(0x139)&&typeof Symbol['iterator']==_0x1beec8(0x472)?function(_0x3f9ae1){return typeof _0x3f9ae1;}:function(_0x4d495d){const _0x2cfc8e=_0x1beec8;return _0x4d495d&&typeof Symbol==_0x2cfc8e(0x139)&&_0x4d495d[_0x2cfc8e(0x315)]===Symbol&&_0x4d495d!==Symbol[_0x2cfc8e(0x17e)]?_0x2cfc8e(0x472):typeof _0x4d495d;},_0x1d231e(_0x347460);}function _0x275534(_0x554233,_0x16762b){const _0x5deb4c=_0x2e0def;if(_0x1d231e(_0x554233)!='object'||!_0x554233)return _0x554233;var _0x3aa435=_0x554233[Symbol[_0x5deb4c(0x1b7)]];if(_0x3aa435!==void 0x0){var _0x500ba3=_0x3aa435[_0x5deb4c(0x1a2)](_0x554233,_0x16762b||_0x5deb4c(0x395));if(_0x1d231e(_0x500ba3)!=_0x5deb4c(0x497))return _0x500ba3;throw TypeError(_0x5deb4c(0x2f3));}return(_0x16762b==='string'?String:Number)(_0x554233);}function _0x3d4c1a(_0x27f461){const _0x3df060=_0x2e0def;var _0x50e3b8=_0x275534(_0x27f461,_0x3df060(0x464));return _0x1d231e(_0x50e3b8)==_0x3df060(0x472)?_0x50e3b8:_0x50e3b8+'';}function _0xc5e065(_0x49f8d5,_0x2094ec,_0x3f4ab2){const _0x53477d=_0x2e0def;return(_0x2094ec=_0x3d4c1a(_0x2094ec))in _0x49f8d5?Object[_0x53477d(0x496)](_0x49f8d5,_0x2094ec,{'value':_0x3f4ab2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x49f8d5[_0x2094ec]=_0x3f4ab2,_0x49f8d5;}var _0x3786f5=class{constructor(_0x1393d0,_0x104219,_0x4912a9={}){const _0x56b6f8=_0x2e0def;this[_0x56b6f8(0x511)]=_0x104219,this[_0x56b6f8(0x316)]=_0x4912a9,_0xc5e065(this,_0x56b6f8(0x1c9),0x0),_0xc5e065(this,_0x56b6f8(0x45b),void 0x0),_0xc5e065(this,_0x56b6f8(0x398),void 0x0),_0xc5e065(this,'_maxAckTimeout',void 0x0),_0xc5e065(this,_0x56b6f8(0x219),0x0),_0xc5e065(this,'_nextDelay',0x0),_0xc5e065(this,'_timer',null),_0xc5e065(this,'_pendingReason',null),_0xc5e065(this,_0x56b6f8(0x384),null),_0xc5e065(this,_0x56b6f8(0x247),0x0),_0xc5e065(this,_0x56b6f8(0x2fe),!0x1),_0xc5e065(this,_0x56b6f8(0x1a9),void 0x0),_0xc5e065(this,_0x56b6f8(0x4cf),void 0x0),this['_reqId']=_0x1393d0,this[_0x56b6f8(0x398)]=_0x4912a9[_0x56b6f8(0x3b8)]??0x4e20,this[_0x56b6f8(0x3d8)]=Math[_0x56b6f8(0x507)](_0x4912a9[_0x56b6f8(0x181)]??0x1d4c0,this[_0x56b6f8(0x398)]),this[_0x56b6f8(0x1a9)]=_0x4912a9['now']??(()=>Date['now']()),this['_firstSentAt']=this[_0x56b6f8(0x1a9)]();}get['reqId'](){return this['_reqId'];}get[_0x2e0def(0x42b)](){const _0x369b9d=_0x2e0def;return this[_0x369b9d(0x1c9)];}get[_0x2e0def(0x29a)](){return this['_nextDelay'];}get[_0x2e0def(0x369)](){const _0x99e28b=_0x2e0def;return this[_0x99e28b(0x1a9)]()-this[_0x99e28b(0x45b)];}[_0x2e0def(0x2c2)](_0x499448){const _0x1097b6=_0x2e0def;if(this[_0x1097b6(0x2fe)])return;this['_source']=_0x499448;let _0x31dd51=this[_0x1097b6(0x443)];_0x31dd51&&(this[_0x1097b6(0x443)]=null,this['_resend'](_0x31dd51));}[_0x2e0def(0x342)](){const _0x3fab8b=_0x2e0def;this[_0x3fab8b(0x384)]=null;}['submit'](_0x5f463b,_0x8fc947,_0x329066){const _0x328f7d=_0x2e0def;this[_0x328f7d(0x2fe)]||(_0x329066&&this['_countResend'](_0x329066),this[_0x328f7d(0x418)](),this[_0x328f7d(0x193)](_0x5f463b),this[_0x328f7d(0x4cf)]=_0x5f463b['reqId']??this[_0x328f7d(0x4cf)],_0x329066&&this[_0x328f7d(0x480)](_0x329066,_0x8fc947));}[_0x2e0def(0x418)](){const _0x59f6f5=_0x2e0def;this[_0x59f6f5(0x1eb)](this[_0x59f6f5(0x398)],_0x59f6f5(0x3f1));}['requestRetry'](_0x2fbf15=_0x2e0def(0x403)){const _0x19275f=_0x2e0def;this[_0x19275f(0x1eb)](this[_0x19275f(0x219)],_0x2fbf15);}[_0x2e0def(0x2d2)](){const _0x41b999=_0x2e0def;this['_disposed']=!0x0,this[_0x41b999(0x3d5)](),this[_0x41b999(0x384)]=null,this[_0x41b999(0x443)]=null;}['_deliver'](_0x1d2793){const _0x42b2cf=_0x2e0def;let _0x409890=++this['_sendToken'],_0x1e01a7;try{_0x1e01a7=this[_0x42b2cf(0x511)](_0x1d2793,{'timeout':this['_ackTimeout']});}catch(_0x1b5398){this['_onRequestFailed'](_0x409890,_0x1b5398);return;}_0x1e01a7 instanceof Promise&&_0x1e01a7[_0x42b2cf(0x2bd)](_0x240ec2=>this[_0x42b2cf(0x479)](_0x409890,_0x240ec2));}[_0x2e0def(0x479)](_0x63594f,_0xd7e4c1){const _0x1b4d9b=_0x2e0def;if(this[_0x1b4d9b(0x2fe)]||_0x63594f!==this['_sendToken'])return;let _0x6ecc71=_0x1e34d9(_0xd7e4c1,this[_0x1b4d9b(0x219)]);_0x6ecc71!==null&&this[_0x1b4d9b(0x1eb)](_0x6ecc71,_0x1b4d9b(0x434));}[_0x2e0def(0x1eb)](_0x4a468d,_0x45cc04){const _0x48ce78=_0x2e0def;this[_0x48ce78(0x2fe)]||(this[_0x48ce78(0x3d5)](),this[_0x48ce78(0x443)]=null,this[_0x48ce78(0x21a)]=_0x4a468d,this[_0x48ce78(0x2fd)]=setTimeout(()=>{const _0x31e3d8=_0x48ce78;this['_timer']=null,this[_0x31e3d8(0x384)]?this['_resend'](_0x45cc04):this[_0x31e3d8(0x443)]=_0x45cc04;},_0x4a468d));}[_0x2e0def(0x186)](_0x3a7a7b){const _0x43c888=_0x2e0def;let _0xee60dd=this[_0x43c888(0x384)];if(!_0xee60dd||this[_0x43c888(0x2fe)])return;let {changeset:_0x4004e9,unsyncedMutationCount:_0x477ac2}=_0xee60dd();this[_0x43c888(0x211)](_0x3a7a7b),this['armAckTimeout'](),this[_0x43c888(0x193)](_0x4004e9),this['_reqId']=_0x4004e9[_0x43c888(0x4b6)]??this['_reqId'],this[_0x43c888(0x480)](_0x3a7a7b,_0x477ac2);}[_0x2e0def(0x211)](_0x3da24e){const _0x2ab611=_0x2e0def;this[_0x2ab611(0x1c9)]+=0x1,_0x3da24e===_0x2ab611(0x403)||_0x3da24e===_0x2ab611(0x434)||_0x3da24e==='license_editing_connections_exceeded'?this[_0x2ab611(0x219)]=this[_0x2ab611(0x219)]===0x0?0x3e8:Math[_0x2ab611(0x48d)](this[_0x2ab611(0x219)]*0x2,0x4e20):_0x3da24e==='ack_timeout'&&(this['_ackTimeout']=Math[_0x2ab611(0x48d)](this['_ackTimeout']*0x2,this[_0x2ab611(0x3d8)]));}[_0x2e0def(0x480)](_0x5a8f2c,_0xfb3da2){const _0x3ae637=_0x2e0def;var _0x3c470c,_0x2d4ae9;this[_0x3ae637(0x2fe)]||(_0x3c470c=(_0x2d4ae9=this[_0x3ae637(0x316)])[_0x3ae637(0x36a)])==null||_0x3c470c[_0x3ae637(0x1a2)](_0x2d4ae9,{'reqId':this['_reqId'],'reason':_0x5a8f2c,'attempt':this[_0x3ae637(0x1c9)],'elapsedMs':this[_0x3ae637(0x369)],'unsyncedMutationCount':_0xfb3da2,'nextDelayMs':this[_0x3ae637(0x398)]});}[_0x2e0def(0x3d5)](){const _0x37da61=_0x2e0def;this['_timer']!=null&&(clearTimeout(this[_0x37da61(0x2fd)]),this['_timer']=null);}};function _0x1e34d9(_0xd40d5f,_0x2fceb1){const _0x385e03=_0x2e0def;if(_0xd40d5f instanceof _0x144f8e['TimeoutError'])return null;if(_0xd40d5f instanceof _0x5e0f50[_0x385e03(0x2a4)]){let _0x180e5a=_0xd40d5f[_0x385e03(0x47d)]??0x0;return _0x180e5a===0x0||_0x180e5a===0x198||_0x180e5a===0x1ad||_0x180e5a>=0x1f4?Math[_0x385e03(0x507)](_0x2fceb1,_0x75a66d(_0xd40d5f)):null;}return _0x2fceb1;}function _0x75a66d(_0x3ef1aa){const _0x597619=_0x2e0def;var _0x490fb4;let _0x64170b=(_0x490fb4=_0x3ef1aa[_0x597619(0x174)])==null||(_0x490fb4=_0x490fb4['get']('retry-after'))==null?void 0x0:_0x490fb4[0x0],_0x5b96d4=_0x64170b===void 0x0?NaN:Number(_0x64170b);return Number['isFinite'](_0x5b96d4)&&_0x5b96d4>0x0?_0x5b96d4*0x3e8:0x0;}function _0x5ad16d(_0xecfd8a){const _0xe863c1=_0x2e0def;return JSON[_0xe863c1(0x39f)](_0xecfd8a)[_0xe863c1(0x4d4)];}let _0xa1c206=function(_0x493d65){const _0x14d6b2=_0x2e0def;return _0x493d65[_0x14d6b2(0x1be)]=_0x14d6b2(0x1be),_0x493d65[_0x14d6b2(0x229)]=_0x14d6b2(0x229),_0x493d65[_0x14d6b2(0x2b0)]=_0x14d6b2(0x2b0),_0x493d65[_0x14d6b2(0x48b)]=_0x14d6b2(0x48b),_0x493d65[_0x14d6b2(0x1ff)]=_0x14d6b2(0x1ff),_0x493d65['CLOSE_ROOM']='CLOSE_ROOM',_0x493d65[_0x14d6b2(0x207)]='JOIN_ROOM_FAILED',_0x493d65[_0x14d6b2(0x184)]='SOCKET_FAILED_RETRY',_0x493d65[_0x14d6b2(0x327)]=_0x14d6b2(0x327),_0x493d65[_0x14d6b2(0x46a)]=_0x14d6b2(0x46a),_0x493d65[_0x14d6b2(0x25e)]=_0x14d6b2(0x25e),_0x493d65;}({});var _0x1bde53=class{constructor(){const _0x11cac9=_0x2e0def;_0xc5e065(this,'_event$',new _0x144f8e['Subject']()),_0xc5e065(this,_0x11cac9(0x4fb),this[_0x11cac9(0x4a3)][_0x11cac9(0x3e8)]());}[_0x2e0def(0x445)](_0x4c8b72){const _0x2bb262=_0x2e0def;this[_0x2bb262(0x4a3)][_0x2bb262(0x30c)](_0x4c8b72);}},_0x2ace56=class{constructor(){const _0x200071=_0x2e0def;_0xc5e065(this,'_commentUpdate$',new _0x144f8e['Subject']()),_0xc5e065(this,_0x200071(0x2c8),this[_0x200071(0x314)][_0x200071(0x3e8)]());}[_0x2e0def(0x344)](_0x8f0d8f){const _0x1a7a14=_0x2e0def;this[_0x1a7a14(0x314)]['next'](_0x8f0d8f);}};function _0x5d2cb5(_0xe7c307,_0x36a203){return function(_0x1e8874,_0x32bfeb){_0x36a203(_0x1e8874,_0x32bfeb,_0xe7c307);};}function _0x37ed50(_0x1a9bf3,_0x16b4b0,_0x1d44a6,_0x35a9a2){const _0xd861a1=_0x2e0def;var _0x20bdbc=arguments[_0xd861a1(0x4d4)],_0x5eae9f=_0x20bdbc<0x3?_0x16b4b0:_0x35a9a2===null?_0x35a9a2=Object[_0xd861a1(0x249)](_0x16b4b0,_0x1d44a6):_0x35a9a2,_0x475fe0;if(typeof Reflect=='object'&&typeof Reflect[_0xd861a1(0x4d2)]==_0xd861a1(0x139))_0x5eae9f=Reflect[_0xd861a1(0x4d2)](_0x1a9bf3,_0x16b4b0,_0x1d44a6,_0x35a9a2);else{for(var _0xb0b5ee=_0x1a9bf3[_0xd861a1(0x4d4)]-0x1;_0xb0b5ee>=0x0;_0xb0b5ee--)(_0x475fe0=_0x1a9bf3[_0xb0b5ee])&&(_0x5eae9f=(_0x20bdbc<0x3?_0x475fe0(_0x5eae9f):_0x20bdbc>0x3?_0x475fe0(_0x16b4b0,_0x1d44a6,_0x5eae9f):_0x475fe0(_0x16b4b0,_0x1d44a6))||_0x5eae9f);}return _0x20bdbc>0x3&&_0x5eae9f&&Object[_0xd861a1(0x496)](_0x16b4b0,_0x1d44a6,_0x5eae9f),_0x5eae9f;}let _0x4be8dc=class extends _0x19e1e0[_0x2e0def(0x404)]{constructor(_0x382787){const _0x1920c7=_0x2e0def;super(),this['_univerInstanceService']=_0x382787,_0xc5e065(this,'_roomMembers',new Map()),_0xc5e065(this,_0x1920c7(0x29d),new _0x144f8e[(_0x1920c7(0x2d3))]()),this['disposeWithMe']((0x0,_0x144f8e[_0x1920c7(0x208)])(this[_0x1920c7(0x4d1)][_0x1920c7(0x1ee)](_0x19e1e0[_0x1920c7(0x3e4)][_0x1920c7(0x3c5)])[_0x1920c7(0x251)]((0x0,_0x472409[_0x1920c7(0x417)])(_0x60496a=>_0x60496a[_0x1920c7(0x465)]())),this[_0x1920c7(0x4d1)][_0x1920c7(0x1ee)](_0x19e1e0[_0x1920c7(0x3e4)][_0x1920c7(0x23c)])['pipe']((0x0,_0x472409[_0x1920c7(0x417)])(_0x3cd35a=>_0x3cd35a[_0x1920c7(0x465)]())),this[_0x1920c7(0x4d1)][_0x1920c7(0x1ee)](_0x19e1e0[_0x1920c7(0x3e4)][_0x1920c7(0x27b)])[_0x1920c7(0x251)]((0x0,_0x472409[_0x1920c7(0x417)])(_0x2fc0ed=>_0x2fc0ed[_0x1920c7(0x465)]())),this['_univerInstanceService'][_0x1920c7(0x1ee)](_0x19e1e0[_0x1920c7(0x3e4)][_0x1920c7(0x335)])[_0x1920c7(0x251)]((0x0,_0x472409[_0x1920c7(0x417)])(_0x39ba79=>_0x39ba79[_0x1920c7(0x465)]())))[_0x1920c7(0x341)](_0x281716=>this['_removeRoom'](_0x281716)));}[_0x2e0def(0x410)](_0x166537){const _0x337fb4=_0x2e0def;return this[_0x337fb4(0x1e2)][_0x337fb4(0x39a)](_0x166537)?(0x0,_0x144f8e['of'])(this['_roomMembers'][_0x337fb4(0x264)](_0x166537)):this[_0x337fb4(0x29d)][_0x337fb4(0x251)]((0x0,_0x472409[_0x337fb4(0x417)])(_0x39168c=>{const _0x77ec40=_0x337fb4;if(_0x39168c===_0x166537)return this['_roomMembers'][_0x77ec40(0x264)](_0x39168c);}));}[_0x2e0def(0x48f)](_0x4a3571,_0xdeb7b){const _0x428064=_0x2e0def;let _0x1a5ced=this[_0x428064(0x1e2)]['get'](_0x4a3571);_0x1a5ced||(_0x1a5ced=new _0x43f26c(),this[_0x428064(0x1e2)]['set'](_0x4a3571,_0x1a5ced),this[_0x428064(0x29d)][_0x428064(0x30c)](_0x4a3571)),_0x1a5ced[_0x428064(0x48f)](_0xdeb7b);}[_0x2e0def(0x3e9)](_0xc685ef,_0x13385b){const _0x35d770=_0x2e0def;let _0x5f7b71=this[_0x35d770(0x1e2)]['get'](_0xc685ef);_0x5f7b71&&_0x5f7b71[_0x35d770(0x3e9)](_0x13385b);}[_0x2e0def(0x239)](_0xc3ca86){const _0x18812e=_0x2e0def;return this[_0x18812e(0x1e2)][_0x18812e(0x264)](_0xc3ca86);}['getMember'](_0x1ec563,_0x4db8b6){const _0x153660=_0x2e0def;let _0x559f82=this[_0x153660(0x1e2)][_0x153660(0x264)](_0x1ec563);if(_0x559f82)return _0x559f82[_0x153660(0x516)](_0x4db8b6);}[_0x2e0def(0x28a)](_0x5c2488){const _0x402840=_0x2e0def;let _0x1f9524=this['_roomMembers'][_0x402840(0x264)](_0x5c2488);_0x1f9524&&(_0x1f9524[_0x402840(0x2d2)](),this['_roomMembers'][_0x402840(0x15c)](_0x5c2488));}[_0x2e0def(0x2d2)](){const _0x1a39e7=_0x2e0def;this[_0x1a39e7(0x1e2)][_0x1a39e7(0x307)](_0x1fb7af=>_0x1fb7af[_0x1a39e7(0x2d2)]()),this[_0x1a39e7(0x1e2)][_0x1a39e7(0x1ef)](),this[_0x1a39e7(0x29d)][_0x1a39e7(0x31e)]();}};_0x4be8dc=_0x37ed50([_0x5d2cb5(0x0,_0x19e1e0[_0x2e0def(0x19c)])],_0x4be8dc);var _0x43f26c=class extends _0x19e1e0[_0x2e0def(0x404)]{constructor(..._0x4bf66f){const _0x4284f0=_0x2e0def;super(..._0x4bf66f),_0xc5e065(this,'_members',new Map()),_0xc5e065(this,_0x4284f0(0x256),new _0x144f8e['BehaviorSubject'](this[_0x4284f0(0x4d8)])),_0xc5e065(this,_0x4284f0(0x16d),this[_0x4284f0(0x256)]['asObservable']());}['dispose'](){const _0x1bd20f=_0x2e0def;this[_0x1bd20f(0x4d8)][_0x1bd20f(0x1ef)](),this['_members$'][_0x1bd20f(0x31e)]();}[_0x2e0def(0x48f)](_0x254a94){const _0x83b00d=_0x2e0def;this[_0x83b00d(0x4d8)][_0x83b00d(0x236)](_0x254a94[_0x83b00d(0x281)],_0x254a94),this[_0x83b00d(0x23d)]();}[_0x2e0def(0x3e9)](_0x3b8d4d){const _0x367d8c=_0x2e0def;this[_0x367d8c(0x4d8)]['delete'](_0x3b8d4d),this['_emitMembers']();}[_0x2e0def(0x516)](_0x45598f){const _0x359790=_0x2e0def;return this[_0x359790(0x4d8)][_0x359790(0x264)](_0x45598f);}[_0x2e0def(0x135)](){const _0x2bc1e9=_0x2e0def;return Array[_0x2bc1e9(0x43d)](this[_0x2bc1e9(0x4d8)][_0x2bc1e9(0x3b0)]());}[_0x2e0def(0x23d)](){const _0x4e17bd=_0x2e0def;this[_0x4e17bd(0x256)]['next'](this[_0x4e17bd(0x4d8)]);}};function _0x5096a2(_0x18c3de,_0x1a8cba){const _0x30f2ec=_0x2e0def;if(_0x137641(_0x18c3de))return _0x1a8cba;if(_0x1a8cba['eventID']===_0x4f9696[_0x30f2ec(0x257)][_0x30f2ec(0x2e6)]){let _0xf778e1=_0x3379fa(_0x18c3de),_0x580731=_0x1a8cba;return{..._0x580731,'data':{..._0x580731[_0x30f2ec(0x28c)],'unitID':_0x18c3de[_0x30f2ec(0x4b3)][_0x30f2ec(0x26e)],'unitType':_0x18c3de[_0x30f2ec(0x4b3)]['unitType']??_0x580731[_0x30f2ec(0x28c)]['unitType'],'changeset':_0xf778e1['toRemote'](_0x580731[_0x30f2ec(0x28c)]['changeset'],_0x53c76e(_0x18c3de))}};}if(_0x1a8cba['eventID']===_0x4f9696[_0x30f2ec(0x257)][_0x30f2ec(0x444)]){let _0x29ec4c=_0x1a8cba;return{..._0x29ec4c,'data':{..._0x29ec4c[_0x30f2ec(0x28c)],'unitID':_0x18c3de[_0x30f2ec(0x4b3)]['unitId'],'unitType':_0x18c3de[_0x30f2ec(0x4b3)][_0x30f2ec(0x222)]??_0x29ec4c[_0x30f2ec(0x28c)][_0x30f2ec(0x222)]}};}return _0x1a8cba;}function _0x4e0a1c(_0x1fd85f,_0x4da1c2){const _0x308819=_0x2e0def;if(_0x137641(_0x1fd85f))return[_0x4da1c2];switch(_0x4da1c2['eventID']){case _0x4f9696[_0x308819(0x257)]['NEW_CHANGESETS']:return[_0x2d3784(_0x1fd85f,_0x4da1c2)];case _0x4f9696['CollaborationEvent'][_0x308819(0x4b0)]:return[_0x5861e7(_0x1fd85f,_0x4da1c2)];case _0x4f9696[_0x308819(0x257)][_0x308819(0x28b)]:return[_0x3c3e38(_0x1fd85f,_0x4da1c2)];default:return[_0x4da1c2];}}function _0x137641(_0x9098fe){const _0x29d576=_0x2e0def;return _0x9098fe['target'][_0x29d576(0x3ee)]==null&&_0x9098fe['target'][_0x29d576(0x26e)]===_0x9098fe['localUnitId']&&!_0x9098fe[_0x29d576(0x3cb)];}function _0x2d3784(_0x572682,_0x17795e){const _0x337e38=_0x2e0def;return{..._0x17795e,'data':(0x0,_0x4f9696[_0x337e38(0x1bd)])(_0x589e43(_0x572682,(0x0,_0x4f9696[_0x337e38(0x1d9)])(_0x17795e[_0x337e38(0x28c)])))};}function _0x3c3e38(_0x25628c,_0x231552){return{..._0x231552,'data':_0x589e43(_0x25628c,_0x231552['data'])};}function _0x5861e7(_0x396ba5,_0x17f8cd){const _0x5149c3=_0x2e0def;let _0x324a57=_0x17f8cd['data'];return{..._0x17f8cd,'data':{..._0x324a57,'changesets':_0x324a57['changesets']['map'](_0x57fc59=>(0x0,_0x4f9696[_0x5149c3(0x1bd)])(_0x589e43(_0x396ba5,(0x0,_0x4f9696[_0x5149c3(0x1d9)])(_0x57fc59))))}};}function _0x589e43(_0x2e68dd,_0x14d2c1){const _0x378173=_0x2e0def;return _0x3379fa(_0x2e68dd)[_0x378173(0x173)](_0x14d2c1,_0x53c76e(_0x2e68dd));}function _0x3379fa(_0x17b0fb){const _0x3a0e78=_0x2e0def;if(!_0x17b0fb[_0x3a0e78(0x3cb)])throw Error(_0x3a0e78(0x292));return _0x17b0fb[_0x3a0e78(0x3cb)];}function _0x53c76e(_0x267f6b){const _0x5044c3=_0x2e0def;return{'localUnitId':_0x267f6b['localUnitId'],'unitType':_0x267f6b[_0x5044c3(0x222)],'target':_0x267f6b[_0x5044c3(0x4b3)]};}let _0x27c288=function(_0x49bc59){const _0x243597=_0x2e0def;return _0x49bc59[_0x49bc59[_0x243597(0x295)]=0x0]='IDLE',_0x49bc59[_0x49bc59[_0x243597(0x16e)]=0x1]='JOINING',_0x49bc59[_0x49bc59['OFFLINE']=0x2]=_0x243597(0x2cf),_0x49bc59[_0x49bc59[_0x243597(0x153)]=0x3]=_0x243597(0x153),_0x49bc59;}({}),_0x50aa9b={[_0xc3615a[_0x2e0def(0x4e0)][_0x2e0def(0x396)]]:_0x2e0def(0x4e4),[_0xc3615a['CmdRspCode'][_0x2e0def(0x41b)]]:'session.room-full',[_0xc3615a[_0x2e0def(0x4e0)][_0x2e0def(0x159)]]:_0x2e0def(0x494),[_0xc3615a['CmdRspCode'][_0x2e0def(0x41d)]]:_0x2e0def(0x39e),[_0xc3615a[_0x2e0def(0x4e0)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:'session.room-cnt-exceeds'},_0x50bd25=class extends _0x19e1e0[_0x2e0def(0x505)]{get[_0x2e0def(0x2ad)](){const _0x4209b0=_0x2e0def;return this['_sessionStatus$'][_0x4209b0(0x1fe)]();}constructor(_0x366d9f,_0x5b525d,_0x124306,_0x5c8b13,_0x398e0b,_0x41d9e0,_0x51909b){const _0x8ff505=_0x2e0def;super(),this[_0x8ff505(0x179)]=_0x366d9f,this[_0x8ff505(0x4b1)]=_0x124306,this[_0x8ff505(0x42e)]=_0x5c8b13,this[_0x8ff505(0x423)]=_0x398e0b,this[_0x8ff505(0x3d1)]=_0x41d9e0,this[_0x8ff505(0x170)]=_0x51909b,_0xc5e065(this,_0x8ff505(0x299),new _0x144f8e[(_0x8ff505(0x49d))](0x0)),_0xc5e065(this,_0x8ff505(0x3e1),this[_0x8ff505(0x299)][_0x8ff505(0x3e8)]()),_0xc5e065(this,_0x8ff505(0x4a3),new _0x144f8e[(_0x8ff505(0x2d3))]()),_0xc5e065(this,_0x8ff505(0x4fb),this[_0x8ff505(0x4a3)]['asObservable']()),_0xc5e065(this,'_socket',void 0x0),_0xc5e065(this,_0x8ff505(0x47b),void 0x0),_0xc5e065(this,_0x8ff505(0x158),!0x1),_0xc5e065(this,_0x8ff505(0x2f4),null),this[_0x8ff505(0x158)]=!!this['_telemetryService'],_0x5b525d[_0x8ff505(0x251)]((0x0,_0x144f8e[_0x8ff505(0x357)])(this[_0x8ff505(0x24e)]))[_0x8ff505(0x341)](_0x1f6ef7=>{const _0x2e368d=_0x8ff505;if(_0x1f6ef7!==void 0x0){if(this[_0x2e368d(0x1e8)]=_0x1f6ef7,_0x1f6ef7)this[_0x2e368d(0x3c6)](_0x1f6ef7),this[_0x2e368d(0x47b)]=_0x1f6ef7[_0x2e368d(0x275)][_0x2e368d(0x341)](_0xc9f3ec=>{const _0xec38f6=_0x2e368d;_0xc9f3ec['routeKey']===this[_0xec38f6(0x179)][_0xec38f6(0x4b3)][_0xec38f6(0x26e)]&&this[_0xec38f6(0x4ca)](_0xc9f3ec);});else{var _0x10aebd;this[_0x2e368d(0x3db)](),this['_sessionStatus$'][_0x2e368d(0x30c)](0x2),(_0x10aebd=this[_0x2e368d(0x47b)])==null||_0x10aebd[_0x2e368d(0x45a)](),this['_socketMessageSubscription']=null;}}});}[_0x2e0def(0x168)](){const _0x2cbf7b=_0x2e0def;var _0x110bf9;return((_0x110bf9=this[_0x2cbf7b(0x1e8)])==null?void 0x0:_0x110bf9['memberID'])??null;}[_0x2e0def(0x2d2)](){const _0x3daa68=_0x2e0def;super[_0x3daa68(0x2d2)](),this[_0x3daa68(0x4b9)](),this['dispose$'][_0x3daa68(0x30c)](),this[_0x3daa68(0x24e)][_0x3daa68(0x31e)]();}[_0x2e0def(0x4b9)](){const _0x548ebd=_0x2e0def;var _0x3931a8;this['_throwTelemetryCollaborationNewChangeset'](),(_0x3931a8=this['_socket'])==null||_0x3931a8[_0x548ebd(0x388)]({'cmd':_0xc3615a[_0x548ebd(0x349)][_0x548ebd(0x2c1)],'data':{'roomID':this[_0x548ebd(0x179)][_0x548ebd(0x4b3)][_0x548ebd(0x26e)]}}),this[_0x548ebd(0x4a3)][_0x548ebd(0x31e)](),this['_sessionStatus$'][_0x548ebd(0x31e)]();}['_onCombEvent'](_0x29a8d7){const _0x57de71=_0x2e0def;_0x29a8d7[_0x57de71(0x43f)]===_0xc3615a[_0x57de71(0x349)][_0x57de71(0x35a)]?this[_0x57de71(0x339)](_0x29a8d7):_0x29a8d7[_0x57de71(0x43f)]===_0xc3615a['CombCmd']['RECV']&&this[_0x57de71(0x4ec)](_0x29a8d7);}[_0x2e0def(0x3c6)](_0x297e82){const _0x12b29a=_0x2e0def;this['_sessionStatus$'][_0x12b29a(0x30c)](0x1),_0x297e82['send']({'cmd':_0xc3615a[_0x12b29a(0x349)][_0x12b29a(0x35a)],'routeKey':this[_0x12b29a(0x179)][_0x12b29a(0x4b3)][_0x12b29a(0x26e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x12b29a(0x179)]['target'][_0x12b29a(0x26e)]}]}});}[_0x2e0def(0x339)](_0x33c8db){const _0xb6cad5=_0x2e0def;var _0x26ff0c;if(_0x33c8db[_0xb6cad5(0x1cd)]in _0x50aa9b){this[_0xb6cad5(0x3d1)]['emitEvent']({'id':'JOIN_ROOM_FAILED','data':_0x50aa9b[_0x33c8db[_0xb6cad5(0x1cd)]]}),this[_0xb6cad5(0x299)][_0xb6cad5(0x30c)](0x2);return;}this['_sessionStatus$'][_0xb6cad5(0x30c)](0x3);let _0x1763cc=(_0x26ff0c=_0x33c8db[_0xb6cad5(0x28c)][_0xb6cad5(0x526)][this[_0xb6cad5(0x179)]['target'][_0xb6cad5(0x26e)]])==null?void 0x0:_0x26ff0c['members'];_0x1763cc&&_0x1763cc[_0xb6cad5(0x307)](_0x392cee=>this['_memberService'][_0xb6cad5(0x48f)](this[_0xb6cad5(0x179)][_0xb6cad5(0x474)],_0x392cee));}[_0x2e0def(0x4ec)](_0xe1dec){const _0x385c2f=_0x2e0def;try{let _0x1b542c=_0x4e0a1c(this[_0x385c2f(0x179)],_0xe1dec[_0x385c2f(0x28c)]);for(let _0xfc5561 of _0x1b542c)switch(_0xfc5561[_0x385c2f(0x1f2)]){case _0x4f9696[_0x385c2f(0x257)][_0x385c2f(0x1ba)]:this[_0x385c2f(0x426)](_0xfc5561),this[_0x385c2f(0x4a3)]['next'](_0xfc5561);break;case _0x4f9696[_0x385c2f(0x257)][_0x385c2f(0x3de)]:this['_onUserLeave'](_0xfc5561),this[_0x385c2f(0x4a3)][_0x385c2f(0x30c)](_0xfc5561);break;case _0x4f9696[_0x385c2f(0x257)][_0x385c2f(0x3b2)]:case _0x4f9696[_0x385c2f(0x257)]['CHANGESET_SHOULD_RETRY']:this[_0x385c2f(0x183)](),this[_0x385c2f(0x4a3)][_0x385c2f(0x30c)](_0xfc5561);break;case _0x4f9696[_0x385c2f(0x257)][_0x385c2f(0x354)]:this['_logService']['error'](_0x385c2f(0x4cb)+JSON[_0x385c2f(0x39f)](_0xfc5561)),this[_0x385c2f(0x4a3)]['next'](_0xfc5561);break;case _0x4f9696[_0x385c2f(0x257)]['COMMENT_UPDATE']:this['_commentService'][_0x385c2f(0x344)](_0xfc5561['data']),this[_0x385c2f(0x4a3)][_0x385c2f(0x30c)](_0xfc5561);break;default:this[_0x385c2f(0x4a3)]['next'](_0xfc5561);}}catch(_0x3e71aa){this[_0x385c2f(0x4b1)][_0x385c2f(0x340)](_0x3e71aa,_0xe1dec);}}[_0x2e0def(0x426)](_0x4aec28){const _0x1015a3=_0x2e0def;this[_0x1015a3(0x42e)][_0x1015a3(0x48f)](this[_0x1015a3(0x179)][_0x1015a3(0x474)],_0x4aec28[_0x1015a3(0x28c)]);}[_0x2e0def(0x13d)](_0x2f85e7){const _0x49ab2a=_0x2e0def;this[_0x49ab2a(0x42e)][_0x49ab2a(0x3e9)](this[_0x49ab2a(0x179)][_0x49ab2a(0x474)],_0x2f85e7[_0x49ab2a(0x28c)]['memberID']);}async[_0x2e0def(0x388)](_0x4f9b04,_0x35713d,_0x34d4f2){const _0xd7d648=_0x2e0def;if(this['sessionStatus']!==0x3||!this[_0xd7d648(0x1e8)])throw Error(_0xd7d648(0x484));try{let _0x43c49a=_0x5096a2(this['_identity'],_0x4f9b04);_0x43c49a[_0xd7d648(0x1f2)]===_0x4f9696[_0xd7d648(0x257)][_0xd7d648(0x2e6)]&&this[_0xd7d648(0x4bb)](_0x43c49a);let _0x86bfc8={'cmd':_0xc3615a[_0xd7d648(0x349)][_0xd7d648(0x26c)],'routeKey':this[_0xd7d648(0x179)][_0xd7d648(0x4b3)][_0xd7d648(0x26e)],'routeType':'','data':_0x43c49a};return _0x34d4f2===void 0x0?this['_socket'][_0xd7d648(0x388)](_0x86bfc8):this[_0xd7d648(0x1e8)][_0xd7d648(0x388)](_0x86bfc8,_0x34d4f2);}catch(_0xd6bb0f){this['_logService'][_0xd7d648(0x340)](_0xd6bb0f);}}['_startTelemetryCollaborationNewChangeset'](_0x3516b3){const _0x30bc5c=_0x2e0def;if(!this[_0x30bc5c(0x158)])return;let {data:_0x2544c6}=_0x3516b3,{unitID:_0x5ea9b1,changeset:_0x509e96}=_0x2544c6,{mutations:_0x19a15d,type:_0x168330}=_0x509e96;this[_0x30bc5c(0x2f4)]={'unitId':_0x5ea9b1,'type':_0x168330,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x5ad16d(_0x19a15d)};}[_0x2e0def(0x183)](){const _0x427233=_0x2e0def;this[_0x427233(0x158)]&&(this[_0x427233(0x2f4)]?(this[_0x427233(0x2f4)][_0x427233(0x3df)]=performance[_0x427233(0x198)](),this[_0x427233(0x2f4)][_0x427233(0x3a3)]=this[_0x427233(0x2f4)][_0x427233(0x3df)]-this[_0x427233(0x2f4)][_0x427233(0x1ed)],this['_telemetryService'][_0x427233(0x1f6)]('collaboration_new_changeset',this[_0x427233(0x2f4)]),this[_0x427233(0x2f4)]=null):this[_0x427233(0x4b1)][_0x427233(0x340)]('[CollaborationSession]',_0x427233(0x367)));}['_throwTelemetryCollaborationNewChangeset'](){const _0x31d807=_0x2e0def;this[_0x31d807(0x2f4)]=null;}};_0x50bd25=_0x37ed50([_0x5d2cb5(0x2,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0x3,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4be8dc)),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x2ace56)),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x1bde53)),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x211c45[_0x2e0def(0x3cf)]))],_0x50bd25);let _0x5700e5=(0x0,_0x19e1e0[_0x2e0def(0x373)])(_0x2e0def(0x3d6));function _0x35584b(_0xc6942b,_0x52669d){const _0x2d1700=_0x2e0def;return _0x52669d===''||_0x52669d==null?_0x2d1700(0x405)+_0xc6942b:_0x2d1700(0x405)+_0xc6942b+'-'+encodeURIComponent(_0x52669d);}function _0x5ac8ea(_0x3250fc){const _0x40e9e7=_0x2e0def;let {unitID:_0x2abc9b,mutations:_0x32d4db}=_0x3250fc;return{'unitId':_0x2abc9b,'subUnitId':_0x32d4db[_0x40e9e7(0x4d4)]>0x0?_0x32d4db[0x0][_0x40e9e7(0x4b2)][_0x40e9e7(0x34e)]:null};}let _0x95e1bd=class{constructor(_0x135beb,_0x547615,_0x2fe2de){const _0x213e5=_0x2e0def;this[_0x213e5(0x196)]=_0x135beb,this[_0x213e5(0x4e2)]=_0x547615,this['_instanceService']=_0x2fe2de;}[_0x2e0def(0x322)](_0x530cf9){const _0x3da3b8=_0x2e0def;var _0x4511e4,_0x533497;let _0x4a7eb8=this['_injector'][_0x3da3b8(0x264)](_0x442e6a[_0x3da3b8(0x468)]),{unitId:_0x4cf768,subUnitId:_0x2190a3}=_0x5ac8ea(_0x530cf9),_0xbb0c44=_0x4a7eb8==null?void 0x0:_0x4a7eb8['getWorkbookSelections'](_0x4cf768)[_0x3da3b8(0x1e5)](),_0x3678dd=(_0x4511e4=this[_0x3da3b8(0x413)][_0x3da3b8(0x16b)](_0x4cf768))==null||(_0x4511e4=_0x4511e4['getActiveSheet']())==null?void 0x0:_0x4511e4[_0x3da3b8(0x2fa)]();if(_0xbb0c44[_0x3da3b8(0x4d4)]===0x0||!_0x4cf768||!_0x2190a3)return;let _0x1a6414=[{'id':_0x442e6a['SetSelectionsOperation']['id'],'params':{'unitId':_0x4cf768,'subUnitId':_0x3678dd,'selections':_0x19e1e0[_0x3da3b8(0x372)][_0x3da3b8(0x2f9)](_0xbb0c44)}}],_0x4ef825=this[_0x3da3b8(0x4e2)][_0x3da3b8(0x493)](_0x530cf9,_0x1a6414);if(!(0x0,_0x4f9696[_0x3da3b8(0x43e)])(_0x4ef825))throw _0x4ef825[_0x3da3b8(0x340)];let _0x14470d=(_0x533497=_0x4ef825['m2Prime'][0x0])==null||(_0x533497=_0x533497[_0x3da3b8(0x4b2)])==null?void 0x0:_0x533497['selections'];if(Array[_0x3da3b8(0x521)](_0x14470d)&&_0x14470d['length']){if(_0x14470d[_0x3da3b8(0x4d4)]===_0x1a6414[0x0][_0x3da3b8(0x4b2)]['selections'][_0x3da3b8(0x4d4)]&&_0x14470d[_0x3da3b8(0x285)]((_0x1db5b6,_0x1f068f)=>_0x19e1e0[_0x3da3b8(0x1fa)][_0x3da3b8(0x4bc)](_0x1db5b6[_0x3da3b8(0x44a)],_0x1a6414[0x0][_0x3da3b8(0x4b2)][_0x3da3b8(0x1e4)][_0x1f068f]['range'])))return;this['_injector'][_0x3da3b8(0x264)](_0x19e1e0[_0x3da3b8(0x481)])[_0x3da3b8(0x383)](_0x442e6a[_0x3da3b8(0x138)]['id'],{'unitId':_0x4cf768,'subUnitId':_0x3678dd,'selections':_0x14470d});}}};_0x95e1bd=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x1,_0x4f9696['ITransformService']),_0x5d2cb5(0x2,_0x19e1e0[_0x2e0def(0x19c)])],_0x95e1bd);let _0x472208=(0x0,_0x19e1e0[_0x2e0def(0x373)])(_0x2e0def(0x2ce)),_0x2f6ede=function(_0x393dec){const _0x1b9a98=_0x2e0def;return _0x393dec[_0x393dec[_0x1b9a98(0x4d3)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x393dec[_0x393dec[_0x1b9a98(0x24b)]=0x1]=_0x1b9a98(0x24b),_0x393dec;}({});function _0x2696c0(_0x3d5e01){const _0x301cb9=_0x2e0def;var _0x278943;return!!((_0x278943=_0x3d5e01[_0x301cb9(0x4b2)])!=null&&_0x278943[_0x301cb9(0x4ed)]);}let _0x3e3c60=new Set([_0x442e6a[_0x2e0def(0x4fe)]['id']]),_0x3d16d4=new Set([_0x40560a[_0x2e0def(0x446)]['id'],_0x40560a[_0x2e0def(0x155)]['id'],_0x40560a[_0x2e0def(0x319)]['id'],_0x40560a[_0x2e0def(0x514)]['id']]);function _0x271547(_0x424147,_0x547f2d=_0x3e3c60){let _0xbe93e5=[];for(let _0x1f6fed of _0x424147){if(_0x547f2d['has'](_0x1f6fed['id'])||_0x2696c0(_0x1f6fed)){if(_0xbe93e5['length']>0x0)break;_0xbe93e5['push'](_0x1f6fed);break;}_0xbe93e5['push'](_0x1f6fed);}return _0xbe93e5;}function _0x1e2b23(_0x2e4b79,_0x1d01ec,_0x50d83f,_0x169d98,_0x36c797){const _0x28a230=_0x2e0def;let _0x195af5=_0x271547(_0x2e4b79),_0x1e6414=_0x36c797[_0x28a230(0x1da)](),_0x3d245a=(_0x1e6414==null?void 0x0:_0x1e6414[_0x28a230(0x2a1)])??'unknown',_0x1bd243=(_0x1e6414==null?void 0x0:_0x1e6414[_0x28a230(0x281)])??_0x28a230(0x3fd);return{'changeset':{'unitID':_0x1d01ec,'type':(0x0,_0x4f9696[_0x28a230(0x438)])(_0x50d83f[_0x28a230(0x1d4)](_0x1d01ec)),'baseRev':_0x169d98[_0x28a230(0x288)](_0x1d01ec),'revision':0x0,'userID':_0x3d245a,'memberID':_0x1bd243,'mutations':_0x195af5},'pendingMutations':_0x2e4b79[_0x28a230(0x328)](_0x195af5[_0x28a230(0x4d4)])};}let _0x1938e9=_0x1e2b23;function _0x3c006b(_0xc5797d,_0x4a6d84,_0xaa1859,_0x194842,_0x3e9ffe){const _0x48ed23=_0x2e0def;let _0x251720=_0x271547(_0xc5797d,_0x3d16d4),_0x2de99f=_0x3e9ffe[_0x48ed23(0x1da)](),_0x27f33b=(_0x2de99f==null?void 0x0:_0x2de99f[_0x48ed23(0x2a1)])??_0x48ed23(0x3fd),_0x1b917a=(_0x2de99f==null?void 0x0:_0x2de99f['memberID'])??_0x48ed23(0x3fd);return{'changeset':{'unitID':_0x4a6d84,'type':(0x0,_0x4f9696[_0x48ed23(0x438)])(_0xaa1859[_0x48ed23(0x1d4)](_0x4a6d84)),'baseRev':_0x194842[_0x48ed23(0x288)](_0x4a6d84),'revision':0x0,'userID':_0x27f33b,'memberID':_0x1b917a,'mutations':_0x251720},'pendingMutations':_0xc5797d[_0x48ed23(0x328)](_0x251720['length'])};}function _0x4c2a00(_0x18f796,_0x3bfe8c,_0x55c39a,_0x37ac79,_0x4ced62){const _0x28f5bf=_0x2e0def;let _0x484c73=_0x18f796[_0x28f5bf(0x3cd)]((_0x4518d6,_0x32bcda)=>{const _0x1e3ddd=_0x28f5bf;let _0x327ac2=_0x4518d6[_0x4518d6['length']-0x1],{id:_0x415b1d}=_0x327ac2??{},{id:_0x535977,type:_0x477b19}=_0x32bcda,_0xeeec59=_0x32bcda['params'];if(_0x415b1d&&_0x415b1d!==_0x535977)throw Error(_0x1e3ddd(0x2d0)+_0x415b1d+_0x1e3ddd(0x441)+_0x535977+'.');if(!_0x327ac2)return[{'id':_0x535977,'type':_0x477b19,'params':{'unitId':_0xeeec59[_0x1e3ddd(0x26e)],'textRanges':_0xeeec59[_0x1e3ddd(0x2b2)],'actions':_0xeeec59[_0x1e3ddd(0x17d)]}}];let _0x2fe6db=_0x327ac2[_0x1e3ddd(0x4b2)];return _0x3397d9(_0x2fe6db,_0xeeec59)?[..._0x4518d6[_0x1e3ddd(0x328)](0x0,-0x1),{..._0x327ac2,'id':_0x535977,'type':_0x477b19,'params':{'unitId':_0xeeec59['unitId'],'textRanges':_0xeeec59[_0x1e3ddd(0x2b2)],'actions':_0x19e1e0[_0x1e3ddd(0x370)][_0x1e3ddd(0x1db)](_0x2fe6db[_0x1e3ddd(0x17d)],_0xeeec59[_0x1e3ddd(0x17d)])}}]:[..._0x4518d6,{'id':_0x535977,'type':_0x477b19,'params':{'unitId':_0xeeec59['unitId'],'textRanges':_0xeeec59['textRanges'],'actions':_0xeeec59[_0x1e3ddd(0x17d)]}}];},[]),_0x40dfca=_0x4ced62['getCurrentUser'](),_0x36b4a1=(_0x40dfca==null?void 0x0:_0x40dfca[_0x28f5bf(0x2a1)])??_0x28f5bf(0x3fd),_0x34963f=(_0x40dfca==null?void 0x0:_0x40dfca['memberID'])??_0x28f5bf(0x3fd);return{'changeset':{'unitID':_0x3bfe8c,'type':(0x0,_0x4f9696['mapDocumentTypeToUniverInstanceType'])(_0x55c39a[_0x28f5bf(0x1d4)](_0x3bfe8c)),'baseRev':_0x37ac79[_0x28f5bf(0x288)](_0x3bfe8c),'revision':0x0,'userID':_0x36b4a1,'memberID':_0x34963f,'mutations':_0x484c73},'pendingMutations':_0x18f796[_0x28f5bf(0x328)](_0x18f796[_0x28f5bf(0x4d4)])};}function _0x3397d9(_0x495071,_0x57dbde){const _0xab3c4c=_0x2e0def;return!_0x5e9454(_0x495071)&&!_0x5e9454(_0x57dbde)&&_0x3f8421(_0x495071[_0xab3c4c(0x17d)],_0x57dbde[_0xab3c4c(0x17d)]);}function _0x5e9454(_0x1716e8){return _0x1716e8['isCompositionEnd']!==void 0x0;}function _0x3f8421(_0x3184f3,_0x3d320f){return _0x514825(_0x3184f3)&&_0x514825(_0x3d320f)&&!_0x4141b4(_0x3184f3)&&!_0x4141b4(_0x3d320f)&&!_0x97862c(_0x3184f3)&&!_0x97862c(_0x3d320f);}function _0x514825(_0x3335ec){const _0x2d91cd=_0x2e0def;return _0x354f3f(_0x3335ec)[_0x2d91cd(0x202)](_0x69e425=>_0x46f627(_0x69e425)&&_0x69e425['et']===_0x2d91cd(0x425));}function _0x97862c(_0x116d1f){const _0x1ee9e0=_0x2e0def;return _0x354f3f(_0x116d1f)['some'](_0xe3612e=>Array[_0x1ee9e0(0x521)](_0xe3612e)||typeof _0xe3612e==_0x1ee9e0(0x464)||typeof _0xe3612e==_0x1ee9e0(0x137));}function _0x4141b4(_0x327d89){const _0x4c8eea=_0x2e0def;return _0x354f3f(_0x327d89)[_0x4c8eea(0x202)](_0x1576e3=>!_0x46f627(_0x1576e3)||_0x1576e3['et']!==_0x4c8eea(0x425)||!Array[_0x4c8eea(0x521)](_0x1576e3['e'])?!0x1:_0x1576e3['e'][_0x4c8eea(0x202)](_0x499f15=>!_0x46f627(_0x499f15)||!_0x46f627(_0x499f15['body'])?!0x1:Object[_0x4c8eea(0x17e)][_0x4c8eea(0x412)][_0x4c8eea(0x1a2)](_0x499f15['body'],_0x4c8eea(0x406))||Object[_0x4c8eea(0x17e)][_0x4c8eea(0x412)]['call'](_0x499f15[_0x4c8eea(0x2c0)],'columnGroups')||Object[_0x4c8eea(0x17e)]['hasOwnProperty'][_0x4c8eea(0x1a2)](_0x499f15[_0x4c8eea(0x2c0)],_0x4c8eea(0x51f))));}function _0x354f3f(_0x87935b){const _0x2386ca=_0x2e0def;if(!Array[_0x2386ca(0x521)](_0x87935b))return[];let _0x4beff8=_0x87935b['includes'](_0x2386ca(0x2c0))?_0x87935b:_0x87935b[_0x2386ca(0x2d5)](_0x4ccc77=>Array[_0x2386ca(0x521)](_0x4ccc77)&&_0x4ccc77[_0x2386ca(0x298)]('body'));if(!Array[_0x2386ca(0x521)](_0x4beff8))return[];let _0x49954e=_0x4beff8['indexOf'](_0x2386ca(0x2c0));return _0x49954e===-0x1?[]:_0x4beff8[_0x2386ca(0x328)](_0x49954e+0x1);}function _0x46f627(_0x9b9b4){const _0x249f99=_0x2e0def;return typeof _0x9b9b4==_0x249f99(0x497)&&!!_0x9b9b4&&!Array[_0x249f99(0x521)](_0x9b9b4);}function _0x1321c6(_0x356809,_0x14671d){const _0x20a919=_0x2e0def;for(let _0xf5dcab of _0x356809[_0x20a919(0x313)]){if(_0xf5dcab['id']!==_0x4f9696[_0x20a919(0x320)]['id'])continue;let _0x406983=_0xf5dcab[_0x20a919(0x4b2)];if((_0x406983==null?void 0x0:_0x406983[_0x20a919(0x26e)])===_0x14671d&&typeof _0x406983[_0x20a919(0x23e)]==_0x20a919(0x137))return{'unitId':_0x406983[_0x20a919(0x26e)],'revision':_0x406983[_0x20a919(0x23e)]};}return null;}var _0x4c766b,_0x83ed29,_0x150490,_0x46a188=class extends Error{constructor(_0x395f9e){const _0x90a7ff=_0x2e0def;super(_0x395f9e instanceof Error?_0x395f9e[_0x90a7ff(0x195)]:typeof _0x395f9e==_0x90a7ff(0x464)?_0x395f9e:_0x90a7ff(0x40d)),this[_0x90a7ff(0x343)]=_0x395f9e,this[_0x90a7ff(0x1d3)]=_0x90a7ff(0x2e7);}},_0x4c249c=class extends Error{constructor(_0x5474d3){const _0x14ce4c=_0x2e0def;var _0x3c8265;super(_0x14ce4c(0x27f)+((_0x3c8265=_0x5474d3[_0x14ce4c(0x33a)])==null?void 0x0:_0x3c8265[_0x14ce4c(0x23e)])+'.'),this['info']=_0x5474d3,this['name']=_0x14ce4c(0x22a);}};let _0xa733fb=function(_0x3724f8){const _0x42d730=_0x2e0def;return _0x3724f8[_0x42d730(0x477)]=_0x42d730(0x1d7),_0x3724f8[_0x42d730(0x4b4)]=_0x42d730(0x28e),_0x3724f8[_0x42d730(0x30f)]='pending',_0x3724f8[_0x42d730(0x32f)]=_0x42d730(0x22b),_0x3724f8[_0x42d730(0x1bc)]=_0x42d730(0x498),_0x3724f8['FETCH_MISS']=_0x42d730(0x260),_0x3724f8[_0x42d730(0x1ff)]=_0x42d730(0x14d),_0x3724f8[_0x42d730(0x2cf)]='offline',_0x3724f8;}({});var _0x50d616=class{constructor(_0x28efd6,_0x3df4ab,_0x25cebf,_0x5cbbc0,_0x2a3553,_0x3ccc3a,_0x2eeee7,_0x37bcdb,_0x71d317){const _0x1de626=_0x2e0def;this[_0x1de626(0x2d8)]=_0x28efd6,this[_0x1de626(0x33d)]=_0x3df4ab,this[_0x1de626(0x4a6)]=_0x2a3553,this[_0x1de626(0x3f7)]=_0x3ccc3a,this[_0x1de626(0x502)]=_0x2eeee7,this['_revisionService']=_0x37bcdb,this[_0x1de626(0x324)]=_0x71d317,_0xc5e065(this,_0x1de626(0x431),null),_0xc5e065(this,_0x1de626(0x39c),[]),this[_0x1de626(0x431)]=_0x25cebf,this[_0x1de626(0x39c)]=_0x5cbbc0;}[_0x2e0def(0x356)](){const _0x479b25=_0x2e0def;return!!this[_0x479b25(0x431)]||this['_pendingMutations']['length']>0x0;}['dispose'](){}[_0x2e0def(0x17b)](){const _0x207622=_0x2e0def;var _0x47091a;return(((_0x47091a=this['_awaitingChangeset'])==null?void 0x0:_0x47091a[_0x207622(0x313)]['length'])??0x0)+this[_0x207622(0x39c)][_0x207622(0x4d4)];}[_0x2e0def(0x269)](_0x1b4c99){const _0x515078=_0x2e0def;return new _0x3786f5(_0x1b4c99[_0x515078(0x4b6)]??0x0,(_0x1c4425,_0x2768ee)=>this[_0x515078(0x4a6)][_0x515078(0x4e9)](_0x1c4425,_0x2768ee),{...this[_0x515078(0x4a6)]['resendTimeouts'],'onResend':_0x741e87=>{const _0x26bbae=_0x515078;var _0x1b2846,_0x374fec;return(_0x1b2846=(_0x374fec=this[_0x26bbae(0x4a6)])[_0x26bbae(0x416)])==null?void 0x0:_0x1b2846[_0x26bbae(0x1a2)](_0x374fec,_0x741e87);}});}[_0x2e0def(0x18f)](_0x3b9fcd){const _0x42d529=_0x2e0def;if(this['_isEchoedAwaitingChangeset'](_0x3b9fcd))return _0x42d529(0x226);if(_0x1321c6(_0x3b9fcd,this[_0x42d529(0x2d8)]))return _0x42d529(0x303);let _0x5c5bdc=this[_0x42d529(0x4f2)]();return _0x3b9fcd['revision']<=_0x5c5bdc?_0x42d529(0x3dd):_0x3b9fcd[_0x42d529(0x23e)]>_0x5c5bdc+0x1?'missing':_0x42d529(0x2a7);}[_0x2e0def(0x197)](_0x56ff43){const _0x31c68f=_0x2e0def;let _0x1fcdec=this['_getCurrentRevision']();return _0x56ff43[_0x31c68f(0x23e)]<=_0x1fcdec?this[_0x31c68f(0x1b8)](_0x56ff43)?_0x31c68f(0x2e9):_0x31c68f(0x290):_0x56ff43[_0x31c68f(0x23e)]>_0x1fcdec+0x1?_0x31c68f(0x3ea):_0x31c68f(0x30c);}[_0x2e0def(0x3a7)](_0xbcf816,_0x514fc4){const _0x4fc87d=_0x2e0def;switch(this['_classifyRemoteChangeset'](_0xbcf816)){case _0x4fc87d(0x226):return this[_0x4fc87d(0x4bd)](_0xbcf816);case _0x4fc87d(0x303):return _0x514fc4[_0x4fc87d(0x13a)](_0xbcf816);case _0x4fc87d(0x3dd):return this;case _0x4fc87d(0x3ea):return this[_0x4fc87d(0x253)](_0xbcf816[_0x4fc87d(0x23e)]),_0x514fc4['onMissing'](_0xbcf816);case'apply':return _0x514fc4[_0x4fc87d(0x2f0)](_0xbcf816);}}[_0x2e0def(0x460)](_0x40fc2a){const _0x3887fa=_0x2e0def;return{'reason':'remote_revert','revert':{'revision':_0x1321c6(_0x40fc2a,this['unitID'])['revision'],'memberId':_0x40fc2a[_0x3887fa(0x281)],'userId':_0x40fc2a['userID']}};}[_0x2e0def(0x3aa)](_0x2667f6){const _0x33a36c=_0x2e0def;return{'reason':_0x2667f6 instanceof _0x46a188?_0x33a36c(0x334):_0x33a36c(0x47c),'message':_0x2667f6 instanceof Error?_0x2667f6[_0x33a36c(0x195)]:typeof _0x2667f6=='string'?_0x2667f6:void 0x0};}[_0x2e0def(0x437)](_0x2179c4){const _0x1c162c=_0x2e0def;return{'reason':_0x2179c4!=null&&_0x2179c4[_0x1c162c(0x25d)]?_0x1c162c(0x1e7):(_0x2179c4==null?void 0x0:_0x2179c4[_0x1c162c(0x1cd)])===_0xc3615a[_0x1c162c(0x36e)]['LICENSE_UNIT_TYPE_REJECTED']?_0x1c162c(0x1fd):'changeset_rejected','message':_0x2179c4==null?void 0x0:_0x2179c4['reason']};}[_0x2e0def(0x246)](_0x47c4df){const _0x5e1fd7=_0x2e0def;return _0x47c4df===_0xc3615a[_0x5e1fd7(0x36e)][_0x5e1fd7(0x49c)]?'license_editing_connections_exceeded':_0x5e1fd7(0x403);}[_0x2e0def(0x253)](_0xd8a541){const _0x5f0039=_0x2e0def;this[_0x5f0039(0x4a6)][_0x5f0039(0x3ce)]({'from':this[_0x5f0039(0x4f2)](),'to':_0xd8a541-0x1});}[_0x2e0def(0x2a8)](_0x4a5108){const _0xd446ea=_0x2e0def;this[_0xd446ea(0x502)]['transformUndoRedo'](this['unitID'],_0x4a5108);}[_0x2e0def(0x336)](_0x16d7e1){const _0x17862d=_0x2e0def;var _0x4fbab3,_0x5598c2;(_0x4fbab3=(_0x5598c2=this[_0x17862d(0x4a6)])[_0x17862d(0x37e)])==null||_0x4fbab3[_0x17862d(0x1a2)](_0x5598c2,_0x16d7e1);}[_0x2e0def(0x177)](_0x539bad){const _0x457306=_0x2e0def;var _0x399af5,_0x1ec94a;return((_0x399af5=(_0x1ec94a=this['_handler'])['onPrepareTransformSelections'])==null?void 0x0:_0x399af5[_0x457306(0x1a2)](_0x1ec94a,_0x539bad))??null;}['_transformIMECache'](_0xec2099){const _0x307b14=_0x2e0def;var _0x486e57,_0x4d428b;return(_0x486e57=(_0x4d428b=this[_0x307b14(0x4a6)])[_0x307b14(0x201)])==null?void 0x0:_0x486e57[_0x307b14(0x1a2)](_0x4d428b,_0xec2099);}['_transformStateCache'](_0x450364){var _0x280ad2,_0x518b64;return(_0x280ad2=(_0x518b64=this['_handler'])['onTransformState'])==null?void 0x0:_0x280ad2['call'](_0x518b64,_0x450364);}[_0x2e0def(0x48a)](_0x4f6dbe){const _0x564d6f=_0x2e0def;var _0x291a99,_0x151d29;return((_0x291a99=(_0x151d29=this[_0x564d6f(0x4a6)])[_0x564d6f(0x42a)])==null?void 0x0:_0x291a99[_0x564d6f(0x1a2)](_0x151d29,_0x4f6dbe))??_0x4f6dbe;}[_0x2e0def(0x274)](_0xe78d5f){const _0x59304f=_0x2e0def;var _0x335faf,_0x47ad60;return((_0x335faf=(_0x47ad60=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x335faf[_0x59304f(0x1a2)](_0x47ad60,_0xe78d5f))??_0xe78d5f;}[_0x2e0def(0x4de)](_0x1e2fb6){const _0x100435=_0x2e0def;if(this['type']===_0x19e1e0[_0x100435(0x3e4)][_0x100435(0x23c)]){let {unitID:_0x1c9179,mutations:_0x3b6fc3,memberID:_0x657f0e}=_0x1e2fb6,_0x2a2e5b=_0x3b6fc3['length']>0x0?_0x3b6fc3[0x0]['params'][_0x100435(0x2b2)]:[];if(Array[_0x100435(0x521)](_0x2a2e5b)&&_0x2a2e5b[_0x100435(0x4d4)]>0x0){var _0x1ea20f,_0x50ea81;(_0x1ea20f=(_0x50ea81=this[_0x100435(0x4a6)])[_0x100435(0x289)])==null||_0x1ea20f[_0x100435(0x1a2)](_0x50ea81,{'unitID':_0x1c9179,'memberID':_0x657f0e,'textRanges':_0x2a2e5b});}}}[_0x2e0def(0x3e3)](){const _0x3931dd=_0x2e0def;var _0x4595bd;(_0x4595bd=this['_localCacheService'])==null||_0x4595bd['updateOfflineData'](this[_0x3931dd(0x2d8)],this[_0x3931dd(0x33d)],this[_0x3931dd(0x431)],this[_0x3931dd(0x39c)]);}[_0x2e0def(0x4f2)](){const _0x70ff79=_0x2e0def;return this[_0x70ff79(0x4c8)][_0x70ff79(0x288)](this[_0x70ff79(0x2d8)]);}[_0x2e0def(0x1d2)](_0x53f4b7){const _0x5c36ff=_0x2e0def;let _0x2d6219=this['_awaitingChangeset'];return!_0x2d6219||!_0x2d6219[_0x5c36ff(0x14c)]||_0x2d6219['reqId']===null||_0x2d6219['reqId']===void 0x0?!0x1:_0x53f4b7[_0x5c36ff(0x2d8)]===_0x2d6219['unitID']&&_0x53f4b7[_0x5c36ff(0x14c)]===_0x2d6219[_0x5c36ff(0x14c)]&&_0x53f4b7['reqId']===_0x2d6219['reqId'];}[_0x2e0def(0x1b8)](_0x271c1a){const _0x570ba9=_0x2e0def;let _0x281f9a=this[_0x570ba9(0x431)];return!(_0x281f9a!=null&&_0x281f9a['sid'])||_0x281f9a[_0x570ba9(0x4b6)]==null||!_0x271c1a['sid']||_0x271c1a[_0x570ba9(0x4b6)]==null?!0x1:_0x271c1a['sid']===_0x281f9a[_0x570ba9(0x14c)]&&_0x271c1a[_0x570ba9(0x4b6)]===_0x281f9a[_0x570ba9(0x4b6)];}[_0x2e0def(0x399)](){const _0x568219=_0x2e0def;this[_0x568219(0x4c8)][_0x568219(0x4c5)](this[_0x568219(0x2d8)]);}[_0x2e0def(0x3c0)](_0x471c5a){const _0x2a578f=_0x2e0def;let _0x57bdf4=this['_transformRemoteChangesetByIMECache'](_0x471c5a);_0x57bdf4=this[_0x2a578f(0x274)](_0x57bdf4);let _0x29e8c2=this[_0x2a578f(0x177)](_0x57bdf4),_0x5b0fa9=(0x0,_0x19e1e0[_0x2a578f(0x529)])(_0x57bdf4[_0x2a578f(0x313)],this['_commandService'],{'fromCollab':!0x0});if(!_0x5b0fa9['result'])throw _0x29e8c2==null||_0x29e8c2[_0x2a578f(0x3fc)](),new _0x46a188(_0x5b0fa9[_0x2a578f(0x340)]);_0x29e8c2==null||_0x29e8c2[_0x2a578f(0x152)](),this['_transformIMECache'](_0x57bdf4),this[_0x2a578f(0x1a3)](_0x57bdf4),this[_0x2a578f(0x2a8)](_0x471c5a),this[_0x2a578f(0x336)](_0x57bdf4),this[_0x2a578f(0x4de)](_0x57bdf4),this['_incrementRevisionNumber']();}};let _0x55714b=class extends _0x50d616{constructor(_0x4fe591,_0x570fb6,_0x584f7b,_0x2faecb,_0x45e6ee,_0x50f34c,_0x323548,_0x22c519,_0x5de94c,_0x301c6b){const _0x33600=_0x2e0def;super(_0x4fe591,_0x570fb6,null,[],_0x584f7b,_0x323548,_0x50f34c,_0x2faecb,_0x301c6b),this[_0x33600(0x196)]=_0x45e6ee,this[_0x33600(0x4b1)]=_0x22c519,this[_0x33600(0x4e2)]=_0x5de94c,this[_0x33600(0x150)]=_0x301c6b,_0xc5e065(this,'status',_0x33600(0x28e));}[_0x2e0def(0x1bf)](_0x17e72c){const _0x856630=_0x2e0def;let _0x4bf163=this[_0x856630(0x196)][_0x856630(0x2e3)](_0x384508,this[_0x856630(0x2d8)],this['type'],[_0x17e72c],this['_handler']);return _0x4bf163[_0x856630(0x1eb)](),_0x4bf163[_0x856630(0x3e3)](),_0x4bf163;}[_0x2e0def(0x180)](_0x6b2dc4){const _0x53c07c=_0x2e0def;return this['_dispatchRemoteChangeset'](_0x6b2dc4,{'onMissing':()=>this['_injector'][_0x53c07c(0x2e3)](_0x28c4f8,this[_0x53c07c(0x2d8)],this[_0x53c07c(0x33d)],null,[],null,[_0x6b2dc4],this[_0x53c07c(0x4a6)],void 0x0),'onApply':()=>this[_0x53c07c(0x2f7)](_0x6b2dc4),'onRemoteRevert':()=>this['_onConflict'](this[_0x53c07c(0x460)](_0x6b2dc4))});}[_0x2e0def(0x2f7)](_0x548695){const _0x29522e=_0x2e0def;try{let _0x503c8b=this['_transformService'][_0x29522e(0x493)](_0x548695,[_0x4f9696['EmptyMutationInfo']]);if((0x0,_0x4f9696[_0x29522e(0x43e)])(_0x503c8b)){let {c1Prime:_0x23e867}=_0x503c8b;return this['_executeRemoteChangeset'](_0x23e867),this;}throw _0x503c8b['error'];}catch(_0x2110c5){return this[_0x29522e(0x4b1)]['error'](_0x2110c5),this[_0x29522e(0x220)](this[_0x29522e(0x3aa)](_0x2110c5));}}[_0x2e0def(0x220)](_0x14ebe7){const _0x3384da=_0x2e0def;return this[_0x3384da(0x196)][_0x3384da(0x2e3)](_0x28fe8b,this['unitID'],this[_0x3384da(0x33d)],null,[],this[_0x3384da(0x4a6)],_0x14ebe7);}[_0x2e0def(0x4bd)](_0x2fd9bb){if(this['_classifyAck'](_0x2fd9bb)==='stale')return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x34add5=_0x2e0def;throw Error(_0x34add5(0x2c9));}[_0x2e0def(0x283)](){return this;}['toggleOffline'](){const _0xfb58d2=_0x2e0def;return this[_0xfb58d2(0x196)][_0xfb58d2(0x2e3)](_0x3e0f8a,this['unitID'],this[_0xfb58d2(0x33d)],null,[],this[_0xfb58d2(0x4a6)]);}[_0x2e0def(0x1b2)](){return this;}[_0x2e0def(0x4a1)](){const _0x4a56cf=_0x2e0def;throw Error(_0x4a56cf(0x1ca));}['fetchMiss'](){const _0x171921=_0x2e0def;let _0x69e9de=this[_0x171921(0x4c8)][_0x171921(0x288)](this[_0x171921(0x2d8)]);return this[_0x171921(0x4a6)]['onMissingChangesets']({'from':_0x69e9de,'to':0x0}),this[_0x171921(0x196)]['createInstance'](_0x28c4f8,this[_0x171921(0x2d8)],this[_0x171921(0x33d)],null,[],null,[],this[_0x171921(0x4a6)],void 0x0);}};_0x55714b=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0['Inject'])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x5,_0x19e1e0[_0x2e0def(0x18e)]),_0x5d2cb5(0x6,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0x7,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0x8,_0x4f9696[_0x2e0def(0x487)]),_0x5d2cb5(0x9,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x55714b);let _0x384508=_0x4c766b=class extends _0x50d616{constructor(_0x392760,_0xadce30,_0x4f7fc1,_0x1527f8,_0x2bbfa3,_0x5e4acb,_0x5133ea,_0x6ad1c,_0x1f199d,_0x25de2c,_0x3c1ad5,_0x164b79,_0x4fa6dd,_0x231a9f){const _0x4acf5d=_0x2e0def;super(_0x392760,_0xadce30,null,_0x4f7fc1,_0x1527f8,_0x1f199d,_0x4fa6dd,_0x5e4acb,_0x231a9f),this[_0x4acf5d(0x196)]=_0x2bbfa3,this[_0x4acf5d(0x41e)]=_0x5133ea,this[_0x4acf5d(0x4b1)]=_0x6ad1c,this[_0x4acf5d(0x409)]=_0x25de2c,this[_0x4acf5d(0x4e2)]=_0x3c1ad5,this[_0x4acf5d(0x4d1)]=_0x164b79,_0xc5e065(this,_0x4acf5d(0x47d),_0x4acf5d(0x270)),_0xc5e065(this,_0x4acf5d(0x3b1),null),_0xc5e065(this,_0x4acf5d(0x38e),null);}['appendMutation'](_0x395597){const _0x1f9d38=_0x2e0def;return this[_0x1f9d38(0x39c)][_0x1f9d38(0x4d0)](_0x395597),this[_0x1f9d38(0x3e3)](),this;}[_0x2e0def(0x180)](_0x2f2f7c){const _0x33bf75=_0x2e0def;return this[_0x33bf75(0x3a7)](_0x2f2f7c,{'onMissing':()=>(this['_clearScheduledTask'](),this['_injector'][_0x33bf75(0x2e3)](_0x28c4f8,this['unitID'],this[_0x33bf75(0x33d)],null,this[_0x33bf75(0x39c)],null,[_0x2f2f7c],this[_0x33bf75(0x4a6)],void 0x0)),'onApply':()=>this[_0x33bf75(0x2f7)](_0x2f2f7c),'onRemoteRevert':()=>this['_onConflict'](this[_0x33bf75(0x460)](_0x2f2f7c))});}['_transformAndApply'](_0x31e90a){const _0x1623ec=_0x2e0def;try{let _0x28b01a=this['_transformService']['transformMutationsWithChangeset'](_0x31e90a,this[_0x1623ec(0x39c)]);if((0x0,_0x4f9696[_0x1623ec(0x43e)])(_0x28b01a)){let {c1Prime:_0x5bf8f1,m2Prime:_0x17c0f7}=_0x28b01a;this[_0x1623ec(0x3c0)](_0x5bf8f1);let _0x2f0db8=this[_0x1623ec(0x196)][_0x1623ec(0x2e3)](_0x4c766b,this['unitID'],this[_0x1623ec(0x33d)],_0x17c0f7,this['_handler']);_0x2f0db8[_0x1623ec(0x3e3)](),this[_0x1623ec(0x527)]();let _0x3e74a9=new Date()['getTime'](),_0x280efa=this[_0x1623ec(0x3b1)]?Math['max'](this[_0x1623ec(0x3b1)]-_0x3e74a9,0x0):this[_0x1623ec(0x3a4)]();return _0x2f0db8['_schedule'](_0x280efa),_0x2f0db8;}throw _0x28b01a[_0x1623ec(0x340)];}catch(_0x4ac3bf){return this[_0x1623ec(0x4b1)][_0x1623ec(0x340)](_0x4ac3bf),this[_0x1623ec(0x220)](this[_0x1623ec(0x3aa)](_0x4ac3bf));}}[_0x2e0def(0x4bd)](_0xa7b0fe){const _0x435f21=_0x2e0def;if(this[_0x435f21(0x197)](_0xa7b0fe)===_0x435f21(0x290))return this;throw Error(_0x435f21(0x19a));}[_0x2e0def(0x34b)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x2e0def(0x283)](){return this;}[_0x2e0def(0x191)](){const _0x3ee3e8=_0x2e0def;return this[_0x3ee3e8(0x527)](),this[_0x3ee3e8(0x196)][_0x3ee3e8(0x2e3)](_0x3e0f8a,this[_0x3ee3e8(0x2d8)],this['type'],null,this[_0x3ee3e8(0x39c)],this[_0x3ee3e8(0x4a6)]);}[_0x2e0def(0x1b2)](){return this;}[_0x2e0def(0x1eb)](_0x4a72d3){const _0x159676=_0x2e0def;let _0x22b560=_0x4a72d3??this[_0x159676(0x3a4)]();this[_0x159676(0x3b1)]=new Date()[_0x159676(0x311)]()+_0x22b560,this[_0x159676(0x38e)]=setTimeout(()=>{const _0x1e2461=_0x159676;this['_clearScheduledTask']();let _0x4e48f0=null;switch(this[_0x1e2461(0x33d)]){case _0x19e1e0[_0x1e2461(0x3e4)]['UNIVER_SHEET']:_0x4e48f0=_0x1e2b23(this[_0x1e2461(0x39c)],this[_0x1e2461(0x2d8)],this[_0x1e2461(0x4d1)],this[_0x1e2461(0x4c8)],this[_0x1e2461(0x41e)]);break;case _0x19e1e0['UniverInstanceType'][_0x1e2461(0x23c)]:_0x4e48f0=this[_0x1e2461(0x39c)][_0x1e2461(0x285)](_0x137a5b=>_0x137a5b['id']===_0x444f1a['RichTextEditingMutation']['id'])?_0x4c2a00(this[_0x1e2461(0x39c)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x1e2461(0x41e)]):_0x1e2b23(this[_0x1e2461(0x39c)],this['unitID'],this[_0x1e2461(0x4d1)],this[_0x1e2461(0x4c8)],this[_0x1e2461(0x41e)]);break;case _0x19e1e0['UniverInstanceType']['UNIVER_SLIDE']:_0x4e48f0=_0x3c006b(this['_pendingMutations'],this[_0x1e2461(0x2d8)],this[_0x1e2461(0x4d1)],this[_0x1e2461(0x4c8)],this['_userManagerService']);break;case _0x19e1e0[_0x1e2461(0x3e4)]['UNIVER_PDF']:_0x4e48f0=_0x1938e9(this[_0x1e2461(0x39c)],this[_0x1e2461(0x2d8)],this['_univerInstanceService'],this['_revisionService'],this[_0x1e2461(0x41e)]);break;case _0x19e1e0[_0x1e2461(0x3e4)][_0x1e2461(0x27b)]:_0x4e48f0=_0x1e2b23(this[_0x1e2461(0x39c)],this[_0x1e2461(0x2d8)],this[_0x1e2461(0x4d1)],this['_revisionService'],this['_userManagerService']);break;case _0x19e1e0[_0x1e2461(0x3e4)]['UNIVER_BASE']:_0x4e48f0=_0x1e2b23(this[_0x1e2461(0x39c)],this[_0x1e2461(0x2d8)],this[_0x1e2461(0x4d1)],this['_revisionService'],this[_0x1e2461(0x41e)]);break;default:throw Error(_0x1e2461(0x4ef)+this[_0x1e2461(0x33d)]+_0x1e2461(0x2db));}let {changeset:_0x10c998,pendingMutations:_0x764aba}=_0x4e48f0,_0x3463c2=this['_createChangesetSubmitter'](_0x10c998);_0x3463c2[_0x1e2461(0x38d)](_0x10c998,_0x10c998[_0x1e2461(0x313)][_0x1e2461(0x4d4)]+_0x764aba[_0x1e2461(0x4d4)]);let _0x1d9a8b=_0x764aba[_0x1e2461(0x4d4)]?this['_injector'][_0x1e2461(0x2e3)](_0x480be6,this[_0x1e2461(0x2d8)],this['type'],_0x10c998,_0x764aba,this[_0x1e2461(0x4a6)],_0x3463c2):this[_0x1e2461(0x196)][_0x1e2461(0x2e3)](_0x4d8940,this[_0x1e2461(0x2d8)],this['type'],_0x10c998,this[_0x1e2461(0x4a6)],_0x3463c2);_0x1d9a8b['_updateLocalCache'](),this['_handler'][_0x1e2461(0x22c)](this,_0x1d9a8b);},_0x22b560);}[_0x2e0def(0x3a4)](){const _0xd892=_0x2e0def;let _0x1b2d2c=this['_configService'][_0xd892(0x277)](_0x21d492);return(_0x1b2d2c==null?void 0x0:_0x1b2d2c['sendChangesetTimeout'])??0x7d0;}['resend'](){const _0x102100=_0x2e0def;throw Error(_0x102100(0x30d));}[_0x2e0def(0x527)](){const _0x5d4377=_0x2e0def;this[_0x5d4377(0x38e)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x2e0def(0x2d2)](){const _0xb837ee=_0x2e0def;this[_0xb837ee(0x527)]();}[_0x2e0def(0x220)](_0x32a283){const _0x39749f=_0x2e0def;return this[_0x39749f(0x527)](),this[_0x39749f(0x196)][_0x39749f(0x2e3)](_0x28fe8b,this[_0x39749f(0x2d8)],this[_0x39749f(0x33d)],null,this['_pendingMutations'],this[_0x39749f(0x4a6)],_0x32a283);}};_0x384508=_0x4c766b=_0x37ed50([_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x3f6)])),_0x5d2cb5(0x7,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0x9,_0x19e1e0['IConfigService']),_0x5d2cb5(0xa,_0x4f9696[_0x2e0def(0x487)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0xc,_0x19e1e0[_0x2e0def(0x18e)]),_0x5d2cb5(0xd,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x384508);let _0x4d8940=_0x83ed29=class extends _0x50d616{constructor(_0x51d735,_0x4004ec,_0x239f40,_0x8fe0a3,_0x14ba93,_0x409297,_0x26a450,_0x38997a,_0x485047,_0x53c15a,_0x421154,_0x4e5138){const _0x3635a4=_0x2e0def;super(_0x51d735,_0x4004ec,_0x239f40,[],_0x8fe0a3,_0x38997a,_0x421154,_0x26a450,_0x4e5138),this[_0x3635a4(0x196)]=_0x409297,this[_0x3635a4(0x4b1)]=_0x485047,this['_transformService']=_0x53c15a,_0xc5e065(this,_0x3635a4(0x47d),'awaiting'),_0xc5e065(this,_0x3635a4(0x1e1),void 0x0),this[_0x3635a4(0x1e1)]=_0x14ba93??this['_createChangesetSubmitter'](_0x239f40),this[_0x3635a4(0x1e1)][_0x3635a4(0x2c2)](()=>({'changeset':this[_0x3635a4(0x431)],'unsyncedMutationCount':this[_0x3635a4(0x17b)]()})),_0x14ba93||this[_0x3635a4(0x1e1)][_0x3635a4(0x418)]();}[_0x2e0def(0x1bf)](_0x397998){const _0x371331=_0x2e0def;this[_0x371331(0x143)]();let _0x40332f=this[_0x371331(0x196)][_0x371331(0x2e3)](_0x480be6,this[_0x371331(0x2d8)],this[_0x371331(0x33d)],this[_0x371331(0x431)],[_0x397998],this[_0x371331(0x4a6)],this[_0x371331(0x1e1)]);return _0x40332f['_updateLocalCache'](),_0x40332f;}[_0x2e0def(0x180)](_0x4b0759){const _0x38ccfd=_0x2e0def;return this[_0x38ccfd(0x3a7)](_0x4b0759,{'onMissing':()=>(this[_0x38ccfd(0x143)](),this[_0x38ccfd(0x196)][_0x38ccfd(0x2e3)](_0x28c4f8,this[_0x38ccfd(0x2d8)],this[_0x38ccfd(0x33d)],this['_awaitingChangeset'],[],null,[_0x4b0759],this[_0x38ccfd(0x4a6)],this[_0x38ccfd(0x1e1)])),'onApply':()=>this[_0x38ccfd(0x2f7)](_0x4b0759),'onRemoteRevert':()=>this[_0x38ccfd(0x220)](this[_0x38ccfd(0x460)](_0x4b0759))});}['_transformAndApply'](_0x3ad1c7){const _0x10993a=_0x2e0def;try{let _0x512654=this['_transformService'][_0x10993a(0x17a)]([_0x3ad1c7],[this['_awaitingChangeset']],!0x1);if((0x0,_0x4f9696['isTransformChangesetsSuccess'])(_0x512654)){let {c1Prime:_0x23bf8b,c2Prime:_0x221f71}=_0x512654;this['_executeRemoteChangeset'](_0x23bf8b[0x0]),_0x221f71[0x0][_0x10993a(0x414)]=this[_0x10993a(0x4f2)](),this[_0x10993a(0x143)]();let _0x38ea78=this[_0x10993a(0x196)][_0x10993a(0x2e3)](_0x83ed29,this[_0x10993a(0x2d8)],this['type'],_0x221f71[0x0],this[_0x10993a(0x4a6)],this[_0x10993a(0x1e1)]);return _0x38ea78[_0x10993a(0x3e3)](),_0x38ea78;}throw _0x512654[_0x10993a(0x340)];}catch(_0x29b976){return this[_0x10993a(0x4b1)][_0x10993a(0x340)](_0x29b976),this[_0x10993a(0x220)](this[_0x10993a(0x3aa)](_0x29b976));}}[_0x2e0def(0x4bd)](_0x4eea50){const _0xa36a17=_0x2e0def;switch(this['_classifyAck'](_0x4eea50)){case _0xa36a17(0x290):return this[_0xa36a17(0x4b1)][_0xa36a17(0x210)](_0xa36a17(0x363),_0xa36a17(0x517)+_0x4eea50['revision']+_0xa36a17(0x489)+this['_getCurrentRevision']()+'.'),this;case _0xa36a17(0x2e9):return this[_0xa36a17(0x1e1)][_0xa36a17(0x2d2)](),this[_0xa36a17(0x1c2)]();case _0xa36a17(0x3ea):return this[_0xa36a17(0x1e1)][_0xa36a17(0x2d2)](),this[_0xa36a17(0x253)](_0x4eea50[_0xa36a17(0x23e)]),this[_0xa36a17(0x196)]['createInstance'](_0x28c4f8,this[_0xa36a17(0x2d8)],this[_0xa36a17(0x33d)],this[_0xa36a17(0x431)],[],_0x4eea50[_0xa36a17(0x23e)],[],this['_handler'],void 0x0);case _0xa36a17(0x30c):return this[_0xa36a17(0x1e1)][_0xa36a17(0x2d2)](),this[_0xa36a17(0x399)](),this[_0xa36a17(0x1c2)]();}}['_toSynced'](){const _0x507229=_0x2e0def;let _0x4a9457=this[_0x507229(0x196)][_0x507229(0x2e3)](_0x55714b,this[_0x507229(0x2d8)],this[_0x507229(0x33d)],this[_0x507229(0x4a6)]);return _0x4a9457['_updateLocalCache'](),_0x4a9457;}[_0x2e0def(0x34b)](_0x2c53c9){const _0x2e52e9=_0x2e0def;return this[_0x2e52e9(0x220)](this[_0x2e52e9(0x437)](_0x2c53c9));}[_0x2e0def(0x283)](_0x31e67d,_0x4a8613){const _0xec0420=_0x2e0def;var _0x36e3af;return _0x31e67d[_0xec0420(0x4b6)]===((_0x36e3af=this[_0xec0420(0x431)])==null?void 0x0:_0x36e3af[_0xec0420(0x4b6)])&&this[_0xec0420(0x1e1)][_0xec0420(0x2b7)](this['_retryReason'](_0x4a8613)),this;}[_0x2e0def(0x191)](){const _0x1cc3f9=_0x2e0def;return this['_submitter'][_0x1cc3f9(0x2d2)](),this[_0x1cc3f9(0x196)]['createInstance'](_0x3e0f8a,this[_0x1cc3f9(0x2d8)],this[_0x1cc3f9(0x33d)],this[_0x1cc3f9(0x431)],[],this['_handler']);}[_0x2e0def(0x1b2)](){return this;}[_0x2e0def(0x4a1)](_0x5a36a1=_0x2e0def(0x189)){const _0x15cdb6=_0x2e0def;this[_0x15cdb6(0x1e1)][_0x15cdb6(0x38d)](this[_0x15cdb6(0x431)],this[_0x15cdb6(0x17b)](),_0x5a36a1);}['_onConflict'](_0x1961e9){const _0x21aa2c=_0x2e0def;return this[_0x21aa2c(0x1e1)][_0x21aa2c(0x2d2)](),this[_0x21aa2c(0x196)]['createInstance'](_0x28fe8b,this[_0x21aa2c(0x2d8)],this['type'],this[_0x21aa2c(0x431)],[],this[_0x21aa2c(0x4a6)],_0x1961e9);}[_0x2e0def(0x2d2)](){const _0x2b5e50=_0x2e0def;this['_submitter'][_0x2b5e50(0x2d2)]();}[_0x2e0def(0x143)](){const _0x5791be=_0x2e0def;this['_submitter'][_0x5791be(0x342)]();}};_0x4d8940=_0x83ed29=_0x37ed50([_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x7,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0x8,_0x19e1e0['ILogService']),_0x5d2cb5(0x9,_0x4f9696[_0x2e0def(0x487)]),_0x5d2cb5(0xa,_0x19e1e0['IUndoRedoService']),_0x5d2cb5(0xb,(0x0,_0x19e1e0['Optional'])(_0x5700e5))],_0x4d8940);let _0x480be6=_0x150490=class extends _0x50d616{constructor(_0x2ce5ca,_0x28f3b7,_0x334865,_0x585ea4,_0x28ff13,_0x245dbf,_0x1c7485,_0x3ca8d0,_0x48cd9d,_0x114c14,_0x3dea4c,_0x359640,_0x41ce21){const _0xca3272=_0x2e0def;super(_0x2ce5ca,_0x28f3b7,_0x334865,_0x585ea4,_0x28ff13,_0x48cd9d,_0x359640,_0x3ca8d0,_0x41ce21),this[_0xca3272(0x196)]=_0x1c7485,this[_0xca3272(0x4b1)]=_0x114c14,this[_0xca3272(0x4e2)]=_0x3dea4c,this[_0xca3272(0x150)]=_0x41ce21,_0xc5e065(this,_0xca3272(0x47d),_0xca3272(0x498)),_0xc5e065(this,_0xca3272(0x1e1),void 0x0),this[_0xca3272(0x1e1)]=_0x245dbf??this[_0xca3272(0x269)](_0x334865),this[_0xca3272(0x1e1)][_0xca3272(0x2c2)](()=>({'changeset':this[_0xca3272(0x431)],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x245dbf||this[_0xca3272(0x1e1)]['armAckTimeout']();}['appendMutation'](_0x583ce6){const _0x379e61=_0x2e0def;return this['_pendingMutations'][_0x379e61(0x4d0)](_0x583ce6),this['_updateLocalCache'](),this;}[_0x2e0def(0x180)](_0x31b052){const _0x316796=_0x2e0def;return this[_0x316796(0x3a7)](_0x31b052,{'onMissing':()=>(this[_0x316796(0x143)](),this['_injector']['createInstance'](_0x28c4f8,this[_0x316796(0x2d8)],this[_0x316796(0x33d)],this['_awaitingChangeset'],this[_0x316796(0x39c)],null,[_0x31b052],this['_handler'],this[_0x316796(0x1e1)])),'onApply':()=>this['_transformAndApply'](_0x31b052),'onRemoteRevert':()=>this['_onConflict'](this[_0x316796(0x460)](_0x31b052))});}[_0x2e0def(0x2f7)](_0x24e959){const _0x2a3f35=_0x2e0def;try{let _0x3fcbe3=this['_transformService'][_0x2a3f35(0x17a)]([_0x24e959],[this[_0x2a3f35(0x431)]],!0x1);if((0x0,_0x4f9696[_0x2a3f35(0x36c)])(_0x3fcbe3)){let {c1Prime:_0x3a3cfb,c2Prime:_0x1c604f}=_0x3fcbe3,_0x3d3799=this[_0x2a3f35(0x4e2)][_0x2a3f35(0x493)](_0x3a3cfb[0x0],this['_pendingMutations']);if((0x0,_0x4f9696[_0x2a3f35(0x43e)])(_0x3d3799)){let {c1Prime:_0x40f7f3,m2Prime:_0x2e9832}=_0x3d3799;this['_executeRemoteChangeset'](_0x40f7f3),_0x1c604f[0x0][_0x2a3f35(0x414)]=this[_0x2a3f35(0x4f2)](),this[_0x2a3f35(0x143)]();let _0x3726be=this[_0x2a3f35(0x196)][_0x2a3f35(0x2e3)](_0x150490,this[_0x2a3f35(0x2d8)],this[_0x2a3f35(0x33d)],_0x1c604f[0x0],_0x2e9832,this['_handler'],this[_0x2a3f35(0x1e1)]);return _0x3726be[_0x2a3f35(0x3e3)](),_0x3726be;}throw _0x3d3799[_0x2a3f35(0x340)];}throw _0x3fcbe3['error'];}catch(_0x1c8992){return this[_0x2a3f35(0x4b1)]['error'](_0x1c8992),this[_0x2a3f35(0x220)](this[_0x2a3f35(0x3aa)](_0x1c8992));}}[_0x2e0def(0x4bd)](_0x1b5851){const _0x54d3f7=_0x2e0def;switch(this[_0x54d3f7(0x197)](_0x1b5851)){case _0x54d3f7(0x290):return this[_0x54d3f7(0x4b1)][_0x54d3f7(0x210)]('[AwaitingWithPendingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x1b5851[_0x54d3f7(0x23e)]+_0x54d3f7(0x489)+this[_0x54d3f7(0x4f2)]()+'.'),this;case _0x54d3f7(0x2e9):return this['_submitter']['dispose'](),this[_0x54d3f7(0x3a8)]();case _0x54d3f7(0x3ea):return this[_0x54d3f7(0x1e1)][_0x54d3f7(0x2d2)](),this[_0x54d3f7(0x253)](_0x1b5851[_0x54d3f7(0x23e)]),this[_0x54d3f7(0x196)]['createInstance'](_0x28c4f8,this[_0x54d3f7(0x2d8)],this[_0x54d3f7(0x33d)],this['_awaitingChangeset'],this[_0x54d3f7(0x39c)],_0x1b5851[_0x54d3f7(0x23e)],[],this[_0x54d3f7(0x4a6)],void 0x0);case _0x54d3f7(0x30c):return this['_submitter']['dispose'](),this[_0x54d3f7(0x399)](),this[_0x54d3f7(0x3a8)]();}}[_0x2e0def(0x3a8)](){const _0x4f28f4=_0x2e0def;let _0x5655f5=this[_0x4f28f4(0x196)][_0x4f28f4(0x2e3)](_0x384508,this[_0x4f28f4(0x2d8)],this[_0x4f28f4(0x33d)],this['_pendingMutations'],this[_0x4f28f4(0x4a6)]);return _0x5655f5[_0x4f28f4(0x1eb)](),_0x5655f5[_0x4f28f4(0x3e3)](),_0x5655f5;}['onRemoteRej'](_0x574542){const _0x3c0bb3=_0x2e0def;return this[_0x3c0bb3(0x220)](this['_rejectionInfo'](_0x574542));}[_0x2e0def(0x283)](_0xea0329,_0x3d8d8a){const _0x39126a=_0x2e0def;var _0x27a9ed;return _0xea0329[_0x39126a(0x4b6)]===((_0x27a9ed=this['_awaitingChangeset'])==null?void 0x0:_0x27a9ed[_0x39126a(0x4b6)])&&this[_0x39126a(0x1e1)]['requestRetry'](this[_0x39126a(0x246)](_0x3d8d8a)),this;}[_0x2e0def(0x191)](){const _0x580919=_0x2e0def;return this[_0x580919(0x1e1)][_0x580919(0x2d2)](),this[_0x580919(0x196)]['createInstance'](_0x3e0f8a,this['unitID'],this[_0x580919(0x33d)],this[_0x580919(0x431)],this[_0x580919(0x39c)],this[_0x580919(0x4a6)]);}[_0x2e0def(0x1b2)](){return this;}[_0x2e0def(0x4a1)](_0xa14de3=_0x2e0def(0x189)){const _0x3a1f7d=_0x2e0def;this[_0x3a1f7d(0x1e1)][_0x3a1f7d(0x38d)](this['_awaitingChangeset'],this[_0x3a1f7d(0x17b)](),_0xa14de3);}['_onConflict'](_0x18db84){const _0x3d2381=_0x2e0def;return this[_0x3d2381(0x1e1)][_0x3d2381(0x2d2)](),this[_0x3d2381(0x196)][_0x3d2381(0x2e3)](_0x28fe8b,this[_0x3d2381(0x2d8)],this[_0x3d2381(0x33d)],this[_0x3d2381(0x431)],this[_0x3d2381(0x39c)],this['_handler'],_0x18db84);}[_0x2e0def(0x2d2)](){const _0x290e84=_0x2e0def;this[_0x290e84(0x1e1)][_0x290e84(0x2d2)]();}['_detachSubmitter'](){const _0x42857d=_0x2e0def;this[_0x42857d(0x1e1)][_0x42857d(0x342)]();}};_0x480be6=_0x150490=_0x37ed50([_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x7,(0x0,_0x19e1e0['Inject'])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xa,_0x4f9696['ITransformService']),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x18e)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x480be6);let _0x28fe8b=class extends _0x50d616{constructor(_0x1ee084,_0x383986,_0x1da250,_0x1f2f77,_0x3060e5,_0x3768bb,_0x1b5c3c,_0x18bf64,_0x4c94a0,_0x24b7f5,_0x229037,_0x531ae0,_0x4d1dae,_0x3cfeda){const _0x4013b7=_0x2e0def;var _0x485aff;super(_0x1ee084,_0x383986,_0x1da250,_0x1f2f77,_0x3060e5,_0x18bf64,_0x4c94a0,_0x24b7f5,_0x3cfeda),this[_0x4013b7(0x491)]=_0x3768bb,this[_0x4013b7(0x243)]=_0x1b5c3c,this[_0x4013b7(0x41e)]=_0x229037,this[_0x4013b7(0x4b1)]=_0x531ae0,this[_0x4013b7(0x3d1)]=_0x4d1dae,this[_0x4013b7(0x150)]=_0x3cfeda,_0xc5e065(this,'status',_0x4013b7(0x14d)),_0xc5e065(this,_0x4013b7(0x3ca),void 0x0);let _0x4141b1=((_0x485aff=this[_0x4013b7(0x41e)][_0x4013b7(0x1da)]())==null?void 0x0:_0x485aff['userID'])??'';this[_0x4013b7(0x3ca)]=_0x1da250||_0x1f2f77[_0x4013b7(0x4d4)]?{'unitID':_0x1ee084,'userId':_0x4141b1||void 0x0,'type':_0x383986,'rev':this[_0x4013b7(0x4f2)](),'awaitingChangeset':_0x1da250,'mutations':_0x1f2f77}:null,this[_0x4013b7(0x20e)](),this['_showConflictProcessingNotification'](),this['_prepareConflictRecovery'](_0x4141b1)[_0x4013b7(0x2bd)](_0x305a24=>this[_0x4013b7(0x4b1)][_0x4013b7(0x340)](_0x305a24));}async['_prepareConflictRecovery'](_0xee1ef5){const _0x36a48b=_0x2e0def;var _0x37fd29,_0x4b45e0,_0x5e7cac,_0x531742;await((_0x37fd29=this[_0x36a48b(0x324)])==null||(_0x4b45e0=_0x37fd29['backupOfflineData'])==null?void 0x0:_0x4b45e0['call'](_0x37fd29,this[_0x36a48b(0x2d8)],this['info']['reason'],_0xee1ef5)[_0x36a48b(0x2bd)](()=>void 0x0));let _0x24dc57=!0x0;try{var _0x5d44e8;await((_0x5d44e8=this[_0x36a48b(0x324)])==null?void 0x0:_0x5d44e8[_0x36a48b(0x461)](this[_0x36a48b(0x2d8)],_0xee1ef5));}catch{_0x24dc57=!0x1,this[_0x36a48b(0x3d1)][_0x36a48b(0x445)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x36a48b(0x2d8)],'userId':_0xee1ef5});}(_0x5e7cac=(_0x531742=this[_0x36a48b(0x4a6)])[_0x36a48b(0x3c7)])==null||_0x5e7cac['call'](_0x531742,this[_0x36a48b(0x491)],this[_0x36a48b(0x3ca)],_0x24dc57);}[_0x2e0def(0x1bf)](){return this;}[_0x2e0def(0x180)](){return this;}[_0x2e0def(0x4bd)](){return this;}[_0x2e0def(0x34b)](){return this;}[_0x2e0def(0x283)](){return this;}[_0x2e0def(0x191)](){return this;}[_0x2e0def(0x1b2)](){return this;}[_0x2e0def(0x4a1)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_showConflictProcessingNotification'](){const _0x5c2498=_0x2e0def;this[_0x5c2498(0x3d1)][_0x5c2498(0x445)]({'id':_0x5c2498(0x2b0),'unitID':this['unitID']});}[_0x2e0def(0x20e)](){const _0x5ad24f=_0x2e0def;this[_0x5ad24f(0x243)][_0x5ad24f(0x134)](new _0x442e6a[(_0x5ad24f(0x365))](this[_0x5ad24f(0x2d8)])['id'],!0x1);}};_0x28fe8b=_0x37ed50([_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x419)])),_0x5d2cb5(0x7,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0x8,_0x19e1e0['IUndoRedoService']),_0x5d2cb5(0x9,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0xa,(0x0,_0x19e1e0['Inject'])(_0x19e1e0[_0x2e0def(0x3f6)])),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0['Inject'])(_0x1bde53)),_0x5d2cb5(0xd,(0x0,_0x19e1e0['Optional'])(_0x5700e5))],_0x28fe8b);let _0x3e0f8a=class extends _0x50d616{constructor(_0x37af14,_0x3f30ef,_0x4f6b4e,_0x5eff77,_0x262e63,_0x257d94,_0x2bb5f9,_0x37a9b9,_0x1e59dd,_0x40d11f,_0xbf689f){const _0x26099e=_0x2e0def;super(_0x37af14,_0x3f30ef,_0x4f6b4e,_0x5eff77,_0x262e63,_0x37a9b9,_0x1e59dd,_0x2bb5f9,_0xbf689f),this[_0x26099e(0x196)]=_0x257d94,this[_0x26099e(0x4b1)]=_0x40d11f,_0xc5e065(this,'status',_0x26099e(0x167));}[_0x2e0def(0x1bf)](_0x53e5a9){const _0x4d69ae=_0x2e0def;return this[_0x4d69ae(0x39c)]['push'](_0x53e5a9),this[_0x4d69ae(0x3e3)](),this;}[_0x2e0def(0x180)](_0x40dcc7){const _0x350050=_0x2e0def;return this['_logService'][_0x350050(0x210)](_0x350050(0x36f),_0x350050(0x1b1)+_0x40dcc7[_0x350050(0x23e)]+'.'),this;}[_0x2e0def(0x4bd)](_0x4d4349){const _0x1b5eb2=_0x2e0def;return this[_0x1b5eb2(0x4b1)][_0x1b5eb2(0x210)](_0x1b5eb2(0x36f),_0x1b5eb2(0x3b4)+_0x4d4349['revision']+'.'),this;}['onRemoteRej'](){const _0x1f13be=_0x2e0def;return this[_0x1f13be(0x4b1)][_0x1f13be(0x210)]('[OfflineState]',_0x1f13be(0x317)),this;}[_0x2e0def(0x283)](){return this;}[_0x2e0def(0x191)](){return this;}[_0x2e0def(0x1b2)](){const _0x42ff63=_0x2e0def;let {_injector:_0x4f648d,_pendingMutations:_0x169621,_awaitingChangeset:_0x414280,unitID:_0x13e409,_handler:_0x293f0a,type:_0x494a12}=this,_0x144bd3=_0x528754(_0x4f648d,_0x13e409,_0x494a12,_0x414280,_0x169621,_0x293f0a);return _0x144bd3 instanceof _0x384508?_0x144bd3[_0x42ff63(0x1eb)]():(_0x144bd3 instanceof _0x480be6||_0x144bd3 instanceof _0x4d8940)&&_0x144bd3[_0x42ff63(0x4a1)](),_0x144bd3;}['resend'](){const _0xc44919=_0x2e0def;throw Error(_0xc44919(0x141));}};_0x3e0f8a=_0x37ed50([_0x5d2cb5(0x5,(0x0,_0x19e1e0['Inject'])(_0x19e1e0['Injector'])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x7,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x18e)]),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xa,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x3e0f8a);let _0x28c4f8=class extends _0x50d616{constructor(_0x321389,_0x3a1541,_0x2fb3cd,_0x5dfc06,_0x1cd523,_0x2dd956,_0x5527ea,_0x6fcf7d,_0x358d9e,_0x4399ed,_0x4e951c,_0x38fe01,_0x13a5ea,_0x25763e,_0x452527){const _0x5a2d96=_0x2e0def;super(_0x321389,_0x3a1541,_0x2fb3cd,_0x5dfc06,_0x5527ea,_0x38fe01,_0x13a5ea,_0x4399ed,_0x452527),this[_0x5a2d96(0x1f0)]=_0x1cd523,this[_0x5a2d96(0x166)]=_0x2dd956,this[_0x5a2d96(0x1e1)]=_0x6fcf7d,this['_injector']=_0x358d9e,this[_0x5a2d96(0x4b1)]=_0x4e951c,this['_transformService']=_0x25763e,this[_0x5a2d96(0x150)]=_0x452527,_0xc5e065(this,_0x5a2d96(0x47d),_0x5a2d96(0x260));}['onMissedChangesetFetched'](_0xe4a7a7){const _0x2dd485=_0x2e0def;try{if(this[_0x2dd485(0x2d9)](_0xe4a7a7)[_0x2dd485(0x4dd)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x2dd485(0x2d9)]([...this[_0x2dd485(0x166)]][_0x2dd485(0x2d7)]((_0x410e38,_0x62c3ee)=>_0x410e38[_0x2dd485(0x23e)]-_0x62c3ee[_0x2dd485(0x23e)]))[_0x2dd485(0x4dd)])return this[_0x2dd485(0x166)]=[],this['_updateLocalCache'](),this['_handler'][_0x2dd485(0x3ce)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x1409dd=this['_awaitingChangeset'],_0x93ecaa=this[_0x2dd485(0x39c)],_0x5cbbba;if(_0x1409dd&&_0x93ecaa[_0x2dd485(0x4d4)]!==0x0)_0x5cbbba=this[_0x2dd485(0x196)]['createInstance'](_0x480be6,this[_0x2dd485(0x2d8)],this[_0x2dd485(0x33d)],_0x1409dd,_0x93ecaa,this[_0x2dd485(0x4a6)],this[_0x2dd485(0x1e1)]);else{if(_0x1409dd&&_0x93ecaa[_0x2dd485(0x4d4)]===0x0)_0x1409dd[_0x2dd485(0x414)]=this[_0x2dd485(0x4f2)](),_0x5cbbba=this[_0x2dd485(0x196)][_0x2dd485(0x2e3)](_0x4d8940,this[_0x2dd485(0x2d8)],this['type'],_0x1409dd,this[_0x2dd485(0x4a6)],this[_0x2dd485(0x1e1)]);else{if(_0x93ecaa[_0x2dd485(0x4d4)]!==0x0){let _0xf51f69=this[_0x2dd485(0x196)][_0x2dd485(0x2e3)](_0x384508,this[_0x2dd485(0x2d8)],this['type'],_0x93ecaa,this[_0x2dd485(0x4a6)]);_0xf51f69[_0x2dd485(0x1eb)](),_0x5cbbba=_0xf51f69;}else _0x5cbbba=this[_0x2dd485(0x196)][_0x2dd485(0x2e3)](_0x55714b,this[_0x2dd485(0x2d8)],this[_0x2dd485(0x33d)],this[_0x2dd485(0x4a6)]);}}return _0x5cbbba[_0x2dd485(0x3e3)](),_0x5cbbba;}catch(_0x2b2853){return _0x2b2853 instanceof _0x4c249c?(this[_0x2dd485(0x4b1)][_0x2dd485(0x210)](_0x2dd485(0x3ae),_0x2b2853[_0x2dd485(0x195)]),this[_0x2dd485(0x220)](_0x2b2853['info'])):(this[_0x2dd485(0x4b1)][_0x2dd485(0x340)](_0x2dd485(0x3ae),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2b2853),this[_0x2dd485(0x220)](this[_0x2dd485(0x3aa)](_0x2b2853)));}}[_0x2e0def(0x2d9)](_0xdb4a4c){const _0xa075=_0x2e0def;this[_0xa075(0x4a8)]();for(let _0xbf603e=0x0;_0xbf603e<_0xdb4a4c[_0xa075(0x4d4)];_0xbf603e++){let _0x3f3d9b=_0xdb4a4c[_0xbf603e];switch(this[_0xa075(0x18f)](_0x3f3d9b)){case _0xa075(0x226):{let _0x35167f=this['_getCurrentRevision']();if(_0x3f3d9b['revision']>_0x35167f+0x1)return{'missingChangesets':!0x0};_0x3f3d9b['revision']<=_0x35167f?this[_0xa075(0x471)]():this[_0xa075(0x455)]();break;}case _0xa075(0x303):throw new _0x4c249c(this[_0xa075(0x460)](_0x3f3d9b));case _0xa075(0x3dd):break;case _0xa075(0x3ea):return{'missingChangesets':!0x0};case _0xa075(0x2a7):this[_0xa075(0x23a)](_0x3f3d9b),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x2e0def(0x23a)](_0x10c54b){const _0x3bbfdc=_0x2e0def;let _0x2343ff=_0x10c54b,_0x5620af=this[_0x3bbfdc(0x431)];if(_0x5620af){let _0x4f4dcf=this[_0x3bbfdc(0x4e2)][_0x3bbfdc(0x17a)]([_0x10c54b],[_0x5620af],!0x1);if(!(0x0,_0x4f9696['isTransformChangesetsSuccess'])(_0x4f4dcf))throw _0x4f4dcf['error'];_0x2343ff=_0x4f4dcf[_0x3bbfdc(0x3ab)][0x0],_0x5620af=_0x4f4dcf[_0x3bbfdc(0x2ba)][0x0];}let _0x200e67=this[_0x3bbfdc(0x39c)];if(_0x200e67[_0x3bbfdc(0x4d4)]){let _0x5c9a3d=this[_0x3bbfdc(0x4e2)][_0x3bbfdc(0x493)](_0x2343ff,_0x200e67);if(!(0x0,_0x4f9696['isTransformMutationsWithChangesetSuccess'])(_0x5c9a3d))throw _0x5c9a3d[_0x3bbfdc(0x340)];_0x2343ff=_0x5c9a3d[_0x3bbfdc(0x3ab)],_0x200e67=_0x5c9a3d['m2Prime'];}this[_0x3bbfdc(0x3c0)](_0x2343ff),_0x5620af&&(_0x5620af[_0x3bbfdc(0x414)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x5620af,this[_0x3bbfdc(0x39c)]=_0x200e67;}[_0x2e0def(0x4a8)](){const _0x4d8033=_0x2e0def;if(!this['_awaitingChangeset']||this[_0x4d8033(0x1f0)]==null)return;let _0x424584=this[_0x4d8033(0x4f2)]();if(this[_0x4d8033(0x1f0)]<=_0x424584)throw Error(_0x4d8033(0x3f9)+this['_acknowledgedAwaitingRevision']+'.');this[_0x4d8033(0x1f0)]===_0x424584+0x1&&this[_0x4d8033(0x455)]();}[_0x2e0def(0x455)](){const _0x29ebfa=_0x2e0def;this[_0x29ebfa(0x399)](),this[_0x29ebfa(0x471)]();}[_0x2e0def(0x471)](){const _0x43df72=_0x2e0def;this[_0x43df72(0x431)]=null,this[_0x43df72(0x1f0)]=null,this[_0x43df72(0x42c)]();}[_0x2e0def(0x42c)](){const _0x10ce11=_0x2e0def;var _0x3eb3b0;(_0x3eb3b0=this[_0x10ce11(0x1e1)])==null||_0x3eb3b0[_0x10ce11(0x2d2)](),this[_0x10ce11(0x1e1)]=void 0x0;}['dispose'](){const _0x511660=_0x2e0def;this[_0x511660(0x42c)]();}[_0x2e0def(0x4a1)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x2426c9){const _0x49f5ff=_0x2e0def;return this[_0x49f5ff(0x39c)][_0x49f5ff(0x4d0)](_0x2426c9),this['_updateLocalCache'](),this;}[_0x2e0def(0x180)](_0x1139d8){const _0x59a3a7=_0x2e0def;return this[_0x59a3a7(0x166)][_0x59a3a7(0x4d0)](_0x1139d8),this;}[_0x2e0def(0x4bd)](_0x988872){const _0xc8165a=_0x2e0def;let _0x3e184f=this[_0xc8165a(0x197)](_0x988872);if(this['_awaitingChangeset']){switch(_0x3e184f){case _0xc8165a(0x2e9):this[_0xc8165a(0x471)]();break;case _0xc8165a(0x290):break;case'next':this[_0xc8165a(0x455)]();break;case _0xc8165a(0x3ea):this[_0xc8165a(0x1f0)]=_0x988872['revision'],this['_disposeSubmitter']();}return this;}if(_0x3e184f===_0xc8165a(0x290))return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2e0def(0x34b)](_0x26376e){const _0x1aed6a=_0x2e0def;return this[_0x1aed6a(0x220)](this[_0x1aed6a(0x437)](_0x26376e));}[_0x2e0def(0x283)](_0x31f627,_0x42a248){const _0x5bd416=_0x2e0def;var _0x4c04cb;return this[_0x5bd416(0x1f0)]!=null||_0x31f627['reqId']!==((_0x4c04cb=this['_awaitingChangeset'])==null?void 0x0:_0x4c04cb[_0x5bd416(0x4b6)])||(this['_submitter']??=this[_0x5bd416(0x269)](this[_0x5bd416(0x431)]),this[_0x5bd416(0x1e1)][_0x5bd416(0x2b7)](this[_0x5bd416(0x246)](_0x42a248))),this;}[_0x2e0def(0x191)](){const _0x3d4019=_0x2e0def;return this[_0x3d4019(0x42c)](),this[_0x3d4019(0x196)][_0x3d4019(0x2e3)](_0x3e0f8a,this[_0x3d4019(0x2d8)],this[_0x3d4019(0x33d)],this[_0x3d4019(0x431)],this[_0x3d4019(0x39c)],this['_handler']);}['toggleOnline'](){return this;}[_0x2e0def(0x220)](_0x4cb120){const _0x195454=_0x2e0def;return this['_disposeSubmitter'](),this[_0x195454(0x196)][_0x195454(0x2e3)](_0x28fe8b,this[_0x195454(0x2d8)],this[_0x195454(0x33d)],this[_0x195454(0x431)],this['_pendingMutations'],this[_0x195454(0x4a6)],_0x4cb120);}};_0x28c4f8=_0x37ed50([_0x5d2cb5(0x8,(0x0,_0x19e1e0['Inject'])(_0x19e1e0['Injector'])),_0x5d2cb5(0x9,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xc,_0x19e1e0[_0x2e0def(0x18e)]),_0x5d2cb5(0xd,_0x4f9696[_0x2e0def(0x487)]),_0x5d2cb5(0xe,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x28c4f8);function _0x528754(_0x26b0d9,_0xc3cbe3,_0x50b95d,_0x844a34,_0x307859,_0x41b9bf){const _0x51326a=_0x2e0def;return _0x844a34&&_0x307859['length']?_0x26b0d9[_0x51326a(0x2e3)](_0x480be6,_0xc3cbe3,_0x50b95d,_0x844a34,_0x307859,_0x41b9bf,void 0x0):_0x844a34?_0x26b0d9[_0x51326a(0x2e3)](_0x4d8940,_0xc3cbe3,_0x50b95d,_0x844a34,_0x41b9bf,void 0x0):_0x307859['length']?_0x26b0d9[_0x51326a(0x2e3)](_0x384508,_0xc3cbe3,_0x50b95d,_0x307859,_0x41b9bf):_0x26b0d9[_0x51326a(0x2e3)](_0x55714b,_0xc3cbe3,_0x50b95d,_0x41b9bf);}let _0x149470=class extends _0x19e1e0[_0x2e0def(0x505)]{get[_0x2e0def(0x237)](){const _0x191b3c=_0x2e0def;return this[_0x191b3c(0x4ac)];}constructor(_0x5ab673,_0x9dd56a,_0xfab95f,_0x45627e,_0x58606f,_0x20caf4,_0x17b682,_0x542414,_0x1fe176,_0x15f09b,_0x148779,_0x14a75f,_0x2709e3,_0x353a77){const _0x54ef1c=_0x2e0def;super(),this[_0x54ef1c(0x2d8)]=_0x5ab673,this[_0x54ef1c(0x144)]=_0x9dd56a,this[_0x54ef1c(0x4dc)]=_0xfab95f,this[_0x54ef1c(0x196)]=_0x45627e,this[_0x54ef1c(0x2bf)]=_0x58606f,this[_0x54ef1c(0x156)]=_0x20caf4,this[_0x54ef1c(0x4c8)]=_0x17b682,this['_eventService']=_0x542414,this[_0x54ef1c(0x4d1)]=_0x1fe176,this['_logService']=_0x15f09b,this[_0x54ef1c(0x3f7)]=_0x148779,this[_0x54ef1c(0x243)]=_0x14a75f,this[_0x54ef1c(0x345)]=_0x2709e3,this[_0x54ef1c(0x324)]=_0x353a77,_0xc5e065(this,'_state$',new _0x144f8e['BehaviorSubject'](null)),_0xc5e065(this,_0x54ef1c(0x50f),this[_0x54ef1c(0x439)][_0x54ef1c(0x3e8)]()),_0xc5e065(this,_0x54ef1c(0x4ac),void 0x0),_0xc5e065(this,_0x54ef1c(0x361),!0x1),_0xc5e065(this,_0x54ef1c(0x35b),''),_0xc5e065(this,'_changesetReqId',0x0),_0xc5e065(this,_0x54ef1c(0x1a1),this[_0x54ef1c(0x50f)][_0x54ef1c(0x251)]((0x0,_0x144f8e[_0x54ef1c(0x417)])(_0x556daa=>_0x556daa?_0x556daa['status']:_0x54ef1c(0x167)),(0x0,_0x144f8e['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_0xc5e065(this,_0x54ef1c(0x428),new _0x144f8e['Subject']()),_0xc5e065(this,_0x54ef1c(0x321),this['_changesetResend$']['asObservable']()),_0xc5e065(this,_0x54ef1c(0x1cc),new _0x144f8e['Subject']()),_0xc5e065(this,_0x54ef1c(0x37d),this[_0x54ef1c(0x1cc)][_0x54ef1c(0x3e8)]()),_0xc5e065(this,_0x54ef1c(0x15b),!0x1),_0xc5e065(this,_0x54ef1c(0x46f),[]);}async[_0x2e0def(0x1c6)](){const _0x6469a=_0x2e0def;if(this[_0x6469a(0x237)])throw Error(_0x6469a(0x3bf));await this['_init']();}['pauseCollaboration'](){const _0x3a5e1d=_0x2e0def;return this[_0x3a5e1d(0x361)]=!0x0,(0x0,_0x19e1e0[_0x3a5e1d(0x228)])(()=>{const _0x2d7935=_0x3a5e1d;this[_0x2d7935(0x361)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x2e0def(0x49e)](_0x3e6e5f){this['_onLocalMutation'](_0x3e6e5f);}['hasWritePending'](){const _0xfa86f6=_0x2e0def;var _0xf3818;return((_0xf3818=this[_0xfa86f6(0x4ac)])==null?void 0x0:_0xf3818['hasLocalChanges']())??!0x1;}[_0x2e0def(0x2d2)](){const _0x416129=_0x2e0def;var _0x13df4a;super[_0x416129(0x2d2)](),(_0x13df4a=this[_0x416129(0x4ac)])==null||_0x13df4a['dispose'](),this[_0x416129(0x428)][_0x416129(0x31e)](),this[_0x416129(0x1cc)][_0x416129(0x31e)]();}[_0x2e0def(0x4bf)](_0x5b6943){const _0xa96da1=_0x2e0def;this[_0xa96da1(0x4ac)]=_0x5b6943,this[_0xa96da1(0x439)][_0xa96da1(0x30c)](_0x5b6943);}async['_init'](){const _0x3ced6f=_0x2e0def;if(this[_0x3ced6f(0x4bf)](await this[_0x3ced6f(0x2a6)]()),this[_0x3ced6f(0x345)]){var _0x4d537f;(_0x4d537f=this[_0x3ced6f(0x345)])==null||_0x4d537f[_0x3ced6f(0x44c)](this[_0x3ced6f(0x2d8)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x3ced6f(0x18d)](this[_0x3ced6f(0x2d8)])[_0x3ced6f(0x341)](_0x1f82e7=>{const _0x194ad8=_0x3ced6f;this['_logService']['debug']('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x1f82e7),_0x1f82e7===0x1?(this[_0x194ad8(0x300)][_0x194ad8(0x445)]({'id':_0x194ad8(0x1be)}),this[_0x194ad8(0x243)]['updatePermissionPoint'](new _0x442e6a['WorkbookEditablePermission'](this[_0x194ad8(0x2d8)])['id'],!0x1),this[_0x194ad8(0x243)]['setShowComponents'](!0x1)):(this[_0x194ad8(0x243)][_0x194ad8(0x134)](new _0x442e6a[(_0x194ad8(0x365))](this[_0x194ad8(0x2d8)])['id'],!0x0),this[_0x194ad8(0x243)][_0x194ad8(0x393)](!0x0));}));}let _0x598141=!0x1;return this[_0x3ced6f(0x47f)](this[_0x3ced6f(0x144)][_0x3ced6f(0x3e1)][_0x3ced6f(0x341)](_0x27c6a3=>{const _0xb78b64=_0x3ced6f;_0x27c6a3===0x3?this[_0xb78b64(0x499)](_0x598141):_0x27c6a3===0x2&&(_0x598141=!0x0,this[_0xb78b64(0x1ac)]());})),this['disposeWithMe'](this['session'][_0x3ced6f(0x4fb)]['subscribe'](_0x498440=>{const _0x2eb396=_0x3ced6f;try{switch(_0x498440[_0x2eb396(0x1f2)]){case _0x4f9696[_0x2eb396(0x257)][_0x2eb396(0x360)]:this[_0x2eb396(0x154)]((0x0,_0x4f9696['parseProtocolChangeset'])(_0x498440[_0x2eb396(0x28c)]));break;case _0x4f9696['CollaborationEvent'][_0x2eb396(0x3b2)]:this[_0x2eb396(0x24a)](_0x498440[_0x2eb396(0x28c)]);break;case _0x4f9696[_0x2eb396(0x257)][_0x2eb396(0x1c7)]:this[_0x2eb396(0x3e7)]({'isPermissionRej':!0x1,'reason':_0x498440['reason'],'code':_0x498440['code']});break;case _0x4f9696[_0x2eb396(0x257)][_0x2eb396(0x28b)]:{let _0x3e9d64=_0x498440;this[_0x2eb396(0x4f3)](_0x3e9d64['data'],_0x3e9d64[_0x2eb396(0x1cd)]);break;}case _0x4f9696[_0x2eb396(0x257)][_0x2eb396(0x4b0)]:this[_0x2eb396(0x433)](_0x498440[_0x2eb396(0x28c)][_0x2eb396(0x2f2)][_0x2eb396(0x417)](_0x1498a0=>(0x0,_0x4f9696[_0x2eb396(0x1d9)])(_0x1498a0)));break;case _0x4f9696['CollaborationEvent']['PERMISSION_REJ']:this[_0x2eb396(0x3e7)]({'isPermissionRej':!0x0,'reason':_0x498440[_0x2eb396(0x2cb)],'code':_0x498440[_0x2eb396(0x1cd)]});break;case _0x4f9696[_0x2eb396(0x257)]['UNISCRIPT_RUN']:}}catch(_0x171753){throw console[_0x2eb396(0x340)](_0x2eb396(0x41a),_0x171753),_0x171753;}})),this[_0x3ced6f(0x4ac)];}[_0x2e0def(0x3a5)](){const _0x51e33c=_0x2e0def;this[_0x51e33c(0x15b)]=!0x1;}[_0x2e0def(0x37f)](){const _0x2de1d7=_0x2e0def;if(this['_transitionLocked'])throw Error(_0x2de1d7(0x4ff));this[_0x2de1d7(0x15b)]=!0x0;}[_0x2e0def(0x38a)](_0x186ea0){const _0x3bb7a6=_0x2e0def;this[_0x3bb7a6(0x37f)]();try{this[_0x3bb7a6(0x4bf)](_0x186ea0());}finally{this['_unlockTransition']();}}[_0x2e0def(0x2a0)](_0x3c6049){this['_transit'](()=>this['_state']['appendMutation'](_0x3c6049));}['_onRemoteChangeset'](_0x1e5da8){const _0x53b6cf=_0x2e0def;this['_collaborationPaused']?this[_0x53b6cf(0x46f)][_0x53b6cf(0x4d0)](_0x1e5da8):this['_applyRemoteChangeset'](_0x1e5da8);}['_exhaustRemoteChangesetQueue'](){const _0x33bf5c=_0x2e0def;this[_0x33bf5c(0x46f)][_0x33bf5c(0x307)](_0x16eb6d=>this[_0x33bf5c(0x3b6)](_0x16eb6d)),this['_remoteChangesetQueue']=[];}[_0x2e0def(0x3b6)](_0x2aee5c){const _0x4cda80=_0x2e0def;let _0x570650=this[_0x4cda80(0x2bf)]['interceptor'][_0x4cda80(0x518)](this[_0x4cda80(0x2bf)][_0x4cda80(0x21c)]['getInterceptPoints']()[_0x4cda80(0x3a6)])(_0x2aee5c[_0x4cda80(0x313)],null)||_0x2aee5c['mutations'],_0x4d0d5b={..._0x2aee5c,'mutations':_0x570650};this[_0x4cda80(0x38a)](()=>this[_0x4cda80(0x4ac)][_0x4cda80(0x180)](_0x4d0d5b));}['_onRemoteACK'](_0x4f6b3f){const _0x2c676a=_0x2e0def;this[_0x2c676a(0x38a)](()=>this[_0x2c676a(0x4ac)][_0x2c676a(0x4bd)](_0x4f6b3f));}['_onRemoteRejected'](_0x3d9a7b){const _0x267c02=_0x2e0def;this[_0x267c02(0x38a)](()=>this[_0x267c02(0x4ac)]['onRemoteRej'](_0x3d9a7b));}['_onRemoteRetry'](_0x4fad5d,_0x1b2ed1){const _0x430d38=_0x2e0def;this['_transit'](()=>this[_0x430d38(0x4ac)][_0x430d38(0x283)](_0x4fad5d,_0x1b2ed1));}[_0x2e0def(0x433)](_0x5bd730){const _0x5321fc=_0x2e0def;let _0x5a06f1=this['_state'];if(!(_0x5a06f1 instanceof _0x28c4f8))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x475679=_0x5bd730['map'](_0x3701a5=>{const _0x5dcda1=_0xa473;let _0x353a67=this['_compressMutationService'][_0x5dcda1(0x21c)][_0x5dcda1(0x518)](this['_compressMutationService']['interceptor'][_0x5dcda1(0x309)]()['COMPRESS_MUTATION_APPLY'])(_0x3701a5[_0x5dcda1(0x313)],null)||_0x3701a5[_0x5dcda1(0x313)];return{..._0x3701a5,'mutations':_0x353a67};});this['_transit'](()=>_0x5a06f1[_0x5321fc(0x16f)](_0x475679));}[_0x2e0def(0x1ac)](){const _0x18b168=_0x2e0def;this[_0x18b168(0x38a)](()=>this[_0x18b168(0x4ac)][_0x18b168(0x191)]());}['_toggleOnline'](_0x1948ea=!0x1){const _0x3ea223=_0x2e0def;this[_0x3ea223(0x38a)](()=>this[_0x3ea223(0x4ac)][_0x3ea223(0x1b2)]());let _0x56255b=this[_0x3ea223(0x4ac)];_0x1948ea&&_0x56255b instanceof _0x55714b&&this[_0x3ea223(0x38a)](()=>_0x56255b[_0x3ea223(0x41f)]());}async['_createInitialState'](){return new Promise(_0xfc021e=>{const _0x254987=_0xa473;this[_0x254987(0x144)][_0x254987(0x3e1)][_0x254987(0x251)]((0x0,_0x144f8e[_0x254987(0x374)])(0x1))[_0x254987(0x341)](async _0x5df249=>{const _0x360524=_0x254987;_0xfc021e(await this[_0x360524(0x391)](_0x5df249===0x3));});});}[_0x2e0def(0x216)](){const _0x207279=_0x2e0def;let _0x49b695=this[_0x207279(0x2d8)],_0x1a43e6=this[_0x207279(0x196)]['get'](_0x19e1e0[_0x207279(0x4f4)])['getConfig'](_0x21d492);return{'resendTimeouts':{'ackTimeout':_0x1a43e6==null?void 0x0:_0x1a43e6[_0x207279(0x160)],'maxAckTimeout':_0x1a43e6==null?void 0x0:_0x1a43e6[_0x207279(0x4f0)]},'onStateChange':(_0xdd1fce,_0x1cfc38)=>{const _0x5f352a=_0x207279;if(_0xdd1fce!==this[_0x5f352a(0x4ac)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0xdd1fce[_0x5f352a(0x47d)]+'\x0aAfter:\x20'+_0x1cfc38[_0x5f352a(0x47d)]+_0x5f352a(0x2e8)+this[_0x5f352a(0x4ac)][_0x5f352a(0x47d)]);this['_updateState'](_0x1cfc38);},'onSendChangeset':(_0x4d4e2b,_0x2df843)=>{const _0x3cc2ab=_0x207279;_0x4d4e2b[_0x3cc2ab(0x14c)]||(_0x4d4e2b[_0x3cc2ab(0x14c)]=this[_0x3cc2ab(0x35b)],_0x4d4e2b[_0x3cc2ab(0x4b6)]=++this[_0x3cc2ab(0x2fc)]);let _0x48f558={'eventID':_0x4f9696['CollaborationEvent'][_0x3cc2ab(0x2e6)],'data':{'unitID':_0x4d4e2b[_0x3cc2ab(0x2d8)],'unitType':this[_0x3cc2ab(0x4dc)],'changeset':_0x4d4e2b,'memberID':this[_0x3cc2ab(0x144)][_0x3cc2ab(0x168)]()}};return this[_0x3cc2ab(0x144)][_0x3cc2ab(0x388)](_0x48f558,this[_0x3cc2ab(0x2d8)],_0x2df843);},'onConflict':(_0x230e7e,_0x42f483,_0x107127)=>{const _0x2ae3b3=_0x207279;this[_0x2ae3b3(0x1cc)][_0x2ae3b3(0x402)]||this[_0x2ae3b3(0x1cc)][_0x2ae3b3(0x30c)]({'unitID':_0x49b695,..._0x230e7e,'localChanges':_0x42f483,'cacheCleared':_0x107127});},'onChangesetResend':_0x31072d=>{const _0x1545ba=_0x207279;this[_0x1545ba(0x4b1)]['debug'](_0x1545ba(0x26b),_0x1545ba(0x4a0)+_0x31072d['reqId']+'\x20('+_0x31072d['reason']+_0x1545ba(0x420)+_0x31072d['attempt']+')'),queueMicrotask(()=>{const _0x1fe864=_0x1545ba;this[_0x1fe864(0x428)][_0x1fe864(0x402)]||this['_changesetResend$']['next']({'unitID':_0x49b695,..._0x31072d});});},'onMissingChangesets':({from:_0x41a922,to:_0x4e405d})=>{const _0xf6584c=_0x207279;this[_0xf6584c(0x4b1)][_0xf6584c(0x210)](_0xf6584c(0x26b),_0xf6584c(0x1c4)+_0x41a922+_0xf6584c(0x3e2)+_0x4e405d);let _0x5c9828={'eventID':_0x4f9696[_0xf6584c(0x257)][_0xf6584c(0x444)],'data':{'unitID':_0x49b695,'unitType':this['_type'],'from':_0x41a922,'to':_0x4e405d}};this[_0xf6584c(0x144)][_0xf6584c(0x388)](_0x5c9828,this[_0xf6584c(0x2d8)]);}};}async[_0x2e0def(0x391)](_0x18152d){const _0x504537=_0x2e0def;var _0x2f95cd;let _0x5d3dbd=await((_0x2f95cd=this[_0x504537(0x324)])==null?void 0x0:_0x2f95cd[_0x504537(0x293)](this[_0x504537(0x2d8)])),_0x4da452=(_0x5d3dbd==null?void 0x0:_0x5d3dbd[_0x504537(0x313)])??[],_0x593957=(_0x5d3dbd==null?void 0x0:_0x5d3dbd['awaitingChangeset'])??null,_0x5b39e3=!!(_0x593957!=null&&_0x593957['sid'])&&!!(_0x593957!=null&&_0x593957[_0x504537(0x4b6)]);this[_0x504537(0x35b)]=_0x5b39e3?_0x593957['sid']:(0x0,_0x4f9696[_0x504537(0x512)])(),this[_0x504537(0x2fc)]=_0x5b39e3?_0x593957[_0x504537(0x4b6)]:0x0;let _0x3a9843=this[_0x504537(0x2d8)];try{this[_0x504537(0x2ac)](_0x593957,_0x4da452);}catch(_0x28ebaf){this[_0x504537(0x4b1)][_0x504537(0x340)](_0x28ebaf);}let _0x50f8e3=this[_0x504537(0x216)]();if(_0x18152d){let _0x3eebb3=_0x528754(this[_0x504537(0x196)],_0x3a9843,this[_0x504537(0x4dc)],_0x593957,_0x4da452,_0x50f8e3);return _0x3eebb3 instanceof _0x384508?_0x3eebb3['_schedule']():(_0x3eebb3 instanceof _0x480be6||_0x3eebb3 instanceof _0x4d8940)&&_0x3eebb3[_0x504537(0x4a1)](),_0x3eebb3;}return this[_0x504537(0x196)][_0x504537(0x2e3)](_0x3e0f8a,_0x3a9843,this['_type'],_0x593957,_0x4da452,_0x50f8e3);}[_0x2e0def(0x2ac)](_0x16e389,_0x113f95){const _0x52f897=_0x2e0def;var _0x345f65,_0x17b531;let _0x158e03=this[_0x52f897(0x2bf)][_0x52f897(0x21c)][_0x52f897(0x518)](this[_0x52f897(0x2bf)]['interceptor']['getInterceptPoints']()[_0x52f897(0x3a6)]);(_0x345f65=_0x158e03((_0x16e389==null?void 0x0:_0x16e389[_0x52f897(0x313)])||[],null))==null||_0x345f65[_0x52f897(0x307)](_0x2db1fc=>this[_0x52f897(0x3f7)][_0x52f897(0x383)](_0x2db1fc['id'],_0x2db1fc[_0x52f897(0x4b2)])),(_0x17b531=_0x158e03(_0x113f95||[],null))==null||_0x17b531[_0x52f897(0x307)](_0x52a3bc=>this[_0x52f897(0x3f7)][_0x52f897(0x383)](_0x52a3bc['id'],_0x52a3bc['params']));}};_0x149470=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0['Injector'])),_0x5d2cb5(0x4,(0x0,_0x19e1e0['Inject'])(_0x4f9696[_0x2e0def(0x352)])),_0x5d2cb5(0x5,(0x0,_0x19e1e0['Inject'])(_0x19e1e0[_0x2e0def(0x3f0)])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x7,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x1bde53)),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x472208)),_0x5d2cb5(0xd,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x149470);let _0x24fcb7=class extends _0x149470{constructor(_0x42f599,_0x56d3ce,_0x1f4eb2,_0x567632,_0x49e927,_0x287f5d,_0x4ebe70,_0x58e024,_0x488e42,_0x1a67fa,_0x2072b1,_0x11a51c,_0x2ed2c6,_0x496105,_0xd2bbb8){const _0xe65345=_0x2e0def;super(_0x42f599,_0x1f4eb2,_0x56d3ce,_0x567632,_0x49e927,_0x287f5d,_0x4ebe70,_0x58e024,_0x488e42,_0x1a67fa,_0x2072b1,_0x11a51c,_0x496105,_0xd2bbb8),this[_0xe65345(0x2d8)]=_0x42f599,this[_0xe65345(0x33d)]=_0x56d3ce,this[_0xe65345(0x37c)]=_0x2ed2c6,_0xc5e065(this,'_handlerCallback',null);}[_0x2e0def(0x244)](_0x6ab24c){this['_handlerCallback']=_0x6ab24c;}['dispose'](){const _0x54225c=_0x2e0def;this[_0x54225c(0x27a)]=null,super[_0x54225c(0x2d2)]();}[_0x2e0def(0x216)](){const _0x593058=_0x2e0def;let _0x2b85dd=super[_0x593058(0x216)]();return _0x2b85dd[_0x593058(0x201)]=_0xda35e9=>{const _0x347d9c=_0x593058;var _0x3c28c7,_0x7d4910;return(_0x3c28c7=this['_handlerCallback'])==null||(_0x7d4910=_0x3c28c7['onTransformIME'])==null?void 0x0:_0x7d4910[_0x347d9c(0x1a2)](_0x3c28c7,_0xda35e9);},_0x2b85dd[_0x593058(0x338)]=_0x52c1d7=>{const _0xa68834=_0x593058;var _0x580920,_0x47f690;return(_0x580920=this[_0xa68834(0x27a)])==null||(_0x47f690=_0x580920[_0xa68834(0x338)])==null?void 0x0:_0x47f690[_0xa68834(0x1a2)](_0x580920,_0x52c1d7);},_0x2b85dd[_0x593058(0x164)]=_0x23dfee=>{const _0x2960df=_0x593058;var _0x1bc863,_0x2c037a;return((_0x1bc863=this[_0x2960df(0x27a)])==null||(_0x2c037a=_0x1bc863[_0x2960df(0x164)])==null?void 0x0:_0x2c037a[_0x2960df(0x1a2)](_0x1bc863,_0x23dfee))??null;},_0x2b85dd['onTransformSelections']=_0x593ee3=>{const _0x48f9bf=_0x593058;var _0x90ff6c,_0x68bda9;return(_0x90ff6c=this[_0x48f9bf(0x27a)])==null||(_0x68bda9=_0x90ff6c[_0x48f9bf(0x37e)])==null?void 0x0:_0x68bda9['call'](_0x90ff6c,_0x593ee3);},_0x2b85dd[_0x593058(0x289)]=_0x39d1a5=>{const _0x4894e5=_0x593058;var _0x3b85b1,_0x19adce;return(_0x3b85b1=this[_0x4894e5(0x27a)])==null||(_0x19adce=_0x3b85b1[_0x4894e5(0x289)])==null?void 0x0:_0x19adce[_0x4894e5(0x1a2)](_0x3b85b1,_0x39d1a5);},_0x2b85dd[_0x593058(0x42a)]=_0x3807be=>{const _0x3ecf57=_0x593058;var _0x2a063e,_0x2962ba;return((_0x2a063e=this[_0x3ecf57(0x27a)])==null||(_0x2962ba=_0x2a063e[_0x3ecf57(0x42a)])==null?void 0x0:_0x2962ba['call'](_0x2a063e,_0x3807be))??_0x3807be;},_0x2b85dd[_0x593058(0x32c)]=_0x3bae18=>{const _0x7e4253=_0x593058;var _0x8594a4,_0x2c47ac;return((_0x8594a4=this['_handlerCallback'])==null||(_0x2c47ac=_0x8594a4[_0x7e4253(0x32c)])==null?void 0x0:_0x2c47ac[_0x7e4253(0x1a2)](_0x8594a4,_0x3bae18))??_0x3bae18;},_0x2b85dd;}async[_0x2e0def(0x467)](){const _0x264830=_0x2e0def;let _0x25473d=await super[_0x264830(0x467)]();return this[_0x264830(0x47f)](this[_0x264830(0x37c)][_0x264830(0x1b5)]['subscribe'](_0x361d3e=>{const _0xd9be7c=_0x264830;if(_0x361d3e==null||_0x361d3e[_0xd9be7c(0x26e)]!==this[_0xd9be7c(0x2d8)])return;let {commandId:_0x466639,redoState:_0x2f2868,unitId:_0x31d7ef}=_0x361d3e,_0x16d051={'id':_0x466639,'type':_0x19e1e0[_0xd9be7c(0x51d)][_0xd9be7c(0x21f)],'params':{'unitId':_0x31d7ef,'actions':_0x2f2868[_0xd9be7c(0x17d)],'textRanges':null}};this['_onLocalMutation'](_0x16d051);})),this[_0x264830(0x47f)](this[_0x264830(0x3f7)][_0x264830(0x2f5)]((_0x3a0b8b,_0x20e931)=>{const _0x3edd61=_0x264830;if(_0x3a0b8b[_0x3edd61(0x33d)]!==_0x19e1e0['CommandType'][_0x3edd61(0x21f)]||_0x20e931!=null&&_0x20e931[_0x3edd61(0x415)]||_0x20e931!=null&&_0x20e931['onlyLocal']||_0x3a0b8b['id']===_0x444f1a['RichTextEditingMutation']['id'])return;let _0x6d165a=_0x3a0b8b['params'];if((_0x6d165a==null?void 0x0:_0x6d165a[_0x3edd61(0x26e)])!==this[_0x3edd61(0x2d8)])return;let _0xabe84c=_0x3a0b8b,_0x2effcc=this[_0x3edd61(0x2bf)][_0x3edd61(0x21c)][_0x3edd61(0x518)](this[_0x3edd61(0x2bf)]['interceptor'][_0x3edd61(0x309)]()[_0x3edd61(0x392)])([_0xabe84c],this['_univerInstanceService'])||[_0xabe84c];this[_0x3edd61(0x2a0)](_0x2effcc[0x0]);})),_0x25473d;}};_0x24fcb7=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x352)])),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x3f0)])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696['RevisionService'])),_0x5d2cb5(0x7,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x1bde53)),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x444f1a[_0x2e0def(0x43c)])),_0x5d2cb5(0xd,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x472208)),_0x5d2cb5(0xe,(0x0,_0x19e1e0['Optional'])(_0x5700e5))],_0x24fcb7);let _0x47d8cb=class extends _0x149470{constructor(_0x223f84,_0x5e45d5,_0x78b797,_0x23748c,_0x59fab4,_0x19de44,_0x56cbb6,_0x4e40b7,_0x5df286,_0x35711a,_0x87a9b8,_0x1faa8d,_0x5d0bcc,_0x49261c){const _0x185142=_0x2e0def;super(_0x223f84,_0x78b797,_0x5e45d5,_0x23748c,_0x59fab4,_0x19de44,_0x56cbb6,_0x4e40b7,_0x5df286,_0x35711a,_0x87a9b8,_0x1faa8d,_0x5d0bcc,_0x49261c),this[_0x185142(0x2d8)]=_0x223f84,this[_0x185142(0x33d)]=_0x5e45d5;}async[_0x2e0def(0x467)](){const _0x19e0b6=_0x2e0def;let _0x904f93=await super[_0x19e0b6(0x467)]();return this['disposeWithMe'](this[_0x19e0b6(0x3f7)][_0x19e0b6(0x2f5)]((_0xf81974,_0x456482)=>{const _0x42bd57=_0x19e0b6;if(_0xf81974['type']!==_0x19e1e0[_0x42bd57(0x51d)][_0x42bd57(0x21f)]||_0x456482!=null&&_0x456482[_0x42bd57(0x415)]||_0x456482!=null&&_0x456482[_0x42bd57(0x217)])return;let _0x1d15c6=_0xf81974[_0x42bd57(0x4b2)];if((_0x1d15c6==null?void 0x0:_0x1d15c6[_0x42bd57(0x26e)])!==this[_0x42bd57(0x2d8)])return;let _0x92be2=_0xf81974,_0x4fc287=this[_0x42bd57(0x2bf)]['interceptor'][_0x42bd57(0x518)](this['_compressMutationService'][_0x42bd57(0x21c)]['getInterceptPoints']()[_0x42bd57(0x392)])([_0x92be2],this['_univerInstanceService'])||[_0x92be2];this['_onLocalMutation'](_0x4fc287[0x0]);})),_0x904f93;}};_0x47d8cb=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0['Inject'])(_0x19e1e0['Injector'])),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x352)])),_0x5d2cb5(0x5,(0x0,_0x19e1e0['Inject'])(_0x19e1e0['LocaleService'])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x7,(0x0,_0x19e1e0['Inject'])(_0x1bde53)),_0x5d2cb5(0x8,_0x19e1e0['IUniverInstanceService']),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x472208)),_0x5d2cb5(0xd,(0x0,_0x19e1e0['Optional'])(_0x5700e5))],_0x47d8cb);let _0x550742=class extends _0x149470{constructor(_0x12ae37,_0x2a2376,_0x360594,_0x1cf66a,_0x3bf011,_0x13cbf5,_0x55488b,_0x7d1d75,_0x5a757a,_0x3f3eb0,_0x4d6a71,_0x1e82a9,_0x1da32c,_0xd77daf,_0xace2e6){const _0x48e7f0=_0x2e0def;super(_0x12ae37,_0x360594,_0x2a2376,_0x1cf66a,_0x3bf011,_0x13cbf5,_0x55488b,_0x5a757a,_0x3f3eb0,_0x4d6a71,_0x1e82a9,_0x1da32c,_0xd77daf,_0xace2e6),this[_0x48e7f0(0x2d8)]=_0x12ae37,this[_0x48e7f0(0x33d)]=_0x2a2376,this[_0x48e7f0(0x1ad)]=_0x7d1d75;}['_createHandler'](){const _0x34cfb2=_0x2e0def;let _0x4f06b6=super[_0x34cfb2(0x216)]();return _0x4f06b6[_0x34cfb2(0x37e)]=_0x137888=>this[_0x34cfb2(0x1ad)][_0x34cfb2(0x322)](_0x137888),_0x4f06b6;}async['_init'](){const _0x35ee25=_0x2e0def;let _0x4c3db5=await super['_init']();return this['disposeWithMe'](this[_0x35ee25(0x3f7)][_0x35ee25(0x2f5)]((_0x3b37db,_0x17401d)=>{const _0x4e1e41=_0x35ee25;if(_0x3b37db['type']!==_0x19e1e0['CommandType'][_0x4e1e41(0x21f)]||_0x17401d!=null&&_0x17401d[_0x4e1e41(0x415)]||_0x17401d!=null&&_0x17401d[_0x4e1e41(0x217)])return;let _0x44aee6=_0x3b37db['params'];if((_0x44aee6==null?void 0x0:_0x44aee6[_0x4e1e41(0x26e)])!==this[_0x4e1e41(0x2d8)])return;let _0x43f480=_0x3b37db,_0x4dad87=this['_compressMutationService'][_0x4e1e41(0x21c)][_0x4e1e41(0x518)](this[_0x4e1e41(0x2bf)][_0x4e1e41(0x21c)][_0x4e1e41(0x309)]()['COMPRESS_MUTATION_SEND'])([_0x43f480],this['_univerInstanceService'])||[_0x43f480];this[_0x4e1e41(0x2a0)](_0x4dad87[0x0]);})),_0x4c3db5;}};_0x550742=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0['Inject'])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x352)])),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0['LocaleService'])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x7,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x95e1bd)),_0x5d2cb5(0x8,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x1bde53)),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xc,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0xd,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x472208)),_0x5d2cb5(0xe,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x550742);let _0x27bbc8=class extends _0x149470{constructor(_0x1a3acf,_0x1f8bfb,_0x4b5df4,_0x53cd5e,_0x3a200d,_0x13876a,_0x3d1335,_0x9e3158,_0x2e4b84,_0x3b89c8,_0x31003a,_0x91db0f,_0x4203d6,_0x598ab1){const _0x5f2e4c=_0x2e0def;super(_0x1a3acf,_0x4b5df4,_0x1f8bfb,_0x53cd5e,_0x3a200d,_0x13876a,_0x3d1335,_0x9e3158,_0x2e4b84,_0x3b89c8,_0x31003a,_0x91db0f,_0x4203d6,_0x598ab1),this[_0x5f2e4c(0x2d8)]=_0x1a3acf,this[_0x5f2e4c(0x33d)]=_0x1f8bfb;}async[_0x2e0def(0x467)](){const _0x21938a=_0x2e0def;let _0x3574fe=await super[_0x21938a(0x467)]();return this['disposeWithMe'](this['_commandService'][_0x21938a(0x2f5)]((_0x451233,_0x2c363b)=>{const _0x16eea3=_0x21938a;if(_0x451233[_0x16eea3(0x33d)]!==_0x19e1e0[_0x16eea3(0x51d)]['MUTATION']||_0x2c363b!=null&&_0x2c363b[_0x16eea3(0x415)]||_0x2c363b!=null&&_0x2c363b[_0x16eea3(0x217)])return;let _0x5895cc=_0x451233['params'];if((_0x5895cc==null?void 0x0:_0x5895cc[_0x16eea3(0x26e)])!==this[_0x16eea3(0x2d8)])return;let _0x5347df=_0x451233,_0x531648=this['_compressMutationService'][_0x16eea3(0x21c)][_0x16eea3(0x518)](this['_compressMutationService'][_0x16eea3(0x21c)][_0x16eea3(0x309)]()[_0x16eea3(0x392)])([_0x5347df],this[_0x16eea3(0x4d1)])||[_0x5347df];this[_0x16eea3(0x2a0)](_0x531648[0x0]);})),_0x3574fe;}};_0x27bbc8=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0['Injector'])),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x352)])),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x3f0)])),_0x5d2cb5(0x6,(0x0,_0x19e1e0['Inject'])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x7,(0x0,_0x19e1e0['Inject'])(_0x1bde53)),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x472208)),_0x5d2cb5(0xd,(0x0,_0x19e1e0['Optional'])(_0x5700e5))],_0x27bbc8);let _0x5344a5=class extends _0x149470{constructor(_0x384f11,_0xb5b4d1,_0xe7a756,_0x1efd08,_0x2c1983,_0x2f1d6b,_0x1d171b,_0x48bc4c,_0x1fc91f,_0xcbcf81,_0x346a84,_0x2cef09,_0x1470cb,_0x4a3a98){const _0x5aa17b=_0x2e0def;super(_0x384f11,_0xe7a756,_0xb5b4d1,_0x1efd08,_0x2c1983,_0x2f1d6b,_0x1d171b,_0x48bc4c,_0x1fc91f,_0xcbcf81,_0x346a84,_0x2cef09,_0x1470cb,_0x4a3a98),this[_0x5aa17b(0x2d8)]=_0x384f11,this[_0x5aa17b(0x33d)]=_0xb5b4d1;}async[_0x2e0def(0x467)](){const _0x5b4412=_0x2e0def;let _0x420830=await super['_init']();return this[_0x5b4412(0x47f)](this['_commandService']['onMutationExecutedForCollab']((_0xb662b0,_0x4866d6)=>{const _0x331334=_0x5b4412;if(_0xb662b0[_0x331334(0x33d)]!==_0x19e1e0[_0x331334(0x51d)][_0x331334(0x21f)]||_0x4866d6!=null&&_0x4866d6[_0x331334(0x415)]||_0x4866d6!=null&&_0x4866d6[_0x331334(0x217)])return;let _0x4d553e=_0xb662b0[_0x331334(0x4b2)];if((_0x4d553e==null?void 0x0:_0x4d553e[_0x331334(0x26e)])!==this[_0x331334(0x2d8)])return;let _0x42bafc=_0xb662b0,_0x20ffa9=this['_compressMutationService']['interceptor'][_0x331334(0x518)](this[_0x331334(0x2bf)]['interceptor'][_0x331334(0x309)]()[_0x331334(0x392)])([_0x42bafc],this[_0x331334(0x4d1)])||[_0x42bafc];this[_0x331334(0x2a0)](_0x20ffa9[0x0]);})),_0x420830;}};_0x5344a5=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696['CompressMutationService'])),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0['LocaleService'])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x4cd)])),_0x5d2cb5(0x7,(0x0,_0x19e1e0['Inject'])(_0x1bde53)),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x9,_0x19e1e0['ILogService']),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0['Optional'])(_0x472208)),_0x5d2cb5(0xd,(0x0,_0x19e1e0['Optional'])(_0x5700e5))],_0x5344a5);let _0x3e1efe=class extends _0x149470{constructor(_0x1bc8d4,_0x34ba68,_0x429546,_0x40e52e,_0x56a5fe,_0x33c743,_0x11ff83,_0xbaeafd,_0x1ee891,_0x22b446,_0x13fcd4,_0x516488,_0x121253,_0x2b3ccd){const _0x37c350=_0x2e0def;super(_0x1bc8d4,_0x429546,_0x34ba68,_0x40e52e,_0x56a5fe,_0x33c743,_0x11ff83,_0xbaeafd,_0x1ee891,_0x22b446,_0x13fcd4,_0x516488,_0x121253,_0x2b3ccd),this[_0x37c350(0x2d8)]=_0x1bc8d4,this[_0x37c350(0x33d)]=_0x34ba68;}async[_0x2e0def(0x467)](){const _0x3b76ce=_0x2e0def;let _0x5cc867=await super[_0x3b76ce(0x467)]();return this[_0x3b76ce(0x47f)](this[_0x3b76ce(0x3f7)][_0x3b76ce(0x2f5)]((_0x7c001c,_0x16b188)=>{const _0x3e1c92=_0x3b76ce;if(_0x7c001c['type']!==_0x19e1e0[_0x3e1c92(0x51d)][_0x3e1c92(0x21f)]||_0x16b188!=null&&_0x16b188[_0x3e1c92(0x415)]||_0x16b188!=null&&_0x16b188[_0x3e1c92(0x217)])return;let _0x3af1ab=_0x7c001c['params'];if((_0x3af1ab==null?void 0x0:_0x3af1ab[_0x3e1c92(0x26e)])!==this[_0x3e1c92(0x2d8)])return;let _0x1efac4=_0x7c001c,_0x3b26f9=this['_compressMutationService'][_0x3e1c92(0x21c)][_0x3e1c92(0x518)](this[_0x3e1c92(0x2bf)][_0x3e1c92(0x21c)][_0x3e1c92(0x309)]()[_0x3e1c92(0x392)])([_0x1efac4],this[_0x3e1c92(0x4d1)])||[_0x1efac4];this[_0x3e1c92(0x2a0)](_0x3b26f9[0x0]);})),_0x5cc867;}};_0x3e1efe=_0x37ed50([_0x5d2cb5(0x3,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x4,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x352)])),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x3f0)])),_0x5d2cb5(0x6,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696['RevisionService'])),_0x5d2cb5(0x7,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x1bde53)),_0x5d2cb5(0x8,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x9,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0xa,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0xb,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0xc,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x472208)),_0x5d2cb5(0xd,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x3e1efe);let _0x4cfbe5=(0x0,_0x19e1e0['createIdentifier'])(_0x2e0def(0x1fc));function _0x5f4593(_0x19ef07){const _0x433d1b=_0x2e0def;let _0x1d2e47=_0x19ef07[_0x433d1b(0x28c)],_0x564f8f=JSON[_0x433d1b(0x48c)](_0x1d2e47);switch(_0x564f8f['cmd']){case _0xc3615a[_0x433d1b(0x349)]['HEARTBEAT']:case _0xc3615a['CombCmd']['HELLO']:{let _0x4a42ab=_0x564f8f[_0x433d1b(0x15f)];return{..._0x564f8f,'data':_0x4a42ab,'cmd':_0x564f8f[_0x433d1b(0x43f)]};}case _0xc3615a['CombCmd'][_0x433d1b(0x35a)]:{let _0x21b385=_0x564f8f[_0x433d1b(0x450)];return{..._0x564f8f,'data':_0x21b385,'cmd':_0x564f8f['cmd']};}case _0xc3615a[_0x433d1b(0x349)][_0x433d1b(0x224)]:{let _0x121652=_0x564f8f[_0x433d1b(0x503)];switch(_0x121652[_0x433d1b(0x1f2)]){case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x40b)]:{let {cs:_0x290af4,code:_0x3f38b8,reason:_0x3efb60}=_0x121652[_0x433d1b(0x169)]??{};return{..._0x564f8f,'data':{..._0x121652,'data':_0x290af4,'code':_0x3f38b8,'reason':_0x3efb60},'cmd':_0x564f8f['cmd']};}case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x3b2)]:var _0x2a6fb6;return{..._0x564f8f,'data':{..._0x121652,'data':(_0x2a6fb6=_0x121652['csAckEvent'])==null?void 0x0:_0x2a6fb6['cs']},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x360)]:var _0x4af31f;return{..._0x564f8f,'data':{..._0x121652,'data':(_0x4af31f=_0x121652['newCsEvent'])==null?void 0x0:_0x4af31f['cs']},'cmd':_0x564f8f['cmd']};case _0x4f9696['CollaborationEvent'][_0x433d1b(0x1c7)]:{let {cs:_0x3ff21b,code:_0x4fd90b,reason:_0x5a3559}=_0x121652[_0x433d1b(0x4b8)]??{};return{..._0x564f8f,'data':{..._0x121652,'data':_0x3ff21b,'code':_0x4fd90b,'reason':_0x5a3559},'cmd':_0x564f8f[_0x433d1b(0x43f)]};}case _0x4f9696['CollaborationEvent'][_0x433d1b(0x28b)]:{let {cs:_0x42fd01,code:_0x4ba98b,reason:_0x1df3b5}=_0x121652['csShouldRetryEvent']??{};return{..._0x564f8f,'data':{..._0x121652,'data':_0x42fd01,'code':_0x4ba98b,'reason':_0x1df3b5},'cmd':_0x564f8f['cmd']};}case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x318)]:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x28d)]},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x1ba)]:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x25a)]},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)]['USERS_LEAVE']:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x513)]},'cmd':_0x564f8f['cmd']};case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x241)]:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652['liveShareNewHost']},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)]['LIVESHARE_FETCH_OPERATIONS']:case _0x4f9696['CollaborationEvent'][_0x433d1b(0x2d1)]:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x26f)]},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x427)]},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x354)]:return{..._0x564f8f,'data':_0x121652,'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x1df)]:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x456)]},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696['CollaborationEvent'][_0x433d1b(0x485)]:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652['updatePermissionObjEvent']},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)][_0x433d1b(0x4d6)]:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x348)]},'cmd':_0x564f8f[_0x433d1b(0x43f)]};case _0x4f9696[_0x433d1b(0x257)]['UNISCRIPT_RUN']:return{..._0x564f8f,'data':{..._0x121652,'data':_0x121652[_0x433d1b(0x33c)]},'cmd':_0x564f8f[_0x433d1b(0x43f)]};default:return _0x564f8f;}}default:return _0x564f8f;}}function _0xe62dd5(_0x424ee0){const _0x2267ca=_0x2e0def;switch(_0x424ee0[_0x2267ca(0x43f)]){case _0xc3615a[_0x2267ca(0x349)]['HEARTBEAT']:case _0xc3615a[_0x2267ca(0x349)][_0x2267ca(0x333)]:return JSON[_0x2267ca(0x39f)]({'cmd':_0x424ee0[_0x2267ca(0x43f)],'routeKey':_0x424ee0[_0x2267ca(0x245)]});case _0xc3615a[_0x2267ca(0x349)][_0x2267ca(0x26c)]:{let _0x4dd625;switch(_0x424ee0[_0x2267ca(0x28c)][_0x2267ca(0x1f2)]){case _0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x318)]:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x318)],'updateCursorEvent':_0x424ee0[_0x2267ca(0x28c)][_0x2267ca(0x28c)]};break;case _0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x3de)]:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x3de)],'leaveEvent':_0x424ee0[_0x2267ca(0x28c)][_0x2267ca(0x28c)]};break;case _0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x1ba)]:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)]['USERS_ENTER'],'joinEvent':_0x424ee0[_0x2267ca(0x28c)][_0x2267ca(0x28c)]};break;case _0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x241)]:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x424ee0[_0x2267ca(0x28c)][_0x2267ca(0x28c)]};break;case _0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x2d1)]:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x424ee0[_0x2267ca(0x28c)]['data']};break;case _0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x146)]:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x424ee0[_0x2267ca(0x28c)][_0x2267ca(0x28c)]};break;case _0x4f9696[_0x2267ca(0x257)]['LIVESHARE_REQUEST_HOST']:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x296)],'liveShareRequestHost':_0x424ee0[_0x2267ca(0x28c)]['data']};break;case _0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x19d)]:_0x4dd625={'eventID':_0x4f9696[_0x2267ca(0x257)][_0x2267ca(0x19d)]};break;default:_0x4dd625={'eventID':_0x424ee0[_0x2267ca(0x28c)]['eventID']};}return JSON[_0x2267ca(0x39f)]({'cmd':_0x424ee0[_0x2267ca(0x43f)],'routeKey':_0x424ee0[_0x2267ca(0x245)],'collaMsg':_0x4dd625});}case _0xc3615a[_0x2267ca(0x349)][_0x2267ca(0x35a)]:return JSON[_0x2267ca(0x39f)]({'cmd':_0x424ee0['cmd'],'routeKey':_0x424ee0[_0x2267ca(0x245)],'joinReq':_0x424ee0['data']});case _0xc3615a[_0x2267ca(0x349)]['LEAVE']:return JSON[_0x2267ca(0x39f)]({'cmd':_0x424ee0[_0x2267ca(0x43f)],'routeKey':_0x424ee0['routeKey'],'leaveReq':_0x424ee0['data']});default:throw Error(_0x2267ca(0x266));}}let _0x3e2f68=(0x0,_0x19e1e0[_0x2e0def(0x373)])('univer-pro.collaboration-client-socket-service');function _0x33cd2d(_0x51b18a,_0x395a00,_0x1d8317){const _0x1590a3=_0x2e0def;return _0x51b18a+'/'+_0x395a00+_0x1590a3(0x29e)+_0x1d8317+_0x1590a3(0x20a);}let _0x3ce6a3=class extends _0x19e1e0[_0x2e0def(0x404)]{constructor(_0x23a1bc,_0x33c27e,_0x189d39,_0x395d03,_0x1f02aa){const _0x111a11=_0x2e0def;super(),this[_0x111a11(0x196)]=_0x23a1bc,this[_0x111a11(0x21e)]=_0x33c27e,this[_0x111a11(0x409)]=_0x189d39,this['_logService']=_0x395d03,this[_0x111a11(0x175)]=_0x1f02aa;}['_doCreateSocket'](_0x3d1b2a){const _0x3f599c=_0x2e0def;let _0x42a263=this[_0x3f599c(0x196)][_0x3f599c(0x264)](_0x5e0f50[_0x3f599c(0x258)]);if(!_0x42a263)throw Error(_0x3f599c(0x3ac));let _0x398828=_0x42a263['createSocket'](_0x3d1b2a);if(!_0x398828)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x20d47b=new _0x19e1e0[(_0x3f599c(0x233))](),_0x43a8cf=new _0x144f8e[(_0x3f599c(0x2d3))]();_0x20d47b['add'](_0x398828[_0x3f599c(0x278)]['subscribe'](_0x5c8429=>_0x43a8cf[_0x3f599c(0x30c)](_0x5c8429))),_0x20d47b[_0x3f599c(0x32b)]((0x0,_0x19e1e0[_0x3f599c(0x228)])(()=>_0x43a8cf['complete']()));let _0x5441dc=new _0x144f8e[(_0x3f599c(0x2d3))]();_0x20d47b[_0x3f599c(0x32b)](_0x398828[_0x3f599c(0x4ce)][_0x3f599c(0x341)](_0xc820f1=>_0x5441dc[_0x3f599c(0x30c)](_0xc820f1))),_0x20d47b[_0x3f599c(0x32b)]((0x0,_0x19e1e0[_0x3f599c(0x228)])(()=>_0x5441dc[_0x3f599c(0x31e)]()));let _0x593aac=new _0x144f8e[(_0x3f599c(0x2d3))]();_0x20d47b['add'](_0x398828[_0x3f599c(0x275)][_0x3f599c(0x341)](_0x592e53=>{let _0x13ce0e=_0x5f4593(_0x592e53);_0x593aac['next'](_0x13ce0e);})),_0x20d47b['add']((0x0,_0x19e1e0[_0x3f599c(0x228)])(()=>_0x593aac['complete']()));let _0x44c1b6,_0x2b3892=()=>{const _0x3cb5d0=_0x3f599c;_0x5441dc[_0x3cb5d0(0x30c)](new Event('connection\x20error')),_0x43a8cf[_0x3cb5d0(0x30c)](new Event(_0x3cb5d0(0x3fa))),_0x44c1b6[_0x3cb5d0(0x4b9)]();};return _0x44c1b6={'memberID':'','close$':_0x43a8cf[_0x3f599c(0x3e8)](),'error$':_0x5441dc['asObservable'](),'open$':_0x398828[_0x3f599c(0x436)],'message$':_0x593aac['asObservable'](),'send':(_0x2702a0,_0x3a8b0d)=>{const _0x56b2c9=_0x3f599c;if(_0x2702a0['cmd']===_0xc3615a[_0x56b2c9(0x349)]['INGEST']){if(_0x2702a0['data'][_0x56b2c9(0x1f2)]===_0x4f9696['CollaborationEvent'][_0x56b2c9(0x2e6)]){let _0x170caa=this[_0x56b2c9(0x3d0)](_0x44c1b6,_0x2702a0['data'],(_0x3a8b0d==null?void 0x0:_0x3a8b0d['timeout'])??0x1d4c0);return _0x170caa['catch'](()=>void 0x0),_0x170caa;}if(_0x2702a0[_0x56b2c9(0x28c)][_0x56b2c9(0x1f2)]===_0x4f9696[_0x56b2c9(0x257)]['FETCH_MISSING']){let _0xc05f9e=_0x2702a0['data'];this[_0x56b2c9(0x38b)](_0xc05f9e)['then'](_0x387567=>{const _0x5793de=_0x56b2c9;_0x593aac[_0x5793de(0x30c)]({'cmd':_0xc3615a[_0x5793de(0x349)]['RECV'],'code':_0xc3615a['CmdRspCode']['OK'],'routeKey':_0xc05f9e[_0x5793de(0x28c)][_0x5793de(0x2d8)],'routeType':'','data':{'eventID':_0x4f9696['CollaborationEvent'][_0x5793de(0x4b0)],'data':{'changesets':_0x387567}}});})[_0x56b2c9(0x2bd)](_0x1957ab=>{const _0x4c4f87=_0x56b2c9;this[_0x4c4f87(0x4b1)]['error'](_0x1957ab),_0x2b3892();});return;}}_0x398828[_0x56b2c9(0x388)](_0xe62dd5(_0x2702a0));},'close':()=>{const _0x3222cb=_0x3f599c;_0x398828[_0x3222cb(0x4b9)](),_0x20d47b[_0x3222cb(0x2d2)]();}},_0x44c1b6;}['_submitChangeset'](_0x340cd7,_0x1ea53c,_0x56b4be){const _0x5430f7=_0x2e0def;let {unitType:_0x4ead2c,unitID:_0x5b8b80,changeset:_0x555f72}=_0x1ea53c['data'],_0x4f1124={'unitID':_0x5b8b80,'memberID':_0x340cd7[_0x5430f7(0x281)],'type':_0x4ead2c,'changeset':(0x0,_0x4f9696['parseChangesetToProtocol'])(_0x555f72)},_0x5e70a2=this[_0x5430f7(0x409)][_0x5430f7(0x277)](_0x21d492),_0x2460bd=_0x33cd2d((_0x5e70a2==null?void 0x0:_0x5e70a2['collabSubmitChangesetUrl'])??_0x5430f7(0x34d),_0x4ead2c,_0x5b8b80);return(0x0,_0x144f8e[_0x5430f7(0x3b7)])(this[_0x5430f7(0x21e)][_0x5430f7(0x50a)](_0x5430f7(0x2ed),_0x2460bd,{'body':_0x4f1124})[_0x5430f7(0x251)]((0x0,_0x144f8e[_0x5430f7(0x192)])(_0x3d4777=>_0x3d4777[_0x5430f7(0x33d)]===_0x5e0f50[_0x5430f7(0x27d)][_0x5430f7(0x3cc)]),(0x0,_0x144f8e[_0x5430f7(0x520)])(_0x56b4be)))[_0x5430f7(0x50e)](()=>void 0x0,_0x41e5cf=>{const _0x26ea43=_0x5430f7;throw this[_0x26ea43(0x4b1)][_0x26ea43(0x382)](_0x26ea43(0x1ae),_0x26ea43(0x242)+_0x555f72[_0x26ea43(0x14c)]+':'+_0x555f72[_0x26ea43(0x4b6)]+_0x26ea43(0x235)+_0xb87230(_0x41e5cf)),_0x41e5cf;});}async[_0x2e0def(0x38b)](_0x25eebd){const _0x512edd=_0x2e0def;let {unitID:_0xe9ac1d,from:_0x1c2282,to:_0x4fd868,unitType:_0x5eded8}=_0x25eebd[_0x512edd(0x28c)];return(await this[_0x512edd(0x175)][_0x512edd(0x4d7)]({'metadata':void 0x0},{'unitID':_0xe9ac1d,'type':_0x5eded8,'from':_0x1c2282,'to':_0x4fd868}))[_0x512edd(0x2f2)]['map'](_0xb087f3=>((_0xb087f3[_0x512edd(0x313)]===null||_0xb087f3[_0x512edd(0x313)]===void 0x0)&&(_0xb087f3[_0x512edd(0x313)]=[]),_0xb087f3));}};_0x3ce6a3=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x1,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x5e0f50[_0x2e0def(0x172)])),_0x5d2cb5(0x2,_0x19e1e0[_0x2e0def(0x4f4)]),_0x5d2cb5(0x3,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0x4,_0x4f9696[_0x2e0def(0x1ec)])],_0x3ce6a3);function _0xb87230(_0x29dce5){const _0xb0f377=_0x2e0def;return _0x29dce5 instanceof _0x5e0f50[_0xb0f377(0x2a4)]?_0xb0f377(0x312)+(_0x29dce5['status']??0x0):_0x29dce5 instanceof Error?_0x29dce5[_0xb0f377(0x1d3)]:String(_0x29dce5);}let _0x325582=(0x0,_0x19e1e0['createIdentifier'])(_0x2e0def(0x254));function _0x349012(_0x40c0cb={}){const _0x3b5f0e=_0x2e0def;return _0x40c0cb['resolveUnit']?{'resolveUnit':_0x40c0cb[_0x3b5f0e(0x50c)]}:{'resolveUnit':_0x2c891f=>({'target':{'unitId':_0x2c891f[_0x3b5f0e(0x26e)],'unitType':_0x2c891f[_0x3b5f0e(0x222)]}})};}function _0x190cff(_0x259543,_0x58ac07,_0x23edb4){const _0x15831f=_0x2e0def;let _0x45e706=_0x23edb4[_0x15831f(0x4b3)][_0x15831f(0x3ee)];if(_0x45e706!=null&&_0x45e706[_0x15831f(0x15a)]()==='')throw Error(_0x15831f(0x2c6));if(!_0x23edb4[_0x15831f(0x4b3)][_0x15831f(0x26e)])throw Error(_0x15831f(0x45f));return{'localUnitId':_0x259543,'unitType':_0x58ac07,'target':{'endpoint':_0x45e706,'unitId':_0x23edb4['target']['unitId'],'unitType':_0x23edb4[_0x15831f(0x4b3)][_0x15831f(0x222)]??_0x58ac07},'changeset':_0x23edb4[_0x15831f(0x3cb)]};}let _0x696f8d=class extends _0x19e1e0[_0x2e0def(0x404)]{constructor(_0x266713,_0x314e2f,_0x1aa975,_0x3b5a44,_0x1ac0fc,_0x583a8e){const _0x344103=_0x2e0def;super(),this[_0x344103(0x196)]=_0x266713,this[_0x344103(0x4b1)]=_0x314e2f,this['_configService']=_0x1aa975,this[_0x344103(0x500)]=_0x3b5a44,this[_0x344103(0x3d1)]=_0x1ac0fc,this[_0x344103(0x178)]=_0x583a8e,_0xc5e065(this,_0x344103(0x306),new Map()),_0xc5e065(this,'_pendingSessions',new Map()),_0xc5e065(this,'_sessionChannels',new Map()),_0xc5e065(this,_0x344103(0x23b),new Map()),_0xc5e065(this,_0x344103(0x3ec),void 0x0),_0xc5e065(this,_0x344103(0x225),this[_0x344103(0x1de)](void 0x0)['socket$']['asObservable']()),_0xc5e065(this,_0x344103(0x13f),new _0x144f8e[(_0x344103(0x49d))](0x0)),_0xc5e065(this,_0x344103(0x1a1),this[_0x344103(0x13f)][_0x344103(0x3e8)]());}[_0x2e0def(0x3f2)](){const _0x52eae4=_0x2e0def;this[_0x52eae4(0x3ec)]||(this[_0x52eae4(0x3ec)]=this[_0x52eae4(0x196)]['get'](_0x4cfbe5,_0x19e1e0[_0x52eae4(0x25b)][_0x52eae4(0x185)])??void 0x0,this[_0x52eae4(0x3ec)]&&this[_0x52eae4(0x47f)](this['_networkConditionService'][_0x52eae4(0x4ba)]['subscribe'](_0x1ce72c=>{const _0x57d7df=_0x52eae4;_0x1ce72c&&this['reconnect'](),_0x1ce72c||this['_socketChannels'][_0x57d7df(0x307)](_0x57fbbf=>this['_onOffline'](_0x57fbbf));})));}[_0x2e0def(0x2d2)](){const _0x327de7=_0x2e0def;super[_0x327de7(0x2d2)](),this[_0x327de7(0x23b)][_0x327de7(0x307)](_0x2b0169=>{const _0x32edfa=_0x327de7;var _0x5bf3fe,_0x19ae8b,_0xb721d6;(_0x5bf3fe=_0x2b0169[_0x32edfa(0x4e7)])==null||_0x5bf3fe[_0x32edfa(0x45a)](),_0x2b0169['socketSubscription']=null,this['_clearHandshakeTimer'](_0x2b0169),this['_clearRetryConnectingTimer'](_0x2b0169),this[_0x32edfa(0x1a5)](_0x2b0169),this['_clearHeartbeatTimer'](_0x2b0169),(_0x19ae8b=_0x2b0169[_0x32edfa(0x225)][_0x32edfa(0x1fe)]())==null||_0x19ae8b[_0x32edfa(0x4b9)](),(_0xb721d6=_0x2b0169[_0x32edfa(0x276)])==null||_0xb721d6[_0x32edfa(0x4b9)](),_0x2b0169[_0x32edfa(0x225)]['complete']();}),this[_0x327de7(0x23b)]['clear'](),this[_0x327de7(0x306)][_0x327de7(0x307)](_0x56c250=>_0x56c250[_0x327de7(0x2d2)]()),this[_0x327de7(0x306)][_0x327de7(0x1ef)](),this[_0x327de7(0x408)][_0x327de7(0x1ef)](),this[_0x327de7(0x13f)]['complete']();}async[_0x2e0def(0x1e3)](_0x1a6be7,_0x3d3efa){const _0x4e644b=_0x2e0def;if(this[_0x4e644b(0x3f2)](),this[_0x4e644b(0x306)][_0x4e644b(0x39a)](_0x1a6be7))return this[_0x4e644b(0x306)][_0x4e644b(0x264)](_0x1a6be7);let _0x216fe3=this[_0x4e644b(0x1b6)][_0x4e644b(0x264)](_0x1a6be7);if(_0x216fe3)return _0x216fe3;let _0x561fbf=this[_0x4e644b(0x3c8)](_0x1a6be7,_0x3d3efa);this[_0x4e644b(0x1b6)][_0x4e644b(0x236)](_0x1a6be7,_0x561fbf);try{return await _0x561fbf;}finally{this[_0x4e644b(0x1b6)]['delete'](_0x1a6be7);}}async[_0x2e0def(0x3c8)](_0x72a42c,_0x2f02c6){const _0x98950=_0x2e0def;let _0x5a6fa0=await this[_0x98950(0x355)](_0x72a42c,_0x2f02c6),_0x3aec8f=this[_0x98950(0x1de)](_0x5a6fa0[_0x98950(0x4b3)]['endpoint']);this['_tryEnsureSocket'](_0x3aec8f);let _0x226cad=this[_0x98950(0x196)][_0x98950(0x2e3)](_0x50bd25,_0x5a6fa0,_0x3aec8f[_0x98950(0x225)]['asObservable']());return this['_sessions'][_0x98950(0x236)](_0x72a42c,_0x226cad),this[_0x98950(0x408)][_0x98950(0x236)](_0x72a42c,_0x3aec8f[_0x98950(0x35f)]),_0x226cad;}[_0x2e0def(0x28f)](_0x1d9e03){const _0x143938=_0x2e0def;let _0x13a95a=this[_0x143938(0x306)][_0x143938(0x264)](_0x1d9e03),_0xd98050=this[_0x143938(0x408)][_0x143938(0x264)](_0x1d9e03);if(_0x13a95a&&(this[_0x143938(0x306)][_0x143938(0x15c)](_0x1d9e03),this[_0x143938(0x408)][_0x143938(0x15c)](_0x1d9e03),_0x13a95a[_0x143938(0x4b9)]()),_0xd98050!==void 0x0&&!this['_hasSessionsForEndpoint'](_0xd98050)){let _0x36d9d3=this[_0x143938(0x23b)][_0x143938(0x264)](_0xd98050);_0x36d9d3&&this[_0x143938(0x19e)](_0x36d9d3);}}[_0x2e0def(0x189)](){const _0x1b55cc=_0x2e0def;(this['_socketChannels'][_0x1b55cc(0x30a)]?[...this['_socketChannels']['values']()]:[this[_0x1b55cc(0x1de)](void 0x0)])[_0x1b55cc(0x307)](_0x22dda2=>{const _0x548353=_0x1b55cc;!this[_0x548353(0x2ff)](_0x22dda2[_0x548353(0x35f)])||_0x22dda2[_0x548353(0x4b7)]||_0x22dda2[_0x548353(0x276)]||_0x22dda2[_0x548353(0x35d)]||(_0x22dda2[_0x548353(0x3bc)]=0x0,this[_0x548353(0x39d)](_0x22dda2),this[_0x548353(0x16a)](_0x22dda2));});}[_0x2e0def(0x39d)](_0x4b828d){const _0x3128e5=_0x2e0def;_0x4b828d[_0x3128e5(0x15e)]!=null&&(clearTimeout(_0x4b828d['retryConnectingTimer']),_0x4b828d[_0x3128e5(0x15e)]=null);}[_0x2e0def(0x272)](_0x75ebee){const _0x30a973=_0x2e0def;let _0x530a6a=this[_0x30a973(0x409)][_0x30a973(0x277)](_0x21d492),_0x5f24ee=_0x75ebee[_0x30a973(0x3ee)]??(_0x530a6a==null?void 0x0:_0x530a6a[_0x30a973(0x205)])??_0x30a973(0x42f);return this[_0x30a973(0x500)][_0x30a973(0x43a)](_0x5f24ee);}async[_0x2e0def(0x284)](_0x51d02e){const _0xc448fd=_0x2e0def;var _0x6e1794;if(this[_0xc448fd(0x2fe)]||((_0x6e1794=this[_0xc448fd(0x3ec)])==null?void 0x0:_0x6e1794[_0xc448fd(0x47e)])===!0x1||_0x51d02e[_0xc448fd(0x4b7)]||_0x51d02e[_0xc448fd(0x276)]||_0x51d02e[_0xc448fd(0x35d)])return;let _0x3ef73b={};_0x51d02e[_0xc448fd(0x35d)]=_0x3ef73b;try{let _0x5a7b4b=await this[_0xc448fd(0x272)](_0x51d02e);if(this[_0xc448fd(0x2fe)]||_0x51d02e[_0xc448fd(0x35d)]!==_0x3ef73b){_0x5a7b4b==null||_0x5a7b4b[_0xc448fd(0x4b9)]();return;}if(_0x5a7b4b){var _0x326bdf;_0x51d02e[_0xc448fd(0x276)]=_0x5a7b4b,_0x51d02e['handshakeTimer']=setTimeout(()=>{const _0x3b6734=_0xc448fd;!this[_0x3b6734(0x2fe)]&&_0x51d02e[_0x3b6734(0x276)]===_0x5a7b4b&&this[_0x3b6734(0x2be)](_0x51d02e);},0x4e20);let _0x21781c=_0x5a7b4b['send'];_0x5a7b4b[_0xc448fd(0x388)]=(_0xd93123,_0x387849)=>{const _0x14ffa8=_0xc448fd;_0xd93123[_0x14ffa8(0x43f)]!==_0xc3615a[_0x14ffa8(0x349)]['LEAVE']&&!_0x5980fe(_0xd93123)&&_0x51d02e[_0x14ffa8(0x4b7)]&&_0x51d02e[_0x14ffa8(0x225)]['getValue']()===_0x5a7b4b&&this[_0x14ffa8(0x50b)](_0x51d02e);let _0x527601=_0x387849===void 0x0?_0x21781c['call'](_0x5a7b4b,_0xd93123):_0x21781c['call'](_0x5a7b4b,_0xd93123,_0x387849);return _0x527601 instanceof Promise&&_0x527601[_0x14ffa8(0x2bd)](_0x2b6995=>{const _0x413808=_0x14ffa8;_0xc51cf7(_0x2b6995)&&_0x51d02e['socket$'][_0x413808(0x1fe)]()===_0x5a7b4b&&this['_onLicenseRejected'](_0x51d02e);}),_0x527601;},(_0x326bdf=_0x51d02e[_0xc448fd(0x4e7)])==null||_0x326bdf[_0xc448fd(0x45a)]();let _0x28b919=new _0x144f8e[(_0xc448fd(0x4fa))]();_0x51d02e['socketSubscription']=_0x28b919,_0x28b919['add'](_0x5a7b4b[_0xc448fd(0x275)][_0xc448fd(0x341)](_0x110551=>this['_onMessage'](_0x51d02e,_0x5a7b4b,_0x110551))),_0x28b919['add'](_0x5a7b4b['error$']['pipe']((0x0,_0x472409[_0xc448fd(0x374)])(0x1))[_0xc448fd(0x341)](_0x32856f=>this['_logService'][_0xc448fd(0x340)](_0xc448fd(0x3dc),_0x32856f))),_0x28b919[_0xc448fd(0x32b)](_0x5a7b4b[_0xc448fd(0x436)][_0xc448fd(0x251)]((0x0,_0x472409[_0xc448fd(0x374)])(0x1))[_0xc448fd(0x341)](()=>{const _0x1cc7cc=_0xc448fd;this[_0x1cc7cc(0x3eb)](_0x51d02e,_0x5a7b4b);})),_0x28b919[_0xc448fd(0x32b)](_0x5a7b4b['close$'][_0xc448fd(0x251)]((0x0,_0x472409['take'])(0x1))['subscribe'](_0x354512=>{const _0x442855=_0xc448fd;(_0x51d02e[_0x442855(0x276)]===_0x5a7b4b||_0x51d02e['socket$']['getValue']()===_0x5a7b4b)&&(this[_0x442855(0x4b1)][_0x442855(0x210)]('[CollaborationSessionService]',_0x442855(0x376),_0x354512),this[_0x442855(0x2be)](_0x51d02e));}));}}catch(_0x5b2311){if(_0x51d02e['connectionAttempt']!==_0x3ef73b)return;if(_0xc51cf7(_0x5b2311)){this[_0xc448fd(0x4d9)](_0x51d02e);return;}this['_logService']['error'](_0x5b2311),this[_0xc448fd(0x2be)](_0x51d02e);}finally{_0x51d02e[_0xc448fd(0x35d)]===_0x3ef73b&&(_0x51d02e[_0xc448fd(0x35d)]=null);}}[_0x2e0def(0x3eb)](_0x348be1,_0x40af96){const _0xef4239=_0x2e0def;this[_0xef4239(0x2fe)]||_0x348be1[_0xef4239(0x276)]!==_0x40af96||(this[_0xef4239(0x4b1)][_0xef4239(0x210)](_0xef4239(0x279),_0xef4239(0x302)),_0x40af96[_0xef4239(0x388)]({'cmd':_0xc3615a[_0xef4239(0x349)]['HELLO']}));}[_0x2e0def(0x19e)](_0x3768d3){const _0x2606f5=_0x2e0def;var _0x5a4c68;let _0x137697=_0x3768d3[_0x2606f5(0x225)][_0x2606f5(0x1fe)]()??_0x3768d3['candidateSocket'];_0x3768d3[_0x2606f5(0x35d)]=null,_0x3768d3[_0x2606f5(0x4b7)]=!0x1,_0x3768d3[_0x2606f5(0x276)]=null,(_0x5a4c68=_0x3768d3[_0x2606f5(0x4e7)])==null||_0x5a4c68['unsubscribe'](),_0x3768d3[_0x2606f5(0x4e7)]=null,this['_status$'][_0x2606f5(0x30c)](0x2),_0x3768d3[_0x2606f5(0x225)][_0x2606f5(0x30c)](null),this[_0x2606f5(0x39d)](_0x3768d3),this['_clearHandshakeTimer'](_0x3768d3),this[_0x2606f5(0x1a5)](_0x3768d3),this[_0x2606f5(0x463)](_0x3768d3),_0x137697==null||_0x137697['close']();}[_0x2e0def(0x4d9)](_0x50d8cb){const _0x5481e5=_0x2e0def;this[_0x5481e5(0x19e)](_0x50d8cb),this[_0x5481e5(0x3d1)][_0x5481e5(0x445)]({'id':_0x5481e5(0x46a)});}[_0x2e0def(0x2be)](_0x16ceb2){const _0xfab044=_0x2e0def;var _0x5f0f6b;this[_0xfab044(0x19e)](_0x16ceb2),!this['_disposed']&&((_0x5f0f6b=this[_0xfab044(0x3ec)])==null?void 0x0:_0x5f0f6b[_0xfab044(0x47e)])!==!0x1&&this[_0xfab044(0x2ff)](_0x16ceb2['endpointKey'])&&(_0x16ceb2['retryCount']<(this['_configService'][_0xfab044(0x277)](_0xfab044(0x22d))??0x3)?(this[_0xfab044(0x3d1)][_0xfab044(0x445)]({'id':'SOCKET_FAILED_RETRY'}),this[_0xfab044(0x16a)](_0x16ceb2)):this[_0xfab044(0x3d1)][_0xfab044(0x445)]({'id':_0xfab044(0x327)}));}['_tryReconnect'](_0x277bab){const _0x5b39d3=_0x2e0def;let _0x28845d=_0x277bab[_0x5b39d3(0x3bc)],_0x4a1992=this[_0x5b39d3(0x409)][_0x5b39d3(0x277)](_0x21d492),_0x6e41ed=_0x28845d===0x0?0x0:((_0x4a1992==null?void 0x0:_0x4a1992[_0x5b39d3(0x326)])??0x4e20)*0x2**_0x28845d;_0x277bab[_0x5b39d3(0x15e)]=setTimeout(()=>{const _0x450b74=_0x5b39d3;clearTimeout(_0x277bab[_0x450b74(0x15e)]),_0x277bab['retryConnectingTimer']=null,this['_tryEnsureSocket'](_0x277bab);},_0x6e41ed),_0x277bab[_0x5b39d3(0x3bc)]+=0x1;}async[_0x2e0def(0x355)](_0x3ac4b0,_0x34f298){const _0x51b66b=_0x2e0def;return _0x190cff(_0x3ac4b0,_0x34f298,await this[_0x51b66b(0x178)][_0x51b66b(0x50c)]({'unitId':_0x3ac4b0,'unitType':_0x34f298}));}[_0x2e0def(0x2c7)](_0x4314e,_0x2863ed,_0x214074){const _0x5b72f8=_0x2e0def;if(this[_0x5b72f8(0x2fe)]||_0x4314e[_0x5b72f8(0x276)]!==_0x2863ed&&_0x4314e[_0x5b72f8(0x225)]['getValue']()!==_0x2863ed)return;let {cmd:_0x4ee7e6}=_0x214074;if(_0x4ee7e6===_0xc3615a[_0x5b72f8(0x349)][_0x5b72f8(0x333)]&&!_0x4314e[_0x5b72f8(0x4b7)]){var _0x28b676;if((_0x214074[_0x5b72f8(0x1cd)]??_0xc3615a['CmdRspCode']['OK'])!==_0xc3615a['CmdRspCode']['OK']||!((_0x28b676=_0x214074[_0x5b72f8(0x28c)])!=null&&_0x28b676[_0x5b72f8(0x281)])){this[_0x5b72f8(0x2be)](_0x4314e);return;}this['_clearHandshakeTimer'](_0x4314e),_0x2863ed[_0x5b72f8(0x281)]=_0x214074[_0x5b72f8(0x28c)][_0x5b72f8(0x281)],_0x4314e[_0x5b72f8(0x3bc)]=0x0,_0x4314e[_0x5b72f8(0x4b7)]=!0x0,_0x4314e[_0x5b72f8(0x276)]=null,_0x4314e[_0x5b72f8(0x225)]['next'](_0x2863ed),this[_0x5b72f8(0x13f)][_0x5b72f8(0x30c)](0x3);}_0x4ee7e6===_0xc3615a[_0x5b72f8(0x349)][_0x5b72f8(0x400)]&&this[_0x5b72f8(0x1a5)](_0x4314e),this[_0x5b72f8(0x50b)](_0x4314e);}[_0x2e0def(0x2ff)](_0x15fbdd){const _0x29acd7=_0x2e0def;return[...this[_0x29acd7(0x408)][_0x29acd7(0x3b0)]()]['some'](_0x1b78c2=>_0x1b78c2===_0x15fbdd);}['_getSocketChannel'](_0x4dbc73){const _0x426763=_0x2e0def;let _0x5b93c6=_0x4dbc73??'',_0x22d0fa=this[_0x426763(0x23b)]['get'](_0x5b93c6);if(_0x22d0fa)return _0x22d0fa;let _0x1c36b6={'endpointKey':_0x5b93c6,'endpoint':_0x4dbc73,'socket$':new _0x144f8e[(_0x426763(0x49d))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x426763(0x23b)][_0x426763(0x236)](_0x5b93c6,_0x1c36b6),_0x1c36b6;}[_0x2e0def(0x176)](_0x5b81fc){const _0x559696=_0x2e0def;_0x5b81fc[_0x559696(0x240)]!=null&&(clearTimeout(_0x5b81fc['handshakeTimer']),_0x5b81fc[_0x559696(0x240)]=null);}['_rescheduleHeartbeat'](_0x5d4f39){const _0x32ceee=_0x2e0def;this[_0x32ceee(0x463)](_0x5d4f39),_0x5d4f39[_0x32ceee(0x4b7)]&&(_0x5d4f39['sendHeartbeatTimer']=setTimeout(()=>this[_0x32ceee(0x255)](_0x5d4f39),this[_0x32ceee(0x409)][_0x32ceee(0x277)]('HEARTBEAT_INTERVAL')??0x7530));}[_0x2e0def(0x255)](_0x561627){const _0x51be98=_0x2e0def;let _0x45c1e3=_0x561627['socket$'][_0x51be98(0x1fe)]();_0x561627['socketReady']&&_0x45c1e3&&(_0x45c1e3[_0x51be98(0x388)]({'cmd':_0xc3615a[_0x51be98(0x349)][_0x51be98(0x400)]}),this[_0x51be98(0x212)](_0x561627));}[_0x2e0def(0x212)](_0x118a44){const _0x3af382=_0x2e0def;_0x118a44[_0x3af382(0x347)]=setTimeout(()=>this['_onConnectionFailed'](_0x118a44),this[_0x3af382(0x409)]['getConfig'](_0x3af382(0x4c3))??0x4e20);}['_clearHeartbeatTimer'](_0x255a00){const _0x120810=_0x2e0def;_0x255a00[_0x120810(0x282)]!=null&&(clearTimeout(_0x255a00[_0x120810(0x282)]),_0x255a00['sendHeartbeatTimer']=null);}[_0x2e0def(0x1a5)](_0x16ae24){const _0x32c8e5=_0x2e0def;_0x16ae24[_0x32c8e5(0x347)]!=null&&(clearTimeout(_0x16ae24['timeoutTimer']),_0x16ae24[_0x32c8e5(0x347)]=null);}};_0x696f8d=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x1,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0x2,_0x19e1e0[_0x2e0def(0x4f4)]),_0x5d2cb5(0x3,_0x3e2f68),_0x5d2cb5(0x4,(0x0,_0x19e1e0['Inject'])(_0x1bde53)),_0x5d2cb5(0x5,_0x325582)],_0x696f8d);function _0x5980fe(_0x10601d){const _0x98076d=_0x2e0def;if(_0x10601d['cmd']!==_0xc3615a['CombCmd']['INGEST'])return!0x1;let _0xb5e22a=_0x10601d[_0x98076d(0x28c)]['eventID'];return _0xb5e22a===_0x4f9696[_0x98076d(0x257)][_0x98076d(0x2e6)]||_0xb5e22a===_0x4f9696[_0x98076d(0x257)]['FETCH_MISSING'];}function _0xc51cf7(_0x127c64){const _0x5d83b9=_0x2e0def;var _0x5a7493;if(!(_0x127c64 instanceof _0x5e0f50[_0x5d83b9(0x2a4)])||_0x127c64[_0x5d83b9(0x47d)]!==0x193)return!0x1;let _0x1a159d=_0x127c64['error'];return(_0x1a159d==null||(_0x5a7493=_0x1a159d['error'])==null?void 0x0:_0x5a7493[_0x5d83b9(0x1cd)])===_0xc3615a[_0x5d83b9(0x36e)][_0x5d83b9(0x46a)];}let _0x5fd9b5=class extends _0x19e1e0[_0x2e0def(0x505)]{constructor(_0x63baa4,_0x1d7ce3,_0x4d5aa0,_0x465b27){const _0x1c0624=_0x2e0def;var _0x196c72;super(),this['_injector']=_0x63baa4,this['_collabSessionService']=_0x1d7ce3,this['_configService']=_0x4d5aa0,this['_univerInstanceService']=_0x465b27,_0xc5e065(this,'_entities',new Map()),_0xc5e065(this,_0x1c0624(0x40e),new _0x144f8e[(_0x1c0624(0x2d3))]()),_0xc5e065(this,_0x1c0624(0x1e0),this[_0x1c0624(0x40e)][_0x1c0624(0x3e8)]()),((_0x196c72=this['_configService'][_0x1c0624(0x277)](_0x1c0624(0x20f)))==null?void 0x0:_0x196c72[_0x1c0624(0x163)])!==!0x1&&this[_0x1c0624(0x467)]();}[_0x2e0def(0x2d2)](){const _0x51f2fa=_0x2e0def;super[_0x51f2fa(0x2d2)](),this[_0x51f2fa(0x476)][_0x51f2fa(0x307)](_0x464ee6=>_0x464ee6['dispose']()),this[_0x51f2fa(0x476)][_0x51f2fa(0x1ef)]();}['getCollabEntity'](_0x320569){const _0x2b476e=_0x2e0def;return this['_entities'][_0x2b476e(0x264)](_0x320569)??null;}[_0x2e0def(0x528)](){const _0xec024f=_0x2e0def;return Array[_0xec024f(0x43d)](this[_0xec024f(0x476)]['values']());}[_0x2e0def(0x49b)](_0x200717){const _0x44c55c=_0x2e0def;let _0x3521a2=this[_0x44c55c(0x2c3)](_0x200717);return _0x3521a2?(0x0,_0x144f8e['of'])(_0x3521a2):this[_0x44c55c(0x40e)][_0x44c55c(0x251)]((0x0,_0x472409['filter'])(_0x3846d6=>_0x3846d6[_0x44c55c(0x2d8)]===_0x200717));}['readyForCollab'](_0x19f0a3){const _0x112e41=_0x2e0def;return(0x0,_0x144f8e['firstValueFrom'])(this[_0x112e41(0x49b)](_0x19f0a3)['pipe']((0x0,_0x472409[_0x112e41(0x417)])(()=>void 0x0)));}[_0x2e0def(0x3d3)](_0x1f5891){const _0x502b67=_0x2e0def;if(_0x1f5891!==void 0x0){var _0x1fd6f2;return((_0x1fd6f2=this[_0x502b67(0x476)][_0x502b67(0x264)](_0x1f5891))==null?void 0x0:_0x1fd6f2[_0x502b67(0x3d3)]())??!0x1;}for(let _0x3c34e1 of this[_0x502b67(0x476)]['values']())if(_0x3c34e1[_0x502b67(0x3d3)]())return!0x0;return!0x1;}['_init'](){const _0x375558=_0x2e0def;this[_0x375558(0x4d1)]['getTypeOfUnitAdded$'](_0x19e1e0['UniverInstanceType'][_0x375558(0x3c5)])[_0x375558(0x251)]((0x0,_0x144f8e[_0x375558(0x357)])(this['dispose$']),(0x0,_0x472409[_0x375558(0x2bb)])(0x10))['subscribe'](async _0x735715=>{const _0x5787b1=_0x375558;let _0x591267=_0x735715[_0x5787b1(0x1c3)][_0x5787b1(0x465)](),_0x4a29c7=await this[_0x5787b1(0x29b)](_0x591267,_0x19e1e0[_0x5787b1(0x3e4)][_0x5787b1(0x3c5)]);this[_0x5787b1(0x476)][_0x5787b1(0x236)](_0x591267,_0x4a29c7);}),this[_0x375558(0x4d1)]['getTypeOfUnitAdded$'](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x23c)])[_0x375558(0x251)]((0x0,_0x144f8e[_0x375558(0x357)])(this[_0x375558(0x24e)]),(0x0,_0x472409[_0x375558(0x2bb)])(0x10))[_0x375558(0x251)]((0x0,_0x472409[_0x375558(0x192)])(_0x3c4098=>!_0x3c4098[_0x375558(0x1c3)][_0x375558(0x465)]()['startsWith']('__')))['subscribe'](async _0x1fd94d=>{const _0x229172=_0x375558;let _0x2b0ce8=_0x1fd94d[_0x229172(0x1c3)][_0x229172(0x465)](),_0x3f4e60=await this[_0x229172(0x29b)](_0x2b0ce8,_0x19e1e0[_0x229172(0x3e4)][_0x229172(0x23c)]);this[_0x229172(0x476)][_0x229172(0x236)](_0x2b0ce8,_0x3f4e60);}),this[_0x375558(0x4d1)][_0x375558(0x3fe)](_0x19e1e0[_0x375558(0x3e4)]['UNIVER_SLIDE'])[_0x375558(0x251)]((0x0,_0x144f8e[_0x375558(0x357)])(this[_0x375558(0x24e)]),(0x0,_0x472409[_0x375558(0x2bb)])(0x10))[_0x375558(0x341)](async _0x4050e7=>{const _0x2d61c7=_0x375558;let _0x4437b0=_0x4050e7[_0x2d61c7(0x1c3)][_0x2d61c7(0x465)](),_0x5b45a6=await this[_0x2d61c7(0x29b)](_0x4437b0,_0x19e1e0[_0x2d61c7(0x3e4)][_0x2d61c7(0x261)]);this[_0x2d61c7(0x476)][_0x2d61c7(0x236)](_0x4437b0,_0x5b45a6);}),this[_0x375558(0x4d1)][_0x375558(0x3fe)](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x27b)])['pipe']((0x0,_0x144f8e[_0x375558(0x357)])(this[_0x375558(0x24e)]),(0x0,_0x472409[_0x375558(0x2bb)])(0x10))[_0x375558(0x341)](async _0x3a1d42=>{const _0x158a66=_0x375558;let _0x517010=_0x3a1d42[_0x158a66(0x1c3)][_0x158a66(0x465)](),_0x3cc24f=await this[_0x158a66(0x29b)](_0x517010,_0x19e1e0[_0x158a66(0x3e4)]['UNIVER_BOARD']);this[_0x158a66(0x476)][_0x158a66(0x236)](_0x517010,_0x3cc24f);}),this[_0x375558(0x4d1)][_0x375558(0x3fe)](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x335)])['pipe']((0x0,_0x144f8e['takeUntil'])(this['dispose$']),(0x0,_0x472409['delay'])(0x10))['subscribe'](async _0x8d0a51=>{const _0x3d505f=_0x375558;let _0x2f099f=_0x8d0a51[_0x3d505f(0x1c3)][_0x3d505f(0x465)](),_0x5a99e3=await this[_0x3d505f(0x29b)](_0x2f099f,_0x19e1e0[_0x3d505f(0x3e4)]['UNIVER_BASE']);this[_0x3d505f(0x476)][_0x3d505f(0x236)](_0x2f099f,_0x5a99e3);}),this['_univerInstanceService'][_0x375558(0x3fe)](_0x19e1e0['UniverInstanceType']['UNIVER_PDF'])[_0x375558(0x251)]((0x0,_0x144f8e[_0x375558(0x357)])(this[_0x375558(0x24e)]),(0x0,_0x472409[_0x375558(0x2bb)])(0x10))['subscribe'](async _0x4c35f5=>{const _0x31d2bb=_0x375558;let _0xafa185=_0x4c35f5['unit'][_0x31d2bb(0x465)](),_0x556d4d=await this[_0x31d2bb(0x29b)](_0xafa185,_0x19e1e0[_0x31d2bb(0x3e4)][_0x31d2bb(0x2e2)]);this['_entities'][_0x31d2bb(0x236)](_0xafa185,_0x556d4d);}),(0x0,_0x144f8e[_0x375558(0x208)])(this[_0x375558(0x4d1)][_0x375558(0x1ee)](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x3c5)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x23c)]),this['_univerInstanceService'][_0x375558(0x1ee)](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x261)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x27b)]),this[_0x375558(0x4d1)][_0x375558(0x1ee)](_0x19e1e0[_0x375558(0x3e4)]['UNIVER_BASE']),this[_0x375558(0x4d1)][_0x375558(0x1ee)](_0x19e1e0[_0x375558(0x3e4)][_0x375558(0x2e2)]))[_0x375558(0x251)]((0x0,_0x144f8e[_0x375558(0x357)])(this['dispose$']))['subscribe'](_0x573c3e=>{const _0x325955=_0x375558;let _0x28d2da=_0x573c3e[_0x325955(0x465)](),_0x56d52f=this[_0x325955(0x476)][_0x325955(0x264)](_0x28d2da);_0x56d52f&&(_0x56d52f[_0x325955(0x2d2)](),this[_0x325955(0x476)][_0x325955(0x15c)](_0x28d2da));});}async[_0x2e0def(0x29b)](_0x5e26a8,_0x2dccd2){const _0x3b29cc=_0x2e0def;let _0x48460c=await this[_0x3b29cc(0x4be)][_0x3b29cc(0x1e3)](_0x5e26a8),_0x27e3c9=this['_injector'][_0x3b29cc(0x2e3)](this[_0x3b29cc(0x1bb)](_0x2dccd2),_0x5e26a8,_0x2dccd2,_0x48460c);return await _0x27e3c9['init'](),this['_entityInit$'][_0x3b29cc(0x30c)](_0x27e3c9),_0x27e3c9;}[_0x2e0def(0x1bb)](_0x5966b9){const _0x307dcb=_0x2e0def;switch(_0x5966b9){case _0x19e1e0[_0x307dcb(0x3e4)][_0x307dcb(0x23c)]:return _0x24fcb7;case _0x19e1e0['UniverInstanceType'][_0x307dcb(0x3c5)]:return _0x550742;case _0x19e1e0[_0x307dcb(0x3e4)][_0x307dcb(0x261)]:return _0x27bbc8;case _0x19e1e0['UniverInstanceType'][_0x307dcb(0x27b)]:return _0x5344a5;case _0x19e1e0[_0x307dcb(0x3e4)][_0x307dcb(0x335)]:return _0x47d8cb;case _0x19e1e0[_0x307dcb(0x3e4)][_0x307dcb(0x2e2)]:return _0x3e1efe;default:throw Error(_0x307dcb(0x17f)+_0x5966b9);}}};_0x5fd9b5=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x1,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x696f8d)),_0x5d2cb5(0x2,_0x19e1e0[_0x2e0def(0x4f4)]),_0x5d2cb5(0x3,_0x19e1e0[_0x2e0def(0x19c)])],_0x5fd9b5);var _0x478bf2=_0x2e0def(0x232),_0x290754='1.3.0';let _0x50c61d=class extends _0x19e1e0[_0x2e0def(0x404)]{constructor(_0x4b4157,_0x335f78){super(),this['_univerInstanceService']=_0x4b4157,this['_configService']=_0x335f78,this['_init']();}[_0x2e0def(0x467)](){const _0xa688d6=_0x2e0def;this[_0xa688d6(0x47f)](this[_0xa688d6(0x4d1)]['focused$'][_0xa688d6(0x341)](()=>{const _0x320753=_0xa688d6;let _0xa46e58=this['_univerInstanceService'][_0x320753(0x162)](),_0x337ee6=this[_0x320753(0x409)][_0x320753(0x277)]('DEFAULT_FILE_NAME')??'Univer';_0xa46e58 instanceof _0x19e1e0[_0x320753(0x142)]&&(_0x337ee6=_0xa46e58[_0x320753(0x1d3)]),document[_0x320753(0x2ea)]=_0x337ee6;}));}};_0x50c61d=_0x37ed50([_0x5d2cb5(0x0,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x1,_0x19e1e0[_0x2e0def(0x4f4)])],_0x50c61d);let _0x3e5537=(0x0,_0x19e1e0[_0x2e0def(0x373)])(_0x2e0def(0x140)),_0x1be954=class{constructor(_0x4fb635,_0x15a8c4,_0x2fb29c){const _0x527449=_0x2e0def;this[_0x527449(0x21e)]=_0x4fb635,this[_0x527449(0x409)]=_0x15a8c4,this[_0x527449(0x4d1)]=_0x2fb29c;}[_0x2e0def(0x447)](){const _0x5834d6=_0x2e0def;return this[_0x5834d6(0x3d7)]()['attachment']??{};}async[_0x2e0def(0x515)](_0x1ff7fb){const _0x2c4d15=_0x2e0def;let _0x30b28d=this[_0x2c4d15(0x447)]();if(_0x818e8c(_0x1ff7fb,_0x30b28d),_0x30b28d['upload'])return _0x30b28d[_0x2c4d15(0x3f8)](_0x1ff7fb);let _0x3b6cdd=await this[_0x2c4d15(0x40c)](_0x1ff7fb);return{'id':_0x3b6cdd,'name':_0x1ff7fb[_0x2c4d15(0x1d3)],'mimeType':_0x1ff7fb[_0x2c4d15(0x33d)],'size':_0x1ff7fb[_0x2c4d15(0x30a)],'sourceType':_0x19e1e0[_0x2c4d15(0x31d)][_0x2c4d15(0x4f5)],'source':_0x3b6cdd};}async[_0x2e0def(0x4a4)](_0x360997,_0x3f6aa5){const _0x143ad9=_0x2e0def;if(_0x3f6aa5!==_0x19e1e0[_0x143ad9(0x31d)][_0x143ad9(0x4f5)])return _0x360997;let _0x51e3f6=(await this[_0x143ad9(0x21e)][_0x143ad9(0x264)](this[_0x143ad9(0x18b)]()[_0x143ad9(0x33e)]('{fileID}',_0x360997)))[_0x143ad9(0x2c0)];if(_0x51e3f6[_0x143ad9(0x340)]&&_0x51e3f6[_0x143ad9(0x340)]['code']!==_0xc3615a['ErrorCode']['OK'])throw _0x51e3f6['error'];if(!_0x51e3f6['url'])throw Error(_0x143ad9(0x2f6));return(0x0,_0x19e1e0[_0x143ad9(0x332)])(_0x51e3f6[_0x143ad9(0x4f7)],this[_0x143ad9(0x36d)]());}async['_upload'](_0x4ba9dc){const _0x2ebf16=_0x2e0def;let _0x3cbfc6=this['_univerInstanceService'][_0x2ebf16(0x162)](),_0x7a4871=_0x3cbfc6==null?void 0x0:_0x3cbfc6[_0x2ebf16(0x465)]();if(!_0x7a4871)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x3756b4=new FormData();_0x3756b4['append']('file',_0x4ba9dc);let _0x4c719a=this[_0x2ebf16(0x3c1)]()+_0x2ebf16(0x2da)+_0x4ba9dc['size'][_0x2ebf16(0x2e4)]()+_0x2ebf16(0x2b6)+_0xc3615a['FileSource'][_0x2ebf16(0x1d5)]+_0x2ebf16(0x171)+encodeURIComponent(_0x7a4871),_0x4bcce4=(await this[_0x2ebf16(0x21e)][_0x2ebf16(0x4e5)](_0x4c719a,{'body':_0x3756b4}))[_0x2ebf16(0x2c0)][_0x2ebf16(0x501)];if(typeof _0x4bcce4!=_0x2ebf16(0x464)||!_0x4bcce4)throw Error(_0x2ebf16(0x23f));return _0x4bcce4;}[_0x2e0def(0x3c1)](){const _0x354a58=_0x2e0def;return this[_0x354a58(0x3d7)]()[_0x354a58(0x364)]??_0x354a58(0x385);}[_0x2e0def(0x18b)](){const _0x294572=_0x2e0def;return this['_getConfig']()[_0x294572(0x4fd)]??_0x294572(0x46b);}[_0x2e0def(0x36d)](){const _0x48776f=_0x2e0def;let _0x1fd260=this[_0x48776f(0x3d7)]();return _0x1fd260[_0x48776f(0x1a6)]?_0x1fd260['downloadEndpointUrl']:typeof location<'u'?location[_0x48776f(0x44f)]:_0x1fd260['uploadFileServerUrl']??'';}[_0x2e0def(0x3d7)](){const _0x2cf65c=_0x2e0def;return this['_configService']['getConfig'](_0x2cf65c(0x20f))??{};}};_0x1be954=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x5e0f50[_0x2e0def(0x172)])),_0x5d2cb5(0x1,(0x0,_0x19e1e0['Inject'])(_0x19e1e0[_0x2e0def(0x4f4)])),_0x5d2cb5(0x2,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x19c)]))],_0x1be954);function _0x818e8c(_0x3ac3b3,_0x21ed3a){const _0x36eb9a=_0x2e0def;var _0x3a3d50;if(_0x21ed3a[_0x36eb9a(0x182)]!=null&&_0x3ac3b3['size']>_0x21ed3a[_0x36eb9a(0x182)])throw Error(_0x36eb9a(0x506));if((_0x3a3d50=_0x21ed3a[_0x36eb9a(0x2b9)])!=null&&_0x3a3d50['length']&&!_0x21ed3a[_0x36eb9a(0x2b9)][_0x36eb9a(0x202)](_0x1b3bd2=>_0x3ac3b3[_0x36eb9a(0x33d)]===_0x1b3bd2||_0x3ac3b3[_0x36eb9a(0x1d3)][_0x36eb9a(0x523)](_0x1b3bd2)||_0x1b3bd2[_0x36eb9a(0x523)]('/*')&&_0x3ac3b3[_0x36eb9a(0x33d)][_0x36eb9a(0x331)](_0x1b3bd2['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let _0x413891=class{constructor(_0x4b665e,_0xa9e48a,_0x346621){const _0x3ae3f6=_0x2e0def;this['_configService']=_0x4b665e,this[_0x3ae3f6(0x21e)]=_0xa9e48a,this[_0x3ae3f6(0x473)]=_0x346621,this[_0x3ae3f6(0x1c6)]();}['init'](){const _0x525624=_0x2e0def;this[_0x525624(0x21e)][_0x525624(0x1d6)]({'priority':0x1,'interceptor':(_0x42f366,_0x4a993e)=>_0x4a993e(_0x42f366)[_0x525624(0x251)]((0x0,_0x144f8e[_0x525624(0x51b)])(async _0x18c7df=>{const _0x210c8b=_0x525624;let _0x984f7e=_0x18c7df;if(_0x984f7e[_0x210c8b(0x47d)]===0x191){if(typeof window>'u')throw Error(_0x210c8b(0x466));if(window[_0x210c8b(0x381)](this[_0x210c8b(0x473)]['t'](_0x210c8b(0x259)))){let _0x44ec40=window[_0x210c8b(0x2fb)](window[_0x210c8b(0x35c)][_0x210c8b(0x33b)]);window['location'][_0x210c8b(0x33b)]=this[_0x210c8b(0x149)]()+_0x210c8b(0x495)+_0x44ec40;}}return _0x984f7e;}))});}[_0x2e0def(0x149)](){const _0x47d486=_0x2e0def;let _0x16b775=this[_0x47d486(0x409)][_0x47d486(0x277)](_0x21d492);return(_0x16b775==null?void 0x0:_0x16b775['loginUrlKey'])??'/universer-api/oidc/authpage';}};_0x413891=_0x37ed50([_0x5d2cb5(0x0,_0x19e1e0[_0x2e0def(0x4f4)]),_0x5d2cb5(0x1,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x5e0f50[_0x2e0def(0x172)])),_0x5d2cb5(0x2,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x3f0)]))],_0x413891);let _0x274190=class extends _0x19e1e0[_0x2e0def(0x404)]{constructor(_0x3daad4,_0x54deb5){const _0x33ba08=_0x2e0def;super(),this[_0x33ba08(0x486)]=_0x3daad4,this['_configService']=_0x54deb5,_0xc5e065(this,'_cfgEnableObjInherit',!0x1),this['_initMergeInterceptor']();}[_0x2e0def(0x3be)](){const _0xac134=_0x2e0def;let _0x338ecf=this;this[_0xac134(0x47f)](this[_0xac134(0x486)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,_0x5e0f50[_0xac134(0x2df)])({'isMatch'(_0x5dbab6){const _0x19c157=_0xac134;var _0x558d92;if(_0x5dbab6['method']===_0x19c157(0x2ed)&&(_0x558d92=_0x5dbab6[_0x19c157(0x145)])!=null&&_0x558d92[_0x19c157(0x2c0)]){let {objectID:_0x423490,objectType:_0x2331bd}=_0x5dbab6[_0x19c157(0x145)][_0x19c157(0x2c0)]||{};if(!_0x423490||_0x2331bd===void 0x0)return!0x1;let _0x1f7918=_0x338ecf[_0x19c157(0x2af)]()+'/'+_0x2331bd+_0x19c157(0x51c)+encodeURIComponent(_0x423490)+_0x19c157(0x375);if(_0x5dbab6[_0x19c157(0x4f7)]===_0x1f7918)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x11a3f4){const _0x3d7e02=_0xac134;var _0x4a4e0b;return(_0x4a4e0b=_0x11a3f4[_0x3d7e02(0x145)])==null?void 0x0:_0x4a4e0b['body'];},'mergeParamsToRequest'(_0x2e7019,_0x1c0352){const _0xf567a2=_0xac134;let _0x119ed4=_0x338ecf[_0xf567a2(0x2af)]()+_0xf567a2(0x194),_0x3b8aa=_0x2e7019[_0xf567a2(0x3cd)]((_0x8555a4,_0x398f9b)=>{const _0x2d9fee=_0xf567a2;let {unitID:_0x41dba0,objectID:_0xd6cf3c,objectType:_0x8820c0,actions:_0x390637}=_0x398f9b;return _0x8555a4[_0x41dba0]||(_0x8555a4[_0x41dba0]=Object[_0x2d9fee(0x2dc)](null)),_0x8555a4[_0x41dba0][_0xd6cf3c]||(_0x8555a4[_0x41dba0][_0xd6cf3c]={'objectID':_0xd6cf3c,'objectType':_0x8820c0,'actions':[]}),_0x8555a4[_0x41dba0][_0xd6cf3c][_0x2d9fee(0x17d)]['push'](..._0x390637),_0x8555a4;},Object[_0xf567a2(0x2dc)](null)),_0x1d1834=[];for(let _0xf69191 in _0x3b8aa)for(let _0x23bb1e in _0x3b8aa[_0xf69191]){let {actions:_0xdf46a2,objectType:_0x132492}=_0x3b8aa[_0xf69191][_0x23bb1e],_0x31f018=[...new Set(_0xdf46a2)];_0x1d1834[_0xf567a2(0x4d0)]({'unitID':_0xf69191,'objectID':_0x23bb1e,'objectType':_0x132492,'actions':_0x31f018});}return new _0x5e0f50[(_0xf567a2(0x350))]('POST',_0x119ed4,{'headers':_0x1c0352['headers'],'withCredentials':_0x1c0352[_0xf567a2(0x492)],'responseType':_0x1c0352['responseType'],'body':{'requests':_0x1d1834}});}},{'distributeResult'(_0xeca741,_0x4bedd0){let {objectActions:_0x14242d}=_0xeca741;return _0x4bedd0['map'](_0x3fda69=>{const _0x2c1d02=_0xa473;let {unitID:_0x2ef6ed,objectID:_0x2c14b7,actions:_0x18c6eb}=_0x3fda69,_0x340cdd=_0x14242d['find'](_0x4831a3=>_0x4831a3[_0x2c1d02(0x2d8)]===_0x2ef6ed&&_0x4831a3[_0x2c1d02(0x424)]===_0x2c14b7);return{'config':_0x3fda69,'result':{'actions':_0x18c6eb['map'](_0x3231ab=>_0x340cdd==null?void 0x0:_0x340cdd[_0x2c1d02(0x17d)][_0x2c1d02(0x2d5)](_0x19946b=>_0x19946b['action']===_0x3231ab))[_0x2c1d02(0x192)](_0x56c946=>!!_0x56c946),'error':_0xeca741['error']}};});}})}));}[_0x2e0def(0x2af)](){const _0x18d6ea=_0x2e0def;let _0x3d4e45=this[_0x18d6ea(0x409)][_0x18d6ea(0x277)](_0x21d492);return(_0x3d4e45==null?void 0x0:_0x3d4e45[_0x18d6ea(0x3a1)])??_0x18d6ea(0x3da);}async[_0x2e0def(0x2dc)](_0x2af9e0){const _0x4c7b32=_0x2e0def;let _0x23351e=this[_0x4c7b32(0x2af)]()+'/'+_0x2af9e0[_0x4c7b32(0x1cb)]+'/object';return(await this['_HTTPService'][_0x4c7b32(0x4e5)](_0x23351e,{'body':_0x2af9e0}))[_0x4c7b32(0x2c0)][_0x4c7b32(0x424)]||'';}async[_0x2e0def(0x29f)](_0x9ef47c){const _0x1a9a98=_0x2e0def;let _0x149168=this[_0x1a9a98(0x2af)]()+_0x1a9a98(0x136);return(await this['_HTTPService'][_0x1a9a98(0x4e5)](_0x149168,{'body':_0x9ef47c}))[_0x1a9a98(0x2c0)][_0x1a9a98(0x2c5)];}async[_0x2e0def(0x4c7)](_0x4e417e){const _0x59462b=_0x2e0def;var _0x31cb05;let _0x3c256b=this[_0x59462b(0x2af)]()+'/'+_0x4e417e[_0x59462b(0x1cb)]+'/object/'+encodeURIComponent(_0x4e417e['objectID']),_0x4dbbdf=await this[_0x59462b(0x486)][_0x59462b(0x31c)](_0x3c256b,{'body':_0x4e417e});if((_0x4dbbdf==null||(_0x31cb05=_0x4dbbdf['body'])==null||(_0x31cb05=_0x31cb05[_0x59462b(0x340)])==null?void 0x0:_0x31cb05[_0x59462b(0x1cd)])!==0x1)throw Error(_0x59462b(0x3e0));}async[_0x2e0def(0x31b)](_0x3d7e90){const _0x541988=_0x2e0def;let _0x3ae2f3=this[_0x541988(0x2af)]()+'/'+_0x3d7e90[_0x541988(0x1cb)]+_0x541988(0x51c)+encodeURIComponent(_0x3d7e90[_0x541988(0x424)])+_0x541988(0x375);return(await this[_0x541988(0x486)][_0x541988(0x4e5)](_0x3ae2f3,{'body':_0x3d7e90}))['body']['actions'];}async[_0x2e0def(0x252)](_0x53796c){const _0x2ed177=_0x2e0def;let _0x4e0374=this[_0x2ed177(0x2af)]()+'/-/object/-/batch_allowed';return(await this[_0x2ed177(0x486)]['post'](_0x4e0374,{'body':{'requests':_0x53796c}}))[_0x2ed177(0x2c0)][_0x2ed177(0x3f4)];}async[_0x2e0def(0x359)](_0x26d714){const _0x5f3150=_0x2e0def;let _0x137f05=this[_0x5f3150(0x2af)]()+'/'+_0x26d714[_0x5f3150(0x1cb)]+_0x5f3150(0x18a),_0x35773c=await this[_0x5f3150(0x486)]['post'](_0x137f05,{'body':_0x26d714});return{'roles':_0x35773c[_0x5f3150(0x2c0)][_0x5f3150(0x3d4)],'actions':_0x35773c[_0x5f3150(0x2c0)]['actions']};}async[_0x2e0def(0x209)](_0x3f1b4a){const _0x44e0df=_0x2e0def;let _0x2ed0b7=this[_0x44e0df(0x2af)]()+_0x44e0df(0x161);await this['_HTTPService'][_0x44e0df(0x15c)](_0x2ed0b7,{'params':{'collaboratorID':_0x3f1b4a[_0x44e0df(0x4ea)],'objectID':_0x3f1b4a[_0x44e0df(0x424)],'unitID':_0x3f1b4a['unitID']}});}async[_0x2e0def(0x2bc)](_0x493944){const _0x336a97=_0x2e0def;let _0x1a4acb=this[_0x336a97(0x2af)]()+_0x336a97(0x161);await this[_0x336a97(0x486)][_0x336a97(0x3bb)](_0x1a4acb,{'body':_0x493944});}async['createCollaborator'](_0x3a47ad){const _0xce0419=_0x2e0def;let _0xf1bf07=this['_getAPIPrefixPath']()+_0xce0419(0x161);await this[_0xce0419(0x486)]['post'](_0xf1bf07,{'body':_0x3a47ad});}async[_0x2e0def(0x510)](_0x409e65){const _0x5425d1=_0x2e0def;let _0x14e50b=this[_0x5425d1(0x2af)]()+_0x5425d1(0x161),_0x4785e6=await this[_0x5425d1(0x486)][_0x5425d1(0x264)](_0x14e50b,{'params':{'objectID':_0x409e65[_0x5425d1(0x424)],'unitID':_0x409e65['unitID']}});return this['setCfgEnableObjInherit'](_0x4785e6[_0x5425d1(0x2c0)][_0x5425d1(0x378)]??!0x1),_0x4785e6['body']['collaborators'];}async[_0x2e0def(0x453)](_0x180a4b){const _0x1465f9=_0x2e0def;let _0x4bc53a=this[_0x1465f9(0x2af)]()+_0x1465f9(0x161);await this['_HTTPService'][_0x1465f9(0x31c)](_0x4bc53a,{'body':_0x180a4b});}[_0x2e0def(0x43b)](_0x4fd10e){const _0x123687=_0x2e0def;this[_0x123687(0x330)]=_0x4fd10e;}[_0x2e0def(0x200)](){return this['_cfgEnableObjInherit'];}};_0x274190=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0['Inject'])(_0x5e0f50[_0x2e0def(0x172)])),_0x5d2cb5(0x1,(0x0,_0x19e1e0['Inject'])(_0x19e1e0['IConfigService']))],_0x274190);function _0x3559c0(_0x13bdcb){const _0x4d9e2b=_0x2e0def;return _0x13bdcb instanceof Uint8Array||ArrayBuffer[_0x4d9e2b(0x1d1)](_0x13bdcb)&&_0x13bdcb[_0x4d9e2b(0x315)][_0x4d9e2b(0x1d3)]===_0x4d9e2b(0x190)&&_0x4d9e2b(0x271)in _0x13bdcb&&_0x13bdcb[_0x4d9e2b(0x271)]===0x1;}let _0x46991a=_0x4a918e=>_0x4a918e?'\x22'+_0x4a918e+'\x22\x20':'';function _0x5ecdd2(_0x5752a8,_0xad8726=''){const _0x2a895d=_0x2e0def;if(typeof _0x5752a8!='number')throw TypeError(_0x46991a(_0xad8726)+_0x2a895d(0x3b9)+typeof _0x5752a8);if(!Number['isSafeInteger'](_0x5752a8)||_0x5752a8<0x0)throw RangeError(_0x46991a(_0xad8726)+_0x2a895d(0x32d)+_0x5752a8);return _0x5752a8;}function _0x44bbef(_0x3b6d31,_0x10912c,_0x2944b5=''){const _0x2a7a1c=_0x2e0def;if(_0x3559c0(_0x3b6d31)&&(_0x10912c===void 0x0||_0x3b6d31[_0x2a7a1c(0x4d4)]===_0x10912c))return _0x3b6d31;_0x10912c!==void 0x0&&_0x5ecdd2(_0x10912c,_0x2a7a1c(0x4d4));let _0x476667=_0x3559c0(_0x3b6d31),_0x128443=_0x10912c===void 0x0?'':_0x2a7a1c(0x448)+_0x10912c,_0x3e4b22=_0x476667?_0x2a7a1c(0x20b)+_0x3b6d31['length']:_0x2a7a1c(0x26a)+typeof _0x3b6d31,_0x58f037=_0x46991a(_0x2944b5)+_0x2a7a1c(0x4c0)+_0x128443+_0x2a7a1c(0x1f4)+_0x3e4b22;throw _0x476667?RangeError(_0x58f037):TypeError(_0x58f037);}function _0x3c2142(_0x25b0ee){const _0x8b6e29=_0x2e0def;return new Uint32Array(_0x25b0ee[_0x8b6e29(0x2cc)],_0x25b0ee[_0x8b6e29(0x1ea)],Math['floor'](_0x25b0ee[_0x8b6e29(0x46c)]/0x4));}function _0x349d5a(..._0x8972a8){const _0x12a903=_0x2e0def;for(let _0x29cd31=0x0;_0x29cd31<_0x8972a8[_0x12a903(0x4d4)];_0x29cd31++)_0x8972a8[_0x29cd31][_0x12a903(0x401)](0x0);}let _0x4ef79b=new Uint8Array(new Uint32Array([0x11223344])[_0x2e0def(0x2cc)])[0x0]===0x44;function _0x3e644a(_0x2eb251){return _0x2eb251<<0x18&0xff000000|_0x2eb251<<0x8&0xff0000|_0x2eb251>>>0x8&0xff00|_0x2eb251>>>0x18&0xff;}function _0x3537e6(_0x5bc212){const _0xb3c44a=_0x2e0def;for(let _0x37715b=0x0;_0x37715b<_0x5bc212[_0xb3c44a(0x4d4)];_0x37715b++)_0x5bc212[_0x37715b]=_0x3e644a(_0x5bc212[_0x37715b]);return _0x5bc212;}let _0x474900=_0x4ef79b?_0x49db5e=>_0x49db5e:_0x3537e6;function _0x324cbe(_0x25e5cf){const _0x22240c=_0x2e0def;if(typeof _0x25e5cf!=_0x22240c(0x464))throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()['encode'](_0x25e5cf));}function _0x23630a(_0x2ea0dc,_0x228580){const _0x4b64c2=_0x2e0def;return!_0x2ea0dc['byteLength']||!_0x228580['byteLength']?!0x1:_0x2ea0dc['buffer']===_0x228580[_0x4b64c2(0x2cc)]&&_0x2ea0dc['byteOffset']<_0x228580['byteOffset']+_0x228580[_0x4b64c2(0x46c)]&&_0x228580['byteOffset']<_0x2ea0dc[_0x4b64c2(0x1ea)]+_0x2ea0dc[_0x4b64c2(0x46c)];}function _0x20827c(_0x503455,_0x3ca402){const _0x38f479=_0x2e0def;if(_0x23630a(_0x503455,_0x3ca402)&&_0x503455[_0x38f479(0x1ea)]<_0x3ca402[_0x38f479(0x1ea)])throw Error('complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported');}function _0x4bf368(..._0x2ad9ce){const _0x54b31d=_0x2e0def;let _0x3489e1=0x0;for(let _0x131b1c=0x0;_0x131b1c<_0x2ad9ce[_0x54b31d(0x4d4)];_0x131b1c++){let _0x4f5c4d=_0x2ad9ce[_0x131b1c];_0x44bbef(_0x4f5c4d),_0x3489e1+=_0x4f5c4d[_0x54b31d(0x4d4)];}let _0x41f274=new Uint8Array(_0x3489e1);for(let _0x509c50=0x0,_0xd4a83a=0x0;_0x509c50<_0x2ad9ce['length'];_0x509c50++){let _0x1f74ba=_0x2ad9ce[_0x509c50];_0x41f274[_0x54b31d(0x236)](_0x1f74ba,_0xd4a83a),_0xd4a83a+=_0x1f74ba[_0x54b31d(0x4d4)];}return _0x41f274;}let _0x13a325=(_0x5421b5,_0x14017c)=>{function _0x5e0b27(_0x500eb9,..._0x136e7d){const _0x1cdca1=_0xa473;if(_0x44bbef(_0x500eb9,void 0x0,_0x1cdca1(0x1dc)),_0x5421b5['nonceLength']!==void 0x0){let _0x118a95=_0x136e7d[0x0];_0x44bbef(_0x118a95,_0x5421b5['varSizeNonce']?void 0x0:_0x5421b5[_0x1cdca1(0x522)],'nonce');}let _0x4d3eed=_0x5421b5[_0x1cdca1(0x2b5)],_0x4ba92e=_0x5421b5['nonceLength']===void 0x0?0x0:0x1;if(!_0x5421b5[_0x1cdca1(0x231)]){for(let _0x468492=_0x4ba92e;_0x468492<_0x136e7d[_0x1cdca1(0x4d4)];_0x468492++)if(_0x3559c0(_0x136e7d[_0x468492]))throw Error(_0x1cdca1(0x1b3));}_0x5421b5[_0x1cdca1(0x231)]&&_0x136e7d[_0x4ba92e]!==void 0x0&&_0x44bbef(_0x136e7d[_0x4ba92e],void 0x0,_0x1cdca1(0x3c9));let _0x28a843=_0x14017c(_0x500eb9,..._0x136e7d),_0x309b9e=(_0x39c711,_0xaaf953)=>{const _0x553dc7=_0x1cdca1;if(_0xaaf953!==void 0x0){if(_0x39c711!==0x2)throw Error(_0x553dc7(0x2f1));_0x44bbef(_0xaaf953,void 0x0,'output');}},_0x53f4e6=!0x1;return{'encrypt'(_0x233d7f,_0x5604b9){const _0x18a950=_0x1cdca1;if(_0x53f4e6)throw Error('cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce');return _0x53f4e6=!0x0,_0x44bbef(_0x233d7f,void 0x0,_0x18a950(0x28c)),_0x309b9e(_0x28a843[_0x18a950(0x483)][_0x18a950(0x4d4)],_0x5604b9),_0x28a843['encrypt'](_0x233d7f,_0x5604b9);},'decrypt'(_0x513245,_0x2a24b3){const _0x272dda=_0x1cdca1;if(_0x44bbef(_0x513245,void 0x0,_0x272dda(0x28c)),_0x4d3eed&&_0x513245[_0x272dda(0x4d4)]<_0x4d3eed)throw Error(_0x272dda(0x2e0)+_0x4d3eed);return _0x309b9e(_0x28a843[_0x272dda(0x13b)][_0x272dda(0x4d4)],_0x2a24b3),_0x28a843[_0x272dda(0x13b)](_0x513245,_0x2a24b3);}};}return Object['assign'](_0x5e0b27,_0x5421b5),_0x5e0b27;};function _0x4d5f77(_0x4c032d,_0x17c1ca,_0x143137=!0x0){if(_0x17c1ca===void 0x0)return new Uint8Array(_0x4c032d);if(_0x44bbef(_0x17c1ca,_0x4c032d,'output'),_0x143137&&!_0x5e040a(_0x17c1ca))throw Error('invalid\x20output,\x20must\x20be\x20aligned');return _0x17c1ca;}function _0x5e040a(_0x1e61aa){const _0x19c864=_0x2e0def;return _0x1e61aa[_0x19c864(0x1ea)]%0x4==0x0;}function _0x168e80(_0x5c79e5){const _0x365a56=_0x2e0def;return Uint8Array[_0x365a56(0x43d)](_0x44bbef(_0x5c79e5));}function _0x8c133(_0x1d9ef5=0x20){const _0x5e419c=_0x2e0def;_0x5ecdd2(_0x1d9ef5,_0x5e419c(0x2b8));let _0x3c3824=typeof globalThis==_0x5e419c(0x497)?globalThis[_0x5e419c(0x4f1)]:null;if(typeof(_0x3c3824==null?void 0x0:_0x3c3824[_0x5e419c(0x21b)])!=_0x5e419c(0x139))throw Error('crypto.getRandomValues\x20must\x20be\x20defined');if(_0x1d9ef5>0x10000)throw RangeError(_0x5e419c(0x4e1)+_0x1d9ef5);return _0x3c3824[_0x5e419c(0x21b)](new Uint8Array(_0x1d9ef5));}function _0x53960a(_0x3668c5){const _0x1eb411=_0x2e0def;if(![0x10,0x18,0x20][_0x1eb411(0x298)](_0x3668c5[_0x1eb411(0x4d4)]))throw Error(_0x1eb411(0x452)+_0x3668c5[_0x1eb411(0x4d4)]);}function _0x4e06ec(_0x449f9d){return _0x449f9d<<0x1^0x11b&-(_0x449f9d>>0x7);}function _0x5e5356(_0x51359a,_0x3c09e6){let _0x5918a7=0x0;for(;_0x3c09e6>0x0;_0x3c09e6>>=0x1)_0x5918a7^=_0x51359a&-(_0x3c09e6&0x1),_0x51359a=_0x4e06ec(_0x51359a);return _0x5918a7;}let _0x2b115a=((()=>{let _0x36ba7a=new Uint8Array(0x100);for(let _0x2977ed=0x0,_0x326bde=0x1;_0x2977ed<0x100;_0x2977ed++,_0x326bde^=_0x4e06ec(_0x326bde))_0x36ba7a[_0x2977ed]=_0x326bde;let _0x396cae=new Uint8Array(0x100);_0x396cae[0x0]=0x63;for(let _0x2bf794=0x0;_0x2bf794<0xff;_0x2bf794++){let _0x3ffbb3=_0x36ba7a[0xff-_0x2bf794];_0x3ffbb3|=_0x3ffbb3<<0x8,_0x396cae[_0x36ba7a[_0x2bf794]]=(_0x3ffbb3^_0x3ffbb3>>0x4^_0x3ffbb3>>0x5^_0x3ffbb3>>0x6^_0x3ffbb3>>0x7^0x63)&0xff;}return _0x349d5a(_0x36ba7a),_0x396cae;})()),_0x14ea70=_0x2b115a[_0x2e0def(0x417)]((_0x24fb9b,_0x2bbef9)=>_0x2b115a[_0x2e0def(0x3ef)](_0x2bbef9)),_0x3b4664=_0x16b746=>_0x16b746<<0x18|_0x16b746>>>0x8,_0x14a426=_0x2d7b4e=>_0x2d7b4e<<0x8|_0x2d7b4e>>>0x18;function _0x272819(_0x5294df,_0x1e0dbe){const _0x540451=_0x2e0def;if(_0x5294df['length']!==0x100)throw Error('wrong\x20sbox\x20length');let _0x3221da=new Uint32Array(0x100)[_0x540451(0x417)]((_0x2c86ef,_0x328f7a)=>_0x1e0dbe(_0x5294df[_0x328f7a])),_0x559bcf=_0x3221da[_0x540451(0x417)](_0x14a426),_0x12b093=_0x559bcf[_0x540451(0x417)](_0x14a426),_0x206187=_0x12b093[_0x540451(0x417)](_0x14a426),_0x406666=new Uint32Array(0x10000),_0x4b533c=new Uint32Array(0x10000),_0x24ca2f=new Uint16Array(0x10000);for(let _0x30ce71=0x0;_0x30ce71<0x100;_0x30ce71++)for(let _0x223084=0x0;_0x223084<0x100;_0x223084++){let _0x5e076d=_0x30ce71*0x100+_0x223084;_0x406666[_0x5e076d]=_0x3221da[_0x30ce71]^_0x559bcf[_0x223084],_0x4b533c[_0x5e076d]=_0x12b093[_0x30ce71]^_0x206187[_0x223084],_0x24ca2f[_0x5e076d]=_0x5294df[_0x30ce71]<<0x8|_0x5294df[_0x223084];}return{'sbox':_0x5294df,'sbox2':_0x24ca2f,'T0':_0x3221da,'T1':_0x559bcf,'T2':_0x12b093,'T3':_0x206187,'T01':_0x406666,'T23':_0x4b533c};}let _0x2b071e=_0x272819(_0x2b115a,_0x3f5f5d=>_0x5e5356(_0x3f5f5d,0x3)<<0x18|_0x3f5f5d<<0x10|_0x3f5f5d<<0x8|_0x5e5356(_0x3f5f5d,0x2)),_0x2a7285=_0x272819(_0x14ea70,_0x2a3407=>_0x5e5356(_0x2a3407,0xb)<<0x18|_0x5e5356(_0x2a3407,0xd)<<0x10|_0x5e5356(_0x2a3407,0x9)<<0x8|_0x5e5356(_0x2a3407,0xe)),_0x4fcff6=((()=>{let _0x2fe3ac=new Uint8Array(0x10);for(let _0x1dcbe6=0x0,_0x5b98d6=0x1;_0x1dcbe6<0x10;_0x1dcbe6++,_0x5b98d6=_0x4e06ec(_0x5b98d6))_0x2fe3ac[_0x1dcbe6]=_0x5b98d6;return _0x2fe3ac;})());function _0x1afd1d(_0x2c61f9){const _0x8c5770=_0x2e0def;_0x44bbef(_0x2c61f9);let _0x2ad2dd=_0x2c61f9['length'];_0x53960a(_0x2c61f9);let {sbox2:_0x11e80e}=_0x2b071e,_0x2ed979=[];(!_0x4ef79b||!_0x5e040a(_0x2c61f9))&&_0x2ed979[_0x8c5770(0x4d0)](_0x2c61f9=_0x168e80(_0x2c61f9));let _0x33595e=_0x474900(_0x3c2142(_0x2c61f9)),_0x46fc79=_0x33595e['length'],_0x1b04e1=_0x3d5f8f=>_0x4d8f86(_0x11e80e,_0x3d5f8f,_0x3d5f8f,_0x3d5f8f,_0x3d5f8f),_0x8a7c22=new Uint32Array(_0x2ad2dd+0x1c);_0x8a7c22['set'](_0x33595e);for(let _0x1f32b2=_0x46fc79;_0x1f32b2<_0x8a7c22[_0x8c5770(0x4d4)];_0x1f32b2++){let _0x1c0392=_0x8a7c22[_0x1f32b2-0x1];_0x1f32b2%_0x46fc79===0x0?_0x1c0392=_0x1b04e1(_0x3b4664(_0x1c0392))^_0x4fcff6[_0x1f32b2/_0x46fc79-0x1]:_0x46fc79>0x6&&_0x1f32b2%_0x46fc79===0x4&&(_0x1c0392=_0x1b04e1(_0x1c0392)),_0x8a7c22[_0x1f32b2]=_0x8a7c22[_0x1f32b2-_0x46fc79]^_0x1c0392;}return _0x349d5a(..._0x2ed979),_0x8a7c22;}function _0x133597(_0x18e98d){const _0x3aa011=_0x2e0def;let _0x2fb9ff=_0x1afd1d(_0x18e98d),_0x5dde96=_0x2fb9ff['slice'](),_0x2b4f46=_0x2fb9ff[_0x3aa011(0x4d4)],{sbox2:_0x3ff497}=_0x2b071e,{T0:_0x549900,T1:_0x208a08,T2:_0x4ea2d7,T3:_0x46724c}=_0x2a7285;for(let _0x5876b1=0x0;_0x5876b1<_0x2b4f46;_0x5876b1+=0x4)for(let _0xb95be7=0x0;_0xb95be7<0x4;_0xb95be7++)_0x5dde96[_0x5876b1+_0xb95be7]=_0x2fb9ff[_0x2b4f46-_0x5876b1-0x4+_0xb95be7];_0x349d5a(_0x2fb9ff);for(let _0x8d28a9=0x4;_0x8d28a9<_0x2b4f46-0x4;_0x8d28a9++){let _0x5e6e19=_0x5dde96[_0x8d28a9],_0xdd285b=_0x4d8f86(_0x3ff497,_0x5e6e19,_0x5e6e19,_0x5e6e19,_0x5e6e19);_0x5dde96[_0x8d28a9]=_0x549900[_0xdd285b&0xff]^_0x208a08[_0xdd285b>>>0x8&0xff]^_0x4ea2d7[_0xdd285b>>>0x10&0xff]^_0x46724c[_0xdd285b>>>0x18];}return _0x5dde96;}function _0x314f6b(_0x12fd6d,_0x2a5742,_0x3734bc,_0x463bec,_0xcff11,_0x5215df){return _0x12fd6d[_0x3734bc<<0x8&0xff00|_0x463bec>>>0x8&0xff]^_0x2a5742[_0xcff11>>>0x8&0xff00|_0x5215df>>>0x18&0xff];}function _0x4d8f86(_0x5a4c67,_0xb2b27b,_0x5a817d,_0x5ed4dc,_0x154326){return _0x5a4c67[_0xb2b27b&0xff|_0x5a817d&0xff00]|_0x5a4c67[_0x5ed4dc>>>0x10&0xff|_0x154326>>>0x10&0xff00]<<0x10;}function _0x160c48(_0x53baf5,_0x23eb11,_0xdfcad9,_0x10be44,_0x12febc){const _0x510e59=_0x2e0def;let {sbox2:_0x994d89,T01:_0x542352,T23:_0x55eb5a}=_0x2b071e,_0x554517=0x0;_0x23eb11^=_0x53baf5[_0x554517++],_0xdfcad9^=_0x53baf5[_0x554517++],_0x10be44^=_0x53baf5[_0x554517++],_0x12febc^=_0x53baf5[_0x554517++];let _0x42fcb7=_0x53baf5[_0x510e59(0x4d4)]/0x4-0x2;for(let _0x3685c0=0x0;_0x3685c0<_0x42fcb7;_0x3685c0++){let _0x4ea17b=_0x53baf5[_0x554517++]^_0x314f6b(_0x542352,_0x55eb5a,_0x23eb11,_0xdfcad9,_0x10be44,_0x12febc),_0x3f5aa8=_0x53baf5[_0x554517++]^_0x314f6b(_0x542352,_0x55eb5a,_0xdfcad9,_0x10be44,_0x12febc,_0x23eb11),_0x4232b3=_0x53baf5[_0x554517++]^_0x314f6b(_0x542352,_0x55eb5a,_0x10be44,_0x12febc,_0x23eb11,_0xdfcad9),_0x52b7bd=_0x53baf5[_0x554517++]^_0x314f6b(_0x542352,_0x55eb5a,_0x12febc,_0x23eb11,_0xdfcad9,_0x10be44);_0x23eb11=_0x4ea17b,_0xdfcad9=_0x3f5aa8,_0x10be44=_0x4232b3,_0x12febc=_0x52b7bd;}return{'s0':_0x53baf5[_0x554517++]^_0x4d8f86(_0x994d89,_0x23eb11,_0xdfcad9,_0x10be44,_0x12febc),'s1':_0x53baf5[_0x554517++]^_0x4d8f86(_0x994d89,_0xdfcad9,_0x10be44,_0x12febc,_0x23eb11),'s2':_0x53baf5[_0x554517++]^_0x4d8f86(_0x994d89,_0x10be44,_0x12febc,_0x23eb11,_0xdfcad9),'s3':_0x53baf5[_0x554517++]^_0x4d8f86(_0x994d89,_0x12febc,_0x23eb11,_0xdfcad9,_0x10be44)};}function _0x62ef15(_0x2359eb,_0x201036,_0x5279c4,_0x59f31c,_0x5ca538){const _0x1bf3e8=_0x2e0def;let {sbox2:_0x552bf0,T01:_0xf22b3d,T23:_0x40339d}=_0x2a7285,_0x9322af=0x0;_0x201036^=_0x2359eb[_0x9322af++],_0x5279c4^=_0x2359eb[_0x9322af++],_0x59f31c^=_0x2359eb[_0x9322af++],_0x5ca538^=_0x2359eb[_0x9322af++];let _0x401ee3=_0x2359eb[_0x1bf3e8(0x4d4)]/0x4-0x2;for(let _0x2bb901=0x0;_0x2bb901<_0x401ee3;_0x2bb901++){let _0x1bfa2f=_0x2359eb[_0x9322af++]^_0x314f6b(_0xf22b3d,_0x40339d,_0x201036,_0x5ca538,_0x59f31c,_0x5279c4),_0x703bd9=_0x2359eb[_0x9322af++]^_0x314f6b(_0xf22b3d,_0x40339d,_0x5279c4,_0x201036,_0x5ca538,_0x59f31c),_0x58341a=_0x2359eb[_0x9322af++]^_0x314f6b(_0xf22b3d,_0x40339d,_0x59f31c,_0x5279c4,_0x201036,_0x5ca538),_0x50c193=_0x2359eb[_0x9322af++]^_0x314f6b(_0xf22b3d,_0x40339d,_0x5ca538,_0x59f31c,_0x5279c4,_0x201036);_0x201036=_0x1bfa2f,_0x5279c4=_0x703bd9,_0x59f31c=_0x58341a,_0x5ca538=_0x50c193;}return{'s0':_0x2359eb[_0x9322af++]^_0x4d8f86(_0x552bf0,_0x201036,_0x5ca538,_0x59f31c,_0x5279c4),'s1':_0x2359eb[_0x9322af++]^_0x4d8f86(_0x552bf0,_0x5279c4,_0x201036,_0x5ca538,_0x59f31c),'s2':_0x2359eb[_0x9322af++]^_0x4d8f86(_0x552bf0,_0x59f31c,_0x5279c4,_0x201036,_0x5ca538),'s3':_0x2359eb[_0x9322af++]^_0x4d8f86(_0x552bf0,_0x5ca538,_0x59f31c,_0x5279c4,_0x201036)};}function _0x5a8476(_0x20159b,_0xc77de1){const _0xce3b41=_0x2e0def;if(_0x44bbef(_0x20159b),_0x20159b[_0xce3b41(0x4d4)]%0x10!=0x0)throw Error(_0xce3b41(0x3c3));_0xc77de1!==void 0x0&&(_0x4d5f77(_0x20159b[_0xce3b41(0x4d4)],_0xc77de1),_0x20827c(_0x20159b,_0xc77de1));}function _0x3a1b36(_0x41f204,_0x276a4d,_0x1604fa){const _0x52897f=_0x2e0def;_0x44bbef(_0x41f204);let _0x3f3190=_0x41f204[_0x52897f(0x4d4)],_0x587419=_0x3f3190%0x10;if(!_0x276a4d&&_0x587419!==0x0)throw Error(_0x52897f(0x323));if(_0x276a4d){let _0x11d7ca=0x10-_0x587419;_0x11d7ca||=0x10,_0x3f3190+=_0x11d7ca;}return _0x1604fa!==void 0x0&&(_0x4d5f77(_0x3f3190,_0x1604fa),_0x20827c(_0x41f204,_0x1604fa)),_0x3f3190;}function _0x9d0a63(_0x4bbdf0,_0x375810,_0x12f52d){_0x12f52d===void 0x0&&(_0x12f52d=new Uint8Array(_0x375810)),(!_0x4ef79b||!_0x5e040a(_0x4bbdf0))&&(_0x4bbdf0=_0x168e80(_0x4bbdf0));let _0x3837d0=_0x3c2142(_0x12f52d);return{'b':_0x4bbdf0,'o':_0x3837d0,'out':_0x12f52d};}function _0x3aa6bc(_0x3963e4,_0xd59ba){const _0x350e7f=_0x2e0def;if(!_0xd59ba)return _0x3963e4;let _0xd95f13=_0x3963e4['length'];if(_0xd95f13===0x0)throw Error('pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x7b990a=_0x3963e4[_0xd95f13-0x1],_0x1ef56f=0x1;_0x1ef56f&=_0x7b990a-0x1>>>0x1f^0x1,_0x1ef56f&=0x10-_0x7b990a>>>0x1f^0x1;for(let _0x2bacad=0x0;_0x2bacad<0x10;_0x2bacad++){let _0xa1339=_0x2bacad-_0x7b990a>>>0x1f,_0x426962=+((_0x3963e4[_0xd95f13-0x1-_0x2bacad]^_0x7b990a)===0x0);_0x1ef56f&=_0x426962|_0xa1339^0x1;}if(!_0x1ef56f)throw Error(_0x350e7f(0x2de));return _0x3963e4[_0x350e7f(0x1ab)](0x0,_0xd95f13-_0x7b990a);}function _0x1aba72(_0x273333){const _0x35fc6c=_0x2e0def;let _0x40ec47=new Uint8Array(0x10),_0x40335a=_0x3c2142(_0x40ec47);_0x40ec47[_0x35fc6c(0x236)](_0x273333);let _0x4e62c3=0x10-_0x273333[_0x35fc6c(0x4d4)];for(let _0x30655b=0x10-_0x4e62c3;_0x30655b<0x10;_0x30655b++)_0x40ec47[_0x30655b]=_0x4e62c3;return _0x40335a;}let _0xefd068=_0x13a325({'blockSize':0x10,'nonceLength':0x10},function(_0xd0ef97,_0x163c22,_0x3e510e={}){const _0x3f5be2=_0x2e0def;let _0x4816fa=!_0x3e510e[_0x3f5be2(0x2a5)];return{'encrypt'(_0x5712c9,_0x4654f7){const _0x27c2dd=_0x3f5be2;let _0x352291=_0x3a1b36(_0x5712c9,_0x4816fa,_0x4654f7),_0xdc6345=_0x1afd1d(_0xd0ef97),{b:_0xf28ef,o:_0x38e969,out:_0x4b8492}=_0x9d0a63(_0x5712c9,_0x352291,_0x4654f7),_0x6dd3e1=_0x3c2142(_0xf28ef);_0x474900(_0x6dd3e1);let _0x5cbf69=_0x163c22,_0x1ff143=[_0xdc6345];(!_0x4ef79b||!_0x5e040a(_0x5cbf69))&&_0x1ff143['push'](_0x5cbf69=_0x168e80(_0x5cbf69));let _0x41b88a=_0x3c2142(_0x5cbf69);_0x474900(_0x41b88a);let _0x576e6f=_0x41b88a[0x0],_0x8b6c4f=_0x41b88a[0x1],_0x44e768=_0x41b88a[0x2],_0x5f47dc=_0x41b88a[0x3],_0x2206d4=0x0;for(;_0x2206d4+0x4<=_0x6dd3e1[_0x27c2dd(0x4d4)];)_0x576e6f^=_0x6dd3e1[_0x2206d4+0x0],_0x8b6c4f^=_0x6dd3e1[_0x2206d4+0x1],_0x44e768^=_0x6dd3e1[_0x2206d4+0x2],_0x5f47dc^=_0x6dd3e1[_0x2206d4+0x3],{s0:_0x576e6f,s1:_0x8b6c4f,s2:_0x44e768,s3:_0x5f47dc}=_0x160c48(_0xdc6345,_0x576e6f,_0x8b6c4f,_0x44e768,_0x5f47dc),_0x38e969[_0x2206d4++]=_0x576e6f,_0x38e969[_0x2206d4++]=_0x8b6c4f,_0x38e969[_0x2206d4++]=_0x44e768,_0x38e969[_0x2206d4++]=_0x5f47dc;if(_0x4816fa){let _0xb8a6aa=_0x1aba72(_0x5712c9[_0x27c2dd(0x1ab)](_0x2206d4*0x4));_0x474900(_0xb8a6aa),_0x576e6f^=_0xb8a6aa[0x0],_0x8b6c4f^=_0xb8a6aa[0x1],_0x44e768^=_0xb8a6aa[0x2],_0x5f47dc^=_0xb8a6aa[0x3],{s0:_0x576e6f,s1:_0x8b6c4f,s2:_0x44e768,s3:_0x5f47dc}=_0x160c48(_0xdc6345,_0x576e6f,_0x8b6c4f,_0x44e768,_0x5f47dc),_0x38e969[_0x2206d4++]=_0x576e6f,_0x38e969[_0x2206d4++]=_0x8b6c4f,_0x38e969[_0x2206d4++]=_0x44e768,_0x38e969[_0x2206d4++]=_0x5f47dc,_0x349d5a(_0xb8a6aa);}return _0x474900(_0x38e969),_0x349d5a(..._0x1ff143),_0xf28ef!==_0x5712c9&&_0x349d5a(_0xf28ef),_0x4b8492;},'decrypt'(_0x269375,_0x21a414){const _0x44920c=_0x3f5be2;_0x5a8476(_0x269375,_0x21a414);let _0x287b8c=_0x133597(_0xd0ef97);_0x21a414===void 0x0&&(_0x21a414=new Uint8Array(_0x269375[_0x44920c(0x4d4)]));let _0x4621ab=_0x163c22,_0x403e7e=[_0x287b8c];(!_0x4ef79b||!_0x5e040a(_0x4621ab))&&_0x403e7e['push'](_0x4621ab=_0x168e80(_0x4621ab));let _0x4f8182=_0x3c2142(_0x4621ab);_0x474900(_0x4f8182),(!_0x4ef79b||!_0x5e040a(_0x269375))&&_0x403e7e[_0x44920c(0x4d0)](_0x269375=_0x168e80(_0x269375));let _0x42cb4a=_0x3c2142(_0x269375),_0x574ed3=_0x3c2142(_0x21a414);_0x474900(_0x42cb4a);let _0x33082f=_0x4f8182[0x0],_0x14e619=_0x4f8182[0x1],_0x209af9=_0x4f8182[0x2],_0x47fd1b=_0x4f8182[0x3];for(let _0x1f2486=0x0;_0x1f2486+0x4<=_0x42cb4a[_0x44920c(0x4d4)];){let _0x204ff0=_0x33082f,_0x43058e=_0x14e619,_0x433843=_0x209af9,_0x3fe944=_0x47fd1b;_0x33082f=_0x42cb4a[_0x1f2486+0x0],_0x14e619=_0x42cb4a[_0x1f2486+0x1],_0x209af9=_0x42cb4a[_0x1f2486+0x2],_0x47fd1b=_0x42cb4a[_0x1f2486+0x3];let {s0:_0xb8b8b3,s1:_0x49a178,s2:_0x536574,s3:_0x597251}=_0x62ef15(_0x287b8c,_0x33082f,_0x14e619,_0x209af9,_0x47fd1b);_0x574ed3[_0x1f2486++]=_0xb8b8b3^_0x204ff0,_0x574ed3[_0x1f2486++]=_0x49a178^_0x43058e,_0x574ed3[_0x1f2486++]=_0x536574^_0x433843,_0x574ed3[_0x1f2486++]=_0x597251^_0x3fe944;}return _0x474900(_0x574ed3),_0x349d5a(..._0x403e7e),_0x3aa6bc(_0x21a414,_0x4816fa);}};});function _0x3c851e(_0x5b98a1){let _0x309733=atob(_0x5b98a1),_0x28f557=new Uint8Array(_0x309733['length']);for(let _0x24d84a=0x0;_0x24d84a<_0x309733['length'];_0x24d84a++)_0x28f557[_0x24d84a]=_0x309733['charCodeAt'](_0x24d84a);return _0x28f557;}function _0x2ebf08(_0x13bff3){const _0xd0f9aa=_0x2e0def;let _0x236ece='';for(let _0x345b58=0x0;_0x345b58<_0x13bff3[_0xd0f9aa(0x4d4)];_0x345b58++)_0x236ece+=String[_0xd0f9aa(0x227)](_0x13bff3[_0x345b58]);return btoa(_0x236ece);}function _0x449ecb(_0x4cedae,_0x5e66df){const _0x43d3ef=_0x2e0def;let _0x2420b9=_0x3c851e(_0x5e66df),_0x15535f=_0x8c133(0x10);return _0x2ebf08(_0x4bf368(_0x15535f,_0xefd068(_0x2420b9,_0x15535f)[_0x43d3ef(0x483)](_0x324cbe(_0x4cedae))));}function _0x4f57ee(){const _0x51a23b=_0x2e0def;let _0x1883f5=(0x0,_0x463499[_0x51a23b(0x267)])()[_0x51a23b(0x509)];if(typeof window<'u'&&window[_0x51a23b(0x35c)]!==void 0x0&&_0x1883f5){let _0x235767={'time':Math['floor'](Date[_0x51a23b(0x198)]()/0x3e8),'domain':location[_0x51a23b(0x3c2)]};return _0x449ecb(JSON[_0x51a23b(0x39f)](_0x235767),_0x1883f5);}}let _0x15906e=class{constructor(_0x8702c9){const _0x3c1f2b=_0x2e0def;this[_0x3c1f2b(0x21e)]=_0x8702c9,this[_0x3c1f2b(0x14b)]();}[_0x2e0def(0x14b)](){const _0x5417b1=_0x2e0def;this[_0x5417b1(0x21e)][_0x5417b1(0x1d6)]({'interceptor':(_0x41ea65,_0x2b0c5d)=>{const _0xda799c=_0x5417b1;let _0x58a295=_0x4f57ee();return _0x58a295&&_0x41ea65[_0xda799c(0x174)][_0xda799c(0x236)](_0xda799c(0x1fb),_0x58a295),_0x2b0c5d(_0x41ea65);}});}};_0x15906e=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0['Inject'])(_0x5e0f50[_0x2e0def(0x172)]))],_0x15906e);let _0x3d1274=class extends _0x19e1e0['RxDisposable']{constructor(_0x5eafec,_0x277267,_0x3beb07){const _0x21bd14=_0x2e0def;super(),this[_0x21bd14(0x4b1)]=_0x5eafec,this[_0x21bd14(0x397)]=_0x277267,this[_0x21bd14(0x324)]=_0x3beb07,_0xc5e065(this,_0x21bd14(0x4c2),new _0x144f8e['BehaviorSubject'](null)),_0xc5e065(this,_0x21bd14(0x432),new _0x144f8e[(_0x21bd14(0x2d3))]()),_0xc5e065(this,'unitInfo$',this[_0x21bd14(0x4c2)][_0x21bd14(0x3e8)]()),_0xc5e065(this,_0x21bd14(0x2ca),this[_0x21bd14(0x432)]['asObservable']());}[_0x2e0def(0x2d2)](){const _0x31b1bb=_0x2e0def;super[_0x31b1bb(0x2d2)](),this[_0x31b1bb(0x432)]['complete'](),this['_unitInfo$']['complete']();}[_0x2e0def(0x37b)](_0x41bd9f,_0x47e42c,_0x1ee6b9,_0x3d4a04,_0x5e93be){return this['_loadUnit'](_0x41bd9f,_0x47e42c,_0x1ee6b9,_0x3d4a04,_0x5e93be);}[_0x2e0def(0x262)](_0x13b34a,_0x535655,_0x2b0f41,_0x1b467f){const _0x649481=_0x2e0def;return this[_0x649481(0x3af)](_0x13b34a,_0x535655,void 0x0,_0x2b0f41,_0x1b467f);}async[_0x2e0def(0x3af)](_0x3e7e84,_0x4725a0,_0x1156a8,_0x3e7cfb,_0x4ac582){const _0x422f70=_0x2e0def;this[_0x422f70(0x4c2)]['next']({'unitId':_0x3e7e84,'type':_0x4725a0,'subUnitId':_0x3e7cfb});let _0x3e02a5=_0x1156a8;if(_0x3e02a5===void 0x0){var _0x25ee19;let _0x20629e=await((_0x25ee19=this[_0x422f70(0x324)])==null?void 0x0:_0x25ee19[_0x422f70(0x293)](_0x3e7e84));_0x3e02a5=_0x20629e&&(_0x20629e[_0x422f70(0x44b)]||_0x20629e[_0x422f70(0x313)][_0x422f70(0x4d4)]!==0x0)?_0x20629e[_0x422f70(0x325)]:0x0,_0x3e02a5===0x0&&this[_0x422f70(0x4b1)][_0x422f70(0x210)]('[DataLoaderService]',_0x422f70(0x2d4));}return this[_0x422f70(0x4fc)](_0x3e7e84,_0x4725a0,_0x3e02a5,_0x3e7cfb,_0x4ac582);}async['_loadSnapshot'](_0x51863c,_0x3e2680,_0x1057d8,_0x32a184,_0x2adc1e){const _0x163741=_0x2e0def;let _0x9a8813=null;switch(_0x3e2680){case _0x19e1e0['UniverInstanceType'][_0x163741(0x3c5)]:_0x9a8813=await this[_0x163741(0x397)][_0x163741(0x223)](_0x51863c,_0x1057d8,_0x2adc1e,{'initialSubUnitId':_0x32a184});break;case _0x19e1e0[_0x163741(0x3e4)][_0x163741(0x23c)]:_0x9a8813=await this[_0x163741(0x397)][_0x163741(0x1dd)](_0x51863c,_0x1057d8,_0x2adc1e);break;case _0x19e1e0[_0x163741(0x3e4)]['UNIVER_SLIDE']:_0x9a8813=await this[_0x163741(0x397)][_0x163741(0x2e5)](_0x51863c,_0x1057d8,_0x2adc1e);break;case _0x19e1e0[_0x163741(0x3e4)]['UNIVER_BOARD']:_0x9a8813=await this['_snapshotService'][_0x163741(0x3f5)](_0x51863c,_0x1057d8,_0x2adc1e);break;case _0x19e1e0['UniverInstanceType'][_0x163741(0x335)]:_0x9a8813=await this[_0x163741(0x397)][_0x163741(0x45c)](_0x51863c,_0x1057d8,_0x2adc1e);break;case _0x19e1e0[_0x163741(0x3e4)][_0x163741(0x2e2)]:_0x9a8813=await this['_snapshotService']['loadPdf'](_0x51863c,_0x1057d8,_0x2adc1e);break;default:this[_0x163741(0x4b1)][_0x163741(0x340)](_0x163741(0x51e),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0x9a8813&&this[_0x163741(0x432)][_0x163741(0x30c)](_0x9a8813),_0x9a8813;}};_0x3d1274=_0x37ed50([_0x5d2cb5(0x0,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0x1,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x4f9696[_0x2e0def(0x14f)])),_0x5d2cb5(0x2,(0x0,_0x19e1e0[_0x2e0def(0x308)])(_0x5700e5))],_0x3d1274);let _0x325bae=class{constructor(_0x2c5aee,_0x54a03b,_0x2ddb02){const _0x438f84=_0x2e0def;this[_0x438f84(0x21e)]=_0x2c5aee,this[_0x438f84(0x409)]=_0x54a03b,this['_univerInstanceService']=_0x2ddb02,_0xc5e065(this,_0x438f84(0x238),0x0),_0xc5e065(this,_0x438f84(0x3ba),new _0x144f8e[(_0x438f84(0x2d3))]()),_0xc5e065(this,_0x438f84(0x40f),this[_0x438f84(0x3ba)]),_0xc5e065(this,_0x438f84(0x18c),new Map());}['setWaitCount'](_0x33ffd7){const _0x40542e=_0x2e0def;this[_0x40542e(0x238)]=_0x33ffd7,this[_0x40542e(0x3ba)][_0x40542e(0x30c)](_0x33ffd7);}['getImageSourceCache'](_0x2f8d69,_0x4cb653){const _0x3f49d2=_0x2e0def;if(_0x4cb653===_0x19e1e0['ImageSourceType'][_0x3f49d2(0x37a)]){let _0x4dea40=new Image();return _0x4dea40['src']=_0x2f8d69,_0x4dea40;}return this[_0x3f49d2(0x18c)][_0x3f49d2(0x264)](_0x2f8d69);}[_0x2e0def(0x1b9)](_0x15a34f,_0x452cb2,_0x43fb1d){const _0x30a087=_0x2e0def;_0x452cb2!==_0x19e1e0[_0x30a087(0x31d)][_0x30a087(0x37a)]&&_0x43fb1d!=null&&this[_0x30a087(0x18c)]['set'](_0x15a34f,_0x43fb1d);}async[_0x2e0def(0x504)](_0x37a9d2){const _0x3503c3=_0x2e0def;try{let _0x15be1b=this[_0x3503c3(0x46d)](this[_0x3503c3(0x18b)](),''+_0x37a9d2),_0x72587=(await this[_0x3503c3(0x21e)][_0x3503c3(0x264)](_0x15be1b))[_0x3503c3(0x2c0)];if(_0x72587[_0x3503c3(0x340)]&&_0x72587['error'][_0x3503c3(0x1cd)]===_0xc3615a[_0x3503c3(0x36e)]['OK']){let _0x589e81=(0x0,_0x19e1e0[_0x3503c3(0x332)])(_0x72587[_0x3503c3(0x4f7)],this['_getDownloadEndpointURL']());return Promise[_0x3503c3(0x3bd)](_0x589e81);}return Promise[_0x3503c3(0x204)](_0x72587[_0x3503c3(0x340)]);}catch(_0x57b811){return Promise['reject'](_0x57b811);}}async[_0x2e0def(0x3a9)](_0x29d9ef){const _0x3c4747=_0x2e0def;let _0x598148='';if(!_0x5aa41c[_0x3c4747(0x4b5)][_0x3c4747(0x298)](_0x29d9ef['type']))return this[_0x3c4747(0x2e1)](),Promise[_0x3c4747(0x204)](Error(_0x19e1e0[_0x3c4747(0x4a5)][_0x3c4747(0x44e)]));if(_0x29d9ef[_0x3c4747(0x30a)]>(0x0,_0x5aa41c[_0x3c4747(0x430)])())return this[_0x3c4747(0x2e1)](),Promise[_0x3c4747(0x204)](Error(_0x19e1e0[_0x3c4747(0x4a5)][_0x3c4747(0x31f)]));try{let _0x5787f7=new FormData();_0x5787f7['append'](_0x3c4747(0x490),_0x29d9ef);let _0x555a9c=this[_0x3c4747(0x4d1)][_0x3c4747(0x162)](),_0x5cb7e6=_0x555a9c==null?void 0x0:_0x555a9c[_0x3c4747(0x465)]();if(!_0x5cb7e6)throw Error('unitId\x20is\x20not\x20found');let _0x279b94=this[_0x3c4747(0x3c1)]()+_0x3c4747(0x2da)+_0x29d9ef[_0x3c4747(0x30a)]['toString']()+_0x3c4747(0x2b6)+_0xc3615a[_0x3c4747(0x4db)][_0x3c4747(0x1d5)]+'&assign='+encodeURIComponent(_0x5cb7e6),_0x3e7314={'body':_0x5787f7},_0xe79ef7=(await this[_0x3c4747(0x21e)][_0x3c4747(0x4e5)](_0x279b94,_0x3e7314))[_0x3c4747(0x2c0)];if(typeof _0xe79ef7[_0x3c4747(0x501)]!='string')return this[_0x3c4747(0x2e1)](),Promise[_0x3c4747(0x204)](Error(_0x19e1e0[_0x3c4747(0x4a5)][_0x3c4747(0x482)]));_0x598148=_0xe79ef7[_0x3c4747(0x501)];}catch{return this[_0x3c4747(0x2e1)](),Promise[_0x3c4747(0x204)](Error(_0x19e1e0['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0xd7bfbc,_0x1df900)=>{let _0x319240=new FileReader();_0x319240['readAsDataURL'](_0x29d9ef),_0x319240['onload']=_0x513f81=>{const _0xdb900c=_0xa473;var _0x3c69da;let _0x4a1f5a=(_0x3c69da=_0x513f81[_0xdb900c(0x4b3)])==null?void 0x0:_0x3c69da[_0xdb900c(0x165)];_0x4a1f5a==null?(this['_decreaseWaiting'](),_0x1df900(Error(_0x19e1e0['ImageUploadStatusType']['ERROR_IMAGE']))):(_0xd7bfbc({'imageId':(0x0,_0x19e1e0[_0xdb900c(0x47a)])(0x6),'imageSourceType':_0x19e1e0['ImageSourceType'][_0xdb900c(0x4f5)],'source':_0x598148,'base64Cache':_0x4a1f5a,'status':_0x19e1e0[_0xdb900c(0x4a5)]['SUCCUSS']}),this[_0xdb900c(0x2e1)]());};});}[_0x2e0def(0x3c1)](){const _0x289ecb=_0x2e0def;let _0x57b0c9=this[_0x289ecb(0x409)][_0x289ecb(0x277)](_0x21d492);return(_0x57b0c9==null?void 0x0:_0x57b0c9[_0x289ecb(0x364)])??_0x289ecb(0x385);}[_0x2e0def(0x18b)](){const _0x4961f0=_0x2e0def;let _0x2727fd=this[_0x4961f0(0x409)][_0x4961f0(0x277)](_0x21d492);return(_0x2727fd==null?void 0x0:_0x2727fd[_0x4961f0(0x4fd)])??_0x4961f0(0x46b);}[_0x2e0def(0x36d)](){const _0x402d94=_0x2e0def;let _0x1ffb4c=this[_0x402d94(0x409)][_0x402d94(0x277)](_0x21d492);return(_0x1ffb4c==null?void 0x0:_0x1ffb4c[_0x402d94(0x1a6)])??location[_0x402d94(0x44f)];}[_0x2e0def(0x46d)](_0x4a9a9e,_0x3f021b){const _0x52a65e=_0x2e0def;return _0x4a9a9e[_0x52a65e(0x33e)](_0x52a65e(0x2f8),_0x3f021b);}[_0x2e0def(0x2e1)](){const _0x5e7539=_0x2e0def;--this[_0x5e7539(0x238)],this[_0x5e7539(0x3ba)][_0x5e7539(0x30c)](this[_0x5e7539(0x238)]);}};_0x325bae=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0['Inject'])(_0x5e0f50[_0x2e0def(0x172)])),_0x5d2cb5(0x1,_0x19e1e0[_0x2e0def(0x4f4)]),_0x5d2cb5(0x2,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x19c)]))],_0x325bae);let _0x5e032f=class{constructor(_0x240df1,_0x136529){const _0x458051=_0x2e0def;this[_0x458051(0x409)]=_0x240df1,this[_0x458051(0x486)]=_0x136529;}[_0x2e0def(0x2af)](){const _0x29f564=_0x2e0def;let _0x35f815=this['_configService'][_0x29f564(0x277)](_0x21d492);return(_0x35f815==null?void 0x0:_0x35f815[_0x29f564(0x3a1)])??'/universer-api/authz';}async[_0x2e0def(0x29f)](_0x32d051){const _0x4bb28c=_0x2e0def;let _0x5aafae=this[_0x4bb28c(0x2af)]()+_0x4bb28c(0x161);return{'list':[{'title':_0x4bb28c(0x273),'mentions':(await this[_0x4bb28c(0x486)][_0x4bb28c(0x264)](_0x5aafae,{'params':{'objectID':_0x32d051[_0x4bb28c(0x26e)],'unitID':_0x32d051[_0x4bb28c(0x26e)]}}))[_0x4bb28c(0x2c0)][_0x4bb28c(0x49f)][_0x4bb28c(0x417)](_0x1aff09=>({'objectId':_0x1aff09['id'],'name':_0x1aff09[_0x4bb28c(0x19f)][_0x4bb28c(0x1d3)],'metadata':{'icon':_0x1aff09[_0x4bb28c(0x19f)]['avatar']},'label':_0x1aff09[_0x4bb28c(0x19f)][_0x4bb28c(0x1d3)],'objectType':_0x19e1e0[_0x4bb28c(0x4f6)][_0x4bb28c(0x250)]})),'metadata':{},'type':_0x19e1e0[_0x4bb28c(0x4f6)]['PERSON']}]};}};_0x5e032f=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0['IConfigService'])),_0x5d2cb5(0x1,(0x0,_0x19e1e0['Inject'])(_0x5e0f50[_0x2e0def(0x172)]))],_0x5e032f);let _0xcd8c0f=class extends _0x19e1e0['RxDisposable']{constructor(_0x26320e,_0x31f120,_0x4ef66b,_0x2f6876,_0x1cff21,_0xbe3894){const _0x3fec4c=_0x2e0def;super(),this[_0x3fec4c(0x196)]=_0x26320e,this[_0x3fec4c(0x4d1)]=_0x31f120,this[_0x3fec4c(0x243)]=_0x4ef66b,this[_0x3fec4c(0x1a8)]=_0x2f6876,this[_0x3fec4c(0x15d)]=_0x1cff21,this['_collaborationUIEventService']=_0xbe3894,_0xc5e065(this,'_closedUnits',new Set()),this[_0x3fec4c(0x47f)](()=>this['_closedUnits'][_0x3fec4c(0x1ef)]()),this[_0x3fec4c(0x47f)](_0x382b3f(this[_0x3fec4c(0x4d1)])[_0x3fec4c(0x341)](({unitId:_0x49a93c})=>this[_0x3fec4c(0x4c6)][_0x3fec4c(0x15c)](_0x49a93c))),this['_initUnitPermissionChange'](),this[_0x3fec4c(0x2aa)](),[_0x19e1e0[_0x3fec4c(0x3e4)][_0x3fec4c(0x23c)],_0x19e1e0[_0x3fec4c(0x3e4)]['UNIVER_SLIDE'],_0x19e1e0[_0x3fec4c(0x3e4)][_0x3fec4c(0x335)],_0x19e1e0['UniverInstanceType'][_0x3fec4c(0x27b)]][_0x3fec4c(0x307)](_0x32dd0e=>{const _0x1eded4=_0x3fec4c;this[_0x1eded4(0x47f)](this[_0x1eded4(0x4d1)][_0x1eded4(0x1ee)](_0x32dd0e)[_0x1eded4(0x341)](_0x443b01=>{const _0x10f1de=_0x1eded4;this[_0x10f1de(0x4c6)][_0x10f1de(0x32b)](_0x443b01[_0x10f1de(0x465)]()),this['_injector']['get'](_0x19e1e0[_0x10f1de(0x337)])[_0x10f1de(0x3d2)](_0x443b01[_0x10f1de(0x465)]());}));});}['_initCloseConn'](){const _0x56a955=_0x2e0def;let _0xeb16fe=async(_0x98f95,_0x4730c3)=>{const _0x3d13d8=_0xa473;let _0x19e4d7=await this[_0x3d13d8(0x15d)][_0x3d13d8(0x1e3)](_0x98f95);this[_0x3d13d8(0x2fe)]||this[_0x3d13d8(0x4c6)][_0x3d13d8(0x39a)](_0x98f95)||!this['_univerInstanceService'][_0x3d13d8(0x16b)](_0x98f95)||_0x19e4d7[_0x3d13d8(0x4fb)][_0x3d13d8(0x251)]((0x0,_0x472409[_0x3d13d8(0x192)])(_0x5c693c=>_0x5c693c[_0x3d13d8(0x1f2)]===_0x4f9696[_0x3d13d8(0x257)]['SHOULD_CLOSE_CONN']),(0x0,_0x472409[_0x3d13d8(0x357)])((0x0,_0x144f8e['merge'])(this[_0x3d13d8(0x24e)],this[_0x3d13d8(0x4d1)]['unitDisposed$']['pipe']((0x0,_0x472409[_0x3d13d8(0x192)])(_0x26828a=>_0x26828a[_0x3d13d8(0x465)]()===_0x98f95)))))[_0x3d13d8(0x341)](_0x2af55b=>{const _0x1e28ff=_0x3d13d8;let {reason:_0x45f3b2}=_0x2af55b[_0x1e28ff(0x28c)];this[_0x1e28ff(0x3d1)][_0x1e28ff(0x445)]({'id':_0x1e28ff(0x213),'data':_0x45f3b2}),this['_closedUnits'][_0x1e28ff(0x32b)](_0x98f95),this[_0x1e28ff(0x196)][_0x1e28ff(0x264)](_0x19e1e0[_0x1e28ff(0x337)])[_0x1e28ff(0x3d2)](_0x98f95);let _0xa9152=_0x36e800(_0x4730c3);_0xa9152!=null&&this[_0x1e28ff(0x353)](_0x98f95,_0xa9152,_0xc3615a[_0x1e28ff(0x45d)]['Edit'],!0x1),this['_collaborationSessionService'][_0x1e28ff(0x28f)](_0x98f95);});};_0x382b3f(this[_0x56a955(0x4d1)])[_0x56a955(0x251)]((0x0,_0x472409[_0x56a955(0x192)])(({unitId:_0xeed3db})=>!(0x0,_0x19e1e0[_0x56a955(0x148)])(_0xeed3db)),(0x0,_0x472409['takeUntil'])(this[_0x56a955(0x24e)]))[_0x56a955(0x341)](({type:_0x2df433,unitId:_0x41c3b8})=>{const _0x4cc425=_0x56a955;_0xeb16fe(_0x41c3b8,_0x2df433)[_0x4cc425(0x2bd)](_0x2d5887=>this['_injector'][_0x4cc425(0x264)](_0x19e1e0['ILogService'])[_0x4cc425(0x340)](_0x2d5887));});}['_initUnitPermissionChange'](){const _0x564e2d=_0x2e0def;let _0x2a366c=async(_0x59f672,_0x17950a)=>{const _0x1c6379=_0xa473;let _0x3fe2cf=await this[_0x1c6379(0x15d)][_0x1c6379(0x1e3)](_0x59f672);if(!(this[_0x1c6379(0x2fe)]||this[_0x1c6379(0x4c6)][_0x1c6379(0x39a)](_0x59f672)||!this['_univerInstanceService'][_0x1c6379(0x16b)](_0x59f672))){if(_0x17950a===_0x19e1e0['UniverInstanceType'][_0x1c6379(0x3c5)]){let _0x2ce93f=this[_0x1c6379(0x196)]['get'](_0x442e6a['SheetPermissionInitController']);await _0x2ce93f[_0x1c6379(0x488)](_0x59f672),_0x3fe2cf[_0x1c6379(0x4fb)][_0x1c6379(0x251)]((0x0,_0x472409['filter'])(_0xf86278=>_0xf86278[_0x1c6379(0x1f2)]===_0x4f9696[_0x1c6379(0x257)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x472409[_0x1c6379(0x357)])((0x0,_0x144f8e[_0x1c6379(0x208)])(this[_0x1c6379(0x24e)],_0x3fe2cf[_0x1c6379(0x4fb)][_0x1c6379(0x251)]((0x0,_0x472409[_0x1c6379(0x192)])(_0x5b3dff=>_0x5b3dff[_0x1c6379(0x1f2)]===_0x4f9696['CollaborationEvent'][_0x1c6379(0x4d6)])),this[_0x1c6379(0x4d1)]['unitDisposed$']['pipe']((0x0,_0x472409[_0x1c6379(0x192)])(_0x2ba711=>_0x2ba711[_0x1c6379(0x465)]()===_0x59f672)))))[_0x1c6379(0x341)](_0x56c760=>{const _0x973d00=_0x1c6379;let {objectId:_0x2f1da7}=_0x56c760[_0x973d00(0x28c)];_0x2f1da7===_0x59f672?_0x2ce93f[_0x973d00(0x488)](_0x59f672):_0x2ce93f[_0x973d00(0x3f3)](_0x59f672,_0x2f1da7);});}else _0x3fe2cf[_0x1c6379(0x4fb)][_0x1c6379(0x251)]((0x0,_0x472409['filter'])(_0x42b23b=>_0x42b23b[_0x1c6379(0x1f2)]===_0x4f9696[_0x1c6379(0x257)]['UPDATE_PERMISSION_OBJ']),(0x0,_0x472409[_0x1c6379(0x357)])((0x0,_0x144f8e[_0x1c6379(0x208)])(this[_0x1c6379(0x24e)],_0x3fe2cf[_0x1c6379(0x4fb)][_0x1c6379(0x251)]((0x0,_0x472409[_0x1c6379(0x192)])(_0x14c10d=>_0x14c10d[_0x1c6379(0x1f2)]===_0x4f9696[_0x1c6379(0x257)][_0x1c6379(0x4d6)])),this[_0x1c6379(0x4d1)][_0x1c6379(0x435)][_0x1c6379(0x251)]((0x0,_0x472409[_0x1c6379(0x192)])(_0x38c90c=>_0x38c90c[_0x1c6379(0x465)]()===_0x59f672)))))[_0x1c6379(0x341)](()=>{const _0x5d18ed=_0x1c6379;this[_0x5d18ed(0x157)](_0x59f672,_0x17950a)[_0x5d18ed(0x2bd)](_0x30564c=>this[_0x5d18ed(0x196)]['get'](_0x19e1e0[_0x5d18ed(0x287)])[_0x5d18ed(0x340)](_0x30564c));}),await this['_refreshUnitPermission'](_0x59f672,_0x17950a);}};_0x382b3f(this[_0x564e2d(0x4d1)])[_0x564e2d(0x251)]((0x0,_0x472409[_0x564e2d(0x192)])(({unitId:_0x2dd9b3})=>!(0x0,_0x19e1e0[_0x564e2d(0x148)])(_0x2dd9b3)),(0x0,_0x472409[_0x564e2d(0x357)])(this['dispose$']))[_0x564e2d(0x341)](({type:_0x35de54,unitId:_0xf2cd97})=>{const _0x29d096=_0x564e2d;_0x2a366c(_0xf2cd97,_0x35de54)[_0x29d096(0x2bd)](_0x31a501=>this[_0x29d096(0x196)]['get'](_0x19e1e0[_0x29d096(0x287)])[_0x29d096(0x340)](_0x31a501));});}async[_0x2e0def(0x157)](_0x438ba6,_0x3d925f){const _0x251c69=_0x2e0def;let _0x1efaa3=_0x36e800(_0x3d925f);if(_0x1efaa3==null)return;let _0x40b2ba=this[_0x251c69(0x196)][_0x251c69(0x264)](_0x19e1e0[_0x251c69(0x337)]);if(_0x40b2ba['supports']({'unitId':_0x438ba6,'objectId':_0x438ba6,'objectType':_0x1efaa3})){await _0x40b2ba[_0x251c69(0x2eb)](_0x438ba6);return;}let _0x4bc32b=this['_getUnitPermissionPoints'](_0x438ba6,_0x1efaa3);if(!_0x4bc32b[_0x251c69(0x4d4)])return;let _0x3e1152=await this['_authzIoService'][_0x251c69(0x31b)]({'objectID':_0x438ba6,'objectType':_0x1efaa3,'unitID':_0x438ba6,'actions':_0x4bc32b[_0x251c69(0x417)](({action:_0x4bab71})=>_0x4bab71)});this[_0x251c69(0x2fe)]||this[_0x251c69(0x4c6)]['has'](_0x438ba6)||!this['_univerInstanceService']['getUnit'](_0x438ba6)||_0x3e1152['forEach'](_0x2de248=>{const _0x3455e7=_0x251c69;let _0x5ac5a3=_0x2de248[_0x3455e7(0x362)],_0x1c9886=_0x2de248['allowed'];_0x5ac5a3!=null&&_0x1c9886!=null&&_0x4bc32b[_0x3455e7(0x192)](_0x38a295=>_0x38a295[_0x3455e7(0x362)]===_0x5ac5a3)[_0x3455e7(0x307)](_0x69ddae=>this['_permissionService'][_0x3455e7(0x134)](_0x69ddae['id'],_0x1c9886));});}[_0x2e0def(0x1e9)](_0x72d892,_0x3c2565){const _0x5143d0=_0x2e0def;let _0x2d7aeb=[];return this[_0x5143d0(0x243)][_0x5143d0(0x25f)]()[_0x5143d0(0x307)]((_0x55e4e2,_0x256041)=>{const _0x59282c=_0x5143d0;_0x55e4e2[_0x59282c(0x341)](_0x20daa1=>{const _0x2d15ac=_0x59282c;_0x20daa1[_0x2d15ac(0x33d)]===_0x3c2565&&'unitId'in _0x20daa1&&_0x20daa1['unitId']===_0x72d892&&(!(_0x2d15ac(0x4c1)in _0x20daa1)||_0x20daa1[_0x2d15ac(0x4c1)]===_0x72d892)&&_0x2d7aeb[_0x2d15ac(0x4d0)]({'id':_0x256041,'action':_0x20daa1[_0x2d15ac(0x4c9)]});})['unsubscribe']();}),_0x2d7aeb;}[_0x2e0def(0x353)](_0x560d1f,_0x1a934a,_0x5819db,_0x3aba8e){const _0x29bcca=_0x2e0def;this[_0x29bcca(0x243)][_0x29bcca(0x25f)]()[_0x29bcca(0x307)]((_0x14ef4b,_0x111a9d)=>{const _0xccfbae=_0x29bcca;let _0x788f46=!0x1;_0x14ef4b[_0xccfbae(0x341)](_0x47c013=>{const _0x3ae2da=_0xccfbae;_0x788f46=_0x47c013[_0x3ae2da(0x33d)]===_0x1a934a&&_0x47c013[_0x3ae2da(0x4c9)]===_0x5819db&&'unitId'in _0x47c013&&_0x47c013[_0x3ae2da(0x26e)]===_0x560d1f&&(!(_0x3ae2da(0x4c1)in _0x47c013)||_0x47c013['objectId']===_0x560d1f);})[_0xccfbae(0x45a)](),_0x788f46&&this[_0xccfbae(0x243)][_0xccfbae(0x134)](_0x111a9d,_0x3aba8e);});}};_0xcd8c0f=_0x37ed50([_0x5d2cb5(0x0,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x1,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x2,_0x19e1e0[_0x2e0def(0x419)]),_0x5d2cb5(0x3,_0x19e1e0['IAuthzIoService']),_0x5d2cb5(0x4,(0x0,_0x19e1e0['Inject'])(_0x696f8d)),_0x5d2cb5(0x5,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x1bde53))],_0xcd8c0f);function _0x382b3f(_0x1d9e87){const _0x48e966=_0x2e0def;return(0x0,_0x144f8e[_0x48e966(0x208)])(...[_0x19e1e0[_0x48e966(0x3e4)][_0x48e966(0x3c5)],_0x19e1e0[_0x48e966(0x3e4)][_0x48e966(0x23c)],_0x19e1e0[_0x48e966(0x3e4)][_0x48e966(0x261)],_0x19e1e0[_0x48e966(0x3e4)]['UNIVER_BOARD'],_0x19e1e0['UniverInstanceType']['UNIVER_BASE']][_0x48e966(0x417)](_0x4239a7=>_0x1d9e87[_0x48e966(0x3fe)](_0x4239a7)['pipe']((0x0,_0x472409[_0x48e966(0x417)])(_0xcc5066=>({'type':_0x4239a7,'unitId':_0xcc5066[_0x48e966(0x1c3)][_0x48e966(0x465)]()})))));}function _0x36e800(_0x137122){const _0xa14e7d=_0x2e0def;switch(_0x137122){case _0x19e1e0['UniverInstanceType']['UNIVER_SHEET']:return _0xc3615a[_0xa14e7d(0x2a9)][_0xa14e7d(0x142)];case _0x19e1e0[_0xa14e7d(0x3e4)]['UNIVER_DOC']:return _0xc3615a[_0xa14e7d(0x2a9)][_0xa14e7d(0x2b4)];case _0x19e1e0[_0xa14e7d(0x3e4)][_0xa14e7d(0x261)]:return _0xc3615a[_0xa14e7d(0x2a9)][_0xa14e7d(0x13c)];case _0x19e1e0['UniverInstanceType'][_0xa14e7d(0x27b)]:return _0xc3615a[_0xa14e7d(0x2a9)][_0xa14e7d(0x14a)];case _0x19e1e0[_0xa14e7d(0x3e4)][_0xa14e7d(0x335)]:return _0xc3615a[_0xa14e7d(0x2a9)]['Base'];default:return;}}let _0x531ad2=class{constructor(_0x4b8bfc,_0x1b6b9c){const _0x1675dc=_0x2e0def;this[_0x1675dc(0x409)]=_0x4b8bfc,this[_0x1675dc(0x21e)]=_0x1b6b9c;}async['getUnitOnRev'](_0x59eb87,_0x5c0cb9){const _0x1f99ca=_0x2e0def;var _0x1c8e48;let {unitID:_0x330436,type:_0x262f37,revision:_0x216c75=0x0}=_0x5c0cb9,_0x278946=this[_0x1f99ca(0x14e)]()+'/'+_0x262f37+_0x1f99ca(0x29e)+_0x330436+_0x1f99ca(0x4eb)+_0x216c75,_0x1f669a=(await this['_httpService'][_0x1f99ca(0x264)](_0x278946))[_0x1f99ca(0x2c0)],_0x3a0dbc=(_0x1c8e48=_0x1f669a['snapshot'])==null?void 0x0:_0x1c8e48[_0x1f99ca(0x199)];if(_0x3a0dbc){let _0x2eff76=_0x3a0dbc==null?void 0x0:_0x3a0dbc[_0x1f99ca(0x524)];_0x3a0dbc[_0x1f99ca(0x524)]=_0x4f9696[_0x1f99ca(0x2ef)]['encode']((0x0,_0x4f9696[_0x1f99ca(0x386)])(_0x2eff76)),Object[_0x1f99ca(0x440)](_0x3a0dbc[_0x1f99ca(0x51a)])[_0x1f99ca(0x307)](([,_0xfa6e7d])=>{const _0x309e30=_0x1f99ca;let _0x559e31=_0xfa6e7d[_0x309e30(0x524)];_0xfa6e7d[_0x309e30(0x524)]=_0x4f9696['textEncoder'][_0x309e30(0x358)]((0x0,_0x4f9696[_0x309e30(0x386)])(_0x559e31));});}return _0x1f669a;}async[_0x2e0def(0x394)](_0x3bef46,_0x3daa36){const _0x5f2ae3=_0x2e0def;let {unitID:_0x2a5670,type:_0x2be412,blockID:_0x5891a6}=_0x3daa36,_0x2ef1c6=this[_0x5f2ae3(0x3b3)]()+'/'+_0x2be412+_0x5f2ae3(0x29e)+_0x2a5670+_0x5f2ae3(0x32e)+_0x5891a6;return(await this[_0x5f2ae3(0x21e)]['get'](_0x2ef1c6))[_0x5f2ae3(0x2c0)];}async[_0x2e0def(0x366)](_0x4b7887,_0x5a7a26){const _0x454306=_0x2e0def;let {unitID:_0x2482f9,type:_0x3f5575,blockID:_0x1360ec}=_0x5a7a26,_0x2dfa90=this[_0x454306(0x3b3)]()+'/block/'+_0x3f5575+_0x454306(0x29e)+_0x2482f9+_0x454306(0x32e)+_0x1360ec;return(await this['_httpService'][_0x454306(0x264)](_0x2dfa90))[_0x454306(0x2c0)];}async[_0x2e0def(0x4d7)](_0x2ee0c6,_0x32f9cf){const _0x4b458c=_0x2e0def;let {unitID:_0x50655a,type:_0x282608,from:_0x482d37,to:_0x59543f}=_0x32f9cf,_0x22432e=this[_0x4b458c(0x3b3)]()+'/'+_0x282608+'/unit/'+_0x50655a+'/fetchmissing?from='+_0x482d37+_0x4b458c(0x2ee)+_0x59543f;return(await this[_0x4b458c(0x21e)][_0x4b458c(0x264)](_0x22432e))[_0x4b458c(0x2c0)];}[_0x2e0def(0x14e)](){const _0x3bbe3a=_0x2e0def;return this['_configService'][_0x3bbe3a(0x277)](_0x3bbe3a(0x24f))??this[_0x3bbe3a(0x3b3)]();}['_getAPIPrefix'](){const _0x2d5f8a=_0x2e0def;let _0xe60e5a=this['_configService'][_0x2d5f8a(0x277)](_0x21d492);return(_0xe60e5a==null?void 0x0:_0xe60e5a[_0x2d5f8a(0x50d)])??_0x2d5f8a(0x305);}async[_0x2e0def(0x30e)](_0x4c21bd,_0x6be543){const _0x43c9f9=_0x2e0def;let _0x131707='/universer-api/snapshot/'+_0x6be543['type']+_0x43c9f9(0x29e)+_0x6be543[_0x43c9f9(0x2d8)]+'/resources';return(await this[_0x43c9f9(0x21e)][_0x43c9f9(0x264)](_0x131707,{'params':{'resourceId':JSON[_0x43c9f9(0x39f)](_0x6be543[_0x43c9f9(0x368)])}}))['body'];}[_0x2e0def(0x2dd)](){const _0x2b860d=_0x2e0def;throw Error(_0x2b860d(0x4f9));}[_0x2e0def(0x4df)](){const _0x2c57b9=_0x2e0def;throw Error(_0x2c57b9(0x4f9));}[_0x2e0def(0x45e)](){const _0x53d852=_0x2e0def;throw Error(_0x53d852(0x4f9));}[_0x2e0def(0x268)](){const _0x6a804=_0x2e0def;throw Error(_0x6a804(0x4f9));}[_0x2e0def(0x458)](){const _0x5b09ed=_0x2e0def;throw Error(_0x5b09ed(0x4f9));}[_0x2e0def(0x20d)](){const _0x67d4e6=_0x2e0def;throw Error(_0x67d4e6(0x4f9));}};_0x531ad2=_0x37ed50([_0x5d2cb5(0x0,_0x19e1e0[_0x2e0def(0x4f4)]),_0x5d2cb5(0x1,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x5e0f50[_0x2e0def(0x172)]))],_0x531ad2);let _0x1200af=class extends _0x19e1e0[_0x2e0def(0x1f3)]{constructor(_0x361d30,_0x4cca30,_0x386541,_0xb37b40,_0x367645,_0x32f35a){const _0x2fc8bb=_0x2e0def;super(_0x361d30,_0x4cca30,_0x386541,_0xb37b40),this[_0x2fc8bb(0x4e2)]=_0x367645,this[_0x2fc8bb(0x4b1)]=_0x32f35a;}['transformUndoRedo'](_0x244327,_0xcd6469){const _0x7efaf7=_0x2e0def;let _0x3c8c81=this[_0x7efaf7(0x1c1)](_0x244327);if(_0x3c8c81)try{let _0x2c04c5=this[_0x7efaf7(0x218)](_0x3c8c81,_0xcd6469);this[_0x7efaf7(0x41c)](_0x244327,_0x2c04c5);}catch(_0x2fd7e7){this[_0x7efaf7(0x4b1)]['error']('[CollaborationUndoRedoService]',_0x2fd7e7),this[_0x7efaf7(0x422)](_0x244327);}let _0x588a90=this[_0x7efaf7(0x1e6)](_0x244327);if(_0x588a90)try{let _0x296255=this[_0x7efaf7(0x218)](_0x588a90,_0xcd6469,!0x0);this['_substituteRedoStack'](_0x244327,_0x296255);}catch(_0xb48a72){this[_0x7efaf7(0x4b1)]['error'](_0xb48a72),this[_0x7efaf7(0x147)](_0x244327);}}[_0x2e0def(0x422)](_0x53dcb6){const _0x4f4c82=_0x2e0def;let _0x53cada=this[_0x4f4c82(0x1c1)](_0x53dcb6);_0x53cada&&(_0x53cada[_0x4f4c82(0x4d4)]=0x0,this[_0x4f4c82(0x4ab)]());}[_0x2e0def(0x147)](_0x406dd2){const _0x489f67=_0x2e0def;let _0x518bca=this[_0x489f67(0x1e6)](_0x406dd2);_0x518bca&&(_0x518bca[_0x489f67(0x4d4)]=0x0,this[_0x489f67(0x4ab)]());}[_0x2e0def(0x41c)](_0xa9faf8,_0x2a766e){const _0x73b5bc=_0x2e0def;this[_0x73b5bc(0x263)]['set'](_0xa9faf8,_0x2a766e),this[_0x73b5bc(0x4ab)]();}[_0x2e0def(0x2b3)](_0x443042,_0x5d4d7e){const _0x1f3a36=_0x2e0def;this['_redoStacks'][_0x1f3a36(0x236)](_0x443042,_0x5d4d7e),this['_updateStatus']();}['_transformStack'](_0x58d1f2,_0x38c156,_0x106b3f=!0x1){const _0xa31579=_0x2e0def;if(!_0x58d1f2[_0xa31579(0x4d4)])return[];let _0x26b909=[],_0x4dacb3=_0x38c156,_0x3b897a=_0x38c156[_0xa31579(0x33d)]===_0x19e1e0['UniverInstanceType'][_0xa31579(0x23c)]?this[_0xa31579(0x4d1)][_0xa31579(0x16b)](_0x38c156['unitID'],_0x19e1e0['UniverInstanceType'][_0xa31579(0x23c)]):null,_0x4f8885=_0x3b897a?{'id':_0x3b897a[_0xa31579(0x465)](),'documentStyle':{},'tableSource':_0x19e1e0[_0xa31579(0x372)]['deepClone'](_0x3b897a[_0xa31579(0x3a0)]()[_0xa31579(0x1aa)]??{})}:null;for(let _0x42ea98=_0x58d1f2['length']-0x1;_0x42ea98>=0x0;_0x42ea98--){let {unitID:_0x58f85b,undoMutations:_0x41f8f2,redoMutations:_0x513a62}=_0x58d1f2[_0x42ea98],_0x21bd01=_0x106b3f?_0x513a62:_0x41f8f2,_0x4195bf=this['_transformHistoryMutations'](_0x4dacb3,_0x21bd01);if((0x0,_0x4f9696[_0xa31579(0x1f8)])(_0x4195bf)){this[_0xa31579(0x4b1)]['error'](_0xa31579(0x22e),_0xa31579(0x48e),_0x4195bf);break;}let _0x295265=_0x106b3f?_0x41f8f2:_0x513a62,_0x2bed63=this['_transformHistoryMutations'](_0x4195bf[_0xa31579(0x3ab)],_0x295265);if((0x0,_0x4f9696[_0xa31579(0x1f8)])(_0x2bed63)){this['_logService'][_0xa31579(0x340)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2bed63);break;}let _0x4320d8=_0x106b3f?_0x2bed63:_0x4195bf,_0x442785=_0x106b3f?_0x4195bf:_0x2bed63;_0x4dacb3=_0x4195bf[_0xa31579(0x3ab)],_0x4f8885&&=this[_0xa31579(0x30b)](_0x4f8885,_0x4195bf['m2Prime'],_0x2bed63['m2Prime']),_0x26b909[_0xa31579(0x4d0)]({'unitID':_0x58f85b,'undoMutations':_0x4320d8[_0xa31579(0x1b0)],'redoMutations':_0x442785[_0xa31579(0x1b0)]});}return _0x26b909['reverse']();}[_0x2e0def(0x4cc)](_0x4863a5,_0x11db70){const _0x3fc7d9=_0x2e0def;if(_0x4863a5[_0x3fc7d9(0x33d)]!==_0x19e1e0[_0x3fc7d9(0x3e4)][_0x3fc7d9(0x23c)]||_0x11db70[_0x3fc7d9(0x202)](_0x4fb1b8=>_0x4fb1b8['id']!==_0x444f1a[_0x3fc7d9(0x49a)]['id']))return this[_0x3fc7d9(0x4e2)]['transformMutationsWithChangeset'](_0x4863a5,_0x11db70);let _0x22221f=_0x19e1e0[_0x3fc7d9(0x372)][_0x3fc7d9(0x2f9)](_0x11db70),_0x36afdc=[];for(let _0x1f1e85 of _0x4863a5[_0x3fc7d9(0x313)]){let _0xa969bc={..._0x4863a5,'mutations':[_0x1f1e85]},_0x560147=[];for(let _0x5447b1 of _0x22221f){_0xa969bc=this['_rebaseParagraphHistory'](_0xa969bc,[_0x5447b1]);let _0x1257f5=this[_0x3fc7d9(0x4e2)][_0x3fc7d9(0x493)](_0xa969bc,[_0x5447b1]);if((0x0,_0x4f9696[_0x3fc7d9(0x1f8)])(_0x1257f5))return _0x1257f5;_0xa969bc=_0x1257f5[_0x3fc7d9(0x3ab)],_0x560147[_0x3fc7d9(0x4d0)](..._0x1257f5[_0x3fc7d9(0x1b0)]);}_0x22221f=_0x560147,_0x36afdc['push'](..._0xa969bc[_0x3fc7d9(0x313)]);}return{'m2Prime':_0x22221f,'c1Prime':{..._0x4863a5,'mutations':_0x36afdc}};}['_rebaseParagraphHistory'](_0x47aa0e,_0x4e8eef){const _0x56afed=_0x2e0def;let _0x3ec18b=new Map(),_0x2ccbb8=_0x19e1e0['JSON1']['type'][_0x56afed(0x230)](_0x4e8eef[0x0]['params'][_0x56afed(0x17d)]);if(_0x2ccbb8['traverse'](null,_0x455f2d=>{const _0x250441=_0x56afed;if(_0x455f2d['et']!==_0x250441(0x425))return;let _0x2a693f=JSON[_0x250441(0x39f)](_0x2ccbb8[_0x250441(0x19b)]()),_0x50d2f8=_0x3ec18b[_0x250441(0x264)](_0x2a693f)??new Map(),_0x1b7da9=0x0;for(let _0x4ea0a7 of _0x455f2d['e']){if(_0x4ea0a7['t']===_0x19e1e0[_0x250441(0x1ce)][_0x250441(0x2ab)]){var _0x559043;for(let _0x4795a6 of((_0x559043=_0x4ea0a7[_0x250441(0x2c0)])==null?void 0x0:_0x559043[_0x250441(0x31a)])??[])_0x50d2f8[_0x250441(0x236)](_0x1b7da9+_0x4795a6[_0x250441(0x469)],{'paragraph':_0x4795a6,'replace':_0x4ea0a7[_0x250441(0x4c4)]===_0x19e1e0[_0x250441(0x411)]['REPLACE']});}_0x4ea0a7['t']!==_0x19e1e0[_0x250441(0x1ce)][_0x250441(0x291)]&&(_0x1b7da9+=_0x4ea0a7[_0x250441(0x214)]);}_0x50d2f8[_0x250441(0x30a)]>0x0&&_0x3ec18b[_0x250441(0x236)](_0x2a693f,_0x50d2f8);}),_0x3ec18b[_0x56afed(0x30a)]===0x0)return _0x47aa0e;let _0x5716fe=_0x19e1e0[_0x56afed(0x372)][_0x56afed(0x2f9)](_0x47aa0e);for(let _0x57e3fb of _0x5716fe['mutations']){if(_0x57e3fb['id']!==_0x444f1a['RichTextEditingMutation']['id'])continue;let _0x51acc6=_0x19e1e0['JSON1'][_0x56afed(0x33d)][_0x56afed(0x230)](_0x57e3fb[_0x56afed(0x4b2)][_0x56afed(0x17d)]);_0x51acc6[_0x56afed(0x3ed)](null,_0x395fbf=>{const _0x1058ed=_0x56afed;if(_0x395fbf['et']!==_0x1058ed(0x425))return;let _0x383b0a=JSON[_0x1058ed(0x39f)](_0x51acc6[_0x1058ed(0x19b)]()),_0x596c38=_0x3ec18b[_0x1058ed(0x264)](_0x383b0a);if(!(_0x596c38!=null&&_0x596c38['size']))return;let _0x2c12b9=0x0;for(let _0x4538ce of _0x395fbf['e']){if(_0x4538ce['t']===_0x19e1e0['TextXActionType'][_0x1058ed(0x2ab)]&&_0x4538ce[_0x1058ed(0x4c4)]===_0x19e1e0[_0x1058ed(0x411)][_0x1058ed(0x33f)]){var _0x27f800;for(let _0x9e5a4 of((_0x27f800=_0x4538ce['body'])==null?void 0x0:_0x27f800[_0x1058ed(0x31a)])??[]){var _0x2be51e;let _0xb18d24=(_0x2be51e=_0x4538ce[_0x1058ed(0x470)])==null||(_0x2be51e=_0x2be51e[_0x1058ed(0x31a)])==null?void 0x0:_0x2be51e['find'](_0x2d04c7=>_0x2d04c7[_0x1058ed(0x469)]===_0x9e5a4[_0x1058ed(0x469)]),_0x50fe64=_0x596c38[_0x1058ed(0x264)](_0x2c12b9+_0x9e5a4[_0x1058ed(0x469)]);if(_0xb18d24&&_0x50fe64){this['_rebaseUnchangedAttributes'](_0x9e5a4,_0xb18d24,_0x50fe64[_0x1058ed(0x1f9)],_0x50fe64[_0x1058ed(0x33e)]);let _0x563cb7=_0x50fe64[_0x1058ed(0x33e)]?new Set([...Object[_0x1058ed(0x36b)](_0x50fe64[_0x1058ed(0x1f9)]),...Object['keys'](_0x9e5a4)]):Object['keys'](_0x50fe64['paragraph']);for(let _0x3c35dc of _0x563cb7){if(_0x3c35dc==='startIndex'||_0x3c35dc==='paragraphId')continue;let _0x372f91=Reflect[_0x1058ed(0x264)](_0x9e5a4,_0x3c35dc);_0x372f91===void 0x0?Reflect[_0x1058ed(0x478)](_0x50fe64['paragraph'],_0x3c35dc):Reflect[_0x1058ed(0x236)](_0x50fe64[_0x1058ed(0x1f9)],_0x3c35dc,_0x19e1e0[_0x1058ed(0x372)][_0x1058ed(0x2f9)](_0x372f91));}}}}_0x4538ce['t']!==_0x19e1e0[_0x1058ed(0x1ce)][_0x1058ed(0x291)]&&(_0x2c12b9+=_0x4538ce[_0x1058ed(0x214)]);}});}return _0x5716fe;}[_0x2e0def(0x442)](_0x287f7,_0x5c8c8e,_0x4d7695,_0x16f508){const _0x426fa2=_0x2e0def;let _0x923d3e=new Set([...Object[_0x426fa2(0x36b)](_0x287f7),...Object[_0x426fa2(0x36b)](_0x5c8c8e),...Object[_0x426fa2(0x36b)](_0x4d7695)]);for(let _0x4b30f6 of _0x923d3e){if(_0x4b30f6===_0x426fa2(0x469)||_0x4b30f6===_0x426fa2(0x1d0))continue;let _0xf9d379=Reflect[_0x426fa2(0x264)](_0x287f7,_0x4b30f6),_0x23ed10=Reflect[_0x426fa2(0x264)](_0x5c8c8e,_0x4b30f6),_0x5eaea4=Reflect[_0x426fa2(0x264)](_0x4d7695,_0x4b30f6);if(_0x16f508||_0x5eaea4!==void 0x0){if(_0x19e1e0[_0x426fa2(0x372)]['diffValue'](_0xf9d379,_0x23ed10))_0x5eaea4===void 0x0?(Reflect[_0x426fa2(0x478)](_0x287f7,_0x4b30f6),Reflect[_0x426fa2(0x478)](_0x5c8c8e,_0x4b30f6)):(Reflect[_0x426fa2(0x236)](_0x287f7,_0x4b30f6,_0x19e1e0[_0x426fa2(0x372)]['deepClone'](_0x5eaea4)),Reflect['set'](_0x5c8c8e,_0x4b30f6,_0x19e1e0[_0x426fa2(0x372)]['deepClone'](_0x5eaea4)));else{if(_0x19e1e0['Tools'][_0x426fa2(0x265)](_0xf9d379)&&(_0x19e1e0[_0x426fa2(0x372)][_0x426fa2(0x265)](_0x23ed10)||_0x23ed10===void 0x0)){let _0x3aab42=_0x23ed10??{};this[_0x426fa2(0x442)](_0xf9d379,_0x3aab42,_0x19e1e0[_0x426fa2(0x372)][_0x426fa2(0x265)](_0x5eaea4)?_0x5eaea4:{},_0x16f508),(_0x23ed10!==void 0x0||Object[_0x426fa2(0x36b)](_0x3aab42)[_0x426fa2(0x4d4)]>0x0)&&Reflect[_0x426fa2(0x236)](_0x5c8c8e,_0x4b30f6,_0x3aab42);}}}}}[_0x2e0def(0x30b)](_0x1deb8a,_0x3145b1,_0x46e605){const _0xd869c8=_0x2e0def;if(_0x3145b1[_0xd869c8(0x4d4)]!==0x1||_0x46e605[_0xd869c8(0x4d4)]!==0x1||_0x3145b1[0x0]['id']!==_0x444f1a[_0xd869c8(0x49a)]['id']||_0x46e605[0x0]['id']!==_0x444f1a[_0xd869c8(0x49a)]['id'])return _0x1deb8a;let _0x41002c=_0x3145b1[0x0][_0xd869c8(0x4b2)],_0xc1fb88=_0x46e605[0x0]['params'],_0x29da87=this[_0xd869c8(0x234)](_0x41002c[_0xd869c8(0x17d)],!0x0);return _0x19e1e0['JSONX']['isNoop'](_0x29da87)?_0x1deb8a:(_0xc1fb88[_0xd869c8(0x17d)]=_0x19e1e0[_0xd869c8(0x370)]['compose'](this['_filterTableActions'](_0xc1fb88[_0xd869c8(0x17d)],!0x1),_0x19e1e0['JSONX'][_0xd869c8(0x4e8)](_0x29da87,_0x1deb8a)),_0x19e1e0[_0xd869c8(0x370)]['apply'](_0x1deb8a,_0x29da87)??_0x1deb8a);}[_0x2e0def(0x234)](_0x37078e,_0x1acf00){const _0x48e052=_0x2e0def;let _0x501753=_0x19e1e0[_0x48e052(0x1cf)][_0x48e052(0x33d)][_0x48e052(0x230)](_0x37078e),_0x1c5786=_0x19e1e0[_0x48e052(0x1cf)][_0x48e052(0x33d)][_0x48e052(0x2cd)]();return _0x501753[_0x48e052(0x3ed)](null,_0x404d31=>{const _0x25e5ce=_0x48e052;let _0x35279c=_0x501753[_0x25e5ce(0x19b)]();if(_0x35279c[0x0]==='tableSource'===_0x1acf00){for(let _0x36711c of Object[_0x25e5ce(0x36b)](_0x404d31))_0x1c5786['writeAtPath'](_0x35279c,_0x36711c,_0x404d31[_0x36711c]);}}),_0x1c5786[_0x48e052(0x264)]();}};_0x1200af=_0x37ed50([_0x5d2cb5(0x0,_0x19e1e0[_0x2e0def(0x19c)]),_0x5d2cb5(0x1,_0x19e1e0[_0x2e0def(0x481)]),_0x5d2cb5(0x2,_0x19e1e0[_0x2e0def(0x1a4)]),_0x5d2cb5(0x3,_0x19e1e0['IConfigService']),_0x5d2cb5(0x4,_0x4f9696[_0x2e0def(0x487)]),_0x5d2cb5(0x5,_0x19e1e0[_0x2e0def(0x287)])],_0x1200af);let _0x5b51a0=class extends _0x19e1e0['Plugin']{constructor(_0x32a789=_0x2094b3,_0x5c1383,_0x1646ec,_0x470d18){const _0x137270=_0x2e0def;super(),this[_0x137270(0x451)]=_0x32a789,this[_0x137270(0x4b1)]=_0x5c1383,this[_0x137270(0x196)]=_0x1646ec,this[_0x137270(0x409)]=_0x470d18;let {..._0x216a1c}=(0x0,_0x19e1e0[_0x137270(0x208)])({},_0x2094b3,this['_config']);if(!_0x216a1c[_0x137270(0x301)])throw Error(_0x137270(0x44d));this[_0x137270(0x451)]=_0x216a1c,this[_0x137270(0x409)]['setConfig'](_0x21d492,_0x216a1c);}[_0x2e0def(0x1c8)](){const _0x51079c=_0x2e0def;this[_0x51079c(0x409)]['setConfig'](_0x19e1e0[_0x51079c(0x29c)],this[_0x51079c(0x451)]['objectPermissionTypes']??[]),this[_0x51079c(0x3b5)](),this['_initDependencies']();}[_0x2e0def(0x3b5)](){const _0x53d688=_0x2e0def;var _0x18f73b,_0x56be35;this['_injector'][_0x53d688(0x39a)](_0x19e1e0['IUndoRedoService'])&&this[_0x53d688(0x4b1)]['error'](_0x53d688(0x3fb),_0x53d688(0x1f5));let _0x333c7d=(0x0,_0x19e1e0[_0x53d688(0x13e)])([[_0x19e1e0[_0x53d688(0x18e)],{'useClass':_0x1200af}],[_0x325582,{'useValue':_0x349012()}],[_0x696f8d],[_0x4be8dc],[_0x95e1bd],[_0x413891],[_0x15906e],[_0x2ace56],[_0xcd8c0f],[_0x1bde53],[_0x3d1274],[_0x3e2f68,{'useClass':this[_0x53d688(0x451)][_0x53d688(0x301)]}],[_0x4f9696[_0x53d688(0x1ec)],{'useClass':_0x531ad2}],[_0x19e1e0[_0x53d688(0x371)],{'useClass':_0x274190}],[_0x19e1e0[_0x53d688(0x3ad)],{'useClass':_0x325bae}],[_0x3e5537,{'useClass':_0x1be954}],[_0x19e1e0[_0x53d688(0x387)],{'useClass':_0x5e032f}],[_0x5fd9b5],[_0x50c61d]],(_0x18f73b=this['_config'])==null?void 0x0:_0x18f73b['override']);if(!((_0x56be35=this[_0x53d688(0x451)])!=null&&_0x56be35[_0x53d688(0x429)])){let _0x1e9cdd=_0x333c7d[_0x53d688(0x379)](([_0x18a41f])=>_0x18a41f===_0x472208);_0x1e9cdd!==-0x1&&_0x333c7d[_0x53d688(0x34c)](_0x1e9cdd,0x1);}(0x0,_0x19e1e0['registerDependencies'])(this[_0x53d688(0x196)],_0x333c7d);}[_0x2e0def(0x310)](){const _0x14d655=_0x2e0def;var _0x164ca7,_0x438621;if(this[_0x14d655(0x196)][_0x14d655(0x264)](_0x5e0f50['HTTPService'])[_0x14d655(0x1d6)]({'priority':0x14,'interceptor':(0x0,_0x5e0f50['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x164ca7=this[_0x14d655(0x451)])!=null&&_0x164ca7['enableOfflineEditing'])){var _0x5f4478;(_0x5f4478=this[_0x14d655(0x196)][_0x14d655(0x264)](_0x5700e5,_0x19e1e0[_0x14d655(0x25b)][_0x14d655(0x185)]))==null||_0x5f4478[_0x14d655(0x4f8)]();}(_0x438621=this[_0x14d655(0x451)])!=null&&_0x438621[_0x14d655(0x20c)]&&(0x0,_0x19e1e0['touchDependencies'])(this[_0x14d655(0x196)],[[_0x413891]]),(0x0,_0x19e1e0[_0x14d655(0x22f)])(this[_0x14d655(0x196)],[[_0x15906e],[_0x5fd9b5],[_0xcd8c0f]]);}};_0xc5e065(_0x5b51a0,_0x2e0def(0x38c),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0xc5e065(_0x5b51a0,'packageName',_0x478bf2),_0xc5e065(_0x5b51a0,_0x2e0def(0x1af),_0x290754),_0x5b51a0=_0x37ed50([(0x0,_0x19e1e0[_0x2e0def(0x2ae)])(_0x463499[_0x2e0def(0x40a)],_0x5e0f50[_0x2e0def(0x1a0)],_0x4f9696['UniverCollaborationPlugin']),_0x5d2cb5(0x1,_0x19e1e0[_0x2e0def(0x287)]),_0x5d2cb5(0x2,(0x0,_0x19e1e0[_0x2e0def(0x508)])(_0x19e1e0[_0x2e0def(0x35e)])),_0x5d2cb5(0x3,_0x19e1e0['IConfigService'])],_0x5b51a0),Object[_0x2e0def(0x496)](_0x373490,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return _0x274190;}}),Object['defineProperty'](_0x373490,_0x2e0def(0x203),{'enumerable':!0x0,'get':function(){return _0x4d8940;}}),Object['defineProperty'](_0x373490,_0x2e0def(0x151),{'enumerable':!0x0,'get':function(){return _0x480be6;}}),Object[_0x2e0def(0x496)](_0x373490,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x47d8cb;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x38f),{'enumerable':!0x0,'get':function(){return _0x5344a5;}}),_0x373490['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x21d492,_0x373490[_0x2e0def(0x525)]=_0x3786f5,Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x351),{'enumerable':!0x0,'get':function(){return _0x1be954;}}),Object[_0x2e0def(0x496)](_0x373490,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x5fd9b5;}}),Object['defineProperty'](_0x373490,_0x2e0def(0x1b4),{'enumerable':!0x0,'get':function(){return _0x149470;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x380),{'enumerable':!0x0,'get':function(){return _0x325bae;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x3c4),{'enumerable':!0x0,'get':function(){return _0x50bd25;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x2d6),{'enumerable':!0x0,'get':function(){return _0x696f8d;}}),Object['defineProperty'](_0x373490,_0x2e0def(0x4ee),{'enumerable':!0x0,'get':function(){return _0x3ce6a3;}}),_0x373490['CollaborationStatus']=_0xa733fb,_0x373490[_0x2e0def(0x459)]=_0xa1c206,_0x373490[_0x2e0def(0x26d)]=_0x1bde53,Object['defineProperty'](_0x373490,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0x1200af;}}),_0x373490[_0x2e0def(0x1c5)]=_0x2ace56,Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x16c),{'enumerable':!0x0,'get':function(){return _0x28fe8b;}}),_0x373490[_0x2e0def(0x2ec)]=0x4e20,_0x373490[_0x2e0def(0x297)]='ws://127.0.0.1:8000/universer-api/comb/connect',_0x373490[_0x2e0def(0x4ae)]=_0x2e0def(0x294),_0x373490[_0x2e0def(0x475)]=_0x2e0def(0x3ff),Object[_0x2e0def(0x496)](_0x373490,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x3d1274;}}),Object['defineProperty'](_0x373490,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x24fcb7;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x2b1),{'enumerable':!0x0,'get':function(){return _0x28c4f8;}}),_0x373490[_0x2e0def(0x286)]='HEARTBEAT_INTERVAL',_0x373490[_0x2e0def(0x329)]='HEARTBEAT_TIMEOUT',_0x373490['IAttachmentIoService']=_0x3e5537,_0x373490[_0x2e0def(0x215)]=_0x325582,_0x373490[_0x2e0def(0x46e)]=_0x3e2f68,_0x373490[_0x2e0def(0x1c0)]=_0x5700e5,_0x373490[_0x2e0def(0x2a2)]=_0x4cfbe5,_0x373490[_0x2e0def(0x304)]=_0x472208,_0x373490[_0x2e0def(0x3e5)]=0x3e8,_0x373490[_0x2e0def(0x4e6)]=_0x2e0def(0x3e5),_0x373490['MAX_ACK_TIMEOUT']=0x1d4c0,Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x34f),{'enumerable':!0x0,'get':function(){return _0x4be8dc;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x24c),{'enumerable':!0x0,'get':function(){return _0x5e032f;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x188),{'enumerable':!0x0,'get':function(){return _0x3e0f8a;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x32a),{'enumerable':!0x0,'get':function(){return _0x3e1efe;}}),Object['defineProperty'](_0x373490,'PendingState',{'enumerable':!0x0,'get':function(){return _0x384508;}}),_0x373490['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x2e0def(0x1f7),_0x373490[_0x2e0def(0x4a2)]=_0x2e0def(0x22d),_0x373490[_0x2e0def(0x454)]=_0x27c288,Object[_0x2e0def(0x496)](_0x373490,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x550742;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x462),{'enumerable':!0x0,'get':function(){return _0x95e1bd;}}),Object['defineProperty'](_0x373490,_0x2e0def(0x4af),{'enumerable':!0x0,'get':function(){return _0x27bbc8;}}),Object[_0x2e0def(0x496)](_0x373490,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return _0x531ad2;}}),Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x17c),{'enumerable':!0x0,'get':function(){return _0x55714b;}}),_0x373490[_0x2e0def(0x1d8)]=_0x2f6ede,Object[_0x2e0def(0x496)](_0x373490,_0x2e0def(0x3d9),{'enumerable':!0x0,'get':function(){return _0x5b51a0;}}),_0x373490[_0x2e0def(0x519)]=_0x349012,_0x373490[_0x2e0def(0x346)]=_0x5f4593,_0x373490[_0x2e0def(0x248)]=_0x35584b,_0x373490['serializeCombRequest']=_0xe62dd5;}));function _0x25e9(){const _0x5bfb3e=['_event$','getAttachmentUrl','ImageUploadStatusType','_handler','@univerjs/sheets','_acknowledgeAwaitingIfReady','9tkBHLY','@univerjs/docs','_updateStatus','_state','UniverProSlides','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','SlideCollaborationEntity','PSEUDO_FETCH_MISSING_RESULT','_logService','params','target','SYNCED','DRAWING_IMAGE_ALLOW_IMAGE_LIST','reqId','socketReady','csRejEvent','close','online$','_startTelemetryCollaborationNewChangeset','equals','onRemoteAck','_collabSessionService','_updateState','expected\x20Uint8Array','objectId','_unitInfo$','HEARTBEAT_TIMEOUT','coverType','incrementRevOfUnit','_closedUnits','update','_revisionService','subType','_onCombEvent','save\x20fail\x20reason\x20is\x20','_transformHistoryMutations','RevisionService','error$','_reqId','push','_univerInstanceService','decorate','NO_OTHER_CLIENTS_EDITING','length','7aGAFjp','SHOULD_CLOSE_CONN','fetchMissingChangesets','_members','_onLicenseRejected','1281102lCCYZw','FileSource','_type','missingChangesets','_syncEditingCollabCursor','updateSnapshot','CmdRspCode','\x22bytesLength\x22\x20expected\x20<=\x2065536,\x20got\x20','_transformService','817298EqpuKf','session.join-failed','post','LOCAL_CACHE_INTERVAL_KEY','socketSubscription','invertWithDoc','onSendChangeset','collaboratorID','/rev/','_onRecvEvent','__splitChunk__','CollaborationSocketService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','maxChangesetAckTimeout','crypto','_getCurrentRevision','_onRemoteRetry','IConfigService','UUID','MentionType','url','disableLocalCache','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Subscription','event$','_loadSnapshot','signUrlServerUrl','InsertSheetMutation','[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.','_socketService','FileId','_undoRedoService','collaMsg','getImage','RxDisposable','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','max','Inject','__Key__','stream','_rescheduleHeartbeat','resolveUnit','snapshotServerUrl','then','state$','listCollaborators','_send','uuidv4','leaveEvent','RemoveSlidePageMutation','saveAttachment','getMember','ignored\x20stale\x20ack\x20of\x20revision\x20','fetchThroughInterceptors','createUniverCollaborationAdapter','sheets','concatMap','/object/','CommandType','[DataLoaderService]','blockRanges','timeout','isArray','nonceLength','endsWith','originalMeta','ChangesetSubmitter','roomInfos','_clearScheduledTask','getCollabEntities','sequenceExecute','updatePermissionPoint','getAllMembers','/-/object/list','number','SetSelectionsOperation','function','onRemoteRevert','decrypt','Slide','_onUserLeave','mergeOverrideWithDependencies','_status$','base-ui.attachment-io.service','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','Workbook','_detachSubmitter','session','requestParams','LIVESHARE_TERMINATE','_clearRedo','isInternalEditorID','_getLoginPath','Board','_initRequestHeader','sid','conflict','getSnapshotAPIPath','SnapshotService','localCacheService','AwaitingWithPendingState','commit','ONLINE','_onRemoteChangeset','EnsureSlideMasterPageMutation','_localeService','_refreshUnitPermission','_shouldReportTelemetry','JOIN_ROOM_NOT_EXISTS','trim','_transitionLocked','delete','_collaborationSessionService','retryConnectingTimer','infoRsp','changesetAckTimeout','/collaborator','getFocusedUnit','enableCollaboration','onPrepareTransformSelections','result','_queuedRemoteChangesets','offline','getMemberID','permissionRejEvent','_tryReconnect','getUnit','ConflictState','members$','JOINING','onMissedChangesetFetched','_telemetryService','&assign=','HTTPService','toLocal','headers','_snapshotServerService','_clearHandshakeTimer','_prepareTransformSelections','_adapter','_identity','transformChangesets','_unsyncedMutationCount','SyncedState','actions','prototype','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onRemoteChangeset','maxAckTimeout','maxSize','_stopTelemetryCollaborationNewChangeset','SOCKET_FAILED_RETRY','OPTIONAL','_resend','@univerjs-pro/slides','OfflineState','reconnect','/role','_getSignURL','_imageSourceCache','getUnitStatus$','IUndoRedoService','_classifyRemoteChangeset','Uint8Array','toggleOffline','filter','_deliver','/-/object/-/batch_allowed','message','_injector','_classifyAck','now','workbook','[PendingState]:\x20received\x20acknowledgement.','getPath','IUniverInstanceService','LIVESHARE_FETCH_OPERATIONS','_onOffline','subject','UniverNetworkPlugin','status$','call','_transformStateCache','IContextService','_clearTimeoutTimer','downloadEndpointUrl','UniverDrawing','_authzIoService','_now','tableSource','subarray','_toggleOffline','_sheetTransformSelectionsService','[CollaborationSocketService]','version','m2Prime','ignored\x20remote\x20changeset\x20of\x20revision\x20','toggleOnline','AAD\x20not\x20supported','CollaborationEntity','docStateChange$','_pendingSessions','toPrimitive','_isAckOfAwaitingChangeset','addImageSourceCache','USERS_ENTER','_getCtorByUniverInstanceType','AWAITING_WITH_PENDING','parseChangesetToProtocol','OTHER_CLIENT_EDITING','appendMutation','ILocalCacheService','_getUndoStack','_toSynced','unit','fetching\x20missing\x20changesets\x20from\x20','CommentService','init','CHANGESET_REJ','onStarting','_attempt','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','objectType','_conflict$','code','TextXActionType','JSON1','paragraphId','isView','_isEchoedAwaitingChangeset','name','getUnitType','UnitEmbedded','registerHTTPInterceptor','not_collab','UnitStatus','parseProtocolChangeset','getCurrentUser','compose','key','loadDoc','_getSocketChannel','COMMENT_UPDATE','entityInit$','_submitter','_roomMembers','requireSession','selections','getCurrentSelections','_getRedoStack','permission_rejected','_socket','_getUnitPermissionPoints','byteOffset','_schedule','ISnapshotServerService','startTime','getTypeOfUnitDisposed$','clear','_acknowledgedAwaitingRevision','@univerjs/telemetry','eventID','LocalUndoRedoService',',\x20got\x20','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','capture','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','isTransformMutationsWithChangesetFailure','paragraph','Rectangle','x-univer-host','univer-pro.collaboration-client.network-condition.service','license_unit_type_rejected','getValue','CONFLICT','getCfgEnableObjInherit','onTransformIME','some','AwaitingState','reject','collabWebSocketUrl','UniverSheets','JOIN_ROOM_FAILED','merge','deleteCollaborator','/new_changes','length=','enableAuthServer','getLatestCsReqIdBySid','_disableEditing','collaboration-client.config','debug','_countResend','_waitForHeartbeatResponse','CLOSE_ROOM','len','ICollaborationClientAdapterService','_createHandler','onlyLocal','_transformStack','_retryBackoff','_nextDelay','getRandomValues','interceptor','operators','_httpService','MUTATION','_onConflict','26736Insqfy','unitType','loadSheet','RECV','socket$','echo','fromCharCode','toDisposable','PERMISSION_DENIED','RemoteRevertError','awaiting','onStateChange','RETRY_CONNECTING_MAX_COUNT','[CollaborationUndoRedoService]','touchDependencies','readCursor','withAAD','@univerjs-pro/collaboration-client','DisposableCollection','_filterTableActions','\x20failed:\x20','set','state','_waitCount','getRoom','_transformAndApplyRemoteChangeset','_socketChannels','UNIVER_DOC','_emitMembers','revision','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','handshakeTimer','LIVESHARE_NEW_HOST','submitting\x20changeset\x20','_permissionService','addHandlerCallback','routeKey','_retryReason','_sendToken','getLocalCacheKey','getOwnPropertyDescriptor','_onRemoteACK','OTHER_CLIENTS_EDITING','MentionIoHttpService','1160466chFPur','dispose$','SNAPSHOT_URL_KEY','PERSON','pipe','batchAllowed','_requestMissingChangesets','univer-pro.collaboration-client-adapter-service','_sendHeartbeat','_members$','CollaborationEvent','ISocketService','collaboration-client.auth.needGotoLoginAlert','joinEvent','Quantity','toStringTag','isPermissionRej','SUBMIT_CHANGESET_TIMEOUT','getAllPermissionPoint','fetch_missing','UNIVER_SLIDE','loadUnit','_undoStacks','get','isObject','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getGlobalObject','saveChangeset','_createChangesetSubmitter','type=','[CollaborationEntity]','INGEST','CollaborationUIEventService','unitId','liveShareOperation','pending','BYTES_PER_ELEMENT','_createSocket','People','_transformRemoteChangesetByStateCache','message$','candidateSocket','getConfig','close$','[CollaborationSessionService]','_handlerCallback','UNIVER_BOARD','rxjs/operators','HTTPEventType','UniverTelemetry','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','UniverProCollaborationClient','memberID','sendHeartbeatTimer','onRemoteRetry','_tryEnsureSocket','every','HEARTBEAT_INTERVAL_KEY','ILogService','getCurrentRevOfUnit','onSyncEditingCollabCursor','_removeRoom','CHANGESET_SHOULD_RETRY','data','updateCursorEvent','synced','closeSession','stale','INSERT','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','loadOfflineData','/universer-api/uniscript','IDLE','LIVESHARE_REQUEST_HOST','DEFAULT_COLLAB_WEB_SOCKET_URL','includes','_sessionStatus$','nextDelayMs','_startCollaboration','OBJECT_PERMISSION_CONFIG_KEY','_roomCreated$','/unit/','list','_onLocalMutation','userID','INetworkConditionService','UniverProtocol','HTTPResponseError','disablePadding','_createInitialState','apply','_transformUndoredo','UnitObject','_initCloseConn','RETAIN','_replayCachedMutations','sessionStatus','DependentOn','_getAPIPrefixPath','CONFLICT_PROCESSING','FetchingMissState','textRanges','_substituteRedoStack','Document','tagLength','&source=','requestRetry','bytesLength','accept','c2Prime','delay','updateCollaborator','catch','_onConnectionFailed','_compressMutationService','body','LEAVE','bind','getCollabEntity','@univerjs-pro/collaboration','objects','COLLABORATION_ENDPOINT_INVALID','_onMessage','commentUpdate$','[SyncedState]:\x20received\x20rejection.','unitLoaded$','reason','buffer','writeCursor','univer-pro.collaboration-client.single-active-unit-service','OFFLINE','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','LIVESHARE_OPERATION','dispose','Subject','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','find','CollaborationSessionService','sort','unitID','_handleRemoteChangesets','?size=','\x20in\x20_schedule.','create','saveSnapshot','aes:\x20bad\x20decrypt','MergeInterceptorFactory','\x22ciphertext\x22\x20expected\x20length\x20>=\x20tagLength=','_decreaseWaiting','UNIVER_PDF','createInstance','toString','loadSlide','SUBMIT_CHANGESET','RemoteChangesetApplyError','\x0aCurrent:\x20','ack_of_awaiting','title','refreshUnit','DEFAULT_ACK_TIMEOUT','POST','&to=','textEncoder','onApply','cipher\x20output\x20not\x20supported','changesets','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_telemetryInfo','onMutationExecutedForCollab','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_transformAndApply','{fileID}','deepClone','getSheetId','encodeURIComponent','_changesetReqId','_timer','_disposed','_hasSessionsForEndpoint','_eventService','socketService','socket\x20open.','remote_revert','ISingleActiveUnitService','/universer-api/snapshot','_sessions','forEach','Optional','getInterceptPoints','size','_invertDocumentHistory','next','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getResourcesRequest','PENDING','_initDependencies','getTime','HTTP\x20','mutations','_commentUpdate$','constructor','_options','ignored\x20rejection.','UPDATE_CURSOR','MoveSlidePageMutation','paragraphs','allowed','put','ImageSourceType','complete','ERROR_EXCEED_SIZE','RevertRevisionMutation','changesetResend$','transformSelections','plaintext\x20must\x20be\x20multiple\x20of\x2016','_localCacheService','rev','retryConnectingInterval','SOCKET_FAILED','slice','HEARTBEAT_TIMEOUT_KEY','PdfCollaborationEntity','add','onTransformRemoteChangesetByStateCache','expected\x20integer\x20>=\x200,\x20got\x20','/block/','AWAITING','_cfgEnableObjInherit','startsWith','resolveWithBasePath','HELLO','apply_failed','UNIVER_BASE','_transformSelections','ObjectPermissionService','onTransformState','_onJoinRoomEvent','revert','href','uniscriptRunEvent','type','replace','REPLACE','error','subscribe','unbind','applyError','onCommentUpdate','_singleActiveUnitService','deserializeToCombResponse','timeoutTimer','shouldCloseConn','CombCmd','amd','onRemoteRej','splice','/universer-api/comb','subUnitId','MemberService','HTTPRequest','CollaborationAttachmentIoService','CompressMutationService','_updateUnitPermissionPoint','MSG_FOR_ERROR','_resolveSessionIdentity','hasLocalChanges','takeUntil','encode','listRoles','JOIN','_changesetSessionId','location','connectionAttempt','Injector','endpointKey','NEW_CHANGESETS','_collaborationPaused','action','[AwaitingState]','uploadFileServerUrl','WorkbookEditablePermission','getDeserializedSheetBlock','telemetry\x20info\x20is\x20not\x20initialized','resourceIDs','elapsedMs','onResend','keys','isTransformChangesetsSuccess','_getDownloadEndpointURL','ErrorCode','[OfflineState]','JSONX','IAuthzIoService','Tools','createIdentifier','take','/allowed','socket\x20close','exports','cfgEnableObjInherit','findIndex','BASE64','loadUnitOfRevision','_docStateChangeManagerService','conflict$','onTransformSelections','_lockTransition','CollaborationImageIoService','confirm','warn','executeCommand','_source','/universer-api/stream/file/upload','b64DecodeUnicode','IMentionIOService','send','UniverProLicense','_transit','_fetchMissChangesets','pluginName','submit','_sendingTimer','BoardCollaborationEntity','1700020hwdnfV','_createInitialStateImpl','COMPRESS_MUTATION_SEND','setShowComponents','getSheetBlock','default','FAIL','_snapshotService','_ackTimeout','_incrementRevisionNumber','has','964195Jkbslc','_pendingMutations','_clearRetryConnectingTimer','session.room-permission-denied','stringify','getSnapshot','authzUrl','44255izKzGY','duration','_getSendChangesetTimeout','_unlockTransition','COMPRESS_MUTATION_APPLY','_dispatchRemoteChangeset','_toPending','saveImage','_conflictInfoFromError','c1Prime','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','IImageIoService','[FetchMissState]','_loadUnit','values','_scheduleCompleteTimestamp','CHANGESET_ACK','_getAPIPrefix','ignored\x20acknowledgement\x20of\x20revision\x20','_registerDependencies','_applyRemoteChangeset','firstValueFrom','ackTimeout','expected\x20number,\x20got\x20','_change$','patch','retryCount','resolve','_initMergeInterceptor','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_executeRemoteChangeset','_getUploadFileURL','hostname','ciphertext\x20must\x20be\x20multiple\x20of\x2016','CollaborationSession','UNIVER_SHEET','_joinRoom','onConflict','_createSession','AAD','localChanges','changeset','Response','reduce','onMissingChangesets','ITelemetryService','_submitChangeset','_collaborationUIEventService','clearUnit','hasWritePending','roles','_clearTimer','collaboration-client.local-cache-service','_getConfig','_maxAckTimeout','UniverCollaborationClientPlugin','/universer-api/authz','_throwTelemetryCollaborationNewChangeset','[CollaborationSessionService]:\x20socket\x20error','applied','USERS_LEAVE','stopTime','Failed\x20to\x20update\x20permission\x20point','sessionStatus$','\x20to\x20','_updateLocalCache','UniverInstanceType','LOCAL_CACHE_INTERVAL','UniverNetwork','_onRemoteRejected','asObservable','removeMember','missing','_onConnectionOpen','_networkConditionService','traverse','endpoint','indexOf','LocaleService','ack_timeout','_listenToNetworkCondition','refreshPermission','objectActions','loadBoard','UserManagerService','_commandService','upload','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','connection\x20error','[UniverCollaborationClientPlugin]','rollback','unknown','getTypeOfUnitAdded$','/universer-api/user/session-ticket','HEARTBEAT','fill','closed','should_retry','Disposable','unit-cache-','tables','8muTBKx','_sessionChannels','_configService','UniverLicensePlugin','PERMISSION_REJ','_upload','[CollaborationState]:\x20apply\x20error!','_entityInit$','change$','waitForRoom$','UpdateDocsAttributeType','hasOwnProperty','_instanceService','baseRev','fromCollab','onChangesetResend','map','armAckTimeout','IPermissionService','Error\x20on\x20receiving\x20event','JOIN_ROOM_FULL','_substituteUndoStack','JOIN_ROOM_PERMISSION_DENIED','_userManagerService','fetchMiss',',\x20attempt\x20','rxjs','_clearUndo','_commentService','objectID','text-x','_onUserJoin','liveShareNewHost','_changesetResend$','enableSingleActiveInstanceLock','onTransformRemoteChangesetByIMECache','attempt','_disposeSubmitter','UniverDocs','_memberService','ws://127.0.0.1:8000/universer-api/comb/connect','getDrawingImageAllowSize','_awaitingChangeset','_unitLoaded$','_onFetchMissResult','request_failed','unitDisposed$','open$','_rejectionInfo','mapDocumentTypeToUniverInstanceType','_state$','createSocket','setCfgEnableObjInherit','DocStateChangeManagerService','from','isTransformMutationsWithChangesetSuccess','cmd','entries','\x20-\x20','_rebaseUnchangedAttributes','_pendingReason','FETCH_MISSING','emitEvent','AddSlidePageMutation','getUploadOptions','\x20of\x20length\x20','Module','range','awaitingChangeset','editingUnit','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','ERROR_IMAGE_TYPE','origin','joinRsp','_config','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','putCollaborators','SessionStatus','_acknowledgeAwaiting','commentUpdateEvent','@univerjs/drawing','copyFileMeta','CollaborationUIEventId','unsubscribe','_firstSentAt','loadBase','UnitAction','saveSheetBlock','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_remoteRevertInfo','clearOfflineData','SheetTransformSelectionsService','_clearHeartbeatTimer','string','getUnitId','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_init','SheetsSelectionsService','startIndex','LICENSE_DOMAIN_REJECTED','/universer-api/file/{fileID}/sign-url','byteLength','_replaceFileID','ICollaborationSocketService','_remoteChangesetQueue','oldBody','_dropAcknowledgedAwaiting','symbol','localeService','localUnitId','DEFAULT_WS_SESSION_TICKET_URL','_entities','NOT_COLLAB','deleteProperty','_onRequestFailed','generateRandomId','_socketMessageSubscription','transform_failed','status','online','disposeWithMe','_notifyResend','ICommandService','ERROR_IMAGE','encrypt','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UPDATE_PERMISSION_OBJ','_HTTPService','ITransformService','initWorkbookPermissionChange','\x20at\x20revision\x20','_transformRemoteChangesetByIMECache','CONFLICT_CACHE_CLEAR_FAILED','parse','min','transformStack\x20failed!','updateMember','file','info','withCredentials','transformMutationsWithChangeset','session.room-not-exists','?url=','defineProperty','object','awaiting_with_pending','_toggleOnline','RichTextEditingMutation','getCollabEntity$','LICENSE_EDITING_CONNECTIONS_EXCEEDED','BehaviorSubject','onLocalMutation','collaborators','resent\x20changeset\x20','resend','RETRY_CONNECTING_MAX_COUNT_KEY'];_0x25e9=function(){return _0x5bfb3e;};return _0x25e9();}