@univerjs-pro/collaboration-client 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- 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/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- 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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- 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/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- 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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- 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/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- 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-TW.js +1 -1
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +7 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- 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/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- 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-TW.js +1 -1
- package/package.json +11 -11
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3953b6=_0x226b;(function(_0x5a6853,_0x46c645){const _0x24d92a=_0x226b,_0x286ab7=_0x5a6853();while(!![]){try{const _0x17eb53=parseInt(_0x24d92a(0x32d))/0x1+parseInt(_0x24d92a(0x259))/0x2+-parseInt(_0x24d92a(0x2b8))/0x3*(parseInt(_0x24d92a(0x1cc))/0x4)+parseInt(_0x24d92a(0x1d6))/0x5+parseInt(_0x24d92a(0x1a2))/0x6*(-parseInt(_0x24d92a(0x26e))/0x7)+parseInt(_0x24d92a(0x29f))/0x8*(parseInt(_0x24d92a(0x224))/0x9)+-parseInt(_0x24d92a(0x3ff))/0xa*(parseInt(_0x24d92a(0x39d))/0xb);if(_0x17eb53===_0x46c645)break;else _0x286ab7['push'](_0x286ab7['shift']());}catch(_0x5b31ac){_0x286ab7['push'](_0x286ab7['shift']());}}}(_0x4dd4,0x34e32));import{CollaborationEvent as _0x1e3d55,CompressMutationService as _0x3ff10d,EmptyMutationInfo as _0x3b4658,ISnapshotServerService as _0x27d66c,ITransformService as _0x192549,RevisionService as _0x2d2b7f,SnapshotService as _0x481d36,UniverCollaborationPlugin as _0x2b0b47,b64DecodeUnicode as _0x444e93,isTransformChangesetsSuccess as _0x2c763c,isTransformMutationsWithChangesetFailure as _0x58146a,isTransformMutationsWithChangesetSuccess as _0x2cd97b,mapDocumentTypeToUniverType as _0x3d1dc0,parseChangesetToProtocol as _0x191c0f,parseProtocolChangeset as _0x3b5f04,textEncoder as _0x37caaf,uuidv4 as _0xdfeb56}from'@univerjs-pro/collaboration';import{CommandType as _0x2f2ee7,DependentOn as _0x158950,Disposable as _0x1563fe,DisposableCollection as _0x1c3c94,IAuthzIoService as _0x233070,ICommandService as _0x39f16e,IConfigService as _0x58e790,IContextService as _0xe147f8,ILogService as _0x20e24f,IMentionIOService as _0x9f217f,IPermissionService as _0x15e9b0,IUndoRedoService as _0x4c428e,IUniverInstanceService as _0x2912b3,Inject as _0x103c1d,Injector as _0x197e5f,JSONX as _0x41c927,LocalUndoRedoService as _0x5c7d91,LocaleService as _0x58c06a,MentionType as _0x375335,Optional as _0x5fafcb,Plugin as _0x2adf51,Quantity as _0x1fca7b,Rectangle as _0x6a0446,RxDisposable as _0x498085,Tools as _0x5e3b44,UniverInstanceType as _0x14f3b5,UserManagerService as _0x3fbf3f,Workbook as _0x4ec16c,createIdentifier as _0x1f70b2,generateRandomId as _0xbcfa4e,isInternalEditorID as _0x38c007,merge as _0x311220,mergeOverrideWithDependencies as _0xbbf295,registerDependencies as _0xe9a098,resolveWithBasePath as _0x487845,sequenceExecute as _0x373e60,toDisposable as _0x5f56a7,touchDependencies as _0x5cbf89}from'@univerjs/core';import{RichTextEditingMutation as _0x437197}from'@univerjs/docs';import{InsertSheetMutation as _0x24fd57,SetSelectionsOperation as _0x70e3eb,SheetPermissionInitController as _0x91328d,SheetsSelectionsService as _0x4bde1c,WorkbookEditablePermission as _0x4c2a11}from'@univerjs/sheets';import{BehaviorSubject as _0x5dffa6,ReplaySubject as _0x459515,Subject as _0x2c4c98,concatMap as _0x340fe3,firstValueFrom as _0x358603,map as _0x2c0169,merge as _0x1a7843,of as _0x40fdb9,shareReplay as _0x9f53b3,take as _0x2be44c,takeUntil as _0x189905}from'rxjs';import{CmdRspCode as _0x1cc43b,CombCmd as _0x536fe6,ErrorCode as _0x3f70ef,FileSource as _0x453cfc,UniverType as _0x9039db}from'@univerjs/protocol';import{ITelemetryService as _0x28074b}from'@univerjs/telemetry';import{delay as _0x1601fb,filter as _0x385b06,map as _0x3eec09,take as _0x32bb1e,takeUntil as _0x55004c}from'rxjs/operators';import{HTTPRequest as _0x438264,HTTPService as _0x2f837f,ISocketService as _0x358e9b,MergeInterceptorFactory as _0x788bcc,ThresholdInterceptorFactory as _0x598d6b,UniverNetworkPlugin as _0x18e9dd}from'@univerjs/network';import{UniverLicensePlugin as _0x429a06,getGlobalObject as _0x4c6967}from'@univerjs-pro/license';import{IImageIoService as _0x2ce01d,ImageSourceType as _0x2b64ca,ImageUploadStatusType as _0x31ec52}from'@univerjs/drawing';import _0x5b20f0 from'crypto-js/aes';import _0x52027f from'crypto-js/enc-base64';import _0x40c4d1 from'crypto-js/enc-utf8';import _0xd53344 from'crypto-js/lib-typedarrays';import _0x85bc9a from'crypto-js/pad-nopadding';const ft=_0x3953b6(0x279),pt='/universer-api/user/session-ticket',mt=_0x3953b6(0x364),ht='HEARTBEAT_TIMEOUT',gt=0x4e20,_t=_0x3953b6(0x2c6),vt=_0x3953b6(0x29c),yt=0x3e8,bt=_0x3953b6(0x375),xt=_0x3953b6(0x2e7);function St(_0x4485ca){return JSON['stringify'](_0x4485ca)['length'];}function Ct(_0xa710cd){'@babel/helpers - typeof';const _0x495033=_0x3953b6;return Ct=typeof Symbol=='function'&&typeof Symbol[_0x495033(0x353)]==_0x495033(0x3ba)?function(_0x2abf44){return typeof _0x2abf44;}:function(_0x4c5e27){const _0x5ec7f5=_0x495033;return _0x4c5e27&&typeof Symbol=='function'&&_0x4c5e27['constructor']===Symbol&&_0x4c5e27!==Symbol[_0x5ec7f5(0x1af)]?_0x5ec7f5(0x3ba):typeof _0x4c5e27;},Ct(_0xa710cd);}function wt(_0x373a5e,_0x1845bb){const _0x32f133=_0x3953b6;if(Ct(_0x373a5e)!=_0x32f133(0x334)||!_0x373a5e)return _0x373a5e;var _0x252a89=_0x373a5e[Symbol[_0x32f133(0x2c4)]];if(_0x252a89!==void 0x0){var _0x306f14=_0x252a89[_0x32f133(0x273)](_0x373a5e,_0x1845bb||_0x32f133(0x3a6));if(Ct(_0x306f14)!='object')return _0x306f14;throw TypeError(_0x32f133(0x361));}return(_0x1845bb==='string'?String:Number)(_0x373a5e);}function Tt(_0x33612e){const _0x475fc7=_0x3953b6;var _0x3761f9=wt(_0x33612e,_0x475fc7(0x229));return Ct(_0x3761f9)==_0x475fc7(0x3ba)?_0x3761f9:_0x3761f9+'';}function N(_0x2e9f8b,_0x3ed250,_0x3b8ce7){const _0x29438b=_0x3953b6;return(_0x3ed250=Tt(_0x3ed250))in _0x2e9f8b?Object[_0x29438b(0x25d)](_0x2e9f8b,_0x3ed250,{'value':_0x3b8ce7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e9f8b[_0x3ed250]=_0x3b8ce7,_0x2e9f8b;}let P=function(_0x2fb3ef){const _0x2b0d4e=_0x3953b6;return _0x2fb3ef[_0x2b0d4e(0x3c6)]='OTHER_CLIENT_EDITING',_0x2fb3ef['PERMISSION_DENIED']=_0x2b0d4e(0x391),_0x2fb3ef[_0x2b0d4e(0x3d6)]=_0x2b0d4e(0x3d6),_0x2fb3ef[_0x2b0d4e(0x350)]=_0x2b0d4e(0x350),_0x2fb3ef[_0x2b0d4e(0x1a3)]='JOIN_ROOM_FAILED',_0x2fb3ef[_0x2b0d4e(0x300)]=_0x2b0d4e(0x300),_0x2fb3ef['SOCKET_FAILED']=_0x2b0d4e(0x2fb),_0x2fb3ef['SUBMIT_CHANGESET_TIMEOUT']=_0x2b0d4e(0x21c),_0x2fb3ef;}({});var F=class{constructor(){const _0x2b1654=_0x3953b6;N(this,_0x2b1654(0x32b),new _0x2c4c98()),N(this,_0x2b1654(0x1ed),this['_event$'][_0x2b1654(0x28e)]());}[_0x3953b6(0x25b)](_0x4ff51a){const _0x1f2fb7=_0x3953b6;this[_0x1f2fb7(0x32b)][_0x1f2fb7(0x1aa)](_0x4ff51a);}},Et=class{constructor(){const _0x11c7ef=_0x3953b6;N(this,_0x11c7ef(0x358),new _0x2c4c98()),N(this,_0x11c7ef(0x255),this['_commentUpdate$'][_0x11c7ef(0x28e)]());}[_0x3953b6(0x190)](_0x1dca0e){const _0x2a076b=_0x3953b6;this['_commentUpdate$'][_0x2a076b(0x1aa)](_0x1dca0e);}};function I(_0x176571,_0x3173fc){return function(_0x18eeef,_0x3eb0d8){_0x3173fc(_0x18eeef,_0x3eb0d8,_0x176571);};}function L(_0x211b5a,_0x4f1905,_0x5b495c,_0x4b9ebf){const _0x96509d=_0x3953b6;var _0x54df6f=arguments[_0x96509d(0x283)],_0x4865dd=_0x54df6f<0x3?_0x4f1905:_0x4b9ebf===null?_0x4b9ebf=Object[_0x96509d(0x3d2)](_0x4f1905,_0x5b495c):_0x4b9ebf,_0x165abd;if(typeof Reflect==_0x96509d(0x334)&&typeof Reflect[_0x96509d(0x307)]==_0x96509d(0x1d7))_0x4865dd=Reflect[_0x96509d(0x307)](_0x211b5a,_0x4f1905,_0x5b495c,_0x4b9ebf);else{for(var _0x2e3384=_0x211b5a['length']-0x1;_0x2e3384>=0x0;_0x2e3384--)(_0x165abd=_0x211b5a[_0x2e3384])&&(_0x4865dd=(_0x54df6f<0x3?_0x165abd(_0x4865dd):_0x54df6f>0x3?_0x165abd(_0x4f1905,_0x5b495c,_0x4865dd):_0x165abd(_0x4f1905,_0x5b495c))||_0x4865dd);}return _0x54df6f>0x3&&_0x4865dd&&Object['defineProperty'](_0x4f1905,_0x5b495c,_0x4865dd),_0x4865dd;}let R=class extends _0x1563fe{constructor(_0x5583ce,_0x173e40){const _0x633140=_0x3953b6;super(),this[_0x633140(0x27b)]=_0x5583ce,this['_userManagerService']=_0x173e40,N(this,_0x633140(0x3a7),new Map()),N(this,_0x633140(0x201),new _0x2c4c98()),this['disposeWithMe'](_0x1a7843(this['_univerInstanceService'][_0x633140(0x1b8)](_0x14f3b5[_0x633140(0x244)])[_0x633140(0x3e2)](_0x3eec09(_0x51c651=>_0x51c651[_0x633140(0x276)]())),this[_0x633140(0x27b)][_0x633140(0x1b8)](_0x14f3b5[_0x633140(0x1b4)])['pipe'](_0x3eec09(_0x3665ad=>_0x3665ad[_0x633140(0x276)]())),this[_0x633140(0x27b)][_0x633140(0x1b8)](_0x14f3b5[_0x633140(0x36e)])['pipe'](_0x3eec09(_0x4062f4=>_0x4062f4['getUnitId']())))['subscribe'](_0x232f47=>this[_0x633140(0x19a)](_0x232f47)));}[_0x3953b6(0x214)](_0xf6abbb){const _0xddd9cf=_0x3953b6;return this['_roomMembers']['has'](_0xf6abbb)?_0x40fdb9(this[_0xddd9cf(0x3a7)]['get'](_0xf6abbb)):this[_0xddd9cf(0x201)]['pipe'](_0x3eec09(_0xddd219=>{const _0x55c5c1=_0xddd9cf;if(_0xddd219===_0xf6abbb)return this[_0x55c5c1(0x3a7)][_0x55c5c1(0x319)](_0xddd219);}));}[_0x3953b6(0x2fd)](_0x301ad1){const _0x3ff9cc=_0x3953b6;this[_0x3ff9cc(0x280)][_0x3ff9cc(0x2fd)](_0x301ad1);}[_0x3953b6(0x36d)](){const _0xa08ef2=_0x3953b6;return this['_userManagerService'][_0xa08ef2(0x36d)]();}[_0x3953b6(0x284)](_0xfb7ab2,_0x511aa5){const _0x275ac4=_0x3953b6;let _0x1e9217=this[_0x275ac4(0x3a7)][_0x275ac4(0x319)](_0xfb7ab2);_0x1e9217||(_0x1e9217=new Dt(),this[_0x275ac4(0x3a7)][_0x275ac4(0x349)](_0xfb7ab2,_0x1e9217),this[_0x275ac4(0x201)][_0x275ac4(0x1aa)](_0xfb7ab2)),_0x1e9217[_0x275ac4(0x284)](_0x511aa5);}['removeMember'](_0x2d7476,_0x508c5b){const _0x114087=_0x3953b6;let _0x579ae0=this[_0x114087(0x3a7)][_0x114087(0x319)](_0x2d7476);_0x579ae0&&_0x579ae0[_0x114087(0x203)](_0x508c5b);}[_0x3953b6(0x1b1)](_0x4d502f){const _0x4cf7dc=_0x3953b6;return this[_0x4cf7dc(0x3a7)][_0x4cf7dc(0x319)](_0x4d502f);}[_0x3953b6(0x1b9)](_0xedbb70,_0x524887){const _0x480535=_0x3953b6;let _0x3a7fa7=this[_0x480535(0x3a7)][_0x480535(0x319)](_0xedbb70);if(_0x3a7fa7)return _0x3a7fa7[_0x480535(0x1b9)](_0x524887);}[_0x3953b6(0x19a)](_0xb2440e){const _0x21b305=_0x3953b6;let _0x5cdc42=this[_0x21b305(0x3a7)][_0x21b305(0x319)](_0xb2440e);_0x5cdc42&&(_0x5cdc42[_0x21b305(0x1d4)](),this[_0x21b305(0x3a7)][_0x21b305(0x340)](_0xb2440e));}[_0x3953b6(0x1d4)](){const _0x18cf6b=_0x3953b6;this[_0x18cf6b(0x3a7)][_0x18cf6b(0x345)](_0x3fdc66=>_0x3fdc66[_0x18cf6b(0x1d4)]()),this[_0x18cf6b(0x3a7)]['clear'](),this[_0x18cf6b(0x201)][_0x18cf6b(0x3e3)]();}};R=L([I(0x0,_0x2912b3),I(0x1,_0x103c1d(_0x3fbf3f))],R);var Dt=class extends _0x1563fe{constructor(..._0x1a8edb){const _0x2b5333=_0x3953b6;super(..._0x1a8edb),N(this,_0x2b5333(0x323),new Map()),N(this,_0x2b5333(0x3b2),new _0x5dffa6(this[_0x2b5333(0x323)])),N(this,_0x2b5333(0x360),this[_0x2b5333(0x3b2)]['asObservable']());}[_0x3953b6(0x1d4)](){const _0x1302e8=_0x3953b6;this['_members'][_0x1302e8(0x31e)]();}[_0x3953b6(0x284)](_0x34e215){const _0x3ff747=_0x3953b6;this[_0x3ff747(0x323)]['set'](_0x34e215['memberID'],_0x34e215),this['_emitMembers']();}[_0x3953b6(0x203)](_0x28a65b){const _0x4d0a28=_0x3953b6;this['_members'][_0x4d0a28(0x340)](_0x28a65b);}[_0x3953b6(0x1b9)](_0x56dd60){const _0x692197=_0x3953b6;return this['_members'][_0x692197(0x319)](_0x56dd60);}['getAllMembers'](){const _0x2dba65=_0x3953b6;return Array[_0x2dba65(0x39f)](this['_members']['values']());}[_0x3953b6(0x341)](){const _0x28a112=_0x3953b6;this['_members$'][_0x28a112(0x1aa)](this['_members']);}};let z=function(_0x13ec99){const _0xc444eb=_0x3953b6;return _0x13ec99[_0x13ec99['IDLE']=0x0]=_0xc444eb(0x2b7),_0x13ec99[_0x13ec99[_0xc444eb(0x22d)]=0x1]=_0xc444eb(0x22d),_0x13ec99[_0x13ec99[_0xc444eb(0x3da)]=0x2]='OFFLINE',_0x13ec99[_0x13ec99['ONLINE']=0x3]='ONLINE',_0x13ec99;}({});const Ot={[_0x1cc43b[_0x3953b6(0x2a4)]]:_0x3953b6(0x3c0),[_0x1cc43b[_0x3953b6(0x351)]]:_0x3953b6(0x257),[_0x1cc43b['JOIN_ROOM_NOT_EXISTS']]:_0x3953b6(0x1ab),[_0x1cc43b[_0x3953b6(0x27c)]]:'session.room-permission-denied',[_0x1cc43b[_0x3953b6(0x2bd)]]:_0x3953b6(0x2ec)};let kt=class extends _0x498085{get[_0x3953b6(0x347)](){const _0x1aadcf=_0x3953b6;return this[_0x1aadcf(0x2d0)][_0x1aadcf(0x277)]();}constructor(_0x5a2b3e,_0x508b79,_0x1c1047,_0x17662c,_0x5c7b88,_0x5ddc26,_0x34318b,_0x3d3c13){const _0x56dbc8=_0x3953b6;super(),this[_0x56dbc8(0x1ac)]=_0x5a2b3e,this['_logService']=_0x1c1047,this[_0x56dbc8(0x2db)]=_0x17662c,this[_0x56dbc8(0x29b)]=_0x5c7b88,this[_0x56dbc8(0x3bc)]=_0x5ddc26,this[_0x56dbc8(0x254)]=_0x34318b,this[_0x56dbc8(0x317)]=_0x3d3c13,N(this,_0x56dbc8(0x2d0),new _0x5dffa6(z[_0x56dbc8(0x2b7)])),N(this,_0x56dbc8(0x2ed),this[_0x56dbc8(0x2d0)][_0x56dbc8(0x28e)]()),N(this,'_event$',new _0x2c4c98()),N(this,'event$',this['_event$'][_0x56dbc8(0x28e)]()),N(this,'_socket',void 0x0),N(this,_0x56dbc8(0x2af),void 0x0),N(this,_0x56dbc8(0x2d8),void 0x0),N(this,'_shouldReportTelemetry',!0x1),N(this,_0x56dbc8(0x2b2),null),this['_shouldReportTelemetry']=!!this[_0x56dbc8(0x317)],_0x508b79[_0x56dbc8(0x3e2)](_0x189905(this[_0x56dbc8(0x378)]))[_0x56dbc8(0x2a1)](_0xea4604=>{const _0x580765=_0x56dbc8;if(_0xea4604!==void 0x0){if(this[_0x580765(0x1ef)]=_0xea4604,_0xea4604)this[_0x580765(0x22a)](_0xea4604),this[_0x580765(0x2af)]=_0xea4604[_0x580765(0x33f)]['subscribe'](_0x253c11=>{const _0x32a08a=_0x580765;_0x253c11['routeKey']===this[_0x32a08a(0x1ac)]&&this[_0x32a08a(0x3fc)](_0x253c11);});else{var _0x523e36;this[_0x580765(0x304)](),this[_0x580765(0x2d0)][_0x580765(0x1aa)](z[_0x580765(0x3da)]),(_0x523e36=this[_0x580765(0x2af)])==null||_0x523e36[_0x580765(0x2f9)](),this[_0x580765(0x2af)]=null;}}});}[_0x3953b6(0x1ca)](){const _0xb656ba=_0x3953b6;var _0xbca363,_0x1ee9b5;return(_0xbca363=(_0x1ee9b5=this[_0xb656ba(0x1ef)])==null?void 0x0:_0x1ee9b5[_0xb656ba(0x27e)])==null?null:_0xbca363;}['dispose'](){const _0x51c373=_0x3953b6;super['dispose'](),this[_0x51c373(0x282)](),this[_0x51c373(0x378)][_0x51c373(0x1aa)](),this[_0x51c373(0x378)]['complete']();}[_0x3953b6(0x282)](){const _0x4e5551=_0x3953b6;var _0x47d672,_0x53c62a;this[_0x4e5551(0x304)](),(_0x47d672=this['_socket'])==null||_0x47d672[_0x4e5551(0x1f8)]({'cmd':_0x536fe6[_0x4e5551(0x3ee)],'data':{'roomID':this[_0x4e5551(0x1ac)]}}),(_0x53c62a=this[_0x4e5551(0x1ef)])==null||_0x53c62a[_0x4e5551(0x282)](),this[_0x4e5551(0x32b)]['complete'](),this[_0x4e5551(0x2d0)][_0x4e5551(0x3e3)]();}[_0x3953b6(0x3fc)](_0x4381c6){const _0x2961e3=_0x3953b6;_0x4381c6[_0x2961e3(0x342)]===_0x536fe6['JOIN']?this[_0x2961e3(0x252)](_0x4381c6):_0x4381c6['cmd']===_0x536fe6[_0x2961e3(0x3b9)]&&this[_0x2961e3(0x24c)](_0x4381c6);}[_0x3953b6(0x22a)](_0x1448be){const _0x1e5bfd=_0x3953b6;this[_0x1e5bfd(0x2d0)][_0x1e5bfd(0x1aa)](z[_0x1e5bfd(0x22d)]),_0x1448be['send']({'cmd':_0x536fe6[_0x1e5bfd(0x20c)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x1e5bfd(0x1ac)]}]}});}[_0x3953b6(0x252)](_0x2421c7){const _0x54943e=_0x3953b6;var _0x5b3001;if(_0x2421c7[_0x54943e(0x249)]in Ot){this[_0x54943e(0x254)][_0x54943e(0x25b)]({'id':P[_0x54943e(0x1a3)],'data':Ot[_0x2421c7['code']]}),this[_0x54943e(0x2d0)]['next'](z[_0x54943e(0x3da)]);return;}this[_0x54943e(0x2d0)]['next'](z[_0x54943e(0x2e5)]);let _0x4879c3=(_0x5b3001=_0x2421c7['data'][_0x54943e(0x35f)][this['_unitID']])==null?void 0x0:_0x5b3001[_0x54943e(0x3d0)];_0x4879c3&&_0x4879c3[_0x54943e(0x345)](_0x588e45=>this[_0x54943e(0x29b)][_0x54943e(0x284)](this[_0x54943e(0x1ac)],_0x588e45));}[_0x3953b6(0x24c)](_0x300b67){const _0x3a61e4=_0x3953b6;try{let _0x2f2ad4=_0x300b67['data'];switch(_0x2f2ad4[_0x3a61e4(0x220)]){case _0x1e3d55['USERS_ENTER']:this[_0x3a61e4(0x1eb)](_0x2f2ad4),this[_0x3a61e4(0x32b)]['next'](_0x2f2ad4);break;case _0x1e3d55[_0x3a61e4(0x3c2)]:this[_0x3a61e4(0x1df)](_0x2f2ad4),this[_0x3a61e4(0x32b)][_0x3a61e4(0x1aa)](_0x2f2ad4);break;case _0x1e3d55[_0x3a61e4(0x2b6)]:case _0x1e3d55[_0x3a61e4(0x1cd)]:this[_0x3a61e4(0x2d1)](),this['_clearCollaborationTimeoutTimer'](),this[_0x3a61e4(0x32b)][_0x3a61e4(0x1aa)](_0x2f2ad4);break;case _0x1e3d55[_0x3a61e4(0x1e7)]:this[_0x3a61e4(0x34f)][_0x3a61e4(0x1ba)](_0x3a61e4(0x2c2)+JSON[_0x3a61e4(0x3f2)](_0x2f2ad4)),this[_0x3a61e4(0x32b)]['next'](_0x2f2ad4);break;case _0x1e3d55[_0x3a61e4(0x3e5)]:this[_0x3a61e4(0x3bc)]['onCommentUpdate'](_0x2f2ad4[_0x3a61e4(0x3d7)]),this[_0x3a61e4(0x32b)][_0x3a61e4(0x1aa)](_0x2f2ad4);break;default:this['_event$']['next'](_0x2f2ad4);}}catch(_0x532319){this[_0x3a61e4(0x34f)][_0x3a61e4(0x1ba)](_0x532319,_0x300b67);}}[_0x3953b6(0x1eb)](_0x1bb6a8){const _0xe4a7ad=_0x3953b6;this[_0xe4a7ad(0x29b)]['updateMember'](this['_unitID'],_0x1bb6a8[_0xe4a7ad(0x3d7)]);}['_onUserLeave'](_0x443d2a){const _0x2bf9cc=_0x3953b6;this['_memberService'][_0x2bf9cc(0x203)](this[_0x2bf9cc(0x1ac)],_0x443d2a[_0x2bf9cc(0x3d7)][_0x2bf9cc(0x27e)]);}async[_0x3953b6(0x1f8)](_0x4a558c,_0x34ae0c){const _0x36f80a=_0x3953b6;if(this[_0x36f80a(0x347)]!==z['ONLINE']||!this[_0x36f80a(0x1ef)])throw Error(_0x36f80a(0x1fb));try{_0x4a558c[_0x36f80a(0x220)]===_0x1e3d55[_0x36f80a(0x1f5)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x36f80a(0x1cf)](_0x4a558c)),this[_0x36f80a(0x1ef)]['send']({'cmd':_0x536fe6[_0x36f80a(0x354)],'routeKey':_0x34ae0c,'routeType':'','data':_0x4a558c});}catch(_0x449089){this[_0x36f80a(0x34f)][_0x36f80a(0x1ba)](_0x449089);}}[_0x3953b6(0x390)](){const _0x386e0b=_0x3953b6;var _0x29b797;this[_0x386e0b(0x2d8)]=setTimeout(()=>{const _0x592d34=_0x386e0b;this[_0x592d34(0x2d8)]=null,this['_collaborationUIEventService'][_0x592d34(0x25b)]({'id':P['SUBMIT_CHANGESET_TIMEOUT']});},(_0x29b797=this[_0x386e0b(0x2db)][_0x386e0b(0x338)](_0x386e0b(0x38d)))==null?gt:_0x29b797);}[_0x3953b6(0x373)](){const _0x537a3e=_0x3953b6;this[_0x537a3e(0x2d8)]&&(clearTimeout(this[_0x537a3e(0x2d8)]),this[_0x537a3e(0x2d8)]=null);}[_0x3953b6(0x1cf)](_0x440198){const _0x20a30f=_0x3953b6;if(!this[_0x20a30f(0x1b3)])return;let {data:_0x3718e3}=_0x440198,{unitID:_0x349906,changeset:_0x15373d}=_0x3718e3,{mutations:_0x579e82,type:_0xf0a37d}=_0x15373d;this[_0x20a30f(0x2b2)]={'unitId':_0x349906,'type':_0xf0a37d,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':St(_0x579e82)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x1b90c8=_0x3953b6;if(this[_0x1b90c8(0x1b3)]){if(!this[_0x1b90c8(0x2b2)]){this[_0x1b90c8(0x34f)][_0x1b90c8(0x1ba)]('[CollaborationSession]',_0x1b90c8(0x2be));return;}this[_0x1b90c8(0x2b2)][_0x1b90c8(0x21b)]=performance[_0x1b90c8(0x2c7)](),this[_0x1b90c8(0x2b2)][_0x1b90c8(0x324)]=this[_0x1b90c8(0x2b2)][_0x1b90c8(0x21b)]-this['_telemetryInfo'][_0x1b90c8(0x264)],this[_0x1b90c8(0x317)][_0x1b90c8(0x2f5)]('collaboration_new_changeset',this[_0x1b90c8(0x2b2)]),this[_0x1b90c8(0x2b2)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x2a9929=_0x3953b6;this[_0x2a9929(0x2b2)]=null;}};kt=L([I(0x2,_0x20e24f),I(0x3,_0x58e790),I(0x4,_0x103c1d(R)),I(0x5,_0x103c1d(Et)),I(0x6,_0x103c1d(F)),I(0x7,_0x5fafcb(_0x28074b))],kt);const B=_0x1f70b2('collaboration-client.local-cache-service');function At(_0x319dcf){return'unit-cache-'+_0x319dcf;}function jt(_0xc5e5a2){const _0x111d00=_0x3953b6;let {unitID:_0x30ba31,mutations:_0x164650}=_0xc5e5a2;return{'unitId':_0x30ba31,'subUnitId':_0x164650[_0x111d00(0x283)]>0x0?_0x164650[0x0][_0x111d00(0x30d)]['subUnitId']:null};}let V=class{constructor(_0x34e986,_0xe2ce56,_0x5d6a65){const _0x19fcce=_0x3953b6;this[_0x19fcce(0x37e)]=_0x34e986,this[_0x19fcce(0x1a9)]=_0xe2ce56,this[_0x19fcce(0x217)]=_0x5d6a65;}[_0x3953b6(0x34b)](_0x2e8da6){const _0x58bfd1=_0x3953b6;var _0x48ecb1,_0x376ff7;let _0x1d8668=this[_0x58bfd1(0x37e)]['get'](_0x4bde1c),{unitId:_0x36f66e,subUnitId:_0x186552}=jt(_0x2e8da6),_0x3b8f13=_0x1d8668==null?void 0x0:_0x1d8668['getWorkbookSelections'](_0x36f66e)['getCurrentSelections'](),_0x3525ac=(_0x48ecb1=this['_instanceService'][_0x58bfd1(0x336)](_0x36f66e))==null||(_0x48ecb1=_0x48ecb1['getActiveSheet']())==null?void 0x0:_0x48ecb1[_0x58bfd1(0x30f)]();if(_0x3b8f13[_0x58bfd1(0x283)]===0x0||!_0x36f66e||!_0x186552)return;let _0x508403=[{'id':_0x70e3eb['id'],'params':{'unitId':_0x36f66e,'subUnitId':_0x3525ac,'selections':_0x5e3b44[_0x58bfd1(0x33b)](_0x3b8f13)}}],_0x44cd46=this[_0x58bfd1(0x1a9)][_0x58bfd1(0x24d)](_0x2e8da6,_0x508403);if(!_0x2cd97b(_0x44cd46))throw _0x44cd46['error'];let _0x4a0f72=(_0x376ff7=_0x44cd46[_0x58bfd1(0x303)][0x0])==null||(_0x376ff7=_0x376ff7[_0x58bfd1(0x30d)])==null?void 0x0:_0x376ff7[_0x58bfd1(0x3cc)];if(Array['isArray'](_0x4a0f72)&&_0x4a0f72[_0x58bfd1(0x283)]){if(_0x4a0f72[_0x58bfd1(0x283)]===_0x508403[0x0]['params'][_0x58bfd1(0x3cc)][_0x58bfd1(0x283)]&&_0x4a0f72[_0x58bfd1(0x20f)]((_0x460ba7,_0xcc26c2)=>_0x6a0446[_0x58bfd1(0x299)](_0x460ba7[_0x58bfd1(0x20d)],_0x508403[0x0][_0x58bfd1(0x30d)][_0x58bfd1(0x3cc)][_0xcc26c2]['range'])))return;this[_0x58bfd1(0x37e)][_0x58bfd1(0x319)](_0x39f16e)['executeCommand'](_0x70e3eb['id'],{'unitId':_0x36f66e,'subUnitId':_0x3525ac,'selections':_0x4a0f72});}}};V=L([I(0x0,_0x103c1d(_0x197e5f)),I(0x1,_0x192549),I(0x2,_0x2912b3)],V);const Mt=_0x1f70b2(_0x3953b6(0x344));let Nt=function(_0x2f9a07){const _0x511913=_0x3953b6;return _0x2f9a07[_0x2f9a07[_0x511913(0x365)]=0x0]=_0x511913(0x365),_0x2f9a07[_0x2f9a07[_0x511913(0x1e2)]=0x1]=_0x511913(0x1e2),_0x2f9a07;}({});const H=_0x3953b6(0x314);Symbol(H);const Pt={};function Ft(_0x3268fe){const _0x187c10=_0x3953b6;var _0x5c5a04;return!!((_0x5c5a04=_0x3268fe[_0x187c10(0x30d)])!=null&&_0x5c5a04['__splitChunk__']);}const It=new Set([_0x24fd57['id']]);function Lt(_0x5af103,_0x48032e,_0x182d89,_0x4c4519,_0x3a51c2){const _0x1a483e=_0x3953b6;var _0x12c4e3,_0xa8ea3c,_0x2ade96,_0x58eb56;let _0x2941e7=[];for(let _0x4bb8be of _0x5af103){if(It['has'](_0x4bb8be['id'])){if(_0x2941e7[_0x1a483e(0x283)]>0x0)break;_0x2941e7[_0x1a483e(0x222)](_0x4bb8be);break;}if(Ft(_0x4bb8be)){if(_0x2941e7[_0x1a483e(0x283)]>0x0)break;_0x2941e7['push'](_0x4bb8be);break;}_0x2941e7[_0x1a483e(0x222)](_0x4bb8be);}let _0x4d0683=(_0x12c4e3=(_0xa8ea3c=_0x3a51c2[_0x1a483e(0x36d)]())==null?void 0x0:_0xa8ea3c[_0x1a483e(0x3d5)])==null?_0x1a483e(0x247):_0x12c4e3,_0x474669=(_0x2ade96=(_0x58eb56=_0x3a51c2[_0x1a483e(0x36d)]())==null?void 0x0:_0x58eb56[_0x1a483e(0x27e)])==null?_0x1a483e(0x247):_0x2ade96;return{'changeset':{'unitID':_0x48032e,'type':_0x3d1dc0(_0x182d89[_0x1a483e(0x28b)](_0x48032e)),'baseRev':_0x4c4519[_0x1a483e(0x3cf)](_0x48032e),'revision':0x0,'userID':_0x4d0683,'memberID':_0x474669,'mutations':_0x2941e7},'pendingMutations':_0x5af103[_0x1a483e(0x395)](_0x2941e7[_0x1a483e(0x283)])};}function Rt(_0x44ae6e,_0x303cfb,_0x5ca3a6,_0x51c387,_0x454f6e){const _0x56684c=_0x3953b6;var _0x4ab4d6,_0x512203,_0x14421c,_0x47c0fb;let _0x36aa69=[_0x44ae6e[_0x56684c(0x291)]((_0x33b44c,_0x468b07)=>{const _0x2ffbdc=_0x56684c;var _0x42b8ab;let {id:_0x551e7b}=_0x33b44c,{id:_0x5b3a7d,type:_0x500b56}=_0x468b07,_0x34cf8a=(_0x42b8ab=_0x33b44c[_0x2ffbdc(0x30d)])==null?{'actions':null}:_0x42b8ab,_0x4f85c6=_0x468b07[_0x2ffbdc(0x30d)];if(_0x551e7b&&_0x551e7b!==_0x5b3a7d)throw Error(_0x2ffbdc(0x2a7)+_0x551e7b+'\x20-\x20'+_0x5b3a7d+'.');return{..._0x33b44c,'id':_0x5b3a7d,'type':_0x500b56,'params':{'unitId':_0x4f85c6[_0x2ffbdc(0x3b6)],'textRanges':_0x4f85c6[_0x2ffbdc(0x30e)],'actions':_0x41c927[_0x2ffbdc(0x393)](_0x34cf8a['actions'],_0x4f85c6[_0x2ffbdc(0x2c1)])}};},{})],_0x5342dd=(_0x4ab4d6=(_0x512203=_0x454f6e[_0x56684c(0x36d)]())==null?void 0x0:_0x512203[_0x56684c(0x3d5)])==null?_0x56684c(0x247):_0x4ab4d6,_0x10d9b2=(_0x14421c=(_0x47c0fb=_0x454f6e[_0x56684c(0x36d)]())==null?void 0x0:_0x47c0fb[_0x56684c(0x27e)])==null?_0x56684c(0x247):_0x14421c;return{'changeset':{'unitID':_0x303cfb,'type':_0x3d1dc0(_0x5ca3a6[_0x56684c(0x28b)](_0x303cfb)),'baseRev':_0x51c387['getCurrentRevOfUnit'](_0x303cfb),'revision':0x0,'userID':_0x5342dd,'memberID':_0x10d9b2,'mutations':_0x36aa69},'pendingMutations':[]};}function zt(_0x230b6b,_0x50eb82){const _0x126ec0=_0x3953b6;let _0x900b49=new _0x459515(0x1);return setTimeout(()=>_0x900b49[_0x126ec0(0x1aa)](_0x50eb82),_0x230b6b),_0x900b49['asObservable']()[_0x126ec0(0x3e2)](_0x2be44c(0x1));}var Bt,Vt,Ht;let U=function(_0x121ae8){const _0x56af37=_0x3953b6;return _0x121ae8[_0x56af37(0x2ff)]=_0x56af37(0x18e),_0x121ae8[_0x56af37(0x387)]=_0x56af37(0x2cf),_0x121ae8['PENDING']=_0x56af37(0x287),_0x121ae8[_0x56af37(0x36f)]=_0x56af37(0x288),_0x121ae8[_0x56af37(0x3e1)]=_0x56af37(0x3eb),_0x121ae8['FETCH_MISS']=_0x56af37(0x3fa),_0x121ae8[_0x56af37(0x3d6)]=_0x56af37(0x343),_0x121ae8[_0x56af37(0x3da)]=_0x56af37(0x2d6),_0x121ae8;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x1e5fb6,_0x475028,_0x4fb08f,_0x5b60d0,_0x3a709b,_0x298751,_0x195f8e,_0x51cdb5,_0x69a0b7){const _0x47e602=_0x3953b6;this['unitID']=_0x1e5fb6,this[_0x47e602(0x28a)]=_0x475028,this[_0x47e602(0x3db)]=_0x3a709b,this[_0x47e602(0x223)]=_0x298751,this['_undoRedoService']=_0x195f8e,this[_0x47e602(0x263)]=_0x51cdb5,this[_0x47e602(0x36b)]=_0x69a0b7,N(this,_0x47e602(0x31a),null),N(this,_0x47e602(0x355),[]),this[_0x47e602(0x31a)]=_0x4fb08f,this[_0x47e602(0x355)]=_0x5b60d0;}[_0x3953b6(0x25e)](_0x4640b9){const _0x594442=_0x3953b6;let _0x5f5904=this['_revisionService'][_0x594442(0x3cf)](this[_0x594442(0x2aa)]);return _0x4640b9[_0x594442(0x331)]>_0x5f5904+0x1?(this[_0x594442(0x3db)][_0x594442(0x34c)]({'from':_0x5f5904,'to':_0x4640b9[_0x594442(0x331)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0xd7e9e5){const _0x2c845f=_0x3953b6;this[_0x2c845f(0x211)][_0x2c845f(0x1d0)](this[_0x2c845f(0x2aa)],_0xd7e9e5);}[_0x3953b6(0x3f1)](_0x3417ef){var _0x3eddb3,_0x56785c;(_0x3eddb3=(_0x56785c=this['_handler'])['onTransformSelections'])==null||_0x3eddb3['call'](_0x56785c,_0x3417ef);}[_0x3953b6(0x239)](_0x5ff615){const _0x40c7dd=_0x3953b6;var _0x178b7f,_0x512e76;return(_0x178b7f=(_0x512e76=this['_handler'])[_0x40c7dd(0x1ae)])==null?void 0x0:_0x178b7f[_0x40c7dd(0x273)](_0x512e76,_0x5ff615);}[_0x3953b6(0x26f)](_0x4bc704){const _0x1a8fca=_0x3953b6;var _0x1c1006,_0x462759;return(_0x1c1006=(_0x462759=this[_0x1a8fca(0x3db)])[_0x1a8fca(0x318)])==null?void 0x0:_0x1c1006[_0x1a8fca(0x273)](_0x462759,_0x4bc704);}[_0x3953b6(0x28d)](_0x5e4d72){const _0x307ba0=_0x3953b6;var _0x5d26a3,_0x4bb759,_0x65a644;return(_0x5d26a3=(_0x4bb759=(_0x65a644=this[_0x307ba0(0x3db)])[_0x307ba0(0x210)])==null?void 0x0:_0x4bb759[_0x307ba0(0x273)](_0x65a644,_0x5e4d72))==null?_0x5e4d72:_0x5d26a3;}[_0x3953b6(0x2a3)](_0x3d49f3){const _0xdb4f29=_0x3953b6;var _0x4ed4fb,_0x5adb57,_0x1a8cd2;return(_0x4ed4fb=(_0x5adb57=(_0x1a8cd2=this[_0xdb4f29(0x3db)])[_0xdb4f29(0x2d9)])==null?void 0x0:_0x5adb57[_0xdb4f29(0x273)](_0x1a8cd2,_0x3d49f3))==null?_0x3d49f3:_0x4ed4fb;}[_0x3953b6(0x1ad)](_0x3f68ac){const _0x53c120=_0x3953b6;if(this[_0x53c120(0x28a)]===_0x9039db[_0x53c120(0x1b4)]){let {unitID:_0x55b78a,mutations:_0x4ec989,memberID:_0x569e4f}=_0x3f68ac,_0x2398a9=_0x4ec989[_0x53c120(0x283)]>0x0?_0x4ec989[0x0][_0x53c120(0x30d)][_0x53c120(0x30e)]:[];if(Array[_0x53c120(0x197)](_0x2398a9)&&_0x2398a9[_0x53c120(0x283)]>0x0){var _0x5e0488,_0x13f639;(_0x5e0488=(_0x13f639=this[_0x53c120(0x3db)])[_0x53c120(0x29a)])==null||_0x5e0488[_0x53c120(0x273)](_0x13f639,{'unitID':_0x55b78a,'memberID':_0x569e4f,'textRanges':_0x2398a9});}}}[_0x3953b6(0x383)](){const _0x29bc48=_0x3953b6;var _0x5ca1ac;(_0x5ca1ac=this[_0x29bc48(0x36b)])==null||_0x5ca1ac[_0x29bc48(0x209)](this[_0x29bc48(0x2aa)],this[_0x29bc48(0x28a)],this[_0x29bc48(0x31a)],this[_0x29bc48(0x355)]);}[_0x3953b6(0x379)](){const _0x28640b=_0x3953b6;return this[_0x28640b(0x263)][_0x28640b(0x3cf)](this[_0x28640b(0x2aa)]);}[_0x3953b6(0x3b4)](){const _0x2a75c5=_0x3953b6;this[_0x2a75c5(0x263)][_0x2a75c5(0x1e6)](this[_0x2a75c5(0x2aa)]);}['_executeRemoteChangeset'](_0x4f08d5){const _0x457af8=_0x3953b6;let _0x3a4d95=this[_0x457af8(0x28d)](_0x4f08d5);_0x3a4d95=this[_0x457af8(0x2a3)](_0x3a4d95);let _0x3b89e3=_0x373e60(_0x3a4d95[_0x457af8(0x2bc)],this[_0x457af8(0x223)],{'fromCollab':!0x0});if(!_0x3b89e3['result']){var _0x34990a;throw _0x3b89e3[_0x457af8(0x1ba)]instanceof Error?_0x3b89e3['error']:Error((_0x34990a=_0x3b89e3[_0x457af8(0x1ba)])==null?_0x457af8(0x207):_0x34990a);}this[_0x457af8(0x239)](_0x3a4d95),this[_0x457af8(0x26f)](_0x3a4d95),this[_0x457af8(0x1c6)](_0x4f08d5),this['_transformSelections'](_0x3a4d95),this[_0x457af8(0x1ad)](_0x3a4d95),this[_0x457af8(0x3b4)]();}};let G=class extends W{constructor(_0x44d9cd,_0xd1f751,_0x531444,_0xeb55d,_0x2e29e5,_0x539e2a,_0x14321c,_0x4e9274,_0x27f870,_0x310a8d){const _0x49ca58=_0x3953b6;super(_0x44d9cd,_0xd1f751,null,[],_0x531444,_0x14321c,_0x539e2a,_0xeb55d,_0x310a8d),this[_0x49ca58(0x37e)]=_0x2e29e5,this['_logService']=_0x4e9274,this[_0x49ca58(0x1a9)]=_0x27f870,this[_0x49ca58(0x204)]=_0x310a8d,N(this,_0x49ca58(0x30a),U['SYNCED']);}['appendMutation'](_0xe3af04){const _0x5cf97b=_0x3953b6;let _0x216a2f=this[_0x5cf97b(0x37e)][_0x5cf97b(0x38f)](K,this[_0x5cf97b(0x2aa)],this['type'],[_0xe3af04],this[_0x5cf97b(0x3db)]);return _0x216a2f[_0x5cf97b(0x39a)](),_0x216a2f[_0x5cf97b(0x383)](),_0x216a2f;}[_0x3953b6(0x3e0)](_0x54dc18){const _0x570031=_0x3953b6;if(this['_checkMissing'](_0x54dc18))return this[_0x570031(0x37e)][_0x570031(0x38f)](Z,this['unitID'],this[_0x570031(0x28a)],null,[],null,[_0x54dc18],this['_handler']);try{let _0x131eca=this['_transformService'][_0x570031(0x24d)](_0x54dc18,[_0x3b4658]);if(_0x2cd97b(_0x131eca)){let {c1Prime:_0x551e98}=_0x131eca;return this['_executeRemoteChangeset'](_0x551e98),this;}throw _0x131eca['error'];}catch(_0x10b5f7){return this[_0x570031(0x34f)][_0x570031(0x1ba)](_0x10b5f7),this[_0x570031(0x286)](!0x1);}}[_0x3953b6(0x286)](_0xc7b1d){const _0x1bbdad=_0x3953b6;return this[_0x1bbdad(0x37e)][_0x1bbdad(0x38f)](Y,this[_0x1bbdad(0x2aa)],this['type'],null,[],this[_0x1bbdad(0x3db)],_0xc7b1d);}[_0x3953b6(0x3cb)](){const _0x147e46=_0x3953b6;throw Error(_0x147e46(0x312));}[_0x3953b6(0x238)](){const _0x4fd308=_0x3953b6;throw Error(_0x4fd308(0x3f5));}['onRemoteRetry'](){return this;}[_0x3953b6(0x3c5)](){const _0x3d3557=_0x3953b6;return this[_0x3d3557(0x37e)][_0x3d3557(0x38f)](X,this['unitID'],this['type'],null,[],this[_0x3d3557(0x3db)]);}['toggleOnline'](){return this;}[_0x3953b6(0x235)](){const _0x3b555d=_0x3953b6;throw Error(_0x3b555d(0x359));}[_0x3953b6(0x1f6)](){const _0x2884f4=_0x3953b6;let _0x3be6ac=this[_0x2884f4(0x263)][_0x2884f4(0x3cf)](this[_0x2884f4(0x2aa)]);return this[_0x2884f4(0x3db)][_0x2884f4(0x34c)]({'from':_0x3be6ac,'to':0x0}),this[_0x2884f4(0x37e)][_0x2884f4(0x38f)](Z,this[_0x2884f4(0x2aa)],this['type'],null,[],null,[],this[_0x2884f4(0x3db)]);}};G=L([I(0x3,_0x103c1d(_0x2d2b7f)),I(0x4,_0x103c1d(_0x197e5f)),I(0x5,_0x4c428e),I(0x6,_0x39f16e),I(0x7,_0x20e24f),I(0x8,_0x192549),I(0x9,_0x5fafcb(B))],G);let K=Bt=class extends W{constructor(_0x4a2006,_0x5c8e79,_0xe9e4b0,_0x4a7b32,_0x33b745,_0x56e093,_0x482e8b,_0xc7d6a3,_0x125068,_0x31c21a,_0x1fc622,_0x34ea08,_0x29fa31,_0x136db1){const _0x5dde46=_0x3953b6;super(_0x4a2006,_0x5c8e79,null,_0xe9e4b0,_0x4a7b32,_0x125068,_0x29fa31,_0x56e093,_0x136db1),this['_injector']=_0x33b745,this[_0x5dde46(0x29b)]=_0x482e8b,this['_logService']=_0xc7d6a3,this[_0x5dde46(0x2db)]=_0x31c21a,this[_0x5dde46(0x1a9)]=_0x1fc622,this[_0x5dde46(0x27b)]=_0x34ea08,N(this,_0x5dde46(0x30a),U['PENDING']),N(this,_0x5dde46(0x2f2),null),N(this,_0x5dde46(0x23c),null);}[_0x3953b6(0x2cb)](_0x1c3eba){const _0x4951c9=_0x3953b6;return this[_0x4951c9(0x355)][_0x4951c9(0x222)](_0x1c3eba),this[_0x4951c9(0x383)](),this;}[_0x3953b6(0x3e0)](_0x5b223c){const _0x221f48=_0x3953b6;if(this[_0x221f48(0x25e)](_0x5b223c))return this[_0x221f48(0x2cd)](),this['_injector']['createInstance'](Z,this['unitID'],this[_0x221f48(0x28a)],null,this[_0x221f48(0x355)],null,[_0x5b223c],this[_0x221f48(0x3db)]);try{let _0x3b1d3f=this[_0x221f48(0x1a9)][_0x221f48(0x24d)](_0x5b223c,this['_pendingMutations']);if(_0x2cd97b(_0x3b1d3f)){let {c1Prime:_0x51d370,m2Prime:_0x395c4b}=_0x3b1d3f;this['_executeRemoteChangeset'](_0x51d370);let _0x41c106=this[_0x221f48(0x37e)]['createInstance'](Bt,this[_0x221f48(0x2aa)],this[_0x221f48(0x28a)],_0x395c4b,this[_0x221f48(0x3db)]);this[_0x221f48(0x2cd)]();let _0x33bd41=new Date()[_0x221f48(0x384)](),_0x4a250f=this[_0x221f48(0x2f2)]?Math['max'](this[_0x221f48(0x2f2)]-_0x33bd41,0x0):this['_getSendChangesetTimeout']();return _0x41c106[_0x221f48(0x39a)](_0x4a250f),_0x41c106;}throw _0x3b1d3f[_0x221f48(0x1ba)];}catch(_0x418049){return this[_0x221f48(0x34f)]['error'](_0x418049),this['_onConflict'](!0x1);}}[_0x3953b6(0x3cb)](){throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x3953b6(0x238)](){const _0x266212=_0x3953b6;throw Error(_0x266212(0x1e1));}['onRemoteRetry'](){return this;}[_0x3953b6(0x3c5)](){const _0x28199a=_0x3953b6;return this['_clearScheduledTask'](),this[_0x28199a(0x37e)][_0x28199a(0x38f)](X,this[_0x28199a(0x2aa)],this[_0x28199a(0x28a)],null,this['_pendingMutations'],this[_0x28199a(0x3db)]);}[_0x3953b6(0x1da)](){return this;}[_0x3953b6(0x39a)](_0x1e0b04){const _0x309580=_0x3953b6;let _0x13f68a=_0x1e0b04==null?this['_getSendChangesetTimeout']():_0x1e0b04;this[_0x309580(0x2f2)]=new Date()['getTime']()+_0x13f68a,this['_sendingTimer']=setTimeout(()=>{const _0x100548=_0x309580;this[_0x100548(0x2cd)]();let _0x231a76=null;switch(this[_0x100548(0x28a)]){case _0x9039db[_0x100548(0x244)]:_0x231a76=Lt(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x100548(0x29b)]);break;case _0x9039db[_0x100548(0x1b4)]:_0x231a76=this[_0x100548(0x355)][_0x100548(0x20f)](_0x3d57f3=>_0x3d57f3['id']===_0x437197['id'])?Rt(this['_pendingMutations'],this[_0x100548(0x2aa)],this[_0x100548(0x27b)],this[_0x100548(0x263)],this['_memberService']):Lt(this['_pendingMutations'],this[_0x100548(0x2aa)],this[_0x100548(0x27b)],this[_0x100548(0x263)],this[_0x100548(0x29b)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x100548(0x308));}let {changeset:_0xddbf73,pendingMutations:_0x461158}=_0x231a76;this['_handler'][_0x100548(0x23e)](_0xddbf73);let _0x43d06f=_0x461158[_0x100548(0x283)]?this[_0x100548(0x37e)][_0x100548(0x38f)](J,this['unitID'],this['type'],_0xddbf73,_0x461158,this['_handler'],void 0x0):this['_injector']['createInstance'](q,this[_0x100548(0x2aa)],this[_0x100548(0x28a)],_0xddbf73,this['_handler']);_0x43d06f[_0x100548(0x383)](),this['_handler'][_0x100548(0x2c9)](this,_0x43d06f);},_0x13f68a);}['_getSendChangesetTimeout'](){const _0x19e090=_0x3953b6;var _0x2757c5;let _0x2634fc=this[_0x19e090(0x2db)][_0x19e090(0x338)](H);return(_0x2757c5=_0x2634fc==null?void 0x0:_0x2634fc[_0x19e090(0x21e)])==null?0x7d0:_0x2757c5;}[_0x3953b6(0x235)](){const _0x1e478c=_0x3953b6;throw Error(_0x1e478c(0x23b));}[_0x3953b6(0x2cd)](){const _0x4257d0=_0x3953b6;this[_0x4257d0(0x23c)]!=null&&(clearTimeout(this[_0x4257d0(0x23c)]),this[_0x4257d0(0x23c)]=null);}['_onConflict'](_0x453be9){const _0x5cbcfc=_0x3953b6;return this[_0x5cbcfc(0x2cd)](),this['_injector'][_0x5cbcfc(0x38f)](Y,this[_0x5cbcfc(0x2aa)],this[_0x5cbcfc(0x28a)],null,this[_0x5cbcfc(0x355)],this[_0x5cbcfc(0x3db)],_0x453be9);}};K=Bt=L([I(0x4,_0x103c1d(_0x197e5f)),I(0x5,_0x103c1d(_0x2d2b7f)),I(0x6,_0x103c1d(R)),I(0x7,_0x20e24f),I(0x8,_0x39f16e),I(0x9,_0x58e790),I(0xa,_0x192549),I(0xb,_0x2912b3),I(0xc,_0x4c428e),I(0xd,_0x5fafcb(B))],K);let q=Vt=class extends W{constructor(_0x44bff1,_0x4ab711,_0x82147a,_0x1a007d,_0x3991fb,_0x693d33,_0x7af19d,_0x3b74a8,_0x4e7048,_0x7ad127,_0x1e5604){const _0x3a6c20=_0x3953b6;super(_0x44bff1,_0x4ab711,_0x82147a,[],_0x1a007d,_0x7af19d,_0x7ad127,_0x693d33,_0x1e5604),this['_injector']=_0x3991fb,this[_0x3a6c20(0x34f)]=_0x3b74a8,this[_0x3a6c20(0x1a9)]=_0x4e7048,N(this,'status',U[_0x3a6c20(0x36f)]),N(this,_0x3a6c20(0x199),0x0),N(this,_0x3a6c20(0x3d8),0x0),N(this,_0x3a6c20(0x371),void 0x0),N(this,'_sender',void 0x0);}[_0x3953b6(0x2cb)](_0x5e3511){const _0x4600c3=_0x3953b6;this[_0x4600c3(0x2cd)]();let _0xb7a330=this[_0x4600c3(0x37e)][_0x4600c3(0x38f)](J,this[_0x4600c3(0x2aa)],this[_0x4600c3(0x28a)],this['_awaitingChangeset'],[_0x5e3511],this[_0x4600c3(0x3db)],this[_0x4600c3(0x371)]);return _0xb7a330[_0x4600c3(0x383)](),_0xb7a330;}[_0x3953b6(0x3e0)](_0x35c761){const _0x5451d0=_0x3953b6;if(this[_0x5451d0(0x25e)](_0x35c761))return this['_clearScheduledTask'](),this['_injector'][_0x5451d0(0x38f)](Z,this['unitID'],this[_0x5451d0(0x28a)],this['_awaitingChangeset'],[],null,[_0x35c761],this[_0x5451d0(0x3db)]);try{let _0x4f8515=this[_0x5451d0(0x1a9)][_0x5451d0(0x3fe)]([_0x35c761],[this[_0x5451d0(0x31a)]],!0x1);if(_0x2c763c(_0x4f8515)){let {c1Prime:_0x18a4a9,c2Prime:_0xe81f35}=_0x4f8515;this[_0x5451d0(0x310)](_0x18a4a9[0x0]),_0xe81f35[0x0][_0x5451d0(0x3a4)]=this[_0x5451d0(0x379)](),this[_0x5451d0(0x2cd)]();let _0x3cba4d=this[_0x5451d0(0x37e)][_0x5451d0(0x38f)](Vt,this[_0x5451d0(0x2aa)],this[_0x5451d0(0x28a)],_0xe81f35[0x0],this[_0x5451d0(0x3db)]);return _0x3cba4d[_0x5451d0(0x383)](),_0x3cba4d;}return this[_0x5451d0(0x286)](!0x1);}catch(_0x1ce0e5){return this[_0x5451d0(0x34f)][_0x5451d0(0x1ba)](_0x1ce0e5),this[_0x5451d0(0x286)](!0x1);}}['onRemoteAck'](_0x5f00d4){const _0x5e2db1=_0x3953b6;this['_clearScheduledTask']();let _0x51dd19=this[_0x5e2db1(0x263)]['getCurrentRevOfUnit'](this[_0x5e2db1(0x2aa)]);if(_0x5f00d4['revision']<_0x51dd19-0x1)return this;if(this[_0x5e2db1(0x25e)](_0x5f00d4))return this[_0x5e2db1(0x37e)][_0x5e2db1(0x38f)](Z,this[_0x5e2db1(0x2aa)],this[_0x5e2db1(0x28a)],null,[],this[_0x5e2db1(0x31a)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x555977=this[_0x5e2db1(0x37e)]['createInstance'](G,this[_0x5e2db1(0x2aa)],this['type'],this['_handler']);return _0x555977[_0x5e2db1(0x383)](),_0x555977;}['onRemoteRej'](_0x376200){const _0x109e47=_0x3953b6;return this['_onConflict'](!!(_0x376200!=null&&_0x376200[_0x109e47(0x258)]));}[_0x3953b6(0x1bf)](_0x244840){const _0x413800=_0x3953b6;return this[_0x413800(0x3d8)]>Wt?this['toggleOffline']():(this[_0x413800(0x371)]=zt(this[_0x413800(0x199)],{'timeout':this['_resendTimeout'],'reqId':_0x244840['reqId']}),this[_0x413800(0x289)]=this['_resendTimer'][_0x413800(0x2a1)](({reqId:_0x3d7323,timeout:_0x157462})=>{const _0xbcd54b=_0x413800;this[_0xbcd54b(0x2de)](_0x3d7323,_0x157462);}),this);}[_0x3953b6(0x3c5)](){const _0x17ab6a=_0x3953b6;return this[_0x17ab6a(0x2cd)](),this['_injector'][_0x17ab6a(0x38f)](X,this[_0x17ab6a(0x2aa)],this[_0x17ab6a(0x28a)],this['_awaitingChangeset'],[],this[_0x17ab6a(0x3db)]);}[_0x3953b6(0x1da)](){return this;}[_0x3953b6(0x235)](){const _0x2f60da=_0x3953b6;this[_0x2f60da(0x3db)][_0x2f60da(0x23e)](this[_0x2f60da(0x31a)]);}[_0x3953b6(0x286)](_0x8398f7){const _0x1cce62=_0x3953b6;return this[_0x1cce62(0x2cd)](),this[_0x1cce62(0x37e)][_0x1cce62(0x38f)](Y,this[_0x1cce62(0x2aa)],this[_0x1cce62(0x28a)],this[_0x1cce62(0x31a)],[],this[_0x1cce62(0x3db)],_0x8398f7);}[_0x3953b6(0x2de)](_0x56903e,_0x3c0052){const _0x4d1c44=_0x3953b6;var _0xae53e2;_0x56903e===((_0xae53e2=this[_0x4d1c44(0x31a)])==null?void 0x0:_0xae53e2[_0x4d1c44(0x37b)])&&(this[_0x4d1c44(0x235)](),this[_0x4d1c44(0x199)]=_0x3c0052===0x0?0x3e8:Math[_0x4d1c44(0x2b1)](_0x3c0052*0x2,Ut),this['_maxTotalRetryTimeout']+=this[_0x4d1c44(0x199)]);}['_clearScheduledTask'](){const _0xed3abd=_0x3953b6;var _0x5c3b10;(_0x5c3b10=this[_0xed3abd(0x289)])==null||_0x5c3b10[_0xed3abd(0x2f9)](),this[_0xed3abd(0x199)]=0x0,this[_0xed3abd(0x3d8)]=0x0;}};q=Vt=L([I(0x4,_0x103c1d(_0x197e5f)),I(0x5,_0x103c1d(_0x2d2b7f)),I(0x6,_0x39f16e),I(0x7,_0x20e24f),I(0x8,_0x192549),I(0x9,_0x4c428e),I(0xa,_0x5fafcb(B))],q);let J=Ht=class extends W{constructor(_0x4b7e42,_0x29dcec,_0x3a826f,_0xe7edbc,_0x1580d2,_0x332456,_0x1edfdb,_0x1eecbc,_0x562776,_0x10d65a,_0x57b2d2,_0x1e8696,_0xd7adb8){const _0x466119=_0x3953b6;super(_0x4b7e42,_0x29dcec,_0x3a826f,_0xe7edbc,_0x1580d2,_0x562776,_0x1e8696,_0x1eecbc,_0xd7adb8),this[_0x466119(0x37e)]=_0x1edfdb,this[_0x466119(0x34f)]=_0x10d65a,this[_0x466119(0x1a9)]=_0x57b2d2,this[_0x466119(0x204)]=_0xd7adb8,N(this,'status',U['AWAITING_WITH_PENDING']),N(this,_0x466119(0x199),0x0),N(this,_0x466119(0x3d8),0x0),N(this,_0x466119(0x371),void 0x0),N(this,'_sender',void 0x0),_0x332456&&(this[_0x466119(0x371)]=_0x332456,this[_0x466119(0x289)]=this[_0x466119(0x371)][_0x466119(0x2a1)](({reqId:_0xa2200,timeout:_0x5b360a})=>{const _0x278b89=_0x466119;this[_0x278b89(0x2de)](_0xa2200,_0x5b360a);}));}[_0x3953b6(0x2cb)](_0x475366){const _0x5e60ea=_0x3953b6;return this[_0x5e60ea(0x355)]['push'](_0x475366),this;}[_0x3953b6(0x3e0)](_0x12cc0d){const _0x17b0fc=_0x3953b6;if(this[_0x17b0fc(0x25e)](_0x12cc0d))return this['_clearScheduledTask'](),this['_injector'][_0x17b0fc(0x38f)](Z,this[_0x17b0fc(0x2aa)],this['type'],this[_0x17b0fc(0x31a)],this[_0x17b0fc(0x355)],null,[_0x12cc0d],this[_0x17b0fc(0x3db)]);try{let _0x2069ec=this[_0x17b0fc(0x1a9)][_0x17b0fc(0x3fe)]([_0x12cc0d],[this[_0x17b0fc(0x31a)]],!0x1);if(_0x2c763c(_0x2069ec)){let {c1Prime:_0x2eaa4d,c2Prime:_0x39bbcb}=_0x2069ec,_0x5c1765=this[_0x17b0fc(0x1a9)]['transformMutationsWithChangeset'](_0x2eaa4d[0x0],this[_0x17b0fc(0x355)]);if(_0x2cd97b(_0x5c1765)){let {c1Prime:_0x28c798,m2Prime:_0x47d88e}=_0x5c1765;return this[_0x17b0fc(0x310)](_0x28c798),_0x39bbcb[0x0]['baseRev']=this[_0x17b0fc(0x379)](),this[_0x17b0fc(0x2cd)](),this[_0x17b0fc(0x37e)][_0x17b0fc(0x38f)](Ht,this['unitID'],this[_0x17b0fc(0x28a)],_0x39bbcb[0x0],_0x47d88e,this[_0x17b0fc(0x3db)],void 0x0);}throw _0x5c1765[_0x17b0fc(0x1ba)];}throw _0x2069ec[_0x17b0fc(0x1ba)];}catch(_0x118e30){return this['_logService'][_0x17b0fc(0x1ba)](_0x118e30),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x4da1a0){const _0x1b077c=_0x3953b6;if(this[_0x1b077c(0x2cd)](),this['_checkMissing'](_0x4da1a0))return this[_0x1b077c(0x37e)]['createInstance'](Z,this[_0x1b077c(0x2aa)],this[_0x1b077c(0x28a)],null,this[_0x1b077c(0x355)],this[_0x1b077c(0x31a)],[],this[_0x1b077c(0x3db)]);this[_0x1b077c(0x3b4)]();let _0x389e96=this['_injector'][_0x1b077c(0x38f)](K,this[_0x1b077c(0x2aa)],this[_0x1b077c(0x28a)],this[_0x1b077c(0x355)],this[_0x1b077c(0x3db)]);return _0x389e96[_0x1b077c(0x39a)](),_0x389e96['_updateLocalCache'](),_0x389e96;}['onRemoteRej'](_0x4d2374){const _0x582b23=_0x3953b6;return this[_0x582b23(0x286)](!!(_0x4d2374!=null&&_0x4d2374['isPermissionRej']));}['onRemoteRetry'](_0x3fbf9c){const _0x330471=_0x3953b6;return this['_maxTotalRetryTimeout']>Wt?this[_0x330471(0x3c5)]():(this[_0x330471(0x371)]=zt(this[_0x330471(0x199)],{'timeout':this['_resendTimeout'],'reqId':_0x3fbf9c[_0x330471(0x37b)]}),this['_sender']=this['_resendTimer']['subscribe'](({reqId:_0x51b550,timeout:_0x22d722})=>{const _0x146532=_0x330471;this[_0x146532(0x2de)](_0x51b550,_0x22d722);}),this);}['toggleOffline'](){const _0x5d265b=_0x3953b6;return this['_clearScheduledTask'](),this[_0x5d265b(0x37e)]['createInstance'](X,this[_0x5d265b(0x2aa)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x3953b6(0x1da)](){return this;}['resend'](){const _0x4d28f6=_0x3953b6;this[_0x4d28f6(0x3db)][_0x4d28f6(0x23e)](this[_0x4d28f6(0x31a)]);}['_onConflict'](_0x50c043){const _0x18f2b7=_0x3953b6;return this[_0x18f2b7(0x2cd)](),this[_0x18f2b7(0x37e)][_0x18f2b7(0x38f)](Y,this[_0x18f2b7(0x2aa)],this[_0x18f2b7(0x28a)],null,this[_0x18f2b7(0x355)],this['_handler'],_0x50c043);}[_0x3953b6(0x2de)](_0x2d5957,_0x4f0b46){const _0x44e976=_0x3953b6;var _0x14a75a;_0x2d5957===((_0x14a75a=this['_awaitingChangeset'])==null?void 0x0:_0x14a75a[_0x44e976(0x37b)])&&(this[_0x44e976(0x235)](),this[_0x44e976(0x199)]=_0x4f0b46===0x0?0x3e8:Math[_0x44e976(0x2b1)](_0x4f0b46*0x2,Ut),this[_0x44e976(0x3d8)]+=this[_0x44e976(0x199)]);}['_clearScheduledTask'](){const _0x2148ed=_0x3953b6;var _0x3e0d56;(_0x3e0d56=this[_0x2148ed(0x289)])==null||_0x3e0d56[_0x2148ed(0x2f9)](),this[_0x2148ed(0x199)]=0x0,this[_0x2148ed(0x3d8)]=0x0;}};J=Ht=L([I(0x6,_0x103c1d(_0x197e5f)),I(0x7,_0x103c1d(_0x2d2b7f)),I(0x8,_0x39f16e),I(0x9,_0x20e24f),I(0xa,_0x192549),I(0xb,_0x4c428e),I(0xc,_0x5fafcb(B))],J);let Y=class extends W{constructor(_0x24878e,_0xac03bc,_0x32b8fd,_0x4a98af,_0xba1b2d,_0x2be16a=!0x1,_0x2e0e91,_0x3ca3ba,_0x20e801,_0x2c06be,_0x429e6e,_0x49f6c1,_0x53a00c){const _0x35b6ad=_0x3953b6;super(_0x24878e,_0xac03bc,_0x32b8fd,_0x4a98af,_0xba1b2d,_0x3ca3ba,_0x20e801,_0x2c06be,_0x53a00c),this[_0x35b6ad(0x206)]=_0x2be16a,this[_0x35b6ad(0x1e9)]=_0x2e0e91,this[_0x35b6ad(0x2ad)]=_0x429e6e,this['_collaborationUIEventService']=_0x49f6c1,this[_0x35b6ad(0x204)]=_0x53a00c,N(this,_0x35b6ad(0x30a),U[_0x35b6ad(0x3d6)]),this[_0x35b6ad(0x1a7)](),this[_0x35b6ad(0x3a8)](),this['_disableEditing']();}['appendMutation'](){return this;}[_0x3953b6(0x3e0)](){return this;}[_0x3953b6(0x3cb)](){return this;}[_0x3953b6(0x238)](){return this;}['onRemoteRetry'](){return this;}[_0x3953b6(0x3c5)](){return this;}[_0x3953b6(0x1da)](){return this;}['resend'](){const _0x30dc2d=_0x3953b6;throw Error(_0x30dc2d(0x30b));}[_0x3953b6(0x3a8)](){const _0x58c3c7=_0x3953b6;var _0x32b344;(_0x32b344=this['_localCacheService'])==null||_0x32b344[_0x58c3c7(0x209)](this[_0x58c3c7(0x2aa)],this[_0x58c3c7(0x28a)],null,[]);}[_0x3953b6(0x1a7)](){const _0x1e7cf0=_0x3953b6;this[_0x1e7cf0(0x206)]?this['_collaborationUIEventService']['emitEvent']({'id':P[_0x1e7cf0(0x391)]}):this[_0x1e7cf0(0x254)][_0x1e7cf0(0x25b)]({'id':P['CONFLICT']});}['_disableEditing'](){const _0x43ad4d=_0x3953b6;this['_permissionService'][_0x43ad4d(0x294)](new _0x4c2a11(this[_0x43ad4d(0x2aa)])['id'],!0x1);}};Y=L([I(0x6,_0x103c1d(_0x15e9b0)),I(0x7,_0x39f16e),I(0x8,_0x4c428e),I(0x9,_0x103c1d(_0x2d2b7f)),I(0xa,_0x103c1d(_0x58c06a)),I(0xb,_0x103c1d(F)),I(0xc,_0x5fafcb(B))],Y);let X=class extends W{constructor(_0x56b03a,_0x137d8e,_0x47c89b,_0x38842c,_0x412f6e,_0x1933f5,_0x430cb8,_0x2bf8ab,_0x2bd4c7,_0x5d94be){const _0x5ee2e6=_0x3953b6;super(_0x56b03a,_0x137d8e,_0x47c89b,_0x38842c,_0x412f6e,_0x2bf8ab,_0x2bd4c7,_0x430cb8,_0x5d94be),this[_0x5ee2e6(0x37e)]=_0x1933f5,N(this,_0x5ee2e6(0x30a),U['OFFLINE']);}['appendMutation'](_0x141b0e){const _0x4f4df2=_0x3953b6;return this[_0x4f4df2(0x355)][_0x4f4df2(0x222)](_0x141b0e),this[_0x4f4df2(0x383)](),this;}['onRemoteChangeset'](_0x37b741){const _0x14dd59=_0x3953b6;throw Error(_0x14dd59(0x219));}[_0x3953b6(0x3cb)](){const _0x336cb5=_0x3953b6;throw Error(_0x336cb5(0x330));}['onRemoteRej'](){const _0x37d67f=_0x3953b6;throw Error(_0x37d67f(0x245));}[_0x3953b6(0x1bf)](){return this;}[_0x3953b6(0x3c5)](){return this;}[_0x3953b6(0x1da)](){let {_injector:_0x10d29c,_pendingMutations:_0x4aacbf,_awaitingChangeset:_0x6084b6,unitID:_0x54deec,_handler:_0x178a25,type:_0x228d22}=this,_0xcb25f9=Gt(_0x10d29c,_0x54deec,_0x228d22,_0x6084b6,_0x4aacbf,_0x178a25);return _0xcb25f9 instanceof K?_0xcb25f9['_schedule']():(_0xcb25f9 instanceof J||_0xcb25f9 instanceof q)&&_0xcb25f9['resend'](),_0xcb25f9;}['resend'](){const _0x296701=_0x3953b6;throw Error(_0x296701(0x1a0));}};X=L([I(0x5,_0x103c1d(_0x197e5f)),I(0x6,_0x103c1d(_0x2d2b7f)),I(0x7,_0x39f16e),I(0x8,_0x4c428e),I(0x9,_0x5fafcb(B))],X);let Z=class extends W{constructor(_0x3067bd,_0x4b29be,_0x1d2393,_0x19e375,_0xec7d4c,_0x520276,_0x8819c8,_0x25fe5a,_0x186deb,_0x2b7ac1,_0x3186f8,_0x1d8b8e,_0x4b3f48,_0x9a68ee){const _0x596951=_0x3953b6;super(_0x3067bd,_0x4b29be,_0x1d2393,_0x19e375,_0x8819c8,_0x3186f8,_0x1d8b8e,_0x186deb,_0x9a68ee),this[_0x596951(0x218)]=_0xec7d4c,this[_0x596951(0x2a0)]=_0x520276,this['_injector']=_0x25fe5a,this[_0x596951(0x34f)]=_0x2b7ac1,this[_0x596951(0x1a9)]=_0x4b3f48,this['localCacheService']=_0x9a68ee,N(this,_0x596951(0x30a),U[_0x596951(0x26b)]);}['onMissedChangesetFetched'](_0x6bdf8e){const _0x35cac0=_0x3953b6;try{let _0x34a342=[..._0x6bdf8e,...this[_0x35cac0(0x2a0)]],_0x2c7597=[this['_awaitingChangeset']||this[_0x35cac0(0x218)]][_0x35cac0(0x1c2)](_0x49cd35=>!!_0x49cd35),_0x408228,_0x368304;if(_0x2c7597[_0x35cac0(0x283)]){let _0x32cdf1=this[_0x35cac0(0x1a9)][_0x35cac0(0x3fe)](_0x34a342,_0x2c7597,!0x1);if(!_0x2c763c(_0x32cdf1))throw _0x32cdf1[_0x35cac0(0x1ba)];_0x408228=_0x32cdf1[_0x35cac0(0x37c)],_0x368304=_0x32cdf1['c2Prime'];}else _0x408228=_0x34a342,_0x368304=[];let _0x5a8d22=this['_pendingMutations'];_0x408228[_0x35cac0(0x345)](_0x4c0814=>{const _0x2b6012=_0x35cac0;let _0x4c0d16;if(_0x5a8d22['length']){let _0x41267=this[_0x2b6012(0x1a9)][_0x2b6012(0x24d)](_0x4c0814,_0x5a8d22);if(!_0x2cd97b(_0x41267))throw _0x41267[_0x2b6012(0x1ba)];_0x4c0d16=_0x41267[_0x2b6012(0x37c)],_0x5a8d22=_0x41267['m2Prime'];}else _0x4c0d16=_0x4c0814;this[_0x2b6012(0x310)](_0x4c0d16);}),this[_0x35cac0(0x218)]&&this[_0x35cac0(0x3b4)](),this[_0x35cac0(0x31a)]&&_0x368304[_0x35cac0(0x283)]&&(_0x368304[0x0][_0x35cac0(0x3a4)]=this['_getCurrentRevision']());let _0x56f996;if(this[_0x35cac0(0x31a)]&&_0x5a8d22[_0x35cac0(0x283)]!==0x0)_0x56f996=this[_0x35cac0(0x37e)][_0x35cac0(0x38f)](J,this[_0x35cac0(0x2aa)],this[_0x35cac0(0x28a)],_0x368304[0x0],_0x5a8d22,this[_0x35cac0(0x3db)],void 0x0);else{if(this[_0x35cac0(0x31a)]&&_0x5a8d22[_0x35cac0(0x283)]===0x0)_0x368304[0x0][_0x35cac0(0x3a4)]=this[_0x35cac0(0x379)](),_0x56f996=this['_injector'][_0x35cac0(0x38f)](q,this[_0x35cac0(0x2aa)],this['type'],_0x368304[0x0],this[_0x35cac0(0x3db)]);else{if(_0x5a8d22['length']!==0x0){let _0x591572=this['_injector']['createInstance'](K,this['unitID'],this[_0x35cac0(0x28a)],_0x5a8d22,this[_0x35cac0(0x3db)]);_0x591572[_0x35cac0(0x39a)](),_0x56f996=_0x591572;}else _0x56f996=this[_0x35cac0(0x37e)]['createInstance'](G,this[_0x35cac0(0x2aa)],this[_0x35cac0(0x28a)],this[_0x35cac0(0x3db)]);}}return _0x56f996[_0x35cac0(0x383)](),_0x56f996;}catch(_0x13337f){return this[_0x35cac0(0x34f)]['error'](_0x35cac0(0x2a8),_0x35cac0(0x2a9),_0x13337f),this[_0x35cac0(0x37e)]['createInstance'](Y,this[_0x35cac0(0x2aa)],this[_0x35cac0(0x28a)],this[_0x35cac0(0x31a)],this[_0x35cac0(0x355)],this[_0x35cac0(0x3db)],!0x1);}}[_0x3953b6(0x235)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3953b6(0x2cb)](_0x38afab){const _0x28c52f=_0x3953b6;return this[_0x28c52f(0x355)]['push'](_0x38afab),this;}[_0x3953b6(0x3e0)](_0x441715){const _0x2d4da0=_0x3953b6;return this[_0x2d4da0(0x2a0)][_0x2d4da0(0x222)](_0x441715),this;}[_0x3953b6(0x3cb)](_0x5ca259){const _0x209dee=_0x3953b6;if(this['_awaitingChangeset'])return this[_0x209dee(0x218)]=this['_awaitingChangeset'],this[_0x209dee(0x31a)]=null,this;throw Error(_0x209dee(0x2a2));}['onRemoteRej'](_0x403d24){const _0x25c320=_0x3953b6;return this[_0x25c320(0x286)](!!(_0x403d24!=null&&_0x403d24[_0x25c320(0x258)]));}['onRemoteRetry'](){return this;}[_0x3953b6(0x3c5)](){const _0x54b762=_0x3953b6;return this[_0x54b762(0x37e)][_0x54b762(0x38f)](X,this[_0x54b762(0x2aa)],this[_0x54b762(0x28a)],this[_0x54b762(0x31a)],this['_pendingMutations'],this[_0x54b762(0x3db)]);}[_0x3953b6(0x1da)](){return this;}[_0x3953b6(0x286)](_0x25f276){const _0x3b78cc=_0x3953b6;return this[_0x3b78cc(0x37e)][_0x3b78cc(0x38f)](Y,this['unitID'],this[_0x3b78cc(0x28a)],this[_0x3b78cc(0x31a)],this[_0x3b78cc(0x355)],this[_0x3b78cc(0x3db)],_0x25f276);}};Z=L([I(0x7,_0x103c1d(_0x197e5f)),I(0x8,_0x103c1d(_0x2d2b7f)),I(0x9,_0x20e24f),I(0xa,_0x39f16e),I(0xb,_0x4c428e),I(0xc,_0x192549),I(0xd,_0x5fafcb(B))],Z);function Gt(_0x1be09d,_0x16ad0f,_0x95d3c2,_0x3e6679,_0x22d335,_0x3291a6){const _0x14bf7c=_0x3953b6;return _0x3e6679&&_0x22d335[_0x14bf7c(0x283)]?_0x1be09d[_0x14bf7c(0x38f)](J,_0x16ad0f,_0x95d3c2,_0x3e6679,_0x22d335,_0x3291a6,void 0x0):_0x3e6679?_0x1be09d['createInstance'](q,_0x16ad0f,_0x95d3c2,_0x3e6679,_0x3291a6):_0x22d335['length']?_0x1be09d[_0x14bf7c(0x38f)](K,_0x16ad0f,_0x95d3c2,_0x22d335,_0x3291a6):_0x1be09d[_0x14bf7c(0x38f)](G,_0x16ad0f,_0x95d3c2,_0x3291a6);}let Kt=class extends _0x498085{get[_0x3953b6(0x290)](){return this['_state'];}constructor(_0x4ef6c6,_0x31271b,_0x34edaa,_0x1d0234,_0x552212,_0x20ff07,_0xb92e51,_0x1a2661,_0xf1b3e6,_0x673b0c,_0x36a0da,_0x44908e,_0x253faa,_0x10a804){const _0x4714ec=_0x3953b6;super(),this[_0x4714ec(0x2aa)]=_0x4ef6c6,this['session']=_0x31271b,this[_0x4714ec(0x35c)]=_0x34edaa,this[_0x4714ec(0x37e)]=_0x1d0234,this[_0x4714ec(0x1be)]=_0x552212,this['_localeService']=_0x20ff07,this['_revisionService']=_0xb92e51,this['_eventService']=_0x1a2661,this[_0x4714ec(0x27b)]=_0xf1b3e6,this[_0x4714ec(0x34f)]=_0x673b0c,this['_commandService']=_0x36a0da,this['_permissionService']=_0x44908e,this['_singleActiveUnitService']=_0x253faa,this[_0x4714ec(0x36b)]=_0x10a804,N(this,'_state$',new _0x5dffa6(null)),N(this,_0x4714ec(0x2e1),this[_0x4714ec(0x396)]['asObservable']()),N(this,_0x4714ec(0x25f),void 0x0),N(this,_0x4714ec(0x2f3),!0x1),N(this,_0x4714ec(0x3ef),''),N(this,_0x4714ec(0x256),0x0),N(this,_0x4714ec(0x3a3),this[_0x4714ec(0x2e1)][_0x4714ec(0x3e2)](_0x2c0169(_0x1bd02e=>_0x1bd02e?_0x1bd02e[_0x4714ec(0x30a)]:U[_0x4714ec(0x3da)]),_0x9f53b3(0x1))),N(this,_0x4714ec(0x23f),!0x1),N(this,_0x4714ec(0x1ec),[]);}async[_0x3953b6(0x226)](){const _0xe78cd5=_0x3953b6;if(this[_0xe78cd5(0x290)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x3953b6(0x2ee)](){const _0x42c8e7=_0x3953b6;return this[_0x42c8e7(0x2f3)]=!0x0,_0x5f56a7(()=>{const _0x1943e6=_0x42c8e7;this[_0x1943e6(0x2f3)]=!0x1,this[_0x1943e6(0x19e)]();});}[_0x3953b6(0x1fe)](_0x215df7){this['_onLocalMutation'](_0x215df7);}['_updateState'](_0x524261){const _0xc7d6bf=_0x3953b6;this[_0xc7d6bf(0x25f)]=_0x524261,this['_state$'][_0xc7d6bf(0x1aa)](_0x524261);}async[_0x3953b6(0x22b)](){const _0x53609a=_0x3953b6;if(this[_0x53609a(0x1f7)](await this[_0x53609a(0x1e3)]()),this[_0x53609a(0x2e4)]){var _0x5c6284;(_0x5c6284=this[_0x53609a(0x2e4)])==null||_0x5c6284[_0x53609a(0x18f)](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x53609a(0x26c)](this['unitID'])[_0x53609a(0x2a1)](_0x4b551b=>{const _0x4384a1=_0x53609a;this[_0x4384a1(0x34f)][_0x4384a1(0x348)]('[CollaborationEntity]',_0x4384a1(0x362),_0x4b551b),_0x4b551b===Nt[_0x4384a1(0x1e2)]?(this['_eventService'][_0x4384a1(0x25b)]({'id':P[_0x4384a1(0x3c6)]}),this[_0x4384a1(0x1e9)][_0x4384a1(0x294)](new _0x4c2a11(this[_0x4384a1(0x2aa)])['id'],!0x1),this[_0x4384a1(0x1e9)][_0x4384a1(0x2d5)](!0x1)):(this['_permissionService'][_0x4384a1(0x294)](new _0x4c2a11(this['unitID'])['id'],!0x0),this[_0x4384a1(0x1e9)][_0x4384a1(0x2d5)](!0x0));}));}let _0x4c1148=!0x1;return this[_0x53609a(0x3ce)](this[_0x53609a(0x313)][_0x53609a(0x2ed)]['subscribe'](_0x204924=>{const _0x103351=_0x53609a;_0x204924===z['ONLINE']?this['_toggleOnline'](_0x4c1148):_0x204924===z[_0x103351(0x3da)]&&(_0x4c1148=!0x0,this[_0x103351(0x2ca)]());})),this['disposeWithMe'](this['session'][_0x53609a(0x1ed)][_0x53609a(0x2a1)](_0x237c10=>{const _0x327511=_0x53609a;try{switch(_0x237c10[_0x327511(0x220)]){case _0x1e3d55[_0x327511(0x3b0)]:this[_0x327511(0x3e8)](_0x3b5f04(_0x237c10[_0x327511(0x3d7)]));break;case _0x1e3d55[_0x327511(0x2b6)]:this[_0x327511(0x3f4)](_0x237c10[_0x327511(0x3d7)]);break;case _0x1e3d55[_0x327511(0x3ac)]:this[_0x327511(0x3e7)]();break;case _0x1e3d55[_0x327511(0x1cd)]:this[_0x327511(0x3e6)](_0x237c10[_0x327511(0x3d7)]);break;case _0x1e3d55[_0x327511(0x2b0)]:this['_onFetchMissResult'](_0x237c10[_0x327511(0x3d7)]['changesets'][_0x327511(0x2a6)](_0x273d67=>_0x3b5f04(_0x273d67)));break;case _0x1e3d55['PERMISSION_REJ']:this[_0x327511(0x3e7)]({'isPermissionRej':!0x0});break;case _0x1e3d55[_0x327511(0x285)]:break;}}catch(_0x5d5797){throw console[_0x327511(0x1ba)](_0x327511(0x3df),_0x5d5797),_0x5d5797;}})),this[_0x53609a(0x25f)];}[_0x3953b6(0x1c9)](){const _0x63a9e7=_0x3953b6;this[_0x63a9e7(0x23f)]=!0x1;}['_lockTransition'](){const _0x404080=_0x3953b6;if(this[_0x404080(0x23f)])throw Error(_0x404080(0x2bb));this['_transitionLocked']=!0x0;}[_0x3953b6(0x212)](_0x35d964){const _0x302691=_0x3953b6;this[_0x302691(0x316)](),this['_updateState'](this[_0x302691(0x25f)][_0x302691(0x2cb)](_0x35d964)),this[_0x302691(0x1c9)]();}[_0x3953b6(0x3e8)](_0x1fd28a){const _0x53c174=_0x3953b6;if(!(_0x1fd28a['revision']<=this[_0x53c174(0x263)][_0x53c174(0x3cf)](this[_0x53c174(0x2aa)]))){if(this[_0x53c174(0x2f3)]){this[_0x53c174(0x1ec)][_0x53c174(0x222)](_0x1fd28a);return;}this[_0x53c174(0x241)](_0x1fd28a);}}[_0x3953b6(0x19e)](){const _0xe750a0=_0x3953b6;this[_0xe750a0(0x1ec)][_0xe750a0(0x345)](_0x55f329=>this[_0xe750a0(0x241)](_0x55f329)),this[_0xe750a0(0x1ec)]=[];}[_0x3953b6(0x241)](_0x202875){const _0x188e8c=_0x3953b6;let _0x115401=this['_compressMutationService'][_0x188e8c(0x295)][_0x188e8c(0x3c4)](this['_compressMutationService'][_0x188e8c(0x295)][_0x188e8c(0x3cd)]()['COMPRESS_MUTATION_APPLY'])(_0x202875[_0x188e8c(0x2bc)],null)||_0x202875[_0x188e8c(0x2bc)],_0x11bede={..._0x202875,'mutations':_0x115401};this[_0x188e8c(0x316)](),this[_0x188e8c(0x1f7)](this['_state'][_0x188e8c(0x3e0)](_0x11bede)),this[_0x188e8c(0x1c9)]();}['_onRemoteACK'](_0x57f0a4){const _0x26abe0=_0x3953b6;this[_0x26abe0(0x316)](),this[_0x26abe0(0x1f7)](this['_state'][_0x26abe0(0x3cb)](_0x57f0a4)),this[_0x26abe0(0x1c9)]();}[_0x3953b6(0x3e7)](_0x3c15a7){const _0x12778b=_0x3953b6;this[_0x12778b(0x316)](),this[_0x12778b(0x1f7)](this['_state'][_0x12778b(0x238)](_0x3c15a7)),this[_0x12778b(0x1c9)]();}[_0x3953b6(0x3e6)](_0x4ea7df){const _0x4be964=_0x3953b6;this[_0x4be964(0x316)](),this[_0x4be964(0x1f7)](this[_0x4be964(0x25f)]['onRemoteRetry'](_0x4ea7df)),this['_unlockTransition']();}['_onFetchMissResult'](_0x2f7301){const _0x243710=_0x3953b6;if(!(this[_0x243710(0x25f)]instanceof Z))throw TypeError(_0x243710(0x2dc));let _0x15de89=_0x2f7301[_0x243710(0x2a6)](_0x2166ce=>{const _0x2343a9=_0x243710;let _0x591ef3=this[_0x2343a9(0x1be)][_0x2343a9(0x295)][_0x2343a9(0x3c4)](this[_0x2343a9(0x1be)][_0x2343a9(0x295)]['getInterceptPoints']()[_0x2343a9(0x380)])(_0x2166ce[_0x2343a9(0x2bc)],null)||_0x2166ce[_0x2343a9(0x2bc)];return{..._0x2166ce,'mutations':_0x591ef3};});this[_0x243710(0x316)](),this[_0x243710(0x1f7)](this[_0x243710(0x25f)]['onMissedChangesetFetched'](_0x15de89)),this['_unlockTransition']();}['_toggleOffline'](){const _0x448e68=_0x3953b6;this[_0x448e68(0x316)](),this[_0x448e68(0x1f7)](this[_0x448e68(0x25f)]['toggleOffline']()),this[_0x448e68(0x1c9)]();}[_0x3953b6(0x3b5)](_0x47a545=!0x1){const _0x51e7ca=_0x3953b6;this['_lockTransition'](),this[_0x51e7ca(0x1f7)](this[_0x51e7ca(0x25f)][_0x51e7ca(0x1da)]()),this[_0x51e7ca(0x1c9)]();let _0xde47a4=this[_0x51e7ca(0x25f)];_0x47a545&&_0xde47a4 instanceof G&&(this[_0x51e7ca(0x316)](),this[_0x51e7ca(0x1f7)](_0xde47a4[_0x51e7ca(0x1f6)]()),this[_0x51e7ca(0x1c9)]());}async[_0x3953b6(0x1e3)](){return new Promise(_0x4290b8=>{const _0x2baac1=_0x226b;this[_0x2baac1(0x313)][_0x2baac1(0x2ed)][_0x2baac1(0x3e2)](_0x2be44c(0x1))[_0x2baac1(0x2a1)](async _0x206387=>{const _0x4271e9=_0x2baac1;_0x4290b8(await this[_0x4271e9(0x1d1)](_0x206387===z[_0x4271e9(0x2e5)]));});});}['_createHandler'](){const _0x56043b=_0x3953b6;let _0x3d2fa6=this[_0x56043b(0x2aa)];return{'onStateChange':(_0x1b1805,_0x5af7c7)=>{const _0x5a22e8=_0x56043b;if(_0x1b1805!==this[_0x5a22e8(0x25f)])throw Error(_0x5a22e8(0x3d3)+_0x1b1805[_0x5a22e8(0x30a)]+_0x5a22e8(0x225)+_0x5af7c7[_0x5a22e8(0x30a)]+_0x5a22e8(0x38e)+this[_0x5a22e8(0x25f)][_0x5a22e8(0x30a)]);this[_0x5a22e8(0x1f7)](_0x5af7c7);},'onSendChangeset':_0x773b6c=>{const _0x121da=_0x56043b;_0x773b6c['sid']||(_0x773b6c['sid']=this[_0x121da(0x3ef)],_0x773b6c['reqId']=++this[_0x121da(0x256)]);let _0x589378={'eventID':_0x1e3d55[_0x121da(0x1f5)],'data':{'unitID':_0x773b6c['unitID'],'unitType':this['_type'],'changeset':_0x773b6c,'memberID':this['session'][_0x121da(0x1ca)]()}};this[_0x121da(0x313)][_0x121da(0x1f8)](_0x589378,this[_0x121da(0x2aa)]);},'onMissingChangesets':({from:_0x324f90,to:_0x5e2eb9})=>{const _0x3f43c8=_0x56043b;this[_0x3f43c8(0x34f)][_0x3f43c8(0x348)]('[CollaborationEntity]',_0x3f43c8(0x34d)+_0x324f90+_0x3f43c8(0x230)+_0x5e2eb9);let _0x503a63={'eventID':_0x1e3d55['FETCH_MISSING'],'data':{'unitID':_0x3d2fa6,'unitType':this[_0x3f43c8(0x35c)],'from':_0x324f90,'to':_0x5e2eb9}};this[_0x3f43c8(0x313)][_0x3f43c8(0x1f8)](_0x503a63,this[_0x3f43c8(0x2aa)]);}};}async['_createInitialStateImpl'](_0x5334b3){const _0x3fa8f0=_0x3953b6;var _0x2812f8,_0x2f78b6,_0x562cf6;let _0x45228b=await((_0x2812f8=this['_localCacheService'])==null?void 0x0:_0x2812f8[_0x3fa8f0(0x193)](this['unitID'])),_0x2ff2e5=(_0x2f78b6=_0x45228b==null?void 0x0:_0x45228b[_0x3fa8f0(0x2bc)])==null?[]:_0x2f78b6,_0x4e6fad=(_0x562cf6=_0x45228b==null?void 0x0:_0x45228b['awaitingChangeset'])==null?null:_0x562cf6,_0x2fcce1=!!(_0x4e6fad!=null&&_0x4e6fad[_0x3fa8f0(0x33c)])&&!!(_0x4e6fad!=null&&_0x4e6fad[_0x3fa8f0(0x37b)]);this[_0x3fa8f0(0x3ef)]=_0x2fcce1?_0x4e6fad[_0x3fa8f0(0x33c)]:_0xdfeb56(),this[_0x3fa8f0(0x256)]=_0x2fcce1?_0x4e6fad[_0x3fa8f0(0x37b)]:0x0;let _0x40361b=this['unitID'];try{this[_0x3fa8f0(0x21d)](_0x4e6fad,_0x2ff2e5);}catch(_0x19f219){this[_0x3fa8f0(0x34f)][_0x3fa8f0(0x1ba)](_0x19f219);}let _0x1c46d3=this[_0x3fa8f0(0x388)]();if(_0x5334b3){let _0x3ba1e8=Gt(this[_0x3fa8f0(0x37e)],_0x40361b,this['_type'],_0x4e6fad,_0x2ff2e5,_0x1c46d3);return _0x3ba1e8 instanceof K?_0x3ba1e8[_0x3fa8f0(0x39a)]():(_0x3ba1e8 instanceof J||_0x3ba1e8 instanceof q)&&_0x3ba1e8[_0x3fa8f0(0x235)](),_0x3ba1e8;}return this['_injector'][_0x3fa8f0(0x38f)](X,_0x40361b,this[_0x3fa8f0(0x35c)],_0x4e6fad,_0x2ff2e5,_0x1c46d3);}[_0x3953b6(0x21d)](_0x7f9e92,_0x4cd6aa){const _0x3a9335=_0x3953b6;var _0x35c5f0,_0x2b3162;let _0x127147=this[_0x3a9335(0x1be)][_0x3a9335(0x295)]['fetchThroughInterceptors'](this[_0x3a9335(0x1be)][_0x3a9335(0x295)][_0x3a9335(0x3cd)]()['COMPRESS_MUTATION_APPLY']);(_0x35c5f0=_0x127147((_0x7f9e92==null?void 0x0:_0x7f9e92[_0x3a9335(0x2bc)])||[],null))==null||_0x35c5f0[_0x3a9335(0x345)](_0x5b5f5d=>this[_0x3a9335(0x223)][_0x3a9335(0x34a)](_0x5b5f5d['id'],_0x5b5f5d[_0x3a9335(0x30d)])),(_0x2b3162=_0x127147(_0x4cd6aa||[],null))==null||_0x2b3162['forEach'](_0x574025=>this[_0x3a9335(0x223)]['executeCommand'](_0x574025['id'],_0x574025[_0x3a9335(0x30d)]));}};Kt=L([I(0x3,_0x103c1d(_0x197e5f)),I(0x4,_0x103c1d(_0x3ff10d)),I(0x5,_0x103c1d(_0x58c06a)),I(0x6,_0x103c1d(_0x2d2b7f)),I(0x7,_0x103c1d(F)),I(0x8,_0x2912b3),I(0x9,_0x20e24f),I(0xa,_0x39f16e),I(0xb,_0x15e9b0),I(0xc,_0x5fafcb(Mt)),I(0xd,_0x5fafcb(B))],Kt);let qt=class extends Kt{constructor(_0x39a937,_0x57c587,_0x4455c0,_0xf5d453,_0x44b208,_0x2ad012,_0x5a7da7,_0x3bab8b,_0x57ddea,_0x64167e,_0x8d0e7e,_0x49d599,_0xd4f477,_0x1905c2){const _0x362b74=_0x3953b6;super(_0x39a937,_0x4455c0,_0x57c587,_0xf5d453,_0x44b208,_0x2ad012,_0x5a7da7,_0x3bab8b,_0x57ddea,_0x64167e,_0x8d0e7e,_0x49d599,_0xd4f477,_0x1905c2),this[_0x362b74(0x2aa)]=_0x39a937,this[_0x362b74(0x28a)]=_0x57c587,N(this,_0x362b74(0x20a),null);}[_0x3953b6(0x2c8)](_0x4775c1){const _0x3c0e8a=_0x3953b6;this[_0x3c0e8a(0x20a)]=_0x4775c1;}['dispose'](){const _0x568ac0=_0x3953b6;this[_0x568ac0(0x20a)]=null,super[_0x568ac0(0x1d4)]();}['_createHandler'](){const _0x554313=_0x3953b6;let _0x598123=super[_0x554313(0x388)]();return _0x598123[_0x554313(0x1ae)]=_0x1b08ea=>{const _0x593395=_0x554313;var _0x34fc14,_0x554274;return(_0x34fc14=this[_0x593395(0x20a)])==null||(_0x554274=_0x34fc14['onTransformIME'])==null?void 0x0:_0x554274['call'](_0x34fc14,_0x1b08ea);},_0x598123[_0x554313(0x318)]=_0x4bcb3f=>{const _0x135369=_0x554313;var _0x41c0b4,_0x25c37d;return(_0x41c0b4=this['_handlerCallback'])==null||(_0x25c37d=_0x41c0b4[_0x135369(0x318)])==null?void 0x0:_0x25c37d[_0x135369(0x273)](_0x41c0b4,_0x4bcb3f);},_0x598123[_0x554313(0x20b)]=_0x3c8274=>{const _0x194ca4=_0x554313;var _0x10bcbd,_0x1f588d;return(_0x10bcbd=this[_0x194ca4(0x20a)])==null||(_0x1f588d=_0x10bcbd['onTransformSelections'])==null?void 0x0:_0x1f588d['call'](_0x10bcbd,_0x3c8274);},_0x598123[_0x554313(0x29a)]=_0x3b9cde=>{const _0x5a4e2b=_0x554313;var _0x3c30d2,_0x548c04;return(_0x3c30d2=this[_0x5a4e2b(0x20a)])==null||(_0x548c04=_0x3c30d2[_0x5a4e2b(0x29a)])==null?void 0x0:_0x548c04['call'](_0x3c30d2,_0x3b9cde);},_0x598123[_0x554313(0x210)]=_0x1a02fd=>{const _0x576a9a=_0x554313;var _0x233b8d,_0x3a4c03,_0x2de31c;if(!((_0x233b8d=this['_handlerCallback'])!=null&&_0x233b8d[_0x576a9a(0x210)]))throw Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x3a4c03=this[_0x576a9a(0x20a)])==null||(_0x2de31c=_0x3a4c03[_0x576a9a(0x210)])==null?void 0x0:_0x2de31c[_0x576a9a(0x273)](_0x3a4c03,_0x1a02fd);},_0x598123['onTransformRemoteChangesetByStateCache']=_0x5cc280=>{const _0x1cc925=_0x554313;var _0x3000c8,_0x55750d,_0x50822d;if(!((_0x3000c8=this[_0x1cc925(0x20a)])!=null&&_0x3000c8[_0x1cc925(0x2d9)]))throw Error(_0x1cc925(0x1f0));return(_0x55750d=this['_handlerCallback'])==null||(_0x50822d=_0x55750d['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x50822d[_0x1cc925(0x273)](_0x55750d,_0x5cc280);},_0x598123;}async[_0x3953b6(0x22b)](){const _0x12cbe6=_0x3953b6;let _0x46f26c=await super[_0x12cbe6(0x22b)]();return this['disposeWithMe'](this['_commandService'][_0x12cbe6(0x326)]((_0x3bbd14,_0x2c6cfa)=>{const _0xc687fd=_0x12cbe6;if(_0x3bbd14[_0xc687fd(0x28a)]!==_0x2f2ee7[_0xc687fd(0x1c0)]||_0x2c6cfa!=null&&_0x2c6cfa['fromCollab']||_0x2c6cfa!=null&&_0x2c6cfa[_0xc687fd(0x370)]||_0x3bbd14['id']===_0x437197['id'])return;let _0x3277d7=_0x3bbd14[_0xc687fd(0x30d)];if((_0x3277d7==null?void 0x0:_0x3277d7[_0xc687fd(0x3b6)])!==this[_0xc687fd(0x2aa)])return;let _0x33f903=_0x3bbd14,_0x4618ac=this[_0xc687fd(0x1be)][_0xc687fd(0x295)]['fetchThroughInterceptors'](this[_0xc687fd(0x1be)][_0xc687fd(0x295)][_0xc687fd(0x3cd)]()['COMPRESS_MUTATION_SEND'])([_0x33f903],this[_0xc687fd(0x27b)])||[_0x33f903];this[_0xc687fd(0x212)](_0x4618ac[0x0]);})),_0x46f26c;}};qt=L([I(0x3,_0x103c1d(_0x197e5f)),I(0x4,_0x103c1d(_0x3ff10d)),I(0x5,_0x103c1d(_0x58c06a)),I(0x6,_0x103c1d(_0x2d2b7f)),I(0x7,_0x103c1d(F)),I(0x8,_0x2912b3),I(0x9,_0x20e24f),I(0xa,_0x39f16e),I(0xb,_0x15e9b0),I(0xc,_0x5fafcb(Mt)),I(0xd,_0x5fafcb(B))],qt);let Jt=class extends Kt{constructor(_0x3e8ae1,_0x18c12e,_0x148ae8,_0x298877,_0x44a232,_0x1e980b,_0x5efd33,_0x5f3331,_0x246856,_0x27ee5d,_0x4698bb,_0x3e9651,_0x5d3438,_0x33754a,_0x2d6080){super(_0x3e8ae1,_0x148ae8,_0x18c12e,_0x298877,_0x44a232,_0x1e980b,_0x5efd33,_0x246856,_0x27ee5d,_0x4698bb,_0x3e9651,_0x5d3438,_0x33754a,_0x2d6080),this['unitID']=_0x3e8ae1,this['type']=_0x18c12e,this['_sheetTransformSelectionsService']=_0x5f3331;}[_0x3953b6(0x388)](){const _0x2fc5bf=_0x3953b6;let _0x22e939=super['_createHandler']();return _0x22e939[_0x2fc5bf(0x20b)]=_0x7936d4=>this[_0x2fc5bf(0x38b)][_0x2fc5bf(0x34b)](_0x7936d4),_0x22e939;}async[_0x3953b6(0x22b)](){const _0x3aab96=_0x3953b6;let _0x350c4e=await super[_0x3aab96(0x22b)]();return this[_0x3aab96(0x3ce)](this[_0x3aab96(0x223)][_0x3aab96(0x326)]((_0x4a3727,_0x1cd42c)=>{const _0x26e3a3=_0x3aab96;if(_0x4a3727[_0x26e3a3(0x28a)]!==_0x2f2ee7[_0x26e3a3(0x1c0)]||_0x1cd42c!=null&&_0x1cd42c[_0x26e3a3(0x1b6)]||_0x1cd42c!=null&&_0x1cd42c['onlyLocal'])return;let _0x504298=_0x4a3727[_0x26e3a3(0x30d)];if((_0x504298==null?void 0x0:_0x504298['unitId'])!==this[_0x26e3a3(0x2aa)])return;let _0x4a6295=_0x4a3727,_0x1ab9d2=this['_compressMutationService']['interceptor'][_0x26e3a3(0x3c4)](this[_0x26e3a3(0x1be)][_0x26e3a3(0x295)][_0x26e3a3(0x3cd)]()[_0x26e3a3(0x23d)])([_0x4a6295],this['_univerInstanceService'])||[_0x4a6295];this[_0x26e3a3(0x212)](_0x1ab9d2[0x0]);})),_0x350c4e;}};Jt=L([I(0x3,_0x103c1d(_0x197e5f)),I(0x4,_0x103c1d(_0x3ff10d)),I(0x5,_0x103c1d(_0x58c06a)),I(0x6,_0x103c1d(_0x2d2b7f)),I(0x7,_0x103c1d(V)),I(0x8,_0x103c1d(F)),I(0x9,_0x2912b3),I(0xa,_0x20e24f),I(0xb,_0x39f16e),I(0xc,_0x15e9b0),I(0xd,_0x5fafcb(Mt)),I(0xe,_0x5fafcb(B))],Jt);const Yt=_0x1f70b2('univer-pro.collaboration-client.network-condition.service');function Xt(_0x402c67){const _0x33bf83=_0x3953b6;let _0x384897=_0x402c67['data'],_0x513a88=JSON[_0x33bf83(0x3c8)](_0x384897);switch(_0x513a88[_0x33bf83(0x342)]){case _0x536fe6['HEARTBEAT']:case _0x536fe6['HELLO']:{let _0x69fcef=_0x513a88[_0x33bf83(0x3b8)];return{..._0x513a88,'data':_0x69fcef,'cmd':_0x513a88[_0x33bf83(0x342)]};}case _0x536fe6[_0x33bf83(0x20c)]:{let _0x29c030=_0x513a88[_0x33bf83(0x346)];return{..._0x513a88,'data':_0x29c030,'cmd':_0x513a88[_0x33bf83(0x342)]};}case _0x536fe6[_0x33bf83(0x3b9)]:{let _0x4780c4=_0x513a88[_0x33bf83(0x192)];switch(_0x4780c4['eventID']){case _0x1e3d55['PERMISSION_REJ']:var _0x117818;return{..._0x513a88,'data':{..._0x4780c4,'data':(_0x117818=_0x4780c4[_0x33bf83(0x3d9)])==null?void 0x0:_0x117818['cs']},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x2b6)]:var _0xeb5ea8;return{..._0x513a88,'data':{..._0x4780c4,'data':(_0xeb5ea8=_0x4780c4['csAckEvent'])==null?void 0x0:_0xeb5ea8['cs']},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x3b0)]:var _0x39a97b;return{..._0x513a88,'data':{..._0x4780c4,'data':(_0x39a97b=_0x4780c4[_0x33bf83(0x28f)])==null?void 0x0:_0x39a97b['cs']},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x3ac)]:var _0xbfc9c;return{..._0x513a88,'data':{..._0x4780c4,'data':(_0xbfc9c=_0x4780c4[_0x33bf83(0x272)])==null?void 0x0:_0xbfc9c['cs']},'cmd':_0x513a88['cmd']};case _0x1e3d55['CHANGESET_SHOULD_RETRY']:var _0x6edff4;return{..._0x513a88,'data':{..._0x4780c4,'data':(_0x6edff4=_0x4780c4[_0x33bf83(0x251)])==null?void 0x0:_0x6edff4['cs']},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x243)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4['updateCursorEvent']},'cmd':_0x513a88[_0x33bf83(0x342)]};case _0x1e3d55[_0x33bf83(0x369)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4[_0x33bf83(0x325)]},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x3c2)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4['leaveEvent']},'cmd':_0x513a88[_0x33bf83(0x342)]};case _0x1e3d55['LIVESHARE_NEW_HOST']:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4[_0x33bf83(0x2ce)]},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x1fc)]:case _0x1e3d55[_0x33bf83(0x389)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4['liveShareOperation']},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x1c1)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4[_0x33bf83(0x2ce)]},'cmd':_0x513a88['cmd']};case _0x1e3d55[_0x33bf83(0x1e7)]:return{..._0x513a88,'data':_0x4780c4,'cmd':_0x513a88[_0x33bf83(0x342)]};case _0x1e3d55[_0x33bf83(0x3e5)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4['commentUpdateEvent']},'cmd':_0x513a88[_0x33bf83(0x342)]};case _0x1e3d55[_0x33bf83(0x3ed)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4['updatePermissionObjEvent']},'cmd':_0x513a88[_0x33bf83(0x342)]};case _0x1e3d55[_0x33bf83(0x36c)]:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4[_0x33bf83(0x1a5)]},'cmd':_0x513a88[_0x33bf83(0x342)]};case _0x1e3d55['UNISCRIPT_RUN']:return{..._0x513a88,'data':{..._0x4780c4,'data':_0x4780c4[_0x33bf83(0x246)]},'cmd':_0x513a88['cmd']};default:return _0x513a88;}}default:return _0x513a88;}}function Zt(_0x5681f0){const _0x2da4ca=_0x3953b6;switch(_0x5681f0[_0x2da4ca(0x342)]){case _0x536fe6[_0x2da4ca(0x233)]:case _0x536fe6[_0x2da4ca(0x3b7)]:return JSON[_0x2da4ca(0x3f2)]({'cmd':_0x5681f0[_0x2da4ca(0x342)],'routeKey':_0x5681f0[_0x2da4ca(0x3fb)]});case _0x536fe6[_0x2da4ca(0x354)]:{let _0x5a8bcd;switch(_0x5681f0[_0x2da4ca(0x3d7)][_0x2da4ca(0x220)]){case _0x1e3d55['UPDATE_CURSOR']:_0x5a8bcd={'eventID':_0x1e3d55[_0x2da4ca(0x243)],'updateCursorEvent':_0x5681f0['data'][_0x2da4ca(0x3d7)]};break;case _0x1e3d55[_0x2da4ca(0x3c2)]:_0x5a8bcd={'eventID':_0x1e3d55[_0x2da4ca(0x3c2)],'leaveEvent':_0x5681f0['data'][_0x2da4ca(0x3d7)]};break;case _0x1e3d55[_0x2da4ca(0x369)]:_0x5a8bcd={'eventID':_0x1e3d55['USERS_ENTER'],'joinEvent':_0x5681f0[_0x2da4ca(0x3d7)][_0x2da4ca(0x3d7)]};break;case _0x1e3d55['LIVESHARE_NEW_HOST']:_0x5a8bcd={'eventID':_0x1e3d55[_0x2da4ca(0x37a)],'liveShareNewHost':_0x5681f0[_0x2da4ca(0x3d7)][_0x2da4ca(0x3d7)]};break;case _0x1e3d55[_0x2da4ca(0x389)]:_0x5a8bcd={'eventID':_0x1e3d55['LIVESHARE_OPERATION'],'liveShareOperation':_0x5681f0[_0x2da4ca(0x3d7)][_0x2da4ca(0x3d7)]};break;case _0x1e3d55[_0x2da4ca(0x1c1)]:_0x5a8bcd={'eventID':_0x1e3d55[_0x2da4ca(0x1c1)],'liveShareTerminate':_0x5681f0[_0x2da4ca(0x3d7)][_0x2da4ca(0x3d7)]};break;case _0x1e3d55[_0x2da4ca(0x1c7)]:_0x5a8bcd={'eventID':_0x1e3d55['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x5681f0[_0x2da4ca(0x3d7)][_0x2da4ca(0x3d7)]};break;case _0x1e3d55['LIVESHARE_FETCH_OPERATIONS']:_0x5a8bcd={'eventID':_0x1e3d55[_0x2da4ca(0x1fc)]};break;default:_0x5a8bcd={'eventID':_0x5681f0[_0x2da4ca(0x3d7)]['eventID']};}return JSON[_0x2da4ca(0x3f2)]({'cmd':_0x5681f0['cmd'],'routeKey':_0x5681f0[_0x2da4ca(0x3fb)],'collaMsg':_0x5a8bcd});}case _0x536fe6[_0x2da4ca(0x20c)]:return JSON[_0x2da4ca(0x3f2)]({'cmd':_0x5681f0['cmd'],'routeKey':_0x5681f0[_0x2da4ca(0x3fb)],'joinReq':_0x5681f0[_0x2da4ca(0x3d7)]});case _0x536fe6['LEAVE']:return JSON[_0x2da4ca(0x3f2)]({'cmd':_0x5681f0[_0x2da4ca(0x342)],'routeKey':_0x5681f0[_0x2da4ca(0x3fb)],'leaveReq':_0x5681f0['data']});default:throw Error(_0x2da4ca(0x3b3));}}const Qt=_0x1f70b2(_0x3953b6(0x232));function $t(_0xb211ca,_0x3a0f49,_0xc7af5e){const _0x58224f=_0x3953b6;return _0xb211ca+'/'+_0x3a0f49+_0x58224f(0x2d2)+_0xc7af5e+_0x58224f(0x37f);}let en=class extends _0x1563fe{constructor(_0x345e7b,_0x1a78dd,_0x4dfc9b,_0x4b4886,_0x5ebbe1){const _0x570493=_0x3953b6;super(),this[_0x570493(0x37e)]=_0x345e7b,this[_0x570493(0x253)]=_0x1a78dd,this[_0x570493(0x2db)]=_0x4dfc9b,this[_0x570493(0x34f)]=_0x4b4886,this[_0x570493(0x33a)]=_0x5ebbe1;}[_0x3953b6(0x2f1)](_0x1bd349){const _0x318f3a=_0x3953b6;let _0x39f1fe=this[_0x318f3a(0x37e)][_0x318f3a(0x319)](_0x358e9b);if(!_0x39f1fe)throw Error(_0x318f3a(0x275));let _0x3400d9=_0x39f1fe['createSocket'](_0x1bd349);if(!_0x3400d9)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x47530b=new _0x1c3c94(),_0x2cde9d=new _0x2c4c98();_0x47530b['add'](_0x3400d9[_0x318f3a(0x1a4)]['subscribe'](_0x37b925=>_0x2cde9d[_0x318f3a(0x1aa)](_0x37b925))),_0x47530b['add'](_0x5f56a7(()=>_0x2cde9d[_0x318f3a(0x3e3)]()));let _0x421b8e=new _0x2c4c98();_0x47530b[_0x318f3a(0x1e4)](_0x3400d9[_0x318f3a(0x2da)]['subscribe'](_0x52a9ef=>_0x421b8e['next'](_0x52a9ef))),_0x47530b[_0x318f3a(0x1e4)](_0x5f56a7(()=>_0x421b8e['complete']()));let _0x149d06=new _0x2c4c98();_0x47530b[_0x318f3a(0x1e4)](_0x3400d9['message$'][_0x318f3a(0x2a1)](_0x268727=>{let _0x2edda6=Xt(_0x268727);_0x149d06['next'](_0x2edda6);})),_0x47530b[_0x318f3a(0x1e4)](_0x5f56a7(()=>_0x149d06[_0x318f3a(0x3e3)]()));let _0x7e2740,_0x44f51f=()=>{const _0x15a8cb=_0x318f3a;_0x421b8e[_0x15a8cb(0x1aa)](new Event(_0x15a8cb(0x311))),_0x2cde9d[_0x15a8cb(0x1aa)](new Event(_0x15a8cb(0x311))),_0x7e2740['close']();};return _0x7e2740={'memberID':'','close$':_0x2cde9d[_0x318f3a(0x28e)](),'error$':_0x421b8e[_0x318f3a(0x28e)](),'open$':_0x3400d9['open$'],'message$':_0x149d06[_0x318f3a(0x28e)](),'send':_0x49c624=>{const _0x37e4fa=_0x318f3a;if(_0x49c624[_0x37e4fa(0x342)]===_0x536fe6[_0x37e4fa(0x354)]){if(_0x49c624[_0x37e4fa(0x3d7)]['eventID']===_0x1e3d55[_0x37e4fa(0x1f5)]){this[_0x37e4fa(0x39c)](_0x7e2740,_0x49c624[_0x37e4fa(0x3d7)])[_0x37e4fa(0x39e)](_0x10ae03=>{const _0x12cf91=_0x37e4fa;this[_0x12cf91(0x34f)]['error'](_0x10ae03),_0x44f51f();});return;}if(_0x49c624[_0x37e4fa(0x3d7)][_0x37e4fa(0x220)]===_0x1e3d55[_0x37e4fa(0x231)]){let _0xa6bb16=_0x49c624[_0x37e4fa(0x3d7)];this['_fetchMissChangesets'](_0xa6bb16)[_0x37e4fa(0x385)](_0xc35af8=>{const _0x5d691e=_0x37e4fa;_0x149d06[_0x5d691e(0x1aa)]({'cmd':_0x536fe6[_0x5d691e(0x3b9)],'code':_0x1cc43b['OK'],'routeKey':_0xa6bb16[_0x5d691e(0x3d7)][_0x5d691e(0x2aa)],'routeType':'','data':{'eventID':_0x1e3d55[_0x5d691e(0x2b0)],'data':{'changesets':_0xc35af8}}});})[_0x37e4fa(0x39e)](_0x3f9a15=>{const _0x5e1df9=_0x37e4fa;this[_0x5e1df9(0x34f)][_0x5e1df9(0x1ba)](_0x3f9a15),_0x44f51f();});return;}}_0x3400d9[_0x37e4fa(0x1f8)](Zt(_0x49c624));},'close':()=>{const _0x770461=_0x318f3a;_0x3400d9[_0x770461(0x282)](),_0x47530b[_0x770461(0x1d4)]();}},_0x7e2740;}async[_0x3953b6(0x39c)](_0x5cff17,_0x41b288){const _0x8e99a8=_0x3953b6;var _0xcead9f;let {unitType:_0x1c8724,unitID:_0x587e38,changeset:_0x49dc50}=_0x41b288['data'],_0x4a6b80={'unitID':_0x587e38,'memberID':_0x5cff17[_0x8e99a8(0x27e)],'type':_0x1c8724,'changeset':_0x191c0f(_0x49dc50)},_0x4c7461=this[_0x8e99a8(0x2db)]['getConfig'](H),_0x29a4de=$t((_0xcead9f=_0x4c7461==null?void 0x0:_0x4c7461['collabSubmitChangesetUrl'])==null?_0x8e99a8(0x38a):_0xcead9f,_0x1c8724,_0x587e38);try{await this[_0x8e99a8(0x253)][_0x8e99a8(0x1dc)](_0x29a4de,{'body':_0x4a6b80});}catch(_0x9aef5d){throw this[_0x8e99a8(0x34f)]['error'](_0x8e99a8(0x29e),_0x8e99a8(0x3a5)),_0x9aef5d;}}async[_0x3953b6(0x234)](_0xb3b30c){const _0x12d25a=_0x3953b6;let {unitID:_0x1d9189,from:_0x444221,to:_0x37c201,unitType:_0x56c6c1}=_0xb3b30c[_0x12d25a(0x3d7)];return(await this['_snapshotServerService'][_0x12d25a(0x2ab)]({'metadata':void 0x0},{'unitID':_0x1d9189,'type':_0x56c6c1,'from':_0x444221,'to':_0x37c201}))[_0x12d25a(0x3d4)][_0x12d25a(0x2a6)](_0x208a39=>((_0x208a39['mutations']===null||_0x208a39['mutations']===void 0x0)&&(_0x208a39['mutations']=[]),_0x208a39));}};en=L([I(0x0,_0x103c1d(_0x197e5f)),I(0x1,_0x103c1d(_0x2f837f)),I(0x2,_0x58e790),I(0x3,_0x20e24f),I(0x4,_0x27d66c)],en);let Q=class extends _0x1563fe{get[_0x3953b6(0x1ef)](){const _0x142384=_0x3953b6;return this[_0x142384(0x32e)][_0x142384(0x277)]();}constructor(_0x3524b8,_0x25f1d4,_0x316851,_0x1638a2,_0x2184ca,_0x208e21){const _0x3368c7=_0x3953b6;super(),this[_0x3368c7(0x37e)]=_0x3524b8,this[_0x3368c7(0x34f)]=_0x25f1d4,this[_0x3368c7(0x2db)]=_0x316851,this[_0x3368c7(0x215)]=_0x1638a2,this['_collaborationUIEventService']=_0x2184ca,this[_0x3368c7(0x333)]=_0x208e21,N(this,'_socket$',new _0x5dffa6(void 0x0)),N(this,_0x3368c7(0x32a),this[_0x3368c7(0x32e)][_0x3368c7(0x28e)]()),N(this,'_candidateSocket',null),N(this,_0x3368c7(0x2cc),new Map()),N(this,_0x3368c7(0x1ea),new _0x5dffa6(z[_0x3368c7(0x2b7)])),N(this,_0x3368c7(0x3a3),this[_0x3368c7(0x1ea)][_0x3368c7(0x28e)]()),N(this,_0x3368c7(0x1dd),!0x1),N(this,'_retryConnectingTimer',void 0x0),N(this,_0x3368c7(0x3af),0x0),N(this,_0x3368c7(0x31c),void 0x0),N(this,_0x3368c7(0x3ab),void 0x0),this[_0x3368c7(0x3a1)]();}[_0x3953b6(0x3a1)](){const _0x3d5ccd=_0x3953b6;this[_0x3d5ccd(0x333)]&&this[_0x3d5ccd(0x3ce)](this[_0x3d5ccd(0x333)][_0x3d5ccd(0x27a)][_0x3d5ccd(0x2a1)](_0xba02b5=>{const _0x118eb7=_0x3d5ccd;_0xba02b5&&!this[_0x118eb7(0x1ef)]&&this['reconnect'](),_0xba02b5||this['_onOffline']();}));}[_0x3953b6(0x1d4)](){const _0x5588b8=_0x3953b6;super[_0x5588b8(0x1d4)](),this['_clearRetryConnectingTimer'](),this[_0x5588b8(0x335)](),this[_0x5588b8(0x1f9)](),this[_0x5588b8(0x2cc)][_0x5588b8(0x345)](_0x136d41=>_0x136d41[_0x5588b8(0x1d4)]()),this[_0x5588b8(0x2cc)][_0x5588b8(0x31e)](),this[_0x5588b8(0x1ea)][_0x5588b8(0x3e3)]();}async[_0x3953b6(0x32c)](_0x58b8d7){const _0x2d3131=_0x3953b6;if(this[_0x2d3131(0x2cc)][_0x2d3131(0x3bd)](_0x58b8d7))return this[_0x2d3131(0x2cc)][_0x2d3131(0x319)](_0x58b8d7);this['_tryEnsureSocket']();let _0x33bc38=this[_0x2d3131(0x37e)][_0x2d3131(0x38f)](kt,_0x58b8d7,this[_0x2d3131(0x32e)][_0x2d3131(0x28e)]());return this[_0x2d3131(0x2cc)][_0x2d3131(0x349)](_0x58b8d7,_0x33bc38),_0x33bc38;}[_0x3953b6(0x1f2)](_0x20b25d){const _0x5e352c=_0x3953b6;let _0x33a556=this[_0x5e352c(0x2cc)][_0x5e352c(0x319)](_0x20b25d);if(_0x33a556&&(this[_0x5e352c(0x2cc)][_0x5e352c(0x340)](_0x20b25d),_0x33a556['close']()),!this['_sessions'][_0x5e352c(0x2c5)]){var _0x5a1277;(_0x5a1277=this['_socket'])==null||_0x5a1277[_0x5e352c(0x282)]();}}[_0x3953b6(0x1a8)](){const _0xf8de7e=_0x3953b6;this[_0xf8de7e(0x3af)]=0x0,this['_clearRetryConnectingTimer'](),this[_0xf8de7e(0x19f)]();}[_0x3953b6(0x3de)](){const _0x24374c=_0x3953b6;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x24374c(0x21a)]),this[_0x24374c(0x21a)]=null);}async[_0x3953b6(0x21f)](){const _0x4359ac=_0x3953b6;var _0x42a409;let _0x15c399=this[_0x4359ac(0x2db)][_0x4359ac(0x338)](H),_0x1352a3=(_0x42a409=_0x15c399==null?void 0x0:_0x15c399[_0x4359ac(0x250)])==null?ft:_0x42a409,_0x10e231=await this[_0x4359ac(0x215)][_0x4359ac(0x3d1)](_0x1352a3);return this[_0x4359ac(0x242)]=_0x10e231,_0x10e231;}async[_0x3953b6(0x24e)](){const _0xd8981c=_0x3953b6;try{var _0x31bcfe,_0x229740;let _0x533a11=(_0x31bcfe=(_0x229740=this[_0xd8981c(0x1ef)])==null?this[_0xd8981c(0x242)]:_0x229740)==null?await this[_0xd8981c(0x21f)]():_0x31bcfe;if(_0x533a11){let _0x5e39dc=_0x533a11['send'];_0x533a11['send']=_0x4f56bd=>(_0x4f56bd[_0xd8981c(0x342)]!==_0x536fe6[_0xd8981c(0x3ee)]&&this[_0xd8981c(0x1f4)](),_0x5e39dc[_0xd8981c(0x30c)](_0x533a11,[_0x4f56bd])),_0x533a11[_0xd8981c(0x33f)][_0xd8981c(0x2a1)](_0x4191a8=>this['_onMessage'](_0x533a11,_0x4191a8)),_0x533a11[_0xd8981c(0x2da)][_0xd8981c(0x3e2)](_0x32bb1e(0x1))[_0xd8981c(0x2a1)](_0x376704=>this['_logService']['error'](_0xd8981c(0x2fc),_0x376704)),_0x533a11[_0xd8981c(0x25c)]['pipe'](_0x32bb1e(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x533a11);}),_0x533a11[_0xd8981c(0x1a4)]['pipe'](_0x32bb1e(0x1))[_0xd8981c(0x2a1)](_0x23ec0a=>{const _0xbb5077=_0xd8981c;this['_logService'][_0xbb5077(0x348)](_0xbb5077(0x22c),_0xbb5077(0x309),_0x23ec0a),this[_0xbb5077(0x337)]();});}}catch(_0x3f997d){this[_0xd8981c(0x34f)][_0xd8981c(0x1ba)](_0x3f997d),this[_0xd8981c(0x337)]();}}[_0x3953b6(0x322)](_0xc6b75){const _0x11c752=_0x3953b6;this[_0x11c752(0x34f)][_0x11c752(0x348)](_0x11c752(0x22c),_0x11c752(0x2b4)),_0xc6b75[_0x11c752(0x1f8)]({'cmd':_0x536fe6[_0x11c752(0x3b7)]}),this[_0x11c752(0x1f4)]();}[_0x3953b6(0x377)](){const _0x4ec80a=_0x3953b6;this[_0x4ec80a(0x1dd)]=!0x1,this[_0x4ec80a(0x242)]=null,this[_0x4ec80a(0x1ea)][_0x4ec80a(0x1aa)](z[_0x4ec80a(0x3da)]),this[_0x4ec80a(0x32e)]['next'](null),this['_clearTimeoutTimer'](),this[_0x4ec80a(0x1f9)]();}[_0x3953b6(0x337)](){const _0x288577=_0x3953b6;var _0xe55172;this[_0x288577(0x377)](),this[_0x288577(0x3af)]<((_0xe55172=this[_0x288577(0x2db)][_0x288577(0x338)](_0x288577(0x2c6)))==null?0x3:_0xe55172)?(this[_0x288577(0x254)][_0x288577(0x25b)]({'id':P[_0x288577(0x300)]}),this[_0x288577(0x19f)]()):this['_collaborationUIEventService']['emitEvent']({'id':P['SOCKET_FAILED']});}[_0x3953b6(0x19f)](){const _0x26df0f=_0x3953b6;var _0x3abef8;let _0x4cdf05=this['_retryCount'],_0x47d077=this['_configService'][_0x26df0f(0x338)](H),_0x80c10e=_0x4cdf05===0x0?0x0:((_0x3abef8=_0x47d077==null?void 0x0:_0x47d077[_0x26df0f(0x315)])==null?0x4e20:_0x3abef8)*0x2**_0x4cdf05;this[_0x26df0f(0x21a)]=setTimeout(()=>{const _0x5d592f=_0x26df0f;clearTimeout(this[_0x5d592f(0x21a)]),this[_0x5d592f(0x21a)]=null,this[_0x5d592f(0x24e)]();},_0x80c10e),this[_0x26df0f(0x3af)]+=0x1;}['_onMessage'](_0x752221,_0x52b9a3){const _0x59253c=_0x3953b6;let {cmd:_0x354aa2}=_0x52b9a3;_0x354aa2===_0x536fe6['HELLO']&&!this[_0x59253c(0x1dd)]&&(_0x752221[_0x59253c(0x27e)]=_0x52b9a3[_0x59253c(0x3d7)][_0x59253c(0x27e)],this[_0x59253c(0x32e)][_0x59253c(0x1aa)](_0x752221),this['_status$'][_0x59253c(0x1aa)](z[_0x59253c(0x2e5)]),this[_0x59253c(0x1dd)]=!0x0,this['_candidateSocket']=null),_0x354aa2===_0x536fe6[_0x59253c(0x233)]&&this[_0x59253c(0x335)](),this[_0x59253c(0x1f4)]();}[_0x3953b6(0x1f4)](){const _0x5c30ed=_0x3953b6;var _0xfbb35e;this[_0x5c30ed(0x1f9)](),this[_0x5c30ed(0x31c)]=setTimeout(()=>this[_0x5c30ed(0x1e5)](),(_0xfbb35e=this['_configService'][_0x5c30ed(0x338)](_0x5c30ed(0x364)))==null?0x7530:_0xfbb35e);}['_sendHeartbeat'](){const _0x15a936=_0x3953b6;this[_0x15a936(0x1ef)]['send']({'cmd':_0x536fe6['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x3953b6(0x386)](){const _0x2866fc=_0x3953b6;var _0xb65eb8;this['_timeoutTimer']=setTimeout(()=>this[_0x2866fc(0x337)](),(_0xb65eb8=this[_0x2866fc(0x2db)][_0x2866fc(0x338)](_0x2866fc(0x38d)))==null?gt:_0xb65eb8);}[_0x3953b6(0x1f9)](){const _0x181fbd=_0x3953b6;this[_0x181fbd(0x31c)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x3953b6(0x335)](){const _0x4cb9c8=_0x3953b6;this[_0x4cb9c8(0x3ab)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};Q=L([I(0x0,_0x103c1d(_0x197e5f)),I(0x1,_0x20e24f),I(0x2,_0x58e790),I(0x3,Qt),I(0x4,_0x103c1d(F)),I(0x5,_0x5fafcb(Yt))],Q);let tn=class extends _0x498085{constructor(_0x3336eb,_0x487cd6,_0x35017b,_0x49a010){const _0x48adc3=_0x3953b6;var _0xceee44;super(),this[_0x48adc3(0x37e)]=_0x3336eb,this[_0x48adc3(0x320)]=_0x487cd6,this[_0x48adc3(0x2db)]=_0x35017b,this[_0x48adc3(0x27b)]=_0x49a010,N(this,_0x48adc3(0x1bd),new Map()),N(this,_0x48adc3(0x248),new _0x2c4c98()),N(this,_0x48adc3(0x2fa),this[_0x48adc3(0x248)][_0x48adc3(0x28e)]()),((_0xceee44=this[_0x48adc3(0x2db)][_0x48adc3(0x338)](_0x48adc3(0x314)))==null?void 0x0:_0xceee44[_0x48adc3(0x28c)])!==!0x1&&this[_0x48adc3(0x22b)]();}[_0x3953b6(0x1d4)](){const _0xd278a8=_0x3953b6;super[_0xd278a8(0x1d4)](),this[_0xd278a8(0x1bd)]['forEach'](_0x16f57a=>_0x16f57a['dispose']()),this[_0xd278a8(0x1bd)][_0xd278a8(0x31e)]();}[_0x3953b6(0x2f8)](_0xbfd843){const _0x20311b=_0x3953b6;var _0x3d2771;return(_0x3d2771=this[_0x20311b(0x1bd)][_0x20311b(0x319)](_0xbfd843))==null?null:_0x3d2771;}[_0x3953b6(0x26a)](_0x4210d2){const _0x163575=_0x3953b6;let _0xa0489f=this[_0x163575(0x2f8)](_0x4210d2);return _0xa0489f?_0x40fdb9(_0xa0489f):this[_0x163575(0x248)][_0x163575(0x3e2)](_0x385b06(_0x5bea20=>_0x5bea20['unitID']===_0x4210d2));}[_0x3953b6(0x2ae)](_0x460d78){const _0x253e56=_0x3953b6;return _0x358603(this[_0x253e56(0x26a)](_0x460d78)[_0x253e56(0x3e2)](_0x3eec09(()=>void 0x0)));}[_0x3953b6(0x22b)](){const _0x28691f=_0x3953b6;this[_0x28691f(0x27b)][_0x28691f(0x2ea)](_0x14f3b5['UNIVER_SHEET'])[_0x28691f(0x3e2)](_0x189905(this[_0x28691f(0x378)]),_0x1601fb(0x10))[_0x28691f(0x2a1)](async _0x5a2f96=>{const _0x5b0ae3=_0x28691f;let _0x49ce3f=_0x5a2f96[_0x5b0ae3(0x276)](),_0x204d5c=await this[_0x5b0ae3(0x3bf)](_0x49ce3f,_0x9039db[_0x5b0ae3(0x244)]);this[_0x5b0ae3(0x1bd)]['set'](_0x49ce3f,_0x204d5c);}),this[_0x28691f(0x27b)][_0x28691f(0x2ea)](_0x14f3b5['UNIVER_DOC'])['pipe'](_0x189905(this[_0x28691f(0x378)]),_0x1601fb(0x10))[_0x28691f(0x3e2)](_0x385b06(_0x5f9f5d=>!_0x5f9f5d[_0x28691f(0x276)]()[_0x28691f(0x281)]('__')))[_0x28691f(0x2a1)](async _0x44d845=>{const _0x457463=_0x28691f;let _0x2df50b=_0x44d845['getUnitId'](),_0x351c5a=await this[_0x457463(0x3bf)](_0x2df50b,_0x9039db[_0x457463(0x1b4)]);this['_entities'][_0x457463(0x349)](_0x2df50b,_0x351c5a);}),_0x1a7843(this['_univerInstanceService'][_0x28691f(0x1b8)](_0x14f3b5[_0x28691f(0x244)]),this[_0x28691f(0x27b)][_0x28691f(0x1b8)](_0x14f3b5[_0x28691f(0x1b4)]))[_0x28691f(0x3e2)](_0x189905(this[_0x28691f(0x378)]))[_0x28691f(0x2a1)](_0x10f343=>{const _0x25113e=_0x28691f;let _0x1e17ea=_0x10f343[_0x25113e(0x276)](),_0x3f708f=this[_0x25113e(0x1bd)]['get'](_0x1e17ea);_0x3f708f&&(_0x3f708f[_0x25113e(0x1d4)](),this[_0x25113e(0x1bd)][_0x25113e(0x340)](_0x1e17ea));});}async[_0x3953b6(0x3bf)](_0x313229,_0x466d93){const _0x65a91a=_0x3953b6;let _0x2b7b72=await this['_collabSessionService']['requireSession'](_0x313229),_0x17b6a1=this['_injector'][_0x65a91a(0x38f)](this[_0x65a91a(0x1fa)](_0x466d93),_0x313229,_0x466d93,_0x2b7b72);return await _0x17b6a1['init'](),this['_entityInit$'][_0x65a91a(0x1aa)](_0x17b6a1),_0x17b6a1;}['_getCtorByUniverType'](_0x4fe68f){const _0x5c1ffa=_0x3953b6;switch(_0x4fe68f){case _0x9039db[_0x5c1ffa(0x1b4)]:return qt;case _0x9039db[_0x5c1ffa(0x244)]:return Jt;default:throw Error(_0x5c1ffa(0x2bf)+_0x4fe68f);}}};tn=L([I(0x0,_0x103c1d(_0x197e5f)),I(0x1,_0x103c1d(Q)),I(0x2,_0x58e790),I(0x3,_0x2912b3)],tn);var nn='@univerjs-pro/collaboration-client',rn='0.20.0';let an=class extends _0x1563fe{constructor(_0x2208ec,_0x1a1842){super(),this['_univerInstanceService']=_0x2208ec,this['_configService']=_0x1a1842,this['_init']();}[_0x3953b6(0x22b)](){const _0x293905=_0x3953b6;this[_0x293905(0x3ce)](this[_0x293905(0x27b)]['focused$'][_0x293905(0x2a1)](()=>{const _0x3e17bd=_0x293905;var _0x5cdc24;let _0x38de0b=this[_0x3e17bd(0x27b)][_0x3e17bd(0x339)](),_0x46b723=(_0x5cdc24=this['_configService'][_0x3e17bd(0x338)](_0x3e17bd(0x2d3)))==null?'Univer':_0x5cdc24;_0x38de0b instanceof _0x4ec16c&&(_0x46b723=_0x38de0b[_0x3e17bd(0x2dd)]),document[_0x3e17bd(0x22e)]=_0x46b723;}));}};an=L([I(0x0,_0x2912b3),I(0x1,_0x58e790)],an);let on=class{constructor(_0x2bec8f,_0x57576b,_0x217e59){const _0xb60524=_0x3953b6;this['_configService']=_0x2bec8f,this[_0xb60524(0x253)]=_0x57576b,this[_0xb60524(0x3ae)]=_0x217e59,this[_0xb60524(0x226)]();}[_0x3953b6(0x226)](){const _0x595a90=_0x3953b6;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1c86cf,_0x5a9d30)=>_0x5a9d30(_0x1c86cf)[_0x595a90(0x3e2)](_0x340fe3(async _0xb4c06=>{const _0x5d72ac=_0x595a90;let _0x42ee9e=_0xb4c06;if(_0x42ee9e[_0x5d72ac(0x30a)]===0x191){if(typeof window>'u')throw Error(_0x5d72ac(0x240));if(window[_0x5d72ac(0x298)](this[_0x5d72ac(0x3ae)]['t'](_0x5d72ac(0x2f6)))){let _0x281f47=window[_0x5d72ac(0x32f)](window[_0x5d72ac(0x2b5)]['href']);window[_0x5d72ac(0x2b5)][_0x5d72ac(0x35d)]=this[_0x5d72ac(0x374)]()+'?url='+_0x281f47;}}return _0x42ee9e;}))});}['_getLoginPath'](){const _0x22db1d=_0x3953b6;var _0xcc3df4;let _0x1016d9=this[_0x22db1d(0x2db)][_0x22db1d(0x338)](H);return(_0xcc3df4=_0x1016d9==null?void 0x0:_0x1016d9['loginUrlKey'])==null?_0x22db1d(0x2d7):_0xcc3df4;}};on=L([I(0x0,_0x58e790),I(0x1,_0x103c1d(_0x2f837f)),I(0x2,_0x103c1d(_0x58c06a))],on);let sn=class extends _0x1563fe{constructor(_0x454ffb,_0xa68c64){const _0xe6bef3=_0x3953b6;super(),this[_0xe6bef3(0x352)]=_0x454ffb,this[_0xe6bef3(0x2db)]=_0xa68c64,this[_0xe6bef3(0x3e9)]();}['_initMergeInterceptor'](){const _0x3aa4b5=_0x3953b6;let _0x34a93c=this;this[_0x3aa4b5(0x3ce)](this[_0x3aa4b5(0x352)][_0x3aa4b5(0x2c0)]({'priority':0x3e7,'interceptor':_0x788bcc({'isMatch'(_0x235e62){const _0x12e9be=_0x3aa4b5;var _0x35bd77;if(_0x235e62['method']===_0x12e9be(0x3f8)&&(_0x35bd77=_0x235e62[_0x12e9be(0x2b3)])!=null&&_0x35bd77[_0x12e9be(0x3f6)]){let {objectID:_0x23d669,objectType:_0x2f61e7}=_0x235e62[_0x12e9be(0x2b3)][_0x12e9be(0x3f6)]||{};if(!_0x23d669||_0x2f61e7===void 0x0)return!0x1;let _0x39e374=_0x34a93c[_0x12e9be(0x198)]()+'/'+_0x2f61e7+_0x12e9be(0x1bc)+_0x23d669+_0x12e9be(0x1db);if(_0x235e62[_0x12e9be(0x26d)]===_0x39e374)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3fa26f){const _0x19cfe3=_0x3aa4b5;var _0x1c048e;return(_0x1c048e=_0x3fa26f['requestParams'])==null?void 0x0:_0x1c048e[_0x19cfe3(0x3f6)];},'mergeParamsToRequest'(_0x9d6016,_0x2c25ec){const _0x6fd874=_0x3aa4b5;let _0x501ef1=_0x34a93c['_getAPIPrefixPath']()+_0x6fd874(0x2ba),_0x31f5b3=_0x9d6016['reduce']((_0x64c4f1,_0x388cca)=>{let {unitID:_0x5d2e2c,objectID:_0xf28240,objectType:_0x4cfa34,actions:_0x3e6f2c}=_0x388cca;return _0x64c4f1[_0x5d2e2c]||(_0x64c4f1[_0x5d2e2c]={}),_0x64c4f1[_0x5d2e2c][_0xf28240]||(_0x64c4f1[_0x5d2e2c][_0xf28240]={'objectID':_0xf28240,'objectType':_0x4cfa34,'actions':[]}),_0x64c4f1[_0x5d2e2c][_0xf28240]['actions']['push'](..._0x3e6f2c),_0x64c4f1;},{}),_0x31e4f0=[];for(let _0x20f28c in _0x31f5b3)for(let _0x442725 in _0x31f5b3[_0x20f28c]){let {actions:_0x151cc7,objectType:_0x506faf}=_0x31f5b3[_0x20f28c][_0x442725],_0x26b0b4=[...new Set(_0x151cc7)];_0x31e4f0[_0x6fd874(0x222)]({'unitID':_0x20f28c,'objectID':_0x442725,'objectType':_0x506faf,'actions':_0x26b0b4});}return new _0x438264('POST',_0x501ef1,{'headers':_0x2c25ec['headers'],'withCredentials':_0x2c25ec[_0x6fd874(0x2a5)],'responseType':_0x2c25ec[_0x6fd874(0x292)],'body':{'requests':_0x31e4f0}});}},{'distributeResult'(_0x2592ad,_0x44f3aa){const _0x1cbf2e=_0x3aa4b5;let {objectActions:_0x28256c}=_0x2592ad;return _0x44f3aa[_0x1cbf2e(0x2a6)](_0x4dd2cf=>{const _0x1bfa81=_0x1cbf2e;let {unitID:_0x405db5,objectID:_0xb8d12c,actions:_0x57a837}=_0x4dd2cf,_0x178813=_0x28256c[_0x1bfa81(0x25a)](_0x384af5=>_0x384af5[_0x1bfa81(0x2aa)]===_0x405db5&&_0x384af5[_0x1bfa81(0x306)]===_0xb8d12c);return{'config':_0x4dd2cf,'result':{'actions':_0x57a837[_0x1bfa81(0x2a6)](_0x24ee78=>_0x178813==null?void 0x0:_0x178813[_0x1bfa81(0x2c1)][_0x1bfa81(0x25a)](_0x24f37c=>_0x24f37c['action']===_0x24ee78))[_0x1bfa81(0x1c2)](_0x1dbcf4=>!!_0x1dbcf4),'error':_0x2592ad[_0x1bfa81(0x1ba)]}};});}})}));}[_0x3953b6(0x198)](){const _0x286a7a=_0x3953b6;var _0x5bca22;let _0x1283b2=this['_configService'][_0x286a7a(0x338)](H);return(_0x5bca22=_0x1283b2==null?void 0x0:_0x1283b2[_0x286a7a(0x321)])==null?'/universer-api/authz':_0x5bca22;}async[_0x3953b6(0x3be)](_0x210299){const _0x18b8b7=_0x3953b6;let _0x24df96=this[_0x18b8b7(0x198)]()+'/'+_0x210299[_0x18b8b7(0x397)]+_0x18b8b7(0x328);return(await this[_0x18b8b7(0x352)][_0x18b8b7(0x1dc)](_0x24df96,{'body':_0x210299}))['body'][_0x18b8b7(0x306)]||'';}async['list'](_0xd589c9){const _0x51188f=_0x3953b6;let _0x1f4b33=this[_0x51188f(0x198)]()+_0x51188f(0x261);return(await this[_0x51188f(0x352)][_0x51188f(0x1dc)](_0x1f4b33,{'body':_0xd589c9}))['body'][_0x51188f(0x3f3)];}async[_0x3953b6(0x208)](_0xb8f286){const _0x2fa3ad=_0x3953b6;var _0x383041;let _0x5dd60c=this[_0x2fa3ad(0x198)]()+'/'+_0xb8f286[_0x2fa3ad(0x397)]+'/object/'+_0xb8f286[_0x2fa3ad(0x306)],_0x222a4d=await this[_0x2fa3ad(0x352)]['put'](_0x5dd60c,{'body':_0xb8f286});if((_0x222a4d==null||(_0x383041=_0x222a4d[_0x2fa3ad(0x3f6)])==null||(_0x383041=_0x383041[_0x2fa3ad(0x1ba)])==null?void 0x0:_0x383041[_0x2fa3ad(0x249)])!==0x1)throw Error(_0x2fa3ad(0x271));}async['allowed'](_0x58d44c){const _0x3ee20b=_0x3953b6;let _0x5f34b6=this[_0x3ee20b(0x198)]()+'/'+_0x58d44c['objectType']+'/object/'+_0x58d44c[_0x3ee20b(0x306)]+_0x3ee20b(0x1db);return(await this[_0x3ee20b(0x352)][_0x3ee20b(0x1dc)](_0x5f34b6,{'body':_0x58d44c}))[_0x3ee20b(0x3f6)][_0x3ee20b(0x2c1)];}async[_0x3953b6(0x332)](_0x57b1ac){const _0x280a1c=_0x3953b6;let _0x2c5998=this[_0x280a1c(0x198)]()+'/-/object/-/batch_allowed';return(await this[_0x280a1c(0x352)]['post'](_0x2c5998,{'body':{'requests':_0x57b1ac}}))[_0x280a1c(0x3f6)]['objectActions'];}async[_0x3953b6(0x37d)](_0x46bce7){const _0x35780d=_0x3953b6;let _0x4c4811=this[_0x35780d(0x198)]()+'/'+_0x46bce7[_0x35780d(0x397)]+_0x35780d(0x33d),_0x3bffe6=await this[_0x35780d(0x352)]['post'](_0x4c4811,{'body':_0x46bce7});return{'roles':_0x3bffe6[_0x35780d(0x3f6)][_0x35780d(0x2e3)],'actions':_0x3bffe6[_0x35780d(0x3f6)]['actions']};}async[_0x3953b6(0x1a6)](_0x48b3ad){const _0x122a2a=_0x3953b6;let _0x4ceb5a=this[_0x122a2a(0x198)]()+'/collaborator';await this[_0x122a2a(0x352)][_0x122a2a(0x340)](_0x4ceb5a,{'params':{'collaboratorID':_0x48b3ad[_0x122a2a(0x2c3)],'objectID':_0x48b3ad[_0x122a2a(0x306)],'unitID':_0x48b3ad[_0x122a2a(0x2aa)]}});}async[_0x3953b6(0x19d)](_0x111652){const _0x35a72d=_0x3953b6;let _0x1d8719=this[_0x35a72d(0x198)]()+_0x35a72d(0x27f);await this[_0x35a72d(0x352)][_0x35a72d(0x266)](_0x1d8719,{'body':_0x111652});}async['createCollaborator'](_0x1b52bd){const _0x58fb16=_0x3953b6;let _0x49cedf=this[_0x58fb16(0x198)]()+_0x58fb16(0x27f);await this[_0x58fb16(0x352)][_0x58fb16(0x1dc)](_0x49cedf,{'body':_0x1b52bd});}async[_0x3953b6(0x23a)](_0x4ef03d){const _0x4659d2=_0x3953b6;let _0x4460ae=this['_getAPIPrefixPath']()+_0x4659d2(0x27f);return(await this[_0x4659d2(0x352)][_0x4659d2(0x319)](_0x4460ae,{'params':{'objectID':_0x4ef03d[_0x4659d2(0x306)],'unitID':_0x4ef03d[_0x4659d2(0x2aa)]}}))[_0x4659d2(0x3f6)]['collaborators'];}async[_0x3953b6(0x2d4)](_0xbe95c){const _0x136209=_0x3953b6;let _0x22f0ef=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x136209(0x352)][_0x136209(0x1d9)](_0x22f0ef,{'body':_0xbe95c});}};sn=L([I(0x0,_0x103c1d(_0x2f837f)),I(0x1,_0x103c1d(_0x58e790))],sn);function cn(_0x31bcee,_0x1eaad7){const _0x481243=_0x3953b6;let _0x32e100=_0x1eaad7-_0x31bcee['length']%_0x1eaad7;return _0x31bcee+String[_0x481243(0x301)](_0x32e100)[_0x481243(0x2ac)](_0x32e100);}function ln(_0x3740dd,_0x58b894){const _0x284ad8=_0x3953b6;let _0x4fd258=_0xd53344[_0x284ad8(0x236)](0x10),_0x57a5cb=cn(_0x3740dd,0x10),_0x3ef088=_0x5b20f0['encrypt'](_0x40c4d1['parse'](_0x57a5cb),_0x52027f[_0x284ad8(0x3c8)](_0x58b894),{'iv':_0x4fd258,'padding':_0x85bc9a});return _0x4fd258['concat'](_0x3ef088['ciphertext'])['toString'](_0x52027f);}function un(){const _0x4e22bc=_0x3953b6;let _0x1bb7c6=_0x4c6967()[_0x4e22bc(0x1b5)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x1bb7c6){let _0x168d5d={'time':Math[_0x4e22bc(0x278)](Date[_0x4e22bc(0x2c7)]()/0x3e8),'domain':location[_0x4e22bc(0x1a1)]};return ln(JSON[_0x4e22bc(0x3f2)](_0x168d5d),_0x1bb7c6);}}let dn=class{constructor(_0x644152){const _0x1cab81=_0x3953b6;this[_0x1cab81(0x253)]=_0x644152,this[_0x1cab81(0x1b2)]();}[_0x3953b6(0x1b2)](){const _0x155e5b=_0x3953b6;this[_0x155e5b(0x253)][_0x155e5b(0x2c0)]({'interceptor':(_0x99d53e,_0x1c6716)=>{const _0x209532=_0x155e5b;let _0x1835b0=_0x99d53e[_0x209532(0x3a2)],_0x2d94bc=un();return _0x2d94bc&&_0x1835b0['set'](_0x209532(0x1f3),_0x2d94bc),_0x1c6716(_0x99d53e);}});}};dn=L([I(0x0,_0x103c1d(_0x2f837f))],dn);let fn=class extends _0x498085{constructor(_0x53db86,_0x2de06b,_0x47ac52){const _0x4c26f5=_0x3953b6;super(),this[_0x4c26f5(0x34f)]=_0x53db86,this[_0x4c26f5(0x205)]=_0x2de06b,this['_localCacheService']=_0x47ac52,N(this,_0x4c26f5(0x3a0),new _0x5dffa6(null)),N(this,'unitInfo$',this[_0x4c26f5(0x3a0)][_0x4c26f5(0x28e)]());}async[_0x3953b6(0x18d)](_0x46be7d,_0x364420,_0x5eb11b){const _0x59da52=_0x3953b6;this[_0x59da52(0x3a0)][_0x59da52(0x1aa)]({'unitId':_0x46be7d,'type':_0x364420});let _0x4ea979=null;switch(_0x364420){case _0x9039db[_0x59da52(0x244)]:_0x4ea979=await this['_snapshotService']['loadSheet'](_0x46be7d,_0x5eb11b);break;case _0x9039db[_0x59da52(0x1b4)]:_0x4ea979=await this[_0x59da52(0x205)][_0x59da52(0x1d3)](_0x46be7d,_0x5eb11b);break;default:this[_0x59da52(0x34f)]['error']('[DataLoaderService]',_0x59da52(0x367));break;}return _0x4ea979;}async[_0x3953b6(0x27d)](_0x4b0f71,_0x21e857,_0x3a3184){const _0x42e991=_0x3953b6;var _0x28178d;this[_0x42e991(0x3a0)][_0x42e991(0x1aa)]({'unitId':_0x4b0f71,'type':_0x21e857,'subUnitId':_0x3a3184});let _0x5891cc=0x0,_0x1af92c=await((_0x28178d=this[_0x42e991(0x36b)])==null?void 0x0:_0x28178d[_0x42e991(0x193)](_0x4b0f71));return _0x1af92c&&(_0x1af92c['awaitingChangeset']||_0x1af92c[_0x42e991(0x2bc)]['length']!==0x0)&&(_0x5891cc=_0x1af92c['rev']),_0x5891cc===0x0&&this[_0x42e991(0x34f)][_0x42e991(0x348)](_0x42e991(0x31d),_0x42e991(0x2b9)),this['loadUnitOfRevision'](_0x4b0f71,_0x21e857,_0x5891cc);}};fn=L([I(0x0,_0x20e24f),I(0x1,_0x103c1d(_0x481d36)),I(0x2,_0x5fafcb(B))],fn);const pn=[_0x3953b6(0x3c9),'image/jpeg',_0x3953b6(0x368),_0x3953b6(0x297),_0x3953b6(0x382)];let mn=class{constructor(_0x5e6244,_0x4afd77,_0x3caa06){const _0x5be80e=_0x3953b6;this['_httpService']=_0x5e6244,this[_0x5be80e(0x2db)]=_0x4afd77,this[_0x5be80e(0x27b)]=_0x3caa06,N(this,'_waitCount',0x0),N(this,_0x5be80e(0x1e0),new _0x2c4c98()),N(this,_0x5be80e(0x38c),this[_0x5be80e(0x1e0)]),N(this,'_imageSourceCache',new Map());}[_0x3953b6(0x3ca)](_0x37da4b){const _0x471300=_0x3953b6;this[_0x471300(0x195)]=_0x37da4b,this[_0x471300(0x1e0)][_0x471300(0x1aa)](_0x37da4b);}[_0x3953b6(0x305)](_0x366b99,_0x437831){const _0x12d030=_0x3953b6;if(_0x437831===_0x2b64ca[_0x12d030(0x3b1)]){let _0x1ac3eb=new Image();return _0x1ac3eb['src']=_0x366b99,_0x1ac3eb;}return this[_0x12d030(0x1cb)]['get'](_0x366b99);}[_0x3953b6(0x19b)](_0x4c9171,_0x4dec93,_0x342dd3){const _0x11f209=_0x3953b6;_0x4dec93===_0x2b64ca[_0x11f209(0x3b1)]||_0x342dd3==null||this[_0x11f209(0x1cb)]['set'](_0x4c9171,_0x342dd3);}async[_0x3953b6(0x401)](_0x1d2cc4){const _0x34ba69=_0x3953b6;try{let _0x3af435=this['_replaceFileID'](this[_0x34ba69(0x3a9)](),''+_0x1d2cc4),_0x1164c6=(await this[_0x34ba69(0x253)]['get'](_0x3af435))[_0x34ba69(0x3f6)];if(_0x1164c6['error']&&_0x1164c6[_0x34ba69(0x1ba)][_0x34ba69(0x249)]===_0x3f70ef['OK']){let _0x25b065=_0x487845(_0x1164c6[_0x34ba69(0x26d)],this['_getDownloadEndpointURL']());return Promise[_0x34ba69(0x221)](_0x25b065);}return Promise[_0x34ba69(0x357)](_0x1164c6['error']);}catch(_0x4c2d77){return Promise[_0x34ba69(0x357)](_0x4c2d77);}}async['saveImage'](_0x3ed9be){const _0x2c101e=_0x3953b6;let _0x5c3b33='';if(!pn[_0x2c101e(0x1ce)](_0x3ed9be['type']))return this[_0x2c101e(0x33e)](),Promise[_0x2c101e(0x357)](Error(_0x31ec52[_0x2c101e(0x202)]));if(_0x3ed9be[_0x2c101e(0x2c5)]>0x500000)return this[_0x2c101e(0x33e)](),Promise[_0x2c101e(0x357)](Error(_0x31ec52['ERROR_EXCEED_SIZE']));try{let _0x523a20=new FormData();_0x523a20['append']('file',_0x3ed9be);let _0x110a87=this[_0x2c101e(0x27b)][_0x2c101e(0x339)](),_0x20b449=_0x110a87==null?void 0x0:_0x110a87['getUnitId']();if(!_0x20b449)throw Error('unitId\x20is\x20not\x20found');let _0x412f27=this[_0x2c101e(0x3f9)]()+_0x2c101e(0x3dc)+_0x3ed9be[_0x2c101e(0x2c5)]['toString']()+_0x2c101e(0x216)+_0x453cfc[_0x2c101e(0x329)]+_0x2c101e(0x399)+encodeURIComponent(_0x20b449),_0xe1930e={'body':_0x523a20},_0x4427e2=(await this[_0x2c101e(0x253)]['post'](_0x412f27,_0xe1930e))['body'];if(typeof _0x4427e2[_0x2c101e(0x269)]!=_0x2c101e(0x229))return this[_0x2c101e(0x33e)](),Promise['reject'](Error(_0x31ec52[_0x2c101e(0x31f)]));_0x5c3b33=_0x4427e2['FileId'];}catch{return this[_0x2c101e(0x33e)](),Promise[_0x2c101e(0x357)](Error(_0x31ec52['ERROR_IMAGE']));}return new Promise((_0x5d3452,_0x5cf1ee)=>{const _0x538244=_0x2c101e;let _0x2acd27=new FileReader();_0x2acd27[_0x538244(0x228)](_0x3ed9be),_0x2acd27[_0x538244(0x3bb)]=_0x40934f=>{const _0xf66a0d=_0x538244;var _0xebdb2;let _0x4db01f=(_0xebdb2=_0x40934f[_0xf66a0d(0x265)])==null?void 0x0:_0xebdb2[_0xf66a0d(0x1fd)];if(_0x4db01f==null){this[_0xf66a0d(0x33e)](),_0x5cf1ee(Error(_0x31ec52['ERROR_IMAGE']));return;}_0x5d3452({'imageId':_0xbcfa4e(0x6),'imageSourceType':_0x2b64ca[_0xf66a0d(0x237)],'source':_0x5c3b33,'base64Cache':_0x4db01f,'status':_0x31ec52[_0xf66a0d(0x22f)]}),this[_0xf66a0d(0x33e)]();};});}[_0x3953b6(0x3f9)](){const _0x1ef190=_0x3953b6;var _0x583621;let _0x2bcdf5=this[_0x1ef190(0x2db)][_0x1ef190(0x338)](H);return(_0x583621=_0x2bcdf5==null?void 0x0:_0x2bcdf5[_0x1ef190(0x29d)])==null?_0x1ef190(0x3dd):_0x583621;}[_0x3953b6(0x3a9)](){const _0x3564dc=_0x3953b6;var _0x55590a;let _0x27596d=this[_0x3564dc(0x2db)]['getConfig'](H);return(_0x55590a=_0x27596d==null?void 0x0:_0x27596d[_0x3564dc(0x35a)])==null?_0x3564dc(0x1f1):_0x55590a;}[_0x3953b6(0x2ef)](){const _0x9bc767=_0x3953b6;var _0x516982;let _0x2011f0=this[_0x9bc767(0x2db)]['getConfig'](H);return(_0x516982=_0x2011f0==null?void 0x0:_0x2011f0[_0x9bc767(0x24a)])==null?location[_0x9bc767(0x363)]:_0x516982;}[_0x3953b6(0x3fd)](_0x10b509,_0x31b35a){const _0x379cb3=_0x3953b6;return _0x10b509[_0x379cb3(0x3aa)](_0x379cb3(0x1ff),_0x31b35a);}[_0x3953b6(0x33e)](){const _0x3fc575=_0x3953b6;--this[_0x3fc575(0x195)],this[_0x3fc575(0x1e0)][_0x3fc575(0x1aa)](this['_waitCount']);}};mn=L([I(0x0,_0x103c1d(_0x2f837f)),I(0x1,_0x58e790),I(0x2,_0x103c1d(_0x2912b3))],mn);let hn=class{constructor(_0x24b522,_0x382e76){const _0x27ae1e=_0x3953b6;this[_0x27ae1e(0x2db)]=_0x24b522,this[_0x27ae1e(0x352)]=_0x382e76;}[_0x3953b6(0x198)](){const _0x988a80=_0x3953b6;var _0x1112de;let _0x58135f=this[_0x988a80(0x2db)][_0x988a80(0x338)](H);return(_0x1112de=_0x58135f==null?void 0x0:_0x58135f['authzUrl'])==null?'/universer-api/authz':_0x1112de;}async[_0x3953b6(0x3c7)](_0x3a40c6){const _0x2733a1=_0x3953b6;let _0x465c9b=this[_0x2733a1(0x198)]()+_0x2733a1(0x27f);return{'list':[{'title':_0x2733a1(0x293),'mentions':(await this[_0x2733a1(0x352)][_0x2733a1(0x319)](_0x465c9b,{'params':{'objectID':_0x3a40c6['unitId'],'unitID':_0x3a40c6[_0x2733a1(0x3b6)]}}))[_0x2733a1(0x3f6)]['collaborators'][_0x2733a1(0x2a6)](_0x44f123=>({'objectId':_0x44f123['id'],'name':_0x44f123[_0x2733a1(0x1b0)][_0x2733a1(0x2dd)],'metadata':{'icon':_0x44f123['subject'][_0x2733a1(0x1e8)]},'label':_0x44f123['subject'][_0x2733a1(0x2dd)],'objectType':_0x375335['PERSON']})),'metadata':{},'type':_0x375335[_0x2733a1(0x35e)]}]};}};hn=L([I(0x0,_0x103c1d(_0x58e790)),I(0x1,_0x103c1d(_0x2f837f))],hn);let gn=class extends _0x498085{constructor(_0x13cc5f,_0x43a0a2,_0x2bb83a,_0x2b45fb,_0x3a8944){const _0x61abfd=_0x3953b6;super(),this[_0x61abfd(0x37e)]=_0x13cc5f,this[_0x61abfd(0x27b)]=_0x43a0a2,this[_0x61abfd(0x1e9)]=_0x2bb83a,this[_0x61abfd(0x20e)]=_0x2b45fb,this[_0x61abfd(0x254)]=_0x3a8944,this[_0x61abfd(0x267)](),this[_0x61abfd(0x296)]();}[_0x3953b6(0x296)](){const _0x50cef5=_0x3953b6;let _0x34d08d=async _0x26732a=>{const _0x15b0e6=_0x226b;(await this[_0x15b0e6(0x20e)]['requireSession'](_0x26732a))[_0x15b0e6(0x1ed)][_0x15b0e6(0x3e2)](_0x385b06(_0x1695ed=>_0x1695ed[_0x15b0e6(0x220)]===_0x1e3d55['SHOULD_CLOSE_CONN']),_0x55004c(this['dispose$']))[_0x15b0e6(0x2a1)](_0x1fe85f=>{const _0x18956f=_0x15b0e6;let {reason:_0x12a246}=_0x1fe85f['data'];this[_0x18956f(0x254)][_0x18956f(0x25b)]({'id':P['CLOSE_ROOM'],'data':_0x12a246}),this['_permissionService']['updatePermissionPoint'](new _0x4c2a11(_0x26732a)['id'],!0x1),this['_collaborationSessionService'][_0x18956f(0x1f2)](_0x26732a);});};_0x1a7843(this[_0x50cef5(0x27b)][_0x50cef5(0x2ea)](_0x14f3b5[_0x50cef5(0x244)]),this[_0x50cef5(0x27b)][_0x50cef5(0x2ea)](_0x14f3b5[_0x50cef5(0x1b4)]))['pipe'](_0x3eec09(_0x46d23c=>_0x46d23c[_0x50cef5(0x276)]()),_0x385b06(_0x4a0e14=>!_0x38c007(_0x4a0e14)),_0x55004c(this[_0x50cef5(0x378)]))[_0x50cef5(0x2a1)](_0x2e08cf=>{_0x34d08d(_0x2e08cf);});}[_0x3953b6(0x267)](){const _0x52a612=_0x3953b6;let _0x5f5042=async _0x1e8309=>{const _0x40580c=_0x226b;let _0x2af185=await this['_collaborationSessionService'][_0x40580c(0x32c)](_0x1e8309),_0x5175d3=this[_0x40580c(0x37e)][_0x40580c(0x319)](_0x91328d);_0x2af185[_0x40580c(0x1ed)][_0x40580c(0x3e2)](_0x385b06(_0xfc950d=>_0xfc950d[_0x40580c(0x220)]===_0x1e3d55[_0x40580c(0x3ed)]),_0x55004c(this['dispose$']))['subscribe'](_0x5af662=>{const _0x2ccf35=_0x40580c;let {objectId:_0x25eda7}=_0x5af662[_0x2ccf35(0x3d7)];_0x25eda7===_0x1e8309?_0x5175d3[_0x2ccf35(0x302)](_0x1e8309):_0x5175d3[_0x2ccf35(0x2f7)](_0x1e8309,_0x25eda7);});};_0x1a7843(this[_0x52a612(0x27b)]['getTypeOfUnitAdded$'](_0x14f3b5[_0x52a612(0x244)]))['pipe'](_0x3eec09(_0x4fe56f=>_0x4fe56f[_0x52a612(0x276)]()),_0x385b06(_0x29ae31=>!_0x38c007(_0x29ae31)),_0x55004c(this[_0x52a612(0x378)]))[_0x52a612(0x2a1)](_0x5410ea=>{_0x5f5042(_0x5410ea);});}};gn=L([I(0x0,_0x103c1d(_0x197e5f)),I(0x1,_0x2912b3),I(0x2,_0x15e9b0),I(0x3,_0x103c1d(Q)),I(0x4,_0x103c1d(F))],gn);let _n=class{constructor(_0x248403,_0x153e0e){this['_configService']=_0x248403,this['_httpService']=_0x153e0e;}async[_0x3953b6(0x3f0)](_0x1e2eea,_0x1f6458){const _0x3ba16a=_0x3953b6;var _0x4ff871;let {unitID:_0x4c3b6e,type:_0x5aae82,revision:_0x149e02=0x0}=_0x1f6458,_0x4d045a=this['getSnapshotAPIPath']()+'/'+_0x5aae82+_0x3ba16a(0x2d2)+_0x4c3b6e+_0x3ba16a(0x1d2)+_0x149e02,_0x1cef42=(await this[_0x3ba16a(0x253)][_0x3ba16a(0x319)](_0x4d045a))[_0x3ba16a(0x3f6)],_0x6da109=(_0x4ff871=_0x1cef42[_0x3ba16a(0x227)])==null?void 0x0:_0x4ff871[_0x3ba16a(0x381)];if(_0x6da109){let _0x974f1c=_0x6da109==null?void 0x0:_0x6da109[_0x3ba16a(0x3ea)];_0x6da109['originalMeta']=_0x37caaf[_0x3ba16a(0x398)](_0x444e93(_0x974f1c)),Object[_0x3ba16a(0x2fe)](_0x6da109[_0x3ba16a(0x36a)])[_0x3ba16a(0x345)](([,_0x522e5d])=>{const _0x5e9483=_0x3ba16a;let _0x20bf76=_0x522e5d[_0x5e9483(0x3ea)];_0x522e5d['originalMeta']=_0x37caaf['encode'](_0x444e93(_0x20bf76));});}return _0x1cef42;}async[_0x3953b6(0x2e8)](_0x3d5bca,_0x37edd8){const _0x245543=_0x3953b6;let {unitID:_0x3a26b6,type:_0x233c21,blockID:_0x1c1dde}=_0x37edd8,_0x34693b=this[_0x245543(0x270)]()+'/'+_0x233c21+_0x245543(0x2d2)+_0x3a26b6+_0x245543(0x392)+_0x1c1dde;return(await this['_httpService'][_0x245543(0x319)](_0x34693b))[_0x245543(0x3f6)];}async[_0x3953b6(0x1bb)](_0xafa03c,_0x3d81de){const _0x54cdbd=_0x3953b6;let {unitID:_0xbde2b0,type:_0x9c301b,blockID:_0x56d240}=_0x3d81de,_0x20114f=this[_0x54cdbd(0x270)]()+_0x54cdbd(0x392)+_0x9c301b+_0x54cdbd(0x2d2)+_0xbde2b0+_0x54cdbd(0x392)+_0x56d240;return(await this['_httpService'][_0x54cdbd(0x319)](_0x20114f))[_0x54cdbd(0x3f6)];}async[_0x3953b6(0x2ab)](_0x3d7f98,_0x20b719){const _0x1eeb71=_0x3953b6;let {unitID:_0x418c9b,type:_0x257ce7,from:_0x55d01a,to:_0x53a96c}=_0x20b719,_0x5cfe14=this[_0x1eeb71(0x270)]()+'/'+_0x257ce7+_0x1eeb71(0x2d2)+_0x418c9b+_0x1eeb71(0x24b)+_0x55d01a+_0x1eeb71(0x3f7)+_0x53a96c;return(await this[_0x1eeb71(0x253)][_0x1eeb71(0x319)](_0x5cfe14))[_0x1eeb71(0x3f6)];}[_0x3953b6(0x1c8)](){const _0x182740=_0x3953b6;var _0xb4ce3d;return(_0xb4ce3d=this['_configService']['getConfig'](_0x182740(0x3ad)))==null?this[_0x182740(0x270)]():_0xb4ce3d;}['_getAPIPrefix'](){const _0x18b169=_0x3953b6;var _0x4f7413;let _0xd6ae2b=this[_0x18b169(0x2db)][_0x18b169(0x338)](H);return(_0x4f7413=_0xd6ae2b==null?void 0x0:_0xd6ae2b['snapshotServerUrl'])==null?_0x18b169(0x262):_0x4f7413;}async[_0x3953b6(0x1b7)](_0x458909,_0xd82256){const _0x18069c=_0x3953b6;let _0x1c6640=_0x18069c(0x191)+_0xd82256['type']+'/unit/'+_0xd82256[_0x18069c(0x2aa)]+_0x18069c(0x2e0);return(await this[_0x18069c(0x253)]['get'](_0x1c6640,{'params':{'resourceId':JSON['stringify'](_0xd82256[_0x18069c(0x34e)])}}))[_0x18069c(0x3f6)];}[_0x3953b6(0x366)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3953b6(0x372)](){const _0x3a31ff=_0x3953b6;throw Error(_0x3a31ff(0x2f0));}[_0x3953b6(0x24f)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3953b6(0x376)](){const _0x38dbab=_0x3953b6;throw Error(_0x38dbab(0x2f0));}[_0x3953b6(0x1c3)](){const _0x4ec703=_0x3953b6;throw Error(_0x4ec703(0x2f0));}[_0x3953b6(0x1c4)](){const _0x4d1b6d=_0x3953b6;throw Error(_0x4d1b6d(0x2f0));}};_n=L([I(0x0,_0x58e790),I(0x1,_0x103c1d(_0x2f837f))],_n);function _0x4dd4(){const _0x5ca461=['_networkConditionService','object','_clearTimeoutTimer','getUnit','_onConnectionFailed','getConfig','getFocusedUnit','_snapshotServerService','deepClone','sid','/role','_decreaseWaiting','message$','delete','_emitMembers','cmd','conflict','univer-pro.collaboration-client.single-active-unit-service','forEach','joinRsp','sessionStatus','debug','set','executeCommand','transformSelections','onMissingChangesets','fetching\x20missing\x20changesets\x20from\x20','resourceIDs','_logService','CLOSE_ROOM','JOIN_ROOM_FULL','_HTTPService','iterator','INGEST','_pendingMutations','_getRedoStack','reject','_commentUpdate$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','signUrlServerUrl','splice','_type','href','PERSON','roomInfos','members$','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','editing\x20status\x20changed\x20to','origin','HEARTBEAT_INTERVAL','NO_OTHER_CLIENTS_EDITING','saveSnapshot','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','image/jpg','USERS_ENTER','sheets','_localCacheService','SHOULD_CLOSE_CONN','getCurrentUser','UNIVER_SLIDE','AWAITING','onlyLocal','_resendTimer','updateSnapshot','_clearCollaborationTimeoutTimer','_getLoginPath','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','saveChangeset','_onOffline','dispose$','_getCurrentRevision','LIVESHARE_NEW_HOST','reqId','c1Prime','listRoles','_injector','/new_changes','COMPRESS_MUTATION_APPLY','workbook','image/bmp','_updateLocalCache','getTime','then','_waitForHeartbeatResponse','SYNCED','_createHandler','LIVESHARE_OPERATION','/universer-api/comb','_sheetTransformSelectionsService','change$','HEARTBEAT_TIMEOUT','\x0aCurrent:\x20','createInstance','_scheduleCollaborationTimeoutTimer','PERMISSION_DENIED','/block/','compose','override','slice','_state$','objectType','encode','&assign=','_schedule','_transformStack','_submitChangeset','132qFrZuS','catch','from','_unitInfo$','_listenToNetworkCondition','headers','status$','baseRev','submit\x20changeset\x20error!','default','_roomMembers','_clearLocalCache','_getSignURL','replace','_timeoutTimer','CHANGESET_REJ','SNAPSHOT_URL_KEY','localeService','_retryCount','NEW_CHANGESETS','BASE64','_members$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_incrementRevisionNumber','_toggleOnline','unitId','HELLO','infoRsp','RECV','symbol','onload','_commentService','has','create','_startCollaboration','session.join-failed','[CollaborationUndoRedoService]','USERS_LEAVE','OPTIONAL','fetchThroughInterceptors','toggleOffline','OTHER_CLIENT_EDITING','list','parse','image/png','setWaitCount','onRemoteAck','selections','getInterceptPoints','disposeWithMe','getCurrentRevOfUnit','members','createSocket','getOwnPropertyDescriptor','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','changesets','userID','CONFLICT','data','_maxTotalRetryTimeout','permissionRejEvent','OFFLINE','_handler','?size=','/universer-api/stream/file/upload','_clearRetryConnectingTimer','Error\x20on\x20receiving\x20event','onRemoteChangeset','AWAITING_WITH_PENDING','pipe','complete','UNIVER_COLLABORATION_CLIENT_PLUGIN','COMMENT_UPDATE','_onRemoteRetry','_onRemoteRejected','_onRemoteChangeset','_initMergeInterceptor','originalMeta','awaiting_with_pending','_substituteRedoStack','UPDATE_PERMISSION_OBJ','LEAVE','_changesetSessionId','getUnitOnRev','_transformSelections','stringify','objects','_onRemoteACK','[SyncedState]:\x20received\x20rejection.','body','&to=','POST','_getUploadFileURL','fetch_missing','routeKey','_onCombEvent','_replaceFileID','transformChangesets','154790upxoFz','enableAuthServer','getImage','loadUnitOfRevision','not_collab','editingUnit','onCommentUpdate','/universer-api/snapshot/','collaMsg','loadOfflineData','_updateStatus','_waitCount','setConfig','isArray','_getAPIPrefixPath','_resendTimeout','_removeRoom','addImageSourceCache','_clearUndo','updateCollaborator','_exhaustRemoteChangesetQueue','_tryReconnect','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','hostname','384RaeDwa','JOIN_ROOM_FAILED','close$','shouldCloseConn','deleteCollaborator','_showConflictNotification','reconnect','_transformService','next','session.room-not-exists','_unitID','_syncEditingCollabCursor','onTransformIME','prototype','subject','getRoom','_initRequestHeader','_shouldReportTelemetry','UNIVER_DOC','__Key__','fromCollab','getResourcesRequest','getTypeOfUnitDisposed$','getMember','error','getDeserializedSheetBlock','/object/','_entities','_compressMutationService','onRemoteRetry','MUTATION','LIVESHARE_TERMINATE','filter','copyFileMeta','getLatestCsReqIdBySid','_registerDependencies','_transformUndoredo','LIVESHARE_REQUEST_HOST','getSnapshotAPIPath','_unlockTransition','getMemberID','_imageSourceCache','28qtzQSC','CHANGESET_SHOULD_RETRY','includes','_startTelemetryCollaborationNewChangeset','transformUndoRedo','_createInitialStateImpl','/rev/','loadDoc','dispose','onStarting','807610hnKmEa','function','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','put','toggleOnline','/allowed','post','_socketReady','[UniverCollaborationClientPlugin]','_onUserLeave','_change$','[PendingState]:\x20received\x20rejection.','OTHER_CLIENTS_EDITING','_createInitialState','add','_sendHeartbeat','incrementRevOfUnit','MSG_FOR_ERROR','avatar','_permissionService','_status$','_onUserJoin','_remoteChangesetQueue','event$','disableLocalCache','_socket','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','/universer-api/file/{fileID}/sign-url','closeSession','x-univer-host','_rescheduleHeartbeat','SUBMIT_CHANGESET','fetchMiss','_updateState','send','_clearHeartbeatTimer','_getCtorByUniverType','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LIVESHARE_FETCH_OPERATIONS','result','onLocalMutation','{fileID}','_undoStacks','_roomCreated$','ERROR_IMAGE_TYPE','removeMember','localCacheService','_snapshotService','_isPermissionRej','[CollaborationState]:\x20apply\x20error!','update','updateOfflineData','_handlerCallback','onTransformSelections','JOIN','range','_collaborationSessionService','every','onTransformRemoteChangesetByIMECache','_undoRedoService','_onLocalMutation','_initDependencies','waitForRoom$','_socketService','&source=','_instanceService','_acknowledgedAwaitingChangeset','[OfflineState]:\x20received\x20changeset.','_retryConnectingTimer','stopTime','SUBMIT_CHANGESET_TIMEOUT','_replayCachedMutations','sendChangesetTimeout','_createSocket','eventID','resolve','push','_commandService','107919qzqzMR','\x0aAfter:\x20','init','snapshot','readAsDataURL','string','_joinRoom','_init','[CollaborationSessionService]','JOINING','title','SUCCUSS','\x20to\x20','FETCH_MISSING','univer-pro.collaboration-client-socket-service','HEARTBEAT','_fetchMissChangesets','resend','random','UUID','onRemoteRej','_transformIMECache','listCollaborators','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_sendingTimer','COMPRESS_MUTATION_SEND','onSendChangeset','_transitionLocked','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_applyRemoteChangeset','_candidateSocket','UPDATE_CURSOR','UNIVER_SHEET','[OfflineState]:\x20received\x20rejection.','uniscriptRunEvent','unknown','_entityInit$','code','downloadEndpointUrl','/fetchmissing?from=','_onRecvEvent','transformMutationsWithChangeset','_tryEnsureSocket','saveSheetBlock','collabWebSocketUrl','csShouldRetryEvent','_onJoinRoomEvent','_httpService','_collaborationUIEventService','commentUpdate$','_changesetReqId','session.room-full','isPermissionRej','508896EFySfq','find','emitEvent','open$','defineProperty','_checkMissing','_state','socketService','/-/object/list','/universer-api/snapshot','_revisionService','startTime','target','patch','_initUnitPermissionChange','_getUndoStack','FileId','getCollabEntity$','FETCH_MISS','getUnitStatus$','url','29680HNdeKb','_transformStateCache','_getAPIPrefix','Failed\x20to\x20update\x20permission\x20point','csRejEvent','call','_substituteUndoStack','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','getUnitId','getValue','floor','ws://127.0.0.1:8000/universer-api/comb/connect','online$','_univerInstanceService','JOIN_ROOM_PERMISSION_DENIED','loadUnit','memberID','/collaborator','_userManagerService','startsWith','close','length','updateMember','UNISCRIPT_RUN','_onConflict','pending','awaiting','_sender','type','getUnitType','enableCollaboration','_transformRemoteChangesetByIMECache','asObservable','newCsEvent','state','reduce','responseType','People','updatePermissionPoint','interceptor','_initCloseConn','image/gif','confirm','equals','onSyncEditingCollabCursor','_memberService','LOCAL_CACHE_INTERVAL','uploadFileServerUrl','[CollaborationSession]','32nAxjrX','_queuedRemoteChangesets','subscribe','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_transformRemoteChangesetByStateCache','FAIL','withCredentials','map','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!','unitID','fetchMissingChangesets','repeat','_localeService','readyForCollab','_socketMessageSubscription','PSEUDO_FETCH_MISSING_RESULT','min','_telemetryInfo','requestParams','socket\x20open.','location','CHANGESET_ACK','IDLE','42360RMFqFi','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','/-/object/-/batch_allowed','[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.','mutations','GLOBAL_ROOMS_CNT_EXCEEDS','telemetry\x20info\x20is\x20not\x20initialized','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','registerHTTPInterceptor','actions','save\x20fail\x20reason\x20is\x20','collaboratorID','toPrimitive','size','RETRY_CONNECTING_MAX_COUNT','now','addHandlerCallback','onStateChange','_toggleOffline','appendMutation','_sessions','_clearScheduledTask','liveShareNewHost','synced','_sessionStatus$','_stopTelemetryCollaborationNewChangeset','/unit/','DEFAULT_FILE_NAME','putCollaborators','setShowComponents','offline','/universer-api/oidc/authpage','_collaborationTimeoutTimer','onTransformRemoteChangesetByStateCache','error$','_configService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','name','_resendWithTimeout','_clearRedo','/resources','state$','version','roles','_singleActiveUnitService','ONLINE','findIndex','/universer-api/uniscript','getSheetBlock','_config','getTypeOfUnitAdded$','_redoStacks','session.room-cnt-exceeds','sessionStatus$','pauseCollaboration','_getDownloadEndpointURL','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_doCreateSocket','_scheduleCompleteTimestamp','_collaborationPaused','enableSingleActiveInstanceLock','capture','auth.needGotoLoginAlert','refreshPermission','getCollabEntity','unsubscribe','entityInit$','SOCKET_FAILED','[CollaborationSessionService]:\x20socket\x20error','setCurrentUser','entries','NOT_COLLAB','SOCKET_FAILED_RETRY','fromCharCode','initWorkbookPermissionChange','m2Prime','_throwTelemetryCollaborationNewChangeset','getImageSourceCache','objectID','decorate','\x20in\x20_schedule.','socket\x20close','status','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','apply','params','textRanges','getSheetId','_executeRemoteChangeset','connection\x20error','[SyncedState]:\x20received\x20acknowledgement.','session','collaboration-client.config','retryConnectingInterval','_lockTransition','_telemetryService','onTransformState','get','_awaitingChangeset','pluginName','_sendHeartbeatTimer','[DataLoaderService]','clear','ERROR_IMAGE','_collabSessionService','authzUrl','_onConnectionOpen','_members','duration','joinEvent','onMutationExecutedForCollab','transformStack\x20failed!','/object','UnitEmbedded','socket$','_event$','requireSession','308640BFTEtF','_socket$','encodeURIComponent','[OfflineState]:\x20received\x20acknowledgement.','revision','batchAllowed'];_0x4dd4=function(){return _0x5ca461;};return _0x4dd4();}function _0x226b(_0xfcd587,_0x259d34){_0xfcd587=_0xfcd587-0x18d;const _0x4dd465=_0x4dd4();let _0x226b61=_0x4dd465[_0xfcd587];return _0x226b61;}let vn=class extends _0x5c7d91{constructor(_0x9c6ba7,_0x167853,_0x28b39e,_0x409bbe,_0x5d29b6){const _0x416ebc=_0x3953b6;super(_0x9c6ba7,_0x167853,_0x28b39e),this[_0x416ebc(0x1a9)]=_0x409bbe,this[_0x416ebc(0x34f)]=_0x5d29b6;}[_0x3953b6(0x1d0)](_0x339ae9,_0x1b0560){const _0x59044d=_0x3953b6;let _0x28a168=this['_getUndoStack'](_0x339ae9);if(_0x28a168)try{let _0x4042fa=this['_transformStack'](_0x28a168,_0x1b0560);this[_0x59044d(0x274)](_0x339ae9,_0x4042fa);}catch(_0x537ce4){this[_0x59044d(0x34f)]['error'](_0x59044d(0x3c1),_0x537ce4),this[_0x59044d(0x19c)](_0x339ae9);}let _0x359801=this[_0x59044d(0x356)](_0x339ae9);if(_0x359801)try{let _0x1aeb23=this['_transformStack'](_0x359801,_0x1b0560);this[_0x59044d(0x3ec)](_0x339ae9,_0x1aeb23);}catch(_0x20f16f){this[_0x59044d(0x34f)][_0x59044d(0x1ba)](_0x20f16f),this['_clearRedo'](_0x339ae9);}}['_clearUndo'](_0x2e1603){const _0x6cce8=_0x3953b6;let _0x235a24=this[_0x6cce8(0x268)](_0x2e1603);_0x235a24&&(_0x235a24[_0x6cce8(0x283)]=0x0,this['_updateStatus']());}[_0x3953b6(0x2df)](_0x288996){const _0x2ca23d=_0x3953b6;let _0x5bf306=this[_0x2ca23d(0x356)](_0x288996);_0x5bf306&&(_0x5bf306[_0x2ca23d(0x283)]=0x0,this[_0x2ca23d(0x194)]());}['_substituteUndoStack'](_0x3a2401,_0x204fcf){const _0x2a87f3=_0x3953b6;this[_0x2a87f3(0x200)][_0x2a87f3(0x349)](_0x3a2401,_0x204fcf),this[_0x2a87f3(0x194)]();}[_0x3953b6(0x3ec)](_0x5f1680,_0x477ca6){const _0x1c6be6=_0x3953b6;this[_0x1c6be6(0x2eb)]['set'](_0x5f1680,_0x477ca6),this[_0x1c6be6(0x194)]();}[_0x3953b6(0x39b)](_0x22cf49,_0x47b5ad){const _0x17dde9=_0x3953b6;let _0x11ec57=[],_0x219d37=_0x47b5ad,_0x447854=_0x47b5ad;for(let _0x577849=_0x22cf49[_0x17dde9(0x283)]-0x1;_0x577849>=0x0;_0x577849--){let {unitID:_0x4e4f2f,undoMutations:_0x18493d,redoMutations:_0x141f19}=_0x22cf49[_0x577849],_0x23660c=this['_transformService'][_0x17dde9(0x24d)](_0x219d37,_0x18493d),_0x156281=this['_transformService']['transformMutationsWithChangeset'](_0x447854,_0x141f19);if(_0x58146a(_0x23660c)||_0x58146a(_0x156281)){this['_logService'][_0x17dde9(0x1ba)](_0x17dde9(0x3c1),_0x17dde9(0x327),_0x23660c,_0x156281);break;}_0x219d37=_0x23660c['c1Prime'],_0x447854=_0x156281[_0x17dde9(0x37c)],_0x11ec57[_0x17dde9(0x222)]({'unitID':_0x4e4f2f,'undoMutations':_0x23660c['m2Prime'],'redoMutations':_0x156281[_0x17dde9(0x303)]});}return _0x11ec57['reverse']();}};vn=L([I(0x0,_0x2912b3),I(0x1,_0x39f16e),I(0x2,_0xe147f8),I(0x3,_0x192549),I(0x4,_0x20e24f)],vn);let $=class extends _0x2adf51{constructor(_0x3bdc0f={},_0x5da434,_0x34c969,_0x2f5c37){const _0x5ad700=_0x3953b6;super(),this[_0x5ad700(0x2e9)]=_0x3bdc0f,this[_0x5ad700(0x34f)]=_0x5da434,this[_0x5ad700(0x37e)]=_0x34c969,this['_configService']=_0x2f5c37;let {..._0x37d1d7}=_0x311220({},Pt,_0x3bdc0f);if(!_0x37d1d7[_0x5ad700(0x260)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x37d1d7,this[_0x5ad700(0x2db)][_0x5ad700(0x196)](H,_0x37d1d7);}[_0x3953b6(0x1d5)](){const _0x1af49d=_0x3953b6;this[_0x1af49d(0x1c5)](),this[_0x1af49d(0x213)]();}[_0x3953b6(0x1c5)](){const _0x3b624d=_0x3953b6;var _0x3359e2,_0x30c67a;this['_injector'][_0x3b624d(0x3bd)](_0x4c428e)&&this[_0x3b624d(0x34f)][_0x3b624d(0x1ba)](_0x3b624d(0x1de),_0x3b624d(0x1d8));let _0x440ddf=_0xbbf295([[_0x4c428e,{'useClass':vn}],[Q],[R],[V],[on],[dn],[Et],[gn],[F],[fn],[Qt,{'useClass':this[_0x3b624d(0x2e9)][_0x3b624d(0x260)]}],[_0x27d66c,{'useClass':_n}],[_0x233070,{'useClass':sn}],[_0x2ce01d,{'useClass':mn}],[_0x9f217f,{'useClass':hn}],[tn],[an]],(_0x3359e2=this[_0x3b624d(0x2e9)])==null?void 0x0:_0x3359e2[_0x3b624d(0x394)]);if(!((_0x30c67a=this[_0x3b624d(0x2e9)])!=null&&_0x30c67a[_0x3b624d(0x2f4)])){let _0x5d301f=_0x440ddf[_0x3b624d(0x2e6)](([_0x33c6be])=>_0x33c6be===Mt);_0x5d301f!==-0x1&&_0x440ddf[_0x3b624d(0x35b)](_0x5d301f,0x1);}_0xe9a098(this[_0x3b624d(0x37e)],_0x440ddf);}['_initDependencies'](){const _0x4c7b5a=_0x3953b6;var _0xc3623,_0x125edf;if(this['_injector'][_0x4c7b5a(0x319)](_0x2f837f)[_0x4c7b5a(0x2c0)]({'priority':0x14,'interceptor':_0x598d6b({'maxParallel':0x6})}),!((_0xc3623=this[_0x4c7b5a(0x2e9)])!=null&&_0xc3623['enableOfflineEditing'])){var _0x7ff430;(_0x7ff430=this[_0x4c7b5a(0x37e)][_0x4c7b5a(0x319)](B,_0x1fca7b[_0x4c7b5a(0x3c3)]))==null||_0x7ff430[_0x4c7b5a(0x1ee)]();}(_0x125edf=this[_0x4c7b5a(0x2e9)])!=null&&_0x125edf[_0x4c7b5a(0x400)]&&_0x5cbf89(this[_0x4c7b5a(0x37e)],[[on]]),_0x5cbf89(this[_0x4c7b5a(0x37e)],[[dn],[tn],[gn]]);}};N($,_0x3953b6(0x31b),_0x3953b6(0x3e4)),N($,'packageName',nn),N($,_0x3953b6(0x2e2),rn),$=L([_0x158950(_0x429a06,_0x2b0b47,_0x18e9dd),I(0x1,_0x20e24f),I(0x2,_0x103c1d(_0x197e5f)),I(0x3,_0x58e790)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,H as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,kt as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,U as CollaborationStatus,P as CollaborationUIEventId,F as CollaborationUIEventService,vn as CollaborativeUndoRedoService,Et as CommentService,Y as ConflictState,ft as DEFAULT_COLLAB_WEB_SOCKET_URL,xt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,pt as DEFAULT_WS_SESSION_TICKET_URL,fn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,mt as HEARTBEAT_INTERVAL_KEY,ht as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,B as ILocalCacheService,Yt as INetworkConditionService,Mt as ISingleActiveUnitService,yt as LOCAL_CACHE_INTERVAL,vt as LOCAL_CACHE_INTERVAL_KEY,R as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,bt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,_t as RETRY_CONNECTING_MAX_COUNT_KEY,z as SessionStatus,Jt as SheetCollaborationEntity,V as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Nt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,At as getLocalCacheKey,Zt as serializeCombRequest};
|
|
1
|
+
const _0x215c00=_0x184e;(function(_0x35b606,_0x4e8a61){const _0x255a20=_0x184e,_0x525fcc=_0x35b606();while(!![]){try{const _0x62390a=-parseInt(_0x255a20(0x167))/0x1*(parseInt(_0x255a20(0x10d))/0x2)+parseInt(_0x255a20(0x244))/0x3+parseInt(_0x255a20(0x133))/0x4*(parseInt(_0x255a20(0x20e))/0x5)+parseInt(_0x255a20(0x1fc))/0x6*(parseInt(_0x255a20(0x259))/0x7)+-parseInt(_0x255a20(0xde))/0x8+parseInt(_0x255a20(0x2bb))/0x9+parseInt(_0x255a20(0x12c))/0xa*(-parseInt(_0x255a20(0x2ab))/0xb);if(_0x62390a===_0x4e8a61)break;else _0x525fcc['push'](_0x525fcc['shift']());}catch(_0x3744cf){_0x525fcc['push'](_0x525fcc['shift']());}}}(_0x286d,0xd84de));import{CollaborationEvent as _0x1651b4,CompressMutationService as _0x5eaf7a,EmptyMutationInfo as _0x36b96b,ISnapshotServerService as _0x526e15,ITransformService as _0x20b3b0,RevisionService as _0x51cba4,SnapshotService as _0x52e0ab,UniverCollaborationPlugin as _0x52dd1d,b64DecodeUnicode as _0x47ffcd,isTransformChangesetsSuccess as _0x517847,isTransformMutationsWithChangesetFailure as _0x4ee0a0,isTransformMutationsWithChangesetSuccess as _0x210972,mapDocumentTypeToUniverType as _0x1130bf,parseChangesetToProtocol as _0x376f54,parseProtocolChangeset as _0x1d997f,textEncoder as _0x166a27,uuidv4 as _0x504e1a}from'@univerjs-pro/collaboration';import{CommandType as _0x203ac4,DependentOn as _0x178b1a,Disposable as _0xa722e5,DisposableCollection as _0x3e6a15,IAuthzIoService as _0x281200,ICommandService as _0xd98a3d,IConfigService as _0x3bb947,IContextService as _0x517331,ILogService as _0x50b61b,IMentionIOService as _0x55903a,IPermissionService as _0x31cc51,IUndoRedoService as _0x52ad9b,IUniverInstanceService as _0x3bf7a9,Inject as _0x2b7fdf,Injector as _0x54f16c,JSONX as _0x554916,LocalUndoRedoService as _0x1d7d6e,LocaleService as _0x3e1339,MentionType as _0x274070,Optional as _0x1b9758,Plugin as _0x38c1ef,Quantity as _0x4dbff7,Rectangle as _0x2abb64,RxDisposable as _0x1e78ef,Tools as _0x4c03fd,UniverInstanceType as _0x996087,UserManagerService as _0x798ed9,Workbook as _0x1f92c6,createIdentifier as _0x4fb39a,generateRandomId as _0x251b91,isInternalEditorID as _0x5d658e,merge as _0x36b3c5,mergeOverrideWithDependencies as _0x106aa9,registerDependencies as _0x168d3c,resolveWithBasePath as _0x1e226e,sequenceExecute as _0x5f957c,toDisposable as _0x569d37,touchDependencies as _0x4ce7f8}from'@univerjs/core';import{RichTextEditingMutation as _0x24dd5b}from'@univerjs/docs';import{InsertSheetMutation as _0x2677ec,SetSelectionsOperation as _0x148281,SheetPermissionInitController as _0x8bf2b4,SheetsSelectionsService as _0x50b7f1,WorkbookEditablePermission as _0x44218c}from'@univerjs/sheets';import{BehaviorSubject as _0x39a505,ReplaySubject as _0x442e6a,Subject as _0xc4bd15,concatMap as _0x5935ea,firstValueFrom as _0x55b7e7,map as _0x10dc32,merge as _0x4aaad5,of as _0x33d84d,shareReplay as _0x14f4d3,take as _0xf6063e,takeUntil as _0x41771b}from'rxjs';import{CmdRspCode as _0x12b6be,CombCmd as _0x211868,ErrorCode as _0x165abf,FileSource as _0x49d065,UniverType as _0x2b168c}from'@univerjs/protocol';import{ITelemetryService as _0x861c76}from'@univerjs/telemetry';import{delay as _0x188064,filter as _0x266152,map as _0x17b213,take as _0x407cef,takeUntil as _0x2e8a4b}from'rxjs/operators';import{HTTPRequest as _0x4faa16,HTTPService as _0x9333b9,ISocketService as _0x1b4143,MergeInterceptorFactory as _0x14096c,ThresholdInterceptorFactory as _0x5aacdc,UniverNetworkPlugin as _0x2729ef}from'@univerjs/network';import{UniverLicensePlugin as _0x3bba05,getGlobalObject as _0x33ee66}from'@univerjs-pro/license';import{IImageIoService as _0x36ac65,ImageSourceType as _0x11aa5f,ImageUploadStatusType as _0x55ee28}from'@univerjs/drawing';import _0x394d2a from'crypto-js/aes';import _0x53f8e6 from'crypto-js/enc-base64';import _0x470a56 from'crypto-js/enc-utf8';import _0x548e69 from'crypto-js/lib-typedarrays';import _0x16a0dc from'crypto-js/pad-nopadding';const ft=_0x215c00(0x317),pt=_0x215c00(0x166),mt=_0x215c00(0x29a),ht=_0x215c00(0xe7),gt=0x4e20,_t=_0x215c00(0x223),vt=_0x215c00(0x2a9),yt=0x3e8,bt=_0x215c00(0x21d),xt='/universer-api/uniscript';function St(_0x48b601){const _0x285e68=_0x215c00;return JSON[_0x285e68(0x15d)](_0x48b601)[_0x285e68(0x265)];}function Ct(_0x411d48){'@babel/helpers - typeof';const _0x4e1ac7=_0x215c00;return Ct=typeof Symbol=='function'&&typeof Symbol[_0x4e1ac7(0xee)]=='symbol'?function(_0x6c9d73){return typeof _0x6c9d73;}:function(_0x37253b){const _0x3bfdeb=_0x4e1ac7;return _0x37253b&&typeof Symbol==_0x3bfdeb(0xef)&&_0x37253b[_0x3bfdeb(0x195)]===Symbol&&_0x37253b!==Symbol[_0x3bfdeb(0x266)]?_0x3bfdeb(0x2fd):typeof _0x37253b;},Ct(_0x411d48);}function wt(_0x24d0e2,_0x149721){const _0xa7ec72=_0x215c00;if(Ct(_0x24d0e2)!='object'||!_0x24d0e2)return _0x24d0e2;var _0x2a6ab9=_0x24d0e2[Symbol[_0xa7ec72(0x2f8)]];if(_0x2a6ab9!==void 0x0){var _0x10dfe5=_0x2a6ab9[_0xa7ec72(0x27f)](_0x24d0e2,_0x149721||_0xa7ec72(0x198));if(Ct(_0x10dfe5)!='object')return _0x10dfe5;throw TypeError(_0xa7ec72(0x2e5));}return(_0x149721==='string'?String:Number)(_0x24d0e2);}function Tt(_0x90967f){const _0x4139aa=_0x215c00;var _0x194f06=wt(_0x90967f,'string');return Ct(_0x194f06)==_0x4139aa(0x2fd)?_0x194f06:_0x194f06+'';}function N(_0x8c22ef,_0x4caecd,_0x4464f8){const _0x41e0e8=_0x215c00;return(_0x4caecd=Tt(_0x4caecd))in _0x8c22ef?Object[_0x41e0e8(0x318)](_0x8c22ef,_0x4caecd,{'value':_0x4464f8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x8c22ef[_0x4caecd]=_0x4464f8,_0x8c22ef;}let P=function(_0x33cbd2){const _0x27a982=_0x215c00;return _0x33cbd2[_0x27a982(0x1e6)]=_0x27a982(0x1e6),_0x33cbd2[_0x27a982(0x2ac)]=_0x27a982(0x2ac),_0x33cbd2[_0x27a982(0xbc)]=_0x27a982(0xbc),_0x33cbd2[_0x27a982(0x25f)]=_0x27a982(0x25f),_0x33cbd2['JOIN_ROOM_FAILED']=_0x27a982(0x25b),_0x33cbd2['SOCKET_FAILED_RETRY']=_0x27a982(0x262),_0x33cbd2[_0x27a982(0x1f9)]='SOCKET_FAILED',_0x33cbd2[_0x27a982(0x1a5)]='SUBMIT_CHANGESET_TIMEOUT',_0x33cbd2;}({});var F=class{constructor(){const _0xb13924=_0x215c00;N(this,'_event$',new _0xc4bd15()),N(this,_0xb13924(0x177),this[_0xb13924(0x1b5)][_0xb13924(0x25e)]());}['emitEvent'](_0x46009b){const _0x5840dd=_0x215c00;this[_0x5840dd(0x1b5)][_0x5840dd(0x2f0)](_0x46009b);}},Et=class{constructor(){const _0x1bce46=_0x215c00;N(this,_0x1bce46(0x169),new _0xc4bd15()),N(this,_0x1bce46(0x182),this[_0x1bce46(0x169)][_0x1bce46(0x25e)]());}[_0x215c00(0x25a)](_0x168a4b){const _0x133d98=_0x215c00;this[_0x133d98(0x169)][_0x133d98(0x2f0)](_0x168a4b);}};function I(_0x2bd94d,_0x9a8ed5){return function(_0x52f752,_0x4bea50){_0x9a8ed5(_0x52f752,_0x4bea50,_0x2bd94d);};}function L(_0x5613cc,_0x1a38c8,_0x5a79fd,_0x9c65da){const _0x54b85f=_0x215c00;var _0x292abe=arguments[_0x54b85f(0x265)],_0x2847c8=_0x292abe<0x3?_0x1a38c8:_0x9c65da===null?_0x9c65da=Object[_0x54b85f(0x2fe)](_0x1a38c8,_0x5a79fd):_0x9c65da,_0x34df94;if(typeof Reflect==_0x54b85f(0x2e3)&&typeof Reflect[_0x54b85f(0x304)]==_0x54b85f(0xef))_0x2847c8=Reflect[_0x54b85f(0x304)](_0x5613cc,_0x1a38c8,_0x5a79fd,_0x9c65da);else{for(var _0x5ca7d9=_0x5613cc['length']-0x1;_0x5ca7d9>=0x0;_0x5ca7d9--)(_0x34df94=_0x5613cc[_0x5ca7d9])&&(_0x2847c8=(_0x292abe<0x3?_0x34df94(_0x2847c8):_0x292abe>0x3?_0x34df94(_0x1a38c8,_0x5a79fd,_0x2847c8):_0x34df94(_0x1a38c8,_0x5a79fd))||_0x2847c8);}return _0x292abe>0x3&&_0x2847c8&&Object[_0x54b85f(0x318)](_0x1a38c8,_0x5a79fd,_0x2847c8),_0x2847c8;}let R=class extends _0xa722e5{constructor(_0xff540c,_0x430274){const _0x206dd5=_0x215c00;super(),this['_univerInstanceService']=_0xff540c,this[_0x206dd5(0x139)]=_0x430274,N(this,_0x206dd5(0x1d9),new Map()),N(this,'_roomCreated$',new _0xc4bd15()),this[_0x206dd5(0x2be)](_0x4aaad5(this[_0x206dd5(0x1ef)]['getTypeOfUnitDisposed$'](_0x996087['UNIVER_SHEET'])[_0x206dd5(0x145)](_0x17b213(_0x22e1be=>_0x22e1be[_0x206dd5(0x267)]())),this[_0x206dd5(0x1ef)][_0x206dd5(0x2f7)](_0x996087['UNIVER_DOC'])[_0x206dd5(0x145)](_0x17b213(_0x479ed1=>_0x479ed1[_0x206dd5(0x267)]())),this[_0x206dd5(0x1ef)][_0x206dd5(0x2f7)](_0x996087[_0x206dd5(0x158)])[_0x206dd5(0x145)](_0x17b213(_0x226b1c=>_0x226b1c[_0x206dd5(0x267)]())))[_0x206dd5(0x120)](_0x3070e5=>this[_0x206dd5(0x113)](_0x3070e5)));}['waitForRoom$'](_0x38d863){const _0x37a1b0=_0x215c00;return this['_roomMembers'][_0x37a1b0(0x2e4)](_0x38d863)?_0x33d84d(this[_0x37a1b0(0x1d9)][_0x37a1b0(0x2aa)](_0x38d863)):this[_0x37a1b0(0x253)][_0x37a1b0(0x145)](_0x17b213(_0x26431a=>{const _0x492edf=_0x37a1b0;if(_0x26431a===_0x38d863)return this[_0x492edf(0x1d9)][_0x492edf(0x2aa)](_0x26431a);}));}['setCurrentUser'](_0xaf7633){const _0x4fc905=_0x215c00;this['_userManagerService'][_0x4fc905(0x2cd)](_0xaf7633);}[_0x215c00(0x260)](){const _0x139ddd=_0x215c00;return this[_0x139ddd(0x139)]['getCurrentUser']();}[_0x215c00(0x101)](_0x2c70e9,_0x466286){const _0xb505e9=_0x215c00;let _0x505bd1=this['_roomMembers']['get'](_0x2c70e9);_0x505bd1||(_0x505bd1=new Dt(),this[_0xb505e9(0x1d9)][_0xb505e9(0x111)](_0x2c70e9,_0x505bd1),this[_0xb505e9(0x253)]['next'](_0x2c70e9)),_0x505bd1['updateMember'](_0x466286);}['removeMember'](_0x5f2ee9,_0x1b71df){const _0x2a608e=_0x215c00;let _0x40b707=this[_0x2a608e(0x1d9)][_0x2a608e(0x2aa)](_0x5f2ee9);_0x40b707&&_0x40b707['removeMember'](_0x1b71df);}[_0x215c00(0x201)](_0x24aa9a){const _0xc1533d=_0x215c00;return this[_0xc1533d(0x1d9)][_0xc1533d(0x2aa)](_0x24aa9a);}['getMember'](_0x2ed9df,_0x495399){const _0x5f5168=_0x215c00;let _0x11d2c0=this['_roomMembers'][_0x5f5168(0x2aa)](_0x2ed9df);if(_0x11d2c0)return _0x11d2c0[_0x5f5168(0x16b)](_0x495399);}[_0x215c00(0x113)](_0x498b6e){const _0xa86602=_0x215c00;let _0x3eaf34=this[_0xa86602(0x1d9)]['get'](_0x498b6e);_0x3eaf34&&(_0x3eaf34[_0xa86602(0x2c1)](),this[_0xa86602(0x1d9)]['delete'](_0x498b6e));}[_0x215c00(0x2c1)](){const _0x4ba16b=_0x215c00;this[_0x4ba16b(0x1d9)][_0x4ba16b(0xc9)](_0x3c59be=>_0x3c59be['dispose']()),this[_0x4ba16b(0x1d9)]['clear'](),this[_0x4ba16b(0x253)][_0x4ba16b(0x142)]();}};R=L([I(0x0,_0x3bf7a9),I(0x1,_0x2b7fdf(_0x798ed9))],R);var Dt=class extends _0xa722e5{constructor(..._0x3db1ab){const _0x12a3f9=_0x215c00;super(..._0x3db1ab),N(this,_0x12a3f9(0x221),new Map()),N(this,_0x12a3f9(0x217),new _0x39a505(this[_0x12a3f9(0x221)])),N(this,_0x12a3f9(0x212),this['_members$'][_0x12a3f9(0x25e)]());}[_0x215c00(0x2c1)](){const _0x1f01c7=_0x215c00;this[_0x1f01c7(0x221)][_0x1f01c7(0x10a)]();}[_0x215c00(0x101)](_0x5ac079){const _0x4c01d0=_0x215c00;this[_0x4c01d0(0x221)]['set'](_0x5ac079['memberID'],_0x5ac079),this[_0x4c01d0(0x1f0)]();}[_0x215c00(0x29e)](_0x427b73){const _0x1d599c=_0x215c00;this[_0x1d599c(0x221)][_0x1d599c(0x19e)](_0x427b73);}[_0x215c00(0x16b)](_0x3d1105){const _0x93d3d2=_0x215c00;return this[_0x93d3d2(0x221)][_0x93d3d2(0x2aa)](_0x3d1105);}['getAllMembers'](){const _0x544d42=_0x215c00;return Array['from'](this['_members'][_0x544d42(0x22d)]());}[_0x215c00(0x1f0)](){const _0x2c6dd8=_0x215c00;this[_0x2c6dd8(0x217)][_0x2c6dd8(0x2f0)](this[_0x2c6dd8(0x221)]);}};let z=function(_0x19a67d){const _0x1a2575=_0x215c00;return _0x19a67d[_0x19a67d[_0x1a2575(0x23a)]=0x0]=_0x1a2575(0x23a),_0x19a67d[_0x19a67d[_0x1a2575(0x124)]=0x1]=_0x1a2575(0x124),_0x19a67d[_0x19a67d[_0x1a2575(0xd8)]=0x2]='OFFLINE',_0x19a67d[_0x19a67d[_0x1a2575(0x202)]=0x3]=_0x1a2575(0x202),_0x19a67d;}({});const Ot={[_0x12b6be['FAIL']]:_0x215c00(0x24b),[_0x12b6be[_0x215c00(0x11a)]]:_0x215c00(0x255),[_0x12b6be[_0x215c00(0x171)]]:_0x215c00(0xbe),[_0x12b6be[_0x215c00(0x21c)]]:_0x215c00(0x17a),[_0x12b6be[_0x215c00(0x1f2)]]:_0x215c00(0x30b)};let kt=class extends _0x1e78ef{get[_0x215c00(0x23e)](){return this['_sessionStatus$']['getValue']();}constructor(_0x4f700a,_0x45a4a8,_0x28ca43,_0x52f33b,_0x3ccd3e,_0x1883d5,_0x51c907,_0x413372){const _0x12992e=_0x215c00;super(),this[_0x12992e(0x19a)]=_0x4f700a,this[_0x12992e(0x2c6)]=_0x28ca43,this[_0x12992e(0x2d8)]=_0x52f33b,this[_0x12992e(0x1bd)]=_0x3ccd3e,this[_0x12992e(0x1ea)]=_0x1883d5,this['_collaborationUIEventService']=_0x51c907,this['_telemetryService']=_0x413372,N(this,_0x12992e(0x200),new _0x39a505(z['IDLE'])),N(this,_0x12992e(0x2fc),this[_0x12992e(0x200)][_0x12992e(0x25e)]()),N(this,'_event$',new _0xc4bd15()),N(this,'event$',this[_0x12992e(0x1b5)]['asObservable']()),N(this,_0x12992e(0x1ff),void 0x0),N(this,'_socketMessageSubscription',void 0x0),N(this,'_collaborationTimeoutTimer',void 0x0),N(this,'_shouldReportTelemetry',!0x1),N(this,_0x12992e(0x172),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x45a4a8['pipe'](_0x41771b(this[_0x12992e(0x168)]))[_0x12992e(0x120)](_0x5333c4=>{const _0x431dd1=_0x12992e;if(_0x5333c4!==void 0x0){if(this[_0x431dd1(0x1ff)]=_0x5333c4,_0x5333c4)this[_0x431dd1(0x283)](_0x5333c4),this['_socketMessageSubscription']=_0x5333c4[_0x431dd1(0xb9)][_0x431dd1(0x120)](_0x590205=>{const _0x1b543c=_0x431dd1;_0x590205[_0x1b543c(0x326)]===this[_0x1b543c(0x19a)]&&this[_0x1b543c(0x257)](_0x590205);});else{var _0xf463d8;this[_0x431dd1(0x2b3)](),this[_0x431dd1(0x200)][_0x431dd1(0x2f0)](z[_0x431dd1(0xd8)]),(_0xf463d8=this[_0x431dd1(0xf8)])==null||_0xf463d8[_0x431dd1(0x252)](),this[_0x431dd1(0xf8)]=null;}}});}[_0x215c00(0x1f3)](){const _0x444b1a=_0x215c00;var _0x3582b8,_0x3ebfc2;return(_0x3582b8=(_0x3ebfc2=this[_0x444b1a(0x1ff)])==null?void 0x0:_0x3ebfc2['memberID'])==null?null:_0x3582b8;}['dispose'](){const _0x1a90c9=_0x215c00;super[_0x1a90c9(0x2c1)](),this['close'](),this[_0x1a90c9(0x168)][_0x1a90c9(0x2f0)](),this['dispose$'][_0x1a90c9(0x142)]();}[_0x215c00(0xe4)](){const _0x688ee4=_0x215c00;var _0x40db1a,_0x119f39;this[_0x688ee4(0x2b3)](),(_0x40db1a=this['_socket'])==null||_0x40db1a[_0x688ee4(0x307)]({'cmd':_0x211868[_0x688ee4(0x2f5)],'data':{'roomID':this[_0x688ee4(0x19a)]}}),(_0x119f39=this[_0x688ee4(0x1ff)])==null||_0x119f39[_0x688ee4(0xe4)](),this[_0x688ee4(0x1b5)][_0x688ee4(0x142)](),this[_0x688ee4(0x200)][_0x688ee4(0x142)]();}['_onCombEvent'](_0x36fe7c){const _0x328948=_0x215c00;_0x36fe7c[_0x328948(0x183)]===_0x211868['JOIN']?this['_onJoinRoomEvent'](_0x36fe7c):_0x36fe7c[_0x328948(0x183)]===_0x211868[_0x328948(0x1aa)]&&this[_0x328948(0x226)](_0x36fe7c);}['_joinRoom'](_0x3ad41b){const _0xcd13be=_0x215c00;this[_0xcd13be(0x200)][_0xcd13be(0x2f0)](z[_0xcd13be(0x124)]),_0x3ad41b[_0xcd13be(0x307)]({'cmd':_0x211868[_0xcd13be(0x269)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xcd13be(0x19a)]}]}});}[_0x215c00(0x2a1)](_0x5785c4){const _0x1c2041=_0x215c00;var _0x2d7aa4;if(_0x5785c4[_0x1c2041(0x1c1)]in Ot){this['_collaborationUIEventService']['emitEvent']({'id':P['JOIN_ROOM_FAILED'],'data':Ot[_0x5785c4[_0x1c2041(0x1c1)]]}),this[_0x1c2041(0x200)][_0x1c2041(0x2f0)](z[_0x1c2041(0xd8)]);return;}this['_sessionStatus$'][_0x1c2041(0x2f0)](z[_0x1c2041(0x202)]);let _0x1f83ad=(_0x2d7aa4=_0x5785c4[_0x1c2041(0x327)][_0x1c2041(0x222)][this[_0x1c2041(0x19a)]])==null?void 0x0:_0x2d7aa4[_0x1c2041(0x1f5)];_0x1f83ad&&_0x1f83ad[_0x1c2041(0xc9)](_0x468ae7=>this['_memberService'][_0x1c2041(0x101)](this[_0x1c2041(0x19a)],_0x468ae7));}[_0x215c00(0x226)](_0x174c7e){const _0x19534b=_0x215c00;try{let _0x4fc160=_0x174c7e[_0x19534b(0x327)];switch(_0x4fc160['eventID']){case _0x1651b4[_0x19534b(0x17c)]:this['_onUserJoin'](_0x4fc160),this[_0x19534b(0x1b5)][_0x19534b(0x2f0)](_0x4fc160);break;case _0x1651b4[_0x19534b(0x1a4)]:this['_onUserLeave'](_0x4fc160),this['_event$'][_0x19534b(0x2f0)](_0x4fc160);break;case _0x1651b4[_0x19534b(0x2c0)]:case _0x1651b4[_0x19534b(0x1b6)]:this[_0x19534b(0x105)](),this[_0x19534b(0xf6)](),this[_0x19534b(0x1b5)]['next'](_0x4fc160);break;case _0x1651b4['MSG_FOR_ERROR']:this[_0x19534b(0x2c6)][_0x19534b(0x207)](_0x19534b(0xd1)+JSON[_0x19534b(0x15d)](_0x4fc160)),this[_0x19534b(0x1b5)]['next'](_0x4fc160);break;case _0x1651b4[_0x19534b(0x159)]:this[_0x19534b(0x1ea)]['onCommentUpdate'](_0x4fc160['data']),this[_0x19534b(0x1b5)][_0x19534b(0x2f0)](_0x4fc160);break;default:this[_0x19534b(0x1b5)]['next'](_0x4fc160);}}catch(_0x4de811){this[_0x19534b(0x2c6)]['error'](_0x4de811,_0x174c7e);}}[_0x215c00(0x1e2)](_0x365ec9){const _0x2dddf9=_0x215c00;this['_memberService'][_0x2dddf9(0x101)](this['_unitID'],_0x365ec9[_0x2dddf9(0x327)]);}['_onUserLeave'](_0x133b1){const _0x257dbc=_0x215c00;this[_0x257dbc(0x1bd)][_0x257dbc(0x29e)](this[_0x257dbc(0x19a)],_0x133b1[_0x257dbc(0x327)][_0x257dbc(0x302)]);}async[_0x215c00(0x307)](_0x4a1813,_0x2d586a){const _0x588463=_0x215c00;if(this[_0x588463(0x23e)]!==z[_0x588463(0x202)]||!this[_0x588463(0x1ff)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x4a1813['eventID']===_0x1651b4['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x588463(0x2ea)](_0x4a1813)),this[_0x588463(0x1ff)][_0x588463(0x307)]({'cmd':_0x211868[_0x588463(0x2a2)],'routeKey':_0x2d586a,'routeType':'','data':_0x4a1813});}catch(_0x21d1d8){this['_logService']['error'](_0x21d1d8);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3c94b7=_0x215c00;var _0x615323;this[_0x3c94b7(0x1f8)]=setTimeout(()=>{const _0xd3f6d5=_0x3c94b7;this['_collaborationTimeoutTimer']=null,this['_collaborationUIEventService'][_0xd3f6d5(0x160)]({'id':P[_0xd3f6d5(0x1a5)]});},(_0x615323=this['_configService'][_0x3c94b7(0xb6)](_0x3c94b7(0xe7)))==null?gt:_0x615323);}[_0x215c00(0xf6)](){const _0x51d3fd=_0x215c00;this[_0x51d3fd(0x1f8)]&&(clearTimeout(this[_0x51d3fd(0x1f8)]),this['_collaborationTimeoutTimer']=null);}[_0x215c00(0x2ea)](_0x3df2ae){const _0x5774b3=_0x215c00;if(!this['_shouldReportTelemetry'])return;let {data:_0x1abb3f}=_0x3df2ae,{unitID:_0x39bab6,changeset:_0x34eafd}=_0x1abb3f,{mutations:_0x36ca0a,type:_0x49b6b6}=_0x34eafd;this[_0x5774b3(0x172)]={'unitId':_0x39bab6,'type':_0x49b6b6,'startTime':performance[_0x5774b3(0x27d)](),'stopTime':0x0,'duration':0x0,'size':St(_0x36ca0a)};}[_0x215c00(0x105)](){const _0x4fcb5d=_0x215c00;if(this[_0x4fcb5d(0x2e0)]){if(!this['_telemetryInfo']){this[_0x4fcb5d(0x2c6)][_0x4fcb5d(0x207)](_0x4fcb5d(0x151),_0x4fcb5d(0x319));return;}this[_0x4fcb5d(0x172)][_0x4fcb5d(0xba)]=performance['now'](),this[_0x4fcb5d(0x172)][_0x4fcb5d(0x2b2)]=this[_0x4fcb5d(0x172)]['stopTime']-this[_0x4fcb5d(0x172)][_0x4fcb5d(0x29b)],this[_0x4fcb5d(0x214)][_0x4fcb5d(0xb8)](_0x4fcb5d(0x28c),this[_0x4fcb5d(0x172)]),this[_0x4fcb5d(0x172)]=null;}}[_0x215c00(0x2b3)](){const _0x162228=_0x215c00;this[_0x162228(0x172)]=null;}};kt=L([I(0x2,_0x50b61b),I(0x3,_0x3bb947),I(0x4,_0x2b7fdf(R)),I(0x5,_0x2b7fdf(Et)),I(0x6,_0x2b7fdf(F)),I(0x7,_0x1b9758(_0x861c76))],kt);const B=_0x4fb39a(_0x215c00(0x137));function At(_0x2f01b7){const _0x5b5981=_0x215c00;return _0x5b5981(0x1f1)+_0x2f01b7;}function jt(_0x322025){const _0x3716a2=_0x215c00;let {unitID:_0x3fab57,mutations:_0x559b54}=_0x322025;return{'unitId':_0x3fab57,'subUnitId':_0x559b54['length']>0x0?_0x559b54[0x0][_0x3716a2(0x17b)][_0x3716a2(0x286)]:null};}let V=class{constructor(_0x57a523,_0x4e84fa,_0x4cf9a8){const _0x4e549f=_0x215c00;this['_injector']=_0x57a523,this[_0x4e549f(0x119)]=_0x4e84fa,this[_0x4e549f(0x170)]=_0x4cf9a8;}[_0x215c00(0x231)](_0x3eecf8){const _0x1f108d=_0x215c00;var _0x3b2362,_0x11adcf;let _0x2e0a12=this[_0x1f108d(0x1ba)][_0x1f108d(0x2aa)](_0x50b7f1),{unitId:_0x572417,subUnitId:_0x2e8c2b}=jt(_0x3eecf8),_0x167d21=_0x2e0a12==null?void 0x0:_0x2e0a12[_0x1f108d(0x2c3)](_0x572417)[_0x1f108d(0xb0)](),_0x3d0381=(_0x3b2362=this[_0x1f108d(0x170)][_0x1f108d(0x186)](_0x572417))==null||(_0x3b2362=_0x3b2362['getActiveSheet']())==null?void 0x0:_0x3b2362[_0x1f108d(0x108)]();if(_0x167d21['length']===0x0||!_0x572417||!_0x2e8c2b)return;let _0xbd72df=[{'id':_0x148281['id'],'params':{'unitId':_0x572417,'subUnitId':_0x3d0381,'selections':_0x4c03fd[_0x1f108d(0x2ee)](_0x167d21)}}],_0x4b883d=this[_0x1f108d(0x119)][_0x1f108d(0xd6)](_0x3eecf8,_0xbd72df);if(!_0x210972(_0x4b883d))throw _0x4b883d[_0x1f108d(0x207)];let _0x193cc7=(_0x11adcf=_0x4b883d[_0x1f108d(0x152)][0x0])==null||(_0x11adcf=_0x11adcf[_0x1f108d(0x17b)])==null?void 0x0:_0x11adcf[_0x1f108d(0xaf)];if(Array['isArray'](_0x193cc7)&&_0x193cc7[_0x1f108d(0x265)]){if(_0x193cc7[_0x1f108d(0x265)]===_0xbd72df[0x0][_0x1f108d(0x17b)][_0x1f108d(0xaf)]['length']&&_0x193cc7[_0x1f108d(0x329)]((_0x5397b3,_0x5aaf6c)=>_0x2abb64['equals'](_0x5397b3[_0x1f108d(0x1d1)],_0xbd72df[0x0][_0x1f108d(0x17b)]['selections'][_0x5aaf6c]['range'])))return;this[_0x1f108d(0x1ba)][_0x1f108d(0x2aa)](_0xd98a3d)[_0x1f108d(0xe5)](_0x148281['id'],{'unitId':_0x572417,'subUnitId':_0x3d0381,'selections':_0x193cc7});}}};V=L([I(0x0,_0x2b7fdf(_0x54f16c)),I(0x1,_0x20b3b0),I(0x2,_0x3bf7a9)],V);const Mt=_0x4fb39a('univer-pro.collaboration-client.single-active-unit-service');let Nt=function(_0x18b8ba){const _0x540967=_0x215c00;return _0x18b8ba[_0x18b8ba[_0x540967(0x196)]=0x0]=_0x540967(0x196),_0x18b8ba[_0x18b8ba[_0x540967(0x296)]=0x1]=_0x540967(0x296),_0x18b8ba;}({});const H=_0x215c00(0x22e);Symbol(H);const Pt={};function Ft(_0x4d991d){const _0x3fd9fc=_0x215c00;var _0xa0a2af;return!!((_0xa0a2af=_0x4d991d[_0x3fd9fc(0x17b)])!=null&&_0xa0a2af['__splitChunk__']);}const It=new Set([_0x2677ec['id']]);function Lt(_0x50c339,_0x44e16c,_0x401373,_0x54e92c,_0x5bba41){const _0x4fb228=_0x215c00;var _0x2b3a83,_0x313945,_0x1a7072,_0x3cc127;let _0xba6bd9=[];for(let _0x42c56c of _0x50c339){if(It[_0x4fb228(0x2e4)](_0x42c56c['id'])){if(_0xba6bd9['length']>0x0)break;_0xba6bd9[_0x4fb228(0x298)](_0x42c56c);break;}if(Ft(_0x42c56c)){if(_0xba6bd9['length']>0x0)break;_0xba6bd9[_0x4fb228(0x298)](_0x42c56c);break;}_0xba6bd9[_0x4fb228(0x298)](_0x42c56c);}let _0x33ca14=(_0x2b3a83=(_0x313945=_0x5bba41[_0x4fb228(0x260)]())==null?void 0x0:_0x313945[_0x4fb228(0x197)])==null?'unknown':_0x2b3a83,_0x1d1094=(_0x1a7072=(_0x3cc127=_0x5bba41[_0x4fb228(0x260)]())==null?void 0x0:_0x3cc127[_0x4fb228(0x302)])==null?_0x4fb228(0x2b6):_0x1a7072;return{'changeset':{'unitID':_0x44e16c,'type':_0x1130bf(_0x401373[_0x4fb228(0x294)](_0x44e16c)),'baseRev':_0x54e92c[_0x4fb228(0x13d)](_0x44e16c),'revision':0x0,'userID':_0x33ca14,'memberID':_0x1d1094,'mutations':_0xba6bd9},'pendingMutations':_0x50c339[_0x4fb228(0x2df)](_0xba6bd9[_0x4fb228(0x265)])};}function Rt(_0x52ba57,_0x9c9b05,_0x7bb28d,_0x4a397f,_0x3f44fd){const _0x4d175b=_0x215c00;var _0x4f42ca,_0x50527a,_0x55cb03,_0x27d4bc;let _0x17383d=[_0x52ba57[_0x4d175b(0x1b1)]((_0xdb3513,_0x109a35)=>{const _0x403109=_0x4d175b;var _0x5ba176;let {id:_0x9914ee}=_0xdb3513,{id:_0x598f97,type:_0x5eebb3}=_0x109a35,_0x814a1a=(_0x5ba176=_0xdb3513['params'])==null?{'actions':null}:_0x5ba176,_0x386345=_0x109a35[_0x403109(0x17b)];if(_0x9914ee&&_0x9914ee!==_0x598f97)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x9914ee+_0x403109(0x1c4)+_0x598f97+'.');return{..._0xdb3513,'id':_0x598f97,'type':_0x5eebb3,'params':{'unitId':_0x386345['unitId'],'textRanges':_0x386345[_0x403109(0x1d4)],'actions':_0x554916[_0x403109(0x2a0)](_0x814a1a['actions'],_0x386345['actions'])}};},{})],_0x49bfc7=(_0x4f42ca=(_0x50527a=_0x3f44fd['getCurrentUser']())==null?void 0x0:_0x50527a[_0x4d175b(0x197)])==null?_0x4d175b(0x2b6):_0x4f42ca,_0x4c4354=(_0x55cb03=(_0x27d4bc=_0x3f44fd[_0x4d175b(0x260)]())==null?void 0x0:_0x27d4bc[_0x4d175b(0x302)])==null?'unknown':_0x55cb03;return{'changeset':{'unitID':_0x9c9b05,'type':_0x1130bf(_0x7bb28d[_0x4d175b(0x294)](_0x9c9b05)),'baseRev':_0x4a397f['getCurrentRevOfUnit'](_0x9c9b05),'revision':0x0,'userID':_0x49bfc7,'memberID':_0x4c4354,'mutations':_0x17383d},'pendingMutations':[]};}function zt(_0x3c5a3d,_0x3a2ac0){const _0x2b6532=_0x215c00;let _0x22d4f3=new _0x442e6a(0x1);return setTimeout(()=>_0x22d4f3[_0x2b6532(0x2f0)](_0x3a2ac0),_0x3c5a3d),_0x22d4f3['asObservable']()[_0x2b6532(0x145)](_0xf6063e(0x1));}var Bt,Vt,Ht;let U=function(_0x3eb68f){const _0x1ef8c6=_0x215c00;return _0x3eb68f[_0x1ef8c6(0x18c)]=_0x1ef8c6(0x213),_0x3eb68f[_0x1ef8c6(0xc0)]=_0x1ef8c6(0x110),_0x3eb68f['PENDING']=_0x1ef8c6(0x26e),_0x3eb68f[_0x1ef8c6(0x248)]=_0x1ef8c6(0x2d1),_0x3eb68f[_0x1ef8c6(0x27a)]=_0x1ef8c6(0x118),_0x3eb68f[_0x1ef8c6(0x115)]=_0x1ef8c6(0x31f),_0x3eb68f['CONFLICT']=_0x1ef8c6(0x204),_0x3eb68f[_0x1ef8c6(0xd8)]=_0x1ef8c6(0x25d),_0x3eb68f;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x435fd3,_0x31d751,_0x4aa900,_0x323b67,_0x3bb86d,_0x3aeb87,_0x14cdbe,_0x246135,_0x5bf6ee){const _0x19489c=_0x215c00;this[_0x19489c(0x100)]=_0x435fd3,this[_0x19489c(0x2d4)]=_0x31d751,this[_0x19489c(0xf3)]=_0x3bb86d,this[_0x19489c(0x188)]=_0x3aeb87,this[_0x19489c(0x17f)]=_0x14cdbe,this[_0x19489c(0x311)]=_0x246135,this[_0x19489c(0x2b7)]=_0x5bf6ee,N(this,'_awaitingChangeset',null),N(this,_0x19489c(0x1fe),[]),this[_0x19489c(0x1cf)]=_0x4aa900,this[_0x19489c(0x1fe)]=_0x323b67;}[_0x215c00(0x235)](_0x59c587){const _0xea8249=_0x215c00;let _0x529874=this[_0xea8249(0x311)][_0xea8249(0x13d)](this[_0xea8249(0x100)]);return _0x59c587['revision']>_0x529874+0x1?(this[_0xea8249(0xf3)][_0xea8249(0x299)]({'from':_0x529874,'to':_0x59c587['revision']-0x1}),!0x0):!0x1;}[_0x215c00(0x206)](_0x34059d){const _0x355c3b=_0x215c00;this[_0x355c3b(0x17f)]['transformUndoRedo'](this[_0x355c3b(0x100)],_0x34059d);}[_0x215c00(0x2db)](_0x366dba){const _0x242aae=_0x215c00;var _0x3a4476,_0x50ced7;(_0x3a4476=(_0x50ced7=this['_handler'])[_0x242aae(0x1b0)])==null||_0x3a4476[_0x242aae(0x27f)](_0x50ced7,_0x366dba);}[_0x215c00(0xdf)](_0x48a006){const _0x53569d=_0x215c00;var _0x245620,_0x430ff3;return(_0x245620=(_0x430ff3=this[_0x53569d(0xf3)])[_0x53569d(0xc1)])==null?void 0x0:_0x245620[_0x53569d(0x27f)](_0x430ff3,_0x48a006);}['_transformStateCache'](_0x2576c1){const _0x37ec69=_0x215c00;var _0xc73f32,_0x4d6e59;return(_0xc73f32=(_0x4d6e59=this[_0x37ec69(0xf3)])['onTransformState'])==null?void 0x0:_0xc73f32[_0x37ec69(0x27f)](_0x4d6e59,_0x2576c1);}[_0x215c00(0x17e)](_0x746a69){const _0x489d4a=_0x215c00;var _0x2661e3,_0x494901,_0x2f0a3b;return(_0x2661e3=(_0x494901=(_0x2f0a3b=this['_handler'])[_0x489d4a(0x2e2)])==null?void 0x0:_0x494901[_0x489d4a(0x27f)](_0x2f0a3b,_0x746a69))==null?_0x746a69:_0x2661e3;}['_transformRemoteChangesetByStateCache'](_0x37a77e){const _0x2f41ea=_0x215c00;var _0x387db6,_0xd204a2,_0x1e1da7;return(_0x387db6=(_0xd204a2=(_0x1e1da7=this[_0x2f41ea(0xf3)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xd204a2[_0x2f41ea(0x27f)](_0x1e1da7,_0x37a77e))==null?_0x37a77e:_0x387db6;}[_0x215c00(0x313)](_0x17b27f){const _0x3eae2b=_0x215c00;if(this[_0x3eae2b(0x2d4)]===_0x2b168c[_0x3eae2b(0xf7)]){let {unitID:_0x393969,mutations:_0x4c0be9,memberID:_0x27df83}=_0x17b27f,_0x579d70=_0x4c0be9[_0x3eae2b(0x265)]>0x0?_0x4c0be9[0x0]['params'][_0x3eae2b(0x1d4)]:[];if(Array[_0x3eae2b(0x14a)](_0x579d70)&&_0x579d70[_0x3eae2b(0x265)]>0x0){var _0x3e5e6e,_0x3d278e;(_0x3e5e6e=(_0x3d278e=this['_handler'])[_0x3eae2b(0x146)])==null||_0x3e5e6e[_0x3eae2b(0x27f)](_0x3d278e,{'unitID':_0x393969,'memberID':_0x27df83,'textRanges':_0x579d70});}}}[_0x215c00(0x16e)](){const _0x4c1cbe=_0x215c00;var _0x6e0f18;(_0x6e0f18=this[_0x4c1cbe(0x2b7)])==null||_0x6e0f18['updateOfflineData'](this[_0x4c1cbe(0x100)],this[_0x4c1cbe(0x2d4)],this['_awaitingChangeset'],this[_0x4c1cbe(0x1fe)]);}[_0x215c00(0xf0)](){const _0x492956=_0x215c00;return this[_0x492956(0x311)][_0x492956(0x13d)](this[_0x492956(0x100)]);}[_0x215c00(0x1d6)](){const _0x23b516=_0x215c00;this[_0x23b516(0x311)]['incrementRevOfUnit'](this['unitID']);}['_executeRemoteChangeset'](_0x1c0b6b){const _0x19d995=_0x215c00;let _0x596113=this[_0x19d995(0x17e)](_0x1c0b6b);_0x596113=this['_transformRemoteChangesetByStateCache'](_0x596113);let _0x4680a9=_0x5f957c(_0x596113[_0x19d995(0x1fa)],this[_0x19d995(0x188)],{'fromCollab':!0x0});if(!_0x4680a9[_0x19d995(0x132)]){var _0x2d09b2;throw _0x4680a9[_0x19d995(0x207)]instanceof Error?_0x4680a9['error']:Error((_0x2d09b2=_0x4680a9[_0x19d995(0x207)])==null?_0x19d995(0x1a7):_0x2d09b2);}this['_transformIMECache'](_0x596113),this[_0x19d995(0x11b)](_0x596113),this[_0x19d995(0x206)](_0x1c0b6b),this[_0x19d995(0x2db)](_0x596113),this['_syncEditingCollabCursor'](_0x596113),this[_0x19d995(0x1d6)]();}};let G=class extends W{constructor(_0x3bb54c,_0x386641,_0x330b1b,_0x4943ce,_0xd58ab3,_0x103a6a,_0x1b9d54,_0x5ee3d5,_0x2e6d3d,_0x541b19){const _0x5c251f=_0x215c00;super(_0x3bb54c,_0x386641,null,[],_0x330b1b,_0x1b9d54,_0x103a6a,_0x4943ce,_0x541b19),this[_0x5c251f(0x1ba)]=_0xd58ab3,this[_0x5c251f(0x2c6)]=_0x5ee3d5,this[_0x5c251f(0x119)]=_0x2e6d3d,this[_0x5c251f(0xd5)]=_0x541b19,N(this,_0x5c251f(0x2ff),U['SYNCED']);}[_0x215c00(0x12f)](_0x9c0e98){const _0xc7461a=_0x215c00;let _0xe3261c=this[_0xc7461a(0x1ba)][_0xc7461a(0x24f)](K,this[_0xc7461a(0x100)],this[_0xc7461a(0x2d4)],[_0x9c0e98],this[_0xc7461a(0xf3)]);return _0xe3261c[_0xc7461a(0x306)](),_0xe3261c[_0xc7461a(0x16e)](),_0xe3261c;}[_0x215c00(0x325)](_0x5d7256){const _0x391812=_0x215c00;if(this[_0x391812(0x235)](_0x5d7256))return this[_0x391812(0x1ba)]['createInstance'](Z,this['unitID'],this[_0x391812(0x2d4)],null,[],null,[_0x5d7256],this[_0x391812(0xf3)]);try{let _0x4adbdd=this[_0x391812(0x119)][_0x391812(0xd6)](_0x5d7256,[_0x36b96b]);if(_0x210972(_0x4adbdd)){let {c1Prime:_0x292ccf}=_0x4adbdd;return this[_0x391812(0x2ae)](_0x292ccf),this;}throw _0x4adbdd[_0x391812(0x207)];}catch(_0x3aa405){return this[_0x391812(0x2c6)][_0x391812(0x207)](_0x3aa405),this[_0x391812(0x30a)](!0x1);}}[_0x215c00(0x30a)](_0x2b1fdd){const _0x2837f3=_0x215c00;return this[_0x2837f3(0x1ba)]['createInstance'](Y,this['unitID'],this[_0x2837f3(0x2d4)],null,[],this[_0x2837f3(0xf3)],_0x2b1fdd);}[_0x215c00(0x1c8)](){throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x215c00(0xbb)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x215c00(0x287)](){return this;}['toggleOffline'](){const _0x33b6ee=_0x215c00;return this['_injector'][_0x33b6ee(0x24f)](X,this['unitID'],this[_0x33b6ee(0x2d4)],null,[],this[_0x33b6ee(0xf3)]);}['toggleOnline'](){return this;}['resend'](){const _0x513115=_0x215c00;throw Error(_0x513115(0x155));}[_0x215c00(0x180)](){const _0x425a70=_0x215c00;let _0x2f6ece=this['_revisionService'][_0x425a70(0x13d)](this[_0x425a70(0x100)]);return this[_0x425a70(0xf3)]['onMissingChangesets']({'from':_0x2f6ece,'to':0x0}),this[_0x425a70(0x1ba)]['createInstance'](Z,this[_0x425a70(0x100)],this[_0x425a70(0x2d4)],null,[],null,[],this[_0x425a70(0xf3)]);}};G=L([I(0x3,_0x2b7fdf(_0x51cba4)),I(0x4,_0x2b7fdf(_0x54f16c)),I(0x5,_0x52ad9b),I(0x6,_0xd98a3d),I(0x7,_0x50b61b),I(0x8,_0x20b3b0),I(0x9,_0x1b9758(B))],G);let K=Bt=class extends W{constructor(_0xb11d39,_0x1ee1b1,_0x50541a,_0x14b192,_0xefa75a,_0x3595a6,_0x3872d2,_0x576c23,_0x360089,_0x3b3b32,_0x549b0a,_0x470db7,_0x1700fa,_0x576cd2){const _0x3dc606=_0x215c00;super(_0xb11d39,_0x1ee1b1,null,_0x50541a,_0x14b192,_0x360089,_0x1700fa,_0x3595a6,_0x576cd2),this[_0x3dc606(0x1ba)]=_0xefa75a,this[_0x3dc606(0x1bd)]=_0x3872d2,this['_logService']=_0x576c23,this[_0x3dc606(0x2d8)]=_0x3b3b32,this[_0x3dc606(0x119)]=_0x549b0a,this[_0x3dc606(0x1ef)]=_0x470db7,N(this,_0x3dc606(0x2ff),U['PENDING']),N(this,_0x3dc606(0xc2),null),N(this,'_sendingTimer',null);}['appendMutation'](_0x2dc0ac){const _0x33293e=_0x215c00;return this[_0x33293e(0x1fe)][_0x33293e(0x298)](_0x2dc0ac),this[_0x33293e(0x16e)](),this;}[_0x215c00(0x325)](_0x45b5b3){const _0x24539c=_0x215c00;if(this[_0x24539c(0x235)](_0x45b5b3))return this['_clearScheduledTask'](),this['_injector'][_0x24539c(0x24f)](Z,this[_0x24539c(0x100)],this[_0x24539c(0x2d4)],null,this[_0x24539c(0x1fe)],null,[_0x45b5b3],this[_0x24539c(0xf3)]);try{let _0x33dc67=this[_0x24539c(0x119)][_0x24539c(0xd6)](_0x45b5b3,this['_pendingMutations']);if(_0x210972(_0x33dc67)){let {c1Prime:_0x47460f,m2Prime:_0xc2cb7f}=_0x33dc67;this[_0x24539c(0x2ae)](_0x47460f);let _0x626fa2=this[_0x24539c(0x1ba)][_0x24539c(0x24f)](Bt,this[_0x24539c(0x100)],this[_0x24539c(0x2d4)],_0xc2cb7f,this[_0x24539c(0xf3)]);this['_clearScheduledTask']();let _0x49eafc=new Date()[_0x24539c(0x254)](),_0x194b8b=this[_0x24539c(0xc2)]?Math[_0x24539c(0x122)](this['_scheduleCompleteTimestamp']-_0x49eafc,0x0):this[_0x24539c(0x29c)]();return _0x626fa2[_0x24539c(0x306)](_0x194b8b),_0x626fa2;}throw _0x33dc67[_0x24539c(0x207)];}catch(_0x423ecc){return this[_0x24539c(0x2c6)][_0x24539c(0x207)](_0x423ecc),this[_0x24539c(0x30a)](!0x1);}}[_0x215c00(0x1c8)](){throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x215c00(0xbb)](){const _0xc1f8f1=_0x215c00;throw Error(_0xc1f8f1(0x184));}[_0x215c00(0x287)](){return this;}[_0x215c00(0x25c)](){const _0xd549af=_0x215c00;return this['_clearScheduledTask'](),this[_0xd549af(0x1ba)]['createInstance'](X,this[_0xd549af(0x100)],this['type'],null,this[_0xd549af(0x1fe)],this[_0xd549af(0xf3)]);}[_0x215c00(0x126)](){return this;}[_0x215c00(0x306)](_0x9de025){const _0x579518=_0x215c00;let _0x298b3a=_0x9de025==null?this[_0x579518(0x29c)]():_0x9de025;this[_0x579518(0xc2)]=new Date()[_0x579518(0x254)]()+_0x298b3a,this[_0x579518(0x30d)]=setTimeout(()=>{const _0x274310=_0x579518;this[_0x274310(0x103)]();let _0x1ef280=null;switch(this[_0x274310(0x2d4)]){case _0x2b168c[_0x274310(0x270)]:_0x1ef280=Lt(this[_0x274310(0x1fe)],this[_0x274310(0x100)],this[_0x274310(0x1ef)],this['_revisionService'],this[_0x274310(0x1bd)]);break;case _0x2b168c[_0x274310(0xf7)]:_0x1ef280=this['_pendingMutations'][_0x274310(0x329)](_0x1bad90=>_0x1bad90['id']===_0x24dd5b['id'])?Rt(this[_0x274310(0x1fe)],this[_0x274310(0x100)],this[_0x274310(0x1ef)],this['_revisionService'],this[_0x274310(0x1bd)]):Lt(this[_0x274310(0x1fe)],this[_0x274310(0x100)],this[_0x274310(0x1ef)],this[_0x274310(0x311)],this[_0x274310(0x1bd)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x274310(0x2d4)]+_0x274310(0x194));}let {changeset:_0x6c7548,pendingMutations:_0xfe5323}=_0x1ef280;this[_0x274310(0xf3)][_0x274310(0x1b8)](_0x6c7548);let _0xf9bf17=_0xfe5323[_0x274310(0x265)]?this[_0x274310(0x1ba)][_0x274310(0x24f)](J,this[_0x274310(0x100)],this[_0x274310(0x2d4)],_0x6c7548,_0xfe5323,this[_0x274310(0xf3)],void 0x0):this[_0x274310(0x1ba)][_0x274310(0x24f)](q,this[_0x274310(0x100)],this[_0x274310(0x2d4)],_0x6c7548,this['_handler']);_0xf9bf17[_0x274310(0x16e)](),this[_0x274310(0xf3)][_0x274310(0xb5)](this,_0xf9bf17);},_0x298b3a);}[_0x215c00(0x29c)](){const _0x34f3f1=_0x215c00;var _0x1e9ad1;let _0x2ffe02=this[_0x34f3f1(0x2d8)]['getConfig'](H);return(_0x1e9ad1=_0x2ffe02==null?void 0x0:_0x2ffe02['sendChangesetTimeout'])==null?0x7d0:_0x1e9ad1;}['resend'](){const _0x23a067=_0x215c00;throw Error(_0x23a067(0x2de));}[_0x215c00(0x103)](){const _0x21c789=_0x215c00;this[_0x21c789(0x30d)]!=null&&(clearTimeout(this[_0x21c789(0x30d)]),this['_sendingTimer']=null);}[_0x215c00(0x30a)](_0x3fd499){const _0xd1e0e7=_0x215c00;return this['_clearScheduledTask'](),this[_0xd1e0e7(0x1ba)][_0xd1e0e7(0x24f)](Y,this['unitID'],this[_0xd1e0e7(0x2d4)],null,this[_0xd1e0e7(0x1fe)],this[_0xd1e0e7(0xf3)],_0x3fd499);}};K=Bt=L([I(0x4,_0x2b7fdf(_0x54f16c)),I(0x5,_0x2b7fdf(_0x51cba4)),I(0x6,_0x2b7fdf(R)),I(0x7,_0x50b61b),I(0x8,_0xd98a3d),I(0x9,_0x3bb947),I(0xa,_0x20b3b0),I(0xb,_0x3bf7a9),I(0xc,_0x52ad9b),I(0xd,_0x1b9758(B))],K);function _0x184e(_0x3a4f01,_0x160c21){_0x3a4f01=_0x3a4f01-0xaf;const _0x286d34=_0x286d();let _0x184efc=_0x286d34[_0x3a4f01];return _0x184efc;}let q=Vt=class extends W{constructor(_0x2e0d09,_0x2c4bd0,_0x317202,_0x24137d,_0x56944c,_0x3025dd,_0x1308b2,_0xf3d171,_0x4d6087,_0x300fd7,_0x3ab36f){const _0x88d748=_0x215c00;super(_0x2e0d09,_0x2c4bd0,_0x317202,[],_0x24137d,_0x1308b2,_0x300fd7,_0x3025dd,_0x3ab36f),this[_0x88d748(0x1ba)]=_0x56944c,this['_logService']=_0xf3d171,this[_0x88d748(0x119)]=_0x4d6087,N(this,'status',U[_0x88d748(0x248)]),N(this,_0x88d748(0x2ec),0x0),N(this,'_maxTotalRetryTimeout',0x0),N(this,_0x88d748(0x285),void 0x0),N(this,_0x88d748(0x1a6),void 0x0);}[_0x215c00(0x12f)](_0x628d25){const _0x4a2c8d=_0x215c00;this[_0x4a2c8d(0x103)]();let _0x1dfa60=this['_injector'][_0x4a2c8d(0x24f)](J,this['unitID'],this[_0x4a2c8d(0x2d4)],this['_awaitingChangeset'],[_0x628d25],this[_0x4a2c8d(0xf3)],this[_0x4a2c8d(0x285)]);return _0x1dfa60[_0x4a2c8d(0x16e)](),_0x1dfa60;}[_0x215c00(0x325)](_0x194ddc){const _0x9e0b2b=_0x215c00;if(this['_checkMissing'](_0x194ddc))return this[_0x9e0b2b(0x103)](),this['_injector']['createInstance'](Z,this[_0x9e0b2b(0x100)],this[_0x9e0b2b(0x2d4)],this[_0x9e0b2b(0x1cf)],[],null,[_0x194ddc],this[_0x9e0b2b(0xf3)]);try{let _0x446b8a=this[_0x9e0b2b(0x119)][_0x9e0b2b(0x129)]([_0x194ddc],[this[_0x9e0b2b(0x1cf)]],!0x1);if(_0x517847(_0x446b8a)){let {c1Prime:_0x3373c4,c2Prime:_0x3a9268}=_0x446b8a;this[_0x9e0b2b(0x2ae)](_0x3373c4[0x0]),_0x3a9268[0x0]['baseRev']=this[_0x9e0b2b(0xf0)](),this[_0x9e0b2b(0x103)]();let _0x494442=this[_0x9e0b2b(0x1ba)]['createInstance'](Vt,this[_0x9e0b2b(0x100)],this[_0x9e0b2b(0x2d4)],_0x3a9268[0x0],this['_handler']);return _0x494442[_0x9e0b2b(0x16e)](),_0x494442;}return this[_0x9e0b2b(0x30a)](!0x1);}catch(_0x30036f){return this['_logService']['error'](_0x30036f),this[_0x9e0b2b(0x30a)](!0x1);}}['onRemoteAck'](_0x48ac9f){const _0x153bfb=_0x215c00;this['_clearScheduledTask']();let _0x3bbcca=this['_revisionService']['getCurrentRevOfUnit'](this[_0x153bfb(0x100)]);if(_0x48ac9f[_0x153bfb(0x11c)]<_0x3bbcca-0x1)return this;if(this[_0x153bfb(0x235)](_0x48ac9f))return this[_0x153bfb(0x1ba)][_0x153bfb(0x24f)](Z,this[_0x153bfb(0x100)],this[_0x153bfb(0x2d4)],null,[],this[_0x153bfb(0x1cf)],[],this[_0x153bfb(0xf3)]);this['_incrementRevisionNumber']();let _0x318e46=this['_injector'][_0x153bfb(0x24f)](G,this['unitID'],this[_0x153bfb(0x2d4)],this[_0x153bfb(0xf3)]);return _0x318e46[_0x153bfb(0x16e)](),_0x318e46;}[_0x215c00(0xbb)](_0x30407a){const _0x3e0fb5=_0x215c00;return this[_0x3e0fb5(0x30a)](!!(_0x30407a!=null&&_0x30407a[_0x3e0fb5(0x1cd)]));}[_0x215c00(0x287)](_0x38f4b1){const _0x56b353=_0x215c00;return this[_0x56b353(0x24e)]>Wt?this[_0x56b353(0x25c)]():(this[_0x56b353(0x285)]=zt(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x38f4b1[_0x56b353(0x320)]}),this[_0x56b353(0x1a6)]=this[_0x56b353(0x285)]['subscribe'](({reqId:_0x429e0e,timeout:_0x3117d0})=>{const _0x2e0d67=_0x56b353;this[_0x2e0d67(0x1d7)](_0x429e0e,_0x3117d0);}),this);}['toggleOffline'](){const _0x5dae46=_0x215c00;return this[_0x5dae46(0x103)](),this[_0x5dae46(0x1ba)][_0x5dae46(0x24f)](X,this[_0x5dae46(0x100)],this[_0x5dae46(0x2d4)],this[_0x5dae46(0x1cf)],[],this[_0x5dae46(0xf3)]);}['toggleOnline'](){return this;}[_0x215c00(0xea)](){const _0x40b59a=_0x215c00;this[_0x40b59a(0xf3)][_0x40b59a(0x1b8)](this[_0x40b59a(0x1cf)]);}[_0x215c00(0x30a)](_0xdc6abe){const _0x35c484=_0x215c00;return this['_clearScheduledTask'](),this[_0x35c484(0x1ba)][_0x35c484(0x24f)](Y,this[_0x35c484(0x100)],this['type'],this[_0x35c484(0x1cf)],[],this[_0x35c484(0xf3)],_0xdc6abe);}[_0x215c00(0x1d7)](_0x10d89e,_0x587575){const _0x54a9b2=_0x215c00;var _0x5c7896;_0x10d89e===((_0x5c7896=this[_0x54a9b2(0x1cf)])==null?void 0x0:_0x5c7896[_0x54a9b2(0x320)])&&(this['resend'](),this[_0x54a9b2(0x2ec)]=_0x587575===0x0?0x3e8:Math[_0x54a9b2(0x237)](_0x587575*0x2,Ut),this['_maxTotalRetryTimeout']+=this[_0x54a9b2(0x2ec)]);}['_clearScheduledTask'](){const _0x236fb6=_0x215c00;var _0xc34109;(_0xc34109=this['_sender'])==null||_0xc34109[_0x236fb6(0x252)](),this[_0x236fb6(0x2ec)]=0x0,this[_0x236fb6(0x24e)]=0x0;}};q=Vt=L([I(0x4,_0x2b7fdf(_0x54f16c)),I(0x5,_0x2b7fdf(_0x51cba4)),I(0x6,_0xd98a3d),I(0x7,_0x50b61b),I(0x8,_0x20b3b0),I(0x9,_0x52ad9b),I(0xa,_0x1b9758(B))],q);let J=Ht=class extends W{constructor(_0x261da2,_0x1c5076,_0x4d992d,_0x33298f,_0x3abce5,_0xe1a4b5,_0x445ed3,_0x6a027c,_0x4cf3f9,_0x2c48b2,_0x183aa7,_0x503859,_0x2c8c5c){const _0x377937=_0x215c00;super(_0x261da2,_0x1c5076,_0x4d992d,_0x33298f,_0x3abce5,_0x4cf3f9,_0x503859,_0x6a027c,_0x2c8c5c),this[_0x377937(0x1ba)]=_0x445ed3,this[_0x377937(0x2c6)]=_0x2c48b2,this['_transformService']=_0x183aa7,this[_0x377937(0xd5)]=_0x2c8c5c,N(this,_0x377937(0x2ff),U[_0x377937(0x27a)]),N(this,_0x377937(0x2ec),0x0),N(this,_0x377937(0x24e),0x0),N(this,_0x377937(0x285),void 0x0),N(this,_0x377937(0x1a6),void 0x0),_0xe1a4b5&&(this[_0x377937(0x285)]=_0xe1a4b5,this['_sender']=this[_0x377937(0x285)][_0x377937(0x120)](({reqId:_0x59ca46,timeout:_0x445a7b})=>{const _0x540fbe=_0x377937;this[_0x540fbe(0x1d7)](_0x59ca46,_0x445a7b);}));}[_0x215c00(0x12f)](_0x366c8e){const _0x19948d=_0x215c00;return this[_0x19948d(0x1fe)]['push'](_0x366c8e),this;}['onRemoteChangeset'](_0x245e7f){const _0x2713a7=_0x215c00;if(this[_0x2713a7(0x235)](_0x245e7f))return this['_clearScheduledTask'](),this[_0x2713a7(0x1ba)][_0x2713a7(0x24f)](Z,this['unitID'],this['type'],this[_0x2713a7(0x1cf)],this['_pendingMutations'],null,[_0x245e7f],this[_0x2713a7(0xf3)]);try{let _0x453289=this['_transformService'][_0x2713a7(0x129)]([_0x245e7f],[this[_0x2713a7(0x1cf)]],!0x1);if(_0x517847(_0x453289)){let {c1Prime:_0x5d71b0,c2Prime:_0x1f66a5}=_0x453289,_0xb61d76=this[_0x2713a7(0x119)][_0x2713a7(0xd6)](_0x5d71b0[0x0],this[_0x2713a7(0x1fe)]);if(_0x210972(_0xb61d76)){let {c1Prime:_0x1d959e,m2Prime:_0x500576}=_0xb61d76;return this[_0x2713a7(0x2ae)](_0x1d959e),_0x1f66a5[0x0][_0x2713a7(0x24c)]=this['_getCurrentRevision'](),this[_0x2713a7(0x103)](),this[_0x2713a7(0x1ba)][_0x2713a7(0x24f)](Ht,this[_0x2713a7(0x100)],this['type'],_0x1f66a5[0x0],_0x500576,this[_0x2713a7(0xf3)],void 0x0);}throw _0xb61d76[_0x2713a7(0x207)];}throw _0x453289[_0x2713a7(0x207)];}catch(_0x3c0853){return this['_logService'][_0x2713a7(0x207)](_0x3c0853),this[_0x2713a7(0x30a)](!0x1);}}['onRemoteAck'](_0x23e76a){const _0x9889d3=_0x215c00;if(this[_0x9889d3(0x103)](),this['_checkMissing'](_0x23e76a))return this[_0x9889d3(0x1ba)]['createInstance'](Z,this[_0x9889d3(0x100)],this[_0x9889d3(0x2d4)],null,this[_0x9889d3(0x1fe)],this['_awaitingChangeset'],[],this['_handler']);this[_0x9889d3(0x1d6)]();let _0x2b0fe=this[_0x9889d3(0x1ba)][_0x9889d3(0x24f)](K,this[_0x9889d3(0x100)],this['type'],this[_0x9889d3(0x1fe)],this['_handler']);return _0x2b0fe[_0x9889d3(0x306)](),_0x2b0fe[_0x9889d3(0x16e)](),_0x2b0fe;}[_0x215c00(0xbb)](_0x209af8){const _0x4c387f=_0x215c00;return this[_0x4c387f(0x30a)](!!(_0x209af8!=null&&_0x209af8[_0x4c387f(0x1cd)]));}[_0x215c00(0x287)](_0x55b2e3){const _0x466aac=_0x215c00;return this['_maxTotalRetryTimeout']>Wt?this[_0x466aac(0x25c)]():(this[_0x466aac(0x285)]=zt(this['_resendTimeout'],{'timeout':this[_0x466aac(0x2ec)],'reqId':_0x55b2e3[_0x466aac(0x320)]}),this['_sender']=this[_0x466aac(0x285)][_0x466aac(0x120)](({reqId:_0x490b97,timeout:_0x2e61e2})=>{const _0x52a54d=_0x466aac;this[_0x52a54d(0x1d7)](_0x490b97,_0x2e61e2);}),this);}['toggleOffline'](){const _0x1930aa=_0x215c00;return this[_0x1930aa(0x103)](),this['_injector'][_0x1930aa(0x24f)](X,this[_0x1930aa(0x100)],this['type'],this[_0x1930aa(0x1cf)],this[_0x1930aa(0x1fe)],this[_0x1930aa(0xf3)]);}[_0x215c00(0x126)](){return this;}[_0x215c00(0xea)](){const _0x3ac6c5=_0x215c00;this[_0x3ac6c5(0xf3)][_0x3ac6c5(0x1b8)](this['_awaitingChangeset']);}[_0x215c00(0x30a)](_0x9ca1d0){const _0x417a8b=_0x215c00;return this['_clearScheduledTask'](),this[_0x417a8b(0x1ba)][_0x417a8b(0x24f)](Y,this[_0x417a8b(0x100)],this['type'],null,this[_0x417a8b(0x1fe)],this[_0x417a8b(0xf3)],_0x9ca1d0);}[_0x215c00(0x1d7)](_0x58a09f,_0xcdb21a){const _0x1d3d67=_0x215c00;var _0x6cdbd7;_0x58a09f===((_0x6cdbd7=this[_0x1d3d67(0x1cf)])==null?void 0x0:_0x6cdbd7[_0x1d3d67(0x320)])&&(this[_0x1d3d67(0xea)](),this[_0x1d3d67(0x2ec)]=_0xcdb21a===0x0?0x3e8:Math[_0x1d3d67(0x237)](_0xcdb21a*0x2,Ut),this[_0x1d3d67(0x24e)]+=this[_0x1d3d67(0x2ec)]);}[_0x215c00(0x103)](){const _0x139055=_0x215c00;var _0x1ed9a9;(_0x1ed9a9=this[_0x139055(0x1a6)])==null||_0x1ed9a9[_0x139055(0x252)](),this[_0x139055(0x2ec)]=0x0,this[_0x139055(0x24e)]=0x0;}};J=Ht=L([I(0x6,_0x2b7fdf(_0x54f16c)),I(0x7,_0x2b7fdf(_0x51cba4)),I(0x8,_0xd98a3d),I(0x9,_0x50b61b),I(0xa,_0x20b3b0),I(0xb,_0x52ad9b),I(0xc,_0x1b9758(B))],J);let Y=class extends W{constructor(_0x48b185,_0x27e2ea,_0x59872b,_0x46bbfb,_0x5d37eb,_0x355fae=!0x1,_0x42667a,_0x5b8199,_0x33c93f,_0x3908b2,_0x2a2bcb,_0x5ba41f,_0x2bb400){const _0x5eaee4=_0x215c00;super(_0x48b185,_0x27e2ea,_0x59872b,_0x46bbfb,_0x5d37eb,_0x5b8199,_0x33c93f,_0x3908b2,_0x2bb400),this[_0x5eaee4(0x208)]=_0x355fae,this[_0x5eaee4(0xda)]=_0x42667a,this[_0x5eaee4(0x1d3)]=_0x2a2bcb,this[_0x5eaee4(0x2b8)]=_0x5ba41f,this[_0x5eaee4(0xd5)]=_0x2bb400,N(this,_0x5eaee4(0x2ff),U[_0x5eaee4(0xbc)]),this[_0x5eaee4(0x185)](),this['_clearLocalCache'](),this[_0x5eaee4(0x19f)]();}[_0x215c00(0x12f)](){return this;}[_0x215c00(0x325)](){return this;}['onRemoteAck'](){return this;}[_0x215c00(0xbb)](){return this;}[_0x215c00(0x287)](){return this;}[_0x215c00(0x25c)](){return this;}[_0x215c00(0x126)](){return this;}[_0x215c00(0xea)](){const _0x3e8178=_0x215c00;throw Error(_0x3e8178(0x153));}[_0x215c00(0x24d)](){const _0x72c8a5=_0x215c00;var _0x4fe617;(_0x4fe617=this[_0x72c8a5(0x2b7)])==null||_0x4fe617['updateOfflineData'](this[_0x72c8a5(0x100)],this['type'],null,[]);}[_0x215c00(0x185)](){const _0x722f26=_0x215c00;this[_0x722f26(0x208)]?this[_0x722f26(0x2b8)]['emitEvent']({'id':P[_0x722f26(0x2ac)]}):this[_0x722f26(0x2b8)][_0x722f26(0x160)]({'id':P['CONFLICT']});}[_0x215c00(0x19f)](){const _0x2732a2=_0x215c00;this['_permissionService'][_0x2732a2(0x2e1)](new _0x44218c(this[_0x2732a2(0x100)])['id'],!0x1);}};Y=L([I(0x6,_0x2b7fdf(_0x31cc51)),I(0x7,_0xd98a3d),I(0x8,_0x52ad9b),I(0x9,_0x2b7fdf(_0x51cba4)),I(0xa,_0x2b7fdf(_0x3e1339)),I(0xb,_0x2b7fdf(F)),I(0xc,_0x1b9758(B))],Y);let X=class extends W{constructor(_0x27bdd5,_0x21c86d,_0x3d1d97,_0x374125,_0x143ca7,_0x24cde6,_0x471c9f,_0x1b384e,_0x43b7f0,_0x53dc12){const _0x5e5b18=_0x215c00;super(_0x27bdd5,_0x21c86d,_0x3d1d97,_0x374125,_0x143ca7,_0x1b384e,_0x43b7f0,_0x471c9f,_0x53dc12),this['_injector']=_0x24cde6,N(this,_0x5e5b18(0x2ff),U[_0x5e5b18(0xd8)]);}['appendMutation'](_0xdd8e52){const _0x328f3b=_0x215c00;return this[_0x328f3b(0x1fe)][_0x328f3b(0x298)](_0xdd8e52),this[_0x328f3b(0x16e)](),this;}[_0x215c00(0x325)](_0xbfbb80){const _0x4693e6=_0x215c00;throw Error(_0x4693e6(0x271));}[_0x215c00(0x1c8)](){const _0x463e43=_0x215c00;throw Error(_0x463e43(0x284));}[_0x215c00(0xbb)](){const _0xddc9d9=_0x215c00;throw Error(_0xddc9d9(0xc4));}[_0x215c00(0x287)](){return this;}[_0x215c00(0x25c)](){return this;}[_0x215c00(0x126)](){const _0x5da2ff=_0x215c00;let {_injector:_0x346f1e,_pendingMutations:_0x12a618,_awaitingChangeset:_0x4c956f,unitID:_0x2481f2,_handler:_0x4bfd4c,type:_0x5333c8}=this,_0xf605f7=Gt(_0x346f1e,_0x2481f2,_0x5333c8,_0x4c956f,_0x12a618,_0x4bfd4c);return _0xf605f7 instanceof K?_0xf605f7[_0x5da2ff(0x306)]():(_0xf605f7 instanceof J||_0xf605f7 instanceof q)&&_0xf605f7[_0x5da2ff(0xea)](),_0xf605f7;}['resend'](){const _0x2e3434=_0x215c00;throw Error(_0x2e3434(0x17d));}};X=L([I(0x5,_0x2b7fdf(_0x54f16c)),I(0x6,_0x2b7fdf(_0x51cba4)),I(0x7,_0xd98a3d),I(0x8,_0x52ad9b),I(0x9,_0x1b9758(B))],X);let Z=class extends W{constructor(_0x4f4249,_0x11ee56,_0x55d8e1,_0x30bbdf,_0x1a323b,_0x5af6da,_0x175d31,_0x36fd60,_0x276dc9,_0x1dd23b,_0x44b553,_0xad058c,_0x558628,_0x114b22){const _0x5ea045=_0x215c00;super(_0x4f4249,_0x11ee56,_0x55d8e1,_0x30bbdf,_0x175d31,_0x44b553,_0xad058c,_0x276dc9,_0x114b22),this[_0x5ea045(0x106)]=_0x1a323b,this['_queuedRemoteChangesets']=_0x5af6da,this[_0x5ea045(0x1ba)]=_0x36fd60,this[_0x5ea045(0x2c6)]=_0x1dd23b,this[_0x5ea045(0x119)]=_0x558628,this[_0x5ea045(0xd5)]=_0x114b22,N(this,_0x5ea045(0x2ff),U['FETCH_MISS']);}[_0x215c00(0x31d)](_0x586d21){const _0x3d992c=_0x215c00;try{let _0x1fe74b=[..._0x586d21,...this['_queuedRemoteChangesets']],_0x13da78=[this[_0x3d992c(0x1cf)]||this[_0x3d992c(0x106)]]['filter'](_0x5ee95e=>!!_0x5ee95e),_0x3ca585,_0x1482e6;if(_0x13da78[_0x3d992c(0x265)]){let _0x5302c4=this['_transformService']['transformChangesets'](_0x1fe74b,_0x13da78,!0x1);if(!_0x517847(_0x5302c4))throw _0x5302c4[_0x3d992c(0x207)];_0x3ca585=_0x5302c4['c1Prime'],_0x1482e6=_0x5302c4[_0x3d992c(0x130)];}else _0x3ca585=_0x1fe74b,_0x1482e6=[];let _0x532a03=this[_0x3d992c(0x1fe)];_0x3ca585[_0x3d992c(0xc9)](_0x4275e3=>{const _0x50836d=_0x3d992c;let _0x31de5e;if(_0x532a03[_0x50836d(0x265)]){let _0x5d2cbe=this[_0x50836d(0x119)][_0x50836d(0xd6)](_0x4275e3,_0x532a03);if(!_0x210972(_0x5d2cbe))throw _0x5d2cbe['error'];_0x31de5e=_0x5d2cbe[_0x50836d(0x174)],_0x532a03=_0x5d2cbe[_0x50836d(0x152)];}else _0x31de5e=_0x4275e3;this[_0x50836d(0x2ae)](_0x31de5e);}),this[_0x3d992c(0x106)]&&this[_0x3d992c(0x1d6)](),this[_0x3d992c(0x1cf)]&&_0x1482e6[_0x3d992c(0x265)]&&(_0x1482e6[0x0][_0x3d992c(0x24c)]=this[_0x3d992c(0xf0)]());let _0x2af682;if(this[_0x3d992c(0x1cf)]&&_0x532a03[_0x3d992c(0x265)]!==0x0)_0x2af682=this[_0x3d992c(0x1ba)][_0x3d992c(0x24f)](J,this['unitID'],this[_0x3d992c(0x2d4)],_0x1482e6[0x0],_0x532a03,this[_0x3d992c(0xf3)],void 0x0);else{if(this[_0x3d992c(0x1cf)]&&_0x532a03['length']===0x0)_0x1482e6[0x0]['baseRev']=this[_0x3d992c(0xf0)](),_0x2af682=this[_0x3d992c(0x1ba)]['createInstance'](q,this[_0x3d992c(0x100)],this['type'],_0x1482e6[0x0],this[_0x3d992c(0xf3)]);else{if(_0x532a03['length']!==0x0){let _0x2cd2de=this['_injector']['createInstance'](K,this['unitID'],this[_0x3d992c(0x2d4)],_0x532a03,this[_0x3d992c(0xf3)]);_0x2cd2de[_0x3d992c(0x306)](),_0x2af682=_0x2cd2de;}else _0x2af682=this['_injector'][_0x3d992c(0x24f)](G,this[_0x3d992c(0x100)],this['type'],this[_0x3d992c(0xf3)]);}}return _0x2af682['_updateLocalCache'](),_0x2af682;}catch(_0x14c12e){return this['_logService'][_0x3d992c(0x207)](_0x3d992c(0xed),_0x3d992c(0x104),_0x14c12e),this[_0x3d992c(0x1ba)][_0x3d992c(0x24f)](Y,this[_0x3d992c(0x100)],this[_0x3d992c(0x2d4)],this[_0x3d992c(0x1cf)],this[_0x3d992c(0x1fe)],this['_handler'],!0x1);}}[_0x215c00(0xea)](){const _0x9eb272=_0x215c00;throw Error(_0x9eb272(0x292));}[_0x215c00(0x12f)](_0xb77b96){const _0x1dc4f5=_0x215c00;return this[_0x1dc4f5(0x1fe)][_0x1dc4f5(0x298)](_0xb77b96),this;}[_0x215c00(0x325)](_0x3fb268){const _0x50c7cd=_0x215c00;return this['_queuedRemoteChangesets'][_0x50c7cd(0x298)](_0x3fb268),this;}[_0x215c00(0x1c8)](_0x5b5f69){const _0x516c8f=_0x215c00;if(this[_0x516c8f(0x1cf)])return this[_0x516c8f(0x106)]=this[_0x516c8f(0x1cf)],this[_0x516c8f(0x1cf)]=null,this;throw Error(_0x516c8f(0x203));}[_0x215c00(0xbb)](_0x32bf54){const _0x3167ec=_0x215c00;return this[_0x3167ec(0x30a)](!!(_0x32bf54!=null&&_0x32bf54['isPermissionRej']));}[_0x215c00(0x287)](){return this;}['toggleOffline'](){const _0x51bc5b=_0x215c00;return this[_0x51bc5b(0x1ba)][_0x51bc5b(0x24f)](X,this[_0x51bc5b(0x100)],this[_0x51bc5b(0x2d4)],this[_0x51bc5b(0x1cf)],this['_pendingMutations'],this['_handler']);}[_0x215c00(0x126)](){return this;}[_0x215c00(0x30a)](_0x4d8bb0){const _0x368e95=_0x215c00;return this[_0x368e95(0x1ba)][_0x368e95(0x24f)](Y,this[_0x368e95(0x100)],this[_0x368e95(0x2d4)],this[_0x368e95(0x1cf)],this[_0x368e95(0x1fe)],this[_0x368e95(0xf3)],_0x4d8bb0);}};Z=L([I(0x7,_0x2b7fdf(_0x54f16c)),I(0x8,_0x2b7fdf(_0x51cba4)),I(0x9,_0x50b61b),I(0xa,_0xd98a3d),I(0xb,_0x52ad9b),I(0xc,_0x20b3b0),I(0xd,_0x1b9758(B))],Z);function Gt(_0x7a8acd,_0x4c33d6,_0x9f7e03,_0x2a60fc,_0x435be4,_0x2e052c){const _0x47daef=_0x215c00;return _0x2a60fc&&_0x435be4[_0x47daef(0x265)]?_0x7a8acd[_0x47daef(0x24f)](J,_0x4c33d6,_0x9f7e03,_0x2a60fc,_0x435be4,_0x2e052c,void 0x0):_0x2a60fc?_0x7a8acd[_0x47daef(0x24f)](q,_0x4c33d6,_0x9f7e03,_0x2a60fc,_0x2e052c):_0x435be4[_0x47daef(0x265)]?_0x7a8acd[_0x47daef(0x24f)](K,_0x4c33d6,_0x9f7e03,_0x435be4,_0x2e052c):_0x7a8acd[_0x47daef(0x24f)](G,_0x4c33d6,_0x9f7e03,_0x2e052c);}let Kt=class extends _0x1e78ef{get[_0x215c00(0x2cc)](){const _0x454851=_0x215c00;return this[_0x454851(0x1ab)];}constructor(_0x45c70c,_0x1ac1d1,_0x76d26a,_0x24cff8,_0x11f5d5,_0x4f6cc6,_0x2a78dc,_0x16728a,_0x2caad3,_0x11b27a,_0x57cf66,_0x5def6a,_0x3f9001,_0x2b513e){const _0xfe4f1e=_0x215c00;super(),this[_0xfe4f1e(0x100)]=_0x45c70c,this[_0xfe4f1e(0xb7)]=_0x1ac1d1,this[_0xfe4f1e(0x322)]=_0x76d26a,this[_0xfe4f1e(0x1ba)]=_0x24cff8,this[_0xfe4f1e(0x20b)]=_0x11f5d5,this['_localeService']=_0x4f6cc6,this[_0xfe4f1e(0x311)]=_0x2a78dc,this[_0xfe4f1e(0x31a)]=_0x16728a,this['_univerInstanceService']=_0x2caad3,this['_logService']=_0x11b27a,this[_0xfe4f1e(0x188)]=_0x57cf66,this[_0xfe4f1e(0xda)]=_0x5def6a,this[_0xfe4f1e(0x2bf)]=_0x3f9001,this[_0xfe4f1e(0x2b7)]=_0x2b513e,N(this,_0xfe4f1e(0x30f),new _0x39a505(null)),N(this,_0xfe4f1e(0x21f),this[_0xfe4f1e(0x30f)][_0xfe4f1e(0x25e)]()),N(this,_0xfe4f1e(0x1ab),void 0x0),N(this,_0xfe4f1e(0x205),!0x1),N(this,'_changesetSessionId',''),N(this,_0xfe4f1e(0x2c9),0x0),N(this,_0xfe4f1e(0x247),this[_0xfe4f1e(0x21f)][_0xfe4f1e(0x145)](_0x10dc32(_0x57c841=>_0x57c841?_0x57c841['status']:U[_0xfe4f1e(0xd8)]),_0x14f4d3(0x1))),N(this,_0xfe4f1e(0x2c4),!0x1),N(this,_0xfe4f1e(0x1c5),[]);}async[_0x215c00(0x20f)](){const _0x2091df=_0x215c00;if(this[_0x2091df(0x2cc)])throw Error(_0x2091df(0x227));await this[_0x2091df(0x290)]();}[_0x215c00(0x15e)](){const _0x404543=_0x215c00;return this[_0x404543(0x205)]=!0x0,_0x569d37(()=>{const _0x588b40=_0x404543;this[_0x588b40(0x205)]=!0x1,this[_0x588b40(0x12e)]();});}['onLocalMutation'](_0x17edab){const _0x3da487=_0x215c00;this[_0x3da487(0x15f)](_0x17edab);}['_updateState'](_0x5c5fc6){const _0x372a45=_0x215c00;this[_0x372a45(0x1ab)]=_0x5c5fc6,this['_state$'][_0x372a45(0x2f0)](_0x5c5fc6);}async[_0x215c00(0x290)](){const _0x281faa=_0x215c00;if(this['_updateState'](await this[_0x281faa(0x258)]()),this[_0x281faa(0x2bf)]){var _0x2aca97;(_0x2aca97=this[_0x281faa(0x2bf)])==null||_0x2aca97[_0x281faa(0x2cb)](this[_0x281faa(0x100)]),this['disposeWithMe'](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x281faa(0x100)])[_0x281faa(0x120)](_0x994616=>{const _0x375748=_0x281faa;this[_0x375748(0x2c6)]['debug'](_0x375748(0x13f),_0x375748(0x1d8),_0x994616),_0x994616===Nt[_0x375748(0x296)]?(this['_eventService'][_0x375748(0x160)]({'id':P['OTHER_CLIENT_EDITING']}),this['_permissionService']['updatePermissionPoint'](new _0x44218c(this[_0x375748(0x100)])['id'],!0x1),this[_0x375748(0xda)][_0x375748(0x228)](!0x1)):(this[_0x375748(0xda)]['updatePermissionPoint'](new _0x44218c(this['unitID'])['id'],!0x0),this[_0x375748(0xda)][_0x375748(0x228)](!0x0));}));}let _0x3f1968=!0x1;return this[_0x281faa(0x2be)](this[_0x281faa(0xb7)][_0x281faa(0x2fc)]['subscribe'](_0x21bf09=>{const _0xbc74dc=_0x281faa;_0x21bf09===z[_0xbc74dc(0x202)]?this[_0xbc74dc(0x1b7)](_0x3f1968):_0x21bf09===z['OFFLINE']&&(_0x3f1968=!0x0,this[_0xbc74dc(0x1b2)]());})),this[_0x281faa(0x2be)](this[_0x281faa(0xb7)][_0x281faa(0x177)][_0x281faa(0x120)](_0x2551cb=>{const _0x14868c=_0x281faa;try{switch(_0x2551cb[_0x14868c(0x134)]){case _0x1651b4[_0x14868c(0x16a)]:this['_onRemoteChangeset'](_0x1d997f(_0x2551cb[_0x14868c(0x327)]));break;case _0x1651b4[_0x14868c(0x2c0)]:this[_0x14868c(0x13a)](_0x2551cb[_0x14868c(0x327)]);break;case _0x1651b4[_0x14868c(0x102)]:this[_0x14868c(0x26d)]();break;case _0x1651b4[_0x14868c(0x1b6)]:this['_onRemoteRetry'](_0x2551cb[_0x14868c(0x327)]);break;case _0x1651b4['PSEUDO_FETCH_MISSING_RESULT']:this[_0x14868c(0x305)](_0x2551cb['data']['changesets'][_0x14868c(0x242)](_0x38eab2=>_0x1d997f(_0x38eab2)));break;case _0x1651b4[_0x14868c(0x2f6)]:this[_0x14868c(0x26d)]({'isPermissionRej':!0x0});break;case _0x1651b4[_0x14868c(0x12b)]:break;}}catch(_0x53d7c9){throw console[_0x14868c(0x207)](_0x14868c(0x1a3),_0x53d7c9),_0x53d7c9;}})),this[_0x281faa(0x1ab)];}[_0x215c00(0x21a)](){const _0x29ad1e=_0x215c00;this[_0x29ad1e(0x2c4)]=!0x1;}[_0x215c00(0x2a8)](){const _0x525b8f=_0x215c00;if(this[_0x525b8f(0x2c4)])throw Error(_0x525b8f(0x147));this[_0x525b8f(0x2c4)]=!0x0;}[_0x215c00(0x15f)](_0x35a619){const _0x540f22=_0x215c00;this[_0x540f22(0x2a8)](),this[_0x540f22(0x2f3)](this['_state'][_0x540f22(0x12f)](_0x35a619)),this[_0x540f22(0x21a)]();}[_0x215c00(0x12a)](_0x29747c){const _0x5032b7=_0x215c00;if(!(_0x29747c[_0x5032b7(0x11c)]<=this['_revisionService'][_0x5032b7(0x13d)](this['unitID']))){if(this[_0x5032b7(0x205)]){this[_0x5032b7(0x1c5)][_0x5032b7(0x298)](_0x29747c);return;}this[_0x5032b7(0x1d5)](_0x29747c);}}[_0x215c00(0x12e)](){const _0x23d2ab=_0x215c00;this[_0x23d2ab(0x1c5)][_0x23d2ab(0xc9)](_0x1afa17=>this[_0x23d2ab(0x1d5)](_0x1afa17)),this[_0x23d2ab(0x1c5)]=[];}[_0x215c00(0x1d5)](_0x2a7fd2){const _0x30aad4=_0x215c00;let _0x191bc4=this[_0x30aad4(0x20b)]['interceptor'][_0x30aad4(0x1b3)](this['_compressMutationService']['interceptor'][_0x30aad4(0xc3)]()[_0x30aad4(0x274)])(_0x2a7fd2[_0x30aad4(0x1fa)],null)||_0x2a7fd2[_0x30aad4(0x1fa)],_0x46a540={..._0x2a7fd2,'mutations':_0x191bc4};this[_0x30aad4(0x2a8)](),this[_0x30aad4(0x2f3)](this[_0x30aad4(0x1ab)][_0x30aad4(0x325)](_0x46a540)),this[_0x30aad4(0x21a)]();}['_onRemoteACK'](_0x316c84){const _0x25a9dc=_0x215c00;this[_0x25a9dc(0x2a8)](),this[_0x25a9dc(0x2f3)](this[_0x25a9dc(0x1ab)]['onRemoteAck'](_0x316c84)),this[_0x25a9dc(0x21a)]();}[_0x215c00(0x26d)](_0x33ae9c){const _0x287354=_0x215c00;this[_0x287354(0x2a8)](),this[_0x287354(0x2f3)](this[_0x287354(0x1ab)][_0x287354(0xbb)](_0x33ae9c)),this[_0x287354(0x21a)]();}['_onRemoteRetry'](_0x577e2a){const _0x5b0c29=_0x215c00;this[_0x5b0c29(0x2a8)](),this[_0x5b0c29(0x2f3)](this[_0x5b0c29(0x1ab)][_0x5b0c29(0x287)](_0x577e2a)),this['_unlockTransition']();}[_0x215c00(0x305)](_0x730875){const _0x2173b1=_0x215c00;if(!(this['_state']instanceof Z))throw TypeError(_0x2173b1(0x30c));let _0xbd9ea4=_0x730875[_0x2173b1(0x242)](_0x572b42=>{const _0x5ba280=_0x2173b1;let _0x2aedad=this[_0x5ba280(0x20b)][_0x5ba280(0x2da)]['fetchThroughInterceptors'](this[_0x5ba280(0x20b)][_0x5ba280(0x2da)][_0x5ba280(0xc3)]()['COMPRESS_MUTATION_APPLY'])(_0x572b42[_0x5ba280(0x1fa)],null)||_0x572b42[_0x5ba280(0x1fa)];return{..._0x572b42,'mutations':_0x2aedad};});this[_0x2173b1(0x2a8)](),this[_0x2173b1(0x2f3)](this[_0x2173b1(0x1ab)][_0x2173b1(0x31d)](_0xbd9ea4)),this[_0x2173b1(0x21a)]();}['_toggleOffline'](){const _0x4d1a77=_0x215c00;this[_0x4d1a77(0x2a8)](),this[_0x4d1a77(0x2f3)](this['_state']['toggleOffline']()),this['_unlockTransition']();}[_0x215c00(0x1b7)](_0x2354b2=!0x1){const _0x5e3679=_0x215c00;this['_lockTransition'](),this[_0x5e3679(0x2f3)](this[_0x5e3679(0x1ab)][_0x5e3679(0x126)]()),this[_0x5e3679(0x21a)]();let _0x52fcfe=this[_0x5e3679(0x1ab)];_0x2354b2&&_0x52fcfe instanceof G&&(this[_0x5e3679(0x2a8)](),this[_0x5e3679(0x2f3)](_0x52fcfe[_0x5e3679(0x180)]()),this['_unlockTransition']());}async['_createInitialState'](){return new Promise(_0x446097=>{const _0x270148=_0x184e;this[_0x270148(0xb7)][_0x270148(0x2fc)]['pipe'](_0xf6063e(0x1))[_0x270148(0x120)](async _0xf2a351=>{const _0x3a94a7=_0x270148;_0x446097(await this['_createInitialStateImpl'](_0xf2a351===z[_0x3a94a7(0x202)]));});});}[_0x215c00(0x1e5)](){const _0x588136=_0x215c00;let _0x1a7969=this[_0x588136(0x100)];return{'onStateChange':(_0x5465e5,_0x5894a8)=>{const _0x26ca8a=_0x588136;if(_0x5465e5!==this[_0x26ca8a(0x1ab)])throw Error(_0x26ca8a(0x11d)+_0x5465e5[_0x26ca8a(0x2ff)]+_0x26ca8a(0x19c)+_0x5894a8[_0x26ca8a(0x2ff)]+'\x0aCurrent:\x20'+this[_0x26ca8a(0x1ab)][_0x26ca8a(0x2ff)]);this[_0x26ca8a(0x2f3)](_0x5894a8);},'onSendChangeset':_0x5353e7=>{const _0x1eda86=_0x588136;_0x5353e7[_0x1eda86(0x13c)]||(_0x5353e7[_0x1eda86(0x13c)]=this['_changesetSessionId'],_0x5353e7[_0x1eda86(0x320)]=++this[_0x1eda86(0x2c9)]);let _0x1f2b54={'eventID':_0x1651b4[_0x1eda86(0x2c2)],'data':{'unitID':_0x5353e7[_0x1eda86(0x100)],'unitType':this[_0x1eda86(0x322)],'changeset':_0x5353e7,'memberID':this[_0x1eda86(0xb7)][_0x1eda86(0x1f3)]()}};this[_0x1eda86(0xb7)]['send'](_0x1f2b54,this[_0x1eda86(0x100)]);},'onMissingChangesets':({from:_0x45692b,to:_0x2ee473})=>{const _0x6fbf31=_0x588136;this[_0x6fbf31(0x2c6)]['debug']('[CollaborationEntity]',_0x6fbf31(0xf9)+_0x45692b+'\x20to\x20'+_0x2ee473);let _0x5b21f3={'eventID':_0x1651b4['FETCH_MISSING'],'data':{'unitID':_0x1a7969,'unitType':this[_0x6fbf31(0x322)],'from':_0x45692b,'to':_0x2ee473}};this[_0x6fbf31(0xb7)][_0x6fbf31(0x307)](_0x5b21f3,this[_0x6fbf31(0x100)]);}};}async['_createInitialStateImpl'](_0x57a599){const _0x566971=_0x215c00;var _0x120ef7,_0x5cb69b,_0x13b675;let _0x5a5384=await((_0x120ef7=this['_localCacheService'])==null?void 0x0:_0x120ef7[_0x566971(0x22b)](this[_0x566971(0x100)])),_0x27b542=(_0x5cb69b=_0x5a5384==null?void 0x0:_0x5a5384[_0x566971(0x1fa)])==null?[]:_0x5cb69b,_0x133641=(_0x13b675=_0x5a5384==null?void 0x0:_0x5a5384[_0x566971(0x21b)])==null?null:_0x13b675,_0x3d2908=!!(_0x133641!=null&&_0x133641[_0x566971(0x13c)])&&!!(_0x133641!=null&&_0x133641[_0x566971(0x320)]);this[_0x566971(0x251)]=_0x3d2908?_0x133641[_0x566971(0x13c)]:_0x504e1a(),this[_0x566971(0x2c9)]=_0x3d2908?_0x133641[_0x566971(0x320)]:0x0;let _0x31dd3e=this[_0x566971(0x100)];try{this[_0x566971(0xf1)](_0x133641,_0x27b542);}catch(_0x56a568){this['_logService']['error'](_0x56a568);}let _0x24bd90=this['_createHandler']();if(_0x57a599){let _0xccfa7b=Gt(this[_0x566971(0x1ba)],_0x31dd3e,this[_0x566971(0x322)],_0x133641,_0x27b542,_0x24bd90);return _0xccfa7b instanceof K?_0xccfa7b[_0x566971(0x306)]():(_0xccfa7b instanceof J||_0xccfa7b instanceof q)&&_0xccfa7b['resend'](),_0xccfa7b;}return this[_0x566971(0x1ba)][_0x566971(0x24f)](X,_0x31dd3e,this[_0x566971(0x322)],_0x133641,_0x27b542,_0x24bd90);}[_0x215c00(0xf1)](_0x2e68b2,_0x2e8e17){const _0x5c450f=_0x215c00;var _0x289ba3,_0x41c015;let _0x1a58c8=this[_0x5c450f(0x20b)][_0x5c450f(0x2da)][_0x5c450f(0x1b3)](this[_0x5c450f(0x20b)]['interceptor'][_0x5c450f(0xc3)]()[_0x5c450f(0x274)]);(_0x289ba3=_0x1a58c8((_0x2e68b2==null?void 0x0:_0x2e68b2[_0x5c450f(0x1fa)])||[],null))==null||_0x289ba3['forEach'](_0x29dd7a=>this[_0x5c450f(0x188)][_0x5c450f(0xe5)](_0x29dd7a['id'],_0x29dd7a['params'])),(_0x41c015=_0x1a58c8(_0x2e8e17||[],null))==null||_0x41c015[_0x5c450f(0xc9)](_0x29af8e=>this[_0x5c450f(0x188)][_0x5c450f(0xe5)](_0x29af8e['id'],_0x29af8e[_0x5c450f(0x17b)]));}};Kt=L([I(0x3,_0x2b7fdf(_0x54f16c)),I(0x4,_0x2b7fdf(_0x5eaf7a)),I(0x5,_0x2b7fdf(_0x3e1339)),I(0x6,_0x2b7fdf(_0x51cba4)),I(0x7,_0x2b7fdf(F)),I(0x8,_0x3bf7a9),I(0x9,_0x50b61b),I(0xa,_0xd98a3d),I(0xb,_0x31cc51),I(0xc,_0x1b9758(Mt)),I(0xd,_0x1b9758(B))],Kt);let qt=class extends Kt{constructor(_0x4cab51,_0xbc813,_0x364801,_0x231c46,_0x47bfba,_0x1b15d2,_0x25ceec,_0xbe486f,_0x7bb7f7,_0x3def46,_0x348f93,_0x483c0e,_0x4d06c3,_0x59c2ac){const _0x26c8ae=_0x215c00;super(_0x4cab51,_0x364801,_0xbc813,_0x231c46,_0x47bfba,_0x1b15d2,_0x25ceec,_0xbe486f,_0x7bb7f7,_0x3def46,_0x348f93,_0x483c0e,_0x4d06c3,_0x59c2ac),this[_0x26c8ae(0x100)]=_0x4cab51,this[_0x26c8ae(0x2d4)]=_0xbc813,N(this,_0x26c8ae(0x2cf),null);}[_0x215c00(0x236)](_0x5568d3){this['_handlerCallback']=_0x5568d3;}[_0x215c00(0x2c1)](){const _0x503ce5=_0x215c00;this[_0x503ce5(0x2cf)]=null,super[_0x503ce5(0x2c1)]();}[_0x215c00(0x1e5)](){const _0x43fead=_0x215c00;let _0x335e4f=super[_0x43fead(0x1e5)]();return _0x335e4f['onTransformIME']=_0x5afb51=>{const _0x11de54=_0x43fead;var _0x1ed695,_0x4717e0;return(_0x1ed695=this[_0x11de54(0x2cf)])==null||(_0x4717e0=_0x1ed695[_0x11de54(0xc1)])==null?void 0x0:_0x4717e0[_0x11de54(0x27f)](_0x1ed695,_0x5afb51);},_0x335e4f[_0x43fead(0x162)]=_0x297ba7=>{const _0x4b12e1=_0x43fead;var _0x345bee,_0x263406;return(_0x345bee=this[_0x4b12e1(0x2cf)])==null||(_0x263406=_0x345bee['onTransformState'])==null?void 0x0:_0x263406[_0x4b12e1(0x27f)](_0x345bee,_0x297ba7);},_0x335e4f['onTransformSelections']=_0x2c97fc=>{const _0x357b95=_0x43fead;var _0x17bafa,_0x4f634b;return(_0x17bafa=this['_handlerCallback'])==null||(_0x4f634b=_0x17bafa[_0x357b95(0x1b0)])==null?void 0x0:_0x4f634b[_0x357b95(0x27f)](_0x17bafa,_0x2c97fc);},_0x335e4f[_0x43fead(0x146)]=_0x3777cc=>{const _0x2da72c=_0x43fead;var _0x18be0c,_0x20cf1a;return(_0x18be0c=this[_0x2da72c(0x2cf)])==null||(_0x20cf1a=_0x18be0c[_0x2da72c(0x146)])==null?void 0x0:_0x20cf1a[_0x2da72c(0x27f)](_0x18be0c,_0x3777cc);},_0x335e4f[_0x43fead(0x2e2)]=_0x37bf3e=>{const _0x54359e=_0x43fead;var _0x27985e,_0x5f0f61,_0x38f649;if(!((_0x27985e=this[_0x54359e(0x2cf)])!=null&&_0x27985e[_0x54359e(0x2e2)]))throw Error(_0x54359e(0x164));return(_0x5f0f61=this[_0x54359e(0x2cf)])==null||(_0x38f649=_0x5f0f61['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x38f649[_0x54359e(0x27f)](_0x5f0f61,_0x37bf3e);},_0x335e4f['onTransformRemoteChangesetByStateCache']=_0x91f8c6=>{const _0xcfe12e=_0x43fead;var _0x1dc6a2,_0xc2807d,_0x4347e9;if(!((_0x1dc6a2=this[_0xcfe12e(0x2cf)])!=null&&_0x1dc6a2['onTransformRemoteChangesetByStateCache']))throw Error(_0xcfe12e(0x238));return(_0xc2807d=this['_handlerCallback'])==null||(_0x4347e9=_0xc2807d['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x4347e9[_0xcfe12e(0x27f)](_0xc2807d,_0x91f8c6);},_0x335e4f;}async['_init'](){const _0x259a43=_0x215c00;let _0x2ddb82=await super[_0x259a43(0x290)]();return this['disposeWithMe'](this[_0x259a43(0x188)][_0x259a43(0x123)]((_0x1bca58,_0x79b6fb)=>{const _0x56af27=_0x259a43;if(_0x1bca58[_0x56af27(0x2d4)]!==_0x203ac4['MUTATION']||_0x79b6fb!=null&&_0x79b6fb[_0x56af27(0x1c6)]||_0x79b6fb!=null&&_0x79b6fb[_0x56af27(0xb1)]||_0x1bca58['id']===_0x24dd5b['id'])return;let _0x1f65ed=_0x1bca58[_0x56af27(0x17b)];if((_0x1f65ed==null?void 0x0:_0x1f65ed[_0x56af27(0x2a3)])!==this[_0x56af27(0x100)])return;let _0xaddab0=_0x1bca58,_0x533351=this[_0x56af27(0x20b)]['interceptor'][_0x56af27(0x1b3)](this['_compressMutationService'][_0x56af27(0x2da)][_0x56af27(0xc3)]()[_0x56af27(0x1cc)])([_0xaddab0],this[_0x56af27(0x1ef)])||[_0xaddab0];this['_onLocalMutation'](_0x533351[0x0]);})),_0x2ddb82;}};qt=L([I(0x3,_0x2b7fdf(_0x54f16c)),I(0x4,_0x2b7fdf(_0x5eaf7a)),I(0x5,_0x2b7fdf(_0x3e1339)),I(0x6,_0x2b7fdf(_0x51cba4)),I(0x7,_0x2b7fdf(F)),I(0x8,_0x3bf7a9),I(0x9,_0x50b61b),I(0xa,_0xd98a3d),I(0xb,_0x31cc51),I(0xc,_0x1b9758(Mt)),I(0xd,_0x1b9758(B))],qt);let Jt=class extends Kt{constructor(_0xe275c2,_0x43463b,_0x3487f3,_0x8b85ae,_0x37fa90,_0x1dfdb7,_0x9424f2,_0x26fce2,_0xb276b9,_0x3ff997,_0x292272,_0x54059b,_0x580fac,_0x400f6,_0x348708){const _0xd5d472=_0x215c00;super(_0xe275c2,_0x3487f3,_0x43463b,_0x8b85ae,_0x37fa90,_0x1dfdb7,_0x9424f2,_0xb276b9,_0x3ff997,_0x292272,_0x54059b,_0x580fac,_0x400f6,_0x348708),this[_0xd5d472(0x100)]=_0xe275c2,this[_0xd5d472(0x2d4)]=_0x43463b,this[_0xd5d472(0xcf)]=_0x26fce2;}[_0x215c00(0x1e5)](){const _0x59db66=_0x215c00;let _0xad8af5=super['_createHandler']();return _0xad8af5['onTransformSelections']=_0x40aa74=>this[_0x59db66(0xcf)][_0x59db66(0x231)](_0x40aa74),_0xad8af5;}async['_init'](){const _0x19f32e=_0x215c00;let _0x1766b9=await super[_0x19f32e(0x290)]();return this[_0x19f32e(0x2be)](this[_0x19f32e(0x188)][_0x19f32e(0x123)]((_0x4a0555,_0x28c5fa)=>{const _0x1f84cc=_0x19f32e;if(_0x4a0555[_0x1f84cc(0x2d4)]!==_0x203ac4[_0x1f84cc(0x2fb)]||_0x28c5fa!=null&&_0x28c5fa[_0x1f84cc(0x1c6)]||_0x28c5fa!=null&&_0x28c5fa[_0x1f84cc(0xb1)])return;let _0x58aab1=_0x4a0555[_0x1f84cc(0x17b)];if((_0x58aab1==null?void 0x0:_0x58aab1[_0x1f84cc(0x2a3)])!==this[_0x1f84cc(0x100)])return;let _0x2ee122=_0x4a0555,_0x1fae0f=this[_0x1f84cc(0x20b)][_0x1f84cc(0x2da)][_0x1f84cc(0x1b3)](this[_0x1f84cc(0x20b)][_0x1f84cc(0x2da)][_0x1f84cc(0xc3)]()[_0x1f84cc(0x1cc)])([_0x2ee122],this['_univerInstanceService'])||[_0x2ee122];this['_onLocalMutation'](_0x1fae0f[0x0]);})),_0x1766b9;}};Jt=L([I(0x3,_0x2b7fdf(_0x54f16c)),I(0x4,_0x2b7fdf(_0x5eaf7a)),I(0x5,_0x2b7fdf(_0x3e1339)),I(0x6,_0x2b7fdf(_0x51cba4)),I(0x7,_0x2b7fdf(V)),I(0x8,_0x2b7fdf(F)),I(0x9,_0x3bf7a9),I(0xa,_0x50b61b),I(0xb,_0xd98a3d),I(0xc,_0x31cc51),I(0xd,_0x1b9758(Mt)),I(0xe,_0x1b9758(B))],Jt);const Yt=_0x4fb39a(_0x215c00(0xdb));function Xt(_0x5b8092){const _0x2c584a=_0x215c00;let _0x2a8e18=_0x5b8092[_0x2c584a(0x327)],_0x5bcdb5=JSON[_0x2c584a(0xf4)](_0x2a8e18);switch(_0x5bcdb5[_0x2c584a(0x183)]){case _0x211868[_0x2c584a(0x309)]:case _0x211868[_0x2c584a(0x181)]:{let _0x3ee677=_0x5bcdb5[_0x2c584a(0x2f9)];return{..._0x5bcdb5,'data':_0x3ee677,'cmd':_0x5bcdb5['cmd']};}case _0x211868[_0x2c584a(0x269)]:{let _0x25cc34=_0x5bcdb5['joinRsp'];return{..._0x5bcdb5,'data':_0x25cc34,'cmd':_0x5bcdb5[_0x2c584a(0x183)]};}case _0x211868[_0x2c584a(0x1aa)]:{let _0x10c40d=_0x5bcdb5[_0x2c584a(0x31b)];switch(_0x10c40d[_0x2c584a(0x134)]){case _0x1651b4[_0x2c584a(0x2f6)]:var _0x47b25d;return{..._0x5bcdb5,'data':{..._0x10c40d,'data':(_0x47b25d=_0x10c40d[_0x2c584a(0x10f)])==null?void 0x0:_0x47b25d['cs']},'cmd':_0x5bcdb5['cmd']};case _0x1651b4['CHANGESET_ACK']:var _0x300d73;return{..._0x5bcdb5,'data':{..._0x10c40d,'data':(_0x300d73=_0x10c40d[_0x2c584a(0x245)])==null?void 0x0:_0x300d73['cs']},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x16a)]:var _0x335809;return{..._0x5bcdb5,'data':{..._0x10c40d,'data':(_0x335809=_0x10c40d['newCsEvent'])==null?void 0x0:_0x335809['cs']},'cmd':_0x5bcdb5['cmd']};case _0x1651b4[_0x2c584a(0x102)]:var _0x16970e;return{..._0x5bcdb5,'data':{..._0x10c40d,'data':(_0x16970e=_0x10c40d[_0x2c584a(0x191)])==null?void 0x0:_0x16970e['cs']},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4['CHANGESET_SHOULD_RETRY']:var _0x4da499;return{..._0x5bcdb5,'data':{..._0x10c40d,'data':(_0x4da499=_0x10c40d[_0x2c584a(0xd0)])==null?void 0x0:_0x4da499['cs']},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x121)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d[_0x2c584a(0x268)]},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x17c)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d[_0x2c584a(0x16d)]},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4['USERS_LEAVE']:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d['leaveEvent']},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x156)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d['liveShareNewHost']},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x276)]:case _0x1651b4[_0x2c584a(0x2f2)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d[_0x2c584a(0x1bf)]},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x1bb)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d[_0x2c584a(0xca)]},'cmd':_0x5bcdb5['cmd']};case _0x1651b4['MSG_FOR_ERROR']:return{..._0x5bcdb5,'data':_0x10c40d,'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x159)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d[_0x2c584a(0xc5)]},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x232)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d[_0x2c584a(0x289)]},'cmd':_0x5bcdb5['cmd']};case _0x1651b4[_0x2c584a(0x310)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d['shouldCloseConn']},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};case _0x1651b4[_0x2c584a(0x12b)]:return{..._0x5bcdb5,'data':{..._0x10c40d,'data':_0x10c40d[_0x2c584a(0x1da)]},'cmd':_0x5bcdb5[_0x2c584a(0x183)]};default:return _0x5bcdb5;}}default:return _0x5bcdb5;}}function Zt(_0x4820cd){const _0x47c7cf=_0x215c00;switch(_0x4820cd[_0x47c7cf(0x183)]){case _0x211868[_0x47c7cf(0x309)]:case _0x211868[_0x47c7cf(0x181)]:return JSON['stringify']({'cmd':_0x4820cd[_0x47c7cf(0x183)],'routeKey':_0x4820cd[_0x47c7cf(0x326)]});case _0x211868['INGEST']:{let _0x3ea9ac;switch(_0x4820cd[_0x47c7cf(0x327)][_0x47c7cf(0x134)]){case _0x1651b4[_0x47c7cf(0x121)]:_0x3ea9ac={'eventID':_0x1651b4[_0x47c7cf(0x121)],'updateCursorEvent':_0x4820cd[_0x47c7cf(0x327)][_0x47c7cf(0x327)]};break;case _0x1651b4[_0x47c7cf(0x1a4)]:_0x3ea9ac={'eventID':_0x1651b4['USERS_LEAVE'],'leaveEvent':_0x4820cd[_0x47c7cf(0x327)][_0x47c7cf(0x327)]};break;case _0x1651b4[_0x47c7cf(0x17c)]:_0x3ea9ac={'eventID':_0x1651b4[_0x47c7cf(0x17c)],'joinEvent':_0x4820cd['data'][_0x47c7cf(0x327)]};break;case _0x1651b4[_0x47c7cf(0x156)]:_0x3ea9ac={'eventID':_0x1651b4['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x4820cd['data'][_0x47c7cf(0x327)]};break;case _0x1651b4[_0x47c7cf(0x2f2)]:_0x3ea9ac={'eventID':_0x1651b4['LIVESHARE_OPERATION'],'liveShareOperation':_0x4820cd['data'][_0x47c7cf(0x327)]};break;case _0x1651b4[_0x47c7cf(0x1bb)]:_0x3ea9ac={'eventID':_0x1651b4[_0x47c7cf(0x1bb)],'liveShareTerminate':_0x4820cd[_0x47c7cf(0x327)][_0x47c7cf(0x327)]};break;case _0x1651b4['LIVESHARE_REQUEST_HOST']:_0x3ea9ac={'eventID':_0x1651b4[_0x47c7cf(0x12d)],'liveShareRequestHost':_0x4820cd[_0x47c7cf(0x327)][_0x47c7cf(0x327)]};break;case _0x1651b4[_0x47c7cf(0x276)]:_0x3ea9ac={'eventID':_0x1651b4[_0x47c7cf(0x276)]};break;default:_0x3ea9ac={'eventID':_0x4820cd[_0x47c7cf(0x327)][_0x47c7cf(0x134)]};}return JSON[_0x47c7cf(0x15d)]({'cmd':_0x4820cd[_0x47c7cf(0x183)],'routeKey':_0x4820cd[_0x47c7cf(0x326)],'collaMsg':_0x3ea9ac});}case _0x211868[_0x47c7cf(0x269)]:return JSON[_0x47c7cf(0x15d)]({'cmd':_0x4820cd[_0x47c7cf(0x183)],'routeKey':_0x4820cd[_0x47c7cf(0x326)],'joinReq':_0x4820cd[_0x47c7cf(0x327)]});case _0x211868[_0x47c7cf(0x2f5)]:return JSON[_0x47c7cf(0x15d)]({'cmd':_0x4820cd[_0x47c7cf(0x183)],'routeKey':_0x4820cd['routeKey'],'leaveReq':_0x4820cd[_0x47c7cf(0x327)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Qt=_0x4fb39a(_0x215c00(0xbd));function $t(_0x181b76,_0x1b299a,_0x1d7ae8){const _0x85c271=_0x215c00;return _0x181b76+'/'+_0x1b299a+'/unit/'+_0x1d7ae8+_0x85c271(0x31e);}let en=class extends _0xa722e5{constructor(_0x144f23,_0x2df294,_0x53244a,_0x1dde3a,_0x92a900){const _0x258138=_0x215c00;super(),this[_0x258138(0x1ba)]=_0x144f23,this[_0x258138(0x2f4)]=_0x2df294,this[_0x258138(0x2d8)]=_0x53244a,this[_0x258138(0x2c6)]=_0x1dde3a,this[_0x258138(0x2c7)]=_0x92a900;}[_0x215c00(0x1c2)](_0x47e279){const _0x5a89a0=_0x215c00;let _0x15392b=this[_0x5a89a0(0x1ba)][_0x5a89a0(0x2aa)](_0x1b4143);if(!_0x15392b)throw Error(_0x5a89a0(0x1ae));let _0x5117aa=_0x15392b[_0x5a89a0(0x28f)](_0x47e279);if(!_0x5117aa)throw Error(_0x5a89a0(0x1ca));let _0x10686d=new _0x3e6a15(),_0x21d281=new _0xc4bd15();_0x10686d[_0x5a89a0(0x2dc)](_0x5117aa['close$']['subscribe'](_0x22527a=>_0x21d281[_0x5a89a0(0x2f0)](_0x22527a))),_0x10686d[_0x5a89a0(0x2dc)](_0x569d37(()=>_0x21d281['complete']()));let _0x508de9=new _0xc4bd15();_0x10686d[_0x5a89a0(0x2dc)](_0x5117aa[_0x5a89a0(0x293)]['subscribe'](_0x5cd54=>_0x508de9[_0x5a89a0(0x2f0)](_0x5cd54))),_0x10686d[_0x5a89a0(0x2dc)](_0x569d37(()=>_0x508de9[_0x5a89a0(0x142)]()));let _0x249c90=new _0xc4bd15();_0x10686d[_0x5a89a0(0x2dc)](_0x5117aa['message$'][_0x5a89a0(0x120)](_0x5eeb71=>{const _0x2eebbb=_0x5a89a0;let _0x236335=Xt(_0x5eeb71);_0x249c90[_0x2eebbb(0x2f0)](_0x236335);})),_0x10686d['add'](_0x569d37(()=>_0x249c90[_0x5a89a0(0x142)]()));let _0x11c0a6,_0x480796=()=>{const _0x52b849=_0x5a89a0;_0x508de9[_0x52b849(0x2f0)](new Event(_0x52b849(0x109))),_0x21d281['next'](new Event(_0x52b849(0x109))),_0x11c0a6['close']();};return _0x11c0a6={'memberID':'','close$':_0x21d281[_0x5a89a0(0x25e)](),'error$':_0x508de9[_0x5a89a0(0x25e)](),'open$':_0x5117aa[_0x5a89a0(0x295)],'message$':_0x249c90[_0x5a89a0(0x25e)](),'send':_0x5cf7bd=>{const _0x4631d0=_0x5a89a0;if(_0x5cf7bd[_0x4631d0(0x183)]===_0x211868[_0x4631d0(0x2a2)]){if(_0x5cf7bd[_0x4631d0(0x327)][_0x4631d0(0x134)]===_0x1651b4[_0x4631d0(0x2c2)]){this[_0x4631d0(0x11e)](_0x11c0a6,_0x5cf7bd[_0x4631d0(0x327)])[_0x4631d0(0x2d7)](_0x2cc6df=>{const _0x25814d=_0x4631d0;this[_0x25814d(0x2c6)][_0x25814d(0x207)](_0x2cc6df),_0x480796();});return;}if(_0x5cf7bd[_0x4631d0(0x327)][_0x4631d0(0x134)]===_0x1651b4[_0x4631d0(0x26b)]){let _0x25dbb2=_0x5cf7bd[_0x4631d0(0x327)];this[_0x4631d0(0x1c0)](_0x25dbb2)[_0x4631d0(0x199)](_0x1af477=>{const _0x63a17e=_0x4631d0;_0x249c90[_0x63a17e(0x2f0)]({'cmd':_0x211868[_0x63a17e(0x1aa)],'code':_0x12b6be['OK'],'routeKey':_0x25dbb2[_0x63a17e(0x327)][_0x63a17e(0x100)],'routeType':'','data':{'eventID':_0x1651b4[_0x63a17e(0xfb)],'data':{'changesets':_0x1af477}}});})['catch'](_0xc67029=>{const _0x3d73b4=_0x4631d0;this[_0x3d73b4(0x2c6)][_0x3d73b4(0x207)](_0xc67029),_0x480796();});return;}}_0x5117aa['send'](Zt(_0x5cf7bd));},'close':()=>{_0x5117aa['close'](),_0x10686d['dispose']();}},_0x11c0a6;}async[_0x215c00(0x11e)](_0x1a41d6,_0x1da434){const _0x3c42dd=_0x215c00;var _0x4aa351;let {unitType:_0x3c42d6,unitID:_0x229319,changeset:_0x3ceadb}=_0x1da434['data'],_0x5059df={'unitID':_0x229319,'memberID':_0x1a41d6['memberID'],'type':_0x3c42d6,'changeset':_0x376f54(_0x3ceadb)},_0x1ad50d=this[_0x3c42dd(0x2d8)][_0x3c42dd(0xb6)](H),_0x4e9f83=$t((_0x4aa351=_0x1ad50d==null?void 0x0:_0x1ad50d[_0x3c42dd(0x240)])==null?_0x3c42dd(0x2d5):_0x4aa351,_0x3c42d6,_0x229319);try{await this['_httpService'][_0x3c42dd(0x2ba)](_0x4e9f83,{'body':_0x5059df});}catch(_0x5af3d8){throw this[_0x3c42dd(0x2c6)]['error']('[CollaborationSession]',_0x3c42dd(0x297)),_0x5af3d8;}}async[_0x215c00(0x1c0)](_0x4e18c4){const _0x3bd6a6=_0x215c00;let {unitID:_0x52a0b3,from:_0x54e9c4,to:_0x53065d,unitType:_0x49642d}=_0x4e18c4['data'];return(await this['_snapshotServerService'][_0x3bd6a6(0xeb)]({'metadata':void 0x0},{'unitID':_0x52a0b3,'type':_0x49642d,'from':_0x54e9c4,'to':_0x53065d}))[_0x3bd6a6(0x176)]['map'](_0x4bf25d=>((_0x4bf25d[_0x3bd6a6(0x1fa)]===null||_0x4bf25d['mutations']===void 0x0)&&(_0x4bf25d[_0x3bd6a6(0x1fa)]=[]),_0x4bf25d));}};en=L([I(0x0,_0x2b7fdf(_0x54f16c)),I(0x1,_0x2b7fdf(_0x9333b9)),I(0x2,_0x3bb947),I(0x3,_0x50b61b),I(0x4,_0x526e15)],en);let Q=class extends _0xa722e5{get['_socket'](){const _0x1310f1=_0x215c00;return this[_0x1310f1(0x173)][_0x1310f1(0x2a7)]();}constructor(_0x4e4a68,_0x3941b5,_0xbd069d,_0x27e73e,_0xf822dc,_0x3b2d76){const _0xaf2f4b=_0x215c00;super(),this[_0xaf2f4b(0x1ba)]=_0x4e4a68,this[_0xaf2f4b(0x2c6)]=_0x3941b5,this[_0xaf2f4b(0x2d8)]=_0xbd069d,this['_socketService']=_0x27e73e,this[_0xaf2f4b(0x2b8)]=_0xf822dc,this[_0xaf2f4b(0x321)]=_0x3b2d76,N(this,'_socket$',new _0x39a505(void 0x0)),N(this,_0xaf2f4b(0x148),this['_socket$']['asObservable']()),N(this,_0xaf2f4b(0x2ed),null),N(this,'_sessions',new Map()),N(this,_0xaf2f4b(0x2ca),new _0x39a505(z[_0xaf2f4b(0x23a)])),N(this,'status$',this[_0xaf2f4b(0x2ca)][_0xaf2f4b(0x25e)]()),N(this,_0xaf2f4b(0xc8),!0x1),N(this,_0xaf2f4b(0xfc),void 0x0),N(this,_0xaf2f4b(0x1c7),0x0),N(this,'_sendHeartbeatTimer',void 0x0),N(this,'_timeoutTimer',void 0x0),this[_0xaf2f4b(0x23b)]();}['_listenToNetworkCondition'](){const _0x21ce12=_0x215c00;this[_0x21ce12(0x321)]&&this['disposeWithMe'](this['_networkConditionService'][_0x21ce12(0xe9)][_0x21ce12(0x120)](_0x5d0bc8=>{const _0x24e146=_0x21ce12;_0x5d0bc8&&!this['_socket']&&this[_0x24e146(0xfe)](),_0x5d0bc8||this[_0x24e146(0x24a)]();}));}[_0x215c00(0x2c1)](){const _0x1508f3=_0x215c00;super['dispose'](),this['_clearRetryConnectingTimer'](),this[_0x1508f3(0x291)](),this[_0x1508f3(0xdc)](),this['_sessions']['forEach'](_0x24f93a=>_0x24f93a['dispose']()),this[_0x1508f3(0xd3)]['clear'](),this[_0x1508f3(0x2ca)][_0x1508f3(0x142)]();}async[_0x215c00(0x21e)](_0x306eb7){const _0x35a47b=_0x215c00;if(this['_sessions'][_0x35a47b(0x2e4)](_0x306eb7))return this[_0x35a47b(0xd3)][_0x35a47b(0x2aa)](_0x306eb7);this['_tryEnsureSocket']();let _0x99198f=this[_0x35a47b(0x1ba)][_0x35a47b(0x24f)](kt,_0x306eb7,this[_0x35a47b(0x173)][_0x35a47b(0x25e)]());return this['_sessions'][_0x35a47b(0x111)](_0x306eb7,_0x99198f),_0x99198f;}[_0x215c00(0x31c)](_0x305fb9){const _0x31ddc2=_0x215c00;let _0x309894=this[_0x31ddc2(0xd3)][_0x31ddc2(0x2aa)](_0x305fb9);if(_0x309894&&(this[_0x31ddc2(0xd3)]['delete'](_0x305fb9),_0x309894[_0x31ddc2(0xe4)]()),!this['_sessions'][_0x31ddc2(0x1d0)]){var _0x4a1088;(_0x4a1088=this[_0x31ddc2(0x1ff)])==null||_0x4a1088[_0x31ddc2(0xe4)]();}}[_0x215c00(0xfe)](){const _0x2e8ac9=_0x215c00;this[_0x2e8ac9(0x1c7)]=0x0,this['_clearRetryConnectingTimer'](),this[_0x2e8ac9(0x1f6)]();}[_0x215c00(0x272)](){const _0x1859f1=_0x215c00;this[_0x1859f1(0xfc)]!=null&&(clearTimeout(this[_0x1859f1(0xfc)]),this[_0x1859f1(0xfc)]=null);}async[_0x215c00(0xff)](){const _0x47f68c=_0x215c00;var _0x5dd385;let _0x54070b=this[_0x47f68c(0x2d8)][_0x47f68c(0xb6)](H),_0x2b48b7=(_0x5dd385=_0x54070b==null?void 0x0:_0x54070b[_0x47f68c(0x14c)])==null?ft:_0x5dd385,_0x1ba7ce=await this[_0x47f68c(0x1d2)][_0x47f68c(0x28f)](_0x2b48b7);return this['_candidateSocket']=_0x1ba7ce,_0x1ba7ce;}async[_0x215c00(0x308)](){const _0x15025d=_0x215c00;try{var _0x16ec29,_0x125904;let _0x263183=(_0x16ec29=(_0x125904=this['_socket'])==null?this['_candidateSocket']:_0x125904)==null?await this[_0x15025d(0xff)]():_0x16ec29;if(_0x263183){let _0x1a89bb=_0x263183[_0x15025d(0x307)];_0x263183[_0x15025d(0x307)]=_0xa38145=>(_0xa38145[_0x15025d(0x183)]!==_0x211868[_0x15025d(0x2f5)]&&this['_rescheduleHeartbeat'](),_0x1a89bb[_0x15025d(0x13b)](_0x263183,[_0xa38145])),_0x263183[_0x15025d(0xb9)][_0x15025d(0x120)](_0x3ced9a=>this['_onMessage'](_0x263183,_0x3ced9a)),_0x263183[_0x15025d(0x293)]['pipe'](_0x407cef(0x1))[_0x15025d(0x120)](_0x164eee=>this[_0x15025d(0x2c6)][_0x15025d(0x207)](_0x15025d(0x23c),_0x164eee)),_0x263183['open$'][_0x15025d(0x145)](_0x407cef(0x1))[_0x15025d(0x120)](()=>{this['_onConnectionOpen'](_0x263183);}),_0x263183[_0x15025d(0x233)][_0x15025d(0x145)](_0x407cef(0x1))[_0x15025d(0x120)](_0x20e8ac=>{const _0x322270=_0x15025d;this[_0x322270(0x2c6)]['debug'](_0x322270(0x157),'socket\x20close',_0x20e8ac),this[_0x322270(0x225)]();});}}catch(_0x4f52ec){this['_logService'][_0x15025d(0x207)](_0x4f52ec),this[_0x15025d(0x225)]();}}[_0x215c00(0x2eb)](_0x4055c7){const _0x3fa9ba=_0x215c00;this[_0x3fa9ba(0x2c6)][_0x3fa9ba(0x1ed)]('[CollaborationSessionService]',_0x3fa9ba(0x14e)),_0x4055c7[_0x3fa9ba(0x307)]({'cmd':_0x211868[_0x3fa9ba(0x181)]}),this[_0x3fa9ba(0x138)]();}['_onOffline'](){const _0x1bafa0=_0x215c00;this['_socketReady']=!0x1,this[_0x1bafa0(0x2ed)]=null,this[_0x1bafa0(0x2ca)][_0x1bafa0(0x2f0)](z['OFFLINE']),this['_socket$'][_0x1bafa0(0x2f0)](null),this[_0x1bafa0(0x291)](),this[_0x1bafa0(0xdc)]();}['_onConnectionFailed'](){const _0x2004de=_0x215c00;var _0x397f3f;this[_0x2004de(0x24a)](),this[_0x2004de(0x1c7)]<((_0x397f3f=this['_configService'][_0x2004de(0xb6)](_0x2004de(0x223)))==null?0x3:_0x397f3f)?(this[_0x2004de(0x2b8)]['emitEvent']({'id':P[_0x2004de(0x262)]}),this['_tryReconnect']()):this[_0x2004de(0x2b8)][_0x2004de(0x160)]({'id':P[_0x2004de(0x1f9)]});}['_tryReconnect'](){const _0x1a5b35=_0x215c00;var _0x414a8e;let _0x1db0b7=this[_0x1a5b35(0x1c7)],_0x7880f4=this[_0x1a5b35(0x2d8)][_0x1a5b35(0xb6)](H),_0x328027=_0x1db0b7===0x0?0x0:((_0x414a8e=_0x7880f4==null?void 0x0:_0x7880f4[_0x1a5b35(0x2d9)])==null?0x4e20:_0x414a8e)*0x2**_0x1db0b7;this[_0x1a5b35(0xfc)]=setTimeout(()=>{const _0x477eed=_0x1a5b35;clearTimeout(this[_0x477eed(0xfc)]),this[_0x477eed(0xfc)]=null,this[_0x477eed(0x308)]();},_0x328027),this[_0x1a5b35(0x1c7)]+=0x1;}[_0x215c00(0x28d)](_0x44382b,_0x194ee8){const _0x4b892c=_0x215c00;let {cmd:_0x2b5291}=_0x194ee8;_0x2b5291===_0x211868['HELLO']&&!this[_0x4b892c(0xc8)]&&(_0x44382b[_0x4b892c(0x302)]=_0x194ee8[_0x4b892c(0x327)]['memberID'],this[_0x4b892c(0x173)]['next'](_0x44382b),this[_0x4b892c(0x2ca)][_0x4b892c(0x2f0)](z[_0x4b892c(0x202)]),this['_socketReady']=!0x0,this[_0x4b892c(0x2ed)]=null),_0x2b5291===_0x211868[_0x4b892c(0x309)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x54047c=_0x215c00;var _0x8b575;this['_clearHeartbeatTimer'](),this[_0x54047c(0x141)]=setTimeout(()=>this[_0x54047c(0x215)](),(_0x8b575=this[_0x54047c(0x2d8)]['getConfig'](_0x54047c(0x29a)))==null?0x7530:_0x8b575);}[_0x215c00(0x215)](){const _0xad066e=_0x215c00;this['_socket'][_0xad066e(0x307)]({'cmd':_0x211868[_0xad066e(0x309)]}),this['_waitForHeartbeatResponse']();}[_0x215c00(0x28b)](){const _0x3a6c70=_0x215c00;var _0xc11f46;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0xc11f46=this['_configService'][_0x3a6c70(0xb6)](_0x3a6c70(0xe7)))==null?gt:_0xc11f46);}[_0x215c00(0xdc)](){const _0x39512b=_0x215c00;this[_0x39512b(0x141)]!=null&&(clearTimeout(this[_0x39512b(0x141)]),this[_0x39512b(0x141)]=null);}[_0x215c00(0x291)](){const _0x273401=_0x215c00;this[_0x273401(0x277)]!=null&&(clearTimeout(this[_0x273401(0x277)]),this['_timeoutTimer']=null);}};Q=L([I(0x0,_0x2b7fdf(_0x54f16c)),I(0x1,_0x50b61b),I(0x2,_0x3bb947),I(0x3,Qt),I(0x4,_0x2b7fdf(F)),I(0x5,_0x1b9758(Yt))],Q);let tn=class extends _0x1e78ef{constructor(_0x5cf747,_0x352730,_0x2191f7,_0xf47457){const _0x5e6a4e=_0x215c00;var _0x3847d0;super(),this[_0x5e6a4e(0x1ba)]=_0x5cf747,this[_0x5e6a4e(0x1e7)]=_0x352730,this[_0x5e6a4e(0x2d8)]=_0x2191f7,this[_0x5e6a4e(0x1ef)]=_0xf47457,N(this,_0x5e6a4e(0x241),new Map()),N(this,_0x5e6a4e(0x1e4),new _0xc4bd15()),N(this,_0x5e6a4e(0x280),this[_0x5e6a4e(0x1e4)][_0x5e6a4e(0x25e)]()),((_0x3847d0=this[_0x5e6a4e(0x2d8)][_0x5e6a4e(0xb6)](_0x5e6a4e(0x22e)))==null?void 0x0:_0x3847d0[_0x5e6a4e(0x193)])!==!0x1&&this[_0x5e6a4e(0x290)]();}[_0x215c00(0x2c1)](){const _0x37d34f=_0x215c00;super[_0x37d34f(0x2c1)](),this['_entities']['forEach'](_0x435750=>_0x435750[_0x37d34f(0x2c1)]()),this[_0x37d34f(0x241)]['clear']();}[_0x215c00(0xcc)](_0x3a72a2){const _0x2ddb41=_0x215c00;var _0x2ca039;return(_0x2ca039=this[_0x2ddb41(0x241)]['get'](_0x3a72a2))==null?null:_0x2ca039;}[_0x215c00(0x15b)](_0xfb698e){const _0x1f0071=_0x215c00;let _0x2493bb=this[_0x1f0071(0xcc)](_0xfb698e);return _0x2493bb?_0x33d84d(_0x2493bb):this[_0x1f0071(0x1e4)]['pipe'](_0x266152(_0x57b132=>_0x57b132[_0x1f0071(0x100)]===_0xfb698e));}[_0x215c00(0x30e)](_0x257d40){const _0x1cddf4=_0x215c00;return _0x55b7e7(this['getCollabEntity$'](_0x257d40)[_0x1cddf4(0x145)](_0x17b213(()=>void 0x0)));}[_0x215c00(0x290)](){const _0x2d4fda=_0x215c00;this['_univerInstanceService'][_0x2d4fda(0x2b4)](_0x996087[_0x2d4fda(0x270)])[_0x2d4fda(0x145)](_0x41771b(this['dispose$']),_0x188064(0x10))[_0x2d4fda(0x120)](async _0x232359=>{const _0x564871=_0x2d4fda;let _0x3a298e=_0x232359[_0x564871(0x267)](),_0x3b2b12=await this[_0x564871(0x2c5)](_0x3a298e,_0x2b168c[_0x564871(0x270)]);this['_entities'][_0x564871(0x111)](_0x3a298e,_0x3b2b12);}),this[_0x2d4fda(0x1ef)][_0x2d4fda(0x2b4)](_0x996087[_0x2d4fda(0xf7)])['pipe'](_0x41771b(this[_0x2d4fda(0x168)]),_0x188064(0x10))[_0x2d4fda(0x145)](_0x266152(_0x205416=>!_0x205416[_0x2d4fda(0x267)]()[_0x2d4fda(0x1de)]('__')))[_0x2d4fda(0x120)](async _0x59c602=>{const _0x2c0dd8=_0x2d4fda;let _0x1a0444=_0x59c602[_0x2c0dd8(0x267)](),_0xa3845f=await this[_0x2c0dd8(0x2c5)](_0x1a0444,_0x2b168c[_0x2c0dd8(0xf7)]);this[_0x2c0dd8(0x241)][_0x2c0dd8(0x111)](_0x1a0444,_0xa3845f);}),_0x4aaad5(this['_univerInstanceService'][_0x2d4fda(0x2f7)](_0x996087['UNIVER_SHEET']),this['_univerInstanceService'][_0x2d4fda(0x2f7)](_0x996087[_0x2d4fda(0xf7)]))[_0x2d4fda(0x145)](_0x41771b(this[_0x2d4fda(0x168)]))[_0x2d4fda(0x120)](_0x23c107=>{const _0x1b29ee=_0x2d4fda;let _0x53b405=_0x23c107[_0x1b29ee(0x267)](),_0x1d5421=this[_0x1b29ee(0x241)]['get'](_0x53b405);_0x1d5421&&(_0x1d5421[_0x1b29ee(0x2c1)](),this[_0x1b29ee(0x241)][_0x1b29ee(0x19e)](_0x53b405));});}async['_startCollaboration'](_0x23d556,_0xac8208){const _0xed7f75=_0x215c00;let _0x386c8b=await this[_0xed7f75(0x1e7)][_0xed7f75(0x21e)](_0x23d556),_0x22bdce=this[_0xed7f75(0x1ba)][_0xed7f75(0x24f)](this[_0xed7f75(0x26a)](_0xac8208),_0x23d556,_0xac8208,_0x386c8b);return await _0x22bdce[_0xed7f75(0x20f)](),this[_0xed7f75(0x1e4)][_0xed7f75(0x2f0)](_0x22bdce),_0x22bdce;}[_0x215c00(0x26a)](_0x4d06d9){const _0x2980c3=_0x215c00;switch(_0x4d06d9){case _0x2b168c[_0x2980c3(0xf7)]:return qt;case _0x2b168c[_0x2980c3(0x270)]:return Jt;default:throw Error(_0x2980c3(0x1ee)+_0x4d06d9);}}};tn=L([I(0x0,_0x2b7fdf(_0x54f16c)),I(0x1,_0x2b7fdf(Q)),I(0x2,_0x3bb947),I(0x3,_0x3bf7a9)],tn);var nn=_0x215c00(0x28e),rn=_0x215c00(0x11f);let an=class extends _0xa722e5{constructor(_0x159ec4,_0x25d634){const _0x11a683=_0x215c00;super(),this[_0x11a683(0x1ef)]=_0x159ec4,this['_configService']=_0x25d634,this[_0x11a683(0x290)]();}[_0x215c00(0x290)](){const _0x3cf02d=_0x215c00;this['disposeWithMe'](this[_0x3cf02d(0x1ef)][_0x3cf02d(0xce)]['subscribe'](()=>{const _0x1c9e72=_0x3cf02d;var _0x49ea06;let _0x5b0065=this[_0x1c9e72(0x1ef)][_0x1c9e72(0x1df)](),_0x3743af=(_0x49ea06=this[_0x1c9e72(0x2d8)][_0x1c9e72(0xb6)](_0x1c9e72(0x190)))==null?_0x1c9e72(0x224):_0x49ea06;_0x5b0065 instanceof _0x1f92c6&&(_0x3743af=_0x5b0065[_0x1c9e72(0x2d2)]),document['title']=_0x3743af;}));}};an=L([I(0x0,_0x3bf7a9),I(0x1,_0x3bb947)],an);let on=class{constructor(_0x49a636,_0x271c9c,_0x18ca4a){const _0x29b5f5=_0x215c00;this['_configService']=_0x49a636,this[_0x29b5f5(0x2f4)]=_0x271c9c,this[_0x29b5f5(0x1ce)]=_0x18ca4a,this[_0x29b5f5(0x20f)]();}[_0x215c00(0x20f)](){const _0x2e2f08=_0x215c00;this[_0x2e2f08(0x2f4)][_0x2e2f08(0xb2)]({'priority':0x1,'interceptor':(_0x57a1f3,_0x1470d8)=>_0x1470d8(_0x57a1f3)[_0x2e2f08(0x145)](_0x5935ea(async _0x46a354=>{const _0x4ca191=_0x2e2f08;let _0x556fd9=_0x46a354;if(_0x556fd9[_0x4ca191(0x2ff)]===0x191){if(typeof window>'u')throw Error(_0x4ca191(0x187));if(window[_0x4ca191(0x1e9)](this['localeService']['t'](_0x4ca191(0x1be)))){let _0x153b35=window[_0x4ca191(0x1db)](window[_0x4ca191(0x2a4)][_0x4ca191(0x163)]);window[_0x4ca191(0x2a4)][_0x4ca191(0x163)]=this[_0x4ca191(0x135)]()+_0x4ca191(0x29d)+_0x153b35;}}return _0x556fd9;}))});}[_0x215c00(0x135)](){const _0x1d5766=_0x215c00;var _0x3c58b5;let _0xcc1599=this[_0x1d5766(0x2d8)][_0x1d5766(0xb6)](H);return(_0x3c58b5=_0xcc1599==null?void 0x0:_0xcc1599[_0x1d5766(0x1cb)])==null?_0x1d5766(0x1fb):_0x3c58b5;}};on=L([I(0x0,_0x3bb947),I(0x1,_0x2b7fdf(_0x9333b9)),I(0x2,_0x2b7fdf(_0x3e1339))],on);let sn=class extends _0xa722e5{constructor(_0x1f8690,_0x4af84d){const _0x979d0f=_0x215c00;super(),this[_0x979d0f(0xcd)]=_0x1f8690,this['_configService']=_0x4af84d,N(this,_0x979d0f(0x136),!0x1),this['_initMergeInterceptor']();}[_0x215c00(0x316)](){const _0xe79837=_0x215c00;let _0x5d85b7=this;this[_0xe79837(0x2be)](this[_0xe79837(0xcd)][_0xe79837(0xb2)]({'priority':0x3e7,'interceptor':_0x14096c({'isMatch'(_0x3288bc){const _0x56edad=_0xe79837;var _0xdef335;if(_0x3288bc[_0x56edad(0x1c3)]===_0x56edad(0x2bd)&&(_0xdef335=_0x3288bc[_0x56edad(0x314)])!=null&&_0xdef335[_0x56edad(0x18a)]){let {objectID:_0x138c0e,objectType:_0x229d0f}=_0x3288bc[_0x56edad(0x314)][_0x56edad(0x18a)]||{};if(!_0x138c0e||_0x229d0f===void 0x0)return!0x1;let _0x2ad46b=_0x5d85b7[_0x56edad(0x281)]()+'/'+_0x229d0f+'/object/'+_0x138c0e+'/allowed';if(_0x3288bc[_0x56edad(0x1f7)]===_0x2ad46b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xf17f72){const _0x3c25e1=_0xe79837;var _0x44560f;return(_0x44560f=_0xf17f72[_0x3c25e1(0x314)])==null?void 0x0:_0x44560f[_0x3c25e1(0x18a)];},'mergeParamsToRequest'(_0x74a1a6,_0xa99de7){const _0x5f1a78=_0xe79837;let _0x122afc=_0x5d85b7['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x479acd=_0x74a1a6[_0x5f1a78(0x1b1)]((_0x284235,_0x12544f)=>{const _0x8e5ce9=_0x5f1a78;let {unitID:_0x85a341,objectID:_0x1ab9ab,objectType:_0x1b30da,actions:_0x46ffde}=_0x12544f;return _0x284235[_0x85a341]||(_0x284235[_0x85a341]={}),_0x284235[_0x85a341][_0x1ab9ab]||(_0x284235[_0x85a341][_0x1ab9ab]={'objectID':_0x1ab9ab,'objectType':_0x1b30da,'actions':[]}),_0x284235[_0x85a341][_0x1ab9ab][_0x8e5ce9(0x28a)]['push'](..._0x46ffde),_0x284235;},{}),_0x2b5bed=[];for(let _0x4fc67c in _0x479acd)for(let _0x3f21eb in _0x479acd[_0x4fc67c]){let {actions:_0x3819a6,objectType:_0x31c486}=_0x479acd[_0x4fc67c][_0x3f21eb],_0x29bb46=[...new Set(_0x3819a6)];_0x2b5bed[_0x5f1a78(0x298)]({'unitID':_0x4fc67c,'objectID':_0x3f21eb,'objectType':_0x31c486,'actions':_0x29bb46});}return new _0x4faa16(_0x5f1a78(0x2bd),_0x122afc,{'headers':_0xa99de7[_0x5f1a78(0x14f)],'withCredentials':_0xa99de7['withCredentials'],'responseType':_0xa99de7[_0x5f1a78(0x27c)],'body':{'requests':_0x2b5bed}});}},{'distributeResult'(_0x4ec6f7,_0x45347b){let {objectActions:_0x1b9db3}=_0x4ec6f7;return _0x45347b['map'](_0x34c91d=>{const _0xc43c1f=_0x184e;let {unitID:_0x505176,objectID:_0x907e01,actions:_0x4ae5fb}=_0x34c91d,_0x8eeee3=_0x1b9db3[_0xc43c1f(0x26c)](_0xa441fb=>_0xa441fb[_0xc43c1f(0x100)]===_0x505176&&_0xa441fb['objectID']===_0x907e01);return{'config':_0x34c91d,'result':{'actions':_0x4ae5fb[_0xc43c1f(0x242)](_0x4a5a87=>_0x8eeee3==null?void 0x0:_0x8eeee3[_0xc43c1f(0x28a)][_0xc43c1f(0x26c)](_0xc29567=>_0xc29567[_0xc43c1f(0x1a0)]===_0x4a5a87))[_0xc43c1f(0xe6)](_0x30baec=>!!_0x30baec),'error':_0x4ec6f7[_0xc43c1f(0x207)]}};});}})}));}['_getAPIPrefixPath'](){const _0x7aba97=_0x215c00;var _0xb27af4;let _0x5e8fc2=this['_configService'][_0x7aba97(0xb6)](H);return(_0xb27af4=_0x5e8fc2==null?void 0x0:_0x5e8fc2[_0x7aba97(0x2c8)])==null?_0x7aba97(0x2fa):_0xb27af4;}async[_0x215c00(0x211)](_0x4de15c){const _0x20cb5a=_0x215c00;let _0x200053=this['_getAPIPrefixPath']()+'/'+_0x4de15c[_0x20cb5a(0x140)]+'/object';return(await this[_0x20cb5a(0xcd)][_0x20cb5a(0x2ba)](_0x200053,{'body':_0x4de15c}))[_0x20cb5a(0x18a)][_0x20cb5a(0x1ad)]||'';}async['list'](_0x3dae8b){const _0x39df3b=_0x215c00;let _0x602b37=this[_0x39df3b(0x281)]()+_0x39df3b(0x10c);return(await this['_HTTPService'][_0x39df3b(0x2ba)](_0x602b37,{'body':_0x3dae8b}))[_0x39df3b(0x18a)]['objects'];}async['update'](_0x4044c7){const _0x434f5b=_0x215c00;var _0xd33986;let _0x241a72=this[_0x434f5b(0x281)]()+'/'+_0x4044c7[_0x434f5b(0x140)]+_0x434f5b(0x1ec)+_0x4044c7[_0x434f5b(0x1ad)],_0x2e6629=await this[_0x434f5b(0xcd)][_0x434f5b(0x2ef)](_0x241a72,{'body':_0x4044c7});if((_0x2e6629==null||(_0xd33986=_0x2e6629['body'])==null||(_0xd33986=_0xd33986[_0x434f5b(0x207)])==null?void 0x0:_0xd33986[_0x434f5b(0x1c1)])!==0x1)throw Error(_0x434f5b(0x1af));}async[_0x215c00(0xfa)](_0x4d95c2){const _0x2ed4bd=_0x215c00;let _0x53858b=this[_0x2ed4bd(0x281)]()+'/'+_0x4d95c2['objectType']+'/object/'+_0x4d95c2['objectID']+_0x2ed4bd(0x16f);return(await this[_0x2ed4bd(0xcd)][_0x2ed4bd(0x2ba)](_0x53858b,{'body':_0x4d95c2}))[_0x2ed4bd(0x18a)][_0x2ed4bd(0x28a)];}async[_0x215c00(0xd2)](_0x17c793){const _0xa4c20d=_0x215c00;let _0x348248=this[_0xa4c20d(0x281)]()+_0xa4c20d(0x114);return(await this[_0xa4c20d(0xcd)][_0xa4c20d(0x2ba)](_0x348248,{'body':{'requests':_0x17c793}}))[_0xa4c20d(0x18a)]['objectActions'];}async[_0x215c00(0x15a)](_0x1ce6e9){const _0x1f4703=_0x215c00;let _0x311a76=this[_0x1f4703(0x281)]()+'/'+_0x1ce6e9[_0x1f4703(0x140)]+_0x1f4703(0x273),_0x35cf72=await this['_HTTPService']['post'](_0x311a76,{'body':_0x1ce6e9});return{'roles':_0x35cf72['body'][_0x1f4703(0x2e8)],'actions':_0x35cf72[_0x1f4703(0x18a)]['actions']};}async['deleteCollaborator'](_0x2e2efe){const _0x22f60c=_0x215c00;let _0x13667a=this[_0x22f60c(0x281)]()+_0x22f60c(0x15c);await this[_0x22f60c(0xcd)][_0x22f60c(0x19e)](_0x13667a,{'params':{'collaboratorID':_0x2e2efe[_0x22f60c(0x282)],'objectID':_0x2e2efe['objectID'],'unitID':_0x2e2efe[_0x22f60c(0x100)]}});}async[_0x215c00(0x178)](_0x3c26f7){const _0x38d297=_0x215c00;let _0x29ac2e=this[_0x38d297(0x281)]()+_0x38d297(0x15c);await this[_0x38d297(0xcd)][_0x38d297(0x10b)](_0x29ac2e,{'body':_0x3c26f7});}async[_0x215c00(0xdd)](_0x38e300){const _0x24660c=_0x215c00;let _0x20e061=this[_0x24660c(0x281)]()+_0x24660c(0x15c);await this[_0x24660c(0xcd)][_0x24660c(0x2ba)](_0x20e061,{'body':_0x38e300});}async[_0x215c00(0xe1)](_0x305fa1){const _0x77e562=_0x215c00;var _0x5b937a;let _0x819733=this[_0x77e562(0x281)]()+_0x77e562(0x15c),_0x2aeea8=await this[_0x77e562(0xcd)][_0x77e562(0x2aa)](_0x819733,{'params':{'objectID':_0x305fa1[_0x77e562(0x1ad)],'unitID':_0x305fa1[_0x77e562(0x100)]}});return this[_0x77e562(0x246)]((_0x5b937a=_0x2aeea8['body'][_0x77e562(0x2f1)])==null?!0x1:_0x5b937a),_0x2aeea8[_0x77e562(0x18a)][_0x77e562(0xf5)];}async[_0x215c00(0x1b4)](_0xcd17a){const _0x24fe6d=_0x215c00;let _0x208676=this[_0x24fe6d(0x281)]()+_0x24fe6d(0x15c);await this[_0x24fe6d(0xcd)]['put'](_0x208676,{'body':_0xcd17a});}['setCfgEnableObjInherit'](_0xc8b94c){const _0x5ae2be=_0x215c00;this[_0x5ae2be(0x136)]=_0xc8b94c;}[_0x215c00(0x161)](){const _0x277569=_0x215c00;return this[_0x277569(0x136)];}};sn=L([I(0x0,_0x2b7fdf(_0x9333b9)),I(0x1,_0x2b7fdf(_0x3bb947))],sn);function _0x286d(){const _0x288b0e=['_resendTimer','subUnitId','onRemoteRetry','?size=','updatePermissionObjEvent','actions','_waitForHeartbeatResponse','collaboration_new_changeset','_onMessage','@univerjs-pro/collaboration-client','createSocket','_init','_clearTimeoutTimer','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','error$','getUnitType','open$','OTHER_CLIENTS_EDITING','submit\x20changeset\x20error!','push','onMissingChangesets','HEARTBEAT_INTERVAL','startTime','_getSendChangesetTimeout','?url=','removeMember','file','compose','_onJoinRoomEvent','INGEST','unitId','location','saveChangeset','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getValue','_lockTransition','LOCAL_CACHE_INTERVAL','get','517wYZdSa','PERMISSION_DENIED','_decreaseWaiting','_executeRemoteChangeset','_getSignURL','_config','ERROR_IMAGE_TYPE','duration','_throwTelemetryCollaborationNewChangeset','getTypeOfUnitAdded$','target','unknown','_localCacheService','_collaborationUIEventService','initWorkbookPermissionChange','post','3024909OuHlLB','getUnitOnRev','POST','disposeWithMe','_singleActiveUnitService','CHANGESET_ACK','dispose','SUBMIT_CHANGESET','getWorkbookSelections','_transitionLocked','_startCollaboration','_logService','_snapshotServerService','authzUrl','_changesetReqId','_status$','editingUnit','state','setCurrentUser','/resources','_handlerCallback','image/gif','awaiting','name','packageName','type','/universer-api/comb','[DataLoaderService]','catch','_configService','retryConnectingInterval','interceptor','_transformSelections','add','__Key__','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','slice','_shouldReportTelemetry','updatePermissionPoint','onTransformRemoteChangesetByIMECache','object','has','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','image/jpeg','PERSON','roles','loadUnit','_startTelemetryCollaborationNewChangeset','_onConnectionOpen','_resendTimeout','_candidateSocket','deepClone','put','next','cfgEnableObjInherit','LIVESHARE_OPERATION','_updateState','_httpService','LEAVE','PERMISSION_REJ','getTypeOfUnitDisposed$','toPrimitive','infoRsp','/universer-api/authz','MUTATION','sessionStatus$','symbol','getOwnPropertyDescriptor','status','_transformStack','[CollaborationUndoRedoService]','memberID','&source=','decorate','_onFetchMissResult','_schedule','send','_tryEnsureSocket','HEARTBEAT','_onConflict','session.room-cnt-exceeds','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sendingTimer','readyForCollab','_state$','SHOULD_CLOSE_CONN','_revisionService','_unitInfo$','_syncEditingCollabCursor','requestParams','includes','_initMergeInterceptor','ws://127.0.0.1:8000/universer-api/comb/connect','defineProperty','telemetry\x20info\x20is\x20not\x20initialized','_eventService','collaMsg','closeSession','onMissedChangesetFetched','/new_changes','fetch_missing','reqId','_networkConditionService','_type','copyFileMeta','toString','onRemoteChangeset','routeKey','data','_getUndoStack','every','selections','getCurrentSelections','onlyLocal','registerHTTPInterceptor','unitInfo$','resourceIDs','onStateChange','getConfig','session','capture','message$','stopTime','onRemoteRej','CONFLICT','univer-pro.collaboration-client-socket-service','session.room-not-exists','concat','SYNCED','onTransformIME','_scheduleCompleteTimestamp','getInterceptPoints','[OfflineState]:\x20received\x20rejection.','commentUpdateEvent','disableLocalCache','saveSnapshot','_socketReady','forEach','liveShareNewHost','loadSheet','getCollabEntity','_HTTPService','focused$','_sheetTransformSelectionsService','csShouldRetryEvent','save\x20fail\x20reason\x20is\x20','batchAllowed','_sessions','saveSheetBlock','localCacheService','transformMutationsWithChangeset','repeat','OFFLINE','_waitCount','_permissionService','univer-pro.collaboration-client.network-condition.service','_clearHeartbeatTimer','createCollaborator','6610360lPPzZe','_transformIMECache','/universer-api/snapshot/','listCollaborators','list','_registerDependencies','close','executeCommand','filter','HEARTBEAT_TIMEOUT','findIndex','online$','resend','fetchMissingChangesets','splice','[FetchMissState]','iterator','function','_getCurrentRevision','_replayCachedMutations','_clearUndo','_handler','parse','collaborators','_clearCollaborationTimeoutTimer','UNIVER_DOC','_socketMessageSubscription','fetching\x20missing\x20changesets\x20from\x20','allowed','PSEUDO_FETCH_MISSING_RESULT','_retryConnectingTimer','ERROR_IMAGE','reconnect','_createSocket','unitID','updateMember','CHANGESET_REJ','_clearScheduledTask','failed\x20to\x20apply\x20missed\x20changesets!','_stopTelemetryCollaborationNewChangeset','_acknowledgedAwaitingChangeset','replace','getSheetId','connection\x20error','clear','patch','/-/object/list','1138242TQujGg','_initUnitPermissionChange','permissionRejEvent','synced','set','version','_removeRoom','/-/object/-/batch_allowed','FETCH_MISS','setConfig','image/bmp','awaiting_with_pending','_transformService','JOIN_ROOM_FULL','_transformStateCache','revision','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_submitChangeset','0.20.1','subscribe','UPDATE_CURSOR','max','onMutationExecutedForCollab','JOINING','random','toggleOnline','ciphertext','floor','transformChangesets','_onRemoteChangeset','UNISCRIPT_RUN','234870QlmifE','LIVESHARE_REQUEST_HOST','_exhaustRemoteChangesetQueue','appendMutation','c2Prime','subject','result','6532wGPVuW','eventID','_getLoginPath','_cfgEnableObjInherit','collaboration-client.local-cache-service','_rescheduleHeartbeat','_userManagerService','_onRemoteACK','apply','sid','getCurrentRevOfUnit','ERROR_EXCEED_SIZE','[CollaborationEntity]','objectType','_sendHeartbeatTimer','complete','reverse','/unit/','pipe','onSyncEditingCollabCursor','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','socket$','_initCloseConn','isArray','loadUnitOfRevision','collabWebSocketUrl','transformStack\x20failed!','socket\x20open.','headers','avatar','[CollaborationSession]','m2Prime','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','override','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LIVESHARE_NEW_HOST','[CollaborationSessionService]','UNIVER_SLIDE','COMMENT_UPDATE','listRoles','getCollabEntity$','/collaborator','stringify','pauseCollaboration','_onLocalMutation','emitEvent','getCfgEnableObjInherit','onTransformState','href','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','_substituteUndoStack','/universer-api/user/session-ticket','3PfaLlh','dispose$','_commentUpdate$','NEW_CHANGESETS','getMember','_getUploadFileURL','joinEvent','_updateLocalCache','/allowed','_instanceService','JOIN_ROOM_NOT_EXISTS','_telemetryInfo','_socket$','c1Prime','/universer-api/snapshot','changesets','event$','updateCollaborator','_initDependencies','session.room-permission-denied','params','USERS_ENTER','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_transformRemoteChangesetByIMECache','_undoRedoService','fetchMiss','HELLO','commentUpdate$','cmd','[PendingState]:\x20received\x20rejection.','_showConflictNotification','getUnit','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_commandService','getSnapshotAPIPath','body','resolve','NOT_COLLAB','getImageSourceCache','rev','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','DEFAULT_FILE_NAME','csRejEvent','signUrlServerUrl','enableCollaboration','\x20in\x20_schedule.','constructor','NO_OTHER_CLIENTS_EDITING','userID','default','then','_unitID','enableOfflineEditing','\x0aAfter:\x20','x-univer-host','delete','_disableEditing','action','_undoStacks','_getRedoStack','Error\x20on\x20receiving\x20event','USERS_LEAVE','SUBMIT_CHANGESET_TIMEOUT','_sender','[CollaborationState]:\x20apply\x20error!','reject','refreshPermission','RECV','_state','enableSingleActiveInstanceLock','objectID','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','Failed\x20to\x20update\x20permission\x20point','onTransformSelections','reduce','_toggleOffline','fetchThroughInterceptors','putCollaborators','_event$','CHANGESET_SHOULD_RETRY','_toggleOnline','onSendChangeset','_getDownloadEndpointURL','_injector','LIVESHARE_TERMINATE','_collaborationSessionService','_memberService','auth.needGotoLoginAlert','liveShareOperation','_fetchMissChangesets','code','_doCreateSocket','method','\x20-\x20','_remoteChangesetQueue','fromCollab','_retryCount','onRemoteAck','socketService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','loginUrlKey','COMPRESS_MUTATION_SEND','isPermissionRej','localeService','_awaitingChangeset','size','range','_socketService','_localeService','textRanges','_applyRemoteChangeset','_incrementRevisionNumber','_resendWithTimeout','editing\x20status\x20changed\x20to','_roomMembers','uniscriptRunEvent','encodeURIComponent','unitId\x20is\x20not\x20found','onStarting','startsWith','getFocusedUnit','_updateStatus','_change$','_onUserJoin','src','_entityInit$','_createHandler','OTHER_CLIENT_EDITING','_collabSessionService','enableAuthServer','confirm','_commentService','People','/object/','debug','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_univerInstanceService','_emitMembers','unit-cache-','GLOBAL_ROOMS_CNT_EXCEEDS','getMemberID','snapshotServerUrl','members','_tryReconnect','url','_collaborationTimeoutTimer','SOCKET_FAILED','mutations','/universer-api/oidc/authpage','108684XtRzze','&to=','_pendingMutations','_socket','_sessionStatus$','getRoom','ONLINE','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','conflict','_collaborationPaused','_transformUndoredo','error','_isPermissionRej','FileId','_clearRedo','_compressMutationService','originalMeta','snapshot','3155gidWuW','init','_replaceFileID','create','members$','not_collab','_telemetryService','_sendHeartbeat','BASE64','_members$','entries','{fileID}','_unlockTransition','awaitingChangeset','JOIN_ROOM_PERMISSION_DENIED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','requireSession','state$','[UniverCollaborationClientPlugin]','_members','roomInfos','RETRY_CONNECTING_MAX_COUNT','Univer','_onConnectionFailed','_onRecvEvent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','setShowComponents','_snapshotService','/block/','loadOfflineData','onload','values','collaboration-client.config','transformUndoRedo','_substituteRedoStack','transformSelections','UPDATE_PERMISSION_OBJ','close$','getSheetBlock','_checkMissing','addHandlerCallback','min','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_getAPIPrefix','IDLE','_listenToNetworkCondition','[CollaborationSessionService]:\x20socket\x20error','updateSnapshot','sessionStatus','/fetchmissing?from=','collabSubmitChangesetUrl','_entities','map','encode','4743261TPJLKf','csAckEvent','setCfgEnableObjInherit','status$','AWAITING','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_onOffline','session.join-failed','baseRev','_clearLocalCache','_maxTotalRetryTimeout','createInstance','downloadEndpointUrl','_changesetSessionId','unsubscribe','_roomCreated$','getTime','session.room-full','origin','_onCombEvent','_createInitialState','609pRTmib','onCommentUpdate','JOIN_ROOM_FAILED','toggleOffline','offline','asObservable','CLOSE_ROOM','getCurrentUser','UnitEmbedded','SOCKET_FAILED_RETRY','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','&assign=','length','prototype','getUnitId','updateCursorEvent','JOIN','_getCtorByUniverType','FETCH_MISSING','find','_onRemoteRejected','pending','/universer-api/file/{fileID}/sign-url','UNIVER_SHEET','[OfflineState]:\x20received\x20changeset.','_clearRetryConnectingTimer','/role','COMPRESS_MUTATION_APPLY','saveImage','LIVESHARE_FETCH_OPERATIONS','_timeoutTimer','OPTIONAL','_redoStacks','AWAITING_WITH_PENDING','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','responseType','now','getLatestCsReqIdBySid','call','entityInit$','_getAPIPrefixPath','collaboratorID','_joinRoom','[OfflineState]:\x20received\x20acknowledgement.'];_0x286d=function(){return _0x288b0e;};return _0x286d();}function cn(_0x49232e,_0x30ed14){const _0x5a4d76=_0x215c00;let _0x15e12b=_0x30ed14-_0x49232e[_0x5a4d76(0x265)]%_0x30ed14;return _0x49232e+String['fromCharCode'](_0x15e12b)[_0x5a4d76(0xd7)](_0x15e12b);}function ln(_0x3c5390,_0x3e2a6f){const _0x9b2aa=_0x215c00;let _0x7fda4a=_0x548e69[_0x9b2aa(0x125)](0x10),_0x5335d0=cn(_0x3c5390,0x10),_0xf2d5fd=_0x394d2a['encrypt'](_0x470a56['parse'](_0x5335d0),_0x53f8e6[_0x9b2aa(0xf4)](_0x3e2a6f),{'iv':_0x7fda4a,'padding':_0x16a0dc});return _0x7fda4a[_0x9b2aa(0xbf)](_0xf2d5fd[_0x9b2aa(0x127)])[_0x9b2aa(0x324)](_0x53f8e6);}function un(){const _0x4d3359=_0x215c00;let _0xea808a=_0x33ee66()[_0x4d3359(0x2dd)];if(typeof window<'u'&&window[_0x4d3359(0x2a4)]!==void 0x0&&_0xea808a){let _0xa752f1={'time':Math[_0x4d3359(0x128)](Date[_0x4d3359(0x27d)]()/0x3e8),'domain':location['hostname']};return ln(JSON[_0x4d3359(0x15d)](_0xa752f1),_0xea808a);}}let dn=class{constructor(_0x2c52d1){const _0xec8b5f=_0x215c00;this[_0xec8b5f(0x2f4)]=_0x2c52d1,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x5a6087=_0x215c00;this[_0x5a6087(0x2f4)]['registerHTTPInterceptor']({'interceptor':(_0x3e45c6,_0x3a996d)=>{const _0x173b30=_0x5a6087;let _0xc25d2d=_0x3e45c6[_0x173b30(0x14f)],_0x5c4e5c=un();return _0x5c4e5c&&_0xc25d2d[_0x173b30(0x111)](_0x173b30(0x19d),_0x5c4e5c),_0x3a996d(_0x3e45c6);}});}};dn=L([I(0x0,_0x2b7fdf(_0x9333b9))],dn);let fn=class extends _0x1e78ef{constructor(_0x594d9e,_0x284b5f,_0xd71a04){const _0x459170=_0x215c00;super(),this[_0x459170(0x2c6)]=_0x594d9e,this[_0x459170(0x229)]=_0x284b5f,this[_0x459170(0x2b7)]=_0xd71a04,N(this,_0x459170(0x312),new _0x39a505(null)),N(this,_0x459170(0xb3),this[_0x459170(0x312)]['asObservable']());}async[_0x215c00(0x14b)](_0x5bfd7a,_0x469448,_0x5c7cf8){const _0x10bb2f=_0x215c00;this['_unitInfo$']['next']({'unitId':_0x5bfd7a,'type':_0x469448});let _0x4a5174=null;switch(_0x469448){case _0x2b168c[_0x10bb2f(0x270)]:_0x4a5174=await this[_0x10bb2f(0x229)][_0x10bb2f(0xcb)](_0x5bfd7a,_0x5c7cf8);break;case _0x2b168c[_0x10bb2f(0xf7)]:_0x4a5174=await this[_0x10bb2f(0x229)]['loadDoc'](_0x5bfd7a,_0x5c7cf8);break;default:this[_0x10bb2f(0x2c6)][_0x10bb2f(0x207)](_0x10bb2f(0x2d6),_0x10bb2f(0x263));break;}return _0x4a5174;}async[_0x215c00(0x2e9)](_0x348a11,_0x2a4aed,_0x5e0915){const _0x4e5aa8=_0x215c00;var _0xe5a99b;this[_0x4e5aa8(0x312)][_0x4e5aa8(0x2f0)]({'unitId':_0x348a11,'type':_0x2a4aed,'subUnitId':_0x5e0915});let _0x20b42a=0x0,_0x24ad71=await((_0xe5a99b=this[_0x4e5aa8(0x2b7)])==null?void 0x0:_0xe5a99b[_0x4e5aa8(0x22b)](_0x348a11));return _0x24ad71&&(_0x24ad71['awaitingChangeset']||_0x24ad71[_0x4e5aa8(0x1fa)]['length']!==0x0)&&(_0x20b42a=_0x24ad71[_0x4e5aa8(0x18e)]),_0x20b42a===0x0&&this[_0x4e5aa8(0x2c6)]['debug'](_0x4e5aa8(0x2d6),_0x4e5aa8(0x27b)),this[_0x4e5aa8(0x14b)](_0x348a11,_0x2a4aed,_0x20b42a);}};fn=L([I(0x0,_0x50b61b),I(0x1,_0x2b7fdf(_0x52e0ab)),I(0x2,_0x1b9758(B))],fn);const pn=['image/png',_0x215c00(0x2e6),'image/jpg',_0x215c00(0x2d0),_0x215c00(0x117)];let mn=class{constructor(_0x5d001d,_0x1b5c4c,_0x37b2cc){const _0xd51e2f=_0x215c00;this['_httpService']=_0x5d001d,this[_0xd51e2f(0x2d8)]=_0x1b5c4c,this[_0xd51e2f(0x1ef)]=_0x37b2cc,N(this,_0xd51e2f(0xd9),0x0),N(this,_0xd51e2f(0x1e1),new _0xc4bd15()),N(this,'change$',this[_0xd51e2f(0x1e1)]),N(this,'_imageSourceCache',new Map());}['setWaitCount'](_0x42ef81){const _0x3d384b=_0x215c00;this['_waitCount']=_0x42ef81,this[_0x3d384b(0x1e1)]['next'](_0x42ef81);}[_0x215c00(0x18d)](_0x1e0209,_0x530c69){const _0x239966=_0x215c00;if(_0x530c69===_0x11aa5f['BASE64']){let _0x336645=new Image();return _0x336645[_0x239966(0x1e3)]=_0x1e0209,_0x336645;}return this['_imageSourceCache'][_0x239966(0x2aa)](_0x1e0209);}['addImageSourceCache'](_0x3b5f0a,_0x40a0e6,_0x180031){const _0x9428b=_0x215c00;_0x40a0e6===_0x11aa5f[_0x9428b(0x216)]||_0x180031==null||this['_imageSourceCache']['set'](_0x3b5f0a,_0x180031);}async['getImage'](_0x2c1067){const _0x1e259f=_0x215c00;try{let _0x5d4c2a=this[_0x1e259f(0x210)](this['_getSignURL'](),''+_0x2c1067),_0xb1757a=(await this[_0x1e259f(0x2f4)]['get'](_0x5d4c2a))['body'];if(_0xb1757a[_0x1e259f(0x207)]&&_0xb1757a['error'][_0x1e259f(0x1c1)]===_0x165abf['OK']){let _0xcac7e3=_0x1e226e(_0xb1757a[_0x1e259f(0x1f7)],this[_0x1e259f(0x1b9)]());return Promise[_0x1e259f(0x18b)](_0xcac7e3);}return Promise[_0x1e259f(0x1a8)](_0xb1757a[_0x1e259f(0x207)]);}catch(_0x4113ef){return Promise[_0x1e259f(0x1a8)](_0x4113ef);}}async[_0x215c00(0x275)](_0x4f383b){const _0x488a11=_0x215c00;let _0x339420='';if(!pn[_0x488a11(0x315)](_0x4f383b[_0x488a11(0x2d4)]))return this[_0x488a11(0x2ad)](),Promise['reject'](Error(_0x55ee28[_0x488a11(0x2b1)]));if(_0x4f383b[_0x488a11(0x1d0)]>0x500000)return this[_0x488a11(0x2ad)](),Promise[_0x488a11(0x1a8)](Error(_0x55ee28[_0x488a11(0x13e)]));try{let _0x3ea87b=new FormData();_0x3ea87b['append'](_0x488a11(0x29f),_0x4f383b);let _0x23ae59=this[_0x488a11(0x1ef)][_0x488a11(0x1df)](),_0x511fd7=_0x23ae59==null?void 0x0:_0x23ae59[_0x488a11(0x267)]();if(!_0x511fd7)throw Error(_0x488a11(0x1dc));let _0x400d31=this[_0x488a11(0x16c)]()+_0x488a11(0x288)+_0x4f383b['size'][_0x488a11(0x324)]()+_0x488a11(0x303)+_0x49d065[_0x488a11(0x261)]+_0x488a11(0x264)+encodeURIComponent(_0x511fd7),_0x3277e6={'body':_0x3ea87b},_0x8661f8=(await this[_0x488a11(0x2f4)][_0x488a11(0x2ba)](_0x400d31,_0x3277e6))[_0x488a11(0x18a)];if(typeof _0x8661f8['FileId']!='string')return this['_decreaseWaiting'](),Promise[_0x488a11(0x1a8)](Error(_0x55ee28['ERROR_IMAGE']));_0x339420=_0x8661f8[_0x488a11(0x209)];}catch{return this['_decreaseWaiting'](),Promise[_0x488a11(0x1a8)](Error(_0x55ee28[_0x488a11(0xfd)]));}return new Promise((_0x38ce86,_0x1bbbaa)=>{const _0x5068b0=_0x488a11;let _0x5ee345=new FileReader();_0x5ee345['readAsDataURL'](_0x4f383b),_0x5ee345[_0x5068b0(0x22c)]=_0x455b7e=>{const _0x363336=_0x5068b0;var _0x2c89ca;let _0x52128d=(_0x2c89ca=_0x455b7e[_0x363336(0x2b5)])==null?void 0x0:_0x2c89ca['result'];if(_0x52128d==null){this[_0x363336(0x2ad)](),_0x1bbbaa(Error(_0x55ee28[_0x363336(0xfd)]));return;}_0x38ce86({'imageId':_0x251b91(0x6),'imageSourceType':_0x11aa5f['UUID'],'source':_0x339420,'base64Cache':_0x52128d,'status':_0x55ee28['SUCCUSS']}),this[_0x363336(0x2ad)]();};});}[_0x215c00(0x16c)](){const _0x4601e5=_0x215c00;var _0x4fff6a;let _0x32677b=this[_0x4601e5(0x2d8)]['getConfig'](H);return(_0x4fff6a=_0x32677b==null?void 0x0:_0x32677b['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x4fff6a;}[_0x215c00(0x2af)](){const _0x229062=_0x215c00;var _0x200c2d;let _0x264bf7=this['_configService'][_0x229062(0xb6)](H);return(_0x200c2d=_0x264bf7==null?void 0x0:_0x264bf7[_0x229062(0x192)])==null?_0x229062(0x26f):_0x200c2d;}['_getDownloadEndpointURL'](){const _0x113faa=_0x215c00;var _0x5bc7af;let _0x46b5c2=this[_0x113faa(0x2d8)][_0x113faa(0xb6)](H);return(_0x5bc7af=_0x46b5c2==null?void 0x0:_0x46b5c2[_0x113faa(0x250)])==null?location[_0x113faa(0x256)]:_0x5bc7af;}['_replaceFileID'](_0x5cde26,_0xdc1db7){const _0x31b32c=_0x215c00;return _0x5cde26[_0x31b32c(0x107)](_0x31b32c(0x219),_0xdc1db7);}['_decreaseWaiting'](){const _0x458622=_0x215c00;--this[_0x458622(0xd9)],this['_change$'][_0x458622(0x2f0)](this[_0x458622(0xd9)]);}};mn=L([I(0x0,_0x2b7fdf(_0x9333b9)),I(0x1,_0x3bb947),I(0x2,_0x2b7fdf(_0x3bf7a9))],mn);let hn=class{constructor(_0x1cf6cf,_0x5b33b7){const _0x1f4cc8=_0x215c00;this[_0x1f4cc8(0x2d8)]=_0x1cf6cf,this['_HTTPService']=_0x5b33b7;}[_0x215c00(0x281)](){const _0x4eb819=_0x215c00;var _0x41659d;let _0x5d0aa6=this['_configService'][_0x4eb819(0xb6)](H);return(_0x41659d=_0x5d0aa6==null?void 0x0:_0x5d0aa6[_0x4eb819(0x2c8)])==null?'/universer-api/authz':_0x41659d;}async[_0x215c00(0xe2)](_0x2f901f){const _0x39f530=_0x215c00;let _0x20b91d=this['_getAPIPrefixPath']()+'/collaborator';return{'list':[{'title':_0x39f530(0x1eb),'mentions':(await this[_0x39f530(0xcd)]['get'](_0x20b91d,{'params':{'objectID':_0x2f901f[_0x39f530(0x2a3)],'unitID':_0x2f901f[_0x39f530(0x2a3)]}}))['body']['collaborators']['map'](_0x1d7db7=>({'objectId':_0x1d7db7['id'],'name':_0x1d7db7[_0x39f530(0x131)][_0x39f530(0x2d2)],'metadata':{'icon':_0x1d7db7[_0x39f530(0x131)][_0x39f530(0x150)]},'label':_0x1d7db7['subject'][_0x39f530(0x2d2)],'objectType':_0x274070[_0x39f530(0x2e7)]})),'metadata':{},'type':_0x274070[_0x39f530(0x2e7)]}]};}};hn=L([I(0x0,_0x2b7fdf(_0x3bb947)),I(0x1,_0x2b7fdf(_0x9333b9))],hn);let gn=class extends _0x1e78ef{constructor(_0x1405dd,_0x3680c1,_0x2ee570,_0x2e4833,_0x4c8a76){const _0x1899f0=_0x215c00;super(),this[_0x1899f0(0x1ba)]=_0x1405dd,this['_univerInstanceService']=_0x3680c1,this[_0x1899f0(0xda)]=_0x2ee570,this[_0x1899f0(0x1bc)]=_0x2e4833,this[_0x1899f0(0x2b8)]=_0x4c8a76,this[_0x1899f0(0x10e)](),this[_0x1899f0(0x149)]();}[_0x215c00(0x149)](){const _0x59ce1e=_0x215c00;let _0x194017=async _0x3feebb=>{const _0x36f46a=_0x184e;(await this[_0x36f46a(0x1bc)]['requireSession'](_0x3feebb))[_0x36f46a(0x177)]['pipe'](_0x266152(_0x168fae=>_0x168fae['eventID']===_0x1651b4[_0x36f46a(0x310)]),_0x2e8a4b(this[_0x36f46a(0x168)]))[_0x36f46a(0x120)](_0x2b77fb=>{const _0x1b6e8e=_0x36f46a;let {reason:_0x4dd578}=_0x2b77fb[_0x1b6e8e(0x327)];this['_collaborationUIEventService'][_0x1b6e8e(0x160)]({'id':P[_0x1b6e8e(0x25f)],'data':_0x4dd578}),this[_0x1b6e8e(0xda)]['updatePermissionPoint'](new _0x44218c(_0x3feebb)['id'],!0x1),this[_0x1b6e8e(0x1bc)][_0x1b6e8e(0x31c)](_0x3feebb);});};_0x4aaad5(this[_0x59ce1e(0x1ef)][_0x59ce1e(0x2b4)](_0x996087[_0x59ce1e(0x270)]),this[_0x59ce1e(0x1ef)][_0x59ce1e(0x2b4)](_0x996087[_0x59ce1e(0xf7)]))['pipe'](_0x17b213(_0x496039=>_0x496039['getUnitId']()),_0x266152(_0x4708fb=>!_0x5d658e(_0x4708fb)),_0x2e8a4b(this[_0x59ce1e(0x168)]))[_0x59ce1e(0x120)](_0x3728ba=>{_0x194017(_0x3728ba);});}[_0x215c00(0x10e)](){const _0x132724=_0x215c00;let _0x3d3140=async _0x58de93=>{const _0x16429e=_0x184e;let _0x1cf944=await this[_0x16429e(0x1bc)][_0x16429e(0x21e)](_0x58de93),_0x4b8d45=this[_0x16429e(0x1ba)][_0x16429e(0x2aa)](_0x8bf2b4);_0x1cf944[_0x16429e(0x177)][_0x16429e(0x145)](_0x266152(_0x1325a8=>_0x1325a8[_0x16429e(0x134)]===_0x1651b4[_0x16429e(0x232)]),_0x2e8a4b(this[_0x16429e(0x168)]))[_0x16429e(0x120)](_0x22a25a=>{const _0x1695bc=_0x16429e;let {objectId:_0x5f337b}=_0x22a25a['data'];_0x5f337b===_0x58de93?_0x4b8d45[_0x1695bc(0x2b9)](_0x58de93):_0x4b8d45[_0x1695bc(0x1a9)](_0x58de93,_0x5f337b);});};_0x4aaad5(this[_0x132724(0x1ef)][_0x132724(0x2b4)](_0x996087[_0x132724(0x270)]))[_0x132724(0x145)](_0x17b213(_0x6e4789=>_0x6e4789[_0x132724(0x267)]()),_0x266152(_0x2fed1d=>!_0x5d658e(_0x2fed1d)),_0x2e8a4b(this[_0x132724(0x168)]))[_0x132724(0x120)](_0x458999=>{_0x3d3140(_0x458999);});}};gn=L([I(0x0,_0x2b7fdf(_0x54f16c)),I(0x1,_0x3bf7a9),I(0x2,_0x31cc51),I(0x3,_0x2b7fdf(Q)),I(0x4,_0x2b7fdf(F))],gn);let _n=class{constructor(_0x3be95e,_0x21f548){const _0x3234b7=_0x215c00;this[_0x3234b7(0x2d8)]=_0x3be95e,this[_0x3234b7(0x2f4)]=_0x21f548;}async[_0x215c00(0x2bc)](_0x24fd75,_0x2949c7){const _0x35293f=_0x215c00;var _0x27cb92;let {unitID:_0x283466,type:_0x1ddd83,revision:_0x3636b7=0x0}=_0x2949c7,_0x4a29ee=this[_0x35293f(0x189)]()+'/'+_0x1ddd83+_0x35293f(0x144)+_0x283466+'/rev/'+_0x3636b7,_0x2e9819=(await this['_httpService'][_0x35293f(0x2aa)](_0x4a29ee))[_0x35293f(0x18a)],_0x5ee777=(_0x27cb92=_0x2e9819[_0x35293f(0x20d)])==null?void 0x0:_0x27cb92['workbook'];if(_0x5ee777){let _0x14ab1f=_0x5ee777==null?void 0x0:_0x5ee777[_0x35293f(0x20c)];_0x5ee777[_0x35293f(0x20c)]=_0x166a27[_0x35293f(0x243)](_0x47ffcd(_0x14ab1f)),Object[_0x35293f(0x218)](_0x5ee777['sheets'])[_0x35293f(0xc9)](([,_0x25bf89])=>{const _0x1beac0=_0x35293f;let _0x1dd5d0=_0x25bf89[_0x1beac0(0x20c)];_0x25bf89[_0x1beac0(0x20c)]=_0x166a27['encode'](_0x47ffcd(_0x1dd5d0));});}return _0x2e9819;}async[_0x215c00(0x234)](_0x2df4b1,_0x1eb140){const _0x43966f=_0x215c00;let {unitID:_0x14ff68,type:_0x286b40,blockID:_0x2a9240}=_0x1eb140,_0x45b160=this[_0x43966f(0x239)]()+'/'+_0x286b40+'/unit/'+_0x14ff68+'/block/'+_0x2a9240;return(await this[_0x43966f(0x2f4)][_0x43966f(0x2aa)](_0x45b160))[_0x43966f(0x18a)];}async['getDeserializedSheetBlock'](_0x2dd121,_0x687e58){const _0x147eee=_0x215c00;let {unitID:_0xa0f8a4,type:_0x519c83,blockID:_0x3094e6}=_0x687e58,_0xa35352=this['_getAPIPrefix']()+_0x147eee(0x22a)+_0x519c83+_0x147eee(0x144)+_0xa0f8a4+_0x147eee(0x22a)+_0x3094e6;return(await this[_0x147eee(0x2f4)][_0x147eee(0x2aa)](_0xa35352))[_0x147eee(0x18a)];}async['fetchMissingChangesets'](_0x3d7d49,_0x2b8b6f){const _0x2d9409=_0x215c00;let {unitID:_0x31664b,type:_0x5e6336,from:_0x4232bb,to:_0x1e8245}=_0x2b8b6f,_0x20f572=this[_0x2d9409(0x239)]()+'/'+_0x5e6336+'/unit/'+_0x31664b+_0x2d9409(0x23f)+_0x4232bb+_0x2d9409(0x1fd)+_0x1e8245;return(await this['_httpService'][_0x2d9409(0x2aa)](_0x20f572))[_0x2d9409(0x18a)];}[_0x215c00(0x189)](){const _0xe15f32=_0x215c00;var _0x5478b5;return(_0x5478b5=this[_0xe15f32(0x2d8)][_0xe15f32(0xb6)]('SNAPSHOT_URL_KEY'))==null?this['_getAPIPrefix']():_0x5478b5;}[_0x215c00(0x239)](){const _0xac8b82=_0x215c00;var _0xc48f3;let _0x2556ea=this['_configService'][_0xac8b82(0xb6)](H);return(_0xc48f3=_0x2556ea==null?void 0x0:_0x2556ea[_0xac8b82(0x1f4)])==null?_0xac8b82(0x175):_0xc48f3;}async['getResourcesRequest'](_0x58a429,_0x5b7cfd){const _0x50ddd4=_0x215c00;let _0x414eca=_0x50ddd4(0xe0)+_0x5b7cfd['type']+_0x50ddd4(0x144)+_0x5b7cfd[_0x50ddd4(0x100)]+_0x50ddd4(0x2ce);return(await this[_0x50ddd4(0x2f4)]['get'](_0x414eca,{'params':{'resourceId':JSON[_0x50ddd4(0x15d)](_0x5b7cfd[_0x50ddd4(0xb4)])}}))[_0x50ddd4(0x18a)];}[_0x215c00(0xc7)](){const _0x3f8544=_0x215c00;throw Error(_0x3f8544(0x18f));}[_0x215c00(0x23d)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x215c00(0xd4)](){const _0x3b46ba=_0x215c00;throw Error(_0x3b46ba(0x18f));}[_0x215c00(0x2a5)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x215c00(0x323)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x215c00(0x27e)](){const _0x39843c=_0x215c00;throw Error(_0x39843c(0x18f));}};_n=L([I(0x0,_0x3bb947),I(0x1,_0x2b7fdf(_0x9333b9))],_n);let vn=class extends _0x1d7d6e{constructor(_0xe7e99b,_0x51ce10,_0x2e4147,_0x2aa814,_0x248fdc){const _0xfb866a=_0x215c00;super(_0xe7e99b,_0x51ce10,_0x2e4147),this['_transformService']=_0x2aa814,this[_0xfb866a(0x2c6)]=_0x248fdc;}[_0x215c00(0x22f)](_0x976ed1,_0x17c88d){const _0x1880ee=_0x215c00;let _0x5100c1=this[_0x1880ee(0x328)](_0x976ed1);if(_0x5100c1)try{let _0x5ba31c=this[_0x1880ee(0x300)](_0x5100c1,_0x17c88d);this[_0x1880ee(0x165)](_0x976ed1,_0x5ba31c);}catch(_0x353468){this[_0x1880ee(0x2c6)][_0x1880ee(0x207)](_0x1880ee(0x301),_0x353468),this[_0x1880ee(0xf2)](_0x976ed1);}let _0x5c8eec=this[_0x1880ee(0x1a2)](_0x976ed1);if(_0x5c8eec)try{let _0x3f0284=this[_0x1880ee(0x300)](_0x5c8eec,_0x17c88d);this[_0x1880ee(0x230)](_0x976ed1,_0x3f0284);}catch(_0x1b830f){this[_0x1880ee(0x2c6)][_0x1880ee(0x207)](_0x1b830f),this['_clearRedo'](_0x976ed1);}}[_0x215c00(0xf2)](_0x3ef1fc){const _0x56d0be=_0x215c00;let _0x31bad4=this[_0x56d0be(0x328)](_0x3ef1fc);_0x31bad4&&(_0x31bad4[_0x56d0be(0x265)]=0x0,this[_0x56d0be(0x1e0)]());}[_0x215c00(0x20a)](_0x1d177a){const _0x49066f=_0x215c00;let _0xf0dfc8=this[_0x49066f(0x1a2)](_0x1d177a);_0xf0dfc8&&(_0xf0dfc8[_0x49066f(0x265)]=0x0,this[_0x49066f(0x1e0)]());}[_0x215c00(0x165)](_0xe2f82f,_0x4dbc2f){const _0x59c6d5=_0x215c00;this[_0x59c6d5(0x1a1)]['set'](_0xe2f82f,_0x4dbc2f),this[_0x59c6d5(0x1e0)]();}[_0x215c00(0x230)](_0x4e3c6b,_0x2c1756){const _0x3b018d=_0x215c00;this[_0x3b018d(0x279)][_0x3b018d(0x111)](_0x4e3c6b,_0x2c1756),this[_0x3b018d(0x1e0)]();}[_0x215c00(0x300)](_0x4a3949,_0x3b91a8){const _0x44d800=_0x215c00;let _0x5b501c=[],_0x269450=_0x3b91a8,_0x4b5c1f=_0x3b91a8;for(let _0x4d7f20=_0x4a3949[_0x44d800(0x265)]-0x1;_0x4d7f20>=0x0;_0x4d7f20--){let {unitID:_0x1d2795,undoMutations:_0x53599f,redoMutations:_0x253f5e}=_0x4a3949[_0x4d7f20],_0x312ac4=this['_transformService'][_0x44d800(0xd6)](_0x269450,_0x53599f),_0x17d753=this[_0x44d800(0x119)][_0x44d800(0xd6)](_0x4b5c1f,_0x253f5e);if(_0x4ee0a0(_0x312ac4)||_0x4ee0a0(_0x17d753)){this[_0x44d800(0x2c6)][_0x44d800(0x207)](_0x44d800(0x301),_0x44d800(0x14d),_0x312ac4,_0x17d753);break;}_0x269450=_0x312ac4['c1Prime'],_0x4b5c1f=_0x17d753[_0x44d800(0x174)],_0x5b501c['push']({'unitID':_0x1d2795,'undoMutations':_0x312ac4['m2Prime'],'redoMutations':_0x17d753[_0x44d800(0x152)]});}return _0x5b501c[_0x44d800(0x143)]();}};vn=L([I(0x0,_0x3bf7a9),I(0x1,_0xd98a3d),I(0x2,_0x517331),I(0x3,_0x20b3b0),I(0x4,_0x50b61b)],vn);let $=class extends _0x38c1ef{constructor(_0x2ef931={},_0x5cd0c3,_0x1690c0,_0x58ac68){const _0x12ac91=_0x215c00;super(),this[_0x12ac91(0x2b0)]=_0x2ef931,this[_0x12ac91(0x2c6)]=_0x5cd0c3,this[_0x12ac91(0x1ba)]=_0x1690c0,this[_0x12ac91(0x2d8)]=_0x58ac68;let {..._0x26ce6a}=_0x36b3c5({},Pt,_0x2ef931);if(!_0x26ce6a['socketService'])throw Error(_0x12ac91(0x2a6));this['_config']=_0x26ce6a,this[_0x12ac91(0x2d8)][_0x12ac91(0x116)](H,_0x26ce6a);}[_0x215c00(0x1dd)](){const _0x48aca4=_0x215c00;this[_0x48aca4(0xe3)](),this[_0x48aca4(0x179)]();}[_0x215c00(0xe3)](){const _0x213535=_0x215c00;var _0xadde3c,_0x54cbdc;this[_0x213535(0x1ba)]['has'](_0x52ad9b)&&this[_0x213535(0x2c6)][_0x213535(0x207)](_0x213535(0x220),_0x213535(0x249));let _0x1f0339=_0x106aa9([[_0x52ad9b,{'useClass':vn}],[Q],[R],[V],[on],[dn],[Et],[gn],[F],[fn],[Qt,{'useClass':this['_config'][_0x213535(0x1c9)]}],[_0x526e15,{'useClass':_n}],[_0x281200,{'useClass':sn}],[_0x36ac65,{'useClass':mn}],[_0x55903a,{'useClass':hn}],[tn],[an]],(_0xadde3c=this[_0x213535(0x2b0)])==null?void 0x0:_0xadde3c[_0x213535(0x154)]);if(!((_0x54cbdc=this['_config'])!=null&&_0x54cbdc[_0x213535(0x1ac)])){let _0x4d9adc=_0x1f0339[_0x213535(0xe8)](([_0x10616f])=>_0x10616f===Mt);_0x4d9adc!==-0x1&&_0x1f0339[_0x213535(0xec)](_0x4d9adc,0x1);}_0x168d3c(this[_0x213535(0x1ba)],_0x1f0339);}['_initDependencies'](){const _0x2c11ca=_0x215c00;var _0x41405e,_0x3f7f52;if(this[_0x2c11ca(0x1ba)]['get'](_0x9333b9)[_0x2c11ca(0xb2)]({'priority':0x14,'interceptor':_0x5aacdc({'maxParallel':0x6})}),!((_0x41405e=this[_0x2c11ca(0x2b0)])!=null&&_0x41405e[_0x2c11ca(0x19b)])){var _0x7b2c43;(_0x7b2c43=this[_0x2c11ca(0x1ba)][_0x2c11ca(0x2aa)](B,_0x4dbff7[_0x2c11ca(0x278)]))==null||_0x7b2c43[_0x2c11ca(0xc6)]();}(_0x3f7f52=this['_config'])!=null&&_0x3f7f52[_0x2c11ca(0x1e8)]&&_0x4ce7f8(this['_injector'],[[on]]),_0x4ce7f8(this[_0x2c11ca(0x1ba)],[[dn],[tn],[gn]]);}};N($,'pluginName','UNIVER_COLLABORATION_CLIENT_PLUGIN'),N($,_0x215c00(0x2d3),nn),N($,_0x215c00(0x112),rn),$=L([_0x178b1a(_0x3bba05,_0x52dd1d,_0x2729ef),I(0x1,_0x50b61b),I(0x2,_0x2b7fdf(_0x54f16c)),I(0x3,_0x3bb947)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,H as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,kt as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,U as CollaborationStatus,P as CollaborationUIEventId,F as CollaborationUIEventService,vn as CollaborativeUndoRedoService,Et as CommentService,Y as ConflictState,ft as DEFAULT_COLLAB_WEB_SOCKET_URL,xt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,pt as DEFAULT_WS_SESSION_TICKET_URL,fn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,mt as HEARTBEAT_INTERVAL_KEY,ht as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,B as ILocalCacheService,Yt as INetworkConditionService,Mt as ISingleActiveUnitService,yt as LOCAL_CACHE_INTERVAL,vt as LOCAL_CACHE_INTERVAL_KEY,R as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,bt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,_t as RETRY_CONNECTING_MAX_COUNT_KEY,z as SessionStatus,Jt as SheetCollaborationEntity,V as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Nt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,At as getLocalCacheKey,Zt as serializeCombRequest};
|