@univerjs-pro/collaboration-client 1.0.0-beta.1 → 1.0.0-beta.2

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 +16 -16
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1f5521=_0x2b9e;(function(_0x2d550b,_0x7ed453){const _0x18992e=_0x2b9e,_0x1a9ca9=_0x2d550b();while(!![]){try{const _0x246aff=-parseInt(_0x18992e(0x35e))/0x1*(parseInt(_0x18992e(0x20b))/0x2)+parseInt(_0x18992e(0x1a2))/0x3+parseInt(_0x18992e(0x378))/0x4+parseInt(_0x18992e(0x291))/0x5+-parseInt(_0x18992e(0x27f))/0x6*(-parseInt(_0x18992e(0x332))/0x7)+-parseInt(_0x18992e(0x3b8))/0x8+parseInt(_0x18992e(0x3bc))/0x9;if(_0x246aff===_0x7ed453)break;else _0x1a9ca9['push'](_0x1a9ca9['shift']());}catch(_0x44e517){_0x1a9ca9['push'](_0x1a9ca9['shift']());}}}(_0x1cc8,0x65ab7));import{CollaborationEvent as _0x28cc07,CompressMutationService as _0x34fb2b,EmptyMutationInfo as _0x6877be,ISnapshotServerService as _0x223810,ITransformService as _0x30bd2c,RevisionService as _0x21335b,SnapshotService as _0xa106a3,UniverCollaborationPlugin as _0x3886aa,b64DecodeUnicode as _0x52c95b,isTransformChangesetsSuccess as _0x32b26c,isTransformMutationsWithChangesetFailure as _0xc4ea4b,isTransformMutationsWithChangesetSuccess as _0x71163b,mapDocumentTypeToUniverInstanceType as _0x242325,parseChangesetToProtocol as _0x53b382,parseProtocolChangeset as _0x50c9bb,textEncoder as _0x23efb2,uuidv4 as _0xf5037d}from'@univerjs-pro/collaboration';import{CommandType as _0x3ac237,DependentOn as _0x1a8c7d,Disposable as _0x13fb6a,DisposableCollection as _0x3f655f,IAuthzIoService as _0x389ebf,ICommandService as _0x24738d,IConfigService as _0x123a79,IContextService as _0x3d76ae,IImageIoService as _0x17ef7f,ILogService as _0x3849f9,IMentionIOService as _0x5ec686,IPermissionService as _0x51823a,IUndoRedoService as _0x143b1e,IUniverInstanceService as _0x238a9e,ImageSourceType as _0x36d131,ImageUploadStatusType as _0x5af30f,Inject as _0x32c7b6,Injector as _0xd2295f,JSONX as _0x4c7fe5,LocalUndoRedoService as _0xa29cff,LocaleService as _0xed8942,MentionType as _0xf50ac4,Optional as _0x100ce1,Plugin as _0x2c2938,Quantity as _0x5262c6,Rectangle as _0x224ddf,RxDisposable as _0x2fb3e4,Tools as _0x36c319,UniverInstanceType as _0x4f4a88,UserManagerService as _0x522a20,Workbook as _0x1005dd,createIdentifier as _0x382d48,generateRandomId as _0x3b00a4,isInternalEditorID as _0x395bd6,merge as _0x5b8bc5,mergeOverrideWithDependencies as _0x410d5e,registerDependencies as _0x3eca33,resolveWithBasePath as _0x3de6a3,sequenceExecute as _0x1f41b0,toDisposable as _0x1e0938,touchDependencies as _0x1c608a}from'@univerjs/core';function _0x2b9e(_0x222f0e,_0x5cfa4e){_0x222f0e=_0x222f0e-0x13e;const _0x1cc86d=_0x1cc8();let _0x2b9ee1=_0x1cc86d[_0x222f0e];return _0x2b9ee1;}import{DocStateChangeManagerService as _0x3382a8,RichTextEditingMutation as _0x47e1e8}from'@univerjs/docs';import{InsertSheetMutation as _0xe7917a,SetSelectionsOperation as _0x2d0b65,SheetPermissionInitController as _0x2ddc32,SheetsSelectionsService as _0x5859a2,WorkbookEditablePermission as _0x57781e}from'@univerjs/sheets';import{BehaviorSubject as _0x21afa9,ReplaySubject as _0x16703b,Subject as _0x548400,concatMap as _0x1b7252,firstValueFrom as _0x199bcd,map as _0x185b9d,merge as _0x48bcdd,of as _0x195754,shareReplay as _0x4f20dd,take as _0x14e08c,takeUntil as _0x10e0d6}from'rxjs';import{CmdRspCode as _0x2486d1,CombCmd as _0x45aed2,ErrorCode as _0x5caf42,FileSource as _0x52302f}from'@univerjs/protocol';import{ITelemetryService as _0x25a71a}from'@univerjs/telemetry';import{delay as _0x42710a,filter as _0x3dc9b5,map as _0x55a320,take as _0x12e312,takeUntil as _0x530203}from'rxjs/operators';import{AddSlidePageMutation as _0x2ee980,EnsureSlideMasterPageMutation as _0x4b2065,MoveSlidePageMutation as _0x223877,RemoveSlidePageMutation as _0x1e507d}from'@univerjs-pro/slides';import{HTTPRequest as _0x3570bd,HTTPService as _0x314f58,ISocketService as _0x1fbe1f,MergeInterceptorFactory as _0x113520,ThresholdInterceptorFactory as _0x12c387,UniverNetworkPlugin as _0x32578b}from'@univerjs/network';import{UniverLicensePlugin as _0x267699,getGlobalObject as _0x122e45}from'@univerjs-pro/license';import{cbc as _0x3a25ba}from'@noble/ciphers/aes.js';import{concatBytes as _0x27bfb1,randomBytes as _0x585ea6,utf8ToBytes as _0x499a8d}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x10020d,getDrawingImageAllowSize as _0x57aa8f}from'@univerjs/drawing';const R=_0x1f5521(0x203),ft={},pt=_0x1f5521(0x1e7),mt=_0x1f5521(0x1b7),ht=_0x1f5521(0x305),gt='HEARTBEAT_TIMEOUT',_t=_0x1f5521(0x2a2),vt=_0x1f5521(0x354),yt=0x3e8,bt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',xt=_0x1f5521(0x3b1);function St(_0x575a2a){const _0xc418fb=_0x1f5521;return JSON['stringify'](_0x575a2a)[_0xc418fb(0x316)];}function Ct(_0x5e17ea){'@babel/helpers - typeof';const _0xd001d8=_0x1f5521;return Ct=typeof Symbol==_0xd001d8(0x167)&&typeof Symbol[_0xd001d8(0x3ad)]=='symbol'?function(_0x52d4f7){return typeof _0x52d4f7;}:function(_0x278990){const _0x91e6ab=_0xd001d8;return _0x278990&&typeof Symbol=='function'&&_0x278990[_0x91e6ab(0x28e)]===Symbol&&_0x278990!==Symbol['prototype']?_0x91e6ab(0x397):typeof _0x278990;},Ct(_0x5e17ea);}function wt(_0x31ce4e,_0x477f21){const _0x11edd0=_0x1f5521;if(Ct(_0x31ce4e)!='object'||!_0x31ce4e)return _0x31ce4e;var _0x16bb4b=_0x31ce4e[Symbol['toPrimitive']];if(_0x16bb4b!==void 0x0){var _0x34b8ba=_0x16bb4b[_0x11edd0(0x359)](_0x31ce4e,_0x477f21||'default');if(Ct(_0x34b8ba)!=_0x11edd0(0x313))return _0x34b8ba;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x477f21===_0x11edd0(0x239)?String:Number)(_0x31ce4e);}function Tt(_0x3b1528){const _0x54a6e3=_0x1f5521;var _0x2359f2=wt(_0x3b1528,_0x54a6e3(0x239));return Ct(_0x2359f2)=='symbol'?_0x2359f2:_0x2359f2+'';}function z(_0x56f508,_0x4124b8,_0x5f175f){const _0x2e702f=_0x1f5521;return(_0x4124b8=Tt(_0x4124b8))in _0x56f508?Object[_0x2e702f(0x37b)](_0x56f508,_0x4124b8,{'value':_0x5f175f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56f508[_0x4124b8]=_0x5f175f,_0x56f508;}let Et=function(_0x5bea01){const _0x3c052e=_0x1f5521;return _0x5bea01[_0x3c052e(0x2af)]=_0x3c052e(0x2af),_0x5bea01[_0x3c052e(0x3af)]='PERMISSION_DENIED',_0x5bea01[_0x3c052e(0x32d)]='CONFLICT',_0x5bea01['CLOSE_ROOM']=_0x3c052e(0x338),_0x5bea01['JOIN_ROOM_FAILED']=_0x3c052e(0x2d2),_0x5bea01[_0x3c052e(0x2a0)]=_0x3c052e(0x2a0),_0x5bea01['SOCKET_FAILED']=_0x3c052e(0x20f),_0x5bea01[_0x3c052e(0x28b)]=_0x3c052e(0x28b),_0x5bea01;}({});var B=class{constructor(){const _0x508e71=_0x1f5521;z(this,_0x508e71(0x39f),new _0x548400()),z(this,_0x508e71(0x3d5),this[_0x508e71(0x39f)][_0x508e71(0x37a)]());}[_0x1f5521(0x205)](_0x4297b6){const _0x2437c2=_0x1f5521;this['_event$'][_0x2437c2(0x1ae)](_0x4297b6);}},Dt=class{constructor(){const _0x303d29=_0x1f5521;z(this,_0x303d29(0x296),new _0x548400()),z(this,'commentUpdate$',this[_0x303d29(0x296)]['asObservable']());}[_0x1f5521(0x256)](_0x2d148e){const _0x442e5c=_0x1f5521;this[_0x442e5c(0x296)]['next'](_0x2d148e);}};function V(_0x15713d,_0x20ee82){return function(_0x47a6b6,_0xdf7322){_0x20ee82(_0x47a6b6,_0xdf7322,_0x15713d);};}function H(_0x2ee748,_0x46c45b,_0x2c61a7,_0x578586){const _0x39e622=_0x1f5521;var _0x1d7a98=arguments[_0x39e622(0x316)],_0x39ac98=_0x1d7a98<0x3?_0x46c45b:_0x578586===null?_0x578586=Object[_0x39e622(0x14a)](_0x46c45b,_0x2c61a7):_0x578586,_0x3526db;if(typeof Reflect==_0x39e622(0x313)&&typeof Reflect[_0x39e622(0x29c)]==_0x39e622(0x167))_0x39ac98=Reflect[_0x39e622(0x29c)](_0x2ee748,_0x46c45b,_0x2c61a7,_0x578586);else{for(var _0x51b1d7=_0x2ee748['length']-0x1;_0x51b1d7>=0x0;_0x51b1d7--)(_0x3526db=_0x2ee748[_0x51b1d7])&&(_0x39ac98=(_0x1d7a98<0x3?_0x3526db(_0x39ac98):_0x1d7a98>0x3?_0x3526db(_0x46c45b,_0x2c61a7,_0x39ac98):_0x3526db(_0x46c45b,_0x2c61a7))||_0x39ac98);}return _0x1d7a98>0x3&&_0x39ac98&&Object[_0x39e622(0x37b)](_0x46c45b,_0x2c61a7,_0x39ac98),_0x39ac98;}let Ot=class extends _0x13fb6a{constructor(_0x55d843){const _0x7e437d=_0x1f5521;super(),this['_univerInstanceService']=_0x55d843,z(this,_0x7e437d(0x396),new Map()),z(this,_0x7e437d(0x176),new _0x548400()),this[_0x7e437d(0x34e)](_0x48bcdd(this['_univerInstanceService'][_0x7e437d(0x1fe)](_0x4f4a88[_0x7e437d(0x399)])[_0x7e437d(0x220)](_0x55a320(_0x83b2a6=>_0x83b2a6[_0x7e437d(0x3d7)]())),this[_0x7e437d(0x329)][_0x7e437d(0x1fe)](_0x4f4a88[_0x7e437d(0x33c)])[_0x7e437d(0x220)](_0x55a320(_0x5a7229=>_0x5a7229[_0x7e437d(0x3d7)]())),this[_0x7e437d(0x329)][_0x7e437d(0x1fe)](_0x4f4a88['UNIVER_BOARD'])['pipe'](_0x55a320(_0x285f4e=>_0x285f4e['getUnitId']())),this[_0x7e437d(0x329)][_0x7e437d(0x1fe)](_0x4f4a88[_0x7e437d(0x337)])[_0x7e437d(0x220)](_0x55a320(_0x41209e=>_0x41209e[_0x7e437d(0x3d7)]())))[_0x7e437d(0x2dc)](_0x386507=>this[_0x7e437d(0x1db)](_0x386507)));}[_0x1f5521(0x35c)](_0x152990){const _0x57d263=_0x1f5521;return this[_0x57d263(0x396)][_0x57d263(0x2de)](_0x152990)?_0x195754(this[_0x57d263(0x396)]['get'](_0x152990)):this[_0x57d263(0x176)]['pipe'](_0x55a320(_0x599e53=>{const _0x20e5b9=_0x57d263;if(_0x599e53===_0x152990)return this[_0x20e5b9(0x396)][_0x20e5b9(0x20c)](_0x599e53);}));}[_0x1f5521(0x3a0)](_0x413f51,_0x15dfe2){const _0x11d96d=_0x1f5521;let _0x7f341b=this[_0x11d96d(0x396)]['get'](_0x413f51);_0x7f341b||(_0x7f341b=new kt(),this[_0x11d96d(0x396)][_0x11d96d(0x16f)](_0x413f51,_0x7f341b),this['_roomCreated$'][_0x11d96d(0x1ae)](_0x413f51)),_0x7f341b[_0x11d96d(0x3a0)](_0x15dfe2);}['removeMember'](_0x4b5ae1,_0x68b8b){const _0x2bc5bb=_0x1f5521;let _0x134390=this[_0x2bc5bb(0x396)][_0x2bc5bb(0x20c)](_0x4b5ae1);_0x134390&&_0x134390[_0x2bc5bb(0x21d)](_0x68b8b);}['getRoom'](_0x2c8144){const _0x53e546=_0x1f5521;return this[_0x53e546(0x396)][_0x53e546(0x20c)](_0x2c8144);}['getMember'](_0x4bd4e1,_0x56c1fb){const _0x4c183e=_0x1f5521;let _0x1dd6fe=this[_0x4c183e(0x396)][_0x4c183e(0x20c)](_0x4bd4e1);if(_0x1dd6fe)return _0x1dd6fe[_0x4c183e(0x35f)](_0x56c1fb);}[_0x1f5521(0x1db)](_0x17a5b5){const _0x28315a=_0x1f5521;let _0x5b37d8=this[_0x28315a(0x396)][_0x28315a(0x20c)](_0x17a5b5);_0x5b37d8&&(_0x5b37d8[_0x28315a(0x1ee)](),this[_0x28315a(0x396)]['delete'](_0x17a5b5));}[_0x1f5521(0x1ee)](){const _0x5e7982=_0x1f5521;this[_0x5e7982(0x396)][_0x5e7982(0x154)](_0x48252a=>_0x48252a['dispose']()),this[_0x5e7982(0x396)][_0x5e7982(0x2bd)](),this[_0x5e7982(0x176)][_0x5e7982(0x185)]();}};Ot=H([V(0x0,_0x238a9e)],Ot);var kt=class extends _0x13fb6a{constructor(..._0xc1fdec){const _0x3a735f=_0x1f5521;super(..._0xc1fdec),z(this,_0x3a735f(0x362),new Map()),z(this,_0x3a735f(0x1e2),new _0x21afa9(this[_0x3a735f(0x362)])),z(this,_0x3a735f(0x143),this[_0x3a735f(0x1e2)][_0x3a735f(0x37a)]());}['dispose'](){const _0x565242=_0x1f5521;this[_0x565242(0x362)][_0x565242(0x2bd)](),this[_0x565242(0x1e2)][_0x565242(0x185)]();}[_0x1f5521(0x3a0)](_0x2d76f7){const _0x3c2987=_0x1f5521;this[_0x3c2987(0x362)][_0x3c2987(0x16f)](_0x2d76f7[_0x3c2987(0x235)],_0x2d76f7),this['_emitMembers']();}['removeMember'](_0x331b47){const _0x37d19d=_0x1f5521;this[_0x37d19d(0x362)][_0x37d19d(0x204)](_0x331b47),this[_0x37d19d(0x315)]();}[_0x1f5521(0x35f)](_0x4728f4){const _0x2d5a02=_0x1f5521;return this['_members'][_0x2d5a02(0x20c)](_0x4728f4);}[_0x1f5521(0x148)](){const _0x5b5136=_0x1f5521;return Array['from'](this[_0x5b5136(0x362)]['values']());}[_0x1f5521(0x315)](){const _0x1e554f=_0x1f5521;this[_0x1e554f(0x1e2)][_0x1e554f(0x1ae)](this[_0x1e554f(0x362)]);}};function At(_0x73b270,_0x12c97c){const _0x134ec0=_0x1f5521;if(Mt(_0x73b270))return _0x12c97c;if(_0x12c97c[_0x134ec0(0x1b1)]===_0x28cc07[_0x134ec0(0x168)]){let _0x5683eb=Lt(_0x73b270),_0x43d8fe=_0x12c97c;return{..._0x43d8fe,'data':{..._0x43d8fe[_0x134ec0(0x2cc)],'unitID':_0x73b270['target'][_0x134ec0(0x2c4)],'unitType':_0x73b270[_0x134ec0(0x1ef)]['unitType']??_0x43d8fe[_0x134ec0(0x2cc)][_0x134ec0(0x1e6)],'changeset':_0x5683eb[_0x134ec0(0x343)](_0x43d8fe[_0x134ec0(0x2cc)][_0x134ec0(0x361)],Rt(_0x73b270))}};}if(_0x12c97c[_0x134ec0(0x1b1)]===_0x28cc07['FETCH_MISSING']){let _0x142063=_0x12c97c;return{..._0x142063,'data':{..._0x142063[_0x134ec0(0x2cc)],'unitID':_0x73b270[_0x134ec0(0x1ef)]['unitId'],'unitType':_0x73b270[_0x134ec0(0x1ef)][_0x134ec0(0x1e6)]??_0x142063[_0x134ec0(0x2cc)][_0x134ec0(0x1e6)]}};}return _0x12c97c;}function jt(_0x28d57d,_0x5e773a){const _0x10979a=_0x1f5521;if(Mt(_0x28d57d))return[_0x5e773a];switch(_0x5e773a[_0x10979a(0x1b1)]){case _0x28cc07[_0x10979a(0x1ff)]:return[Nt(_0x28d57d,_0x5e773a)];case _0x28cc07[_0x10979a(0x3a4)]:return[Ft(_0x28d57d,_0x5e773a)];case _0x28cc07[_0x10979a(0x14b)]:return[Pt(_0x28d57d,_0x5e773a)];default:return[_0x5e773a];}}function Mt(_0x2e6289){const _0xd6497f=_0x1f5521;return _0x2e6289[_0xd6497f(0x1ef)][_0xd6497f(0x1b8)]==null&&_0x2e6289[_0xd6497f(0x1ef)]['unitId']===_0x2e6289[_0xd6497f(0x37d)]&&!_0x2e6289[_0xd6497f(0x361)];}function Nt(_0x5dbc3c,_0x32451d){const _0x2c6717=_0x1f5521;return{..._0x32451d,'data':_0x53b382(It(_0x5dbc3c,_0x50c9bb(_0x32451d[_0x2c6717(0x2cc)])))};}function Pt(_0x248863,_0x17033d){const _0x1da5e8=_0x1f5521;return{..._0x17033d,'data':It(_0x248863,_0x17033d[_0x1da5e8(0x2cc)])};}function Ft(_0x5bd44a,_0x37d892){const _0x1f1d54=_0x1f5521;let _0xca0397=_0x37d892[_0x1f1d54(0x2cc)];return{..._0x37d892,'data':{..._0xca0397,'changesets':_0xca0397[_0x1f1d54(0x25d)][_0x1f1d54(0x2ea)](_0x272938=>_0x53b382(It(_0x5bd44a,_0x50c9bb(_0x272938))))}};}function It(_0x29c42a,_0x4d400b){return Lt(_0x29c42a)['toLocal'](_0x4d400b,Rt(_0x29c42a));}function Lt(_0x10d0e6){const _0x388ee5=_0x1f5521;if(!_0x10d0e6[_0x388ee5(0x361)])throw Error(_0x388ee5(0x1c0));return _0x10d0e6['changeset'];}function Rt(_0x3c8707){const _0x32c64f=_0x1f5521;return{'localUnitId':_0x3c8707[_0x32c64f(0x37d)],'unitType':_0x3c8707['unitType'],'target':_0x3c8707['target']};}let zt=function(_0x1147fa){const _0x124c3d=_0x1f5521;return _0x1147fa[_0x1147fa[_0x124c3d(0x288)]=0x0]='IDLE',_0x1147fa[_0x1147fa[_0x124c3d(0x1e9)]=0x1]=_0x124c3d(0x1e9),_0x1147fa[_0x1147fa['OFFLINE']=0x2]='OFFLINE',_0x1147fa[_0x1147fa[_0x124c3d(0x33d)]=0x3]='ONLINE',_0x1147fa;}({});const Bt={[_0x2486d1['FAIL']]:_0x1f5521(0x18d),[_0x2486d1[_0x1f5521(0x2e7)]]:'session.room-full',[_0x2486d1[_0x1f5521(0x342)]]:_0x1f5521(0x385),[_0x2486d1[_0x1f5521(0x21f)]]:_0x1f5521(0x28a),[_0x2486d1[_0x1f5521(0x17b)]]:_0x1f5521(0x3d9)};let Vt=class extends _0x2fb3e4{get[_0x1f5521(0x350)](){const _0x317d21=_0x1f5521;return this[_0x317d21(0x39d)][_0x317d21(0x3ca)]();}constructor(_0x42de9,_0x95d6a6,_0x529fd5,_0xafc5e0,_0x1cc5d5,_0x2b7157,_0x38530b,_0x4a8940){const _0x36f18a=_0x1f5521;super(),this[_0x36f18a(0x216)]=_0x42de9,this[_0x36f18a(0x2dd)]=_0x529fd5,this[_0x36f18a(0x2a1)]=_0xafc5e0,this[_0x36f18a(0x37f)]=_0x1cc5d5,this['_commentService']=_0x2b7157,this['_collaborationUIEventService']=_0x38530b,this[_0x36f18a(0x307)]=_0x4a8940,z(this,_0x36f18a(0x39d),new _0x21afa9(0x0)),z(this,_0x36f18a(0x30a),this[_0x36f18a(0x39d)]['asObservable']()),z(this,'_event$',new _0x548400()),z(this,_0x36f18a(0x3d5),this[_0x36f18a(0x39f)][_0x36f18a(0x37a)]()),z(this,'_socket',void 0x0),z(this,'_socketMessageSubscription',void 0x0),z(this,_0x36f18a(0x14f),void 0x0),z(this,_0x36f18a(0x393),!0x1),z(this,_0x36f18a(0x1bc),null),this[_0x36f18a(0x393)]=!!this['_telemetryService'],_0x95d6a6[_0x36f18a(0x220)](_0x10e0d6(this[_0x36f18a(0x201)]))[_0x36f18a(0x2dc)](_0x1548e8=>{const _0x5d9600=_0x36f18a;if(_0x1548e8!==void 0x0){if(this[_0x5d9600(0x1de)]=_0x1548e8,_0x1548e8)this[_0x5d9600(0x335)](_0x1548e8),this[_0x5d9600(0x327)]=_0x1548e8[_0x5d9600(0x1ce)][_0x5d9600(0x2dc)](_0xf64745=>{const _0x352aaf=_0x5d9600;_0xf64745[_0x352aaf(0x294)]===this[_0x352aaf(0x216)][_0x352aaf(0x1ef)]['unitId']&&this[_0x352aaf(0x18a)](_0xf64745);});else{var _0x16d1f3;this[_0x5d9600(0x2c0)](),this[_0x5d9600(0x39d)][_0x5d9600(0x1ae)](0x2),(_0x16d1f3=this['_socketMessageSubscription'])==null||_0x16d1f3['unsubscribe'](),this[_0x5d9600(0x327)]=null;}}});}[_0x1f5521(0x371)](){const _0x4df25c=_0x1f5521;var _0x36c405;return((_0x36c405=this[_0x4df25c(0x1de)])==null?void 0x0:_0x36c405[_0x4df25c(0x235)])??null;}[_0x1f5521(0x1ee)](){const _0x543823=_0x1f5521;super[_0x543823(0x1ee)](),this[_0x543823(0x301)](),this[_0x543823(0x201)][_0x543823(0x1ae)](),this['dispose$'][_0x543823(0x185)]();}[_0x1f5521(0x301)](){const _0x2f80e2=_0x1f5521;var _0x2e8735;this[_0x2f80e2(0x2c0)](),(_0x2e8735=this[_0x2f80e2(0x1de)])==null||_0x2e8735[_0x2f80e2(0x3bb)]({'cmd':_0x45aed2[_0x2f80e2(0x297)],'data':{'roomID':this['_identity'][_0x2f80e2(0x1ef)][_0x2f80e2(0x2c4)]}}),this[_0x2f80e2(0x39f)][_0x2f80e2(0x185)](),this[_0x2f80e2(0x39d)][_0x2f80e2(0x185)]();}['_onCombEvent'](_0x19af50){const _0x140130=_0x1f5521;_0x19af50[_0x140130(0x381)]===_0x45aed2[_0x140130(0x23d)]?this[_0x140130(0x300)](_0x19af50):_0x19af50['cmd']===_0x45aed2[_0x140130(0x146)]&&this[_0x140130(0x325)](_0x19af50);}['_joinRoom'](_0x45bf6b){const _0x19304b=_0x1f5521;this[_0x19304b(0x39d)][_0x19304b(0x1ae)](0x1),_0x45bf6b['send']({'cmd':_0x45aed2[_0x19304b(0x23d)],'routeKey':this[_0x19304b(0x216)][_0x19304b(0x1ef)][_0x19304b(0x2c4)],'routeType':'','data':{'rooms':[{'roomID':this[_0x19304b(0x216)][_0x19304b(0x1ef)][_0x19304b(0x2c4)]}]}});}[_0x1f5521(0x300)](_0x226bcd){const _0x215b41=_0x1f5521;var _0x2cae61;if(_0x226bcd[_0x215b41(0x26d)]in Bt){this[_0x215b41(0x3a1)][_0x215b41(0x205)]({'id':_0x215b41(0x2d2),'data':Bt[_0x226bcd[_0x215b41(0x26d)]]}),this[_0x215b41(0x39d)][_0x215b41(0x1ae)](0x2);return;}this['_sessionStatus$'][_0x215b41(0x1ae)](0x3);let _0x105e14=(_0x2cae61=_0x226bcd[_0x215b41(0x2cc)][_0x215b41(0x2f1)][this[_0x215b41(0x216)][_0x215b41(0x1ef)][_0x215b41(0x2c4)]])==null?void 0x0:_0x2cae61[_0x215b41(0x375)];_0x105e14&&_0x105e14[_0x215b41(0x154)](_0x2894a4=>this[_0x215b41(0x37f)][_0x215b41(0x3a0)](this[_0x215b41(0x216)][_0x215b41(0x37d)],_0x2894a4));}[_0x1f5521(0x325)](_0x15dd12){const _0x192214=_0x1f5521;try{let _0x13d0d3=jt(this[_0x192214(0x216)],_0x15dd12['data']);for(let _0x4cc9ba of _0x13d0d3)switch(_0x4cc9ba['eventID']){case _0x28cc07['USERS_ENTER']:this[_0x192214(0x39a)](_0x4cc9ba),this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x1af)]:this[_0x192214(0x208)](_0x4cc9ba),this['_event$'][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x19a)]:case _0x28cc07['CHANGESET_SHOULD_RETRY']:this[_0x192214(0x27a)](),this[_0x192214(0x140)](),this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x164)]:this[_0x192214(0x2dd)][_0x192214(0x2fc)](_0x192214(0x1f2)+JSON[_0x192214(0x212)](_0x4cc9ba)),this['_event$'][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x2a8)]:this['_commentService'][_0x192214(0x256)](_0x4cc9ba[_0x192214(0x2cc)]),this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);break;default:this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);}}catch(_0x3c147f){this[_0x192214(0x2dd)][_0x192214(0x2fc)](_0x3c147f,_0x15dd12);}}[_0x1f5521(0x39a)](_0x523f14){const _0x138fdf=_0x1f5521;this[_0x138fdf(0x37f)][_0x138fdf(0x3a0)](this['_identity']['localUnitId'],_0x523f14[_0x138fdf(0x2cc)]);}['_onUserLeave'](_0x361079){const _0x522b4b=_0x1f5521;this[_0x522b4b(0x37f)]['removeMember'](this[_0x522b4b(0x216)][_0x522b4b(0x37d)],_0x361079[_0x522b4b(0x2cc)][_0x522b4b(0x235)]);}async['send'](_0x2e8a81,_0x4c83a3){const _0xadbf00=_0x1f5521;if(this[_0xadbf00(0x350)]!==0x3||!this[_0xadbf00(0x1de)])throw Error(_0xadbf00(0x318));try{let _0x5ea8c2=At(this[_0xadbf00(0x216)],_0x2e8a81);_0x5ea8c2[_0xadbf00(0x1b1)]===_0x28cc07[_0xadbf00(0x168)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xadbf00(0x376)](_0x5ea8c2)),this['_socket'][_0xadbf00(0x3bb)]({'cmd':_0x45aed2[_0xadbf00(0x2ee)],'routeKey':this[_0xadbf00(0x216)][_0xadbf00(0x1ef)]['unitId'],'routeType':'','data':_0x5ea8c2});}catch(_0xea1ab2){this[_0xadbf00(0x2dd)][_0xadbf00(0x2fc)](_0xea1ab2);}}['_scheduleCollaborationTimeoutTimer'](){const _0x22c3a9=_0x1f5521;this[_0x22c3a9(0x14f)]=setTimeout(()=>{const _0x377773=_0x22c3a9;this[_0x377773(0x14f)]=null,this[_0x377773(0x3a1)][_0x377773(0x205)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this['_configService']['getConfig'](_0x22c3a9(0x3a3))??0x4e20);}[_0x1f5521(0x140)](){const _0x2d299b=_0x1f5521;this[_0x2d299b(0x14f)]&&=(clearTimeout(this[_0x2d299b(0x14f)]),null);}[_0x1f5521(0x376)](_0x242539){const _0x4f9de1=_0x1f5521;if(!this[_0x4f9de1(0x393)])return;let {data:_0x43433a}=_0x242539,{unitID:_0x1678a4,changeset:_0xf1f4ce}=_0x43433a,{mutations:_0x47abe7,type:_0x32621b}=_0xf1f4ce;this[_0x4f9de1(0x1bc)]={'unitId':_0x1678a4,'type':_0x32621b,'startTime':performance[_0x4f9de1(0x30b)](),'stopTime':0x0,'duration':0x0,'size':St(_0x47abe7)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x428fd2=_0x1f5521;if(this[_0x428fd2(0x393)]){if(!this[_0x428fd2(0x1bc)]){this['_logService'][_0x428fd2(0x2fc)](_0x428fd2(0x1fa),_0x428fd2(0x29d));return;}this[_0x428fd2(0x1bc)][_0x428fd2(0x35b)]=performance[_0x428fd2(0x30b)](),this[_0x428fd2(0x1bc)]['duration']=this[_0x428fd2(0x1bc)]['stopTime']-this[_0x428fd2(0x1bc)]['startTime'],this[_0x428fd2(0x307)][_0x428fd2(0x1dc)](_0x428fd2(0x347),this['_telemetryInfo']),this[_0x428fd2(0x1bc)]=null;}}[_0x1f5521(0x2c0)](){const _0x5abc50=_0x1f5521;this[_0x5abc50(0x1bc)]=null;}};Vt=H([V(0x2,_0x3849f9),V(0x3,_0x123a79),V(0x4,_0x32c7b6(Ot)),V(0x5,_0x32c7b6(Dt)),V(0x6,_0x32c7b6(B)),V(0x7,_0x100ce1(_0x25a71a))],Vt);const U=_0x382d48(_0x1f5521(0x3b0));function Ht(_0x1699a7){const _0x19da34=_0x1f5521;return _0x19da34(0x22f)+_0x1699a7;}function Ut(_0x54f1ba){const _0x5aed0a=_0x1f5521;let {unitID:_0x16b717,mutations:_0x27c6e9}=_0x54f1ba;return{'unitId':_0x16b717,'subUnitId':_0x27c6e9[_0x5aed0a(0x316)]>0x0?_0x27c6e9[0x0][_0x5aed0a(0x366)][_0x5aed0a(0x2f2)]:null};}let Wt=class{constructor(_0x2ab1d4,_0x2b6fb1,_0x445adc){const _0x304ec1=_0x1f5521;this[_0x304ec1(0x391)]=_0x2ab1d4,this[_0x304ec1(0x2c5)]=_0x2b6fb1,this[_0x304ec1(0x249)]=_0x445adc;}['transformSelections'](_0x531bb2){const _0x1b5dbe=_0x1f5521;var _0x215a3e,_0x19fde5;let _0x56d4df=this[_0x1b5dbe(0x391)]['get'](_0x5859a2),{unitId:_0x4351d3,subUnitId:_0x379f22}=Ut(_0x531bb2),_0x454e97=_0x56d4df==null?void 0x0:_0x56d4df[_0x1b5dbe(0x2e8)](_0x4351d3)[_0x1b5dbe(0x358)](),_0x225061=(_0x215a3e=this['_instanceService']['getUnit'](_0x4351d3))==null||(_0x215a3e=_0x215a3e[_0x1b5dbe(0x27b)]())==null?void 0x0:_0x215a3e[_0x1b5dbe(0x190)]();if(_0x454e97['length']===0x0||!_0x4351d3||!_0x379f22)return;let _0x4d12f5=[{'id':_0x2d0b65['id'],'params':{'unitId':_0x4351d3,'subUnitId':_0x225061,'selections':_0x36c319['deepClone'](_0x454e97)}}],_0xdbf93a=this[_0x1b5dbe(0x2c5)][_0x1b5dbe(0x222)](_0x531bb2,_0x4d12f5);if(!_0x71163b(_0xdbf93a))throw _0xdbf93a[_0x1b5dbe(0x2fc)];let _0x4737b5=(_0x19fde5=_0xdbf93a[_0x1b5dbe(0x242)][0x0])==null||(_0x19fde5=_0x19fde5[_0x1b5dbe(0x366)])==null?void 0x0:_0x19fde5[_0x1b5dbe(0x31f)];if(Array['isArray'](_0x4737b5)&&_0x4737b5[_0x1b5dbe(0x316)]){if(_0x4737b5[_0x1b5dbe(0x316)]===_0x4d12f5[0x0][_0x1b5dbe(0x366)]['selections'][_0x1b5dbe(0x316)]&&_0x4737b5[_0x1b5dbe(0x15f)]((_0x146fcb,_0x356664)=>_0x224ddf[_0x1b5dbe(0x344)](_0x146fcb[_0x1b5dbe(0x23b)],_0x4d12f5[0x0][_0x1b5dbe(0x366)][_0x1b5dbe(0x31f)][_0x356664][_0x1b5dbe(0x23b)])))return;this['_injector'][_0x1b5dbe(0x20c)](_0x24738d)['executeCommand'](_0x2d0b65['id'],{'unitId':_0x4351d3,'subUnitId':_0x225061,'selections':_0x4737b5});}}};Wt=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x30bd2c),V(0x2,_0x238a9e)],Wt);const W=_0x382d48(_0x1f5521(0x2a4));let Gt=function(_0x19436d){const _0x460f8=_0x1f5521;return _0x19436d[_0x19436d[_0x460f8(0x3cf)]=0x0]=_0x460f8(0x3cf),_0x19436d[_0x19436d['OTHER_CLIENTS_EDITING']=0x1]=_0x460f8(0x211),_0x19436d;}({});function Kt(_0x5c6048){const _0x1f477e=_0x1f5521;var _0x3d3c3a;return!!((_0x3d3c3a=_0x5c6048[_0x1f477e(0x366)])!=null&&_0x3d3c3a[_0x1f477e(0x24b)]);}const qt=new Set([_0xe7917a['id']]),Jt=new Set([_0x2ee980['id'],_0x4b2065['id'],_0x223877['id'],_0x1e507d['id']]);function Yt(_0x4148ec,_0x88917b=qt){const _0x1d6add=_0x1f5521;let _0x30dcb1=[];for(let _0xee4221 of _0x4148ec){if(_0x88917b[_0x1d6add(0x2de)](_0xee4221['id'])){if(_0x30dcb1[_0x1d6add(0x316)]>0x0)break;_0x30dcb1['push'](_0xee4221);break;}if(Kt(_0xee4221)){if(_0x30dcb1[_0x1d6add(0x316)]>0x0)break;_0x30dcb1[_0x1d6add(0x1cf)](_0xee4221);break;}_0x30dcb1['push'](_0xee4221);}return _0x30dcb1;}function Xt(_0x10be5d,_0x4a1287,_0x954e38,_0x2247f7,_0x470f51){const _0x852e=_0x1f5521;let _0x325052=Yt(_0x10be5d),_0x2e0171=_0x470f51[_0x852e(0x15e)](),_0x43e397=(_0x2e0171==null?void 0x0:_0x2e0171['userID'])??_0x852e(0x2e3),_0x442fa0=(_0x2e0171==null?void 0x0:_0x2e0171[_0x852e(0x235)])??'unknown';return{'changeset':{'unitID':_0x4a1287,'type':_0x242325(_0x954e38['getUnitType'](_0x4a1287)),'baseRev':_0x2247f7['getCurrentRevOfUnit'](_0x4a1287),'revision':0x0,'userID':_0x43e397,'memberID':_0x442fa0,'mutations':_0x325052},'pendingMutations':_0x10be5d[_0x852e(0x2ca)](_0x325052[_0x852e(0x316)])};}const Zt=Xt;function Qt(_0x5553f5,_0x3ba9ff,_0x494070,_0x49a65b,_0x2d007d){const _0x432a4d=_0x1f5521;let _0x297269=Yt(_0x5553f5,Jt),_0x979a1a=_0x2d007d[_0x432a4d(0x15e)](),_0x591b34=(_0x979a1a==null?void 0x0:_0x979a1a[_0x432a4d(0x200)])??'unknown',_0x13d693=(_0x979a1a==null?void 0x0:_0x979a1a['memberID'])??_0x432a4d(0x2e3);return{'changeset':{'unitID':_0x3ba9ff,'type':_0x242325(_0x494070[_0x432a4d(0x24d)](_0x3ba9ff)),'baseRev':_0x49a65b[_0x432a4d(0x2d5)](_0x3ba9ff),'revision':0x0,'userID':_0x591b34,'memberID':_0x13d693,'mutations':_0x297269},'pendingMutations':_0x5553f5[_0x432a4d(0x2ca)](_0x297269[_0x432a4d(0x316)])};}function $t(_0x377e3b,_0x55560a,_0x561ef6,_0x3c209d,_0x537f4a){const _0x1b1142=_0x1f5521;let _0x28f12f=_0x377e3b[_0x1b1142(0x18e)]((_0x1d2563,_0x272252)=>{const _0x4b9079=_0x1b1142;let _0x4a63ec=_0x1d2563[_0x1d2563[_0x4b9079(0x316)]-0x1],{id:_0xa8242c}=_0x4a63ec??{},{id:_0x49cd58,type:_0x210bdd}=_0x272252,_0x27c853=_0x272252[_0x4b9079(0x366)];if(_0xa8242c&&_0xa8242c!==_0x49cd58)throw Error(_0x4b9079(0x2bf)+_0xa8242c+_0x4b9079(0x386)+_0x49cd58+'.');if(!_0x4a63ec)return[{'id':_0x49cd58,'type':_0x210bdd,'params':{'unitId':_0x27c853[_0x4b9079(0x2c4)],'textRanges':_0x27c853['textRanges'],'actions':_0x27c853[_0x4b9079(0x1d6)]}}];let _0x4de8cd=_0x4a63ec[_0x4b9079(0x366)];return en(_0x4de8cd,_0x27c853)?[..._0x1d2563[_0x4b9079(0x2ca)](0x0,-0x1),{..._0x4a63ec,'id':_0x49cd58,'type':_0x210bdd,'params':{'unitId':_0x27c853[_0x4b9079(0x2c4)],'textRanges':_0x27c853[_0x4b9079(0x3da)],'actions':_0x4c7fe5['compose'](_0x4de8cd[_0x4b9079(0x1d6)],_0x27c853['actions'])}}]:[..._0x1d2563,{'id':_0x49cd58,'type':_0x210bdd,'params':{'unitId':_0x27c853[_0x4b9079(0x2c4)],'textRanges':_0x27c853[_0x4b9079(0x3da)],'actions':_0x27c853[_0x4b9079(0x1d6)]}}];},[]),_0x23078e=_0x537f4a['getCurrentUser'](),_0x3cefdd=(_0x23078e==null?void 0x0:_0x23078e[_0x1b1142(0x200)])??_0x1b1142(0x2e3),_0x563bdb=(_0x23078e==null?void 0x0:_0x23078e['memberID'])??_0x1b1142(0x2e3);return{'changeset':{'unitID':_0x55560a,'type':_0x242325(_0x561ef6['getUnitType'](_0x55560a)),'baseRev':_0x3c209d[_0x1b1142(0x2d5)](_0x55560a),'revision':0x0,'userID':_0x3cefdd,'memberID':_0x563bdb,'mutations':_0x28f12f},'pendingMutations':_0x377e3b['slice'](_0x377e3b['length'])};}function en(_0x4fc041,_0x55008a){const _0x1fa9e9=_0x1f5521;return!tn(_0x4fc041)&&!tn(_0x55008a)&&nn(_0x4fc041[_0x1fa9e9(0x1d6)],_0x55008a[_0x1fa9e9(0x1d6)]);}function tn(_0x21dc30){const _0x303394=_0x1f5521;return _0x21dc30[_0x303394(0x388)]!==void 0x0;}function nn(_0x1fe2ee,_0x105e1d){return rn(_0x1fe2ee)&&rn(_0x105e1d)&&!on(_0x1fe2ee)&&!on(_0x105e1d)&&!an(_0x1fe2ee)&&!an(_0x105e1d);}function rn(_0x2803c0){const _0x4b5821=_0x1f5521;return sn(_0x2803c0)['some'](_0x1e0618=>cn(_0x1e0618)&&_0x1e0618['et']===_0x4b5821(0x2a6));}function an(_0x40f8ba){const _0x5509d6=_0x1f5521;return sn(_0x40f8ba)[_0x5509d6(0x2ae)](_0x1f0aba=>Array[_0x5509d6(0x33b)](_0x1f0aba)||typeof _0x1f0aba==_0x5509d6(0x239)||typeof _0x1f0aba==_0x5509d6(0x193));}function on(_0xb021be){const _0x5bc41d=_0x1f5521;return sn(_0xb021be)[_0x5bc41d(0x2ae)](_0x19449c=>!cn(_0x19449c)||_0x19449c['et']!==_0x5bc41d(0x2a6)||!Array[_0x5bc41d(0x33b)](_0x19449c['e'])?!0x1:_0x19449c['e']['some'](_0xe65896=>!cn(_0xe65896)||!cn(_0xe65896['body'])?!0x1:Object['prototype']['hasOwnProperty']['call'](_0xe65896[_0x5bc41d(0x1c3)],_0x5bc41d(0x1ab))||Object[_0x5bc41d(0x155)]['hasOwnProperty'][_0x5bc41d(0x359)](_0xe65896[_0x5bc41d(0x1c3)],_0x5bc41d(0x17f))||Object['prototype'][_0x5bc41d(0x2c3)][_0x5bc41d(0x359)](_0xe65896['body'],_0x5bc41d(0x267))));}function sn(_0x475e12){const _0x21f793=_0x1f5521;if(!Array['isArray'](_0x475e12))return[];let _0xbbde9=_0x475e12['includes'](_0x21f793(0x1c3))?_0x475e12:_0x475e12['find'](_0x6281df=>Array[_0x21f793(0x33b)](_0x6281df)&&_0x6281df[_0x21f793(0x377)]('body'));if(!Array[_0x21f793(0x33b)](_0xbbde9))return[];let _0x1d1ee1=_0xbbde9[_0x21f793(0x348)](_0x21f793(0x1c3));return _0x1d1ee1===-0x1?[]:_0xbbde9[_0x21f793(0x2ca)](_0x1d1ee1+0x1);}function cn(_0x3965e7){const _0x224b5e=_0x1f5521;return typeof _0x3965e7=='object'&&!!_0x3965e7&&!Array[_0x224b5e(0x33b)](_0x3965e7);}function ln(_0x27a47b,_0x197b3b){const _0x58e8d9=_0x1f5521;let _0x43bdb9=new _0x16703b(0x1);return setTimeout(()=>_0x43bdb9[_0x58e8d9(0x1ae)](_0x197b3b),_0x27a47b),_0x43bdb9['asObservable']()[_0x58e8d9(0x220)](_0x14e08c(0x1));}var un,dn,fn;let pn=function(_0x4f250a){const _0x337f29=_0x1f5521;return _0x4f250a[_0x337f29(0x1bf)]=_0x337f29(0x336),_0x4f250a['SYNCED']=_0x337f29(0x319),_0x4f250a[_0x337f29(0x1a9)]='pending',_0x4f250a['AWAITING']='awaiting',_0x4f250a[_0x337f29(0x225)]='awaiting_with_pending',_0x4f250a[_0x337f29(0x360)]='fetch_missing',_0x4f250a[_0x337f29(0x32d)]='conflict',_0x4f250a[_0x337f29(0x32e)]=_0x337f29(0x269),_0x4f250a;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x15b1be,_0x7421d7,_0x48fc79,_0x453cb1,_0xd6bdd,_0x105788,_0x47c74b,_0x5bea00,_0x114874){const _0x21de38=_0x1f5521;this['unitID']=_0x15b1be,this[_0x21de38(0x258)]=_0x7421d7,this[_0x21de38(0x2c7)]=_0xd6bdd,this['_commandService']=_0x105788,this[_0x21de38(0x2f9)]=_0x47c74b,this[_0x21de38(0x247)]=_0x5bea00,this[_0x21de38(0x2ab)]=_0x114874,z(this,_0x21de38(0x174),null),z(this,'_pendingMutations',[]),this[_0x21de38(0x174)]=_0x48fc79,this[_0x21de38(0x1fd)]=_0x453cb1;}[_0x1f5521(0x2b9)](_0xae0fc6){const _0x21b79e=_0x1f5521;let _0x2b457c=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return _0xae0fc6[_0x21b79e(0x145)]>_0x2b457c+0x1?(this['_handler'][_0x21b79e(0x302)]({'from':_0x2b457c,'to':_0xae0fc6[_0x21b79e(0x145)]-0x1}),!0x0):!0x1;}[_0x1f5521(0x3c2)](_0x101faf){const _0xd8dc83=_0x1f5521;this['_undoRedoService'][_0xd8dc83(0x279)](this[_0xd8dc83(0x322)],_0x101faf);}[_0x1f5521(0x1cc)](_0x10acfe){const _0x44ea49=_0x1f5521;var _0xe0a870,_0x46acb5;(_0xe0a870=(_0x46acb5=this['_handler'])[_0x44ea49(0x339)])==null||_0xe0a870[_0x44ea49(0x359)](_0x46acb5,_0x10acfe);}['_transformIMECache'](_0x467cfb){const _0x3dfe4f=_0x1f5521;var _0x407e44,_0x488e24;return(_0x407e44=(_0x488e24=this[_0x3dfe4f(0x2c7)])[_0x3dfe4f(0x1ac)])==null?void 0x0:_0x407e44['call'](_0x488e24,_0x467cfb);}[_0x1f5521(0x2c9)](_0xe72e8c){const _0x138bdf=_0x1f5521;var _0xc03ddc,_0x4c8199;return(_0xc03ddc=(_0x4c8199=this[_0x138bdf(0x2c7)])[_0x138bdf(0x31e)])==null?void 0x0:_0xc03ddc[_0x138bdf(0x359)](_0x4c8199,_0xe72e8c);}[_0x1f5521(0x3e0)](_0x3c5401){const _0x370b82=_0x1f5521;var _0x18fcbb,_0x44350a;return((_0x18fcbb=(_0x44350a=this['_handler'])[_0x370b82(0x15b)])==null?void 0x0:_0x18fcbb[_0x370b82(0x359)](_0x44350a,_0x3c5401))??_0x3c5401;}['_transformRemoteChangesetByStateCache'](_0x194a95){const _0x4c54f0=_0x1f5521;var _0x2d5177,_0x1ea946;return((_0x2d5177=(_0x1ea946=this[_0x4c54f0(0x2c7)])[_0x4c54f0(0x236)])==null?void 0x0:_0x2d5177['call'](_0x1ea946,_0x194a95))??_0x194a95;}['_syncEditingCollabCursor'](_0x1a726e){const _0x1f0d8a=_0x1f5521;if(this[_0x1f0d8a(0x258)]===_0x4f4a88[_0x1f0d8a(0x33c)]){let {unitID:_0x3d61ee,mutations:_0x1237dc,memberID:_0x19eccf}=_0x1a726e,_0x5c9b92=_0x1237dc[_0x1f0d8a(0x316)]>0x0?_0x1237dc[0x0][_0x1f0d8a(0x366)][_0x1f0d8a(0x3da)]:[];if(Array['isArray'](_0x5c9b92)&&_0x5c9b92[_0x1f0d8a(0x316)]>0x0){var _0x9706bc,_0x4ee431;(_0x9706bc=(_0x4ee431=this[_0x1f0d8a(0x2c7)])[_0x1f0d8a(0x29b)])==null||_0x9706bc[_0x1f0d8a(0x359)](_0x4ee431,{'unitID':_0x3d61ee,'memberID':_0x19eccf,'textRanges':_0x5c9b92});}}}[_0x1f5521(0x30e)](){const _0x50f695=_0x1f5521;var _0x3d262a;(_0x3d262a=this[_0x50f695(0x2ab)])==null||_0x3d262a[_0x50f695(0x2d9)](this[_0x50f695(0x322)],this['type'],this[_0x50f695(0x174)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x571ac8=_0x1f5521;return this[_0x571ac8(0x247)][_0x571ac8(0x2d5)](this[_0x571ac8(0x322)]);}[_0x1f5521(0x2e9)](){const _0x432fe5=_0x1f5521;this[_0x432fe5(0x247)][_0x432fe5(0x292)](this[_0x432fe5(0x322)]);}[_0x1f5521(0x308)](_0x104317){const _0xd765bf=_0x1f5521;let _0x5e945f=this['_transformRemoteChangesetByIMECache'](_0x104317);_0x5e945f=this[_0xd765bf(0x29e)](_0x5e945f);let _0x239156=_0x1f41b0(_0x5e945f[_0xd765bf(0x17c)],this['_commandService'],{'fromCollab':!0x0});if(!_0x239156['result'])throw _0x239156[_0xd765bf(0x2fc)]instanceof Error?_0x239156[_0xd765bf(0x2fc)]:Error(_0x239156['error']??'[CollaborationState]:\x20apply\x20error!');this[_0xd765bf(0x241)](_0x5e945f),this[_0xd765bf(0x2c9)](_0x5e945f),this[_0xd765bf(0x3c2)](_0x104317),this['_transformSelections'](_0x5e945f),this['_syncEditingCollabCursor'](_0x5e945f),this['_incrementRevisionNumber']();}};let K=class extends G{constructor(_0x42096b,_0x5d50dc,_0x2fb83b,_0x165368,_0x4fd950,_0x52b8b2,_0x5ccbed,_0x5cda46,_0x4dfc31,_0x852496){const _0x1e9955=_0x1f5521;super(_0x42096b,_0x5d50dc,null,[],_0x2fb83b,_0x5ccbed,_0x52b8b2,_0x165368,_0x852496),this[_0x1e9955(0x391)]=_0x4fd950,this[_0x1e9955(0x2dd)]=_0x5cda46,this[_0x1e9955(0x2c5)]=_0x4dfc31,this[_0x1e9955(0x263)]=_0x852496,z(this,_0x1e9955(0x1fc),'synced');}[_0x1f5521(0x2b1)](_0xbfc6de){const _0x30a63f=_0x1f5521;let _0x1e5ab8=this[_0x30a63f(0x391)]['createInstance'](q,this[_0x30a63f(0x322)],this[_0x30a63f(0x258)],[_0xbfc6de],this[_0x30a63f(0x2c7)]);return _0x1e5ab8[_0x30a63f(0x2be)](),_0x1e5ab8['_updateLocalCache'](),_0x1e5ab8;}['onRemoteChangeset'](_0x45f96b){const _0x225db7=_0x1f5521;if(this['_checkMissing'](_0x45f96b))return this[_0x225db7(0x391)]['createInstance'](Q,this[_0x225db7(0x322)],this[_0x225db7(0x258)],null,[],null,[_0x45f96b],this[_0x225db7(0x2c7)]);try{let _0x130725=this[_0x225db7(0x2c5)]['transformMutationsWithChangeset'](_0x45f96b,[_0x6877be]);if(_0x71163b(_0x130725)){let {c1Prime:_0xa3a440}=_0x130725;return this[_0x225db7(0x308)](_0xa3a440),this;}throw _0x130725['error'];}catch(_0x54ab43){return this[_0x225db7(0x2dd)]['error'](_0x54ab43),this[_0x225db7(0x27e)](!0x1);}}[_0x1f5521(0x27e)](_0x4387b7){const _0x12ee03=_0x1f5521;return this[_0x12ee03(0x391)][_0x12ee03(0x351)](X,this[_0x12ee03(0x322)],this[_0x12ee03(0x258)],null,[],this[_0x12ee03(0x2c7)],_0x4387b7);}[_0x1f5521(0x2f5)](_0xa719ba){const _0x4d07d5=_0x1f5521;if(_0xa719ba[_0x4d07d5(0x145)]<=this['_getCurrentRevision']())return this;throw Error(_0x4d07d5(0x226));}[_0x1f5521(0x275)](){const _0x400976=_0x1f5521;throw Error(_0x400976(0x1c4));}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){const _0x1b50e8=_0x1f5521;return this['_injector'][_0x1b50e8(0x351)](Z,this[_0x1b50e8(0x322)],this['type'],null,[],this[_0x1b50e8(0x2c7)]);}['toggleOnline'](){return this;}[_0x1f5521(0x3a6)](){const _0x287eb2=_0x1f5521;throw Error(_0x287eb2(0x369));}[_0x1f5521(0x28f)](){const _0x1c7ac1=_0x1f5521;let _0x1cc2cd=this['_revisionService'][_0x1c7ac1(0x2d5)](this[_0x1c7ac1(0x322)]);return this[_0x1c7ac1(0x2c7)][_0x1c7ac1(0x302)]({'from':_0x1cc2cd,'to':0x0}),this[_0x1c7ac1(0x391)][_0x1c7ac1(0x351)](Q,this[_0x1c7ac1(0x322)],this[_0x1c7ac1(0x258)],null,[],null,[],this[_0x1c7ac1(0x2c7)]);}};function _0x1cc8(){const _0x4a8ade=['_resendTimeout','removeMember','collaboration-client.auth.needGotoLoginAlert','JOIN_ROOM_PERMISSION_DENIED','pipe','requireSession','transformMutationsWithChangeset','getSnapshotAPIPath','executeCommand','AWAITING_WITH_PENDING','[SyncedState]:\x20received\x20acknowledgement.','onStateChange','_replayCachedMutations','_clearRedo','permissionRejEvent','_transitionLocked','_sendingTimer','BASE64','file','unit-cache-','HEARTBEAT','_fetchMissChangesets','status$','_initRequestHeader','getFocusedUnit','memberID','onTransformRemoteChangesetByStateCache','LIVESHARE_REQUEST_HOST','_queuedRemoteChangesets','string','HELLO','range','min','JOIN','open$','add','pluginName','_transformIMECache','m2Prime','result','findIndex','getCollabEntity','fromCollab','_revisionService','_sender','_instanceService','&to=','__splitChunk__','_localeService','getUnitType','_change$','deleteCollaborator','refreshPermission','enableOfflineEditing','toString','update','_initMergeInterceptor','_collaborationPaused','onCommentUpdate','loginUrlKey','type','/universer-api/snapshot','focused$','_clearScheduledTask','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','changesets','/role','commentUpdateEvent','_onRemoteChangeset','filter','ERROR_IMAGE_TYPE','localCacheService','transformStack\x20failed!','_snapshotService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','blockRanges','backupOfflineData','offline','roles','loadBase','onlyLocal','code','close$','unsubscribe','_getUndoStack','[FetchMissState]','joinRsp','/universer-api/authz','snapshot','onRemoteRej','_acknowledgeAwaiting','onMutationExecutedForCollab','state$','transformUndoRedo','_stopTelemetryCollaborationNewChangeset','getActiveSheet','liveShareNewHost','leaveEvent','_onConflict','54Opgyxv','/allowed','saveSheetBlock','isPermissionRej','_lockTransition','_docStateChangeManagerService','_getCurrentRevision','LIVESHARE_FETCH_OPERATIONS','_getAPIPrefix','IDLE','packageName','session.room-permission-denied','SUBMIT_CHANGESET_TIMEOUT','_clearTimeoutTimer','_sessionChannels','constructor','fetchMiss','loadBoard','248750EwPtxh','incrementRevOfUnit','missingChangesets','routeKey','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_commentUpdate$','LEAVE','createSocket','downloadEndpointUrl','_init','onSyncEditingCollabCursor','decorate','telemetry\x20info\x20is\x20not\x20initialized','_transformRemoteChangesetByStateCache','_acknowledgeAwaitingIfReady','SOCKET_FAILED_RETRY','_configService','RETRY_CONNECTING_MAX_COUNT','readAsDataURL','univer-pro.collaboration-client.single-active-unit-service','_onOffline','text-x','_unitLoaded$','COMMENT_UPDATE','_undoStacks','_exhaustRemoteChangesetQueue','_localCacheService','updateSnapshot','?size=','some','OTHER_CLIENT_EDITING','loadDoc','appendMutation','getCfgEnableObjInherit','enableAuthServer','_networkConditionService','max','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','values','encode','_checkMissing','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','OPTIONAL','\x20in\x20_schedule.','clear','_schedule','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_throwTelemetryCollaborationNewChangeset','_createInitialStateImpl','init','hasOwnProperty','unitId','_transformService','updatePermissionObjEvent','_handler','resolve','_transformStateCache','slice','UNIVER_BOARD','data','_getSignURL','localeService','createCollaborator','socketMessageSubscription','FileId','JOIN_ROOM_FAILED','getSheetBlock','setConfig','getCurrentRevOfUnit','_collabSessionService','avatar','getImageSourceCache','updateOfflineData','closeSession','location','subscribe','_logService','has','put','_onRemoteACK','_getRedoStack','COMPRESS_MUTATION_SEND','unknown','state','_onRemoteRetry','saveImage','JOIN_ROOM_FULL','getWorkbookSelections','_incrementRevisionNumber','map','onMissedChangesetFetched','conflict','override','INGEST','authzUrl','_onRemoteRejected','roomInfos','subUnitId','transformSelections','splice','onRemoteAck','_tryReconnect','reqId','copyFileMeta','_undoRedoService','_waitCount','originalMeta','error','\x0aAfter:\x20','patch','_updateState','_onJoinRoomEvent','close','onMissingChangesets','objectID','getInterceptPoints','HEARTBEAT_INTERVAL','disableLocalCache','_telemetryService','_executeRemoteChangeset','@univerjs-pro/collaboration-client','sessionStatus$','now','loadPdf','_initDependencies','_updateLocalCache','objectType','_disableEditing','_eventService','replace','object','onRemoteRetry','_emitMembers','length','_httpService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','synced','_onFetchMissResult','getAttachmentUrl','reverse','subject','onTransformState','selections','_commandService','_unitInfo$','unitID','socket\x20open.','ERROR_IMAGE','_onRecvEvent','entityInit$','_socketMessageSubscription','collaboratorID','_univerInstanceService','fetchThroughInterceptors','readyForCollab','fromCharCode','CONFLICT','OFFLINE','_getUploadFileURL','/new_changes','method','125090CVyDSc','entries','_onConnectionOpen','_joinRoom','not_collab','UNIVER_BASE','CLOSE_ROOM','onTransformSelections','collaborators','isArray','UNIVER_DOC','ONLINE','_pendingSessions','endpointKey','/rev/','ERROR_EXCEED_SIZE','JOIN_ROOM_NOT_EXISTS','toRemote','equals','title','1.0.0-beta.1','collaboration_new_changeset','indexOf','_status$','_clearHeartbeatTimer','UNISCRIPT_RUN','_getSendChangesetTimeout','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disposeWithMe','_type','sessionStatus','createInstance','sendChangesetTimeout','_entities','LOCAL_CACHE_INTERVAL','connection\x20error','[PendingState]:\x20received\x20rejection.','Error\x20on\x20receiving\x20event','getCurrentSelections','call','debug','stopTime','waitForRoom$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','68268VqKcbJ','getMember','FETCH_MISS','changeset','_members','loadOfflineData','_config','POST','params','csRejEvent','USERS_ENTER','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/comb','session','_sheetTransformSelectionsService','_waitForHeartbeatResponse','UPDATE_PERMISSION_OBJ','_isPermissionRej','[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.','getMemberID','_resendTimer','SHOULD_CLOSE_CONN','_socketService','members','_startTelemetryCollaborationNewChangeset','includes','640056PKHCNH','awaitingChangeset','asObservable','defineProperty','_resolveSessionIdentity','localUnitId','FETCH_MISSING','_memberService','retryConnectingTimer','cmd','_initUnitPermissionChange','_createSession','_adapter','session.room-not-exists','\x20-\x20','LIVESHARE_TERMINATE','isCompositionEnd','url','MUTATION','_state','[CollaborationSessionService]','_doCreateSocket','/universer-api/snapshot/','getImage','_updateStatus','_injector','encodeURIComponent','_shouldReportTelemetry','[CollaborationEntity]','_rescheduleHeartbeat','_roomMembers','symbol','_createInitialState','UNIVER_SHEET','_onUserJoin','catch','/block/','_sessionStatus$','[DataLoaderService]','_event$','updateMember','_collaborationUIEventService','socket\x20close','HEARTBEAT_TIMEOUT','PSEUDO_FETCH_MISSING_RESULT','onload','resend','PERMISSION_REJ','listRoles','UPDATE_CURSOR','accept','then','_cfgEnableObjInherit','iterator','_singleActiveUnitService','PERMISSION_DENIED','collaboration-client.local-cache-service','/universer-api/uniscript','sendHeartbeatTimer','origin','getResourcesRequest','shouldCloseConn','[CollaborationUndoRedoService]','list','4679184PYwTji','UNIVER_PDF','People','send','9347490ePWwCV','saveAttachment','/universer-api/oidc/authpage','_getSocketChannel','getTime','_handlerCallback','_transformUndoredo','listCollaborators','_userManagerService','_onConnectionFailed','LIVESHARE_OPERATION','_initCloseConn','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','charCodeAt','getValue','sid','loadUnitOfRevision','setCfgEnableObjInherit','{fileID}','NO_OTHER_CLIENTS_EDITING','_getCtorByUniverInstanceType','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_replaceFileID','_getAPIPrefixPath','parse','event$','_changesetSessionId','getUnitId','Failed\x20to\x20update\x20permission\x20point','session.room-cnt-exceeds','textRanges','_resendWithTimeout','_unlockTransition','socket$','rev','_clearLocalCache','_transformRemoteChangesetByIMECache','_entityInit$','socketService','_startCollaboration','_clearCollaborationTimeoutTimer','setWaitCount','_toggleOffline','members$','unit','revision','RECV','reject','getAllMembers','snapshotServerUrl','getOwnPropertyDescriptor','CHANGESET_SHOULD_RETRY','withCredentials','Univer','timeoutTimer','_collaborationTimeoutTimer','x-univer-host','signUrlServerUrl','_socketChannels','loadUnit','forEach','prototype','_createHandler','collabWebSocketUrl','_onMessage','_remoteChangesetQueue','_acknowledgedAwaitingRevision','onTransformRemoteChangesetByIMECache','initWorkbookPermissionChange','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getCurrentUser','every','post','COMPRESS_MUTATION_APPLY','_collaborationSessionService','registerHTTPInterceptor','MSG_FOR_ERROR','interceptor','_sessions','function','SUBMIT_CHANGESET','_state$','&assign=','/unit/','upload','_imageSourceCache','addImageSourceCache','set','error$','_listenToNetworkCondition','retryConnectingInterval','startsWith','_awaitingChangeset','_handleRemoteChangesets','_roomCreated$','_scheduleCompleteTimestamp','?url=','_getConfig','[PendingState]:\x20unhandled\x20univer\x20type:\x20','GLOBAL_ROOMS_CNT_EXCEEDS','mutations','[OfflineState]:\x20received\x20rejection.','retryCount','columnGroups','fetch_missing','editing\x20status\x20changed\x20to','pauseCollaboration','c2Prime','_clearRetryConnectingTimer','complete','resolveUnit','_compressMutationService','failed\x20to\x20apply\x20missed\x20changesets!','_showConflictNotification','_onCombEvent','sort','updatePermissionPoint','session.join-failed','reduce','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getSheetId','append','/collaborator','number','UNIVER_SLIDE','_onLocalMutation','_redoStacks','_getDownloadEndpointURL','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','transformChangesets','CHANGESET_ACK','&source=','\x20to\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getUnitOnRev','requestParams','/-/object/-/batch_allowed','_substituteRedoStack','1234047ttFvaH','_changesetReqId','_applyRemoteChangeset','newCsEvent','/universer-api/stream/file/upload','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','baseRev','PENDING','csAckEvent','tables','onTransformIME','__Key__','next','USERS_LEAVE','/resources','eventID','attachment','resourceIDs','fetchMissingChangesets','/universer-api/file/{fileID}/sign-url','_isEchoedAwaitingChangeset','/universer-api/user/session-ticket','endpoint','COLLABORATION_ENDPOINT_INVALID','uniscriptRunEvent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_telemetryInfo','apply','getTypeOfUnitAdded$','NOT_COLLAB','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','socketReady','/object','body','[SyncedState]:\x20received\x20rejection.','CHANGESET_REJ','c1Prime','headers','onRemoteChangeset','maxSize','href','SNAPSHOT_URL_KEY','_transformSelections','_transformAndApplyRemoteChangeset','message$','push','_submitChangeset','getConfig','_hasSessionsForEndpoint','online$','_tryEnsureSocket','uploadFileServerUrl','actions','_substituteUndoStack','csShouldRetryEvent','_HTTPService','_decreaseWaiting','_removeRoom','capture','getCollabEntity$','_socket','getUploadOptions','\x0aCurrent:\x20','base-ui.attachment-io.service','_members$','candidateSocket','SUCCUSS','floor','unitType','ws://127.0.0.1:8000/universer-api/comb/connect','docStateChange$','JOINING','batchAllowed','PERSON','_toggleOnline','_permissionService','dispose','target','[CollaborationSessionService]:\x20socket\x20error','toggleOffline','save\x20fail\x20reason\x20is\x20','_transformStack','getUnitStatus$','onSendChangeset','saveSnapshot','endsWith','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','confirm','[CollaborationSession]','src','status','_pendingMutations','getTypeOfUnitDisposed$','NEW_CHANGESETS','userID','dispose$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','collaboration-client.config','delete','emitEvent','_upload','setShowComponents','_onUserLeave','find','_sendHeartbeat','24ARBzvY','get','_maxTotalRetryTimeout','saveChangeset','SOCKET_FAILED','toggleOnline','OTHER_CLIENTS_EDITING','stringify','/object/','_getLoginPath','LIVESHARE_NEW_HOST','_identity','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','name','_clearUndo','[OfflineState]:\x20received\x20changeset.','size'];_0x1cc8=function(){return _0x4a8ade;};return _0x1cc8();}K=H([V(0x3,_0x32c7b6(_0x21335b)),V(0x4,_0x32c7b6(_0xd2295f)),V(0x5,_0x143b1e),V(0x6,_0x24738d),V(0x7,_0x3849f9),V(0x8,_0x30bd2c),V(0x9,_0x100ce1(U))],K);let q=un=class extends G{constructor(_0x406c24,_0x36bf4a,_0x20565e,_0x184307,_0x1c31b7,_0x3102c7,_0x1a78d2,_0x7ed6b9,_0x347d43,_0x53015b,_0x66ae36,_0x19817a,_0x219994,_0x144a2c){const _0xb8ef69=_0x1f5521;super(_0x406c24,_0x36bf4a,null,_0x20565e,_0x184307,_0x347d43,_0x219994,_0x3102c7,_0x144a2c),this[_0xb8ef69(0x391)]=_0x1c31b7,this['_userManagerService']=_0x1a78d2,this[_0xb8ef69(0x2dd)]=_0x7ed6b9,this[_0xb8ef69(0x2a1)]=_0x53015b,this[_0xb8ef69(0x2c5)]=_0x66ae36,this[_0xb8ef69(0x329)]=_0x19817a,z(this,_0xb8ef69(0x1fc),'pending'),z(this,'_scheduleCompleteTimestamp',null),z(this,_0xb8ef69(0x22c),null);}[_0x1f5521(0x2b1)](_0x2106ce){const _0x5400b6=_0x1f5521;return this[_0x5400b6(0x1fd)][_0x5400b6(0x1cf)](_0x2106ce),this['_updateLocalCache'](),this;}[_0x1f5521(0x1c8)](_0x2b4b61){const _0x83950a=_0x1f5521;if(this[_0x83950a(0x2b9)](_0x2b4b61))return this[_0x83950a(0x25b)](),this[_0x83950a(0x391)][_0x83950a(0x351)](Q,this[_0x83950a(0x322)],this['type'],null,this[_0x83950a(0x1fd)],null,[_0x2b4b61],this[_0x83950a(0x2c7)]);try{let _0x44f43d=this[_0x83950a(0x2c5)]['transformMutationsWithChangeset'](_0x2b4b61,this[_0x83950a(0x1fd)]);if(_0x71163b(_0x44f43d)){let {c1Prime:_0x54a97c,m2Prime:_0x204dd4}=_0x44f43d;this['_executeRemoteChangeset'](_0x54a97c);let _0x4b266a=this[_0x83950a(0x391)][_0x83950a(0x351)](un,this[_0x83950a(0x322)],this['type'],_0x204dd4,this[_0x83950a(0x2c7)]);this[_0x83950a(0x25b)]();let _0x5c344b=new Date()['getTime'](),_0x5728b3=this[_0x83950a(0x177)]?Math[_0x83950a(0x2b5)](this[_0x83950a(0x177)]-_0x5c344b,0x0):this[_0x83950a(0x34c)]();return _0x4b266a[_0x83950a(0x2be)](_0x5728b3),_0x4b266a;}throw _0x44f43d[_0x83950a(0x2fc)];}catch(_0x3f743c){return this['_logService'][_0x83950a(0x2fc)](_0x3f743c),this[_0x83950a(0x27e)](!0x1);}}[_0x1f5521(0x2f5)](_0x270971){const _0x5664e7=_0x1f5521;if(_0x270971[_0x5664e7(0x145)]<=this[_0x5664e7(0x285)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1f5521(0x275)](){const _0x3d2eb0=_0x1f5521;throw Error(_0x3d2eb0(0x356));}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){const _0x5d85f6=_0x1f5521;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this['unitID'],this[_0x5d85f6(0x258)],null,this[_0x5d85f6(0x1fd)],this['_handler']);}['toggleOnline'](){return this;}['_schedule'](_0x392b01){const _0x3dfe01=_0x1f5521;let _0x1392cb=_0x392b01??this[_0x3dfe01(0x34c)]();this[_0x3dfe01(0x177)]=new Date()[_0x3dfe01(0x3c0)]()+_0x1392cb,this[_0x3dfe01(0x22c)]=setTimeout(()=>{const _0x52bcaf=_0x3dfe01;this[_0x52bcaf(0x25b)]();let _0x4b460e=null;switch(this[_0x52bcaf(0x258)]){case _0x4f4a88[_0x52bcaf(0x399)]:_0x4b460e=Xt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x33c)]:_0x4b460e=this[_0x52bcaf(0x1fd)][_0x52bcaf(0x15f)](_0x24280c=>_0x24280c['id']===_0x47e1e8['id'])?$t(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]):Xt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x194)]:_0x4b460e=Qt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this['_revisionService'],this['_userManagerService']);break;case _0x4f4a88[_0x52bcaf(0x3b9)]:_0x4b460e=Zt(this[_0x52bcaf(0x1fd)],this['unitID'],this['_univerInstanceService'],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x2cb)]:_0x4b460e=Xt(this[_0x52bcaf(0x1fd)],this['unitID'],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x337)]:_0x4b460e=Xt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this['_univerInstanceService'],this[_0x52bcaf(0x247)],this['_userManagerService']);break;default:throw Error(_0x52bcaf(0x17a)+this[_0x52bcaf(0x258)]+_0x52bcaf(0x2bc));}let {changeset:_0x2fd117,pendingMutations:_0x5a2c09}=_0x4b460e;this[_0x52bcaf(0x2c7)][_0x52bcaf(0x1f5)](_0x2fd117);let _0x39701a=_0x5a2c09[_0x52bcaf(0x316)]?this[_0x52bcaf(0x391)]['createInstance'](Y,this[_0x52bcaf(0x322)],this[_0x52bcaf(0x258)],_0x2fd117,_0x5a2c09,this['_handler'],void 0x0):this[_0x52bcaf(0x391)]['createInstance'](J,this[_0x52bcaf(0x322)],this[_0x52bcaf(0x258)],_0x2fd117,this['_handler']);_0x39701a['_updateLocalCache'](),this[_0x52bcaf(0x2c7)][_0x52bcaf(0x227)](this,_0x39701a);},_0x1392cb);}['_getSendChangesetTimeout'](){const _0x43ff9c=_0x1f5521;let _0x56a703=this['_configService'][_0x43ff9c(0x1d1)](R);return(_0x56a703==null?void 0x0:_0x56a703[_0x43ff9c(0x352)])??0x7d0;}[_0x1f5521(0x3a6)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f5521(0x25b)](){const _0x628072=_0x1f5521;this[_0x628072(0x22c)]!=null&&(clearTimeout(this[_0x628072(0x22c)]),this[_0x628072(0x22c)]=null);}[_0x1f5521(0x27e)](_0x2f5e9c){const _0x1b70b3=_0x1f5521;return this[_0x1b70b3(0x25b)](),this[_0x1b70b3(0x391)][_0x1b70b3(0x351)](X,this[_0x1b70b3(0x322)],this[_0x1b70b3(0x258)],null,this[_0x1b70b3(0x1fd)],this['_handler'],_0x2f5e9c);}};q=un=H([V(0x4,_0x32c7b6(_0xd2295f)),V(0x5,_0x32c7b6(_0x21335b)),V(0x6,_0x32c7b6(_0x522a20)),V(0x7,_0x3849f9),V(0x8,_0x24738d),V(0x9,_0x123a79),V(0xa,_0x30bd2c),V(0xb,_0x238a9e),V(0xc,_0x143b1e),V(0xd,_0x100ce1(U))],q);let J=dn=class extends G{constructor(_0x38fd5a,_0x270e7b,_0x237446,_0x4c907e,_0x55f58b,_0x1d655c,_0x28b821,_0x55d746,_0x52f75f,_0x41c9e9,_0x23b8f5){const _0xdea443=_0x1f5521;super(_0x38fd5a,_0x270e7b,_0x237446,[],_0x4c907e,_0x28b821,_0x41c9e9,_0x1d655c,_0x23b8f5),this[_0xdea443(0x391)]=_0x55f58b,this['_logService']=_0x55d746,this[_0xdea443(0x2c5)]=_0x52f75f,z(this,'status','awaiting'),z(this,_0xdea443(0x21c),0x0),z(this,_0xdea443(0x20d),0x0),z(this,_0xdea443(0x372),void 0x0),z(this,'_sender',void 0x0);}['appendMutation'](_0xb0bd73){const _0x3a90ff=_0x1f5521;this['_clearScheduledTask']();let _0x4ec6d9=this[_0x3a90ff(0x391)][_0x3a90ff(0x351)](Y,this[_0x3a90ff(0x322)],this[_0x3a90ff(0x258)],this['_awaitingChangeset'],[_0xb0bd73],this['_handler'],this[_0x3a90ff(0x372)]);return _0x4ec6d9[_0x3a90ff(0x30e)](),_0x4ec6d9;}[_0x1f5521(0x1c8)](_0x2e3a92){const _0x37976d=_0x1f5521;if(this[_0x37976d(0x2b9)](_0x2e3a92))return this[_0x37976d(0x25b)](),this['_injector'][_0x37976d(0x351)](Q,this[_0x37976d(0x322)],this['type'],this['_awaitingChangeset'],[],null,[_0x2e3a92],this[_0x37976d(0x2c7)]);try{let _0x1f578e=this[_0x37976d(0x2c5)][_0x37976d(0x199)]([_0x2e3a92],[this[_0x37976d(0x174)]],!0x1);if(_0x32b26c(_0x1f578e)){let {c1Prime:_0x501e59,c2Prime:_0x1b5f2b}=_0x1f578e;this[_0x37976d(0x308)](_0x501e59[0x0]),_0x1b5f2b[0x0][_0x37976d(0x1a8)]=this[_0x37976d(0x285)](),this[_0x37976d(0x25b)]();let _0x5416be=this[_0x37976d(0x391)][_0x37976d(0x351)](dn,this['unitID'],this['type'],_0x1b5f2b[0x0],this['_handler']);return _0x5416be['_updateLocalCache'](),_0x5416be;}throw _0x1f578e['error'];}catch(_0x14c96b){return this['_logService'][_0x37976d(0x2fc)](_0x14c96b),this[_0x37976d(0x27e)](!0x1);}}[_0x1f5521(0x2f5)](_0x4f38f2){const _0x828b6=_0x1f5521;this[_0x828b6(0x25b)]();let _0x55790e=this[_0x828b6(0x247)][_0x828b6(0x2d5)](this['unitID']);if(_0x4f38f2[_0x828b6(0x145)]<=_0x55790e)return this;if(this[_0x828b6(0x2b9)](_0x4f38f2))return this['_injector'][_0x828b6(0x351)](Q,this[_0x828b6(0x322)],this[_0x828b6(0x258)],this[_0x828b6(0x174)],[],_0x4f38f2[_0x828b6(0x145)],[],this[_0x828b6(0x2c7)]);this['_incrementRevisionNumber']();let _0x471000=this[_0x828b6(0x391)][_0x828b6(0x351)](K,this[_0x828b6(0x322)],this[_0x828b6(0x258)],this[_0x828b6(0x2c7)]);return _0x471000[_0x828b6(0x30e)](),_0x471000;}[_0x1f5521(0x275)](_0x1ef083){const _0xbf70b5=_0x1f5521;return this[_0xbf70b5(0x27e)](!!(_0x1ef083!=null&&_0x1ef083[_0xbf70b5(0x282)]));}[_0x1f5521(0x314)](_0x23b65c){const _0x39c5cf=_0x1f5521;return this[_0x39c5cf(0x20d)]>hn?this[_0x39c5cf(0x1f1)]():(this[_0x39c5cf(0x372)]=ln(this[_0x39c5cf(0x21c)],{'timeout':this['_resendTimeout'],'reqId':_0x23b65c[_0x39c5cf(0x2f7)]}),this[_0x39c5cf(0x248)]=this['_resendTimer'][_0x39c5cf(0x2dc)](({reqId:_0x327828,timeout:_0x1363f1})=>{this['_resendWithTimeout'](_0x327828,_0x1363f1);}),this);}[_0x1f5521(0x1f1)](){const _0x593360=_0x1f5521;return this[_0x593360(0x25b)](),this['_injector']['createInstance'](Z,this[_0x593360(0x322)],this[_0x593360(0x258)],this[_0x593360(0x174)],[],this[_0x593360(0x2c7)]);}[_0x1f5521(0x210)](){return this;}[_0x1f5521(0x3a6)](){const _0x214c19=_0x1f5521;this[_0x214c19(0x2c7)]['onSendChangeset'](this[_0x214c19(0x174)]);}[_0x1f5521(0x27e)](_0x10af3d){const _0xc99033=_0x1f5521;return this['_clearScheduledTask'](),this[_0xc99033(0x391)]['createInstance'](X,this['unitID'],this[_0xc99033(0x258)],this[_0xc99033(0x174)],[],this[_0xc99033(0x2c7)],_0x10af3d);}[_0x1f5521(0x3db)](_0x13ef5b,_0x12729a){const _0xe7380b=_0x1f5521;var _0x37738d;_0x13ef5b===((_0x37738d=this['_awaitingChangeset'])==null?void 0x0:_0x37738d[_0xe7380b(0x2f7)])&&(this[_0xe7380b(0x3a6)](),this['_resendTimeout']=_0x12729a===0x0?0x3e8:Math[_0xe7380b(0x23c)](_0x12729a*0x2,mn),this[_0xe7380b(0x20d)]+=this[_0xe7380b(0x21c)]);}[_0x1f5521(0x25b)](){const _0x27888a=_0x1f5521;var _0x13fff5;(_0x13fff5=this[_0x27888a(0x248)])==null||_0x13fff5['unsubscribe'](),this[_0x27888a(0x21c)]=0x0,this[_0x27888a(0x20d)]=0x0;}};J=dn=H([V(0x4,_0x32c7b6(_0xd2295f)),V(0x5,_0x32c7b6(_0x21335b)),V(0x6,_0x24738d),V(0x7,_0x3849f9),V(0x8,_0x30bd2c),V(0x9,_0x143b1e),V(0xa,_0x100ce1(U))],J);let Y=fn=class extends G{constructor(_0x174e55,_0x381d6a,_0x159225,_0x592f52,_0x5b7383,_0x3f904b,_0x186c5b,_0x39689a,_0x5e2489,_0x4d42bc,_0xfb6220,_0x1d992b,_0x54b24e){const _0x5d090e=_0x1f5521;super(_0x174e55,_0x381d6a,_0x159225,_0x592f52,_0x5b7383,_0x5e2489,_0x1d992b,_0x39689a,_0x54b24e),this[_0x5d090e(0x391)]=_0x186c5b,this[_0x5d090e(0x2dd)]=_0x4d42bc,this['_transformService']=_0xfb6220,this['localCacheService']=_0x54b24e,z(this,_0x5d090e(0x1fc),'awaiting_with_pending'),z(this,'_resendTimeout',0x0),z(this,_0x5d090e(0x20d),0x0),z(this,_0x5d090e(0x372),void 0x0),z(this,'_sender',void 0x0),_0x3f904b&&(this[_0x5d090e(0x372)]=_0x3f904b,this['_sender']=this['_resendTimer'][_0x5d090e(0x2dc)](({reqId:_0x2be6dc,timeout:_0x1cae8c})=>{const _0x6c530c=_0x5d090e;this[_0x6c530c(0x3db)](_0x2be6dc,_0x1cae8c);}));}[_0x1f5521(0x2b1)](_0x2a0950){const _0x20eede=_0x1f5521;return this['_pendingMutations'][_0x20eede(0x1cf)](_0x2a0950),this;}[_0x1f5521(0x1c8)](_0x53dcc4){const _0x2d8ff5=_0x1f5521;if(this[_0x2d8ff5(0x2b9)](_0x53dcc4))return this[_0x2d8ff5(0x25b)](),this['_injector']['createInstance'](Q,this[_0x2d8ff5(0x322)],this[_0x2d8ff5(0x258)],this[_0x2d8ff5(0x174)],this['_pendingMutations'],null,[_0x53dcc4],this['_handler']);try{let _0xe507a0=this[_0x2d8ff5(0x2c5)][_0x2d8ff5(0x199)]([_0x53dcc4],[this[_0x2d8ff5(0x174)]],!0x1);if(_0x32b26c(_0xe507a0)){let {c1Prime:_0x39ee9c,c2Prime:_0x378149}=_0xe507a0,_0x21728f=this['_transformService'][_0x2d8ff5(0x222)](_0x39ee9c[0x0],this[_0x2d8ff5(0x1fd)]);if(_0x71163b(_0x21728f)){let {c1Prime:_0x3262a1,m2Prime:_0x313590}=_0x21728f;return this['_executeRemoteChangeset'](_0x3262a1),_0x378149[0x0]['baseRev']=this[_0x2d8ff5(0x285)](),this['_clearScheduledTask'](),this['_injector'][_0x2d8ff5(0x351)](fn,this[_0x2d8ff5(0x322)],this[_0x2d8ff5(0x258)],_0x378149[0x0],_0x313590,this[_0x2d8ff5(0x2c7)],void 0x0);}throw _0x21728f['error'];}throw _0xe507a0['error'];}catch(_0x2f0038){return this[_0x2d8ff5(0x2dd)][_0x2d8ff5(0x2fc)](_0x2f0038),this[_0x2d8ff5(0x27e)](!0x1);}}[_0x1f5521(0x2f5)](_0x3abe06){const _0x2b009d=_0x1f5521;this[_0x2b009d(0x25b)]();let _0x169b82=this[_0x2b009d(0x285)]();if(_0x3abe06['revision']<=_0x169b82)return this;if(this[_0x2b009d(0x2b9)](_0x3abe06))return this['_injector'][_0x2b009d(0x351)](Q,this['unitID'],this['type'],this[_0x2b009d(0x174)],this[_0x2b009d(0x1fd)],_0x3abe06['revision'],[],this[_0x2b009d(0x2c7)]);this['_incrementRevisionNumber']();let _0x206047=this['_injector'][_0x2b009d(0x351)](q,this[_0x2b009d(0x322)],this[_0x2b009d(0x258)],this['_pendingMutations'],this[_0x2b009d(0x2c7)]);return _0x206047['_schedule'](),_0x206047['_updateLocalCache'](),_0x206047;}[_0x1f5521(0x275)](_0x4e37a1){const _0x3b0baa=_0x1f5521;return this[_0x3b0baa(0x27e)](!!(_0x4e37a1!=null&&_0x4e37a1[_0x3b0baa(0x282)]));}['onRemoteRetry'](_0x4e44c3){const _0x6a917b=_0x1f5521;return this['_maxTotalRetryTimeout']>hn?this['toggleOffline']():(this[_0x6a917b(0x372)]=ln(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x4e44c3[_0x6a917b(0x2f7)]}),this[_0x6a917b(0x248)]=this['_resendTimer'][_0x6a917b(0x2dc)](({reqId:_0x31f83f,timeout:_0x3706bb})=>{this['_resendWithTimeout'](_0x31f83f,_0x3706bb);}),this);}[_0x1f5521(0x1f1)](){const _0x4cd26c=_0x1f5521;return this[_0x4cd26c(0x25b)](),this[_0x4cd26c(0x391)][_0x4cd26c(0x351)](Z,this[_0x4cd26c(0x322)],this[_0x4cd26c(0x258)],this[_0x4cd26c(0x174)],this[_0x4cd26c(0x1fd)],this[_0x4cd26c(0x2c7)]);}['toggleOnline'](){return this;}['resend'](){const _0x1afed4=_0x1f5521;this['_handler'][_0x1afed4(0x1f5)](this[_0x1afed4(0x174)]);}['_onConflict'](_0x57e6ba){const _0x31d1fc=_0x1f5521;return this['_clearScheduledTask'](),this[_0x31d1fc(0x391)][_0x31d1fc(0x351)](X,this['unitID'],this['type'],null,this[_0x31d1fc(0x1fd)],this['_handler'],_0x57e6ba);}[_0x1f5521(0x3db)](_0x23c5d3,_0x3be7aa){const _0x4fb8b7=_0x1f5521;var _0x4264ba;_0x23c5d3===((_0x4264ba=this[_0x4fb8b7(0x174)])==null?void 0x0:_0x4264ba[_0x4fb8b7(0x2f7)])&&(this[_0x4fb8b7(0x3a6)](),this[_0x4fb8b7(0x21c)]=_0x3be7aa===0x0?0x3e8:Math[_0x4fb8b7(0x23c)](_0x3be7aa*0x2,mn),this[_0x4fb8b7(0x20d)]+=this[_0x4fb8b7(0x21c)]);}[_0x1f5521(0x25b)](){const _0x5d91d1=_0x1f5521;var _0xb828ba;(_0xb828ba=this[_0x5d91d1(0x248)])==null||_0xb828ba['unsubscribe'](),this[_0x5d91d1(0x21c)]=0x0,this[_0x5d91d1(0x20d)]=0x0;}};Y=fn=H([V(0x6,_0x32c7b6(_0xd2295f)),V(0x7,_0x32c7b6(_0x21335b)),V(0x8,_0x24738d),V(0x9,_0x3849f9),V(0xa,_0x30bd2c),V(0xb,_0x143b1e),V(0xc,_0x100ce1(U))],Y);let X=class extends G{constructor(_0x114d8a,_0x37d48a,_0x1ea857,_0x7eb290,_0x2808af,_0x348bc3=!0x1,_0x316b4f,_0x3b7b55,_0x28f17c,_0x2f4d48,_0x5e6ced,_0x9dfdd5,_0x529ee0){const _0x2ca5c4=_0x1f5521;super(_0x114d8a,_0x37d48a,_0x1ea857,_0x7eb290,_0x2808af,_0x3b7b55,_0x28f17c,_0x2f4d48,_0x529ee0),this[_0x2ca5c4(0x36f)]=_0x348bc3,this['_permissionService']=_0x316b4f,this[_0x2ca5c4(0x24c)]=_0x5e6ced,this[_0x2ca5c4(0x3a1)]=_0x9dfdd5,this['localCacheService']=_0x529ee0,z(this,_0x2ca5c4(0x1fc),_0x2ca5c4(0x2ec)),this[_0x2ca5c4(0x189)](),this[_0x2ca5c4(0x3df)](),this[_0x2ca5c4(0x310)]();}[_0x1f5521(0x2b1)](){return this;}[_0x1f5521(0x1c8)](){return this;}[_0x1f5521(0x2f5)](){return this;}[_0x1f5521(0x275)](){return this;}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){return this;}['toggleOnline'](){return this;}[_0x1f5521(0x3a6)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x436d98=_0x1f5521;var _0x563edb,_0x4d3996,_0x19843d;(_0x563edb=this[_0x436d98(0x2ab)])==null||(_0x4d3996=_0x563edb[_0x436d98(0x268)])==null||(_0x4d3996=_0x4d3996[_0x436d98(0x359)](_0x563edb,this['unitID'],_0x436d98(0x2ec)))==null||_0x4d3996[_0x436d98(0x39b)](()=>void 0x0),(_0x19843d=this[_0x436d98(0x2ab)])==null||_0x19843d['updateOfflineData'](this[_0x436d98(0x322)],this[_0x436d98(0x258)],null,[]);}[_0x1f5521(0x189)](){const _0x393a50=_0x1f5521;this[_0x393a50(0x36f)]?this[_0x393a50(0x3a1)][_0x393a50(0x205)]({'id':_0x393a50(0x3af)}):this[_0x393a50(0x3a1)]['emitEvent']({'id':'CONFLICT'});}[_0x1f5521(0x310)](){const _0x92ede7=_0x1f5521;this[_0x92ede7(0x1ed)][_0x92ede7(0x18c)](new _0x57781e(this[_0x92ede7(0x322)])['id'],!0x1);}};X=H([V(0x6,_0x32c7b6(_0x51823a)),V(0x7,_0x24738d),V(0x8,_0x143b1e),V(0x9,_0x32c7b6(_0x21335b)),V(0xa,_0x32c7b6(_0xed8942)),V(0xb,_0x32c7b6(B)),V(0xc,_0x100ce1(U))],X);let Z=class extends G{constructor(_0x1c03b3,_0xe420c5,_0x5719c4,_0x2aeb35,_0x389917,_0x37c193,_0x339046,_0x8c7212,_0x28f175,_0x78865b){const _0x2d618b=_0x1f5521;super(_0x1c03b3,_0xe420c5,_0x5719c4,_0x2aeb35,_0x389917,_0x8c7212,_0x28f175,_0x339046,_0x78865b),this[_0x2d618b(0x391)]=_0x37c193,z(this,_0x2d618b(0x1fc),_0x2d618b(0x269));}[_0x1f5521(0x2b1)](_0x1d2d74){const _0x35bd7b=_0x1f5521;return this[_0x35bd7b(0x1fd)][_0x35bd7b(0x1cf)](_0x1d2d74),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xdf37b7){const _0x86af44=_0x1f5521;throw Error(_0x86af44(0x21a));}[_0x1f5521(0x2f5)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1f5521(0x275)](){const _0x2a095c=_0x1f5521;throw Error(_0x2a095c(0x17d));}[_0x1f5521(0x314)](){return this;}['toggleOffline'](){return this;}[_0x1f5521(0x210)](){const _0x2835cc=_0x1f5521;let {_injector:_0x3a36c1,_pendingMutations:_0x43c80f,_awaitingChangeset:_0x46d065,unitID:_0x5440a3,_handler:_0x1a450a,type:_0x4423f5}=this,_0x54ea1d=gn(_0x3a36c1,_0x5440a3,_0x4423f5,_0x46d065,_0x43c80f,_0x1a450a);return _0x54ea1d instanceof q?_0x54ea1d[_0x2835cc(0x2be)]():(_0x54ea1d instanceof Y||_0x54ea1d instanceof J)&&_0x54ea1d['resend'](),_0x54ea1d;}[_0x1f5521(0x3a6)](){const _0x1e1b9b=_0x1f5521;throw Error(_0x1e1b9b(0x3d1));}};Z=H([V(0x5,_0x32c7b6(_0xd2295f)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x24738d),V(0x8,_0x143b1e),V(0x9,_0x100ce1(U))],Z);let Q=class extends G{constructor(_0x94f7a1,_0x336b94,_0x5b0b30,_0x59b50d,_0x378fe7,_0x4fe006,_0x344781,_0x1aa62c,_0x544728,_0x21f295,_0x374e16,_0x5dd30d,_0x2dac2d,_0x1317f0){const _0x2fff32=_0x1f5521;super(_0x94f7a1,_0x336b94,_0x5b0b30,_0x59b50d,_0x344781,_0x374e16,_0x5dd30d,_0x544728,_0x1317f0),this[_0x2fff32(0x15a)]=_0x378fe7,this[_0x2fff32(0x238)]=_0x4fe006,this['_injector']=_0x1aa62c,this[_0x2fff32(0x2dd)]=_0x21f295,this['_transformService']=_0x2dac2d,this[_0x2fff32(0x263)]=_0x1317f0,z(this,_0x2fff32(0x1fc),_0x2fff32(0x180));}[_0x1f5521(0x2eb)](_0x25cbf0){const _0x513ae8=_0x1f5521;try{if(this[_0x513ae8(0x175)](_0x25cbf0)[_0x513ae8(0x293)])throw Error(_0x513ae8(0x18f));if(this[_0x513ae8(0x175)]([...this[_0x513ae8(0x238)]][_0x513ae8(0x18b)]((_0x4ca36a,_0x33b843)=>_0x4ca36a[_0x513ae8(0x145)]-_0x33b843[_0x513ae8(0x145)]))[_0x513ae8(0x293)])return this[_0x513ae8(0x238)]=[],this['_updateLocalCache'](),this[_0x513ae8(0x2c7)][_0x513ae8(0x302)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x4fd90a=this['_awaitingChangeset'],_0x23c900=this[_0x513ae8(0x1fd)],_0x27118d;if(_0x4fd90a&&_0x23c900[_0x513ae8(0x316)]!==0x0)_0x27118d=this[_0x513ae8(0x391)][_0x513ae8(0x351)](Y,this['unitID'],this[_0x513ae8(0x258)],_0x4fd90a,_0x23c900,this[_0x513ae8(0x2c7)],void 0x0);else{if(_0x4fd90a&&_0x23c900[_0x513ae8(0x316)]===0x0)_0x4fd90a[_0x513ae8(0x1a8)]=this[_0x513ae8(0x285)](),_0x27118d=this[_0x513ae8(0x391)][_0x513ae8(0x351)](J,this[_0x513ae8(0x322)],this[_0x513ae8(0x258)],_0x4fd90a,this[_0x513ae8(0x2c7)]);else{if(_0x23c900[_0x513ae8(0x316)]!==0x0){let _0x48f1cb=this[_0x513ae8(0x391)][_0x513ae8(0x351)](q,this[_0x513ae8(0x322)],this[_0x513ae8(0x258)],_0x23c900,this[_0x513ae8(0x2c7)]);_0x48f1cb[_0x513ae8(0x2be)](),_0x27118d=_0x48f1cb;}else _0x27118d=this[_0x513ae8(0x391)][_0x513ae8(0x351)](K,this[_0x513ae8(0x322)],this[_0x513ae8(0x258)],this[_0x513ae8(0x2c7)]);}}return _0x27118d['_updateLocalCache'](),_0x27118d;}catch(_0x2a7e36){return this[_0x513ae8(0x2dd)][_0x513ae8(0x2fc)](_0x513ae8(0x271),_0x513ae8(0x188),_0x2a7e36),this[_0x513ae8(0x391)][_0x513ae8(0x351)](X,this[_0x513ae8(0x322)],this['type'],this[_0x513ae8(0x174)],this['_pendingMutations'],this[_0x513ae8(0x2c7)],!0x1);}}[_0x1f5521(0x175)](_0x4c3738){const _0x473013=_0x1f5521;this[_0x473013(0x29f)]();for(let _0x4759e4=0x0;_0x4759e4<_0x4c3738[_0x473013(0x316)];_0x4759e4++){let _0x35c9e4=_0x4c3738[_0x4759e4],_0xb04f3b=this[_0x473013(0x285)]();if(!(_0x35c9e4[_0x473013(0x145)]<=_0xb04f3b)){if(_0x35c9e4[_0x473013(0x145)]>_0xb04f3b+0x1)return{'missingChangesets':!0x0};if(this[_0x473013(0x1b6)](_0x35c9e4)){this[_0x473013(0x276)]();continue;}this[_0x473013(0x1cd)](_0x35c9e4),this[_0x473013(0x29f)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x5ae17e){const _0x56e04c=_0x1f5521;let _0x2f96a2=_0x5ae17e,_0x100ff9=this['_awaitingChangeset'];if(_0x100ff9){let _0x3328f9=this[_0x56e04c(0x2c5)][_0x56e04c(0x199)]([_0x5ae17e],[_0x100ff9],!0x1);if(!_0x32b26c(_0x3328f9))throw _0x3328f9[_0x56e04c(0x2fc)];_0x2f96a2=_0x3328f9[_0x56e04c(0x1c6)][0x0],_0x100ff9=_0x3328f9[_0x56e04c(0x183)][0x0];}let _0x3416e0=this[_0x56e04c(0x1fd)];if(_0x3416e0[_0x56e04c(0x316)]){let _0x453211=this[_0x56e04c(0x2c5)]['transformMutationsWithChangeset'](_0x2f96a2,_0x3416e0);if(!_0x71163b(_0x453211))throw _0x453211[_0x56e04c(0x2fc)];_0x2f96a2=_0x453211[_0x56e04c(0x1c6)],_0x3416e0=_0x453211[_0x56e04c(0x242)];}this[_0x56e04c(0x308)](_0x2f96a2),_0x100ff9&&(_0x100ff9[_0x56e04c(0x1a8)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x100ff9,this[_0x56e04c(0x1fd)]=_0x3416e0;}['_acknowledgeAwaitingIfReady'](){const _0xe2f71e=_0x1f5521;if(!this['_awaitingChangeset']||this[_0xe2f71e(0x15a)]==null)return;let _0x27bf82=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x27bf82)throw Error(_0xe2f71e(0x15d)+this[_0xe2f71e(0x15a)]+'.');this['_acknowledgedAwaitingRevision']===_0x27bf82+0x1&&this[_0xe2f71e(0x276)]();}['_acknowledgeAwaiting'](){const _0x3ccad5=_0x1f5521;this[_0x3ccad5(0x2e9)](),this[_0x3ccad5(0x174)]=null,this[_0x3ccad5(0x15a)]=null;}[_0x1f5521(0x1b6)](_0x356fb0){const _0x22b263=_0x1f5521;let _0x54dd31=this['_awaitingChangeset'];return!_0x54dd31||!_0x54dd31['sid']||_0x54dd31['reqId']===null||_0x54dd31['reqId']===void 0x0?!0x1:_0x356fb0[_0x22b263(0x322)]===_0x54dd31[_0x22b263(0x322)]&&_0x356fb0[_0x22b263(0x3cb)]===_0x54dd31[_0x22b263(0x3cb)]&&_0x356fb0[_0x22b263(0x2f7)]===_0x54dd31[_0x22b263(0x2f7)];}[_0x1f5521(0x3a6)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f5521(0x2b1)](_0x194071){const _0x5ca2b8=_0x1f5521;return this['_pendingMutations'][_0x5ca2b8(0x1cf)](_0x194071),this;}[_0x1f5521(0x1c8)](_0x312574){const _0x5dbae8=_0x1f5521;return this['_queuedRemoteChangesets'][_0x5dbae8(0x1cf)](_0x312574),this;}['onRemoteAck'](_0x971d55){const _0x2d0585=_0x1f5521;if(this[_0x2d0585(0x174)]){let _0x264f98=this[_0x2d0585(0x285)]();return _0x971d55[_0x2d0585(0x145)]<=_0x264f98||(_0x264f98+0x1===_0x971d55[_0x2d0585(0x145)]?(this[_0x2d0585(0x2e9)](),this[_0x2d0585(0x174)]=null,this[_0x2d0585(0x15a)]=null):this[_0x2d0585(0x15a)]=_0x971d55[_0x2d0585(0x145)]),this;}if(_0x971d55[_0x2d0585(0x145)]<=this[_0x2d0585(0x285)]())return this;throw Error(_0x2d0585(0x1bb));}[_0x1f5521(0x275)](_0x176b3d){const _0x38e28d=_0x1f5521;return this[_0x38e28d(0x27e)](!!(_0x176b3d!=null&&_0x176b3d[_0x38e28d(0x282)]));}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){const _0x217551=_0x1f5521;return this[_0x217551(0x391)]['createInstance'](Z,this[_0x217551(0x322)],this['type'],this[_0x217551(0x174)],this[_0x217551(0x1fd)],this[_0x217551(0x2c7)]);}[_0x1f5521(0x210)](){return this;}[_0x1f5521(0x27e)](_0x52d654){const _0x496b0a=_0x1f5521;return this[_0x496b0a(0x391)]['createInstance'](X,this[_0x496b0a(0x322)],this[_0x496b0a(0x258)],this['_awaitingChangeset'],this[_0x496b0a(0x1fd)],this[_0x496b0a(0x2c7)],_0x52d654);}};Q=H([V(0x7,_0x32c7b6(_0xd2295f)),V(0x8,_0x32c7b6(_0x21335b)),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x143b1e),V(0xc,_0x30bd2c),V(0xd,_0x100ce1(U))],Q);function gn(_0x55e892,_0x45ba61,_0x5b368a,_0x15da9a,_0x21cd02,_0x51e18d){const _0x34bb03=_0x1f5521;return _0x15da9a&&_0x21cd02[_0x34bb03(0x316)]?_0x55e892['createInstance'](Y,_0x45ba61,_0x5b368a,_0x15da9a,_0x21cd02,_0x51e18d,void 0x0):_0x15da9a?_0x55e892[_0x34bb03(0x351)](J,_0x45ba61,_0x5b368a,_0x15da9a,_0x51e18d):_0x21cd02['length']?_0x55e892[_0x34bb03(0x351)](q,_0x45ba61,_0x5b368a,_0x21cd02,_0x51e18d):_0x55e892[_0x34bb03(0x351)](K,_0x45ba61,_0x5b368a,_0x51e18d);}let $=class extends _0x2fb3e4{get[_0x1f5521(0x2e4)](){const _0x236f2f=_0x1f5521;return this[_0x236f2f(0x38b)];}constructor(_0x15259a,_0xaa74ca,_0x362943,_0x427c86,_0x58dc6f,_0x22891b,_0x1762a3,_0x39294f,_0x209572,_0x17e9db,_0x56d45b,_0x5e1c35,_0x1a2969,_0x2fe06f){const _0x5598e7=_0x1f5521;super(),this[_0x5598e7(0x322)]=_0x15259a,this[_0x5598e7(0x36b)]=_0xaa74ca,this[_0x5598e7(0x34f)]=_0x362943,this[_0x5598e7(0x391)]=_0x427c86,this['_compressMutationService']=_0x58dc6f,this['_localeService']=_0x22891b,this['_revisionService']=_0x1762a3,this[_0x5598e7(0x311)]=_0x39294f,this[_0x5598e7(0x329)]=_0x209572,this[_0x5598e7(0x2dd)]=_0x17e9db,this[_0x5598e7(0x320)]=_0x56d45b,this[_0x5598e7(0x1ed)]=_0x5e1c35,this[_0x5598e7(0x3ae)]=_0x1a2969,this[_0x5598e7(0x2ab)]=_0x2fe06f,z(this,_0x5598e7(0x169),new _0x21afa9(null)),z(this,_0x5598e7(0x278),this[_0x5598e7(0x169)][_0x5598e7(0x37a)]()),z(this,'_state',void 0x0),z(this,_0x5598e7(0x255),!0x1),z(this,_0x5598e7(0x3d6),''),z(this,_0x5598e7(0x1a3),0x0),z(this,_0x5598e7(0x232),this['state$'][_0x5598e7(0x220)](_0x185b9d(_0x262dbd=>_0x262dbd?_0x262dbd['status']:_0x5598e7(0x269)),_0x4f20dd({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x5598e7(0x22b),!0x1),z(this,_0x5598e7(0x159),[]);}async[_0x1f5521(0x2c2)](){const _0xcfdfc4=_0x1f5521;if(this[_0xcfdfc4(0x2e4)])throw Error(_0xcfdfc4(0x19d));await this['_init']();}[_0x1f5521(0x182)](){const _0x16f692=_0x1f5521;return this[_0x16f692(0x255)]=!0x0,_0x1e0938(()=>{const _0x345ac5=_0x16f692;this[_0x345ac5(0x255)]=!0x1,this[_0x345ac5(0x2aa)]();});}['onLocalMutation'](_0x33e752){this['_onLocalMutation'](_0x33e752);}['_updateState'](_0x21f190){const _0x808a03=_0x1f5521;this[_0x808a03(0x38b)]=_0x21f190,this[_0x808a03(0x169)][_0x808a03(0x1ae)](_0x21f190);}async['_init'](){const _0x829c8=_0x1f5521;if(this[_0x829c8(0x2ff)](await this['_createInitialState']()),this[_0x829c8(0x3ae)]){var _0x55cb6f;(_0x55cb6f=this[_0x829c8(0x3ae)])==null||_0x55cb6f['editingUnit'](this[_0x829c8(0x322)]),this[_0x829c8(0x34e)](this[_0x829c8(0x3ae)][_0x829c8(0x1f4)](this['unitID'])[_0x829c8(0x2dc)](_0x4820da=>{const _0x3c3ad1=_0x829c8;this[_0x3c3ad1(0x2dd)]['debug'](_0x3c3ad1(0x394),_0x3c3ad1(0x181),_0x4820da),_0x4820da===0x1?(this[_0x3c3ad1(0x311)][_0x3c3ad1(0x205)]({'id':_0x3c3ad1(0x2af)}),this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x18c)](new _0x57781e(this[_0x3c3ad1(0x322)])['id'],!0x1),this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x207)](!0x1)):(this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x18c)](new _0x57781e(this[_0x3c3ad1(0x322)])['id'],!0x0),this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x207)](!0x0));}));}let _0x10ef51=!0x1;return this[_0x829c8(0x34e)](this[_0x829c8(0x36b)][_0x829c8(0x30a)][_0x829c8(0x2dc)](_0x4ce756=>{const _0x4c3359=_0x829c8;_0x4ce756===0x3?this[_0x4c3359(0x1ec)](_0x10ef51):_0x4ce756===0x2&&(_0x10ef51=!0x0,this[_0x4c3359(0x142)]());})),this['disposeWithMe'](this[_0x829c8(0x36b)][_0x829c8(0x3d5)][_0x829c8(0x2dc)](_0x462695=>{const _0x4a42fb=_0x829c8;try{switch(_0x462695[_0x4a42fb(0x1b1)]){case _0x28cc07[_0x4a42fb(0x1ff)]:this[_0x4a42fb(0x260)](_0x50c9bb(_0x462695['data']));break;case _0x28cc07[_0x4a42fb(0x19a)]:this[_0x4a42fb(0x2e0)](_0x462695[_0x4a42fb(0x2cc)]);break;case _0x28cc07[_0x4a42fb(0x1c5)]:this[_0x4a42fb(0x2f0)]();break;case _0x28cc07[_0x4a42fb(0x14b)]:this[_0x4a42fb(0x2e5)](_0x462695[_0x4a42fb(0x2cc)]);break;case _0x28cc07['PSEUDO_FETCH_MISSING_RESULT']:this['_onFetchMissResult'](_0x462695[_0x4a42fb(0x2cc)][_0x4a42fb(0x25d)][_0x4a42fb(0x2ea)](_0x32c1f2=>_0x50c9bb(_0x32c1f2)));break;case _0x28cc07[_0x4a42fb(0x3a7)]:this[_0x4a42fb(0x2f0)]({'isPermissionRej':!0x0});break;case _0x28cc07[_0x4a42fb(0x34b)]:break;}}catch(_0x42adb5){throw console[_0x4a42fb(0x2fc)](_0x4a42fb(0x357),_0x42adb5),_0x42adb5;}})),this[_0x829c8(0x38b)];}['_unlockTransition'](){const _0x4a2d8e=_0x1f5521;this[_0x4a2d8e(0x22b)]=!0x1;}[_0x1f5521(0x283)](){const _0x4f4d1b=_0x1f5521;if(this[_0x4f4d1b(0x22b)])throw Error(_0x4f4d1b(0x370));this[_0x4f4d1b(0x22b)]=!0x0;}[_0x1f5521(0x195)](_0xf2461a){const _0x2a117b=_0x1f5521;this[_0x2a117b(0x283)](),this[_0x2a117b(0x2ff)](this['_state'][_0x2a117b(0x2b1)](_0xf2461a)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x43732c){const _0x16481d=_0x1f5521;if(!(_0x43732c[_0x16481d(0x145)]<=this[_0x16481d(0x247)]['getCurrentRevOfUnit'](this[_0x16481d(0x322)]))){if(this[_0x16481d(0x255)]){this[_0x16481d(0x159)][_0x16481d(0x1cf)](_0x43732c);return;}this[_0x16481d(0x1a4)](_0x43732c);}}[_0x1f5521(0x2aa)](){const _0x1eb10d=_0x1f5521;this[_0x1eb10d(0x159)]['forEach'](_0x2b8d60=>this[_0x1eb10d(0x1a4)](_0x2b8d60)),this[_0x1eb10d(0x159)]=[];}[_0x1f5521(0x1a4)](_0x4a3ec5){const _0x32f66a=_0x1f5521;let _0x2382ef=this[_0x32f66a(0x187)][_0x32f66a(0x165)][_0x32f66a(0x32a)](this[_0x32f66a(0x187)][_0x32f66a(0x165)][_0x32f66a(0x304)]()['COMPRESS_MUTATION_APPLY'])(_0x4a3ec5[_0x32f66a(0x17c)],null)||_0x4a3ec5[_0x32f66a(0x17c)],_0x57f138={..._0x4a3ec5,'mutations':_0x2382ef};this[_0x32f66a(0x283)](),this['_updateState'](this[_0x32f66a(0x38b)]['onRemoteChangeset'](_0x57f138)),this[_0x32f66a(0x3dc)]();}['_onRemoteACK'](_0x6ed843){const _0x2d3865=_0x1f5521;this[_0x2d3865(0x283)](),this[_0x2d3865(0x2ff)](this['_state']['onRemoteAck'](_0x6ed843)),this['_unlockTransition']();}['_onRemoteRejected'](_0xe2c4b8){const _0x36d11c=_0x1f5521;this['_lockTransition'](),this[_0x36d11c(0x2ff)](this['_state']['onRemoteRej'](_0xe2c4b8)),this['_unlockTransition']();}[_0x1f5521(0x2e5)](_0x2b29a4){const _0x194c26=_0x1f5521;this[_0x194c26(0x283)](),this[_0x194c26(0x2ff)](this[_0x194c26(0x38b)]['onRemoteRetry'](_0x2b29a4)),this[_0x194c26(0x3dc)]();}[_0x1f5521(0x31a)](_0xa97d4c){const _0x5d0836=_0x1f5521;if(!(this[_0x5d0836(0x38b)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x5c11fc=_0xa97d4c[_0x5d0836(0x2ea)](_0xd7dcfc=>{const _0x2bbbc0=_0x5d0836;let _0x3780a1=this[_0x2bbbc0(0x187)][_0x2bbbc0(0x165)][_0x2bbbc0(0x32a)](this[_0x2bbbc0(0x187)][_0x2bbbc0(0x165)][_0x2bbbc0(0x304)]()[_0x2bbbc0(0x161)])(_0xd7dcfc[_0x2bbbc0(0x17c)],null)||_0xd7dcfc[_0x2bbbc0(0x17c)];return{..._0xd7dcfc,'mutations':_0x3780a1};});this['_lockTransition'](),this[_0x5d0836(0x2ff)](this['_state'][_0x5d0836(0x2eb)](_0x5c11fc)),this[_0x5d0836(0x3dc)]();}[_0x1f5521(0x142)](){const _0x487efe=_0x1f5521;this[_0x487efe(0x283)](),this['_updateState'](this[_0x487efe(0x38b)][_0x487efe(0x1f1)]()),this[_0x487efe(0x3dc)]();}[_0x1f5521(0x1ec)](_0x2a5d3f=!0x1){const _0x4f3fb5=_0x1f5521;this['_lockTransition'](),this['_updateState'](this[_0x4f3fb5(0x38b)][_0x4f3fb5(0x210)]()),this[_0x4f3fb5(0x3dc)]();let _0x406137=this[_0x4f3fb5(0x38b)];_0x2a5d3f&&_0x406137 instanceof K&&(this[_0x4f3fb5(0x283)](),this[_0x4f3fb5(0x2ff)](_0x406137['fetchMiss']()),this[_0x4f3fb5(0x3dc)]());}async[_0x1f5521(0x398)](){return new Promise(_0x4243ef=>{const _0x38d73a=_0x2b9e;this[_0x38d73a(0x36b)][_0x38d73a(0x30a)]['pipe'](_0x14e08c(0x1))[_0x38d73a(0x2dc)](async _0x1795fb=>{const _0x2df588=_0x38d73a;_0x4243ef(await this[_0x2df588(0x2c1)](_0x1795fb===0x3));});});}[_0x1f5521(0x156)](){const _0x520e89=_0x1f5521;let _0x303507=this[_0x520e89(0x322)];return{'onStateChange':(_0x576243,_0x49fe48)=>{const _0x3f904f=_0x520e89;if(_0x576243!==this[_0x3f904f(0x38b)])throw Error(_0x3f904f(0x202)+_0x576243[_0x3f904f(0x1fc)]+_0x3f904f(0x2fd)+_0x49fe48['status']+_0x3f904f(0x1e0)+this[_0x3f904f(0x38b)]['status']);this['_updateState'](_0x49fe48);},'onSendChangeset':_0x39bdfc=>{const _0xf55c9=_0x520e89;_0x39bdfc[_0xf55c9(0x3cb)]||(_0x39bdfc[_0xf55c9(0x3cb)]=this['_changesetSessionId'],_0x39bdfc[_0xf55c9(0x2f7)]=++this[_0xf55c9(0x1a3)]);let _0x22ab0d={'eventID':_0x28cc07[_0xf55c9(0x168)],'data':{'unitID':_0x39bdfc[_0xf55c9(0x322)],'unitType':this[_0xf55c9(0x34f)],'changeset':_0x39bdfc,'memberID':this['session'][_0xf55c9(0x371)]()}};this[_0xf55c9(0x36b)][_0xf55c9(0x3bb)](_0x22ab0d,this[_0xf55c9(0x322)]);},'onMissingChangesets':({from:_0x346302,to:_0x520ffd})=>{const _0x22bb5e=_0x520e89;this[_0x22bb5e(0x2dd)][_0x22bb5e(0x35a)](_0x22bb5e(0x394),'fetching\x20missing\x20changesets\x20from\x20'+_0x346302+_0x22bb5e(0x19c)+_0x520ffd);let _0x59bdd9={'eventID':_0x28cc07['FETCH_MISSING'],'data':{'unitID':_0x303507,'unitType':this['_type'],'from':_0x346302,'to':_0x520ffd}};this[_0x22bb5e(0x36b)][_0x22bb5e(0x3bb)](_0x59bdd9,this[_0x22bb5e(0x322)]);}};}async['_createInitialStateImpl'](_0x41fa40){const _0x55a2fc=_0x1f5521;var _0x1ea1b1;let _0x290b45=await((_0x1ea1b1=this['_localCacheService'])==null?void 0x0:_0x1ea1b1[_0x55a2fc(0x363)](this[_0x55a2fc(0x322)])),_0x170d25=(_0x290b45==null?void 0x0:_0x290b45[_0x55a2fc(0x17c)])??[],_0x18a72f=(_0x290b45==null?void 0x0:_0x290b45['awaitingChangeset'])??null,_0x2f3621=!!(_0x18a72f!=null&&_0x18a72f[_0x55a2fc(0x3cb)])&&!!(_0x18a72f!=null&&_0x18a72f[_0x55a2fc(0x2f7)]);this[_0x55a2fc(0x3d6)]=_0x2f3621?_0x18a72f['sid']:_0xf5037d(),this[_0x55a2fc(0x1a3)]=_0x2f3621?_0x18a72f['reqId']:0x0;let _0x1cca9d=this['unitID'];try{this['_replayCachedMutations'](_0x18a72f,_0x170d25);}catch(_0x25068c){this[_0x55a2fc(0x2dd)][_0x55a2fc(0x2fc)](_0x25068c);}let _0x4a697b=this[_0x55a2fc(0x156)]();if(_0x41fa40){let _0x4955b9=gn(this[_0x55a2fc(0x391)],_0x1cca9d,this[_0x55a2fc(0x34f)],_0x18a72f,_0x170d25,_0x4a697b);return _0x4955b9 instanceof q?_0x4955b9[_0x55a2fc(0x2be)]():(_0x4955b9 instanceof Y||_0x4955b9 instanceof J)&&_0x4955b9[_0x55a2fc(0x3a6)](),_0x4955b9;}return this['_injector'][_0x55a2fc(0x351)](Z,_0x1cca9d,this['_type'],_0x18a72f,_0x170d25,_0x4a697b);}[_0x1f5521(0x228)](_0x3191b2,_0x3d9fdd){const _0x59b947=_0x1f5521;var _0x894461,_0x205d0b;let _0x1ce3f7=this[_0x59b947(0x187)]['interceptor'][_0x59b947(0x32a)](this[_0x59b947(0x187)][_0x59b947(0x165)][_0x59b947(0x304)]()[_0x59b947(0x161)]);(_0x894461=_0x1ce3f7((_0x3191b2==null?void 0x0:_0x3191b2[_0x59b947(0x17c)])||[],null))==null||_0x894461['forEach'](_0x58f84a=>this[_0x59b947(0x320)]['executeCommand'](_0x58f84a['id'],_0x58f84a[_0x59b947(0x366)])),(_0x205d0b=_0x1ce3f7(_0x3d9fdd||[],null))==null||_0x205d0b[_0x59b947(0x154)](_0x307fa2=>this['_commandService'][_0x59b947(0x224)](_0x307fa2['id'],_0x307fa2[_0x59b947(0x366)]));}};$=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],$);let _n=class extends ${constructor(_0x4110d5,_0x202745,_0x5b6136,_0x8e11a7,_0x29dbf3,_0x2e031c,_0xfdbfd6,_0x19b47a,_0x3e83df,_0x3aef70,_0x50dbc7,_0x32faeb,_0xac168a,_0x1d0cfa,_0x5f48e8){const _0xe5cacb=_0x1f5521;super(_0x4110d5,_0x5b6136,_0x202745,_0x8e11a7,_0x29dbf3,_0x2e031c,_0xfdbfd6,_0x19b47a,_0x3e83df,_0x3aef70,_0x50dbc7,_0x32faeb,_0x1d0cfa,_0x5f48e8),this[_0xe5cacb(0x322)]=_0x4110d5,this['type']=_0x202745,this[_0xe5cacb(0x284)]=_0xac168a,z(this,_0xe5cacb(0x3c1),null);}['addHandlerCallback'](_0x4b85ec){const _0x215d72=_0x1f5521;this[_0x215d72(0x3c1)]=_0x4b85ec;}[_0x1f5521(0x1ee)](){const _0x4a5284=_0x1f5521;this[_0x4a5284(0x3c1)]=null,super[_0x4a5284(0x1ee)]();}['_createHandler'](){const _0x3534b7=_0x1f5521;let _0x141d51=super[_0x3534b7(0x156)]();return _0x141d51['onTransformIME']=_0x1e9741=>{const _0x161ccd=_0x3534b7;var _0x534f5a,_0x386e82;return(_0x534f5a=this[_0x161ccd(0x3c1)])==null||(_0x386e82=_0x534f5a[_0x161ccd(0x1ac)])==null?void 0x0:_0x386e82['call'](_0x534f5a,_0x1e9741);},_0x141d51[_0x3534b7(0x31e)]=_0x18669e=>{const _0x36f94f=_0x3534b7;var _0x84acfa,_0x558384;return(_0x84acfa=this[_0x36f94f(0x3c1)])==null||(_0x558384=_0x84acfa[_0x36f94f(0x31e)])==null?void 0x0:_0x558384[_0x36f94f(0x359)](_0x84acfa,_0x18669e);},_0x141d51[_0x3534b7(0x339)]=_0x582c73=>{const _0x44c810=_0x3534b7;var _0x159e75,_0x2c5660;return(_0x159e75=this[_0x44c810(0x3c1)])==null||(_0x2c5660=_0x159e75[_0x44c810(0x339)])==null?void 0x0:_0x2c5660[_0x44c810(0x359)](_0x159e75,_0x582c73);},_0x141d51[_0x3534b7(0x29b)]=_0x349e5c=>{const _0x130b3f=_0x3534b7;var _0x5c0d02,_0x2a2f09;return(_0x5c0d02=this[_0x130b3f(0x3c1)])==null||(_0x2a2f09=_0x5c0d02[_0x130b3f(0x29b)])==null?void 0x0:_0x2a2f09[_0x130b3f(0x359)](_0x5c0d02,_0x349e5c);},_0x141d51[_0x3534b7(0x15b)]=_0x18dead=>{const _0x9e41bb=_0x3534b7;var _0x39b3a4,_0x2d1bbb;return((_0x39b3a4=this[_0x9e41bb(0x3c1)])==null||(_0x2d1bbb=_0x39b3a4[_0x9e41bb(0x15b)])==null?void 0x0:_0x2d1bbb[_0x9e41bb(0x359)](_0x39b3a4,_0x18dead))??_0x18dead;},_0x141d51[_0x3534b7(0x236)]=_0x1a0150=>{const _0x3d1083=_0x3534b7;var _0x44e003,_0x21a95c;return((_0x44e003=this[_0x3d1083(0x3c1)])==null||(_0x21a95c=_0x44e003[_0x3d1083(0x236)])==null?void 0x0:_0x21a95c['call'](_0x44e003,_0x1a0150))??_0x1a0150;},_0x141d51;}async['_init'](){const _0x559f6d=_0x1f5521;let _0x270051=await super['_init']();return this[_0x559f6d(0x34e)](this['_docStateChangeManagerService'][_0x559f6d(0x1e8)]['subscribe'](_0xab2bef=>{const _0x29d04d=_0x559f6d;if(_0xab2bef==null||_0xab2bef[_0x29d04d(0x2c4)]!==this[_0x29d04d(0x322)])return;let {commandId:_0xcdd74b,redoState:_0x47d2d1,unitId:_0x1f4adc}=_0xab2bef,_0x59e87c={'id':_0xcdd74b,'type':_0x3ac237[_0x29d04d(0x38a)],'params':{'unitId':_0x1f4adc,'actions':_0x47d2d1[_0x29d04d(0x1d6)],'textRanges':null}};this['_onLocalMutation'](_0x59e87c);})),this['disposeWithMe'](this[_0x559f6d(0x320)][_0x559f6d(0x277)]((_0x4d2302,_0x1e6e69)=>{const _0x1feacd=_0x559f6d;if(_0x4d2302[_0x1feacd(0x258)]!==_0x3ac237[_0x1feacd(0x38a)]||_0x1e6e69!=null&&_0x1e6e69['fromCollab']||_0x1e6e69!=null&&_0x1e6e69[_0x1feacd(0x26c)]||_0x4d2302['id']===_0x47e1e8['id'])return;let _0x15a4d5=_0x4d2302[_0x1feacd(0x366)];if((_0x15a4d5==null?void 0x0:_0x15a4d5['unitId'])!==this[_0x1feacd(0x322)])return;let _0x12b9ff=_0x4d2302,_0x5040ae=this[_0x1feacd(0x187)][_0x1feacd(0x165)][_0x1feacd(0x32a)](this['_compressMutationService'][_0x1feacd(0x165)]['getInterceptPoints']()[_0x1feacd(0x2e2)])([_0x12b9ff],this[_0x1feacd(0x329)])||[_0x12b9ff];this[_0x1feacd(0x195)](_0x5040ae[0x0]);})),_0x270051;}};_n=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x32c7b6(_0x3382a8)),V(0xd,_0x100ce1(W)),V(0xe,_0x100ce1(U))],_n);let vn=class extends ${constructor(_0x54836d,_0x3b9c13,_0x4d32aa,_0x99b26d,_0x44ead6,_0x6bce31,_0x148112,_0x3befb2,_0x326cab,_0x49ba80,_0x2507ab,_0x46a4a6,_0x1a2a84,_0x2e90e1){const _0x126a3a=_0x1f5521;super(_0x54836d,_0x4d32aa,_0x3b9c13,_0x99b26d,_0x44ead6,_0x6bce31,_0x148112,_0x3befb2,_0x326cab,_0x49ba80,_0x2507ab,_0x46a4a6,_0x1a2a84,_0x2e90e1),this['unitID']=_0x54836d,this[_0x126a3a(0x258)]=_0x3b9c13;}async[_0x1f5521(0x29a)](){const _0x342e8e=_0x1f5521;let _0x13521f=await super[_0x342e8e(0x29a)]();return this[_0x342e8e(0x34e)](this['_commandService']['onMutationExecutedForCollab']((_0x1d71a6,_0x38b05a)=>{const _0x5a989a=_0x342e8e;if(_0x1d71a6[_0x5a989a(0x258)]!==_0x3ac237[_0x5a989a(0x38a)]||_0x38b05a!=null&&_0x38b05a[_0x5a989a(0x246)]||_0x38b05a!=null&&_0x38b05a['onlyLocal'])return;let _0xc3e86=_0x1d71a6[_0x5a989a(0x366)];if((_0xc3e86==null?void 0x0:_0xc3e86[_0x5a989a(0x2c4)])!==this[_0x5a989a(0x322)])return;let _0x254411=_0x1d71a6,_0x361308=this[_0x5a989a(0x187)][_0x5a989a(0x165)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5a989a(0x165)]['getInterceptPoints']()[_0x5a989a(0x2e2)])([_0x254411],this[_0x5a989a(0x329)])||[_0x254411];this['_onLocalMutation'](_0x361308[0x0]);})),_0x13521f;}};vn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],vn);let yn=class extends ${constructor(_0x1b6ed4,_0xdbec27,_0x179f90,_0x16de01,_0x5274a6,_0x5a6917,_0x53db24,_0x3c7412,_0x1bfe07,_0x3691cc,_0xce06f9,_0x274cce,_0x58aa26,_0x5477fd,_0x13ab9d){super(_0x1b6ed4,_0x179f90,_0xdbec27,_0x16de01,_0x5274a6,_0x5a6917,_0x53db24,_0x1bfe07,_0x3691cc,_0xce06f9,_0x274cce,_0x58aa26,_0x5477fd,_0x13ab9d),this['unitID']=_0x1b6ed4,this['type']=_0xdbec27,this['_sheetTransformSelectionsService']=_0x3c7412;}[_0x1f5521(0x156)](){const _0x2f3cc3=_0x1f5521;let _0x5234d2=super[_0x2f3cc3(0x156)]();return _0x5234d2['onTransformSelections']=_0x5bbcfa=>this[_0x2f3cc3(0x36c)][_0x2f3cc3(0x2f3)](_0x5bbcfa),_0x5234d2;}async['_init'](){const _0x45852e=_0x1f5521;let _0x5ef99f=await super['_init']();return this[_0x45852e(0x34e)](this[_0x45852e(0x320)]['onMutationExecutedForCollab']((_0x3ba8fe,_0x50f5e8)=>{const _0x5083f7=_0x45852e;if(_0x3ba8fe[_0x5083f7(0x258)]!==_0x3ac237[_0x5083f7(0x38a)]||_0x50f5e8!=null&&_0x50f5e8[_0x5083f7(0x246)]||_0x50f5e8!=null&&_0x50f5e8[_0x5083f7(0x26c)])return;let _0x119269=_0x3ba8fe[_0x5083f7(0x366)];if((_0x119269==null?void 0x0:_0x119269[_0x5083f7(0x2c4)])!==this[_0x5083f7(0x322)])return;let _0x182f0e=_0x3ba8fe,_0x188f13=this[_0x5083f7(0x187)]['interceptor']['fetchThroughInterceptors'](this[_0x5083f7(0x187)][_0x5083f7(0x165)][_0x5083f7(0x304)]()[_0x5083f7(0x2e2)])([_0x182f0e],this[_0x5083f7(0x329)])||[_0x182f0e];this[_0x5083f7(0x195)](_0x188f13[0x0]);})),_0x5ef99f;}};yn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(Wt)),V(0x8,_0x32c7b6(B)),V(0x9,_0x238a9e),V(0xa,_0x3849f9),V(0xb,_0x24738d),V(0xc,_0x51823a),V(0xd,_0x100ce1(W)),V(0xe,_0x100ce1(U))],yn);let bn=class extends ${constructor(_0xf0ff18,_0x1ec106,_0x389dff,_0x1e88c5,_0x49bcfd,_0xcb4498,_0x220011,_0x263cf1,_0x4361c0,_0x2de9e8,_0x26fecf,_0x1d2d86,_0x4af098,_0x410a05){const _0x435500=_0x1f5521;super(_0xf0ff18,_0x389dff,_0x1ec106,_0x1e88c5,_0x49bcfd,_0xcb4498,_0x220011,_0x263cf1,_0x4361c0,_0x2de9e8,_0x26fecf,_0x1d2d86,_0x4af098,_0x410a05),this[_0x435500(0x322)]=_0xf0ff18,this[_0x435500(0x258)]=_0x1ec106;}async[_0x1f5521(0x29a)](){const _0x3f7769=_0x1f5521;let _0x2223f9=await super[_0x3f7769(0x29a)]();return this[_0x3f7769(0x34e)](this[_0x3f7769(0x320)][_0x3f7769(0x277)]((_0x89a2cb,_0x37aa83)=>{const _0x519c40=_0x3f7769;if(_0x89a2cb[_0x519c40(0x258)]!==_0x3ac237[_0x519c40(0x38a)]||_0x37aa83!=null&&_0x37aa83[_0x519c40(0x246)]||_0x37aa83!=null&&_0x37aa83[_0x519c40(0x26c)])return;let _0x7e68de=_0x89a2cb[_0x519c40(0x366)];if((_0x7e68de==null?void 0x0:_0x7e68de['unitId'])!==this[_0x519c40(0x322)])return;let _0x484264=_0x89a2cb,_0xa7fa37=this[_0x519c40(0x187)][_0x519c40(0x165)][_0x519c40(0x32a)](this[_0x519c40(0x187)][_0x519c40(0x165)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x484264],this['_univerInstanceService'])||[_0x484264];this[_0x519c40(0x195)](_0xa7fa37[0x0]);})),_0x2223f9;}};bn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],bn);let xn=class extends ${constructor(_0x20dc54,_0x5c1721,_0xa9ce1c,_0x53aa86,_0x125d5e,_0x1e3f2f,_0x5874e9,_0x38873b,_0x4c31e3,_0x593d21,_0x3cd3d6,_0x3e79de,_0x643209,_0x4bc424){const _0xfed91a=_0x1f5521;super(_0x20dc54,_0xa9ce1c,_0x5c1721,_0x53aa86,_0x125d5e,_0x1e3f2f,_0x5874e9,_0x38873b,_0x4c31e3,_0x593d21,_0x3cd3d6,_0x3e79de,_0x643209,_0x4bc424),this[_0xfed91a(0x322)]=_0x20dc54,this['type']=_0x5c1721;}async[_0x1f5521(0x29a)](){const _0x202796=_0x1f5521;let _0x128c3c=await super[_0x202796(0x29a)]();return this['disposeWithMe'](this[_0x202796(0x320)][_0x202796(0x277)]((_0x1f637a,_0x1213c5)=>{const _0x23842e=_0x202796;if(_0x1f637a[_0x23842e(0x258)]!==_0x3ac237['MUTATION']||_0x1213c5!=null&&_0x1213c5[_0x23842e(0x246)]||_0x1213c5!=null&&_0x1213c5[_0x23842e(0x26c)])return;let _0xa06f11=_0x1f637a[_0x23842e(0x366)];if((_0xa06f11==null?void 0x0:_0xa06f11[_0x23842e(0x2c4)])!==this[_0x23842e(0x322)])return;let _0x30e9c0=_0x1f637a,_0x22b829=this[_0x23842e(0x187)][_0x23842e(0x165)][_0x23842e(0x32a)](this[_0x23842e(0x187)][_0x23842e(0x165)][_0x23842e(0x304)]()[_0x23842e(0x2e2)])([_0x30e9c0],this[_0x23842e(0x329)])||[_0x30e9c0];this['_onLocalMutation'](_0x22b829[0x0]);})),_0x128c3c;}};xn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],xn);let Sn=class extends ${constructor(_0xfbe574,_0x4f4be6,_0x5b2921,_0x1a6d98,_0x292aab,_0x3aa213,_0x3adec5,_0x217abc,_0x25ebda,_0x222ae9,_0x22ca9b,_0x363a31,_0x30ab5c,_0x439181){const _0x546a5b=_0x1f5521;super(_0xfbe574,_0x5b2921,_0x4f4be6,_0x1a6d98,_0x292aab,_0x3aa213,_0x3adec5,_0x217abc,_0x25ebda,_0x222ae9,_0x22ca9b,_0x363a31,_0x30ab5c,_0x439181),this[_0x546a5b(0x322)]=_0xfbe574,this['type']=_0x4f4be6;}async[_0x1f5521(0x29a)](){const _0x492721=_0x1f5521;let _0x425ffb=await super['_init']();return this[_0x492721(0x34e)](this[_0x492721(0x320)][_0x492721(0x277)]((_0x565a2b,_0x18692f)=>{const _0xab86d7=_0x492721;if(_0x565a2b[_0xab86d7(0x258)]!==_0x3ac237[_0xab86d7(0x38a)]||_0x18692f!=null&&_0x18692f[_0xab86d7(0x246)]||_0x18692f!=null&&_0x18692f[_0xab86d7(0x26c)])return;let _0x2ae222=_0x565a2b[_0xab86d7(0x366)];if((_0x2ae222==null?void 0x0:_0x2ae222[_0xab86d7(0x2c4)])!==this[_0xab86d7(0x322)])return;let _0x51fade=_0x565a2b,_0x8623e7=this[_0xab86d7(0x187)]['interceptor'][_0xab86d7(0x32a)](this[_0xab86d7(0x187)][_0xab86d7(0x165)]['getInterceptPoints']()[_0xab86d7(0x2e2)])([_0x51fade],this[_0xab86d7(0x329)])||[_0x51fade];this['_onLocalMutation'](_0x8623e7[0x0]);})),_0x425ffb;}};Sn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],Sn);const Cn=_0x382d48('univer-pro.collaboration-client.network-condition.service');function wn(_0x5d2416){const _0x244b85=_0x1f5521;let _0x5c1cfa=_0x5d2416[_0x244b85(0x2cc)],_0x240749=JSON[_0x244b85(0x3d4)](_0x5c1cfa);switch(_0x240749[_0x244b85(0x381)]){case _0x45aed2['HEARTBEAT']:case _0x45aed2['HELLO']:{let _0x44044e=_0x240749['infoRsp'];return{..._0x240749,'data':_0x44044e,'cmd':_0x240749[_0x244b85(0x381)]};}case _0x45aed2[_0x244b85(0x23d)]:{let _0x1a8cf4=_0x240749[_0x244b85(0x272)];return{..._0x240749,'data':_0x1a8cf4,'cmd':_0x240749['cmd']};}case _0x45aed2['RECV']:{let _0x168dfc=_0x240749['collaMsg'];switch(_0x168dfc['eventID']){case _0x28cc07[_0x244b85(0x3a7)]:var _0xdbce2b;return{..._0x240749,'data':{..._0x168dfc,'data':(_0xdbce2b=_0x168dfc[_0x244b85(0x22a)])==null?void 0x0:_0xdbce2b['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['CHANGESET_ACK']:var _0x2bc10f;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x2bc10f=_0x168dfc[_0x244b85(0x1aa)])==null?void 0x0:_0x2bc10f['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['NEW_CHANGESETS']:var _0x52d92f;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x52d92f=_0x168dfc[_0x244b85(0x1a5)])==null?void 0x0:_0x52d92f['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['CHANGESET_REJ']:var _0x37a27b;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x37a27b=_0x168dfc[_0x244b85(0x367)])==null?void 0x0:_0x37a27b['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x14b)]:var _0x2b6bb2;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x2b6bb2=_0x168dfc[_0x244b85(0x1d8)])==null?void 0x0:_0x2b6bb2['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x3a9)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc['updateCursorEvent']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x368)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc['joinEvent']},'cmd':_0x240749['cmd']};case _0x28cc07[_0x244b85(0x1af)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x27d)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x215)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x27c)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x286)]:case _0x28cc07['LIVESHARE_OPERATION']:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc['liveShareOperation']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['LIVESHARE_TERMINATE']:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x27c)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x164)]:return{..._0x240749,'data':_0x168dfc,'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x2a8)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x25f)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x36e)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x2c6)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x373)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x3b5)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['UNISCRIPT_RUN']:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x1ba)]},'cmd':_0x240749[_0x244b85(0x381)]};default:return _0x240749;}}default:return _0x240749;}}function Tn(_0x1dabf4){const _0x61320=_0x1f5521;switch(_0x1dabf4[_0x61320(0x381)]){case _0x45aed2[_0x61320(0x230)]:case _0x45aed2[_0x61320(0x23a)]:return JSON[_0x61320(0x212)]({'cmd':_0x1dabf4['cmd'],'routeKey':_0x1dabf4[_0x61320(0x294)]});case _0x45aed2[_0x61320(0x2ee)]:{let _0x49840f;switch(_0x1dabf4['data']['eventID']){case _0x28cc07[_0x61320(0x3a9)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x3a9)],'updateCursorEvent':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x1af)]:_0x49840f={'eventID':_0x28cc07['USERS_LEAVE'],'leaveEvent':_0x1dabf4['data'][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x368)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x368)],'joinEvent':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x215)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x215)],'liveShareNewHost':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x3c6)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x3c6)],'liveShareOperation':_0x1dabf4['data'][_0x61320(0x2cc)]};break;case _0x28cc07['LIVESHARE_TERMINATE']:_0x49840f={'eventID':_0x28cc07[_0x61320(0x387)],'liveShareTerminate':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x237)]:_0x49840f={'eventID':_0x28cc07['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x286)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x286)]};break;default:_0x49840f={'eventID':_0x1dabf4['data'][_0x61320(0x1b1)]};}return JSON[_0x61320(0x212)]({'cmd':_0x1dabf4[_0x61320(0x381)],'routeKey':_0x1dabf4[_0x61320(0x294)],'collaMsg':_0x49840f});}case _0x45aed2[_0x61320(0x23d)]:return JSON[_0x61320(0x212)]({'cmd':_0x1dabf4[_0x61320(0x381)],'routeKey':_0x1dabf4[_0x61320(0x294)],'joinReq':_0x1dabf4[_0x61320(0x2cc)]});case _0x45aed2['LEAVE']:return JSON['stringify']({'cmd':_0x1dabf4[_0x61320(0x381)],'routeKey':_0x1dabf4[_0x61320(0x294)],'leaveReq':_0x1dabf4[_0x61320(0x2cc)]});default:throw Error(_0x61320(0x198));}}const En=_0x382d48('univer-pro.collaboration-client-socket-service');function Dn(_0x45734f,_0x5c98a7,_0x375099){const _0xd8877d=_0x1f5521;return _0x45734f+'/'+_0x5c98a7+_0xd8877d(0x16b)+_0x375099+_0xd8877d(0x330);}let On=class extends _0x13fb6a{constructor(_0x2c7d2e,_0x2d0664,_0x36375f,_0x125885,_0x1857b6){const _0x5ae71f=_0x1f5521;super(),this[_0x5ae71f(0x391)]=_0x2c7d2e,this[_0x5ae71f(0x317)]=_0x2d0664,this[_0x5ae71f(0x2a1)]=_0x36375f,this['_logService']=_0x125885,this['_snapshotServerService']=_0x1857b6;}[_0x1f5521(0x38d)](_0x82f02f){const _0x345ee7=_0x1f5521;let _0x573dff=this[_0x345ee7(0x391)]['get'](_0x1fbe1f);if(!_0x573dff)throw Error(_0x345ee7(0x25c));let _0x2e6d1b=_0x573dff[_0x345ee7(0x298)](_0x82f02f);if(!_0x2e6d1b)throw Error(_0x345ee7(0x2ba));let _0x2c7adb=new _0x3f655f(),_0x7e9e71=new _0x548400();_0x2c7adb[_0x345ee7(0x23f)](_0x2e6d1b[_0x345ee7(0x26e)][_0x345ee7(0x2dc)](_0x3beb6f=>_0x7e9e71[_0x345ee7(0x1ae)](_0x3beb6f))),_0x2c7adb['add'](_0x1e0938(()=>_0x7e9e71[_0x345ee7(0x185)]()));let _0x525b16=new _0x548400();_0x2c7adb[_0x345ee7(0x23f)](_0x2e6d1b['error$']['subscribe'](_0x5df50e=>_0x525b16['next'](_0x5df50e))),_0x2c7adb[_0x345ee7(0x23f)](_0x1e0938(()=>_0x525b16[_0x345ee7(0x185)]()));let _0x587906=new _0x548400();_0x2c7adb['add'](_0x2e6d1b[_0x345ee7(0x1ce)][_0x345ee7(0x2dc)](_0xa1b88a=>{const _0x52efbd=_0x345ee7;let _0x4f300e=wn(_0xa1b88a);_0x587906[_0x52efbd(0x1ae)](_0x4f300e);})),_0x2c7adb['add'](_0x1e0938(()=>_0x587906[_0x345ee7(0x185)]()));let _0x28de1b,_0x5d3ceb=()=>{const _0x4d8524=_0x345ee7;_0x525b16[_0x4d8524(0x1ae)](new Event(_0x4d8524(0x355))),_0x7e9e71[_0x4d8524(0x1ae)](new Event(_0x4d8524(0x355))),_0x28de1b[_0x4d8524(0x301)]();};return _0x28de1b={'memberID':'','close$':_0x7e9e71['asObservable'](),'error$':_0x525b16['asObservable'](),'open$':_0x2e6d1b[_0x345ee7(0x23e)],'message$':_0x587906[_0x345ee7(0x37a)](),'send':_0x9baf42=>{const _0x13ae24=_0x345ee7;if(_0x9baf42['cmd']===_0x45aed2[_0x13ae24(0x2ee)]){if(_0x9baf42[_0x13ae24(0x2cc)][_0x13ae24(0x1b1)]===_0x28cc07[_0x13ae24(0x168)]){this[_0x13ae24(0x1d0)](_0x28de1b,_0x9baf42[_0x13ae24(0x2cc)])[_0x13ae24(0x39b)](_0x1eacee=>{const _0x5f0c04=_0x13ae24;this[_0x5f0c04(0x2dd)][_0x5f0c04(0x2fc)](_0x1eacee),_0x5d3ceb();});return;}if(_0x9baf42[_0x13ae24(0x2cc)]['eventID']===_0x28cc07[_0x13ae24(0x37e)]){let _0x38a879=_0x9baf42[_0x13ae24(0x2cc)];this[_0x13ae24(0x231)](_0x38a879)[_0x13ae24(0x3ab)](_0x346833=>{const _0x50466c=_0x13ae24;_0x587906['next']({'cmd':_0x45aed2[_0x50466c(0x146)],'code':_0x2486d1['OK'],'routeKey':_0x38a879[_0x50466c(0x2cc)][_0x50466c(0x322)],'routeType':'','data':{'eventID':_0x28cc07[_0x50466c(0x3a4)],'data':{'changesets':_0x346833}}});})[_0x13ae24(0x39b)](_0x29171e=>{const _0xf8eca5=_0x13ae24;this[_0xf8eca5(0x2dd)][_0xf8eca5(0x2fc)](_0x29171e),_0x5d3ceb();});return;}}_0x2e6d1b['send'](Tn(_0x9baf42));},'close':()=>{const _0x10c20d=_0x345ee7;_0x2e6d1b[_0x10c20d(0x301)](),_0x2c7adb[_0x10c20d(0x1ee)]();}},_0x28de1b;}async[_0x1f5521(0x1d0)](_0x16862,_0x375d9e){const _0x5d14bd=_0x1f5521;let {unitType:_0x583618,unitID:_0x19afb6,changeset:_0x3763d6}=_0x375d9e['data'],_0x2010d6={'unitID':_0x19afb6,'memberID':_0x16862[_0x5d14bd(0x235)],'type':_0x583618,'changeset':_0x53b382(_0x3763d6)},_0x5f2335=this[_0x5d14bd(0x2a1)][_0x5d14bd(0x1d1)](R),_0x44b296=Dn((_0x5f2335==null?void 0x0:_0x5f2335['collabSubmitChangesetUrl'])??_0x5d14bd(0x36a),_0x583618,_0x19afb6);try{await this[_0x5d14bd(0x317)][_0x5d14bd(0x160)](_0x44b296,{'body':_0x2010d6});}catch(_0x558951){throw this[_0x5d14bd(0x2dd)][_0x5d14bd(0x2fc)](_0x5d14bd(0x1fa),'submit\x20changeset\x20error!'),_0x558951;}}async[_0x1f5521(0x231)](_0x1d7cb5){const _0x48f3e8=_0x1f5521;let {unitID:_0x39a535,from:_0x487def,to:_0x4cbb3b,unitType:_0x5a2294}=_0x1d7cb5[_0x48f3e8(0x2cc)];return(await this['_snapshotServerService'][_0x48f3e8(0x1b4)]({'metadata':void 0x0},{'unitID':_0x39a535,'type':_0x5a2294,'from':_0x487def,'to':_0x4cbb3b}))[_0x48f3e8(0x25d)][_0x48f3e8(0x2ea)](_0x259125=>((_0x259125[_0x48f3e8(0x17c)]===null||_0x259125[_0x48f3e8(0x17c)]===void 0x0)&&(_0x259125[_0x48f3e8(0x17c)]=[]),_0x259125));}};On=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x32c7b6(_0x314f58)),V(0x2,_0x123a79),V(0x3,_0x3849f9),V(0x4,_0x223810)],On);const kn=_0x382d48('univer-pro.collaboration-client-adapter-service');function An(_0x1d7a2d={}){const _0x216c15=_0x1f5521;return _0x1d7a2d[_0x216c15(0x186)]?{'resolveUnit':_0x1d7a2d['resolveUnit']}:{'resolveUnit':_0x556bc0=>({'target':{'unitId':_0x556bc0['unitId'],'unitType':_0x556bc0[_0x216c15(0x1e6)]}})};}function jn(_0x34fe4c,_0x5801c4,_0x553dd3){const _0x358ded=_0x1f5521;let _0x496819=_0x553dd3['target'][_0x358ded(0x1b8)];if(_0x496819!=null&&_0x496819['trim']()==='')throw Error(_0x358ded(0x1b9));if(!_0x553dd3[_0x358ded(0x1ef)][_0x358ded(0x2c4)])throw Error(_0x358ded(0x1a7));return{'localUnitId':_0x34fe4c,'unitType':_0x5801c4,'target':{'endpoint':_0x496819,'unitId':_0x553dd3[_0x358ded(0x1ef)][_0x358ded(0x2c4)],'unitType':_0x553dd3[_0x358ded(0x1ef)][_0x358ded(0x1e6)]??_0x5801c4},'changeset':_0x553dd3[_0x358ded(0x361)]};}let Mn=class extends _0x13fb6a{constructor(_0x1488ce,_0x10b8a0,_0x15df6a,_0x23661f,_0xc24119,_0x45df76,_0xfb6024){const _0x22fa33=_0x1f5521;super(),this[_0x22fa33(0x391)]=_0x1488ce,this[_0x22fa33(0x2dd)]=_0x10b8a0,this['_configService']=_0x15df6a,this['_socketService']=_0x23661f,this[_0x22fa33(0x3a1)]=_0xc24119,this[_0x22fa33(0x384)]=_0x45df76,this[_0x22fa33(0x2b4)]=_0xfb6024,z(this,_0x22fa33(0x166),new Map()),z(this,'_pendingSessions',new Map()),z(this,_0x22fa33(0x28d),new Map()),z(this,_0x22fa33(0x152),new Map()),z(this,_0x22fa33(0x3dd),this[_0x22fa33(0x3bf)](void 0x0)['socket$'][_0x22fa33(0x37a)]()),z(this,_0x22fa33(0x349),new _0x21afa9(0x0)),z(this,_0x22fa33(0x232),this['_status$'][_0x22fa33(0x37a)]()),this[_0x22fa33(0x171)]();}['_listenToNetworkCondition'](){const _0x54a864=_0x1f5521;this[_0x54a864(0x2b4)]&&this[_0x54a864(0x34e)](this['_networkConditionService'][_0x54a864(0x1d3)]['subscribe'](_0x5bd295=>{const _0x4811f9=_0x54a864;_0x5bd295&&this['reconnect'](),_0x5bd295||this[_0x4811f9(0x152)][_0x4811f9(0x154)](_0x58859d=>this[_0x4811f9(0x2a5)](_0x58859d));}));}[_0x1f5521(0x1ee)](){const _0x54c86e=_0x1f5521;super[_0x54c86e(0x1ee)](),this[_0x54c86e(0x152)][_0x54c86e(0x154)](_0x9088b7=>{const _0xb630cc=_0x54c86e;var _0xcf2290,_0x2fef78;(_0xcf2290=_0x9088b7[_0xb630cc(0x2d0)])==null||_0xcf2290['unsubscribe'](),_0x9088b7[_0xb630cc(0x2d0)]=null,this[_0xb630cc(0x184)](_0x9088b7),this[_0xb630cc(0x28c)](_0x9088b7),this[_0xb630cc(0x34a)](_0x9088b7),(_0x2fef78=_0x9088b7['socket$'][_0xb630cc(0x3ca)]())==null||_0x2fef78[_0xb630cc(0x301)](),_0x9088b7[_0xb630cc(0x3dd)][_0xb630cc(0x185)]();}),this['_socketChannels'][_0x54c86e(0x2bd)](),this[_0x54c86e(0x166)][_0x54c86e(0x154)](_0x125ac0=>_0x125ac0[_0x54c86e(0x1ee)]()),this['_sessions']['clear'](),this['_sessionChannels']['clear'](),this[_0x54c86e(0x349)][_0x54c86e(0x185)]();}async[_0x1f5521(0x221)](_0x880289,_0x1eec47){const _0x5aab69=_0x1f5521;if(this['_sessions']['has'](_0x880289))return this['_sessions'][_0x5aab69(0x20c)](_0x880289);let _0x5b1d9f=this[_0x5aab69(0x33e)][_0x5aab69(0x20c)](_0x880289);if(_0x5b1d9f)return _0x5b1d9f;let _0x1611c9=this[_0x5aab69(0x383)](_0x880289,_0x1eec47);this[_0x5aab69(0x33e)]['set'](_0x880289,_0x1611c9);try{return await _0x1611c9;}finally{this['_pendingSessions'][_0x5aab69(0x204)](_0x880289);}}async[_0x1f5521(0x383)](_0x4dba68,_0x50a7e6){const _0x300400=_0x1f5521;let _0x526bd6=await this['_resolveSessionIdentity'](_0x4dba68,_0x50a7e6),_0x50513f=this[_0x300400(0x3bf)](_0x526bd6[_0x300400(0x1ef)][_0x300400(0x1b8)]);this[_0x300400(0x1d4)](_0x50513f);let _0x3e9cb5=this[_0x300400(0x391)][_0x300400(0x351)](Vt,_0x526bd6,_0x50513f[_0x300400(0x3dd)]['asObservable']());return this[_0x300400(0x166)][_0x300400(0x16f)](_0x4dba68,_0x3e9cb5),this[_0x300400(0x28d)]['set'](_0x4dba68,_0x50513f[_0x300400(0x33f)]),_0x3e9cb5;}['closeSession'](_0x3fad62){const _0xbe0bf4=_0x1f5521;let _0x2ce926=this[_0xbe0bf4(0x166)][_0xbe0bf4(0x20c)](_0x3fad62),_0xaf0210=this[_0xbe0bf4(0x28d)][_0xbe0bf4(0x20c)](_0x3fad62);if(_0x2ce926&&(this[_0xbe0bf4(0x166)][_0xbe0bf4(0x204)](_0x3fad62),this[_0xbe0bf4(0x28d)][_0xbe0bf4(0x204)](_0x3fad62),_0x2ce926[_0xbe0bf4(0x301)]()),_0xaf0210&&!this[_0xbe0bf4(0x1d2)](_0xaf0210)){var _0xc5c7a3;let _0x5c7aff=this[_0xbe0bf4(0x152)][_0xbe0bf4(0x20c)](_0xaf0210);_0x5c7aff==null||(_0xc5c7a3=_0x5c7aff[_0xbe0bf4(0x3dd)][_0xbe0bf4(0x3ca)]())==null||_0xc5c7a3[_0xbe0bf4(0x301)]();}}['reconnect'](){const _0x284e74=_0x1f5521;(this['_socketChannels'][_0x284e74(0x21b)]?[...this[_0x284e74(0x152)][_0x284e74(0x2b7)]()]:[this[_0x284e74(0x3bf)](void 0x0)])[_0x284e74(0x154)](_0x30d59f=>{const _0xd23391=_0x284e74;_0x30d59f[_0xd23391(0x17e)]=0x0,this['_clearRetryConnectingTimer'](_0x30d59f),this[_0xd23391(0x2f6)](_0x30d59f);});}[_0x1f5521(0x184)](_0x46d797){const _0x349182=_0x1f5521;_0x46d797[_0x349182(0x380)]!=null&&(clearTimeout(_0x46d797[_0x349182(0x380)]),_0x46d797[_0x349182(0x380)]=null);}async['_createSocket'](_0x35b62c){const _0xd8d430=_0x1f5521;let _0x4d37e5=this[_0xd8d430(0x2a1)][_0xd8d430(0x1d1)](R),_0x54870c=_0x35b62c[_0xd8d430(0x1b8)]??(_0x4d37e5==null?void 0x0:_0x4d37e5[_0xd8d430(0x157)])??_0xd8d430(0x1e7),_0x253ebc=await this[_0xd8d430(0x374)][_0xd8d430(0x298)](_0x54870c);return _0x35b62c['candidateSocket']=_0x253ebc,_0x253ebc;}async[_0x1f5521(0x1d4)](_0xa66ad0){const _0x27e057=_0x1f5521;try{let _0x466d5e=_0xa66ad0['socket$'][_0x27e057(0x3ca)]()??_0xa66ad0[_0x27e057(0x1e3)]??await this['_createSocket'](_0xa66ad0);if(_0x466d5e){var _0x4ec82f;let _0x203896=_0x466d5e[_0x27e057(0x3bb)];_0x466d5e['send']=_0x45b693=>(_0x45b693[_0x27e057(0x381)]!==_0x45aed2['LEAVE']&&this[_0x27e057(0x395)](_0xa66ad0),_0x203896[_0x27e057(0x1bd)](_0x466d5e,[_0x45b693])),(_0x4ec82f=_0xa66ad0[_0x27e057(0x2d0)])==null||_0x4ec82f[_0x27e057(0x26f)](),_0xa66ad0[_0x27e057(0x2d0)]=null,_0xa66ad0[_0x27e057(0x2d0)]=_0x466d5e['message$'][_0x27e057(0x2dc)](_0x55b2c0=>this[_0x27e057(0x158)](_0xa66ad0,_0x466d5e,_0x55b2c0)),_0x466d5e[_0x27e057(0x170)]['pipe'](_0x12e312(0x1))[_0x27e057(0x2dc)](_0x19536f=>this['_logService'][_0x27e057(0x2fc)](_0x27e057(0x1f0),_0x19536f)),_0x466d5e['open$']['pipe'](_0x12e312(0x1))[_0x27e057(0x2dc)](()=>{const _0x3645af=_0x27e057;this[_0x3645af(0x334)](_0xa66ad0,_0x466d5e);}),_0x466d5e[_0x27e057(0x26e)][_0x27e057(0x220)](_0x12e312(0x1))[_0x27e057(0x2dc)](_0x59e110=>{const _0x42badf=_0x27e057;this[_0x42badf(0x2dd)][_0x42badf(0x35a)](_0x42badf(0x38c),_0x42badf(0x3a2),_0x59e110),this[_0x42badf(0x3c5)](_0xa66ad0);});}}catch(_0x16248e){this[_0x27e057(0x2dd)][_0x27e057(0x2fc)](_0x16248e),this['_onConnectionFailed'](_0xa66ad0);}}[_0x1f5521(0x334)](_0x3354a6,_0x1d8048){const _0x3adc5c=_0x1f5521;this['_logService'][_0x3adc5c(0x35a)](_0x3adc5c(0x38c),_0x3adc5c(0x323)),_0x1d8048[_0x3adc5c(0x3bb)]({'cmd':_0x45aed2[_0x3adc5c(0x23a)]}),this['_rescheduleHeartbeat'](_0x3354a6);}[_0x1f5521(0x2a5)](_0x3576be){const _0x443d6a=_0x1f5521;_0x3576be[_0x443d6a(0x1c1)]=!0x1,_0x3576be[_0x443d6a(0x1e3)]=null,this[_0x443d6a(0x349)][_0x443d6a(0x1ae)](0x2),_0x3576be[_0x443d6a(0x3dd)][_0x443d6a(0x1ae)](null),this[_0x443d6a(0x28c)](_0x3576be),this[_0x443d6a(0x34a)](_0x3576be);}[_0x1f5521(0x3c5)](_0x2984c2){const _0x55a1f7=_0x1f5521;this['_onOffline'](_0x2984c2),this['_hasSessionsForEndpoint'](_0x2984c2[_0x55a1f7(0x33f)])&&(_0x2984c2[_0x55a1f7(0x17e)]<(this['_configService'][_0x55a1f7(0x1d1)](_0x55a1f7(0x2a2))??0x3)?(this['_collaborationUIEventService'][_0x55a1f7(0x205)]({'id':_0x55a1f7(0x2a0)}),this[_0x55a1f7(0x2f6)](_0x2984c2)):this['_collaborationUIEventService'][_0x55a1f7(0x205)]({'id':'SOCKET_FAILED'}));}[_0x1f5521(0x2f6)](_0x5670e2){const _0xa05978=_0x1f5521;let _0x98abc6=_0x5670e2[_0xa05978(0x17e)],_0x21dd43=this['_configService'][_0xa05978(0x1d1)](R),_0x11900b=_0x98abc6===0x0?0x0:((_0x21dd43==null?void 0x0:_0x21dd43[_0xa05978(0x172)])??0x4e20)*0x2**_0x98abc6;_0x5670e2[_0xa05978(0x380)]=setTimeout(()=>{const _0x10b76e=_0xa05978;clearTimeout(_0x5670e2['retryConnectingTimer']),_0x5670e2[_0x10b76e(0x380)]=null,this[_0x10b76e(0x1d4)](_0x5670e2);},_0x11900b),_0x5670e2[_0xa05978(0x17e)]+=0x1;}async[_0x1f5521(0x37c)](_0x52f72c,_0x3492d9){const _0x3f5c1d=_0x1f5521;return jn(_0x52f72c,_0x3492d9,await this[_0x3f5c1d(0x384)][_0x3f5c1d(0x186)]({'unitId':_0x52f72c,'unitType':_0x3492d9}));}[_0x1f5521(0x158)](_0xaaee99,_0x53af3c,_0x164982){const _0x8993ba=_0x1f5521;let {cmd:_0x116103}=_0x164982;_0x116103===_0x45aed2[_0x8993ba(0x23a)]&&!_0xaaee99[_0x8993ba(0x1c1)]&&(_0x53af3c[_0x8993ba(0x235)]=_0x164982['data'][_0x8993ba(0x235)],_0xaaee99[_0x8993ba(0x3dd)][_0x8993ba(0x1ae)](_0x53af3c),this[_0x8993ba(0x349)][_0x8993ba(0x1ae)](0x3),_0xaaee99[_0x8993ba(0x1c1)]=!0x0,_0xaaee99['candidateSocket']=null),_0x116103===_0x45aed2[_0x8993ba(0x230)]&&this[_0x8993ba(0x28c)](_0xaaee99),this[_0x8993ba(0x395)](_0xaaee99);}[_0x1f5521(0x1d2)](_0x5b7ca5){const _0x3900b1=_0x1f5521;return[...this[_0x3900b1(0x28d)]['values']()][_0x3900b1(0x2ae)](_0x242f49=>_0x242f49===_0x5b7ca5);}['_getSocketChannel'](_0x252b26){const _0x4d19ed=_0x1f5521;let _0xb56752=_0x252b26??'',_0x8b5ab8=this[_0x4d19ed(0x152)][_0x4d19ed(0x20c)](_0xb56752);if(_0x8b5ab8)return _0x8b5ab8;let _0x112eb6={'endpointKey':_0xb56752,'endpoint':_0x252b26,'socket$':new _0x21afa9(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4d19ed(0x152)]['set'](_0xb56752,_0x112eb6),_0x112eb6;}[_0x1f5521(0x395)](_0x1f9d2e){const _0x368d17=_0x1f5521;this[_0x368d17(0x34a)](_0x1f9d2e),_0x1f9d2e['sendHeartbeatTimer']=setTimeout(()=>this[_0x368d17(0x20a)](_0x1f9d2e),this['_configService'][_0x368d17(0x1d1)](_0x368d17(0x305))??0x7530);}[_0x1f5521(0x20a)](_0x5c078a){const _0x3af08d=_0x1f5521;_0x5c078a[_0x3af08d(0x3dd)][_0x3af08d(0x3ca)]()['send']({'cmd':_0x45aed2[_0x3af08d(0x230)]}),this[_0x3af08d(0x36d)](_0x5c078a);}[_0x1f5521(0x36d)](_0x47523d){const _0x27a390=_0x1f5521;_0x47523d[_0x27a390(0x14e)]=setTimeout(()=>this[_0x27a390(0x3c5)](_0x47523d),this['_configService'][_0x27a390(0x1d1)](_0x27a390(0x3a3))??0x4e20);}[_0x1f5521(0x34a)](_0xc86519){const _0x593424=_0x1f5521;_0xc86519[_0x593424(0x3b2)]!=null&&(clearTimeout(_0xc86519['sendHeartbeatTimer']),_0xc86519['sendHeartbeatTimer']=null);}[_0x1f5521(0x28c)](_0x5837dc){const _0x223240=_0x1f5521;_0x5837dc[_0x223240(0x14e)]!=null&&(clearTimeout(_0x5837dc[_0x223240(0x14e)]),_0x5837dc['timeoutTimer']=null);}};Mn=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x3849f9),V(0x2,_0x123a79),V(0x3,En),V(0x4,_0x32c7b6(B)),V(0x5,kn),V(0x6,_0x100ce1(Cn))],Mn);let Nn=class extends _0x2fb3e4{constructor(_0x14b777,_0x5e00d5,_0x2e90dd,_0x4890c5){const _0x1cac74=_0x1f5521;var _0xad7f37;super(),this[_0x1cac74(0x391)]=_0x14b777,this[_0x1cac74(0x2d6)]=_0x5e00d5,this[_0x1cac74(0x2a1)]=_0x2e90dd,this[_0x1cac74(0x329)]=_0x4890c5,z(this,_0x1cac74(0x353),new Map()),z(this,_0x1cac74(0x3e1),new _0x548400()),z(this,_0x1cac74(0x326),this[_0x1cac74(0x3e1)][_0x1cac74(0x37a)]()),((_0xad7f37=this[_0x1cac74(0x2a1)]['getConfig'](_0x1cac74(0x203)))==null?void 0x0:_0xad7f37['enableCollaboration'])!==!0x1&&this[_0x1cac74(0x29a)]();}[_0x1f5521(0x1ee)](){const _0x1adfc6=_0x1f5521;super[_0x1adfc6(0x1ee)](),this['_entities'][_0x1adfc6(0x154)](_0x2e5171=>_0x2e5171[_0x1adfc6(0x1ee)]()),this['_entities'][_0x1adfc6(0x2bd)]();}[_0x1f5521(0x245)](_0x35d81c){const _0x26b673=_0x1f5521;return this[_0x26b673(0x353)][_0x26b673(0x20c)](_0x35d81c)??null;}[_0x1f5521(0x1dd)](_0x1905c8){const _0x398c2b=_0x1f5521;let _0x47423c=this[_0x398c2b(0x245)](_0x1905c8);return _0x47423c?_0x195754(_0x47423c):this['_entityInit$'][_0x398c2b(0x220)](_0x3dc9b5(_0x42a953=>_0x42a953[_0x398c2b(0x322)]===_0x1905c8));}[_0x1f5521(0x32b)](_0xd0f694){const _0xc6cb2=_0x1f5521;return _0x199bcd(this[_0xc6cb2(0x1dd)](_0xd0f694)[_0xc6cb2(0x220)](_0x55a320(()=>void 0x0)));}[_0x1f5521(0x29a)](){const _0x30b8fe=_0x1f5521;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4f4a88[_0x30b8fe(0x399)])['pipe'](_0x10e0d6(this['dispose$']),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x5e8d61=>{const _0x25b89a=_0x30b8fe;let _0x426e14=_0x5e8d61[_0x25b89a(0x144)][_0x25b89a(0x3d7)](),_0x1dd264=await this[_0x25b89a(0x13f)](_0x426e14,_0x4f4a88['UNIVER_SHEET']);this[_0x25b89a(0x353)]['set'](_0x426e14,_0x1dd264);}),this[_0x30b8fe(0x329)][_0x30b8fe(0x1be)](_0x4f4a88[_0x30b8fe(0x33c)])[_0x30b8fe(0x220)](_0x10e0d6(this['dispose$']),_0x42710a(0x10))[_0x30b8fe(0x220)](_0x3dc9b5(_0x50b1a2=>!_0x50b1a2[_0x30b8fe(0x144)][_0x30b8fe(0x3d7)]()[_0x30b8fe(0x173)]('__')))[_0x30b8fe(0x2dc)](async _0x16ea43=>{const _0xa905f6=_0x30b8fe;let _0x10b847=_0x16ea43[_0xa905f6(0x144)][_0xa905f6(0x3d7)](),_0x52e1b9=await this[_0xa905f6(0x13f)](_0x10b847,_0x4f4a88[_0xa905f6(0x33c)]);this[_0xa905f6(0x353)][_0xa905f6(0x16f)](_0x10b847,_0x52e1b9);}),this[_0x30b8fe(0x329)]['getTypeOfUnitAdded$'](_0x4f4a88[_0x30b8fe(0x194)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x2f0c16=>{const _0x48304a=_0x30b8fe;let _0x49b07f=_0x2f0c16[_0x48304a(0x144)][_0x48304a(0x3d7)](),_0x236207=await this[_0x48304a(0x13f)](_0x49b07f,_0x4f4a88[_0x48304a(0x194)]);this[_0x48304a(0x353)][_0x48304a(0x16f)](_0x49b07f,_0x236207);}),this[_0x30b8fe(0x329)][_0x30b8fe(0x1be)](_0x4f4a88[_0x30b8fe(0x2cb)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x200065=>{const _0x139e13=_0x30b8fe;let _0x373dc3=_0x200065['unit'][_0x139e13(0x3d7)](),_0x4ab74c=await this[_0x139e13(0x13f)](_0x373dc3,_0x4f4a88[_0x139e13(0x2cb)]);this[_0x139e13(0x353)][_0x139e13(0x16f)](_0x373dc3,_0x4ab74c);}),this['_univerInstanceService'][_0x30b8fe(0x1be)](_0x4f4a88[_0x30b8fe(0x337)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x5e174d=>{const _0x4a61a8=_0x30b8fe;let _0x22d527=_0x5e174d[_0x4a61a8(0x144)][_0x4a61a8(0x3d7)](),_0x26fd7d=await this[_0x4a61a8(0x13f)](_0x22d527,_0x4f4a88[_0x4a61a8(0x337)]);this['_entities']['set'](_0x22d527,_0x26fd7d);}),this[_0x30b8fe(0x329)]['getTypeOfUnitAdded$'](_0x4f4a88[_0x30b8fe(0x3b9)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x5ba56c=>{const _0x4d88a9=_0x30b8fe;let _0x3fa4fb=_0x5ba56c['unit']['getUnitId'](),_0x4783dc=await this[_0x4d88a9(0x13f)](_0x3fa4fb,_0x4f4a88['UNIVER_PDF']);this[_0x4d88a9(0x353)][_0x4d88a9(0x16f)](_0x3fa4fb,_0x4783dc);}),_0x48bcdd(this[_0x30b8fe(0x329)][_0x30b8fe(0x1fe)](_0x4f4a88[_0x30b8fe(0x399)]),this[_0x30b8fe(0x329)][_0x30b8fe(0x1fe)](_0x4f4a88['UNIVER_DOC']),this[_0x30b8fe(0x329)]['getTypeOfUnitDisposed$'](_0x4f4a88[_0x30b8fe(0x194)]),this[_0x30b8fe(0x329)][_0x30b8fe(0x1fe)](_0x4f4a88[_0x30b8fe(0x2cb)]),this['_univerInstanceService'][_0x30b8fe(0x1fe)](_0x4f4a88['UNIVER_BASE']),this[_0x30b8fe(0x329)]['getTypeOfUnitDisposed$'](_0x4f4a88[_0x30b8fe(0x3b9)]))[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]))[_0x30b8fe(0x2dc)](_0x4a8848=>{const _0x113ddd=_0x30b8fe;let _0x87f700=_0x4a8848[_0x113ddd(0x3d7)](),_0x4feb8f=this[_0x113ddd(0x353)][_0x113ddd(0x20c)](_0x87f700);_0x4feb8f&&(_0x4feb8f['dispose'](),this[_0x113ddd(0x353)][_0x113ddd(0x204)](_0x87f700));});}async[_0x1f5521(0x13f)](_0x1f2f8e,_0x2aef24){const _0xb34a2a=_0x1f5521;let _0x2824b4=await this[_0xb34a2a(0x2d6)][_0xb34a2a(0x221)](_0x1f2f8e),_0x221cff=this[_0xb34a2a(0x391)][_0xb34a2a(0x351)](this['_getCtorByUniverInstanceType'](_0x2aef24),_0x1f2f8e,_0x2aef24,_0x2824b4);return await _0x221cff[_0xb34a2a(0x2c2)](),this[_0xb34a2a(0x3e1)]['next'](_0x221cff),_0x221cff;}[_0x1f5521(0x3d0)](_0x59c382){const _0x30cadf=_0x1f5521;switch(_0x59c382){case _0x4f4a88['UNIVER_DOC']:return _n;case _0x4f4a88[_0x30cadf(0x399)]:return yn;case _0x4f4a88['UNIVER_SLIDE']:return bn;case _0x4f4a88['UNIVER_BOARD']:return xn;case _0x4f4a88['UNIVER_BASE']:return vn;case _0x4f4a88[_0x30cadf(0x3b9)]:return Sn;default:throw Error(_0x30cadf(0x217)+_0x59c382);}}};Nn=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x32c7b6(Mn)),V(0x2,_0x123a79),V(0x3,_0x238a9e)],Nn);var Pn=_0x1f5521(0x309),Fn=_0x1f5521(0x346);let In=class extends _0x13fb6a{constructor(_0x1ab00e,_0x39cd77){const _0x32f98c=_0x1f5521;super(),this[_0x32f98c(0x329)]=_0x1ab00e,this[_0x32f98c(0x2a1)]=_0x39cd77,this['_init']();}[_0x1f5521(0x29a)](){const _0x2222cf=_0x1f5521;this[_0x2222cf(0x34e)](this[_0x2222cf(0x329)][_0x2222cf(0x25a)][_0x2222cf(0x2dc)](()=>{const _0x1b142a=_0x2222cf;let _0x3cf655=this['_univerInstanceService'][_0x1b142a(0x234)](),_0x25fa61=this[_0x1b142a(0x2a1)]['getConfig']('DEFAULT_FILE_NAME')??_0x1b142a(0x14d);_0x3cf655 instanceof _0x1005dd&&(_0x25fa61=_0x3cf655[_0x1b142a(0x218)]),document[_0x1b142a(0x345)]=_0x25fa61;}));}};In=H([V(0x0,_0x238a9e),V(0x1,_0x123a79)],In);const Ln=_0x382d48(_0x1f5521(0x1e1));let Rn=class{constructor(_0x9f8b07,_0x55ac6d,_0x247b57){const _0xee9372=_0x1f5521;this[_0xee9372(0x317)]=_0x9f8b07,this['_configService']=_0x55ac6d,this[_0xee9372(0x329)]=_0x247b57;}[_0x1f5521(0x1df)](){const _0x1d97df=_0x1f5521;return this['_getConfig']()[_0x1d97df(0x1b2)]??{};}async[_0x1f5521(0x3bd)](_0x26fafd){const _0xeaa64c=_0x1f5521;let _0x3f85f6=this[_0xeaa64c(0x1df)]();if(zn(_0x26fafd,_0x3f85f6),_0x3f85f6[_0xeaa64c(0x16c)])return _0x3f85f6[_0xeaa64c(0x16c)](_0x26fafd);let _0xad0f7f=await this[_0xeaa64c(0x206)](_0x26fafd);return{'id':_0xad0f7f,'name':_0x26fafd[_0xeaa64c(0x218)],'mimeType':_0x26fafd[_0xeaa64c(0x258)],'size':_0x26fafd[_0xeaa64c(0x21b)],'sourceType':_0x36d131['UUID'],'source':_0xad0f7f};}async[_0x1f5521(0x31b)](_0x775aab,_0x46d216){const _0x8d077=_0x1f5521;if(_0x46d216!==_0x36d131['UUID'])return _0x775aab;let _0x13442f=(await this[_0x8d077(0x317)]['get'](this[_0x8d077(0x2cd)]()['replace'](_0x8d077(0x3ce),_0x775aab)))[_0x8d077(0x1c3)];if(_0x13442f[_0x8d077(0x2fc)]&&_0x13442f[_0x8d077(0x2fc)][_0x8d077(0x26d)]!==_0x5caf42['OK'])throw _0x13442f[_0x8d077(0x2fc)];if(!_0x13442f[_0x8d077(0x389)])throw Error(_0x8d077(0x295));return _0x3de6a3(_0x13442f[_0x8d077(0x389)],this[_0x8d077(0x197)]());}async['_upload'](_0x1901f1){const _0x1ec761=_0x1f5521;let _0x50f9f3=this['_univerInstanceService'][_0x1ec761(0x234)](),_0x5c7f62=_0x50f9f3==null?void 0x0:_0x50f9f3[_0x1ec761(0x3d7)]();if(!_0x5c7f62)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x50c877=new FormData();_0x50c877[_0x1ec761(0x191)](_0x1ec761(0x22e),_0x1901f1);let _0x207117=this[_0x1ec761(0x32f)]()+_0x1ec761(0x2ad)+_0x1901f1[_0x1ec761(0x21b)][_0x1ec761(0x252)]()+'&source='+_0x52302f['UnitEmbedded']+_0x1ec761(0x16a)+encodeURIComponent(_0x5c7f62),_0x291088=(await this[_0x1ec761(0x317)][_0x1ec761(0x160)](_0x207117,{'body':_0x50c877}))[_0x1ec761(0x1c3)][_0x1ec761(0x2d1)];if(typeof _0x291088!=_0x1ec761(0x239)||!_0x291088)throw Error(_0x1ec761(0x1f8));return _0x291088;}[_0x1f5521(0x32f)](){const _0x3c58c2=_0x1f5521;return this[_0x3c58c2(0x179)]()[_0x3c58c2(0x1d5)]??_0x3c58c2(0x1a6);}['_getSignURL'](){const _0x3cb3e1=_0x1f5521;return this[_0x3cb3e1(0x179)]()[_0x3cb3e1(0x151)]??_0x3cb3e1(0x1b5);}[_0x1f5521(0x197)](){const _0xae4d73=_0x1f5521;let _0x577708=this[_0xae4d73(0x179)]();return _0x577708[_0xae4d73(0x299)]?_0x577708[_0xae4d73(0x299)]:typeof location<'u'?location[_0xae4d73(0x3b3)]:_0x577708[_0xae4d73(0x1d5)]??'';}[_0x1f5521(0x179)](){const _0x753efa=_0x1f5521;return this['_configService'][_0x753efa(0x1d1)]('collaboration-client.config')??{};}};Rn=H([V(0x0,_0x32c7b6(_0x314f58)),V(0x1,_0x32c7b6(_0x123a79)),V(0x2,_0x32c7b6(_0x238a9e))],Rn);function zn(_0x4d2afb,_0x5b42c8){const _0x48d3ef=_0x1f5521;var _0x3238a2;if(_0x5b42c8[_0x48d3ef(0x1c9)]!=null&&_0x4d2afb['size']>_0x5b42c8['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x3238a2=_0x5b42c8[_0x48d3ef(0x3aa)])!=null&&_0x3238a2[_0x48d3ef(0x316)]&&!_0x5b42c8['accept'][_0x48d3ef(0x2ae)](_0x52ca5f=>_0x4d2afb[_0x48d3ef(0x258)]===_0x52ca5f||_0x4d2afb[_0x48d3ef(0x218)][_0x48d3ef(0x1f7)](_0x52ca5f)||_0x52ca5f[_0x48d3ef(0x1f7)]('/*')&&_0x4d2afb['type'][_0x48d3ef(0x173)](_0x52ca5f[_0x48d3ef(0x2ca)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let Bn=class{constructor(_0x1cacdc,_0x4c884f,_0x3722e8){const _0x2d1403=_0x1f5521;this[_0x2d1403(0x2a1)]=_0x1cacdc,this[_0x2d1403(0x317)]=_0x4c884f,this[_0x2d1403(0x2ce)]=_0x3722e8,this[_0x2d1403(0x2c2)]();}[_0x1f5521(0x2c2)](){const _0x54fc5e=_0x1f5521;this[_0x54fc5e(0x317)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5523a9,_0x137313)=>_0x137313(_0x5523a9)[_0x54fc5e(0x220)](_0x1b7252(async _0x3d5f5a=>{const _0x3fe44f=_0x54fc5e;let _0x5be999=_0x3d5f5a;if(_0x5be999[_0x3fe44f(0x1fc)]===0x191){if(typeof window>'u')throw Error(_0x3fe44f(0x2b6));if(window[_0x3fe44f(0x1f9)](this[_0x3fe44f(0x2ce)]['t'](_0x3fe44f(0x21e)))){let _0x93dd73=window[_0x3fe44f(0x392)](window['location']['href']);window[_0x3fe44f(0x2db)][_0x3fe44f(0x1ca)]=this[_0x3fe44f(0x214)]()+_0x3fe44f(0x178)+_0x93dd73;}}return _0x5be999;}))});}[_0x1f5521(0x214)](){const _0x3d519f=_0x1f5521;let _0x3032c5=this[_0x3d519f(0x2a1)][_0x3d519f(0x1d1)](R);return(_0x3032c5==null?void 0x0:_0x3032c5[_0x3d519f(0x257)])??_0x3d519f(0x3be);}};Bn=H([V(0x0,_0x123a79),V(0x1,_0x32c7b6(_0x314f58)),V(0x2,_0x32c7b6(_0xed8942))],Bn);let Vn=class extends _0x13fb6a{constructor(_0x5305d8,_0x35fd97){const _0x591de4=_0x1f5521;super(),this[_0x591de4(0x1d9)]=_0x5305d8,this[_0x591de4(0x2a1)]=_0x35fd97,z(this,'_cfgEnableObjInherit',!0x1),this[_0x591de4(0x254)]();}[_0x1f5521(0x254)](){const _0x5b427a=_0x1f5521;let _0x2188a5=this;this['disposeWithMe'](this['_HTTPService'][_0x5b427a(0x163)]({'priority':0x3e7,'interceptor':_0x113520({'isMatch'(_0x318a63){const _0x50ccc5=_0x5b427a;var _0x54a80d;if(_0x318a63[_0x50ccc5(0x331)]==='POST'&&(_0x54a80d=_0x318a63[_0x50ccc5(0x19f)])!=null&&_0x54a80d[_0x50ccc5(0x1c3)]){let {objectID:_0x3f1244,objectType:_0x19ef10}=_0x318a63[_0x50ccc5(0x19f)]['body']||{};if(!_0x3f1244||_0x19ef10===void 0x0)return!0x1;let _0xa7e7de=_0x2188a5[_0x50ccc5(0x3d3)]()+'/'+_0x19ef10+_0x50ccc5(0x213)+_0x3f1244+_0x50ccc5(0x280);if(_0x318a63['url']===_0xa7e7de)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x477c60){const _0x223a0f=_0x5b427a;var _0x131478;return(_0x131478=_0x477c60[_0x223a0f(0x19f)])==null?void 0x0:_0x131478['body'];},'mergeParamsToRequest'(_0x578b5f,_0x20ba01){const _0x1cfe41=_0x5b427a;let _0x4cb814=_0x2188a5[_0x1cfe41(0x3d3)]()+_0x1cfe41(0x1a0),_0x4cd5ab=_0x578b5f[_0x1cfe41(0x18e)]((_0x4c295e,_0x5eadde)=>{const _0x318ae8=_0x1cfe41;let {unitID:_0x105028,objectID:_0x50edd6,objectType:_0x17abc8,actions:_0xecd677}=_0x5eadde;return _0x4c295e[_0x105028]||(_0x4c295e[_0x105028]={}),_0x4c295e[_0x105028][_0x50edd6]||(_0x4c295e[_0x105028][_0x50edd6]={'objectID':_0x50edd6,'objectType':_0x17abc8,'actions':[]}),_0x4c295e[_0x105028][_0x50edd6]['actions'][_0x318ae8(0x1cf)](..._0xecd677),_0x4c295e;},{}),_0x1e200e=[];for(let _0x591388 in _0x4cd5ab)for(let _0xacaee in _0x4cd5ab[_0x591388]){let {actions:_0xd8fc82,objectType:_0x143826}=_0x4cd5ab[_0x591388][_0xacaee],_0x5b7f8c=[...new Set(_0xd8fc82)];_0x1e200e[_0x1cfe41(0x1cf)]({'unitID':_0x591388,'objectID':_0xacaee,'objectType':_0x143826,'actions':_0x5b7f8c});}return new _0x3570bd(_0x1cfe41(0x365),_0x4cb814,{'headers':_0x20ba01['headers'],'withCredentials':_0x20ba01[_0x1cfe41(0x14c)],'responseType':_0x20ba01['responseType'],'body':{'requests':_0x1e200e}});}},{'distributeResult'(_0x42285e,_0x56e009){const _0x4bbfae=_0x5b427a;let {objectActions:_0x510b71}=_0x42285e;return _0x56e009[_0x4bbfae(0x2ea)](_0x2c7e40=>{const _0x181845=_0x4bbfae;let {unitID:_0x3e0191,objectID:_0x25dbaf,actions:_0x5376c3}=_0x2c7e40,_0x29a571=_0x510b71[_0x181845(0x209)](_0xbb18ec=>_0xbb18ec['unitID']===_0x3e0191&&_0xbb18ec[_0x181845(0x303)]===_0x25dbaf);return{'config':_0x2c7e40,'result':{'actions':_0x5376c3['map'](_0x46069e=>_0x29a571==null?void 0x0:_0x29a571['actions']['find'](_0x148b88=>_0x148b88['action']===_0x46069e))[_0x181845(0x261)](_0x308449=>!!_0x308449),'error':_0x42285e[_0x181845(0x2fc)]}};});}})}));}[_0x1f5521(0x3d3)](){const _0x2eb382=_0x1f5521;let _0x15b042=this[_0x2eb382(0x2a1)]['getConfig'](R);return(_0x15b042==null?void 0x0:_0x15b042[_0x2eb382(0x2ef)])??_0x2eb382(0x273);}async['create'](_0x425ed9){const _0x438b0f=_0x1f5521;let _0x3ee360=this[_0x438b0f(0x3d3)]()+'/'+_0x425ed9[_0x438b0f(0x30f)]+_0x438b0f(0x1c2);return(await this[_0x438b0f(0x1d9)][_0x438b0f(0x160)](_0x3ee360,{'body':_0x425ed9}))[_0x438b0f(0x1c3)][_0x438b0f(0x303)]||'';}async[_0x1f5521(0x3b7)](_0x34b248){const _0x4d4499=_0x1f5521;let _0x3f99c7=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x4d4499(0x1d9)][_0x4d4499(0x160)](_0x3f99c7,{'body':_0x34b248}))[_0x4d4499(0x1c3)]['objects'];}async[_0x1f5521(0x253)](_0x3c8d0f){const _0x36f399=_0x1f5521;var _0x1c6913;let _0x508906=this[_0x36f399(0x3d3)]()+'/'+_0x3c8d0f[_0x36f399(0x30f)]+'/object/'+_0x3c8d0f['objectID'],_0xb9661d=await this[_0x36f399(0x1d9)]['put'](_0x508906,{'body':_0x3c8d0f});if((_0xb9661d==null||(_0x1c6913=_0xb9661d[_0x36f399(0x1c3)])==null||(_0x1c6913=_0x1c6913[_0x36f399(0x2fc)])==null?void 0x0:_0x1c6913[_0x36f399(0x26d)])!==0x1)throw Error(_0x36f399(0x3d8));}async['allowed'](_0x4a87a6){const _0x458757=_0x1f5521;let _0x148315=this['_getAPIPrefixPath']()+'/'+_0x4a87a6[_0x458757(0x30f)]+_0x458757(0x213)+_0x4a87a6['objectID']+_0x458757(0x280);return(await this[_0x458757(0x1d9)][_0x458757(0x160)](_0x148315,{'body':_0x4a87a6}))[_0x458757(0x1c3)][_0x458757(0x1d6)];}async[_0x1f5521(0x1ea)](_0x106778){const _0x5b1a3b=_0x1f5521;let _0x365a38=this[_0x5b1a3b(0x3d3)]()+_0x5b1a3b(0x1a0);return(await this[_0x5b1a3b(0x1d9)][_0x5b1a3b(0x160)](_0x365a38,{'body':{'requests':_0x106778}}))[_0x5b1a3b(0x1c3)]['objectActions'];}async[_0x1f5521(0x3a8)](_0x137d5e){const _0x1044a8=_0x1f5521;let _0x133f00=this[_0x1044a8(0x3d3)]()+'/'+_0x137d5e[_0x1044a8(0x30f)]+_0x1044a8(0x25e),_0x5eacd7=await this['_HTTPService'][_0x1044a8(0x160)](_0x133f00,{'body':_0x137d5e});return{'roles':_0x5eacd7['body'][_0x1044a8(0x26a)],'actions':_0x5eacd7[_0x1044a8(0x1c3)]['actions']};}async[_0x1f5521(0x24f)](_0x4c40d0){const _0x1030ec=_0x1f5521;let _0x261862=this[_0x1030ec(0x3d3)]()+'/collaborator';await this[_0x1030ec(0x1d9)]['delete'](_0x261862,{'params':{'collaboratorID':_0x4c40d0[_0x1030ec(0x328)],'objectID':_0x4c40d0['objectID'],'unitID':_0x4c40d0[_0x1030ec(0x322)]}});}async['updateCollaborator'](_0x2a0017){const _0x367693=_0x1f5521;let _0x2c3735=this[_0x367693(0x3d3)]()+_0x367693(0x192);await this[_0x367693(0x1d9)][_0x367693(0x2fe)](_0x2c3735,{'body':_0x2a0017});}async[_0x1f5521(0x2cf)](_0x2d0df0){const _0x31935d=_0x1f5521;let _0x187969=this[_0x31935d(0x3d3)]()+_0x31935d(0x192);await this[_0x31935d(0x1d9)][_0x31935d(0x160)](_0x187969,{'body':_0x2d0df0});}async[_0x1f5521(0x3c3)](_0x2a14d5){const _0x35468e=_0x1f5521;let _0xc33a20=this['_getAPIPrefixPath']()+'/collaborator',_0x280690=await this[_0x35468e(0x1d9)]['get'](_0xc33a20,{'params':{'objectID':_0x2a14d5[_0x35468e(0x303)],'unitID':_0x2a14d5[_0x35468e(0x322)]}});return this[_0x35468e(0x3cd)](_0x280690['body']['cfgEnableObjInherit']??!0x1),_0x280690[_0x35468e(0x1c3)][_0x35468e(0x33a)];}async['putCollaborators'](_0x456d0d){const _0x44e2ad=_0x1f5521;let _0x1e2310=this[_0x44e2ad(0x3d3)]()+'/collaborator';await this[_0x44e2ad(0x1d9)][_0x44e2ad(0x2df)](_0x1e2310,{'body':_0x456d0d});}[_0x1f5521(0x3cd)](_0x530acd){const _0x2e5e42=_0x1f5521;this[_0x2e5e42(0x3ac)]=_0x530acd;}[_0x1f5521(0x2b2)](){const _0x586f7d=_0x1f5521;return this[_0x586f7d(0x3ac)];}};Vn=H([V(0x0,_0x32c7b6(_0x314f58)),V(0x1,_0x32c7b6(_0x123a79))],Vn);function Hn(_0x42021a){const _0x41db27=_0x1f5521;let _0x3536fe=atob(_0x42021a),_0x1f7865=new Uint8Array(_0x3536fe[_0x41db27(0x316)]);for(let _0x1021c0=0x0;_0x1021c0<_0x3536fe[_0x41db27(0x316)];_0x1021c0++)_0x1f7865[_0x1021c0]=_0x3536fe[_0x41db27(0x3c9)](_0x1021c0);return _0x1f7865;}function Un(_0x5df708){const _0x5a5453=_0x1f5521;let _0x8ea7a0='';for(let _0x2ecd46=0x0;_0x2ecd46<_0x5df708[_0x5a5453(0x316)];_0x2ecd46++)_0x8ea7a0+=String[_0x5a5453(0x32c)](_0x5df708[_0x2ecd46]);return btoa(_0x8ea7a0);}function Wn(_0x25c04a,_0x44924d){let _0x5af11d=Hn(_0x44924d),_0x2dc1da=_0x585ea6(0x10);return Un(_0x27bfb1(_0x2dc1da,_0x3a25ba(_0x5af11d,_0x2dc1da)['encrypt'](_0x499a8d(_0x25c04a))));}function Gn(){const _0x51ff97=_0x1f5521;let _0x3c4072=_0x122e45()[_0x51ff97(0x1ad)];if(typeof window<'u'&&window[_0x51ff97(0x2db)]!==void 0x0&&_0x3c4072){let _0x2b8b0c={'time':Math[_0x51ff97(0x1e5)](Date[_0x51ff97(0x30b)]()/0x3e8),'domain':location['hostname']};return Wn(JSON[_0x51ff97(0x212)](_0x2b8b0c),_0x3c4072);}}let Kn=class{constructor(_0x4191b7){const _0x1057fe=_0x1f5521;this['_httpService']=_0x4191b7,this[_0x1057fe(0x233)]();}[_0x1f5521(0x233)](){const _0x5d765b=_0x1f5521;this['_httpService'][_0x5d765b(0x163)]({'interceptor':(_0x28db17,_0x4cc5df)=>{const _0x51fc70=_0x5d765b;let _0x2feeab=Gn();return _0x2feeab&&_0x28db17[_0x51fc70(0x1c7)][_0x51fc70(0x16f)](_0x51fc70(0x150),_0x2feeab),_0x4cc5df(_0x28db17);}});}};Kn=H([V(0x0,_0x32c7b6(_0x314f58))],Kn);let qn=class extends _0x2fb3e4{constructor(_0x46aa7b,_0x4e3f04,_0xdbc692){const _0x5dd315=_0x1f5521;super(),this[_0x5dd315(0x2dd)]=_0x46aa7b,this['_snapshotService']=_0x4e3f04,this[_0x5dd315(0x2ab)]=_0xdbc692,z(this,_0x5dd315(0x321),new _0x21afa9(null)),z(this,_0x5dd315(0x2a7),new _0x548400()),z(this,'unitInfo$',this['_unitInfo$'][_0x5dd315(0x37a)]()),z(this,'unitLoaded$',this[_0x5dd315(0x2a7)][_0x5dd315(0x37a)]());}['dispose'](){const _0x3062e0=_0x1f5521;super[_0x3062e0(0x1ee)](),this[_0x3062e0(0x2a7)][_0x3062e0(0x185)](),this[_0x3062e0(0x321)][_0x3062e0(0x185)]();}async[_0x1f5521(0x3cc)](_0x4b33af,_0x3d592c,_0x4e61b0,_0x1f367b){const _0x44fa6c=_0x1f5521;this[_0x44fa6c(0x321)][_0x44fa6c(0x1ae)]({'unitId':_0x4b33af,'type':_0x3d592c,'subUnitId':_0x1f367b});let _0x2587a7=null;switch(_0x3d592c){case _0x4f4a88[_0x44fa6c(0x399)]:_0x2587a7=await this['_snapshotService']['loadSheet'](_0x4b33af,_0x4e61b0,void 0x0,{'initialSubUnitId':_0x1f367b});break;case _0x4f4a88['UNIVER_DOC']:_0x2587a7=await this[_0x44fa6c(0x265)][_0x44fa6c(0x2b0)](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x194)]:_0x2587a7=await this[_0x44fa6c(0x265)]['loadSlide'](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x2cb)]:_0x2587a7=await this[_0x44fa6c(0x265)][_0x44fa6c(0x290)](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x337)]:_0x2587a7=await this['_snapshotService'][_0x44fa6c(0x26b)](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x3b9)]:_0x2587a7=await this[_0x44fa6c(0x265)][_0x44fa6c(0x30c)](_0x4b33af,_0x4e61b0);break;default:this[_0x44fa6c(0x2dd)][_0x44fa6c(0x2fc)](_0x44fa6c(0x39e),_0x44fa6c(0x34d));break;}return _0x2587a7&&this[_0x44fa6c(0x2a7)][_0x44fa6c(0x1ae)](_0x2587a7),_0x2587a7;}async[_0x1f5521(0x153)](_0x53e383,_0x3d1464,_0x2cd9d1){const _0x3d901e=_0x1f5521;var _0x5f307f;this[_0x3d901e(0x321)][_0x3d901e(0x1ae)]({'unitId':_0x53e383,'type':_0x3d1464,'subUnitId':_0x2cd9d1});let _0x1a0e56=0x0,_0x109a9f=await((_0x5f307f=this[_0x3d901e(0x2ab)])==null?void 0x0:_0x5f307f['loadOfflineData'](_0x53e383));return _0x109a9f&&(_0x109a9f[_0x3d901e(0x379)]||_0x109a9f['mutations'][_0x3d901e(0x316)]!==0x0)&&(_0x1a0e56=_0x109a9f[_0x3d901e(0x3de)]),_0x1a0e56===0x0&&this['_logService'][_0x3d901e(0x35a)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3d901e(0x3cc)](_0x53e383,_0x3d1464,_0x1a0e56,_0x2cd9d1);}};qn=H([V(0x0,_0x3849f9),V(0x1,_0x32c7b6(_0xa106a3)),V(0x2,_0x100ce1(U))],qn);let Jn=class{constructor(_0x19d2d4,_0x2bb49b,_0x37c4fa){const _0xbd0a9d=_0x1f5521;this[_0xbd0a9d(0x317)]=_0x19d2d4,this[_0xbd0a9d(0x2a1)]=_0x2bb49b,this[_0xbd0a9d(0x329)]=_0x37c4fa,z(this,_0xbd0a9d(0x2fa),0x0),z(this,_0xbd0a9d(0x24e),new _0x548400()),z(this,'change$',this[_0xbd0a9d(0x24e)]),z(this,_0xbd0a9d(0x16d),new Map());}[_0x1f5521(0x141)](_0x2fe372){const _0x19bc75=_0x1f5521;this[_0x19bc75(0x2fa)]=_0x2fe372,this['_change$'][_0x19bc75(0x1ae)](_0x2fe372);}[_0x1f5521(0x2d8)](_0x3f6e06,_0x539854){const _0x3c1d41=_0x1f5521;if(_0x539854===_0x36d131['BASE64']){let _0x683d8f=new Image();return _0x683d8f[_0x3c1d41(0x1fb)]=_0x3f6e06,_0x683d8f;}return this['_imageSourceCache'][_0x3c1d41(0x20c)](_0x3f6e06);}[_0x1f5521(0x16e)](_0x4b9596,_0x5d026f,_0x529e99){const _0x1d284c=_0x1f5521;_0x5d026f!==_0x36d131[_0x1d284c(0x22d)]&&_0x529e99!=null&&this[_0x1d284c(0x16d)]['set'](_0x4b9596,_0x529e99);}async[_0x1f5521(0x38f)](_0x27162a){const _0x551ffb=_0x1f5521;try{let _0x49ee6c=this[_0x551ffb(0x3d2)](this[_0x551ffb(0x2cd)](),''+_0x27162a),_0x42fed6=(await this['_httpService'][_0x551ffb(0x20c)](_0x49ee6c))[_0x551ffb(0x1c3)];if(_0x42fed6['error']&&_0x42fed6['error'][_0x551ffb(0x26d)]===_0x5caf42['OK']){let _0x13d8f1=_0x3de6a3(_0x42fed6[_0x551ffb(0x389)],this[_0x551ffb(0x197)]());return Promise[_0x551ffb(0x2c8)](_0x13d8f1);}return Promise[_0x551ffb(0x147)](_0x42fed6[_0x551ffb(0x2fc)]);}catch(_0x55c820){return Promise[_0x551ffb(0x147)](_0x55c820);}}async[_0x1f5521(0x2e6)](_0x5a3047){const _0x4b30b3=_0x1f5521;let _0x32864d='';if(!_0x10020d[_0x4b30b3(0x377)](_0x5a3047['type']))return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f[_0x4b30b3(0x262)]));if(_0x5a3047['size']>_0x57aa8f())return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f[_0x4b30b3(0x341)]));try{let _0x11e7d6=new FormData();_0x11e7d6[_0x4b30b3(0x191)](_0x4b30b3(0x22e),_0x5a3047);let _0x5115e5=this[_0x4b30b3(0x329)]['getFocusedUnit'](),_0x2d8ef2=_0x5115e5==null?void 0x0:_0x5115e5[_0x4b30b3(0x3d7)]();if(!_0x2d8ef2)throw Error('unitId\x20is\x20not\x20found');let _0x4470b3=this['_getUploadFileURL']()+_0x4b30b3(0x2ad)+_0x5a3047[_0x4b30b3(0x21b)][_0x4b30b3(0x252)]()+_0x4b30b3(0x19b)+_0x52302f['UnitEmbedded']+_0x4b30b3(0x16a)+encodeURIComponent(_0x2d8ef2),_0x2633e8={'body':_0x11e7d6},_0x526408=(await this[_0x4b30b3(0x317)][_0x4b30b3(0x160)](_0x4470b3,_0x2633e8))[_0x4b30b3(0x1c3)];if(typeof _0x526408[_0x4b30b3(0x2d1)]!='string')return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f[_0x4b30b3(0x324)]));_0x32864d=_0x526408[_0x4b30b3(0x2d1)];}catch{return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f['ERROR_IMAGE']));}return new Promise((_0x424a30,_0x230e4a)=>{const _0x142b92=_0x4b30b3;let _0x27a987=new FileReader();_0x27a987[_0x142b92(0x2a3)](_0x5a3047),_0x27a987[_0x142b92(0x3a5)]=_0x566f2c=>{const _0x329f3b=_0x142b92;var _0x5ba5ab;let _0x451efa=(_0x5ba5ab=_0x566f2c[_0x329f3b(0x1ef)])==null?void 0x0:_0x5ba5ab[_0x329f3b(0x243)];if(_0x451efa==null){this[_0x329f3b(0x1da)](),_0x230e4a(Error(_0x5af30f[_0x329f3b(0x324)]));return;}_0x424a30({'imageId':_0x3b00a4(0x6),'imageSourceType':_0x36d131['UUID'],'source':_0x32864d,'base64Cache':_0x451efa,'status':_0x5af30f[_0x329f3b(0x1e4)]}),this['_decreaseWaiting']();};});}[_0x1f5521(0x32f)](){const _0x12ffa6=_0x1f5521;let _0x11bbf0=this[_0x12ffa6(0x2a1)][_0x12ffa6(0x1d1)](R);return(_0x11bbf0==null?void 0x0:_0x11bbf0['uploadFileServerUrl'])??_0x12ffa6(0x1a6);}[_0x1f5521(0x2cd)](){const _0x65bc67=_0x1f5521;let _0x32d6f3=this[_0x65bc67(0x2a1)]['getConfig'](R);return(_0x32d6f3==null?void 0x0:_0x32d6f3[_0x65bc67(0x151)])??'/universer-api/file/{fileID}/sign-url';}[_0x1f5521(0x197)](){const _0x42319d=_0x1f5521;let _0x321750=this[_0x42319d(0x2a1)][_0x42319d(0x1d1)](R);return(_0x321750==null?void 0x0:_0x321750[_0x42319d(0x299)])??location['origin'];}[_0x1f5521(0x3d2)](_0x3542e5,_0x32a938){const _0xaa61fa=_0x1f5521;return _0x3542e5[_0xaa61fa(0x312)](_0xaa61fa(0x3ce),_0x32a938);}[_0x1f5521(0x1da)](){const _0x1f6357=_0x1f5521;--this[_0x1f6357(0x2fa)],this[_0x1f6357(0x24e)][_0x1f6357(0x1ae)](this[_0x1f6357(0x2fa)]);}};Jn=H([V(0x0,_0x32c7b6(_0x314f58)),V(0x1,_0x123a79),V(0x2,_0x32c7b6(_0x238a9e))],Jn);let Yn=class{constructor(_0x2d8124,_0x287518){const _0x1ad04e=_0x1f5521;this[_0x1ad04e(0x2a1)]=_0x2d8124,this[_0x1ad04e(0x1d9)]=_0x287518;}[_0x1f5521(0x3d3)](){const _0x247206=_0x1f5521;let _0x7a7874=this[_0x247206(0x2a1)][_0x247206(0x1d1)](R);return(_0x7a7874==null?void 0x0:_0x7a7874[_0x247206(0x2ef)])??_0x247206(0x273);}async['list'](_0x294f99){const _0x30fe04=_0x1f5521;let _0x150d82=this[_0x30fe04(0x3d3)]()+'/collaborator';return{'list':[{'title':_0x30fe04(0x3ba),'mentions':(await this['_HTTPService'][_0x30fe04(0x20c)](_0x150d82,{'params':{'objectID':_0x294f99[_0x30fe04(0x2c4)],'unitID':_0x294f99[_0x30fe04(0x2c4)]}}))['body']['collaborators']['map'](_0x1edeb9=>({'objectId':_0x1edeb9['id'],'name':_0x1edeb9[_0x30fe04(0x31d)][_0x30fe04(0x218)],'metadata':{'icon':_0x1edeb9[_0x30fe04(0x31d)][_0x30fe04(0x2d7)]},'label':_0x1edeb9[_0x30fe04(0x31d)]['name'],'objectType':_0xf50ac4[_0x30fe04(0x1eb)]})),'metadata':{},'type':_0xf50ac4[_0x30fe04(0x1eb)]}]};}};Yn=H([V(0x0,_0x32c7b6(_0x123a79)),V(0x1,_0x32c7b6(_0x314f58))],Yn);let Xn=class extends _0x2fb3e4{constructor(_0x20bd8d,_0x43cfe0,_0x54f732,_0x53f6b4,_0x1e1d4d){const _0x5f15c4=_0x1f5521;super(),this[_0x5f15c4(0x391)]=_0x20bd8d,this[_0x5f15c4(0x329)]=_0x43cfe0,this[_0x5f15c4(0x1ed)]=_0x54f732,this[_0x5f15c4(0x162)]=_0x53f6b4,this[_0x5f15c4(0x3a1)]=_0x1e1d4d,this[_0x5f15c4(0x382)](),this[_0x5f15c4(0x3c7)]();}[_0x1f5521(0x3c7)](){const _0x3ec21f=_0x1f5521;let _0x2513ba=async _0x20aed3=>{const _0x2231fa=_0x2b9e;(await this[_0x2231fa(0x162)][_0x2231fa(0x221)](_0x20aed3))['event$'][_0x2231fa(0x220)](_0x3dc9b5(_0x2841e9=>_0x2841e9[_0x2231fa(0x1b1)]===_0x28cc07[_0x2231fa(0x373)]),_0x530203(this['dispose$']))[_0x2231fa(0x2dc)](_0x30c53c=>{const _0x5f1eae=_0x2231fa;let {reason:_0x4a8601}=_0x30c53c[_0x5f1eae(0x2cc)];this[_0x5f1eae(0x3a1)][_0x5f1eae(0x205)]({'id':_0x5f1eae(0x338),'data':_0x4a8601}),this[_0x5f1eae(0x1ed)][_0x5f1eae(0x18c)](new _0x57781e(_0x20aed3)['id'],!0x1),this[_0x5f1eae(0x162)][_0x5f1eae(0x2da)](_0x20aed3);});};_0x48bcdd(this[_0x3ec21f(0x329)]['getTypeOfUnitAdded$'](_0x4f4a88[_0x3ec21f(0x399)]),this[_0x3ec21f(0x329)][_0x3ec21f(0x1be)](_0x4f4a88[_0x3ec21f(0x33c)]),this['_univerInstanceService'][_0x3ec21f(0x1be)](_0x4f4a88[_0x3ec21f(0x2cb)]),this[_0x3ec21f(0x329)][_0x3ec21f(0x1be)](_0x4f4a88[_0x3ec21f(0x337)]))[_0x3ec21f(0x220)](_0x55a320(_0x491b49=>_0x491b49[_0x3ec21f(0x144)][_0x3ec21f(0x3d7)]()),_0x3dc9b5(_0x3b6ce2=>!_0x395bd6(_0x3b6ce2)),_0x530203(this[_0x3ec21f(0x201)]))[_0x3ec21f(0x2dc)](_0x2b3403=>{_0x2513ba(_0x2b3403);});}['_initUnitPermissionChange'](){const _0x42a946=_0x1f5521;let _0x4c74d7=async _0x1e42f9=>{const _0x5f062a=_0x2b9e;let _0x42acc9=await this[_0x5f062a(0x162)][_0x5f062a(0x221)](_0x1e42f9),_0x106217=this[_0x5f062a(0x391)][_0x5f062a(0x20c)](_0x2ddc32);_0x42acc9['event$']['pipe'](_0x3dc9b5(_0x2e8336=>_0x2e8336[_0x5f062a(0x1b1)]===_0x28cc07[_0x5f062a(0x36e)]),_0x530203(this[_0x5f062a(0x201)]))[_0x5f062a(0x2dc)](_0x592805=>{const _0x12400f=_0x5f062a;let {objectId:_0x10f014}=_0x592805['data'];_0x10f014===_0x1e42f9?_0x106217[_0x12400f(0x15c)](_0x1e42f9):_0x106217[_0x12400f(0x250)](_0x1e42f9,_0x10f014);});};_0x48bcdd(this['_univerInstanceService'][_0x42a946(0x1be)](_0x4f4a88[_0x42a946(0x399)]))[_0x42a946(0x220)](_0x55a320(_0x10217b=>_0x10217b['unit'][_0x42a946(0x3d7)]()),_0x3dc9b5(_0x1cbad0=>!_0x395bd6(_0x1cbad0)),_0x530203(this[_0x42a946(0x201)]))[_0x42a946(0x2dc)](_0x11fbd2=>{_0x4c74d7(_0x11fbd2);});}};Xn=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x238a9e),V(0x2,_0x51823a),V(0x3,_0x32c7b6(Mn)),V(0x4,_0x32c7b6(B))],Xn);let Zn=class{constructor(_0x379c88,_0x46de35){const _0x3a59de=_0x1f5521;this[_0x3a59de(0x2a1)]=_0x379c88,this['_httpService']=_0x46de35;}async[_0x1f5521(0x19e)](_0x5c2f3c,_0x2bf320){const _0x2e6104=_0x1f5521;var _0x484b13;let {unitID:_0x3e24fb,type:_0x26773d,revision:_0x3821e5=0x0}=_0x2bf320,_0x256385=this['getSnapshotAPIPath']()+'/'+_0x26773d+_0x2e6104(0x16b)+_0x3e24fb+_0x2e6104(0x340)+_0x3821e5,_0x7a98c4=(await this['_httpService'][_0x2e6104(0x20c)](_0x256385))[_0x2e6104(0x1c3)],_0xceee2f=(_0x484b13=_0x7a98c4[_0x2e6104(0x274)])==null?void 0x0:_0x484b13['workbook'];if(_0xceee2f){let _0x4efc24=_0xceee2f==null?void 0x0:_0xceee2f[_0x2e6104(0x2fb)];_0xceee2f['originalMeta']=_0x23efb2[_0x2e6104(0x2b8)](_0x52c95b(_0x4efc24)),Object[_0x2e6104(0x333)](_0xceee2f['sheets'])[_0x2e6104(0x154)](([,_0x153291])=>{const _0x893aa2=_0x2e6104;let _0xc507b5=_0x153291[_0x893aa2(0x2fb)];_0x153291[_0x893aa2(0x2fb)]=_0x23efb2[_0x893aa2(0x2b8)](_0x52c95b(_0xc507b5));});}return _0x7a98c4;}async[_0x1f5521(0x2d3)](_0x27f118,_0x5b3250){const _0xf12188=_0x1f5521;let {unitID:_0x1ef8eb,type:_0x4ddcb3,blockID:_0x23a731}=_0x5b3250,_0x73f2f9=this[_0xf12188(0x287)]()+'/'+_0x4ddcb3+_0xf12188(0x16b)+_0x1ef8eb+'/block/'+_0x23a731;return(await this[_0xf12188(0x317)]['get'](_0x73f2f9))['body'];}async['getDeserializedSheetBlock'](_0x22f7c2,_0x589d31){const _0x2038dd=_0x1f5521;let {unitID:_0x1b9259,type:_0x339c37,blockID:_0x6b0594}=_0x589d31,_0x42208d=this[_0x2038dd(0x287)]()+_0x2038dd(0x39c)+_0x339c37+_0x2038dd(0x16b)+_0x1b9259+_0x2038dd(0x39c)+_0x6b0594;return(await this['_httpService'][_0x2038dd(0x20c)](_0x42208d))['body'];}async['fetchMissingChangesets'](_0x385176,_0x35927d){const _0x2c1fa3=_0x1f5521;let {unitID:_0x200177,type:_0x570a1d,from:_0x4eff3e,to:_0x12adcb}=_0x35927d,_0x46fd6c=this[_0x2c1fa3(0x287)]()+'/'+_0x570a1d+'/unit/'+_0x200177+'/fetchmissing?from='+_0x4eff3e+_0x2c1fa3(0x24a)+_0x12adcb;return(await this[_0x2c1fa3(0x317)][_0x2c1fa3(0x20c)](_0x46fd6c))[_0x2c1fa3(0x1c3)];}[_0x1f5521(0x223)](){const _0x39eb96=_0x1f5521;return this['_configService'][_0x39eb96(0x1d1)](_0x39eb96(0x1cb))??this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x2bfc83=_0x1f5521;let _0x484bf1=this[_0x2bfc83(0x2a1)][_0x2bfc83(0x1d1)](R);return(_0x484bf1==null?void 0x0:_0x484bf1[_0x2bfc83(0x149)])??_0x2bfc83(0x259);}async[_0x1f5521(0x3b4)](_0x22fdc1,_0x4dfd54){const _0x2e4fb6=_0x1f5521;let _0x2e9d65=_0x2e4fb6(0x38e)+_0x4dfd54[_0x2e4fb6(0x258)]+_0x2e4fb6(0x16b)+_0x4dfd54[_0x2e4fb6(0x322)]+_0x2e4fb6(0x1b0);return(await this[_0x2e4fb6(0x317)][_0x2e4fb6(0x20c)](_0x2e9d65,{'params':{'resourceId':JSON[_0x2e4fb6(0x212)](_0x4dfd54[_0x2e4fb6(0x1b3)])}}))['body'];}[_0x1f5521(0x1f6)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1f5521(0x2ac)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1f5521(0x281)](){const _0x35f641=_0x1f5521;throw Error(_0x35f641(0x35d));}[_0x1f5521(0x20e)](){const _0x27afb0=_0x1f5521;throw Error(_0x27afb0(0x35d));}[_0x1f5521(0x2f8)](){const _0x176e50=_0x1f5521;throw Error(_0x176e50(0x35d));}['getLatestCsReqIdBySid'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Zn=H([V(0x0,_0x123a79),V(0x1,_0x32c7b6(_0x314f58))],Zn);let Qn=class extends _0xa29cff{constructor(_0x42145f,_0x54eeeb,_0x34b561,_0x46295,_0x4aac16,_0x5a406b){const _0x402eb6=_0x1f5521;super(_0x42145f,_0x54eeeb,_0x34b561,_0x46295),this[_0x402eb6(0x2c5)]=_0x4aac16,this[_0x402eb6(0x2dd)]=_0x5a406b;}[_0x1f5521(0x279)](_0x19f7a6,_0x309c32){const _0x4ad890=_0x1f5521;let _0x465b02=this[_0x4ad890(0x270)](_0x19f7a6);if(_0x465b02)try{let _0x33dc3a=this[_0x4ad890(0x1f3)](_0x465b02,_0x309c32);this[_0x4ad890(0x1d7)](_0x19f7a6,_0x33dc3a);}catch(_0x583418){this[_0x4ad890(0x2dd)]['error']('[CollaborationUndoRedoService]',_0x583418),this[_0x4ad890(0x219)](_0x19f7a6);}let _0x5dd13e=this[_0x4ad890(0x2e1)](_0x19f7a6);if(_0x5dd13e)try{let _0x3df5c6=this[_0x4ad890(0x1f3)](_0x5dd13e,_0x309c32);this['_substituteRedoStack'](_0x19f7a6,_0x3df5c6);}catch(_0x5cb7aa){this['_logService'][_0x4ad890(0x2fc)](_0x5cb7aa),this[_0x4ad890(0x229)](_0x19f7a6);}}[_0x1f5521(0x219)](_0x143059){const _0x4c4b34=_0x1f5521;let _0x1e6b1c=this[_0x4c4b34(0x270)](_0x143059);_0x1e6b1c&&(_0x1e6b1c['length']=0x0,this[_0x4c4b34(0x390)]());}[_0x1f5521(0x229)](_0x1b8687){const _0x465574=_0x1f5521;let _0x1f939f=this['_getRedoStack'](_0x1b8687);_0x1f939f&&(_0x1f939f['length']=0x0,this[_0x465574(0x390)]());}[_0x1f5521(0x1d7)](_0x2b6ba7,_0x1888db){const _0xd162cc=_0x1f5521;this[_0xd162cc(0x2a9)][_0xd162cc(0x16f)](_0x2b6ba7,_0x1888db),this[_0xd162cc(0x390)]();}[_0x1f5521(0x1a1)](_0x45c841,_0x32b4fd){const _0x5e04ff=_0x1f5521;this[_0x5e04ff(0x196)][_0x5e04ff(0x16f)](_0x45c841,_0x32b4fd),this[_0x5e04ff(0x390)]();}[_0x1f5521(0x1f3)](_0x1ec16b,_0x1a9b36){const _0xb7d94d=_0x1f5521;let _0x381596=[],_0x5ae4b1=_0x1a9b36,_0x107ba5=_0x1a9b36;for(let _0x1f0b62=_0x1ec16b[_0xb7d94d(0x316)]-0x1;_0x1f0b62>=0x0;_0x1f0b62--){let {unitID:_0x480c6a,undoMutations:_0x30b37e,redoMutations:_0xc64442}=_0x1ec16b[_0x1f0b62],_0x1bcb71=this['_transformService'][_0xb7d94d(0x222)](_0x5ae4b1,_0x30b37e),_0x565782=this[_0xb7d94d(0x2c5)][_0xb7d94d(0x222)](_0x107ba5,_0xc64442);if(_0xc4ea4b(_0x1bcb71)||_0xc4ea4b(_0x565782)){this[_0xb7d94d(0x2dd)][_0xb7d94d(0x2fc)](_0xb7d94d(0x3b6),_0xb7d94d(0x264),_0x1bcb71,_0x565782);break;}_0x5ae4b1=_0x1bcb71['c1Prime'],_0x107ba5=_0x565782[_0xb7d94d(0x1c6)],_0x381596['push']({'unitID':_0x480c6a,'undoMutations':_0x1bcb71['m2Prime'],'redoMutations':_0x565782[_0xb7d94d(0x242)]});}return _0x381596[_0xb7d94d(0x31c)]();}};Qn=H([V(0x0,_0x238a9e),V(0x1,_0x24738d),V(0x2,_0x3d76ae),V(0x3,_0x123a79),V(0x4,_0x30bd2c),V(0x5,_0x3849f9)],Qn);let $n=class extends _0x2c2938{constructor(_0xb5a5d8=ft,_0x1a0928,_0x2af6aa,_0x1a2961){const _0x5e44b1=_0x1f5521;super(),this[_0x5e44b1(0x364)]=_0xb5a5d8,this[_0x5e44b1(0x2dd)]=_0x1a0928,this[_0x5e44b1(0x391)]=_0x2af6aa,this[_0x5e44b1(0x2a1)]=_0x1a2961;let {..._0x2f6a27}=_0x5b8bc5({},ft,this[_0x5e44b1(0x364)]);if(!_0x2f6a27[_0x5e44b1(0x13e)])throw Error(_0x5e44b1(0x3c8));this['_config']=_0x2f6a27,this[_0x5e44b1(0x2a1)][_0x5e44b1(0x2d4)](R,_0x2f6a27);}['onStarting'](){const _0x490f24=_0x1f5521;this['_registerDependencies'](),this[_0x490f24(0x30d)]();}['_registerDependencies'](){const _0x40db14=_0x1f5521;var _0xe3090f,_0x13b372;this['_injector']['has'](_0x143b1e)&&this['_logService'][_0x40db14(0x2fc)]('[UniverCollaborationClientPlugin]',_0x40db14(0x266));let _0xe9d0de=_0x410d5e([[_0x143b1e,{'useClass':Qn}],[kn,{'useValue':An()}],[Mn],[Ot],[Wt],[Bn],[Kn],[Dt],[Xn],[B],[qn],[En,{'useClass':this[_0x40db14(0x364)][_0x40db14(0x13e)]}],[_0x223810,{'useClass':Zn}],[_0x389ebf,{'useClass':Vn}],[_0x17ef7f,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x5ec686,{'useClass':Yn}],[Nn],[In]],(_0xe3090f=this['_config'])==null?void 0x0:_0xe3090f[_0x40db14(0x2ed)]);if(!((_0x13b372=this[_0x40db14(0x364)])!=null&&_0x13b372['enableSingleActiveInstanceLock'])){let _0x1232da=_0xe9d0de[_0x40db14(0x244)](([_0xfb9f40])=>_0xfb9f40===W);_0x1232da!==-0x1&&_0xe9d0de[_0x40db14(0x2f4)](_0x1232da,0x1);}_0x3eca33(this[_0x40db14(0x391)],_0xe9d0de);}[_0x1f5521(0x30d)](){const _0x11056b=_0x1f5521;var _0x2ac724,_0x10ce29;if(this[_0x11056b(0x391)][_0x11056b(0x20c)](_0x314f58)[_0x11056b(0x163)]({'priority':0x14,'interceptor':_0x12c387({'maxParallel':0x6})}),!((_0x2ac724=this[_0x11056b(0x364)])!=null&&_0x2ac724[_0x11056b(0x251)])){var _0xb7dd4a;(_0xb7dd4a=this[_0x11056b(0x391)][_0x11056b(0x20c)](U,_0x5262c6[_0x11056b(0x2bb)]))==null||_0xb7dd4a[_0x11056b(0x306)]();}(_0x10ce29=this[_0x11056b(0x364)])!=null&&_0x10ce29[_0x11056b(0x2b3)]&&_0x1c608a(this[_0x11056b(0x391)],[[Bn]]),_0x1c608a(this[_0x11056b(0x391)],[[Kn],[Nn],[Xn]]);}};z($n,_0x1f5521(0x240),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),z($n,_0x1f5521(0x289),Pn),z($n,'version',Fn),$n=H([_0x1a8c7d(_0x267699,_0x32578b,_0x3886aa),V(0x1,_0x3849f9),V(0x2,_0x32c7b6(_0xd2295f)),V(0x3,_0x123a79)],$n);export{Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Nn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Vt as CollaborationSession,Mn as CollaborationSessionService,On as CollaborationSocketService,pn as CollaborationStatus,Et as CollaborationUIEventId,B as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,Dt as CommentService,X as ConflictState,pt as DEFAULT_COLLAB_WEB_SOCKET_URL,xt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,mt as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,ht as HEARTBEAT_INTERVAL_KEY,gt as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,kn as ICollaborationClientAdapterService,En as ICollaborationSocketService,U as ILocalCacheService,Cn as INetworkConditionService,W as ISingleActiveUnitService,yt as LOCAL_CACHE_INTERVAL,vt as LOCAL_CACHE_INTERVAL_KEY,Ot as MemberService,Yn as MentionIoHttpService,Z as OfflineState,Sn as PdfCollaborationEntity,q as PendingState,bt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,_t as RETRY_CONNECTING_MAX_COUNT_KEY,zt as SessionStatus,yn as SheetCollaborationEntity,Wt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Gt as UnitStatus,$n as UniverCollaborationClientPlugin,An as createUniverCollaborationAdapter,wn as deserializeToCombResponse,Ht as getLocalCacheKey,Tn as serializeCombRequest};
1
+ const _0x849776=_0x45be;(function(_0x23da52,_0x1d791a){const _0x296cf2=_0x45be,_0x264b0d=_0x23da52();while(!![]){try{const _0x281757=-parseInt(_0x296cf2(0x385))/0x1+-parseInt(_0x296cf2(0x11c))/0x2*(-parseInt(_0x296cf2(0x2c3))/0x3)+-parseInt(_0x296cf2(0x27c))/0x4*(-parseInt(_0x296cf2(0x14b))/0x5)+-parseInt(_0x296cf2(0x339))/0x6*(parseInt(_0x296cf2(0x15f))/0x7)+-parseInt(_0x296cf2(0x1ab))/0x8+parseInt(_0x296cf2(0x362))/0x9+-parseInt(_0x296cf2(0x17f))/0xa*(parseInt(_0x296cf2(0x2e1))/0xb);if(_0x281757===_0x1d791a)break;else _0x264b0d['push'](_0x264b0d['shift']());}catch(_0x5b015f){_0x264b0d['push'](_0x264b0d['shift']());}}}(_0x4ffd,0x61afb));import{CollaborationEvent as _0x389ee8,CompressMutationService as _0x27ea2d,EmptyMutationInfo as _0x905a7a,ISnapshotServerService as _0x382477,ITransformService as _0x4ac591,RevisionService as _0x12caa0,SnapshotService as _0x4ae9c6,UniverCollaborationPlugin as _0x268be8,b64DecodeUnicode as _0x2d3e4d,isTransformChangesetsSuccess as _0x63d5c9,isTransformMutationsWithChangesetFailure as _0x41f763,isTransformMutationsWithChangesetSuccess as _0x412a1a,mapDocumentTypeToUniverInstanceType as _0x146dcc,parseChangesetToProtocol as _0x133adf,parseProtocolChangeset as _0x373627,textEncoder as _0x4a8895,uuidv4 as _0x72e049}from'@univerjs-pro/collaboration';function _0x4ffd(){const _0x344fc9=['[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','toPrimitive','rev','candidateSocket','push','getSnapshotAPIPath','message$','_onRemoteChangeset','_onUserJoin','from','_transformSelections','_onFetchMissResult','getTypeOfUnitAdded$','BASE64','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_remoteChangesetQueue','_undoStacks','?size=','socket\x20open.','LIVESHARE_FETCH_OPERATIONS','_getLoginPath','updateCollaborator','_clearRetryConnectingTimer','_sendingTimer','_substituteRedoStack','indexOf','getCurrentRevOfUnit','_transformRemoteChangesetByIMECache','onRemoteRetry','getResourcesRequest','JOINING','constructor','origin','allowed','SUCCUSS','dispose$','roomInfos','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_transformAndApplyRemoteChangeset','unit','pipe','localCacheService','_disableEditing','[SyncedState]:\x20received\x20rejection.','UNISCRIPT_RUN','_socketChannels','retryConnectingInterval','default','_collaborationPaused','_collabSessionService','deleteCollaborator','People','closeSession','RECV','_upload','_snapshotService','failed\x20to\x20apply\x20missed\x20changesets!','_socketService','dispose','getCollabEntity','ERROR_IMAGE_TYPE','_HTTPService','_sessions','stopTime','_transformService','updatePermissionPoint','memberID','_clearUndo','entries','fetch_missing','originalMeta','@univerjs-pro/collaboration-client','getWorkbookSelections','onSendChangeset','/resources','resolveUnit','_startCollaboration','_updateLocalCache','_changesetReqId','RETRY_CONNECTING_MAX_COUNT','transformMutationsWithChangeset','startTime','UPDATE_PERMISSION_OBJ','_startTelemetryCollaborationNewChangeset','_collaborationUIEventService','HEARTBEAT','status','collaboration-client.local-cache-service','_replayCachedMutations','_onCombEvent','refreshPermission','m2Prime','[CollaborationSession]','_adapter','loadUnitOfRevision','4PGeqGg','enableAuthServer','_resendWithTimeout','result','_removeRoom','forEach','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_unitLoaded$','_state','session.room-full','_commentService','loadDoc','localeService','_executeRemoteChangeset','status$','_getSendChangesetTimeout','hostname','params','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LIVESHARE_REQUEST_HOST','timeoutTimer','toLocal','_clearTimeoutTimer','\x20to\x20','readyForCollab','socketReady','size','subscribe','length','_applyRemoteChangeset','reverse','AWAITING_WITH_PENDING','_resendTimer','_joinRoom','startsWith','add','sheets','getCfgEnableObjInherit','&source=','_clearRedo','session','PENDING','getSheetBlock','getImageSourceCache','_localCacheService','submit\x20changeset\x20error!','location','min','[PendingState]:\x20received\x20rejection.','connection\x20error','unknown','onlyLocal','_awaitingChangeset','cmd','setShowComponents','_roomMembers','function','maxSize','state$','loginUrlKey','_onRemoteRetry','baseRev','/universer-api/uniscript','getUnit','\x0aCurrent:\x20','[DataLoaderService]','_scheduleCollaborationTimeoutTimer','error','shouldCloseConn','/universer-api/user/session-ticket','_docStateChangeManagerService','3sflagJ','send','splice','appendMutation','_initUnitPermissionChange','decorate','_handleRemoteChangesets','UNIVER_COLLABORATION_CLIENT_PLUGIN','csShouldRetryEvent','_schedule','emitEvent','_createSocket','toggleOnline','[OfflineState]:\x20received\x20changeset.','[CollaborationSessionService]','/universer-api/snapshot/','UNIVER_BOARD','Univer','unitId\x20is\x20not\x20found','newCsEvent','[CollaborationUndoRedoService]','debug','/universer-api/file/{fileID}/sign-url','permissionRejEvent','listCollaborators','[CollaborationSessionService]:\x20socket\x20error','&to=','loadUnit','accept','unit-cache-','121eEiMjr','onload','updateMember','CHANGESET_SHOULD_RETRY','saveAttachment','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','open$','_socketMessageSubscription','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_state$','sendHeartbeatTimer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_maxTotalRetryTimeout','_transformStateCache','_sheetTransformSelectionsService','getAttachmentUrl','/-/object/-/batch_allowed','awaitingChangeset','actions','init','getUnitOnRev','PERMISSION_DENIED','IDLE','listRoles','now','saveSheetBlock','_initRequestHeader','subject','_handlerCallback','find','_acknowledgeAwaiting','collaMsg','onCommentUpdate','/object/','_instanceService','onTransformSelections','{fileID}','collaboration-client.auth.needGotoLoginAlert','getLatestCsReqIdBySid','registerHTTPInterceptor','data','/-/object/list','_queuedRemoteChangesets','HELLO','routeKey','uploadFileServerUrl','onRemoteAck','type','_onRemoteRejected','SNAPSHOT_URL_KEY','updatePermissionObjEvent','transformUndoRedo','/new_changes','fetchMiss','SUBMIT_CHANGESET_TIMEOUT','toRemote','LIVESHARE_TERMINATE','_onOffline','[PendingState]:\x20received\x20acknowledgement.','transformStack\x20failed!','_transformUndoredo','clear','POST','_sessionChannels','_getAPIPrefix','objectActions','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','loadSlide','_members$','slice','_transitionLocked','_commentUpdate$','getTime','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','/block/','delete','_init','range','/universer-api/snapshot','_eventService','unitId','socketMessageSubscription','apply','_tryReconnect','charCodeAt','LEAVE','UUID','collabWebSocketUrl','1236CUDiYM','awaiting_with_pending','MSG_FOR_ERROR','_transformIMECache','unsubscribe','list','__splitChunk__','[CollaborationState]:\x20apply\x20error!','csRejEvent','_getUndoStack','loadSheet','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','endsWith','MUTATION','getUnitId','_getSocketChannel','PSEUDO_FETCH_MISSING_RESULT','fetchThroughInterceptors','encrypt','_updateState','updateSnapshot','_isEchoedAwaitingChangeset','createSocket','requestParams','getUnitStatus$','onMutationExecutedForCollab','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_identity','_emitMembers','_unlockTransition','CHANGESET_REJ','state','onSyncEditingCollabCursor','editing\x20status\x20changed\x20to','href','saveChangeset','_updateStatus','_entityInit$','_transformRemoteChangesetByStateCache','unitID','_onConnectionOpen','6225399QOaNBD','name','getFocusedUnit','mutations','_getUploadFileURL','_univerInstanceService','_roomCreated$','close','findIndex','error$','interceptor','patch','userID','executeCommand','downloadEndpointUrl','__Key__','sessionStatus$','ws://127.0.0.1:8000/universer-api/comb/connect','initWorkbookPermissionChange','backupOfflineData','NEW_CHANGESETS','_event$','SOCKET_FAILED','_handler','append','updateOfflineData','enableSingleActiveInstanceLock','onTransformState','loadBase','getMemberID','x-univer-host','collaboratorID','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','Error\x20on\x20receiving\x20event','getTypeOfUnitDisposed$','191612WvFtGh','_submitChangeset','post','getUnitType','_pendingSessions','USERS_LEAVE','close$','awaiting','number','/unit/','createCollaborator','CLOSE_ROOM','then','UNIVER_SLIDE','pauseCollaboration','onTransformRemoteChangesetByIMECache','resend','pending','hasOwnProperty','localUnitId','unitLoaded$','_acknowledgedAwaitingRevision','&assign=','stringify','CONFLICT','UNIVER_DOC','SOCKET_FAILED_RETRY','_commandService','cfgEnableObjInherit','next','INGEST','_getCurrentRevision','getDeserializedSheetBlock','CHANGESET_ACK','tables','compose','_createSession','symbol','_changesetSessionId','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','base-ui.attachment-io.service','every','getActiveSheet','unitType','_unitInfo$','_syncEditingCollabCursor','createInstance','responseType','_initDependencies','FETCH_MISSING','_replaceFileID','_clearLocalCache','setWaitCount','onTransformIME','set','fromCollab','transformSelections','_getDownloadEndpointURL','offline','_compressMutationService','674872CRlGYk','url','_waitForHeartbeatResponse','missingChangesets','FileId','changeset','onTransformRemoteChangesetByStateCache','_configService','\x20-\x20','_onConflict','_injector','_socket','\x20in\x20_schedule.','transformChangesets','removeMember','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','defineProperty','_resolveSessionIdentity','_logService','LIVESHARE_OPERATION','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','getConfig','SHOULD_CLOSE_CONN','onRemoteRej','body','incrementRevOfUnit','_getConfig','/universer-api/comb','onStarting','retryCount','_substituteUndoStack','getSheetId','selections','COMMENT_UPDATE','UNIVER_BASE','onRemoteChangeset','values','getCollabEntity$','asObservable','PERMISSION_REJ','members$','JOIN','univer-pro.collaboration-client-adapter-service','updateCursorEvent','_registerDependencies','c2Prime','headers','2379525RCxPva','\x0aAfter:\x20','UNIVER_PDF','_collaborationSessionService','/collaborator','call','_collaborationTimeoutTimer','synced','resourceIDs','online$','has','/allowed','JOIN_ROOM_FAILED','disposeWithMe','endpointKey','confirm','_transformStack','_isPermissionRej','map','socket$','1351GMzErK','_stopTelemetryCollaborationNewChangeset','_onLocalMutation','_waitCount','getMember','LIVESHARE_NEW_HOST','_telemetryInfo','disableLocalCache','_shouldReportTelemetry','_snapshotServerService','conflict','_telemetryService','1.0.0-beta.2','_permissionService','isArray','_createHandler','objectID','/role','prototype','loadOfflineData','string','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HEARTBEAT_INTERVAL','COMPRESS_MUTATION_SEND','addHandlerCallback','not_collab','event$','_status$','_clearScheduledTask','fetching\x20missing\x20changesets\x20from\x20','[FetchMissState]','reconnect','423740ROHSJA','getCurrentUser','_change$','reqId','_clearCollaborationTimeoutTimer','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_config','members','FETCH_MISS','COMPRESS_MUTATION_APPLY','_showConflictNotification','_decreaseWaiting','collabSubmitChangesetUrl','sessionStatus','packageName','JOIN_ROOM_FULL','_doCreateSocket','_revisionService','[CollaborationEntity]','session.room-permission-denied','OFFLINE','complete','AWAITING','_hasSessionsForEndpoint','override','withCredentials','SUBMIT_CHANGESET','eventID','getInterceptPoints','OTHER_CLIENT_EDITING','collaborators','UnitEmbedded','action','onMissedChangesetFetched','c1Prime','ERROR_EXCEED_SIZE','_acknowledgeAwaitingIfReady','requireSession','_redoStacks','sid','_resendTimeout','_members','onMissingChangesets','_exhaustRemoteChangesetQueue','3259560pXpICS','_onJoinRoomEvent','_toggleOffline','fetchMissingChangesets','toggleOffline','_memberService','file','_createInitialStateImpl','endpoint','NOT_COLLAB','socket\x20close','object','entityInit$','telemetry\x20info\x20is\x20not\x20initialized','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','LOCAL_CACHE_INTERVAL','encode','enableOfflineEditing','ERROR_IMAGE','unitInfo$','univer-pro.collaboration-client.network-condition.service','joinEvent','_createInitialState','_getCtorByUniverInstanceType','/object','_localeService','_fetchMissChangesets','collaboration-client.config','csAckEvent','_networkConditionService','capture','_singleActiveUnitService','_imageSourceCache','loadBoard','objectType','_getAPIPrefixPath','getValue','session.room-not-exists','_onRecvEvent','editingUnit','_pendingMutations','includes','USERS_ENTER','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onLocalMutation','ONLINE','JOIN_ROOM_NOT_EXISTS','roles','getOwnPropertyDescriptor','revision','_entities','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','univer-pro.collaboration-client-socket-service','_rescheduleHeartbeat','UNIVER_SHEET','code','authzUrl','replace','_getRedoStack','some','readAsDataURL','_initCloseConn','_httpService','reduce','isPermissionRej','_userManagerService','retryConnectingTimer','univer-pro.collaboration-client.single-active-unit-service','_incrementRevisionNumber','_sessionStatus$','_getSignURL','sort','upload','_sendHeartbeat','reject','batchAllowed','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_scheduleCompleteTimestamp','_sender','_clearHeartbeatTimer','waitForRoom$','catch','target','_lockTransition','uniscriptRunEvent','blockRanges','deepClone','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','get','COLLABORATION_ENDPOINT_INVALID','_undoRedoService','pluginName','SYNCED','textRanges','NO_OTHER_CLIENTS_EDITING','commentUpdate$','_listenToNetworkCondition','setConfig','/universer-api/stream/file/upload','_toggleOnline','_checkMissing','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','filter','changesets','_onConnectionFailed','signUrlServerUrl','isCompositionEnd','parse','_type','_tryEnsureSocket','socketService','toString','OTHER_CLIENTS_EDITING','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.'];_0x4ffd=function(){return _0x344fc9;};return _0x4ffd();}import{CommandType as _0x3d8a6e,DependentOn as _0x2b9643,Disposable as _0x513609,DisposableCollection as _0x2341b1,IAuthzIoService as _0x3e5c98,ICommandService as _0x39bf2b,IConfigService as _0x6f8878,IContextService as _0x476244,IImageIoService as _0x4ac6c3,ILogService as _0x3dc3ee,IMentionIOService as _0x4d90d5,IPermissionService as _0x2cf373,IUndoRedoService as _0x1348cc,IUniverInstanceService as _0x273a3b,ImageSourceType as _0x3a8937,ImageUploadStatusType as _0x321486,Inject as _0x409c93,Injector as _0x28d4d4,JSONX as _0x30efff,LocalUndoRedoService as _0x41de87,LocaleService as _0x36c9a1,MentionType as _0x5221fb,Optional as _0x232f40,Plugin as _0x4fa488,Quantity as _0x5674e5,Rectangle as _0x20582a,RxDisposable as _0x2ed6e1,Tools as _0x43f716,UniverInstanceType as _0x35f6ba,UserManagerService as _0x18e67b,Workbook as _0x146383,createIdentifier as _0x59b7ef,generateRandomId as _0x2269ed,isInternalEditorID as _0xd6485b,merge as _0x1bd68b,mergeOverrideWithDependencies as _0x21ee89,registerDependencies as _0x116877,resolveWithBasePath as _0x28734f,sequenceExecute as _0x525b70,toDisposable as _0x577479,touchDependencies as _0x3ac88d}from'@univerjs/core';import{DocStateChangeManagerService as _0x1ee581,RichTextEditingMutation as _0x51d6fe}from'@univerjs/docs';import{InsertSheetMutation as _0x21797a,SetSelectionsOperation as _0x2667e0,SheetPermissionInitController as _0x4856a0,SheetsSelectionsService as _0x47e021,WorkbookEditablePermission as _0x302f4b}from'@univerjs/sheets';function _0x45be(_0x1eed73,_0x59380a){_0x1eed73=_0x1eed73-0x111;const _0x4ffd55=_0x4ffd();let _0x45be61=_0x4ffd55[_0x1eed73];return _0x45be61;}import{BehaviorSubject as _0x2fdef4,ReplaySubject as _0x8764fa,Subject as _0x3bb8b8,concatMap as _0x42e4c2,firstValueFrom as _0x7cdf29,map as _0xe7ad12,merge as _0x2b1216,of as _0x3bb851,shareReplay as _0x3b397c,take as _0x3ef186,takeUntil as _0x6f4bf7}from'rxjs';import{CmdRspCode as _0x102325,CombCmd as _0x50ebb8,ErrorCode as _0x5c50d5,FileSource as _0x3e0751}from'@univerjs/protocol';import{ITelemetryService as _0x366457}from'@univerjs/telemetry';import{delay as _0x29361c,filter as _0x530fac,map as _0x290e14,take as _0x2244a2,takeUntil as _0x3a4e23}from'rxjs/operators';import{AddSlidePageMutation as _0x5bd3af,EnsureSlideMasterPageMutation as _0x23b723,MoveSlidePageMutation as _0x349e00,RemoveSlidePageMutation as _0xd8440b}from'@univerjs-pro/slides';import{HTTPRequest as _0x4cce1a,HTTPService as _0x286bba,ISocketService as _0x17a395,MergeInterceptorFactory as _0xbba41,ThresholdInterceptorFactory as _0x323fb8,UniverNetworkPlugin as _0x592ffd}from'@univerjs/network';import{UniverLicensePlugin as _0xa32b50,getGlobalObject as _0xcfed1e}from'@univerjs-pro/license';import{cbc as _0x6d05ef}from'@noble/ciphers/aes.js';import{concatBytes as _0xd51092,randomBytes as _0x43bce8,utf8ToBytes as _0x3b15c2}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x5aad19,getDrawingImageAllowSize as _0x27e29a}from'@univerjs/drawing';const R=_0x849776(0x1c6),ft={},pt=_0x849776(0x373),mt=_0x849776(0x2c1),ht='HEARTBEAT_INTERVAL',gt='HEARTBEAT_TIMEOUT',_t=_0x849776(0x26c),vt=_0x849776(0x1ba),yt=0x3e8,bt=_0x849776(0x2e6),xt=_0x849776(0x2ba);function St(_0x41dfd7){const _0x679eab=_0x849776;return JSON[_0x679eab(0x39c)](_0x41dfd7)[_0x679eab(0x298)];}function Ct(_0x13a550){'@babel/helpers - typeof';const _0x3ad802=_0x849776;return Ct=typeof Symbol==_0x3ad802(0x2b4)&&typeof Symbol['iterator']=='symbol'?function(_0x2302d4){return typeof _0x2302d4;}:function(_0x2be316){const _0xa7fbb5=_0x3ad802;return _0x2be316&&typeof Symbol==_0xa7fbb5(0x2b4)&&_0x2be316[_0xa7fbb5(0x23c)]===Symbol&&_0x2be316!==Symbol[_0xa7fbb5(0x171)]?_0xa7fbb5(0x3aa):typeof _0x2be316;},Ct(_0x13a550);}function wt(_0x2182e6,_0x280271){const _0x1548bf=_0x849776;if(Ct(_0x2182e6)!=_0x1548bf(0x1b6)||!_0x2182e6)return _0x2182e6;var _0x3d5fdd=_0x2182e6[Symbol[_0x1548bf(0x21e)]];if(_0x3d5fdd!==void 0x0){var _0x22fa2c=_0x3d5fdd[_0x1548bf(0x150)](_0x2182e6,_0x280271||_0x1548bf(0x24c));if(Ct(_0x22fa2c)!=_0x1548bf(0x1b6))return _0x22fa2c;throw TypeError(_0x1548bf(0x184));}return(_0x280271===_0x1548bf(0x173)?String:Number)(_0x2182e6);}function Tt(_0x5b3372){const _0x39bea6=_0x849776;var _0x57bfe8=wt(_0x5b3372,_0x39bea6(0x173));return Ct(_0x57bfe8)==_0x39bea6(0x3aa)?_0x57bfe8:_0x57bfe8+'';}function z(_0x5f4757,_0x5ccd26,_0x1e9c7f){return(_0x5ccd26=Tt(_0x5ccd26))in _0x5f4757?Object['defineProperty'](_0x5f4757,_0x5ccd26,{'value':_0x1e9c7f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f4757[_0x5ccd26]=_0x1e9c7f,_0x5f4757;}let Et=function(_0x39501){const _0xbce9a5=_0x849776;return _0x39501['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x39501[_0xbce9a5(0x2f6)]='PERMISSION_DENIED',_0x39501[_0xbce9a5(0x39d)]='CONFLICT',_0x39501['CLOSE_ROOM']=_0xbce9a5(0x390),_0x39501[_0xbce9a5(0x157)]='JOIN_ROOM_FAILED',_0x39501[_0xbce9a5(0x39f)]=_0xbce9a5(0x39f),_0x39501[_0xbce9a5(0x378)]='SOCKET_FAILED',_0x39501[_0xbce9a5(0x317)]=_0xbce9a5(0x317),_0x39501;}({});var B=class{constructor(){const _0x5e8c36=_0x849776;z(this,_0x5e8c36(0x377),new _0x3bb8b8()),z(this,'event$',this[_0x5e8c36(0x377)]['asObservable']());}[_0x849776(0x2cd)](_0x2faf18){const _0x42858c=_0x849776;this[_0x42858c(0x377)][_0x42858c(0x3a2)](_0x2faf18);}},Dt=class{constructor(){const _0x1c83b7=_0x849776;z(this,_0x1c83b7(0x328),new _0x3bb8b8()),z(this,_0x1c83b7(0x20a),this[_0x1c83b7(0x328)][_0x1c83b7(0x142)]());}['onCommentUpdate'](_0x13873c){const _0x1e2fc5=_0x849776;this[_0x1e2fc5(0x328)][_0x1e2fc5(0x3a2)](_0x13873c);}};function V(_0x2daf1f,_0xffce78){return function(_0x4eb8e9,_0x412613){_0xffce78(_0x4eb8e9,_0x412613,_0x2daf1f);};}function H(_0x144faa,_0x34d002,_0x236597,_0x3ea413){const _0x23fb9b=_0x849776;var _0x144212=arguments['length'],_0x27742a=_0x144212<0x3?_0x34d002:_0x3ea413===null?_0x3ea413=Object[_0x23fb9b(0x1db)](_0x34d002,_0x236597):_0x3ea413,_0x4c1a5b;if(typeof Reflect==_0x23fb9b(0x1b6)&&typeof Reflect[_0x23fb9b(0x2c8)]==_0x23fb9b(0x2b4))_0x27742a=Reflect['decorate'](_0x144faa,_0x34d002,_0x236597,_0x3ea413);else{for(var _0x314403=_0x144faa['length']-0x1;_0x314403>=0x0;_0x314403--)(_0x4c1a5b=_0x144faa[_0x314403])&&(_0x27742a=(_0x144212<0x3?_0x4c1a5b(_0x27742a):_0x144212>0x3?_0x4c1a5b(_0x34d002,_0x236597,_0x27742a):_0x4c1a5b(_0x34d002,_0x236597))||_0x27742a);}return _0x144212>0x3&&_0x27742a&&Object[_0x23fb9b(0x12c)](_0x34d002,_0x236597,_0x27742a),_0x27742a;}let Ot=class extends _0x513609{constructor(_0x4bcb7b){const _0x4769f1=_0x849776;super(),this[_0x4769f1(0x367)]=_0x4bcb7b,z(this,_0x4769f1(0x2b3),new Map()),z(this,_0x4769f1(0x368),new _0x3bb8b8()),this[_0x4769f1(0x158)](_0x2b1216(this[_0x4769f1(0x367)]['getTypeOfUnitDisposed$'](_0x35f6ba['UNIVER_SHEET'])[_0x4769f1(0x245)](_0x290e14(_0x1188d2=>_0x1188d2['getUnitId']())),this[_0x4769f1(0x367)][_0x4769f1(0x384)](_0x35f6ba[_0x4769f1(0x39e)])[_0x4769f1(0x245)](_0x290e14(_0x4e0d03=>_0x4e0d03[_0x4769f1(0x347)]())),this[_0x4769f1(0x367)][_0x4769f1(0x384)](_0x35f6ba[_0x4769f1(0x2d3)])[_0x4769f1(0x245)](_0x290e14(_0x10a3d6=>_0x10a3d6['getUnitId']())),this[_0x4769f1(0x367)][_0x4769f1(0x384)](_0x35f6ba['UNIVER_BASE'])['pipe'](_0x290e14(_0x203599=>_0x203599[_0x4769f1(0x347)]())))[_0x4769f1(0x297)](_0x3805c0=>this[_0x4769f1(0x280)](_0x3805c0)));}[_0x849776(0x1fb)](_0x25a87c){const _0x35298c=_0x849776;return this[_0x35298c(0x2b3)][_0x35298c(0x155)](_0x25a87c)?_0x3bb851(this[_0x35298c(0x2b3)]['get'](_0x25a87c)):this[_0x35298c(0x368)][_0x35298c(0x245)](_0x290e14(_0x37dedd=>{const _0x1c46fe=_0x35298c;if(_0x37dedd===_0x25a87c)return this[_0x1c46fe(0x2b3)][_0x1c46fe(0x203)](_0x37dedd);}));}[_0x849776(0x2e3)](_0xc8e76d,_0x58bc26){const _0x36faa3=_0x849776;let _0xcb7c40=this['_roomMembers'][_0x36faa3(0x203)](_0xc8e76d);_0xcb7c40||(_0xcb7c40=new kt(),this[_0x36faa3(0x2b3)][_0x36faa3(0x116)](_0xc8e76d,_0xcb7c40),this['_roomCreated$'][_0x36faa3(0x3a2)](_0xc8e76d)),_0xcb7c40[_0x36faa3(0x2e3)](_0x58bc26);}['removeMember'](_0x4e2a7a,_0x3a985c){const _0x270304=_0x849776;let _0x3ddf10=this[_0x270304(0x2b3)][_0x270304(0x203)](_0x4e2a7a);_0x3ddf10&&_0x3ddf10[_0x270304(0x12a)](_0x3a985c);}['getRoom'](_0x3eb3de){const _0x4c615d=_0x849776;return this[_0x4c615d(0x2b3)]['get'](_0x3eb3de);}[_0x849776(0x163)](_0x3658ba,_0x169546){const _0x27b774=_0x849776;let _0x17c174=this['_roomMembers']['get'](_0x3658ba);if(_0x17c174)return _0x17c174[_0x27b774(0x163)](_0x169546);}['_removeRoom'](_0x5d0bd2){const _0x13c68c=_0x849776;let _0x3d68ff=this['_roomMembers']['get'](_0x5d0bd2);_0x3d68ff&&(_0x3d68ff['dispose'](),this[_0x13c68c(0x2b3)][_0x13c68c(0x32c)](_0x5d0bd2));}['dispose'](){const _0x251f74=_0x849776;this[_0x251f74(0x2b3)][_0x251f74(0x281)](_0x2331ae=>_0x2331ae[_0x251f74(0x257)]()),this[_0x251f74(0x2b3)]['clear'](),this[_0x251f74(0x368)]['complete']();}};Ot=H([V(0x0,_0x273a3b)],Ot);var kt=class extends _0x513609{constructor(..._0x1a8744){const _0x3d7362=_0x849776;super(..._0x1a8744),z(this,_0x3d7362(0x1a8),new Map()),z(this,'_members$',new _0x2fdef4(this[_0x3d7362(0x1a8)])),z(this,_0x3d7362(0x144),this[_0x3d7362(0x325)][_0x3d7362(0x142)]());}[_0x849776(0x257)](){const _0x23ddf1=_0x849776;this['_members']['clear'](),this[_0x23ddf1(0x325)]['complete']();}[_0x849776(0x2e3)](_0x2c1890){const _0x2bd959=_0x849776;this[_0x2bd959(0x1a8)][_0x2bd959(0x116)](_0x2c1890[_0x2bd959(0x25f)],_0x2c1890),this['_emitMembers']();}['removeMember'](_0x345006){const _0x4777d5=_0x849776;this[_0x4777d5(0x1a8)][_0x4777d5(0x32c)](_0x345006),this['_emitMembers']();}[_0x849776(0x163)](_0x316204){const _0x2cdfa0=_0x849776;return this['_members'][_0x2cdfa0(0x203)](_0x316204);}['getAllMembers'](){const _0x518880=_0x849776;return Array[_0x518880(0x226)](this['_members'][_0x518880(0x140)]());}[_0x849776(0x355)](){const _0x31c45f=_0x849776;this[_0x31c45f(0x325)]['next'](this['_members']);}};function At(_0x3baf0b,_0x5d5229){const _0x7ea27a=_0x849776;if(Mt(_0x3baf0b))return _0x5d5229;if(_0x5d5229[_0x7ea27a(0x19a)]===_0x389ee8[_0x7ea27a(0x199)]){let _0x592daf=Lt(_0x3baf0b),_0x35920a=_0x5d5229;return{..._0x35920a,'data':{..._0x35920a[_0x7ea27a(0x309)],'unitID':_0x3baf0b[_0x7ea27a(0x1fd)][_0x7ea27a(0x331)],'unitType':_0x3baf0b[_0x7ea27a(0x1fd)]['unitType']??_0x35920a['data'][_0x7ea27a(0x3b0)],'changeset':_0x592daf[_0x7ea27a(0x318)](_0x35920a[_0x7ea27a(0x309)][_0x7ea27a(0x121)],Rt(_0x3baf0b))}};}if(_0x5d5229[_0x7ea27a(0x19a)]===_0x389ee8[_0x7ea27a(0x111)]){let _0x1f9336=_0x5d5229;return{..._0x1f9336,'data':{..._0x1f9336['data'],'unitID':_0x3baf0b[_0x7ea27a(0x1fd)][_0x7ea27a(0x331)],'unitType':_0x3baf0b[_0x7ea27a(0x1fd)][_0x7ea27a(0x3b0)]??_0x1f9336[_0x7ea27a(0x309)][_0x7ea27a(0x3b0)]}};}return _0x5d5229;}function jt(_0x52d41b,_0x374b27){const _0x4c0d6d=_0x849776;if(Mt(_0x52d41b))return[_0x374b27];switch(_0x374b27[_0x4c0d6d(0x19a)]){case _0x389ee8[_0x4c0d6d(0x376)]:return[Nt(_0x52d41b,_0x374b27)];case _0x389ee8['PSEUDO_FETCH_MISSING_RESULT']:return[Ft(_0x52d41b,_0x374b27)];case _0x389ee8[_0x4c0d6d(0x2e4)]:return[Pt(_0x52d41b,_0x374b27)];default:return[_0x374b27];}}function Mt(_0x94ad52){const _0x1eff15=_0x849776;return _0x94ad52[_0x1eff15(0x1fd)][_0x1eff15(0x1b3)]==null&&_0x94ad52[_0x1eff15(0x1fd)][_0x1eff15(0x331)]===_0x94ad52['localUnitId']&&!_0x94ad52['changeset'];}function Nt(_0x44550a,_0x21d052){const _0x49a65d=_0x849776;return{..._0x21d052,'data':_0x133adf(It(_0x44550a,_0x373627(_0x21d052[_0x49a65d(0x309)])))};}function Pt(_0x3096c2,_0x1877ea){const _0x5caa78=_0x849776;return{..._0x1877ea,'data':It(_0x3096c2,_0x1877ea[_0x5caa78(0x309)])};}function Ft(_0x2ae533,_0xbaadaf){const _0x1b9d50=_0x849776;let _0x12b610=_0xbaadaf[_0x1b9d50(0x309)];return{..._0xbaadaf,'data':{..._0x12b610,'changesets':_0x12b610[_0x1b9d50(0x212)][_0x1b9d50(0x15d)](_0x15715e=>_0x133adf(It(_0x2ae533,_0x373627(_0x15715e))))}};}function It(_0x3742c6,_0x98c9f6){const _0x1eee99=_0x849776;return Lt(_0x3742c6)[_0x1eee99(0x291)](_0x98c9f6,Rt(_0x3742c6));}function Lt(_0x221185){const _0x8b40c7=_0x849776;if(!_0x221185['changeset'])throw Error(_0x8b40c7(0x1f7));return _0x221185[_0x8b40c7(0x121)];}function Rt(_0x50aa37){const _0x3ae624=_0x849776;return{'localUnitId':_0x50aa37[_0x3ae624(0x398)],'unitType':_0x50aa37['unitType'],'target':_0x50aa37[_0x3ae624(0x1fd)]};}let zt=function(_0x5ac996){const _0x5221b3=_0x849776;return _0x5ac996[_0x5ac996[_0x5221b3(0x2f7)]=0x0]=_0x5221b3(0x2f7),_0x5ac996[_0x5ac996['JOINING']=0x1]=_0x5221b3(0x23b),_0x5ac996[_0x5ac996[_0x5221b3(0x193)]=0x2]=_0x5221b3(0x193),_0x5ac996[_0x5ac996['ONLINE']=0x3]=_0x5221b3(0x1d8),_0x5ac996;}({});const Bt={[_0x102325['FAIL']]:'session.join-failed',[_0x102325[_0x849776(0x18e)]]:_0x849776(0x285),[_0x102325[_0x849776(0x1d9)]]:_0x849776(0x1d0),[_0x102325['JOIN_ROOM_PERMISSION_DENIED']]:_0x849776(0x192),[_0x102325['GLOBAL_ROOMS_CNT_EXCEEDS']]:'session.room-cnt-exceeds'};let Vt=class extends _0x2ed6e1{get[_0x849776(0x18c)](){const _0x40fe9b=_0x849776;return this[_0x40fe9b(0x1f0)][_0x40fe9b(0x1cf)]();}constructor(_0x2ada1d,_0x1d779d,_0x1653c2,_0x3ff78f,_0x1bee47,_0x13ae17,_0xde087a,_0x4c8aba){const _0x55acaf=_0x849776;super(),this[_0x55acaf(0x354)]=_0x2ada1d,this[_0x55acaf(0x12e)]=_0x1653c2,this[_0x55acaf(0x123)]=_0x3ff78f,this[_0x55acaf(0x1b0)]=_0x1bee47,this[_0x55acaf(0x286)]=_0x13ae17,this['_collaborationUIEventService']=_0xde087a,this['_telemetryService']=_0x4c8aba,z(this,_0x55acaf(0x1f0),new _0x2fdef4(0x0)),z(this,_0x55acaf(0x372),this[_0x55acaf(0x1f0)][_0x55acaf(0x142)]()),z(this,_0x55acaf(0x377),new _0x3bb8b8()),z(this,_0x55acaf(0x179),this['_event$'][_0x55acaf(0x142)]()),z(this,'_socket',void 0x0),z(this,_0x55acaf(0x2e8),void 0x0),z(this,_0x55acaf(0x151),void 0x0),z(this,_0x55acaf(0x167),!0x1),z(this,_0x55acaf(0x165),null),this[_0x55acaf(0x167)]=!!this[_0x55acaf(0x16a)],_0x1d779d[_0x55acaf(0x245)](_0x6f4bf7(this[_0x55acaf(0x240)]))[_0x55acaf(0x297)](_0x2f5fcc=>{const _0x3ec821=_0x55acaf;if(_0x2f5fcc!==void 0x0){if(this[_0x3ec821(0x127)]=_0x2f5fcc,_0x2f5fcc)this[_0x3ec821(0x29d)](_0x2f5fcc),this[_0x3ec821(0x2e8)]=_0x2f5fcc[_0x3ec821(0x223)][_0x3ec821(0x297)](_0x542ab1=>{const _0xbc26c8=_0x3ec821;_0x542ab1[_0xbc26c8(0x30d)]===this[_0xbc26c8(0x354)][_0xbc26c8(0x1fd)]['unitId']&&this['_onCombEvent'](_0x542ab1);});else{var _0x4937ff;this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x3ec821(0x3a2)](0x2),(_0x4937ff=this[_0x3ec821(0x2e8)])==null||_0x4937ff[_0x3ec821(0x33d)](),this[_0x3ec821(0x2e8)]=null;}}});}[_0x849776(0x37f)](){const _0x3bd2eb=_0x849776;var _0x485fe1;return((_0x485fe1=this[_0x3bd2eb(0x127)])==null?void 0x0:_0x485fe1[_0x3bd2eb(0x25f)])??null;}[_0x849776(0x257)](){const _0x1b0689=_0x849776;super[_0x1b0689(0x257)](),this[_0x1b0689(0x369)](),this['dispose$'][_0x1b0689(0x3a2)](),this['dispose$']['complete']();}['close'](){const _0xd7b61f=_0x849776;var _0x2e53bd;this['_throwTelemetryCollaborationNewChangeset'](),(_0x2e53bd=this['_socket'])==null||_0x2e53bd[_0xd7b61f(0x2c4)]({'cmd':_0x50ebb8[_0xd7b61f(0x336)],'data':{'roomID':this[_0xd7b61f(0x354)][_0xd7b61f(0x1fd)]['unitId']}}),this[_0xd7b61f(0x377)]['complete'](),this['_sessionStatus$'][_0xd7b61f(0x194)]();}[_0x849776(0x276)](_0x250558){const _0x12939f=_0x849776;_0x250558['cmd']===_0x50ebb8[_0x12939f(0x145)]?this[_0x12939f(0x1ac)](_0x250558):_0x250558[_0x12939f(0x2b1)]===_0x50ebb8[_0x12939f(0x252)]&&this[_0x12939f(0x1d1)](_0x250558);}[_0x849776(0x29d)](_0x36b3e6){const _0x236f61=_0x849776;this[_0x236f61(0x1f0)][_0x236f61(0x3a2)](0x1),_0x36b3e6[_0x236f61(0x2c4)]({'cmd':_0x50ebb8[_0x236f61(0x145)],'routeKey':this[_0x236f61(0x354)]['target']['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x236f61(0x354)]['target']['unitId']}]}});}[_0x849776(0x1ac)](_0x2b1796){const _0x36f62a=_0x849776;var _0x1ec923;if(_0x2b1796[_0x36f62a(0x1e2)]in Bt){this[_0x36f62a(0x271)][_0x36f62a(0x2cd)]({'id':'JOIN_ROOM_FAILED','data':Bt[_0x2b1796[_0x36f62a(0x1e2)]]}),this[_0x36f62a(0x1f0)][_0x36f62a(0x3a2)](0x2);return;}this[_0x36f62a(0x1f0)][_0x36f62a(0x3a2)](0x3);let _0x5c43ef=(_0x1ec923=_0x2b1796[_0x36f62a(0x309)][_0x36f62a(0x241)][this['_identity'][_0x36f62a(0x1fd)][_0x36f62a(0x331)]])==null?void 0x0:_0x1ec923[_0x36f62a(0x186)];_0x5c43ef&&_0x5c43ef[_0x36f62a(0x281)](_0x423293=>this[_0x36f62a(0x1b0)][_0x36f62a(0x2e3)](this[_0x36f62a(0x354)]['localUnitId'],_0x423293));}[_0x849776(0x1d1)](_0x1492b2){const _0x249a09=_0x849776;try{let _0x1fcced=jt(this[_0x249a09(0x354)],_0x1492b2['data']);for(let _0x341054 of _0x1fcced)switch(_0x341054['eventID']){case _0x389ee8[_0x249a09(0x1d5)]:this[_0x249a09(0x225)](_0x341054),this[_0x249a09(0x377)][_0x249a09(0x3a2)](_0x341054);break;case _0x389ee8[_0x249a09(0x38a)]:this['_onUserLeave'](_0x341054),this[_0x249a09(0x377)][_0x249a09(0x3a2)](_0x341054);break;case _0x389ee8[_0x249a09(0x3a6)]:case _0x389ee8[_0x249a09(0x2e4)]:this[_0x249a09(0x160)](),this[_0x249a09(0x183)](),this[_0x249a09(0x377)][_0x249a09(0x3a2)](_0x341054);break;case _0x389ee8[_0x249a09(0x33b)]:this[_0x249a09(0x12e)]['error']('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x341054)),this['_event$'][_0x249a09(0x3a2)](_0x341054);break;case _0x389ee8[_0x249a09(0x13d)]:this[_0x249a09(0x286)][_0x249a09(0x301)](_0x341054[_0x249a09(0x309)]),this[_0x249a09(0x377)]['next'](_0x341054);break;default:this[_0x249a09(0x377)][_0x249a09(0x3a2)](_0x341054);}}catch(_0x551db1){this[_0x249a09(0x12e)][_0x249a09(0x2bf)](_0x551db1,_0x1492b2);}}[_0x849776(0x225)](_0x2b1c29){const _0x3f4217=_0x849776;this['_memberService'][_0x3f4217(0x2e3)](this[_0x3f4217(0x354)][_0x3f4217(0x398)],_0x2b1c29[_0x3f4217(0x309)]);}['_onUserLeave'](_0x1a5484){const _0x301e66=_0x849776;this[_0x301e66(0x1b0)][_0x301e66(0x12a)](this[_0x301e66(0x354)][_0x301e66(0x398)],_0x1a5484['data']['memberID']);}async[_0x849776(0x2c4)](_0x587a49,_0x330bc9){const _0x5746b4=_0x849776;if(this['sessionStatus']!==0x3||!this[_0x5746b4(0x127)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0xd9582f=At(this[_0x5746b4(0x354)],_0x587a49);_0xd9582f[_0x5746b4(0x19a)]===_0x389ee8[_0x5746b4(0x199)]&&(this[_0x5746b4(0x2be)](),this[_0x5746b4(0x270)](_0xd9582f)),this[_0x5746b4(0x127)][_0x5746b4(0x2c4)]({'cmd':_0x50ebb8[_0x5746b4(0x3a3)],'routeKey':this['_identity'][_0x5746b4(0x1fd)]['unitId'],'routeType':'','data':_0xd9582f});}catch(_0x5a7880){this[_0x5746b4(0x12e)][_0x5746b4(0x2bf)](_0x5a7880);}}['_scheduleCollaborationTimeoutTimer'](){const _0x582e3c=_0x849776;this[_0x582e3c(0x151)]=setTimeout(()=>{const _0x537978=_0x582e3c;this['_collaborationTimeoutTimer']=null,this[_0x537978(0x271)][_0x537978(0x2cd)]({'id':_0x537978(0x317)});},this['_configService'][_0x582e3c(0x131)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x849776(0x183)](){const _0x2189a6=_0x849776;this['_collaborationTimeoutTimer']&&=(clearTimeout(this[_0x2189a6(0x151)]),null);}[_0x849776(0x270)](_0x33e250){const _0x326f4b=_0x849776;if(!this[_0x326f4b(0x167)])return;let {data:_0x46b4b8}=_0x33e250,{unitID:_0x5dc32d,changeset:_0x2e9c6e}=_0x46b4b8,{mutations:_0xfd4eec,type:_0x28fad7}=_0x2e9c6e;this[_0x326f4b(0x165)]={'unitId':_0x5dc32d,'type':_0x28fad7,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':St(_0xfd4eec)};}[_0x849776(0x160)](){const _0xa85b94=_0x849776;if(this[_0xa85b94(0x167)]){if(!this['_telemetryInfo']){this[_0xa85b94(0x12e)][_0xa85b94(0x2bf)]('[CollaborationSession]',_0xa85b94(0x1b8));return;}this[_0xa85b94(0x165)][_0xa85b94(0x25c)]=performance[_0xa85b94(0x2f9)](),this[_0xa85b94(0x165)]['duration']=this[_0xa85b94(0x165)][_0xa85b94(0x25c)]-this['_telemetryInfo'][_0xa85b94(0x26e)],this[_0xa85b94(0x16a)][_0xa85b94(0x1c9)]('collaboration_new_changeset',this[_0xa85b94(0x165)]),this[_0xa85b94(0x165)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x2f9323=_0x849776;this[_0x2f9323(0x165)]=null;}};Vt=H([V(0x2,_0x3dc3ee),V(0x3,_0x6f8878),V(0x4,_0x409c93(Ot)),V(0x5,_0x409c93(Dt)),V(0x6,_0x409c93(B)),V(0x7,_0x232f40(_0x366457))],Vt);const U=_0x59b7ef(_0x849776(0x274));function Ht(_0x365353){const _0x15c286=_0x849776;return _0x15c286(0x2e0)+_0x365353;}function Ut(_0x277b93){const _0x2adad7=_0x849776;let {unitID:_0x4e2872,mutations:_0x1d3551}=_0x277b93;return{'unitId':_0x4e2872,'subUnitId':_0x1d3551[_0x2adad7(0x298)]>0x0?_0x1d3551[0x0][_0x2adad7(0x28d)]['subUnitId']:null};}let Wt=class{constructor(_0x378ae8,_0x477355,_0x341a52){const _0x3f5d35=_0x849776;this[_0x3f5d35(0x126)]=_0x378ae8,this[_0x3f5d35(0x25d)]=_0x477355,this[_0x3f5d35(0x303)]=_0x341a52;}[_0x849776(0x118)](_0x3740e8){const _0x42193d=_0x849776;var _0x456b4d,_0x4b75b0;let _0x20f4ef=this[_0x42193d(0x126)][_0x42193d(0x203)](_0x47e021),{unitId:_0x105530,subUnitId:_0x2680ad}=Ut(_0x3740e8),_0x37af5e=_0x20f4ef==null?void 0x0:_0x20f4ef[_0x42193d(0x265)](_0x105530)['getCurrentSelections'](),_0x3d27a8=(_0x456b4d=this[_0x42193d(0x303)][_0x42193d(0x2bb)](_0x105530))==null||(_0x456b4d=_0x456b4d[_0x42193d(0x3af)]())==null?void 0x0:_0x456b4d[_0x42193d(0x13b)]();if(_0x37af5e[_0x42193d(0x298)]===0x0||!_0x105530||!_0x2680ad)return;let _0x39d552=[{'id':_0x2667e0['id'],'params':{'unitId':_0x105530,'subUnitId':_0x3d27a8,'selections':_0x43f716[_0x42193d(0x201)](_0x37af5e)}}],_0x5136d2=this[_0x42193d(0x25d)][_0x42193d(0x26d)](_0x3740e8,_0x39d552);if(!_0x412a1a(_0x5136d2))throw _0x5136d2[_0x42193d(0x2bf)];let _0x2b565f=(_0x4b75b0=_0x5136d2[_0x42193d(0x278)][0x0])==null||(_0x4b75b0=_0x4b75b0[_0x42193d(0x28d)])==null?void 0x0:_0x4b75b0[_0x42193d(0x13c)];if(Array[_0x42193d(0x16d)](_0x2b565f)&&_0x2b565f[_0x42193d(0x298)]){if(_0x2b565f[_0x42193d(0x298)]===_0x39d552[0x0][_0x42193d(0x28d)][_0x42193d(0x13c)]['length']&&_0x2b565f['every']((_0x42437e,_0x33f51f)=>_0x20582a['equals'](_0x42437e[_0x42193d(0x32e)],_0x39d552[0x0][_0x42193d(0x28d)][_0x42193d(0x13c)][_0x33f51f]['range'])))return;this[_0x42193d(0x126)][_0x42193d(0x203)](_0x39bf2b)[_0x42193d(0x36f)](_0x2667e0['id'],{'unitId':_0x105530,'subUnitId':_0x3d27a8,'selections':_0x2b565f});}}};Wt=H([V(0x0,_0x409c93(_0x28d4d4)),V(0x1,_0x4ac591),V(0x2,_0x273a3b)],Wt);const W=_0x59b7ef(_0x849776(0x1ee));let Gt=function(_0x2159e5){const _0xbe9a0a=_0x849776;return _0x2159e5[_0x2159e5[_0xbe9a0a(0x209)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2159e5[_0x2159e5[_0xbe9a0a(0x21b)]=0x1]='OTHER_CLIENTS_EDITING',_0x2159e5;}({});function Kt(_0x5ed144){const _0x435cc4=_0x849776;var _0x42cd7f;return!!((_0x42cd7f=_0x5ed144[_0x435cc4(0x28d)])!=null&&_0x42cd7f[_0x435cc4(0x33f)]);}const qt=new Set([_0x21797a['id']]),Jt=new Set([_0x5bd3af['id'],_0x23b723['id'],_0x349e00['id'],_0xd8440b['id']]);function Yt(_0x54eb6c,_0x405623=qt){const _0x2df454=_0x849776;let _0x2ac728=[];for(let _0x9bf450 of _0x54eb6c){if(_0x405623[_0x2df454(0x155)](_0x9bf450['id'])){if(_0x2ac728[_0x2df454(0x298)]>0x0)break;_0x2ac728['push'](_0x9bf450);break;}if(Kt(_0x9bf450)){if(_0x2ac728[_0x2df454(0x298)]>0x0)break;_0x2ac728['push'](_0x9bf450);break;}_0x2ac728[_0x2df454(0x221)](_0x9bf450);}return _0x2ac728;}function Xt(_0x50c5a8,_0x275a0c,_0x3d9c5f,_0x1bb1ef,_0x2ef216){const _0x5320ff=_0x849776;let _0x3be8ed=Yt(_0x50c5a8),_0xa7f2b2=_0x2ef216[_0x5320ff(0x180)](),_0x406fd3=(_0xa7f2b2==null?void 0x0:_0xa7f2b2[_0x5320ff(0x36e)])??'unknown',_0x3d2402=(_0xa7f2b2==null?void 0x0:_0xa7f2b2[_0x5320ff(0x25f)])??'unknown';return{'changeset':{'unitID':_0x275a0c,'type':_0x146dcc(_0x3d9c5f['getUnitType'](_0x275a0c)),'baseRev':_0x1bb1ef[_0x5320ff(0x237)](_0x275a0c),'revision':0x0,'userID':_0x406fd3,'memberID':_0x3d2402,'mutations':_0x3be8ed},'pendingMutations':_0x50c5a8['slice'](_0x3be8ed[_0x5320ff(0x298)])};}const Zt=Xt;function Qt(_0xcd97b8,_0x49dd65,_0x82b835,_0x486f6b,_0x1e67f6){const _0x528d5e=_0x849776;let _0x1dde72=Yt(_0xcd97b8,Jt),_0x4ee609=_0x1e67f6[_0x528d5e(0x180)](),_0x3c3cde=(_0x4ee609==null?void 0x0:_0x4ee609[_0x528d5e(0x36e)])??_0x528d5e(0x2ae),_0x3a7284=(_0x4ee609==null?void 0x0:_0x4ee609[_0x528d5e(0x25f)])??_0x528d5e(0x2ae);return{'changeset':{'unitID':_0x49dd65,'type':_0x146dcc(_0x82b835['getUnitType'](_0x49dd65)),'baseRev':_0x486f6b[_0x528d5e(0x237)](_0x49dd65),'revision':0x0,'userID':_0x3c3cde,'memberID':_0x3a7284,'mutations':_0x1dde72},'pendingMutations':_0xcd97b8[_0x528d5e(0x326)](_0x1dde72[_0x528d5e(0x298)])};}function $t(_0x24e7bf,_0x1e03e1,_0x13cf77,_0xbec954,_0x52a944){const _0x65a85d=_0x849776;let _0x203f73=_0x24e7bf[_0x65a85d(0x1ea)]((_0x1e3880,_0x39484d)=>{const _0x433947=_0x65a85d;let _0x2f8347=_0x1e3880[_0x1e3880[_0x433947(0x298)]-0x1],{id:_0x2beb5f}=_0x2f8347??{},{id:_0x5a7802,type:_0xa96d9a}=_0x39484d,_0x19c7f3=_0x39484d['params'];if(_0x2beb5f&&_0x2beb5f!==_0x5a7802)throw Error(_0x433947(0x1b9)+_0x2beb5f+_0x433947(0x124)+_0x5a7802+'.');if(!_0x2f8347)return[{'id':_0x5a7802,'type':_0xa96d9a,'params':{'unitId':_0x19c7f3[_0x433947(0x331)],'textRanges':_0x19c7f3[_0x433947(0x208)],'actions':_0x19c7f3['actions']}}];let _0x17d6eb=_0x2f8347[_0x433947(0x28d)];return en(_0x17d6eb,_0x19c7f3)?[..._0x1e3880[_0x433947(0x326)](0x0,-0x1),{..._0x2f8347,'id':_0x5a7802,'type':_0xa96d9a,'params':{'unitId':_0x19c7f3[_0x433947(0x331)],'textRanges':_0x19c7f3['textRanges'],'actions':_0x30efff[_0x433947(0x3a8)](_0x17d6eb[_0x433947(0x2f3)],_0x19c7f3[_0x433947(0x2f3)])}}]:[..._0x1e3880,{'id':_0x5a7802,'type':_0xa96d9a,'params':{'unitId':_0x19c7f3['unitId'],'textRanges':_0x19c7f3[_0x433947(0x208)],'actions':_0x19c7f3[_0x433947(0x2f3)]}}];},[]),_0xa874f7=_0x52a944['getCurrentUser'](),_0x23753e=(_0xa874f7==null?void 0x0:_0xa874f7[_0x65a85d(0x36e)])??_0x65a85d(0x2ae),_0x257807=(_0xa874f7==null?void 0x0:_0xa874f7[_0x65a85d(0x25f)])??'unknown';return{'changeset':{'unitID':_0x1e03e1,'type':_0x146dcc(_0x13cf77[_0x65a85d(0x388)](_0x1e03e1)),'baseRev':_0xbec954[_0x65a85d(0x237)](_0x1e03e1),'revision':0x0,'userID':_0x23753e,'memberID':_0x257807,'mutations':_0x203f73},'pendingMutations':_0x24e7bf['slice'](_0x24e7bf['length'])};}function en(_0x28c193,_0x51c0e7){const _0x1110c1=_0x849776;return!tn(_0x28c193)&&!tn(_0x51c0e7)&&nn(_0x28c193[_0x1110c1(0x2f3)],_0x51c0e7['actions']);}function tn(_0x2a4dcd){const _0x332753=_0x849776;return _0x2a4dcd[_0x332753(0x215)]!==void 0x0;}function nn(_0x4d41c1,_0x34fdcd){return rn(_0x4d41c1)&&rn(_0x34fdcd)&&!on(_0x4d41c1)&&!on(_0x34fdcd)&&!an(_0x4d41c1)&&!an(_0x34fdcd);}function rn(_0x265294){const _0x2ce539=_0x849776;return sn(_0x265294)[_0x2ce539(0x1e6)](_0x55c549=>cn(_0x55c549)&&_0x55c549['et']==='text-x');}function an(_0x99bc1){const _0x4c2ab1=_0x849776;return sn(_0x99bc1)['some'](_0xa1695a=>Array[_0x4c2ab1(0x16d)](_0xa1695a)||typeof _0xa1695a=='string'||typeof _0xa1695a==_0x4c2ab1(0x38d));}function on(_0x2e456c){const _0x308a63=_0x849776;return sn(_0x2e456c)[_0x308a63(0x1e6)](_0x35886d=>!cn(_0x35886d)||_0x35886d['et']!=='text-x'||!Array[_0x308a63(0x16d)](_0x35886d['e'])?!0x1:_0x35886d['e'][_0x308a63(0x1e6)](_0x34e17c=>!cn(_0x34e17c)||!cn(_0x34e17c[_0x308a63(0x134)])?!0x1:Object['prototype'][_0x308a63(0x397)][_0x308a63(0x150)](_0x34e17c[_0x308a63(0x134)],_0x308a63(0x3a7))||Object[_0x308a63(0x171)][_0x308a63(0x397)][_0x308a63(0x150)](_0x34e17c[_0x308a63(0x134)],'columnGroups')||Object[_0x308a63(0x171)]['hasOwnProperty'][_0x308a63(0x150)](_0x34e17c[_0x308a63(0x134)],_0x308a63(0x200))));}function sn(_0x5c14b4){const _0x3557ee=_0x849776;if(!Array[_0x3557ee(0x16d)](_0x5c14b4))return[];let _0x3850e6=_0x5c14b4[_0x3557ee(0x1d4)](_0x3557ee(0x134))?_0x5c14b4:_0x5c14b4['find'](_0x56a070=>Array[_0x3557ee(0x16d)](_0x56a070)&&_0x56a070[_0x3557ee(0x1d4)](_0x3557ee(0x134)));if(!Array[_0x3557ee(0x16d)](_0x3850e6))return[];let _0x86e697=_0x3850e6[_0x3557ee(0x236)](_0x3557ee(0x134));return _0x86e697===-0x1?[]:_0x3850e6[_0x3557ee(0x326)](_0x86e697+0x1);}function cn(_0x56b1dc){const _0x51519a=_0x849776;return typeof _0x56b1dc==_0x51519a(0x1b6)&&!!_0x56b1dc&&!Array[_0x51519a(0x16d)](_0x56b1dc);}function ln(_0x2862f3,_0x2f83e5){const _0x49d750=_0x849776;let _0x30439c=new _0x8764fa(0x1);return setTimeout(()=>_0x30439c[_0x49d750(0x3a2)](_0x2f83e5),_0x2862f3),_0x30439c[_0x49d750(0x142)]()[_0x49d750(0x245)](_0x3ef186(0x1));}var un,dn,fn;let pn=function(_0x39e3e6){const _0x2fe5ee=_0x849776;return _0x39e3e6[_0x2fe5ee(0x1b4)]=_0x2fe5ee(0x178),_0x39e3e6[_0x2fe5ee(0x207)]=_0x2fe5ee(0x152),_0x39e3e6[_0x2fe5ee(0x2a5)]=_0x2fe5ee(0x396),_0x39e3e6[_0x2fe5ee(0x195)]=_0x2fe5ee(0x38c),_0x39e3e6[_0x2fe5ee(0x29b)]=_0x2fe5ee(0x33a),_0x39e3e6[_0x2fe5ee(0x187)]=_0x2fe5ee(0x262),_0x39e3e6[_0x2fe5ee(0x39d)]=_0x2fe5ee(0x169),_0x39e3e6[_0x2fe5ee(0x193)]=_0x2fe5ee(0x11a),_0x39e3e6;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0xbcb1f3,_0xdaf1db,_0x3b8baf,_0x2f6f71,_0x46412f,_0x4f9fff,_0x151e67,_0x123873,_0x24e499){const _0x2dad6b=_0x849776;this['unitID']=_0xbcb1f3,this[_0x2dad6b(0x310)]=_0xdaf1db,this[_0x2dad6b(0x379)]=_0x46412f,this[_0x2dad6b(0x3a0)]=_0x4f9fff,this[_0x2dad6b(0x205)]=_0x151e67,this['_revisionService']=_0x123873,this[_0x2dad6b(0x2a8)]=_0x24e499,z(this,_0x2dad6b(0x2b0),null),z(this,_0x2dad6b(0x1d3),[]),this['_awaitingChangeset']=_0x3b8baf,this[_0x2dad6b(0x1d3)]=_0x2f6f71;}['_checkMissing'](_0x24ed98){const _0x13098f=_0x849776;let _0xa32c89=this['_revisionService']['getCurrentRevOfUnit'](this[_0x13098f(0x360)]);return _0x24ed98[_0x13098f(0x1dc)]>_0xa32c89+0x1?(this[_0x13098f(0x379)][_0x13098f(0x1a9)]({'from':_0xa32c89,'to':_0x24ed98['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x293f9b){const _0x5bb86f=_0x849776;this[_0x5bb86f(0x205)][_0x5bb86f(0x314)](this[_0x5bb86f(0x360)],_0x293f9b);}[_0x849776(0x227)](_0x59bde2){const _0x1fa00a=_0x849776;var _0x555c7a,_0x2f608a;(_0x555c7a=(_0x2f608a=this['_handler'])[_0x1fa00a(0x304)])==null||_0x555c7a[_0x1fa00a(0x150)](_0x2f608a,_0x59bde2);}[_0x849776(0x33c)](_0x7b4299){const _0x7eacd8=_0x849776;var _0x103a00,_0x2d40d1;return(_0x103a00=(_0x2d40d1=this['_handler'])[_0x7eacd8(0x115)])==null?void 0x0:_0x103a00[_0x7eacd8(0x150)](_0x2d40d1,_0x7b4299);}['_transformStateCache'](_0x4fc1ad){const _0x321c03=_0x849776;var _0x318f89,_0x3db267;return(_0x318f89=(_0x3db267=this[_0x321c03(0x379)])[_0x321c03(0x37d)])==null?void 0x0:_0x318f89['call'](_0x3db267,_0x4fc1ad);}[_0x849776(0x238)](_0x8542e8){const _0x334e44=_0x849776;var _0x24ed1,_0x36a5c8;return((_0x24ed1=(_0x36a5c8=this['_handler'])[_0x334e44(0x394)])==null?void 0x0:_0x24ed1[_0x334e44(0x150)](_0x36a5c8,_0x8542e8))??_0x8542e8;}[_0x849776(0x35f)](_0x1aaa8c){const _0xec85ec=_0x849776;var _0x5ea0e5,_0x725f4;return((_0x5ea0e5=(_0x725f4=this[_0xec85ec(0x379)])[_0xec85ec(0x122)])==null?void 0x0:_0x5ea0e5['call'](_0x725f4,_0x1aaa8c))??_0x1aaa8c;}[_0x849776(0x3b2)](_0x3e233b){const _0x74dfb4=_0x849776;if(this[_0x74dfb4(0x310)]===_0x35f6ba[_0x74dfb4(0x39e)]){let {unitID:_0x2521c6,mutations:_0x52a36f,memberID:_0x525e74}=_0x3e233b,_0x4fba70=_0x52a36f[_0x74dfb4(0x298)]>0x0?_0x52a36f[0x0][_0x74dfb4(0x28d)]['textRanges']:[];if(Array[_0x74dfb4(0x16d)](_0x4fba70)&&_0x4fba70['length']>0x0){var _0x5f3145,_0x3c53c6;(_0x5f3145=(_0x3c53c6=this[_0x74dfb4(0x379)])['onSyncEditingCollabCursor'])==null||_0x5f3145['call'](_0x3c53c6,{'unitID':_0x2521c6,'memberID':_0x525e74,'textRanges':_0x4fba70});}}}[_0x849776(0x26a)](){const _0x5024e7=_0x849776;var _0x2aacba;(_0x2aacba=this[_0x5024e7(0x2a8)])==null||_0x2aacba[_0x5024e7(0x37b)](this[_0x5024e7(0x360)],this[_0x5024e7(0x310)],this[_0x5024e7(0x2b0)],this[_0x5024e7(0x1d3)]);}['_getCurrentRevision'](){const _0x32901d=_0x849776;return this[_0x32901d(0x190)][_0x32901d(0x237)](this[_0x32901d(0x360)]);}[_0x849776(0x1ef)](){const _0x20547c=_0x849776;this[_0x20547c(0x190)][_0x20547c(0x135)](this['unitID']);}['_executeRemoteChangeset'](_0xc4f7b4){const _0x544694=_0x849776;let _0x4e25ae=this[_0x544694(0x238)](_0xc4f7b4);_0x4e25ae=this[_0x544694(0x35f)](_0x4e25ae);let _0x30981a=_0x525b70(_0x4e25ae[_0x544694(0x365)],this[_0x544694(0x3a0)],{'fromCollab':!0x0});if(!_0x30981a['result'])throw _0x30981a[_0x544694(0x2bf)]instanceof Error?_0x30981a[_0x544694(0x2bf)]:Error(_0x30981a['error']??_0x544694(0x340));this[_0x544694(0x33c)](_0x4e25ae),this[_0x544694(0x2ee)](_0x4e25ae),this[_0x544694(0x31d)](_0xc4f7b4),this[_0x544694(0x227)](_0x4e25ae),this[_0x544694(0x3b2)](_0x4e25ae),this[_0x544694(0x1ef)]();}};let K=class extends G{constructor(_0x33adef,_0x40a1f4,_0x5a1cf7,_0x2da4e0,_0x174f3e,_0xa242,_0x311ff8,_0x433561,_0x5f4a44,_0x1d0e2d){const _0x6038ce=_0x849776;super(_0x33adef,_0x40a1f4,null,[],_0x5a1cf7,_0x311ff8,_0xa242,_0x2da4e0,_0x1d0e2d),this['_injector']=_0x174f3e,this[_0x6038ce(0x12e)]=_0x433561,this[_0x6038ce(0x25d)]=_0x5f4a44,this[_0x6038ce(0x246)]=_0x1d0e2d,z(this,_0x6038ce(0x273),_0x6038ce(0x152));}[_0x849776(0x2c6)](_0x5067b5){const _0x1557fe=_0x849776;let _0x2f12d0=this[_0x1557fe(0x126)][_0x1557fe(0x3b3)](q,this['unitID'],this['type'],[_0x5067b5],this[_0x1557fe(0x379)]);return _0x2f12d0[_0x1557fe(0x2cc)](),_0x2f12d0[_0x1557fe(0x26a)](),_0x2f12d0;}['onRemoteChangeset'](_0x55d242){const _0x1a1250=_0x849776;if(this['_checkMissing'](_0x55d242))return this[_0x1a1250(0x126)][_0x1a1250(0x3b3)](Q,this[_0x1a1250(0x360)],this[_0x1a1250(0x310)],null,[],null,[_0x55d242],this[_0x1a1250(0x379)]);try{let _0xe5d035=this[_0x1a1250(0x25d)][_0x1a1250(0x26d)](_0x55d242,[_0x905a7a]);if(_0x412a1a(_0xe5d035)){let {c1Prime:_0x243b15}=_0xe5d035;return this[_0x1a1250(0x289)](_0x243b15),this;}throw _0xe5d035[_0x1a1250(0x2bf)];}catch(_0x22e6dc){return this[_0x1a1250(0x12e)][_0x1a1250(0x2bf)](_0x22e6dc),this[_0x1a1250(0x125)](!0x1);}}[_0x849776(0x125)](_0x4b20e1){const _0x6804c=_0x849776;return this['_injector'][_0x6804c(0x3b3)](X,this[_0x6804c(0x360)],this[_0x6804c(0x310)],null,[],this[_0x6804c(0x379)],_0x4b20e1);}[_0x849776(0x30f)](_0xa0b421){const _0x13ec40=_0x849776;if(_0xa0b421[_0x13ec40(0x1dc)]<=this[_0x13ec40(0x3a4)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x849776(0x133)](){const _0x14d47=_0x849776;throw Error(_0x14d47(0x248));}[_0x849776(0x239)](){return this;}[_0x849776(0x1af)](){const _0x3a67cc=_0x849776;return this[_0x3a67cc(0x126)][_0x3a67cc(0x3b3)](Z,this['unitID'],this[_0x3a67cc(0x310)],null,[],this[_0x3a67cc(0x379)]);}[_0x849776(0x2cf)](){return this;}['resend'](){const _0xde9fb6=_0x849776;throw Error(_0xde9fb6(0x1de));}[_0x849776(0x316)](){const _0x429056=_0x849776;let _0x5eefd1=this[_0x429056(0x190)][_0x429056(0x237)](this[_0x429056(0x360)]);return this[_0x429056(0x379)][_0x429056(0x1a9)]({'from':_0x5eefd1,'to':0x0}),this[_0x429056(0x126)][_0x429056(0x3b3)](Q,this['unitID'],this[_0x429056(0x310)],null,[],null,[],this[_0x429056(0x379)]);}};K=H([V(0x3,_0x409c93(_0x12caa0)),V(0x4,_0x409c93(_0x28d4d4)),V(0x5,_0x1348cc),V(0x6,_0x39bf2b),V(0x7,_0x3dc3ee),V(0x8,_0x4ac591),V(0x9,_0x232f40(U))],K);let q=un=class extends G{constructor(_0x25100b,_0x58a856,_0x534030,_0x534857,_0x188845,_0x155f55,_0x1f69c8,_0x330642,_0x1b9db7,_0x9244c,_0x2feaa1,_0x3741ee,_0x5594ec,_0x19e262){const _0x254200=_0x849776;super(_0x25100b,_0x58a856,null,_0x534030,_0x534857,_0x1b9db7,_0x5594ec,_0x155f55,_0x19e262),this[_0x254200(0x126)]=_0x188845,this[_0x254200(0x1ec)]=_0x1f69c8,this[_0x254200(0x12e)]=_0x330642,this['_configService']=_0x9244c,this[_0x254200(0x25d)]=_0x2feaa1,this[_0x254200(0x367)]=_0x3741ee,z(this,'status',_0x254200(0x396)),z(this,_0x254200(0x1f8),null),z(this,'_sendingTimer',null);}[_0x849776(0x2c6)](_0x3c4603){const _0x4f1147=_0x849776;return this[_0x4f1147(0x1d3)][_0x4f1147(0x221)](_0x3c4603),this[_0x4f1147(0x26a)](),this;}[_0x849776(0x13f)](_0x2faa09){const _0x194ec7=_0x849776;if(this[_0x194ec7(0x20f)](_0x2faa09))return this[_0x194ec7(0x17b)](),this[_0x194ec7(0x126)][_0x194ec7(0x3b3)](Q,this[_0x194ec7(0x360)],this[_0x194ec7(0x310)],null,this[_0x194ec7(0x1d3)],null,[_0x2faa09],this['_handler']);try{let _0x29eb97=this[_0x194ec7(0x25d)]['transformMutationsWithChangeset'](_0x2faa09,this[_0x194ec7(0x1d3)]);if(_0x412a1a(_0x29eb97)){let {c1Prime:_0x577348,m2Prime:_0x273ba3}=_0x29eb97;this[_0x194ec7(0x289)](_0x577348);let _0x188fd9=this['_injector'][_0x194ec7(0x3b3)](un,this['unitID'],this['type'],_0x273ba3,this[_0x194ec7(0x379)]);this[_0x194ec7(0x17b)]();let _0x2175f8=new Date()[_0x194ec7(0x329)](),_0x50b6eb=this[_0x194ec7(0x1f8)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x2175f8,0x0):this[_0x194ec7(0x28b)]();return _0x188fd9[_0x194ec7(0x2cc)](_0x50b6eb),_0x188fd9;}throw _0x29eb97[_0x194ec7(0x2bf)];}catch(_0x366871){return this[_0x194ec7(0x12e)]['error'](_0x366871),this[_0x194ec7(0x125)](!0x1);}}[_0x849776(0x30f)](_0xca52dc){const _0xfd4faa=_0x849776;if(_0xca52dc[_0xfd4faa(0x1dc)]<=this['_getCurrentRevision']())return this;throw Error(_0xfd4faa(0x31b));}[_0x849776(0x133)](){const _0x12e386=_0x849776;throw Error(_0x12e386(0x2ac));}[_0x849776(0x239)](){return this;}[_0x849776(0x1af)](){const _0x473fd6=_0x849776;return this[_0x473fd6(0x17b)](),this[_0x473fd6(0x126)]['createInstance'](Z,this[_0x473fd6(0x360)],this['type'],null,this[_0x473fd6(0x1d3)],this['_handler']);}[_0x849776(0x2cf)](){return this;}[_0x849776(0x2cc)](_0xf177b2){const _0xedccae=_0x849776;let _0x5811d1=_0xf177b2??this[_0xedccae(0x28b)]();this[_0xedccae(0x1f8)]=new Date()['getTime']()+_0x5811d1,this['_sendingTimer']=setTimeout(()=>{const _0x58af6c=_0xedccae;this[_0x58af6c(0x17b)]();let _0x53e8c0=null;switch(this['type']){case _0x35f6ba['UNIVER_SHEET']:_0x53e8c0=Xt(this[_0x58af6c(0x1d3)],this[_0x58af6c(0x360)],this['_univerInstanceService'],this[_0x58af6c(0x190)],this[_0x58af6c(0x1ec)]);break;case _0x35f6ba[_0x58af6c(0x39e)]:_0x53e8c0=this[_0x58af6c(0x1d3)][_0x58af6c(0x3ae)](_0x44862b=>_0x44862b['id']===_0x51d6fe['id'])?$t(this[_0x58af6c(0x1d3)],this['unitID'],this[_0x58af6c(0x367)],this[_0x58af6c(0x190)],this[_0x58af6c(0x1ec)]):Xt(this[_0x58af6c(0x1d3)],this[_0x58af6c(0x360)],this[_0x58af6c(0x367)],this[_0x58af6c(0x190)],this[_0x58af6c(0x1ec)]);break;case _0x35f6ba['UNIVER_SLIDE']:_0x53e8c0=Qt(this[_0x58af6c(0x1d3)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x58af6c(0x1ec)]);break;case _0x35f6ba[_0x58af6c(0x14d)]:_0x53e8c0=Zt(this[_0x58af6c(0x1d3)],this[_0x58af6c(0x360)],this[_0x58af6c(0x367)],this[_0x58af6c(0x190)],this['_userManagerService']);break;case _0x35f6ba[_0x58af6c(0x2d3)]:_0x53e8c0=Xt(this[_0x58af6c(0x1d3)],this[_0x58af6c(0x360)],this[_0x58af6c(0x367)],this['_revisionService'],this[_0x58af6c(0x1ec)]);break;case _0x35f6ba[_0x58af6c(0x13e)]:_0x53e8c0=Xt(this[_0x58af6c(0x1d3)],this['unitID'],this[_0x58af6c(0x367)],this[_0x58af6c(0x190)],this[_0x58af6c(0x1ec)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x58af6c(0x310)]+_0x58af6c(0x128));}let {changeset:_0x5917f3,pendingMutations:_0x5677bc}=_0x53e8c0;this[_0x58af6c(0x379)][_0x58af6c(0x266)](_0x5917f3);let _0xf71fd=_0x5677bc['length']?this[_0x58af6c(0x126)][_0x58af6c(0x3b3)](Y,this['unitID'],this[_0x58af6c(0x310)],_0x5917f3,_0x5677bc,this[_0x58af6c(0x379)],void 0x0):this[_0x58af6c(0x126)]['createInstance'](J,this['unitID'],this[_0x58af6c(0x310)],_0x5917f3,this['_handler']);_0xf71fd['_updateLocalCache'](),this[_0x58af6c(0x379)]['onStateChange'](this,_0xf71fd);},_0x5811d1);}[_0x849776(0x28b)](){const _0xb7e525=_0x849776;let _0x4f619e=this['_configService'][_0xb7e525(0x131)](R);return(_0x4f619e==null?void 0x0:_0x4f619e['sendChangesetTimeout'])??0x7d0;}[_0x849776(0x395)](){const _0x3371ce=_0x849776;throw Error(_0x3371ce(0x210));}[_0x849776(0x17b)](){const _0xfe9f5d=_0x849776;this[_0xfe9f5d(0x234)]!=null&&(clearTimeout(this[_0xfe9f5d(0x234)]),this[_0xfe9f5d(0x234)]=null);}[_0x849776(0x125)](_0x4bde90){const _0x4a894f=_0x849776;return this[_0x4a894f(0x17b)](),this[_0x4a894f(0x126)][_0x4a894f(0x3b3)](X,this[_0x4a894f(0x360)],this['type'],null,this[_0x4a894f(0x1d3)],this['_handler'],_0x4bde90);}};q=un=H([V(0x4,_0x409c93(_0x28d4d4)),V(0x5,_0x409c93(_0x12caa0)),V(0x6,_0x409c93(_0x18e67b)),V(0x7,_0x3dc3ee),V(0x8,_0x39bf2b),V(0x9,_0x6f8878),V(0xa,_0x4ac591),V(0xb,_0x273a3b),V(0xc,_0x1348cc),V(0xd,_0x232f40(U))],q);let J=dn=class extends G{constructor(_0xd01f27,_0x481584,_0x48acdb,_0x53bbdc,_0x112b10,_0x18320c,_0x208d42,_0x302578,_0x1cda5e,_0x285112,_0x4147d4){const _0x589e9c=_0x849776;super(_0xd01f27,_0x481584,_0x48acdb,[],_0x53bbdc,_0x208d42,_0x285112,_0x18320c,_0x4147d4),this['_injector']=_0x112b10,this['_logService']=_0x302578,this[_0x589e9c(0x25d)]=_0x1cda5e,z(this,_0x589e9c(0x273),'awaiting'),z(this,'_resendTimeout',0x0),z(this,_0x589e9c(0x2ed),0x0),z(this,_0x589e9c(0x29c),void 0x0),z(this,_0x589e9c(0x1f9),void 0x0);}[_0x849776(0x2c6)](_0x17beb6){const _0x31696c=_0x849776;this[_0x31696c(0x17b)]();let _0x835613=this[_0x31696c(0x126)][_0x31696c(0x3b3)](Y,this[_0x31696c(0x360)],this[_0x31696c(0x310)],this[_0x31696c(0x2b0)],[_0x17beb6],this[_0x31696c(0x379)],this[_0x31696c(0x29c)]);return _0x835613[_0x31696c(0x26a)](),_0x835613;}[_0x849776(0x13f)](_0x3efecf){const _0x5f008=_0x849776;if(this[_0x5f008(0x20f)](_0x3efecf))return this[_0x5f008(0x17b)](),this[_0x5f008(0x126)][_0x5f008(0x3b3)](Q,this[_0x5f008(0x360)],this['type'],this[_0x5f008(0x2b0)],[],null,[_0x3efecf],this[_0x5f008(0x379)]);try{let _0x4197a7=this[_0x5f008(0x25d)]['transformChangesets']([_0x3efecf],[this[_0x5f008(0x2b0)]],!0x1);if(_0x63d5c9(_0x4197a7)){let {c1Prime:_0x17d2e2,c2Prime:_0x1bebfd}=_0x4197a7;this[_0x5f008(0x289)](_0x17d2e2[0x0]),_0x1bebfd[0x0][_0x5f008(0x2b9)]=this['_getCurrentRevision'](),this[_0x5f008(0x17b)]();let _0x521fc2=this[_0x5f008(0x126)][_0x5f008(0x3b3)](dn,this[_0x5f008(0x360)],this[_0x5f008(0x310)],_0x1bebfd[0x0],this[_0x5f008(0x379)]);return _0x521fc2['_updateLocalCache'](),_0x521fc2;}throw _0x4197a7[_0x5f008(0x2bf)];}catch(_0x84c5ae){return this[_0x5f008(0x12e)][_0x5f008(0x2bf)](_0x84c5ae),this[_0x5f008(0x125)](!0x1);}}[_0x849776(0x30f)](_0x320d41){const _0x57a727=_0x849776;this[_0x57a727(0x17b)]();let _0x3919d5=this[_0x57a727(0x190)]['getCurrentRevOfUnit'](this[_0x57a727(0x360)]);if(_0x320d41[_0x57a727(0x1dc)]<=_0x3919d5)return this;if(this[_0x57a727(0x20f)](_0x320d41))return this[_0x57a727(0x126)][_0x57a727(0x3b3)](Q,this[_0x57a727(0x360)],this[_0x57a727(0x310)],this[_0x57a727(0x2b0)],[],_0x320d41[_0x57a727(0x1dc)],[],this[_0x57a727(0x379)]);this[_0x57a727(0x1ef)]();let _0x144aaa=this[_0x57a727(0x126)]['createInstance'](K,this[_0x57a727(0x360)],this[_0x57a727(0x310)],this[_0x57a727(0x379)]);return _0x144aaa[_0x57a727(0x26a)](),_0x144aaa;}[_0x849776(0x133)](_0x15261b){const _0x143b40=_0x849776;return this[_0x143b40(0x125)](!!(_0x15261b!=null&&_0x15261b['isPermissionRej']));}[_0x849776(0x239)](_0x5b05f2){const _0x16fc2d=_0x849776;return this[_0x16fc2d(0x2ed)]>hn?this[_0x16fc2d(0x1af)]():(this['_resendTimer']=ln(this[_0x16fc2d(0x1a7)],{'timeout':this[_0x16fc2d(0x1a7)],'reqId':_0x5b05f2[_0x16fc2d(0x182)]}),this[_0x16fc2d(0x1f9)]=this['_resendTimer'][_0x16fc2d(0x297)](({reqId:_0xb31478,timeout:_0x57a03c})=>{const _0x4170de=_0x16fc2d;this[_0x4170de(0x27e)](_0xb31478,_0x57a03c);}),this);}['toggleOffline'](){const _0x1f9e0c=_0x849776;return this['_clearScheduledTask'](),this[_0x1f9e0c(0x126)]['createInstance'](Z,this[_0x1f9e0c(0x360)],this[_0x1f9e0c(0x310)],this[_0x1f9e0c(0x2b0)],[],this[_0x1f9e0c(0x379)]);}[_0x849776(0x2cf)](){return this;}['resend'](){const _0x5149cf=_0x849776;this[_0x5149cf(0x379)]['onSendChangeset'](this[_0x5149cf(0x2b0)]);}['_onConflict'](_0x3a5425){const _0x510131=_0x849776;return this[_0x510131(0x17b)](),this[_0x510131(0x126)][_0x510131(0x3b3)](X,this[_0x510131(0x360)],this[_0x510131(0x310)],this['_awaitingChangeset'],[],this[_0x510131(0x379)],_0x3a5425);}['_resendWithTimeout'](_0x2da59a,_0xa53dee){const _0x304852=_0x849776;var _0x4f5180;_0x2da59a===((_0x4f5180=this[_0x304852(0x2b0)])==null?void 0x0:_0x4f5180[_0x304852(0x182)])&&(this['resend'](),this['_resendTimeout']=_0xa53dee===0x0?0x3e8:Math[_0x304852(0x2ab)](_0xa53dee*0x2,mn),this[_0x304852(0x2ed)]+=this['_resendTimeout']);}[_0x849776(0x17b)](){const _0x1feefa=_0x849776;var _0xc6ee17;(_0xc6ee17=this[_0x1feefa(0x1f9)])==null||_0xc6ee17[_0x1feefa(0x33d)](),this[_0x1feefa(0x1a7)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=dn=H([V(0x4,_0x409c93(_0x28d4d4)),V(0x5,_0x409c93(_0x12caa0)),V(0x6,_0x39bf2b),V(0x7,_0x3dc3ee),V(0x8,_0x4ac591),V(0x9,_0x1348cc),V(0xa,_0x232f40(U))],J);let Y=fn=class extends G{constructor(_0xfec796,_0x51060e,_0x58aba6,_0xeb8d82,_0x272e9a,_0x432e52,_0x25072c,_0x2c8482,_0x509b21,_0x17a127,_0x228c81,_0x1540fb,_0x3cf2c4){const _0x47d0ac=_0x849776;super(_0xfec796,_0x51060e,_0x58aba6,_0xeb8d82,_0x272e9a,_0x509b21,_0x1540fb,_0x2c8482,_0x3cf2c4),this[_0x47d0ac(0x126)]=_0x25072c,this['_logService']=_0x17a127,this[_0x47d0ac(0x25d)]=_0x228c81,this['localCacheService']=_0x3cf2c4,z(this,_0x47d0ac(0x273),'awaiting_with_pending'),z(this,_0x47d0ac(0x1a7),0x0),z(this,'_maxTotalRetryTimeout',0x0),z(this,_0x47d0ac(0x29c),void 0x0),z(this,_0x47d0ac(0x1f9),void 0x0),_0x432e52&&(this[_0x47d0ac(0x29c)]=_0x432e52,this[_0x47d0ac(0x1f9)]=this[_0x47d0ac(0x29c)][_0x47d0ac(0x297)](({reqId:_0x30caf1,timeout:_0x4a13b1})=>{const _0x143e01=_0x47d0ac;this[_0x143e01(0x27e)](_0x30caf1,_0x4a13b1);}));}[_0x849776(0x2c6)](_0x418efd){const _0x380a18=_0x849776;return this[_0x380a18(0x1d3)][_0x380a18(0x221)](_0x418efd),this;}[_0x849776(0x13f)](_0x42ba81){const _0x2d9eb2=_0x849776;if(this[_0x2d9eb2(0x20f)](_0x42ba81))return this[_0x2d9eb2(0x17b)](),this['_injector']['createInstance'](Q,this[_0x2d9eb2(0x360)],this[_0x2d9eb2(0x310)],this[_0x2d9eb2(0x2b0)],this['_pendingMutations'],null,[_0x42ba81],this[_0x2d9eb2(0x379)]);try{let _0x22d4ef=this[_0x2d9eb2(0x25d)][_0x2d9eb2(0x129)]([_0x42ba81],[this[_0x2d9eb2(0x2b0)]],!0x1);if(_0x63d5c9(_0x22d4ef)){let {c1Prime:_0x3f4e95,c2Prime:_0x249ec9}=_0x22d4ef,_0xeae07d=this[_0x2d9eb2(0x25d)][_0x2d9eb2(0x26d)](_0x3f4e95[0x0],this[_0x2d9eb2(0x1d3)]);if(_0x412a1a(_0xeae07d)){let {c1Prime:_0x446e27,m2Prime:_0x21219f}=_0xeae07d;return this['_executeRemoteChangeset'](_0x446e27),_0x249ec9[0x0][_0x2d9eb2(0x2b9)]=this['_getCurrentRevision'](),this[_0x2d9eb2(0x17b)](),this['_injector'][_0x2d9eb2(0x3b3)](fn,this[_0x2d9eb2(0x360)],this[_0x2d9eb2(0x310)],_0x249ec9[0x0],_0x21219f,this[_0x2d9eb2(0x379)],void 0x0);}throw _0xeae07d['error'];}throw _0x22d4ef['error'];}catch(_0x343e49){return this['_logService'][_0x2d9eb2(0x2bf)](_0x343e49),this[_0x2d9eb2(0x125)](!0x1);}}[_0x849776(0x30f)](_0x3dfb32){const _0x3c531b=_0x849776;this['_clearScheduledTask']();let _0x2ccb10=this[_0x3c531b(0x3a4)]();if(_0x3dfb32['revision']<=_0x2ccb10)return this;if(this[_0x3c531b(0x20f)](_0x3dfb32))return this[_0x3c531b(0x126)]['createInstance'](Q,this['unitID'],this[_0x3c531b(0x310)],this[_0x3c531b(0x2b0)],this[_0x3c531b(0x1d3)],_0x3dfb32['revision'],[],this[_0x3c531b(0x379)]);this[_0x3c531b(0x1ef)]();let _0x25d070=this[_0x3c531b(0x126)][_0x3c531b(0x3b3)](q,this[_0x3c531b(0x360)],this['type'],this[_0x3c531b(0x1d3)],this[_0x3c531b(0x379)]);return _0x25d070['_schedule'](),_0x25d070[_0x3c531b(0x26a)](),_0x25d070;}[_0x849776(0x133)](_0x22dcf){const _0x3c2fb=_0x849776;return this[_0x3c2fb(0x125)](!!(_0x22dcf!=null&&_0x22dcf[_0x3c2fb(0x1eb)]));}[_0x849776(0x239)](_0x5e5fc3){const _0x3b37c1=_0x849776;return this[_0x3b37c1(0x2ed)]>hn?this[_0x3b37c1(0x1af)]():(this[_0x3b37c1(0x29c)]=ln(this['_resendTimeout'],{'timeout':this[_0x3b37c1(0x1a7)],'reqId':_0x5e5fc3[_0x3b37c1(0x182)]}),this[_0x3b37c1(0x1f9)]=this['_resendTimer'][_0x3b37c1(0x297)](({reqId:_0x80f299,timeout:_0x1c2a53})=>{const _0xd2f942=_0x3b37c1;this[_0xd2f942(0x27e)](_0x80f299,_0x1c2a53);}),this);}[_0x849776(0x1af)](){const _0x9b3487=_0x849776;return this[_0x9b3487(0x17b)](),this[_0x9b3487(0x126)]['createInstance'](Z,this[_0x9b3487(0x360)],this[_0x9b3487(0x310)],this[_0x9b3487(0x2b0)],this[_0x9b3487(0x1d3)],this[_0x9b3487(0x379)]);}['toggleOnline'](){return this;}[_0x849776(0x395)](){const _0x319beb=_0x849776;this['_handler']['onSendChangeset'](this[_0x319beb(0x2b0)]);}['_onConflict'](_0x2d3e71){const _0x4173a2=_0x849776;return this[_0x4173a2(0x17b)](),this['_injector'][_0x4173a2(0x3b3)](X,this[_0x4173a2(0x360)],this[_0x4173a2(0x310)],null,this['_pendingMutations'],this[_0x4173a2(0x379)],_0x2d3e71);}[_0x849776(0x27e)](_0x2d3583,_0x598852){const _0x7a893b=_0x849776;var _0x1e93d2;_0x2d3583===((_0x1e93d2=this['_awaitingChangeset'])==null?void 0x0:_0x1e93d2[_0x7a893b(0x182)])&&(this[_0x7a893b(0x395)](),this[_0x7a893b(0x1a7)]=_0x598852===0x0?0x3e8:Math[_0x7a893b(0x2ab)](_0x598852*0x2,mn),this[_0x7a893b(0x2ed)]+=this[_0x7a893b(0x1a7)]);}[_0x849776(0x17b)](){const _0xef21a0=_0x849776;var _0x4e2852;(_0x4e2852=this[_0xef21a0(0x1f9)])==null||_0x4e2852[_0xef21a0(0x33d)](),this[_0xef21a0(0x1a7)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};Y=fn=H([V(0x6,_0x409c93(_0x28d4d4)),V(0x7,_0x409c93(_0x12caa0)),V(0x8,_0x39bf2b),V(0x9,_0x3dc3ee),V(0xa,_0x4ac591),V(0xb,_0x1348cc),V(0xc,_0x232f40(U))],Y);let X=class extends G{constructor(_0x2e60f1,_0x4efc18,_0x54b3be,_0x373c83,_0x5477f9,_0x20fbfb=!0x1,_0xe628a,_0x52d30c,_0x8c10d9,_0x11eb32,_0x1bbdec,_0x556eda,_0x112e92){const _0x3e464c=_0x849776;super(_0x2e60f1,_0x4efc18,_0x54b3be,_0x373c83,_0x5477f9,_0x52d30c,_0x8c10d9,_0x11eb32,_0x112e92),this[_0x3e464c(0x15c)]=_0x20fbfb,this[_0x3e464c(0x16c)]=_0xe628a,this[_0x3e464c(0x1c4)]=_0x1bbdec,this[_0x3e464c(0x271)]=_0x556eda,this[_0x3e464c(0x246)]=_0x112e92,z(this,_0x3e464c(0x273),_0x3e464c(0x169)),this[_0x3e464c(0x189)](),this[_0x3e464c(0x113)](),this[_0x3e464c(0x247)]();}[_0x849776(0x2c6)](){return this;}[_0x849776(0x13f)](){return this;}[_0x849776(0x30f)](){return this;}[_0x849776(0x133)](){return this;}[_0x849776(0x239)](){return this;}['toggleOffline'](){return this;}[_0x849776(0x2cf)](){return this;}[_0x849776(0x395)](){const _0x564631=_0x849776;throw Error(_0x564631(0x32a));}[_0x849776(0x113)](){const _0x720e8f=_0x849776;var _0x48da9a,_0x6d92cf,_0x28a0dc;(_0x48da9a=this[_0x720e8f(0x2a8)])==null||(_0x6d92cf=_0x48da9a[_0x720e8f(0x375)])==null||(_0x6d92cf=_0x6d92cf[_0x720e8f(0x150)](_0x48da9a,this[_0x720e8f(0x360)],'conflict'))==null||_0x6d92cf[_0x720e8f(0x1fc)](()=>void 0x0),(_0x28a0dc=this[_0x720e8f(0x2a8)])==null||_0x28a0dc['updateOfflineData'](this[_0x720e8f(0x360)],this['type'],null,[]);}[_0x849776(0x189)](){const _0x26c783=_0x849776;this['_isPermissionRej']?this[_0x26c783(0x271)][_0x26c783(0x2cd)]({'id':_0x26c783(0x2f6)}):this[_0x26c783(0x271)][_0x26c783(0x2cd)]({'id':_0x26c783(0x39d)});}[_0x849776(0x247)](){const _0xda5df6=_0x849776;this[_0xda5df6(0x16c)][_0xda5df6(0x25e)](new _0x302f4b(this['unitID'])['id'],!0x1);}};X=H([V(0x6,_0x409c93(_0x2cf373)),V(0x7,_0x39bf2b),V(0x8,_0x1348cc),V(0x9,_0x409c93(_0x12caa0)),V(0xa,_0x409c93(_0x36c9a1)),V(0xb,_0x409c93(B)),V(0xc,_0x232f40(U))],X);let Z=class extends G{constructor(_0x4acffd,_0x8fb80f,_0x42dd6c,_0x1c7fec,_0x3edaa0,_0x4950cf,_0x42807e,_0x52a76d,_0x4a39ae,_0x5e6d26){const _0x2b2694=_0x849776;super(_0x4acffd,_0x8fb80f,_0x42dd6c,_0x1c7fec,_0x3edaa0,_0x52a76d,_0x4a39ae,_0x42807e,_0x5e6d26),this[_0x2b2694(0x126)]=_0x4950cf,z(this,_0x2b2694(0x273),'offline');}[_0x849776(0x2c6)](_0x2e26d3){const _0x174430=_0x849776;return this[_0x174430(0x1d3)][_0x174430(0x221)](_0x2e26d3),this[_0x174430(0x26a)](),this;}[_0x849776(0x13f)](_0x3b6d68){const _0x1849a4=_0x849776;throw Error(_0x1849a4(0x2d0));}[_0x849776(0x30f)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x510bb4=_0x849776;let {_injector:_0x3c60ea,_pendingMutations:_0x1dd1ed,_awaitingChangeset:_0x4b165f,unitID:_0x4fbde5,_handler:_0x43ed7d,type:_0x5d38e5}=this,_0x433261=gn(_0x3c60ea,_0x4fbde5,_0x5d38e5,_0x4b165f,_0x1dd1ed,_0x43ed7d);return _0x433261 instanceof q?_0x433261[_0x510bb4(0x2cc)]():(_0x433261 instanceof Y||_0x433261 instanceof J)&&_0x433261['resend'](),_0x433261;}[_0x849776(0x395)](){const _0x3bbfd7=_0x849776;throw Error(_0x3bbfd7(0x21d));}};Z=H([V(0x5,_0x409c93(_0x28d4d4)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x39bf2b),V(0x8,_0x1348cc),V(0x9,_0x232f40(U))],Z);let Q=class extends G{constructor(_0x5e790f,_0x436cf9,_0x6b8d7d,_0xc75585,_0x3618ee,_0x4812de,_0x3a65bb,_0x4f1e5d,_0x1c568d,_0x29a68c,_0x4311a0,_0x3522d4,_0x2dba6f,_0x2aa5ef){const _0x499d67=_0x849776;super(_0x5e790f,_0x436cf9,_0x6b8d7d,_0xc75585,_0x3a65bb,_0x4311a0,_0x3522d4,_0x1c568d,_0x2aa5ef),this[_0x499d67(0x39a)]=_0x3618ee,this[_0x499d67(0x30b)]=_0x4812de,this['_injector']=_0x4f1e5d,this[_0x499d67(0x12e)]=_0x29a68c,this[_0x499d67(0x25d)]=_0x2dba6f,this[_0x499d67(0x246)]=_0x2aa5ef,z(this,_0x499d67(0x273),_0x499d67(0x262));}[_0x849776(0x1a0)](_0x57359c){const _0x163982=_0x849776;try{if(this[_0x163982(0x2c9)](_0x57359c)[_0x163982(0x11f)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this[_0x163982(0x30b)]][_0x163982(0x1f2)]((_0x37d8db,_0x20988a)=>_0x37d8db['revision']-_0x20988a[_0x163982(0x1dc)]))[_0x163982(0x11f)])return this['_queuedRemoteChangesets']=[],this[_0x163982(0x26a)](),this[_0x163982(0x379)][_0x163982(0x1a9)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x21a9bb=this[_0x163982(0x2b0)],_0x267a0d=this[_0x163982(0x1d3)],_0x768acc;if(_0x21a9bb&&_0x267a0d['length']!==0x0)_0x768acc=this['_injector'][_0x163982(0x3b3)](Y,this[_0x163982(0x360)],this[_0x163982(0x310)],_0x21a9bb,_0x267a0d,this[_0x163982(0x379)],void 0x0);else{if(_0x21a9bb&&_0x267a0d[_0x163982(0x298)]===0x0)_0x21a9bb['baseRev']=this['_getCurrentRevision'](),_0x768acc=this[_0x163982(0x126)][_0x163982(0x3b3)](J,this['unitID'],this[_0x163982(0x310)],_0x21a9bb,this[_0x163982(0x379)]);else{if(_0x267a0d[_0x163982(0x298)]!==0x0){let _0x7d692c=this[_0x163982(0x126)]['createInstance'](q,this[_0x163982(0x360)],this['type'],_0x267a0d,this['_handler']);_0x7d692c[_0x163982(0x2cc)](),_0x768acc=_0x7d692c;}else _0x768acc=this[_0x163982(0x126)][_0x163982(0x3b3)](K,this['unitID'],this[_0x163982(0x310)],this[_0x163982(0x379)]);}}return _0x768acc[_0x163982(0x26a)](),_0x768acc;}catch(_0x67c4e4){return this[_0x163982(0x12e)][_0x163982(0x2bf)](_0x163982(0x17d),_0x163982(0x255),_0x67c4e4),this['_injector'][_0x163982(0x3b3)](X,this[_0x163982(0x360)],this[_0x163982(0x310)],this[_0x163982(0x2b0)],this[_0x163982(0x1d3)],this[_0x163982(0x379)],!0x1);}}[_0x849776(0x2c9)](_0x5bbefb){const _0x36a03e=_0x849776;this[_0x36a03e(0x1a3)]();for(let _0x13d827=0x0;_0x13d827<_0x5bbefb[_0x36a03e(0x298)];_0x13d827++){let _0x11856f=_0x5bbefb[_0x13d827],_0x430b82=this[_0x36a03e(0x3a4)]();if(!(_0x11856f['revision']<=_0x430b82)){if(_0x11856f[_0x36a03e(0x1dc)]>_0x430b82+0x1)return{'missingChangesets':!0x0};if(this[_0x36a03e(0x34e)](_0x11856f)){this[_0x36a03e(0x2ff)]();continue;}this[_0x36a03e(0x243)](_0x11856f),this[_0x36a03e(0x1a3)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x4b0ff6){const _0x37ac35=_0x849776;let _0x29ad7b=_0x4b0ff6,_0x3f596c=this[_0x37ac35(0x2b0)];if(_0x3f596c){let _0x398a2a=this[_0x37ac35(0x25d)]['transformChangesets']([_0x4b0ff6],[_0x3f596c],!0x1);if(!_0x63d5c9(_0x398a2a))throw _0x398a2a[_0x37ac35(0x2bf)];_0x29ad7b=_0x398a2a[_0x37ac35(0x1a1)][0x0],_0x3f596c=_0x398a2a[_0x37ac35(0x149)][0x0];}let _0xc28968=this[_0x37ac35(0x1d3)];if(_0xc28968[_0x37ac35(0x298)]){let _0x177b76=this[_0x37ac35(0x25d)][_0x37ac35(0x26d)](_0x29ad7b,_0xc28968);if(!_0x412a1a(_0x177b76))throw _0x177b76[_0x37ac35(0x2bf)];_0x29ad7b=_0x177b76[_0x37ac35(0x1a1)],_0xc28968=_0x177b76[_0x37ac35(0x278)];}this[_0x37ac35(0x289)](_0x29ad7b),_0x3f596c&&(_0x3f596c['baseRev']=this[_0x37ac35(0x3a4)]()),this[_0x37ac35(0x2b0)]=_0x3f596c,this[_0x37ac35(0x1d3)]=_0xc28968;}['_acknowledgeAwaitingIfReady'](){const _0x1fa153=_0x849776;if(!this[_0x1fa153(0x2b0)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x3b8d93=this['_getCurrentRevision']();if(this[_0x1fa153(0x39a)]<=_0x3b8d93)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x1fa153(0x39a)]+'.');this[_0x1fa153(0x39a)]===_0x3b8d93+0x1&&this[_0x1fa153(0x2ff)]();}['_acknowledgeAwaiting'](){const _0x5bfec9=_0x849776;this[_0x5bfec9(0x1ef)](),this[_0x5bfec9(0x2b0)]=null,this[_0x5bfec9(0x39a)]=null;}[_0x849776(0x34e)](_0x27e801){const _0xa38169=_0x849776;let _0x373b69=this['_awaitingChangeset'];return!_0x373b69||!_0x373b69[_0xa38169(0x1a6)]||_0x373b69[_0xa38169(0x182)]===null||_0x373b69[_0xa38169(0x182)]===void 0x0?!0x1:_0x27e801[_0xa38169(0x360)]===_0x373b69['unitID']&&_0x27e801['sid']===_0x373b69['sid']&&_0x27e801[_0xa38169(0x182)]===_0x373b69[_0xa38169(0x182)];}[_0x849776(0x395)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x849776(0x2c6)](_0x760eb9){const _0x1ba579=_0x849776;return this[_0x1ba579(0x1d3)]['push'](_0x760eb9),this;}[_0x849776(0x13f)](_0x479a07){const _0x21b385=_0x849776;return this['_queuedRemoteChangesets'][_0x21b385(0x221)](_0x479a07),this;}[_0x849776(0x30f)](_0x2f5b7f){const _0x18f3ae=_0x849776;if(this['_awaitingChangeset']){let _0x367e00=this[_0x18f3ae(0x3a4)]();return _0x2f5b7f['revision']<=_0x367e00||(_0x367e00+0x1===_0x2f5b7f['revision']?(this['_incrementRevisionNumber'](),this[_0x18f3ae(0x2b0)]=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0x2f5b7f['revision']),this;}if(_0x2f5b7f[_0x18f3ae(0x1dc)]<=this[_0x18f3ae(0x3a4)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0xb62912){const _0x4ac8fc=_0x849776;return this[_0x4ac8fc(0x125)](!!(_0xb62912!=null&&_0xb62912[_0x4ac8fc(0x1eb)]));}[_0x849776(0x239)](){return this;}[_0x849776(0x1af)](){const _0x455a5f=_0x849776;return this[_0x455a5f(0x126)][_0x455a5f(0x3b3)](Z,this['unitID'],this['type'],this[_0x455a5f(0x2b0)],this[_0x455a5f(0x1d3)],this[_0x455a5f(0x379)]);}[_0x849776(0x2cf)](){return this;}[_0x849776(0x125)](_0x3050cf){const _0x430325=_0x849776;return this['_injector'][_0x430325(0x3b3)](X,this[_0x430325(0x360)],this[_0x430325(0x310)],this[_0x430325(0x2b0)],this['_pendingMutations'],this[_0x430325(0x379)],_0x3050cf);}};Q=H([V(0x7,_0x409c93(_0x28d4d4)),V(0x8,_0x409c93(_0x12caa0)),V(0x9,_0x3dc3ee),V(0xa,_0x39bf2b),V(0xb,_0x1348cc),V(0xc,_0x4ac591),V(0xd,_0x232f40(U))],Q);function gn(_0x38ee6a,_0x2a388a,_0x555d17,_0x1e04c2,_0x22a600,_0x4370e7){const _0x1a556f=_0x849776;return _0x1e04c2&&_0x22a600[_0x1a556f(0x298)]?_0x38ee6a[_0x1a556f(0x3b3)](Y,_0x2a388a,_0x555d17,_0x1e04c2,_0x22a600,_0x4370e7,void 0x0):_0x1e04c2?_0x38ee6a[_0x1a556f(0x3b3)](J,_0x2a388a,_0x555d17,_0x1e04c2,_0x4370e7):_0x22a600[_0x1a556f(0x298)]?_0x38ee6a[_0x1a556f(0x3b3)](q,_0x2a388a,_0x555d17,_0x22a600,_0x4370e7):_0x38ee6a[_0x1a556f(0x3b3)](K,_0x2a388a,_0x555d17,_0x4370e7);}let $=class extends _0x2ed6e1{get[_0x849776(0x358)](){const _0x1e66a2=_0x849776;return this[_0x1e66a2(0x284)];}constructor(_0xa10130,_0x1c31cd,_0x336d60,_0x2fdcc6,_0x1c006d,_0x392ec9,_0x4b044a,_0x12ad71,_0x187fa1,_0xc03497,_0x3cddd3,_0x56dfb9,_0x1b0315,_0xd06e20){const _0x1db4fd=_0x849776;super(),this[_0x1db4fd(0x360)]=_0xa10130,this[_0x1db4fd(0x2a4)]=_0x1c31cd,this['_type']=_0x336d60,this['_injector']=_0x2fdcc6,this['_compressMutationService']=_0x1c006d,this[_0x1db4fd(0x1c4)]=_0x392ec9,this['_revisionService']=_0x4b044a,this['_eventService']=_0x12ad71,this['_univerInstanceService']=_0x187fa1,this[_0x1db4fd(0x12e)]=_0xc03497,this[_0x1db4fd(0x3a0)]=_0x3cddd3,this['_permissionService']=_0x56dfb9,this[_0x1db4fd(0x1ca)]=_0x1b0315,this[_0x1db4fd(0x2a8)]=_0xd06e20,z(this,'_state$',new _0x2fdef4(null)),z(this,_0x1db4fd(0x2b6),this[_0x1db4fd(0x2ea)][_0x1db4fd(0x142)]()),z(this,_0x1db4fd(0x284),void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0x1db4fd(0x3ab),''),z(this,_0x1db4fd(0x26b),0x0),z(this,_0x1db4fd(0x28a),this[_0x1db4fd(0x2b6)][_0x1db4fd(0x245)](_0xe7ad12(_0x12402b=>_0x12402b?_0x12402b[_0x1db4fd(0x273)]:_0x1db4fd(0x11a)),_0x3b397c({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x1db4fd(0x327),!0x1),z(this,_0x1db4fd(0x22c),[]);}async[_0x849776(0x2f4)](){const _0x8b9505=_0x849776;if(this[_0x8b9505(0x358)])throw Error(_0x8b9505(0x353));await this[_0x8b9505(0x32d)]();}[_0x849776(0x393)](){const _0x5db962=_0x849776;return this[_0x5db962(0x24d)]=!0x0,_0x577479(()=>{const _0x3d4ec6=_0x5db962;this['_collaborationPaused']=!0x1,this[_0x3d4ec6(0x1aa)]();});}[_0x849776(0x1d7)](_0x9bd122){const _0x248232=_0x849776;this[_0x248232(0x161)](_0x9bd122);}[_0x849776(0x34c)](_0x21b8a1){const _0x3f2a27=_0x849776;this['_state']=_0x21b8a1,this['_state$'][_0x3f2a27(0x3a2)](_0x21b8a1);}async[_0x849776(0x32d)](){const _0x53abd5=_0x849776;if(this[_0x53abd5(0x34c)](await this[_0x53abd5(0x1c1)]()),this[_0x53abd5(0x1ca)]){var _0x15b145;(_0x15b145=this[_0x53abd5(0x1ca)])==null||_0x15b145[_0x53abd5(0x1d2)](this[_0x53abd5(0x360)]),this[_0x53abd5(0x158)](this[_0x53abd5(0x1ca)][_0x53abd5(0x351)](this[_0x53abd5(0x360)])[_0x53abd5(0x297)](_0x5aa8a5=>{const _0x581c0e=_0x53abd5;this[_0x581c0e(0x12e)]['debug'](_0x581c0e(0x191),_0x581c0e(0x35a),_0x5aa8a5),_0x5aa8a5===0x1?(this[_0x581c0e(0x330)][_0x581c0e(0x2cd)]({'id':_0x581c0e(0x19c)}),this['_permissionService'][_0x581c0e(0x25e)](new _0x302f4b(this[_0x581c0e(0x360)])['id'],!0x1),this[_0x581c0e(0x16c)][_0x581c0e(0x2b2)](!0x1)):(this[_0x581c0e(0x16c)]['updatePermissionPoint'](new _0x302f4b(this[_0x581c0e(0x360)])['id'],!0x0),this[_0x581c0e(0x16c)][_0x581c0e(0x2b2)](!0x0));}));}let _0x2d508f=!0x1;return this[_0x53abd5(0x158)](this[_0x53abd5(0x2a4)]['sessionStatus$'][_0x53abd5(0x297)](_0x432e5b=>{const _0x2f8f6e=_0x53abd5;_0x432e5b===0x3?this[_0x2f8f6e(0x20e)](_0x2d508f):_0x432e5b===0x2&&(_0x2d508f=!0x0,this[_0x2f8f6e(0x1ad)]());})),this[_0x53abd5(0x158)](this['session'][_0x53abd5(0x179)][_0x53abd5(0x297)](_0x5d74a8=>{const _0x247ff1=_0x53abd5;try{switch(_0x5d74a8[_0x247ff1(0x19a)]){case _0x389ee8[_0x247ff1(0x376)]:this[_0x247ff1(0x224)](_0x373627(_0x5d74a8['data']));break;case _0x389ee8[_0x247ff1(0x3a6)]:this['_onRemoteACK'](_0x5d74a8['data']);break;case _0x389ee8['CHANGESET_REJ']:this[_0x247ff1(0x311)]();break;case _0x389ee8['CHANGESET_SHOULD_RETRY']:this[_0x247ff1(0x2b8)](_0x5d74a8[_0x247ff1(0x309)]);break;case _0x389ee8[_0x247ff1(0x349)]:this[_0x247ff1(0x228)](_0x5d74a8[_0x247ff1(0x309)][_0x247ff1(0x212)][_0x247ff1(0x15d)](_0x3dffe9=>_0x373627(_0x3dffe9)));break;case _0x389ee8[_0x247ff1(0x143)]:this[_0x247ff1(0x311)]({'isPermissionRej':!0x0});break;case _0x389ee8[_0x247ff1(0x249)]:break;}}catch(_0x3c1790){throw console[_0x247ff1(0x2bf)](_0x247ff1(0x383),_0x3c1790),_0x3c1790;}})),this[_0x53abd5(0x284)];}[_0x849776(0x356)](){const _0x3eaa8e=_0x849776;this[_0x3eaa8e(0x327)]=!0x1;}['_lockTransition'](){const _0x381d96=_0x849776;if(this[_0x381d96(0x327)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x381d96(0x327)]=!0x0;}[_0x849776(0x161)](_0x24a56a){const _0x4759e4=_0x849776;this[_0x4759e4(0x1fe)](),this[_0x4759e4(0x34c)](this[_0x4759e4(0x284)][_0x4759e4(0x2c6)](_0x24a56a)),this[_0x4759e4(0x356)]();}[_0x849776(0x224)](_0x235699){const _0x4a8be6=_0x849776;if(!(_0x235699[_0x4a8be6(0x1dc)]<=this[_0x4a8be6(0x190)][_0x4a8be6(0x237)](this['unitID']))){if(this[_0x4a8be6(0x24d)]){this[_0x4a8be6(0x22c)]['push'](_0x235699);return;}this['_applyRemoteChangeset'](_0x235699);}}['_exhaustRemoteChangesetQueue'](){const _0x50f838=_0x849776;this[_0x50f838(0x22c)][_0x50f838(0x281)](_0x1347e6=>this[_0x50f838(0x299)](_0x1347e6)),this['_remoteChangesetQueue']=[];}[_0x849776(0x299)](_0x2f6367){const _0x106924=_0x849776;let _0x4a5935=this[_0x106924(0x11b)]['interceptor'][_0x106924(0x34a)](this[_0x106924(0x11b)][_0x106924(0x36c)]['getInterceptPoints']()[_0x106924(0x188)])(_0x2f6367[_0x106924(0x365)],null)||_0x2f6367[_0x106924(0x365)],_0xcf735c={..._0x2f6367,'mutations':_0x4a5935};this[_0x106924(0x1fe)](),this[_0x106924(0x34c)](this[_0x106924(0x284)][_0x106924(0x13f)](_0xcf735c)),this[_0x106924(0x356)]();}['_onRemoteACK'](_0x234c3a){const _0x36c4f8=_0x849776;this[_0x36c4f8(0x1fe)](),this[_0x36c4f8(0x34c)](this[_0x36c4f8(0x284)][_0x36c4f8(0x30f)](_0x234c3a)),this[_0x36c4f8(0x356)]();}[_0x849776(0x311)](_0x5d9084){const _0x2565b7=_0x849776;this[_0x2565b7(0x1fe)](),this[_0x2565b7(0x34c)](this[_0x2565b7(0x284)][_0x2565b7(0x133)](_0x5d9084)),this[_0x2565b7(0x356)]();}['_onRemoteRetry'](_0x32102c){const _0x35c9f4=_0x849776;this[_0x35c9f4(0x1fe)](),this[_0x35c9f4(0x34c)](this[_0x35c9f4(0x284)][_0x35c9f4(0x239)](_0x32102c)),this['_unlockTransition']();}[_0x849776(0x228)](_0x21de08){const _0x4d77b2=_0x849776;if(!(this[_0x4d77b2(0x284)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x2d0c72=_0x21de08[_0x4d77b2(0x15d)](_0x2c6dd8=>{const _0x47172c=_0x4d77b2;let _0x2374bb=this[_0x47172c(0x11b)]['interceptor']['fetchThroughInterceptors'](this[_0x47172c(0x11b)][_0x47172c(0x36c)][_0x47172c(0x19b)]()[_0x47172c(0x188)])(_0x2c6dd8[_0x47172c(0x365)],null)||_0x2c6dd8[_0x47172c(0x365)];return{..._0x2c6dd8,'mutations':_0x2374bb};});this['_lockTransition'](),this['_updateState'](this[_0x4d77b2(0x284)]['onMissedChangesetFetched'](_0x2d0c72)),this[_0x4d77b2(0x356)]();}['_toggleOffline'](){const _0x2dc024=_0x849776;this[_0x2dc024(0x1fe)](),this['_updateState'](this[_0x2dc024(0x284)][_0x2dc024(0x1af)]()),this['_unlockTransition']();}[_0x849776(0x20e)](_0x2fc584=!0x1){const _0x19922a=_0x849776;this[_0x19922a(0x1fe)](),this[_0x19922a(0x34c)](this[_0x19922a(0x284)]['toggleOnline']()),this[_0x19922a(0x356)]();let _0x152764=this[_0x19922a(0x284)];_0x2fc584&&_0x152764 instanceof K&&(this[_0x19922a(0x1fe)](),this[_0x19922a(0x34c)](_0x152764['fetchMiss']()),this['_unlockTransition']());}async[_0x849776(0x1c1)](){return new Promise(_0x1f128c=>{const _0xefc74b=_0x45be;this[_0xefc74b(0x2a4)]['sessionStatus$'][_0xefc74b(0x245)](_0x3ef186(0x1))['subscribe'](async _0x40c2d2=>{_0x1f128c(await this['_createInitialStateImpl'](_0x40c2d2===0x3));});});}[_0x849776(0x16e)](){const _0x1c1746=_0x849776;let _0x430b54=this[_0x1c1746(0x360)];return{'onStateChange':(_0x2443cb,_0x47a183)=>{const _0x515eef=_0x1c1746;if(_0x2443cb!==this[_0x515eef(0x284)])throw Error(_0x515eef(0x323)+_0x2443cb['status']+_0x515eef(0x14c)+_0x47a183[_0x515eef(0x273)]+_0x515eef(0x2bc)+this['_state'][_0x515eef(0x273)]);this[_0x515eef(0x34c)](_0x47a183);},'onSendChangeset':_0x27345c=>{const _0x144c3c=_0x1c1746;_0x27345c[_0x144c3c(0x1a6)]||(_0x27345c[_0x144c3c(0x1a6)]=this[_0x144c3c(0x3ab)],_0x27345c[_0x144c3c(0x182)]=++this[_0x144c3c(0x26b)]);let _0x532765={'eventID':_0x389ee8['SUBMIT_CHANGESET'],'data':{'unitID':_0x27345c[_0x144c3c(0x360)],'unitType':this[_0x144c3c(0x217)],'changeset':_0x27345c,'memberID':this[_0x144c3c(0x2a4)][_0x144c3c(0x37f)]()}};this[_0x144c3c(0x2a4)][_0x144c3c(0x2c4)](_0x532765,this['unitID']);},'onMissingChangesets':({from:_0x888e9f,to:_0xc10253})=>{const _0x50013b=_0x1c1746;this[_0x50013b(0x12e)][_0x50013b(0x2d8)]('[CollaborationEntity]',_0x50013b(0x17c)+_0x888e9f+_0x50013b(0x293)+_0xc10253);let _0x4fa6f2={'eventID':_0x389ee8[_0x50013b(0x111)],'data':{'unitID':_0x430b54,'unitType':this['_type'],'from':_0x888e9f,'to':_0xc10253}};this[_0x50013b(0x2a4)][_0x50013b(0x2c4)](_0x4fa6f2,this[_0x50013b(0x360)]);}};}async[_0x849776(0x1b2)](_0x5db20a){const _0x271dc8=_0x849776;var _0x1c3ae0;let _0x5944b1=await((_0x1c3ae0=this[_0x271dc8(0x2a8)])==null?void 0x0:_0x1c3ae0['loadOfflineData'](this[_0x271dc8(0x360)])),_0x14c84a=(_0x5944b1==null?void 0x0:_0x5944b1[_0x271dc8(0x365)])??[],_0x179ceb=(_0x5944b1==null?void 0x0:_0x5944b1[_0x271dc8(0x2f2)])??null,_0x31e042=!!(_0x179ceb!=null&&_0x179ceb[_0x271dc8(0x1a6)])&&!!(_0x179ceb!=null&&_0x179ceb[_0x271dc8(0x182)]);this['_changesetSessionId']=_0x31e042?_0x179ceb[_0x271dc8(0x1a6)]:_0x72e049(),this[_0x271dc8(0x26b)]=_0x31e042?_0x179ceb[_0x271dc8(0x182)]:0x0;let _0xa82495=this[_0x271dc8(0x360)];try{this[_0x271dc8(0x275)](_0x179ceb,_0x14c84a);}catch(_0x22513b){this[_0x271dc8(0x12e)][_0x271dc8(0x2bf)](_0x22513b);}let _0x1ba6f8=this[_0x271dc8(0x16e)]();if(_0x5db20a){let _0x5a38ac=gn(this[_0x271dc8(0x126)],_0xa82495,this[_0x271dc8(0x217)],_0x179ceb,_0x14c84a,_0x1ba6f8);return _0x5a38ac instanceof q?_0x5a38ac[_0x271dc8(0x2cc)]():(_0x5a38ac instanceof Y||_0x5a38ac instanceof J)&&_0x5a38ac[_0x271dc8(0x395)](),_0x5a38ac;}return this[_0x271dc8(0x126)][_0x271dc8(0x3b3)](Z,_0xa82495,this[_0x271dc8(0x217)],_0x179ceb,_0x14c84a,_0x1ba6f8);}[_0x849776(0x275)](_0x18a55c,_0x9b7f75){const _0x5a406c=_0x849776;var _0x4f2522,_0x1cb550;let _0x43e3f1=this[_0x5a406c(0x11b)][_0x5a406c(0x36c)][_0x5a406c(0x34a)](this[_0x5a406c(0x11b)][_0x5a406c(0x36c)][_0x5a406c(0x19b)]()[_0x5a406c(0x188)]);(_0x4f2522=_0x43e3f1((_0x18a55c==null?void 0x0:_0x18a55c[_0x5a406c(0x365)])||[],null))==null||_0x4f2522['forEach'](_0x1b6499=>this['_commandService'][_0x5a406c(0x36f)](_0x1b6499['id'],_0x1b6499[_0x5a406c(0x28d)])),(_0x1cb550=_0x43e3f1(_0x9b7f75||[],null))==null||_0x1cb550['forEach'](_0x4b3e8f=>this['_commandService']['executeCommand'](_0x4b3e8f['id'],_0x4b3e8f[_0x5a406c(0x28d)]));}};$=H([V(0x3,_0x409c93(_0x28d4d4)),V(0x4,_0x409c93(_0x27ea2d)),V(0x5,_0x409c93(_0x36c9a1)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x409c93(B)),V(0x8,_0x273a3b),V(0x9,_0x3dc3ee),V(0xa,_0x39bf2b),V(0xb,_0x2cf373),V(0xc,_0x232f40(W)),V(0xd,_0x232f40(U))],$);let _n=class extends ${constructor(_0x5f14eb,_0x55b09f,_0x3d70e9,_0x11a1af,_0x2e2643,_0x35e1e0,_0x59b2b7,_0x30c0e4,_0x18c790,_0x306d6f,_0x46d270,_0x59f143,_0x2ac09e,_0x4f53a1,_0x3aee7f){const _0x38dfa8=_0x849776;super(_0x5f14eb,_0x3d70e9,_0x55b09f,_0x11a1af,_0x2e2643,_0x35e1e0,_0x59b2b7,_0x30c0e4,_0x18c790,_0x306d6f,_0x46d270,_0x59f143,_0x4f53a1,_0x3aee7f),this['unitID']=_0x5f14eb,this[_0x38dfa8(0x310)]=_0x55b09f,this['_docStateChangeManagerService']=_0x2ac09e,z(this,_0x38dfa8(0x2fd),null);}[_0x849776(0x177)](_0x6e335d){const _0x204952=_0x849776;this[_0x204952(0x2fd)]=_0x6e335d;}[_0x849776(0x257)](){const _0x47dbc6=_0x849776;this[_0x47dbc6(0x2fd)]=null,super[_0x47dbc6(0x257)]();}['_createHandler'](){const _0x392662=_0x849776;let _0x474967=super[_0x392662(0x16e)]();return _0x474967[_0x392662(0x115)]=_0x3830b2=>{const _0x3376d8=_0x392662;var _0x2cde12,_0x1eec60;return(_0x2cde12=this[_0x3376d8(0x2fd)])==null||(_0x1eec60=_0x2cde12['onTransformIME'])==null?void 0x0:_0x1eec60['call'](_0x2cde12,_0x3830b2);},_0x474967[_0x392662(0x37d)]=_0x59d606=>{const _0x4c804f=_0x392662;var _0x516b99,_0x325b8f;return(_0x516b99=this[_0x4c804f(0x2fd)])==null||(_0x325b8f=_0x516b99[_0x4c804f(0x37d)])==null?void 0x0:_0x325b8f['call'](_0x516b99,_0x59d606);},_0x474967[_0x392662(0x304)]=_0x9fdf8f=>{const _0x14c160=_0x392662;var _0x42d0ce,_0xb277b;return(_0x42d0ce=this[_0x14c160(0x2fd)])==null||(_0xb277b=_0x42d0ce[_0x14c160(0x304)])==null?void 0x0:_0xb277b[_0x14c160(0x150)](_0x42d0ce,_0x9fdf8f);},_0x474967[_0x392662(0x359)]=_0x1db5f9=>{const _0x4c3de5=_0x392662;var _0x75e0c8,_0x48eaca;return(_0x75e0c8=this[_0x4c3de5(0x2fd)])==null||(_0x48eaca=_0x75e0c8[_0x4c3de5(0x359)])==null?void 0x0:_0x48eaca[_0x4c3de5(0x150)](_0x75e0c8,_0x1db5f9);},_0x474967[_0x392662(0x394)]=_0x563258=>{const _0x37afc3=_0x392662;var _0x240e18,_0x5a39b5;return((_0x240e18=this[_0x37afc3(0x2fd)])==null||(_0x5a39b5=_0x240e18[_0x37afc3(0x394)])==null?void 0x0:_0x5a39b5[_0x37afc3(0x150)](_0x240e18,_0x563258))??_0x563258;},_0x474967[_0x392662(0x122)]=_0x39d27d=>{const _0x5e0408=_0x392662;var _0x8fc3ba,_0x1fdc32;return((_0x8fc3ba=this[_0x5e0408(0x2fd)])==null||(_0x1fdc32=_0x8fc3ba[_0x5e0408(0x122)])==null?void 0x0:_0x1fdc32[_0x5e0408(0x150)](_0x8fc3ba,_0x39d27d))??_0x39d27d;},_0x474967;}async['_init'](){const _0xa0c212=_0x849776;let _0x1bf67d=await super['_init']();return this[_0xa0c212(0x158)](this[_0xa0c212(0x2c2)]['docStateChange$'][_0xa0c212(0x297)](_0x9f20ba=>{const _0x39b707=_0xa0c212;if(_0x9f20ba==null||_0x9f20ba['unitId']!==this[_0x39b707(0x360)])return;let {commandId:_0x24e7c2,redoState:_0x1aba50,unitId:_0x412941}=_0x9f20ba,_0x2f2ac0={'id':_0x24e7c2,'type':_0x3d8a6e[_0x39b707(0x346)],'params':{'unitId':_0x412941,'actions':_0x1aba50['actions'],'textRanges':null}};this[_0x39b707(0x161)](_0x2f2ac0);})),this[_0xa0c212(0x158)](this['_commandService'][_0xa0c212(0x352)]((_0x3957c8,_0x2c678f)=>{const _0x28bb6c=_0xa0c212;if(_0x3957c8[_0x28bb6c(0x310)]!==_0x3d8a6e[_0x28bb6c(0x346)]||_0x2c678f!=null&&_0x2c678f['fromCollab']||_0x2c678f!=null&&_0x2c678f[_0x28bb6c(0x2af)]||_0x3957c8['id']===_0x51d6fe['id'])return;let _0x549d61=_0x3957c8['params'];if((_0x549d61==null?void 0x0:_0x549d61['unitId'])!==this['unitID'])return;let _0x15cce2=_0x3957c8,_0x328918=this['_compressMutationService'][_0x28bb6c(0x36c)][_0x28bb6c(0x34a)](this['_compressMutationService'][_0x28bb6c(0x36c)][_0x28bb6c(0x19b)]()['COMPRESS_MUTATION_SEND'])([_0x15cce2],this[_0x28bb6c(0x367)])||[_0x15cce2];this[_0x28bb6c(0x161)](_0x328918[0x0]);})),_0x1bf67d;}};_n=H([V(0x3,_0x409c93(_0x28d4d4)),V(0x4,_0x409c93(_0x27ea2d)),V(0x5,_0x409c93(_0x36c9a1)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x409c93(B)),V(0x8,_0x273a3b),V(0x9,_0x3dc3ee),V(0xa,_0x39bf2b),V(0xb,_0x2cf373),V(0xc,_0x409c93(_0x1ee581)),V(0xd,_0x232f40(W)),V(0xe,_0x232f40(U))],_n);let vn=class extends ${constructor(_0x31dd47,_0x21d6b9,_0x55fe49,_0x226d36,_0x1af864,_0x427feb,_0x31745b,_0x2beaef,_0x2db70e,_0x2932d2,_0x546d0a,_0x517e84,_0x4adf15,_0x51dd0f){const _0xcda103=_0x849776;super(_0x31dd47,_0x55fe49,_0x21d6b9,_0x226d36,_0x1af864,_0x427feb,_0x31745b,_0x2beaef,_0x2db70e,_0x2932d2,_0x546d0a,_0x517e84,_0x4adf15,_0x51dd0f),this['unitID']=_0x31dd47,this[_0xcda103(0x310)]=_0x21d6b9;}async[_0x849776(0x32d)](){const _0x2ad509=_0x849776;let _0x42f155=await super['_init']();return this[_0x2ad509(0x158)](this[_0x2ad509(0x3a0)][_0x2ad509(0x352)]((_0x57a849,_0x587201)=>{const _0x20da86=_0x2ad509;if(_0x57a849['type']!==_0x3d8a6e['MUTATION']||_0x587201!=null&&_0x587201['fromCollab']||_0x587201!=null&&_0x587201[_0x20da86(0x2af)])return;let _0x1bb5e6=_0x57a849[_0x20da86(0x28d)];if((_0x1bb5e6==null?void 0x0:_0x1bb5e6[_0x20da86(0x331)])!==this[_0x20da86(0x360)])return;let _0x16ff53=_0x57a849,_0x1f764a=this[_0x20da86(0x11b)][_0x20da86(0x36c)]['fetchThroughInterceptors'](this[_0x20da86(0x11b)][_0x20da86(0x36c)][_0x20da86(0x19b)]()[_0x20da86(0x176)])([_0x16ff53],this[_0x20da86(0x367)])||[_0x16ff53];this[_0x20da86(0x161)](_0x1f764a[0x0]);})),_0x42f155;}};vn=H([V(0x3,_0x409c93(_0x28d4d4)),V(0x4,_0x409c93(_0x27ea2d)),V(0x5,_0x409c93(_0x36c9a1)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x409c93(B)),V(0x8,_0x273a3b),V(0x9,_0x3dc3ee),V(0xa,_0x39bf2b),V(0xb,_0x2cf373),V(0xc,_0x232f40(W)),V(0xd,_0x232f40(U))],vn);let yn=class extends ${constructor(_0x4f54b7,_0x2a0b69,_0x1b2b83,_0xbc7774,_0x5362c4,_0x5924bb,_0x424ab3,_0x279f9b,_0x54f3b9,_0x1a9ae8,_0x14de68,_0xa38fbc,_0xb7a0b3,_0x4f51e1,_0x3900ca){const _0x107a99=_0x849776;super(_0x4f54b7,_0x1b2b83,_0x2a0b69,_0xbc7774,_0x5362c4,_0x5924bb,_0x424ab3,_0x54f3b9,_0x1a9ae8,_0x14de68,_0xa38fbc,_0xb7a0b3,_0x4f51e1,_0x3900ca),this[_0x107a99(0x360)]=_0x4f54b7,this['type']=_0x2a0b69,this[_0x107a99(0x2ef)]=_0x279f9b;}[_0x849776(0x16e)](){const _0x1ddb57=_0x849776;let _0x2001fd=super[_0x1ddb57(0x16e)]();return _0x2001fd['onTransformSelections']=_0x4ae1a2=>this[_0x1ddb57(0x2ef)][_0x1ddb57(0x118)](_0x4ae1a2),_0x2001fd;}async[_0x849776(0x32d)](){const _0x11008c=_0x849776;let _0x5b8a83=await super[_0x11008c(0x32d)]();return this['disposeWithMe'](this[_0x11008c(0x3a0)][_0x11008c(0x352)]((_0x1afea1,_0x5e687f)=>{const _0x38ed1b=_0x11008c;if(_0x1afea1['type']!==_0x3d8a6e['MUTATION']||_0x5e687f!=null&&_0x5e687f[_0x38ed1b(0x117)]||_0x5e687f!=null&&_0x5e687f['onlyLocal'])return;let _0x1efd00=_0x1afea1['params'];if((_0x1efd00==null?void 0x0:_0x1efd00[_0x38ed1b(0x331)])!==this[_0x38ed1b(0x360)])return;let _0x188269=_0x1afea1,_0x294b40=this[_0x38ed1b(0x11b)][_0x38ed1b(0x36c)][_0x38ed1b(0x34a)](this[_0x38ed1b(0x11b)][_0x38ed1b(0x36c)][_0x38ed1b(0x19b)]()['COMPRESS_MUTATION_SEND'])([_0x188269],this[_0x38ed1b(0x367)])||[_0x188269];this[_0x38ed1b(0x161)](_0x294b40[0x0]);})),_0x5b8a83;}};yn=H([V(0x3,_0x409c93(_0x28d4d4)),V(0x4,_0x409c93(_0x27ea2d)),V(0x5,_0x409c93(_0x36c9a1)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x409c93(Wt)),V(0x8,_0x409c93(B)),V(0x9,_0x273a3b),V(0xa,_0x3dc3ee),V(0xb,_0x39bf2b),V(0xc,_0x2cf373),V(0xd,_0x232f40(W)),V(0xe,_0x232f40(U))],yn);let bn=class extends ${constructor(_0x1fbd3a,_0xf3028,_0x1c5219,_0x3a8e44,_0x45a912,_0x231200,_0x15d16d,_0x15cc14,_0x4bbcc7,_0x3a7b33,_0x170058,_0x4d1680,_0xad6986,_0x175284){const _0x26850f=_0x849776;super(_0x1fbd3a,_0x1c5219,_0xf3028,_0x3a8e44,_0x45a912,_0x231200,_0x15d16d,_0x15cc14,_0x4bbcc7,_0x3a7b33,_0x170058,_0x4d1680,_0xad6986,_0x175284),this[_0x26850f(0x360)]=_0x1fbd3a,this['type']=_0xf3028;}async['_init'](){const _0x400cd9=_0x849776;let _0x5b3ecc=await super['_init']();return this[_0x400cd9(0x158)](this[_0x400cd9(0x3a0)][_0x400cd9(0x352)]((_0x18d650,_0x3b7bd6)=>{const _0x5dc2e9=_0x400cd9;if(_0x18d650[_0x5dc2e9(0x310)]!==_0x3d8a6e[_0x5dc2e9(0x346)]||_0x3b7bd6!=null&&_0x3b7bd6[_0x5dc2e9(0x117)]||_0x3b7bd6!=null&&_0x3b7bd6[_0x5dc2e9(0x2af)])return;let _0x5498d6=_0x18d650[_0x5dc2e9(0x28d)];if((_0x5498d6==null?void 0x0:_0x5498d6[_0x5dc2e9(0x331)])!==this[_0x5dc2e9(0x360)])return;let _0x5f05f0=_0x18d650,_0x47f165=this[_0x5dc2e9(0x11b)][_0x5dc2e9(0x36c)][_0x5dc2e9(0x34a)](this[_0x5dc2e9(0x11b)][_0x5dc2e9(0x36c)][_0x5dc2e9(0x19b)]()[_0x5dc2e9(0x176)])([_0x5f05f0],this[_0x5dc2e9(0x367)])||[_0x5f05f0];this[_0x5dc2e9(0x161)](_0x47f165[0x0]);})),_0x5b3ecc;}};bn=H([V(0x3,_0x409c93(_0x28d4d4)),V(0x4,_0x409c93(_0x27ea2d)),V(0x5,_0x409c93(_0x36c9a1)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x409c93(B)),V(0x8,_0x273a3b),V(0x9,_0x3dc3ee),V(0xa,_0x39bf2b),V(0xb,_0x2cf373),V(0xc,_0x232f40(W)),V(0xd,_0x232f40(U))],bn);let xn=class extends ${constructor(_0x408d33,_0x2b397d,_0x78f11,_0x26e3e1,_0x2e1c81,_0x38f127,_0x6039c,_0x1bc4ac,_0x443db8,_0x9e3bde,_0x53c238,_0x21bcbd,_0x47f851,_0x8efbbd){const _0x2f1125=_0x849776;super(_0x408d33,_0x78f11,_0x2b397d,_0x26e3e1,_0x2e1c81,_0x38f127,_0x6039c,_0x1bc4ac,_0x443db8,_0x9e3bde,_0x53c238,_0x21bcbd,_0x47f851,_0x8efbbd),this[_0x2f1125(0x360)]=_0x408d33,this[_0x2f1125(0x310)]=_0x2b397d;}async['_init'](){const _0x1ec615=_0x849776;let _0x55554b=await super['_init']();return this[_0x1ec615(0x158)](this[_0x1ec615(0x3a0)]['onMutationExecutedForCollab']((_0x104696,_0x3a4926)=>{const _0x2a1d70=_0x1ec615;if(_0x104696['type']!==_0x3d8a6e[_0x2a1d70(0x346)]||_0x3a4926!=null&&_0x3a4926[_0x2a1d70(0x117)]||_0x3a4926!=null&&_0x3a4926[_0x2a1d70(0x2af)])return;let _0x22f7b6=_0x104696[_0x2a1d70(0x28d)];if((_0x22f7b6==null?void 0x0:_0x22f7b6[_0x2a1d70(0x331)])!==this[_0x2a1d70(0x360)])return;let _0x30ae78=_0x104696,_0x44a9ea=this[_0x2a1d70(0x11b)][_0x2a1d70(0x36c)]['fetchThroughInterceptors'](this[_0x2a1d70(0x11b)][_0x2a1d70(0x36c)]['getInterceptPoints']()[_0x2a1d70(0x176)])([_0x30ae78],this[_0x2a1d70(0x367)])||[_0x30ae78];this['_onLocalMutation'](_0x44a9ea[0x0]);})),_0x55554b;}};xn=H([V(0x3,_0x409c93(_0x28d4d4)),V(0x4,_0x409c93(_0x27ea2d)),V(0x5,_0x409c93(_0x36c9a1)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x409c93(B)),V(0x8,_0x273a3b),V(0x9,_0x3dc3ee),V(0xa,_0x39bf2b),V(0xb,_0x2cf373),V(0xc,_0x232f40(W)),V(0xd,_0x232f40(U))],xn);let Sn=class extends ${constructor(_0x20d348,_0x5764eb,_0x5dd39a,_0x18403f,_0xa93601,_0x5c01dd,_0x4568ec,_0x12ae8b,_0x1fab61,_0x2b13d0,_0x17173c,_0x159935,_0x4788f5,_0xef9711){const _0x2ab3dc=_0x849776;super(_0x20d348,_0x5dd39a,_0x5764eb,_0x18403f,_0xa93601,_0x5c01dd,_0x4568ec,_0x12ae8b,_0x1fab61,_0x2b13d0,_0x17173c,_0x159935,_0x4788f5,_0xef9711),this[_0x2ab3dc(0x360)]=_0x20d348,this[_0x2ab3dc(0x310)]=_0x5764eb;}async[_0x849776(0x32d)](){const _0x462138=_0x849776;let _0xb87ee9=await super[_0x462138(0x32d)]();return this[_0x462138(0x158)](this[_0x462138(0x3a0)][_0x462138(0x352)]((_0x621b50,_0x452c22)=>{const _0x43ffb9=_0x462138;if(_0x621b50[_0x43ffb9(0x310)]!==_0x3d8a6e[_0x43ffb9(0x346)]||_0x452c22!=null&&_0x452c22[_0x43ffb9(0x117)]||_0x452c22!=null&&_0x452c22['onlyLocal'])return;let _0x1763a7=_0x621b50[_0x43ffb9(0x28d)];if((_0x1763a7==null?void 0x0:_0x1763a7[_0x43ffb9(0x331)])!==this[_0x43ffb9(0x360)])return;let _0x4f8d19=_0x621b50,_0x1f5662=this[_0x43ffb9(0x11b)][_0x43ffb9(0x36c)]['fetchThroughInterceptors'](this[_0x43ffb9(0x11b)][_0x43ffb9(0x36c)][_0x43ffb9(0x19b)]()[_0x43ffb9(0x176)])([_0x4f8d19],this[_0x43ffb9(0x367)])||[_0x4f8d19];this['_onLocalMutation'](_0x1f5662[0x0]);})),_0xb87ee9;}};Sn=H([V(0x3,_0x409c93(_0x28d4d4)),V(0x4,_0x409c93(_0x27ea2d)),V(0x5,_0x409c93(_0x36c9a1)),V(0x6,_0x409c93(_0x12caa0)),V(0x7,_0x409c93(B)),V(0x8,_0x273a3b),V(0x9,_0x3dc3ee),V(0xa,_0x39bf2b),V(0xb,_0x2cf373),V(0xc,_0x232f40(W)),V(0xd,_0x232f40(U))],Sn);const Cn=_0x59b7ef(_0x849776(0x1bf));function wn(_0x496f76){const _0x365148=_0x849776;let _0x348f3d=_0x496f76[_0x365148(0x309)],_0x48f8ac=JSON[_0x365148(0x216)](_0x348f3d);switch(_0x48f8ac['cmd']){case _0x50ebb8[_0x365148(0x272)]:case _0x50ebb8['HELLO']:{let _0x4fb29c=_0x48f8ac['infoRsp'];return{..._0x48f8ac,'data':_0x4fb29c,'cmd':_0x48f8ac[_0x365148(0x2b1)]};}case _0x50ebb8[_0x365148(0x145)]:{let _0x463160=_0x48f8ac['joinRsp'];return{..._0x48f8ac,'data':_0x463160,'cmd':_0x48f8ac['cmd']};}case _0x50ebb8['RECV']:{let _0x315fc4=_0x48f8ac[_0x365148(0x300)];switch(_0x315fc4[_0x365148(0x19a)]){case _0x389ee8[_0x365148(0x143)]:var _0x3b7d8a;return{..._0x48f8ac,'data':{..._0x315fc4,'data':(_0x3b7d8a=_0x315fc4[_0x365148(0x2da)])==null?void 0x0:_0x3b7d8a['cs']},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x3a6)]:var _0x2169bc;return{..._0x48f8ac,'data':{..._0x315fc4,'data':(_0x2169bc=_0x315fc4[_0x365148(0x1c7)])==null?void 0x0:_0x2169bc['cs']},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x376)]:var _0x41dc23;return{..._0x48f8ac,'data':{..._0x315fc4,'data':(_0x41dc23=_0x315fc4[_0x365148(0x2d6)])==null?void 0x0:_0x41dc23['cs']},'cmd':_0x48f8ac['cmd']};case _0x389ee8[_0x365148(0x357)]:var _0x392ac6;return{..._0x48f8ac,'data':{..._0x315fc4,'data':(_0x392ac6=_0x315fc4[_0x365148(0x341)])==null?void 0x0:_0x392ac6['cs']},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x2e4)]:var _0x34500e;return{..._0x48f8ac,'data':{..._0x315fc4,'data':(_0x34500e=_0x315fc4[_0x365148(0x2cb)])==null?void 0x0:_0x34500e['cs']},'cmd':_0x48f8ac['cmd']};case _0x389ee8['UPDATE_CURSOR']:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4[_0x365148(0x147)]},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x1d5)]:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4[_0x365148(0x1c0)]},'cmd':_0x48f8ac['cmd']};case _0x389ee8['USERS_LEAVE']:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4['leaveEvent']},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x164)]:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4['liveShareNewHost']},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x230)]:case _0x389ee8[_0x365148(0x12f)]:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4['liveShareOperation']},'cmd':_0x48f8ac['cmd']};case _0x389ee8[_0x365148(0x319)]:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4['liveShareNewHost']},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x33b)]:return{..._0x48f8ac,'data':_0x315fc4,'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x13d)]:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4['commentUpdateEvent']},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8['UPDATE_PERMISSION_OBJ']:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4[_0x365148(0x313)]},'cmd':_0x48f8ac['cmd']};case _0x389ee8[_0x365148(0x132)]:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4[_0x365148(0x2c0)]},'cmd':_0x48f8ac[_0x365148(0x2b1)]};case _0x389ee8[_0x365148(0x249)]:return{..._0x48f8ac,'data':{..._0x315fc4,'data':_0x315fc4[_0x365148(0x1ff)]},'cmd':_0x48f8ac[_0x365148(0x2b1)]};default:return _0x48f8ac;}}default:return _0x48f8ac;}}function Tn(_0x1b86e5){const _0x31c9f6=_0x849776;switch(_0x1b86e5[_0x31c9f6(0x2b1)]){case _0x50ebb8[_0x31c9f6(0x272)]:case _0x50ebb8['HELLO']:return JSON[_0x31c9f6(0x39c)]({'cmd':_0x1b86e5['cmd'],'routeKey':_0x1b86e5[_0x31c9f6(0x30d)]});case _0x50ebb8[_0x31c9f6(0x3a3)]:{let _0x50b809;switch(_0x1b86e5[_0x31c9f6(0x309)][_0x31c9f6(0x19a)]){case _0x389ee8['UPDATE_CURSOR']:_0x50b809={'eventID':_0x389ee8['UPDATE_CURSOR'],'updateCursorEvent':_0x1b86e5['data'][_0x31c9f6(0x309)]};break;case _0x389ee8[_0x31c9f6(0x38a)]:_0x50b809={'eventID':_0x389ee8[_0x31c9f6(0x38a)],'leaveEvent':_0x1b86e5[_0x31c9f6(0x309)][_0x31c9f6(0x309)]};break;case _0x389ee8['USERS_ENTER']:_0x50b809={'eventID':_0x389ee8[_0x31c9f6(0x1d5)],'joinEvent':_0x1b86e5[_0x31c9f6(0x309)]['data']};break;case _0x389ee8[_0x31c9f6(0x164)]:_0x50b809={'eventID':_0x389ee8[_0x31c9f6(0x164)],'liveShareNewHost':_0x1b86e5[_0x31c9f6(0x309)][_0x31c9f6(0x309)]};break;case _0x389ee8[_0x31c9f6(0x12f)]:_0x50b809={'eventID':_0x389ee8['LIVESHARE_OPERATION'],'liveShareOperation':_0x1b86e5[_0x31c9f6(0x309)]['data']};break;case _0x389ee8[_0x31c9f6(0x319)]:_0x50b809={'eventID':_0x389ee8[_0x31c9f6(0x319)],'liveShareTerminate':_0x1b86e5[_0x31c9f6(0x309)]['data']};break;case _0x389ee8[_0x31c9f6(0x28f)]:_0x50b809={'eventID':_0x389ee8[_0x31c9f6(0x28f)],'liveShareRequestHost':_0x1b86e5['data']['data']};break;case _0x389ee8[_0x31c9f6(0x230)]:_0x50b809={'eventID':_0x389ee8[_0x31c9f6(0x230)]};break;default:_0x50b809={'eventID':_0x1b86e5[_0x31c9f6(0x309)][_0x31c9f6(0x19a)]};}return JSON[_0x31c9f6(0x39c)]({'cmd':_0x1b86e5['cmd'],'routeKey':_0x1b86e5[_0x31c9f6(0x30d)],'collaMsg':_0x50b809});}case _0x50ebb8[_0x31c9f6(0x145)]:return JSON[_0x31c9f6(0x39c)]({'cmd':_0x1b86e5['cmd'],'routeKey':_0x1b86e5[_0x31c9f6(0x30d)],'joinReq':_0x1b86e5[_0x31c9f6(0x309)]});case _0x50ebb8[_0x31c9f6(0x336)]:return JSON[_0x31c9f6(0x39c)]({'cmd':_0x1b86e5[_0x31c9f6(0x2b1)],'routeKey':_0x1b86e5[_0x31c9f6(0x30d)],'leaveReq':_0x1b86e5['data']});default:throw Error(_0x31c9f6(0x1d6));}}const En=_0x59b7ef(_0x849776(0x1df));function Dn(_0x3666cf,_0x1d1963,_0xe23b){const _0x1a489d=_0x849776;return _0x3666cf+'/'+_0x1d1963+'/unit/'+_0xe23b+_0x1a489d(0x315);}let On=class extends _0x513609{constructor(_0x586f70,_0x42e833,_0x482e6d,_0xdab493,_0x145374){const _0x177b8e=_0x849776;super(),this[_0x177b8e(0x126)]=_0x586f70,this[_0x177b8e(0x1e9)]=_0x42e833,this[_0x177b8e(0x123)]=_0x482e6d,this[_0x177b8e(0x12e)]=_0xdab493,this[_0x177b8e(0x168)]=_0x145374;}[_0x849776(0x18f)](_0x1631de){const _0x555a1a=_0x849776;let _0xceb75b=this[_0x555a1a(0x126)][_0x555a1a(0x203)](_0x17a395);if(!_0xceb75b)throw Error(_0x555a1a(0x12b));let _0xb59118=_0xceb75b[_0x555a1a(0x34f)](_0x1631de);if(!_0xb59118)throw Error(_0x555a1a(0x282));let _0x3b04ff=new _0x2341b1(),_0xabd846=new _0x3bb8b8();_0x3b04ff[_0x555a1a(0x29f)](_0xb59118[_0x555a1a(0x38b)][_0x555a1a(0x297)](_0x551445=>_0xabd846[_0x555a1a(0x3a2)](_0x551445))),_0x3b04ff[_0x555a1a(0x29f)](_0x577479(()=>_0xabd846[_0x555a1a(0x194)]()));let _0x200686=new _0x3bb8b8();_0x3b04ff[_0x555a1a(0x29f)](_0xb59118[_0x555a1a(0x36b)][_0x555a1a(0x297)](_0x5f533c=>_0x200686[_0x555a1a(0x3a2)](_0x5f533c))),_0x3b04ff['add'](_0x577479(()=>_0x200686[_0x555a1a(0x194)]()));let _0x165842=new _0x3bb8b8();_0x3b04ff['add'](_0xb59118['message$'][_0x555a1a(0x297)](_0x309ae0=>{let _0x1e30fc=wn(_0x309ae0);_0x165842['next'](_0x1e30fc);})),_0x3b04ff['add'](_0x577479(()=>_0x165842['complete']()));let _0x2292ae,_0x16c48f=()=>{const _0x13c0b6=_0x555a1a;_0x200686[_0x13c0b6(0x3a2)](new Event(_0x13c0b6(0x2ad))),_0xabd846[_0x13c0b6(0x3a2)](new Event(_0x13c0b6(0x2ad))),_0x2292ae[_0x13c0b6(0x369)]();};return _0x2292ae={'memberID':'','close$':_0xabd846[_0x555a1a(0x142)](),'error$':_0x200686[_0x555a1a(0x142)](),'open$':_0xb59118[_0x555a1a(0x2e7)],'message$':_0x165842['asObservable'](),'send':_0x11b9c6=>{const _0x525a45=_0x555a1a;if(_0x11b9c6[_0x525a45(0x2b1)]===_0x50ebb8[_0x525a45(0x3a3)]){if(_0x11b9c6[_0x525a45(0x309)]['eventID']===_0x389ee8['SUBMIT_CHANGESET']){this[_0x525a45(0x386)](_0x2292ae,_0x11b9c6[_0x525a45(0x309)])[_0x525a45(0x1fc)](_0x3d3ac7=>{const _0x5e4402=_0x525a45;this[_0x5e4402(0x12e)]['error'](_0x3d3ac7),_0x16c48f();});return;}if(_0x11b9c6[_0x525a45(0x309)][_0x525a45(0x19a)]===_0x389ee8['FETCH_MISSING']){let _0x3856f2=_0x11b9c6['data'];this[_0x525a45(0x1c5)](_0x3856f2)[_0x525a45(0x391)](_0x8aa57d=>{const _0x4fa454=_0x525a45;_0x165842[_0x4fa454(0x3a2)]({'cmd':_0x50ebb8[_0x4fa454(0x252)],'code':_0x102325['OK'],'routeKey':_0x3856f2['data'][_0x4fa454(0x360)],'routeType':'','data':{'eventID':_0x389ee8[_0x4fa454(0x349)],'data':{'changesets':_0x8aa57d}}});})[_0x525a45(0x1fc)](_0x4a946f=>{const _0x4d9ec6=_0x525a45;this['_logService'][_0x4d9ec6(0x2bf)](_0x4a946f),_0x16c48f();});return;}}_0xb59118['send'](Tn(_0x11b9c6));},'close':()=>{const _0x53d93c=_0x555a1a;_0xb59118[_0x53d93c(0x369)](),_0x3b04ff['dispose']();}},_0x2292ae;}async[_0x849776(0x386)](_0x54063d,_0x21740e){const _0x340665=_0x849776;let {unitType:_0x269fde,unitID:_0x304265,changeset:_0x5d8c41}=_0x21740e[_0x340665(0x309)],_0x458381={'unitID':_0x304265,'memberID':_0x54063d[_0x340665(0x25f)],'type':_0x269fde,'changeset':_0x133adf(_0x5d8c41)},_0x45a0d1=this[_0x340665(0x123)][_0x340665(0x131)](R),_0x3ee988=Dn((_0x45a0d1==null?void 0x0:_0x45a0d1[_0x340665(0x18b)])??_0x340665(0x137),_0x269fde,_0x304265);try{await this['_httpService'][_0x340665(0x387)](_0x3ee988,{'body':_0x458381});}catch(_0x3aee25){throw this[_0x340665(0x12e)][_0x340665(0x2bf)](_0x340665(0x279),_0x340665(0x2a9)),_0x3aee25;}}async[_0x849776(0x1c5)](_0x2fe43c){const _0x586c9f=_0x849776;let {unitID:_0xefe64d,from:_0x46843e,to:_0x23ced7,unitType:_0x2bc505}=_0x2fe43c[_0x586c9f(0x309)];return(await this[_0x586c9f(0x168)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0xefe64d,'type':_0x2bc505,'from':_0x46843e,'to':_0x23ced7}))[_0x586c9f(0x212)][_0x586c9f(0x15d)](_0x49a811=>((_0x49a811[_0x586c9f(0x365)]===null||_0x49a811[_0x586c9f(0x365)]===void 0x0)&&(_0x49a811[_0x586c9f(0x365)]=[]),_0x49a811));}};On=H([V(0x0,_0x409c93(_0x28d4d4)),V(0x1,_0x409c93(_0x286bba)),V(0x2,_0x6f8878),V(0x3,_0x3dc3ee),V(0x4,_0x382477)],On);const kn=_0x59b7ef(_0x849776(0x146));function An(_0x30564f={}){const _0x334e2e=_0x849776;return _0x30564f['resolveUnit']?{'resolveUnit':_0x30564f[_0x334e2e(0x268)]}:{'resolveUnit':_0x3c57ca=>({'target':{'unitId':_0x3c57ca[_0x334e2e(0x331)],'unitType':_0x3c57ca[_0x334e2e(0x3b0)]}})};}function jn(_0x7d8ffa,_0x54528a,_0x2dc6f6){const _0xa70b7f=_0x849776;let _0x456224=_0x2dc6f6[_0xa70b7f(0x1fd)]['endpoint'];if(_0x456224!=null&&_0x456224['trim']()==='')throw Error(_0xa70b7f(0x204));if(!_0x2dc6f6['target']['unitId'])throw Error(_0xa70b7f(0x130));return{'localUnitId':_0x7d8ffa,'unitType':_0x54528a,'target':{'endpoint':_0x456224,'unitId':_0x2dc6f6[_0xa70b7f(0x1fd)][_0xa70b7f(0x331)],'unitType':_0x2dc6f6[_0xa70b7f(0x1fd)][_0xa70b7f(0x3b0)]??_0x54528a},'changeset':_0x2dc6f6[_0xa70b7f(0x121)]};}let Mn=class extends _0x513609{constructor(_0x23a446,_0x425919,_0x5d6082,_0xabcfa9,_0xebf5ea,_0x41b97a,_0x13c17a){const _0x9dbf51=_0x849776;super(),this[_0x9dbf51(0x126)]=_0x23a446,this[_0x9dbf51(0x12e)]=_0x425919,this['_configService']=_0x5d6082,this[_0x9dbf51(0x256)]=_0xabcfa9,this['_collaborationUIEventService']=_0xebf5ea,this[_0x9dbf51(0x27a)]=_0x41b97a,this[_0x9dbf51(0x1c8)]=_0x13c17a,z(this,_0x9dbf51(0x25b),new Map()),z(this,_0x9dbf51(0x389),new Map()),z(this,_0x9dbf51(0x320),new Map()),z(this,_0x9dbf51(0x24a),new Map()),z(this,_0x9dbf51(0x15e),this['_getSocketChannel'](void 0x0)['socket$']['asObservable']()),z(this,_0x9dbf51(0x17a),new _0x2fdef4(0x0)),z(this,_0x9dbf51(0x28a),this[_0x9dbf51(0x17a)]['asObservable']()),this[_0x9dbf51(0x20b)]();}[_0x849776(0x20b)](){const _0x3dd2b7=_0x849776;this['_networkConditionService']&&this['disposeWithMe'](this['_networkConditionService'][_0x3dd2b7(0x154)][_0x3dd2b7(0x297)](_0x44a11d=>{const _0x4456cd=_0x3dd2b7;_0x44a11d&&this['reconnect'](),_0x44a11d||this['_socketChannels']['forEach'](_0x402b45=>this[_0x4456cd(0x31a)](_0x402b45));}));}[_0x849776(0x257)](){const _0x2600e5=_0x849776;super['dispose'](),this[_0x2600e5(0x24a)]['forEach'](_0x18781e=>{const _0x49f839=_0x2600e5;var _0x6d8b01,_0x297e03;(_0x6d8b01=_0x18781e['socketMessageSubscription'])==null||_0x6d8b01[_0x49f839(0x33d)](),_0x18781e[_0x49f839(0x332)]=null,this[_0x49f839(0x233)](_0x18781e),this[_0x49f839(0x292)](_0x18781e),this[_0x49f839(0x1fa)](_0x18781e),(_0x297e03=_0x18781e[_0x49f839(0x15e)][_0x49f839(0x1cf)]())==null||_0x297e03[_0x49f839(0x369)](),_0x18781e[_0x49f839(0x15e)]['complete']();}),this[_0x2600e5(0x24a)]['clear'](),this['_sessions'][_0x2600e5(0x281)](_0x4d41f1=>_0x4d41f1[_0x2600e5(0x257)]()),this[_0x2600e5(0x25b)][_0x2600e5(0x31e)](),this[_0x2600e5(0x320)][_0x2600e5(0x31e)](),this[_0x2600e5(0x17a)]['complete']();}async[_0x849776(0x1a4)](_0x1b2440,_0x3a193e){const _0x4faf63=_0x849776;if(this[_0x4faf63(0x25b)][_0x4faf63(0x155)](_0x1b2440))return this[_0x4faf63(0x25b)][_0x4faf63(0x203)](_0x1b2440);let _0x2113b3=this['_pendingSessions']['get'](_0x1b2440);if(_0x2113b3)return _0x2113b3;let _0x52b14e=this[_0x4faf63(0x3a9)](_0x1b2440,_0x3a193e);this[_0x4faf63(0x389)]['set'](_0x1b2440,_0x52b14e);try{return await _0x52b14e;}finally{this[_0x4faf63(0x389)][_0x4faf63(0x32c)](_0x1b2440);}}async[_0x849776(0x3a9)](_0x5aef1e,_0x104ad5){const _0x46cfd4=_0x849776;let _0x40c5c4=await this[_0x46cfd4(0x12d)](_0x5aef1e,_0x104ad5),_0x3b99f7=this[_0x46cfd4(0x348)](_0x40c5c4[_0x46cfd4(0x1fd)]['endpoint']);this[_0x46cfd4(0x218)](_0x3b99f7);let _0x2995a0=this[_0x46cfd4(0x126)][_0x46cfd4(0x3b3)](Vt,_0x40c5c4,_0x3b99f7[_0x46cfd4(0x15e)]['asObservable']());return this[_0x46cfd4(0x25b)][_0x46cfd4(0x116)](_0x5aef1e,_0x2995a0),this[_0x46cfd4(0x320)]['set'](_0x5aef1e,_0x3b99f7[_0x46cfd4(0x159)]),_0x2995a0;}[_0x849776(0x251)](_0x22358a){const _0x510ad7=_0x849776;let _0x291c81=this[_0x510ad7(0x25b)]['get'](_0x22358a),_0x1819e4=this['_sessionChannels']['get'](_0x22358a);if(_0x291c81&&(this[_0x510ad7(0x25b)][_0x510ad7(0x32c)](_0x22358a),this[_0x510ad7(0x320)][_0x510ad7(0x32c)](_0x22358a),_0x291c81[_0x510ad7(0x369)]()),_0x1819e4&&!this[_0x510ad7(0x196)](_0x1819e4)){var _0x473d89;let _0x1b6e70=this[_0x510ad7(0x24a)][_0x510ad7(0x203)](_0x1819e4);_0x1b6e70==null||(_0x473d89=_0x1b6e70[_0x510ad7(0x15e)][_0x510ad7(0x1cf)]())==null||_0x473d89[_0x510ad7(0x369)]();}}[_0x849776(0x17e)](){const _0x167079=_0x849776;(this[_0x167079(0x24a)][_0x167079(0x296)]?[...this[_0x167079(0x24a)]['values']()]:[this[_0x167079(0x348)](void 0x0)])[_0x167079(0x281)](_0x409b95=>{const _0x25090b=_0x167079;_0x409b95[_0x25090b(0x139)]=0x0,this[_0x25090b(0x233)](_0x409b95),this[_0x25090b(0x334)](_0x409b95);});}[_0x849776(0x233)](_0x63459c){const _0x454973=_0x849776;_0x63459c[_0x454973(0x1ed)]!=null&&(clearTimeout(_0x63459c[_0x454973(0x1ed)]),_0x63459c[_0x454973(0x1ed)]=null);}async[_0x849776(0x2ce)](_0x8d7261){const _0x3cf7fe=_0x849776;let _0x4be537=this[_0x3cf7fe(0x123)][_0x3cf7fe(0x131)](R),_0x50b21b=_0x8d7261[_0x3cf7fe(0x1b3)]??(_0x4be537==null?void 0x0:_0x4be537[_0x3cf7fe(0x338)])??_0x3cf7fe(0x373),_0xc36cef=await this[_0x3cf7fe(0x256)][_0x3cf7fe(0x34f)](_0x50b21b);return _0x8d7261[_0x3cf7fe(0x220)]=_0xc36cef,_0xc36cef;}async[_0x849776(0x218)](_0x142221){const _0x2bfec6=_0x849776;try{let _0x228773=_0x142221[_0x2bfec6(0x15e)]['getValue']()??_0x142221[_0x2bfec6(0x220)]??await this[_0x2bfec6(0x2ce)](_0x142221);if(_0x228773){var _0x3fa5db;let _0x474894=_0x228773[_0x2bfec6(0x2c4)];_0x228773[_0x2bfec6(0x2c4)]=_0x781454=>(_0x781454['cmd']!==_0x50ebb8[_0x2bfec6(0x336)]&&this[_0x2bfec6(0x1e0)](_0x142221),_0x474894[_0x2bfec6(0x333)](_0x228773,[_0x781454])),(_0x3fa5db=_0x142221['socketMessageSubscription'])==null||_0x3fa5db['unsubscribe'](),_0x142221[_0x2bfec6(0x332)]=null,_0x142221[_0x2bfec6(0x332)]=_0x228773['message$'][_0x2bfec6(0x297)](_0x40f9fe=>this['_onMessage'](_0x142221,_0x228773,_0x40f9fe)),_0x228773[_0x2bfec6(0x36b)][_0x2bfec6(0x245)](_0x2244a2(0x1))['subscribe'](_0x2570a7=>this[_0x2bfec6(0x12e)][_0x2bfec6(0x2bf)](_0x2bfec6(0x2dc),_0x2570a7)),_0x228773[_0x2bfec6(0x2e7)][_0x2bfec6(0x245)](_0x2244a2(0x1))[_0x2bfec6(0x297)](()=>{const _0x3f97ad=_0x2bfec6;this[_0x3f97ad(0x361)](_0x142221,_0x228773);}),_0x228773[_0x2bfec6(0x38b)]['pipe'](_0x2244a2(0x1))['subscribe'](_0x35703c=>{const _0x155a06=_0x2bfec6;this['_logService'][_0x155a06(0x2d8)](_0x155a06(0x2d1),_0x155a06(0x1b5),_0x35703c),this['_onConnectionFailed'](_0x142221);});}}catch(_0x170051){this['_logService'][_0x2bfec6(0x2bf)](_0x170051),this['_onConnectionFailed'](_0x142221);}}[_0x849776(0x361)](_0x42e065,_0x2310c4){const _0x3cfe13=_0x849776;this[_0x3cfe13(0x12e)][_0x3cfe13(0x2d8)](_0x3cfe13(0x2d1),_0x3cfe13(0x22f)),_0x2310c4[_0x3cfe13(0x2c4)]({'cmd':_0x50ebb8[_0x3cfe13(0x30c)]}),this['_rescheduleHeartbeat'](_0x42e065);}[_0x849776(0x31a)](_0xe16a24){const _0xe7d3a9=_0x849776;_0xe16a24[_0xe7d3a9(0x295)]=!0x1,_0xe16a24[_0xe7d3a9(0x220)]=null,this[_0xe7d3a9(0x17a)][_0xe7d3a9(0x3a2)](0x2),_0xe16a24[_0xe7d3a9(0x15e)][_0xe7d3a9(0x3a2)](null),this['_clearTimeoutTimer'](_0xe16a24),this[_0xe7d3a9(0x1fa)](_0xe16a24);}['_onConnectionFailed'](_0xd208f2){const _0x451d2b=_0x849776;this[_0x451d2b(0x31a)](_0xd208f2),this[_0x451d2b(0x196)](_0xd208f2['endpointKey'])&&(_0xd208f2['retryCount']<(this[_0x451d2b(0x123)][_0x451d2b(0x131)](_0x451d2b(0x26c))??0x3)?(this[_0x451d2b(0x271)][_0x451d2b(0x2cd)]({'id':_0x451d2b(0x39f)}),this[_0x451d2b(0x334)](_0xd208f2)):this['_collaborationUIEventService'][_0x451d2b(0x2cd)]({'id':_0x451d2b(0x378)}));}[_0x849776(0x334)](_0x1c4bd4){const _0x51375e=_0x849776;let _0x2c517e=_0x1c4bd4[_0x51375e(0x139)],_0x16e060=this[_0x51375e(0x123)][_0x51375e(0x131)](R),_0x2daf90=_0x2c517e===0x0?0x0:((_0x16e060==null?void 0x0:_0x16e060[_0x51375e(0x24b)])??0x4e20)*0x2**_0x2c517e;_0x1c4bd4['retryConnectingTimer']=setTimeout(()=>{const _0x39958c=_0x51375e;clearTimeout(_0x1c4bd4[_0x39958c(0x1ed)]),_0x1c4bd4[_0x39958c(0x1ed)]=null,this[_0x39958c(0x218)](_0x1c4bd4);},_0x2daf90),_0x1c4bd4[_0x51375e(0x139)]+=0x1;}async[_0x849776(0x12d)](_0x5e8d5c,_0x52621f){const _0x274d1d=_0x849776;return jn(_0x5e8d5c,_0x52621f,await this[_0x274d1d(0x27a)][_0x274d1d(0x268)]({'unitId':_0x5e8d5c,'unitType':_0x52621f}));}['_onMessage'](_0x333e6a,_0x1741a6,_0x57dd53){const _0x5e4ab3=_0x849776;let {cmd:_0x3b35c7}=_0x57dd53;_0x3b35c7===_0x50ebb8[_0x5e4ab3(0x30c)]&&!_0x333e6a['socketReady']&&(_0x1741a6[_0x5e4ab3(0x25f)]=_0x57dd53[_0x5e4ab3(0x309)][_0x5e4ab3(0x25f)],_0x333e6a[_0x5e4ab3(0x15e)][_0x5e4ab3(0x3a2)](_0x1741a6),this[_0x5e4ab3(0x17a)][_0x5e4ab3(0x3a2)](0x3),_0x333e6a[_0x5e4ab3(0x295)]=!0x0,_0x333e6a['candidateSocket']=null),_0x3b35c7===_0x50ebb8[_0x5e4ab3(0x272)]&&this['_clearTimeoutTimer'](_0x333e6a),this[_0x5e4ab3(0x1e0)](_0x333e6a);}['_hasSessionsForEndpoint'](_0x4213b7){const _0x45c941=_0x849776;return[...this[_0x45c941(0x320)][_0x45c941(0x140)]()][_0x45c941(0x1e6)](_0x354f4b=>_0x354f4b===_0x4213b7);}['_getSocketChannel'](_0x482f1f){const _0x132315=_0x849776;let _0x5970e4=_0x482f1f??'',_0x59a8c7=this['_socketChannels'][_0x132315(0x203)](_0x5970e4);if(_0x59a8c7)return _0x59a8c7;let _0x2fa1c8={'endpointKey':_0x5970e4,'endpoint':_0x482f1f,'socket$':new _0x2fdef4(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x132315(0x24a)][_0x132315(0x116)](_0x5970e4,_0x2fa1c8),_0x2fa1c8;}[_0x849776(0x1e0)](_0x3b6d42){const _0x1064b8=_0x849776;this[_0x1064b8(0x1fa)](_0x3b6d42),_0x3b6d42[_0x1064b8(0x2eb)]=setTimeout(()=>this[_0x1064b8(0x1f4)](_0x3b6d42),this['_configService'][_0x1064b8(0x131)](_0x1064b8(0x175))??0x7530);}[_0x849776(0x1f4)](_0x46c913){const _0x2a00d3=_0x849776;_0x46c913['socket$'][_0x2a00d3(0x1cf)]()[_0x2a00d3(0x2c4)]({'cmd':_0x50ebb8[_0x2a00d3(0x272)]}),this[_0x2a00d3(0x11e)](_0x46c913);}[_0x849776(0x11e)](_0x29c08d){const _0x40d8c1=_0x849776;_0x29c08d[_0x40d8c1(0x290)]=setTimeout(()=>this[_0x40d8c1(0x213)](_0x29c08d),this[_0x40d8c1(0x123)][_0x40d8c1(0x131)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x849776(0x1fa)](_0x41c702){const _0xce7c04=_0x849776;_0x41c702['sendHeartbeatTimer']!=null&&(clearTimeout(_0x41c702['sendHeartbeatTimer']),_0x41c702[_0xce7c04(0x2eb)]=null);}[_0x849776(0x292)](_0x232b04){const _0x4772c1=_0x849776;_0x232b04['timeoutTimer']!=null&&(clearTimeout(_0x232b04['timeoutTimer']),_0x232b04[_0x4772c1(0x290)]=null);}};Mn=H([V(0x0,_0x409c93(_0x28d4d4)),V(0x1,_0x3dc3ee),V(0x2,_0x6f8878),V(0x3,En),V(0x4,_0x409c93(B)),V(0x5,kn),V(0x6,_0x232f40(Cn))],Mn);let Nn=class extends _0x2ed6e1{constructor(_0xf3613d,_0x2bb3b8,_0x3158ff,_0x5e4111){const _0xf4b0e4=_0x849776;var _0x4929a5;super(),this[_0xf4b0e4(0x126)]=_0xf3613d,this[_0xf4b0e4(0x24e)]=_0x2bb3b8,this[_0xf4b0e4(0x123)]=_0x3158ff,this[_0xf4b0e4(0x367)]=_0x5e4111,z(this,_0xf4b0e4(0x1dd),new Map()),z(this,'_entityInit$',new _0x3bb8b8()),z(this,_0xf4b0e4(0x1b7),this['_entityInit$'][_0xf4b0e4(0x142)]()),((_0x4929a5=this[_0xf4b0e4(0x123)][_0xf4b0e4(0x131)](_0xf4b0e4(0x1c6)))==null?void 0x0:_0x4929a5['enableCollaboration'])!==!0x1&&this['_init']();}[_0x849776(0x257)](){const _0x28dd99=_0x849776;super[_0x28dd99(0x257)](),this[_0x28dd99(0x1dd)]['forEach'](_0x7935c4=>_0x7935c4[_0x28dd99(0x257)]()),this[_0x28dd99(0x1dd)][_0x28dd99(0x31e)]();}[_0x849776(0x258)](_0x2ea680){const _0x28a404=_0x849776;return this[_0x28a404(0x1dd)][_0x28a404(0x203)](_0x2ea680)??null;}[_0x849776(0x141)](_0x19f319){const _0x5c46a2=_0x849776;let _0x262803=this[_0x5c46a2(0x258)](_0x19f319);return _0x262803?_0x3bb851(_0x262803):this['_entityInit$'][_0x5c46a2(0x245)](_0x530fac(_0x31b83e=>_0x31b83e[_0x5c46a2(0x360)]===_0x19f319));}[_0x849776(0x294)](_0x1b569a){const _0x14d538=_0x849776;return _0x7cdf29(this[_0x14d538(0x141)](_0x1b569a)[_0x14d538(0x245)](_0x290e14(()=>void 0x0)));}[_0x849776(0x32d)](){const _0x377760=_0x849776;this['_univerInstanceService'][_0x377760(0x229)](_0x35f6ba[_0x377760(0x1e1)])[_0x377760(0x245)](_0x6f4bf7(this[_0x377760(0x240)]),_0x29361c(0x10))[_0x377760(0x297)](async _0x22d756=>{const _0x42e00a=_0x377760;let _0x394eaf=_0x22d756[_0x42e00a(0x244)][_0x42e00a(0x347)](),_0x3f29e8=await this[_0x42e00a(0x269)](_0x394eaf,_0x35f6ba[_0x42e00a(0x1e1)]);this[_0x42e00a(0x1dd)][_0x42e00a(0x116)](_0x394eaf,_0x3f29e8);}),this[_0x377760(0x367)][_0x377760(0x229)](_0x35f6ba[_0x377760(0x39e)])[_0x377760(0x245)](_0x6f4bf7(this[_0x377760(0x240)]),_0x29361c(0x10))[_0x377760(0x245)](_0x530fac(_0x46e178=>!_0x46e178[_0x377760(0x244)][_0x377760(0x347)]()[_0x377760(0x29e)]('__')))[_0x377760(0x297)](async _0x52163b=>{const _0x20aef1=_0x377760;let _0x21f39b=_0x52163b['unit'][_0x20aef1(0x347)](),_0x428c24=await this[_0x20aef1(0x269)](_0x21f39b,_0x35f6ba[_0x20aef1(0x39e)]);this[_0x20aef1(0x1dd)][_0x20aef1(0x116)](_0x21f39b,_0x428c24);}),this[_0x377760(0x367)]['getTypeOfUnitAdded$'](_0x35f6ba[_0x377760(0x392)])[_0x377760(0x245)](_0x6f4bf7(this[_0x377760(0x240)]),_0x29361c(0x10))[_0x377760(0x297)](async _0x24cb37=>{const _0x51eace=_0x377760;let _0x40311b=_0x24cb37[_0x51eace(0x244)][_0x51eace(0x347)](),_0x52f209=await this['_startCollaboration'](_0x40311b,_0x35f6ba[_0x51eace(0x392)]);this[_0x51eace(0x1dd)][_0x51eace(0x116)](_0x40311b,_0x52f209);}),this[_0x377760(0x367)][_0x377760(0x229)](_0x35f6ba['UNIVER_BOARD'])[_0x377760(0x245)](_0x6f4bf7(this[_0x377760(0x240)]),_0x29361c(0x10))['subscribe'](async _0xa82c9f=>{const _0x31c012=_0x377760;let _0x220956=_0xa82c9f[_0x31c012(0x244)][_0x31c012(0x347)](),_0x513613=await this[_0x31c012(0x269)](_0x220956,_0x35f6ba['UNIVER_BOARD']);this[_0x31c012(0x1dd)][_0x31c012(0x116)](_0x220956,_0x513613);}),this[_0x377760(0x367)][_0x377760(0x229)](_0x35f6ba[_0x377760(0x13e)])['pipe'](_0x6f4bf7(this[_0x377760(0x240)]),_0x29361c(0x10))['subscribe'](async _0x580408=>{const _0xf57e6d=_0x377760;let _0x147c98=_0x580408[_0xf57e6d(0x244)][_0xf57e6d(0x347)](),_0x28c99d=await this[_0xf57e6d(0x269)](_0x147c98,_0x35f6ba[_0xf57e6d(0x13e)]);this[_0xf57e6d(0x1dd)]['set'](_0x147c98,_0x28c99d);}),this[_0x377760(0x367)]['getTypeOfUnitAdded$'](_0x35f6ba[_0x377760(0x14d)])[_0x377760(0x245)](_0x6f4bf7(this[_0x377760(0x240)]),_0x29361c(0x10))[_0x377760(0x297)](async _0x10952a=>{const _0x45b4f9=_0x377760;let _0x2762bf=_0x10952a[_0x45b4f9(0x244)][_0x45b4f9(0x347)](),_0x186e38=await this[_0x45b4f9(0x269)](_0x2762bf,_0x35f6ba[_0x45b4f9(0x14d)]);this[_0x45b4f9(0x1dd)][_0x45b4f9(0x116)](_0x2762bf,_0x186e38);}),_0x2b1216(this[_0x377760(0x367)]['getTypeOfUnitDisposed$'](_0x35f6ba[_0x377760(0x1e1)]),this[_0x377760(0x367)][_0x377760(0x384)](_0x35f6ba[_0x377760(0x39e)]),this[_0x377760(0x367)][_0x377760(0x384)](_0x35f6ba[_0x377760(0x392)]),this['_univerInstanceService'][_0x377760(0x384)](_0x35f6ba['UNIVER_BOARD']),this[_0x377760(0x367)][_0x377760(0x384)](_0x35f6ba[_0x377760(0x13e)]),this[_0x377760(0x367)][_0x377760(0x384)](_0x35f6ba[_0x377760(0x14d)]))['pipe'](_0x6f4bf7(this['dispose$']))[_0x377760(0x297)](_0x537c71=>{const _0x4466b3=_0x377760;let _0x292002=_0x537c71[_0x4466b3(0x347)](),_0x30f57f=this[_0x4466b3(0x1dd)][_0x4466b3(0x203)](_0x292002);_0x30f57f&&(_0x30f57f[_0x4466b3(0x257)](),this[_0x4466b3(0x1dd)][_0x4466b3(0x32c)](_0x292002));});}async['_startCollaboration'](_0x53aa33,_0x173b5c){const _0x1f0d07=_0x849776;let _0x10cb1a=await this['_collabSessionService'][_0x1f0d07(0x1a4)](_0x53aa33),_0x17121d=this[_0x1f0d07(0x126)]['createInstance'](this['_getCtorByUniverInstanceType'](_0x173b5c),_0x53aa33,_0x173b5c,_0x10cb1a);return await _0x17121d[_0x1f0d07(0x2f4)](),this[_0x1f0d07(0x35e)][_0x1f0d07(0x3a2)](_0x17121d),_0x17121d;}[_0x849776(0x1c2)](_0x56a69d){const _0x4cfdd5=_0x849776;switch(_0x56a69d){case _0x35f6ba['UNIVER_DOC']:return _n;case _0x35f6ba['UNIVER_SHEET']:return yn;case _0x35f6ba[_0x4cfdd5(0x392)]:return bn;case _0x35f6ba[_0x4cfdd5(0x2d3)]:return xn;case _0x35f6ba[_0x4cfdd5(0x13e)]:return vn;case _0x35f6ba['UNIVER_PDF']:return Sn;default:throw Error(_0x4cfdd5(0x202)+_0x56a69d);}}};Nn=H([V(0x0,_0x409c93(_0x28d4d4)),V(0x1,_0x409c93(Mn)),V(0x2,_0x6f8878),V(0x3,_0x273a3b)],Nn);var Pn=_0x849776(0x264),Fn=_0x849776(0x16b);let In=class extends _0x513609{constructor(_0x5690c7,_0x96d418){const _0x2ca029=_0x849776;super(),this['_univerInstanceService']=_0x5690c7,this[_0x2ca029(0x123)]=_0x96d418,this[_0x2ca029(0x32d)]();}['_init'](){const _0x557a0a=_0x849776;this[_0x557a0a(0x158)](this['_univerInstanceService']['focused$'][_0x557a0a(0x297)](()=>{const _0x16dfcd=_0x557a0a;let _0x2d8072=this['_univerInstanceService'][_0x16dfcd(0x364)](),_0x4cd954=this[_0x16dfcd(0x123)][_0x16dfcd(0x131)]('DEFAULT_FILE_NAME')??_0x16dfcd(0x2d4);_0x2d8072 instanceof _0x146383&&(_0x4cd954=_0x2d8072[_0x16dfcd(0x363)]),document['title']=_0x4cd954;}));}};In=H([V(0x0,_0x273a3b),V(0x1,_0x6f8878)],In);const Ln=_0x59b7ef(_0x849776(0x3ad));let Rn=class{constructor(_0x1991f3,_0x2c327a,_0x3e5142){const _0x193e0f=_0x849776;this['_httpService']=_0x1991f3,this['_configService']=_0x2c327a,this[_0x193e0f(0x367)]=_0x3e5142;}['getUploadOptions'](){return this['_getConfig']()['attachment']??{};}async[_0x849776(0x2e5)](_0x597a8a){const _0x237a05=_0x849776;let _0x28ade6=this['getUploadOptions']();if(zn(_0x597a8a,_0x28ade6),_0x28ade6[_0x237a05(0x1f3)])return _0x28ade6[_0x237a05(0x1f3)](_0x597a8a);let _0x3a2083=await this['_upload'](_0x597a8a);return{'id':_0x3a2083,'name':_0x597a8a[_0x237a05(0x363)],'mimeType':_0x597a8a[_0x237a05(0x310)],'size':_0x597a8a[_0x237a05(0x296)],'sourceType':_0x3a8937['UUID'],'source':_0x3a2083};}async[_0x849776(0x2f0)](_0x1d9f25,_0x237c11){const _0x38f8ed=_0x849776;if(_0x237c11!==_0x3a8937[_0x38f8ed(0x337)])return _0x1d9f25;let _0x1a2d5a=(await this[_0x38f8ed(0x1e9)]['get'](this['_getSignURL']()[_0x38f8ed(0x1e4)](_0x38f8ed(0x305),_0x1d9f25)))[_0x38f8ed(0x134)];if(_0x1a2d5a['error']&&_0x1a2d5a['error'][_0x38f8ed(0x1e2)]!==_0x5c50d5['OK'])throw _0x1a2d5a[_0x38f8ed(0x2bf)];if(!_0x1a2d5a[_0x38f8ed(0x11d)])throw Error(_0x38f8ed(0x242));return _0x28734f(_0x1a2d5a['url'],this[_0x38f8ed(0x119)]());}async[_0x849776(0x253)](_0xc92975){const _0x4c9b4b=_0x849776;let _0x5a7474=this[_0x4c9b4b(0x367)][_0x4c9b4b(0x364)](),_0x41c62e=_0x5a7474==null?void 0x0:_0x5a7474[_0x4c9b4b(0x347)]();if(!_0x41c62e)throw Error(_0x4c9b4b(0x382));let _0x32d13f=new FormData();_0x32d13f[_0x4c9b4b(0x37a)](_0x4c9b4b(0x1b1),_0xc92975);let _0x5506cb=this[_0x4c9b4b(0x366)]()+_0x4c9b4b(0x22e)+_0xc92975[_0x4c9b4b(0x296)][_0x4c9b4b(0x21a)]()+'&source='+_0x3e0751[_0x4c9b4b(0x19e)]+_0x4c9b4b(0x39b)+encodeURIComponent(_0x41c62e),_0x2270f1=(await this[_0x4c9b4b(0x1e9)][_0x4c9b4b(0x387)](_0x5506cb,{'body':_0x32d13f}))[_0x4c9b4b(0x134)][_0x4c9b4b(0x120)];if(typeof _0x2270f1!=_0x4c9b4b(0x173)||!_0x2270f1)throw Error(_0x4c9b4b(0x21c));return _0x2270f1;}[_0x849776(0x366)](){const _0x37d62b=_0x849776;return this[_0x37d62b(0x136)]()[_0x37d62b(0x30e)]??_0x37d62b(0x20d);}['_getSignURL'](){const _0x572dac=_0x849776;return this[_0x572dac(0x136)]()['signUrlServerUrl']??'/universer-api/file/{fileID}/sign-url';}[_0x849776(0x119)](){const _0x4697a6=_0x849776;let _0x17bf5a=this[_0x4697a6(0x136)]();return _0x17bf5a[_0x4697a6(0x370)]?_0x17bf5a['downloadEndpointUrl']:typeof location<'u'?location['origin']:_0x17bf5a[_0x4697a6(0x30e)]??'';}[_0x849776(0x136)](){const _0x486b7d=_0x849776;return this[_0x486b7d(0x123)][_0x486b7d(0x131)]('collaboration-client.config')??{};}};Rn=H([V(0x0,_0x409c93(_0x286bba)),V(0x1,_0x409c93(_0x6f8878)),V(0x2,_0x409c93(_0x273a3b))],Rn);function zn(_0x451cc2,_0x58b413){const _0xcc138=_0x849776;var _0x7cd6e5;if(_0x58b413[_0xcc138(0x2b5)]!=null&&_0x451cc2[_0xcc138(0x296)]>_0x58b413[_0xcc138(0x2b5)])throw Error(_0xcc138(0x344));if((_0x7cd6e5=_0x58b413[_0xcc138(0x2df)])!=null&&_0x7cd6e5[_0xcc138(0x298)]&&!_0x58b413[_0xcc138(0x2df)][_0xcc138(0x1e6)](_0xa612aa=>_0x451cc2[_0xcc138(0x310)]===_0xa612aa||_0x451cc2['name'][_0xcc138(0x345)](_0xa612aa)||_0xa612aa[_0xcc138(0x345)]('/*')&&_0x451cc2[_0xcc138(0x310)][_0xcc138(0x29e)](_0xa612aa['slice'](0x0,-0x1))))throw Error(_0xcc138(0x22b));}let Bn=class{constructor(_0x11d2fb,_0x55eea2,_0x27b6cd){const _0x45d3c0=_0x849776;this['_configService']=_0x11d2fb,this[_0x45d3c0(0x1e9)]=_0x55eea2,this['localeService']=_0x27b6cd,this['init']();}['init'](){const _0x2de3d2=_0x849776;this[_0x2de3d2(0x1e9)][_0x2de3d2(0x308)]({'priority':0x1,'interceptor':(_0x52e32f,_0x5777f4)=>_0x5777f4(_0x52e32f)[_0x2de3d2(0x245)](_0x42e4c2(async _0x150722=>{const _0x5a0b05=_0x2de3d2;let _0x2117ee=_0x150722;if(_0x2117ee[_0x5a0b05(0x273)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x5a0b05(0x15a)](this[_0x5a0b05(0x288)]['t'](_0x5a0b05(0x306)))){let _0x236938=window['encodeURIComponent'](window[_0x5a0b05(0x2aa)][_0x5a0b05(0x35b)]);window[_0x5a0b05(0x2aa)][_0x5a0b05(0x35b)]=this[_0x5a0b05(0x231)]()+'?url='+_0x236938;}}return _0x2117ee;}))});}['_getLoginPath'](){const _0x4d9b7a=_0x849776;let _0x4e8284=this['_configService'][_0x4d9b7a(0x131)](R);return(_0x4e8284==null?void 0x0:_0x4e8284[_0x4d9b7a(0x2b7)])??'/universer-api/oidc/authpage';}};Bn=H([V(0x0,_0x6f8878),V(0x1,_0x409c93(_0x286bba)),V(0x2,_0x409c93(_0x36c9a1))],Bn);let Vn=class extends _0x513609{constructor(_0x5950ba,_0x371bf4){const _0x5127e2=_0x849776;super(),this[_0x5127e2(0x25a)]=_0x5950ba,this[_0x5127e2(0x123)]=_0x371bf4,z(this,'_cfgEnableObjInherit',!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x1c8095=_0x849776;let _0x11cc72=this;this[_0x1c8095(0x158)](this[_0x1c8095(0x25a)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0xbba41({'isMatch'(_0x5e1de6){const _0x11b697=_0x1c8095;var _0x1e831a;if(_0x5e1de6['method']==='POST'&&(_0x1e831a=_0x5e1de6[_0x11b697(0x350)])!=null&&_0x1e831a[_0x11b697(0x134)]){let {objectID:_0x5e79c0,objectType:_0x400896}=_0x5e1de6[_0x11b697(0x350)][_0x11b697(0x134)]||{};if(!_0x5e79c0||_0x400896===void 0x0)return!0x1;let _0x4a3e88=_0x11cc72[_0x11b697(0x1ce)]()+'/'+_0x400896+_0x11b697(0x302)+_0x5e79c0+_0x11b697(0x156);if(_0x5e1de6[_0x11b697(0x11d)]===_0x4a3e88)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x6ac034){const _0x2a1913=_0x1c8095;var _0x401342;return(_0x401342=_0x6ac034[_0x2a1913(0x350)])==null?void 0x0:_0x401342[_0x2a1913(0x134)];},'mergeParamsToRequest'(_0x24b325,_0x1c8def){const _0x2c7a61=_0x1c8095;let _0xde84ef=_0x11cc72[_0x2c7a61(0x1ce)]()+_0x2c7a61(0x2f1),_0x514df9=_0x24b325[_0x2c7a61(0x1ea)]((_0x24739d,_0x912ee0)=>{const _0x3706fc=_0x2c7a61;let {unitID:_0x849384,objectID:_0x562ef0,objectType:_0x543975,actions:_0x2ab74a}=_0x912ee0;return _0x24739d[_0x849384]||(_0x24739d[_0x849384]={}),_0x24739d[_0x849384][_0x562ef0]||(_0x24739d[_0x849384][_0x562ef0]={'objectID':_0x562ef0,'objectType':_0x543975,'actions':[]}),_0x24739d[_0x849384][_0x562ef0]['actions'][_0x3706fc(0x221)](..._0x2ab74a),_0x24739d;},{}),_0x34220f=[];for(let _0x58f37b in _0x514df9)for(let _0x49dc9c in _0x514df9[_0x58f37b]){let {actions:_0x3dd723,objectType:_0x5ca43b}=_0x514df9[_0x58f37b][_0x49dc9c],_0x45e140=[...new Set(_0x3dd723)];_0x34220f[_0x2c7a61(0x221)]({'unitID':_0x58f37b,'objectID':_0x49dc9c,'objectType':_0x5ca43b,'actions':_0x45e140});}return new _0x4cce1a(_0x2c7a61(0x31f),_0xde84ef,{'headers':_0x1c8def[_0x2c7a61(0x14a)],'withCredentials':_0x1c8def[_0x2c7a61(0x198)],'responseType':_0x1c8def[_0x2c7a61(0x3b4)],'body':{'requests':_0x34220f}});}},{'distributeResult'(_0x51ee93,_0x563c86){let {objectActions:_0x277cf7}=_0x51ee93;return _0x563c86['map'](_0x571512=>{const _0x594d8f=_0x45be;let {unitID:_0x576ed0,objectID:_0x153e27,actions:_0x211dc7}=_0x571512,_0x3b3621=_0x277cf7['find'](_0x2dbea2=>_0x2dbea2[_0x594d8f(0x360)]===_0x576ed0&&_0x2dbea2[_0x594d8f(0x16f)]===_0x153e27);return{'config':_0x571512,'result':{'actions':_0x211dc7[_0x594d8f(0x15d)](_0x10d7e4=>_0x3b3621==null?void 0x0:_0x3b3621['actions'][_0x594d8f(0x2fe)](_0x1c8038=>_0x1c8038[_0x594d8f(0x19f)]===_0x10d7e4))[_0x594d8f(0x211)](_0x18c726=>!!_0x18c726),'error':_0x51ee93['error']}};});}})}));}[_0x849776(0x1ce)](){const _0xf3a8d6=_0x849776;let _0x3b39b8=this['_configService']['getConfig'](R);return(_0x3b39b8==null?void 0x0:_0x3b39b8[_0xf3a8d6(0x1e3)])??'/universer-api/authz';}async['create'](_0x38bd8f){const _0x25fbf8=_0x849776;let _0x5c2749=this['_getAPIPrefixPath']()+'/'+_0x38bd8f[_0x25fbf8(0x1cd)]+_0x25fbf8(0x1c3);return(await this[_0x25fbf8(0x25a)][_0x25fbf8(0x387)](_0x5c2749,{'body':_0x38bd8f}))['body'][_0x25fbf8(0x16f)]||'';}async[_0x849776(0x33e)](_0x25d1ed){const _0x5e3c2d=_0x849776;let _0x20c0aa=this['_getAPIPrefixPath']()+_0x5e3c2d(0x30a);return(await this[_0x5e3c2d(0x25a)][_0x5e3c2d(0x387)](_0x20c0aa,{'body':_0x25d1ed}))[_0x5e3c2d(0x134)]['objects'];}async['update'](_0x2d6781){const _0x1dec57=_0x849776;var _0x55e732;let _0xef715c=this[_0x1dec57(0x1ce)]()+'/'+_0x2d6781[_0x1dec57(0x1cd)]+_0x1dec57(0x302)+_0x2d6781[_0x1dec57(0x16f)],_0x58eb15=await this[_0x1dec57(0x25a)]['put'](_0xef715c,{'body':_0x2d6781});if((_0x58eb15==null||(_0x55e732=_0x58eb15['body'])==null||(_0x55e732=_0x55e732[_0x1dec57(0x2bf)])==null?void 0x0:_0x55e732[_0x1dec57(0x1e2)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x849776(0x23e)](_0x2354b6){const _0x36c8a4=_0x849776;let _0x8dd9b=this[_0x36c8a4(0x1ce)]()+'/'+_0x2354b6[_0x36c8a4(0x1cd)]+_0x36c8a4(0x302)+_0x2354b6[_0x36c8a4(0x16f)]+_0x36c8a4(0x156);return(await this[_0x36c8a4(0x25a)][_0x36c8a4(0x387)](_0x8dd9b,{'body':_0x2354b6}))['body'][_0x36c8a4(0x2f3)];}async[_0x849776(0x1f6)](_0x22e2c4){const _0x580606=_0x849776;let _0x16d8ca=this['_getAPIPrefixPath']()+_0x580606(0x2f1);return(await this[_0x580606(0x25a)][_0x580606(0x387)](_0x16d8ca,{'body':{'requests':_0x22e2c4}}))[_0x580606(0x134)][_0x580606(0x322)];}async[_0x849776(0x2f8)](_0x330023){const _0xfe206d=_0x849776;let _0x59ef63=this[_0xfe206d(0x1ce)]()+'/'+_0x330023[_0xfe206d(0x1cd)]+_0xfe206d(0x170),_0x21ff24=await this[_0xfe206d(0x25a)][_0xfe206d(0x387)](_0x59ef63,{'body':_0x330023});return{'roles':_0x21ff24[_0xfe206d(0x134)][_0xfe206d(0x1da)],'actions':_0x21ff24['body'][_0xfe206d(0x2f3)]};}async[_0x849776(0x24f)](_0x69e5a2){const _0x3408b9=_0x849776;let _0xec0252=this[_0x3408b9(0x1ce)]()+_0x3408b9(0x14f);await this[_0x3408b9(0x25a)][_0x3408b9(0x32c)](_0xec0252,{'params':{'collaboratorID':_0x69e5a2[_0x3408b9(0x381)],'objectID':_0x69e5a2[_0x3408b9(0x16f)],'unitID':_0x69e5a2['unitID']}});}async[_0x849776(0x232)](_0x1048ce){const _0x2b0a2=_0x849776;let _0x299ddc=this[_0x2b0a2(0x1ce)]()+'/collaborator';await this[_0x2b0a2(0x25a)][_0x2b0a2(0x36d)](_0x299ddc,{'body':_0x1048ce});}async[_0x849776(0x38f)](_0x2dcb7a){const _0x16373d=_0x849776;let _0x24728a=this[_0x16373d(0x1ce)]()+'/collaborator';await this['_HTTPService'][_0x16373d(0x387)](_0x24728a,{'body':_0x2dcb7a});}async[_0x849776(0x2db)](_0x433b1c){const _0x575f36=_0x849776;let _0x445a61=this['_getAPIPrefixPath']()+'/collaborator',_0x5bad0a=await this[_0x575f36(0x25a)][_0x575f36(0x203)](_0x445a61,{'params':{'objectID':_0x433b1c[_0x575f36(0x16f)],'unitID':_0x433b1c[_0x575f36(0x360)]}});return this['setCfgEnableObjInherit'](_0x5bad0a[_0x575f36(0x134)][_0x575f36(0x3a1)]??!0x1),_0x5bad0a[_0x575f36(0x134)]['collaborators'];}async['putCollaborators'](_0x1fc929){const _0x3e6aab=_0x849776;let _0x2bf8cb=this[_0x3e6aab(0x1ce)]()+'/collaborator';await this['_HTTPService']['put'](_0x2bf8cb,{'body':_0x1fc929});}['setCfgEnableObjInherit'](_0x1a2d24){this['_cfgEnableObjInherit']=_0x1a2d24;}[_0x849776(0x2a1)](){return this['_cfgEnableObjInherit'];}};Vn=H([V(0x0,_0x409c93(_0x286bba)),V(0x1,_0x409c93(_0x6f8878))],Vn);function Hn(_0xb2bb0c){const _0x2a63bf=_0x849776;let _0x334cad=atob(_0xb2bb0c),_0x16f2da=new Uint8Array(_0x334cad['length']);for(let _0x1e0295=0x0;_0x1e0295<_0x334cad[_0x2a63bf(0x298)];_0x1e0295++)_0x16f2da[_0x1e0295]=_0x334cad[_0x2a63bf(0x335)](_0x1e0295);return _0x16f2da;}function Un(_0x4148ea){const _0x432887=_0x849776;let _0x2dd477='';for(let _0x52a4b9=0x0;_0x52a4b9<_0x4148ea[_0x432887(0x298)];_0x52a4b9++)_0x2dd477+=String['fromCharCode'](_0x4148ea[_0x52a4b9]);return btoa(_0x2dd477);}function Wn(_0x4f3d08,_0x1d570a){const _0x55e1f0=_0x849776;let _0x22e5f3=Hn(_0x1d570a),_0x30d586=_0x43bce8(0x10);return Un(_0xd51092(_0x30d586,_0x6d05ef(_0x22e5f3,_0x30d586)[_0x55e1f0(0x34b)](_0x3b15c2(_0x4f3d08))));}function Gn(){const _0x216a88=_0x849776;let _0x2b0501=_0xcfed1e()[_0x216a88(0x371)];if(typeof window<'u'&&window[_0x216a88(0x2aa)]!==void 0x0&&_0x2b0501){let _0x5925b9={'time':Math['floor'](Date[_0x216a88(0x2f9)]()/0x3e8),'domain':location[_0x216a88(0x28c)]};return Wn(JSON['stringify'](_0x5925b9),_0x2b0501);}}let Kn=class{constructor(_0x36516a){const _0xc28987=_0x849776;this['_httpService']=_0x36516a,this[_0xc28987(0x2fb)]();}[_0x849776(0x2fb)](){const _0x2e5f8f=_0x849776;this['_httpService'][_0x2e5f8f(0x308)]({'interceptor':(_0x21d4b0,_0x294b82)=>{const _0x4584e3=_0x2e5f8f;let _0x2f9eee=Gn();return _0x2f9eee&&_0x21d4b0[_0x4584e3(0x14a)][_0x4584e3(0x116)](_0x4584e3(0x380),_0x2f9eee),_0x294b82(_0x21d4b0);}});}};Kn=H([V(0x0,_0x409c93(_0x286bba))],Kn);let qn=class extends _0x2ed6e1{constructor(_0x48660d,_0x1e4b1c,_0x39f28b){const _0xcffd41=_0x849776;super(),this[_0xcffd41(0x12e)]=_0x48660d,this[_0xcffd41(0x254)]=_0x1e4b1c,this['_localCacheService']=_0x39f28b,z(this,'_unitInfo$',new _0x2fdef4(null)),z(this,_0xcffd41(0x283),new _0x3bb8b8()),z(this,_0xcffd41(0x1be),this[_0xcffd41(0x3b1)][_0xcffd41(0x142)]()),z(this,_0xcffd41(0x399),this[_0xcffd41(0x283)][_0xcffd41(0x142)]());}[_0x849776(0x257)](){const _0x4cca70=_0x849776;super[_0x4cca70(0x257)](),this[_0x4cca70(0x283)][_0x4cca70(0x194)](),this[_0x4cca70(0x3b1)][_0x4cca70(0x194)]();}async[_0x849776(0x27b)](_0x1fd405,_0xe60d84,_0x5aa7ef,_0x2cd26e){const _0x34123f=_0x849776;this[_0x34123f(0x3b1)][_0x34123f(0x3a2)]({'unitId':_0x1fd405,'type':_0xe60d84,'subUnitId':_0x2cd26e});let _0x27fca1=null;switch(_0xe60d84){case _0x35f6ba[_0x34123f(0x1e1)]:_0x27fca1=await this['_snapshotService'][_0x34123f(0x343)](_0x1fd405,_0x5aa7ef,void 0x0,{'initialSubUnitId':_0x2cd26e});break;case _0x35f6ba[_0x34123f(0x39e)]:_0x27fca1=await this[_0x34123f(0x254)][_0x34123f(0x287)](_0x1fd405,_0x5aa7ef);break;case _0x35f6ba['UNIVER_SLIDE']:_0x27fca1=await this['_snapshotService'][_0x34123f(0x324)](_0x1fd405,_0x5aa7ef);break;case _0x35f6ba[_0x34123f(0x2d3)]:_0x27fca1=await this[_0x34123f(0x254)][_0x34123f(0x1cc)](_0x1fd405,_0x5aa7ef);break;case _0x35f6ba[_0x34123f(0x13e)]:_0x27fca1=await this[_0x34123f(0x254)][_0x34123f(0x37e)](_0x1fd405,_0x5aa7ef);break;case _0x35f6ba[_0x34123f(0x14d)]:_0x27fca1=await this['_snapshotService']['loadPdf'](_0x1fd405,_0x5aa7ef);break;default:this[_0x34123f(0x12e)]['error'](_0x34123f(0x2bd),_0x34123f(0x174));break;}return _0x27fca1&&this['_unitLoaded$']['next'](_0x27fca1),_0x27fca1;}async[_0x849776(0x2de)](_0x218507,_0x505d39,_0x697f56){const _0x416191=_0x849776;var _0xfc0398;this[_0x416191(0x3b1)][_0x416191(0x3a2)]({'unitId':_0x218507,'type':_0x505d39,'subUnitId':_0x697f56});let _0x3f71fc=0x0,_0x3bb797=await((_0xfc0398=this[_0x416191(0x2a8)])==null?void 0x0:_0xfc0398[_0x416191(0x172)](_0x218507));return _0x3bb797&&(_0x3bb797[_0x416191(0x2f2)]||_0x3bb797['mutations'][_0x416191(0x298)]!==0x0)&&(_0x3f71fc=_0x3bb797[_0x416191(0x21f)]),_0x3f71fc===0x0&&this[_0x416191(0x12e)][_0x416191(0x2d8)](_0x416191(0x2bd),_0x416191(0x2ec)),this['loadUnitOfRevision'](_0x218507,_0x505d39,_0x3f71fc,_0x697f56);}};qn=H([V(0x0,_0x3dc3ee),V(0x1,_0x409c93(_0x4ae9c6)),V(0x2,_0x232f40(U))],qn);let Jn=class{constructor(_0x2e9676,_0x3ea79a,_0x1e244b){const _0x271445=_0x849776;this[_0x271445(0x1e9)]=_0x2e9676,this[_0x271445(0x123)]=_0x3ea79a,this['_univerInstanceService']=_0x1e244b,z(this,_0x271445(0x162),0x0),z(this,_0x271445(0x181),new _0x3bb8b8()),z(this,'change$',this[_0x271445(0x181)]),z(this,_0x271445(0x1cb),new Map());}[_0x849776(0x114)](_0xe7989c){const _0x322751=_0x849776;this['_waitCount']=_0xe7989c,this[_0x322751(0x181)][_0x322751(0x3a2)](_0xe7989c);}[_0x849776(0x2a7)](_0x2ad3cf,_0x219ba3){const _0x4a32a5=_0x849776;if(_0x219ba3===_0x3a8937[_0x4a32a5(0x22a)]){let _0x4da476=new Image();return _0x4da476['src']=_0x2ad3cf,_0x4da476;}return this[_0x4a32a5(0x1cb)][_0x4a32a5(0x203)](_0x2ad3cf);}['addImageSourceCache'](_0xd2f09c,_0x2bcf76,_0x5716c9){const _0xc4aeda=_0x849776;_0x2bcf76!==_0x3a8937[_0xc4aeda(0x22a)]&&_0x5716c9!=null&&this[_0xc4aeda(0x1cb)]['set'](_0xd2f09c,_0x5716c9);}async['getImage'](_0x2617c1){const _0xa31e3d=_0x849776;try{let _0x3f4ebd=this['_replaceFileID'](this[_0xa31e3d(0x1f1)](),''+_0x2617c1),_0x2111ac=(await this[_0xa31e3d(0x1e9)][_0xa31e3d(0x203)](_0x3f4ebd))[_0xa31e3d(0x134)];if(_0x2111ac[_0xa31e3d(0x2bf)]&&_0x2111ac[_0xa31e3d(0x2bf)][_0xa31e3d(0x1e2)]===_0x5c50d5['OK']){let _0xd70ac4=_0x28734f(_0x2111ac[_0xa31e3d(0x11d)],this[_0xa31e3d(0x119)]());return Promise['resolve'](_0xd70ac4);}return Promise[_0xa31e3d(0x1f5)](_0x2111ac['error']);}catch(_0x8b48d5){return Promise[_0xa31e3d(0x1f5)](_0x8b48d5);}}async['saveImage'](_0x4610aa){const _0x41f21b=_0x849776;let _0x29bb50='';if(!_0x5aad19[_0x41f21b(0x1d4)](_0x4610aa['type']))return this[_0x41f21b(0x18a)](),Promise['reject'](Error(_0x321486[_0x41f21b(0x259)]));if(_0x4610aa[_0x41f21b(0x296)]>_0x27e29a())return this[_0x41f21b(0x18a)](),Promise[_0x41f21b(0x1f5)](Error(_0x321486[_0x41f21b(0x1a2)]));try{let _0xb9de94=new FormData();_0xb9de94[_0x41f21b(0x37a)]('file',_0x4610aa);let _0x5060a5=this[_0x41f21b(0x367)]['getFocusedUnit'](),_0x3260c4=_0x5060a5==null?void 0x0:_0x5060a5[_0x41f21b(0x347)]();if(!_0x3260c4)throw Error(_0x41f21b(0x2d5));let _0x28283d=this[_0x41f21b(0x366)]()+'?size='+_0x4610aa[_0x41f21b(0x296)]['toString']()+_0x41f21b(0x2a2)+_0x3e0751[_0x41f21b(0x19e)]+_0x41f21b(0x39b)+encodeURIComponent(_0x3260c4),_0xd37758={'body':_0xb9de94},_0x57dd7d=(await this[_0x41f21b(0x1e9)][_0x41f21b(0x387)](_0x28283d,_0xd37758))[_0x41f21b(0x134)];if(typeof _0x57dd7d[_0x41f21b(0x120)]!=_0x41f21b(0x173))return this[_0x41f21b(0x18a)](),Promise[_0x41f21b(0x1f5)](Error(_0x321486[_0x41f21b(0x1bd)]));_0x29bb50=_0x57dd7d['FileId'];}catch{return this[_0x41f21b(0x18a)](),Promise['reject'](Error(_0x321486[_0x41f21b(0x1bd)]));}return new Promise((_0x28b3f4,_0x3e2971)=>{const _0x23b8ab=_0x41f21b;let _0x4da714=new FileReader();_0x4da714[_0x23b8ab(0x1e7)](_0x4610aa),_0x4da714[_0x23b8ab(0x2e2)]=_0x255843=>{const _0xe8c46e=_0x23b8ab;var _0x239b59;let _0x4fe54b=(_0x239b59=_0x255843[_0xe8c46e(0x1fd)])==null?void 0x0:_0x239b59[_0xe8c46e(0x27f)];if(_0x4fe54b==null){this[_0xe8c46e(0x18a)](),_0x3e2971(Error(_0x321486[_0xe8c46e(0x1bd)]));return;}_0x28b3f4({'imageId':_0x2269ed(0x6),'imageSourceType':_0x3a8937[_0xe8c46e(0x337)],'source':_0x29bb50,'base64Cache':_0x4fe54b,'status':_0x321486[_0xe8c46e(0x23f)]}),this['_decreaseWaiting']();};});}[_0x849776(0x366)](){const _0x3a1590=_0x849776;let _0x7b9431=this[_0x3a1590(0x123)][_0x3a1590(0x131)](R);return(_0x7b9431==null?void 0x0:_0x7b9431['uploadFileServerUrl'])??_0x3a1590(0x20d);}[_0x849776(0x1f1)](){const _0x5a375d=_0x849776;let _0x189aa1=this['_configService']['getConfig'](R);return(_0x189aa1==null?void 0x0:_0x189aa1[_0x5a375d(0x214)])??_0x5a375d(0x2d9);}['_getDownloadEndpointURL'](){const _0x19455e=_0x849776;let _0x14412b=this[_0x19455e(0x123)][_0x19455e(0x131)](R);return(_0x14412b==null?void 0x0:_0x14412b[_0x19455e(0x370)])??location[_0x19455e(0x23d)];}[_0x849776(0x112)](_0x9cf5d4,_0xb3d43d){const _0xd7a6e4=_0x849776;return _0x9cf5d4['replace'](_0xd7a6e4(0x305),_0xb3d43d);}[_0x849776(0x18a)](){const _0x3e6741=_0x849776;--this['_waitCount'],this[_0x3e6741(0x181)][_0x3e6741(0x3a2)](this[_0x3e6741(0x162)]);}};Jn=H([V(0x0,_0x409c93(_0x286bba)),V(0x1,_0x6f8878),V(0x2,_0x409c93(_0x273a3b))],Jn);let Yn=class{constructor(_0x5a270c,_0xb6cdd3){const _0x10a547=_0x849776;this[_0x10a547(0x123)]=_0x5a270c,this[_0x10a547(0x25a)]=_0xb6cdd3;}[_0x849776(0x1ce)](){const _0x3d2efe=_0x849776;let _0x1cb0d4=this['_configService'][_0x3d2efe(0x131)](R);return(_0x1cb0d4==null?void 0x0:_0x1cb0d4['authzUrl'])??'/universer-api/authz';}async[_0x849776(0x33e)](_0x34bd10){const _0x1ce067=_0x849776;let _0xfc3fbc=this[_0x1ce067(0x1ce)]()+'/collaborator';return{'list':[{'title':_0x1ce067(0x250),'mentions':(await this[_0x1ce067(0x25a)][_0x1ce067(0x203)](_0xfc3fbc,{'params':{'objectID':_0x34bd10['unitId'],'unitID':_0x34bd10[_0x1ce067(0x331)]}}))[_0x1ce067(0x134)][_0x1ce067(0x19d)][_0x1ce067(0x15d)](_0x2da709=>({'objectId':_0x2da709['id'],'name':_0x2da709[_0x1ce067(0x2fc)][_0x1ce067(0x363)],'metadata':{'icon':_0x2da709[_0x1ce067(0x2fc)]['avatar']},'label':_0x2da709[_0x1ce067(0x2fc)][_0x1ce067(0x363)],'objectType':_0x5221fb['PERSON']})),'metadata':{},'type':_0x5221fb['PERSON']}]};}};Yn=H([V(0x0,_0x409c93(_0x6f8878)),V(0x1,_0x409c93(_0x286bba))],Yn);let Xn=class extends _0x2ed6e1{constructor(_0x3d5461,_0x1b3ce6,_0xc1baff,_0xa1684a,_0x5c8712){const _0x462715=_0x849776;super(),this[_0x462715(0x126)]=_0x3d5461,this[_0x462715(0x367)]=_0x1b3ce6,this[_0x462715(0x16c)]=_0xc1baff,this['_collaborationSessionService']=_0xa1684a,this[_0x462715(0x271)]=_0x5c8712,this[_0x462715(0x2c7)](),this[_0x462715(0x1e8)]();}[_0x849776(0x1e8)](){const _0x58327c=_0x849776;let _0x435bb2=async _0x104bcf=>{const _0x213330=_0x45be;(await this[_0x213330(0x14e)]['requireSession'](_0x104bcf))[_0x213330(0x179)][_0x213330(0x245)](_0x530fac(_0xcae91d=>_0xcae91d['eventID']===_0x389ee8[_0x213330(0x132)]),_0x3a4e23(this['dispose$']))[_0x213330(0x297)](_0x1e0f6f=>{const _0xe33369=_0x213330;let {reason:_0x459935}=_0x1e0f6f[_0xe33369(0x309)];this[_0xe33369(0x271)][_0xe33369(0x2cd)]({'id':'CLOSE_ROOM','data':_0x459935}),this['_permissionService'][_0xe33369(0x25e)](new _0x302f4b(_0x104bcf)['id'],!0x1),this[_0xe33369(0x14e)][_0xe33369(0x251)](_0x104bcf);});};_0x2b1216(this[_0x58327c(0x367)][_0x58327c(0x229)](_0x35f6ba[_0x58327c(0x1e1)]),this[_0x58327c(0x367)]['getTypeOfUnitAdded$'](_0x35f6ba[_0x58327c(0x39e)]),this[_0x58327c(0x367)][_0x58327c(0x229)](_0x35f6ba['UNIVER_BOARD']),this[_0x58327c(0x367)][_0x58327c(0x229)](_0x35f6ba[_0x58327c(0x13e)]))['pipe'](_0x290e14(_0x4cffff=>_0x4cffff['unit'][_0x58327c(0x347)]()),_0x530fac(_0x195ce0=>!_0xd6485b(_0x195ce0)),_0x3a4e23(this['dispose$']))['subscribe'](_0x274cf5=>{_0x435bb2(_0x274cf5);});}[_0x849776(0x2c7)](){const _0x3fd4cd=_0x849776;let _0x286e93=async _0x5bfbb0=>{const _0x10a533=_0x45be;let _0x560d13=await this[_0x10a533(0x14e)][_0x10a533(0x1a4)](_0x5bfbb0),_0x398001=this[_0x10a533(0x126)]['get'](_0x4856a0);_0x560d13[_0x10a533(0x179)]['pipe'](_0x530fac(_0xe4f339=>_0xe4f339[_0x10a533(0x19a)]===_0x389ee8[_0x10a533(0x26f)]),_0x3a4e23(this[_0x10a533(0x240)]))['subscribe'](_0x4b2dec=>{const _0x4658b2=_0x10a533;let {objectId:_0x4d442e}=_0x4b2dec['data'];_0x4d442e===_0x5bfbb0?_0x398001[_0x4658b2(0x374)](_0x5bfbb0):_0x398001[_0x4658b2(0x277)](_0x5bfbb0,_0x4d442e);});};_0x2b1216(this['_univerInstanceService'][_0x3fd4cd(0x229)](_0x35f6ba[_0x3fd4cd(0x1e1)]))['pipe'](_0x290e14(_0x444b9e=>_0x444b9e['unit'][_0x3fd4cd(0x347)]()),_0x530fac(_0x4d202f=>!_0xd6485b(_0x4d202f)),_0x3a4e23(this[_0x3fd4cd(0x240)]))[_0x3fd4cd(0x297)](_0x59d6de=>{_0x286e93(_0x59d6de);});}};Xn=H([V(0x0,_0x409c93(_0x28d4d4)),V(0x1,_0x273a3b),V(0x2,_0x2cf373),V(0x3,_0x409c93(Mn)),V(0x4,_0x409c93(B))],Xn);let Zn=class{constructor(_0x2554d3,_0x38953a){const _0x2e6698=_0x849776;this[_0x2e6698(0x123)]=_0x2554d3,this['_httpService']=_0x38953a;}async[_0x849776(0x2f5)](_0x71243f,_0x289c51){const _0x2f0101=_0x849776;var _0x238512;let {unitID:_0x3d60d2,type:_0x54d067,revision:_0xfc22bc=0x0}=_0x289c51,_0x20e033=this[_0x2f0101(0x222)]()+'/'+_0x54d067+'/unit/'+_0x3d60d2+'/rev/'+_0xfc22bc,_0x14712e=(await this['_httpService'][_0x2f0101(0x203)](_0x20e033))[_0x2f0101(0x134)],_0x186643=(_0x238512=_0x14712e['snapshot'])==null?void 0x0:_0x238512['workbook'];if(_0x186643){let _0x4f1d7b=_0x186643==null?void 0x0:_0x186643['originalMeta'];_0x186643[_0x2f0101(0x263)]=_0x4a8895[_0x2f0101(0x1bb)](_0x2d3e4d(_0x4f1d7b)),Object[_0x2f0101(0x261)](_0x186643[_0x2f0101(0x2a0)])[_0x2f0101(0x281)](([,_0x1d24fe])=>{const _0x3e0233=_0x2f0101;let _0x4a62e0=_0x1d24fe[_0x3e0233(0x263)];_0x1d24fe[_0x3e0233(0x263)]=_0x4a8895[_0x3e0233(0x1bb)](_0x2d3e4d(_0x4a62e0));});}return _0x14712e;}async[_0x849776(0x2a6)](_0x4ae60d,_0x362702){const _0x3a93b4=_0x849776;let {unitID:_0x3f2c96,type:_0x1c917a,blockID:_0xd3d626}=_0x362702,_0x4326d5=this['_getAPIPrefix']()+'/'+_0x1c917a+_0x3a93b4(0x38e)+_0x3f2c96+_0x3a93b4(0x32b)+_0xd3d626;return(await this[_0x3a93b4(0x1e9)]['get'](_0x4326d5))[_0x3a93b4(0x134)];}async[_0x849776(0x3a5)](_0x1d5346,_0xba91f5){const _0x6a7bd2=_0x849776;let {unitID:_0x1726eb,type:_0x16007a,blockID:_0x16de80}=_0xba91f5,_0x3dc51c=this[_0x6a7bd2(0x321)]()+_0x6a7bd2(0x32b)+_0x16007a+_0x6a7bd2(0x38e)+_0x1726eb+_0x6a7bd2(0x32b)+_0x16de80;return(await this[_0x6a7bd2(0x1e9)]['get'](_0x3dc51c))[_0x6a7bd2(0x134)];}async[_0x849776(0x1ae)](_0x1f119a,_0x1e649d){const _0x39e229=_0x849776;let {unitID:_0x4fe81b,type:_0x174211,from:_0x1b0d08,to:_0x51c824}=_0x1e649d,_0x560108=this[_0x39e229(0x321)]()+'/'+_0x174211+_0x39e229(0x38e)+_0x4fe81b+'/fetchmissing?from='+_0x1b0d08+_0x39e229(0x2dd)+_0x51c824;return(await this[_0x39e229(0x1e9)][_0x39e229(0x203)](_0x560108))['body'];}['getSnapshotAPIPath'](){const _0x10542c=_0x849776;return this[_0x10542c(0x123)][_0x10542c(0x131)](_0x10542c(0x312))??this[_0x10542c(0x321)]();}[_0x849776(0x321)](){const _0x2e5b6b=_0x849776;let _0x4b167c=this[_0x2e5b6b(0x123)]['getConfig'](R);return(_0x4b167c==null?void 0x0:_0x4b167c['snapshotServerUrl'])??_0x2e5b6b(0x32f);}async[_0x849776(0x23a)](_0x5d374d,_0xffa86d){const _0x316d54=_0x849776;let _0x322e70=_0x316d54(0x2d2)+_0xffa86d[_0x316d54(0x310)]+_0x316d54(0x38e)+_0xffa86d['unitID']+_0x316d54(0x267);return(await this['_httpService'][_0x316d54(0x203)](_0x322e70,{'params':{'resourceId':JSON[_0x316d54(0x39c)](_0xffa86d[_0x316d54(0x153)])}}))['body'];}['saveSnapshot'](){const _0x3ecc86=_0x849776;throw Error(_0x3ecc86(0x28e));}[_0x849776(0x34d)](){const _0x2f0980=_0x849776;throw Error(_0x2f0980(0x28e));}[_0x849776(0x2fa)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x849776(0x35c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x45c718=_0x849776;throw Error(_0x45c718(0x28e));}[_0x849776(0x307)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Zn=H([V(0x0,_0x6f8878),V(0x1,_0x409c93(_0x286bba))],Zn);let Qn=class extends _0x41de87{constructor(_0x1701af,_0x3e0858,_0x4854b1,_0x5ac6b7,_0x4cd37e,_0x5f203e){const _0x5a2a2a=_0x849776;super(_0x1701af,_0x3e0858,_0x4854b1,_0x5ac6b7),this[_0x5a2a2a(0x25d)]=_0x4cd37e,this['_logService']=_0x5f203e;}[_0x849776(0x314)](_0x498d28,_0x43bf41){const _0x397bb2=_0x849776;let _0x219dd7=this[_0x397bb2(0x342)](_0x498d28);if(_0x219dd7)try{let _0x5e18a4=this['_transformStack'](_0x219dd7,_0x43bf41);this[_0x397bb2(0x13a)](_0x498d28,_0x5e18a4);}catch(_0x56f379){this[_0x397bb2(0x12e)][_0x397bb2(0x2bf)](_0x397bb2(0x2d7),_0x56f379),this[_0x397bb2(0x260)](_0x498d28);}let _0x5b5b63=this[_0x397bb2(0x1e5)](_0x498d28);if(_0x5b5b63)try{let _0x33819b=this[_0x397bb2(0x15b)](_0x5b5b63,_0x43bf41);this[_0x397bb2(0x235)](_0x498d28,_0x33819b);}catch(_0x4c7699){this[_0x397bb2(0x12e)][_0x397bb2(0x2bf)](_0x4c7699),this[_0x397bb2(0x2a3)](_0x498d28);}}[_0x849776(0x260)](_0x1d4cff){const _0x2f31a4=_0x849776;let _0x228531=this['_getUndoStack'](_0x1d4cff);_0x228531&&(_0x228531[_0x2f31a4(0x298)]=0x0,this[_0x2f31a4(0x35d)]());}[_0x849776(0x2a3)](_0x8ee41c){const _0x51243b=_0x849776;let _0x23bb5c=this['_getRedoStack'](_0x8ee41c);_0x23bb5c&&(_0x23bb5c[_0x51243b(0x298)]=0x0,this[_0x51243b(0x35d)]());}['_substituteUndoStack'](_0x49ef06,_0x506da4){const _0x236721=_0x849776;this[_0x236721(0x22d)][_0x236721(0x116)](_0x49ef06,_0x506da4),this['_updateStatus']();}[_0x849776(0x235)](_0x5d3bec,_0x1e1955){const _0x1eca5d=_0x849776;this[_0x1eca5d(0x1a5)][_0x1eca5d(0x116)](_0x5d3bec,_0x1e1955),this['_updateStatus']();}['_transformStack'](_0x5d6eed,_0xde1702){const _0x4429e5=_0x849776;let _0x542f85=[],_0x4a4ea7=_0xde1702,_0x87a82a=_0xde1702;for(let _0x164fa4=_0x5d6eed[_0x4429e5(0x298)]-0x1;_0x164fa4>=0x0;_0x164fa4--){let {unitID:_0x11ee07,undoMutations:_0x2993ca,redoMutations:_0x4e06fb}=_0x5d6eed[_0x164fa4],_0x3d955c=this[_0x4429e5(0x25d)][_0x4429e5(0x26d)](_0x4a4ea7,_0x2993ca),_0x49ba74=this['_transformService'][_0x4429e5(0x26d)](_0x87a82a,_0x4e06fb);if(_0x41f763(_0x3d955c)||_0x41f763(_0x49ba74)){this[_0x4429e5(0x12e)]['error'](_0x4429e5(0x2d7),_0x4429e5(0x31c),_0x3d955c,_0x49ba74);break;}_0x4a4ea7=_0x3d955c[_0x4429e5(0x1a1)],_0x87a82a=_0x49ba74[_0x4429e5(0x1a1)],_0x542f85[_0x4429e5(0x221)]({'unitID':_0x11ee07,'undoMutations':_0x3d955c[_0x4429e5(0x278)],'redoMutations':_0x49ba74[_0x4429e5(0x278)]});}return _0x542f85[_0x4429e5(0x29a)]();}};Qn=H([V(0x0,_0x273a3b),V(0x1,_0x39bf2b),V(0x2,_0x476244),V(0x3,_0x6f8878),V(0x4,_0x4ac591),V(0x5,_0x3dc3ee)],Qn);let $n=class extends _0x4fa488{constructor(_0x5c4927=ft,_0x2470d9,_0x28b140,_0x428d1c){const _0x57f049=_0x849776;super(),this[_0x57f049(0x185)]=_0x5c4927,this[_0x57f049(0x12e)]=_0x2470d9,this[_0x57f049(0x126)]=_0x28b140,this[_0x57f049(0x123)]=_0x428d1c;let {..._0xc8a805}=_0x1bd68b({},ft,this[_0x57f049(0x185)]);if(!_0xc8a805['socketService'])throw Error(_0x57f049(0x3ac));this[_0x57f049(0x185)]=_0xc8a805,this['_configService'][_0x57f049(0x20c)](R,_0xc8a805);}[_0x849776(0x138)](){const _0x3fecd4=_0x849776;this[_0x3fecd4(0x148)](),this[_0x3fecd4(0x3b5)]();}[_0x849776(0x148)](){const _0x36fac5=_0x849776;var _0x472461,_0x77f06f;this['_injector'][_0x36fac5(0x155)](_0x1348cc)&&this[_0x36fac5(0x12e)][_0x36fac5(0x2bf)]('[UniverCollaborationClientPlugin]',_0x36fac5(0x2e9));let _0x53917c=_0x21ee89([[_0x1348cc,{'useClass':Qn}],[kn,{'useValue':An()}],[Mn],[Ot],[Wt],[Bn],[Kn],[Dt],[Xn],[B],[qn],[En,{'useClass':this[_0x36fac5(0x185)][_0x36fac5(0x219)]}],[_0x382477,{'useClass':Zn}],[_0x3e5c98,{'useClass':Vn}],[_0x4ac6c3,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x4d90d5,{'useClass':Yn}],[Nn],[In]],(_0x472461=this[_0x36fac5(0x185)])==null?void 0x0:_0x472461[_0x36fac5(0x197)]);if(!((_0x77f06f=this[_0x36fac5(0x185)])!=null&&_0x77f06f[_0x36fac5(0x37c)])){let _0x521187=_0x53917c[_0x36fac5(0x36a)](([_0x219b3b])=>_0x219b3b===W);_0x521187!==-0x1&&_0x53917c[_0x36fac5(0x2c5)](_0x521187,0x1);}_0x116877(this['_injector'],_0x53917c);}[_0x849776(0x3b5)](){const _0x3469ee=_0x849776;var _0x9aafe8,_0x3dcf6b;if(this[_0x3469ee(0x126)]['get'](_0x286bba)[_0x3469ee(0x308)]({'priority':0x14,'interceptor':_0x323fb8({'maxParallel':0x6})}),!((_0x9aafe8=this['_config'])!=null&&_0x9aafe8[_0x3469ee(0x1bc)])){var _0x465e6f;(_0x465e6f=this[_0x3469ee(0x126)][_0x3469ee(0x203)](U,_0x5674e5['OPTIONAL']))==null||_0x465e6f[_0x3469ee(0x166)]();}(_0x3dcf6b=this['_config'])!=null&&_0x3dcf6b[_0x3469ee(0x27d)]&&_0x3ac88d(this['_injector'],[[Bn]]),_0x3ac88d(this[_0x3469ee(0x126)],[[Kn],[Nn],[Xn]]);}};z($n,_0x849776(0x206),_0x849776(0x2ca)),z($n,_0x849776(0x18d),Pn),z($n,'version',Fn),$n=H([_0x2b9643(_0xa32b50,_0x592ffd,_0x268be8),V(0x1,_0x3dc3ee),V(0x2,_0x409c93(_0x28d4d4)),V(0x3,_0x6f8878)],$n);export{Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Nn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Vt as CollaborationSession,Mn as CollaborationSessionService,On as CollaborationSocketService,pn as CollaborationStatus,Et as CollaborationUIEventId,B as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,Dt as CommentService,X as ConflictState,pt as DEFAULT_COLLAB_WEB_SOCKET_URL,xt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,mt as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,ht as HEARTBEAT_INTERVAL_KEY,gt as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,kn as ICollaborationClientAdapterService,En as ICollaborationSocketService,U as ILocalCacheService,Cn as INetworkConditionService,W as ISingleActiveUnitService,yt as LOCAL_CACHE_INTERVAL,vt as LOCAL_CACHE_INTERVAL_KEY,Ot as MemberService,Yn as MentionIoHttpService,Z as OfflineState,Sn as PdfCollaborationEntity,q as PendingState,bt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,_t as RETRY_CONNECTING_MAX_COUNT_KEY,zt as SessionStatus,yn as SheetCollaborationEntity,Wt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Gt as UnitStatus,$n as UniverCollaborationClientPlugin,An as createUniverCollaborationAdapter,wn as deserializeToCombResponse,Ht as getLocalCacheKey,Tn as serializeCombRequest};