@univerjs-pro/collaboration-client 0.5.5-experimental.20250123-34738ff → 0.5.5-experimental.20250124-fc44c59

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/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x4eebac=_0x5570;(function(_0x86bd3c,_0x373d7d){var _0x48743d=_0x5570,_0x1f742e=_0x86bd3c();while(!![]){try{var _0x253dc2=-parseInt(_0x48743d(0x20e))/0x1+-parseInt(_0x48743d(0x14f))/0x2*(-parseInt(_0x48743d(0x388))/0x3)+-parseInt(_0x48743d(0x34a))/0x4*(-parseInt(_0x48743d(0x372))/0x5)+-parseInt(_0x48743d(0x2a6))/0x6*(parseInt(_0x48743d(0x278))/0x7)+parseInt(_0x48743d(0x369))/0x8+-parseInt(_0x48743d(0x19d))/0x9*(-parseInt(_0x48743d(0x146))/0xa)+-parseInt(_0x48743d(0x18a))/0xb*(parseInt(_0x48743d(0x381))/0xc);if(_0x253dc2===_0x373d7d)break;else _0x1f742e['push'](_0x1f742e['shift']());}catch(_0x4722be){_0x1f742e['push'](_0x1f742e['shift']());}}}(_0x2476,0x4feac));var __defProp=Object[_0x4eebac(0x18f)],__defNormalProp=(_0x546ec6,_0x58f7cf,_0x18136e)=>_0x58f7cf in _0x546ec6?__defProp(_0x546ec6,_0x58f7cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18136e}):_0x546ec6[_0x58f7cf]=_0x18136e,__name=(_0x492383,_0x23273a)=>__defProp(_0x492383,'name',{'value':_0x23273a,'configurable':!0x0}),__publicField=(_0x29a2ed,_0xd9abd8,_0x18a3de)=>__defNormalProp(_0x29a2ed,typeof _0xd9abd8!=_0x4eebac(0x3a6)?_0xd9abd8+'':_0xd9abd8,_0x18a3de);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0x3db844,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x3e406a,map as _0x274555,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x42afd6}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY=_0x4eebac(0x3d6),DEFAULT_SNAPSHOT_SERVER_URL=_0x4eebac(0x346),SNAPSHOT_URL_KEY=_0x4eebac(0x257),SEND_CHANGESET_TIMEOUT_KEY=_0x4eebac(0x3d4),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x4eebac(0x111),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x4eebac(0x181),DEFAULT_WS_SESSION_TICKET_URL=_0x4eebac(0x298),HEARTBEAT_INTERVAL_KEY='HEARTBEAT_INTERVAL',DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY='HEARTBEAT_TIMEOUT',DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0x4eebac(0x37e),DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY='LOCAL_CACHE_INTERVAL',LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY=_0x4eebac(0x39b),DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x4eebac(0x12a),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x4eebac(0x3a0),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x4eebac(0x269);var ErrorCode=(_0x465a7f=>(_0x465a7f[_0x465a7f[_0x4eebac(0x41e)]=0x0]=_0x4eebac(0x41e),_0x465a7f[_0x465a7f['OK']=0x1]='OK',_0x465a7f[_0x465a7f[_0x4eebac(0x164)]=0x2]=_0x4eebac(0x164),_0x465a7f[_0x465a7f[_0x4eebac(0x3fd)]=0x3]=_0x4eebac(0x3fd),_0x465a7f[_0x465a7f[_0x4eebac(0x1d8)]=0x4]=_0x4eebac(0x1d8),_0x465a7f[_0x465a7f[_0x4eebac(0x1ff)]=0x5]=_0x4eebac(0x1ff),_0x465a7f[_0x465a7f[_0x4eebac(0x342)]=0x6]='ALREADY_EXISTS',_0x465a7f[_0x465a7f['INVALID_ARGUMENT']=0x7]=_0x4eebac(0x400),_0x465a7f[_0x465a7f[_0x4eebac(0x3c5)]=0x8]='TOO_MANY_REQUESTS',_0x465a7f[_0x465a7f['COMPLETION_FINISHED']=0x9]=_0x4eebac(0x350),_0x465a7f[_0x465a7f[_0x4eebac(0x1da)]=0x1389]=_0x4eebac(0x1da),_0x465a7f[_0x465a7f[_0x4eebac(0x1de)]=0x1771]=_0x4eebac(0x1de),_0x465a7f[_0x465a7f['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4eebac(0x409),_0x465a7f[_0x465a7f[_0x4eebac(0x162)]=0x1773]=_0x4eebac(0x162),_0x465a7f[_0x465a7f[_0x4eebac(0x3e8)]=0x1b59]=_0x4eebac(0x3e8),_0x465a7f[_0x465a7f[_0x4eebac(0x1dc)]=0x1b5a]=_0x4eebac(0x1dc),_0x465a7f[_0x465a7f[_0x4eebac(0xff)]=0x1b5b]=_0x4eebac(0xff),_0x465a7f[_0x465a7f['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x465a7f[_0x465a7f[_0x4eebac(0x29b)]=0x1b5d]=_0x4eebac(0x29b),_0x465a7f[_0x465a7f[_0x4eebac(0x27d)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x465a7f[_0x465a7f['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4eebac(0x444),_0x465a7f[_0x465a7f[_0x4eebac(0x23c)]=0x232a]=_0x4eebac(0x23c),_0x465a7f[_0x465a7f[_0x4eebac(0x112)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x465a7f[_0x465a7f[_0x4eebac(0x11b)]=0x232c]=_0x4eebac(0x11b),_0x465a7f[_0x465a7f[_0x4eebac(0x172)]=0x232d]=_0x4eebac(0x172),_0x465a7f[_0x465a7f['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4eebac(0x431),_0x465a7f[_0x465a7f[_0x4eebac(0x14b)]=0x2712]=_0x4eebac(0x14b),_0x465a7f[_0x465a7f[_0x4eebac(0x3be)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x465a7f[_0x465a7f[_0x4eebac(0x248)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x465a7f[_0x465a7f[_0x4eebac(0x208)]=0x2af9]=_0x4eebac(0x208),_0x465a7f[_0x465a7f[_0x4eebac(0x1fa)]=-0x1]='UNRECOGNIZED',_0x465a7f))(ErrorCode||{}),UniverType=(_0x2027eb=>(_0x2027eb[_0x2027eb[_0x4eebac(0x1a4)]=0x0]=_0x4eebac(0x1a4),_0x2027eb[_0x2027eb['UNIVER_DOC']=0x1]=_0x4eebac(0x420),_0x2027eb[_0x2027eb[_0x4eebac(0x435)]=0x2]='UNIVER_SHEET',_0x2027eb[_0x2027eb[_0x4eebac(0x32b)]=0x3]=_0x4eebac(0x32b),_0x2027eb[_0x2027eb[_0x4eebac(0x348)]=0x4]='UNIVER_PROJECT',_0x2027eb[_0x2027eb[_0x4eebac(0x1fa)]=-0x1]=_0x4eebac(0x1fa),_0x2027eb))(UniverType||{}),CombCmd=(_0x10078b=>(_0x10078b[_0x10078b['UNKNOWN_CMD']=0x0]=_0x4eebac(0x270),_0x10078b[_0x10078b['HELLO']=0x1]=_0x4eebac(0x11f),_0x10078b[_0x10078b[_0x4eebac(0x241)]=0x2]=_0x4eebac(0x241),_0x10078b[_0x10078b[_0x4eebac(0x316)]=0x3]='LEAVE',_0x10078b[_0x10078b[_0x4eebac(0x16a)]=0x4]=_0x4eebac(0x16a),_0x10078b[_0x10078b[_0x4eebac(0x2f2)]=0x5]=_0x4eebac(0x2f2),_0x10078b[_0x10078b[_0x4eebac(0x379)]=0x6]=_0x4eebac(0x379),_0x10078b[_0x10078b['UNRECOGNIZED']=-0x1]=_0x4eebac(0x1fa),_0x10078b))(CombCmd||{}),CmdRspCode=(_0x1afca5=>(_0x1afca5[_0x1afca5[_0x4eebac(0x302)]=0x0]=_0x4eebac(0x302),_0x1afca5[_0x1afca5['OK']=0x1]='OK',_0x1afca5[_0x1afca5['FAIL']=0x2]='FAIL',_0x1afca5[_0x1afca5[_0x4eebac(0x125)]=0x3e9]='JOIN_ROOM_FULL',_0x1afca5[_0x1afca5[_0x4eebac(0x399)]=0x3ea]=_0x4eebac(0x399),_0x1afca5[_0x1afca5[_0x4eebac(0x3e4)]=0x3eb]=_0x4eebac(0x3e4),_0x1afca5[_0x1afca5[_0x4eebac(0x15c)]=0x3ec]=_0x4eebac(0x15c),_0x1afca5[_0x1afca5['UNRECOGNIZED']=-0x1]=_0x4eebac(0x1fa),_0x1afca5))(CmdRspCode||{}),FileSource=(_0xe39469=>(_0xe39469[_0xe39469[_0x4eebac(0x2aa)]=0x0]=_0x4eebac(0x2aa),_0xe39469[_0xe39469[_0x4eebac(0x1bb)]=0x1]=_0x4eebac(0x1bb),_0xe39469[_0xe39469[_0x4eebac(0x3c2)]=0x2]='HttpExport',_0xe39469[_0xe39469['UnitEmbedded']=0x3]=_0x4eebac(0x286),_0xe39469[_0xe39469['UnitSnapshot']=0x4]=_0x4eebac(0x2dd),_0xe39469[_0xe39469[_0x4eebac(0x1fa)]=-0x1]=_0x4eebac(0x1fa),_0xe39469))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x4eebac(0x1a3),defaultPluginConfig={};var CollaborationUIEventId=(_0x2755b2=>(_0x2755b2[_0x4eebac(0x43b)]=_0x4eebac(0x43b),_0x2755b2[_0x4eebac(0x3fd)]=_0x4eebac(0x3fd),_0x2755b2[_0x4eebac(0x1d0)]=_0x4eebac(0x1d0),_0x2755b2[_0x4eebac(0x365)]=_0x4eebac(0x365),_0x2755b2['JOIN_ROOM_FAILED']=_0x4eebac(0x200),_0x2755b2[_0x4eebac(0x2c0)]=_0x4eebac(0x2c0),_0x2755b2['SOCKET_FAILED']=_0x4eebac(0x1a8),_0x2755b2[_0x4eebac(0x319)]=_0x4eebac(0x319),_0x2755b2))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x2e39e7=_0x4eebac;__publicField(this,_0x2e39e7(0x1f9),new Subject()),__publicField(this,_0x2e39e7(0x368),this['_event$'][_0x2e39e7(0x39c)]());}[_0x4eebac(0x414)](_0x3d2b71){var _0x20e629=_0x4eebac;this[_0x20e629(0x1f9)][_0x20e629(0x225)](_0x3d2b71);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x4eebac(0x1fc));function deserializeToCombResponse(_0x5559af){var _0x177db6=_0x4eebac,_0x392c13,_0x32119a,_0x36f0d2,_0x3a89ee,_0x41b197;const _0x539374=_0x5559af[_0x177db6(0x142)],_0x281878=JSON['parse'](_0x539374);switch(_0x281878[_0x177db6(0x3a4)]){case CombCmd[_0x177db6(0x2f2)]:case CombCmd[_0x177db6(0x11f)]:{const _0x376cf7=_0x281878['infoRsp'];return{..._0x281878,'data':_0x376cf7,'cmd':_0x281878[_0x177db6(0x3a4)]};}case CombCmd[_0x177db6(0x241)]:{const _0x1b8fa9=_0x281878['joinRsp'];return{..._0x281878,'data':_0x1b8fa9,'cmd':_0x281878[_0x177db6(0x3a4)]};}case CombCmd[_0x177db6(0x379)]:{const _0x4ef4aa=_0x281878['collaMsg'];switch(_0x4ef4aa[_0x177db6(0x315)]){case CollaborationEvent[_0x177db6(0x204)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x392c13=_0x4ef4aa[_0x177db6(0x119)])==null?void 0x0:_0x392c13['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x271)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x32119a=_0x4ef4aa['csAckEvent'])==null?void 0x0:_0x32119a['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x416)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x36f0d2=_0x4ef4aa[_0x177db6(0x122)])==null?void 0x0:_0x36f0d2['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x3f0)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x3a89ee=_0x4ef4aa[_0x177db6(0x277)])==null?void 0x0:_0x3a89ee['cs']},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x38f)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':(_0x41b197=_0x4ef4aa[_0x177db6(0x31b)])==null?void 0x0:_0x41b197['cs']},'cmd':_0x281878['cmd']};case CollaborationEvent['UPDATE_CURSOR']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x183)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent['USERS_ENTER']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x117)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent['USERS_LEAVE']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x2e2)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x312)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x3bc)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x441)]:case CollaborationEvent[_0x177db6(0x11e)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x43e)]},'cmd':_0x281878['cmd']};case CollaborationEvent[_0x177db6(0x327)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x3bc)]},'cmd':_0x281878['cmd']};case CollaborationEvent[_0x177db6(0x3a8)]:return{..._0x281878,'data':_0x4ef4aa,'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x26a)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x1aa)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent['UPDATE_PERMISSION_OBJ']:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x173)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x1a0)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x29a)]},'cmd':_0x281878[_0x177db6(0x3a4)]};case CollaborationEvent[_0x177db6(0x25c)]:return{..._0x281878,'data':{..._0x4ef4aa,'data':_0x4ef4aa[_0x177db6(0x247)]},'cmd':_0x281878[_0x177db6(0x3a4)]};default:return _0x281878;}}default:return _0x281878;}}__name(deserializeToCombResponse,_0x4eebac(0x2fe));function serializeCombRequest(_0x162fa6){var _0x5e726f=_0x4eebac;switch(_0x162fa6['cmd']){case CombCmd[_0x5e726f(0x2f2)]:case CombCmd[_0x5e726f(0x11f)]:return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6[_0x5e726f(0x3a4)],'routeKey':_0x162fa6[_0x5e726f(0x194)]});case CombCmd[_0x5e726f(0x16a)]:{let _0x1e7ff2;switch(_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x315)]){case CollaborationEvent[_0x5e726f(0x234)]:{_0x1e7ff2={'eventID':CollaborationEvent['UPDATE_CURSOR'],'updateCursorEvent':_0x162fa6['data'][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x374)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x374)],'leaveEvent':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x35d)]:{_0x1e7ff2={'eventID':CollaborationEvent['USERS_ENTER'],'joinEvent':_0x162fa6[_0x5e726f(0x142)]['data']};break;}case CollaborationEvent[_0x5e726f(0x312)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x312)],'liveShareNewHost':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x11e)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x11e)],'liveShareOperation':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x327)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x327)],'liveShareTerminate':_0x162fa6[_0x5e726f(0x142)][_0x5e726f(0x142)]};break;}case CollaborationEvent[_0x5e726f(0x377)]:{_0x1e7ff2={'eventID':CollaborationEvent['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x162fa6[_0x5e726f(0x142)]['data']};break;}case CollaborationEvent[_0x5e726f(0x441)]:{_0x1e7ff2={'eventID':CollaborationEvent[_0x5e726f(0x441)]};break;}default:_0x1e7ff2={'eventID':_0x162fa6['data']['eventID']};}return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6['cmd'],'routeKey':_0x162fa6['routeKey'],'collaMsg':_0x1e7ff2});}case CombCmd['JOIN']:return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6[_0x5e726f(0x3a4)],'routeKey':_0x162fa6[_0x5e726f(0x194)],'joinReq':_0x162fa6['data']});case CombCmd[_0x5e726f(0x316)]:return JSON[_0x5e726f(0x42b)]({'cmd':_0x162fa6['cmd'],'routeKey':_0x162fa6[_0x5e726f(0x194)],'leaveReq':_0x162fa6[_0x5e726f(0x142)]});default:throw new Error(_0x5e726f(0x2b8));}}__name(serializeCombRequest,'serializeCombRequest');var __defProp$i=Object[_0x4eebac(0x18f)],__getOwnPropDesc$i=Object[_0x4eebac(0x2a7)],__decorateClass$i=__name((_0x6fc6e0,_0x313856,_0xd946e0,_0x1771d6)=>{var _0x10c55d=_0x4eebac;for(var _0x4e4b49=_0x1771d6>0x1?void 0x0:_0x1771d6?__getOwnPropDesc$i(_0x313856,_0xd946e0):_0x313856,_0x14c846=_0x6fc6e0[_0x10c55d(0x25b)]-0x1,_0x418247;_0x14c846>=0x0;_0x14c846--)(_0x418247=_0x6fc6e0[_0x14c846])&&(_0x4e4b49=(_0x1771d6?_0x418247(_0x313856,_0xd946e0,_0x4e4b49):_0x418247(_0x4e4b49))||_0x4e4b49);return _0x1771d6&&_0x4e4b49&&__defProp$i(_0x313856,_0xd946e0,_0x4e4b49),_0x4e4b49;},'__decorateClass$i'),__decorateParam$i=__name((_0x2c860e,_0xe2f9)=>(_0x593bd3,_0x3d83e9)=>_0xe2f9(_0x593bd3,_0x3d83e9,_0x2c860e),_0x4eebac(0x14c));const ICollaborationSocketService=createIdentifier('univer-pro.collaboration-client-socket-service');function generateSubmitChangesPath(_0x13394d,_0x5b68f4,_0x9940f8){return _0x13394d+'/'+_0x5b68f4+'/unit/'+_0x9940f8+'/new_changes';}__name(generateSubmitChangesPath,_0x4eebac(0x1f3));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x19c230,_0x530d3a,_0x494ad2,_0x428dc7,_0x3e4888){var _0x39e104=_0x4eebac;super(),this[_0x39e104(0x2d3)]=_0x19c230,this[_0x39e104(0x3cb)]=_0x530d3a,this[_0x39e104(0x238)]=_0x494ad2,this[_0x39e104(0x23a)]=_0x428dc7,this[_0x39e104(0x2cf)]=_0x3e4888;}['createSocket'](_0x413c93){var _0x222511=_0x4eebac;const _0x11ca8e=this[_0x222511(0x2d3)]['get'](ISocketService);if(!_0x11ca8e)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');const _0x534a91=_0x11ca8e[_0x222511(0x2f9)](_0x413c93);if(!_0x534a91)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x32dbea=new DisposableCollection(),_0x25813e=new Subject();_0x32dbea[_0x222511(0x21f)](_0x534a91[_0x222511(0x264)][_0x222511(0x127)](_0x2e8a65=>_0x25813e['next'](_0x2e8a65))),_0x32dbea[_0x222511(0x21f)](toDisposable(()=>_0x25813e[_0x222511(0x12d)]()));const _0x50b1e7=new Subject();_0x32dbea[_0x222511(0x21f)](_0x534a91['error$'][_0x222511(0x127)](_0x5089eb=>_0x50b1e7[_0x222511(0x225)](_0x5089eb))),_0x32dbea[_0x222511(0x21f)](toDisposable(()=>_0x50b1e7[_0x222511(0x12d)]()));const _0x5572e0=new Subject();_0x32dbea[_0x222511(0x21f)](_0x534a91['message$'][_0x222511(0x127)](_0x203946=>{var _0x59899d=_0x222511;const _0xbb93c7=deserializeToCombResponse(_0x203946);_0x5572e0[_0x59899d(0x225)](_0xbb93c7);})),_0x32dbea[_0x222511(0x21f)](toDisposable(()=>_0x5572e0[_0x222511(0x12d)]()));let _0x41e150;const _0x24c07d=__name(()=>{var _0x53dfd0=_0x222511;_0x50b1e7[_0x53dfd0(0x225)](new Event(_0x53dfd0(0x228))),_0x25813e[_0x53dfd0(0x225)](new CloseEvent(_0x53dfd0(0x228))),_0x41e150[_0x53dfd0(0x39d)]();},_0x222511(0x3eb));return _0x41e150={'memberID':'','close$':_0x25813e['asObservable'](),'error$':_0x50b1e7[_0x222511(0x39c)](),'open$':_0x534a91[_0x222511(0x311)],'message$':_0x5572e0[_0x222511(0x39c)](),'send':__name(_0x3d9f8a=>{var _0x5ba9f4=_0x222511;if(_0x3d9f8a['cmd']===CombCmd[_0x5ba9f4(0x16a)]){if(_0x3d9f8a[_0x5ba9f4(0x142)][_0x5ba9f4(0x315)]===CollaborationEvent[_0x5ba9f4(0x33e)]){this['_submitChangeset'](_0x41e150,_0x3d9f8a[_0x5ba9f4(0x142)])[_0x5ba9f4(0x2b9)](_0x519675=>{var _0x1a218c=_0x5ba9f4;this[_0x1a218c(0x23a)][_0x1a218c(0x154)](_0x519675),_0x24c07d();});return;}if(_0x3d9f8a['data'][_0x5ba9f4(0x315)]===CollaborationEvent['FETCH_MISSING']){const _0x278b64=_0x3d9f8a[_0x5ba9f4(0x142)];this['_fetchMissChangesets'](_0x278b64)['then'](_0x50664b=>{var _0x3a2177=_0x5ba9f4;_0x5572e0[_0x3a2177(0x225)]({'cmd':CombCmd[_0x3a2177(0x379)],'code':CmdRspCode['OK'],'routeKey':_0x278b64['data'][_0x3a2177(0x31d)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x50664b}}});})['catch'](_0x183d9e=>{var _0x2fa284=_0x5ba9f4;this[_0x2fa284(0x23a)][_0x2fa284(0x154)](_0x183d9e),_0x24c07d();});return;}}_0x534a91[_0x5ba9f4(0x1cc)](serializeCombRequest(_0x3d9f8a));},_0x222511(0x1cc)),'close':__name(()=>{var _0x537432=_0x222511;_0x534a91[_0x537432(0x39d)](),_0x32dbea[_0x537432(0x273)]();},_0x222511(0x39d))},_0x41e150;}async[_0x4eebac(0x284)](_0x312739,_0x1f84ab){var _0x1a22c8=_0x4eebac,_0x293cc2,_0x1f9df6;const {unitType:_0xb8e204,unitID:_0x11ed13,changeset:_0x37f41b}=_0x1f84ab['data'],_0x4996fc={'unitID':_0x11ed13,'memberID':_0x312739[_0x1a22c8(0x2a5)],'type':_0xb8e204,'changeset':parseChangesetToProtocol(_0x37f41b)},_0x1c7434=this[_0x1a22c8(0x238)][_0x1a22c8(0x363)](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x52a7d6=this[_0x1a22c8(0x238)][_0x1a22c8(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x1b0a9c=generateSubmitChangesPath((_0x1f9df6=(_0x293cc2=_0x52a7d6==null?void 0x0:_0x52a7d6[_0x1a22c8(0x407)])!=null?_0x293cc2:_0x1c7434)!=null?_0x1f9df6:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0xb8e204,_0x11ed13);try{await this[_0x1a22c8(0x3cb)][_0x1a22c8(0x370)](_0x1b0a9c,{'body':_0x4996fc});}catch(_0xbad15b){throw this[_0x1a22c8(0x23a)][_0x1a22c8(0x154)](_0x1a22c8(0x235),'submit\x20changeset\x20error!'),_0xbad15b;}}async[_0x4eebac(0x2ac)](_0x2ce09a){var _0x63ffea=_0x4eebac;const {unitID:_0x54b592,from:_0x54eee8,to:_0x13cbe4,unitType:_0x365d8f}=_0x2ce09a['data'];return(await this[_0x63ffea(0x2cf)][_0x63ffea(0x30f)]({'metadata':void 0x0},{'unitID':_0x54b592,'type':_0x365d8f,'from':_0x54eee8,'to':_0x13cbe4}))[_0x63ffea(0x1e6)];}},__name(_a,_0x4eebac(0x20d)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET='collaboration_new_changeset';function summaryChangesetSize(_0x578713){var _0x30151d=_0x4eebac;return JSON[_0x30151d(0x42b)](_0x578713)[_0x30151d(0x25b)];}__name(summaryChangesetSize,'summaryChangesetSize');const _CommentService=class _CommentService{constructor(){var _0x1811e4=_0x4eebac;__publicField(this,_0x1811e4(0x322),new Subject()),__publicField(this,_0x1811e4(0x23e),this[_0x1811e4(0x322)][_0x1811e4(0x39c)]());}[_0x4eebac(0x2bb)](_0x4be5a6){var _0x466ae9=_0x4eebac;this[_0x466ae9(0x322)][_0x466ae9(0x225)](_0x4be5a6);}};__name(_CommentService,_0x4eebac(0x202));let CommentService=_CommentService;var __defProp$h=Object[_0x4eebac(0x18f)],__getOwnPropDesc$h=Object[_0x4eebac(0x2a7)],__decorateClass$h=__name((_0x241ef4,_0xe4633e,_0x12904f,_0x11683b)=>{var _0x4817fb=_0x4eebac;for(var _0x17d14a=_0x11683b>0x1?void 0x0:_0x11683b?__getOwnPropDesc$h(_0xe4633e,_0x12904f):_0xe4633e,_0x30f372=_0x241ef4[_0x4817fb(0x25b)]-0x1,_0x584489;_0x30f372>=0x0;_0x30f372--)(_0x584489=_0x241ef4[_0x30f372])&&(_0x17d14a=(_0x11683b?_0x584489(_0xe4633e,_0x12904f,_0x17d14a):_0x584489(_0x17d14a))||_0x17d14a);return _0x11683b&&_0x17d14a&&__defProp$h(_0xe4633e,_0x12904f,_0x17d14a),_0x17d14a;},_0x4eebac(0x3ae)),__decorateParam$h=__name((_0x312797,_0x305656)=>(_0x52b93e,_0x323c85)=>_0x305656(_0x52b93e,_0x323c85,_0x312797),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x1aa02f,_0x3296cf){var _0x166d72=_0x4eebac;super(),__publicField(this,_0x166d72(0x1b2),new Map()),__publicField(this,_0x166d72(0x3c3),new Subject()),(this['_univerInstanceService']=_0x1aa02f,this[_0x166d72(0x243)]=_0x3296cf,this[_0x166d72(0x378)](merge(this[_0x166d72(0x256)][_0x166d72(0x102)](UniverInstanceType[_0x166d72(0x435)])[_0x166d72(0x385)](map(_0x5b9978=>_0x5b9978[_0x166d72(0x31e)]())),this[_0x166d72(0x256)][_0x166d72(0x102)](UniverInstanceType[_0x166d72(0x420)])[_0x166d72(0x385)](map(_0x5ea141=>_0x5ea141[_0x166d72(0x31e)]())),this[_0x166d72(0x256)][_0x166d72(0x102)](UniverInstanceType[_0x166d72(0x32b)])['pipe'](map(_0x3ec7de=>_0x3ec7de[_0x166d72(0x31e)]())))[_0x166d72(0x127)](_0xe7829f=>this[_0x166d72(0x2d8)](_0xe7829f))));}[_0x4eebac(0x412)](_0x312409){var _0xa93269=_0x4eebac;return this['_roomMembers'][_0xa93269(0x33c)](_0x312409)?of(this[_0xa93269(0x1b2)][_0xa93269(0x28a)](_0x312409)):this[_0xa93269(0x3c3)][_0xa93269(0x385)](map(_0x1e70af=>{var _0x541f14=_0xa93269;if(_0x1e70af===_0x312409)return this[_0x541f14(0x1b2)][_0x541f14(0x28a)](_0x1e70af);}));}[_0x4eebac(0x2ca)](_0x194b96){var _0x8778a1=_0x4eebac;this[_0x8778a1(0x243)][_0x8778a1(0x2ca)](_0x194b96);}['getCurrentUser'](){var _0x34b58d=_0x4eebac;return this[_0x34b58d(0x243)][_0x34b58d(0x101)]();}[_0x4eebac(0x27c)](_0xa242f3,_0x4238f7){var _0x34d458=_0x4eebac;let _0x2548a0=this[_0x34d458(0x1b2)][_0x34d458(0x28a)](_0xa242f3);_0x2548a0||(_0x2548a0=new RoomMember(),this['_roomMembers'][_0x34d458(0x36d)](_0xa242f3,_0x2548a0),this[_0x34d458(0x3c3)][_0x34d458(0x225)](_0xa242f3)),_0x2548a0[_0x34d458(0x27c)](_0x4238f7);}['removeMember'](_0x572b97,_0x593546){var _0x40a07f=_0x4eebac;const _0x1c79ca=this['_roomMembers'][_0x40a07f(0x28a)](_0x572b97);_0x1c79ca&&_0x1c79ca['removeMember'](_0x593546);}['getRoom'](_0x1b7801){var _0x4146d3=_0x4eebac;return this[_0x4146d3(0x1b2)][_0x4146d3(0x28a)](_0x1b7801);}['getMember'](_0x485e11,_0x16c53a){var _0x96501b=_0x4eebac;const _0x294da1=this[_0x96501b(0x1b2)][_0x96501b(0x28a)](_0x485e11);if(_0x294da1)return _0x294da1[_0x96501b(0x361)](_0x16c53a);}['_removeRoom'](_0x2d6011){var _0x43151a=_0x4eebac;const _0x262da0=this[_0x43151a(0x1b2)][_0x43151a(0x28a)](_0x2d6011);_0x262da0&&(_0x262da0['dispose'](),this[_0x43151a(0x1b2)][_0x43151a(0x390)](_0x2d6011));}[_0x4eebac(0x273)](){var _0x5d3ef5=_0x4eebac;this[_0x5d3ef5(0x1b2)][_0x5d3ef5(0x436)](_0x1ab985=>_0x1ab985[_0x5d3ef5(0x273)]()),this[_0x5d3ef5(0x1b2)]['clear'](),this['_roomCreated$'][_0x5d3ef5(0x12d)]();}},__name(_a2,_0x4eebac(0x11d)),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x190b80=_0x4eebac;super(...arguments),__publicField(this,_0x190b80(0x3f9),new Map()),__publicField(this,_0x190b80(0x10d),new BehaviorSubject(this[_0x190b80(0x3f9)])),__publicField(this,_0x190b80(0x131),this['_members$']['asObservable']());}['dispose'](){var _0x4fe609=_0x4eebac;this['_members'][_0x4fe609(0x398)]();}['updateMember'](_0xb667ca){var _0x13c9a1=_0x4eebac;this[_0x13c9a1(0x3f9)][_0x13c9a1(0x36d)](_0xb667ca[_0x13c9a1(0x2a5)],_0xb667ca),this[_0x13c9a1(0x185)]();}['removeMember'](_0x540dd1){var _0x1980af=_0x4eebac;this[_0x1980af(0x3f9)][_0x1980af(0x390)](_0x540dd1);}[_0x4eebac(0x361)](_0x3f01ac){var _0x487df3=_0x4eebac;return this[_0x487df3(0x3f9)][_0x487df3(0x28a)](_0x3f01ac);}[_0x4eebac(0x25d)](){var _0x50e574=_0x4eebac;return Array[_0x50e574(0x1d3)](this[_0x50e574(0x3f9)][_0x50e574(0x135)]());}[_0x4eebac(0x185)](){var _0x44f48f=_0x4eebac;this[_0x44f48f(0x10d)][_0x44f48f(0x225)](this['_members']);}};__name(_RoomMember,_0x4eebac(0x2a9));let RoomMember=_RoomMember;var __defProp$g=Object[_0x4eebac(0x18f)],__getOwnPropDesc$g=Object[_0x4eebac(0x2a7)],__decorateClass$g=__name((_0x44fc86,_0x55e589,_0x13e369,_0xc7c0c2)=>{var _0x52222d=_0x4eebac;for(var _0x9f2925=_0xc7c0c2>0x1?void 0x0:_0xc7c0c2?__getOwnPropDesc$g(_0x55e589,_0x13e369):_0x55e589,_0x319b83=_0x44fc86[_0x52222d(0x25b)]-0x1,_0x4f9f29;_0x319b83>=0x0;_0x319b83--)(_0x4f9f29=_0x44fc86[_0x319b83])&&(_0x9f2925=(_0xc7c0c2?_0x4f9f29(_0x55e589,_0x13e369,_0x9f2925):_0x4f9f29(_0x9f2925))||_0x9f2925);return _0xc7c0c2&&_0x9f2925&&__defProp$g(_0x55e589,_0x13e369,_0x9f2925),_0x9f2925;},_0x4eebac(0x3a1)),__decorateParam$g=__name((_0x162ffa,_0x136f09)=>(_0x4d3b18,_0x312597)=>_0x136f09(_0x4d3b18,_0x312597,_0x162ffa),_0x4eebac(0x3e9)),SessionStatus=(_0x5288d0=>(_0x5288d0[_0x5288d0[_0x4eebac(0x253)]=0x0]=_0x4eebac(0x253),_0x5288d0[_0x5288d0['JOINING']=0x1]=_0x4eebac(0x104),_0x5288d0[_0x5288d0['OFFLINE']=0x2]=_0x4eebac(0x1ba),_0x5288d0[_0x5288d0['ONLINE']=0x3]=_0x4eebac(0x1f6),_0x5288d0))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x4eebac(0x429)]]:'session.join-failed',[CmdRspCode[_0x4eebac(0x125)]]:_0x4eebac(0x3e3),[CmdRspCode[_0x4eebac(0x399)]]:'session.room-not-exists',[CmdRspCode[_0x4eebac(0x3e4)]]:'session.room-permission-denied',[CmdRspCode['GLOBAL_ROOMS_CNT_EXCEEDS']]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x536e10,_0x113790,_0x4a013e,_0x5b54f1,_0x5f0943,_0x415473,_0x2478ca,_0x4e815a,_0x40205a){var _0x1cd699=_0x4eebac;super(),__publicField(this,'_sessionStatus$',new BehaviorSubject(0x0)),__publicField(this,_0x1cd699(0x24b),this[_0x1cd699(0x29e)][_0x1cd699(0x39c)]()),__publicField(this,'_event$',new Subject()),__publicField(this,_0x1cd699(0x368),this[_0x1cd699(0x1f9)][_0x1cd699(0x39c)]()),__publicField(this,_0x1cd699(0x38d)),__publicField(this,'_socketMessageSubscription'),__publicField(this,_0x1cd699(0x1fd)),__publicField(this,_0x1cd699(0x37d),!0x1),__publicField(this,_0x1cd699(0x143),null),(this[_0x1cd699(0x120)]=_0x536e10,this[_0x1cd699(0x23a)]=_0x4a013e,this[_0x1cd699(0x238)]=_0x5b54f1,this[_0x1cd699(0x3b8)]=_0x5f0943,this['_memberService']=_0x415473,this[_0x1cd699(0x357)]=_0x2478ca,this[_0x1cd699(0x3f1)]=_0x4e815a,this['_telemetryService']=_0x40205a,this[_0x1cd699(0x37d)]=!!this[_0x1cd699(0x1f7)],_0x113790[_0x1cd699(0x385)](takeUntil(this[_0x1cd699(0x168)]))[_0x1cd699(0x127)](_0x15f1db=>{var _0x2c10f4=_0x1cd699,_0x2ce60c;typeof _0x15f1db>'u'||(this[_0x2c10f4(0x38d)]=_0x15f1db,_0x15f1db?(this['_joinRoom'](_0x15f1db),this['_socketMessageSubscription']=_0x15f1db[_0x2c10f4(0x3ff)][_0x2c10f4(0x127)](_0x32bc22=>{var _0x534d9c=_0x2c10f4;_0x32bc22[_0x534d9c(0x194)]===this[_0x534d9c(0x120)]&&this['_onCombEvent'](_0x32bc22);})):(this[_0x2c10f4(0x108)](),this['_sessionStatus$'][_0x2c10f4(0x225)](0x2),(_0x2ce60c=this[_0x2c10f4(0x2fd)])==null||_0x2ce60c[_0x2c10f4(0x23f)](),this[_0x2c10f4(0x2fd)]=null));}));}get[_0x4eebac(0x13d)](){var _0x1208d6=_0x4eebac;return this[_0x1208d6(0x29e)][_0x1208d6(0x30a)]();}[_0x4eebac(0x335)](){var _0x28c9db=_0x4eebac,_0x2875e7,_0x397907;return(_0x397907=(_0x2875e7=this['_socket'])==null?void 0x0:_0x2875e7[_0x28c9db(0x2a5)])!=null?_0x397907:null;}[_0x4eebac(0x273)](){var _0x376c39=_0x4eebac;super[_0x376c39(0x273)](),this[_0x376c39(0x168)]['next'](),this[_0x376c39(0x168)][_0x376c39(0x12d)]();}[_0x4eebac(0x39d)](){var _0x5d984d=_0x4eebac,_0x4090c6,_0x2dcc22;this[_0x5d984d(0x108)](),(_0x4090c6=this['_socket'])==null||_0x4090c6[_0x5d984d(0x1cc)]({'cmd':CombCmd[_0x5d984d(0x316)],'data':{'roomID':this[_0x5d984d(0x120)]}}),(_0x2dcc22=this[_0x5d984d(0x38d)])==null||_0x2dcc22[_0x5d984d(0x39d)](),this[_0x5d984d(0x1f9)][_0x5d984d(0x12d)](),this[_0x5d984d(0x29e)][_0x5d984d(0x12d)](),this[_0x5d984d(0x273)]();}[_0x4eebac(0x1ce)](_0x28f190){var _0x57251b=_0x4eebac;_0x28f190[_0x57251b(0x3a4)]===CombCmd[_0x57251b(0x241)]?this['_onJoinRoomEvent'](_0x28f190):_0x28f190[_0x57251b(0x3a4)]===CombCmd[_0x57251b(0x379)]&&this[_0x57251b(0x27a)](_0x28f190);}['_joinRoom'](_0xf600a5){var _0x1cf6e0=_0x4eebac;this[_0x1cf6e0(0x29e)][_0x1cf6e0(0x225)](0x1),_0xf600a5[_0x1cf6e0(0x1cc)]({'cmd':CombCmd['JOIN'],'routeKey':this[_0x1cf6e0(0x120)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1cf6e0(0x120)]}]}});}[_0x4eebac(0x19e)](_0x2f6c47){var _0x7df9a6=_0x4eebac,_0x102357;if(_0x2f6c47['code']in FailedReason){this[_0x7df9a6(0x3f1)][_0x7df9a6(0x414)]({'id':CollaborationUIEventId[_0x7df9a6(0x200)],'data':FailedReason[_0x2f6c47[_0x7df9a6(0x21e)]]}),this[_0x7df9a6(0x29e)][_0x7df9a6(0x225)](0x2);return;}this[_0x7df9a6(0x29e)][_0x7df9a6(0x225)](0x3);const _0x19b568=(_0x102357=_0x2f6c47[_0x7df9a6(0x142)][_0x7df9a6(0x169)][this[_0x7df9a6(0x120)]])==null?void 0x0:_0x102357[_0x7df9a6(0x239)];_0x19b568&&_0x19b568[_0x7df9a6(0x436)](_0x25e241=>this[_0x7df9a6(0x153)][_0x7df9a6(0x27c)](this[_0x7df9a6(0x120)],_0x25e241));}[_0x4eebac(0x27a)](_0x5167ec){var _0x5b79a3=_0x4eebac;try{const _0x32c016=_0x5167ec[_0x5b79a3(0x142)];switch(_0x32c016[_0x5b79a3(0x315)]){case CollaborationEvent[_0x5b79a3(0x35d)]:this[_0x5b79a3(0x15b)](_0x32c016),this[_0x5b79a3(0x1f9)][_0x5b79a3(0x225)](_0x32c016);break;case CollaborationEvent['USERS_LEAVE']:this[_0x5b79a3(0x2c9)](_0x32c016),this[_0x5b79a3(0x1f9)]['next'](_0x32c016);break;case CollaborationEvent[_0x5b79a3(0x271)]:case CollaborationEvent[_0x5b79a3(0x38f)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x5b79a3(0x225)](_0x32c016);break;case CollaborationEvent[_0x5b79a3(0x3a8)]:this['_logService'][_0x5b79a3(0x154)](_0x5b79a3(0x34e)+JSON[_0x5b79a3(0x42b)](_0x32c016)),this[_0x5b79a3(0x1f9)][_0x5b79a3(0x225)](_0x32c016);break;case CollaborationEvent[_0x5b79a3(0x26a)]:this[_0x5b79a3(0x357)][_0x5b79a3(0x2bb)](_0x32c016[_0x5b79a3(0x142)]),this['_event$'][_0x5b79a3(0x225)](_0x32c016);break;default:this['_event$'][_0x5b79a3(0x225)](_0x32c016);}}catch(_0x7d5029){this[_0x5b79a3(0x23a)][_0x5b79a3(0x154)](_0x7d5029,_0x5167ec);}}[_0x4eebac(0x15b)](_0x2f1bff){var _0x5f42be=_0x4eebac;this['_memberService'][_0x5f42be(0x27c)](this['_unitID'],_0x2f1bff[_0x5f42be(0x142)]);}[_0x4eebac(0x2c9)](_0x2d0ec6){var _0x34814c=_0x4eebac;this[_0x34814c(0x153)][_0x34814c(0x447)](this[_0x34814c(0x120)],_0x2d0ec6[_0x34814c(0x142)]['memberID']);}async['send'](_0x408433,_0x4a1296){var _0x482765=_0x4eebac;if(this['sessionStatus']!==0x3||!this[_0x482765(0x38d)])throw new Error(_0x482765(0x3df));try{_0x408433[_0x482765(0x315)]===CollaborationEvent[_0x482765(0x33e)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x482765(0x227)](_0x408433)),this[_0x482765(0x38d)][_0x482765(0x1cc)]({'cmd':CombCmd[_0x482765(0x16a)],'routeKey':_0x4a1296,'routeType':'','data':_0x408433});}catch(_0x2be491){this[_0x482765(0x23a)][_0x482765(0x154)](_0x2be491);}}[_0x4eebac(0x25f)](){var _0x45af00=_0x4eebac,_0x38dcf3;this[_0x45af00(0x1fd)]=setTimeout(()=>{var _0x389a82=_0x45af00;this[_0x389a82(0x1fd)]=null,this['_collaborationUIEventService']['emitEvent']({'id':CollaborationUIEventId[_0x389a82(0x319)]});},(_0x38dcf3=this[_0x45af00(0x238)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x38dcf3:DEFAULT_HEARTBEAT_TIMEOUT);}['_clearCollaborationTimeoutTimer'](){var _0x18e4db=_0x4eebac;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x18e4db(0x1fd)]),this['_collaborationTimeoutTimer']=null);}[_0x4eebac(0x227)](_0x22cd93){var _0x470009=_0x4eebac;if(!this[_0x470009(0x37d)])return;const {data:_0xd8bf2c}=_0x22cd93,{unitID:_0x21d8ee,changeset:_0x21680b}=_0xd8bf2c,{mutations:_0x42c21c,type:_0x32e411}=_0x21680b;this[_0x470009(0x143)]={'unitId':_0x21d8ee,'type':_0x32e411,'startTime':performance[_0x470009(0x1c9)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x42c21c)};}[_0x4eebac(0x23b)](){var _0x21dbaf=_0x4eebac;if(this[_0x21dbaf(0x37d)]){if(!this[_0x21dbaf(0x143)]){this[_0x21dbaf(0x23a)][_0x21dbaf(0x154)](_0x21dbaf(0x235),_0x21dbaf(0x3f2));return;}this[_0x21dbaf(0x143)][_0x21dbaf(0x3c4)]=performance[_0x21dbaf(0x1c9)](),this[_0x21dbaf(0x143)][_0x21dbaf(0x14a)]=this[_0x21dbaf(0x143)]['stopTime']-this[_0x21dbaf(0x143)][_0x21dbaf(0x280)],this[_0x21dbaf(0x1f7)][_0x21dbaf(0x21d)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x21dbaf(0x143)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){var _0x220cd3=_0x4eebac;this[_0x220cd3(0x143)]=null;}},__name(_a3,'CollaborationSession'),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x4eebac(0x18f)],__getOwnPropDesc$f=Object['getOwnPropertyDescriptor'],__decorateClass$f=__name((_0x1b92e0,_0x241a7c,_0x1bf650,_0x3d69dd)=>{var _0x54813d=_0x4eebac;for(var _0x5eb54b=_0x3d69dd>0x1?void 0x0:_0x3d69dd?__getOwnPropDesc$f(_0x241a7c,_0x1bf650):_0x241a7c,_0x305597=_0x1b92e0[_0x54813d(0x25b)]-0x1,_0xe2a728;_0x305597>=0x0;_0x305597--)(_0xe2a728=_0x1b92e0[_0x305597])&&(_0x5eb54b=(_0x3d69dd?_0xe2a728(_0x241a7c,_0x1bf650,_0x5eb54b):_0xe2a728(_0x5eb54b))||_0x5eb54b);return _0x3d69dd&&_0x5eb54b&&__defProp$f(_0x241a7c,_0x1bf650,_0x5eb54b),_0x5eb54b;},_0x4eebac(0x353)),__decorateParam$f=__name((_0x2453db,_0x4b32bf)=>(_0x2391cc,_0x14abbc)=>_0x4b32bf(_0x2391cc,_0x14abbc,_0x2453db),_0x4eebac(0x2d9)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x5c5ead,_0x30d3de,_0xbdd02,_0xc83e31,_0x4fd9ec,_0x2e07f8,_0x312b17){var _0x5265a2=_0x4eebac;super(),__publicField(this,'_socket$',new BehaviorSubject(void 0x0)),__publicField(this,'socket$',this[_0x5265a2(0x318)][_0x5265a2(0x39c)]()),__publicField(this,'_candidateSocket',null),__publicField(this,'_sessions',new Map()),__publicField(this,_0x5265a2(0x1b7),new BehaviorSubject(SessionStatus[_0x5265a2(0x253)])),__publicField(this,'status$',this[_0x5265a2(0x1b7)][_0x5265a2(0x39c)]()),__publicField(this,_0x5265a2(0x2a3),!0x1),__publicField(this,'_retryConnectingTimer'),__publicField(this,_0x5265a2(0x2dc),0x0),__publicField(this,_0x5265a2(0x3e0)),__publicField(this,_0x5265a2(0x27e)),(this['_injector']=_0x5c5ead,this[_0x5265a2(0x23a)]=_0x30d3de,this[_0x5265a2(0x238)]=_0xbdd02,this[_0x5265a2(0x1d4)]=_0xc83e31,this[_0x5265a2(0x129)]=_0x4fd9ec,this[_0x5265a2(0x3f1)]=_0x2e07f8,this[_0x5265a2(0x276)]=_0x312b17,this[_0x5265a2(0x2b2)]());}get['_socket'](){var _0x2eae22=_0x4eebac;return this[_0x2eae22(0x318)][_0x2eae22(0x30a)]();}[_0x4eebac(0x2b2)](){var _0x4c320e=_0x4eebac;this['_networkConditionService']&&this['disposeWithMe'](this[_0x4c320e(0x276)][_0x4c320e(0x152)][_0x4c320e(0x127)](_0x825aa0=>{var _0x1ce365=_0x4c320e;_0x825aa0&&!this['_socket']&&this[_0x1ce365(0x274)](),_0x825aa0||this['_onOffline']();}));}[_0x4eebac(0x273)](){var _0x34a24a=_0x4eebac;super[_0x34a24a(0x273)](),this[_0x34a24a(0x128)][_0x34a24a(0x436)](_0x47b2f8=>_0x47b2f8[_0x34a24a(0x273)]()),this[_0x34a24a(0x128)]['clear'](),this[_0x34a24a(0x1b7)]['complete']();}async[_0x4eebac(0x21c)](_0x557877){var _0x4bc2cc=_0x4eebac;if(this['_sessions']['has'](_0x557877))return this[_0x4bc2cc(0x128)][_0x4bc2cc(0x28a)](_0x557877);this[_0x4bc2cc(0x216)]();const _0x47d6b8=this[_0x4bc2cc(0x2d3)][_0x4bc2cc(0x145)](CollaborationSession,_0x557877,this['_socket$'][_0x4bc2cc(0x39c)]());return this[_0x4bc2cc(0x128)][_0x4bc2cc(0x36d)](_0x557877,_0x47d6b8),_0x47d6b8;}[_0x4eebac(0x2da)](_0x2d4e25){var _0x256ef9=_0x4eebac,_0xa4b3c;const _0x4bc6af=this[_0x256ef9(0x128)][_0x256ef9(0x28a)](_0x2d4e25);_0x4bc6af&&(this['_sessions'][_0x256ef9(0x390)](_0x2d4e25),_0x4bc6af[_0x256ef9(0x39d)]()),this[_0x256ef9(0x128)]['size']||(_0xa4b3c=this[_0x256ef9(0x38d)])==null||_0xa4b3c[_0x256ef9(0x39d)]();}[_0x4eebac(0x274)](){var _0x322d4e=_0x4eebac;this[_0x322d4e(0x2dc)]=0x0,this[_0x322d4e(0x2a1)]!=null&&(clearTimeout(this[_0x322d4e(0x2a1)]),this[_0x322d4e(0x2a1)]=null),this['_tryReconnect']();}async[_0x4eebac(0x323)](){var _0x4eea11=_0x4eebac,_0x18dd6a,_0x34dfb9,_0x28a7c9;const _0x249ec4=this[_0x4eea11(0x238)][_0x4eea11(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x53b3bd=(_0x18dd6a=_0x249ec4==null?void 0x0:_0x249ec4[_0x4eea11(0x2df)])!=null?_0x18dd6a:DEFAULT_WS_SESSION_TICKET_URL;return(_0x28a7c9=(_0x34dfb9=(await this['_httpService']['get'](_0x53b3bd,{'headers':{'Content-Type':_0x4eea11(0x1f1)}}))['body'])==null?void 0x0:_0x34dfb9[_0x4eea11(0x233)])!=null?_0x28a7c9:'';}['_createSocketURL'](_0x5d07f9){var _0x4a6249=_0x4eebac,_0x327d4f,_0x5e2340;const _0x6043f=this[_0x4a6249(0x238)][_0x4a6249(0x363)](COLLAB_WEB_SOCKET_URL_KEY),_0x24666b=this['_configService'][_0x4a6249(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x5a0cb2=(_0x5e2340=(_0x327d4f=_0x24666b==null?void 0x0:_0x24666b['collabWebSocketUrl'])!=null?_0x327d4f:_0x6043f)!=null?_0x5e2340:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x398f57=typeof window>'u'?new URL(_0x5a0cb2):new URL(_0x5a0cb2,window['location']['origin']);_0x398f57[_0x4a6249(0x1d5)][_0x4a6249(0x36d)]('sessionTicket',_0x5d07f9);const _0x4c9e54=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x4a6249(0x404)]['search']);return _0x4c9e54[_0x4a6249(0x28a)](_0x4a6249(0x17f))&&_0x398f57['searchParams'][_0x4a6249(0x36d)](_0x4a6249(0x17f),_0x4c9e54[_0x4a6249(0x28a)](_0x4a6249(0x17f))),_0x398f57[_0x4a6249(0x13a)]();}async['_createSocket'](){var _0x288fd3=_0x4eebac;const _0x441ec9=await this[_0x288fd3(0x323)](),_0x26d0cc=this[_0x288fd3(0x18d)](_0x441ec9),_0x139b26=this['_socketService']['createSocket'](_0x26d0cc);return this[_0x288fd3(0x1b1)]=_0x139b26,_0x139b26;}async[_0x4eebac(0x216)](){var _0x2f3b93=_0x4eebac,_0x4f5b47,_0x4e9f9b;try{const _0x2cdeb6=(_0x4e9f9b=(_0x4f5b47=this[_0x2f3b93(0x38d)])!=null?_0x4f5b47:this[_0x2f3b93(0x1b1)])!=null?_0x4e9f9b:await this[_0x2f3b93(0x446)]();if(_0x2cdeb6){const _0x128d4b=_0x2cdeb6[_0x2f3b93(0x1cc)];_0x2cdeb6[_0x2f3b93(0x1cc)]=_0xa32a3d=>(this[_0x2f3b93(0x32f)](),_0x128d4b[_0x2f3b93(0x35c)](_0x2cdeb6,[_0xa32a3d])),_0x2cdeb6[_0x2f3b93(0x3ff)][_0x2f3b93(0x127)](_0x4ca9ea=>this[_0x2f3b93(0x124)](_0x2cdeb6,_0x4ca9ea)),_0x2cdeb6['error$'][_0x2f3b93(0x385)](take(0x1))[_0x2f3b93(0x127)](_0xafc7a2=>this[_0x2f3b93(0x23a)][_0x2f3b93(0x154)]('[CollaborationSessionService]:\x20socket\x20error',_0xafc7a2)),_0x2cdeb6['open$'][_0x2f3b93(0x385)](take(0x1))['subscribe'](()=>{var _0x486435=_0x2f3b93;this[_0x486435(0x3ea)](_0x2cdeb6);}),_0x2cdeb6['close$']['pipe'](take(0x1))[_0x2f3b93(0x127)](_0x29cb7b=>{var _0x20e482=_0x2f3b93;this[_0x20e482(0x23a)]['debug'](_0x20e482(0x1e4),_0x20e482(0x3d9),_0x29cb7b),this[_0x20e482(0x3fe)]();});}}catch(_0x1ed2e9){this['_logService'][_0x2f3b93(0x154)](_0x1ed2e9),this[_0x2f3b93(0x3fe)]();}}[_0x4eebac(0x3ea)](_0x355c5b){var _0x27796c=_0x4eebac;this[_0x27796c(0x23a)][_0x27796c(0x1f8)]('[CollaborationSessionService]',_0x27796c(0x1e8)),_0x355c5b[_0x27796c(0x1cc)]({'cmd':CombCmd[_0x27796c(0x11f)]}),this[_0x27796c(0x32f)]();}['_onOffline'](){var _0x3fda16=_0x4eebac;this[_0x3fda16(0x2a3)]=!0x1,this[_0x3fda16(0x1b1)]=null,this[_0x3fda16(0x1b7)][_0x3fda16(0x225)](SessionStatus[_0x3fda16(0x1ba)]),this[_0x3fda16(0x318)][_0x3fda16(0x225)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x4eebac(0x3fe)](){var _0x520666=_0x4eebac,_0x2d30cc;this[_0x520666(0x1df)](),this['_retryCount']<((_0x2d30cc=this[_0x520666(0x238)][_0x520666(0x363)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x2d30cc:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this[_0x520666(0x3f1)][_0x520666(0x414)]({'id':CollaborationUIEventId[_0x520666(0x2c0)]}),this[_0x520666(0x262)]()):this[_0x520666(0x3f1)]['emitEvent']({'id':CollaborationUIEventId[_0x520666(0x1a8)]});}[_0x4eebac(0x262)](){var _0x3600a5=_0x4eebac,_0x5280fb;const _0x3f023e=this[_0x3600a5(0x2dc)],_0x504399=this[_0x3600a5(0x238)][_0x3600a5(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x6e455b=_0x3f023e===0x0?0x0:((_0x5280fb=_0x504399==null?void 0x0:_0x504399[_0x3600a5(0x437)])!=null?_0x5280fb:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x3f023e;this[_0x3600a5(0x2a1)]=setTimeout(()=>{var _0x279b3c=_0x3600a5;clearTimeout(this[_0x279b3c(0x2a1)]),this[_0x279b3c(0x2a1)]=null,this[_0x279b3c(0x216)]();},_0x6e455b),this['_retryCount']+=0x1;}[_0x4eebac(0x124)](_0x383edd,_0x555843){var _0x311533=_0x4eebac;const {cmd:_0x55fb37}=_0x555843;_0x55fb37===CombCmd[_0x311533(0x11f)]&&!this['_socketReady']&&(_0x383edd['memberID']=_0x555843[_0x311533(0x142)][_0x311533(0x2a5)],this[_0x311533(0x318)]['next'](_0x383edd),this[_0x311533(0x1b7)][_0x311533(0x225)](SessionStatus[_0x311533(0x1f6)]),this[_0x311533(0x2a3)]=!0x0,this[_0x311533(0x1b1)]=null),_0x55fb37===CombCmd[_0x311533(0x2f2)]&&this[_0x311533(0x2f5)](),this[_0x311533(0x32f)]();}[_0x4eebac(0x32f)](){var _0x304cf1=_0x4eebac,_0xa5bc0;this[_0x304cf1(0x10a)](),this[_0x304cf1(0x3e0)]=setTimeout(()=>this[_0x304cf1(0x34b)](),(_0xa5bc0=this[_0x304cf1(0x238)][_0x304cf1(0x363)](HEARTBEAT_INTERVAL_KEY))!=null?_0xa5bc0:DEFAULT_HEARTBEAT_INTERVAL);}[_0x4eebac(0x34b)](){var _0x172065=_0x4eebac;this[_0x172065(0x38d)][_0x172065(0x1cc)]({'cmd':CombCmd[_0x172065(0x2f2)]}),this[_0x172065(0x26e)]();}[_0x4eebac(0x26e)](){var _0x4309c7=_0x4eebac,_0x5b07cf;this['_timeoutTimer']=setTimeout(()=>this[_0x4309c7(0x3fe)](),(_0x5b07cf=this[_0x4309c7(0x238)][_0x4309c7(0x363)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x5b07cf:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x4eebac(0x10a)](){var _0x198081=_0x4eebac;this[_0x198081(0x3e0)]!=null&&(clearTimeout(this[_0x198081(0x3e0)]),this[_0x198081(0x3e0)]=null);}[_0x4eebac(0x2f5)](){var _0x18a475=_0x4eebac;this[_0x18a475(0x27e)]!=null&&(clearTimeout(this[_0x18a475(0x27e)]),this['_timeoutTimer']=null);}},__name(_a4,_0x4eebac(0x1a6)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex[_0x4eebac(0x2cd)]((i+0x100)[_0x4eebac(0x13a)](0x10)[_0x4eebac(0x3fa)](0x1));function unsafeStringify(_0x533ecc,_0x18b772=0x0){var _0x16d536=_0x4eebac;return(byteToHex[_0x533ecc[_0x18b772+0x0]]+byteToHex[_0x533ecc[_0x18b772+0x1]]+byteToHex[_0x533ecc[_0x18b772+0x2]]+byteToHex[_0x533ecc[_0x18b772+0x3]]+'-'+byteToHex[_0x533ecc[_0x18b772+0x4]]+byteToHex[_0x533ecc[_0x18b772+0x5]]+'-'+byteToHex[_0x533ecc[_0x18b772+0x6]]+byteToHex[_0x533ecc[_0x18b772+0x7]]+'-'+byteToHex[_0x533ecc[_0x18b772+0x8]]+byteToHex[_0x533ecc[_0x18b772+0x9]]+'-'+byteToHex[_0x533ecc[_0x18b772+0xa]]+byteToHex[_0x533ecc[_0x18b772+0xb]]+byteToHex[_0x533ecc[_0x18b772+0xc]]+byteToHex[_0x533ecc[_0x18b772+0xd]]+byteToHex[_0x533ecc[_0x18b772+0xe]]+byteToHex[_0x533ecc[_0x18b772+0xf]])[_0x16d536(0x406)]();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x4f055b=_0x4eebac;if(!getRandomValues){if(typeof crypto>'u'||!crypto[_0x4f055b(0x197)])throw new Error(_0x4f055b(0x36c));getRandomValues=crypto['getRandomValues']['bind'](crypto);}return getRandomValues(rnds8);}__name(rng,_0x4eebac(0x2ce));const randomUUID=typeof crypto<'u'&&crypto[_0x4eebac(0x1f2)]&&crypto[_0x4eebac(0x1f2)][_0x4eebac(0x133)](crypto),native={'randomUUID':randomUUID};function v4(_0x2aea44,_0x4e0b62,_0xc4dbb){var _0x3fc6fd=_0x4eebac,_0x32aa97,_0x31b3cc,_0x4c3200;if(native[_0x3fc6fd(0x1f2)]&&!_0x2aea44)return native[_0x3fc6fd(0x1f2)]();_0x2aea44=_0x2aea44||{};const _0x166d25=(_0x4c3200=(_0x31b3cc=_0x2aea44[_0x3fc6fd(0x14e)])!=null?_0x31b3cc:(_0x32aa97=_0x2aea44[_0x3fc6fd(0x2ce)])==null?void 0x0:_0x32aa97['call'](_0x2aea44))!=null?_0x4c3200:rng();if(_0x166d25['length']<0x10)throw new Error('Random\x20bytes\x20length\x20must\x20be\x20>=\x2016');return _0x166d25[0x6]=_0x166d25[0x6]&0xf|0x40,_0x166d25[0x8]=_0x166d25[0x8]&0x3f|0x80,unsafeStringify(_0x166d25);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x4eebac(0x196));function getLocalCacheKey(_0x372af3){var _0x51b19=_0x4eebac;return _0x51b19(0x17b)+_0x372af3;}__name(getLocalCacheKey,'getLocalCacheKey');var __defProp$e=Object[_0x4eebac(0x18f)],__getOwnPropDesc$e=Object[_0x4eebac(0x2a7)],__decorateClass$e=__name((_0x33cf32,_0x10d269,_0xe6cc22,_0x292409)=>{var _0x131f5b=_0x4eebac;for(var _0x2e0db9=_0x292409>0x1?void 0x0:_0x292409?__getOwnPropDesc$e(_0x10d269,_0xe6cc22):_0x10d269,_0x5311cb=_0x33cf32[_0x131f5b(0x25b)]-0x1,_0x10a647;_0x5311cb>=0x0;_0x5311cb--)(_0x10a647=_0x33cf32[_0x5311cb])&&(_0x2e0db9=(_0x292409?_0x10a647(_0x10d269,_0xe6cc22,_0x2e0db9):_0x10a647(_0x2e0db9))||_0x2e0db9);return _0x292409&&_0x2e0db9&&__defProp$e(_0x10d269,_0xe6cc22,_0x2e0db9),_0x2e0db9;},_0x4eebac(0x114)),__decorateParam$e=__name((_0x3f7362,_0xf84969)=>(_0x5a1e6d,_0x4ee46a)=>_0xf84969(_0x5a1e6d,_0x4ee46a,_0x3f7362),_0x4eebac(0x42a));function extractTargetFromFirstChangeset(_0x13dd8b){var _0x4aed2c=_0x4eebac;const {unitID:_0xae2117,mutations:_0x293c2a}=_0x13dd8b;return{'unitId':_0xae2117,'subUnitId':_0x293c2a[0x0][_0x4aed2c(0x148)][_0x4aed2c(0x138)]};}__name(extractTargetFromFirstChangeset,'extractTargetFromFirstChangeset');var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x2ff508,_0x25df63,_0x46d751){var _0x235509=_0x4eebac;this[_0x235509(0x2d3)]=_0x2ff508,this[_0x235509(0x176)]=_0x25df63,this['_instanceService']=_0x46d751;}['transformSelections'](_0x34a099){var _0x24c953=_0x4eebac,_0x2e5051,_0x333146,_0x1bacef,_0x1d0bb1;const _0x50057a=this['_injector']['get'](SheetsSelectionsService),{unitId:_0xe5f3aa,subUnitId:_0x3c2826}=extractTargetFromFirstChangeset(_0x34a099),_0x4e583a=_0x50057a==null?void 0x0:_0x50057a['getWorkbookSelections'](_0xe5f3aa)[_0x24c953(0x2b6)](),_0x213423=(_0x333146=(_0x2e5051=this[_0x24c953(0x28f)][_0x24c953(0x40f)](_0xe5f3aa))==null?void 0x0:_0x2e5051[_0x24c953(0x3d0)]())==null?void 0x0:_0x333146['getSheetId']();if(_0x4e583a['length']===0x0||!_0xe5f3aa||!_0x3c2826)return;const _0x537dde=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0xe5f3aa,'subUnitId':_0x213423,'selections':Tools[_0x24c953(0x425)](_0x4e583a)}}],_0x48d645=this[_0x24c953(0x176)]['transformMutationsWithChangeset'](_0x34a099,_0x537dde);if(!isTransformMutationsWithChangesetSuccess(_0x48d645))throw _0x48d645[_0x24c953(0x154)];const _0x518fd6=(_0x1d0bb1=(_0x1bacef=_0x48d645[_0x24c953(0x2af)][0x0])==null?void 0x0:_0x1bacef['params'])==null?void 0x0:_0x1d0bb1[_0x24c953(0x2c3)];if(Array[_0x24c953(0x103)](_0x518fd6)&&_0x518fd6[_0x24c953(0x25b)]){if(_0x518fd6[_0x24c953(0x25b)]===_0x537dde[0x0][_0x24c953(0x148)][_0x24c953(0x2c3)][_0x24c953(0x25b)]&&_0x518fd6[_0x24c953(0x259)]((_0x2c39d2,_0x5c3e8b)=>Rectangle[_0x24c953(0x1e3)](_0x2c39d2[_0x24c953(0x28c)],_0x537dde[0x0][_0x24c953(0x148)][_0x24c953(0x2c3)][_0x5c3e8b][_0x24c953(0x28c)])))return;this[_0x24c953(0x2d3)][_0x24c953(0x28a)](ICommandService)[_0x24c953(0x210)](SetSelectionsOperation['id'],{'unitId':_0xe5f3aa,'subUnitId':_0x213423,'selections':_0x518fd6});}}},__name(_a5,_0x4eebac(0x41a)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x4eebac(0x16f));var UnitStatus=(_0x51e001=>(_0x51e001[_0x51e001[_0x4eebac(0x158)]=0x0]=_0x4eebac(0x158),_0x51e001[_0x51e001[_0x4eebac(0x10b)]=0x1]=_0x4eebac(0x10b),_0x51e001))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x440f30,_0x5cac15,_0x9ecab,_0x4d25bc,_0x1b7487){var _0x573c7d=_0x4eebac,_0xadb0a6,_0x122144,_0x510713,_0x11e215;const _0x5f4ae8=[];for(const _0x545505 of _0x440f30)if(SINGLE_CHANGESET_MUTATIONS[_0x573c7d(0x33c)](_0x545505['id'])){if(_0x5f4ae8['length']>0x0)break;_0x5f4ae8[_0x573c7d(0x2cd)](_0x545505);break;}else _0x5f4ae8[_0x573c7d(0x2cd)](_0x545505);const _0x26b7b5=(_0x122144=(_0xadb0a6=_0x1b7487['getCurrentUser']())==null?void 0x0:_0xadb0a6['userID'])!=null?_0x122144:_0x573c7d(0x2b0),_0x3dcc20=(_0x11e215=(_0x510713=_0x1b7487[_0x573c7d(0x101)]())==null?void 0x0:_0x510713[_0x573c7d(0x2a5)])!=null?_0x11e215:_0x573c7d(0x2b0);return{'changeset':{'unitID':_0x5cac15,'type':mapDocumentTypeToUniverType(_0x9ecab[_0x573c7d(0x289)](_0x5cac15)),'baseRev':_0x4d25bc[_0x573c7d(0x186)](_0x5cac15),'revision':0x0,'userID':_0x26b7b5,'memberID':_0x3dcc20,'mutations':_0x5f4ae8},'pendingMutations':_0x440f30[_0x573c7d(0x3fa)](_0x5f4ae8[_0x573c7d(0x25b)])};}__name(assembleSheetChangeset,'assembleSheetChangeset');function assembleDocChangeset(_0x38e130,_0x2b066b,_0x2b7587,_0xd8381,_0x1de14b){var _0x59de24=_0x4eebac,_0x25ae79,_0x3be6a7,_0x3d7d93,_0x132de4;const _0x5b9d61=[_0x38e130[_0x59de24(0x16e)]((_0x4f3ae4,_0x50be1c)=>{var _0x1017b5=_0x59de24,_0x25980f;const {id:_0x3b9a45}=_0x4f3ae4,{id:_0x58a85d,type:_0x49f516}=_0x50be1c,_0x1d706f=(_0x25980f=_0x4f3ae4[_0x1017b5(0x148)])!=null?_0x25980f:{'actions':null},_0xd52f6e=_0x50be1c[_0x1017b5(0x148)];if(_0x3b9a45&&_0x3b9a45!==_0x58a85d)throw new Error(_0x1017b5(0x156)+_0x3b9a45+_0x1017b5(0x394)+_0x58a85d+'.');return{..._0x4f3ae4,'id':_0x58a85d,'type':_0x49f516,'params':{'unitId':_0xd52f6e[_0x1017b5(0x2d6)],'textRanges':_0xd52f6e[_0x1017b5(0x2d2)],'actions':JSONX[_0x1017b5(0x18e)](_0x1d706f[_0x1017b5(0x3c1)],_0xd52f6e[_0x1017b5(0x3c1)])}};},{})],_0x3760a5=(_0x3be6a7=(_0x25ae79=_0x1de14b['getCurrentUser']())==null?void 0x0:_0x25ae79[_0x59de24(0x275)])!=null?_0x3be6a7:'unknown',_0x4f8a51=(_0x132de4=(_0x3d7d93=_0x1de14b['getCurrentUser']())==null?void 0x0:_0x3d7d93[_0x59de24(0x2a5)])!=null?_0x132de4:_0x59de24(0x2b0);return{'changeset':{'unitID':_0x2b066b,'type':mapDocumentTypeToUniverType(_0x2b7587['getUnitType'](_0x2b066b)),'baseRev':_0xd8381[_0x59de24(0x186)](_0x2b066b),'revision':0x0,'userID':_0x3760a5,'memberID':_0x4f8a51,'mutations':_0x5b9d61},'pendingMutations':[]};}__name(assembleDocChangeset,'assembleDocChangeset');function createTimerObservable$(_0x201327,_0x27527a){var _0x4ba0f4=_0x4eebac;const _0x56e750=new ReplaySubject(0x1);return setTimeout(()=>_0x56e750[_0x4ba0f4(0x225)](_0x27527a),_0x201327),_0x56e750['asObservable']()[_0x4ba0f4(0x385)](_0x3e406a(0x1));}__name(createTimerObservable$,_0x4eebac(0x205));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x4eebac(0x3f6)],'params':{}};var __defProp$d=Object[_0x4eebac(0x18f)],__getOwnPropDesc$d=Object[_0x4eebac(0x2a7)],__decorateClass$d=__name((_0x2aacf3,_0x3fc1c5,_0x38bf5c,_0x2c8957)=>{var _0x5b3823=_0x4eebac;for(var _0x32950f=_0x2c8957>0x1?void 0x0:_0x2c8957?__getOwnPropDesc$d(_0x3fc1c5,_0x38bf5c):_0x3fc1c5,_0x245265=_0x2aacf3[_0x5b3823(0x25b)]-0x1,_0x176894;_0x245265>=0x0;_0x245265--)(_0x176894=_0x2aacf3[_0x245265])&&(_0x32950f=(_0x2c8957?_0x176894(_0x3fc1c5,_0x38bf5c,_0x32950f):_0x176894(_0x32950f))||_0x32950f);return _0x2c8957&&_0x32950f&&__defProp$d(_0x3fc1c5,_0x38bf5c,_0x32950f),_0x32950f;},_0x4eebac(0x39f)),__decorateParam$d=__name((_0x3548f1,_0x197046)=>(_0x415164,_0x338345)=>_0x197046(_0x415164,_0x338345,_0x3548f1),_0x4eebac(0x2cb)),CollaborationStatus=(_0x57ee9f=>(_0x57ee9f['NOT_COLLAB']=_0x4eebac(0x352),_0x57ee9f[_0x4eebac(0x18b)]='synced',_0x57ee9f[_0x4eebac(0x113)]=_0x4eebac(0x3b4),_0x57ee9f[_0x4eebac(0x401)]=_0x4eebac(0x43a),_0x57ee9f[_0x4eebac(0x1ca)]=_0x4eebac(0x1ab),_0x57ee9f[_0x4eebac(0x11c)]=_0x4eebac(0x428),_0x57ee9f[_0x4eebac(0x1d0)]=_0x4eebac(0x3fb),_0x57ee9f[_0x4eebac(0x1ba)]=_0x4eebac(0x23d),_0x57ee9f))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x55c3ca,_0x2595b0,_0x48a355,_0x3ab766,_0x4648e2,_0x20ab09,_0x6e09e4,_0x595d4e,_0x3d591b){var _0x5d3e3e=_0x4eebac;__publicField(this,'_awaitingChangeset',null),__publicField(this,'_pendingMutations',[]),(this[_0x5d3e3e(0x31d)]=_0x55c3ca,this['type']=_0x2595b0,this[_0x5d3e3e(0x3b2)]=_0x4648e2,this[_0x5d3e3e(0x10c)]=_0x20ab09,this['_undoRedoService']=_0x6e09e4,this['_revisionService']=_0x595d4e,this['_localCacheService']=_0x3d591b,this['_awaitingChangeset']=_0x48a355,this[_0x5d3e3e(0x321)]=_0x3ab766);}[_0x4eebac(0x174)](_0x3ef140){var _0x14b721=_0x4eebac;const _0x36275f=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return _0x3ef140[_0x14b721(0x382)]>_0x36275f+0x1?(this[_0x14b721(0x3b2)]['onMissingChangesets']({'from':_0x36275f,'to':_0x3ef140['revision']-0x1}),!0x0):!0x1;}[_0x4eebac(0x2d0)](_0x51f568){var _0x490233=_0x4eebac;this[_0x490233(0x166)]['transformUndoRedo'](this[_0x490233(0x31d)],_0x51f568);}['_transformSelections'](_0x5e4648){var _0x5e28bd=_0x4eebac,_0x2d52e4,_0x2352c3;(_0x2352c3=(_0x2d52e4=this['_handler'])[_0x5e28bd(0x251)])==null||_0x2352c3[_0x5e28bd(0x413)](_0x2d52e4,_0x5e4648);}[_0x4eebac(0x384)](_0x5c9ca5){var _0xb22c52=_0x4eebac,_0x3818b9,_0x392235;return(_0x392235=(_0x3818b9=this['_handler'])[_0xb22c52(0x3dd)])==null?void 0x0:_0x392235['call'](_0x3818b9,_0x5c9ca5);}['_transformStateCache'](_0x505916){var _0x5bce80=_0x4eebac,_0x279bb6,_0xb51d78;return(_0xb51d78=(_0x279bb6=this[_0x5bce80(0x3b2)])[_0x5bce80(0x3cf)])==null?void 0x0:_0xb51d78[_0x5bce80(0x413)](_0x279bb6,_0x505916);}[_0x4eebac(0x34d)](_0x5575e1){var _0x4a64b0=_0x4eebac,_0x42dc82,_0x130b87,_0x1b06b9;return(_0x1b06b9=(_0x130b87=(_0x42dc82=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x130b87[_0x4a64b0(0x413)](_0x42dc82,_0x5575e1))!=null?_0x1b06b9:_0x5575e1;}[_0x4eebac(0x126)](_0x530596){var _0x11e59f=_0x4eebac,_0x43ac8e,_0x412a8a,_0xc00920;return(_0xc00920=(_0x412a8a=(_0x43ac8e=this[_0x11e59f(0x3b2)])[_0x11e59f(0x22f)])==null?void 0x0:_0x412a8a['call'](_0x43ac8e,_0x530596))!=null?_0xc00920:_0x530596;}['_syncEditingCollabCursor'](_0xbf88f2){var _0x5d1533=_0x4eebac,_0x5d8e5d,_0x1252bb;if(this[_0x5d1533(0x41c)]===UniverType['UNIVER_DOC']){const {unitID:_0x274203,mutations:_0x17b8a1,memberID:_0x4110e4}=_0xbf88f2,_0x5d2086=_0x17b8a1[0x0][_0x5d1533(0x148)][_0x5d1533(0x2d2)];Array['isArray'](_0x5d2086)&&_0x5d2086[_0x5d1533(0x25b)]>0x0&&((_0x1252bb=(_0x5d8e5d=this[_0x5d1533(0x3b2)])['onSyncEditingCollabCursor'])==null||_0x1252bb[_0x5d1533(0x413)](_0x5d8e5d,{'unitID':_0x274203,'memberID':_0x4110e4,'textRanges':_0x5d2086}));}}[_0x4eebac(0x2c6)](){var _0xe4ebab=_0x4eebac,_0x34d825;(_0x34d825=this[_0xe4ebab(0x2c4)])==null||_0x34d825[_0xe4ebab(0x22a)](this[_0xe4ebab(0x31d)],this[_0xe4ebab(0x41c)],this[_0xe4ebab(0x27f)],this[_0xe4ebab(0x321)]);}[_0x4eebac(0x150)](){var _0x4d13d1=_0x4eebac;return this[_0x4d13d1(0x28b)][_0x4d13d1(0x186)](this[_0x4d13d1(0x31d)]);}[_0x4eebac(0x42e)](){var _0x51e374=_0x4eebac;this[_0x51e374(0x28b)]['incrementRevOfUnit'](this[_0x51e374(0x31d)]);}[_0x4eebac(0x222)](_0x23b549){var _0x1b49aa=_0x4eebac,_0xa9f95e;let _0x2a4017=this[_0x1b49aa(0x34d)](_0x23b549);_0x2a4017=this[_0x1b49aa(0x126)](_0x2a4017);const _0x5d26b2=sequenceExecute(_0x2a4017['mutations'],this[_0x1b49aa(0x10c)],{'fromCollab':!0x0});if(!_0x5d26b2[_0x1b49aa(0x331)])throw _0x5d26b2['error']instanceof Error?_0x5d26b2[_0x1b49aa(0x154)]:new Error((_0xa9f95e=_0x5d26b2['error'])!=null?_0xa9f95e:'[CollaborationState]:\x20apply\x20error!');this[_0x1b49aa(0x384)](_0x2a4017),this[_0x1b49aa(0x1b6)](_0x2a4017),this['_transformUndoredo'](_0x23b549),this[_0x1b49aa(0x244)](_0x2a4017),this[_0x1b49aa(0x30d)](_0x2a4017),this[_0x1b49aa(0x42e)]();}};__name(_CollaborationState,_0x4eebac(0x13e));let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0x5a3130,_0x2e3f2b,_0x55bafd,_0x50ce13,_0x1c14d5,_0xbeeb20,_0x36c163,_0x592b67,_0x5e2992,_0x501eb7){var _0x408594=_0x4eebac;super(_0x5a3130,_0x2e3f2b,null,[],_0x55bafd,_0x36c163,_0xbeeb20,_0x50ce13,_0x501eb7),__publicField(this,_0x408594(0x299),_0x408594(0x397)),(this['_injector']=_0x1c14d5,this[_0x408594(0x23a)]=_0x592b67,this[_0x408594(0x176)]=_0x5e2992,this[_0x408594(0x341)]=_0x501eb7);}[_0x4eebac(0x3c8)](_0x585175){var _0x5c895=_0x4eebac;const _0x2c3448=this['_injector']['createInstance'](PendingState,this[_0x5c895(0x31d)],this[_0x5c895(0x41c)],[_0x585175],this[_0x5c895(0x3b2)]);return _0x2c3448['_schedule'](),_0x2c3448['_updateLocalCache'](),_0x2c3448;}[_0x4eebac(0x2e4)](_0x20c7ec){var _0x53f68c=_0x4eebac;if(this['_checkMissing'](_0x20c7ec))return this['_injector'][_0x53f68c(0x145)](FetchingMissState,this[_0x53f68c(0x31d)],this[_0x53f68c(0x41c)],null,[],null,[_0x20c7ec],this[_0x53f68c(0x3b2)]);try{const _0x16514c=this[_0x53f68c(0x176)]['transformMutationsWithChangeset'](_0x20c7ec,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x16514c)){const {c1Prime:_0x10c1ae}=_0x16514c;return this[_0x53f68c(0x222)](_0x10c1ae),this;}throw _0x16514c[_0x53f68c(0x154)];}catch(_0x37b5ef){return this[_0x53f68c(0x23a)][_0x53f68c(0x154)](_0x37b5ef),this['_onConflict'](!0x1);}}['_onConflict'](_0x559623){var _0x2461b5=_0x4eebac;return this['_injector'][_0x2461b5(0x145)](ConflictState,this['unitID'],this[_0x2461b5(0x41c)],null,[],this[_0x2461b5(0x3b2)],_0x559623);}[_0x4eebac(0x287)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x4eebac(0x38c)](){var _0x171364=_0x4eebac;throw new Error(_0x171364(0x279));}[_0x4eebac(0x334)](){return this;}[_0x4eebac(0x3a5)](){var _0x29a314=_0x4eebac;return this[_0x29a314(0x2d3)][_0x29a314(0x145)](OfflineState,this[_0x29a314(0x31d)],this[_0x29a314(0x41c)],null,[],this[_0x29a314(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}[_0x4eebac(0x375)](){var _0x268578=_0x4eebac;throw new Error(_0x268578(0x13c));}[_0x4eebac(0x1c4)](){var _0x3df9fc=_0x4eebac;const _0x238436=this[_0x3df9fc(0x28b)][_0x3df9fc(0x186)](this[_0x3df9fc(0x31d)]);return this[_0x3df9fc(0x3b2)]['onMissingChangesets']({'from':_0x238436,'to':0x0}),this[_0x3df9fc(0x2d3)][_0x3df9fc(0x145)](FetchingMissState,this[_0x3df9fc(0x31d)],this[_0x3df9fc(0x41c)],null,[],null,[],this[_0x3df9fc(0x3b2)]);}},__name(_a6,_0x4eebac(0x2e5)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0x2a8349,_0x3956fa,_0x1175c9,_0x8433b0,_0x454ea8,_0x5525aa,_0x4f49cf,_0x1110f9,_0x106d61,_0x40a34e,_0x92d7a5,_0x3e12ff,_0x4d7846,_0x50c121){var _0x2a2b96=_0x4eebac;super(_0x2a8349,_0x3956fa,null,_0x1175c9,_0x8433b0,_0x106d61,_0x4d7846,_0x5525aa,_0x50c121),__publicField(this,'status','pending'),__publicField(this,_0x2a2b96(0x12f),null),__publicField(this,'_sendingTimer',null),(this['_injector']=_0x454ea8,this[_0x2a2b96(0x153)]=_0x4f49cf,this[_0x2a2b96(0x23a)]=_0x1110f9,this[_0x2a2b96(0x238)]=_0x40a34e,this[_0x2a2b96(0x176)]=_0x92d7a5,this[_0x2a2b96(0x256)]=_0x3e12ff);}[_0x4eebac(0x3c8)](_0xaf64e2){var _0x13421d=_0x4eebac;return this[_0x13421d(0x321)]['push'](_0xaf64e2),this[_0x13421d(0x2c6)](),this;}['onRemoteChangeset'](_0x50ecbb){var _0x1b23ad=_0x4eebac;if(this[_0x1b23ad(0x174)](_0x50ecbb))return this['_clearScheduledTask'](),this[_0x1b23ad(0x2d3)][_0x1b23ad(0x145)](FetchingMissState,this['unitID'],this[_0x1b23ad(0x41c)],null,this['_pendingMutations'],null,[_0x50ecbb],this[_0x1b23ad(0x3b2)]);try{const _0x3b2ad3=this[_0x1b23ad(0x176)][_0x1b23ad(0x26c)](_0x50ecbb,this[_0x1b23ad(0x321)]);if(isTransformMutationsWithChangesetSuccess(_0x3b2ad3)){const {c1Prime:_0x257e3e,m2Prime:_0x2cf196}=_0x3b2ad3;this[_0x1b23ad(0x222)](_0x257e3e);const _0x4120eb=this[_0x1b23ad(0x2d3)][_0x1b23ad(0x145)](PendingState,this[_0x1b23ad(0x31d)],this[_0x1b23ad(0x41c)],_0x2cf196,this['_handler']);this['_clearScheduledTask']();const _0x2d5c8f=new Date()[_0x1b23ad(0x261)](),_0xd38917=this[_0x1b23ad(0x12f)]?Math[_0x1b23ad(0x32a)](this[_0x1b23ad(0x12f)]-_0x2d5c8f,0x0):this[_0x1b23ad(0x236)]();return _0x4120eb[_0x1b23ad(0x252)](_0xd38917),_0x4120eb;}throw _0x3b2ad3[_0x1b23ad(0x154)];}catch(_0x3e2c44){return this[_0x1b23ad(0x23a)][_0x1b23ad(0x154)](_0x3e2c44),this[_0x1b23ad(0x199)](!0x1);}}[_0x4eebac(0x287)](){var _0x484469=_0x4eebac;throw new Error(_0x484469(0x439));}[_0x4eebac(0x38c)](){var _0x30be50=_0x4eebac;throw new Error(_0x30be50(0x1c7));}[_0x4eebac(0x334)](){return this;}['toggleOffline'](){var _0x5244a2=_0x4eebac;return this[_0x5244a2(0x1cd)](),this[_0x5244a2(0x2d3)]['createInstance'](OfflineState,this['unitID'],this['type'],null,this[_0x5244a2(0x321)],this[_0x5244a2(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}[_0x4eebac(0x252)](_0x441bf5){var _0x409c41=_0x4eebac;const _0x5e1e67=_0x441bf5!=null?_0x441bf5:this[_0x409c41(0x236)]();this[_0x409c41(0x12f)]=new Date()[_0x409c41(0x261)]()+_0x5e1e67,this[_0x409c41(0x35e)]=setTimeout(()=>{var _0x36a118=_0x409c41;this[_0x36a118(0x1cd)]();let _0x3c9f9b=null;switch(this[_0x36a118(0x41c)]){case UniverType[_0x36a118(0x435)]:{_0x3c9f9b=assembleSheetChangeset(this['_pendingMutations'],this[_0x36a118(0x31d)],this[_0x36a118(0x256)],this[_0x36a118(0x28b)],this[_0x36a118(0x153)]);break;}case UniverType[_0x36a118(0x420)]:{this[_0x36a118(0x321)][_0x36a118(0x259)](_0x41f9cd=>_0x41f9cd['id']===RichTextEditingMutation['id'])?_0x3c9f9b=assembleDocChangeset(this[_0x36a118(0x321)],this[_0x36a118(0x31d)],this[_0x36a118(0x256)],this[_0x36a118(0x28b)],this[_0x36a118(0x153)]):_0x3c9f9b=assembleSheetChangeset(this[_0x36a118(0x321)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x36a118(0x153)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x36a118(0x41c)]+_0x36a118(0x347));}const {changeset:_0x345af0,pendingMutations:_0x539044}=_0x3c9f9b;this[_0x36a118(0x3b2)][_0x36a118(0x2ff)](_0x345af0);const _0x5c0980=_0x539044[_0x36a118(0x25b)]?this[_0x36a118(0x2d3)][_0x36a118(0x145)](AwaitingWithPendingState,this[_0x36a118(0x31d)],this[_0x36a118(0x41c)],_0x345af0,_0x539044,this['_handler'],void 0x0):this['_injector'][_0x36a118(0x145)](AwaitingState,this[_0x36a118(0x31d)],this[_0x36a118(0x41c)],_0x345af0,this['_handler']);_0x5c0980['_updateLocalCache'](),this[_0x36a118(0x3b2)]['onStateChange'](this,_0x5c0980);},_0x5e1e67);}[_0x4eebac(0x236)](){var _0x1354f9=_0x4eebac,_0x1e483f;const _0x58797b=this[_0x1354f9(0x238)][_0x1354f9(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1e483f=_0x58797b==null?void 0x0:_0x58797b['sendChangesetTimeout'])!=null?_0x1e483f:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x4eebac(0x375)](){var _0x2599e8=_0x4eebac;throw new Error(_0x2599e8(0x171));}[_0x4eebac(0x1cd)](){var _0xac59e4=_0x4eebac;this['_sendingTimer']!=null&&(clearTimeout(this[_0xac59e4(0x35e)]),this['_sendingTimer']=null);}[_0x4eebac(0x199)](_0x30caa9){var _0x2236eb=_0x4eebac;return this['_clearScheduledTask'](),this['_injector'][_0x2236eb(0x145)](ConflictState,this[_0x2236eb(0x31d)],this[_0x2236eb(0x41c)],null,this[_0x2236eb(0x321)],this[_0x2236eb(0x3b2)],_0x30caa9);}},__name(_a7,'PendingState'),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x208c88,_0x26d6af,_0x2fdc1e,_0x5ed2d6,_0x2901ce,_0x50eff1,_0x3c1ca8,_0xbe82cf,_0x13f1f3,_0x5e6b28,_0xf2100f){var _0x12e8db=_0x4eebac;super(_0x208c88,_0x26d6af,_0x2fdc1e,[],_0x5ed2d6,_0x3c1ca8,_0x5e6b28,_0x50eff1,_0xf2100f),__publicField(this,'status','awaiting'),__publicField(this,_0x12e8db(0x2f8),0x0),__publicField(this,_0x12e8db(0x25e)),__publicField(this,'_sender'),(this[_0x12e8db(0x2d3)]=_0x2901ce,this['_logService']=_0xbe82cf,this[_0x12e8db(0x176)]=_0x13f1f3);}[_0x4eebac(0x3c8)](_0xe042ee){var _0x22578=_0x4eebac;this[_0x22578(0x1cd)]();const _0x48e254=this[_0x22578(0x2d3)][_0x22578(0x145)](AwaitingWithPendingState,this['unitID'],this[_0x22578(0x41c)],this['_awaitingChangeset'],[_0xe042ee],this[_0x22578(0x3b2)],this[_0x22578(0x25e)]);return _0x48e254[_0x22578(0x2c6)](),_0x48e254;}[_0x4eebac(0x2e4)](_0x245cfe){var _0x3b3400=_0x4eebac;if(this[_0x3b3400(0x174)](_0x245cfe))return this[_0x3b3400(0x1cd)](),this[_0x3b3400(0x2d3)][_0x3b3400(0x145)](FetchingMissState,this[_0x3b3400(0x31d)],this[_0x3b3400(0x41c)],this['_awaitingChangeset'],[],null,[_0x245cfe],this[_0x3b3400(0x3b2)]);try{const _0x374ec2=this[_0x3b3400(0x176)][_0x3b3400(0x34f)]([_0x245cfe],[this['_awaitingChangeset']],!0x1);if(isTransformChangesetsSuccess(_0x374ec2)){const {c1Prime:_0x5e3595,c2Prime:_0x3b96b9}=_0x374ec2;this[_0x3b3400(0x222)](_0x5e3595[0x0]),_0x3b96b9[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x3b3400(0x1cd)]();const _0xcffe8b=this[_0x3b3400(0x2d3)]['createInstance'](AwaitingState,this[_0x3b3400(0x31d)],this[_0x3b3400(0x41c)],_0x3b96b9[0x0],this['_handler']);return _0xcffe8b[_0x3b3400(0x2c6)](),_0xcffe8b;}return this[_0x3b3400(0x199)](!0x1);}catch(_0x380763){return this[_0x3b3400(0x23a)][_0x3b3400(0x154)](_0x380763),this[_0x3b3400(0x199)](!0x1);}}[_0x4eebac(0x287)](_0x3948a2){var _0x5d0f35=_0x4eebac;this[_0x5d0f35(0x1cd)]();const _0x491fb4=this[_0x5d0f35(0x28b)][_0x5d0f35(0x186)](this[_0x5d0f35(0x31d)]);if(_0x3948a2['revision']<_0x491fb4-0x1)return this;if(this[_0x5d0f35(0x174)](_0x3948a2))return this[_0x5d0f35(0x2d3)][_0x5d0f35(0x145)](FetchingMissState,this['unitID'],this[_0x5d0f35(0x41c)],null,[],this[_0x5d0f35(0x27f)],[],this['_handler']);this[_0x5d0f35(0x42e)]();const _0x2b22e7=this[_0x5d0f35(0x2d3)][_0x5d0f35(0x145)](SyncedState,this[_0x5d0f35(0x31d)],this[_0x5d0f35(0x41c)],this[_0x5d0f35(0x3b2)]);return _0x2b22e7[_0x5d0f35(0x2c6)](),_0x2b22e7;}[_0x4eebac(0x38c)](_0x22f7f8){var _0x58905a=_0x4eebac;return this['_onConflict'](!!(_0x22f7f8!=null&&_0x22f7f8[_0x58905a(0x37f)]));}[_0x4eebac(0x334)](_0x408453){var _0x30da14=_0x4eebac;return this[_0x30da14(0x2f8)]>MAX_RETRY_TIMEOUT?this[_0x30da14(0x3a5)]():(this[_0x30da14(0x25e)]=createTimerObservable$(this[_0x30da14(0x2f8)],{'timeout':this['_resendTimeout'],'reqId':_0x408453[_0x30da14(0x16d)]}),this[_0x30da14(0x179)]=this[_0x30da14(0x25e)]['subscribe'](({reqId:_0x195896,timeout:_0x16b98a})=>{var _0x85a5e5=_0x30da14;this[_0x85a5e5(0x354)](_0x195896,_0x16b98a);}),this);}[_0x4eebac(0x3a5)](){var _0x3d87bc=_0x4eebac;return this[_0x3d87bc(0x1cd)](),this[_0x3d87bc(0x2d3)][_0x3d87bc(0x145)](OfflineState,this[_0x3d87bc(0x31d)],this[_0x3d87bc(0x41c)],this[_0x3d87bc(0x27f)],[],this[_0x3d87bc(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}['resend'](){var _0x3f9897=_0x4eebac;this[_0x3f9897(0x3b2)][_0x3f9897(0x2ff)](this[_0x3f9897(0x27f)]);}[_0x4eebac(0x199)](_0x8a0010){var _0x15621d=_0x4eebac;return this[_0x15621d(0x1cd)](),this[_0x15621d(0x2d3)][_0x15621d(0x145)](ConflictState,this[_0x15621d(0x31d)],this[_0x15621d(0x41c)],this[_0x15621d(0x27f)],[],this[_0x15621d(0x3b2)],_0x8a0010);}['_resendWithTimeout'](_0xe9f328,_0xf41641){var _0x31abcf=_0x4eebac,_0x2ce4d7;_0xe9f328===((_0x2ce4d7=this[_0x31abcf(0x27f)])==null?void 0x0:_0x2ce4d7[_0x31abcf(0x16d)])&&(this[_0x31abcf(0x375)](),this[_0x31abcf(0x2f8)]=_0xf41641===0x0?0x3e8:_0xf41641*0x2);}[_0x4eebac(0x1cd)](){var _0x46a8ae=_0x4eebac,_0x32194c;(_0x32194c=this[_0x46a8ae(0x179)])==null||_0x32194c[_0x46a8ae(0x23f)](),this[_0x46a8ae(0x2f8)]=0x0;}},__name(_a8,'AwaitingState'),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x44af87,_0x31f232,_0x32f39f,_0x400a2a,_0x3ff3db,_0x118365,_0x366f90,_0x5e55f2,_0x5cee0e,_0x5c7a19,_0x155804,_0xb1666d,_0x469ed2){var _0x152a6e=_0x4eebac;super(_0x44af87,_0x31f232,_0x32f39f,_0x400a2a,_0x3ff3db,_0x5cee0e,_0xb1666d,_0x5e55f2,_0x469ed2),__publicField(this,_0x152a6e(0x299),_0x152a6e(0x1ab)),__publicField(this,'_resendTimeout',0x0),__publicField(this,_0x152a6e(0x25e)),__publicField(this,_0x152a6e(0x179)),(this[_0x152a6e(0x2d3)]=_0x366f90,this[_0x152a6e(0x23a)]=_0x5c7a19,this['_transformService']=_0x155804,this[_0x152a6e(0x341)]=_0x469ed2,_0x118365&&(this[_0x152a6e(0x25e)]=_0x118365,this[_0x152a6e(0x179)]=this[_0x152a6e(0x25e)]['subscribe'](({reqId:_0xfd57e0,timeout:_0x56e23a})=>{var _0x3d72aa=_0x152a6e;this[_0x3d72aa(0x354)](_0xfd57e0,_0x56e23a);})));}[_0x4eebac(0x3c8)](_0x2a3129){var _0xcca505=_0x4eebac;return this[_0xcca505(0x321)][_0xcca505(0x2cd)](_0x2a3129),this;}[_0x4eebac(0x2e4)](_0x3a0c1d){var _0x24437c=_0x4eebac;if(this[_0x24437c(0x174)](_0x3a0c1d))return this[_0x24437c(0x1cd)](),this[_0x24437c(0x2d3)][_0x24437c(0x145)](FetchingMissState,this[_0x24437c(0x31d)],this[_0x24437c(0x41c)],this[_0x24437c(0x27f)],this[_0x24437c(0x321)],null,[_0x3a0c1d],this['_handler']);try{const _0xdbba02=this[_0x24437c(0x176)]['transformChangesets']([_0x3a0c1d],[this[_0x24437c(0x27f)]],!0x1);if(isTransformChangesetsSuccess(_0xdbba02)){const {c1Prime:_0x13c861,c2Prime:_0x2791e1}=_0xdbba02,_0x1a2c86=this[_0x24437c(0x176)][_0x24437c(0x26c)](_0x13c861[0x0],this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x1a2c86)){const {c1Prime:_0x55ad6b,m2Prime:_0x20bfd2}=_0x1a2c86;return this[_0x24437c(0x222)](_0x55ad6b),_0x2791e1[0x0]['baseRev']=this[_0x24437c(0x150)](),this[_0x24437c(0x1cd)](),this[_0x24437c(0x2d3)]['createInstance'](AwaitingWithPendingState,this['unitID'],this[_0x24437c(0x41c)],_0x2791e1[0x0],_0x20bfd2,this['_handler'],void 0x0);}throw _0x1a2c86[_0x24437c(0x154)];}throw _0xdbba02[_0x24437c(0x154)];}catch(_0x30a79b){return this[_0x24437c(0x23a)]['error'](_0x30a79b),this[_0x24437c(0x199)](!0x1);}}['onRemoteAck'](_0xdb852c){var _0x52b8a9=_0x4eebac;if(this['_clearScheduledTask'](),this[_0x52b8a9(0x174)](_0xdb852c))return this[_0x52b8a9(0x2d3)][_0x52b8a9(0x145)](FetchingMissState,this[_0x52b8a9(0x31d)],this[_0x52b8a9(0x41c)],null,this[_0x52b8a9(0x321)],this[_0x52b8a9(0x27f)],[],this[_0x52b8a9(0x3b2)]);this[_0x52b8a9(0x42e)]();const _0x28813a=this[_0x52b8a9(0x2d3)][_0x52b8a9(0x145)](PendingState,this[_0x52b8a9(0x31d)],this[_0x52b8a9(0x41c)],this[_0x52b8a9(0x321)],this[_0x52b8a9(0x3b2)]);return _0x28813a['_schedule'](),_0x28813a['_updateLocalCache'](),_0x28813a;}[_0x4eebac(0x38c)](_0x58d0b6){var _0x5a85b5=_0x4eebac;return this[_0x5a85b5(0x199)](!!(_0x58d0b6!=null&&_0x58d0b6[_0x5a85b5(0x37f)]));}[_0x4eebac(0x334)](_0x349fb3){var _0x4256f0=_0x4eebac;return this[_0x4256f0(0x2f8)]>MAX_RETRY_TIMEOUT?this[_0x4256f0(0x3a5)]():(this[_0x4256f0(0x25e)]=createTimerObservable$(this[_0x4256f0(0x2f8)],{'timeout':this['_resendTimeout'],'reqId':_0x349fb3[_0x4256f0(0x16d)]}),this[_0x4256f0(0x179)]=this[_0x4256f0(0x25e)]['subscribe'](({reqId:_0x750f72,timeout:_0x54e6a3})=>{var _0xbfca0c=_0x4256f0;this[_0xbfca0c(0x354)](_0x750f72,_0x54e6a3);}),this);}[_0x4eebac(0x3a5)](){var _0x4a5c27=_0x4eebac;return this[_0x4a5c27(0x1cd)](),this[_0x4a5c27(0x2d3)][_0x4a5c27(0x145)](OfflineState,this[_0x4a5c27(0x31d)],this['type'],this['_awaitingChangeset'],this[_0x4a5c27(0x321)],this[_0x4a5c27(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}[_0x4eebac(0x375)](){var _0x2de02c=_0x4eebac;this[_0x2de02c(0x3b2)][_0x2de02c(0x2ff)](this[_0x2de02c(0x27f)]);}[_0x4eebac(0x199)](_0x1ffd0b){var _0x1e842b=_0x4eebac;return this[_0x1e842b(0x1cd)](),this[_0x1e842b(0x2d3)][_0x1e842b(0x145)](ConflictState,this[_0x1e842b(0x31d)],this[_0x1e842b(0x41c)],null,this[_0x1e842b(0x321)],this['_handler'],_0x1ffd0b);}['_resendWithTimeout'](_0xd3810b,_0x1f81e4){var _0x24884b=_0x4eebac,_0x400cf7;_0xd3810b===((_0x400cf7=this['_awaitingChangeset'])==null?void 0x0:_0x400cf7['reqId'])&&(this[_0x24884b(0x375)](),this['_resendTimeout']=_0x1f81e4===0x0?0x3e8:_0x1f81e4*0x2);}[_0x4eebac(0x1cd)](){var _0x3fcf0c=_0x4eebac,_0x4114e9;(_0x4114e9=this[_0x3fcf0c(0x179)])==null||_0x4114e9[_0x3fcf0c(0x23f)](),this[_0x3fcf0c(0x2f8)]=0x0;}},__name(_a9,'AwaitingWithPendingState'),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x24acff,_0x13b886,_0x27564a,_0x17fce5,_0x367c40,_0x37783e=!0x1,_0x2f5014,_0x58b0a8,_0x3690ca,_0xcc5555,_0x401eb1,_0x50030d,_0x532c95){var _0x10273c=_0x4eebac;super(_0x24acff,_0x13b886,_0x27564a,_0x17fce5,_0x367c40,_0x58b0a8,_0x3690ca,_0xcc5555,_0x532c95),__publicField(this,'status',_0x10273c(0x3fb)),(this['_isPermissionRej']=_0x37783e,this[_0x10273c(0x325)]=_0x2f5014,this[_0x10273c(0x3b8)]=_0x401eb1,this[_0x10273c(0x3f1)]=_0x50030d,this[_0x10273c(0x341)]=_0x532c95,this[_0x10273c(0x345)](),this[_0x10273c(0x40a)](),this[_0x10273c(0x2ae)]());}[_0x4eebac(0x3c8)](){return this;}[_0x4eebac(0x2e4)](){return this;}['onRemoteAck'](){return this;}[_0x4eebac(0x38c)](){return this;}[_0x4eebac(0x334)](){return this;}[_0x4eebac(0x3a5)](){return this;}[_0x4eebac(0x2a8)](){return this;}['resend'](){var _0x476d12=_0x4eebac;throw new Error(_0x476d12(0x392));}['_clearLocalCache'](){var _0x3a43d9=_0x4eebac,_0x572b20;(_0x572b20=this[_0x3a43d9(0x2c4)])==null||_0x572b20[_0x3a43d9(0x22a)](this['unitID'],this[_0x3a43d9(0x41c)],null,[]);}[_0x4eebac(0x345)](){var _0x3b7a37=_0x4eebac;this['_isPermissionRej']?this['_collaborationUIEventService'][_0x3b7a37(0x414)]({'id':CollaborationUIEventId[_0x3b7a37(0x3fd)]}):this[_0x3b7a37(0x3f1)][_0x3b7a37(0x414)]({'id':CollaborationUIEventId[_0x3b7a37(0x1d0)]});}[_0x4eebac(0x2ae)](){var _0x19168f=_0x4eebac;this[_0x19168f(0x325)][_0x19168f(0x3bd)](new WorkbookEditablePermission(this[_0x19168f(0x31d)])['id'],!0x1);}},__name(_a10,_0x4eebac(0x332)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x3dcf53,_0x13eaf9,_0x5d6cf7,_0x3d9563,_0x31b46c,_0x2efc5b,_0x33f774,_0x17899f,_0x227570,_0x2bbd82){var _0x2f530c=_0x4eebac;super(_0x3dcf53,_0x13eaf9,_0x5d6cf7,_0x3d9563,_0x31b46c,_0x17899f,_0x227570,_0x33f774,_0x2bbd82),__publicField(this,_0x2f530c(0x299),'offline'),this[_0x2f530c(0x2d3)]=_0x2efc5b;}['appendMutation'](_0x2bbfc3){var _0x4b3ba7=_0x4eebac;return this['_pendingMutations'][_0x4b3ba7(0x2cd)](_0x2bbfc3),this[_0x4b3ba7(0x2c6)](),this;}[_0x4eebac(0x2e4)](_0x37c700){var _0x2300bf=_0x4eebac;throw new Error(_0x2300bf(0x373));}['onRemoteAck'](){var _0x270792=_0x4eebac;throw new Error(_0x270792(0x386));}[_0x4eebac(0x38c)](){var _0x451bc2=_0x4eebac;throw new Error(_0x451bc2(0x2d5));}[_0x4eebac(0x334)](){return this;}[_0x4eebac(0x3a5)](){return this;}['toggleOnline'](){var _0x15448a=_0x4eebac;const {_injector:_0x1018a2,_pendingMutations:_0x384928,_awaitingChangeset:_0x5bd007,unitID:_0x328e81,_handler:_0xc2f37d,type:_0x44e237}=this,_0x327189=createOnlineState(_0x1018a2,_0x328e81,_0x44e237,_0x5bd007,_0x384928,_0xc2f37d);return _0x327189 instanceof PendingState?_0x327189[_0x15448a(0x252)]():(_0x327189 instanceof AwaitingWithPendingState||_0x327189 instanceof AwaitingState)&&_0x327189[_0x15448a(0x375)](),_0x327189;}[_0x4eebac(0x375)](){var _0x5abd41=_0x4eebac;throw new Error(_0x5abd41(0x15a));}},__name(_a11,_0x4eebac(0x402)),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x40b04c,_0x3531fa,_0x159559,_0x432489,_0x2f7299,_0x3050db,_0x12c62a,_0x562d7f,_0x2507c8,_0x88783a,_0x2a598b,_0x376ae1,_0x1a722a,_0x461c76){var _0x33ae7c=_0x4eebac;super(_0x40b04c,_0x3531fa,_0x159559,_0x432489,_0x12c62a,_0x2a598b,_0x376ae1,_0x2507c8,_0x461c76),__publicField(this,_0x33ae7c(0x299),'fetch_missing'),(this[_0x33ae7c(0x240)]=_0x2f7299,this[_0x33ae7c(0x40e)]=_0x3050db,this['_injector']=_0x562d7f,this[_0x33ae7c(0x23a)]=_0x88783a,this[_0x33ae7c(0x176)]=_0x1a722a,this[_0x33ae7c(0x341)]=_0x461c76);}[_0x4eebac(0x3d8)](_0x55c866){var _0x4595eb=_0x4eebac;try{const _0x5642ec=[..._0x55c866,...this[_0x4595eb(0x40e)]],_0xcc10b3=[this[_0x4595eb(0x27f)]||this[_0x4595eb(0x240)]][_0x4595eb(0x281)](_0x3c4d80=>!!_0x3c4d80);let _0x521ed5,_0xa03c7a;if(_0xcc10b3[_0x4595eb(0x25b)]){const _0x49b6be=this[_0x4595eb(0x176)][_0x4595eb(0x34f)](_0x5642ec,_0xcc10b3,!0x1);if(!isTransformChangesetsSuccess(_0x49b6be))throw _0x49b6be[_0x4595eb(0x154)];_0x521ed5=_0x49b6be[_0x4595eb(0x19a)],_0xa03c7a=_0x49b6be[_0x4595eb(0x182)];}else _0x521ed5=_0x5642ec,_0xa03c7a=[];let _0x1b2bd5=this[_0x4595eb(0x321)];_0x521ed5[_0x4595eb(0x436)](_0x39f8e2=>{var _0x4d4541=_0x4595eb;let _0x5c47d0;if(_0x1b2bd5['length']){const _0x4cdfc3=this[_0x4d4541(0x176)][_0x4d4541(0x26c)](_0x39f8e2,_0x1b2bd5);if(!isTransformMutationsWithChangesetSuccess(_0x4cdfc3))throw _0x4cdfc3[_0x4d4541(0x154)];_0x5c47d0=_0x4cdfc3['c1Prime'],_0x1b2bd5=_0x4cdfc3['m2Prime'];}else _0x5c47d0=_0x39f8e2;this[_0x4d4541(0x222)](_0x5c47d0);}),this[_0x4595eb(0x240)]&&this[_0x4595eb(0x42e)](),this['_awaitingChangeset']&&_0xa03c7a[_0x4595eb(0x25b)]&&(_0xa03c7a[0x0][_0x4595eb(0x29c)]=this[_0x4595eb(0x150)]());let _0x23d955;if(this[_0x4595eb(0x27f)]&&_0x1b2bd5['length']!==0x0)_0x23d955=this[_0x4595eb(0x2d3)][_0x4595eb(0x145)](AwaitingWithPendingState,this['unitID'],this[_0x4595eb(0x41c)],_0xa03c7a[0x0],_0x1b2bd5,this['_handler'],void 0x0);else{if(this[_0x4595eb(0x27f)]&&_0x1b2bd5[_0x4595eb(0x25b)]===0x0)_0xa03c7a[0x0][_0x4595eb(0x29c)]=this['_getCurrentRevision'](),_0x23d955=this[_0x4595eb(0x2d3)][_0x4595eb(0x145)](AwaitingState,this[_0x4595eb(0x31d)],this[_0x4595eb(0x41c)],_0xa03c7a[0x0],this[_0x4595eb(0x3b2)]);else{if(_0x1b2bd5['length']!==0x0){const _0x1ead37=this['_injector'][_0x4595eb(0x145)](PendingState,this['unitID'],this[_0x4595eb(0x41c)],_0x1b2bd5,this[_0x4595eb(0x3b2)]);_0x1ead37[_0x4595eb(0x252)](),_0x23d955=_0x1ead37;}else _0x23d955=this[_0x4595eb(0x2d3)][_0x4595eb(0x145)](SyncedState,this[_0x4595eb(0x31d)],this['type'],this[_0x4595eb(0x3b2)]);}}return _0x23d955[_0x4595eb(0x2c6)](),_0x23d955;}catch(_0x5119c9){return this[_0x4595eb(0x23a)][_0x4595eb(0x154)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x5119c9),this['_injector'][_0x4595eb(0x145)](ConflictState,this[_0x4595eb(0x31d)],this['type'],this[_0x4595eb(0x27f)],this[_0x4595eb(0x321)],this[_0x4595eb(0x3b2)],!0x1);}}[_0x4eebac(0x375)](){var _0x40e043=_0x4eebac;throw new Error(_0x40e043(0x419));}[_0x4eebac(0x3c8)](_0xf9eebf){var _0x3bd201=_0x4eebac;return this[_0x3bd201(0x321)][_0x3bd201(0x2cd)](_0xf9eebf),this;}[_0x4eebac(0x2e4)](_0x43fb9f){var _0x2c925a=_0x4eebac;return this[_0x2c925a(0x40e)][_0x2c925a(0x2cd)](_0x43fb9f),this;}[_0x4eebac(0x287)](_0x556b99){var _0x2d3ef3=_0x4eebac;if(this['_awaitingChangeset'])return this[_0x2d3ef3(0x240)]=this[_0x2d3ef3(0x27f)],this['_awaitingChangeset']=null,this;throw new Error(_0x2d3ef3(0x2c7));}[_0x4eebac(0x38c)](_0x1f912e){var _0x3feab7=_0x4eebac;return this[_0x3feab7(0x199)](!!(_0x1f912e!=null&&_0x1f912e['isPermissionRej']));}['onRemoteRetry'](){return this;}['toggleOffline'](){var _0x533e3a=_0x4eebac;return this[_0x533e3a(0x2d3)]['createInstance'](OfflineState,this['unitID'],this[_0x533e3a(0x41c)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x533e3a(0x3b2)]);}[_0x4eebac(0x2a8)](){return this;}['_onConflict'](_0xd7467c){var _0x28809f=_0x4eebac;return this['_injector']['createInstance'](ConflictState,this[_0x28809f(0x31d)],this[_0x28809f(0x41c)],this['_awaitingChangeset'],this[_0x28809f(0x321)],this[_0x28809f(0x3b2)],_0xd7467c);}},__name(_a12,_0x4eebac(0x2a4)),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x4d98ff,_0x1d07c8,_0x54ff41,_0x4ce212,_0x465026,_0x53cd33){var _0x175666=_0x4eebac;return _0x4ce212&&_0x465026['length']?_0x4d98ff[_0x175666(0x145)](AwaitingWithPendingState,_0x1d07c8,_0x54ff41,_0x4ce212,_0x465026,_0x53cd33,void 0x0):_0x4ce212?_0x4d98ff['createInstance'](AwaitingState,_0x1d07c8,_0x54ff41,_0x4ce212,_0x53cd33):_0x465026[_0x175666(0x25b)]?_0x4d98ff[_0x175666(0x145)](PendingState,_0x1d07c8,_0x54ff41,_0x465026,_0x53cd33):_0x4d98ff[_0x175666(0x145)](SyncedState,_0x1d07c8,_0x54ff41,_0x53cd33);}__name(createOnlineState,'createOnlineState');var __defProp$c=Object[_0x4eebac(0x18f)],__getOwnPropDesc$c=Object[_0x4eebac(0x2a7)],__decorateClass$c=__name((_0x125abc,_0x54a93b,_0x4ef024,_0x3a0883)=>{var _0x43094e=_0x4eebac;for(var _0x4c4b45=_0x3a0883>0x1?void 0x0:_0x3a0883?__getOwnPropDesc$c(_0x54a93b,_0x4ef024):_0x54a93b,_0x15c910=_0x125abc[_0x43094e(0x25b)]-0x1,_0x2988b5;_0x15c910>=0x0;_0x15c910--)(_0x2988b5=_0x125abc[_0x15c910])&&(_0x4c4b45=(_0x3a0883?_0x2988b5(_0x54a93b,_0x4ef024,_0x4c4b45):_0x2988b5(_0x4c4b45))||_0x4c4b45);return _0x3a0883&&_0x4c4b45&&__defProp$c(_0x54a93b,_0x4ef024,_0x4c4b45),_0x4c4b45;},_0x4eebac(0x30e)),__decorateParam$c=__name((_0x576e21,_0x23787f)=>(_0x3eb4a1,_0xfb5810)=>_0x23787f(_0x3eb4a1,_0xfb5810,_0x576e21),_0x4eebac(0x3f8)),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x482f65,_0x2f40c7,_0x5ccc86,_0x1c71e3,_0x36e3f4,_0x396069,_0x29e2c9,_0x2c74c2,_0x4985d9,_0x418d4d,_0x293d90,_0x3bfc29,_0x8f45cb){var _0x53e028=_0x4eebac;super(),__publicField(this,_0x53e028(0x3ce),new BehaviorSubject(null)),__publicField(this,_0x53e028(0x395),this[_0x53e028(0x3ce)][_0x53e028(0x39c)]()),__publicField(this,_0x53e028(0x214)),__publicField(this,_0x53e028(0x33b),!0x1),__publicField(this,_0x53e028(0x36b),''),__publicField(this,_0x53e028(0x218),0x0),__publicField(this,_0x53e028(0x31c),this[_0x53e028(0x395)][_0x53e028(0x385)](_0x274555(_0x3ebafd=>_0x3ebafd?_0x3ebafd[_0x53e028(0x299)]:CollaborationStatus['OFFLINE']),shareReplay(0x1))),__publicField(this,'_transitionLocked',!0x1),__publicField(this,'_remoteChangesetQueue',[]),(this[_0x53e028(0x31d)]=_0x482f65,this[_0x53e028(0x424)]=_0x2f40c7,this[_0x53e028(0x3a2)]=_0x5ccc86,this['_injector']=_0x1c71e3,this['_compressMutationService']=_0x36e3f4,this[_0x53e028(0x3b8)]=_0x396069,this[_0x53e028(0x28b)]=_0x29e2c9,this[_0x53e028(0x2ba)]=_0x2c74c2,this[_0x53e028(0x23a)]=_0x4985d9,this[_0x53e028(0x10c)]=_0x418d4d,this['_permissionService']=_0x293d90,this[_0x53e028(0x30c)]=_0x3bfc29,this[_0x53e028(0x2c4)]=_0x8f45cb);}get[_0x4eebac(0x391)](){var _0x43805c=_0x4eebac;return this[_0x43805c(0x214)];}async[_0x4eebac(0x351)](){var _0x55315a=_0x4eebac;if(this[_0x55315a(0x391)])throw new Error(_0x55315a(0x123));await this[_0x55315a(0x303)]();}['pauseCollaboration'](){var _0x3741ff=_0x4eebac;return this[_0x3741ff(0x33b)]=!0x0,toDisposable(()=>{var _0x51a2ea=_0x3741ff;this[_0x51a2ea(0x33b)]=!0x1,this[_0x51a2ea(0x229)]();});}[_0x4eebac(0x282)](_0x2db7cb){this['_onLocalMutation'](_0x2db7cb);}[_0x4eebac(0x13b)](_0x219524){var _0xf3e0e4=_0x4eebac;this[_0xf3e0e4(0x214)]=_0x219524,this[_0xf3e0e4(0x3ce)][_0xf3e0e4(0x225)](_0x219524);}async[_0x4eebac(0x303)](){var _0x4e91bf=_0x4eebac,_0x10bae5;this['_updateState'](await this[_0x4e91bf(0x1a7)]()),this['_singleActiveUnitService']&&((_0x10bae5=this[_0x4e91bf(0x30c)])==null||_0x10bae5[_0x4e91bf(0x177)](this[_0x4e91bf(0x31d)]),this[_0x4e91bf(0x378)](this[_0x4e91bf(0x30c)][_0x4e91bf(0x313)](this[_0x4e91bf(0x31d)])['subscribe'](_0xf64bf5=>{var _0x2b2eae=_0x4e91bf;this[_0x2b2eae(0x23a)][_0x2b2eae(0x1f8)](_0x2b2eae(0x107),'editing\x20status\x20changed\x20to',_0xf64bf5),_0xf64bf5===UnitStatus[_0x2b2eae(0x10b)]?(this[_0x2b2eae(0x2ba)][_0x2b2eae(0x414)]({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x2b2eae(0x325)]['updatePermissionPoint'](new WorkbookEditablePermission(this['unitID'])['id'],!0x1),this[_0x2b2eae(0x325)][_0x2b2eae(0x21b)](!0x1)):(this['_permissionService'][_0x2b2eae(0x3bd)](new WorkbookEditablePermission(this['unitID'])['id'],!0x0),this['_permissionService'][_0x2b2eae(0x21b)](!0x0));})));let _0x3df7ab=!0x1;return this[_0x4e91bf(0x378)](this['session'][_0x4e91bf(0x24b)][_0x4e91bf(0x127)](_0x4c60d7=>{var _0x3dc690=_0x4e91bf;_0x4c60d7===SessionStatus['ONLINE']?this['_toggleOnline'](_0x3df7ab):_0x4c60d7===SessionStatus['OFFLINE']&&(_0x3df7ab=!0x0,this[_0x3dc690(0x358)]());})),this['disposeWithMe'](this[_0x4e91bf(0x424)][_0x4e91bf(0x368)]['subscribe'](_0x28c597=>{var _0xda9e49=_0x4e91bf;try{switch(_0x28c597['eventID']){case CollaborationEvent[_0xda9e49(0x416)]:{this[_0xda9e49(0x1a2)](parseProtocolChangeset(_0x28c597[_0xda9e49(0x142)]));break;}case CollaborationEvent[_0xda9e49(0x271)]:{this['_onRemoteACK'](_0x28c597[_0xda9e49(0x142)]);break;}case CollaborationEvent[_0xda9e49(0x3f0)]:{this[_0xda9e49(0x405)]();break;}case CollaborationEvent[_0xda9e49(0x38f)]:{this[_0xda9e49(0x3a9)](_0x28c597['data']);break;}case CollaborationEvent[_0xda9e49(0x324)]:{this[_0xda9e49(0x10e)](_0x28c597[_0xda9e49(0x142)]['changesets'][_0xda9e49(0x106)](_0x448148=>parseProtocolChangeset(_0x448148)));break;}case CollaborationEvent[_0xda9e49(0x204)]:{this['_onRemoteRejected']({'isPermissionRej':!0x0});break;}case CollaborationEvent[_0xda9e49(0x25c)]:break;}}catch(_0x38f337){throw console['error']('Error\x20on\x20receiving\x20event',_0x38f337),_0x38f337;}})),this[_0x4e91bf(0x214)];}[_0x4eebac(0x403)](){var _0x52cb98=_0x4eebac;this[_0x52cb98(0x2c8)]=!0x1;}[_0x4eebac(0x32c)](){var _0x2c5027=_0x4eebac;if(this[_0x2c5027(0x2c8)])throw new Error(_0x2c5027(0x14d));this[_0x2c5027(0x2c8)]=!0x0;}[_0x4eebac(0x2b4)](_0x2c3bff){var _0x2e7eef=_0x4eebac;this[_0x2e7eef(0x32c)](),this[_0x2e7eef(0x13b)](this[_0x2e7eef(0x214)][_0x2e7eef(0x3c8)](_0x2c3bff)),this[_0x2e7eef(0x403)]();}[_0x4eebac(0x1a2)](_0x473c3a){var _0x34f0c7=_0x4eebac;if(!(_0x473c3a['revision']<=this[_0x34f0c7(0x28b)]['getCurrentRevOfUnit'](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x34f0c7(0x2cd)](_0x473c3a);return;}this['_applyRemoteChangeset'](_0x473c3a);}}[_0x4eebac(0x229)](){var _0x48045e=_0x4eebac;this['_remoteChangesetQueue']['forEach'](_0x32e36c=>this[_0x48045e(0x1f4)](_0x32e36c)),this[_0x48045e(0x18c)]=[];}[_0x4eebac(0x1f4)](_0x218ed0){var _0x1f4dbe=_0x4eebac;const _0x42ad71=this['_compressMutationService'][_0x1f4dbe(0x2c1)]['fetchThroughInterceptors'](this[_0x1f4dbe(0x116)][_0x1f4dbe(0x2c1)][_0x1f4dbe(0x2fb)]()[_0x1f4dbe(0x2de)])(_0x218ed0[_0x1f4dbe(0x387)],null)||_0x218ed0[_0x1f4dbe(0x387)],_0x377ab0={..._0x218ed0,'mutations':_0x42ad71};this[_0x1f4dbe(0x32c)](),this[_0x1f4dbe(0x13b)](this['_state'][_0x1f4dbe(0x2e4)](_0x377ab0)),this[_0x1f4dbe(0x403)]();}['_onRemoteACK'](_0xcc3c3f){var _0x32d8c0=_0x4eebac;this[_0x32d8c0(0x32c)](),this[_0x32d8c0(0x13b)](this[_0x32d8c0(0x214)]['onRemoteAck'](_0xcc3c3f)),this['_unlockTransition']();}[_0x4eebac(0x405)](_0x4bb206){var _0x21d657=_0x4eebac;this['_lockTransition'](),this[_0x21d657(0x13b)](this[_0x21d657(0x214)][_0x21d657(0x38c)](_0x4bb206)),this[_0x21d657(0x403)]();}['_onRemoteRetry'](_0x268c91){var _0x136d6d=_0x4eebac;this[_0x136d6d(0x32c)](),this[_0x136d6d(0x13b)](this['_state'][_0x136d6d(0x334)](_0x268c91)),this[_0x136d6d(0x403)]();}[_0x4eebac(0x10e)](_0x3326d0){var _0x5477f0=_0x4eebac;if(!(this[_0x5477f0(0x214)]instanceof FetchingMissState))throw new TypeError(_0x5477f0(0x29d));const _0x1d181a=_0x3326d0[_0x5477f0(0x106)](_0x5a053f=>{var _0x5b90f6=_0x5477f0;const _0x2459f8=this['_compressMutationService'][_0x5b90f6(0x2c1)][_0x5b90f6(0x1b3)](this['_compressMutationService'][_0x5b90f6(0x2c1)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x5a053f[_0x5b90f6(0x387)],null)||_0x5a053f[_0x5b90f6(0x387)];return{..._0x5a053f,'mutations':_0x2459f8};});this[_0x5477f0(0x32c)](),this['_updateState'](this[_0x5477f0(0x214)][_0x5477f0(0x3d8)](_0x1d181a)),this[_0x5477f0(0x403)]();}[_0x4eebac(0x358)](){var _0x25200a=_0x4eebac;this[_0x25200a(0x32c)](),this[_0x25200a(0x13b)](this[_0x25200a(0x214)][_0x25200a(0x3a5)]()),this[_0x25200a(0x403)]();}[_0x4eebac(0x258)](_0x56055a=!0x1){var _0x2f7fce=_0x4eebac;this[_0x2f7fce(0x32c)](),this['_updateState'](this['_state'][_0x2f7fce(0x2a8)]()),this[_0x2f7fce(0x403)]();const _0x15a54f=this[_0x2f7fce(0x214)];_0x56055a&&_0x15a54f instanceof SyncedState&&(this[_0x2f7fce(0x32c)](),this['_updateState'](_0x15a54f[_0x2f7fce(0x1c4)]()),this[_0x2f7fce(0x403)]());}async[_0x4eebac(0x1a7)](){return new Promise(_0x300855=>{var _0x47ca0f=_0x5570;this['session'][_0x47ca0f(0x24b)][_0x47ca0f(0x385)](_0x3e406a(0x1))['subscribe'](async _0x5ced0d=>{var _0x594f3e=_0x47ca0f;_0x300855(await this[_0x594f3e(0x187)](_0x5ced0d===SessionStatus[_0x594f3e(0x1f6)]));});});}['_createHandler'](){var _0x492ac5=_0x4eebac;const _0xc779ff=this[_0x492ac5(0x31d)];return{'onStateChange':__name((_0x19c1d4,_0x26cf2e)=>{var _0x1e675f=_0x492ac5;if(_0x19c1d4!==this['_state'])throw new Error(_0x1e675f(0x232)+_0x19c1d4[_0x1e675f(0x299)]+'\x0aAfter:\x20'+_0x26cf2e[_0x1e675f(0x299)]+_0x1e675f(0x393)+this[_0x1e675f(0x214)][_0x1e675f(0x299)]);this[_0x1e675f(0x13b)](_0x26cf2e);},'onStateChange'),'onSendChangeset':__name(_0x1649d6=>{var _0x2dcb58=_0x492ac5;_0x1649d6[_0x2dcb58(0x144)]||(_0x1649d6['sid']=this['_changesetSessionId'],_0x1649d6[_0x2dcb58(0x16d)]=++this[_0x2dcb58(0x218)]);const _0x3a3fb9={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x1649d6[_0x2dcb58(0x31d)],'unitType':this['_type'],'changeset':_0x1649d6,'memberID':this[_0x2dcb58(0x424)][_0x2dcb58(0x335)]()}};this[_0x2dcb58(0x424)][_0x2dcb58(0x1cc)](_0x3a3fb9,this['unitID']);},_0x492ac5(0x2ff)),'onMissingChangesets':__name(({from:_0x471ae5,to:_0x50aa3c})=>{var _0x1141ce=_0x492ac5;this[_0x1141ce(0x23a)][_0x1141ce(0x1f8)]('[CollaborationEntity]',_0x1141ce(0x2e9)+_0x471ae5+_0x1141ce(0x1b4)+_0x50aa3c);const _0x3e774a={'eventID':CollaborationEvent[_0x1141ce(0x3aa)],'data':{'unitID':_0xc779ff,'unitType':this['_type'],'from':_0x471ae5,'to':_0x50aa3c}};this[_0x1141ce(0x424)]['send'](_0x3e774a,this[_0x1141ce(0x31d)]);},_0x492ac5(0x191))};}async[_0x4eebac(0x187)](_0x9cafad){var _0xb52550=_0x4eebac,_0x322bd9,_0x53c251,_0x3baeb6;const _0x4de93a=await((_0x322bd9=this[_0xb52550(0x2c4)])==null?void 0x0:_0x322bd9['loadOfflineData'](this['unitID'])),_0xed7e1b=(_0x53c251=_0x4de93a==null?void 0x0:_0x4de93a[_0xb52550(0x387)])!=null?_0x53c251:[],_0x30c56e=(_0x3baeb6=_0x4de93a==null?void 0x0:_0x4de93a[_0xb52550(0x151)])!=null?_0x3baeb6:null,_0x4e0437=!!(_0x30c56e!=null&&_0x30c56e[_0xb52550(0x144)])&&!!(_0x30c56e!=null&&_0x30c56e[_0xb52550(0x16d)]);this['_changesetSessionId']=_0x4e0437?_0x30c56e[_0xb52550(0x144)]:v4(),this['_changesetReqId']=_0x4e0437?_0x30c56e[_0xb52550(0x16d)]:0x0;const _0xbdcb3a=this[_0xb52550(0x31d)];try{this[_0xb52550(0x1a1)](_0x30c56e,_0xed7e1b);}catch(_0x1ac5ac){this[_0xb52550(0x23a)][_0xb52550(0x154)](_0x1ac5ac);}const _0x1d466e=this['_createHandler']();if(_0x9cafad){const _0x69f00b=createOnlineState(this['_injector'],_0xbdcb3a,this[_0xb52550(0x3a2)],_0x30c56e,_0xed7e1b,_0x1d466e);return _0x69f00b instanceof PendingState?_0x69f00b[_0xb52550(0x252)]():(_0x69f00b instanceof AwaitingWithPendingState||_0x69f00b instanceof AwaitingState)&&_0x69f00b[_0xb52550(0x375)](),_0x69f00b;}return this['_injector'][_0xb52550(0x145)](OfflineState,_0xbdcb3a,this[_0xb52550(0x3a2)],_0x30c56e,_0xed7e1b,_0x1d466e);}[_0x4eebac(0x1a1)](_0x1ab989,_0x16a177){var _0x2f6838=_0x4eebac,_0x2ecdf6,_0x26549e;const _0x466370=this['_compressMutationService'][_0x2f6838(0x2c1)][_0x2f6838(0x1b3)](this[_0x2f6838(0x116)][_0x2f6838(0x2c1)][_0x2f6838(0x2fb)]()['COMPRESS_MUTATION_APPLY']);(_0x2ecdf6=_0x466370((_0x1ab989==null?void 0x0:_0x1ab989['mutations'])||[],null))==null||_0x2ecdf6['forEach'](_0x6cda5e=>this[_0x2f6838(0x10c)][_0x2f6838(0x210)](_0x6cda5e['id'],_0x6cda5e[_0x2f6838(0x148)])),(_0x26549e=_0x466370(_0x16a177||[],null))==null||_0x26549e[_0x2f6838(0x436)](_0x4d7bb5=>this['_commandService'][_0x2f6838(0x210)](_0x4d7bb5['id'],_0x4d7bb5[_0x2f6838(0x148)]));}},__name(_a13,_0x4eebac(0x17e)),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x9752ec,_0x36d80b,_0x2ba5e1,_0x2ff23d,_0x44123c,_0x334345,_0x4aa4bb,_0x13f5e7,_0x28938a,_0x161cc3,_0x173ae6,_0x4c55ce,_0x9c93b8){var _0x26492e=_0x4eebac;super(_0x9752ec,_0x2ba5e1,_0x36d80b,_0x2ff23d,_0x44123c,_0x334345,_0x4aa4bb,_0x13f5e7,_0x28938a,_0x161cc3,_0x173ae6,_0x4c55ce,_0x9c93b8),__publicField(this,'_handlerCallback',null),(this[_0x26492e(0x31d)]=_0x9752ec,this[_0x26492e(0x41c)]=_0x36d80b);}[_0x4eebac(0x39a)](_0x4d21fd){var _0x4631c0=_0x4eebac;this[_0x4631c0(0x336)]=_0x4d21fd;}[_0x4eebac(0x273)](){var _0x11f4d4=_0x4eebac;this['_handlerCallback']=null,super[_0x11f4d4(0x273)]();}[_0x4eebac(0x1d2)](){var _0x181f6e=_0x4eebac;const _0x53f1e1=super[_0x181f6e(0x1d2)]();return _0x53f1e1[_0x181f6e(0x3dd)]=_0x24f6ec=>{var _0x19d2ce=_0x181f6e,_0xe3e096,_0x3845e4;return(_0x3845e4=(_0xe3e096=this[_0x19d2ce(0x336)])==null?void 0x0:_0xe3e096[_0x19d2ce(0x3dd)])==null?void 0x0:_0x3845e4[_0x19d2ce(0x413)](_0xe3e096,_0x24f6ec);},_0x53f1e1[_0x181f6e(0x3cf)]=_0x3bce64=>{var _0x2792dc=_0x181f6e,_0x303e5a,_0x29a097;return(_0x29a097=(_0x303e5a=this[_0x2792dc(0x336)])==null?void 0x0:_0x303e5a[_0x2792dc(0x3cf)])==null?void 0x0:_0x29a097[_0x2792dc(0x413)](_0x303e5a,_0x3bce64);},_0x53f1e1[_0x181f6e(0x251)]=_0x148309=>{var _0x4778d4=_0x181f6e,_0x3a5d29,_0x526718;return(_0x526718=(_0x3a5d29=this[_0x4778d4(0x336)])==null?void 0x0:_0x3a5d29[_0x4778d4(0x251)])==null?void 0x0:_0x526718[_0x4778d4(0x413)](_0x3a5d29,_0x148309);},_0x53f1e1[_0x181f6e(0x1c0)]=_0x18d6d2=>{var _0xc8a1cf=_0x181f6e,_0x413964,_0x5c938c;return(_0x5c938c=(_0x413964=this[_0xc8a1cf(0x336)])==null?void 0x0:_0x413964[_0xc8a1cf(0x1c0)])==null?void 0x0:_0x5c938c[_0xc8a1cf(0x413)](_0x413964,_0x18d6d2);},_0x53f1e1[_0x181f6e(0x100)]=_0x4075e7=>{var _0x37212c=_0x181f6e,_0x4b4d53,_0x169324,_0xeea8d4;if(!((_0x4b4d53=this[_0x37212c(0x336)])!=null&&_0x4b4d53['onTransformRemoteChangesetByIMECache']))throw new Error(_0x37212c(0x16b));return(_0xeea8d4=(_0x169324=this[_0x37212c(0x336)])==null?void 0x0:_0x169324[_0x37212c(0x100)])==null?void 0x0:_0xeea8d4[_0x37212c(0x413)](_0x169324,_0x4075e7);},_0x53f1e1['onTransformRemoteChangesetByStateCache']=_0x6fee8c=>{var _0x4ef22a=_0x181f6e,_0x14aa91,_0x5e587d,_0x546b00;if(!((_0x14aa91=this['_handlerCallback'])!=null&&_0x14aa91[_0x4ef22a(0x22f)]))throw new Error(_0x4ef22a(0x2e3));return(_0x546b00=(_0x5e587d=this[_0x4ef22a(0x336)])==null?void 0x0:_0x5e587d[_0x4ef22a(0x22f)])==null?void 0x0:_0x546b00[_0x4ef22a(0x413)](_0x5e587d,_0x6fee8c);},_0x53f1e1;}async['_init'](){var _0x1711e9=_0x4eebac;const _0x116765=await super[_0x1711e9(0x303)]();return this[_0x1711e9(0x378)](this[_0x1711e9(0x10c)][_0x1711e9(0x41b)]((_0x1735de,_0x8528aa)=>{var _0x607026=_0x1711e9;if(_0x1735de[_0x607026(0x41c)]!==CommandType[_0x607026(0x3f6)]||_0x8528aa!=null&&_0x8528aa[_0x607026(0x443)]||_0x8528aa!=null&&_0x8528aa[_0x607026(0x224)]||_0x1735de['id']===RichTextEditingMutation['id'])return;const _0x2a2ea6=_0x1735de[_0x607026(0x148)];if((_0x2a2ea6==null?void 0x0:_0x2a2ea6['unitId'])!==this[_0x607026(0x31d)])return;const _0x1f9a09=_0x1735de,_0x5dcf52=this[_0x607026(0x116)][_0x607026(0x2c1)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x607026(0x2c1)][_0x607026(0x2fb)]()[_0x607026(0x32d)])([_0x1f9a09],null)||[_0x1f9a09];this[_0x607026(0x2b4)](_0x5dcf52[0x0]);})),_0x116765;}},__name(_a14,_0x4eebac(0x1f5)),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x89478d,_0x44b7a8,_0x1c53e0,_0x7f42c,_0x5d0076,_0x39f40a,_0x37da65,_0x3fad5b,_0x22679d,_0x195fad,_0x2ba773,_0x46a7ca,_0x4c7f0f,_0x27fe2e){var _0x1d43f3=_0x4eebac;super(_0x89478d,_0x1c53e0,_0x44b7a8,_0x7f42c,_0x5d0076,_0x39f40a,_0x37da65,_0x22679d,_0x195fad,_0x2ba773,_0x46a7ca,_0x4c7f0f,_0x27fe2e),this['unitID']=_0x89478d,this[_0x1d43f3(0x41c)]=_0x44b7a8,this['_sheetTransformSelectionsService']=_0x3fad5b;}[_0x4eebac(0x1d2)](){var _0x234298=_0x4eebac;const _0x413bb7=super[_0x234298(0x1d2)]();return _0x413bb7[_0x234298(0x251)]=_0x244d1a=>this[_0x234298(0x1ec)][_0x234298(0x294)](_0x244d1a),_0x413bb7;}async[_0x4eebac(0x303)](){var _0x2b4a27=_0x4eebac;const _0x284af3=await super[_0x2b4a27(0x303)]();return this[_0x2b4a27(0x378)](this[_0x2b4a27(0x10c)][_0x2b4a27(0x41b)]((_0x104f32,_0x76758c)=>{var _0x26a4de=_0x2b4a27;if(_0x104f32[_0x26a4de(0x41c)]!==CommandType[_0x26a4de(0x3f6)]||_0x76758c!=null&&_0x76758c[_0x26a4de(0x443)]||_0x76758c!=null&&_0x76758c[_0x26a4de(0x224)])return;const _0xde4c04=_0x104f32[_0x26a4de(0x148)];if((_0xde4c04==null?void 0x0:_0xde4c04[_0x26a4de(0x2d6)])!==this[_0x26a4de(0x31d)])return;const _0x233f68=_0x104f32,_0x16d6d6=this[_0x26a4de(0x116)][_0x26a4de(0x2c1)]['fetchThroughInterceptors'](this[_0x26a4de(0x116)][_0x26a4de(0x2c1)][_0x26a4de(0x2fb)]()['COMPRESS_MUTATION_SEND'])([_0x233f68],null)||[_0x233f68];this[_0x26a4de(0x2b4)](_0x16d6d6[0x0]);})),_0x284af3;}},__name(_a15,_0x4eebac(0x246)),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object[_0x4eebac(0x18f)],__getOwnPropDesc$b=Object[_0x4eebac(0x2a7)],__decorateClass$b=__name((_0xf7810d,_0x32b753,_0x544e07,_0x3a7a61)=>{var _0x1bdca1=_0x4eebac;for(var _0x3c3429=_0x3a7a61>0x1?void 0x0:_0x3a7a61?__getOwnPropDesc$b(_0x32b753,_0x544e07):_0x32b753,_0x4d9167=_0xf7810d[_0x1bdca1(0x25b)]-0x1,_0x44b270;_0x4d9167>=0x0;_0x4d9167--)(_0x44b270=_0xf7810d[_0x4d9167])&&(_0x3c3429=(_0x3a7a61?_0x44b270(_0x32b753,_0x544e07,_0x3c3429):_0x44b270(_0x3c3429))||_0x3c3429);return _0x3a7a61&&_0x3c3429&&__defProp$b(_0x32b753,_0x544e07,_0x3c3429),_0x3c3429;},_0x4eebac(0x2ea)),__decorateParam$b=__name((_0x281b81,_0xbd2b10)=>(_0x5797cb,_0x521688)=>_0xbd2b10(_0x5797cb,_0x521688,_0x281b81),_0x4eebac(0x42f)),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x28e834,_0x3b952f,_0x3695c6){var _0xd413b3=_0x4eebac;super(),__publicField(this,_0xd413b3(0x226),new Map()),__publicField(this,'_entityInit$',new Subject()),__publicField(this,_0xd413b3(0x38a),this['_entityInit$'][_0xd413b3(0x39c)]()),(this[_0xd413b3(0x2d3)]=_0x28e834,this[_0xd413b3(0x349)]=_0x3b952f,this[_0xd413b3(0x256)]=_0x3695c6,this[_0xd413b3(0x303)]());}[_0x4eebac(0x273)](){var _0x252a42=_0x4eebac;super[_0x252a42(0x273)](),this['_entities'][_0x252a42(0x436)](_0x235301=>_0x235301[_0x252a42(0x273)]()),this[_0x252a42(0x226)]['clear']();}[_0x4eebac(0x260)](_0x131c06){var _0x2e229f=_0x4eebac,_0x7fdd79;return(_0x7fdd79=this[_0x2e229f(0x226)][_0x2e229f(0x28a)](_0x131c06))!=null?_0x7fdd79:null;}[_0x4eebac(0x380)](_0xbdb597){var _0x1c4931=_0x4eebac;const _0x4965f6=this['getCollabEntity'](_0xbdb597);return _0x4965f6?of(_0x4965f6):this[_0x1c4931(0x2ee)]['pipe'](filter(_0x1ef285=>_0x1ef285[_0x1c4931(0x31d)]===_0xbdb597));}['readyForCollab'](_0x4bfcd8){var _0x413100=_0x4eebac;return firstValueFrom(this[_0x413100(0x380)](_0x4bfcd8)['pipe'](map(()=>{})));}[_0x4eebac(0x303)](){var _0x1c28b1=_0x4eebac;this[_0x1c28b1(0x256)][_0x1c28b1(0x1a5)](UniverInstanceType[_0x1c28b1(0x435)])[_0x1c28b1(0x385)](takeUntil(this[_0x1c28b1(0x168)]),delay(0x10))['subscribe'](async _0x3a4ebc=>{var _0x4dc4bd=_0x1c28b1;const _0x432e71=_0x3a4ebc[_0x4dc4bd(0x31e)](),_0x76d052=await this[_0x4dc4bd(0x15d)](_0x432e71,UniverType[_0x4dc4bd(0x435)]);this[_0x4dc4bd(0x226)][_0x4dc4bd(0x36d)](_0x432e71,_0x76d052);}),this[_0x1c28b1(0x256)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x1c28b1(0x420)])[_0x1c28b1(0x385)](takeUntil(this[_0x1c28b1(0x168)]),delay(0x10))[_0x1c28b1(0x385)](filter(_0x367c33=>!_0x367c33['getUnitId']()[_0x1c28b1(0x213)]('__')))[_0x1c28b1(0x127)](async _0x3f0620=>{var _0x2aa4be=_0x1c28b1;const _0x256e0a=_0x3f0620['getUnitId'](),_0x42be38=await this[_0x2aa4be(0x15d)](_0x256e0a,UniverType[_0x2aa4be(0x420)]);this[_0x2aa4be(0x226)][_0x2aa4be(0x36d)](_0x256e0a,_0x42be38);}),merge(this['_univerInstanceService'][_0x1c28b1(0x102)](UniverInstanceType[_0x1c28b1(0x435)]),this[_0x1c28b1(0x256)][_0x1c28b1(0x102)](UniverInstanceType[_0x1c28b1(0x420)]))[_0x1c28b1(0x385)](takeUntil(this['dispose$']))[_0x1c28b1(0x127)](_0xa87c6e=>{var _0x4daa8d=_0x1c28b1;const _0xdf0f06=_0xa87c6e['getUnitId'](),_0x3edad7=this[_0x4daa8d(0x226)][_0x4daa8d(0x28a)](_0xdf0f06);_0x3edad7&&(_0x3edad7['dispose'](),this['_entities'][_0x4daa8d(0x390)](_0xdf0f06));});}async[_0x4eebac(0x15d)](_0x2fa450,_0x34ef1d){var _0x5759da=_0x4eebac;const _0x56d154=await this[_0x5759da(0x349)][_0x5759da(0x21c)](_0x2fa450),_0x4f82af=this[_0x5759da(0x2d3)][_0x5759da(0x145)](this[_0x5759da(0x1b5)](_0x34ef1d),_0x2fa450,_0x34ef1d,_0x56d154);return await _0x4f82af[_0x5759da(0x351)](),this['_entityInit$'][_0x5759da(0x225)](_0x4f82af),_0x4f82af;}['_getCtorByUniverType'](_0x2cc40c){var _0x2019e7=_0x4eebac;switch(_0x2cc40c){case UniverType['UNIVER_DOC']:return DocCollaborationEntity;case UniverType[_0x2019e7(0x435)]:return SheetCollaborationEntity;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x2cc40c);}}},__name(_a16,'CollaborationController'),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object['defineProperty'],__getOwnPropDesc$a=Object[_0x4eebac(0x2a7)],__decorateClass$a=__name((_0x44561c,_0x1c26b2,_0x599a6b,_0x4a7b06)=>{var _0x57bbc7=_0x4eebac;for(var _0x3c5319=_0x4a7b06>0x1?void 0x0:_0x4a7b06?__getOwnPropDesc$a(_0x1c26b2,_0x599a6b):_0x1c26b2,_0x741dd5=_0x44561c[_0x57bbc7(0x25b)]-0x1,_0x56cc38;_0x741dd5>=0x0;_0x741dd5--)(_0x56cc38=_0x44561c[_0x741dd5])&&(_0x3c5319=(_0x4a7b06?_0x56cc38(_0x1c26b2,_0x599a6b,_0x3c5319):_0x56cc38(_0x3c5319))||_0x3c5319);return _0x4a7b06&&_0x3c5319&&__defProp$a(_0x1c26b2,_0x599a6b,_0x3c5319),_0x3c5319;},_0x4eebac(0x360)),__decorateParam$a=__name((_0x440585,_0x4a49a5)=>(_0x58ae20,_0x1ae452)=>_0x4a49a5(_0x58ae20,_0x1ae452,_0x440585),'__decorateParam$a');const DEFAULT_FILE_NAME_KEY='DEFAULT_FILE_NAME',UNIVER_DEFAULT_FILE_NAME=_0x4eebac(0x16c);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x3313a3,_0x3a099e){var _0x36ccd7=_0x4eebac;super(),this['_univerInstanceService']=_0x3313a3,this[_0x36ccd7(0x238)]=_0x3a099e,this[_0x36ccd7(0x303)]();}['_init'](){var _0xbe9ca1=_0x4eebac;this['disposeWithMe'](this[_0xbe9ca1(0x256)]['focused$']['subscribe'](()=>{var _0x44833b=_0xbe9ca1,_0x51c7bc;const _0x4266d8=this[_0x44833b(0x256)][_0x44833b(0x36a)]();let _0x118b26=(_0x51c7bc=this[_0x44833b(0x238)][_0x44833b(0x363)](DEFAULT_FILE_NAME_KEY))!=null?_0x51c7bc:UNIVER_DEFAULT_FILE_NAME;_0x4266d8 instanceof Workbook&&(_0x118b26=_0x4266d8['name']),document['title']=_0x118b26;}));}},__name(_a17,'FileNameController'),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object['defineProperty'],__getOwnPropDesc$9=Object['getOwnPropertyDescriptor'],__decorateClass$9=__name((_0x287d38,_0x10a80f,_0x2c76c6,_0x187ed9)=>{var _0x5132af=_0x4eebac;for(var _0x454e3d=_0x187ed9>0x1?void 0x0:_0x187ed9?__getOwnPropDesc$9(_0x10a80f,_0x2c76c6):_0x10a80f,_0x189a60=_0x287d38[_0x5132af(0x25b)]-0x1,_0x2b0259;_0x189a60>=0x0;_0x189a60--)(_0x2b0259=_0x287d38[_0x189a60])&&(_0x454e3d=(_0x187ed9?_0x2b0259(_0x10a80f,_0x2c76c6,_0x454e3d):_0x2b0259(_0x454e3d))||_0x454e3d);return _0x187ed9&&_0x454e3d&&__defProp$9(_0x10a80f,_0x2c76c6,_0x454e3d),_0x454e3d;},_0x4eebac(0x3ed)),__decorateParam$9=__name((_0x46ef80,_0x462b10)=>(_0x1b6a59,_0x18699e)=>_0x462b10(_0x1b6a59,_0x18699e,_0x46ef80),_0x4eebac(0x3af)),_a18;let AuthServerService=(_a18=class{constructor(_0x221252,_0x3c3eff,_0x1caaf6){var _0x1312f0=_0x4eebac;this[_0x1312f0(0x238)]=_0x221252,this[_0x1312f0(0x129)]=_0x3c3eff,this[_0x1312f0(0x132)]=_0x1caaf6,this[_0x1312f0(0x351)]();}[_0x4eebac(0x351)](){var _0x495f72=_0x4eebac;this[_0x495f72(0x129)][_0x495f72(0x36e)]({'priority':0x1,'interceptor':__name((_0x382fb7,_0x108101)=>_0x108101(_0x382fb7)[_0x495f72(0x385)](concatMap(async _0x3c19b9=>{var _0x3b74e6=_0x495f72;const _0x2ca25a=_0x3c19b9;if(_0x2ca25a[_0x3b74e6(0x299)]===0x191){if(typeof window>'u')throw new Error(_0x3b74e6(0x175));if(window[_0x3b74e6(0x2fc)](this[_0x3b74e6(0x132)]['t'](_0x3b74e6(0x24a)))){const _0x4aa287=window['encodeURIComponent'](window[_0x3b74e6(0x404)]['href']);window[_0x3b74e6(0x404)]['href']=this[_0x3b74e6(0x1e5)]()+_0x3b74e6(0x427)+_0x4aa287;}}return _0x2ca25a;})),_0x495f72(0x2c1))});}['_getLoginPath'](){var _0x1244e9=_0x4eebac,_0x5a6faf,_0x4ecc27;const _0x436c8e=this[_0x1244e9(0x238)]['getConfig'](LOGIN_URL_KEY),_0x5e8990=this[_0x1244e9(0x238)][_0x1244e9(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x4ecc27=(_0x5a6faf=_0x5e8990==null?void 0x0:_0x5e8990['loginUrlKey'])!=null?_0x5a6faf:_0x436c8e)!=null?_0x4ecc27:DEFAULT_LOGIN_URL;}},__name(_a18,_0x4eebac(0x1cb)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object['defineProperty'],__getOwnPropDesc$8=Object[_0x4eebac(0x2a7)],__decorateClass$8=__name((_0x3d2255,_0x24be64,_0x4a30b5,_0x1e981d)=>{for(var _0x47d10c=_0x1e981d>0x1?void 0x0:_0x1e981d?__getOwnPropDesc$8(_0x24be64,_0x4a30b5):_0x24be64,_0x44281c=_0x3d2255['length']-0x1,_0x3ea0d3;_0x44281c>=0x0;_0x44281c--)(_0x3ea0d3=_0x3d2255[_0x44281c])&&(_0x47d10c=(_0x1e981d?_0x3ea0d3(_0x24be64,_0x4a30b5,_0x47d10c):_0x3ea0d3(_0x47d10c))||_0x47d10c);return _0x1e981d&&_0x47d10c&&__defProp$8(_0x24be64,_0x4a30b5,_0x47d10c),_0x47d10c;},_0x4eebac(0x220)),__decorateParam$8=__name((_0x2c2076,_0x3f5fa4)=>(_0x352603,_0x3678c0)=>_0x3f5fa4(_0x352603,_0x3678c0,_0x2c2076),_0x4eebac(0x3a7));const AUTHZ_URL_KEY='AUTHZ_URL_KEY',DEFAULT_AUTHZ_URL_KEY$1=_0x4eebac(0x24c);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x92f730,_0x4a0cf5){var _0x48335f=_0x4eebac;super(),this[_0x48335f(0x3cd)]=_0x92f730,this[_0x48335f(0x238)]=_0x4a0cf5,this['_initMergeInterceptor']();}[_0x4eebac(0x41f)](){var _0x111c30=_0x4eebac;const _0x1740e4=this;this[_0x111c30(0x378)](this['_HTTPService'][_0x111c30(0x36e)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x4a4138){var _0x4ce3e6=_0x111c30,_0x238649;if(_0x4a4138[_0x4ce3e6(0x2c5)]===_0x4ce3e6(0x15f)&&((_0x238649=_0x4a4138['requestParams'])!=null&&_0x238649[_0x4ce3e6(0x326)])){const {objectID:_0x10bbf5,objectType:_0x2cf400}=_0x4a4138['requestParams'][_0x4ce3e6(0x326)]||{};if(!_0x10bbf5||_0x2cf400===void 0x0)return!0x1;const _0x499684=_0x1740e4['_getAPIPrefixPath']()+'/'+_0x2cf400+_0x4ce3e6(0x3b9)+_0x10bbf5+_0x4ce3e6(0x2ed);if(_0x4a4138['url']===_0x499684)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5477c6){var _0x1dde57=_0x111c30,_0x30a509;return(_0x30a509=_0x5477c6[_0x1dde57(0x20a)])==null?void 0x0:_0x30a509[_0x1dde57(0x326)];},'mergeParamsToRequest'(_0x42b788,_0x611178){var _0x46b538=_0x111c30;const _0x16e46a=_0x1740e4[_0x46b538(0x3fc)]()+'/-/object/-/batch_allowed',_0x5d9eef=_0x42b788[_0x46b538(0x16e)]((_0xedf8d,_0x134c07)=>{var _0x3a7a07=_0x46b538;const {unitID:_0x46ff90,objectID:_0xf1e2f3,objectType:_0x2a85c5,actions:_0x384638}=_0x134c07;return _0xedf8d[_0x46ff90]||(_0xedf8d[_0x46ff90]={}),_0xedf8d[_0x46ff90][_0xf1e2f3]||(_0xedf8d[_0x46ff90][_0xf1e2f3]={'objectID':_0xf1e2f3,'objectType':_0x2a85c5,'actions':[]}),_0xedf8d[_0x46ff90][_0xf1e2f3][_0x3a7a07(0x3c1)]['push'](..._0x384638),_0xedf8d;},{}),_0x34e602=[];for(const _0x24e12f in _0x5d9eef)for(const _0x3a3a2f in _0x5d9eef[_0x24e12f]){const {actions:_0x151b04,objectType:_0x26b819}=_0x5d9eef[_0x24e12f][_0x3a3a2f],_0x55dcc0=[...new Set(_0x151b04)];_0x34e602[_0x46b538(0x2cd)]({'unitID':_0x24e12f,'objectID':_0x3a3a2f,'objectType':_0x26b819,'actions':_0x55dcc0});}return new HTTPRequest(_0x46b538(0x15f),_0x16e46a,{'headers':_0x611178[_0x46b538(0x376)],'withCredentials':_0x611178[_0x46b538(0x207)],'responseType':_0x611178[_0x46b538(0x22c)],'body':{'requests':_0x34e602}});}},{'distributeResult'(_0xf7c8bc,_0x1d0628){var _0x16ac34=_0x111c30;const {objectActions:_0x750531}=_0xf7c8bc;return _0x1d0628[_0x16ac34(0x106)](_0x42b968=>{var _0x75ff6a=_0x16ac34;const {unitID:_0x31a5ec,objectID:_0x4d016e,actions:_0x835ec1}=_0x42b968,_0x24f34a=_0x750531['find'](_0x5d1c4a=>_0x5d1c4a[_0x75ff6a(0x31d)]===_0x31a5ec&&_0x5d1c4a[_0x75ff6a(0x163)]===_0x4d016e),_0xef8a2=_0x835ec1[_0x75ff6a(0x106)](_0x43f77e=>_0x24f34a==null?void 0x0:_0x24f34a[_0x75ff6a(0x3c1)]['find'](_0x20bcd4=>_0x20bcd4[_0x75ff6a(0x362)]===_0x43f77e))[_0x75ff6a(0x281)](_0x3aa640=>!!_0x3aa640);return{'config':_0x42b968,'result':{'actions':_0xef8a2,'error':_0xf7c8bc['error']}};});}})}));}[_0x4eebac(0x3fc)](){var _0x4c3235=_0x4eebac,_0x1630a8,_0xb302f7;const _0x30de72=this['_configService'][_0x4c3235(0x363)](AUTHZ_URL_KEY),_0xa41914=this[_0x4c3235(0x238)][_0x4c3235(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xb302f7=(_0x1630a8=_0xa41914==null?void 0x0:_0xa41914[_0x4c3235(0x295)])!=null?_0x1630a8:_0x30de72)!=null?_0xb302f7:DEFAULT_AUTHZ_URL_KEY$1;}async[_0x4eebac(0x254)](_0xb9f93b){var _0xf7d041=_0x4eebac;const _0x5f1148=this[_0xf7d041(0x3fc)]()+'/'+_0xb9f93b[_0xf7d041(0x1a9)]+_0xf7d041(0x3c9);return(await this['_HTTPService'][_0xf7d041(0x370)](_0x5f1148,{'body':_0xb9f93b}))[_0xf7d041(0x326)][_0xf7d041(0x163)]||'';}async[_0x4eebac(0x2bd)](_0x3cd773){var _0x34f555=_0x4eebac;const _0x502bda=this[_0x34f555(0x3fc)]()+_0x34f555(0x330);return(await this[_0x34f555(0x3cd)]['post'](_0x502bda,{'body':_0x3cd773}))['body']['objects'];}async[_0x4eebac(0x442)](_0x7392f7){var _0x30717b=_0x4eebac;const _0x3904db=this[_0x30717b(0x3fc)]()+'/'+_0x7392f7['objectType']+_0x30717b(0x3b9)+_0x7392f7[_0x30717b(0x163)];await this[_0x30717b(0x3cd)][_0x30717b(0x2f6)](_0x3904db,{'body':_0x7392f7});}async[_0x4eebac(0x24d)](_0x1a052e){var _0x5e7ff2=_0x4eebac;const _0x244e53=this['_getAPIPrefixPath']()+'/'+_0x1a052e['objectType']+_0x5e7ff2(0x3b9)+_0x1a052e['objectID']+_0x5e7ff2(0x2ed);return(await this['_HTTPService']['post'](_0x244e53,{'body':_0x1a052e}))[_0x5e7ff2(0x326)]['actions'];}async['batchAllowed'](_0xa25a4){var _0xcb435c=_0x4eebac;const _0x302b13=this[_0xcb435c(0x3fc)]()+_0xcb435c(0x339);return(await this[_0xcb435c(0x3cd)][_0xcb435c(0x370)](_0x302b13,{'body':{'requests':_0xa25a4}}))[_0xcb435c(0x326)][_0xcb435c(0x300)];}async[_0x4eebac(0x3e6)](_0x103bac){var _0x2e6a64=_0x4eebac;const _0x233b7a=this[_0x2e6a64(0x3fc)]()+'/'+_0x103bac[_0x2e6a64(0x1a9)]+_0x2e6a64(0x109),_0x345670=await this[_0x2e6a64(0x3cd)][_0x2e6a64(0x370)](_0x233b7a,{'body':_0x103bac});return{'roles':_0x345670[_0x2e6a64(0x326)]['roles'],'actions':_0x345670['body']['actions']};}async[_0x4eebac(0x43d)](_0x143634){var _0x438242=_0x4eebac;const _0x1696dd=this[_0x438242(0x3fc)]()+_0x438242(0x3b3);await this[_0x438242(0x3cd)][_0x438242(0x390)](_0x1696dd,{'params':{'collaboratorID':_0x143634[_0x438242(0x136)],'objectID':_0x143634[_0x438242(0x163)],'unitID':_0x143634[_0x438242(0x31d)]}});}async[_0x4eebac(0x367)](_0x55ef20){var _0x11aea1=_0x4eebac;const _0xfbedc5=this[_0x11aea1(0x3fc)]()+_0x11aea1(0x3b3);await this['_HTTPService'][_0x11aea1(0x3ca)](_0xfbedc5,{'body':_0x55ef20});}async['createCollaborator'](_0x4c097d){var _0x2dfb3d=_0x4eebac;const _0x206fc0=this[_0x2dfb3d(0x3fc)]()+_0x2dfb3d(0x3b3);await this[_0x2dfb3d(0x3cd)][_0x2dfb3d(0x370)](_0x206fc0,{'body':_0x4c097d});}async[_0x4eebac(0x29f)](_0x3427b7){var _0x48868f=_0x4eebac;const _0xe1bbad=this[_0x48868f(0x3fc)]()+_0x48868f(0x3b3);return(await this[_0x48868f(0x3cd)][_0x48868f(0x28a)](_0xe1bbad,{'params':{'objectID':_0x3427b7[_0x48868f(0x163)],'unitID':_0x3427b7[_0x48868f(0x31d)]}}))[_0x48868f(0x326)][_0x48868f(0x2cc)];}async['putCollaborators'](_0x2e083d){var _0x454bb8=_0x4eebac;const _0xe727c2=this[_0x454bb8(0x3fc)]()+_0x454bb8(0x3b3);await this[_0x454bb8(0x3cd)][_0x454bb8(0x2f6)](_0xe727c2,{'body':_0x2e083d});}},__name(_a19,_0x4eebac(0x438)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x314908){var _0x5d4dbf=_0x4eebac;return _0x314908&&_0x314908[_0x5d4dbf(0x37c)]&&Object[_0x5d4dbf(0x430)][_0x5d4dbf(0x21a)][_0x5d4dbf(0x413)](_0x314908,_0x5d4dbf(0x2c2))?_0x314908[_0x5d4dbf(0x2c2)]:_0x314908;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x4eca02){var _0xee4ca6=_0x4eebac;throw new Error(_0xee4ca6(0x1b0)+_0x4eca02+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}__name(commonjsRequire,'commonjsRequire');var core$1={'exports':{}},core=core$1[_0x4eebac(0x3b0)],hasRequiredCore;function requireCore(){var _0x19e009=_0x4eebac;return hasRequiredCore||(hasRequiredCore=0x1,function(_0x4f6dee,_0x58afd7){(function(_0x244f25,_0x5198ed){var _0x492ee7=_0x5570;_0x4f6dee[_0x492ee7(0x3b0)]=_0x5198ed();}(core,function(){var _0x4195d2=_0x4195d2||function(_0x5ec389,_0x45a633){var _0x15fdea=_0x5570,_0x4e5180;if(typeof window<'u'&&window[_0x15fdea(0x320)]&&(_0x4e5180=window['crypto']),typeof self<'u'&&self['crypto']&&(_0x4e5180=self[_0x15fdea(0x320)]),typeof globalThis<'u'&&globalThis[_0x15fdea(0x320)]&&(_0x4e5180=globalThis[_0x15fdea(0x320)]),!_0x4e5180&&typeof window<'u'&&window[_0x15fdea(0x421)]&&(_0x4e5180=window['msCrypto']),!_0x4e5180&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x15fdea(0x320)]&&(_0x4e5180=commonjsGlobal[_0x15fdea(0x320)]),!_0x4e5180&&typeof commonjsRequire==_0x15fdea(0x249))try{_0x4e5180=require(_0x15fdea(0x320));}catch{}var _0x35aeb7=__name(function(){var _0x1a8791=_0x15fdea;if(_0x4e5180){if(typeof _0x4e5180[_0x1a8791(0x197)]=='function')try{return _0x4e5180[_0x1a8791(0x197)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x4e5180[_0x1a8791(0x2f4)]==_0x1a8791(0x249))try{return _0x4e5180['randomBytes'](0x4)[_0x1a8791(0x1ee)]();}catch{}}throw new Error(_0x1a8791(0x2f1));},'cryptoSecureRandomInt'),_0x22af24=Object[_0x15fdea(0x254)]||(function(){function _0x347443(){}return __name(_0x347443,'F'),function(_0x2dbb04){var _0x2d8ba8=_0x5570,_0x49c1cb;return _0x347443['prototype']=_0x2dbb04,_0x49c1cb=new _0x347443(),_0x347443[_0x2d8ba8(0x430)]=null,_0x49c1cb;};}()),_0x363e9b={},_0x3f166a=_0x363e9b['lib']={},_0x2a1ee5=_0x3f166a[_0x15fdea(0x159)]=(function(){var _0x25174f=_0x15fdea;return{'extend':__name(function(_0x49762a){var _0x3b3632=_0x5570,_0x4f38f4=_0x22af24(this);return _0x49762a&&_0x4f38f4[_0x3b3632(0x3f5)](_0x49762a),(!_0x4f38f4[_0x3b3632(0x21a)](_0x3b3632(0x351))||this['init']===_0x4f38f4[_0x3b3632(0x351)])&&(_0x4f38f4['init']=function(){var _0x5cf013=_0x3b3632;_0x4f38f4['$super']['init'][_0x5cf013(0x35c)](this,arguments);}),_0x4f38f4[_0x3b3632(0x351)]['prototype']=_0x4f38f4,_0x4f38f4['$super']=this,_0x4f38f4;},_0x25174f(0x3d7)),'create':__name(function(){var _0x572ee1=_0x25174f,_0x10ecc2=this[_0x572ee1(0x3d7)]();return _0x10ecc2[_0x572ee1(0x351)][_0x572ee1(0x35c)](_0x10ecc2,arguments),_0x10ecc2;},_0x25174f(0x254)),'init':__name(function(){},_0x25174f(0x351)),'mixIn':__name(function(_0xdfc1c6){var _0x313513=_0x25174f;for(var _0x116873 in _0xdfc1c6)_0xdfc1c6[_0x313513(0x21a)](_0x116873)&&(this[_0x116873]=_0xdfc1c6[_0x116873]);_0xdfc1c6['hasOwnProperty'](_0x313513(0x13a))&&(this['toString']=_0xdfc1c6[_0x313513(0x13a)]);},_0x25174f(0x3f5)),'clone':__name(function(){var _0x3cf3ca=_0x25174f;return this[_0x3cf3ca(0x351)][_0x3cf3ca(0x430)]['extend'](this);},_0x25174f(0x215))};}()),_0x815a3a=_0x3f166a[_0x15fdea(0x237)]=_0x2a1ee5['extend']({'init':__name(function(_0x3ab60d,_0xb61232){var _0x11ba76=_0x15fdea;_0x3ab60d=this[_0x11ba76(0x418)]=_0x3ab60d||[],_0xb61232!=_0x45a633?this[_0x11ba76(0x3ad)]=_0xb61232:this[_0x11ba76(0x3ad)]=_0x3ab60d['length']*0x4;},_0x15fdea(0x351)),'toString':__name(function(_0x4ddfc8){var _0x4f849c=_0x15fdea;return(_0x4ddfc8||_0xe7e7c2)[_0x4f849c(0x42b)](this);},_0x15fdea(0x13a)),'concat':__name(function(_0x164a94){var _0x35069e=_0x15fdea,_0x2ed15f=this[_0x35069e(0x418)],_0x4359d6=_0x164a94[_0x35069e(0x418)],_0x2fe844=this[_0x35069e(0x3ad)],_0x25003d=_0x164a94[_0x35069e(0x3ad)];if(this[_0x35069e(0x449)](),_0x2fe844%0x4)for(var _0x33995b=0x0;_0x33995b<_0x25003d;_0x33995b++){var _0x59d597=_0x4359d6[_0x33995b>>>0x2]>>>0x18-_0x33995b%0x4*0x8&0xff;_0x2ed15f[_0x2fe844+_0x33995b>>>0x2]|=_0x59d597<<0x18-(_0x2fe844+_0x33995b)%0x4*0x8;}else{for(var _0x3a2b65=0x0;_0x3a2b65<_0x25003d;_0x3a2b65+=0x4)_0x2ed15f[_0x2fe844+_0x3a2b65>>>0x2]=_0x4359d6[_0x3a2b65>>>0x2];}return this[_0x35069e(0x3ad)]+=_0x25003d,this;},_0x15fdea(0x3f7)),'clamp':__name(function(){var _0xf57050=_0x15fdea,_0x271c3a=this[_0xf57050(0x418)],_0x222214=this[_0xf57050(0x3ad)];_0x271c3a[_0x222214>>>0x2]&=0xffffffff<<0x20-_0x222214%0x4*0x8,_0x271c3a['length']=_0x5ec389[_0xf57050(0x3b1)](_0x222214/0x4);},_0x15fdea(0x449)),'clone':__name(function(){var _0x4fc785=_0x15fdea,_0xfe72df=_0x2a1ee5[_0x4fc785(0x215)][_0x4fc785(0x413)](this);return _0xfe72df[_0x4fc785(0x418)]=this['words'][_0x4fc785(0x3fa)](0x0),_0xfe72df;},_0x15fdea(0x215)),'random':__name(function(_0x2eb7a6){var _0x35b4f2=_0x15fdea;for(var _0x203604=[],_0x1d5f0f=0x0;_0x1d5f0f<_0x2eb7a6;_0x1d5f0f+=0x4)_0x203604[_0x35b4f2(0x2cd)](_0x35aeb7());return new _0x815a3a[(_0x35b4f2(0x351))](_0x203604,_0x2eb7a6);},_0x15fdea(0x14e))}),_0x113adb=_0x363e9b[_0x15fdea(0x3e2)]={},_0xe7e7c2=_0x113adb[_0x15fdea(0x27b)]={'stringify':__name(function(_0x311d18){var _0xbd0a99=_0x15fdea;for(var _0x1f5ee9=_0x311d18[_0xbd0a99(0x418)],_0x18cbc4=_0x311d18[_0xbd0a99(0x3ad)],_0x2d745d=[],_0x2ea7cb=0x0;_0x2ea7cb<_0x18cbc4;_0x2ea7cb++){var _0xfcb29=_0x1f5ee9[_0x2ea7cb>>>0x2]>>>0x18-_0x2ea7cb%0x4*0x8&0xff;_0x2d745d[_0xbd0a99(0x2cd)]((_0xfcb29>>>0x4)[_0xbd0a99(0x13a)](0x10)),_0x2d745d[_0xbd0a99(0x2cd)]((_0xfcb29&0xf)['toString'](0x10));}return _0x2d745d[_0xbd0a99(0x1c6)]('');},_0x15fdea(0x42b)),'parse':__name(function(_0x537c9b){var _0x4d35a1=_0x15fdea;for(var _0x492fba=_0x537c9b[_0x4d35a1(0x25b)],_0x23b80a=[],_0x13199e=0x0;_0x13199e<_0x492fba;_0x13199e+=0x2)_0x23b80a[_0x13199e>>>0x3]|=parseInt(_0x537c9b['substr'](_0x13199e,0x2),0x10)<<0x18-_0x13199e%0x8*0x4;return new _0x815a3a['init'](_0x23b80a,_0x492fba/0x2);},'parse')},_0x375774=_0x113adb[_0x15fdea(0x1bd)]={'stringify':__name(function(_0x226c64){var _0x3bbae7=_0x15fdea;for(var _0x17c38b=_0x226c64[_0x3bbae7(0x418)],_0x1fd007=_0x226c64[_0x3bbae7(0x3ad)],_0x596eb2=[],_0x465d24=0x0;_0x465d24<_0x1fd007;_0x465d24++){var _0x51c967=_0x17c38b[_0x465d24>>>0x2]>>>0x18-_0x465d24%0x4*0x8&0xff;_0x596eb2[_0x3bbae7(0x2cd)](String['fromCharCode'](_0x51c967));}return _0x596eb2[_0x3bbae7(0x1c6)]('');},_0x15fdea(0x42b)),'parse':__name(function(_0x1e9950){var _0xb64e35=_0x15fdea;for(var _0x238987=_0x1e9950[_0xb64e35(0x25b)],_0x4ba841=[],_0x1f5012=0x0;_0x1f5012<_0x238987;_0x1f5012++)_0x4ba841[_0x1f5012>>>0x2]|=(_0x1e9950[_0xb64e35(0x2e1)](_0x1f5012)&0xff)<<0x18-_0x1f5012%0x4*0x8;return new _0x815a3a[(_0xb64e35(0x351))](_0x4ba841,_0x238987);},_0x15fdea(0x3d3))},_0x4a243=_0x113adb[_0x15fdea(0x250)]={'stringify':__name(function(_0x5f4c6e){var _0x4d6fbc=_0x15fdea;try{return decodeURIComponent(escape(_0x375774['stringify'](_0x5f4c6e)));}catch{throw new Error(_0x4d6fbc(0x41d));}},'stringify'),'parse':__name(function(_0x8fd9b6){var _0x46469b=_0x15fdea;return _0x375774[_0x46469b(0x3d3)](unescape(encodeURIComponent(_0x8fd9b6)));},_0x15fdea(0x3d3))},_0x2a47ac=_0x3f166a[_0x15fdea(0x203)]=_0x2a1ee5[_0x15fdea(0x3d7)]({'reset':__name(function(){var _0xa1b567=_0x15fdea;this[_0xa1b567(0x1fb)]=new _0x815a3a['init'](),this[_0xa1b567(0x15e)]=0x0;},'reset'),'_append':__name(function(_0x3f8cb0){var _0x36f428=_0x15fdea;typeof _0x3f8cb0==_0x36f428(0x20f)&&(_0x3f8cb0=_0x4a243[_0x36f428(0x3d3)](_0x3f8cb0)),this[_0x36f428(0x1fb)][_0x36f428(0x3f7)](_0x3f8cb0),this['_nDataBytes']+=_0x3f8cb0[_0x36f428(0x3ad)];},_0x15fdea(0x1c5)),'_process':__name(function(_0x56e25f){var _0xfbef57=_0x15fdea,_0x5c0a82,_0x414544=this[_0xfbef57(0x1fb)],_0x44fda2=_0x414544['words'],_0x513105=_0x414544[_0xfbef57(0x3ad)],_0x453607=this[_0xfbef57(0x3ef)],_0x55adaf=_0x453607*0x4,_0x422ffc=_0x513105/_0x55adaf;_0x56e25f?_0x422ffc=_0x5ec389['ceil'](_0x422ffc):_0x422ffc=_0x5ec389[_0xfbef57(0x32a)]((_0x422ffc|0x0)-this[_0xfbef57(0x411)],0x0);var _0x3ea9c7=_0x422ffc*_0x453607,_0x435a2b=_0x5ec389[_0xfbef57(0x297)](_0x3ea9c7*0x4,_0x513105);if(_0x3ea9c7){for(var _0x26fa44=0x0;_0x26fa44<_0x3ea9c7;_0x26fa44+=_0x453607)this[_0xfbef57(0x3ec)](_0x44fda2,_0x26fa44);_0x5c0a82=_0x44fda2[_0xfbef57(0x26b)](0x0,_0x3ea9c7),_0x414544[_0xfbef57(0x3ad)]-=_0x435a2b;}return new _0x815a3a[(_0xfbef57(0x351))](_0x5c0a82,_0x435a2b);},_0x15fdea(0x141)),'clone':__name(function(){var _0x454029=_0x15fdea,_0x2a3866=_0x2a1ee5['clone'][_0x454029(0x413)](this);return _0x2a3866[_0x454029(0x1fb)]=this[_0x454029(0x1fb)][_0x454029(0x215)](),_0x2a3866;},_0x15fdea(0x215)),'_minBufferSize':0x0});_0x3f166a[_0x15fdea(0x288)]=_0x2a47ac['extend']({'cfg':_0x2a1ee5[_0x15fdea(0x3d7)](),'init':__name(function(_0xaecc11){var _0x3ef468=_0x15fdea;this[_0x3ef468(0x3bb)]=this[_0x3ef468(0x3bb)][_0x3ef468(0x3d7)](_0xaecc11),this[_0x3ef468(0x33d)]();},_0x15fdea(0x351)),'reset':__name(function(){var _0x3df010=_0x15fdea;_0x2a47ac[_0x3df010(0x33d)]['call'](this),this[_0x3df010(0x130)]();},_0x15fdea(0x33d)),'update':__name(function(_0x21fe82){var _0x2fc40d=_0x15fdea;return this[_0x2fc40d(0x1c5)](_0x21fe82),this[_0x2fc40d(0x141)](),this;},_0x15fdea(0x442)),'finalize':__name(function(_0x4f1e12){var _0x8f1d39=_0x15fdea;_0x4f1e12&&this[_0x8f1d39(0x1c5)](_0x4f1e12);var _0x482da2=this[_0x8f1d39(0x2b5)]();return _0x482da2;},_0x15fdea(0x1ef)),'blockSize':0x10,'_createHelper':__name(function(_0x5df561){return function(_0x213fa0,_0x4337b0){var _0x2be221=_0x5570;return new _0x5df561['init'](_0x4337b0)[_0x2be221(0x1ef)](_0x213fa0);};},_0x15fdea(0x31f)),'_createHmacHelper':__name(function(_0x217725){return function(_0x28d7a5,_0x311666){var _0x57666f=_0x5570;return new _0x5576b2[(_0x57666f(0x343))][(_0x57666f(0x351))](_0x217725,_0x311666)[_0x57666f(0x1ef)](_0x28d7a5);};},_0x15fdea(0x296))});var _0x5576b2=_0x363e9b[_0x15fdea(0x265)]={};return _0x363e9b;}(Math);return _0x4195d2;}));}(core$1)),core$1[_0x19e009(0x3b0)];}__name(requireCore,'requireCore');var encBase64$1={'exports':{}},encBase64=encBase64$1['exports'],hasRequiredEncBase64;function requireEncBase64(){var _0x30f872=_0x4eebac;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x48d15e,_0x528117){(function(_0x1d81e3,_0x5bed8f){var _0x16b387=_0x5570;_0x48d15e[_0x16b387(0x3b0)]=_0x5bed8f(requireCore());}(encBase64,function(_0x191e19){var _0x6fed3=_0x5570;return(function(){var _0x355922=_0x5570,_0x33dede=_0x191e19,_0x2deaa2=_0x33dede[_0x355922(0x307)],_0x96e843=_0x2deaa2['WordArray'],_0x55efb1=_0x33dede[_0x355922(0x3e2)];_0x55efb1[_0x355922(0x422)]={'stringify':__name(function(_0x491706){var _0x33ec10=_0x355922,_0x31ad89=_0x491706[_0x33ec10(0x418)],_0x5b60c1=_0x491706[_0x33ec10(0x3ad)],_0x3d130=this[_0x33ec10(0x3d1)];_0x491706['clamp']();for(var _0x531ff8=[],_0x89c38f=0x0;_0x89c38f<_0x5b60c1;_0x89c38f+=0x3)for(var _0x2cd58d=_0x31ad89[_0x89c38f>>>0x2]>>>0x18-_0x89c38f%0x4*0x8&0xff,_0x472a8a=_0x31ad89[_0x89c38f+0x1>>>0x2]>>>0x18-(_0x89c38f+0x1)%0x4*0x8&0xff,_0x1f6502=_0x31ad89[_0x89c38f+0x2>>>0x2]>>>0x18-(_0x89c38f+0x2)%0x4*0x8&0xff,_0x3d0984=_0x2cd58d<<0x10|_0x472a8a<<0x8|_0x1f6502,_0x5835ec=0x0;_0x5835ec<0x4&&_0x89c38f+_0x5835ec*0.75<_0x5b60c1;_0x5835ec++)_0x531ff8[_0x33ec10(0x2cd)](_0x3d130[_0x33ec10(0x42c)](_0x3d0984>>>0x6*(0x3-_0x5835ec)&0x3f));var _0x36ca3d=_0x3d130[_0x33ec10(0x42c)](0x40);if(_0x36ca3d){for(;_0x531ff8['length']%0x4;)_0x531ff8['push'](_0x36ca3d);}return _0x531ff8[_0x33ec10(0x1c6)]('');},'stringify'),'parse':__name(function(_0x5df72f){var _0x40b90b=_0x355922,_0x5345e0=_0x5df72f[_0x40b90b(0x25b)],_0x5a39e4=this[_0x40b90b(0x3d1)],_0x2028bc=this[_0x40b90b(0x137)];if(!_0x2028bc){_0x2028bc=this['_reverseMap']=[];for(var _0xbc0fa7=0x0;_0xbc0fa7<_0x5a39e4['length'];_0xbc0fa7++)_0x2028bc[_0x5a39e4[_0x40b90b(0x2e1)](_0xbc0fa7)]=_0xbc0fa7;}var _0x4d56bd=_0x5a39e4[_0x40b90b(0x42c)](0x40);if(_0x4d56bd){var _0x23adcc=_0x5df72f[_0x40b90b(0x267)](_0x4d56bd);_0x23adcc!==-0x1&&(_0x5345e0=_0x23adcc);}return _0xe34d08(_0x5df72f,_0x5345e0,_0x2028bc);},_0x355922(0x3d3)),'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0xe34d08(_0x51349f,_0x240c27,_0x5db555){var _0x50d893=_0x355922;for(var _0x1290fc=[],_0x32a84c=0x0,_0x2c49e5=0x0;_0x2c49e5<_0x240c27;_0x2c49e5++)if(_0x2c49e5%0x4){var _0x1f02a8=_0x5db555[_0x51349f[_0x50d893(0x2e1)](_0x2c49e5-0x1)]<<_0x2c49e5%0x4*0x2,_0x24881f=_0x5db555[_0x51349f['charCodeAt'](_0x2c49e5)]>>>0x6-_0x2c49e5%0x4*0x2,_0x3b204a=_0x1f02a8|_0x24881f;_0x1290fc[_0x32a84c>>>0x2]|=_0x3b204a<<0x18-_0x32a84c%0x4*0x8,_0x32a84c++;}return _0x96e843[_0x50d893(0x254)](_0x1290fc,_0x32a84c);}__name(_0xe34d08,_0x355922(0x2a0));}()),_0x191e19[_0x6fed3(0x3e2)][_0x6fed3(0x422)];}));}(encBase64$1)),encBase64$1[_0x30f872(0x3b0)];}__name(requireEncBase64,'requireEncBase64');var md5$1={'exports':{}},md5=md5$1[_0x4eebac(0x3b0)],hasRequiredMd5;function requireMd5(){var _0x356880=_0x4eebac;return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x5ea6f4,_0x103bc0){(function(_0x3aa93f,_0x10456d){var _0x4312c9=_0x5570;_0x5ea6f4[_0x4312c9(0x3b0)]=_0x10456d(requireCore());}(md5,function(_0x28f54c){var _0x71b4c1=_0x5570;return function(_0x2f3fae){var _0x5a2188=_0x5570,_0x12525c=_0x28f54c,_0x1d549b=_0x12525c[_0x5a2188(0x307)],_0x539258=_0x1d549b[_0x5a2188(0x237)],_0x13b709=_0x1d549b[_0x5a2188(0x288)],_0x359295=_0x12525c[_0x5a2188(0x265)],_0x1a2fc3=[];(function(){var _0x14aff3=_0x5a2188;for(var _0x33541c=0x0;_0x33541c<0x40;_0x33541c++)_0x1a2fc3[_0x33541c]=_0x2f3fae[_0x14aff3(0x2fa)](_0x2f3fae[_0x14aff3(0x1be)](_0x33541c+0x1))*0x100000000|0x0;}());var _0x3cdf1d=_0x359295[_0x5a2188(0x19b)]=_0x13b709[_0x5a2188(0x3d7)]({'_doReset':__name(function(){var _0x5adaf2=_0x5a2188;this[_0x5adaf2(0x2f3)]=new _0x539258['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},_0x5a2188(0x130)),'_doProcessBlock':__name(function(_0x3dbf5d,_0x1a5c3d){var _0xcb7164=_0x5a2188;for(var _0x52d3a8=0x0;_0x52d3a8<0x10;_0x52d3a8++){var _0x2ec6b3=_0x1a5c3d+_0x52d3a8,_0x13d147=_0x3dbf5d[_0x2ec6b3];_0x3dbf5d[_0x2ec6b3]=(_0x13d147<<0x8|_0x13d147>>>0x18)&0xff00ff|(_0x13d147<<0x18|_0x13d147>>>0x8)&0xff00ff00;}var _0x255dc2=this[_0xcb7164(0x2f3)]['words'],_0x496036=_0x3dbf5d[_0x1a5c3d+0x0],_0x5174db=_0x3dbf5d[_0x1a5c3d+0x1],_0x338919=_0x3dbf5d[_0x1a5c3d+0x2],_0xb06878=_0x3dbf5d[_0x1a5c3d+0x3],_0x18af08=_0x3dbf5d[_0x1a5c3d+0x4],_0x5486d0=_0x3dbf5d[_0x1a5c3d+0x5],_0x26bb52=_0x3dbf5d[_0x1a5c3d+0x6],_0x4df556=_0x3dbf5d[_0x1a5c3d+0x7],_0x2188b0=_0x3dbf5d[_0x1a5c3d+0x8],_0xf15330=_0x3dbf5d[_0x1a5c3d+0x9],_0x112481=_0x3dbf5d[_0x1a5c3d+0xa],_0x5093ef=_0x3dbf5d[_0x1a5c3d+0xb],_0x340716=_0x3dbf5d[_0x1a5c3d+0xc],_0x5651fa=_0x3dbf5d[_0x1a5c3d+0xd],_0x5a4c36=_0x3dbf5d[_0x1a5c3d+0xe],_0x2585c8=_0x3dbf5d[_0x1a5c3d+0xf],_0x2083b2=_0x255dc2[0x0],_0x2764eb=_0x255dc2[0x1],_0xcc3739=_0x255dc2[0x2],_0x4b7730=_0x255dc2[0x3];_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x496036,0x7,_0x1a2fc3[0x0]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5174db,0xc,_0x1a2fc3[0x1]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x338919,0x11,_0x1a2fc3[0x2]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0xb06878,0x16,_0x1a2fc3[0x3]),_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x18af08,0x7,_0x1a2fc3[0x4]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5486d0,0xc,_0x1a2fc3[0x5]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x26bb52,0x11,_0x1a2fc3[0x6]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x4df556,0x16,_0x1a2fc3[0x7]),_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x2188b0,0x7,_0x1a2fc3[0x8]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0xf15330,0xc,_0x1a2fc3[0x9]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x112481,0x11,_0x1a2fc3[0xa]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5093ef,0x16,_0x1a2fc3[0xb]),_0x2083b2=_0xcf032(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x340716,0x7,_0x1a2fc3[0xc]),_0x4b7730=_0xcf032(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5651fa,0xc,_0x1a2fc3[0xd]),_0xcc3739=_0xcf032(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5a4c36,0x11,_0x1a2fc3[0xe]),_0x2764eb=_0xcf032(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x2585c8,0x16,_0x1a2fc3[0xf]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5174db,0x5,_0x1a2fc3[0x10]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x26bb52,0x9,_0x1a2fc3[0x11]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5093ef,0xe,_0x1a2fc3[0x12]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x496036,0x14,_0x1a2fc3[0x13]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5486d0,0x5,_0x1a2fc3[0x14]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x112481,0x9,_0x1a2fc3[0x15]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x2585c8,0xe,_0x1a2fc3[0x16]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x18af08,0x14,_0x1a2fc3[0x17]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0xf15330,0x5,_0x1a2fc3[0x18]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5a4c36,0x9,_0x1a2fc3[0x19]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0xb06878,0xe,_0x1a2fc3[0x1a]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x2188b0,0x14,_0x1a2fc3[0x1b]),_0x2083b2=_0x5c84d1(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5651fa,0x5,_0x1a2fc3[0x1c]),_0x4b7730=_0x5c84d1(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x338919,0x9,_0x1a2fc3[0x1d]),_0xcc3739=_0x5c84d1(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x4df556,0xe,_0x1a2fc3[0x1e]),_0x2764eb=_0x5c84d1(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x340716,0x14,_0x1a2fc3[0x1f]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5486d0,0x4,_0x1a2fc3[0x20]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x2188b0,0xb,_0x1a2fc3[0x21]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5093ef,0x10,_0x1a2fc3[0x22]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5a4c36,0x17,_0x1a2fc3[0x23]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5174db,0x4,_0x1a2fc3[0x24]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x18af08,0xb,_0x1a2fc3[0x25]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x4df556,0x10,_0x1a2fc3[0x26]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x112481,0x17,_0x1a2fc3[0x27]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x5651fa,0x4,_0x1a2fc3[0x28]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x496036,0xb,_0x1a2fc3[0x29]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0xb06878,0x10,_0x1a2fc3[0x2a]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x26bb52,0x17,_0x1a2fc3[0x2b]),_0x2083b2=_0x474998(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0xf15330,0x4,_0x1a2fc3[0x2c]),_0x4b7730=_0x474998(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x340716,0xb,_0x1a2fc3[0x2d]),_0xcc3739=_0x474998(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x2585c8,0x10,_0x1a2fc3[0x2e]),_0x2764eb=_0x474998(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x338919,0x17,_0x1a2fc3[0x2f]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x496036,0x6,_0x1a2fc3[0x30]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x4df556,0xa,_0x1a2fc3[0x31]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x5a4c36,0xf,_0x1a2fc3[0x32]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5486d0,0x15,_0x1a2fc3[0x33]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x340716,0x6,_0x1a2fc3[0x34]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0xb06878,0xa,_0x1a2fc3[0x35]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x112481,0xf,_0x1a2fc3[0x36]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5174db,0x15,_0x1a2fc3[0x37]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x2188b0,0x6,_0x1a2fc3[0x38]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x2585c8,0xa,_0x1a2fc3[0x39]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x26bb52,0xf,_0x1a2fc3[0x3a]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0x5651fa,0x15,_0x1a2fc3[0x3b]),_0x2083b2=_0x2c801c(_0x2083b2,_0x2764eb,_0xcc3739,_0x4b7730,_0x18af08,0x6,_0x1a2fc3[0x3c]),_0x4b7730=_0x2c801c(_0x4b7730,_0x2083b2,_0x2764eb,_0xcc3739,_0x5093ef,0xa,_0x1a2fc3[0x3d]),_0xcc3739=_0x2c801c(_0xcc3739,_0x4b7730,_0x2083b2,_0x2764eb,_0x338919,0xf,_0x1a2fc3[0x3e]),_0x2764eb=_0x2c801c(_0x2764eb,_0xcc3739,_0x4b7730,_0x2083b2,_0xf15330,0x15,_0x1a2fc3[0x3f]),_0x255dc2[0x0]=_0x255dc2[0x0]+_0x2083b2|0x0,_0x255dc2[0x1]=_0x255dc2[0x1]+_0x2764eb|0x0,_0x255dc2[0x2]=_0x255dc2[0x2]+_0xcc3739|0x0,_0x255dc2[0x3]=_0x255dc2[0x3]+_0x4b7730|0x0;},_0x5a2188(0x3ec)),'_doFinalize':__name(function(){var _0x362a1c=_0x5a2188,_0x381eeb=this['_data'],_0x451686=_0x381eeb['words'],_0x28dad0=this[_0x362a1c(0x15e)]*0x8,_0x6503ad=_0x381eeb[_0x362a1c(0x3ad)]*0x8;_0x451686[_0x6503ad>>>0x5]|=0x80<<0x18-_0x6503ad%0x20;var _0x25557e=_0x2f3fae[_0x362a1c(0x2bf)](_0x28dad0/0x100000000),_0x530aed=_0x28dad0;_0x451686[(_0x6503ad+0x40>>>0x9<<0x4)+0xf]=(_0x25557e<<0x8|_0x25557e>>>0x18)&0xff00ff|(_0x25557e<<0x18|_0x25557e>>>0x8)&0xff00ff00,_0x451686[(_0x6503ad+0x40>>>0x9<<0x4)+0xe]=(_0x530aed<<0x8|_0x530aed>>>0x18)&0xff00ff|(_0x530aed<<0x18|_0x530aed>>>0x8)&0xff00ff00,_0x381eeb[_0x362a1c(0x3ad)]=(_0x451686[_0x362a1c(0x25b)]+0x1)*0x4,this[_0x362a1c(0x141)]();for(var _0x4ee2ad=this[_0x362a1c(0x2f3)],_0x163152=_0x4ee2ad[_0x362a1c(0x418)],_0x2518d0=0x0;_0x2518d0<0x4;_0x2518d0++){var _0x4ca227=_0x163152[_0x2518d0];_0x163152[_0x2518d0]=(_0x4ca227<<0x8|_0x4ca227>>>0x18)&0xff00ff|(_0x4ca227<<0x18|_0x4ca227>>>0x8)&0xff00ff00;}return _0x4ee2ad;},'_doFinalize'),'clone':__name(function(){var _0x510eb2=_0x5a2188,_0xb0103=_0x13b709[_0x510eb2(0x215)][_0x510eb2(0x413)](this);return _0xb0103[_0x510eb2(0x2f3)]=this[_0x510eb2(0x2f3)][_0x510eb2(0x215)](),_0xb0103;},_0x5a2188(0x215))});function _0xcf032(_0x1f3557,_0x3e13bf,_0xc6bfd6,_0x1f2333,_0x3ed276,_0x27a19c,_0x7f754c){var _0x1999a3=_0x1f3557+(_0x3e13bf&_0xc6bfd6|~_0x3e13bf&_0x1f2333)+_0x3ed276+_0x7f754c;return(_0x1999a3<<_0x27a19c|_0x1999a3>>>0x20-_0x27a19c)+_0x3e13bf;}__name(_0xcf032,'FF');function _0x5c84d1(_0x2b8454,_0x52b315,_0x50d35c,_0x34ee79,_0x2f10b5,_0x3ca222,_0x425e7f){var _0x45e22c=_0x2b8454+(_0x52b315&_0x34ee79|_0x50d35c&~_0x34ee79)+_0x2f10b5+_0x425e7f;return(_0x45e22c<<_0x3ca222|_0x45e22c>>>0x20-_0x3ca222)+_0x52b315;}__name(_0x5c84d1,'GG');function _0x474998(_0x4db988,_0x40a1f2,_0x156b38,_0x3f2137,_0x34d4e0,_0x3165ad,_0xe361f4){var _0x4843b0=_0x4db988+(_0x40a1f2^_0x156b38^_0x3f2137)+_0x34d4e0+_0xe361f4;return(_0x4843b0<<_0x3165ad|_0x4843b0>>>0x20-_0x3165ad)+_0x40a1f2;}__name(_0x474998,'HH');function _0x2c801c(_0x29c8e1,_0x58de45,_0x475fea,_0x2c4165,_0x64079d,_0xcdf1e0,_0x386168){var _0x32bfad=_0x29c8e1+(_0x475fea^(_0x58de45|~_0x2c4165))+_0x64079d+_0x386168;return(_0x32bfad<<_0xcdf1e0|_0x32bfad>>>0x20-_0xcdf1e0)+_0x58de45;}__name(_0x2c801c,'II'),_0x12525c[_0x5a2188(0x19b)]=_0x13b709[_0x5a2188(0x31f)](_0x3cdf1d),_0x12525c['HmacMD5']=_0x13b709[_0x5a2188(0x296)](_0x3cdf1d);}(Math),_0x28f54c[_0x71b4c1(0x19b)];}));}(md5$1)),md5$1[_0x356880(0x3b0)];}__name(requireMd5,_0x4eebac(0x445));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1[_0x4eebac(0x3b0)],hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x569501,_0x508142){(function(_0x8baf54,_0x50c774){_0x569501['exports']=_0x50c774(requireCore());}(sha1,function(_0x349e87){var _0x47420c=_0x5570;return(function(){var _0x905a39=_0x5570,_0x9c49c8=_0x349e87,_0x160a90=_0x9c49c8[_0x905a39(0x307)],_0x5038d8=_0x160a90[_0x905a39(0x237)],_0x4bba64=_0x160a90[_0x905a39(0x288)],_0x136d8f=_0x9c49c8[_0x905a39(0x265)],_0x1dbcb1=[],_0x6c8f3d=_0x136d8f[_0x905a39(0x180)]=_0x4bba64[_0x905a39(0x3d7)]({'_doReset':__name(function(){var _0x36e590=_0x905a39;this[_0x36e590(0x2f3)]=new _0x5038d8[(_0x36e590(0x351))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x905a39(0x130)),'_doProcessBlock':__name(function(_0x2976fa,_0x547abb){var _0x265975=_0x905a39;for(var _0x2472e3=this[_0x265975(0x2f3)][_0x265975(0x418)],_0x1438a3=_0x2472e3[0x0],_0x3d3548=_0x2472e3[0x1],_0x2f8a19=_0x2472e3[0x2],_0xc54537=_0x2472e3[0x3],_0x568ae7=_0x2472e3[0x4],_0x8de61c=0x0;_0x8de61c<0x50;_0x8de61c++){if(_0x8de61c<0x10)_0x1dbcb1[_0x8de61c]=_0x2976fa[_0x547abb+_0x8de61c]|0x0;else{var _0x23fe35=_0x1dbcb1[_0x8de61c-0x3]^_0x1dbcb1[_0x8de61c-0x8]^_0x1dbcb1[_0x8de61c-0xe]^_0x1dbcb1[_0x8de61c-0x10];_0x1dbcb1[_0x8de61c]=_0x23fe35<<0x1|_0x23fe35>>>0x1f;}var _0x449754=(_0x1438a3<<0x5|_0x1438a3>>>0x1b)+_0x568ae7+_0x1dbcb1[_0x8de61c];_0x8de61c<0x14?_0x449754+=(_0x3d3548&_0x2f8a19|~_0x3d3548&_0xc54537)+0x5a827999:_0x8de61c<0x28?_0x449754+=(_0x3d3548^_0x2f8a19^_0xc54537)+0x6ed9eba1:_0x8de61c<0x3c?_0x449754+=(_0x3d3548&_0x2f8a19|_0x3d3548&_0xc54537|_0x2f8a19&_0xc54537)-0x70e44324:_0x449754+=(_0x3d3548^_0x2f8a19^_0xc54537)-0x359d3e2a,_0x568ae7=_0xc54537,_0xc54537=_0x2f8a19,_0x2f8a19=_0x3d3548<<0x1e|_0x3d3548>>>0x2,_0x3d3548=_0x1438a3,_0x1438a3=_0x449754;}_0x2472e3[0x0]=_0x2472e3[0x0]+_0x1438a3|0x0,_0x2472e3[0x1]=_0x2472e3[0x1]+_0x3d3548|0x0,_0x2472e3[0x2]=_0x2472e3[0x2]+_0x2f8a19|0x0,_0x2472e3[0x3]=_0x2472e3[0x3]+_0xc54537|0x0,_0x2472e3[0x4]=_0x2472e3[0x4]+_0x568ae7|0x0;},_0x905a39(0x3ec)),'_doFinalize':__name(function(){var _0x329e76=_0x905a39,_0xf23ebb=this[_0x329e76(0x1fb)],_0x2b0d72=_0xf23ebb[_0x329e76(0x418)],_0x49707f=this[_0x329e76(0x15e)]*0x8,_0x2ec70e=_0xf23ebb[_0x329e76(0x3ad)]*0x8;return _0x2b0d72[_0x2ec70e>>>0x5]|=0x80<<0x18-_0x2ec70e%0x20,_0x2b0d72[(_0x2ec70e+0x40>>>0x9<<0x4)+0xe]=Math[_0x329e76(0x2bf)](_0x49707f/0x100000000),_0x2b0d72[(_0x2ec70e+0x40>>>0x9<<0x4)+0xf]=_0x49707f,_0xf23ebb[_0x329e76(0x3ad)]=_0x2b0d72['length']*0x4,this['_process'](),this['_hash'];},_0x905a39(0x2b5)),'clone':__name(function(){var _0x547041=_0x905a39,_0x194726=_0x4bba64[_0x547041(0x215)][_0x547041(0x413)](this);return _0x194726['_hash']=this[_0x547041(0x2f3)][_0x547041(0x215)](),_0x194726;},_0x905a39(0x215))});_0x9c49c8[_0x905a39(0x180)]=_0x4bba64[_0x905a39(0x31f)](_0x6c8f3d),_0x9c49c8[_0x905a39(0x40c)]=_0x4bba64[_0x905a39(0x296)](_0x6c8f3d);}()),_0x349e87[_0x47420c(0x180)];}));}(sha1$1)),sha1$1['exports'];}__name(requireSha1,_0x4eebac(0x10f));var hmac$1={'exports':{}},hmac=hmac$1[_0x4eebac(0x3b0)],hasRequiredHmac;function requireHmac(){var _0x35d5a7=_0x4eebac;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x2f117f,_0x43531e){(function(_0x7f3448,_0xde92fa){var _0x1a9c55=_0x5570;_0x2f117f[_0x1a9c55(0x3b0)]=_0xde92fa(requireCore());}(hmac,function(_0x45bbb2){(function(){var _0xf97c02=_0x5570,_0x45c94f=_0x45bbb2,_0x170a35=_0x45c94f['lib'],_0x43a807=_0x170a35[_0xf97c02(0x159)],_0x53b284=_0x45c94f['enc'],_0x5de2a0=_0x53b284[_0xf97c02(0x250)],_0x5c83c2=_0x45c94f['algo'];_0x5c83c2[_0xf97c02(0x343)]=_0x43a807[_0xf97c02(0x3d7)]({'init':__name(function(_0x555965,_0x2d5daa){var _0x17bf88=_0xf97c02;_0x555965=this['_hasher']=new _0x555965['init'](),typeof _0x2d5daa==_0x17bf88(0x20f)&&(_0x2d5daa=_0x5de2a0['parse'](_0x2d5daa));var _0x5c5e66=_0x555965[_0x17bf88(0x3ef)],_0x4dfc0=_0x5c5e66*0x4;_0x2d5daa['sigBytes']>_0x4dfc0&&(_0x2d5daa=_0x555965[_0x17bf88(0x1ef)](_0x2d5daa)),_0x2d5daa['clamp']();for(var _0x4bc9ec=this[_0x17bf88(0x11a)]=_0x2d5daa[_0x17bf88(0x215)](),_0x39bd44=this[_0x17bf88(0x3de)]=_0x2d5daa[_0x17bf88(0x215)](),_0x2ee6e7=_0x4bc9ec['words'],_0x4cb425=_0x39bd44[_0x17bf88(0x418)],_0x37278a=0x0;_0x37278a<_0x5c5e66;_0x37278a++)_0x2ee6e7[_0x37278a]^=0x5c5c5c5c,_0x4cb425[_0x37278a]^=0x36363636;_0x4bc9ec[_0x17bf88(0x3ad)]=_0x39bd44[_0x17bf88(0x3ad)]=_0x4dfc0,this[_0x17bf88(0x33d)]();},_0xf97c02(0x351)),'reset':__name(function(){var _0x5afd03=_0xf97c02,_0x27cc34=this[_0x5afd03(0x193)];_0x27cc34['reset'](),_0x27cc34['update'](this[_0x5afd03(0x3de)]);},_0xf97c02(0x33d)),'update':__name(function(_0x62ea15){var _0x50e4ee=_0xf97c02;return this[_0x50e4ee(0x193)][_0x50e4ee(0x442)](_0x62ea15),this;},_0xf97c02(0x442)),'finalize':__name(function(_0x3ecc02){var _0x3906f5=_0xf97c02,_0x353de7=this[_0x3906f5(0x193)],_0x25c0c1=_0x353de7[_0x3906f5(0x1ef)](_0x3ecc02);_0x353de7[_0x3906f5(0x33d)]();var _0x388701=_0x353de7[_0x3906f5(0x1ef)](this[_0x3906f5(0x11a)][_0x3906f5(0x215)]()[_0x3906f5(0x3f7)](_0x25c0c1));return _0x388701;},_0xf97c02(0x1ef))});}());}));}(hmac$1)),hmac$1[_0x35d5a7(0x3b0)];}__name(requireHmac,_0x4eebac(0x305));var evpkdf=evpkdf$1['exports'],hasRequiredEvpkdf;function requireEvpkdf(){var _0x118e62=_0x4eebac;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x4012a8,_0x40565e){(function(_0x42ab10,_0x5ba17d,_0xa0ebe8){_0x4012a8['exports']=_0x5ba17d(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x24d215){return(function(){var _0x5d7bc8=_0x5570,_0x4bb90d=_0x24d215,_0xfd3a86=_0x4bb90d[_0x5d7bc8(0x307)],_0x115b3d=_0xfd3a86[_0x5d7bc8(0x159)],_0x1c59e6=_0xfd3a86['WordArray'],_0x913046=_0x4bb90d[_0x5d7bc8(0x265)],_0x51d3c8=_0x913046['MD5'],_0x485286=_0x913046[_0x5d7bc8(0x1d1)]=_0x115b3d[_0x5d7bc8(0x3d7)]({'cfg':_0x115b3d['extend']({'keySize':0x80/0x20,'hasher':_0x51d3c8,'iterations':0x1}),'init':__name(function(_0x4a9b87){var _0xd160e9=_0x5d7bc8;this['cfg']=this[_0xd160e9(0x3bb)][_0xd160e9(0x3d7)](_0x4a9b87);},_0x5d7bc8(0x351)),'compute':__name(function(_0x74edb1,_0x593d1b){var _0x1b6d1a=_0x5d7bc8;for(var _0x2ffd23,_0x51d85f=this[_0x1b6d1a(0x3bb)],_0x5e5c33=_0x51d85f[_0x1b6d1a(0x33f)]['create'](),_0x94dadb=_0x1c59e6['create'](),_0x5ab221=_0x94dadb[_0x1b6d1a(0x418)],_0x53970f=_0x51d85f[_0x1b6d1a(0x43c)],_0x1d998b=_0x51d85f[_0x1b6d1a(0x426)];_0x5ab221[_0x1b6d1a(0x25b)]<_0x53970f;){_0x2ffd23&&_0x5e5c33['update'](_0x2ffd23),_0x2ffd23=_0x5e5c33['update'](_0x74edb1)['finalize'](_0x593d1b),_0x5e5c33[_0x1b6d1a(0x33d)]();for(var _0x2f868f=0x1;_0x2f868f<_0x1d998b;_0x2f868f++)_0x2ffd23=_0x5e5c33[_0x1b6d1a(0x1ef)](_0x2ffd23),_0x5e5c33[_0x1b6d1a(0x33d)]();_0x94dadb[_0x1b6d1a(0x3f7)](_0x2ffd23);}return _0x94dadb[_0x1b6d1a(0x3ad)]=_0x53970f*0x4,_0x94dadb;},_0x5d7bc8(0x3ac))});_0x4bb90d['EvpKDF']=function(_0x47325b,_0x148960,_0xfc06c0){var _0x22a41e=_0x5d7bc8;return _0x485286['create'](_0xfc06c0)[_0x22a41e(0x3ac)](_0x47325b,_0x148960);};}()),_0x24d215['EvpKDF'];}));}(evpkdf$1)),evpkdf$1[_0x118e62(0x3b0)];}__name(requireEvpkdf,'requireEvpkdf');var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0x4eebac(0x3b0)],hasRequiredCipherCore;function requireCipherCore(){return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x1a1835,_0x233835){(function(_0x128e26,_0x503fcc,_0x2ed58e){var _0xf4d91e=_0x5570;_0x1a1835[_0xf4d91e(0x3b0)]=_0x503fcc(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2d8698){var _0x5cff80=_0x5570;_0x2d8698[_0x5cff80(0x307)]['Cipher']||function(_0x12ec1e){var _0x429cd8=_0x5cff80,_0x55ec41=_0x2d8698,_0x544b1d=_0x55ec41[_0x429cd8(0x307)],_0x4c8cbe=_0x544b1d[_0x429cd8(0x159)],_0x2404aa=_0x544b1d['WordArray'],_0x4e4049=_0x544b1d[_0x429cd8(0x203)],_0xdd9b23=_0x55ec41[_0x429cd8(0x3e2)];_0xdd9b23['Utf8'];var _0x3942e8=_0xdd9b23[_0x429cd8(0x422)],_0x28b425=_0x55ec41['algo'],_0x5b8787=_0x28b425[_0x429cd8(0x1d1)],_0x3bd624=_0x544b1d[_0x429cd8(0x268)]=_0x4e4049[_0x429cd8(0x3d7)]({'cfg':_0x4c8cbe['extend'](),'createEncryptor':__name(function(_0x296d3c,_0x2e9d1b){var _0x40b9d1=_0x429cd8;return this[_0x40b9d1(0x254)](this[_0x40b9d1(0x3f3)],_0x296d3c,_0x2e9d1b);},_0x429cd8(0x139)),'createDecryptor':__name(function(_0x5b49b9,_0x58b867){var _0x551ba6=_0x429cd8;return this['create'](this[_0x551ba6(0x2f7)],_0x5b49b9,_0x58b867);},_0x429cd8(0x19c)),'init':__name(function(_0x17398e,_0x4b3225,_0x74c3ce){var _0x52f49f=_0x429cd8;this[_0x52f49f(0x3bb)]=this[_0x52f49f(0x3bb)]['extend'](_0x74c3ce),this[_0x52f49f(0x337)]=_0x17398e,this[_0x52f49f(0x1ac)]=_0x4b3225,this['reset']();},'init'),'reset':__name(function(){var _0x5da4ad=_0x429cd8;_0x4e4049['reset'][_0x5da4ad(0x413)](this),this[_0x5da4ad(0x130)]();},_0x429cd8(0x33d)),'process':__name(function(_0x2e9c74){var _0x4aeb92=_0x429cd8;return this['_append'](_0x2e9c74),this[_0x4aeb92(0x141)]();},_0x429cd8(0x190)),'finalize':__name(function(_0x586960){var _0x34e9ff=_0x429cd8;_0x586960&&this[_0x34e9ff(0x1c5)](_0x586960);var _0x5be8fb=this[_0x34e9ff(0x2b5)]();return _0x5be8fb;},_0x429cd8(0x1ef)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){var _0x13c82b=_0x429cd8;function _0x2bc59d(_0x2b920c){var _0x1bff55=_0x5570;return typeof _0x2b920c==_0x1bff55(0x20f)?_0x31e20b:_0x4fb0f9;}return __name(_0x2bc59d,_0x13c82b(0x1d6)),function(_0x32b759){var _0x19dfe9=_0x13c82b;return{'encrypt':__name(function(_0x2d8cc4,_0x11769f,_0x29e9d6){return _0x2bc59d(_0x11769f)['encrypt'](_0x32b759,_0x2d8cc4,_0x11769f,_0x29e9d6);},_0x19dfe9(0x212)),'decrypt':__name(function(_0x5801d7,_0x4b0c0a,_0x18946a){var _0x55c5b2=_0x19dfe9;return _0x2bc59d(_0x4b0c0a)[_0x55c5b2(0x231)](_0x32b759,_0x5801d7,_0x4b0c0a,_0x18946a);},_0x19dfe9(0x231))};};}())});_0x544b1d['StreamCipher']=_0x3bd624['extend']({'_doFinalize':__name(function(){var _0x3f92be=_0x429cd8,_0x10fe4c=this[_0x3f92be(0x141)](!0x0);return _0x10fe4c;},_0x429cd8(0x2b5)),'blockSize':0x1});var _0x10c69b=_0x55ec41[_0x429cd8(0x389)]={},_0x5a8b46=_0x544b1d[_0x429cd8(0x306)]=_0x4c8cbe['extend']({'createEncryptor':__name(function(_0x243959,_0x4fd918){var _0x41eb7d=_0x429cd8;return this[_0x41eb7d(0x221)][_0x41eb7d(0x254)](_0x243959,_0x4fd918);},_0x429cd8(0x139)),'createDecryptor':__name(function(_0x437e0f,_0x3e9fb7){var _0x2984a4=_0x429cd8;return this['Decryptor'][_0x2984a4(0x254)](_0x437e0f,_0x3e9fb7);},'createDecryptor'),'init':__name(function(_0x4aa300,_0x2adeea){var _0x4fa600=_0x429cd8;this[_0x4fa600(0x195)]=_0x4aa300,this['_iv']=_0x2adeea;},_0x429cd8(0x351))}),_0x281c29=_0x10c69b[_0x429cd8(0x22d)]=(function(){var _0x57b8fe=_0x429cd8,_0x24a3d2=_0x5a8b46[_0x57b8fe(0x3d7)]();_0x24a3d2[_0x57b8fe(0x221)]=_0x24a3d2[_0x57b8fe(0x3d7)]({'processBlock':__name(function(_0xad0c84,_0x4891f6){var _0x2e8e6a=_0x57b8fe,_0x511ede=this[_0x2e8e6a(0x195)],_0x43ceb2=_0x511ede[_0x2e8e6a(0x3ef)];_0x1b6b09['call'](this,_0xad0c84,_0x4891f6,_0x43ceb2),_0x511ede[_0x2e8e6a(0x304)](_0xad0c84,_0x4891f6),this[_0x2e8e6a(0x35a)]=_0xad0c84[_0x2e8e6a(0x3fa)](_0x4891f6,_0x4891f6+_0x43ceb2);},_0x57b8fe(0x13f))}),_0x24a3d2['Decryptor']=_0x24a3d2[_0x57b8fe(0x3d7)]({'processBlock':__name(function(_0x17c8a8,_0x943ddd){var _0x1b5594=_0x57b8fe,_0x6c2d04=this[_0x1b5594(0x195)],_0x32c415=_0x6c2d04['blockSize'],_0x22ad03=_0x17c8a8[_0x1b5594(0x3fa)](_0x943ddd,_0x943ddd+_0x32c415);_0x6c2d04[_0x1b5594(0x396)](_0x17c8a8,_0x943ddd),_0x1b6b09[_0x1b5594(0x413)](this,_0x17c8a8,_0x943ddd,_0x32c415),this[_0x1b5594(0x35a)]=_0x22ad03;},'processBlock')});function _0x1b6b09(_0x50ff0f,_0x37009d,_0x33dc5e){var _0x5b4a33=_0x57b8fe,_0x57f681,_0x5ae9ad=this['_iv'];_0x5ae9ad?(_0x57f681=_0x5ae9ad,this['_iv']=_0x12ec1e):_0x57f681=this[_0x5b4a33(0x35a)];for(var _0x419d2d=0x0;_0x419d2d<_0x33dc5e;_0x419d2d++)_0x50ff0f[_0x37009d+_0x419d2d]^=_0x57f681[_0x419d2d];}return __name(_0x1b6b09,'xorBlock'),_0x24a3d2;}()),_0x21cedf=_0x55ec41[_0x429cd8(0x17c)]={},_0x27cd3a=_0x21cedf[_0x429cd8(0x3e1)]={'pad':__name(function(_0x427327,_0x1ed818){var _0x37c29f=_0x429cd8;for(var _0x49e316=_0x1ed818*0x4,_0x19feff=_0x49e316-_0x427327['sigBytes']%_0x49e316,_0x454d5f=_0x19feff<<0x18|_0x19feff<<0x10|_0x19feff<<0x8|_0x19feff,_0x27bca9=[],_0x5d8200=0x0;_0x5d8200<_0x19feff;_0x5d8200+=0x4)_0x27bca9[_0x37c29f(0x2cd)](_0x454d5f);var _0x2f8f62=_0x2404aa[_0x37c29f(0x254)](_0x27bca9,_0x19feff);_0x427327[_0x37c29f(0x3f7)](_0x2f8f62);},'pad'),'unpad':__name(function(_0x2cf449){var _0x2bc3c3=_0x429cd8,_0x20af5f=_0x2cf449['words'][_0x2cf449[_0x2bc3c3(0x3ad)]-0x1>>>0x2]&0xff;_0x2cf449[_0x2bc3c3(0x3ad)]-=_0x20af5f;},_0x429cd8(0x3d5))};_0x544b1d[_0x429cd8(0x242)]=_0x3bd624['extend']({'cfg':_0x3bd624[_0x429cd8(0x3bb)][_0x429cd8(0x3d7)]({'mode':_0x281c29,'padding':_0x27cd3a}),'reset':__name(function(){var _0x575128=_0x429cd8,_0x177471;_0x3bd624[_0x575128(0x33d)][_0x575128(0x413)](this);var _0x5af8e6=this[_0x575128(0x3bb)],_0x58271d=_0x5af8e6['iv'],_0x15d19d=_0x5af8e6[_0x575128(0x389)];this[_0x575128(0x337)]==this['_ENC_XFORM_MODE']?_0x177471=_0x15d19d['createEncryptor']:(_0x177471=_0x15d19d[_0x575128(0x19c)],this[_0x575128(0x411)]=0x1),this[_0x575128(0x209)]&&this[_0x575128(0x209)][_0x575128(0x165)]==_0x177471?this[_0x575128(0x209)][_0x575128(0x351)](this,_0x58271d&&_0x58271d[_0x575128(0x418)]):(this['_mode']=_0x177471[_0x575128(0x413)](_0x15d19d,this,_0x58271d&&_0x58271d['words']),this['_mode'][_0x575128(0x165)]=_0x177471);},_0x429cd8(0x33d)),'_doProcessBlock':__name(function(_0x22ddfa,_0xdfc760){var _0xe92dee=_0x429cd8;this[_0xe92dee(0x209)][_0xe92dee(0x13f)](_0x22ddfa,_0xdfc760);},_0x429cd8(0x3ec)),'_doFinalize':__name(function(){var _0x1abd4b=_0x429cd8,_0x24e4f6,_0x2c3766=this[_0x1abd4b(0x3bb)][_0x1abd4b(0x42d)];return this[_0x1abd4b(0x337)]==this[_0x1abd4b(0x3f3)]?(_0x2c3766['pad'](this[_0x1abd4b(0x1fb)],this[_0x1abd4b(0x3ef)]),_0x24e4f6=this[_0x1abd4b(0x141)](!0x0)):(_0x24e4f6=this['_process'](!0x0),_0x2c3766[_0x1abd4b(0x3d5)](_0x24e4f6)),_0x24e4f6;},_0x429cd8(0x2b5)),'blockSize':0x80/0x20});var _0x234cf7=_0x544b1d[_0x429cd8(0x3ba)]=_0x4c8cbe[_0x429cd8(0x3d7)]({'init':__name(function(_0x803042){var _0x335f8c=_0x429cd8;this[_0x335f8c(0x3f5)](_0x803042);},_0x429cd8(0x351)),'toString':__name(function(_0xdb5a51){var _0x3f82a3=_0x429cd8;return(_0xdb5a51||this[_0x3f82a3(0x356)])[_0x3f82a3(0x42b)](this);},'toString')}),_0xf0943=_0x55ec41[_0x429cd8(0x2eb)]={},_0x3be532=_0xf0943[_0x429cd8(0x105)]={'stringify':__name(function(_0x5e9bbe){var _0x59c70b=_0x429cd8,_0x5a2132,_0x106591=_0x5e9bbe[_0x59c70b(0x434)],_0xba6471=_0x5e9bbe[_0x59c70b(0x110)];return _0xba6471?_0x5a2132=_0x2404aa['create']([0x53616c74,0x65645f5f])[_0x59c70b(0x3f7)](_0xba6471)[_0x59c70b(0x3f7)](_0x106591):_0x5a2132=_0x106591,_0x5a2132[_0x59c70b(0x13a)](_0x3942e8);},_0x429cd8(0x42b)),'parse':__name(function(_0x2845a6){var _0x5ef5a4=_0x429cd8,_0x5cbd85,_0x31542c=_0x3942e8[_0x5ef5a4(0x3d3)](_0x2845a6),_0x20809f=_0x31542c['words'];return _0x20809f[0x0]==0x53616c74&&_0x20809f[0x1]==0x65645f5f&&(_0x5cbd85=_0x2404aa[_0x5ef5a4(0x254)](_0x20809f[_0x5ef5a4(0x3fa)](0x2,0x4)),_0x20809f[_0x5ef5a4(0x26b)](0x0,0x4),_0x31542c[_0x5ef5a4(0x3ad)]-=0x10),_0x234cf7['create']({'ciphertext':_0x31542c,'salt':_0x5cbd85});},'parse')},_0x4fb0f9=_0x544b1d['SerializableCipher']=_0x4c8cbe[_0x429cd8(0x3d7)]({'cfg':_0x4c8cbe[_0x429cd8(0x3d7)]({'format':_0x3be532}),'encrypt':__name(function(_0x1a8f30,_0x10ddaf,_0x51a005,_0x4f5c64){var _0x37c123=_0x429cd8;_0x4f5c64=this[_0x37c123(0x3bb)][_0x37c123(0x3d7)](_0x4f5c64);var _0x37a363=_0x1a8f30[_0x37c123(0x139)](_0x51a005,_0x4f5c64),_0x192b12=_0x37a363[_0x37c123(0x1ef)](_0x10ddaf),_0x30bd4a=_0x37a363[_0x37c123(0x3bb)];return _0x234cf7[_0x37c123(0x254)]({'ciphertext':_0x192b12,'key':_0x51a005,'iv':_0x30bd4a['iv'],'algorithm':_0x1a8f30,'mode':_0x30bd4a['mode'],'padding':_0x30bd4a[_0x37c123(0x42d)],'blockSize':_0x1a8f30[_0x37c123(0x3ef)],'formatter':_0x4f5c64[_0x37c123(0x2eb)]});},'encrypt'),'decrypt':__name(function(_0x30af7b,_0x3a97f0,_0x472b7e,_0x550fc7){var _0x4ebbd8=_0x429cd8;_0x550fc7=this[_0x4ebbd8(0x3bb)][_0x4ebbd8(0x3d7)](_0x550fc7),_0x3a97f0=this[_0x4ebbd8(0x155)](_0x3a97f0,_0x550fc7[_0x4ebbd8(0x2eb)]);var _0x1bb639=_0x30af7b['createDecryptor'](_0x472b7e,_0x550fc7)[_0x4ebbd8(0x1ef)](_0x3a97f0[_0x4ebbd8(0x434)]);return _0x1bb639;},_0x429cd8(0x231)),'_parse':__name(function(_0x4e94a5,_0x1b0836){var _0x211fb1=_0x429cd8;return typeof _0x4e94a5=='string'?_0x1b0836[_0x211fb1(0x3d3)](_0x4e94a5,this):_0x4e94a5;},_0x429cd8(0x155))}),_0x2bec7d=_0x55ec41['kdf']={},_0x2acce=_0x2bec7d['OpenSSL']={'execute':__name(function(_0x560c1f,_0x2cc5bc,_0x4b2798,_0x16878f,_0x4bf19b){var _0x1dae3f=_0x429cd8;if(_0x16878f||(_0x16878f=_0x2404aa[_0x1dae3f(0x14e)](0x40/0x8)),_0x4bf19b)var _0x8dba8b=_0x5b8787[_0x1dae3f(0x254)]({'keySize':_0x2cc5bc+_0x4b2798,'hasher':_0x4bf19b})[_0x1dae3f(0x3ac)](_0x560c1f,_0x16878f);else var _0x8dba8b=_0x5b8787['create']({'keySize':_0x2cc5bc+_0x4b2798})['compute'](_0x560c1f,_0x16878f);var _0x5dbbee=_0x2404aa['create'](_0x8dba8b[_0x1dae3f(0x418)][_0x1dae3f(0x3fa)](_0x2cc5bc),_0x4b2798*0x4);return _0x8dba8b[_0x1dae3f(0x3ad)]=_0x2cc5bc*0x4,_0x234cf7[_0x1dae3f(0x254)]({'key':_0x8dba8b,'iv':_0x5dbbee,'salt':_0x16878f});},_0x429cd8(0x178))},_0x31e20b=_0x544b1d[_0x429cd8(0x308)]=_0x4fb0f9[_0x429cd8(0x3d7)]({'cfg':_0x4fb0f9[_0x429cd8(0x3bb)]['extend']({'kdf':_0x2acce}),'encrypt':__name(function(_0x36523,_0x129ba4,_0x20ec85,_0x1b14f5){var _0xdb4e21=_0x429cd8;_0x1b14f5=this['cfg'][_0xdb4e21(0x3d7)](_0x1b14f5);var _0x2baa87=_0x1b14f5['kdf'][_0xdb4e21(0x178)](_0x20ec85,_0x36523[_0xdb4e21(0x43c)],_0x36523['ivSize'],_0x1b14f5[_0xdb4e21(0x110)],_0x1b14f5[_0xdb4e21(0x33f)]);_0x1b14f5['iv']=_0x2baa87['iv'];var _0x4107f0=_0x4fb0f9[_0xdb4e21(0x212)][_0xdb4e21(0x413)](this,_0x36523,_0x129ba4,_0x2baa87[_0xdb4e21(0x19f)],_0x1b14f5);return _0x4107f0['mixIn'](_0x2baa87),_0x4107f0;},_0x429cd8(0x212)),'decrypt':__name(function(_0x2c3858,_0x1286d6,_0x2c8043,_0x554fc5){var _0x954cf3=_0x429cd8;_0x554fc5=this[_0x954cf3(0x3bb)][_0x954cf3(0x3d7)](_0x554fc5),_0x1286d6=this[_0x954cf3(0x155)](_0x1286d6,_0x554fc5[_0x954cf3(0x2eb)]);var _0xd1bc00=_0x554fc5[_0x954cf3(0x359)][_0x954cf3(0x178)](_0x2c8043,_0x2c3858[_0x954cf3(0x43c)],_0x2c3858[_0x954cf3(0x366)],_0x1286d6['salt'],_0x554fc5['hasher']);_0x554fc5['iv']=_0xd1bc00['iv'];var _0x307540=_0x4fb0f9[_0x954cf3(0x231)][_0x954cf3(0x413)](this,_0x2c3858,_0x1286d6,_0xd1bc00['key'],_0x554fc5);return _0x307540;},_0x429cd8(0x231))});}();}));}(cipherCore$1)),cipherCore$1['exports'];}__name(requireCipherCore,_0x4eebac(0x22b));var aes=aes$1[_0x4eebac(0x3b0)],hasRequiredAes;function requireAes(){var _0x1f32af=_0x4eebac;return hasRequiredAes||(hasRequiredAes=0x1,function(_0x3e5aad,_0xc57030){(function(_0x292f26,_0x37d2e3,_0x3f2e3c){_0x3e5aad['exports']=_0x37d2e3(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x34e6cc){var _0x240746=_0x5570;return(function(){var _0x603d7a=_0x5570,_0x55c03f=_0x34e6cc,_0x82fb44=_0x55c03f[_0x603d7a(0x307)],_0x122ada=_0x82fb44[_0x603d7a(0x242)],_0x16671f=_0x55c03f[_0x603d7a(0x265)],_0x2f9543=[],_0x9f43fe=[],_0x5f1312=[],_0x53f118=[],_0x59a675=[],_0x58a6b0=[],_0x592218=[],_0x3b855b=[],_0x30ed12=[],_0x5bbc32=[];(function(){for(var _0x487eca=[],_0x1430ed=0x0;_0x1430ed<0x100;_0x1430ed++)_0x1430ed<0x80?_0x487eca[_0x1430ed]=_0x1430ed<<0x1:_0x487eca[_0x1430ed]=_0x1430ed<<0x1^0x11b;for(var _0x145449=0x0,_0x3b4adc=0x0,_0x1430ed=0x0;_0x1430ed<0x100;_0x1430ed++){var _0x2d4549=_0x3b4adc^_0x3b4adc<<0x1^_0x3b4adc<<0x2^_0x3b4adc<<0x3^_0x3b4adc<<0x4;_0x2d4549=_0x2d4549>>>0x8^_0x2d4549&0xff^0x63,_0x2f9543[_0x145449]=_0x2d4549,_0x9f43fe[_0x2d4549]=_0x145449;var _0x4ea8f8=_0x487eca[_0x145449],_0xe3f4fe=_0x487eca[_0x4ea8f8],_0x5e5389=_0x487eca[_0xe3f4fe],_0x51eaae=_0x487eca[_0x2d4549]*0x101^_0x2d4549*0x1010100;_0x5f1312[_0x145449]=_0x51eaae<<0x18|_0x51eaae>>>0x8,_0x53f118[_0x145449]=_0x51eaae<<0x10|_0x51eaae>>>0x10,_0x59a675[_0x145449]=_0x51eaae<<0x8|_0x51eaae>>>0x18,_0x58a6b0[_0x145449]=_0x51eaae;var _0x51eaae=_0x5e5389*0x1010101^_0xe3f4fe*0x10001^_0x4ea8f8*0x101^_0x145449*0x1010100;_0x592218[_0x2d4549]=_0x51eaae<<0x18|_0x51eaae>>>0x8,_0x3b855b[_0x2d4549]=_0x51eaae<<0x10|_0x51eaae>>>0x10,_0x30ed12[_0x2d4549]=_0x51eaae<<0x8|_0x51eaae>>>0x18,_0x5bbc32[_0x2d4549]=_0x51eaae,_0x145449?(_0x145449=_0x4ea8f8^_0x487eca[_0x487eca[_0x487eca[_0x5e5389^_0x4ea8f8]]],_0x3b4adc^=_0x487eca[_0x487eca[_0x3b4adc]]):_0x145449=_0x3b4adc=0x1;}}());var _0x262138=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x3830f0=_0x16671f['AES']=_0x122ada[_0x603d7a(0x3d7)]({'_doReset':__name(function(){var _0x4f5e69=_0x603d7a,_0x33ee94;if(!(this[_0x4f5e69(0x329)]&&this[_0x4f5e69(0x1fe)]===this[_0x4f5e69(0x1ac)])){for(var _0x39df83=this[_0x4f5e69(0x1fe)]=this[_0x4f5e69(0x1ac)],_0x1108f1=_0x39df83[_0x4f5e69(0x418)],_0x52c92e=_0x39df83['sigBytes']/0x4,_0x4d2c5b=this[_0x4f5e69(0x329)]=_0x52c92e+0x6,_0x340159=(_0x4d2c5b+0x1)*0x4,_0x62b829=this[_0x4f5e69(0x2be)]=[],_0x314296=0x0;_0x314296<_0x340159;_0x314296++)_0x314296<_0x52c92e?_0x62b829[_0x314296]=_0x1108f1[_0x314296]:(_0x33ee94=_0x62b829[_0x314296-0x1],_0x314296%_0x52c92e?_0x52c92e>0x6&&_0x314296%_0x52c92e==0x4&&(_0x33ee94=_0x2f9543[_0x33ee94>>>0x18]<<0x18|_0x2f9543[_0x33ee94>>>0x10&0xff]<<0x10|_0x2f9543[_0x33ee94>>>0x8&0xff]<<0x8|_0x2f9543[_0x33ee94&0xff]):(_0x33ee94=_0x33ee94<<0x8|_0x33ee94>>>0x18,_0x33ee94=_0x2f9543[_0x33ee94>>>0x18]<<0x18|_0x2f9543[_0x33ee94>>>0x10&0xff]<<0x10|_0x2f9543[_0x33ee94>>>0x8&0xff]<<0x8|_0x2f9543[_0x33ee94&0xff],_0x33ee94^=_0x262138[_0x314296/_0x52c92e|0x0]<<0x18),_0x62b829[_0x314296]=_0x62b829[_0x314296-_0x52c92e]^_0x33ee94);for(var _0x332a96=this[_0x4f5e69(0x3e7)]=[],_0x34a6fa=0x0;_0x34a6fa<_0x340159;_0x34a6fa++){var _0x314296=_0x340159-_0x34a6fa;if(_0x34a6fa%0x4)var _0x33ee94=_0x62b829[_0x314296];else var _0x33ee94=_0x62b829[_0x314296-0x4];_0x34a6fa<0x4||_0x314296<=0x4?_0x332a96[_0x34a6fa]=_0x33ee94:_0x332a96[_0x34a6fa]=_0x592218[_0x2f9543[_0x33ee94>>>0x18]]^_0x3b855b[_0x2f9543[_0x33ee94>>>0x10&0xff]]^_0x30ed12[_0x2f9543[_0x33ee94>>>0x8&0xff]]^_0x5bbc32[_0x2f9543[_0x33ee94&0xff]];}}},_0x603d7a(0x130)),'encryptBlock':__name(function(_0x13a4db,_0x5bbd2a){var _0x3a266d=_0x603d7a;this[_0x3a266d(0x2e6)](_0x13a4db,_0x5bbd2a,this[_0x3a266d(0x2be)],_0x5f1312,_0x53f118,_0x59a675,_0x58a6b0,_0x2f9543);},_0x603d7a(0x304)),'decryptBlock':__name(function(_0x2cb5d3,_0x4d9a28){var _0x419f91=_0x603d7a,_0x13e11e=_0x2cb5d3[_0x4d9a28+0x1];_0x2cb5d3[_0x4d9a28+0x1]=_0x2cb5d3[_0x4d9a28+0x3],_0x2cb5d3[_0x4d9a28+0x3]=_0x13e11e,this[_0x419f91(0x2e6)](_0x2cb5d3,_0x4d9a28,this['_invKeySchedule'],_0x592218,_0x3b855b,_0x30ed12,_0x5bbc32,_0x9f43fe);var _0x13e11e=_0x2cb5d3[_0x4d9a28+0x1];_0x2cb5d3[_0x4d9a28+0x1]=_0x2cb5d3[_0x4d9a28+0x3],_0x2cb5d3[_0x4d9a28+0x3]=_0x13e11e;},_0x603d7a(0x396)),'_doCryptBlock':__name(function(_0x2b82e3,_0xaa0559,_0x328b83,_0x41c9a4,_0x3cd722,_0x1a43a2,_0x158509,_0x59d047){var _0xb9da11=_0x603d7a;for(var _0xa4f463=this[_0xb9da11(0x329)],_0x507c9d=_0x2b82e3[_0xaa0559]^_0x328b83[0x0],_0x348856=_0x2b82e3[_0xaa0559+0x1]^_0x328b83[0x1],_0x4ff957=_0x2b82e3[_0xaa0559+0x2]^_0x328b83[0x2],_0x22fda2=_0x2b82e3[_0xaa0559+0x3]^_0x328b83[0x3],_0x19093c=0x4,_0x34f244=0x1;_0x34f244<_0xa4f463;_0x34f244++){var _0x4342a1=_0x41c9a4[_0x507c9d>>>0x18]^_0x3cd722[_0x348856>>>0x10&0xff]^_0x1a43a2[_0x4ff957>>>0x8&0xff]^_0x158509[_0x22fda2&0xff]^_0x328b83[_0x19093c++],_0x1c8402=_0x41c9a4[_0x348856>>>0x18]^_0x3cd722[_0x4ff957>>>0x10&0xff]^_0x1a43a2[_0x22fda2>>>0x8&0xff]^_0x158509[_0x507c9d&0xff]^_0x328b83[_0x19093c++],_0x2a6af5=_0x41c9a4[_0x4ff957>>>0x18]^_0x3cd722[_0x22fda2>>>0x10&0xff]^_0x1a43a2[_0x507c9d>>>0x8&0xff]^_0x158509[_0x348856&0xff]^_0x328b83[_0x19093c++],_0x307df4=_0x41c9a4[_0x22fda2>>>0x18]^_0x3cd722[_0x507c9d>>>0x10&0xff]^_0x1a43a2[_0x348856>>>0x8&0xff]^_0x158509[_0x4ff957&0xff]^_0x328b83[_0x19093c++];_0x507c9d=_0x4342a1,_0x348856=_0x1c8402,_0x4ff957=_0x2a6af5,_0x22fda2=_0x307df4;}var _0x4342a1=(_0x59d047[_0x507c9d>>>0x18]<<0x18|_0x59d047[_0x348856>>>0x10&0xff]<<0x10|_0x59d047[_0x4ff957>>>0x8&0xff]<<0x8|_0x59d047[_0x22fda2&0xff])^_0x328b83[_0x19093c++],_0x1c8402=(_0x59d047[_0x348856>>>0x18]<<0x18|_0x59d047[_0x4ff957>>>0x10&0xff]<<0x10|_0x59d047[_0x22fda2>>>0x8&0xff]<<0x8|_0x59d047[_0x507c9d&0xff])^_0x328b83[_0x19093c++],_0x2a6af5=(_0x59d047[_0x4ff957>>>0x18]<<0x18|_0x59d047[_0x22fda2>>>0x10&0xff]<<0x10|_0x59d047[_0x507c9d>>>0x8&0xff]<<0x8|_0x59d047[_0x348856&0xff])^_0x328b83[_0x19093c++],_0x307df4=(_0x59d047[_0x22fda2>>>0x18]<<0x18|_0x59d047[_0x507c9d>>>0x10&0xff]<<0x10|_0x59d047[_0x348856>>>0x8&0xff]<<0x8|_0x59d047[_0x4ff957&0xff])^_0x328b83[_0x19093c++];_0x2b82e3[_0xaa0559]=_0x4342a1,_0x2b82e3[_0xaa0559+0x1]=_0x1c8402,_0x2b82e3[_0xaa0559+0x2]=_0x2a6af5,_0x2b82e3[_0xaa0559+0x3]=_0x307df4;},_0x603d7a(0x2e6)),'keySize':0x100/0x20});_0x55c03f[_0x603d7a(0x415)]=_0x122ada[_0x603d7a(0x31f)](_0x3830f0);}()),_0x34e6cc[_0x240746(0x415)];}));}(aes$1)),aes$1[_0x1f32af(0x3b0)];}__name(requireAes,_0x4eebac(0x160));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x4eebac(0x3b0)],hasRequiredEncUtf8;function requireEncUtf8(){var _0x32fcb8=_0x4eebac;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x5f28bd,_0x24371a){(function(_0x5c1988,_0x1f9866){_0x5f28bd['exports']=_0x1f9866(requireCore());}(encUtf8,function(_0x21a4d1){var _0x3ffb19=_0x5570;return _0x21a4d1['enc'][_0x3ffb19(0x250)];}));}(encUtf8$1)),encUtf8$1[_0x32fcb8(0x3b0)];}__name(requireEncUtf8,_0x4eebac(0x1c3));var encUtf8Exports=requireEncUtf8();function _0x2476(){var _0x1f72d1=['_entityInit$','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','saveChangeset','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','HEARTBEAT','_hash','randomBytes','_clearTimeoutTimer','put','_DEC_XFORM_MODE','_resendTimeout','createSocket','abs','getInterceptPoints','confirm','_socketMessageSubscription','deserializeToCombResponse','onSendChangeset','objectActions','originalMeta','UNKNOWN_CODE','_init','encryptBlock','requireHmac','BlockCipherMode','lib','PasswordBasedCipher','unitId\x20is\x20not\x20found','getValue','file','_singleActiveUnitService','_syncEditingCollabCursor','__decorateClass$c','fetchMissingChangesets','append','open$','LIVESHARE_NEW_HOST','getUnitStatus$','buffer','eventID','LEAVE','rev','_socket$','SUBMIT_CHANGESET_TIMEOUT','subject','csShouldRetryEvent','status$','unitID','getUnitId','_createHelper','crypto','_pendingMutations','_commentUpdate$','_getSessionTicket','PSEUDO_FETCH_MISSING_RESULT','_permissionService','body','LIVESHARE_TERMINATE','_clearUndo','_nRounds','max','UNIVER_SLIDE','_lockTransition','COMPRESS_MUTATION_SEND','__decorateParam','_rescheduleHeartbeat','/-/object/list','result','ConflictState','getImage','onRemoteRetry','getMemberID','_handlerCallback','_xformMode','uploadFileServerUrl','/-/object/-/batch_allowed','setConfig','_collaborationPaused','has','reset','SUBMIT_CHANGESET','hasher','__decorateClass$3','localCacheService','ALREADY_EXISTS','HMAC','_registerDependencies','_showConflictNotification','/universer-api/snapshot','\x20in\x20_schedule.','UNIVER_PROJECT','_collabSessionService','4EOCYvY','_sendHeartbeat','reject','_transformRemoteChangesetByIMECache','save\x20fail\x20reason\x20is\x20','transformChangesets','COMPLETION_FINISHED','init','not_collab','__decorateClass$f','_resendWithTimeout','_change$','formatter','_commentService','_toggleOffline','kdf','_prevBlock','UniverCollaborationClientPlugin','apply','USERS_ENTER','_sendingTimer','[DataLoaderService]','__decorateClass$a','getMember','action','getConfig','image/bmp','CLOSE_ROOM','ivSize','updateCollaborator','event$','4906016SbWDqh','getFocusedUnit','_changesetSessionId','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','set','registerHTTPInterceptor','_substituteRedoStack','post','_updateStatus','554015eBSDpd','[OfflineState]:\x20received\x20changeset.','USERS_LEAVE','resend','headers','LIVESHARE_REQUEST_HOST','disposeWithMe','RECV','_replaceFileID','onload','__esModule','_shouldReportTelemetry','RETRY_CONNECTING_MAX_COUNT','isPermissionRej','getCollabEntity$','4932SCLrae','revision','_loadDoc','_transformIMECache','pipe','[OfflineState]:\x20received\x20acknowledgement.','mutations','23337QcuPrE','mode','entityInit$','ERROR_IMAGE_TYPE','onRemoteRej','_socket','_snapshotService','CHANGESET_SHOULD_RETRY','delete','state','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','\x0aCurrent:\x20','\x20-\x20','state$','decryptBlock','synced','clear','JOIN_ROOM_NOT_EXISTS','addHandlerCallback','COLLAB_SUBMIT_CHANGESET_URL','asObservable','close','_transformStack','__decorateClass$d','/universer-api/oidc/authpage','__decorateClass$g','_type','byteLength','cmd','toggleOffline','symbol','__decorateParam$8','MSG_FOR_ERROR','_onRemoteRetry','FETCH_MISSING','_initDependencies','compute','sigBytes','__decorateClass$h','__decorateParam$9','exports','ceil','_handler','/collaborator','pending','avatar','__decorateParam$7','_undoStacks','_localeService','/object/','CipherParams','cfg','liveShareNewHost','updatePermissionPoint','YUUMI_RATE_OVER_LIMIT','saveSheetBlock','getLatestCsReqIdBySid','actions','HttpExport','_roomCreated$','stopTime','TOO_MANY_REQUESTS','_decreaseWaiting','sheets','appendMutation','/object','patch','_http','NoPadding','_HTTPService','_state$','onTransformState','getActiveSheet','_map','saveImage','parse','SEND_CHANGESET_TIMEOUT','unpad','SNAPSHOT_SERVER_URL_KEY','extend','onMissedChangesetFetched','socket\x20close','_initUnitPermissionChange','replace','initWorkbookPermissionChange','onTransformIME','_iKey','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_sendHeartbeatTimer','Pkcs7','enc','session.room-full','JOIN_ROOM_PERMISSION_DENIED','__decorateParam$1','listRoles','_invKeySchedule','APPLY_REJECT','__decorateParam$g','_onConnectionOpen','terminateWithError','_doProcessBlock','__decorateClass$9','__decorateClass$1','blockSize','CHANGESET_REJ','_collaborationUIEventService','telemetry\x20info\x20is\x20not\x20initialized','_ENC_XFORM_MODE','BASE64','mixIn','MUTATION','concat','__decorateParam$c','_members','slice','conflict','_getAPIPrefixPath','PERMISSION_DENIED','_onConnectionFailed','message$','INVALID_ARGUMENT','AWAITING','OfflineState','_unlockTransition','location','_onRemoteRejected','toLowerCase','collabSubmitChangesetUrl','size','SNAPSHOT_HAS_BEEN_REMOVED','_clearLocalCache','{fileID}','HmacSHA1','_unitInfo$','_queuedRemoteChangesets','getUnit','DomainRequestService','_minBufferSize','waitForRoom$','call','emitEvent','AES','NEW_CHANGESETS','/fetchmissing?from=','words','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','SheetTransformSelectionsService','onCommandExecuted','type','Malformed\x20UTF-8\x20data','UNDEFINED','_initMergeInterceptor','UNIVER_DOC','msCrypto','Base64','__decorateClass$5','session','deepClone','iterations','?url=','fetch_missing','FAIL','__decorateParam$e','stringify','charAt','padding','_incrementRevisionNumber','__decorateParam$b','prototype','YUUMI_UNABLE_LOAD_URL','_config','override','ciphertext','UNIVER_SHEET','forEach','retryConnectingInterval','AuthzIoHttpService','[PendingState]:\x20received\x20acknowledgement.','awaiting','OTHER_CLIENT_EDITING','keySize','deleteCollaborator','liveShareOperation','origin','reverse','LIVESHARE_FETCH_OPERATIONS','update','fromCollab','LICENSE_MAX_UNITS_EXCEEDED','requireMd5','_createSocket','removeMember','image/jpeg','clamp','APPLY_REVISION_CONFILICT','onTransformRemoteChangesetByIMECache','getCurrentUser','getTypeOfUnitDisposed$','isArray','JOINING','OpenSSL','map','[CollaborationEntity]','_throwTelemetryCollaborationNewChangeset','/role','_clearHeartbeatTimer','OTHER_CLIENTS_EDITING','_commandService','_members$','_onFetchMissResult','requireSha1','salt','COLLAB_WEB_SOCKET_URL','LICENSE_IMPORT_SIZE_EXCEEDED','PENDING','__decorateClass$e','_substituteUndoStack','_compressMutationService','joinEvent','PERSON','permissionRejEvent','_oKey','LICENSE_EXPORT_SIZE_EXCEEDED','FETCH_MISS','MemberService','LIVESHARE_OPERATION','HELLO','_unitID','SUCCUSS','newCsEvent','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onMessage','JOIN_ROOM_FULL','_transformRemoteChangesetByStateCache','subscribe','_sessions','_httpService','/universer-api/comb','image/jpg','[UniverCollaborationClientPlugin]','complete','addImageSourceCache','_scheduleCompleteTimestamp','_doReset','members$','localeService','bind','_loadSheet','values','collaboratorID','_reverseMap','subUnitId','createEncryptor','toString','_updateState','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','sessionStatus','CollaborationState','processBlock','refreshPermission','_process','data','_telemetryInfo','sid','createInstance','1518630zetsrF','loadSheet','params','snapshotServerUrl','duration','YUUMI_URL_COL_OUT_OF_RANGE','__decorateParam$i','[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.','random','134Vpgwlu','_getCurrentRevision','awaitingChangeset','online$','_memberService','error','_parse','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','__decorateParam$4','NO_OTHER_CLIENTS_EDITING','Base','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onUserJoin','GLOBAL_ROOMS_CNT_EXCEEDS','_startCollaboration','_nDataBytes','POST','requireAes','readAsDataURL','ENSURE_SNAPSHOT_EXECUTION','objectID','INTERNAL_ERROR','__creator','_undoRedoService','__decorateClass$4','dispose$','roomInfos','INGEST','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','Univer','reqId','reduce','univer-pro.collaboration-client.single-active-unit-service','/rev/','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_DISTRO_REJECTED','updatePermissionObjEvent','_checkMissing','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_transformService','editingUnit','execute','_sender','__decorateParam$6','unit-cache-','pad','disableLocalCache','CollaborationEntity','runId','SHA1','ws://127.0.0.1:8000/universer-api/comb/connect','c2Prime','updateCursorEvent','ERROR_EXCEED_SIZE','_emitMembers','getCurrentRevOfUnit','_createInitialStateImpl','__decorateClass$7','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','16500ErjTrD','SYNCED','_remoteChangesetQueue','_createSocketURL','compose','defineProperty','process','onMissingChangesets','name','_hasher','routeKey','_cipher','collaboration-client.local-cache-service','getRandomValues','_imageSourceCache','_onConflict','c1Prime','MD5','createDecryptor','9GgEoOh','_onJoinRoomEvent','key','SHOULD_CLOSE_CONN','_replayCachedMutations','_onRemoteChangeset','collaboration-client.config','UNIVER_UNKNOWN','getTypeOfUnitAdded$','CollaborationSessionService','_createInitialState','SOCKET_FAILED','objectType','commentUpdateEvent','awaiting_with_pending','_key','hostname','handleCloseConn','handleUnitPermissionChange','Could\x20not\x20dynamically\x20require\x20\x22','_candidateSocket','_roomMembers','fetchThroughInterceptors','\x20to\x20','_getCtorByUniverType','_transformStateCache','_status$','loadUnit','/universer-api/stream/file/upload','OFFLINE','HttpImport','/block/','Latin1','sin','image/png','onSyncEditingCollabCursor','&assign=','_getAPIPrefix','requireEncUtf8','fetchMiss','_append','join','[PendingState]:\x20received\x20rejection.','FileId','now','AWAITING_WITH_PENDING','AuthServerService','send','_clearScheduledTask','_onCombEvent','change$','CONFLICT','EvpKDF','_createHandler','from','_socketService','searchParams','selectCipherStrategy','_getUndoStack','NOT_FOUND','MentionIoHttpService','CHANGESET_REVISION_CONFILICT','/universer-api/file/{fileID}/sign-url','APPLY_NON_SEQUENTIAL_REVISION','__decorateParam$5','SNAPSHOT_INVALID_SNAPSHOT','_onOffline','_getDownloadEndpointURL','getSnapshotAPIPath','_getSignURL','equals','[CollaborationSessionService]','_getLoginPath','changesets','__decorateParam$3','socket\x20open.','fromCharCode','byteOffset','pluginName','_sheetTransformSelectionsService','transformUndoRedo','readInt32LE','finalize','enableSingleActiveInstanceLock','application/json','randomUUID','generateSubmitChangesPath','_applyRemoteChangeset','DocCollaborationEntity','ONLINE','_telemetryService','debug','_event$','UNRECOGNIZED','_data','univer-pro.collaboration-client.network-condition.service','_collaborationTimeoutTimer','_keyPriorReset','UNAUTHENTICATED','JOIN_ROOM_FAILED','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','CommentService','BufferedBlockAlgorithm','PERMISSION_REJ','createTimerObservable$','enableOfflineEditing','withCredentials','PY_RUNTIME_SCRIPT_ERROR','_mode','requestParams','UUID','transformStack\x20failed!','CollaborationSocketService','255014RptjHT','string','executeCommand','signUrlServerUrl','encrypt','startsWith','_state','clone','_tryEnsureSocket','_initCloseConn','_changesetReqId','getResourcesRequest','hasOwnProperty','setShowComponents','requireSession','capture','code','add','__decorateClass$8','Encryptor','_executeRemoteChangeset','[CollaborationUndoRedoService]','onlyLocal','next','_entities','_startTelemetryCollaborationNewChangeset','connection\x20error','_exhaustRemoteChangesetQueue','updateOfflineData','requireCipherCore','responseType','CBC','copyFileMeta','onTransformRemoteChangesetByStateCache','ERROR_IMAGE','decrypt','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','ticket','UPDATE_CURSOR','[CollaborationSession]','_getSendChangesetTimeout','WordArray','_configService','members','_logService','_stopTelemetryCollaborationNewChangeset','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','offline','commentUpdate$','unsubscribe','_acknowledgedAwaitingChangeset','JOIN','BlockCipher','_userManagerService','_transformSelections','repeat','SheetCollaborationEntity','uniscriptRunEvent','YUUMI_SUBSCRIPTION_NOT_FOUND','function','auth.needGotoLoginAlert','sessionStatus$','/universer-api/authz','allowed','&source=','encode','Utf8','onTransformSelections','_schedule','IDLE','create','__decorateClass$2','_univerInstanceService','SNAPSHOT_URL_KEY','_toggleOnline','every','__decorateClass$6','length','UNISCRIPT_RUN','getAllMembers','_resendTimer','_scheduleCollaborationTimeoutTimer','getCollabEntity','getTime','_tryReconnect','EXCHANGE_SIGN_URL_SERVER_URL_KEY','close$','algo','pkcs7Padding','indexOf','Cipher','/universer-api/uniscript','COMMENT_UPDATE','splice','transformMutationsWithChangeset','__decorateParam$2','_waitForHeartbeatResponse','loadDoc','UNKNOWN_CMD','CHANGESET_ACK','_authzIoService','dispose','reconnect','userID','_networkConditionService','csRejEvent','1387799ddIhEa','[SyncedState]:\x20received\x20rejection.','_onRecvEvent','Hex','updateMember','CONNECTOR_DATA_TOO_LARGE','_timeoutTimer','_awaitingChangeset','startTime','filter','onLocalMutation','requireLibTypedarrays','_submitChangeset','json','UnitEmbedded','onRemoteAck','Hasher','getUnitType','get','_revisionService','range','CollaborativeUndoRedoService','CollaborationImageIoService','_instanceService','_collaborationSessionService','DataLoaderService','__defNormalProp','_getUploadFileURL','transformSelections','authzUrl','_createHmacHelper','min','/universer-api/user/session-ticket','status','shouldCloseConn','APPLY_DUPLICATED','baseRev','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sessionStatus$','listCollaborators','parseLoop','_retryConnectingTimer','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_socketReady','FetchingMissState','memberID','6vkhYwJ','getOwnPropertyDescriptor','toggleOnline','RoomMember','Undefined','_getRedoStack','_fetchMissChangesets','resourceIDs','_disableEditing','m2Prime','unknown','_waitCount','_listenToNetworkCondition','loadOfflineData','_onLocalMutation','_doFinalize','getCurrentSelections','onStarting','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','catch','_eventService','onCommentUpdate','socketService','list','_keySchedule','floor','SOCKET_FAILED_RETRY','interceptor','default','selections','_localCacheService','method','_updateLocalCache','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_transitionLocked','_onUserLeave','setCurrentUser','__decorateParam$d','collaborators','push','rng','_snapshotServerService','_transformUndoredo','getUnitOnRev','textRanges','_injector','entries','[OfflineState]:\x20received\x20rejection.','unitId','getSheetBlock','_removeRoom','__decorateParam$f','closeSession','generateRandomId','_retryCount','UnitSnapshot','COMPRESS_MUTATION_APPLY','wsSessionTicketUrl','/universer-api/snapshot/','charCodeAt','leaveEvent','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','onRemoteChangeset','SyncedState','_doCryptBlock','_clearRedo','/unit/','fetching\x20missing\x20changesets\x20from\x20','__decorateClass$b','format','resolve','/allowed'];_0x2476=function(){return _0x1f72d1;};return _0x2476();}const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x4eebac(0x3b0)],hasRequiredLibTypedarrays;function requireLibTypedarrays(){var _0x21b717=_0x4eebac;return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x1beebf,_0x48e2c7){(function(_0x41b34d,_0x2408a2){var _0x32db78=_0x5570;_0x1beebf[_0x32db78(0x3b0)]=_0x2408a2(requireCore());}(libTypedarrays,function(_0x3dc49e){var _0x3ce45b=_0x5570;return(function(){var _0x1db7a9=_0x5570;if(typeof ArrayBuffer=='function'){var _0x566c97=_0x3dc49e,_0x709f0f=_0x566c97[_0x1db7a9(0x307)],_0x214c16=_0x709f0f[_0x1db7a9(0x237)],_0x15d208=_0x214c16[_0x1db7a9(0x351)],_0x1a5773=_0x214c16['init']=function(_0x5f095b){var _0x5db562=_0x1db7a9;if(_0x5f095b instanceof ArrayBuffer&&(_0x5f095b=new Uint8Array(_0x5f095b)),(_0x5f095b instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x5f095b instanceof Uint8ClampedArray||_0x5f095b instanceof Int16Array||_0x5f095b instanceof Uint16Array||_0x5f095b instanceof Int32Array||_0x5f095b instanceof Uint32Array||_0x5f095b instanceof Float32Array||_0x5f095b instanceof Float64Array)&&(_0x5f095b=new Uint8Array(_0x5f095b[_0x5db562(0x314)],_0x5f095b[_0x5db562(0x1ea)],_0x5f095b[_0x5db562(0x3a3)])),_0x5f095b instanceof Uint8Array){for(var _0x5dd9ca=_0x5f095b[_0x5db562(0x3a3)],_0x52a340=[],_0x30ddc5=0x0;_0x30ddc5<_0x5dd9ca;_0x30ddc5++)_0x52a340[_0x30ddc5>>>0x2]|=_0x5f095b[_0x30ddc5]<<0x18-_0x30ddc5%0x4*0x8;_0x15d208[_0x5db562(0x413)](this,_0x52a340,_0x5dd9ca);}else _0x15d208[_0x5db562(0x35c)](this,arguments);};_0x1a5773['prototype']=_0x214c16;}}()),_0x3dc49e[_0x3ce45b(0x307)]['WordArray'];}));}(libTypedarrays$1)),libTypedarrays$1[_0x21b717(0x3b0)];}function _0x5570(_0x70114e,_0x47600a){var _0x24769d=_0x2476();return _0x5570=function(_0x5570a0,_0x4ff9c4){_0x5570a0=_0x5570a0-0xff;var _0xde49ac=_0x24769d[_0x5570a0];return _0xde49ac;},_0x5570(_0x70114e,_0x47600a);}__name(requireLibTypedarrays,_0x4eebac(0x283));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1['exports'],hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x4b16a6,_0x4149ea){(function(_0x58e264,_0x5b27d3,_0x3d2524){_0x4b16a6['exports']=_0x5b27d3(requireCore(),requireCipherCore());}(padNopadding,function(_0x25f0e2){var _0xa965e6=_0x5570;return _0x25f0e2[_0xa965e6(0x17c)][_0xa965e6(0x3cc)]={'pad':__name(function(){},_0xa965e6(0x17c)),'unpad':__name(function(){},'unpad')},_0x25f0e2[_0xa965e6(0x17c)][_0xa965e6(0x3cc)];}));}(padNopadding$1)),padNopadding$1['exports'];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x5a8bbc,_0x5e95f5){var _0x3030d0=_0x4eebac;const _0x4d3896=_0x5e95f5-_0x5a8bbc[_0x3030d0(0x25b)]%_0x5e95f5,_0x542048=String[_0x3030d0(0x1e9)](_0x4d3896)[_0x3030d0(0x245)](_0x4d3896);return _0x5a8bbc+_0x542048;}__name(pkcs7Padding,_0x4eebac(0x266));function encrypt(_0x4fbd6c,_0x40ce41){var _0x32537b=_0x4eebac;const _0x1f7fd4=WordArray['random'](0x10),_0x23f58f=pkcs7Padding(_0x4fbd6c,0x10),_0x311901=AES[_0x32537b(0x212)](Utf8[_0x32537b(0x3d3)](_0x23f58f),Base64[_0x32537b(0x3d3)](_0x40ce41),{'iv':_0x1f7fd4,'padding':NoPadding});return _0x1f7fd4['concat'](_0x311901['ciphertext'])[_0x32537b(0x13a)](Base64);}__name(encrypt,_0x4eebac(0x212));function getAttachHeader(){var _0x31f9d2=_0x4eebac;const _0x13b855=getGlobalObject()['__Key__'];if(_0x13b855){const _0x1874e5={'time':Math[_0x31f9d2(0x2bf)](Date[_0x31f9d2(0x1c9)]()/0x3e8),'domain':location[_0x31f9d2(0x1ad)]};return encrypt(JSON[_0x31f9d2(0x42b)](_0x1874e5),_0x13b855);}}__name(getAttachHeader,'getAttachHeader');var __defProp$7=Object[_0x4eebac(0x18f)],__getOwnPropDesc$7=Object['getOwnPropertyDescriptor'],__decorateClass$7=__name((_0x2e77c9,_0xcc1cbf,_0x2ed80a,_0x2d9449)=>{var _0x342afb=_0x4eebac;for(var _0x4b4626=_0x2d9449>0x1?void 0x0:_0x2d9449?__getOwnPropDesc$7(_0xcc1cbf,_0x2ed80a):_0xcc1cbf,_0xdd6695=_0x2e77c9[_0x342afb(0x25b)]-0x1,_0x4591da;_0xdd6695>=0x0;_0xdd6695--)(_0x4591da=_0x2e77c9[_0xdd6695])&&(_0x4b4626=(_0x2d9449?_0x4591da(_0xcc1cbf,_0x2ed80a,_0x4b4626):_0x4591da(_0x4b4626))||_0x4b4626);return _0x2d9449&&_0x4b4626&&__defProp$7(_0xcc1cbf,_0x2ed80a,_0x4b4626),_0x4b4626;},_0x4eebac(0x188)),__decorateParam$7=__name((_0x26d1f5,_0x114e04)=>(_0x57c1c0,_0x26d80d)=>_0x114e04(_0x57c1c0,_0x26d80d,_0x26d1f5),_0x4eebac(0x3b6)),_a20;let DomainRequestService=(_a20=class{constructor(_0x532ef7){var _0x23da17=_0x4eebac;this[_0x23da17(0x129)]=_0x532ef7,this['_initRequestHeader']();}['_initRequestHeader'](){var _0x1844d4=_0x4eebac;this[_0x1844d4(0x129)]['registerHTTPInterceptor']({'interceptor':__name((_0x1e30c2,_0xa61104)=>{var _0x1d3773=_0x1844d4;const _0x19c340=_0x1e30c2['headers'],_0x261123=getAttachHeader();return _0x261123&&_0x19c340[_0x1d3773(0x36d)]('x-univer-host',_0x261123),_0xa61104(_0x1e30c2);},_0x1844d4(0x2c1))});}},__name(_a20,_0x4eebac(0x410)),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object['defineProperty'],__getOwnPropDesc$6=Object[_0x4eebac(0x2a7)],__decorateClass$6=__name((_0x2f0d87,_0x124cf9,_0x2072d0,_0x16d79c)=>{var _0xeed3ce=_0x4eebac;for(var _0x3ab266=_0x16d79c>0x1?void 0x0:_0x16d79c?__getOwnPropDesc$6(_0x124cf9,_0x2072d0):_0x124cf9,_0x9bb6c0=_0x2f0d87[_0xeed3ce(0x25b)]-0x1,_0x20eb54;_0x9bb6c0>=0x0;_0x9bb6c0--)(_0x20eb54=_0x2f0d87[_0x9bb6c0])&&(_0x3ab266=(_0x16d79c?_0x20eb54(_0x124cf9,_0x2072d0,_0x3ab266):_0x20eb54(_0x3ab266))||_0x3ab266);return _0x16d79c&&_0x3ab266&&__defProp$6(_0x124cf9,_0x2072d0,_0x3ab266),_0x3ab266;},_0x4eebac(0x25a)),__decorateParam$6=__name((_0x5e7b33,_0x5b4e41)=>(_0x223b87,_0x2379e1)=>_0x5b4e41(_0x223b87,_0x2379e1,_0x5e7b33),_0x4eebac(0x17a)),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x3ac7d3,_0x3ad087,_0x526a86){var _0x138e85=_0x4eebac;super(),__publicField(this,_0x138e85(0x40d),new BehaviorSubject(null)),__publicField(this,'unitInfo$',this[_0x138e85(0x40d)][_0x138e85(0x39c)]()),(this[_0x138e85(0x23a)]=_0x3ac7d3,this[_0x138e85(0x38e)]=_0x3ad087,this[_0x138e85(0x2c4)]=_0x526a86);}async[_0x4eebac(0x1b8)](_0x5cc8e9,_0x791dee,_0x55a35e){var _0x4edb8a=_0x4eebac;this[_0x4edb8a(0x40d)][_0x4edb8a(0x225)]({'unitId':_0x5cc8e9,'type':_0x791dee,'subUnitId':_0x55a35e});let _0x434958=null;switch(_0x791dee){case UniverType['UNIVER_SHEET']:{_0x434958=await this['_loadSheet'](_0x5cc8e9);break;}case UniverType['UNIVER_DOC']:{_0x434958=await this[_0x4edb8a(0x383)](_0x5cc8e9);break;}default:{this[_0x4edb8a(0x23a)][_0x4edb8a(0x154)](_0x4edb8a(0x35f),_0x4edb8a(0x2ef));break;}}return _0x434958;}async[_0x4eebac(0x134)](_0x416cc4){var _0x3a32d5=_0x4eebac,_0x5ccf62;let _0x55eeac=0x0;const _0x17a8ff=await((_0x5ccf62=this['_localCacheService'])==null?void 0x0:_0x5ccf62[_0x3a32d5(0x2b3)](_0x416cc4));return _0x17a8ff&&(_0x17a8ff['awaitingChangeset']||_0x17a8ff['mutations'][_0x3a32d5(0x25b)]!==0x0)&&(_0x55eeac=_0x17a8ff[_0x3a32d5(0x317)]),_0x55eeac===0x0&&this['_logService'][_0x3a32d5(0x1f8)](_0x3a32d5(0x35f),_0x3a32d5(0x2a2)),this['_snapshotService'][_0x3a32d5(0x147)](_0x416cc4,_0x55eeac);}async['_loadDoc'](_0x49550a){var _0x299fb3=_0x4eebac,_0x452ef9;let _0x397eb0=0x0;const _0x392c0f=await((_0x452ef9=this[_0x299fb3(0x2c4)])==null?void 0x0:_0x452ef9[_0x299fb3(0x2b3)](_0x49550a));return _0x392c0f&&(_0x392c0f[_0x299fb3(0x151)]||_0x392c0f[_0x299fb3(0x387)]['length']!==0x0)&&(_0x397eb0=_0x392c0f['rev']),_0x397eb0===0x0&&this[_0x299fb3(0x23a)][_0x299fb3(0x1f8)](_0x299fb3(0x35f),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x299fb3(0x26f)](_0x49550a,_0x397eb0);}},__name(_a21,_0x4eebac(0x291)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x4eebac(0x18f)],__getOwnPropDesc$5=Object[_0x4eebac(0x2a7)],__decorateClass$5=__name((_0xd7a16c,_0x1dc655,_0x3324f6,_0x3d1cfd)=>{var _0x29072b=_0x4eebac;for(var _0x468a14=_0x3d1cfd>0x1?void 0x0:_0x3d1cfd?__getOwnPropDesc$5(_0x1dc655,_0x3324f6):_0x1dc655,_0xaa1301=_0xd7a16c[_0x29072b(0x25b)]-0x1,_0x557b74;_0xaa1301>=0x0;_0xaa1301--)(_0x557b74=_0xd7a16c[_0xaa1301])&&(_0x468a14=(_0x3d1cfd?_0x557b74(_0x1dc655,_0x3324f6,_0x468a14):_0x557b74(_0x468a14))||_0x468a14);return _0x3d1cfd&&_0x468a14&&__defProp$5(_0x1dc655,_0x3324f6,_0x468a14),_0x468a14;},_0x4eebac(0x423)),__decorateParam$5=__name((_0x35c29f,_0x4719ba)=>(_0x12a5dc,_0x3a9321)=>_0x4719ba(_0x12a5dc,_0x3a9321,_0x35c29f),_0x4eebac(0x1dd));const ALLOW_IMAGE_LIST=[_0x4eebac(0x1bf),_0x4eebac(0x448),_0x4eebac(0x12b),'image/gif',_0x4eebac(0x364)],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x4eebac(0x201),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x4eebac(0x1b9),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x4eebac(0x263),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x4eebac(0x1db);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0x2a94c3,_0x3149d6,_0x2ddce5){var _0x1f3bc4=_0x4eebac;__publicField(this,_0x1f3bc4(0x2b1),0x0),__publicField(this,_0x1f3bc4(0x355),new Subject()),__publicField(this,_0x1f3bc4(0x1cf),this['_change$']),__publicField(this,'_imageSourceCache',new Map()),(this[_0x1f3bc4(0x129)]=_0x2a94c3,this[_0x1f3bc4(0x238)]=_0x3149d6,this[_0x1f3bc4(0x256)]=_0x2ddce5);}['setWaitCount'](_0x29c4b8){var _0x1f21b4=_0x4eebac;this[_0x1f21b4(0x2b1)]=_0x29c4b8,this[_0x1f21b4(0x355)][_0x1f21b4(0x225)](_0x29c4b8);}['getImageSourceCache'](_0x1ce7a2,_0x58cb1e){var _0x3e499d=_0x4eebac;if(_0x58cb1e===ImageSourceType[_0x3e499d(0x3f4)]){const _0x5d18e4=new Image();return _0x5d18e4['src']=_0x1ce7a2,_0x5d18e4;}return this[_0x3e499d(0x198)][_0x3e499d(0x28a)](_0x1ce7a2);}[_0x4eebac(0x12e)](_0x3a179b,_0x4c8423,_0x4d88b7){var _0x5b4e76=_0x4eebac;_0x4c8423===ImageSourceType[_0x5b4e76(0x3f4)]||_0x4d88b7==null||this[_0x5b4e76(0x198)][_0x5b4e76(0x36d)](_0x3a179b,_0x4d88b7);}async[_0x4eebac(0x333)](_0x22d261){var _0x2388cd=_0x4eebac;try{const _0x38d952=this[_0x2388cd(0x37a)](this[_0x2388cd(0x1e2)](),''+_0x22d261),_0x3595f4=(await this[_0x2388cd(0x129)][_0x2388cd(0x28a)](_0x38d952))[_0x2388cd(0x326)];if(_0x3595f4[_0x2388cd(0x154)]&&_0x3595f4[_0x2388cd(0x154)][_0x2388cd(0x21e)]===ErrorCode['OK']){const _0x7d3cd0=new URL(_0x3595f4['url'],this[_0x2388cd(0x1e0)]())['toString']();return Promise[_0x2388cd(0x2ec)](_0x7d3cd0);}return Promise['reject'](_0x3595f4[_0x2388cd(0x154)]);}catch(_0x4b467c){return Promise['reject'](_0x4b467c);}}async[_0x4eebac(0x3d2)](_0x121f73){var _0xaab2fe=_0x4eebac;let _0x4ef140='';if(!ALLOW_IMAGE_LIST['includes'](_0x121f73[_0xaab2fe(0x41c)]))return this[_0xaab2fe(0x3c6)](),Promise[_0xaab2fe(0x34c)](new Error(ImageUploadStatusType[_0xaab2fe(0x38b)]));if(_0x121f73[_0xaab2fe(0x408)]>ALLOW_IMAGE_SIZE)return this[_0xaab2fe(0x3c6)](),Promise['reject'](new Error(ImageUploadStatusType[_0xaab2fe(0x184)]));try{const _0x56d587=new FormData();_0x56d587[_0xaab2fe(0x310)](_0xaab2fe(0x30b),_0x121f73);const _0xbf9d1b=this[_0xaab2fe(0x256)][_0xaab2fe(0x36a)](),_0x287edd=_0xbf9d1b==null?void 0x0:_0xbf9d1b[_0xaab2fe(0x31e)]();if(!_0x287edd)throw new Error(_0xaab2fe(0x309));const _0x499541=this[_0xaab2fe(0x293)]()+'?size='+_0x121f73[_0xaab2fe(0x408)][_0xaab2fe(0x13a)]()+_0xaab2fe(0x24e)+FileSource[_0xaab2fe(0x286)]+_0xaab2fe(0x1c1)+encodeURIComponent(_0x287edd),_0x402fd6=await(await fetch(_0x499541,{'method':'POST','body':_0x56d587}))[_0xaab2fe(0x285)]();if(typeof _0x402fd6[_0xaab2fe(0x1c8)]!=_0xaab2fe(0x20f))return this['_decreaseWaiting'](),Promise[_0xaab2fe(0x34c)](new Error(ImageUploadStatusType[_0xaab2fe(0x230)]));_0x4ef140=_0x402fd6[_0xaab2fe(0x1c8)];}catch{return this[_0xaab2fe(0x3c6)](),Promise[_0xaab2fe(0x34c)](new Error(ImageUploadStatusType['ERROR_IMAGE']));}return new Promise((_0x2ab504,_0x4c53d3)=>{var _0x43a029=_0xaab2fe;const _0x3fd664=new FileReader();_0x3fd664[_0x43a029(0x161)](_0x121f73),_0x3fd664[_0x43a029(0x37b)]=_0x368f96=>{var _0x587289=_0x43a029,_0x482ab7;const _0x17c400=(_0x482ab7=_0x368f96['target'])==null?void 0x0:_0x482ab7[_0x587289(0x331)];if(_0x17c400==null){this[_0x587289(0x3c6)](),_0x4c53d3(new Error(ImageUploadStatusType['ERROR_IMAGE']));return;}const _0x282fc1=Tools[_0x587289(0x2db)](0x6);_0x2ab504({'imageId':_0x282fc1,'imageSourceType':ImageSourceType[_0x587289(0x20b)],'source':_0x4ef140,'base64Cache':_0x17c400,'status':ImageUploadStatusType[_0x587289(0x121)]}),this[_0x587289(0x3c6)]();};});}[_0x4eebac(0x293)](){var _0x4c5572=_0x4eebac,_0x2ba38e,_0x1d0122;const _0x2cf353=this[_0x4c5572(0x238)][_0x4c5572(0x363)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x4f2bad=this[_0x4c5572(0x238)][_0x4c5572(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1d0122=(_0x2ba38e=_0x4f2bad==null?void 0x0:_0x4f2bad[_0x4c5572(0x338)])!=null?_0x2ba38e:_0x2cf353)!=null?_0x1d0122:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}['_getSignURL'](){var _0x1b9bc8=_0x4eebac,_0x37304f,_0x2c136e;const _0x42ae68=this[_0x1b9bc8(0x238)][_0x1b9bc8(0x363)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0x92f6a2=this[_0x1b9bc8(0x238)][_0x1b9bc8(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x2c136e=(_0x37304f=_0x92f6a2==null?void 0x0:_0x92f6a2[_0x1b9bc8(0x211)])!=null?_0x37304f:_0x42ae68)!=null?_0x2c136e:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x4eebac(0x1e0)](){var _0x9b6013=_0x4eebac,_0x1fe33b;const _0x50456f=this[_0x9b6013(0x238)][_0x9b6013(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1fe33b=_0x50456f==null?void 0x0:_0x50456f['downloadEndpointUrl'])!=null?_0x1fe33b:location[_0x9b6013(0x43f)];}[_0x4eebac(0x37a)](_0x3f7913,_0xd3cd9d){var _0x18601d=_0x4eebac;return _0x3f7913[_0x18601d(0x3db)](_0x18601d(0x40b),_0xd3cd9d);}[_0x4eebac(0x3c6)](){var _0x405860=_0x4eebac;this[_0x405860(0x2b1)]-=0x1,this[_0x405860(0x355)][_0x405860(0x225)](this[_0x405860(0x2b1)]);}},__name(_a22,_0x4eebac(0x28e)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object[_0x4eebac(0x18f)],__getOwnPropDesc$4=Object[_0x4eebac(0x2a7)],__decorateClass$4=__name((_0x37b8de,_0x25d46a,_0x2ee8bf,_0x1f895b)=>{var _0xa5d86f=_0x4eebac;for(var _0x3fb838=_0x1f895b>0x1?void 0x0:_0x1f895b?__getOwnPropDesc$4(_0x25d46a,_0x2ee8bf):_0x25d46a,_0x37ae31=_0x37b8de[_0xa5d86f(0x25b)]-0x1,_0x396e0c;_0x37ae31>=0x0;_0x37ae31--)(_0x396e0c=_0x37b8de[_0x37ae31])&&(_0x3fb838=(_0x1f895b?_0x396e0c(_0x25d46a,_0x2ee8bf,_0x3fb838):_0x396e0c(_0x3fb838))||_0x3fb838);return _0x1f895b&&_0x3fb838&&__defProp$4(_0x25d46a,_0x2ee8bf,_0x3fb838),_0x3fb838;},_0x4eebac(0x167)),__decorateParam$4=__name((_0x4f1d97,_0x46a41a)=>(_0x2981a9,_0x5e134c)=>_0x46a41a(_0x2981a9,_0x5e134c,_0x4f1d97),_0x4eebac(0x157));const DEFAULT_AUTHZ_URL_KEY=_0x4eebac(0x24c);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x140c6b,_0x372dff){var _0x3b1a35=_0x4eebac;this[_0x3b1a35(0x238)]=_0x140c6b,this['_HTTPService']=_0x372dff;}[_0x4eebac(0x3fc)](){var _0x1fb790=_0x4eebac,_0xaa001b,_0xc283e6;const _0x4f5c32=this[_0x1fb790(0x238)][_0x1fb790(0x363)](AUTHZ_URL_KEY),_0x3ea824=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xc283e6=(_0xaa001b=_0x3ea824==null?void 0x0:_0x3ea824[_0x1fb790(0x295)])!=null?_0xaa001b:_0x4f5c32)!=null?_0xc283e6:DEFAULT_AUTHZ_URL_KEY;}async[_0x4eebac(0x2bd)](_0x67bc56){var _0x1575bb=_0x4eebac;const _0x425b4a=this['_getAPIPrefixPath']()+_0x1575bb(0x3b3);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x1575bb(0x28a)](_0x425b4a,{'params':{'objectID':_0x67bc56[_0x1575bb(0x2d6)],'unitID':_0x67bc56['unitId']}}))['body'][_0x1575bb(0x2cc)][_0x1575bb(0x106)](_0x4ac758=>({'objectId':_0x4ac758['id'],'name':_0x4ac758[_0x1575bb(0x31a)][_0x1575bb(0x192)],'metadata':{'icon':_0x4ac758[_0x1575bb(0x31a)][_0x1575bb(0x3b5)]},'label':_0x4ac758[_0x1575bb(0x31a)][_0x1575bb(0x192)],'objectType':MentionType['PERSON']})),'metadata':{},'type':MentionType[_0x1575bb(0x118)]}]};}},__name(_a23,_0x4eebac(0x1d9)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x4eebac(0x18f)],__getOwnPropDesc$3=Object[_0x4eebac(0x2a7)],__decorateClass$3=__name((_0xb07935,_0x595c48,_0x578ef1,_0x5db3db)=>{var _0xb25c33=_0x4eebac;for(var _0x1887db=_0x5db3db>0x1?void 0x0:_0x5db3db?__getOwnPropDesc$3(_0x595c48,_0x578ef1):_0x595c48,_0x389398=_0xb07935[_0xb25c33(0x25b)]-0x1,_0x59ca66;_0x389398>=0x0;_0x389398--)(_0x59ca66=_0xb07935[_0x389398])&&(_0x1887db=(_0x5db3db?_0x59ca66(_0x595c48,_0x578ef1,_0x1887db):_0x59ca66(_0x1887db))||_0x1887db);return _0x5db3db&&_0x1887db&&__defProp$3(_0x595c48,_0x578ef1,_0x1887db),_0x1887db;},_0x4eebac(0x340)),__decorateParam$3=__name((_0x37b976,_0x3727c4)=>(_0x4a7964,_0x2848c1)=>_0x3727c4(_0x4a7964,_0x2848c1,_0x37b976),_0x4eebac(0x1e7)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x49f1cf,_0x462f94,_0x5287bf,_0x2fa098,_0x2119d0,_0x588a70,_0x39e03f){var _0x278dc3=_0x4eebac;super(),this['_injector']=_0x49f1cf,this[_0x278dc3(0x256)]=_0x462f94,this['_permissionService']=_0x5287bf,this['_collaborationSessionService']=_0x2fa098,this[_0x278dc3(0x3f1)]=_0x2119d0,this[_0x278dc3(0x272)]=_0x588a70,this[_0x278dc3(0x166)]=_0x39e03f,this[_0x278dc3(0x3da)](),this[_0x278dc3(0x217)]();}[_0x4eebac(0x217)](){var _0x10ec31=_0x4eebac;const _0x5acbd4=__name(async _0x2945b4=>{var _0x520f3d=_0x5570;(await this[_0x520f3d(0x290)][_0x520f3d(0x21c)](_0x2945b4))[_0x520f3d(0x368)][_0x520f3d(0x385)](filter(_0x1e3689=>_0x1e3689[_0x520f3d(0x315)]===CollaborationEvent[_0x520f3d(0x1a0)]),_0x42afd6(this[_0x520f3d(0x168)]))[_0x520f3d(0x127)](_0x1d0f67=>{var _0x14d706=_0x520f3d;const _0x665fe6=_0x1d0f67,{reason:_0x263668}=_0x665fe6[_0x14d706(0x142)];this[_0x14d706(0x3f1)][_0x14d706(0x414)]({'id':CollaborationUIEventId[_0x14d706(0x365)],'data':_0x263668}),this[_0x14d706(0x325)][_0x14d706(0x3bd)](new WorkbookEditablePermission(_0x2945b4)['id'],!0x1),this[_0x14d706(0x290)]['closeSession'](_0x2945b4);});},_0x10ec31(0x1ae));merge(this[_0x10ec31(0x256)][_0x10ec31(0x1a5)](UniverInstanceType[_0x10ec31(0x435)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](UniverInstanceType['UNIVER_DOC']))['pipe'](map(_0x18a89f=>_0x18a89f['getUnitId']()),filter(_0x4d4149=>!isInternalEditorID(_0x4d4149)),_0x42afd6(this['dispose$']))[_0x10ec31(0x127)](_0x408e79=>{_0x5acbd4(_0x408e79);});}[_0x4eebac(0x3da)](){var _0xa41f54=_0x4eebac;const _0x32c4c6=__name(async _0x2e3cec=>{var _0x5015cd=_0x5570;const _0x5623f5=await this['_collaborationSessionService'][_0x5015cd(0x21c)](_0x2e3cec),_0x404f60=this[_0x5015cd(0x2d3)]['get'](SheetPermissionInitController);_0x5623f5[_0x5015cd(0x368)][_0x5015cd(0x385)](filter(_0x1a5021=>_0x1a5021[_0x5015cd(0x315)]===CollaborationEvent['UPDATE_PERMISSION_OBJ']),_0x42afd6(this['dispose$']))[_0x5015cd(0x127)](_0xed64e=>{var _0x4c2418=_0x5015cd;const _0x1b888d=_0xed64e,{objectId:_0x67bf94}=_0x1b888d[_0x4c2418(0x142)];_0x67bf94===_0x2e3cec?_0x404f60[_0x4c2418(0x3dc)](_0x2e3cec):_0x404f60[_0x4c2418(0x140)](_0x2e3cec,_0x67bf94);});},_0xa41f54(0x1af));merge(this['_univerInstanceService']['getTypeOfUnitAdded$'](UniverInstanceType[_0xa41f54(0x435)]),this[_0xa41f54(0x256)][_0xa41f54(0x1a5)](UniverInstanceType['UNIVER_DOC']))['pipe'](map(_0x2ac406=>_0x2ac406[_0xa41f54(0x31e)]()),filter(_0x262d59=>!isInternalEditorID(_0x262d59)),_0x42afd6(this['dispose$']))[_0xa41f54(0x127)](_0x48ddb9=>{_0x32c4c6(_0x48ddb9);});}},__name(_a24,'PermissionService'),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x4eebac(0x18f)],__getOwnPropDesc$2=Object[_0x4eebac(0x2a7)],__decorateClass$2=__name((_0x339105,_0x432c25,_0x3b26e1,_0x260fd7)=>{var _0x3e6798=_0x4eebac;for(var _0x138780=_0x260fd7>0x1?void 0x0:_0x260fd7?__getOwnPropDesc$2(_0x432c25,_0x3b26e1):_0x432c25,_0x483faa=_0x339105[_0x3e6798(0x25b)]-0x1,_0xb01f43;_0x483faa>=0x0;_0x483faa--)(_0xb01f43=_0x339105[_0x483faa])&&(_0x138780=(_0x260fd7?_0xb01f43(_0x432c25,_0x3b26e1,_0x138780):_0xb01f43(_0x138780))||_0x138780);return _0x260fd7&&_0x138780&&__defProp$2(_0x432c25,_0x3b26e1,_0x138780),_0x138780;},_0x4eebac(0x255)),__decorateParam$2=__name((_0x778a34,_0x3cb463)=>(_0x37c76d,_0x5b8992)=>_0x3cb463(_0x37c76d,_0x5b8992,_0x778a34),_0x4eebac(0x26d)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x46ec8a,_0x5db1cf){var _0x253248=_0x4eebac;this[_0x253248(0x238)]=_0x46ec8a,this[_0x253248(0x129)]=_0x5db1cf;}async[_0x4eebac(0x2d1)](_0x188d8d,_0x1b7349){var _0x5de573=_0x4eebac,_0x5698fc;const {unitID:_0x2095e7,type:_0x52784b,revision:revision=0x0}=_0x1b7349,_0x51d984=this[_0x5de573(0x1e1)]()+'/'+_0x52784b+'/unit/'+_0x2095e7+_0x5de573(0x170)+revision,_0x448863=(await this[_0x5de573(0x129)]['get'](_0x51d984))[_0x5de573(0x326)],_0x46550e=(_0x5698fc=_0x448863['snapshot'])==null?void 0x0:_0x5698fc['workbook'];if(_0x46550e){const _0x25b039=_0x46550e==null?void 0x0:_0x46550e[_0x5de573(0x301)],_0x4cd79d=textEncoder[_0x5de573(0x24f)](b64DecodeUnicode(_0x25b039));_0x46550e[_0x5de573(0x301)]=_0x4cd79d,Object[_0x5de573(0x2d4)](_0x46550e[_0x5de573(0x3c7)])['forEach'](([,_0x4eff8a])=>{var _0x54fbb3=_0x5de573;const _0xdff2d=_0x4eff8a[_0x54fbb3(0x301)],_0x490f5a=textEncoder[_0x54fbb3(0x24f)](b64DecodeUnicode(_0xdff2d));_0x4eff8a[_0x54fbb3(0x301)]=_0x490f5a;});}return _0x448863;}async[_0x4eebac(0x2d7)](_0x2ef7eb,_0x23c300){var _0x535ef0=_0x4eebac;const {unitID:_0x945a08,type:_0x40710c,blockID:_0x3de159}=_0x23c300,_0x2429c0=this[_0x535ef0(0x1c2)]()+'/'+_0x40710c+_0x535ef0(0x2e8)+_0x945a08+'/block/'+_0x3de159;return(await this[_0x535ef0(0x129)][_0x535ef0(0x28a)](_0x2429c0))[_0x535ef0(0x326)];}async['getDeserializedSheetBlock'](_0x4b4c06,_0xafd728){var _0x3ae30d=_0x4eebac;const {unitID:_0x1222a3,type:_0x56b077,blockID:_0x351444}=_0xafd728,_0x818320=this[_0x3ae30d(0x1c2)]()+_0x3ae30d(0x1bc)+_0x56b077+'/unit/'+_0x1222a3+_0x3ae30d(0x1bc)+_0x351444;return(await this[_0x3ae30d(0x129)]['get'](_0x818320))[_0x3ae30d(0x326)];}async['fetchMissingChangesets'](_0x5f317a,_0x4ccaac){var _0x368889=_0x4eebac;const {unitID:_0xd03c9f,type:_0x30583f,from:_0x41a286,to:_0x549976}=_0x4ccaac,_0x1f30f9=this[_0x368889(0x1c2)]()+'/'+_0x30583f+_0x368889(0x2e8)+_0xd03c9f+_0x368889(0x417)+_0x41a286+'&to='+_0x549976;return(await this['_httpService'][_0x368889(0x28a)](_0x1f30f9))[_0x368889(0x326)];}[_0x4eebac(0x1e1)](){var _0x258e1b=_0x4eebac,_0x591460;return(_0x591460=this[_0x258e1b(0x238)][_0x258e1b(0x363)](SNAPSHOT_URL_KEY))!=null?_0x591460:this[_0x258e1b(0x1c2)]();}['_getAPIPrefix'](){var _0x12b4ea=_0x4eebac,_0x36ac81,_0x1799be;const _0x181173=this[_0x12b4ea(0x238)]['getConfig'](SNAPSHOT_SERVER_URL_KEY),_0x382ef4=this['_configService'][_0x12b4ea(0x363)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1799be=(_0x36ac81=_0x382ef4==null?void 0x0:_0x382ef4[_0x12b4ea(0x149)])!=null?_0x36ac81:_0x181173)!=null?_0x1799be:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0x4eebac(0x219)](_0x296eef,_0x3ee311){var _0x4eeeee=_0x4eebac;const _0x94217d=_0x4eeeee(0x2e0)+_0x3ee311['type']+_0x4eeeee(0x2e8)+_0x3ee311[_0x4eeeee(0x31d)]+'/resources';return(await this['_httpService'][_0x4eeeee(0x28a)](_0x94217d,{'params':{'resourceId':JSON[_0x4eeeee(0x42b)](_0x3ee311[_0x4eeeee(0x2ad)])}}))[_0x4eeeee(0x326)];}['saveSnapshot'](){var _0x5e8d8c=_0x4eebac;throw new Error(_0x5e8d8c(0x189));}[_0x4eebac(0x3bf)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4eebac(0x2f0)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4eebac(0x22e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4eebac(0x3c0)](){var _0x5d401f=_0x4eebac;throw new Error(_0x5d401f(0x189));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x4eebac(0x18f)],__getOwnPropDesc$1=Object['getOwnPropertyDescriptor'],__decorateClass$1=__name((_0x5bd78a,_0xb144c2,_0xb1a6c7,_0x487d15)=>{for(var _0x2c437c=_0x487d15>0x1?void 0x0:_0x487d15?__getOwnPropDesc$1(_0xb144c2,_0xb1a6c7):_0xb144c2,_0x259576=_0x5bd78a['length']-0x1,_0x40718c;_0x259576>=0x0;_0x259576--)(_0x40718c=_0x5bd78a[_0x259576])&&(_0x2c437c=(_0x487d15?_0x40718c(_0xb144c2,_0xb1a6c7,_0x2c437c):_0x40718c(_0x2c437c))||_0x2c437c);return _0x487d15&&_0x2c437c&&__defProp$1(_0xb144c2,_0xb1a6c7,_0x2c437c),_0x2c437c;},_0x4eebac(0x3ee)),__decorateParam$1=__name((_0x4765de,_0x2eb207)=>(_0x164426,_0x5149d6)=>_0x2eb207(_0x164426,_0x5149d6,_0x4765de),_0x4eebac(0x3e5)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x49395f,_0x3ef651,_0x3186bb,_0x16b8a6,_0x535c45){var _0x191ada=_0x4eebac;super(_0x49395f,_0x3ef651,_0x3186bb),this[_0x191ada(0x176)]=_0x16b8a6,this['_logService']=_0x535c45;}[_0x4eebac(0x1ed)](_0x24d94f,_0x384b58){var _0x51f99d=_0x4eebac;const _0x3009e7=this[_0x51f99d(0x1d7)](_0x24d94f);if(_0x3009e7)try{const _0x3225d9=this[_0x51f99d(0x39e)](_0x3009e7,_0x384b58);this[_0x51f99d(0x115)](_0x24d94f,_0x3225d9);}catch(_0x33fbe7){this[_0x51f99d(0x23a)][_0x51f99d(0x154)](_0x51f99d(0x223),_0x33fbe7),this['_clearUndo'](_0x24d94f);}const _0x170f5a=this[_0x51f99d(0x2ab)](_0x24d94f);if(_0x170f5a)try{const _0x23b5b6=this[_0x51f99d(0x39e)](_0x170f5a,_0x384b58);this['_substituteRedoStack'](_0x24d94f,_0x23b5b6);}catch(_0x9eadbc){this['_logService'][_0x51f99d(0x154)](_0x9eadbc),this[_0x51f99d(0x2e7)](_0x24d94f);}}[_0x4eebac(0x328)](_0x211a0a){var _0x5ce74d=_0x4eebac;const _0x11b8e6=this[_0x5ce74d(0x1d7)](_0x211a0a);_0x11b8e6&&(_0x11b8e6[_0x5ce74d(0x25b)]=0x0,this[_0x5ce74d(0x371)]());}['_clearRedo'](_0x143501){var _0x4bae00=_0x4eebac;const _0x45bd39=this[_0x4bae00(0x2ab)](_0x143501);_0x45bd39&&(_0x45bd39[_0x4bae00(0x25b)]=0x0,this['_updateStatus']());}[_0x4eebac(0x115)](_0x315add,_0x4b70ed){var _0x333816=_0x4eebac;this[_0x333816(0x3b7)][_0x333816(0x36d)](_0x315add,_0x4b70ed),this[_0x333816(0x371)]();}[_0x4eebac(0x36f)](_0x3ba5a9,_0x507d5c){this['_redoStacks']['set'](_0x3ba5a9,_0x507d5c),this['_updateStatus']();}[_0x4eebac(0x39e)](_0x28a6ca,_0x16fd90){var _0x3d651a=_0x4eebac;const _0x318324=[];let _0x41735f=_0x16fd90,_0x59b3ff=_0x16fd90;for(let _0x5cbdfd=_0x28a6ca[_0x3d651a(0x25b)]-0x1;_0x5cbdfd>=0x0;_0x5cbdfd--){const {unitID:_0xb02c5b,undoMutations:_0xda85b9,redoMutations:_0xb4f78f}=_0x28a6ca[_0x5cbdfd],_0xe1a9db=this['_transformService'][_0x3d651a(0x26c)](_0x41735f,_0xda85b9),_0x5fd23b=this['_transformService']['transformMutationsWithChangeset'](_0x59b3ff,_0xb4f78f);if(isTransformMutationsWithChangesetFailure(_0xe1a9db)||isTransformMutationsWithChangesetFailure(_0x5fd23b)){this['_logService'][_0x3d651a(0x154)](_0x3d651a(0x223),_0x3d651a(0x20c),_0xe1a9db,_0x5fd23b);break;}_0x41735f=_0xe1a9db[_0x3d651a(0x19a)],_0x59b3ff=_0x5fd23b[_0x3d651a(0x19a)],_0x318324[_0x3d651a(0x2cd)]({'unitID':_0xb02c5b,'undoMutations':_0xe1a9db['m2Prime'],'redoMutations':_0x5fd23b[_0x3d651a(0x2af)]});}return _0x318324[_0x3d651a(0x440)]();}},__name(_a26,_0x4eebac(0x28d)),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x4eebac(0x18f)],__getOwnPropDesc=Object[_0x4eebac(0x2a7)],__defNormalProp2=__name((_0x31a15f,_0x4bfacf,_0x414f0e)=>_0x4bfacf in _0x31a15f?__defProp2(_0x31a15f,_0x4bfacf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414f0e}):_0x31a15f[_0x4bfacf]=_0x414f0e,_0x4eebac(0x292)),__decorateClass=__name((_0x3573d7,_0x358b7e,_0x1e605f,_0x3bade9)=>{var _0x1b04ef=_0x4eebac;for(var _0x4efd11=_0x3bade9>0x1?void 0x0:_0x3bade9?__getOwnPropDesc(_0x358b7e,_0x1e605f):_0x358b7e,_0x9c8d89=_0x3573d7[_0x1b04ef(0x25b)]-0x1,_0x192fa5;_0x9c8d89>=0x0;_0x9c8d89--)(_0x192fa5=_0x3573d7[_0x9c8d89])&&(_0x4efd11=(_0x3bade9?_0x192fa5(_0x358b7e,_0x1e605f,_0x4efd11):_0x192fa5(_0x4efd11))||_0x4efd11);return _0x3bade9&&_0x4efd11&&__defProp2(_0x358b7e,_0x1e605f,_0x4efd11),_0x4efd11;},'__decorateClass'),__decorateParam=__name((_0x35417a,_0x1fb8cb)=>(_0xd2b679,_0x541d6b)=>_0x1fb8cb(_0xd2b679,_0x541d6b,_0x35417a),_0x4eebac(0x32e)),__publicField2=__name((_0x1bd3bf,_0x5f3699,_0x3baf6b)=>__defNormalProp2(_0x1bd3bf,_0x5f3699+'',_0x3baf6b),'__publicField');const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0xc44f37=defaultPluginConfig,_0x3b5426,_0x2ed635,_0xc64542){var _0x4e068a=_0x4eebac;super(),this[_0x4e068a(0x432)]=_0xc44f37,this[_0x4e068a(0x23a)]=_0x3b5426,this[_0x4e068a(0x2d3)]=_0x2ed635,this['_configService']=_0xc64542;const {..._0x22daf8}=_0x3db844({},defaultPluginConfig,this[_0x4e068a(0x432)]);this['_configService'][_0x4e068a(0x33a)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x22daf8);}[_0x4eebac(0x2b7)](){var _0x447d18=_0x4eebac;this[_0x447d18(0x344)](),this[_0x447d18(0x3ab)]();}[_0x4eebac(0x344)](){var _0x2f1529=_0x4eebac,_0x325a2f,_0x36503b,_0x96e715,_0x5a8fea;this[_0x2f1529(0x2d3)][_0x2f1529(0x33c)](IUndoRedoService)&&this[_0x2f1529(0x23a)][_0x2f1529(0x154)](_0x2f1529(0x12c),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');const _0x4ee811=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x36503b=(_0x325a2f=this[_0x2f1529(0x432)])==null?void 0x0:_0x325a2f[_0x2f1529(0x2bc)])!=null?_0x36503b:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x96e715=this[_0x2f1529(0x432)])==null?void 0x0:_0x96e715[_0x2f1529(0x433)]);if(!((_0x5a8fea=this[_0x2f1529(0x432)])!=null&&_0x5a8fea[_0x2f1529(0x1f0)])){const _0x46c391=_0x4ee811['findIndex'](([_0x201a18])=>_0x201a18===ISingleActiveUnitService);_0x46c391!==-0x1&&_0x4ee811[_0x2f1529(0x26b)](_0x46c391,0x1);}registerDependencies(this[_0x2f1529(0x2d3)],_0x4ee811);}[_0x4eebac(0x3ab)](){var _0x37983a=_0x4eebac,_0x347b47,_0x236957,_0x379df0;this[_0x37983a(0x2d3)][_0x37983a(0x28a)](HTTPService)['registerHTTPInterceptor']({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x347b47=this['_config'])!=null&&_0x347b47[_0x37983a(0x206)]||(_0x236957=this['_injector'][_0x37983a(0x28a)](ILocalCacheService,Quantity['OPTIONAL']))==null||_0x236957[_0x37983a(0x17d)](),(_0x379df0=this[_0x37983a(0x432)])!=null&&_0x379df0['enableAuthServer']&&touchDependencies(this[_0x37983a(0x2d3)],[[AuthServerService]]),touchDependencies(this[_0x37983a(0x2d3)],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0x4eebac(0x35b)),_a27);__publicField2(UniverCollaborationClientPlugin,_0x4eebac(0x1eb),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
1
+ var _0x10fcf4=_0x1531;(function(_0x3a765e,_0x2c095a){var _0x25b0e4=_0x1531,_0x1a8d25=_0x3a765e();while(!![]){try{var _0x1702f0=parseInt(_0x25b0e4(0x3fb))/0x1+-parseInt(_0x25b0e4(0x317))/0x2+parseInt(_0x25b0e4(0x18e))/0x3*(parseInt(_0x25b0e4(0x486))/0x4)+parseInt(_0x25b0e4(0x4ac))/0x5*(-parseInt(_0x25b0e4(0x25d))/0x6)+-parseInt(_0x25b0e4(0x283))/0x7*(parseInt(_0x25b0e4(0x214))/0x8)+-parseInt(_0x25b0e4(0x282))/0x9+parseInt(_0x25b0e4(0x193))/0xa*(parseInt(_0x25b0e4(0x1e2))/0xb);if(_0x1702f0===_0x2c095a)break;else _0x1a8d25['push'](_0x1a8d25['shift']());}catch(_0x4c53f8){_0x1a8d25['push'](_0x1a8d25['shift']());}}}(_0x33e4,0x84d6e));var __defProp=Object['defineProperty'],__defNormalProp=(_0x3afbb0,_0x444163,_0x26a1ae)=>_0x444163 in _0x3afbb0?__defProp(_0x3afbb0,_0x444163,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26a1ae}):_0x3afbb0[_0x444163]=_0x26a1ae,__name=(_0x1e01df,_0xf39e02)=>__defProp(_0x1e01df,'name',{'value':_0xf39e02,'configurable':!0x0}),__publicField=(_0x592748,_0x31c49a,_0xc8bb21)=>__defNormalProp(_0x592748,typeof _0x31c49a!=_0x10fcf4(0x4b5)?_0x31c49a+'':_0x31c49a,_0xc8bb21);import{createIdentifier,Inject,Injector,Disposable,DisposableCollection,toDisposable,IConfigService,ILogService,UserManagerService,UniverInstanceType,IUniverInstanceService,LocaleService,Optional,RxDisposable,Tools,Rectangle,ICommandService,JSONX,CommandType,IPermissionService,IUndoRedoService,sequenceExecute,Workbook,MentionType,IAuthzIoService,isInternalEditorID,LocalUndoRedoService,IContextService,DependentOn,Plugin,merge as _0xfc9023,mergeOverrideWithDependencies,IMentionIOService,registerDependencies,Quantity,touchDependencies}from'@univerjs/core';import{Subject,merge,of,BehaviorSubject,takeUntil,ReplaySubject,take as _0x369b3a,map as _0x168a89,shareReplay,firstValueFrom,concatMap}from'rxjs';import{map,take,filter,delay,takeUntil as _0x2a18c3}from'rxjs/operators';import{HTTPService,ISocketService,MergeInterceptorFactory,HTTPRequest,UniverNetworkPlugin,ThresholdInterceptorFactory}from'@univerjs/network';import{CollaborationEvent,parseChangesetToProtocol,ISnapshotServerService,isTransformMutationsWithChangesetSuccess,ITransformService,mapDocumentTypeToUniverType,RevisionService,isTransformChangesetsSuccess,CompressMutationService,parseProtocolChangeset,SnapshotService,textEncoder,b64DecodeUnicode,isTransformMutationsWithChangesetFailure,UniverCollaborationPlugin}from'@univerjs-pro/collaboration';import{ITelemetryService}from'@univerjs/telemetry';import{RichTextEditingMutation}from'@univerjs/docs';import{SheetsSelectionsService,SetSelectionsOperation,InsertSheetMutation,EmptyMutation,WorkbookEditablePermission,SheetPermissionInitController,UniverSheetsPlugin}from'@univerjs/sheets';import{ImageSourceType,ImageUploadStatusType,IImageIoService}from'@univerjs/drawing';import{getGlobalObject}from'@univerjs-pro/license';const SNAPSHOT_SERVER_URL_KEY=_0x10fcf4(0x2ee),DEFAULT_SNAPSHOT_SERVER_URL=_0x10fcf4(0x22c),SNAPSHOT_URL_KEY=_0x10fcf4(0x267),SEND_CHANGESET_TIMEOUT_KEY=_0x10fcf4(0x328),DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,COLLAB_WEB_SOCKET_URL_KEY=_0x10fcf4(0x3c4),DEFAULT_COLLAB_WEB_SOCKET_URL=_0x10fcf4(0x41e),DEFAULT_WS_SESSION_TICKET_URL=_0x10fcf4(0x42c),HEARTBEAT_INTERVAL_KEY=_0x10fcf4(0x262),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x10fcf4(0x1ec),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY='RETRY_CONNECTING_MAX_COUNT',DEFAULT_RETRY_CONNECTING_MAX_COUNT=0x3,LOCAL_CACHE_INTERVAL_KEY='LOCAL_CACHE_INTERVAL',LOCAL_CACHE_INTERVAL=0x3e8,COLLAB_SUBMIT_CHANGESET_URL_KEY='COLLAB_SUBMIT_CHANGESET_URL',DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x10fcf4(0x305),LOGIN_URL_KEY='LOGIN_URL_KEY',DEFAULT_LOGIN_URL=_0x10fcf4(0x49e),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x10fcf4(0x30b),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT='/universer-api/uniscript';var ErrorCode=(_0x18db09=>(_0x18db09[_0x18db09[_0x10fcf4(0x3ee)]=0x0]=_0x10fcf4(0x3ee),_0x18db09[_0x18db09['OK']=0x1]='OK',_0x18db09[_0x18db09[_0x10fcf4(0x41a)]=0x2]=_0x10fcf4(0x41a),_0x18db09[_0x18db09[_0x10fcf4(0x337)]=0x3]=_0x10fcf4(0x337),_0x18db09[_0x18db09[_0x10fcf4(0x24d)]=0x4]=_0x10fcf4(0x24d),_0x18db09[_0x18db09[_0x10fcf4(0x466)]=0x5]=_0x10fcf4(0x466),_0x18db09[_0x18db09[_0x10fcf4(0x2e2)]=0x6]=_0x10fcf4(0x2e2),_0x18db09[_0x18db09[_0x10fcf4(0x1e3)]=0x7]='INVALID_ARGUMENT',_0x18db09[_0x18db09[_0x10fcf4(0x3bf)]=0x8]=_0x10fcf4(0x3bf),_0x18db09[_0x18db09[_0x10fcf4(0x252)]=0x9]='COMPLETION_FINISHED',_0x18db09[_0x18db09[_0x10fcf4(0x2d8)]=0x1389]=_0x10fcf4(0x2d8),_0x18db09[_0x18db09[_0x10fcf4(0x376)]=0x1771]=_0x10fcf4(0x376),_0x18db09[_0x18db09[_0x10fcf4(0x432)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x18db09[_0x18db09[_0x10fcf4(0x4b2)]=0x1773]=_0x10fcf4(0x4b2),_0x18db09[_0x18db09['APPLY_REJECT']=0x1b59]=_0x10fcf4(0x1a3),_0x18db09[_0x18db09[_0x10fcf4(0x208)]=0x1b5a]=_0x10fcf4(0x208),_0x18db09[_0x18db09[_0x10fcf4(0x404)]=0x1b5b]=_0x10fcf4(0x404),_0x18db09[_0x18db09[_0x10fcf4(0x430)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x18db09[_0x18db09['APPLY_DUPLICATED']=0x1b5d]=_0x10fcf4(0x225),_0x18db09[_0x18db09[_0x10fcf4(0x1d9)]=0x1f41]=_0x10fcf4(0x1d9),_0x18db09[_0x18db09[_0x10fcf4(0x4b6)]=0x2329]=_0x10fcf4(0x4b6),_0x18db09[_0x18db09['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x10fcf4(0x254),_0x18db09[_0x18db09[_0x10fcf4(0x456)]=0x232b]=_0x10fcf4(0x456),_0x18db09[_0x18db09[_0x10fcf4(0x3c8)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x18db09[_0x18db09[_0x10fcf4(0x42d)]=0x232d]=_0x10fcf4(0x42d),_0x18db09[_0x18db09[_0x10fcf4(0x229)]=0x2711]=_0x10fcf4(0x229),_0x18db09[_0x18db09[_0x10fcf4(0x1f4)]=0x2712]=_0x10fcf4(0x1f4),_0x18db09[_0x18db09[_0x10fcf4(0x31f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x18db09[_0x18db09[_0x10fcf4(0x188)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x18db09[_0x18db09[_0x10fcf4(0x347)]=0x2af9]=_0x10fcf4(0x347),_0x18db09[_0x18db09[_0x10fcf4(0x43b)]=-0x1]=_0x10fcf4(0x43b),_0x18db09))(ErrorCode||{}),UniverType=(_0x14afae=>(_0x14afae[_0x14afae[_0x10fcf4(0x3ff)]=0x0]='UNIVER_UNKNOWN',_0x14afae[_0x14afae[_0x10fcf4(0x30c)]=0x1]='UNIVER_DOC',_0x14afae[_0x14afae[_0x10fcf4(0x3a7)]=0x2]=_0x10fcf4(0x3a7),_0x14afae[_0x14afae[_0x10fcf4(0x23d)]=0x3]=_0x10fcf4(0x23d),_0x14afae[_0x14afae[_0x10fcf4(0x406)]=0x4]=_0x10fcf4(0x406),_0x14afae[_0x14afae[_0x10fcf4(0x43b)]=-0x1]=_0x10fcf4(0x43b),_0x14afae))(UniverType||{}),CombCmd=(_0x2aa839=>(_0x2aa839[_0x2aa839[_0x10fcf4(0x372)]=0x0]=_0x10fcf4(0x372),_0x2aa839[_0x2aa839[_0x10fcf4(0x1f5)]=0x1]=_0x10fcf4(0x1f5),_0x2aa839[_0x2aa839[_0x10fcf4(0x334)]=0x2]='JOIN',_0x2aa839[_0x2aa839['LEAVE']=0x3]=_0x10fcf4(0x44f),_0x2aa839[_0x2aa839[_0x10fcf4(0x392)]=0x4]=_0x10fcf4(0x392),_0x2aa839[_0x2aa839[_0x10fcf4(0x23c)]=0x5]=_0x10fcf4(0x23c),_0x2aa839[_0x2aa839['RECV']=0x6]=_0x10fcf4(0x39e),_0x2aa839[_0x2aa839['UNRECOGNIZED']=-0x1]=_0x10fcf4(0x43b),_0x2aa839))(CombCmd||{}),CmdRspCode=(_0x45d617=>(_0x45d617[_0x45d617[_0x10fcf4(0x34f)]=0x0]=_0x10fcf4(0x34f),_0x45d617[_0x45d617['OK']=0x1]='OK',_0x45d617[_0x45d617['FAIL']=0x2]=_0x10fcf4(0x32e),_0x45d617[_0x45d617[_0x10fcf4(0x19d)]=0x3e9]='JOIN_ROOM_FULL',_0x45d617[_0x45d617['JOIN_ROOM_NOT_EXISTS']=0x3ea]=_0x10fcf4(0x397),_0x45d617[_0x45d617[_0x10fcf4(0x1ae)]=0x3eb]=_0x10fcf4(0x1ae),_0x45d617[_0x45d617[_0x10fcf4(0x46a)]=0x3ec]=_0x10fcf4(0x46a),_0x45d617[_0x45d617[_0x10fcf4(0x43b)]=-0x1]=_0x10fcf4(0x43b),_0x45d617))(CmdRspCode||{}),FileSource=(_0x4ec7b6=>(_0x4ec7b6[_0x4ec7b6['Undefined']=0x0]=_0x10fcf4(0x28f),_0x4ec7b6[_0x4ec7b6['HttpImport']=0x1]=_0x10fcf4(0x41d),_0x4ec7b6[_0x4ec7b6['HttpExport']=0x2]=_0x10fcf4(0x1ea),_0x4ec7b6[_0x4ec7b6[_0x10fcf4(0x25b)]=0x3]=_0x10fcf4(0x25b),_0x4ec7b6[_0x4ec7b6[_0x10fcf4(0x276)]=0x4]=_0x10fcf4(0x276),_0x4ec7b6[_0x4ec7b6['UNRECOGNIZED']=-0x1]=_0x10fcf4(0x43b),_0x4ec7b6))(FileSource||{});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x10fcf4(0x2cc),defaultPluginConfig={};var CollaborationUIEventId=(_0x4b22b9=>(_0x4b22b9[_0x10fcf4(0x3bd)]=_0x10fcf4(0x3bd),_0x4b22b9[_0x10fcf4(0x337)]=_0x10fcf4(0x337),_0x4b22b9[_0x10fcf4(0x367)]=_0x10fcf4(0x367),_0x4b22b9['CLOSE_ROOM']=_0x10fcf4(0x2f0),_0x4b22b9[_0x10fcf4(0x359)]=_0x10fcf4(0x359),_0x4b22b9[_0x10fcf4(0x443)]=_0x10fcf4(0x443),_0x4b22b9[_0x10fcf4(0x2af)]='SOCKET_FAILED',_0x4b22b9[_0x10fcf4(0x4b7)]=_0x10fcf4(0x4b7),_0x4b22b9))(CollaborationUIEventId||{});const _CollaborationUIEventService=class _CollaborationUIEventService{constructor(){var _0x597733=_0x10fcf4;__publicField(this,_0x597733(0x292),new Subject()),__publicField(this,_0x597733(0x48c),this[_0x597733(0x292)][_0x597733(0x3b6)]());}[_0x10fcf4(0x22f)](_0x49de6f){var _0x47bd9c=_0x10fcf4;this['_event$'][_0x47bd9c(0x3d5)](_0x49de6f);}};__name(_CollaborationUIEventService,'CollaborationUIEventService');let CollaborationUIEventService=_CollaborationUIEventService;const INetworkConditionService=createIdentifier(_0x10fcf4(0x2ff));function deserializeToCombResponse(_0x3f989a){var _0x4599b5=_0x10fcf4,_0x466e58,_0x3bf53c,_0x46cfe0,_0x5d24e4,_0x4dad74;const _0x32947e=_0x3f989a['data'],_0x4a95ef=JSON[_0x4599b5(0x361)](_0x32947e);switch(_0x4a95ef[_0x4599b5(0x42e)]){case CombCmd['HEARTBEAT']:case CombCmd[_0x4599b5(0x1f5)]:{const _0x574843=_0x4a95ef['infoRsp'];return{..._0x4a95ef,'data':_0x574843,'cmd':_0x4a95ef[_0x4599b5(0x42e)]};}case CombCmd[_0x4599b5(0x334)]:{const _0xcd6f40=_0x4a95ef[_0x4599b5(0x471)];return{..._0x4a95ef,'data':_0xcd6f40,'cmd':_0x4a95ef['cmd']};}case CombCmd[_0x4599b5(0x39e)]:{const _0x1b1028=_0x4a95ef['collaMsg'];switch(_0x1b1028[_0x4599b5(0x204)]){case CollaborationEvent[_0x4599b5(0x340)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x466e58=_0x1b1028[_0x4599b5(0x451)])==null?void 0x0:_0x466e58['cs']},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x1d5)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x3bf53c=_0x1b1028['csAckEvent'])==null?void 0x0:_0x3bf53c['cs']},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent['NEW_CHANGESETS']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x46cfe0=_0x1b1028['newCsEvent'])==null?void 0x0:_0x46cfe0['cs']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent['CHANGESET_REJ']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x5d24e4=_0x1b1028['csRejEvent'])==null?void 0x0:_0x5d24e4['cs']},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x49b)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':(_0x4dad74=_0x1b1028[_0x4599b5(0x4c4)])==null?void 0x0:_0x4dad74['cs']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent[_0x4599b5(0x2c8)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x33f)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x498)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x483)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x217)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028['leaveEvent']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent[_0x4599b5(0x31d)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028['liveShareNewHost']},'cmd':_0x4a95ef['cmd']};case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:case CollaborationEvent['LIVESHARE_OPERATION']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x234)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x2c2)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x197)]:return{..._0x4a95ef,'data':_0x1b1028,'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x29b)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x275)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x3d7)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x23b)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x495)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x19f)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};case CollaborationEvent[_0x4599b5(0x1d7)]:return{..._0x4a95ef,'data':{..._0x1b1028,'data':_0x1b1028[_0x4599b5(0x3d4)]},'cmd':_0x4a95ef[_0x4599b5(0x42e)]};default:return _0x4a95ef;}}default:return _0x4a95ef;}}__name(deserializeToCombResponse,_0x10fcf4(0x1d0));function serializeCombRequest(_0x252773){var _0xe8f37e=_0x10fcf4;switch(_0x252773[_0xe8f37e(0x42e)]){case CombCmd['HEARTBEAT']:case CombCmd[_0xe8f37e(0x1f5)]:return JSON[_0xe8f37e(0x259)]({'cmd':_0x252773['cmd'],'routeKey':_0x252773[_0xe8f37e(0x2ce)]});case CombCmd['INGEST']:{let _0x1d749d;switch(_0x252773['data'][_0xe8f37e(0x204)]){case CollaborationEvent[_0xe8f37e(0x2c8)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x2c8)],'updateCursorEvent':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x217)]:{_0x1d749d={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x498)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x498)],'joinEvent':_0x252773['data']['data']};break;}case CollaborationEvent['LIVESHARE_NEW_HOST']:{_0x1d749d={'eventID':CollaborationEvent['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x252773['data'][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x41f)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x41f)],'liveShareOperation':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x32d)]:{_0x1d749d={'eventID':CollaborationEvent['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x1a9)]:{_0x1d749d={'eventID':CollaborationEvent[_0xe8f37e(0x1a9)],'liveShareRequestHost':_0x252773[_0xe8f37e(0x407)][_0xe8f37e(0x407)]};break;}case CollaborationEvent[_0xe8f37e(0x48f)]:{_0x1d749d={'eventID':CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x1d749d={'eventID':_0x252773[_0xe8f37e(0x407)]['eventID']};}return JSON[_0xe8f37e(0x259)]({'cmd':_0x252773[_0xe8f37e(0x42e)],'routeKey':_0x252773['routeKey'],'collaMsg':_0x1d749d});}case CombCmd['JOIN']:return JSON['stringify']({'cmd':_0x252773[_0xe8f37e(0x42e)],'routeKey':_0x252773[_0xe8f37e(0x2ce)],'joinReq':_0x252773['data']});case CombCmd[_0xe8f37e(0x44f)]:return JSON[_0xe8f37e(0x259)]({'cmd':_0x252773['cmd'],'routeKey':_0x252773[_0xe8f37e(0x2ce)],'leaveReq':_0x252773[_0xe8f37e(0x407)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}__name(serializeCombRequest,_0x10fcf4(0x265));var __defProp$i=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$i=Object[_0x10fcf4(0x341)],__decorateClass$i=__name((_0xc18e6b,_0x24fe9f,_0x2178aa,_0x3ec934)=>{var _0x4a71f3=_0x10fcf4;for(var _0x639044=_0x3ec934>0x1?void 0x0:_0x3ec934?__getOwnPropDesc$i(_0x24fe9f,_0x2178aa):_0x24fe9f,_0x16f60a=_0xc18e6b[_0x4a71f3(0x20b)]-0x1,_0x5a7809;_0x16f60a>=0x0;_0x16f60a--)(_0x5a7809=_0xc18e6b[_0x16f60a])&&(_0x639044=(_0x3ec934?_0x5a7809(_0x24fe9f,_0x2178aa,_0x639044):_0x5a7809(_0x639044))||_0x639044);return _0x3ec934&&_0x639044&&__defProp$i(_0x24fe9f,_0x2178aa,_0x639044),_0x639044;},_0x10fcf4(0x414)),__decorateParam$i=__name((_0x3c5184,_0x59b01c)=>(_0x148fcd,_0x33f3e9)=>_0x59b01c(_0x148fcd,_0x33f3e9,_0x3c5184),_0x10fcf4(0x400));const ICollaborationSocketService=createIdentifier('univer-pro.collaboration-client-socket-service');function generateSubmitChangesPath(_0x39391f,_0x5be5b9,_0x276937){var _0x383721=_0x10fcf4;return _0x39391f+'/'+_0x5be5b9+_0x383721(0x34c)+_0x276937+_0x383721(0x399);}__name(generateSubmitChangesPath,_0x10fcf4(0x1bf));var _a;let CollaborationSocketService=(_a=class extends Disposable{constructor(_0x49d9db,_0x1625cd,_0x57a644,_0x3659bf,_0x3f0ad5){var _0x4fe6f7=_0x10fcf4;super(),this[_0x4fe6f7(0x2b7)]=_0x49d9db,this[_0x4fe6f7(0x464)]=_0x1625cd,this[_0x4fe6f7(0x2bf)]=_0x57a644,this[_0x4fe6f7(0x298)]=_0x3659bf,this['_snapshotServerService']=_0x3f0ad5;}['createSocket'](_0x2c2684){var _0x13e3fd=_0x10fcf4;const _0x129e08=this[_0x13e3fd(0x2b7)][_0x13e3fd(0x402)](ISocketService);if(!_0x129e08)throw new Error(_0x13e3fd(0x2f7));const _0x5993e8=_0x129e08['createSocket'](_0x2c2684);if(!_0x5993e8)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3d8166=new DisposableCollection(),_0xa78f95=new Subject();_0x3d8166['add'](_0x5993e8[_0x13e3fd(0x271)][_0x13e3fd(0x416)](_0xd81838=>_0xa78f95[_0x13e3fd(0x3d5)](_0xd81838))),_0x3d8166[_0x13e3fd(0x258)](toDisposable(()=>_0xa78f95[_0x13e3fd(0x36e)]()));const _0x242ba3=new Subject();_0x3d8166[_0x13e3fd(0x258)](_0x5993e8[_0x13e3fd(0x47b)][_0x13e3fd(0x416)](_0x276484=>_0x242ba3[_0x13e3fd(0x3d5)](_0x276484))),_0x3d8166['add'](toDisposable(()=>_0x242ba3[_0x13e3fd(0x36e)]()));const _0x2af0e2=new Subject();_0x3d8166[_0x13e3fd(0x258)](_0x5993e8[_0x13e3fd(0x3ba)]['subscribe'](_0x255c38=>{const _0x10dde7=deserializeToCombResponse(_0x255c38);_0x2af0e2['next'](_0x10dde7);})),_0x3d8166[_0x13e3fd(0x258)](toDisposable(()=>_0x2af0e2[_0x13e3fd(0x36e)]()));let _0x296ab2;const _0x489964=__name(()=>{var _0x3011af=_0x13e3fd;_0x242ba3[_0x3011af(0x3d5)](new Event(_0x3011af(0x459))),_0xa78f95[_0x3011af(0x3d5)](new CloseEvent(_0x3011af(0x459))),_0x296ab2[_0x3011af(0x3b8)]();},_0x13e3fd(0x1a4));return _0x296ab2={'memberID':'','close$':_0xa78f95[_0x13e3fd(0x3b6)](),'error$':_0x242ba3[_0x13e3fd(0x3b6)](),'open$':_0x5993e8[_0x13e3fd(0x2cd)],'message$':_0x2af0e2[_0x13e3fd(0x3b6)](),'send':__name(_0x1e101e=>{var _0x5c6a20=_0x13e3fd;if(_0x1e101e['cmd']===CombCmd[_0x5c6a20(0x392)]){if(_0x1e101e[_0x5c6a20(0x407)][_0x5c6a20(0x204)]===CollaborationEvent['SUBMIT_CHANGESET']){this[_0x5c6a20(0x36d)](_0x296ab2,_0x1e101e[_0x5c6a20(0x407)])[_0x5c6a20(0x29f)](_0x490bed=>{var _0x5bfcd6=_0x5c6a20;this[_0x5bfcd6(0x298)][_0x5bfcd6(0x2a0)](_0x490bed),_0x489964();});return;}if(_0x1e101e[_0x5c6a20(0x407)]['eventID']===CollaborationEvent[_0x5c6a20(0x2b1)]){const _0x8cc940=_0x1e101e[_0x5c6a20(0x407)];this[_0x5c6a20(0x216)](_0x8cc940)[_0x5c6a20(0x23a)](_0x104a64=>{var _0x40f691=_0x5c6a20;_0x2af0e2[_0x40f691(0x3d5)]({'cmd':CombCmd[_0x40f691(0x39e)],'code':CmdRspCode['OK'],'routeKey':_0x8cc940[_0x40f691(0x407)][_0x40f691(0x436)],'routeType':'','data':{'eventID':CollaborationEvent[_0x40f691(0x3e5)],'data':{'changesets':_0x104a64}}});})[_0x5c6a20(0x29f)](_0x2af6d8=>{var _0x64931d=_0x5c6a20;this[_0x64931d(0x298)]['error'](_0x2af6d8),_0x489964();});return;}}_0x5993e8[_0x5c6a20(0x309)](serializeCombRequest(_0x1e101e));},_0x13e3fd(0x309)),'close':__name(()=>{var _0x216d7b=_0x13e3fd;_0x5993e8[_0x216d7b(0x3b8)](),_0x3d8166[_0x216d7b(0x318)]();},_0x13e3fd(0x3b8))},_0x296ab2;}async[_0x10fcf4(0x36d)](_0x505d4d,_0x5bde5f){var _0x454de9=_0x10fcf4,_0x3f2669,_0x1c3e80;const {unitType:_0x4e55e3,unitID:_0x532149,changeset:_0x5d3bd6}=_0x5bde5f[_0x454de9(0x407)],_0x239598={'unitID':_0x532149,'memberID':_0x505d4d['memberID'],'type':_0x4e55e3,'changeset':parseChangesetToProtocol(_0x5d3bd6)},_0x3e5072=this[_0x454de9(0x2bf)]['getConfig'](COLLAB_SUBMIT_CHANGESET_URL_KEY),_0x1ffb1f=this['_configService'][_0x454de9(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x3bd695=generateSubmitChangesPath((_0x1c3e80=(_0x3f2669=_0x1ffb1f==null?void 0x0:_0x1ffb1f[_0x454de9(0x47a)])!=null?_0x3f2669:_0x3e5072)!=null?_0x1c3e80:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0x4e55e3,_0x532149);try{await this[_0x454de9(0x464)][_0x454de9(0x40d)](_0x3bd695,{'body':_0x239598});}catch(_0x4bd04f){throw this[_0x454de9(0x298)][_0x454de9(0x2a0)](_0x454de9(0x32f),'submit\x20changeset\x20error!'),_0x4bd04f;}}async['_fetchMissChangesets'](_0xc0080c){var _0x3b1ba9=_0x10fcf4;const {unitID:_0x2da1f7,from:_0x51fa77,to:_0x29e36b,unitType:_0x5959ab}=_0xc0080c[_0x3b1ba9(0x407)];return(await this[_0x3b1ba9(0x4ad)][_0x3b1ba9(0x39f)]({'metadata':void 0x0},{'unitID':_0x2da1f7,'type':_0x5959ab,'from':_0x51fa77,'to':_0x29e36b}))[_0x3b1ba9(0x2ad)];}},__name(_a,_0x10fcf4(0x311)),_a);CollaborationSocketService=__decorateClass$i([__decorateParam$i(0x0,Inject(Injector)),__decorateParam$i(0x1,Inject(HTTPService)),__decorateParam$i(0x2,IConfigService),__decorateParam$i(0x3,ILogService),__decorateParam$i(0x4,ISnapshotServerService)],CollaborationSocketService);const TELEMETRY_COLLABORATION_NEW_CHANGESET='collaboration_new_changeset';function summaryChangesetSize(_0x476aa2){var _0x20e0c3=_0x10fcf4;return JSON['stringify'](_0x476aa2)[_0x20e0c3(0x20b)];}__name(summaryChangesetSize,_0x10fcf4(0x35f));const _CommentService=class _CommentService{constructor(){var _0x46b899=_0x10fcf4;__publicField(this,_0x46b899(0x1b6),new Subject()),__publicField(this,_0x46b899(0x296),this['_commentUpdate$'][_0x46b899(0x3b6)]());}['onCommentUpdate'](_0x3cf0f0){var _0x4d15f5=_0x10fcf4;this[_0x4d15f5(0x1b6)]['next'](_0x3cf0f0);}};__name(_CommentService,_0x10fcf4(0x355));let CommentService=_CommentService;var __defProp$h=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$h=Object[_0x10fcf4(0x341)],__decorateClass$h=__name((_0x2257ef,_0x5a8d54,_0x3ec8e6,_0xde507a)=>{var _0xf7264d=_0x10fcf4;for(var _0x567d28=_0xde507a>0x1?void 0x0:_0xde507a?__getOwnPropDesc$h(_0x5a8d54,_0x3ec8e6):_0x5a8d54,_0x1eb0a6=_0x2257ef[_0xf7264d(0x20b)]-0x1,_0x3d4e61;_0x1eb0a6>=0x0;_0x1eb0a6--)(_0x3d4e61=_0x2257ef[_0x1eb0a6])&&(_0x567d28=(_0xde507a?_0x3d4e61(_0x5a8d54,_0x3ec8e6,_0x567d28):_0x3d4e61(_0x567d28))||_0x567d28);return _0xde507a&&_0x567d28&&__defProp$h(_0x5a8d54,_0x3ec8e6,_0x567d28),_0x567d28;},_0x10fcf4(0x455)),__decorateParam$h=__name((_0x29063b,_0x45c93e)=>(_0xbbe9fa,_0xb5d962)=>_0x45c93e(_0xbbe9fa,_0xb5d962,_0x29063b),'__decorateParam$h'),_a2;let MemberService=(_a2=class extends Disposable{constructor(_0x5a8904,_0x4c6641){var _0x45e9fa=_0x10fcf4;super(),__publicField(this,'_roomMembers',new Map()),__publicField(this,'_roomCreated$',new Subject()),(this[_0x45e9fa(0x3a9)]=_0x5a8904,this[_0x45e9fa(0x37f)]=_0x4c6641,this['disposeWithMe'](merge(this['_univerInstanceService']['getTypeOfUnitDisposed$'](UniverInstanceType['UNIVER_SHEET'])['pipe'](map(_0x4737f9=>_0x4737f9[_0x45e9fa(0x2b9)]())),this[_0x45e9fa(0x3a9)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x45e9fa(0x30c)])[_0x45e9fa(0x18d)](map(_0x419430=>_0x419430['getUnitId']())),this[_0x45e9fa(0x3a9)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x45e9fa(0x23d)])['pipe'](map(_0x4bdd63=>_0x4bdd63[_0x45e9fa(0x2b9)]())))[_0x45e9fa(0x416)](_0x478815=>this[_0x45e9fa(0x478)](_0x478815))));}[_0x10fcf4(0x31c)](_0x3a95f2){var _0x1256e0=_0x10fcf4;return this[_0x1256e0(0x18a)][_0x1256e0(0x3f8)](_0x3a95f2)?of(this[_0x1256e0(0x18a)][_0x1256e0(0x402)](_0x3a95f2)):this[_0x1256e0(0x1c4)][_0x1256e0(0x18d)](map(_0x44ce06=>{var _0x5d1f97=_0x1256e0;if(_0x44ce06===_0x3a95f2)return this['_roomMembers'][_0x5d1f97(0x402)](_0x44ce06);}));}[_0x10fcf4(0x348)](_0x3f92b3){var _0x755997=_0x10fcf4;this[_0x755997(0x37f)][_0x755997(0x348)](_0x3f92b3);}[_0x10fcf4(0x2f5)](){var _0x448a74=_0x10fcf4;return this[_0x448a74(0x37f)][_0x448a74(0x2f5)]();}['updateMember'](_0x1e38dc,_0x6167b){var _0x1327d6=_0x10fcf4;let _0x425bcd=this[_0x1327d6(0x18a)]['get'](_0x1e38dc);_0x425bcd||(_0x425bcd=new RoomMember(),this[_0x1327d6(0x18a)][_0x1327d6(0x26a)](_0x1e38dc,_0x425bcd),this['_roomCreated$'][_0x1327d6(0x3d5)](_0x1e38dc)),_0x425bcd['updateMember'](_0x6167b);}[_0x10fcf4(0x191)](_0x1cfdd6,_0x59f409){var _0x3aff5c=_0x10fcf4;const _0xc63dfc=this[_0x3aff5c(0x18a)][_0x3aff5c(0x402)](_0x1cfdd6);_0xc63dfc&&_0xc63dfc[_0x3aff5c(0x191)](_0x59f409);}[_0x10fcf4(0x3f0)](_0x3c3e19){var _0xbdc49f=_0x10fcf4;return this[_0xbdc49f(0x18a)]['get'](_0x3c3e19);}[_0x10fcf4(0x1d1)](_0x317de6,_0x37ab8a){var _0x542714=_0x10fcf4;const _0x3b4a30=this[_0x542714(0x18a)][_0x542714(0x402)](_0x317de6);if(_0x3b4a30)return _0x3b4a30[_0x542714(0x1d1)](_0x37ab8a);}[_0x10fcf4(0x478)](_0x33bcd3){var _0xcf7518=_0x10fcf4;const _0x9916e3=this[_0xcf7518(0x18a)][_0xcf7518(0x402)](_0x33bcd3);_0x9916e3&&(_0x9916e3[_0xcf7518(0x318)](),this[_0xcf7518(0x18a)][_0xcf7518(0x2d5)](_0x33bcd3));}[_0x10fcf4(0x318)](){var _0xf15b66=_0x10fcf4;this[_0xf15b66(0x18a)][_0xf15b66(0x260)](_0x6634c6=>_0x6634c6[_0xf15b66(0x318)]()),this['_roomMembers'][_0xf15b66(0x272)](),this[_0xf15b66(0x1c4)]['complete']();}},__name(_a2,'MemberService'),_a2);MemberService=__decorateClass$h([__decorateParam$h(0x0,IUniverInstanceService),__decorateParam$h(0x1,Inject(UserManagerService))],MemberService);const _RoomMember=class _RoomMember extends Disposable{constructor(){var _0x1d4791=_0x10fcf4;super(...arguments),__publicField(this,'_members',new Map()),__publicField(this,_0x1d4791(0x246),new BehaviorSubject(this['_members'])),__publicField(this,'members$',this[_0x1d4791(0x246)]['asObservable']());}[_0x10fcf4(0x318)](){var _0x4dabd4=_0x10fcf4;this[_0x4dabd4(0x2e6)][_0x4dabd4(0x272)]();}[_0x10fcf4(0x1b4)](_0xda827){var _0x5ae584=_0x10fcf4;this['_members'][_0x5ae584(0x26a)](_0xda827[_0x5ae584(0x49f)],_0xda827),this[_0x5ae584(0x43c)]();}['removeMember'](_0x495a2b){var _0x5e1747=_0x10fcf4;this[_0x5e1747(0x2e6)][_0x5e1747(0x2d5)](_0x495a2b);}[_0x10fcf4(0x1d1)](_0x44cf9e){var _0x2e0309=_0x10fcf4;return this['_members'][_0x2e0309(0x402)](_0x44cf9e);}[_0x10fcf4(0x28c)](){var _0x56714c=_0x10fcf4;return Array[_0x56714c(0x363)](this[_0x56714c(0x2e6)][_0x56714c(0x2e3)]());}[_0x10fcf4(0x43c)](){var _0x807341=_0x10fcf4;this[_0x807341(0x246)][_0x807341(0x3d5)](this['_members']);}};__name(_RoomMember,'RoomMember');let RoomMember=_RoomMember;var __defProp$g=Object['defineProperty'],__getOwnPropDesc$g=Object[_0x10fcf4(0x341)],__decorateClass$g=__name((_0xc578e2,_0xab5fb6,_0x3ca6fd,_0x44f155)=>{var _0x278915=_0x10fcf4;for(var _0x1b8ceb=_0x44f155>0x1?void 0x0:_0x44f155?__getOwnPropDesc$g(_0xab5fb6,_0x3ca6fd):_0xab5fb6,_0x45c3a6=_0xc578e2[_0x278915(0x20b)]-0x1,_0x14b2b5;_0x45c3a6>=0x0;_0x45c3a6--)(_0x14b2b5=_0xc578e2[_0x45c3a6])&&(_0x1b8ceb=(_0x44f155?_0x14b2b5(_0xab5fb6,_0x3ca6fd,_0x1b8ceb):_0x14b2b5(_0x1b8ceb))||_0x1b8ceb);return _0x44f155&&_0x1b8ceb&&__defProp$g(_0xab5fb6,_0x3ca6fd,_0x1b8ceb),_0x1b8ceb;},_0x10fcf4(0x1b7)),__decorateParam$g=__name((_0x5b2205,_0x655c1b)=>(_0x5dfda9,_0x5ef738)=>_0x655c1b(_0x5dfda9,_0x5ef738,_0x5b2205),_0x10fcf4(0x470)),SessionStatus=(_0x38ad15=>(_0x38ad15[_0x38ad15['IDLE']=0x0]=_0x10fcf4(0x365),_0x38ad15[_0x38ad15['JOINING']=0x1]=_0x10fcf4(0x44a),_0x38ad15[_0x38ad15['OFFLINE']=0x2]=_0x10fcf4(0x2e4),_0x38ad15[_0x38ad15['ONLINE']=0x3]=_0x10fcf4(0x3b0),_0x38ad15))(SessionStatus||{});const FailedReason={[CmdRspCode[_0x10fcf4(0x32e)]]:_0x10fcf4(0x346),[CmdRspCode[_0x10fcf4(0x19d)]]:'session.room-full',[CmdRspCode['JOIN_ROOM_NOT_EXISTS']]:_0x10fcf4(0x314),[CmdRspCode[_0x10fcf4(0x1ae)]]:_0x10fcf4(0x187),[CmdRspCode[_0x10fcf4(0x46a)]]:'session.room-cnt-exceeds'};var _a3;let CollaborationSession=(_a3=class extends RxDisposable{constructor(_0x9e37a5,_0x4d2f6a,_0x5d25e4,_0x41785b,_0x41dcec,_0xc08109,_0x357967,_0x12b5da,_0x1f466d){var _0xd80cbc=_0x10fcf4;super(),__publicField(this,'_sessionStatus$',new BehaviorSubject(0x0)),__publicField(this,_0xd80cbc(0x215),this[_0xd80cbc(0x3cf)][_0xd80cbc(0x3b6)]()),__publicField(this,'_event$',new Subject()),__publicField(this,'event$',this[_0xd80cbc(0x292)]['asObservable']()),__publicField(this,_0xd80cbc(0x3b3)),__publicField(this,_0xd80cbc(0x26b)),__publicField(this,'_collaborationTimeoutTimer'),__publicField(this,'_shouldReportTelemetry',!0x1),__publicField(this,_0xd80cbc(0x36a),null),(this[_0xd80cbc(0x269)]=_0x9e37a5,this[_0xd80cbc(0x298)]=_0x5d25e4,this['_configService']=_0x41785b,this[_0xd80cbc(0x1e6)]=_0x41dcec,this[_0xd80cbc(0x49c)]=_0xc08109,this[_0xd80cbc(0x34a)]=_0x357967,this[_0xd80cbc(0x4b8)]=_0x12b5da,this['_telemetryService']=_0x1f466d,this[_0xd80cbc(0x360)]=!!this[_0xd80cbc(0x2bc)],_0x4d2f6a[_0xd80cbc(0x18d)](takeUntil(this[_0xd80cbc(0x205)]))[_0xd80cbc(0x416)](_0x214ee5=>{var _0x39f006=_0xd80cbc,_0x3de593;typeof _0x214ee5>'u'||(this[_0x39f006(0x3b3)]=_0x214ee5,_0x214ee5?(this['_joinRoom'](_0x214ee5),this[_0x39f006(0x26b)]=_0x214ee5['message$'][_0x39f006(0x416)](_0x3e545b=>{var _0x33f8e2=_0x39f006;_0x3e545b[_0x33f8e2(0x2ce)]===this['_unitID']&&this[_0x33f8e2(0x249)](_0x3e545b);})):(this[_0x39f006(0x21f)](),this['_sessionStatus$'][_0x39f006(0x3d5)](0x2),(_0x3de593=this[_0x39f006(0x26b)])==null||_0x3de593['unsubscribe'](),this[_0x39f006(0x26b)]=null));}));}get['sessionStatus'](){var _0x334116=_0x10fcf4;return this[_0x334116(0x3cf)][_0x334116(0x452)]();}[_0x10fcf4(0x1b0)](){var _0x512204,_0x57f21d;return(_0x57f21d=(_0x512204=this['_socket'])==null?void 0x0:_0x512204['memberID'])!=null?_0x57f21d:null;}[_0x10fcf4(0x318)](){var _0x46fd3b=_0x10fcf4;super[_0x46fd3b(0x318)](),this[_0x46fd3b(0x205)][_0x46fd3b(0x3d5)](),this[_0x46fd3b(0x205)][_0x46fd3b(0x36e)]();}[_0x10fcf4(0x3b8)](){var _0x1e551b=_0x10fcf4,_0x49750a,_0x420099;this[_0x1e551b(0x21f)](),(_0x49750a=this[_0x1e551b(0x3b3)])==null||_0x49750a[_0x1e551b(0x309)]({'cmd':CombCmd['LEAVE'],'data':{'roomID':this[_0x1e551b(0x269)]}}),(_0x420099=this[_0x1e551b(0x3b3)])==null||_0x420099[_0x1e551b(0x3b8)](),this['_event$'][_0x1e551b(0x36e)](),this[_0x1e551b(0x3cf)][_0x1e551b(0x36e)](),this['dispose']();}['_onCombEvent'](_0x4eb967){var _0x4955d7=_0x10fcf4;_0x4eb967[_0x4955d7(0x42e)]===CombCmd[_0x4955d7(0x334)]?this['_onJoinRoomEvent'](_0x4eb967):_0x4eb967[_0x4955d7(0x42e)]===CombCmd[_0x4955d7(0x39e)]&&this[_0x4955d7(0x3a5)](_0x4eb967);}['_joinRoom'](_0x2316d4){var _0xef7205=_0x10fcf4;this[_0xef7205(0x3cf)][_0xef7205(0x3d5)](0x1),_0x2316d4[_0xef7205(0x309)]({'cmd':CombCmd[_0xef7205(0x334)],'routeKey':this[_0xef7205(0x269)],'routeType':'','data':{'rooms':[{'roomID':this[_0xef7205(0x269)]}]}});}['_onJoinRoomEvent'](_0x2d9c9b){var _0x1c9941=_0x10fcf4,_0x321261;if(_0x2d9c9b['code']in FailedReason){this[_0x1c9941(0x4b8)][_0x1c9941(0x22f)]({'id':CollaborationUIEventId[_0x1c9941(0x359)],'data':FailedReason[_0x2d9c9b[_0x1c9941(0x3bb)]]}),this[_0x1c9941(0x3cf)]['next'](0x2);return;}this['_sessionStatus$'][_0x1c9941(0x3d5)](0x3);const _0x26f808=(_0x321261=_0x2d9c9b[_0x1c9941(0x407)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x321261[_0x1c9941(0x28d)];_0x26f808&&_0x26f808[_0x1c9941(0x260)](_0x43011e=>this[_0x1c9941(0x49c)]['updateMember'](this['_unitID'],_0x43011e));}[_0x10fcf4(0x3a5)](_0x4ff122){var _0x437753=_0x10fcf4;try{const _0x4e436b=_0x4ff122[_0x437753(0x407)];switch(_0x4e436b[_0x437753(0x204)]){case CollaborationEvent[_0x437753(0x498)]:this[_0x437753(0x313)](_0x4e436b),this['_event$'][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent[_0x437753(0x217)]:this[_0x437753(0x403)](_0x4e436b),this['_event$'][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent['CHANGESET_ACK']:case CollaborationEvent[_0x437753(0x49b)]:this[_0x437753(0x306)](),this[_0x437753(0x374)](),this['_event$'][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent[_0x437753(0x197)]:this[_0x437753(0x298)][_0x437753(0x2a0)](_0x437753(0x3ad)+JSON['stringify'](_0x4e436b)),this[_0x437753(0x292)][_0x437753(0x3d5)](_0x4e436b);break;case CollaborationEvent[_0x437753(0x29b)]:this['_commentService'][_0x437753(0x411)](_0x4e436b[_0x437753(0x407)]),this[_0x437753(0x292)]['next'](_0x4e436b);break;default:this['_event$'][_0x437753(0x3d5)](_0x4e436b);}}catch(_0x4a44e4){this[_0x437753(0x298)]['error'](_0x4a44e4,_0x4ff122);}}[_0x10fcf4(0x313)](_0x109d5b){var _0x549f1a=_0x10fcf4;this[_0x549f1a(0x49c)][_0x549f1a(0x1b4)](this[_0x549f1a(0x269)],_0x109d5b[_0x549f1a(0x407)]);}['_onUserLeave'](_0x36845d){var _0x2eba1e=_0x10fcf4;this[_0x2eba1e(0x49c)][_0x2eba1e(0x191)](this[_0x2eba1e(0x269)],_0x36845d['data'][_0x2eba1e(0x49f)]);}async[_0x10fcf4(0x309)](_0x592a3f,_0x5dca75){var _0x58fc87=_0x10fcf4;if(this[_0x58fc87(0x20e)]!==0x3||!this['_socket'])throw new Error(_0x58fc87(0x32b));try{_0x592a3f['eventID']===CollaborationEvent[_0x58fc87(0x444)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x58fc87(0x394)](_0x592a3f)),this[_0x58fc87(0x3b3)]['send']({'cmd':CombCmd[_0x58fc87(0x392)],'routeKey':_0x5dca75,'routeType':'','data':_0x592a3f});}catch(_0x41f0c1){this['_logService'][_0x58fc87(0x2a0)](_0x41f0c1);}}[_0x10fcf4(0x45b)](){var _0x51bb3e=_0x10fcf4,_0x56b1f0;this[_0x51bb3e(0x468)]=setTimeout(()=>{var _0x254c01=_0x51bb3e;this[_0x254c01(0x468)]=null,this[_0x254c01(0x4b8)][_0x254c01(0x22f)]({'id':CollaborationUIEventId[_0x254c01(0x4b7)]});},(_0x56b1f0=this[_0x51bb3e(0x2bf)][_0x51bb3e(0x3ef)](HEARTBEAT_TIMEOUT_KEY))!=null?_0x56b1f0:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x10fcf4(0x374)](){var _0x5f1a31=_0x10fcf4;this[_0x5f1a31(0x468)]&&(clearTimeout(this[_0x5f1a31(0x468)]),this[_0x5f1a31(0x468)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x560637){var _0x25d1b1=_0x10fcf4;if(!this['_shouldReportTelemetry'])return;const {data:_0x35f113}=_0x560637,{unitID:_0x5236fc,changeset:_0x1275a8}=_0x35f113,{mutations:_0x5545b1,type:_0x48480a}=_0x1275a8;this['_telemetryInfo']={'unitId':_0x5236fc,'type':_0x48480a,'startTime':performance[_0x25d1b1(0x40c)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x5545b1)};}[_0x10fcf4(0x306)](){var _0x4bacc8=_0x10fcf4;if(this['_shouldReportTelemetry']){if(!this[_0x4bacc8(0x36a)]){this['_logService'][_0x4bacc8(0x2a0)]('[CollaborationSession]',_0x4bacc8(0x381));return;}this[_0x4bacc8(0x36a)]['stopTime']=performance[_0x4bacc8(0x40c)](),this[_0x4bacc8(0x36a)]['duration']=this[_0x4bacc8(0x36a)][_0x4bacc8(0x2b8)]-this[_0x4bacc8(0x36a)]['startTime'],this['_telemetryService'][_0x4bacc8(0x1db)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x4bacc8(0x36a)]),this['_telemetryInfo']=null;}}[_0x10fcf4(0x21f)](){var _0x103d99=_0x10fcf4;this[_0x103d99(0x36a)]=null;}},__name(_a3,_0x10fcf4(0x186)),_a3);CollaborationSession=__decorateClass$g([__decorateParam$g(0x2,ILogService),__decorateParam$g(0x3,IConfigService),__decorateParam$g(0x4,Inject(LocaleService)),__decorateParam$g(0x5,Inject(MemberService)),__decorateParam$g(0x6,Inject(CommentService)),__decorateParam$g(0x7,Inject(CollaborationUIEventService)),__decorateParam$g(0x8,Optional(ITelemetryService))],CollaborationSession);var __defProp$f=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$f=Object[_0x10fcf4(0x341)],__decorateClass$f=__name((_0x179092,_0x2bd24e,_0x4f97f2,_0x435700)=>{var _0x18ec84=_0x10fcf4;for(var _0x20dd84=_0x435700>0x1?void 0x0:_0x435700?__getOwnPropDesc$f(_0x2bd24e,_0x4f97f2):_0x2bd24e,_0x366b72=_0x179092[_0x18ec84(0x20b)]-0x1,_0x31d5dc;_0x366b72>=0x0;_0x366b72--)(_0x31d5dc=_0x179092[_0x366b72])&&(_0x20dd84=(_0x435700?_0x31d5dc(_0x2bd24e,_0x4f97f2,_0x20dd84):_0x31d5dc(_0x20dd84))||_0x20dd84);return _0x435700&&_0x20dd84&&__defProp$f(_0x2bd24e,_0x4f97f2,_0x20dd84),_0x20dd84;},_0x10fcf4(0x30a)),__decorateParam$f=__name((_0x1ac804,_0x1a4578)=>(_0x176895,_0x56aee7)=>_0x1a4578(_0x176895,_0x56aee7,_0x1ac804),_0x10fcf4(0x393)),_a4;let CollaborationSessionService=(_a4=class extends Disposable{constructor(_0x483b5d,_0x209655,_0x23203f,_0x256653,_0x50ba87,_0x4db66e,_0x5bc8be){var _0x4c4434=_0x10fcf4;super(),__publicField(this,_0x4c4434(0x420),new BehaviorSubject(void 0x0)),__publicField(this,_0x4c4434(0x4aa),this[_0x4c4434(0x420)][_0x4c4434(0x3b6)]()),__publicField(this,'_candidateSocket',null),__publicField(this,_0x4c4434(0x36f),new Map()),__publicField(this,_0x4c4434(0x273),new BehaviorSubject(SessionStatus[_0x4c4434(0x365)])),__publicField(this,'status$',this[_0x4c4434(0x273)][_0x4c4434(0x3b6)]()),__publicField(this,_0x4c4434(0x218),!0x1),__publicField(this,'_retryConnectingTimer'),__publicField(this,_0x4c4434(0x2e7),0x0),__publicField(this,_0x4c4434(0x3f3)),__publicField(this,_0x4c4434(0x445)),(this[_0x4c4434(0x2b7)]=_0x483b5d,this[_0x4c4434(0x298)]=_0x209655,this[_0x4c4434(0x2bf)]=_0x23203f,this[_0x4c4434(0x3e0)]=_0x256653,this[_0x4c4434(0x1ca)]=_0x50ba87,this[_0x4c4434(0x4b8)]=_0x4db66e,this[_0x4c4434(0x301)]=_0x5bc8be,this['_listenToNetworkCondition']());}get[_0x10fcf4(0x3b3)](){var _0xbd6abd=_0x10fcf4;return this['_socket$'][_0xbd6abd(0x452)]();}[_0x10fcf4(0x194)](){var _0x16af19=_0x10fcf4;this[_0x16af19(0x301)]&&this['disposeWithMe'](this[_0x16af19(0x301)][_0x16af19(0x26f)][_0x16af19(0x416)](_0x87618=>{var _0x5270b6=_0x16af19;_0x87618&&!this[_0x5270b6(0x3b3)]&&this[_0x5270b6(0x3df)](),_0x87618||this[_0x5270b6(0x2d7)]();}));}[_0x10fcf4(0x318)](){var _0x5a9f5f=_0x10fcf4;super[_0x5a9f5f(0x318)](),this[_0x5a9f5f(0x36f)][_0x5a9f5f(0x260)](_0x21e7e8=>_0x21e7e8[_0x5a9f5f(0x318)]()),this[_0x5a9f5f(0x36f)][_0x5a9f5f(0x272)](),this['_status$'][_0x5a9f5f(0x36e)]();}async[_0x10fcf4(0x242)](_0x2f45f1){var _0x47c3b2=_0x10fcf4;if(this['_sessions']['has'](_0x2f45f1))return this['_sessions'][_0x47c3b2(0x402)](_0x2f45f1);this[_0x47c3b2(0x485)]();const _0x2930b5=this[_0x47c3b2(0x2b7)]['createInstance'](CollaborationSession,_0x2f45f1,this[_0x47c3b2(0x420)][_0x47c3b2(0x3b6)]());return this['_sessions'][_0x47c3b2(0x26a)](_0x2f45f1,_0x2930b5),_0x2930b5;}[_0x10fcf4(0x4ba)](_0x44e194){var _0x94a118=_0x10fcf4,_0x453787;const _0x55d349=this[_0x94a118(0x36f)][_0x94a118(0x402)](_0x44e194);_0x55d349&&(this[_0x94a118(0x36f)][_0x94a118(0x2d5)](_0x44e194),_0x55d349[_0x94a118(0x3b8)]()),this[_0x94a118(0x36f)][_0x94a118(0x44d)]||(_0x453787=this[_0x94a118(0x3b3)])==null||_0x453787[_0x94a118(0x3b8)]();}['reconnect'](){var _0x50584c=_0x10fcf4;this[_0x50584c(0x2e7)]=0x0,this[_0x50584c(0x417)]!=null&&(clearTimeout(this[_0x50584c(0x417)]),this[_0x50584c(0x417)]=null),this[_0x50584c(0x1d3)]();}async[_0x10fcf4(0x383)](){var _0x2631e3=_0x10fcf4,_0x303e79,_0x5543b7,_0x5e89f9;const _0x193f88=this[_0x2631e3(0x2bf)][_0x2631e3(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x2140ba=(_0x303e79=_0x193f88==null?void 0x0:_0x193f88[_0x2631e3(0x3af)])!=null?_0x303e79:DEFAULT_WS_SESSION_TICKET_URL;return(_0x5e89f9=(_0x5543b7=(await this[_0x2631e3(0x1ca)][_0x2631e3(0x402)](_0x2140ba,{'headers':{'Content-Type':_0x2631e3(0x2a8)}}))[_0x2631e3(0x46e)])==null?void 0x0:_0x5543b7[_0x2631e3(0x1b9)])!=null?_0x5e89f9:'';}[_0x10fcf4(0x353)](_0x5e2c2e){var _0x9a7422=_0x10fcf4,_0x35029f,_0x277c11;const _0x206330=this[_0x9a7422(0x2bf)][_0x9a7422(0x3ef)](COLLAB_WEB_SOCKET_URL_KEY),_0x33c56c=this[_0x9a7422(0x2bf)][_0x9a7422(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x4feab3=(_0x277c11=(_0x35029f=_0x33c56c==null?void 0x0:_0x33c56c[_0x9a7422(0x18f)])!=null?_0x35029f:_0x206330)!=null?_0x277c11:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x27161c=typeof window>'u'?new URL(_0x4feab3):new URL(_0x4feab3,window['location']['origin']);_0x27161c[_0x9a7422(0x264)]['set'](_0x9a7422(0x244),_0x5e2c2e);const _0x1d4f31=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x9a7422(0x3ac)][_0x9a7422(0x44b)]);return _0x1d4f31[_0x9a7422(0x402)](_0x9a7422(0x4b3))&&_0x27161c['searchParams'][_0x9a7422(0x26a)](_0x9a7422(0x4b3),_0x1d4f31['get'](_0x9a7422(0x4b3))),_0x27161c[_0x9a7422(0x279)]();}async['_createSocket'](){var _0x1a3c42=_0x10fcf4;const _0x4db00a=await this['_getSessionTicket'](),_0x2994eb=this[_0x1a3c42(0x353)](_0x4db00a),_0x346198=this[_0x1a3c42(0x3e0)]['createSocket'](_0x2994eb);return this['_candidateSocket']=_0x346198,_0x346198;}async[_0x10fcf4(0x485)](){var _0x35fe19=_0x10fcf4,_0x3c498b,_0x2c09e;try{const _0x28a072=(_0x2c09e=(_0x3c498b=this['_socket'])!=null?_0x3c498b:this[_0x35fe19(0x333)])!=null?_0x2c09e:await this[_0x35fe19(0x37e)]();if(_0x28a072){const _0x53d15d=_0x28a072[_0x35fe19(0x309)];_0x28a072['send']=_0x1d2b5f=>(this['_rescheduleHeartbeat'](),_0x53d15d[_0x35fe19(0x418)](_0x28a072,[_0x1d2b5f])),_0x28a072['message$'][_0x35fe19(0x416)](_0xc7c6fc=>this[_0x35fe19(0x33d)](_0x28a072,_0xc7c6fc)),_0x28a072['error$'][_0x35fe19(0x18d)](take(0x1))['subscribe'](_0x15f515=>this[_0x35fe19(0x298)][_0x35fe19(0x2a0)](_0x35fe19(0x316),_0x15f515)),_0x28a072[_0x35fe19(0x2cd)][_0x35fe19(0x18d)](take(0x1))[_0x35fe19(0x416)](()=>{var _0x1a104b=_0x35fe19;this[_0x1a104b(0x373)](_0x28a072);}),_0x28a072[_0x35fe19(0x271)][_0x35fe19(0x18d)](take(0x1))[_0x35fe19(0x416)](_0xfebd5f=>{var _0x87af25=_0x35fe19;this[_0x87af25(0x298)][_0x87af25(0x388)]('[CollaborationSessionService]','socket\x20close',_0xfebd5f),this['_onConnectionFailed']();});}}catch(_0x404864){this['_logService'][_0x35fe19(0x2a0)](_0x404864),this[_0x35fe19(0x277)]();}}[_0x10fcf4(0x373)](_0x12a2a7){var _0x3b23e4=_0x10fcf4;this['_logService'][_0x3b23e4(0x388)](_0x3b23e4(0x3f1),_0x3b23e4(0x201)),_0x12a2a7[_0x3b23e4(0x309)]({'cmd':CombCmd[_0x3b23e4(0x1f5)]}),this[_0x3b23e4(0x2f1)]();}[_0x10fcf4(0x2d7)](){var _0x44dac3=_0x10fcf4;this[_0x44dac3(0x218)]=!0x1,this[_0x44dac3(0x333)]=null,this[_0x44dac3(0x273)][_0x44dac3(0x3d5)](SessionStatus[_0x44dac3(0x2e4)]),this[_0x44dac3(0x420)]['next'](null),this['_clearTimeoutTimer'](),this[_0x44dac3(0x343)]();}[_0x10fcf4(0x277)](){var _0x476438=_0x10fcf4,_0x5b6670;this[_0x476438(0x2d7)](),this[_0x476438(0x2e7)]<((_0x5b6670=this[_0x476438(0x2bf)][_0x476438(0x3ef)](RETRY_CONNECTING_MAX_COUNT_KEY))!=null?_0x5b6670:DEFAULT_RETRY_CONNECTING_MAX_COUNT)?(this[_0x476438(0x4b8)]['emitEvent']({'id':CollaborationUIEventId['SOCKET_FAILED_RETRY']}),this['_tryReconnect']()):this[_0x476438(0x4b8)][_0x476438(0x22f)]({'id':CollaborationUIEventId[_0x476438(0x2af)]});}[_0x10fcf4(0x1d3)](){var _0x3e555=_0x10fcf4,_0x467927;const _0x492b49=this['_retryCount'],_0xb4d5af=this[_0x3e555(0x2bf)][_0x3e555(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x4aa3dc=_0x492b49===0x0?0x0:((_0x467927=_0xb4d5af==null?void 0x0:_0xb4d5af['retryConnectingInterval'])!=null?_0x467927:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x492b49;this[_0x3e555(0x417)]=setTimeout(()=>{var _0x5a9334=_0x3e555;clearTimeout(this['_retryConnectingTimer']),this[_0x5a9334(0x417)]=null,this[_0x5a9334(0x485)]();},_0x4aa3dc),this[_0x3e555(0x2e7)]+=0x1;}['_onMessage'](_0x5628aa,_0x4fffde){var _0x2d0821=_0x10fcf4;const {cmd:_0x50904e}=_0x4fffde;_0x50904e===CombCmd['HELLO']&&!this[_0x2d0821(0x218)]&&(_0x5628aa[_0x2d0821(0x49f)]=_0x4fffde[_0x2d0821(0x407)][_0x2d0821(0x49f)],this[_0x2d0821(0x420)][_0x2d0821(0x3d5)](_0x5628aa),this[_0x2d0821(0x273)]['next'](SessionStatus['ONLINE']),this[_0x2d0821(0x218)]=!0x0,this[_0x2d0821(0x333)]=null),_0x50904e===CombCmd[_0x2d0821(0x23c)]&&this['_clearTimeoutTimer'](),this[_0x2d0821(0x2f1)]();}[_0x10fcf4(0x2f1)](){var _0x3d4270=_0x10fcf4,_0x444e6b;this[_0x3d4270(0x343)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x3d4270(0x3e9)](),(_0x444e6b=this[_0x3d4270(0x2bf)]['getConfig'](HEARTBEAT_INTERVAL_KEY))!=null?_0x444e6b:DEFAULT_HEARTBEAT_INTERVAL);}[_0x10fcf4(0x3e9)](){var _0x165194=_0x10fcf4;this[_0x165194(0x3b3)][_0x165194(0x309)]({'cmd':CombCmd[_0x165194(0x23c)]}),this[_0x165194(0x366)]();}[_0x10fcf4(0x366)](){var _0x5220a3=_0x10fcf4,_0x526be8;this[_0x5220a3(0x445)]=setTimeout(()=>this[_0x5220a3(0x277)](),(_0x526be8=this[_0x5220a3(0x2bf)]['getConfig'](HEARTBEAT_TIMEOUT_KEY))!=null?_0x526be8:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x10fcf4(0x343)](){var _0x488b11=_0x10fcf4;this[_0x488b11(0x3f3)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x488b11(0x3f3)]=null);}[_0x10fcf4(0x487)](){var _0x1f1d08=_0x10fcf4;this[_0x1f1d08(0x445)]!=null&&(clearTimeout(this[_0x1f1d08(0x445)]),this[_0x1f1d08(0x445)]=null);}},__name(_a4,_0x10fcf4(0x20f)),_a4);CollaborationSessionService=__decorateClass$f([__decorateParam$f(0x0,Inject(Injector)),__decorateParam$f(0x1,ILogService),__decorateParam$f(0x2,IConfigService),__decorateParam$f(0x3,ICollaborationSocketService),__decorateParam$f(0x4,Inject(HTTPService)),__decorateParam$f(0x5,Inject(CollaborationUIEventService)),__decorateParam$f(0x6,Optional(INetworkConditionService))],CollaborationSessionService);const byteToHex=[];for(let i=0x0;i<0x100;++i)byteToHex[_0x10fcf4(0x1b3)]((i+0x100)['toString'](0x10)['slice'](0x1));function unsafeStringify(_0x1e0cef,_0x4c9c92=0x0){return(byteToHex[_0x1e0cef[_0x4c9c92+0x0]]+byteToHex[_0x1e0cef[_0x4c9c92+0x1]]+byteToHex[_0x1e0cef[_0x4c9c92+0x2]]+byteToHex[_0x1e0cef[_0x4c9c92+0x3]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0x4]]+byteToHex[_0x1e0cef[_0x4c9c92+0x5]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0x6]]+byteToHex[_0x1e0cef[_0x4c9c92+0x7]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0x8]]+byteToHex[_0x1e0cef[_0x4c9c92+0x9]]+'-'+byteToHex[_0x1e0cef[_0x4c9c92+0xa]]+byteToHex[_0x1e0cef[_0x4c9c92+0xb]]+byteToHex[_0x1e0cef[_0x4c9c92+0xc]]+byteToHex[_0x1e0cef[_0x4c9c92+0xd]]+byteToHex[_0x1e0cef[_0x4c9c92+0xe]]+byteToHex[_0x1e0cef[_0x4c9c92+0xf]])['toLowerCase']();}__name(unsafeStringify,'unsafeStringify');let getRandomValues;const rnds8=new Uint8Array(0x10);function rng(){var _0x536327=_0x10fcf4;if(!getRandomValues){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x536327(0x210));getRandomValues=crypto[_0x536327(0x24b)][_0x536327(0x4ab)](crypto);}return getRandomValues(rnds8);}__name(rng,'rng');const randomUUID=typeof crypto<'u'&&crypto[_0x10fcf4(0x1a1)]&&crypto[_0x10fcf4(0x1a1)][_0x10fcf4(0x4ab)](crypto),native={'randomUUID':randomUUID};function v4(_0x21d195,_0xfbb708,_0x303a53){var _0x3ed89d=_0x10fcf4,_0xca0c29,_0xccd81f,_0x14c2d1;if(native[_0x3ed89d(0x1a1)]&&!_0x21d195)return native[_0x3ed89d(0x1a1)]();_0x21d195=_0x21d195||{};const _0xd32191=(_0x14c2d1=(_0xccd81f=_0x21d195[_0x3ed89d(0x47c)])!=null?_0xccd81f:(_0xca0c29=_0x21d195[_0x3ed89d(0x19e)])==null?void 0x0:_0xca0c29[_0x3ed89d(0x21a)](_0x21d195))!=null?_0x14c2d1:rng();if(_0xd32191['length']<0x10)throw new Error(_0x3ed89d(0x3f2));return _0xd32191[0x6]=_0xd32191[0x6]&0xf|0x40,_0xd32191[0x8]=_0xd32191[0x8]&0x3f|0x80,unsafeStringify(_0xd32191);}__name(v4,'v4');const ILocalCacheService=createIdentifier(_0x10fcf4(0x251));function getLocalCacheKey(_0x1c22d1){var _0xbbe8ee=_0x10fcf4;return _0xbbe8ee(0x2ed)+_0x1c22d1;}__name(getLocalCacheKey,_0x10fcf4(0x41c));var __defProp$e=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$e=Object[_0x10fcf4(0x341)],__decorateClass$e=__name((_0x4160e1,_0x5864b1,_0x78214c,_0x2ad4e0)=>{var _0x4ffd53=_0x10fcf4;for(var _0x58a682=_0x2ad4e0>0x1?void 0x0:_0x2ad4e0?__getOwnPropDesc$e(_0x5864b1,_0x78214c):_0x5864b1,_0x57f972=_0x4160e1[_0x4ffd53(0x20b)]-0x1,_0x4b9879;_0x57f972>=0x0;_0x57f972--)(_0x4b9879=_0x4160e1[_0x57f972])&&(_0x58a682=(_0x2ad4e0?_0x4b9879(_0x5864b1,_0x78214c,_0x58a682):_0x4b9879(_0x58a682))||_0x58a682);return _0x2ad4e0&&_0x58a682&&__defProp$e(_0x5864b1,_0x78214c,_0x58a682),_0x58a682;},'__decorateClass$e'),__decorateParam$e=__name((_0x3732e5,_0x1b14dc)=>(_0x5b8f90,_0x1d5d28)=>_0x1b14dc(_0x5b8f90,_0x1d5d28,_0x3732e5),_0x10fcf4(0x496));function extractTargetFromFirstChangeset(_0x5e89f0){var _0x5b9b9c=_0x10fcf4;const {unitID:_0x2d42cd,mutations:_0x5dc381}=_0x5e89f0;return{'unitId':_0x2d42cd,'subUnitId':_0x5dc381[0x0][_0x5b9b9c(0x2d2)][_0x5b9b9c(0x261)]};}__name(extractTargetFromFirstChangeset,_0x10fcf4(0x2eb));var _a5;let SheetTransformSelectionsService=(_a5=class{constructor(_0x501c06,_0x395fa3,_0x1cb124){var _0x566a4c=_0x10fcf4;this[_0x566a4c(0x2b7)]=_0x501c06,this[_0x566a4c(0x453)]=_0x395fa3,this[_0x566a4c(0x2ab)]=_0x1cb124;}[_0x10fcf4(0x28e)](_0x492e30){var _0x48ce87=_0x10fcf4,_0x3f5327,_0x152307,_0x45ef3c,_0x157e96;const _0x2f545e=this['_injector'][_0x48ce87(0x402)](SheetsSelectionsService),{unitId:_0x5012a2,subUnitId:_0x9ddd03}=extractTargetFromFirstChangeset(_0x492e30),_0x297d69=_0x2f545e==null?void 0x0:_0x2f545e['getWorkbookSelections'](_0x5012a2)[_0x48ce87(0x319)](),_0x481e51=(_0x152307=(_0x3f5327=this['_instanceService'][_0x48ce87(0x47d)](_0x5012a2))==null?void 0x0:_0x3f5327[_0x48ce87(0x223)]())==null?void 0x0:_0x152307[_0x48ce87(0x255)]();if(_0x297d69[_0x48ce87(0x20b)]===0x0||!_0x5012a2||!_0x9ddd03)return;const _0x56c5a9=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x5012a2,'subUnitId':_0x481e51,'selections':Tools[_0x48ce87(0x27d)](_0x297d69)}}],_0x52459a=this['_transformService'][_0x48ce87(0x266)](_0x492e30,_0x56c5a9);if(!isTransformMutationsWithChangesetSuccess(_0x52459a))throw _0x52459a['error'];const _0x129ae1=(_0x157e96=(_0x45ef3c=_0x52459a[_0x48ce87(0x2fd)][0x0])==null?void 0x0:_0x45ef3c[_0x48ce87(0x2d2)])==null?void 0x0:_0x157e96[_0x48ce87(0x192)];if(Array['isArray'](_0x129ae1)&&_0x129ae1[_0x48ce87(0x20b)]){if(_0x129ae1['length']===_0x56c5a9[0x0][_0x48ce87(0x2d2)][_0x48ce87(0x192)][_0x48ce87(0x20b)]&&_0x129ae1['every']((_0x391ea3,_0x28e3ce)=>Rectangle['equals'](_0x391ea3['range'],_0x56c5a9[0x0][_0x48ce87(0x2d2)][_0x48ce87(0x192)][_0x28e3ce]['range'])))return;this[_0x48ce87(0x2b7)][_0x48ce87(0x402)](ICommandService)[_0x48ce87(0x447)](SetSelectionsOperation['id'],{'unitId':_0x5012a2,'subUnitId':_0x481e51,'selections':_0x129ae1});}}},__name(_a5,_0x10fcf4(0x202)),_a5);SheetTransformSelectionsService=__decorateClass$e([__decorateParam$e(0x0,Inject(Injector)),__decorateParam$e(0x1,ITransformService),__decorateParam$e(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x10fcf4(0x248));var UnitStatus=(_0x45c75d=>(_0x45c75d[_0x45c75d[_0x10fcf4(0x36b)]=0x0]=_0x10fcf4(0x36b),_0x45c75d[_0x45c75d[_0x10fcf4(0x29e)]=0x1]=_0x10fcf4(0x29e),_0x45c75d))(UnitStatus||{});const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x390267,_0x276367,_0x16c2ba,_0x9abc7d,_0x372b8e){var _0x37d236=_0x10fcf4,_0x40476c,_0x559a17,_0x334e9b,_0x35fdc1;const _0x5835ef=[];for(const _0x2078e0 of _0x390267)if(SINGLE_CHANGESET_MUTATIONS[_0x37d236(0x3f8)](_0x2078e0['id'])){if(_0x5835ef[_0x37d236(0x20b)]>0x0)break;_0x5835ef[_0x37d236(0x1b3)](_0x2078e0);break;}else _0x5835ef[_0x37d236(0x1b3)](_0x2078e0);const _0x4ac053=(_0x559a17=(_0x40476c=_0x372b8e[_0x37d236(0x2f5)]())==null?void 0x0:_0x40476c[_0x37d236(0x39d)])!=null?_0x559a17:_0x37d236(0x401),_0x5731dd=(_0x35fdc1=(_0x334e9b=_0x372b8e[_0x37d236(0x2f5)]())==null?void 0x0:_0x334e9b[_0x37d236(0x49f)])!=null?_0x35fdc1:'unknown';return{'changeset':{'unitID':_0x276367,'type':mapDocumentTypeToUniverType(_0x16c2ba[_0x37d236(0x1e9)](_0x276367)),'baseRev':_0x9abc7d[_0x37d236(0x492)](_0x276367),'revision':0x0,'userID':_0x4ac053,'memberID':_0x5731dd,'mutations':_0x5835ef},'pendingMutations':_0x390267[_0x37d236(0x4a8)](_0x5835ef[_0x37d236(0x20b)])};}__name(assembleSheetChangeset,_0x10fcf4(0x1fc));function assembleDocChangeset(_0x21398e,_0x342881,_0x21855c,_0x18bed5,_0x192568){var _0x162401=_0x10fcf4,_0x383d14,_0x92de72,_0x3e4229,_0x29ccc4;const _0x16816a=[_0x21398e['reduce']((_0x36ad84,_0x222e15)=>{var _0xd2070=_0x1531,_0x3fcb4c;const {id:_0x226110}=_0x36ad84,{id:_0x54cba2,type:_0x3258d9}=_0x222e15,_0x411b83=(_0x3fcb4c=_0x36ad84['params'])!=null?_0x3fcb4c:{'actions':null},_0x77dbf7=_0x222e15[_0xd2070(0x2d2)];if(_0x226110&&_0x226110!==_0x54cba2)throw new Error(_0xd2070(0x211)+_0x226110+_0xd2070(0x377)+_0x54cba2+'.');return{..._0x36ad84,'id':_0x54cba2,'type':_0x3258d9,'params':{'unitId':_0x77dbf7['unitId'],'textRanges':_0x77dbf7[_0xd2070(0x310)],'actions':JSONX[_0xd2070(0x2de)](_0x411b83['actions'],_0x77dbf7['actions'])}};},{})],_0x51efb5=(_0x92de72=(_0x383d14=_0x192568[_0x162401(0x2f5)]())==null?void 0x0:_0x383d14[_0x162401(0x39d)])!=null?_0x92de72:_0x162401(0x401),_0x6ed1b1=(_0x29ccc4=(_0x3e4229=_0x192568[_0x162401(0x2f5)]())==null?void 0x0:_0x3e4229['memberID'])!=null?_0x29ccc4:_0x162401(0x401);return{'changeset':{'unitID':_0x342881,'type':mapDocumentTypeToUniverType(_0x21855c['getUnitType'](_0x342881)),'baseRev':_0x18bed5['getCurrentRevOfUnit'](_0x342881),'revision':0x0,'userID':_0x51efb5,'memberID':_0x6ed1b1,'mutations':_0x16816a},'pendingMutations':[]};}__name(assembleDocChangeset,_0x10fcf4(0x1bd));function createTimerObservable$(_0x23e1e5,_0x32d19a){var _0x3e1373=_0x10fcf4;const _0xee224c=new ReplaySubject(0x1);return setTimeout(()=>_0xee224c[_0x3e1373(0x3d5)](_0x32d19a),_0x23e1e5),_0xee224c[_0x3e1373(0x3b6)]()[_0x3e1373(0x18d)](_0x369b3a(0x1));}__name(createTimerObservable$,_0x10fcf4(0x42f));const EmptyMutationInfo={'id':EmptyMutation['id'],'type':CommandType[_0x10fcf4(0x48e)],'params':{}};var __defProp$d=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$d=Object[_0x10fcf4(0x341)],__decorateClass$d=__name((_0x48be2f,_0x496e4f,_0x9bca47,_0x17516e)=>{var _0x3bde29=_0x10fcf4;for(var _0x565836=_0x17516e>0x1?void 0x0:_0x17516e?__getOwnPropDesc$d(_0x496e4f,_0x9bca47):_0x496e4f,_0x4a11c7=_0x48be2f[_0x3bde29(0x20b)]-0x1,_0x29cef8;_0x4a11c7>=0x0;_0x4a11c7--)(_0x29cef8=_0x48be2f[_0x4a11c7])&&(_0x565836=(_0x17516e?_0x29cef8(_0x496e4f,_0x9bca47,_0x565836):_0x29cef8(_0x565836))||_0x565836);return _0x17516e&&_0x565836&&__defProp$d(_0x496e4f,_0x9bca47,_0x565836),_0x565836;},_0x10fcf4(0x312)),__decorateParam$d=__name((_0x1f2b1f,_0x3b68d9)=>(_0x38b610,_0x29472f)=>_0x3b68d9(_0x38b610,_0x29472f,_0x1f2b1f),_0x10fcf4(0x426)),CollaborationStatus=(_0x2a1b14=>(_0x2a1b14[_0x10fcf4(0x1ed)]='not_collab',_0x2a1b14[_0x10fcf4(0x352)]=_0x10fcf4(0x3cc),_0x2a1b14[_0x10fcf4(0x424)]=_0x10fcf4(0x1f3),_0x2a1b14['AWAITING']='awaiting',_0x2a1b14['AWAITING_WITH_PENDING']=_0x10fcf4(0x247),_0x2a1b14['FETCH_MISS']=_0x10fcf4(0x1df),_0x2a1b14[_0x10fcf4(0x367)]=_0x10fcf4(0x1fb),_0x2a1b14['OFFLINE']=_0x10fcf4(0x338),_0x2a1b14))(CollaborationStatus||{});const MAX_RETRY_TIMEOUT=0xea60,_CollaborationState=class _CollaborationState{constructor(_0x2129ca,_0x30ff12,_0x5634bd,_0x374f80,_0x23379a,_0x20f63e,_0x7271e8,_0x1409d2,_0x49b179){var _0x539351=_0x10fcf4;__publicField(this,_0x539351(0x1cb),null),__publicField(this,_0x539351(0x3f6),[]),(this[_0x539351(0x436)]=_0x2129ca,this['type']=_0x30ff12,this[_0x539351(0x240)]=_0x23379a,this['_commandService']=_0x20f63e,this[_0x539351(0x19a)]=_0x7271e8,this['_revisionService']=_0x1409d2,this[_0x539351(0x331)]=_0x49b179,this[_0x539351(0x1cb)]=_0x5634bd,this[_0x539351(0x3f6)]=_0x374f80);}[_0x10fcf4(0x2c5)](_0x4b8612){var _0x5e5567=_0x10fcf4;const _0x1f8b05=this['_revisionService'][_0x5e5567(0x492)](this[_0x5e5567(0x436)]);return _0x4b8612[_0x5e5567(0x2fe)]>_0x1f8b05+0x1?(this['_handler'][_0x5e5567(0x1af)]({'from':_0x1f8b05,'to':_0x4b8612['revision']-0x1}),!0x0):!0x1;}[_0x10fcf4(0x19c)](_0x426c7e){var _0x1aace5=_0x10fcf4;this['_undoRedoService'][_0x1aace5(0x25e)](this[_0x1aace5(0x436)],_0x426c7e);}[_0x10fcf4(0x33c)](_0xdfde8){var _0x31bf60=_0x10fcf4,_0x9ca3c0,_0x4220ab;(_0x4220ab=(_0x9ca3c0=this[_0x31bf60(0x240)])['onTransformSelections'])==null||_0x4220ab[_0x31bf60(0x21a)](_0x9ca3c0,_0xdfde8);}[_0x10fcf4(0x49d)](_0x482cde){var _0x3cfbc2=_0x10fcf4,_0x4bc7d0,_0x3df073;return(_0x3df073=(_0x4bc7d0=this[_0x3cfbc2(0x240)])[_0x3cfbc2(0x37a)])==null?void 0x0:_0x3df073['call'](_0x4bc7d0,_0x482cde);}['_transformStateCache'](_0x2da644){var _0x400ffa=_0x10fcf4,_0x1eac74,_0x28ef8b;return(_0x28ef8b=(_0x1eac74=this['_handler'])[_0x400ffa(0x1f6)])==null?void 0x0:_0x28ef8b[_0x400ffa(0x21a)](_0x1eac74,_0x2da644);}[_0x10fcf4(0x294)](_0x5d8ca4){var _0x5633d5=_0x10fcf4,_0x2b0bb7,_0x349517,_0x5ee282;return(_0x5ee282=(_0x349517=(_0x2b0bb7=this[_0x5633d5(0x240)])[_0x5633d5(0x3b1)])==null?void 0x0:_0x349517[_0x5633d5(0x21a)](_0x2b0bb7,_0x5d8ca4))!=null?_0x5ee282:_0x5d8ca4;}['_transformRemoteChangesetByStateCache'](_0x7e58e6){var _0x24c7b1=_0x10fcf4,_0x30a742,_0x3f7528,_0x31dd8e;return(_0x31dd8e=(_0x3f7528=(_0x30a742=this['_handler'])[_0x24c7b1(0x2ea)])==null?void 0x0:_0x3f7528[_0x24c7b1(0x21a)](_0x30a742,_0x7e58e6))!=null?_0x31dd8e:_0x7e58e6;}[_0x10fcf4(0x39b)](_0x70e850){var _0x50f74c=_0x10fcf4,_0x2592cd,_0x53005c;if(this[_0x50f74c(0x48b)]===UniverType[_0x50f74c(0x30c)]){const {unitID:_0x558a36,mutations:_0x39c45f,memberID:_0x3c05ef}=_0x70e850,_0x50ef3=_0x39c45f[0x0][_0x50f74c(0x2d2)][_0x50f74c(0x310)];Array[_0x50f74c(0x370)](_0x50ef3)&&_0x50ef3[_0x50f74c(0x20b)]>0x0&&((_0x53005c=(_0x2592cd=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x53005c[_0x50f74c(0x21a)](_0x2592cd,{'unitID':_0x558a36,'memberID':_0x3c05ef,'textRanges':_0x50ef3}));}}[_0x10fcf4(0x2cb)](){var _0x1488be=_0x10fcf4,_0x10f639;(_0x10f639=this['_localCacheService'])==null||_0x10f639[_0x1488be(0x300)](this[_0x1488be(0x436)],this[_0x1488be(0x48b)],this[_0x1488be(0x1cb)],this[_0x1488be(0x3f6)]);}[_0x10fcf4(0x330)](){return this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);}[_0x10fcf4(0x437)](){var _0x2dd58b=_0x10fcf4;this[_0x2dd58b(0x30d)][_0x2dd58b(0x290)](this['unitID']);}['_executeRemoteChangeset'](_0x2a08af){var _0x3e828b=_0x10fcf4,_0x4c1f82;let _0x4020fa=this[_0x3e828b(0x294)](_0x2a08af);_0x4020fa=this['_transformRemoteChangesetByStateCache'](_0x4020fa);const _0x457abb=sequenceExecute(_0x4020fa[_0x3e828b(0x448)],this['_commandService'],{'fromCollab':!0x0});if(!_0x457abb[_0x3e828b(0x356)])throw _0x457abb[_0x3e828b(0x2a0)]instanceof Error?_0x457abb[_0x3e828b(0x2a0)]:new Error((_0x4c1f82=_0x457abb['error'])!=null?_0x4c1f82:_0x3e828b(0x21d));this['_transformIMECache'](_0x4020fa),this[_0x3e828b(0x475)](_0x4020fa),this[_0x3e828b(0x19c)](_0x2a08af),this['_transformSelections'](_0x4020fa),this[_0x3e828b(0x39b)](_0x4020fa),this[_0x3e828b(0x437)]();}};__name(_CollaborationState,'CollaborationState');let CollaborationState=_CollaborationState;var _a6;let SyncedState=(_a6=class extends CollaborationState{constructor(_0xc6efec,_0x1c5e17,_0x4a811a,_0x203dd6,_0x5f0561,_0x5a8bb7,_0xb0a33f,_0x3d7e04,_0x4b7455,_0x42a1b7){var _0x3a15f2=_0x10fcf4;super(_0xc6efec,_0x1c5e17,null,[],_0x4a811a,_0xb0a33f,_0x5a8bb7,_0x203dd6,_0x42a1b7),__publicField(this,_0x3a15f2(0x228),_0x3a15f2(0x3cc)),(this['_injector']=_0x5f0561,this[_0x3a15f2(0x298)]=_0x3d7e04,this[_0x3a15f2(0x453)]=_0x4b7455,this[_0x3a15f2(0x38d)]=_0x42a1b7);}[_0x10fcf4(0x297)](_0x2951c5){var _0x4fc3c4=_0x10fcf4;const _0x4cad3e=this[_0x4fc3c4(0x2b7)]['createInstance'](PendingState,this['unitID'],this[_0x4fc3c4(0x48b)],[_0x2951c5],this[_0x4fc3c4(0x240)]);return _0x4cad3e['_schedule'](),_0x4cad3e['_updateLocalCache'](),_0x4cad3e;}[_0x10fcf4(0x3b7)](_0x2fcde3){var _0x4c401f=_0x10fcf4;if(this[_0x4c401f(0x2c5)](_0x2fcde3))return this['_injector'][_0x4c401f(0x42b)](FetchingMissState,this[_0x4c401f(0x436)],this[_0x4c401f(0x48b)],null,[],null,[_0x2fcde3],this['_handler']);try{const _0x114017=this[_0x4c401f(0x453)]['transformMutationsWithChangeset'](_0x2fcde3,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x114017)){const {c1Prime:_0x417944}=_0x114017;return this[_0x4c401f(0x2df)](_0x417944),this;}throw _0x114017[_0x4c401f(0x2a0)];}catch(_0xb58e95){return this[_0x4c401f(0x298)][_0x4c401f(0x2a0)](_0xb58e95),this['_onConflict'](!0x1);}}[_0x10fcf4(0x2aa)](_0x54e673){var _0x171126=_0x10fcf4;return this[_0x171126(0x2b7)][_0x171126(0x42b)](ConflictState,this[_0x171126(0x436)],this['type'],null,[],this[_0x171126(0x240)],_0x54e673);}[_0x10fcf4(0x237)](){var _0x4848d8=_0x10fcf4;throw new Error(_0x4848d8(0x494));}[_0x10fcf4(0x48d)](){var _0x15125b=_0x10fcf4;throw new Error(_0x15125b(0x1de));}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){var _0x5c3747=_0x10fcf4;return this[_0x5c3747(0x2b7)][_0x5c3747(0x42b)](OfflineState,this[_0x5c3747(0x436)],this[_0x5c3747(0x48b)],null,[],this['_handler']);}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x239)](){var _0x502016=_0x10fcf4;throw new Error(_0x502016(0x25f));}[_0x10fcf4(0x18c)](){var _0x4a23e0=_0x10fcf4;const _0x13f132=this[_0x4a23e0(0x30d)][_0x4a23e0(0x492)](this['unitID']);return this[_0x4a23e0(0x240)][_0x4a23e0(0x1af)]({'from':_0x13f132,'to':0x0}),this[_0x4a23e0(0x2b7)]['createInstance'](FetchingMissState,this['unitID'],this[_0x4a23e0(0x48b)],null,[],null,[],this[_0x4a23e0(0x240)]);}},__name(_a6,_0x10fcf4(0x357)),_a6);SyncedState=__decorateClass$d([__decorateParam$d(0x3,Inject(RevisionService)),__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,IUndoRedoService),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,Optional(ILocalCacheService))],SyncedState);var _a7;let PendingState=(_a7=class extends CollaborationState{constructor(_0xcfec3b,_0x32a7ed,_0x5deed2,_0x46ab5a,_0x162101,_0x3c1b59,_0x26c51d,_0x2e2709,_0x263a0a,_0x59bb23,_0x2f2e42,_0x2fdc37,_0x295d08,_0x469a14){var _0x428fe4=_0x10fcf4;super(_0xcfec3b,_0x32a7ed,null,_0x5deed2,_0x46ab5a,_0x263a0a,_0x295d08,_0x3c1b59,_0x469a14),__publicField(this,'status',_0x428fe4(0x1f3)),__publicField(this,'_scheduleCompleteTimestamp',null),__publicField(this,_0x428fe4(0x25c),null),(this['_injector']=_0x162101,this[_0x428fe4(0x49c)]=_0x26c51d,this[_0x428fe4(0x298)]=_0x2e2709,this['_configService']=_0x59bb23,this[_0x428fe4(0x453)]=_0x2f2e42,this[_0x428fe4(0x3a9)]=_0x2fdc37);}['appendMutation'](_0x4f0407){var _0x437f9e=_0x10fcf4;return this[_0x437f9e(0x3f6)]['push'](_0x4f0407),this['_updateLocalCache'](),this;}[_0x10fcf4(0x3b7)](_0x36b7b9){var _0x43178b=_0x10fcf4;if(this['_checkMissing'](_0x36b7b9))return this[_0x43178b(0x30e)](),this[_0x43178b(0x2b7)][_0x43178b(0x42b)](FetchingMissState,this['unitID'],this[_0x43178b(0x48b)],null,this[_0x43178b(0x3f6)],null,[_0x36b7b9],this[_0x43178b(0x240)]);try{const _0x551218=this[_0x43178b(0x453)]['transformMutationsWithChangeset'](_0x36b7b9,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x551218)){const {c1Prime:_0x5333a2,m2Prime:_0x1deb98}=_0x551218;this['_executeRemoteChangeset'](_0x5333a2);const _0x3106c0=this['_injector'][_0x43178b(0x42b)](PendingState,this[_0x43178b(0x436)],this[_0x43178b(0x48b)],_0x1deb98,this[_0x43178b(0x240)]);this[_0x43178b(0x30e)]();const _0x56b83c=new Date()[_0x43178b(0x270)](),_0x31629f=this[_0x43178b(0x2bd)]?Math[_0x43178b(0x47e)](this['_scheduleCompleteTimestamp']-_0x56b83c,0x0):this[_0x43178b(0x42a)]();return _0x3106c0[_0x43178b(0x412)](_0x31629f),_0x3106c0;}throw _0x551218[_0x43178b(0x2a0)];}catch(_0x581d5f){return this[_0x43178b(0x298)][_0x43178b(0x2a0)](_0x581d5f),this[_0x43178b(0x2aa)](!0x1);}}[_0x10fcf4(0x237)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x10fcf4(0x48d)](){var _0x379f57=_0x10fcf4;throw new Error(_0x379f57(0x21c));}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){var _0x2ea28b=_0x10fcf4;return this[_0x2ea28b(0x30e)](),this[_0x2ea28b(0x2b7)]['createInstance'](OfflineState,this[_0x2ea28b(0x436)],this[_0x2ea28b(0x48b)],null,this[_0x2ea28b(0x3f6)],this['_handler']);}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x412)](_0xcc2c35){var _0x1c5248=_0x10fcf4;const _0x38a7ca=_0xcc2c35!=null?_0xcc2c35:this[_0x1c5248(0x42a)]();this[_0x1c5248(0x2bd)]=new Date()[_0x1c5248(0x270)]()+_0x38a7ca,this['_sendingTimer']=setTimeout(()=>{var _0x385c69=_0x1c5248;this[_0x385c69(0x30e)]();let _0x131d51=null;switch(this['type']){case UniverType[_0x385c69(0x3a7)]:{_0x131d51=assembleSheetChangeset(this[_0x385c69(0x3f6)],this[_0x385c69(0x436)],this['_univerInstanceService'],this[_0x385c69(0x30d)],this[_0x385c69(0x49c)]);break;}case UniverType[_0x385c69(0x30c)]:{this[_0x385c69(0x3f6)][_0x385c69(0x1b2)](_0x50e45e=>_0x50e45e['id']===RichTextEditingMutation['id'])?_0x131d51=assembleDocChangeset(this[_0x385c69(0x3f6)],this[_0x385c69(0x436)],this['_univerInstanceService'],this[_0x385c69(0x30d)],this[_0x385c69(0x49c)]):_0x131d51=assembleSheetChangeset(this[_0x385c69(0x3f6)],this[_0x385c69(0x436)],this[_0x385c69(0x3a9)],this[_0x385c69(0x30d)],this[_0x385c69(0x49c)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x385c69(0x48b)]+'\x20in\x20_schedule.');}const {changeset:_0x423ecd,pendingMutations:_0x1491ce}=_0x131d51;this['_handler'][_0x385c69(0x3b5)](_0x423ecd);const _0x4e5cd6=_0x1491ce[_0x385c69(0x20b)]?this['_injector'][_0x385c69(0x42b)](AwaitingWithPendingState,this[_0x385c69(0x436)],this['type'],_0x423ecd,_0x1491ce,this[_0x385c69(0x240)],void 0x0):this[_0x385c69(0x2b7)][_0x385c69(0x42b)](AwaitingState,this[_0x385c69(0x436)],this[_0x385c69(0x48b)],_0x423ecd,this[_0x385c69(0x240)]);_0x4e5cd6[_0x385c69(0x2cb)](),this[_0x385c69(0x240)][_0x385c69(0x480)](this,_0x4e5cd6);},_0x38a7ca);}[_0x10fcf4(0x42a)](){var _0x371704=_0x10fcf4,_0x465eb3;const _0x357e0f=this[_0x371704(0x2bf)][_0x371704(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x465eb3=_0x357e0f==null?void 0x0:_0x357e0f[_0x371704(0x287)])!=null?_0x465eb3:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x10fcf4(0x239)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x10fcf4(0x30e)](){var _0x50c093=_0x10fcf4;this[_0x50c093(0x25c)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x50c093(0x25c)]=null);}[_0x10fcf4(0x2aa)](_0x344cb9){var _0x506ac2=_0x10fcf4;return this[_0x506ac2(0x30e)](),this[_0x506ac2(0x2b7)]['createInstance'](ConflictState,this['unitID'],this[_0x506ac2(0x48b)],null,this['_pendingMutations'],this[_0x506ac2(0x240)],_0x344cb9);}},__name(_a7,_0x10fcf4(0x2e0)),_a7);PendingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,Inject(MemberService)),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,IConfigService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUniverInstanceService),__decorateParam$d(0xc,IUndoRedoService),__decorateParam$d(0xd,Optional(ILocalCacheService))],PendingState);var _a8;let AwaitingState=(_a8=class extends CollaborationState{constructor(_0x2d6c67,_0x37190a,_0x2e41e2,_0x252628,_0xa07b78,_0x46b8ce,_0xdb31c6,_0x3900f0,_0x43b9fd,_0x198b53,_0x4d5548){var _0x446d7b=_0x10fcf4;super(_0x2d6c67,_0x37190a,_0x2e41e2,[],_0x252628,_0xdb31c6,_0x198b53,_0x46b8ce,_0x4d5548),__publicField(this,_0x446d7b(0x228),'awaiting'),__publicField(this,_0x446d7b(0x4af),0x0),__publicField(this,_0x446d7b(0x329)),__publicField(this,'_sender'),(this['_injector']=_0xa07b78,this['_logService']=_0x3900f0,this[_0x446d7b(0x453)]=_0x43b9fd);}[_0x10fcf4(0x297)](_0x5e1f69){var _0x5d08ac=_0x10fcf4;this['_clearScheduledTask']();const _0x34b118=this[_0x5d08ac(0x2b7)][_0x5d08ac(0x42b)](AwaitingWithPendingState,this[_0x5d08ac(0x436)],this[_0x5d08ac(0x48b)],this['_awaitingChangeset'],[_0x5e1f69],this[_0x5d08ac(0x240)],this[_0x5d08ac(0x329)]);return _0x34b118['_updateLocalCache'](),_0x34b118;}[_0x10fcf4(0x3b7)](_0x47c793){var _0x256ec0=_0x10fcf4;if(this[_0x256ec0(0x2c5)](_0x47c793))return this[_0x256ec0(0x30e)](),this['_injector']['createInstance'](FetchingMissState,this[_0x256ec0(0x436)],this['type'],this[_0x256ec0(0x1cb)],[],null,[_0x47c793],this[_0x256ec0(0x240)]);try{const _0x48a0aa=this['_transformService'][_0x256ec0(0x458)]([_0x47c793],[this[_0x256ec0(0x1cb)]],!0x1);if(isTransformChangesetsSuccess(_0x48a0aa)){const {c1Prime:_0x5948d9,c2Prime:_0xaf1311}=_0x48a0aa;this['_executeRemoteChangeset'](_0x5948d9[0x0]),_0xaf1311[0x0]['baseRev']=this[_0x256ec0(0x330)](),this[_0x256ec0(0x30e)]();const _0xf56e72=this['_injector'][_0x256ec0(0x42b)](AwaitingState,this[_0x256ec0(0x436)],this[_0x256ec0(0x48b)],_0xaf1311[0x0],this[_0x256ec0(0x240)]);return _0xf56e72[_0x256ec0(0x2cb)](),_0xf56e72;}return this['_onConflict'](!0x1);}catch(_0x1740fd){return this[_0x256ec0(0x298)][_0x256ec0(0x2a0)](_0x1740fd),this[_0x256ec0(0x2aa)](!0x1);}}[_0x10fcf4(0x237)](_0x329b31){var _0x204374=_0x10fcf4;this[_0x204374(0x30e)]();const _0x4b2e22=this['_revisionService'][_0x204374(0x492)](this[_0x204374(0x436)]);if(_0x329b31[_0x204374(0x2fe)]<_0x4b2e22-0x1)return this;if(this[_0x204374(0x2c5)](_0x329b31))return this['_injector'][_0x204374(0x42b)](FetchingMissState,this['unitID'],this[_0x204374(0x48b)],null,[],this['_awaitingChangeset'],[],this[_0x204374(0x240)]);this[_0x204374(0x437)]();const _0x5e0f22=this[_0x204374(0x2b7)][_0x204374(0x42b)](SyncedState,this[_0x204374(0x436)],this[_0x204374(0x48b)],this[_0x204374(0x240)]);return _0x5e0f22['_updateLocalCache'](),_0x5e0f22;}[_0x10fcf4(0x48d)](_0x16e5b5){var _0x24752e=_0x10fcf4;return this[_0x24752e(0x2aa)](!!(_0x16e5b5!=null&&_0x16e5b5[_0x24752e(0x1b1)]));}[_0x10fcf4(0x460)](_0x4d68e6){var _0x1aac9d=_0x10fcf4;return this['_resendTimeout']>MAX_RETRY_TIMEOUT?this[_0x1aac9d(0x2fb)]():(this[_0x1aac9d(0x329)]=createTimerObservable$(this[_0x1aac9d(0x4af)],{'timeout':this['_resendTimeout'],'reqId':_0x4d68e6[_0x1aac9d(0x21e)]}),this[_0x1aac9d(0x339)]=this['_resendTimer'][_0x1aac9d(0x416)](({reqId:_0x48118d,timeout:_0x555368})=>{this['_resendWithTimeout'](_0x48118d,_0x555368);}),this);}['toggleOffline'](){var _0x764036=_0x10fcf4;return this[_0x764036(0x30e)](),this[_0x764036(0x2b7)][_0x764036(0x42b)](OfflineState,this[_0x764036(0x436)],this[_0x764036(0x48b)],this[_0x764036(0x1cb)],[],this[_0x764036(0x240)]);}[_0x10fcf4(0x2b3)](){return this;}['resend'](){var _0x554381=_0x10fcf4;this[_0x554381(0x240)][_0x554381(0x3b5)](this[_0x554381(0x1cb)]);}['_onConflict'](_0x3e932c){var _0x1295c0=_0x10fcf4;return this['_clearScheduledTask'](),this[_0x1295c0(0x2b7)][_0x1295c0(0x42b)](ConflictState,this[_0x1295c0(0x436)],this['type'],this['_awaitingChangeset'],[],this[_0x1295c0(0x240)],_0x3e932c);}[_0x10fcf4(0x286)](_0x54d54c,_0x3e1d33){var _0x3dfd36=_0x10fcf4,_0x57f138;_0x54d54c===((_0x57f138=this[_0x3dfd36(0x1cb)])==null?void 0x0:_0x57f138['reqId'])&&(this[_0x3dfd36(0x239)](),this[_0x3dfd36(0x4af)]=_0x3e1d33===0x0?0x3e8:_0x3e1d33*0x2);}[_0x10fcf4(0x30e)](){var _0x5f0d5e=_0x10fcf4,_0x3353e5;(_0x3353e5=this[_0x5f0d5e(0x339)])==null||_0x3353e5[_0x5f0d5e(0x224)](),this[_0x5f0d5e(0x4af)]=0x0;}},__name(_a8,_0x10fcf4(0x3d8)),_a8);AwaitingState=__decorateClass$d([__decorateParam$d(0x4,Inject(Injector)),__decorateParam$d(0x5,Inject(RevisionService)),__decorateParam$d(0x6,ICommandService),__decorateParam$d(0x7,ILogService),__decorateParam$d(0x8,ITransformService),__decorateParam$d(0x9,IUndoRedoService),__decorateParam$d(0xa,Optional(ILocalCacheService))],AwaitingState);var _a9;let AwaitingWithPendingState=(_a9=class extends CollaborationState{constructor(_0x11b89a,_0x2bb932,_0x1166b7,_0x2cb426,_0x1b918c,_0x159039,_0x48080d,_0x1da3a5,_0x504cdc,_0x451c49,_0x4d9091,_0x245e8a,_0x1baa04){var _0x2c4991=_0x10fcf4;super(_0x11b89a,_0x2bb932,_0x1166b7,_0x2cb426,_0x1b918c,_0x504cdc,_0x245e8a,_0x1da3a5,_0x1baa04),__publicField(this,'status','awaiting_with_pending'),__publicField(this,_0x2c4991(0x4af),0x0),__publicField(this,_0x2c4991(0x329)),__publicField(this,'_sender'),(this[_0x2c4991(0x2b7)]=_0x48080d,this[_0x2c4991(0x298)]=_0x451c49,this[_0x2c4991(0x453)]=_0x4d9091,this[_0x2c4991(0x38d)]=_0x1baa04,_0x159039&&(this[_0x2c4991(0x329)]=_0x159039,this['_sender']=this[_0x2c4991(0x329)][_0x2c4991(0x416)](({reqId:_0x506f2a,timeout:_0x3b76e3})=>{var _0x141318=_0x2c4991;this[_0x141318(0x286)](_0x506f2a,_0x3b76e3);})));}[_0x10fcf4(0x297)](_0x578e41){var _0x49eae4=_0x10fcf4;return this[_0x49eae4(0x3f6)]['push'](_0x578e41),this;}[_0x10fcf4(0x3b7)](_0x42ce4c){var _0x588db6=_0x10fcf4;if(this[_0x588db6(0x2c5)](_0x42ce4c))return this[_0x588db6(0x30e)](),this[_0x588db6(0x2b7)][_0x588db6(0x42b)](FetchingMissState,this[_0x588db6(0x436)],this['type'],this[_0x588db6(0x1cb)],this[_0x588db6(0x3f6)],null,[_0x42ce4c],this[_0x588db6(0x240)]);try{const _0x178db3=this[_0x588db6(0x453)][_0x588db6(0x458)]([_0x42ce4c],[this[_0x588db6(0x1cb)]],!0x1);if(isTransformChangesetsSuccess(_0x178db3)){const {c1Prime:_0x1d6b80,c2Prime:_0x1eccf2}=_0x178db3,_0x28fd61=this['_transformService'][_0x588db6(0x266)](_0x1d6b80[0x0],this[_0x588db6(0x3f6)]);if(isTransformMutationsWithChangesetSuccess(_0x28fd61)){const {c1Prime:_0x55a044,m2Prime:_0x16d001}=_0x28fd61;return this[_0x588db6(0x2df)](_0x55a044),_0x1eccf2[0x0][_0x588db6(0x1f8)]=this['_getCurrentRevision'](),this[_0x588db6(0x30e)](),this['_injector'][_0x588db6(0x42b)](AwaitingWithPendingState,this[_0x588db6(0x436)],this[_0x588db6(0x48b)],_0x1eccf2[0x0],_0x16d001,this[_0x588db6(0x240)],void 0x0);}throw _0x28fd61[_0x588db6(0x2a0)];}throw _0x178db3['error'];}catch(_0x107f4b){return this['_logService'][_0x588db6(0x2a0)](_0x107f4b),this['_onConflict'](!0x1);}}[_0x10fcf4(0x237)](_0x1f96bc){var _0x1becc1=_0x10fcf4;if(this[_0x1becc1(0x30e)](),this[_0x1becc1(0x2c5)](_0x1f96bc))return this[_0x1becc1(0x2b7)]['createInstance'](FetchingMissState,this[_0x1becc1(0x436)],this['type'],null,this['_pendingMutations'],this[_0x1becc1(0x1cb)],[],this[_0x1becc1(0x240)]);this[_0x1becc1(0x437)]();const _0x560191=this[_0x1becc1(0x2b7)][_0x1becc1(0x42b)](PendingState,this[_0x1becc1(0x436)],this[_0x1becc1(0x48b)],this[_0x1becc1(0x3f6)],this[_0x1becc1(0x240)]);return _0x560191[_0x1becc1(0x412)](),_0x560191[_0x1becc1(0x2cb)](),_0x560191;}['onRemoteRej'](_0x23dd9c){var _0x26141d=_0x10fcf4;return this[_0x26141d(0x2aa)](!!(_0x23dd9c!=null&&_0x23dd9c['isPermissionRej']));}['onRemoteRetry'](_0x4d2ae8){var _0x56de7c=_0x10fcf4;return this[_0x56de7c(0x4af)]>MAX_RETRY_TIMEOUT?this[_0x56de7c(0x2fb)]():(this[_0x56de7c(0x329)]=createTimerObservable$(this[_0x56de7c(0x4af)],{'timeout':this[_0x56de7c(0x4af)],'reqId':_0x4d2ae8[_0x56de7c(0x21e)]}),this[_0x56de7c(0x339)]=this['_resendTimer'][_0x56de7c(0x416)](({reqId:_0x3c5d05,timeout:_0x332d20})=>{var _0xdfab47=_0x56de7c;this[_0xdfab47(0x286)](_0x3c5d05,_0x332d20);}),this);}[_0x10fcf4(0x2fb)](){var _0x1c06d7=_0x10fcf4;return this[_0x1c06d7(0x30e)](),this[_0x1c06d7(0x2b7)]['createInstance'](OfflineState,this[_0x1c06d7(0x436)],this['type'],this[_0x1c06d7(0x1cb)],this[_0x1c06d7(0x3f6)],this['_handler']);}['toggleOnline'](){return this;}[_0x10fcf4(0x239)](){var _0x27f0bd=_0x10fcf4;this[_0x27f0bd(0x240)][_0x27f0bd(0x3b5)](this[_0x27f0bd(0x1cb)]);}[_0x10fcf4(0x2aa)](_0x1fccdc){var _0x264dbc=_0x10fcf4;return this[_0x264dbc(0x30e)](),this['_injector'][_0x264dbc(0x42b)](ConflictState,this[_0x264dbc(0x436)],this[_0x264dbc(0x48b)],null,this[_0x264dbc(0x3f6)],this[_0x264dbc(0x240)],_0x1fccdc);}[_0x10fcf4(0x286)](_0x43515c,_0x2e8605){var _0x405dca=_0x10fcf4,_0x2a8347;_0x43515c===((_0x2a8347=this[_0x405dca(0x1cb)])==null?void 0x0:_0x2a8347['reqId'])&&(this['resend'](),this['_resendTimeout']=_0x2e8605===0x0?0x3e8:_0x2e8605*0x2);}[_0x10fcf4(0x30e)](){var _0x3f728a=_0x10fcf4,_0x49d317;(_0x49d317=this[_0x3f728a(0x339)])==null||_0x49d317['unsubscribe'](),this[_0x3f728a(0x4af)]=0x0;}},__name(_a9,_0x10fcf4(0x405)),_a9);AwaitingWithPendingState=__decorateClass$d([__decorateParam$d(0x6,Inject(Injector)),__decorateParam$d(0x7,Inject(RevisionService)),__decorateParam$d(0x8,ICommandService),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ITransformService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);var _a10;let ConflictState=(_a10=class extends CollaborationState{constructor(_0x1cd2a1,_0x4a5f78,_0x17028c,_0x2475cf,_0x55224b,_0xf8a823=!0x1,_0x3c6255,_0x5a6208,_0x574908,_0x161faf,_0x576159,_0xfb0ca2,_0x39c46e){var _0x3575aa=_0x10fcf4;super(_0x1cd2a1,_0x4a5f78,_0x17028c,_0x2475cf,_0x55224b,_0x5a6208,_0x574908,_0x161faf,_0x39c46e),__publicField(this,'status',_0x3575aa(0x1fb)),(this[_0x3575aa(0x2f4)]=_0xf8a823,this['_permissionService']=_0x3c6255,this['_localeService']=_0x576159,this[_0x3575aa(0x4b8)]=_0xfb0ca2,this['localCacheService']=_0x39c46e,this[_0x3575aa(0x3da)](),this[_0x3575aa(0x3dc)](),this[_0x3575aa(0x2f2)]());}[_0x10fcf4(0x297)](){return this;}['onRemoteChangeset'](){return this;}[_0x10fcf4(0x237)](){return this;}['onRemoteRej'](){return this;}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){return this;}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x239)](){var _0x3382d0=_0x10fcf4;throw new Error(_0x3382d0(0x1a6));}[_0x10fcf4(0x3dc)](){var _0x5b8920=_0x10fcf4,_0x59dda4;(_0x59dda4=this[_0x5b8920(0x331)])==null||_0x59dda4[_0x5b8920(0x300)](this['unitID'],this[_0x5b8920(0x48b)],null,[]);}[_0x10fcf4(0x3da)](){var _0x2205e7=_0x10fcf4;this[_0x2205e7(0x2f4)]?this[_0x2205e7(0x4b8)][_0x2205e7(0x22f)]({'id':CollaborationUIEventId['PERMISSION_DENIED']}):this['_collaborationUIEventService'][_0x2205e7(0x22f)]({'id':CollaborationUIEventId['CONFLICT']});}[_0x10fcf4(0x2f2)](){var _0x508bc1=_0x10fcf4;this['_permissionService'][_0x508bc1(0x371)](new WorkbookEditablePermission(this[_0x508bc1(0x436)])['id'],!0x1);}},__name(_a10,_0x10fcf4(0x2a6)),_a10);ConflictState=__decorateClass$d([__decorateParam$d(0x6,Inject(IPermissionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Inject(RevisionService)),__decorateParam$d(0xa,Inject(LocaleService)),__decorateParam$d(0xb,Inject(CollaborationUIEventService)),__decorateParam$d(0xc,Optional(ILocalCacheService))],ConflictState);var _a11;let OfflineState=(_a11=class extends CollaborationState{constructor(_0x596adf,_0x435064,_0x47d155,_0x575f0f,_0x143059,_0x1c6eea,_0x42d55d,_0x414ed8,_0x43e3a8,_0x4688ed){var _0x2a073d=_0x10fcf4;super(_0x596adf,_0x435064,_0x47d155,_0x575f0f,_0x143059,_0x414ed8,_0x43e3a8,_0x42d55d,_0x4688ed),__publicField(this,'status',_0x2a073d(0x338)),this['_injector']=_0x1c6eea;}[_0x10fcf4(0x297)](_0x10a11b){var _0x491a2e=_0x10fcf4;return this['_pendingMutations'][_0x491a2e(0x1b3)](_0x10a11b),this[_0x491a2e(0x2cb)](),this;}['onRemoteChangeset'](_0x4df246){var _0x412de7=_0x10fcf4;throw new Error(_0x412de7(0x1fa));}['onRemoteAck'](){var _0x232cbe=_0x10fcf4;throw new Error(_0x232cbe(0x2c3));}[_0x10fcf4(0x48d)](){var _0x496e28=_0x10fcf4;throw new Error(_0x496e28(0x336));}[_0x10fcf4(0x460)](){return this;}[_0x10fcf4(0x2fb)](){return this;}[_0x10fcf4(0x2b3)](){var _0x560e96=_0x10fcf4;const {_injector:_0x2e5bc5,_pendingMutations:_0x168fcf,_awaitingChangeset:_0x785499,unitID:_0x117853,_handler:_0x2e11e9,type:_0x43d8d7}=this,_0x49524d=createOnlineState(_0x2e5bc5,_0x117853,_0x43d8d7,_0x785499,_0x168fcf,_0x2e11e9);return _0x49524d instanceof PendingState?_0x49524d[_0x560e96(0x412)]():(_0x49524d instanceof AwaitingWithPendingState||_0x49524d instanceof AwaitingState)&&_0x49524d[_0x560e96(0x239)](),_0x49524d;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}},__name(_a11,'OfflineState'),_a11);OfflineState=__decorateClass$d([__decorateParam$d(0x5,Inject(Injector)),__decorateParam$d(0x6,Inject(RevisionService)),__decorateParam$d(0x7,ICommandService),__decorateParam$d(0x8,IUndoRedoService),__decorateParam$d(0x9,Optional(ILocalCacheService))],OfflineState);var _a12;let FetchingMissState=(_a12=class extends CollaborationState{constructor(_0x3c00ce,_0x482531,_0x240a81,_0x18e2cd,_0x5cb2ee,_0x55feb9,_0x53df67,_0x29f224,_0x4025b2,_0x597b98,_0x5e7d70,_0x5af903,_0x167c54,_0x364960){var _0xd8ba21=_0x10fcf4;super(_0x3c00ce,_0x482531,_0x240a81,_0x18e2cd,_0x53df67,_0x5e7d70,_0x5af903,_0x4025b2,_0x364960),__publicField(this,'status',_0xd8ba21(0x1df)),(this[_0xd8ba21(0x45c)]=_0x5cb2ee,this['_queuedRemoteChangesets']=_0x55feb9,this[_0xd8ba21(0x2b7)]=_0x29f224,this[_0xd8ba21(0x298)]=_0x597b98,this[_0xd8ba21(0x453)]=_0x167c54,this[_0xd8ba21(0x38d)]=_0x364960);}[_0x10fcf4(0x1d6)](_0x3d805c){var _0x3d200c=_0x10fcf4;try{const _0x451451=[..._0x3d805c,...this[_0x3d200c(0x2f6)]],_0x2f98b7=[this['_awaitingChangeset']||this[_0x3d200c(0x45c)]][_0x3d200c(0x450)](_0x5604ff=>!!_0x5604ff);let _0x1339cc,_0x4bf700;if(_0x2f98b7[_0x3d200c(0x20b)]){const _0x41ba80=this['_transformService'][_0x3d200c(0x458)](_0x451451,_0x2f98b7,!0x1);if(!isTransformChangesetsSuccess(_0x41ba80))throw _0x41ba80[_0x3d200c(0x2a0)];_0x1339cc=_0x41ba80[_0x3d200c(0x493)],_0x4bf700=_0x41ba80[_0x3d200c(0x32a)];}else _0x1339cc=_0x451451,_0x4bf700=[];let _0x190978=this['_pendingMutations'];_0x1339cc[_0x3d200c(0x260)](_0x363778=>{var _0x58bf4f=_0x3d200c;let _0x2b8259;if(_0x190978['length']){const _0x49ec0e=this['_transformService'][_0x58bf4f(0x266)](_0x363778,_0x190978);if(!isTransformMutationsWithChangesetSuccess(_0x49ec0e))throw _0x49ec0e[_0x58bf4f(0x2a0)];_0x2b8259=_0x49ec0e[_0x58bf4f(0x493)],_0x190978=_0x49ec0e[_0x58bf4f(0x2fd)];}else _0x2b8259=_0x363778;this[_0x58bf4f(0x2df)](_0x2b8259);}),this[_0x3d200c(0x45c)]&&this[_0x3d200c(0x437)](),this[_0x3d200c(0x1cb)]&&_0x4bf700[_0x3d200c(0x20b)]&&(_0x4bf700[0x0]['baseRev']=this[_0x3d200c(0x330)]());let _0x54d8be;if(this[_0x3d200c(0x1cb)]&&_0x190978[_0x3d200c(0x20b)]!==0x0)_0x54d8be=this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](AwaitingWithPendingState,this['unitID'],this[_0x3d200c(0x48b)],_0x4bf700[0x0],_0x190978,this['_handler'],void 0x0);else{if(this[_0x3d200c(0x1cb)]&&_0x190978[_0x3d200c(0x20b)]===0x0)_0x4bf700[0x0][_0x3d200c(0x1f8)]=this['_getCurrentRevision'](),_0x54d8be=this[_0x3d200c(0x2b7)]['createInstance'](AwaitingState,this[_0x3d200c(0x436)],this[_0x3d200c(0x48b)],_0x4bf700[0x0],this['_handler']);else{if(_0x190978[_0x3d200c(0x20b)]!==0x0){const _0xae99a4=this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](PendingState,this['unitID'],this[_0x3d200c(0x48b)],_0x190978,this[_0x3d200c(0x240)]);_0xae99a4[_0x3d200c(0x412)](),_0x54d8be=_0xae99a4;}else _0x54d8be=this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](SyncedState,this[_0x3d200c(0x436)],this[_0x3d200c(0x48b)],this[_0x3d200c(0x240)]);}}return _0x54d8be[_0x3d200c(0x2cb)](),_0x54d8be;}catch(_0x4c6da7){return this[_0x3d200c(0x298)]['error'](_0x3d200c(0x235),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4c6da7),this[_0x3d200c(0x2b7)][_0x3d200c(0x42b)](ConflictState,this[_0x3d200c(0x436)],this[_0x3d200c(0x48b)],this['_awaitingChangeset'],this[_0x3d200c(0x3f6)],this[_0x3d200c(0x240)],!0x1);}}[_0x10fcf4(0x239)](){var _0x2f7ad4=_0x10fcf4;throw new Error(_0x2f7ad4(0x285));}['appendMutation'](_0xecf845){var _0x4f70e3=_0x10fcf4;return this['_pendingMutations'][_0x4f70e3(0x1b3)](_0xecf845),this;}['onRemoteChangeset'](_0x1e4c59){var _0x10e92a=_0x10fcf4;return this['_queuedRemoteChangesets'][_0x10e92a(0x1b3)](_0x1e4c59),this;}[_0x10fcf4(0x237)](_0x15017f){var _0x2c11f4=_0x10fcf4;if(this[_0x2c11f4(0x1cb)])return this[_0x2c11f4(0x45c)]=this[_0x2c11f4(0x1cb)],this[_0x2c11f4(0x1cb)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x10fcf4(0x48d)](_0x309577){var _0x3feb0e=_0x10fcf4;return this[_0x3feb0e(0x2aa)](!!(_0x309577!=null&&_0x309577[_0x3feb0e(0x1b1)]));}[_0x10fcf4(0x460)](){return this;}['toggleOffline'](){var _0x33c7c4=_0x10fcf4;return this['_injector'][_0x33c7c4(0x42b)](OfflineState,this[_0x33c7c4(0x436)],this[_0x33c7c4(0x48b)],this[_0x33c7c4(0x1cb)],this[_0x33c7c4(0x3f6)],this[_0x33c7c4(0x240)]);}[_0x10fcf4(0x2b3)](){return this;}[_0x10fcf4(0x2aa)](_0x5b6f7d){var _0x3b86ff=_0x10fcf4;return this[_0x3b86ff(0x2b7)][_0x3b86ff(0x42b)](ConflictState,this[_0x3b86ff(0x436)],this[_0x3b86ff(0x48b)],this[_0x3b86ff(0x1cb)],this[_0x3b86ff(0x3f6)],this[_0x3b86ff(0x240)],_0x5b6f7d);}},__name(_a12,'FetchingMissState'),_a12);FetchingMissState=__decorateClass$d([__decorateParam$d(0x7,Inject(Injector)),__decorateParam$d(0x8,Inject(RevisionService)),__decorateParam$d(0x9,ILogService),__decorateParam$d(0xa,ICommandService),__decorateParam$d(0xb,IUndoRedoService),__decorateParam$d(0xc,ITransformService),__decorateParam$d(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x106f4b,_0x39fd47,_0x130813,_0x584dd6,_0x2d692b,_0xfec994){var _0x50a5c5=_0x10fcf4;return _0x584dd6&&_0x2d692b[_0x50a5c5(0x20b)]?_0x106f4b[_0x50a5c5(0x42b)](AwaitingWithPendingState,_0x39fd47,_0x130813,_0x584dd6,_0x2d692b,_0xfec994,void 0x0):_0x584dd6?_0x106f4b['createInstance'](AwaitingState,_0x39fd47,_0x130813,_0x584dd6,_0xfec994):_0x2d692b['length']?_0x106f4b[_0x50a5c5(0x42b)](PendingState,_0x39fd47,_0x130813,_0x2d692b,_0xfec994):_0x106f4b[_0x50a5c5(0x42b)](SyncedState,_0x39fd47,_0x130813,_0xfec994);}__name(createOnlineState,_0x10fcf4(0x1fd));var __defProp$c=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$c=Object[_0x10fcf4(0x341)],__decorateClass$c=__name((_0x16858e,_0xdcd3fb,_0x3196f8,_0x5e9fc1)=>{var _0x4543ea=_0x10fcf4;for(var _0x2e409b=_0x5e9fc1>0x1?void 0x0:_0x5e9fc1?__getOwnPropDesc$c(_0xdcd3fb,_0x3196f8):_0xdcd3fb,_0x438e4d=_0x16858e[_0x4543ea(0x20b)]-0x1,_0x2188ff;_0x438e4d>=0x0;_0x438e4d--)(_0x2188ff=_0x16858e[_0x438e4d])&&(_0x2e409b=(_0x5e9fc1?_0x2188ff(_0xdcd3fb,_0x3196f8,_0x2e409b):_0x2188ff(_0x2e409b))||_0x2e409b);return _0x5e9fc1&&_0x2e409b&&__defProp$c(_0xdcd3fb,_0x3196f8,_0x2e409b),_0x2e409b;},'__decorateClass$c'),__decorateParam$c=__name((_0x5bdcdd,_0x8b24e0)=>(_0x399974,_0x2f9155)=>_0x8b24e0(_0x399974,_0x2f9155,_0x5bdcdd),'__decorateParam$c'),_a13;let CollaborationEntity=(_a13=class extends RxDisposable{constructor(_0x7604ce,_0x1e303f,_0x1094e1,_0x35805e,_0x1a7b7c,_0x384038,_0x3c2ca5,_0x57d9c6,_0xf01903,_0x3d0f3b,_0x57250a,_0x3d757d,_0x3d2643){var _0x5e707c=_0x10fcf4;super(),__publicField(this,'_state$',new BehaviorSubject(null)),__publicField(this,_0x5e707c(0x497),this['_state$'][_0x5e707c(0x3b6)]()),__publicField(this,_0x5e707c(0x2c0)),__publicField(this,_0x5e707c(0x39a),!0x1),__publicField(this,'_changesetSessionId',''),__publicField(this,'_changesetReqId',0x0),__publicField(this,_0x5e707c(0x3cd),this['state$'][_0x5e707c(0x18d)](_0x168a89(_0x10520d=>_0x10520d?_0x10520d['status']:CollaborationStatus['OFFLINE']),shareReplay(0x1))),__publicField(this,_0x5e707c(0x203),!0x1),__publicField(this,_0x5e707c(0x3c1),[]),(this['unitID']=_0x7604ce,this[_0x5e707c(0x391)]=_0x1e303f,this[_0x5e707c(0x2b4)]=_0x1094e1,this[_0x5e707c(0x2b7)]=_0x35805e,this[_0x5e707c(0x20a)]=_0x1a7b7c,this['_localeService']=_0x384038,this['_revisionService']=_0x3c2ca5,this['_eventService']=_0x57d9c6,this[_0x5e707c(0x298)]=_0xf01903,this['_commandService']=_0x3d0f3b,this[_0x5e707c(0x4c0)]=_0x57250a,this['_singleActiveUnitService']=_0x3d757d,this[_0x5e707c(0x331)]=_0x3d2643);}get[_0x10fcf4(0x37d)](){var _0x127349=_0x10fcf4;return this[_0x127349(0x2c0)];}async[_0x10fcf4(0x243)](){var _0x10d18e=_0x10fcf4;if(this['state'])throw new Error(_0x10d18e(0x345));await this[_0x10d18e(0x44c)]();}[_0x10fcf4(0x4c3)](){return this['_collaborationPaused']=!0x0,toDisposable(()=>{var _0x3baa95=_0x1531;this[_0x3baa95(0x39a)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x10fcf4(0x3f4)](_0x217dd6){var _0x1b35fa=_0x10fcf4;this[_0x1b35fa(0x39c)](_0x217dd6);}[_0x10fcf4(0x284)](_0x3e1981){var _0x5528d8=_0x10fcf4;this[_0x5528d8(0x2c0)]=_0x3e1981,this[_0x5528d8(0x212)][_0x5528d8(0x3d5)](_0x3e1981);}async[_0x10fcf4(0x44c)](){var _0x1263b9=_0x10fcf4,_0x3da35b;this[_0x1263b9(0x284)](await this[_0x1263b9(0x24e)]()),this[_0x1263b9(0x1cf)]&&((_0x3da35b=this['_singleActiveUnitService'])==null||_0x3da35b[_0x1263b9(0x324)](this[_0x1263b9(0x436)]),this['disposeWithMe'](this[_0x1263b9(0x1cf)][_0x1263b9(0x37c)](this[_0x1263b9(0x436)])[_0x1263b9(0x416)](_0x20aaf4=>{var _0x3690c2=_0x1263b9;this[_0x3690c2(0x298)]['debug'](_0x3690c2(0x2ef),'editing\x20status\x20changed\x20to',_0x20aaf4),_0x20aaf4===UnitStatus['OTHER_CLIENTS_EDITING']?(this['_eventService']['emitEvent']({'id':CollaborationUIEventId['OTHER_CLIENT_EDITING']}),this[_0x3690c2(0x4c0)][_0x3690c2(0x371)](new WorkbookEditablePermission(this[_0x3690c2(0x436)])['id'],!0x1),this[_0x3690c2(0x4c0)]['setShowComponents'](!0x1)):(this[_0x3690c2(0x4c0)][_0x3690c2(0x371)](new WorkbookEditablePermission(this[_0x3690c2(0x436)])['id'],!0x0),this[_0x3690c2(0x4c0)][_0x3690c2(0x395)](!0x0));})));let _0x592666=!0x1;return this['disposeWithMe'](this['session'][_0x1263b9(0x215)][_0x1263b9(0x416)](_0x21d8f6=>{var _0x9836b6=_0x1263b9;_0x21d8f6===SessionStatus[_0x9836b6(0x3b0)]?this[_0x9836b6(0x1d2)](_0x592666):_0x21d8f6===SessionStatus['OFFLINE']&&(_0x592666=!0x0,this[_0x9836b6(0x474)]());})),this[_0x1263b9(0x29d)](this[_0x1263b9(0x391)][_0x1263b9(0x48c)][_0x1263b9(0x416)](_0x5b8e19=>{var _0x188a6a=_0x1263b9;try{switch(_0x5b8e19[_0x188a6a(0x204)]){case CollaborationEvent[_0x188a6a(0x482)]:{this[_0x188a6a(0x1e8)](parseProtocolChangeset(_0x5b8e19['data']));break;}case CollaborationEvent[_0x188a6a(0x1d5)]:{this['_onRemoteACK'](_0x5b8e19['data']);break;}case CollaborationEvent['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case CollaborationEvent['CHANGESET_SHOULD_RETRY']:{this[_0x188a6a(0x28b)](_0x5b8e19[_0x188a6a(0x407)]);break;}case CollaborationEvent[_0x188a6a(0x3e5)]:{this[_0x188a6a(0x3d3)](_0x5b8e19['data'][_0x188a6a(0x2ad)][_0x188a6a(0x454)](_0x313c71=>parseProtocolChangeset(_0x313c71)));break;}case CollaborationEvent[_0x188a6a(0x340)]:{this['_onRemoteRejected']({'isPermissionRej':!0x0});break;}case CollaborationEvent[_0x188a6a(0x1d7)]:break;}}catch(_0xddbf0d){throw console[_0x188a6a(0x2a0)](_0x188a6a(0x213),_0xddbf0d),_0xddbf0d;}})),this['_state'];}[_0x10fcf4(0x1be)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){var _0x4bec62=_0x10fcf4;if(this[_0x4bec62(0x203)])throw new Error(_0x4bec62(0x4b0));this[_0x4bec62(0x203)]=!0x0;}['_onLocalMutation'](_0xb1cc90){var _0x40e1af=_0x10fcf4;this['_lockTransition'](),this[_0x40e1af(0x284)](this[_0x40e1af(0x2c0)][_0x40e1af(0x297)](_0xb1cc90)),this[_0x40e1af(0x1be)]();}['_onRemoteChangeset'](_0x1b36a6){var _0x28195d=_0x10fcf4;if(!(_0x1b36a6[_0x28195d(0x2fe)]<=this[_0x28195d(0x30d)]['getCurrentRevOfUnit'](this[_0x28195d(0x436)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x1b36a6);return;}this[_0x28195d(0x1ba)](_0x1b36a6);}}['_exhaustRemoteChangesetQueue'](){var _0x3e5a49=_0x10fcf4;this[_0x3e5a49(0x3c1)][_0x3e5a49(0x260)](_0x25c842=>this['_applyRemoteChangeset'](_0x25c842)),this['_remoteChangesetQueue']=[];}[_0x10fcf4(0x1ba)](_0x10e8d4){var _0x405fd8=_0x10fcf4;const _0x27af5a=this['_compressMutationService'][_0x405fd8(0x3b2)][_0x405fd8(0x1cc)](this['_compressMutationService'][_0x405fd8(0x3b2)][_0x405fd8(0x27b)]()[_0x405fd8(0x1bb)])(_0x10e8d4[_0x405fd8(0x448)],null)||_0x10e8d4[_0x405fd8(0x448)],_0x1ccbc2={..._0x10e8d4,'mutations':_0x27af5a};this[_0x405fd8(0x368)](),this['_updateState'](this[_0x405fd8(0x2c0)][_0x405fd8(0x3b7)](_0x1ccbc2)),this['_unlockTransition']();}['_onRemoteACK'](_0x2d2b03){var _0x4a4b2c=_0x10fcf4;this[_0x4a4b2c(0x368)](),this[_0x4a4b2c(0x284)](this[_0x4a4b2c(0x2c0)][_0x4a4b2c(0x237)](_0x2d2b03)),this[_0x4a4b2c(0x1be)]();}[_0x10fcf4(0x24c)](_0x2d048d){var _0x4983d8=_0x10fcf4;this['_lockTransition'](),this[_0x4983d8(0x284)](this[_0x4983d8(0x2c0)][_0x4983d8(0x48d)](_0x2d048d)),this['_unlockTransition']();}['_onRemoteRetry'](_0x341e27){var _0x49d5d6=_0x10fcf4;this['_lockTransition'](),this[_0x49d5d6(0x284)](this['_state']['onRemoteRetry'](_0x341e27)),this['_unlockTransition']();}[_0x10fcf4(0x3d3)](_0x9a8090){var _0x3c97dc=_0x10fcf4;if(!(this['_state']instanceof FetchingMissState))throw new TypeError(_0x3c97dc(0x28a));const _0x4541da=_0x9a8090['map'](_0x2cf719=>{var _0x596ce7=_0x3c97dc;const _0x333032=this['_compressMutationService']['interceptor'][_0x596ce7(0x1cc)](this[_0x596ce7(0x20a)]['interceptor'][_0x596ce7(0x27b)]()['COMPRESS_MUTATION_APPLY'])(_0x2cf719['mutations'],null)||_0x2cf719[_0x596ce7(0x448)];return{..._0x2cf719,'mutations':_0x333032};});this[_0x3c97dc(0x368)](),this[_0x3c97dc(0x284)](this[_0x3c97dc(0x2c0)]['onMissedChangesetFetched'](_0x4541da)),this[_0x3c97dc(0x1be)]();}[_0x10fcf4(0x474)](){var _0x77bd04=_0x10fcf4;this[_0x77bd04(0x368)](),this[_0x77bd04(0x284)](this[_0x77bd04(0x2c0)]['toggleOffline']()),this['_unlockTransition']();}[_0x10fcf4(0x1d2)](_0x3c5651=!0x1){var _0x315773=_0x10fcf4;this[_0x315773(0x368)](),this[_0x315773(0x284)](this[_0x315773(0x2c0)][_0x315773(0x2b3)]()),this['_unlockTransition']();const _0x584c37=this[_0x315773(0x2c0)];_0x3c5651&&_0x584c37 instanceof SyncedState&&(this[_0x315773(0x368)](),this['_updateState'](_0x584c37['fetchMiss']()),this[_0x315773(0x1be)]());}async['_createInitialState'](){return new Promise(_0x294c73=>{var _0x473587=_0x1531;this[_0x473587(0x391)][_0x473587(0x215)][_0x473587(0x18d)](_0x369b3a(0x1))[_0x473587(0x416)](async _0x59bb33=>{var _0x292727=_0x473587;_0x294c73(await this[_0x292727(0x491)](_0x59bb33===SessionStatus[_0x292727(0x3b0)]));});});}['_createHandler'](){var _0x3d3bfd=_0x10fcf4;const _0x56f676=this[_0x3d3bfd(0x436)];return{'onStateChange':__name((_0x3d697e,_0x123685)=>{var _0xb9a7ee=_0x3d3bfd;if(_0x3d697e!==this[_0xb9a7ee(0x2c0)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x3d697e[_0xb9a7ee(0x228)]+_0xb9a7ee(0x3ce)+_0x123685[_0xb9a7ee(0x228)]+'\x0aCurrent:\x20'+this[_0xb9a7ee(0x2c0)]['status']);this[_0xb9a7ee(0x284)](_0x123685);},'onStateChange'),'onSendChangeset':__name(_0x25f39f=>{var _0x34ac59=_0x3d3bfd;_0x25f39f['sid']||(_0x25f39f[_0x34ac59(0x421)]=this[_0x34ac59(0x3d2)],_0x25f39f[_0x34ac59(0x21e)]=++this[_0x34ac59(0x209)]);const _0x547b8f={'eventID':CollaborationEvent['SUBMIT_CHANGESET'],'data':{'unitID':_0x25f39f[_0x34ac59(0x436)],'unitType':this[_0x34ac59(0x2b4)],'changeset':_0x25f39f,'memberID':this[_0x34ac59(0x391)][_0x34ac59(0x1b0)]()}};this['session'][_0x34ac59(0x309)](_0x547b8f,this[_0x34ac59(0x436)]);},_0x3d3bfd(0x3b5)),'onMissingChangesets':__name(({from:_0x56785d,to:_0xc839f8})=>{var _0x423e7a=_0x3d3bfd;this[_0x423e7a(0x298)][_0x423e7a(0x388)](_0x423e7a(0x2ef),_0x423e7a(0x299)+_0x56785d+_0x423e7a(0x489)+_0xc839f8);const _0x4645df={'eventID':CollaborationEvent[_0x423e7a(0x2b1)],'data':{'unitID':_0x56f676,'unitType':this[_0x423e7a(0x2b4)],'from':_0x56785d,'to':_0xc839f8}};this[_0x423e7a(0x391)][_0x423e7a(0x309)](_0x4645df,this[_0x423e7a(0x436)]);},_0x3d3bfd(0x1af))};}async[_0x10fcf4(0x491)](_0x34bd7e){var _0x23de11=_0x10fcf4,_0x3869d2,_0x54a14e,_0x1dc640;const _0x52ef9e=await((_0x3869d2=this[_0x23de11(0x331)])==null?void 0x0:_0x3869d2[_0x23de11(0x45a)](this[_0x23de11(0x436)])),_0x2c85d3=(_0x54a14e=_0x52ef9e==null?void 0x0:_0x52ef9e['mutations'])!=null?_0x54a14e:[],_0x1ffd94=(_0x1dc640=_0x52ef9e==null?void 0x0:_0x52ef9e[_0x23de11(0x293)])!=null?_0x1dc640:null,_0x551c17=!!(_0x1ffd94!=null&&_0x1ffd94[_0x23de11(0x421)])&&!!(_0x1ffd94!=null&&_0x1ffd94[_0x23de11(0x21e)]);this[_0x23de11(0x3d2)]=_0x551c17?_0x1ffd94[_0x23de11(0x421)]:v4(),this[_0x23de11(0x209)]=_0x551c17?_0x1ffd94['reqId']:0x0;const _0x35ab08=this[_0x23de11(0x436)];try{this[_0x23de11(0x408)](_0x1ffd94,_0x2c85d3);}catch(_0x1791af){this[_0x23de11(0x298)][_0x23de11(0x2a0)](_0x1791af);}const _0x18f138=this[_0x23de11(0x2d6)]();if(_0x34bd7e){const _0x5ddf6c=createOnlineState(this[_0x23de11(0x2b7)],_0x35ab08,this[_0x23de11(0x2b4)],_0x1ffd94,_0x2c85d3,_0x18f138);return _0x5ddf6c instanceof PendingState?_0x5ddf6c[_0x23de11(0x412)]():(_0x5ddf6c instanceof AwaitingWithPendingState||_0x5ddf6c instanceof AwaitingState)&&_0x5ddf6c[_0x23de11(0x239)](),_0x5ddf6c;}return this['_injector'][_0x23de11(0x42b)](OfflineState,_0x35ab08,this[_0x23de11(0x2b4)],_0x1ffd94,_0x2c85d3,_0x18f138);}[_0x10fcf4(0x408)](_0x43707b,_0x29e393){var _0x2abb6d=_0x10fcf4,_0x19bcb6,_0x12fb48;const _0xaf8a3e=this[_0x2abb6d(0x20a)]['interceptor'][_0x2abb6d(0x1cc)](this['_compressMutationService'][_0x2abb6d(0x3b2)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x19bcb6=_0xaf8a3e((_0x43707b==null?void 0x0:_0x43707b['mutations'])||[],null))==null||_0x19bcb6[_0x2abb6d(0x260)](_0x12b603=>this[_0x2abb6d(0x1aa)][_0x2abb6d(0x447)](_0x12b603['id'],_0x12b603['params'])),(_0x12fb48=_0xaf8a3e(_0x29e393||[],null))==null||_0x12fb48[_0x2abb6d(0x260)](_0x12cb91=>this[_0x2abb6d(0x1aa)][_0x2abb6d(0x447)](_0x12cb91['id'],_0x12cb91[_0x2abb6d(0x2d2)]));}},__name(_a13,_0x10fcf4(0x1e1)),_a13);CollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],CollaborationEntity);var _a14;let DocCollaborationEntity=(_a14=class extends CollaborationEntity{constructor(_0x184420,_0x26b2ac,_0x52e3a7,_0xfe1d33,_0x2176e1,_0x46e99c,_0x33ec89,_0x1f0f30,_0x116cdd,_0x5d7841,_0x4f933a,_0x19263c,_0x500e6e){var _0x2e7862=_0x10fcf4;super(_0x184420,_0x52e3a7,_0x26b2ac,_0xfe1d33,_0x2176e1,_0x46e99c,_0x33ec89,_0x1f0f30,_0x116cdd,_0x5d7841,_0x4f933a,_0x19263c,_0x500e6e),__publicField(this,_0x2e7862(0x3a3),null),(this[_0x2e7862(0x436)]=_0x184420,this['type']=_0x26b2ac);}[_0x10fcf4(0x4a9)](_0x3b75f7){var _0xa34272=_0x10fcf4;this[_0xa34272(0x3a3)]=_0x3b75f7;}[_0x10fcf4(0x318)](){var _0x1c4470=_0x10fcf4;this[_0x1c4470(0x3a3)]=null,super[_0x1c4470(0x318)]();}[_0x10fcf4(0x2d6)](){var _0x2830f5=_0x10fcf4;const _0x14c78b=super[_0x2830f5(0x2d6)]();return _0x14c78b[_0x2830f5(0x37a)]=_0x3cba5d=>{var _0x26b1bd=_0x2830f5,_0x35938b,_0x374c09;return(_0x374c09=(_0x35938b=this['_handlerCallback'])==null?void 0x0:_0x35938b[_0x26b1bd(0x37a)])==null?void 0x0:_0x374c09['call'](_0x35938b,_0x3cba5d);},_0x14c78b['onTransformState']=_0xd7a5df=>{var _0x291e70=_0x2830f5,_0x35db44,_0x222f1f;return(_0x222f1f=(_0x35db44=this[_0x291e70(0x3a3)])==null?void 0x0:_0x35db44['onTransformState'])==null?void 0x0:_0x222f1f[_0x291e70(0x21a)](_0x35db44,_0xd7a5df);},_0x14c78b[_0x2830f5(0x21b)]=_0x1433e8=>{var _0x44d0ac=_0x2830f5,_0x41ddfb,_0x9b895b;return(_0x9b895b=(_0x41ddfb=this[_0x44d0ac(0x3a3)])==null?void 0x0:_0x41ddfb[_0x44d0ac(0x21b)])==null?void 0x0:_0x9b895b[_0x44d0ac(0x21a)](_0x41ddfb,_0x1433e8);},_0x14c78b[_0x2830f5(0x256)]=_0x4eeab5=>{var _0x31a50b=_0x2830f5,_0x2ac87b,_0x7c9998;return(_0x7c9998=(_0x2ac87b=this[_0x31a50b(0x3a3)])==null?void 0x0:_0x2ac87b['onSyncEditingCollabCursor'])==null?void 0x0:_0x7c9998[_0x31a50b(0x21a)](_0x2ac87b,_0x4eeab5);},_0x14c78b[_0x2830f5(0x3b1)]=_0x41ede3=>{var _0x663ebf=_0x2830f5,_0x2f6d00,_0x4ba1f6,_0x535e1f;if(!((_0x2f6d00=this[_0x663ebf(0x3a3)])!=null&&_0x2f6d00[_0x663ebf(0x3b1)]))throw new Error(_0x663ebf(0x3ed));return(_0x535e1f=(_0x4ba1f6=this['_handlerCallback'])==null?void 0x0:_0x4ba1f6[_0x663ebf(0x3b1)])==null?void 0x0:_0x535e1f[_0x663ebf(0x21a)](_0x4ba1f6,_0x41ede3);},_0x14c78b[_0x2830f5(0x2ea)]=_0x50b469=>{var _0x3015cb=_0x2830f5,_0x4027fa,_0x35bf07,_0x573e08;if(!((_0x4027fa=this['_handlerCallback'])!=null&&_0x4027fa[_0x3015cb(0x2ea)]))throw new Error(_0x3015cb(0x3eb));return(_0x573e08=(_0x35bf07=this['_handlerCallback'])==null?void 0x0:_0x35bf07['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x573e08['call'](_0x35bf07,_0x50b469);},_0x14c78b;}async[_0x10fcf4(0x44c)](){var _0x4f41b9=_0x10fcf4;const _0x5f23d=await super[_0x4f41b9(0x44c)]();return this[_0x4f41b9(0x29d)](this[_0x4f41b9(0x1aa)][_0x4f41b9(0x33e)]((_0x84d21a,_0x48b090)=>{var _0x5ac50e=_0x4f41b9;if(_0x84d21a['type']!==CommandType[_0x5ac50e(0x48e)]||_0x48b090!=null&&_0x48b090[_0x5ac50e(0x1c7)]||_0x48b090!=null&&_0x48b090[_0x5ac50e(0x1ab)]||_0x84d21a['id']===RichTextEditingMutation['id'])return;const _0x377702=_0x84d21a[_0x5ac50e(0x2d2)];if((_0x377702==null?void 0x0:_0x377702['unitId'])!==this['unitID'])return;const _0x145d58=_0x84d21a,_0x5cfac0=this[_0x5ac50e(0x20a)][_0x5ac50e(0x3b2)][_0x5ac50e(0x1cc)](this[_0x5ac50e(0x20a)]['interceptor'][_0x5ac50e(0x27b)]()[_0x5ac50e(0x196)])([_0x145d58],null)||[_0x145d58];this[_0x5ac50e(0x39c)](_0x5cfac0[0x0]);})),_0x5f23d;}},__name(_a14,_0x10fcf4(0x327)),_a14);DocCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(CollaborationUIEventService)),__decorateParam$c(0x8,ILogService),__decorateParam$c(0x9,ICommandService),__decorateParam$c(0xa,IPermissionService),__decorateParam$c(0xb,Optional(ISingleActiveUnitService)),__decorateParam$c(0xc,Optional(ILocalCacheService))],DocCollaborationEntity);var _a15;let SheetCollaborationEntity=(_a15=class extends CollaborationEntity{constructor(_0x5295d8,_0x5c88a7,_0x4fc820,_0x16b8d3,_0x46353f,_0x534863,_0x2d2993,_0x52abe8,_0xf97400,_0x1a4c23,_0x1a19c3,_0x57be05,_0x35ecc2,_0x4106b8){var _0x1f874c=_0x10fcf4;super(_0x5295d8,_0x4fc820,_0x5c88a7,_0x16b8d3,_0x46353f,_0x534863,_0x2d2993,_0xf97400,_0x1a4c23,_0x1a19c3,_0x57be05,_0x35ecc2,_0x4106b8),this['unitID']=_0x5295d8,this[_0x1f874c(0x48b)]=_0x5c88a7,this['_sheetTransformSelectionsService']=_0x52abe8;}['_createHandler'](){var _0x5cc1a3=_0x10fcf4;const _0x5adc4f=super['_createHandler']();return _0x5adc4f[_0x5cc1a3(0x21b)]=_0x5295b1=>this[_0x5cc1a3(0x1bc)][_0x5cc1a3(0x28e)](_0x5295b1),_0x5adc4f;}async[_0x10fcf4(0x44c)](){var _0x15329e=_0x10fcf4;const _0x2bf22f=await super[_0x15329e(0x44c)]();return this[_0x15329e(0x29d)](this[_0x15329e(0x1aa)][_0x15329e(0x33e)]((_0x59d32b,_0x45aebb)=>{var _0x471c3f=_0x15329e;if(_0x59d32b[_0x471c3f(0x48b)]!==CommandType[_0x471c3f(0x48e)]||_0x45aebb!=null&&_0x45aebb['fromCollab']||_0x45aebb!=null&&_0x45aebb[_0x471c3f(0x1ab)])return;const _0x53fa9e=_0x59d32b[_0x471c3f(0x2d2)];if((_0x53fa9e==null?void 0x0:_0x53fa9e['unitId'])!==this[_0x471c3f(0x436)])return;const _0x1d70ea=_0x59d32b,_0x3b0530=this[_0x471c3f(0x20a)][_0x471c3f(0x3b2)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x471c3f(0x3b2)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x1d70ea],null)||[_0x1d70ea];this[_0x471c3f(0x39c)](_0x3b0530[0x0]);})),_0x2bf22f;}},__name(_a15,'SheetCollaborationEntity'),_a15);SheetCollaborationEntity=__decorateClass$c([__decorateParam$c(0x3,Inject(Injector)),__decorateParam$c(0x4,Inject(CompressMutationService)),__decorateParam$c(0x5,Inject(LocaleService)),__decorateParam$c(0x6,Inject(RevisionService)),__decorateParam$c(0x7,Inject(SheetTransformSelectionsService)),__decorateParam$c(0x8,Inject(CollaborationUIEventService)),__decorateParam$c(0x9,ILogService),__decorateParam$c(0xa,ICommandService),__decorateParam$c(0xb,IPermissionService),__decorateParam$c(0xc,Optional(ISingleActiveUnitService)),__decorateParam$c(0xd,Optional(ILocalCacheService))],SheetCollaborationEntity);var __defProp$b=Object['defineProperty'],__getOwnPropDesc$b=Object[_0x10fcf4(0x341)],__decorateClass$b=__name((_0xa2a2c3,_0x5a3c7f,_0xf40cd1,_0x582a53)=>{var _0x4ca4ea=_0x10fcf4;for(var _0x5e7b22=_0x582a53>0x1?void 0x0:_0x582a53?__getOwnPropDesc$b(_0x5a3c7f,_0xf40cd1):_0x5a3c7f,_0x3b1c45=_0xa2a2c3[_0x4ca4ea(0x20b)]-0x1,_0x15e440;_0x3b1c45>=0x0;_0x3b1c45--)(_0x15e440=_0xa2a2c3[_0x3b1c45])&&(_0x5e7b22=(_0x582a53?_0x15e440(_0x5a3c7f,_0xf40cd1,_0x5e7b22):_0x15e440(_0x5e7b22))||_0x5e7b22);return _0x582a53&&_0x5e7b22&&__defProp$b(_0x5a3c7f,_0xf40cd1,_0x5e7b22),_0x5e7b22;},'__decorateClass$b'),__decorateParam$b=__name((_0x48a07e,_0x24a8a0)=>(_0x47bce6,_0x45e43e)=>_0x24a8a0(_0x47bce6,_0x45e43e,_0x48a07e),'__decorateParam$b'),_a16;let CollaborationController=(_a16=class extends RxDisposable{constructor(_0x21a14b,_0x15312b,_0x3afab9){var _0x5bf3b9=_0x10fcf4;super(),__publicField(this,'_entities',new Map()),__publicField(this,_0x5bf3b9(0x1f1),new Subject()),__publicField(this,_0x5bf3b9(0x2ac),this[_0x5bf3b9(0x1f1)][_0x5bf3b9(0x3b6)]()),(this[_0x5bf3b9(0x2b7)]=_0x21a14b,this[_0x5bf3b9(0x413)]=_0x15312b,this['_univerInstanceService']=_0x3afab9,this[_0x5bf3b9(0x44c)]());}[_0x10fcf4(0x318)](){var _0x5ceb14=_0x10fcf4;super[_0x5ceb14(0x318)](),this['_entities'][_0x5ceb14(0x260)](_0x549450=>_0x549450[_0x5ceb14(0x318)]()),this['_entities'][_0x5ceb14(0x272)]();}[_0x10fcf4(0x3e8)](_0xe01787){var _0x549c95=_0x10fcf4,_0x555e44;return(_0x555e44=this[_0x549c95(0x1dd)][_0x549c95(0x402)](_0xe01787))!=null?_0x555e44:null;}[_0x10fcf4(0x465)](_0x4c7457){var _0x34feb4=_0x10fcf4;const _0x50d46e=this['getCollabEntity'](_0x4c7457);return _0x50d46e?of(_0x50d46e):this[_0x34feb4(0x1f1)]['pipe'](filter(_0x138730=>_0x138730[_0x34feb4(0x436)]===_0x4c7457));}[_0x10fcf4(0x4a5)](_0x5dd644){var _0x1ef785=_0x10fcf4;return firstValueFrom(this[_0x1ef785(0x465)](_0x5dd644)[_0x1ef785(0x18d)](map(()=>{})));}['_init'](){var _0x4d93c0=_0x10fcf4;this[_0x4d93c0(0x3a9)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x4d93c0(0x3a7)])[_0x4d93c0(0x18d)](takeUntil(this[_0x4d93c0(0x205)]),delay(0x10))[_0x4d93c0(0x416)](async _0x40574e=>{var _0x214167=_0x4d93c0;const _0x51e37d=_0x40574e[_0x214167(0x2b9)](),_0xf028a1=await this[_0x214167(0x23f)](_0x51e37d,UniverType[_0x214167(0x3a7)]);this['_entities'][_0x214167(0x26a)](_0x51e37d,_0xf028a1);}),this[_0x4d93c0(0x3a9)]['getTypeOfUnitAdded$'](UniverInstanceType['UNIVER_DOC'])[_0x4d93c0(0x18d)](takeUntil(this[_0x4d93c0(0x205)]),delay(0x10))[_0x4d93c0(0x18d)](filter(_0x56e094=>!_0x56e094['getUnitId']()['startsWith']('__')))[_0x4d93c0(0x416)](async _0xa1adcf=>{var _0x58f9bc=_0x4d93c0;const _0x2f3fbd=_0xa1adcf['getUnitId'](),_0x26fba0=await this[_0x58f9bc(0x23f)](_0x2f3fbd,UniverType[_0x58f9bc(0x30c)]);this['_entities'][_0x58f9bc(0x26a)](_0x2f3fbd,_0x26fba0);}),merge(this[_0x4d93c0(0x3a9)][_0x4d93c0(0x325)](UniverInstanceType['UNIVER_SHEET']),this[_0x4d93c0(0x3a9)][_0x4d93c0(0x325)](UniverInstanceType[_0x4d93c0(0x30c)]))[_0x4d93c0(0x18d)](takeUntil(this[_0x4d93c0(0x205)]))['subscribe'](_0x1dd2cf=>{var _0xcc2c08=_0x4d93c0;const _0x1df693=_0x1dd2cf['getUnitId'](),_0x400156=this[_0xcc2c08(0x1dd)]['get'](_0x1df693);_0x400156&&(_0x400156[_0xcc2c08(0x318)](),this[_0xcc2c08(0x1dd)][_0xcc2c08(0x2d5)](_0x1df693));});}async[_0x10fcf4(0x23f)](_0x2fa907,_0x5bb1b7){var _0xace1f6=_0x10fcf4;const _0x53635b=await this[_0xace1f6(0x413)]['requireSession'](_0x2fa907),_0x13bd35=this[_0xace1f6(0x2b7)][_0xace1f6(0x42b)](this[_0xace1f6(0x2d0)](_0x5bb1b7),_0x2fa907,_0x5bb1b7,_0x53635b);return await _0x13bd35[_0xace1f6(0x243)](),this['_entityInit$'][_0xace1f6(0x3d5)](_0x13bd35),_0x13bd35;}[_0x10fcf4(0x2d0)](_0x3b55de){var _0x554136=_0x10fcf4;switch(_0x3b55de){case UniverType[_0x554136(0x30c)]:return DocCollaborationEntity;case UniverType['UNIVER_SHEET']:return SheetCollaborationEntity;default:throw new Error(_0x554136(0x280)+_0x3b55de);}}},__name(_a16,'CollaborationController'),_a16);CollaborationController=__decorateClass$b([__decorateParam$b(0x0,Inject(Injector)),__decorateParam$b(0x1,Inject(CollaborationSessionService)),__decorateParam$b(0x2,IUniverInstanceService)],CollaborationController);var __defProp$a=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$a=Object['getOwnPropertyDescriptor'],__decorateClass$a=__name((_0xd18d3d,_0x30cec4,_0x36b3b1,_0x11452c)=>{var _0x402eab=_0x10fcf4;for(var _0x3107f8=_0x11452c>0x1?void 0x0:_0x11452c?__getOwnPropDesc$a(_0x30cec4,_0x36b3b1):_0x30cec4,_0x3703a8=_0xd18d3d[_0x402eab(0x20b)]-0x1,_0x3446c6;_0x3703a8>=0x0;_0x3703a8--)(_0x3446c6=_0xd18d3d[_0x3703a8])&&(_0x3107f8=(_0x11452c?_0x3446c6(_0x30cec4,_0x36b3b1,_0x3107f8):_0x3446c6(_0x3107f8))||_0x3107f8);return _0x11452c&&_0x3107f8&&__defProp$a(_0x30cec4,_0x36b3b1,_0x3107f8),_0x3107f8;},'__decorateClass$a'),__decorateParam$a=__name((_0x2167b9,_0x4750d5)=>(_0x33711c,_0x2d65e0)=>_0x4750d5(_0x33711c,_0x2d65e0,_0x2167b9),_0x10fcf4(0x219));const DEFAULT_FILE_NAME_KEY=_0x10fcf4(0x24a),UNIVER_DEFAULT_FILE_NAME=_0x10fcf4(0x253);var _a17;let FileNameController=(_a17=class extends Disposable{constructor(_0x1984ef,_0x168c08){super(),this['_univerInstanceService']=_0x1984ef,this['_configService']=_0x168c08,this['_init']();}[_0x10fcf4(0x44c)](){var _0x4ccd37=_0x10fcf4;this[_0x4ccd37(0x29d)](this['_univerInstanceService'][_0x4ccd37(0x25a)]['subscribe'](()=>{var _0x3f423a=_0x4ccd37,_0x1c0fd5;const _0x31c418=this['_univerInstanceService'][_0x3f423a(0x195)]();let _0x42dada=(_0x1c0fd5=this['_configService'][_0x3f423a(0x3ef)](DEFAULT_FILE_NAME_KEY))!=null?_0x1c0fd5:UNIVER_DEFAULT_FILE_NAME;_0x31c418 instanceof Workbook&&(_0x42dada=_0x31c418['name']),document[_0x3f423a(0x1d8)]=_0x42dada;}));}},__name(_a17,_0x10fcf4(0x427)),_a17);FileNameController=__decorateClass$a([__decorateParam$a(0x0,IUniverInstanceService),__decorateParam$a(0x1,IConfigService)],FileNameController);var __defProp$9=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$9=Object[_0x10fcf4(0x341)],__decorateClass$9=__name((_0x356d42,_0x35fa94,_0x1a7ba2,_0x5706d6)=>{var _0x51bf13=_0x10fcf4;for(var _0x43cf91=_0x5706d6>0x1?void 0x0:_0x5706d6?__getOwnPropDesc$9(_0x35fa94,_0x1a7ba2):_0x35fa94,_0x77fa82=_0x356d42[_0x51bf13(0x20b)]-0x1,_0x32cf0d;_0x77fa82>=0x0;_0x77fa82--)(_0x32cf0d=_0x356d42[_0x77fa82])&&(_0x43cf91=(_0x5706d6?_0x32cf0d(_0x35fa94,_0x1a7ba2,_0x43cf91):_0x32cf0d(_0x43cf91))||_0x43cf91);return _0x5706d6&&_0x43cf91&&__defProp$9(_0x35fa94,_0x1a7ba2,_0x43cf91),_0x43cf91;},_0x10fcf4(0x207)),__decorateParam$9=__name((_0x16b054,_0x1daf1c)=>(_0x37caf1,_0xc67b15)=>_0x1daf1c(_0x37caf1,_0xc67b15,_0x16b054),_0x10fcf4(0x3ab)),_a18;let AuthServerService=(_a18=class{constructor(_0x3ee0c4,_0x143a27,_0x30bc0a){var _0x358943=_0x10fcf4;this['_configService']=_0x3ee0c4,this['_httpService']=_0x143a27,this[_0x358943(0x3e4)]=_0x30bc0a,this[_0x358943(0x243)]();}[_0x10fcf4(0x243)](){var _0x586cd2=_0x10fcf4;this[_0x586cd2(0x1ca)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':__name((_0x1c980e,_0x59f4c9)=>_0x59f4c9(_0x1c980e)[_0x586cd2(0x18d)](concatMap(async _0x14e85a=>{var _0x25b1f0=_0x586cd2;const _0x3713d5=_0x14e85a;if(_0x3713d5['status']===0x191){if(typeof window>'u')throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x25b1f0(0x3d9)](this[_0x25b1f0(0x3e4)]['t'](_0x25b1f0(0x46f)))){const _0x5c948e=window[_0x25b1f0(0x1c6)](window[_0x25b1f0(0x3ac)][_0x25b1f0(0x38c)]);window['location'][_0x25b1f0(0x38c)]=this[_0x25b1f0(0x45d)]()+_0x25b1f0(0x288)+_0x5c948e;}}return _0x3713d5;})),_0x586cd2(0x3b2))});}[_0x10fcf4(0x45d)](){var _0x35ff65=_0x10fcf4,_0x5b4699,_0x562da2;const _0x4cda44=this[_0x35ff65(0x2bf)][_0x35ff65(0x3ef)](LOGIN_URL_KEY),_0x524eb5=this[_0x35ff65(0x2bf)][_0x35ff65(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x562da2=(_0x5b4699=_0x524eb5==null?void 0x0:_0x524eb5[_0x35ff65(0x230)])!=null?_0x5b4699:_0x4cda44)!=null?_0x562da2:DEFAULT_LOGIN_URL;}},__name(_a18,_0x10fcf4(0x41b)),_a18);AuthServerService=__decorateClass$9([__decorateParam$9(0x0,IConfigService),__decorateParam$9(0x1,Inject(HTTPService)),__decorateParam$9(0x2,Inject(LocaleService))],AuthServerService);var __defProp$8=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$8=Object[_0x10fcf4(0x341)],__decorateClass$8=__name((_0x9379a8,_0x27ab69,_0x4c7d89,_0x5d6772)=>{var _0x40ff95=_0x10fcf4;for(var _0x33d3e7=_0x5d6772>0x1?void 0x0:_0x5d6772?__getOwnPropDesc$8(_0x27ab69,_0x4c7d89):_0x27ab69,_0x17e368=_0x9379a8[_0x40ff95(0x20b)]-0x1,_0x1cc2cb;_0x17e368>=0x0;_0x17e368--)(_0x1cc2cb=_0x9379a8[_0x17e368])&&(_0x33d3e7=(_0x5d6772?_0x1cc2cb(_0x27ab69,_0x4c7d89,_0x33d3e7):_0x1cc2cb(_0x33d3e7))||_0x33d3e7);return _0x5d6772&&_0x33d3e7&&__defProp$8(_0x27ab69,_0x4c7d89,_0x33d3e7),_0x33d3e7;},'__decorateClass$8'),__decorateParam$8=__name((_0x1e32cc,_0xc16123)=>(_0x580aca,_0x902461)=>_0xc16123(_0x580aca,_0x902461,_0x1e32cc),'__decorateParam$8');const AUTHZ_URL_KEY=_0x10fcf4(0x433),DEFAULT_AUTHZ_URL_KEY$1=_0x10fcf4(0x2bb);var _a19;let AuthzIoHttpService=(_a19=class extends Disposable{constructor(_0x3a44e7,_0x7a8766){var _0x1b590f=_0x10fcf4;super(),this[_0x1b590f(0x281)]=_0x3a44e7,this[_0x1b590f(0x2bf)]=_0x7a8766,this[_0x1b590f(0x3f9)]();}[_0x10fcf4(0x3f9)](){var _0x37ca0c=_0x10fcf4;const _0x3afb10=this;this['disposeWithMe'](this[_0x37ca0c(0x281)][_0x37ca0c(0x3e3)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x2415b5){var _0x193576=_0x37ca0c,_0x488a66;if(_0x2415b5[_0x193576(0x182)]===_0x193576(0x4be)&&((_0x488a66=_0x2415b5['requestParams'])!=null&&_0x488a66['body'])){const {objectID:_0x1d2f8b,objectType:_0x2a3b53}=_0x2415b5[_0x193576(0x308)][_0x193576(0x46e)]||{};if(!_0x1d2f8b||_0x2a3b53===void 0x0)return!0x1;const _0x4338ec=_0x3afb10['_getAPIPrefixPath']()+'/'+_0x2a3b53+_0x193576(0x27f)+_0x1d2f8b+_0x193576(0x263);if(_0x2415b5['url']===_0x4338ec)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x34bccd){var _0x4f465e=_0x37ca0c,_0x930a5f;return(_0x930a5f=_0x34bccd[_0x4f465e(0x308)])==null?void 0x0:_0x930a5f['body'];},'mergeParamsToRequest'(_0x15c5f6,_0x24e555){var _0x4a5092=_0x37ca0c;const _0x4d8dcd=_0x3afb10['_getAPIPrefixPath']()+_0x4a5092(0x226),_0x40a394=_0x15c5f6[_0x4a5092(0x1f7)]((_0xcc7645,_0x3ebaf9)=>{var _0x1fe395=_0x4a5092;const {unitID:_0x20d40c,objectID:_0x16e176,objectType:_0x2dc881,actions:_0x3788cc}=_0x3ebaf9;return _0xcc7645[_0x20d40c]||(_0xcc7645[_0x20d40c]={}),_0xcc7645[_0x20d40c][_0x16e176]||(_0xcc7645[_0x20d40c][_0x16e176]={'objectID':_0x16e176,'objectType':_0x2dc881,'actions':[]}),_0xcc7645[_0x20d40c][_0x16e176][_0x1fe395(0x3fc)]['push'](..._0x3788cc),_0xcc7645;},{}),_0x57839a=[];for(const _0x593179 in _0x40a394)for(const _0x3c613a in _0x40a394[_0x593179]){const {actions:_0x2b1b52,objectType:_0x821f00}=_0x40a394[_0x593179][_0x3c613a],_0x38dcf5=[...new Set(_0x2b1b52)];_0x57839a[_0x4a5092(0x1b3)]({'unitID':_0x593179,'objectID':_0x3c613a,'objectType':_0x821f00,'actions':_0x38dcf5});}return new HTTPRequest(_0x4a5092(0x4be),_0x4d8dcd,{'headers':_0x24e555[_0x4a5092(0x481)],'withCredentials':_0x24e555[_0x4a5092(0x315)],'responseType':_0x24e555['responseType'],'body':{'requests':_0x57839a}});}},{'distributeResult'(_0x160f02,_0x2c3215){const {objectActions:_0x281147}=_0x160f02;return _0x2c3215['map'](_0x4cac82=>{var _0x3b160a=_0x1531;const {unitID:_0x249bdb,objectID:_0x447e93,actions:_0x68f50a}=_0x4cac82,_0x249a0c=_0x281147[_0x3b160a(0x2f9)](_0x46fe36=>_0x46fe36[_0x3b160a(0x436)]===_0x249bdb&&_0x46fe36[_0x3b160a(0x303)]===_0x447e93),_0x2e3867=_0x68f50a['map'](_0xf87155=>_0x249a0c==null?void 0x0:_0x249a0c['actions']['find'](_0x294343=>_0x294343[_0x3b160a(0x438)]===_0xf87155))[_0x3b160a(0x450)](_0x4627ea=>!!_0x4627ea);return{'config':_0x4cac82,'result':{'actions':_0x2e3867,'error':_0x160f02[_0x3b160a(0x2a0)]}};});}})}));}[_0x10fcf4(0x185)](){var _0x52c23b=_0x10fcf4,_0x1863cb,_0x560ff7;const _0x5b5176=this['_configService']['getConfig'](AUTHZ_URL_KEY),_0x5341b0=this[_0x52c23b(0x2bf)][_0x52c23b(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x560ff7=(_0x1863cb=_0x5341b0==null?void 0x0:_0x5341b0[_0x52c23b(0x477)])!=null?_0x1863cb:_0x5b5176)!=null?_0x560ff7:DEFAULT_AUTHZ_URL_KEY$1;}async[_0x10fcf4(0x2a5)](_0x38c469){var _0x36b5db=_0x10fcf4;const _0x167bbf=this[_0x36b5db(0x185)]()+'/'+_0x38c469[_0x36b5db(0x479)]+_0x36b5db(0x2d4);return(await this[_0x36b5db(0x281)][_0x36b5db(0x40d)](_0x167bbf,{'body':_0x38c469}))[_0x36b5db(0x46e)]['objectID']||'';}async[_0x10fcf4(0x274)](_0x2160a8){var _0x832532=_0x10fcf4;const _0x39a2e7=this['_getAPIPrefixPath']()+_0x832532(0x45f);return(await this[_0x832532(0x281)][_0x832532(0x40d)](_0x39a2e7,{'body':_0x2160a8}))[_0x832532(0x46e)]['objects'];}async[_0x10fcf4(0x1c5)](_0x168f2d){var _0x40d014=_0x10fcf4;const _0x12618f=this['_getAPIPrefixPath']()+'/'+_0x168f2d[_0x40d014(0x479)]+_0x40d014(0x27f)+_0x168f2d[_0x40d014(0x303)];await this[_0x40d014(0x281)][_0x40d014(0x35e)](_0x12618f,{'body':_0x168f2d});}async[_0x10fcf4(0x2d9)](_0x3a014b){var _0x57ea80=_0x10fcf4;const _0x34f49f=this[_0x57ea80(0x185)]()+'/'+_0x3a014b['objectType']+_0x57ea80(0x27f)+_0x3a014b['objectID']+_0x57ea80(0x263);return(await this[_0x57ea80(0x281)][_0x57ea80(0x40d)](_0x34f49f,{'body':_0x3a014b}))[_0x57ea80(0x46e)][_0x57ea80(0x3fc)];}async['batchAllowed'](_0x332c39){var _0x361b45=_0x10fcf4;const _0x5e8d33=this[_0x361b45(0x185)]()+_0x361b45(0x226);return(await this['_HTTPService'][_0x361b45(0x40d)](_0x5e8d33,{'body':{'requests':_0x332c39}}))[_0x361b45(0x46e)][_0x361b45(0x38b)];}async['listRoles'](_0xd36633){var _0x566a3d=_0x10fcf4;const _0x3efbef=this[_0x566a3d(0x185)]()+'/'+_0xd36633['objectType']+_0x566a3d(0x396),_0x1535a1=await this[_0x566a3d(0x281)][_0x566a3d(0x40d)](_0x3efbef,{'body':_0xd36633});return{'roles':_0x1535a1[_0x566a3d(0x46e)]['roles'],'actions':_0x1535a1[_0x566a3d(0x46e)][_0x566a3d(0x3fc)]};}async['deleteCollaborator'](_0x3383ed){var _0x422c83=_0x10fcf4;const _0x198d06=this[_0x422c83(0x185)]()+_0x422c83(0x3e1);await this[_0x422c83(0x281)][_0x422c83(0x2d5)](_0x198d06,{'params':{'collaboratorID':_0x3383ed['collaboratorID'],'objectID':_0x3383ed['objectID'],'unitID':_0x3383ed[_0x422c83(0x436)]}});}async[_0x10fcf4(0x2f8)](_0x4e8615){var _0x2402da=_0x10fcf4;const _0x2b10b0=this[_0x2402da(0x185)]()+_0x2402da(0x3e1);await this[_0x2402da(0x281)]['patch'](_0x2b10b0,{'body':_0x4e8615});}async[_0x10fcf4(0x43a)](_0x54ccf9){var _0x382218=_0x10fcf4;const _0x2b2ed1=this[_0x382218(0x185)]()+_0x382218(0x3e1);await this[_0x382218(0x281)]['post'](_0x2b2ed1,{'body':_0x54ccf9});}async['listCollaborators'](_0x266e0a){var _0xc0c66d=_0x10fcf4;const _0x1f0a05=this[_0xc0c66d(0x185)]()+_0xc0c66d(0x3e1);return(await this[_0xc0c66d(0x281)][_0xc0c66d(0x402)](_0x1f0a05,{'params':{'objectID':_0x266e0a[_0xc0c66d(0x303)],'unitID':_0x266e0a[_0xc0c66d(0x436)]}}))['body'][_0xc0c66d(0x390)];}async[_0x10fcf4(0x3bc)](_0x439063){var _0x218b31=_0x10fcf4;const _0x4c84aa=this[_0x218b31(0x185)]()+_0x218b31(0x3e1);await this[_0x218b31(0x281)]['put'](_0x4c84aa,{'body':_0x439063});}},__name(_a19,_0x10fcf4(0x34e)),_a19);AuthzIoHttpService=__decorateClass$8([__decorateParam$8(0x0,Inject(HTTPService)),__decorateParam$8(0x1,Inject(IConfigService))],AuthzIoHttpService);var commonjsGlobal=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function getDefaultExportFromCjs(_0x29c585){var _0x4c19eb=_0x10fcf4;return _0x29c585&&_0x29c585[_0x4c19eb(0x3aa)]&&Object[_0x4c19eb(0x3c5)][_0x4c19eb(0x2dd)]['call'](_0x29c585,'default')?_0x29c585[_0x4c19eb(0x43d)]:_0x29c585;}__name(getDefaultExportFromCjs,'getDefaultExportFromCjs');var aes$1={'exports':{}};function commonjsRequire(_0x5d5a4a){var _0x18c116=_0x10fcf4;throw new Error(_0x18c116(0x40a)+_0x5d5a4a+_0x18c116(0x38a));}__name(commonjsRequire,_0x10fcf4(0x4a7));var core$1={'exports':{}},core=core$1[_0x10fcf4(0x2be)],hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=0x1,function(_0x23550b,_0x1b0792){(function(_0x14e2d9,_0x369a05){var _0x51c5d0=_0x1531;_0x23550b[_0x51c5d0(0x2be)]=_0x369a05();}(core,function(){var _0x36b2c0=_0x36b2c0||function(_0x330153,_0x58de13){var _0x3c32bc=_0x1531,_0x1be176;if(typeof window<'u'&&window['crypto']&&(_0x1be176=window['crypto']),typeof self<'u'&&self['crypto']&&(_0x1be176=self[_0x3c32bc(0x22a)]),typeof globalThis<'u'&&globalThis['crypto']&&(_0x1be176=globalThis['crypto']),!_0x1be176&&typeof window<'u'&&window[_0x3c32bc(0x3db)]&&(_0x1be176=window['msCrypto']),!_0x1be176&&typeof commonjsGlobal<'u'&&commonjsGlobal[_0x3c32bc(0x22a)]&&(_0x1be176=commonjsGlobal['crypto']),!_0x1be176&&typeof commonjsRequire==_0x3c32bc(0x27a))try{_0x1be176=require('crypto');}catch{}var _0x53c2ca=__name(function(){var _0x3c7e7d=_0x3c32bc;if(_0x1be176){if(typeof _0x1be176[_0x3c7e7d(0x24b)]==_0x3c7e7d(0x27a))try{return _0x1be176[_0x3c7e7d(0x24b)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x1be176[_0x3c7e7d(0x1ac)]==_0x3c7e7d(0x27a))try{return _0x1be176[_0x3c7e7d(0x1ac)](0x4)[_0x3c7e7d(0x499)]();}catch{}}throw new Error(_0x3c7e7d(0x1ff));},_0x3c32bc(0x289)),_0x4e5dcc=Object[_0x3c32bc(0x2a5)]||(function(){function _0x4606a9(){}return __name(_0x4606a9,'F'),function(_0x2f0b0c){var _0x6bc80d=_0x1531,_0x2ec1b7;return _0x4606a9[_0x6bc80d(0x3c5)]=_0x2f0b0c,_0x2ec1b7=new _0x4606a9(),_0x4606a9[_0x6bc80d(0x3c5)]=null,_0x2ec1b7;};}()),_0x1a9034={},_0x1eda95=_0x1a9034[_0x3c32bc(0x199)]={},_0x3a4bc7=_0x1eda95[_0x3c32bc(0x364)]=(function(){var _0x2234fd=_0x3c32bc;return{'extend':__name(function(_0x2ce7a5){var _0x3d3906=_0x1531,_0x42f680=_0x4e5dcc(this);return _0x2ce7a5&&_0x42f680['mixIn'](_0x2ce7a5),(!_0x42f680['hasOwnProperty'](_0x3d3906(0x243))||this[_0x3d3906(0x243)]===_0x42f680['init'])&&(_0x42f680[_0x3d3906(0x243)]=function(){var _0x296cc6=_0x3d3906;_0x42f680[_0x296cc6(0x233)]['init'][_0x296cc6(0x418)](this,arguments);}),_0x42f680['init']['prototype']=_0x42f680,_0x42f680[_0x3d3906(0x233)]=this,_0x42f680;},_0x2234fd(0x469)),'create':__name(function(){var _0x533d93=_0x2234fd,_0x3d8e81=this[_0x533d93(0x469)]();return _0x3d8e81['init'][_0x533d93(0x418)](_0x3d8e81,arguments),_0x3d8e81;},'create'),'init':__name(function(){},_0x2234fd(0x243)),'mixIn':__name(function(_0x1d0e83){var _0x51ad85=_0x2234fd;for(var _0x58f30b in _0x1d0e83)_0x1d0e83[_0x51ad85(0x2dd)](_0x58f30b)&&(this[_0x58f30b]=_0x1d0e83[_0x58f30b]);_0x1d0e83[_0x51ad85(0x2dd)](_0x51ad85(0x279))&&(this[_0x51ad85(0x279)]=_0x1d0e83['toString']);},_0x2234fd(0x442)),'clone':__name(function(){var _0x42f1bc=_0x2234fd;return this[_0x42f1bc(0x243)]['prototype']['extend'](this);},_0x2234fd(0x24f))};}()),_0x5295b3=_0x1eda95[_0x3c32bc(0x1b5)]=_0x3a4bc7[_0x3c32bc(0x469)]({'init':__name(function(_0x38f89c,_0x1e8101){var _0x3b1a74=_0x3c32bc;_0x38f89c=this[_0x3b1a74(0x1d4)]=_0x38f89c||[],_0x1e8101!=_0x58de13?this['sigBytes']=_0x1e8101:this[_0x3b1a74(0x4a2)]=_0x38f89c['length']*0x4;},_0x3c32bc(0x243)),'toString':__name(function(_0x210814){var _0x629087=_0x3c32bc;return(_0x210814||_0x4a4c1f)[_0x629087(0x259)](this);},_0x3c32bc(0x279)),'concat':__name(function(_0x116d6e){var _0x27c7c2=_0x3c32bc,_0xd67d2b=this[_0x27c7c2(0x1d4)],_0xb933d1=_0x116d6e['words'],_0x5e5cd3=this[_0x27c7c2(0x4a2)],_0x42780d=_0x116d6e[_0x27c7c2(0x4a2)];if(this[_0x27c7c2(0x332)](),_0x5e5cd3%0x4)for(var _0x4b8e08=0x0;_0x4b8e08<_0x42780d;_0x4b8e08++){var _0x3a3b66=_0xb933d1[_0x4b8e08>>>0x2]>>>0x18-_0x4b8e08%0x4*0x8&0xff;_0xd67d2b[_0x5e5cd3+_0x4b8e08>>>0x2]|=_0x3a3b66<<0x18-(_0x5e5cd3+_0x4b8e08)%0x4*0x8;}else{for(var _0x3744b5=0x0;_0x3744b5<_0x42780d;_0x3744b5+=0x4)_0xd67d2b[_0x5e5cd3+_0x3744b5>>>0x2]=_0xb933d1[_0x3744b5>>>0x2];}return this[_0x27c7c2(0x4a2)]+=_0x42780d,this;},'concat'),'clamp':__name(function(){var _0x1b6f96=_0x3c32bc,_0x2acf28=this['words'],_0x3dc6d9=this[_0x1b6f96(0x4a2)];_0x2acf28[_0x3dc6d9>>>0x2]&=0xffffffff<<0x20-_0x3dc6d9%0x4*0x8,_0x2acf28['length']=_0x330153[_0x1b6f96(0x1e0)](_0x3dc6d9/0x4);},_0x3c32bc(0x332)),'clone':__name(function(){var _0x16bbdc=_0x3c32bc,_0x8d264a=_0x3a4bc7[_0x16bbdc(0x24f)][_0x16bbdc(0x21a)](this);return _0x8d264a['words']=this[_0x16bbdc(0x1d4)][_0x16bbdc(0x4a8)](0x0),_0x8d264a;},_0x3c32bc(0x24f)),'random':__name(function(_0x3b1881){var _0x536156=_0x3c32bc;for(var _0x480302=[],_0x11621e=0x0;_0x11621e<_0x3b1881;_0x11621e+=0x4)_0x480302[_0x536156(0x1b3)](_0x53c2ca());return new _0x5295b3['init'](_0x480302,_0x3b1881);},_0x3c32bc(0x47c))}),_0x48d9c1=_0x1a9034[_0x3c32bc(0x384)]={},_0x4a4c1f=_0x48d9c1[_0x3c32bc(0x18b)]={'stringify':__name(function(_0x169a55){var _0x2334f3=_0x3c32bc;for(var _0x56d3f9=_0x169a55[_0x2334f3(0x1d4)],_0x1a0df0=_0x169a55[_0x2334f3(0x4a2)],_0x1481bf=[],_0xcbb53c=0x0;_0xcbb53c<_0x1a0df0;_0xcbb53c++){var _0x72012c=_0x56d3f9[_0xcbb53c>>>0x2]>>>0x18-_0xcbb53c%0x4*0x8&0xff;_0x1481bf['push']((_0x72012c>>>0x4)[_0x2334f3(0x279)](0x10)),_0x1481bf[_0x2334f3(0x1b3)]((_0x72012c&0xf)[_0x2334f3(0x279)](0x10));}return _0x1481bf['join']('');},_0x3c32bc(0x259)),'parse':__name(function(_0x5a9bb9){var _0x38d675=_0x3c32bc;for(var _0x4ae042=_0x5a9bb9['length'],_0x414ed5=[],_0x460579=0x0;_0x460579<_0x4ae042;_0x460579+=0x2)_0x414ed5[_0x460579>>>0x3]|=parseInt(_0x5a9bb9[_0x38d675(0x33b)](_0x460579,0x2),0x10)<<0x18-_0x460579%0x8*0x4;return new _0x5295b3[(_0x38d675(0x243))](_0x414ed5,_0x4ae042/0x2);},'parse')},_0x544389=_0x48d9c1['Latin1']={'stringify':__name(function(_0x36565a){var _0x9c3a75=_0x3c32bc;for(var _0x57fc01=_0x36565a[_0x9c3a75(0x1d4)],_0x47dac5=_0x36565a[_0x9c3a75(0x4a2)],_0x3164c5=[],_0x291070=0x0;_0x291070<_0x47dac5;_0x291070++){var _0x896028=_0x57fc01[_0x291070>>>0x2]>>>0x18-_0x291070%0x4*0x8&0xff;_0x3164c5[_0x9c3a75(0x1b3)](String[_0x9c3a75(0x2cf)](_0x896028));}return _0x3164c5['join']('');},_0x3c32bc(0x259)),'parse':__name(function(_0x378f7f){var _0x7e9173=_0x3c32bc;for(var _0xfab591=_0x378f7f[_0x7e9173(0x20b)],_0x475735=[],_0x52d2ad=0x0;_0x52d2ad<_0xfab591;_0x52d2ad++)_0x475735[_0x52d2ad>>>0x2]|=(_0x378f7f['charCodeAt'](_0x52d2ad)&0xff)<<0x18-_0x52d2ad%0x4*0x8;return new _0x5295b3['init'](_0x475735,_0xfab591);},_0x3c32bc(0x361))},_0x5a3d21=_0x48d9c1[_0x3c32bc(0x2fc)]={'stringify':__name(function(_0x14278a){var _0x44f2f6=_0x3c32bc;try{return decodeURIComponent(escape(_0x544389[_0x44f2f6(0x259)](_0x14278a)));}catch{throw new Error(_0x44f2f6(0x27c));}},'stringify'),'parse':__name(function(_0x37d724){var _0x59e303=_0x3c32bc;return _0x544389[_0x59e303(0x361)](unescape(encodeURIComponent(_0x37d724)));},_0x3c32bc(0x361))},_0x1ad2d9=_0x1eda95[_0x3c32bc(0x278)]=_0x3a4bc7[_0x3c32bc(0x469)]({'reset':__name(function(){var _0x88f3bf=_0x3c32bc;this[_0x88f3bf(0x4bf)]=new _0x5295b3[(_0x88f3bf(0x243))](),this[_0x88f3bf(0x34d)]=0x0;},'reset'),'_append':__name(function(_0x27376c){var _0x482a85=_0x3c32bc;typeof _0x27376c==_0x482a85(0x3be)&&(_0x27376c=_0x5a3d21[_0x482a85(0x361)](_0x27376c)),this[_0x482a85(0x4bf)]['concat'](_0x27376c),this[_0x482a85(0x34d)]+=_0x27376c[_0x482a85(0x4a2)];},_0x3c32bc(0x3a4)),'_process':__name(function(_0x38760b){var _0x5ce237=_0x3c32bc,_0x3dbe5e,_0x32add2=this[_0x5ce237(0x4bf)],_0xd32130=_0x32add2[_0x5ce237(0x1d4)],_0x4847f5=_0x32add2[_0x5ce237(0x4a2)],_0x52bb58=this[_0x5ce237(0x3a6)],_0x129eeb=_0x52bb58*0x4,_0x2a6c94=_0x4847f5/_0x129eeb;_0x38760b?_0x2a6c94=_0x330153[_0x5ce237(0x1e0)](_0x2a6c94):_0x2a6c94=_0x330153[_0x5ce237(0x47e)]((_0x2a6c94|0x0)-this[_0x5ce237(0x30f)],0x0);var _0x1b44d2=_0x2a6c94*_0x52bb58,_0x55feec=_0x330153[_0x5ce237(0x467)](_0x1b44d2*0x4,_0x4847f5);if(_0x1b44d2){for(var _0x5238e6=0x0;_0x5238e6<_0x1b44d2;_0x5238e6+=_0x52bb58)this[_0x5ce237(0x446)](_0xd32130,_0x5238e6);_0x3dbe5e=_0xd32130['splice'](0x0,_0x1b44d2),_0x32add2[_0x5ce237(0x4a2)]-=_0x55feec;}return new _0x5295b3[(_0x5ce237(0x243))](_0x3dbe5e,_0x55feec);},_0x3c32bc(0x2ec)),'clone':__name(function(){var _0x386b31=_0x3c32bc,_0x2f851=_0x3a4bc7[_0x386b31(0x24f)][_0x386b31(0x21a)](this);return _0x2f851[_0x386b31(0x4bf)]=this['_data'][_0x386b31(0x24f)](),_0x2f851;},'clone'),'_minBufferSize':0x0});_0x1eda95[_0x3c32bc(0x1a5)]=_0x1ad2d9[_0x3c32bc(0x469)]({'cfg':_0x3a4bc7['extend'](),'init':__name(function(_0xbf0e67){var _0x18823c=_0x3c32bc;this[_0x18823c(0x3fe)]=this[_0x18823c(0x3fe)][_0x18823c(0x469)](_0xbf0e67),this['reset']();},_0x3c32bc(0x243)),'reset':__name(function(){var _0x2b98dd=_0x3c32bc;_0x1ad2d9[_0x2b98dd(0x398)][_0x2b98dd(0x21a)](this),this[_0x2b98dd(0x419)]();},'reset'),'update':__name(function(_0x2f66c4){var _0x3aff67=_0x3c32bc;return this['_append'](_0x2f66c4),this[_0x3aff67(0x2ec)](),this;},_0x3c32bc(0x1c5)),'finalize':__name(function(_0x2db0be){var _0x592a=_0x3c32bc;_0x2db0be&&this[_0x592a(0x3a4)](_0x2db0be);var _0x14b31e=this[_0x592a(0x3d6)]();return _0x14b31e;},'finalize'),'blockSize':0x10,'_createHelper':__name(function(_0x5beb2f){return function(_0x2363c9,_0x5e9a84){var _0x297159=_0x1531;return new _0x5beb2f[(_0x297159(0x243))](_0x5e9a84)[_0x297159(0x2fa)](_0x2363c9);};},_0x3c32bc(0x4b4)),'_createHmacHelper':__name(function(_0x2f7da5){return function(_0xe7f958,_0x440e8d){var _0x3ccaf5=_0x1531;return new _0x250439['HMAC'][(_0x3ccaf5(0x243))](_0x2f7da5,_0x440e8d)[_0x3ccaf5(0x2fa)](_0xe7f958);};},_0x3c32bc(0x3dd))});var _0x250439=_0x1a9034[_0x3c32bc(0x35a)]={};return _0x1a9034;}(Math);return _0x36b2c0;}));}(core$1)),core$1['exports'];}__name(requireCore,_0x10fcf4(0x183));var encBase64$1={'exports':{}},encBase64=encBase64$1[_0x10fcf4(0x2be)],hasRequiredEncBase64;function requireEncBase64(){var _0x2ef8fd=_0x10fcf4;return hasRequiredEncBase64||(hasRequiredEncBase64=0x1,function(_0x1af316,_0x30e2c4){(function(_0x5cfa8e,_0x2effa4){var _0xec8042=_0x1531;_0x1af316[_0xec8042(0x2be)]=_0x2effa4(requireCore());}(encBase64,function(_0x47d934){var _0x5e817c=_0x1531;return(function(){var _0x5a03d2=_0x1531,_0x40146d=_0x47d934,_0x58f43b=_0x40146d[_0x5a03d2(0x199)],_0x13875b=_0x58f43b[_0x5a03d2(0x1b5)],_0xa52383=_0x40146d[_0x5a03d2(0x384)];_0xa52383[_0x5a03d2(0x46b)]={'stringify':__name(function(_0x363011){var _0x4f8e6c=_0x5a03d2,_0x5b0154=_0x363011[_0x4f8e6c(0x1d4)],_0x229a42=_0x363011[_0x4f8e6c(0x4a2)],_0x132fcf=this['_map'];_0x363011[_0x4f8e6c(0x332)]();for(var _0x67a480=[],_0x5af252=0x0;_0x5af252<_0x229a42;_0x5af252+=0x3)for(var _0x3a5f0a=_0x5b0154[_0x5af252>>>0x2]>>>0x18-_0x5af252%0x4*0x8&0xff,_0x44534f=_0x5b0154[_0x5af252+0x1>>>0x2]>>>0x18-(_0x5af252+0x1)%0x4*0x8&0xff,_0x5ec4e1=_0x5b0154[_0x5af252+0x2>>>0x2]>>>0x18-(_0x5af252+0x2)%0x4*0x8&0xff,_0x14562e=_0x3a5f0a<<0x10|_0x44534f<<0x8|_0x5ec4e1,_0x47101e=0x0;_0x47101e<0x4&&_0x5af252+_0x47101e*0.75<_0x229a42;_0x47101e++)_0x67a480[_0x4f8e6c(0x1b3)](_0x132fcf[_0x4f8e6c(0x4c2)](_0x14562e>>>0x6*(0x3-_0x47101e)&0x3f));var _0xa780b6=_0x132fcf[_0x4f8e6c(0x4c2)](0x40);if(_0xa780b6){for(;_0x67a480['length']%0x4;)_0x67a480[_0x4f8e6c(0x1b3)](_0xa780b6);}return _0x67a480['join']('');},'stringify'),'parse':__name(function(_0x1b70ad){var _0x22431b=_0x5a03d2,_0x48a49d=_0x1b70ad['length'],_0x367116=this[_0x22431b(0x1c2)],_0xaa50a3=this[_0x22431b(0x342)];if(!_0xaa50a3){_0xaa50a3=this[_0x22431b(0x342)]=[];for(var _0x4da0e8=0x0;_0x4da0e8<_0x367116['length'];_0x4da0e8++)_0xaa50a3[_0x367116[_0x22431b(0x3ec)](_0x4da0e8)]=_0x4da0e8;}var _0x4a78ca=_0x367116['charAt'](0x40);if(_0x4a78ca){var _0x4abb60=_0x1b70ad['indexOf'](_0x4a78ca);_0x4abb60!==-0x1&&(_0x48a49d=_0x4abb60);}return _0x480770(_0x1b70ad,_0x48a49d,_0xaa50a3);},'parse'),'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x480770(_0x4b6924,_0x3b20d3,_0x4a7427){var _0x367d8a=_0x5a03d2;for(var _0x3a8cf2=[],_0x3e2752=0x0,_0xf38cb2=0x0;_0xf38cb2<_0x3b20d3;_0xf38cb2++)if(_0xf38cb2%0x4){var _0x440961=_0x4a7427[_0x4b6924[_0x367d8a(0x3ec)](_0xf38cb2-0x1)]<<_0xf38cb2%0x4*0x2,_0x2f8a2e=_0x4a7427[_0x4b6924[_0x367d8a(0x3ec)](_0xf38cb2)]>>>0x6-_0xf38cb2%0x4*0x2,_0x19d2d3=_0x440961|_0x2f8a2e;_0x3a8cf2[_0x3e2752>>>0x2]|=_0x19d2d3<<0x18-_0x3e2752%0x4*0x8,_0x3e2752++;}return _0x13875b[_0x367d8a(0x2a5)](_0x3a8cf2,_0x3e2752);}__name(_0x480770,'parseLoop');}()),_0x47d934['enc'][_0x5e817c(0x46b)];}));}(encBase64$1)),encBase64$1[_0x2ef8fd(0x2be)];}__name(requireEncBase64,_0x10fcf4(0x268));var md5$1={'exports':{}},md5=md5$1[_0x10fcf4(0x2be)],hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=0x1,function(_0x2c5e01,_0x44a1cc){(function(_0x47fce3,_0x1ff51c){var _0x3113cf=_0x1531;_0x2c5e01[_0x3113cf(0x2be)]=_0x1ff51c(requireCore());}(md5,function(_0x3cea65){var _0x3781d7=_0x1531;return function(_0x461900){var _0x4a656f=_0x1531,_0x1ca8af=_0x3cea65,_0x23a9db=_0x1ca8af[_0x4a656f(0x199)],_0x178f06=_0x23a9db['WordArray'],_0x2b152e=_0x23a9db['Hasher'],_0x16ed64=_0x1ca8af[_0x4a656f(0x35a)],_0x41c030=[];(function(){var _0xda716c=_0x4a656f;for(var _0x2e4481=0x0;_0x2e4481<0x40;_0x2e4481++)_0x41c030[_0x2e4481]=_0x461900[_0xda716c(0x3c0)](_0x461900[_0xda716c(0x2c4)](_0x2e4481+0x1))*0x100000000|0x0;}());var _0x411ed7=_0x16ed64[_0x4a656f(0x3f5)]=_0x2b152e[_0x4a656f(0x469)]({'_doReset':__name(function(){var _0x21ae68=_0x4a656f;this[_0x21ae68(0x20d)]=new _0x178f06[(_0x21ae68(0x243))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doReset'),'_doProcessBlock':__name(function(_0x1095cd,_0x42f215){var _0x1c9424=_0x4a656f;for(var _0x2987e5=0x0;_0x2987e5<0x10;_0x2987e5++){var _0x3c86d9=_0x42f215+_0x2987e5,_0x53a6fe=_0x1095cd[_0x3c86d9];_0x1095cd[_0x3c86d9]=(_0x53a6fe<<0x8|_0x53a6fe>>>0x18)&0xff00ff|(_0x53a6fe<<0x18|_0x53a6fe>>>0x8)&0xff00ff00;}var _0x11e89d=this['_hash'][_0x1c9424(0x1d4)],_0xce4f91=_0x1095cd[_0x42f215+0x0],_0x2c74e9=_0x1095cd[_0x42f215+0x1],_0x2994fb=_0x1095cd[_0x42f215+0x2],_0x3fe7b6=_0x1095cd[_0x42f215+0x3],_0x11aa84=_0x1095cd[_0x42f215+0x4],_0x2e7c01=_0x1095cd[_0x42f215+0x5],_0xacf00b=_0x1095cd[_0x42f215+0x6],_0x42c3a9=_0x1095cd[_0x42f215+0x7],_0x4de9c2=_0x1095cd[_0x42f215+0x8],_0x57010e=_0x1095cd[_0x42f215+0x9],_0x39b72b=_0x1095cd[_0x42f215+0xa],_0x1a2402=_0x1095cd[_0x42f215+0xb],_0x35928d=_0x1095cd[_0x42f215+0xc],_0x3c0bdd=_0x1095cd[_0x42f215+0xd],_0x2128dd=_0x1095cd[_0x42f215+0xe],_0x4fb9c5=_0x1095cd[_0x42f215+0xf],_0x464dc3=_0x11e89d[0x0],_0x4e8ccb=_0x11e89d[0x1],_0x2f85c6=_0x11e89d[0x2],_0xe9e19b=_0x11e89d[0x3];_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0xce4f91,0x7,_0x41c030[0x0]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2c74e9,0xc,_0x41c030[0x1]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2994fb,0x11,_0x41c030[0x2]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x3fe7b6,0x16,_0x41c030[0x3]),_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x11aa84,0x7,_0x41c030[0x4]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2e7c01,0xc,_0x41c030[0x5]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0xacf00b,0x11,_0x41c030[0x6]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x42c3a9,0x16,_0x41c030[0x7]),_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x4de9c2,0x7,_0x41c030[0x8]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x57010e,0xc,_0x41c030[0x9]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x39b72b,0x11,_0x41c030[0xa]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x1a2402,0x16,_0x41c030[0xb]),_0x464dc3=_0x3726b2(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x35928d,0x7,_0x41c030[0xc]),_0xe9e19b=_0x3726b2(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x3c0bdd,0xc,_0x41c030[0xd]),_0x2f85c6=_0x3726b2(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2128dd,0x11,_0x41c030[0xe]),_0x4e8ccb=_0x3726b2(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4fb9c5,0x16,_0x41c030[0xf]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2c74e9,0x5,_0x41c030[0x10]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xacf00b,0x9,_0x41c030[0x11]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x1a2402,0xe,_0x41c030[0x12]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0xce4f91,0x14,_0x41c030[0x13]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2e7c01,0x5,_0x41c030[0x14]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x39b72b,0x9,_0x41c030[0x15]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x4fb9c5,0xe,_0x41c030[0x16]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x11aa84,0x14,_0x41c030[0x17]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x57010e,0x5,_0x41c030[0x18]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2128dd,0x9,_0x41c030[0x19]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x3fe7b6,0xe,_0x41c030[0x1a]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4de9c2,0x14,_0x41c030[0x1b]),_0x464dc3=_0x5577e8(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x3c0bdd,0x5,_0x41c030[0x1c]),_0xe9e19b=_0x5577e8(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x2994fb,0x9,_0x41c030[0x1d]),_0x2f85c6=_0x5577e8(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x42c3a9,0xe,_0x41c030[0x1e]),_0x4e8ccb=_0x5577e8(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x35928d,0x14,_0x41c030[0x1f]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2e7c01,0x4,_0x41c030[0x20]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x4de9c2,0xb,_0x41c030[0x21]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x1a2402,0x10,_0x41c030[0x22]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2128dd,0x17,_0x41c030[0x23]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x2c74e9,0x4,_0x41c030[0x24]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x11aa84,0xb,_0x41c030[0x25]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x42c3a9,0x10,_0x41c030[0x26]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x39b72b,0x17,_0x41c030[0x27]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x3c0bdd,0x4,_0x41c030[0x28]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xce4f91,0xb,_0x41c030[0x29]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x3fe7b6,0x10,_0x41c030[0x2a]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0xacf00b,0x17,_0x41c030[0x2b]),_0x464dc3=_0x195366(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x57010e,0x4,_0x41c030[0x2c]),_0xe9e19b=_0x195366(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x35928d,0xb,_0x41c030[0x2d]),_0x2f85c6=_0x195366(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x4fb9c5,0x10,_0x41c030[0x2e]),_0x4e8ccb=_0x195366(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2994fb,0x17,_0x41c030[0x2f]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0xce4f91,0x6,_0x41c030[0x30]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x42c3a9,0xa,_0x41c030[0x31]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2128dd,0xf,_0x41c030[0x32]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2e7c01,0x15,_0x41c030[0x33]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x35928d,0x6,_0x41c030[0x34]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x3fe7b6,0xa,_0x41c030[0x35]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x39b72b,0xf,_0x41c030[0x36]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x2c74e9,0x15,_0x41c030[0x37]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x4de9c2,0x6,_0x41c030[0x38]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x4fb9c5,0xa,_0x41c030[0x39]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0xacf00b,0xf,_0x41c030[0x3a]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x3c0bdd,0x15,_0x41c030[0x3b]),_0x464dc3=_0x3a4730(_0x464dc3,_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x11aa84,0x6,_0x41c030[0x3c]),_0xe9e19b=_0x3a4730(_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2f85c6,_0x1a2402,0xa,_0x41c030[0x3d]),_0x2f85c6=_0x3a4730(_0x2f85c6,_0xe9e19b,_0x464dc3,_0x4e8ccb,_0x2994fb,0xf,_0x41c030[0x3e]),_0x4e8ccb=_0x3a4730(_0x4e8ccb,_0x2f85c6,_0xe9e19b,_0x464dc3,_0x57010e,0x15,_0x41c030[0x3f]),_0x11e89d[0x0]=_0x11e89d[0x0]+_0x464dc3|0x0,_0x11e89d[0x1]=_0x11e89d[0x1]+_0x4e8ccb|0x0,_0x11e89d[0x2]=_0x11e89d[0x2]+_0x2f85c6|0x0,_0x11e89d[0x3]=_0x11e89d[0x3]+_0xe9e19b|0x0;},_0x4a656f(0x446)),'_doFinalize':__name(function(){var _0x158245=_0x4a656f,_0x3e7484=this[_0x158245(0x4bf)],_0x581c5c=_0x3e7484[_0x158245(0x1d4)],_0xf4f1e2=this[_0x158245(0x34d)]*0x8,_0x9e7df4=_0x3e7484[_0x158245(0x4a2)]*0x8;_0x581c5c[_0x9e7df4>>>0x5]|=0x80<<0x18-_0x9e7df4%0x20;var _0xecfe86=_0x461900['floor'](_0xf4f1e2/0x100000000),_0x144718=_0xf4f1e2;_0x581c5c[(_0x9e7df4+0x40>>>0x9<<0x4)+0xf]=(_0xecfe86<<0x8|_0xecfe86>>>0x18)&0xff00ff|(_0xecfe86<<0x18|_0xecfe86>>>0x8)&0xff00ff00,_0x581c5c[(_0x9e7df4+0x40>>>0x9<<0x4)+0xe]=(_0x144718<<0x8|_0x144718>>>0x18)&0xff00ff|(_0x144718<<0x18|_0x144718>>>0x8)&0xff00ff00,_0x3e7484[_0x158245(0x4a2)]=(_0x581c5c['length']+0x1)*0x4,this[_0x158245(0x2ec)]();for(var _0x1e6607=this[_0x158245(0x20d)],_0x396f03=_0x1e6607[_0x158245(0x1d4)],_0x4e8395=0x0;_0x4e8395<0x4;_0x4e8395++){var _0x59f13a=_0x396f03[_0x4e8395];_0x396f03[_0x4e8395]=(_0x59f13a<<0x8|_0x59f13a>>>0x18)&0xff00ff|(_0x59f13a<<0x18|_0x59f13a>>>0x8)&0xff00ff00;}return _0x1e6607;},_0x4a656f(0x3d6)),'clone':__name(function(){var _0x5ceaf5=_0x4a656f,_0x506add=_0x2b152e[_0x5ceaf5(0x24f)][_0x5ceaf5(0x21a)](this);return _0x506add[_0x5ceaf5(0x20d)]=this['_hash'][_0x5ceaf5(0x24f)](),_0x506add;},_0x4a656f(0x24f))});function _0x3726b2(_0xe74d7f,_0x2c472b,_0x2dffe3,_0x2eeee1,_0xb3d8d8,_0x44d552,_0x4fef14){var _0x3d16da=_0xe74d7f+(_0x2c472b&_0x2dffe3|~_0x2c472b&_0x2eeee1)+_0xb3d8d8+_0x4fef14;return(_0x3d16da<<_0x44d552|_0x3d16da>>>0x20-_0x44d552)+_0x2c472b;}__name(_0x3726b2,'FF');function _0x5577e8(_0x38826d,_0x40bb1c,_0x1f96d2,_0x24378b,_0x2d53b3,_0x14cfcd,_0x4b9b74){var _0xd3b0fe=_0x38826d+(_0x40bb1c&_0x24378b|_0x1f96d2&~_0x24378b)+_0x2d53b3+_0x4b9b74;return(_0xd3b0fe<<_0x14cfcd|_0xd3b0fe>>>0x20-_0x14cfcd)+_0x40bb1c;}__name(_0x5577e8,'GG');function _0x195366(_0x12d2a3,_0x38077f,_0x3a6b65,_0x98ad8c,_0x2d1662,_0x1e577c,_0x48cdb1){var _0x400f21=_0x12d2a3+(_0x38077f^_0x3a6b65^_0x98ad8c)+_0x2d1662+_0x48cdb1;return(_0x400f21<<_0x1e577c|_0x400f21>>>0x20-_0x1e577c)+_0x38077f;}__name(_0x195366,'HH');function _0x3a4730(_0x163fb6,_0x5e0a4b,_0x3ee119,_0x25f933,_0xbe435c,_0x1363e1,_0x5a54ac){var _0x2e399e=_0x163fb6+(_0x3ee119^(_0x5e0a4b|~_0x25f933))+_0xbe435c+_0x5a54ac;return(_0x2e399e<<_0x1363e1|_0x2e399e>>>0x20-_0x1363e1)+_0x5e0a4b;}__name(_0x3a4730,'II'),_0x1ca8af[_0x4a656f(0x3f5)]=_0x2b152e[_0x4a656f(0x4b4)](_0x411ed7),_0x1ca8af[_0x4a656f(0x3fd)]=_0x2b152e['_createHmacHelper'](_0x411ed7);}(Math),_0x3cea65[_0x3781d7(0x3f5)];}));}(md5$1)),md5$1['exports'];}__name(requireMd5,_0x10fcf4(0x22b));var evpkdf$1={'exports':{}},sha1$1={'exports':{}},sha1=sha1$1['exports'],hasRequiredSha1;function requireSha1(){var _0x1b0112=_0x10fcf4;return hasRequiredSha1||(hasRequiredSha1=0x1,function(_0x47051f,_0x367aca){(function(_0x4813e6,_0x5aae88){var _0x339639=_0x1531;_0x47051f[_0x339639(0x2be)]=_0x5aae88(requireCore());}(sha1,function(_0x125cc7){var _0x311efa=_0x1531;return(function(){var _0x52b573=_0x1531,_0x54ae6b=_0x125cc7,_0x261f8c=_0x54ae6b[_0x52b573(0x199)],_0x195138=_0x261f8c['WordArray'],_0xd7b480=_0x261f8c[_0x52b573(0x1a5)],_0x1a6ec3=_0x54ae6b[_0x52b573(0x35a)],_0x99338=[],_0x33c109=_0x1a6ec3[_0x52b573(0x47f)]=_0xd7b480[_0x52b573(0x469)]({'_doReset':__name(function(){var _0x17bc2e=_0x52b573;this[_0x17bc2e(0x20d)]=new _0x195138[(_0x17bc2e(0x243))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},_0x52b573(0x419)),'_doProcessBlock':__name(function(_0x4ac6c7,_0x42761a){var _0x5dd78f=_0x52b573;for(var _0x2b0dbc=this[_0x5dd78f(0x20d)][_0x5dd78f(0x1d4)],_0x5b744f=_0x2b0dbc[0x0],_0x240296=_0x2b0dbc[0x1],_0x214318=_0x2b0dbc[0x2],_0xde0f91=_0x2b0dbc[0x3],_0x5ed204=_0x2b0dbc[0x4],_0xe2b16a=0x0;_0xe2b16a<0x50;_0xe2b16a++){if(_0xe2b16a<0x10)_0x99338[_0xe2b16a]=_0x4ac6c7[_0x42761a+_0xe2b16a]|0x0;else{var _0x4bb794=_0x99338[_0xe2b16a-0x3]^_0x99338[_0xe2b16a-0x8]^_0x99338[_0xe2b16a-0xe]^_0x99338[_0xe2b16a-0x10];_0x99338[_0xe2b16a]=_0x4bb794<<0x1|_0x4bb794>>>0x1f;}var _0x19d6f2=(_0x5b744f<<0x5|_0x5b744f>>>0x1b)+_0x5ed204+_0x99338[_0xe2b16a];_0xe2b16a<0x14?_0x19d6f2+=(_0x240296&_0x214318|~_0x240296&_0xde0f91)+0x5a827999:_0xe2b16a<0x28?_0x19d6f2+=(_0x240296^_0x214318^_0xde0f91)+0x6ed9eba1:_0xe2b16a<0x3c?_0x19d6f2+=(_0x240296&_0x214318|_0x240296&_0xde0f91|_0x214318&_0xde0f91)-0x70e44324:_0x19d6f2+=(_0x240296^_0x214318^_0xde0f91)-0x359d3e2a,_0x5ed204=_0xde0f91,_0xde0f91=_0x214318,_0x214318=_0x240296<<0x1e|_0x240296>>>0x2,_0x240296=_0x5b744f,_0x5b744f=_0x19d6f2;}_0x2b0dbc[0x0]=_0x2b0dbc[0x0]+_0x5b744f|0x0,_0x2b0dbc[0x1]=_0x2b0dbc[0x1]+_0x240296|0x0,_0x2b0dbc[0x2]=_0x2b0dbc[0x2]+_0x214318|0x0,_0x2b0dbc[0x3]=_0x2b0dbc[0x3]+_0xde0f91|0x0,_0x2b0dbc[0x4]=_0x2b0dbc[0x4]+_0x5ed204|0x0;},_0x52b573(0x446)),'_doFinalize':__name(function(){var _0x30740f=_0x52b573,_0x516a8a=this['_data'],_0x3220c4=_0x516a8a[_0x30740f(0x1d4)],_0x2b6935=this[_0x30740f(0x34d)]*0x8,_0x179fce=_0x516a8a[_0x30740f(0x4a2)]*0x8;return _0x3220c4[_0x179fce>>>0x5]|=0x80<<0x18-_0x179fce%0x20,_0x3220c4[(_0x179fce+0x40>>>0x9<<0x4)+0xe]=Math[_0x30740f(0x457)](_0x2b6935/0x100000000),_0x3220c4[(_0x179fce+0x40>>>0x9<<0x4)+0xf]=_0x2b6935,_0x516a8a[_0x30740f(0x4a2)]=_0x3220c4[_0x30740f(0x20b)]*0x4,this[_0x30740f(0x2ec)](),this[_0x30740f(0x20d)];},_0x52b573(0x3d6)),'clone':__name(function(){var _0x38f1a5=_0x52b573,_0x37ca30=_0xd7b480['clone']['call'](this);return _0x37ca30[_0x38f1a5(0x20d)]=this[_0x38f1a5(0x20d)][_0x38f1a5(0x24f)](),_0x37ca30;},_0x52b573(0x24f))});_0x54ae6b['SHA1']=_0xd7b480['_createHelper'](_0x33c109),_0x54ae6b['HmacSHA1']=_0xd7b480[_0x52b573(0x3dd)](_0x33c109);}()),_0x125cc7[_0x311efa(0x47f)];}));}(sha1$1)),sha1$1[_0x1b0112(0x2be)];}__name(requireSha1,'requireSha1');var hmac$1={'exports':{}},hmac=hmac$1[_0x10fcf4(0x2be)],hasRequiredHmac;function requireHmac(){var _0xbe940b=_0x10fcf4;return hasRequiredHmac||(hasRequiredHmac=0x1,function(_0x51ece4,_0x55e040){(function(_0x220de3,_0x1a603d){var _0x3dce3f=_0x1531;_0x51ece4[_0x3dce3f(0x2be)]=_0x1a603d(requireCore());}(hmac,function(_0x1ab37d){(function(){var _0x5296bc=_0x1531,_0x3b7fd3=_0x1ab37d,_0xf88e51=_0x3b7fd3[_0x5296bc(0x199)],_0x50a005=_0xf88e51[_0x5296bc(0x364)],_0x16b2c8=_0x3b7fd3[_0x5296bc(0x384)],_0x23784d=_0x16b2c8['Utf8'],_0x3402a8=_0x3b7fd3['algo'];_0x3402a8['HMAC']=_0x50a005[_0x5296bc(0x469)]({'init':__name(function(_0x51fae0,_0x428ed0){var _0x3d8ef9=_0x5296bc;_0x51fae0=this[_0x3d8ef9(0x4bb)]=new _0x51fae0['init'](),typeof _0x428ed0==_0x3d8ef9(0x3be)&&(_0x428ed0=_0x23784d[_0x3d8ef9(0x361)](_0x428ed0));var _0x2e37c1=_0x51fae0['blockSize'],_0x4a316e=_0x2e37c1*0x4;_0x428ed0[_0x3d8ef9(0x4a2)]>_0x4a316e&&(_0x428ed0=_0x51fae0[_0x3d8ef9(0x2fa)](_0x428ed0)),_0x428ed0[_0x3d8ef9(0x332)]();for(var _0x1b08db=this[_0x3d8ef9(0x3ca)]=_0x428ed0[_0x3d8ef9(0x24f)](),_0x48ddeb=this['_iKey']=_0x428ed0[_0x3d8ef9(0x24f)](),_0xb9604b=_0x1b08db[_0x3d8ef9(0x1d4)],_0x1f1bbf=_0x48ddeb[_0x3d8ef9(0x1d4)],_0x212993=0x0;_0x212993<_0x2e37c1;_0x212993++)_0xb9604b[_0x212993]^=0x5c5c5c5c,_0x1f1bbf[_0x212993]^=0x36363636;_0x1b08db[_0x3d8ef9(0x4a2)]=_0x48ddeb[_0x3d8ef9(0x4a2)]=_0x4a316e,this[_0x3d8ef9(0x398)]();},_0x5296bc(0x243)),'reset':__name(function(){var _0x50d314=_0x5296bc,_0x238daa=this[_0x50d314(0x4bb)];_0x238daa[_0x50d314(0x398)](),_0x238daa[_0x50d314(0x1c5)](this['_iKey']);},_0x5296bc(0x398)),'update':__name(function(_0x13b8a2){var _0x3373c7=_0x5296bc;return this[_0x3373c7(0x4bb)][_0x3373c7(0x1c5)](_0x13b8a2),this;},_0x5296bc(0x1c5)),'finalize':__name(function(_0x1a098){var _0x51bb9e=_0x5296bc,_0x3aa440=this['_hasher'],_0x2df9a1=_0x3aa440[_0x51bb9e(0x2fa)](_0x1a098);_0x3aa440[_0x51bb9e(0x398)]();var _0x27a875=_0x3aa440['finalize'](this[_0x51bb9e(0x3ca)][_0x51bb9e(0x24f)]()['concat'](_0x2df9a1));return _0x27a875;},'finalize')});}());}));}(hmac$1)),hmac$1[_0xbe940b(0x2be)];}__name(requireHmac,_0x10fcf4(0x46c));var evpkdf=evpkdf$1[_0x10fcf4(0x2be)],hasRequiredEvpkdf;function requireEvpkdf(){var _0x26a219=_0x10fcf4;return hasRequiredEvpkdf||(hasRequiredEvpkdf=0x1,function(_0x4f21da,_0x7841f6){(function(_0x87ef17,_0x7ff1b5,_0xea1aab){var _0x11111c=_0x1531;_0x4f21da[_0x11111c(0x2be)]=_0x7ff1b5(requireCore(),requireSha1(),requireHmac());}(evpkdf,function(_0x10c8f5){return(function(){var _0x1d6ff3=_0x1531,_0x5818f6=_0x10c8f5,_0x41e033=_0x5818f6[_0x1d6ff3(0x199)],_0x434b15=_0x41e033[_0x1d6ff3(0x364)],_0xc6b106=_0x41e033[_0x1d6ff3(0x1b5)],_0x10596a=_0x5818f6[_0x1d6ff3(0x35a)],_0x5ce800=_0x10596a[_0x1d6ff3(0x3f5)],_0x5cc6a4=_0x10596a[_0x1d6ff3(0x380)]=_0x434b15[_0x1d6ff3(0x469)]({'cfg':_0x434b15['extend']({'keySize':0x80/0x20,'hasher':_0x5ce800,'iterations':0x1}),'init':__name(function(_0x185ca9){var _0x2b44c8=_0x1d6ff3;this[_0x2b44c8(0x3fe)]=this['cfg'][_0x2b44c8(0x469)](_0x185ca9);},_0x1d6ff3(0x243)),'compute':__name(function(_0x9c2c0b,_0x36688e){var _0x28ff0a=_0x1d6ff3;for(var _0x1a8671,_0x123eaf=this[_0x28ff0a(0x3fe)],_0x24f027=_0x123eaf[_0x28ff0a(0x34b)][_0x28ff0a(0x2a5)](),_0x1041a2=_0xc6b106['create'](),_0x4e1421=_0x1041a2[_0x28ff0a(0x1d4)],_0x262258=_0x123eaf[_0x28ff0a(0x22e)],_0x4497f9=_0x123eaf['iterations'];_0x4e1421[_0x28ff0a(0x20b)]<_0x262258;){_0x1a8671&&_0x24f027[_0x28ff0a(0x1c5)](_0x1a8671),_0x1a8671=_0x24f027[_0x28ff0a(0x1c5)](_0x9c2c0b)[_0x28ff0a(0x2fa)](_0x36688e),_0x24f027[_0x28ff0a(0x398)]();for(var _0x209b06=0x1;_0x209b06<_0x4497f9;_0x209b06++)_0x1a8671=_0x24f027['finalize'](_0x1a8671),_0x24f027[_0x28ff0a(0x398)]();_0x1041a2[_0x28ff0a(0x20c)](_0x1a8671);}return _0x1041a2[_0x28ff0a(0x4a2)]=_0x262258*0x4,_0x1041a2;},_0x1d6ff3(0x2db))});_0x5818f6[_0x1d6ff3(0x380)]=function(_0x5bac2e,_0x59863a,_0x3c09a9){var _0x1c4426=_0x1d6ff3;return _0x5cc6a4['create'](_0x3c09a9)[_0x1c4426(0x2db)](_0x5bac2e,_0x59863a);};}()),_0x10c8f5['EvpKDF'];}));}(evpkdf$1)),evpkdf$1[_0x26a219(0x2be)];}__name(requireEvpkdf,_0x10fcf4(0x2ae));var cipherCore$1={'exports':{}},cipherCore=cipherCore$1[_0x10fcf4(0x2be)],hasRequiredCipherCore;function requireCipherCore(){var _0x500ca0=_0x10fcf4;return hasRequiredCipherCore||(hasRequiredCipherCore=0x1,function(_0x584baa,_0x579c70){(function(_0x121525,_0x320743,_0x1851f6){_0x584baa['exports']=_0x320743(requireCore(),requireEvpkdf());}(cipherCore,function(_0x2b1efa){var _0x5d3975=_0x1531;_0x2b1efa[_0x5d3975(0x199)][_0x5d3975(0x307)]||function(_0x115d9b){var _0x5696fc=_0x5d3975,_0x1795fa=_0x2b1efa,_0x3224d3=_0x1795fa['lib'],_0x391df4=_0x3224d3[_0x5696fc(0x364)],_0x143fd8=_0x3224d3[_0x5696fc(0x1b5)],_0x8be957=_0x3224d3['BufferedBlockAlgorithm'],_0x2ee0b4=_0x1795fa[_0x5696fc(0x384)];_0x2ee0b4['Utf8'];var _0x12dbe8=_0x2ee0b4['Base64'],_0x2e54be=_0x1795fa['algo'],_0x37b137=_0x2e54be[_0x5696fc(0x380)],_0x4e6ca0=_0x3224d3[_0x5696fc(0x307)]=_0x8be957[_0x5696fc(0x469)]({'cfg':_0x391df4[_0x5696fc(0x469)](),'createEncryptor':__name(function(_0x4c6312,_0x44fcdd){var _0x17ab0a=_0x5696fc;return this['create'](this[_0x17ab0a(0x2ca)],_0x4c6312,_0x44fcdd);},'createEncryptor'),'createDecryptor':__name(function(_0x92e2c5,_0xff78fa){var _0x450c80=_0x5696fc;return this[_0x450c80(0x2a5)](this['_DEC_XFORM_MODE'],_0x92e2c5,_0xff78fa);},_0x5696fc(0x4a4)),'init':__name(function(_0x938a11,_0x25eeba,_0x4a059d){var _0x507e50=_0x5696fc;this['cfg']=this[_0x507e50(0x3fe)][_0x507e50(0x469)](_0x4a059d),this['_xformMode']=_0x938a11,this[_0x507e50(0x3e7)]=_0x25eeba,this[_0x507e50(0x398)]();},'init'),'reset':__name(function(){var _0x2d8607=_0x5696fc;_0x8be957[_0x2d8607(0x398)][_0x2d8607(0x21a)](this),this[_0x2d8607(0x419)]();},_0x5696fc(0x398)),'process':__name(function(_0x2d8dfc){var _0x93a148=_0x5696fc;return this[_0x93a148(0x3a4)](_0x2d8dfc),this[_0x93a148(0x2ec)]();},_0x5696fc(0x26c)),'finalize':__name(function(_0x3209a3){var _0x5704a9=_0x5696fc;_0x3209a3&&this['_append'](_0x3209a3);var _0x2b6d6c=this[_0x5704a9(0x3d6)]();return _0x2b6d6c;},_0x5696fc(0x2fa)),'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x3e7285(_0xc6de75){var _0x8405c8=_0x1531;return typeof _0xc6de75==_0x8405c8(0x3be)?_0x5ad5e1:_0x5325d9;}return __name(_0x3e7285,'selectCipherStrategy'),function(_0x342b6b){var _0x4be95f=_0x1531;return{'encrypt':__name(function(_0x34d63d,_0x550ceb,_0x465782){var _0x20545e=_0x1531;return _0x3e7285(_0x550ceb)[_0x20545e(0x2b6)](_0x342b6b,_0x34d63d,_0x550ceb,_0x465782);},_0x4be95f(0x2b6)),'decrypt':__name(function(_0x418beb,_0xdca3e3,_0x2676fc){var _0x5c5832=_0x4be95f;return _0x3e7285(_0xdca3e3)[_0x5c5832(0x4a3)](_0x342b6b,_0x418beb,_0xdca3e3,_0x2676fc);},'decrypt')};};}())});_0x3224d3[_0x5696fc(0x2e8)]=_0x4e6ca0[_0x5696fc(0x469)]({'_doFinalize':__name(function(){var _0x31c811=this['_process'](!0x0);return _0x31c811;},'_doFinalize'),'blockSize':0x1});var _0x350970=_0x1795fa['mode']={},_0x17946c=_0x3224d3['BlockCipherMode']=_0x391df4['extend']({'createEncryptor':__name(function(_0x28ec11,_0x3ffd78){var _0x1e90fd=_0x5696fc;return this[_0x1e90fd(0x2c9)][_0x1e90fd(0x2a5)](_0x28ec11,_0x3ffd78);},_0x5696fc(0x2c6)),'createDecryptor':__name(function(_0x57814e,_0x227b16){var _0x3e4abc=_0x5696fc;return this['Decryptor'][_0x3e4abc(0x2a5)](_0x57814e,_0x227b16);},_0x5696fc(0x4a4)),'init':__name(function(_0x42fa89,_0x1abcd8){this['_cipher']=_0x42fa89,this['_iv']=_0x1abcd8;},'init')}),_0x4b2f29=_0x350970['CBC']=(function(){var _0x1a5814=_0x5696fc,_0x4f1774=_0x17946c['extend']();_0x4f1774[_0x1a5814(0x2c9)]=_0x4f1774['extend']({'processBlock':__name(function(_0x45729b,_0x1e65cf){var _0x5b97af=_0x1a5814,_0x54cdef=this[_0x5b97af(0x350)],_0x12c58a=_0x54cdef[_0x5b97af(0x3a6)];_0x1ce85f['call'](this,_0x45729b,_0x1e65cf,_0x12c58a),_0x54cdef[_0x5b97af(0x344)](_0x45729b,_0x1e65cf),this['_prevBlock']=_0x45729b[_0x5b97af(0x4a8)](_0x1e65cf,_0x1e65cf+_0x12c58a);},_0x1a5814(0x35d))}),_0x4f1774[_0x1a5814(0x295)]=_0x4f1774[_0x1a5814(0x469)]({'processBlock':__name(function(_0xcce1dd,_0x46bee8){var _0x5a86b7=_0x1a5814,_0x264055=this[_0x5a86b7(0x350)],_0x44dcab=_0x264055[_0x5a86b7(0x3a6)],_0x5787bd=_0xcce1dd['slice'](_0x46bee8,_0x46bee8+_0x44dcab);_0x264055[_0x5a86b7(0x250)](_0xcce1dd,_0x46bee8),_0x1ce85f['call'](this,_0xcce1dd,_0x46bee8,_0x44dcab),this[_0x5a86b7(0x3c9)]=_0x5787bd;},_0x1a5814(0x35d))});function _0x1ce85f(_0x5af7b6,_0x48fd53,_0x1787a2){var _0x4ea255=_0x1a5814,_0x5b33eb,_0x35fdf4=this[_0x4ea255(0x1e7)];_0x35fdf4?(_0x5b33eb=_0x35fdf4,this['_iv']=_0x115d9b):_0x5b33eb=this[_0x4ea255(0x3c9)];for(var _0x270cb3=0x0;_0x270cb3<_0x1787a2;_0x270cb3++)_0x5af7b6[_0x48fd53+_0x270cb3]^=_0x5b33eb[_0x270cb3];}return __name(_0x1ce85f,_0x1a5814(0x3e2)),_0x4f1774;}()),_0x43166b=_0x1795fa[_0x5696fc(0x1e4)]={},_0x15c1bf=_0x43166b['Pkcs7']={'pad':__name(function(_0x106250,_0x28ac11){var _0x4359e0=_0x5696fc;for(var _0x5a1fab=_0x28ac11*0x4,_0x51b1fa=_0x5a1fab-_0x106250[_0x4359e0(0x4a2)]%_0x5a1fab,_0xc58660=_0x51b1fa<<0x18|_0x51b1fa<<0x10|_0x51b1fa<<0x8|_0x51b1fa,_0x437585=[],_0x570254=0x0;_0x570254<_0x51b1fa;_0x570254+=0x4)_0x437585[_0x4359e0(0x1b3)](_0xc58660);var _0x4482ca=_0x143fd8[_0x4359e0(0x2a5)](_0x437585,_0x51b1fa);_0x106250[_0x4359e0(0x20c)](_0x4482ca);},_0x5696fc(0x1e4)),'unpad':__name(function(_0x205bc4){var _0x13a372=_0x5696fc,_0x55bd03=_0x205bc4[_0x13a372(0x1d4)][_0x205bc4['sigBytes']-0x1>>>0x2]&0xff;_0x205bc4[_0x13a372(0x4a2)]-=_0x55bd03;},_0x5696fc(0x238))};_0x3224d3['BlockCipher']=_0x4e6ca0[_0x5696fc(0x469)]({'cfg':_0x4e6ca0[_0x5696fc(0x3fe)]['extend']({'mode':_0x4b2f29,'padding':_0x15c1bf}),'reset':__name(function(){var _0x3710c4=_0x5696fc,_0x4eaf5d;_0x4e6ca0['reset'][_0x3710c4(0x21a)](this);var _0x3972fe=this['cfg'],_0x9c03cd=_0x3972fe['iv'],_0x3c392e=_0x3972fe[_0x3710c4(0x220)];this['_xformMode']==this[_0x3710c4(0x2ca)]?_0x4eaf5d=_0x3c392e[_0x3710c4(0x2c6)]:(_0x4eaf5d=_0x3c392e[_0x3710c4(0x4a4)],this[_0x3710c4(0x30f)]=0x1),this['_mode']&&this[_0x3710c4(0x3c7)][_0x3710c4(0x4a1)]==_0x4eaf5d?this[_0x3710c4(0x3c7)]['init'](this,_0x9c03cd&&_0x9c03cd[_0x3710c4(0x1d4)]):(this['_mode']=_0x4eaf5d['call'](_0x3c392e,this,_0x9c03cd&&_0x9c03cd[_0x3710c4(0x1d4)]),this['_mode'][_0x3710c4(0x4a1)]=_0x4eaf5d);},_0x5696fc(0x398)),'_doProcessBlock':__name(function(_0x5a21c7,_0x194855){var _0x567f17=_0x5696fc;this[_0x567f17(0x3c7)][_0x567f17(0x35d)](_0x5a21c7,_0x194855);},_0x5696fc(0x446)),'_doFinalize':__name(function(){var _0x382b09=_0x5696fc,_0x2c52ec,_0x1c8c06=this[_0x382b09(0x3fe)]['padding'];return this['_xformMode']==this[_0x382b09(0x2ca)]?(_0x1c8c06[_0x382b09(0x1e4)](this[_0x382b09(0x4bf)],this[_0x382b09(0x3a6)]),_0x2c52ec=this['_process'](!0x0)):(_0x2c52ec=this[_0x382b09(0x2ec)](!0x0),_0x1c8c06[_0x382b09(0x238)](_0x2c52ec)),_0x2c52ec;},_0x5696fc(0x3d6)),'blockSize':0x80/0x20});var _0x4b8d7e=_0x3224d3[_0x5696fc(0x2e5)]=_0x391df4[_0x5696fc(0x469)]({'init':__name(function(_0x1bd79d){this['mixIn'](_0x1bd79d);},_0x5696fc(0x243)),'toString':__name(function(_0x2a4a68){var _0xc4cbeb=_0x5696fc;return(_0x2a4a68||this[_0xc4cbeb(0x3b9)])[_0xc4cbeb(0x259)](this);},_0x5696fc(0x279))}),_0xf8e723=_0x1795fa['format']={},_0x24fd3f=_0xf8e723[_0x5696fc(0x1c3)]={'stringify':__name(function(_0x1a6c49){var _0x5240e1=_0x5696fc,_0x1447c6,_0x5958fe=_0x1a6c49[_0x5240e1(0x190)],_0xb7c7bb=_0x1a6c49['salt'];return _0xb7c7bb?_0x1447c6=_0x143fd8['create']([0x53616c74,0x65645f5f])[_0x5240e1(0x20c)](_0xb7c7bb)[_0x5240e1(0x20c)](_0x5958fe):_0x1447c6=_0x5958fe,_0x1447c6['toString'](_0x12dbe8);},_0x5696fc(0x259)),'parse':__name(function(_0x1f7d00){var _0x399a46=_0x5696fc,_0x3d1710,_0x20fe54=_0x12dbe8[_0x399a46(0x361)](_0x1f7d00),_0x262159=_0x20fe54[_0x399a46(0x1d4)];return _0x262159[0x0]==0x53616c74&&_0x262159[0x1]==0x65645f5f&&(_0x3d1710=_0x143fd8['create'](_0x262159[_0x399a46(0x4a8)](0x2,0x4)),_0x262159[_0x399a46(0x3e6)](0x0,0x4),_0x20fe54[_0x399a46(0x4a2)]-=0x10),_0x4b8d7e[_0x399a46(0x2a5)]({'ciphertext':_0x20fe54,'salt':_0x3d1710});},_0x5696fc(0x361))},_0x5325d9=_0x3224d3[_0x5696fc(0x3d0)]=_0x391df4['extend']({'cfg':_0x391df4[_0x5696fc(0x469)]({'format':_0x24fd3f}),'encrypt':__name(function(_0x43c9e2,_0x5df323,_0x34c310,_0x34fd60){var _0x4597ee=_0x5696fc;_0x34fd60=this['cfg'][_0x4597ee(0x469)](_0x34fd60);var _0x3625b4=_0x43c9e2[_0x4597ee(0x2c6)](_0x34c310,_0x34fd60),_0x5b371c=_0x3625b4[_0x4597ee(0x2fa)](_0x5df323),_0xc2eaa0=_0x3625b4[_0x4597ee(0x3fe)];return _0x4b8d7e[_0x4597ee(0x2a5)]({'ciphertext':_0x5b371c,'key':_0x34c310,'iv':_0xc2eaa0['iv'],'algorithm':_0x43c9e2,'mode':_0xc2eaa0['mode'],'padding':_0xc2eaa0[_0x4597ee(0x49a)],'blockSize':_0x43c9e2[_0x4597ee(0x3a6)],'formatter':_0x34fd60['format']});},_0x5696fc(0x2b6)),'decrypt':__name(function(_0x27e516,_0xbed386,_0x4f5e37,_0x4ffc13){var _0xe082db=_0x5696fc;_0x4ffc13=this[_0xe082db(0x3fe)]['extend'](_0x4ffc13),_0xbed386=this[_0xe082db(0x476)](_0xbed386,_0x4ffc13[_0xe082db(0x232)]);var _0x4e47b7=_0x27e516[_0xe082db(0x4a4)](_0x4f5e37,_0x4ffc13)['finalize'](_0xbed386[_0xe082db(0x190)]);return _0x4e47b7;},_0x5696fc(0x4a3)),'_parse':__name(function(_0x287929,_0x3028d6){var _0x31676=_0x5696fc;return typeof _0x287929==_0x31676(0x3be)?_0x3028d6['parse'](_0x287929,this):_0x287929;},_0x5696fc(0x476))}),_0x55b468=_0x1795fa[_0x5696fc(0x490)]={},_0x8e5e4e=_0x55b468[_0x5696fc(0x1c3)]={'execute':__name(function(_0x347aab,_0x2bf7cc,_0x33109c,_0x2099de,_0x177402){var _0x57cf81=_0x5696fc;if(_0x2099de||(_0x2099de=_0x143fd8[_0x57cf81(0x47c)](0x40/0x8)),_0x177402)var _0x37bd05=_0x37b137[_0x57cf81(0x2a5)]({'keySize':_0x2bf7cc+_0x33109c,'hasher':_0x177402})[_0x57cf81(0x2db)](_0x347aab,_0x2099de);else var _0x37bd05=_0x37b137['create']({'keySize':_0x2bf7cc+_0x33109c})['compute'](_0x347aab,_0x2099de);var _0x138047=_0x143fd8[_0x57cf81(0x2a5)](_0x37bd05['words'][_0x57cf81(0x4a8)](_0x2bf7cc),_0x33109c*0x4);return _0x37bd05[_0x57cf81(0x4a2)]=_0x2bf7cc*0x4,_0x4b8d7e['create']({'key':_0x37bd05,'iv':_0x138047,'salt':_0x2099de});},_0x5696fc(0x1fe))},_0x5ad5e1=_0x3224d3[_0x5696fc(0x3de)]=_0x5325d9[_0x5696fc(0x469)]({'cfg':_0x5325d9[_0x5696fc(0x3fe)][_0x5696fc(0x469)]({'kdf':_0x8e5e4e}),'encrypt':__name(function(_0x429c1f,_0x4d1b1e,_0x203cfb,_0x3549a3){var _0x2fa6e1=_0x5696fc;_0x3549a3=this[_0x2fa6e1(0x3fe)]['extend'](_0x3549a3);var _0x3e17df=_0x3549a3[_0x2fa6e1(0x490)][_0x2fa6e1(0x1fe)](_0x203cfb,_0x429c1f[_0x2fa6e1(0x22e)],_0x429c1f[_0x2fa6e1(0x4bc)],_0x3549a3[_0x2fa6e1(0x1c8)],_0x3549a3[_0x2fa6e1(0x34b)]);_0x3549a3['iv']=_0x3e17df['iv'];var _0x3cc48e=_0x5325d9[_0x2fa6e1(0x2b6)][_0x2fa6e1(0x21a)](this,_0x429c1f,_0x4d1b1e,_0x3e17df['key'],_0x3549a3);return _0x3cc48e[_0x2fa6e1(0x442)](_0x3e17df),_0x3cc48e;},'encrypt'),'decrypt':__name(function(_0x1a36f4,_0x106a08,_0x2f3e96,_0xd7568c){var _0xba31f7=_0x5696fc;_0xd7568c=this[_0xba31f7(0x3fe)][_0xba31f7(0x469)](_0xd7568c),_0x106a08=this[_0xba31f7(0x476)](_0x106a08,_0xd7568c[_0xba31f7(0x232)]);var _0x3639a0=_0xd7568c[_0xba31f7(0x490)][_0xba31f7(0x1fe)](_0x2f3e96,_0x1a36f4[_0xba31f7(0x22e)],_0x1a36f4['ivSize'],_0x106a08['salt'],_0xd7568c[_0xba31f7(0x34b)]);_0xd7568c['iv']=_0x3639a0['iv'];var _0xeeaa69=_0x5325d9[_0xba31f7(0x4a3)][_0xba31f7(0x21a)](this,_0x1a36f4,_0x106a08,_0x3639a0[_0xba31f7(0x387)],_0xd7568c);return _0xeeaa69;},_0x5696fc(0x4a3))});}();}));}(cipherCore$1)),cipherCore$1[_0x500ca0(0x2be)];}__name(requireCipherCore,_0x10fcf4(0x449));var aes=aes$1[_0x10fcf4(0x2be)],hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=0x1,function(_0x52a743,_0x2ad26e){(function(_0x36905d,_0x437c06,_0x3d2765){_0x52a743['exports']=_0x437c06(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore());}(aes,function(_0x2c22d1){var _0x2d3e5f=_0x1531;return(function(){var _0x500e4d=_0x1531,_0x5e1f3d=_0x2c22d1,_0x256529=_0x5e1f3d[_0x500e4d(0x199)],_0x2758f8=_0x256529[_0x500e4d(0x462)],_0x47430d=_0x5e1f3d[_0x500e4d(0x35a)],_0x2283d3=[],_0x2be33c=[],_0x1317d5=[],_0x46e0ed=[],_0x537043=[],_0x5b9774=[],_0x3bdf59=[],_0x13ee67=[],_0x3a731c=[],_0x5b96ed=[];(function(){for(var _0x2a15ae=[],_0xa9f0c4=0x0;_0xa9f0c4<0x100;_0xa9f0c4++)_0xa9f0c4<0x80?_0x2a15ae[_0xa9f0c4]=_0xa9f0c4<<0x1:_0x2a15ae[_0xa9f0c4]=_0xa9f0c4<<0x1^0x11b;for(var _0x3af891=0x0,_0x4a86d9=0x0,_0xa9f0c4=0x0;_0xa9f0c4<0x100;_0xa9f0c4++){var _0x5c5def=_0x4a86d9^_0x4a86d9<<0x1^_0x4a86d9<<0x2^_0x4a86d9<<0x3^_0x4a86d9<<0x4;_0x5c5def=_0x5c5def>>>0x8^_0x5c5def&0xff^0x63,_0x2283d3[_0x3af891]=_0x5c5def,_0x2be33c[_0x5c5def]=_0x3af891;var _0x48cb5e=_0x2a15ae[_0x3af891],_0x40afce=_0x2a15ae[_0x48cb5e],_0x358d14=_0x2a15ae[_0x40afce],_0x326e57=_0x2a15ae[_0x5c5def]*0x101^_0x5c5def*0x1010100;_0x1317d5[_0x3af891]=_0x326e57<<0x18|_0x326e57>>>0x8,_0x46e0ed[_0x3af891]=_0x326e57<<0x10|_0x326e57>>>0x10,_0x537043[_0x3af891]=_0x326e57<<0x8|_0x326e57>>>0x18,_0x5b9774[_0x3af891]=_0x326e57;var _0x326e57=_0x358d14*0x1010101^_0x40afce*0x10001^_0x48cb5e*0x101^_0x3af891*0x1010100;_0x3bdf59[_0x5c5def]=_0x326e57<<0x18|_0x326e57>>>0x8,_0x13ee67[_0x5c5def]=_0x326e57<<0x10|_0x326e57>>>0x10,_0x3a731c[_0x5c5def]=_0x326e57<<0x8|_0x326e57>>>0x18,_0x5b96ed[_0x5c5def]=_0x326e57,_0x3af891?(_0x3af891=_0x48cb5e^_0x2a15ae[_0x2a15ae[_0x2a15ae[_0x358d14^_0x48cb5e]]],_0x4a86d9^=_0x2a15ae[_0x2a15ae[_0x4a86d9]]):_0x3af891=_0x4a86d9=0x1;}}());var _0x22bf93=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x153b3b=_0x47430d[_0x500e4d(0x189)]=_0x2758f8[_0x500e4d(0x469)]({'_doReset':__name(function(){var _0x353153=_0x500e4d,_0x453c7;if(!(this[_0x353153(0x322)]&&this['_keyPriorReset']===this[_0x353153(0x3e7)])){for(var _0x1df509=this[_0x353153(0x2a7)]=this[_0x353153(0x3e7)],_0x5a56b4=_0x1df509['words'],_0x22e20b=_0x1df509[_0x353153(0x4a2)]/0x4,_0x51facd=this[_0x353153(0x322)]=_0x22e20b+0x6,_0x3125e7=(_0x51facd+0x1)*0x4,_0x3824cc=this['_keySchedule']=[],_0x5364b4=0x0;_0x5364b4<_0x3125e7;_0x5364b4++)_0x5364b4<_0x22e20b?_0x3824cc[_0x5364b4]=_0x5a56b4[_0x5364b4]:(_0x453c7=_0x3824cc[_0x5364b4-0x1],_0x5364b4%_0x22e20b?_0x22e20b>0x6&&_0x5364b4%_0x22e20b==0x4&&(_0x453c7=_0x2283d3[_0x453c7>>>0x18]<<0x18|_0x2283d3[_0x453c7>>>0x10&0xff]<<0x10|_0x2283d3[_0x453c7>>>0x8&0xff]<<0x8|_0x2283d3[_0x453c7&0xff]):(_0x453c7=_0x453c7<<0x8|_0x453c7>>>0x18,_0x453c7=_0x2283d3[_0x453c7>>>0x18]<<0x18|_0x2283d3[_0x453c7>>>0x10&0xff]<<0x10|_0x2283d3[_0x453c7>>>0x8&0xff]<<0x8|_0x2283d3[_0x453c7&0xff],_0x453c7^=_0x22bf93[_0x5364b4/_0x22e20b|0x0]<<0x18),_0x3824cc[_0x5364b4]=_0x3824cc[_0x5364b4-_0x22e20b]^_0x453c7);for(var _0x19c423=this['_invKeySchedule']=[],_0x2bbc83=0x0;_0x2bbc83<_0x3125e7;_0x2bbc83++){var _0x5364b4=_0x3125e7-_0x2bbc83;if(_0x2bbc83%0x4)var _0x453c7=_0x3824cc[_0x5364b4];else var _0x453c7=_0x3824cc[_0x5364b4-0x4];_0x2bbc83<0x4||_0x5364b4<=0x4?_0x19c423[_0x2bbc83]=_0x453c7:_0x19c423[_0x2bbc83]=_0x3bdf59[_0x2283d3[_0x453c7>>>0x18]]^_0x13ee67[_0x2283d3[_0x453c7>>>0x10&0xff]]^_0x3a731c[_0x2283d3[_0x453c7>>>0x8&0xff]]^_0x5b96ed[_0x2283d3[_0x453c7&0xff]];}}},_0x500e4d(0x419)),'encryptBlock':__name(function(_0x4c285b,_0x52af53){var _0x2837ff=_0x500e4d;this[_0x2837ff(0x4a0)](_0x4c285b,_0x52af53,this[_0x2837ff(0x1c0)],_0x1317d5,_0x46e0ed,_0x537043,_0x5b9774,_0x2283d3);},_0x500e4d(0x344)),'decryptBlock':__name(function(_0x3ce3f3,_0x3774dc){var _0x18ef56=_0x500e4d,_0x5bef3f=_0x3ce3f3[_0x3774dc+0x1];_0x3ce3f3[_0x3774dc+0x1]=_0x3ce3f3[_0x3774dc+0x3],_0x3ce3f3[_0x3774dc+0x3]=_0x5bef3f,this[_0x18ef56(0x4a0)](_0x3ce3f3,_0x3774dc,this[_0x18ef56(0x440)],_0x3bdf59,_0x13ee67,_0x3a731c,_0x5b96ed,_0x2be33c);var _0x5bef3f=_0x3ce3f3[_0x3774dc+0x1];_0x3ce3f3[_0x3774dc+0x1]=_0x3ce3f3[_0x3774dc+0x3],_0x3ce3f3[_0x3774dc+0x3]=_0x5bef3f;},_0x500e4d(0x250)),'_doCryptBlock':__name(function(_0x6288f6,_0x14474c,_0x3effc6,_0xb420fc,_0xdeba2a,_0x2ec52e,_0x43ba03,_0x12c900){var _0x860ba5=_0x500e4d;for(var _0x5a1263=this[_0x860ba5(0x322)],_0x3e1c00=_0x6288f6[_0x14474c]^_0x3effc6[0x0],_0x1e9a31=_0x6288f6[_0x14474c+0x1]^_0x3effc6[0x1],_0x185479=_0x6288f6[_0x14474c+0x2]^_0x3effc6[0x2],_0x371ceb=_0x6288f6[_0x14474c+0x3]^_0x3effc6[0x3],_0x40a003=0x4,_0x4f992e=0x1;_0x4f992e<_0x5a1263;_0x4f992e++){var _0x43f3ee=_0xb420fc[_0x3e1c00>>>0x18]^_0xdeba2a[_0x1e9a31>>>0x10&0xff]^_0x2ec52e[_0x185479>>>0x8&0xff]^_0x43ba03[_0x371ceb&0xff]^_0x3effc6[_0x40a003++],_0x3abf7b=_0xb420fc[_0x1e9a31>>>0x18]^_0xdeba2a[_0x185479>>>0x10&0xff]^_0x2ec52e[_0x371ceb>>>0x8&0xff]^_0x43ba03[_0x3e1c00&0xff]^_0x3effc6[_0x40a003++],_0xb81442=_0xb420fc[_0x185479>>>0x18]^_0xdeba2a[_0x371ceb>>>0x10&0xff]^_0x2ec52e[_0x3e1c00>>>0x8&0xff]^_0x43ba03[_0x1e9a31&0xff]^_0x3effc6[_0x40a003++],_0x376d4b=_0xb420fc[_0x371ceb>>>0x18]^_0xdeba2a[_0x3e1c00>>>0x10&0xff]^_0x2ec52e[_0x1e9a31>>>0x8&0xff]^_0x43ba03[_0x185479&0xff]^_0x3effc6[_0x40a003++];_0x3e1c00=_0x43f3ee,_0x1e9a31=_0x3abf7b,_0x185479=_0xb81442,_0x371ceb=_0x376d4b;}var _0x43f3ee=(_0x12c900[_0x3e1c00>>>0x18]<<0x18|_0x12c900[_0x1e9a31>>>0x10&0xff]<<0x10|_0x12c900[_0x185479>>>0x8&0xff]<<0x8|_0x12c900[_0x371ceb&0xff])^_0x3effc6[_0x40a003++],_0x3abf7b=(_0x12c900[_0x1e9a31>>>0x18]<<0x18|_0x12c900[_0x185479>>>0x10&0xff]<<0x10|_0x12c900[_0x371ceb>>>0x8&0xff]<<0x8|_0x12c900[_0x3e1c00&0xff])^_0x3effc6[_0x40a003++],_0xb81442=(_0x12c900[_0x185479>>>0x18]<<0x18|_0x12c900[_0x371ceb>>>0x10&0xff]<<0x10|_0x12c900[_0x3e1c00>>>0x8&0xff]<<0x8|_0x12c900[_0x1e9a31&0xff])^_0x3effc6[_0x40a003++],_0x376d4b=(_0x12c900[_0x371ceb>>>0x18]<<0x18|_0x12c900[_0x3e1c00>>>0x10&0xff]<<0x10|_0x12c900[_0x1e9a31>>>0x8&0xff]<<0x8|_0x12c900[_0x185479&0xff])^_0x3effc6[_0x40a003++];_0x6288f6[_0x14474c]=_0x43f3ee,_0x6288f6[_0x14474c+0x1]=_0x3abf7b,_0x6288f6[_0x14474c+0x2]=_0xb81442,_0x6288f6[_0x14474c+0x3]=_0x376d4b;},_0x500e4d(0x4a0)),'keySize':0x100/0x20});_0x5e1f3d[_0x500e4d(0x189)]=_0x2758f8[_0x500e4d(0x4b4)](_0x153b3b);}()),_0x2c22d1[_0x2d3e5f(0x189)];}));}(aes$1)),aes$1['exports'];}__name(requireAes,_0x10fcf4(0x2b2));var aesExports=requireAes();const AES=getDefaultExportFromCjs(aesExports);var encBase64Exports=requireEncBase64();const Base64=getDefaultExportFromCjs(encBase64Exports);var encUtf8$1={'exports':{}},encUtf8=encUtf8$1[_0x10fcf4(0x2be)],hasRequiredEncUtf8;function requireEncUtf8(){var _0x3cedad=_0x10fcf4;return hasRequiredEncUtf8||(hasRequiredEncUtf8=0x1,function(_0x1b7257,_0x5ed42b){(function(_0x4f3627,_0x552a80){_0x1b7257['exports']=_0x552a80(requireCore());}(encUtf8,function(_0x34b451){var _0x482cc4=_0x1531;return _0x34b451[_0x482cc4(0x384)][_0x482cc4(0x2fc)];}));}(encUtf8$1)),encUtf8$1[_0x3cedad(0x2be)];}__name(requireEncUtf8,'requireEncUtf8');var encUtf8Exports=requireEncUtf8();const Utf8=getDefaultExportFromCjs(encUtf8Exports);var libTypedarrays$1={'exports':{}},libTypedarrays=libTypedarrays$1[_0x10fcf4(0x2be)],hasRequiredLibTypedarrays;function _0x1531(_0x14329c,_0x1e1366){var _0x33e436=_0x33e4();return _0x1531=function(_0x1531f9,_0x2f8a75){_0x1531f9=_0x1531f9-0x182;var _0x3eb74b=_0x33e436[_0x1531f9];return _0x3eb74b;},_0x1531(_0x14329c,_0x1e1366);}function requireLibTypedarrays(){return hasRequiredLibTypedarrays||(hasRequiredLibTypedarrays=0x1,function(_0x1c6f3b,_0x37d8fb){(function(_0x8b024b,_0x53fe11){var _0x3807d2=_0x1531;_0x1c6f3b[_0x3807d2(0x2be)]=_0x53fe11(requireCore());}(libTypedarrays,function(_0xfd9f1e){var _0x20837d=_0x1531;return(function(){var _0x398458=_0x1531;if(typeof ArrayBuffer=='function'){var _0x11eb0d=_0xfd9f1e,_0x3775fc=_0x11eb0d[_0x398458(0x199)],_0x29a854=_0x3775fc['WordArray'],_0x1491f6=_0x29a854['init'],_0x32baf6=_0x29a854[_0x398458(0x243)]=function(_0x460909){var _0x379d85=_0x398458;if(_0x460909 instanceof ArrayBuffer&&(_0x460909=new Uint8Array(_0x460909)),(_0x460909 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x460909 instanceof Uint8ClampedArray||_0x460909 instanceof Int16Array||_0x460909 instanceof Uint16Array||_0x460909 instanceof Int32Array||_0x460909 instanceof Uint32Array||_0x460909 instanceof Float32Array||_0x460909 instanceof Float64Array)&&(_0x460909=new Uint8Array(_0x460909['buffer'],_0x460909[_0x379d85(0x369)],_0x460909['byteLength'])),_0x460909 instanceof Uint8Array){for(var _0x43ff82=_0x460909[_0x379d85(0x1f9)],_0x4146cd=[],_0x580436=0x0;_0x580436<_0x43ff82;_0x580436++)_0x4146cd[_0x580436>>>0x2]|=_0x460909[_0x580436]<<0x18-_0x580436%0x4*0x8;_0x1491f6[_0x379d85(0x21a)](this,_0x4146cd,_0x43ff82);}else _0x1491f6[_0x379d85(0x418)](this,arguments);};_0x32baf6[_0x398458(0x3c5)]=_0x29a854;}}()),_0xfd9f1e[_0x20837d(0x199)][_0x20837d(0x1b5)];}));}(libTypedarrays$1)),libTypedarrays$1['exports'];}__name(requireLibTypedarrays,_0x10fcf4(0x43f));var libTypedarraysExports=requireLibTypedarrays();const WordArray=getDefaultExportFromCjs(libTypedarraysExports);var padNopadding$1={'exports':{}},padNopadding=padNopadding$1[_0x10fcf4(0x2be)],hasRequiredPadNopadding;function requirePadNopadding(){var _0x1437b9=_0x10fcf4;return hasRequiredPadNopadding||(hasRequiredPadNopadding=0x1,function(_0x1cb8b1,_0x2df25f){(function(_0x224f3c,_0x43ed38,_0x44f61b){var _0x4b8181=_0x1531;_0x1cb8b1[_0x4b8181(0x2be)]=_0x43ed38(requireCore(),requireCipherCore());}(padNopadding,function(_0x5187db){var _0x43f065=_0x1531;return _0x5187db[_0x43f065(0x1e4)][_0x43f065(0x3c6)]={'pad':__name(function(){},'pad'),'unpad':__name(function(){},'unpad')},_0x5187db[_0x43f065(0x1e4)]['NoPadding'];}));}(padNopadding$1)),padNopadding$1[_0x1437b9(0x2be)];}__name(requirePadNopadding,'requirePadNopadding');var padNopaddingExports=requirePadNopadding();const NoPadding=getDefaultExportFromCjs(padNopaddingExports);function pkcs7Padding(_0x8595b7,_0x25495a){var _0x3d5e9a=_0x10fcf4;const _0x22d8b1=_0x25495a-_0x8595b7['length']%_0x25495a,_0x10ed6d=String[_0x3d5e9a(0x2cf)](_0x22d8b1)['repeat'](_0x22d8b1);return _0x8595b7+_0x10ed6d;}__name(pkcs7Padding,'pkcs7Padding');function encrypt(_0x1fba62,_0x5d7823){var _0x51f737=_0x10fcf4;const _0x20fe81=WordArray[_0x51f737(0x47c)](0x10),_0x587a98=pkcs7Padding(_0x1fba62,0x10),_0x1c3c42=AES[_0x51f737(0x2b6)](Utf8[_0x51f737(0x361)](_0x587a98),Base64[_0x51f737(0x361)](_0x5d7823),{'iv':_0x20fe81,'padding':NoPadding});return _0x20fe81[_0x51f737(0x20c)](_0x1c3c42['ciphertext'])[_0x51f737(0x279)](Base64);}__name(encrypt,_0x10fcf4(0x2b6));function getAttachHeader(){var _0x3774d8=_0x10fcf4;const _0x361c6b=getGlobalObject()[_0x3774d8(0x379)];if(_0x361c6b){const _0x5fafb0={'time':Math[_0x3774d8(0x457)](Date[_0x3774d8(0x40c)]()/0x3e8),'domain':location[_0x3774d8(0x1f0)]};return encrypt(JSON[_0x3774d8(0x259)](_0x5fafb0),_0x361c6b);}}__name(getAttachHeader,_0x10fcf4(0x184));var __defProp$7=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$7=Object[_0x10fcf4(0x341)],__decorateClass$7=__name((_0xc2c119,_0x36f214,_0x371a47,_0x5d8317)=>{var _0x1e5a5c=_0x10fcf4;for(var _0x58d0f6=_0x5d8317>0x1?void 0x0:_0x5d8317?__getOwnPropDesc$7(_0x36f214,_0x371a47):_0x36f214,_0x31375a=_0xc2c119[_0x1e5a5c(0x20b)]-0x1,_0x3efe99;_0x31375a>=0x0;_0x31375a--)(_0x3efe99=_0xc2c119[_0x31375a])&&(_0x58d0f6=(_0x5d8317?_0x3efe99(_0x36f214,_0x371a47,_0x58d0f6):_0x3efe99(_0x58d0f6))||_0x58d0f6);return _0x5d8317&&_0x58d0f6&&__defProp$7(_0x36f214,_0x371a47,_0x58d0f6),_0x58d0f6;},_0x10fcf4(0x257)),__decorateParam$7=__name((_0x31919c,_0x29bc47)=>(_0x4fa9a3,_0x52382e)=>_0x29bc47(_0x4fa9a3,_0x52382e,_0x31919c),_0x10fcf4(0x439)),_a20;let DomainRequestService=(_a20=class{constructor(_0x535341){var _0x48d6af=_0x10fcf4;this['_httpService']=_0x535341,this[_0x48d6af(0x3ea)]();}[_0x10fcf4(0x3ea)](){var _0x34d075=_0x10fcf4;this[_0x34d075(0x1ca)]['registerHTTPInterceptor']({'interceptor':__name((_0x3ebcb9,_0x7eaadb)=>{var _0x27c0ea=_0x34d075;const _0x17537f=_0x3ebcb9[_0x27c0ea(0x481)],_0x48a929=getAttachHeader();return _0x48a929&&_0x17537f[_0x27c0ea(0x26a)](_0x27c0ea(0x335),_0x48a929),_0x7eaadb(_0x3ebcb9);},'interceptor')});}},__name(_a20,'DomainRequestService'),_a20);DomainRequestService=__decorateClass$7([__decorateParam$7(0x0,Inject(HTTPService))],DomainRequestService);var __defProp$6=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$6=Object[_0x10fcf4(0x341)],__decorateClass$6=__name((_0x315314,_0x32e3a1,_0x409925,_0x2e4b37)=>{for(var _0x58a497=_0x2e4b37>0x1?void 0x0:_0x2e4b37?__getOwnPropDesc$6(_0x32e3a1,_0x409925):_0x32e3a1,_0x326f8e=_0x315314['length']-0x1,_0x39fa02;_0x326f8e>=0x0;_0x326f8e--)(_0x39fa02=_0x315314[_0x326f8e])&&(_0x58a497=(_0x2e4b37?_0x39fa02(_0x32e3a1,_0x409925,_0x58a497):_0x39fa02(_0x58a497))||_0x58a497);return _0x2e4b37&&_0x58a497&&__defProp$6(_0x32e3a1,_0x409925,_0x58a497),_0x58a497;},'__decorateClass$6'),__decorateParam$6=__name((_0x395015,_0x53da00)=>(_0x5158ed,_0x564ed9)=>_0x53da00(_0x5158ed,_0x564ed9,_0x395015),'__decorateParam$6'),_a21;let DataLoaderService=(_a21=class extends RxDisposable{constructor(_0x35ef70,_0x30fdcf,_0x4a892d){var _0x2da19e=_0x10fcf4;super(),__publicField(this,_0x2da19e(0x27e),new BehaviorSubject(null)),__publicField(this,_0x2da19e(0x1ef),this[_0x2da19e(0x27e)]['asObservable']()),(this[_0x2da19e(0x298)]=_0x35ef70,this[_0x2da19e(0x1ee)]=_0x30fdcf,this['_localCacheService']=_0x4a892d);}async[_0x10fcf4(0x441)](_0x18fcc7,_0x1b93c5,_0x5c3471){var _0xae1acd=_0x10fcf4;this['_unitInfo$'][_0xae1acd(0x3d5)]({'unitId':_0x18fcc7,'type':_0x1b93c5,'subUnitId':_0x5c3471});let _0x4c6808=null;switch(_0x1b93c5){case UniverType[_0xae1acd(0x3a7)]:{_0x4c6808=await this[_0xae1acd(0x26e)](_0x18fcc7);break;}case UniverType[_0xae1acd(0x30c)]:{_0x4c6808=await this['_loadDoc'](_0x18fcc7);break;}default:{this[_0xae1acd(0x298)][_0xae1acd(0x2a0)](_0xae1acd(0x1b8),_0xae1acd(0x46d));break;}}return _0x4c6808;}async[_0x10fcf4(0x26e)](_0x41f7a9){var _0x12e11d=_0x10fcf4,_0x179b39;let _0x3bf3b1=0x0;const _0x33d148=await((_0x179b39=this['_localCacheService'])==null?void 0x0:_0x179b39[_0x12e11d(0x45a)](_0x41f7a9));return _0x33d148&&(_0x33d148[_0x12e11d(0x293)]||_0x33d148[_0x12e11d(0x448)][_0x12e11d(0x20b)]!==0x0)&&(_0x3bf3b1=_0x33d148[_0x12e11d(0x31b)]),_0x3bf3b1===0x0&&this[_0x12e11d(0x298)][_0x12e11d(0x388)](_0x12e11d(0x1b8),_0x12e11d(0x3c3)),this['_snapshotService'][_0x12e11d(0x2a4)](_0x41f7a9,_0x3bf3b1);}async[_0x10fcf4(0x323)](_0x1b4857){var _0x4ea85a=_0x10fcf4,_0x5d66ff;let _0x499e3a=0x0;const _0x587780=await((_0x5d66ff=this[_0x4ea85a(0x331)])==null?void 0x0:_0x5d66ff[_0x4ea85a(0x45a)](_0x1b4857));return _0x587780&&(_0x587780['awaitingChangeset']||_0x587780[_0x4ea85a(0x448)][_0x4ea85a(0x20b)]!==0x0)&&(_0x499e3a=_0x587780[_0x4ea85a(0x31b)]),_0x499e3a===0x0&&this[_0x4ea85a(0x298)][_0x4ea85a(0x388)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x4ea85a(0x1ee)][_0x4ea85a(0x37b)](_0x1b4857,_0x499e3a);}},__name(_a21,_0x10fcf4(0x245)),_a21);DataLoaderService=__decorateClass$6([__decorateParam$6(0x0,ILogService),__decorateParam$6(0x1,Inject(SnapshotService)),__decorateParam$6(0x2,Optional(ILocalCacheService))],DataLoaderService);var __defProp$5=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$5=Object[_0x10fcf4(0x341)],__decorateClass$5=__name((_0x5bb67e,_0x71db4f,_0x3d376a,_0x186743)=>{var _0x5b7b83=_0x10fcf4;for(var _0x22db03=_0x186743>0x1?void 0x0:_0x186743?__getOwnPropDesc$5(_0x71db4f,_0x3d376a):_0x71db4f,_0x4c035b=_0x5bb67e[_0x5b7b83(0x20b)]-0x1,_0x480a40;_0x4c035b>=0x0;_0x4c035b--)(_0x480a40=_0x5bb67e[_0x4c035b])&&(_0x22db03=(_0x186743?_0x480a40(_0x71db4f,_0x3d376a,_0x22db03):_0x480a40(_0x22db03))||_0x22db03);return _0x186743&&_0x22db03&&__defProp$5(_0x71db4f,_0x3d376a,_0x22db03),_0x22db03;},_0x10fcf4(0x29a)),__decorateParam$5=__name((_0x120ff9,_0x2c9643)=>(_0x3e20ba,_0xd1ed8e)=>_0x2c9643(_0x3e20ba,_0xd1ed8e,_0x120ff9),'__decorateParam$5');const ALLOW_IMAGE_LIST=[_0x10fcf4(0x2d3),_0x10fcf4(0x2a2),_0x10fcf4(0x349),_0x10fcf4(0x1da),'image/bmp'],ALLOW_IMAGE_SIZE=0x5*0x400*0x400,EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x10fcf4(0x351),DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY=_0x10fcf4(0x241),EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x10fcf4(0x1eb),DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x10fcf4(0x4b1);var _a22;let CollaborationImageIoService=(_a22=class{constructor(_0xa72f6c,_0x4019b3,_0x185f97){var _0x198816=_0x10fcf4;__publicField(this,_0x198816(0x35c),0x0),__publicField(this,_0x198816(0x358),new Subject()),__publicField(this,_0x198816(0x431),this[_0x198816(0x358)]),__publicField(this,_0x198816(0x434),new Map()),(this['_httpService']=_0xa72f6c,this[_0x198816(0x2bf)]=_0x4019b3,this[_0x198816(0x3a9)]=_0x185f97);}['setWaitCount'](_0x2b40fc){var _0x37b60a=_0x10fcf4;this[_0x37b60a(0x35c)]=_0x2b40fc,this[_0x37b60a(0x358)][_0x37b60a(0x3d5)](_0x2b40fc);}[_0x10fcf4(0x425)](_0xf0c8f8,_0x2be73d){var _0x2ec094=_0x10fcf4;if(_0x2be73d===ImageSourceType['BASE64']){const _0x1066c8=new Image();return _0x1066c8[_0x2ec094(0x1f2)]=_0xf0c8f8,_0x1066c8;}return this[_0x2ec094(0x434)][_0x2ec094(0x402)](_0xf0c8f8);}[_0x10fcf4(0x48a)](_0x43a6e1,_0x54fbd6,_0x31f0ea){var _0x573a41=_0x10fcf4;_0x54fbd6===ImageSourceType[_0x573a41(0x45e)]||_0x31f0ea==null||this[_0x573a41(0x434)][_0x573a41(0x26a)](_0x43a6e1,_0x31f0ea);}async['getImage'](_0x217b82){var _0x235b01=_0x10fcf4;try{const _0x4fcbdd=this[_0x235b01(0x40e)](this[_0x235b01(0x3b4)](),''+_0x217b82),_0x93f24a=(await this[_0x235b01(0x1ca)][_0x235b01(0x402)](_0x4fcbdd))[_0x235b01(0x46e)];if(_0x93f24a['error']&&_0x93f24a[_0x235b01(0x2a0)][_0x235b01(0x3bb)]===ErrorCode['OK']){const _0x17d2a5=new URL(_0x93f24a[_0x235b01(0x484)],this['_getDownloadEndpointURL']())['toString']();return Promise['resolve'](_0x17d2a5);}return Promise[_0x235b01(0x33a)](_0x93f24a[_0x235b01(0x2a0)]);}catch(_0x2a2458){return Promise[_0x235b01(0x33a)](_0x2a2458);}}async[_0x10fcf4(0x2e1)](_0x192dd9){var _0x45d1a1=_0x10fcf4;let _0x3670b2='';if(!ALLOW_IMAGE_LIST[_0x45d1a1(0x4ae)](_0x192dd9[_0x45d1a1(0x48b)]))return this[_0x45d1a1(0x435)](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType[_0x45d1a1(0x423)]));if(_0x192dd9['size']>ALLOW_IMAGE_SIZE)return this[_0x45d1a1(0x435)](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType[_0x45d1a1(0x2b5)]));try{const _0x56fbd0=new FormData();_0x56fbd0[_0x45d1a1(0x32c)](_0x45d1a1(0x2da),_0x192dd9);const _0x34639c=this['_univerInstanceService']['getFocusedUnit'](),_0x440a2c=_0x34639c==null?void 0x0:_0x34639c[_0x45d1a1(0x2b9)]();if(!_0x440a2c)throw new Error('unitId\x20is\x20not\x20found');const _0x33b5df=this['_getUploadFileURL']()+_0x45d1a1(0x198)+_0x192dd9[_0x45d1a1(0x44d)]['toString']()+'&source='+FileSource[_0x45d1a1(0x25b)]+'&assign='+encodeURIComponent(_0x440a2c),_0x482786=await(await fetch(_0x33b5df,{'method':'POST','body':_0x56fbd0}))['json']();if(typeof _0x482786[_0x45d1a1(0x472)]!=_0x45d1a1(0x3be))return this['_decreaseWaiting'](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType[_0x45d1a1(0x1ad)]));_0x3670b2=_0x482786[_0x45d1a1(0x472)];}catch{return this['_decreaseWaiting'](),Promise[_0x45d1a1(0x33a)](new Error(ImageUploadStatusType['ERROR_IMAGE']));}return new Promise((_0x16b15c,_0x366088)=>{var _0x318286=_0x45d1a1;const _0x44b02d=new FileReader();_0x44b02d[_0x318286(0x2b0)](_0x192dd9),_0x44b02d[_0x318286(0x385)]=_0x1165fd=>{var _0x436971=_0x318286,_0x35b942;const _0x5c3599=(_0x35b942=_0x1165fd[_0x436971(0x26d)])==null?void 0x0:_0x35b942['result'];if(_0x5c3599==null){this[_0x436971(0x435)](),_0x366088(new Error(ImageUploadStatusType[_0x436971(0x1ad)]));return;}const _0x5f3174=Tools['generateRandomId'](0x6);_0x16b15c({'imageId':_0x5f3174,'imageSourceType':ImageSourceType[_0x436971(0x3a0)],'source':_0x3670b2,'base64Cache':_0x5c3599,'status':ImageUploadStatusType[_0x436971(0x31a)]}),this[_0x436971(0x435)]();};});}[_0x10fcf4(0x38e)](){var _0x78438e=_0x10fcf4,_0x2ff3b5,_0x5f0a19;const _0x2f7fbe=this[_0x78438e(0x2bf)][_0x78438e(0x3ef)](EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY),_0x53dea9=this['_configService']['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5f0a19=(_0x2ff3b5=_0x53dea9==null?void 0x0:_0x53dea9[_0x78438e(0x3d1)])!=null?_0x2ff3b5:_0x2f7fbe)!=null?_0x5f0a19:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x10fcf4(0x3b4)](){var _0x4c802e=_0x10fcf4,_0x48e5c8,_0x38f5d9;const _0xfed13e=this['_configService'][_0x4c802e(0x3ef)](EXCHANGE_SIGN_URL_SERVER_URL_KEY),_0xbca15=this[_0x4c802e(0x2bf)][_0x4c802e(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x38f5d9=(_0x48e5c8=_0xbca15==null?void 0x0:_0xbca15[_0x4c802e(0x2c7)])!=null?_0x48e5c8:_0xfed13e)!=null?_0x38f5d9:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x10fcf4(0x429)](){var _0x791a98=_0x10fcf4,_0x25e5e0;const _0x2de674=this[_0x791a98(0x2bf)][_0x791a98(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x25e5e0=_0x2de674==null?void 0x0:_0x2de674[_0x791a98(0x463)])!=null?_0x25e5e0:location[_0x791a98(0x38f)];}['_replaceFileID'](_0x1e3101,_0x530cd1){var _0x20d35b=_0x10fcf4;return _0x1e3101[_0x20d35b(0x3f7)](_0x20d35b(0x2a9),_0x530cd1);}['_decreaseWaiting'](){var _0x28618e=_0x10fcf4;this[_0x28618e(0x35c)]-=0x1,this[_0x28618e(0x358)][_0x28618e(0x3d5)](this[_0x28618e(0x35c)]);}},__name(_a22,_0x10fcf4(0x302)),_a22);CollaborationImageIoService=__decorateClass$5([__decorateParam$5(0x0,Inject(HTTPService)),__decorateParam$5(0x1,IConfigService),__decorateParam$5(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);var __defProp$4=Object['defineProperty'],__getOwnPropDesc$4=Object['getOwnPropertyDescriptor'],__decorateClass$4=__name((_0x5db66b,_0x34ca15,_0xde4165,_0xdefb0)=>{var _0x7a78a8=_0x10fcf4;for(var _0x10bf5e=_0xdefb0>0x1?void 0x0:_0xdefb0?__getOwnPropDesc$4(_0x34ca15,_0xde4165):_0x34ca15,_0x1fa4ad=_0x5db66b[_0x7a78a8(0x20b)]-0x1,_0x1ab950;_0x1fa4ad>=0x0;_0x1fa4ad--)(_0x1ab950=_0x5db66b[_0x1fa4ad])&&(_0x10bf5e=(_0xdefb0?_0x1ab950(_0x34ca15,_0xde4165,_0x10bf5e):_0x1ab950(_0x10bf5e))||_0x10bf5e);return _0xdefb0&&_0x10bf5e&&__defProp$4(_0x34ca15,_0xde4165,_0x10bf5e),_0x10bf5e;},'__decorateClass$4'),__decorateParam$4=__name((_0x4e2441,_0x4a9aa6)=>(_0x4df77a,_0x262a54)=>_0x4a9aa6(_0x4df77a,_0x262a54,_0x4e2441),_0x10fcf4(0x1a8));const DEFAULT_AUTHZ_URL_KEY=_0x10fcf4(0x2bb);var _a23;let MentionIoHttpService=(_a23=class{constructor(_0x499a26,_0x259b60){var _0x3e9b03=_0x10fcf4;this[_0x3e9b03(0x2bf)]=_0x499a26,this[_0x3e9b03(0x281)]=_0x259b60;}[_0x10fcf4(0x185)](){var _0x11539a=_0x10fcf4,_0x2b8717,_0x3cf888;const _0x1dd052=this[_0x11539a(0x2bf)][_0x11539a(0x3ef)](AUTHZ_URL_KEY),_0x45e60f=this[_0x11539a(0x2bf)][_0x11539a(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3cf888=(_0x2b8717=_0x45e60f==null?void 0x0:_0x45e60f['authzUrl'])!=null?_0x2b8717:_0x1dd052)!=null?_0x3cf888:DEFAULT_AUTHZ_URL_KEY;}async[_0x10fcf4(0x274)](_0x35e507){var _0x4c82d4=_0x10fcf4;const _0xac7c37=this[_0x4c82d4(0x185)]()+_0x4c82d4(0x3e1);return{'list':[{'title':'People','mentions':(await this[_0x4c82d4(0x281)][_0x4c82d4(0x402)](_0xac7c37,{'params':{'objectID':_0x35e507['unitId'],'unitID':_0x35e507[_0x4c82d4(0x422)]}}))[_0x4c82d4(0x46e)]['collaborators']['map'](_0x68a96=>({'objectId':_0x68a96['id'],'name':_0x68a96[_0x4c82d4(0x1a7)][_0x4c82d4(0x36c)],'metadata':{'icon':_0x68a96[_0x4c82d4(0x1a7)][_0x4c82d4(0x3fa)]},'label':_0x68a96[_0x4c82d4(0x1a7)]['name'],'objectType':MentionType[_0x4c82d4(0x3c2)]})),'metadata':{},'type':MentionType[_0x4c82d4(0x3c2)]}]};}},__name(_a23,_0x10fcf4(0x409)),_a23);MentionIoHttpService=__decorateClass$4([__decorateParam$4(0x0,Inject(IConfigService)),__decorateParam$4(0x1,Inject(HTTPService))],MentionIoHttpService);var __defProp$3=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$3=Object[_0x10fcf4(0x341)],__decorateClass$3=__name((_0x241bd1,_0x2d287c,_0x267f8e,_0x533dd8)=>{var _0xcbcda9=_0x10fcf4;for(var _0x18d2f8=_0x533dd8>0x1?void 0x0:_0x533dd8?__getOwnPropDesc$3(_0x2d287c,_0x267f8e):_0x2d287c,_0x422582=_0x241bd1[_0xcbcda9(0x20b)]-0x1,_0x9a963a;_0x422582>=0x0;_0x422582--)(_0x9a963a=_0x241bd1[_0x422582])&&(_0x18d2f8=(_0x533dd8?_0x9a963a(_0x2d287c,_0x267f8e,_0x18d2f8):_0x9a963a(_0x18d2f8))||_0x18d2f8);return _0x533dd8&&_0x18d2f8&&__defProp$3(_0x2d287c,_0x267f8e,_0x18d2f8),_0x18d2f8;},'__decorateClass$3'),__decorateParam$3=__name((_0x332278,_0x5bb4ac)=>(_0x309cbd,_0x24f303)=>_0x5bb4ac(_0x309cbd,_0x24f303,_0x332278),_0x10fcf4(0x236)),_a24;let PermissionService=(_a24=class extends RxDisposable{constructor(_0x106b92,_0x1e530d,_0x34c4c4,_0x119f43,_0x57d91a,_0x4eafa2,_0x3a6b1d){var _0x180d70=_0x10fcf4;super(),this['_injector']=_0x106b92,this['_univerInstanceService']=_0x1e530d,this[_0x180d70(0x4c0)]=_0x34c4c4,this[_0x180d70(0x3ae)]=_0x119f43,this[_0x180d70(0x4b8)]=_0x57d91a,this['_authzIoService']=_0x4eafa2,this[_0x180d70(0x19a)]=_0x3a6b1d,this[_0x180d70(0x378)](),this[_0x180d70(0x29c)]();}[_0x10fcf4(0x29c)](){var _0x78e72e=_0x10fcf4;const _0x4cdc70=__name(async _0x2aeb26=>{var _0x2757ca=_0x1531;(await this[_0x2757ca(0x3ae)]['requireSession'](_0x2aeb26))['event$']['pipe'](filter(_0x11b0db=>_0x11b0db[_0x2757ca(0x204)]===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x2a18c3(this[_0x2757ca(0x205)]))[_0x2757ca(0x416)](_0x2665b2=>{var _0x5ee496=_0x2757ca;const _0x5aedca=_0x2665b2,{reason:_0x473e47}=_0x5aedca['data'];this[_0x5ee496(0x4b8)]['emitEvent']({'id':CollaborationUIEventId['CLOSE_ROOM'],'data':_0x473e47}),this[_0x5ee496(0x4c0)][_0x5ee496(0x371)](new WorkbookEditablePermission(_0x2aeb26)['id'],!0x1),this[_0x5ee496(0x3ae)][_0x5ee496(0x4ba)](_0x2aeb26);});},_0x78e72e(0x3cb));merge(this['_univerInstanceService'][_0x78e72e(0x473)](UniverInstanceType[_0x78e72e(0x3a7)]),this[_0x78e72e(0x3a9)]['getTypeOfUnitAdded$'](UniverInstanceType[_0x78e72e(0x30c)]))['pipe'](map(_0x2a75be=>_0x2a75be['getUnitId']()),filter(_0x5b775c=>!isInternalEditorID(_0x5b775c)),_0x2a18c3(this[_0x78e72e(0x205)]))[_0x78e72e(0x416)](_0x985cbb=>{_0x4cdc70(_0x985cbb);});}[_0x10fcf4(0x378)](){var _0x478878=_0x10fcf4;const _0x3ec23b=__name(async _0x3165c6=>{var _0x319eee=_0x1531;const _0x23f652=await this['_collaborationSessionService']['requireSession'](_0x3165c6),_0x1f2efd=this[_0x319eee(0x2b7)][_0x319eee(0x402)](SheetPermissionInitController);_0x23f652[_0x319eee(0x48c)][_0x319eee(0x18d)](filter(_0x3b5156=>_0x3b5156[_0x319eee(0x204)]===CollaborationEvent[_0x319eee(0x3d7)]),_0x2a18c3(this[_0x319eee(0x205)]))['subscribe'](_0x4d6aac=>{var _0x3eedd6=_0x319eee;const _0x2fcb61=_0x4d6aac,{objectId:_0x2f926f}=_0x2fcb61[_0x3eedd6(0x407)];_0x2f926f===_0x3165c6?_0x1f2efd['initWorkbookPermissionChange'](_0x3165c6):_0x1f2efd['refreshPermission'](_0x3165c6,_0x2f926f);});},_0x478878(0x4c1));merge(this[_0x478878(0x3a9)][_0x478878(0x473)](UniverInstanceType['UNIVER_SHEET']),this[_0x478878(0x3a9)][_0x478878(0x473)](UniverInstanceType[_0x478878(0x30c)]))[_0x478878(0x18d)](map(_0x2ed437=>_0x2ed437[_0x478878(0x2b9)]()),filter(_0x16df6d=>!isInternalEditorID(_0x16df6d)),_0x2a18c3(this['dispose$']))[_0x478878(0x416)](_0x3574ae=>{_0x3ec23b(_0x3574ae);});}},__name(_a24,'PermissionService'),_a24);PermissionService=__decorateClass$3([__decorateParam$3(0x0,Inject(Injector)),__decorateParam$3(0x1,IUniverInstanceService),__decorateParam$3(0x2,IPermissionService),__decorateParam$3(0x3,Inject(CollaborationSessionService)),__decorateParam$3(0x4,Inject(CollaborationUIEventService)),__decorateParam$3(0x5,IAuthzIoService),__decorateParam$3(0x6,IUndoRedoService)],PermissionService);var __defProp$2=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$2=Object[_0x10fcf4(0x341)],__decorateClass$2=__name((_0x504da4,_0xa9a5c7,_0x18d590,_0x33a00a)=>{var _0x4c48c0=_0x10fcf4;for(var _0x560afc=_0x33a00a>0x1?void 0x0:_0x33a00a?__getOwnPropDesc$2(_0xa9a5c7,_0x18d590):_0xa9a5c7,_0x32b0d4=_0x504da4[_0x4c48c0(0x20b)]-0x1,_0x130058;_0x32b0d4>=0x0;_0x32b0d4--)(_0x130058=_0x504da4[_0x32b0d4])&&(_0x560afc=(_0x33a00a?_0x130058(_0xa9a5c7,_0x18d590,_0x560afc):_0x130058(_0x560afc))||_0x560afc);return _0x33a00a&&_0x560afc&&__defProp$2(_0xa9a5c7,_0x18d590,_0x560afc),_0x560afc;},_0x10fcf4(0x415)),__decorateParam$2=__name((_0x169f01,_0x3f7f49)=>(_0x5a78a0,_0x44fb4d)=>_0x3f7f49(_0x5a78a0,_0x44fb4d,_0x169f01),_0x10fcf4(0x19b)),_a25;let SnapshotServerOverHTTPService=(_a25=class{constructor(_0x5d3cc3,_0x5dc91e){var _0x4d9eba=_0x10fcf4;this[_0x4d9eba(0x2bf)]=_0x5d3cc3,this[_0x4d9eba(0x1ca)]=_0x5dc91e;}async[_0x10fcf4(0x362)](_0x22163f,_0xfa987b){var _0x72fb1e=_0x10fcf4,_0x46d693;const {unitID:_0x120c71,type:_0xc589a2,revision:revision=0x0}=_0xfa987b,_0x331158=this[_0x72fb1e(0x304)]()+'/'+_0xc589a2+_0x72fb1e(0x34c)+_0x120c71+_0x72fb1e(0x1a2)+revision,_0x528d55=(await this[_0x72fb1e(0x1ca)][_0x72fb1e(0x402)](_0x331158))[_0x72fb1e(0x46e)],_0xbbfd66=(_0x46d693=_0x528d55[_0x72fb1e(0x43e)])==null?void 0x0:_0x46d693[_0x72fb1e(0x321)];if(_0xbbfd66){const _0x3d2e65=_0xbbfd66==null?void 0x0:_0xbbfd66[_0x72fb1e(0x2c1)],_0xcca2a3=textEncoder[_0x72fb1e(0x206)](b64DecodeUnicode(_0x3d2e65));_0xbbfd66['originalMeta']=_0xcca2a3,Object[_0x72fb1e(0x2a3)](_0xbbfd66['sheets'])[_0x72fb1e(0x260)](([,_0x23b130])=>{var _0x46a367=_0x72fb1e;const _0x38d225=_0x23b130[_0x46a367(0x2c1)],_0x58fa95=textEncoder[_0x46a367(0x206)](b64DecodeUnicode(_0x38d225));_0x23b130[_0x46a367(0x2c1)]=_0x58fa95;});}return _0x528d55;}async[_0x10fcf4(0x231)](_0x5d1262,_0x3ce326){var _0x4cdf35=_0x10fcf4;const {unitID:_0x121ad8,type:_0x37b35c,blockID:_0x438b27}=_0x3ce326,_0x2b3b73=this[_0x4cdf35(0x382)]()+'/'+_0x37b35c+_0x4cdf35(0x34c)+_0x121ad8+_0x4cdf35(0x1e5)+_0x438b27;return(await this[_0x4cdf35(0x1ca)][_0x4cdf35(0x402)](_0x2b3b73))[_0x4cdf35(0x46e)];}async[_0x10fcf4(0x375)](_0x281640,_0x276c8f){var _0x372163=_0x10fcf4;const {unitID:_0x45205b,type:_0x50b795,blockID:_0x8c5b41}=_0x276c8f,_0xbbab30=this[_0x372163(0x382)]()+_0x372163(0x1e5)+_0x50b795+_0x372163(0x34c)+_0x45205b+_0x372163(0x1e5)+_0x8c5b41;return(await this['_httpService'][_0x372163(0x402)](_0xbbab30))[_0x372163(0x46e)];}async[_0x10fcf4(0x39f)](_0x5b6b4e,_0x4f0d08){var _0x1fa786=_0x10fcf4;const {unitID:_0x324297,type:_0x3c05dd,from:_0x58691c,to:_0xb4f179}=_0x4f0d08,_0x53c217=this[_0x1fa786(0x382)]()+'/'+_0x3c05dd+'/unit/'+_0x324297+'/fetchmissing?from='+_0x58691c+'&to='+_0xb4f179;return(await this[_0x1fa786(0x1ca)][_0x1fa786(0x402)](_0x53c217))[_0x1fa786(0x46e)];}[_0x10fcf4(0x304)](){var _0x2ce9fa=_0x10fcf4,_0x21ac01;return(_0x21ac01=this[_0x2ce9fa(0x2bf)][_0x2ce9fa(0x3ef)](SNAPSHOT_URL_KEY))!=null?_0x21ac01:this[_0x2ce9fa(0x382)]();}[_0x10fcf4(0x382)](){var _0x238701=_0x10fcf4,_0x2ffc5f,_0xd19348;const _0x49822f=this[_0x238701(0x2bf)][_0x238701(0x3ef)](SNAPSHOT_SERVER_URL_KEY),_0x299fd8=this['_configService'][_0x238701(0x3ef)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xd19348=(_0x2ffc5f=_0x299fd8==null?void 0x0:_0x299fd8['snapshotServerUrl'])!=null?_0x2ffc5f:_0x49822f)!=null?_0xd19348:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0x10fcf4(0x40f)](_0x2b846d,_0x964ca8){var _0x17f09b=_0x10fcf4;const _0x4ebb5a=_0x17f09b(0x227)+_0x964ca8[_0x17f09b(0x48b)]+_0x17f09b(0x34c)+_0x964ca8[_0x17f09b(0x436)]+'/resources';return(await this[_0x17f09b(0x1ca)][_0x17f09b(0x402)](_0x4ebb5a,{'params':{'resourceId':JSON[_0x17f09b(0x259)](_0x964ca8['resourceIDs'])}}))[_0x17f09b(0x46e)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){var _0x26b3fd=_0x10fcf4;throw new Error(_0x26b3fd(0x4b9));}[_0x10fcf4(0x2e9)](){var _0x5f2911=_0x10fcf4;throw new Error(_0x5f2911(0x4b9));}[_0x10fcf4(0x1cd)](){var _0x118cc0=_0x10fcf4;throw new Error(_0x118cc0(0x4b9));}[_0x10fcf4(0x326)](){var _0x4dfa03=_0x10fcf4;throw new Error(_0x4dfa03(0x4b9));}},__name(_a25,'SnapshotServerOverHTTPService'),_a25);SnapshotServerOverHTTPService=__decorateClass$2([__decorateParam$2(0x0,IConfigService),__decorateParam$2(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);var __defProp$1=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc$1=Object[_0x10fcf4(0x341)],__decorateClass$1=__name((_0x5ccee2,_0x4af5e4,_0x57bf94,_0xda1f5a)=>{for(var _0x2dcaa2=_0xda1f5a>0x1?void 0x0:_0xda1f5a?__getOwnPropDesc$1(_0x4af5e4,_0x57bf94):_0x4af5e4,_0x4a058b=_0x5ccee2['length']-0x1,_0x37a0f9;_0x4a058b>=0x0;_0x4a058b--)(_0x37a0f9=_0x5ccee2[_0x4a058b])&&(_0x2dcaa2=(_0xda1f5a?_0x37a0f9(_0x4af5e4,_0x57bf94,_0x2dcaa2):_0x37a0f9(_0x2dcaa2))||_0x2dcaa2);return _0xda1f5a&&_0x2dcaa2&&__defProp$1(_0x4af5e4,_0x57bf94,_0x2dcaa2),_0x2dcaa2;},'__decorateClass$1'),__decorateParam$1=__name((_0x50a87d,_0x3f382d)=>(_0x438d88,_0x19e1ba)=>_0x3f382d(_0x438d88,_0x19e1ba,_0x50a87d),_0x10fcf4(0x428)),_a26;let CollaborativeUndoRedoService=(_a26=class extends LocalUndoRedoService{constructor(_0x374ad3,_0x5bdf25,_0x5db930,_0x1f6a67,_0x36e2cb){var _0x154efc=_0x10fcf4;super(_0x374ad3,_0x5bdf25,_0x5db930),this['_transformService']=_0x1f6a67,this[_0x154efc(0x298)]=_0x36e2cb;}[_0x10fcf4(0x25e)](_0x3d54bd,_0x4d62bf){var _0x59f843=_0x10fcf4;const _0x312b39=this[_0x59f843(0x3a1)](_0x3d54bd);if(_0x312b39)try{const _0x198b96=this['_transformStack'](_0x312b39,_0x4d62bf);this['_substituteUndoStack'](_0x3d54bd,_0x198b96);}catch(_0x376c51){this[_0x59f843(0x298)]['error'](_0x59f843(0x1a0),_0x376c51),this[_0x59f843(0x1c1)](_0x3d54bd);}const _0x912983=this['_getRedoStack'](_0x3d54bd);if(_0x912983)try{const _0x1d2803=this[_0x59f843(0x2f3)](_0x912983,_0x4d62bf);this[_0x59f843(0x389)](_0x3d54bd,_0x1d2803);}catch(_0x270d7b){this[_0x59f843(0x298)][_0x59f843(0x2a0)](_0x270d7b),this['_clearRedo'](_0x3d54bd);}}['_clearUndo'](_0x4d59d5){var _0x9071e2=_0x10fcf4;const _0x5bc1d4=this['_getUndoStack'](_0x4d59d5);_0x5bc1d4&&(_0x5bc1d4['length']=0x0,this[_0x9071e2(0x410)]());}[_0x10fcf4(0x3a8)](_0x191c34){var _0x83880f=_0x10fcf4;const _0x4cfc8f=this[_0x83880f(0x1ce)](_0x191c34);_0x4cfc8f&&(_0x4cfc8f['length']=0x0,this[_0x83880f(0x410)]());}[_0x10fcf4(0x221)](_0x32c6bb,_0x4a8d84){var _0x341ea7=_0x10fcf4;this[_0x341ea7(0x23e)][_0x341ea7(0x26a)](_0x32c6bb,_0x4a8d84),this[_0x341ea7(0x410)]();}['_substituteRedoStack'](_0x53ce2d,_0x681a6e){var _0x169a3b=_0x10fcf4;this[_0x169a3b(0x1c9)]['set'](_0x53ce2d,_0x681a6e),this[_0x169a3b(0x410)]();}['_transformStack'](_0x1cc676,_0x6b19e3){var _0x1be97c=_0x10fcf4;const _0x18616b=[];let _0x2376f5=_0x6b19e3,_0x44569b=_0x6b19e3;for(let _0x2631d7=_0x1cc676[_0x1be97c(0x20b)]-0x1;_0x2631d7>=0x0;_0x2631d7--){const {unitID:_0xbae60c,undoMutations:_0x4ed98d,redoMutations:_0x332497}=_0x1cc676[_0x2631d7],_0x1bd2cf=this['_transformService'][_0x1be97c(0x266)](_0x2376f5,_0x4ed98d),_0x45fe01=this['_transformService'][_0x1be97c(0x266)](_0x44569b,_0x332497);if(isTransformMutationsWithChangesetFailure(_0x1bd2cf)||isTransformMutationsWithChangesetFailure(_0x45fe01)){this[_0x1be97c(0x298)][_0x1be97c(0x2a0)](_0x1be97c(0x1a0),_0x1be97c(0x488),_0x1bd2cf,_0x45fe01);break;}_0x2376f5=_0x1bd2cf['c1Prime'],_0x44569b=_0x45fe01[_0x1be97c(0x493)],_0x18616b[_0x1be97c(0x1b3)]({'unitID':_0xbae60c,'undoMutations':_0x1bd2cf[_0x1be97c(0x2fd)],'redoMutations':_0x45fe01['m2Prime']});}return _0x18616b[_0x1be97c(0x200)]();}},__name(_a26,_0x10fcf4(0x354)),_a26);CollaborativeUndoRedoService=__decorateClass$1([__decorateParam$1(0x0,IUniverInstanceService),__decorateParam$1(0x1,ICommandService),__decorateParam$1(0x2,IContextService),__decorateParam$1(0x3,ITransformService),__decorateParam$1(0x4,ILogService)],CollaborativeUndoRedoService);var __defProp2=Object[_0x10fcf4(0x2ba)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__defNormalProp2=__name((_0x1fe7b2,_0x1421cf,_0x559b94)=>_0x1421cf in _0x1fe7b2?__defProp2(_0x1fe7b2,_0x1421cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x559b94}):_0x1fe7b2[_0x1421cf]=_0x559b94,_0x10fcf4(0x222)),__decorateClass=__name((_0x23ca94,_0x2e0342,_0x1dfdff,_0x248b62)=>{var _0x21ada4=_0x10fcf4;for(var _0x1c7109=_0x248b62>0x1?void 0x0:_0x248b62?__getOwnPropDesc(_0x2e0342,_0x1dfdff):_0x2e0342,_0x4ed8d9=_0x23ca94[_0x21ada4(0x20b)]-0x1,_0x26090d;_0x4ed8d9>=0x0;_0x4ed8d9--)(_0x26090d=_0x23ca94[_0x4ed8d9])&&(_0x1c7109=(_0x248b62?_0x26090d(_0x2e0342,_0x1dfdff,_0x1c7109):_0x26090d(_0x1c7109))||_0x1c7109);return _0x248b62&&_0x1c7109&&__defProp2(_0x2e0342,_0x1dfdff,_0x1c7109),_0x1c7109;},_0x10fcf4(0x2a1)),__decorateParam=__name((_0x4a678d,_0x2b18f5)=>(_0x5f14b8,_0x314d52)=>_0x2b18f5(_0x5f14b8,_0x314d52,_0x4a678d),_0x10fcf4(0x1dc)),__publicField2=__name((_0x17b781,_0x56e841,_0x319319)=>__defNormalProp2(_0x17b781,_0x56e841+'',_0x319319),_0x10fcf4(0x4a6));const PLUGIN_NAME='UNIVER_COLLABORATION_CLIENT_PLUGIN';var _a27;let UniverCollaborationClientPlugin=(_a27=class extends Plugin{constructor(_0x216049=defaultPluginConfig,_0x34e2d7,_0x23ddb0,_0x631383){var _0x4d2b2e=_0x10fcf4;super(),this[_0x4d2b2e(0x291)]=_0x216049,this[_0x4d2b2e(0x298)]=_0x34e2d7,this[_0x4d2b2e(0x2b7)]=_0x23ddb0,this[_0x4d2b2e(0x2bf)]=_0x631383;const {..._0x4c1631}=_0xfc9023({},defaultPluginConfig,this[_0x4d2b2e(0x291)]);this[_0x4d2b2e(0x2bf)]['setConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x4c1631);}[_0x10fcf4(0x4bd)](){var _0x43bda6=_0x10fcf4;this['_registerDependencies'](),this[_0x43bda6(0x35b)]();}[_0x10fcf4(0x44e)](){var _0x4015bd=_0x10fcf4,_0x4e9f66,_0x272c62,_0x233592,_0x3c0621;this[_0x4015bd(0x2b7)][_0x4015bd(0x3f8)](IUndoRedoService)&&this['_logService']['error']('[UniverCollaborationClientPlugin]',_0x4015bd(0x2dc));const _0x2e6883=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':(_0x272c62=(_0x4e9f66=this[_0x4015bd(0x291)])==null?void 0x0:_0x4e9f66[_0x4015bd(0x40b)])!=null?_0x272c62:CollaborationSocketService}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x233592=this[_0x4015bd(0x291)])==null?void 0x0:_0x233592[_0x4015bd(0x320)]);if(!((_0x3c0621=this['_config'])!=null&&_0x3c0621['enableSingleActiveInstanceLock'])){const _0x2efdc1=_0x2e6883[_0x4015bd(0x22d)](([_0x344cb1])=>_0x344cb1===ISingleActiveUnitService);_0x2efdc1!==-0x1&&_0x2e6883[_0x4015bd(0x3e6)](_0x2efdc1,0x1);}registerDependencies(this[_0x4015bd(0x2b7)],_0x2e6883);}[_0x10fcf4(0x35b)](){var _0x2a78ed=_0x10fcf4,_0x34ab95,_0x3f27f0,_0x41d2d4;this[_0x2a78ed(0x2b7)][_0x2a78ed(0x402)](HTTPService)[_0x2a78ed(0x3e3)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})}),(_0x34ab95=this[_0x2a78ed(0x291)])!=null&&_0x34ab95[_0x2a78ed(0x31e)]||(_0x3f27f0=this[_0x2a78ed(0x2b7)][_0x2a78ed(0x402)](ILocalCacheService,Quantity[_0x2a78ed(0x3a2)]))==null||_0x3f27f0[_0x2a78ed(0x386)](),(_0x41d2d4=this['_config'])!=null&&_0x41d2d4['enableAuthServer']&&touchDependencies(this['_injector'],[[AuthServerService]]),touchDependencies(this['_injector'],[[DomainRequestService],[CollaborationController],[PermissionService]]);}},__name(_a27,_0x10fcf4(0x2d1)),_a27);__publicField2(UniverCollaborationClientPlugin,_0x10fcf4(0x461),PLUGIN_NAME),UniverCollaborationClientPlugin=__decorateClass([DependentOn(UniverCollaborationPlugin,UniverSheetsPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);function _0x33e4(){var _0x5343e3=['UNRECOGNIZED','_emitMembers','default','snapshot','requireLibTypedarrays','_invKeySchedule','loadUnit','mixIn','SOCKET_FAILED_RETRY','SUBMIT_CHANGESET','_timeoutTimer','_doProcessBlock','executeCommand','mutations','requireCipherCore','JOINING','search','_init','size','_registerDependencies','LEAVE','filter','permissionRejEvent','getValue','_transformService','map','__decorateClass$h','LICENSE_IMPORT_SIZE_EXCEEDED','floor','transformChangesets','connection\x20error','loadOfflineData','_scheduleCollaborationTimeoutTimer','_acknowledgedAwaitingChangeset','_getLoginPath','BASE64','/-/object/list','onRemoteRetry','pluginName','BlockCipher','downloadEndpointUrl','_http','getCollabEntity$','UNAUTHENTICATED','min','_collaborationTimeoutTimer','extend','GLOBAL_ROOMS_CNT_EXCEEDS','Base64','requireHmac','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','body','auth.needGotoLoginAlert','__decorateParam$g','joinRsp','FileId','getTypeOfUnitAdded$','_toggleOffline','_transformStateCache','_parse','authzUrl','_removeRoom','objectType','collabSubmitChangesetUrl','error$','random','getUnit','max','SHA1','onStateChange','headers','NEW_CHANGESETS','joinEvent','url','_tryEnsureSocket','859272stLozU','_clearTimeoutTimer','transformStack\x20failed!','\x20to\x20','addImageSourceCache','type','event$','onRemoteRej','MUTATION','LIVESHARE_FETCH_OPERATIONS','kdf','_createInitialStateImpl','getCurrentRevOfUnit','c1Prime','[SyncedState]:\x20received\x20acknowledgement.','SHOULD_CLOSE_CONN','__decorateParam$e','state$','USERS_ENTER','readInt32LE','padding','CHANGESET_SHOULD_RETRY','_memberService','_transformIMECache','/universer-api/oidc/authpage','memberID','_doCryptBlock','__creator','sigBytes','decrypt','createDecryptor','readyForCollab','__publicField','commonjsRequire','slice','addHandlerCallback','socket$','bind','15GlBhfA','_snapshotServerService','includes','_resendTimeout','[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.','/universer-api/file/{fileID}/sign-url','ENSURE_SNAPSHOT_EXECUTION','runId','_createHelper','symbol','LICENSE_MAX_UNITS_EXCEEDED','SUBMIT_CHANGESET_TIMEOUT','_collaborationUIEventService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','closeSession','_hasher','ivSize','onStarting','POST','_data','_permissionService','handleUnitPermissionChange','charAt','pauseCollaboration','csShouldRetryEvent','method','requireCore','getAttachHeader','_getAPIPrefixPath','CollaborationSession','session.room-permission-denied','YUUMI_SUBSCRIPTION_NOT_FOUND','AES','_roomMembers','Hex','fetchMiss','pipe','9VeXViD','collabWebSocketUrl','ciphertext','removeMember','selections','810DwKGil','_listenToNetworkCondition','getFocusedUnit','COMPRESS_MUTATION_SEND','MSG_FOR_ERROR','?size=','lib','_undoRedoService','__decorateParam$2','_transformUndoredo','JOIN_ROOM_FULL','rng','shouldCloseConn','[CollaborationUndoRedoService]','randomUUID','/rev/','APPLY_REJECT','terminateWithError','Hasher','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','subject','__decorateParam$4','LIVESHARE_REQUEST_HOST','_commandService','onlyLocal','randomBytes','ERROR_IMAGE','JOIN_ROOM_PERMISSION_DENIED','onMissingChangesets','getMemberID','isPermissionRej','every','push','updateMember','WordArray','_commentUpdate$','__decorateClass$g','[DataLoaderService]','ticket','_applyRemoteChangeset','COMPRESS_MUTATION_APPLY','_sheetTransformSelectionsService','assembleDocChangeset','_unlockTransition','generateSubmitChangesPath','_keySchedule','_clearUndo','_map','OpenSSL','_roomCreated$','update','encodeURIComponent','fromCollab','salt','_redoStacks','_httpService','_awaitingChangeset','fetchThroughInterceptors','copyFileMeta','_getRedoStack','_singleActiveUnitService','deserializeToCombResponse','getMember','_toggleOnline','_tryReconnect','words','CHANGESET_ACK','onMissedChangesetFetched','UNISCRIPT_RUN','title','CONNECTOR_DATA_TOO_LARGE','image/gif','capture','__decorateParam','_entities','[SyncedState]:\x20received\x20rejection.','fetch_missing','ceil','CollaborationEntity','397507VYrebR','INVALID_ARGUMENT','pad','/block/','_localeService','_iv','_onRemoteChangeset','getUnitType','HttpExport','EXCHANGE_SIGN_URL_SERVER_URL_KEY','HEARTBEAT_TIMEOUT','NOT_COLLAB','_snapshotService','unitInfo$','hostname','_entityInit$','src','pending','YUUMI_URL_COL_OUT_OF_RANGE','HELLO','onTransformState','reduce','baseRev','byteLength','[OfflineState]:\x20received\x20changeset.','conflict','assembleSheetChangeset','createOnlineState','execute','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','reverse','socket\x20open.','SheetTransformSelectionsService','_transitionLocked','eventID','dispose$','encode','__decorateClass$9','APPLY_NON_SEQUENTIAL_REVISION','_changesetReqId','_compressMutationService','length','concat','_hash','sessionStatus','CollaborationSessionService','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_state$','Error\x20on\x20receiving\x20event','32uBUQYZ','sessionStatus$','_fetchMissChangesets','USERS_LEAVE','_socketReady','__decorateParam$a','call','onTransformSelections','[PendingState]:\x20received\x20rejection.','[CollaborationState]:\x20apply\x20error!','reqId','_throwTelemetryCollaborationNewChangeset','mode','_substituteUndoStack','__defNormalProp','getActiveSheet','unsubscribe','APPLY_DUPLICATED','/-/object/-/batch_allowed','/universer-api/snapshot/','status','YUUMI_UNABLE_LOAD_URL','crypto','requireMd5','/universer-api/snapshot','findIndex','keySize','emitEvent','loginUrlKey','getSheetBlock','format','$super','liveShareOperation','[FetchMissState]','__decorateParam$3','onRemoteAck','unpad','resend','then','updatePermissionObjEvent','HEARTBEAT','UNIVER_SLIDE','_undoStacks','_startCollaboration','_handler','/universer-api/stream/file/upload','requireSession','init','sessionTicket','DataLoaderService','_members$','awaiting_with_pending','univer-pro.collaboration-client.single-active-unit-service','_onCombEvent','DEFAULT_FILE_NAME','getRandomValues','_onRemoteRejected','NOT_FOUND','_createInitialState','clone','decryptBlock','collaboration-client.local-cache-service','COMPLETION_FINISHED','Univer','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getSheetId','onSyncEditingCollabCursor','__decorateClass$7','add','stringify','focused$','UnitEmbedded','_sendingTimer','1445646JizPnW','transformUndoRedo','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','forEach','subUnitId','HEARTBEAT_INTERVAL','/allowed','searchParams','serializeCombRequest','transformMutationsWithChangeset','SNAPSHOT_URL_KEY','requireEncBase64','_unitID','set','_socketMessageSubscription','process','target','_loadSheet','online$','getTime','close$','clear','_status$','list','commentUpdateEvent','UnitSnapshot','_onConnectionFailed','BufferedBlockAlgorithm','toString','function','getInterceptPoints','Malformed\x20UTF-8\x20data','deepClone','_unitInfo$','/object/','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_HTTPService','7912647haDfzU','895342CjbxVh','_updateState','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_resendWithTimeout','sendChangesetTimeout','?url=','cryptoSecureRandomInt','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onRemoteRetry','getAllMembers','members','transformSelections','Undefined','incrementRevOfUnit','_config','_event$','awaitingChangeset','_transformRemoteChangesetByIMECache','Decryptor','commentUpdate$','appendMutation','_logService','fetching\x20missing\x20changesets\x20from\x20','__decorateClass$5','COMMENT_UPDATE','_initCloseConn','disposeWithMe','OTHER_CLIENTS_EDITING','catch','error','__decorateClass','image/jpeg','entries','loadSheet','create','ConflictState','_keyPriorReset','application/json','{fileID}','_onConflict','_instanceService','entityInit$','changesets','requireEvpkdf','SOCKET_FAILED','readAsDataURL','FETCH_MISSING','requireAes','toggleOnline','_type','ERROR_EXCEED_SIZE','encrypt','_injector','stopTime','getUnitId','defineProperty','/universer-api/authz','_telemetryService','_scheduleCompleteTimestamp','exports','_configService','_state','originalMeta','liveShareNewHost','[OfflineState]:\x20received\x20acknowledgement.','sin','_checkMissing','createEncryptor','signUrlServerUrl','UPDATE_CURSOR','Encryptor','_ENC_XFORM_MODE','_updateLocalCache','collaboration-client.config','open$','routeKey','fromCharCode','_getCtorByUniverType','UniverCollaborationClientPlugin','params','image/png','/object','delete','_createHandler','_onOffline','CHANGESET_REVISION_CONFILICT','allowed','file','compute','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','hasOwnProperty','compose','_executeRemoteChangeset','PendingState','saveImage','ALREADY_EXISTS','values','OFFLINE','CipherParams','_members','_retryCount','StreamCipher','saveChangeset','onTransformRemoteChangesetByStateCache','extractTargetFromFirstChangeset','_process','unit-cache-','SNAPSHOT_SERVER_URL_KEY','[CollaborationEntity]','CLOSE_ROOM','_rescheduleHeartbeat','_disableEditing','_transformStack','_isPermissionRej','getCurrentUser','_queuedRemoteChangesets','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','updateCollaborator','find','finalize','toggleOffline','Utf8','m2Prime','revision','univer-pro.collaboration-client.network-condition.service','updateOfflineData','_networkConditionService','CollaborationImageIoService','objectID','getSnapshotAPIPath','/universer-api/comb','_stopTelemetryCollaborationNewChangeset','Cipher','requestParams','send','__decorateClass$f','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','UNIVER_DOC','_revisionService','_clearScheduledTask','_minBufferSize','textRanges','CollaborationSocketService','__decorateClass$d','_onUserJoin','session.room-not-exists','withCredentials','[CollaborationSessionService]:\x20socket\x20error','2168832EBIqUk','dispose','getCurrentSelections','SUCCUSS','rev','waitForRoom$','LIVESHARE_NEW_HOST','enableOfflineEditing','YUUMI_RATE_OVER_LIMIT','override','workbook','_nRounds','_loadDoc','editingUnit','getTypeOfUnitDisposed$','getLatestCsReqIdBySid','DocCollaborationEntity','SEND_CHANGESET_TIMEOUT','_resendTimer','c2Prime','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','append','LIVESHARE_TERMINATE','FAIL','[CollaborationSession]','_getCurrentRevision','_localCacheService','clamp','_candidateSocket','JOIN','x-univer-host','[OfflineState]:\x20received\x20rejection.','PERMISSION_DENIED','offline','_sender','reject','substr','_transformSelections','_onMessage','onCommandExecuted','updateCursorEvent','PERMISSION_REJ','getOwnPropertyDescriptor','_reverseMap','_clearHeartbeatTimer','encryptBlock','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','session.join-failed','PY_RUNTIME_SCRIPT_ERROR','setCurrentUser','image/jpg','_commentService','hasher','/unit/','_nDataBytes','AuthzIoHttpService','UNKNOWN_CODE','_cipher','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','SYNCED','_createSocketURL','CollaborativeUndoRedoService','CommentService','result','SyncedState','_change$','JOIN_ROOM_FAILED','algo','_initDependencies','_waitCount','processBlock','put','summaryChangesetSize','_shouldReportTelemetry','parse','getUnitOnRev','from','Base','IDLE','_waitForHeartbeatResponse','CONFLICT','_lockTransition','byteOffset','_telemetryInfo','NO_OTHER_CLIENTS_EDITING','name','_submitChangeset','complete','_sessions','isArray','updatePermissionPoint','UNKNOWN_CMD','_onConnectionOpen','_clearCollaborationTimeoutTimer','getDeserializedSheetBlock','SNAPSHOT_INVALID_SNAPSHOT','\x20-\x20','_initUnitPermissionChange','__Key__','onTransformIME','loadDoc','getUnitStatus$','state','_createSocket','_userManagerService','EvpKDF','telemetry\x20info\x20is\x20not\x20initialized','_getAPIPrefix','_getSessionTicket','enc','onload','disableLocalCache','key','debug','_substituteRedoStack','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','objectActions','href','localCacheService','_getUploadFileURL','origin','collaborators','session','INGEST','__decorateParam$f','_startTelemetryCollaborationNewChangeset','setShowComponents','/role','JOIN_ROOM_NOT_EXISTS','reset','/new_changes','_collaborationPaused','_syncEditingCollabCursor','_onLocalMutation','userID','RECV','fetchMissingChangesets','UUID','_getUndoStack','OPTIONAL','_handlerCallback','_append','_onRecvEvent','blockSize','UNIVER_SHEET','_clearRedo','_univerInstanceService','__esModule','__decorateParam$9','location','save\x20fail\x20reason\x20is\x20','_collaborationSessionService','wsSessionTicketUrl','ONLINE','onTransformRemoteChangesetByIMECache','interceptor','_socket','_getSignURL','onSendChangeset','asObservable','onRemoteChangeset','close','formatter','message$','code','putCollaborators','OTHER_CLIENT_EDITING','string','TOO_MANY_REQUESTS','abs','_remoteChangesetQueue','PERSON','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','COLLAB_WEB_SOCKET_URL','prototype','NoPadding','_mode','LICENSE_EXPORT_SIZE_EXCEEDED','_prevBlock','_oKey','handleCloseConn','synced','status$','\x0aAfter:\x20','_sessionStatus$','SerializableCipher','uploadFileServerUrl','_changesetSessionId','_onFetchMissResult','uniscriptRunEvent','next','_doFinalize','UPDATE_PERMISSION_OBJ','AwaitingState','confirm','_showConflictNotification','msCrypto','_clearLocalCache','_createHmacHelper','PasswordBasedCipher','reconnect','_socketService','/collaborator','xorBlock','registerHTTPInterceptor','localeService','PSEUDO_FETCH_MISSING_RESULT','splice','_key','getCollabEntity','_sendHeartbeat','_initRequestHeader','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','charCodeAt','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','UNDEFINED','getConfig','getRoom','[CollaborationSessionService]','Random\x20bytes\x20length\x20must\x20be\x20>=\x2016','_sendHeartbeatTimer','onLocalMutation','MD5','_pendingMutations','replace','has','_initMergeInterceptor','avatar','170605GvNmMO','actions','HmacMD5','cfg','UNIVER_UNKNOWN','__decorateParam$i','unknown','get','_onUserLeave','APPLY_REVISION_CONFILICT','AwaitingWithPendingState','UNIVER_PROJECT','data','_replayCachedMutations','MentionIoHttpService','Could\x20not\x20dynamically\x20require\x20\x22','socketService','now','post','_replaceFileID','getResourcesRequest','_updateStatus','onCommentUpdate','_schedule','_collabSessionService','__decorateClass$i','__decorateClass$2','subscribe','_retryConnectingTimer','apply','_doReset','INTERNAL_ERROR','AuthServerService','getLocalCacheKey','HttpImport','ws://127.0.0.1:8000/universer-api/comb/connect','LIVESHARE_OPERATION','_socket$','sid','unitId','ERROR_IMAGE_TYPE','PENDING','getImageSourceCache','__decorateParam$d','FileNameController','__decorateParam$1','_getDownloadEndpointURL','_getSendChangesetTimeout','createInstance','/universer-api/user/session-ticket','LICENSE_DISTRO_REJECTED','cmd','createTimerObservable$','APPLY_PERMISSION_DENIED','change$','SNAPSHOT_HAS_BEEN_REMOVED','AUTHZ_URL_KEY','_imageSourceCache','_decreaseWaiting','unitID','_incrementRevisionNumber','action','__decorateParam$7','createCollaborator'];_0x33e4=function(){return _0x5343e3;};return _0x33e4();}export{AUTHZ_URL_KEY,AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,COLLAB_SUBMIT_CHANGESET_URL_KEY,COLLAB_WEB_SOCKET_URL_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,LOGIN_URL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SEND_CHANGESET_TIMEOUT_KEY,SNAPSHOT_SERVER_URL_KEY,SNAPSHOT_URL_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};