@univerjs-pro/collaboration-client 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +1 -1
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +39 -37
- package/lib/types/locale/es-ES.d.ts +1 -1
- package/lib/types/locale/fr-FR.d.ts +1 -1
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +1 -1
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x35f73b=_0x3c29;(function(_0x4fee7a,_0x4d4e3c){const _0x276a2a=_0x3c29,_0x3541ef=_0x4fee7a();while(!![]){try{const _0x20023e=-parseInt(_0x276a2a(0x2c5))/0x1+-parseInt(_0x276a2a(0x2b8))/0x2*(parseInt(_0x276a2a(0x302))/0x3)+-parseInt(_0x276a2a(0x1da))/0x4+-parseInt(_0x276a2a(0x252))/0x5+-parseInt(_0x276a2a(0x1e4))/0x6*(parseInt(_0x276a2a(0x2b2))/0x7)+-parseInt(_0x276a2a(0x1e5))/0x8+-parseInt(_0x276a2a(0x2c4))/0x9*(-parseInt(_0x276a2a(0x343))/0xa);if(_0x20023e===_0x4d4e3c)break;else _0x3541ef['push'](_0x3541ef['shift']());}catch(_0x219c54){_0x3541ef['push'](_0x3541ef['shift']());}}}(_0x1ebd,0x41171));import{CollaborationEvent as _0x576af5,CompressMutationService as _0x781451,EmptyMutationInfo as _0x40f6fb,ISnapshotServerService as _0x3af6ca,ITransformService as _0x348e40,RevisionService as _0x1ee4fd,SnapshotService as _0x245f1e,UniverCollaborationPlugin as _0x265883,b64DecodeUnicode as _0x1b81c6,isTransformChangesetsSuccess as _0xbb97b6,isTransformMutationsWithChangesetFailure as _0x10f13a,isTransformMutationsWithChangesetSuccess as _0x5d12cb,mapDocumentTypeToUniverInstanceType as _0x3a730c,parseChangesetToProtocol as _0x45be51,parseProtocolChangeset as _0x2dfd05,textEncoder as _0x454182,uuidv4 as _0x45b42c}from'@univerjs-pro/collaboration';import{CommandType as _0x37c8a8,DependentOn as _0x2cd6f8,Disposable as _0x1fae62,DisposableCollection as _0xd013fe,IAuthzIoService as _0x780d41,ICommandService as _0x5c3744,IConfigService as _0x160dc0,IContextService as _0x4e7340,ILogService as _0x3594cb,IMentionIOService as _0x21f72d,IPermissionService as _0x5043f7,IUndoRedoService as _0x257c3e,IUniverInstanceService as _0x599079,Inject as _0x1b23c9,Injector as _0x2b692d,JSONX as _0xad6fae,LocalUndoRedoService as _0x4f956f,LocaleService as _0x2c19d0,MentionType as _0x916f82,Optional as _0xbefc86,Plugin as _0x176987,Quantity as _0x430b4f,Rectangle as _0x2f007b,RxDisposable as _0x495984,Tools as _0x2b0f98,UniverInstanceType as _0x57ec00,UserManagerService as _0x92e170,Workbook as _0x3c3bb3,createIdentifier as _0x10bb42,generateRandomId as _0x4d6784,isInternalEditorID as _0x1c6cb4,merge as _0x2418a6,mergeOverrideWithDependencies as _0x5779fb,registerDependencies as _0xc377a3,resolveWithBasePath as _0x2da96f,sequenceExecute as _0x5354a2,toDisposable as _0x2f6814,touchDependencies as _0x40f1c9}from'@univerjs/core';import{RichTextEditingMutation as _0x2fd593}from'@univerjs/docs';import{InsertSheetMutation as _0x56438c,SetSelectionsOperation as _0x4720d5,SheetPermissionInitController as _0x21cc4b,SheetsSelectionsService as _0x3084b1,WorkbookEditablePermission as _0x170956}from'@univerjs/sheets';import{BehaviorSubject as _0x10ace7,ReplaySubject as _0x18ff2b,Subject as _0x34cf84,concatMap as _0x1f0de5,firstValueFrom as _0x5e846a,map as _0x1a3ff1,merge as _0x34bad6,of as _0x58d9e6,shareReplay as _0x39cccb,take as _0x2bd5fd,takeUntil as _0x1aedcb}from'rxjs';import{CmdRspCode as _0x2989c5,CombCmd as _0x2e4f4e,ErrorCode as _0x46125a,FileSource as _0x502b83}from'@univerjs/protocol';import{ITelemetryService as _0x6d340d}from'@univerjs/telemetry';import{delay as _0x46e5c3,filter as _0xb3f571,map as _0xcf55,take as _0x67a39f,takeUntil as _0x20cb1c}from'rxjs/operators';import{HTTPRequest as _0x4dfcec,HTTPService as _0x470bb9,ISocketService as _0x19825e,MergeInterceptorFactory as _0x3b3b49,ThresholdInterceptorFactory as _0x4f6907,UniverNetworkPlugin as _0x12c5ff}from'@univerjs/network';import{UniverLicensePlugin as _0x9c60d5,getGlobalObject as _0x109aa2}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0xd6fb97,IImageIoService as _0x14e824,ImageSourceType as _0x5edd85,ImageUploadStatusType as _0x4daaae,getDrawingImageAllowSize as _0x3912d7}from'@univerjs/drawing';import{cbc as _0x3b69ce}from'@noble/ciphers/aes.js';import{concatBytes as _0x58e6cb,randomBytes as _0xeff5b7,utf8ToBytes as _0x18a346}from'@noble/ciphers/utils.js';const ut=_0x35f73b(0x345),dt=_0x35f73b(0x2d7),ft=_0x35f73b(0x249),pt=_0x35f73b(0x376),mt=0x4e20,ht='RETRY_CONNECTING_MAX_COUNT',gt=_0x35f73b(0x2f0),_t=0x3e8,vt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',yt=_0x35f73b(0x3be);function bt(_0x27c4bc){const _0x4c787e=_0x35f73b;return JSON[_0x4c787e(0x284)](_0x27c4bc)[_0x4c787e(0x37b)];}function F(_0x123409){'@babel/helpers - typeof';const _0x2dca68=_0x35f73b;return F=typeof Symbol=='function'&&typeof Symbol[_0x2dca68(0x2bb)]=='symbol'?function(_0x38914d){return typeof _0x38914d;}:function(_0x5ce83f){const _0x5005ab=_0x2dca68;return _0x5ce83f&&typeof Symbol==_0x5005ab(0x22d)&&_0x5ce83f['constructor']===Symbol&&_0x5ce83f!==Symbol['prototype']?'symbol':typeof _0x5ce83f;},F(_0x123409);}function xt(_0x193aa5,_0x3915f8){const _0x1d4924=_0x35f73b;if(F(_0x193aa5)!=_0x1d4924(0x298)||!_0x193aa5)return _0x193aa5;var _0x13fada=_0x193aa5[Symbol[_0x1d4924(0x26c)]];if(_0x13fada!==void 0x0){var _0x198437=_0x13fada[_0x1d4924(0x31a)](_0x193aa5,_0x3915f8||_0x1d4924(0x39f));if(F(_0x198437)!='object')return _0x198437;throw TypeError(_0x1d4924(0x1a5));}return(_0x3915f8===_0x1d4924(0x25c)?String:Number)(_0x193aa5);}function St(_0x3857be){const _0x18e474=_0x35f73b;var _0x3649c3=xt(_0x3857be,_0x18e474(0x25c));return F(_0x3649c3)==_0x18e474(0x1ba)?_0x3649c3:_0x3649c3+'';}function I(_0x81e476,_0x462898,_0x10540f){const _0x47a700=_0x35f73b;return(_0x462898=St(_0x462898))in _0x81e476?Object[_0x47a700(0x198)](_0x81e476,_0x462898,{'value':_0x10540f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x81e476[_0x462898]=_0x10540f,_0x81e476;}let Ct=function(_0x1d6a9a){const _0x34ccbb=_0x35f73b;return _0x1d6a9a[_0x34ccbb(0x37c)]=_0x34ccbb(0x37c),_0x1d6a9a[_0x34ccbb(0x39a)]='PERMISSION_DENIED',_0x1d6a9a[_0x34ccbb(0x2a4)]=_0x34ccbb(0x2a4),_0x1d6a9a[_0x34ccbb(0x204)]=_0x34ccbb(0x204),_0x1d6a9a['JOIN_ROOM_FAILED']=_0x34ccbb(0x34c),_0x1d6a9a[_0x34ccbb(0x26f)]=_0x34ccbb(0x26f),_0x1d6a9a[_0x34ccbb(0x355)]=_0x34ccbb(0x355),_0x1d6a9a[_0x34ccbb(0x2ee)]='SUBMIT_CHANGESET_TIMEOUT',_0x1d6a9a;}({});var L=class{constructor(){const _0x5d19c2=_0x35f73b;I(this,'_event$',new _0x34cf84()),I(this,_0x5d19c2(0x39e),this[_0x5d19c2(0x28a)][_0x5d19c2(0x3ac)]());}[_0x35f73b(0x374)](_0x3307cf){const _0x42539d=_0x35f73b;this[_0x42539d(0x28a)][_0x42539d(0x3f6)](_0x3307cf);}},wt=class{constructor(){const _0xb76e46=_0x35f73b;I(this,_0xb76e46(0x2d5),new _0x34cf84()),I(this,_0xb76e46(0x1ed),this[_0xb76e46(0x2d5)][_0xb76e46(0x3ac)]());}[_0x35f73b(0x3e1)](_0x36a9b9){const _0x2a6b84=_0x35f73b;this[_0x2a6b84(0x2d5)][_0x2a6b84(0x3f6)](_0x36a9b9);}};function R(_0x4b5594,_0x487511){return function(_0x376712,_0x54f99d){_0x487511(_0x376712,_0x54f99d,_0x4b5594);};}function z(_0x2f6622,_0x2cdfcb,_0x4e6e01,_0x3c60d4){const _0x21f3bf=_0x35f73b;var _0x1b466f=arguments[_0x21f3bf(0x37b)],_0xd8a463=_0x1b466f<0x3?_0x2cdfcb:_0x3c60d4===null?_0x3c60d4=Object[_0x21f3bf(0x33f)](_0x2cdfcb,_0x4e6e01):_0x3c60d4,_0x35d0b0;if(typeof Reflect==_0x21f3bf(0x298)&&typeof Reflect[_0x21f3bf(0x375)]==_0x21f3bf(0x22d))_0xd8a463=Reflect['decorate'](_0x2f6622,_0x2cdfcb,_0x4e6e01,_0x3c60d4);else{for(var _0x2367e5=_0x2f6622['length']-0x1;_0x2367e5>=0x0;_0x2367e5--)(_0x35d0b0=_0x2f6622[_0x2367e5])&&(_0xd8a463=(_0x1b466f<0x3?_0x35d0b0(_0xd8a463):_0x1b466f>0x3?_0x35d0b0(_0x2cdfcb,_0x4e6e01,_0xd8a463):_0x35d0b0(_0x2cdfcb,_0x4e6e01))||_0xd8a463);}return _0x1b466f>0x3&&_0xd8a463&&Object['defineProperty'](_0x2cdfcb,_0x4e6e01,_0xd8a463),_0xd8a463;}let B=class extends _0x1fae62{constructor(_0x3e1b2c,_0x1ebdfe){const _0x403a97=_0x35f73b;super(),this[_0x403a97(0x2db)]=_0x3e1b2c,this[_0x403a97(0x2e0)]=_0x1ebdfe,I(this,_0x403a97(0x36d),new Map()),I(this,_0x403a97(0x271),new _0x34cf84()),this[_0x403a97(0x2fa)](_0x34bad6(this[_0x403a97(0x2db)][_0x403a97(0x25d)](_0x57ec00[_0x403a97(0x3b1)])[_0x403a97(0x289)](_0xcf55(_0x4b04a8=>_0x4b04a8[_0x403a97(0x1b9)]())),this[_0x403a97(0x2db)]['getTypeOfUnitDisposed$'](_0x57ec00['UNIVER_DOC'])[_0x403a97(0x289)](_0xcf55(_0x484bd6=>_0x484bd6[_0x403a97(0x1b9)]())))['subscribe'](_0x268fbf=>this[_0x403a97(0x1e3)](_0x268fbf)));}[_0x35f73b(0x37a)](_0x186c3a){const _0x1ca07f=_0x35f73b;return this[_0x1ca07f(0x36d)][_0x1ca07f(0x1bc)](_0x186c3a)?_0x58d9e6(this[_0x1ca07f(0x36d)][_0x1ca07f(0x2a9)](_0x186c3a)):this[_0x1ca07f(0x271)][_0x1ca07f(0x289)](_0xcf55(_0x81ea0f=>{const _0x57a0f1=_0x1ca07f;if(_0x81ea0f===_0x186c3a)return this[_0x57a0f1(0x36d)][_0x57a0f1(0x2a9)](_0x81ea0f);}));}[_0x35f73b(0x2cf)](_0x3fc335){const _0x3f176a=_0x35f73b;this['_userManagerService'][_0x3f176a(0x2cf)](_0x3fc335);}['getCurrentUser'](){const _0xfc5d2f=_0x35f73b;return this[_0xfc5d2f(0x2e0)][_0xfc5d2f(0x24b)]();}[_0x35f73b(0x1c8)](_0x23f3ad,_0x24dec1){const _0x287def=_0x35f73b;let _0xb5a2bf=this['_roomMembers'][_0x287def(0x2a9)](_0x23f3ad);_0xb5a2bf||(_0xb5a2bf=new Tt(),this[_0x287def(0x36d)][_0x287def(0x2d4)](_0x23f3ad,_0xb5a2bf),this[_0x287def(0x271)][_0x287def(0x3f6)](_0x23f3ad)),_0xb5a2bf[_0x287def(0x1c8)](_0x24dec1);}['removeMember'](_0x38f0c6,_0x4af0b5){const _0x1d1966=_0x35f73b;let _0x143ebf=this[_0x1d1966(0x36d)][_0x1d1966(0x2a9)](_0x38f0c6);_0x143ebf&&_0x143ebf['removeMember'](_0x4af0b5);}['getRoom'](_0x2b95ec){const _0x304e2d=_0x35f73b;return this[_0x304e2d(0x36d)][_0x304e2d(0x2a9)](_0x2b95ec);}[_0x35f73b(0x35a)](_0x37928f,_0x4760aa){const _0x2cefba=_0x35f73b;let _0x52183c=this[_0x2cefba(0x36d)][_0x2cefba(0x2a9)](_0x37928f);if(_0x52183c)return _0x52183c[_0x2cefba(0x35a)](_0x4760aa);}[_0x35f73b(0x1e3)](_0x35fd44){const _0x35f325=_0x35f73b;let _0x498048=this[_0x35f325(0x36d)][_0x35f325(0x2a9)](_0x35fd44);_0x498048&&(_0x498048[_0x35f325(0x303)](),this[_0x35f325(0x36d)]['delete'](_0x35fd44));}[_0x35f73b(0x303)](){const _0x326df5=_0x35f73b;this[_0x326df5(0x36d)][_0x326df5(0x2c9)](_0x14e03c=>_0x14e03c[_0x326df5(0x303)]()),this[_0x326df5(0x36d)][_0x326df5(0x202)](),this[_0x326df5(0x271)][_0x326df5(0x25f)]();}};B=z([R(0x0,_0x599079),R(0x1,_0x1b23c9(_0x92e170))],B);var Tt=class extends _0x1fae62{constructor(..._0x38b535){const _0x37735c=_0x35f73b;super(..._0x38b535),I(this,_0x37735c(0x244),new Map()),I(this,_0x37735c(0x38d),new _0x10ace7(this['_members'])),I(this,_0x37735c(0x2da),this[_0x37735c(0x38d)][_0x37735c(0x3ac)]());}[_0x35f73b(0x303)](){const _0x2a7896=_0x35f73b;this[_0x2a7896(0x244)][_0x2a7896(0x202)](),this['_members$'][_0x2a7896(0x25f)]();}['updateMember'](_0x4302d7){const _0xc66521=_0x35f73b;this[_0xc66521(0x244)][_0xc66521(0x2d4)](_0x4302d7[_0xc66521(0x232)],_0x4302d7),this[_0xc66521(0x1cc)]();}[_0x35f73b(0x365)](_0x37c09f){const _0x576976=_0x35f73b;this[_0x576976(0x244)][_0x576976(0x38c)](_0x37c09f),this[_0x576976(0x1cc)]();}[_0x35f73b(0x35a)](_0x13c3fa){const _0x514ec4=_0x35f73b;return this[_0x514ec4(0x244)][_0x514ec4(0x2a9)](_0x13c3fa);}[_0x35f73b(0x39b)](){const _0x2af188=_0x35f73b;return Array['from'](this[_0x2af188(0x244)][_0x2af188(0x1d6)]());}[_0x35f73b(0x1cc)](){const _0x5178c4=_0x35f73b;this[_0x5178c4(0x38d)][_0x5178c4(0x3f6)](this[_0x5178c4(0x244)]);}};let Et=function(_0x1e5d6c){const _0x3f4d48=_0x35f73b;return _0x1e5d6c[_0x1e5d6c['IDLE']=0x0]=_0x3f4d48(0x2c7),_0x1e5d6c[_0x1e5d6c[_0x3f4d48(0x1ae)]=0x1]='JOINING',_0x1e5d6c[_0x1e5d6c[_0x3f4d48(0x30a)]=0x2]='OFFLINE',_0x1e5d6c[_0x1e5d6c[_0x3f4d48(0x251)]=0x3]=_0x3f4d48(0x251),_0x1e5d6c;}({});const Dt={[_0x2989c5[_0x35f73b(0x3a1)]]:_0x35f73b(0x3f3),[_0x2989c5[_0x35f73b(0x1c4)]]:_0x35f73b(0x308),[_0x2989c5['JOIN_ROOM_NOT_EXISTS']]:_0x35f73b(0x22f),[_0x2989c5['JOIN_ROOM_PERMISSION_DENIED']]:_0x35f73b(0x35e),[_0x2989c5['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x35f73b(0x3bc)};let Ot=class extends _0x495984{get[_0x35f73b(0x3bd)](){const _0x4be9c3=_0x35f73b;return this['_sessionStatus$'][_0x4be9c3(0x1b1)]();}constructor(_0x23d8bf,_0x193fb6,_0x1d662a,_0xee6f85,_0x11d365,_0x580424,_0x36aeb2,_0x1001fb){const _0x172cd0=_0x35f73b;super(),this[_0x172cd0(0x347)]=_0x23d8bf,this['_logService']=_0x1d662a,this[_0x172cd0(0x21c)]=_0xee6f85,this[_0x172cd0(0x2fc)]=_0x11d365,this[_0x172cd0(0x1e1)]=_0x580424,this['_collaborationUIEventService']=_0x36aeb2,this[_0x172cd0(0x301)]=_0x1001fb,I(this,_0x172cd0(0x2a3),new _0x10ace7(0x0)),I(this,_0x172cd0(0x217),this[_0x172cd0(0x2a3)]['asObservable']()),I(this,_0x172cd0(0x28a),new _0x34cf84()),I(this,'event$',this[_0x172cd0(0x28a)][_0x172cd0(0x3ac)]()),I(this,'_socket',void 0x0),I(this,_0x172cd0(0x277),void 0x0),I(this,_0x172cd0(0x1fc),void 0x0),I(this,_0x172cd0(0x245),!0x1),I(this,_0x172cd0(0x369),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x193fb6[_0x172cd0(0x289)](_0x1aedcb(this[_0x172cd0(0x3f7)]))[_0x172cd0(0x1f4)](_0x5bc443=>{const _0x405aca=_0x172cd0;if(_0x5bc443!==void 0x0){if(this[_0x405aca(0x1ca)]=_0x5bc443,_0x5bc443)this['_joinRoom'](_0x5bc443),this[_0x405aca(0x277)]=_0x5bc443[_0x405aca(0x1a8)]['subscribe'](_0x6b9009=>{const _0x564e5f=_0x405aca;_0x6b9009[_0x564e5f(0x25a)]===this['_unitID']&&this[_0x564e5f(0x362)](_0x6b9009);});else{var _0x34797c;this[_0x405aca(0x297)](),this['_sessionStatus$']['next'](0x2),(_0x34797c=this[_0x405aca(0x277)])==null||_0x34797c['unsubscribe'](),this[_0x405aca(0x277)]=null;}}});}[_0x35f73b(0x3b9)](){const _0x195f4e=_0x35f73b;var _0x5c2926,_0x3749c1;return(_0x5c2926=(_0x3749c1=this['_socket'])==null?void 0x0:_0x3749c1[_0x195f4e(0x232)])==null?null:_0x5c2926;}[_0x35f73b(0x303)](){const _0x4d13e1=_0x35f73b;super[_0x4d13e1(0x303)](),this[_0x4d13e1(0x383)](),this[_0x4d13e1(0x3f7)][_0x4d13e1(0x3f6)](),this[_0x4d13e1(0x3f7)]['complete']();}['close'](){const _0x551a83=_0x35f73b;var _0x3ad3cb,_0x3d277a;this[_0x551a83(0x297)](),(_0x3ad3cb=this[_0x551a83(0x1ca)])==null||_0x3ad3cb[_0x551a83(0x2a0)]({'cmd':_0x2e4f4e[_0x551a83(0x38b)],'data':{'roomID':this[_0x551a83(0x347)]}}),(_0x3d277a=this[_0x551a83(0x1ca)])==null||_0x3d277a[_0x551a83(0x383)](),this['_event$']['complete'](),this[_0x551a83(0x2a3)][_0x551a83(0x25f)]();}[_0x35f73b(0x362)](_0x40238e){const _0x15a02d=_0x35f73b;_0x40238e['cmd']===_0x2e4f4e[_0x15a02d(0x2f8)]?this[_0x15a02d(0x300)](_0x40238e):_0x40238e['cmd']===_0x2e4f4e[_0x15a02d(0x20e)]&&this[_0x15a02d(0x2ac)](_0x40238e);}[_0x35f73b(0x35c)](_0x27112c){const _0x2b9ae4=_0x35f73b;this[_0x2b9ae4(0x2a3)][_0x2b9ae4(0x3f6)](0x1),_0x27112c['send']({'cmd':_0x2e4f4e[_0x2b9ae4(0x2f8)],'routeKey':this[_0x2b9ae4(0x347)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2b9ae4(0x347)]}]}});}[_0x35f73b(0x300)](_0x12eb8c){const _0x3dcdde=_0x35f73b;var _0x3977b6;if(_0x12eb8c[_0x3dcdde(0x2a5)]in Dt){this[_0x3dcdde(0x2bf)][_0x3dcdde(0x374)]({'id':_0x3dcdde(0x34c),'data':Dt[_0x12eb8c['code']]}),this[_0x3dcdde(0x2a3)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x4e61af=(_0x3977b6=_0x12eb8c[_0x3dcdde(0x3fe)][_0x3dcdde(0x210)][this[_0x3dcdde(0x347)]])==null?void 0x0:_0x3977b6[_0x3dcdde(0x27f)];_0x4e61af&&_0x4e61af['forEach'](_0x27ef44=>this[_0x3dcdde(0x2fc)][_0x3dcdde(0x1c8)](this['_unitID'],_0x27ef44));}['_onRecvEvent'](_0x4b969b){const _0x102e0f=_0x35f73b;try{let _0x46bfae=_0x4b969b['data'];switch(_0x46bfae[_0x102e0f(0x263)]){case _0x576af5['USERS_ENTER']:this[_0x102e0f(0x3f1)](_0x46bfae),this[_0x102e0f(0x28a)]['next'](_0x46bfae);break;case _0x576af5[_0x102e0f(0x356)]:this[_0x102e0f(0x3c3)](_0x46bfae),this[_0x102e0f(0x28a)][_0x102e0f(0x3f6)](_0x46bfae);break;case _0x576af5[_0x102e0f(0x3d5)]:case _0x576af5[_0x102e0f(0x2c1)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x102e0f(0x269)](),this[_0x102e0f(0x28a)]['next'](_0x46bfae);break;case _0x576af5['MSG_FOR_ERROR']:this['_logService'][_0x102e0f(0x3ba)](_0x102e0f(0x235)+JSON['stringify'](_0x46bfae)),this['_event$'][_0x102e0f(0x3f6)](_0x46bfae);break;case _0x576af5[_0x102e0f(0x1c2)]:this[_0x102e0f(0x1e1)]['onCommentUpdate'](_0x46bfae[_0x102e0f(0x3fe)]),this[_0x102e0f(0x28a)][_0x102e0f(0x3f6)](_0x46bfae);break;default:this[_0x102e0f(0x28a)]['next'](_0x46bfae);}}catch(_0x490f24){this['_logService'][_0x102e0f(0x3ba)](_0x490f24,_0x4b969b);}}[_0x35f73b(0x3f1)](_0x1f006e){const _0x26dc68=_0x35f73b;this[_0x26dc68(0x2fc)][_0x26dc68(0x1c8)](this['_unitID'],_0x1f006e[_0x26dc68(0x3fe)]);}[_0x35f73b(0x3c3)](_0x4cfb87){const _0x391d36=_0x35f73b;this[_0x391d36(0x2fc)][_0x391d36(0x365)](this['_unitID'],_0x4cfb87[_0x391d36(0x3fe)][_0x391d36(0x232)]);}async[_0x35f73b(0x2a0)](_0x55d9ed,_0x3f7c51){const _0x29f92d=_0x35f73b;if(this[_0x29f92d(0x3bd)]!==0x3||!this['_socket'])throw Error(_0x29f92d(0x29e));try{_0x55d9ed[_0x29f92d(0x263)]===_0x576af5['SUBMIT_CHANGESET']&&(this[_0x29f92d(0x3ce)](),this[_0x29f92d(0x207)](_0x55d9ed)),this[_0x29f92d(0x1ca)][_0x29f92d(0x2a0)]({'cmd':_0x2e4f4e['INGEST'],'routeKey':_0x3f7c51,'routeType':'','data':_0x55d9ed});}catch(_0x2eb0e0){this[_0x29f92d(0x3f8)][_0x29f92d(0x3ba)](_0x2eb0e0);}}[_0x35f73b(0x3ce)](){const _0x1e0cc9=_0x35f73b;var _0x4c01c2;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x31f911=_0x3c29;this[_0x31f911(0x1fc)]=null,this[_0x31f911(0x2bf)][_0x31f911(0x374)]({'id':_0x31f911(0x2ee)});},(_0x4c01c2=this['_configService'][_0x1e0cc9(0x2fb)](_0x1e0cc9(0x376)))==null?mt:_0x4c01c2);}['_clearCollaborationTimeoutTimer'](){const _0x2e5f48=_0x35f73b;this[_0x2e5f48(0x1fc)]&&(clearTimeout(this[_0x2e5f48(0x1fc)]),this[_0x2e5f48(0x1fc)]=null);}[_0x35f73b(0x207)](_0xcd4e1b){const _0x2aa1f9=_0x35f73b;if(!this[_0x2aa1f9(0x245)])return;let {data:_0x37c3a5}=_0xcd4e1b,{unitID:_0x22e96e,changeset:_0x46cb42}=_0x37c3a5,{mutations:_0xd9c6f8,type:_0x176371}=_0x46cb42;this[_0x2aa1f9(0x369)]={'unitId':_0x22e96e,'type':_0x176371,'startTime':performance[_0x2aa1f9(0x3f4)](),'stopTime':0x0,'duration':0x0,'size':bt(_0xd9c6f8)};}[_0x35f73b(0x1d0)](){const _0x188abb=_0x35f73b;if(this['_shouldReportTelemetry']){if(!this[_0x188abb(0x369)]){this[_0x188abb(0x3f8)][_0x188abb(0x3ba)]('[CollaborationSession]',_0x188abb(0x35b));return;}this[_0x188abb(0x369)][_0x188abb(0x385)]=performance[_0x188abb(0x3f4)](),this[_0x188abb(0x369)]['duration']=this[_0x188abb(0x369)][_0x188abb(0x385)]-this[_0x188abb(0x369)][_0x188abb(0x216)],this['_telemetryService'][_0x188abb(0x23a)](_0x188abb(0x22c),this[_0x188abb(0x369)]),this[_0x188abb(0x369)]=null;}}[_0x35f73b(0x297)](){const _0x2fff9d=_0x35f73b;this[_0x2fff9d(0x369)]=null;}};Ot=z([R(0x2,_0x3594cb),R(0x3,_0x160dc0),R(0x4,_0x1b23c9(B)),R(0x5,_0x1b23c9(wt)),R(0x6,_0x1b23c9(L)),R(0x7,_0xbefc86(_0x6d340d))],Ot);const V=_0x10bb42(_0x35f73b(0x30b));function kt(_0x3ab130){return'unit-cache-'+_0x3ab130;}function At(_0x2b1b2c){const _0x2efa6b=_0x35f73b;let {unitID:_0x16048d,mutations:_0x171ceb}=_0x2b1b2c;return{'unitId':_0x16048d,'subUnitId':_0x171ceb['length']>0x0?_0x171ceb[0x0][_0x2efa6b(0x3fc)][_0x2efa6b(0x28b)]:null};}let H=class{constructor(_0x20f8d1,_0x43b9c3,_0x582a1f){const _0x16fbe0=_0x35f73b;this[_0x16fbe0(0x1c1)]=_0x20f8d1,this['_transformService']=_0x43b9c3,this[_0x16fbe0(0x19b)]=_0x582a1f;}['transformSelections'](_0x3aed79){const _0x12d91d=_0x35f73b;var _0x1742f8,_0x39ee85;let _0x4f9280=this['_injector'][_0x12d91d(0x2a9)](_0x3084b1),{unitId:_0x55cb78,subUnitId:_0x1f31b2}=At(_0x3aed79),_0x1e9b99=_0x4f9280==null?void 0x0:_0x4f9280['getWorkbookSelections'](_0x55cb78)['getCurrentSelections'](),_0x24764b=(_0x1742f8=this[_0x12d91d(0x19b)]['getUnit'](_0x55cb78))==null||(_0x1742f8=_0x1742f8['getActiveSheet']())==null?void 0x0:_0x1742f8[_0x12d91d(0x3d1)]();if(_0x1e9b99[_0x12d91d(0x37b)]===0x0||!_0x55cb78||!_0x1f31b2)return;let _0x466106=[{'id':_0x4720d5['id'],'params':{'unitId':_0x55cb78,'subUnitId':_0x24764b,'selections':_0x2b0f98[_0x12d91d(0x3ee)](_0x1e9b99)}}],_0xe97872=this[_0x12d91d(0x3c2)][_0x12d91d(0x1e7)](_0x3aed79,_0x466106);if(!_0x5d12cb(_0xe97872))throw _0xe97872[_0x12d91d(0x3ba)];let _0x2c14ae=(_0x39ee85=_0xe97872[_0x12d91d(0x2e6)][0x0])==null||(_0x39ee85=_0x39ee85['params'])==null?void 0x0:_0x39ee85['selections'];if(Array[_0x12d91d(0x1be)](_0x2c14ae)&&_0x2c14ae['length']){if(_0x2c14ae[_0x12d91d(0x37b)]===_0x466106[0x0]['params']['selections'][_0x12d91d(0x37b)]&&_0x2c14ae['every']((_0x622deb,_0xeff5fe)=>_0x2f007b['equals'](_0x622deb[_0x12d91d(0x34b)],_0x466106[0x0][_0x12d91d(0x3fc)][_0x12d91d(0x1c3)][_0xeff5fe][_0x12d91d(0x34b)])))return;this[_0x12d91d(0x1c1)]['get'](_0x5c3744)[_0x12d91d(0x2ab)](_0x4720d5['id'],{'unitId':_0x55cb78,'subUnitId':_0x24764b,'selections':_0x2c14ae});}}};H=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x348e40),R(0x2,_0x599079)],H);const jt=_0x10bb42(_0x35f73b(0x1d3));let Mt=function(_0x42a7d0){const _0x1af849=_0x35f73b;return _0x42a7d0[_0x42a7d0[_0x1af849(0x324)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x42a7d0[_0x42a7d0[_0x1af849(0x200)]=0x1]='OTHER_CLIENTS_EDITING',_0x42a7d0;}({});const U=_0x35f73b(0x2dc);Symbol(U);const Nt={};function Pt(_0x1fbb41){const _0x536e38=_0x35f73b;var _0x448db8;return!!((_0x448db8=_0x1fbb41[_0x536e38(0x3fc)])!=null&&_0x448db8[_0x536e38(0x26d)]);}const Ft=new Set([_0x56438c['id']]);function It(_0x268a57,_0x526cf1,_0x203dc5,_0x4ab0ab,_0x563638){const _0x122719=_0x35f73b;var _0x5cc989,_0x536f84,_0x3b1541,_0x233419;let _0x5c0470=[];for(let _0x3b4a2d of _0x268a57){if(Ft['has'](_0x3b4a2d['id'])){if(_0x5c0470[_0x122719(0x37b)]>0x0)break;_0x5c0470[_0x122719(0x380)](_0x3b4a2d);break;}if(Pt(_0x3b4a2d)){if(_0x5c0470[_0x122719(0x37b)]>0x0)break;_0x5c0470[_0x122719(0x380)](_0x3b4a2d);break;}_0x5c0470[_0x122719(0x380)](_0x3b4a2d);}let _0x4dcde9=(_0x5cc989=(_0x536f84=_0x563638[_0x122719(0x24b)]())==null?void 0x0:_0x536f84[_0x122719(0x1b4)])==null?_0x122719(0x2f1):_0x5cc989,_0x5caf34=(_0x3b1541=(_0x233419=_0x563638[_0x122719(0x24b)]())==null?void 0x0:_0x233419[_0x122719(0x232)])==null?_0x122719(0x2f1):_0x3b1541;return{'changeset':{'unitID':_0x526cf1,'type':_0x3a730c(_0x203dc5['getUnitType'](_0x526cf1)),'baseRev':_0x4ab0ab[_0x122719(0x21d)](_0x526cf1),'revision':0x0,'userID':_0x4dcde9,'memberID':_0x5caf34,'mutations':_0x5c0470},'pendingMutations':_0x268a57[_0x122719(0x3a5)](_0x5c0470[_0x122719(0x37b)])};}function Lt(_0x1bb246,_0x3fb1fd,_0x1ae9ee,_0x4d630e,_0x724908){const _0x3a1301=_0x35f73b;var _0x5187e7,_0x547aa2,_0x515607,_0x38417f;let _0x17fd49=[_0x1bb246[_0x3a1301(0x2fe)]((_0x5cb904,_0x47b93d)=>{const _0x4cfe=_0x3a1301;var _0x548aff;let {id:_0x4747b0}=_0x5cb904,{id:_0x3b6634,type:_0xa68cc5}=_0x47b93d,_0x17ee1a=(_0x548aff=_0x5cb904[_0x4cfe(0x3fc)])==null?{'actions':null}:_0x548aff,_0x337ede=_0x47b93d[_0x4cfe(0x3fc)];if(_0x4747b0&&_0x4747b0!==_0x3b6634)throw Error(_0x4cfe(0x38e)+_0x4747b0+_0x4cfe(0x274)+_0x3b6634+'.');return{..._0x5cb904,'id':_0x3b6634,'type':_0xa68cc5,'params':{'unitId':_0x337ede[_0x4cfe(0x333)],'textRanges':_0x337ede[_0x4cfe(0x3b0)],'actions':_0xad6fae[_0x4cfe(0x1bb)](_0x17ee1a[_0x4cfe(0x1a6)],_0x337ede[_0x4cfe(0x1a6)])}};},{})],_0x5d0635=(_0x5187e7=(_0x547aa2=_0x724908[_0x3a1301(0x24b)]())==null?void 0x0:_0x547aa2[_0x3a1301(0x1b4)])==null?'unknown':_0x5187e7,_0x343374=(_0x515607=(_0x38417f=_0x724908['getCurrentUser']())==null?void 0x0:_0x38417f['memberID'])==null?'unknown':_0x515607;return{'changeset':{'unitID':_0x3fb1fd,'type':_0x3a730c(_0x1ae9ee['getUnitType'](_0x3fb1fd)),'baseRev':_0x4d630e[_0x3a1301(0x21d)](_0x3fb1fd),'revision':0x0,'userID':_0x5d0635,'memberID':_0x343374,'mutations':_0x17fd49},'pendingMutations':[]};}function Rt(_0x2c5248,_0x4a6fda){const _0x2b7e60=_0x35f73b;let _0x5a22ab=new _0x18ff2b(0x1);return setTimeout(()=>_0x5a22ab[_0x2b7e60(0x3f6)](_0x4a6fda),_0x2c5248),_0x5a22ab[_0x2b7e60(0x3ac)]()[_0x2b7e60(0x289)](_0x2bd5fd(0x1));}var zt,Bt,Vt;let Ht=function(_0x550747){const _0x54a386=_0x35f73b;return _0x550747[_0x54a386(0x389)]=_0x54a386(0x2cd),_0x550747['SYNCED']=_0x54a386(0x341),_0x550747[_0x54a386(0x3a3)]=_0x54a386(0x1fd),_0x550747[_0x54a386(0x384)]=_0x54a386(0x193),_0x550747[_0x54a386(0x1fe)]='awaiting_with_pending',_0x550747[_0x54a386(0x24e)]='fetch_missing',_0x550747[_0x54a386(0x2a4)]='conflict',_0x550747[_0x54a386(0x30a)]=_0x54a386(0x2e1),_0x550747;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x415d20,_0x5ce03f,_0x407c82,_0x5f5e95,_0x539247,_0x124c6f,_0x2c2d97,_0x9372af,_0x416b28){const _0x59271c=_0x35f73b;this[_0x59271c(0x285)]=_0x415d20,this[_0x59271c(0x2ec)]=_0x5ce03f,this[_0x59271c(0x367)]=_0x539247,this[_0x59271c(0x234)]=_0x124c6f,this[_0x59271c(0x2b3)]=_0x2c2d97,this[_0x59271c(0x366)]=_0x9372af,this['_localCacheService']=_0x416b28,I(this,_0x59271c(0x2e4),null),I(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x407c82,this[_0x59271c(0x393)]=_0x5f5e95;}[_0x35f73b(0x2c3)](_0x20dd6e){const _0x6e4c7f=_0x35f73b;let _0x2a8e72=this[_0x6e4c7f(0x366)][_0x6e4c7f(0x21d)](this[_0x6e4c7f(0x285)]);return _0x20dd6e[_0x6e4c7f(0x319)]>_0x2a8e72+0x1?(this[_0x6e4c7f(0x367)][_0x6e4c7f(0x259)]({'from':_0x2a8e72,'to':_0x20dd6e[_0x6e4c7f(0x319)]-0x1}),!0x0):!0x1;}[_0x35f73b(0x3a9)](_0x4f79d7){const _0x55ec97=_0x35f73b;this[_0x55ec97(0x2b3)][_0x55ec97(0x3cf)](this[_0x55ec97(0x285)],_0x4f79d7);}['_transformSelections'](_0x4c1e4b){const _0x5b4307=_0x35f73b;var _0x3bc38e,_0x2e9929;(_0x3bc38e=(_0x2e9929=this[_0x5b4307(0x367)])[_0x5b4307(0x3e9)])==null||_0x3bc38e[_0x5b4307(0x31a)](_0x2e9929,_0x4c1e4b);}['_transformIMECache'](_0x56290d){const _0x2224ad=_0x35f73b;var _0x540050,_0x50ec10;return(_0x540050=(_0x50ec10=this[_0x2224ad(0x367)])[_0x2224ad(0x1dc)])==null?void 0x0:_0x540050[_0x2224ad(0x31a)](_0x50ec10,_0x56290d);}[_0x35f73b(0x1a3)](_0x833235){const _0x15be6c=_0x35f73b;var _0x3631b8,_0x4ccdf4;return(_0x3631b8=(_0x4ccdf4=this[_0x15be6c(0x367)])[_0x15be6c(0x25e)])==null?void 0x0:_0x3631b8[_0x15be6c(0x31a)](_0x4ccdf4,_0x833235);}[_0x35f73b(0x1a1)](_0x361b71){const _0x29e596=_0x35f73b;var _0x3430d5,_0x1a71da,_0x1284c0;return(_0x3430d5=(_0x1a71da=(_0x1284c0=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1a71da[_0x29e596(0x31a)](_0x1284c0,_0x361b71))==null?_0x361b71:_0x3430d5;}[_0x35f73b(0x3de)](_0x385360){const _0x3f4f61=_0x35f73b;var _0x11c2f8,_0x475660,_0x1bc551;return(_0x11c2f8=(_0x475660=(_0x1bc551=this['_handler'])[_0x3f4f61(0x2d0)])==null?void 0x0:_0x475660['call'](_0x1bc551,_0x385360))==null?_0x385360:_0x11c2f8;}[_0x35f73b(0x3da)](_0x2f91ba){const _0x53209b=_0x35f73b;if(this[_0x53209b(0x2ec)]===_0x57ec00[_0x53209b(0x32a)]){let {unitID:_0x10e66e,mutations:_0x34df9d,memberID:_0x182245}=_0x2f91ba,_0x5c06af=_0x34df9d[_0x53209b(0x37b)]>0x0?_0x34df9d[0x0][_0x53209b(0x3fc)][_0x53209b(0x3b0)]:[];if(Array[_0x53209b(0x1be)](_0x5c06af)&&_0x5c06af['length']>0x0){var _0x521b8d,_0x2faf54;(_0x521b8d=(_0x2faf54=this['_handler'])[_0x53209b(0x23c)])==null||_0x521b8d[_0x53209b(0x31a)](_0x2faf54,{'unitID':_0x10e66e,'memberID':_0x182245,'textRanges':_0x5c06af});}}}[_0x35f73b(0x348)](){const _0x51fb3f=_0x35f73b;var _0x473ad7;(_0x473ad7=this[_0x51fb3f(0x30e)])==null||_0x473ad7[_0x51fb3f(0x2d3)](this[_0x51fb3f(0x285)],this[_0x51fb3f(0x2ec)],this[_0x51fb3f(0x2e4)],this[_0x51fb3f(0x393)]);}[_0x35f73b(0x2d8)](){const _0x4e0260=_0x35f73b;return this['_revisionService'][_0x4e0260(0x21d)](this[_0x4e0260(0x285)]);}[_0x35f73b(0x2b1)](){const _0x166d0f=_0x35f73b;this[_0x166d0f(0x366)][_0x166d0f(0x30d)](this[_0x166d0f(0x285)]);}[_0x35f73b(0x1ad)](_0x5d0242){const _0x3f2aec=_0x35f73b;let _0x3b1827=this['_transformRemoteChangesetByIMECache'](_0x5d0242);_0x3b1827=this[_0x3f2aec(0x3de)](_0x3b1827);let _0x161eaa=_0x5354a2(_0x3b1827[_0x3f2aec(0x391)],this[_0x3f2aec(0x234)],{'fromCollab':!0x0});if(!_0x161eaa[_0x3f2aec(0x265)]){var _0x47ddb1;throw _0x161eaa['error']instanceof Error?_0x161eaa[_0x3f2aec(0x3ba)]:Error((_0x47ddb1=_0x161eaa[_0x3f2aec(0x3ba)])==null?_0x3f2aec(0x1ab):_0x47ddb1);}this[_0x3f2aec(0x246)](_0x3b1827),this[_0x3f2aec(0x1a3)](_0x3b1827),this['_transformUndoredo'](_0x5d0242),this[_0x3f2aec(0x267)](_0x3b1827),this[_0x3f2aec(0x3da)](_0x3b1827),this[_0x3f2aec(0x2b1)]();}};let G=class extends W{constructor(_0x21aa80,_0x41c6e9,_0x52d93c,_0x3519dc,_0x5b4789,_0x4eb8ae,_0xd64f1b,_0x454024,_0x4fc9f9,_0x570a83){const _0x1e7da4=_0x35f73b;super(_0x21aa80,_0x41c6e9,null,[],_0x52d93c,_0xd64f1b,_0x4eb8ae,_0x3519dc,_0x570a83),this[_0x1e7da4(0x1c1)]=_0x5b4789,this[_0x1e7da4(0x3f8)]=_0x454024,this['_transformService']=_0x4fc9f9,this[_0x1e7da4(0x270)]=_0x570a83,I(this,_0x1e7da4(0x253),_0x1e7da4(0x341));}[_0x35f73b(0x361)](_0x5843cd){const _0x4cf5c5=_0x35f73b;let _0x115f03=this[_0x4cf5c5(0x1c1)]['createInstance'](K,this[_0x4cf5c5(0x285)],this['type'],[_0x5843cd],this[_0x4cf5c5(0x367)]);return _0x115f03[_0x4cf5c5(0x1b8)](),_0x115f03[_0x4cf5c5(0x348)](),_0x115f03;}[_0x35f73b(0x3fb)](_0x392b5d){const _0x4c650f=_0x35f73b;if(this[_0x4c650f(0x2c3)](_0x392b5d))return this['_injector'][_0x4c650f(0x2d1)](Z,this[_0x4c650f(0x285)],this[_0x4c650f(0x2ec)],null,[],null,[_0x392b5d],this[_0x4c650f(0x367)]);try{let _0x2542c2=this[_0x4c650f(0x3c2)][_0x4c650f(0x1e7)](_0x392b5d,[_0x40f6fb]);if(_0x5d12cb(_0x2542c2)){let {c1Prime:_0x4c33ba}=_0x2542c2;return this[_0x4c650f(0x1ad)](_0x4c33ba),this;}throw _0x2542c2['error'];}catch(_0x47d6aa){return this[_0x4c650f(0x3f8)][_0x4c650f(0x3ba)](_0x47d6aa),this[_0x4c650f(0x1f3)](!0x1);}}['_onConflict'](_0x56c5b8){const _0x2674c6=_0x35f73b;return this[_0x2674c6(0x1c1)]['createInstance'](Y,this[_0x2674c6(0x285)],this[_0x2674c6(0x2ec)],null,[],this[_0x2674c6(0x367)],_0x56c5b8);}[_0x35f73b(0x2c6)](_0x41eee6){const _0x387d94=_0x35f73b;if(_0x41eee6[_0x387d94(0x319)]<=this[_0x387d94(0x2d8)]())return this;throw Error(_0x387d94(0x239));}['onRemoteRej'](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x35f73b(0x390)](){const _0x583f8d=_0x35f73b;return this[_0x583f8d(0x1c1)][_0x583f8d(0x2d1)](X,this[_0x583f8d(0x285)],this[_0x583f8d(0x2ec)],null,[],this[_0x583f8d(0x367)]);}[_0x35f73b(0x3ec)](){return this;}[_0x35f73b(0x21f)](){const _0x2ee90a=_0x35f73b;throw Error(_0x2ee90a(0x38a));}[_0x35f73b(0x237)](){const _0x42d4fd=_0x35f73b;let _0x304407=this['_revisionService']['getCurrentRevOfUnit'](this[_0x42d4fd(0x285)]);return this[_0x42d4fd(0x367)]['onMissingChangesets']({'from':_0x304407,'to':0x0}),this['_injector'][_0x42d4fd(0x2d1)](Z,this[_0x42d4fd(0x285)],this['type'],null,[],null,[],this[_0x42d4fd(0x367)]);}};G=z([R(0x3,_0x1b23c9(_0x1ee4fd)),R(0x4,_0x1b23c9(_0x2b692d)),R(0x5,_0x257c3e),R(0x6,_0x5c3744),R(0x7,_0x3594cb),R(0x8,_0x348e40),R(0x9,_0xbefc86(V))],G);let K=zt=class extends W{constructor(_0x484179,_0x59521a,_0x53ac14,_0x21f380,_0x509444,_0xb56189,_0x23e08d,_0x1d3a0a,_0x124af0,_0x30b344,_0x306aa9,_0x1c27e4,_0x5c0d28,_0x1362a2){const _0x2f8dc0=_0x35f73b;super(_0x484179,_0x59521a,null,_0x53ac14,_0x21f380,_0x124af0,_0x5c0d28,_0xb56189,_0x1362a2),this[_0x2f8dc0(0x1c1)]=_0x509444,this[_0x2f8dc0(0x2fc)]=_0x23e08d,this['_logService']=_0x1d3a0a,this['_configService']=_0x30b344,this[_0x2f8dc0(0x3c2)]=_0x306aa9,this[_0x2f8dc0(0x2db)]=_0x1c27e4,I(this,_0x2f8dc0(0x253),'pending'),I(this,_0x2f8dc0(0x3fd),null),I(this,_0x2f8dc0(0x19f),null);}['appendMutation'](_0x5ab5f5){const _0x2e4455=_0x35f73b;return this[_0x2e4455(0x393)]['push'](_0x5ab5f5),this[_0x2e4455(0x348)](),this;}[_0x35f73b(0x3fb)](_0x3adf10){const _0x13b626=_0x35f73b;if(this[_0x13b626(0x2c3)](_0x3adf10))return this[_0x13b626(0x254)](),this[_0x13b626(0x1c1)][_0x13b626(0x2d1)](Z,this['unitID'],this[_0x13b626(0x2ec)],null,this[_0x13b626(0x393)],null,[_0x3adf10],this['_handler']);try{let _0xd6572a=this[_0x13b626(0x3c2)][_0x13b626(0x1e7)](_0x3adf10,this['_pendingMutations']);if(_0x5d12cb(_0xd6572a)){let {c1Prime:_0x109c41,m2Prime:_0x4dc25a}=_0xd6572a;this[_0x13b626(0x1ad)](_0x109c41);let _0x26ef98=this['_injector'][_0x13b626(0x2d1)](zt,this[_0x13b626(0x285)],this[_0x13b626(0x2ec)],_0x4dc25a,this['_handler']);this['_clearScheduledTask']();let _0x23ba07=new Date()[_0x13b626(0x2b4)](),_0x5c733d=this[_0x13b626(0x3fd)]?Math[_0x13b626(0x2b0)](this[_0x13b626(0x3fd)]-_0x23ba07,0x0):this[_0x13b626(0x280)]();return _0x26ef98[_0x13b626(0x1b8)](_0x5c733d),_0x26ef98;}throw _0xd6572a[_0x13b626(0x3ba)];}catch(_0x358c4b){return this[_0x13b626(0x3f8)][_0x13b626(0x3ba)](_0x358c4b),this[_0x13b626(0x1f3)](!0x1);}}[_0x35f73b(0x2c6)](_0x2ed574){const _0x4f6630=_0x35f73b;if(_0x2ed574[_0x4f6630(0x319)]<=this[_0x4f6630(0x2d8)]())return this;throw Error(_0x4f6630(0x381));}[_0x35f73b(0x266)](){const _0x429947=_0x35f73b;throw Error(_0x429947(0x1dd));}[_0x35f73b(0x34a)](){return this;}['toggleOffline'](){const _0x33fe31=_0x35f73b;return this[_0x33fe31(0x254)](),this[_0x33fe31(0x1c1)][_0x33fe31(0x2d1)](X,this[_0x33fe31(0x285)],this[_0x33fe31(0x2ec)],null,this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x35f73b(0x1b8)](_0x4c07ac){const _0x5de0fd=_0x35f73b;let _0x35d953=_0x4c07ac==null?this[_0x5de0fd(0x280)]():_0x4c07ac;this[_0x5de0fd(0x3fd)]=new Date()[_0x5de0fd(0x2b4)]()+_0x35d953,this[_0x5de0fd(0x19f)]=setTimeout(()=>{const _0x54be95=_0x5de0fd;this[_0x54be95(0x254)]();let _0x557f5c=null;switch(this['type']){case _0x57ec00[_0x54be95(0x3b1)]:_0x557f5c=It(this[_0x54be95(0x393)],this[_0x54be95(0x285)],this['_univerInstanceService'],this['_revisionService'],this[_0x54be95(0x2fc)]);break;case _0x57ec00[_0x54be95(0x32a)]:_0x557f5c=this[_0x54be95(0x393)][_0x54be95(0x338)](_0x41a86a=>_0x41a86a['id']===_0x2fd593['id'])?Lt(this['_pendingMutations'],this[_0x54be95(0x285)],this[_0x54be95(0x2db)],this[_0x54be95(0x366)],this[_0x54be95(0x2fc)]):It(this[_0x54be95(0x393)],this[_0x54be95(0x285)],this[_0x54be95(0x2db)],this[_0x54be95(0x366)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x54be95(0x2ec)]+_0x54be95(0x19a));}let {changeset:_0x580478,pendingMutations:_0x9a5ed8}=_0x557f5c;this[_0x54be95(0x367)][_0x54be95(0x268)](_0x580478);let _0x27154e=_0x9a5ed8['length']?this[_0x54be95(0x1c1)]['createInstance'](J,this[_0x54be95(0x285)],this[_0x54be95(0x2ec)],_0x580478,_0x9a5ed8,this[_0x54be95(0x367)],void 0x0):this[_0x54be95(0x1c1)][_0x54be95(0x2d1)](q,this[_0x54be95(0x285)],this['type'],_0x580478,this['_handler']);_0x27154e[_0x54be95(0x348)](),this[_0x54be95(0x367)][_0x54be95(0x20b)](this,_0x27154e);},_0x35d953);}[_0x35f73b(0x280)](){const _0x3179aa=_0x35f73b;var _0x42d9df;let _0x5fffe6=this[_0x3179aa(0x21c)][_0x3179aa(0x2fb)](U);return(_0x42d9df=_0x5fffe6==null?void 0x0:_0x5fffe6['sendChangesetTimeout'])==null?0x7d0:_0x42d9df;}[_0x35f73b(0x21f)](){const _0x333239=_0x35f73b;throw Error(_0x333239(0x1d9));}[_0x35f73b(0x254)](){const _0xa6855e=_0x35f73b;this[_0xa6855e(0x19f)]!=null&&(clearTimeout(this[_0xa6855e(0x19f)]),this['_sendingTimer']=null);}[_0x35f73b(0x1f3)](_0x109245){const _0x37cb1a=_0x35f73b;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Y,this[_0x37cb1a(0x285)],this[_0x37cb1a(0x2ec)],null,this[_0x37cb1a(0x393)],this['_handler'],_0x109245);}};K=zt=z([R(0x4,_0x1b23c9(_0x2b692d)),R(0x5,_0x1b23c9(_0x1ee4fd)),R(0x6,_0x1b23c9(B)),R(0x7,_0x3594cb),R(0x8,_0x5c3744),R(0x9,_0x160dc0),R(0xa,_0x348e40),R(0xb,_0x599079),R(0xc,_0x257c3e),R(0xd,_0xbefc86(V))],K);let q=Bt=class extends W{constructor(_0x2a6c2c,_0xae9224,_0x263f63,_0x5a29af,_0x10f27d,_0xb1878f,_0x4855c3,_0x1780ce,_0x7b6d8,_0x3467c8,_0x391f76){const _0x363ec2=_0x35f73b;super(_0x2a6c2c,_0xae9224,_0x263f63,[],_0x5a29af,_0x4855c3,_0x3467c8,_0xb1878f,_0x391f76),this['_injector']=_0x10f27d,this[_0x363ec2(0x3f8)]=_0x1780ce,this[_0x363ec2(0x3c2)]=_0x7b6d8,I(this,'status',_0x363ec2(0x193)),I(this,_0x363ec2(0x282),0x0),I(this,_0x363ec2(0x2af),0x0),I(this,_0x363ec2(0x225),void 0x0),I(this,_0x363ec2(0x340),void 0x0);}[_0x35f73b(0x361)](_0x101435){const _0x21bd8a=_0x35f73b;this[_0x21bd8a(0x254)]();let _0x1700e5=this[_0x21bd8a(0x1c1)][_0x21bd8a(0x2d1)](J,this[_0x21bd8a(0x285)],this[_0x21bd8a(0x2ec)],this[_0x21bd8a(0x2e4)],[_0x101435],this[_0x21bd8a(0x367)],this['_resendTimer']);return _0x1700e5[_0x21bd8a(0x348)](),_0x1700e5;}[_0x35f73b(0x3fb)](_0x52cb31){const _0x3480bb=_0x35f73b;if(this[_0x3480bb(0x2c3)](_0x52cb31))return this[_0x3480bb(0x254)](),this[_0x3480bb(0x1c1)]['createInstance'](Z,this[_0x3480bb(0x285)],this[_0x3480bb(0x2ec)],this[_0x3480bb(0x2e4)],[],null,[_0x52cb31],this['_handler']);try{let _0x6f3196=this[_0x3480bb(0x3c2)]['transformChangesets']([_0x52cb31],[this['_awaitingChangeset']],!0x1);if(_0xbb97b6(_0x6f3196)){let {c1Prime:_0x2dcb77,c2Prime:_0x3e52fc}=_0x6f3196;this[_0x3480bb(0x1ad)](_0x2dcb77[0x0]),_0x3e52fc[0x0][_0x3480bb(0x24d)]=this[_0x3480bb(0x2d8)](),this[_0x3480bb(0x254)]();let _0x20852e=this[_0x3480bb(0x1c1)][_0x3480bb(0x2d1)](Bt,this[_0x3480bb(0x285)],this[_0x3480bb(0x2ec)],_0x3e52fc[0x0],this['_handler']);return _0x20852e[_0x3480bb(0x348)](),_0x20852e;}throw _0x6f3196[_0x3480bb(0x3ba)];}catch(_0x5932ea){return this[_0x3480bb(0x3f8)][_0x3480bb(0x3ba)](_0x5932ea),this[_0x3480bb(0x1f3)](!0x1);}}[_0x35f73b(0x2c6)](_0x1c1d44){const _0x524166=_0x35f73b;this['_clearScheduledTask']();let _0x36045d=this[_0x524166(0x366)][_0x524166(0x21d)](this[_0x524166(0x285)]);if(_0x1c1d44[_0x524166(0x319)]<=_0x36045d)return this;if(this[_0x524166(0x2c3)](_0x1c1d44))return this[_0x524166(0x1c1)][_0x524166(0x2d1)](Z,this[_0x524166(0x285)],this[_0x524166(0x2ec)],this[_0x524166(0x2e4)],[],_0x1c1d44[_0x524166(0x319)],[],this[_0x524166(0x367)]);this[_0x524166(0x2b1)]();let _0x37274d=this['_injector'][_0x524166(0x2d1)](G,this[_0x524166(0x285)],this['type'],this[_0x524166(0x367)]);return _0x37274d[_0x524166(0x348)](),_0x37274d;}['onRemoteRej'](_0x1b4ea8){const _0x2b6114=_0x35f73b;return this[_0x2b6114(0x1f3)](!!(_0x1b4ea8!=null&&_0x1b4ea8['isPermissionRej']));}[_0x35f73b(0x34a)](_0x54900e){const _0x5e8125=_0x35f73b;return this[_0x5e8125(0x2af)]>Wt?this[_0x5e8125(0x390)]():(this['_resendTimer']=Rt(this[_0x5e8125(0x282)],{'timeout':this[_0x5e8125(0x282)],'reqId':_0x54900e[_0x5e8125(0x26a)]}),this[_0x5e8125(0x340)]=this[_0x5e8125(0x225)][_0x5e8125(0x1f4)](({reqId:_0x5c0c51,timeout:_0x582e1e})=>{const _0x59a840=_0x5e8125;this[_0x59a840(0x222)](_0x5c0c51,_0x582e1e);}),this);}[_0x35f73b(0x390)](){const _0x5ee1f1=_0x35f73b;return this[_0x5ee1f1(0x254)](),this[_0x5ee1f1(0x1c1)]['createInstance'](X,this[_0x5ee1f1(0x285)],this[_0x5ee1f1(0x2ec)],this[_0x5ee1f1(0x2e4)],[],this[_0x5ee1f1(0x367)]);}[_0x35f73b(0x3ec)](){return this;}[_0x35f73b(0x21f)](){const _0x53cfb2=_0x35f73b;this[_0x53cfb2(0x367)]['onSendChangeset'](this[_0x53cfb2(0x2e4)]);}['_onConflict'](_0xb9116a){const _0x2c4d6c=_0x35f73b;return this[_0x2c4d6c(0x254)](),this[_0x2c4d6c(0x1c1)]['createInstance'](Y,this[_0x2c4d6c(0x285)],this[_0x2c4d6c(0x2ec)],this[_0x2c4d6c(0x2e4)],[],this[_0x2c4d6c(0x367)],_0xb9116a);}['_resendWithTimeout'](_0x3b3ca2,_0x21b9a7){const _0x2308a2=_0x35f73b;var _0x2dbeed;_0x3b3ca2===((_0x2dbeed=this[_0x2308a2(0x2e4)])==null?void 0x0:_0x2dbeed[_0x2308a2(0x26a)])&&(this[_0x2308a2(0x21f)](),this['_resendTimeout']=_0x21b9a7===0x0?0x3e8:Math[_0x2308a2(0x1a4)](_0x21b9a7*0x2,Ut),this[_0x2308a2(0x2af)]+=this[_0x2308a2(0x282)]);}[_0x35f73b(0x254)](){const _0x37e859=_0x35f73b;var _0x51f37b;(_0x51f37b=this[_0x37e859(0x340)])==null||_0x51f37b[_0x37e859(0x2bc)](),this['_resendTimeout']=0x0,this[_0x37e859(0x2af)]=0x0;}};q=Bt=z([R(0x4,_0x1b23c9(_0x2b692d)),R(0x5,_0x1b23c9(_0x1ee4fd)),R(0x6,_0x5c3744),R(0x7,_0x3594cb),R(0x8,_0x348e40),R(0x9,_0x257c3e),R(0xa,_0xbefc86(V))],q);let J=Vt=class extends W{constructor(_0x18be89,_0x2a25ac,_0x128228,_0x4205e2,_0x362e2d,_0x116613,_0x3a8ed6,_0x423981,_0x3864f9,_0x582f47,_0x2841fd,_0x507739,_0x166457){const _0x4884fa=_0x35f73b;super(_0x18be89,_0x2a25ac,_0x128228,_0x4205e2,_0x362e2d,_0x3864f9,_0x507739,_0x423981,_0x166457),this[_0x4884fa(0x1c1)]=_0x3a8ed6,this[_0x4884fa(0x3f8)]=_0x582f47,this[_0x4884fa(0x3c2)]=_0x2841fd,this[_0x4884fa(0x270)]=_0x166457,I(this,_0x4884fa(0x253),'awaiting_with_pending'),I(this,_0x4884fa(0x282),0x0),I(this,_0x4884fa(0x2af),0x0),I(this,_0x4884fa(0x225),void 0x0),I(this,_0x4884fa(0x340),void 0x0),_0x116613&&(this[_0x4884fa(0x225)]=_0x116613,this['_sender']=this[_0x4884fa(0x225)]['subscribe'](({reqId:_0xa0a389,timeout:_0x2e238e})=>{const _0x41e345=_0x4884fa;this[_0x41e345(0x222)](_0xa0a389,_0x2e238e);}));}[_0x35f73b(0x361)](_0x4d15b6){const _0x32172b=_0x35f73b;return this[_0x32172b(0x393)][_0x32172b(0x380)](_0x4d15b6),this;}[_0x35f73b(0x3fb)](_0x4897e5){const _0x4fe634=_0x35f73b;if(this[_0x4fe634(0x2c3)](_0x4897e5))return this[_0x4fe634(0x254)](),this['_injector'][_0x4fe634(0x2d1)](Z,this[_0x4fe634(0x285)],this['type'],this[_0x4fe634(0x2e4)],this[_0x4fe634(0x393)],null,[_0x4897e5],this[_0x4fe634(0x367)]);try{let _0x2a1a78=this[_0x4fe634(0x3c2)][_0x4fe634(0x275)]([_0x4897e5],[this['_awaitingChangeset']],!0x1);if(_0xbb97b6(_0x2a1a78)){let {c1Prime:_0x5dacf3,c2Prime:_0x58b6cf}=_0x2a1a78,_0x5be7cb=this[_0x4fe634(0x3c2)][_0x4fe634(0x1e7)](_0x5dacf3[0x0],this[_0x4fe634(0x393)]);if(_0x5d12cb(_0x5be7cb)){let {c1Prime:_0x2abd2e,m2Prime:_0x2f0838}=_0x5be7cb;return this[_0x4fe634(0x1ad)](_0x2abd2e),_0x58b6cf[0x0][_0x4fe634(0x24d)]=this[_0x4fe634(0x2d8)](),this[_0x4fe634(0x254)](),this[_0x4fe634(0x1c1)][_0x4fe634(0x2d1)](Vt,this[_0x4fe634(0x285)],this[_0x4fe634(0x2ec)],_0x58b6cf[0x0],_0x2f0838,this[_0x4fe634(0x367)],void 0x0);}throw _0x5be7cb[_0x4fe634(0x3ba)];}throw _0x2a1a78[_0x4fe634(0x3ba)];}catch(_0x41ecc4){return this[_0x4fe634(0x3f8)]['error'](_0x41ecc4),this['_onConflict'](!0x1);}}[_0x35f73b(0x2c6)](_0x5e74ee){const _0x4df42c=_0x35f73b;this[_0x4df42c(0x254)]();let _0x5cd24f=this[_0x4df42c(0x2d8)]();if(_0x5e74ee[_0x4df42c(0x319)]<=_0x5cd24f)return this;if(this['_checkMissing'](_0x5e74ee))return this[_0x4df42c(0x1c1)][_0x4df42c(0x2d1)](Z,this[_0x4df42c(0x285)],this[_0x4df42c(0x2ec)],this['_awaitingChangeset'],this['_pendingMutations'],_0x5e74ee[_0x4df42c(0x319)],[],this[_0x4df42c(0x367)]);this[_0x4df42c(0x2b1)]();let _0x43e673=this[_0x4df42c(0x1c1)]['createInstance'](K,this[_0x4df42c(0x285)],this[_0x4df42c(0x2ec)],this[_0x4df42c(0x393)],this[_0x4df42c(0x367)]);return _0x43e673[_0x4df42c(0x1b8)](),_0x43e673[_0x4df42c(0x348)](),_0x43e673;}[_0x35f73b(0x266)](_0x152aee){const _0x257891=_0x35f73b;return this[_0x257891(0x1f3)](!!(_0x152aee!=null&&_0x152aee['isPermissionRej']));}[_0x35f73b(0x34a)](_0x10131f){const _0x29c6b8=_0x35f73b;return this[_0x29c6b8(0x2af)]>Wt?this[_0x29c6b8(0x390)]():(this['_resendTimer']=Rt(this[_0x29c6b8(0x282)],{'timeout':this['_resendTimeout'],'reqId':_0x10131f[_0x29c6b8(0x26a)]}),this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x2c6cc9,timeout:_0x8ccf65})=>{this['_resendWithTimeout'](_0x2c6cc9,_0x8ccf65);}),this);}[_0x35f73b(0x390)](){const _0x53c301=_0x35f73b;return this['_clearScheduledTask'](),this[_0x53c301(0x1c1)][_0x53c301(0x2d1)](X,this[_0x53c301(0x285)],this[_0x53c301(0x2ec)],this[_0x53c301(0x2e4)],this[_0x53c301(0x393)],this['_handler']);}[_0x35f73b(0x3ec)](){return this;}[_0x35f73b(0x21f)](){const _0x1e2af0=_0x35f73b;this[_0x1e2af0(0x367)][_0x1e2af0(0x268)](this['_awaitingChangeset']);}[_0x35f73b(0x1f3)](_0x22fe92){const _0xb43c36=_0x35f73b;return this[_0xb43c36(0x254)](),this[_0xb43c36(0x1c1)]['createInstance'](Y,this[_0xb43c36(0x285)],this[_0xb43c36(0x2ec)],null,this[_0xb43c36(0x393)],this[_0xb43c36(0x367)],_0x22fe92);}['_resendWithTimeout'](_0x156b11,_0x285ab1){const _0x1a0844=_0x35f73b;var _0x2a17fb;_0x156b11===((_0x2a17fb=this[_0x1a0844(0x2e4)])==null?void 0x0:_0x2a17fb[_0x1a0844(0x26a)])&&(this[_0x1a0844(0x21f)](),this[_0x1a0844(0x282)]=_0x285ab1===0x0?0x3e8:Math[_0x1a0844(0x1a4)](_0x285ab1*0x2,Ut),this[_0x1a0844(0x2af)]+=this['_resendTimeout']);}[_0x35f73b(0x254)](){const _0x46c8b6=_0x35f73b;var _0x2436aa;(_0x2436aa=this[_0x46c8b6(0x340)])==null||_0x2436aa[_0x46c8b6(0x2bc)](),this[_0x46c8b6(0x282)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=Vt=z([R(0x6,_0x1b23c9(_0x2b692d)),R(0x7,_0x1b23c9(_0x1ee4fd)),R(0x8,_0x5c3744),R(0x9,_0x3594cb),R(0xa,_0x348e40),R(0xb,_0x257c3e),R(0xc,_0xbefc86(V))],J);let Y=class extends W{constructor(_0x1e7f61,_0x111602,_0x3551db,_0x1bbad5,_0x505c36,_0x58f204=!0x1,_0x6b0a6f,_0x18e379,_0x153d06,_0x1b0b56,_0x39d9b3,_0x3997bf,_0x498ea5){const _0x4bb1a1=_0x35f73b;super(_0x1e7f61,_0x111602,_0x3551db,_0x1bbad5,_0x505c36,_0x18e379,_0x153d06,_0x1b0b56,_0x498ea5),this['_isPermissionRej']=_0x58f204,this[_0x4bb1a1(0x3aa)]=_0x6b0a6f,this[_0x4bb1a1(0x26b)]=_0x39d9b3,this[_0x4bb1a1(0x2bf)]=_0x3997bf,this['localCacheService']=_0x498ea5,I(this,'status',_0x4bb1a1(0x3ef)),this[_0x4bb1a1(0x1c9)](),this[_0x4bb1a1(0x242)](),this[_0x4bb1a1(0x291)]();}[_0x35f73b(0x361)](){return this;}['onRemoteChangeset'](){return this;}[_0x35f73b(0x2c6)](){return this;}[_0x35f73b(0x266)](){return this;}[_0x35f73b(0x34a)](){return this;}[_0x35f73b(0x390)](){return this;}[_0x35f73b(0x3ec)](){return this;}['resend'](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x35f73b(0x242)](){const _0x1144e5=_0x35f73b;var _0x544073;(_0x544073=this['_localCacheService'])==null||_0x544073[_0x1144e5(0x2d3)](this[_0x1144e5(0x285)],this[_0x1144e5(0x2ec)],null,[]);}[_0x35f73b(0x1c9)](){const _0x3a9d82=_0x35f73b;this[_0x3a9d82(0x231)]?this['_collaborationUIEventService']['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x3a9d82(0x2bf)]['emitEvent']({'id':_0x3a9d82(0x2a4)});}[_0x35f73b(0x291)](){const _0x309a78=_0x35f73b;this['_permissionService'][_0x309a78(0x3d2)](new _0x170956(this[_0x309a78(0x285)])['id'],!0x1);}};Y=z([R(0x6,_0x1b23c9(_0x5043f7)),R(0x7,_0x5c3744),R(0x8,_0x257c3e),R(0x9,_0x1b23c9(_0x1ee4fd)),R(0xa,_0x1b23c9(_0x2c19d0)),R(0xb,_0x1b23c9(L)),R(0xc,_0xbefc86(V))],Y);let X=class extends W{constructor(_0x50a23d,_0x4b24ad,_0x45ecf1,_0x28dde2,_0x2cd015,_0x5d8148,_0x562e0a,_0x26332f,_0x90e6b9,_0x4ddfd2){const _0x253e9e=_0x35f73b;super(_0x50a23d,_0x4b24ad,_0x45ecf1,_0x28dde2,_0x2cd015,_0x26332f,_0x90e6b9,_0x562e0a,_0x4ddfd2),this[_0x253e9e(0x1c1)]=_0x5d8148,I(this,'status','offline');}[_0x35f73b(0x361)](_0x5d87f0){const _0x48c62b=_0x35f73b;return this[_0x48c62b(0x393)][_0x48c62b(0x380)](_0x5d87f0),this[_0x48c62b(0x348)](),this;}[_0x35f73b(0x3fb)](_0x593e12){const _0x114dec=_0x35f73b;throw Error(_0x114dec(0x32f));}[_0x35f73b(0x2c6)](){const _0xda8a93=_0x35f73b;throw Error(_0xda8a93(0x1db));}[_0x35f73b(0x266)](){const _0x5d6e70=_0x35f73b;throw Error(_0x5d6e70(0x19c));}['onRemoteRetry'](){return this;}[_0x35f73b(0x390)](){return this;}[_0x35f73b(0x3ec)](){const _0x4fb626=_0x35f73b;let {_injector:_0x17eb89,_pendingMutations:_0x184bcf,_awaitingChangeset:_0x473d4d,unitID:_0x9a5b24,_handler:_0x1a1f3f,type:_0x19e38f}=this,_0x1b789c=Gt(_0x17eb89,_0x9a5b24,_0x19e38f,_0x473d4d,_0x184bcf,_0x1a1f3f);return _0x1b789c instanceof K?_0x1b789c[_0x4fb626(0x1b8)]():(_0x1b789c instanceof J||_0x1b789c instanceof q)&&_0x1b789c[_0x4fb626(0x21f)](),_0x1b789c;}[_0x35f73b(0x21f)](){const _0x460808=_0x35f73b;throw Error(_0x460808(0x233));}};X=z([R(0x5,_0x1b23c9(_0x2b692d)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x5c3744),R(0x8,_0x257c3e),R(0x9,_0xbefc86(V))],X);let Z=class extends W{constructor(_0x20d2cb,_0x4612fb,_0x2ce198,_0x96b24f,_0x4d94ee,_0x5b8e0b,_0x5dd72a,_0x5ba185,_0x1edeb5,_0x26efda,_0x6758db,_0x23518e,_0x347e8b,_0x4d95a1){const _0x2aa1f5=_0x35f73b;super(_0x20d2cb,_0x4612fb,_0x2ce198,_0x96b24f,_0x5dd72a,_0x6758db,_0x23518e,_0x1edeb5,_0x4d95a1),this[_0x2aa1f5(0x309)]=_0x4d94ee,this[_0x2aa1f5(0x1a9)]=_0x5b8e0b,this[_0x2aa1f5(0x1c1)]=_0x5ba185,this[_0x2aa1f5(0x3f8)]=_0x26efda,this[_0x2aa1f5(0x3c2)]=_0x347e8b,this['localCacheService']=_0x4d95a1,I(this,'status',_0x2aa1f5(0x1d2));}[_0x35f73b(0x2c8)](_0x5c945d){const _0x38dd0e=_0x35f73b;try{if(this[_0x38dd0e(0x2cb)](_0x5c945d)[_0x38dd0e(0x3d0)])throw Error(_0x38dd0e(0x28c));if(this[_0x38dd0e(0x2cb)]([...this['_queuedRemoteChangesets']][_0x38dd0e(0x1f8)]((_0x2b5dd6,_0x3775bf)=>_0x2b5dd6[_0x38dd0e(0x319)]-_0x3775bf[_0x38dd0e(0x319)]))['missingChangesets'])return this[_0x38dd0e(0x1a9)]=[],this[_0x38dd0e(0x348)](),this[_0x38dd0e(0x367)][_0x38dd0e(0x259)]({'from':this[_0x38dd0e(0x2d8)](),'to':0x0}),this;let _0x2329ad=this['_awaitingChangeset'],_0x26a94a=this[_0x38dd0e(0x393)],_0x11cf02;if(_0x2329ad&&_0x26a94a[_0x38dd0e(0x37b)]!==0x0)_0x11cf02=this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](J,this[_0x38dd0e(0x285)],this[_0x38dd0e(0x2ec)],_0x2329ad,_0x26a94a,this[_0x38dd0e(0x367)],void 0x0);else{if(_0x2329ad&&_0x26a94a[_0x38dd0e(0x37b)]===0x0)_0x2329ad[_0x38dd0e(0x24d)]=this[_0x38dd0e(0x2d8)](),_0x11cf02=this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](q,this['unitID'],this[_0x38dd0e(0x2ec)],_0x2329ad,this['_handler']);else{if(_0x26a94a[_0x38dd0e(0x37b)]!==0x0){let _0x275c5b=this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](K,this[_0x38dd0e(0x285)],this['type'],_0x26a94a,this[_0x38dd0e(0x367)]);_0x275c5b['_schedule'](),_0x11cf02=_0x275c5b;}else _0x11cf02=this['_injector'][_0x38dd0e(0x2d1)](G,this['unitID'],this[_0x38dd0e(0x2ec)],this[_0x38dd0e(0x367)]);}}return _0x11cf02[_0x38dd0e(0x348)](),_0x11cf02;}catch(_0x23a09e){return this[_0x38dd0e(0x3f8)][_0x38dd0e(0x3ba)](_0x38dd0e(0x24c),'failed\x20to\x20apply\x20missed\x20changesets!',_0x23a09e),this[_0x38dd0e(0x1c1)][_0x38dd0e(0x2d1)](Y,this[_0x38dd0e(0x285)],this[_0x38dd0e(0x2ec)],this['_awaitingChangeset'],this[_0x38dd0e(0x393)],this[_0x38dd0e(0x367)],!0x1);}}['_handleRemoteChangesets'](_0x3b653a){const _0x2352ac=_0x35f73b;this[_0x2352ac(0x344)]();for(let _0x1652a9=0x0;_0x1652a9<_0x3b653a[_0x2352ac(0x37b)];_0x1652a9++){let _0x16b5f1=_0x3b653a[_0x1652a9],_0x1a4f2c=this['_getCurrentRevision']();if(!(_0x16b5f1['revision']<=_0x1a4f2c)){if(_0x16b5f1['revision']>_0x1a4f2c+0x1)return{'missingChangesets':!0x0};if(this[_0x2352ac(0x339)](_0x16b5f1)){this[_0x2352ac(0x1b5)]();continue;}this[_0x2352ac(0x36f)](_0x16b5f1),this[_0x2352ac(0x344)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x5227f8){const _0x54f5b6=_0x35f73b;let _0x3c0156=_0x5227f8,_0xb549ca=this[_0x54f5b6(0x2e4)];if(_0xb549ca){let _0x333e9d=this['_transformService'][_0x54f5b6(0x275)]([_0x5227f8],[_0xb549ca],!0x1);if(!_0xbb97b6(_0x333e9d))throw _0x333e9d[_0x54f5b6(0x3ba)];_0x3c0156=_0x333e9d[_0x54f5b6(0x279)][0x0],_0xb549ca=_0x333e9d[_0x54f5b6(0x264)][0x0];}let _0x4d9168=this[_0x54f5b6(0x393)];if(_0x4d9168[_0x54f5b6(0x37b)]){let _0x3a7a5f=this[_0x54f5b6(0x3c2)][_0x54f5b6(0x1e7)](_0x3c0156,_0x4d9168);if(!_0x5d12cb(_0x3a7a5f))throw _0x3a7a5f[_0x54f5b6(0x3ba)];_0x3c0156=_0x3a7a5f[_0x54f5b6(0x279)],_0x4d9168=_0x3a7a5f['m2Prime'];}this[_0x54f5b6(0x1ad)](_0x3c0156),_0xb549ca&&(_0xb549ca[_0x54f5b6(0x24d)]=this[_0x54f5b6(0x2d8)]()),this[_0x54f5b6(0x2e4)]=_0xb549ca,this[_0x54f5b6(0x393)]=_0x4d9168;}[_0x35f73b(0x344)](){const _0xce407b=_0x35f73b;if(!this[_0xce407b(0x2e4)]||this[_0xce407b(0x309)]==null)return;let _0x577cdc=this['_getCurrentRevision']();if(this[_0xce407b(0x309)]<=_0x577cdc)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0xce407b(0x309)]+'.');this[_0xce407b(0x309)]===_0x577cdc+0x1&&this[_0xce407b(0x1b5)]();}[_0x35f73b(0x1b5)](){const _0x49a6de=_0x35f73b;this[_0x49a6de(0x2b1)](),this[_0x49a6de(0x2e4)]=null,this[_0x49a6de(0x309)]=null;}[_0x35f73b(0x339)](_0x3cf4e8){const _0x2ba9ca=_0x35f73b;let _0x2c72e1=this[_0x2ba9ca(0x2e4)];return!_0x2c72e1||!_0x2c72e1[_0x2ba9ca(0x236)]||_0x2c72e1[_0x2ba9ca(0x26a)]===null||_0x2c72e1[_0x2ba9ca(0x26a)]===void 0x0?!0x1:_0x3cf4e8[_0x2ba9ca(0x285)]===_0x2c72e1[_0x2ba9ca(0x285)]&&_0x3cf4e8['sid']===_0x2c72e1['sid']&&_0x3cf4e8[_0x2ba9ca(0x26a)]===_0x2c72e1[_0x2ba9ca(0x26a)];}[_0x35f73b(0x21f)](){const _0x57ae6b=_0x35f73b;throw Error(_0x57ae6b(0x379));}[_0x35f73b(0x361)](_0x394c4b){const _0x43ac7e=_0x35f73b;return this['_pendingMutations'][_0x43ac7e(0x380)](_0x394c4b),this;}[_0x35f73b(0x3fb)](_0x1616c6){const _0x197b0b=_0x35f73b;return this[_0x197b0b(0x1a9)][_0x197b0b(0x380)](_0x1616c6),this;}['onRemoteAck'](_0x307b8f){const _0x1c9f31=_0x35f73b;if(this[_0x1c9f31(0x2e4)]){let _0x3bf991=this[_0x1c9f31(0x2d8)]();return _0x307b8f['revision']<=_0x3bf991||(_0x3bf991+0x1===_0x307b8f['revision']?(this[_0x1c9f31(0x2b1)](),this['_awaitingChangeset']=null,this[_0x1c9f31(0x309)]=null):this[_0x1c9f31(0x309)]=_0x307b8f[_0x1c9f31(0x319)]),this;}if(_0x307b8f[_0x1c9f31(0x319)]<=this[_0x1c9f31(0x2d8)]())return this;throw Error(_0x1c9f31(0x31f));}[_0x35f73b(0x266)](_0x56b201){const _0x3e10c6=_0x35f73b;return this['_onConflict'](!!(_0x56b201!=null&&_0x56b201[_0x3e10c6(0x2e9)]));}[_0x35f73b(0x34a)](){return this;}[_0x35f73b(0x390)](){const _0x17f0e3=_0x35f73b;return this[_0x17f0e3(0x1c1)][_0x17f0e3(0x2d1)](X,this[_0x17f0e3(0x285)],this[_0x17f0e3(0x2ec)],this[_0x17f0e3(0x2e4)],this[_0x17f0e3(0x393)],this['_handler']);}['toggleOnline'](){return this;}[_0x35f73b(0x1f3)](_0x3845de){const _0x3f560e=_0x35f73b;return this[_0x3f560e(0x1c1)][_0x3f560e(0x2d1)](Y,this[_0x3f560e(0x285)],this[_0x3f560e(0x2ec)],this[_0x3f560e(0x2e4)],this['_pendingMutations'],this[_0x3f560e(0x367)],_0x3845de);}};Z=z([R(0x7,_0x1b23c9(_0x2b692d)),R(0x8,_0x1b23c9(_0x1ee4fd)),R(0x9,_0x3594cb),R(0xa,_0x5c3744),R(0xb,_0x257c3e),R(0xc,_0x348e40),R(0xd,_0xbefc86(V))],Z);function Gt(_0x14faa0,_0x2e8742,_0x22be85,_0x1f4d3e,_0x374067,_0x27fadb){const _0x3d83ba=_0x35f73b;return _0x1f4d3e&&_0x374067[_0x3d83ba(0x37b)]?_0x14faa0[_0x3d83ba(0x2d1)](J,_0x2e8742,_0x22be85,_0x1f4d3e,_0x374067,_0x27fadb,void 0x0):_0x1f4d3e?_0x14faa0['createInstance'](q,_0x2e8742,_0x22be85,_0x1f4d3e,_0x27fadb):_0x374067['length']?_0x14faa0['createInstance'](K,_0x2e8742,_0x22be85,_0x374067,_0x27fadb):_0x14faa0['createInstance'](G,_0x2e8742,_0x22be85,_0x27fadb);}let Kt=class extends _0x495984{get[_0x35f73b(0x1c6)](){const _0x2e2433=_0x35f73b;return this[_0x2e2433(0x2eb)];}constructor(_0x4348b9,_0x35f81a,_0x5285c0,_0x15cc81,_0x40caf2,_0x48a9b4,_0x4c1fe7,_0x3e49d1,_0x5ddc4c,_0x2c775e,_0x52c4b3,_0x3d8195,_0x4371bd,_0x4d285e){const _0x5d5220=_0x35f73b;super(),this[_0x5d5220(0x285)]=_0x4348b9,this[_0x5d5220(0x1b6)]=_0x35f81a,this[_0x5d5220(0x1a0)]=_0x5285c0,this[_0x5d5220(0x1c1)]=_0x15cc81,this[_0x5d5220(0x20f)]=_0x40caf2,this['_localeService']=_0x48a9b4,this[_0x5d5220(0x366)]=_0x4c1fe7,this[_0x5d5220(0x29f)]=_0x3e49d1,this['_univerInstanceService']=_0x5ddc4c,this['_logService']=_0x2c775e,this[_0x5d5220(0x234)]=_0x52c4b3,this[_0x5d5220(0x3aa)]=_0x3d8195,this[_0x5d5220(0x1ce)]=_0x4371bd,this[_0x5d5220(0x30e)]=_0x4d285e,I(this,'_state$',new _0x10ace7(null)),I(this,'state$',this[_0x5d5220(0x3b2)][_0x5d5220(0x3ac)]()),I(this,'_state',void 0x0),I(this,_0x5d5220(0x3c5),!0x1),I(this,_0x5d5220(0x3f2),''),I(this,_0x5d5220(0x214),0x0),I(this,_0x5d5220(0x32b),this['state$']['pipe'](_0x1a3ff1(_0x529f81=>_0x529f81?_0x529f81[_0x5d5220(0x253)]:_0x5d5220(0x2e1)),_0x39cccb(0x1))),I(this,'_transitionLocked',!0x1),I(this,_0x5d5220(0x3af),[]);}async[_0x35f73b(0x2df)](){const _0x5bf80f=_0x35f73b;if(this[_0x5bf80f(0x1c6)])throw Error(_0x5bf80f(0x206));await this[_0x5bf80f(0x29d)]();}['pauseCollaboration'](){const _0x52935a=_0x35f73b;return this[_0x52935a(0x3c5)]=!0x0,_0x2f6814(()=>{const _0x5e9f23=_0x52935a;this[_0x5e9f23(0x3c5)]=!0x1,this[_0x5e9f23(0x3d4)]();});}[_0x35f73b(0x299)](_0x3365ac){const _0x389264=_0x35f73b;this[_0x389264(0x358)](_0x3365ac);}['_updateState'](_0x5b3373){const _0x139531=_0x35f73b;this['_state']=_0x5b3373,this[_0x139531(0x3b2)][_0x139531(0x3f6)](_0x5b3373);}async[_0x35f73b(0x29d)](){const _0x2d17b4=_0x35f73b;if(this['_updateState'](await this[_0x2d17b4(0x386)]()),this[_0x2d17b4(0x1ce)]){var _0x47fb25;(_0x47fb25=this[_0x2d17b4(0x1ce)])==null||_0x47fb25[_0x2d17b4(0x226)](this[_0x2d17b4(0x285)]),this[_0x2d17b4(0x2fa)](this[_0x2d17b4(0x1ce)][_0x2d17b4(0x1de)](this[_0x2d17b4(0x285)])['subscribe'](_0x46db85=>{const _0x2d29d6=_0x2d17b4;this['_logService'][_0x2d29d6(0x39c)]('[CollaborationEntity]',_0x2d29d6(0x2fd),_0x46db85),_0x46db85===0x1?(this[_0x2d29d6(0x29f)][_0x2d29d6(0x374)]({'id':_0x2d29d6(0x37c)}),this[_0x2d29d6(0x3aa)][_0x2d29d6(0x3d2)](new _0x170956(this[_0x2d29d6(0x285)])['id'],!0x1),this[_0x2d29d6(0x3aa)][_0x2d29d6(0x33c)](!0x1)):(this['_permissionService'][_0x2d29d6(0x3d2)](new _0x170956(this[_0x2d29d6(0x285)])['id'],!0x0),this[_0x2d29d6(0x3aa)]['setShowComponents'](!0x0));}));}let _0x38cbe7=!0x1;return this[_0x2d17b4(0x2fa)](this['session']['sessionStatus$'][_0x2d17b4(0x1f4)](_0x2d5085=>{const _0x44ad76=_0x2d17b4;_0x2d5085===0x3?this[_0x44ad76(0x357)](_0x38cbe7):_0x2d5085===0x2&&(_0x38cbe7=!0x0,this[_0x44ad76(0x2b6)]());})),this[_0x2d17b4(0x2fa)](this[_0x2d17b4(0x1b6)][_0x2d17b4(0x39e)][_0x2d17b4(0x1f4)](_0x322fe9=>{const _0x5db097=_0x2d17b4;try{switch(_0x322fe9[_0x5db097(0x263)]){case _0x576af5[_0x5db097(0x295)]:this[_0x5db097(0x2e5)](_0x2dfd05(_0x322fe9['data']));break;case _0x576af5[_0x5db097(0x3d5)]:this['_onRemoteACK'](_0x322fe9['data']);break;case _0x576af5[_0x5db097(0x28e)]:this['_onRemoteRejected']();break;case _0x576af5['CHANGESET_SHOULD_RETRY']:this[_0x5db097(0x1af)](_0x322fe9[_0x5db097(0x3fe)]);break;case _0x576af5[_0x5db097(0x2d2)]:this[_0x5db097(0x1e0)](_0x322fe9[_0x5db097(0x3fe)][_0x5db097(0x26e)][_0x5db097(0x323)](_0x3a45ab=>_0x2dfd05(_0x3a45ab)));break;case _0x576af5[_0x5db097(0x3e3)]:this[_0x5db097(0x3e5)]({'isPermissionRej':!0x0});break;case _0x576af5[_0x5db097(0x2a7)]:break;}}catch(_0x2ea12e){throw console[_0x5db097(0x3ba)](_0x5db097(0x350),_0x2ea12e),_0x2ea12e;}})),this[_0x2d17b4(0x2eb)];}['_unlockTransition'](){const _0x378854=_0x35f73b;this[_0x378854(0x1e2)]=!0x1;}[_0x35f73b(0x2a1)](){const _0x306c64=_0x35f73b;if(this[_0x306c64(0x1e2)])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['_transitionLocked']=!0x0;}[_0x35f73b(0x358)](_0x21b585){const _0x4011d1=_0x35f73b;this[_0x4011d1(0x2a1)](),this[_0x4011d1(0x272)](this[_0x4011d1(0x2eb)]['appendMutation'](_0x21b585)),this[_0x4011d1(0x327)]();}[_0x35f73b(0x2e5)](_0x2588d5){const _0x23d33c=_0x35f73b;if(!(_0x2588d5[_0x23d33c(0x319)]<=this[_0x23d33c(0x366)]['getCurrentRevOfUnit'](this[_0x23d33c(0x285)]))){if(this[_0x23d33c(0x3c5)]){this[_0x23d33c(0x3af)][_0x23d33c(0x380)](_0x2588d5);return;}this[_0x23d33c(0x3a2)](_0x2588d5);}}[_0x35f73b(0x3d4)](){const _0x364f9c=_0x35f73b;this[_0x364f9c(0x3af)]['forEach'](_0x1e4c2d=>this[_0x364f9c(0x3a2)](_0x1e4c2d)),this[_0x364f9c(0x3af)]=[];}[_0x35f73b(0x3a2)](_0x4183f8){const _0x3b40b7=_0x35f73b;let _0x764f66=this[_0x3b40b7(0x20f)][_0x3b40b7(0x33e)][_0x3b40b7(0x325)](this[_0x3b40b7(0x20f)]['interceptor'][_0x3b40b7(0x2e8)]()[_0x3b40b7(0x1cd)])(_0x4183f8[_0x3b40b7(0x391)],null)||_0x4183f8[_0x3b40b7(0x391)],_0x324543={..._0x4183f8,'mutations':_0x764f66};this[_0x3b40b7(0x2a1)](),this[_0x3b40b7(0x272)](this[_0x3b40b7(0x2eb)]['onRemoteChangeset'](_0x324543)),this[_0x3b40b7(0x327)]();}[_0x35f73b(0x351)](_0x34de95){const _0x56e7aa=_0x35f73b;this['_lockTransition'](),this[_0x56e7aa(0x272)](this[_0x56e7aa(0x2eb)][_0x56e7aa(0x2c6)](_0x34de95)),this[_0x56e7aa(0x327)]();}[_0x35f73b(0x3e5)](_0x279309){const _0x27a7b1=_0x35f73b;this['_lockTransition'](),this[_0x27a7b1(0x272)](this[_0x27a7b1(0x2eb)][_0x27a7b1(0x266)](_0x279309)),this[_0x27a7b1(0x327)]();}[_0x35f73b(0x1af)](_0x60286f){const _0x3f0f93=_0x35f73b;this['_lockTransition'](),this[_0x3f0f93(0x272)](this['_state'][_0x3f0f93(0x34a)](_0x60286f)),this[_0x3f0f93(0x327)]();}['_onFetchMissResult'](_0x2aeb4e){const _0x22e24d=_0x35f73b;if(!(this['_state']instanceof Z))throw TypeError(_0x22e24d(0x2c0));let _0x118496=_0x2aeb4e[_0x22e24d(0x323)](_0x384ade=>{const _0xe8571f=_0x22e24d;let _0x418278=this[_0xe8571f(0x20f)][_0xe8571f(0x33e)][_0xe8571f(0x325)](this[_0xe8571f(0x20f)][_0xe8571f(0x33e)][_0xe8571f(0x2e8)]()['COMPRESS_MUTATION_APPLY'])(_0x384ade[_0xe8571f(0x391)],null)||_0x384ade[_0xe8571f(0x391)];return{..._0x384ade,'mutations':_0x418278};});this[_0x22e24d(0x2a1)](),this[_0x22e24d(0x272)](this['_state'][_0x22e24d(0x2c8)](_0x118496)),this['_unlockTransition']();}[_0x35f73b(0x2b6)](){const _0xb31efb=_0x35f73b;this[_0xb31efb(0x2a1)](),this[_0xb31efb(0x272)](this[_0xb31efb(0x2eb)]['toggleOffline']()),this[_0xb31efb(0x327)]();}[_0x35f73b(0x357)](_0x56b9fb=!0x1){const _0x1ae60f=_0x35f73b;this[_0x1ae60f(0x2a1)](),this[_0x1ae60f(0x272)](this[_0x1ae60f(0x2eb)][_0x1ae60f(0x3ec)]()),this['_unlockTransition']();let _0x338ebf=this[_0x1ae60f(0x2eb)];_0x56b9fb&&_0x338ebf instanceof G&&(this[_0x1ae60f(0x2a1)](),this[_0x1ae60f(0x272)](_0x338ebf[_0x1ae60f(0x237)]()),this[_0x1ae60f(0x327)]());}async[_0x35f73b(0x386)](){return new Promise(_0x2267db=>{const _0x45fbb4=_0x3c29;this[_0x45fbb4(0x1b6)]['sessionStatus$'][_0x45fbb4(0x289)](_0x2bd5fd(0x1))['subscribe'](async _0x5eb382=>{const _0x3f8093=_0x45fbb4;_0x2267db(await this[_0x3f8093(0x2be)](_0x5eb382===0x3));});});}[_0x35f73b(0x2b9)](){const _0x431f11=_0x35f73b;let _0x181727=this[_0x431f11(0x285)];return{'onStateChange':(_0x30407f,_0x216a52)=>{const _0x354cd0=_0x431f11;if(_0x30407f!==this[_0x354cd0(0x2eb)])throw Error(_0x354cd0(0x21e)+_0x30407f[_0x354cd0(0x253)]+_0x354cd0(0x2e7)+_0x216a52[_0x354cd0(0x253)]+_0x354cd0(0x197)+this[_0x354cd0(0x2eb)][_0x354cd0(0x253)]);this[_0x354cd0(0x272)](_0x216a52);},'onSendChangeset':_0x3bfaf2=>{const _0x1568cb=_0x431f11;_0x3bfaf2['sid']||(_0x3bfaf2[_0x1568cb(0x236)]=this[_0x1568cb(0x3f2)],_0x3bfaf2[_0x1568cb(0x26a)]=++this[_0x1568cb(0x214)]);let _0x5ddfc5={'eventID':_0x576af5[_0x1568cb(0x288)],'data':{'unitID':_0x3bfaf2[_0x1568cb(0x285)],'unitType':this['_type'],'changeset':_0x3bfaf2,'memberID':this[_0x1568cb(0x1b6)][_0x1568cb(0x3b9)]()}};this[_0x1568cb(0x1b6)][_0x1568cb(0x2a0)](_0x5ddfc5,this[_0x1568cb(0x285)]);},'onMissingChangesets':({from:_0x3e0dbd,to:_0x464ebe})=>{const _0x1b168d=_0x431f11;this[_0x1b168d(0x3f8)]['debug'](_0x1b168d(0x32d),_0x1b168d(0x3ae)+_0x3e0dbd+_0x1b168d(0x326)+_0x464ebe);let _0x23be4f={'eventID':_0x576af5[_0x1b168d(0x2a8)],'data':{'unitID':_0x181727,'unitType':this[_0x1b168d(0x1a0)],'from':_0x3e0dbd,'to':_0x464ebe}};this['session']['send'](_0x23be4f,this[_0x1b168d(0x285)]);}};}async['_createInitialStateImpl'](_0x48338c){const _0x291201=_0x35f73b;var _0x2624b5,_0x34b13b,_0x16580b;let _0x24c50c=await((_0x2624b5=this[_0x291201(0x30e)])==null?void 0x0:_0x2624b5[_0x291201(0x36e)](this[_0x291201(0x285)])),_0x369759=(_0x34b13b=_0x24c50c==null?void 0x0:_0x24c50c[_0x291201(0x391)])==null?[]:_0x34b13b,_0x159b57=(_0x16580b=_0x24c50c==null?void 0x0:_0x24c50c[_0x291201(0x257)])==null?null:_0x16580b,_0x3032fc=!!(_0x159b57!=null&&_0x159b57['sid'])&&!!(_0x159b57!=null&&_0x159b57[_0x291201(0x26a)]);this[_0x291201(0x3f2)]=_0x3032fc?_0x159b57[_0x291201(0x236)]:_0x45b42c(),this['_changesetReqId']=_0x3032fc?_0x159b57['reqId']:0x0;let _0x4a91a5=this[_0x291201(0x285)];try{this[_0x291201(0x3e4)](_0x159b57,_0x369759);}catch(_0x882f44){this[_0x291201(0x3f8)][_0x291201(0x3ba)](_0x882f44);}let _0x1b971f=this[_0x291201(0x2b9)]();if(_0x48338c){let _0x177727=Gt(this[_0x291201(0x1c1)],_0x4a91a5,this['_type'],_0x159b57,_0x369759,_0x1b971f);return _0x177727 instanceof K?_0x177727['_schedule']():(_0x177727 instanceof J||_0x177727 instanceof q)&&_0x177727[_0x291201(0x21f)](),_0x177727;}return this[_0x291201(0x1c1)]['createInstance'](X,_0x4a91a5,this[_0x291201(0x1a0)],_0x159b57,_0x369759,_0x1b971f);}[_0x35f73b(0x3e4)](_0x5e8568,_0x3463d9){const _0x455040=_0x35f73b;var _0x47a089,_0x2405d7;let _0x11ecbf=this[_0x455040(0x20f)]['interceptor'][_0x455040(0x325)](this[_0x455040(0x20f)][_0x455040(0x33e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x47a089=_0x11ecbf((_0x5e8568==null?void 0x0:_0x5e8568[_0x455040(0x391)])||[],null))==null||_0x47a089[_0x455040(0x2c9)](_0x39ac2b=>this[_0x455040(0x234)]['executeCommand'](_0x39ac2b['id'],_0x39ac2b[_0x455040(0x3fc)])),(_0x2405d7=_0x11ecbf(_0x3463d9||[],null))==null||_0x2405d7[_0x455040(0x2c9)](_0x3ff267=>this['_commandService'][_0x455040(0x2ab)](_0x3ff267['id'],_0x3ff267[_0x455040(0x3fc)]));}};Kt=z([R(0x3,_0x1b23c9(_0x2b692d)),R(0x4,_0x1b23c9(_0x781451)),R(0x5,_0x1b23c9(_0x2c19d0)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x1b23c9(L)),R(0x8,_0x599079),R(0x9,_0x3594cb),R(0xa,_0x5c3744),R(0xb,_0x5043f7),R(0xc,_0xbefc86(jt)),R(0xd,_0xbefc86(V))],Kt);let qt=class extends Kt{constructor(_0x2caf4d,_0x3f2e5e,_0x4d911b,_0x279453,_0x36bf8d,_0x32de1b,_0x549d67,_0x482a16,_0x5377d4,_0x1a7e00,_0x37f3eb,_0x3cdbb3,_0x8d9355,_0x26d739){const _0x12b717=_0x35f73b;super(_0x2caf4d,_0x4d911b,_0x3f2e5e,_0x279453,_0x36bf8d,_0x32de1b,_0x549d67,_0x482a16,_0x5377d4,_0x1a7e00,_0x37f3eb,_0x3cdbb3,_0x8d9355,_0x26d739),this[_0x12b717(0x285)]=_0x2caf4d,this['type']=_0x3f2e5e,I(this,_0x12b717(0x33d),null);}['addHandlerCallback'](_0x280e09){const _0x27ca5a=_0x35f73b;this[_0x27ca5a(0x33d)]=_0x280e09;}[_0x35f73b(0x303)](){const _0x1af066=_0x35f73b;this[_0x1af066(0x33d)]=null,super['dispose']();}[_0x35f73b(0x2b9)](){const _0x4fad91=_0x35f73b;let _0x1fe21a=super[_0x4fad91(0x2b9)]();return _0x1fe21a['onTransformIME']=_0x49d5c5=>{const _0x38f3e2=_0x4fad91;var _0x5297ce,_0x201e0f;return(_0x5297ce=this[_0x38f3e2(0x33d)])==null||(_0x201e0f=_0x5297ce[_0x38f3e2(0x1dc)])==null?void 0x0:_0x201e0f['call'](_0x5297ce,_0x49d5c5);},_0x1fe21a[_0x4fad91(0x25e)]=_0x510a30=>{const _0x68f883=_0x4fad91;var _0x4cd055,_0x14fa74;return(_0x4cd055=this[_0x68f883(0x33d)])==null||(_0x14fa74=_0x4cd055[_0x68f883(0x25e)])==null?void 0x0:_0x14fa74[_0x68f883(0x31a)](_0x4cd055,_0x510a30);},_0x1fe21a['onTransformSelections']=_0xfb80f0=>{const _0x1a12de=_0x4fad91;var _0x97104a,_0x238e22;return(_0x97104a=this[_0x1a12de(0x33d)])==null||(_0x238e22=_0x97104a[_0x1a12de(0x3e9)])==null?void 0x0:_0x238e22[_0x1a12de(0x31a)](_0x97104a,_0xfb80f0);},_0x1fe21a[_0x4fad91(0x23c)]=_0x2b486d=>{const _0x1354d5=_0x4fad91;var _0x3085a9,_0x2c3792;return(_0x3085a9=this[_0x1354d5(0x33d)])==null||(_0x2c3792=_0x3085a9['onSyncEditingCollabCursor'])==null?void 0x0:_0x2c3792['call'](_0x3085a9,_0x2b486d);},_0x1fe21a[_0x4fad91(0x1ff)]=_0x3d4895=>{const _0x20b9e6=_0x4fad91;var _0x3ee684,_0x10c7a5,_0x1073bf;if(!((_0x3ee684=this[_0x20b9e6(0x33d)])!=null&&_0x3ee684[_0x20b9e6(0x1ff)]))throw Error(_0x20b9e6(0x3c6));return(_0x10c7a5=this[_0x20b9e6(0x33d)])==null||(_0x1073bf=_0x10c7a5[_0x20b9e6(0x1ff)])==null?void 0x0:_0x1073bf['call'](_0x10c7a5,_0x3d4895);},_0x1fe21a[_0x4fad91(0x2d0)]=_0x4d5a06=>{const _0x136b86=_0x4fad91;var _0x4dbc83,_0x406440,_0x7aac04;if(!((_0x4dbc83=this[_0x136b86(0x33d)])!=null&&_0x4dbc83[_0x136b86(0x2d0)]))throw Error(_0x136b86(0x1ec));return(_0x406440=this[_0x136b86(0x33d)])==null||(_0x7aac04=_0x406440['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x7aac04['call'](_0x406440,_0x4d5a06);},_0x1fe21a;}async[_0x35f73b(0x29d)](){const _0x45fe54=_0x35f73b;let _0x59d692=await super[_0x45fe54(0x29d)]();return this[_0x45fe54(0x2fa)](this[_0x45fe54(0x234)][_0x45fe54(0x310)]((_0x26262a,_0xce3e2a)=>{const _0x3ff719=_0x45fe54;if(_0x26262a[_0x3ff719(0x2ec)]!==_0x37c8a8[_0x3ff719(0x261)]||_0xce3e2a!=null&&_0xce3e2a['fromCollab']||_0xce3e2a!=null&&_0xce3e2a['onlyLocal']||_0x26262a['id']===_0x2fd593['id'])return;let _0xeda99f=_0x26262a[_0x3ff719(0x3fc)];if((_0xeda99f==null?void 0x0:_0xeda99f[_0x3ff719(0x333)])!==this[_0x3ff719(0x285)])return;let _0x54472a=_0x26262a,_0x1cdf41=this[_0x3ff719(0x20f)][_0x3ff719(0x33e)][_0x3ff719(0x325)](this[_0x3ff719(0x20f)][_0x3ff719(0x33e)][_0x3ff719(0x2e8)]()[_0x3ff719(0x1b2)])([_0x54472a],this['_univerInstanceService'])||[_0x54472a];this[_0x3ff719(0x358)](_0x1cdf41[0x0]);})),_0x59d692;}};qt=z([R(0x3,_0x1b23c9(_0x2b692d)),R(0x4,_0x1b23c9(_0x781451)),R(0x5,_0x1b23c9(_0x2c19d0)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x1b23c9(L)),R(0x8,_0x599079),R(0x9,_0x3594cb),R(0xa,_0x5c3744),R(0xb,_0x5043f7),R(0xc,_0xbefc86(jt)),R(0xd,_0xbefc86(V))],qt);let Jt=class extends Kt{constructor(_0xfcd6ad,_0x28d5d5,_0x2803ec,_0x4f6853,_0x58e9b7,_0x76907e,_0x5c1e5f,_0xc97f7f,_0x16f36d,_0x21b252,_0x3b2fe9,_0x4c0fb7,_0x2cc7b1,_0x2dc022,_0x5d7d7f){const _0x492a88=_0x35f73b;super(_0xfcd6ad,_0x2803ec,_0x28d5d5,_0x4f6853,_0x58e9b7,_0x76907e,_0x5c1e5f,_0x16f36d,_0x21b252,_0x3b2fe9,_0x4c0fb7,_0x2cc7b1,_0x2dc022,_0x5d7d7f),this['unitID']=_0xfcd6ad,this[_0x492a88(0x2ec)]=_0x28d5d5,this[_0x492a88(0x27b)]=_0xc97f7f;}[_0x35f73b(0x2b9)](){const _0x1820da=_0x35f73b;let _0x2e60e6=super[_0x1820da(0x2b9)]();return _0x2e60e6[_0x1820da(0x3e9)]=_0x57c57c=>this['_sheetTransformSelectionsService'][_0x1820da(0x3dc)](_0x57c57c),_0x2e60e6;}async[_0x35f73b(0x29d)](){const _0x410c85=_0x35f73b;let _0x1dd0a5=await super[_0x410c85(0x29d)]();return this[_0x410c85(0x2fa)](this['_commandService'][_0x410c85(0x310)]((_0xeaa67c,_0x419372)=>{const _0x31b9cd=_0x410c85;if(_0xeaa67c['type']!==_0x37c8a8['MUTATION']||_0x419372!=null&&_0x419372[_0x31b9cd(0x24a)]||_0x419372!=null&&_0x419372[_0x31b9cd(0x229)])return;let _0x4b23e6=_0xeaa67c[_0x31b9cd(0x3fc)];if((_0x4b23e6==null?void 0x0:_0x4b23e6[_0x31b9cd(0x333)])!==this[_0x31b9cd(0x285)])return;let _0xb02d9=_0xeaa67c,_0x22761d=this[_0x31b9cd(0x20f)][_0x31b9cd(0x33e)][_0x31b9cd(0x325)](this[_0x31b9cd(0x20f)]['interceptor'][_0x31b9cd(0x2e8)]()[_0x31b9cd(0x1b2)])([_0xb02d9],this[_0x31b9cd(0x2db)])||[_0xb02d9];this[_0x31b9cd(0x358)](_0x22761d[0x0]);})),_0x1dd0a5;}};Jt=z([R(0x3,_0x1b23c9(_0x2b692d)),R(0x4,_0x1b23c9(_0x781451)),R(0x5,_0x1b23c9(_0x2c19d0)),R(0x6,_0x1b23c9(_0x1ee4fd)),R(0x7,_0x1b23c9(H)),R(0x8,_0x1b23c9(L)),R(0x9,_0x599079),R(0xa,_0x3594cb),R(0xb,_0x5c3744),R(0xc,_0x5043f7),R(0xd,_0xbefc86(jt)),R(0xe,_0xbefc86(V))],Jt);const Yt=_0x10bb42('univer-pro.collaboration-client.network-condition.service');function Xt(_0x17e1c0){const _0x1fa059=_0x35f73b;let _0x554a89=_0x17e1c0[_0x1fa059(0x3fe)],_0x254a23=JSON[_0x1fa059(0x1e9)](_0x554a89);switch(_0x254a23[_0x1fa059(0x32e)]){case _0x2e4f4e[_0x1fa059(0x1ef)]:case _0x2e4f4e[_0x1fa059(0x346)]:{let _0x147ba6=_0x254a23['infoRsp'];return{..._0x254a23,'data':_0x147ba6,'cmd':_0x254a23['cmd']};}case _0x2e4f4e[_0x1fa059(0x2f8)]:{let _0x1daed0=_0x254a23[_0x1fa059(0x1d7)];return{..._0x254a23,'data':_0x1daed0,'cmd':_0x254a23['cmd']};}case _0x2e4f4e['RECV']:{let _0x372b31=_0x254a23['collaMsg'];switch(_0x372b31['eventID']){case _0x576af5[_0x1fa059(0x3e3)]:var _0x3dfc4e;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x3dfc4e=_0x372b31[_0x1fa059(0x28d)])==null?void 0x0:_0x3dfc4e['cs']},'cmd':_0x254a23['cmd']};case _0x576af5['CHANGESET_ACK']:var _0x1acea8;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x1acea8=_0x372b31[_0x1fa059(0x3f0)])==null?void 0x0:_0x1acea8['cs']},'cmd':_0x254a23['cmd']};case _0x576af5[_0x1fa059(0x295)]:var _0x589819;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x589819=_0x372b31[_0x1fa059(0x296)])==null?void 0x0:_0x589819['cs']},'cmd':_0x254a23['cmd']};case _0x576af5[_0x1fa059(0x28e)]:var _0x3fa497;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x3fa497=_0x372b31['csRejEvent'])==null?void 0x0:_0x3fa497['cs']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2c1)]:var _0x515d37;return{..._0x254a23,'data':{..._0x372b31,'data':(_0x515d37=_0x372b31['csShouldRetryEvent'])==null?void 0x0:_0x515d37['cs']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2ba)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x19d)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2d6)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x219)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5['USERS_LEAVE']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x3a6)]},'cmd':_0x254a23['cmd']};case _0x576af5['LIVESHARE_NEW_HOST']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31['liveShareNewHost']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x334)]:case _0x576af5['LIVESHARE_OPERATION']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x27c)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5['LIVESHARE_TERMINATE']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x3e0)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x33b)]:return{..._0x254a23,'data':_0x372b31,'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5['COMMENT_UPDATE']:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x329)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x1f9)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x2c2)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x3e6)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31['shouldCloseConn']},'cmd':_0x254a23[_0x1fa059(0x32e)]};case _0x576af5[_0x1fa059(0x2a7)]:return{..._0x254a23,'data':{..._0x372b31,'data':_0x372b31[_0x1fa059(0x294)]},'cmd':_0x254a23[_0x1fa059(0x32e)]};default:return _0x254a23;}}default:return _0x254a23;}}function Zt(_0x68b07b){const _0xe21b41=_0x35f73b;switch(_0x68b07b[_0xe21b41(0x32e)]){case _0x2e4f4e[_0xe21b41(0x1ef)]:case _0x2e4f4e['HELLO']:return JSON['stringify']({'cmd':_0x68b07b['cmd'],'routeKey':_0x68b07b['routeKey']});case _0x2e4f4e[_0xe21b41(0x36a)]:{let _0x28ed28;switch(_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x263)]){case _0x576af5[_0xe21b41(0x2ba)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x2ba)],'updateCursorEvent':_0x68b07b['data']['data']};break;case _0x576af5[_0xe21b41(0x356)]:_0x28ed28={'eventID':_0x576af5['USERS_LEAVE'],'leaveEvent':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5['USERS_ENTER']:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x2d6)],'joinEvent':_0x68b07b[_0xe21b41(0x3fe)]['data']};break;case _0x576af5[_0xe21b41(0x3b5)]:_0x28ed28={'eventID':_0x576af5['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5[_0xe21b41(0x211)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x211)],'liveShareOperation':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5['LIVESHARE_TERMINATE']:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x1c7)],'liveShareTerminate':_0x68b07b[_0xe21b41(0x3fe)]['data']};break;case _0x576af5[_0xe21b41(0x395)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x395)],'liveShareRequestHost':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x3fe)]};break;case _0x576af5[_0xe21b41(0x334)]:_0x28ed28={'eventID':_0x576af5[_0xe21b41(0x334)]};break;default:_0x28ed28={'eventID':_0x68b07b[_0xe21b41(0x3fe)][_0xe21b41(0x263)]};}return JSON['stringify']({'cmd':_0x68b07b[_0xe21b41(0x32e)],'routeKey':_0x68b07b[_0xe21b41(0x25a)],'collaMsg':_0x28ed28});}case _0x2e4f4e[_0xe21b41(0x2f8)]:return JSON[_0xe21b41(0x284)]({'cmd':_0x68b07b[_0xe21b41(0x32e)],'routeKey':_0x68b07b[_0xe21b41(0x25a)],'joinReq':_0x68b07b[_0xe21b41(0x3fe)]});case _0x2e4f4e[_0xe21b41(0x38b)]:return JSON['stringify']({'cmd':_0x68b07b['cmd'],'routeKey':_0x68b07b[_0xe21b41(0x25a)],'leaveReq':_0x68b07b[_0xe21b41(0x3fe)]});default:throw Error(_0xe21b41(0x3e2));}}const Qt=_0x10bb42(_0x35f73b(0x262));function $t(_0x84073e,_0x1e1bbc,_0x31c24b){const _0x2f4719=_0x35f73b;return _0x84073e+'/'+_0x1e1bbc+_0x2f4719(0x2de)+_0x31c24b+_0x2f4719(0x3c1);}function _0x3c29(_0x206ffe,_0x4b70b2){_0x206ffe=_0x206ffe-0x193;const _0x1ebdd4=_0x1ebd();let _0x3c2938=_0x1ebdd4[_0x206ffe];return _0x3c2938;}let en=class extends _0x1fae62{constructor(_0x3bbe21,_0x599fe4,_0x43cb9d,_0x2b9ec2,_0x1bc2b5){const _0x2f68d3=_0x35f73b;super(),this[_0x2f68d3(0x1c1)]=_0x3bbe21,this[_0x2f68d3(0x317)]=_0x599fe4,this[_0x2f68d3(0x21c)]=_0x43cb9d,this[_0x2f68d3(0x3f8)]=_0x2b9ec2,this[_0x2f68d3(0x255)]=_0x1bc2b5;}['_doCreateSocket'](_0x2b2409){const _0x16ad9a=_0x35f73b;let _0x3371bc=this[_0x16ad9a(0x1c1)][_0x16ad9a(0x2a9)](_0x19825e);if(!_0x3371bc)throw Error(_0x16ad9a(0x27e));let _0x19f6f5=_0x3371bc[_0x16ad9a(0x359)](_0x2b2409);if(!_0x19f6f5)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x32e8c9=new _0xd013fe(),_0x30c9c8=new _0x34cf84();_0x32e8c9[_0x16ad9a(0x364)](_0x19f6f5['close$']['subscribe'](_0x1aca55=>_0x30c9c8['next'](_0x1aca55))),_0x32e8c9[_0x16ad9a(0x364)](_0x2f6814(()=>_0x30c9c8[_0x16ad9a(0x25f)]()));let _0x1eca5b=new _0x34cf84();_0x32e8c9['add'](_0x19f6f5[_0x16ad9a(0x2f5)][_0x16ad9a(0x1f4)](_0x2bdb63=>_0x1eca5b[_0x16ad9a(0x3f6)](_0x2bdb63))),_0x32e8c9['add'](_0x2f6814(()=>_0x1eca5b[_0x16ad9a(0x25f)]()));let _0x44c10e=new _0x34cf84();_0x32e8c9[_0x16ad9a(0x364)](_0x19f6f5[_0x16ad9a(0x1a8)][_0x16ad9a(0x1f4)](_0x31ba49=>{const _0x3c6f75=_0x16ad9a;let _0x23206c=Xt(_0x31ba49);_0x44c10e[_0x3c6f75(0x3f6)](_0x23206c);})),_0x32e8c9[_0x16ad9a(0x364)](_0x2f6814(()=>_0x44c10e[_0x16ad9a(0x25f)]()));let _0x41edc1,_0x202558=()=>{const _0x5e4028=_0x16ad9a;_0x1eca5b[_0x5e4028(0x3f6)](new Event('connection\x20error')),_0x30c9c8[_0x5e4028(0x3f6)](new Event(_0x5e4028(0x19e))),_0x41edc1[_0x5e4028(0x383)]();};return _0x41edc1={'memberID':'','close$':_0x30c9c8[_0x16ad9a(0x3ac)](),'error$':_0x1eca5b['asObservable'](),'open$':_0x19f6f5[_0x16ad9a(0x1ea)],'message$':_0x44c10e[_0x16ad9a(0x3ac)](),'send':_0x1c00d7=>{const _0x35d921=_0x16ad9a;if(_0x1c00d7[_0x35d921(0x32e)]===_0x2e4f4e[_0x35d921(0x36a)]){if(_0x1c00d7[_0x35d921(0x3fe)][_0x35d921(0x263)]===_0x576af5['SUBMIT_CHANGESET']){this[_0x35d921(0x313)](_0x41edc1,_0x1c00d7[_0x35d921(0x3fe)])[_0x35d921(0x1eb)](_0x18d5c2=>{const _0x31054d=_0x35d921;this[_0x31054d(0x3f8)]['error'](_0x18d5c2),_0x202558();});return;}if(_0x1c00d7[_0x35d921(0x3fe)][_0x35d921(0x263)]===_0x576af5[_0x35d921(0x2a8)]){let _0x2ab4c3=_0x1c00d7[_0x35d921(0x3fe)];this[_0x35d921(0x36c)](_0x2ab4c3)['then'](_0x1c3bd6=>{const _0x4a41fd=_0x35d921;_0x44c10e[_0x4a41fd(0x3f6)]({'cmd':_0x2e4f4e[_0x4a41fd(0x20e)],'code':_0x2989c5['OK'],'routeKey':_0x2ab4c3[_0x4a41fd(0x3fe)][_0x4a41fd(0x285)],'routeType':'','data':{'eventID':_0x576af5['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1c3bd6}}});})[_0x35d921(0x1eb)](_0x2da999=>{this['_logService']['error'](_0x2da999),_0x202558();});return;}}_0x19f6f5[_0x35d921(0x2a0)](Zt(_0x1c00d7));},'close':()=>{const _0x4a9878=_0x16ad9a;_0x19f6f5[_0x4a9878(0x383)](),_0x32e8c9['dispose']();}},_0x41edc1;}async[_0x35f73b(0x313)](_0x19fbaa,_0x4dfe7f){const _0x26f786=_0x35f73b;var _0x4ea01f;let {unitType:_0x297d80,unitID:_0x1311e8,changeset:_0x1c8a2d}=_0x4dfe7f['data'],_0x2cbd6a={'unitID':_0x1311e8,'memberID':_0x19fbaa['memberID'],'type':_0x297d80,'changeset':_0x45be51(_0x1c8a2d)},_0x18ca7f=this[_0x26f786(0x21c)][_0x26f786(0x2fb)](U),_0x1c8ed4=$t((_0x4ea01f=_0x18ca7f==null?void 0x0:_0x18ca7f[_0x26f786(0x199)])==null?_0x26f786(0x29b):_0x4ea01f,_0x297d80,_0x1311e8);try{await this[_0x26f786(0x317)][_0x26f786(0x1b7)](_0x1c8ed4,{'body':_0x2cbd6a});}catch(_0xb0b6aa){throw this['_logService']['error'](_0x26f786(0x1cb),'submit\x20changeset\x20error!'),_0xb0b6aa;}}async[_0x35f73b(0x36c)](_0x1d8785){const _0xb92b16=_0x35f73b;let {unitID:_0x48381e,from:_0x244881,to:_0x4194c3,unitType:_0x146d95}=_0x1d8785[_0xb92b16(0x3fe)];return(await this[_0xb92b16(0x255)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x48381e,'type':_0x146d95,'from':_0x244881,'to':_0x4194c3}))[_0xb92b16(0x26e)][_0xb92b16(0x323)](_0x824cbf=>((_0x824cbf[_0xb92b16(0x391)]===null||_0x824cbf[_0xb92b16(0x391)]===void 0x0)&&(_0x824cbf[_0xb92b16(0x391)]=[]),_0x824cbf));}};en=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x1b23c9(_0x470bb9)),R(0x2,_0x160dc0),R(0x3,_0x3594cb),R(0x4,_0x3af6ca)],en);let Q=class extends _0x1fae62{get[_0x35f73b(0x1ca)](){return this['_socket$']['getValue']();}constructor(_0x5b11a7,_0x46a548,_0x3f894e,_0x515068,_0x4f43d5,_0xc2e49b){const _0xd5e749=_0x35f73b;super(),this[_0xd5e749(0x1c1)]=_0x5b11a7,this[_0xd5e749(0x3f8)]=_0x46a548,this['_configService']=_0x3f894e,this[_0xd5e749(0x2f9)]=_0x515068,this['_collaborationUIEventService']=_0x4f43d5,this[_0xd5e749(0x1b0)]=_0xc2e49b,I(this,_0xd5e749(0x368),new _0x10ace7(void 0x0)),I(this,_0xd5e749(0x293),this[_0xd5e749(0x368)][_0xd5e749(0x3ac)]()),I(this,_0xd5e749(0x370),null),I(this,_0xd5e749(0x1bf),new Map()),I(this,_0xd5e749(0x24f),new _0x10ace7(0x0)),I(this,_0xd5e749(0x32b),this[_0xd5e749(0x24f)][_0xd5e749(0x3ac)]()),I(this,_0xd5e749(0x228),!0x1),I(this,_0xd5e749(0x3ed),void 0x0),I(this,_0xd5e749(0x213),0x0),I(this,'_socketMessageSubscription',null),I(this,_0xd5e749(0x2ad),void 0x0),I(this,_0xd5e749(0x397),void 0x0),this[_0xd5e749(0x3d9)]();}[_0x35f73b(0x3d9)](){const _0x593d8d=_0x35f73b;this[_0x593d8d(0x1b0)]&&this[_0x593d8d(0x2fa)](this[_0x593d8d(0x1b0)][_0x593d8d(0x205)][_0x593d8d(0x1f4)](_0x8cf708=>{const _0x16ba0a=_0x593d8d;_0x8cf708&&!this[_0x16ba0a(0x1ca)]&&this['reconnect'](),_0x8cf708||this[_0x16ba0a(0x1d1)]();}));}[_0x35f73b(0x303)](){const _0x42cc32=_0x35f73b;var _0x244401;super['dispose'](),(_0x244401=this[_0x42cc32(0x277)])==null||_0x244401[_0x42cc32(0x2bc)](),this[_0x42cc32(0x277)]=null,this['_clearRetryConnectingTimer'](),this[_0x42cc32(0x1a7)](),this[_0x42cc32(0x230)](),this[_0x42cc32(0x1bf)][_0x42cc32(0x2c9)](_0x4f50d2=>_0x4f50d2[_0x42cc32(0x303)]()),this['_sessions'][_0x42cc32(0x202)](),this[_0x42cc32(0x24f)]['complete']();}async['requireSession'](_0x4108d1){const _0x1ed48e=_0x35f73b;if(this['_sessions']['has'](_0x4108d1))return this[_0x1ed48e(0x1bf)][_0x1ed48e(0x2a9)](_0x4108d1);this[_0x1ed48e(0x1f6)]();let _0x12ca98=this['_injector'][_0x1ed48e(0x2d1)](Ot,_0x4108d1,this['_socket$'][_0x1ed48e(0x3ac)]());return this[_0x1ed48e(0x1bf)][_0x1ed48e(0x2d4)](_0x4108d1,_0x12ca98),_0x12ca98;}['closeSession'](_0x511f32){const _0x1f884a=_0x35f73b;let _0x47079f=this[_0x1f884a(0x1bf)][_0x1f884a(0x2a9)](_0x511f32);if(_0x47079f&&(this[_0x1f884a(0x1bf)]['delete'](_0x511f32),_0x47079f[_0x1f884a(0x383)]()),!this[_0x1f884a(0x1bf)][_0x1f884a(0x3d7)]){var _0x7c3f11;(_0x7c3f11=this['_socket'])==null||_0x7c3f11[_0x1f884a(0x383)]();}}['reconnect'](){const _0xcaab3a=_0x35f73b;this[_0xcaab3a(0x213)]=0x0,this[_0xcaab3a(0x201)](),this[_0xcaab3a(0x2b7)]();}[_0x35f73b(0x201)](){const _0x14ff99=_0x35f73b;this[_0x14ff99(0x3ed)]!=null&&(clearTimeout(this[_0x14ff99(0x3ed)]),this[_0x14ff99(0x3ed)]=null);}async['_createSocket'](){const _0x3d7835=_0x35f73b;var _0x5f4bdf;let _0x441f80=this[_0x3d7835(0x21c)]['getConfig'](U),_0x508d1b=(_0x5f4bdf=_0x441f80==null?void 0x0:_0x441f80['collabWebSocketUrl'])==null?ut:_0x5f4bdf,_0x54bde4=await this[_0x3d7835(0x2f9)]['createSocket'](_0x508d1b);return this[_0x3d7835(0x370)]=_0x54bde4,_0x54bde4;}async[_0x35f73b(0x1f6)](){const _0x4c83fe=_0x35f73b;try{var _0x5b2e88,_0xca49d;let _0x1a7094=(_0x5b2e88=(_0xca49d=this[_0x4c83fe(0x1ca)])==null?this[_0x4c83fe(0x370)]:_0xca49d)==null?await this['_createSocket']():_0x5b2e88;if(_0x1a7094){var _0x1aa407;let _0x4ade1c=_0x1a7094[_0x4c83fe(0x2a0)];_0x1a7094['send']=_0x374724=>(_0x374724['cmd']!==_0x2e4f4e[_0x4c83fe(0x38b)]&&this['_rescheduleHeartbeat'](),_0x4ade1c['apply'](_0x1a7094,[_0x374724])),(_0x1aa407=this[_0x4c83fe(0x277)])==null||_0x1aa407[_0x4c83fe(0x2bc)](),this[_0x4c83fe(0x277)]=null,this[_0x4c83fe(0x277)]=_0x1a7094[_0x4c83fe(0x1a8)][_0x4c83fe(0x1f4)](_0x249394=>this[_0x4c83fe(0x318)](_0x1a7094,_0x249394)),_0x1a7094['error$'][_0x4c83fe(0x289)](_0x67a39f(0x1))[_0x4c83fe(0x1f4)](_0x3f0010=>this['_logService'][_0x4c83fe(0x3ba)](_0x4c83fe(0x286),_0x3f0010)),_0x1a7094[_0x4c83fe(0x1ea)][_0x4c83fe(0x289)](_0x67a39f(0x1))['subscribe'](()=>{const _0x1aaa70=_0x4c83fe;this[_0x1aaa70(0x311)](_0x1a7094);}),_0x1a7094[_0x4c83fe(0x377)][_0x4c83fe(0x289)](_0x67a39f(0x1))[_0x4c83fe(0x1f4)](_0x151602=>{const _0x1f311a=_0x4c83fe;this['_logService'][_0x1f311a(0x39c)](_0x1f311a(0x3f5),_0x1f311a(0x243),_0x151602),this[_0x1f311a(0x2cc)]();});}}catch(_0x38f618){this[_0x4c83fe(0x3f8)][_0x4c83fe(0x3ba)](_0x38f618),this[_0x4c83fe(0x2cc)]();}}[_0x35f73b(0x311)](_0x3fe7e4){const _0x9ae918=_0x35f73b;this[_0x9ae918(0x3f8)][_0x9ae918(0x39c)]('[CollaborationSessionService]',_0x9ae918(0x336)),_0x3fe7e4[_0x9ae918(0x2a0)]({'cmd':_0x2e4f4e[_0x9ae918(0x346)]}),this['_rescheduleHeartbeat']();}['_onOffline'](){const _0x2dd036=_0x35f73b;this[_0x2dd036(0x228)]=!0x1,this[_0x2dd036(0x370)]=null,this[_0x2dd036(0x24f)][_0x2dd036(0x3f6)](0x2),this[_0x2dd036(0x368)]['next'](null),this[_0x2dd036(0x1a7)](),this[_0x2dd036(0x230)]();}['_onConnectionFailed'](){const _0x964527=_0x35f73b;var _0x3e5be0;this['_onOffline'](),this[_0x964527(0x213)]<((_0x3e5be0=this[_0x964527(0x21c)]['getConfig'](_0x964527(0x2e3)))==null?0x3:_0x3e5be0)?(this[_0x964527(0x2bf)][_0x964527(0x374)]({'id':_0x964527(0x26f)}),this[_0x964527(0x2b7)]()):this[_0x964527(0x2bf)][_0x964527(0x374)]({'id':'SOCKET_FAILED'});}[_0x35f73b(0x2b7)](){const _0x283166=_0x35f73b;var _0x45579e;let _0x36cb9a=this['_retryCount'],_0x243eb=this[_0x283166(0x21c)]['getConfig'](U),_0x317fe2=_0x36cb9a===0x0?0x0:((_0x45579e=_0x243eb==null?void 0x0:_0x243eb[_0x283166(0x394)])==null?0x4e20:_0x45579e)*0x2**_0x36cb9a;this[_0x283166(0x3ed)]=setTimeout(()=>{const _0x5c692f=_0x283166;clearTimeout(this[_0x5c692f(0x3ed)]),this[_0x5c692f(0x3ed)]=null,this[_0x5c692f(0x1f6)]();},_0x317fe2),this[_0x283166(0x213)]+=0x1;}[_0x35f73b(0x318)](_0xca9eaa,_0x69fcb1){const _0x41ee3f=_0x35f73b;let {cmd:_0x248b6e}=_0x69fcb1;_0x248b6e===_0x2e4f4e[_0x41ee3f(0x346)]&&!this[_0x41ee3f(0x228)]&&(_0xca9eaa['memberID']=_0x69fcb1[_0x41ee3f(0x3fe)][_0x41ee3f(0x232)],this[_0x41ee3f(0x368)][_0x41ee3f(0x3f6)](_0xca9eaa),this[_0x41ee3f(0x24f)][_0x41ee3f(0x3f6)](0x3),this[_0x41ee3f(0x228)]=!0x0,this[_0x41ee3f(0x370)]=null),_0x248b6e===_0x2e4f4e[_0x41ee3f(0x1ef)]&&this['_clearTimeoutTimer'](),this[_0x41ee3f(0x3b3)]();}[_0x35f73b(0x3b3)](){const _0x464928=_0x35f73b;var _0x1821eb;this[_0x464928(0x230)](),this[_0x464928(0x2ad)]=setTimeout(()=>this[_0x464928(0x224)](),(_0x1821eb=this[_0x464928(0x21c)][_0x464928(0x2fb)](_0x464928(0x249)))==null?0x7530:_0x1821eb);}['_sendHeartbeat'](){const _0x1b0987=_0x35f73b;this[_0x1b0987(0x1ca)][_0x1b0987(0x2a0)]({'cmd':_0x2e4f4e[_0x1b0987(0x1ef)]}),this[_0x1b0987(0x208)]();}[_0x35f73b(0x208)](){const _0x369fac=_0x35f73b;var _0x11b00c;this['_timeoutTimer']=setTimeout(()=>this[_0x369fac(0x2cc)](),(_0x11b00c=this[_0x369fac(0x21c)][_0x369fac(0x2fb)](_0x369fac(0x376)))==null?mt:_0x11b00c);}[_0x35f73b(0x230)](){const _0x4139b9=_0x35f73b;this[_0x4139b9(0x2ad)]!=null&&(clearTimeout(this[_0x4139b9(0x2ad)]),this[_0x4139b9(0x2ad)]=null);}['_clearTimeoutTimer'](){const _0x41d246=_0x35f73b;this[_0x41d246(0x397)]!=null&&(clearTimeout(this[_0x41d246(0x397)]),this[_0x41d246(0x397)]=null);}};Q=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x3594cb),R(0x2,_0x160dc0),R(0x3,Qt),R(0x4,_0x1b23c9(L)),R(0x5,_0xbefc86(Yt))],Q);let tn=class extends _0x495984{constructor(_0x23e3b4,_0x4cb4a1,_0x303cf7,_0x703e3f){const _0x3c891f=_0x35f73b;var _0x2f5b21;super(),this['_injector']=_0x23e3b4,this[_0x3c891f(0x3e8)]=_0x4cb4a1,this[_0x3c891f(0x21c)]=_0x303cf7,this[_0x3c891f(0x2db)]=_0x703e3f,I(this,_0x3c891f(0x1b3),new Map()),I(this,'_entityInit$',new _0x34cf84()),I(this,_0x3c891f(0x23d),this[_0x3c891f(0x330)][_0x3c891f(0x3ac)]()),((_0x2f5b21=this['_configService'][_0x3c891f(0x2fb)](_0x3c891f(0x2dc)))==null?void 0x0:_0x2f5b21[_0x3c891f(0x3d3)])!==!0x1&&this[_0x3c891f(0x29d)]();}[_0x35f73b(0x303)](){const _0x5a6275=_0x35f73b;super[_0x5a6275(0x303)](),this[_0x5a6275(0x1b3)]['forEach'](_0x525f61=>_0x525f61[_0x5a6275(0x303)]()),this['_entities'][_0x5a6275(0x202)]();}['getCollabEntity'](_0x457eab){const _0x30ead9=_0x35f73b;var _0x416ef6;return(_0x416ef6=this[_0x30ead9(0x1b3)]['get'](_0x457eab))==null?null:_0x416ef6;}[_0x35f73b(0x215)](_0x15b4e0){const _0x34d927=_0x35f73b;let _0x236aba=this[_0x34d927(0x3b6)](_0x15b4e0);return _0x236aba?_0x58d9e6(_0x236aba):this[_0x34d927(0x330)][_0x34d927(0x289)](_0xb3f571(_0x1b80e6=>_0x1b80e6[_0x34d927(0x285)]===_0x15b4e0));}[_0x35f73b(0x3eb)](_0x24ed2c){const _0x331aa2=_0x35f73b;return _0x5e846a(this[_0x331aa2(0x215)](_0x24ed2c)['pipe'](_0xcf55(()=>void 0x0)));}[_0x35f73b(0x29d)](){const _0x251598=_0x35f73b;this[_0x251598(0x2db)]['getTypeOfUnitAdded$'](_0x57ec00[_0x251598(0x3b1)])[_0x251598(0x289)](_0x1aedcb(this[_0x251598(0x3f7)]),_0x46e5c3(0x10))[_0x251598(0x1f4)](async _0x585bb4=>{const _0x56e7f9=_0x251598;let _0x446396=_0x585bb4[_0x56e7f9(0x196)][_0x56e7f9(0x1b9)](),_0x31441f=await this[_0x56e7f9(0x328)](_0x446396,_0x57ec00[_0x56e7f9(0x3b1)]);this[_0x56e7f9(0x1b3)]['set'](_0x446396,_0x31441f);}),this[_0x251598(0x2db)][_0x251598(0x316)](_0x57ec00[_0x251598(0x32a)])['pipe'](_0x1aedcb(this['dispose$']),_0x46e5c3(0x10))['pipe'](_0xb3f571(_0x5d08c0=>!_0x5d08c0[_0x251598(0x196)]['getUnitId']()['startsWith']('__')))[_0x251598(0x1f4)](async _0x194d5d=>{const _0x1c3d8c=_0x251598;let _0x359323=_0x194d5d['unit'][_0x1c3d8c(0x1b9)](),_0x4239a0=await this[_0x1c3d8c(0x328)](_0x359323,_0x57ec00[_0x1c3d8c(0x32a)]);this[_0x1c3d8c(0x1b3)][_0x1c3d8c(0x2d4)](_0x359323,_0x4239a0);}),_0x34bad6(this[_0x251598(0x2db)][_0x251598(0x25d)](_0x57ec00['UNIVER_SHEET']),this[_0x251598(0x2db)]['getTypeOfUnitDisposed$'](_0x57ec00[_0x251598(0x32a)]))[_0x251598(0x289)](_0x1aedcb(this[_0x251598(0x3f7)]))['subscribe'](_0x68f984=>{const _0x57465e=_0x251598;let _0x4fa64e=_0x68f984[_0x57465e(0x1b9)](),_0x2cfa3f=this[_0x57465e(0x1b3)][_0x57465e(0x2a9)](_0x4fa64e);_0x2cfa3f&&(_0x2cfa3f[_0x57465e(0x303)](),this[_0x57465e(0x1b3)][_0x57465e(0x38c)](_0x4fa64e));});}async['_startCollaboration'](_0x1badeb,_0x353833){const _0x19c8b6=_0x35f73b;let _0x3c144a=await this[_0x19c8b6(0x3e8)][_0x19c8b6(0x1bd)](_0x1badeb),_0x482d2f=this[_0x19c8b6(0x1c1)]['createInstance'](this[_0x19c8b6(0x3dd)](_0x353833),_0x1badeb,_0x353833,_0x3c144a);return await _0x482d2f[_0x19c8b6(0x2df)](),this['_entityInit$'][_0x19c8b6(0x3f6)](_0x482d2f),_0x482d2f;}[_0x35f73b(0x3dd)](_0x2aecb9){const _0x19b058=_0x35f73b;switch(_0x2aecb9){case _0x57ec00[_0x19b058(0x32a)]:return qt;case _0x57ec00[_0x19b058(0x3b1)]:return Jt;default:throw Error(_0x19b058(0x37e)+_0x2aecb9);}}};tn=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x1b23c9(Q)),R(0x2,_0x160dc0),R(0x3,_0x599079)],tn);function _0x1ebd(){const _0x416d4f=['ONLINE','768985KCuVTO','status','_clearScheduledTask','_snapshotServerService','_clearRedo','awaitingChangeset','_initMergeInterceptor','onMissingChangesets','routeKey','_initCloseConn','string','getTypeOfUnitDisposed$','onTransformState','complete','saveChangeset','MUTATION','univer-pro.collaboration-client-socket-service','eventID','c2Prime','result','onRemoteRej','_transformSelections','onSendChangeset','_clearCollaborationTimeoutTimer','reqId','_localeService','toPrimitive','__splitChunk__','changesets','SOCKET_FAILED_RETRY','localCacheService','_roomCreated$','_updateState','&assign=','\x20-\x20','transformChangesets','onStarting','_socketMessageSubscription','method','c1Prime','location','_sheetTransformSelectionsService','liveShareOperation','originalMeta','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','members','_getSendChangesetTimeout','_collaborationSessionService','_resendTimeout','/fetchmissing?from=','stringify','unitID','[CollaborationSessionService]:\x20socket\x20error','getSnapshotAPIPath','SUBMIT_CHANGESET','pipe','_event$','subUnitId','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','permissionRejEvent','CHANGESET_REJ','_getSignURL','/-/object/-/batch_allowed','_disableEditing','getCfgEnableObjInherit','socket$','uniscriptRunEvent','NEW_CHANGESETS','newCsEvent','_throwTelemetryCollaborationNewChangeset','object','onLocalMutation','UUID','/universer-api/comb','copyFileMeta','_init','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_eventService','send','_lockTransition','href','_sessionStatus$','CONFLICT','code','DEFAULT_FILE_NAME','UNISCRIPT_RUN','FETCH_MISSING','get','listRoles','executeCommand','_onRecvEvent','_sendHeartbeatTimer','disableLocalCache','_maxTotalRetryTimeout','max','_incrementRevisionNumber','1949906KETQBQ','_undoRedoService','getTime','/universer-api/authz','_toggleOffline','_tryReconnect','203444GLMGNs','_createHandler','UPDATE_CURSOR','iterator','unsubscribe','auth.needGotoLoginAlert','_createInitialStateImpl','_collaborationUIEventService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','CHANGESET_SHOULD_RETRY','updatePermissionObjEvent','_checkMissing','252zJXcHw','5774ejZOMZ','onRemoteAck','IDLE','onMissedChangesetFetched','forEach','SNAPSHOT_URL_KEY','_handleRemoteChangesets','_onConnectionFailed','not_collab','findIndex','setCurrentUser','onTransformRemoteChangesetByStateCache','createInstance','PSEUDO_FETCH_MISSING_RESULT','updateOfflineData','set','_commentUpdate$','USERS_ENTER','/universer-api/user/session-ticket','_getCurrentRevision','fromCharCode','members$','_univerInstanceService','collaboration-client.config','encrypt','/unit/','init','_userManagerService','offline','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','RETRY_CONNECTING_MAX_COUNT','_awaitingChangeset','_onRemoteChangeset','m2Prime','\x0aAfter:\x20','getInterceptPoints','isPermissionRej','/universer-api/stream/file/upload','_state','type','_getRedoStack','SUBMIT_CHANGESET_TIMEOUT','refreshPermission','LOCAL_CACHE_INTERVAL','unknown','reverse','saveSnapshot','append','error$','&to=','enableOfflineEditing','JOIN','_socketService','disposeWithMe','getConfig','_memberService','editing\x20status\x20changed\x20to','reduce','getImageSourceCache','_onJoinRoomEvent','_telemetryService','3SkJUtA','dispose','objectType','setConfig','_clearUndo','UNIVER_COLLABORATION_CLIENT_PLUGIN','session.room-full','_acknowledgedAwaitingRevision','OFFLINE','collaboration-client.local-cache-service','/universer-api/file/{fileID}/sign-url','incrementRevOfUnit','_localCacheService','_transformStack','onMutationExecutedForCollab','_onConnectionOpen','version','_submitChangeset','updateSnapshot','uploadFileServerUrl','getTypeOfUnitAdded$','_httpService','_onMessage','revision','call','listCollaborators','onload','body','?url=','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_HTTPService','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','roles','map','NO_OTHER_CLIENTS_EDITING','fetchThroughInterceptors','\x20to\x20','_unlockTransition','_startCollaboration','commentUpdateEvent','UNIVER_DOC','status$','getSheetBlock','[CollaborationEntity]','cmd','[OfflineState]:\x20received\x20changeset.','_entityInit$','charCodeAt','cfgEnableObjInherit','unitId','LIVESHARE_FETCH_OPERATIONS','sheets','socket\x20open.','_getDownloadEndpointURL','every','_isEchoedAwaitingChangeset','/block/','MSG_FOR_ERROR','setShowComponents','_handlerCallback','interceptor','getOwnPropertyDescriptor','_sender','synced','find','605240vvSBgt','_acknowledgeAwaitingIfReady','ws://127.0.0.1:8000/universer-api/comb/connect','HELLO','_unitID','_updateLocalCache','_substituteUndoStack','onRemoteRetry','range','JOIN_ROOM_FAILED','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','createCollaborator','BASE64','Error\x20on\x20receiving\x20event','_onRemoteACK','saveImage','url','getImage','SOCKET_FAILED','USERS_LEAVE','_toggleOnline','_onLocalMutation','createSocket','getMember','telemetry\x20info\x20is\x20not\x20initialized','_joinRoom','socketService','session.room-permission-denied','encode','0.24.0','appendMutation','_onCombEvent','__Key__','add','removeMember','_revisionService','_handler','_socket$','_telemetryInfo','INGEST','enableAuthServer','_fetchMissChangesets','_roomMembers','loadOfflineData','_transformAndApplyRemoteChangeset','_candidateSocket','/collaborator','[UniverCollaborationClientPlugin]','/object/','emitEvent','decorate','HEARTBEAT_TIMEOUT','close$','hostname','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','waitForRoom$','length','OTHER_CLIENT_EDITING','resourceIDs','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getResourcesRequest','push','[PendingState]:\x20received\x20acknowledgement.','objectActions','close','AWAITING','stopTime','_createInitialState','People','ERROR_IMAGE_TYPE','NOT_COLLAB','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LEAVE','delete','_members$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','update','toggleOffline','mutations','_substituteRedoStack','_pendingMutations','retryConnectingInterval','LIVESHARE_REQUEST_HOST','_getLoginPath','_timeoutTimer','change$','ERROR_IMAGE','PERMISSION_DENIED','getAllMembers','debug','_waitCount','event$','default','ERROR_EXCEED_SIZE','FAIL','_applyRemoteChangeset','PENDING','enableSingleActiveInstanceLock','slice','leaveEvent','objects','allowed','_transformUndoredo','_permissionService','collaboratorID','asObservable','getFocusedUnit','fetching\x20missing\x20changesets\x20from\x20','_remoteChangesetQueue','textRanges','UNIVER_SHEET','_state$','_rescheduleHeartbeat','objectID','LIVESHARE_NEW_HOST','getCollabEntity','updateCollaborator','_initRequestHeader','getMemberID','error','_initDependencies','session.room-cnt-exceeds','sessionStatus','/universer-api/uniscript','POST','responseType','/new_changes','_transformService','_onUserLeave','headers','_collaborationPaused','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','list','_getUploadFileURL','loadUnitOfRevision','loadSheet','_cfgEnableObjInherit','_getUndoStack','_registerDependencies','_scheduleCollaborationTimeoutTimer','transformUndoRedo','missingChangesets','getSheetId','updatePermissionPoint','enableCollaboration','_exhaustRemoteChangesetQueue','CHANGESET_ACK','?size=','size','put','_listenToNetworkCondition','_syncEditingCollabCursor','override','transformSelections','_getCtorByUniverInstanceType','_transformRemoteChangesetByStateCache','title','liveShareNewHost','onCommentUpdate','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','PERMISSION_REJ','_replayCachedMutations','_onRemoteRejected','SHOULD_CLOSE_CONN','/allowed','_collabSessionService','onTransformSelections','_decreaseWaiting','readyForCollab','toggleOnline','_retryConnectingTimer','deepClone','conflict','csAckEvent','_onUserJoin','_changesetSessionId','session.join-failed','now','[CollaborationSessionService]','next','dispose$','_logService','initWorkbookPermissionChange','[DataLoaderService]','onRemoteChangeset','params','_scheduleCompleteTimestamp','data','awaiting','_imageSourceCache','addImageSourceCache','unit','\x0aCurrent:\x20','defineProperty','collabSubmitChangesetUrl','\x20in\x20_schedule.','_instanceService','[OfflineState]:\x20received\x20rejection.','updateCursorEvent','connection\x20error','_sendingTimer','_type','_transformRemoteChangesetByIMECache','/universer-api/snapshot','_transformStateCache','min','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','actions','_clearTimeoutTimer','message$','_queuedRemoteChangesets','file','[CollaborationState]:\x20apply\x20error!','FileId','_executeRemoteChangeset','JOINING','_onRemoteRetry','_networkConditionService','getValue','COMPRESS_MUTATION_SEND','_entities','userID','_acknowledgeAwaiting','session','post','_schedule','getUnitId','symbol','compose','has','requireSession','isArray','_sessions','collaborators','_injector','COMMENT_UPDATE','selections','JOIN_ROOM_FULL','_redoStacks','state','LIVESHARE_TERMINATE','updateMember','_showConflictNotification','_socket','[CollaborationSession]','_emitMembers','COMPRESS_MUTATION_APPLY','_singleActiveUnitService','_updateStatus','_stopTelemetryCollaborationNewChangeset','_onOffline','fetch_missing','univer-pro.collaboration-client.single-active-unit-service','_unitInfo$','/rev/','values','joinRsp','authzUrl','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','1506328sYRlfl','[OfflineState]:\x20received\x20acknowledgement.','onTransformIME','[PendingState]:\x20received\x20rejection.','getUnitStatus$','/-/object/list','_onFetchMissResult','_commentService','_transitionLocked','_removeRoom','6NwCtJp','4093040iLWzFy','getUnitOnRev','transformMutationsWithChangeset','loginUrlKey','parse','open$','catch','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','commentUpdate$','registerHTTPInterceptor','HEARTBEAT','_getAPIPrefix','_getAPIPrefixPath','_initUnitPermissionChange','_onConflict','subscribe','fetchMissingChangesets','_tryEnsureSocket','resolve','sort','UPDATE_PERMISSION_OBJ','create','pluginName','_collaborationTimeoutTimer','pending','AWAITING_WITH_PENDING','onTransformRemoteChangesetByIMECache','OTHER_CLIENTS_EDITING','_clearRetryConnectingTimer','clear','rev','CLOSE_ROOM','online$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_startTelemetryCollaborationNewChangeset','_waitForHeartbeatResponse','SUCCUSS','entries','onStateChange','encodeURIComponent','reject','RECV','_compressMutationService','roomInfos','LIVESHARE_OPERATION','closeSession','_retryCount','_changesetReqId','getCollabEntity$','startTime','sessionStatus$','subject','joinEvent','{fileID}','/resources','_configService','getCurrentRevOfUnit','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','resend','localeService','/universer-api/oidc/authpage','_resendWithTimeout','name','_sendHeartbeat','_resendTimer','editingUnit','_change$','_socketReady','onlyLocal','setCfgEnableObjInherit','[CollaborationUndoRedoService]','collaboration_new_changeset','function','_config','session.room-not-exists','_clearHeartbeatTimer','_isPermissionRej','memberID','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_commandService','save\x20fail\x20reason\x20is\x20','sid','fetchMiss','&source=','[SyncedState]:\x20received\x20acknowledgement.','capture','unitId\x20is\x20not\x20found','onSyncEditingCollabCursor','entityInit$','PERSON','requestParams','_replaceFileID','Univer','_clearLocalCache','socket\x20close','_members','_shouldReportTelemetry','_transformIMECache','@univerjs-pro/collaboration-client','_snapshotService','HEARTBEAT_INTERVAL','fromCollab','getCurrentUser','[FetchMissState]','baseRev','FETCH_MISS','_status$','replace'];_0x1ebd=function(){return _0x416d4f;};return _0x1ebd();}var nn=_0x35f73b(0x247),rn=_0x35f73b(0x360);let an=class extends _0x1fae62{constructor(_0x51171d,_0x5a5f36){const _0x588d23=_0x35f73b;super(),this[_0x588d23(0x2db)]=_0x51171d,this[_0x588d23(0x21c)]=_0x5a5f36,this['_init']();}[_0x35f73b(0x29d)](){const _0x396491=_0x35f73b;this['disposeWithMe'](this[_0x396491(0x2db)]['focused$']['subscribe'](()=>{const _0x495fb0=_0x396491;var _0x57c414;let _0x1ddec1=this[_0x495fb0(0x2db)][_0x495fb0(0x3ad)](),_0x3ec9a1=(_0x57c414=this[_0x495fb0(0x21c)][_0x495fb0(0x2fb)](_0x495fb0(0x2a6)))==null?_0x495fb0(0x241):_0x57c414;_0x1ddec1 instanceof _0x3c3bb3&&(_0x3ec9a1=_0x1ddec1['name']),document[_0x495fb0(0x3df)]=_0x3ec9a1;}));}};an=z([R(0x0,_0x599079),R(0x1,_0x160dc0)],an);let on=class{constructor(_0x47ea86,_0x43f16e,_0x5035f0){const _0x1a2d8e=_0x35f73b;this[_0x1a2d8e(0x21c)]=_0x47ea86,this[_0x1a2d8e(0x317)]=_0x43f16e,this[_0x1a2d8e(0x220)]=_0x5035f0,this[_0x1a2d8e(0x2df)]();}[_0x35f73b(0x2df)](){const _0x56d240=_0x35f73b;this['_httpService'][_0x56d240(0x1ee)]({'priority':0x1,'interceptor':(_0x1b8c11,_0x6cd5a)=>_0x6cd5a(_0x1b8c11)['pipe'](_0x1f0de5(async _0x19e47d=>{const _0x28a2f1=_0x56d240;let _0x4f29cd=_0x19e47d;if(_0x4f29cd['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window['confirm'](this['localeService']['t'](_0x28a2f1(0x2bd)))){let _0x2f7bc0=window[_0x28a2f1(0x20c)](window[_0x28a2f1(0x27a)][_0x28a2f1(0x2a2)]);window[_0x28a2f1(0x27a)]['href']=this[_0x28a2f1(0x396)]()+_0x28a2f1(0x31e)+_0x2f7bc0;}}return _0x4f29cd;}))});}['_getLoginPath'](){const _0x4756c5=_0x35f73b;var _0x2e1453;let _0x539e0d=this[_0x4756c5(0x21c)][_0x4756c5(0x2fb)](U);return(_0x2e1453=_0x539e0d==null?void 0x0:_0x539e0d[_0x4756c5(0x1e8)])==null?_0x4756c5(0x221):_0x2e1453;}};on=z([R(0x0,_0x160dc0),R(0x1,_0x1b23c9(_0x470bb9)),R(0x2,_0x1b23c9(_0x2c19d0))],on);let sn=class extends _0x1fae62{constructor(_0x1505e1,_0x8ab935){const _0x188273=_0x35f73b;super(),this[_0x188273(0x320)]=_0x1505e1,this['_configService']=_0x8ab935,I(this,_0x188273(0x3cb),!0x1),this['_initMergeInterceptor']();}[_0x35f73b(0x258)](){const _0x1f92ab=_0x35f73b;let _0x2c09fb=this;this[_0x1f92ab(0x2fa)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3b3b49({'isMatch'(_0x2c906c){const _0x26b5f2=_0x1f92ab;var _0x9f03d4;if(_0x2c906c[_0x26b5f2(0x278)]==='POST'&&(_0x9f03d4=_0x2c906c[_0x26b5f2(0x23f)])!=null&&_0x9f03d4[_0x26b5f2(0x31d)]){let {objectID:_0x31daad,objectType:_0x45724d}=_0x2c906c[_0x26b5f2(0x23f)]['body']||{};if(!_0x31daad||_0x45724d===void 0x0)return!0x1;let _0x168f10=_0x2c09fb[_0x26b5f2(0x1f1)]()+'/'+_0x45724d+'/object/'+_0x31daad+'/allowed';if(_0x2c906c[_0x26b5f2(0x353)]===_0x168f10)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1bb03c){const _0x3b1cd2=_0x1f92ab;var _0x4d2f86;return(_0x4d2f86=_0x1bb03c[_0x3b1cd2(0x23f)])==null?void 0x0:_0x4d2f86[_0x3b1cd2(0x31d)];},'mergeParamsToRequest'(_0x964296,_0xefafdb){const _0x3459a7=_0x1f92ab;let _0x322b65=_0x2c09fb[_0x3459a7(0x1f1)]()+_0x3459a7(0x290),_0x1476e5=_0x964296[_0x3459a7(0x2fe)]((_0x5bcef1,_0x2be337)=>{const _0x7582b4=_0x3459a7;let {unitID:_0xc461d1,objectID:_0x142126,objectType:_0x48e60f,actions:_0x1a6b03}=_0x2be337;return _0x5bcef1[_0xc461d1]||(_0x5bcef1[_0xc461d1]={}),_0x5bcef1[_0xc461d1][_0x142126]||(_0x5bcef1[_0xc461d1][_0x142126]={'objectID':_0x142126,'objectType':_0x48e60f,'actions':[]}),_0x5bcef1[_0xc461d1][_0x142126][_0x7582b4(0x1a6)][_0x7582b4(0x380)](..._0x1a6b03),_0x5bcef1;},{}),_0x361842=[];for(let _0x1b07e3 in _0x1476e5)for(let _0x17446c in _0x1476e5[_0x1b07e3]){let {actions:_0x497990,objectType:_0x47ce06}=_0x1476e5[_0x1b07e3][_0x17446c],_0x187d61=[...new Set(_0x497990)];_0x361842[_0x3459a7(0x380)]({'unitID':_0x1b07e3,'objectID':_0x17446c,'objectType':_0x47ce06,'actions':_0x187d61});}return new _0x4dfcec(_0x3459a7(0x3bf),_0x322b65,{'headers':_0xefafdb[_0x3459a7(0x3c4)],'withCredentials':_0xefafdb['withCredentials'],'responseType':_0xefafdb[_0x3459a7(0x3c0)],'body':{'requests':_0x361842}});}},{'distributeResult'(_0x2353af,_0x2fa17f){let {objectActions:_0x38cffd}=_0x2353af;return _0x2fa17f['map'](_0x23663d=>{const _0x37c382=_0x3c29;let {unitID:_0x36d287,objectID:_0x3e7345,actions:_0x25c9b1}=_0x23663d,_0x414c87=_0x38cffd[_0x37c382(0x342)](_0x4dee31=>_0x4dee31[_0x37c382(0x285)]===_0x36d287&&_0x4dee31[_0x37c382(0x3b4)]===_0x3e7345);return{'config':_0x23663d,'result':{'actions':_0x25c9b1[_0x37c382(0x323)](_0x53fd53=>_0x414c87==null?void 0x0:_0x414c87['actions'][_0x37c382(0x342)](_0x97e5c7=>_0x97e5c7['action']===_0x53fd53))['filter'](_0x5b4242=>!!_0x5b4242),'error':_0x2353af[_0x37c382(0x3ba)]}};});}})}));}[_0x35f73b(0x1f1)](){const _0x25b945=_0x35f73b;var _0x40868c;let _0x51cacc=this[_0x25b945(0x21c)][_0x25b945(0x2fb)](U);return(_0x40868c=_0x51cacc==null?void 0x0:_0x51cacc[_0x25b945(0x1d8)])==null?_0x25b945(0x2b5):_0x40868c;}async[_0x35f73b(0x1fa)](_0x56ccc8){const _0x205cd4=_0x35f73b;let _0x2cce90=this['_getAPIPrefixPath']()+'/'+_0x56ccc8[_0x205cd4(0x304)]+'/object';return(await this[_0x205cd4(0x320)][_0x205cd4(0x1b7)](_0x2cce90,{'body':_0x56ccc8}))['body'][_0x205cd4(0x3b4)]||'';}async[_0x35f73b(0x3c7)](_0x542db8){const _0x19c394=_0x35f73b;let _0x699b8d=this[_0x19c394(0x1f1)]()+_0x19c394(0x1df);return(await this['_HTTPService']['post'](_0x699b8d,{'body':_0x542db8}))[_0x19c394(0x31d)][_0x19c394(0x3a7)];}async[_0x35f73b(0x38f)](_0xf1a04b){const _0x4858c9=_0x35f73b;var _0x28b5ab;let _0x20a19b=this[_0x4858c9(0x1f1)]()+'/'+_0xf1a04b['objectType']+_0x4858c9(0x373)+_0xf1a04b[_0x4858c9(0x3b4)],_0x30e7c3=await this[_0x4858c9(0x320)][_0x4858c9(0x3d8)](_0x20a19b,{'body':_0xf1a04b});if((_0x30e7c3==null||(_0x28b5ab=_0x30e7c3[_0x4858c9(0x31d)])==null||(_0x28b5ab=_0x28b5ab[_0x4858c9(0x3ba)])==null?void 0x0:_0x28b5ab[_0x4858c9(0x2a5)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x35f73b(0x3a8)](_0xad834){const _0xc8d81a=_0x35f73b;let _0xef8a80=this['_getAPIPrefixPath']()+'/'+_0xad834['objectType']+'/object/'+_0xad834[_0xc8d81a(0x3b4)]+_0xc8d81a(0x3e7);return(await this[_0xc8d81a(0x320)]['post'](_0xef8a80,{'body':_0xad834}))['body'][_0xc8d81a(0x1a6)];}async['batchAllowed'](_0x4c3389){const _0x577494=_0x35f73b;let _0x2fb4c8=this['_getAPIPrefixPath']()+_0x577494(0x290);return(await this[_0x577494(0x320)][_0x577494(0x1b7)](_0x2fb4c8,{'body':{'requests':_0x4c3389}}))[_0x577494(0x31d)][_0x577494(0x382)];}async[_0x35f73b(0x2aa)](_0x4f84bf){const _0x555432=_0x35f73b;let _0x23364f=this[_0x555432(0x1f1)]()+'/'+_0x4f84bf[_0x555432(0x304)]+'/role',_0x27a77b=await this[_0x555432(0x320)][_0x555432(0x1b7)](_0x23364f,{'body':_0x4f84bf});return{'roles':_0x27a77b['body'][_0x555432(0x322)],'actions':_0x27a77b[_0x555432(0x31d)][_0x555432(0x1a6)]};}async['deleteCollaborator'](_0xc389){const _0x4a26cc=_0x35f73b;let _0x6f148d=this[_0x4a26cc(0x1f1)]()+_0x4a26cc(0x371);await this['_HTTPService'][_0x4a26cc(0x38c)](_0x6f148d,{'params':{'collaboratorID':_0xc389[_0x4a26cc(0x3ab)],'objectID':_0xc389[_0x4a26cc(0x3b4)],'unitID':_0xc389[_0x4a26cc(0x285)]}});}async[_0x35f73b(0x3b7)](_0x4c0d7c){const _0x2aa865=_0x35f73b;let _0x551416=this['_getAPIPrefixPath']()+_0x2aa865(0x371);await this[_0x2aa865(0x320)]['patch'](_0x551416,{'body':_0x4c0d7c});}async[_0x35f73b(0x34e)](_0x20e2dc){const _0x4eaf19=_0x35f73b;let _0x2fbc10=this[_0x4eaf19(0x1f1)]()+_0x4eaf19(0x371);await this[_0x4eaf19(0x320)][_0x4eaf19(0x1b7)](_0x2fbc10,{'body':_0x20e2dc});}async[_0x35f73b(0x31b)](_0x1e7dad){const _0x813add=_0x35f73b;var _0x435f9c;let _0x1824d9=this[_0x813add(0x1f1)]()+'/collaborator',_0x4d3f93=await this['_HTTPService'][_0x813add(0x2a9)](_0x1824d9,{'params':{'objectID':_0x1e7dad[_0x813add(0x3b4)],'unitID':_0x1e7dad['unitID']}});return this['setCfgEnableObjInherit']((_0x435f9c=_0x4d3f93[_0x813add(0x31d)][_0x813add(0x332)])==null?!0x1:_0x435f9c),_0x4d3f93[_0x813add(0x31d)][_0x813add(0x1c0)];}async['putCollaborators'](_0x555ad7){const _0x396ed3=_0x35f73b;let _0x2cc6e6=this[_0x396ed3(0x1f1)]()+_0x396ed3(0x371);await this[_0x396ed3(0x320)][_0x396ed3(0x3d8)](_0x2cc6e6,{'body':_0x555ad7});}[_0x35f73b(0x22a)](_0x686a87){const _0x2a62e8=_0x35f73b;this[_0x2a62e8(0x3cb)]=_0x686a87;}[_0x35f73b(0x292)](){const _0x3f577a=_0x35f73b;return this[_0x3f577a(0x3cb)];}};sn=z([R(0x0,_0x1b23c9(_0x470bb9)),R(0x1,_0x1b23c9(_0x160dc0))],sn);function cn(_0x2e83f4){const _0x751277=_0x35f73b;let _0x3c4b4d=atob(_0x2e83f4),_0x384b7e=new Uint8Array(_0x3c4b4d[_0x751277(0x37b)]);for(let _0x459668=0x0;_0x459668<_0x3c4b4d[_0x751277(0x37b)];_0x459668++)_0x384b7e[_0x459668]=_0x3c4b4d[_0x751277(0x331)](_0x459668);return _0x384b7e;}function ln(_0x5c3a56){const _0x15d6b0=_0x35f73b;let _0x2a71d8='';for(let _0x4a064a=0x0;_0x4a064a<_0x5c3a56['length'];_0x4a064a++)_0x2a71d8+=String[_0x15d6b0(0x2d9)](_0x5c3a56[_0x4a064a]);return btoa(_0x2a71d8);}function un(_0x21c8f7,_0x4619b4){const _0x9bd899=_0x35f73b;let _0x10a8f4=cn(_0x4619b4),_0x498ca1=_0xeff5b7(0x10);return ln(_0x58e6cb(_0x498ca1,_0x3b69ce(_0x10a8f4,_0x498ca1)[_0x9bd899(0x2dd)](_0x18a346(_0x21c8f7))));}function dn(){const _0x56e430=_0x35f73b;let _0x507ab5=_0x109aa2()[_0x56e430(0x363)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x507ab5){let _0x340bff={'time':Math['floor'](Date[_0x56e430(0x3f4)]()/0x3e8),'domain':location[_0x56e430(0x378)]};return un(JSON[_0x56e430(0x284)](_0x340bff),_0x507ab5);}}let fn=class{constructor(_0x469dae){const _0x3422e4=_0x35f73b;this[_0x3422e4(0x317)]=_0x469dae,this[_0x3422e4(0x3b8)]();}['_initRequestHeader'](){const _0x54d9b9=_0x35f73b;this[_0x54d9b9(0x317)][_0x54d9b9(0x1ee)]({'interceptor':(_0x127c70,_0x40bd8e)=>{const _0x20ae9c=_0x54d9b9;let _0x584fce=dn();return _0x584fce&&_0x127c70['headers'][_0x20ae9c(0x2d4)]('x-univer-host',_0x584fce),_0x40bd8e(_0x127c70);}});}};fn=z([R(0x0,_0x1b23c9(_0x470bb9))],fn);let pn=class extends _0x495984{constructor(_0x37ca83,_0x1882c3,_0x140ba4){const _0x45ec38=_0x35f73b;super(),this[_0x45ec38(0x3f8)]=_0x37ca83,this[_0x45ec38(0x248)]=_0x1882c3,this[_0x45ec38(0x30e)]=_0x140ba4,I(this,_0x45ec38(0x1d4),new _0x10ace7(null)),I(this,'unitInfo$',this[_0x45ec38(0x1d4)][_0x45ec38(0x3ac)]());}async[_0x35f73b(0x3c9)](_0xd282f4,_0x2d7f31,_0x1f2324){const _0xc42bdc=_0x35f73b;this[_0xc42bdc(0x1d4)][_0xc42bdc(0x3f6)]({'unitId':_0xd282f4,'type':_0x2d7f31});let _0x3406a3=null;switch(_0x2d7f31){case _0x57ec00[_0xc42bdc(0x3b1)]:_0x3406a3=await this[_0xc42bdc(0x248)][_0xc42bdc(0x3ca)](_0xd282f4,_0x1f2324);break;case _0x57ec00[_0xc42bdc(0x32a)]:_0x3406a3=await this['_snapshotService']['loadDoc'](_0xd282f4,_0x1f2324);break;default:this['_logService'][_0xc42bdc(0x3ba)](_0xc42bdc(0x3fa),_0xc42bdc(0x321));break;}return _0x3406a3;}async['loadUnit'](_0x4198aa,_0xb365ad,_0x4de7d1){const _0x162508=_0x35f73b;var _0x4e3677;this['_unitInfo$']['next']({'unitId':_0x4198aa,'type':_0xb365ad,'subUnitId':_0x4de7d1});let _0x6a830b=0x0,_0x5e06eb=await((_0x4e3677=this['_localCacheService'])==null?void 0x0:_0x4e3677['loadOfflineData'](_0x4198aa));return _0x5e06eb&&(_0x5e06eb[_0x162508(0x257)]||_0x5e06eb[_0x162508(0x391)]['length']!==0x0)&&(_0x6a830b=_0x5e06eb[_0x162508(0x203)]),_0x6a830b===0x0&&this[_0x162508(0x3f8)]['debug'](_0x162508(0x3fa),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x162508(0x3c9)](_0x4198aa,_0xb365ad,_0x6a830b);}};pn=z([R(0x0,_0x3594cb),R(0x1,_0x1b23c9(_0x245f1e)),R(0x2,_0xbefc86(V))],pn);let mn=class{constructor(_0x4d452a,_0x35ceb6,_0x2d7834){const _0x590e60=_0x35f73b;this[_0x590e60(0x317)]=_0x4d452a,this[_0x590e60(0x21c)]=_0x35ceb6,this[_0x590e60(0x2db)]=_0x2d7834,I(this,'_waitCount',0x0),I(this,'_change$',new _0x34cf84()),I(this,_0x590e60(0x398),this[_0x590e60(0x227)]),I(this,_0x590e60(0x194),new Map());}['setWaitCount'](_0x469f8a){const _0x25bae5=_0x35f73b;this[_0x25bae5(0x39d)]=_0x469f8a,this[_0x25bae5(0x227)]['next'](_0x469f8a);}[_0x35f73b(0x2ff)](_0x56edb7,_0x129e0e){const _0x326724=_0x35f73b;if(_0x129e0e===_0x5edd85[_0x326724(0x34f)]){let _0x5095e1=new Image();return _0x5095e1['src']=_0x56edb7,_0x5095e1;}return this[_0x326724(0x194)][_0x326724(0x2a9)](_0x56edb7);}[_0x35f73b(0x195)](_0x566679,_0x40f9fb,_0x213f4a){const _0x24613f=_0x35f73b;_0x40f9fb===_0x5edd85[_0x24613f(0x34f)]||_0x213f4a==null||this['_imageSourceCache'][_0x24613f(0x2d4)](_0x566679,_0x213f4a);}async[_0x35f73b(0x354)](_0x1a239b){const _0x55014a=_0x35f73b;try{let _0x4f1e9a=this[_0x55014a(0x240)](this[_0x55014a(0x28f)](),''+_0x1a239b),_0x46e767=(await this[_0x55014a(0x317)][_0x55014a(0x2a9)](_0x4f1e9a))[_0x55014a(0x31d)];if(_0x46e767[_0x55014a(0x3ba)]&&_0x46e767[_0x55014a(0x3ba)][_0x55014a(0x2a5)]===_0x46125a['OK']){let _0x5c6470=_0x2da96f(_0x46e767[_0x55014a(0x353)],this[_0x55014a(0x337)]());return Promise[_0x55014a(0x1f7)](_0x5c6470);}return Promise['reject'](_0x46e767[_0x55014a(0x3ba)]);}catch(_0x39e28d){return Promise['reject'](_0x39e28d);}}async[_0x35f73b(0x352)](_0x1b986d){const _0xd09d49=_0x35f73b;let _0x594609='';if(!_0xd6fb97['includes'](_0x1b986d[_0xd09d49(0x2ec)]))return this[_0xd09d49(0x3ea)](),Promise[_0xd09d49(0x20d)](Error(_0x4daaae[_0xd09d49(0x388)]));if(_0x1b986d['size']>_0x3912d7())return this[_0xd09d49(0x3ea)](),Promise[_0xd09d49(0x20d)](Error(_0x4daaae[_0xd09d49(0x3a0)]));try{let _0x234ac6=new FormData();_0x234ac6[_0xd09d49(0x2f4)](_0xd09d49(0x1aa),_0x1b986d);let _0x28a7b1=this[_0xd09d49(0x2db)][_0xd09d49(0x3ad)](),_0x338673=_0x28a7b1==null?void 0x0:_0x28a7b1[_0xd09d49(0x1b9)]();if(!_0x338673)throw Error(_0xd09d49(0x23b));let _0x2920b2=this[_0xd09d49(0x3c8)]()+_0xd09d49(0x3d6)+_0x1b986d[_0xd09d49(0x3d7)]['toString']()+_0xd09d49(0x238)+_0x502b83['UnitEmbedded']+_0xd09d49(0x273)+encodeURIComponent(_0x338673),_0x1fcc3b={'body':_0x234ac6},_0x37c28e=(await this[_0xd09d49(0x317)]['post'](_0x2920b2,_0x1fcc3b))['body'];if(typeof _0x37c28e[_0xd09d49(0x1ac)]!=_0xd09d49(0x25c))return this[_0xd09d49(0x3ea)](),Promise['reject'](Error(_0x4daaae['ERROR_IMAGE']));_0x594609=_0x37c28e[_0xd09d49(0x1ac)];}catch{return this[_0xd09d49(0x3ea)](),Promise[_0xd09d49(0x20d)](Error(_0x4daaae['ERROR_IMAGE']));}return new Promise((_0x16793b,_0x51499e)=>{const _0x36b36f=_0xd09d49;let _0x1e1dfb=new FileReader();_0x1e1dfb['readAsDataURL'](_0x1b986d),_0x1e1dfb[_0x36b36f(0x31c)]=_0x52a694=>{const _0xd66521=_0x36b36f;var _0x1212e0;let _0x365ee2=(_0x1212e0=_0x52a694['target'])==null?void 0x0:_0x1212e0[_0xd66521(0x265)];if(_0x365ee2==null){this[_0xd66521(0x3ea)](),_0x51499e(Error(_0x4daaae[_0xd66521(0x399)]));return;}_0x16793b({'imageId':_0x4d6784(0x6),'imageSourceType':_0x5edd85[_0xd66521(0x29a)],'source':_0x594609,'base64Cache':_0x365ee2,'status':_0x4daaae[_0xd66521(0x209)]}),this[_0xd66521(0x3ea)]();};});}[_0x35f73b(0x3c8)](){const _0x4629db=_0x35f73b;var _0x1ffaae;let _0x39d376=this[_0x4629db(0x21c)][_0x4629db(0x2fb)](U);return(_0x1ffaae=_0x39d376==null?void 0x0:_0x39d376[_0x4629db(0x315)])==null?_0x4629db(0x2ea):_0x1ffaae;}[_0x35f73b(0x28f)](){const _0x56a5b6=_0x35f73b;var _0x23d9f3;let _0x1fe1ae=this['_configService'][_0x56a5b6(0x2fb)](U);return(_0x23d9f3=_0x1fe1ae==null?void 0x0:_0x1fe1ae['signUrlServerUrl'])==null?_0x56a5b6(0x30c):_0x23d9f3;}[_0x35f73b(0x337)](){const _0x269480=_0x35f73b;var _0x1e036b;let _0x1157d0=this[_0x269480(0x21c)][_0x269480(0x2fb)](U);return(_0x1e036b=_0x1157d0==null?void 0x0:_0x1157d0['downloadEndpointUrl'])==null?location['origin']:_0x1e036b;}[_0x35f73b(0x240)](_0x350605,_0xeb4a32){const _0x34a8bb=_0x35f73b;return _0x350605[_0x34a8bb(0x250)](_0x34a8bb(0x21a),_0xeb4a32);}['_decreaseWaiting'](){--this['_waitCount'],this['_change$']['next'](this['_waitCount']);}};mn=z([R(0x0,_0x1b23c9(_0x470bb9)),R(0x1,_0x160dc0),R(0x2,_0x1b23c9(_0x599079))],mn);let hn=class{constructor(_0x37bf41,_0x19ce55){this['_configService']=_0x37bf41,this['_HTTPService']=_0x19ce55;}[_0x35f73b(0x1f1)](){const _0x21d3ab=_0x35f73b;var _0x5d492b;let _0x27a771=this[_0x21d3ab(0x21c)][_0x21d3ab(0x2fb)](U);return(_0x5d492b=_0x27a771==null?void 0x0:_0x27a771[_0x21d3ab(0x1d8)])==null?_0x21d3ab(0x2b5):_0x5d492b;}async['list'](_0x382723){const _0x3173f7=_0x35f73b;let _0x5c5d4b=this['_getAPIPrefixPath']()+_0x3173f7(0x371);return{'list':[{'title':_0x3173f7(0x387),'mentions':(await this[_0x3173f7(0x320)][_0x3173f7(0x2a9)](_0x5c5d4b,{'params':{'objectID':_0x382723[_0x3173f7(0x333)],'unitID':_0x382723[_0x3173f7(0x333)]}}))[_0x3173f7(0x31d)]['collaborators'][_0x3173f7(0x323)](_0x5706fc=>({'objectId':_0x5706fc['id'],'name':_0x5706fc[_0x3173f7(0x218)][_0x3173f7(0x223)],'metadata':{'icon':_0x5706fc[_0x3173f7(0x218)]['avatar']},'label':_0x5706fc[_0x3173f7(0x218)]['name'],'objectType':_0x916f82[_0x3173f7(0x23e)]})),'metadata':{},'type':_0x916f82[_0x3173f7(0x23e)]}]};}};hn=z([R(0x0,_0x1b23c9(_0x160dc0)),R(0x1,_0x1b23c9(_0x470bb9))],hn);let gn=class extends _0x495984{constructor(_0x394e0f,_0x375303,_0x1a8131,_0x48147a,_0x2e92b0){const _0x1217c5=_0x35f73b;super(),this[_0x1217c5(0x1c1)]=_0x394e0f,this[_0x1217c5(0x2db)]=_0x375303,this['_permissionService']=_0x1a8131,this[_0x1217c5(0x281)]=_0x48147a,this[_0x1217c5(0x2bf)]=_0x2e92b0,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x35f73b(0x25b)](){const _0x1d0fa2=_0x35f73b;let _0x59fb5f=async _0x45b572=>{const _0xa76211=_0x3c29;(await this['_collaborationSessionService'][_0xa76211(0x1bd)](_0x45b572))[_0xa76211(0x39e)]['pipe'](_0xb3f571(_0xd8e18c=>_0xd8e18c[_0xa76211(0x263)]===_0x576af5[_0xa76211(0x3e6)]),_0x20cb1c(this[_0xa76211(0x3f7)]))[_0xa76211(0x1f4)](_0x25180f=>{const _0x543474=_0xa76211;let {reason:_0x15f9f9}=_0x25180f['data'];this[_0x543474(0x2bf)]['emitEvent']({'id':_0x543474(0x204),'data':_0x15f9f9}),this[_0x543474(0x3aa)][_0x543474(0x3d2)](new _0x170956(_0x45b572)['id'],!0x1),this[_0x543474(0x281)][_0x543474(0x212)](_0x45b572);});};_0x34bad6(this['_univerInstanceService'][_0x1d0fa2(0x316)](_0x57ec00[_0x1d0fa2(0x3b1)]),this[_0x1d0fa2(0x2db)][_0x1d0fa2(0x316)](_0x57ec00['UNIVER_DOC']))['pipe'](_0xcf55(_0x50dc01=>_0x50dc01[_0x1d0fa2(0x196)][_0x1d0fa2(0x1b9)]()),_0xb3f571(_0x39611f=>!_0x1c6cb4(_0x39611f)),_0x20cb1c(this[_0x1d0fa2(0x3f7)]))[_0x1d0fa2(0x1f4)](_0x40e82=>{_0x59fb5f(_0x40e82);});}[_0x35f73b(0x1f2)](){const _0x3b7856=_0x35f73b;let _0x24d82e=async _0x259e97=>{const _0x2be376=_0x3c29;let _0x48d33a=await this[_0x2be376(0x281)]['requireSession'](_0x259e97),_0xb388eb=this['_injector']['get'](_0x21cc4b);_0x48d33a[_0x2be376(0x39e)][_0x2be376(0x289)](_0xb3f571(_0x3127a2=>_0x3127a2[_0x2be376(0x263)]===_0x576af5[_0x2be376(0x1f9)]),_0x20cb1c(this[_0x2be376(0x3f7)]))['subscribe'](_0x49f2d2=>{const _0x381e97=_0x2be376;let {objectId:_0x5f40dc}=_0x49f2d2[_0x381e97(0x3fe)];_0x5f40dc===_0x259e97?_0xb388eb[_0x381e97(0x3f9)](_0x259e97):_0xb388eb[_0x381e97(0x2ef)](_0x259e97,_0x5f40dc);});};_0x34bad6(this[_0x3b7856(0x2db)]['getTypeOfUnitAdded$'](_0x57ec00[_0x3b7856(0x3b1)]))[_0x3b7856(0x289)](_0xcf55(_0x5034ea=>_0x5034ea[_0x3b7856(0x196)][_0x3b7856(0x1b9)]()),_0xb3f571(_0x44f99d=>!_0x1c6cb4(_0x44f99d)),_0x20cb1c(this[_0x3b7856(0x3f7)]))[_0x3b7856(0x1f4)](_0x384cad=>{_0x24d82e(_0x384cad);});}};gn=z([R(0x0,_0x1b23c9(_0x2b692d)),R(0x1,_0x599079),R(0x2,_0x5043f7),R(0x3,_0x1b23c9(Q)),R(0x4,_0x1b23c9(L))],gn);let _n=class{constructor(_0x1fa412,_0xa4d662){const _0x12afea=_0x35f73b;this[_0x12afea(0x21c)]=_0x1fa412,this[_0x12afea(0x317)]=_0xa4d662;}async[_0x35f73b(0x1e6)](_0x3cd301,_0x4c919a){const _0x43cd28=_0x35f73b;var _0x3a553e;let {unitID:_0x3d5bb7,type:_0x1787be,revision:_0x592567=0x0}=_0x4c919a,_0xc6af5d=this[_0x43cd28(0x287)]()+'/'+_0x1787be+_0x43cd28(0x2de)+_0x3d5bb7+_0x43cd28(0x1d5)+_0x592567,_0xa9f3cb=(await this['_httpService'][_0x43cd28(0x2a9)](_0xc6af5d))['body'],_0x55f295=(_0x3a553e=_0xa9f3cb['snapshot'])==null?void 0x0:_0x3a553e['workbook'];if(_0x55f295){let _0x4221bf=_0x55f295==null?void 0x0:_0x55f295[_0x43cd28(0x27d)];_0x55f295['originalMeta']=_0x454182[_0x43cd28(0x35f)](_0x1b81c6(_0x4221bf)),Object[_0x43cd28(0x20a)](_0x55f295[_0x43cd28(0x335)])[_0x43cd28(0x2c9)](([,_0x28d852])=>{const _0x1b6851=_0x43cd28;let _0x297050=_0x28d852[_0x1b6851(0x27d)];_0x28d852['originalMeta']=_0x454182[_0x1b6851(0x35f)](_0x1b81c6(_0x297050));});}return _0xa9f3cb;}async[_0x35f73b(0x32c)](_0x41bc3d,_0x3d8a26){const _0x479922=_0x35f73b;let {unitID:_0xa6fb9d,type:_0x2e5a7a,blockID:_0x2fdf26}=_0x3d8a26,_0x5767a4=this[_0x479922(0x1f0)]()+'/'+_0x2e5a7a+_0x479922(0x2de)+_0xa6fb9d+_0x479922(0x33a)+_0x2fdf26;return(await this['_httpService']['get'](_0x5767a4))[_0x479922(0x31d)];}async['getDeserializedSheetBlock'](_0x37ac6f,_0x3501b4){const _0x5dfeb4=_0x35f73b;let {unitID:_0x5c5cbe,type:_0x3e0172,blockID:_0x1aa1ca}=_0x3501b4,_0x189ddb=this[_0x5dfeb4(0x1f0)]()+_0x5dfeb4(0x33a)+_0x3e0172+'/unit/'+_0x5c5cbe+_0x5dfeb4(0x33a)+_0x1aa1ca;return(await this['_httpService']['get'](_0x189ddb))['body'];}async[_0x35f73b(0x1f5)](_0x5c3790,_0x3070a9){const _0xaac563=_0x35f73b;let {unitID:_0x10c2db,type:_0x5d99dd,from:_0x2d174e,to:_0x477cf1}=_0x3070a9,_0x358401=this[_0xaac563(0x1f0)]()+'/'+_0x5d99dd+'/unit/'+_0x10c2db+_0xaac563(0x283)+_0x2d174e+_0xaac563(0x2f6)+_0x477cf1;return(await this[_0xaac563(0x317)][_0xaac563(0x2a9)](_0x358401))['body'];}['getSnapshotAPIPath'](){const _0x278b47=_0x35f73b;var _0x5185de;return(_0x5185de=this[_0x278b47(0x21c)][_0x278b47(0x2fb)](_0x278b47(0x2ca)))==null?this[_0x278b47(0x1f0)]():_0x5185de;}[_0x35f73b(0x1f0)](){const _0x8539d5=_0x35f73b;var _0x14874e;let _0x3d943b=this[_0x8539d5(0x21c)]['getConfig'](U);return(_0x14874e=_0x3d943b==null?void 0x0:_0x3d943b['snapshotServerUrl'])==null?_0x8539d5(0x1a2):_0x14874e;}async[_0x35f73b(0x37f)](_0xf0a9dc,_0x57733a){const _0x30b00f=_0x35f73b;let _0x2c63c9='/universer-api/snapshot/'+_0x57733a[_0x30b00f(0x2ec)]+'/unit/'+_0x57733a[_0x30b00f(0x285)]+_0x30b00f(0x21b);return(await this[_0x30b00f(0x317)][_0x30b00f(0x2a9)](_0x2c63c9,{'params':{'resourceId':JSON['stringify'](_0x57733a[_0x30b00f(0x37d)])}}))[_0x30b00f(0x31d)];}[_0x35f73b(0x2f3)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x35f73b(0x314)](){const _0x1f695b=_0x35f73b;throw Error(_0x1f695b(0x2e2));}['saveSheetBlock'](){const _0x112639=_0x35f73b;throw Error(_0x112639(0x2e2));}[_0x35f73b(0x260)](){const _0x42d062=_0x35f73b;throw Error(_0x42d062(0x2e2));}[_0x35f73b(0x29c)](){const _0xfd9282=_0x35f73b;throw Error(_0xfd9282(0x2e2));}['getLatestCsReqIdBySid'](){const _0x1f3f52=_0x35f73b;throw Error(_0x1f3f52(0x2e2));}};_n=z([R(0x0,_0x160dc0),R(0x1,_0x1b23c9(_0x470bb9))],_n);let vn=class extends _0x4f956f{constructor(_0x1eacd9,_0x1b1571,_0x5ec610,_0x504beb,_0x194527){const _0x1aa703=_0x35f73b;super(_0x1eacd9,_0x1b1571,_0x5ec610),this[_0x1aa703(0x3c2)]=_0x504beb,this[_0x1aa703(0x3f8)]=_0x194527;}['transformUndoRedo'](_0x44450c,_0x156e78){const _0x2be658=_0x35f73b;let _0x2b9d8e=this[_0x2be658(0x3cc)](_0x44450c);if(_0x2b9d8e)try{let _0x15d8dc=this[_0x2be658(0x30f)](_0x2b9d8e,_0x156e78);this[_0x2be658(0x349)](_0x44450c,_0x15d8dc);}catch(_0x4ed78d){this[_0x2be658(0x3f8)][_0x2be658(0x3ba)](_0x2be658(0x22b),_0x4ed78d),this[_0x2be658(0x306)](_0x44450c);}let _0x1cf908=this[_0x2be658(0x2ed)](_0x44450c);if(_0x1cf908)try{let _0x4d9b0d=this[_0x2be658(0x30f)](_0x1cf908,_0x156e78);this[_0x2be658(0x392)](_0x44450c,_0x4d9b0d);}catch(_0x420c77){this['_logService'][_0x2be658(0x3ba)](_0x420c77),this[_0x2be658(0x256)](_0x44450c);}}[_0x35f73b(0x306)](_0x5eb45b){const _0x36ad1d=_0x35f73b;let _0x41cfa5=this[_0x36ad1d(0x3cc)](_0x5eb45b);_0x41cfa5&&(_0x41cfa5['length']=0x0,this[_0x36ad1d(0x1cf)]());}['_clearRedo'](_0x44f876){const _0x13faf0=_0x35f73b;let _0x2ba39a=this[_0x13faf0(0x2ed)](_0x44f876);_0x2ba39a&&(_0x2ba39a[_0x13faf0(0x37b)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x27cf7a,_0x55f3ba){const _0x432c49=_0x35f73b;this['_undoStacks']['set'](_0x27cf7a,_0x55f3ba),this[_0x432c49(0x1cf)]();}['_substituteRedoStack'](_0x225b1e,_0x78ed08){const _0x3cd6e9=_0x35f73b;this[_0x3cd6e9(0x1c5)][_0x3cd6e9(0x2d4)](_0x225b1e,_0x78ed08),this['_updateStatus']();}[_0x35f73b(0x30f)](_0x29f599,_0x58593e){const _0x389283=_0x35f73b;let _0x7204d5=[],_0xc28245=_0x58593e,_0x15ecdb=_0x58593e;for(let _0x9a2be=_0x29f599['length']-0x1;_0x9a2be>=0x0;_0x9a2be--){let {unitID:_0x2e4556,undoMutations:_0x216546,redoMutations:_0x54d092}=_0x29f599[_0x9a2be],_0x4e97ef=this[_0x389283(0x3c2)]['transformMutationsWithChangeset'](_0xc28245,_0x216546),_0x13b381=this[_0x389283(0x3c2)]['transformMutationsWithChangeset'](_0x15ecdb,_0x54d092);if(_0x10f13a(_0x4e97ef)||_0x10f13a(_0x13b381)){this[_0x389283(0x3f8)]['error'](_0x389283(0x22b),'transformStack\x20failed!',_0x4e97ef,_0x13b381);break;}_0xc28245=_0x4e97ef[_0x389283(0x279)],_0x15ecdb=_0x13b381[_0x389283(0x279)],_0x7204d5[_0x389283(0x380)]({'unitID':_0x2e4556,'undoMutations':_0x4e97ef['m2Prime'],'redoMutations':_0x13b381[_0x389283(0x2e6)]});}return _0x7204d5[_0x389283(0x2f2)]();}};vn=z([R(0x0,_0x599079),R(0x1,_0x5c3744),R(0x2,_0x4e7340),R(0x3,_0x348e40),R(0x4,_0x3594cb)],vn);let $=class extends _0x176987{constructor(_0x1ccef6={},_0x2eb426,_0x3ee59f,_0x48bc0){const _0x188c8c=_0x35f73b;super(),this[_0x188c8c(0x22e)]=_0x1ccef6,this[_0x188c8c(0x3f8)]=_0x2eb426,this[_0x188c8c(0x1c1)]=_0x3ee59f,this[_0x188c8c(0x21c)]=_0x48bc0;let {..._0x301a29}=_0x2418a6({},Nt,_0x1ccef6);if(!_0x301a29[_0x188c8c(0x35d)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x188c8c(0x22e)]=_0x301a29,this[_0x188c8c(0x21c)][_0x188c8c(0x305)](U,_0x301a29);}[_0x35f73b(0x276)](){const _0x5ee710=_0x35f73b;this[_0x5ee710(0x3cd)](),this[_0x5ee710(0x3bb)]();}['_registerDependencies'](){const _0x173b19=_0x35f73b;var _0x5be9be,_0x51e60b;this['_injector'][_0x173b19(0x1bc)](_0x257c3e)&&this[_0x173b19(0x3f8)]['error'](_0x173b19(0x372),_0x173b19(0x34d));let _0x4ee88d=_0x5779fb([[_0x257c3e,{'useClass':vn}],[Q],[B],[H],[on],[fn],[wt],[gn],[L],[pn],[Qt,{'useClass':this['_config'][_0x173b19(0x35d)]}],[_0x3af6ca,{'useClass':_n}],[_0x780d41,{'useClass':sn}],[_0x14e824,{'useClass':mn}],[_0x21f72d,{'useClass':hn}],[tn],[an]],(_0x5be9be=this['_config'])==null?void 0x0:_0x5be9be[_0x173b19(0x3db)]);if(!((_0x51e60b=this[_0x173b19(0x22e)])!=null&&_0x51e60b[_0x173b19(0x3a4)])){let _0x27637b=_0x4ee88d[_0x173b19(0x2ce)](([_0x3424c3])=>_0x3424c3===jt);_0x27637b!==-0x1&&_0x4ee88d['splice'](_0x27637b,0x1);}_0xc377a3(this[_0x173b19(0x1c1)],_0x4ee88d);}[_0x35f73b(0x3bb)](){const _0x1e8694=_0x35f73b;var _0x50f7e3,_0x1b0b95;if(this['_injector'][_0x1e8694(0x2a9)](_0x470bb9)[_0x1e8694(0x1ee)]({'priority':0x14,'interceptor':_0x4f6907({'maxParallel':0x6})}),!((_0x50f7e3=this[_0x1e8694(0x22e)])!=null&&_0x50f7e3[_0x1e8694(0x2f7)])){var _0x4464e6;(_0x4464e6=this[_0x1e8694(0x1c1)]['get'](V,_0x430b4f['OPTIONAL']))==null||_0x4464e6[_0x1e8694(0x2ae)]();}(_0x1b0b95=this[_0x1e8694(0x22e)])!=null&&_0x1b0b95[_0x1e8694(0x36b)]&&_0x40f1c9(this[_0x1e8694(0x1c1)],[[on]]),_0x40f1c9(this[_0x1e8694(0x1c1)],[[fn],[tn],[gn]]);}};I($,_0x35f73b(0x1fb),_0x35f73b(0x307)),I($,'packageName',nn),I($,_0x35f73b(0x312),rn),$=z([_0x2cd6f8(_0x9c60d5,_0x265883,_0x12c5ff),R(0x1,_0x3594cb),R(0x2,_0x1b23c9(_0x2b692d)),R(0x3,_0x160dc0)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,Ht as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,vn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,pn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,V as ILocalCacheService,Yt as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,Jt as SheetCollaborationEntity,H as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,kt as getLocalCacheKey,Zt as serializeCombRequest};
|
|
1
|
+
const _0x1f8522=_0x249d;(function(_0xa10574,_0x2f0337){const _0x26b575=_0x249d,_0x3ab8c7=_0xa10574();while(!![]){try{const _0x29c06c=parseInt(_0x26b575(0x2a4))/0x1+-parseInt(_0x26b575(0xc9))/0x2*(-parseInt(_0x26b575(0x16a))/0x3)+parseInt(_0x26b575(0x191))/0x4+-parseInt(_0x26b575(0x193))/0x5+-parseInt(_0x26b575(0x145))/0x6+parseInt(_0x26b575(0xf9))/0x7+parseInt(_0x26b575(0x147))/0x8;if(_0x29c06c===_0x2f0337)break;else _0x3ab8c7['push'](_0x3ab8c7['shift']());}catch(_0x5a14e0){_0x3ab8c7['push'](_0x3ab8c7['shift']());}}}(_0x21a6,0xb24a8));import{CollaborationEvent as _0x27e67f,CompressMutationService as _0x4f4878,EmptyMutationInfo as _0x3b7ae1,ISnapshotServerService as _0x72942,ITransformService as _0x4f7ff9,RevisionService as _0x3c5693,SnapshotService as _0x5662c6,UniverCollaborationPlugin as _0x2fd190,b64DecodeUnicode as _0x376bcd,isTransformChangesetsSuccess as _0x1dbd0e,isTransformMutationsWithChangesetFailure as _0x17dd41,isTransformMutationsWithChangesetSuccess as _0x534268,mapDocumentTypeToUniverInstanceType as _0x6f4221,parseChangesetToProtocol as _0x12da55,parseProtocolChangeset as _0x13b02b,textEncoder as _0x2c7657,uuidv4 as _0x45dc0c}from'@univerjs-pro/collaboration';import{CommandType as _0x40b89a,DependentOn as _0x576a62,Disposable as _0x555def,DisposableCollection as _0x3e23a9,IAuthzIoService as _0xb4867c,ICommandService as _0x3a76f7,IConfigService as _0x3ba9f8,IContextService as _0x3ed1aa,ILogService as _0x1443cf,IMentionIOService as _0x5dc0a9,IPermissionService as _0x439c61,IUndoRedoService as _0x3b54de,IUniverInstanceService as _0x3a738f,Inject as _0x4f07a4,Injector as _0x44d080,JSONX as _0x329bf1,LocalUndoRedoService as _0x38014a,LocaleService as _0x220418,MentionType as _0x39f40b,Optional as _0x1cfc4d,Plugin as _0x2c42b9,Quantity as _0x2afa53,Rectangle as _0x522a87,RxDisposable as _0x3498fe,Tools as _0x49bc12,UniverInstanceType as _0x292cef,UserManagerService as _0x1e899d,Workbook as _0x1d942e,createIdentifier as _0x4bcee9,generateRandomId as _0x4fa431,isInternalEditorID as _0x2a8699,merge as _0x1b8645,mergeOverrideWithDependencies as _0x415d5a,registerDependencies as _0x2046a5,resolveWithBasePath as _0x4fcdae,sequenceExecute as _0x3bd5c0,toDisposable as _0x224a5f,touchDependencies as _0x156eb2}from'@univerjs/core';import{RichTextEditingMutation as _0x234ae8}from'@univerjs/docs';import{InsertSheetMutation as _0x5c656f,SetSelectionsOperation as _0x30f1f3,SheetPermissionInitController as _0x5e8e29,SheetsSelectionsService as _0x24181c,WorkbookEditablePermission as _0x14cd38}from'@univerjs/sheets';import{BehaviorSubject as _0x2acfcb,ReplaySubject as _0x40aa8b,Subject as _0x147a88,concatMap as _0x1d0115,firstValueFrom as _0x128fbd,map as _0x4d141e,merge as _0x340907,of as _0x3a835d,shareReplay as _0x60bd5a,take as _0x4abdb0,takeUntil as _0x56cc03}from'rxjs';import{CmdRspCode as _0x28282a,CombCmd as _0x15766e,ErrorCode as _0x5637ab,FileSource as _0x25f37b}from'@univerjs/protocol';import{ITelemetryService as _0x4f515e}from'@univerjs/telemetry';import{delay as _0x196d30,filter as _0x18abe6,map as _0x279c8c,take as _0x15baed,takeUntil as _0x328e45}from'rxjs/operators';import{HTTPRequest as _0x1b125d,HTTPService as _0x2e99a4,ISocketService as _0x1dbaaf,MergeInterceptorFactory as _0x5e53e1,ThresholdInterceptorFactory as _0x258eba,UniverNetworkPlugin as _0x4df7af}from'@univerjs/network';import{UniverLicensePlugin as _0xc5155e,getGlobalObject as _0x494156}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0xf4198a,IImageIoService as _0x33c502,ImageSourceType as _0x570c35,ImageUploadStatusType as _0x528a72,getDrawingImageAllowSize as _0x487da1}from'@univerjs/drawing';import{cbc as _0xd0e4b3}from'@noble/ciphers/aes.js';import{concatBytes as _0x5b3153,randomBytes as _0x24b9a3,utf8ToBytes as _0x1fa3b3}from'@noble/ciphers/utils.js';const ut=_0x1f8522(0x28b),dt='/universer-api/user/session-ticket',ft='HEARTBEAT_INTERVAL',pt=_0x1f8522(0x13e),mt=0x4e20,ht=_0x1f8522(0x1af),gt='LOCAL_CACHE_INTERVAL',_t=0x3e8,vt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',yt=_0x1f8522(0xca);function bt(_0x4ac622){const _0x1adbbd=_0x1f8522;return JSON[_0x1adbbd(0x2fc)](_0x4ac622)[_0x1adbbd(0x10a)];}function F(_0x2166cc){'@babel/helpers - typeof';const _0x36bd4d=_0x1f8522;return F=typeof Symbol==_0x36bd4d(0x1aa)&&typeof Symbol[_0x36bd4d(0x20f)]==_0x36bd4d(0x19e)?function(_0x93310a){return typeof _0x93310a;}:function(_0x5a4ba3){const _0x2e5a5c=_0x36bd4d;return _0x5a4ba3&&typeof Symbol==_0x2e5a5c(0x1aa)&&_0x5a4ba3['constructor']===Symbol&&_0x5a4ba3!==Symbol[_0x2e5a5c(0x2b7)]?_0x2e5a5c(0x19e):typeof _0x5a4ba3;},F(_0x2166cc);}function xt(_0x3a4ad6,_0x10e2a8){const _0x3259c2=_0x1f8522;if(F(_0x3a4ad6)!=_0x3259c2(0xe8)||!_0x3a4ad6)return _0x3a4ad6;var _0x1b1eed=_0x3a4ad6[Symbol[_0x3259c2(0x290)]];if(_0x1b1eed!==void 0x0){var _0x3c9a9c=_0x1b1eed[_0x3259c2(0x292)](_0x3a4ad6,_0x10e2a8||'default');if(F(_0x3c9a9c)!=_0x3259c2(0xe8))return _0x3c9a9c;throw TypeError(_0x3259c2(0xea));}return(_0x10e2a8===_0x3259c2(0x2e8)?String:Number)(_0x3a4ad6);}function St(_0x2a4e58){const _0x5be487=_0x1f8522;var _0x8d78fe=xt(_0x2a4e58,_0x5be487(0x2e8));return F(_0x8d78fe)==_0x5be487(0x19e)?_0x8d78fe:_0x8d78fe+'';}function I(_0x295721,_0x1865e9,_0xd2f6b){return(_0x1865e9=St(_0x1865e9))in _0x295721?Object['defineProperty'](_0x295721,_0x1865e9,{'value':_0xd2f6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x295721[_0x1865e9]=_0xd2f6b,_0x295721;}let Ct=function(_0x9713b){const _0x8c26dd=_0x1f8522;return _0x9713b[_0x8c26dd(0x167)]=_0x8c26dd(0x167),_0x9713b['PERMISSION_DENIED']=_0x8c26dd(0x26c),_0x9713b[_0x8c26dd(0x148)]=_0x8c26dd(0x148),_0x9713b['CLOSE_ROOM']=_0x8c26dd(0x26a),_0x9713b[_0x8c26dd(0x274)]=_0x8c26dd(0x274),_0x9713b[_0x8c26dd(0x1d9)]='SOCKET_FAILED_RETRY',_0x9713b[_0x8c26dd(0x29c)]=_0x8c26dd(0x29c),_0x9713b[_0x8c26dd(0x2c8)]=_0x8c26dd(0x2c8),_0x9713b;}({});var L=class{constructor(){const _0x1fc729=_0x1f8522;I(this,_0x1fc729(0x17d),new _0x147a88()),I(this,_0x1fc729(0xfa),this[_0x1fc729(0x17d)][_0x1fc729(0x2b0)]());}[_0x1f8522(0x15d)](_0xd3811f){const _0x1f3650=_0x1f8522;this['_event$'][_0x1f3650(0xc4)](_0xd3811f);}},wt=class{constructor(){const _0x458949=_0x1f8522;I(this,_0x458949(0xd5),new _0x147a88()),I(this,_0x458949(0x114),this[_0x458949(0xd5)][_0x458949(0x2b0)]());}[_0x1f8522(0x1d8)](_0x591063){const _0x3e5ddf=_0x1f8522;this[_0x3e5ddf(0xd5)][_0x3e5ddf(0xc4)](_0x591063);}};function R(_0x300dac,_0x10e73a){return function(_0x202be9,_0x510259){_0x10e73a(_0x202be9,_0x510259,_0x300dac);};}function z(_0x319983,_0x2dc3fe,_0x5c448a,_0x348b3c){const _0x39ec9f=_0x1f8522;var _0xcb2f36=arguments[_0x39ec9f(0x10a)],_0x542e26=_0xcb2f36<0x3?_0x2dc3fe:_0x348b3c===null?_0x348b3c=Object[_0x39ec9f(0x23f)](_0x2dc3fe,_0x5c448a):_0x348b3c,_0x20cd5f;if(typeof Reflect==_0x39ec9f(0xe8)&&typeof Reflect[_0x39ec9f(0x21c)]==_0x39ec9f(0x1aa))_0x542e26=Reflect[_0x39ec9f(0x21c)](_0x319983,_0x2dc3fe,_0x5c448a,_0x348b3c);else{for(var _0x469237=_0x319983[_0x39ec9f(0x10a)]-0x1;_0x469237>=0x0;_0x469237--)(_0x20cd5f=_0x319983[_0x469237])&&(_0x542e26=(_0xcb2f36<0x3?_0x20cd5f(_0x542e26):_0xcb2f36>0x3?_0x20cd5f(_0x2dc3fe,_0x5c448a,_0x542e26):_0x20cd5f(_0x2dc3fe,_0x5c448a))||_0x542e26);}return _0xcb2f36>0x3&&_0x542e26&&Object[_0x39ec9f(0x2d8)](_0x2dc3fe,_0x5c448a,_0x542e26),_0x542e26;}let B=class extends _0x555def{constructor(_0x24e45b,_0x1ce7b8){const _0x3e2b02=_0x1f8522;super(),this[_0x3e2b02(0xf7)]=_0x24e45b,this['_userManagerService']=_0x1ce7b8,I(this,_0x3e2b02(0x121),new Map()),I(this,'_roomCreated$',new _0x147a88()),this['disposeWithMe'](_0x340907(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x292cef[_0x3e2b02(0x107)])[_0x3e2b02(0x27e)](_0x279c8c(_0x277bb7=>_0x277bb7[_0x3e2b02(0xdc)]())),this[_0x3e2b02(0xf7)][_0x3e2b02(0xe1)](_0x292cef[_0x3e2b02(0x23a)])[_0x3e2b02(0x27e)](_0x279c8c(_0x1872f3=>_0x1872f3['getUnitId']())))['subscribe'](_0x4b8e25=>this[_0x3e2b02(0x2bd)](_0x4b8e25)));}['waitForRoom$'](_0x4954ea){const _0x31600c=_0x1f8522;return this[_0x31600c(0x121)][_0x31600c(0x309)](_0x4954ea)?_0x3a835d(this[_0x31600c(0x121)][_0x31600c(0x315)](_0x4954ea)):this[_0x31600c(0x241)][_0x31600c(0x27e)](_0x279c8c(_0x1a98b9=>{const _0x48c6af=_0x31600c;if(_0x1a98b9===_0x4954ea)return this[_0x48c6af(0x121)][_0x48c6af(0x315)](_0x1a98b9);}));}['setCurrentUser'](_0x55b352){const _0x17f9e9=_0x1f8522;this['_userManagerService'][_0x17f9e9(0x311)](_0x55b352);}[_0x1f8522(0x30f)](){const _0x25a9bb=_0x1f8522;return this['_userManagerService'][_0x25a9bb(0x30f)]();}[_0x1f8522(0x205)](_0x33e8fb,_0x2e5cd7){const _0x26838e=_0x1f8522;let _0x5f1dde=this[_0x26838e(0x121)]['get'](_0x33e8fb);_0x5f1dde||(_0x5f1dde=new Tt(),this[_0x26838e(0x121)][_0x26838e(0x27d)](_0x33e8fb,_0x5f1dde),this[_0x26838e(0x241)][_0x26838e(0xc4)](_0x33e8fb)),_0x5f1dde[_0x26838e(0x205)](_0x2e5cd7);}[_0x1f8522(0x16d)](_0x5e22fe,_0x52fcaf){const _0x4e4344=_0x1f8522;let _0x369126=this[_0x4e4344(0x121)][_0x4e4344(0x315)](_0x5e22fe);_0x369126&&_0x369126[_0x4e4344(0x16d)](_0x52fcaf);}[_0x1f8522(0x1b5)](_0x1e4482){const _0x24e9c8=_0x1f8522;return this[_0x24e9c8(0x121)]['get'](_0x1e4482);}[_0x1f8522(0x2d2)](_0x2ad602,_0x4558b3){const _0x172520=_0x1f8522;let _0x49bccb=this[_0x172520(0x121)][_0x172520(0x315)](_0x2ad602);if(_0x49bccb)return _0x49bccb['getMember'](_0x4558b3);}[_0x1f8522(0x2bd)](_0x49ff93){const _0x3a8aef=_0x1f8522;let _0x3a61fd=this['_roomMembers']['get'](_0x49ff93);_0x3a61fd&&(_0x3a61fd[_0x3a8aef(0x282)](),this['_roomMembers']['delete'](_0x49ff93));}[_0x1f8522(0x282)](){const _0x19689f=_0x1f8522;this[_0x19689f(0x121)][_0x19689f(0x1b0)](_0x564236=>_0x564236[_0x19689f(0x282)]()),this[_0x19689f(0x121)][_0x19689f(0x217)](),this[_0x19689f(0x241)][_0x19689f(0x318)]();}};B=z([R(0x0,_0x3a738f),R(0x1,_0x4f07a4(_0x1e899d))],B);var Tt=class extends _0x555def{constructor(..._0x1e243d){const _0x2fcc82=_0x1f8522;super(..._0x1e243d),I(this,_0x2fcc82(0x2d3),new Map()),I(this,_0x2fcc82(0x25f),new _0x2acfcb(this[_0x2fcc82(0x2d3)])),I(this,_0x2fcc82(0x29b),this[_0x2fcc82(0x25f)][_0x2fcc82(0x2b0)]());}['dispose'](){const _0x34db13=_0x1f8522;this[_0x34db13(0x2d3)]['clear'](),this[_0x34db13(0x25f)][_0x34db13(0x318)]();}['updateMember'](_0xa75de9){const _0x4d3361=_0x1f8522;this['_members']['set'](_0xa75de9[_0x4d3361(0x184)],_0xa75de9),this[_0x4d3361(0x18d)]();}[_0x1f8522(0x16d)](_0x5aa15d){const _0x28d371=_0x1f8522;this[_0x28d371(0x2d3)][_0x28d371(0x319)](_0x5aa15d),this[_0x28d371(0x18d)]();}[_0x1f8522(0x2d2)](_0x563b23){const _0x26ff88=_0x1f8522;return this[_0x26ff88(0x2d3)][_0x26ff88(0x315)](_0x563b23);}[_0x1f8522(0x255)](){const _0x17de6a=_0x1f8522;return Array[_0x17de6a(0x21f)](this[_0x17de6a(0x2d3)][_0x17de6a(0x1eb)]());}[_0x1f8522(0x18d)](){const _0x32af59=_0x1f8522;this[_0x32af59(0x25f)][_0x32af59(0xc4)](this[_0x32af59(0x2d3)]);}};let Et=function(_0x2c674f){const _0x19d743=_0x1f8522;return _0x2c674f[_0x2c674f['IDLE']=0x0]=_0x19d743(0x1f6),_0x2c674f[_0x2c674f[_0x19d743(0x1f9)]=0x1]=_0x19d743(0x1f9),_0x2c674f[_0x2c674f[_0x19d743(0x262)]=0x2]='OFFLINE',_0x2c674f[_0x2c674f['ONLINE']=0x3]=_0x19d743(0x1ce),_0x2c674f;}({});const Dt={[_0x28282a['FAIL']]:_0x1f8522(0x177),[_0x28282a['JOIN_ROOM_FULL']]:_0x1f8522(0x1e2),[_0x28282a['JOIN_ROOM_NOT_EXISTS']]:_0x1f8522(0x14b),[_0x28282a[_0x1f8522(0x142)]]:'session.room-permission-denied',[_0x28282a['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x1f8522(0x1c0)};function _0x21a6(){const _0x56ecfd=['startTime','JOIN_ROOM_PERMISSION_DENIED','COMPRESS_MUTATION_APPLY','createCollaborator','5759724xtxXzq','onTransformIME','194576dkHoAp','CONFLICT','fromCollab','liveShareNewHost','session.room-not-exists','/allowed','actions','putCollaborators','_transformUndoredo','_transformAndApplyRemoteChangeset','[FetchMissState]','_httpService','failed\x20to\x20apply\x20missed\x20changesets!','uniscriptRunEvent','_socket$','downloadEndpointUrl','permissionRejEvent','_socketReady','_disableEditing','_doCreateSocket','_startCollaboration','onSyncEditingCollabCursor','emitEvent','requestParams','_undoRedoService','\x20in\x20_schedule.','/object/','_getSignURL','FileId','createInstance','PERMISSION_REJ','csShouldRetryEvent','OTHER_CLIENT_EDITING','now','_initUnitPermissionChange','33828IyPHmw','/universer-api/snapshot','_getAPIPrefixPath','removeMember','_telemetryInfo','UPDATE_CURSOR','fromCharCode','_initMergeInterceptor','action','responseType','avatar','_cfgEnableObjInherit','SUCCUSS','session.join-failed','_telemetryService','UNIVER_COLLABORATION_CLIENT_PLUGIN','sid','_collaborationSessionService','UNISCRIPT_RUN','_event$','_type','readAsDataURL','HEARTBEAT','_createInitialStateImpl','_init','getImage','memberID','loadUnit','_snapshotService','MUTATION','subUnitId','unit','indexOf','setShowComponents','NOT_COLLAB','_emitMembers','copyFileMeta','baseRev','version','1572316qhNJRL','_showConflictNotification','6549565dQVfWD','data','executeCommand','_onRemoteRetry','originalMeta','[CollaborationUndoRedoService]','_networkConditionService','_onConnectionFailed','workbook','_sessions','_getAPIPrefix','symbol','\x20-\x20','_sender','CHANGESET_REJ','_updateState','\x0aAfter:\x20','_entities','method','/-/object/-/batch_allowed','conflict','_updateStatus','_socketService','function','_getCtorByUniverInstanceType','\x20to\x20','getResourcesRequest','/universer-api/authz','RETRY_CONNECTING_MAX_COUNT','forEach','CHANGESET_SHOULD_RETRY','getActiveSheet','_collaborationPaused','transformSelections','getRoom','LEAVE','[PendingState]:\x20received\x20acknowledgement.','_clearUndo','MSG_FOR_ERROR','\x0aCurrent:\x20','retryConnectingInterval','_startTelemetryCollaborationNewChangeset','collaboration-client.config','_transformSelections','onMutationExecutedForCollab','session.room-cnt-exceeds','getFocusedUnit','confirm','_lockTransition','/resources','_replaceFileID','LIVESHARE_REQUEST_HOST','getUnitType','userID','addHandlerCallback','includes','NO_OTHER_CLIENTS_EDITING','state$','/new_changes','ONLINE','_toggleOnline','/universer-api/stream/file/upload','_clearRedo','_onConnectionOpen','infoRsp','setCfgEnableObjInherit','sheets','uploadFileServerUrl','_clearHeartbeatTimer','onCommentUpdate','SOCKET_FAILED_RETRY','updateCursorEvent','[SyncedState]:\x20received\x20acknowledgement.','params','toggleOffline','closeSession','sessionStatus$','_initCloseConn','_checkMissing','session.room-full','disableLocalCache','_state','HELLO','_candidateSocket','snapshot','_remoteChangesetQueue','change$','_listenToNetworkCondition','values','@univerjs-pro/collaboration-client','objectType','isPermissionRej','getUnitStatus$','unsubscribe','map','_getSendChangesetTimeout','_revisionService','enableSingleActiveInstanceLock','entityInit$','IDLE','_sheetTransformSelectionsService','_schedule','JOINING','_fetchMissChangesets','_incrementRevisionNumber','packageName','socket\x20open.','FETCH_MISS','_onJoinRoomEvent','_imageSourceCache','onRemoteAck','deepClone','_getUndoStack','_waitCount','updateMember','loginUrlKey','_transitionLocked','_sendHeartbeat','loadDoc','onload','univer-pro.collaboration-client.single-active-unit-service','joinRsp','&to=','onRemoteChangeset','iterator','updateOfflineData','_pendingMutations','_submitChangeset','_createHandler','status','name','_instanceService','clear','_resendTimer','_toggleOffline','collaboration_new_changeset','_applyRemoteChangeset','decorate','transformChangesets','number','from','objectID','_exhaustRemoteChangesetQueue','getUnit','replace','&source=','resolve','_handler','[PendingState]:\x20received\x20rejection.','_isEchoedAwaitingChangeset','LIVESHARE_FETCH_OPERATIONS','reconnect','onTransformSelections','_resendWithTimeout','entries','close','cmd','getCollabEntity','resend','initWorkbookPermissionChange','isArray','size','getTime','mutations','getLatestCsReqIdBySid','collabWebSocketUrl','patch','UNIVER_DOC','_onRemoteRejected','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getOwnPropertyDescriptor','registerHTTPInterceptor','_roomCreated$','UnitEmbedded','collaboration-client.local-cache-service','onLocalMutation','every','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','INGEST','textRanges','telemetry\x20info\x20is\x20not\x20initialized','close$','_onRemoteACK','dispose$','loadSheet','_sendHeartbeatTimer','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabSessionService','_throwTelemetryCollaborationNewChangeset','_getLoginPath','roomInfos','onRemoteRej','getAllMembers','unknown','saveImage','getMemberID','createSocket','PSEUDO_FETCH_MISSING_RESULT','stopTime','encrypt','_acknowledgeAwaitingIfReady','_updateLocalCache','_members$','min','target','OFFLINE','__Key__','_sendingTimer','catch','init','getCurrentSelections','Failed\x20to\x20update\x20permission\x20point','/block/','CLOSE_ROOM','objects','PERMISSION_DENIED','online$','save\x20fail\x20reason\x20is\x20','UUID','revision','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onStateChange','_getRedoStack','JOIN_ROOM_FAILED','_getCurrentRevision','/-/object/list','requireSession','_createSocket','_resendTimeout','_changesetReqId','_eventService','_socketMessageSubscription','set','pipe','saveSnapshot','transformMutationsWithChangeset','eventID','dispose','_socket','editingUnit','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','range','_onLocalMutation','_shouldReportTelemetry','_scheduleCollaborationTimeoutTimer','_registerDependencies','ws://127.0.0.1:8000/universer-api/comb/connect','leaveEvent','_onFetchMissResult','_change$','getTypeOfUnitAdded$','toPrimitive','_clearCollaborationTimeoutTimer','call','LIVESHARE_OPERATION','text-x','appendMutation','?url=','LIVESHARE_NEW_HOST','/collaborator','ERROR_EXCEED_SIZE','getDeserializedSheetBlock','members$','SOCKET_FAILED','_retryCount','NEW_CHANGESETS','fetchThroughInterceptors','[CollaborationSession]','add','_clearScheduledTask','JOIN','807617bgCtol','_decreaseWaiting','update','readyForCollab','joinEvent','reduce','error$','onTransformState','_acknowledgeAwaiting','saveSheetBlock','onMissingChangesets','fetchMiss','asObservable','getCollabEntity$','_logService','_collaborationUIEventService','sendChangesetTimeout','_substituteRedoStack','roles','prototype','equals','_createInitialState','getSnapshotAPIPath','c1Prime','compose','_removeRoom','_state$','_compressMutationService','PERSON','m2Prime','unitId','[OfflineState]:\x20received\x20rejection.','reqId','toggleOnline','selections','awaitingChangeset','SUBMIT_CHANGESET_TIMEOUT','max','getInterceptPoints','/role','session','/universer-api/file/{fileID}/sign-url','FETCH_MISSING','_unitInfo$','_transformIMECache','AWAITING','getMember','_members','getCurrentRevOfUnit','_transformRemoteChangesetByStateCache','onSendChangeset','pending','defineProperty','_commentService','src','_transformRemoteChangesetByIMECache','href','[CollaborationEntity]','_waitForHeartbeatResponse','LIVESHARE_TERMINATE','disposeWithMe','subject','_handleRemoteChangesets','collaborators','some','override','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_clearRetryConnectingTimer','string','_localeService','_memberService','file','_acknowledgedAwaitingRevision','_changesetSessionId','RECV','_sessionStatus$','onTransformRemoteChangesetByIMECache','[SyncedState]:\x20received\x20rejection.','loadOfflineData','changesets','USERS_LEAVE','find','_initDependencies','_getDownloadEndpointURL','_onUserJoin','state','ERROR_IMAGE_TYPE','_redoStacks','stringify','_status$','_replayCachedMutations','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','shouldCloseConn','capture','loadUnitOfRevision','updatePermissionObjEvent','debug','_timeoutTimer','_onRecvEvent','getSheetBlock','has','newCsEvent','_onMessage','onRemoteRetry','onTransformRemoteChangesetByStateCache','toString','getCurrentUser','duration','setCurrentUser','focused$','_queuedRemoteChangesets','univer-pro.collaboration-client-socket-service','get','_maxTotalRetryTimeout','enableAuthServer','complete','delete','_commandService','SUBMIT_CHANGESET','unit-cache-','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','awaiting','_singleActiveUnitService','_configService','encode','members','allowed','then','_joinRoom','HEARTBEAT_INTERVAL','push','_getUploadFileURL','_transformStack','next','_snapshotServerService','post','_onConflict','unitId\x20is\x20not\x20found','136wkzsMG','/universer-api/uniscript','_config','refreshPermission','/universer-api/snapshot/','CHANGESET_ACK','connection\x20error','_syncEditingCollabCursor','synced','error','socketService','/universer-api/oidc/authpage','_commentUpdate$','missingChangesets','setWaitCount','OTHER_CLIENTS_EDITING','message$','result','append','getUnitId','_localCacheService','_executeRemoteChangeset','_initRequestHeader','slice','getTypeOfUnitDisposed$','getConfig','_tryEnsureSocket','_clearTimeoutTimer','reject','put','cfgEnableObjInherit','object','_injector','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Univer','authzUrl','startsWith','/unit/','localeService','_transformService','listRoles','_entityInit$','_collaborationTimeoutTimer','ERROR_IMAGE','SHOULD_CLOSE_CONN','localCacheService','_univerInstanceService','0.25.0','7058527veVwHr','event$','subscribe','resourceIDs','_isPermissionRej','_permissionService','_undoStacks','_unitID','_onUserLeave','_unlockTransition','list','USERS_ENTER','reverse','code','UNIVER_SHEET','unitID','routeKey','length','getValue','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','headers','PENDING','_retryConnectingTimer','location','COMMENT_UPDATE','socket$','_transformStateCache','commentUpdate$','onlyLocal','fetching\x20missing\x20changesets\x20from\x20','_HTTPService','url','updateCollaborator','_awaitingChangeset','_onRemoteChangeset','send','[UniverCollaborationClientPlugin]','_handlerCallback','floor','offline','_roomMembers','_substituteUndoStack','body','POST','[CollaborationSessionService]','type','transformUndoRedo','[CollaborationState]:\x20apply\x20error!','hostname','open$','/object','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','[DataLoaderService]','sessionStatus','_rescheduleHeartbeat','_onOffline','_scheduleCompleteTimestamp','_clearLocalCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','updatePermissionPoint','getImageSourceCache','BASE64','interceptor','_tryReconnect','UPDATE_PERMISSION_OBJ','fetch_missing','awaiting_with_pending','title','onMissedChangesetFetched','HEARTBEAT_TIMEOUT','status$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20'];_0x21a6=function(){return _0x56ecfd;};return _0x21a6();}let Ot=class extends _0x3498fe{get[_0x1f8522(0x12e)](){const _0x1f6792=_0x1f8522;return this[_0x1f6792(0x2ef)][_0x1f6792(0x10b)]();}constructor(_0xf91ce1,_0x52f9a7,_0x128d6f,_0x5573d0,_0x51ea7b,_0x505d02,_0x555571,_0x26d183){const _0x36d464=_0x1f8522;super(),this[_0x36d464(0x100)]=_0xf91ce1,this['_logService']=_0x128d6f,this['_configService']=_0x5573d0,this[_0x36d464(0x2ea)]=_0x51ea7b,this[_0x36d464(0x2d9)]=_0x505d02,this[_0x36d464(0x2b3)]=_0x555571,this['_telemetryService']=_0x26d183,I(this,'_sessionStatus$',new _0x2acfcb(0x0)),I(this,_0x36d464(0x1df),this[_0x36d464(0x2ef)][_0x36d464(0x2b0)]()),I(this,_0x36d464(0x17d),new _0x147a88()),I(this,'event$',this[_0x36d464(0x17d)][_0x36d464(0x2b0)]()),I(this,_0x36d464(0x283),void 0x0),I(this,_0x36d464(0x27c),void 0x0),I(this,_0x36d464(0xf3),void 0x0),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x36d464(0x16e),null),this[_0x36d464(0x288)]=!!this[_0x36d464(0x178)],_0x52f9a7['pipe'](_0x56cc03(this[_0x36d464(0x24c)]))[_0x36d464(0xfb)](_0x40bf71=>{const _0x1fabb6=_0x36d464;if(_0x40bf71!==void 0x0){if(this['_socket']=_0x40bf71,_0x40bf71)this[_0x1fabb6(0xbf)](_0x40bf71),this[_0x1fabb6(0x27c)]=_0x40bf71[_0x1fabb6(0xd9)][_0x1fabb6(0xfb)](_0x278f15=>{const _0x1854a2=_0x1fabb6;_0x278f15['routeKey']===this[_0x1854a2(0x100)]&&this['_onCombEvent'](_0x278f15);});else{var _0x2817de;this[_0x1fabb6(0x251)](),this['_sessionStatus$'][_0x1fabb6(0xc4)](0x2),(_0x2817de=this[_0x1fabb6(0x27c)])==null||_0x2817de[_0x1fabb6(0x1f0)](),this[_0x1fabb6(0x27c)]=null;}}});}['getMemberID'](){const _0xba0525=_0x1f8522;var _0x15674d,_0x401eb3;return(_0x15674d=(_0x401eb3=this[_0xba0525(0x283)])==null?void 0x0:_0x401eb3[_0xba0525(0x184)])==null?null:_0x15674d;}[_0x1f8522(0x282)](){const _0x218c13=_0x1f8522;super['dispose'](),this[_0x218c13(0x22e)](),this[_0x218c13(0x24c)]['next'](),this[_0x218c13(0x24c)][_0x218c13(0x318)]();}[_0x1f8522(0x22e)](){const _0x4209c8=_0x1f8522;var _0x36c920,_0x29440b;this[_0x4209c8(0x251)](),(_0x36c920=this['_socket'])==null||_0x36c920['send']({'cmd':_0x15766e['LEAVE'],'data':{'roomID':this[_0x4209c8(0x100)]}}),(_0x29440b=this[_0x4209c8(0x283)])==null||_0x29440b['close'](),this[_0x4209c8(0x17d)][_0x4209c8(0x318)](),this[_0x4209c8(0x2ef)][_0x4209c8(0x318)]();}['_onCombEvent'](_0x4bc91f){const _0x43782b=_0x1f8522;_0x4bc91f[_0x43782b(0x22f)]===_0x15766e['JOIN']?this[_0x43782b(0x1ff)](_0x4bc91f):_0x4bc91f[_0x43782b(0x22f)]===_0x15766e[_0x43782b(0x2ee)]&&this[_0x43782b(0x307)](_0x4bc91f);}[_0x1f8522(0xbf)](_0x3fc5da){const _0x3fe085=_0x1f8522;this[_0x3fe085(0x2ef)][_0x3fe085(0xc4)](0x1),_0x3fc5da[_0x3fe085(0x11c)]({'cmd':_0x15766e[_0x3fe085(0x2a3)],'routeKey':this[_0x3fe085(0x100)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3fe085(0x100)]}]}});}[_0x1f8522(0x1ff)](_0x3e9f4d){const _0x3a1785=_0x1f8522;var _0x3d5bcd;if(_0x3e9f4d['code']in Dt){this[_0x3a1785(0x2b3)][_0x3a1785(0x15d)]({'id':_0x3a1785(0x274),'data':Dt[_0x3e9f4d['code']]}),this['_sessionStatus$'][_0x3a1785(0xc4)](0x2);return;}this['_sessionStatus$'][_0x3a1785(0xc4)](0x3);let _0x16c0d1=(_0x3d5bcd=_0x3e9f4d[_0x3a1785(0x194)][_0x3a1785(0x253)][this[_0x3a1785(0x100)]])==null?void 0x0:_0x3d5bcd[_0x3a1785(0xbc)];_0x16c0d1&&_0x16c0d1[_0x3a1785(0x1b0)](_0x26e6e2=>this[_0x3a1785(0x2ea)][_0x3a1785(0x205)](this[_0x3a1785(0x100)],_0x26e6e2));}[_0x1f8522(0x307)](_0x46852e){const _0x28f97f=_0x1f8522;try{let _0x587967=_0x46852e[_0x28f97f(0x194)];switch(_0x587967[_0x28f97f(0x281)]){case _0x27e67f[_0x28f97f(0x104)]:this[_0x28f97f(0x2f8)](_0x587967),this['_event$'][_0x28f97f(0xc4)](_0x587967);break;case _0x27e67f[_0x28f97f(0x2f4)]:this[_0x28f97f(0x101)](_0x587967),this[_0x28f97f(0x17d)]['next'](_0x587967);break;case _0x27e67f[_0x28f97f(0xce)]:case _0x27e67f[_0x28f97f(0x1b1)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x28f97f(0x291)](),this['_event$'][_0x28f97f(0xc4)](_0x587967);break;case _0x27e67f[_0x28f97f(0x1b9)]:this[_0x28f97f(0x2b2)][_0x28f97f(0xd2)](_0x28f97f(0x26e)+JSON[_0x28f97f(0x2fc)](_0x587967)),this[_0x28f97f(0x17d)]['next'](_0x587967);break;case _0x27e67f[_0x28f97f(0x111)]:this[_0x28f97f(0x2d9)][_0x28f97f(0x1d8)](_0x587967[_0x28f97f(0x194)]),this[_0x28f97f(0x17d)][_0x28f97f(0xc4)](_0x587967);break;default:this[_0x28f97f(0x17d)][_0x28f97f(0xc4)](_0x587967);}}catch(_0xa9a435){this[_0x28f97f(0x2b2)][_0x28f97f(0xd2)](_0xa9a435,_0x46852e);}}[_0x1f8522(0x2f8)](_0x3f8939){const _0x12453a=_0x1f8522;this[_0x12453a(0x2ea)]['updateMember'](this[_0x12453a(0x100)],_0x3f8939[_0x12453a(0x194)]);}[_0x1f8522(0x101)](_0x2a2d94){const _0x26fd1c=_0x1f8522;this[_0x26fd1c(0x2ea)][_0x26fd1c(0x16d)](this[_0x26fd1c(0x100)],_0x2a2d94[_0x26fd1c(0x194)][_0x26fd1c(0x184)]);}async[_0x1f8522(0x11c)](_0x23c25e,_0x361323){const _0x1d1ad8=_0x1f8522;if(this[_0x1d1ad8(0x12e)]!==0x3||!this[_0x1d1ad8(0x283)])throw Error(_0x1d1ad8(0x285));try{_0x23c25e[_0x1d1ad8(0x281)]===_0x27e67f[_0x1d1ad8(0x31b)]&&(this[_0x1d1ad8(0x289)](),this[_0x1d1ad8(0x1bc)](_0x23c25e)),this[_0x1d1ad8(0x283)]['send']({'cmd':_0x15766e[_0x1d1ad8(0x247)],'routeKey':_0x361323,'routeType':'','data':_0x23c25e});}catch(_0x443a2d){this[_0x1d1ad8(0x2b2)][_0x1d1ad8(0xd2)](_0x443a2d);}}[_0x1f8522(0x289)](){const _0x187bb6=_0x1f8522;var _0x33ca80;this[_0x187bb6(0xf3)]=setTimeout(()=>{const _0xa0f5a1=_0x187bb6;this[_0xa0f5a1(0xf3)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0xa0f5a1(0x2c8)});},(_0x33ca80=this[_0x187bb6(0xba)][_0x187bb6(0xe2)](_0x187bb6(0x13e)))==null?mt:_0x33ca80);}['_clearCollaborationTimeoutTimer'](){const _0x1a578f=_0x1f8522;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x1a578f(0xf3)]),this[_0x1a578f(0xf3)]=null);}[_0x1f8522(0x1bc)](_0x5766a3){const _0x2d0d62=_0x1f8522;if(!this[_0x2d0d62(0x288)])return;let {data:_0x2026f2}=_0x5766a3,{unitID:_0x3d3b45,changeset:_0x1b7cf2}=_0x2026f2,{mutations:_0x54d272,type:_0x8bdbc5}=_0x1b7cf2;this['_telemetryInfo']={'unitId':_0x3d3b45,'type':_0x8bdbc5,'startTime':performance[_0x2d0d62(0x168)](),'stopTime':0x0,'duration':0x0,'size':bt(_0x54d272)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x424553=_0x1f8522;if(this[_0x424553(0x288)]){if(!this[_0x424553(0x16e)]){this['_logService']['error'](_0x424553(0x2a0),_0x424553(0x249));return;}this[_0x424553(0x16e)]['stopTime']=performance[_0x424553(0x168)](),this[_0x424553(0x16e)][_0x424553(0x310)]=this[_0x424553(0x16e)][_0x424553(0x25b)]-this['_telemetryInfo'][_0x424553(0x141)],this[_0x424553(0x178)][_0x424553(0x302)](_0x424553(0x21a),this[_0x424553(0x16e)]),this['_telemetryInfo']=null;}}[_0x1f8522(0x251)](){const _0x42e2b0=_0x1f8522;this[_0x42e2b0(0x16e)]=null;}};Ot=z([R(0x2,_0x1443cf),R(0x3,_0x3ba9f8),R(0x4,_0x4f07a4(B)),R(0x5,_0x4f07a4(wt)),R(0x6,_0x4f07a4(L)),R(0x7,_0x1cfc4d(_0x4f515e))],Ot);const V=_0x4bcee9(_0x1f8522(0x243));function kt(_0x4fca18){const _0x4c97c1=_0x1f8522;return _0x4c97c1(0x31c)+_0x4fca18;}function At(_0x1f0f96){const _0xa2f116=_0x1f8522;let {unitID:_0x3bda8b,mutations:_0x599451}=_0x1f0f96;return{'unitId':_0x3bda8b,'subUnitId':_0x599451[_0xa2f116(0x10a)]>0x0?_0x599451[0x0][_0xa2f116(0x1dc)][_0xa2f116(0x188)]:null};}let H=class{constructor(_0x36e93a,_0xca7fd3,_0x53819d){const _0x16695f=_0x1f8522;this[_0x16695f(0xe9)]=_0x36e93a,this[_0x16695f(0xf0)]=_0xca7fd3,this['_instanceService']=_0x53819d;}['transformSelections'](_0xe34856){const _0x56e55a=_0x1f8522;var _0x5be139,_0x176987;let _0x1d8cee=this[_0x56e55a(0xe9)][_0x56e55a(0x315)](_0x24181c),{unitId:_0x424661,subUnitId:_0x220be8}=At(_0xe34856),_0x51baeb=_0x1d8cee==null?void 0x0:_0x1d8cee['getWorkbookSelections'](_0x424661)[_0x56e55a(0x267)](),_0x4803f8=(_0x5be139=this[_0x56e55a(0x216)][_0x56e55a(0x222)](_0x424661))==null||(_0x5be139=_0x5be139[_0x56e55a(0x1b2)]())==null?void 0x0:_0x5be139['getSheetId']();if(_0x51baeb[_0x56e55a(0x10a)]===0x0||!_0x424661||!_0x220be8)return;let _0x1b0c92=[{'id':_0x30f1f3['id'],'params':{'unitId':_0x424661,'subUnitId':_0x4803f8,'selections':_0x49bc12[_0x56e55a(0x202)](_0x51baeb)}}],_0x57f044=this[_0x56e55a(0xf0)][_0x56e55a(0x280)](_0xe34856,_0x1b0c92);if(!_0x534268(_0x57f044))throw _0x57f044['error'];let _0x326816=(_0x176987=_0x57f044[_0x56e55a(0x2c1)][0x0])==null||(_0x176987=_0x176987['params'])==null?void 0x0:_0x176987[_0x56e55a(0x2c6)];if(Array[_0x56e55a(0x233)](_0x326816)&&_0x326816[_0x56e55a(0x10a)]){if(_0x326816[_0x56e55a(0x10a)]===_0x1b0c92[0x0][_0x56e55a(0x1dc)][_0x56e55a(0x2c6)]['length']&&_0x326816['every']((_0x12d3ca,_0x2404b1)=>_0x522a87[_0x56e55a(0x2b8)](_0x12d3ca[_0x56e55a(0x286)],_0x1b0c92[0x0]['params'][_0x56e55a(0x2c6)][_0x2404b1][_0x56e55a(0x286)])))return;this[_0x56e55a(0xe9)][_0x56e55a(0x315)](_0x3a76f7)[_0x56e55a(0x195)](_0x30f1f3['id'],{'unitId':_0x424661,'subUnitId':_0x4803f8,'selections':_0x326816});}}};H=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f7ff9),R(0x2,_0x3a738f)],H);const jt=_0x4bcee9(_0x1f8522(0x20b));let Mt=function(_0x452f4e){const _0x52526d=_0x1f8522;return _0x452f4e[_0x452f4e[_0x52526d(0x1cb)]=0x0]=_0x52526d(0x1cb),_0x452f4e[_0x452f4e[_0x52526d(0xd8)]=0x1]=_0x52526d(0xd8),_0x452f4e;}({});const U=_0x1f8522(0x1bd),Nt={};function Pt(_0xc5efc8){const _0x2edfec=_0x1f8522;var _0x264952;return!!((_0x264952=_0xc5efc8[_0x2edfec(0x1dc)])!=null&&_0x264952['__splitChunk__']);}const Ft=new Set([_0x5c656f['id']]);function It(_0x35f748,_0x297b18,_0x316b34,_0xc56ab5,_0x43ef2a){const _0x1c7c10=_0x1f8522;var _0x2216fd,_0x21900b,_0x436261,_0x3cecbc;let _0x1b7454=[];for(let _0x4057f7 of _0x35f748){if(Ft[_0x1c7c10(0x309)](_0x4057f7['id'])){if(_0x1b7454[_0x1c7c10(0x10a)]>0x0)break;_0x1b7454['push'](_0x4057f7);break;}if(Pt(_0x4057f7)){if(_0x1b7454[_0x1c7c10(0x10a)]>0x0)break;_0x1b7454[_0x1c7c10(0xc1)](_0x4057f7);break;}_0x1b7454[_0x1c7c10(0xc1)](_0x4057f7);}let _0x55e6b8=(_0x2216fd=(_0x21900b=_0x43ef2a[_0x1c7c10(0x30f)]())==null?void 0x0:_0x21900b['userID'])==null?'unknown':_0x2216fd,_0x3e7f60=(_0x436261=(_0x3cecbc=_0x43ef2a[_0x1c7c10(0x30f)]())==null?void 0x0:_0x3cecbc[_0x1c7c10(0x184)])==null?'unknown':_0x436261;return{'changeset':{'unitID':_0x297b18,'type':_0x6f4221(_0x316b34[_0x1c7c10(0x1c7)](_0x297b18)),'baseRev':_0xc56ab5[_0x1c7c10(0x2d4)](_0x297b18),'revision':0x0,'userID':_0x55e6b8,'memberID':_0x3e7f60,'mutations':_0x1b7454},'pendingMutations':_0x35f748['slice'](_0x1b7454[_0x1c7c10(0x10a)])};}function Lt(_0x362555,_0x24dffa,_0x353dda,_0x366e25,_0x4a94da){const _0x193fb9=_0x1f8522;var _0x417348,_0x75641b,_0x7ddd48,_0x5a4285;let _0x102900=_0x362555['reduce']((_0x1a89bd,_0x4a06f3)=>{const _0x24ac48=_0x249d;let _0x4bf16f=_0x1a89bd[_0x1a89bd[_0x24ac48(0x10a)]-0x1],{id:_0x46e5bb}=_0x4bf16f==null?{}:_0x4bf16f,{id:_0x547dec,type:_0x46d582}=_0x4a06f3,_0x21e611=_0x4a06f3[_0x24ac48(0x1dc)];if(_0x46e5bb&&_0x46e5bb!==_0x547dec)throw Error(_0x24ac48(0x23d)+_0x46e5bb+_0x24ac48(0x19f)+_0x547dec+'.');if(!_0x4bf16f)return[{'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x21e611[_0x24ac48(0x14d)]}}];let _0x3989f1=_0x4bf16f['params'];return Rt(_0x3989f1['actions'],_0x21e611['actions'])?[..._0x1a89bd['slice'](0x0,-0x1),{..._0x4bf16f,'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x329bf1[_0x24ac48(0x2bc)](_0x3989f1[_0x24ac48(0x14d)],_0x21e611[_0x24ac48(0x14d)])}}]:[..._0x1a89bd,{'id':_0x547dec,'type':_0x46d582,'params':{'unitId':_0x21e611[_0x24ac48(0x2c2)],'textRanges':_0x21e611[_0x24ac48(0x248)],'actions':_0x21e611['actions']}}];},[]),_0x14b1d1=(_0x417348=(_0x75641b=_0x4a94da['getCurrentUser']())==null?void 0x0:_0x75641b[_0x193fb9(0x1c8)])==null?_0x193fb9(0x256):_0x417348,_0x216f25=(_0x7ddd48=(_0x5a4285=_0x4a94da['getCurrentUser']())==null?void 0x0:_0x5a4285[_0x193fb9(0x184)])==null?_0x193fb9(0x256):_0x7ddd48;return{'changeset':{'unitID':_0x24dffa,'type':_0x6f4221(_0x353dda[_0x193fb9(0x1c7)](_0x24dffa)),'baseRev':_0x366e25['getCurrentRevOfUnit'](_0x24dffa),'revision':0x0,'userID':_0x14b1d1,'memberID':_0x216f25,'mutations':_0x102900},'pendingMutations':_0x362555[_0x193fb9(0xe0)](_0x362555[_0x193fb9(0x10a)])};}function Rt(_0x67f21c,_0x523b7d){return!(zt(_0x67f21c)&&Bt(_0x523b7d)||Bt(_0x67f21c)&&zt(_0x523b7d));}function zt(_0x1f4b3f){const _0x43828a=_0x1f8522;return Vt(_0x1f4b3f)['some'](_0x38f738=>Ht(_0x38f738)&&_0x38f738['et']===_0x43828a(0x294));}function Bt(_0x7add0){const _0x337311=_0x1f8522;return Vt(_0x7add0)[_0x337311(0x2e4)](_0x1a4f62=>Array['isArray'](_0x1a4f62)||typeof _0x1a4f62==_0x337311(0x2e8)||typeof _0x1a4f62==_0x337311(0x21e));}function Vt(_0x14c1ab){const _0x3e3949=_0x1f8522;if(!Array[_0x3e3949(0x233)](_0x14c1ab))return[];let _0xe59f7=_0x14c1ab[_0x3e3949(0x1ca)](_0x3e3949(0x123))?_0x14c1ab:_0x14c1ab[_0x3e3949(0x2f5)](_0x140e8d=>Array['isArray'](_0x140e8d)&&_0x140e8d['includes'](_0x3e3949(0x123)));if(!Array[_0x3e3949(0x233)](_0xe59f7))return[];let _0x533bc9=_0xe59f7[_0x3e3949(0x18a)](_0x3e3949(0x123));return _0x533bc9===-0x1?[]:_0xe59f7['slice'](_0x533bc9+0x1);}function Ht(_0x28a155){const _0x327d4f=_0x1f8522;return typeof _0x28a155=='object'&&!!_0x28a155&&!Array[_0x327d4f(0x233)](_0x28a155);}function Ut(_0xe84b2e,_0x5cfa29){const _0x50643d=_0x1f8522;let _0x3904d1=new _0x40aa8b(0x1);return setTimeout(()=>_0x3904d1[_0x50643d(0xc4)](_0x5cfa29),_0xe84b2e),_0x3904d1[_0x50643d(0x2b0)]()['pipe'](_0x4abdb0(0x1));}var Wt,Gt,Kt;let qt=function(_0x1742b1){const _0x5b825a=_0x1f8522;return _0x1742b1[_0x5b825a(0x18c)]='not_collab',_0x1742b1['SYNCED']=_0x5b825a(0xd1),_0x1742b1[_0x5b825a(0x10e)]=_0x5b825a(0x2d7),_0x1742b1[_0x5b825a(0x2d1)]=_0x5b825a(0x31e),_0x1742b1['AWAITING_WITH_PENDING']=_0x5b825a(0x13b),_0x1742b1[_0x5b825a(0x1fe)]=_0x5b825a(0x13a),_0x1742b1[_0x5b825a(0x148)]=_0x5b825a(0x1a7),_0x1742b1[_0x5b825a(0x262)]=_0x5b825a(0x120),_0x1742b1;}({});const Jt=0x4e20,Yt=0x2bf20;var W=class{constructor(_0xaa93de,_0x29f5e1,_0x229c8e,_0x2dda0f,_0x396927,_0x414332,_0x4548fc,_0x1329c8,_0x2706cc){const _0x513e7d=_0x1f8522;this[_0x513e7d(0x108)]=_0xaa93de,this[_0x513e7d(0x126)]=_0x29f5e1,this[_0x513e7d(0x226)]=_0x396927,this[_0x513e7d(0x31a)]=_0x414332,this[_0x513e7d(0x15f)]=_0x4548fc,this[_0x513e7d(0x1f3)]=_0x1329c8,this[_0x513e7d(0xdd)]=_0x2706cc,I(this,_0x513e7d(0x11a),null),I(this,_0x513e7d(0x211),[]),this[_0x513e7d(0x11a)]=_0x229c8e,this[_0x513e7d(0x211)]=_0x2dda0f;}[_0x1f8522(0x1e1)](_0x194b3e){const _0x47cf5d=_0x1f8522;let _0x346278=this[_0x47cf5d(0x1f3)]['getCurrentRevOfUnit'](this[_0x47cf5d(0x108)]);return _0x194b3e[_0x47cf5d(0x270)]>_0x346278+0x1?(this[_0x47cf5d(0x226)][_0x47cf5d(0x2ae)]({'from':_0x346278,'to':_0x194b3e[_0x47cf5d(0x270)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x55c070){const _0x35e7cf=_0x1f8522;this[_0x35e7cf(0x15f)][_0x35e7cf(0x127)](this[_0x35e7cf(0x108)],_0x55c070);}[_0x1f8522(0x1be)](_0x50a932){const _0x17e7a4=_0x1f8522;var _0x521fb8,_0x2457af;(_0x521fb8=(_0x2457af=this[_0x17e7a4(0x226)])[_0x17e7a4(0x22b)])==null||_0x521fb8[_0x17e7a4(0x292)](_0x2457af,_0x50a932);}[_0x1f8522(0x2d0)](_0x115cc2){const _0x11c95a=_0x1f8522;var _0x534674,_0x238bec;return(_0x534674=(_0x238bec=this[_0x11c95a(0x226)])[_0x11c95a(0x146)])==null?void 0x0:_0x534674[_0x11c95a(0x292)](_0x238bec,_0x115cc2);}['_transformStateCache'](_0x488e93){const _0x525fe9=_0x1f8522;var _0xe14041,_0x43e096;return(_0xe14041=(_0x43e096=this[_0x525fe9(0x226)])[_0x525fe9(0x2ab)])==null?void 0x0:_0xe14041['call'](_0x43e096,_0x488e93);}[_0x1f8522(0x2db)](_0x36f004){const _0x11f9f0=_0x1f8522;var _0xe08f35,_0x2293f9,_0x106e9c;return(_0xe08f35=(_0x2293f9=(_0x106e9c=this[_0x11f9f0(0x226)])[_0x11f9f0(0x2f0)])==null?void 0x0:_0x2293f9[_0x11f9f0(0x292)](_0x106e9c,_0x36f004))==null?_0x36f004:_0xe08f35;}[_0x1f8522(0x2d5)](_0x48cae5){const _0x1428c4=_0x1f8522;var _0x57b6d7,_0x2f3a96,_0xd48bb3;return(_0x57b6d7=(_0x2f3a96=(_0xd48bb3=this['_handler'])[_0x1428c4(0x30d)])==null?void 0x0:_0x2f3a96['call'](_0xd48bb3,_0x48cae5))==null?_0x48cae5:_0x57b6d7;}[_0x1f8522(0xd0)](_0x3e822a){const _0x1c18b3=_0x1f8522;if(this[_0x1c18b3(0x126)]===_0x292cef[_0x1c18b3(0x23a)]){let {unitID:_0x6b8771,mutations:_0x3ce39a,memberID:_0x141ca4}=_0x3e822a,_0x5c5ef4=_0x3ce39a[_0x1c18b3(0x10a)]>0x0?_0x3ce39a[0x0][_0x1c18b3(0x1dc)][_0x1c18b3(0x248)]:[];if(Array[_0x1c18b3(0x233)](_0x5c5ef4)&&_0x5c5ef4[_0x1c18b3(0x10a)]>0x0){var _0x41c253,_0x3e5cfa;(_0x41c253=(_0x3e5cfa=this['_handler'])[_0x1c18b3(0x15c)])==null||_0x41c253[_0x1c18b3(0x292)](_0x3e5cfa,{'unitID':_0x6b8771,'memberID':_0x141ca4,'textRanges':_0x5c5ef4});}}}[_0x1f8522(0x25e)](){const _0x202d7a=_0x1f8522;var _0x25def;(_0x25def=this[_0x202d7a(0xdd)])==null||_0x25def[_0x202d7a(0x210)](this['unitID'],this[_0x202d7a(0x126)],this[_0x202d7a(0x11a)],this[_0x202d7a(0x211)]);}[_0x1f8522(0x275)](){const _0x54ea9c=_0x1f8522;return this[_0x54ea9c(0x1f3)][_0x54ea9c(0x2d4)](this['unitID']);}[_0x1f8522(0x1fb)](){const _0x21bf8b=_0x1f8522;this['_revisionService']['incrementRevOfUnit'](this[_0x21bf8b(0x108)]);}[_0x1f8522(0xde)](_0x5c797b){const _0x2e3105=_0x1f8522;let _0x655ae8=this['_transformRemoteChangesetByIMECache'](_0x5c797b);_0x655ae8=this[_0x2e3105(0x2d5)](_0x655ae8);let _0x509ae8=_0x3bd5c0(_0x655ae8['mutations'],this[_0x2e3105(0x31a)],{'fromCollab':!0x0});if(!_0x509ae8['result']){var _0x3eb164;throw _0x509ae8[_0x2e3105(0xd2)]instanceof Error?_0x509ae8['error']:Error((_0x3eb164=_0x509ae8[_0x2e3105(0xd2)])==null?_0x2e3105(0x128):_0x3eb164);}this[_0x2e3105(0x2d0)](_0x655ae8),this[_0x2e3105(0x113)](_0x655ae8),this[_0x2e3105(0x14f)](_0x5c797b),this['_transformSelections'](_0x655ae8),this[_0x2e3105(0xd0)](_0x655ae8),this[_0x2e3105(0x1fb)]();}};let G=class extends W{constructor(_0x4f6306,_0x340626,_0x5b4b33,_0x3d8c13,_0x4157b4,_0x525fa1,_0x40c40a,_0x38e3a0,_0x4fe3b1,_0x35b7ef){const _0x5d129b=_0x1f8522;super(_0x4f6306,_0x340626,null,[],_0x5b4b33,_0x40c40a,_0x525fa1,_0x3d8c13,_0x35b7ef),this[_0x5d129b(0xe9)]=_0x4157b4,this[_0x5d129b(0x2b2)]=_0x38e3a0,this[_0x5d129b(0xf0)]=_0x4fe3b1,this[_0x5d129b(0xf6)]=_0x35b7ef,I(this,_0x5d129b(0x214),_0x5d129b(0xd1));}[_0x1f8522(0x295)](_0x54dd3b){const _0x28bea9=_0x1f8522;let _0x4b0dab=this[_0x28bea9(0xe9)][_0x28bea9(0x164)](K,this[_0x28bea9(0x108)],this[_0x28bea9(0x126)],[_0x54dd3b],this[_0x28bea9(0x226)]);return _0x4b0dab[_0x28bea9(0x1f8)](),_0x4b0dab[_0x28bea9(0x25e)](),_0x4b0dab;}[_0x1f8522(0x20e)](_0x49a264){const _0x58ebee=_0x1f8522;if(this[_0x58ebee(0x1e1)](_0x49a264))return this[_0x58ebee(0xe9)][_0x58ebee(0x164)](Z,this['unitID'],this[_0x58ebee(0x126)],null,[],null,[_0x49a264],this['_handler']);try{let _0x174282=this[_0x58ebee(0xf0)]['transformMutationsWithChangeset'](_0x49a264,[_0x3b7ae1]);if(_0x534268(_0x174282)){let {c1Prime:_0x3169be}=_0x174282;return this[_0x58ebee(0xde)](_0x3169be),this;}throw _0x174282[_0x58ebee(0xd2)];}catch(_0x5ba14f){return this[_0x58ebee(0x2b2)][_0x58ebee(0xd2)](_0x5ba14f),this[_0x58ebee(0xc7)](!0x1);}}[_0x1f8522(0xc7)](_0x5aee3f){const _0x2a44cf=_0x1f8522;return this[_0x2a44cf(0xe9)][_0x2a44cf(0x164)](Y,this[_0x2a44cf(0x108)],this['type'],null,[],this[_0x2a44cf(0x226)],_0x5aee3f);}[_0x1f8522(0x201)](_0x17decb){const _0x26fa92=_0x1f8522;if(_0x17decb[_0x26fa92(0x270)]<=this[_0x26fa92(0x275)]())return this;throw Error(_0x26fa92(0x1db));}[_0x1f8522(0x254)](){const _0x4ff1da=_0x1f8522;throw Error(_0x4ff1da(0x2f1));}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){const _0x5c8db9=_0x1f8522;return this['_injector'][_0x5c8db9(0x164)](X,this['unitID'],this[_0x5c8db9(0x126)],null,[],this[_0x5c8db9(0x226)]);}[_0x1f8522(0x2c5)](){return this;}['resend'](){const _0x58e322=_0x1f8522;throw Error(_0x58e322(0x24f));}[_0x1f8522(0x2af)](){const _0x3452dc=_0x1f8522;let _0x235825=this[_0x3452dc(0x1f3)][_0x3452dc(0x2d4)](this[_0x3452dc(0x108)]);return this[_0x3452dc(0x226)][_0x3452dc(0x2ae)]({'from':_0x235825,'to':0x0}),this[_0x3452dc(0xe9)][_0x3452dc(0x164)](Z,this[_0x3452dc(0x108)],this[_0x3452dc(0x126)],null,[],null,[],this[_0x3452dc(0x226)]);}};G=z([R(0x3,_0x4f07a4(_0x3c5693)),R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x3b54de),R(0x6,_0x3a76f7),R(0x7,_0x1443cf),R(0x8,_0x4f7ff9),R(0x9,_0x1cfc4d(V))],G);let K=Wt=class extends W{constructor(_0x2ae961,_0x1701da,_0x4ec414,_0x402bb8,_0x937210,_0x2f14e0,_0x3462f3,_0x1a14c0,_0x2a8495,_0x2b98a7,_0x2a56a0,_0x40d1ca,_0x4525c4,_0x497b51){const _0x419ab1=_0x1f8522;super(_0x2ae961,_0x1701da,null,_0x4ec414,_0x402bb8,_0x2a8495,_0x4525c4,_0x2f14e0,_0x497b51),this[_0x419ab1(0xe9)]=_0x937210,this['_memberService']=_0x3462f3,this['_logService']=_0x1a14c0,this[_0x419ab1(0xba)]=_0x2b98a7,this[_0x419ab1(0xf0)]=_0x2a56a0,this[_0x419ab1(0xf7)]=_0x40d1ca,I(this,_0x419ab1(0x214),'pending'),I(this,_0x419ab1(0x131),null),I(this,'_sendingTimer',null);}[_0x1f8522(0x295)](_0x36efd7){const _0x3f7d74=_0x1f8522;return this[_0x3f7d74(0x211)][_0x3f7d74(0xc1)](_0x36efd7),this[_0x3f7d74(0x25e)](),this;}[_0x1f8522(0x20e)](_0x178c1a){const _0x200961=_0x1f8522;if(this[_0x200961(0x1e1)](_0x178c1a))return this[_0x200961(0x2a2)](),this[_0x200961(0xe9)][_0x200961(0x164)](Z,this[_0x200961(0x108)],this[_0x200961(0x126)],null,this['_pendingMutations'],null,[_0x178c1a],this[_0x200961(0x226)]);try{let _0x106fdb=this[_0x200961(0xf0)][_0x200961(0x280)](_0x178c1a,this[_0x200961(0x211)]);if(_0x534268(_0x106fdb)){let {c1Prime:_0x35a985,m2Prime:_0x24c3c7}=_0x106fdb;this['_executeRemoteChangeset'](_0x35a985);let _0x10f376=this[_0x200961(0xe9)][_0x200961(0x164)](Wt,this[_0x200961(0x108)],this[_0x200961(0x126)],_0x24c3c7,this['_handler']);this[_0x200961(0x2a2)]();let _0x2cc4ab=new Date()[_0x200961(0x235)](),_0x104f3d=this[_0x200961(0x131)]?Math[_0x200961(0x2c9)](this['_scheduleCompleteTimestamp']-_0x2cc4ab,0x0):this['_getSendChangesetTimeout']();return _0x10f376[_0x200961(0x1f8)](_0x104f3d),_0x10f376;}throw _0x106fdb[_0x200961(0xd2)];}catch(_0x3ab9ad){return this[_0x200961(0x2b2)][_0x200961(0xd2)](_0x3ab9ad),this[_0x200961(0xc7)](!0x1);}}[_0x1f8522(0x201)](_0x481ee2){const _0x4c206e=_0x1f8522;if(_0x481ee2[_0x4c206e(0x270)]<=this[_0x4c206e(0x275)]())return this;throw Error(_0x4c206e(0x1b7));}[_0x1f8522(0x254)](){const _0x48e976=_0x1f8522;throw Error(_0x48e976(0x227));}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){const _0x4a3af4=_0x1f8522;return this[_0x4a3af4(0x2a2)](),this[_0x4a3af4(0xe9)][_0x4a3af4(0x164)](X,this[_0x4a3af4(0x108)],this[_0x4a3af4(0x126)],null,this[_0x4a3af4(0x211)],this[_0x4a3af4(0x226)]);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x1f8)](_0x56487b){const _0x34339f=_0x1f8522;let _0x508ee6=_0x56487b==null?this[_0x34339f(0x1f2)]():_0x56487b;this[_0x34339f(0x131)]=new Date()[_0x34339f(0x235)]()+_0x508ee6,this['_sendingTimer']=setTimeout(()=>{const _0x96f910=_0x34339f;this[_0x96f910(0x2a2)]();let _0xa3f195=null;switch(this[_0x96f910(0x126)]){case _0x292cef['UNIVER_SHEET']:_0xa3f195=It(this[_0x96f910(0x211)],this[_0x96f910(0x108)],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this[_0x96f910(0x2ea)]);break;case _0x292cef[_0x96f910(0x23a)]:_0xa3f195=this['_pendingMutations'][_0x96f910(0x245)](_0x227aa7=>_0x227aa7['id']===_0x234ae8['id'])?Lt(this[_0x96f910(0x211)],this['unitID'],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this[_0x96f910(0x2ea)]):It(this['_pendingMutations'],this[_0x96f910(0x108)],this[_0x96f910(0xf7)],this[_0x96f910(0x1f3)],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x96f910(0x160));}let {changeset:_0x8b5d43,pendingMutations:_0x33c876}=_0xa3f195;this[_0x96f910(0x226)][_0x96f910(0x2d6)](_0x8b5d43);let _0x1346cc=_0x33c876[_0x96f910(0x10a)]?this['_injector'][_0x96f910(0x164)](J,this['unitID'],this['type'],_0x8b5d43,_0x33c876,this[_0x96f910(0x226)],void 0x0):this[_0x96f910(0xe9)][_0x96f910(0x164)](q,this[_0x96f910(0x108)],this['type'],_0x8b5d43,this['_handler']);_0x1346cc[_0x96f910(0x25e)](),this[_0x96f910(0x226)][_0x96f910(0x272)](this,_0x1346cc);},_0x508ee6);}['_getSendChangesetTimeout'](){const _0x5062b8=_0x1f8522;var _0x2631ab;let _0x4e86d2=this[_0x5062b8(0xba)][_0x5062b8(0xe2)](U);return(_0x2631ab=_0x4e86d2==null?void 0x0:_0x4e86d2[_0x5062b8(0x2b4)])==null?0x7d0:_0x2631ab;}['resend'](){const _0x3eed3f=_0x1f8522;throw Error(_0x3eed3f(0x300));}[_0x1f8522(0x2a2)](){const _0x331dfa=_0x1f8522;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x331dfa(0x264)]=null);}['_onConflict'](_0x11965f){const _0xb9f45=_0x1f8522;return this[_0xb9f45(0x2a2)](),this[_0xb9f45(0xe9)][_0xb9f45(0x164)](Y,this[_0xb9f45(0x108)],this[_0xb9f45(0x126)],null,this[_0xb9f45(0x211)],this['_handler'],_0x11965f);}};K=Wt=z([R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x4f07a4(_0x3c5693)),R(0x6,_0x4f07a4(B)),R(0x7,_0x1443cf),R(0x8,_0x3a76f7),R(0x9,_0x3ba9f8),R(0xa,_0x4f7ff9),R(0xb,_0x3a738f),R(0xc,_0x3b54de),R(0xd,_0x1cfc4d(V))],K);let q=Gt=class extends W{constructor(_0x3c71d7,_0x52950a,_0x398247,_0x51a625,_0x376c34,_0x48c528,_0x1f45d1,_0xcb1d3f,_0x1405fb,_0x5e140d,_0x4b3534){const _0x13f268=_0x1f8522;super(_0x3c71d7,_0x52950a,_0x398247,[],_0x51a625,_0x1f45d1,_0x5e140d,_0x48c528,_0x4b3534),this[_0x13f268(0xe9)]=_0x376c34,this[_0x13f268(0x2b2)]=_0xcb1d3f,this[_0x13f268(0xf0)]=_0x1405fb,I(this,_0x13f268(0x214),_0x13f268(0x31e)),I(this,_0x13f268(0x279),0x0),I(this,_0x13f268(0x316),0x0),I(this,'_resendTimer',void 0x0),I(this,'_sender',void 0x0);}[_0x1f8522(0x295)](_0x5f164b){const _0x2f9740=_0x1f8522;this[_0x2f9740(0x2a2)]();let _0x19d4d3=this[_0x2f9740(0xe9)][_0x2f9740(0x164)](J,this[_0x2f9740(0x108)],this[_0x2f9740(0x126)],this['_awaitingChangeset'],[_0x5f164b],this[_0x2f9740(0x226)],this[_0x2f9740(0x218)]);return _0x19d4d3[_0x2f9740(0x25e)](),_0x19d4d3;}[_0x1f8522(0x20e)](_0x4a1941){const _0x1cacc9=_0x1f8522;if(this['_checkMissing'](_0x4a1941))return this[_0x1cacc9(0x2a2)](),this[_0x1cacc9(0xe9)][_0x1cacc9(0x164)](Z,this['unitID'],this[_0x1cacc9(0x126)],this['_awaitingChangeset'],[],null,[_0x4a1941],this[_0x1cacc9(0x226)]);try{let _0x245001=this['_transformService'][_0x1cacc9(0x21d)]([_0x4a1941],[this['_awaitingChangeset']],!0x1);if(_0x1dbd0e(_0x245001)){let {c1Prime:_0x634538,c2Prime:_0x353fdb}=_0x245001;this[_0x1cacc9(0xde)](_0x634538[0x0]),_0x353fdb[0x0][_0x1cacc9(0x18f)]=this['_getCurrentRevision'](),this[_0x1cacc9(0x2a2)]();let _0x1df3c1=this['_injector'][_0x1cacc9(0x164)](Gt,this['unitID'],this[_0x1cacc9(0x126)],_0x353fdb[0x0],this[_0x1cacc9(0x226)]);return _0x1df3c1['_updateLocalCache'](),_0x1df3c1;}throw _0x245001[_0x1cacc9(0xd2)];}catch(_0x48086f){return this[_0x1cacc9(0x2b2)][_0x1cacc9(0xd2)](_0x48086f),this[_0x1cacc9(0xc7)](!0x1);}}['onRemoteAck'](_0x5e44cd){const _0x449336=_0x1f8522;this[_0x449336(0x2a2)]();let _0x42773a=this[_0x449336(0x1f3)]['getCurrentRevOfUnit'](this['unitID']);if(_0x5e44cd['revision']<=_0x42773a)return this;if(this[_0x449336(0x1e1)](_0x5e44cd))return this[_0x449336(0xe9)][_0x449336(0x164)](Z,this[_0x449336(0x108)],this['type'],this[_0x449336(0x11a)],[],_0x5e44cd[_0x449336(0x270)],[],this[_0x449336(0x226)]);this[_0x449336(0x1fb)]();let _0x5cdb53=this[_0x449336(0xe9)][_0x449336(0x164)](G,this[_0x449336(0x108)],this['type'],this[_0x449336(0x226)]);return _0x5cdb53[_0x449336(0x25e)](),_0x5cdb53;}[_0x1f8522(0x254)](_0x1f582f){const _0xed8a37=_0x1f8522;return this['_onConflict'](!!(_0x1f582f!=null&&_0x1f582f[_0xed8a37(0x1ee)]));}[_0x1f8522(0x30c)](_0x1bf0a2){const _0xc8249=_0x1f8522;return this[_0xc8249(0x316)]>Yt?this[_0xc8249(0x1dd)]():(this[_0xc8249(0x218)]=Ut(this[_0xc8249(0x279)],{'timeout':this['_resendTimeout'],'reqId':_0x1bf0a2[_0xc8249(0x2c4)]}),this['_sender']=this[_0xc8249(0x218)][_0xc8249(0xfb)](({reqId:_0x42654b,timeout:_0x4ee5ec})=>{const _0x4665bc=_0xc8249;this[_0x4665bc(0x22c)](_0x42654b,_0x4ee5ec);}),this);}[_0x1f8522(0x1dd)](){const _0x5e0522=_0x1f8522;return this[_0x5e0522(0x2a2)](),this['_injector'][_0x5e0522(0x164)](X,this[_0x5e0522(0x108)],this[_0x5e0522(0x126)],this['_awaitingChangeset'],[],this['_handler']);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x231)](){const _0x4a5bf5=_0x1f8522;this[_0x4a5bf5(0x226)][_0x4a5bf5(0x2d6)](this[_0x4a5bf5(0x11a)]);}[_0x1f8522(0xc7)](_0x1b040a){const _0x3f5785=_0x1f8522;return this['_clearScheduledTask'](),this[_0x3f5785(0xe9)]['createInstance'](Y,this[_0x3f5785(0x108)],this[_0x3f5785(0x126)],this[_0x3f5785(0x11a)],[],this[_0x3f5785(0x226)],_0x1b040a);}['_resendWithTimeout'](_0x33ce1a,_0x1f720f){const _0x5c2152=_0x1f8522;var _0x12e494;_0x33ce1a===((_0x12e494=this[_0x5c2152(0x11a)])==null?void 0x0:_0x12e494[_0x5c2152(0x2c4)])&&(this[_0x5c2152(0x231)](),this[_0x5c2152(0x279)]=_0x1f720f===0x0?0x3e8:Math[_0x5c2152(0x260)](_0x1f720f*0x2,Jt),this['_maxTotalRetryTimeout']+=this[_0x5c2152(0x279)]);}[_0x1f8522(0x2a2)](){const _0x227242=_0x1f8522;var _0xdeb42;(_0xdeb42=this[_0x227242(0x1a0)])==null||_0xdeb42[_0x227242(0x1f0)](),this[_0x227242(0x279)]=0x0,this[_0x227242(0x316)]=0x0;}};q=Gt=z([R(0x4,_0x4f07a4(_0x44d080)),R(0x5,_0x4f07a4(_0x3c5693)),R(0x6,_0x3a76f7),R(0x7,_0x1443cf),R(0x8,_0x4f7ff9),R(0x9,_0x3b54de),R(0xa,_0x1cfc4d(V))],q);let J=Kt=class extends W{constructor(_0x2280b4,_0x1a847f,_0x4cdf77,_0x299908,_0x1d1f49,_0x1047fc,_0x7b4165,_0x3c7001,_0x48036e,_0x378ff1,_0x3cf563,_0x691293,_0x19b2c6){const _0x4c9003=_0x1f8522;super(_0x2280b4,_0x1a847f,_0x4cdf77,_0x299908,_0x1d1f49,_0x48036e,_0x691293,_0x3c7001,_0x19b2c6),this[_0x4c9003(0xe9)]=_0x7b4165,this['_logService']=_0x378ff1,this[_0x4c9003(0xf0)]=_0x3cf563,this['localCacheService']=_0x19b2c6,I(this,_0x4c9003(0x214),_0x4c9003(0x13b)),I(this,_0x4c9003(0x279),0x0),I(this,_0x4c9003(0x316),0x0),I(this,_0x4c9003(0x218),void 0x0),I(this,_0x4c9003(0x1a0),void 0x0),_0x1047fc&&(this[_0x4c9003(0x218)]=_0x1047fc,this['_sender']=this[_0x4c9003(0x218)][_0x4c9003(0xfb)](({reqId:_0x174e77,timeout:_0x5a2088})=>{const _0x20b82b=_0x4c9003;this[_0x20b82b(0x22c)](_0x174e77,_0x5a2088);}));}[_0x1f8522(0x295)](_0x2bd7a8){const _0x1915c1=_0x1f8522;return this[_0x1915c1(0x211)][_0x1915c1(0xc1)](_0x2bd7a8),this;}[_0x1f8522(0x20e)](_0x104df6){const _0x2c009c=_0x1f8522;if(this[_0x2c009c(0x1e1)](_0x104df6))return this['_clearScheduledTask'](),this[_0x2c009c(0xe9)]['createInstance'](Z,this['unitID'],this[_0x2c009c(0x126)],this[_0x2c009c(0x11a)],this[_0x2c009c(0x211)],null,[_0x104df6],this[_0x2c009c(0x226)]);try{let _0x185662=this[_0x2c009c(0xf0)][_0x2c009c(0x21d)]([_0x104df6],[this[_0x2c009c(0x11a)]],!0x1);if(_0x1dbd0e(_0x185662)){let {c1Prime:_0x2c4202,c2Prime:_0x26da7f}=_0x185662,_0x2d03c2=this['_transformService'][_0x2c009c(0x280)](_0x2c4202[0x0],this['_pendingMutations']);if(_0x534268(_0x2d03c2)){let {c1Prime:_0x2bb486,m2Prime:_0x57f4cc}=_0x2d03c2;return this['_executeRemoteChangeset'](_0x2bb486),_0x26da7f[0x0]['baseRev']=this[_0x2c009c(0x275)](),this[_0x2c009c(0x2a2)](),this[_0x2c009c(0xe9)][_0x2c009c(0x164)](Kt,this['unitID'],this[_0x2c009c(0x126)],_0x26da7f[0x0],_0x57f4cc,this[_0x2c009c(0x226)],void 0x0);}throw _0x2d03c2[_0x2c009c(0xd2)];}throw _0x185662[_0x2c009c(0xd2)];}catch(_0x356356){return this[_0x2c009c(0x2b2)]['error'](_0x356356),this[_0x2c009c(0xc7)](!0x1);}}[_0x1f8522(0x201)](_0x538cb6){const _0x5411f4=_0x1f8522;this[_0x5411f4(0x2a2)]();let _0xa41dd0=this[_0x5411f4(0x275)]();if(_0x538cb6[_0x5411f4(0x270)]<=_0xa41dd0)return this;if(this['_checkMissing'](_0x538cb6))return this[_0x5411f4(0xe9)][_0x5411f4(0x164)](Z,this[_0x5411f4(0x108)],this['type'],this[_0x5411f4(0x11a)],this[_0x5411f4(0x211)],_0x538cb6['revision'],[],this['_handler']);this[_0x5411f4(0x1fb)]();let _0xbcbcbd=this[_0x5411f4(0xe9)][_0x5411f4(0x164)](K,this[_0x5411f4(0x108)],this[_0x5411f4(0x126)],this[_0x5411f4(0x211)],this['_handler']);return _0xbcbcbd[_0x5411f4(0x1f8)](),_0xbcbcbd[_0x5411f4(0x25e)](),_0xbcbcbd;}[_0x1f8522(0x254)](_0x627f12){const _0x1cff9a=_0x1f8522;return this[_0x1cff9a(0xc7)](!!(_0x627f12!=null&&_0x627f12[_0x1cff9a(0x1ee)]));}[_0x1f8522(0x30c)](_0x37b66b){const _0x583e7a=_0x1f8522;return this[_0x583e7a(0x316)]>Yt?this[_0x583e7a(0x1dd)]():(this['_resendTimer']=Ut(this[_0x583e7a(0x279)],{'timeout':this[_0x583e7a(0x279)],'reqId':_0x37b66b[_0x583e7a(0x2c4)]}),this[_0x583e7a(0x1a0)]=this[_0x583e7a(0x218)][_0x583e7a(0xfb)](({reqId:_0x360178,timeout:_0x242788})=>{const _0x4a7deb=_0x583e7a;this[_0x4a7deb(0x22c)](_0x360178,_0x242788);}),this);}['toggleOffline'](){const _0x3080df=_0x1f8522;return this[_0x3080df(0x2a2)](),this['_injector'][_0x3080df(0x164)](X,this[_0x3080df(0x108)],this[_0x3080df(0x126)],this[_0x3080df(0x11a)],this[_0x3080df(0x211)],this[_0x3080df(0x226)]);}['toggleOnline'](){return this;}[_0x1f8522(0x231)](){const _0x2d9100=_0x1f8522;this[_0x2d9100(0x226)][_0x2d9100(0x2d6)](this[_0x2d9100(0x11a)]);}[_0x1f8522(0xc7)](_0x1de8cc){const _0x46e68a=_0x1f8522;return this['_clearScheduledTask'](),this[_0x46e68a(0xe9)][_0x46e68a(0x164)](Y,this[_0x46e68a(0x108)],this['type'],null,this[_0x46e68a(0x211)],this['_handler'],_0x1de8cc);}[_0x1f8522(0x22c)](_0x42aaa2,_0x56c085){const _0xcfb75c=_0x1f8522;var _0x226185;_0x42aaa2===((_0x226185=this['_awaitingChangeset'])==null?void 0x0:_0x226185[_0xcfb75c(0x2c4)])&&(this['resend'](),this[_0xcfb75c(0x279)]=_0x56c085===0x0?0x3e8:Math[_0xcfb75c(0x260)](_0x56c085*0x2,Jt),this[_0xcfb75c(0x316)]+=this['_resendTimeout']);}[_0x1f8522(0x2a2)](){const _0x1c0b64=_0x1f8522;var _0x4873f0;(_0x4873f0=this[_0x1c0b64(0x1a0)])==null||_0x4873f0['unsubscribe'](),this[_0x1c0b64(0x279)]=0x0,this[_0x1c0b64(0x316)]=0x0;}};J=Kt=z([R(0x6,_0x4f07a4(_0x44d080)),R(0x7,_0x4f07a4(_0x3c5693)),R(0x8,_0x3a76f7),R(0x9,_0x1443cf),R(0xa,_0x4f7ff9),R(0xb,_0x3b54de),R(0xc,_0x1cfc4d(V))],J);let Y=class extends W{constructor(_0x4229aa,_0x3dad61,_0x1e6007,_0x5d7352,_0x42aafb,_0x4ff9a4=!0x1,_0x5117b4,_0x1a4961,_0x3954a9,_0x2b49db,_0x10ea81,_0x5c84e6,_0xaf5064){const _0x612f8a=_0x1f8522;super(_0x4229aa,_0x3dad61,_0x1e6007,_0x5d7352,_0x42aafb,_0x1a4961,_0x3954a9,_0x2b49db,_0xaf5064),this[_0x612f8a(0xfd)]=_0x4ff9a4,this[_0x612f8a(0xfe)]=_0x5117b4,this[_0x612f8a(0x2e9)]=_0x10ea81,this[_0x612f8a(0x2b3)]=_0x5c84e6,this[_0x612f8a(0xf6)]=_0xaf5064,I(this,_0x612f8a(0x214),'conflict'),this[_0x612f8a(0x192)](),this[_0x612f8a(0x132)](),this['_disableEditing']();}[_0x1f8522(0x295)](){return this;}[_0x1f8522(0x20e)](){return this;}['onRemoteAck'](){return this;}[_0x1f8522(0x254)](){return this;}[_0x1f8522(0x30c)](){return this;}[_0x1f8522(0x1dd)](){return this;}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0x231)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f8522(0x132)](){const _0x185077=_0x1f8522;var _0x49075a;(_0x49075a=this[_0x185077(0xdd)])==null||_0x49075a[_0x185077(0x210)](this['unitID'],this[_0x185077(0x126)],null,[]);}[_0x1f8522(0x192)](){const _0x2bed19=_0x1f8522;this['_isPermissionRej']?this[_0x2bed19(0x2b3)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x2bed19(0x2b3)]['emitEvent']({'id':_0x2bed19(0x148)});}[_0x1f8522(0x159)](){const _0x3ee634=_0x1f8522;this[_0x3ee634(0xfe)]['updatePermissionPoint'](new _0x14cd38(this[_0x3ee634(0x108)])['id'],!0x1);}};Y=z([R(0x6,_0x4f07a4(_0x439c61)),R(0x7,_0x3a76f7),R(0x8,_0x3b54de),R(0x9,_0x4f07a4(_0x3c5693)),R(0xa,_0x4f07a4(_0x220418)),R(0xb,_0x4f07a4(L)),R(0xc,_0x1cfc4d(V))],Y);let X=class extends W{constructor(_0x5ea880,_0x4b0d77,_0x434d6d,_0xea1bd1,_0x5b8042,_0x32afab,_0x3df5df,_0x5aa707,_0x16ea4a,_0xfc10d5){const _0x5a57a3=_0x1f8522;super(_0x5ea880,_0x4b0d77,_0x434d6d,_0xea1bd1,_0x5b8042,_0x5aa707,_0x16ea4a,_0x3df5df,_0xfc10d5),this['_injector']=_0x32afab,I(this,_0x5a57a3(0x214),_0x5a57a3(0x120));}[_0x1f8522(0x295)](_0x1a4fd7){const _0x4e4299=_0x1f8522;return this[_0x4e4299(0x211)][_0x4e4299(0xc1)](_0x1a4fd7),this[_0x4e4299(0x25e)](),this;}[_0x1f8522(0x20e)](_0x14aa7c){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1f8522(0x254)](){const _0x3a65b8=_0x1f8522;throw Error(_0x3a65b8(0x2c3));}[_0x1f8522(0x30c)](){return this;}['toggleOffline'](){return this;}[_0x1f8522(0x2c5)](){let {_injector:_0x511dcc,_pendingMutations:_0x59914c,_awaitingChangeset:_0x26ecd1,unitID:_0x5e06f2,_handler:_0x5f42aa,type:_0x19c584}=this,_0x17e334=Xt(_0x511dcc,_0x5e06f2,_0x19c584,_0x26ecd1,_0x59914c,_0x5f42aa);return _0x17e334 instanceof K?_0x17e334['_schedule']():(_0x17e334 instanceof J||_0x17e334 instanceof q)&&_0x17e334['resend'](),_0x17e334;}[_0x1f8522(0x231)](){const _0x3d3ad9=_0x1f8522;throw Error(_0x3d3ad9(0x246));}};X=z([R(0x5,_0x4f07a4(_0x44d080)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x3a76f7),R(0x8,_0x3b54de),R(0x9,_0x1cfc4d(V))],X);let Z=class extends W{constructor(_0x4e9c6d,_0x516c79,_0x18fc74,_0x4c7c34,_0x129c54,_0x517ead,_0xea15d5,_0x4253fd,_0x45a491,_0x1b4f97,_0x2a5b2a,_0x3d7bb7,_0x2ecc8d,_0x3b2599){const _0x1f57e6=_0x1f8522;super(_0x4e9c6d,_0x516c79,_0x18fc74,_0x4c7c34,_0xea15d5,_0x2a5b2a,_0x3d7bb7,_0x45a491,_0x3b2599),this[_0x1f57e6(0x2ec)]=_0x129c54,this[_0x1f57e6(0x313)]=_0x517ead,this[_0x1f57e6(0xe9)]=_0x4253fd,this[_0x1f57e6(0x2b2)]=_0x1b4f97,this[_0x1f57e6(0xf0)]=_0x2ecc8d,this[_0x1f57e6(0xf6)]=_0x3b2599,I(this,'status',_0x1f57e6(0x13a));}[_0x1f8522(0x13d)](_0x45dadc){const _0x56082b=_0x1f8522;try{if(this[_0x56082b(0x2e2)](_0x45dadc)['missingChangesets'])throw Error(_0x56082b(0x23e));if(this[_0x56082b(0x2e2)]([...this[_0x56082b(0x313)]]['sort']((_0x271072,_0x2b90bb)=>_0x271072[_0x56082b(0x270)]-_0x2b90bb[_0x56082b(0x270)]))[_0x56082b(0xd6)])return this[_0x56082b(0x313)]=[],this['_updateLocalCache'](),this['_handler'][_0x56082b(0x2ae)]({'from':this[_0x56082b(0x275)](),'to':0x0}),this;let _0x2b7a4e=this[_0x56082b(0x11a)],_0x290072=this[_0x56082b(0x211)],_0x6b1a90;if(_0x2b7a4e&&_0x290072[_0x56082b(0x10a)]!==0x0)_0x6b1a90=this[_0x56082b(0xe9)][_0x56082b(0x164)](J,this['unitID'],this[_0x56082b(0x126)],_0x2b7a4e,_0x290072,this[_0x56082b(0x226)],void 0x0);else{if(_0x2b7a4e&&_0x290072[_0x56082b(0x10a)]===0x0)_0x2b7a4e[_0x56082b(0x18f)]=this['_getCurrentRevision'](),_0x6b1a90=this[_0x56082b(0xe9)][_0x56082b(0x164)](q,this[_0x56082b(0x108)],this[_0x56082b(0x126)],_0x2b7a4e,this[_0x56082b(0x226)]);else{if(_0x290072[_0x56082b(0x10a)]!==0x0){let _0xe99909=this[_0x56082b(0xe9)][_0x56082b(0x164)](K,this[_0x56082b(0x108)],this[_0x56082b(0x126)],_0x290072,this['_handler']);_0xe99909[_0x56082b(0x1f8)](),_0x6b1a90=_0xe99909;}else _0x6b1a90=this[_0x56082b(0xe9)]['createInstance'](G,this['unitID'],this['type'],this['_handler']);}}return _0x6b1a90[_0x56082b(0x25e)](),_0x6b1a90;}catch(_0x5a8ee9){return this[_0x56082b(0x2b2)][_0x56082b(0xd2)](_0x56082b(0x151),_0x56082b(0x153),_0x5a8ee9),this['_injector'][_0x56082b(0x164)](Y,this[_0x56082b(0x108)],this[_0x56082b(0x126)],this[_0x56082b(0x11a)],this[_0x56082b(0x211)],this['_handler'],!0x1);}}[_0x1f8522(0x2e2)](_0x77c894){const _0x707c6f=_0x1f8522;this[_0x707c6f(0x25d)]();for(let _0x37c25e=0x0;_0x37c25e<_0x77c894['length'];_0x37c25e++){let _0x478e09=_0x77c894[_0x37c25e],_0x3b8112=this['_getCurrentRevision']();if(!(_0x478e09['revision']<=_0x3b8112)){if(_0x478e09[_0x707c6f(0x270)]>_0x3b8112+0x1)return{'missingChangesets':!0x0};if(this[_0x707c6f(0x228)](_0x478e09)){this[_0x707c6f(0x2ac)]();continue;}this[_0x707c6f(0x150)](_0x478e09),this[_0x707c6f(0x25d)]();}}return{'missingChangesets':!0x1};}[_0x1f8522(0x150)](_0x4217a8){const _0x4ad48a=_0x1f8522;let _0x7ff1dd=_0x4217a8,_0x4ad5ea=this[_0x4ad48a(0x11a)];if(_0x4ad5ea){let _0x14bf67=this['_transformService']['transformChangesets']([_0x4217a8],[_0x4ad5ea],!0x1);if(!_0x1dbd0e(_0x14bf67))throw _0x14bf67['error'];_0x7ff1dd=_0x14bf67[_0x4ad48a(0x2bb)][0x0],_0x4ad5ea=_0x14bf67['c2Prime'][0x0];}let _0x39ec82=this[_0x4ad48a(0x211)];if(_0x39ec82['length']){let _0x3a5dd7=this['_transformService'][_0x4ad48a(0x280)](_0x7ff1dd,_0x39ec82);if(!_0x534268(_0x3a5dd7))throw _0x3a5dd7[_0x4ad48a(0xd2)];_0x7ff1dd=_0x3a5dd7[_0x4ad48a(0x2bb)],_0x39ec82=_0x3a5dd7[_0x4ad48a(0x2c1)];}this[_0x4ad48a(0xde)](_0x7ff1dd),_0x4ad5ea&&(_0x4ad5ea[_0x4ad48a(0x18f)]=this[_0x4ad48a(0x275)]()),this['_awaitingChangeset']=_0x4ad5ea,this[_0x4ad48a(0x211)]=_0x39ec82;}[_0x1f8522(0x25d)](){const _0xd19d6a=_0x1f8522;if(!this[_0xd19d6a(0x11a)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x11da8d=this[_0xd19d6a(0x275)]();if(this['_acknowledgedAwaitingRevision']<=_0x11da8d)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this['_acknowledgedAwaitingRevision']===_0x11da8d+0x1&&this[_0xd19d6a(0x2ac)]();}[_0x1f8522(0x2ac)](){const _0x69e9b5=_0x1f8522;this[_0x69e9b5(0x1fb)](),this[_0x69e9b5(0x11a)]=null,this[_0x69e9b5(0x2ec)]=null;}[_0x1f8522(0x228)](_0x36790e){const _0x170550=_0x1f8522;let _0x3c5db9=this[_0x170550(0x11a)];return!_0x3c5db9||!_0x3c5db9[_0x170550(0x17a)]||_0x3c5db9[_0x170550(0x2c4)]===null||_0x3c5db9[_0x170550(0x2c4)]===void 0x0?!0x1:_0x36790e[_0x170550(0x108)]===_0x3c5db9[_0x170550(0x108)]&&_0x36790e[_0x170550(0x17a)]===_0x3c5db9[_0x170550(0x17a)]&&_0x36790e[_0x170550(0x2c4)]===_0x3c5db9[_0x170550(0x2c4)];}[_0x1f8522(0x231)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f8522(0x295)](_0x46ffc1){const _0x8ec60f=_0x1f8522;return this[_0x8ec60f(0x211)][_0x8ec60f(0xc1)](_0x46ffc1),this;}['onRemoteChangeset'](_0x7b03d9){const _0x58c532=_0x1f8522;return this[_0x58c532(0x313)][_0x58c532(0xc1)](_0x7b03d9),this;}[_0x1f8522(0x201)](_0x3c7156){const _0x252d65=_0x1f8522;if(this[_0x252d65(0x11a)]){let _0x51bf4c=this['_getCurrentRevision']();return _0x3c7156['revision']<=_0x51bf4c||(_0x51bf4c+0x1===_0x3c7156[_0x252d65(0x270)]?(this[_0x252d65(0x1fb)](),this['_awaitingChangeset']=null,this[_0x252d65(0x2ec)]=null):this[_0x252d65(0x2ec)]=_0x3c7156[_0x252d65(0x270)]),this;}if(_0x3c7156[_0x252d65(0x270)]<=this['_getCurrentRevision']())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x1f8522(0x254)](_0x2bb381){const _0x48ddff=_0x1f8522;return this[_0x48ddff(0xc7)](!!(_0x2bb381!=null&&_0x2bb381[_0x48ddff(0x1ee)]));}[_0x1f8522(0x30c)](){return this;}['toggleOffline'](){const _0x2f1434=_0x1f8522;return this[_0x2f1434(0xe9)][_0x2f1434(0x164)](X,this[_0x2f1434(0x108)],this[_0x2f1434(0x126)],this['_awaitingChangeset'],this[_0x2f1434(0x211)],this['_handler']);}[_0x1f8522(0x2c5)](){return this;}[_0x1f8522(0xc7)](_0x4e0b91){const _0x513cba=_0x1f8522;return this[_0x513cba(0xe9)]['createInstance'](Y,this[_0x513cba(0x108)],this[_0x513cba(0x126)],this[_0x513cba(0x11a)],this[_0x513cba(0x211)],this[_0x513cba(0x226)],_0x4e0b91);}};Z=z([R(0x7,_0x4f07a4(_0x44d080)),R(0x8,_0x4f07a4(_0x3c5693)),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x3b54de),R(0xc,_0x4f7ff9),R(0xd,_0x1cfc4d(V))],Z);function Xt(_0x51f83e,_0x29392c,_0x18277c,_0x113912,_0x4d413e,_0x5ed183){const _0x5a25e3=_0x1f8522;return _0x113912&&_0x4d413e[_0x5a25e3(0x10a)]?_0x51f83e[_0x5a25e3(0x164)](J,_0x29392c,_0x18277c,_0x113912,_0x4d413e,_0x5ed183,void 0x0):_0x113912?_0x51f83e[_0x5a25e3(0x164)](q,_0x29392c,_0x18277c,_0x113912,_0x5ed183):_0x4d413e[_0x5a25e3(0x10a)]?_0x51f83e[_0x5a25e3(0x164)](K,_0x29392c,_0x18277c,_0x4d413e,_0x5ed183):_0x51f83e[_0x5a25e3(0x164)](G,_0x29392c,_0x18277c,_0x5ed183);}let Zt=class extends _0x3498fe{get[_0x1f8522(0x2f9)](){const _0x290277=_0x1f8522;return this[_0x290277(0x1e4)];}constructor(_0x593983,_0x36e38d,_0x373c9f,_0x4250b9,_0x523a96,_0x249b9f,_0x222072,_0x1991a1,_0x1620da,_0x16b52a,_0x5e5c5a,_0xe2e312,_0x374675,_0x2dcfab){const _0x11a89e=_0x1f8522;super(),this[_0x11a89e(0x108)]=_0x593983,this[_0x11a89e(0x2cc)]=_0x36e38d,this[_0x11a89e(0x17e)]=_0x373c9f,this['_injector']=_0x4250b9,this['_compressMutationService']=_0x523a96,this[_0x11a89e(0x2e9)]=_0x249b9f,this[_0x11a89e(0x1f3)]=_0x222072,this[_0x11a89e(0x27b)]=_0x1991a1,this[_0x11a89e(0xf7)]=_0x1620da,this['_logService']=_0x16b52a,this[_0x11a89e(0x31a)]=_0x5e5c5a,this['_permissionService']=_0xe2e312,this[_0x11a89e(0xb9)]=_0x374675,this[_0x11a89e(0xdd)]=_0x2dcfab,I(this,'_state$',new _0x2acfcb(null)),I(this,_0x11a89e(0x1cc),this[_0x11a89e(0x2be)][_0x11a89e(0x2b0)]()),I(this,_0x11a89e(0x1e4),void 0x0),I(this,_0x11a89e(0x1b3),!0x1),I(this,_0x11a89e(0x2ed),''),I(this,'_changesetReqId',0x0),I(this,'status$',this[_0x11a89e(0x1cc)][_0x11a89e(0x27e)](_0x4d141e(_0x2ee0fb=>_0x2ee0fb?_0x2ee0fb[_0x11a89e(0x214)]:'offline'),_0x60bd5a({'bufferSize':0x1,'refCount':!0x0}))),I(this,'_transitionLocked',!0x1),I(this,'_remoteChangesetQueue',[]);}async[_0x1f8522(0x266)](){const _0x4903f1=_0x1f8522;if(this[_0x4903f1(0x2f9)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x4903f1(0x182)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x224a5f(()=>{const _0x3fed4b=_0x249d;this[_0x3fed4b(0x1b3)]=!0x1,this[_0x3fed4b(0x221)]();});}[_0x1f8522(0x244)](_0x3d5eee){const _0x227c48=_0x1f8522;this[_0x227c48(0x287)](_0x3d5eee);}[_0x1f8522(0x1a2)](_0x2ea5f2){const _0x5c5dda=_0x1f8522;this[_0x5c5dda(0x1e4)]=_0x2ea5f2,this[_0x5c5dda(0x2be)][_0x5c5dda(0xc4)](_0x2ea5f2);}async[_0x1f8522(0x182)](){const _0x8f40c3=_0x1f8522;if(this['_updateState'](await this[_0x8f40c3(0x2b9)]()),this[_0x8f40c3(0xb9)]){var _0xd8307d;(_0xd8307d=this[_0x8f40c3(0xb9)])==null||_0xd8307d[_0x8f40c3(0x284)](this[_0x8f40c3(0x108)]),this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0xb9)][_0x8f40c3(0x1ef)](this['unitID'])[_0x8f40c3(0xfb)](_0x88ec84=>{const _0xe481c4=_0x8f40c3;this[_0xe481c4(0x2b2)][_0xe481c4(0x305)](_0xe481c4(0x2dd),'editing\x20status\x20changed\x20to',_0x88ec84),_0x88ec84===0x1?(this[_0xe481c4(0x27b)][_0xe481c4(0x15d)]({'id':_0xe481c4(0x167)}),this[_0xe481c4(0xfe)]['updatePermissionPoint'](new _0x14cd38(this[_0xe481c4(0x108)])['id'],!0x1),this[_0xe481c4(0xfe)][_0xe481c4(0x18b)](!0x1)):(this[_0xe481c4(0xfe)][_0xe481c4(0x134)](new _0x14cd38(this[_0xe481c4(0x108)])['id'],!0x0),this[_0xe481c4(0xfe)][_0xe481c4(0x18b)](!0x0));}));}let _0x1225ee=!0x1;return this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0x2cc)]['sessionStatus$'][_0x8f40c3(0xfb)](_0x3e845f=>{const _0x14ceed=_0x8f40c3;_0x3e845f===0x3?this[_0x14ceed(0x1cf)](_0x1225ee):_0x3e845f===0x2&&(_0x1225ee=!0x0,this['_toggleOffline']());})),this[_0x8f40c3(0x2e0)](this[_0x8f40c3(0x2cc)][_0x8f40c3(0xfa)][_0x8f40c3(0xfb)](_0x3755a8=>{const _0x4b3979=_0x8f40c3;try{switch(_0x3755a8[_0x4b3979(0x281)]){case _0x27e67f[_0x4b3979(0x29e)]:this[_0x4b3979(0x11b)](_0x13b02b(_0x3755a8[_0x4b3979(0x194)]));break;case _0x27e67f[_0x4b3979(0xce)]:this['_onRemoteACK'](_0x3755a8[_0x4b3979(0x194)]);break;case _0x27e67f[_0x4b3979(0x1a1)]:this[_0x4b3979(0x23b)]();break;case _0x27e67f[_0x4b3979(0x1b1)]:this[_0x4b3979(0x196)](_0x3755a8[_0x4b3979(0x194)]);break;case _0x27e67f[_0x4b3979(0x25a)]:this[_0x4b3979(0x28d)](_0x3755a8['data'][_0x4b3979(0x2f3)][_0x4b3979(0x1f1)](_0x1d143e=>_0x13b02b(_0x1d143e)));break;case _0x27e67f['PERMISSION_REJ']:this[_0x4b3979(0x23b)]({'isPermissionRej':!0x0});break;case _0x27e67f[_0x4b3979(0x17c)]:break;}}catch(_0x3861e2){throw console[_0x4b3979(0xd2)]('Error\x20on\x20receiving\x20event',_0x3861e2),_0x3861e2;}})),this[_0x8f40c3(0x1e4)];}[_0x1f8522(0x102)](){const _0x53896f=_0x1f8522;this[_0x53896f(0x207)]=!0x1;}[_0x1f8522(0x1c3)](){const _0x30130d=_0x1f8522;if(this[_0x30130d(0x207)])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[_0x30130d(0x207)]=!0x0;}[_0x1f8522(0x287)](_0x38fa17){const _0x5269b5=_0x1f8522;this['_lockTransition'](),this[_0x5269b5(0x1a2)](this['_state'][_0x5269b5(0x295)](_0x38fa17)),this[_0x5269b5(0x102)]();}[_0x1f8522(0x11b)](_0x496bba){const _0x2a8e1b=_0x1f8522;if(!(_0x496bba[_0x2a8e1b(0x270)]<=this[_0x2a8e1b(0x1f3)][_0x2a8e1b(0x2d4)](this[_0x2a8e1b(0x108)]))){if(this[_0x2a8e1b(0x1b3)]){this[_0x2a8e1b(0x1e8)][_0x2a8e1b(0xc1)](_0x496bba);return;}this[_0x2a8e1b(0x21b)](_0x496bba);}}[_0x1f8522(0x221)](){const _0x3832a4=_0x1f8522;this[_0x3832a4(0x1e8)][_0x3832a4(0x1b0)](_0x12eae2=>this[_0x3832a4(0x21b)](_0x12eae2)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x5ad90f){const _0x39730a=_0x1f8522;let _0x4efbf9=this[_0x39730a(0x2bf)]['interceptor'][_0x39730a(0x29f)](this['_compressMutationService'][_0x39730a(0x137)]['getInterceptPoints']()[_0x39730a(0x143)])(_0x5ad90f[_0x39730a(0x236)],null)||_0x5ad90f['mutations'],_0x3eccee={..._0x5ad90f,'mutations':_0x4efbf9};this[_0x39730a(0x1c3)](),this[_0x39730a(0x1a2)](this[_0x39730a(0x1e4)][_0x39730a(0x20e)](_0x3eccee)),this[_0x39730a(0x102)]();}[_0x1f8522(0x24b)](_0x3eb4f6){const _0x5ec0b1=_0x1f8522;this['_lockTransition'](),this[_0x5ec0b1(0x1a2)](this['_state'][_0x5ec0b1(0x201)](_0x3eb4f6)),this[_0x5ec0b1(0x102)]();}[_0x1f8522(0x23b)](_0x3b07cc){const _0x4e680a=_0x1f8522;this['_lockTransition'](),this[_0x4e680a(0x1a2)](this[_0x4e680a(0x1e4)][_0x4e680a(0x254)](_0x3b07cc)),this[_0x4e680a(0x102)]();}['_onRemoteRetry'](_0x16bc87){const _0x1b2b12=_0x1f8522;this['_lockTransition'](),this['_updateState'](this[_0x1b2b12(0x1e4)][_0x1b2b12(0x30c)](_0x16bc87)),this['_unlockTransition']();}[_0x1f8522(0x28d)](_0x4bf113){const _0x57b502=_0x1f8522;if(!(this[_0x57b502(0x1e4)]instanceof Z))throw TypeError(_0x57b502(0x2e6));let _0xc46752=_0x4bf113['map'](_0x210f91=>{const _0x257918=_0x57b502;let _0x5b9756=this[_0x257918(0x2bf)]['interceptor'][_0x257918(0x29f)](this[_0x257918(0x2bf)][_0x257918(0x137)][_0x257918(0x2ca)]()[_0x257918(0x143)])(_0x210f91[_0x257918(0x236)],null)||_0x210f91[_0x257918(0x236)];return{..._0x210f91,'mutations':_0x5b9756};});this[_0x57b502(0x1c3)](),this[_0x57b502(0x1a2)](this[_0x57b502(0x1e4)][_0x57b502(0x13d)](_0xc46752)),this['_unlockTransition']();}[_0x1f8522(0x219)](){const _0x49de96=_0x1f8522;this[_0x49de96(0x1c3)](),this['_updateState'](this[_0x49de96(0x1e4)][_0x49de96(0x1dd)]()),this[_0x49de96(0x102)]();}[_0x1f8522(0x1cf)](_0x12b0d4=!0x1){const _0x68138c=_0x1f8522;this[_0x68138c(0x1c3)](),this[_0x68138c(0x1a2)](this['_state'][_0x68138c(0x2c5)]()),this['_unlockTransition']();let _0x3e911b=this[_0x68138c(0x1e4)];_0x12b0d4&&_0x3e911b instanceof G&&(this['_lockTransition'](),this[_0x68138c(0x1a2)](_0x3e911b[_0x68138c(0x2af)]()),this[_0x68138c(0x102)]());}async['_createInitialState'](){return new Promise(_0xf94634=>{const _0x49ab5b=_0x249d;this[_0x49ab5b(0x2cc)][_0x49ab5b(0x1df)][_0x49ab5b(0x27e)](_0x4abdb0(0x1))[_0x49ab5b(0xfb)](async _0x319e9f=>{const _0x42e995=_0x49ab5b;_0xf94634(await this[_0x42e995(0x181)](_0x319e9f===0x3));});});}[_0x1f8522(0x213)](){const _0x3b36fd=_0x1f8522;let _0xca1f0d=this[_0x3b36fd(0x108)];return{'onStateChange':(_0x435062,_0x264a67)=>{const _0x58a147=_0x3b36fd;if(_0x435062!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x435062[_0x58a147(0x214)]+_0x58a147(0x1a3)+_0x264a67['status']+_0x58a147(0x1ba)+this['_state']['status']);this['_updateState'](_0x264a67);},'onSendChangeset':_0x5eede3=>{const _0x17033d=_0x3b36fd;_0x5eede3[_0x17033d(0x17a)]||(_0x5eede3[_0x17033d(0x17a)]=this[_0x17033d(0x2ed)],_0x5eede3[_0x17033d(0x2c4)]=++this[_0x17033d(0x27a)]);let _0x19a92e={'eventID':_0x27e67f[_0x17033d(0x31b)],'data':{'unitID':_0x5eede3[_0x17033d(0x108)],'unitType':this[_0x17033d(0x17e)],'changeset':_0x5eede3,'memberID':this['session'][_0x17033d(0x258)]()}};this[_0x17033d(0x2cc)][_0x17033d(0x11c)](_0x19a92e,this[_0x17033d(0x108)]);},'onMissingChangesets':({from:_0x3996b3,to:_0x4aa8fd})=>{const _0x42503f=_0x3b36fd;this[_0x42503f(0x2b2)][_0x42503f(0x305)](_0x42503f(0x2dd),_0x42503f(0x116)+_0x3996b3+_0x42503f(0x1ac)+_0x4aa8fd);let _0x4597f4={'eventID':_0x27e67f[_0x42503f(0x2ce)],'data':{'unitID':_0xca1f0d,'unitType':this['_type'],'from':_0x3996b3,'to':_0x4aa8fd}};this[_0x42503f(0x2cc)]['send'](_0x4597f4,this[_0x42503f(0x108)]);}};}async[_0x1f8522(0x181)](_0xd95873){const _0xb33f8=_0x1f8522;var _0x49bb46,_0x40eb41,_0x13d63b;let _0x10fe74=await((_0x49bb46=this[_0xb33f8(0xdd)])==null?void 0x0:_0x49bb46[_0xb33f8(0x2f2)](this[_0xb33f8(0x108)])),_0x5c8876=(_0x40eb41=_0x10fe74==null?void 0x0:_0x10fe74[_0xb33f8(0x236)])==null?[]:_0x40eb41,_0x4e67a6=(_0x13d63b=_0x10fe74==null?void 0x0:_0x10fe74['awaitingChangeset'])==null?null:_0x13d63b,_0x3fa104=!!(_0x4e67a6!=null&&_0x4e67a6[_0xb33f8(0x17a)])&&!!(_0x4e67a6!=null&&_0x4e67a6['reqId']);this[_0xb33f8(0x2ed)]=_0x3fa104?_0x4e67a6[_0xb33f8(0x17a)]:_0x45dc0c(),this[_0xb33f8(0x27a)]=_0x3fa104?_0x4e67a6[_0xb33f8(0x2c4)]:0x0;let _0x415e9a=this[_0xb33f8(0x108)];try{this[_0xb33f8(0x2fe)](_0x4e67a6,_0x5c8876);}catch(_0x5070f2){this[_0xb33f8(0x2b2)][_0xb33f8(0xd2)](_0x5070f2);}let _0x47c192=this[_0xb33f8(0x213)]();if(_0xd95873){let _0x4c9c2b=Xt(this[_0xb33f8(0xe9)],_0x415e9a,this['_type'],_0x4e67a6,_0x5c8876,_0x47c192);return _0x4c9c2b instanceof K?_0x4c9c2b[_0xb33f8(0x1f8)]():(_0x4c9c2b instanceof J||_0x4c9c2b instanceof q)&&_0x4c9c2b[_0xb33f8(0x231)](),_0x4c9c2b;}return this[_0xb33f8(0xe9)][_0xb33f8(0x164)](X,_0x415e9a,this[_0xb33f8(0x17e)],_0x4e67a6,_0x5c8876,_0x47c192);}[_0x1f8522(0x2fe)](_0x1552ea,_0x5e5dd6){const _0x128149=_0x1f8522;var _0x463965,_0x15a28c;let _0x44329d=this[_0x128149(0x2bf)]['interceptor']['fetchThroughInterceptors'](this[_0x128149(0x2bf)][_0x128149(0x137)][_0x128149(0x2ca)]()[_0x128149(0x143)]);(_0x463965=_0x44329d((_0x1552ea==null?void 0x0:_0x1552ea['mutations'])||[],null))==null||_0x463965[_0x128149(0x1b0)](_0x3b4148=>this[_0x128149(0x31a)][_0x128149(0x195)](_0x3b4148['id'],_0x3b4148[_0x128149(0x1dc)])),(_0x15a28c=_0x44329d(_0x5e5dd6||[],null))==null||_0x15a28c[_0x128149(0x1b0)](_0x2900fc=>this[_0x128149(0x31a)][_0x128149(0x195)](_0x2900fc['id'],_0x2900fc[_0x128149(0x1dc)]));}};Zt=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(L)),R(0x8,_0x3a738f),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x439c61),R(0xc,_0x1cfc4d(jt)),R(0xd,_0x1cfc4d(V))],Zt);let Qt=class extends Zt{constructor(_0x58ee30,_0xfa0bcb,_0x5f12d6,_0x4248a0,_0x517c81,_0x37d33c,_0x1ca483,_0xe22b28,_0x1e32c7,_0x5b63b0,_0x1ebf41,_0x3ce53c,_0x5dba19,_0x45d457){const _0x208c70=_0x1f8522;super(_0x58ee30,_0x5f12d6,_0xfa0bcb,_0x4248a0,_0x517c81,_0x37d33c,_0x1ca483,_0xe22b28,_0x1e32c7,_0x5b63b0,_0x1ebf41,_0x3ce53c,_0x5dba19,_0x45d457),this['unitID']=_0x58ee30,this[_0x208c70(0x126)]=_0xfa0bcb,I(this,_0x208c70(0x11e),null);}[_0x1f8522(0x1c9)](_0x4eae01){const _0x46b946=_0x1f8522;this[_0x46b946(0x11e)]=_0x4eae01;}[_0x1f8522(0x282)](){const _0x4977c=_0x1f8522;this['_handlerCallback']=null,super[_0x4977c(0x282)]();}[_0x1f8522(0x213)](){const _0x17c7df=_0x1f8522;let _0xb3a6f6=super['_createHandler']();return _0xb3a6f6['onTransformIME']=_0xe96c17=>{const _0xef5678=_0x249d;var _0x79e628,_0x5c3f5d;return(_0x79e628=this['_handlerCallback'])==null||(_0x5c3f5d=_0x79e628[_0xef5678(0x146)])==null?void 0x0:_0x5c3f5d[_0xef5678(0x292)](_0x79e628,_0xe96c17);},_0xb3a6f6[_0x17c7df(0x2ab)]=_0x3d7b9d=>{const _0x429427=_0x17c7df;var _0x454f75,_0x435381;return(_0x454f75=this[_0x429427(0x11e)])==null||(_0x435381=_0x454f75['onTransformState'])==null?void 0x0:_0x435381['call'](_0x454f75,_0x3d7b9d);},_0xb3a6f6[_0x17c7df(0x22b)]=_0x2090fe=>{const _0x29bcb5=_0x17c7df;var _0x347939,_0x46f060;return(_0x347939=this[_0x29bcb5(0x11e)])==null||(_0x46f060=_0x347939['onTransformSelections'])==null?void 0x0:_0x46f060[_0x29bcb5(0x292)](_0x347939,_0x2090fe);},_0xb3a6f6[_0x17c7df(0x15c)]=_0x4ad9b6=>{const _0x5488af=_0x17c7df;var _0x1e1a07,_0x3c4270;return(_0x1e1a07=this['_handlerCallback'])==null||(_0x3c4270=_0x1e1a07[_0x5488af(0x15c)])==null?void 0x0:_0x3c4270['call'](_0x1e1a07,_0x4ad9b6);},_0xb3a6f6[_0x17c7df(0x2f0)]=_0x36aa28=>{const _0x2a5009=_0x17c7df;var _0x124526,_0x2e114c,_0x5c6dfd;if(!((_0x124526=this[_0x2a5009(0x11e)])!=null&&_0x124526[_0x2a5009(0x2f0)]))throw Error(_0x2a5009(0x12c));return(_0x2e114c=this['_handlerCallback'])==null||(_0x5c6dfd=_0x2e114c[_0x2a5009(0x2f0)])==null?void 0x0:_0x5c6dfd[_0x2a5009(0x292)](_0x2e114c,_0x36aa28);},_0xb3a6f6['onTransformRemoteChangesetByStateCache']=_0x1397d5=>{const _0x4bbcb3=_0x17c7df;var _0x2ad24d,_0xabc3f8,_0x31bb60;if(!((_0x2ad24d=this[_0x4bbcb3(0x11e)])!=null&&_0x2ad24d[_0x4bbcb3(0x30d)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0xabc3f8=this[_0x4bbcb3(0x11e)])==null||(_0x31bb60=_0xabc3f8['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x31bb60['call'](_0xabc3f8,_0x1397d5);},_0xb3a6f6;}async[_0x1f8522(0x182)](){const _0x1c9d58=_0x1f8522;let _0x750301=await super[_0x1c9d58(0x182)]();return this['disposeWithMe'](this['_commandService'][_0x1c9d58(0x1bf)]((_0x219770,_0x14628d)=>{const _0x440883=_0x1c9d58;if(_0x219770[_0x440883(0x126)]!==_0x40b89a[_0x440883(0x187)]||_0x14628d!=null&&_0x14628d[_0x440883(0x149)]||_0x14628d!=null&&_0x14628d[_0x440883(0x115)]||_0x219770['id']===_0x234ae8['id'])return;let _0x10fe06=_0x219770['params'];if((_0x10fe06==null?void 0x0:_0x10fe06['unitId'])!==this[_0x440883(0x108)])return;let _0x50421a=_0x219770,_0x5da7f5=this[_0x440883(0x2bf)][_0x440883(0x137)]['fetchThroughInterceptors'](this[_0x440883(0x2bf)][_0x440883(0x137)][_0x440883(0x2ca)]()['COMPRESS_MUTATION_SEND'])([_0x50421a],this['_univerInstanceService'])||[_0x50421a];this[_0x440883(0x287)](_0x5da7f5[0x0]);})),_0x750301;}};Qt=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(L)),R(0x8,_0x3a738f),R(0x9,_0x1443cf),R(0xa,_0x3a76f7),R(0xb,_0x439c61),R(0xc,_0x1cfc4d(jt)),R(0xd,_0x1cfc4d(V))],Qt);let $t=class extends Zt{constructor(_0x7c9b10,_0x4cbefb,_0x499588,_0x5e22e8,_0x2334fd,_0x966535,_0x49150f,_0x2eb0cb,_0x457187,_0xe59979,_0x4f039a,_0x3fd87a,_0x5ad0ad,_0x164fad,_0x1ad9db){const _0x558c13=_0x1f8522;super(_0x7c9b10,_0x499588,_0x4cbefb,_0x5e22e8,_0x2334fd,_0x966535,_0x49150f,_0x457187,_0xe59979,_0x4f039a,_0x3fd87a,_0x5ad0ad,_0x164fad,_0x1ad9db),this[_0x558c13(0x108)]=_0x7c9b10,this[_0x558c13(0x126)]=_0x4cbefb,this[_0x558c13(0x1f7)]=_0x2eb0cb;}['_createHandler'](){const _0x5afccf=_0x1f8522;let _0x4967e7=super['_createHandler']();return _0x4967e7[_0x5afccf(0x22b)]=_0x3e6f4f=>this[_0x5afccf(0x1f7)][_0x5afccf(0x1b4)](_0x3e6f4f),_0x4967e7;}async[_0x1f8522(0x182)](){const _0x4c7165=_0x1f8522;let _0x1a098f=await super[_0x4c7165(0x182)]();return this[_0x4c7165(0x2e0)](this[_0x4c7165(0x31a)]['onMutationExecutedForCollab']((_0x2586f6,_0x378e09)=>{const _0x5772a0=_0x4c7165;if(_0x2586f6['type']!==_0x40b89a['MUTATION']||_0x378e09!=null&&_0x378e09[_0x5772a0(0x149)]||_0x378e09!=null&&_0x378e09['onlyLocal'])return;let _0x292254=_0x2586f6[_0x5772a0(0x1dc)];if((_0x292254==null?void 0x0:_0x292254[_0x5772a0(0x2c2)])!==this['unitID'])return;let _0x2734ae=_0x2586f6,_0x2a1fba=this[_0x5772a0(0x2bf)]['interceptor'][_0x5772a0(0x29f)](this[_0x5772a0(0x2bf)][_0x5772a0(0x137)][_0x5772a0(0x2ca)]()['COMPRESS_MUTATION_SEND'])([_0x2734ae],this[_0x5772a0(0xf7)])||[_0x2734ae];this[_0x5772a0(0x287)](_0x2a1fba[0x0]);})),_0x1a098f;}};$t=z([R(0x3,_0x4f07a4(_0x44d080)),R(0x4,_0x4f07a4(_0x4f4878)),R(0x5,_0x4f07a4(_0x220418)),R(0x6,_0x4f07a4(_0x3c5693)),R(0x7,_0x4f07a4(H)),R(0x8,_0x4f07a4(L)),R(0x9,_0x3a738f),R(0xa,_0x1443cf),R(0xb,_0x3a76f7),R(0xc,_0x439c61),R(0xd,_0x1cfc4d(jt)),R(0xe,_0x1cfc4d(V))],$t);const en=_0x4bcee9('univer-pro.collaboration-client.network-condition.service');function tn(_0x55e9f3){const _0xa4f3c6=_0x1f8522;let _0x3e6b04=_0x55e9f3[_0xa4f3c6(0x194)],_0x49c1cc=JSON['parse'](_0x3e6b04);switch(_0x49c1cc[_0xa4f3c6(0x22f)]){case _0x15766e[_0xa4f3c6(0x180)]:case _0x15766e[_0xa4f3c6(0x1e5)]:{let _0x41c395=_0x49c1cc[_0xa4f3c6(0x1d3)];return{..._0x49c1cc,'data':_0x41c395,'cmd':_0x49c1cc['cmd']};}case _0x15766e[_0xa4f3c6(0x2a3)]:{let _0x222c88=_0x49c1cc[_0xa4f3c6(0x20c)];return{..._0x49c1cc,'data':_0x222c88,'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};}case _0x15766e['RECV']:{let _0x376fc5=_0x49c1cc['collaMsg'];switch(_0x376fc5[_0xa4f3c6(0x281)]){case _0x27e67f[_0xa4f3c6(0x165)]:var _0xf96b7a;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0xf96b7a=_0x376fc5[_0xa4f3c6(0x157)])==null?void 0x0:_0xf96b7a['cs']},'cmd':_0x49c1cc['cmd']};case _0x27e67f[_0xa4f3c6(0xce)]:var _0x3f39e2;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x3f39e2=_0x376fc5['csAckEvent'])==null?void 0x0:_0x3f39e2['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x29e)]:var _0x6e52c6;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x6e52c6=_0x376fc5[_0xa4f3c6(0x30a)])==null?void 0x0:_0x6e52c6['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1a1)]:var _0x5bff88;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x5bff88=_0x376fc5['csRejEvent'])==null?void 0x0:_0x5bff88['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1b1)]:var _0x235bc3;return{..._0x49c1cc,'data':{..._0x376fc5,'data':(_0x235bc3=_0x376fc5[_0xa4f3c6(0x166)])==null?void 0x0:_0x235bc3['cs']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x16f)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x1da)]},'cmd':_0x49c1cc['cmd']};case _0x27e67f['USERS_ENTER']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x2a8)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x2f4)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x28c)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x297)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x14a)]},'cmd':_0x49c1cc['cmd']};case _0x27e67f[_0xa4f3c6(0x229)]:case _0x27e67f[_0xa4f3c6(0x293)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5['liveShareOperation']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f['LIVESHARE_TERMINATE']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x14a)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x1b9)]:return{..._0x49c1cc,'data':_0x376fc5,'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x111)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5['commentUpdateEvent']},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0x139)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x304)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f[_0xa4f3c6(0xf5)]:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x301)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};case _0x27e67f['UNISCRIPT_RUN']:return{..._0x49c1cc,'data':{..._0x376fc5,'data':_0x376fc5[_0xa4f3c6(0x154)]},'cmd':_0x49c1cc[_0xa4f3c6(0x22f)]};default:return _0x49c1cc;}}default:return _0x49c1cc;}}function nn(_0x111916){const _0x2c2e3f=_0x1f8522;switch(_0x111916['cmd']){case _0x15766e[_0x2c2e3f(0x180)]:case _0x15766e[_0x2c2e3f(0x1e5)]:return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916['routeKey']});case _0x15766e['INGEST']:{let _0x13ccbd;switch(_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x281)]){case _0x27e67f[_0x2c2e3f(0x16f)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x16f)],'updateCursorEvent':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f['USERS_LEAVE']:_0x13ccbd={'eventID':_0x27e67f['USERS_LEAVE'],'leaveEvent':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x104)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x104)],'joinEvent':_0x111916['data'][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x297)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x297)],'liveShareNewHost':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x293)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x293)],'liveShareOperation':_0x111916[_0x2c2e3f(0x194)]['data']};break;case _0x27e67f[_0x2c2e3f(0x2df)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x2df)],'liveShareTerminate':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x1c6)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x1c6)],'liveShareRequestHost':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x194)]};break;case _0x27e67f[_0x2c2e3f(0x229)]:_0x13ccbd={'eventID':_0x27e67f[_0x2c2e3f(0x229)]};break;default:_0x13ccbd={'eventID':_0x111916[_0x2c2e3f(0x194)][_0x2c2e3f(0x281)]};}return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916['cmd'],'routeKey':_0x111916['routeKey'],'collaMsg':_0x13ccbd});}case _0x15766e[_0x2c2e3f(0x2a3)]:return JSON[_0x2c2e3f(0x2fc)]({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916[_0x2c2e3f(0x109)],'joinReq':_0x111916[_0x2c2e3f(0x194)]});case _0x15766e[_0x2c2e3f(0x1b6)]:return JSON['stringify']({'cmd':_0x111916[_0x2c2e3f(0x22f)],'routeKey':_0x111916['routeKey'],'leaveReq':_0x111916[_0x2c2e3f(0x194)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const rn=_0x4bcee9(_0x1f8522(0x314));function an(_0x1fb23a,_0x2e53ec,_0x5dbfed){const _0x1f8d68=_0x1f8522;return _0x1fb23a+'/'+_0x2e53ec+_0x1f8d68(0xee)+_0x5dbfed+_0x1f8d68(0x1cd);}let on=class extends _0x555def{constructor(_0xf38020,_0x2002a2,_0x5e1301,_0x1b82b5,_0x2fcbf1){const _0x2da528=_0x1f8522;super(),this['_injector']=_0xf38020,this[_0x2da528(0x152)]=_0x2002a2,this['_configService']=_0x5e1301,this[_0x2da528(0x2b2)]=_0x1b82b5,this[_0x2da528(0xc5)]=_0x2fcbf1;}[_0x1f8522(0x15a)](_0x5b864d){const _0x18aa5f=_0x1f8522;let _0x568426=this[_0x18aa5f(0xe9)][_0x18aa5f(0x315)](_0x1dbaaf);if(!_0x568426)throw Error(_0x18aa5f(0x2ff));let _0xce9a27=_0x568426[_0x18aa5f(0x259)](_0x5b864d);if(!_0xce9a27)throw Error(_0x18aa5f(0x10c));let _0x2e9092=new _0x3e23a9(),_0x3a9f0e=new _0x147a88();_0x2e9092[_0x18aa5f(0x2a1)](_0xce9a27['close$'][_0x18aa5f(0xfb)](_0xe66b47=>_0x3a9f0e['next'](_0xe66b47))),_0x2e9092[_0x18aa5f(0x2a1)](_0x224a5f(()=>_0x3a9f0e[_0x18aa5f(0x318)]()));let _0x2cdfec=new _0x147a88();_0x2e9092[_0x18aa5f(0x2a1)](_0xce9a27['error$'][_0x18aa5f(0xfb)](_0x4af798=>_0x2cdfec[_0x18aa5f(0xc4)](_0x4af798))),_0x2e9092[_0x18aa5f(0x2a1)](_0x224a5f(()=>_0x2cdfec[_0x18aa5f(0x318)]()));let _0x142cc5=new _0x147a88();_0x2e9092['add'](_0xce9a27['message$']['subscribe'](_0x5da463=>{let _0x4620a7=tn(_0x5da463);_0x142cc5['next'](_0x4620a7);})),_0x2e9092['add'](_0x224a5f(()=>_0x142cc5[_0x18aa5f(0x318)]()));let _0x55d1df,_0x2a1f11=()=>{const _0x3675f3=_0x18aa5f;_0x2cdfec[_0x3675f3(0xc4)](new Event(_0x3675f3(0xcf))),_0x3a9f0e[_0x3675f3(0xc4)](new Event(_0x3675f3(0xcf))),_0x55d1df[_0x3675f3(0x22e)]();};return _0x55d1df={'memberID':'','close$':_0x3a9f0e[_0x18aa5f(0x2b0)](),'error$':_0x2cdfec['asObservable'](),'open$':_0xce9a27[_0x18aa5f(0x12a)],'message$':_0x142cc5[_0x18aa5f(0x2b0)](),'send':_0x1a5a48=>{const _0x4fce1e=_0x18aa5f;if(_0x1a5a48[_0x4fce1e(0x22f)]===_0x15766e[_0x4fce1e(0x247)]){if(_0x1a5a48[_0x4fce1e(0x194)][_0x4fce1e(0x281)]===_0x27e67f[_0x4fce1e(0x31b)]){this[_0x4fce1e(0x212)](_0x55d1df,_0x1a5a48[_0x4fce1e(0x194)])[_0x4fce1e(0x265)](_0x36f13f=>{const _0x3750a7=_0x4fce1e;this[_0x3750a7(0x2b2)][_0x3750a7(0xd2)](_0x36f13f),_0x2a1f11();});return;}if(_0x1a5a48[_0x4fce1e(0x194)][_0x4fce1e(0x281)]===_0x27e67f[_0x4fce1e(0x2ce)]){let _0x3a48fa=_0x1a5a48[_0x4fce1e(0x194)];this[_0x4fce1e(0x1fa)](_0x3a48fa)[_0x4fce1e(0xbe)](_0x1b0686=>{const _0x4396e3=_0x4fce1e;_0x142cc5['next']({'cmd':_0x15766e[_0x4396e3(0x2ee)],'code':_0x28282a['OK'],'routeKey':_0x3a48fa[_0x4396e3(0x194)][_0x4396e3(0x108)],'routeType':'','data':{'eventID':_0x27e67f['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1b0686}}});})[_0x4fce1e(0x265)](_0x3c4f39=>{const _0x1f7922=_0x4fce1e;this[_0x1f7922(0x2b2)][_0x1f7922(0xd2)](_0x3c4f39),_0x2a1f11();});return;}}_0xce9a27[_0x4fce1e(0x11c)](nn(_0x1a5a48));},'close':()=>{const _0x30db9d=_0x18aa5f;_0xce9a27[_0x30db9d(0x22e)](),_0x2e9092[_0x30db9d(0x282)]();}},_0x55d1df;}async[_0x1f8522(0x212)](_0x141a75,_0x3c1794){const _0x5ab881=_0x1f8522;var _0x419ad7;let {unitType:_0x5155cf,unitID:_0x49b6ad,changeset:_0x153822}=_0x3c1794[_0x5ab881(0x194)],_0x39ff1f={'unitID':_0x49b6ad,'memberID':_0x141a75[_0x5ab881(0x184)],'type':_0x5155cf,'changeset':_0x12da55(_0x153822)},_0x5d7853=this['_configService'][_0x5ab881(0xe2)](U),_0x2d2d9d=an((_0x419ad7=_0x5d7853==null?void 0x0:_0x5d7853['collabSubmitChangesetUrl'])==null?'/universer-api/comb':_0x419ad7,_0x5155cf,_0x49b6ad);try{await this[_0x5ab881(0x152)][_0x5ab881(0xc6)](_0x2d2d9d,{'body':_0x39ff1f});}catch(_0x4d6ac9){throw this[_0x5ab881(0x2b2)][_0x5ab881(0xd2)](_0x5ab881(0x2a0),'submit\x20changeset\x20error!'),_0x4d6ac9;}}async['_fetchMissChangesets'](_0xa244e9){const _0x542f6c=_0x1f8522;let {unitID:_0x1aaa91,from:_0x4cf239,to:_0x1b1760,unitType:_0x4cb578}=_0xa244e9[_0x542f6c(0x194)];return(await this[_0x542f6c(0xc5)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1aaa91,'type':_0x4cb578,'from':_0x4cf239,'to':_0x1b1760}))[_0x542f6c(0x2f3)]['map'](_0x775ff0=>((_0x775ff0['mutations']===null||_0x775ff0[_0x542f6c(0x236)]===void 0x0)&&(_0x775ff0['mutations']=[]),_0x775ff0));}};on=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f07a4(_0x2e99a4)),R(0x2,_0x3ba9f8),R(0x3,_0x1443cf),R(0x4,_0x72942)],on);let Q=class extends _0x555def{get['_socket'](){const _0x3dafee=_0x1f8522;return this['_socket$'][_0x3dafee(0x10b)]();}constructor(_0x4a5439,_0x2e6aab,_0x11f92a,_0x42425c,_0x4769c7,_0x159839){const _0x3d823d=_0x1f8522;super(),this['_injector']=_0x4a5439,this[_0x3d823d(0x2b2)]=_0x2e6aab,this['_configService']=_0x11f92a,this[_0x3d823d(0x1a9)]=_0x42425c,this[_0x3d823d(0x2b3)]=_0x4769c7,this[_0x3d823d(0x199)]=_0x159839,I(this,_0x3d823d(0x155),new _0x2acfcb(void 0x0)),I(this,_0x3d823d(0x112),this[_0x3d823d(0x155)][_0x3d823d(0x2b0)]()),I(this,_0x3d823d(0x1e6),null),I(this,_0x3d823d(0x19c),new Map()),I(this,_0x3d823d(0x2fd),new _0x2acfcb(0x0)),I(this,_0x3d823d(0x13f),this['_status$'][_0x3d823d(0x2b0)]()),I(this,_0x3d823d(0x158),!0x1),I(this,'_retryConnectingTimer',void 0x0),I(this,_0x3d823d(0x29d),0x0),I(this,_0x3d823d(0x27c),null),I(this,_0x3d823d(0x24e),void 0x0),I(this,_0x3d823d(0x306),void 0x0),this[_0x3d823d(0x1ea)]();}[_0x1f8522(0x1ea)](){const _0x9c1006=_0x1f8522;this[_0x9c1006(0x199)]&&this[_0x9c1006(0x2e0)](this[_0x9c1006(0x199)][_0x9c1006(0x26d)]['subscribe'](_0x578348=>{const _0x30004e=_0x9c1006;_0x578348&&!this[_0x30004e(0x283)]&&this[_0x30004e(0x22a)](),_0x578348||this[_0x30004e(0x130)]();}));}[_0x1f8522(0x282)](){const _0x1a570f=_0x1f8522;var _0x24ec3d;super[_0x1a570f(0x282)](),(_0x24ec3d=this[_0x1a570f(0x27c)])==null||_0x24ec3d[_0x1a570f(0x1f0)](),this[_0x1a570f(0x27c)]=null,this[_0x1a570f(0x2e7)](),this[_0x1a570f(0xe4)](),this[_0x1a570f(0x1d7)](),this[_0x1a570f(0x19c)][_0x1a570f(0x1b0)](_0xfa668b=>_0xfa668b['dispose']()),this[_0x1a570f(0x19c)][_0x1a570f(0x217)](),this[_0x1a570f(0x2fd)]['complete']();}async[_0x1f8522(0x277)](_0x3c79a6){const _0x515afe=_0x1f8522;if(this[_0x515afe(0x19c)][_0x515afe(0x309)](_0x3c79a6))return this['_sessions'][_0x515afe(0x315)](_0x3c79a6);this[_0x515afe(0xe3)]();let _0xd19931=this[_0x515afe(0xe9)]['createInstance'](Ot,_0x3c79a6,this[_0x515afe(0x155)][_0x515afe(0x2b0)]());return this[_0x515afe(0x19c)][_0x515afe(0x27d)](_0x3c79a6,_0xd19931),_0xd19931;}[_0x1f8522(0x1de)](_0x35e785){const _0x32b74e=_0x1f8522;let _0x1d2971=this[_0x32b74e(0x19c)][_0x32b74e(0x315)](_0x35e785);if(_0x1d2971&&(this[_0x32b74e(0x19c)][_0x32b74e(0x319)](_0x35e785),_0x1d2971[_0x32b74e(0x22e)]()),!this[_0x32b74e(0x19c)]['size']){var _0x204d45;(_0x204d45=this[_0x32b74e(0x283)])==null||_0x204d45[_0x32b74e(0x22e)]();}}['reconnect'](){const _0xdcd5db=_0x1f8522;this['_retryCount']=0x0,this['_clearRetryConnectingTimer'](),this[_0xdcd5db(0x138)]();}[_0x1f8522(0x2e7)](){const _0x44547a=_0x1f8522;this[_0x44547a(0x10f)]!=null&&(clearTimeout(this[_0x44547a(0x10f)]),this[_0x44547a(0x10f)]=null);}async[_0x1f8522(0x278)](){const _0xd1e613=_0x1f8522;var _0x51d548;let _0x224aaf=this[_0xd1e613(0xba)][_0xd1e613(0xe2)](U),_0x293175=(_0x51d548=_0x224aaf==null?void 0x0:_0x224aaf[_0xd1e613(0x238)])==null?ut:_0x51d548,_0x2b23b9=await this['_socketService'][_0xd1e613(0x259)](_0x293175);return this[_0xd1e613(0x1e6)]=_0x2b23b9,_0x2b23b9;}async[_0x1f8522(0xe3)](){const _0x3a3a1d=_0x1f8522;try{var _0x103394,_0x104e40;let _0x318d0c=(_0x103394=(_0x104e40=this[_0x3a3a1d(0x283)])==null?this['_candidateSocket']:_0x104e40)==null?await this[_0x3a3a1d(0x278)]():_0x103394;if(_0x318d0c){var _0x2f686d;let _0x52a2b1=_0x318d0c['send'];_0x318d0c['send']=_0x4472ad=>(_0x4472ad['cmd']!==_0x15766e[_0x3a3a1d(0x1b6)]&&this['_rescheduleHeartbeat'](),_0x52a2b1['apply'](_0x318d0c,[_0x4472ad])),(_0x2f686d=this[_0x3a3a1d(0x27c)])==null||_0x2f686d[_0x3a3a1d(0x1f0)](),this[_0x3a3a1d(0x27c)]=null,this[_0x3a3a1d(0x27c)]=_0x318d0c['message$'][_0x3a3a1d(0xfb)](_0x3ef4e4=>this[_0x3a3a1d(0x30b)](_0x318d0c,_0x3ef4e4)),_0x318d0c[_0x3a3a1d(0x2aa)][_0x3a3a1d(0x27e)](_0x15baed(0x1))[_0x3a3a1d(0xfb)](_0x49941c=>this['_logService'][_0x3a3a1d(0xd2)]('[CollaborationSessionService]:\x20socket\x20error',_0x49941c)),_0x318d0c[_0x3a3a1d(0x12a)][_0x3a3a1d(0x27e)](_0x15baed(0x1))[_0x3a3a1d(0xfb)](()=>{this['_onConnectionOpen'](_0x318d0c);}),_0x318d0c[_0x3a3a1d(0x24a)][_0x3a3a1d(0x27e)](_0x15baed(0x1))['subscribe'](_0xa09a8=>{const _0x5f2dc2=_0x3a3a1d;this[_0x5f2dc2(0x2b2)]['debug'](_0x5f2dc2(0x125),'socket\x20close',_0xa09a8),this['_onConnectionFailed']();});}}catch(_0x303705){this[_0x3a3a1d(0x2b2)]['error'](_0x303705),this[_0x3a3a1d(0x19a)]();}}[_0x1f8522(0x1d2)](_0x1cf426){const _0x3abbfc=_0x1f8522;this[_0x3abbfc(0x2b2)][_0x3abbfc(0x305)]('[CollaborationSessionService]',_0x3abbfc(0x1fd)),_0x1cf426[_0x3abbfc(0x11c)]({'cmd':_0x15766e[_0x3abbfc(0x1e5)]}),this['_rescheduleHeartbeat']();}[_0x1f8522(0x130)](){const _0x5ef46a=_0x1f8522;this['_socketReady']=!0x1,this[_0x5ef46a(0x1e6)]=null,this['_status$']['next'](0x2),this[_0x5ef46a(0x155)]['next'](null),this[_0x5ef46a(0xe4)](),this[_0x5ef46a(0x1d7)]();}[_0x1f8522(0x19a)](){const _0x302787=_0x1f8522;var _0x9210e;this[_0x302787(0x130)](),this[_0x302787(0x29d)]<((_0x9210e=this[_0x302787(0xba)][_0x302787(0xe2)](_0x302787(0x1af)))==null?0x3:_0x9210e)?(this[_0x302787(0x2b3)][_0x302787(0x15d)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x302787(0x138)]()):this['_collaborationUIEventService']['emitEvent']({'id':_0x302787(0x29c)});}[_0x1f8522(0x138)](){const _0x19f96e=_0x1f8522;var _0x81ba15;let _0x339734=this[_0x19f96e(0x29d)],_0x472b9c=this[_0x19f96e(0xba)]['getConfig'](U),_0x32bbf5=_0x339734===0x0?0x0:((_0x81ba15=_0x472b9c==null?void 0x0:_0x472b9c[_0x19f96e(0x1bb)])==null?0x4e20:_0x81ba15)*0x2**_0x339734;this[_0x19f96e(0x10f)]=setTimeout(()=>{const _0x35a6b0=_0x19f96e;clearTimeout(this[_0x35a6b0(0x10f)]),this[_0x35a6b0(0x10f)]=null,this[_0x35a6b0(0xe3)]();},_0x32bbf5),this['_retryCount']+=0x1;}[_0x1f8522(0x30b)](_0xc43264,_0x25b553){const _0x4772ba=_0x1f8522;let {cmd:_0x50e9ff}=_0x25b553;_0x50e9ff===_0x15766e['HELLO']&&!this[_0x4772ba(0x158)]&&(_0xc43264[_0x4772ba(0x184)]=_0x25b553[_0x4772ba(0x194)][_0x4772ba(0x184)],this[_0x4772ba(0x155)]['next'](_0xc43264),this['_status$'][_0x4772ba(0xc4)](0x3),this[_0x4772ba(0x158)]=!0x0,this[_0x4772ba(0x1e6)]=null),_0x50e9ff===_0x15766e[_0x4772ba(0x180)]&&this[_0x4772ba(0xe4)](),this['_rescheduleHeartbeat']();}[_0x1f8522(0x12f)](){const _0x2337b2=_0x1f8522;var _0x3d9ca2;this[_0x2337b2(0x1d7)](),this[_0x2337b2(0x24e)]=setTimeout(()=>this[_0x2337b2(0x208)](),(_0x3d9ca2=this['_configService']['getConfig'](_0x2337b2(0xc0)))==null?0x7530:_0x3d9ca2);}[_0x1f8522(0x208)](){const _0x32077e=_0x1f8522;this[_0x32077e(0x283)][_0x32077e(0x11c)]({'cmd':_0x15766e[_0x32077e(0x180)]}),this[_0x32077e(0x2de)]();}['_waitForHeartbeatResponse'](){const _0x3d654a=_0x1f8522;var _0x5e5582;this['_timeoutTimer']=setTimeout(()=>this[_0x3d654a(0x19a)](),(_0x5e5582=this['_configService'][_0x3d654a(0xe2)](_0x3d654a(0x13e)))==null?mt:_0x5e5582);}[_0x1f8522(0x1d7)](){const _0x4be253=_0x1f8522;this[_0x4be253(0x24e)]!=null&&(clearTimeout(this[_0x4be253(0x24e)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x3a85d0=_0x1f8522;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3a85d0(0x306)]=null);}};Q=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x1443cf),R(0x2,_0x3ba9f8),R(0x3,rn),R(0x4,_0x4f07a4(L)),R(0x5,_0x1cfc4d(en))],Q);let sn=class extends _0x3498fe{constructor(_0x3784db,_0x3e5b79,_0x2662bf,_0x348707){const _0x4a1ec3=_0x1f8522;var _0x24e813;super(),this[_0x4a1ec3(0xe9)]=_0x3784db,this[_0x4a1ec3(0x250)]=_0x3e5b79,this[_0x4a1ec3(0xba)]=_0x2662bf,this[_0x4a1ec3(0xf7)]=_0x348707,I(this,_0x4a1ec3(0x1a4),new Map()),I(this,_0x4a1ec3(0xf2),new _0x147a88()),I(this,_0x4a1ec3(0x1f5),this[_0x4a1ec3(0xf2)][_0x4a1ec3(0x2b0)]()),((_0x24e813=this[_0x4a1ec3(0xba)][_0x4a1ec3(0xe2)](_0x4a1ec3(0x1bd)))==null?void 0x0:_0x24e813['enableCollaboration'])!==!0x1&&this[_0x4a1ec3(0x182)]();}['dispose'](){const _0x4828aa=_0x1f8522;super['dispose'](),this[_0x4828aa(0x1a4)]['forEach'](_0x5115f7=>_0x5115f7[_0x4828aa(0x282)]()),this['_entities'][_0x4828aa(0x217)]();}[_0x1f8522(0x230)](_0x331d1c){const _0x3c586e=_0x1f8522;var _0x6526f;return(_0x6526f=this[_0x3c586e(0x1a4)][_0x3c586e(0x315)](_0x331d1c))==null?null:_0x6526f;}[_0x1f8522(0x2b1)](_0x1d29a8){const _0x25af7f=_0x1f8522;let _0x52d845=this[_0x25af7f(0x230)](_0x1d29a8);return _0x52d845?_0x3a835d(_0x52d845):this[_0x25af7f(0xf2)][_0x25af7f(0x27e)](_0x18abe6(_0x2d4918=>_0x2d4918['unitID']===_0x1d29a8));}[_0x1f8522(0x2a7)](_0x271e3b){const _0x2cbe9c=_0x1f8522;return _0x128fbd(this[_0x2cbe9c(0x2b1)](_0x271e3b)['pipe'](_0x279c8c(()=>void 0x0)));}[_0x1f8522(0x182)](){const _0x5e7f24=_0x1f8522;this['_univerInstanceService'][_0x5e7f24(0x28f)](_0x292cef[_0x5e7f24(0x107)])['pipe'](_0x56cc03(this[_0x5e7f24(0x24c)]),_0x196d30(0x10))['subscribe'](async _0x4ca380=>{const _0x2fa530=_0x5e7f24;let _0x5e8a52=_0x4ca380[_0x2fa530(0x189)][_0x2fa530(0xdc)](),_0x588441=await this['_startCollaboration'](_0x5e8a52,_0x292cef[_0x2fa530(0x107)]);this[_0x2fa530(0x1a4)][_0x2fa530(0x27d)](_0x5e8a52,_0x588441);}),this[_0x5e7f24(0xf7)][_0x5e7f24(0x28f)](_0x292cef['UNIVER_DOC'])[_0x5e7f24(0x27e)](_0x56cc03(this[_0x5e7f24(0x24c)]),_0x196d30(0x10))[_0x5e7f24(0x27e)](_0x18abe6(_0x5aa806=>!_0x5aa806[_0x5e7f24(0x189)][_0x5e7f24(0xdc)]()[_0x5e7f24(0xed)]('__')))[_0x5e7f24(0xfb)](async _0x4736d5=>{const _0x396aa1=_0x5e7f24;let _0x359c3c=_0x4736d5[_0x396aa1(0x189)][_0x396aa1(0xdc)](),_0x235b09=await this[_0x396aa1(0x15b)](_0x359c3c,_0x292cef['UNIVER_DOC']);this[_0x396aa1(0x1a4)][_0x396aa1(0x27d)](_0x359c3c,_0x235b09);}),_0x340907(this['_univerInstanceService'][_0x5e7f24(0xe1)](_0x292cef[_0x5e7f24(0x107)]),this['_univerInstanceService'][_0x5e7f24(0xe1)](_0x292cef[_0x5e7f24(0x23a)]))[_0x5e7f24(0x27e)](_0x56cc03(this['dispose$']))['subscribe'](_0x255558=>{const _0x130c01=_0x5e7f24;let _0x495fd2=_0x255558[_0x130c01(0xdc)](),_0x1808f8=this['_entities']['get'](_0x495fd2);_0x1808f8&&(_0x1808f8[_0x130c01(0x282)](),this[_0x130c01(0x1a4)][_0x130c01(0x319)](_0x495fd2));});}async[_0x1f8522(0x15b)](_0x28eb22,_0x57c62f){const _0x208b9a=_0x1f8522;let _0x549958=await this[_0x208b9a(0x250)][_0x208b9a(0x277)](_0x28eb22),_0x56338a=this[_0x208b9a(0xe9)][_0x208b9a(0x164)](this[_0x208b9a(0x1ab)](_0x57c62f),_0x28eb22,_0x57c62f,_0x549958);return await _0x56338a[_0x208b9a(0x266)](),this[_0x208b9a(0xf2)][_0x208b9a(0xc4)](_0x56338a),_0x56338a;}[_0x1f8522(0x1ab)](_0x283fdf){const _0x2c0b37=_0x1f8522;switch(_0x283fdf){case _0x292cef[_0x2c0b37(0x23a)]:return Qt;case _0x292cef[_0x2c0b37(0x107)]:return $t;default:throw Error(_0x2c0b37(0x140)+_0x283fdf);}}};sn=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x4f07a4(Q)),R(0x2,_0x3ba9f8),R(0x3,_0x3a738f)],sn);var cn=_0x1f8522(0x1ec),ln=_0x1f8522(0xf8);let un=class extends _0x555def{constructor(_0x5df8d0,_0x27700d){const _0xa5afd9=_0x1f8522;super(),this[_0xa5afd9(0xf7)]=_0x5df8d0,this[_0xa5afd9(0xba)]=_0x27700d,this[_0xa5afd9(0x182)]();}['_init'](){const _0x2fdb17=_0x1f8522;this[_0x2fdb17(0x2e0)](this[_0x2fdb17(0xf7)][_0x2fdb17(0x312)]['subscribe'](()=>{const _0x1c20a2=_0x2fdb17;var _0x1c5f58;let _0x27cf9a=this[_0x1c20a2(0xf7)][_0x1c20a2(0x1c1)](),_0x2c18eb=(_0x1c5f58=this[_0x1c20a2(0xba)]['getConfig']('DEFAULT_FILE_NAME'))==null?_0x1c20a2(0xeb):_0x1c5f58;_0x27cf9a instanceof _0x1d942e&&(_0x2c18eb=_0x27cf9a[_0x1c20a2(0x215)]),document[_0x1c20a2(0x13c)]=_0x2c18eb;}));}};un=z([R(0x0,_0x3a738f),R(0x1,_0x3ba9f8)],un);let dn=class{constructor(_0x10e89b,_0x5e1983,_0x3536e5){const _0xd90de0=_0x1f8522;this['_configService']=_0x10e89b,this[_0xd90de0(0x152)]=_0x5e1983,this['localeService']=_0x3536e5,this[_0xd90de0(0x266)]();}[_0x1f8522(0x266)](){const _0x12bfc2=_0x1f8522;this['_httpService'][_0x12bfc2(0x240)]({'priority':0x1,'interceptor':(_0x213510,_0xe7a4a)=>_0xe7a4a(_0x213510)[_0x12bfc2(0x27e)](_0x1d0115(async _0x57f830=>{const _0x2a1cf0=_0x12bfc2;let _0x221d8b=_0x57f830;if(_0x221d8b[_0x2a1cf0(0x214)]===0x191){if(typeof window>'u')throw Error(_0x2a1cf0(0x31d));if(window[_0x2a1cf0(0x1c2)](this[_0x2a1cf0(0xef)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x45a5a0=window['encodeURIComponent'](window[_0x2a1cf0(0x110)][_0x2a1cf0(0x2dc)]);window[_0x2a1cf0(0x110)][_0x2a1cf0(0x2dc)]=this[_0x2a1cf0(0x252)]()+_0x2a1cf0(0x296)+_0x45a5a0;}}return _0x221d8b;}))});}[_0x1f8522(0x252)](){const _0x58c1ae=_0x1f8522;var _0x488a66;let _0x3d214e=this[_0x58c1ae(0xba)][_0x58c1ae(0xe2)](U);return(_0x488a66=_0x3d214e==null?void 0x0:_0x3d214e[_0x58c1ae(0x206)])==null?_0x58c1ae(0xd4):_0x488a66;}};dn=z([R(0x0,_0x3ba9f8),R(0x1,_0x4f07a4(_0x2e99a4)),R(0x2,_0x4f07a4(_0x220418))],dn);let fn=class extends _0x555def{constructor(_0x5485f1,_0x562902){const _0x207343=_0x1f8522;super(),this['_HTTPService']=_0x5485f1,this[_0x207343(0xba)]=_0x562902,I(this,'_cfgEnableObjInherit',!0x1),this[_0x207343(0x171)]();}[_0x1f8522(0x171)](){const _0x19db52=_0x1f8522;let _0x510152=this;this[_0x19db52(0x2e0)](this['_HTTPService'][_0x19db52(0x240)]({'priority':0x3e7,'interceptor':_0x5e53e1({'isMatch'(_0x5db38e){const _0x4b4865=_0x19db52;var _0x1402ba;if(_0x5db38e[_0x4b4865(0x1a5)]===_0x4b4865(0x124)&&(_0x1402ba=_0x5db38e[_0x4b4865(0x15e)])!=null&&_0x1402ba[_0x4b4865(0x123)]){let {objectID:_0x363b8c,objectType:_0x2ebc64}=_0x5db38e[_0x4b4865(0x15e)][_0x4b4865(0x123)]||{};if(!_0x363b8c||_0x2ebc64===void 0x0)return!0x1;let _0x154860=_0x510152[_0x4b4865(0x16c)]()+'/'+_0x2ebc64+'/object/'+_0x363b8c+_0x4b4865(0x14c);if(_0x5db38e[_0x4b4865(0x118)]===_0x154860)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1b2b76){const _0x3f00b5=_0x19db52;var _0x4c88ec;return(_0x4c88ec=_0x1b2b76[_0x3f00b5(0x15e)])==null?void 0x0:_0x4c88ec[_0x3f00b5(0x123)];},'mergeParamsToRequest'(_0x5e706f,_0x2582d8){const _0x4f0ccc=_0x19db52;let _0x528279=_0x510152[_0x4f0ccc(0x16c)]()+'/-/object/-/batch_allowed',_0x3f1683=_0x5e706f[_0x4f0ccc(0x2a9)]((_0x49ab73,_0x57fef7)=>{const _0x28b66f=_0x4f0ccc;let {unitID:_0x12ecab,objectID:_0x506169,objectType:_0x2e6c9d,actions:_0x1ec5cd}=_0x57fef7;return _0x49ab73[_0x12ecab]||(_0x49ab73[_0x12ecab]={}),_0x49ab73[_0x12ecab][_0x506169]||(_0x49ab73[_0x12ecab][_0x506169]={'objectID':_0x506169,'objectType':_0x2e6c9d,'actions':[]}),_0x49ab73[_0x12ecab][_0x506169]['actions'][_0x28b66f(0xc1)](..._0x1ec5cd),_0x49ab73;},{}),_0x502283=[];for(let _0x5dedc7 in _0x3f1683)for(let _0x2edf1f in _0x3f1683[_0x5dedc7]){let {actions:_0x2d6b49,objectType:_0x498c79}=_0x3f1683[_0x5dedc7][_0x2edf1f],_0x1933a3=[...new Set(_0x2d6b49)];_0x502283['push']({'unitID':_0x5dedc7,'objectID':_0x2edf1f,'objectType':_0x498c79,'actions':_0x1933a3});}return new _0x1b125d(_0x4f0ccc(0x124),_0x528279,{'headers':_0x2582d8[_0x4f0ccc(0x10d)],'withCredentials':_0x2582d8['withCredentials'],'responseType':_0x2582d8[_0x4f0ccc(0x173)],'body':{'requests':_0x502283}});}},{'distributeResult'(_0x1ca702,_0x1f9b18){const _0x2497b1=_0x19db52;let {objectActions:_0xfee2}=_0x1ca702;return _0x1f9b18[_0x2497b1(0x1f1)](_0x434ecd=>{const _0x19a728=_0x2497b1;let {unitID:_0x2d2cdf,objectID:_0x192a2e,actions:_0x44e3fa}=_0x434ecd,_0x364c15=_0xfee2[_0x19a728(0x2f5)](_0x5c55f2=>_0x5c55f2['unitID']===_0x2d2cdf&&_0x5c55f2[_0x19a728(0x220)]===_0x192a2e);return{'config':_0x434ecd,'result':{'actions':_0x44e3fa[_0x19a728(0x1f1)](_0x11ee75=>_0x364c15==null?void 0x0:_0x364c15[_0x19a728(0x14d)]['find'](_0x5396e3=>_0x5396e3[_0x19a728(0x172)]===_0x11ee75))['filter'](_0x544593=>!!_0x544593),'error':_0x1ca702[_0x19a728(0xd2)]}};});}})}));}[_0x1f8522(0x16c)](){const _0x4d02d8=_0x1f8522;var _0x18838c;let _0x5f00e1=this[_0x4d02d8(0xba)][_0x4d02d8(0xe2)](U);return(_0x18838c=_0x5f00e1==null?void 0x0:_0x5f00e1[_0x4d02d8(0xec)])==null?_0x4d02d8(0x1ae):_0x18838c;}async['create'](_0x9c80ff){const _0x561871=_0x1f8522;let _0x2aa4e1=this[_0x561871(0x16c)]()+'/'+_0x9c80ff[_0x561871(0x1ed)]+_0x561871(0x12b);return(await this[_0x561871(0x117)][_0x561871(0xc6)](_0x2aa4e1,{'body':_0x9c80ff}))[_0x561871(0x123)]['objectID']||'';}async['list'](_0x54f3c1){const _0x136659=_0x1f8522;let _0x3c1035=this[_0x136659(0x16c)]()+_0x136659(0x276);return(await this[_0x136659(0x117)][_0x136659(0xc6)](_0x3c1035,{'body':_0x54f3c1}))[_0x136659(0x123)][_0x136659(0x26b)];}async[_0x1f8522(0x2a6)](_0x4e16df){const _0x1d6f3f=_0x1f8522;var _0x4997ad;let _0x42e48a=this[_0x1d6f3f(0x16c)]()+'/'+_0x4e16df[_0x1d6f3f(0x1ed)]+_0x1d6f3f(0x161)+_0x4e16df[_0x1d6f3f(0x220)],_0x1d2fd0=await this['_HTTPService'][_0x1d6f3f(0xe6)](_0x42e48a,{'body':_0x4e16df});if((_0x1d2fd0==null||(_0x4997ad=_0x1d2fd0[_0x1d6f3f(0x123)])==null||(_0x4997ad=_0x4997ad[_0x1d6f3f(0xd2)])==null?void 0x0:_0x4997ad[_0x1d6f3f(0x106)])!==0x1)throw Error(_0x1d6f3f(0x268));}async[_0x1f8522(0xbd)](_0x28f4a6){const _0x7a3496=_0x1f8522;let _0x33021d=this[_0x7a3496(0x16c)]()+'/'+_0x28f4a6[_0x7a3496(0x1ed)]+_0x7a3496(0x161)+_0x28f4a6[_0x7a3496(0x220)]+_0x7a3496(0x14c);return(await this[_0x7a3496(0x117)][_0x7a3496(0xc6)](_0x33021d,{'body':_0x28f4a6}))['body'][_0x7a3496(0x14d)];}async['batchAllowed'](_0xf693d8){const _0x40120f=_0x1f8522;let _0x4b6cf8=this[_0x40120f(0x16c)]()+_0x40120f(0x1a6);return(await this['_HTTPService'][_0x40120f(0xc6)](_0x4b6cf8,{'body':{'requests':_0xf693d8}}))[_0x40120f(0x123)]['objectActions'];}async[_0x1f8522(0xf1)](_0x54d469){const _0x11f12c=_0x1f8522;let _0x476e1d=this[_0x11f12c(0x16c)]()+'/'+_0x54d469[_0x11f12c(0x1ed)]+_0x11f12c(0x2cb),_0x4e4523=await this[_0x11f12c(0x117)][_0x11f12c(0xc6)](_0x476e1d,{'body':_0x54d469});return{'roles':_0x4e4523[_0x11f12c(0x123)][_0x11f12c(0x2b6)],'actions':_0x4e4523[_0x11f12c(0x123)][_0x11f12c(0x14d)]};}async['deleteCollaborator'](_0x210d99){const _0x23bf69=_0x1f8522;let _0x2b97e2=this[_0x23bf69(0x16c)]()+_0x23bf69(0x298);await this[_0x23bf69(0x117)][_0x23bf69(0x319)](_0x2b97e2,{'params':{'collaboratorID':_0x210d99['collaboratorID'],'objectID':_0x210d99[_0x23bf69(0x220)],'unitID':_0x210d99[_0x23bf69(0x108)]}});}async[_0x1f8522(0x119)](_0x58f946){const _0x393e16=_0x1f8522;let _0xb03346=this[_0x393e16(0x16c)]()+'/collaborator';await this['_HTTPService'][_0x393e16(0x239)](_0xb03346,{'body':_0x58f946});}async[_0x1f8522(0x144)](_0x575e9b){const _0xb81a6a=_0x1f8522;let _0x7e6f3c=this[_0xb81a6a(0x16c)]()+'/collaborator';await this[_0xb81a6a(0x117)][_0xb81a6a(0xc6)](_0x7e6f3c,{'body':_0x575e9b});}async['listCollaborators'](_0x3da650){const _0x26218b=_0x1f8522;var _0x4e4ad6;let _0x57f326=this[_0x26218b(0x16c)]()+'/collaborator',_0x3223a8=await this['_HTTPService']['get'](_0x57f326,{'params':{'objectID':_0x3da650[_0x26218b(0x220)],'unitID':_0x3da650['unitID']}});return this[_0x26218b(0x1d4)]((_0x4e4ad6=_0x3223a8[_0x26218b(0x123)][_0x26218b(0xe7)])==null?!0x1:_0x4e4ad6),_0x3223a8[_0x26218b(0x123)][_0x26218b(0x2e3)];}async[_0x1f8522(0x14e)](_0x48177a){const _0x1be86d=_0x1f8522;let _0x50418f=this[_0x1be86d(0x16c)]()+_0x1be86d(0x298);await this[_0x1be86d(0x117)][_0x1be86d(0xe6)](_0x50418f,{'body':_0x48177a});}[_0x1f8522(0x1d4)](_0x4ec648){const _0x276224=_0x1f8522;this[_0x276224(0x175)]=_0x4ec648;}['getCfgEnableObjInherit'](){const _0x5580c3=_0x1f8522;return this[_0x5580c3(0x175)];}};fn=z([R(0x0,_0x4f07a4(_0x2e99a4)),R(0x1,_0x4f07a4(_0x3ba9f8))],fn);function pn(_0x56d61e){const _0x22b420=_0x1f8522;let _0x3d0578=atob(_0x56d61e),_0xf683f6=new Uint8Array(_0x3d0578[_0x22b420(0x10a)]);for(let _0x4875b5=0x0;_0x4875b5<_0x3d0578[_0x22b420(0x10a)];_0x4875b5++)_0xf683f6[_0x4875b5]=_0x3d0578['charCodeAt'](_0x4875b5);return _0xf683f6;}function mn(_0xe09e45){const _0xd98024=_0x1f8522;let _0x53594d='';for(let _0x4169ae=0x0;_0x4169ae<_0xe09e45[_0xd98024(0x10a)];_0x4169ae++)_0x53594d+=String[_0xd98024(0x170)](_0xe09e45[_0x4169ae]);return btoa(_0x53594d);}function hn(_0x2532d3,_0x4bfff9){const _0x3dbf72=_0x1f8522;let _0x3771b3=pn(_0x4bfff9),_0x3aeacb=_0x24b9a3(0x10);return mn(_0x5b3153(_0x3aeacb,_0xd0e4b3(_0x3771b3,_0x3aeacb)[_0x3dbf72(0x25c)](_0x1fa3b3(_0x2532d3))));}function gn(){const _0x1b45f3=_0x1f8522;let _0x320356=_0x494156()[_0x1b45f3(0x263)];if(typeof window<'u'&&window[_0x1b45f3(0x110)]!==void 0x0&&_0x320356){let _0x4c6dd7={'time':Math[_0x1b45f3(0x11f)](Date[_0x1b45f3(0x168)]()/0x3e8),'domain':location[_0x1b45f3(0x129)]};return hn(JSON[_0x1b45f3(0x2fc)](_0x4c6dd7),_0x320356);}}let _n=class{constructor(_0x190fd7){const _0x537620=_0x1f8522;this[_0x537620(0x152)]=_0x190fd7,this[_0x537620(0xdf)]();}[_0x1f8522(0xdf)](){const _0x482177=_0x1f8522;this[_0x482177(0x152)][_0x482177(0x240)]({'interceptor':(_0x123e6f,_0x5bc066)=>{let _0x145b7d=gn();return _0x145b7d&&_0x123e6f['headers']['set']('x-univer-host',_0x145b7d),_0x5bc066(_0x123e6f);}});}};_n=z([R(0x0,_0x4f07a4(_0x2e99a4))],_n);let vn=class extends _0x3498fe{constructor(_0x31e210,_0x51d2ed,_0x48bf1a){const _0x26c7af=_0x1f8522;super(),this[_0x26c7af(0x2b2)]=_0x31e210,this[_0x26c7af(0x186)]=_0x51d2ed,this['_localCacheService']=_0x48bf1a,I(this,_0x26c7af(0x2cf),new _0x2acfcb(null)),I(this,'unitInfo$',this[_0x26c7af(0x2cf)][_0x26c7af(0x2b0)]());}async[_0x1f8522(0x303)](_0x1e98c8,_0xa9d955,_0x3ca342){const _0x6b00bf=_0x1f8522;this['_unitInfo$'][_0x6b00bf(0xc4)]({'unitId':_0x1e98c8,'type':_0xa9d955});let _0x1e9c6b=null;switch(_0xa9d955){case _0x292cef['UNIVER_SHEET']:_0x1e9c6b=await this[_0x6b00bf(0x186)][_0x6b00bf(0x24d)](_0x1e98c8,_0x3ca342);break;case _0x292cef[_0x6b00bf(0x23a)]:_0x1e9c6b=await this[_0x6b00bf(0x186)][_0x6b00bf(0x209)](_0x1e98c8,_0x3ca342);break;default:this[_0x6b00bf(0x2b2)]['error']('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x1e9c6b;}async[_0x1f8522(0x185)](_0x1ff517,_0x41bfd0,_0x396930){const _0x54656d=_0x1f8522;var _0x11092e;this['_unitInfo$'][_0x54656d(0xc4)]({'unitId':_0x1ff517,'type':_0x41bfd0,'subUnitId':_0x396930});let _0x52def5=0x0,_0x5ab00b=await((_0x11092e=this['_localCacheService'])==null?void 0x0:_0x11092e['loadOfflineData'](_0x1ff517));return _0x5ab00b&&(_0x5ab00b[_0x54656d(0x2c7)]||_0x5ab00b[_0x54656d(0x236)][_0x54656d(0x10a)]!==0x0)&&(_0x52def5=_0x5ab00b['rev']),_0x52def5===0x0&&this['_logService'][_0x54656d(0x305)](_0x54656d(0x12d),_0x54656d(0x133)),this['loadUnitOfRevision'](_0x1ff517,_0x41bfd0,_0x52def5);}};vn=z([R(0x0,_0x1443cf),R(0x1,_0x4f07a4(_0x5662c6)),R(0x2,_0x1cfc4d(V))],vn);let yn=class{constructor(_0x21de09,_0x33e44f,_0x5a96f0){const _0x18ed11=_0x1f8522;this['_httpService']=_0x21de09,this[_0x18ed11(0xba)]=_0x33e44f,this[_0x18ed11(0xf7)]=_0x5a96f0,I(this,_0x18ed11(0x204),0x0),I(this,'_change$',new _0x147a88()),I(this,_0x18ed11(0x1e9),this['_change$']),I(this,'_imageSourceCache',new Map());}[_0x1f8522(0xd7)](_0x56a78b){const _0x110e24=_0x1f8522;this['_waitCount']=_0x56a78b,this[_0x110e24(0x28e)][_0x110e24(0xc4)](_0x56a78b);}[_0x1f8522(0x135)](_0x42fa06,_0x304ecf){const _0x7a3fbe=_0x1f8522;if(_0x304ecf===_0x570c35[_0x7a3fbe(0x136)]){let _0x460cfb=new Image();return _0x460cfb[_0x7a3fbe(0x2da)]=_0x42fa06,_0x460cfb;}return this[_0x7a3fbe(0x200)][_0x7a3fbe(0x315)](_0x42fa06);}['addImageSourceCache'](_0x467878,_0x18bf02,_0x18c29e){const _0x504aaa=_0x1f8522;_0x18bf02===_0x570c35[_0x504aaa(0x136)]||_0x18c29e==null||this[_0x504aaa(0x200)][_0x504aaa(0x27d)](_0x467878,_0x18c29e);}async[_0x1f8522(0x183)](_0x8bb9f7){const _0x55ec46=_0x1f8522;try{let _0x30de94=this[_0x55ec46(0x1c5)](this[_0x55ec46(0x162)](),''+_0x8bb9f7),_0x53a5de=(await this[_0x55ec46(0x152)][_0x55ec46(0x315)](_0x30de94))[_0x55ec46(0x123)];if(_0x53a5de[_0x55ec46(0xd2)]&&_0x53a5de[_0x55ec46(0xd2)][_0x55ec46(0x106)]===_0x5637ab['OK']){let _0x21214a=_0x4fcdae(_0x53a5de[_0x55ec46(0x118)],this[_0x55ec46(0x2f7)]());return Promise[_0x55ec46(0x225)](_0x21214a);}return Promise[_0x55ec46(0xe5)](_0x53a5de[_0x55ec46(0xd2)]);}catch(_0x43f234){return Promise[_0x55ec46(0xe5)](_0x43f234);}}async[_0x1f8522(0x257)](_0x5c9705){const _0x5207f0=_0x1f8522;let _0x2e3825='';if(!_0xf4198a[_0x5207f0(0x1ca)](_0x5c9705[_0x5207f0(0x126)]))return this[_0x5207f0(0x2a5)](),Promise[_0x5207f0(0xe5)](Error(_0x528a72[_0x5207f0(0x2fa)]));if(_0x5c9705[_0x5207f0(0x234)]>_0x487da1())return this[_0x5207f0(0x2a5)](),Promise['reject'](Error(_0x528a72[_0x5207f0(0x299)]));try{let _0xde2874=new FormData();_0xde2874[_0x5207f0(0xdb)](_0x5207f0(0x2eb),_0x5c9705);let _0x5e2036=this[_0x5207f0(0xf7)]['getFocusedUnit'](),_0x10e79d=_0x5e2036==null?void 0x0:_0x5e2036[_0x5207f0(0xdc)]();if(!_0x10e79d)throw Error(_0x5207f0(0xc8));let _0x18964f=this['_getUploadFileURL']()+'?size='+_0x5c9705['size'][_0x5207f0(0x30e)]()+_0x5207f0(0x224)+_0x25f37b[_0x5207f0(0x242)]+'&assign='+encodeURIComponent(_0x10e79d),_0x2333cf={'body':_0xde2874},_0x39b3f9=(await this['_httpService'][_0x5207f0(0xc6)](_0x18964f,_0x2333cf))[_0x5207f0(0x123)];if(typeof _0x39b3f9[_0x5207f0(0x163)]!=_0x5207f0(0x2e8))return this[_0x5207f0(0x2a5)](),Promise[_0x5207f0(0xe5)](Error(_0x528a72[_0x5207f0(0xf4)]));_0x2e3825=_0x39b3f9[_0x5207f0(0x163)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x528a72[_0x5207f0(0xf4)]));}return new Promise((_0x280c52,_0x24be66)=>{const _0x52612f=_0x5207f0;let _0x980007=new FileReader();_0x980007[_0x52612f(0x17f)](_0x5c9705),_0x980007[_0x52612f(0x20a)]=_0x47117b=>{const _0x21411d=_0x52612f;var _0x173d1c;let _0x46f305=(_0x173d1c=_0x47117b[_0x21411d(0x261)])==null?void 0x0:_0x173d1c[_0x21411d(0xda)];if(_0x46f305==null){this[_0x21411d(0x2a5)](),_0x24be66(Error(_0x528a72['ERROR_IMAGE']));return;}_0x280c52({'imageId':_0x4fa431(0x6),'imageSourceType':_0x570c35[_0x21411d(0x26f)],'source':_0x2e3825,'base64Cache':_0x46f305,'status':_0x528a72[_0x21411d(0x176)]}),this['_decreaseWaiting']();};});}[_0x1f8522(0xc2)](){const _0x53b0b0=_0x1f8522;var _0x1e8b26;let _0x4896e1=this[_0x53b0b0(0xba)][_0x53b0b0(0xe2)](U);return(_0x1e8b26=_0x4896e1==null?void 0x0:_0x4896e1[_0x53b0b0(0x1d6)])==null?_0x53b0b0(0x1d0):_0x1e8b26;}[_0x1f8522(0x162)](){const _0x3bf7bb=_0x1f8522;var _0xe1be61;let _0x4465e7=this['_configService']['getConfig'](U);return(_0xe1be61=_0x4465e7==null?void 0x0:_0x4465e7['signUrlServerUrl'])==null?_0x3bf7bb(0x2cd):_0xe1be61;}['_getDownloadEndpointURL'](){const _0x55cf3f=_0x1f8522;var _0x1d06ed;let _0x4ade9a=this[_0x55cf3f(0xba)][_0x55cf3f(0xe2)](U);return(_0x1d06ed=_0x4ade9a==null?void 0x0:_0x4ade9a[_0x55cf3f(0x156)])==null?location['origin']:_0x1d06ed;}[_0x1f8522(0x1c5)](_0x2e792a,_0x29df86){const _0x40a313=_0x1f8522;return _0x2e792a[_0x40a313(0x223)]('{fileID}',_0x29df86);}['_decreaseWaiting'](){const _0x3f415d=_0x1f8522;--this[_0x3f415d(0x204)],this['_change$']['next'](this[_0x3f415d(0x204)]);}};yn=z([R(0x0,_0x4f07a4(_0x2e99a4)),R(0x1,_0x3ba9f8),R(0x2,_0x4f07a4(_0x3a738f))],yn);let bn=class{constructor(_0x199a5e,_0x17dbaa){const _0x5b24f0=_0x1f8522;this[_0x5b24f0(0xba)]=_0x199a5e,this[_0x5b24f0(0x117)]=_0x17dbaa;}[_0x1f8522(0x16c)](){const _0x1b5921=_0x1f8522;var _0x40b879;let _0x35769a=this[_0x1b5921(0xba)][_0x1b5921(0xe2)](U);return(_0x40b879=_0x35769a==null?void 0x0:_0x35769a['authzUrl'])==null?'/universer-api/authz':_0x40b879;}async[_0x1f8522(0x103)](_0x2163dd){const _0x2bb701=_0x1f8522;let _0x122938=this[_0x2bb701(0x16c)]()+_0x2bb701(0x298);return{'list':[{'title':'People','mentions':(await this[_0x2bb701(0x117)][_0x2bb701(0x315)](_0x122938,{'params':{'objectID':_0x2163dd[_0x2bb701(0x2c2)],'unitID':_0x2163dd[_0x2bb701(0x2c2)]}}))[_0x2bb701(0x123)][_0x2bb701(0x2e3)][_0x2bb701(0x1f1)](_0xdda401=>({'objectId':_0xdda401['id'],'name':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x215)],'metadata':{'icon':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x174)]},'label':_0xdda401[_0x2bb701(0x2e1)][_0x2bb701(0x215)],'objectType':_0x39f40b[_0x2bb701(0x2c0)]})),'metadata':{},'type':_0x39f40b[_0x2bb701(0x2c0)]}]};}};bn=z([R(0x0,_0x4f07a4(_0x3ba9f8)),R(0x1,_0x4f07a4(_0x2e99a4))],bn);let xn=class extends _0x3498fe{constructor(_0x29731a,_0x55c132,_0x32925f,_0x58cd53,_0x1f4500){const _0xc87407=_0x1f8522;super(),this[_0xc87407(0xe9)]=_0x29731a,this[_0xc87407(0xf7)]=_0x55c132,this[_0xc87407(0xfe)]=_0x32925f,this[_0xc87407(0x17b)]=_0x58cd53,this[_0xc87407(0x2b3)]=_0x1f4500,this[_0xc87407(0x169)](),this['_initCloseConn']();}[_0x1f8522(0x1e0)](){const _0x3ee57c=_0x1f8522;let _0x1be3d8=async _0x42d036=>{const _0x38c898=_0x249d;(await this['_collaborationSessionService']['requireSession'](_0x42d036))[_0x38c898(0xfa)][_0x38c898(0x27e)](_0x18abe6(_0x5c2825=>_0x5c2825[_0x38c898(0x281)]===_0x27e67f[_0x38c898(0xf5)]),_0x328e45(this[_0x38c898(0x24c)]))[_0x38c898(0xfb)](_0x1680a4=>{const _0x1dcf5c=_0x38c898;let {reason:_0x4dc419}=_0x1680a4['data'];this['_collaborationUIEventService']['emitEvent']({'id':_0x1dcf5c(0x26a),'data':_0x4dc419}),this['_permissionService'][_0x1dcf5c(0x134)](new _0x14cd38(_0x42d036)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x42d036);});};_0x340907(this[_0x3ee57c(0xf7)][_0x3ee57c(0x28f)](_0x292cef['UNIVER_SHEET']),this[_0x3ee57c(0xf7)]['getTypeOfUnitAdded$'](_0x292cef[_0x3ee57c(0x23a)]))['pipe'](_0x279c8c(_0x5a2100=>_0x5a2100['unit'][_0x3ee57c(0xdc)]()),_0x18abe6(_0x24105a=>!_0x2a8699(_0x24105a)),_0x328e45(this[_0x3ee57c(0x24c)]))[_0x3ee57c(0xfb)](_0x5f217b=>{_0x1be3d8(_0x5f217b);});}[_0x1f8522(0x169)](){const _0x2f2fda=_0x1f8522;let _0x3ce0e9=async _0x4533dc=>{const _0x287c89=_0x249d;let _0x49bf61=await this[_0x287c89(0x17b)][_0x287c89(0x277)](_0x4533dc),_0x1e8469=this[_0x287c89(0xe9)][_0x287c89(0x315)](_0x5e8e29);_0x49bf61[_0x287c89(0xfa)]['pipe'](_0x18abe6(_0x2a674b=>_0x2a674b[_0x287c89(0x281)]===_0x27e67f[_0x287c89(0x139)]),_0x328e45(this['dispose$']))[_0x287c89(0xfb)](_0x3c6cde=>{const _0x257e67=_0x287c89;let {objectId:_0x1700cf}=_0x3c6cde['data'];_0x1700cf===_0x4533dc?_0x1e8469[_0x257e67(0x232)](_0x4533dc):_0x1e8469[_0x257e67(0xcc)](_0x4533dc,_0x1700cf);});};_0x340907(this[_0x2f2fda(0xf7)][_0x2f2fda(0x28f)](_0x292cef[_0x2f2fda(0x107)]))[_0x2f2fda(0x27e)](_0x279c8c(_0x212031=>_0x212031[_0x2f2fda(0x189)]['getUnitId']()),_0x18abe6(_0x3475fc=>!_0x2a8699(_0x3475fc)),_0x328e45(this[_0x2f2fda(0x24c)]))[_0x2f2fda(0xfb)](_0xb97957=>{_0x3ce0e9(_0xb97957);});}};xn=z([R(0x0,_0x4f07a4(_0x44d080)),R(0x1,_0x3a738f),R(0x2,_0x439c61),R(0x3,_0x4f07a4(Q)),R(0x4,_0x4f07a4(L))],xn);let Sn=class{constructor(_0x237f23,_0x3e3f10){const _0x41a427=_0x1f8522;this[_0x41a427(0xba)]=_0x237f23,this[_0x41a427(0x152)]=_0x3e3f10;}async['getUnitOnRev'](_0xb02917,_0x1e78a2){const _0x422885=_0x1f8522;var _0x4f9e85;let {unitID:_0x2b0e84,type:_0x181e4a,revision:_0x599d47=0x0}=_0x1e78a2,_0x4fde90=this['getSnapshotAPIPath']()+'/'+_0x181e4a+_0x422885(0xee)+_0x2b0e84+'/rev/'+_0x599d47,_0x38a581=(await this[_0x422885(0x152)]['get'](_0x4fde90))[_0x422885(0x123)],_0x5f4cc8=(_0x4f9e85=_0x38a581[_0x422885(0x1e7)])==null?void 0x0:_0x4f9e85[_0x422885(0x19b)];if(_0x5f4cc8){let _0x223a1a=_0x5f4cc8==null?void 0x0:_0x5f4cc8['originalMeta'];_0x5f4cc8[_0x422885(0x197)]=_0x2c7657[_0x422885(0xbb)](_0x376bcd(_0x223a1a)),Object[_0x422885(0x22d)](_0x5f4cc8[_0x422885(0x1d5)])[_0x422885(0x1b0)](([,_0x1bdac3])=>{const _0x597675=_0x422885;let _0x3e5d5d=_0x1bdac3[_0x597675(0x197)];_0x1bdac3[_0x597675(0x197)]=_0x2c7657[_0x597675(0xbb)](_0x376bcd(_0x3e5d5d));});}return _0x38a581;}async[_0x1f8522(0x308)](_0x492e0f,_0x1d58c1){const _0x38306b=_0x1f8522;let {unitID:_0x1f60b3,type:_0x11d5b1,blockID:_0x16885d}=_0x1d58c1,_0x3792d3=this[_0x38306b(0x19d)]()+'/'+_0x11d5b1+_0x38306b(0xee)+_0x1f60b3+_0x38306b(0x269)+_0x16885d;return(await this[_0x38306b(0x152)][_0x38306b(0x315)](_0x3792d3))[_0x38306b(0x123)];}async[_0x1f8522(0x29a)](_0x160c21,_0x567646){const _0x52b72a=_0x1f8522;let {unitID:_0x4c0f89,type:_0x571b22,blockID:_0x364564}=_0x567646,_0x5e35cc=this['_getAPIPrefix']()+'/block/'+_0x571b22+_0x52b72a(0xee)+_0x4c0f89+_0x52b72a(0x269)+_0x364564;return(await this[_0x52b72a(0x152)][_0x52b72a(0x315)](_0x5e35cc))[_0x52b72a(0x123)];}async['fetchMissingChangesets'](_0x3393cb,_0x3a74d7){const _0x139bad=_0x1f8522;let {unitID:_0x502aa3,type:_0x4087c4,from:_0x143fb5,to:_0x45ebad}=_0x3a74d7,_0x5b3c77=this[_0x139bad(0x19d)]()+'/'+_0x4087c4+_0x139bad(0xee)+_0x502aa3+'/fetchmissing?from='+_0x143fb5+_0x139bad(0x20d)+_0x45ebad;return(await this[_0x139bad(0x152)]['get'](_0x5b3c77))['body'];}[_0x1f8522(0x2ba)](){const _0x3789b4=_0x1f8522;var _0x4df878;return(_0x4df878=this['_configService'][_0x3789b4(0xe2)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x4df878;}[_0x1f8522(0x19d)](){const _0xd566e0=_0x1f8522;var _0x17892f;let _0x1af13a=this[_0xd566e0(0xba)][_0xd566e0(0xe2)](U);return(_0x17892f=_0x1af13a==null?void 0x0:_0x1af13a['snapshotServerUrl'])==null?_0xd566e0(0x16b):_0x17892f;}async[_0x1f8522(0x1ad)](_0x36af11,_0x1cfc09){const _0x169fb1=_0x1f8522;let _0x4a366c=_0x169fb1(0xcd)+_0x1cfc09[_0x169fb1(0x126)]+_0x169fb1(0xee)+_0x1cfc09[_0x169fb1(0x108)]+_0x169fb1(0x1c4);return(await this[_0x169fb1(0x152)][_0x169fb1(0x315)](_0x4a366c,{'params':{'resourceId':JSON['stringify'](_0x1cfc09[_0x169fb1(0xfc)])}}))[_0x169fb1(0x123)];}[_0x1f8522(0x27f)](){const _0x5562e7=_0x1f8522;throw Error(_0x5562e7(0x23c));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1f8522(0x2ad)](){const _0x54193a=_0x1f8522;throw Error(_0x54193a(0x23c));}['saveChangeset'](){const _0x21fcca=_0x1f8522;throw Error(_0x21fcca(0x23c));}[_0x1f8522(0x18e)](){const _0x1e3e9f=_0x1f8522;throw Error(_0x1e3e9f(0x23c));}[_0x1f8522(0x237)](){const _0x2b2cbb=_0x1f8522;throw Error(_0x2b2cbb(0x23c));}};function _0x249d(_0x381240,_0x587947){_0x381240=_0x381240-0xb9;const _0x21a64c=_0x21a6();let _0x249ddb=_0x21a64c[_0x381240];return _0x249ddb;}Sn=z([R(0x0,_0x3ba9f8),R(0x1,_0x4f07a4(_0x2e99a4))],Sn);let Cn=class extends _0x38014a{constructor(_0x179c32,_0xa8a5a1,_0x4d6965,_0x5d95b7,_0x229f2b){const _0x4c749b=_0x1f8522;super(_0x179c32,_0xa8a5a1,_0x4d6965),this[_0x4c749b(0xf0)]=_0x5d95b7,this[_0x4c749b(0x2b2)]=_0x229f2b;}[_0x1f8522(0x127)](_0x3a32a5,_0x2cb0e4){const _0x5c9f38=_0x1f8522;let _0x542eaf=this[_0x5c9f38(0x203)](_0x3a32a5);if(_0x542eaf)try{let _0x561c20=this['_transformStack'](_0x542eaf,_0x2cb0e4);this[_0x5c9f38(0x122)](_0x3a32a5,_0x561c20);}catch(_0x398c23){this[_0x5c9f38(0x2b2)]['error']('[CollaborationUndoRedoService]',_0x398c23),this['_clearUndo'](_0x3a32a5);}let _0x35c8fb=this[_0x5c9f38(0x273)](_0x3a32a5);if(_0x35c8fb)try{let _0x32e2d3=this['_transformStack'](_0x35c8fb,_0x2cb0e4);this[_0x5c9f38(0x2b5)](_0x3a32a5,_0x32e2d3);}catch(_0x3aaee6){this['_logService'][_0x5c9f38(0xd2)](_0x3aaee6),this['_clearRedo'](_0x3a32a5);}}[_0x1f8522(0x1b8)](_0x856dd5){const _0x5e1ead=_0x1f8522;let _0x4f9e73=this[_0x5e1ead(0x203)](_0x856dd5);_0x4f9e73&&(_0x4f9e73['length']=0x0,this[_0x5e1ead(0x1a8)]());}[_0x1f8522(0x1d1)](_0xc75be5){const _0x147a6b=_0x1f8522;let _0x35d234=this[_0x147a6b(0x273)](_0xc75be5);_0x35d234&&(_0x35d234[_0x147a6b(0x10a)]=0x0,this[_0x147a6b(0x1a8)]());}[_0x1f8522(0x122)](_0xcf2cb2,_0x4ac7f5){const _0x4719a3=_0x1f8522;this[_0x4719a3(0xff)][_0x4719a3(0x27d)](_0xcf2cb2,_0x4ac7f5),this[_0x4719a3(0x1a8)]();}[_0x1f8522(0x2b5)](_0x128ccc,_0xc758d5){const _0xa04913=_0x1f8522;this[_0xa04913(0x2fb)]['set'](_0x128ccc,_0xc758d5),this[_0xa04913(0x1a8)]();}[_0x1f8522(0xc3)](_0x1ab1ad,_0x1771db){const _0x252927=_0x1f8522;let _0x3cd6bf=[],_0xa1f522=_0x1771db,_0xc6dbac=_0x1771db;for(let _0x3e638d=_0x1ab1ad[_0x252927(0x10a)]-0x1;_0x3e638d>=0x0;_0x3e638d--){let {unitID:_0x1dd778,undoMutations:_0x2e8d34,redoMutations:_0x50476e}=_0x1ab1ad[_0x3e638d],_0x464723=this[_0x252927(0xf0)][_0x252927(0x280)](_0xa1f522,_0x2e8d34),_0x53a1a2=this['_transformService'][_0x252927(0x280)](_0xc6dbac,_0x50476e);if(_0x17dd41(_0x464723)||_0x17dd41(_0x53a1a2)){this['_logService'][_0x252927(0xd2)](_0x252927(0x198),'transformStack\x20failed!',_0x464723,_0x53a1a2);break;}_0xa1f522=_0x464723[_0x252927(0x2bb)],_0xc6dbac=_0x53a1a2[_0x252927(0x2bb)],_0x3cd6bf['push']({'unitID':_0x1dd778,'undoMutations':_0x464723['m2Prime'],'redoMutations':_0x53a1a2[_0x252927(0x2c1)]});}return _0x3cd6bf[_0x252927(0x105)]();}};Cn=z([R(0x0,_0x3a738f),R(0x1,_0x3a76f7),R(0x2,_0x3ed1aa),R(0x3,_0x4f7ff9),R(0x4,_0x1443cf)],Cn);let $=class extends _0x2c42b9{constructor(_0x4f9dad={},_0x47bf66,_0x318c05,_0x533263){const _0x1de3b0=_0x1f8522;super(),this[_0x1de3b0(0xcb)]=_0x4f9dad,this['_logService']=_0x47bf66,this[_0x1de3b0(0xe9)]=_0x318c05,this[_0x1de3b0(0xba)]=_0x533263;let {..._0x5ec13f}=_0x1b8645({},Nt,_0x4f9dad);if(!_0x5ec13f[_0x1de3b0(0xd3)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x1de3b0(0xcb)]=_0x5ec13f,this[_0x1de3b0(0xba)]['setConfig'](U,_0x5ec13f);}['onStarting'](){const _0x4b3d66=_0x1f8522;this[_0x4b3d66(0x28a)](),this[_0x4b3d66(0x2f6)]();}['_registerDependencies'](){const _0x34d18f=_0x1f8522;var _0x1ae3fd,_0x1b6ccf;this[_0x34d18f(0xe9)][_0x34d18f(0x309)](_0x3b54de)&&this[_0x34d18f(0x2b2)][_0x34d18f(0xd2)](_0x34d18f(0x11d),_0x34d18f(0x271));let _0x398b12=_0x415d5a([[_0x3b54de,{'useClass':Cn}],[Q],[B],[H],[dn],[_n],[wt],[xn],[L],[vn],[rn,{'useClass':this[_0x34d18f(0xcb)][_0x34d18f(0xd3)]}],[_0x72942,{'useClass':Sn}],[_0xb4867c,{'useClass':fn}],[_0x33c502,{'useClass':yn}],[_0x5dc0a9,{'useClass':bn}],[sn],[un]],(_0x1ae3fd=this[_0x34d18f(0xcb)])==null?void 0x0:_0x1ae3fd[_0x34d18f(0x2e5)]);if(!((_0x1b6ccf=this[_0x34d18f(0xcb)])!=null&&_0x1b6ccf[_0x34d18f(0x1f4)])){let _0x1a3b16=_0x398b12['findIndex'](([_0x3aa29b])=>_0x3aa29b===jt);_0x1a3b16!==-0x1&&_0x398b12['splice'](_0x1a3b16,0x1);}_0x2046a5(this[_0x34d18f(0xe9)],_0x398b12);}[_0x1f8522(0x2f6)](){const _0x73e0f6=_0x1f8522;var _0x4b66e9,_0x42e7fc;if(this[_0x73e0f6(0xe9)][_0x73e0f6(0x315)](_0x2e99a4)[_0x73e0f6(0x240)]({'priority':0x14,'interceptor':_0x258eba({'maxParallel':0x6})}),!((_0x4b66e9=this[_0x73e0f6(0xcb)])!=null&&_0x4b66e9['enableOfflineEditing'])){var _0x3d446b;(_0x3d446b=this[_0x73e0f6(0xe9)][_0x73e0f6(0x315)](V,_0x2afa53['OPTIONAL']))==null||_0x3d446b[_0x73e0f6(0x1e3)]();}(_0x42e7fc=this[_0x73e0f6(0xcb)])!=null&&_0x42e7fc[_0x73e0f6(0x317)]&&_0x156eb2(this['_injector'],[[dn]]),_0x156eb2(this[_0x73e0f6(0xe9)],[[_n],[sn],[xn]]);}};I($,'pluginName',_0x1f8522(0x179)),I($,_0x1f8522(0x1fc),cn),I($,_0x1f8522(0x190),ln),$=z([_0x576a62(_0xc5155e,_0x2fd190,_0x4df7af),R(0x1,_0x1443cf),R(0x2,_0x4f07a4(_0x44d080)),R(0x3,_0x3ba9f8)],$);export{fn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,sn as CollaborationController,Zt as CollaborationEntity,yn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,on as CollaborationSocketService,qt as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,Cn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,vn as DataLoaderService,Qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,rn as ICollaborationSocketService,V as ILocalCacheService,en as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,bn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,$t as SheetCollaborationEntity,H as SheetTransformSelectionsService,Sn as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,tn as deserializeToCombResponse,kt as getLocalCacheKey,nn as serializeCombRequest};
|