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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +14 -14
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1478(_0x11f4de,_0x17f767){_0x11f4de=_0x11f4de-0x13a;const _0x4225d3=_0x4225();let _0x14780a=_0x4225d3[_0x11f4de];return _0x14780a;}const _0x128a93=_0x1478;(function(_0x7fc0e6,_0xafd850){const _0x5c907c=_0x1478,_0x5dfef6=_0x7fc0e6();while(!![]){try{const _0x472f5f=-parseInt(_0x5c907c(0x1f2))/0x1*(-parseInt(_0x5c907c(0x168))/0x2)+parseInt(_0x5c907c(0x25e))/0x3*(parseInt(_0x5c907c(0x3ab))/0x4)+parseInt(_0x5c907c(0x250))/0x5*(parseInt(_0x5c907c(0x38f))/0x6)+-parseInt(_0x5c907c(0x274))/0x7*(-parseInt(_0x5c907c(0x1a3))/0x8)+-parseInt(_0x5c907c(0x16c))/0x9+parseInt(_0x5c907c(0x29d))/0xa*(-parseInt(_0x5c907c(0x19a))/0xb)+-parseInt(_0x5c907c(0x292))/0xc;if(_0x472f5f===_0xafd850)break;else _0x5dfef6['push'](_0x5dfef6['shift']());}catch(_0x426b46){_0x5dfef6['push'](_0x5dfef6['shift']());}}}(_0x4225,0x2263a));import{CollaborationEvent as _0x17c782,CompressMutationService as _0x2c8338,EmptyMutationInfo as _0x4cdf13,ISnapshotServerService as _0x308163,ITransformService as _0xa32c02,RevisionService as _0x41f50e,SnapshotService as _0x3b5530,UniverCollaborationPlugin as _0x46e417,b64DecodeUnicode as _0x4934e7,isTransformChangesetsSuccess as _0x4680e5,isTransformMutationsWithChangesetFailure as _0x23563d,isTransformMutationsWithChangesetSuccess as _0x25be66,mapDocumentTypeToUniverInstanceType as _0x1b5cee,parseChangesetToProtocol as _0x1d83e7,parseProtocolChangeset as _0x599160,textEncoder as _0xda62e4,uuidv4 as _0x48aba6}from'@univerjs-pro/collaboration';import{CommandType as _0x5ba872,DependentOn as _0x21dd03,Disposable as _0x403d15,DisposableCollection as _0x201dd7,IAuthzIoService as _0x1bfb1e,ICommandService as _0x3b4b60,IConfigService as _0x46ffbd,IContextService as _0x5422b8,IImageIoService as _0x5c8c50,ILogService as _0x470483,IMentionIOService as _0x29f169,IPermissionService as _0x511b30,IUndoRedoService as _0x3fb98b,IUniverInstanceService as _0x450b7c,ImageSourceType as _0x1a4dce,ImageUploadStatusType as _0x4b1921,Inject as _0x37b5e1,Injector as _0x56145d,JSONX as _0xeedbec,LocalUndoRedoService as _0x3f75c5,LocaleService as _0x5ae389,MentionType as _0xb97631,Optional as _0x29c9af,Plugin as _0xfc0aa6,Quantity as _0x562e14,Rectangle as _0x4aac13,RxDisposable as _0x738f09,Tools as _0x4bb715,UniverInstanceType as _0x61571e,UserManagerService as _0x5296e6,Workbook as _0x661ea8,createIdentifier as _0xd7efb5,generateRandomId as _0x5d54f0,isInternalEditorID as _0x19de86,merge as _0x3859b9,mergeOverrideWithDependencies as _0x5bf09e,registerDependencies as _0x5c219a,resolveWithBasePath as _0x1bb22f,sequenceExecute as _0x148db0,toDisposable as _0x2296ca,touchDependencies as _0x434981}from'@univerjs/core';import{DocStateChangeManagerService as _0x31c7bd,RichTextEditingMutation as _0x5e08a2}from'@univerjs/docs';import{InsertSheetMutation as _0x2a80a3,SetSelectionsOperation as _0x509da1,SheetPermissionInitController as _0x35ea61,SheetsSelectionsService as _0xbb4558,WorkbookEditablePermission as _0x1283c2}from'@univerjs/sheets';import{BehaviorSubject as _0x4e690d,ReplaySubject as _0x3c466e,Subject as _0x10b8bf,concatMap as _0x35e512,firstValueFrom as _0x23f22b,map as _0x30823e,merge as _0x1171fb,of as _0x66fadd,shareReplay as _0xa2739d,take as _0x2611e8,takeUntil as _0x138428}from'rxjs';import{CmdRspCode as _0x38a2c1,CombCmd as _0x10f422,ErrorCode as _0x15bc37,FileSource as _0xe4d98}from'@univerjs/protocol';import{ITelemetryService as _0x1f54b5}from'@univerjs/telemetry';import{delay as _0x6221fb,filter as _0x3784e6,map as _0xcf767d,take as _0x250149,takeUntil as _0x310870}from'rxjs/operators';import{AddSlidePageMutation as _0xcca844,EnsureSlideMasterPageMutation as _0x5cef66,MoveSlidePageMutation as _0xeb237e,RemoveSlidePageMutation as _0x2081e8}from'@univerjs-pro/slides';import{HTTPRequest as _0xb81b46,HTTPService as _0x1fd0e9,ISocketService as _0x4f0a93,MergeInterceptorFactory as _0x5bcb2b,ThresholdInterceptorFactory as _0x172db3,UniverNetworkPlugin as _0x20222a}from'@univerjs/network';import{UniverLicensePlugin as _0x6aad63,getGlobalObject as _0x497abb}from'@univerjs-pro/license';import{cbc as _0xd1e016}from'@noble/ciphers/aes.js';import{concatBytes as _0xe751ad,randomBytes as _0x2416e6,utf8ToBytes as _0x2947e3}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x1e72e6,getDrawingImageAllowSize as _0x59aa17}from'@univerjs/drawing';const L=_0x128a93(0x14b),pt={},mt=_0x128a93(0x1b9),ht=_0x128a93(0x2b1),gt='HEARTBEAT_INTERVAL',_t='HEARTBEAT_TIMEOUT',vt=0x4e20,yt=_0x128a93(0x271),bt=_0x128a93(0x365),xt=0x3e8,St=_0x128a93(0x1be),Ct='/universer-api/uniscript';function wt(_0x2e5a5d){const _0x305a25=_0x128a93;return JSON[_0x305a25(0x297)](_0x2e5a5d)[_0x305a25(0x2c4)];}function Tt(_0x3d4e19){'@babel/helpers - typeof';const _0x5ad65c=_0x128a93;return Tt=typeof Symbol==_0x5ad65c(0x37b)&&typeof Symbol[_0x5ad65c(0x220)]==_0x5ad65c(0x1dc)?function(_0x3605d7){return typeof _0x3605d7;}:function(_0x229210){const _0x30c498=_0x5ad65c;return _0x229210&&typeof Symbol==_0x30c498(0x37b)&&_0x229210[_0x30c498(0x3cc)]===Symbol&&_0x229210!==Symbol[_0x30c498(0x32e)]?_0x30c498(0x1dc):typeof _0x229210;},Tt(_0x3d4e19);}function Et(_0x1397b0,_0x4490fc){const _0x949c77=_0x128a93;if(Tt(_0x1397b0)!=_0x949c77(0x2c1)||!_0x1397b0)return _0x1397b0;var _0x432251=_0x1397b0[Symbol['toPrimitive']];if(_0x432251!==void 0x0){var _0x4e304b=_0x432251['call'](_0x1397b0,_0x4490fc||_0x949c77(0x1f3));if(Tt(_0x4e304b)!='object')return _0x4e304b;throw TypeError(_0x949c77(0x208));}return(_0x4490fc===_0x949c77(0x39f)?String:Number)(_0x1397b0);}function Dt(_0x3ffab2){var _0x4f4f3a=Et(_0x3ffab2,'string');return Tt(_0x4f4f3a)=='symbol'?_0x4f4f3a:_0x4f4f3a+'';}function R(_0xff1f6c,_0x5151d1,_0x4604d4){return(_0x5151d1=Dt(_0x5151d1))in _0xff1f6c?Object['defineProperty'](_0xff1f6c,_0x5151d1,{'value':_0x4604d4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xff1f6c[_0x5151d1]=_0x4604d4,_0xff1f6c;}let Ot=function(_0x2c7d66){const _0x5c63af=_0x128a93;return _0x2c7d66['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x2c7d66[_0x5c63af(0x28b)]=_0x5c63af(0x28b),_0x2c7d66['CONFLICT']=_0x5c63af(0x316),_0x2c7d66[_0x5c63af(0x187)]=_0x5c63af(0x187),_0x2c7d66[_0x5c63af(0x2fe)]=_0x5c63af(0x2fe),_0x2c7d66[_0x5c63af(0x28e)]='SOCKET_FAILED_RETRY',_0x2c7d66['SOCKET_FAILED']=_0x5c63af(0x2f2),_0x2c7d66[_0x5c63af(0x28a)]='SUBMIT_CHANGESET_TIMEOUT',_0x2c7d66;}({});var z=class{constructor(){const _0xd08e62=_0x128a93;R(this,_0xd08e62(0x37f),new _0x10b8bf()),R(this,_0xd08e62(0x160),this[_0xd08e62(0x37f)][_0xd08e62(0x1a1)]());}[_0x128a93(0x173)](_0xc568b5){const _0x18e0dc=_0x128a93;this['_event$'][_0x18e0dc(0x1d9)](_0xc568b5);}},kt=class{constructor(){const _0x30579f=_0x128a93;R(this,'_commentUpdate$',new _0x10b8bf()),R(this,_0x30579f(0x309),this['_commentUpdate$'][_0x30579f(0x1a1)]());}[_0x128a93(0x3d2)](_0x315088){const _0x7a334=_0x128a93;this[_0x7a334(0x258)][_0x7a334(0x1d9)](_0x315088);}};function B(_0x55189c,_0x4825d5){return function(_0xeccd7b,_0xe2ced7){_0x4825d5(_0xeccd7b,_0xe2ced7,_0x55189c);};}function V(_0x51e7b9,_0xb470f,_0x47bb8f,_0x4f175d){const _0x345499=_0x128a93;var _0x1e3e87=arguments[_0x345499(0x2c4)],_0x21889e=_0x1e3e87<0x3?_0xb470f:_0x4f175d===null?_0x4f175d=Object[_0x345499(0x3d3)](_0xb470f,_0x47bb8f):_0x4f175d,_0x312be7;if(typeof Reflect==_0x345499(0x2c1)&&typeof Reflect[_0x345499(0x18c)]==_0x345499(0x37b))_0x21889e=Reflect[_0x345499(0x18c)](_0x51e7b9,_0xb470f,_0x47bb8f,_0x4f175d);else{for(var _0x34cd80=_0x51e7b9[_0x345499(0x2c4)]-0x1;_0x34cd80>=0x0;_0x34cd80--)(_0x312be7=_0x51e7b9[_0x34cd80])&&(_0x21889e=(_0x1e3e87<0x3?_0x312be7(_0x21889e):_0x1e3e87>0x3?_0x312be7(_0xb470f,_0x47bb8f,_0x21889e):_0x312be7(_0xb470f,_0x47bb8f))||_0x21889e);}return _0x1e3e87>0x3&&_0x21889e&&Object['defineProperty'](_0xb470f,_0x47bb8f,_0x21889e),_0x21889e;}let H=class extends _0x403d15{constructor(_0x4b490c,_0x4740bf){const _0x29e256=_0x128a93;super(),this[_0x29e256(0x312)]=_0x4b490c,this[_0x29e256(0x278)]=_0x4740bf,R(this,_0x29e256(0x161),new Map()),R(this,_0x29e256(0x2cb),new _0x10b8bf()),this[_0x29e256(0x2ef)](_0x1171fb(this[_0x29e256(0x312)][_0x29e256(0x1cc)](_0x61571e[_0x29e256(0x146)])['pipe'](_0xcf767d(_0x14d15a=>_0x14d15a[_0x29e256(0x3ac)]())),this['_univerInstanceService'][_0x29e256(0x1cc)](_0x61571e[_0x29e256(0x306)])[_0x29e256(0x190)](_0xcf767d(_0x502dc9=>_0x502dc9[_0x29e256(0x3ac)]())),this['_univerInstanceService'][_0x29e256(0x1cc)](_0x61571e[_0x29e256(0x313)])[_0x29e256(0x190)](_0xcf767d(_0x46aa66=>_0x46aa66[_0x29e256(0x3ac)]())),this[_0x29e256(0x312)]['getTypeOfUnitDisposed$'](_0x61571e[_0x29e256(0x1c5)])[_0x29e256(0x190)](_0xcf767d(_0x25a07f=>_0x25a07f[_0x29e256(0x3ac)]())))[_0x29e256(0x1eb)](_0x105758=>this['_removeRoom'](_0x105758)));}['waitForRoom$'](_0x514716){const _0x4a97a3=_0x128a93;return this[_0x4a97a3(0x161)][_0x4a97a3(0x3cd)](_0x514716)?_0x66fadd(this['_roomMembers']['get'](_0x514716)):this[_0x4a97a3(0x2cb)][_0x4a97a3(0x190)](_0xcf767d(_0x313ca2=>{const _0x1fe6b1=_0x4a97a3;if(_0x313ca2===_0x514716)return this['_roomMembers'][_0x1fe6b1(0x2f1)](_0x313ca2);}));}[_0x128a93(0x273)](_0x379e35){const _0x61c84a=_0x128a93;this[_0x61c84a(0x278)]['setCurrentUser'](_0x379e35);}[_0x128a93(0x2da)](){const _0x1c48f6=_0x128a93;return this[_0x1c48f6(0x278)][_0x1c48f6(0x2da)]();}[_0x128a93(0x35a)](_0x3a7c5a,_0x41b80b){const _0x5f4343=_0x128a93;let _0x50bebc=this[_0x5f4343(0x161)][_0x5f4343(0x2f1)](_0x3a7c5a);_0x50bebc||(_0x50bebc=new At(),this['_roomMembers'][_0x5f4343(0x225)](_0x3a7c5a,_0x50bebc),this['_roomCreated$'][_0x5f4343(0x1d9)](_0x3a7c5a)),_0x50bebc[_0x5f4343(0x35a)](_0x41b80b);}[_0x128a93(0x175)](_0x26df37,_0x126208){const _0x2ee241=_0x128a93;let _0x1a9c20=this['_roomMembers'][_0x2ee241(0x2f1)](_0x26df37);_0x1a9c20&&_0x1a9c20[_0x2ee241(0x175)](_0x126208);}[_0x128a93(0x35e)](_0x7424d){const _0x4eeb83=_0x128a93;return this[_0x4eeb83(0x161)]['get'](_0x7424d);}[_0x128a93(0x2c6)](_0x261b98,_0x42feaf){const _0x36865d=_0x128a93;let _0x5d540b=this[_0x36865d(0x161)][_0x36865d(0x2f1)](_0x261b98);if(_0x5d540b)return _0x5d540b[_0x36865d(0x2c6)](_0x42feaf);}[_0x128a93(0x240)](_0x18e5d4){const _0x14c853=_0x128a93;let _0xc3a7bb=this[_0x14c853(0x161)][_0x14c853(0x2f1)](_0x18e5d4);_0xc3a7bb&&(_0xc3a7bb['dispose'](),this[_0x14c853(0x161)][_0x14c853(0x1ff)](_0x18e5d4));}['dispose'](){const _0x3bba46=_0x128a93;this[_0x3bba46(0x161)][_0x3bba46(0x3b6)](_0xffffa4=>_0xffffa4[_0x3bba46(0x358)]()),this[_0x3bba46(0x161)]['clear'](),this[_0x3bba46(0x2cb)][_0x3bba46(0x320)]();}};H=V([B(0x0,_0x450b7c),B(0x1,_0x37b5e1(_0x5296e6))],H);var At=class extends _0x403d15{constructor(..._0x564e02){const _0x8e1706=_0x128a93;super(..._0x564e02),R(this,_0x8e1706(0x3c9),new Map()),R(this,_0x8e1706(0x286),new _0x4e690d(this['_members'])),R(this,_0x8e1706(0x1ef),this[_0x8e1706(0x286)][_0x8e1706(0x1a1)]());}[_0x128a93(0x358)](){const _0x47f679=_0x128a93;this[_0x47f679(0x3c9)][_0x47f679(0x24a)](),this['_members$']['complete']();}[_0x128a93(0x35a)](_0x3be72b){const _0x20adab=_0x128a93;this['_members'][_0x20adab(0x225)](_0x3be72b[_0x20adab(0x329)],_0x3be72b),this[_0x20adab(0x298)]();}['removeMember'](_0x5300ff){const _0x49f090=_0x128a93;this[_0x49f090(0x3c9)]['delete'](_0x5300ff),this[_0x49f090(0x298)]();}[_0x128a93(0x2c6)](_0x561662){const _0x2887b4=_0x128a93;return this[_0x2887b4(0x3c9)][_0x2887b4(0x2f1)](_0x561662);}[_0x128a93(0x198)](){const _0x13a87a=_0x128a93;return Array['from'](this[_0x13a87a(0x3c9)][_0x13a87a(0x1c7)]());}[_0x128a93(0x298)](){const _0x378eb2=_0x128a93;this['_members$'][_0x378eb2(0x1d9)](this[_0x378eb2(0x3c9)]);}};function jt(_0x3ca039,_0x209aa5){const _0x183fdc=_0x128a93;if(Nt(_0x3ca039))return _0x209aa5;if(_0x209aa5['eventID']===_0x17c782['SUBMIT_CHANGESET']){var _0x7da2d6;let _0x30b761=Rt(_0x3ca039),_0x21aee6=_0x209aa5;return{..._0x21aee6,'data':{..._0x21aee6[_0x183fdc(0x204)],'unitID':_0x3ca039[_0x183fdc(0x348)]['unitId'],'unitType':(_0x7da2d6=_0x3ca039['target']['unitType'])==null?_0x21aee6['data'][_0x183fdc(0x1ac)]:_0x7da2d6,'changeset':_0x30b761[_0x183fdc(0x33a)](_0x21aee6[_0x183fdc(0x204)][_0x183fdc(0x3b0)],zt(_0x3ca039))}};}if(_0x209aa5[_0x183fdc(0x2b7)]===_0x17c782[_0x183fdc(0x24f)]){var _0x5e67c0;let _0x28bae5=_0x209aa5;return{..._0x28bae5,'data':{..._0x28bae5[_0x183fdc(0x204)],'unitID':_0x3ca039[_0x183fdc(0x348)]['unitId'],'unitType':(_0x5e67c0=_0x3ca039[_0x183fdc(0x348)]['unitType'])==null?_0x28bae5[_0x183fdc(0x204)][_0x183fdc(0x1ac)]:_0x5e67c0}};}return _0x209aa5;}function Mt(_0x23f0a0,_0x52e0f8){const _0x1ce1a3=_0x128a93;if(Nt(_0x23f0a0))return[_0x52e0f8];switch(_0x52e0f8[_0x1ce1a3(0x2b7)]){case _0x17c782['NEW_CHANGESETS']:return[Pt(_0x23f0a0,_0x52e0f8)];case _0x17c782[_0x1ce1a3(0x16e)]:return[It(_0x23f0a0,_0x52e0f8)];case _0x17c782[_0x1ce1a3(0x377)]:return[Ft(_0x23f0a0,_0x52e0f8)];default:return[_0x52e0f8];}}function Nt(_0x1a5a26){const _0x17be33=_0x128a93;return _0x1a5a26['target'][_0x17be33(0x351)]==null&&_0x1a5a26[_0x17be33(0x348)][_0x17be33(0x285)]===_0x1a5a26['localUnitId']&&!_0x1a5a26['changeset'];}function Pt(_0x1b96a1,_0x1766c4){const _0x535a02=_0x128a93;return{..._0x1766c4,'data':_0x1d83e7(Lt(_0x1b96a1,_0x599160(_0x1766c4[_0x535a02(0x204)])))};}function Ft(_0x596d03,_0x131121){const _0x37d5a4=_0x128a93;return{..._0x131121,'data':Lt(_0x596d03,_0x131121[_0x37d5a4(0x204)])};}function It(_0x36dec0,_0x29d6c8){const _0x5581d6=_0x128a93;let _0x1dfa12=_0x29d6c8[_0x5581d6(0x204)];return{..._0x29d6c8,'data':{..._0x1dfa12,'changesets':_0x1dfa12[_0x5581d6(0x16a)][_0x5581d6(0x24e)](_0x53a30a=>_0x1d83e7(Lt(_0x36dec0,_0x599160(_0x53a30a))))}};}function Lt(_0x5c79ac,_0x18ee7e){const _0x4f8e98=_0x128a93;return Rt(_0x5c79ac)[_0x4f8e98(0x1ed)](_0x18ee7e,zt(_0x5c79ac));}function Rt(_0x4db6d4){const _0x41413d=_0x128a93;if(!_0x4db6d4[_0x41413d(0x3b0)])throw Error(_0x41413d(0x203));return _0x4db6d4['changeset'];}function zt(_0x232da1){const _0x283d10=_0x128a93;return{'localUnitId':_0x232da1['localUnitId'],'unitType':_0x232da1['unitType'],'target':_0x232da1[_0x283d10(0x348)]};}let Bt=function(_0x1a9a96){const _0x1f5e7e=_0x128a93;return _0x1a9a96[_0x1a9a96[_0x1f5e7e(0x39a)]=0x0]=_0x1f5e7e(0x39a),_0x1a9a96[_0x1a9a96['JOINING']=0x1]='JOINING',_0x1a9a96[_0x1a9a96[_0x1f5e7e(0x29a)]=0x2]=_0x1f5e7e(0x29a),_0x1a9a96[_0x1a9a96[_0x1f5e7e(0x1cb)]=0x3]=_0x1f5e7e(0x1cb),_0x1a9a96;}({});const Vt={[_0x38a2c1[_0x128a93(0x212)]]:'session.join-failed',[_0x38a2c1[_0x128a93(0x311)]]:'session.room-full',[_0x38a2c1[_0x128a93(0x193)]]:_0x128a93(0x34a),[_0x38a2c1['JOIN_ROOM_PERMISSION_DENIED']]:_0x128a93(0x368),[_0x38a2c1[_0x128a93(0x367)]]:_0x128a93(0x232)};let Ht=class extends _0x738f09{get[_0x128a93(0x3b2)](){const _0x8b2cff=_0x128a93;return this[_0x8b2cff(0x1d1)][_0x8b2cff(0x1a9)]();}constructor(_0x2d12f1,_0x583542,_0x4868d4,_0x25177a,_0x327de0,_0x8691f8,_0x3dfdbe,_0x1e94ea){const _0x108b89=_0x128a93;super(),this['_identity']=_0x2d12f1,this[_0x108b89(0x346)]=_0x4868d4,this[_0x108b89(0x280)]=_0x25177a,this[_0x108b89(0x3aa)]=_0x327de0,this[_0x108b89(0x321)]=_0x8691f8,this[_0x108b89(0x30c)]=_0x3dfdbe,this[_0x108b89(0x3b8)]=_0x1e94ea,R(this,_0x108b89(0x1d1),new _0x4e690d(0x0)),R(this,_0x108b89(0x206),this[_0x108b89(0x1d1)][_0x108b89(0x1a1)]()),R(this,_0x108b89(0x37f),new _0x10b8bf()),R(this,_0x108b89(0x160),this['_event$'][_0x108b89(0x1a1)]()),R(this,_0x108b89(0x185),void 0x0),R(this,_0x108b89(0x393),void 0x0),R(this,_0x108b89(0x154),void 0x0),R(this,_0x108b89(0x1a4),!0x1),R(this,_0x108b89(0x1e4),null),this[_0x108b89(0x1a4)]=!!this[_0x108b89(0x3b8)],_0x583542[_0x108b89(0x190)](_0x138428(this['dispose$']))[_0x108b89(0x1eb)](_0x2b555e=>{const _0x59da57=_0x108b89;if(_0x2b555e!==void 0x0){if(this[_0x59da57(0x185)]=_0x2b555e,_0x2b555e)this[_0x59da57(0x304)](_0x2b555e),this[_0x59da57(0x393)]=_0x2b555e[_0x59da57(0x3bd)][_0x59da57(0x1eb)](_0x33486e=>{const _0x1b1278=_0x59da57;_0x33486e[_0x1b1278(0x2b2)]===this[_0x1b1278(0x153)][_0x1b1278(0x348)][_0x1b1278(0x285)]&&this[_0x1b1278(0x14c)](_0x33486e);});else{var _0x121b02;this[_0x59da57(0x3c6)](),this[_0x59da57(0x1d1)][_0x59da57(0x1d9)](0x2),(_0x121b02=this[_0x59da57(0x393)])==null||_0x121b02['unsubscribe'](),this['_socketMessageSubscription']=null;}}});}[_0x128a93(0x2bb)](){const _0x373daa=_0x128a93;var _0x55b986,_0x10eba0;return(_0x55b986=(_0x10eba0=this[_0x373daa(0x185)])==null?void 0x0:_0x10eba0[_0x373daa(0x329)])==null?null:_0x55b986;}['dispose'](){const _0x22d59e=_0x128a93;super['dispose'](),this['close'](),this['dispose$']['next'](),this[_0x22d59e(0x245)][_0x22d59e(0x320)]();}['close'](){const _0x49d132=_0x128a93;var _0x48a3b6;this['_throwTelemetryCollaborationNewChangeset'](),(_0x48a3b6=this[_0x49d132(0x185)])==null||_0x48a3b6[_0x49d132(0x317)]({'cmd':_0x10f422[_0x49d132(0x237)],'data':{'roomID':this[_0x49d132(0x153)][_0x49d132(0x348)][_0x49d132(0x285)]}}),this[_0x49d132(0x37f)][_0x49d132(0x320)](),this[_0x49d132(0x1d1)][_0x49d132(0x320)]();}[_0x128a93(0x14c)](_0x34a84b){const _0x4579ba=_0x128a93;_0x34a84b[_0x4579ba(0x17b)]===_0x10f422['JOIN']?this['_onJoinRoomEvent'](_0x34a84b):_0x34a84b[_0x4579ba(0x17b)]===_0x10f422[_0x4579ba(0x1fb)]&&this[_0x4579ba(0x32a)](_0x34a84b);}['_joinRoom'](_0x4590fa){const _0x4f26dd=_0x128a93;this[_0x4f26dd(0x1d1)][_0x4f26dd(0x1d9)](0x1),_0x4590fa[_0x4f26dd(0x317)]({'cmd':_0x10f422[_0x4f26dd(0x1ea)],'routeKey':this['_identity'][_0x4f26dd(0x348)][_0x4f26dd(0x285)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4f26dd(0x153)][_0x4f26dd(0x348)][_0x4f26dd(0x285)]}]}});}['_onJoinRoomEvent'](_0x5ecc9e){const _0x1539d3=_0x128a93;var _0x1441b6;if(_0x5ecc9e[_0x1539d3(0x23a)]in Vt){this['_collaborationUIEventService'][_0x1539d3(0x173)]({'id':_0x1539d3(0x2fe),'data':Vt[_0x5ecc9e[_0x1539d3(0x23a)]]}),this['_sessionStatus$'][_0x1539d3(0x1d9)](0x2);return;}this[_0x1539d3(0x1d1)][_0x1539d3(0x1d9)](0x3);let _0x552db0=(_0x1441b6=_0x5ecc9e[_0x1539d3(0x204)]['roomInfos'][this['_identity'][_0x1539d3(0x348)][_0x1539d3(0x285)]])==null?void 0x0:_0x1441b6['members'];_0x552db0&&_0x552db0['forEach'](_0x52d11a=>this['_memberService']['updateMember'](this[_0x1539d3(0x153)][_0x1539d3(0x19c)],_0x52d11a));}[_0x128a93(0x32a)](_0x5b7e2c){const _0x12d07f=_0x128a93;try{let _0x500f1e=Mt(this[_0x12d07f(0x153)],_0x5b7e2c[_0x12d07f(0x204)]);for(let _0x241793 of _0x500f1e)switch(_0x241793[_0x12d07f(0x2b7)]){case _0x17c782[_0x12d07f(0x14e)]:this[_0x12d07f(0x25a)](_0x241793),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782[_0x12d07f(0x310)]:this['_onUserLeave'](_0x241793),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782[_0x12d07f(0x3bb)]:case _0x17c782[_0x12d07f(0x377)]:this[_0x12d07f(0x27f)](),this['_clearCollaborationTimeoutTimer'](),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782['MSG_FOR_ERROR']:this[_0x12d07f(0x346)][_0x12d07f(0x22c)](_0x12d07f(0x2ff)+JSON[_0x12d07f(0x297)](_0x241793)),this['_event$'][_0x12d07f(0x1d9)](_0x241793);break;case _0x17c782[_0x12d07f(0x3be)]:this[_0x12d07f(0x321)][_0x12d07f(0x3d2)](_0x241793['data']),this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);break;default:this[_0x12d07f(0x37f)][_0x12d07f(0x1d9)](_0x241793);}}catch(_0x281204){this[_0x12d07f(0x346)][_0x12d07f(0x22c)](_0x281204,_0x5b7e2c);}}['_onUserJoin'](_0xe2e9b2){const _0xa7291e=_0x128a93;this[_0xa7291e(0x3aa)][_0xa7291e(0x35a)](this[_0xa7291e(0x153)][_0xa7291e(0x19c)],_0xe2e9b2[_0xa7291e(0x204)]);}['_onUserLeave'](_0x45bd5a){const _0x95d886=_0x128a93;this[_0x95d886(0x3aa)]['removeMember'](this[_0x95d886(0x153)]['localUnitId'],_0x45bd5a[_0x95d886(0x204)][_0x95d886(0x329)]);}async[_0x128a93(0x317)](_0x4e97eb,_0x45472e){const _0x4095a3=_0x128a93;if(this[_0x4095a3(0x3b2)]!==0x3||!this[_0x4095a3(0x185)])throw Error(_0x4095a3(0x2d3));try{let _0x176603=jt(this[_0x4095a3(0x153)],_0x4e97eb);_0x176603[_0x4095a3(0x2b7)]===_0x17c782[_0x4095a3(0x328)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x176603)),this[_0x4095a3(0x185)][_0x4095a3(0x317)]({'cmd':_0x10f422[_0x4095a3(0x31d)],'routeKey':this[_0x4095a3(0x153)][_0x4095a3(0x348)][_0x4095a3(0x285)],'routeType':'','data':_0x176603});}catch(_0x57a499){this[_0x4095a3(0x346)][_0x4095a3(0x22c)](_0x57a499);}}[_0x128a93(0x22f)](){const _0xacc8d5=_0x128a93;var _0x5138c1;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3f304c=_0x1478;this[_0x3f304c(0x154)]=null,this[_0x3f304c(0x30c)][_0x3f304c(0x173)]({'id':_0x3f304c(0x28a)});},(_0x5138c1=this[_0xacc8d5(0x280)][_0xacc8d5(0x1bc)](_0xacc8d5(0x1b3)))==null?vt:_0x5138c1);}['_clearCollaborationTimeoutTimer'](){const _0x507a29=_0x128a93;this[_0x507a29(0x154)]&&(clearTimeout(this[_0x507a29(0x154)]),this[_0x507a29(0x154)]=null);}[_0x128a93(0x337)](_0x2d575f){const _0x1320a2=_0x128a93;if(!this['_shouldReportTelemetry'])return;let {data:_0x2f93f8}=_0x2d575f,{unitID:_0x3d259e,changeset:_0x4b2013}=_0x2f93f8,{mutations:_0x15f9f5,type:_0x23d98e}=_0x4b2013;this['_telemetryInfo']={'unitId':_0x3d259e,'type':_0x23d98e,'startTime':performance[_0x1320a2(0x334)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x15f9f5)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x2e24ea=_0x128a93;if(this[_0x2e24ea(0x1a4)]){if(!this[_0x2e24ea(0x1e4)]){this['_logService'][_0x2e24ea(0x22c)]('[CollaborationSession]',_0x2e24ea(0x23c));return;}this['_telemetryInfo'][_0x2e24ea(0x2e8)]=performance[_0x2e24ea(0x334)](),this['_telemetryInfo']['duration']=this[_0x2e24ea(0x1e4)][_0x2e24ea(0x2e8)]-this[_0x2e24ea(0x1e4)][_0x2e24ea(0x1c6)],this[_0x2e24ea(0x3b8)][_0x2e24ea(0x2ed)](_0x2e24ea(0x251),this[_0x2e24ea(0x1e4)]),this[_0x2e24ea(0x1e4)]=null;}}[_0x128a93(0x3c6)](){const _0x4356ad=_0x128a93;this[_0x4356ad(0x1e4)]=null;}};Ht=V([B(0x2,_0x470483),B(0x3,_0x46ffbd),B(0x4,_0x37b5e1(H)),B(0x5,_0x37b5e1(kt)),B(0x6,_0x37b5e1(z)),B(0x7,_0x29c9af(_0x1f54b5))],Ht);const U=_0xd7efb5(_0x128a93(0x222));function Ut(_0x339e4c){const _0x230d36=_0x128a93;return _0x230d36(0x13c)+_0x339e4c;}function Wt(_0x12f057){const _0x35413c=_0x128a93;let {unitID:_0x4e019f,mutations:_0x38fb71}=_0x12f057;return{'unitId':_0x4e019f,'subUnitId':_0x38fb71[_0x35413c(0x2c4)]>0x0?_0x38fb71[0x0][_0x35413c(0x2dd)][_0x35413c(0x21d)]:null};}let Gt=class{constructor(_0x42601d,_0x1431d4,_0x32ebc2){const _0x515746=_0x128a93;this[_0x515746(0x349)]=_0x42601d,this[_0x515746(0x247)]=_0x1431d4,this[_0x515746(0x259)]=_0x32ebc2;}[_0x128a93(0x2e4)](_0x3342d7){const _0x9fd406=_0x128a93;var _0x401fb4,_0x2d65bd;let _0x3ecdd0=this[_0x9fd406(0x349)]['get'](_0xbb4558),{unitId:_0x2d7ad2,subUnitId:_0x135b53}=Wt(_0x3342d7),_0x4b9e32=_0x3ecdd0==null?void 0x0:_0x3ecdd0[_0x9fd406(0x1d8)](_0x2d7ad2)[_0x9fd406(0x224)](),_0xfc817=(_0x401fb4=this[_0x9fd406(0x259)][_0x9fd406(0x3a1)](_0x2d7ad2))==null||(_0x401fb4=_0x401fb4[_0x9fd406(0x189)]())==null?void 0x0:_0x401fb4['getSheetId']();if(_0x4b9e32[_0x9fd406(0x2c4)]===0x0||!_0x2d7ad2||!_0x135b53)return;let _0x5e9f46=[{'id':_0x509da1['id'],'params':{'unitId':_0x2d7ad2,'subUnitId':_0xfc817,'selections':_0x4bb715[_0x9fd406(0x339)](_0x4b9e32)}}],_0x2622d1=this[_0x9fd406(0x247)][_0x9fd406(0x1d7)](_0x3342d7,_0x5e9f46);if(!_0x25be66(_0x2622d1))throw _0x2622d1[_0x9fd406(0x22c)];let _0x1707d4=(_0x2d65bd=_0x2622d1['m2Prime'][0x0])==null||(_0x2d65bd=_0x2d65bd['params'])==null?void 0x0:_0x2d65bd[_0x9fd406(0x216)];if(Array[_0x9fd406(0x3b5)](_0x1707d4)&&_0x1707d4[_0x9fd406(0x2c4)]){if(_0x1707d4[_0x9fd406(0x2c4)]===_0x5e9f46[0x0]['params'][_0x9fd406(0x216)][_0x9fd406(0x2c4)]&&_0x1707d4[_0x9fd406(0x1bf)]((_0x10e75e,_0x1e8c8e)=>_0x4aac13[_0x9fd406(0x256)](_0x10e75e['range'],_0x5e9f46[0x0]['params'][_0x9fd406(0x216)][_0x1e8c8e]['range'])))return;this[_0x9fd406(0x349)]['get'](_0x3b4b60)['executeCommand'](_0x509da1['id'],{'unitId':_0x2d7ad2,'subUnitId':_0xfc817,'selections':_0x1707d4});}}};Gt=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0xa32c02),B(0x2,_0x450b7c)],Gt);const W=_0xd7efb5(_0x128a93(0x362));let Kt=function(_0x543c45){const _0x297673=_0x128a93;return _0x543c45[_0x543c45[_0x297673(0x2b5)]=0x0]=_0x297673(0x2b5),_0x543c45[_0x543c45['OTHER_CLIENTS_EDITING']=0x1]=_0x297673(0x381),_0x543c45;}({});function qt(_0x221717){const _0x3d1aa3=_0x128a93;var _0x56c1da;return!!((_0x56c1da=_0x221717[_0x3d1aa3(0x2dd)])!=null&&_0x56c1da[_0x3d1aa3(0x31e)]);}const Jt=new Set([_0x2a80a3['id']]),Yt=new Set([_0xcca844['id'],_0x5cef66['id'],_0xeb237e['id'],_0x2081e8['id']]);function Xt(_0x20730a,_0xa04c43=Jt){const _0x126942=_0x128a93;let _0x5610df=[];for(let _0x268ca4 of _0x20730a){if(_0xa04c43[_0x126942(0x3cd)](_0x268ca4['id'])){if(_0x5610df['length']>0x0)break;_0x5610df[_0x126942(0x263)](_0x268ca4);break;}if(qt(_0x268ca4)){if(_0x5610df['length']>0x0)break;_0x5610df[_0x126942(0x263)](_0x268ca4);break;}_0x5610df[_0x126942(0x263)](_0x268ca4);}return _0x5610df;}function Zt(_0x5769eb,_0xc03f32,_0x4d281d,_0x1e435f,_0x565803){const _0x1fca76=_0x128a93;var _0x3cebf8,_0x5f0fbf,_0x449e17,_0xe6a6d5;let _0x2d531d=Xt(_0x5769eb),_0x2604bf=(_0x3cebf8=(_0x5f0fbf=_0x565803[_0x1fca76(0x2da)]())==null?void 0x0:_0x5f0fbf[_0x1fca76(0x33e)])==null?_0x1fca76(0x262):_0x3cebf8,_0x59804a=(_0x449e17=(_0xe6a6d5=_0x565803[_0x1fca76(0x2da)]())==null?void 0x0:_0xe6a6d5[_0x1fca76(0x329)])==null?_0x1fca76(0x262):_0x449e17;return{'changeset':{'unitID':_0xc03f32,'type':_0x1b5cee(_0x4d281d[_0x1fca76(0x1e6)](_0xc03f32)),'baseRev':_0x1e435f['getCurrentRevOfUnit'](_0xc03f32),'revision':0x0,'userID':_0x2604bf,'memberID':_0x59804a,'mutations':_0x2d531d},'pendingMutations':_0x5769eb[_0x1fca76(0x2e2)](_0x2d531d[_0x1fca76(0x2c4)])};}function Qt(_0x5e246b,_0x5cc8f2,_0x32b9e4,_0x4e9733,_0x3c7d97){const _0x51ee7f=_0x128a93;var _0x418c47,_0x564a69,_0x439104,_0x14b1ce;let _0x2bf2b0=Xt(_0x5e246b,Yt),_0x47fa27=(_0x418c47=(_0x564a69=_0x3c7d97['getCurrentUser']())==null?void 0x0:_0x564a69['userID'])==null?_0x51ee7f(0x262):_0x418c47,_0x17e6d3=(_0x439104=(_0x14b1ce=_0x3c7d97[_0x51ee7f(0x2da)]())==null?void 0x0:_0x14b1ce[_0x51ee7f(0x329)])==null?_0x51ee7f(0x262):_0x439104;return{'changeset':{'unitID':_0x5cc8f2,'type':_0x1b5cee(_0x32b9e4[_0x51ee7f(0x1e6)](_0x5cc8f2)),'baseRev':_0x4e9733[_0x51ee7f(0x235)](_0x5cc8f2),'revision':0x0,'userID':_0x47fa27,'memberID':_0x17e6d3,'mutations':_0x2bf2b0},'pendingMutations':_0x5e246b[_0x51ee7f(0x2e2)](_0x2bf2b0[_0x51ee7f(0x2c4)])};}function $t(_0x50dc11,_0x568e26,_0x9ad8df,_0x4b9096,_0x525fad){const _0x172334=_0x128a93;var _0x5cc139,_0x7e71ac,_0x3d6ada,_0xc2e918;let _0x1bc2a8=_0x50dc11[_0x172334(0x276)]((_0x4d25a,_0xb356ec)=>{const _0x934ec2=_0x172334;let _0x58aa11=_0x4d25a[_0x4d25a[_0x934ec2(0x2c4)]-0x1],{id:_0x1e39ee}=_0x58aa11==null?{}:_0x58aa11,{id:_0x4d7823,type:_0x13d7e2}=_0xb356ec,_0x538be0=_0xb356ec[_0x934ec2(0x2dd)];if(_0x1e39ee&&_0x1e39ee!==_0x4d7823)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1e39ee+_0x934ec2(0x1c1)+_0x4d7823+'.');if(!_0x58aa11)return[{'id':_0x4d7823,'type':_0x13d7e2,'params':{'unitId':_0x538be0[_0x934ec2(0x285)],'textRanges':_0x538be0[_0x934ec2(0x1d3)],'actions':_0x538be0[_0x934ec2(0x1a2)]}}];let _0x2a9619=_0x58aa11[_0x934ec2(0x2dd)];return en(_0x2a9619,_0x538be0)?[..._0x4d25a[_0x934ec2(0x2e2)](0x0,-0x1),{..._0x58aa11,'id':_0x4d7823,'type':_0x13d7e2,'params':{'unitId':_0x538be0['unitId'],'textRanges':_0x538be0[_0x934ec2(0x1d3)],'actions':_0xeedbec[_0x934ec2(0x34d)](_0x2a9619[_0x934ec2(0x1a2)],_0x538be0[_0x934ec2(0x1a2)])}}]:[..._0x4d25a,{'id':_0x4d7823,'type':_0x13d7e2,'params':{'unitId':_0x538be0[_0x934ec2(0x285)],'textRanges':_0x538be0['textRanges'],'actions':_0x538be0[_0x934ec2(0x1a2)]}}];},[]),_0x111c24=(_0x5cc139=(_0x7e71ac=_0x525fad[_0x172334(0x2da)]())==null?void 0x0:_0x7e71ac[_0x172334(0x33e)])==null?'unknown':_0x5cc139,_0x43ab35=(_0x3d6ada=(_0xc2e918=_0x525fad[_0x172334(0x2da)]())==null?void 0x0:_0xc2e918['memberID'])==null?_0x172334(0x262):_0x3d6ada;return{'changeset':{'unitID':_0x568e26,'type':_0x1b5cee(_0x9ad8df['getUnitType'](_0x568e26)),'baseRev':_0x4b9096['getCurrentRevOfUnit'](_0x568e26),'revision':0x0,'userID':_0x111c24,'memberID':_0x43ab35,'mutations':_0x1bc2a8},'pendingMutations':_0x50dc11[_0x172334(0x2e2)](_0x50dc11[_0x172334(0x2c4)])};}function en(_0x473393,_0x1bd628){const _0x3f3b57=_0x128a93;return!tn(_0x473393)&&!tn(_0x1bd628)&&nn(_0x473393['actions'],_0x1bd628[_0x3f3b57(0x1a2)]);}function tn(_0x25380d){const _0x5ee50f=_0x128a93;return _0x25380d[_0x5ee50f(0x3a5)]!==void 0x0;}function nn(_0x53d050,_0x226019){return rn(_0x53d050)&&rn(_0x226019)&&!on(_0x53d050)&&!on(_0x226019)&&!an(_0x53d050)&&!an(_0x226019);}function rn(_0x2ef15d){const _0x59cf1a=_0x128a93;return sn(_0x2ef15d)[_0x59cf1a(0x233)](_0x46747b=>cn(_0x46747b)&&_0x46747b['et']==='text-x');}function an(_0x2c849e){const _0x2141df=_0x128a93;return sn(_0x2c849e)[_0x2141df(0x233)](_0x37af92=>Array[_0x2141df(0x3b5)](_0x37af92)||typeof _0x37af92==_0x2141df(0x39f)||typeof _0x37af92==_0x2141df(0x354));}function on(_0x5cb627){const _0x49eda5=_0x128a93;return sn(_0x5cb627)[_0x49eda5(0x233)](_0x5d62f9=>!cn(_0x5d62f9)||_0x5d62f9['et']!==_0x49eda5(0x324)||!Array[_0x49eda5(0x3b5)](_0x5d62f9['e'])?!0x1:_0x5d62f9['e']['some'](_0xcba999=>!cn(_0xcba999)||!cn(_0xcba999['body'])?!0x1:Object[_0x49eda5(0x32e)][_0x49eda5(0x176)][_0x49eda5(0x214)](_0xcba999[_0x49eda5(0x3b7)],'tables')||Object[_0x49eda5(0x32e)][_0x49eda5(0x176)][_0x49eda5(0x214)](_0xcba999[_0x49eda5(0x3b7)],'columnGroups')||Object['prototype'][_0x49eda5(0x176)][_0x49eda5(0x214)](_0xcba999[_0x49eda5(0x3b7)],_0x49eda5(0x17c))));}function sn(_0x42dd83){const _0x5bd4e8=_0x128a93;if(!Array[_0x5bd4e8(0x3b5)](_0x42dd83))return[];let _0x2839f2=_0x42dd83['includes'](_0x5bd4e8(0x3b7))?_0x42dd83:_0x42dd83[_0x5bd4e8(0x1b2)](_0x34dbea=>Array[_0x5bd4e8(0x3b5)](_0x34dbea)&&_0x34dbea['includes'](_0x5bd4e8(0x3b7)));if(!Array[_0x5bd4e8(0x3b5)](_0x2839f2))return[];let _0x34a9c3=_0x2839f2['indexOf'](_0x5bd4e8(0x3b7));return _0x34a9c3===-0x1?[]:_0x2839f2[_0x5bd4e8(0x2e2)](_0x34a9c3+0x1);}function cn(_0x186126){const _0xf7807f=_0x128a93;return typeof _0x186126=='object'&&!!_0x186126&&!Array[_0xf7807f(0x3b5)](_0x186126);}function ln(_0x2beff0,_0x2f1b91){const _0x2b8fa5=_0x128a93;let _0x551452=new _0x3c466e(0x1);return setTimeout(()=>_0x551452[_0x2b8fa5(0x1d9)](_0x2f1b91),_0x2beff0),_0x551452[_0x2b8fa5(0x1a1)]()[_0x2b8fa5(0x190)](_0x2611e8(0x1));}var un,dn,fn;let pn=function(_0x11321c){const _0x3d4e44=_0x128a93;return _0x11321c[_0x3d4e44(0x16f)]=_0x3d4e44(0x2af),_0x11321c['SYNCED']='synced',_0x11321c[_0x3d4e44(0x369)]=_0x3d4e44(0x39e),_0x11321c['AWAITING']=_0x3d4e44(0x221),_0x11321c[_0x3d4e44(0x344)]=_0x3d4e44(0x3ad),_0x11321c['FETCH_MISS']=_0x3d4e44(0x34c),_0x11321c[_0x3d4e44(0x316)]=_0x3d4e44(0x20b),_0x11321c['OFFLINE']=_0x3d4e44(0x2c7),_0x11321c;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x1b3ca4,_0x459928,_0xeb9693,_0x2dc5f9,_0x39b328,_0xe42e9,_0x4b30ef,_0x4d9385,_0x57f226){const _0x3236e7=_0x128a93;this['unitID']=_0x1b3ca4,this[_0x3236e7(0x2b6)]=_0x459928,this[_0x3236e7(0x2e5)]=_0x39b328,this['_commandService']=_0xe42e9,this['_undoRedoService']=_0x4b30ef,this[_0x3236e7(0x2eb)]=_0x4d9385,this[_0x3236e7(0x1fe)]=_0x57f226,R(this,_0x3236e7(0x13b),null),R(this,_0x3236e7(0x1de),[]),this[_0x3236e7(0x13b)]=_0xeb9693,this['_pendingMutations']=_0x2dc5f9;}[_0x128a93(0x289)](_0x9a076){const _0x548df5=_0x128a93;let _0x2b2234=this[_0x548df5(0x2eb)][_0x548df5(0x235)](this['unitID']);return _0x9a076[_0x548df5(0x380)]>_0x2b2234+0x1?(this[_0x548df5(0x2e5)][_0x548df5(0x15c)]({'from':_0x2b2234,'to':_0x9a076[_0x548df5(0x380)]-0x1}),!0x0):!0x1;}[_0x128a93(0x20f)](_0x2560b2){const _0x371c05=_0x128a93;this[_0x371c05(0x319)][_0x371c05(0x184)](this[_0x371c05(0x2d2)],_0x2560b2);}[_0x128a93(0x326)](_0x33e23f){const _0xc9518d=_0x128a93;var _0x427f6d,_0x2871c7;(_0x427f6d=(_0x2871c7=this['_handler'])[_0xc9518d(0x35c)])==null||_0x427f6d['call'](_0x2871c7,_0x33e23f);}['_transformIMECache'](_0xfd377e){const _0x30b796=_0x128a93;var _0x45aa81,_0xf0ecaf;return(_0x45aa81=(_0xf0ecaf=this[_0x30b796(0x2e5)])[_0x30b796(0x2a1)])==null?void 0x0:_0x45aa81[_0x30b796(0x214)](_0xf0ecaf,_0xfd377e);}[_0x128a93(0x36f)](_0x4367b0){const _0x1f7083=_0x128a93;var _0x86f08e,_0x36ad24;return(_0x86f08e=(_0x36ad24=this[_0x1f7083(0x2e5)])['onTransformState'])==null?void 0x0:_0x86f08e[_0x1f7083(0x214)](_0x36ad24,_0x4367b0);}[_0x128a93(0x2a5)](_0x1b07da){const _0x265fdb=_0x128a93;var _0x3586dc,_0x26e619,_0x2a8a98;return(_0x3586dc=(_0x26e619=(_0x2a8a98=this[_0x265fdb(0x2e5)])[_0x265fdb(0x333)])==null?void 0x0:_0x26e619[_0x265fdb(0x214)](_0x2a8a98,_0x1b07da))==null?_0x1b07da:_0x3586dc;}[_0x128a93(0x3a0)](_0x41d854){var _0x313316,_0x1dc21b,_0x4d04a6;return(_0x313316=(_0x1dc21b=(_0x4d04a6=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x1dc21b['call'](_0x4d04a6,_0x41d854))==null?_0x41d854:_0x313316;}[_0x128a93(0x191)](_0x582c58){const _0x5a3c86=_0x128a93;if(this['type']===_0x61571e[_0x5a3c86(0x306)]){let {unitID:_0x379500,mutations:_0x5338fc,memberID:_0x3cd80c}=_0x582c58,_0x11e33e=_0x5338fc['length']>0x0?_0x5338fc[0x0]['params']['textRanges']:[];if(Array[_0x5a3c86(0x3b5)](_0x11e33e)&&_0x11e33e[_0x5a3c86(0x2c4)]>0x0){var _0x29e451,_0x4972d1;(_0x29e451=(_0x4972d1=this[_0x5a3c86(0x2e5)])[_0x5a3c86(0x2df)])==null||_0x29e451[_0x5a3c86(0x214)](_0x4972d1,{'unitID':_0x379500,'memberID':_0x3cd80c,'textRanges':_0x11e33e});}}}['_updateLocalCache'](){const _0x106fda=_0x128a93;var _0x57890a;(_0x57890a=this['_localCacheService'])==null||_0x57890a['updateOfflineData'](this[_0x106fda(0x2d2)],this[_0x106fda(0x2b6)],this[_0x106fda(0x13b)],this[_0x106fda(0x1de)]);}[_0x128a93(0x2b4)](){const _0x263af2=_0x128a93;return this[_0x263af2(0x2eb)][_0x263af2(0x235)](this['unitID']);}['_incrementRevisionNumber'](){const _0x1fe170=_0x128a93;this['_revisionService'][_0x1fe170(0x199)](this[_0x1fe170(0x2d2)]);}['_executeRemoteChangeset'](_0x21ed79){const _0x10b031=_0x128a93;let _0x52374c=this[_0x10b031(0x2a5)](_0x21ed79);_0x52374c=this['_transformRemoteChangesetByStateCache'](_0x52374c);let _0x307146=_0x148db0(_0x52374c[_0x10b031(0x36c)],this['_commandService'],{'fromCollab':!0x0});if(!_0x307146[_0x10b031(0x3ce)]){var _0x3e06ae;throw _0x307146['error']instanceof Error?_0x307146[_0x10b031(0x22c)]:Error((_0x3e06ae=_0x307146['error'])==null?'[CollaborationState]:\x20apply\x20error!':_0x3e06ae);}this[_0x10b031(0x1ab)](_0x52374c),this['_transformStateCache'](_0x52374c),this[_0x10b031(0x20f)](_0x21ed79),this[_0x10b031(0x326)](_0x52374c),this[_0x10b031(0x191)](_0x52374c),this[_0x10b031(0x25b)]();}};let K=class extends G{constructor(_0x398d21,_0x520b20,_0x2747f1,_0x21c762,_0x295e07,_0x343370,_0x34076d,_0x77c346,_0x1225e7,_0x4de5f1){const _0x2e8d34=_0x128a93;super(_0x398d21,_0x520b20,null,[],_0x2747f1,_0x34076d,_0x343370,_0x21c762,_0x4de5f1),this[_0x2e8d34(0x349)]=_0x295e07,this['_logService']=_0x77c346,this[_0x2e8d34(0x247)]=_0x1225e7,this[_0x2e8d34(0x226)]=_0x4de5f1,R(this,_0x2e8d34(0x2a9),_0x2e8d34(0x2e0));}[_0x128a93(0x28c)](_0x327f70){const _0x22c8db=_0x128a93;let _0x2284df=this['_injector'][_0x22c8db(0x279)](q,this['unitID'],this['type'],[_0x327f70],this[_0x22c8db(0x2e5)]);return _0x2284df[_0x22c8db(0x1e5)](),_0x2284df['_updateLocalCache'](),_0x2284df;}['onRemoteChangeset'](_0x29820f){const _0x18b615=_0x128a93;if(this['_checkMissing'](_0x29820f))return this[_0x18b615(0x349)][_0x18b615(0x279)](Q,this[_0x18b615(0x2d2)],this[_0x18b615(0x2b6)],null,[],null,[_0x29820f],this[_0x18b615(0x2e5)]);try{let _0x3238fa=this['_transformService']['transformMutationsWithChangeset'](_0x29820f,[_0x4cdf13]);if(_0x25be66(_0x3238fa)){let {c1Prime:_0x4b310a}=_0x3238fa;return this[_0x18b615(0x2cc)](_0x4b310a),this;}throw _0x3238fa[_0x18b615(0x22c)];}catch(_0x50fa77){return this['_logService'][_0x18b615(0x22c)](_0x50fa77),this[_0x18b615(0x1c4)](!0x1);}}['_onConflict'](_0x50d338){const _0x4a7379=_0x128a93;return this[_0x4a7379(0x349)]['createInstance'](X,this[_0x4a7379(0x2d2)],this[_0x4a7379(0x2b6)],null,[],this['_handler'],_0x50d338);}[_0x128a93(0x29c)](_0x4b219f){const _0x365f97=_0x128a93;if(_0x4b219f[_0x365f97(0x380)]<=this['_getCurrentRevision']())return this;throw Error(_0x365f97(0x2ad));}['onRemoteRej'](){const _0x3c039f=_0x128a93;throw Error(_0x3c039f(0x302));}['onRemoteRetry'](){return this;}[_0x128a93(0x24c)](){const _0x50300d=_0x128a93;return this[_0x50300d(0x349)][_0x50300d(0x279)](Z,this[_0x50300d(0x2d2)],this['type'],null,[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x33089a=_0x128a93;let _0x128407=this['_revisionService'][_0x33089a(0x235)](this[_0x33089a(0x2d2)]);return this[_0x33089a(0x2e5)][_0x33089a(0x15c)]({'from':_0x128407,'to':0x0}),this[_0x33089a(0x349)][_0x33089a(0x279)](Q,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};K=V([B(0x3,_0x37b5e1(_0x41f50e)),B(0x4,_0x37b5e1(_0x56145d)),B(0x5,_0x3fb98b),B(0x6,_0x3b4b60),B(0x7,_0x470483),B(0x8,_0xa32c02),B(0x9,_0x29c9af(U))],K);let q=un=class extends G{constructor(_0x3f401a,_0x131fe1,_0x5cd0db,_0x4971e3,_0x441c12,_0x1b29d5,_0x481b85,_0x47a0ba,_0xe456eb,_0x2105e4,_0x1cbe20,_0x5a19ce,_0x5a2cc6,_0x3959f5){const _0xde6d35=_0x128a93;super(_0x3f401a,_0x131fe1,null,_0x5cd0db,_0x4971e3,_0xe456eb,_0x5a2cc6,_0x1b29d5,_0x3959f5),this[_0xde6d35(0x349)]=_0x441c12,this['_memberService']=_0x481b85,this['_logService']=_0x47a0ba,this[_0xde6d35(0x280)]=_0x2105e4,this[_0xde6d35(0x247)]=_0x1cbe20,this['_univerInstanceService']=_0x5a19ce,R(this,_0xde6d35(0x2a9),_0xde6d35(0x39e)),R(this,_0xde6d35(0x248),null),R(this,'_sendingTimer',null);}[_0x128a93(0x28c)](_0x4607b8){const _0x295990=_0x128a93;return this['_pendingMutations'][_0x295990(0x263)](_0x4607b8),this[_0x295990(0x275)](),this;}[_0x128a93(0x162)](_0x3e7206){const _0x167ece=_0x128a93;if(this['_checkMissing'](_0x3e7206))return this['_clearScheduledTask'](),this['_injector'][_0x167ece(0x279)](Q,this['unitID'],this['type'],null,this[_0x167ece(0x1de)],null,[_0x3e7206],this[_0x167ece(0x2e5)]);try{let _0x39df57=this[_0x167ece(0x247)][_0x167ece(0x1d7)](_0x3e7206,this[_0x167ece(0x1de)]);if(_0x25be66(_0x39df57)){let {c1Prime:_0x721e8e,m2Prime:_0x4a3f8f}=_0x39df57;this['_executeRemoteChangeset'](_0x721e8e);let _0x2e0aaa=this['_injector'][_0x167ece(0x279)](un,this[_0x167ece(0x2d2)],this[_0x167ece(0x2b6)],_0x4a3f8f,this[_0x167ece(0x2e5)]);this[_0x167ece(0x332)]();let _0x10b395=new Date()[_0x167ece(0x327)](),_0x5311aa=this[_0x167ece(0x248)]?Math['max'](this[_0x167ece(0x248)]-_0x10b395,0x0):this[_0x167ece(0x16d)]();return _0x2e0aaa[_0x167ece(0x1e5)](_0x5311aa),_0x2e0aaa;}throw _0x39df57[_0x167ece(0x22c)];}catch(_0x295e41){return this['_logService'][_0x167ece(0x22c)](_0x295e41),this[_0x167ece(0x1c4)](!0x1);}}[_0x128a93(0x29c)](_0x15a6d0){const _0x26659e=_0x128a93;if(_0x15a6d0[_0x26659e(0x380)]<=this[_0x26659e(0x2b4)]())return this;throw Error(_0x26659e(0x21e));}[_0x128a93(0x2cf)](){const _0x50c70d=_0x128a93;throw Error(_0x50c70d(0x2e9));}['onRemoteRetry'](){return this;}[_0x128a93(0x24c)](){const _0x12b6cb=_0x128a93;return this['_clearScheduledTask'](),this['_injector'][_0x12b6cb(0x279)](Z,this[_0x12b6cb(0x2d2)],this['type'],null,this[_0x12b6cb(0x1de)],this[_0x12b6cb(0x2e5)]);}['toggleOnline'](){return this;}['_schedule'](_0x2ca991){const _0x4bcdcf=_0x128a93;let _0x54da7f=_0x2ca991==null?this[_0x4bcdcf(0x16d)]():_0x2ca991;this[_0x4bcdcf(0x248)]=new Date()['getTime']()+_0x54da7f,this[_0x4bcdcf(0x20a)]=setTimeout(()=>{const _0x290cf0=_0x4bcdcf;this[_0x290cf0(0x332)]();let _0x4b68fb=null;switch(this[_0x290cf0(0x2b6)]){case _0x61571e[_0x290cf0(0x146)]:_0x4b68fb=Zt(this['_pendingMutations'],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e[_0x290cf0(0x306)]:_0x4b68fb=this[_0x290cf0(0x1de)][_0x290cf0(0x1bf)](_0x4bd1e0=>_0x4bd1e0['id']===_0x5e08a2['id'])?$t(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this['_univerInstanceService'],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]):Zt(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e[_0x290cf0(0x164)]:_0x4b68fb=Qt(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e['UNIVER_BOARD']:_0x4b68fb=Zt(this[_0x290cf0(0x1de)],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this[_0x290cf0(0x2eb)],this[_0x290cf0(0x3aa)]);break;case _0x61571e[_0x290cf0(0x1c5)]:_0x4b68fb=Zt(this['_pendingMutations'],this[_0x290cf0(0x2d2)],this[_0x290cf0(0x312)],this['_revisionService'],this[_0x290cf0(0x3aa)]);break;default:throw Error(_0x290cf0(0x14a)+this['type']+_0x290cf0(0x205));}let {changeset:_0x1893ee,pendingMutations:_0x237c47}=_0x4b68fb;this['_handler'][_0x290cf0(0x3a4)](_0x1893ee);let _0x55163e=_0x237c47['length']?this[_0x290cf0(0x349)][_0x290cf0(0x279)](Y,this[_0x290cf0(0x2d2)],this[_0x290cf0(0x2b6)],_0x1893ee,_0x237c47,this[_0x290cf0(0x2e5)],void 0x0):this[_0x290cf0(0x349)][_0x290cf0(0x279)](J,this[_0x290cf0(0x2d2)],this[_0x290cf0(0x2b6)],_0x1893ee,this['_handler']);_0x55163e[_0x290cf0(0x275)](),this['_handler'][_0x290cf0(0x3c4)](this,_0x55163e);},_0x54da7f);}[_0x128a93(0x16d)](){const _0x415c7e=_0x128a93;var _0x13a4ef;let _0x1249f6=this['_configService'][_0x415c7e(0x1bc)](L);return(_0x13a4ef=_0x1249f6==null?void 0x0:_0x1249f6['sendChangesetTimeout'])==null?0x7d0:_0x13a4ef;}[_0x128a93(0x29f)](){const _0x26ca6c=_0x128a93;throw Error(_0x26ca6c(0x163));}[_0x128a93(0x332)](){const _0x433820=_0x128a93;this[_0x433820(0x20a)]!=null&&(clearTimeout(this[_0x433820(0x20a)]),this[_0x433820(0x20a)]=null);}[_0x128a93(0x1c4)](_0x30c98f){const _0x4c2046=_0x128a93;return this[_0x4c2046(0x332)](),this[_0x4c2046(0x349)][_0x4c2046(0x279)](X,this[_0x4c2046(0x2d2)],this[_0x4c2046(0x2b6)],null,this[_0x4c2046(0x1de)],this['_handler'],_0x30c98f);}};q=un=V([B(0x4,_0x37b5e1(_0x56145d)),B(0x5,_0x37b5e1(_0x41f50e)),B(0x6,_0x37b5e1(H)),B(0x7,_0x470483),B(0x8,_0x3b4b60),B(0x9,_0x46ffbd),B(0xa,_0xa32c02),B(0xb,_0x450b7c),B(0xc,_0x3fb98b),B(0xd,_0x29c9af(U))],q);let J=dn=class extends G{constructor(_0x354914,_0x353f76,_0x339365,_0x3dc496,_0x523401,_0x1f351e,_0x2b2837,_0x2c46e3,_0x4510b9,_0x5364eb,_0x19e27d){const _0x2944f2=_0x128a93;super(_0x354914,_0x353f76,_0x339365,[],_0x3dc496,_0x2b2837,_0x5364eb,_0x1f351e,_0x19e27d),this[_0x2944f2(0x349)]=_0x523401,this[_0x2944f2(0x346)]=_0x2c46e3,this[_0x2944f2(0x247)]=_0x4510b9,R(this,_0x2944f2(0x2a9),_0x2944f2(0x221)),R(this,_0x2944f2(0x3c8),0x0),R(this,_0x2944f2(0x1da),0x0),R(this,_0x2944f2(0x15f),void 0x0),R(this,_0x2944f2(0x2f6),void 0x0);}['appendMutation'](_0x46bb7b){const _0x3b55c1=_0x128a93;this[_0x3b55c1(0x332)]();let _0x2af83b=this['_injector'][_0x3b55c1(0x279)](Y,this[_0x3b55c1(0x2d2)],this[_0x3b55c1(0x2b6)],this[_0x3b55c1(0x13b)],[_0x46bb7b],this[_0x3b55c1(0x2e5)],this['_resendTimer']);return _0x2af83b['_updateLocalCache'](),_0x2af83b;}[_0x128a93(0x162)](_0x1eb044){const _0x570676=_0x128a93;if(this[_0x570676(0x289)](_0x1eb044))return this['_clearScheduledTask'](),this['_injector'][_0x570676(0x279)](Q,this[_0x570676(0x2d2)],this[_0x570676(0x2b6)],this['_awaitingChangeset'],[],null,[_0x1eb044],this['_handler']);try{let _0x4c8495=this['_transformService'][_0x570676(0x22a)]([_0x1eb044],[this['_awaitingChangeset']],!0x1);if(_0x4680e5(_0x4c8495)){let {c1Prime:_0x308659,c2Prime:_0xff759}=_0x4c8495;this[_0x570676(0x2cc)](_0x308659[0x0]),_0xff759[0x0]['baseRev']=this[_0x570676(0x2b4)](),this[_0x570676(0x332)]();let _0x4577d2=this[_0x570676(0x349)][_0x570676(0x279)](dn,this[_0x570676(0x2d2)],this[_0x570676(0x2b6)],_0xff759[0x0],this['_handler']);return _0x4577d2[_0x570676(0x275)](),_0x4577d2;}throw _0x4c8495['error'];}catch(_0x12a074){return this[_0x570676(0x346)]['error'](_0x12a074),this['_onConflict'](!0x1);}}[_0x128a93(0x29c)](_0x5d3f39){const _0x196d1b=_0x128a93;this[_0x196d1b(0x332)]();let _0x3fbca2=this[_0x196d1b(0x2eb)]['getCurrentRevOfUnit'](this[_0x196d1b(0x2d2)]);if(_0x5d3f39[_0x196d1b(0x380)]<=_0x3fbca2)return this;if(this['_checkMissing'](_0x5d3f39))return this[_0x196d1b(0x349)][_0x196d1b(0x279)](Q,this[_0x196d1b(0x2d2)],this[_0x196d1b(0x2b6)],this[_0x196d1b(0x13b)],[],_0x5d3f39[_0x196d1b(0x380)],[],this['_handler']);this['_incrementRevisionNumber']();let _0xaf54ea=this[_0x196d1b(0x349)][_0x196d1b(0x279)](K,this[_0x196d1b(0x2d2)],this[_0x196d1b(0x2b6)],this['_handler']);return _0xaf54ea[_0x196d1b(0x275)](),_0xaf54ea;}[_0x128a93(0x2cf)](_0x8cf242){const _0x2f4eb3=_0x128a93;return this[_0x2f4eb3(0x1c4)](!!(_0x8cf242!=null&&_0x8cf242[_0x2f4eb3(0x307)]));}[_0x128a93(0x19b)](_0x2a719a){const _0x39e28e=_0x128a93;return this['_maxTotalRetryTimeout']>hn?this[_0x39e28e(0x24c)]():(this['_resendTimer']=ln(this[_0x39e28e(0x3c8)],{'timeout':this['_resendTimeout'],'reqId':_0x2a719a[_0x39e28e(0x211)]}),this[_0x39e28e(0x2f6)]=this[_0x39e28e(0x15f)]['subscribe'](({reqId:_0x2d0643,timeout:_0x104ce3})=>{const _0x898d8b=_0x39e28e;this[_0x898d8b(0x336)](_0x2d0643,_0x104ce3);}),this);}[_0x128a93(0x24c)](){const _0x4b36a1=_0x128a93;return this[_0x4b36a1(0x332)](),this[_0x4b36a1(0x349)][_0x4b36a1(0x279)](Z,this[_0x4b36a1(0x2d2)],this[_0x4b36a1(0x2b6)],this[_0x4b36a1(0x13b)],[],this[_0x4b36a1(0x2e5)]);}[_0x128a93(0x249)](){return this;}[_0x128a93(0x29f)](){const _0x182260=_0x128a93;this[_0x182260(0x2e5)][_0x182260(0x3a4)](this[_0x182260(0x13b)]);}['_onConflict'](_0x1f2084){const _0x3131c2=_0x128a93;return this[_0x3131c2(0x332)](),this[_0x3131c2(0x349)][_0x3131c2(0x279)](X,this[_0x3131c2(0x2d2)],this[_0x3131c2(0x2b6)],this[_0x3131c2(0x13b)],[],this[_0x3131c2(0x2e5)],_0x1f2084);}[_0x128a93(0x336)](_0x4b9e21,_0x425382){const _0x5217f9=_0x128a93;var _0xa2dd01;_0x4b9e21===((_0xa2dd01=this[_0x5217f9(0x13b)])==null?void 0x0:_0xa2dd01[_0x5217f9(0x211)])&&(this[_0x5217f9(0x29f)](),this[_0x5217f9(0x3c8)]=_0x425382===0x0?0x3e8:Math[_0x5217f9(0x3c1)](_0x425382*0x2,mn),this[_0x5217f9(0x1da)]+=this[_0x5217f9(0x3c8)]);}[_0x128a93(0x332)](){const _0x26b154=_0x128a93;var _0x32cdaf;(_0x32cdaf=this['_sender'])==null||_0x32cdaf[_0x26b154(0x3b9)](),this['_resendTimeout']=0x0,this[_0x26b154(0x1da)]=0x0;}};J=dn=V([B(0x4,_0x37b5e1(_0x56145d)),B(0x5,_0x37b5e1(_0x41f50e)),B(0x6,_0x3b4b60),B(0x7,_0x470483),B(0x8,_0xa32c02),B(0x9,_0x3fb98b),B(0xa,_0x29c9af(U))],J);let Y=fn=class extends G{constructor(_0x10e5ed,_0x56045,_0x5c3d2e,_0x2effe9,_0x8d27cf,_0x386c9d,_0x519b28,_0x478df8,_0xbcf17,_0x5bc354,_0x276a71,_0x39bac2,_0x2b4bdd){const _0x4d8c1c=_0x128a93;super(_0x10e5ed,_0x56045,_0x5c3d2e,_0x2effe9,_0x8d27cf,_0xbcf17,_0x39bac2,_0x478df8,_0x2b4bdd),this[_0x4d8c1c(0x349)]=_0x519b28,this['_logService']=_0x5bc354,this['_transformService']=_0x276a71,this[_0x4d8c1c(0x226)]=_0x2b4bdd,R(this,'status',_0x4d8c1c(0x3ad)),R(this,_0x4d8c1c(0x3c8),0x0),R(this,_0x4d8c1c(0x1da),0x0),R(this,_0x4d8c1c(0x15f),void 0x0),R(this,_0x4d8c1c(0x2f6),void 0x0),_0x386c9d&&(this[_0x4d8c1c(0x15f)]=_0x386c9d,this['_sender']=this[_0x4d8c1c(0x15f)][_0x4d8c1c(0x1eb)](({reqId:_0x5aaf79,timeout:_0x85e49})=>{const _0x9ddb78=_0x4d8c1c;this[_0x9ddb78(0x336)](_0x5aaf79,_0x85e49);}));}[_0x128a93(0x28c)](_0x58f9b1){const _0x10eb75=_0x128a93;return this[_0x10eb75(0x1de)][_0x10eb75(0x263)](_0x58f9b1),this;}[_0x128a93(0x162)](_0x21fd0b){const _0x17c7bc=_0x128a93;if(this[_0x17c7bc(0x289)](_0x21fd0b))return this['_clearScheduledTask'](),this[_0x17c7bc(0x349)]['createInstance'](Q,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x17c7bc(0x1de)],null,[_0x21fd0b],this[_0x17c7bc(0x2e5)]);try{let _0x2af506=this['_transformService'][_0x17c7bc(0x22a)]([_0x21fd0b],[this['_awaitingChangeset']],!0x1);if(_0x4680e5(_0x2af506)){let {c1Prime:_0x190081,c2Prime:_0x2f34b4}=_0x2af506,_0x645cfa=this[_0x17c7bc(0x247)][_0x17c7bc(0x1d7)](_0x190081[0x0],this[_0x17c7bc(0x1de)]);if(_0x25be66(_0x645cfa)){let {c1Prime:_0x2050a9,m2Prime:_0x526bf5}=_0x645cfa;return this[_0x17c7bc(0x2cc)](_0x2050a9),_0x2f34b4[0x0][_0x17c7bc(0x2f0)]=this['_getCurrentRevision'](),this[_0x17c7bc(0x332)](),this['_injector']['createInstance'](fn,this[_0x17c7bc(0x2d2)],this[_0x17c7bc(0x2b6)],_0x2f34b4[0x0],_0x526bf5,this[_0x17c7bc(0x2e5)],void 0x0);}throw _0x645cfa['error'];}throw _0x2af506['error'];}catch(_0x57f890){return this[_0x17c7bc(0x346)][_0x17c7bc(0x22c)](_0x57f890),this[_0x17c7bc(0x1c4)](!0x1);}}[_0x128a93(0x29c)](_0x3bf594){const _0x1e2efa=_0x128a93;this[_0x1e2efa(0x332)]();let _0x10cdc2=this[_0x1e2efa(0x2b4)]();if(_0x3bf594[_0x1e2efa(0x380)]<=_0x10cdc2)return this;if(this[_0x1e2efa(0x289)](_0x3bf594))return this[_0x1e2efa(0x349)][_0x1e2efa(0x279)](Q,this[_0x1e2efa(0x2d2)],this[_0x1e2efa(0x2b6)],this[_0x1e2efa(0x13b)],this['_pendingMutations'],_0x3bf594[_0x1e2efa(0x380)],[],this['_handler']);this[_0x1e2efa(0x25b)]();let _0x33ff6b=this['_injector'][_0x1e2efa(0x279)](q,this[_0x1e2efa(0x2d2)],this[_0x1e2efa(0x2b6)],this[_0x1e2efa(0x1de)],this['_handler']);return _0x33ff6b[_0x1e2efa(0x1e5)](),_0x33ff6b['_updateLocalCache'](),_0x33ff6b;}[_0x128a93(0x2cf)](_0x5d68a1){return this['_onConflict'](!!(_0x5d68a1!=null&&_0x5d68a1['isPermissionRej']));}[_0x128a93(0x19b)](_0x5c6164){const _0x2451d7=_0x128a93;return this[_0x2451d7(0x1da)]>hn?this[_0x2451d7(0x24c)]():(this[_0x2451d7(0x15f)]=ln(this[_0x2451d7(0x3c8)],{'timeout':this[_0x2451d7(0x3c8)],'reqId':_0x5c6164[_0x2451d7(0x211)]}),this[_0x2451d7(0x2f6)]=this[_0x2451d7(0x15f)][_0x2451d7(0x1eb)](({reqId:_0x596564,timeout:_0x5219ef})=>{this['_resendWithTimeout'](_0x596564,_0x5219ef);}),this);}[_0x128a93(0x24c)](){const _0x39358e=_0x128a93;return this['_clearScheduledTask'](),this[_0x39358e(0x349)][_0x39358e(0x279)](Z,this[_0x39358e(0x2d2)],this[_0x39358e(0x2b6)],this[_0x39358e(0x13b)],this[_0x39358e(0x1de)],this['_handler']);}[_0x128a93(0x249)](){return this;}[_0x128a93(0x29f)](){const _0x1a66a5=_0x128a93;this['_handler'][_0x1a66a5(0x3a4)](this[_0x1a66a5(0x13b)]);}[_0x128a93(0x1c4)](_0x59ac9a){const _0x2bc74c=_0x128a93;return this[_0x2bc74c(0x332)](),this[_0x2bc74c(0x349)]['createInstance'](X,this['unitID'],this['type'],null,this[_0x2bc74c(0x1de)],this[_0x2bc74c(0x2e5)],_0x59ac9a);}[_0x128a93(0x336)](_0x4994e7,_0x4043d6){const _0x4b8280=_0x128a93;var _0x2d4da0;_0x4994e7===((_0x2d4da0=this['_awaitingChangeset'])==null?void 0x0:_0x2d4da0[_0x4b8280(0x211)])&&(this[_0x4b8280(0x29f)](),this['_resendTimeout']=_0x4043d6===0x0?0x3e8:Math[_0x4b8280(0x3c1)](_0x4043d6*0x2,mn),this[_0x4b8280(0x1da)]+=this[_0x4b8280(0x3c8)]);}['_clearScheduledTask'](){const _0x2f997f=_0x128a93;var _0x5c681f;(_0x5c681f=this[_0x2f997f(0x2f6)])==null||_0x5c681f[_0x2f997f(0x3b9)](),this[_0x2f997f(0x3c8)]=0x0,this[_0x2f997f(0x1da)]=0x0;}};Y=fn=V([B(0x6,_0x37b5e1(_0x56145d)),B(0x7,_0x37b5e1(_0x41f50e)),B(0x8,_0x3b4b60),B(0x9,_0x470483),B(0xa,_0xa32c02),B(0xb,_0x3fb98b),B(0xc,_0x29c9af(U))],Y);let X=class extends G{constructor(_0x15a8ec,_0x23943c,_0x3b642b,_0x2e325c,_0x13dc42,_0x185662=!0x1,_0x20a603,_0x1554b6,_0x5cf22e,_0x1b1ba3,_0x1c5d6e,_0x3f0ef8,_0x89e7c3){const _0x43b8d0=_0x128a93;super(_0x15a8ec,_0x23943c,_0x3b642b,_0x2e325c,_0x13dc42,_0x1554b6,_0x5cf22e,_0x1b1ba3,_0x89e7c3),this[_0x43b8d0(0x17d)]=_0x185662,this[_0x43b8d0(0x2be)]=_0x20a603,this[_0x43b8d0(0x35f)]=_0x1c5d6e,this['_collaborationUIEventService']=_0x3f0ef8,this[_0x43b8d0(0x226)]=_0x89e7c3,R(this,_0x43b8d0(0x2a9),_0x43b8d0(0x20b)),this[_0x43b8d0(0x1df)](),this[_0x43b8d0(0x295)](),this[_0x43b8d0(0x361)]();}[_0x128a93(0x28c)](){return this;}[_0x128a93(0x162)](){return this;}[_0x128a93(0x29c)](){return this;}[_0x128a93(0x2cf)](){return this;}[_0x128a93(0x19b)](){return this;}[_0x128a93(0x24c)](){return this;}[_0x128a93(0x249)](){return this;}[_0x128a93(0x29f)](){const _0x1a6901=_0x128a93;throw Error(_0x1a6901(0x272));}[_0x128a93(0x295)](){const _0xe36d1a=_0x128a93;var _0x351f0d,_0x3ee655,_0x1730fc;(_0x351f0d=this[_0xe36d1a(0x1fe)])==null||(_0x3ee655=_0x351f0d['backupOfflineData'])==null||(_0x3ee655=_0x3ee655[_0xe36d1a(0x214)](_0x351f0d,this[_0xe36d1a(0x2d2)],_0xe36d1a(0x20b)))==null||_0x3ee655[_0xe36d1a(0x296)](()=>void 0x0),(_0x1730fc=this[_0xe36d1a(0x1fe)])==null||_0x1730fc[_0xe36d1a(0x3cb)](this[_0xe36d1a(0x2d2)],this[_0xe36d1a(0x2b6)],null,[]);}[_0x128a93(0x1df)](){const _0xd4cdee=_0x128a93;this[_0xd4cdee(0x17d)]?this[_0xd4cdee(0x30c)][_0xd4cdee(0x173)]({'id':_0xd4cdee(0x28b)}):this[_0xd4cdee(0x30c)][_0xd4cdee(0x173)]({'id':_0xd4cdee(0x316)});}[_0x128a93(0x361)](){const _0x51b71f=_0x128a93;this[_0x51b71f(0x2be)][_0x51b71f(0x197)](new _0x1283c2(this[_0x51b71f(0x2d2)])['id'],!0x1);}};X=V([B(0x6,_0x37b5e1(_0x511b30)),B(0x7,_0x3b4b60),B(0x8,_0x3fb98b),B(0x9,_0x37b5e1(_0x41f50e)),B(0xa,_0x37b5e1(_0x5ae389)),B(0xb,_0x37b5e1(z)),B(0xc,_0x29c9af(U))],X);let Z=class extends G{constructor(_0x4e3c7c,_0x1a19e4,_0x414f4c,_0x266842,_0x5ed5e1,_0x2c1874,_0x20b4cd,_0x1c971a,_0x5187b0,_0x226550){const _0x1e2304=_0x128a93;super(_0x4e3c7c,_0x1a19e4,_0x414f4c,_0x266842,_0x5ed5e1,_0x1c971a,_0x5187b0,_0x20b4cd,_0x226550),this[_0x1e2304(0x349)]=_0x2c1874,R(this,_0x1e2304(0x2a9),_0x1e2304(0x2c7));}[_0x128a93(0x28c)](_0x4acaf6){const _0x311032=_0x128a93;return this[_0x311032(0x1de)][_0x311032(0x263)](_0x4acaf6),this[_0x311032(0x275)](),this;}[_0x128a93(0x162)](_0x12dc26){const _0x696c2d=_0x128a93;throw Error(_0x696c2d(0x391));}[_0x128a93(0x29c)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x128a93(0x2cf)](){const _0x480d4f=_0x128a93;throw Error(_0x480d4f(0x26b));}[_0x128a93(0x19b)](){return this;}[_0x128a93(0x24c)](){return this;}['toggleOnline'](){const _0x1e322a=_0x128a93;let {_injector:_0x307a19,_pendingMutations:_0x5d8b5e,_awaitingChangeset:_0x4f76f9,unitID:_0x4fbde8,_handler:_0x5696b0,type:_0x3357af}=this,_0x143c3f=gn(_0x307a19,_0x4fbde8,_0x3357af,_0x4f76f9,_0x5d8b5e,_0x5696b0);return _0x143c3f instanceof q?_0x143c3f['_schedule']():(_0x143c3f instanceof Y||_0x143c3f instanceof J)&&_0x143c3f[_0x1e322a(0x29f)](),_0x143c3f;}['resend'](){const _0x305eb6=_0x128a93;throw Error(_0x305eb6(0x21c));}};Z=V([B(0x5,_0x37b5e1(_0x56145d)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x3b4b60),B(0x8,_0x3fb98b),B(0x9,_0x29c9af(U))],Z);let Q=class extends G{constructor(_0x49ca94,_0x22be2a,_0x183b84,_0x58fae0,_0x39f666,_0x57f7d2,_0x2afd79,_0x3f19e9,_0x233d7e,_0x53f692,_0x30fda4,_0x390545,_0x86a84,_0x2cad4e){const _0x4670bd=_0x128a93;super(_0x49ca94,_0x22be2a,_0x183b84,_0x58fae0,_0x2afd79,_0x30fda4,_0x390545,_0x233d7e,_0x2cad4e),this[_0x4670bd(0x38e)]=_0x39f666,this[_0x4670bd(0x244)]=_0x57f7d2,this[_0x4670bd(0x349)]=_0x3f19e9,this[_0x4670bd(0x346)]=_0x53f692,this['_transformService']=_0x86a84,this[_0x4670bd(0x226)]=_0x2cad4e,R(this,'status',_0x4670bd(0x34c));}['onMissedChangesetFetched'](_0xd2d819){const _0x1ac4eb=_0x128a93;try{if(this[_0x1ac4eb(0x158)](_0xd2d819)[_0x1ac4eb(0x2aa)])throw Error(_0x1ac4eb(0x2c5));if(this[_0x1ac4eb(0x158)]([...this[_0x1ac4eb(0x244)]][_0x1ac4eb(0x30d)]((_0x12cd85,_0x1e871a)=>_0x12cd85[_0x1ac4eb(0x380)]-_0x1e871a[_0x1ac4eb(0x380)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this[_0x1ac4eb(0x275)](),this[_0x1ac4eb(0x2e5)][_0x1ac4eb(0x15c)]({'from':this[_0x1ac4eb(0x2b4)](),'to':0x0}),this;let _0x3d4ff7=this[_0x1ac4eb(0x13b)],_0x51e622=this[_0x1ac4eb(0x1de)],_0x484540;if(_0x3d4ff7&&_0x51e622[_0x1ac4eb(0x2c4)]!==0x0)_0x484540=this[_0x1ac4eb(0x349)]['createInstance'](Y,this[_0x1ac4eb(0x2d2)],this[_0x1ac4eb(0x2b6)],_0x3d4ff7,_0x51e622,this['_handler'],void 0x0);else{if(_0x3d4ff7&&_0x51e622[_0x1ac4eb(0x2c4)]===0x0)_0x3d4ff7[_0x1ac4eb(0x2f0)]=this[_0x1ac4eb(0x2b4)](),_0x484540=this['_injector'][_0x1ac4eb(0x279)](J,this[_0x1ac4eb(0x2d2)],this['type'],_0x3d4ff7,this['_handler']);else{if(_0x51e622[_0x1ac4eb(0x2c4)]!==0x0){let _0x110c74=this[_0x1ac4eb(0x349)]['createInstance'](q,this[_0x1ac4eb(0x2d2)],this['type'],_0x51e622,this['_handler']);_0x110c74['_schedule'](),_0x484540=_0x110c74;}else _0x484540=this[_0x1ac4eb(0x349)][_0x1ac4eb(0x279)](K,this['unitID'],this[_0x1ac4eb(0x2b6)],this[_0x1ac4eb(0x2e5)]);}}return _0x484540[_0x1ac4eb(0x275)](),_0x484540;}catch(_0x1b1692){return this[_0x1ac4eb(0x346)][_0x1ac4eb(0x22c)](_0x1ac4eb(0x375),_0x1ac4eb(0x3ba),_0x1b1692),this[_0x1ac4eb(0x349)][_0x1ac4eb(0x279)](X,this[_0x1ac4eb(0x2d2)],this['type'],this['_awaitingChangeset'],this[_0x1ac4eb(0x1de)],this[_0x1ac4eb(0x2e5)],!0x1);}}[_0x128a93(0x158)](_0x5eb277){const _0x41e3bd=_0x128a93;this[_0x41e3bd(0x2c3)]();for(let _0x46333a=0x0;_0x46333a<_0x5eb277['length'];_0x46333a++){let _0x37c83b=_0x5eb277[_0x46333a],_0x5ae501=this['_getCurrentRevision']();if(!(_0x37c83b[_0x41e3bd(0x380)]<=_0x5ae501)){if(_0x37c83b['revision']>_0x5ae501+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x37c83b)){this['_acknowledgeAwaiting']();continue;}this[_0x41e3bd(0x303)](_0x37c83b),this[_0x41e3bd(0x2c3)]();}}return{'missingChangesets':!0x1};}[_0x128a93(0x303)](_0x30110d){const _0x2fc828=_0x128a93;let _0xd3b315=_0x30110d,_0x4805cc=this[_0x2fc828(0x13b)];if(_0x4805cc){let _0x565a00=this[_0x2fc828(0x247)][_0x2fc828(0x22a)]([_0x30110d],[_0x4805cc],!0x1);if(!_0x4680e5(_0x565a00))throw _0x565a00[_0x2fc828(0x22c)];_0xd3b315=_0x565a00[_0x2fc828(0x2a4)][0x0],_0x4805cc=_0x565a00['c2Prime'][0x0];}let _0x5d7f4b=this[_0x2fc828(0x1de)];if(_0x5d7f4b['length']){let _0x1d4bc1=this['_transformService'][_0x2fc828(0x1d7)](_0xd3b315,_0x5d7f4b);if(!_0x25be66(_0x1d4bc1))throw _0x1d4bc1[_0x2fc828(0x22c)];_0xd3b315=_0x1d4bc1['c1Prime'],_0x5d7f4b=_0x1d4bc1['m2Prime'];}this['_executeRemoteChangeset'](_0xd3b315),_0x4805cc&&(_0x4805cc[_0x2fc828(0x2f0)]=this[_0x2fc828(0x2b4)]()),this[_0x2fc828(0x13b)]=_0x4805cc,this['_pendingMutations']=_0x5d7f4b;}[_0x128a93(0x2c3)](){const _0x3eab8c=_0x128a93;if(!this['_awaitingChangeset']||this[_0x3eab8c(0x38e)]==null)return;let _0x7df3f5=this[_0x3eab8c(0x2b4)]();if(this[_0x3eab8c(0x38e)]<=_0x7df3f5)throw Error(_0x3eab8c(0x242)+this[_0x3eab8c(0x38e)]+'.');this[_0x3eab8c(0x38e)]===_0x7df3f5+0x1&&this[_0x3eab8c(0x3d4)]();}[_0x128a93(0x3d4)](){const _0x298401=_0x128a93;this[_0x298401(0x25b)](),this[_0x298401(0x13b)]=null,this[_0x298401(0x38e)]=null;}[_0x128a93(0x2a0)](_0x3434d3){const _0x12c39c=_0x128a93;let _0x3bedf1=this[_0x12c39c(0x13b)];return!_0x3bedf1||!_0x3bedf1[_0x12c39c(0x21f)]||_0x3bedf1[_0x12c39c(0x211)]===null||_0x3bedf1[_0x12c39c(0x211)]===void 0x0?!0x1:_0x3434d3['unitID']===_0x3bedf1[_0x12c39c(0x2d2)]&&_0x3434d3[_0x12c39c(0x21f)]===_0x3bedf1[_0x12c39c(0x21f)]&&_0x3434d3['reqId']===_0x3bedf1[_0x12c39c(0x211)];}[_0x128a93(0x29f)](){const _0x200576=_0x128a93;throw Error(_0x200576(0x392));}[_0x128a93(0x28c)](_0x111508){const _0xe2b1cd=_0x128a93;return this[_0xe2b1cd(0x1de)][_0xe2b1cd(0x263)](_0x111508),this;}[_0x128a93(0x162)](_0x157031){const _0xebe187=_0x128a93;return this[_0xebe187(0x244)][_0xebe187(0x263)](_0x157031),this;}['onRemoteAck'](_0x3bbcc2){const _0x5237fd=_0x128a93;if(this['_awaitingChangeset']){let _0x4b3c3c=this[_0x5237fd(0x2b4)]();return _0x3bbcc2[_0x5237fd(0x380)]<=_0x4b3c3c||(_0x4b3c3c+0x1===_0x3bbcc2['revision']?(this[_0x5237fd(0x25b)](),this[_0x5237fd(0x13b)]=null,this[_0x5237fd(0x38e)]=null):this[_0x5237fd(0x38e)]=_0x3bbcc2[_0x5237fd(0x380)]),this;}if(_0x3bbcc2['revision']<=this[_0x5237fd(0x2b4)]())return this;throw Error(_0x5237fd(0x1c0));}[_0x128a93(0x2cf)](_0x7795e2){const _0x1150c1=_0x128a93;return this[_0x1150c1(0x1c4)](!!(_0x7795e2!=null&&_0x7795e2['isPermissionRej']));}['onRemoteRetry'](){return this;}[_0x128a93(0x24c)](){const _0x4c01a5=_0x128a93;return this['_injector'][_0x4c01a5(0x279)](Z,this[_0x4c01a5(0x2d2)],this['type'],this['_awaitingChangeset'],this[_0x4c01a5(0x1de)],this[_0x4c01a5(0x2e5)]);}[_0x128a93(0x249)](){return this;}[_0x128a93(0x1c4)](_0x3d6651){const _0x4d6cdf=_0x128a93;return this[_0x4d6cdf(0x349)][_0x4d6cdf(0x279)](X,this[_0x4d6cdf(0x2d2)],this['type'],this['_awaitingChangeset'],this[_0x4d6cdf(0x1de)],this[_0x4d6cdf(0x2e5)],_0x3d6651);}};Q=V([B(0x7,_0x37b5e1(_0x56145d)),B(0x8,_0x37b5e1(_0x41f50e)),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x3fb98b),B(0xc,_0xa32c02),B(0xd,_0x29c9af(U))],Q);function gn(_0x5384fa,_0x3b1088,_0x2f2d46,_0x5ccd10,_0x562808,_0x54a2b2){const _0x420b16=_0x128a93;return _0x5ccd10&&_0x562808[_0x420b16(0x2c4)]?_0x5384fa[_0x420b16(0x279)](Y,_0x3b1088,_0x2f2d46,_0x5ccd10,_0x562808,_0x54a2b2,void 0x0):_0x5ccd10?_0x5384fa['createInstance'](J,_0x3b1088,_0x2f2d46,_0x5ccd10,_0x54a2b2):_0x562808['length']?_0x5384fa[_0x420b16(0x279)](q,_0x3b1088,_0x2f2d46,_0x562808,_0x54a2b2):_0x5384fa[_0x420b16(0x279)](K,_0x3b1088,_0x2f2d46,_0x54a2b2);}let $=class extends _0x738f09{get[_0x128a93(0x3bf)](){return this['_state'];}constructor(_0x4dc23a,_0x1eb7f8,_0x3eebaa,_0x383046,_0xbcd84a,_0x1d77e9,_0x4f688d,_0x4f9711,_0x11c3a5,_0x2247e0,_0x5a9db4,_0x4604cc,_0x300394,_0x4fd337){const _0x152e6b=_0x128a93;super(),this['unitID']=_0x4dc23a,this[_0x152e6b(0x207)]=_0x1eb7f8,this[_0x152e6b(0x166)]=_0x3eebaa,this['_injector']=_0x383046,this[_0x152e6b(0x25f)]=_0xbcd84a,this['_localeService']=_0x1d77e9,this[_0x152e6b(0x2eb)]=_0x4f688d,this[_0x152e6b(0x1c8)]=_0x4f9711,this['_univerInstanceService']=_0x11c3a5,this[_0x152e6b(0x346)]=_0x2247e0,this[_0x152e6b(0x3a7)]=_0x5a9db4,this[_0x152e6b(0x2be)]=_0x4604cc,this[_0x152e6b(0x3b3)]=_0x300394,this['_localCacheService']=_0x4fd337,R(this,_0x152e6b(0x3cf),new _0x4e690d(null)),R(this,_0x152e6b(0x241),this[_0x152e6b(0x3cf)][_0x152e6b(0x1a1)]()),R(this,_0x152e6b(0x1e8),void 0x0),R(this,_0x152e6b(0x21b),!0x1),R(this,_0x152e6b(0x18e),''),R(this,_0x152e6b(0x3a6),0x0),R(this,'status$',this[_0x152e6b(0x241)][_0x152e6b(0x190)](_0x30823e(_0x1b2800=>_0x1b2800?_0x1b2800[_0x152e6b(0x2a9)]:_0x152e6b(0x2c7)),_0xa2739d({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x152e6b(0x29b),!0x1),R(this,'_remoteChangesetQueue',[]);}async[_0x128a93(0x308)](){const _0x33c31d=_0x128a93;if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x33c31d(0x2d4)]();}[_0x128a93(0x3d9)](){const _0x586007=_0x128a93;return this[_0x586007(0x21b)]=!0x0,_0x2296ca(()=>{const _0xaf1451=_0x586007;this[_0xaf1451(0x21b)]=!0x1,this[_0xaf1451(0x385)]();});}[_0x128a93(0x34f)](_0x123460){const _0x2de1a1=_0x128a93;this[_0x2de1a1(0x177)](_0x123460);}[_0x128a93(0x2e3)](_0x53d22f){const _0x59f920=_0x128a93;this[_0x59f920(0x1e8)]=_0x53d22f,this[_0x59f920(0x3cf)][_0x59f920(0x1d9)](_0x53d22f);}async[_0x128a93(0x2d4)](){const _0x4cae35=_0x128a93;if(this[_0x4cae35(0x2e3)](await this[_0x4cae35(0x266)]()),this[_0x4cae35(0x3b3)]){var _0x513dcb;(_0x513dcb=this[_0x4cae35(0x3b3)])==null||_0x513dcb[_0x4cae35(0x183)](this['unitID']),this[_0x4cae35(0x2ef)](this[_0x4cae35(0x3b3)][_0x4cae35(0x301)](this[_0x4cae35(0x2d2)])[_0x4cae35(0x1eb)](_0xcbb6c4=>{const _0x11c1f2=_0x4cae35;this[_0x11c1f2(0x346)][_0x11c1f2(0x284)]('[CollaborationEntity]',_0x11c1f2(0x34b),_0xcbb6c4),_0xcbb6c4===0x1?(this[_0x11c1f2(0x1c8)][_0x11c1f2(0x173)]({'id':_0x11c1f2(0x353)}),this[_0x11c1f2(0x2be)]['updatePermissionPoint'](new _0x1283c2(this[_0x11c1f2(0x2d2)])['id'],!0x1),this[_0x11c1f2(0x2be)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x11c1f2(0x197)](new _0x1283c2(this['unitID'])['id'],!0x0),this['_permissionService'][_0x11c1f2(0x357)](!0x0));}));}let _0x3637d1=!0x1;return this['disposeWithMe'](this[_0x4cae35(0x207)][_0x4cae35(0x206)][_0x4cae35(0x1eb)](_0xb6b353=>{const _0x1b349c=_0x4cae35;_0xb6b353===0x3?this['_toggleOnline'](_0x3637d1):_0xb6b353===0x2&&(_0x3637d1=!0x0,this[_0x1b349c(0x1dd)]());})),this['disposeWithMe'](this['session'][_0x4cae35(0x160)][_0x4cae35(0x1eb)](_0x1b807a=>{const _0x13b890=_0x4cae35;try{switch(_0x1b807a['eventID']){case _0x17c782[_0x13b890(0x2d8)]:this[_0x13b890(0x19d)](_0x599160(_0x1b807a[_0x13b890(0x204)]));break;case _0x17c782['CHANGESET_ACK']:this[_0x13b890(0x181)](_0x1b807a[_0x13b890(0x204)]);break;case _0x17c782['CHANGESET_REJ']:this[_0x13b890(0x170)]();break;case _0x17c782['CHANGESET_SHOULD_RETRY']:this[_0x13b890(0x140)](_0x1b807a[_0x13b890(0x204)]);break;case _0x17c782[_0x13b890(0x16e)]:this[_0x13b890(0x1d6)](_0x1b807a[_0x13b890(0x204)][_0x13b890(0x16a)]['map'](_0x1d0adc=>_0x599160(_0x1d0adc)));break;case _0x17c782[_0x13b890(0x315)]:this[_0x13b890(0x170)]({'isPermissionRej':!0x0});break;case _0x17c782[_0x13b890(0x293)]:break;}}catch(_0x4c260e){throw console[_0x13b890(0x22c)](_0x13b890(0x1ec),_0x4c260e),_0x4c260e;}})),this[_0x4cae35(0x1e8)];}['_unlockTransition'](){const _0x144d00=_0x128a93;this[_0x144d00(0x29b)]=!0x1;}[_0x128a93(0x387)](){const _0x48aeef=_0x128a93;if(this[_0x48aeef(0x29b)])throw Error(_0x48aeef(0x29e));this[_0x48aeef(0x29b)]=!0x0;}[_0x128a93(0x177)](_0x206d6d){const _0x2fc839=_0x128a93;this['_lockTransition'](),this['_updateState'](this[_0x2fc839(0x1e8)]['appendMutation'](_0x206d6d)),this[_0x2fc839(0x13f)]();}[_0x128a93(0x19d)](_0x493743){const _0x26ade8=_0x128a93;if(!(_0x493743[_0x26ade8(0x380)]<=this[_0x26ade8(0x2eb)][_0x26ade8(0x235)](this['unitID']))){if(this[_0x26ade8(0x21b)]){this[_0x26ade8(0x1a7)][_0x26ade8(0x263)](_0x493743);return;}this[_0x26ade8(0x239)](_0x493743);}}['_exhaustRemoteChangesetQueue'](){const _0x6f73e3=_0x128a93;this['_remoteChangesetQueue'][_0x6f73e3(0x3b6)](_0x34232e=>this[_0x6f73e3(0x239)](_0x34232e)),this['_remoteChangesetQueue']=[];}[_0x128a93(0x239)](_0x3809b1){const _0x1a0c39=_0x128a93;let _0x180f46=this['_compressMutationService']['interceptor'][_0x1a0c39(0x38a)](this[_0x1a0c39(0x25f)][_0x1a0c39(0x1d0)][_0x1a0c39(0x223)]()[_0x1a0c39(0x268)])(_0x3809b1[_0x1a0c39(0x36c)],null)||_0x3809b1[_0x1a0c39(0x36c)],_0x335b03={..._0x3809b1,'mutations':_0x180f46};this[_0x1a0c39(0x387)](),this['_updateState'](this[_0x1a0c39(0x1e8)][_0x1a0c39(0x162)](_0x335b03)),this['_unlockTransition']();}[_0x128a93(0x181)](_0x3a76ad){const _0x30b769=_0x128a93;this[_0x30b769(0x387)](),this[_0x30b769(0x2e3)](this[_0x30b769(0x1e8)][_0x30b769(0x29c)](_0x3a76ad)),this[_0x30b769(0x13f)]();}[_0x128a93(0x170)](_0x53e57e){const _0x506c0b=_0x128a93;this['_lockTransition'](),this[_0x506c0b(0x2e3)](this[_0x506c0b(0x1e8)][_0x506c0b(0x2cf)](_0x53e57e)),this[_0x506c0b(0x13f)]();}[_0x128a93(0x140)](_0x560fff){const _0x2df15b=_0x128a93;this['_lockTransition'](),this['_updateState'](this['_state'][_0x2df15b(0x19b)](_0x560fff)),this['_unlockTransition']();}[_0x128a93(0x1d6)](_0x5b89a0){const _0x48ae01=_0x128a93;if(!(this[_0x48ae01(0x1e8)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x3c216b=_0x5b89a0[_0x48ae01(0x24e)](_0x10c2f5=>{const _0x1a6d99=_0x48ae01;let _0x65c3fb=this[_0x1a6d99(0x25f)]['interceptor'][_0x1a6d99(0x38a)](this[_0x1a6d99(0x25f)][_0x1a6d99(0x1d0)][_0x1a6d99(0x223)]()[_0x1a6d99(0x268)])(_0x10c2f5[_0x1a6d99(0x36c)],null)||_0x10c2f5[_0x1a6d99(0x36c)];return{..._0x10c2f5,'mutations':_0x65c3fb};});this[_0x48ae01(0x387)](),this[_0x48ae01(0x2e3)](this['_state'][_0x48ae01(0x2d0)](_0x3c216b)),this[_0x48ae01(0x13f)]();}[_0x128a93(0x1dd)](){const _0x469d3a=_0x128a93;this[_0x469d3a(0x387)](),this[_0x469d3a(0x2e3)](this[_0x469d3a(0x1e8)]['toggleOffline']()),this[_0x469d3a(0x13f)]();}[_0x128a93(0x172)](_0x41520d=!0x1){const _0x4f9e74=_0x128a93;this['_lockTransition'](),this[_0x4f9e74(0x2e3)](this[_0x4f9e74(0x1e8)][_0x4f9e74(0x249)]()),this[_0x4f9e74(0x13f)]();let _0x2703a2=this[_0x4f9e74(0x1e8)];_0x41520d&&_0x2703a2 instanceof K&&(this['_lockTransition'](),this[_0x4f9e74(0x2e3)](_0x2703a2[_0x4f9e74(0x350)]()),this['_unlockTransition']());}async[_0x128a93(0x266)](){return new Promise(_0x208946=>{const _0x43af64=_0x1478;this['session'][_0x43af64(0x206)][_0x43af64(0x190)](_0x2611e8(0x1))[_0x43af64(0x1eb)](async _0x39e560=>{const _0x5cb3b8=_0x43af64;_0x208946(await this[_0x5cb3b8(0x2d5)](_0x39e560===0x3));});});}[_0x128a93(0x157)](){const _0x71eb52=_0x128a93;let _0x27f213=this[_0x71eb52(0x2d2)];return{'onStateChange':(_0x21edf3,_0x2909ec)=>{const _0x941dba=_0x71eb52;if(_0x21edf3!==this[_0x941dba(0x1e8)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x21edf3[_0x941dba(0x2a9)]+_0x941dba(0x2a3)+_0x2909ec['status']+_0x941dba(0x399)+this['_state'][_0x941dba(0x2a9)]);this[_0x941dba(0x2e3)](_0x2909ec);},'onSendChangeset':_0x3e0ad7=>{const _0x24b8b3=_0x71eb52;_0x3e0ad7[_0x24b8b3(0x21f)]||(_0x3e0ad7[_0x24b8b3(0x21f)]=this[_0x24b8b3(0x18e)],_0x3e0ad7[_0x24b8b3(0x211)]=++this[_0x24b8b3(0x3a6)]);let _0x527d21={'eventID':_0x17c782[_0x24b8b3(0x328)],'data':{'unitID':_0x3e0ad7[_0x24b8b3(0x2d2)],'unitType':this['_type'],'changeset':_0x3e0ad7,'memberID':this[_0x24b8b3(0x207)][_0x24b8b3(0x2bb)]()}};this['session'][_0x24b8b3(0x317)](_0x527d21,this[_0x24b8b3(0x2d2)]);},'onMissingChangesets':({from:_0x4210a2,to:_0x467d5c})=>{const _0x5d0115=_0x71eb52;this[_0x5d0115(0x346)]['debug'](_0x5d0115(0x341),_0x5d0115(0x3c3)+_0x4210a2+'\x20to\x20'+_0x467d5c);let _0x39d958={'eventID':_0x17c782['FETCH_MISSING'],'data':{'unitID':_0x27f213,'unitType':this['_type'],'from':_0x4210a2,'to':_0x467d5c}};this[_0x5d0115(0x207)][_0x5d0115(0x317)](_0x39d958,this[_0x5d0115(0x2d2)]);}};}async[_0x128a93(0x2d5)](_0x38ec3f){const _0x2fcf20=_0x128a93;var _0x3800b5,_0x54d011,_0xabaf1f;let _0x3a50d7=await((_0x3800b5=this[_0x2fcf20(0x1fe)])==null?void 0x0:_0x3800b5[_0x2fcf20(0x1cd)](this[_0x2fcf20(0x2d2)])),_0x47a860=(_0x54d011=_0x3a50d7==null?void 0x0:_0x3a50d7['mutations'])==null?[]:_0x54d011,_0x18658b=(_0xabaf1f=_0x3a50d7==null?void 0x0:_0x3a50d7[_0x2fcf20(0x1f1)])==null?null:_0xabaf1f,_0x946a1f=!!(_0x18658b!=null&&_0x18658b[_0x2fcf20(0x21f)])&&!!(_0x18658b!=null&&_0x18658b[_0x2fcf20(0x211)]);this['_changesetSessionId']=_0x946a1f?_0x18658b[_0x2fcf20(0x21f)]:_0x48aba6(),this[_0x2fcf20(0x3a6)]=_0x946a1f?_0x18658b[_0x2fcf20(0x211)]:0x0;let _0x4400d7=this[_0x2fcf20(0x2d2)];try{this[_0x2fcf20(0x13d)](_0x18658b,_0x47a860);}catch(_0x4e06b5){this[_0x2fcf20(0x346)]['error'](_0x4e06b5);}let _0xfb21a4=this[_0x2fcf20(0x157)]();if(_0x38ec3f){let _0x443e9d=gn(this[_0x2fcf20(0x349)],_0x4400d7,this[_0x2fcf20(0x166)],_0x18658b,_0x47a860,_0xfb21a4);return _0x443e9d instanceof q?_0x443e9d['_schedule']():(_0x443e9d instanceof Y||_0x443e9d instanceof J)&&_0x443e9d[_0x2fcf20(0x29f)](),_0x443e9d;}return this[_0x2fcf20(0x349)][_0x2fcf20(0x279)](Z,_0x4400d7,this[_0x2fcf20(0x166)],_0x18658b,_0x47a860,_0xfb21a4);}['_replayCachedMutations'](_0x2f70f2,_0x52aa98){const _0x3c6a3f=_0x128a93;var _0x9f4752,_0x13d520;let _0x51016e=this['_compressMutationService'][_0x3c6a3f(0x1d0)][_0x3c6a3f(0x38a)](this[_0x3c6a3f(0x25f)]['interceptor'][_0x3c6a3f(0x223)]()['COMPRESS_MUTATION_APPLY']);(_0x9f4752=_0x51016e((_0x2f70f2==null?void 0x0:_0x2f70f2[_0x3c6a3f(0x36c)])||[],null))==null||_0x9f4752[_0x3c6a3f(0x3b6)](_0x3c9399=>this[_0x3c6a3f(0x3a7)][_0x3c6a3f(0x1e0)](_0x3c9399['id'],_0x3c9399['params'])),(_0x13d520=_0x51016e(_0x52aa98||[],null))==null||_0x13d520[_0x3c6a3f(0x3b6)](_0x496b90=>this[_0x3c6a3f(0x3a7)][_0x3c6a3f(0x1e0)](_0x496b90['id'],_0x496b90['params']));}};$=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],$);let _n=class extends ${constructor(_0x17907a,_0x3db338,_0x50e7a0,_0x32f697,_0x59ac2d,_0x1c100d,_0x14d4ee,_0x312766,_0x4e1c4c,_0x27372e,_0x18e109,_0x232504,_0x2cc3c0,_0xada028,_0x4dc465){const _0x2aa395=_0x128a93;super(_0x17907a,_0x50e7a0,_0x3db338,_0x32f697,_0x59ac2d,_0x1c100d,_0x14d4ee,_0x312766,_0x4e1c4c,_0x27372e,_0x18e109,_0x232504,_0xada028,_0x4dc465),this[_0x2aa395(0x2d2)]=_0x17907a,this[_0x2aa395(0x2b6)]=_0x3db338,this[_0x2aa395(0x1bd)]=_0x2cc3c0,R(this,_0x2aa395(0x264),null);}['addHandlerCallback'](_0x52645b){const _0x416500=_0x128a93;this[_0x416500(0x264)]=_0x52645b;}[_0x128a93(0x358)](){const _0x40573a=_0x128a93;this[_0x40573a(0x264)]=null,super['dispose']();}[_0x128a93(0x157)](){const _0x1ec574=_0x128a93;let _0x58972d=super[_0x1ec574(0x157)]();return _0x58972d[_0x1ec574(0x2a1)]=_0xa656b9=>{const _0x903952=_0x1ec574;var _0x2f11a2,_0x46f25e;return(_0x2f11a2=this[_0x903952(0x264)])==null||(_0x46f25e=_0x2f11a2[_0x903952(0x2a1)])==null?void 0x0:_0x46f25e[_0x903952(0x214)](_0x2f11a2,_0xa656b9);},_0x58972d[_0x1ec574(0x236)]=_0xd645d2=>{const _0xb03402=_0x1ec574;var _0x3466b7,_0x2b3f5f;return(_0x3466b7=this[_0xb03402(0x264)])==null||(_0x2b3f5f=_0x3466b7[_0xb03402(0x236)])==null?void 0x0:_0x2b3f5f[_0xb03402(0x214)](_0x3466b7,_0xd645d2);},_0x58972d['onTransformSelections']=_0x893bba=>{const _0x3ec81c=_0x1ec574;var _0x326449,_0x15faf4;return(_0x326449=this[_0x3ec81c(0x264)])==null||(_0x15faf4=_0x326449['onTransformSelections'])==null?void 0x0:_0x15faf4[_0x3ec81c(0x214)](_0x326449,_0x893bba);},_0x58972d[_0x1ec574(0x2df)]=_0x4c5201=>{const _0x479b82=_0x1ec574;var _0xe44756,_0x938bbe;return(_0xe44756=this['_handlerCallback'])==null||(_0x938bbe=_0xe44756[_0x479b82(0x2df)])==null?void 0x0:_0x938bbe[_0x479b82(0x214)](_0xe44756,_0x4c5201);},_0x58972d['onTransformRemoteChangesetByIMECache']=_0x14e219=>{const _0x5c563a=_0x1ec574;var _0x273d56,_0xfb471,_0x3918f8;return(_0x273d56=(_0xfb471=this['_handlerCallback'])==null||(_0x3918f8=_0xfb471[_0x5c563a(0x333)])==null?void 0x0:_0x3918f8['call'](_0xfb471,_0x14e219))==null?_0x14e219:_0x273d56;},_0x58972d['onTransformRemoteChangesetByStateCache']=_0x40e612=>{const _0x48f606=_0x1ec574;var _0xdf972b,_0x30da03,_0xbdaaba;return(_0xdf972b=(_0x30da03=this[_0x48f606(0x264)])==null||(_0xbdaaba=_0x30da03['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xbdaaba[_0x48f606(0x214)](_0x30da03,_0x40e612))==null?_0x40e612:_0xdf972b;},_0x58972d;}async[_0x128a93(0x2d4)](){const _0x285c15=_0x128a93;let _0x4d274c=await super[_0x285c15(0x2d4)]();return this[_0x285c15(0x2ef)](this[_0x285c15(0x1bd)]['docStateChange$'][_0x285c15(0x1eb)](_0x227eb8=>{const _0x1d7bd3=_0x285c15;if(_0x227eb8==null||_0x227eb8[_0x1d7bd3(0x285)]!==this[_0x1d7bd3(0x2d2)])return;let {commandId:_0x3ce5f3,redoState:_0x393655,unitId:_0x430beb}=_0x227eb8,_0x100ac0={'id':_0x3ce5f3,'type':_0x5ba872[_0x1d7bd3(0x2a2)],'params':{'unitId':_0x430beb,'actions':_0x393655[_0x1d7bd3(0x1a2)],'textRanges':null}};this[_0x1d7bd3(0x177)](_0x100ac0);})),this[_0x285c15(0x2ef)](this[_0x285c15(0x3a7)]['onMutationExecutedForCollab']((_0x1edf3a,_0x77e72d)=>{const _0x1f0f38=_0x285c15;if(_0x1edf3a[_0x1f0f38(0x2b6)]!==_0x5ba872[_0x1f0f38(0x2a2)]||_0x77e72d!=null&&_0x77e72d[_0x1f0f38(0x15a)]||_0x77e72d!=null&&_0x77e72d['onlyLocal']||_0x1edf3a['id']===_0x5e08a2['id'])return;let _0x1421bb=_0x1edf3a[_0x1f0f38(0x2dd)];if((_0x1421bb==null?void 0x0:_0x1421bb[_0x1f0f38(0x285)])!==this[_0x1f0f38(0x2d2)])return;let _0x37af89=_0x1edf3a,_0x16a851=this[_0x1f0f38(0x25f)][_0x1f0f38(0x1d0)]['fetchThroughInterceptors'](this[_0x1f0f38(0x25f)][_0x1f0f38(0x1d0)][_0x1f0f38(0x223)]()[_0x1f0f38(0x1e1)])([_0x37af89],this[_0x1f0f38(0x312)])||[_0x37af89];this['_onLocalMutation'](_0x16a851[0x0]);})),_0x4d274c;}};_n=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x37b5e1(_0x31c7bd)),B(0xd,_0x29c9af(W)),B(0xe,_0x29c9af(U))],_n);let vn=class extends ${constructor(_0x320539,_0x5cdb31,_0x2f3995,_0x319b5e,_0x5065cb,_0x12e364,_0x1eaca9,_0x3f5e10,_0x58a251,_0x221c39,_0x4cf8b9,_0x3cbfe8,_0x4ee8fe,_0x2dfbe5){const _0x5f007a=_0x128a93;super(_0x320539,_0x2f3995,_0x5cdb31,_0x319b5e,_0x5065cb,_0x12e364,_0x1eaca9,_0x3f5e10,_0x58a251,_0x221c39,_0x4cf8b9,_0x3cbfe8,_0x4ee8fe,_0x2dfbe5),this['unitID']=_0x320539,this[_0x5f007a(0x2b6)]=_0x5cdb31;}async['_init'](){const _0x23b09a=_0x128a93;let _0x256552=await super[_0x23b09a(0x2d4)]();return this['disposeWithMe'](this[_0x23b09a(0x3a7)][_0x23b09a(0x323)]((_0x48be5f,_0x14bfa6)=>{const _0x239839=_0x23b09a;if(_0x48be5f[_0x239839(0x2b6)]!==_0x5ba872[_0x239839(0x2a2)]||_0x14bfa6!=null&&_0x14bfa6['fromCollab']||_0x14bfa6!=null&&_0x14bfa6[_0x239839(0x283)])return;let _0x185ae3=_0x48be5f[_0x239839(0x2dd)];if((_0x185ae3==null?void 0x0:_0x185ae3[_0x239839(0x285)])!==this[_0x239839(0x2d2)])return;let _0x12e52b=_0x48be5f,_0xf7ab7e=this[_0x239839(0x25f)]['interceptor'][_0x239839(0x38a)](this[_0x239839(0x25f)][_0x239839(0x1d0)][_0x239839(0x223)]()[_0x239839(0x1e1)])([_0x12e52b],this[_0x239839(0x312)])||[_0x12e52b];this[_0x239839(0x177)](_0xf7ab7e[0x0]);})),_0x256552;}};vn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],vn);let yn=class extends ${constructor(_0x31a1e3,_0x13f769,_0xa8c231,_0x3e8c23,_0x1c2dd5,_0x4cfbd9,_0x353f63,_0x1912e7,_0x24d34e,_0x14e99d,_0x4ebb25,_0x568b1d,_0x37140f,_0x46d9f6,_0x4aa739){const _0xe8cc85=_0x128a93;super(_0x31a1e3,_0xa8c231,_0x13f769,_0x3e8c23,_0x1c2dd5,_0x4cfbd9,_0x353f63,_0x24d34e,_0x14e99d,_0x4ebb25,_0x568b1d,_0x37140f,_0x46d9f6,_0x4aa739),this[_0xe8cc85(0x2d2)]=_0x31a1e3,this[_0xe8cc85(0x2b6)]=_0x13f769,this[_0xe8cc85(0x2c2)]=_0x1912e7;}['_createHandler'](){const _0x295d71=_0x128a93;let _0x29784a=super[_0x295d71(0x157)]();return _0x29784a[_0x295d71(0x35c)]=_0x5b65ed=>this[_0x295d71(0x2c2)][_0x295d71(0x2e4)](_0x5b65ed),_0x29784a;}async[_0x128a93(0x2d4)](){const _0x335e7a=_0x128a93;let _0x154950=await super[_0x335e7a(0x2d4)]();return this[_0x335e7a(0x2ef)](this['_commandService'][_0x335e7a(0x323)]((_0x2dd323,_0x445c85)=>{const _0x5cfcc4=_0x335e7a;if(_0x2dd323[_0x5cfcc4(0x2b6)]!==_0x5ba872[_0x5cfcc4(0x2a2)]||_0x445c85!=null&&_0x445c85['fromCollab']||_0x445c85!=null&&_0x445c85['onlyLocal'])return;let _0x6968c5=_0x2dd323[_0x5cfcc4(0x2dd)];if((_0x6968c5==null?void 0x0:_0x6968c5['unitId'])!==this['unitID'])return;let _0x233ae7=_0x2dd323,_0x2a882d=this[_0x5cfcc4(0x25f)]['interceptor'][_0x5cfcc4(0x38a)](this[_0x5cfcc4(0x25f)]['interceptor'][_0x5cfcc4(0x223)]()[_0x5cfcc4(0x1e1)])([_0x233ae7],this[_0x5cfcc4(0x312)])||[_0x233ae7];this['_onLocalMutation'](_0x2a882d[0x0]);})),_0x154950;}};yn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(Gt)),B(0x8,_0x37b5e1(z)),B(0x9,_0x450b7c),B(0xa,_0x470483),B(0xb,_0x3b4b60),B(0xc,_0x511b30),B(0xd,_0x29c9af(W)),B(0xe,_0x29c9af(U))],yn);let bn=class extends ${constructor(_0x1e5b38,_0x5ef580,_0x30e34b,_0x5d4fef,_0xc39ca5,_0x2e1940,_0x4bb279,_0x1dcb2c,_0xc955d4,_0x1d92c2,_0x31f375,_0x6c50eb,_0x5ea8e5,_0x2cd95b){const _0x1370df=_0x128a93;super(_0x1e5b38,_0x30e34b,_0x5ef580,_0x5d4fef,_0xc39ca5,_0x2e1940,_0x4bb279,_0x1dcb2c,_0xc955d4,_0x1d92c2,_0x31f375,_0x6c50eb,_0x5ea8e5,_0x2cd95b),this[_0x1370df(0x2d2)]=_0x1e5b38,this['type']=_0x5ef580;}async['_init'](){const _0x46b583=_0x128a93;let _0x242067=await super['_init']();return this[_0x46b583(0x2ef)](this[_0x46b583(0x3a7)]['onMutationExecutedForCollab']((_0x244b26,_0x34f8fb)=>{const _0x12961a=_0x46b583;if(_0x244b26['type']!==_0x5ba872[_0x12961a(0x2a2)]||_0x34f8fb!=null&&_0x34f8fb[_0x12961a(0x15a)]||_0x34f8fb!=null&&_0x34f8fb[_0x12961a(0x283)])return;let _0x5bb9e0=_0x244b26[_0x12961a(0x2dd)];if((_0x5bb9e0==null?void 0x0:_0x5bb9e0['unitId'])!==this['unitID'])return;let _0x124f70=_0x244b26,_0x30de37=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x12961a(0x25f)][_0x12961a(0x1d0)][_0x12961a(0x223)]()[_0x12961a(0x1e1)])([_0x124f70],this[_0x12961a(0x312)])||[_0x124f70];this[_0x12961a(0x177)](_0x30de37[0x0]);})),_0x242067;}};bn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],bn);let xn=class extends ${constructor(_0x3370f3,_0x358c5a,_0x2f7b09,_0x3ccd87,_0x5e0221,_0x2fac49,_0x39522b,_0x5dc7ce,_0x55fa50,_0x444830,_0x252bf,_0x21b8f5,_0x3b96e3,_0x394b17){const _0xbb7f9f=_0x128a93;super(_0x3370f3,_0x2f7b09,_0x358c5a,_0x3ccd87,_0x5e0221,_0x2fac49,_0x39522b,_0x5dc7ce,_0x55fa50,_0x444830,_0x252bf,_0x21b8f5,_0x3b96e3,_0x394b17),this[_0xbb7f9f(0x2d2)]=_0x3370f3,this['type']=_0x358c5a;}async[_0x128a93(0x2d4)](){const _0x22215f=_0x128a93;let _0x3a3e40=await super['_init']();return this[_0x22215f(0x2ef)](this[_0x22215f(0x3a7)][_0x22215f(0x323)]((_0x1c1ae7,_0x4c7b7a)=>{const _0x115a68=_0x22215f;if(_0x1c1ae7['type']!==_0x5ba872['MUTATION']||_0x4c7b7a!=null&&_0x4c7b7a[_0x115a68(0x15a)]||_0x4c7b7a!=null&&_0x4c7b7a[_0x115a68(0x283)])return;let _0x1e61db=_0x1c1ae7['params'];if((_0x1e61db==null?void 0x0:_0x1e61db[_0x115a68(0x285)])!==this[_0x115a68(0x2d2)])return;let _0x508ac9=_0x1c1ae7,_0x5c31d1=this[_0x115a68(0x25f)][_0x115a68(0x1d0)][_0x115a68(0x38a)](this[_0x115a68(0x25f)][_0x115a68(0x1d0)][_0x115a68(0x223)]()[_0x115a68(0x1e1)])([_0x508ac9],this['_univerInstanceService'])||[_0x508ac9];this[_0x115a68(0x177)](_0x5c31d1[0x0]);})),_0x3a3e40;}};xn=V([B(0x3,_0x37b5e1(_0x56145d)),B(0x4,_0x37b5e1(_0x2c8338)),B(0x5,_0x37b5e1(_0x5ae389)),B(0x6,_0x37b5e1(_0x41f50e)),B(0x7,_0x37b5e1(z)),B(0x8,_0x450b7c),B(0x9,_0x470483),B(0xa,_0x3b4b60),B(0xb,_0x511b30),B(0xc,_0x29c9af(W)),B(0xd,_0x29c9af(U))],xn);const Sn=_0xd7efb5('univer-pro.collaboration-client.network-condition.service');function Cn(_0xc040d6){const _0x413fd1=_0x128a93;let _0x5a988c=_0xc040d6['data'],_0x5d6bda=JSON['parse'](_0x5a988c);switch(_0x5d6bda[_0x413fd1(0x17b)]){case _0x10f422[_0x413fd1(0x38d)]:case _0x10f422['HELLO']:{let _0x44bd6f=_0x5d6bda[_0x413fd1(0x2fc)];return{..._0x5d6bda,'data':_0x44bd6f,'cmd':_0x5d6bda['cmd']};}case _0x10f422['JOIN']:{let _0x530b8d=_0x5d6bda[_0x413fd1(0x331)];return{..._0x5d6bda,'data':_0x530b8d,'cmd':_0x5d6bda[_0x413fd1(0x17b)]};}case _0x10f422['RECV']:{let _0x4b2cfb=_0x5d6bda[_0x413fd1(0x1e9)];switch(_0x4b2cfb[_0x413fd1(0x2b7)]){case _0x17c782[_0x413fd1(0x315)]:var _0x5b414b;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x5b414b=_0x4b2cfb[_0x413fd1(0x2d9)])==null?void 0x0:_0x5b414b['cs']},'cmd':_0x5d6bda['cmd']};case _0x17c782[_0x413fd1(0x3bb)]:var _0x3e5a18;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x3e5a18=_0x4b2cfb[_0x413fd1(0x265)])==null?void 0x0:_0x3e5a18['cs']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x2d8)]:var _0x1c7fb2;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x1c7fb2=_0x4b2cfb[_0x413fd1(0x1f9)])==null?void 0x0:_0x1c7fb2['cs']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x383)]:var _0xd3958c;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0xd3958c=_0x4b2cfb[_0x413fd1(0x246)])==null?void 0x0:_0xd3958c['cs']},'cmd':_0x5d6bda['cmd']};case _0x17c782[_0x413fd1(0x377)]:var _0x59876c;return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':(_0x59876c=_0x4b2cfb[_0x413fd1(0x22b)])==null?void 0x0:_0x59876c['cs']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x22d)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x1f5)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x14e)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x347)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782['USERS_LEAVE']:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['leaveEvent']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x330)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['liveShareNewHost']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x28d)]:case _0x17c782[_0x413fd1(0x213)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['liveShareOperation']},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782['LIVESHARE_TERMINATE']:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x188)]},'cmd':_0x5d6bda['cmd']};case _0x17c782['MSG_FOR_ERROR']:return{..._0x5d6bda,'data':_0x4b2cfb,'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x3be)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x36a)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x3a8)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x1d4)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782['SHOULD_CLOSE_CONN']:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb[_0x413fd1(0x18a)]},'cmd':_0x5d6bda[_0x413fd1(0x17b)]};case _0x17c782[_0x413fd1(0x293)]:return{..._0x5d6bda,'data':{..._0x4b2cfb,'data':_0x4b2cfb['uniscriptRunEvent']},'cmd':_0x5d6bda['cmd']};default:return _0x5d6bda;}}default:return _0x5d6bda;}}function wn(_0x18c91b){const _0x4fa9c7=_0x128a93;switch(_0x18c91b[_0x4fa9c7(0x17b)]){case _0x10f422[_0x4fa9c7(0x38d)]:case _0x10f422[_0x4fa9c7(0x294)]:return JSON[_0x4fa9c7(0x297)]({'cmd':_0x18c91b['cmd'],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)]});case _0x10f422[_0x4fa9c7(0x31d)]:{let _0x17e4c7;switch(_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x2b7)]){case _0x17c782['UPDATE_CURSOR']:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x22d)],'updateCursorEvent':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x310)]:_0x17e4c7={'eventID':_0x17c782['USERS_LEAVE'],'leaveEvent':_0x18c91b[_0x4fa9c7(0x204)]['data']};break;case _0x17c782[_0x4fa9c7(0x14e)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x14e)],'joinEvent':_0x18c91b['data'][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x330)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x330)],'liveShareNewHost':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x213)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x213)],'liveShareOperation':_0x18c91b['data'][_0x4fa9c7(0x204)]};break;case _0x17c782['LIVESHARE_TERMINATE']:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x38c)],'liveShareTerminate':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782[_0x4fa9c7(0x390)]:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x390)],'liveShareRequestHost':_0x18c91b[_0x4fa9c7(0x204)][_0x4fa9c7(0x204)]};break;case _0x17c782['LIVESHARE_FETCH_OPERATIONS']:_0x17e4c7={'eventID':_0x17c782[_0x4fa9c7(0x28d)]};break;default:_0x17e4c7={'eventID':_0x18c91b['data'][_0x4fa9c7(0x2b7)]};}return JSON['stringify']({'cmd':_0x18c91b[_0x4fa9c7(0x17b)],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)],'collaMsg':_0x17e4c7});}case _0x10f422[_0x4fa9c7(0x1ea)]:return JSON[_0x4fa9c7(0x297)]({'cmd':_0x18c91b['cmd'],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)],'joinReq':_0x18c91b['data']});case _0x10f422[_0x4fa9c7(0x237)]:return JSON[_0x4fa9c7(0x297)]({'cmd':_0x18c91b[_0x4fa9c7(0x17b)],'routeKey':_0x18c91b[_0x4fa9c7(0x2b2)],'leaveReq':_0x18c91b['data']});default:throw Error(_0x4fa9c7(0x243));}}const Tn=_0xd7efb5('univer-pro.collaboration-client-socket-service');function En(_0x4f8947,_0x3d42e4,_0x4ffe2a){const _0x55dea3=_0x128a93;return _0x4f8947+'/'+_0x3d42e4+'/unit/'+_0x4ffe2a+_0x55dea3(0x1c3);}let Dn=class extends _0x403d15{constructor(_0x12a24b,_0x5b5ada,_0x57432f,_0x35fbfd,_0x2234da){const _0xa3ac23=_0x128a93;super(),this['_injector']=_0x12a24b,this[_0xa3ac23(0x261)]=_0x5b5ada,this[_0xa3ac23(0x280)]=_0x57432f,this[_0xa3ac23(0x346)]=_0x35fbfd,this['_snapshotServerService']=_0x2234da;}['_doCreateSocket'](_0x1c15d0){const _0x16b3e3=_0x128a93;let _0x34ef02=this[_0x16b3e3(0x349)][_0x16b3e3(0x2f1)](_0x4f0a93);if(!_0x34ef02)throw Error(_0x16b3e3(0x144));let _0x284e49=_0x34ef02[_0x16b3e3(0x1b5)](_0x1c15d0);if(!_0x284e49)throw Error(_0x16b3e3(0x3d5));let _0x595179=new _0x201dd7(),_0x1cb4b9=new _0x10b8bf();_0x595179[_0x16b3e3(0x159)](_0x284e49[_0x16b3e3(0x148)][_0x16b3e3(0x1eb)](_0x4838fb=>_0x1cb4b9[_0x16b3e3(0x1d9)](_0x4838fb))),_0x595179[_0x16b3e3(0x159)](_0x2296ca(()=>_0x1cb4b9['complete']()));let _0x1321df=new _0x10b8bf();_0x595179[_0x16b3e3(0x159)](_0x284e49[_0x16b3e3(0x277)][_0x16b3e3(0x1eb)](_0x25d268=>_0x1321df[_0x16b3e3(0x1d9)](_0x25d268))),_0x595179['add'](_0x2296ca(()=>_0x1321df['complete']()));let _0x287592=new _0x10b8bf();_0x595179[_0x16b3e3(0x159)](_0x284e49[_0x16b3e3(0x3bd)][_0x16b3e3(0x1eb)](_0x5ee89d=>{const _0x4a116f=_0x16b3e3;let _0x277ac0=Cn(_0x5ee89d);_0x287592[_0x4a116f(0x1d9)](_0x277ac0);})),_0x595179[_0x16b3e3(0x159)](_0x2296ca(()=>_0x287592[_0x16b3e3(0x320)]()));let _0x46fc39,_0x26e562=()=>{const _0x316cec=_0x16b3e3;_0x1321df[_0x316cec(0x1d9)](new Event(_0x316cec(0x3a3))),_0x1cb4b9[_0x316cec(0x1d9)](new Event(_0x316cec(0x3a3))),_0x46fc39['close']();};return _0x46fc39={'memberID':'','close$':_0x1cb4b9[_0x16b3e3(0x1a1)](),'error$':_0x1321df['asObservable'](),'open$':_0x284e49[_0x16b3e3(0x2d7)],'message$':_0x287592[_0x16b3e3(0x1a1)](),'send':_0x326e28=>{const _0x4b396b=_0x16b3e3;if(_0x326e28[_0x4b396b(0x17b)]===_0x10f422[_0x4b396b(0x31d)]){if(_0x326e28[_0x4b396b(0x204)]['eventID']===_0x17c782[_0x4b396b(0x328)]){this[_0x4b396b(0x195)](_0x46fc39,_0x326e28[_0x4b396b(0x204)])[_0x4b396b(0x296)](_0x66e5b4=>{const _0x1272d6=_0x4b396b;this[_0x1272d6(0x346)][_0x1272d6(0x22c)](_0x66e5b4),_0x26e562();});return;}if(_0x326e28[_0x4b396b(0x204)][_0x4b396b(0x2b7)]===_0x17c782[_0x4b396b(0x24f)]){let _0x2e5766=_0x326e28[_0x4b396b(0x204)];this['_fetchMissChangesets'](_0x2e5766)[_0x4b396b(0x2fd)](_0x57bc7e=>{const _0x1c3e9b=_0x4b396b;_0x287592['next']({'cmd':_0x10f422[_0x1c3e9b(0x1fb)],'code':_0x38a2c1['OK'],'routeKey':_0x2e5766['data'][_0x1c3e9b(0x2d2)],'routeType':'','data':{'eventID':_0x17c782['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x57bc7e}}});})[_0x4b396b(0x296)](_0x497ba6=>{const _0x2831e3=_0x4b396b;this[_0x2831e3(0x346)][_0x2831e3(0x22c)](_0x497ba6),_0x26e562();});return;}}_0x284e49[_0x4b396b(0x317)](wn(_0x326e28));},'close':()=>{const _0x39c271=_0x16b3e3;_0x284e49['close'](),_0x595179[_0x39c271(0x358)]();}},_0x46fc39;}async['_submitChangeset'](_0x218a68,_0xe13a87){const _0x261ee3=_0x128a93;var _0x699004;let {unitType:_0x4b5cab,unitID:_0x3ec13c,changeset:_0x348dd3}=_0xe13a87[_0x261ee3(0x204)],_0xab524c={'unitID':_0x3ec13c,'memberID':_0x218a68[_0x261ee3(0x329)],'type':_0x4b5cab,'changeset':_0x1d83e7(_0x348dd3)},_0x24fd8c=this[_0x261ee3(0x280)][_0x261ee3(0x1bc)](L),_0xa94225=En((_0x699004=_0x24fd8c==null?void 0x0:_0x24fd8c[_0x261ee3(0x1aa)])==null?_0x261ee3(0x3c2):_0x699004,_0x4b5cab,_0x3ec13c);try{await this[_0x261ee3(0x261)]['post'](_0xa94225,{'body':_0xab524c});}catch(_0x1e1307){throw this[_0x261ee3(0x346)][_0x261ee3(0x22c)](_0x261ee3(0x342),_0x261ee3(0x2f3)),_0x1e1307;}}async[_0x128a93(0x2f4)](_0x251b3d){const _0x2147f5=_0x128a93;let {unitID:_0x315723,from:_0x5a687d,to:_0xeb1e10,unitType:_0x392e42}=_0x251b3d[_0x2147f5(0x204)];return(await this['_snapshotServerService'][_0x2147f5(0x36d)]({'metadata':void 0x0},{'unitID':_0x315723,'type':_0x392e42,'from':_0x5a687d,'to':_0xeb1e10}))['changesets'][_0x2147f5(0x24e)](_0x33bd59=>((_0x33bd59['mutations']===null||_0x33bd59[_0x2147f5(0x36c)]===void 0x0)&&(_0x33bd59[_0x2147f5(0x36c)]=[]),_0x33bd59));}};Dn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x37b5e1(_0x1fd0e9)),B(0x2,_0x46ffbd),B(0x3,_0x470483),B(0x4,_0x308163)],Dn);const On=_0xd7efb5(_0x128a93(0x378));function kn(_0x3befc8={}){const _0x35829f=_0x128a93;return _0x3befc8[_0x35829f(0x39c)]?{'resolveUnit':_0x3befc8['resolveUnit']}:{'resolveUnit':_0x3c53a9=>({'target':{'unitId':_0x3c53a9['unitId'],'unitType':_0x3c53a9[_0x35829f(0x1ac)]}})};}function An(_0x17e6db,_0x5adaf2,_0x4be4f5){const _0x43f334=_0x128a93;var _0x96561c;let _0x446c73=_0x4be4f5[_0x43f334(0x348)][_0x43f334(0x351)];if(_0x446c73!=null&&_0x446c73[_0x43f334(0x396)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x4be4f5['target'][_0x43f334(0x285)])throw Error(_0x43f334(0x149));return{'localUnitId':_0x17e6db,'unitType':_0x5adaf2,'target':{'endpoint':_0x446c73,'unitId':_0x4be4f5[_0x43f334(0x348)][_0x43f334(0x285)],'unitType':(_0x96561c=_0x4be4f5['target'][_0x43f334(0x1ac)])==null?_0x5adaf2:_0x96561c},'changeset':_0x4be4f5[_0x43f334(0x3b0)]};}let jn=class extends _0x403d15{constructor(_0x4b3901,_0x2198f5,_0x201819,_0x4a516f,_0x4da80d,_0x3d626c,_0x3123bc){const _0x2b6d7e=_0x128a93;super(),this['_injector']=_0x4b3901,this['_logService']=_0x2198f5,this[_0x2b6d7e(0x280)]=_0x201819,this['_socketService']=_0x4a516f,this[_0x2b6d7e(0x30c)]=_0x4da80d,this[_0x2b6d7e(0x389)]=_0x3d626c,this[_0x2b6d7e(0x27c)]=_0x3123bc,R(this,_0x2b6d7e(0x3d7),new Map()),R(this,_0x2b6d7e(0x299),new Map()),R(this,_0x2b6d7e(0x37c),new Map()),R(this,'_socketChannels',new Map()),R(this,'socket$',this[_0x2b6d7e(0x3a9)](void 0x0)['socket$'][_0x2b6d7e(0x1a1)]()),R(this,_0x2b6d7e(0x2b3),new _0x4e690d(0x0)),R(this,_0x2b6d7e(0x3b1),this[_0x2b6d7e(0x2b3)]['asObservable']()),this['_listenToNetworkCondition']();}[_0x128a93(0x1f7)](){const _0x38c647=_0x128a93;this[_0x38c647(0x27c)]&&this[_0x38c647(0x2ef)](this['_networkConditionService']['online$'][_0x38c647(0x1eb)](_0x38e5ed=>{const _0x5e5d58=_0x38c647;_0x38e5ed&&this[_0x5e5d58(0x25c)](),_0x38e5ed||this[_0x5e5d58(0x1b1)][_0x5e5d58(0x3b6)](_0x162cc2=>this[_0x5e5d58(0x182)](_0x162cc2));}));}[_0x128a93(0x358)](){const _0x2f0a48=_0x128a93;super[_0x2f0a48(0x358)](),this[_0x2f0a48(0x1b1)][_0x2f0a48(0x3b6)](_0x43159b=>{const _0x3c62e4=_0x2f0a48;var _0xcfaaf5,_0x545df4;(_0xcfaaf5=_0x43159b['socketMessageSubscription'])==null||_0xcfaaf5[_0x3c62e4(0x3b9)](),_0x43159b[_0x3c62e4(0x31f)]=null,this['_clearRetryConnectingTimer'](_0x43159b),this[_0x3c62e4(0x1a0)](_0x43159b),this[_0x3c62e4(0x19e)](_0x43159b),(_0x545df4=_0x43159b[_0x3c62e4(0x2a8)][_0x3c62e4(0x1a9)]())==null||_0x545df4[_0x3c62e4(0x2b0)](),_0x43159b[_0x3c62e4(0x2a8)]['complete']();}),this[_0x2f0a48(0x1b1)][_0x2f0a48(0x24a)](),this['_sessions'][_0x2f0a48(0x3b6)](_0x3cdeb9=>_0x3cdeb9[_0x2f0a48(0x358)]()),this['_sessions'][_0x2f0a48(0x24a)](),this['_sessionChannels']['clear'](),this[_0x2f0a48(0x2b3)][_0x2f0a48(0x320)]();}async[_0x128a93(0x1b0)](_0x21dc43,_0x428f1c){const _0x2af588=_0x128a93;if(this[_0x2af588(0x3d7)][_0x2af588(0x3cd)](_0x21dc43))return this[_0x2af588(0x3d7)][_0x2af588(0x2f1)](_0x21dc43);let _0x2a355d=this[_0x2af588(0x299)][_0x2af588(0x2f1)](_0x21dc43);if(_0x2a355d)return _0x2a355d;let _0x191a23=this[_0x2af588(0x219)](_0x21dc43,_0x428f1c);this['_pendingSessions'][_0x2af588(0x225)](_0x21dc43,_0x191a23);try{return await _0x191a23;}finally{this[_0x2af588(0x299)][_0x2af588(0x1ff)](_0x21dc43);}}async[_0x128a93(0x219)](_0x3b5e20,_0x58835e){const _0x44e99a=_0x128a93;let _0x5a49b4=await this[_0x44e99a(0x15e)](_0x3b5e20,_0x58835e),_0x26f0e6=this['_getSocketChannel'](_0x5a49b4[_0x44e99a(0x348)][_0x44e99a(0x351)]);this[_0x44e99a(0x1ae)](_0x26f0e6);let _0x2b10be=this[_0x44e99a(0x349)][_0x44e99a(0x279)](Ht,_0x5a49b4,_0x26f0e6[_0x44e99a(0x2a8)][_0x44e99a(0x1a1)]());return this[_0x44e99a(0x3d7)][_0x44e99a(0x225)](_0x3b5e20,_0x2b10be),this[_0x44e99a(0x37c)][_0x44e99a(0x225)](_0x3b5e20,_0x26f0e6[_0x44e99a(0x388)]),_0x2b10be;}[_0x128a93(0x2b9)](_0x1db69a){const _0x402af4=_0x128a93;let _0x37b395=this[_0x402af4(0x3d7)]['get'](_0x1db69a),_0xfc79eb=this[_0x402af4(0x37c)][_0x402af4(0x2f1)](_0x1db69a);if(_0x37b395&&(this[_0x402af4(0x3d7)][_0x402af4(0x1ff)](_0x1db69a),this['_sessionChannels'][_0x402af4(0x1ff)](_0x1db69a),_0x37b395[_0x402af4(0x2b0)]()),_0xfc79eb&&!this[_0x402af4(0x23b)](_0xfc79eb)){var _0x51505b;let _0x426f31=this[_0x402af4(0x1b1)]['get'](_0xfc79eb);_0x426f31==null||(_0x51505b=_0x426f31[_0x402af4(0x2a8)][_0x402af4(0x1a9)]())==null||_0x51505b[_0x402af4(0x2b0)]();}}[_0x128a93(0x25c)](){const _0x3e14b3=_0x128a93;(this[_0x3e14b3(0x1b1)][_0x3e14b3(0x2d6)]?[...this['_socketChannels'][_0x3e14b3(0x1c7)]()]:[this['_getSocketChannel'](void 0x0)])[_0x3e14b3(0x3b6)](_0x1a08bb=>{const _0x501d84=_0x3e14b3;_0x1a08bb[_0x501d84(0x17f)]=0x0,this['_clearRetryConnectingTimer'](_0x1a08bb),this[_0x501d84(0x30f)](_0x1a08bb);});}[_0x128a93(0x18b)](_0x575709){const _0x13f505=_0x128a93;_0x575709[_0x13f505(0x37e)]!=null&&(clearTimeout(_0x575709[_0x13f505(0x37e)]),_0x575709[_0x13f505(0x37e)]=null);}async['_createSocket'](_0x404055){const _0x4f16ac=_0x128a93;var _0x1a81de,_0x366d14;let _0xeb0e8a=this[_0x4f16ac(0x280)][_0x4f16ac(0x1bc)](L),_0x54dcb0=(_0x1a81de=(_0x366d14=_0x404055[_0x4f16ac(0x351)])==null?_0xeb0e8a==null?void 0x0:_0xeb0e8a['collabWebSocketUrl']:_0x366d14)==null?mt:_0x1a81de,_0x2d1634=await this['_socketService'][_0x4f16ac(0x1b5)](_0x54dcb0);return _0x404055['candidateSocket']=_0x2d1634,_0x2d1634;}async[_0x128a93(0x1ae)](_0x37f35b){const _0x1f3e70=_0x128a93;try{var _0x48717a,_0x512d0d;let _0x56ff7b=(_0x48717a=(_0x512d0d=_0x37f35b[_0x1f3e70(0x2a8)][_0x1f3e70(0x1a9)]())==null?_0x37f35b['candidateSocket']:_0x512d0d)==null?await this[_0x1f3e70(0x229)](_0x37f35b):_0x48717a;if(_0x56ff7b){var _0x1808b3;let _0x5d6a88=_0x56ff7b['send'];_0x56ff7b[_0x1f3e70(0x317)]=_0x314c0b=>(_0x314c0b[_0x1f3e70(0x17b)]!==_0x10f422[_0x1f3e70(0x237)]&&this[_0x1f3e70(0x186)](_0x37f35b),_0x5d6a88['apply'](_0x56ff7b,[_0x314c0b])),(_0x1808b3=_0x37f35b[_0x1f3e70(0x31f)])==null||_0x1808b3[_0x1f3e70(0x3b9)](),_0x37f35b[_0x1f3e70(0x31f)]=null,_0x37f35b['socketMessageSubscription']=_0x56ff7b[_0x1f3e70(0x3bd)][_0x1f3e70(0x1eb)](_0x2ceb12=>this[_0x1f3e70(0x2e6)](_0x37f35b,_0x56ff7b,_0x2ceb12)),_0x56ff7b[_0x1f3e70(0x277)][_0x1f3e70(0x190)](_0x250149(0x1))[_0x1f3e70(0x1eb)](_0x180b31=>this['_logService']['error'](_0x1f3e70(0x3d1),_0x180b31)),_0x56ff7b[_0x1f3e70(0x2d7)][_0x1f3e70(0x190)](_0x250149(0x1))['subscribe'](()=>{const _0x541b48=_0x1f3e70;this[_0x541b48(0x17a)](_0x37f35b,_0x56ff7b);}),_0x56ff7b['close$']['pipe'](_0x250149(0x1))[_0x1f3e70(0x1eb)](_0xde8964=>{const _0x80aa3f=_0x1f3e70;this['_logService']['debug'](_0x80aa3f(0x17e),_0x80aa3f(0x23d),_0xde8964),this['_onConnectionFailed'](_0x37f35b);});}}catch(_0xf47468){this['_logService']['error'](_0xf47468),this[_0x1f3e70(0x15d)](_0x37f35b);}}[_0x128a93(0x17a)](_0x1c8df9,_0x4f1afc){const _0x92fa72=_0x128a93;this[_0x92fa72(0x346)]['debug'](_0x92fa72(0x17e),_0x92fa72(0x167)),_0x4f1afc['send']({'cmd':_0x10f422[_0x92fa72(0x294)]}),this[_0x92fa72(0x186)](_0x1c8df9);}[_0x128a93(0x182)](_0x5d5372){const _0x50d036=_0x128a93;_0x5d5372[_0x50d036(0x230)]=!0x1,_0x5d5372['candidateSocket']=null,this[_0x50d036(0x2b3)][_0x50d036(0x1d9)](0x2),_0x5d5372[_0x50d036(0x2a8)][_0x50d036(0x1d9)](null),this[_0x50d036(0x1a0)](_0x5d5372),this[_0x50d036(0x19e)](_0x5d5372);}[_0x128a93(0x15d)](_0x4dfb74){const _0x3657af=_0x128a93;var _0x57f136;this['_onOffline'](_0x4dfb74),this['_hasSessionsForEndpoint'](_0x4dfb74[_0x3657af(0x388)])&&(_0x4dfb74[_0x3657af(0x17f)]<((_0x57f136=this['_configService'][_0x3657af(0x1bc)](_0x3657af(0x271)))==null?0x3:_0x57f136)?(this[_0x3657af(0x30c)][_0x3657af(0x173)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x3657af(0x30f)](_0x4dfb74)):this['_collaborationUIEventService'][_0x3657af(0x173)]({'id':'SOCKET_FAILED'}));}[_0x128a93(0x30f)](_0x269e7c){const _0x15c860=_0x128a93;var _0x55e4f3;let _0x2734b9=_0x269e7c[_0x15c860(0x17f)],_0x682cc6=this[_0x15c860(0x280)][_0x15c860(0x1bc)](L),_0x3807e0=_0x2734b9===0x0?0x0:((_0x55e4f3=_0x682cc6==null?void 0x0:_0x682cc6['retryConnectingInterval'])==null?0x4e20:_0x55e4f3)*0x2**_0x2734b9;_0x269e7c['retryConnectingTimer']=setTimeout(()=>{const _0xb75431=_0x15c860;clearTimeout(_0x269e7c[_0xb75431(0x37e)]),_0x269e7c['retryConnectingTimer']=null,this['_tryEnsureSocket'](_0x269e7c);},_0x3807e0),_0x269e7c['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x32e34a,_0xa437e1){const _0x41802c=_0x128a93;return An(_0x32e34a,_0xa437e1,await this[_0x41802c(0x389)][_0x41802c(0x39c)]({'unitId':_0x32e34a,'unitType':_0xa437e1}));}[_0x128a93(0x2e6)](_0x107b5a,_0x1916bd,_0x7759fe){const _0x762140=_0x128a93;let {cmd:_0x571105}=_0x7759fe;_0x571105===_0x10f422[_0x762140(0x294)]&&!_0x107b5a['socketReady']&&(_0x1916bd['memberID']=_0x7759fe['data']['memberID'],_0x107b5a['socket$'][_0x762140(0x1d9)](_0x1916bd),this[_0x762140(0x2b3)][_0x762140(0x1d9)](0x3),_0x107b5a['socketReady']=!0x0,_0x107b5a[_0x762140(0x291)]=null),_0x571105===_0x10f422[_0x762140(0x38d)]&&this[_0x762140(0x1a0)](_0x107b5a),this[_0x762140(0x186)](_0x107b5a);}[_0x128a93(0x23b)](_0x3854ca){const _0x42250f=_0x128a93;return[...this[_0x42250f(0x37c)][_0x42250f(0x1c7)]()][_0x42250f(0x233)](_0x1ae148=>_0x1ae148===_0x3854ca);}[_0x128a93(0x3a9)](_0x193740){const _0x4421e5=_0x128a93;let _0x556416=_0x193740==null?'':_0x193740,_0x382f66=this[_0x4421e5(0x1b1)][_0x4421e5(0x2f1)](_0x556416);if(_0x382f66)return _0x382f66;let _0x1932be={'endpointKey':_0x556416,'endpoint':_0x193740,'socket$':new _0x4e690d(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4421e5(0x1b1)][_0x4421e5(0x225)](_0x556416,_0x1932be),_0x1932be;}['_rescheduleHeartbeat'](_0x293611){const _0x50efc1=_0x128a93;var _0x4287bc;this[_0x50efc1(0x19e)](_0x293611),_0x293611[_0x50efc1(0x31c)]=setTimeout(()=>this[_0x50efc1(0x16b)](_0x293611),(_0x4287bc=this[_0x50efc1(0x280)]['getConfig'](_0x50efc1(0x257)))==null?0x7530:_0x4287bc);}['_sendHeartbeat'](_0x4ef1b9){const _0x50c985=_0x128a93;_0x4ef1b9['socket$'][_0x50c985(0x1a9)]()[_0x50c985(0x317)]({'cmd':_0x10f422[_0x50c985(0x38d)]}),this['_waitForHeartbeatResponse'](_0x4ef1b9);}[_0x128a93(0x376)](_0x546c23){const _0x2e8adc=_0x128a93;var _0x16296a;_0x546c23[_0x2e8adc(0x2b8)]=setTimeout(()=>this[_0x2e8adc(0x15d)](_0x546c23),(_0x16296a=this[_0x2e8adc(0x280)][_0x2e8adc(0x1bc)](_0x2e8adc(0x1b3)))==null?vt:_0x16296a);}[_0x128a93(0x19e)](_0x5d596f){const _0x2c9f5d=_0x128a93;_0x5d596f[_0x2c9f5d(0x31c)]!=null&&(clearTimeout(_0x5d596f['sendHeartbeatTimer']),_0x5d596f[_0x2c9f5d(0x31c)]=null);}[_0x128a93(0x1a0)](_0xfd1b3){const _0x23ecae=_0x128a93;_0xfd1b3[_0x23ecae(0x2b8)]!=null&&(clearTimeout(_0xfd1b3[_0x23ecae(0x2b8)]),_0xfd1b3[_0x23ecae(0x2b8)]=null);}};jn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x470483),B(0x2,_0x46ffbd),B(0x3,Tn),B(0x4,_0x37b5e1(z)),B(0x5,On),B(0x6,_0x29c9af(Sn))],jn);let Mn=class extends _0x738f09{constructor(_0x439304,_0x431e39,_0xb448f6,_0x218e18){const _0x450a47=_0x128a93;var _0x1bb29a;super(),this[_0x450a47(0x349)]=_0x439304,this[_0x450a47(0x37d)]=_0x431e39,this[_0x450a47(0x280)]=_0xb448f6,this[_0x450a47(0x312)]=_0x218e18,R(this,'_entities',new Map()),R(this,_0x450a47(0x255),new _0x10b8bf()),R(this,'entityInit$',this['_entityInit$'][_0x450a47(0x1a1)]()),((_0x1bb29a=this[_0x450a47(0x280)][_0x450a47(0x1bc)](_0x450a47(0x14b)))==null?void 0x0:_0x1bb29a[_0x450a47(0x287)])!==!0x1&&this[_0x450a47(0x2d4)]();}[_0x128a93(0x358)](){const _0x51245a=_0x128a93;super['dispose'](),this['_entities']['forEach'](_0x387151=>_0x387151[_0x51245a(0x358)]()),this['_entities'][_0x51245a(0x24a)]();}[_0x128a93(0x2ba)](_0x3bd1b9){const _0x16cb50=_0x128a93;var _0x3b3612;return(_0x3b3612=this[_0x16cb50(0x1db)][_0x16cb50(0x2f1)](_0x3bd1b9))==null?null:_0x3b3612;}['getCollabEntity$'](_0x25d9cf){const _0x3df1fe=_0x128a93;let _0x4ec2f9=this['getCollabEntity'](_0x25d9cf);return _0x4ec2f9?_0x66fadd(_0x4ec2f9):this[_0x3df1fe(0x255)][_0x3df1fe(0x190)](_0x3784e6(_0x17e380=>_0x17e380[_0x3df1fe(0x2d2)]===_0x25d9cf));}[_0x128a93(0x2a7)](_0x17863f){const _0x381fd2=_0x128a93;return _0x23f22b(this[_0x381fd2(0x218)](_0x17863f)[_0x381fd2(0x190)](_0xcf767d(()=>void 0x0)));}[_0x128a93(0x2d4)](){const _0x569383=_0x128a93;this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x146)])[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x5dd8ba=>{const _0x23ceab=_0x569383;let _0x11a097=_0x5dd8ba[_0x23ceab(0x24b)][_0x23ceab(0x3ac)](),_0x26660c=await this['_startCollaboration'](_0x11a097,_0x61571e[_0x23ceab(0x146)]);this[_0x23ceab(0x1db)][_0x23ceab(0x225)](_0x11a097,_0x26660c);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e['UNIVER_DOC'])['pipe'](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x190)](_0x3784e6(_0x42a4c1=>!_0x42a4c1['unit']['getUnitId']()['startsWith']('__')))[_0x569383(0x1eb)](async _0x542aff=>{const _0x3b08a5=_0x569383;let _0x33c955=_0x542aff[_0x3b08a5(0x24b)]['getUnitId'](),_0x34e86a=await this[_0x3b08a5(0x28f)](_0x33c955,_0x61571e[_0x3b08a5(0x306)]);this[_0x3b08a5(0x1db)][_0x3b08a5(0x225)](_0x33c955,_0x34e86a);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x164)])[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x38f48d=>{const _0x46cb38=_0x569383;let _0x37e599=_0x38f48d[_0x46cb38(0x24b)][_0x46cb38(0x3ac)](),_0x462e43=await this[_0x46cb38(0x28f)](_0x37e599,_0x61571e[_0x46cb38(0x164)]);this[_0x46cb38(0x1db)][_0x46cb38(0x225)](_0x37e599,_0x462e43);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x313)])['pipe'](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x4ae650=>{const _0x45cce7=_0x569383;let _0x196437=_0x4ae650[_0x45cce7(0x24b)][_0x45cce7(0x3ac)](),_0x15356f=await this[_0x45cce7(0x28f)](_0x196437,_0x61571e['UNIVER_BOARD']);this[_0x45cce7(0x1db)][_0x45cce7(0x225)](_0x196437,_0x15356f);}),this[_0x569383(0x312)][_0x569383(0x227)](_0x61571e[_0x569383(0x1c5)])[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]),_0x6221fb(0x10))[_0x569383(0x1eb)](async _0x2fa449=>{const _0x3af29f=_0x569383;let _0x359c32=_0x2fa449['unit'][_0x3af29f(0x3ac)](),_0x5cca79=await this[_0x3af29f(0x28f)](_0x359c32,_0x61571e[_0x3af29f(0x1c5)]);this[_0x3af29f(0x1db)][_0x3af29f(0x225)](_0x359c32,_0x5cca79);}),_0x1171fb(this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e['UNIVER_SHEET']),this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e[_0x569383(0x306)]),this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e['UNIVER_SLIDE']),this['_univerInstanceService'][_0x569383(0x1cc)](_0x61571e[_0x569383(0x313)]),this[_0x569383(0x312)][_0x569383(0x1cc)](_0x61571e['UNIVER_BASE']))[_0x569383(0x190)](_0x138428(this[_0x569383(0x245)]))['subscribe'](_0x43a44f=>{const _0x2b28d8=_0x569383;let _0x3c6af8=_0x43a44f[_0x2b28d8(0x3ac)](),_0x100511=this[_0x2b28d8(0x1db)][_0x2b28d8(0x2f1)](_0x3c6af8);_0x100511&&(_0x100511[_0x2b28d8(0x358)](),this['_entities'][_0x2b28d8(0x1ff)](_0x3c6af8));});}async[_0x128a93(0x28f)](_0x51f93b,_0x292167){const _0x1a9f35=_0x128a93;let _0x285370=await this['_collabSessionService']['requireSession'](_0x51f93b),_0xcf3619=this[_0x1a9f35(0x349)][_0x1a9f35(0x279)](this[_0x1a9f35(0x352)](_0x292167),_0x51f93b,_0x292167,_0x285370);return await _0xcf3619[_0x1a9f35(0x308)](),this[_0x1a9f35(0x255)][_0x1a9f35(0x1d9)](_0xcf3619),_0xcf3619;}[_0x128a93(0x352)](_0x53ba68){const _0x37bfbe=_0x128a93;switch(_0x53ba68){case _0x61571e[_0x37bfbe(0x306)]:return _n;case _0x61571e['UNIVER_SHEET']:return yn;case _0x61571e[_0x37bfbe(0x164)]:return bn;case _0x61571e[_0x37bfbe(0x313)]:return xn;case _0x61571e[_0x37bfbe(0x1c5)]:return vn;default:throw Error(_0x37bfbe(0x238)+_0x53ba68);}}};Mn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x37b5e1(jn)),B(0x2,_0x46ffbd),B(0x3,_0x450b7c)],Mn);var Nn=_0x128a93(0x192),Pn='1.0.0-alpha.4';let Fn=class extends _0x403d15{constructor(_0x325ff3,_0x4e3633){const _0x54353c=_0x128a93;super(),this[_0x54353c(0x312)]=_0x325ff3,this[_0x54353c(0x280)]=_0x4e3633,this[_0x54353c(0x2d4)]();}['_init'](){const _0x4d5426=_0x128a93;this[_0x4d5426(0x2ef)](this[_0x4d5426(0x312)]['focused$'][_0x4d5426(0x1eb)](()=>{const _0x57096a=_0x4d5426;var _0x55e37e;let _0x48ec81=this[_0x57096a(0x312)][_0x57096a(0x179)](),_0x56743b=(_0x55e37e=this['_configService'][_0x57096a(0x1bc)](_0x57096a(0x3a2)))==null?_0x57096a(0x209):_0x55e37e;_0x48ec81 instanceof _0x661ea8&&(_0x56743b=_0x48ec81[_0x57096a(0x1d2)]),document[_0x57096a(0x194)]=_0x56743b;}));}};Fn=V([B(0x0,_0x450b7c),B(0x1,_0x46ffbd)],Fn);let In=function(_0x2b1149){const _0x3bd25b=_0x128a93;return _0x2b1149['URL']=_0x3bd25b(0x1f6),_0x2b1149[_0x3bd25b(0x1b4)]='UUID',_0x2b1149[_0x3bd25b(0x282)]=_0x3bd25b(0x282),_0x2b1149;}({});const Ln=_0xd7efb5(_0x128a93(0x1b8));let Rn=class{constructor(_0x4d3a14,_0x666ed8,_0x1981c5){const _0x2bab84=_0x128a93;this[_0x2bab84(0x261)]=_0x4d3a14,this[_0x2bab84(0x280)]=_0x666ed8,this[_0x2bab84(0x312)]=_0x1981c5;}[_0x128a93(0x1bb)](){const _0x385ee1=_0x128a93;var _0x36b4a1;return(_0x36b4a1=this[_0x385ee1(0x150)]()[_0x385ee1(0x2fb)])==null?{}:_0x36b4a1;}async[_0x128a93(0x25d)](_0x3f60ea){const _0x344499=_0x128a93;let _0x4fbdb7=this[_0x344499(0x1bb)]();if(zn(_0x3f60ea,_0x4fbdb7),_0x4fbdb7[_0x344499(0x1a8)])return _0x4fbdb7['upload'](_0x3f60ea);let _0x1d9815=await this[_0x344499(0x151)](_0x3f60ea);return{'id':_0x1d9815,'name':_0x3f60ea[_0x344499(0x1d2)],'mimeType':_0x3f60ea['type'],'size':_0x3f60ea[_0x344499(0x2d6)],'sourceType':_0x344499(0x1b4),'source':_0x1d9815};}async['_upload'](_0x87843e){const _0x1dfcbf=_0x128a93;let _0x23b2bf=this[_0x1dfcbf(0x312)]['getFocusedUnit'](),_0x2b3d81=_0x23b2bf==null?void 0x0:_0x23b2bf[_0x1dfcbf(0x3ac)]();if(!_0x2b3d81)throw Error(_0x1dfcbf(0x217));let _0x1ec8ea=new FormData();_0x1ec8ea[_0x1dfcbf(0x2a6)](_0x1dfcbf(0x26d),_0x87843e);let _0x47c7ff=this[_0x1dfcbf(0x2ce)]()+_0x1dfcbf(0x1f0)+_0x87843e['size']['toString']()+'&source='+_0xe4d98[_0x1dfcbf(0x1e2)]+_0x1dfcbf(0x290)+encodeURIComponent(_0x2b3d81),_0xe33883=(await this[_0x1dfcbf(0x261)][_0x1dfcbf(0x21a)](_0x47c7ff,{'body':_0x1ec8ea}))[_0x1dfcbf(0x3b7)][_0x1dfcbf(0x382)];if(typeof _0xe33883!='string'||!_0xe33883)throw Error(_0x1dfcbf(0x386));return _0xe33883;}[_0x128a93(0x2ce)](){const _0x300511=_0x128a93;var _0x59b861;return(_0x59b861=this[_0x300511(0x150)]()['uploadFileServerUrl'])==null?_0x300511(0x27a):_0x59b861;}[_0x128a93(0x150)](){const _0x17ae8d=_0x128a93;var _0xe88ae5;return(_0xe88ae5=this['_configService'][_0x17ae8d(0x1bc)](_0x17ae8d(0x14b)))==null?{}:_0xe88ae5;}};Rn=V([B(0x0,_0x37b5e1(_0x1fd0e9)),B(0x1,_0x37b5e1(_0x46ffbd)),B(0x2,_0x37b5e1(_0x450b7c))],Rn);function zn(_0x181814,_0x1802ee){const _0x596ee3=_0x128a93;var _0x29074e;if(_0x1802ee[_0x596ee3(0x1af)]!=null&&_0x181814[_0x596ee3(0x2d6)]>_0x1802ee[_0x596ee3(0x1af)])throw Error(_0x596ee3(0x34e));if((_0x29074e=_0x1802ee[_0x596ee3(0x180)])!=null&&_0x29074e[_0x596ee3(0x2c4)]&&!_0x1802ee[_0x596ee3(0x180)][_0x596ee3(0x233)](_0x3e6325=>_0x181814[_0x596ee3(0x2b6)]===_0x3e6325||_0x181814[_0x596ee3(0x1d2)][_0x596ee3(0x322)](_0x3e6325)||_0x3e6325['endsWith']('/*')&&_0x181814['type'][_0x596ee3(0x3ae)](_0x3e6325[_0x596ee3(0x2e2)](0x0,-0x1))))throw Error(_0x596ee3(0x2ee));}function _0x4225(){const _0x2dd933=['/collaborator','_roomCreated$','_executeRemoteChangeset','enableAuthServer','_getUploadFileURL','onRemoteRej','onMissedChangesetFetched','location','unitID','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_init','_createInitialStateImpl','size','open$','NEW_CHANGESETS','permissionRejEvent','getCurrentUser','src','_getAPIPrefix','params','Failed\x20to\x20update\x20permission\x20point','onSyncEditingCollabCursor','synced','responseType','slice','_updateState','transformSelections','_handler','_onMessage','ERROR_IMAGE_TYPE','stopTime','[PendingState]:\x20received\x20rejection.','/allowed','_revisionService','snapshot','capture','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','disposeWithMe','baseRev','get','SOCKET_FAILED','submit\x20changeset\x20error!','_fetchMissChangesets','SUCCUSS','_sender','roles','_updateStatus','url','action','attachment','infoRsp','then','JOIN_ROOM_FAILED','save\x20fail\x20reason\x20is\x20','_initCloseConn','getUnitStatus$','[SyncedState]:\x20received\x20rejection.','_transformAndApplyRemoteChangeset','_joinRoom','/-/object/-/batch_allowed','UNIVER_DOC','isPermissionRej','init','commentUpdate$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','collaboratorID','_collaborationUIEventService','sort','/role','_tryReconnect','USERS_LEAVE','JOIN_ROOM_FULL','_univerInstanceService','UNIVER_BOARD','loadSheet','PERMISSION_REJ','CONFLICT','send','fromCharCode','_undoRedoService','enableSingleActiveInstanceLock','batchAllowed','sendHeartbeatTimer','INGEST','__splitChunk__','socketMessageSubscription','complete','_commentService','endsWith','onMutationExecutedForCollab','text-x','addImageSourceCache','_transformSelections','getTime','SUBMIT_CHANGESET','memberID','_onRecvEvent','readAsDataURL','_decreaseWaiting','findIndex','prototype','charCodeAt','LIVESHARE_NEW_HOST','joinRsp','_clearScheduledTask','onTransformRemoteChangesetByIMECache','now','floor','_resendWithTimeout','_startTelemetryCollaborationNewChangeset','disableLocalCache','deepClone','toRemote','_getUndoStack','getDeserializedSheetBlock','loadSlide','userID','loadDoc','getResourcesRequest','[CollaborationEntity]','[CollaborationSession]','update','AWAITING_WITH_PENDING','_getDownloadEndpointURL','_logService','joinEvent','target','_injector','session.room-not-exists','editing\x20status\x20changed\x20to','fetch_missing','compose','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','onLocalMutation','fetchMiss','endpoint','_getCtorByUniverInstanceType','OTHER_CLIENT_EDITING','number','getLatestCsReqIdBySid','&to=','setShowComponents','dispose','transformStack\x20failed!','updateMember','reject','onTransformSelections','setWaitCount','getRoom','_localeService','list','_disableEditing','univer-pro.collaboration-client.single-active-unit-service','encode','_snapshotService','LOCAL_CACHE_INTERVAL','put','GLOBAL_ROOMS_CNT_EXCEEDS','session.room-permission-denied','PENDING','commentUpdateEvent','workbook','mutations','fetchMissingChangesets','requestParams','_transformStateCache','_getLoginPath','/object','hostname','POST','pluginName','[FetchMissState]','_waitForHeartbeatResponse','CHANGESET_SHOULD_RETRY','univer-pro.collaboration-client-adapter-service','headers','/universer-api/oidc/authpage','function','_sessionChannels','_collabSessionService','retryConnectingTimer','_event$','revision','OTHER_CLIENTS_EDITING','FileId','CHANGESET_REJ','_undoStacks','_exhaustRemoteChangesetQueue','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_lockTransition','endpointKey','_adapter','fetchThroughInterceptors','_unitInfo$','LIVESHARE_TERMINATE','HEARTBEAT','_acknowledgedAwaitingRevision','223752avKiOe','LIVESHARE_REQUEST_HOST','[OfflineState]:\x20received\x20changeset.','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketMessageSubscription','/universer-api/snapshot','encodeURIComponent','trim','avatar','_config','\x0aCurrent:\x20','IDLE','_initDependencies','resolveUnit','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','pending','string','_transformRemoteChangesetByStateCache','getUnit','DEFAULT_FILE_NAME','connection\x20error','onSendChangeset','isCompositionEnd','_changesetReqId','_commandService','UPDATE_PERMISSION_OBJ','_getSocketChannel','_memberService','10868hIKYQe','getUnitId','awaiting_with_pending','startsWith','objectType','changeset','status$','sessionStatus','_singleActiveUnitService','subject','isArray','forEach','body','_telemetryService','unsubscribe','failed\x20to\x20apply\x20missed\x20changesets!','CHANGESET_ACK','deleteCollaborator','message$','COMMENT_UPDATE','state','_change$','min','/universer-api/comb','fetching\x20missing\x20changesets\x20from\x20','onStateChange','includes','_throwTelemetryCollaborationNewChangeset','_registerDependencies','_resendTimeout','_members','withCredentials','updateOfflineData','constructor','has','result','_state$','objectID','[CollaborationSessionService]:\x20socket\x20error','onCommentUpdate','getOwnPropertyDescriptor','_acknowledgeAwaiting','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','entries','_sessions','_getSignURL','pauseCollaboration','signUrlServerUrl','_awaitingChangeset','unit-cache-','_replayCachedMutations','allowed','_unlockTransition','_onRemoteRetry','/universer-api/snapshot/','rev','ERROR_EXCEED_SIZE','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','loadBoard','UNIVER_SHEET','setConfig','close$','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','[PendingState]:\x20unhandled\x20univer\x20type:\x20','collaboration-client.config','_onCombEvent','method','USERS_ENTER','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_getConfig','_upload','cfgEnableObjInherit','_identity','_collaborationTimeoutTimer','m2Prime','_cfgEnableObjInherit','_createHandler','_handleRemoteChangesets','add','fromCollab','loadBase','onMissingChangesets','_onConnectionFailed','_resolveSessionIdentity','_resendTimer','event$','_roomMembers','onRemoteChangeset','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_SLIDE','packageName','_type','socket\x20open.','1020VsiaBR','/block/','changesets','_sendHeartbeat','1546641NMqpaV','_getSendChangesetTimeout','PSEUDO_FETCH_MISSING_RESULT','NOT_COLLAB','_onRemoteRejected','loginUrlKey','_toggleOnline','emitEvent','[CollaborationUndoRedoService]','removeMember','hasOwnProperty','_onLocalMutation','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getFocusedUnit','_onConnectionOpen','cmd','blockRanges','_isPermissionRej','[CollaborationSessionService]','retryCount','accept','_onRemoteACK','_onOffline','editingUnit','transformUndoRedo','_socket','_rescheduleHeartbeat','CLOSE_ROOM','liveShareNewHost','getActiveSheet','shouldCloseConn','_clearRetryConnectingTimer','decorate','localeService','_changesetSessionId','_unitLoaded$','pipe','_syncEditingCollabCursor','@univerjs-pro/collaboration-client','JOIN_ROOM_NOT_EXISTS','title','_submitChangeset','_replaceFileID','updatePermissionPoint','getAllMembers','incrementRevOfUnit','45364bZcxGZ','onRemoteRetry','localUnitId','_onRemoteChangeset','_clearHeartbeatTimer','_initUnitPermissionChange','_clearTimeoutTimer','asObservable','actions','16kzPUrD','_shouldReportTelemetry','objects','saveImage','_remoteChangesetQueue','upload','getValue','collabSubmitChangesetUrl','_transformIMECache','unitType','originalMeta','_tryEnsureSocket','maxSize','requireSession','_socketChannels','find','HEARTBEAT_TIMEOUT','UUID','createSocket','toString','{fileID}','base-ui.attachment-io.service','ws://127.0.0.1:8000/universer-api/comb/connect','loadUnit','getUploadOptions','getConfig','_docStateChangeManagerService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','every','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','\x20-\x20','downloadEndpointUrl','/new_changes','_onConflict','UNIVER_BASE','startTime','values','_eventService','ERROR_IMAGE','_imageSourceCache','ONLINE','getTypeOfUnitDisposed$','loadOfflineData','create','setCfgEnableObjInherit','interceptor','_sessionStatus$','name','textRanges','updatePermissionObjEvent','onload','_onFetchMissResult','transformMutationsWithChangeset','getWorkbookSelections','next','_maxTotalRetryTimeout','_entities','symbol','_toggleOffline','_pendingMutations','_showConflictNotification','executeCommand','COMPRESS_MUTATION_SEND','UnitEmbedded','splice','_telemetryInfo','_schedule','getUnitType','/unit/','_state','collaMsg','JOIN','subscribe','Error\x20on\x20receiving\x20event','toLocal','getSheetBlock','members$','?size=','awaitingChangeset','502hPOdkq','default','SNAPSHOT_URL_KEY','updateCursorEvent','URL','_listenToNetworkCondition','_substituteUndoStack','newCsEvent','UNIVER_COLLABORATION_CLIENT_PLUGIN','RECV','authzUrl','_initMergeInterceptor','_localCacheService','delete','saveSheetBlock','_initRequestHeader','__Key__','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','data','\x20in\x20_schedule.','sessionStatus$','session','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','_sendingTimer','conflict','listRoles','_waitCount','_getRedoStack','_transformUndoredo','origin','reqId','FAIL','LIVESHARE_OPERATION','call','/-/object/list','selections','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getCollabEntity$','_createSession','post','_collaborationPaused','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','subUnitId','[PendingState]:\x20received\x20acknowledgement.','sid','iterator','awaiting','collaboration-client.local-cache-service','getInterceptPoints','getCurrentSelections','set','localCacheService','getTypeOfUnitAdded$','_substituteRedoStack','_createSocket','transformChangesets','csShouldRetryEvent','error','UPDATE_CURSOR','registerHTTPInterceptor','_scheduleCollaborationTimeoutTimer','socketReady','_collaborationSessionService','session.room-cnt-exceeds','some','People','getCurrentRevOfUnit','onTransformState','LEAVE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_applyRemoteChangeset','code','_hasSessionsForEndpoint','telemetry\x20info\x20is\x20not\x20initialized','socket\x20close','getUnitOnRev','collaborators','_removeRoom','state$','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_queuedRemoteChangesets','dispose$','csRejEvent','_transformService','_scheduleCompleteTimestamp','toggleOnline','clear','unit','toggleOffline','filter','map','FETCH_MISSING','10PVUKbS','collaboration_new_changeset','[DataLoaderService]','_HTTPService','override','_entityInit$','equals','HEARTBEAT_INTERVAL','_commentUpdate$','_instanceService','_onUserJoin','_incrementRevisionNumber','reconnect','saveAttachment','285VaIOoz','_compressMutationService','confirm','_httpService','unknown','push','_handlerCallback','csAckEvent','_createInitialState','/object/','COMPRESS_MUTATION_APPLY','_redoStacks','_clearUndo','[OfflineState]:\x20received\x20rejection.','_transformStack','file','saveChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','&source=','RETRY_CONNECTING_MAX_COUNT','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','setCurrentUser','703507iYgFcm','_updateLocalCache','reduce','error$','_userManagerService','createInstance','/universer-api/stream/file/upload','updateSnapshot','_networkConditionService','replace','resourceIDs','_stopTelemetryCollaborationNewChangeset','_configService','saveSnapshot','BASE64','onlyLocal','debug','unitId','_members$','enableCollaboration','uploadFileServerUrl','_checkMissing','SUBMIT_CHANGESET_TIMEOUT','PERMISSION_DENIED','appendMutation','LIVESHARE_FETCH_OPERATIONS','SOCKET_FAILED_RETRY','_startCollaboration','&assign=','candidateSocket','5526216nPVDJO','UNISCRIPT_RUN','HELLO','_clearLocalCache','catch','stringify','_emitMembers','_pendingSessions','OFFLINE','_transitionLocked','onRemoteAck','40WzUtLa','[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.','resend','_isEchoedAwaitingChangeset','onTransformIME','MUTATION','\x0aAfter:\x20','c1Prime','_transformRemoteChangesetByIMECache','append','readyForCollab','socket$','status','missingChangesets','/resources','getImage','[SyncedState]:\x20received\x20acknowledgement.','loadUnitOfRevision','not_collab','close','/universer-api/user/session-ticket','routeKey','_status$','_getCurrentRevision','NO_OTHER_CLIENTS_EDITING','type','eventID','timeoutTimer','closeSession','getCollabEntity','getMemberID','/rev/','_getAPIPrefixPath','_permissionService','/universer-api/authz','getSnapshotAPIPath','object','_sheetTransformSelectionsService','_acknowledgeAwaitingIfReady','length','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getMember','offline','copyFileMeta','resolve'];_0x4225=function(){return _0x2dd933;};return _0x4225();}let Bn=class{constructor(_0x23b1de,_0x5e928a,_0x1b2074){const _0x556517=_0x128a93;this['_configService']=_0x23b1de,this['_httpService']=_0x5e928a,this[_0x556517(0x18d)]=_0x1b2074,this[_0x556517(0x308)]();}['init'](){const _0x4fd035=_0x128a93;this[_0x4fd035(0x261)][_0x4fd035(0x22e)]({'priority':0x1,'interceptor':(_0x20fc5c,_0x2f459d)=>_0x2f459d(_0x20fc5c)[_0x4fd035(0x190)](_0x35e512(async _0x4060bb=>{const _0x3db3fa=_0x4fd035;let _0xfa75b3=_0x4060bb;if(_0xfa75b3[_0x3db3fa(0x2a9)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x3db3fa(0x260)](this[_0x3db3fa(0x18d)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x16bc60=window[_0x3db3fa(0x395)](window['location']['href']);window[_0x3db3fa(0x2d1)]['href']=this[_0x3db3fa(0x370)]()+'?url='+_0x16bc60;}}return _0xfa75b3;}))});}[_0x128a93(0x370)](){const _0xef4d2c=_0x128a93;var _0x743675;let _0x12b6a3=this[_0xef4d2c(0x280)]['getConfig'](L);return(_0x743675=_0x12b6a3==null?void 0x0:_0x12b6a3[_0xef4d2c(0x171)])==null?_0xef4d2c(0x37a):_0x743675;}};Bn=V([B(0x0,_0x46ffbd),B(0x1,_0x37b5e1(_0x1fd0e9)),B(0x2,_0x37b5e1(_0x5ae389))],Bn);let Vn=class extends _0x403d15{constructor(_0x48b178,_0x1b9446){const _0x3fec86=_0x128a93;super(),this[_0x3fec86(0x253)]=_0x48b178,this[_0x3fec86(0x280)]=_0x1b9446,R(this,_0x3fec86(0x156),!0x1),this['_initMergeInterceptor']();}[_0x128a93(0x1fd)](){const _0x410ebd=_0x128a93;let _0x3ec484=this;this[_0x410ebd(0x2ef)](this['_HTTPService'][_0x410ebd(0x22e)]({'priority':0x3e7,'interceptor':_0x5bcb2b({'isMatch'(_0x2fc931){const _0x5094dd=_0x410ebd;var _0x56d99e;if(_0x2fc931[_0x5094dd(0x14d)]===_0x5094dd(0x373)&&(_0x56d99e=_0x2fc931[_0x5094dd(0x36e)])!=null&&_0x56d99e[_0x5094dd(0x3b7)]){let {objectID:_0x11ecef,objectType:_0xf96ca8}=_0x2fc931[_0x5094dd(0x36e)][_0x5094dd(0x3b7)]||{};if(!_0x11ecef||_0xf96ca8===void 0x0)return!0x1;let _0x34e3c4=_0x3ec484[_0x5094dd(0x2bd)]()+'/'+_0xf96ca8+_0x5094dd(0x267)+_0x11ecef+_0x5094dd(0x2ea);if(_0x2fc931[_0x5094dd(0x2f9)]===_0x34e3c4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x78b36f){const _0x1ba6b7=_0x410ebd;var _0x5afa1e;return(_0x5afa1e=_0x78b36f[_0x1ba6b7(0x36e)])==null?void 0x0:_0x5afa1e[_0x1ba6b7(0x3b7)];},'mergeParamsToRequest'(_0x295d73,_0xe1f9bc){const _0xdb152d=_0x410ebd;let _0x117012=_0x3ec484[_0xdb152d(0x2bd)]()+_0xdb152d(0x305),_0x5522b3=_0x295d73[_0xdb152d(0x276)]((_0x245e1d,_0x465815)=>{const _0x3fdee9=_0xdb152d;let {unitID:_0x3a5cd4,objectID:_0x5d985b,objectType:_0x214515,actions:_0x5bcd8c}=_0x465815;return _0x245e1d[_0x3a5cd4]||(_0x245e1d[_0x3a5cd4]={}),_0x245e1d[_0x3a5cd4][_0x5d985b]||(_0x245e1d[_0x3a5cd4][_0x5d985b]={'objectID':_0x5d985b,'objectType':_0x214515,'actions':[]}),_0x245e1d[_0x3a5cd4][_0x5d985b][_0x3fdee9(0x1a2)][_0x3fdee9(0x263)](..._0x5bcd8c),_0x245e1d;},{}),_0x419643=[];for(let _0x378e8b in _0x5522b3)for(let _0x4a22db in _0x5522b3[_0x378e8b]){let {actions:_0x13cdcf,objectType:_0x6de48c}=_0x5522b3[_0x378e8b][_0x4a22db],_0x5d1fe9=[...new Set(_0x13cdcf)];_0x419643[_0xdb152d(0x263)]({'unitID':_0x378e8b,'objectID':_0x4a22db,'objectType':_0x6de48c,'actions':_0x5d1fe9});}return new _0xb81b46(_0xdb152d(0x373),_0x117012,{'headers':_0xe1f9bc[_0xdb152d(0x379)],'withCredentials':_0xe1f9bc[_0xdb152d(0x3ca)],'responseType':_0xe1f9bc[_0xdb152d(0x2e1)],'body':{'requests':_0x419643}});}},{'distributeResult'(_0x342089,_0x2dfdf1){const _0x3df1d0=_0x410ebd;let {objectActions:_0x4ff045}=_0x342089;return _0x2dfdf1[_0x3df1d0(0x24e)](_0x236eda=>{const _0x666757=_0x3df1d0;let {unitID:_0xdaa03b,objectID:_0x5d4f60,actions:_0x233da4}=_0x236eda,_0x31f2ae=_0x4ff045['find'](_0x5f1b91=>_0x5f1b91['unitID']===_0xdaa03b&&_0x5f1b91[_0x666757(0x3d0)]===_0x5d4f60);return{'config':_0x236eda,'result':{'actions':_0x233da4[_0x666757(0x24e)](_0x56da51=>_0x31f2ae==null?void 0x0:_0x31f2ae[_0x666757(0x1a2)]['find'](_0x26dff9=>_0x26dff9[_0x666757(0x2fa)]===_0x56da51))[_0x666757(0x24d)](_0x4bddc3=>!!_0x4bddc3),'error':_0x342089[_0x666757(0x22c)]}};});}})}));}[_0x128a93(0x2bd)](){const _0x4cd5aa=_0x128a93;var _0x4669b9;let _0x14207a=this[_0x4cd5aa(0x280)][_0x4cd5aa(0x1bc)](L);return(_0x4669b9=_0x14207a==null?void 0x0:_0x14207a[_0x4cd5aa(0x1fc)])==null?_0x4cd5aa(0x2bf):_0x4669b9;}async[_0x128a93(0x1ce)](_0x254b94){const _0x26192d=_0x128a93;let _0x261d5e=this['_getAPIPrefixPath']()+'/'+_0x254b94[_0x26192d(0x3af)]+_0x26192d(0x371);return(await this[_0x26192d(0x253)]['post'](_0x261d5e,{'body':_0x254b94}))[_0x26192d(0x3b7)][_0x26192d(0x3d0)]||'';}async[_0x128a93(0x360)](_0x2d66fd){const _0x2b49cc=_0x128a93;let _0x49eceb=this['_getAPIPrefixPath']()+_0x2b49cc(0x215);return(await this['_HTTPService'][_0x2b49cc(0x21a)](_0x49eceb,{'body':_0x2d66fd}))[_0x2b49cc(0x3b7)][_0x2b49cc(0x1a5)];}async[_0x128a93(0x343)](_0x2880dc){const _0x18fdbe=_0x128a93;var _0xd267d6;let _0x57e0a6=this[_0x18fdbe(0x2bd)]()+'/'+_0x2880dc[_0x18fdbe(0x3af)]+_0x18fdbe(0x267)+_0x2880dc[_0x18fdbe(0x3d0)],_0x115bbc=await this[_0x18fdbe(0x253)][_0x18fdbe(0x366)](_0x57e0a6,{'body':_0x2880dc});if((_0x115bbc==null||(_0xd267d6=_0x115bbc['body'])==null||(_0xd267d6=_0xd267d6[_0x18fdbe(0x22c)])==null?void 0x0:_0xd267d6[_0x18fdbe(0x23a)])!==0x1)throw Error(_0x18fdbe(0x2de));}async[_0x128a93(0x13e)](_0x4b9421){const _0xf7bafe=_0x128a93;let _0x17bf20=this[_0xf7bafe(0x2bd)]()+'/'+_0x4b9421[_0xf7bafe(0x3af)]+'/object/'+_0x4b9421[_0xf7bafe(0x3d0)]+_0xf7bafe(0x2ea);return(await this['_HTTPService'][_0xf7bafe(0x21a)](_0x17bf20,{'body':_0x4b9421}))[_0xf7bafe(0x3b7)][_0xf7bafe(0x1a2)];}async[_0x128a93(0x31b)](_0x5d9573){const _0x71ac85=_0x128a93;let _0x3df77d=this['_getAPIPrefixPath']()+_0x71ac85(0x305);return(await this[_0x71ac85(0x253)]['post'](_0x3df77d,{'body':{'requests':_0x5d9573}}))[_0x71ac85(0x3b7)]['objectActions'];}async[_0x128a93(0x20c)](_0x394b67){const _0xd3113b=_0x128a93;let _0x2fec7c=this[_0xd3113b(0x2bd)]()+'/'+_0x394b67[_0xd3113b(0x3af)]+_0xd3113b(0x30e),_0x57e4d5=await this['_HTTPService'][_0xd3113b(0x21a)](_0x2fec7c,{'body':_0x394b67});return{'roles':_0x57e4d5[_0xd3113b(0x3b7)][_0xd3113b(0x2f7)],'actions':_0x57e4d5[_0xd3113b(0x3b7)]['actions']};}async[_0x128a93(0x3bc)](_0x11bf98){const _0x4ecce6=_0x128a93;let _0x4f7ea5=this['_getAPIPrefixPath']()+_0x4ecce6(0x2ca);await this[_0x4ecce6(0x253)][_0x4ecce6(0x1ff)](_0x4f7ea5,{'params':{'collaboratorID':_0x11bf98[_0x4ecce6(0x30b)],'objectID':_0x11bf98[_0x4ecce6(0x3d0)],'unitID':_0x11bf98[_0x4ecce6(0x2d2)]}});}async['updateCollaborator'](_0x92c611){const _0x383438=_0x128a93;let _0x5ad565=this[_0x383438(0x2bd)]()+_0x383438(0x2ca);await this[_0x383438(0x253)]['patch'](_0x5ad565,{'body':_0x92c611});}async['createCollaborator'](_0x1151a1){const _0x13b343=_0x128a93;let _0x4cde2b=this[_0x13b343(0x2bd)]()+_0x13b343(0x2ca);await this[_0x13b343(0x253)][_0x13b343(0x21a)](_0x4cde2b,{'body':_0x1151a1});}async['listCollaborators'](_0x23cab6){const _0x202ab4=_0x128a93;var _0x3e9da7;let _0x188dbc=this['_getAPIPrefixPath']()+_0x202ab4(0x2ca),_0x5cc3ad=await this[_0x202ab4(0x253)]['get'](_0x188dbc,{'params':{'objectID':_0x23cab6['objectID'],'unitID':_0x23cab6[_0x202ab4(0x2d2)]}});return this[_0x202ab4(0x1cf)]((_0x3e9da7=_0x5cc3ad['body'][_0x202ab4(0x152)])==null?!0x1:_0x3e9da7),_0x5cc3ad[_0x202ab4(0x3b7)][_0x202ab4(0x23f)];}async['putCollaborators'](_0xf88b3f){const _0x456b8d=_0x128a93;let _0x57c292=this['_getAPIPrefixPath']()+_0x456b8d(0x2ca);await this[_0x456b8d(0x253)][_0x456b8d(0x366)](_0x57c292,{'body':_0xf88b3f});}[_0x128a93(0x1cf)](_0x367254){const _0x142f0e=_0x128a93;this[_0x142f0e(0x156)]=_0x367254;}['getCfgEnableObjInherit'](){const _0x38bdff=_0x128a93;return this[_0x38bdff(0x156)];}};Vn=V([B(0x0,_0x37b5e1(_0x1fd0e9)),B(0x1,_0x37b5e1(_0x46ffbd))],Vn);function Hn(_0x376895){const _0x5460c1=_0x128a93;let _0x5c1e6a=atob(_0x376895),_0xb5796f=new Uint8Array(_0x5c1e6a[_0x5460c1(0x2c4)]);for(let _0x2f181d=0x0;_0x2f181d<_0x5c1e6a[_0x5460c1(0x2c4)];_0x2f181d++)_0xb5796f[_0x2f181d]=_0x5c1e6a[_0x5460c1(0x32f)](_0x2f181d);return _0xb5796f;}function Un(_0x177c14){const _0x50dcb8=_0x128a93;let _0xb5dd34='';for(let _0x159f8d=0x0;_0x159f8d<_0x177c14['length'];_0x159f8d++)_0xb5dd34+=String[_0x50dcb8(0x318)](_0x177c14[_0x159f8d]);return btoa(_0xb5dd34);}function Wn(_0x178d93,_0x3d81ce){let _0x2b3acb=Hn(_0x3d81ce),_0x2b4d35=_0x2416e6(0x10);return Un(_0xe751ad(_0x2b4d35,_0xd1e016(_0x2b3acb,_0x2b4d35)['encrypt'](_0x2947e3(_0x178d93))));}function Gn(){const _0x4e8707=_0x128a93;let _0x5df4d4=_0x497abb()[_0x4e8707(0x202)];if(typeof window<'u'&&window[_0x4e8707(0x2d1)]!==void 0x0&&_0x5df4d4){let _0x491feb={'time':Math[_0x4e8707(0x335)](Date[_0x4e8707(0x334)]()/0x3e8),'domain':location[_0x4e8707(0x372)]};return Wn(JSON[_0x4e8707(0x297)](_0x491feb),_0x5df4d4);}}let Kn=class{constructor(_0x16eaf9){const _0x36e40a=_0x128a93;this['_httpService']=_0x16eaf9,this[_0x36e40a(0x201)]();}[_0x128a93(0x201)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x16d8d5,_0x295e0e)=>{const _0x422805=_0x1478;let _0x573869=Gn();return _0x573869&&_0x16d8d5[_0x422805(0x379)][_0x422805(0x225)]('x-univer-host',_0x573869),_0x295e0e(_0x16d8d5);}});}};Kn=V([B(0x0,_0x37b5e1(_0x1fd0e9))],Kn);let qn=class extends _0x738f09{constructor(_0x3d3011,_0x28dac6,_0x6b0460){const _0xf9e2ed=_0x128a93;super(),this[_0xf9e2ed(0x346)]=_0x3d3011,this['_snapshotService']=_0x28dac6,this['_localCacheService']=_0x6b0460,R(this,_0xf9e2ed(0x38b),new _0x4e690d(null)),R(this,_0xf9e2ed(0x18f),new _0x10b8bf()),R(this,'unitInfo$',this[_0xf9e2ed(0x38b)][_0xf9e2ed(0x1a1)]()),R(this,'unitLoaded$',this[_0xf9e2ed(0x18f)][_0xf9e2ed(0x1a1)]());}[_0x128a93(0x358)](){const _0x15778a=_0x128a93;super[_0x15778a(0x358)](),this[_0x15778a(0x18f)][_0x15778a(0x320)](),this[_0x15778a(0x38b)]['complete']();}async[_0x128a93(0x2ae)](_0x5b8b7c,_0x34a640,_0x2eae75,_0x269f70){const _0x3853c0=_0x128a93;this['_unitInfo$']['next']({'unitId':_0x5b8b7c,'type':_0x34a640,'subUnitId':_0x269f70});let _0x5d088a=null;switch(_0x34a640){case _0x61571e['UNIVER_SHEET']:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x314)](_0x5b8b7c,_0x2eae75,void 0x0,{'initialSubUnitId':_0x269f70});break;case _0x61571e[_0x3853c0(0x306)]:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x33f)](_0x5b8b7c,_0x2eae75);break;case _0x61571e['UNIVER_SLIDE']:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x33d)](_0x5b8b7c,_0x2eae75);break;case _0x61571e[_0x3853c0(0x313)]:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x145)](_0x5b8b7c,_0x2eae75);break;case _0x61571e[_0x3853c0(0x1c5)]:_0x5d088a=await this[_0x3853c0(0x364)][_0x3853c0(0x15b)](_0x5b8b7c,_0x2eae75);break;default:this['_logService'][_0x3853c0(0x22c)](_0x3853c0(0x252),_0x3853c0(0x178));break;}return _0x5d088a&&this[_0x3853c0(0x18f)][_0x3853c0(0x1d9)](_0x5d088a),_0x5d088a;}async[_0x128a93(0x1ba)](_0x2f9a19,_0x12c157,_0x1a1567){const _0xfb946b=_0x128a93;var _0x3310b0;this[_0xfb946b(0x38b)][_0xfb946b(0x1d9)]({'unitId':_0x2f9a19,'type':_0x12c157,'subUnitId':_0x1a1567});let _0x5c1036=0x0,_0x34e586=await((_0x3310b0=this[_0xfb946b(0x1fe)])==null?void 0x0:_0x3310b0[_0xfb946b(0x1cd)](_0x2f9a19));return _0x34e586&&(_0x34e586[_0xfb946b(0x1f1)]||_0x34e586[_0xfb946b(0x36c)][_0xfb946b(0x2c4)]!==0x0)&&(_0x5c1036=_0x34e586[_0xfb946b(0x142)]),_0x5c1036===0x0&&this['_logService'][_0xfb946b(0x284)](_0xfb946b(0x252),_0xfb946b(0x14f)),this['loadUnitOfRevision'](_0x2f9a19,_0x12c157,_0x5c1036,_0x1a1567);}};qn=V([B(0x0,_0x470483),B(0x1,_0x37b5e1(_0x3b5530)),B(0x2,_0x29c9af(U))],qn);let Jn=class{constructor(_0x46f7f2,_0x2f8467,_0x2f2714){const _0x5e91a5=_0x128a93;this['_httpService']=_0x46f7f2,this[_0x5e91a5(0x280)]=_0x2f8467,this[_0x5e91a5(0x312)]=_0x2f2714,R(this,_0x5e91a5(0x20d),0x0),R(this,_0x5e91a5(0x3c0),new _0x10b8bf()),R(this,'change$',this[_0x5e91a5(0x3c0)]),R(this,_0x5e91a5(0x1ca),new Map());}[_0x128a93(0x35d)](_0x3bf2ab){const _0x4521db=_0x128a93;this[_0x4521db(0x20d)]=_0x3bf2ab,this[_0x4521db(0x3c0)]['next'](_0x3bf2ab);}['getImageSourceCache'](_0x4eb0ff,_0x4d9bb8){const _0x4795bf=_0x128a93;if(_0x4d9bb8===_0x1a4dce[_0x4795bf(0x282)]){let _0x2356ab=new Image();return _0x2356ab[_0x4795bf(0x2db)]=_0x4eb0ff,_0x2356ab;}return this[_0x4795bf(0x1ca)][_0x4795bf(0x2f1)](_0x4eb0ff);}[_0x128a93(0x325)](_0x339479,_0x21344c,_0x169e1e){const _0x285981=_0x128a93;_0x21344c===_0x1a4dce['BASE64']||_0x169e1e==null||this['_imageSourceCache'][_0x285981(0x225)](_0x339479,_0x169e1e);}async[_0x128a93(0x2ac)](_0x28712c){const _0x15dd97=_0x128a93;try{let _0xcc59b9=this[_0x15dd97(0x196)](this[_0x15dd97(0x3d8)](),''+_0x28712c),_0x48479c=(await this[_0x15dd97(0x261)][_0x15dd97(0x2f1)](_0xcc59b9))[_0x15dd97(0x3b7)];if(_0x48479c[_0x15dd97(0x22c)]&&_0x48479c['error']['code']===_0x15bc37['OK']){let _0x12201a=_0x1bb22f(_0x48479c[_0x15dd97(0x2f9)],this[_0x15dd97(0x345)]());return Promise[_0x15dd97(0x2c9)](_0x12201a);}return Promise[_0x15dd97(0x35b)](_0x48479c[_0x15dd97(0x22c)]);}catch(_0x50e0c7){return Promise[_0x15dd97(0x35b)](_0x50e0c7);}}async[_0x128a93(0x1a6)](_0x455355){const _0xd9e8c4=_0x128a93;let _0x1626b3='';if(!_0x1e72e6[_0xd9e8c4(0x3c5)](_0x455355[_0xd9e8c4(0x2b6)]))return this[_0xd9e8c4(0x32c)](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921[_0xd9e8c4(0x2e7)]));if(_0x455355[_0xd9e8c4(0x2d6)]>_0x59aa17())return this[_0xd9e8c4(0x32c)](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921[_0xd9e8c4(0x143)]));try{let _0x2f7af0=new FormData();_0x2f7af0['append'](_0xd9e8c4(0x26d),_0x455355);let _0x40f9d6=this[_0xd9e8c4(0x312)][_0xd9e8c4(0x179)](),_0x1cb10e=_0x40f9d6==null?void 0x0:_0x40f9d6[_0xd9e8c4(0x3ac)]();if(!_0x1cb10e)throw Error('unitId\x20is\x20not\x20found');let _0x2566f8=this[_0xd9e8c4(0x2ce)]()+_0xd9e8c4(0x1f0)+_0x455355['size'][_0xd9e8c4(0x1b6)]()+_0xd9e8c4(0x270)+_0xe4d98[_0xd9e8c4(0x1e2)]+_0xd9e8c4(0x290)+encodeURIComponent(_0x1cb10e),_0x52f2ad={'body':_0x2f7af0},_0x31f4a3=(await this[_0xd9e8c4(0x261)]['post'](_0x2566f8,_0x52f2ad))['body'];if(typeof _0x31f4a3[_0xd9e8c4(0x382)]!=_0xd9e8c4(0x39f))return this['_decreaseWaiting'](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921[_0xd9e8c4(0x1c9)]));_0x1626b3=_0x31f4a3[_0xd9e8c4(0x382)];}catch{return this[_0xd9e8c4(0x32c)](),Promise[_0xd9e8c4(0x35b)](Error(_0x4b1921['ERROR_IMAGE']));}return new Promise((_0x3eeff3,_0x4547b8)=>{const _0x37f185=_0xd9e8c4;let _0x2a655f=new FileReader();_0x2a655f[_0x37f185(0x32b)](_0x455355),_0x2a655f[_0x37f185(0x1d5)]=_0x29ff2a=>{const _0x1f37e6=_0x37f185;var _0x257745;let _0x20b2e7=(_0x257745=_0x29ff2a[_0x1f37e6(0x348)])==null?void 0x0:_0x257745['result'];if(_0x20b2e7==null){this[_0x1f37e6(0x32c)](),_0x4547b8(Error(_0x4b1921[_0x1f37e6(0x1c9)]));return;}_0x3eeff3({'imageId':_0x5d54f0(0x6),'imageSourceType':_0x1a4dce[_0x1f37e6(0x1b4)],'source':_0x1626b3,'base64Cache':_0x20b2e7,'status':_0x4b1921[_0x1f37e6(0x2f5)]}),this['_decreaseWaiting']();};});}[_0x128a93(0x2ce)](){const _0x2e6be2=_0x128a93;var _0x255207;let _0x196b3b=this[_0x2e6be2(0x280)][_0x2e6be2(0x1bc)](L);return(_0x255207=_0x196b3b==null?void 0x0:_0x196b3b[_0x2e6be2(0x288)])==null?_0x2e6be2(0x27a):_0x255207;}[_0x128a93(0x3d8)](){const _0x583c28=_0x128a93;var _0x4d380d;let _0x2f85e3=this['_configService'][_0x583c28(0x1bc)](L);return(_0x4d380d=_0x2f85e3==null?void 0x0:_0x2f85e3[_0x583c28(0x13a)])==null?'/universer-api/file/{fileID}/sign-url':_0x4d380d;}[_0x128a93(0x345)](){const _0x17e6da=_0x128a93;var _0x3b20cf;let _0x310a9c=this[_0x17e6da(0x280)][_0x17e6da(0x1bc)](L);return(_0x3b20cf=_0x310a9c==null?void 0x0:_0x310a9c[_0x17e6da(0x1c2)])==null?location[_0x17e6da(0x210)]:_0x3b20cf;}['_replaceFileID'](_0x463e8a,_0x79ef97){const _0x23da17=_0x128a93;return _0x463e8a[_0x23da17(0x27d)](_0x23da17(0x1b7),_0x79ef97);}[_0x128a93(0x32c)](){const _0x341f91=_0x128a93;--this[_0x341f91(0x20d)],this['_change$'][_0x341f91(0x1d9)](this[_0x341f91(0x20d)]);}};Jn=V([B(0x0,_0x37b5e1(_0x1fd0e9)),B(0x1,_0x46ffbd),B(0x2,_0x37b5e1(_0x450b7c))],Jn);let Yn=class{constructor(_0x4cb451,_0x59124b){this['_configService']=_0x4cb451,this['_HTTPService']=_0x59124b;}[_0x128a93(0x2bd)](){const _0x2864a0=_0x128a93;var _0x4e458b;let _0x461d45=this[_0x2864a0(0x280)][_0x2864a0(0x1bc)](L);return(_0x4e458b=_0x461d45==null?void 0x0:_0x461d45[_0x2864a0(0x1fc)])==null?_0x2864a0(0x2bf):_0x4e458b;}async['list'](_0x272d2c){const _0x4cd1be=_0x128a93;let _0x3a90a7=this[_0x4cd1be(0x2bd)]()+_0x4cd1be(0x2ca);return{'list':[{'title':_0x4cd1be(0x234),'mentions':(await this['_HTTPService'][_0x4cd1be(0x2f1)](_0x3a90a7,{'params':{'objectID':_0x272d2c[_0x4cd1be(0x285)],'unitID':_0x272d2c['unitId']}}))[_0x4cd1be(0x3b7)][_0x4cd1be(0x23f)][_0x4cd1be(0x24e)](_0x49d320=>({'objectId':_0x49d320['id'],'name':_0x49d320[_0x4cd1be(0x3b4)]['name'],'metadata':{'icon':_0x49d320[_0x4cd1be(0x3b4)][_0x4cd1be(0x397)]},'label':_0x49d320[_0x4cd1be(0x3b4)][_0x4cd1be(0x1d2)],'objectType':_0xb97631['PERSON']})),'metadata':{},'type':_0xb97631['PERSON']}]};}};Yn=V([B(0x0,_0x37b5e1(_0x46ffbd)),B(0x1,_0x37b5e1(_0x1fd0e9))],Yn);let Xn=class extends _0x738f09{constructor(_0x4fd83b,_0x32f63a,_0x2b16a2,_0x45ef8f,_0x2da328){const _0x4333ef=_0x128a93;super(),this[_0x4333ef(0x349)]=_0x4fd83b,this[_0x4333ef(0x312)]=_0x32f63a,this[_0x4333ef(0x2be)]=_0x2b16a2,this['_collaborationSessionService']=_0x45ef8f,this['_collaborationUIEventService']=_0x2da328,this['_initUnitPermissionChange'](),this[_0x4333ef(0x300)]();}[_0x128a93(0x300)](){const _0x13ae0d=_0x128a93;let _0x20696a=async _0x31f3b4=>{const _0x36afeb=_0x1478;(await this[_0x36afeb(0x231)][_0x36afeb(0x1b0)](_0x31f3b4))[_0x36afeb(0x160)][_0x36afeb(0x190)](_0x3784e6(_0xae04be=>_0xae04be[_0x36afeb(0x2b7)]===_0x17c782['SHOULD_CLOSE_CONN']),_0x310870(this[_0x36afeb(0x245)]))['subscribe'](_0x57eeb4=>{const _0x247b97=_0x36afeb;let {reason:_0x19088e}=_0x57eeb4[_0x247b97(0x204)];this[_0x247b97(0x30c)][_0x247b97(0x173)]({'id':_0x247b97(0x187),'data':_0x19088e}),this[_0x247b97(0x2be)][_0x247b97(0x197)](new _0x1283c2(_0x31f3b4)['id'],!0x1),this[_0x247b97(0x231)]['closeSession'](_0x31f3b4);});};_0x1171fb(this[_0x13ae0d(0x312)]['getTypeOfUnitAdded$'](_0x61571e[_0x13ae0d(0x146)]),this[_0x13ae0d(0x312)][_0x13ae0d(0x227)](_0x61571e[_0x13ae0d(0x306)]),this[_0x13ae0d(0x312)][_0x13ae0d(0x227)](_0x61571e[_0x13ae0d(0x313)]),this[_0x13ae0d(0x312)][_0x13ae0d(0x227)](_0x61571e[_0x13ae0d(0x1c5)]))['pipe'](_0xcf767d(_0x5917e7=>_0x5917e7[_0x13ae0d(0x24b)][_0x13ae0d(0x3ac)]()),_0x3784e6(_0x54b7f4=>!_0x19de86(_0x54b7f4)),_0x310870(this[_0x13ae0d(0x245)]))[_0x13ae0d(0x1eb)](_0x4d670d=>{_0x20696a(_0x4d670d);});}[_0x128a93(0x19f)](){const _0x1c6af0=_0x128a93;let _0x4ddf54=async _0x25401a=>{const _0x23790e=_0x1478;let _0x39785a=await this[_0x23790e(0x231)][_0x23790e(0x1b0)](_0x25401a),_0x4e63d2=this[_0x23790e(0x349)]['get'](_0x35ea61);_0x39785a[_0x23790e(0x160)]['pipe'](_0x3784e6(_0x508171=>_0x508171[_0x23790e(0x2b7)]===_0x17c782[_0x23790e(0x3a8)]),_0x310870(this[_0x23790e(0x245)]))['subscribe'](_0x233263=>{const _0x1cd599=_0x23790e;let {objectId:_0x11ad08}=_0x233263[_0x1cd599(0x204)];_0x11ad08===_0x25401a?_0x4e63d2['initWorkbookPermissionChange'](_0x25401a):_0x4e63d2['refreshPermission'](_0x25401a,_0x11ad08);});};_0x1171fb(this[_0x1c6af0(0x312)][_0x1c6af0(0x227)](_0x61571e[_0x1c6af0(0x146)]))['pipe'](_0xcf767d(_0x12b14a=>_0x12b14a['unit'][_0x1c6af0(0x3ac)]()),_0x3784e6(_0x210569=>!_0x19de86(_0x210569)),_0x310870(this[_0x1c6af0(0x245)]))[_0x1c6af0(0x1eb)](_0x353cf9=>{_0x4ddf54(_0x353cf9);});}};Xn=V([B(0x0,_0x37b5e1(_0x56145d)),B(0x1,_0x450b7c),B(0x2,_0x511b30),B(0x3,_0x37b5e1(jn)),B(0x4,_0x37b5e1(z))],Xn);let Zn=class{constructor(_0x19c55c,_0x4552fb){const _0x3b7023=_0x128a93;this[_0x3b7023(0x280)]=_0x19c55c,this['_httpService']=_0x4552fb;}async[_0x128a93(0x23e)](_0x4a1522,_0x5b56a6){const _0x1c038f=_0x128a93;var _0x44b861;let {unitID:_0x198fb7,type:_0x5a57d1,revision:_0x13e2f8=0x0}=_0x5b56a6,_0x432ff9=this[_0x1c038f(0x2c0)]()+'/'+_0x5a57d1+'/unit/'+_0x198fb7+_0x1c038f(0x2bc)+_0x13e2f8,_0x389118=(await this[_0x1c038f(0x261)][_0x1c038f(0x2f1)](_0x432ff9))[_0x1c038f(0x3b7)],_0x2290c8=(_0x44b861=_0x389118[_0x1c038f(0x2ec)])==null?void 0x0:_0x44b861[_0x1c038f(0x36b)];if(_0x2290c8){let _0x4134f1=_0x2290c8==null?void 0x0:_0x2290c8['originalMeta'];_0x2290c8[_0x1c038f(0x1ad)]=_0xda62e4[_0x1c038f(0x363)](_0x4934e7(_0x4134f1)),Object[_0x1c038f(0x3d6)](_0x2290c8['sheets'])['forEach'](([,_0x174e08])=>{const _0x2e46fe=_0x1c038f;let _0x4290ba=_0x174e08[_0x2e46fe(0x1ad)];_0x174e08[_0x2e46fe(0x1ad)]=_0xda62e4[_0x2e46fe(0x363)](_0x4934e7(_0x4290ba));});}return _0x389118;}async[_0x128a93(0x1ee)](_0x5cc8c5,_0x3d3106){const _0x4c992d=_0x128a93;let {unitID:_0x318e59,type:_0x50ff66,blockID:_0x15cce1}=_0x3d3106,_0x53e1c4=this[_0x4c992d(0x2dc)]()+'/'+_0x50ff66+_0x4c992d(0x1e7)+_0x318e59+_0x4c992d(0x169)+_0x15cce1;return(await this[_0x4c992d(0x261)][_0x4c992d(0x2f1)](_0x53e1c4))[_0x4c992d(0x3b7)];}async[_0x128a93(0x33c)](_0x9b2d69,_0x5744f3){const _0x3c952d=_0x128a93;let {unitID:_0x256f2d,type:_0x1c8c92,blockID:_0x39ca6c}=_0x5744f3,_0x5e928d=this[_0x3c952d(0x2dc)]()+'/block/'+_0x1c8c92+_0x3c952d(0x1e7)+_0x256f2d+_0x3c952d(0x169)+_0x39ca6c;return(await this[_0x3c952d(0x261)][_0x3c952d(0x2f1)](_0x5e928d))[_0x3c952d(0x3b7)];}async[_0x128a93(0x36d)](_0xf3fdb4,_0x535eaf){const _0x407570=_0x128a93;let {unitID:_0x25d6f7,type:_0x4bbc3b,from:_0x54b975,to:_0x4c606b}=_0x535eaf,_0x5119ae=this[_0x407570(0x2dc)]()+'/'+_0x4bbc3b+_0x407570(0x1e7)+_0x25d6f7+'/fetchmissing?from='+_0x54b975+_0x407570(0x356)+_0x4c606b;return(await this[_0x407570(0x261)]['get'](_0x5119ae))['body'];}[_0x128a93(0x2c0)](){const _0x44e5d3=_0x128a93;var _0x56191f;return(_0x56191f=this[_0x44e5d3(0x280)][_0x44e5d3(0x1bc)](_0x44e5d3(0x1f4)))==null?this[_0x44e5d3(0x2dc)]():_0x56191f;}[_0x128a93(0x2dc)](){const _0x2e5efe=_0x128a93;var _0x16b005;let _0x2e2da7=this[_0x2e5efe(0x280)][_0x2e5efe(0x1bc)](L);return(_0x16b005=_0x2e2da7==null?void 0x0:_0x2e2da7['snapshotServerUrl'])==null?_0x2e5efe(0x394):_0x16b005;}async[_0x128a93(0x340)](_0x3c7c0e,_0x37d5f0){const _0x727569=_0x128a93;let _0x508e43=_0x727569(0x141)+_0x37d5f0[_0x727569(0x2b6)]+'/unit/'+_0x37d5f0[_0x727569(0x2d2)]+_0x727569(0x2ab);return(await this[_0x727569(0x261)][_0x727569(0x2f1)](_0x508e43,{'params':{'resourceId':JSON[_0x727569(0x297)](_0x37d5f0[_0x727569(0x27e)])}}))[_0x727569(0x3b7)];}[_0x128a93(0x281)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x128a93(0x27b)](){const _0x168226=_0x128a93;throw Error(_0x168226(0x39d));}[_0x128a93(0x200)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x128a93(0x26e)](){const _0x5e94d4=_0x128a93;throw Error(_0x5e94d4(0x39d));}[_0x128a93(0x2c8)](){const _0x36bb1d=_0x128a93;throw Error(_0x36bb1d(0x39d));}[_0x128a93(0x355)](){const _0x3b3f77=_0x128a93;throw Error(_0x3b3f77(0x39d));}};Zn=V([B(0x0,_0x46ffbd),B(0x1,_0x37b5e1(_0x1fd0e9))],Zn);let Qn=class extends _0x3f75c5{constructor(_0x178ca1,_0x3bba07,_0x5d1a6a,_0x5e9629,_0x3f5835){const _0x4332d3=_0x128a93;super(_0x178ca1,_0x3bba07,_0x5d1a6a),this['_transformService']=_0x5e9629,this[_0x4332d3(0x346)]=_0x3f5835;}['transformUndoRedo'](_0x522c12,_0x3586c7){const _0x5ee0bd=_0x128a93;let _0x29aeb4=this[_0x5ee0bd(0x33b)](_0x522c12);if(_0x29aeb4)try{let _0x37a728=this[_0x5ee0bd(0x26c)](_0x29aeb4,_0x3586c7);this[_0x5ee0bd(0x1f8)](_0x522c12,_0x37a728);}catch(_0x4ce98c){this['_logService']['error'](_0x5ee0bd(0x174),_0x4ce98c),this['_clearUndo'](_0x522c12);}let _0x498923=this[_0x5ee0bd(0x20e)](_0x522c12);if(_0x498923)try{let _0x201d97=this['_transformStack'](_0x498923,_0x3586c7);this[_0x5ee0bd(0x228)](_0x522c12,_0x201d97);}catch(_0x536228){this[_0x5ee0bd(0x346)][_0x5ee0bd(0x22c)](_0x536228),this['_clearRedo'](_0x522c12);}}[_0x128a93(0x26a)](_0xa85172){const _0x2f1d63=_0x128a93;let _0x452fa7=this[_0x2f1d63(0x33b)](_0xa85172);_0x452fa7&&(_0x452fa7[_0x2f1d63(0x2c4)]=0x0,this[_0x2f1d63(0x2f8)]());}['_clearRedo'](_0x1b0381){const _0x35b2e4=_0x128a93;let _0x294470=this['_getRedoStack'](_0x1b0381);_0x294470&&(_0x294470[_0x35b2e4(0x2c4)]=0x0,this[_0x35b2e4(0x2f8)]());}['_substituteUndoStack'](_0x446de1,_0x2ba07c){const _0x5194c5=_0x128a93;this[_0x5194c5(0x384)][_0x5194c5(0x225)](_0x446de1,_0x2ba07c),this[_0x5194c5(0x2f8)]();}['_substituteRedoStack'](_0x27dcba,_0x551db4){const _0x563fe6=_0x128a93;this[_0x563fe6(0x269)][_0x563fe6(0x225)](_0x27dcba,_0x551db4),this['_updateStatus']();}[_0x128a93(0x26c)](_0x26b48e,_0x3bf120){const _0xc0f155=_0x128a93;let _0x1e5db8=[],_0x3324b2=_0x3bf120,_0x1f1b42=_0x3bf120;for(let _0x49a165=_0x26b48e['length']-0x1;_0x49a165>=0x0;_0x49a165--){let {unitID:_0x2b6069,undoMutations:_0x8aecd5,redoMutations:_0x5dea97}=_0x26b48e[_0x49a165],_0x363675=this[_0xc0f155(0x247)][_0xc0f155(0x1d7)](_0x3324b2,_0x8aecd5),_0x2ecc1a=this[_0xc0f155(0x247)][_0xc0f155(0x1d7)](_0x1f1b42,_0x5dea97);if(_0x23563d(_0x363675)||_0x23563d(_0x2ecc1a)){this[_0xc0f155(0x346)][_0xc0f155(0x22c)](_0xc0f155(0x174),_0xc0f155(0x359),_0x363675,_0x2ecc1a);break;}_0x3324b2=_0x363675[_0xc0f155(0x2a4)],_0x1f1b42=_0x2ecc1a[_0xc0f155(0x2a4)],_0x1e5db8[_0xc0f155(0x263)]({'unitID':_0x2b6069,'undoMutations':_0x363675[_0xc0f155(0x155)],'redoMutations':_0x2ecc1a[_0xc0f155(0x155)]});}return _0x1e5db8['reverse']();}};Qn=V([B(0x0,_0x450b7c),B(0x1,_0x3b4b60),B(0x2,_0x5422b8),B(0x3,_0xa32c02),B(0x4,_0x470483)],Qn);let $n=class extends _0xfc0aa6{constructor(_0x1c8749=pt,_0x30e0b3,_0x356f9b,_0x11f107){const _0x83b51f=_0x128a93;super(),this[_0x83b51f(0x398)]=_0x1c8749,this[_0x83b51f(0x346)]=_0x30e0b3,this[_0x83b51f(0x349)]=_0x356f9b,this[_0x83b51f(0x280)]=_0x11f107;let {..._0x48389f}=_0x3859b9({},pt,this[_0x83b51f(0x398)]);if(!_0x48389f['socketService'])throw Error(_0x83b51f(0x30a));this[_0x83b51f(0x398)]=_0x48389f,this['_configService'][_0x83b51f(0x147)](L,_0x48389f);}['onStarting'](){const _0x59153d=_0x128a93;this[_0x59153d(0x3c7)](),this[_0x59153d(0x39b)]();}[_0x128a93(0x3c7)](){const _0x3cb7b9=_0x128a93;var _0x50322b,_0x48d765;this[_0x3cb7b9(0x349)][_0x3cb7b9(0x3cd)](_0x3fb98b)&&this['_logService'][_0x3cb7b9(0x22c)]('[UniverCollaborationClientPlugin]',_0x3cb7b9(0x26f));let _0x41259f=_0x5bf09e([[_0x3fb98b,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0x3cb7b9(0x398)]['socketService']}],[_0x308163,{'useClass':Zn}],[_0x1bfb1e,{'useClass':Vn}],[_0x5c8c50,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x29f169,{'useClass':Yn}],[Mn],[Fn]],(_0x50322b=this['_config'])==null?void 0x0:_0x50322b[_0x3cb7b9(0x254)]);if(!((_0x48d765=this[_0x3cb7b9(0x398)])!=null&&_0x48d765[_0x3cb7b9(0x31a)])){let _0x51d49f=_0x41259f[_0x3cb7b9(0x32d)](([_0x104c76])=>_0x104c76===W);_0x51d49f!==-0x1&&_0x41259f[_0x3cb7b9(0x1e3)](_0x51d49f,0x1);}_0x5c219a(this[_0x3cb7b9(0x349)],_0x41259f);}['_initDependencies'](){const _0x438e55=_0x128a93;var _0x448f42,_0x2d5adc;if(this['_injector']['get'](_0x1fd0e9)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x172db3({'maxParallel':0x6})}),!((_0x448f42=this[_0x438e55(0x398)])!=null&&_0x448f42['enableOfflineEditing'])){var _0x41d889;(_0x41d889=this['_injector'][_0x438e55(0x2f1)](U,_0x562e14['OPTIONAL']))==null||_0x41d889[_0x438e55(0x338)]();}(_0x2d5adc=this[_0x438e55(0x398)])!=null&&_0x2d5adc[_0x438e55(0x2cd)]&&_0x434981(this[_0x438e55(0x349)],[[Bn]]),_0x434981(this[_0x438e55(0x349)],[[Kn],[Mn],[Xn]]);}};R($n,_0x128a93(0x374),_0x128a93(0x1fa)),R($n,_0x128a93(0x165),Nn),R($n,'version',Pn),$n=V([_0x21dd03(_0x6aad63,_0x46e417,_0x20222a),B(0x1,_0x470483),B(0x2,_0x37b5e1(_0x56145d)),B(0x3,_0x46ffbd)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
1
+ const _0x4792e8=_0xf8b7;(function(_0x18d718,_0x3819c8){const _0x44298a=_0xf8b7,_0x3ef030=_0x18d718();while(!![]){try{const _0x5f3be7=-parseInt(_0x44298a(0x221))/0x1+parseInt(_0x44298a(0x15b))/0x2+-parseInt(_0x44298a(0x32c))/0x3*(-parseInt(_0x44298a(0x19c))/0x4)+-parseInt(_0x44298a(0x273))/0x5+-parseInt(_0x44298a(0x225))/0x6*(-parseInt(_0x44298a(0x25d))/0x7)+parseInt(_0x44298a(0x2bf))/0x8*(parseInt(_0x44298a(0x3b3))/0x9)+-parseInt(_0x44298a(0x2e3))/0xa*(parseInt(_0x44298a(0x29a))/0xb);if(_0x5f3be7===_0x3819c8)break;else _0x3ef030['push'](_0x3ef030['shift']());}catch(_0x12cd24){_0x3ef030['push'](_0x3ef030['shift']());}}}(_0x4bc3,0xb0388));import{CollaborationEvent as _0xfb25b2,CompressMutationService as _0x4f00f5,EmptyMutationInfo as _0x3d208d,ISnapshotServerService as _0x315027,ITransformService as _0x44c79e,RevisionService as _0x2ee9c5,SnapshotService as _0x2eec7d,UniverCollaborationPlugin as _0x158f84,b64DecodeUnicode as _0x886276,isTransformChangesetsSuccess as _0xbba3f,isTransformMutationsWithChangesetFailure as _0x1bf146,isTransformMutationsWithChangesetSuccess as _0x23cb3e,mapDocumentTypeToUniverInstanceType as _0x1479b3,parseChangesetToProtocol as _0x123852,parseProtocolChangeset as _0x3195f2,textEncoder as _0x36757f,uuidv4 as _0x9592e0}from'@univerjs-pro/collaboration';import{CommandType as _0x14cb83,DependentOn as _0x393cb5,Disposable as _0x52a1e4,DisposableCollection as _0x1f0700,IAuthzIoService as _0x2562e0,ICommandService as _0x235ea9,IConfigService as _0x4d4035,IContextService as _0x1c35be,IImageIoService as _0x34b67b,ILogService as _0x1dc40d,IMentionIOService as _0x33d114,IPermissionService as _0x1414dd,IUndoRedoService as _0x22a7f2,IUniverInstanceService as _0x3764b1,ImageSourceType as _0xb6904b,ImageUploadStatusType as _0x169214,Inject as _0x42bf05,Injector as _0x303c70,JSONX as _0x4290cf,LocalUndoRedoService as _0x4d3d2a,LocaleService as _0x5ce553,MentionType as _0x487dc0,Optional as _0x480fb8,Plugin as _0xa02fe0,Quantity as _0x49f328,Rectangle as _0x91a6c6,RxDisposable as _0x3b463b,Tools as _0x11371e,UniverInstanceType as _0x481a99,UserManagerService as _0x71a154,Workbook as _0x4b553a,createIdentifier as _0x41885f,generateRandomId as _0x4b55d3,isInternalEditorID as _0x382c36,merge as _0x418281,mergeOverrideWithDependencies as _0x36f659,registerDependencies as _0x2785b8,resolveWithBasePath as _0x349c2d,sequenceExecute as _0x59694c,toDisposable as _0x10e2de,touchDependencies as _0x5842f0}from'@univerjs/core';import{DocStateChangeManagerService as _0x72975f,RichTextEditingMutation as _0x34aba9}from'@univerjs/docs';import{InsertSheetMutation as _0x5e387a,SetSelectionsOperation as _0x882d41,SheetPermissionInitController as _0x31e0ee,SheetsSelectionsService as _0x3241bc,WorkbookEditablePermission as _0x3f892d}from'@univerjs/sheets';import{BehaviorSubject as _0x4093e5,ReplaySubject as _0x18bfea,Subject as _0xb9cc50,concatMap as _0x42118f,firstValueFrom as _0x41dbe7,map as _0x3c9835,merge as _0x20d630,of as _0x41b901,shareReplay as _0x3ebe4c,take as _0x2b5e35,takeUntil as _0x516751}from'rxjs';import{CmdRspCode as _0x5d2c4e,CombCmd as _0x1cca16,ErrorCode as _0x36be5a,FileSource as _0x2d4c14}from'@univerjs/protocol';import{ITelemetryService as _0x25cbc7}from'@univerjs/telemetry';import{delay as _0x856ddb,filter as _0x410a39,map as _0x2c8ebc,take as _0x3e82c0,takeUntil as _0x539673}from'rxjs/operators';import{AddSlidePageMutation as _0xd07246,EnsureSlideMasterPageMutation as _0x479fa1,MoveSlidePageMutation as _0x235245,RemoveSlidePageMutation as _0x1262ab}from'@univerjs-pro/slides';import{HTTPRequest as _0x25e740,HTTPService as _0x2c95c7,ISocketService as _0x2eb1e7,MergeInterceptorFactory as _0x26d2f3,ThresholdInterceptorFactory as _0x3ff293,UniverNetworkPlugin as _0x2f0791}from'@univerjs/network';import{UniverLicensePlugin as _0x3fdc72,getGlobalObject as _0x43c59b}from'@univerjs-pro/license';import{cbc as _0x102cd1}from'@noble/ciphers/aes.js';import{concatBytes as _0x21e7b9,randomBytes as _0x19fc48,utf8ToBytes as _0x4b34d5}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x46b851,getDrawingImageAllowSize as _0x474fba}from'@univerjs/drawing';const L=_0x4792e8(0x20b),pt={},mt=_0x4792e8(0x2a8),ht=_0x4792e8(0x1ba),gt=_0x4792e8(0x189),_t='HEARTBEAT_TIMEOUT',vt=0x4e20,yt=_0x4792e8(0x360),bt='LOCAL_CACHE_INTERVAL',xt=0x3e8,St='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',Ct=_0x4792e8(0x149);function wt(_0x5c7fc9){const _0x4a43c=_0x4792e8;return JSON[_0x4a43c(0x32e)](_0x5c7fc9)[_0x4a43c(0x277)];}function Tt(_0x4ce3c6){'@babel/helpers - typeof';const _0x3ecdd1=_0x4792e8;return Tt=typeof Symbol==_0x3ecdd1(0x2ad)&&typeof Symbol[_0x3ecdd1(0x352)]==_0x3ecdd1(0x2ba)?function(_0x2414d3){return typeof _0x2414d3;}:function(_0x4de31a){const _0x15d3e9=_0x3ecdd1;return _0x4de31a&&typeof Symbol==_0x15d3e9(0x2ad)&&_0x4de31a[_0x15d3e9(0x3db)]===Symbol&&_0x4de31a!==Symbol['prototype']?'symbol':typeof _0x4de31a;},Tt(_0x4ce3c6);}function Et(_0x408974,_0x3e9ebb){const _0x195b1d=_0x4792e8;if(Tt(_0x408974)!='object'||!_0x408974)return _0x408974;var _0x30d2d3=_0x408974[Symbol['toPrimitive']];if(_0x30d2d3!==void 0x0){var _0x5554f7=_0x30d2d3[_0x195b1d(0x2d0)](_0x408974,_0x3e9ebb||_0x195b1d(0x21c));if(Tt(_0x5554f7)!=_0x195b1d(0x179))return _0x5554f7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3e9ebb==='string'?String:Number)(_0x408974);}function Dt(_0x571290){const _0x11c8a8=_0x4792e8;var _0x5124db=Et(_0x571290,'string');return Tt(_0x5124db)==_0x11c8a8(0x2ba)?_0x5124db:_0x5124db+'';}function R(_0x51f1c5,_0x363a6a,_0x11014b){const _0x3dd9b1=_0x4792e8;return(_0x363a6a=Dt(_0x363a6a))in _0x51f1c5?Object[_0x3dd9b1(0x1fa)](_0x51f1c5,_0x363a6a,{'value':_0x11014b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51f1c5[_0x363a6a]=_0x11014b,_0x51f1c5;}let Ot=function(_0x347e22){const _0x3ec51a=_0x4792e8;return _0x347e22[_0x3ec51a(0x3aa)]=_0x3ec51a(0x3aa),_0x347e22[_0x3ec51a(0x2e1)]=_0x3ec51a(0x2e1),_0x347e22[_0x3ec51a(0x2cf)]=_0x3ec51a(0x2cf),_0x347e22[_0x3ec51a(0x224)]=_0x3ec51a(0x224),_0x347e22[_0x3ec51a(0x3ce)]=_0x3ec51a(0x3ce),_0x347e22[_0x3ec51a(0x2e0)]=_0x3ec51a(0x2e0),_0x347e22['SOCKET_FAILED']=_0x3ec51a(0x3a1),_0x347e22[_0x3ec51a(0x315)]=_0x3ec51a(0x315),_0x347e22;}({});var z=class{constructor(){const _0x333c31=_0x4792e8;R(this,'_event$',new _0xb9cc50()),R(this,'event$',this[_0x333c31(0x1b3)]['asObservable']());}[_0x4792e8(0x2d9)](_0x58ddad){const _0x443679=_0x4792e8;this[_0x443679(0x1b3)][_0x443679(0x1ff)](_0x58ddad);}},kt=class{constructor(){const _0x2928be=_0x4792e8;R(this,'_commentUpdate$',new _0xb9cc50()),R(this,'commentUpdate$',this[_0x2928be(0x260)]['asObservable']());}[_0x4792e8(0x184)](_0x29c03c){const _0x52e4ed=_0x4792e8;this[_0x52e4ed(0x260)]['next'](_0x29c03c);}};function B(_0x485f76,_0x5809a8){return function(_0x222e00,_0x81c54c){_0x5809a8(_0x222e00,_0x81c54c,_0x485f76);};}function V(_0x3c4fe0,_0x150902,_0x115834,_0x69c6c7){const _0x5d81b3=_0x4792e8;var _0x59d325=arguments['length'],_0x51dc0f=_0x59d325<0x3?_0x150902:_0x69c6c7===null?_0x69c6c7=Object[_0x5d81b3(0x31d)](_0x150902,_0x115834):_0x69c6c7,_0x191061;if(typeof Reflect==_0x5d81b3(0x179)&&typeof Reflect[_0x5d81b3(0x351)]==_0x5d81b3(0x2ad))_0x51dc0f=Reflect[_0x5d81b3(0x351)](_0x3c4fe0,_0x150902,_0x115834,_0x69c6c7);else{for(var _0x633e41=_0x3c4fe0[_0x5d81b3(0x277)]-0x1;_0x633e41>=0x0;_0x633e41--)(_0x191061=_0x3c4fe0[_0x633e41])&&(_0x51dc0f=(_0x59d325<0x3?_0x191061(_0x51dc0f):_0x59d325>0x3?_0x191061(_0x150902,_0x115834,_0x51dc0f):_0x191061(_0x150902,_0x115834))||_0x51dc0f);}return _0x59d325>0x3&&_0x51dc0f&&Object[_0x5d81b3(0x1fa)](_0x150902,_0x115834,_0x51dc0f),_0x51dc0f;}let H=class extends _0x52a1e4{constructor(_0x28ff75,_0x26dd5b){const _0x51dad4=_0x4792e8;super(),this['_univerInstanceService']=_0x28ff75,this['_userManagerService']=_0x26dd5b,R(this,_0x51dad4(0x1ea),new Map()),R(this,_0x51dad4(0x30e),new _0xb9cc50()),this[_0x51dad4(0x18d)](_0x20d630(this['_univerInstanceService'][_0x51dad4(0x16a)](_0x481a99['UNIVER_SHEET'])[_0x51dad4(0x23f)](_0x2c8ebc(_0x3a4b07=>_0x3a4b07[_0x51dad4(0x256)]())),this[_0x51dad4(0x3bf)][_0x51dad4(0x16a)](_0x481a99[_0x51dad4(0x1d2)])['pipe'](_0x2c8ebc(_0x556bf5=>_0x556bf5[_0x51dad4(0x256)]())),this['_univerInstanceService'][_0x51dad4(0x16a)](_0x481a99[_0x51dad4(0x1cf)])[_0x51dad4(0x23f)](_0x2c8ebc(_0x598877=>_0x598877['getUnitId']())),this[_0x51dad4(0x3bf)]['getTypeOfUnitDisposed$'](_0x481a99[_0x51dad4(0x2c6)])['pipe'](_0x2c8ebc(_0x400839=>_0x400839[_0x51dad4(0x256)]())))[_0x51dad4(0x31b)](_0x2de519=>this[_0x51dad4(0x36d)](_0x2de519)));}['waitForRoom$'](_0x37a4af){const _0x3ef032=_0x4792e8;return this[_0x3ef032(0x1ea)][_0x3ef032(0x287)](_0x37a4af)?_0x41b901(this['_roomMembers']['get'](_0x37a4af)):this[_0x3ef032(0x30e)][_0x3ef032(0x23f)](_0x2c8ebc(_0x7cd1fc=>{const _0x534314=_0x3ef032;if(_0x7cd1fc===_0x37a4af)return this[_0x534314(0x1ea)][_0x534314(0x1b5)](_0x7cd1fc);}));}[_0x4792e8(0x3de)](_0x19eb18){this['_userManagerService']['setCurrentUser'](_0x19eb18);}[_0x4792e8(0x178)](){const _0x48dce6=_0x4792e8;return this[_0x48dce6(0x223)]['getCurrentUser']();}[_0x4792e8(0x188)](_0x385876,_0x50f43e){const _0xebc586=_0x4792e8;let _0x2f122e=this['_roomMembers'][_0xebc586(0x1b5)](_0x385876);_0x2f122e||(_0x2f122e=new At(),this[_0xebc586(0x1ea)][_0xebc586(0x2ea)](_0x385876,_0x2f122e),this['_roomCreated$'][_0xebc586(0x1ff)](_0x385876)),_0x2f122e[_0xebc586(0x188)](_0x50f43e);}[_0x4792e8(0x283)](_0x3cedcf,_0x9f6fd2){const _0x26da89=_0x4792e8;let _0x25779c=this['_roomMembers'][_0x26da89(0x1b5)](_0x3cedcf);_0x25779c&&_0x25779c[_0x26da89(0x283)](_0x9f6fd2);}['getRoom'](_0x2f3093){const _0x31f77a=_0x4792e8;return this[_0x31f77a(0x1ea)]['get'](_0x2f3093);}['getMember'](_0x17fffc,_0x56ecd4){const _0x183bc8=_0x4792e8;let _0x57e70a=this[_0x183bc8(0x1ea)]['get'](_0x17fffc);if(_0x57e70a)return _0x57e70a[_0x183bc8(0x185)](_0x56ecd4);}[_0x4792e8(0x36d)](_0x4027c5){const _0x2eaaf3=_0x4792e8;let _0x100b01=this[_0x2eaaf3(0x1ea)]['get'](_0x4027c5);_0x100b01&&(_0x100b01[_0x2eaaf3(0x387)](),this[_0x2eaaf3(0x1ea)][_0x2eaaf3(0x1b9)](_0x4027c5));}[_0x4792e8(0x387)](){const _0x358970=_0x4792e8;this[_0x358970(0x1ea)]['forEach'](_0x4b39e8=>_0x4b39e8[_0x358970(0x387)]()),this[_0x358970(0x1ea)][_0x358970(0x211)](),this[_0x358970(0x30e)][_0x358970(0x1bb)]();}};H=V([B(0x0,_0x3764b1),B(0x1,_0x42bf05(_0x71a154))],H);var At=class extends _0x52a1e4{constructor(..._0x23aa53){const _0x498f04=_0x4792e8;super(..._0x23aa53),R(this,'_members',new Map()),R(this,_0x498f04(0x222),new _0x4093e5(this[_0x498f04(0x176)])),R(this,_0x498f04(0x1ee),this[_0x498f04(0x222)]['asObservable']());}[_0x4792e8(0x387)](){const _0x842c7e=_0x4792e8;this[_0x842c7e(0x176)][_0x842c7e(0x211)](),this['_members$'][_0x842c7e(0x1bb)]();}['updateMember'](_0x364a52){const _0x4e07ab=_0x4792e8;this[_0x4e07ab(0x176)]['set'](_0x364a52[_0x4e07ab(0x2bd)],_0x364a52),this[_0x4e07ab(0x208)]();}[_0x4792e8(0x283)](_0x180739){const _0x48d3af=_0x4792e8;this['_members'][_0x48d3af(0x1b9)](_0x180739),this[_0x48d3af(0x208)]();}['getMember'](_0x205002){const _0x28e43d=_0x4792e8;return this[_0x28e43d(0x176)]['get'](_0x205002);}[_0x4792e8(0x3a2)](){const _0x47d40e=_0x4792e8;return Array['from'](this[_0x47d40e(0x176)][_0x47d40e(0x19a)]());}[_0x4792e8(0x208)](){const _0x437ee4=_0x4792e8;this[_0x437ee4(0x222)]['next'](this[_0x437ee4(0x176)]);}};function jt(_0x259474,_0x13e9d4){const _0x121673=_0x4792e8;if(Nt(_0x259474))return _0x13e9d4;if(_0x13e9d4[_0x121673(0x383)]===_0xfb25b2['SUBMIT_CHANGESET']){var _0xf2ad46;let _0x279d30=Rt(_0x259474),_0x141b34=_0x13e9d4;return{..._0x141b34,'data':{..._0x141b34[_0x121673(0x325)],'unitID':_0x259474[_0x121673(0x348)][_0x121673(0x326)],'unitType':(_0xf2ad46=_0x259474[_0x121673(0x348)][_0x121673(0x33e)])==null?_0x141b34[_0x121673(0x325)][_0x121673(0x33e)]:_0xf2ad46,'changeset':_0x279d30[_0x121673(0x395)](_0x141b34['data'][_0x121673(0x330)],zt(_0x259474))}};}if(_0x13e9d4[_0x121673(0x383)]===_0xfb25b2[_0x121673(0x3c2)]){var _0x2d1c45;let _0x4cfead=_0x13e9d4;return{..._0x4cfead,'data':{..._0x4cfead['data'],'unitID':_0x259474[_0x121673(0x348)][_0x121673(0x326)],'unitType':(_0x2d1c45=_0x259474[_0x121673(0x348)][_0x121673(0x33e)])==null?_0x4cfead[_0x121673(0x325)][_0x121673(0x33e)]:_0x2d1c45}};}return _0x13e9d4;}function Mt(_0x2f2afd,_0x1502b8){const _0x4034fc=_0x4792e8;if(Nt(_0x2f2afd))return[_0x1502b8];switch(_0x1502b8[_0x4034fc(0x383)]){case _0xfb25b2[_0x4034fc(0x3bd)]:return[Pt(_0x2f2afd,_0x1502b8)];case _0xfb25b2['PSEUDO_FETCH_MISSING_RESULT']:return[It(_0x2f2afd,_0x1502b8)];case _0xfb25b2[_0x4034fc(0x217)]:return[Ft(_0x2f2afd,_0x1502b8)];default:return[_0x1502b8];}}function Nt(_0x5e2700){const _0x46ed1a=_0x4792e8;return _0x5e2700[_0x46ed1a(0x348)][_0x46ed1a(0x1ce)]==null&&_0x5e2700['target'][_0x46ed1a(0x326)]===_0x5e2700[_0x46ed1a(0x2b2)]&&!_0x5e2700['changeset'];}function Pt(_0x208a9e,_0x1eca44){return{..._0x1eca44,'data':_0x123852(Lt(_0x208a9e,_0x3195f2(_0x1eca44['data'])))};}function Ft(_0x16a6ee,_0x1ad6ce){return{..._0x1ad6ce,'data':Lt(_0x16a6ee,_0x1ad6ce['data'])};}function It(_0x38586f,_0x323dae){const _0x30c2a3=_0x4792e8;let _0x2e63f0=_0x323dae[_0x30c2a3(0x325)];return{..._0x323dae,'data':{..._0x2e63f0,'changesets':_0x2e63f0[_0x30c2a3(0x3b0)][_0x30c2a3(0x24f)](_0x1d4f78=>_0x123852(Lt(_0x38586f,_0x3195f2(_0x1d4f78))))}};}function Lt(_0x44566a,_0x37e1a1){const _0x277e7b=_0x4792e8;return Rt(_0x44566a)[_0x277e7b(0x1e6)](_0x37e1a1,zt(_0x44566a));}function Rt(_0x420033){const _0x42057f=_0x4792e8;if(!_0x420033[_0x42057f(0x330)])throw Error(_0x42057f(0x282));return _0x420033[_0x42057f(0x330)];}function zt(_0xc4d12a){const _0x3f2854=_0x4792e8;return{'localUnitId':_0xc4d12a[_0x3f2854(0x2b2)],'unitType':_0xc4d12a[_0x3f2854(0x33e)],'target':_0xc4d12a[_0x3f2854(0x348)]};}let Bt=function(_0x5e3f76){const _0x669c62=_0x4792e8;return _0x5e3f76[_0x5e3f76['IDLE']=0x0]=_0x669c62(0x307),_0x5e3f76[_0x5e3f76[_0x669c62(0x334)]=0x1]='JOINING',_0x5e3f76[_0x5e3f76[_0x669c62(0x1a1)]=0x2]=_0x669c62(0x1a1),_0x5e3f76[_0x5e3f76['ONLINE']=0x3]=_0x669c62(0x158),_0x5e3f76;}({});const Vt={[_0x5d2c4e[_0x4792e8(0x3e3)]]:_0x4792e8(0x209),[_0x5d2c4e['JOIN_ROOM_FULL']]:_0x4792e8(0x31f),[_0x5d2c4e[_0x4792e8(0x3e4)]]:'session.room-not-exists',[_0x5d2c4e[_0x4792e8(0x275)]]:_0x4792e8(0x2cc),[_0x5d2c4e[_0x4792e8(0x1a7)]]:_0x4792e8(0x227)};let Ht=class extends _0x3b463b{get['sessionStatus'](){const _0x373129=_0x4792e8;return this['_sessionStatus$'][_0x373129(0x2ed)]();}constructor(_0x3c225e,_0x1de7ad,_0x11fefe,_0x5c9065,_0x46b19f,_0x34b27f,_0x5f2bb3,_0x434e13){const _0x4ca4fe=_0x4792e8;super(),this['_identity']=_0x3c225e,this[_0x4ca4fe(0x398)]=_0x11fefe,this[_0x4ca4fe(0x183)]=_0x5c9065,this[_0x4ca4fe(0x36f)]=_0x46b19f,this[_0x4ca4fe(0x17b)]=_0x34b27f,this['_collaborationUIEventService']=_0x5f2bb3,this['_telemetryService']=_0x434e13,R(this,'_sessionStatus$',new _0x4093e5(0x0)),R(this,_0x4ca4fe(0x1c2),this[_0x4ca4fe(0x145)]['asObservable']()),R(this,_0x4ca4fe(0x1b3),new _0xb9cc50()),R(this,_0x4ca4fe(0x32a),this[_0x4ca4fe(0x1b3)]['asObservable']()),R(this,_0x4ca4fe(0x25c),void 0x0),R(this,'_socketMessageSubscription',void 0x0),R(this,_0x4ca4fe(0x370),void 0x0),R(this,'_shouldReportTelemetry',!0x1),R(this,_0x4ca4fe(0x196),null),this[_0x4ca4fe(0x1f3)]=!!this[_0x4ca4fe(0x2ee)],_0x1de7ad[_0x4ca4fe(0x23f)](_0x516751(this[_0x4ca4fe(0x26f)]))['subscribe'](_0x1f5db4=>{const _0x2b8226=_0x4ca4fe;if(_0x1f5db4!==void 0x0){if(this[_0x2b8226(0x25c)]=_0x1f5db4,_0x1f5db4)this[_0x2b8226(0x3b6)](_0x1f5db4),this[_0x2b8226(0x212)]=_0x1f5db4[_0x2b8226(0x374)][_0x2b8226(0x31b)](_0x4f7292=>{const _0x5308cb=_0x2b8226;_0x4f7292['routeKey']===this[_0x5308cb(0x167)][_0x5308cb(0x348)][_0x5308cb(0x326)]&&this['_onCombEvent'](_0x4f7292);});else{var _0x22e591;this[_0x2b8226(0x391)](),this[_0x2b8226(0x145)][_0x2b8226(0x1ff)](0x2),(_0x22e591=this[_0x2b8226(0x212)])==null||_0x22e591[_0x2b8226(0x1f8)](),this[_0x2b8226(0x212)]=null;}}});}[_0x4792e8(0x291)](){var _0x78c395,_0xbb9400;return(_0x78c395=(_0xbb9400=this['_socket'])==null?void 0x0:_0xbb9400['memberID'])==null?null:_0x78c395;}['dispose'](){const _0x3caf89=_0x4792e8;super[_0x3caf89(0x387)](),this['close'](),this[_0x3caf89(0x26f)][_0x3caf89(0x1ff)](),this[_0x3caf89(0x26f)]['complete']();}[_0x4792e8(0x30b)](){const _0x426348=_0x4792e8;var _0x4ec261;this[_0x426348(0x391)](),(_0x4ec261=this['_socket'])==null||_0x4ec261[_0x426348(0x379)]({'cmd':_0x1cca16[_0x426348(0x369)],'data':{'roomID':this[_0x426348(0x167)]['target']['unitId']}}),this[_0x426348(0x1b3)][_0x426348(0x1bb)](),this['_sessionStatus$']['complete']();}[_0x4792e8(0x29c)](_0x3242c9){const _0x37a856=_0x4792e8;_0x3242c9[_0x37a856(0x384)]===_0x1cca16[_0x37a856(0x3e7)]?this['_onJoinRoomEvent'](_0x3242c9):_0x3242c9[_0x37a856(0x384)]===_0x1cca16[_0x37a856(0x156)]&&this[_0x37a856(0x18e)](_0x3242c9);}['_joinRoom'](_0x2e468b){const _0x295777=_0x4792e8;this[_0x295777(0x145)][_0x295777(0x1ff)](0x1),_0x2e468b[_0x295777(0x379)]({'cmd':_0x1cca16[_0x295777(0x3e7)],'routeKey':this['_identity']['target'][_0x295777(0x326)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x295777(0x348)]['unitId']}]}});}['_onJoinRoomEvent'](_0x2bbbe2){const _0x328cd0=_0x4792e8;var _0x4119fe;if(_0x2bbbe2[_0x328cd0(0x26b)]in Vt){this['_collaborationUIEventService']['emitEvent']({'id':_0x328cd0(0x3ce),'data':Vt[_0x2bbbe2[_0x328cd0(0x26b)]]}),this[_0x328cd0(0x145)][_0x328cd0(0x1ff)](0x2);return;}this[_0x328cd0(0x145)][_0x328cd0(0x1ff)](0x3);let _0x39522b=(_0x4119fe=_0x2bbbe2[_0x328cd0(0x325)]['roomInfos'][this['_identity'][_0x328cd0(0x348)][_0x328cd0(0x326)]])==null?void 0x0:_0x4119fe[_0x328cd0(0x191)];_0x39522b&&_0x39522b[_0x328cd0(0x3e9)](_0x40497f=>this[_0x328cd0(0x36f)][_0x328cd0(0x188)](this[_0x328cd0(0x167)][_0x328cd0(0x2b2)],_0x40497f));}[_0x4792e8(0x18e)](_0x1d60d3){const _0x2d659a=_0x4792e8;try{let _0x50efa3=Mt(this[_0x2d659a(0x167)],_0x1d60d3[_0x2d659a(0x325)]);for(let _0x3fcf8e of _0x50efa3)switch(_0x3fcf8e['eventID']){case _0xfb25b2[_0x2d659a(0x2a7)]:this[_0x2d659a(0x249)](_0x3fcf8e),this[_0x2d659a(0x1b3)][_0x2d659a(0x1ff)](_0x3fcf8e);break;case _0xfb25b2[_0x2d659a(0x303)]:this[_0x2d659a(0x308)](_0x3fcf8e),this['_event$']['next'](_0x3fcf8e);break;case _0xfb25b2['CHANGESET_ACK']:case _0xfb25b2[_0x2d659a(0x217)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x2d659a(0x2d1)](),this[_0x2d659a(0x1b3)][_0x2d659a(0x1ff)](_0x3fcf8e);break;case _0xfb25b2[_0x2d659a(0x150)]:this[_0x2d659a(0x398)][_0x2d659a(0x269)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x3fcf8e)),this[_0x2d659a(0x1b3)]['next'](_0x3fcf8e);break;case _0xfb25b2[_0x2d659a(0x3a5)]:this[_0x2d659a(0x17b)][_0x2d659a(0x184)](_0x3fcf8e[_0x2d659a(0x325)]),this['_event$'][_0x2d659a(0x1ff)](_0x3fcf8e);break;default:this['_event$']['next'](_0x3fcf8e);}}catch(_0x4c8bcc){this[_0x2d659a(0x398)][_0x2d659a(0x269)](_0x4c8bcc,_0x1d60d3);}}[_0x4792e8(0x249)](_0x23d590){const _0x211b39=_0x4792e8;this[_0x211b39(0x36f)]['updateMember'](this[_0x211b39(0x167)][_0x211b39(0x2b2)],_0x23d590[_0x211b39(0x325)]);}[_0x4792e8(0x308)](_0x109a01){const _0x2a697a=_0x4792e8;this[_0x2a697a(0x36f)]['removeMember'](this[_0x2a697a(0x167)][_0x2a697a(0x2b2)],_0x109a01[_0x2a697a(0x325)]['memberID']);}async[_0x4792e8(0x379)](_0x5e9ecd,_0xac964e){const _0x1b094c=_0x4792e8;if(this[_0x1b094c(0x1b4)]!==0x3||!this[_0x1b094c(0x25c)])throw Error(_0x1b094c(0x3c3));try{let _0x44285e=jt(this[_0x1b094c(0x167)],_0x5e9ecd);_0x44285e[_0x1b094c(0x383)]===_0xfb25b2[_0x1b094c(0x15f)]&&(this[_0x1b094c(0x171)](),this[_0x1b094c(0x2f2)](_0x44285e)),this[_0x1b094c(0x25c)][_0x1b094c(0x379)]({'cmd':_0x1cca16[_0x1b094c(0x18c)],'routeKey':this[_0x1b094c(0x167)]['target'][_0x1b094c(0x326)],'routeType':'','data':_0x44285e});}catch(_0x26268e){this['_logService']['error'](_0x26268e);}}[_0x4792e8(0x171)](){const _0x1d703b=_0x4792e8;var _0x4d3a40;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x7ba1c1=_0xf8b7;this[_0x7ba1c1(0x370)]=null,this['_collaborationUIEventService'][_0x7ba1c1(0x2d9)]({'id':_0x7ba1c1(0x315)});},(_0x4d3a40=this[_0x1d703b(0x183)][_0x1d703b(0x3c8)](_0x1d703b(0x257)))==null?vt:_0x4d3a40);}[_0x4792e8(0x2d1)](){const _0x3220ef=_0x4792e8;this[_0x3220ef(0x370)]&&(clearTimeout(this[_0x3220ef(0x370)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x416778){const _0x15e02f=_0x4792e8;if(!this['_shouldReportTelemetry'])return;let {data:_0x5d50a7}=_0x416778,{unitID:_0x5f1edd,changeset:_0xa50f62}=_0x5d50a7,{mutations:_0x3c0228,type:_0x29e098}=_0xa50f62;this['_telemetryInfo']={'unitId':_0x5f1edd,'type':_0x29e098,'startTime':performance[_0x15e02f(0x3d4)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x3c0228)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x150a94=_0x4792e8;if(this[_0x150a94(0x1f3)]){if(!this[_0x150a94(0x196)]){this[_0x150a94(0x398)]['error'](_0x150a94(0x322),_0x150a94(0x17d));return;}this[_0x150a94(0x196)][_0x150a94(0x38b)]=performance[_0x150a94(0x3d4)](),this[_0x150a94(0x196)][_0x150a94(0x3b5)]=this[_0x150a94(0x196)][_0x150a94(0x38b)]-this[_0x150a94(0x196)][_0x150a94(0x321)],this['_telemetryService']['capture'](_0x150a94(0x37c),this[_0x150a94(0x196)]),this[_0x150a94(0x196)]=null;}}[_0x4792e8(0x391)](){const _0xfd09d=_0x4792e8;this[_0xfd09d(0x196)]=null;}};Ht=V([B(0x2,_0x1dc40d),B(0x3,_0x4d4035),B(0x4,_0x42bf05(H)),B(0x5,_0x42bf05(kt)),B(0x6,_0x42bf05(z)),B(0x7,_0x480fb8(_0x25cbc7))],Ht);const U=_0x41885f(_0x4792e8(0x36a));function Ut(_0x3cacea){const _0x51a5a5=_0x4792e8;return _0x51a5a5(0x295)+_0x3cacea;}function Wt(_0x4cf445){const _0x1e6dc2=_0x4792e8;let {unitID:_0x199621,mutations:_0xf4b1d5}=_0x4cf445;return{'unitId':_0x199621,'subUnitId':_0xf4b1d5['length']>0x0?_0xf4b1d5[0x0][_0x1e6dc2(0x33b)]['subUnitId']:null};}let Gt=class{constructor(_0x209f1d,_0x589ca5,_0x21f4c3){const _0x162027=_0x4792e8;this[_0x162027(0x320)]=_0x209f1d,this[_0x162027(0x1dd)]=_0x589ca5,this[_0x162027(0x1a2)]=_0x21f4c3;}[_0x4792e8(0x195)](_0x4d56a2){const _0x43152b=_0x4792e8;var _0x1a47ab,_0x1bb380;let _0x8c543e=this[_0x43152b(0x320)][_0x43152b(0x1b5)](_0x3241bc),{unitId:_0x4bf5d8,subUnitId:_0x45c5cb}=Wt(_0x4d56a2),_0x435ecd=_0x8c543e==null?void 0x0:_0x8c543e[_0x43152b(0x15a)](_0x4bf5d8)[_0x43152b(0x1df)](),_0x3eef63=(_0x1a47ab=this[_0x43152b(0x1a2)][_0x43152b(0x1ef)](_0x4bf5d8))==null||(_0x1a47ab=_0x1a47ab[_0x43152b(0x231)]())==null?void 0x0:_0x1a47ab[_0x43152b(0x359)]();if(_0x435ecd[_0x43152b(0x277)]===0x0||!_0x4bf5d8||!_0x45c5cb)return;let _0x5d564a=[{'id':_0x882d41['id'],'params':{'unitId':_0x4bf5d8,'subUnitId':_0x3eef63,'selections':_0x11371e[_0x43152b(0x3d5)](_0x435ecd)}}],_0x43454c=this[_0x43152b(0x1dd)][_0x43152b(0x2e6)](_0x4d56a2,_0x5d564a);if(!_0x23cb3e(_0x43454c))throw _0x43454c[_0x43152b(0x269)];let _0xf630fd=(_0x1bb380=_0x43454c[_0x43152b(0x157)][0x0])==null||(_0x1bb380=_0x1bb380[_0x43152b(0x33b)])==null?void 0x0:_0x1bb380[_0x43152b(0x3ca)];if(Array[_0x43152b(0x305)](_0xf630fd)&&_0xf630fd[_0x43152b(0x277)]){if(_0xf630fd[_0x43152b(0x277)]===_0x5d564a[0x0][_0x43152b(0x33b)][_0x43152b(0x3ca)][_0x43152b(0x277)]&&_0xf630fd[_0x43152b(0x2c2)]((_0x2891a8,_0x2aab8d)=>_0x91a6c6[_0x43152b(0x3c7)](_0x2891a8[_0x43152b(0x38c)],_0x5d564a[0x0][_0x43152b(0x33b)][_0x43152b(0x3ca)][_0x2aab8d][_0x43152b(0x38c)])))return;this[_0x43152b(0x320)][_0x43152b(0x1b5)](_0x235ea9)['executeCommand'](_0x882d41['id'],{'unitId':_0x4bf5d8,'subUnitId':_0x3eef63,'selections':_0xf630fd});}}};Gt=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x44c79e),B(0x2,_0x3764b1)],Gt);const W=_0x41885f(_0x4792e8(0x1d3));let Kt=function(_0x8fb6e5){const _0x1f198d=_0x4792e8;return _0x8fb6e5[_0x8fb6e5[_0x1f198d(0x3a8)]=0x0]=_0x1f198d(0x3a8),_0x8fb6e5[_0x8fb6e5[_0x1f198d(0x17c)]=0x1]='OTHER_CLIENTS_EDITING',_0x8fb6e5;}({});function qt(_0x58621e){const _0x486ad9=_0x4792e8;var _0x10fcdd;return!!((_0x10fcdd=_0x58621e[_0x486ad9(0x33b)])!=null&&_0x10fcdd[_0x486ad9(0x29f)]);}const Jt=new Set([_0x5e387a['id']]),Yt=new Set([_0xd07246['id'],_0x479fa1['id'],_0x235245['id'],_0x1262ab['id']]);function Xt(_0x5b7821,_0x55a777=Jt){const _0x543d65=_0x4792e8;let _0x3a1064=[];for(let _0x2fc553 of _0x5b7821){if(_0x55a777[_0x543d65(0x287)](_0x2fc553['id'])){if(_0x3a1064['length']>0x0)break;_0x3a1064['push'](_0x2fc553);break;}if(qt(_0x2fc553)){if(_0x3a1064[_0x543d65(0x277)]>0x0)break;_0x3a1064[_0x543d65(0x198)](_0x2fc553);break;}_0x3a1064[_0x543d65(0x198)](_0x2fc553);}return _0x3a1064;}function Zt(_0x98f657,_0x45491f,_0x3b6442,_0x3dc548,_0x1b3e99){const _0x4e92e6=_0x4792e8;var _0x251e81,_0x1d8869,_0x3237ad,_0x2f332b;let _0xaf105a=Xt(_0x98f657),_0x2648c5=(_0x251e81=(_0x1d8869=_0x1b3e99['getCurrentUser']())==null?void 0x0:_0x1d8869[_0x4e92e6(0x35a)])==null?_0x4e92e6(0x3e5):_0x251e81,_0x15889c=(_0x3237ad=(_0x2f332b=_0x1b3e99[_0x4e92e6(0x178)]())==null?void 0x0:_0x2f332b['memberID'])==null?'unknown':_0x3237ad;return{'changeset':{'unitID':_0x45491f,'type':_0x1479b3(_0x3b6442[_0x4e92e6(0x186)](_0x45491f)),'baseRev':_0x3dc548[_0x4e92e6(0x28d)](_0x45491f),'revision':0x0,'userID':_0x2648c5,'memberID':_0x15889c,'mutations':_0xaf105a},'pendingMutations':_0x98f657[_0x4e92e6(0x276)](_0xaf105a[_0x4e92e6(0x277)])};}function Qt(_0x59aefe,_0x309898,_0x42c613,_0x45819e,_0x1dcebc){const _0x4198f8=_0x4792e8;var _0x42c859,_0x42dc80,_0x2cfc02,_0xf14126;let _0x40ffc8=Xt(_0x59aefe,Yt),_0x1b3539=(_0x42c859=(_0x42dc80=_0x1dcebc[_0x4198f8(0x178)]())==null?void 0x0:_0x42dc80[_0x4198f8(0x35a)])==null?_0x4198f8(0x3e5):_0x42c859,_0x58f1d1=(_0x2cfc02=(_0xf14126=_0x1dcebc[_0x4198f8(0x178)]())==null?void 0x0:_0xf14126['memberID'])==null?_0x4198f8(0x3e5):_0x2cfc02;return{'changeset':{'unitID':_0x309898,'type':_0x1479b3(_0x42c613[_0x4198f8(0x186)](_0x309898)),'baseRev':_0x45819e['getCurrentRevOfUnit'](_0x309898),'revision':0x0,'userID':_0x1b3539,'memberID':_0x58f1d1,'mutations':_0x40ffc8},'pendingMutations':_0x59aefe[_0x4198f8(0x276)](_0x40ffc8[_0x4198f8(0x277)])};}function _0xf8b7(_0x587bd5,_0x319e97){_0x587bd5=_0x587bd5-0x145;const _0x4bc394=_0x4bc3();let _0xf8b72a=_0x4bc394[_0x587bd5];return _0xf8b72a;}function $t(_0x397f6c,_0x175e6f,_0x6cd59b,_0x3633ca,_0x4344c3){const _0x48106=_0x4792e8;var _0x441430,_0x27beb7,_0x140a76,_0x3ed4ea;let _0x15f79e=_0x397f6c[_0x48106(0x1e7)]((_0x21388c,_0x13f00a)=>{const _0x48fb3f=_0x48106;let _0x292f00=_0x21388c[_0x21388c[_0x48fb3f(0x277)]-0x1],{id:_0x20685b}=_0x292f00==null?{}:_0x292f00,{id:_0x2d8cf6,type:_0x341d05}=_0x13f00a,_0xaf3894=_0x13f00a[_0x48fb3f(0x33b)];if(_0x20685b&&_0x20685b!==_0x2d8cf6)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x20685b+_0x48fb3f(0x1b7)+_0x2d8cf6+'.');if(!_0x292f00)return[{'id':_0x2d8cf6,'type':_0x341d05,'params':{'unitId':_0xaf3894[_0x48fb3f(0x326)],'textRanges':_0xaf3894[_0x48fb3f(0x1da)],'actions':_0xaf3894[_0x48fb3f(0x34d)]}}];let _0x17de48=_0x292f00['params'];return en(_0x17de48,_0xaf3894)?[..._0x21388c['slice'](0x0,-0x1),{..._0x292f00,'id':_0x2d8cf6,'type':_0x341d05,'params':{'unitId':_0xaf3894['unitId'],'textRanges':_0xaf3894[_0x48fb3f(0x1da)],'actions':_0x4290cf[_0x48fb3f(0x285)](_0x17de48[_0x48fb3f(0x34d)],_0xaf3894[_0x48fb3f(0x34d)])}}]:[..._0x21388c,{'id':_0x2d8cf6,'type':_0x341d05,'params':{'unitId':_0xaf3894[_0x48fb3f(0x326)],'textRanges':_0xaf3894[_0x48fb3f(0x1da)],'actions':_0xaf3894[_0x48fb3f(0x34d)]}}];},[]),_0x5d5ccc=(_0x441430=(_0x27beb7=_0x4344c3[_0x48106(0x178)]())==null?void 0x0:_0x27beb7[_0x48106(0x35a)])==null?'unknown':_0x441430,_0x5dce97=(_0x140a76=(_0x3ed4ea=_0x4344c3[_0x48106(0x178)]())==null?void 0x0:_0x3ed4ea['memberID'])==null?_0x48106(0x3e5):_0x140a76;return{'changeset':{'unitID':_0x175e6f,'type':_0x1479b3(_0x6cd59b['getUnitType'](_0x175e6f)),'baseRev':_0x3633ca['getCurrentRevOfUnit'](_0x175e6f),'revision':0x0,'userID':_0x5d5ccc,'memberID':_0x5dce97,'mutations':_0x15f79e},'pendingMutations':_0x397f6c[_0x48106(0x276)](_0x397f6c[_0x48106(0x277)])};}function en(_0x57ebb2,_0x5f1407){const _0x491ff1=_0x4792e8;return!tn(_0x57ebb2)&&!tn(_0x5f1407)&&nn(_0x57ebb2['actions'],_0x5f1407[_0x491ff1(0x34d)]);}function tn(_0x5ce8cf){const _0xc1f18b=_0x4792e8;return _0x5ce8cf[_0xc1f18b(0x181)]!==void 0x0;}function nn(_0x3a92e9,_0x1d9600){return rn(_0x3a92e9)&&rn(_0x1d9600)&&!on(_0x3a92e9)&&!on(_0x1d9600)&&!an(_0x3a92e9)&&!an(_0x1d9600);}function rn(_0xaef416){const _0x2adebe=_0x4792e8;return sn(_0xaef416)['some'](_0x35820a=>cn(_0x35820a)&&_0x35820a['et']===_0x2adebe(0x2b4));}function _0x4bc3(){const _0x584108=['_queuedRemoteChangesets','SUBMIT_CHANGESET_TIMEOUT','socket\x20close','_acknowledgeAwaitingIfReady','URL','unitInfo$','/new_changes','subscribe','onRemoteChangeset','getOwnPropertyDescriptor','baseRev','session.room-full','_injector','startTime','[CollaborationSession]','_onRemoteRejected','getUploadOptions','data','unitId','\x20in\x20_schedule.','collaborators','_status$','event$','_createInitialStateImpl','417jZgwfH','_clearLocalCache','stringify','awaiting_with_pending','changeset','sheets','createInstance','awaiting','JOINING','encode','_substituteUndoStack','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_waitCount','endsWith','_networkConditionService','params','_localCacheService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','unitType','&to=','_change$','href','add','floor','[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.','socket\x20open.','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onLocalMutation','target','snapshot','timeoutTimer','url','debug','actions','updateSnapshot','_executeRemoteChangeset','init','decorate','iterator','_clearScheduledTask','[DataLoaderService]','/unit/','_clearTimeoutTimer','_remoteChangesetQueue','HELLO','getSheetId','userID','shouldCloseConn','_replayCachedMutations','UPDATE_PERMISSION_OBJ','_getSignURL','base-ui.attachment-io.service','RETRY_CONNECTING_MAX_COUNT','POST','Error\x20on\x20receiving\x20event','method','[CollaborationSessionService]','leaveEvent','resolveUnit','create','onSyncEditingCollabCursor','LEAVE','collaboration-client.local-cache-service','catch','getSnapshotAPIPath','_removeRoom','retryConnectingTimer','_memberService','_collaborationTimeoutTimer','enableSingleActiveInstanceLock','_tryEnsureSocket','_permissionService','message$','_getDownloadEndpointURL','getTypeOfUnitAdded$','_handlerCallback','withCredentials','send','listCollaborators','[UniverCollaborationClientPlugin]','collaboration_new_changeset','fetchMiss','registerHTTPInterceptor','reconnect','appendMutation','_adapter','_sessionChannels','eventID','cmd','_entities','SNAPSHOT_URL_KEY','dispose','result','_schedule','name','stopTime','range','toggleOnline','enableCollaboration','_upload','_toggleOffline','_throwTelemetryCollaborationNewChangeset','addImageSourceCache','entries','COLLABORATION_ENDPOINT_INVALID','toRemote','unitLoaded$','_clearRedo','_logService','[OfflineState]:\x20received\x20acknowledgement.','/allowed','readAsDataURL','_HTTPService','_scheduleCompleteTimestamp','_replaceFileID','onMutationExecutedForCollab','_resendTimeout','SOCKET_FAILED','getAllMembers','resourceIDs','connection\x20error','COMMENT_UPDATE','mutations','loginUrlKey','NO_OTHER_CLIENTS_EDITING','_checkMissing','OTHER_CLIENT_EDITING','__Key__','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','body','_resendWithTimeout','_applyRemoteChangeset','changesets','fromCollab','/universer-api/authz','12405348NjaQlk','update','duration','_joinRoom','replace','setWaitCount','createSocket','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','infoRsp','[SyncedState]:\x20received\x20rejection.','NEW_CHANGESETS','requestParams','_univerInstanceService','OPTIONAL','fetching\x20missing\x20changesets\x20from\x20','FETCH_MISSING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','closeSession','asObservable','collabWebSocketUrl','equals','getConfig','getResourcesRequest','selections','avatar','ERROR_IMAGE_TYPE','updateCollaborator','JOIN_ROOM_FAILED','snapshotServerUrl','headers','/role','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_changesetSessionId','now','deepClone','_exhaustRemoteChangesetQueue','onTransformSelections','batchAllowed','_getConfig','sort','constructor','parse','retryConnectingInterval','setCurrentUser','_onConflict','localCacheService','docStateChange$','AWAITING_WITH_PENDING','FAIL','JOIN_ROOM_NOT_EXISTS','unknown','transformChangesets','JOIN','unitId\x20is\x20not\x20found','forEach','close$','disableLocalCache','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','sendChangesetTimeout','splice','charCodeAt','UNIVER_SHEET','_onConnectionOpen','_sessionStatus$','saveSnapshot','LIVESHARE_NEW_HOST','getUnitStatus$','/universer-api/uniscript','_sendingTimer','newCsEvent','conflict','post','_disableEditing','reqId','MSG_FOR_ERROR','objectType','/universer-api/snapshot/','then','listRoles','getSheetBlock','RECV','m2Prime','ONLINE','state','getWorkbookSelections','2644328MzIHDG','_getCtorByUniverInstanceType','getCollabEntity','_incrementRevisionNumber','SUBMIT_CHANGESET','/universer-api/file/{fileID}/sign-url','hasOwnProperty','_hasSessionsForEndpoint','origin','univer-pro.collaboration-client.network-condition.service','saveSheetBlock','prototype','_identity','getImage','hostname','getTypeOfUnitDisposed$','authzUrl','_onRemoteRetry','univer-pro.collaboration-client-socket-service','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_unitInfo$','fetch_missing','_scheduleCollaborationTimeoutTimer','AWAITING','_state','editing\x20status\x20changed\x20to','_syncEditingCollabCursor','_members','socketReady','getCurrentUser','object','resend','_commentService','OTHER_CLIENTS_EDITING','telemetry\x20info\x20is\x20not\x20initialized','saveImage','deleteCollaborator','NOT_COLLAB','isCompositionEnd','maxSize','_configService','onCommentUpdate','getMember','getUnitType','/collaborator','updateMember','HEARTBEAT_INTERVAL','HEARTBEAT','socket$','INGEST','disposeWithMe','_onRecvEvent','sid','_getAPIPrefix','members','status$','_registerDependencies','getCollabEntity$','transformSelections','_telemetryInfo','focused$','push','readyForCollab','values','_getSendChangesetTimeout','21404dkfUgM','_listenToNetworkCondition','getUnitOnRev','getTime','_commandService','OFFLINE','_instanceService','_httpService','accept','loadSlide','loadSheet','GLOBAL_ROOMS_CNT_EXCEEDS','/object/','UNIVER_SLIDE','onTransformRemoteChangesetByIMECache','_transformRemoteChangesetByStateCache','_createSocket','includes','/universer-api/comb','_createInitialState','session','CHANGESET_ACK','collaboration-client.auth.needGotoLoginAlert','_event$','sessionStatus','get','_docStateChangeManagerService','\x20-\x20','_imageSourceCache','delete','/universer-api/user/session-ticket','complete','_clearHeartbeatTimer','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','toggleOffline','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','encrypt','min','sessionStatus$','Failed\x20to\x20update\x20permission\x20point','collabSubmitChangesetUrl','entityInit$','_transformAndApplyRemoteChangeset','objectActions','_transformRemoteChangesetByIMECache','SHOULD_CLOSE_CONN','workbook','_clearRetryConnectingTimer','_transformIMECache','_eventService','endpoint','UNIVER_BOARD','_type','find','UNIVER_DOC','univer-pro.collaboration-client.single-active-unit-service','_transformSelections','\x0aAfter:\x20','_getSocketChannel','x-univer-host','revision','confirm','textRanges','onRemoteRetry','getInterceptPoints','_transformService','missingChangesets','getCurrentSelections','1.0.0-alpha.5','editingUnit','getImageSourceCache','list','_collabSessionService','interceptor','toLocal','reduce','onTransformIME','_isEchoedAwaitingChangeset','_roomMembers','_singleActiveUnitService','not_collab','pluginName','members$','getUnit','_resolveSessionIdentity','candidateSocket','endpointKey','_shouldReportTelemetry','initWorkbookPermissionChange','onSendChangeset','joinEvent','FileId','unsubscribe','createCollaborator','defineProperty','_showConflictNotification','LIVESHARE_FETCH_OPERATIONS','columnGroups','_onMessage','next','/universer-api/oidc/authpage','string','state$','tables','onMissingChangesets','originalMeta','_changesetReqId','_socketChannels','_emitMembers','session.join-failed','/block/','collaboration-client.config','fetchThroughInterceptors','_maxTotalRetryTimeout','[OfflineState]:\x20received\x20changeset.','_initDependencies','_snapshotService','clear','_socketMessageSubscription','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','size','ERROR_IMAGE','onRemoteAck','CHANGESET_SHOULD_RETRY','_awaitingChangeset','onRemoteRej','permissionRejEvent','_pendingSessions','default','routeKey','number','[CollaborationUndoRedoService]','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','790888QqUakv','_members$','_userManagerService','CLOSE_ROOM','12cOcOJO','override','session.room-cnt-exceeds','getLatestCsReqIdBySid','COMPRESS_MUTATION_APPLY','[PendingState]:\x20unhandled\x20univer\x20type:\x20','isPermissionRej','getCfgEnableObjInherit','_getUndoStack','DEFAULT_FILE_NAME','collaboratorID','_onFetchMissResult','getActiveSheet','@univerjs-pro/collaboration-client','_sheetTransformSelectionsService','indexOf','LIVESHARE_TERMINATE','backupOfflineData','_startCollaboration','reject','_sendHeartbeat','rev','Univer','_getUploadFileURL','[PendingState]:\x20received\x20rejection.','_createSession','pipe','_unitLoaded$','_sender','_collaborationSessionService','objectID','loadUnitOfRevision','socketService','_decreaseWaiting','location','&assign=','_onUserJoin','_state$','unitID','_createHandler','PSEUDO_FETCH_MISSING_RESULT','_resendTimer','map','_compressMutationService','putCollaborators','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','[PendingState]:\x20received\x20acknowledgement.','status','append','getUnitId','HEARTBEAT_TIMEOUT','_sessions','onMissedChangesetFetched','_submitChangeset','_getAPIPrefixPath','_socket','3114986MolFRp','MUTATION','collaMsg','_commentUpdate$','subject','[CollaborationEntity]','attachment','/universer-api/snapshot','updateOfflineData','max','findIndex','c2Prime','error','_config','code','open$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_fetchMissChangesets','dispose$','/fetchmissing?from=','transformUndoRedo','UNISCRIPT_RUN','5999340hOmHAQ','offline','JOIN_ROOM_PERMISSION_DENIED','slice','length','retryCount','saveChangeset','transformStack\x20failed!','_updateState','refreshPermission','uploadFileServerUrl','_handler','onlyLocal','_rescheduleHeartbeat','_onConnectionFailed','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','removeMember','_onRemoteChangeset','compose','LIVESHARE_REQUEST_HOST','has','onStateChange','[FetchMissState]','blockRanges','pauseCollaboration','PERMISSION_REJ','getCurrentRevOfUnit','COMPRESS_MUTATION_SEND','startsWith','c1Prime','getMemberID','_transitionLocked','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','{fileID}','unit-cache-','commentUpdateEvent','loadBoard','_acknowledgedAwaitingRevision','socketMessageSubscription','11dMDsGD','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onCombEvent','_substituteRedoStack','_undoStacks','__splitChunk__','_toggleOnline','[CollaborationState]:\x20apply\x20error!','_collaborationUIEventService','executeCommand','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_revisionService','localeService','USERS_ENTER','ws://127.0.0.1:8000/universer-api/comb/connect','put','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','/-/object/-/batch_allowed','_initMergeInterceptor','function','_waitForHeartbeatResponse','/rev/','_getRedoStack','_initRequestHeader','localUnitId','[CollaborationSessionService]:\x20socket\x20error','text-x','_getCurrentRevision','BASE64','csShouldRetryEvent','_pendingMutations','upload','symbol','failed\x20to\x20apply\x20missed\x20changesets!','loadUnit','memberID','_initUnitPermissionChange','8KJAsmW','toString','_handleRemoteChangesets','every','packageName','error$','awaitingChangeset','UNIVER_BASE','_cfgEnableObjInherit','synced','_isPermissionRej','encodeURIComponent','_getLoginPath','session.room-permission-denied','action','_transformStack','CONFLICT','call','_clearCollaborationTimeoutTimer','PERSON','file','\x0aCurrent:\x20','getDeserializedSheetBlock','setConfig','_onOffline','getFocusedUnit','emitEvent','_unlockTransition','CHANGESET_REJ','/universer-api/stream/file/upload','filter','loadDoc','LIVESHARE_OPERATION','SOCKET_FAILED_RETRY','PERMISSION_DENIED','_updateLocalCache','16217650gXJVZy','updatePermissionPoint','_clearUndo','transformMutationsWithChangeset','title','\x20to\x20','_onRemoteACK','set','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','SUCCUSS','getValue','_telemetryService','signUrlServerUrl','_init','addHandlerCallback','_startTelemetryCollaborationNewChangeset','_collaborationPaused','_lockTransition','_entityInit$','onTransformRemoteChangesetByStateCache','unit','updatePermissionObjEvent','pending','?size=','_onLocalMutation','apply','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','some','_acknowledgeAwaiting','FETCH_MISS','setShowComponents','_initCloseConn','USERS_LEAVE','[OfflineState]:\x20received\x20rejection.','isArray','type','IDLE','_onUserLeave','_tryReconnect','UUID','close','UnitEmbedded','_updateStatus','_roomCreated$','_undoRedoService','patch','sendHeartbeatTimer','requireSession','_localeService'];_0x4bc3=function(){return _0x584108;};return _0x4bc3();}function an(_0xc1a4ca){const _0x243955=_0x4792e8;return sn(_0xc1a4ca)[_0x243955(0x2fe)](_0x58294d=>Array[_0x243955(0x305)](_0x58294d)||typeof _0x58294d==_0x243955(0x201)||typeof _0x58294d==_0x243955(0x21e));}function on(_0x46bc1c){const _0x364b2f=_0x4792e8;return sn(_0x46bc1c)[_0x364b2f(0x2fe)](_0x190d0e=>!cn(_0x190d0e)||_0x190d0e['et']!==_0x364b2f(0x2b4)||!Array[_0x364b2f(0x305)](_0x190d0e['e'])?!0x1:_0x190d0e['e'][_0x364b2f(0x2fe)](_0x417e2e=>!cn(_0x417e2e)||!cn(_0x417e2e[_0x364b2f(0x3ad)])?!0x1:Object[_0x364b2f(0x166)][_0x364b2f(0x161)][_0x364b2f(0x2d0)](_0x417e2e['body'],_0x364b2f(0x203))||Object[_0x364b2f(0x166)][_0x364b2f(0x161)]['call'](_0x417e2e[_0x364b2f(0x3ad)],_0x364b2f(0x1fd))||Object['prototype'][_0x364b2f(0x161)]['call'](_0x417e2e[_0x364b2f(0x3ad)],_0x364b2f(0x28a))));}function sn(_0x5ccff3){const _0x4d0380=_0x4792e8;if(!Array[_0x4d0380(0x305)](_0x5ccff3))return[];let _0x36d7a8=_0x5ccff3[_0x4d0380(0x1ad)]('body')?_0x5ccff3:_0x5ccff3[_0x4d0380(0x1d1)](_0xcae831=>Array[_0x4d0380(0x305)](_0xcae831)&&_0xcae831[_0x4d0380(0x1ad)](_0x4d0380(0x3ad)));if(!Array[_0x4d0380(0x305)](_0x36d7a8))return[];let _0x27c724=_0x36d7a8[_0x4d0380(0x234)](_0x4d0380(0x3ad));return _0x27c724===-0x1?[]:_0x36d7a8['slice'](_0x27c724+0x1);}function cn(_0x1cfe70){const _0x4e986a=_0x4792e8;return typeof _0x1cfe70==_0x4e986a(0x179)&&!!_0x1cfe70&&!Array['isArray'](_0x1cfe70);}function ln(_0x456092,_0x172962){const _0x2f7827=_0x4792e8;let _0x41a546=new _0x18bfea(0x1);return setTimeout(()=>_0x41a546['next'](_0x172962),_0x456092),_0x41a546[_0x2f7827(0x3c5)]()['pipe'](_0x2b5e35(0x1));}var un,dn,fn;let pn=function(_0x31a534){const _0x48c5ae=_0x4792e8;return _0x31a534[_0x48c5ae(0x180)]=_0x48c5ae(0x1ec),_0x31a534['SYNCED']=_0x48c5ae(0x2c8),_0x31a534['PENDING']=_0x48c5ae(0x2f9),_0x31a534[_0x48c5ae(0x172)]=_0x48c5ae(0x333),_0x31a534[_0x48c5ae(0x3e2)]=_0x48c5ae(0x32f),_0x31a534[_0x48c5ae(0x300)]=_0x48c5ae(0x170),_0x31a534[_0x48c5ae(0x2cf)]=_0x48c5ae(0x14c),_0x31a534[_0x48c5ae(0x1a1)]=_0x48c5ae(0x274),_0x31a534;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x4ffb60,_0x2f9e42,_0x563b68,_0xce3e27,_0x2c1b52,_0x2d048b,_0x3cb90f,_0x545b7f,_0x157e33){const _0x33d883=_0x4792e8;this['unitID']=_0x4ffb60,this[_0x33d883(0x306)]=_0x2f9e42,this[_0x33d883(0x27e)]=_0x2c1b52,this[_0x33d883(0x1a0)]=_0x2d048b,this[_0x33d883(0x30f)]=_0x3cb90f,this[_0x33d883(0x2a5)]=_0x545b7f,this['_localCacheService']=_0x157e33,R(this,_0x33d883(0x218),null),R(this,_0x33d883(0x2b8),[]),this[_0x33d883(0x218)]=_0x563b68,this[_0x33d883(0x2b8)]=_0xce3e27;}[_0x4792e8(0x3a9)](_0x2a6091){const _0x26a8aa=_0x4792e8;let _0x211e19=this[_0x26a8aa(0x2a5)][_0x26a8aa(0x28d)](this[_0x26a8aa(0x24b)]);return _0x2a6091['revision']>_0x211e19+0x1?(this[_0x26a8aa(0x27e)][_0x26a8aa(0x204)]({'from':_0x211e19,'to':_0x2a6091[_0x26a8aa(0x1d8)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x4addd0){const _0x36c6d4=_0x4792e8;this[_0x36c6d4(0x30f)][_0x36c6d4(0x271)](this[_0x36c6d4(0x24b)],_0x4addd0);}[_0x4792e8(0x1d4)](_0x26850f){const _0x279f17=_0x4792e8;var _0x1706b3,_0x12ef72;(_0x1706b3=(_0x12ef72=this[_0x279f17(0x27e)])[_0x279f17(0x3d7)])==null||_0x1706b3[_0x279f17(0x2d0)](_0x12ef72,_0x26850f);}[_0x4792e8(0x1cc)](_0x301040){const _0x3371c4=_0x4792e8;var _0x201f44,_0x3d8a83;return(_0x201f44=(_0x3d8a83=this[_0x3371c4(0x27e)])[_0x3371c4(0x1e8)])==null?void 0x0:_0x201f44[_0x3371c4(0x2d0)](_0x3d8a83,_0x301040);}['_transformStateCache'](_0x3c1277){const _0x56676d=_0x4792e8;var _0x3ea0b8,_0x4354b0;return(_0x3ea0b8=(_0x4354b0=this[_0x56676d(0x27e)])['onTransformState'])==null?void 0x0:_0x3ea0b8[_0x56676d(0x2d0)](_0x4354b0,_0x3c1277);}[_0x4792e8(0x1c8)](_0x1bfecd){const _0x1ec312=_0x4792e8;var _0x5590f2,_0x4c60a0,_0x15d222;return(_0x5590f2=(_0x4c60a0=(_0x15d222=this['_handler'])[_0x1ec312(0x1aa)])==null?void 0x0:_0x4c60a0['call'](_0x15d222,_0x1bfecd))==null?_0x1bfecd:_0x5590f2;}[_0x4792e8(0x1ab)](_0x1f05fd){const _0x3f6e25=_0x4792e8;var _0x101629,_0x39ce02,_0x170871;return(_0x101629=(_0x39ce02=(_0x170871=this[_0x3f6e25(0x27e)])[_0x3f6e25(0x2f6)])==null?void 0x0:_0x39ce02[_0x3f6e25(0x2d0)](_0x170871,_0x1f05fd))==null?_0x1f05fd:_0x101629;}[_0x4792e8(0x175)](_0x5c7ea5){const _0x278dae=_0x4792e8;if(this['type']===_0x481a99[_0x278dae(0x1d2)]){let {unitID:_0x4a60c7,mutations:_0x40da85,memberID:_0x29a20a}=_0x5c7ea5,_0x2c67a0=_0x40da85[_0x278dae(0x277)]>0x0?_0x40da85[0x0][_0x278dae(0x33b)][_0x278dae(0x1da)]:[];if(Array[_0x278dae(0x305)](_0x2c67a0)&&_0x2c67a0[_0x278dae(0x277)]>0x0){var _0x5e86e9,_0xcf784c;(_0x5e86e9=(_0xcf784c=this['_handler'])[_0x278dae(0x368)])==null||_0x5e86e9[_0x278dae(0x2d0)](_0xcf784c,{'unitID':_0x4a60c7,'memberID':_0x29a20a,'textRanges':_0x2c67a0});}}}['_updateLocalCache'](){const _0x839d0e=_0x4792e8;var _0x55ef52;(_0x55ef52=this[_0x839d0e(0x33c)])==null||_0x55ef52[_0x839d0e(0x265)](this['unitID'],this[_0x839d0e(0x306)],this['_awaitingChangeset'],this[_0x839d0e(0x2b8)]);}[_0x4792e8(0x2b5)](){const _0x350da7=_0x4792e8;return this['_revisionService'][_0x350da7(0x28d)](this[_0x350da7(0x24b)]);}[_0x4792e8(0x15e)](){const _0x90acc1=_0x4792e8;this[_0x90acc1(0x2a5)]['incrementRevOfUnit'](this[_0x90acc1(0x24b)]);}['_executeRemoteChangeset'](_0x1e4b83){const _0xf530c6=_0x4792e8;let _0x35b7fa=this[_0xf530c6(0x1c8)](_0x1e4b83);_0x35b7fa=this[_0xf530c6(0x1ab)](_0x35b7fa);let _0x18d796=_0x59694c(_0x35b7fa['mutations'],this[_0xf530c6(0x1a0)],{'fromCollab':!0x0});if(!_0x18d796[_0xf530c6(0x388)]){var _0x40feb2;throw _0x18d796[_0xf530c6(0x269)]instanceof Error?_0x18d796[_0xf530c6(0x269)]:Error((_0x40feb2=_0x18d796[_0xf530c6(0x269)])==null?_0xf530c6(0x2a1):_0x40feb2);}this[_0xf530c6(0x1cc)](_0x35b7fa),this['_transformStateCache'](_0x35b7fa),this['_transformUndoredo'](_0x1e4b83),this['_transformSelections'](_0x35b7fa),this[_0xf530c6(0x175)](_0x35b7fa),this[_0xf530c6(0x15e)]();}};let K=class extends G{constructor(_0x1b432d,_0x5a81ba,_0xa11061,_0x1eea0b,_0x275dec,_0x21ff45,_0x3e4e3e,_0x2cb23b,_0xbb9143,_0x46dfa1){const _0x295e81=_0x4792e8;super(_0x1b432d,_0x5a81ba,null,[],_0xa11061,_0x3e4e3e,_0x21ff45,_0x1eea0b,_0x46dfa1),this['_injector']=_0x275dec,this[_0x295e81(0x398)]=_0x2cb23b,this['_transformService']=_0xbb9143,this[_0x295e81(0x3e0)]=_0x46dfa1,R(this,_0x295e81(0x254),_0x295e81(0x2c8));}[_0x4792e8(0x380)](_0x2cae45){const _0x36db69=_0x4792e8;let _0x16c4c7=this[_0x36db69(0x320)][_0x36db69(0x332)](q,this[_0x36db69(0x24b)],this['type'],[_0x2cae45],this[_0x36db69(0x27e)]);return _0x16c4c7[_0x36db69(0x389)](),_0x16c4c7[_0x36db69(0x2e2)](),_0x16c4c7;}[_0x4792e8(0x31c)](_0x2047e0){const _0x1fe840=_0x4792e8;if(this[_0x1fe840(0x3a9)](_0x2047e0))return this[_0x1fe840(0x320)]['createInstance'](Q,this['unitID'],this['type'],null,[],null,[_0x2047e0],this[_0x1fe840(0x27e)]);try{let _0x1703ec=this['_transformService'][_0x1fe840(0x2e6)](_0x2047e0,[_0x3d208d]);if(_0x23cb3e(_0x1703ec)){let {c1Prime:_0x4c5c1a}=_0x1703ec;return this[_0x1fe840(0x34f)](_0x4c5c1a),this;}throw _0x1703ec[_0x1fe840(0x269)];}catch(_0x36d6ee){return this[_0x1fe840(0x398)][_0x1fe840(0x269)](_0x36d6ee),this[_0x1fe840(0x3df)](!0x1);}}['_onConflict'](_0xabbaae){const _0x5bcbc0=_0x4792e8;return this['_injector'][_0x5bcbc0(0x332)](X,this[_0x5bcbc0(0x24b)],this[_0x5bcbc0(0x306)],null,[],this[_0x5bcbc0(0x27e)],_0xabbaae);}[_0x4792e8(0x216)](_0x23bcf0){const _0x15dc08=_0x4792e8;if(_0x23bcf0[_0x15dc08(0x1d8)]<=this[_0x15dc08(0x2b5)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x30a80c=_0x4792e8;throw Error(_0x30a80c(0x3bc));}[_0x4792e8(0x1db)](){return this;}['toggleOffline'](){const _0x413e4e=_0x4792e8;return this[_0x413e4e(0x320)][_0x413e4e(0x332)](Z,this[_0x413e4e(0x24b)],this[_0x413e4e(0x306)],null,[],this[_0x413e4e(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x17a)](){const _0x53ffff=_0x4792e8;throw Error(_0x53ffff(0x337));}[_0x4792e8(0x37d)](){const _0x3f5d1a=_0x4792e8;let _0x5298ed=this[_0x3f5d1a(0x2a5)][_0x3f5d1a(0x28d)](this[_0x3f5d1a(0x24b)]);return this[_0x3f5d1a(0x27e)][_0x3f5d1a(0x204)]({'from':_0x5298ed,'to':0x0}),this[_0x3f5d1a(0x320)][_0x3f5d1a(0x332)](Q,this[_0x3f5d1a(0x24b)],this['type'],null,[],null,[],this['_handler']);}};K=V([B(0x3,_0x42bf05(_0x2ee9c5)),B(0x4,_0x42bf05(_0x303c70)),B(0x5,_0x22a7f2),B(0x6,_0x235ea9),B(0x7,_0x1dc40d),B(0x8,_0x44c79e),B(0x9,_0x480fb8(U))],K);let q=un=class extends G{constructor(_0x17f1cc,_0x2e9dfd,_0x102a71,_0x28f7a5,_0x497634,_0x32fd68,_0x5b1bd7,_0x27ee7b,_0x1b7ba8,_0x4ca94f,_0x62603c,_0x1bb9b5,_0x304251,_0x406546){const _0x36aeff=_0x4792e8;super(_0x17f1cc,_0x2e9dfd,null,_0x102a71,_0x28f7a5,_0x1b7ba8,_0x304251,_0x32fd68,_0x406546),this[_0x36aeff(0x320)]=_0x497634,this[_0x36aeff(0x36f)]=_0x5b1bd7,this[_0x36aeff(0x398)]=_0x27ee7b,this[_0x36aeff(0x183)]=_0x4ca94f,this['_transformService']=_0x62603c,this['_univerInstanceService']=_0x1bb9b5,R(this,_0x36aeff(0x254),_0x36aeff(0x2f9)),R(this,_0x36aeff(0x39d),null),R(this,'_sendingTimer',null);}[_0x4792e8(0x380)](_0x368adb){const _0x2162a0=_0x4792e8;return this[_0x2162a0(0x2b8)]['push'](_0x368adb),this[_0x2162a0(0x2e2)](),this;}['onRemoteChangeset'](_0x4d5039){const _0x5e5cb3=_0x4792e8;if(this[_0x5e5cb3(0x3a9)](_0x4d5039))return this['_clearScheduledTask'](),this['_injector']['createInstance'](Q,this['unitID'],this[_0x5e5cb3(0x306)],null,this[_0x5e5cb3(0x2b8)],null,[_0x4d5039],this['_handler']);try{let _0xb36687=this[_0x5e5cb3(0x1dd)][_0x5e5cb3(0x2e6)](_0x4d5039,this[_0x5e5cb3(0x2b8)]);if(_0x23cb3e(_0xb36687)){let {c1Prime:_0x5a704c,m2Prime:_0x458c26}=_0xb36687;this[_0x5e5cb3(0x34f)](_0x5a704c);let _0x67aad7=this[_0x5e5cb3(0x320)][_0x5e5cb3(0x332)](un,this[_0x5e5cb3(0x24b)],this[_0x5e5cb3(0x306)],_0x458c26,this['_handler']);this['_clearScheduledTask']();let _0x4e9d85=new Date()[_0x5e5cb3(0x19f)](),_0x5dd009=this[_0x5e5cb3(0x39d)]?Math[_0x5e5cb3(0x266)](this['_scheduleCompleteTimestamp']-_0x4e9d85,0x0):this['_getSendChangesetTimeout']();return _0x67aad7[_0x5e5cb3(0x389)](_0x5dd009),_0x67aad7;}throw _0xb36687[_0x5e5cb3(0x269)];}catch(_0x528a31){return this[_0x5e5cb3(0x398)][_0x5e5cb3(0x269)](_0x528a31),this[_0x5e5cb3(0x3df)](!0x1);}}[_0x4792e8(0x216)](_0x3a05b6){const _0x3e4a27=_0x4792e8;if(_0x3a05b6[_0x3e4a27(0x1d8)]<=this[_0x3e4a27(0x2b5)]())return this;throw Error(_0x3e4a27(0x253));}[_0x4792e8(0x219)](){const _0x111ab1=_0x4792e8;throw Error(_0x111ab1(0x23d));}[_0x4792e8(0x1db)](){return this;}['toggleOffline'](){const _0x489036=_0x4792e8;return this['_clearScheduledTask'](),this[_0x489036(0x320)][_0x489036(0x332)](Z,this[_0x489036(0x24b)],this[_0x489036(0x306)],null,this[_0x489036(0x2b8)],this[_0x489036(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x389)](_0x210b6d){const _0x18bad3=_0x4792e8;let _0x4d4bfc=_0x210b6d==null?this[_0x18bad3(0x19b)]():_0x210b6d;this[_0x18bad3(0x39d)]=new Date()['getTime']()+_0x4d4bfc,this[_0x18bad3(0x14a)]=setTimeout(()=>{const _0x1ac570=_0x18bad3;this[_0x1ac570(0x353)]();let _0x1bf0d7=null;switch(this['type']){case _0x481a99[_0x1ac570(0x3f0)]:_0x1bf0d7=Zt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this[_0x1ac570(0x2a5)],this[_0x1ac570(0x36f)]);break;case _0x481a99['UNIVER_DOC']:_0x1bf0d7=this['_pendingMutations'][_0x1ac570(0x2c2)](_0x304858=>_0x304858['id']===_0x34aba9['id'])?$t(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this['_univerInstanceService'],this[_0x1ac570(0x2a5)],this[_0x1ac570(0x36f)]):Zt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this['_revisionService'],this[_0x1ac570(0x36f)]);break;case _0x481a99[_0x1ac570(0x1a9)]:_0x1bf0d7=Qt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this[_0x1ac570(0x2a5)],this[_0x1ac570(0x36f)]);break;case _0x481a99['UNIVER_BOARD']:_0x1bf0d7=Zt(this[_0x1ac570(0x2b8)],this['unitID'],this[_0x1ac570(0x3bf)],this['_revisionService'],this['_memberService']);break;case _0x481a99['UNIVER_BASE']:_0x1bf0d7=Zt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this['_revisionService'],this[_0x1ac570(0x36f)]);break;default:throw Error(_0x1ac570(0x22a)+this[_0x1ac570(0x306)]+_0x1ac570(0x327));}let {changeset:_0x47cc51,pendingMutations:_0x62147d}=_0x1bf0d7;this[_0x1ac570(0x27e)]['onSendChangeset'](_0x47cc51);let _0x3089ae=_0x62147d[_0x1ac570(0x277)]?this['_injector']['createInstance'](Y,this['unitID'],this['type'],_0x47cc51,_0x62147d,this[_0x1ac570(0x27e)],void 0x0):this[_0x1ac570(0x320)][_0x1ac570(0x332)](J,this[_0x1ac570(0x24b)],this[_0x1ac570(0x306)],_0x47cc51,this['_handler']);_0x3089ae[_0x1ac570(0x2e2)](),this['_handler'][_0x1ac570(0x288)](this,_0x3089ae);},_0x4d4bfc);}[_0x4792e8(0x19b)](){const _0x2667e5=_0x4792e8;var _0x1358a5;let _0x2313d8=this[_0x2667e5(0x183)][_0x2667e5(0x3c8)](L);return(_0x1358a5=_0x2313d8==null?void 0x0:_0x2313d8[_0x2667e5(0x3ed)])==null?0x7d0:_0x1358a5;}[_0x4792e8(0x17a)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4792e8(0x353)](){const _0x2aacf4=_0x4792e8;this[_0x2aacf4(0x14a)]!=null&&(clearTimeout(this[_0x2aacf4(0x14a)]),this['_sendingTimer']=null);}['_onConflict'](_0x5d95cb){const _0x34b4a8=_0x4792e8;return this['_clearScheduledTask'](),this[_0x34b4a8(0x320)][_0x34b4a8(0x332)](X,this[_0x34b4a8(0x24b)],this['type'],null,this['_pendingMutations'],this['_handler'],_0x5d95cb);}};q=un=V([B(0x4,_0x42bf05(_0x303c70)),B(0x5,_0x42bf05(_0x2ee9c5)),B(0x6,_0x42bf05(H)),B(0x7,_0x1dc40d),B(0x8,_0x235ea9),B(0x9,_0x4d4035),B(0xa,_0x44c79e),B(0xb,_0x3764b1),B(0xc,_0x22a7f2),B(0xd,_0x480fb8(U))],q);let J=dn=class extends G{constructor(_0x393ed9,_0x4065fb,_0x330a89,_0x4d8b1e,_0x6d7f5e,_0x38313d,_0x3279c9,_0x5192ae,_0x4886a4,_0x5cd2cc,_0x31643c){const _0xf1afe9=_0x4792e8;super(_0x393ed9,_0x4065fb,_0x330a89,[],_0x4d8b1e,_0x3279c9,_0x5cd2cc,_0x38313d,_0x31643c),this[_0xf1afe9(0x320)]=_0x6d7f5e,this['_logService']=_0x5192ae,this[_0xf1afe9(0x1dd)]=_0x4886a4,R(this,_0xf1afe9(0x254),_0xf1afe9(0x333)),R(this,'_resendTimeout',0x0),R(this,'_maxTotalRetryTimeout',0x0),R(this,'_resendTimer',void 0x0),R(this,_0xf1afe9(0x241),void 0x0);}['appendMutation'](_0x4bf946){const _0x5bcb6f=_0x4792e8;this[_0x5bcb6f(0x353)]();let _0xb85ccc=this[_0x5bcb6f(0x320)][_0x5bcb6f(0x332)](Y,this[_0x5bcb6f(0x24b)],this['type'],this[_0x5bcb6f(0x218)],[_0x4bf946],this['_handler'],this[_0x5bcb6f(0x24e)]);return _0xb85ccc['_updateLocalCache'](),_0xb85ccc;}[_0x4792e8(0x31c)](_0x58d89f){const _0x58fb4a=_0x4792e8;if(this[_0x58fb4a(0x3a9)](_0x58d89f))return this[_0x58fb4a(0x353)](),this[_0x58fb4a(0x320)]['createInstance'](Q,this[_0x58fb4a(0x24b)],this[_0x58fb4a(0x306)],this['_awaitingChangeset'],[],null,[_0x58d89f],this[_0x58fb4a(0x27e)]);try{let _0x279fef=this[_0x58fb4a(0x1dd)][_0x58fb4a(0x3e6)]([_0x58d89f],[this[_0x58fb4a(0x218)]],!0x1);if(_0xbba3f(_0x279fef)){let {c1Prime:_0x34f243,c2Prime:_0x2b7e76}=_0x279fef;this[_0x58fb4a(0x34f)](_0x34f243[0x0]),_0x2b7e76[0x0][_0x58fb4a(0x31e)]=this[_0x58fb4a(0x2b5)](),this[_0x58fb4a(0x353)]();let _0x444ce0=this[_0x58fb4a(0x320)]['createInstance'](dn,this['unitID'],this[_0x58fb4a(0x306)],_0x2b7e76[0x0],this[_0x58fb4a(0x27e)]);return _0x444ce0[_0x58fb4a(0x2e2)](),_0x444ce0;}throw _0x279fef[_0x58fb4a(0x269)];}catch(_0x4c920b){return this['_logService'][_0x58fb4a(0x269)](_0x4c920b),this[_0x58fb4a(0x3df)](!0x1);}}[_0x4792e8(0x216)](_0x2eabd3){const _0x3d9e07=_0x4792e8;this[_0x3d9e07(0x353)]();let _0x4987a7=this[_0x3d9e07(0x2a5)][_0x3d9e07(0x28d)](this['unitID']);if(_0x2eabd3['revision']<=_0x4987a7)return this;if(this[_0x3d9e07(0x3a9)](_0x2eabd3))return this[_0x3d9e07(0x320)][_0x3d9e07(0x332)](Q,this[_0x3d9e07(0x24b)],this[_0x3d9e07(0x306)],this[_0x3d9e07(0x218)],[],_0x2eabd3['revision'],[],this[_0x3d9e07(0x27e)]);this[_0x3d9e07(0x15e)]();let _0x3463cc=this[_0x3d9e07(0x320)][_0x3d9e07(0x332)](K,this[_0x3d9e07(0x24b)],this[_0x3d9e07(0x306)],this['_handler']);return _0x3463cc[_0x3d9e07(0x2e2)](),_0x3463cc;}[_0x4792e8(0x219)](_0x4ae65d){const _0x1c2840=_0x4792e8;return this['_onConflict'](!!(_0x4ae65d!=null&&_0x4ae65d[_0x1c2840(0x22b)]));}[_0x4792e8(0x1db)](_0x4df1a4){const _0x168f8e=_0x4792e8;return this[_0x168f8e(0x20d)]>hn?this[_0x168f8e(0x1be)]():(this['_resendTimer']=ln(this[_0x168f8e(0x3a0)],{'timeout':this[_0x168f8e(0x3a0)],'reqId':_0x4df1a4['reqId']}),this[_0x168f8e(0x241)]=this[_0x168f8e(0x24e)][_0x168f8e(0x31b)](({reqId:_0x47d077,timeout:_0x5a86c4})=>{const _0x3b87c3=_0x168f8e;this[_0x3b87c3(0x3ae)](_0x47d077,_0x5a86c4);}),this);}[_0x4792e8(0x1be)](){const _0x3ebe1a=_0x4792e8;return this[_0x3ebe1a(0x353)](),this[_0x3ebe1a(0x320)][_0x3ebe1a(0x332)](Z,this[_0x3ebe1a(0x24b)],this[_0x3ebe1a(0x306)],this['_awaitingChangeset'],[],this[_0x3ebe1a(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x17a)](){const _0x43fac4=_0x4792e8;this[_0x43fac4(0x27e)]['onSendChangeset'](this[_0x43fac4(0x218)]);}[_0x4792e8(0x3df)](_0x1b01da){const _0x1130c6=_0x4792e8;return this[_0x1130c6(0x353)](),this[_0x1130c6(0x320)][_0x1130c6(0x332)](X,this['unitID'],this[_0x1130c6(0x306)],this[_0x1130c6(0x218)],[],this[_0x1130c6(0x27e)],_0x1b01da);}[_0x4792e8(0x3ae)](_0x572a05,_0x4e9838){const _0x1a7046=_0x4792e8;var _0x1bd76e;_0x572a05===((_0x1bd76e=this[_0x1a7046(0x218)])==null?void 0x0:_0x1bd76e[_0x1a7046(0x14f)])&&(this[_0x1a7046(0x17a)](),this[_0x1a7046(0x3a0)]=_0x4e9838===0x0?0x3e8:Math[_0x1a7046(0x1c1)](_0x4e9838*0x2,mn),this['_maxTotalRetryTimeout']+=this[_0x1a7046(0x3a0)]);}[_0x4792e8(0x353)](){const _0x2034fc=_0x4792e8;var _0x4f3ef3;(_0x4f3ef3=this['_sender'])==null||_0x4f3ef3[_0x2034fc(0x1f8)](),this[_0x2034fc(0x3a0)]=0x0,this[_0x2034fc(0x20d)]=0x0;}};J=dn=V([B(0x4,_0x42bf05(_0x303c70)),B(0x5,_0x42bf05(_0x2ee9c5)),B(0x6,_0x235ea9),B(0x7,_0x1dc40d),B(0x8,_0x44c79e),B(0x9,_0x22a7f2),B(0xa,_0x480fb8(U))],J);let Y=fn=class extends G{constructor(_0x326241,_0x2ab5e5,_0x3d2ffe,_0x1d607f,_0x43a177,_0x5d032f,_0x2effb4,_0xba9ea9,_0x4af17f,_0x1dc95d,_0x426977,_0x4c7aed,_0x1a189c){const _0x165aeb=_0x4792e8;super(_0x326241,_0x2ab5e5,_0x3d2ffe,_0x1d607f,_0x43a177,_0x4af17f,_0x4c7aed,_0xba9ea9,_0x1a189c),this[_0x165aeb(0x320)]=_0x2effb4,this[_0x165aeb(0x398)]=_0x1dc95d,this[_0x165aeb(0x1dd)]=_0x426977,this['localCacheService']=_0x1a189c,R(this,'status',_0x165aeb(0x32f)),R(this,'_resendTimeout',0x0),R(this,_0x165aeb(0x20d),0x0),R(this,'_resendTimer',void 0x0),R(this,_0x165aeb(0x241),void 0x0),_0x5d032f&&(this[_0x165aeb(0x24e)]=_0x5d032f,this['_sender']=this[_0x165aeb(0x24e)][_0x165aeb(0x31b)](({reqId:_0x35700f,timeout:_0x392a0c})=>{const _0x1786e6=_0x165aeb;this[_0x1786e6(0x3ae)](_0x35700f,_0x392a0c);}));}['appendMutation'](_0x562915){const _0x23207c=_0x4792e8;return this[_0x23207c(0x2b8)][_0x23207c(0x198)](_0x562915),this;}[_0x4792e8(0x31c)](_0x104fdb){const _0x3c34ba=_0x4792e8;if(this[_0x3c34ba(0x3a9)](_0x104fdb))return this[_0x3c34ba(0x353)](),this[_0x3c34ba(0x320)]['createInstance'](Q,this[_0x3c34ba(0x24b)],this['type'],this[_0x3c34ba(0x218)],this[_0x3c34ba(0x2b8)],null,[_0x104fdb],this['_handler']);try{let _0x315de5=this[_0x3c34ba(0x1dd)][_0x3c34ba(0x3e6)]([_0x104fdb],[this[_0x3c34ba(0x218)]],!0x1);if(_0xbba3f(_0x315de5)){let {c1Prime:_0x2a2d44,c2Prime:_0x316742}=_0x315de5,_0x364098=this['_transformService'][_0x3c34ba(0x2e6)](_0x2a2d44[0x0],this[_0x3c34ba(0x2b8)]);if(_0x23cb3e(_0x364098)){let {c1Prime:_0x177271,m2Prime:_0x5cdb45}=_0x364098;return this[_0x3c34ba(0x34f)](_0x177271),_0x316742[0x0][_0x3c34ba(0x31e)]=this[_0x3c34ba(0x2b5)](),this[_0x3c34ba(0x353)](),this[_0x3c34ba(0x320)][_0x3c34ba(0x332)](fn,this[_0x3c34ba(0x24b)],this[_0x3c34ba(0x306)],_0x316742[0x0],_0x5cdb45,this['_handler'],void 0x0);}throw _0x364098[_0x3c34ba(0x269)];}throw _0x315de5['error'];}catch(_0x3fe0a5){return this['_logService'][_0x3c34ba(0x269)](_0x3fe0a5),this[_0x3c34ba(0x3df)](!0x1);}}[_0x4792e8(0x216)](_0x334484){const _0xf2a4fc=_0x4792e8;this[_0xf2a4fc(0x353)]();let _0x30e6fd=this[_0xf2a4fc(0x2b5)]();if(_0x334484[_0xf2a4fc(0x1d8)]<=_0x30e6fd)return this;if(this[_0xf2a4fc(0x3a9)](_0x334484))return this[_0xf2a4fc(0x320)]['createInstance'](Q,this['unitID'],this[_0xf2a4fc(0x306)],this[_0xf2a4fc(0x218)],this[_0xf2a4fc(0x2b8)],_0x334484[_0xf2a4fc(0x1d8)],[],this['_handler']);this[_0xf2a4fc(0x15e)]();let _0x2d5c82=this[_0xf2a4fc(0x320)][_0xf2a4fc(0x332)](q,this['unitID'],this[_0xf2a4fc(0x306)],this[_0xf2a4fc(0x2b8)],this['_handler']);return _0x2d5c82['_schedule'](),_0x2d5c82[_0xf2a4fc(0x2e2)](),_0x2d5c82;}[_0x4792e8(0x219)](_0x6a175a){const _0x48efdb=_0x4792e8;return this['_onConflict'](!!(_0x6a175a!=null&&_0x6a175a[_0x48efdb(0x22b)]));}['onRemoteRetry'](_0x2a6a09){const _0x4b8d59=_0x4792e8;return this[_0x4b8d59(0x20d)]>hn?this[_0x4b8d59(0x1be)]():(this[_0x4b8d59(0x24e)]=ln(this[_0x4b8d59(0x3a0)],{'timeout':this[_0x4b8d59(0x3a0)],'reqId':_0x2a6a09[_0x4b8d59(0x14f)]}),this[_0x4b8d59(0x241)]=this[_0x4b8d59(0x24e)][_0x4b8d59(0x31b)](({reqId:_0x4d993,timeout:_0x19df69})=>{const _0x11e2f8=_0x4b8d59;this[_0x11e2f8(0x3ae)](_0x4d993,_0x19df69);}),this);}[_0x4792e8(0x1be)](){const _0x407fa4=_0x4792e8;return this[_0x407fa4(0x353)](),this['_injector']['createInstance'](Z,this[_0x407fa4(0x24b)],this[_0x407fa4(0x306)],this[_0x407fa4(0x218)],this[_0x407fa4(0x2b8)],this[_0x407fa4(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x17a)](){const _0x1b59bd=_0x4792e8;this[_0x1b59bd(0x27e)][_0x1b59bd(0x1f5)](this[_0x1b59bd(0x218)]);}['_onConflict'](_0x52a400){const _0x37abf8=_0x4792e8;return this[_0x37abf8(0x353)](),this[_0x37abf8(0x320)][_0x37abf8(0x332)](X,this[_0x37abf8(0x24b)],this[_0x37abf8(0x306)],null,this['_pendingMutations'],this['_handler'],_0x52a400);}['_resendWithTimeout'](_0x5c2842,_0x5edbb2){const _0x26eb0e=_0x4792e8;var _0x14f213;_0x5c2842===((_0x14f213=this[_0x26eb0e(0x218)])==null?void 0x0:_0x14f213[_0x26eb0e(0x14f)])&&(this[_0x26eb0e(0x17a)](),this['_resendTimeout']=_0x5edbb2===0x0?0x3e8:Math['min'](_0x5edbb2*0x2,mn),this[_0x26eb0e(0x20d)]+=this[_0x26eb0e(0x3a0)]);}[_0x4792e8(0x353)](){const _0x16b2b6=_0x4792e8;var _0x208eb1;(_0x208eb1=this[_0x16b2b6(0x241)])==null||_0x208eb1[_0x16b2b6(0x1f8)](),this[_0x16b2b6(0x3a0)]=0x0,this[_0x16b2b6(0x20d)]=0x0;}};Y=fn=V([B(0x6,_0x42bf05(_0x303c70)),B(0x7,_0x42bf05(_0x2ee9c5)),B(0x8,_0x235ea9),B(0x9,_0x1dc40d),B(0xa,_0x44c79e),B(0xb,_0x22a7f2),B(0xc,_0x480fb8(U))],Y);let X=class extends G{constructor(_0x83db5,_0x52b582,_0x216226,_0x14a893,_0x4836b8,_0x6c7263=!0x1,_0x1079d6,_0x5ef352,_0xf28cb2,_0x6bbf79,_0x2facc4,_0x2bf75f,_0x39fa6f){const _0x536cee=_0x4792e8;super(_0x83db5,_0x52b582,_0x216226,_0x14a893,_0x4836b8,_0x5ef352,_0xf28cb2,_0x6bbf79,_0x39fa6f),this[_0x536cee(0x2c9)]=_0x6c7263,this['_permissionService']=_0x1079d6,this[_0x536cee(0x313)]=_0x2facc4,this['_collaborationUIEventService']=_0x2bf75f,this[_0x536cee(0x3e0)]=_0x39fa6f,R(this,_0x536cee(0x254),_0x536cee(0x14c)),this['_showConflictNotification'](),this[_0x536cee(0x32d)](),this[_0x536cee(0x14e)]();}[_0x4792e8(0x380)](){return this;}[_0x4792e8(0x31c)](){return this;}['onRemoteAck'](){return this;}[_0x4792e8(0x219)](){return this;}['onRemoteRetry'](){return this;}[_0x4792e8(0x1be)](){return this;}[_0x4792e8(0x38d)](){return this;}['resend'](){const _0x57a967=_0x4792e8;throw Error(_0x57a967(0x213));}[_0x4792e8(0x32d)](){const _0x119aee=_0x4792e8;var _0x27b652,_0x2215a8,_0xbb12c6;(_0x27b652=this[_0x119aee(0x33c)])==null||(_0x2215a8=_0x27b652[_0x119aee(0x236)])==null||(_0x2215a8=_0x2215a8[_0x119aee(0x2d0)](_0x27b652,this[_0x119aee(0x24b)],_0x119aee(0x14c)))==null||_0x2215a8[_0x119aee(0x36b)](()=>void 0x0),(_0xbb12c6=this['_localCacheService'])==null||_0xbb12c6['updateOfflineData'](this[_0x119aee(0x24b)],this['type'],null,[]);}[_0x4792e8(0x1fb)](){const _0x59fbc1=_0x4792e8;this[_0x59fbc1(0x2c9)]?this[_0x59fbc1(0x2a2)][_0x59fbc1(0x2d9)]({'id':_0x59fbc1(0x2e1)}):this[_0x59fbc1(0x2a2)][_0x59fbc1(0x2d9)]({'id':'CONFLICT'});}['_disableEditing'](){const _0x23e331=_0x4792e8;this[_0x23e331(0x373)][_0x23e331(0x2e4)](new _0x3f892d(this[_0x23e331(0x24b)])['id'],!0x1);}};X=V([B(0x6,_0x42bf05(_0x1414dd)),B(0x7,_0x235ea9),B(0x8,_0x22a7f2),B(0x9,_0x42bf05(_0x2ee9c5)),B(0xa,_0x42bf05(_0x5ce553)),B(0xb,_0x42bf05(z)),B(0xc,_0x480fb8(U))],X);let Z=class extends G{constructor(_0x373005,_0x24fba5,_0x19055f,_0x33f3cc,_0x3fb9fa,_0x56528d,_0x4a7d95,_0x281615,_0x37aa46,_0x2e872b){const _0x4c6d74=_0x4792e8;super(_0x373005,_0x24fba5,_0x19055f,_0x33f3cc,_0x3fb9fa,_0x281615,_0x37aa46,_0x4a7d95,_0x2e872b),this[_0x4c6d74(0x320)]=_0x56528d,R(this,_0x4c6d74(0x254),_0x4c6d74(0x274));}[_0x4792e8(0x380)](_0xaf1056){const _0x9d02ce=_0x4792e8;return this[_0x9d02ce(0x2b8)]['push'](_0xaf1056),this[_0x9d02ce(0x2e2)](),this;}[_0x4792e8(0x31c)](_0x285946){const _0xd78f45=_0x4792e8;throw Error(_0xd78f45(0x20e));}['onRemoteAck'](){const _0x443cbb=_0x4792e8;throw Error(_0x443cbb(0x399));}['onRemoteRej'](){const _0x681ca7=_0x4792e8;throw Error(_0x681ca7(0x304));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x4792e8(0x38d)](){const _0x3b8f11=_0x4792e8;let {_injector:_0x3043f5,_pendingMutations:_0x130350,_awaitingChangeset:_0x359b9b,unitID:_0x298aa0,_handler:_0x4e4ba9,type:_0x184b74}=this,_0x4a738b=gn(_0x3043f5,_0x298aa0,_0x184b74,_0x359b9b,_0x130350,_0x4e4ba9);return _0x4a738b instanceof q?_0x4a738b['_schedule']():(_0x4a738b instanceof Y||_0x4a738b instanceof J)&&_0x4a738b[_0x3b8f11(0x17a)](),_0x4a738b;}[_0x4792e8(0x17a)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Z=V([B(0x5,_0x42bf05(_0x303c70)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x235ea9),B(0x8,_0x22a7f2),B(0x9,_0x480fb8(U))],Z);let Q=class extends G{constructor(_0x21157a,_0x1f24d9,_0xb222f1,_0x4d915d,_0x23a50e,_0x4c3f82,_0x205c31,_0x1f8482,_0x15036a,_0x4fe4be,_0x52ab43,_0x511df0,_0x35d28b,_0x25c6be){const _0x43b8ae=_0x4792e8;super(_0x21157a,_0x1f24d9,_0xb222f1,_0x4d915d,_0x205c31,_0x52ab43,_0x511df0,_0x15036a,_0x25c6be),this[_0x43b8ae(0x298)]=_0x23a50e,this['_queuedRemoteChangesets']=_0x4c3f82,this[_0x43b8ae(0x320)]=_0x1f8482,this[_0x43b8ae(0x398)]=_0x4fe4be,this[_0x43b8ae(0x1dd)]=_0x35d28b,this['localCacheService']=_0x25c6be,R(this,_0x43b8ae(0x254),_0x43b8ae(0x170));}[_0x4792e8(0x259)](_0x5ec466){const _0x4b0712=_0x4792e8;try{if(this[_0x4b0712(0x2c1)](_0x5ec466)[_0x4b0712(0x1de)])throw Error(_0x4b0712(0x2aa));if(this[_0x4b0712(0x2c1)]([...this[_0x4b0712(0x314)]][_0x4b0712(0x3da)]((_0x350757,_0x87bda3)=>_0x350757[_0x4b0712(0x1d8)]-_0x87bda3[_0x4b0712(0x1d8)]))[_0x4b0712(0x1de)])return this[_0x4b0712(0x314)]=[],this[_0x4b0712(0x2e2)](),this['_handler'][_0x4b0712(0x204)]({'from':this[_0x4b0712(0x2b5)](),'to':0x0}),this;let _0x335c77=this[_0x4b0712(0x218)],_0x10a813=this['_pendingMutations'],_0x371f90;if(_0x335c77&&_0x10a813[_0x4b0712(0x277)]!==0x0)_0x371f90=this[_0x4b0712(0x320)][_0x4b0712(0x332)](Y,this[_0x4b0712(0x24b)],this['type'],_0x335c77,_0x10a813,this[_0x4b0712(0x27e)],void 0x0);else{if(_0x335c77&&_0x10a813[_0x4b0712(0x277)]===0x0)_0x335c77['baseRev']=this['_getCurrentRevision'](),_0x371f90=this[_0x4b0712(0x320)]['createInstance'](J,this[_0x4b0712(0x24b)],this['type'],_0x335c77,this[_0x4b0712(0x27e)]);else{if(_0x10a813[_0x4b0712(0x277)]!==0x0){let _0x1e1419=this[_0x4b0712(0x320)][_0x4b0712(0x332)](q,this[_0x4b0712(0x24b)],this['type'],_0x10a813,this[_0x4b0712(0x27e)]);_0x1e1419['_schedule'](),_0x371f90=_0x1e1419;}else _0x371f90=this[_0x4b0712(0x320)]['createInstance'](K,this[_0x4b0712(0x24b)],this[_0x4b0712(0x306)],this[_0x4b0712(0x27e)]);}}return _0x371f90[_0x4b0712(0x2e2)](),_0x371f90;}catch(_0x45e6f9){return this[_0x4b0712(0x398)]['error'](_0x4b0712(0x289),_0x4b0712(0x2bb),_0x45e6f9),this[_0x4b0712(0x320)][_0x4b0712(0x332)](X,this[_0x4b0712(0x24b)],this[_0x4b0712(0x306)],this[_0x4b0712(0x218)],this[_0x4b0712(0x2b8)],this['_handler'],!0x1);}}[_0x4792e8(0x2c1)](_0x333b50){const _0x281a62=_0x4792e8;this[_0x281a62(0x317)]();for(let _0x5e97e4=0x0;_0x5e97e4<_0x333b50[_0x281a62(0x277)];_0x5e97e4++){let _0x372663=_0x333b50[_0x5e97e4],_0x2e62b1=this[_0x281a62(0x2b5)]();if(!(_0x372663[_0x281a62(0x1d8)]<=_0x2e62b1)){if(_0x372663['revision']>_0x2e62b1+0x1)return{'missingChangesets':!0x0};if(this[_0x281a62(0x1e9)](_0x372663)){this[_0x281a62(0x2ff)]();continue;}this[_0x281a62(0x1c6)](_0x372663),this[_0x281a62(0x317)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x3dc097){const _0x43320d=_0x4792e8;let _0x14b75e=_0x3dc097,_0x1b87bf=this[_0x43320d(0x218)];if(_0x1b87bf){let _0x2fa758=this['_transformService'][_0x43320d(0x3e6)]([_0x3dc097],[_0x1b87bf],!0x1);if(!_0xbba3f(_0x2fa758))throw _0x2fa758['error'];_0x14b75e=_0x2fa758[_0x43320d(0x290)][0x0],_0x1b87bf=_0x2fa758[_0x43320d(0x268)][0x0];}let _0xb7c5f6=this[_0x43320d(0x2b8)];if(_0xb7c5f6[_0x43320d(0x277)]){let _0x4fd119=this[_0x43320d(0x1dd)][_0x43320d(0x2e6)](_0x14b75e,_0xb7c5f6);if(!_0x23cb3e(_0x4fd119))throw _0x4fd119[_0x43320d(0x269)];_0x14b75e=_0x4fd119[_0x43320d(0x290)],_0xb7c5f6=_0x4fd119[_0x43320d(0x157)];}this[_0x43320d(0x34f)](_0x14b75e),_0x1b87bf&&(_0x1b87bf['baseRev']=this[_0x43320d(0x2b5)]()),this[_0x43320d(0x218)]=_0x1b87bf,this[_0x43320d(0x2b8)]=_0xb7c5f6;}[_0x4792e8(0x317)](){const _0x1b00c4=_0x4792e8;if(!this[_0x1b00c4(0x218)]||this[_0x1b00c4(0x298)]==null)return;let _0x5d9ddf=this[_0x1b00c4(0x2b5)]();if(this['_acknowledgedAwaitingRevision']<=_0x5d9ddf)throw Error(_0x1b00c4(0x293)+this[_0x1b00c4(0x298)]+'.');this[_0x1b00c4(0x298)]===_0x5d9ddf+0x1&&this[_0x1b00c4(0x2ff)]();}[_0x4792e8(0x2ff)](){const _0x1b66bf=_0x4792e8;this[_0x1b66bf(0x15e)](),this[_0x1b66bf(0x218)]=null,this[_0x1b66bf(0x298)]=null;}[_0x4792e8(0x1e9)](_0x164aa3){const _0x4de71d=_0x4792e8;let _0x58d136=this[_0x4de71d(0x218)];return!_0x58d136||!_0x58d136['sid']||_0x58d136[_0x4de71d(0x14f)]===null||_0x58d136[_0x4de71d(0x14f)]===void 0x0?!0x1:_0x164aa3[_0x4de71d(0x24b)]===_0x58d136[_0x4de71d(0x24b)]&&_0x164aa3[_0x4de71d(0x18f)]===_0x58d136[_0x4de71d(0x18f)]&&_0x164aa3[_0x4de71d(0x14f)]===_0x58d136[_0x4de71d(0x14f)];}[_0x4792e8(0x17a)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x4434f1){const _0x5a1a27=_0x4792e8;return this[_0x5a1a27(0x2b8)]['push'](_0x4434f1),this;}['onRemoteChangeset'](_0x307fa1){const _0x337aed=_0x4792e8;return this[_0x337aed(0x314)][_0x337aed(0x198)](_0x307fa1),this;}['onRemoteAck'](_0x15097a){const _0x1ac5ac=_0x4792e8;if(this[_0x1ac5ac(0x218)]){let _0x10b8ac=this['_getCurrentRevision']();return _0x15097a[_0x1ac5ac(0x1d8)]<=_0x10b8ac||(_0x10b8ac+0x1===_0x15097a[_0x1ac5ac(0x1d8)]?(this[_0x1ac5ac(0x15e)](),this[_0x1ac5ac(0x218)]=null,this[_0x1ac5ac(0x298)]=null):this[_0x1ac5ac(0x298)]=_0x15097a[_0x1ac5ac(0x1d8)]),this;}if(_0x15097a[_0x1ac5ac(0x1d8)]<=this['_getCurrentRevision']())return this;throw Error(_0x1ac5ac(0x3ac));}[_0x4792e8(0x219)](_0xaec93){const _0x19392a=_0x4792e8;return this[_0x19392a(0x3df)](!!(_0xaec93!=null&&_0xaec93['isPermissionRej']));}[_0x4792e8(0x1db)](){return this;}[_0x4792e8(0x1be)](){const _0x5520c5=_0x4792e8;return this[_0x5520c5(0x320)][_0x5520c5(0x332)](Z,this['unitID'],this[_0x5520c5(0x306)],this[_0x5520c5(0x218)],this['_pendingMutations'],this[_0x5520c5(0x27e)]);}['toggleOnline'](){return this;}['_onConflict'](_0x1d983d){const _0x4f84a2=_0x4792e8;return this[_0x4f84a2(0x320)]['createInstance'](X,this[_0x4f84a2(0x24b)],this[_0x4f84a2(0x306)],this[_0x4f84a2(0x218)],this[_0x4f84a2(0x2b8)],this[_0x4f84a2(0x27e)],_0x1d983d);}};Q=V([B(0x7,_0x42bf05(_0x303c70)),B(0x8,_0x42bf05(_0x2ee9c5)),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x22a7f2),B(0xc,_0x44c79e),B(0xd,_0x480fb8(U))],Q);function gn(_0x24c112,_0x311e9e,_0x303573,_0x5ae8b7,_0x458d02,_0x5eb7c9){const _0x550e91=_0x4792e8;return _0x5ae8b7&&_0x458d02[_0x550e91(0x277)]?_0x24c112[_0x550e91(0x332)](Y,_0x311e9e,_0x303573,_0x5ae8b7,_0x458d02,_0x5eb7c9,void 0x0):_0x5ae8b7?_0x24c112[_0x550e91(0x332)](J,_0x311e9e,_0x303573,_0x5ae8b7,_0x5eb7c9):_0x458d02[_0x550e91(0x277)]?_0x24c112[_0x550e91(0x332)](q,_0x311e9e,_0x303573,_0x458d02,_0x5eb7c9):_0x24c112[_0x550e91(0x332)](K,_0x311e9e,_0x303573,_0x5eb7c9);}let $=class extends _0x3b463b{get[_0x4792e8(0x159)](){return this['_state'];}constructor(_0x453557,_0x5cc873,_0x31b85e,_0x6d7852,_0x2b2829,_0x325da7,_0x45e9e3,_0x504475,_0x4b7fb8,_0x38f316,_0x1dd4ac,_0x567a41,_0x4538bf,_0x5b9e00){const _0x1f3770=_0x4792e8;super(),this[_0x1f3770(0x24b)]=_0x453557,this[_0x1f3770(0x1b0)]=_0x5cc873,this[_0x1f3770(0x1d0)]=_0x31b85e,this['_injector']=_0x6d7852,this[_0x1f3770(0x250)]=_0x2b2829,this[_0x1f3770(0x313)]=_0x325da7,this[_0x1f3770(0x2a5)]=_0x45e9e3,this[_0x1f3770(0x1cd)]=_0x504475,this[_0x1f3770(0x3bf)]=_0x4b7fb8,this[_0x1f3770(0x398)]=_0x38f316,this[_0x1f3770(0x1a0)]=_0x1dd4ac,this[_0x1f3770(0x373)]=_0x567a41,this['_singleActiveUnitService']=_0x4538bf,this[_0x1f3770(0x33c)]=_0x5b9e00,R(this,_0x1f3770(0x24a),new _0x4093e5(null)),R(this,'state$',this[_0x1f3770(0x24a)][_0x1f3770(0x3c5)]()),R(this,_0x1f3770(0x173),void 0x0),R(this,_0x1f3770(0x2f3),!0x1),R(this,_0x1f3770(0x3d3),''),R(this,'_changesetReqId',0x0),R(this,_0x1f3770(0x192),this[_0x1f3770(0x202)]['pipe'](_0x3c9835(_0x787fb6=>_0x787fb6?_0x787fb6[_0x1f3770(0x254)]:_0x1f3770(0x274)),_0x3ebe4c({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x1f3770(0x292),!0x1),R(this,'_remoteChangesetQueue',[]);}async[_0x4792e8(0x350)](){const _0xce5bcf=_0x4792e8;if(this[_0xce5bcf(0x159)])throw Error(_0xce5bcf(0x26d));await this[_0xce5bcf(0x2f0)]();}[_0x4792e8(0x28b)](){const _0x5c471f=_0x4792e8;return this[_0x5c471f(0x2f3)]=!0x0,_0x10e2de(()=>{const _0x100e0d=_0x5c471f;this['_collaborationPaused']=!0x1,this[_0x100e0d(0x3d6)]();});}[_0x4792e8(0x347)](_0x3a2451){const _0xd5f294=_0x4792e8;this[_0xd5f294(0x2fb)](_0x3a2451);}[_0x4792e8(0x27b)](_0x12fc4c){const _0x60fdf2=_0x4792e8;this['_state']=_0x12fc4c,this[_0x60fdf2(0x24a)][_0x60fdf2(0x1ff)](_0x12fc4c);}async[_0x4792e8(0x2f0)](){const _0x5a81a1=_0x4792e8;if(this[_0x5a81a1(0x27b)](await this[_0x5a81a1(0x1af)]()),this[_0x5a81a1(0x1eb)]){var _0x8f696c;(_0x8f696c=this[_0x5a81a1(0x1eb)])==null||_0x8f696c[_0x5a81a1(0x1e1)](this[_0x5a81a1(0x24b)]),this[_0x5a81a1(0x18d)](this[_0x5a81a1(0x1eb)][_0x5a81a1(0x148)](this[_0x5a81a1(0x24b)])['subscribe'](_0x445b73=>{const _0x262a80=_0x5a81a1;this[_0x262a80(0x398)][_0x262a80(0x34c)](_0x262a80(0x262),_0x262a80(0x174),_0x445b73),_0x445b73===0x1?(this[_0x262a80(0x1cd)][_0x262a80(0x2d9)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x262a80(0x2e4)](new _0x3f892d(this[_0x262a80(0x24b)])['id'],!0x1),this[_0x262a80(0x373)][_0x262a80(0x301)](!0x1)):(this[_0x262a80(0x373)][_0x262a80(0x2e4)](new _0x3f892d(this[_0x262a80(0x24b)])['id'],!0x0),this[_0x262a80(0x373)][_0x262a80(0x301)](!0x0));}));}let _0x10a62f=!0x1;return this['disposeWithMe'](this[_0x5a81a1(0x1b0)][_0x5a81a1(0x1c2)]['subscribe'](_0x15ddaa=>{const _0x317213=_0x5a81a1;_0x15ddaa===0x3?this[_0x317213(0x2a0)](_0x10a62f):_0x15ddaa===0x2&&(_0x10a62f=!0x0,this[_0x317213(0x390)]());})),this[_0x5a81a1(0x18d)](this['session'][_0x5a81a1(0x32a)][_0x5a81a1(0x31b)](_0x2e94da=>{const _0x1f4904=_0x5a81a1;try{switch(_0x2e94da['eventID']){case _0xfb25b2[_0x1f4904(0x3bd)]:this[_0x1f4904(0x284)](_0x3195f2(_0x2e94da['data']));break;case _0xfb25b2[_0x1f4904(0x1b1)]:this[_0x1f4904(0x2e9)](_0x2e94da[_0x1f4904(0x325)]);break;case _0xfb25b2['CHANGESET_REJ']:this[_0x1f4904(0x323)]();break;case _0xfb25b2['CHANGESET_SHOULD_RETRY']:this[_0x1f4904(0x16c)](_0x2e94da[_0x1f4904(0x325)]);break;case _0xfb25b2[_0x1f4904(0x24d)]:this[_0x1f4904(0x230)](_0x2e94da[_0x1f4904(0x325)][_0x1f4904(0x3b0)][_0x1f4904(0x24f)](_0x4a85fc=>_0x3195f2(_0x4a85fc)));break;case _0xfb25b2[_0x1f4904(0x28c)]:this[_0x1f4904(0x323)]({'isPermissionRej':!0x0});break;case _0xfb25b2[_0x1f4904(0x272)]:break;}}catch(_0xe36bde){throw console[_0x1f4904(0x269)](_0x1f4904(0x362),_0xe36bde),_0xe36bde;}})),this[_0x5a81a1(0x173)];}[_0x4792e8(0x2da)](){this['_transitionLocked']=!0x1;}[_0x4792e8(0x2f4)](){const _0x5edcf6=_0x4792e8;if(this[_0x5edcf6(0x292)])throw Error(_0x5edcf6(0x344));this[_0x5edcf6(0x292)]=!0x0;}[_0x4792e8(0x2fb)](_0x44e7fa){const _0x367278=_0x4792e8;this[_0x367278(0x2f4)](),this[_0x367278(0x27b)](this[_0x367278(0x173)][_0x367278(0x380)](_0x44e7fa)),this[_0x367278(0x2da)]();}[_0x4792e8(0x284)](_0x319a7b){const _0x28173c=_0x4792e8;if(!(_0x319a7b[_0x28173c(0x1d8)]<=this[_0x28173c(0x2a5)][_0x28173c(0x28d)](this[_0x28173c(0x24b)]))){if(this[_0x28173c(0x2f3)]){this['_remoteChangesetQueue'][_0x28173c(0x198)](_0x319a7b);return;}this[_0x28173c(0x3af)](_0x319a7b);}}[_0x4792e8(0x3d6)](){const _0x4578b1=_0x4792e8;this['_remoteChangesetQueue']['forEach'](_0x4ed88e=>this[_0x4578b1(0x3af)](_0x4ed88e)),this[_0x4578b1(0x357)]=[];}[_0x4792e8(0x3af)](_0x318fc4){const _0x59a5f9=_0x4792e8;let _0x37d77a=this[_0x59a5f9(0x250)]['interceptor'][_0x59a5f9(0x20c)](this[_0x59a5f9(0x250)][_0x59a5f9(0x1e5)][_0x59a5f9(0x1dc)]()[_0x59a5f9(0x229)])(_0x318fc4['mutations'],null)||_0x318fc4[_0x59a5f9(0x3a6)],_0x535a28={..._0x318fc4,'mutations':_0x37d77a};this[_0x59a5f9(0x2f4)](),this[_0x59a5f9(0x27b)](this[_0x59a5f9(0x173)][_0x59a5f9(0x31c)](_0x535a28)),this[_0x59a5f9(0x2da)]();}[_0x4792e8(0x2e9)](_0x669029){const _0x24d9b6=_0x4792e8;this[_0x24d9b6(0x2f4)](),this[_0x24d9b6(0x27b)](this[_0x24d9b6(0x173)]['onRemoteAck'](_0x669029)),this[_0x24d9b6(0x2da)]();}[_0x4792e8(0x323)](_0x1a6692){const _0x199b43=_0x4792e8;this[_0x199b43(0x2f4)](),this['_updateState'](this[_0x199b43(0x173)]['onRemoteRej'](_0x1a6692)),this['_unlockTransition']();}['_onRemoteRetry'](_0x257ebb){const _0x55b100=_0x4792e8;this[_0x55b100(0x2f4)](),this[_0x55b100(0x27b)](this[_0x55b100(0x173)][_0x55b100(0x1db)](_0x257ebb)),this[_0x55b100(0x2da)]();}[_0x4792e8(0x230)](_0x300730){const _0x11874c=_0x4792e8;if(!(this[_0x11874c(0x173)]instanceof Q))throw TypeError(_0x11874c(0x2eb));let _0x31857a=_0x300730[_0x11874c(0x24f)](_0xb2923e=>{const _0x38577a=_0x11874c;let _0x16648e=this[_0x38577a(0x250)][_0x38577a(0x1e5)][_0x38577a(0x20c)](this['_compressMutationService'][_0x38577a(0x1e5)][_0x38577a(0x1dc)]()[_0x38577a(0x229)])(_0xb2923e[_0x38577a(0x3a6)],null)||_0xb2923e[_0x38577a(0x3a6)];return{..._0xb2923e,'mutations':_0x16648e};});this[_0x11874c(0x2f4)](),this[_0x11874c(0x27b)](this[_0x11874c(0x173)][_0x11874c(0x259)](_0x31857a)),this[_0x11874c(0x2da)]();}[_0x4792e8(0x390)](){const _0x4d9192=_0x4792e8;this[_0x4d9192(0x2f4)](),this['_updateState'](this['_state']['toggleOffline']()),this['_unlockTransition']();}[_0x4792e8(0x2a0)](_0x2cce13=!0x1){const _0x485f39=_0x4792e8;this[_0x485f39(0x2f4)](),this[_0x485f39(0x27b)](this[_0x485f39(0x173)][_0x485f39(0x38d)]()),this[_0x485f39(0x2da)]();let _0x552af2=this['_state'];_0x2cce13&&_0x552af2 instanceof K&&(this[_0x485f39(0x2f4)](),this[_0x485f39(0x27b)](_0x552af2[_0x485f39(0x37d)]()),this[_0x485f39(0x2da)]());}async['_createInitialState'](){return new Promise(_0x2d4d94=>{const _0x34eb88=_0xf8b7;this['session'][_0x34eb88(0x1c2)][_0x34eb88(0x23f)](_0x2b5e35(0x1))[_0x34eb88(0x31b)](async _0x404cbb=>{const _0x2b3761=_0x34eb88;_0x2d4d94(await this[_0x2b3761(0x32b)](_0x404cbb===0x3));});});}[_0x4792e8(0x24c)](){const _0x4afb68=_0x4792e8;let _0x5de2d4=this[_0x4afb68(0x24b)];return{'onStateChange':(_0x108370,_0x49de0f)=>{const _0x2602d9=_0x4afb68;if(_0x108370!==this[_0x2602d9(0x173)])throw Error(_0x2602d9(0x3ba)+_0x108370['status']+_0x2602d9(0x1d5)+_0x49de0f['status']+_0x2602d9(0x2d4)+this[_0x2602d9(0x173)][_0x2602d9(0x254)]);this[_0x2602d9(0x27b)](_0x49de0f);},'onSendChangeset':_0x13f3e6=>{const _0x24a158=_0x4afb68;_0x13f3e6[_0x24a158(0x18f)]||(_0x13f3e6[_0x24a158(0x18f)]=this[_0x24a158(0x3d3)],_0x13f3e6[_0x24a158(0x14f)]=++this[_0x24a158(0x206)]);let _0x556b0b={'eventID':_0xfb25b2[_0x24a158(0x15f)],'data':{'unitID':_0x13f3e6[_0x24a158(0x24b)],'unitType':this['_type'],'changeset':_0x13f3e6,'memberID':this[_0x24a158(0x1b0)]['getMemberID']()}};this[_0x24a158(0x1b0)][_0x24a158(0x379)](_0x556b0b,this[_0x24a158(0x24b)]);},'onMissingChangesets':({from:_0x4d89bf,to:_0x53a84e})=>{const _0x40663a=_0x4afb68;this[_0x40663a(0x398)][_0x40663a(0x34c)](_0x40663a(0x262),_0x40663a(0x3c1)+_0x4d89bf+_0x40663a(0x2e8)+_0x53a84e);let _0x4f5d50={'eventID':_0xfb25b2[_0x40663a(0x3c2)],'data':{'unitID':_0x5de2d4,'unitType':this[_0x40663a(0x1d0)],'from':_0x4d89bf,'to':_0x53a84e}};this[_0x40663a(0x1b0)][_0x40663a(0x379)](_0x4f5d50,this[_0x40663a(0x24b)]);}};}async[_0x4792e8(0x32b)](_0x4f5959){const _0x688510=_0x4792e8;var _0x1962d6,_0x5af42f,_0xe043e6;let _0x3c84ac=await((_0x1962d6=this[_0x688510(0x33c)])==null?void 0x0:_0x1962d6['loadOfflineData'](this[_0x688510(0x24b)])),_0xd61116=(_0x5af42f=_0x3c84ac==null?void 0x0:_0x3c84ac['mutations'])==null?[]:_0x5af42f,_0x2f8612=(_0xe043e6=_0x3c84ac==null?void 0x0:_0x3c84ac['awaitingChangeset'])==null?null:_0xe043e6,_0x1166eb=!!(_0x2f8612!=null&&_0x2f8612[_0x688510(0x18f)])&&!!(_0x2f8612!=null&&_0x2f8612[_0x688510(0x14f)]);this[_0x688510(0x3d3)]=_0x1166eb?_0x2f8612[_0x688510(0x18f)]:_0x9592e0(),this['_changesetReqId']=_0x1166eb?_0x2f8612[_0x688510(0x14f)]:0x0;let _0x4a7bc1=this['unitID'];try{this[_0x688510(0x35c)](_0x2f8612,_0xd61116);}catch(_0x8de8fe){this[_0x688510(0x398)][_0x688510(0x269)](_0x8de8fe);}let _0x2ae1f7=this[_0x688510(0x24c)]();if(_0x4f5959){let _0x75af17=gn(this['_injector'],_0x4a7bc1,this[_0x688510(0x1d0)],_0x2f8612,_0xd61116,_0x2ae1f7);return _0x75af17 instanceof q?_0x75af17[_0x688510(0x389)]():(_0x75af17 instanceof Y||_0x75af17 instanceof J)&&_0x75af17[_0x688510(0x17a)](),_0x75af17;}return this[_0x688510(0x320)]['createInstance'](Z,_0x4a7bc1,this['_type'],_0x2f8612,_0xd61116,_0x2ae1f7);}['_replayCachedMutations'](_0xbe7954,_0x519ce0){const _0x18f2fc=_0x4792e8;var _0x81a107,_0x388916;let _0x5af6f3=this[_0x18f2fc(0x250)]['interceptor'][_0x18f2fc(0x20c)](this['_compressMutationService'][_0x18f2fc(0x1e5)][_0x18f2fc(0x1dc)]()[_0x18f2fc(0x229)]);(_0x81a107=_0x5af6f3((_0xbe7954==null?void 0x0:_0xbe7954[_0x18f2fc(0x3a6)])||[],null))==null||_0x81a107[_0x18f2fc(0x3e9)](_0x2b3bea=>this[_0x18f2fc(0x1a0)][_0x18f2fc(0x2a3)](_0x2b3bea['id'],_0x2b3bea[_0x18f2fc(0x33b)])),(_0x388916=_0x5af6f3(_0x519ce0||[],null))==null||_0x388916['forEach'](_0x58553e=>this[_0x18f2fc(0x1a0)]['executeCommand'](_0x58553e['id'],_0x58553e[_0x18f2fc(0x33b)]));}};$=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],$);let _n=class extends ${constructor(_0x4142cd,_0x37cb4d,_0x134c81,_0x26a278,_0x1f89d6,_0xb86c28,_0x1a5572,_0x43e781,_0x4eea9a,_0x468cf6,_0x3a2be8,_0x4e8b32,_0x5dae91,_0x20407d,_0x3ef415){const _0x4e0500=_0x4792e8;super(_0x4142cd,_0x134c81,_0x37cb4d,_0x26a278,_0x1f89d6,_0xb86c28,_0x1a5572,_0x43e781,_0x4eea9a,_0x468cf6,_0x3a2be8,_0x4e8b32,_0x20407d,_0x3ef415),this[_0x4e0500(0x24b)]=_0x4142cd,this[_0x4e0500(0x306)]=_0x37cb4d,this[_0x4e0500(0x1b6)]=_0x5dae91,R(this,_0x4e0500(0x377),null);}[_0x4792e8(0x2f1)](_0x4e2b77){this['_handlerCallback']=_0x4e2b77;}[_0x4792e8(0x387)](){const _0x3916ac=_0x4792e8;this[_0x3916ac(0x377)]=null,super[_0x3916ac(0x387)]();}[_0x4792e8(0x24c)](){const _0xb375db=_0x4792e8;let _0xc7b2a5=super[_0xb375db(0x24c)]();return _0xc7b2a5[_0xb375db(0x1e8)]=_0x4f2937=>{const _0x4b6f29=_0xb375db;var _0x5c34dc,_0x419567;return(_0x5c34dc=this[_0x4b6f29(0x377)])==null||(_0x419567=_0x5c34dc[_0x4b6f29(0x1e8)])==null?void 0x0:_0x419567['call'](_0x5c34dc,_0x4f2937);},_0xc7b2a5['onTransformState']=_0x2c6b58=>{const _0x4d7858=_0xb375db;var _0x4b2364,_0x226305;return(_0x4b2364=this[_0x4d7858(0x377)])==null||(_0x226305=_0x4b2364['onTransformState'])==null?void 0x0:_0x226305[_0x4d7858(0x2d0)](_0x4b2364,_0x2c6b58);},_0xc7b2a5[_0xb375db(0x3d7)]=_0x4ce319=>{const _0x1b36a4=_0xb375db;var _0x1e70ee,_0x2d5656;return(_0x1e70ee=this[_0x1b36a4(0x377)])==null||(_0x2d5656=_0x1e70ee[_0x1b36a4(0x3d7)])==null?void 0x0:_0x2d5656[_0x1b36a4(0x2d0)](_0x1e70ee,_0x4ce319);},_0xc7b2a5['onSyncEditingCollabCursor']=_0x276061=>{const _0x72960b=_0xb375db;var _0x14a461,_0x326e76;return(_0x14a461=this[_0x72960b(0x377)])==null||(_0x326e76=_0x14a461['onSyncEditingCollabCursor'])==null?void 0x0:_0x326e76[_0x72960b(0x2d0)](_0x14a461,_0x276061);},_0xc7b2a5[_0xb375db(0x1aa)]=_0x47d413=>{const _0xf11b65=_0xb375db;var _0x3ccf85,_0x212901,_0x3365a6;return(_0x3ccf85=(_0x212901=this[_0xf11b65(0x377)])==null||(_0x3365a6=_0x212901['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3365a6[_0xf11b65(0x2d0)](_0x212901,_0x47d413))==null?_0x47d413:_0x3ccf85;},_0xc7b2a5[_0xb375db(0x2f6)]=_0x542ab0=>{const _0x467d8d=_0xb375db;var _0x25e791,_0xd9f71b,_0x2ab8cf;return(_0x25e791=(_0xd9f71b=this[_0x467d8d(0x377)])==null||(_0x2ab8cf=_0xd9f71b['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x2ab8cf[_0x467d8d(0x2d0)](_0xd9f71b,_0x542ab0))==null?_0x542ab0:_0x25e791;},_0xc7b2a5;}async[_0x4792e8(0x2f0)](){const _0x546831=_0x4792e8;let _0x303e4f=await super[_0x546831(0x2f0)]();return this[_0x546831(0x18d)](this[_0x546831(0x1b6)][_0x546831(0x3e1)]['subscribe'](_0x14f421=>{const _0x1738b3=_0x546831;if(_0x14f421==null||_0x14f421[_0x1738b3(0x326)]!==this[_0x1738b3(0x24b)])return;let {commandId:_0x444790,redoState:_0x2c2961,unitId:_0x38540f}=_0x14f421,_0x295dd3={'id':_0x444790,'type':_0x14cb83[_0x1738b3(0x25e)],'params':{'unitId':_0x38540f,'actions':_0x2c2961[_0x1738b3(0x34d)],'textRanges':null}};this[_0x1738b3(0x2fb)](_0x295dd3);})),this['disposeWithMe'](this['_commandService']['onMutationExecutedForCollab']((_0x5ac2d7,_0x3674a6)=>{const _0xdf0f21=_0x546831;if(_0x5ac2d7['type']!==_0x14cb83[_0xdf0f21(0x25e)]||_0x3674a6!=null&&_0x3674a6[_0xdf0f21(0x3b1)]||_0x3674a6!=null&&_0x3674a6[_0xdf0f21(0x27f)]||_0x5ac2d7['id']===_0x34aba9['id'])return;let _0x577e12=_0x5ac2d7[_0xdf0f21(0x33b)];if((_0x577e12==null?void 0x0:_0x577e12[_0xdf0f21(0x326)])!==this[_0xdf0f21(0x24b)])return;let _0x4dc196=_0x5ac2d7,_0x5c0aec=this[_0xdf0f21(0x250)]['interceptor'][_0xdf0f21(0x20c)](this[_0xdf0f21(0x250)][_0xdf0f21(0x1e5)][_0xdf0f21(0x1dc)]()[_0xdf0f21(0x28e)])([_0x4dc196],this[_0xdf0f21(0x3bf)])||[_0x4dc196];this[_0xdf0f21(0x2fb)](_0x5c0aec[0x0]);})),_0x303e4f;}};_n=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x42bf05(_0x72975f)),B(0xd,_0x480fb8(W)),B(0xe,_0x480fb8(U))],_n);let vn=class extends ${constructor(_0x1d8c6c,_0x4529de,_0x117223,_0x100806,_0x52b784,_0x24089a,_0x599afb,_0x487885,_0x4cae8f,_0x2a9f58,_0x4eefea,_0x426f5c,_0x59f3fd,_0x3529e8){const _0x3b7423=_0x4792e8;super(_0x1d8c6c,_0x117223,_0x4529de,_0x100806,_0x52b784,_0x24089a,_0x599afb,_0x487885,_0x4cae8f,_0x2a9f58,_0x4eefea,_0x426f5c,_0x59f3fd,_0x3529e8),this[_0x3b7423(0x24b)]=_0x1d8c6c,this['type']=_0x4529de;}async[_0x4792e8(0x2f0)](){const _0x141264=_0x4792e8;let _0xfc0637=await super[_0x141264(0x2f0)]();return this[_0x141264(0x18d)](this[_0x141264(0x1a0)]['onMutationExecutedForCollab']((_0x196eae,_0x3a752a)=>{const _0x49eb55=_0x141264;if(_0x196eae[_0x49eb55(0x306)]!==_0x14cb83[_0x49eb55(0x25e)]||_0x3a752a!=null&&_0x3a752a[_0x49eb55(0x3b1)]||_0x3a752a!=null&&_0x3a752a[_0x49eb55(0x27f)])return;let _0x2c0d7a=_0x196eae[_0x49eb55(0x33b)];if((_0x2c0d7a==null?void 0x0:_0x2c0d7a[_0x49eb55(0x326)])!==this[_0x49eb55(0x24b)])return;let _0x20b4c3=_0x196eae,_0x4f4fc0=this[_0x49eb55(0x250)][_0x49eb55(0x1e5)][_0x49eb55(0x20c)](this[_0x49eb55(0x250)][_0x49eb55(0x1e5)]['getInterceptPoints']()[_0x49eb55(0x28e)])([_0x20b4c3],this['_univerInstanceService'])||[_0x20b4c3];this[_0x49eb55(0x2fb)](_0x4f4fc0[0x0]);})),_0xfc0637;}};vn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],vn);let yn=class extends ${constructor(_0x1de262,_0x270fa5,_0x33d5ec,_0x31d4bb,_0x559168,_0x1fd36a,_0xbd6b26,_0x2e7a2b,_0x5882af,_0x55b8e2,_0x33d021,_0x42cff4,_0x110d89,_0x39732f,_0x3c3a75){const _0x2167b4=_0x4792e8;super(_0x1de262,_0x33d5ec,_0x270fa5,_0x31d4bb,_0x559168,_0x1fd36a,_0xbd6b26,_0x5882af,_0x55b8e2,_0x33d021,_0x42cff4,_0x110d89,_0x39732f,_0x3c3a75),this[_0x2167b4(0x24b)]=_0x1de262,this[_0x2167b4(0x306)]=_0x270fa5,this[_0x2167b4(0x233)]=_0x2e7a2b;}[_0x4792e8(0x24c)](){const _0x1826db=_0x4792e8;let _0x3f9237=super[_0x1826db(0x24c)]();return _0x3f9237[_0x1826db(0x3d7)]=_0x5d225a=>this[_0x1826db(0x233)]['transformSelections'](_0x5d225a),_0x3f9237;}async[_0x4792e8(0x2f0)](){const _0x493c3a=_0x4792e8;let _0x24f229=await super[_0x493c3a(0x2f0)]();return this[_0x493c3a(0x18d)](this[_0x493c3a(0x1a0)][_0x493c3a(0x39f)]((_0x597602,_0x550fed)=>{const _0xc097b4=_0x493c3a;if(_0x597602[_0xc097b4(0x306)]!==_0x14cb83[_0xc097b4(0x25e)]||_0x550fed!=null&&_0x550fed[_0xc097b4(0x3b1)]||_0x550fed!=null&&_0x550fed[_0xc097b4(0x27f)])return;let _0x205b8b=_0x597602[_0xc097b4(0x33b)];if((_0x205b8b==null?void 0x0:_0x205b8b['unitId'])!==this[_0xc097b4(0x24b)])return;let _0x442849=_0x597602,_0x2b747d=this[_0xc097b4(0x250)][_0xc097b4(0x1e5)]['fetchThroughInterceptors'](this[_0xc097b4(0x250)][_0xc097b4(0x1e5)]['getInterceptPoints']()[_0xc097b4(0x28e)])([_0x442849],this[_0xc097b4(0x3bf)])||[_0x442849];this[_0xc097b4(0x2fb)](_0x2b747d[0x0]);})),_0x24f229;}};yn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(Gt)),B(0x8,_0x42bf05(z)),B(0x9,_0x3764b1),B(0xa,_0x1dc40d),B(0xb,_0x235ea9),B(0xc,_0x1414dd),B(0xd,_0x480fb8(W)),B(0xe,_0x480fb8(U))],yn);let bn=class extends ${constructor(_0x55e9df,_0x5abdd7,_0x592a6a,_0xa44ab3,_0x40c64e,_0x4abba4,_0x1812a9,_0xe6d149,_0x496a68,_0x1ed6f3,_0x2d9db4,_0x175910,_0x3009c2,_0x351290){const _0x287942=_0x4792e8;super(_0x55e9df,_0x592a6a,_0x5abdd7,_0xa44ab3,_0x40c64e,_0x4abba4,_0x1812a9,_0xe6d149,_0x496a68,_0x1ed6f3,_0x2d9db4,_0x175910,_0x3009c2,_0x351290),this[_0x287942(0x24b)]=_0x55e9df,this['type']=_0x5abdd7;}async[_0x4792e8(0x2f0)](){const _0xb4d756=_0x4792e8;let _0x309a35=await super[_0xb4d756(0x2f0)]();return this['disposeWithMe'](this[_0xb4d756(0x1a0)]['onMutationExecutedForCollab']((_0xd849a,_0x322c20)=>{const _0x270f6d=_0xb4d756;if(_0xd849a['type']!==_0x14cb83['MUTATION']||_0x322c20!=null&&_0x322c20[_0x270f6d(0x3b1)]||_0x322c20!=null&&_0x322c20[_0x270f6d(0x27f)])return;let _0x56cadd=_0xd849a[_0x270f6d(0x33b)];if((_0x56cadd==null?void 0x0:_0x56cadd[_0x270f6d(0x326)])!==this['unitID'])return;let _0x41a517=_0xd849a,_0x133712=this[_0x270f6d(0x250)][_0x270f6d(0x1e5)][_0x270f6d(0x20c)](this[_0x270f6d(0x250)][_0x270f6d(0x1e5)][_0x270f6d(0x1dc)]()[_0x270f6d(0x28e)])([_0x41a517],this[_0x270f6d(0x3bf)])||[_0x41a517];this[_0x270f6d(0x2fb)](_0x133712[0x0]);})),_0x309a35;}};bn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],bn);let xn=class extends ${constructor(_0x3198ab,_0x54c33f,_0x35c77f,_0x207f11,_0x5ed691,_0x687cae,_0x5ba0c4,_0x281bee,_0x2de764,_0x144464,_0x434c27,_0x44dae3,_0x4a168f,_0x45af20){const _0x6c5500=_0x4792e8;super(_0x3198ab,_0x35c77f,_0x54c33f,_0x207f11,_0x5ed691,_0x687cae,_0x5ba0c4,_0x281bee,_0x2de764,_0x144464,_0x434c27,_0x44dae3,_0x4a168f,_0x45af20),this[_0x6c5500(0x24b)]=_0x3198ab,this[_0x6c5500(0x306)]=_0x54c33f;}async[_0x4792e8(0x2f0)](){const _0x5541d7=_0x4792e8;let _0x32e4bc=await super[_0x5541d7(0x2f0)]();return this[_0x5541d7(0x18d)](this[_0x5541d7(0x1a0)][_0x5541d7(0x39f)]((_0x4b9967,_0x57a310)=>{const _0x43a59c=_0x5541d7;if(_0x4b9967[_0x43a59c(0x306)]!==_0x14cb83[_0x43a59c(0x25e)]||_0x57a310!=null&&_0x57a310[_0x43a59c(0x3b1)]||_0x57a310!=null&&_0x57a310[_0x43a59c(0x27f)])return;let _0x570517=_0x4b9967[_0x43a59c(0x33b)];if((_0x570517==null?void 0x0:_0x570517[_0x43a59c(0x326)])!==this[_0x43a59c(0x24b)])return;let _0x45ed64=_0x4b9967,_0x4454c8=this[_0x43a59c(0x250)]['interceptor'][_0x43a59c(0x20c)](this[_0x43a59c(0x250)][_0x43a59c(0x1e5)]['getInterceptPoints']()[_0x43a59c(0x28e)])([_0x45ed64],this['_univerInstanceService'])||[_0x45ed64];this[_0x43a59c(0x2fb)](_0x4454c8[0x0]);})),_0x32e4bc;}};xn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],xn);const Sn=_0x41885f(_0x4792e8(0x164));function Cn(_0x1ec42b){const _0x26a2bf=_0x4792e8;let _0x2fba47=_0x1ec42b['data'],_0x22e03e=JSON[_0x26a2bf(0x3dc)](_0x2fba47);switch(_0x22e03e['cmd']){case _0x1cca16[_0x26a2bf(0x18a)]:case _0x1cca16[_0x26a2bf(0x358)]:{let _0x44d1bb=_0x22e03e[_0x26a2bf(0x3bb)];return{..._0x22e03e,'data':_0x44d1bb,'cmd':_0x22e03e[_0x26a2bf(0x384)]};}case _0x1cca16[_0x26a2bf(0x3e7)]:{let _0x7fae10=_0x22e03e['joinRsp'];return{..._0x22e03e,'data':_0x7fae10,'cmd':_0x22e03e[_0x26a2bf(0x384)]};}case _0x1cca16[_0x26a2bf(0x156)]:{let _0x280187=_0x22e03e[_0x26a2bf(0x25f)];switch(_0x280187[_0x26a2bf(0x383)]){case _0xfb25b2[_0x26a2bf(0x28c)]:var _0x478d0d;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x478d0d=_0x280187[_0x26a2bf(0x21a)])==null?void 0x0:_0x478d0d['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2['CHANGESET_ACK']:var _0x149356;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x149356=_0x280187['csAckEvent'])==null?void 0x0:_0x149356['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x3bd)]:var _0x7ad732;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x7ad732=_0x280187[_0x26a2bf(0x14b)])==null?void 0x0:_0x7ad732['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x2db)]:var _0xda2346;return{..._0x22e03e,'data':{..._0x280187,'data':(_0xda2346=_0x280187['csRejEvent'])==null?void 0x0:_0xda2346['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x217)]:var _0x59f8e3;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x59f8e3=_0x280187[_0x26a2bf(0x2b7)])==null?void 0x0:_0x59f8e3['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2['UPDATE_CURSOR']:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['updateCursorEvent']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x2a7)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x1f6)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x303)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x365)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x147)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['liveShareNewHost']},'cmd':_0x22e03e['cmd']};case _0xfb25b2[_0x26a2bf(0x1fc)]:case _0xfb25b2['LIVESHARE_OPERATION']:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['liveShareOperation']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x235)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['liveShareNewHost']},'cmd':_0x22e03e['cmd']};case _0xfb25b2[_0x26a2bf(0x150)]:return{..._0x22e03e,'data':_0x280187,'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x3a5)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x296)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x35d)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x2f8)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x1c9)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x35b)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x272)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['uniscriptRunEvent']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};default:return _0x22e03e;}}default:return _0x22e03e;}}function wn(_0x22fc5c){const _0x39341a=_0x4792e8;switch(_0x22fc5c[_0x39341a(0x384)]){case _0x1cca16[_0x39341a(0x18a)]:case _0x1cca16['HELLO']:return JSON[_0x39341a(0x32e)]({'cmd':_0x22fc5c[_0x39341a(0x384)],'routeKey':_0x22fc5c[_0x39341a(0x21d)]});case _0x1cca16['INGEST']:{let _0x1f549d;switch(_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x383)]){case _0xfb25b2['UPDATE_CURSOR']:_0x1f549d={'eventID':_0xfb25b2['UPDATE_CURSOR'],'updateCursorEvent':_0x22fc5c['data'][_0x39341a(0x325)]};break;case _0xfb25b2['USERS_LEAVE']:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x303)],'leaveEvent':_0x22fc5c['data']['data']};break;case _0xfb25b2[_0x39341a(0x2a7)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x2a7)],'joinEvent':_0x22fc5c['data'][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x147)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x147)],'liveShareNewHost':_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x2df)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x2df)],'liveShareOperation':_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x235)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x235)],'liveShareTerminate':_0x22fc5c['data'][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x286)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x286)],'liveShareRequestHost':_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x1fc)]:_0x1f549d={'eventID':_0xfb25b2['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x1f549d={'eventID':_0x22fc5c['data'][_0x39341a(0x383)]};}return JSON['stringify']({'cmd':_0x22fc5c['cmd'],'routeKey':_0x22fc5c['routeKey'],'collaMsg':_0x1f549d});}case _0x1cca16[_0x39341a(0x3e7)]:return JSON[_0x39341a(0x32e)]({'cmd':_0x22fc5c['cmd'],'routeKey':_0x22fc5c[_0x39341a(0x21d)],'joinReq':_0x22fc5c[_0x39341a(0x325)]});case _0x1cca16[_0x39341a(0x369)]:return JSON[_0x39341a(0x32e)]({'cmd':_0x22fc5c[_0x39341a(0x384)],'routeKey':_0x22fc5c[_0x39341a(0x21d)],'leaveReq':_0x22fc5c[_0x39341a(0x325)]});default:throw Error(_0x39341a(0x33d));}}const Tn=_0x41885f(_0x4792e8(0x16d));function En(_0x7181a9,_0x4355da,_0x357af2){const _0x5e9580=_0x4792e8;return _0x7181a9+'/'+_0x4355da+_0x5e9580(0x355)+_0x357af2+_0x5e9580(0x31a);}let Dn=class extends _0x52a1e4{constructor(_0x5d0847,_0x4d0273,_0x1bc433,_0x44caab,_0x5d8638){const _0x7a094a=_0x4792e8;super(),this[_0x7a094a(0x320)]=_0x5d0847,this[_0x7a094a(0x1a3)]=_0x4d0273,this[_0x7a094a(0x183)]=_0x1bc433,this[_0x7a094a(0x398)]=_0x44caab,this['_snapshotServerService']=_0x5d8638;}['_doCreateSocket'](_0x60ff61){const _0x114e50=_0x4792e8;let _0x98fb99=this[_0x114e50(0x320)][_0x114e50(0x1b5)](_0x2eb1e7);if(!_0x98fb99)throw Error(_0x114e50(0x252));let _0x583edb=_0x98fb99[_0x114e50(0x3b9)](_0x60ff61);if(!_0x583edb)throw Error(_0x114e50(0x2a4));let _0x4dff7d=new _0x1f0700(),_0x58a3ff=new _0xb9cc50();_0x4dff7d[_0x114e50(0x342)](_0x583edb[_0x114e50(0x3ea)][_0x114e50(0x31b)](_0x29b3d5=>_0x58a3ff[_0x114e50(0x1ff)](_0x29b3d5))),_0x4dff7d[_0x114e50(0x342)](_0x10e2de(()=>_0x58a3ff['complete']()));let _0x28b955=new _0xb9cc50();_0x4dff7d[_0x114e50(0x342)](_0x583edb[_0x114e50(0x2c4)][_0x114e50(0x31b)](_0x15b9fa=>_0x28b955[_0x114e50(0x1ff)](_0x15b9fa))),_0x4dff7d[_0x114e50(0x342)](_0x10e2de(()=>_0x28b955[_0x114e50(0x1bb)]()));let _0xe297b7=new _0xb9cc50();_0x4dff7d[_0x114e50(0x342)](_0x583edb['message$'][_0x114e50(0x31b)](_0xffebc7=>{const _0x3296f2=_0x114e50;let _0x43dfcb=Cn(_0xffebc7);_0xe297b7[_0x3296f2(0x1ff)](_0x43dfcb);})),_0x4dff7d[_0x114e50(0x342)](_0x10e2de(()=>_0xe297b7[_0x114e50(0x1bb)]()));let _0x4a06a1,_0x303c96=()=>{const _0x84eccd=_0x114e50;_0x28b955['next'](new Event(_0x84eccd(0x3a4))),_0x58a3ff[_0x84eccd(0x1ff)](new Event(_0x84eccd(0x3a4))),_0x4a06a1[_0x84eccd(0x30b)]();};return _0x4a06a1={'memberID':'','close$':_0x58a3ff[_0x114e50(0x3c5)](),'error$':_0x28b955['asObservable'](),'open$':_0x583edb[_0x114e50(0x26c)],'message$':_0xe297b7[_0x114e50(0x3c5)](),'send':_0x5009c6=>{const _0x31dc6b=_0x114e50;if(_0x5009c6[_0x31dc6b(0x384)]===_0x1cca16[_0x31dc6b(0x18c)]){if(_0x5009c6[_0x31dc6b(0x325)][_0x31dc6b(0x383)]===_0xfb25b2[_0x31dc6b(0x15f)]){this['_submitChangeset'](_0x4a06a1,_0x5009c6[_0x31dc6b(0x325)])['catch'](_0x2c462b=>{const _0x5f2ca5=_0x31dc6b;this[_0x5f2ca5(0x398)][_0x5f2ca5(0x269)](_0x2c462b),_0x303c96();});return;}if(_0x5009c6[_0x31dc6b(0x325)][_0x31dc6b(0x383)]===_0xfb25b2['FETCH_MISSING']){let _0x322a91=_0x5009c6[_0x31dc6b(0x325)];this[_0x31dc6b(0x26e)](_0x322a91)[_0x31dc6b(0x153)](_0xd3d9ad=>{const _0x12eabd=_0x31dc6b;_0xe297b7['next']({'cmd':_0x1cca16[_0x12eabd(0x156)],'code':_0x5d2c4e['OK'],'routeKey':_0x322a91[_0x12eabd(0x325)][_0x12eabd(0x24b)],'routeType':'','data':{'eventID':_0xfb25b2[_0x12eabd(0x24d)],'data':{'changesets':_0xd3d9ad}}});})[_0x31dc6b(0x36b)](_0x2ca077=>{const _0x2888d2=_0x31dc6b;this[_0x2888d2(0x398)][_0x2888d2(0x269)](_0x2ca077),_0x303c96();});return;}}_0x583edb[_0x31dc6b(0x379)](wn(_0x5009c6));},'close':()=>{const _0x44563d=_0x114e50;_0x583edb[_0x44563d(0x30b)](),_0x4dff7d[_0x44563d(0x387)]();}},_0x4a06a1;}async[_0x4792e8(0x25a)](_0x501852,_0x2baae4){const _0x5624bb=_0x4792e8;var _0x52d5be;let {unitType:_0x4e1a8d,unitID:_0x5884f4,changeset:_0x36b194}=_0x2baae4[_0x5624bb(0x325)],_0x24f928={'unitID':_0x5884f4,'memberID':_0x501852[_0x5624bb(0x2bd)],'type':_0x4e1a8d,'changeset':_0x123852(_0x36b194)},_0x5e81e6=this[_0x5624bb(0x183)][_0x5624bb(0x3c8)](L),_0x2c94d6=En((_0x52d5be=_0x5e81e6==null?void 0x0:_0x5e81e6[_0x5624bb(0x1c4)])==null?_0x5624bb(0x1ae):_0x52d5be,_0x4e1a8d,_0x5884f4);try{await this[_0x5624bb(0x1a3)][_0x5624bb(0x14d)](_0x2c94d6,{'body':_0x24f928});}catch(_0x363e08){throw this['_logService'][_0x5624bb(0x269)](_0x5624bb(0x322),'submit\x20changeset\x20error!'),_0x363e08;}}async[_0x4792e8(0x26e)](_0xae28d4){const _0x325639=_0x4792e8;let {unitID:_0x1ee98b,from:_0x403265,to:_0x53e1dc,unitType:_0x227cc8}=_0xae28d4[_0x325639(0x325)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1ee98b,'type':_0x227cc8,'from':_0x403265,'to':_0x53e1dc}))[_0x325639(0x3b0)]['map'](_0xa5003d=>((_0xa5003d['mutations']===null||_0xa5003d[_0x325639(0x3a6)]===void 0x0)&&(_0xa5003d['mutations']=[]),_0xa5003d));}};Dn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x42bf05(_0x2c95c7)),B(0x2,_0x4d4035),B(0x3,_0x1dc40d),B(0x4,_0x315027)],Dn);const On=_0x41885f('univer-pro.collaboration-client-adapter-service');function kn(_0x4f1eb6={}){const _0xa9e100=_0x4792e8;return _0x4f1eb6[_0xa9e100(0x366)]?{'resolveUnit':_0x4f1eb6[_0xa9e100(0x366)]}:{'resolveUnit':_0x15ac6b=>({'target':{'unitId':_0x15ac6b['unitId'],'unitType':_0x15ac6b['unitType']}})};}function An(_0x2e80b5,_0x2d05b7,_0x429284){const _0x3fad26=_0x4792e8;var _0x5b39cc;let _0x1027a0=_0x429284[_0x3fad26(0x348)]['endpoint'];if(_0x1027a0!=null&&_0x1027a0['trim']()==='')throw Error(_0x3fad26(0x394));if(!_0x429284[_0x3fad26(0x348)]['unitId'])throw Error(_0x3fad26(0x1bd));return{'localUnitId':_0x2e80b5,'unitType':_0x2d05b7,'target':{'endpoint':_0x1027a0,'unitId':_0x429284[_0x3fad26(0x348)][_0x3fad26(0x326)],'unitType':(_0x5b39cc=_0x429284[_0x3fad26(0x348)][_0x3fad26(0x33e)])==null?_0x2d05b7:_0x5b39cc},'changeset':_0x429284[_0x3fad26(0x330)]};}let jn=class extends _0x52a1e4{constructor(_0x373432,_0x3cd341,_0x211447,_0x1ea198,_0x237cce,_0x22a91d,_0x3d7296){const _0x3f5fba=_0x4792e8;super(),this[_0x3f5fba(0x320)]=_0x373432,this[_0x3f5fba(0x398)]=_0x3cd341,this[_0x3f5fba(0x183)]=_0x211447,this['_socketService']=_0x1ea198,this[_0x3f5fba(0x2a2)]=_0x237cce,this[_0x3f5fba(0x381)]=_0x22a91d,this[_0x3f5fba(0x33a)]=_0x3d7296,R(this,_0x3f5fba(0x258),new Map()),R(this,_0x3f5fba(0x21b),new Map()),R(this,_0x3f5fba(0x382),new Map()),R(this,_0x3f5fba(0x207),new Map()),R(this,_0x3f5fba(0x18b),this['_getSocketChannel'](void 0x0)[_0x3f5fba(0x18b)][_0x3f5fba(0x3c5)]()),R(this,_0x3f5fba(0x329),new _0x4093e5(0x0)),R(this,_0x3f5fba(0x192),this[_0x3f5fba(0x329)]['asObservable']()),this['_listenToNetworkCondition']();}[_0x4792e8(0x19d)](){const _0xeb8a8c=_0x4792e8;this[_0xeb8a8c(0x33a)]&&this[_0xeb8a8c(0x18d)](this['_networkConditionService']['online$'][_0xeb8a8c(0x31b)](_0x5083ec=>{const _0x3edb2b=_0xeb8a8c;_0x5083ec&&this[_0x3edb2b(0x37f)](),_0x5083ec||this['_socketChannels'][_0x3edb2b(0x3e9)](_0x5d26c5=>this[_0x3edb2b(0x2d7)](_0x5d26c5));}));}[_0x4792e8(0x387)](){const _0x347635=_0x4792e8;super[_0x347635(0x387)](),this[_0x347635(0x207)][_0x347635(0x3e9)](_0x2bb213=>{const _0x5dd24e=_0x347635;var _0x1a5c48,_0x56a762;(_0x1a5c48=_0x2bb213[_0x5dd24e(0x299)])==null||_0x1a5c48['unsubscribe'](),_0x2bb213[_0x5dd24e(0x299)]=null,this[_0x5dd24e(0x1cb)](_0x2bb213),this[_0x5dd24e(0x356)](_0x2bb213),this[_0x5dd24e(0x1bc)](_0x2bb213),(_0x56a762=_0x2bb213[_0x5dd24e(0x18b)][_0x5dd24e(0x2ed)]())==null||_0x56a762[_0x5dd24e(0x30b)](),_0x2bb213[_0x5dd24e(0x18b)][_0x5dd24e(0x1bb)]();}),this[_0x347635(0x207)]['clear'](),this['_sessions'][_0x347635(0x3e9)](_0x49f98e=>_0x49f98e[_0x347635(0x387)]()),this[_0x347635(0x258)][_0x347635(0x211)](),this['_sessionChannels'][_0x347635(0x211)](),this[_0x347635(0x329)][_0x347635(0x1bb)]();}async[_0x4792e8(0x312)](_0x96164a,_0x15632f){const _0x3fe270=_0x4792e8;if(this[_0x3fe270(0x258)][_0x3fe270(0x287)](_0x96164a))return this['_sessions'][_0x3fe270(0x1b5)](_0x96164a);let _0x2eee16=this[_0x3fe270(0x21b)][_0x3fe270(0x1b5)](_0x96164a);if(_0x2eee16)return _0x2eee16;let _0x4f73eb=this[_0x3fe270(0x23e)](_0x96164a,_0x15632f);this['_pendingSessions'][_0x3fe270(0x2ea)](_0x96164a,_0x4f73eb);try{return await _0x4f73eb;}finally{this[_0x3fe270(0x21b)][_0x3fe270(0x1b9)](_0x96164a);}}async[_0x4792e8(0x23e)](_0x5a87d9,_0x417870){const _0x26776d=_0x4792e8;let _0x4e0954=await this[_0x26776d(0x1f0)](_0x5a87d9,_0x417870),_0x27b1cf=this[_0x26776d(0x1d6)](_0x4e0954[_0x26776d(0x348)][_0x26776d(0x1ce)]);this[_0x26776d(0x372)](_0x27b1cf);let _0x78d451=this[_0x26776d(0x320)]['createInstance'](Ht,_0x4e0954,_0x27b1cf[_0x26776d(0x18b)][_0x26776d(0x3c5)]());return this[_0x26776d(0x258)][_0x26776d(0x2ea)](_0x5a87d9,_0x78d451),this[_0x26776d(0x382)]['set'](_0x5a87d9,_0x27b1cf[_0x26776d(0x1f2)]),_0x78d451;}[_0x4792e8(0x3c4)](_0x4077fa){const _0x70ff5b=_0x4792e8;let _0x58dbb1=this[_0x70ff5b(0x258)]['get'](_0x4077fa),_0x68a490=this[_0x70ff5b(0x382)][_0x70ff5b(0x1b5)](_0x4077fa);if(_0x58dbb1&&(this[_0x70ff5b(0x258)][_0x70ff5b(0x1b9)](_0x4077fa),this[_0x70ff5b(0x382)]['delete'](_0x4077fa),_0x58dbb1[_0x70ff5b(0x30b)]()),_0x68a490&&!this['_hasSessionsForEndpoint'](_0x68a490)){var _0x4f4e64;let _0x1e49b7=this[_0x70ff5b(0x207)][_0x70ff5b(0x1b5)](_0x68a490);_0x1e49b7==null||(_0x4f4e64=_0x1e49b7[_0x70ff5b(0x18b)][_0x70ff5b(0x2ed)]())==null||_0x4f4e64[_0x70ff5b(0x30b)]();}}['reconnect'](){const _0x35c05d=_0x4792e8;(this['_socketChannels'][_0x35c05d(0x214)]?[...this[_0x35c05d(0x207)][_0x35c05d(0x19a)]()]:[this[_0x35c05d(0x1d6)](void 0x0)])[_0x35c05d(0x3e9)](_0x42817d=>{const _0x53117e=_0x35c05d;_0x42817d[_0x53117e(0x278)]=0x0,this['_clearRetryConnectingTimer'](_0x42817d),this[_0x53117e(0x309)](_0x42817d);});}[_0x4792e8(0x1cb)](_0x36db97){const _0x5cbdb3=_0x4792e8;_0x36db97[_0x5cbdb3(0x36e)]!=null&&(clearTimeout(_0x36db97[_0x5cbdb3(0x36e)]),_0x36db97[_0x5cbdb3(0x36e)]=null);}async[_0x4792e8(0x1ac)](_0x44d600){const _0x2994b5=_0x4792e8;var _0x2292e0,_0x577f2b;let _0x577d30=this[_0x2994b5(0x183)][_0x2994b5(0x3c8)](L),_0x51a88c=(_0x2292e0=(_0x577f2b=_0x44d600[_0x2994b5(0x1ce)])==null?_0x577d30==null?void 0x0:_0x577d30[_0x2994b5(0x3c6)]:_0x577f2b)==null?mt:_0x2292e0,_0x13998f=await this['_socketService'][_0x2994b5(0x3b9)](_0x51a88c);return _0x44d600[_0x2994b5(0x1f1)]=_0x13998f,_0x13998f;}async['_tryEnsureSocket'](_0x18fc73){const _0x2b960c=_0x4792e8;try{var _0x39105e,_0x44d119;let _0x1184d2=(_0x39105e=(_0x44d119=_0x18fc73[_0x2b960c(0x18b)][_0x2b960c(0x2ed)]())==null?_0x18fc73[_0x2b960c(0x1f1)]:_0x44d119)==null?await this[_0x2b960c(0x1ac)](_0x18fc73):_0x39105e;if(_0x1184d2){var _0x459fd0;let _0x38fb16=_0x1184d2[_0x2b960c(0x379)];_0x1184d2['send']=_0x247ac7=>(_0x247ac7[_0x2b960c(0x384)]!==_0x1cca16[_0x2b960c(0x369)]&&this['_rescheduleHeartbeat'](_0x18fc73),_0x38fb16[_0x2b960c(0x2fc)](_0x1184d2,[_0x247ac7])),(_0x459fd0=_0x18fc73[_0x2b960c(0x299)])==null||_0x459fd0[_0x2b960c(0x1f8)](),_0x18fc73['socketMessageSubscription']=null,_0x18fc73[_0x2b960c(0x299)]=_0x1184d2[_0x2b960c(0x374)][_0x2b960c(0x31b)](_0x22221c=>this['_onMessage'](_0x18fc73,_0x1184d2,_0x22221c)),_0x1184d2['error$'][_0x2b960c(0x23f)](_0x3e82c0(0x1))[_0x2b960c(0x31b)](_0x47780a=>this[_0x2b960c(0x398)][_0x2b960c(0x269)](_0x2b960c(0x2b3),_0x47780a)),_0x1184d2['open$'][_0x2b960c(0x23f)](_0x3e82c0(0x1))[_0x2b960c(0x31b)](()=>{const _0x461bf2=_0x2b960c;this[_0x461bf2(0x3f1)](_0x18fc73,_0x1184d2);}),_0x1184d2['close$'][_0x2b960c(0x23f)](_0x3e82c0(0x1))[_0x2b960c(0x31b)](_0x5c6332=>{const _0x1f2f9f=_0x2b960c;this[_0x1f2f9f(0x398)]['debug'](_0x1f2f9f(0x364),_0x1f2f9f(0x316),_0x5c6332),this[_0x1f2f9f(0x281)](_0x18fc73);});}}catch(_0x51df20){this[_0x2b960c(0x398)][_0x2b960c(0x269)](_0x51df20),this[_0x2b960c(0x281)](_0x18fc73);}}['_onConnectionOpen'](_0x1d8a0a,_0x1550ec){const _0x4152d8=_0x4792e8;this['_logService'][_0x4152d8(0x34c)](_0x4152d8(0x364),_0x4152d8(0x345)),_0x1550ec[_0x4152d8(0x379)]({'cmd':_0x1cca16[_0x4152d8(0x358)]}),this['_rescheduleHeartbeat'](_0x1d8a0a);}[_0x4792e8(0x2d7)](_0x4220c6){const _0x1630c3=_0x4792e8;_0x4220c6[_0x1630c3(0x177)]=!0x1,_0x4220c6[_0x1630c3(0x1f1)]=null,this[_0x1630c3(0x329)][_0x1630c3(0x1ff)](0x2),_0x4220c6['socket$']['next'](null),this[_0x1630c3(0x356)](_0x4220c6),this[_0x1630c3(0x1bc)](_0x4220c6);}[_0x4792e8(0x281)](_0x5d3a3e){const _0x1c1c93=_0x4792e8;var _0x19e6fd;this[_0x1c1c93(0x2d7)](_0x5d3a3e),this['_hasSessionsForEndpoint'](_0x5d3a3e[_0x1c1c93(0x1f2)])&&(_0x5d3a3e[_0x1c1c93(0x278)]<((_0x19e6fd=this[_0x1c1c93(0x183)][_0x1c1c93(0x3c8)](_0x1c1c93(0x360)))==null?0x3:_0x19e6fd)?(this[_0x1c1c93(0x2a2)][_0x1c1c93(0x2d9)]({'id':_0x1c1c93(0x2e0)}),this[_0x1c1c93(0x309)](_0x5d3a3e)):this['_collaborationUIEventService']['emitEvent']({'id':_0x1c1c93(0x3a1)}));}[_0x4792e8(0x309)](_0x523641){const _0xbf9b86=_0x4792e8;var _0x4ff7cd;let _0xbb99a8=_0x523641['retryCount'],_0x26d899=this[_0xbf9b86(0x183)]['getConfig'](L),_0x40f94a=_0xbb99a8===0x0?0x0:((_0x4ff7cd=_0x26d899==null?void 0x0:_0x26d899[_0xbf9b86(0x3dd)])==null?0x4e20:_0x4ff7cd)*0x2**_0xbb99a8;_0x523641[_0xbf9b86(0x36e)]=setTimeout(()=>{const _0x475df6=_0xbf9b86;clearTimeout(_0x523641[_0x475df6(0x36e)]),_0x523641[_0x475df6(0x36e)]=null,this[_0x475df6(0x372)](_0x523641);},_0x40f94a),_0x523641[_0xbf9b86(0x278)]+=0x1;}async[_0x4792e8(0x1f0)](_0x2f0ac5,_0x33fbea){return An(_0x2f0ac5,_0x33fbea,await this['_adapter']['resolveUnit']({'unitId':_0x2f0ac5,'unitType':_0x33fbea}));}[_0x4792e8(0x1fe)](_0xcf946d,_0x20c5ac,_0x47fde8){const _0x5205db=_0x4792e8;let {cmd:_0x44951e}=_0x47fde8;_0x44951e===_0x1cca16[_0x5205db(0x358)]&&!_0xcf946d[_0x5205db(0x177)]&&(_0x20c5ac[_0x5205db(0x2bd)]=_0x47fde8[_0x5205db(0x325)][_0x5205db(0x2bd)],_0xcf946d[_0x5205db(0x18b)][_0x5205db(0x1ff)](_0x20c5ac),this[_0x5205db(0x329)]['next'](0x3),_0xcf946d[_0x5205db(0x177)]=!0x0,_0xcf946d[_0x5205db(0x1f1)]=null),_0x44951e===_0x1cca16[_0x5205db(0x18a)]&&this[_0x5205db(0x356)](_0xcf946d),this[_0x5205db(0x280)](_0xcf946d);}[_0x4792e8(0x162)](_0x15449a){const _0x117bcf=_0x4792e8;return[...this[_0x117bcf(0x382)][_0x117bcf(0x19a)]()][_0x117bcf(0x2fe)](_0x34827a=>_0x34827a===_0x15449a);}[_0x4792e8(0x1d6)](_0x576c30){const _0x3c4ef1=_0x4792e8;let _0x81e507=_0x576c30==null?'':_0x576c30,_0x529ce6=this[_0x3c4ef1(0x207)][_0x3c4ef1(0x1b5)](_0x81e507);if(_0x529ce6)return _0x529ce6;let _0x2a3979={'endpointKey':_0x81e507,'endpoint':_0x576c30,'socket$':new _0x4093e5(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x3c4ef1(0x2ea)](_0x81e507,_0x2a3979),_0x2a3979;}[_0x4792e8(0x280)](_0x24caf3){const _0x305c3f=_0x4792e8;var _0x59998d;this['_clearHeartbeatTimer'](_0x24caf3),_0x24caf3[_0x305c3f(0x311)]=setTimeout(()=>this[_0x305c3f(0x239)](_0x24caf3),(_0x59998d=this[_0x305c3f(0x183)][_0x305c3f(0x3c8)](_0x305c3f(0x189)))==null?0x7530:_0x59998d);}['_sendHeartbeat'](_0x15ff21){const _0x51e568=_0x4792e8;_0x15ff21[_0x51e568(0x18b)][_0x51e568(0x2ed)]()[_0x51e568(0x379)]({'cmd':_0x1cca16[_0x51e568(0x18a)]}),this[_0x51e568(0x2ae)](_0x15ff21);}[_0x4792e8(0x2ae)](_0x286c2a){const _0x5d607b=_0x4792e8;var _0x517ecf;_0x286c2a[_0x5d607b(0x34a)]=setTimeout(()=>this['_onConnectionFailed'](_0x286c2a),(_0x517ecf=this['_configService'][_0x5d607b(0x3c8)](_0x5d607b(0x257)))==null?vt:_0x517ecf);}[_0x4792e8(0x1bc)](_0x20270d){const _0x1c6751=_0x4792e8;_0x20270d[_0x1c6751(0x311)]!=null&&(clearTimeout(_0x20270d[_0x1c6751(0x311)]),_0x20270d[_0x1c6751(0x311)]=null);}[_0x4792e8(0x356)](_0x2b8ab4){const _0x138b4a=_0x4792e8;_0x2b8ab4[_0x138b4a(0x34a)]!=null&&(clearTimeout(_0x2b8ab4[_0x138b4a(0x34a)]),_0x2b8ab4['timeoutTimer']=null);}};jn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x1dc40d),B(0x2,_0x4d4035),B(0x3,Tn),B(0x4,_0x42bf05(z)),B(0x5,On),B(0x6,_0x480fb8(Sn))],jn);let Mn=class extends _0x3b463b{constructor(_0x1c1949,_0x30fedb,_0x5b1526,_0x28fc45){const _0x11261a=_0x4792e8;var _0x421129;super(),this[_0x11261a(0x320)]=_0x1c1949,this[_0x11261a(0x1e4)]=_0x30fedb,this['_configService']=_0x5b1526,this['_univerInstanceService']=_0x28fc45,R(this,'_entities',new Map()),R(this,_0x11261a(0x2f5),new _0xb9cc50()),R(this,_0x11261a(0x1c5),this[_0x11261a(0x2f5)]['asObservable']()),((_0x421129=this['_configService']['getConfig'](_0x11261a(0x20b)))==null?void 0x0:_0x421129[_0x11261a(0x38e)])!==!0x1&&this[_0x11261a(0x2f0)]();}[_0x4792e8(0x387)](){const _0x793c87=_0x4792e8;super[_0x793c87(0x387)](),this['_entities'][_0x793c87(0x3e9)](_0x2bc498=>_0x2bc498[_0x793c87(0x387)]()),this[_0x793c87(0x385)][_0x793c87(0x211)]();}['getCollabEntity'](_0x481049){const _0x1ee130=_0x4792e8;var _0x1fd311;return(_0x1fd311=this['_entities'][_0x1ee130(0x1b5)](_0x481049))==null?null:_0x1fd311;}[_0x4792e8(0x194)](_0x46c276){const _0x294b39=_0x4792e8;let _0x4aae89=this[_0x294b39(0x15d)](_0x46c276);return _0x4aae89?_0x41b901(_0x4aae89):this[_0x294b39(0x2f5)]['pipe'](_0x410a39(_0x1f2a0d=>_0x1f2a0d['unitID']===_0x46c276));}[_0x4792e8(0x199)](_0xabf723){const _0x1abdcb=_0x4792e8;return _0x41dbe7(this[_0x1abdcb(0x194)](_0xabf723)[_0x1abdcb(0x23f)](_0x2c8ebc(()=>void 0x0)));}[_0x4792e8(0x2f0)](){const _0x13bedc=_0x4792e8;this[_0x13bedc(0x3bf)]['getTypeOfUnitAdded$'](_0x481a99[_0x13bedc(0x3f0)])['pipe'](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))['subscribe'](async _0xb37d11=>{const _0x59d3f5=_0x13bedc;let _0x3973f5=_0xb37d11[_0x59d3f5(0x2f7)][_0x59d3f5(0x256)](),_0x4ead4c=await this['_startCollaboration'](_0x3973f5,_0x481a99[_0x59d3f5(0x3f0)]);this[_0x59d3f5(0x385)]['set'](_0x3973f5,_0x4ead4c);}),this['_univerInstanceService'][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x1d2)])['pipe'](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))['pipe'](_0x410a39(_0x1b5225=>!_0x1b5225[_0x13bedc(0x2f7)][_0x13bedc(0x256)]()[_0x13bedc(0x28f)]('__')))[_0x13bedc(0x31b)](async _0x155ed7=>{const _0xd3d03b=_0x13bedc;let _0x117374=_0x155ed7[_0xd3d03b(0x2f7)]['getUnitId'](),_0x3d36a2=await this['_startCollaboration'](_0x117374,_0x481a99['UNIVER_DOC']);this[_0xd3d03b(0x385)][_0xd3d03b(0x2ea)](_0x117374,_0x3d36a2);}),this['_univerInstanceService'][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x1a9)])[_0x13bedc(0x23f)](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))[_0x13bedc(0x31b)](async _0x2ada35=>{const _0x1da6df=_0x13bedc;let _0x1e9140=_0x2ada35[_0x1da6df(0x2f7)][_0x1da6df(0x256)](),_0x1aef8f=await this[_0x1da6df(0x237)](_0x1e9140,_0x481a99[_0x1da6df(0x1a9)]);this[_0x1da6df(0x385)][_0x1da6df(0x2ea)](_0x1e9140,_0x1aef8f);}),this[_0x13bedc(0x3bf)][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x1cf)])['pipe'](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))[_0x13bedc(0x31b)](async _0x3ece17=>{const _0x4491fa=_0x13bedc;let _0x335cfc=_0x3ece17[_0x4491fa(0x2f7)][_0x4491fa(0x256)](),_0x5dda3a=await this[_0x4491fa(0x237)](_0x335cfc,_0x481a99[_0x4491fa(0x1cf)]);this[_0x4491fa(0x385)][_0x4491fa(0x2ea)](_0x335cfc,_0x5dda3a);}),this[_0x13bedc(0x3bf)][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x2c6)])[_0x13bedc(0x23f)](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))[_0x13bedc(0x31b)](async _0x3b1841=>{const _0x504737=_0x13bedc;let _0x10e870=_0x3b1841[_0x504737(0x2f7)][_0x504737(0x256)](),_0x2c0c8a=await this['_startCollaboration'](_0x10e870,_0x481a99[_0x504737(0x2c6)]);this[_0x504737(0x385)][_0x504737(0x2ea)](_0x10e870,_0x2c0c8a);}),_0x20d630(this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x3f0)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x1d2)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x1a9)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x1cf)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x2c6)]))[_0x13bedc(0x23f)](_0x516751(this[_0x13bedc(0x26f)]))[_0x13bedc(0x31b)](_0x196909=>{const _0x3f401b=_0x13bedc;let _0x560fd8=_0x196909[_0x3f401b(0x256)](),_0x1c1dcd=this[_0x3f401b(0x385)][_0x3f401b(0x1b5)](_0x560fd8);_0x1c1dcd&&(_0x1c1dcd[_0x3f401b(0x387)](),this[_0x3f401b(0x385)][_0x3f401b(0x1b9)](_0x560fd8));});}async[_0x4792e8(0x237)](_0x513165,_0x5e851d){const _0x375837=_0x4792e8;let _0x4301a6=await this[_0x375837(0x1e4)]['requireSession'](_0x513165),_0x29a1f7=this[_0x375837(0x320)]['createInstance'](this[_0x375837(0x15c)](_0x5e851d),_0x513165,_0x5e851d,_0x4301a6);return await _0x29a1f7[_0x375837(0x350)](),this[_0x375837(0x2f5)][_0x375837(0x1ff)](_0x29a1f7),_0x29a1f7;}[_0x4792e8(0x15c)](_0x1f133a){const _0x3df579=_0x4792e8;switch(_0x1f133a){case _0x481a99[_0x3df579(0x1d2)]:return _n;case _0x481a99[_0x3df579(0x3f0)]:return yn;case _0x481a99[_0x3df579(0x1a9)]:return bn;case _0x481a99['UNIVER_BOARD']:return xn;case _0x481a99[_0x3df579(0x2c6)]:return vn;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x1f133a);}}};Mn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x42bf05(jn)),B(0x2,_0x4d4035),B(0x3,_0x3764b1)],Mn);var Nn=_0x4792e8(0x232),Pn=_0x4792e8(0x1e0);let Fn=class extends _0x52a1e4{constructor(_0x46d8c7,_0x3f57b0){const _0x11e647=_0x4792e8;super(),this['_univerInstanceService']=_0x46d8c7,this[_0x11e647(0x183)]=_0x3f57b0,this[_0x11e647(0x2f0)]();}[_0x4792e8(0x2f0)](){const _0x234b10=_0x4792e8;this[_0x234b10(0x18d)](this[_0x234b10(0x3bf)][_0x234b10(0x197)][_0x234b10(0x31b)](()=>{const _0x5a2578=_0x234b10;var _0x526b34;let _0x317b10=this[_0x5a2578(0x3bf)][_0x5a2578(0x2d8)](),_0x2fbd15=(_0x526b34=this[_0x5a2578(0x183)]['getConfig'](_0x5a2578(0x22e)))==null?_0x5a2578(0x23b):_0x526b34;_0x317b10 instanceof _0x4b553a&&(_0x2fbd15=_0x317b10[_0x5a2578(0x38a)]),document[_0x5a2578(0x2e7)]=_0x2fbd15;}));}};Fn=V([B(0x0,_0x3764b1),B(0x1,_0x4d4035)],Fn);let In=function(_0x46097c){const _0x29b5e3=_0x4792e8;return _0x46097c[_0x29b5e3(0x318)]=_0x29b5e3(0x318),_0x46097c[_0x29b5e3(0x30a)]=_0x29b5e3(0x30a),_0x46097c[_0x29b5e3(0x2b6)]=_0x29b5e3(0x2b6),_0x46097c;}({});const Ln=_0x41885f(_0x4792e8(0x35f));let Rn=class{constructor(_0x1d52d2,_0xccf8c1,_0x211601){const _0x2db5b3=_0x4792e8;this[_0x2db5b3(0x1a3)]=_0x1d52d2,this[_0x2db5b3(0x183)]=_0xccf8c1,this[_0x2db5b3(0x3bf)]=_0x211601;}[_0x4792e8(0x324)](){const _0x3ae117=_0x4792e8;var _0x93d7d5;return(_0x93d7d5=this[_0x3ae117(0x3d9)]()[_0x3ae117(0x263)])==null?{}:_0x93d7d5;}async['saveAttachment'](_0x3354ba){const _0x1bfe0e=_0x4792e8;let _0x156c7f=this[_0x1bfe0e(0x324)]();if(zn(_0x3354ba,_0x156c7f),_0x156c7f[_0x1bfe0e(0x2b9)])return _0x156c7f['upload'](_0x3354ba);let _0x2ff2f8=await this[_0x1bfe0e(0x38f)](_0x3354ba);return{'id':_0x2ff2f8,'name':_0x3354ba[_0x1bfe0e(0x38a)],'mimeType':_0x3354ba['type'],'size':_0x3354ba[_0x1bfe0e(0x214)],'sourceType':_0x1bfe0e(0x30a),'source':_0x2ff2f8};}async[_0x4792e8(0x38f)](_0x36c8a1){const _0x34a806=_0x4792e8;let _0x31d804=this[_0x34a806(0x3bf)][_0x34a806(0x2d8)](),_0x31db10=_0x31d804==null?void 0x0:_0x31d804[_0x34a806(0x256)]();if(!_0x31db10)throw Error(_0x34a806(0x3d2));let _0x123271=new FormData();_0x123271[_0x34a806(0x255)](_0x34a806(0x2d3),_0x36c8a1);let _0x4a29af=this[_0x34a806(0x23c)]()+'?size='+_0x36c8a1[_0x34a806(0x214)]['toString']()+'&source='+_0x2d4c14[_0x34a806(0x30c)]+_0x34a806(0x248)+encodeURIComponent(_0x31db10),_0x5520e7=(await this['_httpService'][_0x34a806(0x14d)](_0x4a29af,{'body':_0x123271}))['body'][_0x34a806(0x1f7)];if(typeof _0x5520e7!=_0x34a806(0x201)||!_0x5520e7)throw Error(_0x34a806(0x220));return _0x5520e7;}[_0x4792e8(0x23c)](){const _0x3d7994=_0x4792e8;var _0xa52c58;return(_0xa52c58=this[_0x3d7994(0x3d9)]()[_0x3d7994(0x27d)])==null?'/universer-api/stream/file/upload':_0xa52c58;}[_0x4792e8(0x3d9)](){const _0x3fd49d=_0x4792e8;var _0x552761;return(_0x552761=this[_0x3fd49d(0x183)]['getConfig'](_0x3fd49d(0x20b)))==null?{}:_0x552761;}};Rn=V([B(0x0,_0x42bf05(_0x2c95c7)),B(0x1,_0x42bf05(_0x4d4035)),B(0x2,_0x42bf05(_0x3764b1))],Rn);function zn(_0x3b771f,_0x57a3a4){const _0x196bc2=_0x4792e8;var _0x9dc660;if(_0x57a3a4[_0x196bc2(0x182)]!=null&&_0x3b771f[_0x196bc2(0x214)]>_0x57a3a4['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x9dc660=_0x57a3a4[_0x196bc2(0x1a4)])!=null&&_0x9dc660[_0x196bc2(0x277)]&&!_0x57a3a4[_0x196bc2(0x1a4)]['some'](_0x2058ab=>_0x3b771f['type']===_0x2058ab||_0x3b771f[_0x196bc2(0x38a)][_0x196bc2(0x339)](_0x2058ab)||_0x2058ab[_0x196bc2(0x339)]('/*')&&_0x3b771f[_0x196bc2(0x306)][_0x196bc2(0x28f)](_0x2058ab[_0x196bc2(0x276)](0x0,-0x1))))throw Error(_0x196bc2(0x3ec));}let Bn=class{constructor(_0x48fc75,_0x5e9387,_0x4b4b54){const _0x525945=_0x4792e8;this[_0x525945(0x183)]=_0x48fc75,this[_0x525945(0x1a3)]=_0x5e9387,this['localeService']=_0x4b4b54,this[_0x525945(0x350)]();}[_0x4792e8(0x350)](){const _0x595b74=_0x4792e8;this['_httpService'][_0x595b74(0x37e)]({'priority':0x1,'interceptor':(_0x3851ee,_0xd82ed6)=>_0xd82ed6(_0x3851ee)['pipe'](_0x42118f(async _0x42c895=>{const _0x1ea595=_0x595b74;let _0x41f102=_0x42c895;if(_0x41f102[_0x1ea595(0x254)]===0x191){if(typeof window>'u')throw Error(_0x1ea595(0x2fd));if(window[_0x1ea595(0x1d9)](this[_0x1ea595(0x2a6)]['t'](_0x1ea595(0x1b2)))){let _0x5f1599=window[_0x1ea595(0x2ca)](window['location']['href']);window[_0x1ea595(0x247)][_0x1ea595(0x341)]=this[_0x1ea595(0x2cb)]()+'?url='+_0x5f1599;}}return _0x41f102;}))});}[_0x4792e8(0x2cb)](){const _0x1263a6=_0x4792e8;var _0x299217;let _0x3243d4=this[_0x1263a6(0x183)]['getConfig'](L);return(_0x299217=_0x3243d4==null?void 0x0:_0x3243d4[_0x1263a6(0x3a7)])==null?_0x1263a6(0x200):_0x299217;}};Bn=V([B(0x0,_0x4d4035),B(0x1,_0x42bf05(_0x2c95c7)),B(0x2,_0x42bf05(_0x5ce553))],Bn);let Vn=class extends _0x52a1e4{constructor(_0x6f8e65,_0x287944){const _0x2b3322=_0x4792e8;super(),this[_0x2b3322(0x39c)]=_0x6f8e65,this[_0x2b3322(0x183)]=_0x287944,R(this,_0x2b3322(0x2c7),!0x1),this['_initMergeInterceptor']();}[_0x4792e8(0x2ac)](){const _0x24a82c=_0x4792e8;let _0x32916d=this;this[_0x24a82c(0x18d)](this[_0x24a82c(0x39c)][_0x24a82c(0x37e)]({'priority':0x3e7,'interceptor':_0x26d2f3({'isMatch'(_0x30d667){const _0x52e843=_0x24a82c;var _0x5ce1d7;if(_0x30d667[_0x52e843(0x363)]===_0x52e843(0x361)&&(_0x5ce1d7=_0x30d667[_0x52e843(0x3be)])!=null&&_0x5ce1d7['body']){let {objectID:_0x5e48c9,objectType:_0x21824c}=_0x30d667[_0x52e843(0x3be)][_0x52e843(0x3ad)]||{};if(!_0x5e48c9||_0x21824c===void 0x0)return!0x1;let _0x31e5b6=_0x32916d[_0x52e843(0x25b)]()+'/'+_0x21824c+_0x52e843(0x1a8)+_0x5e48c9+_0x52e843(0x39a);if(_0x30d667[_0x52e843(0x34b)]===_0x31e5b6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x23e564){const _0x287392=_0x24a82c;var _0x345fb8;return(_0x345fb8=_0x23e564[_0x287392(0x3be)])==null?void 0x0:_0x345fb8[_0x287392(0x3ad)];},'mergeParamsToRequest'(_0x58cea8,_0x4c47a5){const _0x4df2e2=_0x24a82c;let _0x39d721=_0x32916d[_0x4df2e2(0x25b)]()+_0x4df2e2(0x2ab),_0x4be79f=_0x58cea8['reduce']((_0x49a4fe,_0x3c0579)=>{const _0x5c5c27=_0x4df2e2;let {unitID:_0x3abe49,objectID:_0x43338e,objectType:_0x677471,actions:_0xf4d515}=_0x3c0579;return _0x49a4fe[_0x3abe49]||(_0x49a4fe[_0x3abe49]={}),_0x49a4fe[_0x3abe49][_0x43338e]||(_0x49a4fe[_0x3abe49][_0x43338e]={'objectID':_0x43338e,'objectType':_0x677471,'actions':[]}),_0x49a4fe[_0x3abe49][_0x43338e][_0x5c5c27(0x34d)]['push'](..._0xf4d515),_0x49a4fe;},{}),_0x4e5651=[];for(let _0x5cce90 in _0x4be79f)for(let _0x52220e in _0x4be79f[_0x5cce90]){let {actions:_0x5ece9f,objectType:_0x3fd313}=_0x4be79f[_0x5cce90][_0x52220e],_0x73c329=[...new Set(_0x5ece9f)];_0x4e5651[_0x4df2e2(0x198)]({'unitID':_0x5cce90,'objectID':_0x52220e,'objectType':_0x3fd313,'actions':_0x73c329});}return new _0x25e740(_0x4df2e2(0x361),_0x39d721,{'headers':_0x4c47a5['headers'],'withCredentials':_0x4c47a5[_0x4df2e2(0x378)],'responseType':_0x4c47a5['responseType'],'body':{'requests':_0x4e5651}});}},{'distributeResult'(_0x169880,_0x209e3e){const _0x1c3de9=_0x24a82c;let {objectActions:_0x228c6e}=_0x169880;return _0x209e3e[_0x1c3de9(0x24f)](_0x185638=>{const _0x43baf6=_0x1c3de9;let {unitID:_0x50d4c7,objectID:_0x3e4839,actions:_0x609096}=_0x185638,_0x3e541d=_0x228c6e[_0x43baf6(0x1d1)](_0x2b4383=>_0x2b4383[_0x43baf6(0x24b)]===_0x50d4c7&&_0x2b4383[_0x43baf6(0x243)]===_0x3e4839);return{'config':_0x185638,'result':{'actions':_0x609096[_0x43baf6(0x24f)](_0x270bfa=>_0x3e541d==null?void 0x0:_0x3e541d[_0x43baf6(0x34d)][_0x43baf6(0x1d1)](_0xf43e56=>_0xf43e56[_0x43baf6(0x2cd)]===_0x270bfa))[_0x43baf6(0x2dd)](_0x586a40=>!!_0x586a40),'error':_0x169880[_0x43baf6(0x269)]}};});}})}));}[_0x4792e8(0x25b)](){const _0x59c2a7=_0x4792e8;var _0x4b32ad;let _0xd01335=this[_0x59c2a7(0x183)][_0x59c2a7(0x3c8)](L);return(_0x4b32ad=_0xd01335==null?void 0x0:_0xd01335['authzUrl'])==null?_0x59c2a7(0x3b2):_0x4b32ad;}async[_0x4792e8(0x367)](_0xc4ec32){const _0x1c3e27=_0x4792e8;let _0x36ae13=this[_0x1c3e27(0x25b)]()+'/'+_0xc4ec32[_0x1c3e27(0x151)]+'/object';return(await this[_0x1c3e27(0x39c)][_0x1c3e27(0x14d)](_0x36ae13,{'body':_0xc4ec32}))[_0x1c3e27(0x3ad)][_0x1c3e27(0x243)]||'';}async[_0x4792e8(0x1e3)](_0x5be76b){const _0x2bfc1a=_0x4792e8;let _0x104b2a=this[_0x2bfc1a(0x25b)]()+'/-/object/list';return(await this[_0x2bfc1a(0x39c)][_0x2bfc1a(0x14d)](_0x104b2a,{'body':_0x5be76b}))[_0x2bfc1a(0x3ad)]['objects'];}async[_0x4792e8(0x3b4)](_0x1608ed){const _0x428a57=_0x4792e8;var _0x4cefae;let _0x4b4b91=this['_getAPIPrefixPath']()+'/'+_0x1608ed[_0x428a57(0x151)]+_0x428a57(0x1a8)+_0x1608ed['objectID'],_0x34d195=await this[_0x428a57(0x39c)][_0x428a57(0x2a9)](_0x4b4b91,{'body':_0x1608ed});if((_0x34d195==null||(_0x4cefae=_0x34d195[_0x428a57(0x3ad)])==null||(_0x4cefae=_0x4cefae[_0x428a57(0x269)])==null?void 0x0:_0x4cefae[_0x428a57(0x26b)])!==0x1)throw Error(_0x428a57(0x1c3));}async['allowed'](_0x1360ab){const _0x3873c7=_0x4792e8;let _0x4da5cf=this[_0x3873c7(0x25b)]()+'/'+_0x1360ab[_0x3873c7(0x151)]+_0x3873c7(0x1a8)+_0x1360ab[_0x3873c7(0x243)]+_0x3873c7(0x39a);return(await this[_0x3873c7(0x39c)][_0x3873c7(0x14d)](_0x4da5cf,{'body':_0x1360ab}))['body']['actions'];}async[_0x4792e8(0x3d8)](_0x3f9ddd){const _0x468cdb=_0x4792e8;let _0x66d398=this[_0x468cdb(0x25b)]()+_0x468cdb(0x2ab);return(await this['_HTTPService']['post'](_0x66d398,{'body':{'requests':_0x3f9ddd}}))['body'][_0x468cdb(0x1c7)];}async[_0x4792e8(0x154)](_0x22a06d){const _0x2c9851=_0x4792e8;let _0x59adac=this[_0x2c9851(0x25b)]()+'/'+_0x22a06d['objectType']+_0x2c9851(0x3d1),_0x215cfc=await this[_0x2c9851(0x39c)][_0x2c9851(0x14d)](_0x59adac,{'body':_0x22a06d});return{'roles':_0x215cfc[_0x2c9851(0x3ad)]['roles'],'actions':_0x215cfc[_0x2c9851(0x3ad)][_0x2c9851(0x34d)]};}async[_0x4792e8(0x17f)](_0x30c21d){const _0xedcfb0=_0x4792e8;let _0x5aea31=this['_getAPIPrefixPath']()+_0xedcfb0(0x187);await this['_HTTPService'][_0xedcfb0(0x1b9)](_0x5aea31,{'params':{'collaboratorID':_0x30c21d[_0xedcfb0(0x22f)],'objectID':_0x30c21d[_0xedcfb0(0x243)],'unitID':_0x30c21d[_0xedcfb0(0x24b)]}});}async[_0x4792e8(0x3cd)](_0x3bcfd5){const _0x4a4d1e=_0x4792e8;let _0x76d225=this[_0x4a4d1e(0x25b)]()+'/collaborator';await this[_0x4a4d1e(0x39c)][_0x4a4d1e(0x310)](_0x76d225,{'body':_0x3bcfd5});}async[_0x4792e8(0x1f9)](_0x57cd48){const _0x11cc18=_0x4792e8;let _0x3be312=this[_0x11cc18(0x25b)]()+_0x11cc18(0x187);await this[_0x11cc18(0x39c)]['post'](_0x3be312,{'body':_0x57cd48});}async[_0x4792e8(0x37a)](_0x5266ee){const _0x48334e=_0x4792e8;var _0x16fbad;let _0x2447a0=this[_0x48334e(0x25b)]()+_0x48334e(0x187),_0x3268a7=await this[_0x48334e(0x39c)][_0x48334e(0x1b5)](_0x2447a0,{'params':{'objectID':_0x5266ee[_0x48334e(0x243)],'unitID':_0x5266ee['unitID']}});return this['setCfgEnableObjInherit']((_0x16fbad=_0x3268a7['body']['cfgEnableObjInherit'])==null?!0x1:_0x16fbad),_0x3268a7[_0x48334e(0x3ad)][_0x48334e(0x328)];}async[_0x4792e8(0x251)](_0x2e2fcf){const _0x388f60=_0x4792e8;let _0x48eaf0=this[_0x388f60(0x25b)]()+'/collaborator';await this['_HTTPService'][_0x388f60(0x2a9)](_0x48eaf0,{'body':_0x2e2fcf});}['setCfgEnableObjInherit'](_0xaae929){const _0x434331=_0x4792e8;this[_0x434331(0x2c7)]=_0xaae929;}[_0x4792e8(0x22c)](){return this['_cfgEnableObjInherit'];}};Vn=V([B(0x0,_0x42bf05(_0x2c95c7)),B(0x1,_0x42bf05(_0x4d4035))],Vn);function Hn(_0x4e376d){const _0x208127=_0x4792e8;let _0x2d3a6a=atob(_0x4e376d),_0x417c7f=new Uint8Array(_0x2d3a6a[_0x208127(0x277)]);for(let _0x30181a=0x0;_0x30181a<_0x2d3a6a[_0x208127(0x277)];_0x30181a++)_0x417c7f[_0x30181a]=_0x2d3a6a[_0x208127(0x3ef)](_0x30181a);return _0x417c7f;}function Un(_0x2708be){const _0x53652c=_0x4792e8;let _0x18d587='';for(let _0x35b461=0x0;_0x35b461<_0x2708be[_0x53652c(0x277)];_0x35b461++)_0x18d587+=String['fromCharCode'](_0x2708be[_0x35b461]);return btoa(_0x18d587);}function Wn(_0x2bb590,_0x128c2d){const _0x14efa3=_0x4792e8;let _0x26fe4b=Hn(_0x128c2d),_0x1d32a5=_0x19fc48(0x10);return Un(_0x21e7b9(_0x1d32a5,_0x102cd1(_0x26fe4b,_0x1d32a5)[_0x14efa3(0x1c0)](_0x4b34d5(_0x2bb590))));}function Gn(){const _0x2e4e00=_0x4792e8;let _0x3a338f=_0x43c59b()[_0x2e4e00(0x3ab)];if(typeof window<'u'&&window[_0x2e4e00(0x247)]!==void 0x0&&_0x3a338f){let _0x493920={'time':Math[_0x2e4e00(0x343)](Date['now']()/0x3e8),'domain':location[_0x2e4e00(0x169)]};return Wn(JSON['stringify'](_0x493920),_0x3a338f);}}let Kn=class{constructor(_0x566e1a){const _0x304d50=_0x4792e8;this[_0x304d50(0x1a3)]=_0x566e1a,this[_0x304d50(0x2b1)]();}[_0x4792e8(0x2b1)](){const _0x40ba2c=_0x4792e8;this[_0x40ba2c(0x1a3)]['registerHTTPInterceptor']({'interceptor':(_0x2f5b92,_0x4ae0c9)=>{const _0x281f6f=_0x40ba2c;let _0x4b6406=Gn();return _0x4b6406&&_0x2f5b92[_0x281f6f(0x3d0)][_0x281f6f(0x2ea)](_0x281f6f(0x1d7),_0x4b6406),_0x4ae0c9(_0x2f5b92);}});}};Kn=V([B(0x0,_0x42bf05(_0x2c95c7))],Kn);let qn=class extends _0x3b463b{constructor(_0x1506af,_0x49ae8d,_0x3af984){const _0x140b04=_0x4792e8;super(),this[_0x140b04(0x398)]=_0x1506af,this['_snapshotService']=_0x49ae8d,this[_0x140b04(0x33c)]=_0x3af984,R(this,'_unitInfo$',new _0x4093e5(null)),R(this,_0x140b04(0x240),new _0xb9cc50()),R(this,_0x140b04(0x319),this[_0x140b04(0x16f)][_0x140b04(0x3c5)]()),R(this,_0x140b04(0x396),this['_unitLoaded$'][_0x140b04(0x3c5)]());}[_0x4792e8(0x387)](){const _0x3c2230=_0x4792e8;super[_0x3c2230(0x387)](),this[_0x3c2230(0x240)][_0x3c2230(0x1bb)](),this[_0x3c2230(0x16f)][_0x3c2230(0x1bb)]();}async[_0x4792e8(0x244)](_0x592d06,_0x2d7c15,_0x553850,_0x443c34){const _0x493d96=_0x4792e8;this[_0x493d96(0x16f)][_0x493d96(0x1ff)]({'unitId':_0x592d06,'type':_0x2d7c15,'subUnitId':_0x443c34});let _0x6956fc=null;switch(_0x2d7c15){case _0x481a99[_0x493d96(0x3f0)]:_0x6956fc=await this['_snapshotService'][_0x493d96(0x1a6)](_0x592d06,_0x553850,void 0x0,{'initialSubUnitId':_0x443c34});break;case _0x481a99[_0x493d96(0x1d2)]:_0x6956fc=await this[_0x493d96(0x210)][_0x493d96(0x2de)](_0x592d06,_0x553850);break;case _0x481a99[_0x493d96(0x1a9)]:_0x6956fc=await this[_0x493d96(0x210)][_0x493d96(0x1a5)](_0x592d06,_0x553850);break;case _0x481a99[_0x493d96(0x1cf)]:_0x6956fc=await this[_0x493d96(0x210)][_0x493d96(0x297)](_0x592d06,_0x553850);break;case _0x481a99['UNIVER_BASE']:_0x6956fc=await this[_0x493d96(0x210)]['loadBase'](_0x592d06,_0x553850);break;default:this[_0x493d96(0x398)][_0x493d96(0x269)](_0x493d96(0x354),_0x493d96(0x346));break;}return _0x6956fc&&this[_0x493d96(0x240)]['next'](_0x6956fc),_0x6956fc;}async[_0x4792e8(0x2bc)](_0xa89400,_0x4c93f9,_0x3ed15c){const _0x4eb0e9=_0x4792e8;var _0x2e0576;this[_0x4eb0e9(0x16f)][_0x4eb0e9(0x1ff)]({'unitId':_0xa89400,'type':_0x4c93f9,'subUnitId':_0x3ed15c});let _0x5bd7d9=0x0,_0x1616d0=await((_0x2e0576=this['_localCacheService'])==null?void 0x0:_0x2e0576['loadOfflineData'](_0xa89400));return _0x1616d0&&(_0x1616d0[_0x4eb0e9(0x2c5)]||_0x1616d0[_0x4eb0e9(0x3a6)]['length']!==0x0)&&(_0x5bd7d9=_0x1616d0[_0x4eb0e9(0x23a)]),_0x5bd7d9===0x0&&this[_0x4eb0e9(0x398)][_0x4eb0e9(0x34c)](_0x4eb0e9(0x354),_0x4eb0e9(0x1bf)),this['loadUnitOfRevision'](_0xa89400,_0x4c93f9,_0x5bd7d9,_0x3ed15c);}};qn=V([B(0x0,_0x1dc40d),B(0x1,_0x42bf05(_0x2eec7d)),B(0x2,_0x480fb8(U))],qn);let Jn=class{constructor(_0x2798c0,_0x112f3e,_0x2bcf4c){const _0x59603f=_0x4792e8;this['_httpService']=_0x2798c0,this['_configService']=_0x112f3e,this[_0x59603f(0x3bf)]=_0x2bcf4c,R(this,_0x59603f(0x338),0x0),R(this,_0x59603f(0x340),new _0xb9cc50()),R(this,'change$',this[_0x59603f(0x340)]),R(this,'_imageSourceCache',new Map());}[_0x4792e8(0x3b8)](_0x4106de){const _0x4a488=_0x4792e8;this[_0x4a488(0x338)]=_0x4106de,this['_change$'][_0x4a488(0x1ff)](_0x4106de);}[_0x4792e8(0x1e2)](_0x319a25,_0x5aa5be){const _0x3c97dc=_0x4792e8;if(_0x5aa5be===_0xb6904b['BASE64']){let _0x3e7a11=new Image();return _0x3e7a11['src']=_0x319a25,_0x3e7a11;}return this[_0x3c97dc(0x1b8)][_0x3c97dc(0x1b5)](_0x319a25);}[_0x4792e8(0x392)](_0x24a3f3,_0x19e4eb,_0x524344){_0x19e4eb===_0xb6904b['BASE64']||_0x524344==null||this['_imageSourceCache']['set'](_0x24a3f3,_0x524344);}async[_0x4792e8(0x168)](_0x2e2b0a){const _0x519dd3=_0x4792e8;try{let _0x4e1dc0=this[_0x519dd3(0x39e)](this[_0x519dd3(0x35e)](),''+_0x2e2b0a),_0x5cd52a=(await this[_0x519dd3(0x1a3)][_0x519dd3(0x1b5)](_0x4e1dc0))['body'];if(_0x5cd52a[_0x519dd3(0x269)]&&_0x5cd52a[_0x519dd3(0x269)][_0x519dd3(0x26b)]===_0x36be5a['OK']){let _0xc60f05=_0x349c2d(_0x5cd52a[_0x519dd3(0x34b)],this[_0x519dd3(0x375)]());return Promise['resolve'](_0xc60f05);}return Promise[_0x519dd3(0x238)](_0x5cd52a[_0x519dd3(0x269)]);}catch(_0x1855e8){return Promise[_0x519dd3(0x238)](_0x1855e8);}}async[_0x4792e8(0x17e)](_0x3eb257){const _0x3c39b4=_0x4792e8;let _0x21f087='';if(!_0x46b851[_0x3c39b4(0x1ad)](_0x3eb257[_0x3c39b4(0x306)]))return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214[_0x3c39b4(0x3cc)]));if(_0x3eb257[_0x3c39b4(0x214)]>_0x474fba())return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214['ERROR_EXCEED_SIZE']));try{let _0x5d4efc=new FormData();_0x5d4efc[_0x3c39b4(0x255)](_0x3c39b4(0x2d3),_0x3eb257);let _0x152854=this['_univerInstanceService'][_0x3c39b4(0x2d8)](),_0x597176=_0x152854==null?void 0x0:_0x152854[_0x3c39b4(0x256)]();if(!_0x597176)throw Error(_0x3c39b4(0x3e8));let _0xc51809=this[_0x3c39b4(0x23c)]()+_0x3c39b4(0x2fa)+_0x3eb257[_0x3c39b4(0x214)][_0x3c39b4(0x2c0)]()+'&source='+_0x2d4c14[_0x3c39b4(0x30c)]+_0x3c39b4(0x248)+encodeURIComponent(_0x597176),_0x1838ea={'body':_0x5d4efc},_0x23de50=(await this[_0x3c39b4(0x1a3)][_0x3c39b4(0x14d)](_0xc51809,_0x1838ea))[_0x3c39b4(0x3ad)];if(typeof _0x23de50[_0x3c39b4(0x1f7)]!=_0x3c39b4(0x201))return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214[_0x3c39b4(0x215)]));_0x21f087=_0x23de50[_0x3c39b4(0x1f7)];}catch{return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214[_0x3c39b4(0x215)]));}return new Promise((_0xafbfa4,_0x211945)=>{const _0x25f76a=_0x3c39b4;let _0x479856=new FileReader();_0x479856[_0x25f76a(0x39b)](_0x3eb257),_0x479856['onload']=_0x17c710=>{const _0x3dec82=_0x25f76a;var _0x38e62f;let _0x20da1c=(_0x38e62f=_0x17c710[_0x3dec82(0x348)])==null?void 0x0:_0x38e62f['result'];if(_0x20da1c==null){this[_0x3dec82(0x246)](),_0x211945(Error(_0x169214['ERROR_IMAGE']));return;}_0xafbfa4({'imageId':_0x4b55d3(0x6),'imageSourceType':_0xb6904b[_0x3dec82(0x30a)],'source':_0x21f087,'base64Cache':_0x20da1c,'status':_0x169214[_0x3dec82(0x2ec)]}),this[_0x3dec82(0x246)]();};});}['_getUploadFileURL'](){const _0x1bf56f=_0x4792e8;var _0x4d1b34;let _0x2277b3=this[_0x1bf56f(0x183)][_0x1bf56f(0x3c8)](L);return(_0x4d1b34=_0x2277b3==null?void 0x0:_0x2277b3['uploadFileServerUrl'])==null?_0x1bf56f(0x2dc):_0x4d1b34;}['_getSignURL'](){const _0x11a1e3=_0x4792e8;var _0x114aae;let _0x20e35c=this[_0x11a1e3(0x183)][_0x11a1e3(0x3c8)](L);return(_0x114aae=_0x20e35c==null?void 0x0:_0x20e35c[_0x11a1e3(0x2ef)])==null?_0x11a1e3(0x160):_0x114aae;}[_0x4792e8(0x375)](){const _0x469062=_0x4792e8;var _0x290ff9;let _0x4b241b=this[_0x469062(0x183)][_0x469062(0x3c8)](L);return(_0x290ff9=_0x4b241b==null?void 0x0:_0x4b241b['downloadEndpointUrl'])==null?location[_0x469062(0x163)]:_0x290ff9;}['_replaceFileID'](_0x2a1081,_0x48dd3b){const _0x1847b6=_0x4792e8;return _0x2a1081[_0x1847b6(0x3b7)](_0x1847b6(0x294),_0x48dd3b);}['_decreaseWaiting'](){const _0x53cf22=_0x4792e8;--this[_0x53cf22(0x338)],this[_0x53cf22(0x340)]['next'](this[_0x53cf22(0x338)]);}};Jn=V([B(0x0,_0x42bf05(_0x2c95c7)),B(0x1,_0x4d4035),B(0x2,_0x42bf05(_0x3764b1))],Jn);let Yn=class{constructor(_0x471e4e,_0x3e5f34){const _0x2e50b5=_0x4792e8;this[_0x2e50b5(0x183)]=_0x471e4e,this[_0x2e50b5(0x39c)]=_0x3e5f34;}[_0x4792e8(0x25b)](){const _0x2f6c5e=_0x4792e8;var _0x51a142;let _0xf59b50=this['_configService'][_0x2f6c5e(0x3c8)](L);return(_0x51a142=_0xf59b50==null?void 0x0:_0xf59b50[_0x2f6c5e(0x16b)])==null?'/universer-api/authz':_0x51a142;}async['list'](_0x54760d){const _0x1db5b6=_0x4792e8;let _0xb3a059=this[_0x1db5b6(0x25b)]()+'/collaborator';return{'list':[{'title':'People','mentions':(await this[_0x1db5b6(0x39c)][_0x1db5b6(0x1b5)](_0xb3a059,{'params':{'objectID':_0x54760d[_0x1db5b6(0x326)],'unitID':_0x54760d[_0x1db5b6(0x326)]}}))[_0x1db5b6(0x3ad)][_0x1db5b6(0x328)][_0x1db5b6(0x24f)](_0x1be136=>({'objectId':_0x1be136['id'],'name':_0x1be136[_0x1db5b6(0x261)][_0x1db5b6(0x38a)],'metadata':{'icon':_0x1be136[_0x1db5b6(0x261)][_0x1db5b6(0x3cb)]},'label':_0x1be136[_0x1db5b6(0x261)][_0x1db5b6(0x38a)],'objectType':_0x487dc0[_0x1db5b6(0x2d2)]})),'metadata':{},'type':_0x487dc0[_0x1db5b6(0x2d2)]}]};}};Yn=V([B(0x0,_0x42bf05(_0x4d4035)),B(0x1,_0x42bf05(_0x2c95c7))],Yn);let Xn=class extends _0x3b463b{constructor(_0x369312,_0x961933,_0x2dcc29,_0x392550,_0x203a2f){const _0xa9d56a=_0x4792e8;super(),this['_injector']=_0x369312,this[_0xa9d56a(0x3bf)]=_0x961933,this[_0xa9d56a(0x373)]=_0x2dcc29,this[_0xa9d56a(0x242)]=_0x392550,this[_0xa9d56a(0x2a2)]=_0x203a2f,this[_0xa9d56a(0x2be)](),this[_0xa9d56a(0x302)]();}[_0x4792e8(0x302)](){const _0x3b8e7e=_0x4792e8;let _0x59e9ed=async _0x3d3832=>{const _0x5e7d8a=_0xf8b7;(await this[_0x5e7d8a(0x242)][_0x5e7d8a(0x312)](_0x3d3832))[_0x5e7d8a(0x32a)][_0x5e7d8a(0x23f)](_0x410a39(_0x24c91f=>_0x24c91f[_0x5e7d8a(0x383)]===_0xfb25b2[_0x5e7d8a(0x1c9)]),_0x539673(this[_0x5e7d8a(0x26f)]))[_0x5e7d8a(0x31b)](_0xf3180f=>{const _0x212ac9=_0x5e7d8a;let {reason:_0x2fde3e}=_0xf3180f[_0x212ac9(0x325)];this[_0x212ac9(0x2a2)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x2fde3e}),this[_0x212ac9(0x373)][_0x212ac9(0x2e4)](new _0x3f892d(_0x3d3832)['id'],!0x1),this[_0x212ac9(0x242)]['closeSession'](_0x3d3832);});};_0x20d630(this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99['UNIVER_SHEET']),this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99[_0x3b8e7e(0x1d2)]),this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99['UNIVER_BOARD']),this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99[_0x3b8e7e(0x2c6)]))[_0x3b8e7e(0x23f)](_0x2c8ebc(_0x559e27=>_0x559e27['unit']['getUnitId']()),_0x410a39(_0x547963=>!_0x382c36(_0x547963)),_0x539673(this[_0x3b8e7e(0x26f)]))['subscribe'](_0x3147ec=>{_0x59e9ed(_0x3147ec);});}[_0x4792e8(0x2be)](){const _0x8ac91e=_0x4792e8;let _0x2a9e8f=async _0x432b52=>{const _0x42b56c=_0xf8b7;let _0x3b6d6e=await this[_0x42b56c(0x242)][_0x42b56c(0x312)](_0x432b52),_0x3666be=this[_0x42b56c(0x320)][_0x42b56c(0x1b5)](_0x31e0ee);_0x3b6d6e['event$']['pipe'](_0x410a39(_0x46b64b=>_0x46b64b[_0x42b56c(0x383)]===_0xfb25b2[_0x42b56c(0x35d)]),_0x539673(this[_0x42b56c(0x26f)]))[_0x42b56c(0x31b)](_0x4535db=>{const _0x538f48=_0x42b56c;let {objectId:_0x2dc7fd}=_0x4535db[_0x538f48(0x325)];_0x2dc7fd===_0x432b52?_0x3666be[_0x538f48(0x1f4)](_0x432b52):_0x3666be[_0x538f48(0x27c)](_0x432b52,_0x2dc7fd);});};_0x20d630(this[_0x8ac91e(0x3bf)][_0x8ac91e(0x376)](_0x481a99[_0x8ac91e(0x3f0)]))[_0x8ac91e(0x23f)](_0x2c8ebc(_0x63df7f=>_0x63df7f[_0x8ac91e(0x2f7)]['getUnitId']()),_0x410a39(_0x36527e=>!_0x382c36(_0x36527e)),_0x539673(this['dispose$']))['subscribe'](_0x243088=>{_0x2a9e8f(_0x243088);});}};Xn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x3764b1),B(0x2,_0x1414dd),B(0x3,_0x42bf05(jn)),B(0x4,_0x42bf05(z))],Xn);let Zn=class{constructor(_0x821fb0,_0x2877a7){const _0x132565=_0x4792e8;this[_0x132565(0x183)]=_0x821fb0,this[_0x132565(0x1a3)]=_0x2877a7;}async[_0x4792e8(0x19e)](_0x2d2298,_0x116d03){const _0x1df380=_0x4792e8;var _0x294c46;let {unitID:_0x4ef73c,type:_0x469a80,revision:_0x3a5deb=0x0}=_0x116d03,_0x59ac02=this[_0x1df380(0x36c)]()+'/'+_0x469a80+_0x1df380(0x355)+_0x4ef73c+_0x1df380(0x2af)+_0x3a5deb,_0x1aec5c=(await this[_0x1df380(0x1a3)][_0x1df380(0x1b5)](_0x59ac02))[_0x1df380(0x3ad)],_0x527228=(_0x294c46=_0x1aec5c[_0x1df380(0x349)])==null?void 0x0:_0x294c46[_0x1df380(0x1ca)];if(_0x527228){let _0x11694f=_0x527228==null?void 0x0:_0x527228[_0x1df380(0x205)];_0x527228['originalMeta']=_0x36757f['encode'](_0x886276(_0x11694f)),Object[_0x1df380(0x393)](_0x527228[_0x1df380(0x331)])[_0x1df380(0x3e9)](([,_0xeab129])=>{const _0x49f7d7=_0x1df380;let _0x33a93c=_0xeab129[_0x49f7d7(0x205)];_0xeab129[_0x49f7d7(0x205)]=_0x36757f[_0x49f7d7(0x335)](_0x886276(_0x33a93c));});}return _0x1aec5c;}async[_0x4792e8(0x155)](_0x5470c2,_0x57481a){const _0xee7065=_0x4792e8;let {unitID:_0x5a55ac,type:_0x3c6a0e,blockID:_0xe907ba}=_0x57481a,_0x31c435=this[_0xee7065(0x190)]()+'/'+_0x3c6a0e+_0xee7065(0x355)+_0x5a55ac+_0xee7065(0x20a)+_0xe907ba;return(await this[_0xee7065(0x1a3)][_0xee7065(0x1b5)](_0x31c435))['body'];}async[_0x4792e8(0x2d5)](_0x13a197,_0x21fb1a){const _0x61bcf8=_0x4792e8;let {unitID:_0x343d92,type:_0x21e1c0,blockID:_0x3c4134}=_0x21fb1a,_0x3b1366=this[_0x61bcf8(0x190)]()+_0x61bcf8(0x20a)+_0x21e1c0+_0x61bcf8(0x355)+_0x343d92+_0x61bcf8(0x20a)+_0x3c4134;return(await this['_httpService']['get'](_0x3b1366))[_0x61bcf8(0x3ad)];}async['fetchMissingChangesets'](_0x34c3d0,_0x3878fd){const _0x363f52=_0x4792e8;let {unitID:_0x3f5946,type:_0x3632ea,from:_0x170687,to:_0x3a6f80}=_0x3878fd,_0x2a25ae=this[_0x363f52(0x190)]()+'/'+_0x3632ea+_0x363f52(0x355)+_0x3f5946+_0x363f52(0x270)+_0x170687+_0x363f52(0x33f)+_0x3a6f80;return(await this[_0x363f52(0x1a3)]['get'](_0x2a25ae))[_0x363f52(0x3ad)];}[_0x4792e8(0x36c)](){const _0x5dcf88=_0x4792e8;var _0x5004fa;return(_0x5004fa=this[_0x5dcf88(0x183)][_0x5dcf88(0x3c8)](_0x5dcf88(0x386)))==null?this['_getAPIPrefix']():_0x5004fa;}[_0x4792e8(0x190)](){const _0x3e2443=_0x4792e8;var _0x364629;let _0x44bbdf=this[_0x3e2443(0x183)][_0x3e2443(0x3c8)](L);return(_0x364629=_0x44bbdf==null?void 0x0:_0x44bbdf[_0x3e2443(0x3cf)])==null?_0x3e2443(0x264):_0x364629;}async[_0x4792e8(0x3c9)](_0x68f1e8,_0x186cf3){const _0x28e704=_0x4792e8;let _0x3f2aef=_0x28e704(0x152)+_0x186cf3['type']+_0x28e704(0x355)+_0x186cf3['unitID']+'/resources';return(await this[_0x28e704(0x1a3)]['get'](_0x3f2aef,{'params':{'resourceId':JSON['stringify'](_0x186cf3[_0x28e704(0x3a3)])}}))[_0x28e704(0x3ad)];}[_0x4792e8(0x146)](){const _0x4b97fa=_0x4792e8;throw Error(_0x4b97fa(0x29b));}[_0x4792e8(0x34e)](){const _0x2346c8=_0x4792e8;throw Error(_0x2346c8(0x29b));}[_0x4792e8(0x165)](){const _0x388e72=_0x4792e8;throw Error(_0x388e72(0x29b));}[_0x4792e8(0x279)](){const _0x5d9174=_0x4792e8;throw Error(_0x5d9174(0x29b));}['copyFileMeta'](){const _0x3c3ec4=_0x4792e8;throw Error(_0x3c3ec4(0x29b));}[_0x4792e8(0x228)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Zn=V([B(0x0,_0x4d4035),B(0x1,_0x42bf05(_0x2c95c7))],Zn);let Qn=class extends _0x4d3d2a{constructor(_0x342a1d,_0x34a65f,_0x52aa25,_0x226839,_0x735afa){const _0x35d757=_0x4792e8;super(_0x342a1d,_0x34a65f,_0x52aa25),this['_transformService']=_0x226839,this[_0x35d757(0x398)]=_0x735afa;}[_0x4792e8(0x271)](_0x8312f6,_0x4fa317){const _0x5a1a85=_0x4792e8;let _0x255af6=this[_0x5a1a85(0x22d)](_0x8312f6);if(_0x255af6)try{let _0x56020d=this['_transformStack'](_0x255af6,_0x4fa317);this[_0x5a1a85(0x336)](_0x8312f6,_0x56020d);}catch(_0x201cce){this[_0x5a1a85(0x398)]['error'](_0x5a1a85(0x21f),_0x201cce),this[_0x5a1a85(0x2e5)](_0x8312f6);}let _0x2feeac=this[_0x5a1a85(0x2b0)](_0x8312f6);if(_0x2feeac)try{let _0x43fb8e=this[_0x5a1a85(0x2ce)](_0x2feeac,_0x4fa317);this['_substituteRedoStack'](_0x8312f6,_0x43fb8e);}catch(_0x39bf53){this[_0x5a1a85(0x398)][_0x5a1a85(0x269)](_0x39bf53),this[_0x5a1a85(0x397)](_0x8312f6);}}['_clearUndo'](_0x3d3055){const _0x458da3=_0x4792e8;let _0x490eac=this[_0x458da3(0x22d)](_0x3d3055);_0x490eac&&(_0x490eac[_0x458da3(0x277)]=0x0,this[_0x458da3(0x30d)]());}[_0x4792e8(0x397)](_0x2452d5){const _0x4ccf57=_0x4792e8;let _0x2727e4=this[_0x4ccf57(0x2b0)](_0x2452d5);_0x2727e4&&(_0x2727e4[_0x4ccf57(0x277)]=0x0,this[_0x4ccf57(0x30d)]());}[_0x4792e8(0x336)](_0x2eb0c7,_0x5472a5){const _0x103cbe=_0x4792e8;this[_0x103cbe(0x29e)][_0x103cbe(0x2ea)](_0x2eb0c7,_0x5472a5),this[_0x103cbe(0x30d)]();}[_0x4792e8(0x29d)](_0x5a946e,_0x1144f4){const _0x5cd065=_0x4792e8;this['_redoStacks'][_0x5cd065(0x2ea)](_0x5a946e,_0x1144f4),this[_0x5cd065(0x30d)]();}[_0x4792e8(0x2ce)](_0x4c74e6,_0x11290d){const _0x4236c4=_0x4792e8;let _0x500e27=[],_0x12b72e=_0x11290d,_0x5e375e=_0x11290d;for(let _0x51ea0e=_0x4c74e6[_0x4236c4(0x277)]-0x1;_0x51ea0e>=0x0;_0x51ea0e--){let {unitID:_0x1aa9fa,undoMutations:_0x47f247,redoMutations:_0x1a2fe2}=_0x4c74e6[_0x51ea0e],_0x2de8cc=this['_transformService'][_0x4236c4(0x2e6)](_0x12b72e,_0x47f247),_0x68dc19=this[_0x4236c4(0x1dd)]['transformMutationsWithChangeset'](_0x5e375e,_0x1a2fe2);if(_0x1bf146(_0x2de8cc)||_0x1bf146(_0x68dc19)){this['_logService'][_0x4236c4(0x269)]('[CollaborationUndoRedoService]',_0x4236c4(0x27a),_0x2de8cc,_0x68dc19);break;}_0x12b72e=_0x2de8cc[_0x4236c4(0x290)],_0x5e375e=_0x68dc19[_0x4236c4(0x290)],_0x500e27['push']({'unitID':_0x1aa9fa,'undoMutations':_0x2de8cc[_0x4236c4(0x157)],'redoMutations':_0x68dc19[_0x4236c4(0x157)]});}return _0x500e27['reverse']();}};Qn=V([B(0x0,_0x3764b1),B(0x1,_0x235ea9),B(0x2,_0x1c35be),B(0x3,_0x44c79e),B(0x4,_0x1dc40d)],Qn);let $n=class extends _0xa02fe0{constructor(_0x592ea4=pt,_0x53998e,_0x89af9f,_0x1f5a8f){const _0x25121e=_0x4792e8;super(),this[_0x25121e(0x26a)]=_0x592ea4,this['_logService']=_0x53998e,this[_0x25121e(0x320)]=_0x89af9f,this[_0x25121e(0x183)]=_0x1f5a8f;let {..._0x45e05d}=_0x418281({},pt,this[_0x25121e(0x26a)]);if(!_0x45e05d[_0x25121e(0x245)])throw Error(_0x25121e(0x16e));this['_config']=_0x45e05d,this[_0x25121e(0x183)][_0x25121e(0x2d6)](L,_0x45e05d);}['onStarting'](){const _0x1c2329=_0x4792e8;this[_0x1c2329(0x193)](),this[_0x1c2329(0x20f)]();}[_0x4792e8(0x193)](){const _0xf33440=_0x4792e8;var _0x303324,_0xad2da4;this[_0xf33440(0x320)][_0xf33440(0x287)](_0x22a7f2)&&this[_0xf33440(0x398)][_0xf33440(0x269)](_0xf33440(0x37b),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3fd140=_0x36f659([[_0x22a7f2,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0xf33440(0x26a)][_0xf33440(0x245)]}],[_0x315027,{'useClass':Zn}],[_0x2562e0,{'useClass':Vn}],[_0x34b67b,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x33d114,{'useClass':Yn}],[Mn],[Fn]],(_0x303324=this[_0xf33440(0x26a)])==null?void 0x0:_0x303324[_0xf33440(0x226)]);if(!((_0xad2da4=this['_config'])!=null&&_0xad2da4[_0xf33440(0x371)])){let _0x5764a4=_0x3fd140[_0xf33440(0x267)](([_0x20e46e])=>_0x20e46e===W);_0x5764a4!==-0x1&&_0x3fd140[_0xf33440(0x3ee)](_0x5764a4,0x1);}_0x2785b8(this[_0xf33440(0x320)],_0x3fd140);}[_0x4792e8(0x20f)](){const _0x1d0f75=_0x4792e8;var _0x2ff9df,_0x5c644c;if(this[_0x1d0f75(0x320)][_0x1d0f75(0x1b5)](_0x2c95c7)[_0x1d0f75(0x37e)]({'priority':0x14,'interceptor':_0x3ff293({'maxParallel':0x6})}),!((_0x2ff9df=this[_0x1d0f75(0x26a)])!=null&&_0x2ff9df['enableOfflineEditing'])){var _0xbab255;(_0xbab255=this[_0x1d0f75(0x320)][_0x1d0f75(0x1b5)](U,_0x49f328[_0x1d0f75(0x3c0)]))==null||_0xbab255[_0x1d0f75(0x3eb)]();}(_0x5c644c=this[_0x1d0f75(0x26a)])!=null&&_0x5c644c['enableAuthServer']&&_0x5842f0(this[_0x1d0f75(0x320)],[[Bn]]),_0x5842f0(this[_0x1d0f75(0x320)],[[Kn],[Mn],[Xn]]);}};R($n,_0x4792e8(0x1ed),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),R($n,_0x4792e8(0x2c3),Nn),R($n,'version',Pn),$n=V([_0x393cb5(_0x3fdc72,_0x158f84,_0x2f0791),B(0x1,_0x1dc40d),B(0x2,_0x42bf05(_0x303c70)),B(0x3,_0x4d4035)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};