@univerjs-pro/collaboration-client 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x28bbb9=_0x53d0;(function(_0x595e4b,_0x280e2d){const _0x46e188=_0x53d0,_0x5aa3db=_0x595e4b();while(!![]){try{const _0x133258=parseInt(_0x46e188(0x45d))/0x1*(-parseInt(_0x46e188(0x2ce))/0x2)+parseInt(_0x46e188(0x416))/0x3*(-parseInt(_0x46e188(0x42c))/0x4)+parseInt(_0x46e188(0x1fc))/0x5*(-parseInt(_0x46e188(0x2a7))/0x6)+-parseInt(_0x46e188(0x4f2))/0x7+parseInt(_0x46e188(0x3be))/0x8+-parseInt(_0x46e188(0x25d))/0x9*(parseInt(_0x46e188(0x4af))/0xa)+parseInt(_0x46e188(0x4c8))/0xb;if(_0x133258===_0x280e2d)break;else _0x5aa3db['push'](_0x5aa3db['shift']());}catch(_0x57c9c6){_0x5aa3db['push'](_0x5aa3db['shift']());}}}(_0x1757,0xf26c5),Object['defineProperty'](exports,Symbol[_0x28bbb9(0x315)],{'value':'Module'}));let e=require('@univerjs/network'),t=require('rxjs'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs/core'),i=require('@univerjs/docs'),a=require('@univerjs/sheets'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m='collaboration-client.config',h={};function g(_0x1ccc31){'@babel/helpers - typeof';const _0x193dcf=_0x28bbb9;return g=typeof Symbol==_0x193dcf(0x258)&&typeof Symbol['iterator']==_0x193dcf(0x302)?function(_0x13f3a7){return typeof _0x13f3a7;}:function(_0x8e196){const _0x18c4e8=_0x193dcf;return _0x8e196&&typeof Symbol==_0x18c4e8(0x258)&&_0x8e196[_0x18c4e8(0x274)]===Symbol&&_0x8e196!==Symbol['prototype']?_0x18c4e8(0x302):typeof _0x8e196;},g(_0x1ccc31);}function ee(_0x9dc7ec,_0x2a6f7d){const _0x49b740=_0x28bbb9;if(g(_0x9dc7ec)!=_0x49b740(0x25b)||!_0x9dc7ec)return _0x9dc7ec;var _0xd2bae4=_0x9dc7ec[Symbol[_0x49b740(0x2d0)]];if(_0xd2bae4!==void 0x0){var _0x417900=_0xd2bae4['call'](_0x9dc7ec,_0x2a6f7d||'default');if(g(_0x417900)!=_0x49b740(0x25b))return _0x417900;throw TypeError(_0x49b740(0x205));}return(_0x2a6f7d===_0x49b740(0x2d4)?String:Number)(_0x9dc7ec);}function te(_0x256c48){const _0x49f750=_0x28bbb9;var _0x39add3=ee(_0x256c48,_0x49f750(0x2d4));return g(_0x39add3)==_0x49f750(0x302)?_0x39add3:_0x39add3+'';}function _(_0x296558,_0x4b7012,_0x41a371){const _0x4ea6dc=_0x28bbb9;return(_0x4b7012=te(_0x4b7012))in _0x296558?Object[_0x4ea6dc(0x41f)](_0x296558,_0x4b7012,{'value':_0x41a371,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x296558[_0x4b7012]=_0x41a371,_0x296558;}var ne=class{constructor(_0x1ce8a5,_0x2596b7,_0xe9bdcd={}){const _0x319a36=_0x28bbb9;this['_send']=_0x2596b7,this[_0x319a36(0x261)]=_0xe9bdcd,_(this,'_attempt',0x0),_(this,'_firstSentAt',void 0x0),_(this,_0x319a36(0x201),void 0x0),_(this,'_maxAckTimeout',void 0x0),_(this,_0x319a36(0x1c4),0x0),_(this,_0x319a36(0x44f),0x0),_(this,_0x319a36(0x510),null),_(this,_0x319a36(0x4ee),null),_(this,_0x319a36(0x48a),null),_(this,_0x319a36(0x247),0x0),_(this,_0x319a36(0x1c7),!0x1),_(this,_0x319a36(0x2a2),void 0x0),_(this,_0x319a36(0x255),void 0x0),this[_0x319a36(0x255)]=_0x1ce8a5,this[_0x319a36(0x201)]=_0xe9bdcd['ackTimeout']??0x4e20,this[_0x319a36(0x4cc)]=Math[_0x319a36(0x3fc)](_0xe9bdcd[_0x319a36(0x4ca)]??0x1d4c0,this[_0x319a36(0x201)]),this[_0x319a36(0x2a2)]=_0xe9bdcd[_0x319a36(0x4a3)]??(()=>Date[_0x319a36(0x4a3)]()),this[_0x319a36(0x4c4)]=this[_0x319a36(0x2a2)]();}get['reqId'](){const _0x27511b=_0x28bbb9;return this[_0x27511b(0x255)];}get[_0x28bbb9(0x543)](){const _0x3e9d36=_0x28bbb9;return this[_0x3e9d36(0x439)];}get[_0x28bbb9(0x4f0)](){const _0x24f7e2=_0x28bbb9;return this[_0x24f7e2(0x44f)];}get[_0x28bbb9(0x51a)](){const _0x51a368=_0x28bbb9;return this[_0x51a368(0x2a2)]()-this[_0x51a368(0x4c4)];}[_0x28bbb9(0x260)](_0x4517a2){const _0x1434e5=_0x28bbb9;if(this[_0x1434e5(0x1c7)])return;this['_source']=_0x4517a2;let _0xcaa421=this[_0x1434e5(0x4ee)];_0xcaa421&&(this[_0x1434e5(0x4ee)]=null,this[_0x1434e5(0x2ed)](_0xcaa421));}[_0x28bbb9(0x3ef)](){const _0x35a47d=_0x28bbb9;this[_0x35a47d(0x48a)]=null;}[_0x28bbb9(0x1c1)](_0x12c0c5,_0x1cd681,_0x52f27f){const _0x16cabd=_0x28bbb9;this[_0x16cabd(0x1c7)]||(_0x52f27f&&this[_0x16cabd(0x53f)](_0x52f27f),this['armAckTimeout'](),this[_0x16cabd(0x470)](_0x12c0c5),this['_reqId']=_0x12c0c5[_0x16cabd(0x4cd)]??this['_reqId'],_0x52f27f&&this[_0x16cabd(0x451)](_0x52f27f,_0x1cd681));}[_0x28bbb9(0x25e)](){const _0x713283=_0x28bbb9;this['_schedule'](this['_ackTimeout'],_0x713283(0x23f));}['requestRetry'](){const _0x300c1d=_0x28bbb9;this[_0x300c1d(0x3d2)](this['_retryBackoff'],'should_retry');}[_0x28bbb9(0x3ac)](){const _0x39da6d=_0x28bbb9;this[_0x39da6d(0x1c7)]=!0x0,this[_0x39da6d(0x3d4)](),this[_0x39da6d(0x48a)]=null,this[_0x39da6d(0x4ee)]=null;}[_0x28bbb9(0x470)](_0x181324){const _0x5d67a1=_0x28bbb9;let _0x289cba=++this[_0x5d67a1(0x247)],_0x406055;try{_0x406055=this[_0x5d67a1(0x31a)](_0x181324,{'timeout':this['_ackTimeout']});}catch(_0x3ff000){this[_0x5d67a1(0x259)](_0x289cba,_0x3ff000);return;}_0x406055 instanceof Promise&&_0x406055[_0x5d67a1(0x4a4)](_0x5ad0b3=>this[_0x5d67a1(0x259)](_0x289cba,_0x5ad0b3));}[_0x28bbb9(0x259)](_0x164a1d,_0x50c847){const _0x147c03=_0x28bbb9;if(this[_0x147c03(0x1c7)]||_0x164a1d!==this[_0x147c03(0x247)])return;let _0x2f5981=re(_0x50c847,this[_0x147c03(0x1c4)]);_0x2f5981!==null&&this[_0x147c03(0x3d2)](_0x2f5981,_0x147c03(0x27e));}['_schedule'](_0x14b52a,_0xf8330d){const _0x5e4230=_0x28bbb9;this[_0x5e4230(0x1c7)]||(this[_0x5e4230(0x3d4)](),this[_0x5e4230(0x4ee)]=null,this[_0x5e4230(0x44f)]=_0x14b52a,this[_0x5e4230(0x510)]=setTimeout(()=>{const _0x43afd7=_0x5e4230;this[_0x43afd7(0x510)]=null,this['_source']?this[_0x43afd7(0x2ed)](_0xf8330d):this[_0x43afd7(0x4ee)]=_0xf8330d;},_0x14b52a));}[_0x28bbb9(0x2ed)](_0xb0c1d3){const _0xd32630=_0x28bbb9;let _0x5f2f53=this['_source'];if(!_0x5f2f53||this[_0xd32630(0x1c7)])return;let {changeset:_0x54a2b5,unsyncedMutationCount:_0x4fdc76}=_0x5f2f53();this[_0xd32630(0x53f)](_0xb0c1d3),this[_0xd32630(0x25e)](),this[_0xd32630(0x470)](_0x54a2b5),this[_0xd32630(0x255)]=_0x54a2b5[_0xd32630(0x4cd)]??this[_0xd32630(0x255)],this['_notifyResend'](_0xb0c1d3,_0x4fdc76);}[_0x28bbb9(0x53f)](_0x340792){const _0x3f3b03=_0x28bbb9;this[_0x3f3b03(0x439)]+=0x1,_0x340792==='should_retry'||_0x340792===_0x3f3b03(0x27e)?this[_0x3f3b03(0x1c4)]=this['_retryBackoff']===0x0?0x3e8:Math[_0x3f3b03(0x492)](this[_0x3f3b03(0x1c4)]*0x2,0x4e20):_0x340792===_0x3f3b03(0x23f)&&(this['_ackTimeout']=Math[_0x3f3b03(0x492)](this[_0x3f3b03(0x201)]*0x2,this[_0x3f3b03(0x4cc)]));}['_notifyResend'](_0x3c175a,_0x3d2cb3){const _0x354118=_0x28bbb9;var _0x5f4cc7,_0x448dd7;this[_0x354118(0x1c7)]||(_0x5f4cc7=(_0x448dd7=this[_0x354118(0x261)])[_0x354118(0x526)])==null||_0x5f4cc7[_0x354118(0x446)](_0x448dd7,{'reqId':this[_0x354118(0x255)],'reason':_0x3c175a,'attempt':this['_attempt'],'elapsedMs':this[_0x354118(0x51a)],'unsyncedMutationCount':_0x3d2cb3,'nextDelayMs':this['_ackTimeout']});}['_clearTimer'](){const _0x57958c=_0x28bbb9;this[_0x57958c(0x510)]!=null&&(clearTimeout(this[_0x57958c(0x510)]),this[_0x57958c(0x510)]=null);}};function re(_0x3abeb6,_0x5624ea){const _0x2c8002=_0x28bbb9;if(_0x3abeb6 instanceof t[_0x2c8002(0x4bc)])return null;if(_0x3abeb6 instanceof e['HTTPResponseError']){let _0x501ec1=_0x3abeb6[_0x2c8002(0x290)]??0x0;return _0x501ec1===0x0||_0x501ec1===0x198||_0x501ec1===0x1ad||_0x501ec1>=0x1f4?Math[_0x2c8002(0x3fc)](_0x5624ea,ie(_0x3abeb6)):null;}return _0x5624ea;}function ie(_0x14f364){const _0x33a044=_0x28bbb9;var _0x31bb9e;let _0x3c9446=(_0x31bb9e=_0x14f364[_0x33a044(0x1bd)])==null||(_0x31bb9e=_0x31bb9e['get']('retry-after'))==null?void 0x0:_0x31bb9e[0x0],_0x6eaed0=_0x3c9446===void 0x0?NaN:Number(_0x3c9446);return Number[_0x33a044(0x425)](_0x6eaed0)&&_0x6eaed0>0x0?_0x6eaed0*0x3e8:0x0;}function ae(_0x19bc83){const _0x5dff42=_0x28bbb9;return JSON[_0x5dff42(0x4d3)](_0x19bc83)[_0x5dff42(0x47a)];}let oe=function(_0x484f59){const _0x2e3d21=_0x28bbb9;return _0x484f59[_0x2e3d21(0x4da)]='OTHER_CLIENT_EDITING',_0x484f59['PERMISSION_DENIED']=_0x2e3d21(0x1d7),_0x484f59[_0x2e3d21(0x4b3)]=_0x2e3d21(0x4b3),_0x484f59[_0x2e3d21(0x503)]='CONFLICT_CACHE_CLEAR_FAILED',_0x484f59['CONFLICT']='CONFLICT',_0x484f59[_0x2e3d21(0x2f0)]=_0x2e3d21(0x2f0),_0x484f59['JOIN_ROOM_FAILED']=_0x2e3d21(0x353),_0x484f59['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0x484f59[_0x2e3d21(0x46b)]='SOCKET_FAILED',_0x484f59[_0x2e3d21(0x20a)]=_0x2e3d21(0x20a),_0x484f59;}({});var v=class{constructor(){const _0x218013=_0x28bbb9;_(this,_0x218013(0x228),new t[(_0x218013(0x39a))]()),_(this,_0x218013(0x2f3),this[_0x218013(0x228)][_0x218013(0x32f)]());}['emitEvent'](_0x33a58e){this['_event$']['next'](_0x33a58e);}},se=class{constructor(){const _0x27ac54=_0x28bbb9;_(this,_0x27ac54(0x54d),new t[(_0x27ac54(0x39a))]()),_(this,_0x27ac54(0x224),this[_0x27ac54(0x54d)][_0x27ac54(0x32f)]());}['onCommentUpdate'](_0x37de6a){const _0x2c5971=_0x28bbb9;this[_0x2c5971(0x54d)]['next'](_0x37de6a);}};function y(_0x3d6b4a,_0x40849a){return function(_0x2a0a14,_0x5eb887){_0x40849a(_0x2a0a14,_0x5eb887,_0x3d6b4a);};}function b(_0x33dc08,_0x2dabac,_0x410ee0,_0x514fbf){const _0x521219=_0x28bbb9;var _0x25abde=arguments[_0x521219(0x47a)],_0x20b739=_0x25abde<0x3?_0x2dabac:_0x514fbf===null?_0x514fbf=Object[_0x521219(0x3f2)](_0x2dabac,_0x410ee0):_0x514fbf,_0x3eb2b6;if(typeof Reflect==_0x521219(0x25b)&&typeof Reflect['decorate']=='function')_0x20b739=Reflect[_0x521219(0x360)](_0x33dc08,_0x2dabac,_0x410ee0,_0x514fbf);else{for(var _0xa6da60=_0x33dc08[_0x521219(0x47a)]-0x1;_0xa6da60>=0x0;_0xa6da60--)(_0x3eb2b6=_0x33dc08[_0xa6da60])&&(_0x20b739=(_0x25abde<0x3?_0x3eb2b6(_0x20b739):_0x25abde>0x3?_0x3eb2b6(_0x2dabac,_0x410ee0,_0x20b739):_0x3eb2b6(_0x2dabac,_0x410ee0))||_0x20b739);}return _0x25abde>0x3&&_0x20b739&&Object[_0x521219(0x41f)](_0x2dabac,_0x410ee0,_0x20b739),_0x20b739;}let x=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x5601b1){const _0x5ab4c3=_0x28bbb9;super(),this[_0x5ab4c3(0x4b7)]=_0x5601b1,_(this,_0x5ab4c3(0x2b0),new Map()),_(this,_0x5ab4c3(0x27d),new t[(_0x5ab4c3(0x39a))]()),this[_0x5ab4c3(0x457)]((0x0,t[_0x5ab4c3(0x3e1)])(this[_0x5ab4c3(0x4b7)][_0x5ab4c3(0x3ce)](r['UniverInstanceType'][_0x5ab4c3(0x486)])[_0x5ab4c3(0x213)]((0x0,c[_0x5ab4c3(0x485)])(_0x4196d4=>_0x4196d4[_0x5ab4c3(0x3e7)]())),this[_0x5ab4c3(0x4b7)]['getTypeOfUnitDisposed$'](r[_0x5ab4c3(0x24b)][_0x5ab4c3(0x297)])[_0x5ab4c3(0x213)]((0x0,c['map'])(_0x1b30bf=>_0x1b30bf[_0x5ab4c3(0x3e7)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](r[_0x5ab4c3(0x24b)]['UNIVER_BOARD'])['pipe']((0x0,c[_0x5ab4c3(0x485)])(_0x3e2cee=>_0x3e2cee[_0x5ab4c3(0x3e7)]())),this[_0x5ab4c3(0x4b7)][_0x5ab4c3(0x3ce)](r[_0x5ab4c3(0x24b)][_0x5ab4c3(0x3bb)])[_0x5ab4c3(0x213)]((0x0,c[_0x5ab4c3(0x485)])(_0x306803=>_0x306803[_0x5ab4c3(0x3e7)]())))['subscribe'](_0x3a3fc1=>this[_0x5ab4c3(0x568)](_0x3a3fc1)));}[_0x28bbb9(0x52c)](_0x403f7d){const _0x540622=_0x28bbb9;return this[_0x540622(0x2b0)][_0x540622(0x546)](_0x403f7d)?(0x0,t['of'])(this['_roomMembers']['get'](_0x403f7d)):this[_0x540622(0x27d)][_0x540622(0x213)]((0x0,c[_0x540622(0x485)])(_0x5efc94=>{const _0x545475=_0x540622;if(_0x5efc94===_0x403f7d)return this['_roomMembers'][_0x545475(0x285)](_0x5efc94);}));}['updateMember'](_0x2f3c2a,_0x55042a){const _0x30992b=_0x28bbb9;let _0x3261f8=this[_0x30992b(0x2b0)][_0x30992b(0x285)](_0x2f3c2a);_0x3261f8||(_0x3261f8=new ce(),this[_0x30992b(0x2b0)][_0x30992b(0x36a)](_0x2f3c2a,_0x3261f8),this['_roomCreated$'][_0x30992b(0x512)](_0x2f3c2a)),_0x3261f8[_0x30992b(0x434)](_0x55042a);}[_0x28bbb9(0x1d1)](_0x2c98f7,_0x556961){const _0x145000=_0x28bbb9;let _0x79b7d2=this[_0x145000(0x2b0)][_0x145000(0x285)](_0x2c98f7);_0x79b7d2&&_0x79b7d2[_0x145000(0x1d1)](_0x556961);}[_0x28bbb9(0x2f9)](_0x37c7ad){const _0xc895b3=_0x28bbb9;return this['_roomMembers'][_0xc895b3(0x285)](_0x37c7ad);}[_0x28bbb9(0x262)](_0x3b076f,_0x2fdfa7){const _0x2f6abc=_0x28bbb9;let _0x856721=this[_0x2f6abc(0x2b0)][_0x2f6abc(0x285)](_0x3b076f);if(_0x856721)return _0x856721[_0x2f6abc(0x262)](_0x2fdfa7);}[_0x28bbb9(0x568)](_0x41d259){const _0x556706=_0x28bbb9;let _0xe79f89=this[_0x556706(0x2b0)]['get'](_0x41d259);_0xe79f89&&(_0xe79f89[_0x556706(0x3ac)](),this['_roomMembers']['delete'](_0x41d259));}['dispose'](){const _0x204d50=_0x28bbb9;this[_0x204d50(0x2b0)]['forEach'](_0x1a030b=>_0x1a030b[_0x204d50(0x3ac)]()),this['_roomMembers']['clear'](),this[_0x204d50(0x27d)][_0x204d50(0x30f)]();}};x=b([y(0x0,r[_0x28bbb9(0x51c)])],x);var ce=class extends r[_0x28bbb9(0x3ad)]{constructor(..._0x5c4d20){const _0x18f845=_0x28bbb9;super(..._0x5c4d20),_(this,_0x18f845(0x30d),new Map()),_(this,_0x18f845(0x2e5),new t[(_0x18f845(0x45f))](this[_0x18f845(0x30d)])),_(this,_0x18f845(0x441),this['_members$'][_0x18f845(0x32f)]());}[_0x28bbb9(0x3ac)](){const _0x54d3b5=_0x28bbb9;this[_0x54d3b5(0x30d)][_0x54d3b5(0x311)](),this[_0x54d3b5(0x2e5)]['complete']();}['updateMember'](_0x1b77ba){const _0x2f2274=_0x28bbb9;this[_0x2f2274(0x30d)][_0x2f2274(0x36a)](_0x1b77ba[_0x2f2274(0x362)],_0x1b77ba),this[_0x2f2274(0x1d2)]();}[_0x28bbb9(0x1d1)](_0x538894){const _0x43929b=_0x28bbb9;this[_0x43929b(0x30d)][_0x43929b(0x551)](_0x538894),this[_0x43929b(0x1d2)]();}[_0x28bbb9(0x262)](_0x584756){const _0x4762ae=_0x28bbb9;return this[_0x4762ae(0x30d)][_0x4762ae(0x285)](_0x584756);}[_0x28bbb9(0x393)](){const _0x3782f5=_0x28bbb9;return Array[_0x3782f5(0x3f8)](this[_0x3782f5(0x30d)]['values']());}[_0x28bbb9(0x1d2)](){this['_members$']['next'](this['_members']);}};function le(_0x6b064c,_0x20f2ca){const _0x587b16=_0x28bbb9;if(de(_0x6b064c))return _0x20f2ca;if(_0x20f2ca[_0x587b16(0x2ff)]===n[_0x587b16(0x33f)][_0x587b16(0x296)]){let _0x4bb809=ge(_0x6b064c),_0x1f7e0b=_0x20f2ca;return{..._0x1f7e0b,'data':{..._0x1f7e0b[_0x587b16(0x350)],'unitID':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x212)],'unitType':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x3da)]??_0x1f7e0b['data'][_0x587b16(0x3da)],'changeset':_0x4bb809[_0x587b16(0x407)](_0x1f7e0b['data'][_0x587b16(0x2d9)],_e(_0x6b064c))}};}if(_0x20f2ca[_0x587b16(0x2ff)]===n[_0x587b16(0x33f)]['FETCH_MISSING']){let _0x2db5ec=_0x20f2ca;return{..._0x2db5ec,'data':{..._0x2db5ec[_0x587b16(0x350)],'unitID':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x212)],'unitType':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x3da)]??_0x2db5ec[_0x587b16(0x350)][_0x587b16(0x3da)]}};}return _0x20f2ca;}function ue(_0x5f5ced,_0x437dfc){const _0x4310ad=_0x28bbb9;if(de(_0x5f5ced))return[_0x437dfc];switch(_0x437dfc[_0x4310ad(0x2ff)]){case n[_0x4310ad(0x33f)][_0x4310ad(0x49b)]:return[fe(_0x5f5ced,_0x437dfc)];case n[_0x4310ad(0x33f)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x5f5ced,_0x437dfc)];case n[_0x4310ad(0x33f)][_0x4310ad(0x422)]:return[pe(_0x5f5ced,_0x437dfc)];default:return[_0x437dfc];}}function de(_0x2093da){const _0x32f645=_0x28bbb9;return _0x2093da['target'][_0x32f645(0x1e4)]==null&&_0x2093da[_0x32f645(0x29d)][_0x32f645(0x212)]===_0x2093da[_0x32f645(0x4f9)]&&!_0x2093da[_0x32f645(0x2d9)];}function fe(_0x19cf3e,_0x4dabf3){const _0x3b2dc4=_0x28bbb9;return{..._0x4dabf3,'data':(0x0,n[_0x3b2dc4(0x50d)])(he(_0x19cf3e,(0x0,n[_0x3b2dc4(0x4e4)])(_0x4dabf3[_0x3b2dc4(0x350)])))};}function pe(_0x5b2733,_0x43ac4d){const _0x434554=_0x28bbb9;return{..._0x43ac4d,'data':he(_0x5b2733,_0x43ac4d[_0x434554(0x350)])};}function me(_0x1878a1,_0x4057bd){const _0x522930=_0x28bbb9;let _0x533b0a=_0x4057bd[_0x522930(0x350)];return{..._0x4057bd,'data':{..._0x533b0a,'changesets':_0x533b0a[_0x522930(0x509)][_0x522930(0x485)](_0x4a6660=>(0x0,n['parseChangesetToProtocol'])(he(_0x1878a1,(0x0,n[_0x522930(0x4e4)])(_0x4a6660))))}};}function he(_0x53acd4,_0x6c88cb){const _0xa9f688=_0x28bbb9;return ge(_0x53acd4)[_0xa9f688(0x231)](_0x6c88cb,_e(_0x53acd4));}function ge(_0x324662){const _0x5360ed=_0x28bbb9;if(!_0x324662['changeset'])throw Error(_0x5360ed(0x3f6));return _0x324662[_0x5360ed(0x2d9)];}function _e(_0x4a70c7){const _0x4dfc29=_0x28bbb9;return{'localUnitId':_0x4a70c7[_0x4dfc29(0x4f9)],'unitType':_0x4a70c7[_0x4dfc29(0x3da)],'target':_0x4a70c7[_0x4dfc29(0x29d)]};}let ve=function(_0x369069){const _0x1ecc87=_0x28bbb9;return _0x369069[_0x369069[_0x1ecc87(0x237)]=0x0]=_0x1ecc87(0x237),_0x369069[_0x369069[_0x1ecc87(0x4f1)]=0x1]=_0x1ecc87(0x4f1),_0x369069[_0x369069[_0x1ecc87(0x35a)]=0x2]=_0x1ecc87(0x35a),_0x369069[_0x369069['ONLINE']=0x3]='ONLINE',_0x369069;}({});const ye={[o[_0x28bbb9(0x2e7)][_0x28bbb9(0x316)]]:'session.join-failed',[o['CmdRspCode']['JOIN_ROOM_FULL']]:_0x28bbb9(0x1e5),[o[_0x28bbb9(0x2e7)]['JOIN_ROOM_NOT_EXISTS']]:_0x28bbb9(0x4e0),[o[_0x28bbb9(0x2e7)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x28bbb9(0x26e),[o[_0x28bbb9(0x2e7)][_0x28bbb9(0x44e)]]:_0x28bbb9(0x437)};let S=class extends r[_0x28bbb9(0x22c)]{get['sessionStatus'](){const _0x1ee7d1=_0x28bbb9;return this[_0x1ee7d1(0x537)]['getValue']();}constructor(_0x250ecd,_0x3e5de1,_0x3a2b56,_0x173abb,_0x390966,_0x2544f1,_0x5aa390){const _0x2a9a41=_0x28bbb9;super(),this[_0x2a9a41(0x399)]=_0x250ecd,this[_0x2a9a41(0x41e)]=_0x3a2b56,this[_0x2a9a41(0x334)]=_0x173abb,this['_commentService']=_0x390966,this[_0x2a9a41(0x3b5)]=_0x2544f1,this['_telemetryService']=_0x5aa390,_(this,'_sessionStatus$',new t[(_0x2a9a41(0x45f))](0x0)),_(this,_0x2a9a41(0x3f5),this[_0x2a9a41(0x537)]['asObservable']()),_(this,_0x2a9a41(0x228),new t[(_0x2a9a41(0x39a))]()),_(this,_0x2a9a41(0x2f3),this['_event$']['asObservable']()),_(this,_0x2a9a41(0x308),void 0x0),_(this,_0x2a9a41(0x37e),void 0x0),_(this,_0x2a9a41(0x2ee),!0x1),_(this,_0x2a9a41(0x508),null),this[_0x2a9a41(0x2ee)]=!!this[_0x2a9a41(0x553)],_0x3e5de1[_0x2a9a41(0x213)]((0x0,t[_0x2a9a41(0x418)])(this[_0x2a9a41(0x55d)]))[_0x2a9a41(0x264)](_0x5dd4f5=>{const _0x182b23=_0x2a9a41;if(_0x5dd4f5!==void 0x0){if(this[_0x182b23(0x308)]=_0x5dd4f5,_0x5dd4f5)this[_0x182b23(0x514)](_0x5dd4f5),this['_socketMessageSubscription']=_0x5dd4f5[_0x182b23(0x3fa)][_0x182b23(0x264)](_0xcbe643=>{const _0x5880d6=_0x182b23;_0xcbe643[_0x5880d6(0x1e3)]===this[_0x5880d6(0x399)][_0x5880d6(0x29d)][_0x5880d6(0x212)]&&this[_0x5880d6(0x4a6)](_0xcbe643);});else{var _0x477c32;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x182b23(0x537)][_0x182b23(0x512)](0x2),(_0x477c32=this[_0x182b23(0x37e)])==null||_0x477c32[_0x182b23(0x3c7)](),this[_0x182b23(0x37e)]=null;}}});}[_0x28bbb9(0x268)](){const _0x234d90=_0x28bbb9;var _0x161b51;return((_0x161b51=this[_0x234d90(0x308)])==null?void 0x0:_0x161b51[_0x234d90(0x362)])??null;}[_0x28bbb9(0x3ac)](){const _0x1825c5=_0x28bbb9;super[_0x1825c5(0x3ac)](),this[_0x1825c5(0x326)](),this[_0x1825c5(0x55d)][_0x1825c5(0x512)](),this['dispose$']['complete']();}[_0x28bbb9(0x326)](){const _0x5aacad=_0x28bbb9;var _0x125e2f;this[_0x5aacad(0x39e)](),(_0x125e2f=this[_0x5aacad(0x308)])==null||_0x125e2f[_0x5aacad(0x1d8)]({'cmd':o[_0x5aacad(0x291)]['LEAVE'],'data':{'roomID':this['_identity'][_0x5aacad(0x29d)]['unitId']}}),this[_0x5aacad(0x228)][_0x5aacad(0x30f)](),this[_0x5aacad(0x537)][_0x5aacad(0x30f)]();}[_0x28bbb9(0x4a6)](_0x399e34){const _0x497f6e=_0x28bbb9;_0x399e34[_0x497f6e(0x329)]===o[_0x497f6e(0x291)]['JOIN']?this[_0x497f6e(0x1f9)](_0x399e34):_0x399e34[_0x497f6e(0x329)]===o[_0x497f6e(0x291)][_0x497f6e(0x540)]&&this[_0x497f6e(0x272)](_0x399e34);}[_0x28bbb9(0x514)](_0x12ed63){const _0x1e273d=_0x28bbb9;this[_0x1e273d(0x537)]['next'](0x1),_0x12ed63['send']({'cmd':o['CombCmd'][_0x1e273d(0x21f)],'routeKey':this['_identity'][_0x1e273d(0x29d)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x1e273d(0x399)][_0x1e273d(0x29d)]['unitId']}]}});}[_0x28bbb9(0x1f9)](_0x5cd57d){const _0x3f4411=_0x28bbb9;var _0x391949;if(_0x5cd57d[_0x3f4411(0x4d2)]in ye){this[_0x3f4411(0x3b5)][_0x3f4411(0x40c)]({'id':_0x3f4411(0x353),'data':ye[_0x5cd57d[_0x3f4411(0x4d2)]]}),this['_sessionStatus$'][_0x3f4411(0x512)](0x2);return;}this[_0x3f4411(0x537)]['next'](0x3);let _0x4401e7=(_0x391949=_0x5cd57d[_0x3f4411(0x350)][_0x3f4411(0x204)][this['_identity']['target'][_0x3f4411(0x212)]])==null?void 0x0:_0x391949[_0x3f4411(0x2c6)];_0x4401e7&&_0x4401e7[_0x3f4411(0x3e9)](_0xfbf782=>this[_0x3f4411(0x334)]['updateMember'](this[_0x3f4411(0x399)]['localUnitId'],_0xfbf782));}[_0x28bbb9(0x272)](_0x5ac1db){const _0x18da65=_0x28bbb9;try{let _0x488d7e=ue(this['_identity'],_0x5ac1db[_0x18da65(0x350)]);for(let _0x2778df of _0x488d7e)switch(_0x2778df['eventID']){case n['CollaborationEvent'][_0x18da65(0x313)]:this[_0x18da65(0x330)](_0x2778df),this[_0x18da65(0x228)]['next'](_0x2778df);break;case n['CollaborationEvent'][_0x18da65(0x3e8)]:this['_onUserLeave'](_0x2778df),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x31f)]:case n[_0x18da65(0x33f)][_0x18da65(0x422)]:this[_0x18da65(0x3dc)](),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x346)]:this[_0x18da65(0x41e)][_0x18da65(0x456)](_0x18da65(0x4c7)+JSON['stringify'](_0x2778df)),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x43c)]:this[_0x18da65(0x1cb)]['onCommentUpdate'](_0x2778df[_0x18da65(0x350)]),this['_event$'][_0x18da65(0x512)](_0x2778df);break;default:this['_event$'][_0x18da65(0x512)](_0x2778df);}}catch(_0x2815f4){this['_logService'][_0x18da65(0x456)](_0x2815f4,_0x5ac1db);}}[_0x28bbb9(0x330)](_0x1ed8aa){const _0x46cab2=_0x28bbb9;this['_memberService'][_0x46cab2(0x434)](this[_0x46cab2(0x399)][_0x46cab2(0x4f9)],_0x1ed8aa['data']);}['_onUserLeave'](_0x3ef6b8){const _0x387077=_0x28bbb9;this['_memberService']['removeMember'](this[_0x387077(0x399)][_0x387077(0x4f9)],_0x3ef6b8['data'][_0x387077(0x362)]);}async[_0x28bbb9(0x1d8)](_0x12194b,_0xc749be,_0x51e855){const _0x5a5fec=_0x28bbb9;if(this[_0x5a5fec(0x3a8)]!==0x3||!this['_socket'])throw Error(_0x5a5fec(0x414));try{let _0x1e4a69=le(this[_0x5a5fec(0x399)],_0x12194b);_0x1e4a69[_0x5a5fec(0x2ff)]===n['CollaborationEvent']['SUBMIT_CHANGESET']&&this[_0x5a5fec(0x467)](_0x1e4a69);let _0x15f29e={'cmd':o[_0x5a5fec(0x291)][_0x5a5fec(0x31c)],'routeKey':this['_identity'][_0x5a5fec(0x29d)]['unitId'],'routeType':'','data':_0x1e4a69};return _0x51e855===void 0x0?this['_socket'][_0x5a5fec(0x1d8)](_0x15f29e):this[_0x5a5fec(0x308)][_0x5a5fec(0x1d8)](_0x15f29e,_0x51e855);}catch(_0x2c6c04){this[_0x5a5fec(0x41e)]['error'](_0x2c6c04);}}[_0x28bbb9(0x467)](_0x1353de){const _0x208e3e=_0x28bbb9;if(!this[_0x208e3e(0x2ee)])return;let {data:_0x5156ae}=_0x1353de,{unitID:_0x419f7f,changeset:_0x460159}=_0x5156ae,{mutations:_0x453943,type:_0x33dde1}=_0x460159;this[_0x208e3e(0x508)]={'unitId':_0x419f7f,'type':_0x33dde1,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':ae(_0x453943)};}[_0x28bbb9(0x3dc)](){const _0x5c7082=_0x28bbb9;this[_0x5c7082(0x2ee)]&&(this[_0x5c7082(0x508)]?(this['_telemetryInfo']['stopTime']=performance['now'](),this[_0x5c7082(0x508)][_0x5c7082(0x211)]=this[_0x5c7082(0x508)][_0x5c7082(0x2c5)]-this[_0x5c7082(0x508)][_0x5c7082(0x53a)],this['_telemetryService'][_0x5c7082(0x4d1)](_0x5c7082(0x3bc),this[_0x5c7082(0x508)]),this[_0x5c7082(0x508)]=null):this[_0x5c7082(0x41e)]['error']('[CollaborationSession]',_0x5c7082(0x28f)));}['_throwTelemetryCollaborationNewChangeset'](){const _0x3dfaa1=_0x28bbb9;this[_0x3dfaa1(0x508)]=null;}};S=b([y(0x2,r[_0x28bbb9(0x369)]),y(0x3,(0x0,r[_0x28bbb9(0x431)])(x)),y(0x4,(0x0,r[_0x28bbb9(0x431)])(se)),y(0x5,(0x0,r['Inject'])(v)),y(0x6,(0x0,r[_0x28bbb9(0x1cd)])(s[_0x28bbb9(0x558)]))],S);const C=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x21d));function be(_0x505801,_0x3acce1){const _0x23b2ef=_0x28bbb9;return _0x3acce1===''||_0x3acce1==null?_0x23b2ef(0x1c3)+_0x505801:_0x23b2ef(0x1c3)+_0x505801+'-'+encodeURIComponent(_0x3acce1);}function xe(_0x23f990){const _0x530660=_0x28bbb9;let {unitID:_0x5e4ddb,mutations:_0xb801eb}=_0x23f990;return{'unitId':_0x5e4ddb,'subUnitId':_0xb801eb[_0x530660(0x47a)]>0x0?_0xb801eb[0x0][_0x530660(0x453)][_0x530660(0x3f9)]:null};}let w=class{constructor(_0x5aff56,_0x171c47,_0x15a562){const _0x3213ca=_0x28bbb9;this[_0x3213ca(0x475)]=_0x5aff56,this[_0x3213ca(0x1f2)]=_0x171c47,this[_0x3213ca(0x2db)]=_0x15a562;}[_0x28bbb9(0x2df)](_0x36d572){const _0x149e15=_0x28bbb9;var _0x52c233,_0x2d30ad;let _0x2679c3=this['_injector'][_0x149e15(0x285)](a['SheetsSelectionsService']),{unitId:_0x2ded11,subUnitId:_0x2e0eb2}=xe(_0x36d572),_0x1f2afe=_0x2679c3==null?void 0x0:_0x2679c3[_0x149e15(0x210)](_0x2ded11)['getCurrentSelections'](),_0x3c30ac=(_0x52c233=this['_instanceService'][_0x149e15(0x1e2)](_0x2ded11))==null||(_0x52c233=_0x52c233[_0x149e15(0x1db)]())==null?void 0x0:_0x52c233[_0x149e15(0x388)]();if(_0x1f2afe['length']===0x0||!_0x2ded11||!_0x2e0eb2)return;let _0x50e951=[{'id':a[_0x149e15(0x2a3)]['id'],'params':{'unitId':_0x2ded11,'subUnitId':_0x3c30ac,'selections':r[_0x149e15(0x4cf)][_0x149e15(0x417)](_0x1f2afe)}}],_0x88490a=this[_0x149e15(0x1f2)][_0x149e15(0x541)](_0x36d572,_0x50e951);if(!(0x0,n['isTransformMutationsWithChangesetSuccess'])(_0x88490a))throw _0x88490a[_0x149e15(0x456)];let _0x48bde5=(_0x2d30ad=_0x88490a[_0x149e15(0x3bd)][0x0])==null||(_0x2d30ad=_0x2d30ad['params'])==null?void 0x0:_0x2d30ad[_0x149e15(0x3c1)];if(Array[_0x149e15(0x2e8)](_0x48bde5)&&_0x48bde5[_0x149e15(0x47a)]){if(_0x48bde5['length']===_0x50e951[0x0][_0x149e15(0x453)][_0x149e15(0x3c1)][_0x149e15(0x47a)]&&_0x48bde5[_0x149e15(0x219)]((_0x1d1777,_0x1ac32b)=>r[_0x149e15(0x3e3)][_0x149e15(0x4c2)](_0x1d1777[_0x149e15(0x2ae)],_0x50e951[0x0]['params'][_0x149e15(0x3c1)][_0x1ac32b][_0x149e15(0x2ae)])))return;this[_0x149e15(0x475)]['get'](r[_0x149e15(0x382)])[_0x149e15(0x2bd)](a['SetSelectionsOperation']['id'],{'unitId':_0x2ded11,'subUnitId':_0x3c30ac,'selections':_0x48bde5});}}};w=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,n[_0x28bbb9(0x4fc)]),y(0x2,r['IUniverInstanceService'])],w);const T=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x3a6));let Se=function(_0x26309b){const _0x41638f=_0x28bbb9;return _0x26309b[_0x26309b['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x26309b[_0x26309b['OTHER_CLIENTS_EDITING']=0x1]=_0x41638f(0x2eb),_0x26309b;}({});function Ce(_0xd6c3f0){const _0x1fe896=_0x28bbb9;var _0x234dbd;return!!((_0x234dbd=_0xd6c3f0[_0x1fe896(0x453)])!=null&&_0x234dbd[_0x1fe896(0x236)]);}const we=new Set([a[_0x28bbb9(0x1c5)]['id']]),Te=new Set([l[_0x28bbb9(0x4bb)]['id'],l['EnsureSlideMasterPageMutation']['id'],l[_0x28bbb9(0x1ba)]['id'],l[_0x28bbb9(0x56b)]['id']]);function Ee(_0x5a6432,_0x59741e=we){const _0x3297c0=_0x28bbb9;let _0x2d78ae=[];for(let _0xdc67c6 of _0x5a6432){if(_0x59741e[_0x3297c0(0x546)](_0xdc67c6['id'])||Ce(_0xdc67c6)){if(_0x2d78ae[_0x3297c0(0x47a)]>0x0)break;_0x2d78ae[_0x3297c0(0x4ec)](_0xdc67c6);break;}_0x2d78ae[_0x3297c0(0x4ec)](_0xdc67c6);}return _0x2d78ae;}function E(_0x5211fa,_0x1b405e,_0x1a2654,_0x51dc10,_0x453d4f){const _0x4dc86b=_0x28bbb9;let _0x2ae2b8=Ee(_0x5211fa),_0x1c9e4c=_0x453d4f[_0x4dc86b(0x1f5)](),_0x482d42=(_0x1c9e4c==null?void 0x0:_0x1c9e4c['userID'])??_0x4dc86b(0x4e3),_0xe3ccbc=(_0x1c9e4c==null?void 0x0:_0x1c9e4c[_0x4dc86b(0x362)])??'unknown';return{'changeset':{'unitID':_0x1b405e,'type':(0x0,n[_0x4dc86b(0x38e)])(_0x1a2654['getUnitType'](_0x1b405e)),'baseRev':_0x51dc10[_0x4dc86b(0x1f3)](_0x1b405e),'revision':0x0,'userID':_0x482d42,'memberID':_0xe3ccbc,'mutations':_0x2ae2b8},'pendingMutations':_0x5211fa[_0x4dc86b(0x4e6)](_0x2ae2b8[_0x4dc86b(0x47a)])};}const De=E;function Oe(_0x2cd178,_0x248195,_0x46d0cc,_0x3c7785,_0x116244){const _0x272a82=_0x28bbb9;let _0x2a3715=Ee(_0x2cd178,Te),_0x45b761=_0x116244[_0x272a82(0x1f5)](),_0x278d77=(_0x45b761==null?void 0x0:_0x45b761[_0x272a82(0x47b)])??'unknown',_0x110319=(_0x45b761==null?void 0x0:_0x45b761['memberID'])??_0x272a82(0x4e3);return{'changeset':{'unitID':_0x248195,'type':(0x0,n[_0x272a82(0x38e)])(_0x46d0cc[_0x272a82(0x286)](_0x248195)),'baseRev':_0x3c7785['getCurrentRevOfUnit'](_0x248195),'revision':0x0,'userID':_0x278d77,'memberID':_0x110319,'mutations':_0x2a3715},'pendingMutations':_0x2cd178['slice'](_0x2a3715[_0x272a82(0x47a)])};}function ke(_0x19e2a7,_0x21f7b6,_0x45f9aa,_0x44cf4f,_0xd5ba42){const _0x1c5961=_0x28bbb9;let _0x19a2a8=_0x19e2a7[_0x1c5961(0x3b9)]((_0x8876e6,_0x50fe1f)=>{const _0x2398ec=_0x1c5961;let _0x3698ec=_0x8876e6[_0x8876e6[_0x2398ec(0x47a)]-0x1],{id:_0x2afa1a}=_0x3698ec??{},{id:_0x46e83b,type:_0x479d6f}=_0x50fe1f,_0x4486d8=_0x50fe1f[_0x2398ec(0x453)];if(_0x2afa1a&&_0x2afa1a!==_0x46e83b)throw Error(_0x2398ec(0x359)+_0x2afa1a+'\x20-\x20'+_0x46e83b+'.');if(!_0x3698ec)return[{'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8[_0x2398ec(0x212)],'textRanges':_0x4486d8[_0x2398ec(0x41a)],'actions':_0x4486d8[_0x2398ec(0x3d1)]}}];let _0x227cf8=_0x3698ec[_0x2398ec(0x453)];return Ae(_0x227cf8,_0x4486d8)?[..._0x8876e6[_0x2398ec(0x4e6)](0x0,-0x1),{..._0x3698ec,'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8['unitId'],'textRanges':_0x4486d8[_0x2398ec(0x41a)],'actions':r[_0x2398ec(0x413)]['compose'](_0x227cf8[_0x2398ec(0x3d1)],_0x4486d8[_0x2398ec(0x3d1)])}}]:[..._0x8876e6,{'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8[_0x2398ec(0x212)],'textRanges':_0x4486d8['textRanges'],'actions':_0x4486d8[_0x2398ec(0x3d1)]}}];},[]),_0x168c56=_0xd5ba42['getCurrentUser'](),_0x453f00=(_0x168c56==null?void 0x0:_0x168c56[_0x1c5961(0x47b)])??'unknown',_0x1d042e=(_0x168c56==null?void 0x0:_0x168c56['memberID'])??_0x1c5961(0x4e3);return{'changeset':{'unitID':_0x21f7b6,'type':(0x0,n[_0x1c5961(0x38e)])(_0x45f9aa[_0x1c5961(0x286)](_0x21f7b6)),'baseRev':_0x44cf4f[_0x1c5961(0x1f3)](_0x21f7b6),'revision':0x0,'userID':_0x453f00,'memberID':_0x1d042e,'mutations':_0x19a2a8},'pendingMutations':_0x19e2a7['slice'](_0x19e2a7['length'])};}function Ae(_0x4df04a,_0x213c73){const _0x348c19=_0x28bbb9;return!je(_0x4df04a)&&!je(_0x213c73)&&Me(_0x4df04a[_0x348c19(0x3d1)],_0x213c73[_0x348c19(0x3d1)]);}function je(_0x5add37){return _0x5add37['isCompositionEnd']!==void 0x0;}function Me(_0x1b22ae,_0x5a806b){return Ne(_0x1b22ae)&&Ne(_0x5a806b)&&!Fe(_0x1b22ae)&&!Fe(_0x5a806b)&&!Pe(_0x1b22ae)&&!Pe(_0x5a806b);}function Ne(_0x22dfec){const _0x24610b=_0x28bbb9;return Ie(_0x22dfec)[_0x24610b(0x33e)](_0x2f68e8=>D(_0x2f68e8)&&_0x2f68e8['et']==='text-x');}function Pe(_0xdd4a19){const _0x2210e1=_0x28bbb9;return Ie(_0xdd4a19)[_0x2210e1(0x33e)](_0x1c5615=>Array[_0x2210e1(0x2e8)](_0x1c5615)||typeof _0x1c5615==_0x2210e1(0x2d4)||typeof _0x1c5615==_0x2210e1(0x378));}function Fe(_0x46d851){const _0x19d36a=_0x28bbb9;return Ie(_0x46d851)['some'](_0x42be8e=>!D(_0x42be8e)||_0x42be8e['et']!=='text-x'||!Array[_0x19d36a(0x2e8)](_0x42be8e['e'])?!0x1:_0x42be8e['e'][_0x19d36a(0x33e)](_0x22fb98=>!D(_0x22fb98)||!D(_0x22fb98[_0x19d36a(0x340)])?!0x1:Object['prototype']['hasOwnProperty'][_0x19d36a(0x446)](_0x22fb98[_0x19d36a(0x340)],_0x19d36a(0x428))||Object[_0x19d36a(0x30e)][_0x19d36a(0x36d)]['call'](_0x22fb98[_0x19d36a(0x340)],'columnGroups')||Object['prototype'][_0x19d36a(0x36d)][_0x19d36a(0x446)](_0x22fb98[_0x19d36a(0x340)],_0x19d36a(0x3a4))));}function Ie(_0x5ab935){const _0x2fac49=_0x28bbb9;if(!Array[_0x2fac49(0x2e8)](_0x5ab935))return[];let _0x4fef3c=_0x5ab935[_0x2fac49(0x539)](_0x2fac49(0x340))?_0x5ab935:_0x5ab935['find'](_0x1a5491=>Array[_0x2fac49(0x2e8)](_0x1a5491)&&_0x1a5491['includes']('body'));if(!Array[_0x2fac49(0x2e8)](_0x4fef3c))return[];let _0x54c7dc=_0x4fef3c[_0x2fac49(0x383)]('body');return _0x54c7dc===-0x1?[]:_0x4fef3c[_0x2fac49(0x4e6)](_0x54c7dc+0x1);}function D(_0x1a2c43){const _0x55e5ef=_0x28bbb9;return typeof _0x1a2c43==_0x55e5ef(0x25b)&&!!_0x1a2c43&&!Array[_0x55e5ef(0x2e8)](_0x1a2c43);}function Le(_0x3b98e5,_0x178115){const _0x27cf20=_0x28bbb9;for(let _0x2317bb of _0x3b98e5[_0x27cf20(0x220)]){if(_0x2317bb['id']!==n[_0x27cf20(0x1bc)]['id'])continue;let _0xb860ee=_0x2317bb[_0x27cf20(0x453)];if((_0xb860ee==null?void 0x0:_0xb860ee[_0x27cf20(0x212)])===_0x178115&&typeof _0xb860ee['revision']==_0x27cf20(0x378))return{'unitId':_0xb860ee[_0x27cf20(0x212)],'revision':_0xb860ee[_0x27cf20(0x27c)]};}return null;}var Re,ze,Be,Ve=class extends Error{constructor(_0x3a868f){const _0x28f07f=_0x28bbb9;super(_0x3a868f instanceof Error?_0x3a868f['message']:typeof _0x3a868f=='string'?_0x3a868f:'[CollaborationState]:\x20apply\x20error!'),this[_0x28f07f(0x415)]=_0x3a868f,this['name']=_0x28f07f(0x2f8);}},He=class extends Error{constructor(_0x2bd778){const _0x4575e7=_0x28bbb9;var _0x37609c;super('[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20'+((_0x37609c=_0x2bd778[_0x4575e7(0x34f)])==null?void 0x0:_0x37609c[_0x4575e7(0x27c)])+'.'),this['info']=_0x2bd778,this[_0x4575e7(0x234)]=_0x4575e7(0x2ad);}};let Ue=function(_0x527c46){const _0x179bfc=_0x28bbb9;return _0x527c46['NOT_COLLAB']='not_collab',_0x527c46['SYNCED']=_0x179bfc(0x4e8),_0x527c46[_0x179bfc(0x4e9)]=_0x179bfc(0x432),_0x527c46[_0x179bfc(0x349)]='awaiting',_0x527c46['AWAITING_WITH_PENDING']=_0x179bfc(0x472),_0x527c46[_0x179bfc(0x4a0)]=_0x179bfc(0x48c),_0x527c46[_0x179bfc(0x2b1)]=_0x179bfc(0x257),_0x527c46['OFFLINE']='offline',_0x527c46;}({});var O=class{constructor(_0x8ebd13,_0x30500e,_0x1d1528,_0x43ba5c,_0x5b423a,_0x402a96,_0x2bf7a5,_0x5dc368,_0x29b634){const _0x2a6c2a=_0x28bbb9;this[_0x2a6c2a(0x2e9)]=_0x8ebd13,this[_0x2a6c2a(0x538)]=_0x30500e,this[_0x2a6c2a(0x2a8)]=_0x5b423a,this[_0x2a6c2a(0x265)]=_0x402a96,this[_0x2a6c2a(0x377)]=_0x2bf7a5,this[_0x2a6c2a(0x460)]=_0x5dc368,this[_0x2a6c2a(0x4a5)]=_0x29b634,_(this,_0x2a6c2a(0x524),null),_(this,_0x2a6c2a(0x4f8),[]),this[_0x2a6c2a(0x524)]=_0x1d1528,this[_0x2a6c2a(0x4f8)]=_0x43ba5c;}[_0x28bbb9(0x40b)](){const _0x43b9cc=_0x28bbb9;return!!this[_0x43b9cc(0x524)]||this['_pendingMutations'][_0x43b9cc(0x47a)]>0x0;}[_0x28bbb9(0x3ac)](){}[_0x28bbb9(0x4b2)](){const _0x24ea80=_0x28bbb9;var _0x207997;return(((_0x207997=this[_0x24ea80(0x524)])==null?void 0x0:_0x207997[_0x24ea80(0x220)][_0x24ea80(0x47a)])??0x0)+this['_pendingMutations'][_0x24ea80(0x47a)];}[_0x28bbb9(0x478)](_0x4e067c){const _0x17d1a6=_0x28bbb9;return new ne(_0x4e067c[_0x17d1a6(0x4cd)]??0x0,(_0x45d6fc,_0x2a2786)=>this[_0x17d1a6(0x2a8)][_0x17d1a6(0x49a)](_0x45d6fc,_0x2a2786),{...this['_handler'][_0x17d1a6(0x245)],'onResend':_0x3dbe8d=>{const _0x1f2538=_0x17d1a6;var _0x57b89b,_0x5b0873;return(_0x57b89b=(_0x5b0873=this[_0x1f2538(0x2a8)])['onChangesetResend'])==null?void 0x0:_0x57b89b[_0x1f2538(0x446)](_0x5b0873,_0x3dbe8d);}});}[_0x28bbb9(0x4d6)](_0x143464){const _0x527e70=_0x28bbb9;if(this[_0x527e70(0x53b)](_0x143464))return _0x527e70(0x1ec);if(Le(_0x143464,this[_0x527e70(0x2e9)]))return _0x527e70(0x318);let _0x2c63ab=this['_getCurrentRevision']();return _0x143464['revision']<=_0x2c63ab?_0x527e70(0x363):_0x143464[_0x527e70(0x27c)]>_0x2c63ab+0x1?_0x527e70(0x518):_0x527e70(0x1ea);}[_0x28bbb9(0x373)](_0xc76ab9){const _0x3ee7f9=_0x28bbb9;let _0x4009ec=this['_getCurrentRevision']();return _0xc76ab9[_0x3ee7f9(0x27c)]<=_0x4009ec?this[_0x3ee7f9(0x502)](_0xc76ab9)?_0x3ee7f9(0x497):_0x3ee7f9(0x338):_0xc76ab9['revision']>_0x4009ec+0x1?_0x3ee7f9(0x518):_0x3ee7f9(0x512);}[_0x28bbb9(0x2bc)](_0x4107af,_0x59ec2d){const _0x4d9330=_0x28bbb9;switch(this['_classifyRemoteChangeset'](_0x4107af)){case'echo':return this['onRemoteAck'](_0x4107af);case _0x4d9330(0x318):return _0x59ec2d[_0x4d9330(0x2e0)](_0x4107af);case _0x4d9330(0x363):return this;case _0x4d9330(0x518):return this[_0x4d9330(0x429)](_0x4107af[_0x4d9330(0x27c)]),_0x59ec2d['onMissing'](_0x4107af);case _0x4d9330(0x1ea):return _0x59ec2d[_0x4d9330(0x459)](_0x4107af);}}['_remoteRevertInfo'](_0x4f6642){const _0x4d1478=_0x28bbb9;return{'reason':'remote_revert','revert':{'revision':Le(_0x4f6642,this['unitID'])[_0x4d1478(0x27c)],'memberId':_0x4f6642[_0x4d1478(0x362)],'userId':_0x4f6642[_0x4d1478(0x47b)]}};}[_0x28bbb9(0x4c5)](_0x4bd102){const _0x39d85a=_0x28bbb9;return{'reason':_0x4bd102 instanceof Ve?_0x39d85a(0x3bf):_0x39d85a(0x20e),'message':_0x4bd102 instanceof Error?_0x4bd102[_0x39d85a(0x34c)]:typeof _0x4bd102==_0x39d85a(0x2d4)?_0x4bd102:void 0x0};}[_0x28bbb9(0x37a)](_0x365a91){const _0x5bd19c=_0x28bbb9;return{'reason':_0x365a91!=null&&_0x365a91['isPermissionRej']?_0x5bd19c(0x3cd):_0x5bd19c(0x2a0)};}['_requestMissingChangesets'](_0x1b877c){const _0x447d53=_0x28bbb9;this[_0x447d53(0x2a8)][_0x447d53(0x241)]({'from':this[_0x447d53(0x2b6)](),'to':_0x1b877c-0x1});}[_0x28bbb9(0x46a)](_0x4dc70e){const _0x3bb9a2=_0x28bbb9;this['_undoRedoService'][_0x3bb9a2(0x2be)](this[_0x3bb9a2(0x2e9)],_0x4dc70e);}[_0x28bbb9(0x495)](_0x2e6b8b){const _0x112ab6=_0x28bbb9;var _0x250da4,_0xc3d981;(_0x250da4=(_0xc3d981=this[_0x112ab6(0x2a8)])['onTransformSelections'])==null||_0x250da4[_0x112ab6(0x446)](_0xc3d981,_0x2e6b8b);}[_0x28bbb9(0x3d0)](_0x367495){const _0x58c1a=_0x28bbb9;var _0x3ea1a2,_0x4d062c;return((_0x3ea1a2=(_0x4d062c=this['_handler'])[_0x58c1a(0x51d)])==null?void 0x0:_0x3ea1a2['call'](_0x4d062c,_0x367495))??null;}[_0x28bbb9(0x3f3)](_0x2f8239){const _0x1a0088=_0x28bbb9;var _0x4b112a,_0x30efe2;return(_0x4b112a=(_0x30efe2=this[_0x1a0088(0x2a8)])[_0x1a0088(0x317)])==null?void 0x0:_0x4b112a[_0x1a0088(0x446)](_0x30efe2,_0x2f8239);}[_0x28bbb9(0x3ca)](_0x4edef5){const _0x26391d=_0x28bbb9;var _0x2619ec,_0x33f959;return(_0x2619ec=(_0x33f959=this[_0x26391d(0x2a8)])['onTransformState'])==null?void 0x0:_0x2619ec['call'](_0x33f959,_0x4edef5);}[_0x28bbb9(0x51e)](_0x56c47e){const _0xbcd0e3=_0x28bbb9;var _0x5d7174,_0x213920;return((_0x5d7174=(_0x213920=this[_0xbcd0e3(0x2a8)])[_0xbcd0e3(0x348)])==null?void 0x0:_0x5d7174['call'](_0x213920,_0x56c47e))??_0x56c47e;}[_0x28bbb9(0x517)](_0x3575f5){const _0x430e23=_0x28bbb9;var _0x5ba327,_0x21e778;return((_0x5ba327=(_0x21e778=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5ba327[_0x430e23(0x446)](_0x21e778,_0x3575f5))??_0x3575f5;}[_0x28bbb9(0x435)](_0x46492f){const _0x63f775=_0x28bbb9;if(this['type']===r['UniverInstanceType'][_0x63f775(0x297)]){let {unitID:_0x4f9c32,mutations:_0xc215b2,memberID:_0x122d5b}=_0x46492f,_0xe12b32=_0xc215b2['length']>0x0?_0xc215b2[0x0]['params'][_0x63f775(0x41a)]:[];if(Array['isArray'](_0xe12b32)&&_0xe12b32['length']>0x0){var _0x22f5be,_0x7236fe;(_0x22f5be=(_0x7236fe=this[_0x63f775(0x2a8)])[_0x63f775(0x2a6)])==null||_0x22f5be['call'](_0x7236fe,{'unitID':_0x4f9c32,'memberID':_0x122d5b,'textRanges':_0xe12b32});}}}[_0x28bbb9(0x2ac)](){const _0x105a89=_0x28bbb9;var _0x510a7f;(_0x510a7f=this['_localCacheService'])==null||_0x510a7f[_0x105a89(0x55b)](this[_0x105a89(0x2e9)],this[_0x105a89(0x538)],this[_0x105a89(0x524)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x8b7869=_0x28bbb9;return this[_0x8b7869(0x460)]['getCurrentRevOfUnit'](this[_0x8b7869(0x2e9)]);}[_0x28bbb9(0x53b)](_0x25bced){const _0x5bd553=_0x28bbb9;let _0x1f6a02=this[_0x5bd553(0x524)];return!_0x1f6a02||!_0x1f6a02[_0x5bd553(0x32d)]||_0x1f6a02['reqId']===null||_0x1f6a02[_0x5bd553(0x4cd)]===void 0x0?!0x1:_0x25bced[_0x5bd553(0x2e9)]===_0x1f6a02['unitID']&&_0x25bced[_0x5bd553(0x32d)]===_0x1f6a02[_0x5bd553(0x32d)]&&_0x25bced['reqId']===_0x1f6a02[_0x5bd553(0x4cd)];}['_isAckOfAwaitingChangeset'](_0x32499d){const _0x1b0b08=_0x28bbb9;let _0x25f4fc=this[_0x1b0b08(0x524)];return!(_0x25f4fc!=null&&_0x25f4fc[_0x1b0b08(0x32d)])||_0x25f4fc[_0x1b0b08(0x4cd)]==null||!_0x32499d[_0x1b0b08(0x32d)]||_0x32499d[_0x1b0b08(0x4cd)]==null?!0x1:_0x32499d['sid']===_0x25f4fc[_0x1b0b08(0x32d)]&&_0x32499d[_0x1b0b08(0x4cd)]===_0x25f4fc[_0x1b0b08(0x4cd)];}['_incrementRevisionNumber'](){const _0x52312d=_0x28bbb9;this[_0x52312d(0x460)]['incrementRevOfUnit'](this[_0x52312d(0x2e9)]);}[_0x28bbb9(0x3c5)](_0x551b9b){const _0x52eece=_0x28bbb9;let _0x2087a5=this[_0x52eece(0x51e)](_0x551b9b);_0x2087a5=this[_0x52eece(0x517)](_0x2087a5);let _0x2cde65=this[_0x52eece(0x3d0)](_0x2087a5),_0xad7c3f=(0x0,r['sequenceExecute'])(_0x2087a5[_0x52eece(0x220)],this[_0x52eece(0x265)],{'fromCollab':!0x0});if(!_0xad7c3f['result'])throw _0x2cde65==null||_0x2cde65[_0x52eece(0x2d6)](),new Ve(_0xad7c3f[_0x52eece(0x456)]);_0x2cde65==null||_0x2cde65[_0x52eece(0x4b6)](),this[_0x52eece(0x3f3)](_0x2087a5),this[_0x52eece(0x3ca)](_0x2087a5),this['_transformUndoredo'](_0x551b9b),this[_0x52eece(0x495)](_0x2087a5),this['_syncEditingCollabCursor'](_0x2087a5),this['_incrementRevisionNumber']();}};let k=class extends O{constructor(_0x526a7c,_0x576622,_0x49e89e,_0x5347b5,_0x3df163,_0x96b77b,_0x57dc9b,_0x230e1d,_0x52c31b,_0x1260b5){const _0x438bea=_0x28bbb9;super(_0x526a7c,_0x576622,null,[],_0x49e89e,_0x57dc9b,_0x96b77b,_0x5347b5,_0x1260b5),this[_0x438bea(0x475)]=_0x3df163,this[_0x438bea(0x41e)]=_0x230e1d,this[_0x438bea(0x1f2)]=_0x52c31b,this[_0x438bea(0x28a)]=_0x1260b5,_(this,_0x438bea(0x290),_0x438bea(0x4e8));}['appendMutation'](_0x5ccd84){const _0x25f5b3=_0x28bbb9;let _0x351aa0=this[_0x25f5b3(0x475)]['createInstance'](A,this['unitID'],this['type'],[_0x5ccd84],this['_handler']);return _0x351aa0[_0x25f5b3(0x3d2)](),_0x351aa0[_0x25f5b3(0x2ac)](),_0x351aa0;}[_0x28bbb9(0x458)](_0x4f63e1){const _0x16bd97=_0x28bbb9;return this[_0x16bd97(0x2bc)](_0x4f63e1,{'onMissing':()=>this['_injector'][_0x16bd97(0x3e2)](F,this['unitID'],this['type'],null,[],null,[_0x4f63e1],this[_0x16bd97(0x2a8)],void 0x0),'onApply':()=>this['_transformAndApply'](_0x4f63e1),'onRemoteRevert':()=>this[_0x16bd97(0x1c0)](this[_0x16bd97(0x208)](_0x4f63e1))});}['_transformAndApply'](_0x558f79){const _0x138a1f=_0x28bbb9;try{let _0x1f287d=this[_0x138a1f(0x1f2)]['transformMutationsWithChangeset'](_0x558f79,[n[_0x138a1f(0x324)]]);if((0x0,n[_0x138a1f(0x4a7)])(_0x1f287d)){let {c1Prime:_0x4630ae}=_0x1f287d;return this[_0x138a1f(0x3c5)](_0x4630ae),this;}throw _0x1f287d[_0x138a1f(0x456)];}catch(_0xe26467){return this['_logService'][_0x138a1f(0x456)](_0xe26467),this['_onConflict'](this['_conflictInfoFromError'](_0xe26467));}}[_0x28bbb9(0x1c0)](_0x4a3238){const _0x168397=_0x28bbb9;return this[_0x168397(0x475)][_0x168397(0x3e2)](N,this[_0x168397(0x2e9)],this[_0x168397(0x538)],null,[],this[_0x168397(0x2a8)],_0x4a3238);}[_0x28bbb9(0x48f)](_0x1964a1){const _0x5e750f=_0x28bbb9;if(this[_0x5e750f(0x373)](_0x1964a1)==='stale')return this;throw Error(_0x5e750f(0x226));}[_0x28bbb9(0x4df)](){const _0x1eea3e=_0x28bbb9;throw Error(_0x1eea3e(0x385));}[_0x28bbb9(0x49f)](){return this;}[_0x28bbb9(0x27a)](){const _0xb2e0f3=_0x28bbb9;return this[_0xb2e0f3(0x475)][_0xb2e0f3(0x3e2)](P,this[_0xb2e0f3(0x2e9)],this['type'],null,[],this['_handler']);}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x462)](){const _0x153d95=_0x28bbb9;throw Error(_0x153d95(0x42f));}[_0x28bbb9(0x202)](){const _0xdbcd49=_0x28bbb9;let _0x4e49eb=this[_0xdbcd49(0x460)]['getCurrentRevOfUnit'](this[_0xdbcd49(0x2e9)]);return this['_handler']['onMissingChangesets']({'from':_0x4e49eb,'to':0x0}),this[_0xdbcd49(0x475)][_0xdbcd49(0x3e2)](F,this[_0xdbcd49(0x2e9)],this[_0xdbcd49(0x538)],null,[],null,[],this[_0xdbcd49(0x2a8)],void 0x0);}};k=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x5,r['IUndoRedoService']),y(0x6,r['ICommandService']),y(0x7,r[_0x28bbb9(0x369)]),y(0x8,n[_0x28bbb9(0x4fc)]),y(0x9,(0x0,r[_0x28bbb9(0x1cd)])(C))],k);let A=Re=class extends O{constructor(_0x427d55,_0x5d6fe6,_0x2a7e53,_0x2c78c0,_0x302ae3,_0xa5a2fc,_0x46f361,_0x57898b,_0x1b55fe,_0x4d4719,_0x1b0c8b,_0x2cece4,_0x512a12,_0x29e1b6){const _0x469d5d=_0x28bbb9;super(_0x427d55,_0x5d6fe6,null,_0x2a7e53,_0x2c78c0,_0x1b55fe,_0x512a12,_0xa5a2fc,_0x29e1b6),this[_0x469d5d(0x475)]=_0x302ae3,this['_userManagerService']=_0x46f361,this['_logService']=_0x57898b,this[_0x469d5d(0x2c8)]=_0x4d4719,this['_transformService']=_0x1b0c8b,this[_0x469d5d(0x4b7)]=_0x2cece4,_(this,_0x469d5d(0x290),_0x469d5d(0x432)),_(this,_0x469d5d(0x442),null),_(this,'_sendingTimer',null);}[_0x28bbb9(0x2b9)](_0x211a19){const _0x35fb5b=_0x28bbb9;return this[_0x35fb5b(0x4f8)][_0x35fb5b(0x4ec)](_0x211a19),this['_updateLocalCache'](),this;}[_0x28bbb9(0x458)](_0x4a7731){const _0x2d0f5c=_0x28bbb9;return this[_0x2d0f5c(0x2bc)](_0x4a7731,{'onMissing':()=>(this[_0x2d0f5c(0x54a)](),this[_0x2d0f5c(0x475)]['createInstance'](F,this[_0x2d0f5c(0x2e9)],this[_0x2d0f5c(0x538)],null,this[_0x2d0f5c(0x4f8)],null,[_0x4a7731],this['_handler'],void 0x0)),'onApply':()=>this['_transformAndApply'](_0x4a7731),'onRemoteRevert':()=>this[_0x2d0f5c(0x1c0)](this[_0x2d0f5c(0x208)](_0x4a7731))});}[_0x28bbb9(0x47f)](_0x1ee4cc){const _0x3d2c69=_0x28bbb9;try{let _0x5f247d=this[_0x3d2c69(0x1f2)][_0x3d2c69(0x541)](_0x1ee4cc,this[_0x3d2c69(0x4f8)]);if((0x0,n['isTransformMutationsWithChangesetSuccess'])(_0x5f247d)){let {c1Prime:_0xd7db23,m2Prime:_0x3fd5dc}=_0x5f247d;this[_0x3d2c69(0x3c5)](_0xd7db23);let _0x3733f1=this[_0x3d2c69(0x475)][_0x3d2c69(0x3e2)](Re,this['unitID'],this[_0x3d2c69(0x538)],_0x3fd5dc,this[_0x3d2c69(0x2a8)]);_0x3733f1[_0x3d2c69(0x2ac)](),this['_clearScheduledTask']();let _0x277771=new Date()[_0x3d2c69(0x402)](),_0x41d52a=this[_0x3d2c69(0x442)]?Math[_0x3d2c69(0x3fc)](this['_scheduleCompleteTimestamp']-_0x277771,0x0):this[_0x3d2c69(0x379)]();return _0x3733f1[_0x3d2c69(0x3d2)](_0x41d52a),_0x3733f1;}throw _0x5f247d['error'];}catch(_0x316a09){return this['_logService'][_0x3d2c69(0x456)](_0x316a09),this['_onConflict'](this[_0x3d2c69(0x4c5)](_0x316a09));}}[_0x28bbb9(0x48f)](_0x5d18b8){const _0x179854=_0x28bbb9;if(this[_0x179854(0x373)](_0x5d18b8)==='stale')return this;throw Error(_0x179854(0x20d));}['onRemoteRej'](){const _0x178853=_0x28bbb9;throw Error(_0x178853(0x37b));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x301647=_0x28bbb9;return this[_0x301647(0x54a)](),this[_0x301647(0x475)]['createInstance'](P,this['unitID'],this[_0x301647(0x538)],null,this[_0x301647(0x4f8)],this[_0x301647(0x2a8)]);}['toggleOnline'](){return this;}[_0x28bbb9(0x3d2)](_0xc686bc){const _0x4603c5=_0x28bbb9;let _0x592302=_0xc686bc??this[_0x4603c5(0x379)]();this['_scheduleCompleteTimestamp']=new Date()[_0x4603c5(0x402)]()+_0x592302,this[_0x4603c5(0x2c9)]=setTimeout(()=>{const _0x439b4f=_0x4603c5;this[_0x439b4f(0x54a)]();let _0x15dbb0=null;switch(this[_0x439b4f(0x538)]){case r[_0x439b4f(0x24b)]['UNIVER_SHEET']:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r['UniverInstanceType']['UNIVER_DOC']:_0x15dbb0=this[_0x439b4f(0x4f8)]['every'](_0x632e86=>_0x632e86['id']===i[_0x439b4f(0x4d7)]['id'])?ke(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this['_userManagerService']):E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x405)]:_0x15dbb0=Oe(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this['_univerInstanceService'],this['_revisionService'],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x367)]:_0x15dbb0=De(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x449)]:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x3bb)]:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this['_revisionService'],this[_0x439b4f(0x433)]);break;default:throw Error(_0x439b4f(0x1f6)+this[_0x439b4f(0x538)]+_0x439b4f(0x30c));}let {changeset:_0x341044,pendingMutations:_0x33f476}=_0x15dbb0,_0x15e6cb=this[_0x439b4f(0x478)](_0x341044);_0x15e6cb[_0x439b4f(0x1c1)](_0x341044,_0x341044[_0x439b4f(0x220)][_0x439b4f(0x47a)]+_0x33f476[_0x439b4f(0x47a)]);let _0x347e4e=_0x33f476['length']?this[_0x439b4f(0x475)][_0x439b4f(0x3e2)](M,this[_0x439b4f(0x2e9)],this[_0x439b4f(0x538)],_0x341044,_0x33f476,this[_0x439b4f(0x2a8)],_0x15e6cb):this[_0x439b4f(0x475)][_0x439b4f(0x3e2)](j,this[_0x439b4f(0x2e9)],this[_0x439b4f(0x538)],_0x341044,this['_handler'],_0x15e6cb);_0x347e4e['_updateLocalCache'](),this['_handler'][_0x439b4f(0x20c)](this,_0x347e4e);},_0x592302);}[_0x28bbb9(0x379)](){const _0x4d7231=_0x28bbb9;let _0x31bb7d=this['_configService'][_0x4d7231(0x230)](m);return(_0x31bb7d==null?void 0x0:_0x31bb7d[_0x4d7231(0x306)])??0x7d0;}[_0x28bbb9(0x462)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x28bbb9(0x54a)](){const _0x7023c5=_0x28bbb9;this[_0x7023c5(0x2c9)]!=null&&(clearTimeout(this[_0x7023c5(0x2c9)]),this['_sendingTimer']=null);}['dispose'](){this['_clearScheduledTask']();}[_0x28bbb9(0x1c0)](_0x618426){const _0x38ac6f=_0x28bbb9;return this[_0x38ac6f(0x54a)](),this['_injector'][_0x38ac6f(0x3e2)](N,this[_0x38ac6f(0x2e9)],this[_0x38ac6f(0x538)],null,this[_0x38ac6f(0x4f8)],this['_handler'],_0x618426);}};A=Re=b([y(0x4,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x6,(0x0,r['Inject'])(r[_0x28bbb9(0x42e)])),y(0x7,r[_0x28bbb9(0x369)]),y(0x8,r['ICommandService']),y(0x9,r[_0x28bbb9(0x421)]),y(0xa,n[_0x28bbb9(0x4fc)]),y(0xb,r['IUniverInstanceService']),y(0xc,r['IUndoRedoService']),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],A);let j=ze=class extends O{constructor(_0x51d913,_0x44f327,_0x3d874d,_0x503792,_0x4ac092,_0x3802d9,_0x2c5040,_0x2c2a18,_0xf012c2,_0x4c2b23,_0x4b1150,_0x3ecb36){const _0x432333=_0x28bbb9;super(_0x51d913,_0x44f327,_0x3d874d,[],_0x503792,_0x2c2a18,_0x4b1150,_0x2c5040,_0x3ecb36),this[_0x432333(0x475)]=_0x3802d9,this[_0x432333(0x41e)]=_0xf012c2,this[_0x432333(0x1f2)]=_0x4c2b23,_(this,_0x432333(0x290),_0x432333(0x35e)),_(this,_0x432333(0x455),void 0x0),this[_0x432333(0x455)]=_0x4ac092??this[_0x432333(0x478)](_0x3d874d),this[_0x432333(0x455)][_0x432333(0x260)](()=>({'changeset':this[_0x432333(0x524)],'unsyncedMutationCount':this[_0x432333(0x4b2)]()})),_0x4ac092||this['_submitter'][_0x432333(0x25e)]();}[_0x28bbb9(0x2b9)](_0x23f6f5){const _0x11b43a=_0x28bbb9;this[_0x11b43a(0x375)]();let _0x5eaaf4=this[_0x11b43a(0x475)][_0x11b43a(0x3e2)](M,this[_0x11b43a(0x2e9)],this[_0x11b43a(0x538)],this['_awaitingChangeset'],[_0x23f6f5],this[_0x11b43a(0x2a8)],this['_submitter']);return _0x5eaaf4['_updateLocalCache'](),_0x5eaaf4;}[_0x28bbb9(0x458)](_0x394f60){const _0x54f0dc=_0x28bbb9;return this[_0x54f0dc(0x2bc)](_0x394f60,{'onMissing':()=>(this['_detachSubmitter'](),this[_0x54f0dc(0x475)]['createInstance'](F,this[_0x54f0dc(0x2e9)],this[_0x54f0dc(0x538)],this[_0x54f0dc(0x524)],[],null,[_0x394f60],this[_0x54f0dc(0x2a8)],this[_0x54f0dc(0x455)])),'onApply':()=>this['_transformAndApply'](_0x394f60),'onRemoteRevert':()=>this[_0x54f0dc(0x1c0)](this['_remoteRevertInfo'](_0x394f60))});}[_0x28bbb9(0x47f)](_0x1f9753){const _0x450247=_0x28bbb9;try{let _0x15aa77=this[_0x450247(0x1f2)]['transformChangesets']([_0x1f9753],[this[_0x450247(0x524)]],!0x1);if((0x0,n[_0x450247(0x55e)])(_0x15aa77)){let {c1Prime:_0x318060,c2Prime:_0x287a2b}=_0x15aa77;this[_0x450247(0x3c5)](_0x318060[0x0]),_0x287a2b[0x0]['baseRev']=this[_0x450247(0x2b6)](),this[_0x450247(0x375)]();let _0x508479=this[_0x450247(0x475)][_0x450247(0x3e2)](ze,this[_0x450247(0x2e9)],this['type'],_0x287a2b[0x0],this[_0x450247(0x2a8)],this[_0x450247(0x455)]);return _0x508479[_0x450247(0x2ac)](),_0x508479;}throw _0x15aa77[_0x450247(0x456)];}catch(_0x4cec7f){return this[_0x450247(0x41e)][_0x450247(0x456)](_0x4cec7f),this['_onConflict'](this[_0x450247(0x4c5)](_0x4cec7f));}}['onRemoteAck'](_0x1ea40e){const _0x1cd3a1=_0x28bbb9;switch(this[_0x1cd3a1(0x373)](_0x1ea40e)){case _0x1cd3a1(0x338):return this[_0x1cd3a1(0x41e)][_0x1cd3a1(0x2ba)]('[AwaitingState]',_0x1cd3a1(0x1cc)+_0x1ea40e[_0x1cd3a1(0x27c)]+_0x1cd3a1(0x561)+this[_0x1cd3a1(0x2b6)]()+'.'),this;case _0x1cd3a1(0x497):return this['_submitter'][_0x1cd3a1(0x3ac)](),this[_0x1cd3a1(0x4fd)]();case _0x1cd3a1(0x518):return this[_0x1cd3a1(0x455)][_0x1cd3a1(0x3ac)](),this[_0x1cd3a1(0x429)](_0x1ea40e[_0x1cd3a1(0x27c)]),this[_0x1cd3a1(0x475)][_0x1cd3a1(0x3e2)](F,this[_0x1cd3a1(0x2e9)],this[_0x1cd3a1(0x538)],this[_0x1cd3a1(0x524)],[],_0x1ea40e['revision'],[],this[_0x1cd3a1(0x2a8)],void 0x0);case'next':return this['_submitter'][_0x1cd3a1(0x3ac)](),this['_incrementRevisionNumber'](),this[_0x1cd3a1(0x4fd)]();}}[_0x28bbb9(0x4fd)](){const _0x19ebc1=_0x28bbb9;let _0x45bc4e=this['_injector']['createInstance'](k,this[_0x19ebc1(0x2e9)],this['type'],this[_0x19ebc1(0x2a8)]);return _0x45bc4e[_0x19ebc1(0x2ac)](),_0x45bc4e;}['onRemoteRej'](_0x5d1b73){const _0x4bbf41=_0x28bbb9;return this[_0x4bbf41(0x1c0)](this['_rejectionInfo'](_0x5d1b73));}[_0x28bbb9(0x49f)](_0x42dba6){const _0x5bd0eb=_0x28bbb9;var _0x63c731;return _0x42dba6[_0x5bd0eb(0x4cd)]===((_0x63c731=this[_0x5bd0eb(0x524)])==null?void 0x0:_0x63c731[_0x5bd0eb(0x4cd)])&&this[_0x5bd0eb(0x455)][_0x5bd0eb(0x34d)](),this;}[_0x28bbb9(0x27a)](){const _0x542bc8=_0x28bbb9;return this['_submitter'][_0x542bc8(0x3ac)](),this['_injector'][_0x542bc8(0x3e2)](P,this['unitID'],this[_0x542bc8(0x538)],this['_awaitingChangeset'],[],this[_0x542bc8(0x2a8)]);}[_0x28bbb9(0x2e4)](){return this;}['resend'](_0x514999=_0x28bbb9(0x4d8)){const _0x565232=_0x28bbb9;this[_0x565232(0x455)][_0x565232(0x1c1)](this[_0x565232(0x524)],this[_0x565232(0x4b2)](),_0x514999);}[_0x28bbb9(0x1c0)](_0x25e9f1){const _0x37d05f=_0x28bbb9;return this[_0x37d05f(0x455)][_0x37d05f(0x3ac)](),this['_injector'][_0x37d05f(0x3e2)](N,this[_0x37d05f(0x2e9)],this[_0x37d05f(0x538)],this[_0x37d05f(0x524)],[],this[_0x37d05f(0x2a8)],_0x25e9f1);}[_0x28bbb9(0x3ac)](){const _0x11ccbb=_0x28bbb9;this['_submitter'][_0x11ccbb(0x3ac)]();}[_0x28bbb9(0x375)](){const _0x6cc1d5=_0x28bbb9;this[_0x6cc1d5(0x455)][_0x6cc1d5(0x3ef)]();}};j=ze=b([y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r['ILogService']),y(0x9,n[_0x28bbb9(0x4fc)]),y(0xa,r['IUndoRedoService']),y(0xb,(0x0,r['Optional'])(C))],j);let M=Be=class extends O{constructor(_0x286811,_0x29fa0c,_0x5473f5,_0x33d931,_0x312750,_0x1dfe05,_0x357794,_0x44d6c0,_0x8cd02f,_0xe55954,_0xb94652,_0xc745d7,_0xe098b9){const _0x3bbcfa=_0x28bbb9;super(_0x286811,_0x29fa0c,_0x5473f5,_0x33d931,_0x312750,_0x8cd02f,_0xc745d7,_0x44d6c0,_0xe098b9),this[_0x3bbcfa(0x475)]=_0x357794,this['_logService']=_0xe55954,this[_0x3bbcfa(0x1f2)]=_0xb94652,this['localCacheService']=_0xe098b9,_(this,_0x3bbcfa(0x290),_0x3bbcfa(0x472)),_(this,_0x3bbcfa(0x455),void 0x0),this[_0x3bbcfa(0x455)]=_0x1dfe05??this[_0x3bbcfa(0x478)](_0x5473f5),this[_0x3bbcfa(0x455)][_0x3bbcfa(0x260)](()=>({'changeset':this[_0x3bbcfa(0x524)],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x1dfe05||this[_0x3bbcfa(0x455)]['armAckTimeout']();}[_0x28bbb9(0x2b9)](_0x563aad){const _0x2a869a=_0x28bbb9;return this[_0x2a869a(0x4f8)][_0x2a869a(0x4ec)](_0x563aad),this['_updateLocalCache'](),this;}[_0x28bbb9(0x458)](_0x25d26f){const _0x452204=_0x28bbb9;return this[_0x452204(0x2bc)](_0x25d26f,{'onMissing':()=>(this[_0x452204(0x375)](),this['_injector'][_0x452204(0x3e2)](F,this[_0x452204(0x2e9)],this[_0x452204(0x538)],this[_0x452204(0x524)],this[_0x452204(0x4f8)],null,[_0x25d26f],this[_0x452204(0x2a8)],this['_submitter'])),'onApply':()=>this['_transformAndApply'](_0x25d26f),'onRemoteRevert':()=>this[_0x452204(0x1c0)](this[_0x452204(0x208)](_0x25d26f))});}[_0x28bbb9(0x47f)](_0x42a231){const _0x4c9b70=_0x28bbb9;try{let _0x3bdc25=this['_transformService']['transformChangesets']([_0x42a231],[this[_0x4c9b70(0x524)]],!0x1);if((0x0,n[_0x4c9b70(0x55e)])(_0x3bdc25)){let {c1Prime:_0x1ecc76,c2Prime:_0x56b8d2}=_0x3bdc25,_0x22fe67=this[_0x4c9b70(0x1f2)][_0x4c9b70(0x541)](_0x1ecc76[0x0],this[_0x4c9b70(0x4f8)]);if((0x0,n[_0x4c9b70(0x4a7)])(_0x22fe67)){let {c1Prime:_0x226004,m2Prime:_0x4c0a17}=_0x22fe67;this[_0x4c9b70(0x3c5)](_0x226004),_0x56b8d2[0x0][_0x4c9b70(0x3a5)]=this[_0x4c9b70(0x2b6)](),this[_0x4c9b70(0x375)]();let _0x4f8d27=this[_0x4c9b70(0x475)][_0x4c9b70(0x3e2)](Be,this[_0x4c9b70(0x2e9)],this[_0x4c9b70(0x538)],_0x56b8d2[0x0],_0x4c0a17,this['_handler'],this['_submitter']);return _0x4f8d27[_0x4c9b70(0x2ac)](),_0x4f8d27;}throw _0x22fe67[_0x4c9b70(0x456)];}throw _0x3bdc25[_0x4c9b70(0x456)];}catch(_0x1f8469){return this['_logService'][_0x4c9b70(0x456)](_0x1f8469),this['_onConflict'](this[_0x4c9b70(0x4c5)](_0x1f8469));}}[_0x28bbb9(0x48f)](_0x4ead12){const _0x3d2474=_0x28bbb9;switch(this[_0x3d2474(0x373)](_0x4ead12)){case _0x3d2474(0x338):return this[_0x3d2474(0x41e)][_0x3d2474(0x2ba)]('[AwaitingWithPendingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x4ead12[_0x3d2474(0x27c)]+'\x20at\x20revision\x20'+this[_0x3d2474(0x2b6)]()+'.'),this;case _0x3d2474(0x497):return this[_0x3d2474(0x455)][_0x3d2474(0x3ac)](),this[_0x3d2474(0x347)]();case _0x3d2474(0x518):return this[_0x3d2474(0x455)][_0x3d2474(0x3ac)](),this[_0x3d2474(0x429)](_0x4ead12[_0x3d2474(0x27c)]),this[_0x3d2474(0x475)]['createInstance'](F,this[_0x3d2474(0x2e9)],this[_0x3d2474(0x538)],this[_0x3d2474(0x524)],this['_pendingMutations'],_0x4ead12['revision'],[],this[_0x3d2474(0x2a8)],void 0x0);case _0x3d2474(0x512):return this[_0x3d2474(0x455)]['dispose'](),this['_incrementRevisionNumber'](),this[_0x3d2474(0x347)]();}}[_0x28bbb9(0x347)](){const _0x335efb=_0x28bbb9;let _0x316270=this[_0x335efb(0x475)][_0x335efb(0x3e2)](A,this['unitID'],this[_0x335efb(0x538)],this[_0x335efb(0x4f8)],this[_0x335efb(0x2a8)]);return _0x316270[_0x335efb(0x3d2)](),_0x316270[_0x335efb(0x2ac)](),_0x316270;}[_0x28bbb9(0x4df)](_0x54b292){const _0x7fd001=_0x28bbb9;return this[_0x7fd001(0x1c0)](this[_0x7fd001(0x37a)](_0x54b292));}[_0x28bbb9(0x49f)](_0x304313){const _0xce9ba=_0x28bbb9;var _0x242ee8;return _0x304313[_0xce9ba(0x4cd)]===((_0x242ee8=this[_0xce9ba(0x524)])==null?void 0x0:_0x242ee8[_0xce9ba(0x4cd)])&&this[_0xce9ba(0x455)][_0xce9ba(0x34d)](),this;}[_0x28bbb9(0x27a)](){const _0x285743=_0x28bbb9;return this[_0x285743(0x455)]['dispose'](),this[_0x285743(0x475)][_0x285743(0x3e2)](P,this['unitID'],this[_0x285743(0x538)],this[_0x285743(0x524)],this['_pendingMutations'],this[_0x285743(0x2a8)]);}['toggleOnline'](){return this;}['resend'](_0x386f0f=_0x28bbb9(0x4d8)){const _0xfb8486=_0x28bbb9;this['_submitter'][_0xfb8486(0x1c1)](this['_awaitingChangeset'],this[_0xfb8486(0x4b2)](),_0x386f0f);}[_0x28bbb9(0x1c0)](_0x5240d8){const _0x4629bb=_0x28bbb9;return this[_0x4629bb(0x455)][_0x4629bb(0x3ac)](),this[_0x4629bb(0x475)][_0x4629bb(0x3e2)](N,this[_0x4629bb(0x2e9)],this['type'],this[_0x4629bb(0x524)],this[_0x4629bb(0x4f8)],this[_0x4629bb(0x2a8)],_0x5240d8);}[_0x28bbb9(0x3ac)](){const _0xbf9dff=_0x28bbb9;this[_0xbf9dff(0x455)][_0xbf9dff(0x3ac)]();}['_detachSubmitter'](){const _0x4ca758=_0x28bbb9;this[_0x4ca758(0x455)]['unbind']();}};M=Be=b([y(0x6,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x8,r['ICommandService']),y(0x9,r['ILogService']),y(0xa,n[_0x28bbb9(0x4fc)]),y(0xb,r['IUndoRedoService']),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(C))],M);let N=class extends O{constructor(_0x4c3f5f,_0x3a894f,_0x508978,_0x20bfcf,_0x54c62f,_0x2b5f80,_0x2d7218,_0x20c26e,_0xaad8fe,_0xbdc42e,_0x2b216d,_0x2253d8,_0x26cb95,_0x12b021){const _0x1e64f6=_0x28bbb9;var _0x2bb17e;super(_0x4c3f5f,_0x3a894f,_0x508978,_0x20bfcf,_0x54c62f,_0x20c26e,_0xaad8fe,_0xbdc42e,_0x12b021),this['info']=_0x2b5f80,this[_0x1e64f6(0x370)]=_0x2d7218,this[_0x1e64f6(0x433)]=_0x2b216d,this[_0x1e64f6(0x41e)]=_0x2253d8,this[_0x1e64f6(0x3b5)]=_0x26cb95,this[_0x1e64f6(0x28a)]=_0x12b021,_(this,'status','conflict'),_(this,_0x1e64f6(0x4ac),void 0x0);let _0x1989f0=((_0x2bb17e=this[_0x1e64f6(0x433)][_0x1e64f6(0x1f5)]())==null?void 0x0:_0x2bb17e['userID'])??'';this[_0x1e64f6(0x4ac)]=_0x508978||_0x20bfcf[_0x1e64f6(0x47a)]?{'unitID':_0x4c3f5f,'userId':_0x1989f0||void 0x0,'type':_0x3a894f,'rev':this['_getCurrentRevision'](),'awaitingChangeset':_0x508978,'mutations':_0x20bfcf}:null,this[_0x1e64f6(0x39d)](),this[_0x1e64f6(0x550)](),this[_0x1e64f6(0x3e6)](_0x1989f0)[_0x1e64f6(0x4a4)](_0x1b78e3=>this[_0x1e64f6(0x41e)][_0x1e64f6(0x456)](_0x1b78e3));}async[_0x28bbb9(0x3e6)](_0x3230e2){const _0x425032=_0x28bbb9;var _0x2b6dc2,_0x9cde12,_0x1b3cf5,_0x2a450a;await((_0x2b6dc2=this[_0x425032(0x4a5)])==null||(_0x9cde12=_0x2b6dc2['backupOfflineData'])==null?void 0x0:_0x9cde12['call'](_0x2b6dc2,this[_0x425032(0x2e9)],this[_0x425032(0x520)][_0x425032(0x489)],_0x3230e2)['catch'](()=>void 0x0));let _0x222edb=!0x0;try{var _0x59c548;await((_0x59c548=this[_0x425032(0x4a5)])==null?void 0x0:_0x59c548['clearOfflineData'](this[_0x425032(0x2e9)],_0x3230e2));}catch{_0x222edb=!0x1,this[_0x425032(0x3b5)][_0x425032(0x40c)]({'id':_0x425032(0x503),'unitID':this['unitID'],'userId':_0x3230e2});}(_0x1b3cf5=(_0x2a450a=this[_0x425032(0x2a8)])[_0x425032(0x248)])==null||_0x1b3cf5['call'](_0x2a450a,this[_0x425032(0x520)],this['localChanges'],_0x222edb);}[_0x28bbb9(0x2b9)](){return this;}[_0x28bbb9(0x458)](){return this;}['onRemoteAck'](){return this;}[_0x28bbb9(0x4df)](){return this;}['onRemoteRetry'](){return this;}[_0x28bbb9(0x27a)](){return this;}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x462)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_showConflictProcessingNotification'](){const _0x284cf4=_0x28bbb9;this[_0x284cf4(0x3b5)][_0x284cf4(0x40c)]({'id':'CONFLICT_PROCESSING','unitID':this[_0x284cf4(0x2e9)]});}[_0x28bbb9(0x39d)](){const _0x1a5844=_0x28bbb9;this[_0x1a5844(0x370)][_0x1a5844(0x3cc)](new a[(_0x1a5844(0x371))](this[_0x1a5844(0x2e9)])['id'],!0x1);}};N=b([y(0x6,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x427)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r[_0x28bbb9(0x493)]),y(0x9,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0xa,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x42e)])),y(0xb,r[_0x28bbb9(0x369)]),y(0xc,(0x0,r[_0x28bbb9(0x431)])(v)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],N);let P=class extends O{constructor(_0x1fc119,_0x160ffa,_0x5d3a05,_0x25616b,_0x2de8e8,_0x4cc16d,_0x12e180,_0x111b6a,_0x1d3d10,_0x42adde,_0x3aecb2){const _0x1888a2=_0x28bbb9;super(_0x1fc119,_0x160ffa,_0x5d3a05,_0x25616b,_0x2de8e8,_0x111b6a,_0x1d3d10,_0x12e180,_0x3aecb2),this[_0x1888a2(0x475)]=_0x4cc16d,this[_0x1888a2(0x41e)]=_0x42adde,_(this,_0x1888a2(0x290),_0x1888a2(0x203));}[_0x28bbb9(0x2b9)](_0x411c0e){const _0x324915=_0x28bbb9;return this['_pendingMutations']['push'](_0x411c0e),this[_0x324915(0x2ac)](),this;}[_0x28bbb9(0x458)](_0x59ae22){const _0x5420b1=_0x28bbb9;return this[_0x5420b1(0x41e)][_0x5420b1(0x2ba)]('[OfflineState]',_0x5420b1(0x3c6)+_0x59ae22[_0x5420b1(0x27c)]+'.'),this;}['onRemoteAck'](_0x1f11ee){const _0x48d50c=_0x28bbb9;return this[_0x48d50c(0x41e)][_0x48d50c(0x2ba)](_0x48d50c(0x47c),_0x48d50c(0x2e2)+_0x1f11ee[_0x48d50c(0x27c)]+'.'),this;}[_0x28bbb9(0x4df)](){const _0x417452=_0x28bbb9;return this[_0x417452(0x41e)][_0x417452(0x2ba)](_0x417452(0x47c),'ignored\x20rejection.'),this;}['onRemoteRetry'](){return this;}[_0x28bbb9(0x27a)](){return this;}[_0x28bbb9(0x2e4)](){const _0x5d1a25=_0x28bbb9;let {_injector:_0x3c8f76,_pendingMutations:_0x4f8098,_awaitingChangeset:_0x53e2f7,unitID:_0x222b80,_handler:_0xd7b2fd,type:_0x544c45}=this,_0x1cff36=We(_0x3c8f76,_0x222b80,_0x544c45,_0x53e2f7,_0x4f8098,_0xd7b2fd);return _0x1cff36 instanceof A?_0x1cff36[_0x5d1a25(0x3d2)]():(_0x1cff36 instanceof M||_0x1cff36 instanceof j)&&_0x1cff36[_0x5d1a25(0x462)](),_0x1cff36;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};P=b([y(0x5,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x6,(0x0,r['Inject'])(n[_0x28bbb9(0x49e)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r[_0x28bbb9(0x493)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,(0x0,r[_0x28bbb9(0x1cd)])(C))],P);let F=class extends O{constructor(_0x5428ba,_0x4ec649,_0x5a19d4,_0x500cfe,_0x17ff7e,_0x271b46,_0x4152c0,_0x300c7c,_0x9706cd,_0x4ad3ba,_0x10e3f5,_0x283de0,_0x4a150f,_0x3bf167,_0x1c3b93){const _0x3d1e86=_0x28bbb9;super(_0x5428ba,_0x4ec649,_0x5a19d4,_0x500cfe,_0x4152c0,_0x283de0,_0x4a150f,_0x4ad3ba,_0x1c3b93),this[_0x3d1e86(0x21b)]=_0x17ff7e,this[_0x3d1e86(0x392)]=_0x271b46,this[_0x3d1e86(0x455)]=_0x300c7c,this[_0x3d1e86(0x475)]=_0x9706cd,this['_logService']=_0x10e3f5,this[_0x3d1e86(0x1f2)]=_0x3bf167,this[_0x3d1e86(0x28a)]=_0x1c3b93,_(this,'status',_0x3d1e86(0x48c));}[_0x28bbb9(0x4f6)](_0x1c378e){const _0x11f103=_0x28bbb9;try{if(this[_0x11f103(0x406)](_0x1c378e)['missingChangesets'])throw Error(_0x11f103(0x293));if(this[_0x11f103(0x406)]([...this[_0x11f103(0x392)]][_0x11f103(0x26b)]((_0x56fdba,_0xb49833)=>_0x56fdba[_0x11f103(0x27c)]-_0xb49833[_0x11f103(0x27c)]))[_0x11f103(0x366)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x11f103(0x2a8)][_0x11f103(0x241)]({'from':this[_0x11f103(0x2b6)](),'to':0x0}),this;let _0x52ebd0=this[_0x11f103(0x524)],_0x42c3ce=this['_pendingMutations'],_0x121c64;if(_0x52ebd0&&_0x42c3ce[_0x11f103(0x47a)]!==0x0)_0x121c64=this['_injector'][_0x11f103(0x3e2)](M,this['unitID'],this[_0x11f103(0x538)],_0x52ebd0,_0x42c3ce,this[_0x11f103(0x2a8)],this[_0x11f103(0x455)]);else{if(_0x52ebd0&&_0x42c3ce['length']===0x0)_0x52ebd0['baseRev']=this[_0x11f103(0x2b6)](),_0x121c64=this[_0x11f103(0x475)][_0x11f103(0x3e2)](j,this[_0x11f103(0x2e9)],this[_0x11f103(0x538)],_0x52ebd0,this[_0x11f103(0x2a8)],this[_0x11f103(0x455)]);else{if(_0x42c3ce[_0x11f103(0x47a)]!==0x0){let _0x30e805=this[_0x11f103(0x475)]['createInstance'](A,this['unitID'],this[_0x11f103(0x538)],_0x42c3ce,this[_0x11f103(0x2a8)]);_0x30e805['_schedule'](),_0x121c64=_0x30e805;}else _0x121c64=this[_0x11f103(0x475)][_0x11f103(0x3e2)](k,this[_0x11f103(0x2e9)],this[_0x11f103(0x538)],this[_0x11f103(0x2a8)]);}}return _0x121c64[_0x11f103(0x2ac)](),_0x121c64;}catch(_0x36f16f){return _0x36f16f instanceof He?(this['_logService'][_0x11f103(0x2ba)]('[FetchMissState]',_0x36f16f[_0x11f103(0x34c)]),this[_0x11f103(0x1c0)](_0x36f16f[_0x11f103(0x520)])):(this['_logService'][_0x11f103(0x456)](_0x11f103(0x479),'failed\x20to\x20apply\x20missed\x20changesets!',_0x36f16f),this[_0x11f103(0x1c0)](this[_0x11f103(0x4c5)](_0x36f16f)));}}['_handleRemoteChangesets'](_0x5b95ab){const _0x54ef7e=_0x28bbb9;this['_acknowledgeAwaitingIfReady']();for(let _0x1dc71b=0x0;_0x1dc71b<_0x5b95ab[_0x54ef7e(0x47a)];_0x1dc71b++){let _0x42d67f=_0x5b95ab[_0x1dc71b];switch(this['_classifyRemoteChangeset'](_0x42d67f)){case'echo':{let _0x30376c=this['_getCurrentRevision']();if(_0x42d67f[_0x54ef7e(0x27c)]>_0x30376c+0x1)return{'missingChangesets':!0x0};_0x42d67f[_0x54ef7e(0x27c)]<=_0x30376c?this[_0x54ef7e(0x40f)]():this['_acknowledgeAwaiting']();break;}case _0x54ef7e(0x318):throw new He(this[_0x54ef7e(0x208)](_0x42d67f));case _0x54ef7e(0x363):break;case'missing':return{'missingChangesets':!0x0};case _0x54ef7e(0x1ea):this[_0x54ef7e(0x44b)](_0x42d67f),this[_0x54ef7e(0x3b3)]();}}return{'missingChangesets':!0x1};}[_0x28bbb9(0x44b)](_0x2fd23d){const _0x3320aa=_0x28bbb9;let _0x1b1b4a=_0x2fd23d,_0x227b7f=this[_0x3320aa(0x524)];if(_0x227b7f){let _0x46b3a8=this[_0x3320aa(0x1f2)][_0x3320aa(0x515)]([_0x2fd23d],[_0x227b7f],!0x1);if(!(0x0,n[_0x3320aa(0x55e)])(_0x46b3a8))throw _0x46b3a8['error'];_0x1b1b4a=_0x46b3a8[_0x3320aa(0x310)][0x0],_0x227b7f=_0x46b3a8[_0x3320aa(0x254)][0x0];}let _0x4fb769=this[_0x3320aa(0x4f8)];if(_0x4fb769[_0x3320aa(0x47a)]){let _0x478396=this[_0x3320aa(0x1f2)][_0x3320aa(0x541)](_0x1b1b4a,_0x4fb769);if(!(0x0,n[_0x3320aa(0x4a7)])(_0x478396))throw _0x478396['error'];_0x1b1b4a=_0x478396[_0x3320aa(0x310)],_0x4fb769=_0x478396[_0x3320aa(0x3bd)];}this[_0x3320aa(0x3c5)](_0x1b1b4a),_0x227b7f&&(_0x227b7f['baseRev']=this[_0x3320aa(0x2b6)]()),this['_awaitingChangeset']=_0x227b7f,this['_pendingMutations']=_0x4fb769;}['_acknowledgeAwaitingIfReady'](){const _0xc52883=_0x28bbb9;if(!this[_0xc52883(0x524)]||this['_acknowledgedAwaitingRevision']==null)return;let _0xefeddc=this['_getCurrentRevision']();if(this[_0xc52883(0x21b)]<=_0xefeddc)throw Error(_0xc52883(0x4a9)+this['_acknowledgedAwaitingRevision']+'.');this[_0xc52883(0x21b)]===_0xefeddc+0x1&&this[_0xc52883(0x35d)]();}[_0x28bbb9(0x35d)](){const _0x2c679e=_0x28bbb9;this['_incrementRevisionNumber'](),this[_0x2c679e(0x40f)]();}[_0x28bbb9(0x40f)](){const _0x53d614=_0x28bbb9;this[_0x53d614(0x524)]=null,this['_acknowledgedAwaitingRevision']=null,this[_0x53d614(0x42d)]();}['_disposeSubmitter'](){const _0x70cbdc=_0x28bbb9;var _0x35bc27;(_0x35bc27=this[_0x70cbdc(0x455)])==null||_0x35bc27[_0x70cbdc(0x3ac)](),this['_submitter']=void 0x0;}['dispose'](){const _0x4e0289=_0x28bbb9;this[_0x4e0289(0x42d)]();}[_0x28bbb9(0x462)](){const _0x31cd2d=_0x28bbb9;throw Error(_0x31cd2d(0x3a9));}[_0x28bbb9(0x2b9)](_0x34b04a){const _0x59f29a=_0x28bbb9;return this[_0x59f29a(0x4f8)]['push'](_0x34b04a),this[_0x59f29a(0x2ac)](),this;}[_0x28bbb9(0x458)](_0x25c986){const _0x171f0f=_0x28bbb9;return this[_0x171f0f(0x392)][_0x171f0f(0x4ec)](_0x25c986),this;}[_0x28bbb9(0x48f)](_0x1cb8fd){const _0x4013e4=_0x28bbb9;let _0x501c90=this['_classifyAck'](_0x1cb8fd);if(this[_0x4013e4(0x524)]){switch(_0x501c90){case'ack_of_awaiting':this[_0x4013e4(0x40f)]();break;case'stale':break;case _0x4013e4(0x512):this[_0x4013e4(0x35d)]();break;case _0x4013e4(0x518):this[_0x4013e4(0x21b)]=_0x1cb8fd[_0x4013e4(0x27c)],this['_disposeSubmitter']();}return this;}if(_0x501c90==='stale')return this;throw Error(_0x4013e4(0x4a1));}[_0x28bbb9(0x4df)](_0x1cf335){const _0x174bf2=_0x28bbb9;return this[_0x174bf2(0x1c0)](this['_rejectionInfo'](_0x1cf335));}[_0x28bbb9(0x49f)](_0x57f361){const _0x4000d9=_0x28bbb9;var _0x325d50;return this[_0x4000d9(0x21b)]!=null||_0x57f361[_0x4000d9(0x4cd)]!==((_0x325d50=this[_0x4000d9(0x524)])==null?void 0x0:_0x325d50[_0x4000d9(0x4cd)])||(this[_0x4000d9(0x455)]??=this['_createChangesetSubmitter'](this[_0x4000d9(0x524)]),this[_0x4000d9(0x455)][_0x4000d9(0x34d)]()),this;}[_0x28bbb9(0x27a)](){const _0x5a1718=_0x28bbb9;return this[_0x5a1718(0x42d)](),this[_0x5a1718(0x475)]['createInstance'](P,this[_0x5a1718(0x2e9)],this[_0x5a1718(0x538)],this[_0x5a1718(0x524)],this[_0x5a1718(0x4f8)],this[_0x5a1718(0x2a8)]);}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x1c0)](_0x4883b9){const _0x16ef32=_0x28bbb9;return this[_0x16ef32(0x42d)](),this[_0x16ef32(0x475)][_0x16ef32(0x3e2)](N,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x16ef32(0x4f8)],this[_0x16ef32(0x2a8)],_0x4883b9);}};F=b([y(0x8,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x9,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0xa,r[_0x28bbb9(0x369)]),y(0xb,r[_0x28bbb9(0x382)]),y(0xc,r['IUndoRedoService']),y(0xd,n[_0x28bbb9(0x4fc)]),y(0xe,(0x0,r[_0x28bbb9(0x1cd)])(C))],F);function _0x1757(){const _0x10b0f4=['forEach','confirm','deleteCollaborator','liveShareOperation','_refreshUnitPermission','_clearRedo','unbind','getLatestCsReqIdBySid','liveShareNewHost','getOwnPropertyDescriptor','_transformIMECache','allowed','sessionStatus$','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_hasSessionsForEndpoint','from','subUnitId','message$','maxSize','max','LIVESHARE_OPERATION','createSocket','HTTPService','univer-pro.collaboration-client-socket-service','_upload','getTime','_waitForHeartbeatResponse','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','UNIVER_SLIDE','_handleRemoteChangesets','toRemote','/-/object/list','_createInitialState','[DataLoaderService]','hasLocalChanges','emitEvent','refreshPermission','putCollaborators','_dropAcknowledgedAwaiting','Slide','/universer-api/oidc/authpage','PSEUDO_FETCH_MISSING_RESULT','JSONX','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','applyError','6gYFRkN','deepClone','takeUntil','infoRsp','textRanges','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_transit','Base','_logService','defineProperty','deleteProperty','IConfigService','CHANGESET_SHOULD_RETRY','setCfgEnableObjInherit','getFocusedUnit','isFinite','/fetchmissing?from=','IPermissionService','tables','_requestMissingChangesets','_adapter','candidateSocket','1977772EhjSud','_disposeSubmitter','UserManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_initRequestHeader','Inject','pending','_userManagerService','updateMember','_syncEditingCollabCursor','getUploadOptions','session.room-cnt-exceeds','awaitingChangeset','_attempt','_status$','_sendHeartbeat','COMMENT_UPDATE','UnitEmbedded','_onOffline','IMentionIOService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','members$','_scheduleCompleteTimestamp','enableSingleActiveInstanceLock','_loadSnapshot','newCsEvent','call','workbook','csShouldRetryEvent','UNIVER_BOARD','CollaborationSession','_transformAndApplyRemoteChangeset','collaborators','LIVESHARE_NEW_HOST','GLOBAL_ROOMS_CNT_EXCEEDS','_nextDelay','_getSocketChannel','_notifyResend','ICollaborationSocketService','params','text-x','_submitter','error','disposeWithMe','onRemoteChangeset','onApply','REPLACE','createIdentifier','_onRemoteRetry','433hVzgDk','LEAVE','BehaviorSubject','_revisionService','_undoStacks','resend','_redoStacks','RETRY_CONNECTING_MAX_COUNT_KEY','_updateState','\x20to\x20','_startTelemetryCollaborationNewChangeset','_eventService','upload','_transformUndoredo','SOCKET_FAILED','len','retryConnectingTimer','_getAPIPrefix','filter','_deliver','SnapshotService','awaiting_with_pending','_docStateChangeManagerService','IAttachmentIoService','_injector','packageName','univer-pro.collaboration-client.network-condition.service','_createChangesetSubmitter','[FetchMissState]','length','userID','[OfflineState]','loginUrlKey','objectActions','_transformAndApply','sheets','reject','_lockTransition','session','replace','map','UNIVER_SHEET','invertWithDoc','_onMessage','reason','_source','resent\x20changeset\x20','fetch_missing','enableAuthServer','changesetAckTimeout','onRemoteAck','b64DecodeUnicode','delay','min','IUndoRedoService','_snapshotService','_transformSelections','?url=','ack_of_awaiting','FETCH_MISSING','HEARTBEAT','onSendChangeset','NEW_CHANGESETS','writeAtPath','registerHTTPInterceptor','RevisionService','onRemoteRetry','FETCH_MISS','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_fetchMissChangesets','now','catch','_localCacheService','_onCombEvent','isTransformMutationsWithChangesetSuccess','createUniverCollaborationAdapter','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','MUTATION','_transformStack','localChanges','saveImage','updateCollaborator','2046070JosXRQ','MemberService','findIndex','_unsyncedMutationCount','CONFLICT_PROCESSING','then','UnitAction','commit','_univerInstanceService','_socketService','collaboratorID','/-/object/-/batch_allowed','AddSlidePageMutation','TimeoutError','_submitChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','connection\x20error','toString','action','equals','UNIVER_COLLABORATION_CLIENT_PLUGIN','_firstSentAt','_conflictInfoFromError','getCollabEntity','save\x20fail\x20reason\x20is\x20','49749513ulYfjy','_createSocket','maxAckTimeout','state$','_maxAckTimeout','reqId','_initMergeInterceptor','Tools','[CollaborationSocketService]','capture','code','stringify','endsWith','authzUrl','_classifyRemoteChangeset','RichTextEditingMutation','reconnect','_unlockTransition','OTHER_CLIENT_EDITING','trim','COMPRESS_MUTATION_SEND','startsWith','withCredentials','onRemoteRej','session.room-not-exists','PERSON','_state','unknown','parseProtocolChangeset','Failed\x20to\x20update\x20permission\x20point','slice','_handlerCallback','synced','PENDING','_onConnectionOpen','UpdateDocsAttributeType','push','SnapshotServerOverHTTPService','_pendingReason','_registerDependencies','nextDelayMs','JOINING','3884363PDbCxW','ImageSourceType','RETAIN','getGlobalObject','onMissedChangesetFetched','_clearHandshakeTimer','_pendingMutations','localUnitId','/universer-api/authz','keys','ITransformService','_toSynced','CollaborationStatus','/universer-api/user/session-ticket','_waitCount','create','_isAckOfAwaitingChangeset','CONFLICT_CACHE_CLEAR_FAILED','submitting\x20changeset\x20','_invertDocumentHistory','Injector','DocCollaborationEntity','_telemetryInfo','changesets','People','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','state','parseChangesetToProtocol','MentionType','PendingState','_timer','getAttachmentUrl','next','entityInit$','_joinRoom','transformChangesets','_getUploadFileURL','_transformRemoteChangesetByStateCache','missing','pauseCollaboration','elapsedMs','CollaborationSocketService','IUniverInstanceService','onPrepareTransformSelections','_transformRemoteChangesetByIMECache','tableSource','info','diffValue','Plugin','createCollaborator','_awaitingChangeset','TextXActionType','onResend','getImage','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','/resources','HELLO','_clearRetryConnectingTimer','waitForRoom$','SheetCollaborationEntity','socketReady','Error\x20on\x20receiving\x20event','_tryReconnect','conflict$','_socketChannels','UNISCRIPT_RUN','isObject','disableLocalCache','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_sessionStatus$','type','includes','startTime','_isEchoedAwaitingChangeset','enableCollaboration','isInternalEditorID','retryConnectingInterval','_countResend','RECV','transformMutationsWithChangeset','collabSubmitChangesetUrl','attempt','{fileID}','/universer-api/file/{fileID}/sign-url','has','_change$','cbc','DisposableCollection','_clearScheduledTask','_loadUnit','/universer-api/snapshot','_commentUpdate$','SessionStatus','unit','_showConflictProcessingNotification','delete','find','_telemetryService','_initUnitPermissionChange','ICollaborationClientAdapterService','fetchMissingChangesets','collaboration-client.auth.needGotoLoginAlert','ITelemetryService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOnline','updateOfflineData','saveChangeset','dispose$','isTransformChangesetsSuccess','loadUnit','updateCursorEvent','\x20at\x20revision\x20','_toggleOffline','ImageUploadStatusType','getSheetBlock','ws://127.0.0.1:8000/universer-api/comb/connect','unitInfo$','enableOfflineEditing','_removeRoom','Edit','_closedUnits','RemoveSlidePageMutation','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','snapshotServerUrl','/object','ErrorCode','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','[UniverCollaborationClientPlugin]','MoveSlidePageMutation','BASE64','RevertRevisionMutation','headers','_onLocalMutation','editingUnit','_onConflict','submit','/universer-api/stream/file/upload','unit-cache-','_retryBackoff','InsertSheetMutation','_clearUndo','_disposed','_updateUnitPermissionPoint','addHandlerCallback','splice','_commentService','ignored\x20stale\x20ack\x20of\x20revision\x20','Optional','loadSheet','[CollaborationSessionService]','\x0aCurrent:\x20','removeMember','_emitMembers','UUID','_sheetTransformSelectionsService','ConflictState','version','PERMISSION_DENIED','send','serializeCombRequest','_sessions','getActiveSheet','UniverLicensePlugin','getUnitStatus$','_conflict$','CompressMutationService','refreshUnit','_decreaseWaiting','getUnit','routeKey','endpoint','session.room-full','_changesetSessionId','collabWebSocketUrl','size','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','apply','_createInitialStateImpl','echo','uploadFileServerUrl','UPDATE_CURSOR','append','CollaborationSessionService','getSnapshot','_transformService','getCurrentRevOfUnit','\x0aAfter:\x20','getCurrentUser','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_pendingSessions','close$','_onJoinRoomEvent','Univer','DEFAULT_ACK_TIMEOUT','329790lYNSju','/collaborator','_rescheduleHeartbeat','interceptor','closeSession','_ackTimeout','fetchMiss','offline','roomInfos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','loadDoc','hasWritePending','_remoteRevertInfo','concatMap','SUBMIT_CHANGESET_TIMEOUT','_substituteUndoStack','onStateChange','[PendingState]:\x20received\x20acknowledgement.','transform_failed','_unitInfo$','getWorkbookSelections','duration','unitId','pipe','objects','entries','encode','FileId','Workbook','every','__Key__','_acknowledgedAwaitingRevision','_entities','collaboration-client.local-cache-service','sendHeartbeatTimer','JOIN','mutations','[CollaborationEntity]','_localeService','CommentService','commentUpdate$','_authzIoService','[SyncedState]:\x20received\x20acknowledgement.','_remoteChangesetQueue','_event$','[CollaborationSessionService]:\x20socket\x20error','SHOULD_CLOSE_CONN','unitDisposed$','RxDisposable','_collaborationSessionService','readyForCollab','closed','getConfig','toLocal','SUCCUSS','_singleActiveUnitService','name','_clearTimeoutTimer','__splitChunk__','IDLE','_collaborationPaused','/object/','Subscription','collaMsg','_getCtorByUniverInstanceType','_transitionLocked','writeCursor','ack_timeout','_init','onMissingChangesets','objectID','base-ui.attachment-io.service','_onConnectionFailed','resendTimeouts','file','_sendToken','onConflict','supports','ISingleActiveUnitService','UniverInstanceType','compose','_HTTPService','location','generateRandomId','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','getAllPermissionPoint','_clearHeartbeatTimer','stream','c2Prime','_reqId','getImageSourceCache','conflict','function','_onRequestFailed','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','object','LocaleService','45RFfapT','armAckTimeout','_rebaseUnchangedAttributes','bind','_options','getMember','hostname','subscribe','_commandService','onMutationExecutedForCollab','PdfCollaborationEntity','getMemberID','HEARTBEAT_TIMEOUT','getSnapshotAPIPath','sort','_entityInit$','POST','session.room-permission-denied','requestParams','CollaborationController','UniverCollaborationPlugin','_onRecvEvent','_initCloseConn','constructor','reverse','_getRedoStack','objectType','toDisposable','coverType','toggleOffline','_state$','revision','_roomCreated$','request_failed','/universer-api/uniscript','LocalUndoRedoService','endpointKey','getInterceptPoints','LIVESHARE_FETCH_OPERATIONS','_replayCachedMutations','get','getUnitType','OBJECT_PERMISSION_CONFIG_KEY','[CollaborationUndoRedoService]','href','localCacheService','_listenToNetworkCondition','resolveWithBasePath','HTTPRequest','AwaitingWithPendingState','telemetry\x20info\x20is\x20not\x20initialized','status','CombCmd','_filterTableActions','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getCollabEntities','registerDependencies','SUBMIT_CHANGESET','UNIVER_DOC','socket$','status$','paragraphId','SlideCollaborationEntity','_createHandler','target','timeout','attachment','changeset_rejected','addImageSourceCache','_now','SetSelectionsOperation','_httpService','_substituteRedoStack','onSyncEditingCollabCursor','66pyjrjD','_handler','/allowed','saveAttachment','_compressMutationService','_updateLocalCache','RemoteRevertError','range','signUrlServerUrl','_roomMembers','CONFLICT','_type','timeoutTimer','HTTPResponseError','Response','_getCurrentRevision','_networkConditionService','mergeOverrideWithDependencies','appendMutation','debug','onStarting','_dispatchRemoteChangeset','executeCommand','transformUndoRedo','AwaitingState','SNAPSHOT_URL_KEY','DEFAULT_COLLAB_WEB_SOCKET_URL','ThresholdInterceptorFactory','isTransformMutationsWithChangesetFailure','UnitObject','stopTime','members','_config','_configService','_sendingTimer','CollaborationUIEventId','_cfgEnableObjInherit','getValue','roles','3226KQYVYD','?size=','toPrimitive','_changesetReqId','encodeURIComponent','AuthzIoHttpService','string','subject','rollback','touchDependencies','_getUndoStack','changeset','setConfig','_instanceService','_rebaseParagraphHistory','uniscriptRunEvent','onTransformRemoteChangesetByStateCache','transformSelections','onRemoteRevert','_getAPIPrefixPath','ignored\x20acknowledgement\x20of\x20revision\x20','origin','toggleOnline','_members$','handshakeTimer','CmdRspCode','isArray','unitID','localeService','OTHER_CLIENTS_EDITING','retryCount','_resend','_shouldReportTelemetry','_getSignURL','CLOSE_ROOM','resolveUnit','_getUnitPermissionPoints','event$','subType','_tryEnsureSocket','online','getDrawingImageAllowSize','RemoteChangesetApplyError','getRoom','_onRemoteChangeset','DEFAULT_FILE_NAME','&source=','getCollabEntity$','values','eventID','/unit/','fetchThroughInterceptors','symbol','RETRY_CONNECTING_MAX_COUNT','deserializeToCombResponse','&to=','sendChangesetTimeout','_applyRemoteChangeset','_socket','startIndex','paragraph','_onRemoteRejected','\x20in\x20_schedule.','_members','prototype','complete','c1Prime','clear','unitLoaded$','USERS_ENTER','CommandType','toStringTag','FAIL','onTransformIME','remote_revert','result','_send','updatePermissionObjEvent','INGEST','url','readAsDataURL','CHANGESET_ACK','ISocketService','uuidv4','ChangesetSubmitter','CollaborativeUndoRedoService','EmptyMutationInfo','leaveEvent','close','onlyLocal','paragraphs','cmd','OPTIONAL','fromCollab','clearUnit','sid','COLLABORATION_ENDPOINT_INVALID','asObservable','_onUserJoin','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','LOCAL_CACHE_INTERVAL_KEY','src','_memberService','CollaborationImageIoService','listCollaborators','loadBase','stale','override','onLocalMutation','isNoop','saveSheetBlock','getPath','some','CollaborationEvent','body','_startCollaboration','getTypeOfUnitAdded$','MergeInterceptorFactory','_sessionChannels','requireSession','MSG_FOR_ERROR','_toPending','onTransformRemoteChangesetByIMECache','AWAITING','readCursor','/universer-api/snapshot/','message','requestRetry','_unitLoaded$','revert','data','editing\x20status\x20changed\x20to','focused$','JOIN_ROOM_FAILED','init','textEncoder','HEARTBEAT_INTERVAL_KEY','Document','pluginName','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','OFFLINE','joinRsp','LIVESHARE_TERMINATE','_acknowledgeAwaiting','awaiting','ISnapshotServerService','decorate','initWorkbookPermissionChange','memberID','applied','getResourcesRequest','DependentOn','missingChangesets','UNIVER_PDF','SyncedState','ILogService','set','post','originalMeta','hasOwnProperty','open$','@univerjs-pro/collaboration-client','_permissionService','WorkbookEditablePermission','objectPermissionTypes','_classifyAck','_onFetchMissResult','_detachSubmitter','transformStack\x20failed!','_undoRedoService','number','_getSendChangesetTimeout','_rejectionInfo','[PendingState]:\x20received\x20rejection.','setWaitCount','UPDATE_PERMISSION_OBJ','_socketMessageSubscription','CHANGESET_REJ','downloadEndpointUrl','randomBytes','ICommandService','indexOf','socketService','[SyncedState]:\x20received\x20rejection.','_getLoginPath','_onRemoteACK','getSheetId','CollaborationEntity','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getDeserializedSheetBlock','CollaborationUIEventService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','mapDocumentTypeToUniverInstanceType','charCodeAt','utf8ToBytes','onTransformSelections','_queuedRemoteChangesets','getAllMembers','objectId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Board','_changesetResend$','copyFileMeta','_identity','Subject','HEARTBEAT_INTERVAL','error$','_disableEditing','_throwTelemetryCollaborationNewChangeset','saveSnapshot','connectionAttempt','PERMISSION_REJ','LOCAL_CACHE_INTERVAL','add','blockRanges','baseRev','univer-pro.collaboration-client.single-active-unit-service','_createSession','sessionStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','DocStateChangeManagerService','HTTP\x20','dispose','Disposable','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','rev','_updateStatus','socketSubscription','IAuthzIoService','_acknowledgeAwaitingIfReady','MAX_ACK_TIMEOUT','_collaborationUIEventService','LIVESHARE_REQUEST_HOST','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','loadOfflineData','reduce','ObjectPermissionService','UNIVER_BASE','collaboration_new_changeset','m2Prime','3688632YtMDKx','apply_failed','_getConfig','selections','_imageSourceCache','/new_changes','HTTPEventType','_executeRemoteChangeset','ignored\x20remote\x20changeset\x20of\x20revision\x20','unsubscribe','BaseCollaborationEntity','_transformHistoryMutations','_transformStateCache','take','updatePermissionPoint','permission_rejected','getTypeOfUnitDisposed$','socket\x20open.','_prepareTransformSelections','actions','_schedule','JSON1','_clearTimer','/block/','commentUpdateEvent','loadSlide','_replaceFileID','_exhaustRemoteChangesetQueue','unitType','Quantity','_stopTelemetryCollaborationNewChangeset','_initDependencies','csAckEvent','_getDownloadEndpointURL','_resolveSessionIdentity','merge','createInstance','Rectangle','INSERT','traverse','_prepareConflictRecovery','getUnitId','USERS_LEAVE'];_0x1757=function(){return _0x10b0f4;};return _0x1757();}function We(_0x476143,_0x3e9aad,_0x18247e,_0x55e8ff,_0x316f3a,_0x5d3f8c){const _0x19d168=_0x28bbb9;return _0x55e8ff&&_0x316f3a[_0x19d168(0x47a)]?_0x476143[_0x19d168(0x3e2)](M,_0x3e9aad,_0x18247e,_0x55e8ff,_0x316f3a,_0x5d3f8c,void 0x0):_0x55e8ff?_0x476143[_0x19d168(0x3e2)](j,_0x3e9aad,_0x18247e,_0x55e8ff,_0x5d3f8c,void 0x0):_0x316f3a[_0x19d168(0x47a)]?_0x476143[_0x19d168(0x3e2)](A,_0x3e9aad,_0x18247e,_0x316f3a,_0x5d3f8c):_0x476143[_0x19d168(0x3e2)](k,_0x3e9aad,_0x18247e,_0x5d3f8c);}let I=class extends r['RxDisposable']{get[_0x28bbb9(0x50c)](){return this['_state'];}constructor(_0x2a92fe,_0x1e3d30,_0x356965,_0x45c54a,_0x5b6d18,_0xb0120e,_0x21f09a,_0x472fce,_0x205cb4,_0x17a613,_0x490e3c,_0x12b434,_0x3524d1,_0x1b7f96){const _0x4f1443=_0x28bbb9;super(),this[_0x4f1443(0x2e9)]=_0x2a92fe,this[_0x4f1443(0x483)]=_0x1e3d30,this[_0x4f1443(0x2b2)]=_0x356965,this[_0x4f1443(0x475)]=_0x45c54a,this[_0x4f1443(0x2ab)]=_0x5b6d18,this[_0x4f1443(0x222)]=_0xb0120e,this[_0x4f1443(0x460)]=_0x21f09a,this[_0x4f1443(0x468)]=_0x472fce,this[_0x4f1443(0x4b7)]=_0x205cb4,this['_logService']=_0x17a613,this['_commandService']=_0x490e3c,this[_0x4f1443(0x370)]=_0x12b434,this[_0x4f1443(0x233)]=_0x3524d1,this[_0x4f1443(0x4a5)]=_0x1b7f96,_(this,_0x4f1443(0x27b),new t[(_0x4f1443(0x45f))](null)),_(this,_0x4f1443(0x4cb),this['_state$'][_0x4f1443(0x32f)]()),_(this,'_state',void 0x0),_(this,_0x4f1443(0x238),!0x1),_(this,'_changesetSessionId',''),_(this,'_changesetReqId',0x0),_(this,_0x4f1443(0x299),this[_0x4f1443(0x4cb)][_0x4f1443(0x213)]((0x0,t[_0x4f1443(0x485)])(_0x10f010=>_0x10f010?_0x10f010['status']:_0x4f1443(0x203)),(0x0,t['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x4f1443(0x397),new t[(_0x4f1443(0x39a))]()),_(this,'changesetResend$',this[_0x4f1443(0x397)][_0x4f1443(0x32f)]()),_(this,_0x4f1443(0x1de),new t[(_0x4f1443(0x39a))]()),_(this,_0x4f1443(0x531),this['_conflict$'][_0x4f1443(0x32f)]()),_(this,_0x4f1443(0x23d),!0x1),_(this,_0x4f1443(0x227),[]);}async[_0x28bbb9(0x354)](){const _0x3e7b1e=_0x28bbb9;if(this[_0x3e7b1e(0x50c)])throw Error(_0x3e7b1e(0x56c));await this[_0x3e7b1e(0x240)]();}[_0x28bbb9(0x519)](){return this['_collaborationPaused']=!0x0,(0x0,r['toDisposable'])(()=>{const _0x5f3317=_0x53d0;this[_0x5f3317(0x238)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x28bbb9(0x33a)](_0x5eb3a0){const _0x55d191=_0x28bbb9;this[_0x55d191(0x1be)](_0x5eb3a0);}['hasWritePending'](){const _0x1c33b4=_0x28bbb9;var _0x234f6c;return((_0x234f6c=this['_state'])==null?void 0x0:_0x234f6c[_0x1c33b4(0x40b)]())??!0x1;}[_0x28bbb9(0x3ac)](){const _0x590fbe=_0x28bbb9;var _0x46b8c3;super['dispose'](),(_0x46b8c3=this[_0x590fbe(0x4e2)])==null||_0x46b8c3['dispose'](),this[_0x590fbe(0x397)][_0x590fbe(0x30f)](),this[_0x590fbe(0x1de)][_0x590fbe(0x30f)]();}['_updateState'](_0x211cec){const _0x24daa1=_0x28bbb9;this[_0x24daa1(0x4e2)]=_0x211cec,this[_0x24daa1(0x27b)]['next'](_0x211cec);}async['_init'](){const _0x104f31=_0x28bbb9;if(this[_0x104f31(0x465)](await this[_0x104f31(0x409)]()),this[_0x104f31(0x233)]){var _0x15561c;(_0x15561c=this[_0x104f31(0x233)])==null||_0x15561c[_0x104f31(0x1bf)](this[_0x104f31(0x2e9)]),this[_0x104f31(0x457)](this['_singleActiveUnitService'][_0x104f31(0x1dd)](this[_0x104f31(0x2e9)])[_0x104f31(0x264)](_0x284cad=>{const _0x1031d6=_0x104f31;this[_0x1031d6(0x41e)][_0x1031d6(0x2ba)](_0x1031d6(0x221),_0x1031d6(0x351),_0x284cad),_0x284cad===0x1?(this[_0x1031d6(0x468)][_0x1031d6(0x40c)]({'id':_0x1031d6(0x4da)}),this[_0x1031d6(0x370)][_0x1031d6(0x3cc)](new a[(_0x1031d6(0x371))](this['unitID'])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this['_permissionService'][_0x1031d6(0x3cc)](new a['WorkbookEditablePermission'](this[_0x1031d6(0x2e9)])['id'],!0x0),this[_0x1031d6(0x370)]['setShowComponents'](!0x0));}));}let _0x4b8ae8=!0x1;return this[_0x104f31(0x457)](this['session'][_0x104f31(0x3f5)][_0x104f31(0x264)](_0x1928ba=>{const _0x1ecc34=_0x104f31;_0x1928ba===0x3?this[_0x1ecc34(0x55a)](_0x4b8ae8):_0x1928ba===0x2&&(_0x4b8ae8=!0x0,this['_toggleOffline']());})),this[_0x104f31(0x457)](this[_0x104f31(0x483)][_0x104f31(0x2f3)][_0x104f31(0x264)](_0x31d114=>{const _0x5bd0bf=_0x104f31;try{switch(_0x31d114[_0x5bd0bf(0x2ff)]){case n[_0x5bd0bf(0x33f)]['NEW_CHANGESETS']:this[_0x5bd0bf(0x2fa)]((0x0,n[_0x5bd0bf(0x4e4)])(_0x31d114[_0x5bd0bf(0x350)]));break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x31f)]:this[_0x5bd0bf(0x387)](_0x31d114[_0x5bd0bf(0x350)]);break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x37f)]:this[_0x5bd0bf(0x30b)]();break;case n['CollaborationEvent'][_0x5bd0bf(0x422)]:this[_0x5bd0bf(0x45c)](_0x31d114[_0x5bd0bf(0x350)]);break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x412)]:this[_0x5bd0bf(0x374)](_0x31d114[_0x5bd0bf(0x350)][_0x5bd0bf(0x509)][_0x5bd0bf(0x485)](_0x4c02ed=>(0x0,n[_0x5bd0bf(0x4e4)])(_0x4c02ed)));break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x3a1)]:this[_0x5bd0bf(0x30b)]({'isPermissionRej':!0x0});break;case n['CollaborationEvent']['UNISCRIPT_RUN']:}}catch(_0x357388){throw console[_0x5bd0bf(0x456)](_0x5bd0bf(0x52f),_0x357388),_0x357388;}})),this['_state'];}[_0x28bbb9(0x4d9)](){this['_transitionLocked']=!0x1;}[_0x28bbb9(0x482)](){const _0x2a1484=_0x28bbb9;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x2a1484(0x23d)]=!0x0;}[_0x28bbb9(0x41c)](_0x2b073a){const _0x10baa7=_0x28bbb9;this['_lockTransition']();try{this[_0x10baa7(0x465)](_0x2b073a());}finally{this[_0x10baa7(0x4d9)]();}}[_0x28bbb9(0x1be)](_0x2ef994){const _0x22f7d1=_0x28bbb9;this['_transit'](()=>this[_0x22f7d1(0x4e2)][_0x22f7d1(0x2b9)](_0x2ef994));}['_onRemoteChangeset'](_0x2985a1){const _0x3bb587=_0x28bbb9;this[_0x3bb587(0x238)]?this[_0x3bb587(0x227)]['push'](_0x2985a1):this[_0x3bb587(0x307)](_0x2985a1);}[_0x28bbb9(0x3d9)](){const _0x3556e7=_0x28bbb9;this[_0x3556e7(0x227)]['forEach'](_0x28683d=>this[_0x3556e7(0x307)](_0x28683d)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x142168){const _0x49f46c=_0x28bbb9;let _0x57540b=this['_compressMutationService'][_0x49f46c(0x1ff)][_0x49f46c(0x301)](this['_compressMutationService'][_0x49f46c(0x1ff)][_0x49f46c(0x282)]()['COMPRESS_MUTATION_APPLY'])(_0x142168['mutations'],null)||_0x142168['mutations'],_0x5efe4a={..._0x142168,'mutations':_0x57540b};this[_0x49f46c(0x41c)](()=>this[_0x49f46c(0x4e2)][_0x49f46c(0x458)](_0x5efe4a));}['_onRemoteACK'](_0x35c5a8){const _0x2cb4b5=_0x28bbb9;this[_0x2cb4b5(0x41c)](()=>this['_state'][_0x2cb4b5(0x48f)](_0x35c5a8));}[_0x28bbb9(0x30b)](_0xf024d6){const _0x1f3ed2=_0x28bbb9;this[_0x1f3ed2(0x41c)](()=>this[_0x1f3ed2(0x4e2)][_0x1f3ed2(0x4df)](_0xf024d6));}['_onRemoteRetry'](_0x2daebe){const _0x33cb97=_0x28bbb9;this[_0x33cb97(0x41c)](()=>this[_0x33cb97(0x4e2)][_0x33cb97(0x49f)](_0x2daebe));}[_0x28bbb9(0x374)](_0xe3a8ca){const _0x4bfa84=_0x28bbb9;let _0x1b954f=this[_0x4bfa84(0x4e2)];if(!(_0x1b954f instanceof F))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x5dd757=_0xe3a8ca[_0x4bfa84(0x485)](_0x1af16f=>{const _0x237c28=_0x4bfa84;let _0x3f2b07=this['_compressMutationService'][_0x237c28(0x1ff)]['fetchThroughInterceptors'](this[_0x237c28(0x2ab)][_0x237c28(0x1ff)][_0x237c28(0x282)]()['COMPRESS_MUTATION_APPLY'])(_0x1af16f[_0x237c28(0x220)],null)||_0x1af16f[_0x237c28(0x220)];return{..._0x1af16f,'mutations':_0x3f2b07};});this['_transit'](()=>_0x1b954f[_0x4bfa84(0x4f6)](_0x5dd757));}[_0x28bbb9(0x562)](){const _0x39379e=_0x28bbb9;this[_0x39379e(0x41c)](()=>this['_state'][_0x39379e(0x27a)]());}[_0x28bbb9(0x55a)](_0x48c511=!0x1){const _0x2502fc=_0x28bbb9;this[_0x2502fc(0x41c)](()=>this[_0x2502fc(0x4e2)][_0x2502fc(0x2e4)]());let _0x348725=this[_0x2502fc(0x4e2)];_0x48c511&&_0x348725 instanceof k&&this['_transit'](()=>_0x348725[_0x2502fc(0x202)]());}async['_createInitialState'](){return new Promise(_0x5e4987=>{const _0x17098d=_0x53d0;this[_0x17098d(0x483)][_0x17098d(0x3f5)]['pipe']((0x0,t[_0x17098d(0x3cb)])(0x1))['subscribe'](async _0x40607d=>{_0x5e4987(await this['_createInitialStateImpl'](_0x40607d===0x3));});});}['_createHandler'](){const _0x3cc255=_0x28bbb9;let _0x46c168=this[_0x3cc255(0x2e9)],_0x1d1b39=this[_0x3cc255(0x475)][_0x3cc255(0x285)](r['IConfigService'])[_0x3cc255(0x230)](m);return{'resendTimeouts':{'ackTimeout':_0x1d1b39==null?void 0x0:_0x1d1b39[_0x3cc255(0x48e)],'maxAckTimeout':_0x1d1b39==null?void 0x0:_0x1d1b39['maxChangesetAckTimeout']},'onStateChange':(_0x519d12,_0x21b04a)=>{const _0x41c08b=_0x3cc255;if(_0x519d12!==this[_0x41c08b(0x4e2)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x519d12[_0x41c08b(0x290)]+_0x41c08b(0x1f4)+_0x21b04a[_0x41c08b(0x290)]+_0x41c08b(0x1d0)+this['_state'][_0x41c08b(0x290)]);this[_0x41c08b(0x465)](_0x21b04a);},'onSendChangeset':(_0x10546b,_0x9e6383)=>{const _0x33ab73=_0x3cc255;_0x10546b[_0x33ab73(0x32d)]||(_0x10546b[_0x33ab73(0x32d)]=this[_0x33ab73(0x1e6)],_0x10546b[_0x33ab73(0x4cd)]=++this['_changesetReqId']);let _0x507a97={'eventID':n[_0x33ab73(0x33f)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x10546b[_0x33ab73(0x2e9)],'unitType':this[_0x33ab73(0x2b2)],'changeset':_0x10546b,'memberID':this['session'][_0x33ab73(0x268)]()}};return this[_0x33ab73(0x483)][_0x33ab73(0x1d8)](_0x507a97,this[_0x33ab73(0x2e9)],_0x9e6383);},'onConflict':(_0x1f28e8,_0x11f147,_0x3656d5)=>{const _0x44da31=_0x3cc255;this[_0x44da31(0x1de)][_0x44da31(0x22f)]||this[_0x44da31(0x1de)][_0x44da31(0x512)]({'unitID':_0x46c168,..._0x1f28e8,'localChanges':_0x11f147,'cacheCleared':_0x3656d5});},'onChangesetResend':_0x2e2e61=>{const _0x5cc95f=_0x3cc255;this[_0x5cc95f(0x41e)]['debug'](_0x5cc95f(0x221),_0x5cc95f(0x48b)+_0x2e2e61['reqId']+'\x20('+_0x2e2e61[_0x5cc95f(0x489)]+',\x20attempt\x20'+_0x2e2e61[_0x5cc95f(0x543)]+')'),queueMicrotask(()=>{const _0x3b0a6a=_0x5cc95f;this['_changesetResend$']['closed']||this[_0x3b0a6a(0x397)]['next']({'unitID':_0x46c168,..._0x2e2e61});});},'onMissingChangesets':({from:_0x355732,to:_0x4536c9})=>{const _0x4b1a50=_0x3cc255;this[_0x4b1a50(0x41e)][_0x4b1a50(0x2ba)](_0x4b1a50(0x221),'fetching\x20missing\x20changesets\x20from\x20'+_0x355732+_0x4b1a50(0x466)+_0x4536c9);let _0x3eba17={'eventID':n[_0x4b1a50(0x33f)][_0x4b1a50(0x498)],'data':{'unitID':_0x46c168,'unitType':this[_0x4b1a50(0x2b2)],'from':_0x355732,'to':_0x4536c9}};this['session']['send'](_0x3eba17,this['unitID']);}};}async[_0x28bbb9(0x1eb)](_0x38c913){const _0x2d00c3=_0x28bbb9;var _0x1b6c24;let _0x1fb57b=await((_0x1b6c24=this[_0x2d00c3(0x4a5)])==null?void 0x0:_0x1b6c24['loadOfflineData'](this['unitID'])),_0x431d9f=(_0x1fb57b==null?void 0x0:_0x1fb57b['mutations'])??[],_0x189cfa=(_0x1fb57b==null?void 0x0:_0x1fb57b[_0x2d00c3(0x438)])??null,_0x235bd6=!!(_0x189cfa!=null&&_0x189cfa['sid'])&&!!(_0x189cfa!=null&&_0x189cfa[_0x2d00c3(0x4cd)]);this[_0x2d00c3(0x1e6)]=_0x235bd6?_0x189cfa[_0x2d00c3(0x32d)]:(0x0,n[_0x2d00c3(0x321)])(),this[_0x2d00c3(0x2d1)]=_0x235bd6?_0x189cfa[_0x2d00c3(0x4cd)]:0x0;let _0x4b8bd3=this['unitID'];try{this[_0x2d00c3(0x284)](_0x189cfa,_0x431d9f);}catch(_0x3dced6){this['_logService'][_0x2d00c3(0x456)](_0x3dced6);}let _0xdad307=this[_0x2d00c3(0x29c)]();if(_0x38c913){let _0x2b93ac=We(this[_0x2d00c3(0x475)],_0x4b8bd3,this['_type'],_0x189cfa,_0x431d9f,_0xdad307);return _0x2b93ac instanceof A?_0x2b93ac[_0x2d00c3(0x3d2)]():(_0x2b93ac instanceof M||_0x2b93ac instanceof j)&&_0x2b93ac['resend'](),_0x2b93ac;}return this[_0x2d00c3(0x475)][_0x2d00c3(0x3e2)](P,_0x4b8bd3,this[_0x2d00c3(0x2b2)],_0x189cfa,_0x431d9f,_0xdad307);}[_0x28bbb9(0x284)](_0x1df330,_0x5b0445){const _0x6947f6=_0x28bbb9;var _0x4e53a6,_0x40d28c;let _0x9483d2=this[_0x6947f6(0x2ab)]['interceptor'][_0x6947f6(0x301)](this[_0x6947f6(0x2ab)][_0x6947f6(0x1ff)][_0x6947f6(0x282)]()['COMPRESS_MUTATION_APPLY']);(_0x4e53a6=_0x9483d2((_0x1df330==null?void 0x0:_0x1df330[_0x6947f6(0x220)])||[],null))==null||_0x4e53a6[_0x6947f6(0x3e9)](_0xc091d5=>this[_0x6947f6(0x265)][_0x6947f6(0x2bd)](_0xc091d5['id'],_0xc091d5[_0x6947f6(0x453)])),(_0x40d28c=_0x9483d2(_0x5b0445||[],null))==null||_0x40d28c[_0x6947f6(0x3e9)](_0x38f18d=>this[_0x6947f6(0x265)][_0x6947f6(0x2bd)](_0x38f18d['id'],_0x38f18d[_0x6947f6(0x453)]));}};I=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],I);let L=class extends I{constructor(_0x4391ef,_0x3f55af,_0x21127f,_0x496040,_0xb33541,_0x267c46,_0x5736e6,_0xa0242,_0x5770a5,_0x337f27,_0x133e46,_0x4b305e,_0x3cf5b0,_0xf077bf,_0x5f1951){const _0x41a241=_0x28bbb9;super(_0x4391ef,_0x21127f,_0x3f55af,_0x496040,_0xb33541,_0x267c46,_0x5736e6,_0xa0242,_0x5770a5,_0x337f27,_0x133e46,_0x4b305e,_0xf077bf,_0x5f1951),this['unitID']=_0x4391ef,this[_0x41a241(0x538)]=_0x3f55af,this[_0x41a241(0x473)]=_0x3cf5b0,_(this,_0x41a241(0x4e7),null);}[_0x28bbb9(0x1c9)](_0x5df634){const _0x564297=_0x28bbb9;this[_0x564297(0x4e7)]=_0x5df634;}[_0x28bbb9(0x3ac)](){const _0x1ce794=_0x28bbb9;this[_0x1ce794(0x4e7)]=null,super[_0x1ce794(0x3ac)]();}[_0x28bbb9(0x29c)](){const _0x467d70=_0x28bbb9;let _0x43c8e0=super[_0x467d70(0x29c)]();return _0x43c8e0[_0x467d70(0x317)]=_0x428f6d=>{const _0x13da0c=_0x467d70;var _0xf0569d,_0x12e616;return(_0xf0569d=this[_0x13da0c(0x4e7)])==null||(_0x12e616=_0xf0569d[_0x13da0c(0x317)])==null?void 0x0:_0x12e616[_0x13da0c(0x446)](_0xf0569d,_0x428f6d);},_0x43c8e0['onTransformState']=_0x397d0c=>{const _0x18da02=_0x467d70;var _0x164c76,_0x5e17ce;return(_0x164c76=this[_0x18da02(0x4e7)])==null||(_0x5e17ce=_0x164c76['onTransformState'])==null?void 0x0:_0x5e17ce['call'](_0x164c76,_0x397d0c);},_0x43c8e0['onPrepareTransformSelections']=_0x179ea1=>{const _0x5708b7=_0x467d70;var _0x319773,_0x2fafef;return((_0x319773=this[_0x5708b7(0x4e7)])==null||(_0x2fafef=_0x319773[_0x5708b7(0x51d)])==null?void 0x0:_0x2fafef[_0x5708b7(0x446)](_0x319773,_0x179ea1))??null;},_0x43c8e0[_0x467d70(0x391)]=_0x1eb729=>{const _0x297669=_0x467d70;var _0x3c9197,_0x5c4c9b;return(_0x3c9197=this[_0x297669(0x4e7)])==null||(_0x5c4c9b=_0x3c9197[_0x297669(0x391)])==null?void 0x0:_0x5c4c9b[_0x297669(0x446)](_0x3c9197,_0x1eb729);},_0x43c8e0[_0x467d70(0x2a6)]=_0x161030=>{const _0x3e818a=_0x467d70;var _0x533deb,_0x186d33;return(_0x533deb=this[_0x3e818a(0x4e7)])==null||(_0x186d33=_0x533deb[_0x3e818a(0x2a6)])==null?void 0x0:_0x186d33[_0x3e818a(0x446)](_0x533deb,_0x161030);},_0x43c8e0['onTransformRemoteChangesetByIMECache']=_0x17aa52=>{const _0x2cadf8=_0x467d70;var _0x304d11,_0x1d7286;return((_0x304d11=this[_0x2cadf8(0x4e7)])==null||(_0x1d7286=_0x304d11[_0x2cadf8(0x348)])==null?void 0x0:_0x1d7286[_0x2cadf8(0x446)](_0x304d11,_0x17aa52))??_0x17aa52;},_0x43c8e0[_0x467d70(0x2de)]=_0x18ea56=>{const _0x5e183d=_0x467d70;var _0xf07aaf,_0xc116f9;return((_0xf07aaf=this[_0x5e183d(0x4e7)])==null||(_0xc116f9=_0xf07aaf[_0x5e183d(0x2de)])==null?void 0x0:_0xc116f9[_0x5e183d(0x446)](_0xf07aaf,_0x18ea56))??_0x18ea56;},_0x43c8e0;}async['_init'](){const _0x21c210=_0x28bbb9;let _0x284f03=await super[_0x21c210(0x240)]();return this['disposeWithMe'](this[_0x21c210(0x473)]['docStateChange$'][_0x21c210(0x264)](_0x12110c=>{const _0x2b02ed=_0x21c210;if(_0x12110c==null||_0x12110c['unitId']!==this[_0x2b02ed(0x2e9)])return;let {commandId:_0x3c6d2f,redoState:_0x5230d9,unitId:_0x12ae03}=_0x12110c,_0x1c9d42={'id':_0x3c6d2f,'type':r[_0x2b02ed(0x314)][_0x2b02ed(0x4aa)],'params':{'unitId':_0x12ae03,'actions':_0x5230d9['actions'],'textRanges':null}};this[_0x2b02ed(0x1be)](_0x1c9d42);})),this[_0x21c210(0x457)](this['_commandService'][_0x21c210(0x266)]((_0x25c0ec,_0x1d76e2)=>{const _0x53d424=_0x21c210;if(_0x25c0ec[_0x53d424(0x538)]!==r[_0x53d424(0x314)][_0x53d424(0x4aa)]||_0x1d76e2!=null&&_0x1d76e2[_0x53d424(0x32b)]||_0x1d76e2!=null&&_0x1d76e2[_0x53d424(0x327)]||_0x25c0ec['id']===i['RichTextEditingMutation']['id'])return;let _0x356666=_0x25c0ec['params'];if((_0x356666==null?void 0x0:_0x356666[_0x53d424(0x212)])!==this['unitID'])return;let _0x500f3b=_0x25c0ec,_0x39e368=this[_0x53d424(0x2ab)][_0x53d424(0x1ff)][_0x53d424(0x301)](this['_compressMutationService'][_0x53d424(0x1ff)][_0x53d424(0x282)]()[_0x53d424(0x4dc)])([_0x500f3b],this[_0x53d424(0x4b7)])||[_0x500f3b];this[_0x53d424(0x1be)](_0x39e368[0x0]);})),_0x284f03;}};L=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r['Inject'])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x431)])(i[_0x28bbb9(0x3aa)])),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xe,(0x0,r['Optional'])(C))],L);let R=class extends I{constructor(_0x2108e1,_0x1610fa,_0x19e8b0,_0x39f73d,_0x4e057c,_0x513185,_0x4d1a43,_0x197b45,_0x130f3e,_0x4c882a,_0x3cfde2,_0x546d4b,_0x145833,_0x5b022c){const _0x29a43b=_0x28bbb9;super(_0x2108e1,_0x19e8b0,_0x1610fa,_0x39f73d,_0x4e057c,_0x513185,_0x4d1a43,_0x197b45,_0x130f3e,_0x4c882a,_0x3cfde2,_0x546d4b,_0x145833,_0x5b022c),this[_0x29a43b(0x2e9)]=_0x2108e1,this[_0x29a43b(0x538)]=_0x1610fa;}async[_0x28bbb9(0x240)](){const _0x3e1bf3=_0x28bbb9;let _0x40ce42=await super['_init']();return this['disposeWithMe'](this[_0x3e1bf3(0x265)]['onMutationExecutedForCollab']((_0xbe6314,_0x1d4915)=>{const _0x259c1a=_0x3e1bf3;if(_0xbe6314[_0x259c1a(0x538)]!==r[_0x259c1a(0x314)][_0x259c1a(0x4aa)]||_0x1d4915!=null&&_0x1d4915[_0x259c1a(0x32b)]||_0x1d4915!=null&&_0x1d4915[_0x259c1a(0x327)])return;let _0x34520b=_0xbe6314[_0x259c1a(0x453)];if((_0x34520b==null?void 0x0:_0x34520b[_0x259c1a(0x212)])!==this['unitID'])return;let _0x1ba166=_0xbe6314,_0x8f592e=this[_0x259c1a(0x2ab)][_0x259c1a(0x1ff)][_0x259c1a(0x301)](this[_0x259c1a(0x2ab)][_0x259c1a(0x1ff)][_0x259c1a(0x282)]()[_0x259c1a(0x4dc)])([_0x1ba166],this[_0x259c1a(0x4b7)])||[_0x1ba166];this[_0x259c1a(0x1be)](_0x8f592e[0x0]);})),_0x40ce42;}};R=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n['RevisionService'])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],R);let z=class extends I{constructor(_0x570b6c,_0x58ef12,_0x3baba3,_0x1dd776,_0x31b799,_0x5f48a8,_0x2a5b45,_0x25c240,_0x42f302,_0x500cd5,_0x151782,_0x16e351,_0x2b512a,_0x4d600e,_0x597fb3){const _0x22f194=_0x28bbb9;super(_0x570b6c,_0x3baba3,_0x58ef12,_0x1dd776,_0x31b799,_0x5f48a8,_0x2a5b45,_0x42f302,_0x500cd5,_0x151782,_0x16e351,_0x2b512a,_0x4d600e,_0x597fb3),this[_0x22f194(0x2e9)]=_0x570b6c,this['type']=_0x58ef12,this[_0x22f194(0x1d4)]=_0x25c240;}[_0x28bbb9(0x29c)](){const _0x3319c0=_0x28bbb9;let _0x23c915=super['_createHandler']();return _0x23c915[_0x3319c0(0x391)]=_0x5c46b2=>this[_0x3319c0(0x1d4)][_0x3319c0(0x2df)](_0x5c46b2),_0x23c915;}async[_0x28bbb9(0x240)](){const _0xa9eba1=_0x28bbb9;let _0x527abb=await super[_0xa9eba1(0x240)]();return this[_0xa9eba1(0x457)](this[_0xa9eba1(0x265)]['onMutationExecutedForCollab']((_0x4758e9,_0x23b730)=>{const _0xbfeb75=_0xa9eba1;if(_0x4758e9[_0xbfeb75(0x538)]!==r[_0xbfeb75(0x314)][_0xbfeb75(0x4aa)]||_0x23b730!=null&&_0x23b730[_0xbfeb75(0x32b)]||_0x23b730!=null&&_0x23b730[_0xbfeb75(0x327)])return;let _0xeecaaa=_0x4758e9[_0xbfeb75(0x453)];if((_0xeecaaa==null?void 0x0:_0xeecaaa[_0xbfeb75(0x212)])!==this[_0xbfeb75(0x2e9)])return;let _0x5d5a0d=_0x4758e9,_0x106941=this[_0xbfeb75(0x2ab)][_0xbfeb75(0x1ff)][_0xbfeb75(0x301)](this['_compressMutationService'][_0xbfeb75(0x1ff)][_0xbfeb75(0x282)]()[_0xbfeb75(0x4dc)])([_0x5d5a0d],this['_univerInstanceService'])||[_0x5d5a0d];this[_0xbfeb75(0x1be)](_0x106941[0x0]);})),_0x527abb;}};z=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r['LocaleService'])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(w)),y(0x8,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x9,r[_0x28bbb9(0x51c)]),y(0xa,r[_0x28bbb9(0x369)]),y(0xb,r[_0x28bbb9(0x382)]),y(0xc,r[_0x28bbb9(0x427)]),y(0xd,(0x0,r['Optional'])(T)),y(0xe,(0x0,r[_0x28bbb9(0x1cd)])(C))],z);let B=class extends I{constructor(_0x426b28,_0x572139,_0x1abeaa,_0x202abf,_0x20458c,_0x12de6e,_0x408984,_0x12943e,_0x5f20f9,_0x8233f1,_0x14c779,_0x1520ab,_0x54e99e,_0x4137ec){const _0x26d8fd=_0x28bbb9;super(_0x426b28,_0x1abeaa,_0x572139,_0x202abf,_0x20458c,_0x12de6e,_0x408984,_0x12943e,_0x5f20f9,_0x8233f1,_0x14c779,_0x1520ab,_0x54e99e,_0x4137ec),this[_0x26d8fd(0x2e9)]=_0x426b28,this[_0x26d8fd(0x538)]=_0x572139;}async['_init'](){const _0x9f3ee=_0x28bbb9;let _0x437fe6=await super['_init']();return this[_0x9f3ee(0x457)](this['_commandService'][_0x9f3ee(0x266)]((_0x4cb48c,_0x3ec3ac)=>{const _0x32fef6=_0x9f3ee;if(_0x4cb48c[_0x32fef6(0x538)]!==r[_0x32fef6(0x314)][_0x32fef6(0x4aa)]||_0x3ec3ac!=null&&_0x3ec3ac[_0x32fef6(0x32b)]||_0x3ec3ac!=null&&_0x3ec3ac[_0x32fef6(0x327)])return;let _0x17fd52=_0x4cb48c['params'];if((_0x17fd52==null?void 0x0:_0x17fd52[_0x32fef6(0x212)])!==this['unitID'])return;let _0x208256=_0x4cb48c,_0x414604=this[_0x32fef6(0x2ab)][_0x32fef6(0x1ff)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x32fef6(0x282)]()[_0x32fef6(0x4dc)])([_0x208256],this[_0x32fef6(0x4b7)])||[_0x208256];this[_0x32fef6(0x1be)](_0x414604[0x0]);})),_0x437fe6;}};B=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r['Inject'])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],B);let V=class extends I{constructor(_0x261d73,_0x3fad4f,_0x25aad7,_0x4ebb08,_0x3be3f3,_0x1e7e34,_0xac4f66,_0x32b2c9,_0x36de61,_0x3a11e3,_0x45c8d8,_0x3891c1,_0x5316b1,_0x19b6c0){const _0x10c5ef=_0x28bbb9;super(_0x261d73,_0x25aad7,_0x3fad4f,_0x4ebb08,_0x3be3f3,_0x1e7e34,_0xac4f66,_0x32b2c9,_0x36de61,_0x3a11e3,_0x45c8d8,_0x3891c1,_0x5316b1,_0x19b6c0),this[_0x10c5ef(0x2e9)]=_0x261d73,this[_0x10c5ef(0x538)]=_0x3fad4f;}async[_0x28bbb9(0x240)](){const _0x3e65e3=_0x28bbb9;let _0x54a705=await super[_0x3e65e3(0x240)]();return this[_0x3e65e3(0x457)](this['_commandService']['onMutationExecutedForCollab']((_0x50573c,_0x457a3f)=>{const _0x81d55a=_0x3e65e3;if(_0x50573c[_0x81d55a(0x538)]!==r[_0x81d55a(0x314)]['MUTATION']||_0x457a3f!=null&&_0x457a3f[_0x81d55a(0x32b)]||_0x457a3f!=null&&_0x457a3f[_0x81d55a(0x327)])return;let _0x5a1fba=_0x50573c[_0x81d55a(0x453)];if((_0x5a1fba==null?void 0x0:_0x5a1fba['unitId'])!==this[_0x81d55a(0x2e9)])return;let _0x283eac=_0x50573c,_0x158a41=this[_0x81d55a(0x2ab)]['interceptor'][_0x81d55a(0x301)](this[_0x81d55a(0x2ab)][_0x81d55a(0x1ff)]['getInterceptPoints']()[_0x81d55a(0x4dc)])([_0x283eac],this[_0x81d55a(0x4b7)])||[_0x283eac];this[_0x81d55a(0x1be)](_0x158a41[0x0]);})),_0x54a705;}};V=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r['Optional'])(T)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],V);let H=class extends I{constructor(_0x5cd0c0,_0x3f028b,_0x13e4b2,_0x5b29a2,_0x33c6a2,_0x231296,_0x501059,_0x2693dc,_0x1499bf,_0x147839,_0x1f1c2c,_0x3304c2,_0x3432f4,_0x1ae6e8){const _0x55e856=_0x28bbb9;super(_0x5cd0c0,_0x13e4b2,_0x3f028b,_0x5b29a2,_0x33c6a2,_0x231296,_0x501059,_0x2693dc,_0x1499bf,_0x147839,_0x1f1c2c,_0x3304c2,_0x3432f4,_0x1ae6e8),this['unitID']=_0x5cd0c0,this[_0x55e856(0x538)]=_0x3f028b;}async['_init'](){const _0x2f082b=_0x28bbb9;let _0xf3484b=await super[_0x2f082b(0x240)]();return this[_0x2f082b(0x457)](this[_0x2f082b(0x265)]['onMutationExecutedForCollab']((_0x2dd136,_0x3469cf)=>{const _0x572d27=_0x2f082b;if(_0x2dd136[_0x572d27(0x538)]!==r[_0x572d27(0x314)]['MUTATION']||_0x3469cf!=null&&_0x3469cf[_0x572d27(0x32b)]||_0x3469cf!=null&&_0x3469cf[_0x572d27(0x327)])return;let _0x45c1fc=_0x2dd136[_0x572d27(0x453)];if((_0x45c1fc==null?void 0x0:_0x45c1fc[_0x572d27(0x212)])!==this[_0x572d27(0x2e9)])return;let _0x1f3176=_0x2dd136,_0x4d1e2a=this['_compressMutationService'][_0x572d27(0x1ff)]['fetchThroughInterceptors'](this[_0x572d27(0x2ab)]['interceptor'][_0x572d27(0x282)]()[_0x572d27(0x4dc)])([_0x1f3176],this['_univerInstanceService'])||[_0x1f3176];this[_0x572d27(0x1be)](_0x4d1e2a[0x0]);})),_0xf3484b;}};H=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r['Inject'])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],H);const Ge=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x477));function Ke(_0x4b6bad){const _0x2ede10=_0x28bbb9;let _0x5ee1b0=_0x4b6bad['data'],_0x1e6eb0=JSON['parse'](_0x5ee1b0);switch(_0x1e6eb0['cmd']){case o['CombCmd'][_0x2ede10(0x499)]:case o[_0x2ede10(0x291)][_0x2ede10(0x52a)]:{let _0xedd6bd=_0x1e6eb0[_0x2ede10(0x419)];return{..._0x1e6eb0,'data':_0xedd6bd,'cmd':_0x1e6eb0[_0x2ede10(0x329)]};}case o[_0x2ede10(0x291)][_0x2ede10(0x21f)]:{let _0x101df6=_0x1e6eb0[_0x2ede10(0x35b)];return{..._0x1e6eb0,'data':_0x101df6,'cmd':_0x1e6eb0[_0x2ede10(0x329)]};}case o[_0x2ede10(0x291)][_0x2ede10(0x540)]:{let _0x14ed50=_0x1e6eb0[_0x2ede10(0x23b)];switch(_0x14ed50[_0x2ede10(0x2ff)]){case n['CollaborationEvent'][_0x2ede10(0x3a1)]:var _0x1c9b30;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0x1c9b30=_0x14ed50['permissionRejEvent'])==null?void 0x0:_0x1c9b30['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['CHANGESET_ACK']:var _0x36bef5;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0x36bef5=_0x14ed50[_0x2ede10(0x3de)])==null?void 0x0:_0x36bef5['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x49b)]:var _0xe6e0e9;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xe6e0e9=_0x14ed50[_0x2ede10(0x445)])==null?void 0x0:_0xe6e0e9['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x37f)]:var _0xf3ab76;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xf3ab76=_0x14ed50['csRejEvent'])==null?void 0x0:_0xf3ab76['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n['CollaborationEvent'][_0x2ede10(0x422)]:var _0xe501d;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xe501d=_0x14ed50[_0x2ede10(0x448)])==null?void 0x0:_0xe501d['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x1ee)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x560)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x313)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50['joinEvent']},'cmd':_0x1e6eb0['cmd']};case n[_0x2ede10(0x33f)]['USERS_LEAVE']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x325)]},'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3f1)]},'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent'][_0x2ede10(0x283)]:case n[_0x2ede10(0x33f)][_0x2ede10(0x3fd)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3ec)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x35c)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3f1)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['MSG_FOR_ERROR']:return{..._0x1e6eb0,'data':_0x14ed50,'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent'][_0x2ede10(0x43c)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3d6)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n['CollaborationEvent'][_0x2ede10(0x37d)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x31b)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['SHOULD_CLOSE_CONN']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50['shouldCloseConn']},'cmd':_0x1e6eb0['cmd']};case n[_0x2ede10(0x33f)][_0x2ede10(0x533)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x2dd)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};default:return _0x1e6eb0;}}default:return _0x1e6eb0;}}function qe(_0x4f78c8){const _0x138381=_0x28bbb9;switch(_0x4f78c8['cmd']){case o[_0x138381(0x291)][_0x138381(0x499)]:case o[_0x138381(0x291)]['HELLO']:return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)]});case o[_0x138381(0x291)]['INGEST']:{let _0x404959;switch(_0x4f78c8[_0x138381(0x350)][_0x138381(0x2ff)]){case n[_0x138381(0x33f)][_0x138381(0x1ee)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x1ee)],'updateCursorEvent':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x3e8)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x3e8)],'leaveEvent':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x313)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x313)],'joinEvent':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x44d)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x44d)],'liveShareNewHost':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x3fd)]:_0x404959={'eventID':n[_0x138381(0x33f)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x35c)]:_0x404959={'eventID':n['CollaborationEvent'][_0x138381(0x35c)],'liveShareTerminate':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x3b6)]:_0x404959={'eventID':n[_0x138381(0x33f)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4f78c8['data']['data']};break;case n['CollaborationEvent'][_0x138381(0x283)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x283)]};break;default:_0x404959={'eventID':_0x4f78c8['data'][_0x138381(0x2ff)]};}return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)],'collaMsg':_0x404959});}case o[_0x138381(0x291)][_0x138381(0x21f)]:return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8['routeKey'],'joinReq':_0x4f78c8[_0x138381(0x350)]});case o['CombCmd'][_0x138381(0x45e)]:return JSON['stringify']({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)],'leaveReq':_0x4f78c8[_0x138381(0x350)]});default:throw Error(_0x138381(0x25a));}}const Je=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x400));function Ye(_0x167730,_0x385838,_0x134e24){const _0x46c5e6=_0x28bbb9;return _0x167730+'/'+_0x385838+_0x46c5e6(0x300)+_0x134e24+_0x46c5e6(0x3c3);}let Xe=class extends r[_0x28bbb9(0x3ad)]{constructor(_0xc38506,_0x1a8230,_0x362406,_0x87ab5,_0x52d211){const _0x5389c6=_0x28bbb9;super(),this['_injector']=_0xc38506,this[_0x5389c6(0x2a4)]=_0x1a8230,this[_0x5389c6(0x2c8)]=_0x362406,this[_0x5389c6(0x41e)]=_0x87ab5,this['_snapshotServerService']=_0x52d211;}['_doCreateSocket'](_0x5a7098){const _0xeb189f=_0x28bbb9;let _0x43eee6=this[_0xeb189f(0x475)][_0xeb189f(0x285)](e[_0xeb189f(0x320)]);if(!_0x43eee6)throw Error(_0xeb189f(0x3b7));let _0x2f101b=_0x43eee6[_0xeb189f(0x3fe)](_0x5a7098);if(!_0x2f101b)throw Error(_0xeb189f(0x3ae));let _0x2e27ea=new r[(_0xeb189f(0x549))](),_0x32de0d=new t['Subject']();_0x2e27ea['add'](_0x2f101b['close$'][_0xeb189f(0x264)](_0x303951=>_0x32de0d[_0xeb189f(0x512)](_0x303951))),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r[_0xeb189f(0x278)])(()=>_0x32de0d[_0xeb189f(0x30f)]()));let _0x37bb1e=new t[(_0xeb189f(0x39a))]();_0x2e27ea[_0xeb189f(0x3a3)](_0x2f101b[_0xeb189f(0x39c)][_0xeb189f(0x264)](_0x133be2=>_0x37bb1e[_0xeb189f(0x512)](_0x133be2))),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r[_0xeb189f(0x278)])(()=>_0x37bb1e['complete']()));let _0x142c34=new t[(_0xeb189f(0x39a))]();_0x2e27ea[_0xeb189f(0x3a3)](_0x2f101b[_0xeb189f(0x3fa)][_0xeb189f(0x264)](_0x344404=>{const _0x89b1db=_0xeb189f;let _0x3a91cf=Ke(_0x344404);_0x142c34[_0x89b1db(0x512)](_0x3a91cf);})),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r['toDisposable'])(()=>_0x142c34['complete']()));let _0x5a80fc,_0x36e1c8=()=>{const _0x4c87c5=_0xeb189f;_0x37bb1e[_0x4c87c5(0x512)](new Event(_0x4c87c5(0x4bf))),_0x32de0d['next'](new Event('connection\x20error')),_0x5a80fc['close']();};return _0x5a80fc={'memberID':'','close$':_0x32de0d[_0xeb189f(0x32f)](),'error$':_0x37bb1e['asObservable'](),'open$':_0x2f101b[_0xeb189f(0x36e)],'message$':_0x142c34[_0xeb189f(0x32f)](),'send':(_0x22ac73,_0x477ac1)=>{const _0x2fa564=_0xeb189f;if(_0x22ac73[_0x2fa564(0x329)]===o[_0x2fa564(0x291)][_0x2fa564(0x31c)]){if(_0x22ac73['data']['eventID']===n[_0x2fa564(0x33f)]['SUBMIT_CHANGESET']){let _0x221692=this[_0x2fa564(0x4bd)](_0x5a80fc,_0x22ac73['data'],(_0x477ac1==null?void 0x0:_0x477ac1[_0x2fa564(0x29e)])??0x1d4c0);return _0x221692[_0x2fa564(0x4a4)](()=>void 0x0),_0x221692;}if(_0x22ac73[_0x2fa564(0x350)][_0x2fa564(0x2ff)]===n['CollaborationEvent']['FETCH_MISSING']){let _0x2d5ed3=_0x22ac73['data'];this[_0x2fa564(0x4a2)](_0x2d5ed3)[_0x2fa564(0x4b4)](_0x14940a=>{const _0x4114e4=_0x2fa564;_0x142c34[_0x4114e4(0x512)]({'cmd':o[_0x4114e4(0x291)][_0x4114e4(0x540)],'code':o[_0x4114e4(0x2e7)]['OK'],'routeKey':_0x2d5ed3['data']['unitID'],'routeType':'','data':{'eventID':n[_0x4114e4(0x33f)][_0x4114e4(0x412)],'data':{'changesets':_0x14940a}}});})[_0x2fa564(0x4a4)](_0xb532cc=>{const _0x239c31=_0x2fa564;this[_0x239c31(0x41e)][_0x239c31(0x456)](_0xb532cc),_0x36e1c8();});return;}}_0x2f101b[_0x2fa564(0x1d8)](qe(_0x22ac73));},'close':()=>{_0x2f101b['close'](),_0x2e27ea['dispose']();}},_0x5a80fc;}[_0x28bbb9(0x4bd)](_0x1c6bb1,_0x3f4a07,_0x1af040){const _0x6a2fe3=_0x28bbb9;let {unitType:_0x94888,unitID:_0x151f34,changeset:_0x252f48}=_0x3f4a07[_0x6a2fe3(0x350)],_0x4f02cf={'unitID':_0x151f34,'memberID':_0x1c6bb1['memberID'],'type':_0x94888,'changeset':(0x0,n[_0x6a2fe3(0x50d)])(_0x252f48)},_0xd5fe9b=this[_0x6a2fe3(0x2c8)][_0x6a2fe3(0x230)](m),_0xb09f3f=Ye((_0xd5fe9b==null?void 0x0:_0xd5fe9b[_0x6a2fe3(0x542)])??'/universer-api/comb',_0x94888,_0x151f34);return(0x0,t['firstValueFrom'])(this[_0x6a2fe3(0x2a4)][_0x6a2fe3(0x253)]('POST',_0xb09f3f,{'body':_0x4f02cf})[_0x6a2fe3(0x213)]((0x0,t[_0x6a2fe3(0x46f)])(_0x541c99=>_0x541c99[_0x6a2fe3(0x538)]===e[_0x6a2fe3(0x3c4)][_0x6a2fe3(0x2b5)]),(0x0,t[_0x6a2fe3(0x29e)])(_0x1af040)))[_0x6a2fe3(0x4b4)](()=>void 0x0,_0x5b202d=>{const _0x471b3f=_0x6a2fe3;throw this[_0x471b3f(0x41e)]['warn'](_0x471b3f(0x4d0),_0x471b3f(0x504)+_0x252f48['sid']+':'+_0x252f48[_0x471b3f(0x4cd)]+'\x20failed:\x20'+Ze(_0x5b202d)),_0x5b202d;});}async[_0x28bbb9(0x4a2)](_0x3ed87d){const _0x3e6b2f=_0x28bbb9;let {unitID:_0x1959f6,from:_0x4ab51d,to:_0x10c388,unitType:_0x3a2302}=_0x3ed87d[_0x3e6b2f(0x350)];return(await this['_snapshotServerService'][_0x3e6b2f(0x556)]({'metadata':void 0x0},{'unitID':_0x1959f6,'type':_0x3a2302,'from':_0x4ab51d,'to':_0x10c388}))[_0x3e6b2f(0x509)][_0x3e6b2f(0x485)](_0xb2207a=>((_0xb2207a[_0x3e6b2f(0x220)]===null||_0xb2207a[_0x3e6b2f(0x220)]===void 0x0)&&(_0xb2207a['mutations']=[]),_0xb2207a));}};Xe=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,(0x0,r['Inject'])(e['HTTPService'])),y(0x2,r[_0x28bbb9(0x421)]),y(0x3,r[_0x28bbb9(0x369)]),y(0x4,n[_0x28bbb9(0x35f)])],Xe);function Ze(_0x402950){const _0x40a6b7=_0x28bbb9;return _0x402950 instanceof e[_0x40a6b7(0x2b4)]?_0x40a6b7(0x3ab)+(_0x402950['status']??0x0):_0x402950 instanceof Error?_0x402950['name']:String(_0x402950);}const Qe=(0x0,r[_0x28bbb9(0x45b)])('univer-pro.collaboration-client-adapter-service');function $e(_0x305898={}){const _0x8884bc=_0x28bbb9;return _0x305898[_0x8884bc(0x2f1)]?{'resolveUnit':_0x305898[_0x8884bc(0x2f1)]}:{'resolveUnit':_0x23d778=>({'target':{'unitId':_0x23d778[_0x8884bc(0x212)],'unitType':_0x23d778[_0x8884bc(0x3da)]}})};}function et(_0x220e7d,_0xa69128,_0x7b30fa){const _0x31c49a=_0x28bbb9;let _0x349358=_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x1e4)];if(_0x349358!=null&&_0x349358[_0x31c49a(0x4db)]()==='')throw Error(_0x31c49a(0x32e));if(!_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x212)])throw Error(_0x31c49a(0x331));return{'localUnitId':_0x220e7d,'unitType':_0xa69128,'target':{'endpoint':_0x349358,'unitId':_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x212)],'unitType':_0x7b30fa['target'][_0x31c49a(0x3da)]??_0xa69128},'changeset':_0x7b30fa[_0x31c49a(0x2d9)]};}let U=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x1902d7,_0x66e012,_0x4e7bc5,_0x5721dd,_0x4b3e02,_0x307fbf){const _0x45327d=_0x28bbb9;super(),this[_0x45327d(0x475)]=_0x1902d7,this[_0x45327d(0x41e)]=_0x66e012,this[_0x45327d(0x2c8)]=_0x4e7bc5,this[_0x45327d(0x4b8)]=_0x5721dd,this[_0x45327d(0x3b5)]=_0x4b3e02,this[_0x45327d(0x42a)]=_0x307fbf,_(this,_0x45327d(0x1da),new Map()),_(this,'_pendingSessions',new Map()),_(this,_0x45327d(0x344),new Map()),_(this,_0x45327d(0x532),new Map()),_(this,'_networkConditionService',void 0x0),_(this,'socket$',this[_0x45327d(0x450)](void 0x0)[_0x45327d(0x298)][_0x45327d(0x32f)]()),_(this,_0x45327d(0x43a),new t[(_0x45327d(0x45f))](0x0)),_(this,_0x45327d(0x299),this['_status$'][_0x45327d(0x32f)]());}[_0x28bbb9(0x28b)](){const _0x1a7a54=_0x28bbb9;this['_networkConditionService']||(this[_0x1a7a54(0x2b7)]=this[_0x1a7a54(0x475)][_0x1a7a54(0x285)](Ge,r[_0x1a7a54(0x3db)][_0x1a7a54(0x32a)])??void 0x0,this['_networkConditionService']&&this[_0x1a7a54(0x457)](this[_0x1a7a54(0x2b7)]['online$'][_0x1a7a54(0x264)](_0x4c1bfc=>{const _0x44a246=_0x1a7a54;_0x4c1bfc&&this[_0x44a246(0x4d8)](),_0x4c1bfc||this[_0x44a246(0x532)][_0x44a246(0x3e9)](_0x3ac2f3=>this[_0x44a246(0x43e)](_0x3ac2f3));})));}['dispose'](){const _0x2f5c58=_0x28bbb9;super[_0x2f5c58(0x3ac)](),this[_0x2f5c58(0x532)][_0x2f5c58(0x3e9)](_0x3401ea=>{const _0x53eb32=_0x2f5c58;var _0x47465c,_0x5f5ae2,_0x5b3a82;(_0x47465c=_0x3401ea['socketSubscription'])==null||_0x47465c[_0x53eb32(0x3c7)](),_0x3401ea[_0x53eb32(0x3b1)]=null,this[_0x53eb32(0x4f7)](_0x3401ea),this[_0x53eb32(0x52b)](_0x3401ea),this[_0x53eb32(0x235)](_0x3401ea),this['_clearHeartbeatTimer'](_0x3401ea),(_0x5f5ae2=_0x3401ea[_0x53eb32(0x298)][_0x53eb32(0x2cc)]())==null||_0x5f5ae2[_0x53eb32(0x326)](),(_0x5b3a82=_0x3401ea[_0x53eb32(0x42b)])==null||_0x5b3a82[_0x53eb32(0x326)](),_0x3401ea['socket$'][_0x53eb32(0x30f)]();}),this['_socketChannels']['clear'](),this[_0x2f5c58(0x1da)]['forEach'](_0xeb2640=>_0xeb2640[_0x2f5c58(0x3ac)]()),this[_0x2f5c58(0x1da)][_0x2f5c58(0x311)](),this[_0x2f5c58(0x344)]['clear'](),this['_status$'][_0x2f5c58(0x30f)]();}async[_0x28bbb9(0x345)](_0x3a8e0d,_0x57a685){const _0x2cdcd0=_0x28bbb9;if(this['_listenToNetworkCondition'](),this[_0x2cdcd0(0x1da)][_0x2cdcd0(0x546)](_0x3a8e0d))return this['_sessions'][_0x2cdcd0(0x285)](_0x3a8e0d);let _0x30f82c=this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x285)](_0x3a8e0d);if(_0x30f82c)return _0x30f82c;let _0x49cb81=this[_0x2cdcd0(0x3a7)](_0x3a8e0d,_0x57a685);this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x36a)](_0x3a8e0d,_0x49cb81);try{return await _0x49cb81;}finally{this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x551)](_0x3a8e0d);}}async[_0x28bbb9(0x3a7)](_0x2b4116,_0x365054){const _0x4ee3ee=_0x28bbb9;let _0x4ae5da=await this[_0x4ee3ee(0x3e0)](_0x2b4116,_0x365054),_0x2a087e=this[_0x4ee3ee(0x450)](_0x4ae5da[_0x4ee3ee(0x29d)]['endpoint']);this[_0x4ee3ee(0x2f5)](_0x2a087e);let _0x30e04a=this[_0x4ee3ee(0x475)][_0x4ee3ee(0x3e2)](S,_0x4ae5da,_0x2a087e[_0x4ee3ee(0x298)][_0x4ee3ee(0x32f)]());return this['_sessions']['set'](_0x2b4116,_0x30e04a),this[_0x4ee3ee(0x344)][_0x4ee3ee(0x36a)](_0x2b4116,_0x2a087e['endpointKey']),_0x30e04a;}[_0x28bbb9(0x200)](_0x184cdf){const _0x35aa0a=_0x28bbb9;let _0x17c6ff=this[_0x35aa0a(0x1da)]['get'](_0x184cdf),_0x318d82=this[_0x35aa0a(0x344)][_0x35aa0a(0x285)](_0x184cdf);if(_0x17c6ff&&(this[_0x35aa0a(0x1da)]['delete'](_0x184cdf),this['_sessionChannels'][_0x35aa0a(0x551)](_0x184cdf),_0x17c6ff[_0x35aa0a(0x326)]()),_0x318d82!==void 0x0&&!this[_0x35aa0a(0x3f7)](_0x318d82)){let _0x4613aa=this['_socketChannels'][_0x35aa0a(0x285)](_0x318d82);_0x4613aa&&this[_0x35aa0a(0x43e)](_0x4613aa);}}[_0x28bbb9(0x4d8)](){const _0x161149=_0x28bbb9;(this[_0x161149(0x532)][_0x161149(0x1e8)]?[...this[_0x161149(0x532)][_0x161149(0x2fe)]()]:[this[_0x161149(0x450)](void 0x0)])[_0x161149(0x3e9)](_0x5e59bc=>{const _0x3f50a2=_0x161149;!this[_0x3f50a2(0x3f7)](_0x5e59bc[_0x3f50a2(0x281)])||_0x5e59bc['socketReady']||_0x5e59bc[_0x3f50a2(0x42b)]||_0x5e59bc['connectionAttempt']||(_0x5e59bc[_0x3f50a2(0x2ec)]=0x0,this[_0x3f50a2(0x52b)](_0x5e59bc),this[_0x3f50a2(0x530)](_0x5e59bc));});}['_clearRetryConnectingTimer'](_0x3bdcbe){const _0x4239dd=_0x28bbb9;_0x3bdcbe[_0x4239dd(0x46d)]!=null&&(clearTimeout(_0x3bdcbe[_0x4239dd(0x46d)]),_0x3bdcbe['retryConnectingTimer']=null);}[_0x28bbb9(0x4c9)](_0x564de5){const _0x5adf1a=_0x28bbb9;let _0x591b84=this[_0x5adf1a(0x2c8)][_0x5adf1a(0x230)](m),_0x3f05d9=_0x564de5[_0x5adf1a(0x1e4)]??(_0x591b84==null?void 0x0:_0x591b84[_0x5adf1a(0x1e7)])??_0x5adf1a(0x565);return this['_socketService'][_0x5adf1a(0x3fe)](_0x3f05d9);}async[_0x28bbb9(0x2f5)](_0xb291a4){const _0x53c5c7=_0x28bbb9;var _0x59476c;if(this[_0x53c5c7(0x1c7)]||((_0x59476c=this[_0x53c5c7(0x2b7)])==null?void 0x0:_0x59476c['online'])===!0x1||_0xb291a4[_0x53c5c7(0x52e)]||_0xb291a4[_0x53c5c7(0x42b)]||_0xb291a4[_0x53c5c7(0x3a0)])return;let _0x57df96={};_0xb291a4[_0x53c5c7(0x3a0)]=_0x57df96;try{let _0x76c655=await this[_0x53c5c7(0x4c9)](_0xb291a4);if(this[_0x53c5c7(0x1c7)]||_0xb291a4[_0x53c5c7(0x3a0)]!==_0x57df96){_0x76c655==null||_0x76c655[_0x53c5c7(0x326)]();return;}if(_0x76c655){var _0x38e425;_0xb291a4[_0x53c5c7(0x42b)]=_0x76c655,_0xb291a4['handshakeTimer']=setTimeout(()=>{const _0x552894=_0x53c5c7;!this['_disposed']&&_0xb291a4['candidateSocket']===_0x76c655&&this[_0x552894(0x244)](_0xb291a4);},0x4e20);let _0x2e0456=_0x76c655[_0x53c5c7(0x1d8)];_0x76c655[_0x53c5c7(0x1d8)]=(_0x1a6a53,_0x386b31)=>(_0x1a6a53[_0x53c5c7(0x329)]!==o['CombCmd']['LEAVE']&&!tt(_0x1a6a53)&&_0xb291a4['socketReady']&&_0xb291a4[_0x53c5c7(0x298)][_0x53c5c7(0x2cc)]()===_0x76c655&&this[_0x53c5c7(0x1fe)](_0xb291a4),_0x386b31===void 0x0?_0x2e0456[_0x53c5c7(0x446)](_0x76c655,_0x1a6a53):_0x2e0456[_0x53c5c7(0x446)](_0x76c655,_0x1a6a53,_0x386b31)),(_0x38e425=_0xb291a4[_0x53c5c7(0x3b1)])==null||_0x38e425[_0x53c5c7(0x3c7)]();let _0x2010cf=new t[(_0x53c5c7(0x23a))]();_0xb291a4[_0x53c5c7(0x3b1)]=_0x2010cf,_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655['message$'][_0x53c5c7(0x264)](_0x6ef193=>this[_0x53c5c7(0x488)](_0xb291a4,_0x76c655,_0x6ef193))),_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655[_0x53c5c7(0x39c)][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](_0x4ae2c2=>this[_0x53c5c7(0x41e)][_0x53c5c7(0x456)](_0x53c5c7(0x229),_0x4ae2c2))),_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655['open$'][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](()=>{const _0x1cac00=_0x53c5c7;this[_0x1cac00(0x4ea)](_0xb291a4,_0x76c655);})),_0x2010cf['add'](_0x76c655[_0x53c5c7(0x1f8)][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](_0x8b2514=>{const _0x208d06=_0x53c5c7;(_0xb291a4['candidateSocket']===_0x76c655||_0xb291a4[_0x208d06(0x298)][_0x208d06(0x2cc)]()===_0x76c655)&&(this[_0x208d06(0x41e)][_0x208d06(0x2ba)]('[CollaborationSessionService]','socket\x20close',_0x8b2514),this[_0x208d06(0x244)](_0xb291a4));}));}}catch(_0x11ab9b){if(_0xb291a4[_0x53c5c7(0x3a0)]!==_0x57df96)return;this[_0x53c5c7(0x41e)][_0x53c5c7(0x456)](_0x11ab9b),this[_0x53c5c7(0x244)](_0xb291a4);}finally{_0xb291a4[_0x53c5c7(0x3a0)]===_0x57df96&&(_0xb291a4[_0x53c5c7(0x3a0)]=null);}}[_0x28bbb9(0x4ea)](_0x3dd350,_0x38de64){const _0x1a5218=_0x28bbb9;this['_disposed']||_0x3dd350['candidateSocket']!==_0x38de64||(this[_0x1a5218(0x41e)]['debug'](_0x1a5218(0x1cf),_0x1a5218(0x3cf)),_0x38de64['send']({'cmd':o['CombCmd']['HELLO']}));}[_0x28bbb9(0x43e)](_0x7fdcb6){const _0x4275c3=_0x28bbb9;var _0x5ea74d;let _0x2d9c4f=_0x7fdcb6[_0x4275c3(0x298)][_0x4275c3(0x2cc)]()??_0x7fdcb6[_0x4275c3(0x42b)];_0x7fdcb6[_0x4275c3(0x3a0)]=null,_0x7fdcb6[_0x4275c3(0x52e)]=!0x1,_0x7fdcb6[_0x4275c3(0x42b)]=null,(_0x5ea74d=_0x7fdcb6[_0x4275c3(0x3b1)])==null||_0x5ea74d[_0x4275c3(0x3c7)](),_0x7fdcb6[_0x4275c3(0x3b1)]=null,this['_status$'][_0x4275c3(0x512)](0x2),_0x7fdcb6['socket$']['next'](null),this[_0x4275c3(0x52b)](_0x7fdcb6),this[_0x4275c3(0x4f7)](_0x7fdcb6),this[_0x4275c3(0x235)](_0x7fdcb6),this['_clearHeartbeatTimer'](_0x7fdcb6),_0x2d9c4f==null||_0x2d9c4f[_0x4275c3(0x326)]();}['_onConnectionFailed'](_0x4db6e7){const _0x4581d3=_0x28bbb9;var _0x4bda13;this[_0x4581d3(0x43e)](_0x4db6e7),!this[_0x4581d3(0x1c7)]&&((_0x4bda13=this[_0x4581d3(0x2b7)])==null?void 0x0:_0x4bda13[_0x4581d3(0x2f6)])!==!0x1&&this[_0x4581d3(0x3f7)](_0x4db6e7['endpointKey'])&&(_0x4db6e7['retryCount']<(this[_0x4581d3(0x2c8)]['getConfig'](_0x4581d3(0x303))??0x3)?(this[_0x4581d3(0x3b5)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x4581d3(0x530)](_0x4db6e7)):this[_0x4581d3(0x3b5)]['emitEvent']({'id':'SOCKET_FAILED'}));}[_0x28bbb9(0x530)](_0x3a3841){const _0x5da755=_0x28bbb9;let _0x4b888e=_0x3a3841[_0x5da755(0x2ec)],_0x4ea66c=this['_configService'][_0x5da755(0x230)](m),_0x4bee2a=_0x4b888e===0x0?0x0:((_0x4ea66c==null?void 0x0:_0x4ea66c[_0x5da755(0x53e)])??0x4e20)*0x2**_0x4b888e;_0x3a3841[_0x5da755(0x46d)]=setTimeout(()=>{const _0x3ed724=_0x5da755;clearTimeout(_0x3a3841[_0x3ed724(0x46d)]),_0x3a3841['retryConnectingTimer']=null,this[_0x3ed724(0x2f5)](_0x3a3841);},_0x4bee2a),_0x3a3841[_0x5da755(0x2ec)]+=0x1;}async[_0x28bbb9(0x3e0)](_0x3ecd08,_0x3a55c0){const _0x454d61=_0x28bbb9;return et(_0x3ecd08,_0x3a55c0,await this[_0x454d61(0x42a)][_0x454d61(0x2f1)]({'unitId':_0x3ecd08,'unitType':_0x3a55c0}));}['_onMessage'](_0x5cf24f,_0xbce756,_0x35de7c){const _0x4e9d52=_0x28bbb9;if(this[_0x4e9d52(0x1c7)]||_0x5cf24f[_0x4e9d52(0x42b)]!==_0xbce756&&_0x5cf24f['socket$']['getValue']()!==_0xbce756)return;let {cmd:_0x28a626}=_0x35de7c;if(_0x28a626===o[_0x4e9d52(0x291)]['HELLO']&&!_0x5cf24f['socketReady']){var _0x4f53c2;if((_0x35de7c[_0x4e9d52(0x4d2)]??o[_0x4e9d52(0x2e7)]['OK'])!==o[_0x4e9d52(0x2e7)]['OK']||!((_0x4f53c2=_0x35de7c[_0x4e9d52(0x350)])!=null&&_0x4f53c2[_0x4e9d52(0x362)])){this[_0x4e9d52(0x244)](_0x5cf24f);return;}this[_0x4e9d52(0x4f7)](_0x5cf24f),_0xbce756['memberID']=_0x35de7c['data'][_0x4e9d52(0x362)],_0x5cf24f['retryCount']=0x0,_0x5cf24f[_0x4e9d52(0x52e)]=!0x0,_0x5cf24f[_0x4e9d52(0x42b)]=null,_0x5cf24f[_0x4e9d52(0x298)]['next'](_0xbce756),this[_0x4e9d52(0x43a)][_0x4e9d52(0x512)](0x3);}_0x28a626===o[_0x4e9d52(0x291)][_0x4e9d52(0x499)]&&this[_0x4e9d52(0x235)](_0x5cf24f),this[_0x4e9d52(0x1fe)](_0x5cf24f);}[_0x28bbb9(0x3f7)](_0x267143){const _0x36e9ac=_0x28bbb9;return[...this[_0x36e9ac(0x344)][_0x36e9ac(0x2fe)]()][_0x36e9ac(0x33e)](_0x28494e=>_0x28494e===_0x267143);}[_0x28bbb9(0x450)](_0x5ed8dd){const _0x49e4e5=_0x28bbb9;let _0x6eecfd=_0x5ed8dd??'',_0x282c62=this[_0x49e4e5(0x532)][_0x49e4e5(0x285)](_0x6eecfd);if(_0x282c62)return _0x282c62;let _0x4c34b8={'endpointKey':_0x6eecfd,'endpoint':_0x5ed8dd,'socket$':new t[(_0x49e4e5(0x45f))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x49e4e5(0x36a)](_0x6eecfd,_0x4c34b8),_0x4c34b8;}[_0x28bbb9(0x4f7)](_0x851f3f){const _0x58a14a=_0x28bbb9;_0x851f3f[_0x58a14a(0x2e6)]!=null&&(clearTimeout(_0x851f3f[_0x58a14a(0x2e6)]),_0x851f3f['handshakeTimer']=null);}[_0x28bbb9(0x1fe)](_0x2a2bde){const _0xeff5bb=_0x28bbb9;this['_clearHeartbeatTimer'](_0x2a2bde),_0x2a2bde['socketReady']&&(_0x2a2bde[_0xeff5bb(0x21e)]=setTimeout(()=>this[_0xeff5bb(0x43b)](_0x2a2bde),this[_0xeff5bb(0x2c8)][_0xeff5bb(0x230)]('HEARTBEAT_INTERVAL')??0x7530));}[_0x28bbb9(0x43b)](_0x50f77d){const _0x2a3ca0=_0x28bbb9;let _0x43ead1=_0x50f77d[_0x2a3ca0(0x298)][_0x2a3ca0(0x2cc)]();_0x50f77d['socketReady']&&_0x43ead1&&(_0x43ead1[_0x2a3ca0(0x1d8)]({'cmd':o[_0x2a3ca0(0x291)]['HEARTBEAT']}),this[_0x2a3ca0(0x403)](_0x50f77d));}['_waitForHeartbeatResponse'](_0x324ba7){const _0x21637b=_0x28bbb9;_0x324ba7[_0x21637b(0x2b3)]=setTimeout(()=>this['_onConnectionFailed'](_0x324ba7),this['_configService']['getConfig'](_0x21637b(0x269))??0x4e20);}[_0x28bbb9(0x252)](_0x3b0c3a){const _0x1cc49d=_0x28bbb9;_0x3b0c3a[_0x1cc49d(0x21e)]!=null&&(clearTimeout(_0x3b0c3a['sendHeartbeatTimer']),_0x3b0c3a[_0x1cc49d(0x21e)]=null);}[_0x28bbb9(0x235)](_0x5c962e){const _0x12acbe=_0x28bbb9;_0x5c962e['timeoutTimer']!=null&&(clearTimeout(_0x5c962e[_0x12acbe(0x2b3)]),_0x5c962e[_0x12acbe(0x2b3)]=null);}};function _0x53d0(_0x58f3f8,_0x3d0e11){_0x58f3f8=_0x58f3f8-0x1b5;const _0x175792=_0x1757();let _0x53d08b=_0x175792[_0x58f3f8];return _0x53d08b;}U=b([y(0x0,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x1,r[_0x28bbb9(0x369)]),y(0x2,r['IConfigService']),y(0x3,Je),y(0x4,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x5,Qe)],U);function tt(_0x4aca3e){const _0x11626c=_0x28bbb9;if(_0x4aca3e[_0x11626c(0x329)]!==o[_0x11626c(0x291)][_0x11626c(0x31c)])return!0x1;let _0x223e63=_0x4aca3e[_0x11626c(0x350)]['eventID'];return _0x223e63===n[_0x11626c(0x33f)][_0x11626c(0x296)]||_0x223e63===n['CollaborationEvent']['FETCH_MISSING'];}let W=class extends r[_0x28bbb9(0x22c)]{constructor(_0x1a718a,_0x1bbfde,_0x421e46,_0x39e6e4){const _0x473404=_0x28bbb9;var _0x19c178;super(),this[_0x473404(0x475)]=_0x1a718a,this['_collabSessionService']=_0x1bbfde,this[_0x473404(0x2c8)]=_0x421e46,this['_univerInstanceService']=_0x39e6e4,_(this,_0x473404(0x21c),new Map()),_(this,_0x473404(0x26c),new t[(_0x473404(0x39a))]()),_(this,_0x473404(0x513),this[_0x473404(0x26c)][_0x473404(0x32f)]()),((_0x19c178=this[_0x473404(0x2c8)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x19c178[_0x473404(0x53c)])!==!0x1&&this['_init']();}[_0x28bbb9(0x3ac)](){const _0x462d2b=_0x28bbb9;super['dispose'](),this[_0x462d2b(0x21c)][_0x462d2b(0x3e9)](_0x29c404=>_0x29c404[_0x462d2b(0x3ac)]()),this['_entities'][_0x462d2b(0x311)]();}[_0x28bbb9(0x4c6)](_0x1d3b62){const _0x519ab7=_0x28bbb9;return this[_0x519ab7(0x21c)][_0x519ab7(0x285)](_0x1d3b62)??null;}[_0x28bbb9(0x294)](){const _0x4a739b=_0x28bbb9;return Array[_0x4a739b(0x3f8)](this[_0x4a739b(0x21c)][_0x4a739b(0x2fe)]());}[_0x28bbb9(0x2fd)](_0xdcb763){const _0x1d5258=_0x28bbb9;let _0x53c029=this[_0x1d5258(0x4c6)](_0xdcb763);return _0x53c029?(0x0,t['of'])(_0x53c029):this[_0x1d5258(0x26c)][_0x1d5258(0x213)]((0x0,c[_0x1d5258(0x46f)])(_0xe74755=>_0xe74755['unitID']===_0xdcb763));}[_0x28bbb9(0x22e)](_0x112f50){const _0x566905=_0x28bbb9;return(0x0,t['firstValueFrom'])(this[_0x566905(0x2fd)](_0x112f50)[_0x566905(0x213)]((0x0,c[_0x566905(0x485)])(()=>void 0x0)));}[_0x28bbb9(0x207)](_0xb7b911){const _0x38af60=_0x28bbb9;if(_0xb7b911!==void 0x0){var _0xf95834;return((_0xf95834=this[_0x38af60(0x21c)]['get'](_0xb7b911))==null?void 0x0:_0xf95834[_0x38af60(0x207)]())??!0x1;}for(let _0x3380ea of this[_0x38af60(0x21c)][_0x38af60(0x2fe)]())if(_0x3380ea[_0x38af60(0x207)]())return!0x0;return!0x1;}[_0x28bbb9(0x240)](){const _0x47900f=_0x28bbb9;this[_0x47900f(0x4b7)]['getTypeOfUnitAdded$'](r[_0x47900f(0x24b)]['UNIVER_SHEET'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x1712f0=>{const _0x436c49=_0x47900f;let _0x474a9e=_0x1712f0[_0x436c49(0x54f)][_0x436c49(0x3e7)](),_0x28dd4b=await this[_0x436c49(0x341)](_0x474a9e,r[_0x436c49(0x24b)][_0x436c49(0x486)]);this[_0x436c49(0x21c)]['set'](_0x474a9e,_0x28dd4b);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_DOC'])[_0x47900f(0x213)]((0x0,t['takeUntil'])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x213)]((0x0,c[_0x47900f(0x46f)])(_0x389b76=>!_0x389b76[_0x47900f(0x54f)][_0x47900f(0x3e7)]()['startsWith']('__')))['subscribe'](async _0xf6ec7=>{const _0x3d7702=_0x47900f;let _0x3e7097=_0xf6ec7['unit'][_0x3d7702(0x3e7)](),_0x1007e1=await this[_0x3d7702(0x341)](_0x3e7097,r[_0x3d7702(0x24b)]['UNIVER_DOC']);this[_0x3d7702(0x21c)][_0x3d7702(0x36a)](_0x3e7097,_0x1007e1);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_SLIDE'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x541d8a=>{const _0x493de4=_0x47900f;let _0x2834b1=_0x541d8a['unit'][_0x493de4(0x3e7)](),_0x73e1e1=await this[_0x493de4(0x341)](_0x2834b1,r[_0x493de4(0x24b)]['UNIVER_SLIDE']);this['_entities'][_0x493de4(0x36a)](_0x2834b1,_0x73e1e1);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r['UniverInstanceType']['UNIVER_BOARD'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c['delay'])(0x10))[_0x47900f(0x264)](async _0x2bd0bb=>{const _0x246475=_0x47900f;let _0x1acfe4=_0x2bd0bb[_0x246475(0x54f)]['getUnitId'](),_0x575d9c=await this['_startCollaboration'](_0x1acfe4,r['UniverInstanceType'][_0x246475(0x449)]);this['_entities'][_0x246475(0x36a)](_0x1acfe4,_0x575d9c);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)][_0x47900f(0x3bb)])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c['delay'])(0x10))['subscribe'](async _0x38af90=>{const _0x57cdb2=_0x47900f;let _0xbdbad=_0x38af90[_0x57cdb2(0x54f)]['getUnitId'](),_0x3f86c5=await this[_0x57cdb2(0x341)](_0xbdbad,r[_0x57cdb2(0x24b)][_0x57cdb2(0x3bb)]);this['_entities'][_0x57cdb2(0x36a)](_0xbdbad,_0x3f86c5);}),this['_univerInstanceService'][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_PDF'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this['dispose$']),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x5bc2f4=>{const _0x3f6d9c=_0x47900f;let _0x1c5865=_0x5bc2f4[_0x3f6d9c(0x54f)][_0x3f6d9c(0x3e7)](),_0x195756=await this[_0x3f6d9c(0x341)](_0x1c5865,r[_0x3f6d9c(0x24b)][_0x3f6d9c(0x367)]);this[_0x3f6d9c(0x21c)]['set'](_0x1c5865,_0x195756);}),(0x0,t[_0x47900f(0x3e1)])(this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r['UniverInstanceType'][_0x47900f(0x486)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r['UniverInstanceType'][_0x47900f(0x297)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x405)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x449)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x3bb)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x367)]))['pipe']((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]))[_0x47900f(0x264)](_0x2dd825=>{const _0x39a13b=_0x47900f;let _0x218092=_0x2dd825['getUnitId'](),_0x507cb7=this['_entities']['get'](_0x218092);_0x507cb7&&(_0x507cb7[_0x39a13b(0x3ac)](),this[_0x39a13b(0x21c)]['delete'](_0x218092));});}async[_0x28bbb9(0x341)](_0x5c4921,_0x58ca0b){const _0x663165=_0x28bbb9;let _0x359cb8=await this['_collabSessionService'][_0x663165(0x345)](_0x5c4921),_0xa34501=this[_0x663165(0x475)][_0x663165(0x3e2)](this[_0x663165(0x23c)](_0x58ca0b),_0x5c4921,_0x58ca0b,_0x359cb8);return await _0xa34501['init'](),this[_0x663165(0x26c)]['next'](_0xa34501),_0xa34501;}[_0x28bbb9(0x23c)](_0x4b3b9b){const _0x2fe2cc=_0x28bbb9;switch(_0x4b3b9b){case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x297)]:return L;case r['UniverInstanceType'][_0x2fe2cc(0x486)]:return z;case r['UniverInstanceType']['UNIVER_SLIDE']:return B;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x449)]:return V;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x3bb)]:return R;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x367)]:return H;default:throw Error(_0x2fe2cc(0x404)+_0x4b3b9b);}}};W=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(U)),y(0x2,r[_0x28bbb9(0x421)]),y(0x3,r[_0x28bbb9(0x51c)])],W);var nt=_0x28bbb9(0x36f),rt='1.2.0';let it=class extends r['Disposable']{constructor(_0x311fb8,_0x4e69f4){const _0x4a899b=_0x28bbb9;super(),this['_univerInstanceService']=_0x311fb8,this[_0x4a899b(0x2c8)]=_0x4e69f4,this[_0x4a899b(0x240)]();}[_0x28bbb9(0x240)](){const _0x2c3dea=_0x28bbb9;this['disposeWithMe'](this['_univerInstanceService'][_0x2c3dea(0x352)][_0x2c3dea(0x264)](()=>{const _0x318ffb=_0x2c3dea;let _0x3da952=this[_0x318ffb(0x4b7)][_0x318ffb(0x424)](),_0x18815f=this['_configService'][_0x318ffb(0x230)](_0x318ffb(0x2fb))??_0x318ffb(0x1fa);_0x3da952 instanceof r[_0x318ffb(0x218)]&&(_0x18815f=_0x3da952[_0x318ffb(0x234)]),document['title']=_0x18815f;}));}};it=b([y(0x0,r[_0x28bbb9(0x51c)]),y(0x1,r['IConfigService'])],it);const at=(0x0,r['createIdentifier'])(_0x28bbb9(0x243));let G=class{constructor(_0x3764be,_0xc7075e,_0x19ca76){const _0x4b6d1b=_0x28bbb9;this[_0x4b6d1b(0x2a4)]=_0x3764be,this[_0x4b6d1b(0x2c8)]=_0xc7075e,this[_0x4b6d1b(0x4b7)]=_0x19ca76;}['getUploadOptions'](){const _0x19d827=_0x28bbb9;return this[_0x19d827(0x3c0)]()[_0x19d827(0x29f)]??{};}async[_0x28bbb9(0x2aa)](_0x10813b){const _0x1ca5eb=_0x28bbb9;let _0x1fd27b=this[_0x1ca5eb(0x436)]();if(ot(_0x10813b,_0x1fd27b),_0x1fd27b[_0x1ca5eb(0x469)])return _0x1fd27b['upload'](_0x10813b);let _0x4ea171=await this[_0x1ca5eb(0x401)](_0x10813b);return{'id':_0x4ea171,'name':_0x10813b[_0x1ca5eb(0x234)],'mimeType':_0x10813b[_0x1ca5eb(0x538)],'size':_0x10813b['size'],'sourceType':r['ImageSourceType']['UUID'],'source':_0x4ea171};}async[_0x28bbb9(0x511)](_0x7de473,_0x4025fa){const _0x54f1e7=_0x28bbb9;if(_0x4025fa!==r['ImageSourceType'][_0x54f1e7(0x1d3)])return _0x7de473;let _0x148238=(await this[_0x54f1e7(0x2a4)]['get'](this[_0x54f1e7(0x2ef)]()['replace'](_0x54f1e7(0x544),_0x7de473)))[_0x54f1e7(0x340)];if(_0x148238[_0x54f1e7(0x456)]&&_0x148238[_0x54f1e7(0x456)][_0x54f1e7(0x4d2)]!==o[_0x54f1e7(0x1b7)]['OK'])throw _0x148238['error'];if(!_0x148238[_0x54f1e7(0x31d)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,r[_0x54f1e7(0x28c)])(_0x148238[_0x54f1e7(0x31d)],this['_getDownloadEndpointURL']());}async['_upload'](_0x1b4378){const _0x3faab4=_0x28bbb9;let _0x5ae676=this[_0x3faab4(0x4b7)][_0x3faab4(0x424)](),_0x67e9ef=_0x5ae676==null?void 0x0:_0x5ae676[_0x3faab4(0x3e7)]();if(!_0x67e9ef)throw Error(_0x3faab4(0x38a));let _0x4fecf9=new FormData();_0x4fecf9[_0x3faab4(0x1ef)](_0x3faab4(0x246),_0x1b4378);let _0x28c2e9=this['_getUploadFileURL']()+_0x3faab4(0x2cf)+_0x1b4378['size'][_0x3faab4(0x4c0)]()+_0x3faab4(0x2fc)+o['FileSource'][_0x3faab4(0x43d)]+'&assign='+encodeURIComponent(_0x67e9ef),_0x5206d0=(await this['_httpService'][_0x3faab4(0x36b)](_0x28c2e9,{'body':_0x4fecf9}))[_0x3faab4(0x340)][_0x3faab4(0x217)];if(typeof _0x5206d0!=_0x3faab4(0x2d4)||!_0x5206d0)throw Error(_0x3faab4(0x50b));return _0x5206d0;}[_0x28bbb9(0x516)](){const _0x59cb40=_0x28bbb9;return this['_getConfig']()['uploadFileServerUrl']??_0x59cb40(0x1c2);}[_0x28bbb9(0x2ef)](){const _0x2935eb=_0x28bbb9;return this[_0x2935eb(0x3c0)]()[_0x2935eb(0x2af)]??_0x2935eb(0x545);}[_0x28bbb9(0x3df)](){const _0x2b9418=_0x28bbb9;let _0x31280c=this[_0x2b9418(0x3c0)]();return _0x31280c[_0x2b9418(0x380)]?_0x31280c[_0x2b9418(0x380)]:typeof location<'u'?location[_0x2b9418(0x2e3)]:_0x31280c['uploadFileServerUrl']??'';}[_0x28bbb9(0x3c0)](){const _0x332fce=_0x28bbb9;return this['_configService'][_0x332fce(0x230)]('collaboration-client.config')??{};}};G=b([y(0x0,(0x0,r['Inject'])(e['HTTPService'])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(r['IConfigService'])),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x51c)]))],G);function ot(_0x2b8fab,_0x5d71b1){const _0x298d70=_0x28bbb9;var _0x4fde8c;if(_0x5d71b1['maxSize']!=null&&_0x2b8fab[_0x298d70(0x1e8)]>_0x5d71b1[_0x298d70(0x3fb)])throw Error(_0x298d70(0x1b8));if((_0x4fde8c=_0x5d71b1['accept'])!=null&&_0x4fde8c[_0x298d70(0x47a)]&&!_0x5d71b1['accept'][_0x298d70(0x33e)](_0x49e26b=>_0x2b8fab[_0x298d70(0x538)]===_0x49e26b||_0x2b8fab[_0x298d70(0x234)][_0x298d70(0x4d4)](_0x49e26b)||_0x49e26b['endsWith']('/*')&&_0x2b8fab[_0x298d70(0x538)][_0x298d70(0x4dd)](_0x49e26b[_0x298d70(0x4e6)](0x0,-0x1))))throw Error(_0x298d70(0x250));}let K=class{constructor(_0x5c9d87,_0x492847,_0x3b7d79){const _0x59ff52=_0x28bbb9;this[_0x59ff52(0x2c8)]=_0x5c9d87,this[_0x59ff52(0x2a4)]=_0x492847,this['localeService']=_0x3b7d79,this['init']();}[_0x28bbb9(0x354)](){const _0x228ecc=_0x28bbb9;this[_0x228ecc(0x2a4)][_0x228ecc(0x49d)]({'priority':0x1,'interceptor':(_0x187b0e,_0x3920d7)=>_0x3920d7(_0x187b0e)[_0x228ecc(0x213)]((0x0,t[_0x228ecc(0x209)])(async _0x2674b3=>{const _0x199eaa=_0x228ecc;let _0x173d3d=_0x2674b3;if(_0x173d3d[_0x199eaa(0x290)]===0x191){if(typeof window>'u')throw Error(_0x199eaa(0x528));if(window[_0x199eaa(0x3ea)](this[_0x199eaa(0x2ea)]['t'](_0x199eaa(0x557)))){let _0x538e03=window[_0x199eaa(0x2d2)](window[_0x199eaa(0x24e)][_0x199eaa(0x289)]);window[_0x199eaa(0x24e)][_0x199eaa(0x289)]=this[_0x199eaa(0x386)]()+_0x199eaa(0x496)+_0x538e03;}}return _0x173d3d;}))});}[_0x28bbb9(0x386)](){const _0x9b14dc=_0x28bbb9;let _0x57221b=this[_0x9b14dc(0x2c8)]['getConfig'](m);return(_0x57221b==null?void 0x0:_0x57221b[_0x9b14dc(0x47d)])??_0x9b14dc(0x411);}};K=b([y(0x0,r[_0x28bbb9(0x421)]),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)])),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)]))],K);let q=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x366185,_0x3df6f1){const _0x3adc49=_0x28bbb9;super(),this[_0x3adc49(0x24d)]=_0x366185,this[_0x3adc49(0x2c8)]=_0x3df6f1,_(this,_0x3adc49(0x2cb),!0x1),this[_0x3adc49(0x4ce)]();}[_0x28bbb9(0x4ce)](){const _0xced2c5=_0x28bbb9;let _0x357be2=this;this['disposeWithMe'](this[_0xced2c5(0x24d)][_0xced2c5(0x49d)]({'priority':0x3e7,'interceptor':(0x0,e[_0xced2c5(0x343)])({'isMatch'(_0x39d9bb){const _0x40607e=_0xced2c5;var _0x1cc6e8;if(_0x39d9bb['method']===_0x40607e(0x26d)&&(_0x1cc6e8=_0x39d9bb[_0x40607e(0x26f)])!=null&&_0x1cc6e8[_0x40607e(0x340)]){let {objectID:_0x7945e1,objectType:_0x398b21}=_0x39d9bb[_0x40607e(0x26f)][_0x40607e(0x340)]||{};if(!_0x7945e1||_0x398b21===void 0x0)return!0x1;let _0x540d2a=_0x357be2['_getAPIPrefixPath']()+'/'+_0x398b21+_0x40607e(0x239)+encodeURIComponent(_0x7945e1)+_0x40607e(0x2a9);if(_0x39d9bb[_0x40607e(0x31d)]===_0x540d2a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2f496e){const _0x21f29a=_0xced2c5;var _0x78438;return(_0x78438=_0x2f496e['requestParams'])==null?void 0x0:_0x78438[_0x21f29a(0x340)];},'mergeParamsToRequest'(_0x3956ea,_0x4c231c){const _0x5e81e3=_0xced2c5;let _0xb0b62e=_0x357be2[_0x5e81e3(0x2e1)]()+_0x5e81e3(0x4ba),_0x5cd883=_0x3956ea[_0x5e81e3(0x3b9)]((_0x21b407,_0x153a6f)=>{const _0x2afc16=_0x5e81e3;let {unitID:_0x46efd6,objectID:_0x3ec70c,objectType:_0x21496f,actions:_0x449bb8}=_0x153a6f;return _0x21b407[_0x46efd6]||(_0x21b407[_0x46efd6]=Object['create'](null)),_0x21b407[_0x46efd6][_0x3ec70c]||(_0x21b407[_0x46efd6][_0x3ec70c]={'objectID':_0x3ec70c,'objectType':_0x21496f,'actions':[]}),_0x21b407[_0x46efd6][_0x3ec70c][_0x2afc16(0x3d1)][_0x2afc16(0x4ec)](..._0x449bb8),_0x21b407;},Object[_0x5e81e3(0x501)](null)),_0x6e32f9=[];for(let _0x10fc56 in _0x5cd883)for(let _0x4341be in _0x5cd883[_0x10fc56]){let {actions:_0x416f17,objectType:_0x7a8dc6}=_0x5cd883[_0x10fc56][_0x4341be],_0x6d2525=[...new Set(_0x416f17)];_0x6e32f9[_0x5e81e3(0x4ec)]({'unitID':_0x10fc56,'objectID':_0x4341be,'objectType':_0x7a8dc6,'actions':_0x6d2525});}return new e[(_0x5e81e3(0x28d))]('POST',_0xb0b62e,{'headers':_0x4c231c['headers'],'withCredentials':_0x4c231c[_0x5e81e3(0x4de)],'responseType':_0x4c231c['responseType'],'body':{'requests':_0x6e32f9}});}},{'distributeResult'(_0x4f768b,_0x427454){const _0x516681=_0xced2c5;let {objectActions:_0x3285f5}=_0x4f768b;return _0x427454[_0x516681(0x485)](_0x29d219=>{const _0x45fa89=_0x516681;let {unitID:_0xe9e810,objectID:_0x53cdfe,actions:_0x38d139}=_0x29d219,_0x19f829=_0x3285f5[_0x45fa89(0x552)](_0x59f698=>_0x59f698[_0x45fa89(0x2e9)]===_0xe9e810&&_0x59f698[_0x45fa89(0x242)]===_0x53cdfe);return{'config':_0x29d219,'result':{'actions':_0x38d139[_0x45fa89(0x485)](_0x2ab671=>_0x19f829==null?void 0x0:_0x19f829[_0x45fa89(0x3d1)][_0x45fa89(0x552)](_0x311165=>_0x311165[_0x45fa89(0x4c1)]===_0x2ab671))[_0x45fa89(0x46f)](_0xb50ffc=>!!_0xb50ffc),'error':_0x4f768b[_0x45fa89(0x456)]}};});}})}));}[_0x28bbb9(0x2e1)](){const _0x2486ba=_0x28bbb9;let _0x8aa7df=this[_0x2486ba(0x2c8)]['getConfig'](m);return(_0x8aa7df==null?void 0x0:_0x8aa7df[_0x2486ba(0x4d5)])??_0x2486ba(0x4fa);}async[_0x28bbb9(0x501)](_0x11d25d){const _0x4fc330=_0x28bbb9;let _0x679600=this[_0x4fc330(0x2e1)]()+'/'+_0x11d25d[_0x4fc330(0x277)]+_0x4fc330(0x1b6);return(await this[_0x4fc330(0x24d)][_0x4fc330(0x36b)](_0x679600,{'body':_0x11d25d}))[_0x4fc330(0x340)][_0x4fc330(0x242)]||'';}async['list'](_0x82ae19){const _0x30fb20=_0x28bbb9;let _0x514190=this[_0x30fb20(0x2e1)]()+_0x30fb20(0x408);return(await this['_HTTPService'][_0x30fb20(0x36b)](_0x514190,{'body':_0x82ae19}))['body'][_0x30fb20(0x214)];}async['update'](_0x161520){const _0x195370=_0x28bbb9;var _0x5b5726;let _0x596022=this[_0x195370(0x2e1)]()+'/'+_0x161520[_0x195370(0x277)]+_0x195370(0x239)+encodeURIComponent(_0x161520[_0x195370(0x242)]),_0x38b23f=await this[_0x195370(0x24d)]['put'](_0x596022,{'body':_0x161520});if((_0x38b23f==null||(_0x5b5726=_0x38b23f[_0x195370(0x340)])==null||(_0x5b5726=_0x5b5726[_0x195370(0x456)])==null?void 0x0:_0x5b5726[_0x195370(0x4d2)])!==0x1)throw Error(_0x195370(0x4e5));}async[_0x28bbb9(0x3f4)](_0x55268f){const _0x1c6e2a=_0x28bbb9;let _0x21a8b7=this['_getAPIPrefixPath']()+'/'+_0x55268f[_0x1c6e2a(0x277)]+_0x1c6e2a(0x239)+encodeURIComponent(_0x55268f['objectID'])+'/allowed';return(await this[_0x1c6e2a(0x24d)]['post'](_0x21a8b7,{'body':_0x55268f}))[_0x1c6e2a(0x340)][_0x1c6e2a(0x3d1)];}async['batchAllowed'](_0x3188f3){const _0xe4f176=_0x28bbb9;let _0x1c0ec3=this[_0xe4f176(0x2e1)]()+'/-/object/-/batch_allowed';return(await this[_0xe4f176(0x24d)][_0xe4f176(0x36b)](_0x1c0ec3,{'body':{'requests':_0x3188f3}}))[_0xe4f176(0x340)][_0xe4f176(0x47e)];}async['listRoles'](_0x751340){const _0x412db7=_0x28bbb9;let _0x52cb58=this[_0x412db7(0x2e1)]()+'/'+_0x751340['objectType']+'/role',_0x150f2f=await this[_0x412db7(0x24d)][_0x412db7(0x36b)](_0x52cb58,{'body':_0x751340});return{'roles':_0x150f2f[_0x412db7(0x340)][_0x412db7(0x2cd)],'actions':_0x150f2f[_0x412db7(0x340)][_0x412db7(0x3d1)]};}async[_0x28bbb9(0x3eb)](_0x5a09fe){const _0x582feb=_0x28bbb9;let _0x4a7fed=this[_0x582feb(0x2e1)]()+_0x582feb(0x1fd);await this[_0x582feb(0x24d)][_0x582feb(0x551)](_0x4a7fed,{'params':{'collaboratorID':_0x5a09fe[_0x582feb(0x4b9)],'objectID':_0x5a09fe['objectID'],'unitID':_0x5a09fe[_0x582feb(0x2e9)]}});}async[_0x28bbb9(0x4ae)](_0x4c43a2){const _0x375d0e=_0x28bbb9;let _0x3e6510=this[_0x375d0e(0x2e1)]()+_0x375d0e(0x1fd);await this[_0x375d0e(0x24d)]['patch'](_0x3e6510,{'body':_0x4c43a2});}async[_0x28bbb9(0x523)](_0x376979){const _0xe71979=_0x28bbb9;let _0x21c404=this[_0xe71979(0x2e1)]()+_0xe71979(0x1fd);await this[_0xe71979(0x24d)][_0xe71979(0x36b)](_0x21c404,{'body':_0x376979});}async[_0x28bbb9(0x336)](_0x46bef5){const _0x23fef4=_0x28bbb9;let _0x1b1425=this[_0x23fef4(0x2e1)]()+_0x23fef4(0x1fd),_0x5d575f=await this['_HTTPService'][_0x23fef4(0x285)](_0x1b1425,{'params':{'objectID':_0x46bef5[_0x23fef4(0x242)],'unitID':_0x46bef5['unitID']}});return this[_0x23fef4(0x423)](_0x5d575f[_0x23fef4(0x340)]['cfgEnableObjInherit']??!0x1),_0x5d575f[_0x23fef4(0x340)][_0x23fef4(0x44c)];}async[_0x28bbb9(0x40e)](_0x10b568){const _0x22f09c=_0x28bbb9;let _0x5d3a58=this[_0x22f09c(0x2e1)]()+'/collaborator';await this[_0x22f09c(0x24d)]['put'](_0x5d3a58,{'body':_0x10b568});}[_0x28bbb9(0x423)](_0x24dd26){const _0x293bc2=_0x28bbb9;this[_0x293bc2(0x2cb)]=_0x24dd26;}['getCfgEnableObjInherit'](){const _0x47ffdf=_0x28bbb9;return this[_0x47ffdf(0x2cb)];}};q=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x421)]))],q);function st(_0x2d4863){const _0x19562e=_0x28bbb9;let _0xbae5f3=atob(_0x2d4863),_0x318e06=new Uint8Array(_0xbae5f3[_0x19562e(0x47a)]);for(let _0x19ceff=0x0;_0x19ceff<_0xbae5f3['length'];_0x19ceff++)_0x318e06[_0x19ceff]=_0xbae5f3[_0x19562e(0x38f)](_0x19ceff);return _0x318e06;}function ct(_0x3535cd){const _0x500913=_0x28bbb9;let _0x5907eb='';for(let _0x266efa=0x0;_0x266efa<_0x3535cd[_0x500913(0x47a)];_0x266efa++)_0x5907eb+=String['fromCharCode'](_0x3535cd[_0x266efa]);return btoa(_0x5907eb);}function lt(_0x1daf59,_0x296371){const _0x2ec6f6=_0x28bbb9;let _0x5ea617=st(_0x296371),_0x2adcfa=(0x0,f[_0x2ec6f6(0x381)])(0x10),_0x1434bb=(0x0,d[_0x2ec6f6(0x548)])(_0x5ea617,_0x2adcfa)['encrypt']((0x0,f[_0x2ec6f6(0x390)])(_0x1daf59));return ct((0x0,f['concatBytes'])(_0x2adcfa,_0x1434bb));}function ut(){const _0x227614=_0x28bbb9;let _0x5eaf19=(0x0,u[_0x227614(0x4f5)])()[_0x227614(0x21a)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5eaf19){let _0x4db7fa={'time':Math['floor'](Date[_0x227614(0x4a3)]()/0x3e8),'domain':location[_0x227614(0x263)]};return lt(JSON[_0x227614(0x4d3)](_0x4db7fa),_0x5eaf19);}}let J=class{constructor(_0x8b52b5){const _0x2441de=_0x28bbb9;this[_0x2441de(0x2a4)]=_0x8b52b5,this[_0x2441de(0x430)]();}[_0x28bbb9(0x430)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1589c3,_0x310eab)=>{const _0x54e7aa=_0x53d0;let _0x35541f=ut();return _0x35541f&&_0x1589c3['headers'][_0x54e7aa(0x36a)]('x-univer-host',_0x35541f),_0x310eab(_0x1589c3);}});}};J=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(e['HTTPService']))],J);let Y=class extends r['RxDisposable']{constructor(_0x42a047,_0xe81de1,_0xd96e7d){const _0x4bf90f=_0x28bbb9;super(),this[_0x4bf90f(0x41e)]=_0x42a047,this[_0x4bf90f(0x494)]=_0xe81de1,this[_0x4bf90f(0x4a5)]=_0xd96e7d,_(this,'_unitInfo$',new t[(_0x4bf90f(0x45f))](null)),_(this,_0x4bf90f(0x34e),new t[(_0x4bf90f(0x39a))]()),_(this,_0x4bf90f(0x566),this[_0x4bf90f(0x20f)][_0x4bf90f(0x32f)]()),_(this,_0x4bf90f(0x312),this['_unitLoaded$'][_0x4bf90f(0x32f)]());}[_0x28bbb9(0x3ac)](){const _0x13480c=_0x28bbb9;super[_0x13480c(0x3ac)](),this['_unitLoaded$'][_0x13480c(0x30f)](),this[_0x13480c(0x20f)][_0x13480c(0x30f)]();}['loadUnitOfRevision'](_0x554788,_0x3a41c3,_0x4fffcf,_0x4850e7,_0xefd3c4){return this['_loadUnit'](_0x554788,_0x3a41c3,_0x4fffcf,_0x4850e7,_0xefd3c4);}[_0x28bbb9(0x55f)](_0x48b8f,_0x37eaca,_0x4d61ce,_0x1e5f60){const _0x2f4647=_0x28bbb9;return this[_0x2f4647(0x54b)](_0x48b8f,_0x37eaca,void 0x0,_0x4d61ce,_0x1e5f60);}async[_0x28bbb9(0x54b)](_0x24de53,_0x30e847,_0x528d17,_0x1c7c6a,_0x1b8799){const _0x393911=_0x28bbb9;this[_0x393911(0x20f)][_0x393911(0x512)]({'unitId':_0x24de53,'type':_0x30e847,'subUnitId':_0x1c7c6a});let _0x306e70=_0x528d17;if(_0x306e70===void 0x0){var _0x50a06c;let _0x511c47=await((_0x50a06c=this[_0x393911(0x4a5)])==null?void 0x0:_0x50a06c[_0x393911(0x3b8)](_0x24de53));_0x306e70=_0x511c47&&(_0x511c47[_0x393911(0x438)]||_0x511c47[_0x393911(0x220)][_0x393911(0x47a)]!==0x0)?_0x511c47[_0x393911(0x3af)]:0x0,_0x306e70===0x0&&this[_0x393911(0x41e)][_0x393911(0x2ba)](_0x393911(0x40a),_0x393911(0x559));}return this[_0x393911(0x444)](_0x24de53,_0x30e847,_0x306e70,_0x1c7c6a,_0x1b8799);}async['_loadSnapshot'](_0x3b2e95,_0x33176b,_0x55c09b,_0x293ea9,_0x20a06a){const _0x34caef=_0x28bbb9;let _0xac0583=null;switch(_0x33176b){case r[_0x34caef(0x24b)][_0x34caef(0x486)]:_0xac0583=await this[_0x34caef(0x494)][_0x34caef(0x1ce)](_0x3b2e95,_0x55c09b,_0x20a06a,{'initialSubUnitId':_0x293ea9});break;case r[_0x34caef(0x24b)][_0x34caef(0x297)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x206)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x405)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x3d7)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x449)]:_0xac0583=await this['_snapshotService']['loadBoard'](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x3bb)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x337)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x367)]:_0xac0583=await this['_snapshotService']['loadPdf'](_0x3b2e95,_0x55c09b,_0x20a06a);break;default:this[_0x34caef(0x41e)][_0x34caef(0x456)](_0x34caef(0x40a),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0xac0583&&this[_0x34caef(0x34e)][_0x34caef(0x512)](_0xac0583),_0xac0583;}};Y=b([y(0x0,r[_0x28bbb9(0x369)]),y(0x1,(0x0,r['Inject'])(n[_0x28bbb9(0x471)])),y(0x2,(0x0,r[_0x28bbb9(0x1cd)])(C))],Y);let X=class{constructor(_0x2913ae,_0x22a6c9,_0x34a138){const _0x4040fa=_0x28bbb9;this[_0x4040fa(0x2a4)]=_0x2913ae,this['_configService']=_0x22a6c9,this[_0x4040fa(0x4b7)]=_0x34a138,_(this,'_waitCount',0x0),_(this,_0x4040fa(0x547),new t[(_0x4040fa(0x39a))]()),_(this,'change$',this[_0x4040fa(0x547)]),_(this,_0x4040fa(0x3c2),new Map());}[_0x28bbb9(0x37c)](_0x428a9c){const _0x191d24=_0x28bbb9;this['_waitCount']=_0x428a9c,this[_0x191d24(0x547)]['next'](_0x428a9c);}[_0x28bbb9(0x256)](_0x22611c,_0x3090d1){const _0x2fcb3d=_0x28bbb9;if(_0x3090d1===r[_0x2fcb3d(0x4f3)]['BASE64']){let _0x48c750=new Image();return _0x48c750[_0x2fcb3d(0x333)]=_0x22611c,_0x48c750;}return this[_0x2fcb3d(0x3c2)][_0x2fcb3d(0x285)](_0x22611c);}[_0x28bbb9(0x2a1)](_0x29bd6a,_0x4ab156,_0x2c64d7){const _0x2cde2c=_0x28bbb9;_0x4ab156!==r[_0x2cde2c(0x4f3)][_0x2cde2c(0x1bb)]&&_0x2c64d7!=null&&this[_0x2cde2c(0x3c2)]['set'](_0x29bd6a,_0x2c64d7);}async[_0x28bbb9(0x527)](_0xeb13d){const _0x328baf=_0x28bbb9;try{let _0x316fb8=this[_0x328baf(0x3d8)](this[_0x328baf(0x2ef)](),''+_0xeb13d),_0x5ee50b=(await this['_httpService'][_0x328baf(0x285)](_0x316fb8))[_0x328baf(0x340)];if(_0x5ee50b['error']&&_0x5ee50b['error']['code']===o[_0x328baf(0x1b7)]['OK']){let _0x2cf382=(0x0,r[_0x328baf(0x28c)])(_0x5ee50b['url'],this[_0x328baf(0x3df)]());return Promise['resolve'](_0x2cf382);}return Promise[_0x328baf(0x481)](_0x5ee50b[_0x328baf(0x456)]);}catch(_0x44e53c){return Promise[_0x328baf(0x481)](_0x44e53c);}}async[_0x28bbb9(0x4ad)](_0x8ba2cc){const _0x1b9cff=_0x28bbb9;let _0x305644='';if(!p['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x1b9cff(0x539)](_0x8ba2cc[_0x1b9cff(0x538)]))return this['_decreaseWaiting'](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE_TYPE']));if(_0x8ba2cc['size']>(0x0,p[_0x1b9cff(0x2f7)])())return this[_0x1b9cff(0x1e1)](),Promise['reject'](Error(r['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{let _0x1234f8=new FormData();_0x1234f8[_0x1b9cff(0x1ef)](_0x1b9cff(0x246),_0x8ba2cc);let _0x5176ed=this['_univerInstanceService']['getFocusedUnit'](),_0x15a5ba=_0x5176ed==null?void 0x0:_0x5176ed[_0x1b9cff(0x3e7)]();if(!_0x15a5ba)throw Error('unitId\x20is\x20not\x20found');let _0x16a6c2=this[_0x1b9cff(0x516)]()+'?size='+_0x8ba2cc[_0x1b9cff(0x1e8)][_0x1b9cff(0x4c0)]()+_0x1b9cff(0x2fc)+o['FileSource'][_0x1b9cff(0x43d)]+'&assign='+encodeURIComponent(_0x15a5ba),_0x5bf507={'body':_0x1234f8},_0x8b8c42=(await this['_httpService'][_0x1b9cff(0x36b)](_0x16a6c2,_0x5bf507))[_0x1b9cff(0x340)];if(typeof _0x8b8c42['FileId']!=_0x1b9cff(0x2d4))return this[_0x1b9cff(0x1e1)](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE']));_0x305644=_0x8b8c42[_0x1b9cff(0x217)];}catch{return this['_decreaseWaiting'](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE']));}return new Promise((_0x36bb09,_0x246328)=>{const _0x82ca04=_0x1b9cff;let _0xb43a39=new FileReader();_0xb43a39[_0x82ca04(0x31e)](_0x8ba2cc),_0xb43a39['onload']=_0x3dc964=>{const _0x47f873=_0x82ca04;var _0x4039af;let _0x442a80=(_0x4039af=_0x3dc964[_0x47f873(0x29d)])==null?void 0x0:_0x4039af[_0x47f873(0x319)];_0x442a80==null?(this[_0x47f873(0x1e1)](),_0x246328(Error(r[_0x47f873(0x563)]['ERROR_IMAGE']))):(_0x36bb09({'imageId':(0x0,r[_0x47f873(0x24f)])(0x6),'imageSourceType':r[_0x47f873(0x4f3)]['UUID'],'source':_0x305644,'base64Cache':_0x442a80,'status':r[_0x47f873(0x563)][_0x47f873(0x232)]}),this['_decreaseWaiting']());};});}['_getUploadFileURL'](){const _0x4826c5=_0x28bbb9;let _0x7f8794=this['_configService'][_0x4826c5(0x230)](m);return(_0x7f8794==null?void 0x0:_0x7f8794[_0x4826c5(0x1ed)])??_0x4826c5(0x1c2);}[_0x28bbb9(0x2ef)](){const _0x102eef=_0x28bbb9;let _0x2aa09f=this['_configService']['getConfig'](m);return(_0x2aa09f==null?void 0x0:_0x2aa09f[_0x102eef(0x2af)])??_0x102eef(0x545);}[_0x28bbb9(0x3df)](){const _0x53dbe4=_0x28bbb9;let _0x4d6ede=this[_0x53dbe4(0x2c8)][_0x53dbe4(0x230)](m);return(_0x4d6ede==null?void 0x0:_0x4d6ede[_0x53dbe4(0x380)])??location[_0x53dbe4(0x2e3)];}[_0x28bbb9(0x3d8)](_0x525b40,_0x1488a0){const _0x17d529=_0x28bbb9;return _0x525b40[_0x17d529(0x484)](_0x17d529(0x544),_0x1488a0);}[_0x28bbb9(0x1e1)](){const _0x561f43=_0x28bbb9;--this[_0x561f43(0x500)],this[_0x561f43(0x547)][_0x561f43(0x512)](this[_0x561f43(0x500)]);}};X=b([y(0x0,(0x0,r['Inject'])(e['HTTPService'])),y(0x1,r[_0x28bbb9(0x421)]),y(0x2,(0x0,r['Inject'])(r['IUniverInstanceService']))],X);let Z=class{constructor(_0x19ee94,_0x3d532){const _0x386bcb=_0x28bbb9;this['_configService']=_0x19ee94,this[_0x386bcb(0x24d)]=_0x3d532;}[_0x28bbb9(0x2e1)](){const _0x1d371d=_0x28bbb9;let _0x17e2e5=this[_0x1d371d(0x2c8)][_0x1d371d(0x230)](m);return(_0x17e2e5==null?void 0x0:_0x17e2e5[_0x1d371d(0x4d5)])??'/universer-api/authz';}async['list'](_0x4330da){const _0x3c0f93=_0x28bbb9;let _0x3c54bf=this[_0x3c0f93(0x2e1)]()+_0x3c0f93(0x1fd);return{'list':[{'title':_0x3c0f93(0x50a),'mentions':(await this[_0x3c0f93(0x24d)][_0x3c0f93(0x285)](_0x3c54bf,{'params':{'objectID':_0x4330da[_0x3c0f93(0x212)],'unitID':_0x4330da[_0x3c0f93(0x212)]}}))['body']['collaborators'][_0x3c0f93(0x485)](_0x4b9923=>({'objectId':_0x4b9923['id'],'name':_0x4b9923[_0x3c0f93(0x2d5)][_0x3c0f93(0x234)],'metadata':{'icon':_0x4b9923[_0x3c0f93(0x2d5)]['avatar']},'label':_0x4b9923[_0x3c0f93(0x2d5)]['name'],'objectType':r[_0x3c0f93(0x50e)]['PERSON']})),'metadata':{},'type':r['MentionType'][_0x3c0f93(0x4e1)]}]};}};Z=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x421)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)]))],Z);let Q=class extends r[_0x28bbb9(0x22c)]{constructor(_0x34c637,_0x2f1071,_0x51e64c,_0x18835c,_0x45e2e5,_0x4a536a){const _0x444068=_0x28bbb9;super(),this['_injector']=_0x34c637,this['_univerInstanceService']=_0x2f1071,this[_0x444068(0x370)]=_0x51e64c,this[_0x444068(0x225)]=_0x18835c,this[_0x444068(0x22d)]=_0x45e2e5,this[_0x444068(0x3b5)]=_0x4a536a,_(this,_0x444068(0x56a),new Set()),this[_0x444068(0x457)](()=>this[_0x444068(0x56a)]['clear']()),this['disposeWithMe'](dt(this[_0x444068(0x4b7)])[_0x444068(0x264)](({unitId:_0x45c6f5})=>this['_closedUnits'][_0x444068(0x551)](_0x45c6f5))),this['_initUnitPermissionChange'](),this[_0x444068(0x273)](),[r[_0x444068(0x24b)][_0x444068(0x297)],r[_0x444068(0x24b)][_0x444068(0x405)],r[_0x444068(0x24b)][_0x444068(0x3bb)],r[_0x444068(0x24b)][_0x444068(0x449)]]['forEach'](_0x5cafea=>{const _0x52ca24=_0x444068;this[_0x52ca24(0x457)](this[_0x52ca24(0x4b7)][_0x52ca24(0x3ce)](_0x5cafea)[_0x52ca24(0x264)](_0x3cc33c=>{const _0x414d93=_0x52ca24;this[_0x414d93(0x56a)][_0x414d93(0x3a3)](_0x3cc33c[_0x414d93(0x3e7)]()),this[_0x414d93(0x475)]['get'](r[_0x414d93(0x3ba)])['clearUnit'](_0x3cc33c['getUnitId']());}));});}[_0x28bbb9(0x273)](){const _0x9af16c=_0x28bbb9;let _0x29f560=async(_0x3702b2,_0x149226)=>{const _0x4c9eac=_0x53d0;let _0x4a6e49=await this['_collaborationSessionService'][_0x4c9eac(0x345)](_0x3702b2);this['_disposed']||this['_closedUnits']['has'](_0x3702b2)||!this[_0x4c9eac(0x4b7)][_0x4c9eac(0x1e2)](_0x3702b2)||_0x4a6e49[_0x4c9eac(0x2f3)][_0x4c9eac(0x213)]((0x0,c[_0x4c9eac(0x46f)])(_0x294ad9=>_0x294ad9[_0x4c9eac(0x2ff)]===n['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,c['takeUntil'])((0x0,t[_0x4c9eac(0x3e1)])(this[_0x4c9eac(0x55d)],this[_0x4c9eac(0x4b7)][_0x4c9eac(0x22b)][_0x4c9eac(0x213)]((0x0,c['filter'])(_0x2e2b18=>_0x2e2b18[_0x4c9eac(0x3e7)]()===_0x3702b2)))))[_0x4c9eac(0x264)](_0xc3ef60=>{const _0x27b2a8=_0x4c9eac;let {reason:_0x1539a3}=_0xc3ef60[_0x27b2a8(0x350)];this[_0x27b2a8(0x3b5)][_0x27b2a8(0x40c)]({'id':'CLOSE_ROOM','data':_0x1539a3}),this[_0x27b2a8(0x56a)][_0x27b2a8(0x3a3)](_0x3702b2),this[_0x27b2a8(0x475)][_0x27b2a8(0x285)](r[_0x27b2a8(0x3ba)])[_0x27b2a8(0x32c)](_0x3702b2);let _0x6a4c3b=ft(_0x149226);_0x6a4c3b!=null&&this[_0x27b2a8(0x1c8)](_0x3702b2,_0x6a4c3b,o[_0x27b2a8(0x4b5)][_0x27b2a8(0x569)],!0x1),this[_0x27b2a8(0x22d)][_0x27b2a8(0x200)](_0x3702b2);});};dt(this[_0x9af16c(0x4b7)])[_0x9af16c(0x213)]((0x0,c[_0x9af16c(0x46f)])(({unitId:_0x4a00fd})=>!(0x0,r[_0x9af16c(0x53d)])(_0x4a00fd)),(0x0,c['takeUntil'])(this[_0x9af16c(0x55d)]))[_0x9af16c(0x264)](({type:_0x40b18f,unitId:_0x5a2460})=>{const _0x4d9fbb=_0x9af16c;_0x29f560(_0x5a2460,_0x40b18f)['catch'](_0x17354b=>this['_injector'][_0x4d9fbb(0x285)](r[_0x4d9fbb(0x369)])['error'](_0x17354b));});}[_0x28bbb9(0x554)](){const _0x18e54c=_0x28bbb9;let _0x5ae7db=async(_0x223bbd,_0xcbaecb)=>{const _0x2c1613=_0x53d0;let _0x5d48f5=await this[_0x2c1613(0x22d)]['requireSession'](_0x223bbd);if(!(this[_0x2c1613(0x1c7)]||this[_0x2c1613(0x56a)][_0x2c1613(0x546)](_0x223bbd)||!this[_0x2c1613(0x4b7)]['getUnit'](_0x223bbd))){if(_0xcbaecb===r[_0x2c1613(0x24b)][_0x2c1613(0x486)]){let _0x5380c0=this[_0x2c1613(0x475)][_0x2c1613(0x285)](a['SheetPermissionInitController']);await _0x5380c0[_0x2c1613(0x361)](_0x223bbd),_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c['filter'])(_0x56c413=>_0x56c413[_0x2c1613(0x2ff)]===n['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,c[_0x2c1613(0x418)])((0x0,t['merge'])(this[_0x2c1613(0x55d)],_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c[_0x2c1613(0x46f)])(_0x5c0273=>_0x5c0273[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)][_0x2c1613(0x22a)])),this[_0x2c1613(0x4b7)]['unitDisposed$']['pipe']((0x0,c[_0x2c1613(0x46f)])(_0x5ecbb7=>_0x5ecbb7[_0x2c1613(0x3e7)]()===_0x223bbd)))))[_0x2c1613(0x264)](_0x55d6a7=>{const _0x315d7a=_0x2c1613;let {objectId:_0x2f4ebb}=_0x55d6a7[_0x315d7a(0x350)];_0x2f4ebb===_0x223bbd?_0x5380c0['initWorkbookPermissionChange'](_0x223bbd):_0x5380c0[_0x315d7a(0x40d)](_0x223bbd,_0x2f4ebb);});}else _0x5d48f5[_0x2c1613(0x2f3)]['pipe']((0x0,c[_0x2c1613(0x46f)])(_0x25942a=>_0x25942a[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)]['UPDATE_PERMISSION_OBJ']),(0x0,c[_0x2c1613(0x418)])((0x0,t[_0x2c1613(0x3e1)])(this[_0x2c1613(0x55d)],_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c[_0x2c1613(0x46f)])(_0x28e153=>_0x28e153[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)]['SHOULD_CLOSE_CONN'])),this[_0x2c1613(0x4b7)][_0x2c1613(0x22b)]['pipe']((0x0,c['filter'])(_0xf4919c=>_0xf4919c[_0x2c1613(0x3e7)]()===_0x223bbd)))))[_0x2c1613(0x264)](()=>{const _0x25f1ca=_0x2c1613;this[_0x25f1ca(0x3ed)](_0x223bbd,_0xcbaecb)[_0x25f1ca(0x4a4)](_0x5f0cf6=>this[_0x25f1ca(0x475)][_0x25f1ca(0x285)](r[_0x25f1ca(0x369)])[_0x25f1ca(0x456)](_0x5f0cf6));}),await this[_0x2c1613(0x3ed)](_0x223bbd,_0xcbaecb);}};dt(this[_0x18e54c(0x4b7)])['pipe']((0x0,c[_0x18e54c(0x46f)])(({unitId:_0x18ba12})=>!(0x0,r[_0x18e54c(0x53d)])(_0x18ba12)),(0x0,c[_0x18e54c(0x418)])(this[_0x18e54c(0x55d)]))[_0x18e54c(0x264)](({type:_0x2b4eea,unitId:_0x51e246})=>{const _0x458272=_0x18e54c;_0x5ae7db(_0x51e246,_0x2b4eea)['catch'](_0x4764e9=>this['_injector']['get'](r[_0x458272(0x369)])[_0x458272(0x456)](_0x4764e9));});}async[_0x28bbb9(0x3ed)](_0x4c19db,_0x571908){const _0x3384ba=_0x28bbb9;let _0xa4c899=ft(_0x571908);if(_0xa4c899==null)return;let _0x553be6=this['_injector'][_0x3384ba(0x285)](r[_0x3384ba(0x3ba)]);if(_0x553be6[_0x3384ba(0x249)]({'unitId':_0x4c19db,'objectId':_0x4c19db,'objectType':_0xa4c899})){await _0x553be6[_0x3384ba(0x1e0)](_0x4c19db);return;}let _0x2afd38=this[_0x3384ba(0x2f2)](_0x4c19db,_0xa4c899);if(!_0x2afd38[_0x3384ba(0x47a)])return;let _0x232247=await this[_0x3384ba(0x225)][_0x3384ba(0x3f4)]({'objectID':_0x4c19db,'objectType':_0xa4c899,'unitID':_0x4c19db,'actions':_0x2afd38[_0x3384ba(0x485)](({action:_0x57f9ab})=>_0x57f9ab)});this[_0x3384ba(0x1c7)]||this['_closedUnits'][_0x3384ba(0x546)](_0x4c19db)||!this[_0x3384ba(0x4b7)][_0x3384ba(0x1e2)](_0x4c19db)||_0x232247[_0x3384ba(0x3e9)](_0x20e190=>{const _0x1eceb4=_0x3384ba;let _0x498595=_0x20e190[_0x1eceb4(0x4c1)],_0xcb80df=_0x20e190[_0x1eceb4(0x3f4)];_0x498595!=null&&_0xcb80df!=null&&_0x2afd38[_0x1eceb4(0x46f)](_0x32af35=>_0x32af35[_0x1eceb4(0x4c1)]===_0x498595)[_0x1eceb4(0x3e9)](_0x7cfb7f=>this['_permissionService'][_0x1eceb4(0x3cc)](_0x7cfb7f['id'],_0xcb80df));});}['_getUnitPermissionPoints'](_0x4358d4,_0x241f39){const _0x4050e7=_0x28bbb9;let _0x5495bd=[];return this[_0x4050e7(0x370)][_0x4050e7(0x251)]()[_0x4050e7(0x3e9)]((_0x1065f3,_0x25b261)=>{_0x1065f3['subscribe'](_0x284c23=>{const _0x3dd4f0=_0x53d0;_0x284c23[_0x3dd4f0(0x538)]===_0x241f39&&_0x3dd4f0(0x212)in _0x284c23&&_0x284c23[_0x3dd4f0(0x212)]===_0x4358d4&&(!(_0x3dd4f0(0x394)in _0x284c23)||_0x284c23['objectId']===_0x4358d4)&&_0x5495bd[_0x3dd4f0(0x4ec)]({'id':_0x25b261,'action':_0x284c23[_0x3dd4f0(0x2f4)]});})['unsubscribe']();}),_0x5495bd;}[_0x28bbb9(0x1c8)](_0x4c7508,_0x41a119,_0x4c0862,_0x3f69ce){const _0x1cadb9=_0x28bbb9;this['_permissionService'][_0x1cadb9(0x251)]()[_0x1cadb9(0x3e9)]((_0x30e853,_0x1cf78f)=>{const _0x160a04=_0x1cadb9;let _0x1a8410=!0x1;_0x30e853['subscribe'](_0x2dbf55=>{const _0x4d3f08=_0x53d0;_0x1a8410=_0x2dbf55[_0x4d3f08(0x538)]===_0x41a119&&_0x2dbf55[_0x4d3f08(0x2f4)]===_0x4c0862&&_0x4d3f08(0x212)in _0x2dbf55&&_0x2dbf55['unitId']===_0x4c7508&&(!(_0x4d3f08(0x394)in _0x2dbf55)||_0x2dbf55[_0x4d3f08(0x394)]===_0x4c7508);})[_0x160a04(0x3c7)](),_0x1a8410&&this[_0x160a04(0x370)][_0x160a04(0x3cc)](_0x1cf78f,_0x3f69ce);});}};Q=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x1,r[_0x28bbb9(0x51c)]),y(0x2,r['IPermissionService']),y(0x3,r[_0x28bbb9(0x3b2)]),y(0x4,(0x0,r['Inject'])(U)),y(0x5,(0x0,r[_0x28bbb9(0x431)])(v))],Q);function dt(_0x14ba21){const _0x5d29c2=_0x28bbb9;return(0x0,t[_0x5d29c2(0x3e1)])(...[r[_0x5d29c2(0x24b)][_0x5d29c2(0x486)],r['UniverInstanceType'][_0x5d29c2(0x297)],r['UniverInstanceType'][_0x5d29c2(0x405)],r['UniverInstanceType']['UNIVER_BOARD'],r[_0x5d29c2(0x24b)]['UNIVER_BASE']][_0x5d29c2(0x485)](_0x5921f6=>_0x14ba21[_0x5d29c2(0x342)](_0x5921f6)[_0x5d29c2(0x213)]((0x0,c['map'])(_0x3be352=>({'type':_0x5921f6,'unitId':_0x3be352[_0x5d29c2(0x54f)][_0x5d29c2(0x3e7)]()})))));}function ft(_0x5d134d){const _0x39ff35=_0x28bbb9;switch(_0x5d134d){case r[_0x39ff35(0x24b)][_0x39ff35(0x486)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x218)];case r[_0x39ff35(0x24b)][_0x39ff35(0x297)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x357)];case r[_0x39ff35(0x24b)][_0x39ff35(0x405)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x410)];case r[_0x39ff35(0x24b)][_0x39ff35(0x449)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x396)];case r['UniverInstanceType'][_0x39ff35(0x3bb)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x41d)];default:return;}}let pt=class{constructor(_0x6d69b6,_0x45e2ac){const _0x3f9e91=_0x28bbb9;this[_0x3f9e91(0x2c8)]=_0x6d69b6,this['_httpService']=_0x45e2ac;}async['getUnitOnRev'](_0x17e73c,_0x27050d){const _0x1a58c7=_0x28bbb9;var _0xf73452;let {unitID:_0x30cebf,type:_0x43fa26,revision:_0xf195fb=0x0}=_0x27050d,_0x4b9a99=this[_0x1a58c7(0x26a)]()+'/'+_0x43fa26+_0x1a58c7(0x300)+_0x30cebf+'/rev/'+_0xf195fb,_0xea705f=(await this[_0x1a58c7(0x2a4)]['get'](_0x4b9a99))['body'],_0x430789=(_0xf73452=_0xea705f['snapshot'])==null?void 0x0:_0xf73452[_0x1a58c7(0x447)];if(_0x430789){let _0xfdea4d=_0x430789==null?void 0x0:_0x430789[_0x1a58c7(0x36c)];_0x430789[_0x1a58c7(0x36c)]=n[_0x1a58c7(0x355)][_0x1a58c7(0x216)]((0x0,n[_0x1a58c7(0x490)])(_0xfdea4d)),Object[_0x1a58c7(0x215)](_0x430789[_0x1a58c7(0x480)])[_0x1a58c7(0x3e9)](([,_0x488dbd])=>{const _0x50a2f6=_0x1a58c7;let _0x367679=_0x488dbd['originalMeta'];_0x488dbd[_0x50a2f6(0x36c)]=n[_0x50a2f6(0x355)][_0x50a2f6(0x216)]((0x0,n[_0x50a2f6(0x490)])(_0x367679));});}return _0xea705f;}async[_0x28bbb9(0x564)](_0x31b213,_0x32d7c0){const _0x4b81fb=_0x28bbb9;let {unitID:_0x4296e0,type:_0xbf222f,blockID:_0x55128e}=_0x32d7c0,_0x401e1a=this[_0x4b81fb(0x46e)]()+'/'+_0xbf222f+_0x4b81fb(0x300)+_0x4296e0+_0x4b81fb(0x3d5)+_0x55128e;return(await this['_httpService'][_0x4b81fb(0x285)](_0x401e1a))[_0x4b81fb(0x340)];}async[_0x28bbb9(0x38b)](_0x46edca,_0xf78edc){const _0x48082e=_0x28bbb9;let {unitID:_0x3e6eab,type:_0x1205c0,blockID:_0x333fb8}=_0xf78edc,_0x3cef51=this[_0x48082e(0x46e)]()+_0x48082e(0x3d5)+_0x1205c0+_0x48082e(0x300)+_0x3e6eab+_0x48082e(0x3d5)+_0x333fb8;return(await this[_0x48082e(0x2a4)][_0x48082e(0x285)](_0x3cef51))[_0x48082e(0x340)];}async[_0x28bbb9(0x556)](_0x2b850f,_0x22a44b){const _0x4d43fd=_0x28bbb9;let {unitID:_0x14a18f,type:_0x2a697d,from:_0x5f0a2b,to:_0x4c991d}=_0x22a44b,_0x3b7b9b=this[_0x4d43fd(0x46e)]()+'/'+_0x2a697d+_0x4d43fd(0x300)+_0x14a18f+_0x4d43fd(0x426)+_0x5f0a2b+_0x4d43fd(0x305)+_0x4c991d;return(await this[_0x4d43fd(0x2a4)][_0x4d43fd(0x285)](_0x3b7b9b))[_0x4d43fd(0x340)];}['getSnapshotAPIPath'](){const _0x51f96b=_0x28bbb9;return this[_0x51f96b(0x2c8)][_0x51f96b(0x230)](_0x51f96b(0x2c0))??this[_0x51f96b(0x46e)]();}[_0x28bbb9(0x46e)](){const _0x30c156=_0x28bbb9;let _0x1ef613=this[_0x30c156(0x2c8)][_0x30c156(0x230)](m);return(_0x1ef613==null?void 0x0:_0x1ef613[_0x30c156(0x1b5)])??_0x30c156(0x54c);}async[_0x28bbb9(0x364)](_0x205861,_0x684f18){const _0x3606fe=_0x28bbb9;let _0x2b67a4=_0x3606fe(0x34b)+_0x684f18['type']+'/unit/'+_0x684f18['unitID']+_0x3606fe(0x529);return(await this[_0x3606fe(0x2a4)][_0x3606fe(0x285)](_0x2b67a4,{'params':{'resourceId':JSON['stringify'](_0x684f18['resourceIDs'])}}))[_0x3606fe(0x340)];}[_0x28bbb9(0x39f)](){const _0x54d2c4=_0x28bbb9;throw Error(_0x54d2c4(0x536));}['updateSnapshot'](){const _0x4592e6=_0x28bbb9;throw Error(_0x4592e6(0x536));}[_0x28bbb9(0x33c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x28bbb9(0x55c)](){const _0x186f82=_0x28bbb9;throw Error(_0x186f82(0x536));}[_0x28bbb9(0x398)](){const _0xfe465c=_0x28bbb9;throw Error(_0xfe465c(0x536));}[_0x28bbb9(0x3f0)](){const _0x1f13c2=_0x28bbb9;throw Error(_0x1f13c2(0x536));}};pt=b([y(0x0,r['IConfigService']),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)]))],pt);let mt=class extends r[_0x28bbb9(0x280)]{constructor(_0x1e0218,_0x2cec4a,_0x49970a,_0x59e61f,_0x2a5bb2,_0x75fa72){const _0x38dfa5=_0x28bbb9;super(_0x1e0218,_0x2cec4a,_0x49970a,_0x59e61f),this[_0x38dfa5(0x1f2)]=_0x2a5bb2,this['_logService']=_0x75fa72;}[_0x28bbb9(0x2be)](_0x446ab7,_0x8170d5){const _0x12a77c=_0x28bbb9;let _0x11c848=this[_0x12a77c(0x2d8)](_0x446ab7);if(_0x11c848)try{let _0x324fed=this[_0x12a77c(0x4ab)](_0x11c848,_0x8170d5);this['_substituteUndoStack'](_0x446ab7,_0x324fed);}catch(_0x539ced){this[_0x12a77c(0x41e)][_0x12a77c(0x456)](_0x12a77c(0x288),_0x539ced),this['_clearUndo'](_0x446ab7);}let _0x29c106=this[_0x12a77c(0x276)](_0x446ab7);if(_0x29c106)try{let _0x3de0a5=this[_0x12a77c(0x4ab)](_0x29c106,_0x8170d5,!0x0);this['_substituteRedoStack'](_0x446ab7,_0x3de0a5);}catch(_0xf3c114){this['_logService']['error'](_0xf3c114),this[_0x12a77c(0x3ee)](_0x446ab7);}}[_0x28bbb9(0x1c6)](_0x593656){const _0x53440f=_0x28bbb9;let _0x54d1a1=this[_0x53440f(0x2d8)](_0x593656);_0x54d1a1&&(_0x54d1a1[_0x53440f(0x47a)]=0x0,this[_0x53440f(0x3b0)]());}['_clearRedo'](_0x53e3e9){const _0x3b7978=_0x28bbb9;let _0x4cdd6c=this['_getRedoStack'](_0x53e3e9);_0x4cdd6c&&(_0x4cdd6c[_0x3b7978(0x47a)]=0x0,this[_0x3b7978(0x3b0)]());}[_0x28bbb9(0x20b)](_0x4940ad,_0x22526e){const _0x444e0f=_0x28bbb9;this[_0x444e0f(0x461)]['set'](_0x4940ad,_0x22526e),this['_updateStatus']();}[_0x28bbb9(0x2a5)](_0x5d6c03,_0x361d6f){const _0x2b7fe4=_0x28bbb9;this[_0x2b7fe4(0x463)][_0x2b7fe4(0x36a)](_0x5d6c03,_0x361d6f),this[_0x2b7fe4(0x3b0)]();}[_0x28bbb9(0x4ab)](_0x26b3d5,_0x48ffd2,_0x252352=!0x1){const _0x135d51=_0x28bbb9;if(!_0x26b3d5['length'])return[];let _0x5e2495=[],_0x18ac63=_0x48ffd2,_0x3a3d68=_0x48ffd2['type']===r[_0x135d51(0x24b)]['UNIVER_DOC']?this[_0x135d51(0x4b7)]['getUnit'](_0x48ffd2['unitID'],r[_0x135d51(0x24b)]['UNIVER_DOC']):null,_0x363c5f=_0x3a3d68?{'id':_0x3a3d68[_0x135d51(0x3e7)](),'documentStyle':{},'tableSource':r[_0x135d51(0x4cf)]['deepClone'](_0x3a3d68[_0x135d51(0x1f1)]()[_0x135d51(0x51f)]??{})}:null;for(let _0x403d90=_0x26b3d5[_0x135d51(0x47a)]-0x1;_0x403d90>=0x0;_0x403d90--){let {unitID:_0x181808,undoMutations:_0x414ce7,redoMutations:_0x54be73}=_0x26b3d5[_0x403d90],_0xe2b6cf=_0x252352?_0x54be73:_0x414ce7,_0x1a9a13=this[_0x135d51(0x3c9)](_0x18ac63,_0xe2b6cf);if((0x0,n[_0x135d51(0x2c3)])(_0x1a9a13)){this[_0x135d51(0x41e)]['error'](_0x135d51(0x288),_0x135d51(0x376),_0x1a9a13);break;}let _0x1bb0fe=_0x252352?_0x414ce7:_0x54be73,_0x131e0d=this[_0x135d51(0x3c9)](_0x1a9a13[_0x135d51(0x310)],_0x1bb0fe);if((0x0,n[_0x135d51(0x2c3)])(_0x131e0d)){this[_0x135d51(0x41e)]['error'](_0x135d51(0x288),_0x135d51(0x376),_0x131e0d);break;}let _0xc523f2=_0x252352?_0x131e0d:_0x1a9a13,_0x50ef10=_0x252352?_0x1a9a13:_0x131e0d;_0x18ac63=_0x1a9a13['c1Prime'],_0x363c5f&&=this[_0x135d51(0x505)](_0x363c5f,_0x1a9a13['m2Prime'],_0x131e0d[_0x135d51(0x3bd)]),_0x5e2495[_0x135d51(0x4ec)]({'unitID':_0x181808,'undoMutations':_0xc523f2[_0x135d51(0x3bd)],'redoMutations':_0x50ef10['m2Prime']});}return _0x5e2495[_0x135d51(0x275)]();}[_0x28bbb9(0x3c9)](_0x258c4c,_0x244afe){const _0x1c1ccc=_0x28bbb9;if(_0x258c4c[_0x1c1ccc(0x538)]!==r['UniverInstanceType'][_0x1c1ccc(0x297)]||_0x244afe[_0x1c1ccc(0x33e)](_0x4981a1=>_0x4981a1['id']!==i[_0x1c1ccc(0x4d7)]['id']))return this[_0x1c1ccc(0x1f2)]['transformMutationsWithChangeset'](_0x258c4c,_0x244afe);let _0x579bc7=r['Tools'][_0x1c1ccc(0x417)](_0x244afe),_0x46a132=[];for(let _0xa7c975 of _0x258c4c[_0x1c1ccc(0x220)]){let _0x2efcbf={..._0x258c4c,'mutations':[_0xa7c975]},_0x13c0fa=[];for(let _0x5c4832 of _0x579bc7){_0x2efcbf=this['_rebaseParagraphHistory'](_0x2efcbf,[_0x5c4832]);let _0x4ca4be=this[_0x1c1ccc(0x1f2)][_0x1c1ccc(0x541)](_0x2efcbf,[_0x5c4832]);if((0x0,n[_0x1c1ccc(0x2c3)])(_0x4ca4be))return _0x4ca4be;_0x2efcbf=_0x4ca4be[_0x1c1ccc(0x310)],_0x13c0fa[_0x1c1ccc(0x4ec)](..._0x4ca4be[_0x1c1ccc(0x3bd)]);}_0x579bc7=_0x13c0fa,_0x46a132['push'](..._0x2efcbf[_0x1c1ccc(0x220)]);}return{'m2Prime':_0x579bc7,'c1Prime':{..._0x258c4c,'mutations':_0x46a132}};}[_0x28bbb9(0x2dc)](_0x5be293,_0x36fbe5){const _0xf7e4d8=_0x28bbb9;let _0x47381c=new Map(),_0x49fc8e=r[_0xf7e4d8(0x3d3)][_0xf7e4d8(0x538)][_0xf7e4d8(0x34a)](_0x36fbe5[0x0][_0xf7e4d8(0x453)][_0xf7e4d8(0x3d1)]);if(_0x49fc8e[_0xf7e4d8(0x3e5)](null,_0x109907=>{const _0x3100a3=_0xf7e4d8;if(_0x109907['et']!==_0x3100a3(0x454))return;let _0xf06ea3=JSON[_0x3100a3(0x4d3)](_0x49fc8e[_0x3100a3(0x33d)]()),_0x1b96a9=_0x47381c['get'](_0xf06ea3)??new Map(),_0x549684=0x0;for(let _0x5f357f of _0x109907['e']){if(_0x5f357f['t']===r[_0x3100a3(0x525)]['RETAIN']){var _0x12dded;for(let _0x3e6a52 of((_0x12dded=_0x5f357f[_0x3100a3(0x340)])==null?void 0x0:_0x12dded[_0x3100a3(0x328)])??[])_0x1b96a9[_0x3100a3(0x36a)](_0x549684+_0x3e6a52[_0x3100a3(0x309)],{'paragraph':_0x3e6a52,'replace':_0x5f357f[_0x3100a3(0x279)]===r[_0x3100a3(0x4eb)][_0x3100a3(0x45a)]});}_0x5f357f['t']!==r[_0x3100a3(0x525)][_0x3100a3(0x3e4)]&&(_0x549684+=_0x5f357f[_0x3100a3(0x46c)]);}_0x1b96a9[_0x3100a3(0x1e8)]>0x0&&_0x47381c[_0x3100a3(0x36a)](_0xf06ea3,_0x1b96a9);}),_0x47381c[_0xf7e4d8(0x1e8)]===0x0)return _0x5be293;let _0x352904=r[_0xf7e4d8(0x4cf)][_0xf7e4d8(0x417)](_0x5be293);for(let _0x48b538 of _0x352904[_0xf7e4d8(0x220)]){if(_0x48b538['id']!==i['RichTextEditingMutation']['id'])continue;let _0x4aa48b=r[_0xf7e4d8(0x3d3)][_0xf7e4d8(0x538)][_0xf7e4d8(0x34a)](_0x48b538[_0xf7e4d8(0x453)][_0xf7e4d8(0x3d1)]);_0x4aa48b[_0xf7e4d8(0x3e5)](null,_0x5da7d9=>{const _0x1d2fdc=_0xf7e4d8;if(_0x5da7d9['et']!=='text-x')return;let _0x58fa2d=JSON['stringify'](_0x4aa48b[_0x1d2fdc(0x33d)]()),_0x572346=_0x47381c['get'](_0x58fa2d);if(!(_0x572346!=null&&_0x572346[_0x1d2fdc(0x1e8)]))return;let _0x47d08b=0x0;for(let _0x1445ee of _0x5da7d9['e']){if(_0x1445ee['t']===r['TextXActionType'][_0x1d2fdc(0x4f4)]&&_0x1445ee[_0x1d2fdc(0x279)]===r[_0x1d2fdc(0x4eb)][_0x1d2fdc(0x45a)]){var _0x56bbe8;for(let _0x18375c of((_0x56bbe8=_0x1445ee['body'])==null?void 0x0:_0x56bbe8[_0x1d2fdc(0x328)])??[]){var _0x46bcbf;let _0xabf1a7=(_0x46bcbf=_0x1445ee['oldBody'])==null||(_0x46bcbf=_0x46bcbf['paragraphs'])==null?void 0x0:_0x46bcbf[_0x1d2fdc(0x552)](_0x1ce1ac=>_0x1ce1ac[_0x1d2fdc(0x309)]===_0x18375c[_0x1d2fdc(0x309)]),_0x21c18a=_0x572346[_0x1d2fdc(0x285)](_0x47d08b+_0x18375c[_0x1d2fdc(0x309)]);if(_0xabf1a7&&_0x21c18a){this[_0x1d2fdc(0x25f)](_0x18375c,_0xabf1a7,_0x21c18a[_0x1d2fdc(0x30a)],_0x21c18a[_0x1d2fdc(0x484)]);let _0x5e9463=_0x21c18a['replace']?new Set([...Object['keys'](_0x21c18a['paragraph']),...Object[_0x1d2fdc(0x4fb)](_0x18375c)]):Object[_0x1d2fdc(0x4fb)](_0x21c18a[_0x1d2fdc(0x30a)]);for(let _0xe144a1 of _0x5e9463){if(_0xe144a1===_0x1d2fdc(0x309)||_0xe144a1===_0x1d2fdc(0x29a))continue;let _0x3f43f3=Reflect[_0x1d2fdc(0x285)](_0x18375c,_0xe144a1);_0x3f43f3===void 0x0?Reflect[_0x1d2fdc(0x420)](_0x21c18a[_0x1d2fdc(0x30a)],_0xe144a1):Reflect[_0x1d2fdc(0x36a)](_0x21c18a['paragraph'],_0xe144a1,r[_0x1d2fdc(0x4cf)][_0x1d2fdc(0x417)](_0x3f43f3));}}}}_0x1445ee['t']!==r[_0x1d2fdc(0x525)][_0x1d2fdc(0x3e4)]&&(_0x47d08b+=_0x1445ee[_0x1d2fdc(0x46c)]);}});}return _0x352904;}[_0x28bbb9(0x25f)](_0x392ae0,_0x515069,_0x34c531,_0x200a76){const _0x24716b=_0x28bbb9;let _0x2233fe=new Set([...Object[_0x24716b(0x4fb)](_0x392ae0),...Object[_0x24716b(0x4fb)](_0x515069),...Object[_0x24716b(0x4fb)](_0x34c531)]);for(let _0x5d20af of _0x2233fe){if(_0x5d20af===_0x24716b(0x309)||_0x5d20af===_0x24716b(0x29a))continue;let _0x2224a9=Reflect[_0x24716b(0x285)](_0x392ae0,_0x5d20af),_0xe5dd64=Reflect[_0x24716b(0x285)](_0x515069,_0x5d20af),_0x47077b=Reflect[_0x24716b(0x285)](_0x34c531,_0x5d20af);if(_0x200a76||_0x47077b!==void 0x0){if(r['Tools'][_0x24716b(0x521)](_0x2224a9,_0xe5dd64))_0x47077b===void 0x0?(Reflect[_0x24716b(0x420)](_0x392ae0,_0x5d20af),Reflect[_0x24716b(0x420)](_0x515069,_0x5d20af)):(Reflect[_0x24716b(0x36a)](_0x392ae0,_0x5d20af,r[_0x24716b(0x4cf)][_0x24716b(0x417)](_0x47077b)),Reflect[_0x24716b(0x36a)](_0x515069,_0x5d20af,r[_0x24716b(0x4cf)][_0x24716b(0x417)](_0x47077b)));else{if(r[_0x24716b(0x4cf)]['isObject'](_0x2224a9)&&(r['Tools'][_0x24716b(0x534)](_0xe5dd64)||_0xe5dd64===void 0x0)){let _0x5896d1=_0xe5dd64??{};this[_0x24716b(0x25f)](_0x2224a9,_0x5896d1,r['Tools'][_0x24716b(0x534)](_0x47077b)?_0x47077b:{},_0x200a76),(_0xe5dd64!==void 0x0||Object['keys'](_0x5896d1)[_0x24716b(0x47a)]>0x0)&&Reflect[_0x24716b(0x36a)](_0x515069,_0x5d20af,_0x5896d1);}}}}}[_0x28bbb9(0x505)](_0x196f80,_0x98632e,_0x349bb8){const _0x4d7ee9=_0x28bbb9;if(_0x98632e['length']!==0x1||_0x349bb8[_0x4d7ee9(0x47a)]!==0x1||_0x98632e[0x0]['id']!==i[_0x4d7ee9(0x4d7)]['id']||_0x349bb8[0x0]['id']!==i['RichTextEditingMutation']['id'])return _0x196f80;let _0x53941f=_0x98632e[0x0][_0x4d7ee9(0x453)],_0x5955c3=_0x349bb8[0x0][_0x4d7ee9(0x453)],_0x5be373=this[_0x4d7ee9(0x292)](_0x53941f[_0x4d7ee9(0x3d1)],!0x0);return r[_0x4d7ee9(0x413)][_0x4d7ee9(0x33b)](_0x5be373)?_0x196f80:(_0x5955c3[_0x4d7ee9(0x3d1)]=r[_0x4d7ee9(0x413)][_0x4d7ee9(0x24c)](this[_0x4d7ee9(0x292)](_0x5955c3['actions'],!0x1),r[_0x4d7ee9(0x413)][_0x4d7ee9(0x487)](_0x5be373,_0x196f80)),r[_0x4d7ee9(0x413)]['apply'](_0x196f80,_0x5be373)??_0x196f80);}[_0x28bbb9(0x292)](_0x3280fe,_0x3855fd){const _0x358b5b=_0x28bbb9;let _0x5be5e4=r['JSON1'][_0x358b5b(0x538)][_0x358b5b(0x34a)](_0x3280fe),_0x1211a4=r[_0x358b5b(0x3d3)]['type'][_0x358b5b(0x23e)]();return _0x5be5e4[_0x358b5b(0x3e5)](null,_0x3a0d68=>{const _0x1f1576=_0x358b5b;let _0x34ce05=_0x5be5e4[_0x1f1576(0x33d)]();if(_0x34ce05[0x0]===_0x1f1576(0x51f)===_0x3855fd){for(let _0x35c44b of Object[_0x1f1576(0x4fb)](_0x3a0d68))_0x1211a4[_0x1f1576(0x49c)](_0x34ce05,_0x35c44b,_0x3a0d68[_0x35c44b]);}}),_0x1211a4[_0x358b5b(0x285)]();}};mt=b([y(0x0,r['IUniverInstanceService']),y(0x1,r['ICommandService']),y(0x2,r['IContextService']),y(0x3,r[_0x28bbb9(0x421)]),y(0x4,n[_0x28bbb9(0x4fc)]),y(0x5,r[_0x28bbb9(0x369)])],mt);let $=class extends r[_0x28bbb9(0x522)]{constructor(_0x588744=h,_0x2a9aab,_0x112115,_0x50e49e){const _0x559972=_0x28bbb9;super(),this[_0x559972(0x2c7)]=_0x588744,this[_0x559972(0x41e)]=_0x2a9aab,this[_0x559972(0x475)]=_0x112115,this[_0x559972(0x2c8)]=_0x50e49e;let {..._0x41bd80}=(0x0,r[_0x559972(0x3e1)])({},h,this[_0x559972(0x2c7)]);if(!_0x41bd80['socketService'])throw Error(_0x559972(0x1e9));this['_config']=_0x41bd80,this[_0x559972(0x2c8)][_0x559972(0x2da)](m,_0x41bd80);}[_0x28bbb9(0x2bb)](){const _0x4b1ba2=_0x28bbb9;this[_0x4b1ba2(0x2c8)][_0x4b1ba2(0x2da)](r[_0x4b1ba2(0x287)],this[_0x4b1ba2(0x2c7)][_0x4b1ba2(0x372)]??[]),this[_0x4b1ba2(0x4ef)](),this[_0x4b1ba2(0x3dd)]();}[_0x28bbb9(0x4ef)](){const _0x22befe=_0x28bbb9;var _0x4a3d3b,_0x3e0aaa;this['_injector'][_0x22befe(0x546)](r[_0x22befe(0x493)])&&this[_0x22befe(0x41e)]['error'](_0x22befe(0x1b9),_0x22befe(0x440));let _0x479c55=(0x0,r[_0x22befe(0x2b8)])([[r['IUndoRedoService'],{'useClass':mt}],[Qe,{'useValue':$e()}],[U],[x],[w],[K],[J],[se],[Q],[v],[Y],[Je,{'useClass':this['_config'][_0x22befe(0x384)]}],[n[_0x22befe(0x35f)],{'useClass':pt}],[r[_0x22befe(0x3b2)],{'useClass':q}],[r['IImageIoService'],{'useClass':X}],[at,{'useClass':G}],[r[_0x22befe(0x43f)],{'useClass':Z}],[W],[it]],(_0x4a3d3b=this[_0x22befe(0x2c7)])==null?void 0x0:_0x4a3d3b[_0x22befe(0x339)]);if(!((_0x3e0aaa=this['_config'])!=null&&_0x3e0aaa[_0x22befe(0x443)])){let _0x363010=_0x479c55[_0x22befe(0x4b1)](([_0x65565b])=>_0x65565b===T);_0x363010!==-0x1&&_0x479c55[_0x22befe(0x1ca)](_0x363010,0x1);}(0x0,r[_0x22befe(0x295)])(this[_0x22befe(0x475)],_0x479c55);}[_0x28bbb9(0x3dd)](){const _0xc80d94=_0x28bbb9;var _0x5ffd34,_0x366c6c;if(this['_injector'][_0xc80d94(0x285)](e[_0xc80d94(0x3ff)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,e[_0xc80d94(0x2c2)])({'maxParallel':0x6})}),!((_0x5ffd34=this['_config'])!=null&&_0x5ffd34[_0xc80d94(0x567)])){var _0x3e97ee;(_0x3e97ee=this[_0xc80d94(0x475)][_0xc80d94(0x285)](C,r[_0xc80d94(0x3db)][_0xc80d94(0x32a)]))==null||_0x3e97ee[_0xc80d94(0x535)]();}(_0x366c6c=this['_config'])!=null&&_0x366c6c[_0xc80d94(0x48d)]&&(0x0,r[_0xc80d94(0x2d7)])(this[_0xc80d94(0x475)],[[K]]),(0x0,r[_0xc80d94(0x2d7)])(this[_0xc80d94(0x475)],[[J],[W],[Q]]);}};_($,_0x28bbb9(0x358),_0x28bbb9(0x4c3)),_($,_0x28bbb9(0x476),nt),_($,_0x28bbb9(0x1d6),rt),$=b([(0x0,r[_0x28bbb9(0x365)])(u[_0x28bbb9(0x1dc)],e['UniverNetworkPlugin'],n[_0x28bbb9(0x271)]),y(0x1,r[_0x28bbb9(0x369)]),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x3,r['IConfigService'])],$),Object['defineProperty'](exports,_0x28bbb9(0x2d3),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x2bf),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x28e),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x3c8),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x28bbb9(0x41f)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x28bbb9(0x38d)]=m,exports[_0x28bbb9(0x322)]=ne,Object[_0x28bbb9(0x41f)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x270),{'enumerable':!0x0,'get':function(){return W;}}),Object['defineProperty'](exports,_0x28bbb9(0x389),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x28bbb9(0x335),{'enumerable':!0x0,'get':function(){return X;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x44a),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x1f0),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x51b),{'enumerable':!0x0,'get':function(){return Xe;}}),exports[_0x28bbb9(0x4fe)]=Ue,exports[_0x28bbb9(0x2ca)]=oe,exports[_0x28bbb9(0x38c)]=v,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x323),{'enumerable':!0x0,'get':function(){return mt;}}),exports[_0x28bbb9(0x223)]=se,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x1d5),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x28bbb9(0x1fb)]=0x4e20,exports[_0x28bbb9(0x2c1)]='ws://127.0.0.1:8000/universer-api/comb/connect',exports[_0x28bbb9(0x41b)]=_0x28bbb9(0x27f),exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x28bbb9(0x4ff),Object[_0x28bbb9(0x41f)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x507),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x28bbb9(0x41f)](exports,'FetchingMissState',{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x28bbb9(0x356)]=_0x28bbb9(0x39b),exports['HEARTBEAT_TIMEOUT_KEY']=_0x28bbb9(0x269),exports[_0x28bbb9(0x474)]=at,exports[_0x28bbb9(0x555)]=Qe,exports[_0x28bbb9(0x452)]=Je,exports['ILocalCacheService']=C,exports['INetworkConditionService']=Ge,exports[_0x28bbb9(0x24a)]=T,exports[_0x28bbb9(0x3a2)]=0x3e8,exports[_0x28bbb9(0x332)]=_0x28bbb9(0x3a2),exports[_0x28bbb9(0x3b4)]=0x1d4c0,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x4b0),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x28bbb9(0x41f)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x28bbb9(0x41f)](exports,'OfflineState',{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x267),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x50f),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x28bbb9(0x4be)]=_0x28bbb9(0x395),exports[_0x28bbb9(0x464)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x28bbb9(0x54e)]=ve,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x52d),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x29b),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x4ed),{'enumerable':!0x0,'get':function(){return pt;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x368),{'enumerable':!0x0,'get':function(){return k;}}),exports['UnitStatus']=Se,Object[_0x28bbb9(0x41f)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x28bbb9(0x4a8)]=$e,exports[_0x28bbb9(0x304)]=Ke,exports['getLocalCacheKey']=be,exports[_0x28bbb9(0x1d9)]=qe;
1
+ const _0x313905=_0x16c4;(function(_0x5b613e,_0x248b64){const _0x47a94f=_0x16c4,_0x576f2e=_0x5b613e();while(!![]){try{const _0x57e78f=-parseInt(_0x47a94f(0x111))/0x1*(-parseInt(_0x47a94f(0x345))/0x2)+parseInt(_0x47a94f(0x36c))/0x3+-parseInt(_0x47a94f(0x207))/0x4*(parseInt(_0x47a94f(0xba))/0x5)+-parseInt(_0x47a94f(0x16f))/0x6+-parseInt(_0x47a94f(0x2c5))/0x7*(-parseInt(_0x47a94f(0x12d))/0x8)+-parseInt(_0x47a94f(0x41d))/0x9+-parseInt(_0x47a94f(0x241))/0xa*(-parseInt(_0x47a94f(0x35b))/0xb);if(_0x57e78f===_0x248b64)break;else _0x576f2e['push'](_0x576f2e['shift']());}catch(_0x1d2608){_0x576f2e['push'](_0x576f2e['shift']());}}}(_0x247d,0x9a5a5),Object[_0x313905(0xbf)](exports,Symbol['toStringTag'],{'value':_0x313905(0x461)}));let e=require('@univerjs/network'),t=require('rxjs'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs/core'),i=require('@univerjs/docs'),a=require('@univerjs/sheets'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x313905(0x2f6),h={};function g(_0x4de668){'@babel/helpers - typeof';const _0x567c90=_0x313905;return g=typeof Symbol==_0x567c90(0x1b8)&&typeof Symbol[_0x567c90(0x290)]==_0x567c90(0x379)?function(_0xa2cd8e){return typeof _0xa2cd8e;}:function(_0x5ea05f){const _0x55ef4d=_0x567c90;return _0x5ea05f&&typeof Symbol==_0x55ef4d(0x1b8)&&_0x5ea05f[_0x55ef4d(0x128)]===Symbol&&_0x5ea05f!==Symbol['prototype']?_0x55ef4d(0x379):typeof _0x5ea05f;},g(_0x4de668);}function ee(_0x4d47c4,_0x41fe3b){const _0x24be45=_0x313905;if(g(_0x4d47c4)!=_0x24be45(0x31b)||!_0x4d47c4)return _0x4d47c4;var _0x8c844a=_0x4d47c4[Symbol['toPrimitive']];if(_0x8c844a!==void 0x0){var _0xdcfe92=_0x8c844a['call'](_0x4d47c4,_0x41fe3b||_0x24be45(0x236));if(g(_0xdcfe92)!=_0x24be45(0x31b))return _0xdcfe92;throw TypeError(_0x24be45(0x331));}return(_0x41fe3b==='string'?String:Number)(_0x4d47c4);}function te(_0x465ab8){var _0x40526b=ee(_0x465ab8,'string');return g(_0x40526b)=='symbol'?_0x40526b:_0x40526b+'';}function _(_0x5d8d86,_0x5acbfd,_0x535abe){return(_0x5acbfd=te(_0x5acbfd))in _0x5d8d86?Object['defineProperty'](_0x5d8d86,_0x5acbfd,{'value':_0x535abe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d8d86[_0x5acbfd]=_0x535abe,_0x5d8d86;}var ne=class{constructor(_0x133fe7,_0x344cc8,_0x5e7377={}){const _0x3e8276=_0x313905;this[_0x3e8276(0x3ff)]=_0x344cc8,this[_0x3e8276(0xcc)]=_0x5e7377,_(this,_0x3e8276(0x1c2),0x0),_(this,_0x3e8276(0x32b),void 0x0),_(this,_0x3e8276(0x10a),void 0x0),_(this,_0x3e8276(0x25b),void 0x0),_(this,_0x3e8276(0x10f),0x0),_(this,_0x3e8276(0x221),0x0),_(this,_0x3e8276(0x352),null),_(this,'_pendingReason',null),_(this,_0x3e8276(0x295),null),_(this,_0x3e8276(0x206),0x0),_(this,_0x3e8276(0x3fa),!0x1),_(this,'_now',void 0x0),_(this,_0x3e8276(0x1de),void 0x0),this['_reqId']=_0x133fe7,this[_0x3e8276(0x10a)]=_0x5e7377[_0x3e8276(0x2d3)]??0x4e20,this[_0x3e8276(0x25b)]=Math[_0x3e8276(0x2aa)](_0x5e7377['maxAckTimeout']??0x1d4c0,this['_ackTimeout']),this[_0x3e8276(0x3f6)]=_0x5e7377[_0x3e8276(0x445)]??(()=>Date[_0x3e8276(0x445)]()),this[_0x3e8276(0x32b)]=this[_0x3e8276(0x3f6)]();}get['reqId'](){return this['_reqId'];}get[_0x313905(0x30f)](){return this['_attempt'];}get[_0x313905(0x12a)](){const _0x283218=_0x313905;return this[_0x283218(0x221)];}get[_0x313905(0x18d)](){const _0x359008=_0x313905;return this['_now']()-this[_0x359008(0x32b)];}[_0x313905(0x3a7)](_0xd2cc72){const _0x264f2c=_0x313905;if(this[_0x264f2c(0x3fa)])return;this[_0x264f2c(0x295)]=_0xd2cc72;let _0x33305c=this[_0x264f2c(0x33f)];_0x33305c&&(this[_0x264f2c(0x33f)]=null,this[_0x264f2c(0x44b)](_0x33305c));}[_0x313905(0x41f)](){const _0x5eb64d=_0x313905;this[_0x5eb64d(0x295)]=null;}[_0x313905(0x45b)](_0xef776c,_0x49140b,_0x454261){const _0x2f927b=_0x313905;this[_0x2f927b(0x3fa)]||(_0x454261&&this['_countResend'](_0x454261),this[_0x2f927b(0xda)](),this[_0x2f927b(0x262)](_0xef776c),this[_0x2f927b(0x1de)]=_0xef776c[_0x2f927b(0x131)]??this[_0x2f927b(0x1de)],_0x454261&&this[_0x2f927b(0x1f1)](_0x454261,_0x49140b));}[_0x313905(0xda)](){const _0x1ad8d4=_0x313905;this[_0x1ad8d4(0x2ac)](this['_ackTimeout'],_0x1ad8d4(0x2e4));}[_0x313905(0x188)](_0x26378a=_0x313905(0x1c8)){const _0x4c96ce=_0x313905;this[_0x4c96ce(0x2ac)](this[_0x4c96ce(0x10f)],_0x26378a);}['dispose'](){const _0x526c72=_0x313905;this['_disposed']=!0x0,this['_clearTimer'](),this[_0x526c72(0x295)]=null,this['_pendingReason']=null;}[_0x313905(0x262)](_0x4f17f0){const _0x5ab35c=_0x313905;let _0x40b77d=++this[_0x5ab35c(0x206)],_0x63ee42;try{_0x63ee42=this[_0x5ab35c(0x3ff)](_0x4f17f0,{'timeout':this['_ackTimeout']});}catch(_0x5b912f){this[_0x5ab35c(0x271)](_0x40b77d,_0x5b912f);return;}_0x63ee42 instanceof Promise&&_0x63ee42[_0x5ab35c(0x3bb)](_0x2076e3=>this[_0x5ab35c(0x271)](_0x40b77d,_0x2076e3));}[_0x313905(0x271)](_0x50f649,_0x55d497){const _0x520eff=_0x313905;if(this[_0x520eff(0x3fa)]||_0x50f649!==this[_0x520eff(0x206)])return;let _0x127cba=re(_0x55d497,this[_0x520eff(0x10f)]);_0x127cba!==null&&this['_schedule'](_0x127cba,'request_failed');}[_0x313905(0x2ac)](_0x4fb4a2,_0x303af1){const _0x25e4ab=_0x313905;this['_disposed']||(this[_0x25e4ab(0x2d0)](),this[_0x25e4ab(0x33f)]=null,this[_0x25e4ab(0x221)]=_0x4fb4a2,this[_0x25e4ab(0x352)]=setTimeout(()=>{const _0x33cc9d=_0x25e4ab;this[_0x33cc9d(0x352)]=null,this[_0x33cc9d(0x295)]?this[_0x33cc9d(0x44b)](_0x303af1):this[_0x33cc9d(0x33f)]=_0x303af1;},_0x4fb4a2));}[_0x313905(0x44b)](_0x3ed778){const _0x4d1e7f=_0x313905;let _0x5864b9=this['_source'];if(!_0x5864b9||this[_0x4d1e7f(0x3fa)])return;let {changeset:_0x500b12,unsyncedMutationCount:_0x4f3647}=_0x5864b9();this[_0x4d1e7f(0x447)](_0x3ed778),this['armAckTimeout'](),this[_0x4d1e7f(0x262)](_0x500b12),this[_0x4d1e7f(0x1de)]=_0x500b12['reqId']??this[_0x4d1e7f(0x1de)],this[_0x4d1e7f(0x1f1)](_0x3ed778,_0x4f3647);}[_0x313905(0x447)](_0x21f659){const _0x2243ac=_0x313905;this[_0x2243ac(0x1c2)]+=0x1,_0x21f659===_0x2243ac(0x1c8)||_0x21f659==='request_failed'||_0x21f659===_0x2243ac(0x286)?this[_0x2243ac(0x10f)]=this[_0x2243ac(0x10f)]===0x0?0x3e8:Math[_0x2243ac(0x2a4)](this['_retryBackoff']*0x2,0x4e20):_0x21f659===_0x2243ac(0x2e4)&&(this[_0x2243ac(0x10a)]=Math['min'](this[_0x2243ac(0x10a)]*0x2,this[_0x2243ac(0x25b)]));}[_0x313905(0x1f1)](_0x54de44,_0x295e8d){const _0x4cacc4=_0x313905;var _0x57f1f4,_0x244f84;this['_disposed']||(_0x57f1f4=(_0x244f84=this[_0x4cacc4(0xcc)])[_0x4cacc4(0x212)])==null||_0x57f1f4['call'](_0x244f84,{'reqId':this[_0x4cacc4(0x1de)],'reason':_0x54de44,'attempt':this[_0x4cacc4(0x1c2)],'elapsedMs':this[_0x4cacc4(0x18d)],'unsyncedMutationCount':_0x295e8d,'nextDelayMs':this['_ackTimeout']});}[_0x313905(0x2d0)](){const _0x5afe5e=_0x313905;this[_0x5afe5e(0x352)]!=null&&(clearTimeout(this[_0x5afe5e(0x352)]),this[_0x5afe5e(0x352)]=null);}};function re(_0x43fe6b,_0x4a2151){const _0x55fcae=_0x313905;if(_0x43fe6b instanceof t['TimeoutError'])return null;if(_0x43fe6b instanceof e[_0x55fcae(0x3dd)]){let _0x3fca2c=_0x43fe6b[_0x55fcae(0x265)]??0x0;return _0x3fca2c===0x0||_0x3fca2c===0x198||_0x3fca2c===0x1ad||_0x3fca2c>=0x1f4?Math[_0x55fcae(0x2aa)](_0x4a2151,ie(_0x43fe6b)):null;}return _0x4a2151;}function ie(_0xaa2e96){const _0x19e456=_0x313905;var _0x53b09f;let _0x161b55=(_0x53b09f=_0xaa2e96[_0x19e456(0x272)])==null||(_0x53b09f=_0x53b09f[_0x19e456(0xe5)](_0x19e456(0x34d)))==null?void 0x0:_0x53b09f[0x0],_0x252344=_0x161b55===void 0x0?NaN:Number(_0x161b55);return Number['isFinite'](_0x252344)&&_0x252344>0x0?_0x252344*0x3e8:0x0;}function ae(_0x13013b){const _0x1de982=_0x313905;return JSON[_0x1de982(0x321)](_0x13013b)[_0x1de982(0x1f6)];}let oe=function(_0x3ed50e){const _0x47339c=_0x313905;return _0x3ed50e['OTHER_CLIENT_EDITING']=_0x47339c(0x410),_0x3ed50e['PERMISSION_DENIED']='PERMISSION_DENIED',_0x3ed50e[_0x47339c(0x25f)]=_0x47339c(0x25f),_0x3ed50e[_0x47339c(0x20d)]=_0x47339c(0x20d),_0x3ed50e[_0x47339c(0x218)]=_0x47339c(0x218),_0x3ed50e[_0x47339c(0x1eb)]=_0x47339c(0x1eb),_0x3ed50e[_0x47339c(0x36b)]='JOIN_ROOM_FAILED',_0x3ed50e[_0x47339c(0x1f3)]=_0x47339c(0x1f3),_0x3ed50e[_0x47339c(0x124)]=_0x47339c(0x124),_0x3ed50e[_0x47339c(0x13b)]=_0x47339c(0x13b),_0x3ed50e[_0x47339c(0x3f4)]='SUBMIT_CHANGESET_TIMEOUT',_0x3ed50e;}({});var v=class{constructor(){const _0x46da43=_0x313905;_(this,_0x46da43(0x441),new t[(_0x46da43(0xb7))]()),_(this,_0x46da43(0x2ed),this[_0x46da43(0x441)]['asObservable']());}[_0x313905(0x117)](_0x41564a){const _0x1ce629=_0x313905;this[_0x1ce629(0x441)][_0x1ce629(0xb9)](_0x41564a);}},se=class{constructor(){const _0x483a29=_0x313905;_(this,_0x483a29(0x147),new t[(_0x483a29(0xb7))]()),_(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}['onCommentUpdate'](_0x2866f1){const _0x5baf6d=_0x313905;this[_0x5baf6d(0x147)][_0x5baf6d(0xb9)](_0x2866f1);}};function y(_0x41f5dd,_0x4d3ec0){return function(_0x339a6d,_0xf51f6a){_0x4d3ec0(_0x339a6d,_0xf51f6a,_0x41f5dd);};}function b(_0x1d3e3f,_0xe258b8,_0x59fc2b,_0xc256ae){const _0x331c46=_0x313905;var _0x578bc7=arguments[_0x331c46(0x1f6)],_0x5cc7b5=_0x578bc7<0x3?_0xe258b8:_0xc256ae===null?_0xc256ae=Object[_0x331c46(0x30b)](_0xe258b8,_0x59fc2b):_0xc256ae,_0x302812;if(typeof Reflect==_0x331c46(0x31b)&&typeof Reflect['decorate']==_0x331c46(0x1b8))_0x5cc7b5=Reflect[_0x331c46(0xc4)](_0x1d3e3f,_0xe258b8,_0x59fc2b,_0xc256ae);else{for(var _0x31e33=_0x1d3e3f[_0x331c46(0x1f6)]-0x1;_0x31e33>=0x0;_0x31e33--)(_0x302812=_0x1d3e3f[_0x31e33])&&(_0x5cc7b5=(_0x578bc7<0x3?_0x302812(_0x5cc7b5):_0x578bc7>0x3?_0x302812(_0xe258b8,_0x59fc2b,_0x5cc7b5):_0x302812(_0xe258b8,_0x59fc2b))||_0x5cc7b5);}return _0x578bc7>0x3&&_0x5cc7b5&&Object[_0x331c46(0xbf)](_0xe258b8,_0x59fc2b,_0x5cc7b5),_0x5cc7b5;}let x=class extends r[_0x313905(0x333)]{constructor(_0x26918b){const _0x1c87f5=_0x313905;super(),this['_univerInstanceService']=_0x26918b,_(this,_0x1c87f5(0x127),new Map()),_(this,_0x1c87f5(0x263),new t[(_0x1c87f5(0xb7))]()),this['disposeWithMe']((0x0,t[_0x1c87f5(0x1d4)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](r[_0x1c87f5(0xd4)]['UNIVER_SHEET'])[_0x1c87f5(0x24a)]((0x0,c['map'])(_0x298f4f=>_0x298f4f[_0x1c87f5(0x400)]())),this[_0x1c87f5(0x121)]['getTypeOfUnitDisposed$'](r['UniverInstanceType']['UNIVER_DOC'])[_0x1c87f5(0x24a)]((0x0,c[_0x1c87f5(0x180)])(_0x55b072=>_0x55b072['getUnitId']())),this[_0x1c87f5(0x121)][_0x1c87f5(0x1f5)](r[_0x1c87f5(0xd4)][_0x1c87f5(0x454)])[_0x1c87f5(0x24a)]((0x0,c['map'])(_0x408ec8=>_0x408ec8['getUnitId']())),this[_0x1c87f5(0x121)][_0x1c87f5(0x1f5)](r[_0x1c87f5(0xd4)][_0x1c87f5(0x315)])[_0x1c87f5(0x24a)]((0x0,c[_0x1c87f5(0x180)])(_0x3d1c99=>_0x3d1c99[_0x1c87f5(0x400)]())))[_0x1c87f5(0x1c9)](_0x3d30c7=>this[_0x1c87f5(0x198)](_0x3d30c7)));}[_0x313905(0x3b0)](_0x70e727){const _0x2bf6ff=_0x313905;return this[_0x2bf6ff(0x127)][_0x2bf6ff(0x3ae)](_0x70e727)?(0x0,t['of'])(this[_0x2bf6ff(0x127)][_0x2bf6ff(0xe5)](_0x70e727)):this['_roomCreated$'][_0x2bf6ff(0x24a)]((0x0,c['map'])(_0x3caa20=>{const _0x226c20=_0x2bf6ff;if(_0x3caa20===_0x70e727)return this[_0x226c20(0x127)][_0x226c20(0xe5)](_0x3caa20);}));}['updateMember'](_0x14b0bb,_0xccd0d8){const _0x171f0b=_0x313905;let _0x311c8e=this[_0x171f0b(0x127)]['get'](_0x14b0bb);_0x311c8e||(_0x311c8e=new ce(),this[_0x171f0b(0x127)][_0x171f0b(0x245)](_0x14b0bb,_0x311c8e),this['_roomCreated$']['next'](_0x14b0bb)),_0x311c8e[_0x171f0b(0xe8)](_0xccd0d8);}[_0x313905(0x1f9)](_0x55a371,_0x52e380){const _0x1e40c0=_0x313905;let _0x324dc1=this['_roomMembers'][_0x1e40c0(0xe5)](_0x55a371);_0x324dc1&&_0x324dc1[_0x1e40c0(0x1f9)](_0x52e380);}[_0x313905(0x3d7)](_0x52293c){const _0xe43bd7=_0x313905;return this['_roomMembers'][_0xe43bd7(0xe5)](_0x52293c);}[_0x313905(0x237)](_0x469748,_0x321c80){const _0x1a6b24=_0x313905;let _0x2cddd3=this['_roomMembers'][_0x1a6b24(0xe5)](_0x469748);if(_0x2cddd3)return _0x2cddd3[_0x1a6b24(0x237)](_0x321c80);}[_0x313905(0x198)](_0x11e278){const _0x2f1eb6=_0x313905;let _0xb66bcb=this[_0x2f1eb6(0x127)][_0x2f1eb6(0xe5)](_0x11e278);_0xb66bcb&&(_0xb66bcb['dispose'](),this[_0x2f1eb6(0x127)][_0x2f1eb6(0x20e)](_0x11e278));}[_0x313905(0x2a7)](){const _0x4ef068=_0x313905;this[_0x4ef068(0x127)][_0x4ef068(0xf3)](_0x4d7697=>_0x4d7697['dispose']()),this[_0x4ef068(0x127)][_0x4ef068(0x1d5)](),this['_roomCreated$']['complete']();}};x=b([y(0x0,r['IUniverInstanceService'])],x);var ce=class extends r[_0x313905(0x333)]{constructor(..._0x1f9e18){const _0x1ad89b=_0x313905;super(..._0x1f9e18),_(this,'_members',new Map()),_(this,_0x1ad89b(0x463),new t[(_0x1ad89b(0x34f))](this[_0x1ad89b(0x2f7)])),_(this,_0x1ad89b(0x169),this['_members$'][_0x1ad89b(0x1da)]());}[_0x313905(0x2a7)](){const _0x1a045f=_0x313905;this[_0x1a045f(0x2f7)]['clear'](),this[_0x1a045f(0x463)][_0x1a045f(0x395)]();}[_0x313905(0xe8)](_0x278ef0){const _0x3f97e1=_0x313905;this['_members'][_0x3f97e1(0x245)](_0x278ef0['memberID'],_0x278ef0),this[_0x3f97e1(0x1c6)]();}[_0x313905(0x1f9)](_0x36642d){const _0x3114b4=_0x313905;this['_members'][_0x3114b4(0x20e)](_0x36642d),this['_emitMembers']();}[_0x313905(0x237)](_0x56da12){const _0x586b30=_0x313905;return this[_0x586b30(0x2f7)][_0x586b30(0xe5)](_0x56da12);}[_0x313905(0x311)](){const _0x39b517=_0x313905;return Array[_0x39b517(0x298)](this[_0x39b517(0x2f7)]['values']());}[_0x313905(0x1c6)](){const _0x377e95=_0x313905;this[_0x377e95(0x463)]['next'](this[_0x377e95(0x2f7)]);}};function le(_0x4db74c,_0x2ade6c){const _0x424547=_0x313905;if(de(_0x4db74c))return _0x2ade6c;if(_0x2ade6c[_0x424547(0x280)]===n[_0x424547(0x2ce)][_0x424547(0x189)]){let _0x591190=ge(_0x4db74c),_0x530a7c=_0x2ade6c;return{..._0x530a7c,'data':{..._0x530a7c[_0x424547(0x335)],'unitID':_0x4db74c[_0x424547(0x19f)]['unitId'],'unitType':_0x4db74c['target'][_0x424547(0x459)]??_0x530a7c[_0x424547(0x335)][_0x424547(0x459)],'changeset':_0x591190['toRemote'](_0x530a7c[_0x424547(0x335)]['changeset'],_e(_0x4db74c))}};}if(_0x2ade6c[_0x424547(0x280)]===n['CollaborationEvent'][_0x424547(0x3b3)]){let _0x33e75f=_0x2ade6c;return{..._0x33e75f,'data':{..._0x33e75f[_0x424547(0x335)],'unitID':_0x4db74c[_0x424547(0x19f)][_0x424547(0x39a)],'unitType':_0x4db74c['target']['unitType']??_0x33e75f[_0x424547(0x335)][_0x424547(0x459)]}};}return _0x2ade6c;}function ue(_0x5b3919,_0x3d518b){const _0x3eb253=_0x313905;if(de(_0x5b3919))return[_0x3d518b];switch(_0x3d518b[_0x3eb253(0x280)]){case n[_0x3eb253(0x2ce)][_0x3eb253(0x378)]:return[fe(_0x5b3919,_0x3d518b)];case n[_0x3eb253(0x2ce)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x5b3919,_0x3d518b)];case n[_0x3eb253(0x2ce)][_0x3eb253(0x3cc)]:return[pe(_0x5b3919,_0x3d518b)];default:return[_0x3d518b];}}function de(_0x1f7f4e){const _0x2d92c9=_0x313905;return _0x1f7f4e[_0x2d92c9(0x19f)][_0x2d92c9(0x2dd)]==null&&_0x1f7f4e[_0x2d92c9(0x19f)]['unitId']===_0x1f7f4e[_0x2d92c9(0xb4)]&&!_0x1f7f4e[_0x2d92c9(0x1f0)];}function fe(_0x15bbb9,_0x52faf4){const _0x3d438c=_0x313905;return{..._0x52faf4,'data':(0x0,n['parseChangesetToProtocol'])(he(_0x15bbb9,(0x0,n[_0x3d438c(0x232)])(_0x52faf4['data'])))};}function pe(_0x2a3cc4,_0x173fce){const _0x332a22=_0x313905;return{..._0x173fce,'data':he(_0x2a3cc4,_0x173fce[_0x332a22(0x335)])};}function me(_0x51295c,_0x132f5c){const _0x37434a=_0x313905;let _0x13df4a=_0x132f5c[_0x37434a(0x335)];return{..._0x132f5c,'data':{..._0x13df4a,'changesets':_0x13df4a[_0x37434a(0x1aa)][_0x37434a(0x180)](_0x39ec29=>(0x0,n[_0x37434a(0x37d)])(he(_0x51295c,(0x0,n[_0x37434a(0x232)])(_0x39ec29))))}};}function he(_0x5ef626,_0x299f12){const _0x5022c1=_0x313905;return ge(_0x5ef626)[_0x5022c1(0x1ad)](_0x299f12,_e(_0x5ef626));}function ge(_0x11dff5){const _0x273bd6=_0x313905;if(!_0x11dff5['changeset'])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x11dff5[_0x273bd6(0x1f0)];}function _e(_0x288ca2){const _0x3170ca=_0x313905;return{'localUnitId':_0x288ca2['localUnitId'],'unitType':_0x288ca2[_0x3170ca(0x459)],'target':_0x288ca2[_0x3170ca(0x19f)]};}let ve=function(_0x4c24de){const _0xe88956=_0x313905;return _0x4c24de[_0x4c24de[_0xe88956(0xeb)]=0x0]=_0xe88956(0xeb),_0x4c24de[_0x4c24de[_0xe88956(0x370)]=0x1]=_0xe88956(0x370),_0x4c24de[_0x4c24de[_0xe88956(0x162)]=0x2]=_0xe88956(0x162),_0x4c24de[_0x4c24de[_0xe88956(0x3ea)]=0x3]='ONLINE',_0x4c24de;}({});function _0x16c4(_0x4be54c,_0x385d68){_0x4be54c=_0x4be54c-0xab;const _0x247d9a=_0x247d();let _0x16c47a=_0x247d9a[_0x4be54c];return _0x16c47a;}const ye={[o[_0x313905(0x177)]['FAIL']]:_0x313905(0x149),[o[_0x313905(0x177)][_0x313905(0x2e0)]]:'session.room-full',[o[_0x313905(0x177)][_0x313905(0xef)]]:'session.room-not-exists',[o[_0x313905(0x177)][_0x313905(0x285)]]:'session.room-permission-denied',[o[_0x313905(0x177)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x313905(0x289)};let S=class extends r[_0x313905(0x380)]{get['sessionStatus'](){const _0x1ce163=_0x313905;return this[_0x1ce163(0x139)][_0x1ce163(0x28b)]();}constructor(_0x506285,_0x4807f4,_0x4d58c0,_0x15e692,_0x277c4b,_0x2370f4,_0x40d71e){const _0x27b6ff=_0x313905;super(),this[_0x27b6ff(0x2e9)]=_0x506285,this[_0x27b6ff(0x1c1)]=_0x4d58c0,this['_memberService']=_0x15e692,this['_commentService']=_0x277c4b,this[_0x27b6ff(0x37e)]=_0x2370f4,this[_0x27b6ff(0x361)]=_0x40d71e,_(this,_0x27b6ff(0x139),new t['BehaviorSubject'](0x0)),_(this,_0x27b6ff(0x107),this[_0x27b6ff(0x139)][_0x27b6ff(0x1da)]()),_(this,_0x27b6ff(0x441),new t[(_0x27b6ff(0xb7))]()),_(this,_0x27b6ff(0x2ed),this[_0x27b6ff(0x441)][_0x27b6ff(0x1da)]()),_(this,_0x27b6ff(0xe1),void 0x0),_(this,_0x27b6ff(0x344),void 0x0),_(this,_0x27b6ff(0x442),!0x1),_(this,'_telemetryInfo',null),this[_0x27b6ff(0x442)]=!!this['_telemetryService'],_0x4807f4[_0x27b6ff(0x24a)]((0x0,t[_0x27b6ff(0x385)])(this[_0x27b6ff(0x42b)]))['subscribe'](_0x1b20c0=>{const _0x27571e=_0x27b6ff;if(_0x1b20c0!==void 0x0){if(this[_0x27571e(0xe1)]=_0x1b20c0,_0x1b20c0)this['_joinRoom'](_0x1b20c0),this[_0x27571e(0x344)]=_0x1b20c0[_0x27571e(0xf4)]['subscribe'](_0x299a35=>{const _0xdf90c7=_0x27571e;_0x299a35['routeKey']===this[_0xdf90c7(0x2e9)]['target'][_0xdf90c7(0x39a)]&&this[_0xdf90c7(0xf0)](_0x299a35);});else{var _0x31d935;this[_0x27571e(0x105)](),this[_0x27571e(0x139)][_0x27571e(0xb9)](0x2),(_0x31d935=this[_0x27571e(0x344)])==null||_0x31d935[_0x27571e(0xbd)](),this[_0x27571e(0x344)]=null;}}});}[_0x313905(0x35a)](){const _0x592e6f=_0x313905;var _0x2f3cf3;return((_0x2f3cf3=this[_0x592e6f(0xe1)])==null?void 0x0:_0x2f3cf3[_0x592e6f(0x190)])??null;}['dispose'](){const _0x31c366=_0x313905;super[_0x31c366(0x2a7)](),this[_0x31c366(0x2d4)](),this['dispose$']['next'](),this[_0x31c366(0x42b)][_0x31c366(0x395)]();}[_0x313905(0x2d4)](){const _0x216513=_0x313905;var _0x15d7ed;this[_0x216513(0x105)](),(_0x15d7ed=this[_0x216513(0xe1)])==null||_0x15d7ed[_0x216513(0x1fa)]({'cmd':o[_0x216513(0x123)][_0x216513(0x346)],'data':{'roomID':this[_0x216513(0x2e9)]['target']['unitId']}}),this[_0x216513(0x441)]['complete'](),this['_sessionStatus$'][_0x216513(0x395)]();}[_0x313905(0xf0)](_0x33b6f5){const _0x493259=_0x313905;_0x33b6f5['cmd']===o[_0x493259(0x123)]['JOIN']?this[_0x493259(0x115)](_0x33b6f5):_0x33b6f5['cmd']===o['CombCmd'][_0x493259(0xe4)]&&this[_0x493259(0x168)](_0x33b6f5);}[_0x313905(0xcb)](_0x4b50f7){const _0x5b4c74=_0x313905;this[_0x5b4c74(0x139)][_0x5b4c74(0xb9)](0x1),_0x4b50f7[_0x5b4c74(0x1fa)]({'cmd':o[_0x5b4c74(0x123)][_0x5b4c74(0x381)],'routeKey':this[_0x5b4c74(0x2e9)][_0x5b4c74(0x19f)][_0x5b4c74(0x39a)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5b4c74(0x2e9)]['target'][_0x5b4c74(0x39a)]}]}});}['_onJoinRoomEvent'](_0x356a04){const _0x5c4699=_0x313905;var _0x3637e1;if(_0x356a04['code']in ye){this['_collaborationUIEventService']['emitEvent']({'id':'JOIN_ROOM_FAILED','data':ye[_0x356a04[_0x5c4699(0x2c3)]]}),this[_0x5c4699(0x139)][_0x5c4699(0xb9)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0xb23b11=(_0x3637e1=_0x356a04[_0x5c4699(0x335)]['roomInfos'][this[_0x5c4699(0x2e9)][_0x5c4699(0x19f)][_0x5c4699(0x39a)]])==null?void 0x0:_0x3637e1['members'];_0xb23b11&&_0xb23b11['forEach'](_0x4cd8f7=>this[_0x5c4699(0x2e8)]['updateMember'](this['_identity'][_0x5c4699(0xb4)],_0x4cd8f7));}[_0x313905(0x168)](_0xaa0358){const _0x20cb2c=_0x313905;try{let _0x4000ee=ue(this[_0x20cb2c(0x2e9)],_0xaa0358[_0x20cb2c(0x335)]);for(let _0x5958fc of _0x4000ee)switch(_0x5958fc[_0x20cb2c(0x280)]){case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x1bc)]:this[_0x20cb2c(0x2d1)](_0x5958fc),this['_event$'][_0x20cb2c(0xb9)](_0x5958fc);break;case n['CollaborationEvent'][_0x20cb2c(0x134)]:this['_onUserLeave'](_0x5958fc),this[_0x20cb2c(0x441)][_0x20cb2c(0xb9)](_0x5958fc);break;case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x15d)]:case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x3cc)]:this[_0x20cb2c(0xc9)](),this[_0x20cb2c(0x441)]['next'](_0x5958fc);break;case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x398)]:this[_0x20cb2c(0x1c1)][_0x20cb2c(0x287)](_0x20cb2c(0x2ee)+JSON[_0x20cb2c(0x321)](_0x5958fc)),this[_0x20cb2c(0x441)][_0x20cb2c(0xb9)](_0x5958fc);break;case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x2eb)]:this[_0x20cb2c(0x42c)][_0x20cb2c(0x11e)](_0x5958fc[_0x20cb2c(0x335)]),this[_0x20cb2c(0x441)][_0x20cb2c(0xb9)](_0x5958fc);break;default:this[_0x20cb2c(0x441)]['next'](_0x5958fc);}}catch(_0x4ce30a){this[_0x20cb2c(0x1c1)][_0x20cb2c(0x287)](_0x4ce30a,_0xaa0358);}}[_0x313905(0x2d1)](_0x20eae3){const _0x64a115=_0x313905;this[_0x64a115(0x2e8)]['updateMember'](this['_identity']['localUnitId'],_0x20eae3[_0x64a115(0x335)]);}['_onUserLeave'](_0x531aef){const _0x2556f0=_0x313905;this[_0x2556f0(0x2e8)][_0x2556f0(0x1f9)](this[_0x2556f0(0x2e9)][_0x2556f0(0xb4)],_0x531aef['data'][_0x2556f0(0x190)]);}async[_0x313905(0x1fa)](_0x33c199,_0x3bb383,_0x1c3c2d){const _0x40aef7=_0x313905;if(this[_0x40aef7(0x15c)]!==0x3||!this[_0x40aef7(0xe1)])throw Error(_0x40aef7(0x1cf));try{let _0x2257c5=le(this[_0x40aef7(0x2e9)],_0x33c199);_0x2257c5[_0x40aef7(0x280)]===n['CollaborationEvent'][_0x40aef7(0x189)]&&this[_0x40aef7(0x391)](_0x2257c5);let _0x29a044={'cmd':o[_0x40aef7(0x123)][_0x40aef7(0x40e)],'routeKey':this['_identity']['target'][_0x40aef7(0x39a)],'routeType':'','data':_0x2257c5};return _0x1c3c2d===void 0x0?this[_0x40aef7(0xe1)][_0x40aef7(0x1fa)](_0x29a044):this[_0x40aef7(0xe1)][_0x40aef7(0x1fa)](_0x29a044,_0x1c3c2d);}catch(_0x19fa21){this['_logService']['error'](_0x19fa21);}}[_0x313905(0x391)](_0x3bd6f9){const _0x4e4b56=_0x313905;if(!this[_0x4e4b56(0x442)])return;let {data:_0x339a9d}=_0x3bd6f9,{unitID:_0x40029c,changeset:_0x27d279}=_0x339a9d,{mutations:_0x3ba417,type:_0x18d536}=_0x27d279;this[_0x4e4b56(0x45f)]={'unitId':_0x40029c,'type':_0x18d536,'startTime':performance[_0x4e4b56(0x445)](),'stopTime':0x0,'duration':0x0,'size':ae(_0x3ba417)};}[_0x313905(0xc9)](){const _0x2429fb=_0x313905;this[_0x2429fb(0x442)]&&(this[_0x2429fb(0x45f)]?(this[_0x2429fb(0x45f)][_0x2429fb(0x312)]=performance[_0x2429fb(0x445)](),this[_0x2429fb(0x45f)]['duration']=this[_0x2429fb(0x45f)]['stopTime']-this[_0x2429fb(0x45f)][_0x2429fb(0x154)],this[_0x2429fb(0x361)]['capture'](_0x2429fb(0x300),this[_0x2429fb(0x45f)]),this[_0x2429fb(0x45f)]=null):this[_0x2429fb(0x1c1)][_0x2429fb(0x287)](_0x2429fb(0x28a),_0x2429fb(0x228)));}[_0x313905(0x105)](){const _0x2a85cb=_0x313905;this[_0x2a85cb(0x45f)]=null;}};S=b([y(0x2,r[_0x313905(0x26a)]),y(0x3,(0x0,r['Inject'])(x)),y(0x4,(0x0,r[_0x313905(0x377)])(se)),y(0x5,(0x0,r[_0x313905(0x377)])(v)),y(0x6,(0x0,r['Optional'])(s[_0x313905(0x138)]))],S);const C=(0x0,r[_0x313905(0x15e)])('collaboration-client.local-cache-service');function be(_0x264376,_0x368886){return _0x368886===''||_0x368886==null?'unit-cache-'+_0x264376:'unit-cache-'+_0x264376+'-'+encodeURIComponent(_0x368886);}function xe(_0x926296){const _0x166e40=_0x313905;let {unitID:_0x203753,mutations:_0x4e90d5}=_0x926296;return{'unitId':_0x203753,'subUnitId':_0x4e90d5[_0x166e40(0x1f6)]>0x0?_0x4e90d5[0x0][_0x166e40(0x1a1)][_0x166e40(0x39b)]:null};}let w=class{constructor(_0x174ab1,_0x5eeec4,_0x271b55){const _0x24d565=_0x313905;this[_0x24d565(0x2a2)]=_0x174ab1,this[_0x24d565(0x1a7)]=_0x5eeec4,this[_0x24d565(0x106)]=_0x271b55;}['transformSelections'](_0x1a9de3){const _0x4d5025=_0x313905;var _0x141f93,_0x30d8c9;let _0x41817d=this[_0x4d5025(0x2a2)][_0x4d5025(0xe5)](a[_0x4d5025(0x1f8)]),{unitId:_0x2817bd,subUnitId:_0x5c9164}=xe(_0x1a9de3),_0x42b87e=_0x41817d==null?void 0x0:_0x41817d[_0x4d5025(0x17f)](_0x2817bd)[_0x4d5025(0x276)](),_0x1cc3ff=(_0x141f93=this[_0x4d5025(0x106)]['getUnit'](_0x2817bd))==null||(_0x141f93=_0x141f93['getActiveSheet']())==null?void 0x0:_0x141f93['getSheetId']();if(_0x42b87e[_0x4d5025(0x1f6)]===0x0||!_0x2817bd||!_0x5c9164)return;let _0x5cbdc4=[{'id':a[_0x4d5025(0x17d)]['id'],'params':{'unitId':_0x2817bd,'subUnitId':_0x1cc3ff,'selections':r['Tools'][_0x4d5025(0x33b)](_0x42b87e)}}],_0x436205=this[_0x4d5025(0x1a7)][_0x4d5025(0x356)](_0x1a9de3,_0x5cbdc4);if(!(0x0,n[_0x4d5025(0x194)])(_0x436205))throw _0x436205[_0x4d5025(0x287)];let _0x9523de=(_0x30d8c9=_0x436205[_0x4d5025(0x248)][0x0])==null||(_0x30d8c9=_0x30d8c9[_0x4d5025(0x1a1)])==null?void 0x0:_0x30d8c9['selections'];if(Array['isArray'](_0x9523de)&&_0x9523de[_0x4d5025(0x1f6)]){if(_0x9523de[_0x4d5025(0x1f6)]===_0x5cbdc4[0x0]['params'][_0x4d5025(0x2ae)][_0x4d5025(0x1f6)]&&_0x9523de[_0x4d5025(0xc7)]((_0x3b4a3c,_0x501d0b)=>r[_0x4d5025(0x2f3)]['equals'](_0x3b4a3c[_0x4d5025(0x17e)],_0x5cbdc4[0x0][_0x4d5025(0x1a1)][_0x4d5025(0x2ae)][_0x501d0b]['range'])))return;this[_0x4d5025(0x2a2)][_0x4d5025(0xe5)](r[_0x4d5025(0x296)])[_0x4d5025(0x3c3)](a[_0x4d5025(0x17d)]['id'],{'unitId':_0x2817bd,'subUnitId':_0x1cc3ff,'selections':_0x9523de});}}};w=b([y(0x0,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x1,n[_0x313905(0x3cf)]),y(0x2,r[_0x313905(0xbb)])],w);const T=(0x0,r[_0x313905(0x15e)])('univer-pro.collaboration-client.single-active-unit-service');let Se=function(_0xd7a675){const _0x1d8b16=_0x313905;return _0xd7a675[_0xd7a675['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x1d8b16(0xfd),_0xd7a675[_0xd7a675[_0x1d8b16(0x3ee)]=0x1]='OTHER_CLIENTS_EDITING',_0xd7a675;}({});function Ce(_0x2f4a24){const _0x502dd4=_0x313905;var _0x4b75a1;return!!((_0x4b75a1=_0x2f4a24[_0x502dd4(0x1a1)])!=null&&_0x4b75a1[_0x502dd4(0x3f7)]);}const we=new Set([a[_0x313905(0x14f)]['id']]),Te=new Set([l[_0x313905(0x2d2)]['id'],l['EnsureSlideMasterPageMutation']['id'],l['MoveSlidePageMutation']['id'],l[_0x313905(0x102)]['id']]);function Ee(_0xe421e4,_0xcf9656=we){const _0x17c58a=_0x313905;let _0x379ae0=[];for(let _0xed71b7 of _0xe421e4){if(_0xcf9656[_0x17c58a(0x3ae)](_0xed71b7['id'])||Ce(_0xed71b7)){if(_0x379ae0[_0x17c58a(0x1f6)]>0x0)break;_0x379ae0['push'](_0xed71b7);break;}_0x379ae0['push'](_0xed71b7);}return _0x379ae0;}function E(_0x39cd65,_0xb377df,_0x234c1e,_0x5c3535,_0x39cee8){const _0x1e94cb=_0x313905;let _0x125a5b=Ee(_0x39cd65),_0x38e08e=_0x39cee8['getCurrentUser'](),_0x3ca817=(_0x38e08e==null?void 0x0:_0x38e08e[_0x1e94cb(0x126)])??'unknown',_0x13e49f=(_0x38e08e==null?void 0x0:_0x38e08e[_0x1e94cb(0x190)])??_0x1e94cb(0x171);return{'changeset':{'unitID':_0xb377df,'type':(0x0,n['mapDocumentTypeToUniverInstanceType'])(_0x234c1e['getUnitType'](_0xb377df)),'baseRev':_0x5c3535[_0x1e94cb(0x3f3)](_0xb377df),'revision':0x0,'userID':_0x3ca817,'memberID':_0x13e49f,'mutations':_0x125a5b},'pendingMutations':_0x39cd65['slice'](_0x125a5b['length'])};}const De=E;function Oe(_0x37c32e,_0x1ed26,_0x4c6c4,_0x10d098,_0x442d11){const _0x1329df=_0x313905;let _0x2d13ad=Ee(_0x37c32e,Te),_0x869d3e=_0x442d11[_0x1329df(0x3ac)](),_0x47ad1a=(_0x869d3e==null?void 0x0:_0x869d3e[_0x1329df(0x126)])??_0x1329df(0x171),_0x37b36f=(_0x869d3e==null?void 0x0:_0x869d3e[_0x1329df(0x190)])??_0x1329df(0x171);return{'changeset':{'unitID':_0x1ed26,'type':(0x0,n['mapDocumentTypeToUniverInstanceType'])(_0x4c6c4['getUnitType'](_0x1ed26)),'baseRev':_0x10d098[_0x1329df(0x3f3)](_0x1ed26),'revision':0x0,'userID':_0x47ad1a,'memberID':_0x37b36f,'mutations':_0x2d13ad},'pendingMutations':_0x37c32e[_0x1329df(0x191)](_0x2d13ad['length'])};}function ke(_0x2580c6,_0x359691,_0x476357,_0x53d3bd,_0x4a4cc7){const _0x11b84e=_0x313905;let _0xb240c1=_0x2580c6[_0x11b84e(0x1a0)]((_0x20e4ec,_0x50374f)=>{const _0x5b8a2e=_0x11b84e;let _0x56d3a1=_0x20e4ec[_0x20e4ec[_0x5b8a2e(0x1f6)]-0x1],{id:_0x591c52}=_0x56d3a1??{},{id:_0x5d61a5,type:_0x20c004}=_0x50374f,_0x35553b=_0x50374f[_0x5b8a2e(0x1a1)];if(_0x591c52&&_0x591c52!==_0x5d61a5)throw Error(_0x5b8a2e(0x1ac)+_0x591c52+'\x20-\x20'+_0x5d61a5+'.');if(!_0x56d3a1)return[{'id':_0x5d61a5,'type':_0x20c004,'params':{'unitId':_0x35553b[_0x5b8a2e(0x39a)],'textRanges':_0x35553b['textRanges'],'actions':_0x35553b[_0x5b8a2e(0x465)]}}];let _0x24d568=_0x56d3a1[_0x5b8a2e(0x1a1)];return Ae(_0x24d568,_0x35553b)?[..._0x20e4ec[_0x5b8a2e(0x191)](0x0,-0x1),{..._0x56d3a1,'id':_0x5d61a5,'type':_0x20c004,'params':{'unitId':_0x35553b[_0x5b8a2e(0x39a)],'textRanges':_0x35553b[_0x5b8a2e(0x215)],'actions':r['JSONX'][_0x5b8a2e(0x3e3)](_0x24d568[_0x5b8a2e(0x465)],_0x35553b[_0x5b8a2e(0x465)])}}]:[..._0x20e4ec,{'id':_0x5d61a5,'type':_0x20c004,'params':{'unitId':_0x35553b[_0x5b8a2e(0x39a)],'textRanges':_0x35553b[_0x5b8a2e(0x215)],'actions':_0x35553b[_0x5b8a2e(0x465)]}}];},[]),_0x347b4c=_0x4a4cc7[_0x11b84e(0x3ac)](),_0x349480=(_0x347b4c==null?void 0x0:_0x347b4c[_0x11b84e(0x126)])??'unknown',_0x767b08=(_0x347b4c==null?void 0x0:_0x347b4c[_0x11b84e(0x190)])??_0x11b84e(0x171);return{'changeset':{'unitID':_0x359691,'type':(0x0,n[_0x11b84e(0x307)])(_0x476357[_0x11b84e(0x3c8)](_0x359691)),'baseRev':_0x53d3bd['getCurrentRevOfUnit'](_0x359691),'revision':0x0,'userID':_0x349480,'memberID':_0x767b08,'mutations':_0xb240c1},'pendingMutations':_0x2580c6[_0x11b84e(0x191)](_0x2580c6[_0x11b84e(0x1f6)])};}function Ae(_0x3d6168,_0x49cb13){const _0x50057a=_0x313905;return!je(_0x3d6168)&&!je(_0x49cb13)&&Me(_0x3d6168[_0x50057a(0x465)],_0x49cb13[_0x50057a(0x465)]);}function je(_0x32b514){const _0x23be49=_0x313905;return _0x32b514[_0x23be49(0x19a)]!==void 0x0;}function Me(_0x3e5136,_0x1c1466){return Ne(_0x3e5136)&&Ne(_0x1c1466)&&!Fe(_0x3e5136)&&!Fe(_0x1c1466)&&!Pe(_0x3e5136)&&!Pe(_0x1c1466);}function Ne(_0x51388e){const _0x2055f5=_0x313905;return Ie(_0x51388e)[_0x2055f5(0xb3)](_0x1ea63a=>D(_0x1ea63a)&&_0x1ea63a['et']===_0x2055f5(0x267));}function Pe(_0x1e74be){const _0xb182f5=_0x313905;return Ie(_0x1e74be)[_0xb182f5(0xb3)](_0x2a8b27=>Array[_0xb182f5(0x319)](_0x2a8b27)||typeof _0x2a8b27=='string'||typeof _0x2a8b27=='number');}function Fe(_0x4f6837){const _0x12e9ee=_0x313905;return Ie(_0x4f6837)[_0x12e9ee(0xb3)](_0x4067cc=>!D(_0x4067cc)||_0x4067cc['et']!==_0x12e9ee(0x267)||!Array[_0x12e9ee(0x319)](_0x4067cc['e'])?!0x1:_0x4067cc['e'][_0x12e9ee(0xb3)](_0x314cf3=>!D(_0x314cf3)||!D(_0x314cf3[_0x12e9ee(0x13e)])?!0x1:Object[_0x12e9ee(0x40d)]['hasOwnProperty'][_0x12e9ee(0x15b)](_0x314cf3[_0x12e9ee(0x13e)],_0x12e9ee(0x431))||Object[_0x12e9ee(0x40d)][_0x12e9ee(0xc5)][_0x12e9ee(0x15b)](_0x314cf3[_0x12e9ee(0x13e)],_0x12e9ee(0x3d9))||Object[_0x12e9ee(0x40d)][_0x12e9ee(0xc5)][_0x12e9ee(0x15b)](_0x314cf3[_0x12e9ee(0x13e)],_0x12e9ee(0x35d))));}function Ie(_0x42183e){const _0x541444=_0x313905;if(!Array[_0x541444(0x319)](_0x42183e))return[];let _0x4147ee=_0x42183e['includes'](_0x541444(0x13e))?_0x42183e:_0x42183e[_0x541444(0x3d1)](_0x5111c0=>Array[_0x541444(0x319)](_0x5111c0)&&_0x5111c0[_0x541444(0x310)](_0x541444(0x13e)));if(!Array[_0x541444(0x319)](_0x4147ee))return[];let _0x5839a5=_0x4147ee['indexOf'](_0x541444(0x13e));return _0x5839a5===-0x1?[]:_0x4147ee['slice'](_0x5839a5+0x1);}function D(_0x486984){return typeof _0x486984=='object'&&!!_0x486984&&!Array['isArray'](_0x486984);}function Le(_0x1475c4,_0x448f51){const _0x508f18=_0x313905;for(let _0xbf25a of _0x1475c4['mutations']){if(_0xbf25a['id']!==n[_0x508f18(0x24f)]['id'])continue;let _0x5cb93f=_0xbf25a['params'];if((_0x5cb93f==null?void 0x0:_0x5cb93f['unitId'])===_0x448f51&&typeof _0x5cb93f['revision']==_0x508f18(0x130))return{'unitId':_0x5cb93f[_0x508f18(0x39a)],'revision':_0x5cb93f[_0x508f18(0x274)]};}return null;}var Re,ze,Be,Ve=class extends Error{constructor(_0x4e8318){const _0x2d82bd=_0x313905;super(_0x4e8318 instanceof Error?_0x4e8318[_0x2d82bd(0x24c)]:typeof _0x4e8318=='string'?_0x4e8318:_0x2d82bd(0x308)),this['applyError']=_0x4e8318,this[_0x2d82bd(0x41b)]=_0x2d82bd(0x393);}},He=class extends Error{constructor(_0x4d3b20){const _0x324716=_0x313905;var _0x1979e3;super(_0x324716(0x2b4)+((_0x1979e3=_0x4d3b20[_0x324716(0x367)])==null?void 0x0:_0x1979e3[_0x324716(0x274)])+'.'),this[_0x324716(0x34a)]=_0x4d3b20,this[_0x324716(0x41b)]=_0x324716(0x40a);}};let Ue=function(_0x4906a5){const _0x79cd58=_0x313905;return _0x4906a5[_0x79cd58(0x112)]=_0x79cd58(0x1d9),_0x4906a5[_0x79cd58(0x282)]='synced',_0x4906a5[_0x79cd58(0x27a)]=_0x79cd58(0xd2),_0x4906a5['AWAITING']=_0x79cd58(0x3b6),_0x4906a5[_0x79cd58(0x3aa)]=_0x79cd58(0x244),_0x4906a5[_0x79cd58(0x3a3)]='fetch_missing',_0x4906a5[_0x79cd58(0x218)]=_0x79cd58(0x3a9),_0x4906a5['OFFLINE']=_0x79cd58(0x231),_0x4906a5;}({});var O=class{constructor(_0x328a5d,_0x56d268,_0x5ec219,_0x2c7b24,_0x5e37f6,_0xc34e58,_0x34b98a,_0x39608d,_0x595cbd){const _0x31a790=_0x313905;this[_0x31a790(0x181)]=_0x328a5d,this[_0x31a790(0x133)]=_0x56d268,this['_handler']=_0x5e37f6,this['_commandService']=_0xc34e58,this[_0x31a790(0x31e)]=_0x34b98a,this[_0x31a790(0x10b)]=_0x39608d,this['_localCacheService']=_0x595cbd,_(this,_0x31a790(0x10c),null),_(this,_0x31a790(0x3f8),[]),this[_0x31a790(0x10c)]=_0x5ec219,this[_0x31a790(0x3f8)]=_0x2c7b24;}['hasLocalChanges'](){const _0x1e8ece=_0x313905;return!!this[_0x1e8ece(0x10c)]||this[_0x1e8ece(0x3f8)]['length']>0x0;}[_0x313905(0x2a7)](){}[_0x313905(0x1b9)](){const _0x4f6af3=_0x313905;var _0x3b6d4c;return(((_0x3b6d4c=this[_0x4f6af3(0x10c)])==null?void 0x0:_0x3b6d4c[_0x4f6af3(0x23a)][_0x4f6af3(0x1f6)])??0x0)+this['_pendingMutations']['length'];}[_0x313905(0x33a)](_0x185b1d){const _0x29c520=_0x313905;return new ne(_0x185b1d[_0x29c520(0x131)]??0x0,(_0x5ec8c9,_0x28ae7d)=>this['_handler'][_0x29c520(0x1af)](_0x5ec8c9,_0x28ae7d),{...this[_0x29c520(0x146)][_0x29c520(0x205)],'onResend':_0x3bec40=>{const _0x340109=_0x29c520;var _0x4a2476,_0x2f7548;return(_0x4a2476=(_0x2f7548=this[_0x340109(0x146)])[_0x340109(0x1ed)])==null?void 0x0:_0x4a2476[_0x340109(0x15b)](_0x2f7548,_0x3bec40);}});}[_0x313905(0x3c0)](_0x5526a){const _0x45f069=_0x313905;if(this['_isEchoedAwaitingChangeset'](_0x5526a))return'echo';if(Le(_0x5526a,this[_0x45f069(0x181)]))return _0x45f069(0x1be);let _0x579848=this[_0x45f069(0x28e)]();return _0x5526a[_0x45f069(0x274)]<=_0x579848?_0x45f069(0x196):_0x5526a[_0x45f069(0x274)]>_0x579848+0x1?_0x45f069(0x2db):_0x45f069(0x425);}[_0x313905(0x17b)](_0x4e72fb){const _0xa4f4a9=_0x313905;let _0x326dc9=this[_0xa4f4a9(0x28e)]();return _0x4e72fb[_0xa4f4a9(0x274)]<=_0x326dc9?this[_0xa4f4a9(0x3ef)](_0x4e72fb)?_0xa4f4a9(0x19d):'stale':_0x4e72fb['revision']>_0x326dc9+0x1?'missing':_0xa4f4a9(0xb9);}[_0x313905(0x288)](_0x2fa8cb,_0x24b7e7){const _0x38b08a=_0x313905;switch(this[_0x38b08a(0x3c0)](_0x2fa8cb)){case _0x38b08a(0x193):return this[_0x38b08a(0x2c9)](_0x2fa8cb);case _0x38b08a(0x1be):return _0x24b7e7[_0x38b08a(0x433)](_0x2fa8cb);case _0x38b08a(0x196):return this;case _0x38b08a(0x2db):return this[_0x38b08a(0x1e9)](_0x2fa8cb[_0x38b08a(0x274)]),_0x24b7e7[_0x38b08a(0x354)](_0x2fa8cb);case _0x38b08a(0x425):return _0x24b7e7[_0x38b08a(0x421)](_0x2fa8cb);}}[_0x313905(0x2b8)](_0x5875be){const _0x25f295=_0x313905;return{'reason':_0x25f295(0x1be),'revert':{'revision':Le(_0x5875be,this[_0x25f295(0x181)])[_0x25f295(0x274)],'memberId':_0x5875be[_0x25f295(0x190)],'userId':_0x5875be[_0x25f295(0x126)]}};}['_conflictInfoFromError'](_0x31a291){const _0x36f90e=_0x313905;return{'reason':_0x31a291 instanceof Ve?'apply_failed':'transform_failed','message':_0x31a291 instanceof Error?_0x31a291[_0x36f90e(0x24c)]:typeof _0x31a291==_0x36f90e(0x116)?_0x31a291:void 0x0};}[_0x313905(0xbc)](_0x2807ef){const _0x5f09eb=_0x313905;return{'reason':_0x2807ef!=null&&_0x2807ef['isPermissionRej']?_0x5f09eb(0x229):(_0x2807ef==null?void 0x0:_0x2807ef[_0x5f09eb(0x2c3)])===o['ErrorCode']['LICENSE_UNIT_TYPE_REJECTED']?_0x5f09eb(0x2b7):_0x5f09eb(0x455),'message':_0x2807ef==null?void 0x0:_0x2807ef[_0x5f09eb(0x3ca)]};}[_0x313905(0x114)](_0x51e96e){const _0xae8ab3=_0x313905;return _0x51e96e===o[_0xae8ab3(0x18b)][_0xae8ab3(0x30c)]?_0xae8ab3(0x286):_0xae8ab3(0x1c8);}['_requestMissingChangesets'](_0x4b504d){const _0x1ce8f2=_0x313905;this['_handler'][_0x1ce8f2(0x432)]({'from':this[_0x1ce8f2(0x28e)](),'to':_0x4b504d-0x1});}[_0x313905(0x343)](_0x5b9247){const _0x326c02=_0x313905;this[_0x326c02(0x31e)]['transformUndoRedo'](this[_0x326c02(0x181)],_0x5b9247);}[_0x313905(0x2c4)](_0x14c2f8){const _0x34eb47=_0x313905;var _0x11cfc4,_0x531a6b;(_0x11cfc4=(_0x531a6b=this[_0x34eb47(0x146)])[_0x34eb47(0x1a6)])==null||_0x11cfc4['call'](_0x531a6b,_0x14c2f8);}['_prepareTransformSelections'](_0x5f2895){const _0x330509=_0x313905;var _0x3525e7,_0x1ed184;return((_0x3525e7=(_0x1ed184=this[_0x330509(0x146)])[_0x330509(0x1ba)])==null?void 0x0:_0x3525e7['call'](_0x1ed184,_0x5f2895))??null;}['_transformIMECache'](_0x492376){const _0x5f4c07=_0x313905;var _0xc94395,_0x3d06bf;return(_0xc94395=(_0x3d06bf=this[_0x5f4c07(0x146)])[_0x5f4c07(0x384)])==null?void 0x0:_0xc94395[_0x5f4c07(0x15b)](_0x3d06bf,_0x492376);}[_0x313905(0x302)](_0x3aac55){const _0x22abd9=_0x313905;var _0x1bc5fb,_0x4d6ced;return(_0x1bc5fb=(_0x4d6ced=this['_handler'])['onTransformState'])==null?void 0x0:_0x1bc5fb[_0x22abd9(0x15b)](_0x4d6ced,_0x3aac55);}['_transformRemoteChangesetByIMECache'](_0x107de2){const _0x3669dd=_0x313905;var _0x3dabb2,_0x5573ae;return((_0x3dabb2=(_0x5573ae=this['_handler'])[_0x3669dd(0x329)])==null?void 0x0:_0x3dabb2[_0x3669dd(0x15b)](_0x5573ae,_0x107de2))??_0x107de2;}[_0x313905(0xb5)](_0x237523){const _0x1a5e99=_0x313905;var _0x3c46af,_0x831d7d;return((_0x3c46af=(_0x831d7d=this[_0x1a5e99(0x146)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x3c46af[_0x1a5e99(0x15b)](_0x831d7d,_0x237523))??_0x237523;}[_0x313905(0x11a)](_0x558257){const _0x3b80dd=_0x313905;if(this[_0x3b80dd(0x133)]===r[_0x3b80dd(0xd4)][_0x3b80dd(0x2b0)]){let {unitID:_0x189226,mutations:_0xa56183,memberID:_0x4a3570}=_0x558257,_0xafe801=_0xa56183[_0x3b80dd(0x1f6)]>0x0?_0xa56183[0x0]['params'][_0x3b80dd(0x215)]:[];if(Array['isArray'](_0xafe801)&&_0xafe801[_0x3b80dd(0x1f6)]>0x0){var _0x4be22f,_0x4917a0;(_0x4be22f=(_0x4917a0=this[_0x3b80dd(0x146)])[_0x3b80dd(0x36f)])==null||_0x4be22f['call'](_0x4917a0,{'unitID':_0x189226,'memberID':_0x4a3570,'textRanges':_0xafe801});}}}[_0x313905(0x1ae)](){const _0x3a77a2=_0x313905;var _0x327592;(_0x327592=this[_0x3a77a2(0x268)])==null||_0x327592[_0x3a77a2(0x1bb)](this['unitID'],this[_0x3a77a2(0x133)],this['_awaitingChangeset'],this[_0x3a77a2(0x3f8)]);}[_0x313905(0x28e)](){const _0x25982e=_0x313905;return this[_0x25982e(0x10b)][_0x25982e(0x3f3)](this[_0x25982e(0x181)]);}[_0x313905(0x15a)](_0x2befa3){const _0x54d93f=_0x313905;let _0x585700=this['_awaitingChangeset'];return!_0x585700||!_0x585700[_0x54d93f(0x3fd)]||_0x585700[_0x54d93f(0x131)]===null||_0x585700[_0x54d93f(0x131)]===void 0x0?!0x1:_0x2befa3[_0x54d93f(0x181)]===_0x585700[_0x54d93f(0x181)]&&_0x2befa3[_0x54d93f(0x3fd)]===_0x585700[_0x54d93f(0x3fd)]&&_0x2befa3[_0x54d93f(0x131)]===_0x585700[_0x54d93f(0x131)];}[_0x313905(0x3ef)](_0x2e9200){const _0x1418a3=_0x313905;let _0x13ecd2=this[_0x1418a3(0x10c)];return!(_0x13ecd2!=null&&_0x13ecd2['sid'])||_0x13ecd2['reqId']==null||!_0x2e9200[_0x1418a3(0x3fd)]||_0x2e9200['reqId']==null?!0x1:_0x2e9200[_0x1418a3(0x3fd)]===_0x13ecd2['sid']&&_0x2e9200[_0x1418a3(0x131)]===_0x13ecd2[_0x1418a3(0x131)];}[_0x313905(0x31a)](){const _0x4766ee=_0x313905;this[_0x4766ee(0x10b)]['incrementRevOfUnit'](this['unitID']);}[_0x313905(0x22c)](_0x346a21){const _0x3cf77b=_0x313905;let _0x2c7d3d=this[_0x3cf77b(0x2de)](_0x346a21);_0x2c7d3d=this[_0x3cf77b(0xb5)](_0x2c7d3d);let _0x3688ae=this[_0x3cf77b(0x2ad)](_0x2c7d3d),_0x364b34=(0x0,r['sequenceExecute'])(_0x2c7d3d[_0x3cf77b(0x23a)],this[_0x3cf77b(0x281)],{'fromCollab':!0x0});if(!_0x364b34['result'])throw _0x3688ae==null||_0x3688ae['rollback'](),new Ve(_0x364b34[_0x3cf77b(0x287)]);_0x3688ae==null||_0x3688ae[_0x3cf77b(0x3be)](),this['_transformIMECache'](_0x2c7d3d),this[_0x3cf77b(0x302)](_0x2c7d3d),this[_0x3cf77b(0x343)](_0x346a21),this[_0x3cf77b(0x2c4)](_0x2c7d3d),this['_syncEditingCollabCursor'](_0x2c7d3d),this['_incrementRevisionNumber']();}};let k=class extends O{constructor(_0x584726,_0x47d551,_0x2ff00f,_0x1dd7d8,_0xdb9fd7,_0x1be2d6,_0x2948b0,_0x422d44,_0x1eeb1f,_0x96c2e3){const _0x27a028=_0x313905;super(_0x584726,_0x47d551,null,[],_0x2ff00f,_0x2948b0,_0x1be2d6,_0x1dd7d8,_0x96c2e3),this['_injector']=_0xdb9fd7,this['_logService']=_0x422d44,this[_0x27a028(0x1a7)]=_0x1eeb1f,this['localCacheService']=_0x96c2e3,_(this,'status',_0x27a028(0x37a));}[_0x313905(0x36e)](_0x37753d){const _0x3f69c0=_0x313905;let _0x55ea0e=this[_0x3f69c0(0x2a2)][_0x3f69c0(0x246)](A,this[_0x3f69c0(0x181)],this['type'],[_0x37753d],this[_0x3f69c0(0x146)]);return _0x55ea0e['_schedule'](),_0x55ea0e[_0x3f69c0(0x1ae)](),_0x55ea0e;}[_0x313905(0x11f)](_0x3eefa3){const _0x2e002a=_0x313905;return this[_0x2e002a(0x288)](_0x3eefa3,{'onMissing':()=>this[_0x2e002a(0x2a2)]['createInstance'](F,this[_0x2e002a(0x181)],this[_0x2e002a(0x133)],null,[],null,[_0x3eefa3],this['_handler'],void 0x0),'onApply':()=>this[_0x2e002a(0x41c)](_0x3eefa3),'onRemoteRevert':()=>this[_0x2e002a(0xad)](this[_0x2e002a(0x2b8)](_0x3eefa3))});}[_0x313905(0x41c)](_0x513107){const _0x13c80a=_0x313905;try{let _0x26f90c=this[_0x13c80a(0x1a7)][_0x13c80a(0x356)](_0x513107,[n[_0x13c80a(0x342)]]);if((0x0,n[_0x13c80a(0x194)])(_0x26f90c)){let {c1Prime:_0x14d8a5}=_0x26f90c;return this['_executeRemoteChangeset'](_0x14d8a5),this;}throw _0x26f90c[_0x13c80a(0x287)];}catch(_0x22bfd3){return this[_0x13c80a(0x1c1)][_0x13c80a(0x287)](_0x22bfd3),this[_0x13c80a(0xad)](this[_0x13c80a(0xc8)](_0x22bfd3));}}['_onConflict'](_0x457e2e){const _0x146026=_0x313905;return this['_injector']['createInstance'](N,this[_0x146026(0x181)],this['type'],null,[],this[_0x146026(0x146)],_0x457e2e);}[_0x313905(0x2c9)](_0x28ada5){const _0x214e3c=_0x313905;if(this[_0x214e3c(0x17b)](_0x28ada5)==='stale')return this;throw Error(_0x214e3c(0x3db));}['onRemoteRej'](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x313905(0x100)](){return this;}['toggleOffline'](){const _0x277320=_0x313905;return this[_0x277320(0x2a2)][_0x277320(0x246)](P,this[_0x277320(0x181)],this['type'],null,[],this[_0x277320(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x323)](){const _0x511c8e=_0x313905;throw Error(_0x511c8e(0x362));}['fetchMiss'](){const _0x4dcfec=_0x313905;let _0xcaa49f=this['_revisionService'][_0x4dcfec(0x3f3)](this['unitID']);return this['_handler'][_0x4dcfec(0x432)]({'from':_0xcaa49f,'to':0x0}),this['_injector']['createInstance'](F,this['unitID'],this[_0x4dcfec(0x133)],null,[],null,[],this[_0x4dcfec(0x146)],void 0x0);}};k=b([y(0x3,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x4,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x5,r[_0x313905(0xb1)]),y(0x6,r[_0x313905(0x296)]),y(0x7,r[_0x313905(0x26a)]),y(0x8,n['ITransformService']),y(0x9,(0x0,r['Optional'])(C))],k);let A=Re=class extends O{constructor(_0x407a6b,_0x41725e,_0xd5aa20,_0xe800eb,_0x126338,_0x2cfa5e,_0x30f392,_0x371b0d,_0x5b7405,_0x4ff0ac,_0x14d8c3,_0x3e6c76,_0x412e56,_0x4cfafb){const _0x53b03c=_0x313905;super(_0x407a6b,_0x41725e,null,_0xd5aa20,_0xe800eb,_0x5b7405,_0x412e56,_0x2cfa5e,_0x4cfafb),this['_injector']=_0x126338,this[_0x53b03c(0xdb)]=_0x30f392,this[_0x53b03c(0x1c1)]=_0x371b0d,this['_configService']=_0x4ff0ac,this[_0x53b03c(0x1a7)]=_0x14d8c3,this['_univerInstanceService']=_0x3e6c76,_(this,_0x53b03c(0x265),_0x53b03c(0xd2)),_(this,_0x53b03c(0x1fc),null),_(this,_0x53b03c(0x44f),null);}['appendMutation'](_0x1d7700){const _0x37b722=_0x313905;return this[_0x37b722(0x3f8)][_0x37b722(0x101)](_0x1d7700),this[_0x37b722(0x1ae)](),this;}['onRemoteChangeset'](_0x488bd8){const _0x83bca8=_0x313905;return this['_dispatchRemoteChangeset'](_0x488bd8,{'onMissing':()=>(this[_0x83bca8(0x43f)](),this['_injector'][_0x83bca8(0x246)](F,this['unitID'],this[_0x83bca8(0x133)],null,this[_0x83bca8(0x3f8)],null,[_0x488bd8],this['_handler'],void 0x0)),'onApply':()=>this[_0x83bca8(0x41c)](_0x488bd8),'onRemoteRevert':()=>this[_0x83bca8(0xad)](this[_0x83bca8(0x2b8)](_0x488bd8))});}[_0x313905(0x41c)](_0x186857){const _0x21cb17=_0x313905;try{let _0x3005e0=this[_0x21cb17(0x1a7)][_0x21cb17(0x356)](_0x186857,this['_pendingMutations']);if((0x0,n[_0x21cb17(0x194)])(_0x3005e0)){let {c1Prime:_0x10fc92,m2Prime:_0x14a499}=_0x3005e0;this[_0x21cb17(0x22c)](_0x10fc92);let _0x1f672d=this[_0x21cb17(0x2a2)][_0x21cb17(0x246)](Re,this['unitID'],this[_0x21cb17(0x133)],_0x14a499,this[_0x21cb17(0x146)]);_0x1f672d[_0x21cb17(0x1ae)](),this[_0x21cb17(0x43f)]();let _0x533d71=new Date()[_0x21cb17(0x1cd)](),_0x5112ed=this[_0x21cb17(0x1fc)]?Math[_0x21cb17(0x2aa)](this[_0x21cb17(0x1fc)]-_0x533d71,0x0):this['_getSendChangesetTimeout']();return _0x1f672d['_schedule'](_0x5112ed),_0x1f672d;}throw _0x3005e0[_0x21cb17(0x287)];}catch(_0x9619c5){return this[_0x21cb17(0x1c1)]['error'](_0x9619c5),this[_0x21cb17(0xad)](this[_0x21cb17(0xc8)](_0x9619c5));}}[_0x313905(0x2c9)](_0x13ec84){const _0x48d068=_0x313905;if(this[_0x48d068(0x17b)](_0x13ec84)==='stale')return this;throw Error(_0x48d068(0x1e0));}[_0x313905(0x446)](){const _0xce1618=_0x313905;throw Error(_0xce1618(0x382));}[_0x313905(0x100)](){return this;}[_0x313905(0x2c7)](){const _0x55cac9=_0x313905;return this[_0x55cac9(0x43f)](),this['_injector']['createInstance'](P,this[_0x55cac9(0x181)],this['type'],null,this[_0x55cac9(0x3f8)],this[_0x55cac9(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x2ac)](_0x1a3375){const _0x2aebb7=_0x313905;let _0x44a0e5=_0x1a3375??this[_0x2aebb7(0x374)]();this[_0x2aebb7(0x1fc)]=new Date()['getTime']()+_0x44a0e5,this['_sendingTimer']=setTimeout(()=>{const _0x2c88fb=_0x2aebb7;this['_clearScheduledTask']();let _0x53d07b=null;switch(this[_0x2c88fb(0x133)]){case r['UniverInstanceType'][_0x2c88fb(0x155)]:_0x53d07b=E(this[_0x2c88fb(0x3f8)],this[_0x2c88fb(0x181)],this['_univerInstanceService'],this[_0x2c88fb(0x10b)],this['_userManagerService']);break;case r[_0x2c88fb(0xd4)]['UNIVER_DOC']:_0x53d07b=this[_0x2c88fb(0x3f8)]['every'](_0x13fcd6=>_0x13fcd6['id']===i[_0x2c88fb(0x1d0)]['id'])?ke(this['_pendingMutations'],this[_0x2c88fb(0x181)],this[_0x2c88fb(0x121)],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]):E(this[_0x2c88fb(0x3f8)],this[_0x2c88fb(0x181)],this['_univerInstanceService'],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]);break;case r['UniverInstanceType']['UNIVER_SLIDE']:_0x53d07b=Oe(this[_0x2c88fb(0x3f8)],this[_0x2c88fb(0x181)],this[_0x2c88fb(0x121)],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]);break;case r[_0x2c88fb(0xd4)][_0x2c88fb(0x341)]:_0x53d07b=De(this['_pendingMutations'],this['unitID'],this[_0x2c88fb(0x121)],this['_revisionService'],this[_0x2c88fb(0xdb)]);break;case r[_0x2c88fb(0xd4)]['UNIVER_BOARD']:_0x53d07b=E(this['_pendingMutations'],this['unitID'],this[_0x2c88fb(0x121)],this['_revisionService'],this[_0x2c88fb(0xdb)]);break;case r[_0x2c88fb(0xd4)][_0x2c88fb(0x315)]:_0x53d07b=E(this['_pendingMutations'],this['unitID'],this[_0x2c88fb(0x121)],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]);break;default:throw Error(_0x2c88fb(0xec)+this[_0x2c88fb(0x133)]+_0x2c88fb(0xf9));}let {changeset:_0x5ba628,pendingMutations:_0x1f26f2}=_0x53d07b,_0x50cf21=this[_0x2c88fb(0x33a)](_0x5ba628);_0x50cf21['submit'](_0x5ba628,_0x5ba628[_0x2c88fb(0x23a)][_0x2c88fb(0x1f6)]+_0x1f26f2['length']);let _0x242948=_0x1f26f2[_0x2c88fb(0x1f6)]?this[_0x2c88fb(0x2a2)]['createInstance'](M,this[_0x2c88fb(0x181)],this['type'],_0x5ba628,_0x1f26f2,this[_0x2c88fb(0x146)],_0x50cf21):this[_0x2c88fb(0x2a2)][_0x2c88fb(0x246)](j,this['unitID'],this[_0x2c88fb(0x133)],_0x5ba628,this[_0x2c88fb(0x146)],_0x50cf21);_0x242948['_updateLocalCache'](),this[_0x2c88fb(0x146)]['onStateChange'](this,_0x242948);},_0x44a0e5);}[_0x313905(0x374)](){const _0x30de00=_0x313905;let _0x1b1386=this[_0x30de00(0x2be)][_0x30de00(0x292)](m);return(_0x1b1386==null?void 0x0:_0x1b1386[_0x30de00(0x366)])??0x7d0;}[_0x313905(0x323)](){const _0x55740d=_0x313905;throw Error(_0x55740d(0x372));}['_clearScheduledTask'](){const _0x16f3d6=_0x313905;this[_0x16f3d6(0x44f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x16f3d6(0x44f)]=null);}[_0x313905(0x2a7)](){this['_clearScheduledTask']();}[_0x313905(0xad)](_0x12de4a){const _0x186e41=_0x313905;return this[_0x186e41(0x43f)](),this['_injector'][_0x186e41(0x246)](N,this['unitID'],this[_0x186e41(0x133)],null,this[_0x186e41(0x3f8)],this[_0x186e41(0x146)],_0x12de4a);}};A=Re=b([y(0x4,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x5,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x6,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x224)])),y(0x7,r[_0x313905(0x26a)]),y(0x8,r[_0x313905(0x296)]),y(0x9,r[_0x313905(0x21c)]),y(0xa,n[_0x313905(0x3cf)]),y(0xb,r['IUniverInstanceService']),y(0xc,r['IUndoRedoService']),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],A);let j=ze=class extends O{constructor(_0x14c02a,_0x226f99,_0x330212,_0x4df480,_0x5a4514,_0x38981f,_0x12d066,_0x1ccdd6,_0x26ab70,_0x5a909b,_0x6ef9ff,_0x37db53){const _0x1f7d7a=_0x313905;super(_0x14c02a,_0x226f99,_0x330212,[],_0x4df480,_0x1ccdd6,_0x6ef9ff,_0x12d066,_0x37db53),this[_0x1f7d7a(0x2a2)]=_0x38981f,this[_0x1f7d7a(0x1c1)]=_0x26ab70,this[_0x1f7d7a(0x1a7)]=_0x5a909b,_(this,_0x1f7d7a(0x265),_0x1f7d7a(0x3b6)),_(this,_0x1f7d7a(0x43a),void 0x0),this[_0x1f7d7a(0x43a)]=_0x5a4514??this[_0x1f7d7a(0x33a)](_0x330212),this[_0x1f7d7a(0x43a)][_0x1f7d7a(0x3a7)](()=>({'changeset':this[_0x1f7d7a(0x10c)],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x5a4514||this['_submitter']['armAckTimeout']();}[_0x313905(0x36e)](_0x5ca44b){const _0x583389=_0x313905;this[_0x583389(0x26c)]();let _0x32b74a=this['_injector'][_0x583389(0x246)](M,this[_0x583389(0x181)],this[_0x583389(0x133)],this[_0x583389(0x10c)],[_0x5ca44b],this[_0x583389(0x146)],this['_submitter']);return _0x32b74a[_0x583389(0x1ae)](),_0x32b74a;}[_0x313905(0x11f)](_0x4237c1){const _0x19008a=_0x313905;return this[_0x19008a(0x288)](_0x4237c1,{'onMissing':()=>(this[_0x19008a(0x26c)](),this['_injector']['createInstance'](F,this[_0x19008a(0x181)],this[_0x19008a(0x133)],this[_0x19008a(0x10c)],[],null,[_0x4237c1],this[_0x19008a(0x146)],this[_0x19008a(0x43a)])),'onApply':()=>this['_transformAndApply'](_0x4237c1),'onRemoteRevert':()=>this[_0x19008a(0xad)](this[_0x19008a(0x2b8)](_0x4237c1))});}[_0x313905(0x41c)](_0x133f48){const _0x3ce8b6=_0x313905;try{let _0x4b99b7=this[_0x3ce8b6(0x1a7)][_0x3ce8b6(0x2f0)]([_0x133f48],[this[_0x3ce8b6(0x10c)]],!0x1);if((0x0,n[_0x3ce8b6(0x204)])(_0x4b99b7)){let {c1Prime:_0x5f2b93,c2Prime:_0x15d67b}=_0x4b99b7;this[_0x3ce8b6(0x22c)](_0x5f2b93[0x0]),_0x15d67b[0x0]['baseRev']=this[_0x3ce8b6(0x28e)](),this['_detachSubmitter']();let _0x3dbed6=this['_injector'][_0x3ce8b6(0x246)](ze,this[_0x3ce8b6(0x181)],this['type'],_0x15d67b[0x0],this[_0x3ce8b6(0x146)],this['_submitter']);return _0x3dbed6[_0x3ce8b6(0x1ae)](),_0x3dbed6;}throw _0x4b99b7[_0x3ce8b6(0x287)];}catch(_0x3b680b){return this['_logService'][_0x3ce8b6(0x287)](_0x3b680b),this[_0x3ce8b6(0xad)](this['_conflictInfoFromError'](_0x3b680b));}}['onRemoteAck'](_0x5b6747){const _0x27bcd3=_0x313905;switch(this[_0x27bcd3(0x17b)](_0x5b6747)){case _0x27bcd3(0x109):return this[_0x27bcd3(0x1c1)]['debug']('[AwaitingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x5b6747[_0x27bcd3(0x274)]+_0x27bcd3(0x254)+this['_getCurrentRevision']()+'.'),this;case'ack_of_awaiting':return this['_submitter'][_0x27bcd3(0x2a7)](),this[_0x27bcd3(0x14a)]();case _0x27bcd3(0x2db):return this[_0x27bcd3(0x43a)][_0x27bcd3(0x2a7)](),this[_0x27bcd3(0x1e9)](_0x5b6747[_0x27bcd3(0x274)]),this[_0x27bcd3(0x2a2)][_0x27bcd3(0x246)](F,this['unitID'],this[_0x27bcd3(0x133)],this[_0x27bcd3(0x10c)],[],_0x5b6747[_0x27bcd3(0x274)],[],this[_0x27bcd3(0x146)],void 0x0);case _0x27bcd3(0xb9):return this[_0x27bcd3(0x43a)][_0x27bcd3(0x2a7)](),this[_0x27bcd3(0x31a)](),this[_0x27bcd3(0x14a)]();}}[_0x313905(0x14a)](){const _0x1016dd=_0x313905;let _0x175332=this[_0x1016dd(0x2a2)]['createInstance'](k,this['unitID'],this[_0x1016dd(0x133)],this['_handler']);return _0x175332[_0x1016dd(0x1ae)](),_0x175332;}[_0x313905(0x446)](_0x197155){const _0x5f0e2e=_0x313905;return this[_0x5f0e2e(0xad)](this[_0x5f0e2e(0xbc)](_0x197155));}[_0x313905(0x100)](_0x1cab67,_0x2b96c5){const _0x26e290=_0x313905;var _0x423d8f;return _0x1cab67[_0x26e290(0x131)]===((_0x423d8f=this[_0x26e290(0x10c)])==null?void 0x0:_0x423d8f[_0x26e290(0x131)])&&this[_0x26e290(0x43a)][_0x26e290(0x188)](this[_0x26e290(0x114)](_0x2b96c5)),this;}['toggleOffline'](){const _0x2c0b72=_0x313905;return this[_0x2c0b72(0x43a)][_0x2c0b72(0x2a7)](),this[_0x2c0b72(0x2a2)][_0x2c0b72(0x246)](P,this[_0x2c0b72(0x181)],this['type'],this[_0x2c0b72(0x10c)],[],this['_handler']);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x323)](_0x1ebf7b='reconnect'){const _0x24ea98=_0x313905;this[_0x24ea98(0x43a)][_0x24ea98(0x45b)](this[_0x24ea98(0x10c)],this['_unsyncedMutationCount'](),_0x1ebf7b);}['_onConflict'](_0x22769c){const _0x3182a8=_0x313905;return this[_0x3182a8(0x43a)][_0x3182a8(0x2a7)](),this['_injector'][_0x3182a8(0x246)](N,this[_0x3182a8(0x181)],this[_0x3182a8(0x133)],this[_0x3182a8(0x10c)],[],this['_handler'],_0x22769c);}[_0x313905(0x2a7)](){const _0x2a445c=_0x313905;this[_0x2a445c(0x43a)][_0x2a445c(0x2a7)]();}[_0x313905(0x26c)](){const _0x3f201f=_0x313905;this[_0x3f201f(0x43a)][_0x3f201f(0x41f)]();}};j=ze=b([y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,r['ICommandService']),y(0x8,r[_0x313905(0x26a)]),y(0x9,n[_0x313905(0x3cf)]),y(0xa,r[_0x313905(0xb1)]),y(0xb,(0x0,r['Optional'])(C))],j);let M=Be=class extends O{constructor(_0x1f476c,_0x14a87a,_0x3beb52,_0x549f20,_0x33aa58,_0x4231cb,_0x44fe41,_0x273295,_0x1cd2fa,_0x273842,_0x13e491,_0x57e77a,_0x13a436){const _0x47b9ea=_0x313905;super(_0x1f476c,_0x14a87a,_0x3beb52,_0x549f20,_0x33aa58,_0x1cd2fa,_0x57e77a,_0x273295,_0x13a436),this[_0x47b9ea(0x2a2)]=_0x44fe41,this[_0x47b9ea(0x1c1)]=_0x273842,this[_0x47b9ea(0x1a7)]=_0x13e491,this[_0x47b9ea(0x103)]=_0x13a436,_(this,_0x47b9ea(0x265),'awaiting_with_pending'),_(this,'_submitter',void 0x0),this['_submitter']=_0x4231cb??this[_0x47b9ea(0x33a)](_0x3beb52),this[_0x47b9ea(0x43a)][_0x47b9ea(0x3a7)](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this[_0x47b9ea(0x1b9)]()})),_0x4231cb||this[_0x47b9ea(0x43a)]['armAckTimeout']();}[_0x313905(0x36e)](_0x16bd1c){const _0x56072c=_0x313905;return this[_0x56072c(0x3f8)]['push'](_0x16bd1c),this[_0x56072c(0x1ae)](),this;}[_0x313905(0x11f)](_0x5ca582){const _0x3b28ed=_0x313905;return this[_0x3b28ed(0x288)](_0x5ca582,{'onMissing':()=>(this[_0x3b28ed(0x26c)](),this[_0x3b28ed(0x2a2)][_0x3b28ed(0x246)](F,this[_0x3b28ed(0x181)],this['type'],this[_0x3b28ed(0x10c)],this[_0x3b28ed(0x3f8)],null,[_0x5ca582],this[_0x3b28ed(0x146)],this[_0x3b28ed(0x43a)])),'onApply':()=>this[_0x3b28ed(0x41c)](_0x5ca582),'onRemoteRevert':()=>this[_0x3b28ed(0xad)](this[_0x3b28ed(0x2b8)](_0x5ca582))});}[_0x313905(0x41c)](_0x3100bc){const _0x55e2f0=_0x313905;try{let _0x4c82e5=this[_0x55e2f0(0x1a7)][_0x55e2f0(0x2f0)]([_0x3100bc],[this[_0x55e2f0(0x10c)]],!0x1);if((0x0,n[_0x55e2f0(0x204)])(_0x4c82e5)){let {c1Prime:_0x4d81fa,c2Prime:_0x37411b}=_0x4c82e5,_0x528c9c=this[_0x55e2f0(0x1a7)][_0x55e2f0(0x356)](_0x4d81fa[0x0],this['_pendingMutations']);if((0x0,n[_0x55e2f0(0x194)])(_0x528c9c)){let {c1Prime:_0x132cb3,m2Prime:_0x3359d7}=_0x528c9c;this[_0x55e2f0(0x22c)](_0x132cb3),_0x37411b[0x0][_0x55e2f0(0x199)]=this['_getCurrentRevision'](),this['_detachSubmitter']();let _0x4eef0a=this[_0x55e2f0(0x2a2)][_0x55e2f0(0x246)](Be,this['unitID'],this[_0x55e2f0(0x133)],_0x37411b[0x0],_0x3359d7,this['_handler'],this['_submitter']);return _0x4eef0a[_0x55e2f0(0x1ae)](),_0x4eef0a;}throw _0x528c9c[_0x55e2f0(0x287)];}throw _0x4c82e5[_0x55e2f0(0x287)];}catch(_0x3daca7){return this[_0x55e2f0(0x1c1)][_0x55e2f0(0x287)](_0x3daca7),this[_0x55e2f0(0xad)](this['_conflictInfoFromError'](_0x3daca7));}}['onRemoteAck'](_0x1d8c81){const _0x36c8b2=_0x313905;switch(this[_0x36c8b2(0x17b)](_0x1d8c81)){case _0x36c8b2(0x109):return this['_logService']['debug'](_0x36c8b2(0x464),_0x36c8b2(0x202)+_0x1d8c81[_0x36c8b2(0x274)]+'\x20at\x20revision\x20'+this[_0x36c8b2(0x28e)]()+'.'),this;case _0x36c8b2(0x19d):return this[_0x36c8b2(0x43a)][_0x36c8b2(0x2a7)](),this[_0x36c8b2(0x404)]();case _0x36c8b2(0x2db):return this[_0x36c8b2(0x43a)][_0x36c8b2(0x2a7)](),this[_0x36c8b2(0x1e9)](_0x1d8c81[_0x36c8b2(0x274)]),this[_0x36c8b2(0x2a2)]['createInstance'](F,this[_0x36c8b2(0x181)],this[_0x36c8b2(0x133)],this[_0x36c8b2(0x10c)],this['_pendingMutations'],_0x1d8c81['revision'],[],this[_0x36c8b2(0x146)],void 0x0);case _0x36c8b2(0xb9):return this[_0x36c8b2(0x43a)][_0x36c8b2(0x2a7)](),this[_0x36c8b2(0x31a)](),this[_0x36c8b2(0x404)]();}}['_toPending'](){const _0x39e6f5=_0x313905;let _0x2a7a4e=this['_injector']['createInstance'](A,this['unitID'],this['type'],this[_0x39e6f5(0x3f8)],this['_handler']);return _0x2a7a4e['_schedule'](),_0x2a7a4e['_updateLocalCache'](),_0x2a7a4e;}[_0x313905(0x446)](_0x4f6059){const _0x35ae81=_0x313905;return this[_0x35ae81(0xad)](this[_0x35ae81(0xbc)](_0x4f6059));}[_0x313905(0x100)](_0x3494eb,_0x8fea35){const _0x263e63=_0x313905;var _0x484bad;return _0x3494eb[_0x263e63(0x131)]===((_0x484bad=this[_0x263e63(0x10c)])==null?void 0x0:_0x484bad[_0x263e63(0x131)])&&this[_0x263e63(0x43a)][_0x263e63(0x188)](this[_0x263e63(0x114)](_0x8fea35)),this;}['toggleOffline'](){const _0x34f67e=_0x313905;return this[_0x34f67e(0x43a)][_0x34f67e(0x2a7)](),this['_injector'][_0x34f67e(0x246)](P,this[_0x34f67e(0x181)],this[_0x34f67e(0x133)],this['_awaitingChangeset'],this[_0x34f67e(0x3f8)],this[_0x34f67e(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x323)](_0x40caaa=_0x313905(0xf6)){const _0x5c6cc5=_0x313905;this[_0x5c6cc5(0x43a)]['submit'](this[_0x5c6cc5(0x10c)],this[_0x5c6cc5(0x1b9)](),_0x40caaa);}[_0x313905(0xad)](_0x3f3b03){const _0x8529c7=_0x313905;return this[_0x8529c7(0x43a)][_0x8529c7(0x2a7)](),this[_0x8529c7(0x2a2)][_0x8529c7(0x246)](N,this[_0x8529c7(0x181)],this[_0x8529c7(0x133)],this[_0x8529c7(0x10c)],this[_0x8529c7(0x3f8)],this[_0x8529c7(0x146)],_0x3f3b03);}[_0x313905(0x2a7)](){const _0x32fe42=_0x313905;this[_0x32fe42(0x43a)][_0x32fe42(0x2a7)]();}[_0x313905(0x26c)](){const _0x344cd1=_0x313905;this[_0x344cd1(0x43a)][_0x344cd1(0x41f)]();}};M=Be=b([y(0x6,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x7,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x8,r[_0x313905(0x296)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,n[_0x313905(0x3cf)]),y(0xb,r['IUndoRedoService']),y(0xc,(0x0,r[_0x313905(0xe6)])(C))],M);let N=class extends O{constructor(_0x229d63,_0x532621,_0x53e099,_0xd4c84c,_0x14289e,_0x1cb1ec,_0x15764e,_0x5b1303,_0x20b171,_0x53ece5,_0x174893,_0x468f19,_0x5d8e27,_0x2b9749){const _0x30605c=_0x313905;var _0x5484a1;super(_0x229d63,_0x532621,_0x53e099,_0xd4c84c,_0x14289e,_0x5b1303,_0x20b171,_0x53ece5,_0x2b9749),this[_0x30605c(0x34a)]=_0x1cb1ec,this[_0x30605c(0x3ed)]=_0x15764e,this[_0x30605c(0xdb)]=_0x174893,this[_0x30605c(0x1c1)]=_0x468f19,this['_collaborationUIEventService']=_0x5d8e27,this[_0x30605c(0x103)]=_0x2b9749,_(this,_0x30605c(0x265),_0x30605c(0x3a9)),_(this,_0x30605c(0x3af),void 0x0);let _0x48953f=((_0x5484a1=this['_userManagerService'][_0x30605c(0x3ac)]())==null?void 0x0:_0x5484a1[_0x30605c(0x126)])??'';this[_0x30605c(0x3af)]=_0x53e099||_0xd4c84c[_0x30605c(0x1f6)]?{'unitID':_0x229d63,'userId':_0x48953f||void 0x0,'type':_0x532621,'rev':this[_0x30605c(0x28e)](),'awaitingChangeset':_0x53e099,'mutations':_0xd4c84c}:null,this[_0x30605c(0x1a5)](),this[_0x30605c(0x3c6)](),this[_0x30605c(0x1ff)](_0x48953f)[_0x30605c(0x3bb)](_0x4ba00b=>this[_0x30605c(0x1c1)][_0x30605c(0x287)](_0x4ba00b));}async[_0x313905(0x1ff)](_0x4c1f08){const _0x354034=_0x313905;var _0x1d7f4f,_0x5d0604,_0x2e8b77,_0xe46044;await((_0x1d7f4f=this[_0x354034(0x268)])==null||(_0x5d0604=_0x1d7f4f['backupOfflineData'])==null?void 0x0:_0x5d0604[_0x354034(0x15b)](_0x1d7f4f,this[_0x354034(0x181)],this[_0x354034(0x34a)]['reason'],_0x4c1f08)['catch'](()=>void 0x0));let _0x2139ec=!0x0;try{var _0x1d9369;await((_0x1d9369=this[_0x354034(0x268)])==null?void 0x0:_0x1d9369[_0x354034(0x1c0)](this[_0x354034(0x181)],_0x4c1f08));}catch{_0x2139ec=!0x1,this[_0x354034(0x37e)][_0x354034(0x117)]({'id':_0x354034(0x20d),'unitID':this[_0x354034(0x181)],'userId':_0x4c1f08});}(_0x2e8b77=(_0xe46044=this['_handler'])[_0x354034(0xb0)])==null||_0x2e8b77[_0x354034(0x15b)](_0xe46044,this[_0x354034(0x34a)],this[_0x354034(0x3af)],_0x2139ec);}[_0x313905(0x36e)](){return this;}[_0x313905(0x11f)](){return this;}[_0x313905(0x2c9)](){return this;}[_0x313905(0x446)](){return this;}[_0x313905(0x100)](){return this;}[_0x313905(0x2c7)](){return this;}['toggleOnline'](){return this;}[_0x313905(0x323)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x313905(0x3c6)](){const _0x57865f=_0x313905;this['_collaborationUIEventService'][_0x57865f(0x117)]({'id':_0x57865f(0x25f),'unitID':this[_0x57865f(0x181)]});}[_0x313905(0x1a5)](){const _0x3cf03e=_0x313905;this[_0x3cf03e(0x3ed)][_0x3cf03e(0x43b)](new a[(_0x3cf03e(0x360))](this[_0x3cf03e(0x181)])['id'],!0x1);}};N=b([y(0x6,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x132)])),y(0x7,r['ICommandService']),y(0x8,r[_0x313905(0xb1)]),y(0x9,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0xa,(0x0,r['Inject'])(r[_0x313905(0x224)])),y(0xb,r[_0x313905(0x26a)]),y(0xc,(0x0,r['Inject'])(v)),y(0xd,(0x0,r['Optional'])(C))],N);let P=class extends O{constructor(_0x42b186,_0x592f9f,_0x37f968,_0x5a7ff3,_0x12e8dc,_0x411e7f,_0x3317dc,_0x5b347b,_0x23d171,_0x5a24a4,_0x3302af){const _0x1c7d50=_0x313905;super(_0x42b186,_0x592f9f,_0x37f968,_0x5a7ff3,_0x12e8dc,_0x5b347b,_0x23d171,_0x3317dc,_0x3302af),this[_0x1c7d50(0x2a2)]=_0x411e7f,this[_0x1c7d50(0x1c1)]=_0x5a24a4,_(this,'status',_0x1c7d50(0x231));}['appendMutation'](_0x2e2332){const _0x5e91e8=_0x313905;return this[_0x5e91e8(0x3f8)][_0x5e91e8(0x101)](_0x2e2332),this[_0x5e91e8(0x1ae)](),this;}[_0x313905(0x11f)](_0x2354ef){const _0x35cb95=_0x313905;return this[_0x35cb95(0x1c1)][_0x35cb95(0x426)](_0x35cb95(0x195),_0x35cb95(0x200)+_0x2354ef[_0x35cb95(0x274)]+'.'),this;}[_0x313905(0x2c9)](_0x14123e){const _0x36a3d7=_0x313905;return this[_0x36a3d7(0x1c1)]['debug'](_0x36a3d7(0x195),_0x36a3d7(0x351)+_0x14123e[_0x36a3d7(0x274)]+'.'),this;}[_0x313905(0x446)](){const _0x217f67=_0x313905;return this[_0x217f67(0x1c1)][_0x217f67(0x426)]('[OfflineState]',_0x217f67(0x108)),this;}[_0x313905(0x100)](){return this;}[_0x313905(0x2c7)](){return this;}[_0x313905(0x2a8)](){const _0x2782ef=_0x313905;let {_injector:_0x4c11e1,_pendingMutations:_0x4e2bc9,_awaitingChangeset:_0x48a3ae,unitID:_0x348cea,_handler:_0x266887,type:_0x421824}=this,_0x45606d=We(_0x4c11e1,_0x348cea,_0x421824,_0x48a3ae,_0x4e2bc9,_0x266887);return _0x45606d instanceof A?_0x45606d[_0x2782ef(0x2ac)]():(_0x45606d instanceof M||_0x45606d instanceof j)&&_0x45606d[_0x2782ef(0x323)](),_0x45606d;}['resend'](){const _0x54511f=_0x313905;throw Error(_0x54511f(0xd1));}};P=b([y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,r['ICommandService']),y(0x8,r[_0x313905(0xb1)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,(0x0,r['Optional'])(C))],P);let F=class extends O{constructor(_0xdb6933,_0x12ddd6,_0x357700,_0x2615a6,_0x1706d9,_0x367a26,_0x4ffe47,_0x3ad2ee,_0x7d5e1d,_0x356ae2,_0x47d328,_0x7da76b,_0x5d7d4e,_0x965897,_0x1e3bb5){const _0xf4e3c4=_0x313905;super(_0xdb6933,_0x12ddd6,_0x357700,_0x2615a6,_0x4ffe47,_0x7da76b,_0x5d7d4e,_0x356ae2,_0x1e3bb5),this[_0xf4e3c4(0x422)]=_0x1706d9,this[_0xf4e3c4(0x2f8)]=_0x367a26,this[_0xf4e3c4(0x43a)]=_0x3ad2ee,this[_0xf4e3c4(0x2a2)]=_0x7d5e1d,this[_0xf4e3c4(0x1c1)]=_0x47d328,this[_0xf4e3c4(0x1a7)]=_0x965897,this[_0xf4e3c4(0x103)]=_0x1e3bb5,_(this,_0xf4e3c4(0x265),_0xf4e3c4(0x284));}[_0x313905(0x3b7)](_0x542940){const _0x47fe8b=_0x313905;try{if(this[_0x47fe8b(0x2e7)](_0x542940)[_0x47fe8b(0x143)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x47fe8b(0x2e7)]([...this[_0x47fe8b(0x2f8)]][_0x47fe8b(0x299)]((_0xaee1b7,_0x3b8d55)=>_0xaee1b7[_0x47fe8b(0x274)]-_0x3b8d55[_0x47fe8b(0x274)]))['missingChangesets'])return this[_0x47fe8b(0x2f8)]=[],this['_updateLocalCache'](),this[_0x47fe8b(0x146)][_0x47fe8b(0x432)]({'from':this[_0x47fe8b(0x28e)](),'to':0x0}),this;let _0x3955f6=this[_0x47fe8b(0x10c)],_0x545b45=this['_pendingMutations'],_0x4be37b;if(_0x3955f6&&_0x545b45['length']!==0x0)_0x4be37b=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](M,this[_0x47fe8b(0x181)],this['type'],_0x3955f6,_0x545b45,this[_0x47fe8b(0x146)],this[_0x47fe8b(0x43a)]);else{if(_0x3955f6&&_0x545b45[_0x47fe8b(0x1f6)]===0x0)_0x3955f6[_0x47fe8b(0x199)]=this[_0x47fe8b(0x28e)](),_0x4be37b=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](j,this[_0x47fe8b(0x181)],this['type'],_0x3955f6,this['_handler'],this[_0x47fe8b(0x43a)]);else{if(_0x545b45[_0x47fe8b(0x1f6)]!==0x0){let _0x1c1d76=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](A,this[_0x47fe8b(0x181)],this[_0x47fe8b(0x133)],_0x545b45,this['_handler']);_0x1c1d76[_0x47fe8b(0x2ac)](),_0x4be37b=_0x1c1d76;}else _0x4be37b=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](k,this['unitID'],this[_0x47fe8b(0x133)],this[_0x47fe8b(0x146)]);}}return _0x4be37b[_0x47fe8b(0x1ae)](),_0x4be37b;}catch(_0x4b9771){return _0x4b9771 instanceof He?(this[_0x47fe8b(0x1c1)][_0x47fe8b(0x426)](_0x47fe8b(0x2e6),_0x4b9771[_0x47fe8b(0x24c)]),this[_0x47fe8b(0xad)](_0x4b9771[_0x47fe8b(0x34a)])):(this[_0x47fe8b(0x1c1)][_0x47fe8b(0x287)](_0x47fe8b(0x2e6),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4b9771),this[_0x47fe8b(0xad)](this[_0x47fe8b(0xc8)](_0x4b9771)));}}[_0x313905(0x2e7)](_0x1995f5){const _0x4aace5=_0x313905;this[_0x4aace5(0x216)]();for(let _0x32f3da=0x0;_0x32f3da<_0x1995f5[_0x4aace5(0x1f6)];_0x32f3da++){let _0xe15137=_0x1995f5[_0x32f3da];switch(this['_classifyRemoteChangeset'](_0xe15137)){case _0x4aace5(0x193):{let _0x45d66c=this[_0x4aace5(0x28e)]();if(_0xe15137[_0x4aace5(0x274)]>_0x45d66c+0x1)return{'missingChangesets':!0x0};_0xe15137[_0x4aace5(0x274)]<=_0x45d66c?this['_dropAcknowledgedAwaiting']():this['_acknowledgeAwaiting']();break;}case _0x4aace5(0x1be):throw new He(this[_0x4aace5(0x2b8)](_0xe15137));case _0x4aace5(0x196):break;case _0x4aace5(0x2db):return{'missingChangesets':!0x0};case _0x4aace5(0x425):this['_transformAndApplyRemoteChangeset'](_0xe15137),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x313905(0x41e)](_0x56bcb3){const _0x174d22=_0x313905;let _0x42be50=_0x56bcb3,_0x38c708=this[_0x174d22(0x10c)];if(_0x38c708){let _0x234b94=this[_0x174d22(0x1a7)][_0x174d22(0x2f0)]([_0x56bcb3],[_0x38c708],!0x1);if(!(0x0,n[_0x174d22(0x204)])(_0x234b94))throw _0x234b94[_0x174d22(0x287)];_0x42be50=_0x234b94[_0x174d22(0x2e3)][0x0],_0x38c708=_0x234b94[_0x174d22(0x434)][0x0];}let _0x431ff4=this[_0x174d22(0x3f8)];if(_0x431ff4[_0x174d22(0x1f6)]){let _0xf1c8af=this[_0x174d22(0x1a7)]['transformMutationsWithChangeset'](_0x42be50,_0x431ff4);if(!(0x0,n[_0x174d22(0x194)])(_0xf1c8af))throw _0xf1c8af['error'];_0x42be50=_0xf1c8af[_0x174d22(0x2e3)],_0x431ff4=_0xf1c8af[_0x174d22(0x248)];}this[_0x174d22(0x22c)](_0x42be50),_0x38c708&&(_0x38c708['baseRev']=this['_getCurrentRevision']()),this[_0x174d22(0x10c)]=_0x38c708,this[_0x174d22(0x3f8)]=_0x431ff4;}[_0x313905(0x216)](){const _0x14cf39=_0x313905;if(!this[_0x14cf39(0x10c)]||this[_0x14cf39(0x422)]==null)return;let _0x2ea1db=this[_0x14cf39(0x28e)]();if(this[_0x14cf39(0x422)]<=_0x2ea1db)throw Error(_0x14cf39(0x136)+this[_0x14cf39(0x422)]+'.');this[_0x14cf39(0x422)]===_0x2ea1db+0x1&&this[_0x14cf39(0x1b1)]();}[_0x313905(0x1b1)](){const _0x3d5df7=_0x313905;this['_incrementRevisionNumber'](),this[_0x3d5df7(0xc6)]();}[_0x313905(0xc6)](){const _0x1063f0=_0x313905;this[_0x1063f0(0x10c)]=null,this['_acknowledgedAwaitingRevision']=null,this['_disposeSubmitter']();}['_disposeSubmitter'](){const _0x59e1d6=_0x313905;var _0xe5c379;(_0xe5c379=this[_0x59e1d6(0x43a)])==null||_0xe5c379[_0x59e1d6(0x2a7)](),this[_0x59e1d6(0x43a)]=void 0x0;}[_0x313905(0x2a7)](){const _0x48b5d4=_0x313905;this[_0x48b5d4(0x29f)]();}[_0x313905(0x323)](){const _0x598f75=_0x313905;throw Error(_0x598f75(0x3df));}[_0x313905(0x36e)](_0xfc8c){const _0x1729b1=_0x313905;return this[_0x1729b1(0x3f8)][_0x1729b1(0x101)](_0xfc8c),this[_0x1729b1(0x1ae)](),this;}['onRemoteChangeset'](_0x1ff902){const _0x508983=_0x313905;return this[_0x508983(0x2f8)][_0x508983(0x101)](_0x1ff902),this;}[_0x313905(0x2c9)](_0x1f3cfb){const _0x338399=_0x313905;let _0xf67a3d=this['_classifyAck'](_0x1f3cfb);if(this[_0x338399(0x10c)]){switch(_0xf67a3d){case'ack_of_awaiting':this[_0x338399(0xc6)]();break;case _0x338399(0x109):break;case _0x338399(0xb9):this[_0x338399(0x1b1)]();break;case _0x338399(0x2db):this['_acknowledgedAwaitingRevision']=_0x1f3cfb['revision'],this[_0x338399(0x29f)]();}return this;}if(_0xf67a3d==='stale')return this;throw Error(_0x338399(0x1b5));}[_0x313905(0x446)](_0x3a790a){const _0x542a05=_0x313905;return this[_0x542a05(0xad)](this['_rejectionInfo'](_0x3a790a));}[_0x313905(0x100)](_0x32e47c,_0x34de3d){const _0x1dc3d2=_0x313905;var _0x432258;return this[_0x1dc3d2(0x422)]!=null||_0x32e47c['reqId']!==((_0x432258=this['_awaitingChangeset'])==null?void 0x0:_0x432258[_0x1dc3d2(0x131)])||(this['_submitter']??=this[_0x1dc3d2(0x33a)](this[_0x1dc3d2(0x10c)]),this[_0x1dc3d2(0x43a)]['requestRetry'](this[_0x1dc3d2(0x114)](_0x34de3d))),this;}[_0x313905(0x2c7)](){const _0x43d3bc=_0x313905;return this[_0x43d3bc(0x29f)](),this[_0x43d3bc(0x2a2)][_0x43d3bc(0x246)](P,this[_0x43d3bc(0x181)],this[_0x43d3bc(0x133)],this[_0x43d3bc(0x10c)],this[_0x43d3bc(0x3f8)],this[_0x43d3bc(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0xad)](_0x43b3fc){const _0x2d491d=_0x313905;return this['_disposeSubmitter'](),this[_0x2d491d(0x2a2)][_0x2d491d(0x246)](N,this[_0x2d491d(0x181)],this[_0x2d491d(0x133)],this[_0x2d491d(0x10c)],this[_0x2d491d(0x3f8)],this[_0x2d491d(0x146)],_0x43b3fc);}};F=b([y(0x8,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x9,(0x0,r['Inject'])(n[_0x313905(0x2cf)])),y(0xa,r[_0x313905(0x26a)]),y(0xb,r[_0x313905(0x296)]),y(0xc,r[_0x313905(0xb1)]),y(0xd,n[_0x313905(0x3cf)]),y(0xe,(0x0,r[_0x313905(0xe6)])(C))],F);function We(_0x11bb4d,_0x5ae07f,_0x3df15e,_0x458dc4,_0x1f4c83,_0x5acc3f){const _0x4de6c2=_0x313905;return _0x458dc4&&_0x1f4c83[_0x4de6c2(0x1f6)]?_0x11bb4d[_0x4de6c2(0x246)](M,_0x5ae07f,_0x3df15e,_0x458dc4,_0x1f4c83,_0x5acc3f,void 0x0):_0x458dc4?_0x11bb4d[_0x4de6c2(0x246)](j,_0x5ae07f,_0x3df15e,_0x458dc4,_0x5acc3f,void 0x0):_0x1f4c83['length']?_0x11bb4d[_0x4de6c2(0x246)](A,_0x5ae07f,_0x3df15e,_0x1f4c83,_0x5acc3f):_0x11bb4d[_0x4de6c2(0x246)](k,_0x5ae07f,_0x3df15e,_0x5acc3f);}let I=class extends r[_0x313905(0x380)]{get[_0x313905(0x235)](){const _0x5268bd=_0x313905;return this[_0x5268bd(0x25d)];}constructor(_0x3dcda9,_0x30612a,_0x5156d8,_0x26ed57,_0x19f01e,_0x5463d6,_0x9f4ab5,_0x5c2103,_0x475a01,_0x59b661,_0x56661d,_0x369a51,_0x25bb2c,_0x3e845d){const _0x5e1776=_0x313905;super(),this[_0x5e1776(0x181)]=_0x3dcda9,this[_0x5e1776(0x44d)]=_0x30612a,this[_0x5e1776(0x2e2)]=_0x5156d8,this['_injector']=_0x26ed57,this['_compressMutationService']=_0x19f01e,this[_0x5e1776(0xe0)]=_0x5463d6,this[_0x5e1776(0x10b)]=_0x9f4ab5,this[_0x5e1776(0x34e)]=_0x5c2103,this['_univerInstanceService']=_0x475a01,this[_0x5e1776(0x1c1)]=_0x59b661,this['_commandService']=_0x56661d,this[_0x5e1776(0x3ed)]=_0x369a51,this[_0x5e1776(0x3ec)]=_0x25bb2c,this['_localCacheService']=_0x3e845d,_(this,_0x5e1776(0x175),new t[(_0x5e1776(0x34f))](null)),_(this,'state$',this[_0x5e1776(0x175)][_0x5e1776(0x1da)]()),_(this,_0x5e1776(0x25d),void 0x0),_(this,_0x5e1776(0x42f),!0x1),_(this,_0x5e1776(0x113),''),_(this,_0x5e1776(0x12c),0x0),_(this,_0x5e1776(0x359),this[_0x5e1776(0x29b)][_0x5e1776(0x24a)]((0x0,t[_0x5e1776(0x180)])(_0x18777d=>_0x18777d?_0x18777d[_0x5e1776(0x265)]:_0x5e1776(0x231)),(0x0,t['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x5e1776(0x2d6),new t[(_0x5e1776(0xb7))]()),_(this,'changesetResend$',this[_0x5e1776(0x2d6)][_0x5e1776(0x1da)]()),_(this,_0x5e1776(0x3ad),new t['Subject']()),_(this,_0x5e1776(0x1a9),this[_0x5e1776(0x3ad)][_0x5e1776(0x1da)]()),_(this,_0x5e1776(0x412),!0x1),_(this,_0x5e1776(0x118),[]);}async[_0x313905(0xb8)](){const _0x2177a9=_0x313905;if(this[_0x2177a9(0x235)])throw Error(_0x2177a9(0xed));await this[_0x2177a9(0x32a)]();}[_0x313905(0x1ef)](){const _0x101170=_0x313905;return this[_0x101170(0x42f)]=!0x0,(0x0,r[_0x101170(0xfa)])(()=>{const _0x57cb1d=_0x101170;this[_0x57cb1d(0x42f)]=!0x1,this[_0x57cb1d(0x460)]();});}[_0x313905(0x388)](_0x23a3d0){this['_onLocalMutation'](_0x23a3d0);}[_0x313905(0x1ee)](){const _0x5d8693=_0x313905;var _0x25a28f;return((_0x25a28f=this[_0x5d8693(0x25d)])==null?void 0x0:_0x25a28f['hasLocalChanges']())??!0x1;}[_0x313905(0x2a7)](){const _0x1f6467=_0x313905;var _0x2589ac;super[_0x1f6467(0x2a7)](),(_0x2589ac=this['_state'])==null||_0x2589ac[_0x1f6467(0x2a7)](),this[_0x1f6467(0x2d6)][_0x1f6467(0x395)](),this[_0x1f6467(0x3ad)]['complete']();}['_updateState'](_0x1ab84d){const _0x5830e4=_0x313905;this[_0x5830e4(0x25d)]=_0x1ab84d,this[_0x5830e4(0x175)][_0x5830e4(0xb9)](_0x1ab84d);}async[_0x313905(0x32a)](){const _0x3cee8e=_0x313905;if(this[_0x3cee8e(0x42e)](await this[_0x3cee8e(0xc1)]()),this['_singleActiveUnitService']){var _0x573b77;(_0x573b77=this[_0x3cee8e(0x3ec)])==null||_0x573b77['editingUnit'](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x3cee8e(0x17c)](this[_0x3cee8e(0x181)])[_0x3cee8e(0x1c9)](_0x6a3bd6=>{const _0x5a389c=_0x3cee8e;this[_0x5a389c(0x1c1)][_0x5a389c(0x426)](_0x5a389c(0x214),_0x5a389c(0xea),_0x6a3bd6),_0x6a3bd6===0x1?(this[_0x5a389c(0x34e)][_0x5a389c(0x117)]({'id':_0x5a389c(0x410)}),this['_permissionService']['updatePermissionPoint'](new a[(_0x5a389c(0x360))](this[_0x5a389c(0x181)])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this[_0x5a389c(0x3ed)][_0x5a389c(0x43b)](new a[(_0x5a389c(0x360))](this['unitID'])['id'],!0x0),this[_0x5a389c(0x3ed)][_0x5a389c(0x21b)](!0x0));}));}let _0xbed459=!0x1;return this[_0x3cee8e(0x25e)](this[_0x3cee8e(0x44d)][_0x3cee8e(0x107)][_0x3cee8e(0x1c9)](_0x3ef720=>{const _0x4d5676=_0x3cee8e;_0x3ef720===0x3?this[_0x4d5676(0x12f)](_0xbed459):_0x3ef720===0x2&&(_0xbed459=!0x0,this['_toggleOffline']());})),this[_0x3cee8e(0x25e)](this['session'][_0x3cee8e(0x2ed)][_0x3cee8e(0x1c9)](_0x1815d1=>{const _0x245fb5=_0x3cee8e;try{switch(_0x1815d1[_0x245fb5(0x280)]){case n['CollaborationEvent'][_0x245fb5(0x378)]:this['_onRemoteChangeset']((0x0,n['parseProtocolChangeset'])(_0x1815d1[_0x245fb5(0x335)]));break;case n['CollaborationEvent'][_0x245fb5(0x15d)]:this['_onRemoteACK'](_0x1815d1[_0x245fb5(0x335)]);break;case n[_0x245fb5(0x2ce)][_0x245fb5(0xfb)]:this['_onRemoteRejected']({'isPermissionRej':!0x1,'reason':_0x1815d1[_0x245fb5(0x3ca)],'code':_0x1815d1[_0x245fb5(0x2c3)]});break;case n[_0x245fb5(0x2ce)]['CHANGESET_SHOULD_RETRY']:{let _0x7e454f=_0x1815d1;this['_onRemoteRetry'](_0x7e454f['data'],_0x7e454f[_0x245fb5(0x2c3)]);break;}case n[_0x245fb5(0x2ce)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x245fb5(0xbe)](_0x1815d1[_0x245fb5(0x335)][_0x245fb5(0x1aa)]['map'](_0x3fe47b=>(0x0,n[_0x245fb5(0x232)])(_0x3fe47b)));break;case n[_0x245fb5(0x2ce)][_0x245fb5(0x30a)]:this['_onRemoteRejected']({'isPermissionRej':!0x0,'reason':_0x1815d1[_0x245fb5(0x3ca)],'code':_0x1815d1['code']});break;case n[_0x245fb5(0x2ce)][_0x245fb5(0x420)]:}}catch(_0x5b09f5){throw console[_0x245fb5(0x287)]('Error\x20on\x20receiving\x20event',_0x5b09f5),_0x5b09f5;}})),this['_state'];}['_unlockTransition'](){const _0x1c85b1=_0x313905;this[_0x1c85b1(0x412)]=!0x1;}[_0x313905(0x2e1)](){const _0x15735=_0x313905;if(this[_0x15735(0x412)])throw Error(_0x15735(0x22e));this[_0x15735(0x412)]=!0x0;}[_0x313905(0x164)](_0x5210ff){const _0x26c11c=_0x313905;this['_lockTransition']();try{this[_0x26c11c(0x42e)](_0x5210ff());}finally{this['_unlockTransition']();}}['_onLocalMutation'](_0x26a931){const _0x3d242d=_0x313905;this[_0x3d242d(0x164)](()=>this[_0x3d242d(0x25d)]['appendMutation'](_0x26a931));}[_0x313905(0x176)](_0x40b811){const _0xb8b325=_0x313905;this[_0xb8b325(0x42f)]?this[_0xb8b325(0x118)][_0xb8b325(0x101)](_0x40b811):this[_0xb8b325(0x406)](_0x40b811);}['_exhaustRemoteChangesetQueue'](){const _0x1cb708=_0x313905;this[_0x1cb708(0x118)]['forEach'](_0x596a2f=>this['_applyRemoteChangeset'](_0x596a2f)),this[_0x1cb708(0x118)]=[];}['_applyRemoteChangeset'](_0x1b09e4){const _0x1d0de5=_0x313905;let _0x15de49=this['_compressMutationService'][_0x1d0de5(0x45e)][_0x1d0de5(0x247)](this[_0x1d0de5(0x407)]['interceptor'][_0x1d0de5(0x22d)]()[_0x1d0de5(0x373)])(_0x1b09e4[_0x1d0de5(0x23a)],null)||_0x1b09e4[_0x1d0de5(0x23a)],_0x4821cd={..._0x1b09e4,'mutations':_0x15de49};this[_0x1d0de5(0x164)](()=>this[_0x1d0de5(0x25d)][_0x1d0de5(0x11f)](_0x4821cd));}[_0x313905(0x211)](_0x38059b){const _0x14ae2d=_0x313905;this[_0x14ae2d(0x164)](()=>this['_state'][_0x14ae2d(0x2c9)](_0x38059b));}[_0x313905(0x167)](_0x388842){const _0x27d1b6=_0x313905;this[_0x27d1b6(0x164)](()=>this[_0x27d1b6(0x25d)][_0x27d1b6(0x446)](_0x388842));}[_0x313905(0x429)](_0x112657,_0x152767){const _0x3ef5aa=_0x313905;this[_0x3ef5aa(0x164)](()=>this[_0x3ef5aa(0x25d)]['onRemoteRetry'](_0x112657,_0x152767));}[_0x313905(0xbe)](_0x494d17){const _0x357b35=_0x313905;let _0x56e340=this[_0x357b35(0x25d)];if(!(_0x56e340 instanceof F))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x567437=_0x494d17[_0x357b35(0x180)](_0x5e9c16=>{const _0x44805a=_0x357b35;let _0x52d34b=this[_0x44805a(0x407)][_0x44805a(0x45e)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x44805a(0x22d)]()[_0x44805a(0x373)])(_0x5e9c16[_0x44805a(0x23a)],null)||_0x5e9c16[_0x44805a(0x23a)];return{..._0x5e9c16,'mutations':_0x52d34b};});this['_transit'](()=>_0x56e340[_0x357b35(0x3b7)](_0x567437));}[_0x313905(0x20a)](){const _0x1342bf=_0x313905;this[_0x1342bf(0x164)](()=>this[_0x1342bf(0x25d)][_0x1342bf(0x2c7)]());}[_0x313905(0x12f)](_0x329d8a=!0x1){const _0x22a1e9=_0x313905;this['_transit'](()=>this[_0x22a1e9(0x25d)]['toggleOnline']());let _0x36fb46=this[_0x22a1e9(0x25d)];_0x329d8a&&_0x36fb46 instanceof k&&this['_transit'](()=>_0x36fb46[_0x22a1e9(0x266)]());}async[_0x313905(0xc1)](){return new Promise(_0x5defcf=>{const _0x3611c6=_0x16c4;this['session'][_0x3611c6(0x107)]['pipe']((0x0,t[_0x3611c6(0x16d)])(0x1))['subscribe'](async _0x3a7415=>{const _0x1d41d3=_0x3611c6;_0x5defcf(await this[_0x1d41d3(0x38d)](_0x3a7415===0x3));});});}[_0x313905(0x322)](){const _0x3ae8fc=_0x313905;let _0x447bd2=this[_0x3ae8fc(0x181)],_0x67f898=this[_0x3ae8fc(0x2a2)]['get'](r[_0x3ae8fc(0x21c)])[_0x3ae8fc(0x292)](m);return{'resendTimeouts':{'ackTimeout':_0x67f898==null?void 0x0:_0x67f898[_0x3ae8fc(0x405)],'maxAckTimeout':_0x67f898==null?void 0x0:_0x67f898[_0x3ae8fc(0x325)]},'onStateChange':(_0x22e164,_0xc8a09e)=>{const _0x536591=_0x3ae8fc;if(_0x22e164!==this[_0x536591(0x25d)])throw Error(_0x536591(0x1d8)+_0x22e164[_0x536591(0x265)]+_0x536591(0xfc)+_0xc8a09e['status']+'\x0aCurrent:\x20'+this['_state'][_0x536591(0x265)]);this[_0x536591(0x42e)](_0xc8a09e);},'onSendChangeset':(_0x4d86e9,_0x4b818e)=>{const _0x7f2c48=_0x3ae8fc;_0x4d86e9[_0x7f2c48(0x3fd)]||(_0x4d86e9[_0x7f2c48(0x3fd)]=this[_0x7f2c48(0x113)],_0x4d86e9[_0x7f2c48(0x131)]=++this['_changesetReqId']);let _0x278f37={'eventID':n[_0x7f2c48(0x2ce)][_0x7f2c48(0x189)],'data':{'unitID':_0x4d86e9['unitID'],'unitType':this['_type'],'changeset':_0x4d86e9,'memberID':this[_0x7f2c48(0x44d)][_0x7f2c48(0x35a)]()}};return this[_0x7f2c48(0x44d)][_0x7f2c48(0x1fa)](_0x278f37,this[_0x7f2c48(0x181)],_0x4b818e);},'onConflict':(_0x27f717,_0x3e3651,_0x59e42a)=>{const _0x18dead=_0x3ae8fc;this['_conflict$'][_0x18dead(0x28d)]||this[_0x18dead(0x3ad)][_0x18dead(0xb9)]({'unitID':_0x447bd2,..._0x27f717,'localChanges':_0x3e3651,'cacheCleared':_0x59e42a});},'onChangesetResend':_0x282f35=>{const _0x5d3439=_0x3ae8fc;this['_logService'][_0x5d3439(0x426)](_0x5d3439(0x214),_0x5d3439(0x305)+_0x282f35[_0x5d3439(0x131)]+'\x20('+_0x282f35[_0x5d3439(0x3ca)]+_0x5d3439(0x29d)+_0x282f35[_0x5d3439(0x30f)]+')'),queueMicrotask(()=>{const _0x22d874=_0x5d3439;this['_changesetResend$'][_0x22d874(0x28d)]||this['_changesetResend$']['next']({'unitID':_0x447bd2,..._0x282f35});});},'onMissingChangesets':({from:_0x3f2ea5,to:_0x5cddbb})=>{const _0x3fadd9=_0x3ae8fc;this[_0x3fadd9(0x1c1)][_0x3fadd9(0x426)]('[CollaborationEntity]',_0x3fadd9(0x1a2)+_0x3f2ea5+_0x3fadd9(0x424)+_0x5cddbb);let _0x5b14d1={'eventID':n[_0x3fadd9(0x2ce)]['FETCH_MISSING'],'data':{'unitID':_0x447bd2,'unitType':this['_type'],'from':_0x3f2ea5,'to':_0x5cddbb}};this[_0x3fadd9(0x44d)]['send'](_0x5b14d1,this[_0x3fadd9(0x181)]);}};}async['_createInitialStateImpl'](_0x1e7df9){const _0xc3cf1c=_0x313905;var _0x532705;let _0x5e2531=await((_0x532705=this['_localCacheService'])==null?void 0x0:_0x532705[_0xc3cf1c(0x2da)](this[_0xc3cf1c(0x181)])),_0xe0b2b6=(_0x5e2531==null?void 0x0:_0x5e2531[_0xc3cf1c(0x23a)])??[],_0x58efeb=(_0x5e2531==null?void 0x0:_0x5e2531[_0xc3cf1c(0x38c)])??null,_0xfe71cf=!!(_0x58efeb!=null&&_0x58efeb[_0xc3cf1c(0x3fd)])&&!!(_0x58efeb!=null&&_0x58efeb[_0xc3cf1c(0x131)]);this[_0xc3cf1c(0x113)]=_0xfe71cf?_0x58efeb[_0xc3cf1c(0x3fd)]:(0x0,n[_0xc3cf1c(0x261)])(),this['_changesetReqId']=_0xfe71cf?_0x58efeb[_0xc3cf1c(0x131)]:0x0;let _0x16e6de=this[_0xc3cf1c(0x181)];try{this[_0xc3cf1c(0x18a)](_0x58efeb,_0xe0b2b6);}catch(_0x151c40){this['_logService'][_0xc3cf1c(0x287)](_0x151c40);}let _0x46291c=this[_0xc3cf1c(0x322)]();if(_0x1e7df9){let _0x1a70a7=We(this[_0xc3cf1c(0x2a2)],_0x16e6de,this[_0xc3cf1c(0x2e2)],_0x58efeb,_0xe0b2b6,_0x46291c);return _0x1a70a7 instanceof A?_0x1a70a7['_schedule']():(_0x1a70a7 instanceof M||_0x1a70a7 instanceof j)&&_0x1a70a7[_0xc3cf1c(0x323)](),_0x1a70a7;}return this['_injector'][_0xc3cf1c(0x246)](P,_0x16e6de,this[_0xc3cf1c(0x2e2)],_0x58efeb,_0xe0b2b6,_0x46291c);}[_0x313905(0x18a)](_0x52c038,_0x23d7c6){const _0x190c0e=_0x313905;var _0x1b7d5d,_0x331561;let _0x3fdf5c=this[_0x190c0e(0x407)]['interceptor'][_0x190c0e(0x247)](this[_0x190c0e(0x407)][_0x190c0e(0x45e)][_0x190c0e(0x22d)]()['COMPRESS_MUTATION_APPLY']);(_0x1b7d5d=_0x3fdf5c((_0x52c038==null?void 0x0:_0x52c038[_0x190c0e(0x23a)])||[],null))==null||_0x1b7d5d[_0x190c0e(0xf3)](_0x4336f7=>this['_commandService'][_0x190c0e(0x3c3)](_0x4336f7['id'],_0x4336f7[_0x190c0e(0x1a1)])),(_0x331561=_0x3fdf5c(_0x23d7c6||[],null))==null||_0x331561[_0x190c0e(0xf3)](_0x20fdf3=>this['_commandService'][_0x190c0e(0x3c3)](_0x20fdf3['id'],_0x20fdf3[_0x190c0e(0x1a1)]));}};I=b([y(0x3,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x4,(0x0,r['Inject'])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r['Inject'])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,r['ICommandService']),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r['Optional'])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],I);let L=class extends I{constructor(_0x2de477,_0x30aea6,_0x135bf2,_0x459af8,_0x53fa82,_0x55df78,_0xcfcf85,_0x133d83,_0x240195,_0x593dbb,_0xb7d2d9,_0x36e538,_0x4c6f4e,_0x2f2a65,_0xb29133){const _0x516c0f=_0x313905;super(_0x2de477,_0x135bf2,_0x30aea6,_0x459af8,_0x53fa82,_0x55df78,_0xcfcf85,_0x133d83,_0x240195,_0x593dbb,_0xb7d2d9,_0x36e538,_0x2f2a65,_0xb29133),this['unitID']=_0x2de477,this[_0x516c0f(0x133)]=_0x30aea6,this['_docStateChangeManagerService']=_0x4c6f4e,_(this,_0x516c0f(0x29c),null);}[_0x313905(0x172)](_0xd69bd9){const _0x410eb1=_0x313905;this[_0x410eb1(0x29c)]=_0xd69bd9;}['dispose'](){const _0x26b71f=_0x313905;this[_0x26b71f(0x29c)]=null,super[_0x26b71f(0x2a7)]();}['_createHandler'](){const _0x535dfd=_0x313905;let _0x483e93=super[_0x535dfd(0x322)]();return _0x483e93['onTransformIME']=_0xdd2d0a=>{const _0x690435=_0x535dfd;var _0x35cc29,_0x213883;return(_0x35cc29=this[_0x690435(0x29c)])==null||(_0x213883=_0x35cc29[_0x690435(0x384)])==null?void 0x0:_0x213883['call'](_0x35cc29,_0xdd2d0a);},_0x483e93[_0x535dfd(0x165)]=_0x3f017d=>{const _0xf883c1=_0x535dfd;var _0x57a422,_0x305d44;return(_0x57a422=this[_0xf883c1(0x29c)])==null||(_0x305d44=_0x57a422['onTransformState'])==null?void 0x0:_0x305d44[_0xf883c1(0x15b)](_0x57a422,_0x3f017d);},_0x483e93[_0x535dfd(0x1ba)]=_0x23ed5b=>{const _0x40c081=_0x535dfd;var _0x57068e,_0x52dbde;return((_0x57068e=this['_handlerCallback'])==null||(_0x52dbde=_0x57068e[_0x40c081(0x1ba)])==null?void 0x0:_0x52dbde['call'](_0x57068e,_0x23ed5b))??null;},_0x483e93[_0x535dfd(0x1a6)]=_0x3ea562=>{const _0x1d9df7=_0x535dfd;var _0x3e74f6,_0x34710b;return(_0x3e74f6=this['_handlerCallback'])==null||(_0x34710b=_0x3e74f6[_0x1d9df7(0x1a6)])==null?void 0x0:_0x34710b[_0x1d9df7(0x15b)](_0x3e74f6,_0x3ea562);},_0x483e93[_0x535dfd(0x36f)]=_0x469998=>{const _0x3262bf=_0x535dfd;var _0x22500e,_0x399a09;return(_0x22500e=this['_handlerCallback'])==null||(_0x399a09=_0x22500e[_0x3262bf(0x36f)])==null?void 0x0:_0x399a09[_0x3262bf(0x15b)](_0x22500e,_0x469998);},_0x483e93[_0x535dfd(0x329)]=_0x1b499e=>{const _0x30a844=_0x535dfd;var _0x1e9a0e,_0x21f411;return((_0x1e9a0e=this[_0x30a844(0x29c)])==null||(_0x21f411=_0x1e9a0e[_0x30a844(0x329)])==null?void 0x0:_0x21f411[_0x30a844(0x15b)](_0x1e9a0e,_0x1b499e))??_0x1b499e;},_0x483e93[_0x535dfd(0x35e)]=_0x4fed99=>{const _0x5bc4ab=_0x535dfd;var _0x33ccfa,_0x333955;return((_0x33ccfa=this[_0x5bc4ab(0x29c)])==null||(_0x333955=_0x33ccfa[_0x5bc4ab(0x35e)])==null?void 0x0:_0x333955['call'](_0x33ccfa,_0x4fed99))??_0x4fed99;},_0x483e93;}async[_0x313905(0x32a)](){const _0x3b5a78=_0x313905;let _0x2900f4=await super[_0x3b5a78(0x32a)]();return this[_0x3b5a78(0x25e)](this[_0x3b5a78(0x293)][_0x3b5a78(0x40f)]['subscribe'](_0x27f5b9=>{const _0x2cae1b=_0x3b5a78;if(_0x27f5b9==null||_0x27f5b9[_0x2cae1b(0x39a)]!==this[_0x2cae1b(0x181)])return;let {commandId:_0x20f85f,redoState:_0x394ff7,unitId:_0x25441d}=_0x27f5b9,_0x194762={'id':_0x20f85f,'type':r[_0x2cae1b(0x186)][_0x2cae1b(0x437)],'params':{'unitId':_0x25441d,'actions':_0x394ff7[_0x2cae1b(0x465)],'textRanges':null}};this[_0x2cae1b(0xac)](_0x194762);})),this[_0x3b5a78(0x25e)](this[_0x3b5a78(0x281)][_0x3b5a78(0x2ef)]((_0x3b353f,_0x4ece7b)=>{const _0x3443f5=_0x3b5a78;if(_0x3b353f[_0x3443f5(0x133)]!==r['CommandType'][_0x3443f5(0x437)]||_0x4ece7b!=null&&_0x4ece7b[_0x3443f5(0x1fb)]||_0x4ece7b!=null&&_0x4ece7b[_0x3443f5(0x409)]||_0x3b353f['id']===i[_0x3443f5(0x1d0)]['id'])return;let _0x4aa13f=_0x3b353f[_0x3443f5(0x1a1)];if((_0x4aa13f==null?void 0x0:_0x4aa13f[_0x3443f5(0x39a)])!==this[_0x3443f5(0x181)])return;let _0x1c8e20=_0x3b353f,_0x4022ee=this[_0x3443f5(0x407)][_0x3443f5(0x45e)][_0x3443f5(0x247)](this[_0x3443f5(0x407)][_0x3443f5(0x45e)]['getInterceptPoints']()[_0x3443f5(0x192)])([_0x1c8e20],this['_univerInstanceService'])||[_0x1c8e20];this[_0x3443f5(0xac)](_0x4022ee[0x0]);})),_0x2900f4;}};L=b([y(0x3,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n['RevisionService'])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x313905(0x26a)]),y(0xa,r['ICommandService']),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x313905(0x377)])(i[_0x313905(0x1b2)])),y(0xd,(0x0,r['Optional'])(T)),y(0xe,(0x0,r['Optional'])(C))],L);let R=class extends I{constructor(_0xf25d8e,_0x39d995,_0x197b4a,_0x19fe44,_0x1b402d,_0x114d66,_0x156b83,_0x29a6ae,_0x11735b,_0x3cf11e,_0x1117df,_0x36d197,_0x772ec0,_0x2fa558){const _0x475a00=_0x313905;super(_0xf25d8e,_0x197b4a,_0x39d995,_0x19fe44,_0x1b402d,_0x114d66,_0x156b83,_0x29a6ae,_0x11735b,_0x3cf11e,_0x1117df,_0x36d197,_0x772ec0,_0x2fa558),this[_0x475a00(0x181)]=_0xf25d8e,this[_0x475a00(0x133)]=_0x39d995;}async[_0x313905(0x32a)](){const _0x2b5c51=_0x313905;let _0x1d2c34=await super[_0x2b5c51(0x32a)]();return this['disposeWithMe'](this['_commandService']['onMutationExecutedForCollab']((_0x37c4a3,_0x4619db)=>{const _0x447c3c=_0x2b5c51;if(_0x37c4a3['type']!==r[_0x447c3c(0x186)]['MUTATION']||_0x4619db!=null&&_0x4619db[_0x447c3c(0x1fb)]||_0x4619db!=null&&_0x4619db['onlyLocal'])return;let _0x3c3268=_0x37c4a3['params'];if((_0x3c3268==null?void 0x0:_0x3c3268['unitId'])!==this['unitID'])return;let _0x7af083=_0x37c4a3,_0x1a13a8=this[_0x447c3c(0x407)][_0x447c3c(0x45e)][_0x447c3c(0x247)](this[_0x447c3c(0x407)][_0x447c3c(0x45e)][_0x447c3c(0x22d)]()[_0x447c3c(0x192)])([_0x7af083],this[_0x447c3c(0x121)])||[_0x7af083];this[_0x447c3c(0xac)](_0x1a13a8[0x0]);})),_0x1d2c34;}};R=b([y(0x3,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x4,(0x0,r[_0x313905(0x377)])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,r[_0x313905(0x296)]),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],R);let z=class extends I{constructor(_0x1eee56,_0xee2737,_0x4acb37,_0x1fcda1,_0x9ab987,_0x4a0886,_0x30fd87,_0x4127a1,_0x39dd01,_0xbc5d6f,_0x356d9c,_0x333f88,_0x58373f,_0x31688f,_0x9e6c5){const _0x3d099a=_0x313905;super(_0x1eee56,_0x4acb37,_0xee2737,_0x1fcda1,_0x9ab987,_0x4a0886,_0x30fd87,_0x39dd01,_0xbc5d6f,_0x356d9c,_0x333f88,_0x58373f,_0x31688f,_0x9e6c5),this['unitID']=_0x1eee56,this[_0x3d099a(0x133)]=_0xee2737,this[_0x3d099a(0x313)]=_0x4127a1;}[_0x313905(0x322)](){const _0x1856c0=_0x313905;let _0x344ceb=super['_createHandler']();return _0x344ceb['onTransformSelections']=_0x5bd03b=>this['_sheetTransformSelectionsService'][_0x1856c0(0x256)](_0x5bd03b),_0x344ceb;}async['_init'](){const _0x8364a7=_0x313905;let _0x46c934=await super[_0x8364a7(0x32a)]();return this['disposeWithMe'](this['_commandService'][_0x8364a7(0x2ef)]((_0x4aef2f,_0x91c996)=>{const _0x29a86d=_0x8364a7;if(_0x4aef2f[_0x29a86d(0x133)]!==r[_0x29a86d(0x186)][_0x29a86d(0x437)]||_0x91c996!=null&&_0x91c996[_0x29a86d(0x1fb)]||_0x91c996!=null&&_0x91c996[_0x29a86d(0x409)])return;let _0x36f4e5=_0x4aef2f[_0x29a86d(0x1a1)];if((_0x36f4e5==null?void 0x0:_0x36f4e5['unitId'])!==this[_0x29a86d(0x181)])return;let _0x1ca087=_0x4aef2f,_0x38b57d=this['_compressMutationService'][_0x29a86d(0x45e)][_0x29a86d(0x247)](this['_compressMutationService'][_0x29a86d(0x45e)]['getInterceptPoints']()[_0x29a86d(0x192)])([_0x1ca087],this['_univerInstanceService'])||[_0x1ca087];this['_onLocalMutation'](_0x38b57d[0x0]);})),_0x46c934;}};z=b([y(0x3,(0x0,r['Inject'])(r['Injector'])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n['RevisionService'])),y(0x7,(0x0,r[_0x313905(0x377)])(w)),y(0x8,(0x0,r[_0x313905(0x377)])(v)),y(0x9,r[_0x313905(0xbb)]),y(0xa,r[_0x313905(0x26a)]),y(0xb,r[_0x313905(0x296)]),y(0xc,r[_0x313905(0x132)]),y(0xd,(0x0,r[_0x313905(0xe6)])(T)),y(0xe,(0x0,r[_0x313905(0xe6)])(C))],z);let B=class extends I{constructor(_0x304146,_0x2f0804,_0x119760,_0x5b878f,_0x566668,_0x191dec,_0x152dcc,_0x19e659,_0xa5a3,_0x3ed1b9,_0x1758d5,_0x3a9ef8,_0x1b9a43,_0x29d03f){const _0x5cfaa3=_0x313905;super(_0x304146,_0x119760,_0x2f0804,_0x5b878f,_0x566668,_0x191dec,_0x152dcc,_0x19e659,_0xa5a3,_0x3ed1b9,_0x1758d5,_0x3a9ef8,_0x1b9a43,_0x29d03f),this['unitID']=_0x304146,this[_0x5cfaa3(0x133)]=_0x2f0804;}async[_0x313905(0x32a)](){const _0x2916c7=_0x313905;let _0xbe81b0=await super[_0x2916c7(0x32a)]();return this[_0x2916c7(0x25e)](this[_0x2916c7(0x281)][_0x2916c7(0x2ef)]((_0x842a30,_0x1f4444)=>{const _0x3903ea=_0x2916c7;if(_0x842a30[_0x3903ea(0x133)]!==r[_0x3903ea(0x186)][_0x3903ea(0x437)]||_0x1f4444!=null&&_0x1f4444[_0x3903ea(0x1fb)]||_0x1f4444!=null&&_0x1f4444[_0x3903ea(0x409)])return;let _0x2e7cd6=_0x842a30[_0x3903ea(0x1a1)];if((_0x2e7cd6==null?void 0x0:_0x2e7cd6[_0x3903ea(0x39a)])!==this[_0x3903ea(0x181)])return;let _0xbcc1b6=_0x842a30,_0x242b3=this[_0x3903ea(0x407)][_0x3903ea(0x45e)]['fetchThroughInterceptors'](this[_0x3903ea(0x407)][_0x3903ea(0x45e)][_0x3903ea(0x22d)]()[_0x3903ea(0x192)])([_0xbcc1b6],this['_univerInstanceService'])||[_0xbcc1b6];this[_0x3903ea(0xac)](_0x242b3[0x0]);})),_0xbe81b0;}};B=b([y(0x3,(0x0,r['Inject'])(r[_0x313905(0xdf)])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r['Inject'])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n['RevisionService'])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,r['ICommandService']),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],B);let V=class extends I{constructor(_0x2edecc,_0x49b46c,_0x1c220b,_0x2a5902,_0x724bfc,_0x3e42e7,_0x222add,_0x4094c8,_0x1afcd4,_0x1c49a1,_0x3c652b,_0x2f55e2,_0x1a4293,_0x1abd0e){const _0x2ae21b=_0x313905;super(_0x2edecc,_0x1c220b,_0x49b46c,_0x2a5902,_0x724bfc,_0x3e42e7,_0x222add,_0x4094c8,_0x1afcd4,_0x1c49a1,_0x3c652b,_0x2f55e2,_0x1a4293,_0x1abd0e),this[_0x2ae21b(0x181)]=_0x2edecc,this['type']=_0x49b46c;}async[_0x313905(0x32a)](){const _0x430bcd=_0x313905;let _0xbceb43=await super['_init']();return this[_0x430bcd(0x25e)](this[_0x430bcd(0x281)][_0x430bcd(0x2ef)]((_0x311f21,_0x1c3771)=>{const _0xf3f5f7=_0x430bcd;if(_0x311f21[_0xf3f5f7(0x133)]!==r['CommandType'][_0xf3f5f7(0x437)]||_0x1c3771!=null&&_0x1c3771[_0xf3f5f7(0x1fb)]||_0x1c3771!=null&&_0x1c3771['onlyLocal'])return;let _0x43573a=_0x311f21[_0xf3f5f7(0x1a1)];if((_0x43573a==null?void 0x0:_0x43573a[_0xf3f5f7(0x39a)])!==this[_0xf3f5f7(0x181)])return;let _0x55a3da=_0x311f21,_0x489f02=this[_0xf3f5f7(0x407)][_0xf3f5f7(0x45e)][_0xf3f5f7(0x247)](this['_compressMutationService'][_0xf3f5f7(0x45e)][_0xf3f5f7(0x22d)]()['COMPRESS_MUTATION_SEND'])([_0x55a3da],this[_0xf3f5f7(0x121)])||[_0x55a3da];this[_0xf3f5f7(0xac)](_0x489f02[0x0]);})),_0xbceb43;}};function _0x247d(){const _0x459dbf=['base-ui.attachment-io.service','saveSnapshot','code','_transformSelections','9303ghQnit','PERSON','toggleOffline','_getDownloadEndpointURL','onRemoteAck','online','subType','ERROR_IMAGE_TYPE','_clearTimeoutTimer','CollaborationEvent','RevisionService','_clearTimer','_onUserJoin','AddSlidePageMutation','ackTimeout','close','csAckEvent','_changesetResend$','getCfgEnableObjInherit','_rebaseUnchangedAttributes','getFocusedUnit','loadOfflineData','missing','close$','endpoint','_transformRemoteChangesetByIMECache','len','JOIN_ROOM_FULL','_lockTransition','_type','c1Prime','ack_timeout','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[FetchMissState]','_handleRemoteChangesets','_memberService','_identity','routeKey','COMMENT_UPDATE','sendHeartbeatTimer','event$','save\x20fail\x20reason\x20is\x20','onMutationExecutedForCollab','transformChangesets','_httpService','_entities','Rectangle','ImageSourceType','supports','collaboration-client.config','_members','_queuedRemoteChangesets','_onConnectionFailed','_clearRedo','_clearRetryConnectingTimer','patch','_fetchMissChangesets','_getUndoStack','/-/object/-/batch_allowed','collaboration_new_changeset','encrypt','_transformStateCache','stream','_getUnitPermissionPoints','resent\x20changeset\x20','unitLoaded$','mapDocumentTypeToUniverInstanceType','[CollaborationState]:\x20apply\x20error!','FetchingMissState','PERMISSION_REJ','getOwnPropertyDescriptor','LICENSE_EDITING_CONNECTIONS_EXCEEDED','startIndex','endpointKey','attempt','includes','getAllMembers','stopTime','_sheetTransformSelectionsService','/fetchmissing?from=','UNIVER_BASE','unitId\x20is\x20not\x20found','UNIVER_COLLABORATION_CLIENT_PLUGIN','_onLicenseRejected','isArray','_incrementRevisionNumber','object','/allowed','post','_undoRedoService','result','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','stringify','_createHandler','resend','encodeURIComponent','maxChangesetAckTimeout','_initRequestHeader','/universer-api/uniscript','/object/','onTransformRemoteChangesetByIMECache','_init','_firstSentAt','_unitLoaded$','IAttachmentIoService','CollaborationImageIoService','PSEUDO_FETCH_MISSING_RESULT','retryCount','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_HTTPService','Disposable','SheetTransformSelectionsService','data','SNAPSHOT_URL_KEY','_getUploadFileURL','createSocket','UPDATE_CURSOR','_createChangesetSubmitter','deepClone','SyncedState','?size=','OfflineState','_pendingReason','putCollaborators','UNIVER_PDF','EmptyMutationInfo','_transformUndoredo','_socketMessageSubscription','46NcnBkV','LEAVE','CollaborationUIEventService','liveShareNewHost','resolveUnit','info','getTypeOfUnitAdded$','ThresholdInterceptorFactory','retry-after','_eventService','BehaviorSubject','_imageSourceCache','ignored\x20acknowledgement\x20of\x20revision\x20','_timer','addImageSourceCache','onMissing','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','transformMutationsWithChangeset','downloadEndpointUrl','&assign=','status$','getMemberID','1518gRyNiG','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','blockRanges','onTransformRemoteChangesetByStateCache','/universer-api/comb','WorkbookEditablePermission','_telemetryService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','socket$','ws://127.0.0.1:8000/universer-api/comb/connect','&to=','sendChangesetTimeout','revert','clearUnit','_clearHandshakeTimer','rev','JOIN_ROOM_FAILED','1902819eOqCuV','_startCollaboration','appendMutation','onSyncEditingCollabCursor','JOINING','ILocalCacheService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','COMPRESS_MUTATION_APPLY','_getSendChangesetTimeout','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getPath','Inject','NEW_CHANGESETS','symbol','synced','ERROR_EXCEED_SIZE','_sessions','parseChangesetToProtocol','_collaborationUIEventService','1.3.1','RxDisposable','JOIN','[PendingState]:\x20received\x20rejection.','[CollaborationSessionService]:\x20socket\x20error','onTransformIME','takeUntil','/universer-api/user/session-ticket','online$','onLocalMutation','coverType','listCollaborators','_tryReconnect','awaitingChangeset','_createInitialStateImpl','collaborators','RETRY_CONNECTING_MAX_COUNT','AuthzIoHttpService','_startTelemetryCollaborationNewChangeset','liveShareOperation','RemoteChangesetApplyError','DEFAULT_WS_SESSION_TICKET_URL','complete','ImageUploadStatusType','_change$','MSG_FOR_ERROR','permissionRejEvent','unitId','subUnitId','FileSource','avatar','updateCursorEvent','objectType','_config','onStarting','keys','FETCH_MISS','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','file','allowed','bind','ICollaborationSocketService','conflict','AWAITING_WITH_PENDING','setConfig','getCurrentUser','_conflict$','has','localChanges','waitForRoom$','getUnit','LIVESHARE_NEW_HOST','FETCH_MISSING','registerHTTPInterceptor','joinEvent','awaiting','onMissedChangesetFetched','snapshot','_closedUnits','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','catch','resolveWithBasePath','readyForCollab','commit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_classifyRemoteChangeset','_getSignURL','create','executeCommand','RETRY_CONNECTING_MAX_COUNT_KEY','override','_showConflictProcessingNotification','hostname','getUnitType','ChangesetSubmitter','reason','_networkConditionService','CHANGESET_SHOULD_RETRY','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','MentionType','ITransformService','_pendingSessions','find','_getLoginPath','entityInit$','LIVESHARE_FETCH_OPERATIONS','unitDisposed$','_onMessage','getRoom','SnapshotServerOverHTTPService','columnGroups','_rescheduleHeartbeat','[SyncedState]:\x20received\x20acknowledgement.','responseType','HTTPResponseError','ISocketService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','_entityInit$','floor','compose','UNIVER_SLIDE','shouldCloseConn','HELLO','roles','PendingState','_substituteUndoStack','ONLINE','createCollaborator','_singleActiveUnitService','_permissionService','OTHER_CLIENTS_EDITING','_isAckOfAwaitingChangeset','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getLatestCsReqIdBySid','_adapter','getCurrentRevOfUnit','SUBMIT_CHANGESET_TIMEOUT','UnitStatus','_now','__splitChunk__','_pendingMutations','ICollaborationClientAdapterService','_disposed','COLLABORATION_ENDPOINT_INVALID','\x20failed:\x20','sid','&source=','_send','getUnitId','retryConnectingTimer','_socketService','_listenToNetworkCondition','_toPending','changesetAckTimeout','_applyRemoteChangeset','_compressMutationService','_status$','onlyLocal','RemoteRevertError','CollaborationSessionService','Tools','prototype','INGEST','docStateChange$','OTHER_CLIENT_EDITING','_doCreateSocket','_transitionLocked','@univerjs-pro/collaboration-client','_clearHeartbeatTimer','deserializeToCombResponse','_filterTableActions','_createSocket','timeoutTimer','isInternalEditorID','diffValue','name','_transformAndApply','9240453HXOBIe','_transformAndApplyRemoteChangeset','unbind','UNISCRIPT_RUN','onApply','_acknowledgedAwaitingRevision','findIndex','\x20to\x20','apply','debug','connection\x20error','origin','_onRemoteRetry','workbook','dispose$','_commentService','_initUnitPermissionChange','_updateState','_collaborationPaused','_onOffline','tables','onMissingChangesets','onRemoteRevert','c2Prime','connectionAttempt','_submitChangeset','MUTATION','paragraphId','/universer-api/snapshot/','_submitter','updatePermissionPoint','getGlobalObject','CollaborationController','focused$','_clearScheduledTask','loginUrlKey','_event$','_shouldReportTelemetry','_snapshotServerService','deleteCollaborator','now','onRemoteRej','_countResend','getCollabEntity','writeAtPath','closeSession','_resend','Univer','session','splice','_sendingTimer','href','/collaborator','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','utf8ToBytes','UNIVER_BOARD','changeset_rejected','IAuthzIoService','_replaceFileID','textEncoder','unitType','change$','submit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','initWorkbookPermissionChange','interceptor','_telemetryInfo','_exhaustRemoteChangesetQueue','Module','_unitInfo$','_members$','[AwaitingWithPendingState]','actions','readCursor','_onLocalMutation','_onConflict','[CollaborationUndoRedoService]','DataLoaderService','onConflict','IUndoRedoService','isObject','some','localUnitId','_transformRemoteChangesetByStateCache','transformStack\x20failed!','Subject','init','next','350ZRgDFl','IUniverInstanceService','_rejectionInfo','unsubscribe','_onFetchMissResult','defineProperty','HEARTBEAT_TIMEOUT','_createInitialState','MemberService','BaseCollaborationEntity','decorate','hasOwnProperty','_dropAcknowledgedAwaiting','every','_conflictInfoFromError','_stopTelemetryCollaborationNewChangeset','/universer-api/stream/file/upload','_joinRoom','_options','location','unitInfo$','_tryEnsureSocket','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','pending','resolve','UniverInstanceType','retryConnectingInterval','packageName','reject','UnitEmbedded','/-/object/list','armAckTimeout','_userManagerService','_authzIoService','__Key__','delay','Injector','_localeService','_socket','IImageIoService','SlideCollaborationEntity','RECV','get','Optional','deleteProperty','updateMember','_getRedoStack','editing\x20status\x20changed\x20to','IDLE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','POST','JOIN_ROOM_NOT_EXISTS','_onCombEvent','loadDoc','objectActions','forEach','message$','_undoStacks','reconnect','getSnapshot','socket\x20open.','\x20in\x20_schedule.','toDisposable','CHANGESET_REJ','\x0aAfter:\x20','NO_OTHER_CLIENTS_EDITING','getAllPermissionPoint','transformUndoRedo','onRemoteRetry','push','RemoveSlidePageMutation','localCacheService','[CollaborationSessionService]','_throwTelemetryCollaborationNewChangeset','_instanceService','sessionStatus$','ignored\x20rejection.','stale','_ackTimeout','_revisionService','_awaitingChangeset','upload','onload','_retryBackoff','objects','6971wNTssF','NOT_COLLAB','_changesetSessionId','_retryReason','_onJoinRoomEvent','string','emitEvent','_remoteChangesetQueue','_transformHistoryMutations','_syncEditingCollabCursor','_socketChannels','UnitObject','getLocalCacheKey','onCommentUpdate','onRemoteChangeset','/new_changes','_univerInstanceService','getSnapshotAPIPath','CombCmd','SOCKET_FAILED','SheetPermissionInitController','userID','_roomMembers','constructor','_loadUnit','nextDelayMs','_onConnectionOpen','_changesetReqId','6648kqMJJw','updatePermissionObjEvent','_toggleOnline','number','reqId','IPermissionService','type','USERS_LEAVE','registerDependencies','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getCollabEntities','ITelemetryService','_sessionStatus$','IContextService','LICENSE_DOMAIN_REJECTED','updateSnapshot','_getConfig','body','saveChangeset','socket\x20close','[UniverCollaborationClientPlugin]','OBJECT_PERMISSION_CONFIG_KEY','missingChangesets','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initMergeInterceptor','_handler','_commentUpdate$','_transformStack','session.join-failed','_toSynced','fromCharCode','getUploadOptions','/resources','HTTPEventType','InsertSheetMutation','_updateStatus','objectID','Response','reverse','startTime','UNIVER_SHEET','fetchMissingChangesets','getCollabEntity$','SHOULD_CLOSE_CONN','getAttachmentUrl','_isEchoedAwaitingChangeset','call','sessionStatus','CHANGESET_ACK','createIdentifier','timeout','CollaborationStatus','Quantity','OFFLINE','univer-pro.collaboration-client-adapter-service','_transit','onTransformState','/unit/','_onRemoteRejected','_onRecvEvent','members$','Workbook','DependentOn','_getSocketChannel','take','LOCAL_CACHE_INTERVAL','7286058GjLyKh','_updateUnitPermissionPoint','unknown','addHandlerCallback','_initDependencies','accept','_state$','_onRemoteChangeset','CmdRspCode','confirm','People','_waitCount','_classifyAck','getUnitStatus$','SetSelectionsOperation','range','getWorkbookSelections','map','unitID','UpdateDocsAttributeType','replace','values','paragraph','CommandType','size','requestRetry','SUBMIT_CHANGESET','_replayCachedMutations','ErrorCode','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','elapsedMs','action','refreshUnit','memberID','slice','COMPRESS_MUTATION_SEND','echo','isTransformMutationsWithChangesetSuccess','[OfflineState]','applied','commentUpdateEvent','_removeRoom','baseRev','isCompositionEnd','maxSize','saveImage','ack_of_awaiting','REPLACE','target','reduce','params','fetching\x20missing\x20changesets\x20from\x20','collaboratorID','HTTPService','_disableEditing','onTransformSelections','_transformService','/object','conflict$','changesets','pluginName','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','toLocal','_updateLocalCache','onSendChangeset','setCfgEnableObjInherit','_acknowledgeAwaiting','DocStateChangeManagerService','append','leaveEvent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','concatMap','generateRandomId','function','_unsyncedMutationCount','onPrepareTransformSelections','updateOfflineData','USERS_ENTER','UniverCollaborationClientPlugin','remote_revert','traverse','clearOfflineData','_logService','_attempt','HEARTBEAT','startsWith','filter','_emitMembers','_getAPIPrefix','should_retry','subscribe','candidateSocket','objectPermissionTypes','DRAWING_IMAGE_ALLOW_IMAGE_LIST','getTime','_decreaseWaiting','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','RichTextEditingMutation','OPTIONAL','CompressMutationService','x-univer-host','merge','clear','_rebaseParagraphHistory','isTransformMutationsWithChangesetFailure','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','not_collab','asObservable','PdfCollaborationEntity','ISnapshotServerService','_refreshUnitPermission','_reqId','loadBoard','[PendingState]:\x20received\x20acknowledgement.','createUniverCollaborationAdapter','_getAPIPrefixPath','UUID','_clearUndo','/block/','_sessionChannels','{fileID}','_hasSessionsForEndpoint','_requestMissingChangesets','LocaleService','CLOSE_ROOM','endsWith','onChangesetResend','hasWritePending','pauseCollaboration','changeset','_notifyResend','firstValueFrom','SOCKET_FAILED_RETRY','subject','getTypeOfUnitDisposed$','length','mergeOverrideWithDependencies','SheetsSelectionsService','removeMember','send','fromCollab','_scheduleCompleteTimestamp','objectId','_collabSessionService','_prepareConflictRecovery','ignored\x20remote\x20changeset\x20of\x20revision\x20','url','ignored\x20stale\x20ack\x20of\x20revision\x20','_registerDependencies','isTransformChangesetsSuccess','resendTimeouts','_sendToken','48836gRjYbI','TextXActionType','INetworkConditionService','_toggleOffline','LIVESHARE_TERMINATE','_substituteRedoStack','CONFLICT_CACHE_CLEAR_FAILED','delete','csRejEvent','[CollaborationSocketService]','_onRemoteACK','onResend','b64DecodeUnicode','[CollaborationEntity]','textRanges','_acknowledgeAwaitingIfReady','_invertDocumentHistory','CONFLICT','batchAllowed','uploadFileServerUrl','setShowComponents','IConfigService','/universer-api/file/{fileID}/sign-url','HTTPRequest','UPDATE_PERMISSION_OBJ','loadBase','_nextDelay','enableCollaboration','socketService','UserManagerService','csShouldRetryEvent','CollaborationSession','DEFAULT_FILE_NAME','telemetry\x20info\x20is\x20not\x20initialized','permission_rejected','_resolveSessionIdentity','originalMeta','_executeRemoteChangeset','getInterceptPoints','[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.','title','setWaitCount','offline','parseProtocolChangeset','LIVESHARE_REQUEST_HOST','readAsDataURL','state','default','getMember','newCsEvent','infoRsp','mutations','[DataLoaderService]','Slide','saveSheetBlock','JSON1','getImage','_collaborationSessionService','132530nRepUE','withCredentials','socketSubscription','awaiting_with_pending','set','createInstance','fetchThroughInterceptors','m2Prime','CollaborationUIEventId','pipe','add','message','LocalUndoRedoService','authzUrl','RevertRevisionMutation','_upload','getSheetBlock','CollaborativeUndoRedoService','loadSlide','\x20at\x20revision\x20','error$','transformSelections','MergeInterceptorFactory','handshakeTimer','Board','_cfgEnableObjInherit','_maxAckTimeout','getUnitOnRev','_state','disposeWithMe','CONFLICT_PROCESSING','isNoop','uuidv4','_deliver','_roomCreated$','Failed\x20to\x20update\x20permission\x20point','status','fetchMiss','text-x','_localCacheService','writeCursor','ILogService','_sendHeartbeat','_detachSubmitter','_waitForHeartbeatResponse','resourceIDs','SUCCUSS','copyFileMeta','_onRequestFailed','headers','/universer-api/authz','revision','DEFAULT_ACK_TIMEOUT','getCurrentSelections','HEARTBEAT_INTERVAL','_initCloseConn','SheetCollaborationEntity','PENDING','JSONX','toString','collabWebSocketUrl','concatBytes','_loadSnapshot','eventID','_commandService','SYNCED','MAX_ACK_TIMEOUT','fetch_missing','JOIN_ROOM_PERMISSION_DENIED','license_editing_connections_exceeded','error','_dispatchRemoteChangeset','session.room-cnt-exceeds','[CollaborationSession]','getValue','update','closed','_getCurrentRevision','charCodeAt','iterator','localeService','getConfig','_docStateChangeManagerService','cfgEnableObjInherit','_source','ICommandService','FileId','from','sort','cmd','state$','_handlerCallback',',\x20attempt\x20','BASE64','_disposeSubmitter','refreshPermission','open$','_injector','touchDependencies','min','paragraphs','ObjectPermissionService','dispose','toggleOnline','LIVESHARE_OPERATION','max','Subscription','_schedule','_prepareTransformSelections','selections','/rev/','UNIVER_DOC','randomBytes','socketReady','LOCAL_CACHE_INTERVAL_KEY','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','univer-pro.collaboration-client.network-condition.service','ERROR_IMAGE','license_unit_type_rejected','_remoteRevertInfo','getResourcesRequest','enableAuthServer','unit','_snapshotService','ISingleActiveUnitService','_configService','then','INSERT'];_0x247d=function(){return _0x459dbf;};return _0x247d();}V=b([y(0x3,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x4,(0x0,r['Inject'])(n['CompressMutationService'])),y(0x5,(0x0,r['Inject'])(r['LocaleService'])),y(0x6,(0x0,r['Inject'])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r['ILogService']),y(0xa,r['ICommandService']),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r['Optional'])(C))],V);let H=class extends I{constructor(_0x559b48,_0xf43875,_0x1a9527,_0xa53609,_0x50ba6b,_0x4e5ae1,_0xfb9056,_0xa9d3de,_0x2cdc49,_0x5522e7,_0xf1800d,_0x447b2c,_0x448a1b,_0x1bdc13){const _0x2e6061=_0x313905;super(_0x559b48,_0x1a9527,_0xf43875,_0xa53609,_0x50ba6b,_0x4e5ae1,_0xfb9056,_0xa9d3de,_0x2cdc49,_0x5522e7,_0xf1800d,_0x447b2c,_0x448a1b,_0x1bdc13),this[_0x2e6061(0x181)]=_0x559b48,this[_0x2e6061(0x133)]=_0xf43875;}async[_0x313905(0x32a)](){const _0x53ec08=_0x313905;let _0x4b758e=await super[_0x53ec08(0x32a)]();return this[_0x53ec08(0x25e)](this[_0x53ec08(0x281)][_0x53ec08(0x2ef)]((_0x4a433a,_0x31d53d)=>{const _0xf7b4d5=_0x53ec08;if(_0x4a433a[_0xf7b4d5(0x133)]!==r[_0xf7b4d5(0x186)]['MUTATION']||_0x31d53d!=null&&_0x31d53d[_0xf7b4d5(0x1fb)]||_0x31d53d!=null&&_0x31d53d[_0xf7b4d5(0x409)])return;let _0x53f92b=_0x4a433a[_0xf7b4d5(0x1a1)];if((_0x53f92b==null?void 0x0:_0x53f92b[_0xf7b4d5(0x39a)])!==this[_0xf7b4d5(0x181)])return;let _0x5f5d93=_0x4a433a,_0x39f847=this['_compressMutationService'][_0xf7b4d5(0x45e)][_0xf7b4d5(0x247)](this[_0xf7b4d5(0x407)][_0xf7b4d5(0x45e)][_0xf7b4d5(0x22d)]()[_0xf7b4d5(0x192)])([_0x5f5d93],this['_univerInstanceService'])||[_0x5f5d93];this[_0xf7b4d5(0xac)](_0x39f847[0x0]);})),_0x4b758e;}};H=b([y(0x3,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r['Inject'])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r['ILogService']),y(0xa,r['ICommandService']),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],H);const Ge=(0x0,r[_0x313905(0x15e)])(_0x313905(0x2b5));function Ke(_0x6fb1c8){const _0xb4fccf=_0x313905;let _0x22896c=_0x6fb1c8[_0xb4fccf(0x335)],_0x2bd456=JSON['parse'](_0x22896c);switch(_0x2bd456['cmd']){case o[_0xb4fccf(0x123)][_0xb4fccf(0x1c3)]:case o['CombCmd'][_0xb4fccf(0x3e6)]:{let _0x1e06dc=_0x2bd456[_0xb4fccf(0x239)];return{..._0x2bd456,'data':_0x1e06dc,'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case o['CombCmd']['JOIN']:{let _0x55d51e=_0x2bd456['joinRsp'];return{..._0x2bd456,'data':_0x55d51e,'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case o[_0xb4fccf(0x123)][_0xb4fccf(0xe4)]:{let _0x41b9c8=_0x2bd456['collaMsg'];switch(_0x41b9c8[_0xb4fccf(0x280)]){case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x30a)]:{let {cs:_0x49f573,code:_0x2a4596,reason:_0x3f309f}=_0x41b9c8[_0xb4fccf(0x399)]??{};return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x49f573,'code':_0x2a4596,'reason':_0x3f309f},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case n['CollaborationEvent'][_0xb4fccf(0x15d)]:var _0x271f4c;return{..._0x2bd456,'data':{..._0x41b9c8,'data':(_0x271f4c=_0x41b9c8[_0xb4fccf(0x2d5)])==null?void 0x0:_0x271f4c['cs']},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x378)]:var _0x5355ff;return{..._0x2bd456,'data':{..._0x41b9c8,'data':(_0x5355ff=_0x41b9c8[_0xb4fccf(0x238)])==null?void 0x0:_0x5355ff['cs']},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0xfb)]:{let {cs:_0x3959cc,code:_0x400f3e,reason:_0x15f583}=_0x41b9c8[_0xb4fccf(0x20f)]??{};return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x3959cc,'code':_0x400f3e,'reason':_0x15f583},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x3cc)]:{let {cs:_0x58081a,code:_0x3d0981,reason:_0x3f725c}=_0x41b9c8[_0xb4fccf(0x225)]??{};return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x58081a,'code':_0x3d0981,'reason':_0x3f725c},'cmd':_0x2bd456['cmd']};}case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x339)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x39e)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent'][_0xb4fccf(0x1bc)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x3b5)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x134)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x1b4)]},'cmd':_0x2bd456['cmd']};case n['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x348)]},'cmd':_0x2bd456['cmd']};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x3d4)]:case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x2a9)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x392)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x348)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent'][_0xb4fccf(0x398)]:return{..._0x2bd456,'data':_0x41b9c8,'cmd':_0x2bd456['cmd']};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x2eb)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x197)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x21f)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x12e)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x158)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x3e5)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent'][_0xb4fccf(0x420)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8['uniscriptRunEvent']},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};default:return _0x2bd456;}}default:return _0x2bd456;}}function qe(_0x10c08b){const _0x3d21d7=_0x313905;switch(_0x10c08b[_0x3d21d7(0x29a)]){case o[_0x3d21d7(0x123)][_0x3d21d7(0x1c3)]:case o[_0x3d21d7(0x123)]['HELLO']:return JSON[_0x3d21d7(0x321)]({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b[_0x3d21d7(0x2ea)]});case o[_0x3d21d7(0x123)]['INGEST']:{let _0x509548;switch(_0x10c08b[_0x3d21d7(0x335)]['eventID']){case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x339)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x339)],'updateCursorEvent':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)]['USERS_LEAVE']:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x134)],'leaveEvent':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x1bc)]:_0x509548={'eventID':n['CollaborationEvent'][_0x3d21d7(0x1bc)],'joinEvent':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n['CollaborationEvent'][_0x3d21d7(0x3b2)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x3b2)],'liveShareNewHost':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x2a9)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x2a9)],'liveShareOperation':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)]['LIVESHARE_TERMINATE']:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x20b)],'liveShareTerminate':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n['CollaborationEvent'][_0x3d21d7(0x233)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x3d4)]:_0x509548={'eventID':n['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x509548={'eventID':_0x10c08b['data'][_0x3d21d7(0x280)]};}return JSON[_0x3d21d7(0x321)]({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b[_0x3d21d7(0x2ea)],'collaMsg':_0x509548});}case o[_0x3d21d7(0x123)][_0x3d21d7(0x381)]:return JSON['stringify']({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b[_0x3d21d7(0x2ea)],'joinReq':_0x10c08b[_0x3d21d7(0x335)]});case o['CombCmd'][_0x3d21d7(0x346)]:return JSON['stringify']({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b['routeKey'],'leaveReq':_0x10c08b[_0x3d21d7(0x335)]});default:throw Error(_0x3d21d7(0x3ba));}}const Je=(0x0,r[_0x313905(0x15e)])('univer-pro.collaboration-client-socket-service');function Ye(_0x1d7251,_0x3c9638,_0x38d4d4){const _0x1f0c25=_0x313905;return _0x1d7251+'/'+_0x3c9638+_0x1f0c25(0x166)+_0x38d4d4+_0x1f0c25(0x120);}let Xe=class extends r[_0x313905(0x333)]{constructor(_0x42397f,_0x5ee96f,_0x443d51,_0x439501,_0x2fbe15){const _0x597168=_0x313905;super(),this['_injector']=_0x42397f,this[_0x597168(0x2f1)]=_0x5ee96f,this[_0x597168(0x2be)]=_0x443d51,this[_0x597168(0x1c1)]=_0x439501,this['_snapshotServerService']=_0x2fbe15;}[_0x313905(0x411)](_0xba6213){const _0x4bb5ce=_0x313905;let _0x36ac4a=this['_injector'][_0x4bb5ce(0xe5)](e[_0x4bb5ce(0x3de)]);if(!_0x36ac4a)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x244179=_0x36ac4a[_0x4bb5ce(0x338)](_0xba6213);if(!_0x244179)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x961578=new r['DisposableCollection'](),_0x26f8ff=new t[(_0x4bb5ce(0xb7))]();_0x961578[_0x4bb5ce(0x24b)](_0x244179[_0x4bb5ce(0x2dc)]['subscribe'](_0x2a48a6=>_0x26f8ff['next'](_0x2a48a6))),_0x961578[_0x4bb5ce(0x24b)]((0x0,r[_0x4bb5ce(0xfa)])(()=>_0x26f8ff[_0x4bb5ce(0x395)]()));let _0x3b2ec6=new t[(_0x4bb5ce(0xb7))]();_0x961578[_0x4bb5ce(0x24b)](_0x244179[_0x4bb5ce(0x255)][_0x4bb5ce(0x1c9)](_0x8d6f10=>_0x3b2ec6[_0x4bb5ce(0xb9)](_0x8d6f10))),_0x961578[_0x4bb5ce(0x24b)]((0x0,r[_0x4bb5ce(0xfa)])(()=>_0x3b2ec6[_0x4bb5ce(0x395)]()));let _0x215dd7=new t['Subject']();_0x961578[_0x4bb5ce(0x24b)](_0x244179[_0x4bb5ce(0xf4)]['subscribe'](_0x91c264=>{const _0x5bf454=_0x4bb5ce;let _0x2bb756=Ke(_0x91c264);_0x215dd7[_0x5bf454(0xb9)](_0x2bb756);})),_0x961578[_0x4bb5ce(0x24b)]((0x0,r[_0x4bb5ce(0xfa)])(()=>_0x215dd7[_0x4bb5ce(0x395)]()));let _0x104239,_0x3b7c97=()=>{const _0x177585=_0x4bb5ce;_0x3b2ec6[_0x177585(0xb9)](new Event(_0x177585(0x427))),_0x26f8ff['next'](new Event(_0x177585(0x427))),_0x104239[_0x177585(0x2d4)]();};return _0x104239={'memberID':'','close$':_0x26f8ff[_0x4bb5ce(0x1da)](),'error$':_0x3b2ec6[_0x4bb5ce(0x1da)](),'open$':_0x244179['open$'],'message$':_0x215dd7[_0x4bb5ce(0x1da)](),'send':(_0x49ea37,_0x583e1d)=>{const _0x282490=_0x4bb5ce;if(_0x49ea37[_0x282490(0x29a)]===o['CombCmd'][_0x282490(0x40e)]){if(_0x49ea37[_0x282490(0x335)][_0x282490(0x280)]===n[_0x282490(0x2ce)]['SUBMIT_CHANGESET']){let _0x22c1f0=this[_0x282490(0x436)](_0x104239,_0x49ea37[_0x282490(0x335)],(_0x583e1d==null?void 0x0:_0x583e1d['timeout'])??0x1d4c0);return _0x22c1f0[_0x282490(0x3bb)](()=>void 0x0),_0x22c1f0;}if(_0x49ea37[_0x282490(0x335)]['eventID']===n[_0x282490(0x2ce)][_0x282490(0x3b3)]){let _0x1f293e=_0x49ea37['data'];this['_fetchMissChangesets'](_0x1f293e)[_0x282490(0x2bf)](_0x4b3d06=>{const _0x4f234f=_0x282490;_0x215dd7[_0x4f234f(0xb9)]({'cmd':o[_0x4f234f(0x123)][_0x4f234f(0xe4)],'code':o['CmdRspCode']['OK'],'routeKey':_0x1f293e[_0x4f234f(0x335)][_0x4f234f(0x181)],'routeType':'','data':{'eventID':n['CollaborationEvent'][_0x4f234f(0x32f)],'data':{'changesets':_0x4b3d06}}});})[_0x282490(0x3bb)](_0x1da592=>{const _0x4c359b=_0x282490;this[_0x4c359b(0x1c1)][_0x4c359b(0x287)](_0x1da592),_0x3b7c97();});return;}}_0x244179['send'](qe(_0x49ea37));},'close':()=>{const _0x2d69f8=_0x4bb5ce;_0x244179[_0x2d69f8(0x2d4)](),_0x961578[_0x2d69f8(0x2a7)]();}},_0x104239;}[_0x313905(0x436)](_0xa37985,_0x439edf,_0x166c22){const _0x46270a=_0x313905;let {unitType:_0x52c199,unitID:_0x677923,changeset:_0x62740e}=_0x439edf[_0x46270a(0x335)],_0x532984={'unitID':_0x677923,'memberID':_0xa37985[_0x46270a(0x190)],'type':_0x52c199,'changeset':(0x0,n[_0x46270a(0x37d)])(_0x62740e)},_0x44817a=this[_0x46270a(0x2be)][_0x46270a(0x292)](m),_0x47ea99=Ye((_0x44817a==null?void 0x0:_0x44817a['collabSubmitChangesetUrl'])??_0x46270a(0x35f),_0x52c199,_0x677923);return(0x0,t[_0x46270a(0x1f2)])(this[_0x46270a(0x2f1)][_0x46270a(0x303)](_0x46270a(0xee),_0x47ea99,{'body':_0x532984})['pipe']((0x0,t[_0x46270a(0x1c5)])(_0x301a7a=>_0x301a7a[_0x46270a(0x133)]===e[_0x46270a(0x14e)][_0x46270a(0x152)]),(0x0,t[_0x46270a(0x15f)])(_0x166c22)))[_0x46270a(0x2bf)](()=>void 0x0,_0x3a5d53=>{const _0xed8c3b=_0x46270a;throw this[_0xed8c3b(0x1c1)]['warn'](_0xed8c3b(0x210),'submitting\x20changeset\x20'+_0x62740e[_0xed8c3b(0x3fd)]+':'+_0x62740e[_0xed8c3b(0x131)]+_0xed8c3b(0x3fc)+Ze(_0x3a5d53)),_0x3a5d53;});}async[_0x313905(0x2fd)](_0xdafa40){const _0x47c086=_0x313905;let {unitID:_0x1e7c16,from:_0xb0d011,to:_0x294d80,unitType:_0x461c65}=_0xdafa40[_0x47c086(0x335)];return(await this[_0x47c086(0x443)][_0x47c086(0x156)]({'metadata':void 0x0},{'unitID':_0x1e7c16,'type':_0x461c65,'from':_0xb0d011,'to':_0x294d80}))['changesets'][_0x47c086(0x180)](_0x5ad265=>((_0x5ad265[_0x47c086(0x23a)]===null||_0x5ad265[_0x47c086(0x23a)]===void 0x0)&&(_0x5ad265[_0x47c086(0x23a)]=[]),_0x5ad265));}};Xe=b([y(0x0,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x1,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)])),y(0x2,r['IConfigService']),y(0x3,r[_0x313905(0x26a)]),y(0x4,n['ISnapshotServerService'])],Xe);function Ze(_0x44cd93){const _0x5ca2d2=_0x313905;return _0x44cd93 instanceof e[_0x5ca2d2(0x3dd)]?'HTTP\x20'+(_0x44cd93['status']??0x0):_0x44cd93 instanceof Error?_0x44cd93[_0x5ca2d2(0x41b)]:String(_0x44cd93);}const Qe=(0x0,r[_0x313905(0x15e)])(_0x313905(0x163));function $e(_0x281b29={}){const _0x235b7c=_0x313905;return _0x281b29[_0x235b7c(0x349)]?{'resolveUnit':_0x281b29[_0x235b7c(0x349)]}:{'resolveUnit':_0xf0408f=>({'target':{'unitId':_0xf0408f['unitId'],'unitType':_0xf0408f[_0x235b7c(0x459)]}})};}function et(_0x3d0f13,_0x3cb93a,_0x5088e5){const _0x3aa788=_0x313905;let _0x2939eb=_0x5088e5[_0x3aa788(0x19f)][_0x3aa788(0x2dd)];if(_0x2939eb!=null&&_0x2939eb['trim']()==='')throw Error(_0x3aa788(0x3fb));if(!_0x5088e5[_0x3aa788(0x19f)]['unitId'])throw Error(_0x3aa788(0x45c));return{'localUnitId':_0x3d0f13,'unitType':_0x3cb93a,'target':{'endpoint':_0x2939eb,'unitId':_0x5088e5['target'][_0x3aa788(0x39a)],'unitType':_0x5088e5['target']['unitType']??_0x3cb93a},'changeset':_0x5088e5['changeset']};}let U=class extends r['Disposable']{constructor(_0x425a8d,_0x5c927c,_0x4cea7a,_0x53e446,_0x2971bd,_0x3d72b7){const _0x4be885=_0x313905;super(),this[_0x4be885(0x2a2)]=_0x425a8d,this[_0x4be885(0x1c1)]=_0x5c927c,this[_0x4be885(0x2be)]=_0x4cea7a,this[_0x4be885(0x402)]=_0x53e446,this['_collaborationUIEventService']=_0x2971bd,this[_0x4be885(0x3f2)]=_0x3d72b7,_(this,_0x4be885(0x37c),new Map()),_(this,_0x4be885(0x3d0),new Map()),_(this,_0x4be885(0x1e6),new Map()),_(this,_0x4be885(0x11b),new Map()),_(this,_0x4be885(0x3cb),void 0x0),_(this,_0x4be885(0x363),this[_0x4be885(0x16c)](void 0x0)['socket$'][_0x4be885(0x1da)]()),_(this,_0x4be885(0x408),new t[(_0x4be885(0x34f))](0x0)),_(this,_0x4be885(0x359),this['_status$']['asObservable']());}[_0x313905(0x403)](){const _0x3d00c7=_0x313905;this[_0x3d00c7(0x3cb)]||(this[_0x3d00c7(0x3cb)]=this[_0x3d00c7(0x2a2)][_0x3d00c7(0xe5)](Ge,r[_0x3d00c7(0x161)][_0x3d00c7(0x1d1)])??void 0x0,this[_0x3d00c7(0x3cb)]&&this['disposeWithMe'](this[_0x3d00c7(0x3cb)][_0x3d00c7(0x387)][_0x3d00c7(0x1c9)](_0x3cea8d=>{const _0x5e64cd=_0x3d00c7;_0x3cea8d&&this[_0x5e64cd(0xf6)](),_0x3cea8d||this[_0x5e64cd(0x11b)]['forEach'](_0x55951d=>this[_0x5e64cd(0x430)](_0x55951d));})));}[_0x313905(0x2a7)](){const _0x415e98=_0x313905;super['dispose'](),this[_0x415e98(0x11b)][_0x415e98(0xf3)](_0x574a06=>{const _0x10f2fa=_0x415e98;var _0x481c21,_0x5c9bdf,_0xefc026;(_0x481c21=_0x574a06[_0x10f2fa(0x243)])==null||_0x481c21[_0x10f2fa(0xbd)](),_0x574a06[_0x10f2fa(0x243)]=null,this[_0x10f2fa(0x369)](_0x574a06),this[_0x10f2fa(0x2fb)](_0x574a06),this['_clearTimeoutTimer'](_0x574a06),this[_0x10f2fa(0x414)](_0x574a06),(_0x5c9bdf=_0x574a06[_0x10f2fa(0x363)]['getValue']())==null||_0x5c9bdf[_0x10f2fa(0x2d4)](),(_0xefc026=_0x574a06['candidateSocket'])==null||_0xefc026['close'](),_0x574a06[_0x10f2fa(0x363)][_0x10f2fa(0x395)]();}),this['_socketChannels']['clear'](),this[_0x415e98(0x37c)][_0x415e98(0xf3)](_0x4f4749=>_0x4f4749[_0x415e98(0x2a7)]()),this[_0x415e98(0x37c)][_0x415e98(0x1d5)](),this['_sessionChannels'][_0x415e98(0x1d5)](),this[_0x415e98(0x408)][_0x415e98(0x395)]();}async['requireSession'](_0x1b2f5f,_0x5922e6){const _0x352119=_0x313905;if(this[_0x352119(0x403)](),this[_0x352119(0x37c)][_0x352119(0x3ae)](_0x1b2f5f))return this[_0x352119(0x37c)][_0x352119(0xe5)](_0x1b2f5f);let _0x1c7eed=this[_0x352119(0x3d0)][_0x352119(0xe5)](_0x1b2f5f);if(_0x1c7eed)return _0x1c7eed;let _0x35d0ee=this['_createSession'](_0x1b2f5f,_0x5922e6);this['_pendingSessions'][_0x352119(0x245)](_0x1b2f5f,_0x35d0ee);try{return await _0x35d0ee;}finally{this[_0x352119(0x3d0)][_0x352119(0x20e)](_0x1b2f5f);}}async['_createSession'](_0x1935d2,_0x126c51){const _0x27fad7=_0x313905;let _0x30efea=await this[_0x27fad7(0x22a)](_0x1935d2,_0x126c51),_0x1f101f=this[_0x27fad7(0x16c)](_0x30efea[_0x27fad7(0x19f)][_0x27fad7(0x2dd)]);this[_0x27fad7(0xcf)](_0x1f101f);let _0x2999d9=this['_injector']['createInstance'](S,_0x30efea,_0x1f101f[_0x27fad7(0x363)][_0x27fad7(0x1da)]());return this[_0x27fad7(0x37c)]['set'](_0x1935d2,_0x2999d9),this[_0x27fad7(0x1e6)][_0x27fad7(0x245)](_0x1935d2,_0x1f101f[_0x27fad7(0x30e)]),_0x2999d9;}[_0x313905(0x44a)](_0x43a43b){const _0x5ec1e7=_0x313905;let _0x144725=this[_0x5ec1e7(0x37c)][_0x5ec1e7(0xe5)](_0x43a43b),_0xc893fc=this[_0x5ec1e7(0x1e6)][_0x5ec1e7(0xe5)](_0x43a43b);if(_0x144725&&(this['_sessions'][_0x5ec1e7(0x20e)](_0x43a43b),this[_0x5ec1e7(0x1e6)][_0x5ec1e7(0x20e)](_0x43a43b),_0x144725['close']()),_0xc893fc!==void 0x0&&!this[_0x5ec1e7(0x1e8)](_0xc893fc)){let _0x2ff66b=this[_0x5ec1e7(0x11b)][_0x5ec1e7(0xe5)](_0xc893fc);_0x2ff66b&&this[_0x5ec1e7(0x430)](_0x2ff66b);}}[_0x313905(0xf6)](){const _0x35319a=_0x313905;(this[_0x35319a(0x11b)][_0x35319a(0x187)]?[...this[_0x35319a(0x11b)]['values']()]:[this[_0x35319a(0x16c)](void 0x0)])[_0x35319a(0xf3)](_0x25368a=>{const _0x56fde9=_0x35319a;!this[_0x56fde9(0x1e8)](_0x25368a[_0x56fde9(0x30e)])||_0x25368a['socketReady']||_0x25368a[_0x56fde9(0x1ca)]||_0x25368a[_0x56fde9(0x435)]||(_0x25368a['retryCount']=0x0,this[_0x56fde9(0x2fb)](_0x25368a),this[_0x56fde9(0x38b)](_0x25368a));});}['_clearRetryConnectingTimer'](_0x57395c){const _0x8febb4=_0x313905;_0x57395c[_0x8febb4(0x401)]!=null&&(clearTimeout(_0x57395c[_0x8febb4(0x401)]),_0x57395c[_0x8febb4(0x401)]=null);}[_0x313905(0x417)](_0x26f2f4){const _0x1fa6d0=_0x313905;let _0x30b0fb=this[_0x1fa6d0(0x2be)][_0x1fa6d0(0x292)](m),_0x2cb458=_0x26f2f4[_0x1fa6d0(0x2dd)]??(_0x30b0fb==null?void 0x0:_0x30b0fb[_0x1fa6d0(0x27d)])??_0x1fa6d0(0x364);return this[_0x1fa6d0(0x402)]['createSocket'](_0x2cb458);}async[_0x313905(0xcf)](_0x1a5685){const _0x3b0b79=_0x313905;var _0x51ec43;if(this[_0x3b0b79(0x3fa)]||((_0x51ec43=this[_0x3b0b79(0x3cb)])==null?void 0x0:_0x51ec43[_0x3b0b79(0x2ca)])===!0x1||_0x1a5685[_0x3b0b79(0x2b2)]||_0x1a5685[_0x3b0b79(0x1ca)]||_0x1a5685[_0x3b0b79(0x435)])return;let _0x39f242={};_0x1a5685[_0x3b0b79(0x435)]=_0x39f242;try{let _0x49e47a=await this['_createSocket'](_0x1a5685);if(this['_disposed']||_0x1a5685[_0x3b0b79(0x435)]!==_0x39f242){_0x49e47a==null||_0x49e47a[_0x3b0b79(0x2d4)]();return;}if(_0x49e47a){var _0x390f28;_0x1a5685[_0x3b0b79(0x1ca)]=_0x49e47a,_0x1a5685[_0x3b0b79(0x258)]=setTimeout(()=>{const _0x171a93=_0x3b0b79;!this['_disposed']&&_0x1a5685[_0x171a93(0x1ca)]===_0x49e47a&&this['_onConnectionFailed'](_0x1a5685);},0x4e20);let _0x44f1ca=_0x49e47a[_0x3b0b79(0x1fa)];_0x49e47a[_0x3b0b79(0x1fa)]=(_0x2c8495,_0x4f0351)=>{const _0xc79149=_0x3b0b79;_0x2c8495['cmd']!==o[_0xc79149(0x123)][_0xc79149(0x346)]&&!tt(_0x2c8495)&&_0x1a5685[_0xc79149(0x2b2)]&&_0x1a5685[_0xc79149(0x363)][_0xc79149(0x28b)]()===_0x49e47a&&this[_0xc79149(0x3da)](_0x1a5685);let _0x1dcb11=_0x4f0351===void 0x0?_0x44f1ca['call'](_0x49e47a,_0x2c8495):_0x44f1ca['call'](_0x49e47a,_0x2c8495,_0x4f0351);return _0x1dcb11 instanceof Promise&&_0x1dcb11[_0xc79149(0x3bb)](_0x3b53de=>{const _0x10231c=_0xc79149;nt(_0x3b53de)&&_0x1a5685['socket$']['getValue']()===_0x49e47a&&this[_0x10231c(0x318)](_0x1a5685);}),_0x1dcb11;},(_0x390f28=_0x1a5685[_0x3b0b79(0x243)])==null||_0x390f28[_0x3b0b79(0xbd)]();let _0xae9493=new t[(_0x3b0b79(0x2ab))]();_0x1a5685[_0x3b0b79(0x243)]=_0xae9493,_0xae9493[_0x3b0b79(0x24b)](_0x49e47a['message$']['subscribe'](_0x13c0e2=>this['_onMessage'](_0x1a5685,_0x49e47a,_0x13c0e2))),_0xae9493[_0x3b0b79(0x24b)](_0x49e47a['error$']['pipe']((0x0,c[_0x3b0b79(0x16d)])(0x1))['subscribe'](_0xc308ab=>this[_0x3b0b79(0x1c1)][_0x3b0b79(0x287)](_0x3b0b79(0x383),_0xc308ab))),_0xae9493['add'](_0x49e47a[_0x3b0b79(0x2a1)][_0x3b0b79(0x24a)]((0x0,c[_0x3b0b79(0x16d)])(0x1))[_0x3b0b79(0x1c9)](()=>{this['_onConnectionOpen'](_0x1a5685,_0x49e47a);})),_0xae9493[_0x3b0b79(0x24b)](_0x49e47a[_0x3b0b79(0x2dc)][_0x3b0b79(0x24a)]((0x0,c[_0x3b0b79(0x16d)])(0x1))[_0x3b0b79(0x1c9)](_0x34c17c=>{const _0x1bcc8a=_0x3b0b79;(_0x1a5685['candidateSocket']===_0x49e47a||_0x1a5685[_0x1bcc8a(0x363)][_0x1bcc8a(0x28b)]()===_0x49e47a)&&(this[_0x1bcc8a(0x1c1)][_0x1bcc8a(0x426)]('[CollaborationSessionService]',_0x1bcc8a(0x140),_0x34c17c),this[_0x1bcc8a(0x2f9)](_0x1a5685));}));}}catch(_0x455ae4){if(_0x1a5685[_0x3b0b79(0x435)]!==_0x39f242)return;if(nt(_0x455ae4)){this[_0x3b0b79(0x318)](_0x1a5685);return;}this['_logService'][_0x3b0b79(0x287)](_0x455ae4),this[_0x3b0b79(0x2f9)](_0x1a5685);}finally{_0x1a5685[_0x3b0b79(0x435)]===_0x39f242&&(_0x1a5685[_0x3b0b79(0x435)]=null);}}[_0x313905(0x12b)](_0x244db2,_0x5a30a7){const _0x426f50=_0x313905;this[_0x426f50(0x3fa)]||_0x244db2[_0x426f50(0x1ca)]!==_0x5a30a7||(this[_0x426f50(0x1c1)][_0x426f50(0x426)](_0x426f50(0x104),_0x426f50(0xf8)),_0x5a30a7[_0x426f50(0x1fa)]({'cmd':o[_0x426f50(0x123)][_0x426f50(0x3e6)]}));}[_0x313905(0x430)](_0xe1a6c3){const _0x148749=_0x313905;var _0x3be890;let _0x4e3273=_0xe1a6c3[_0x148749(0x363)][_0x148749(0x28b)]()??_0xe1a6c3[_0x148749(0x1ca)];_0xe1a6c3[_0x148749(0x435)]=null,_0xe1a6c3[_0x148749(0x2b2)]=!0x1,_0xe1a6c3[_0x148749(0x1ca)]=null,(_0x3be890=_0xe1a6c3[_0x148749(0x243)])==null||_0x3be890[_0x148749(0xbd)](),_0xe1a6c3[_0x148749(0x243)]=null,this[_0x148749(0x408)][_0x148749(0xb9)](0x2),_0xe1a6c3[_0x148749(0x363)][_0x148749(0xb9)](null),this[_0x148749(0x2fb)](_0xe1a6c3),this[_0x148749(0x369)](_0xe1a6c3),this[_0x148749(0x2cd)](_0xe1a6c3),this[_0x148749(0x414)](_0xe1a6c3),_0x4e3273==null||_0x4e3273[_0x148749(0x2d4)]();}[_0x313905(0x318)](_0xac7c58){const _0x511319=_0x313905;this['_onOffline'](_0xac7c58),this[_0x511319(0x37e)]['emitEvent']({'id':_0x511319(0x13b)});}[_0x313905(0x2f9)](_0x3d365e){const _0x2ea9ab=_0x313905;var _0x3a1b73;this[_0x2ea9ab(0x430)](_0x3d365e),!this['_disposed']&&((_0x3a1b73=this[_0x2ea9ab(0x3cb)])==null?void 0x0:_0x3a1b73['online'])!==!0x1&&this[_0x2ea9ab(0x1e8)](_0x3d365e[_0x2ea9ab(0x30e)])&&(_0x3d365e[_0x2ea9ab(0x330)]<(this[_0x2ea9ab(0x2be)][_0x2ea9ab(0x292)](_0x2ea9ab(0x38f))??0x3)?(this[_0x2ea9ab(0x37e)][_0x2ea9ab(0x117)]({'id':_0x2ea9ab(0x1f3)}),this[_0x2ea9ab(0x38b)](_0x3d365e)):this[_0x2ea9ab(0x37e)][_0x2ea9ab(0x117)]({'id':_0x2ea9ab(0x124)}));}[_0x313905(0x38b)](_0x29d642){const _0x5b1271=_0x313905;let _0x21fb1b=_0x29d642[_0x5b1271(0x330)],_0x425767=this['_configService'][_0x5b1271(0x292)](m),_0x404e83=_0x21fb1b===0x0?0x0:((_0x425767==null?void 0x0:_0x425767[_0x5b1271(0xd5)])??0x4e20)*0x2**_0x21fb1b;_0x29d642[_0x5b1271(0x401)]=setTimeout(()=>{const _0x1bd5b4=_0x5b1271;clearTimeout(_0x29d642[_0x1bd5b4(0x401)]),_0x29d642[_0x1bd5b4(0x401)]=null,this['_tryEnsureSocket'](_0x29d642);},_0x404e83),_0x29d642['retryCount']+=0x1;}async[_0x313905(0x22a)](_0x2c797a,_0x609772){const _0x2bf629=_0x313905;return et(_0x2c797a,_0x609772,await this['_adapter'][_0x2bf629(0x349)]({'unitId':_0x2c797a,'unitType':_0x609772}));}[_0x313905(0x3d6)](_0x1084ea,_0xa295b4,_0x2609e0){const _0x48d292=_0x313905;if(this['_disposed']||_0x1084ea['candidateSocket']!==_0xa295b4&&_0x1084ea[_0x48d292(0x363)][_0x48d292(0x28b)]()!==_0xa295b4)return;let {cmd:_0x595d0e}=_0x2609e0;if(_0x595d0e===o[_0x48d292(0x123)][_0x48d292(0x3e6)]&&!_0x1084ea[_0x48d292(0x2b2)]){var _0x1f97ab;if((_0x2609e0[_0x48d292(0x2c3)]??o[_0x48d292(0x177)]['OK'])!==o['CmdRspCode']['OK']||!((_0x1f97ab=_0x2609e0['data'])!=null&&_0x1f97ab[_0x48d292(0x190)])){this['_onConnectionFailed'](_0x1084ea);return;}this[_0x48d292(0x369)](_0x1084ea),_0xa295b4[_0x48d292(0x190)]=_0x2609e0[_0x48d292(0x335)][_0x48d292(0x190)],_0x1084ea['retryCount']=0x0,_0x1084ea[_0x48d292(0x2b2)]=!0x0,_0x1084ea[_0x48d292(0x1ca)]=null,_0x1084ea['socket$'][_0x48d292(0xb9)](_0xa295b4),this[_0x48d292(0x408)]['next'](0x3);}_0x595d0e===o[_0x48d292(0x123)][_0x48d292(0x1c3)]&&this[_0x48d292(0x2cd)](_0x1084ea),this[_0x48d292(0x3da)](_0x1084ea);}[_0x313905(0x1e8)](_0x44ccfe){const _0x32768d=_0x313905;return[...this[_0x32768d(0x1e6)][_0x32768d(0x184)]()][_0x32768d(0xb3)](_0x285b17=>_0x285b17===_0x44ccfe);}[_0x313905(0x16c)](_0x1168fe){const _0x152949=_0x313905;let _0x818808=_0x1168fe??'',_0x6c6837=this[_0x152949(0x11b)]['get'](_0x818808);if(_0x6c6837)return _0x6c6837;let _0x32b061={'endpointKey':_0x818808,'endpoint':_0x1168fe,'socket$':new t[(_0x152949(0x34f))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x152949(0x11b)][_0x152949(0x245)](_0x818808,_0x32b061),_0x32b061;}[_0x313905(0x369)](_0x101fe7){const _0xa7ba72=_0x313905;_0x101fe7[_0xa7ba72(0x258)]!=null&&(clearTimeout(_0x101fe7[_0xa7ba72(0x258)]),_0x101fe7['handshakeTimer']=null);}[_0x313905(0x3da)](_0x43b42d){const _0x322453=_0x313905;this['_clearHeartbeatTimer'](_0x43b42d),_0x43b42d[_0x322453(0x2b2)]&&(_0x43b42d[_0x322453(0x2ec)]=setTimeout(()=>this[_0x322453(0x26b)](_0x43b42d),this[_0x322453(0x2be)][_0x322453(0x292)](_0x322453(0x277))??0x7530));}[_0x313905(0x26b)](_0x4a35b3){const _0xeb0638=_0x313905;let _0x22595a=_0x4a35b3[_0xeb0638(0x363)][_0xeb0638(0x28b)]();_0x4a35b3[_0xeb0638(0x2b2)]&&_0x22595a&&(_0x22595a[_0xeb0638(0x1fa)]({'cmd':o[_0xeb0638(0x123)][_0xeb0638(0x1c3)]}),this['_waitForHeartbeatResponse'](_0x4a35b3));}[_0x313905(0x26d)](_0x1dde6f){const _0x25a15b=_0x313905;_0x1dde6f[_0x25a15b(0x418)]=setTimeout(()=>this[_0x25a15b(0x2f9)](_0x1dde6f),this['_configService']['getConfig']('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x313905(0x414)](_0xc78c17){const _0x540e0c=_0x313905;_0xc78c17[_0x540e0c(0x2ec)]!=null&&(clearTimeout(_0xc78c17[_0x540e0c(0x2ec)]),_0xc78c17[_0x540e0c(0x2ec)]=null);}[_0x313905(0x2cd)](_0x4df6d8){const _0x574550=_0x313905;_0x4df6d8[_0x574550(0x418)]!=null&&(clearTimeout(_0x4df6d8[_0x574550(0x418)]),_0x4df6d8['timeoutTimer']=null);}};U=b([y(0x0,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x1,r[_0x313905(0x26a)]),y(0x2,r[_0x313905(0x21c)]),y(0x3,Je),y(0x4,(0x0,r[_0x313905(0x377)])(v)),y(0x5,Qe)],U);function tt(_0x32c340){const _0x3e18ea=_0x313905;if(_0x32c340[_0x3e18ea(0x29a)]!==o[_0x3e18ea(0x123)]['INGEST'])return!0x1;let _0x161070=_0x32c340[_0x3e18ea(0x335)][_0x3e18ea(0x280)];return _0x161070===n[_0x3e18ea(0x2ce)][_0x3e18ea(0x189)]||_0x161070===n['CollaborationEvent'][_0x3e18ea(0x3b3)];}function nt(_0x5d3ba2){const _0x23b053=_0x313905;var _0xb3689d;if(!(_0x5d3ba2 instanceof e['HTTPResponseError'])||_0x5d3ba2[_0x23b053(0x265)]!==0x193)return!0x1;let _0x59022c=_0x5d3ba2[_0x23b053(0x287)];return(_0x59022c==null||(_0xb3689d=_0x59022c[_0x23b053(0x287)])==null?void 0x0:_0xb3689d[_0x23b053(0x2c3)])===o[_0x23b053(0x18b)][_0x23b053(0x13b)];}let W=class extends r[_0x313905(0x380)]{constructor(_0x2ff7c1,_0x5f4b0c,_0x9367b0,_0x472d68){const _0x410574=_0x313905;var _0x8eadc4;super(),this[_0x410574(0x2a2)]=_0x2ff7c1,this[_0x410574(0x1fe)]=_0x5f4b0c,this['_configService']=_0x9367b0,this[_0x410574(0x121)]=_0x472d68,_(this,_0x410574(0x2f2),new Map()),_(this,_0x410574(0x3e1),new t['Subject']()),_(this,_0x410574(0x3d3),this['_entityInit$'][_0x410574(0x1da)]()),((_0x8eadc4=this[_0x410574(0x2be)][_0x410574(0x292)]('collaboration-client.config'))==null?void 0x0:_0x8eadc4[_0x410574(0x222)])!==!0x1&&this[_0x410574(0x32a)]();}[_0x313905(0x2a7)](){const _0x326340=_0x313905;super[_0x326340(0x2a7)](),this[_0x326340(0x2f2)][_0x326340(0xf3)](_0x4eaa14=>_0x4eaa14[_0x326340(0x2a7)]()),this[_0x326340(0x2f2)][_0x326340(0x1d5)]();}[_0x313905(0x448)](_0x2400f1){const _0x23b381=_0x313905;return this[_0x23b381(0x2f2)][_0x23b381(0xe5)](_0x2400f1)??null;}[_0x313905(0x137)](){const _0x2a4728=_0x313905;return Array[_0x2a4728(0x298)](this[_0x2a4728(0x2f2)][_0x2a4728(0x184)]());}[_0x313905(0x157)](_0x1dba1f){const _0x40332e=_0x313905;let _0x4d16c2=this[_0x40332e(0x448)](_0x1dba1f);return _0x4d16c2?(0x0,t['of'])(_0x4d16c2):this[_0x40332e(0x3e1)][_0x40332e(0x24a)]((0x0,c[_0x40332e(0x1c5)])(_0xf488cb=>_0xf488cb['unitID']===_0x1dba1f));}[_0x313905(0x3bd)](_0xbdf82a){const _0x4647c4=_0x313905;return(0x0,t[_0x4647c4(0x1f2)])(this[_0x4647c4(0x157)](_0xbdf82a)[_0x4647c4(0x24a)]((0x0,c['map'])(()=>void 0x0)));}['hasWritePending'](_0x4878cc){const _0x233168=_0x313905;if(_0x4878cc!==void 0x0){var _0x343c06;return((_0x343c06=this[_0x233168(0x2f2)][_0x233168(0xe5)](_0x4878cc))==null?void 0x0:_0x343c06['hasWritePending']())??!0x1;}for(let _0xe93bc2 of this[_0x233168(0x2f2)]['values']())if(_0xe93bc2[_0x233168(0x1ee)]())return!0x0;return!0x1;}[_0x313905(0x32a)](){const _0x5ed931=_0x313905;this[_0x5ed931(0x121)]['getTypeOfUnitAdded$'](r[_0x5ed931(0xd4)]['UNIVER_SHEET'])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c['delay'])(0x10))[_0x5ed931(0x1c9)](async _0x5ae4cc=>{const _0x5a3118=_0x5ed931;let _0x4e9666=_0x5ae4cc[_0x5a3118(0x2bb)][_0x5a3118(0x400)](),_0x1adad2=await this[_0x5a3118(0x36d)](_0x4e9666,r[_0x5a3118(0xd4)][_0x5a3118(0x155)]);this['_entities'][_0x5a3118(0x245)](_0x4e9666,_0x1adad2);}),this[_0x5ed931(0x121)][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)]['UNIVER_DOC'])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c['delay'])(0x10))['pipe']((0x0,c['filter'])(_0x221ab6=>!_0x221ab6[_0x5ed931(0x2bb)][_0x5ed931(0x400)]()['startsWith']('__')))[_0x5ed931(0x1c9)](async _0x4f037e=>{const _0x19c02d=_0x5ed931;let _0x29c2c6=_0x4f037e['unit'][_0x19c02d(0x400)](),_0x198152=await this[_0x19c02d(0x36d)](_0x29c2c6,r[_0x19c02d(0xd4)][_0x19c02d(0x2b0)]);this[_0x19c02d(0x2f2)][_0x19c02d(0x245)](_0x29c2c6,_0x198152);}),this['_univerInstanceService'][_0x5ed931(0x34b)](r['UniverInstanceType'][_0x5ed931(0x3e4)])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c[_0x5ed931(0xde)])(0x10))[_0x5ed931(0x1c9)](async _0x4bae7d=>{const _0xc92566=_0x5ed931;let _0x1e3897=_0x4bae7d[_0xc92566(0x2bb)][_0xc92566(0x400)](),_0x17b4bf=await this[_0xc92566(0x36d)](_0x1e3897,r[_0xc92566(0xd4)][_0xc92566(0x3e4)]);this['_entities'][_0xc92566(0x245)](_0x1e3897,_0x17b4bf);}),this[_0x5ed931(0x121)][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)][_0x5ed931(0x454)])[_0x5ed931(0x24a)]((0x0,t['takeUntil'])(this[_0x5ed931(0x42b)]),(0x0,c[_0x5ed931(0xde)])(0x10))[_0x5ed931(0x1c9)](async _0x58feb6=>{const _0x3cd155=_0x5ed931;let _0x1ce2f1=_0x58feb6[_0x3cd155(0x2bb)][_0x3cd155(0x400)](),_0x5be918=await this[_0x3cd155(0x36d)](_0x1ce2f1,r[_0x3cd155(0xd4)]['UNIVER_BOARD']);this[_0x3cd155(0x2f2)][_0x3cd155(0x245)](_0x1ce2f1,_0x5be918);}),this[_0x5ed931(0x121)][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)][_0x5ed931(0x315)])[_0x5ed931(0x24a)]((0x0,t['takeUntil'])(this[_0x5ed931(0x42b)]),(0x0,c[_0x5ed931(0xde)])(0x10))['subscribe'](async _0x54a128=>{const _0xf13f2f=_0x5ed931;let _0x1972bb=_0x54a128[_0xf13f2f(0x2bb)][_0xf13f2f(0x400)](),_0x5ca739=await this[_0xf13f2f(0x36d)](_0x1972bb,r[_0xf13f2f(0xd4)][_0xf13f2f(0x315)]);this[_0xf13f2f(0x2f2)][_0xf13f2f(0x245)](_0x1972bb,_0x5ca739);}),this['_univerInstanceService'][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)][_0x5ed931(0x341)])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c['delay'])(0x10))[_0x5ed931(0x1c9)](async _0x3a9b62=>{const _0x54ccea=_0x5ed931;let _0x175192=_0x3a9b62[_0x54ccea(0x2bb)][_0x54ccea(0x400)](),_0x4bce93=await this[_0x54ccea(0x36d)](_0x175192,r[_0x54ccea(0xd4)][_0x54ccea(0x341)]);this[_0x54ccea(0x2f2)][_0x54ccea(0x245)](_0x175192,_0x4bce93);}),(0x0,t[_0x5ed931(0x1d4)])(this[_0x5ed931(0x121)][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)][_0x5ed931(0x155)]),this['_univerInstanceService'][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)][_0x5ed931(0x2b0)]),this[_0x5ed931(0x121)]['getTypeOfUnitDisposed$'](r[_0x5ed931(0xd4)]['UNIVER_SLIDE']),this['_univerInstanceService'][_0x5ed931(0x1f5)](r['UniverInstanceType'][_0x5ed931(0x454)]),this[_0x5ed931(0x121)][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)][_0x5ed931(0x315)]),this[_0x5ed931(0x121)][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)]['UNIVER_PDF']))[_0x5ed931(0x24a)]((0x0,t['takeUntil'])(this['dispose$']))[_0x5ed931(0x1c9)](_0x156546=>{const _0x19faa8=_0x5ed931;let _0x475a26=_0x156546['getUnitId'](),_0x561304=this[_0x19faa8(0x2f2)]['get'](_0x475a26);_0x561304&&(_0x561304[_0x19faa8(0x2a7)](),this[_0x19faa8(0x2f2)][_0x19faa8(0x20e)](_0x475a26));});}async[_0x313905(0x36d)](_0x16501e,_0x3ca775){const _0x520700=_0x313905;let _0x471e87=await this['_collabSessionService']['requireSession'](_0x16501e),_0x2f86c0=this[_0x520700(0x2a2)][_0x520700(0x246)](this['_getCtorByUniverInstanceType'](_0x3ca775),_0x16501e,_0x3ca775,_0x471e87);return await _0x2f86c0[_0x520700(0xb8)](),this[_0x520700(0x3e1)][_0x520700(0xb9)](_0x2f86c0),_0x2f86c0;}['_getCtorByUniverInstanceType'](_0x4890bf){const _0x30b73e=_0x313905;switch(_0x4890bf){case r[_0x30b73e(0xd4)][_0x30b73e(0x2b0)]:return L;case r[_0x30b73e(0xd4)][_0x30b73e(0x155)]:return z;case r[_0x30b73e(0xd4)][_0x30b73e(0x3e4)]:return B;case r[_0x30b73e(0xd4)][_0x30b73e(0x454)]:return V;case r[_0x30b73e(0xd4)][_0x30b73e(0x315)]:return R;case r[_0x30b73e(0xd4)][_0x30b73e(0x341)]:return H;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4890bf);}}};W=b([y(0x0,(0x0,r['Inject'])(r[_0x313905(0xdf)])),y(0x1,(0x0,r[_0x313905(0x377)])(U)),y(0x2,r[_0x313905(0x21c)]),y(0x3,r[_0x313905(0xbb)])],W);var rt=_0x313905(0x413),it=_0x313905(0x37f);let at=class extends r[_0x313905(0x333)]{constructor(_0x52ed5d,_0x10d416){const _0x3fa14d=_0x313905;super(),this[_0x3fa14d(0x121)]=_0x52ed5d,this[_0x3fa14d(0x2be)]=_0x10d416,this['_init']();}[_0x313905(0x32a)](){const _0xba395d=_0x313905;this[_0xba395d(0x25e)](this[_0xba395d(0x121)][_0xba395d(0x43e)][_0xba395d(0x1c9)](()=>{const _0x20833b=_0xba395d;let _0x37d60f=this[_0x20833b(0x121)][_0x20833b(0x2d9)](),_0x287543=this[_0x20833b(0x2be)][_0x20833b(0x292)](_0x20833b(0x227))??_0x20833b(0x44c);_0x37d60f instanceof r[_0x20833b(0x16a)]&&(_0x287543=_0x37d60f[_0x20833b(0x41b)]),document[_0x20833b(0x22f)]=_0x287543;}));}};at=b([y(0x0,r['IUniverInstanceService']),y(0x1,r[_0x313905(0x21c)])],at);const ot=(0x0,r['createIdentifier'])(_0x313905(0x2c1));let G=class{constructor(_0x16fc87,_0x29ff9e,_0x5306d1){const _0x4ce492=_0x313905;this[_0x4ce492(0x2f1)]=_0x16fc87,this[_0x4ce492(0x2be)]=_0x29ff9e,this[_0x4ce492(0x121)]=_0x5306d1;}[_0x313905(0x14c)](){const _0x2dd16c=_0x313905;return this[_0x2dd16c(0x13d)]()['attachment']??{};}async['saveAttachment'](_0x52ce2f){const _0x390d86=_0x313905;let _0x7eb611=this[_0x390d86(0x14c)]();if(st(_0x52ce2f,_0x7eb611),_0x7eb611[_0x390d86(0x10d)])return _0x7eb611[_0x390d86(0x10d)](_0x52ce2f);let _0x4e3e87=await this['_upload'](_0x52ce2f);return{'id':_0x4e3e87,'name':_0x52ce2f['name'],'mimeType':_0x52ce2f[_0x390d86(0x133)],'size':_0x52ce2f[_0x390d86(0x187)],'sourceType':r['ImageSourceType'][_0x390d86(0x1e3)],'source':_0x4e3e87};}async[_0x313905(0x159)](_0x4dda47,_0x48a365){const _0x5774ba=_0x313905;if(_0x48a365!==r[_0x5774ba(0x2f4)][_0x5774ba(0x1e3)])return _0x4dda47;let _0x375c77=(await this[_0x5774ba(0x2f1)][_0x5774ba(0xe5)](this[_0x5774ba(0x3c1)]()[_0x5774ba(0x183)](_0x5774ba(0x1e7),_0x4dda47)))[_0x5774ba(0x13e)];if(_0x375c77[_0x5774ba(0x287)]&&_0x375c77['error'][_0x5774ba(0x2c3)]!==o[_0x5774ba(0x18b)]['OK'])throw _0x375c77['error'];if(!_0x375c77[_0x5774ba(0x201)])throw Error(_0x5774ba(0x3bf));return(0x0,r[_0x5774ba(0x3bc)])(_0x375c77[_0x5774ba(0x201)],this[_0x5774ba(0x2c8)]());}async[_0x313905(0x250)](_0x42e7eb){const _0x5f4caa=_0x313905;let _0x4e5169=this[_0x5f4caa(0x121)][_0x5f4caa(0x2d9)](),_0x4ae806=_0x4e5169==null?void 0x0:_0x4e5169[_0x5f4caa(0x400)]();if(!_0x4ae806)throw Error(_0x5f4caa(0x3cd));let _0x5542f4=new FormData();_0x5542f4[_0x5f4caa(0x1b3)](_0x5f4caa(0x3a5),_0x42e7eb);let _0x5d6988=this[_0x5f4caa(0x337)]()+'?size='+_0x42e7eb[_0x5f4caa(0x187)][_0x5f4caa(0x27c)]()+'&source='+o[_0x5f4caa(0x39c)][_0x5f4caa(0xd8)]+_0x5f4caa(0x358)+encodeURIComponent(_0x4ae806),_0x5708c7=(await this['_httpService'][_0x5f4caa(0x31d)](_0x5d6988,{'body':_0x5542f4}))[_0x5f4caa(0x13e)]['FileId'];if(typeof _0x5708c7!=_0x5f4caa(0x116)||!_0x5708c7)throw Error(_0x5f4caa(0x18c));return _0x5708c7;}['_getUploadFileURL'](){const _0x2a3fb3=_0x313905;return this[_0x2a3fb3(0x13d)]()[_0x2a3fb3(0x21a)]??_0x2a3fb3(0xca);}[_0x313905(0x3c1)](){const _0x580fd3=_0x313905;return this[_0x580fd3(0x13d)]()['signUrlServerUrl']??_0x580fd3(0x21d);}[_0x313905(0x2c8)](){const _0x670556=_0x313905;let _0x35cd87=this['_getConfig']();return _0x35cd87['downloadEndpointUrl']?_0x35cd87[_0x670556(0x357)]:typeof location<'u'?location[_0x670556(0x428)]:_0x35cd87[_0x670556(0x21a)]??'';}[_0x313905(0x13d)](){const _0xc51134=_0x313905;return this['_configService'][_0xc51134(0x292)](_0xc51134(0x2f6))??{};}};G=b([y(0x0,(0x0,r['Inject'])(e[_0x313905(0x1a4)])),y(0x1,(0x0,r[_0x313905(0x377)])(r['IConfigService'])),y(0x2,(0x0,r['Inject'])(r[_0x313905(0xbb)]))],G);function st(_0x1b007c,_0x1f7309){const _0x727224=_0x313905;var _0x5613f1;if(_0x1f7309[_0x727224(0x19b)]!=null&&_0x1b007c[_0x727224(0x187)]>_0x1f7309[_0x727224(0x19b)])throw Error(_0x727224(0x3a4));if((_0x5613f1=_0x1f7309[_0x727224(0x174)])!=null&&_0x5613f1[_0x727224(0x1f6)]&&!_0x1f7309[_0x727224(0x174)][_0x727224(0xb3)](_0x3f498b=>_0x1b007c['type']===_0x3f498b||_0x1b007c[_0x727224(0x41b)][_0x727224(0x1ec)](_0x3f498b)||_0x3f498b[_0x727224(0x1ec)]('/*')&&_0x1b007c[_0x727224(0x133)][_0x727224(0x1c4)](_0x3f498b['slice'](0x0,-0x1))))throw Error(_0x727224(0xd0));}let K=class{constructor(_0x10c9aa,_0x6c0076,_0x4f75b1){const _0x4a742e=_0x313905;this[_0x4a742e(0x2be)]=_0x10c9aa,this[_0x4a742e(0x2f1)]=_0x6c0076,this[_0x4a742e(0x291)]=_0x4f75b1,this[_0x4a742e(0xb8)]();}[_0x313905(0xb8)](){const _0x2f4417=_0x313905;this[_0x2f4417(0x2f1)][_0x2f4417(0x3b4)]({'priority':0x1,'interceptor':(_0x258e1b,_0x4b00c5)=>_0x4b00c5(_0x258e1b)[_0x2f4417(0x24a)]((0x0,t[_0x2f4417(0x1b6)])(async _0x26e986=>{const _0x5a678f=_0x2f4417;let _0x21dd64=_0x26e986;if(_0x21dd64[_0x5a678f(0x265)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x5a678f(0x178)](this[_0x5a678f(0x291)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x17f1c8=window[_0x5a678f(0x324)](window[_0x5a678f(0xcd)][_0x5a678f(0x450)]);window[_0x5a678f(0xcd)][_0x5a678f(0x450)]=this[_0x5a678f(0x3d2)]()+'?url='+_0x17f1c8;}}return _0x21dd64;}))});}[_0x313905(0x3d2)](){const _0x4937cc=_0x313905;let _0x28dcaa=this['_configService'][_0x4937cc(0x292)](m);return(_0x28dcaa==null?void 0x0:_0x28dcaa[_0x4937cc(0x440)])??'/universer-api/oidc/authpage';}};K=b([y(0x0,r[_0x313905(0x21c)]),y(0x1,(0x0,r['Inject'])(e['HTTPService'])),y(0x2,(0x0,r[_0x313905(0x377)])(r['LocaleService']))],K);let q=class extends r[_0x313905(0x333)]{constructor(_0x287f74,_0x5a533a){const _0x24ed1e=_0x313905;super(),this['_HTTPService']=_0x287f74,this[_0x24ed1e(0x2be)]=_0x5a533a,_(this,_0x24ed1e(0x25a),!0x1),this[_0x24ed1e(0x145)]();}[_0x313905(0x145)](){const _0x39e09a=_0x313905;let _0x7af417=this;this['disposeWithMe'](this[_0x39e09a(0x332)][_0x39e09a(0x3b4)]({'priority':0x3e7,'interceptor':(0x0,e[_0x39e09a(0x257)])({'isMatch'(_0x5934d3){const _0x155f76=_0x39e09a;var _0x382166;if(_0x5934d3['method']==='POST'&&(_0x382166=_0x5934d3['requestParams'])!=null&&_0x382166['body']){let {objectID:_0x172a7f,objectType:_0x17cec4}=_0x5934d3['requestParams'][_0x155f76(0x13e)]||{};if(!_0x172a7f||_0x17cec4===void 0x0)return!0x1;let _0x3801cf=_0x7af417[_0x155f76(0x1e2)]()+'/'+_0x17cec4+_0x155f76(0x328)+encodeURIComponent(_0x172a7f)+_0x155f76(0x31c);if(_0x5934d3[_0x155f76(0x201)]===_0x3801cf)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3824ef){var _0x1bdc4a;return(_0x1bdc4a=_0x3824ef['requestParams'])==null?void 0x0:_0x1bdc4a['body'];},'mergeParamsToRequest'(_0x754b98,_0x5767aa){const _0x107c9f=_0x39e09a;let _0x3a98f5=_0x7af417['_getAPIPrefixPath']()+_0x107c9f(0x2ff),_0x19560c=_0x754b98[_0x107c9f(0x1a0)]((_0x3ce21f,_0xd794a6)=>{const _0x60efb4=_0x107c9f;let {unitID:_0x295405,objectID:_0x16e44a,objectType:_0xea2dff,actions:_0x36853c}=_0xd794a6;return _0x3ce21f[_0x295405]||(_0x3ce21f[_0x295405]=Object[_0x60efb4(0x3c2)](null)),_0x3ce21f[_0x295405][_0x16e44a]||(_0x3ce21f[_0x295405][_0x16e44a]={'objectID':_0x16e44a,'objectType':_0xea2dff,'actions':[]}),_0x3ce21f[_0x295405][_0x16e44a][_0x60efb4(0x465)]['push'](..._0x36853c),_0x3ce21f;},Object[_0x107c9f(0x3c2)](null)),_0x3d972d=[];for(let _0x13f93d in _0x19560c)for(let _0x1146d7 in _0x19560c[_0x13f93d]){let {actions:_0x24bef3,objectType:_0x21b1f8}=_0x19560c[_0x13f93d][_0x1146d7],_0x5e4a1b=[...new Set(_0x24bef3)];_0x3d972d['push']({'unitID':_0x13f93d,'objectID':_0x1146d7,'objectType':_0x21b1f8,'actions':_0x5e4a1b});}return new e[(_0x107c9f(0x21e))](_0x107c9f(0xee),_0x3a98f5,{'headers':_0x5767aa[_0x107c9f(0x272)],'withCredentials':_0x5767aa[_0x107c9f(0x242)],'responseType':_0x5767aa[_0x107c9f(0x3dc)],'body':{'requests':_0x3d972d}});}},{'distributeResult'(_0x53f698,_0x13bf19){const _0x2c939a=_0x39e09a;let {objectActions:_0x17d701}=_0x53f698;return _0x13bf19[_0x2c939a(0x180)](_0x376e87=>{const _0x22e6cd=_0x2c939a;let {unitID:_0x3d5f12,objectID:_0x59c473,actions:_0x14ed66}=_0x376e87,_0x4381cf=_0x17d701[_0x22e6cd(0x3d1)](_0xf5ff0a=>_0xf5ff0a['unitID']===_0x3d5f12&&_0xf5ff0a['objectID']===_0x59c473);return{'config':_0x376e87,'result':{'actions':_0x14ed66[_0x22e6cd(0x180)](_0xf885fb=>_0x4381cf==null?void 0x0:_0x4381cf[_0x22e6cd(0x465)]['find'](_0x2908b9=>_0x2908b9['action']===_0xf885fb))[_0x22e6cd(0x1c5)](_0x46d49e=>!!_0x46d49e),'error':_0x53f698[_0x22e6cd(0x287)]}};});}})}));}[_0x313905(0x1e2)](){const _0x1bb417=_0x313905;let _0x339682=this[_0x1bb417(0x2be)][_0x1bb417(0x292)](m);return(_0x339682==null?void 0x0:_0x339682[_0x1bb417(0x24e)])??_0x1bb417(0x273);}async[_0x313905(0x3c2)](_0xbbacaa){const _0x1fbdda=_0x313905;let _0x249534=this[_0x1fbdda(0x1e2)]()+'/'+_0xbbacaa[_0x1fbdda(0x39f)]+_0x1fbdda(0x1a8);return(await this[_0x1fbdda(0x332)][_0x1fbdda(0x31d)](_0x249534,{'body':_0xbbacaa}))[_0x1fbdda(0x13e)][_0x1fbdda(0x151)]||'';}async['list'](_0xfdc431){const _0x2e95da=_0x313905;let _0x554a7f=this['_getAPIPrefixPath']()+_0x2e95da(0xd9);return(await this['_HTTPService'][_0x2e95da(0x31d)](_0x554a7f,{'body':_0xfdc431}))['body'][_0x2e95da(0x110)];}async[_0x313905(0x28c)](_0x3a2638){const _0x18e5c5=_0x313905;var _0x11ab07;let _0x1deb26=this['_getAPIPrefixPath']()+'/'+_0x3a2638[_0x18e5c5(0x39f)]+_0x18e5c5(0x328)+encodeURIComponent(_0x3a2638[_0x18e5c5(0x151)]),_0x5dd5d6=await this[_0x18e5c5(0x332)]['put'](_0x1deb26,{'body':_0x3a2638});if((_0x5dd5d6==null||(_0x11ab07=_0x5dd5d6[_0x18e5c5(0x13e)])==null||(_0x11ab07=_0x11ab07[_0x18e5c5(0x287)])==null?void 0x0:_0x11ab07[_0x18e5c5(0x2c3)])!==0x1)throw Error(_0x18e5c5(0x264));}async[_0x313905(0x3a6)](_0x412859){const _0x139e5a=_0x313905;let _0x46093b=this[_0x139e5a(0x1e2)]()+'/'+_0x412859[_0x139e5a(0x39f)]+_0x139e5a(0x328)+encodeURIComponent(_0x412859[_0x139e5a(0x151)])+_0x139e5a(0x31c);return(await this[_0x139e5a(0x332)][_0x139e5a(0x31d)](_0x46093b,{'body':_0x412859}))[_0x139e5a(0x13e)][_0x139e5a(0x465)];}async[_0x313905(0x219)](_0x3cc6da){const _0x8b15cb=_0x313905;let _0xaf8151=this[_0x8b15cb(0x1e2)]()+_0x8b15cb(0x2ff);return(await this['_HTTPService'][_0x8b15cb(0x31d)](_0xaf8151,{'body':{'requests':_0x3cc6da}}))[_0x8b15cb(0x13e)][_0x8b15cb(0xf2)];}async['listRoles'](_0x2d8780){const _0x1aefb7=_0x313905;let _0xd8b3d6=this[_0x1aefb7(0x1e2)]()+'/'+_0x2d8780['objectType']+'/role',_0x58533c=await this['_HTTPService'][_0x1aefb7(0x31d)](_0xd8b3d6,{'body':_0x2d8780});return{'roles':_0x58533c[_0x1aefb7(0x13e)][_0x1aefb7(0x3e7)],'actions':_0x58533c['body'][_0x1aefb7(0x465)]};}async[_0x313905(0x444)](_0x3decb7){const _0x3c4817=_0x313905;let _0x4875ff=this[_0x3c4817(0x1e2)]()+_0x3c4817(0x451);await this[_0x3c4817(0x332)][_0x3c4817(0x20e)](_0x4875ff,{'params':{'collaboratorID':_0x3decb7[_0x3c4817(0x1a3)],'objectID':_0x3decb7[_0x3c4817(0x151)],'unitID':_0x3decb7[_0x3c4817(0x181)]}});}async['updateCollaborator'](_0x905d44){const _0x14be9f=_0x313905;let _0x68dde=this[_0x14be9f(0x1e2)]()+_0x14be9f(0x451);await this['_HTTPService'][_0x14be9f(0x2fc)](_0x68dde,{'body':_0x905d44});}async[_0x313905(0x3eb)](_0x1e2fe2){const _0x19058d=_0x313905;let _0x5d3b4c=this[_0x19058d(0x1e2)]()+_0x19058d(0x451);await this[_0x19058d(0x332)][_0x19058d(0x31d)](_0x5d3b4c,{'body':_0x1e2fe2});}async[_0x313905(0x38a)](_0x49642c){const _0x152589=_0x313905;let _0x1cf1cd=this['_getAPIPrefixPath']()+_0x152589(0x451),_0x2409d6=await this[_0x152589(0x332)][_0x152589(0xe5)](_0x1cf1cd,{'params':{'objectID':_0x49642c[_0x152589(0x151)],'unitID':_0x49642c['unitID']}});return this['setCfgEnableObjInherit'](_0x2409d6[_0x152589(0x13e)][_0x152589(0x294)]??!0x1),_0x2409d6[_0x152589(0x13e)][_0x152589(0x38e)];}async[_0x313905(0x340)](_0x54bb64){const _0x471a7e=_0x313905;let _0x2a5365=this[_0x471a7e(0x1e2)]()+_0x471a7e(0x451);await this['_HTTPService']['put'](_0x2a5365,{'body':_0x54bb64});}[_0x313905(0x1b0)](_0x55995a){const _0x26bb93=_0x313905;this[_0x26bb93(0x25a)]=_0x55995a;}[_0x313905(0x2d7)](){const _0x5e3133=_0x313905;return this[_0x5e3133(0x25a)];}};q=b([y(0x0,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)])),y(0x1,(0x0,r['Inject'])(r[_0x313905(0x21c)]))],q);function ct(_0x146968){const _0x102d04=_0x313905;let _0x191eff=atob(_0x146968),_0x504170=new Uint8Array(_0x191eff[_0x102d04(0x1f6)]);for(let _0xfe7bd2=0x0;_0xfe7bd2<_0x191eff['length'];_0xfe7bd2++)_0x504170[_0xfe7bd2]=_0x191eff[_0x102d04(0x28f)](_0xfe7bd2);return _0x504170;}function lt(_0x39eabb){const _0x23ec69=_0x313905;let _0x5bfef1='';for(let _0x45e42f=0x0;_0x45e42f<_0x39eabb[_0x23ec69(0x1f6)];_0x45e42f++)_0x5bfef1+=String[_0x23ec69(0x14b)](_0x39eabb[_0x45e42f]);return btoa(_0x5bfef1);}function ut(_0x37176e,_0x17300e){const _0x462850=_0x313905;let _0x25fd50=ct(_0x17300e),_0x5147bb=(0x0,f[_0x462850(0x2b1)])(0x10),_0x4a3f6a=(0x0,d['cbc'])(_0x25fd50,_0x5147bb)[_0x462850(0x301)]((0x0,f[_0x462850(0x453)])(_0x37176e));return lt((0x0,f[_0x462850(0x27e)])(_0x5147bb,_0x4a3f6a));}function dt(){const _0x5e48ff=_0x313905;let _0x15d65c=(0x0,u[_0x5e48ff(0x43c)])()[_0x5e48ff(0xdd)];if(typeof window<'u'&&window[_0x5e48ff(0xcd)]!==void 0x0&&_0x15d65c){let _0x184005={'time':Math[_0x5e48ff(0x3e2)](Date[_0x5e48ff(0x445)]()/0x3e8),'domain':location[_0x5e48ff(0x3c7)]};return ut(JSON['stringify'](_0x184005),_0x15d65c);}}let J=class{constructor(_0x5d09a2){const _0x3e07d8=_0x313905;this[_0x3e07d8(0x2f1)]=_0x5d09a2,this[_0x3e07d8(0x326)]();}[_0x313905(0x326)](){const _0x33a02a=_0x313905;this[_0x33a02a(0x2f1)][_0x33a02a(0x3b4)]({'interceptor':(_0x362c6c,_0x2980b8)=>{const _0x232fca=_0x33a02a;let _0x1b03ec=dt();return _0x1b03ec&&_0x362c6c[_0x232fca(0x272)][_0x232fca(0x245)](_0x232fca(0x1d3),_0x1b03ec),_0x2980b8(_0x362c6c);}});}};J=b([y(0x0,(0x0,r['Inject'])(e[_0x313905(0x1a4)]))],J);let Y=class extends r[_0x313905(0x380)]{constructor(_0x48e80b,_0x1b1aa7,_0x369a6c){const _0x384037=_0x313905;super(),this[_0x384037(0x1c1)]=_0x48e80b,this[_0x384037(0x2bc)]=_0x1b1aa7,this['_localCacheService']=_0x369a6c,_(this,_0x384037(0x462),new t[(_0x384037(0x34f))](null)),_(this,_0x384037(0x32c),new t[(_0x384037(0xb7))]()),_(this,_0x384037(0xce),this[_0x384037(0x462)]['asObservable']()),_(this,_0x384037(0x306),this[_0x384037(0x32c)]['asObservable']());}['dispose'](){const _0x9e0aff=_0x313905;super[_0x9e0aff(0x2a7)](),this[_0x9e0aff(0x32c)]['complete'](),this[_0x9e0aff(0x462)][_0x9e0aff(0x395)]();}['loadUnitOfRevision'](_0x559a3c,_0x45ffb5,_0x50ecdf,_0x501216,_0xaee0e8){const _0x44653b=_0x313905;return this[_0x44653b(0x129)](_0x559a3c,_0x45ffb5,_0x50ecdf,_0x501216,_0xaee0e8);}['loadUnit'](_0x5ad1af,_0x312bbb,_0x1571d1,_0x58fef4){return this['_loadUnit'](_0x5ad1af,_0x312bbb,void 0x0,_0x1571d1,_0x58fef4);}async['_loadUnit'](_0x281253,_0x38289f,_0x1ab608,_0xb17ed4,_0x2aabfb){const _0x264ce1=_0x313905;this[_0x264ce1(0x462)]['next']({'unitId':_0x281253,'type':_0x38289f,'subUnitId':_0xb17ed4});let _0x562816=_0x1ab608;if(_0x562816===void 0x0){var _0x5cd8c9;let _0xe61fbe=await((_0x5cd8c9=this[_0x264ce1(0x268)])==null?void 0x0:_0x5cd8c9[_0x264ce1(0x2da)](_0x281253));_0x562816=_0xe61fbe&&(_0xe61fbe[_0x264ce1(0x38c)]||_0xe61fbe[_0x264ce1(0x23a)][_0x264ce1(0x1f6)]!==0x0)?_0xe61fbe[_0x264ce1(0x36a)]:0x0,_0x562816===0x0&&this['_logService'][_0x264ce1(0x426)](_0x264ce1(0x23b),_0x264ce1(0x452));}return this[_0x264ce1(0x27f)](_0x281253,_0x38289f,_0x562816,_0xb17ed4,_0x2aabfb);}async[_0x313905(0x27f)](_0x46d2b7,_0x218238,_0x1f37ef,_0x50be75,_0x22d338){const _0x4deab7=_0x313905;let _0x4f7d19=null;switch(_0x218238){case r[_0x4deab7(0xd4)]['UNIVER_SHEET']:_0x4f7d19=await this[_0x4deab7(0x2bc)]['loadSheet'](_0x46d2b7,_0x1f37ef,_0x22d338,{'initialSubUnitId':_0x50be75});break;case r[_0x4deab7(0xd4)]['UNIVER_DOC']:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0xf1)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r[_0x4deab7(0xd4)][_0x4deab7(0x3e4)]:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0x253)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r['UniverInstanceType'][_0x4deab7(0x454)]:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0x1df)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r[_0x4deab7(0xd4)][_0x4deab7(0x315)]:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0x220)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r['UniverInstanceType'][_0x4deab7(0x341)]:_0x4f7d19=await this['_snapshotService']['loadPdf'](_0x46d2b7,_0x1f37ef,_0x22d338);break;default:this['_logService'][_0x4deab7(0x287)](_0x4deab7(0x23b),_0x4deab7(0x355));}return _0x4f7d19&&this[_0x4deab7(0x32c)][_0x4deab7(0xb9)](_0x4f7d19),_0x4f7d19;}};Y=b([y(0x0,r[_0x313905(0x26a)]),y(0x1,(0x0,r[_0x313905(0x377)])(n['SnapshotService'])),y(0x2,(0x0,r[_0x313905(0xe6)])(C))],Y);let X=class{constructor(_0x4523e7,_0x1afb05,_0x28b344){const _0x5f9fbe=_0x313905;this[_0x5f9fbe(0x2f1)]=_0x4523e7,this[_0x5f9fbe(0x2be)]=_0x1afb05,this[_0x5f9fbe(0x121)]=_0x28b344,_(this,_0x5f9fbe(0x17a),0x0),_(this,_0x5f9fbe(0x397),new t[(_0x5f9fbe(0xb7))]()),_(this,_0x5f9fbe(0x45a),this['_change$']),_(this,'_imageSourceCache',new Map());}[_0x313905(0x230)](_0x567ae7){const _0x27ac34=_0x313905;this[_0x27ac34(0x17a)]=_0x567ae7,this[_0x27ac34(0x397)]['next'](_0x567ae7);}['getImageSourceCache'](_0x20b67c,_0x48852f){const _0x1d8f11=_0x313905;if(_0x48852f===r[_0x1d8f11(0x2f4)][_0x1d8f11(0x29e)]){let _0x1b7ce3=new Image();return _0x1b7ce3['src']=_0x20b67c,_0x1b7ce3;}return this[_0x1d8f11(0x350)]['get'](_0x20b67c);}[_0x313905(0x353)](_0x5b9363,_0x1c6bf9,_0x3cadfe){const _0x1e003c=_0x313905;_0x1c6bf9!==r['ImageSourceType']['BASE64']&&_0x3cadfe!=null&&this[_0x1e003c(0x350)][_0x1e003c(0x245)](_0x5b9363,_0x3cadfe);}async[_0x313905(0x23f)](_0x4b9d86){const _0x2885bf=_0x313905;try{let _0x3f0f03=this[_0x2885bf(0x457)](this[_0x2885bf(0x3c1)](),''+_0x4b9d86),_0x1c91ba=(await this[_0x2885bf(0x2f1)][_0x2885bf(0xe5)](_0x3f0f03))[_0x2885bf(0x13e)];if(_0x1c91ba[_0x2885bf(0x287)]&&_0x1c91ba[_0x2885bf(0x287)]['code']===o[_0x2885bf(0x18b)]['OK']){let _0x39d54e=(0x0,r['resolveWithBasePath'])(_0x1c91ba['url'],this[_0x2885bf(0x2c8)]());return Promise[_0x2885bf(0xd3)](_0x39d54e);}return Promise[_0x2885bf(0xd7)](_0x1c91ba[_0x2885bf(0x287)]);}catch(_0x2d9b63){return Promise[_0x2885bf(0xd7)](_0x2d9b63);}}async[_0x313905(0x19c)](_0x194107){const _0x19ee9f=_0x313905;let _0x778a8='';if(!p[_0x19ee9f(0x1cc)][_0x19ee9f(0x310)](_0x194107[_0x19ee9f(0x133)]))return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r[_0x19ee9f(0x396)][_0x19ee9f(0x2cc)]));if(_0x194107[_0x19ee9f(0x187)]>(0x0,p['getDrawingImageAllowSize'])())return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r[_0x19ee9f(0x396)][_0x19ee9f(0x37b)]));try{let _0x372076=new FormData();_0x372076[_0x19ee9f(0x1b3)]('file',_0x194107);let _0x568742=this[_0x19ee9f(0x121)]['getFocusedUnit'](),_0x2a7eaa=_0x568742==null?void 0x0:_0x568742[_0x19ee9f(0x400)]();if(!_0x2a7eaa)throw Error(_0x19ee9f(0x316));let _0x12df8f=this[_0x19ee9f(0x337)]()+_0x19ee9f(0x33d)+_0x194107['size']['toString']()+_0x19ee9f(0x3fe)+o['FileSource'][_0x19ee9f(0xd8)]+_0x19ee9f(0x358)+encodeURIComponent(_0x2a7eaa),_0x147545={'body':_0x372076},_0x5376a1=(await this['_httpService'][_0x19ee9f(0x31d)](_0x12df8f,_0x147545))[_0x19ee9f(0x13e)];if(typeof _0x5376a1['FileId']!=_0x19ee9f(0x116))return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r['ImageUploadStatusType'][_0x19ee9f(0x2b6)]));_0x778a8=_0x5376a1[_0x19ee9f(0x297)];}catch{return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r[_0x19ee9f(0x396)][_0x19ee9f(0x2b6)]));}return new Promise((_0xa44194,_0x2c64c2)=>{const _0x10c560=_0x19ee9f;let _0x45b5ec=new FileReader();_0x45b5ec[_0x10c560(0x234)](_0x194107),_0x45b5ec[_0x10c560(0x10e)]=_0xe7e4e5=>{const _0x38dfca=_0x10c560;var _0x28a673;let _0x44e2c4=(_0x28a673=_0xe7e4e5['target'])==null?void 0x0:_0x28a673[_0x38dfca(0x31f)];_0x44e2c4==null?(this[_0x38dfca(0x1ce)](),_0x2c64c2(Error(r['ImageUploadStatusType'][_0x38dfca(0x2b6)]))):(_0xa44194({'imageId':(0x0,r[_0x38dfca(0x1b7)])(0x6),'imageSourceType':r[_0x38dfca(0x2f4)][_0x38dfca(0x1e3)],'source':_0x778a8,'base64Cache':_0x44e2c4,'status':r[_0x38dfca(0x396)][_0x38dfca(0x26f)]}),this[_0x38dfca(0x1ce)]());};});}[_0x313905(0x337)](){const _0x59d386=_0x313905;let _0x3e5dce=this[_0x59d386(0x2be)][_0x59d386(0x292)](m);return(_0x3e5dce==null?void 0x0:_0x3e5dce['uploadFileServerUrl'])??_0x59d386(0xca);}['_getSignURL'](){const _0x299ed2=_0x313905;let _0x2bdea4=this[_0x299ed2(0x2be)][_0x299ed2(0x292)](m);return(_0x2bdea4==null?void 0x0:_0x2bdea4['signUrlServerUrl'])??_0x299ed2(0x21d);}[_0x313905(0x2c8)](){const _0xbf6e42=_0x313905;let _0x5284b6=this['_configService'][_0xbf6e42(0x292)](m);return(_0x5284b6==null?void 0x0:_0x5284b6[_0xbf6e42(0x357)])??location['origin'];}[_0x313905(0x457)](_0x7d053f,_0x34fec3){const _0x3d47b6=_0x313905;return _0x7d053f[_0x3d47b6(0x183)](_0x3d47b6(0x1e7),_0x34fec3);}[_0x313905(0x1ce)](){const _0x5f3e62=_0x313905;--this[_0x5f3e62(0x17a)],this[_0x5f3e62(0x397)][_0x5f3e62(0xb9)](this[_0x5f3e62(0x17a)]);}};X=b([y(0x0,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)])),y(0x1,r['IConfigService']),y(0x2,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xbb)]))],X);let Z=class{constructor(_0x13f6d9,_0x474ecd){const _0x1ff318=_0x313905;this[_0x1ff318(0x2be)]=_0x13f6d9,this[_0x1ff318(0x332)]=_0x474ecd;}[_0x313905(0x1e2)](){const _0x171a66=_0x313905;let _0x4ed023=this['_configService'][_0x171a66(0x292)](m);return(_0x4ed023==null?void 0x0:_0x4ed023[_0x171a66(0x24e)])??_0x171a66(0x273);}async['list'](_0x2b1a80){const _0x2c8406=_0x313905;let _0x585250=this[_0x2c8406(0x1e2)]()+_0x2c8406(0x451);return{'list':[{'title':_0x2c8406(0x179),'mentions':(await this[_0x2c8406(0x332)][_0x2c8406(0xe5)](_0x585250,{'params':{'objectID':_0x2b1a80[_0x2c8406(0x39a)],'unitID':_0x2b1a80['unitId']}}))['body']['collaborators']['map'](_0x54a004=>({'objectId':_0x54a004['id'],'name':_0x54a004[_0x2c8406(0x1f4)]['name'],'metadata':{'icon':_0x54a004[_0x2c8406(0x1f4)][_0x2c8406(0x39d)]},'label':_0x54a004[_0x2c8406(0x1f4)][_0x2c8406(0x41b)],'objectType':r[_0x2c8406(0x3ce)][_0x2c8406(0x2c6)]})),'metadata':{},'type':r[_0x2c8406(0x3ce)][_0x2c8406(0x2c6)]}]};}};Z=b([y(0x0,(0x0,r[_0x313905(0x377)])(r['IConfigService'])),y(0x1,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)]))],Z);let Q=class extends r['RxDisposable']{constructor(_0x863df7,_0x1cf3c4,_0x5e06eb,_0x3511c0,_0x2d0a05,_0x3e686a){const _0x33a9b3=_0x313905;super(),this['_injector']=_0x863df7,this[_0x33a9b3(0x121)]=_0x1cf3c4,this['_permissionService']=_0x5e06eb,this['_authzIoService']=_0x3511c0,this[_0x33a9b3(0x240)]=_0x2d0a05,this[_0x33a9b3(0x37e)]=_0x3e686a,_(this,_0x33a9b3(0x3b9),new Set()),this[_0x33a9b3(0x25e)](()=>this[_0x33a9b3(0x3b9)][_0x33a9b3(0x1d5)]()),this[_0x33a9b3(0x25e)](ft(this['_univerInstanceService'])[_0x33a9b3(0x1c9)](({unitId:_0x27bb2a})=>this[_0x33a9b3(0x3b9)][_0x33a9b3(0x20e)](_0x27bb2a))),this[_0x33a9b3(0x42d)](),this[_0x33a9b3(0x278)](),[r['UniverInstanceType'][_0x33a9b3(0x2b0)],r[_0x33a9b3(0xd4)][_0x33a9b3(0x3e4)],r['UniverInstanceType'][_0x33a9b3(0x315)],r[_0x33a9b3(0xd4)][_0x33a9b3(0x454)]][_0x33a9b3(0xf3)](_0x3a36a2=>{const _0x390c9b=_0x33a9b3;this[_0x390c9b(0x25e)](this['_univerInstanceService'][_0x390c9b(0x1f5)](_0x3a36a2)['subscribe'](_0x22b3fd=>{const _0x1fd0b8=_0x390c9b;this[_0x1fd0b8(0x3b9)][_0x1fd0b8(0x24b)](_0x22b3fd[_0x1fd0b8(0x400)]()),this['_injector']['get'](r[_0x1fd0b8(0x2a6)])[_0x1fd0b8(0x368)](_0x22b3fd[_0x1fd0b8(0x400)]());}));});}[_0x313905(0x278)](){const _0x527b53=_0x313905;let _0x42d88c=async(_0x5b0af4,_0x25aa9c)=>{const _0x2c2422=_0x16c4;let _0x3c9781=await this[_0x2c2422(0x240)][_0x2c2422(0x3e0)](_0x5b0af4);this[_0x2c2422(0x3fa)]||this[_0x2c2422(0x3b9)]['has'](_0x5b0af4)||!this[_0x2c2422(0x121)][_0x2c2422(0x3b1)](_0x5b0af4)||_0x3c9781['event$'][_0x2c2422(0x24a)]((0x0,c[_0x2c2422(0x1c5)])(_0x35a37e=>_0x35a37e[_0x2c2422(0x280)]===n['CollaborationEvent'][_0x2c2422(0x158)]),(0x0,c[_0x2c2422(0x385)])((0x0,t['merge'])(this[_0x2c2422(0x42b)],this[_0x2c2422(0x121)]['unitDisposed$']['pipe']((0x0,c[_0x2c2422(0x1c5)])(_0x52125d=>_0x52125d[_0x2c2422(0x400)]()===_0x5b0af4)))))[_0x2c2422(0x1c9)](_0x5c62f6=>{const _0x2ac058=_0x2c2422;let {reason:_0x36c8f7}=_0x5c62f6['data'];this['_collaborationUIEventService'][_0x2ac058(0x117)]({'id':_0x2ac058(0x1eb),'data':_0x36c8f7}),this[_0x2ac058(0x3b9)][_0x2ac058(0x24b)](_0x5b0af4),this[_0x2ac058(0x2a2)][_0x2ac058(0xe5)](r['ObjectPermissionService'])['clearUnit'](_0x5b0af4);let _0x460434=pt(_0x25aa9c);_0x460434!=null&&this[_0x2ac058(0x170)](_0x5b0af4,_0x460434,o['UnitAction']['Edit'],!0x1),this[_0x2ac058(0x240)][_0x2ac058(0x44a)](_0x5b0af4);});};ft(this[_0x527b53(0x121)])['pipe']((0x0,c[_0x527b53(0x1c5)])(({unitId:_0x59fa63})=>!(0x0,r[_0x527b53(0x419)])(_0x59fa63)),(0x0,c['takeUntil'])(this[_0x527b53(0x42b)]))[_0x527b53(0x1c9)](({type:_0x4ccd2c,unitId:_0x4f052a})=>{const _0x3fe4fa=_0x527b53;_0x42d88c(_0x4f052a,_0x4ccd2c)['catch'](_0x3d1477=>this[_0x3fe4fa(0x2a2)][_0x3fe4fa(0xe5)](r['ILogService'])[_0x3fe4fa(0x287)](_0x3d1477));});}[_0x313905(0x42d)](){const _0x27bbc5=_0x313905;let _0x4b2184=async(_0x4480f8,_0x2942fd)=>{const _0x3e359e=_0x16c4;let _0x63dfb3=await this[_0x3e359e(0x240)][_0x3e359e(0x3e0)](_0x4480f8);if(!(this[_0x3e359e(0x3fa)]||this[_0x3e359e(0x3b9)][_0x3e359e(0x3ae)](_0x4480f8)||!this[_0x3e359e(0x121)][_0x3e359e(0x3b1)](_0x4480f8))){if(_0x2942fd===r['UniverInstanceType'][_0x3e359e(0x155)]){let _0x2f7c46=this['_injector'][_0x3e359e(0xe5)](a[_0x3e359e(0x125)]);await _0x2f7c46['initWorkbookPermissionChange'](_0x4480f8),_0x63dfb3['event$']['pipe']((0x0,c[_0x3e359e(0x1c5)])(_0x3516e4=>_0x3516e4[_0x3e359e(0x280)]===n[_0x3e359e(0x2ce)][_0x3e359e(0x21f)]),(0x0,c[_0x3e359e(0x385)])((0x0,t[_0x3e359e(0x1d4)])(this[_0x3e359e(0x42b)],_0x63dfb3[_0x3e359e(0x2ed)][_0x3e359e(0x24a)]((0x0,c[_0x3e359e(0x1c5)])(_0xba07af=>_0xba07af[_0x3e359e(0x280)]===n['CollaborationEvent'][_0x3e359e(0x158)])),this[_0x3e359e(0x121)][_0x3e359e(0x3d5)]['pipe']((0x0,c[_0x3e359e(0x1c5)])(_0xdc669a=>_0xdc669a[_0x3e359e(0x400)]()===_0x4480f8)))))[_0x3e359e(0x1c9)](_0x3b7da8=>{const _0x12a9da=_0x3e359e;let {objectId:_0x28ad72}=_0x3b7da8[_0x12a9da(0x335)];_0x28ad72===_0x4480f8?_0x2f7c46[_0x12a9da(0x45d)](_0x4480f8):_0x2f7c46[_0x12a9da(0x2a0)](_0x4480f8,_0x28ad72);});}else _0x63dfb3[_0x3e359e(0x2ed)]['pipe']((0x0,c[_0x3e359e(0x1c5)])(_0x5a0a92=>_0x5a0a92[_0x3e359e(0x280)]===n[_0x3e359e(0x2ce)][_0x3e359e(0x21f)]),(0x0,c['takeUntil'])((0x0,t['merge'])(this[_0x3e359e(0x42b)],_0x63dfb3['event$'][_0x3e359e(0x24a)]((0x0,c['filter'])(_0x194273=>_0x194273['eventID']===n['CollaborationEvent'][_0x3e359e(0x158)])),this[_0x3e359e(0x121)]['unitDisposed$'][_0x3e359e(0x24a)]((0x0,c[_0x3e359e(0x1c5)])(_0x27e080=>_0x27e080['getUnitId']()===_0x4480f8)))))[_0x3e359e(0x1c9)](()=>{const _0x4b82d6=_0x3e359e;this[_0x4b82d6(0x1dd)](_0x4480f8,_0x2942fd)[_0x4b82d6(0x3bb)](_0x41c087=>this[_0x4b82d6(0x2a2)][_0x4b82d6(0xe5)](r[_0x4b82d6(0x26a)])[_0x4b82d6(0x287)](_0x41c087));}),await this['_refreshUnitPermission'](_0x4480f8,_0x2942fd);}};ft(this[_0x27bbc5(0x121)])[_0x27bbc5(0x24a)]((0x0,c[_0x27bbc5(0x1c5)])(({unitId:_0x1864d8})=>!(0x0,r[_0x27bbc5(0x419)])(_0x1864d8)),(0x0,c[_0x27bbc5(0x385)])(this[_0x27bbc5(0x42b)]))[_0x27bbc5(0x1c9)](({type:_0x1a924d,unitId:_0x11acb1})=>{const _0x47758a=_0x27bbc5;_0x4b2184(_0x11acb1,_0x1a924d)[_0x47758a(0x3bb)](_0x5c0602=>this['_injector'][_0x47758a(0xe5)](r[_0x47758a(0x26a)])[_0x47758a(0x287)](_0x5c0602));});}async[_0x313905(0x1dd)](_0x3d0610,_0x168965){const _0x3a593b=_0x313905;let _0x2b1db1=pt(_0x168965);if(_0x2b1db1==null)return;let _0x45a9f2=this['_injector'][_0x3a593b(0xe5)](r['ObjectPermissionService']);if(_0x45a9f2[_0x3a593b(0x2f5)]({'unitId':_0x3d0610,'objectId':_0x3d0610,'objectType':_0x2b1db1})){await _0x45a9f2[_0x3a593b(0x18f)](_0x3d0610);return;}let _0x261c39=this[_0x3a593b(0x304)](_0x3d0610,_0x2b1db1);if(!_0x261c39[_0x3a593b(0x1f6)])return;let _0x5c3e64=await this[_0x3a593b(0xdc)][_0x3a593b(0x3a6)]({'objectID':_0x3d0610,'objectType':_0x2b1db1,'unitID':_0x3d0610,'actions':_0x261c39[_0x3a593b(0x180)](({action:_0x5a6a09})=>_0x5a6a09)});this['_disposed']||this[_0x3a593b(0x3b9)][_0x3a593b(0x3ae)](_0x3d0610)||!this['_univerInstanceService']['getUnit'](_0x3d0610)||_0x5c3e64[_0x3a593b(0xf3)](_0x11ff91=>{const _0x8123c=_0x3a593b;let _0x13ebca=_0x11ff91[_0x8123c(0x18e)],_0x2adcc6=_0x11ff91[_0x8123c(0x3a6)];_0x13ebca!=null&&_0x2adcc6!=null&&_0x261c39[_0x8123c(0x1c5)](_0x25a805=>_0x25a805['action']===_0x13ebca)['forEach'](_0x53a11f=>this['_permissionService'][_0x8123c(0x43b)](_0x53a11f['id'],_0x2adcc6));});}[_0x313905(0x304)](_0x29e272,_0x4b1a74){const _0x48101f=_0x313905;let _0x1afa74=[];return this['_permissionService'][_0x48101f(0xfe)]()[_0x48101f(0xf3)]((_0x4c4623,_0x7fec9e)=>{const _0x48f139=_0x48101f;_0x4c4623['subscribe'](_0x3dd2d7=>{const _0x35fec6=_0x16c4;_0x3dd2d7['type']===_0x4b1a74&&_0x35fec6(0x39a)in _0x3dd2d7&&_0x3dd2d7['unitId']===_0x29e272&&(!(_0x35fec6(0x1fd)in _0x3dd2d7)||_0x3dd2d7['objectId']===_0x29e272)&&_0x1afa74[_0x35fec6(0x101)]({'id':_0x7fec9e,'action':_0x3dd2d7[_0x35fec6(0x2cb)]});})[_0x48f139(0xbd)]();}),_0x1afa74;}[_0x313905(0x170)](_0x41f4bf,_0x1cdb89,_0x385b2f,_0x3262c1){const _0x38cfb2=_0x313905;this[_0x38cfb2(0x3ed)][_0x38cfb2(0xfe)]()[_0x38cfb2(0xf3)]((_0x5745cf,_0x958ade)=>{const _0x616cc4=_0x38cfb2;let _0x22da7f=!0x1;_0x5745cf[_0x616cc4(0x1c9)](_0x21b147=>{const _0x3e7293=_0x616cc4;_0x22da7f=_0x21b147[_0x3e7293(0x133)]===_0x1cdb89&&_0x21b147[_0x3e7293(0x2cb)]===_0x385b2f&&_0x3e7293(0x39a)in _0x21b147&&_0x21b147[_0x3e7293(0x39a)]===_0x41f4bf&&(!('objectId'in _0x21b147)||_0x21b147[_0x3e7293(0x1fd)]===_0x41f4bf);})[_0x616cc4(0xbd)](),_0x22da7f&&this['_permissionService']['updatePermissionPoint'](_0x958ade,_0x3262c1);});}};Q=b([y(0x0,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x1,r[_0x313905(0xbb)]),y(0x2,r[_0x313905(0x132)]),y(0x3,r[_0x313905(0x456)]),y(0x4,(0x0,r[_0x313905(0x377)])(U)),y(0x5,(0x0,r[_0x313905(0x377)])(v))],Q);function ft(_0x2f0975){const _0x4c0989=_0x313905;return(0x0,t['merge'])(...[r[_0x4c0989(0xd4)][_0x4c0989(0x155)],r[_0x4c0989(0xd4)][_0x4c0989(0x2b0)],r[_0x4c0989(0xd4)][_0x4c0989(0x3e4)],r[_0x4c0989(0xd4)][_0x4c0989(0x454)],r[_0x4c0989(0xd4)][_0x4c0989(0x315)]][_0x4c0989(0x180)](_0x16cc56=>_0x2f0975[_0x4c0989(0x34b)](_0x16cc56)[_0x4c0989(0x24a)]((0x0,c[_0x4c0989(0x180)])(_0x6d78ac=>({'type':_0x16cc56,'unitId':_0x6d78ac[_0x4c0989(0x2bb)][_0x4c0989(0x400)]()})))));}function pt(_0x38cab0){const _0x1b8253=_0x313905;switch(_0x38cab0){case r[_0x1b8253(0xd4)]['UNIVER_SHEET']:return o[_0x1b8253(0x11c)][_0x1b8253(0x16a)];case r[_0x1b8253(0xd4)][_0x1b8253(0x2b0)]:return o['UnitObject']['Document'];case r[_0x1b8253(0xd4)][_0x1b8253(0x3e4)]:return o[_0x1b8253(0x11c)][_0x1b8253(0x23c)];case r[_0x1b8253(0xd4)][_0x1b8253(0x454)]:return o[_0x1b8253(0x11c)][_0x1b8253(0x259)];case r[_0x1b8253(0xd4)][_0x1b8253(0x315)]:return o[_0x1b8253(0x11c)]['Base'];default:return;}}let mt=class{constructor(_0x57b0fe,_0x43ef5){const _0x384e6c=_0x313905;this[_0x384e6c(0x2be)]=_0x57b0fe,this[_0x384e6c(0x2f1)]=_0x43ef5;}async[_0x313905(0x25c)](_0x298712,_0x2c500d){const _0x1d3291=_0x313905;var _0x4329e8;let {unitID:_0x13748d,type:_0x56914f,revision:_0x35a02e=0x0}=_0x2c500d,_0x1fc97b=this[_0x1d3291(0x122)]()+'/'+_0x56914f+'/unit/'+_0x13748d+_0x1d3291(0x2af)+_0x35a02e,_0x42badd=(await this['_httpService']['get'](_0x1fc97b))[_0x1d3291(0x13e)],_0x1f34b5=(_0x4329e8=_0x42badd[_0x1d3291(0x3b8)])==null?void 0x0:_0x4329e8[_0x1d3291(0x42a)];if(_0x1f34b5){let _0x2b1d1f=_0x1f34b5==null?void 0x0:_0x1f34b5[_0x1d3291(0x22b)];_0x1f34b5['originalMeta']=n[_0x1d3291(0x458)]['encode']((0x0,n[_0x1d3291(0x213)])(_0x2b1d1f)),Object['entries'](_0x1f34b5['sheets'])[_0x1d3291(0xf3)](([,_0x52a175])=>{const _0x419510=_0x1d3291;let _0x46814f=_0x52a175[_0x419510(0x22b)];_0x52a175[_0x419510(0x22b)]=n['textEncoder']['encode']((0x0,n[_0x419510(0x213)])(_0x46814f));});}return _0x42badd;}async[_0x313905(0x251)](_0x10770d,_0x5b5139){const _0x129313=_0x313905;let {unitID:_0x23cbe2,type:_0x230c55,blockID:_0x13b846}=_0x5b5139,_0x30b290=this[_0x129313(0x1c7)]()+'/'+_0x230c55+_0x129313(0x166)+_0x23cbe2+_0x129313(0x1e5)+_0x13b846;return(await this['_httpService']['get'](_0x30b290))['body'];}async['getDeserializedSheetBlock'](_0x7afc96,_0x3488d8){const _0xde0d65=_0x313905;let {unitID:_0xb56d83,type:_0x835108,blockID:_0x2a1be3}=_0x3488d8,_0x2c56f4=this[_0xde0d65(0x1c7)]()+_0xde0d65(0x1e5)+_0x835108+_0xde0d65(0x166)+_0xb56d83+_0xde0d65(0x1e5)+_0x2a1be3;return(await this[_0xde0d65(0x2f1)][_0xde0d65(0xe5)](_0x2c56f4))[_0xde0d65(0x13e)];}async[_0x313905(0x156)](_0x3eb476,_0x241cd7){const _0x1ae736=_0x313905;let {unitID:_0x12f274,type:_0x19b3a5,from:_0x3e9b2a,to:_0x33d5db}=_0x241cd7,_0x420b3f=this['_getAPIPrefix']()+'/'+_0x19b3a5+_0x1ae736(0x166)+_0x12f274+_0x1ae736(0x314)+_0x3e9b2a+_0x1ae736(0x365)+_0x33d5db;return(await this[_0x1ae736(0x2f1)]['get'](_0x420b3f))[_0x1ae736(0x13e)];}[_0x313905(0x122)](){const _0x40f360=_0x313905;return this[_0x40f360(0x2be)]['getConfig'](_0x40f360(0x336))??this[_0x40f360(0x1c7)]();}['_getAPIPrefix'](){const _0x174bce=_0x313905;let _0xb627bf=this['_configService'][_0x174bce(0x292)](m);return(_0xb627bf==null?void 0x0:_0xb627bf['snapshotServerUrl'])??'/universer-api/snapshot';}async[_0x313905(0x2b9)](_0x1bd98f,_0x4f6c67){const _0x40c51c=_0x313905;let _0x28463d=_0x40c51c(0x439)+_0x4f6c67[_0x40c51c(0x133)]+_0x40c51c(0x166)+_0x4f6c67[_0x40c51c(0x181)]+_0x40c51c(0x14d);return(await this[_0x40c51c(0x2f1)][_0x40c51c(0xe5)](_0x28463d,{'params':{'resourceId':JSON[_0x40c51c(0x321)](_0x4f6c67[_0x40c51c(0x26e)])}}))[_0x40c51c(0x13e)];}[_0x313905(0x2c2)](){const _0x493f56=_0x313905;throw Error(_0x493f56(0x320));}[_0x313905(0x13c)](){const _0x4042a8=_0x313905;throw Error(_0x4042a8(0x320));}[_0x313905(0x23d)](){const _0xe922f6=_0x313905;throw Error(_0xe922f6(0x320));}[_0x313905(0x13f)](){const _0x552454=_0x313905;throw Error(_0x552454(0x320));}[_0x313905(0x270)](){const _0x482e3b=_0x313905;throw Error(_0x482e3b(0x320));}[_0x313905(0x3f1)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};mt=b([y(0x0,r['IConfigService']),y(0x1,(0x0,r[_0x313905(0x377)])(e['HTTPService']))],mt);let ht=class extends r[_0x313905(0x24d)]{constructor(_0x3bf0fd,_0x58e688,_0x182f0a,_0x4aa511,_0x27f2cd,_0x37f7ac){const _0x5d22d6=_0x313905;super(_0x3bf0fd,_0x58e688,_0x182f0a,_0x4aa511),this[_0x5d22d6(0x1a7)]=_0x27f2cd,this[_0x5d22d6(0x1c1)]=_0x37f7ac;}[_0x313905(0xff)](_0x25f42,_0x5776df){const _0x4ce962=_0x313905;let _0xfca70b=this[_0x4ce962(0x2fe)](_0x25f42);if(_0xfca70b)try{let _0x3a1e0b=this[_0x4ce962(0x148)](_0xfca70b,_0x5776df);this[_0x4ce962(0x3e9)](_0x25f42,_0x3a1e0b);}catch(_0x3ef1b8){this[_0x4ce962(0x1c1)]['error'](_0x4ce962(0xae),_0x3ef1b8),this[_0x4ce962(0x1e4)](_0x25f42);}let _0xa417d4=this[_0x4ce962(0xe9)](_0x25f42);if(_0xa417d4)try{let _0x14315b=this[_0x4ce962(0x148)](_0xa417d4,_0x5776df,!0x0);this[_0x4ce962(0x20c)](_0x25f42,_0x14315b);}catch(_0x1ac17c){this[_0x4ce962(0x1c1)][_0x4ce962(0x287)](_0x1ac17c),this[_0x4ce962(0x2fa)](_0x25f42);}}[_0x313905(0x1e4)](_0x583d92){const _0x133cf5=_0x313905;let _0x569787=this[_0x133cf5(0x2fe)](_0x583d92);_0x569787&&(_0x569787[_0x133cf5(0x1f6)]=0x0,this[_0x133cf5(0x150)]());}[_0x313905(0x2fa)](_0x221a1a){const _0x834ed1=_0x313905;let _0x453ae1=this[_0x834ed1(0xe9)](_0x221a1a);_0x453ae1&&(_0x453ae1[_0x834ed1(0x1f6)]=0x0,this[_0x834ed1(0x150)]());}[_0x313905(0x3e9)](_0x4b1cdb,_0x3d53cb){const _0x3e56c0=_0x313905;this[_0x3e56c0(0xf5)][_0x3e56c0(0x245)](_0x4b1cdb,_0x3d53cb),this['_updateStatus']();}[_0x313905(0x20c)](_0x5c103e,_0x2c62af){this['_redoStacks']['set'](_0x5c103e,_0x2c62af),this['_updateStatus']();}[_0x313905(0x148)](_0x506918,_0x458ff1,_0x427f91=!0x1){const _0x47b4d4=_0x313905;if(!_0x506918['length'])return[];let _0x36a210=[],_0x3e9471=_0x458ff1,_0x33d923=_0x458ff1['type']===r[_0x47b4d4(0xd4)][_0x47b4d4(0x2b0)]?this[_0x47b4d4(0x121)]['getUnit'](_0x458ff1[_0x47b4d4(0x181)],r[_0x47b4d4(0xd4)][_0x47b4d4(0x2b0)]):null,_0x4a6a38=_0x33d923?{'id':_0x33d923[_0x47b4d4(0x400)](),'documentStyle':{},'tableSource':r['Tools'][_0x47b4d4(0x33b)](_0x33d923[_0x47b4d4(0xf7)]()['tableSource']??{})}:null;for(let _0xbb3443=_0x506918[_0x47b4d4(0x1f6)]-0x1;_0xbb3443>=0x0;_0xbb3443--){let {unitID:_0x10b36d,undoMutations:_0x38b6a2,redoMutations:_0x1133a1}=_0x506918[_0xbb3443],_0x5d9834=_0x427f91?_0x1133a1:_0x38b6a2,_0x3f60e5=this[_0x47b4d4(0x119)](_0x3e9471,_0x5d9834);if((0x0,n[_0x47b4d4(0x1d7)])(_0x3f60e5)){this[_0x47b4d4(0x1c1)][_0x47b4d4(0x287)](_0x47b4d4(0xae),_0x47b4d4(0xb6),_0x3f60e5);break;}let _0x205309=_0x427f91?_0x38b6a2:_0x1133a1,_0x45ab20=this[_0x47b4d4(0x119)](_0x3f60e5[_0x47b4d4(0x2e3)],_0x205309);if((0x0,n['isTransformMutationsWithChangesetFailure'])(_0x45ab20)){this['_logService'][_0x47b4d4(0x287)]('[CollaborationUndoRedoService]',_0x47b4d4(0xb6),_0x45ab20);break;}let _0x1b9856=_0x427f91?_0x45ab20:_0x3f60e5,_0x1f2b2a=_0x427f91?_0x3f60e5:_0x45ab20;_0x3e9471=_0x3f60e5[_0x47b4d4(0x2e3)],_0x4a6a38&&=this[_0x47b4d4(0x217)](_0x4a6a38,_0x3f60e5['m2Prime'],_0x45ab20[_0x47b4d4(0x248)]),_0x36a210[_0x47b4d4(0x101)]({'unitID':_0x10b36d,'undoMutations':_0x1b9856[_0x47b4d4(0x248)],'redoMutations':_0x1f2b2a[_0x47b4d4(0x248)]});}return _0x36a210[_0x47b4d4(0x153)]();}[_0x313905(0x119)](_0x3633a8,_0x4e94ad){const _0xc74aa6=_0x313905;if(_0x3633a8[_0xc74aa6(0x133)]!==r[_0xc74aa6(0xd4)][_0xc74aa6(0x2b0)]||_0x4e94ad['some'](_0x199546=>_0x199546['id']!==i[_0xc74aa6(0x1d0)]['id']))return this['_transformService'][_0xc74aa6(0x356)](_0x3633a8,_0x4e94ad);let _0x32821b=r[_0xc74aa6(0x40c)][_0xc74aa6(0x33b)](_0x4e94ad),_0x402dbf=[];for(let _0xe4f0c3 of _0x3633a8['mutations']){let _0x418672={..._0x3633a8,'mutations':[_0xe4f0c3]},_0x31b0a8=[];for(let _0x4f7d36 of _0x32821b){_0x418672=this[_0xc74aa6(0x1d6)](_0x418672,[_0x4f7d36]);let _0xf2adb6=this['_transformService'][_0xc74aa6(0x356)](_0x418672,[_0x4f7d36]);if((0x0,n[_0xc74aa6(0x1d7)])(_0xf2adb6))return _0xf2adb6;_0x418672=_0xf2adb6[_0xc74aa6(0x2e3)],_0x31b0a8[_0xc74aa6(0x101)](..._0xf2adb6[_0xc74aa6(0x248)]);}_0x32821b=_0x31b0a8,_0x402dbf[_0xc74aa6(0x101)](..._0x418672[_0xc74aa6(0x23a)]);}return{'m2Prime':_0x32821b,'c1Prime':{..._0x3633a8,'mutations':_0x402dbf}};}['_rebaseParagraphHistory'](_0x259ebd,_0x4a5407){const _0xde7baa=_0x313905;let _0xc45f39=new Map(),_0xb3ccaa=r[_0xde7baa(0x23e)][_0xde7baa(0x133)][_0xde7baa(0xab)](_0x4a5407[0x0]['params'][_0xde7baa(0x465)]);if(_0xb3ccaa[_0xde7baa(0x1bf)](null,_0x342f69=>{const _0x28c816=_0xde7baa;if(_0x342f69['et']!==_0x28c816(0x267))return;let _0x4eadb8=JSON[_0x28c816(0x321)](_0xb3ccaa[_0x28c816(0x376)]()),_0xe7031b=_0xc45f39[_0x28c816(0xe5)](_0x4eadb8)??new Map(),_0x573a49=0x0;for(let _0x4d1478 of _0x342f69['e']){if(_0x4d1478['t']===r[_0x28c816(0x208)]['RETAIN']){var _0x3316fb;for(let _0x3c85fd of((_0x3316fb=_0x4d1478[_0x28c816(0x13e)])==null?void 0x0:_0x3316fb[_0x28c816(0x2a5)])??[])_0xe7031b[_0x28c816(0x245)](_0x573a49+_0x3c85fd[_0x28c816(0x30d)],{'paragraph':_0x3c85fd,'replace':_0x4d1478[_0x28c816(0x389)]===r[_0x28c816(0x182)][_0x28c816(0x19e)]});}_0x4d1478['t']!==r[_0x28c816(0x208)][_0x28c816(0x2c0)]&&(_0x573a49+=_0x4d1478['len']);}_0xe7031b[_0x28c816(0x187)]>0x0&&_0xc45f39[_0x28c816(0x245)](_0x4eadb8,_0xe7031b);}),_0xc45f39['size']===0x0)return _0x259ebd;let _0x135a9c=r['Tools'][_0xde7baa(0x33b)](_0x259ebd);for(let _0x3a627a of _0x135a9c['mutations']){if(_0x3a627a['id']!==i[_0xde7baa(0x1d0)]['id'])continue;let _0x5713e2=r[_0xde7baa(0x23e)][_0xde7baa(0x133)]['readCursor'](_0x3a627a['params']['actions']);_0x5713e2['traverse'](null,_0x50c15a=>{const _0x5e59be=_0xde7baa;if(_0x50c15a['et']!==_0x5e59be(0x267))return;let _0x2b5ed1=JSON[_0x5e59be(0x321)](_0x5713e2[_0x5e59be(0x376)]()),_0x19eddb=_0xc45f39['get'](_0x2b5ed1);if(!(_0x19eddb!=null&&_0x19eddb[_0x5e59be(0x187)]))return;let _0x51430c=0x0;for(let _0x48ab0a of _0x50c15a['e']){if(_0x48ab0a['t']===r['TextXActionType']['RETAIN']&&_0x48ab0a['coverType']===r[_0x5e59be(0x182)][_0x5e59be(0x19e)]){var _0x424b8e;for(let _0x286160 of((_0x424b8e=_0x48ab0a[_0x5e59be(0x13e)])==null?void 0x0:_0x424b8e[_0x5e59be(0x2a5)])??[]){var _0x54e3eb;let _0x51d555=(_0x54e3eb=_0x48ab0a['oldBody'])==null||(_0x54e3eb=_0x54e3eb[_0x5e59be(0x2a5)])==null?void 0x0:_0x54e3eb[_0x5e59be(0x3d1)](_0x139692=>_0x139692[_0x5e59be(0x30d)]===_0x286160['startIndex']),_0x45a4a8=_0x19eddb[_0x5e59be(0xe5)](_0x51430c+_0x286160[_0x5e59be(0x30d)]);if(_0x51d555&&_0x45a4a8){this['_rebaseUnchangedAttributes'](_0x286160,_0x51d555,_0x45a4a8[_0x5e59be(0x185)],_0x45a4a8[_0x5e59be(0x183)]);let _0x4c13ac=_0x45a4a8[_0x5e59be(0x183)]?new Set([...Object[_0x5e59be(0x3a2)](_0x45a4a8['paragraph']),...Object['keys'](_0x286160)]):Object[_0x5e59be(0x3a2)](_0x45a4a8[_0x5e59be(0x185)]);for(let _0x47743f of _0x4c13ac){if(_0x47743f===_0x5e59be(0x30d)||_0x47743f===_0x5e59be(0x438))continue;let _0x18d3ff=Reflect[_0x5e59be(0xe5)](_0x286160,_0x47743f);_0x18d3ff===void 0x0?Reflect['deleteProperty'](_0x45a4a8[_0x5e59be(0x185)],_0x47743f):Reflect[_0x5e59be(0x245)](_0x45a4a8[_0x5e59be(0x185)],_0x47743f,r[_0x5e59be(0x40c)][_0x5e59be(0x33b)](_0x18d3ff));}}}}_0x48ab0a['t']!==r[_0x5e59be(0x208)][_0x5e59be(0x2c0)]&&(_0x51430c+=_0x48ab0a[_0x5e59be(0x2df)]);}});}return _0x135a9c;}[_0x313905(0x2d8)](_0xabc716,_0x420883,_0x1f9b81,_0x1daa3b){const _0x11fb57=_0x313905;let _0x3d8dc1=new Set([...Object[_0x11fb57(0x3a2)](_0xabc716),...Object[_0x11fb57(0x3a2)](_0x420883),...Object[_0x11fb57(0x3a2)](_0x1f9b81)]);for(let _0x408a9e of _0x3d8dc1){if(_0x408a9e==='startIndex'||_0x408a9e===_0x11fb57(0x438))continue;let _0x2cf544=Reflect[_0x11fb57(0xe5)](_0xabc716,_0x408a9e),_0x29b7f9=Reflect['get'](_0x420883,_0x408a9e),_0x4c4baa=Reflect['get'](_0x1f9b81,_0x408a9e);if(_0x1daa3b||_0x4c4baa!==void 0x0){if(r[_0x11fb57(0x40c)][_0x11fb57(0x41a)](_0x2cf544,_0x29b7f9))_0x4c4baa===void 0x0?(Reflect[_0x11fb57(0xe7)](_0xabc716,_0x408a9e),Reflect[_0x11fb57(0xe7)](_0x420883,_0x408a9e)):(Reflect[_0x11fb57(0x245)](_0xabc716,_0x408a9e,r[_0x11fb57(0x40c)]['deepClone'](_0x4c4baa)),Reflect[_0x11fb57(0x245)](_0x420883,_0x408a9e,r[_0x11fb57(0x40c)][_0x11fb57(0x33b)](_0x4c4baa)));else{if(r['Tools'][_0x11fb57(0xb2)](_0x2cf544)&&(r[_0x11fb57(0x40c)][_0x11fb57(0xb2)](_0x29b7f9)||_0x29b7f9===void 0x0)){let _0x3b25fe=_0x29b7f9??{};this[_0x11fb57(0x2d8)](_0x2cf544,_0x3b25fe,r[_0x11fb57(0x40c)][_0x11fb57(0xb2)](_0x4c4baa)?_0x4c4baa:{},_0x1daa3b),(_0x29b7f9!==void 0x0||Object['keys'](_0x3b25fe)[_0x11fb57(0x1f6)]>0x0)&&Reflect[_0x11fb57(0x245)](_0x420883,_0x408a9e,_0x3b25fe);}}}}}['_invertDocumentHistory'](_0x147ced,_0x4533c4,_0x4b3725){const _0x5ba4ed=_0x313905;if(_0x4533c4[_0x5ba4ed(0x1f6)]!==0x1||_0x4b3725[_0x5ba4ed(0x1f6)]!==0x1||_0x4533c4[0x0]['id']!==i['RichTextEditingMutation']['id']||_0x4b3725[0x0]['id']!==i[_0x5ba4ed(0x1d0)]['id'])return _0x147ced;let _0x556946=_0x4533c4[0x0][_0x5ba4ed(0x1a1)],_0x38bc20=_0x4b3725[0x0]['params'],_0x5689c6=this[_0x5ba4ed(0x416)](_0x556946[_0x5ba4ed(0x465)],!0x0);return r[_0x5ba4ed(0x27b)][_0x5ba4ed(0x260)](_0x5689c6)?_0x147ced:(_0x38bc20[_0x5ba4ed(0x465)]=r[_0x5ba4ed(0x27b)][_0x5ba4ed(0x3e3)](this['_filterTableActions'](_0x38bc20['actions'],!0x1),r[_0x5ba4ed(0x27b)]['invertWithDoc'](_0x5689c6,_0x147ced)),r[_0x5ba4ed(0x27b)]['apply'](_0x147ced,_0x5689c6)??_0x147ced);}[_0x313905(0x416)](_0x16e141,_0x161007){const _0x2e488e=_0x313905;let _0x4561f4=r[_0x2e488e(0x23e)][_0x2e488e(0x133)][_0x2e488e(0xab)](_0x16e141),_0x5257b5=r[_0x2e488e(0x23e)]['type'][_0x2e488e(0x269)]();return _0x4561f4['traverse'](null,_0x437f4d=>{const _0x15bb7f=_0x2e488e;let _0x2a4140=_0x4561f4[_0x15bb7f(0x376)]();if(_0x2a4140[0x0]==='tableSource'===_0x161007){for(let _0x2f75cf of Object[_0x15bb7f(0x3a2)](_0x437f4d))_0x5257b5[_0x15bb7f(0x449)](_0x2a4140,_0x2f75cf,_0x437f4d[_0x2f75cf]);}}),_0x5257b5[_0x2e488e(0xe5)]();}};ht=b([y(0x0,r[_0x313905(0xbb)]),y(0x1,r[_0x313905(0x296)]),y(0x2,r[_0x313905(0x13a)]),y(0x3,r[_0x313905(0x21c)]),y(0x4,n[_0x313905(0x3cf)]),y(0x5,r[_0x313905(0x26a)])],ht);let $=class extends r['Plugin']{constructor(_0x1fdb10=h,_0x263b84,_0x2f186f,_0x231639){const _0x579a93=_0x313905;super(),this[_0x579a93(0x3a0)]=_0x1fdb10,this[_0x579a93(0x1c1)]=_0x263b84,this[_0x579a93(0x2a2)]=_0x2f186f,this[_0x579a93(0x2be)]=_0x231639;let {..._0x594874}=(0x0,r[_0x579a93(0x1d4)])({},h,this[_0x579a93(0x3a0)]);if(!_0x594874['socketService'])throw Error(_0x579a93(0x3f0));this[_0x579a93(0x3a0)]=_0x594874,this[_0x579a93(0x2be)][_0x579a93(0x3ab)](m,_0x594874);}[_0x313905(0x3a1)](){const _0x5274fa=_0x313905;this[_0x5274fa(0x2be)][_0x5274fa(0x3ab)](r[_0x5274fa(0x142)],this[_0x5274fa(0x3a0)][_0x5274fa(0x1cb)]??[]),this[_0x5274fa(0x203)](),this['_initDependencies']();}['_registerDependencies'](){const _0x40e709=_0x313905;var _0x1887bb,_0x5c63c8;this[_0x40e709(0x2a2)][_0x40e709(0x3ae)](r[_0x40e709(0xb1)])&&this[_0x40e709(0x1c1)][_0x40e709(0x287)](_0x40e709(0x141),_0x40e709(0x2e5));let _0x5d2fad=(0x0,r[_0x40e709(0x1f7)])([[r[_0x40e709(0xb1)],{'useClass':ht}],[Qe,{'useValue':$e()}],[U],[x],[w],[K],[J],[se],[Q],[v],[Y],[Je,{'useClass':this[_0x40e709(0x3a0)][_0x40e709(0x223)]}],[n[_0x40e709(0x1dc)],{'useClass':mt}],[r[_0x40e709(0x456)],{'useClass':q}],[r[_0x40e709(0xe2)],{'useClass':X}],[ot,{'useClass':G}],[r['IMentionIOService'],{'useClass':Z}],[W],[at]],(_0x1887bb=this['_config'])==null?void 0x0:_0x1887bb[_0x40e709(0x3c5)]);if(!((_0x5c63c8=this[_0x40e709(0x3a0)])!=null&&_0x5c63c8['enableSingleActiveInstanceLock'])){let _0x4b9b4b=_0x5d2fad[_0x40e709(0x423)](([_0x5d15ac])=>_0x5d15ac===T);_0x4b9b4b!==-0x1&&_0x5d2fad[_0x40e709(0x44e)](_0x4b9b4b,0x1);}(0x0,r[_0x40e709(0x135)])(this[_0x40e709(0x2a2)],_0x5d2fad);}[_0x313905(0x173)](){const _0x4aa2cb=_0x313905;var _0x4095c9,_0x36d9ba;if(this[_0x4aa2cb(0x2a2)][_0x4aa2cb(0xe5)](e['HTTPService'])[_0x4aa2cb(0x3b4)]({'priority':0x14,'interceptor':(0x0,e[_0x4aa2cb(0x34c)])({'maxParallel':0x6})}),!((_0x4095c9=this[_0x4aa2cb(0x3a0)])!=null&&_0x4095c9['enableOfflineEditing'])){var _0x40c27b;(_0x40c27b=this[_0x4aa2cb(0x2a2)][_0x4aa2cb(0xe5)](C,r['Quantity'][_0x4aa2cb(0x1d1)]))==null||_0x40c27b['disableLocalCache']();}(_0x36d9ba=this[_0x4aa2cb(0x3a0)])!=null&&_0x36d9ba[_0x4aa2cb(0x2ba)]&&(0x0,r[_0x4aa2cb(0x2a3)])(this[_0x4aa2cb(0x2a2)],[[K]]),(0x0,r[_0x4aa2cb(0x2a3)])(this[_0x4aa2cb(0x2a2)],[[J],[W],[Q]]);}};_($,_0x313905(0x1ab),_0x313905(0x317)),_($,_0x313905(0xd6),rt),_($,'version',it),$=b([(0x0,r[_0x313905(0x16b)])(u['UniverLicensePlugin'],e['UniverNetworkPlugin'],n['UniverCollaborationPlugin']),y(0x1,r[_0x313905(0x26a)]),y(0x2,(0x0,r['Inject'])(r[_0x313905(0xdf)])),y(0x3,r['IConfigService'])],$),Object[_0x313905(0xbf)](exports,_0x313905(0x390),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x313905(0xbf)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x313905(0xbf)](exports,_0x313905(0xc3),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x313905(0xbf)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x313905(0x375)]=m,exports[_0x313905(0x3c9)]=ne,Object[_0x313905(0xbf)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x313905(0x43d),{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x313905(0xbf)](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x32e),{'enumerable':!0x0,'get':function(){return X;}}),Object['defineProperty'](exports,_0x313905(0x226),{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x313905(0x40b),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return Xe;}}),exports[_0x313905(0x160)]=Ue,exports[_0x313905(0x249)]=oe,exports[_0x313905(0x347)]=v,Object['defineProperty'](exports,_0x313905(0x252),{'enumerable':!0x0,'get':function(){return ht;}}),exports['CommentService']=se,Object[_0x313905(0xbf)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x313905(0x275)]=0x4e20,exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x313905(0x364),exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x313905(0x327),exports[_0x313905(0x394)]=_0x313905(0x386),Object['defineProperty'](exports,_0x313905(0xaf),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x313905(0xbf)](exports,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x309),{'enumerable':!0x0,'get':function(){return F;}}),exports['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',exports['HEARTBEAT_TIMEOUT_KEY']=_0x313905(0xc0),exports[_0x313905(0x32d)]=ot,exports[_0x313905(0x3f9)]=Qe,exports[_0x313905(0x3a8)]=Je,exports[_0x313905(0x371)]=C,exports[_0x313905(0x209)]=Ge,exports[_0x313905(0x2bd)]=T,exports[_0x313905(0x16e)]=0x3e8,exports[_0x313905(0x2b3)]=_0x313905(0x16e),exports[_0x313905(0x283)]=0x1d4c0,Object[_0x313905(0xbf)](exports,_0x313905(0xc2),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x313905(0xbf)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x33e),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x1db),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x3e8),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x313905(0x35c)]=_0x313905(0x144),exports[_0x313905(0x3c4)]=_0x313905(0x38f),exports['SessionStatus']=ve,Object[_0x313905(0xbf)](exports,_0x313905(0x279),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,_0x313905(0x334),{'enumerable':!0x0,'get':function(){return w;}}),Object['defineProperty'](exports,_0x313905(0xe3),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x3d8),{'enumerable':!0x0,'get':function(){return mt;}}),Object['defineProperty'](exports,_0x313905(0x33c),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x313905(0x3f5)]=Se,Object['defineProperty'](exports,_0x313905(0x1bd),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x313905(0x1e1)]=$e,exports[_0x313905(0x415)]=Ke,exports[_0x313905(0x11d)]=be,exports['serializeCombRequest']=qe;