@univerjs-pro/collaboration-client 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +17 -17
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x23cbae=_0x3f49;(function(_0x5a4fa6,_0xdb1ff5){const _0x2beeae=_0x3f49,_0x2102c5=_0x5a4fa6();while(!![]){try{const _0x296095=-parseInt(_0x2beeae(0x346))/0x1+parseInt(_0x2beeae(0xfd))/0x2+-parseInt(_0x2beeae(0x2d8))/0x3+-parseInt(_0x2beeae(0x384))/0x4*(-parseInt(_0x2beeae(0x129))/0x5)+parseInt(_0x2beeae(0x29d))/0x6+parseInt(_0x2beeae(0x210))/0x7*(-parseInt(_0x2beeae(0x381))/0x8)+parseInt(_0x2beeae(0x2c3))/0x9;if(_0x296095===_0xdb1ff5)break;else _0x2102c5['push'](_0x2102c5['shift']());}catch(_0x23a260){_0x2102c5['push'](_0x2102c5['shift']());}}}(_0x6cb7,0x90cae));var ti=Object[_0x23cbae(0xe2)],si=(_0x385d77,_0x3ae15e,_0x18fc79)=>_0x3ae15e in _0x385d77?ti(_0x385d77,_0x3ae15e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18fc79}):_0x385d77[_0x3ae15e]=_0x18fc79,l=(_0xabd534,_0xd2eed9,_0x190764)=>si(_0xabd534,typeof _0xd2eed9!=_0x23cbae(0x1d2)?_0xd2eed9+'':_0xd2eed9,_0x190764);import{createIdentifier as _0x1d1962,Inject as _0x57082d,Disposable as _0xbfc176,DisposableCollection as _0x1e2532,toDisposable as _0xad1b53,IConfigService as _0x465ebb,ILogService as _0x2ed9bc,UserManagerService as _0x235fd8,UniverInstanceType as _0x2eb231,IUniverInstanceService as _0xf0f4c1,LocaleService as _0x1ba649,Optional as _0x187eb8,RxDisposable as _0x3a262a,Injector as _0x5aca14,Tools as _0x2d9f70,ILocalStorageService as _0x16bea1,ICommandService as _0x2c218a,JSONX as _0x26e9d3,CommandType as _0x406a66,IPermissionService as _0x3b2db3,IUndoRedoService as _0x2b3c29,sequenceExecute as _0x3b5adf,debounce as _0x23acc5,Rectangle as _0x26d787,COLORS as _0x56bec4,ColorKit as _0xff1c14,ThemeService as _0xdd136e,fromEventSubject as _0x4a2855,useDependency as _0x32c0cd,connectInjector as _0x2fb98b,Workbook as _0x54fdc9,isInternalEditorID as _0x45fcbc,LocalUndoRedoService as _0x43badd,IContextService as _0x35bd8b,DependentOn as _0x375d34,Plugin as _0x23b29f,touchDependencies as _0xb5fd96,IAuthzIoService as _0x562510,mergeOverrideWithDependencies as _0x542d4d}from'@univerjs/core';import{Subject as _0x4061c1,merge as _0x395f71,takeUntil as _0x5b993c,BehaviorSubject as _0x169308,distinctUntilChanged as _0x95638f,fromEvent as _0x19a309,map as _0x29443,shareReplay as _0x153603,take as _0x333f84,of as _0x4a5add,debounceTime as _0x43ba67,filter as _0x2258ad,switchMap as _0x338777,combineLatest as _0x380b37,concatMap as _0x286f48,mapTo as _0x483d69}from'rxjs';import{map as _0x57b187,take as _0x3d181d,filter as _0x4eb371,delay as _0x3f8011,throttleTime as _0x437201,takeUntil as _0x5198ca,switchMap as _0x38d5ac}from'rxjs/operators';import{MessageType as _0x135398,Tooltip as _0x115533}from'@univerjs/design';import{IBeforeCloseService as _0x5d89d3,IMessageService as _0x2493e9,INotificationService as _0x5cf6e8,useObservable as _0x5a882d,BuiltInUIPart as _0x1cbaaf,IUIPartsService as _0x49417e}from'@univerjs/ui';import{HTTPService as _0x1b70f6,WebSocketService as _0x556be8,MergeInterceptorFactory as _0x5afcd5,HTTPRequest as _0x22675a,IHTTPImplementation as _0x58f9ac,XHRHTTPImplementation as _0x3fa144,ThresholdInterceptorFactory as _0xa20eb}from'@univerjs/network';import{CollaborationEvent as _0x44cf74,parseChangesetToProtocol as _0x10373e,ISnapshotServerService as _0x5f1087,isTransformMutationFailure as _0x426132,isTransformMutationsWithChangesetSuccess as _0x24c912,ITransformService as _0x3ce5fa,RevisionService as _0x2056a3,mapDocumentTypeToUniverType as _0x2f6b1e,isTransformChangesetsSuccess as _0xf2155e,CompressMutationService as _0xa37832,parseProtocolChangeset as _0x66b1e7,SnapshotService as _0x40068b,textEncoder as _0x510326,b64DecodeUnicode as _0x45b123,isTransformMutationsWithChangesetFailure as _0x4e72ac,UniverCollaborationPlugin as _0x6a4b44}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x33d583}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x3d5f40,DocStateChangeManagerService as _0x2e5857,NodePositionConvertToCursor as _0x57bfe0,isValidRectRange as _0x153d05,NodePositionConvertToRectRange as _0x37669e,TEXT_RANGE_LAYER_INDEX as _0x252f9e,SetDocZoomRatioOperation as _0x4a3846}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x34b058,SetSelectionsOperation as _0x58be78,InsertSheetMutation as _0xecee35,EmptyMutation as _0x37478b,WorkbookEditablePermission as _0x41b6ca,RefRangeService as _0x178c8d,EffectRefRangId as _0x100ffd,handleIRemoveRow as _0x575e9e,handleIRemoveCol as _0x33a15e,handleMoveRange as _0x4574e3,handleInsertRow as _0x24f654,handleInsertRangeMoveRight as _0x197b21,handleInsertRangeMoveDown as _0x378def,handleInsertCol as _0x525801,handleDeleteRangeMoveUp as _0xce5f80,handleDeleteRangeMoveLeft as _0x37de89,runRefRangeMutations as _0x368451,SetWorksheetActivateCommand as _0x40f95f}from'@univerjs/sheets';import{IRenderManagerService as _0x241377,Shape as _0xb8fdb8,Rect as _0x8fe6a0,getColor as _0x5d3027,RegularPolygon as _0xc7b37d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x106d8d,Vector2 as _0x36e9ae}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x5502c3,RichTextEditingMutation as _0x520c9a,SetTextSelectionsOperation as _0x212257,DocSkeletonManagerService as _0x152335}from'@univerjs/docs';import{ImageSourceType as _0xa7f0d8,ImageUploadStatusType as _0x497ab7,IImageIoService as _0x50ad99}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x177623,serializeRangeWithSheet as _0x10f780}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x5d067c,VIEWPORT_KEY as _0x407db2,getCoordByCell as _0x198821,getSheetObject as _0x4d0c7e,SheetPermissionInitController as _0x204f73}from'@univerjs/sheets-ui';import _0x5c5e4e,{forwardRef as _0x24db44,useRef as _0xa945c8,createElement as _0x39bd90,useCallback as _0x40a9ea}from'react';import{IRemoteInstanceService as _0x5e7b1c}from'@univerjs/rpc';import{getAttachHeader as _0xa572df}from'@univerjs-pro/license';const Sn=_0x23cbae(0x3c5),pn='/universer-api/snapshot',vn=_0x23cbae(0x22e),La='SEND_CHANGESET_TIMEOUT',In=0x7d0,En='COLLAB_WEB_SOCKET_URL',Cn=_0x23cbae(0x20d),bn='HEARTBEAT_INTERVAL',Tn=0x7530,Ls=_0x23cbae(0x3d9),$s=0x4e20,Rn=0x4e20,On=_0x23cbae(0x1b5),Dn=0x3,wn=_0x23cbae(0x2e2),Pn=0x3e8,yn=_0x23cbae(0x2ec),Un=_0x23cbae(0x25e),Nn=_0x23cbae(0x39e),Mn=_0x23cbae(0x3f4);var js=(_0x57b383=>(_0x57b383[_0x57b383[_0x23cbae(0x368)]=0x0]=_0x23cbae(0x368),_0x57b383[_0x57b383['OK']=0x1]='OK',_0x57b383[_0x57b383[_0x23cbae(0x1b4)]=0x2]=_0x23cbae(0x1b4),_0x57b383[_0x57b383[_0x23cbae(0x3b0)]=0x3]='PERMISSION_DENIED',_0x57b383[_0x57b383['NOT_FOUND']=0x4]=_0x23cbae(0x40c),_0x57b383[_0x57b383[_0x23cbae(0x2a7)]=0x5]='UNAUTHENTICATED',_0x57b383[_0x57b383[_0x23cbae(0x2b5)]=0x6]=_0x23cbae(0x2b5),_0x57b383[_0x57b383[_0x23cbae(0x110)]=0x7]=_0x23cbae(0x110),_0x57b383[_0x57b383[_0x23cbae(0x378)]=0x8]=_0x23cbae(0x378),_0x57b383[_0x57b383['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x57b383[_0x57b383[_0x23cbae(0x20b)]=0x1389]=_0x23cbae(0x20b),_0x57b383[_0x57b383[_0x23cbae(0x2da)]=0x1771]=_0x23cbae(0x2da),_0x57b383[_0x57b383[_0x23cbae(0x29a)]=0x1772]=_0x23cbae(0x29a),_0x57b383[_0x57b383['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x23cbae(0x333),_0x57b383[_0x57b383['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x57b383[_0x57b383['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x23cbae(0x41a),_0x57b383[_0x57b383[_0x23cbae(0x2c5)]=0x1b5b]=_0x23cbae(0x2c5),_0x57b383[_0x57b383[_0x23cbae(0x3f6)]=0x1b5c]=_0x23cbae(0x3f6),_0x57b383[_0x57b383[_0x23cbae(0x280)]=0x1b5d]=_0x23cbae(0x280),_0x57b383[_0x57b383[_0x23cbae(0x2ab)]=0x1f41]=_0x23cbae(0x2ab),_0x57b383[_0x57b383[_0x23cbae(0x211)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x57b383[_0x57b383[_0x23cbae(0x184)]=0x232a]=_0x23cbae(0x184),_0x57b383[_0x57b383[_0x23cbae(0x2dd)]=0x232b]=_0x23cbae(0x2dd),_0x57b383[_0x57b383[_0x23cbae(0x228)]=0x232c]=_0x23cbae(0x228),_0x57b383[_0x57b383[_0x23cbae(0x44e)]=0x232d]=_0x23cbae(0x44e),_0x57b383[_0x57b383[_0x23cbae(0x2a3)]=0x2711]=_0x23cbae(0x2a3),_0x57b383[_0x57b383[_0x23cbae(0x192)]=0x2712]=_0x23cbae(0x192),_0x57b383[_0x57b383[_0x23cbae(0x3d8)]=0x2713]=_0x23cbae(0x3d8),_0x57b383[_0x57b383[_0x23cbae(0xf8)]=0x2714]=_0x23cbae(0xf8),_0x57b383[_0x57b383[_0x23cbae(0x297)]=-0x1]='UNRECOGNIZED',_0x57b383))(js||{}),k=(_0x1a7af3=>(_0x1a7af3[_0x1a7af3[_0x23cbae(0x3a3)]=0x0]='UNIVER_UNKNOWN',_0x1a7af3[_0x1a7af3[_0x23cbae(0x12f)]=0x1]=_0x23cbae(0x12f),_0x1a7af3[_0x1a7af3[_0x23cbae(0x34d)]=0x2]=_0x23cbae(0x34d),_0x1a7af3[_0x1a7af3[_0x23cbae(0x2fe)]=0x3]='UNIVER_SLIDE',_0x1a7af3[_0x1a7af3['UNIVER_PROJECT']=0x4]=_0x23cbae(0x420),_0x1a7af3[_0x1a7af3[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x1a7af3))(k||{}),I=(_0x12b1fb=>(_0x12b1fb[_0x12b1fb[_0x23cbae(0x1f0)]=0x0]=_0x23cbae(0x1f0),_0x12b1fb[_0x12b1fb[_0x23cbae(0x145)]=0x1]='HELLO',_0x12b1fb[_0x12b1fb['JOIN']=0x2]=_0x23cbae(0x2e0),_0x12b1fb[_0x12b1fb[_0x23cbae(0x12c)]=0x3]='LEAVE',_0x12b1fb[_0x12b1fb['INGEST']=0x4]=_0x23cbae(0x1a6),_0x12b1fb[_0x12b1fb['HEARTBEAT']=0x5]='HEARTBEAT',_0x12b1fb[_0x12b1fb[_0x23cbae(0x343)]=0x6]=_0x23cbae(0x343),_0x12b1fb[_0x12b1fb[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x12b1fb))(I||{}),Vt=(_0x52528f=>(_0x52528f[_0x52528f['UNKNOWN_CODE']=0x0]=_0x23cbae(0x2a9),_0x52528f[_0x52528f['OK']=0x1]='OK',_0x52528f[_0x52528f['FAIL']=0x2]='FAIL',_0x52528f[_0x52528f[_0x23cbae(0x297)]=-0x1]='UNRECOGNIZED',_0x52528f))(Vt||{}),xs=(_0x2e85cd=>(_0x2e85cd[_0x2e85cd['Undefined']=0x0]='Undefined',_0x2e85cd[_0x2e85cd[_0x23cbae(0x269)]=0x1]=_0x23cbae(0x269),_0x2e85cd[_0x2e85cd['HttpExport']=0x2]=_0x23cbae(0x31d),_0x2e85cd[_0x2e85cd[_0x23cbae(0x1b1)]=0x3]=_0x23cbae(0x1b1),_0x2e85cd[_0x2e85cd[_0x23cbae(0x424)]=0x4]=_0x23cbae(0x424),_0x2e85cd[_0x2e85cd[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x2e85cd))(xs||{});const $='collaboration-client.config',An={};function Ln(_0x53e99f){const _0x1e5e96=_0x23cbae;var _0x143b00,_0x34e587,_0x4f8bde,_0x455f29;const _0x6fe111=_0x53e99f[_0x1e5e96(0x32d)],_0x5c9dfe=JSON['parse'](_0x6fe111);switch(_0x5c9dfe[_0x1e5e96(0x162)]){case I[_0x1e5e96(0x26d)]:case I[_0x1e5e96(0x145)]:{const _0x50d5d1=_0x5c9dfe['infoRsp'];return{..._0x5c9dfe,'data':_0x50d5d1,'cmd':_0x5c9dfe['cmd']};}case I['JOIN']:{const _0xf31544=_0x5c9dfe[_0x1e5e96(0x354)];return{..._0x5c9dfe,'data':_0xf31544,'cmd':_0x5c9dfe['cmd']};}case I[_0x1e5e96(0x343)]:{const _0x310182=_0x5c9dfe['collaMsg'];switch(_0x310182[_0x1e5e96(0x3f0)]){case _0x44cf74[_0x1e5e96(0x247)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x143b00=_0x310182[_0x1e5e96(0x106)])==null?void 0x0:_0x143b00['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x198)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x34e587=_0x310182[_0x1e5e96(0x25c)])==null?void 0x0:_0x34e587['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x1d6)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x4f8bde=_0x310182[_0x1e5e96(0xee)])==null?void 0x0:_0x4f8bde['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74['CHANGESET_REJ']:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x455f29=_0x310182[_0x1e5e96(0x1ac)])==null?void 0x0:_0x455f29['cs']},'cmd':_0x5c9dfe['cmd']};case _0x44cf74['UPDATE_CURSOR']:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['updateCursorEvent']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x3ed)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x2ad)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x25a)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x1cd)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0xec)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x11d)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74['LIVESHARE_FETCH_OPERATIONS']:case _0x44cf74[_0x1e5e96(0x22d)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['liveShareOperation']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x20f)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x11d)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x314)]:return{..._0x5c9dfe,'data':_0x310182,'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x335)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x144)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x436)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x2f3)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x34f)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['shouldCloseConn']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};default:return _0x5c9dfe;}}default:return _0x5c9dfe;}}function $n(_0x296f0e){const _0x252d3d=_0x23cbae;switch(_0x296f0e['cmd']){case I[_0x252d3d(0x26d)]:case I[_0x252d3d(0x145)]:return JSON[_0x252d3d(0x18a)]({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)]});case I[_0x252d3d(0x1a6)]:{let _0x3bc036;switch(_0x296f0e['data'][_0x252d3d(0x3f0)]){case _0x44cf74[_0x252d3d(0x1d4)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x1d4)],'updateCursorEvent':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x25a)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x25a)],'leaveEvent':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x3ed)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x3ed)],'joinEvent':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0xec)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0xec)],'liveShareNewHost':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x22d)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x22d)],'liveShareOperation':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x20f)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x20f)],'liveShareTerminate':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74['LIVESHARE_REQUEST_HOST']:{_0x3bc036={'eventID':_0x44cf74['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0xf2)]:{_0x3bc036={'eventID':_0x44cf74['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x3bc036={'eventID':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x3f0)]};}return JSON['stringify']({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e['routeKey'],'collaMsg':_0x3bc036});}case I['JOIN']:return JSON['stringify']({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)],'joinReq':_0x296f0e['data']});case I[_0x252d3d(0x12c)]:return JSON[_0x252d3d(0x18a)]({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)],'leaveReq':_0x296f0e[_0x252d3d(0x32d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var jn=Object[_0x23cbae(0xe2)],xn=Object[_0x23cbae(0x36a)],Hn=(_0x351390,_0x315a1b,_0x2cf2b2,_0x4e82fa)=>{const _0x5b67c1=_0x23cbae;for(var _0x4b0c95=_0x4e82fa>0x1?void 0x0:_0x4e82fa?xn(_0x315a1b,_0x2cf2b2):_0x315a1b,_0x59dbc6=_0x351390[_0x5b67c1(0xed)]-0x1,_0x48357d;_0x59dbc6>=0x0;_0x59dbc6--)(_0x48357d=_0x351390[_0x59dbc6])&&(_0x4b0c95=(_0x4e82fa?_0x48357d(_0x315a1b,_0x2cf2b2,_0x4b0c95):_0x48357d(_0x4b0c95))||_0x4b0c95);return _0x4e82fa&&_0x4b0c95&&jn(_0x315a1b,_0x2cf2b2,_0x4b0c95),_0x4b0c95;},Oe=(_0x5b5a7c,_0x3f43cf)=>(_0x376475,_0x2798e3)=>_0x3f43cf(_0x376475,_0x2798e3,_0x5b5a7c);function _0x3f49(_0xc725f0,_0x17d7e1){const _0x6cb7a3=_0x6cb7();return _0x3f49=function(_0x3f492e,_0x40c0b9){_0x3f492e=_0x3f492e-0xd7;let _0x3bb850=_0x6cb7a3[_0x3f492e];return _0x3bb850;},_0x3f49(_0xc725f0,_0x17d7e1);}const Hs=_0x1d1962(_0x23cbae(0x2db));function kn(_0x3b007f,_0x328f7a,_0x27cdd0){const _0x21cad7=_0x23cbae;return _0x3b007f+'/'+_0x328f7a+_0x21cad7(0xdf)+_0x27cdd0+_0x21cad7(0x137);}let Ct=class extends _0xbfc176{constructor(_0x5c931d,_0x530762,_0x26140d,_0x2e1104,_0x24f393){const _0x3f69ee=_0x23cbae;super(),this[_0x3f69ee(0x450)]=_0x5c931d,this[_0x3f69ee(0x242)]=_0x530762,this['_configService']=_0x26140d,this[_0x3f69ee(0x135)]=_0x2e1104,this[_0x3f69ee(0x42c)]=_0x24f393;}[_0x23cbae(0x43a)](_0x20ba05){const _0x317442=_0x23cbae,_0x441e74=this['_ws'][_0x317442(0x43a)](_0x20ba05);if(!_0x441e74)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1abf29=new _0x1e2532(),_0x4c208c=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x1e6)][_0x317442(0x334)](_0x587292=>_0x4c208c[_0x317442(0x131)](_0x587292))),_0x1abf29[_0x317442(0x302)](_0xad1b53(()=>_0x4c208c[_0x317442(0x173)]()));const _0x526f0d=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x161)]['subscribe'](_0x6d7314=>_0x526f0d[_0x317442(0x131)](_0x6d7314))),_0x1abf29['add'](_0xad1b53(()=>_0x526f0d[_0x317442(0x173)]()));const _0x278124=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x389)]['subscribe'](_0x473f4a=>{const _0x1521b5=_0x317442,_0x3d6088=Ln(_0x473f4a);_0x278124[_0x1521b5(0x131)](_0x3d6088);})),_0x1abf29[_0x317442(0x302)](_0xad1b53(()=>_0x278124[_0x317442(0x173)]()));let _0x38d43a;const _0x30e0ab=()=>{const _0x5565f5=_0x317442;_0x526f0d[_0x5565f5(0x131)](new Event(_0x5565f5(0x17c))),_0x4c208c['next'](new CloseEvent(_0x5565f5(0x17c))),_0x38d43a[_0x5565f5(0x2c2)]();};return _0x38d43a={'memberID':'','close$':_0x4c208c[_0x317442(0x341)](),'error$':_0x526f0d[_0x317442(0x341)](),'open$':_0x441e74[_0x317442(0x2a2)],'message$':_0x278124[_0x317442(0x341)](),'send':_0x4d1b30=>{const _0x290ed0=_0x317442;if(_0x4d1b30[_0x290ed0(0x162)]===I[_0x290ed0(0x1a6)]){if(_0x4d1b30['data'][_0x290ed0(0x3f0)]===_0x44cf74[_0x290ed0(0x1f2)]){this[_0x290ed0(0x3f9)](_0x38d43a,_0x4d1b30[_0x290ed0(0x32d)])[_0x290ed0(0x11c)](_0x29bf6e=>{const _0x55d3d9=_0x290ed0;this[_0x55d3d9(0x135)][_0x55d3d9(0x43f)](_0x29bf6e),_0x30e0ab();});return;}if(_0x4d1b30[_0x290ed0(0x32d)]['eventID']===_0x44cf74['FETCH_MISSING']){const _0x8c245f=_0x4d1b30[_0x290ed0(0x32d)];this[_0x290ed0(0x2e9)](_0x8c245f)[_0x290ed0(0x149)](_0x46f247=>{const _0x514ec0=_0x290ed0;_0x278124['next']({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x8c245f['data']['unitID'],'routeType':'','data':{'eventID':_0x44cf74[_0x514ec0(0x319)],'data':{'changesets':_0x46f247}}});})[_0x290ed0(0x11c)](_0x4192d5=>{const _0x1c2716=_0x290ed0;this[_0x1c2716(0x135)][_0x1c2716(0x43f)](_0x4192d5),_0x30e0ab();});return;}}_0x441e74[_0x290ed0(0x113)]($n(_0x4d1b30));},'close':()=>{const _0x1e8716=_0x317442;_0x441e74[_0x1e8716(0x2c2)](),_0x1abf29[_0x1e8716(0x35a)]();}},_0x38d43a;}async[_0x23cbae(0x3f9)](_0x48a63f,_0x3f5350){const _0x367a70=_0x23cbae;var _0x2fa297,_0x4387c0;const {unitType:_0x5847b7,unitID:_0xfd98c5,changeset:_0x40aa29}=_0x3f5350['data'],_0x3483fa={'unitID':_0xfd98c5,'memberID':_0x48a63f[_0x367a70(0x104)],'type':_0x5847b7,'changeset':_0x10373e(_0x40aa29)},_0x357170=this[_0x367a70(0x44c)][_0x367a70(0x266)](yn),_0x13e1c7=this[_0x367a70(0x44c)]['getConfig']($),_0x1a4c2c=kn((_0x4387c0=(_0x2fa297=_0x13e1c7==null?void 0x0:_0x13e1c7[_0x367a70(0x276)])!=null?_0x2fa297:_0x357170)!=null?_0x4387c0:Un,_0x5847b7,_0xfd98c5);try{await this['_http'][_0x367a70(0x1e5)](_0x1a4c2c,{'body':_0x3483fa});}catch(_0xefce4d){throw this[_0x367a70(0x135)][_0x367a70(0x43f)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0xefce4d;}}async['_fetchMissChangesets'](_0x23d561){const _0x59ceca=_0x23cbae,{unitID:_0x3b52d2,from:_0x34ce4b,to:_0x5f21c9,unitType:_0x20e76d}=_0x23d561['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3b52d2,'type':_0x20e76d,'from':_0x34ce4b,'to':_0x5f21c9}))[_0x59ceca(0x439)];}};Ct=Hn([Oe(0x0,_0x57082d(_0x1b70f6)),Oe(0x1,_0x57082d(_0x556be8)),Oe(0x2,_0x465ebb),Oe(0x3,_0x2ed9bc),Oe(0x4,_0x5f1087)],Ct);const Bn=_0x23cbae(0x134);function Vn(_0x26e840){const _0x59d475=_0x23cbae;return JSON[_0x59d475(0x18a)](_0x26e840)[_0x59d475(0xed)];}class ks{constructor(){const _0x471703=_0x23cbae;l(this,_0x471703(0x23b),new _0x4061c1()),l(this,_0x471703(0x3e9),this[_0x471703(0x23b)][_0x471703(0x341)]());}[_0x23cbae(0x25b)](_0x1ef96d){const _0x58a21f=_0x23cbae;this[_0x58a21f(0x23b)][_0x58a21f(0x131)](_0x1ef96d);}}var Fn=Object[_0x23cbae(0xe2)],Wn=Object[_0x23cbae(0x36a)],Gn=(_0x38435e,_0x5e84eb,_0x4c8a9b,_0x10e795)=>{const _0x12e2ef=_0x23cbae;for(var _0x29c025=_0x10e795>0x1?void 0x0:_0x10e795?Wn(_0x5e84eb,_0x4c8a9b):_0x5e84eb,_0x1a797e=_0x38435e[_0x12e2ef(0xed)]-0x1,_0x2649fe;_0x1a797e>=0x0;_0x1a797e--)(_0x2649fe=_0x38435e[_0x1a797e])&&(_0x29c025=(_0x10e795?_0x2649fe(_0x5e84eb,_0x4c8a9b,_0x29c025):_0x2649fe(_0x29c025))||_0x29c025);return _0x10e795&&_0x29c025&&Fn(_0x5e84eb,_0x4c8a9b,_0x29c025),_0x29c025;},as=(_0x8242c5,_0x2faf8f)=>(_0x1f1fab,_0x2b0a53)=>_0x2faf8f(_0x1f1fab,_0x2b0a53,_0x8242c5);let ce=class extends _0xbfc176{constructor(_0x4b0bda,_0x392ce2){const _0x5286b1=_0x23cbae;super(),l(this,_0x5286b1(0x429),new Map()),(this[_0x5286b1(0x2ce)]=_0x4b0bda,this[_0x5286b1(0x416)]=_0x392ce2,this[_0x5286b1(0x165)](_0xad1b53(_0x395f71(this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231[_0x5286b1(0x34d)])[_0x5286b1(0x18c)](_0x57b187(_0x4072c6=>_0x4072c6[_0x5286b1(0x183)]())),this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231['UNIVER_DOC'])[_0x5286b1(0x18c)](_0x57b187(_0x4b61c3=>_0x4b61c3[_0x5286b1(0x183)]())),this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231[_0x5286b1(0x2fe)])[_0x5286b1(0x18c)](_0x57b187(_0x1d771b=>_0x1d771b[_0x5286b1(0x183)]())))['subscribe'](_0x186e16=>this[_0x5286b1(0x2ac)](_0x186e16)))));}[_0x23cbae(0x395)](_0x24a4db){const _0x4b30fd=_0x23cbae;this[_0x4b30fd(0x416)][_0x4b30fd(0x395)](_0x24a4db);}[_0x23cbae(0x177)](){const _0x4c0bd1=_0x23cbae;return this[_0x4c0bd1(0x416)][_0x4c0bd1(0x177)]();}[_0x23cbae(0x300)](_0x408d31,_0x22fcea){const _0xafecfb=_0x23cbae;let _0x41e686=this[_0xafecfb(0x429)][_0xafecfb(0x3fd)](_0x408d31);_0x41e686||(_0x41e686=new Yn(),this[_0xafecfb(0x429)]['set'](_0x408d31,_0x41e686)),_0x41e686['updateMember'](_0x22fcea);}[_0x23cbae(0x329)](_0x2072eb,_0x2b8688){const _0x36fe45=_0x23cbae,_0x165cc2=this[_0x36fe45(0x429)][_0x36fe45(0x3fd)](_0x2072eb);_0x165cc2&&_0x165cc2[_0x36fe45(0x329)](_0x2b8688);}[_0x23cbae(0x1f9)](_0x3a617e){const _0x5884d3=_0x23cbae;return this[_0x5884d3(0x429)][_0x5884d3(0x3fd)](_0x3a617e);}['getMember'](_0x3d0140,_0x5bc6b0){const _0x2744a8=_0x23cbae,_0x5f380c=this[_0x2744a8(0x429)][_0x2744a8(0x3fd)](_0x3d0140);if(_0x5f380c)return _0x5f380c['getMember'](_0x5bc6b0);}[_0x23cbae(0x2ac)](_0x52d2cb){const _0x5ddac4=_0x23cbae,_0x40332f=this[_0x5ddac4(0x429)]['get'](_0x52d2cb);_0x40332f&&(_0x40332f['dispose'](),this[_0x5ddac4(0x429)][_0x5ddac4(0x1a8)](_0x52d2cb));}[_0x23cbae(0x35a)](){const _0x2d9e9b=_0x23cbae;this[_0x2d9e9b(0x429)][_0x2d9e9b(0x273)](_0x16b9e1=>_0x16b9e1[_0x2d9e9b(0x35a)]()),this[_0x2d9e9b(0x429)][_0x2d9e9b(0x263)]();}};ce=Gn([as(0x0,_0xf0f4c1),as(0x1,_0x57082d(_0x235fd8))],ce);class Yn extends _0xbfc176{constructor(){const _0x1791b0=_0x23cbae;super(...arguments),l(this,_0x1791b0(0x3dd),new Map());}[_0x23cbae(0x35a)](){const _0x4544a6=_0x23cbae;this['_members'][_0x4544a6(0x263)]();}[_0x23cbae(0x300)](_0x3c622e){const _0x1b523c=_0x23cbae;this[_0x1b523c(0x3dd)][_0x1b523c(0x111)](_0x3c622e[_0x1b523c(0x104)],_0x3c622e);}[_0x23cbae(0x329)](_0x214db4){const _0x40051a=_0x23cbae;this[_0x40051a(0x3dd)][_0x40051a(0x1a8)](_0x214db4);}['getMember'](_0x4cf507){const _0x4b5687=_0x23cbae;return this['_members'][_0x4b5687(0x3fd)](_0x4cf507);}}var Kn=Object['defineProperty'],Xn=Object[_0x23cbae(0x36a)],qn=(_0x12af0e,_0x328dce,_0x46bf99,_0x367777)=>{const _0x4b7dbf=_0x23cbae;for(var _0x359be4=_0x367777>0x1?void 0x0:_0x367777?Xn(_0x328dce,_0x46bf99):_0x328dce,_0x860a69=_0x12af0e[_0x4b7dbf(0xed)]-0x1,_0x3b6c5c;_0x860a69>=0x0;_0x860a69--)(_0x3b6c5c=_0x12af0e[_0x860a69])&&(_0x359be4=(_0x367777?_0x3b6c5c(_0x328dce,_0x46bf99,_0x359be4):_0x3b6c5c(_0x359be4))||_0x359be4);return _0x367777&&_0x359be4&&Kn(_0x328dce,_0x46bf99,_0x359be4),_0x359be4;},J=(_0x27b6b7,_0x499c1a)=>(_0x41798c,_0x5cebad)=>_0x499c1a(_0x41798c,_0x5cebad,_0x27b6b7),Y=(_0x43f9b3=>(_0x43f9b3[_0x43f9b3['IDLE']=0x0]=_0x23cbae(0x271),_0x43f9b3[_0x43f9b3['JOINING']=0x1]='JOINING',_0x43f9b3[_0x43f9b3[_0x23cbae(0x1a9)]=0x2]='OFFLINE',_0x43f9b3[_0x43f9b3[_0x23cbae(0x12d)]=0x3]=_0x23cbae(0x12d),_0x43f9b3))(Y||{});let bt=class extends _0x3a262a{constructor(_0xf2829,_0x312e79,_0x5ab5a3,_0x480b77,_0x259515,_0x402a71,_0x655860,_0x5bbc4b,_0x344467,_0x385aa0){const _0x422c9b=_0x23cbae;super(),l(this,_0x422c9b(0x1be),new _0x169308(0x0)),l(this,_0x422c9b(0x18f),this['_sessionStatus$'][_0x422c9b(0x341)]()),l(this,'_event$',new _0x4061c1()),l(this,_0x422c9b(0x29c),this[_0x422c9b(0x310)][_0x422c9b(0x341)]()),l(this,'_socket'),l(this,_0x422c9b(0x1e2)),l(this,'_collaborationTimeoutTimer'),l(this,_0x422c9b(0x32a),!0x1),l(this,_0x422c9b(0x139),null),(this[_0x422c9b(0x38d)]=_0xf2829,this[_0x422c9b(0x135)]=_0x5ab5a3,this['_beforeCloseService']=_0x480b77,this['_messageService']=_0x259515,this[_0x422c9b(0x44c)]=_0x402a71,this[_0x422c9b(0x151)]=_0x655860,this['_memberService']=_0x5bbc4b,this[_0x422c9b(0x178)]=_0x344467,this['_telemetryService']=_0x385aa0,this[_0x422c9b(0x32a)]=!!this[_0x422c9b(0xf1)],_0x312e79[_0x422c9b(0x18c)](_0x5b993c(this[_0x422c9b(0x16f)]))[_0x422c9b(0x334)](_0x45021d=>{const _0x2f59fb=_0x422c9b;var _0xae1a85;typeof _0x45021d>'u'||(this['_socket']=_0x45021d,_0x45021d?(this[_0x2f59fb(0x3b6)](_0x45021d),this[_0x2f59fb(0x1e2)]=_0x45021d[_0x2f59fb(0x389)][_0x2f59fb(0x334)](_0x5d9bd9=>{const _0x3847eb=_0x2f59fb;_0x5d9bd9[_0x3847eb(0x150)]===this[_0x3847eb(0x38d)]&&this[_0x3847eb(0x2fb)](_0x5d9bd9);})):(this[_0x2f59fb(0x188)](),this[_0x2f59fb(0x1be)]['next'](0x2),(_0xae1a85=this['_socketMessageSubscription'])==null||_0xae1a85[_0x2f59fb(0x221)](),this[_0x2f59fb(0x1e2)]=null));}),this[_0x422c9b(0x165)](this[_0x422c9b(0x38b)][_0x422c9b(0x2c0)](()=>{const _0x479f2b=_0x422c9b;var _0x2da869;(_0x2da869=this[_0x479f2b(0x3b5)])==null||_0x2da869[_0x479f2b(0x113)]({'cmd':I[_0x479f2b(0x12c)],'data':{'roomID':this[_0x479f2b(0x38d)]}});})));}get['sessionStatus'](){const _0x3ef57e=_0x23cbae;return this[_0x3ef57e(0x1be)][_0x3ef57e(0x1d9)]();}['getMemberID'](){const _0x1e0f2e=_0x23cbae;var _0x125a3e,_0x7e9557;return(_0x7e9557=(_0x125a3e=this[_0x1e0f2e(0x3b5)])==null?void 0x0:_0x125a3e[_0x1e0f2e(0x104)])!=null?_0x7e9557:null;}[_0x23cbae(0x35a)](){const _0x1435b7=_0x23cbae;super[_0x1435b7(0x35a)](),this[_0x1435b7(0x16f)]['next'](),this[_0x1435b7(0x16f)][_0x1435b7(0x173)]();}['close'](){const _0x5b9e45=_0x23cbae;var _0x173614,_0x2958f7;this[_0x5b9e45(0x188)](),(_0x173614=this[_0x5b9e45(0x3b5)])==null||_0x173614[_0x5b9e45(0x113)]({'cmd':I[_0x5b9e45(0x12c)],'data':{'roomID':this[_0x5b9e45(0x38d)]}}),(_0x2958f7=this[_0x5b9e45(0x3b5)])==null||_0x2958f7[_0x5b9e45(0x2c2)](),this[_0x5b9e45(0x310)][_0x5b9e45(0x173)](),this[_0x5b9e45(0x1be)][_0x5b9e45(0x173)](),this[_0x5b9e45(0x35a)]();}[_0x23cbae(0x2fb)](_0x2265bf){const _0x9cbb20=_0x23cbae;_0x2265bf[_0x9cbb20(0x162)]===I[_0x9cbb20(0x2e0)]?this['_onJoinRoomEvent'](_0x2265bf):_0x2265bf[_0x9cbb20(0x162)]===I[_0x9cbb20(0x343)]&&this['_onRecvEvent'](_0x2265bf);}[_0x23cbae(0x3b6)](_0x201197){const _0x536a5b=_0x23cbae;this['_sessionStatus$']['next'](0x1),_0x201197[_0x536a5b(0x113)]({'cmd':I[_0x536a5b(0x2e0)],'routeKey':this[_0x536a5b(0x38d)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x2cd3db){const _0x41786c=_0x23cbae;var _0x3efa14;if(_0x2cd3db[_0x41786c(0x3f7)]===Vt[_0x41786c(0x21a)]){this[_0x41786c(0x3d5)][_0x41786c(0x2bb)]({'type':_0x135398[_0x41786c(0x153)],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0x41786c(0x131)](0x2);return;}this[_0x41786c(0x1be)]['next'](0x3);const _0x29d367=(_0x3efa14=_0x2cd3db[_0x41786c(0x32d)][_0x41786c(0x223)][this[_0x41786c(0x38d)]])==null?void 0x0:_0x3efa14[_0x41786c(0x34c)];_0x29d367&&_0x29d367[_0x41786c(0x273)](_0x365828=>this[_0x41786c(0x2f4)]['updateMember'](this[_0x41786c(0x38d)],_0x365828));}[_0x23cbae(0x112)](_0x71fac1){const _0x5ce073=_0x23cbae;try{const _0x37e309=_0x71fac1[_0x5ce073(0x32d)];switch(_0x37e309['eventID']){case _0x44cf74[_0x5ce073(0x3ed)]:this[_0x5ce073(0x136)](_0x37e309),this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);break;case _0x44cf74[_0x5ce073(0x25a)]:this[_0x5ce073(0x267)](_0x37e309),this[_0x5ce073(0x310)]['next'](_0x37e309);break;case _0x44cf74[_0x5ce073(0x198)]:this[_0x5ce073(0x2c4)](),this['_clearCollaborationTimeoutTimer'](),this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);break;case _0x44cf74[_0x5ce073(0x314)]:this['_logService'][_0x5ce073(0x43f)](_0x5ce073(0xe9)+JSON['stringify'](_0x37e309)),this[_0x5ce073(0x310)]['next'](_0x37e309);break;case _0x44cf74[_0x5ce073(0x335)]:this['_commentService']['onCommentUpdate'](_0x37e309['data']),this[_0x5ce073(0x310)]['next'](_0x37e309);break;default:this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);}}catch(_0x358196){this['_logService']['error'](_0x358196,_0x71fac1);}}[_0x23cbae(0x136)](_0x334eb3){const _0x21a878=_0x23cbae;this[_0x21a878(0x2f4)][_0x21a878(0x300)](this[_0x21a878(0x38d)],_0x334eb3[_0x21a878(0x32d)]);}[_0x23cbae(0x267)](_0x246ff2){const _0x4ef093=_0x23cbae;this['_memberService']['removeMember'](this[_0x4ef093(0x38d)],_0x246ff2[_0x4ef093(0x32d)][_0x4ef093(0x104)]);}async['send'](_0x5358cb,_0x524e14){const _0x4d8f86=_0x23cbae;if(this[_0x4d8f86(0x207)]!==0x3||!this[_0x4d8f86(0x3b5)])throw new Error(_0x4d8f86(0x41e));try{_0x5358cb[_0x4d8f86(0x3f0)]===_0x44cf74[_0x4d8f86(0x1f2)]&&(this[_0x4d8f86(0x3c8)](),this[_0x4d8f86(0x100)](_0x5358cb)),this[_0x4d8f86(0x3b5)][_0x4d8f86(0x113)]({'cmd':I['INGEST'],'routeKey':_0x524e14,'routeType':'','data':_0x5358cb});}catch(_0x1a63c4){this['_logService']['error'](_0x1a63c4);}}[_0x23cbae(0x3c8)](){const _0x434333=_0x23cbae;var _0x309931;this[_0x434333(0x25d)]=window['setTimeout'](()=>{const _0x128aa5=_0x434333;this[_0x128aa5(0x25d)]=null,this[_0x128aa5(0x3d5)][_0x128aa5(0x2bb)]({'type':_0x135398['Error'],'content':this[_0x128aa5(0x151)]['t'](_0x128aa5(0x342))});},(_0x309931=this[_0x434333(0x44c)]['getConfig'](Ls))!=null?_0x309931:$s);}[_0x23cbae(0x275)](){const _0x16d123=_0x23cbae;this[_0x16d123(0x25d)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x16d123(0x25d)]=null);}[_0x23cbae(0x100)](_0x589fb8){const _0x52ab2a=_0x23cbae;if(!this['_shouldReportTelemetry'])return;const {data:_0x4ecc2e}=_0x589fb8,{unitID:_0x236f16,changeset:_0x1a9f79}=_0x4ecc2e,{mutations:_0x410493,type:_0x22c70d}=_0x1a9f79;this[_0x52ab2a(0x139)]={'unitId':_0x236f16,'type':_0x22c70d,'startTime':performance[_0x52ab2a(0x3c1)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x410493)};}[_0x23cbae(0x2c4)](){const _0x49ea2b=_0x23cbae;if(this[_0x49ea2b(0x32a)]){if(!this['_telemetryInfo']){this[_0x49ea2b(0x135)][_0x49ea2b(0x43f)](_0x49ea2b(0x32c),_0x49ea2b(0x353));return;}this[_0x49ea2b(0x139)][_0x49ea2b(0x3e1)]=performance[_0x49ea2b(0x3c1)](),this['_telemetryInfo']['duration']=this['_telemetryInfo'][_0x49ea2b(0x3e1)]-this[_0x49ea2b(0x139)]['startTime'],this['_telemetryService'][_0x49ea2b(0xe1)](Bn,this[_0x49ea2b(0x139)]),this[_0x49ea2b(0x139)]=null;}}[_0x23cbae(0x188)](){this['_telemetryInfo']=null;}};bt=qn([J(0x2,_0x2ed9bc),J(0x3,_0x5d89d3),J(0x4,_0x2493e9),J(0x5,_0x465ebb),J(0x6,_0x57082d(_0x1ba649)),J(0x7,_0x57082d(ce)),J(0x8,_0x57082d(ks)),J(0x9,_0x187eb8(_0x33d583))],bt);var Jn=Object[_0x23cbae(0xe2)],zn=Object[_0x23cbae(0x36a)],Zn=(_0x273adf,_0x4c607e,_0x53dbbe,_0x26d019)=>{const _0x430d53=_0x23cbae;for(var _0x3aea99=_0x26d019>0x1?void 0x0:_0x26d019?zn(_0x4c607e,_0x53dbbe):_0x4c607e,_0x3512aa=_0x273adf[_0x430d53(0xed)]-0x1,_0x4ba73a;_0x3512aa>=0x0;_0x3512aa--)(_0x4ba73a=_0x273adf[_0x3512aa])&&(_0x3aea99=(_0x26d019?_0x4ba73a(_0x4c607e,_0x53dbbe,_0x3aea99):_0x4ba73a(_0x3aea99))||_0x3aea99);return _0x26d019&&_0x3aea99&&Jn(_0x4c607e,_0x53dbbe,_0x3aea99),_0x3aea99;},fe=(_0x473d23,_0x1e3ec9)=>(_0xd01fe6,_0x4cf3b6)=>_0x1e3ec9(_0xd01fe6,_0x4cf3b6,_0x473d23);let he=class extends _0xbfc176{constructor(_0xe7cc39,_0x16b900,_0x30c42c,_0x3a112e,_0x2447f9,_0x18206d){const _0x5d679d=_0x23cbae;super(),l(this,_0x5d679d(0x10c),new _0x169308(void 0x0)),l(this,_0x5d679d(0x2d3),this['_socket$']['asObservable']()),l(this,_0x5d679d(0x1ce),null),l(this,_0x5d679d(0x2f6),new Map()),l(this,_0x5d679d(0x290),new _0x169308(Y['IDLE'])),l(this,_0x5d679d(0x19d),this[_0x5d679d(0x290)]['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x5d679d(0x30c)),l(this,_0x5d679d(0x21e),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x5d679d(0x2b2)),(this[_0x5d679d(0x171)]=_0xe7cc39,this[_0x5d679d(0x151)]=_0x16b900,this[_0x5d679d(0x3d5)]=_0x30c42c,this[_0x5d679d(0x135)]=_0x3a112e,this[_0x5d679d(0x44c)]=_0x2447f9,this[_0x5d679d(0x418)]=_0x18206d,this['_initEventListeners']());}get[_0x23cbae(0x3b5)](){const _0x3e9887=_0x23cbae;return this[_0x3e9887(0x10c)][_0x3e9887(0x1d9)]();}[_0x23cbae(0x405)](){const _0x1279c2=_0x23cbae;this[_0x1279c2(0x10d)](),this[_0x1279c2(0x2b3)]();}['dispose'](){const _0xb7d7c3=_0x23cbae;super[_0xb7d7c3(0x35a)](),this[_0xb7d7c3(0x2f6)]['forEach'](_0x15b1f4=>_0x15b1f4[_0xb7d7c3(0x35a)]()),this[_0xb7d7c3(0x2f6)][_0xb7d7c3(0x263)](),this[_0xb7d7c3(0x290)]['complete']();}async[_0x23cbae(0x236)](_0x4cf45d){const _0x11606a=_0x23cbae;if(this[_0x11606a(0x2f6)][_0x11606a(0x15b)](_0x4cf45d))return this[_0x11606a(0x2f6)][_0x11606a(0x3fd)](_0x4cf45d);this['_tryEnsureSocket']();const _0x4e7e66=this['_injector'][_0x11606a(0x351)](bt,_0x4cf45d,this['_socket$'][_0x11606a(0x341)]());return this[_0x11606a(0x2f6)][_0x11606a(0x111)](_0x4cf45d,_0x4e7e66),_0x4e7e66;}[_0x23cbae(0xff)](_0x335cdd){const _0x107ce1=_0x23cbae;var _0x11e677;const _0xaa4455=this[_0x107ce1(0x2f6)][_0x107ce1(0x3fd)](_0x335cdd);_0xaa4455&&(this['_sessions'][_0x107ce1(0x1a8)](_0x335cdd),_0xaa4455['close']()),this[_0x107ce1(0x2f6)][_0x107ce1(0x11b)]||(_0x11e677=this[_0x107ce1(0x3b5)])==null||_0x11e677['close']();}['reconnect'](){const _0xb0d6a5=_0x23cbae;this[_0xb0d6a5(0x21e)]=0x0,this[_0xb0d6a5(0x30c)]!=null&&(clearTimeout(this[_0xb0d6a5(0x30c)]),this[_0xb0d6a5(0x30c)]=null),this[_0xb0d6a5(0x35e)]();}[_0x23cbae(0x39a)](){const _0x511a31=_0x23cbae;var _0x21c4d8,_0x425872;const _0x496ab5=this[_0x511a31(0x44c)]['getConfig'](En),_0x28e1aa=this['_configService'][_0x511a31(0x266)]($),_0x47fa85=(_0x425872=(_0x21c4d8=_0x28e1aa==null?void 0x0:_0x28e1aa[_0x511a31(0x44d)])!=null?_0x21c4d8:_0x496ab5)!=null?_0x425872:Cn,_0x1c98be=this[_0x511a31(0x418)][_0x511a31(0x43a)](_0x47fa85);return this['_candidateSocket']=_0x1c98be,_0x1c98be;}[_0x23cbae(0x445)](){const _0x1aa8be=_0x23cbae;var _0x43a911,_0x1acd88;try{const _0x55aa09=(_0x1acd88=(_0x43a911=this['_socket'])!=null?_0x43a911:this[_0x1aa8be(0x1ce)])!=null?_0x1acd88:this[_0x1aa8be(0x39a)]();if(_0x55aa09){const _0x4efd47=_0x55aa09[_0x1aa8be(0x113)];_0x55aa09[_0x1aa8be(0x113)]=_0x589b0f=>(this['_rescheduleHeartbeat'](),_0x4efd47['apply'](_0x55aa09,[_0x589b0f])),_0x55aa09[_0x1aa8be(0x389)][_0x1aa8be(0x334)](_0x563318=>this['_onMessage'](_0x55aa09,_0x563318)),_0x55aa09[_0x1aa8be(0x161)][_0x1aa8be(0x18c)](_0x3d181d(0x1))['subscribe'](_0x1fd647=>this['_logService'][_0x1aa8be(0x43f)]('[CollaborationSessionService]:\x20socket\x20error',_0x1fd647)),_0x55aa09['open$'][_0x1aa8be(0x18c)](_0x3d181d(0x1))[_0x1aa8be(0x334)](()=>{this['_onConnectionOpen'](_0x55aa09);}),_0x55aa09['close$'][_0x1aa8be(0x18c)](_0x3d181d(0x1))['subscribe'](_0x25ebf8=>{const _0x45faeb=_0x1aa8be;this[_0x45faeb(0x135)][_0x45faeb(0x448)]('[CollaborationSessionService]',_0x45faeb(0x116),_0x25ebf8),this['_onConnectionFailed']();});}}catch(_0x23c7b6){this['_logService'][_0x1aa8be(0x43f)](_0x23c7b6),this[_0x1aa8be(0x172)]();}}[_0x23cbae(0x407)](_0x62f67f){const _0x2f5ba8=_0x23cbae;this[_0x2f5ba8(0x135)][_0x2f5ba8(0x448)](_0x2f5ba8(0x403),_0x2f5ba8(0x132)),_0x62f67f[_0x2f5ba8(0x113)]({'cmd':I[_0x2f5ba8(0x145)]}),this[_0x2f5ba8(0x2df)]();}[_0x23cbae(0x10d)](){const _0x5dabea=_0x23cbae;window[_0x5dabea(0x277)]('offline',()=>this['_onOffline']());}[_0x23cbae(0x180)](){const _0x50feec=_0x23cbae;this[_0x50feec(0x1bd)]=!0x1,this[_0x50feec(0x1ce)]=null,this[_0x50feec(0x290)][_0x50feec(0x131)](Y['OFFLINE']),this['_socket$'][_0x50feec(0x131)](null),this[_0x50feec(0x22b)](),this[_0x50feec(0x32f)]();}[_0x23cbae(0x172)](){const _0x4e1b24=_0x23cbae;var _0x42997c;this[_0x4e1b24(0x180)](),this[_0x4e1b24(0x21e)]<((_0x42997c=this[_0x4e1b24(0x44c)]['getConfig'](On))!=null?_0x42997c:Dn)?(this['_messageService'][_0x4e1b24(0x2bb)]({'key':_0x4e1b24(0x432),'type':_0x135398[_0x4e1b24(0x153)],'content':this[_0x4e1b24(0x151)]['t'](_0x4e1b24(0x10a))}),this[_0x4e1b24(0x35e)]()):this['_messageService'][_0x4e1b24(0x2bb)]({'key':_0x4e1b24(0x432),'type':_0x135398[_0x4e1b24(0x33b)],'content':this['_localeService']['t'](_0x4e1b24(0x1c6))});}[_0x23cbae(0x2b3)](){const _0x732225=_0x23cbae,_0x58bd19=()=>{const _0x3c2655=_0x3f49;this[_0x3c2655(0x3b5)]||this[_0x3c2655(0x312)]();},_0xa70b9c=()=>{const _0x51276a=_0x3f49;this[_0x51276a(0x3b5)]||document[_0x51276a(0x39c)]===_0x51276a(0x3e4)||this[_0x51276a(0x312)]();};window[_0x732225(0x277)](_0x732225(0x240),_0x58bd19),document[_0x732225(0x277)](_0x732225(0x2aa),_0xa70b9c);}[_0x23cbae(0x35e)](){const _0x4d562b=_0x23cbae;var _0x5ee128;const _0x29dc62=this[_0x4d562b(0x21e)],_0x4caac4=this[_0x4d562b(0x44c)][_0x4d562b(0x266)]($),_0x451c31=_0x29dc62===0x0?0x0:((_0x5ee128=_0x4caac4==null?void 0x0:_0x4caac4[_0x4d562b(0x3c0)])!=null?_0x5ee128:Rn)*0x2**_0x29dc62;this[_0x4d562b(0x30c)]=window[_0x4d562b(0x2d6)](()=>{const _0x13c20d=_0x4d562b;clearTimeout(this[_0x13c20d(0x30c)]),this[_0x13c20d(0x30c)]=null,this['_tryEnsureSocket']();},_0x451c31),this[_0x4d562b(0x21e)]+=0x1;}[_0x23cbae(0x27c)](_0xc0b613,_0x48c0eb){const _0x59b316=_0x23cbae,{cmd:_0x17ec66}=_0x48c0eb;_0x17ec66===I[_0x59b316(0x145)]&&!this[_0x59b316(0x1bd)]&&(_0xc0b613['memberID']=_0x48c0eb['data']['memberID'],this[_0x59b316(0x10c)]['next'](_0xc0b613),this[_0x59b316(0x290)][_0x59b316(0x131)](Y[_0x59b316(0x12d)]),this[_0x59b316(0x1bd)]=!0x0,this[_0x59b316(0x1ce)]=null),_0x17ec66===I[_0x59b316(0x26d)]&&this[_0x59b316(0x22b)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x5677f0=_0x23cbae;var _0x456276;this[_0x5677f0(0x32f)](),this[_0x5677f0(0x3da)]=window[_0x5677f0(0x2d6)](()=>this[_0x5677f0(0x394)](),(_0x456276=this[_0x5677f0(0x44c)][_0x5677f0(0x266)](bn))!=null?_0x456276:Tn);}[_0x23cbae(0x394)](){const _0x39831c=_0x23cbae;this[_0x39831c(0x3b5)]['send']({'cmd':I['HEARTBEAT']}),this[_0x39831c(0x37f)]();}[_0x23cbae(0x37f)](){const _0x28c9b4=_0x23cbae;var _0x1f3539;this[_0x28c9b4(0x2b2)]=window[_0x28c9b4(0x2d6)](()=>this[_0x28c9b4(0x172)](),(_0x1f3539=this['_configService']['getConfig'](Ls))!=null?_0x1f3539:$s);}['_clearHeartbeatTimer'](){this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x23cbae(0x22b)](){const _0x301709=_0x23cbae;this[_0x301709(0x2b2)]!=null&&(clearTimeout(this[_0x301709(0x2b2)]),this[_0x301709(0x2b2)]=null);}};he=Zn([fe(0x0,_0x57082d(_0x5aca14)),fe(0x1,_0x57082d(_0x1ba649)),fe(0x2,_0x2493e9),fe(0x3,_0x2ed9bc),fe(0x4,_0x465ebb),fe(0x5,Hs)],he);var b=[];for(var ct=0x0;ct<0x100;++ct)b[_0x23cbae(0x12e)]((ct+0x100)[_0x23cbae(0x414)](0x10)[_0x23cbae(0x11f)](0x1));function Qn(_0x56955d,_0x4a1600=0x0){return(b[_0x56955d[_0x4a1600+0x0]]+b[_0x56955d[_0x4a1600+0x1]]+b[_0x56955d[_0x4a1600+0x2]]+b[_0x56955d[_0x4a1600+0x3]]+'-'+b[_0x56955d[_0x4a1600+0x4]]+b[_0x56955d[_0x4a1600+0x5]]+'-'+b[_0x56955d[_0x4a1600+0x6]]+b[_0x56955d[_0x4a1600+0x7]]+'-'+b[_0x56955d[_0x4a1600+0x8]]+b[_0x56955d[_0x4a1600+0x9]]+'-'+b[_0x56955d[_0x4a1600+0xa]]+b[_0x56955d[_0x4a1600+0xb]]+b[_0x56955d[_0x4a1600+0xc]]+b[_0x56955d[_0x4a1600+0xd]]+b[_0x56955d[_0x4a1600+0xe]]+b[_0x56955d[_0x4a1600+0xf]])['toLowerCase']();}var He,er=new Uint8Array(0x10);function tr(){const _0x1d6ee1=_0x23cbae;if(!He&&(He=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x1d6ee1(0x2ba)][_0x1d6ee1(0x2d9)](crypto),!He))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x23cbae(0x3c6)][_0x23cbae(0x2d9)](crypto);const cs={'randomUUID':sr};function ir(_0x49bae3,_0x1f77ef,_0x55e38f){const _0x27920e=_0x23cbae;if(cs['randomUUID']&&!_0x1f77ef&&!_0x49bae3)return cs[_0x27920e(0x3c6)]();_0x49bae3=_0x49bae3||{};var _0x4bdbb7=_0x49bae3['random']||(_0x49bae3[_0x27920e(0x1ae)]||tr)();return _0x4bdbb7[0x6]=_0x4bdbb7[0x6]&0xf|0x40,_0x4bdbb7[0x8]=_0x4bdbb7[0x8]&0x3f|0x80,Qn(_0x4bdbb7);}var nr=Object[_0x23cbae(0xe2)],rr=Object['getOwnPropertyDescriptor'],or=(_0x590e7f,_0x4b96e2,_0x28f680,_0x3d93d8)=>{const _0x23e26a=_0x23cbae;for(var _0x591dc1=_0x3d93d8>0x1?void 0x0:_0x3d93d8?rr(_0x4b96e2,_0x28f680):_0x4b96e2,_0x2dd4e2=_0x590e7f[_0x23e26a(0xed)]-0x1,_0x107624;_0x2dd4e2>=0x0;_0x2dd4e2--)(_0x107624=_0x590e7f[_0x2dd4e2])&&(_0x591dc1=(_0x3d93d8?_0x107624(_0x4b96e2,_0x28f680,_0x591dc1):_0x107624(_0x591dc1))||_0x591dc1);return _0x3d93d8&&_0x591dc1&&nr(_0x4b96e2,_0x28f680,_0x591dc1),_0x591dc1;},ht=(_0x56840d,_0x5a6bfc)=>(_0x570e3e,_0xa82a43)=>_0x5a6bfc(_0x570e3e,_0xa82a43,_0x56840d);let Ye=class{constructor(_0x46d5c5,_0x36e34a,_0x2ebf5e){const _0x298192=_0x23cbae;this[_0x298192(0x171)]=_0x46d5c5,this[_0x298192(0x2f5)]=_0x36e34a,this[_0x298192(0x2f0)]=_0x2ebf5e;}['transformIMECache'](_0x450268){const _0x5d8f59=_0x23cbae;this['_transformUndoRedoStack'](_0x450268),this[_0x5d8f59(0x42f)](_0x450268);}[_0x23cbae(0x241)](_0x5ea467){const _0x1de1da=_0x23cbae,{unitID:_0xa2bec6}=_0x5ea467,_0x41c124=this[_0x1de1da(0x2f0)][_0x1de1da(0x1a0)](_0xa2bec6)[_0x1de1da(0x28e)](_0x3d5f40),{redoCache:_0x443241}=_0x41c124[_0x1de1da(0x36f)]();if(_0x443241[_0x1de1da(0xed)]===0x0)return _0x5ea467;let _0xcc6bd2=_0x2d9f70[_0x1de1da(0x415)](_0x5ea467['mutations'][0x0]);for(let _0x29f399=0x0;_0x29f399<_0x443241[_0x1de1da(0xed)];_0x29f399++){const _0x2e17cd={'id':_0x1de1da(0x200),'params':{..._0x443241[_0x29f399]}},_0x36f356=this[_0x1de1da(0x2f5)][_0x1de1da(0x2bf)](_0xcc6bd2,_0x2e17cd,!0x1);if(_0x426132(_0x36f356))throw _0x36f356[_0x1de1da(0x43f)];_0xcc6bd2=_0x36f356[_0x1de1da(0x3e8)];}return{..._0x2d9f70[_0x1de1da(0x415)](_0x5ea467),'mutations':[_0xcc6bd2]};}[_0x23cbae(0xef)](_0x1e3a7a){const _0x4f9822=_0x23cbae,{unitID:_0x4c0b1e}=_0x1e3a7a,_0x1eb9b1=this[_0x4f9822(0x2f0)][_0x4f9822(0x1a0)](_0x4c0b1e)[_0x4f9822(0x28e)](_0x3d5f40),{undoCache:_0x3ca9bd,redoCache:_0x57b2e2}=_0x1eb9b1[_0x4f9822(0x36f)]();if(_0x3ca9bd[_0x4f9822(0xed)]===0x0||_0x57b2e2[_0x4f9822(0xed)]===0x0)return;const _0x1e7aab=[],_0x23f009=[];let _0xdd8fff=_0x2d9f70[_0x4f9822(0x415)](_0x1e3a7a[_0x4f9822(0x2e4)][0x0]),_0x1f6808=_0x2d9f70[_0x4f9822(0x415)](_0x1e3a7a[_0x4f9822(0x2e4)][0x0]);for(let _0x2f6c51=_0x3ca9bd[_0x4f9822(0xed)]-0x1;_0x2f6c51>=0x0;_0x2f6c51--){const _0x45f902={'id':_0x4f9822(0x200),'params':{..._0x3ca9bd[_0x2f6c51]}},_0x7344eb={'id':_0x4f9822(0x200),'params':{..._0x57b2e2[_0x2f6c51]}},_0x57f1e6=this[_0x4f9822(0x2f5)][_0x4f9822(0x2bf)](_0xdd8fff,_0x45f902,!0x1),_0x34390c=this['_transformService'][_0x4f9822(0x2bf)](_0x1f6808,_0x7344eb,!0x1);if(_0x426132(_0x57f1e6))throw _0x57f1e6[_0x4f9822(0x43f)];if(_0x426132(_0x34390c))throw _0x34390c[_0x4f9822(0x43f)];_0x1e7aab[_0x4f9822(0x154)](_0x57f1e6['m2Prime'][_0x4f9822(0x1e4)]),_0x23f009[_0x4f9822(0x154)](_0x34390c[_0x4f9822(0x1b0)][_0x4f9822(0x1e4)]),_0xdd8fff=_0x57f1e6[_0x4f9822(0x3e8)],_0x1f6808=_0x34390c[_0x4f9822(0x3e8)];}_0x1eb9b1['setUndoRedoMutationParamsCache']({'undoCache':_0x1e7aab,'redoCache':_0x23f009});}['_transformPreviousActiveRange'](_0x431ee8){const _0x625846=_0x23cbae,{unitID:_0x383ace}=_0x431ee8,_0x59af29=this['_renderManagerService'][_0x625846(0x1a0)](_0x383ace)[_0x625846(0x28e)](_0x3d5f40),_0x4aebf5=_0x59af29[_0x625846(0x17a)]();if(_0x4aebf5==null)return;const _0x59678b=[{'id':_0x625846(0x200),'params':{'unitId':_0x431ee8[_0x625846(0x1a5)],'actions':null,'textRanges':[_0x4aebf5]}}],_0x560996=this[_0x625846(0x2f5)][_0x625846(0x3cc)](_0x431ee8,_0x59678b);if(!_0x24c912(_0x560996))throw _0x560996[_0x625846(0x43f)];const _0x3588b7=_0x560996[_0x625846(0x1b0)][0x0][_0x625846(0x1e4)][_0x625846(0x1f8)];Array[_0x625846(0x218)](_0x3588b7)&&_0x3588b7['length']&&_0x59af29['setActiveRange'](_0x3588b7[0x0]);}};Ye=or([ht(0x0,_0x57082d(_0x5aca14)),ht(0x1,_0x3ce5fa),ht(0x2,_0x241377)],Ye);var ar=Object[_0x23cbae(0xe2)],cr=Object[_0x23cbae(0x36a)],hr=(_0x2191d6,_0x54cd70,_0xebecaf,_0x1ffc55)=>{const _0x28e9c7=_0x23cbae;for(var _0x7825b7=_0x1ffc55>0x1?void 0x0:_0x1ffc55?cr(_0x54cd70,_0xebecaf):_0x54cd70,_0x2b12d4=_0x2191d6[_0x28e9c7(0xed)]-0x1,_0x2b5d5b;_0x2b12d4>=0x0;_0x2b12d4--)(_0x2b5d5b=_0x2191d6[_0x2b12d4])&&(_0x7825b7=(_0x1ffc55?_0x2b5d5b(_0x54cd70,_0xebecaf,_0x7825b7):_0x2b5d5b(_0x7825b7))||_0x7825b7);return _0x1ffc55&&_0x7825b7&&ar(_0x54cd70,_0xebecaf,_0x7825b7),_0x7825b7;},De=(_0x4ec95f,_0x182859)=>(_0x41fca5,_0x2f96f5)=>_0x182859(_0x41fca5,_0x2f96f5,_0x4ec95f);let w=class extends _0xbfc176{constructor(_0x2c4a5b,_0xf411,_0x164009,_0x147a95,_0x4be23f){const _0x89f5e0=_0x23cbae;super(),l(this,_0x89f5e0(0x2de),new Map()),l(this,_0x89f5e0(0x254),new Map()),l(this,_0x89f5e0(0x298),!0x1),(this[_0x89f5e0(0x44c)]=_0x2c4a5b,this[_0x89f5e0(0x212)]=_0xf411,this[_0x89f5e0(0x38b)]=_0x164009,this[_0x89f5e0(0x151)]=_0x147a95,this[_0x89f5e0(0x28a)]=_0x4be23f,this[_0x89f5e0(0x32e)]());}[_0x23cbae(0x2f9)](){const _0xc43d5f=_0x23cbae;this[_0xc43d5f(0x298)]=!0x0;}[_0x23cbae(0x446)](){this['_disabled']=!0x1;}[_0x23cbae(0x35a)](){const _0x3e181f=_0x23cbae;this[_0x3e181f(0x2b0)]()['then'](()=>super['dispose']());}async[_0x23cbae(0x2b7)](_0x50a6ab){const _0x11c966=_0x23cbae;return this[_0x11c966(0x298)]?null:this[_0x11c966(0x212)][_0x11c966(0x170)](hs(_0x50a6ab));}async[_0x23cbae(0x2d1)](_0x1c4a06,_0x1c56b3){const _0x2f09d7=_0x23cbae;return!!this[_0x2f09d7(0x212)][_0x2f09d7(0x30b)](_0x1c4a06,_0x1c56b3);}[_0x23cbae(0xe0)](_0x3a4d01,_0x557d72,_0x53e3bf,_0x43bbf4){const _0x3ff6a9=_0x23cbae,_0x5e1e1f=this['_revisionService'][_0x3ff6a9(0x305)](_0x3a4d01);this[_0x3ff6a9(0x2de)]['set'](_0x3a4d01,{'unitID':_0x3a4d01,'type':_0x557d72,'awaitingChangeset':_0x53e3bf,'mutations':_0x43bbf4,'rev':_0x5e1e1f}),this[_0x3ff6a9(0x254)][_0x3ff6a9(0x15b)](_0x3a4d01)||this[_0x3ff6a9(0x360)](_0x3a4d01);}['_scheduleSaving'](_0x2f9c64){const _0xfe3d90=_0x23cbae,_0x1e705e=this[_0xfe3d90(0x1a4)]();_0x1e705e===0x0?this[_0xfe3d90(0x187)](_0x2f9c64):this[_0xfe3d90(0x254)][_0xfe3d90(0x111)](_0x2f9c64,setTimeout(()=>this['_saveCache'](_0x2f9c64),_0x1e705e));}['_getSaveTimeout'](){var _0x505c94;return(_0x505c94=this['_configService']['getConfig'](wn))!=null?_0x505c94:Pn;}[_0x23cbae(0x187)](_0x579cd8){const _0x1254f5=_0x23cbae,_0x43d79e=this['_saveTaskMap'][_0x1254f5(0x3fd)](_0x579cd8);return _0x43d79e!==void 0x0&&window['clearTimeout'](_0x43d79e),this[_0x1254f5(0x212)][_0x1254f5(0x30b)](hs(_0x579cd8),this[_0x1254f5(0x2de)][_0x1254f5(0x3fd)](_0x579cd8))[_0x1254f5(0x149)](()=>this[_0x1254f5(0x254)][_0x1254f5(0x1a8)](_0x579cd8));}async[_0x23cbae(0x2b0)](){const _0x168cdb=_0x23cbae,_0x2c2ad6=[];this[_0x168cdb(0x254)][_0x168cdb(0x273)]((_0x58c27d,_0x23802c)=>{const _0x584b0a=_0x168cdb;window[_0x584b0a(0x43d)](_0x58c27d),_0x2c2ad6[_0x584b0a(0x12e)](this['_saveCache'](_0x23802c)[_0x584b0a(0x149)](()=>{this['_saveTaskMap']['delete'](_0x23802c);}));}),await Promise[_0x168cdb(0x3d1)](_0x2c2ad6);}[_0x23cbae(0x32e)](){const _0x254144=_0x23cbae;this[_0x254144(0x165)](this[_0x254144(0x38b)][_0x254144(0x38e)](()=>{const _0x46c97b=_0x254144;if(this[_0x46c97b(0x254)][_0x46c97b(0x11b)])return this['_localeService']['t'](_0x46c97b(0x158));}));}};w=hr([De(0x0,_0x465ebb),De(0x1,_0x16bea1),De(0x2,_0x5d89d3),De(0x3,_0x57082d(_0x1ba649)),De(0x4,_0x57082d(_0x2056a3))],w);function hs(_0xb9379c){return'unit-cache-'+_0xb9379c;}var lr=Object[_0x23cbae(0xe2)],_r=Object[_0x23cbae(0x36a)],ur=(_0x4fca7e,_0x23a730,_0x2a2889,_0x476158)=>{for(var _0x1441f8=_0x476158>0x1?void 0x0:_0x476158?_r(_0x23a730,_0x2a2889):_0x23a730,_0x4e8acd=_0x4fca7e['length']-0x1,_0x27bf01;_0x4e8acd>=0x0;_0x4e8acd--)(_0x27bf01=_0x4fca7e[_0x4e8acd])&&(_0x1441f8=(_0x476158?_0x27bf01(_0x23a730,_0x2a2889,_0x1441f8):_0x27bf01(_0x1441f8))||_0x1441f8);return _0x476158&&_0x1441f8&&lr(_0x23a730,_0x2a2889,_0x1441f8),_0x1441f8;},lt=(_0x38aa12,_0x123dc4)=>(_0x32fc23,_0x4447cd)=>_0x123dc4(_0x32fc23,_0x4447cd,_0x38aa12);function dr(_0x1369c5){const _0x5bd657=_0x23cbae,{unitID:_0x95cb66,mutations:_0x326313}=_0x1369c5;return{'unitId':_0x95cb66,'subUnitId':_0x326313[0x0]['params'][_0x5bd657(0x1ee)]};}let Ke=class{constructor(_0x2cb60f,_0x1fdc0a,_0x9044ca){const _0x1c69fd=_0x23cbae;this[_0x1c69fd(0x171)]=_0x2cb60f,this['_transformService']=_0x1fdc0a,this[_0x1c69fd(0x2a8)]=_0x9044ca;}['transformSelections'](_0x47fce4){const _0xc906c2=_0x23cbae;var _0x2b0dc2,_0x4e29d5,_0x2c2655,_0x545211;const _0x514cfe=this[_0xc906c2(0x171)][_0xc906c2(0x3fd)](_0x34b058),{unitId:_0x27eedf,subUnitId:_0x237bfe}=dr(_0x47fce4),_0x4ae163=_0x514cfe['getWorkbookSelections'](_0x27eedf)['getCurrentSelections'](),_0x46eb65=(_0x4e29d5=(_0x2b0dc2=this['_instanceService']['getUnit'](_0x27eedf))==null?void 0x0:_0x2b0dc2[_0xc906c2(0x3f1)]())==null?void 0x0:_0x4e29d5['getSheetId']();if(_0x4ae163[_0xc906c2(0xed)]===0x0||!_0x27eedf||!_0x237bfe)return;const _0x963367=[{'id':_0x58be78['id'],'params':{'unitId':_0x27eedf,'subUnitId':_0x46eb65,'selections':_0x2d9f70['deepClone'](_0x4ae163)}}],_0x20f263=this[_0xc906c2(0x2f5)]['transformMutationsWithChangeset'](_0x47fce4,_0x963367);if(!_0x24c912(_0x20f263))throw _0x20f263['error'];const _0x2b1204=(_0x545211=(_0x2c2655=_0x20f263[_0xc906c2(0x1b0)][0x0])==null?void 0x0:_0x2c2655[_0xc906c2(0x1e4)])==null?void 0x0:_0x545211[_0xc906c2(0x376)];Array[_0xc906c2(0x218)](_0x2b1204)&&_0x2b1204['length']&&this['_injector']['get'](_0x2c218a)[_0xc906c2(0x1ad)](_0x58be78['id'],{'unitId':_0x27eedf,'subUnitId':_0x46eb65,'selections':_0x2b1204});}};Ke=ur([lt(0x0,_0x57082d(_0x5aca14)),lt(0x1,_0x3ce5fa),lt(0x2,_0xf0f4c1)],Ke);const tt=_0x1d1962('univer-pro.collaboration-client.single-active-unit-service');var Bs=(_0x4b20fc=>(_0x4b20fc[_0x4b20fc[_0x23cbae(0x22a)]=0x0]=_0x23cbae(0x22a),_0x4b20fc[_0x4b20fc['OTHER_CLIENTS_EDITING']=0x1]=_0x23cbae(0x2ae),_0x4b20fc))(Bs||{});const ls=0x7530,_s=_0x23cbae(0x1a3);class fr extends _0xbfc176{constructor(){const _0x375edd=_0x23cbae;super(),l(this,_0x375edd(0x408),_0x2d9f70[_0x375edd(0x259)]()),l(this,_0x375edd(0x237),new Set()),l(this,_0x375edd(0x388),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x375edd(0x370),new Map()),l(this,_0x375edd(0x2d0),new Map()),this[_0x375edd(0x383)]();}['dispose'](){const _0x281321=_0x23cbae;super[_0x281321(0x35a)](),this[_0x281321(0x370)][_0x281321(0x273)]((_0x38618b,_0x123641)=>this[_0x281321(0x3ec)](_0x123641)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x281321(0x2e3)]);}['getUnitStatus$'](_0x55bcc9){return this['_ensureSubject'](_0x55bcc9)['pipe'](_0x95638f());}[_0x23cbae(0x169)](_0x701245){const _0x295e73=_0x23cbae;this['_selfUnitIDs']['size']===0x0&&this[_0x295e73(0xf3)](),this[_0x295e73(0x237)][_0x295e73(0x302)](_0x701245),this[_0x295e73(0x350)]({'type':0x0,'memberID':this[_0x295e73(0x408)],'unitIDs':[_0x701245],'isForwarded':!0x1});}[_0x23cbae(0x103)](_0xf19752){const _0x581071=_0x23cbae;this[_0x581071(0x237)][_0x581071(0x1a8)](_0xf19752),this[_0x581071(0x237)]['size']===0x0&&this[_0x581071(0x2e3)]&&window[_0x581071(0x124)](this[_0x581071(0x2e3)]);}[_0x23cbae(0x383)](){const _0x227258=_0x23cbae;this[_0x227258(0x165)](_0xad1b53(_0x19a309(window,_0x227258(0x2fc))[_0x227258(0x334)](_0x5eb452=>{const _0xec8416=_0x227258;if(_0x5eb452[_0xec8416(0x1f4)]!==_s||!_0x5eb452[_0xec8416(0x208)])return;const _0x2efc93=JSON[_0xec8416(0x3ea)](_0x5eb452[_0xec8416(0x208)]);this[_0xec8416(0x43c)](_0x2efc93);}))),window[_0x227258(0x277)](_0x227258(0x1e1),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x227258(0x316)](this[_0x227258(0x237)])}));}[_0x23cbae(0x43c)](_0x4c74e2){const _0x53e81f=_0x23cbae;switch(_0x4c74e2[_0x53e81f(0x2f1)]){case 0x0:this[_0x53e81f(0x214)](_0x4c74e2);break;case 0x1:this[_0x53e81f(0x225)](_0x4c74e2);break;case 0x2:this[_0x53e81f(0x1cf)](_0x4c74e2);break;}}[_0x23cbae(0x214)](_0x21cefc){const _0x218059=_0x23cbae,{unitIDs:_0x3b50ea,memberID:_0x4bfe1f,isForwarded:_0x32b762}=_0x21cefc;_0x3b50ea[_0x218059(0x273)](_0x165520=>{const _0x374d1f=_0x218059;if(!_0x32b762&&this['_unitOnClients']['has'](_0x165520)&&this[_0x374d1f(0x27e)](_0x165520)[_0x374d1f(0x131)](0x1),!this[_0x374d1f(0x388)][_0x374d1f(0x15b)](_0x165520)||!this[_0x374d1f(0x388)][_0x374d1f(0x3fd)](_0x165520)[_0x374d1f(0x15b)](_0x4bfe1f)){const _0x90754=this[_0x374d1f(0x388)][_0x374d1f(0x3fd)](_0x165520)||new Set();_0x90754['add'](_0x4bfe1f),this[_0x374d1f(0x388)][_0x374d1f(0x111)](_0x165520,_0x90754),this['_scheduleClearOtherTimer'](_0x4bfe1f);}}),_0x32b762||this[_0x218059(0x350)]({'type':0x0,'memberID':this[_0x218059(0x408)],'unitIDs':[...this[_0x218059(0x237)]],'isForwarded':!0x0});}[_0x23cbae(0x25f)](_0x3872ba){const _0x3a69fd=_0x23cbae;this[_0x3a69fd(0x3ec)](_0x3872ba);const _0x1d4b95=window['setTimeout'](()=>{const _0x4a97c3=_0x3a69fd;this['_unitOnClients'][_0x4a97c3(0x273)](_0x7d0e43=>{_0x7d0e43['delete'](_0x3872ba);});},ls*0x2);this[_0x3a69fd(0x370)][_0x3a69fd(0x111)](_0x3872ba,_0x1d4b95);}[_0x23cbae(0x3ec)](_0x5c4078){const _0x51b267=_0x23cbae;if(this['_clearOtherTimers'][_0x51b267(0x15b)](_0x5c4078)){const _0x486cfb=this[_0x51b267(0x370)][_0x51b267(0x3fd)](_0x5c4078);_0x486cfb&&window[_0x51b267(0x43d)](_0x486cfb),this[_0x51b267(0x370)][_0x51b267(0x111)](_0x5c4078,null);}}[_0x23cbae(0x225)](_0x1dce5d){const _0x28fedf=_0x23cbae,{memberID:_0xe135e7,unitIDs:_0x3e9ed8}=_0x1dce5d;_0x3e9ed8[_0x28fedf(0x273)](_0xfaf85f=>{const _0xaef830=_0x28fedf;var _0x534a17;const _0xa75c4e=this[_0xaef830(0x388)][_0xaef830(0x3fd)](_0xfaf85f);_0xa75c4e&&(_0xa75c4e[_0xaef830(0x1a8)](_0xe135e7),(_0x534a17=this[_0xaef830(0x27e)](_0xfaf85f))==null||_0x534a17[_0xaef830(0x131)](_0xa75c4e[_0xaef830(0x11b)]===0x0?0x0:0x1));}),this[_0x28fedf(0x3ec)](_0xe135e7);}[_0x23cbae(0x1cf)](_0x3e277c){const _0x40b344=_0x23cbae;this[_0x40b344(0x25f)](_0x3e277c[_0x40b344(0x104)]);}[_0x23cbae(0x350)](_0xd7b166){const _0x327f99=_0x23cbae;localStorage[_0x327f99(0x30b)](_s,JSON['stringify'](_0xd7b166));}[_0x23cbae(0xf3)](){const _0x4a5774=_0x23cbae;this[_0x4a5774(0x2e3)]=window['setInterval'](()=>{const _0x196344=_0x4a5774;this['_send']({'type':0x2,'memberID':this[_0x196344(0x408)]});},ls);}[_0x23cbae(0x27e)](_0x5f3bd8){const _0x590c7a=_0x23cbae;return this[_0x590c7a(0x2d0)][_0x590c7a(0x15b)](_0x5f3bd8)||this[_0x590c7a(0x2d0)]['set'](_0x5f3bd8,new _0x169308(0x0)),this[_0x590c7a(0x2d0)][_0x590c7a(0x3fd)](_0x5f3bd8);}}function Vs(_0x19c01e){const _0x537f4e=_0x23cbae;let _0x2ef4ed='';for(const _0x5b45aa of _0x19c01e){const {startOffset:_0x5e87b6,endOffset:_0x392061,isActive:_0x461008}=_0x5b45aa;_0x2ef4ed[_0x537f4e(0xed)]&&(_0x2ef4ed+=','),_0x2ef4ed+=_0x5e87b6+':'+_0x392061+':'+(_0x461008?'1':'0');}return _0x2ef4ed;}function mr(_0x4e8978){const _0x4b754a=_0x23cbae,_0x3c8e1a=_0x4e8978[_0x4b754a(0x41f)](','),_0x1229f6=[];for(const _0x39eb4d of _0x3c8e1a){const [_0x4501bc,_0x419027,_0xd3222f]=_0x39eb4d[_0x4b754a(0x41f)](':');_0x1229f6['push']({'startOffset':Number(_0x4501bc),'endOffset':Number(_0x419027),'collapsed':_0x4501bc===_0x419027,'isActive':_0xd3222f==='1'});}return _0x1229f6[_0x4b754a(0x3e6)](_0x50dc9b=>_0x50dc9b[_0x4b754a(0x1b9)])||(_0x1229f6[0x0][_0x4b754a(0x1b9)]=!0x0),_0x1229f6;}class Ft extends _0x3a262a{constructor(){const _0x47d853=_0x23cbae;super(...arguments),l(this,'_collabCursorState$',new _0x169308(null)),l(this,_0x47d853(0x292),this['_collabCursorState$'][_0x47d853(0x341)]());}['syncEditingCollabCursor'](_0x1e9b05){const _0x45ee27=_0x23cbae,{unitID:_0x426c0e,memberID:_0x2078ee,textRanges:_0x219ef1}=_0x1e9b05,_0x40fa3b=Vs(_0x219ef1),_0x467d60={'unitID':_0x426c0e,'memberID':_0x2078ee,'selection':_0x40fa3b};this[_0x45ee27(0x313)][_0x45ee27(0x131)](_0x467d60);}}var gr=Object[_0x23cbae(0xe2)],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x4e040b,_0x476a38,_0x5e3539,_0x4edcc4)=>{const _0x1ae62a=_0x23cbae;for(var _0xe06bd7=_0x4edcc4>0x1?void 0x0:_0x4edcc4?Sr(_0x476a38,_0x5e3539):_0x476a38,_0x3eaa7c=_0x4e040b[_0x1ae62a(0xed)]-0x1,_0x36a414;_0x3eaa7c>=0x0;_0x3eaa7c--)(_0x36a414=_0x4e040b[_0x3eaa7c])&&(_0xe06bd7=(_0x4edcc4?_0x36a414(_0x476a38,_0x5e3539,_0xe06bd7):_0x36a414(_0xe06bd7))||_0xe06bd7);return _0x4edcc4&&_0xe06bd7&&gr(_0x476a38,_0x5e3539,_0xe06bd7),_0xe06bd7;},us=(_0x601a9,_0x58e4ab)=>(_0x42e813,_0x134952)=>_0x58e4ab(_0x42e813,_0x134952,_0x601a9);let Xe=class{constructor(_0x76c33e,_0x351674){const _0x5d4509=_0x23cbae;this[_0x5d4509(0x171)]=_0x76c33e,this['_transformService']=_0x351674;}[_0x23cbae(0x3f8)](_0x42f5b7){const _0x4b21be=_0x23cbae;var _0xde927;const _0x330c4f=this['_injector'][_0x4b21be(0x3fd)](_0x5502c3),_0x25fd71=(_0xde927=_0x330c4f[_0x4b21be(0x338)]())!=null?_0xde927:[];if(_0x25fd71['length']===0x0)return;const _0x3b9604=[{'id':_0x4b21be(0x200),'params':{'unitId':_0x42f5b7[_0x4b21be(0x1a5)],'actions':null,'textRanges':_0x25fd71}}],_0x4df874=this[_0x4b21be(0x2f5)][_0x4b21be(0x3cc)](_0x42f5b7,_0x3b9604);if(!_0x24c912(_0x4df874))throw _0x4df874[_0x4b21be(0x43f)];const _0x523d04=_0x4df874['m2Prime'][0x0][_0x4b21be(0x1e4)][_0x4b21be(0x1f8)];Array[_0x4b21be(0x218)](_0x523d04)&&_0x523d04[_0x4b21be(0xed)]&&_0x330c4f[_0x4b21be(0xfb)](_0x523d04,!0x1);}};Xe=pr([us(0x0,_0x57082d(_0x5aca14)),us(0x1,_0x3ce5fa)],Xe);const vr=new Set([_0xecee35['id']]);function ds(_0x2a74f3,_0x16c9ba,_0x4dc805,_0x5cf634,_0x537330){const _0x383bd4=_0x23cbae;var _0x83ee2c,_0xb2c3ce,_0x21daa0,_0x4cb7ab;const _0x374e9f=[];for(const _0x360812 of _0x2a74f3)if(vr[_0x383bd4(0x15b)](_0x360812['id'])){if(_0x374e9f[_0x383bd4(0xed)]>0x0)break;_0x374e9f[_0x383bd4(0x12e)](_0x360812);break;}else _0x374e9f['push'](_0x360812);const _0x24145a=(_0xb2c3ce=(_0x83ee2c=_0x537330[_0x383bd4(0x177)]())==null?void 0x0:_0x83ee2c['userID'])!=null?_0xb2c3ce:_0x383bd4(0x301),_0x248b5f=(_0x4cb7ab=(_0x21daa0=_0x537330[_0x383bd4(0x177)]())==null?void 0x0:_0x21daa0['memberID'])!=null?_0x4cb7ab:_0x383bd4(0x301);return{'changeset':{'unitID':_0x16c9ba,'type':_0x2f6b1e(_0x4dc805[_0x383bd4(0xfa)](_0x16c9ba)),'baseRev':_0x5cf634[_0x383bd4(0x305)](_0x16c9ba),'revision':0x0,'userID':_0x24145a,'memberID':_0x248b5f,'mutations':_0x374e9f},'pendingMutations':_0x2a74f3['slice'](_0x374e9f[_0x383bd4(0xed)])};}function Ir(_0x204532,_0x2c5dc3,_0x19af8a,_0x5c3dad,_0x26a44b){const _0x384a4e=_0x23cbae;var _0x4574cb,_0x2dd87a,_0x4054e4,_0x5e41ae;const _0x382e7d=[_0x204532[_0x384a4e(0x39b)]((_0x33250d,_0x42cf04)=>{const _0x3e3cff=_0x384a4e;var _0x3c03c3;const {id:_0x3a3125}=_0x33250d,{id:_0x1a678c,type:_0x110696}=_0x42cf04,_0x2e795c=(_0x3c03c3=_0x33250d['params'])!=null?_0x3c03c3:{'actions':null},_0x6e5d02=_0x42cf04[_0x3e3cff(0x1e4)];if(_0x3a3125&&_0x3a3125!==_0x1a678c)throw new Error(_0x3e3cff(0x3b3)+_0x3a3125+_0x3e3cff(0x191)+_0x1a678c+'.');return{..._0x33250d,'id':_0x1a678c,'type':_0x110696,'params':{'unitId':_0x6e5d02[_0x3e3cff(0x37e)],'textRanges':_0x6e5d02['textRanges'],'actions':_0x26e9d3['compose'](_0x2e795c[_0x3e3cff(0x347)],_0x6e5d02[_0x3e3cff(0x347)])}};},{})],_0x560400=(_0x2dd87a=(_0x4574cb=_0x26a44b['getCurrentUser']())==null?void 0x0:_0x4574cb[_0x384a4e(0x441)])!=null?_0x2dd87a:_0x384a4e(0x301),_0x1766b8=(_0x5e41ae=(_0x4054e4=_0x26a44b[_0x384a4e(0x177)]())==null?void 0x0:_0x4054e4['memberID'])!=null?_0x5e41ae:_0x384a4e(0x301);return{'changeset':{'unitID':_0x2c5dc3,'type':_0x2f6b1e(_0x19af8a[_0x384a4e(0xfa)](_0x2c5dc3)),'baseRev':_0x5c3dad['getCurrentRevOfUnit'](_0x2c5dc3),'revision':0x0,'userID':_0x560400,'memberID':_0x1766b8,'mutations':_0x382e7d},'pendingMutations':[]};}const Er={'id':_0x37478b['id'],'type':_0x406a66[_0x23cbae(0x411)],'params':{}};var Cr=Object['defineProperty'],br=Object[_0x23cbae(0x36a)],_e=(_0x5d93fc,_0xa6c0cd,_0x4b0d32,_0xf86331)=>{const _0x3ebfec=_0x23cbae;for(var _0x20b81e=_0xf86331>0x1?void 0x0:_0xf86331?br(_0xa6c0cd,_0x4b0d32):_0xa6c0cd,_0x4fd3f6=_0x5d93fc[_0x3ebfec(0xed)]-0x1,_0x14e973;_0x4fd3f6>=0x0;_0x4fd3f6--)(_0x14e973=_0x5d93fc[_0x4fd3f6])&&(_0x20b81e=(_0xf86331?_0x14e973(_0xa6c0cd,_0x4b0d32,_0x20b81e):_0x14e973(_0x20b81e))||_0x20b81e);return _0xf86331&&_0x20b81e&&Cr(_0xa6c0cd,_0x4b0d32,_0x20b81e),_0x20b81e;},m=(_0x4ae3a9,_0x2eb85c)=>(_0x5ff5fb,_0x1df26e)=>_0x2eb85c(_0x5ff5fb,_0x1df26e,_0x4ae3a9),P=(_0x3fd256=>(_0x3fd256[_0x23cbae(0x26e)]=_0x23cbae(0x320),_0x3fd256['SYNCED']=_0x23cbae(0x369),_0x3fd256[_0x23cbae(0x160)]='pending',_0x3fd256[_0x23cbae(0x244)]=_0x23cbae(0x2fa),_0x3fd256[_0x23cbae(0x27f)]=_0x23cbae(0x1d0),_0x3fd256['FETCH_MISS']='fetch_missing',_0x3fd256[_0x23cbae(0x444)]=_0x23cbae(0x358),_0x3fd256[_0x23cbae(0x1a9)]=_0x23cbae(0x23f),_0x3fd256))(P||{});class ue{constructor(_0x1f71b6,_0x3b0862,_0x47c66,_0x1383fd,_0x12e3a3,_0x525ee6,_0xf2edd8,_0x4750a2,_0x1a89e5){const _0x1ecfdf=_0x23cbae;l(this,_0x1ecfdf(0x1ba),null),l(this,_0x1ecfdf(0x1ab),[]),(this[_0x1ecfdf(0x1a5)]=_0x1f71b6,this['type']=_0x3b0862,this[_0x1ecfdf(0x386)]=_0x12e3a3,this[_0x1ecfdf(0x393)]=_0x525ee6,this[_0x1ecfdf(0x216)]=_0xf2edd8,this[_0x1ecfdf(0x28a)]=_0x4750a2,this[_0x1ecfdf(0x279)]=_0x1a89e5,this[_0x1ecfdf(0x1ba)]=_0x47c66,this[_0x1ecfdf(0x1ab)]=_0x1383fd);}['_checkMissing'](_0x540180){const _0x3a7ce4=_0x23cbae,_0x5ddcd4=this[_0x3a7ce4(0x28a)][_0x3a7ce4(0x305)](this[_0x3a7ce4(0x1a5)]);return _0x540180['revision']>_0x5ddcd4+0x1?(this[_0x3a7ce4(0x386)][_0x3a7ce4(0x2c1)]({'from':_0x5ddcd4,'to':_0x540180[_0x3a7ce4(0x1d8)]-0x1}),!0x0):!0x1;}[_0x23cbae(0x159)](_0x4eb324){const _0x400dbc=_0x23cbae;this[_0x400dbc(0x216)][_0x400dbc(0x16c)](this['unitID'],_0x4eb324);}[_0x23cbae(0x1ea)](_0x2dd223){const _0x30210e=_0x23cbae;var _0x29f116,_0x3a15e8;(_0x3a15e8=(_0x29f116=this[_0x30210e(0x386)])[_0x30210e(0x246)])==null||_0x3a15e8['call'](_0x29f116,_0x2dd223);}['_transformIMECache'](_0x30d1c6){const _0x45ca71=_0x23cbae;var _0x37945a,_0x51f65c;return(_0x51f65c=(_0x37945a=this['_handler'])[_0x45ca71(0x15f)])==null?void 0x0:_0x51f65c[_0x45ca71(0x1fc)](_0x37945a,_0x30d1c6);}[_0x23cbae(0x1e0)](_0x31d9fc){const _0x2b471a=_0x23cbae;var _0xfb661d,_0x34e1db,_0x4cdc12;return(_0x4cdc12=(_0x34e1db=(_0xfb661d=this[_0x2b471a(0x386)])[_0x2b471a(0x13a)])==null?void 0x0:_0x34e1db[_0x2b471a(0x1fc)](_0xfb661d,_0x31d9fc))!=null?_0x4cdc12:_0x31d9fc;}[_0x23cbae(0x33f)](_0x92aff7){const _0x4e75b6=_0x23cbae;var _0x24d9ad,_0x22bfe5;if(this['type']===k[_0x4e75b6(0x12f)]){const {unitID:_0x5a3940,mutations:_0x5725c1,memberID:_0xbc27f8}=_0x92aff7,_0x15d38c=_0x5725c1[0x0][_0x4e75b6(0x1e4)][_0x4e75b6(0x1f8)];Array[_0x4e75b6(0x218)](_0x15d38c)&&_0x15d38c[_0x4e75b6(0xed)]>0x0&&((_0x22bfe5=(_0x24d9ad=this[_0x4e75b6(0x386)])['onSyncEditingCollabCursor'])==null||_0x22bfe5['call'](_0x24d9ad,{'unitID':_0x5a3940,'memberID':_0xbc27f8,'textRanges':_0x15d38c}));}}[_0x23cbae(0x24f)](){const _0x1ce97c=_0x23cbae;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x1ce97c(0x2f1)],this[_0x1ce97c(0x1ba)],this[_0x1ce97c(0x1ab)]);}['_getCurrentRevision'](){const _0x4208e8=_0x23cbae;return this[_0x4208e8(0x28a)][_0x4208e8(0x305)](this[_0x4208e8(0x1a5)]);}[_0x23cbae(0x19a)](){const _0x4b9cf6=_0x23cbae;this[_0x4b9cf6(0x28a)]['incrementRevOfUnit'](this[_0x4b9cf6(0x1a5)]);}['_executeRemoteChangeset'](_0x17c6e8){const _0x14a371=_0x23cbae;var _0x3d085e;const _0x2ddfb0=this[_0x14a371(0x1e0)](_0x17c6e8),_0x27a9f6=_0x3b5adf(_0x2ddfb0['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x27a9f6[_0x14a371(0x315)])throw _0x27a9f6['error']instanceof Error?_0x27a9f6['error']:new Error((_0x3d085e=_0x27a9f6[_0x14a371(0x43f)])!=null?_0x3d085e:'[CollaborationState]:\x20apply\x20error!');this[_0x14a371(0x39f)](_0x2ddfb0),this[_0x14a371(0x159)](_0x17c6e8),this[_0x14a371(0x1ea)](_0x2ddfb0),this[_0x14a371(0x33f)](_0x2ddfb0),this[_0x14a371(0x19a)]();}}let pe=class extends ue{constructor(_0x279266,_0x455542,_0x776c82,_0x466ee4,_0x5885b5,_0x514719,_0x46eae8,_0x36d207,_0x5516fa,_0x3f1c01){const _0x34fd10=_0x23cbae;super(_0x279266,_0x455542,null,[],_0x776c82,_0x36d207,_0x46eae8,_0x466ee4,_0x5885b5),l(this,_0x34fd10(0x361),_0x34fd10(0x369)),(this[_0x34fd10(0x171)]=_0x514719,this[_0x34fd10(0x135)]=_0x5516fa,this[_0x34fd10(0x2f5)]=_0x3f1c01);}[_0x23cbae(0x3fb)](_0x5391ec){const _0x386f0b=_0x23cbae,_0x2aaae6=this[_0x386f0b(0x171)][_0x386f0b(0x351)](X,this[_0x386f0b(0x1a5)],this[_0x386f0b(0x2f1)],[_0x5391ec],this[_0x386f0b(0x386)]);return _0x2aaae6['_schedule'](),_0x2aaae6['_updateLocalCache'](),_0x2aaae6;}[_0x23cbae(0x1c3)](_0x368da5){const _0x3b13f5=_0x23cbae;if(this[_0x3b13f5(0x3b1)](_0x368da5))return this[_0x3b13f5(0x171)][_0x3b13f5(0x351)](B,this['unitID'],this['type'],null,[],null,[_0x368da5],this[_0x3b13f5(0x386)]);try{const _0x3c3d42=this[_0x3b13f5(0x2f5)]['transformMutationsWithChangeset'](_0x368da5,[Er]);if(_0x24c912(_0x3c3d42)){const {c1Prime:_0x4a458e}=_0x3c3d42;return this[_0x3b13f5(0x181)](_0x4a458e),this;}throw _0x3c3d42[_0x3b13f5(0x43f)];}catch(_0x3e5ff0){return this[_0x3b13f5(0x135)][_0x3b13f5(0x43f)](_0x3e5ff0),this[_0x3b13f5(0x128)](!0x1);}}[_0x23cbae(0x128)](_0x5eb3d1){const _0x35c8d1=_0x23cbae;return this[_0x35c8d1(0x171)]['createInstance'](ee,this[_0x35c8d1(0x1a5)],this[_0x35c8d1(0x2f1)],null,[],this[_0x35c8d1(0x386)],_0x5eb3d1);}[_0x23cbae(0x449)](){const _0x3994af=_0x23cbae;throw new Error(_0x3994af(0x27a));}[_0x23cbae(0x3d6)](){const _0x1f9057=_0x23cbae;throw new Error(_0x1f9057(0x406));}[_0x23cbae(0x433)](){const _0x37e62a=_0x23cbae;return this[_0x37e62a(0x171)][_0x37e62a(0x351)](te,this['unitID'],this['type'],null,[],this[_0x37e62a(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x107)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x4b0cbf=_0x23cbae,_0x44eee9=this[_0x4b0cbf(0x28a)][_0x4b0cbf(0x305)](this['unitID']);return this[_0x4b0cbf(0x386)]['onMissingChangesets']({'from':_0x44eee9,'to':0x0}),this[_0x4b0cbf(0x171)][_0x4b0cbf(0x351)](B,this[_0x4b0cbf(0x1a5)],this[_0x4b0cbf(0x2f1)],null,[],null,[],this[_0x4b0cbf(0x386)]);}};pe=_e([m(0x3,_0x57082d(_0x2056a3)),m(0x4,_0x57082d(w)),m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x2b3c29),m(0x7,_0x2c218a),m(0x8,_0x2ed9bc),m(0x9,_0x3ce5fa)],pe);let X=class extends ue{constructor(_0x55b7fc,_0x59f6a6,_0xee80da,_0x1a85a0,_0x578c23,_0x5b9aa3,_0x20abad,_0x49d5b5,_0x493852,_0x2645e8,_0x17084b,_0x21e3fb,_0x9eb154,_0x356c0c){const _0x45e8cf=_0x23cbae;super(_0x55b7fc,_0x59f6a6,null,_0xee80da,_0x1a85a0,_0x2645e8,_0x356c0c,_0x5b9aa3,_0x20abad),l(this,'status',_0x45e8cf(0x3ce)),l(this,_0x45e8cf(0x3ad),null),l(this,'_sendingTimer',null),(this[_0x45e8cf(0x171)]=_0x578c23,this['_memberService']=_0x49d5b5,this[_0x45e8cf(0x135)]=_0x493852,this[_0x45e8cf(0x44c)]=_0x17084b,this[_0x45e8cf(0x2f5)]=_0x21e3fb,this[_0x45e8cf(0x2ce)]=_0x9eb154);}[_0x23cbae(0x3fb)](_0x10764f){const _0x3d1580=_0x23cbae;return this[_0x3d1580(0x1ab)][_0x3d1580(0x12e)](_0x10764f),this['_updateLocalCache'](),this;}[_0x23cbae(0x1c3)](_0x42c2b2){const _0x116aa4=_0x23cbae;if(this[_0x116aa4(0x3b1)](_0x42c2b2))return this['_clearScheduledTask'](),this[_0x116aa4(0x171)]['createInstance'](B,this['unitID'],this['type'],null,this[_0x116aa4(0x1ab)],null,[_0x42c2b2],this[_0x116aa4(0x386)]);try{const _0x291a72=this[_0x116aa4(0x2f5)][_0x116aa4(0x3cc)](_0x42c2b2,this[_0x116aa4(0x1ab)]);if(_0x24c912(_0x291a72)){const {c1Prime:_0x239f0f,m2Prime:_0x32dd52}=_0x291a72;this['_executeRemoteChangeset'](_0x239f0f);const _0x19c222=this[_0x116aa4(0x171)][_0x116aa4(0x351)](X,this[_0x116aa4(0x1a5)],this['type'],_0x32dd52,this[_0x116aa4(0x386)]);return this[_0x116aa4(0x3bb)](),_0x19c222[_0x116aa4(0x2c8)](this[_0x116aa4(0x3ad)]?Math['max'](0x0,new Date()[_0x116aa4(0x324)]()-this['_scheduleTimestamp']):this[_0x116aa4(0x166)]()),_0x19c222;}throw _0x291a72[_0x116aa4(0x43f)];}catch(_0x1175b2){return this[_0x116aa4(0x135)][_0x116aa4(0x43f)](_0x1175b2),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x47f824=_0x23cbae;throw new Error(_0x47f824(0x2e7));}[_0x23cbae(0x3d6)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x23cbae(0x433)](){const _0x3df8c9=_0x23cbae;return this[_0x3df8c9(0x3bb)](),this[_0x3df8c9(0x171)][_0x3df8c9(0x351)](te,this[_0x3df8c9(0x1a5)],this['type'],null,this[_0x3df8c9(0x1ab)],this[_0x3df8c9(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x2c8)](_0x200c74){const _0x436b01=_0x23cbae,_0x5d9f7b=_0x200c74!=null?_0x200c74:this['_getSendChangesetTimeout']();this[_0x436b01(0x3ad)]=new Date()[_0x436b01(0x324)](),this[_0x436b01(0x119)]=window[_0x436b01(0x2d6)](()=>{const _0x41606f=_0x436b01;this[_0x41606f(0x3bb)]();let _0x1e66de=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x1e66de=ds(this[_0x41606f(0x1ab)],this[_0x41606f(0x1a5)],this['_univerInstanceService'],this[_0x41606f(0x28a)],this['_memberService']);break;}case k[_0x41606f(0x12f)]:{this[_0x41606f(0x1ab)]['every'](_0x32916e=>_0x32916e['id']===_0x520c9a['id'])?_0x1e66de=Ir(this[_0x41606f(0x1ab)],this['unitID'],this[_0x41606f(0x2ce)],this[_0x41606f(0x28a)],this[_0x41606f(0x2f4)]):_0x1e66de=ds(this[_0x41606f(0x1ab)],this[_0x41606f(0x1a5)],this[_0x41606f(0x2ce)],this[_0x41606f(0x28a)],this[_0x41606f(0x2f4)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x41606f(0x2f1)]+_0x41606f(0x382));}const {changeset:_0x9ecf53,pendingMutations:_0x53a07f}=_0x1e66de;this['_handler'][_0x41606f(0x42a)](_0x9ecf53);const _0x12994=_0x53a07f[_0x41606f(0xed)]?this[_0x41606f(0x171)][_0x41606f(0x351)](q,this['unitID'],this[_0x41606f(0x2f1)],_0x9ecf53,_0x53a07f,this[_0x41606f(0x386)]):this[_0x41606f(0x171)]['createInstance'](Q,this['unitID'],this['type'],_0x9ecf53,this[_0x41606f(0x386)]);_0x12994['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x12994);},_0x5d9f7b);}['_getSendChangesetTimeout'](){const _0x46a6ba=_0x23cbae;var _0x465f8a;const _0xf44e18=this[_0x46a6ba(0x44c)][_0x46a6ba(0x266)]($);return(_0x465f8a=_0xf44e18==null?void 0x0:_0xf44e18['sendChangesetTimeout'])!=null?_0x465f8a:In;}[_0x23cbae(0x107)](){const _0x14c9ec=_0x23cbae;throw new Error(_0x14c9ec(0x423));}[_0x23cbae(0x3bb)](){const _0x200e05=_0x23cbae;this[_0x200e05(0x119)]!=null&&(clearTimeout(this[_0x200e05(0x119)]),this[_0x200e05(0x119)]=null);}[_0x23cbae(0x128)](_0x3b1f8b){const _0x54d042=_0x23cbae;return this[_0x54d042(0x3bb)](),this[_0x54d042(0x171)][_0x54d042(0x351)](ee,this[_0x54d042(0x1a5)],this['type'],null,this[_0x54d042(0x1ab)],this[_0x54d042(0x386)],_0x3b1f8b);}};X=_e([m(0x4,_0x57082d(_0x5aca14)),m(0x5,_0x57082d(_0x2056a3)),m(0x6,_0x57082d(w)),m(0x7,_0x57082d(ce)),m(0x8,_0x2ed9bc),m(0x9,_0x2c218a),m(0xa,_0x465ebb),m(0xb,_0x3ce5fa),m(0xc,_0xf0f4c1),m(0xd,_0x2b3c29)],X);let Q=class extends ue{constructor(_0x3c9d9a,_0x35a146,_0xe873d8,_0xd25268,_0x1e2efb,_0x54e40e,_0x40c2cf,_0x2e57d6,_0x36c13d,_0x91e3ca,_0x48969a){const _0x5ce353=_0x23cbae;super(_0x3c9d9a,_0x35a146,_0xe873d8,[],_0xd25268,_0x2e57d6,_0x48969a,_0x54e40e,_0x40c2cf),l(this,_0x5ce353(0x361),'awaiting'),(this[_0x5ce353(0x171)]=_0x1e2efb,this['_logService']=_0x36c13d,this['_transformService']=_0x91e3ca);}['appendMutation'](_0x5073aa){const _0xe729bb=_0x23cbae,_0x22de15=this[_0xe729bb(0x171)][_0xe729bb(0x351)](q,this[_0xe729bb(0x1a5)],this[_0xe729bb(0x2f1)],this['_awaitingChangeset'],[_0x5073aa],this[_0xe729bb(0x386)]);return _0x22de15[_0xe729bb(0x24f)](),_0x22de15;}['onRemoteChangeset'](_0x261891){const _0x4bde60=_0x23cbae;if(this[_0x4bde60(0x3b1)](_0x261891))return this[_0x4bde60(0x171)][_0x4bde60(0x351)](B,this[_0x4bde60(0x1a5)],this[_0x4bde60(0x2f1)],this[_0x4bde60(0x1ba)],[],null,[_0x261891],this[_0x4bde60(0x386)]);try{const _0x33fb6d=this[_0x4bde60(0x2f5)][_0x4bde60(0x399)]([_0x261891],[this['_awaitingChangeset']],!0x1);if(_0xf2155e(_0x33fb6d)){const {c1Prime:_0x31ecf5,c2Prime:_0x3b643b}=_0x33fb6d;this[_0x4bde60(0x181)](_0x31ecf5[0x0]),_0x3b643b[0x0][_0x4bde60(0x14f)]=this[_0x4bde60(0x288)]();const _0x48b508=this[_0x4bde60(0x171)][_0x4bde60(0x351)](Q,this[_0x4bde60(0x1a5)],this['type'],_0x3b643b[0x0],this['_handler']);return _0x48b508[_0x4bde60(0x24f)](),_0x48b508;}return this[_0x4bde60(0x128)](!0x1);}catch(_0x2154fa){return this[_0x4bde60(0x135)]['error'](_0x2154fa),this[_0x4bde60(0x128)](!0x1);}}[_0x23cbae(0x449)](_0x43120f){const _0x28204c=_0x23cbae,_0x491933=this[_0x28204c(0x28a)][_0x28204c(0x305)](this['unitID']);if(_0x43120f[_0x28204c(0x1d8)]<_0x491933-0x1)return this;if(this[_0x28204c(0x3b1)](_0x43120f))return this[_0x28204c(0x171)][_0x28204c(0x351)](B,this[_0x28204c(0x1a5)],this[_0x28204c(0x2f1)],null,[],this[_0x28204c(0x1ba)],[],this[_0x28204c(0x386)]);this['_incrementRevisionNumber']();const _0x55594e=this[_0x28204c(0x171)][_0x28204c(0x351)](pe,this['unitID'],this['type'],this['_handler']);return _0x55594e[_0x28204c(0x24f)](),_0x55594e;}[_0x23cbae(0x3d6)](_0x4945d7){const _0x416011=_0x23cbae;return this[_0x416011(0x128)](!!(_0x4945d7!=null&&_0x4945d7[_0x416011(0x226)]));}[_0x23cbae(0x433)](){const _0x519daa=_0x23cbae;return this[_0x519daa(0x171)][_0x519daa(0x351)](te,this['unitID'],this[_0x519daa(0x2f1)],this[_0x519daa(0x1ba)],[],this[_0x519daa(0x386)]);}[_0x23cbae(0x31a)](){return this;}['resend'](){const _0x2bdf8f=_0x23cbae;this[_0x2bdf8f(0x386)][_0x2bdf8f(0x42a)](this[_0x2bdf8f(0x1ba)]);}[_0x23cbae(0x128)](_0x285409){const _0x5a66a1=_0x23cbae;return this[_0x5a66a1(0x171)][_0x5a66a1(0x351)](ee,this[_0x5a66a1(0x1a5)],this[_0x5a66a1(0x2f1)],this[_0x5a66a1(0x1ba)],[],this['_handler'],_0x285409);}};Q=_e([m(0x4,_0x57082d(_0x5aca14)),m(0x5,_0x57082d(_0x2056a3)),m(0x6,_0x57082d(w)),m(0x7,_0x2c218a),m(0x8,_0x2ed9bc),m(0x9,_0x3ce5fa),m(0xa,_0x2b3c29)],Q);let q=class extends ue{constructor(_0xc475ac,_0x37800c,_0x4139dc,_0x25da34,_0x111c38,_0x562dca,_0x11a311,_0x2b5dbe,_0x4ca595,_0x175941,_0x1491d4,_0xae825d){const _0x1121fc=_0x23cbae;super(_0xc475ac,_0x37800c,_0x4139dc,_0x25da34,_0x111c38,_0x4ca595,_0xae825d,_0x11a311,_0x2b5dbe),l(this,_0x1121fc(0x361),_0x1121fc(0x1d0)),(this[_0x1121fc(0x171)]=_0x562dca,this[_0x1121fc(0x135)]=_0x175941,this[_0x1121fc(0x2f5)]=_0x1491d4);}[_0x23cbae(0x3fb)](_0x5446e7){const _0x3e5931=_0x23cbae;return this['_pendingMutations'][_0x3e5931(0x12e)](_0x5446e7),this;}[_0x23cbae(0x1c3)](_0x101eb4){const _0x38b96d=_0x23cbae;if(this[_0x38b96d(0x3b1)](_0x101eb4))return this[_0x38b96d(0x171)][_0x38b96d(0x351)](B,this['unitID'],this[_0x38b96d(0x2f1)],this['_awaitingChangeset'],this[_0x38b96d(0x1ab)],null,[_0x101eb4],this[_0x38b96d(0x386)]);try{const _0x30fc62=this[_0x38b96d(0x2f5)][_0x38b96d(0x399)]([_0x101eb4],[this[_0x38b96d(0x1ba)]],!0x1);if(_0xf2155e(_0x30fc62)){const {c1Prime:_0x4b0632,c2Prime:_0x23f0bb}=_0x30fc62,_0x411f88=this['_transformService'][_0x38b96d(0x3cc)](_0x4b0632[0x0],this[_0x38b96d(0x1ab)]);if(_0x24c912(_0x411f88)){const {c1Prime:_0x5466bd,m2Prime:_0x5a57e2}=_0x411f88;return this[_0x38b96d(0x181)](_0x5466bd),_0x23f0bb[0x0][_0x38b96d(0x14f)]=this['_getCurrentRevision'](),this['_injector'][_0x38b96d(0x351)](q,this[_0x38b96d(0x1a5)],this[_0x38b96d(0x2f1)],_0x23f0bb[0x0],_0x5a57e2,this[_0x38b96d(0x386)]);}throw _0x411f88[_0x38b96d(0x43f)];}throw _0x30fc62['error'];}catch(_0x1b6fc9){return this[_0x38b96d(0x135)]['error'](_0x1b6fc9),this[_0x38b96d(0x128)](!0x1);}}[_0x23cbae(0x449)](_0x51b211){const _0x524292=_0x23cbae;if(this[_0x524292(0x3b1)](_0x51b211))return this['_injector'][_0x524292(0x351)](B,this['unitID'],this[_0x524292(0x2f1)],null,this[_0x524292(0x1ab)],this[_0x524292(0x1ba)],[],this[_0x524292(0x386)]);this[_0x524292(0x19a)]();const _0x52aeb4=this['_injector'][_0x524292(0x351)](X,this[_0x524292(0x1a5)],this['type'],this['_pendingMutations'],this['_handler']);return _0x52aeb4['_schedule'](),_0x52aeb4[_0x524292(0x24f)](),_0x52aeb4;}[_0x23cbae(0x3d6)](_0x3b6111){const _0x41c2d3=_0x23cbae;return this[_0x41c2d3(0x128)](!!(_0x3b6111!=null&&_0x3b6111[_0x41c2d3(0x226)]));}[_0x23cbae(0x433)](){const _0x162962=_0x23cbae;return this[_0x162962(0x171)][_0x162962(0x351)](te,this[_0x162962(0x1a5)],this[_0x162962(0x2f1)],this[_0x162962(0x1ba)],this[_0x162962(0x1ab)],this[_0x162962(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x107)](){const _0x15307e=_0x23cbae;this['_handler']['onSendChangeset'](this[_0x15307e(0x1ba)]);}[_0x23cbae(0x128)](_0x22d7bb){const _0x48a97d=_0x23cbae;return this[_0x48a97d(0x171)][_0x48a97d(0x351)](ee,this[_0x48a97d(0x1a5)],this[_0x48a97d(0x2f1)],null,this[_0x48a97d(0x1ab)],this[_0x48a97d(0x386)],_0x22d7bb);}};q=_e([m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x57082d(_0x2056a3)),m(0x7,_0x57082d(w)),m(0x8,_0x2c218a),m(0x9,_0x2ed9bc),m(0xa,_0x3ce5fa),m(0xb,_0x2b3c29)],q);let ee=class extends ue{constructor(_0x50caf3,_0x27c0a9,_0xd348b7,_0x379364,_0x2b81af,_0x3cff5c=!0x1,_0x398976,_0xf82742,_0x796458,_0x3401aa,_0x117702,_0x50f024,_0x125030){const _0x50f2cc=_0x23cbae;super(_0x50caf3,_0x27c0a9,_0xd348b7,_0x379364,_0x2b81af,_0xf82742,_0x796458,_0x117702,_0x3401aa),l(this,_0x50f2cc(0x361),_0x50f2cc(0x358)),(this['_isPermissionRej']=_0x3cff5c,this['_permissionService']=_0x398976,this[_0x50f2cc(0x151)]=_0x50f024,this[_0x50f2cc(0x285)]=_0x125030,this[_0x50f2cc(0x2ef)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x23cbae(0x3fb)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x23cbae(0x107)](){const _0x4a78b9=_0x23cbae;throw new Error(_0x4a78b9(0x372));}[_0x23cbae(0x311)](){const _0x184d2e=_0x23cbae;this['_localCacheService'][_0x184d2e(0xe0)](this[_0x184d2e(0x1a5)],this[_0x184d2e(0x2f1)],null,[]);}['_showConflictNotification'](){const _0x4f816d=_0x23cbae;this[_0x4f816d(0x2a1)]?this[_0x4f816d(0x285)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x4f816d(0x1dc)),'type':'error','duration':0x0}):this[_0x4f816d(0x285)][_0x4f816d(0x2bb)]({'title':this['_localeService']['t'](_0x4f816d(0x1aa)),'content':this[_0x4f816d(0x151)]['t'](_0x4f816d(0x2eb)),'type':_0x4f816d(0x43f),'duration':0x0});}[_0x23cbae(0x258)](){const _0x3116ee=_0x23cbae;this['_permissionService']['updatePermissionPoint'](new _0x41b6ca(this[_0x3116ee(0x1a5)])['id'],!0x1);}};ee=_e([m(0x6,_0x57082d(_0x3b2db3)),m(0x7,_0x2c218a),m(0x8,_0x2b3c29),m(0x9,_0x57082d(w)),m(0xa,_0x57082d(_0x2056a3)),m(0xb,_0x57082d(_0x1ba649)),m(0xc,_0x5cf6e8)],ee);let te=class extends ue{constructor(_0x192fb6,_0xbbd903,_0x45ea95,_0x46180b,_0x1b5dff,_0x51a18c,_0x15d169,_0x49dacb,_0x1f880e,_0x348d87){const _0x5be0bd=_0x23cbae;super(_0x192fb6,_0xbbd903,_0x45ea95,_0x46180b,_0x1b5dff,_0x1f880e,_0x348d87,_0x15d169,_0x49dacb),l(this,_0x5be0bd(0x361),_0x5be0bd(0x23f)),this[_0x5be0bd(0x171)]=_0x51a18c;}[_0x23cbae(0x3fb)](_0x1a00f5){const _0x2254ca=_0x23cbae;return this['_pendingMutations'][_0x2254ca(0x12e)](_0x1a00f5),this[_0x2254ca(0x24f)](),this;}[_0x23cbae(0x1c3)](_0x58b01e){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x23cbae(0x3d6)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x23cbae(0x433)](){return this;}['toggleOnline'](){const _0x13905e=_0x23cbae,{_injector:_0x53fe71,_pendingMutations:_0x7ddb0f,_awaitingChangeset:_0x546f7e,unitID:_0x227394,_handler:_0x36d5af,type:_0x38bb3d}=this,_0x5ea07f=Fs(_0x53fe71,_0x227394,_0x38bb3d,_0x546f7e,_0x7ddb0f,_0x36d5af);return _0x5ea07f instanceof X?_0x5ea07f['_schedule']():(_0x5ea07f instanceof q||_0x5ea07f instanceof Q)&&_0x5ea07f[_0x13905e(0x107)](),_0x5ea07f;}[_0x23cbae(0x107)](){const _0x3e5c20=_0x23cbae;throw new Error(_0x3e5c20(0x24d));}};te=_e([m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x57082d(_0x2056a3)),m(0x7,_0x57082d(w)),m(0x8,_0x2c218a),m(0x9,_0x2b3c29)],te);let B=class extends ue{constructor(_0x49dc0e,_0x1de849,_0x54167f,_0x218614,_0x4cc90d,_0x3b86ed,_0x34fd92,_0x1189fa,_0x4dc363,_0x37854b,_0x5058df,_0x48c7d8,_0x336fa4,_0x69c3bd){const _0x57ceff=_0x23cbae;super(_0x49dc0e,_0x1de849,_0x54167f,_0x218614,_0x34fd92,_0x48c7d8,_0x336fa4,_0x4dc363,_0x37854b),l(this,_0x57ceff(0x361),_0x57ceff(0x3d4)),(this[_0x57ceff(0x20a)]=_0x4cc90d,this['_queuedRemoteChangesets']=_0x3b86ed,this[_0x57ceff(0x171)]=_0x1189fa,this[_0x57ceff(0x135)]=_0x5058df,this[_0x57ceff(0x2f5)]=_0x69c3bd);}['onMissedChangesetFetched'](_0x57402b){const _0x4fbd7e=_0x23cbae;try{const _0x5adbf6=[..._0x57402b,...this[_0x4fbd7e(0x257)]],_0x33308a=[this['_awaitingChangeset']||this[_0x4fbd7e(0x20a)]][_0x4fbd7e(0x371)](_0x1a59d4=>!!_0x1a59d4);let _0x1c19a0,_0x1c3ab0;if(_0x33308a[_0x4fbd7e(0xed)]){const _0x4d7a72=this[_0x4fbd7e(0x2f5)][_0x4fbd7e(0x399)](_0x5adbf6,_0x33308a,!0x1);if(!_0xf2155e(_0x4d7a72))throw _0x4d7a72['error'];_0x1c19a0=_0x4d7a72[_0x4fbd7e(0x2d5)],_0x1c3ab0=_0x4d7a72[_0x4fbd7e(0x42b)];}else _0x1c19a0=_0x5adbf6,_0x1c3ab0=[];let _0x5c82a7=this[_0x4fbd7e(0x1ab)];_0x1c19a0[_0x4fbd7e(0x273)](_0x433772=>{const _0x17828a=_0x4fbd7e;let _0x28b1b4;if(_0x5c82a7['length']){const _0x2f46a7=this['_transformService']['transformMutationsWithChangeset'](_0x433772,_0x5c82a7);if(!_0x24c912(_0x2f46a7))throw _0x2f46a7[_0x17828a(0x43f)];_0x28b1b4=_0x2f46a7[_0x17828a(0x2d5)],_0x5c82a7=_0x2f46a7[_0x17828a(0x1b0)];}else _0x28b1b4=_0x433772;this[_0x17828a(0x181)](_0x28b1b4);}),this[_0x4fbd7e(0x20a)]&&this['_incrementRevisionNumber'](),this[_0x4fbd7e(0x1ba)]&&_0x1c3ab0['length']&&(_0x1c3ab0[0x0][_0x4fbd7e(0x14f)]=this[_0x4fbd7e(0x288)]());let _0x4c745e;if(this[_0x4fbd7e(0x1ba)]&&_0x5c82a7[_0x4fbd7e(0xed)]!==0x0)_0x4c745e=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](q,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],_0x1c3ab0[0x0],_0x5c82a7,this[_0x4fbd7e(0x386)]);else{if(this[_0x4fbd7e(0x1ba)]&&_0x5c82a7[_0x4fbd7e(0xed)]===0x0)_0x1c3ab0[0x0][_0x4fbd7e(0x14f)]=this[_0x4fbd7e(0x288)](),_0x4c745e=this['_injector'][_0x4fbd7e(0x351)](Q,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],_0x1c3ab0[0x0],this['_handler']);else{if(_0x5c82a7[_0x4fbd7e(0xed)]!==0x0){const _0x521913=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](X,this[_0x4fbd7e(0x1a5)],this['type'],_0x5c82a7,this[_0x4fbd7e(0x386)]);_0x521913[_0x4fbd7e(0x2c8)](),_0x4c745e=_0x521913;}else _0x4c745e=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](pe,this[_0x4fbd7e(0x1a5)],this['type'],this[_0x4fbd7e(0x386)]);}}return _0x4c745e[_0x4fbd7e(0x24f)](),_0x4c745e;}catch(_0x25f7c8){return this[_0x4fbd7e(0x135)]['error'](_0x4fbd7e(0x3c2),_0x4fbd7e(0x295),_0x25f7c8),this['_injector'][_0x4fbd7e(0x351)](ee,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],this[_0x4fbd7e(0x1ba)],this[_0x4fbd7e(0x1ab)],this[_0x4fbd7e(0x386)],!0x1);}}[_0x23cbae(0x107)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x23cbae(0x3fb)](_0x395114){const _0x34e1ad=_0x23cbae;return this[_0x34e1ad(0x1ab)][_0x34e1ad(0x12e)](_0x395114),this;}['onRemoteChangeset'](_0xd561e3){const _0xd919e9=_0x23cbae;return this[_0xd919e9(0x257)]['push'](_0xd561e3),this;}[_0x23cbae(0x449)](_0x5e0f04){const _0x84e8f6=_0x23cbae;if(this[_0x84e8f6(0x1ba)])return this[_0x84e8f6(0x20a)]=this['_awaitingChangeset'],this[_0x84e8f6(0x1ba)]=null,this;throw new Error(_0x84e8f6(0x238));}[_0x23cbae(0x3d6)](_0xecb657){const _0x373fd3=_0x23cbae;return this[_0x373fd3(0x128)](!!(_0xecb657!=null&&_0xecb657['isPermissionRej']));}['toggleOffline'](){const _0x18a48c=_0x23cbae;return this[_0x18a48c(0x171)][_0x18a48c(0x351)](te,this[_0x18a48c(0x1a5)],this['type'],this[_0x18a48c(0x1ba)],this[_0x18a48c(0x1ab)],this[_0x18a48c(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x128)](_0x2fe5f6){const _0x3b3f04=_0x23cbae;return this[_0x3b3f04(0x171)][_0x3b3f04(0x351)](ee,this[_0x3b3f04(0x1a5)],this['type'],this[_0x3b3f04(0x1ba)],this[_0x3b3f04(0x1ab)],this[_0x3b3f04(0x386)],_0x2fe5f6);}};B=_e([m(0x7,_0x57082d(_0x5aca14)),m(0x8,_0x57082d(_0x2056a3)),m(0x9,_0x57082d(w)),m(0xa,_0x2ed9bc),m(0xb,_0x2c218a),m(0xc,_0x2b3c29),m(0xd,_0x3ce5fa)],B);function Fs(_0x58dc6b,_0x31f45c,_0x3aff29,_0x39ca08,_0x288719,_0x378c67){const _0x291bc6=_0x23cbae;return _0x39ca08&&_0x288719['length']?_0x58dc6b[_0x291bc6(0x351)](q,_0x31f45c,_0x3aff29,_0x39ca08,_0x288719,_0x378c67):_0x39ca08?_0x58dc6b[_0x291bc6(0x351)](Q,_0x31f45c,_0x3aff29,_0x39ca08,_0x378c67):_0x288719[_0x291bc6(0xed)]?_0x58dc6b[_0x291bc6(0x351)](X,_0x31f45c,_0x3aff29,_0x288719,_0x378c67):_0x58dc6b[_0x291bc6(0x351)](pe,_0x31f45c,_0x3aff29,_0x378c67);}var Tr=Object[_0x23cbae(0xe2)],Rr=Object[_0x23cbae(0x36a)],Wt=(_0x1d72d0,_0x296701,_0x3a560c,_0x276aaf)=>{for(var _0x23f379=_0x276aaf>0x1?void 0x0:_0x276aaf?Rr(_0x296701,_0x3a560c):_0x296701,_0x2d9a23=_0x1d72d0['length']-0x1,_0x5500b0;_0x2d9a23>=0x0;_0x2d9a23--)(_0x5500b0=_0x1d72d0[_0x2d9a23])&&(_0x23f379=(_0x276aaf?_0x5500b0(_0x296701,_0x3a560c,_0x23f379):_0x5500b0(_0x23f379))||_0x23f379);return _0x276aaf&&_0x23f379&&Tr(_0x296701,_0x3a560c,_0x23f379),_0x23f379;},p=(_0x342ec1,_0x181795)=>(_0x3c7aea,_0x2d5a65)=>_0x181795(_0x3c7aea,_0x2d5a65,_0x342ec1);let qe=class extends _0x3a262a{constructor(_0x3352cd,_0x923b7f,_0x7be85,_0x1f0bf5,_0x27a4bd,_0x210531,_0x12cb47,_0x5ca153,_0x559196,_0xd3061c,_0x1b2ea2,_0x481e49,_0x31ec5b){const _0x5a217e=_0x23cbae;super(),l(this,_0x5a217e(0x2cc),new _0x169308(null)),l(this,_0x5a217e(0x2c9),this[_0x5a217e(0x2cc)][_0x5a217e(0x341)]()),l(this,_0x5a217e(0x155)),l(this,_0x5a217e(0x396),!0x1),l(this,_0x5a217e(0x431),''),l(this,_0x5a217e(0x3b4),0x0),l(this,_0x5a217e(0x19d),this['state$'][_0x5a217e(0x18c)](_0x29443(_0x4cebfd=>_0x4cebfd?_0x4cebfd[_0x5a217e(0x361)]:P['OFFLINE']),_0x153603(0x1))),l(this,_0x5a217e(0x44b),!0x1),l(this,_0x5a217e(0x12a),[]),(this['unitID']=_0x3352cd,this['session']=_0x923b7f,this['_type']=_0x7be85,this[_0x5a217e(0x171)]=_0x1f0bf5,this['_localCacheService']=_0x27a4bd,this['_compressMutationService']=_0x210531,this['_localeService']=_0x12cb47,this[_0x5a217e(0x28a)]=_0x5ca153,this['_logService']=_0x559196,this[_0x5a217e(0x393)]=_0xd3061c,this['_messageService']=_0x1b2ea2,this[_0x5a217e(0x34e)]=_0x481e49,this[_0x5a217e(0x141)]=_0x31ec5b);}get['state'](){const _0x3447b7=_0x23cbae;return this[_0x3447b7(0x155)];}async[_0x23cbae(0x410)](){const _0x3faa7f=_0x23cbae;if(this[_0x3faa7f(0x281)])throw new Error(_0x3faa7f(0x15c));await this[_0x3faa7f(0x383)]();}['pauseCollaboration'](){const _0x5e88b8=_0x23cbae;return this[_0x5e88b8(0x396)]=!0x0,_0xad1b53(()=>{const _0x2722a3=_0x5e88b8;this[_0x2722a3(0x396)]=!0x1,this[_0x2722a3(0x3ef)]();});}['_updateState'](_0x138b5b){const _0x2c6c49=_0x23cbae;this[_0x2c6c49(0x155)]=_0x138b5b,this[_0x2c6c49(0x2cc)]['next'](_0x138b5b);}async[_0x23cbae(0x383)](){const _0x4fa6a=_0x23cbae;var _0x4dce73;this[_0x4fa6a(0x325)](await this[_0x4fa6a(0x1bb)]()),this[_0x4fa6a(0x141)]&&((_0x4dce73=this[_0x4fa6a(0x141)])==null||_0x4dce73[_0x4fa6a(0x169)](this['unitID']),this[_0x4fa6a(0x165)](this['_singleActiveUnitService'][_0x4fa6a(0x2c6)](this[_0x4fa6a(0x1a5)])['subscribe'](_0x2649c8=>{const _0x6de2e5=_0x4fa6a;this[_0x6de2e5(0x135)]['debug'](_0x6de2e5(0x30e),_0x6de2e5(0x3ee),_0x2649c8),_0x2649c8===Bs[_0x6de2e5(0x2ae)]?(this[_0x6de2e5(0x3d5)][_0x6de2e5(0x2bb)]({'content':this[_0x6de2e5(0x151)]['t'](_0x6de2e5(0xd7)),'type':_0x135398['Warning']}),this[_0x6de2e5(0x34e)]['updatePermissionPoint'](new _0x41b6ca(this['unitID'])['id'],!0x1)):this[_0x6de2e5(0x34e)]['updatePermissionPoint'](new _0x41b6ca(this[_0x6de2e5(0x1a5)])['id'],!0x0);})));let _0x7e4fda=!0x1;return this[_0x4fa6a(0x165)](this[_0x4fa6a(0x291)][_0x4fa6a(0x18f)][_0x4fa6a(0x334)](_0x9284de=>{const _0x5bd663=_0x4fa6a;_0x9284de===Y[_0x5bd663(0x12d)]?this[_0x5bd663(0x26a)](_0x7e4fda):_0x9284de===Y['OFFLINE']&&(_0x7e4fda=!0x0,this[_0x5bd663(0xfc)]());})),this[_0x4fa6a(0x165)](this[_0x4fa6a(0x291)][_0x4fa6a(0x29c)]['subscribe'](_0x197f62=>{const _0x91c716=_0x4fa6a;try{switch(_0x197f62[_0x91c716(0x3f0)]){case _0x44cf74['NEW_CHANGESETS']:{this[_0x91c716(0xde)](_0x66b1e7(_0x197f62['data']));break;}case _0x44cf74[_0x91c716(0x198)]:{this[_0x91c716(0x1cc)](_0x197f62['data']);break;}case _0x44cf74[_0x91c716(0x366)]:{this['_onRemoteRejected']();break;}case _0x44cf74[_0x91c716(0x319)]:{this[_0x91c716(0x23c)](_0x197f62['data'][_0x91c716(0x439)]['map'](_0x5b0f97=>_0x66b1e7(_0x5b0f97)));break;}case _0x44cf74[_0x91c716(0x247)]:this[_0x91c716(0x1fa)]({'isPermissionRej':!0x0});}}catch(_0x8d8e47){throw console['error'](_0x91c716(0x125),_0x8d8e47),_0x8d8e47;}})),this[_0x4fa6a(0x155)];}[_0x23cbae(0xe8)](){const _0xb3668c=_0x23cbae;this[_0xb3668c(0x44b)]=!0x1;}[_0x23cbae(0x118)](){const _0x8a0c4f=_0x23cbae;if(this[_0x8a0c4f(0x44b)])throw new Error(_0x8a0c4f(0x348));this[_0x8a0c4f(0x44b)]=!0x0;}['_onLocalMutation'](_0x46b168){const _0x388ede=_0x23cbae;this[_0x388ede(0x118)](),this[_0x388ede(0x325)](this['_state'][_0x388ede(0x3fb)](_0x46b168)),this[_0x388ede(0xe8)]();}[_0x23cbae(0xde)](_0x13d57e){const _0x2a0bb0=_0x23cbae;if(!(_0x13d57e[_0x2a0bb0(0x1d8)]<=this[_0x2a0bb0(0x28a)][_0x2a0bb0(0x305)](this['unitID']))){if(this[_0x2a0bb0(0x396)]){this[_0x2a0bb0(0x12a)][_0x2a0bb0(0x12e)](_0x13d57e);return;}this[_0x2a0bb0(0x400)](_0x13d57e);}}[_0x23cbae(0x3ef)](){const _0x5477c5=_0x23cbae;this[_0x5477c5(0x12a)]['forEach'](_0x427a7e=>this[_0x5477c5(0x400)](_0x427a7e)),this[_0x5477c5(0x12a)]=[];}[_0x23cbae(0x400)](_0xecfcec){const _0x5835c7=_0x23cbae,_0x4fb5c4=this['_compressMutationService'][_0x5835c7(0x1f5)]['fetchThroughInterceptors'](this[_0x5835c7(0x115)]['interceptor'][_0x5835c7(0x293)]()['COMPRESS_MUTATION_APPLY'])(_0xecfcec[_0x5835c7(0x2e4)],null)||_0xecfcec['mutations'],_0x5328ce={..._0xecfcec,'mutations':_0x4fb5c4};this[_0x5835c7(0x118)](),this['_updateState'](this[_0x5835c7(0x155)][_0x5835c7(0x1c3)](_0x5328ce)),this[_0x5835c7(0xe8)]();}['_onRemoteACK'](_0x391570){const _0x5412b8=_0x23cbae;this[_0x5412b8(0x118)](),this['_updateState'](this[_0x5412b8(0x155)][_0x5412b8(0x449)](_0x391570)),this[_0x5412b8(0xe8)]();}['_onRemoteRejected'](_0x549bfb){const _0x5257d7=_0x23cbae;this['_lockTransition'](),this[_0x5257d7(0x325)](this[_0x5257d7(0x155)][_0x5257d7(0x3d6)](_0x549bfb)),this[_0x5257d7(0xe8)]();}[_0x23cbae(0x23c)](_0x341020){const _0x4039ea=_0x23cbae;if(!(this['_state']instanceof B))throw new TypeError(_0x4039ea(0x24c));const _0x3127db=_0x341020['map'](_0x1b1405=>{const _0x37e643=_0x4039ea,_0x7e7247=this['_compressMutationService'][_0x37e643(0x1f5)][_0x37e643(0x206)](this[_0x37e643(0x115)]['interceptor'][_0x37e643(0x293)]()[_0x37e643(0x122)])(_0x1b1405[_0x37e643(0x2e4)],null)||_0x1b1405[_0x37e643(0x2e4)];return{..._0x1b1405,'mutations':_0x7e7247};});this['_lockTransition'](),this[_0x4039ea(0x325)](this['_state'][_0x4039ea(0x3fa)](_0x3127db)),this[_0x4039ea(0xe8)]();}['_toggleOffline'](){const _0x1f33e9=_0x23cbae;this[_0x1f33e9(0x118)](),this[_0x1f33e9(0x325)](this['_state'][_0x1f33e9(0x433)]()),this[_0x1f33e9(0xe8)]();}[_0x23cbae(0x26a)](_0x1e8ded=!0x1){const _0x30e3ff=_0x23cbae;this['_lockTransition'](),this['_updateState'](this[_0x30e3ff(0x155)][_0x30e3ff(0x31a)]()),this['_unlockTransition']();const _0x48abf4=this['_state'];_0x1e8ded&&_0x48abf4 instanceof pe&&(this[_0x30e3ff(0x118)](),this['_updateState'](_0x48abf4[_0x30e3ff(0x1d3)]()),this[_0x30e3ff(0xe8)]());}async[_0x23cbae(0x1bb)](){return new Promise(_0x33b28b=>{const _0x1a9b51=_0x3f49;this[_0x1a9b51(0x291)][_0x1a9b51(0x18f)][_0x1a9b51(0x18c)](_0x333f84(0x1))['subscribe'](async _0x1f650a=>{const _0x3aa4b9=_0x1a9b51;_0x33b28b(await this[_0x3aa4b9(0x167)](_0x1f650a===Y[_0x3aa4b9(0x12d)]));});});}['_createHandler'](){const _0x427428=_0x23cbae,_0x2a06ce=this[_0x427428(0x1a5)];return{'onStateChange':(_0x4a01bb,_0x2dfa3d)=>{const _0x273d8e=_0x427428;if(_0x4a01bb!==this['_state'])throw new Error(_0x273d8e(0x409)+_0x4a01bb[_0x273d8e(0x361)]+_0x273d8e(0x15a)+_0x2dfa3d[_0x273d8e(0x361)]+'\x0aCurrent:\x20'+this['_state'][_0x273d8e(0x361)]);this[_0x273d8e(0x325)](_0x2dfa3d);},'onSendChangeset':_0x3770d3=>{const _0x3907e8=_0x427428;_0x3770d3['sid']||(_0x3770d3[_0x3907e8(0x1bf)]=this[_0x3907e8(0x431)],_0x3770d3['reqId']=++this['_changesetReqId']);const _0x41d253={'eventID':_0x44cf74['SUBMIT_CHANGESET'],'data':{'unitID':_0x3770d3[_0x3907e8(0x1a5)],'unitType':this[_0x3907e8(0x1e9)],'changeset':_0x3770d3,'memberID':this['session'][_0x3907e8(0x375)]()}};this[_0x3907e8(0x291)]['send'](_0x41d253,this[_0x3907e8(0x1a5)]);},'onMissingChangesets':({from:_0x559fe8,to:_0x2bc3ae})=>{const _0xf35a91=_0x427428;this['_logService']['debug'](_0xf35a91(0x30e),_0xf35a91(0x186)+_0x559fe8+_0xf35a91(0x392)+_0x2bc3ae);const _0x47bc1d={'eventID':_0x44cf74[_0xf35a91(0x417)],'data':{'unitID':_0x2a06ce,'unitType':this[_0xf35a91(0x1e9)],'from':_0x559fe8,'to':_0x2bc3ae}};this[_0xf35a91(0x291)]['send'](_0x47bc1d,this['unitID']);}};}async['_createInitialStateImpl'](_0x4b5bdc){const _0x579ab4=_0x23cbae;var _0x4e89e2,_0x1ce17d;const _0x290d1a=await this[_0x579ab4(0x279)][_0x579ab4(0x2b7)](this[_0x579ab4(0x1a5)]),_0x280bf1=(_0x4e89e2=_0x290d1a==null?void 0x0:_0x290d1a[_0x579ab4(0x2e4)])!=null?_0x4e89e2:[],_0xef888f=(_0x1ce17d=_0x290d1a==null?void 0x0:_0x290d1a[_0x579ab4(0x34a)])!=null?_0x1ce17d:null,_0x149162=!!(_0xef888f!=null&&_0xef888f[_0x579ab4(0x1bf)])&&!!(_0xef888f!=null&&_0xef888f[_0x579ab4(0x26b)]);this[_0x579ab4(0x431)]=_0x149162?_0xef888f[_0x579ab4(0x1bf)]:ir(),this[_0x579ab4(0x3b4)]=_0x149162?_0xef888f[_0x579ab4(0x26b)]:0x0;const _0x3b0515=this[_0x579ab4(0x1a5)];try{this[_0x579ab4(0x1e8)](_0xef888f,_0x280bf1);}catch(_0x571fdc){this[_0x579ab4(0x135)][_0x579ab4(0x43f)](_0x571fdc);}const _0xf3e500=this[_0x579ab4(0x296)]();if(_0x4b5bdc){const _0x2834fd=Fs(this[_0x579ab4(0x171)],_0x3b0515,this[_0x579ab4(0x1e9)],_0xef888f,_0x280bf1,_0xf3e500);return _0x2834fd instanceof X?_0x2834fd[_0x579ab4(0x2c8)]():(_0x2834fd instanceof q||_0x2834fd instanceof Q)&&_0x2834fd[_0x579ab4(0x107)](),_0x2834fd;}return this[_0x579ab4(0x171)]['createInstance'](te,_0x3b0515,this[_0x579ab4(0x1e9)],_0xef888f,_0x280bf1,_0xf3e500);}['_replayCachedMutations'](_0x24712c,_0x3bf401){const _0x66f800=_0x23cbae;var _0x2b6407,_0xbd4e25;const _0x5b6400=this[_0x66f800(0x115)][_0x66f800(0x1f5)][_0x66f800(0x206)](this[_0x66f800(0x115)][_0x66f800(0x1f5)][_0x66f800(0x293)]()['COMPRESS_MUTATION_APPLY']);(_0x2b6407=_0x5b6400((_0x24712c==null?void 0x0:_0x24712c[_0x66f800(0x2e4)])||[],null))==null||_0x2b6407['forEach'](_0x1d20a6=>this[_0x66f800(0x393)][_0x66f800(0x1ad)](_0x1d20a6['id'],_0x1d20a6[_0x66f800(0x1e4)])),(_0xbd4e25=_0x5b6400(_0x3bf401||[],null))==null||_0xbd4e25[_0x66f800(0x273)](_0x55de1d=>this[_0x66f800(0x393)][_0x66f800(0x1ad)](_0x55de1d['id'],_0x55de1d[_0x66f800(0x1e4)]));}};qe=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x2ed9bc),p(0x9,_0x2c218a),p(0xa,_0x2493e9),p(0xb,_0x3b2db3),p(0xc,_0x187eb8(tt))],qe);let Tt=class extends qe{constructor(_0x3d4b0b,_0x4a4ca0,_0xd90e70,_0x358c0a,_0x4eaf91,_0x1961bf,_0x35d7b1,_0x172a50,_0x7182c2,_0xa0f2f0,_0x22bd0c,_0x39d944,_0x5b2e11,_0x211ab2,_0x13e623,_0x28d440,_0x20a525){const _0x15f0b6=_0x23cbae;super(_0x3d4b0b,_0xd90e70,_0x4a4ca0,_0x358c0a,_0x4eaf91,_0x1961bf,_0x35d7b1,_0x172a50,_0x5b2e11,_0x211ab2,_0x13e623,_0x28d440,_0x20a525),this[_0x15f0b6(0x1a5)]=_0x3d4b0b,this['type']=_0x4a4ca0,this['_docStateChangeManagerService']=_0x7182c2,this[_0x15f0b6(0x2cd)]=_0xa0f2f0,this[_0x15f0b6(0x355)]=_0x22bd0c,this[_0x15f0b6(0x31f)]=_0x39d944;}[_0x23cbae(0x296)](){const _0x3a6e65=_0x23cbae,_0x29b6f1=super['_createHandler']();return _0x29b6f1[_0x3a6e65(0x15f)]=_0x5340c0=>this['_docTransformIMECacheService'][_0x3a6e65(0x14c)](_0x5340c0),_0x29b6f1[_0x3a6e65(0x246)]=_0x584ddb=>this[_0x3a6e65(0x355)][_0x3a6e65(0x3f8)](_0x584ddb),_0x29b6f1[_0x3a6e65(0x15e)]=_0x47ad5a=>this['_docSyncEditingCollabCursorService'][_0x3a6e65(0x427)](_0x47ad5a),_0x29b6f1[_0x3a6e65(0x13a)]=_0x385712=>this[_0x3a6e65(0x2cd)][_0x3a6e65(0x241)](_0x385712),_0x29b6f1;}async[_0x23cbae(0x383)](){const _0x197475=_0x23cbae,_0x1b4f3d=await super[_0x197475(0x383)]();return this[_0x197475(0x1c1)][_0x197475(0x26c)][_0x197475(0x18c)](_0x5b993c(this['dispose$']))['subscribe'](_0x59ea7f=>{const _0xc3672d=_0x197475;if(_0x59ea7f==null)return;const {unitId:_0x370ac4,redoState:_0x33cbed,commandId:_0x299445}=_0x59ea7f;if(_0x370ac4!==this['unitID'])return;const _0x1d2069={'id':_0x299445,'type':_0x406a66[_0xc3672d(0x411)],'params':{'unitId':_0x370ac4,'actions':_0x33cbed[_0xc3672d(0x347)],'textRanges':null}};this[_0xc3672d(0x156)](_0x1d2069);}),_0x1b4f3d;}};Tt=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x57082d(_0x2e5857)),p(0x9,_0x57082d(Ye)),p(0xa,_0x57082d(Xe)),p(0xb,_0x57082d(Ft)),p(0xc,_0x2ed9bc),p(0xd,_0x2c218a),p(0xe,_0x2493e9),p(0xf,_0x3b2db3),p(0x10,_0x187eb8(tt))],Tt);let Rt=class extends qe{constructor(_0x55c5fe,_0x32e73f,_0xfcce50,_0x30d525,_0x4ca23a,_0x5e8713,_0x5b7a68,_0x2c40c8,_0x29fa6d,_0xa36a9c,_0x220c34,_0x3d02f5,_0x1c05a7,_0x5c8499){const _0x10b96a=_0x23cbae;super(_0x55c5fe,_0xfcce50,_0x32e73f,_0x30d525,_0x4ca23a,_0x5e8713,_0x5b7a68,_0x2c40c8,_0xa36a9c,_0x220c34,_0x3d02f5,_0x1c05a7,_0x5c8499),this[_0x10b96a(0x1a5)]=_0x55c5fe,this[_0x10b96a(0x2f1)]=_0x32e73f,this[_0x10b96a(0x430)]=_0x29fa6d;}[_0x23cbae(0x296)](){const _0x3bb5dc=_0x23cbae,_0x5d18d0=super['_createHandler']();return _0x5d18d0['onTransformSelections']=_0x73fe9c=>this[_0x3bb5dc(0x430)][_0x3bb5dc(0x3f8)](_0x73fe9c),_0x5d18d0;}async[_0x23cbae(0x383)](){const _0x2761e9=_0x23cbae,_0x4b0717=await super['_init']();return this[_0x2761e9(0x165)](this['_commandService']['onCommandExecuted']((_0x26e755,_0x49f757)=>{const _0x18ce5b=_0x2761e9;if(_0x26e755[_0x18ce5b(0x2f1)]!==_0x406a66[_0x18ce5b(0x411)]||_0x49f757!=null&&_0x49f757[_0x18ce5b(0x176)]||_0x49f757!=null&&_0x49f757[_0x18ce5b(0x1c5)])return;const _0x553fd6=_0x26e755[_0x18ce5b(0x1e4)];if((_0x553fd6==null?void 0x0:_0x553fd6[_0x18ce5b(0x37e)])!==this['unitID'])return;const _0x4289e8=_0x26e755,_0x2b4b4a=this[_0x18ce5b(0x115)][_0x18ce5b(0x1f5)][_0x18ce5b(0x206)](this[_0x18ce5b(0x115)][_0x18ce5b(0x1f5)][_0x18ce5b(0x293)]()[_0x18ce5b(0x1db)])([_0x4289e8],null)||[_0x4289e8];this['_onLocalMutation'](_0x2b4b4a[0x0]);})),_0x4b0717;}};function _0x6cb7(){const _0x14c6f1=['visibilitychange','CONNECTOR_DATA_TOO_LARGE','_removeRoom','joinEvent','OTHER_CLIENTS_EDITING','text','exhaustSavingTask','&to=','_timeoutTimer','_listenToOnlineEvent','backgroundColor','ALREADY_EXISTS','values','loadOfflineData','collaboration.closeRoom','_cursorShapes','getRandomValues','show','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','arc','_substituteRedoStack','transformMutation','registerOnClose','onMissingChangesets','close','8764767vGUqes','_stopTelemetryCollaborationNewChangeset','APPLY_REVISION_CONFILICT','getUnitStatus$','create','_schedule','state$','font','_initStatusComponent','_state$','_docTransformIMECacheService','_univerInstanceService','getRangePointData','_unitStatus','saveOfflineData','colorChannel1','socket$','_getSnapshotAPIPrefix','c1Prime','setTimeout','update','1652532fdZqTi','bind','SNAPSHOT_INVALID_SNAPSHOT','univer-pro.collaboration-client-socket-service','defs','LICENSE_IMPORT_SIZE_EXCEEDED','_cachedData','_rescheduleHeartbeat','JOIN','getAncestorScale','LOCAL_CACHE_INTERVAL','_heartbeatTimer','mutations','searchParams','use','[PendingState]:\x20received\x20acknowledgement.','concat','_fetchMissChangesets','evenodd','conflict.content','COLLAB_SUBMIT_CHANGESET_URL','_colorAssignService','BASE64','_showConflictNotification','_renderManagerService','type','_context','updatePermissionObjEvent','_memberService','_transformService','_sessions','_roomMembers$','onPointerMove$','disableLocalCache','awaiting','_onCombEvent','storage','origin','UNIVER_SLIDE','_updateSubUnitFromURLParams','updateMember','unknown','add','allowed','_docSkeletonManagerService','getCurrentRevOfUnit','lineTo','object','skeleton','readAsDataURL','putCollaborators','setItem','_retryConnectingTimer','onRendered','[CollaborationEntity]','&source=','_event$','_clearLocalCache','reconnect','_collabCursorState$','MSG_FOR_ERROR','result','from','off-line-single','collabStatus.offline','PSEUDO_FETCH_MISSING_RESULT','toggleOnline','roomMembers','_initUnitPermissionChange','HttpExport','addObjects','_docSyncEditingCollabCursorService','not_collab','jiqing500','_clearRedo','getParam','getTime','_updateState','pushState','[UniverCollaborationClientPlugin]','_getLoginPath','removeMember','_shouldReportTelemetry','fillStyle','[CollaborationSession]','data','_setupBeforeClosingHandler','_clearHeartbeatTimer','DEFAULT_FILE_NAME','collabStatus.conflict','getOffsetConfig','ENSURE_SNAPSHOT_EXECUTION','subscribe','COMMENT_UPDATE','_cursorInfo$','subunit','getDocRanges','SUCCUSS','[DataLoaderController]','Error','on-line-single','/universer-api/stream/file/upload','_removeCollabCursors','_syncEditingCollabCursor','_collaborationController','asObservable','session.collaboration-timeout','RECV','_updateLocalCursor','_collabCursorController','416854hcwcFP','actions','[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.','fillRule','awaitingChangeset','#FFF','members','UNIVER_SHEET','_permissionService','SHOULD_CLOSE_CONN','_send','createInstance','path','telemetry\x20info\x20is\x20not\x20initialized','joinRsp','_docTransformSelectionsService','contains','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','conflict','blue400','dispose','rev','override','replace','_tryReconnect','xlink:href','_scheduleSaving','status','whenReady','selection','POST','file','CHANGESET_REJ','headers','UNDEFINED','synced','getOwnPropertyDescriptor','_initCommandExecutedListener','startsWith','addObject','measureText','getUndoRedoMutationParamsCache','_clearOtherTimers','filter','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_refreshCollabCursors','url(#off-line-single_clip0_910_343)','getMemberID','selections','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','TOO_MANY_REQUESTS','_updateStatus','labelPosition','loginUrlKey','ERROR_EXCEED_SIZE','_urlService','unitId','_waitForHeartbeatResponse','_onCursorDelete','4016YZoxUf','\x20in\x20_schedule.','_init','9724dEKmAH','getCurrentSelections','_handler','_initMergeInterceptor','_unitOnClients','message$','_updateCollabCursors','_beforeCloseService','onStarting','_unitID','registerBeforeClose','_getDownloadEndpointURL','createCollaborator','deleteCollaborator','\x20to\x20','_commandService','_sendHeartbeat','setCurrentUser','_collaborationPaused','collabStatus.syncing','_eventUnsubscribe','transformChangesets','_createSocket','reduce','visibilityState','getCollabEntity','LOGIN_URL_KEY','_transformIMECache','getMember','_hovered','round','UNIVER_UNKNOWN','/object/','_color','onPointerEnter$','Unknown\x20user','onlineStatusTitle','ERROR_IMAGE_TYPE','_getAPIPrefixPath','collaboratorID','drawWith','_scheduleTimestamp','_transformStack','setShapeProps','PERMISSION_DENIED','_checkMissing','location','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_changesetReqId','_socket','_joinRoom','_registerRenderDependencies','sheetID','univerjs-icon\x20univerjs-icon-','_substituteUndoStack','_clearScheduledTask','displayName','resolve','color','image/png','retryConnectingInterval','now','[FetchMissState]','assignAColorForMemberID','onlineStatus','SNAPSHOT_SERVER_URL_KEY','randomUUID','flatMap','_scheduleCollaborationTimeoutTimer','substring','unitId\x20is\x20not\x20found','SYNCED','transformMutationsWithChangeset','_range','pending','image/bmp','max','all','/object','_initStatusListener','fetch_missing','_messageService','onRemoteRej','registerHTTPInterceptor','YUUMI_RATE_OVER_LIMIT','HEARTBEAT_TIMEOUT','_sendHeartbeatTimer','RemoveColCommandId','_docSkeleton','_members','div','_backgroundColor','_drawAnchor','stopTime','getSkeleton','min','hidden','?size=','some','_redoStacks','m1Prime','commentUpdate$','parse','univer-online-status-icon','_removeClearOtherTimer','USERS_ENTER','editing\x20status\x20changed\x20to','_exhaustRemoteChangesetQueue','eventID','getActiveSheet','/block/','getRelativeToViewportCoord','/universer-api/oidc/authpage','_getSignURL','APPLY_PERMISSION_DENIED','code','transformSelections','_submitChangeset','onMissedChangesetFetched','appendMutation','replaceState','get','getTypeOfUnitDisposed$','_collaborationSessionService','_applyRemoteChangeset','DeleteRangeMoveLeftCommandId','/resources','[CollaborationSessionService]','height','_initEventListeners','[SyncedState]:\x20received\x20rejection.','_onConnectionOpen','_id','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','row','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','NOT_FOUND','clipPath','cursorInfo','_entityInit$','init','MUTATION','on-line-single_clip0_910_349','_change$','toString','deepClone','_userManagerService','FETCH_MISSING','_socketService','getFocusedUnit','APPLY_NON_SEQUENTIAL_REVISION','_onRefRangeChange','_lastPointer','map','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','split','UNIVER_PROJECT','_getCtorByUniverType','enableSingleActiveInstanceLock','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitSnapshot','collabStatus.synced','triggerDblclick','syncEditingCollabCursor','onCommandExecuted','_roomMembers','onSendChangeset','c2Prime','_snapshotServerService','_config','toRgbString','_transformPreviousActiveRange','_sheetTransformSelectionsService','_changesetSessionId','collaboration-session-retry','toggleOffline','apply','setAlpha','UPDATE_PERMISSION_OBJ','getCollabCursors$','_httpService','changesets','createSocket','purple300','_handleEvent','clearTimeout','_collabSessionService','error','_render','userID','[CollaborationUndoRedoService]','/collaborator','CONFLICT','_tryEnsureSocket','enableLocalCache','Univer','debug','onRemoteAck','InsertRowCommandId','_transitionLocked','_configService','collabWebSocketUrl','LICENSE_DISTRO_REJECTED','_hideTimer','_http','collaboration.single-unit.warning','getViewport','image/jpeg','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','createElement','_shapes','resize','_onRemoteChangeset','/unit/','updateOfflineData','capture','defineProperty','univer-online','_handleHover','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','UNIVER_COLLABORATION_CLIENT_PLUGIN','closePath','_unlockTransition','save\x20fail\x20reason\x20is\x20','extend','url(#on-line-single_clip0_910_349)','LIVESHARE_NEW_HOST','length','newCsEvent','_transformUndoRedoStack','transformStack\x20failed!','_telemetryService','LIVESHARE_FETCH_OPERATIONS','_scheduleHeartbeat','range','socketService','hide','getVpScrollXYInfoByPosToVp','YUUMI_SUBSCRIPTION_NOT_FOUND','refreshPermission','getUnitType','replaceTextRanges','_toggleOffline','1697680SplqoJ','_loadDoc','closeSession','_startTelemetryCollaborationNewChangeset','collab-rect-range-','url(#$1','disposeUnit','memberID','off-line-single_clip0_910_343','permissionRejEvent','resend','onPointerLeave$','collabStatus.notCollab','session.will-retry','_sheetSkeletonManagerService','_socket$','_listenToOfflineEvent','reject','getCurrentUnitForType','INVALID_ARGUMENT','set','_onRecvEvent','send','ERROR_IMAGE','_compressMutationService','socket\x20close','tag','_lockTransition','_sendingTimer','number','size','catch','liveShareNewHost','_anchor','slice','FETCH_MISS','1em','COMPRESS_MUTATION_APPLY','findNodePositionByCharIndex','clearInterval','Error\x20on\x20receiving\x20event','transformByState','onTransformChange$','_onConflict','285jgueZF','_remoteChangesetQueue','updatePermissionPoint','LEAVE','ONLINE','push','UNIVER_DOC','icon','next','socket\x20open.','_online','collaboration_new_changeset','_logService','_onUserJoin','/new_changes','className','_telemetryInfo','onTransformRemoteChangesetByIMECache','getCollabEntity$','InsertColCommandId','_getScale','listCollaborators','resourceIDs','_cursor','_singleActiveUnitService','_textBubble','assign','commentUpdateEvent','HELLO','_updateURLWithCurrentState','trim','indexOf','then','_session','_startCollaboration','transformIMECache','cursorInfo$','_hover','baseRev','routeKey','_localeService','localeService','Warning','unshift','_state','_onLocalMutation','DeleteRangeMoveUpCommandId','collaboration-client.offline-data-not-saved','_transformUndoredo','\x0aAfter:\x20','has','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','responseType','onSyncEditingCollabCursor','onTransformIME','PENDING','error$','cmd','getSheetBySheetId','fetchMissingChangesets','disposeWithMe','_getSendChangesetTimeout','_createInitialStateImpl','_assignedColors','editingUnit','/rev/','history','transformUndoRedo','objectActions','authzUrl','dispose$','getItem','_injector','_onConnectionFailed','complete','collab-text-anchor-','objectID','fromCollab','getCurrentUser','_commentService','getOwnPropertySymbols','getActiveRange','onMouseMove','connection\x20error','univer-online-status','_HTTPService','_decreaseWaiting','_onOffline','_executeRemoteChangeset','/universer-api/file/{fileID}/sign-url','getUnitId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','snapshot','fetching\x20missing\x20changesets\x20from\x20','_saveCache','_throwTelemetryCollaborationNewChangeset','getCurrent','stringify','prototype','pipe','idSuffix','_cursors','sessionStatus$','setWaitCount','\x20-\x20','YUUMI_URL_COL_OUT_OF_RANGE','_getMergeRange','change$','_anchorDot','loadDoc','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CHANGESET_ACK','0\x200\x2017\x2016','_incrementRevisionNumber','roomMembers$','_initResize','status$','uploadFileServerUrl','propertyIsEnumerable','getRenderById','getTypeOfUnitAdded$','name','ACTIVE_UNIT_EVENT_CHANNEL','_getSaveTimeout','unitID','INGEST','_initCloseConn','delete','OFFLINE','conflict.title','_pendingMutations','csRejEvent','executeCommand','rng','_clearUndo','m2Prime','UnitEmbedded','getResourcesRequest','_themeService','INTERNAL_ERROR','RETRY_CONNECTING_MAX_COUNT','url','auth.needGotoLoginAlert','OffLineSingle','isActive','_awaitingChangeset','_createInitialState','originalMeta','_socketReady','_sessionStatus$','sid','_getSheetObject','_docStateChangeManagerService','_onCursorUpdate','onRemoteChangeset','currentSkeleton$','onlyLocal','session.connection-failed','UUID','copyFileMeta','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','listRoles','getUnhiddenWorksheets','_onRemoteACK','leaveEvent','_candidateSocket','_handleHeartbeatEvent','awaiting_with_pending','getDeserializedSheetBlock','symbol','fetchMiss','UPDATE_CURSOR','entries','NEW_CHANGESETS','registerRenderModule','revision','getValue','width','COMPRESS_MUTATION_SEND','permission.content','save','/role','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_transformRemoteChangesetByIMECache','unload','_socketMessageSubscription','collab-text-range-','params','post','close$','#fff','_replayCachedMutations','_type','_transformSelections','collab-client.tooltip.reconnect','json','none','subUnitId','initWorkbookPermissionChange','UNKNOWN_CMD','_scene','SUBMIT_CHANGESET','children','key','interceptor','body','getMergeData','textRanges','getRoom','_onRemoteRejected','/allowed','call','_getAnchorBounding','FileId','getSheetId','doc.mutation.rich-text-editing','_refRangeService','_getRedoStack','objectType','function','subscribeEvent','fetchThroughInterceptors','sessionStatus','newValue','_colorIndex','_acknowledgedAwaitingChangeset','CHANGESET_REVISION_CONFILICT','_name','ws://127.0.0.1:8000/universer-api/comb/connect','&assign=','LIVESHARE_TERMINATE','15813hrxDBK','LICENSE_MAX_UNITS_EXCEEDED','_localStorageService','_drawRectRange','_handleJoinEvent','_getAPIPrefix','_undoRedoService','defIds','isArray','_imageSourceCache','FAIL','column','top','unit','_retryCount','_snapshotService','put','unsubscribe','restore','roomInfos','roles','_handleLeaveEvent','isPermissionRej','string','LICENSE_EXPORT_SIZE_EXCEEDED','_entities','NO_OTHER_CLIENTS_EDITING','_clearTimeoutTimer','getLatestCsReqIdBySid','LIVESHARE_OPERATION','SNAPSHOT_URL_KEY','focused$','fill','RemoveRowCommandId','FromArray','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_drawTextRange','AUTHZ_URL_KEY','requireSession','_selfUnitIDs','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','engine','isEditing','_commentUpdate$','_onFetchMissResult','uni.network.url-service','black','offline','online','transformRemoteChangeset','_ws','hasOwnProperty','AWAITING','loadSheet','onTransformSelections','PERMISSION_REJ','currentTheme$','_getUndoStack','{fileID}','image/gif','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','action','_updateLocalCache','attrs','batchAllowed','beginPath','popstate','_saveTaskMap','VIEW_MAIN','_labelPosition','_queuedRemoteChangesets','_disableEditing','generateRandomId','USERS_LEAVE','onCommentUpdate','csAckEvent','_collaborationTimeoutTimer','/universer-api/comb','_scheduleClearOtherTimer','enableOfflineEditing','requestParams','_startSheetCollabCursor','clear','x-univer-host','find','getConfig','_onUserLeave','/-/object/-/batch_allowed','HttpImport','_toggleOnline','reqId','docStateChange$','HEARTBEAT','NOT_COLLAB','saveChangeset','HEADER_MENU','IDLE','onlineStatusIcon','forEach','MoveRangeCommandId','_clearCollaborationTimeoutTimer','collabSubmitChangesetUrl','addEventListener','encodeURIComponent','_localCacheService','[SyncedState]:\x20received\x20acknowledgement.','collaborators','_onMessage','includes','_ensureSubject','AWAITING_WITH_PENDING','APPLY_DUPLICATED','state','_initRequestHeader','encode','getImage','_notificationService','getUnitOnRev','makeDirty','_getCurrentRevision','...','_revisionService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_registerDependencies','_waitCount','with','M0\x200H16V16H0z','_status$','session','collabCursorState$','getInterceptPoints','saveImage','failed\x20to\x20apply\x20missed\x20changesets!','_createHandler','UNRECOGNIZED','_disabled','_replaceFileID','SNAPSHOT_HAS_BEEN_REMOVED','ranges','event$','4401096QvzstK','currentColor','_undoStacks','href','_isPermissionRej','open$','YUUMI_UNABLE_LOAD_URL','bottom','random','setParam','UNAUTHENTICATED','_instanceService','UNKNOWN_CODE'];_0x6cb7=function(){return _0x14c6f1;};return _0x6cb7();}Rt=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x57082d(Ke)),p(0x9,_0x2ed9bc),p(0xa,_0x2c218a),p(0xb,_0x2493e9),p(0xc,_0x3b2db3),p(0xd,_0x187eb8(tt))],Rt);var Or=Object[_0x23cbae(0xe2)],Dr=Object[_0x23cbae(0x36a)],wr=(_0x4105d5,_0x521fa2,_0x215ffe,_0x4c56c9)=>{const _0x2bc275=_0x23cbae;for(var _0x586dc3=_0x4c56c9>0x1?void 0x0:_0x4c56c9?Dr(_0x521fa2,_0x215ffe):_0x521fa2,_0xc9003f=_0x4105d5[_0x2bc275(0xed)]-0x1,_0xabfc0c;_0xc9003f>=0x0;_0xc9003f--)(_0xabfc0c=_0x4105d5[_0xc9003f])&&(_0x586dc3=(_0x4c56c9?_0xabfc0c(_0x521fa2,_0x215ffe,_0x586dc3):_0xabfc0c(_0x586dc3))||_0x586dc3);return _0x4c56c9&&_0x586dc3&&Or(_0x521fa2,_0x215ffe,_0x586dc3),_0x586dc3;},_t=(_0xb3699b,_0x1ac08f)=>(_0x88c3f9,_0xce38c3)=>_0x1ac08f(_0x88c3f9,_0xce38c3,_0xb3699b);let Le=class extends _0x3a262a{constructor(_0x59c4bb,_0x476683,_0x26f1a8){const _0x2054ee=_0x23cbae;super(),l(this,'_entities',new Map()),l(this,_0x2054ee(0x40f),new _0x4061c1()),(this[_0x2054ee(0x171)]=_0x59c4bb,this[_0x2054ee(0x43e)]=_0x476683,this[_0x2054ee(0x2ce)]=_0x26f1a8,this[_0x2054ee(0x383)]());}['dispose'](){const _0x242d5c=_0x23cbae;super['dispose'](),this[_0x242d5c(0x229)]['forEach'](_0x3842e0=>_0x3842e0['dispose']()),this[_0x242d5c(0x229)][_0x242d5c(0x263)]();}['getCollabEntity'](_0x1d6795){const _0x49784f=_0x23cbae;var _0x2676ba;return(_0x2676ba=this[_0x49784f(0x229)][_0x49784f(0x3fd)](_0x1d6795))!=null?_0x2676ba:null;}[_0x23cbae(0x13b)](_0x2a3abf){const _0x5d74a5=_0x23cbae,_0x15ac0f=this[_0x5d74a5(0x39d)](_0x2a3abf);return _0x15ac0f?_0x4a5add(_0x15ac0f):this[_0x5d74a5(0x40f)]['pipe'](_0x4eb371(_0x39324a=>_0x39324a[_0x5d74a5(0x1a5)]===_0x2a3abf));}['_init'](){const _0x169701=_0x23cbae;this[_0x169701(0x2ce)][_0x169701(0x1a1)](_0x2eb231['UNIVER_SHEET'])[_0x169701(0x18c)](_0x5b993c(this['dispose$']),_0x3f8011(0x10))['subscribe'](async _0x4f2999=>{const _0x3988e3=_0x169701,_0x2b6196=_0x4f2999[_0x3988e3(0x183)](),_0x4fcfb7=await this[_0x3988e3(0x14b)](_0x2b6196,k[_0x3988e3(0x34d)]);this['_entities'][_0x3988e3(0x111)](_0x2b6196,_0x4fcfb7);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2eb231[_0x169701(0x12f)])[_0x169701(0x18c)](_0x5b993c(this[_0x169701(0x16f)]),_0x3f8011(0x10))[_0x169701(0x18c)](_0x4eb371(_0x1ad883=>!_0x1ad883['getUnitId']()[_0x169701(0x36c)]('__')))['subscribe'](async _0x3eb02f=>{const _0x17dc4a=_0x169701,_0x3a144f=_0x3eb02f['getUnitId'](),_0x6e0d1d=await this[_0x17dc4a(0x14b)](_0x3a144f,k['UNIVER_DOC']);this[_0x17dc4a(0x229)]['set'](_0x3a144f,_0x6e0d1d);}),_0x395f71(this[_0x169701(0x2ce)]['getTypeOfUnitDisposed$'](_0x2eb231[_0x169701(0x34d)]),this[_0x169701(0x2ce)][_0x169701(0x3fe)](_0x2eb231['UNIVER_DOC']))[_0x169701(0x18c)](_0x5b993c(this[_0x169701(0x16f)]))['subscribe'](_0xf0575a=>{const _0x510c4b=_0x169701,_0x47970d=_0xf0575a['getUnitId'](),_0x1e3f3a=this['_entities'][_0x510c4b(0x3fd)](_0x47970d);_0x1e3f3a&&(_0x1e3f3a[_0x510c4b(0x35a)](),this[_0x510c4b(0x229)]['delete'](_0x47970d));});}async[_0x23cbae(0x14b)](_0x323584,_0x58dc0a){const _0x5eec04=_0x23cbae,_0x32ba5e=await this[_0x5eec04(0x43e)][_0x5eec04(0x236)](_0x323584),_0x1fcba8=this[_0x5eec04(0x171)]['createInstance'](this['_getCtorByUniverType'](_0x58dc0a),_0x323584,_0x58dc0a,_0x32ba5e);return await _0x1fcba8['init'](),this[_0x5eec04(0x40f)][_0x5eec04(0x131)](_0x1fcba8),_0x1fcba8;}[_0x23cbae(0x421)](_0x296006){const _0x42cded=_0x23cbae;switch(_0x296006){case k[_0x42cded(0x12f)]:return Tt;case k[_0x42cded(0x34d)]:return Rt;default:throw new Error(_0x42cded(0x377)+_0x296006);}}};Le=wr([_t(0x0,_0x57082d(_0x5aca14)),_t(0x1,_0x57082d(he)),_t(0x2,_0xf0f4c1)],Le);const fs=[_0x23cbae(0x43b),_0x23cbae(0x321),'verdancy600','red300',_0x23cbae(0x359),'gold400'];class Gt extends _0xbfc176{constructor(){const _0x16a72b=_0x23cbae;super(...arguments),l(this,_0x16a72b(0x168),new Map()),l(this,_0x16a72b(0x209),0x0);}[_0x23cbae(0x3c3)](_0x13c90d){const _0x3ae7a2=_0x23cbae;if(this[_0x3ae7a2(0x168)][_0x3ae7a2(0x15b)](_0x13c90d))return this[_0x3ae7a2(0x168)][_0x3ae7a2(0x3fd)](_0x13c90d);const _0x974e32=fs[this[_0x3ae7a2(0x209)]];return this[_0x3ae7a2(0x209)]=(this[_0x3ae7a2(0x209)]+0x1)%fs['length'],this[_0x3ae7a2(0x168)][_0x3ae7a2(0x111)](_0x13c90d,_0x974e32),_0x974e32;}}var Pr=Object[_0x23cbae(0xe2)],yr=Object[_0x23cbae(0x36a)],Ur=(_0x3b6bf9,_0x187914,_0x154edf,_0xc2fc65)=>{const _0x41fec0=_0x23cbae;for(var _0x314ed7=_0xc2fc65>0x1?void 0x0:_0xc2fc65?yr(_0x187914,_0x154edf):_0x187914,_0xa40450=_0x3b6bf9[_0x41fec0(0xed)]-0x1,_0x57ade5;_0xa40450>=0x0;_0xa40450--)(_0x57ade5=_0x3b6bf9[_0xa40450])&&(_0x314ed7=(_0xc2fc65?_0x57ade5(_0x187914,_0x154edf,_0x314ed7):_0x57ade5(_0x314ed7))||_0x314ed7);return _0xc2fc65&&_0x314ed7&&Pr(_0x187914,_0x154edf,_0x314ed7),_0x314ed7;},ie=(_0x557c07,_0xa96fc1)=>(_0x2dc0c7,_0x2d4d9e)=>_0xa96fc1(_0x2dc0c7,_0x2d4d9e,_0x557c07);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x3a262a{constructor(_0x5b4c91,_0x3f0c90,_0x2b59b2,_0x390848,_0x296585,_0x2a3ca4,_0x4490a1,_0xd094c2,_0x5ea8be){const _0x3ba4ff=_0x23cbae;super(),l(this,_0x3ba4ff(0x133),!0x1),l(this,_0x3ba4ff(0x383),!0x1),l(this,'_cursorInfo$',new _0x169308(new Map())),l(this,'cursorInfo$',this[_0x3ba4ff(0x336)][_0x3ba4ff(0x341)]()),l(this,'_roomMembers$',new _0x169308([])),l(this,_0x3ba4ff(0x19b),this[_0x3ba4ff(0x2f7)]['pipe'](_0x43ba67(Nr))),l(this,_0x3ba4ff(0x344),_0x23acc5(_0x39a641=>{const _0x86a43e=_0x3ba4ff,_0x5746b9={'eventID':_0x44cf74[_0x86a43e(0x1d4)],'data':{'unitID':this['unitID'],'memberID':this[_0x86a43e(0x14a)][_0x86a43e(0x375)](),'selection':Vs(_0x39a641)}};this[_0x86a43e(0x14a)][_0x86a43e(0x113)](_0x5746b9,this['unitID']);},Mr)),(this[_0x3ba4ff(0x1a5)]=_0x5b4c91,this[_0x3ba4ff(0x14a)]=_0x3f0c90,this[_0x3ba4ff(0x171)]=_0x2b59b2,this[_0x3ba4ff(0x2ed)]=_0x390848,this['_memberService']=_0x296585,this['_syncEditingCollabCursorService']=_0x2a3ca4,this[_0x3ba4ff(0x2f5)]=_0x4490a1,this[_0x3ba4ff(0x2ce)]=_0xd094c2,this[_0x3ba4ff(0x393)]=_0x5ea8be);}get[_0x23cbae(0x40e)](){const _0x5b6c9b=_0x23cbae;return this[_0x5b6c9b(0x336)]['getValue']();}get['roomMembers'](){const _0x864f84=_0x23cbae;return this[_0x864f84(0x2f7)]['getValue']();}[_0x23cbae(0x35a)](){const _0x1d9df0=_0x23cbae;super[_0x1d9df0(0x35a)](),this[_0x1d9df0(0x336)]['next'](new Map()),this[_0x1d9df0(0x336)][_0x1d9df0(0x173)](),this[_0x1d9df0(0x2f7)][_0x1d9df0(0x131)]([]),this[_0x1d9df0(0x2f7)][_0x1d9df0(0x173)]();}[_0x23cbae(0x410)](){const _0x2eaa67=_0x23cbae;this[_0x2eaa67(0x383)]||(this[_0x2eaa67(0x383)]=!0x0,this[_0x2eaa67(0x14a)][_0x2eaa67(0x18f)][_0x2eaa67(0x18c)](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x529b17=>{const _0x5d0a9e=_0x2eaa67;_0x529b17===Y['ONLINE']?this[_0x5d0a9e(0x26a)]():this[_0x5d0a9e(0xfc)]();}),this[_0x2eaa67(0x14a)]['event$']['pipe'](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x21cbca=>{const _0x5ea803=_0x2eaa67,_0x349f1b=_0x21cbca['eventID'];_0x349f1b===_0x44cf74['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x21cbca),_0x349f1b===_0x44cf74[_0x5ea803(0x25a)]&&this[_0x5ea803(0x380)](_0x21cbca);}),this['disposeWithMe'](this[_0x2eaa67(0x393)]['onCommandExecuted'](_0x33200b=>{const _0x3ff980=_0x2eaa67,_0x5e14a0=_0x33200b[_0x3ff980(0x1e4)];_0x5e14a0!=null&&this['_online']&&_0x33200b['id']===_0x212257['id']&&_0x5e14a0[_0x3ff980(0x37e)]===this[_0x3ff980(0x1a5)]&&_0x5e14a0[_0x3ff980(0x23a)]===!0x1&&this[_0x3ff980(0x344)](_0x5e14a0['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x2eaa67(0x18c)](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x113841=>{const _0x192b12=_0x2eaa67;if((_0x113841==null?void 0x0:_0x113841[_0x192b12(0x1a5)])!==this[_0x192b12(0x1a5)])return;const _0xc01546={'eventID':_0x44cf74[_0x192b12(0x1d4)],'data':_0x113841};this[_0x192b12(0x1c2)](_0xc01546);}),this[_0x2eaa67(0x165)](this[_0x2eaa67(0x393)][_0x2eaa67(0x428)](_0x3758cc=>{const _0x575b59=_0x2eaa67;if(_0x3758cc['params']==null)return;const _0x21b0d6=_0x3758cc['params'];if(_0x3758cc['id']!==_0x520c9a['id']||_0x21b0d6[_0x575b59(0x37e)]!==this[_0x575b59(0x1a5)])return;const _0x1065ed={'id':_0x575b59(0x200),'params':_0x21b0d6},_0x30fa2c=this[_0x575b59(0x40e)];for(const [_0xa6da94,_0x27cc06]of _0x30fa2c){const _0x2e58ab={'id':_0x575b59(0x200),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x27cc06[_0x575b59(0x29b)]}},_0x2544f4=this[_0x575b59(0x2f5)][_0x575b59(0x2bf)](_0x1065ed,_0x2e58ab,!0x1);if(_0x426132(_0x2544f4))throw _0x2544f4['error'];_0x30fa2c[_0x575b59(0x111)](_0xa6da94,{..._0x27cc06,'ranges':_0x2544f4[_0x575b59(0x1b0)]['params']['textRanges']});}queueMicrotask(()=>{const _0x5268ea=_0x575b59;this['_cursorInfo$'][_0x5268ea(0x131)](_0x30fa2c);});})));}[_0x23cbae(0x1c2)](_0x5be245){const _0x391ee2=_0x23cbae;var _0x30dcab,_0x498bfe;const {memberID:_0x3c1cd4,selection:_0x1c9034}=_0x5be245[_0x391ee2(0x32d)],_0x3f922b=mr(_0x1c9034),_0x3aa6b0=(_0x498bfe=(_0x30dcab=this[_0x391ee2(0x2f4)][_0x391ee2(0x3a0)](this[_0x391ee2(0x1a5)],_0x3c1cd4))==null?void 0x0:_0x30dcab['name'])!=null?_0x498bfe:'Unknown\x20user',_0xa10f20={'color':this[_0x391ee2(0x2ed)][_0x391ee2(0x3c3)](_0x3c1cd4),'name':_0x3aa6b0,'ranges':_0x3f922b},_0x5ca0f9=this['cursorInfo'];_0x5ca0f9[_0x391ee2(0x111)](_0x3c1cd4,_0xa10f20),this[_0x391ee2(0x336)]['next'](_0x5ca0f9);}[_0x23cbae(0x380)](_0x5c1169){const _0x39e1b7=_0x23cbae,{memberID:_0x5b535c}=_0x5c1169['data'],_0x598fc4=this[_0x39e1b7(0x40e)];_0x598fc4[_0x39e1b7(0x1a8)](_0x5b535c),this[_0x39e1b7(0x336)]['next'](_0x598fc4);}[_0x23cbae(0x26a)](){const _0x1502b2=_0x23cbae;var _0x402cd8;if(this[_0x1502b2(0x133)]=!0x0,((_0x402cd8=this['_univerInstanceService'][_0x1502b2(0x419)]())==null?void 0x0:_0x402cd8[_0x1502b2(0x183)]())!==this[_0x1502b2(0x1a5)])return;const _0x53bf1d=this['_injector'][_0x1502b2(0x3fd)](_0x5502c3)[_0x1502b2(0x338)]();Array[_0x1502b2(0x218)](_0x53bf1d)&&_0x53bf1d[_0x1502b2(0xed)]>0x0&&this[_0x1502b2(0x344)](_0x53bf1d);}[_0x23cbae(0xfc)](){const _0x20b29f=_0x23cbae;this[_0x20b29f(0x133)]=!0x1;}};Ot=Ur([ie(0x2,_0x57082d(_0x5aca14)),ie(0x3,_0x57082d(Gt)),ie(0x4,_0x57082d(ce)),ie(0x5,_0x57082d(Ft)),ie(0x6,_0x3ce5fa),ie(0x7,_0xf0f4c1),ie(0x8,_0x2c218a)],Ot);var Ar=Object[_0x23cbae(0xe2)],Lr=Object[_0x23cbae(0x36a)],$r=(_0x203e74,_0x580aa0,_0x462c1b,_0x2c3ed3)=>{const _0x7c9bf=_0x23cbae;for(var _0x5a39f3=_0x2c3ed3>0x1?void 0x0:_0x2c3ed3?Lr(_0x580aa0,_0x462c1b):_0x580aa0,_0x1024e2=_0x203e74[_0x7c9bf(0xed)]-0x1,_0x1bb13d;_0x1024e2>=0x0;_0x1024e2--)(_0x1bb13d=_0x203e74[_0x1024e2])&&(_0x5a39f3=(_0x2c3ed3?_0x1bb13d(_0x580aa0,_0x462c1b,_0x5a39f3):_0x1bb13d(_0x5a39f3))||_0x5a39f3);return _0x2c3ed3&&_0x5a39f3&&Ar(_0x580aa0,_0x462c1b,_0x5a39f3),_0x5a39f3;},me=(_0xe324c1,_0x5be39e)=>(_0x27faed,_0x54613e)=>_0x5be39e(_0x27faed,_0x54613e,_0xe324c1);const jr=0x12c,xr=0x64,Hr=()=>{let _0x507002=[],_0x8ba849=!0x1;return _0xfc2f66=>{const _0x813be4=_0x3f49;_0x507002[_0x813be4(0x12e)](_0xfc2f66),_0x8ba849||(_0x8ba849=!0x0,setTimeout(()=>{const _0x512bc9=_0x813be4;_0x507002[_0x512bc9(0x273)](_0x442e4a=>_0x442e4a()),_0x507002=[],_0x8ba849=!0x1;}));};};let Dt=class extends _0x3a262a{constructor(_0x1a3656,_0x1d7ce8,_0x1dec7d,_0x7db7b2,_0xa0f987,_0x1cd372,_0x595cfd,_0x1130a2){const _0x1a0d44=_0x23cbae;super(),l(this,_0x1a0d44(0x133),!0x1),l(this,_0x1a0d44(0x383),!0x1),l(this,_0x1a0d44(0x336),new _0x169308(new Map())),l(this,_0x1a0d44(0x14d),this[_0x1a0d44(0x336)][_0x1a0d44(0x341)]()),l(this,'_roomMembers$',new _0x169308([])),l(this,_0x1a0d44(0x19b),this[_0x1a0d44(0x2f7)]['pipe'](_0x43ba67(jr))),l(this,'_updateLocalCursor',_0x23acc5((_0x4386e2,_0x20d45e)=>{const _0x72fc6b=_0x1a0d44,_0x24729f={'eventID':_0x44cf74[_0x72fc6b(0x1d4)],'data':{'unitID':this['unitID'],'memberID':this[_0x72fc6b(0x14a)][_0x72fc6b(0x375)](),'selection':_0x10f780(_0x4386e2,_0x20d45e[_0x72fc6b(0xf4)])}};this[_0x72fc6b(0x14a)][_0x72fc6b(0x113)](_0x24729f,this[_0x72fc6b(0x1a5)]);},xr)),(this['unitID']=_0x1a3656,this[_0x1a0d44(0x14a)]=_0x1d7ce8,this[_0x1a0d44(0x171)]=_0x1dec7d,this['_colorAssignService']=_0x7db7b2,this[_0x1a0d44(0x2f4)]=_0xa0f987,this['_univerInstanceService']=_0x1cd372,this[_0x1a0d44(0x393)]=_0x595cfd,this['_refRangeService']=_0x1130a2);}get['cursorInfo'](){const _0x144e82=_0x23cbae;return this[_0x144e82(0x336)]['getValue']();}get[_0x23cbae(0x31b)](){const _0x27708e=_0x23cbae;return this['_roomMembers$'][_0x27708e(0x1d9)]();}['dispose'](){const _0x439796=_0x23cbae;super['dispose'](),this[_0x439796(0x336)][_0x439796(0x131)](new Map()),this[_0x439796(0x336)][_0x439796(0x173)](),this['_roomMembers$'][_0x439796(0x131)]([]),this[_0x439796(0x2f7)][_0x439796(0x173)]();}['init'](){const _0x40565f=_0x23cbae;this[_0x40565f(0x383)]||(this[_0x40565f(0x383)]=!0x0,this['_session']['sessionStatus$'][_0x40565f(0x18c)](_0x5b993c(this['dispose$']))[_0x40565f(0x334)](_0x24876d=>{const _0x26298e=_0x40565f;_0x24876d===Y[_0x26298e(0x12d)]?this[_0x26298e(0x26a)]():this[_0x26298e(0xfc)]();}),this[_0x40565f(0x14a)][_0x40565f(0x29c)][_0x40565f(0x18c)](_0x5b993c(this['dispose$']))[_0x40565f(0x334)](_0x842170=>{const _0x56de6b=_0x40565f,_0x54726b=_0x842170[_0x56de6b(0x3f0)];_0x54726b===_0x44cf74['UPDATE_CURSOR']&&this[_0x56de6b(0x1c2)](_0x842170),_0x54726b===_0x44cf74[_0x56de6b(0x25a)]&&this[_0x56de6b(0x380)](_0x842170);}),this['_onRefRangeChange'](),this[_0x40565f(0x165)](this[_0x40565f(0x393)]['onCommandExecuted'](_0x3492b1=>{const _0x78e2db=_0x40565f;if(this[_0x78e2db(0x133)]&&_0x3492b1['id']===_0x58be78['id']&&_0x3492b1[_0x78e2db(0x1e4)][_0x78e2db(0x37e)]===this[_0x78e2db(0x1a5)]){const _0x4887df=_0x3492b1[_0x78e2db(0x1e4)];this[_0x78e2db(0x344)](_0x4887df[_0x78e2db(0x1ee)],_0x4887df[_0x78e2db(0x376)][0x0]);}})));}[_0x23cbae(0x1c2)](_0x5d08b4){const _0x54fa70=_0x23cbae;var _0x118398,_0x4301e3;const {memberID:_0x2336d1,selection:_0x358cce}=_0x5d08b4[_0x54fa70(0x32d)],{sheetName:_0x1f8889,range:_0xfc0943}=_0x177623(_0x358cce),_0x48cabb={'name':(_0x4301e3=(_0x118398=this[_0x54fa70(0x2f4)][_0x54fa70(0x3a0)](this[_0x54fa70(0x1a5)],_0x2336d1))==null?void 0x0:_0x118398[_0x54fa70(0x1a2)])!=null?_0x4301e3:_0x54fa70(0x3a7),'range':this[_0x54fa70(0x193)](_0x1f8889,_0xfc0943),'sheetID':_0x1f8889,'color':this[_0x54fa70(0x2ed)]['assignAColorForMemberID'](_0x2336d1),'selection':_0x358cce},_0x57e3fe=this[_0x54fa70(0x40e)];_0x57e3fe[_0x54fa70(0x111)](_0x2336d1,_0x48cabb),this[_0x54fa70(0x336)][_0x54fa70(0x131)](_0x57e3fe);}[_0x23cbae(0x380)](_0x7b9cc2){const _0x45ea1b=_0x23cbae,{memberID:_0x129708}=_0x7b9cc2[_0x45ea1b(0x32d)],_0x2804d9=this[_0x45ea1b(0x40e)];_0x2804d9[_0x45ea1b(0x1a8)](_0x129708),this[_0x45ea1b(0x336)]['next'](_0x2804d9);}['_getMergeRange'](_0x329fd4,_0x55e582){const _0xd7a9e=_0x23cbae;var _0x1de054,_0x2ffff1;const _0x322ae2=(_0x2ffff1=(_0x1de054=this[_0xd7a9e(0x2ce)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x1de054[_0xd7a9e(0x163)](_0x329fd4))==null?void 0x0:_0x2ffff1[_0xd7a9e(0x1f7)]();return(_0x322ae2==null?void 0x0:_0x322ae2[_0xd7a9e(0x265)](_0x2eb159=>_0x26d787[_0xd7a9e(0x356)](_0x2eb159,_0x55e582)))||_0x55e582;}[_0x23cbae(0x41b)](){const _0x477f0a=_0x23cbae,_0x500249=new _0x1e2532(),_0x567c6b=Hr(),_0x53fb71=()=>{_0x500249['dispose']();const _0x51df2f=(_0x3260f3,_0x50baee,_0xa02ace,_0x54dc18)=>{const _0x32422e=_0x3f49;let _0xef1826=[];switch(_0x3260f3['id']){case _0x100ffd[_0x32422e(0x401)]:{_0xef1826=_0x37de89(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x157)]:{_0xef1826=_0xce5f80(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x13c)]:{_0xef1826=_0x525801(_0x3260f3,_0x54dc18);break;}case _0x100ffd['InsertRangeMoveDownCommandId']:{_0xef1826=_0x378def(_0x3260f3,_0x54dc18);break;}case _0x100ffd['InsertRangeMoveRightCommandId']:{_0xef1826=_0x197b21(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x44a)]:{_0xef1826=_0x24f654(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x274)]:{_0xef1826=_0x4574e3(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x3db)]:{_0xef1826=_0x33a15e(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x231)]:{_0xef1826=_0x575e9e(_0x3260f3,_0x54dc18);break;}}const _0x510a88=_0x368451(_0xef1826,_0x54dc18),_0x290b71=this[_0x32422e(0x40e)]['get'](_0x50baee);if(_0x290b71&&_0x510a88){const _0x1b384e={..._0x290b71,'range':_0x510a88};this['cursorInfo'][_0x32422e(0x111)](_0x50baee,_0x1b384e),_0x567c6b(()=>{const _0x2400ec=_0x32422e,_0x1d2fbb=this[_0x2400ec(0x201)]['registerRefRange'](_0x510a88,_0x24b7ea=>(_0x1d2fbb[_0x2400ec(0x35a)](),_0x51df2f(_0x24b7ea,_0x50baee,_0xa02ace,_0x510a88)));_0x500249[_0x2400ec(0x302)](_0x1d2fbb);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x19d641,_0x23807d)=>{const _0x2110b7=_0x3f49,{range:_0x222637,sheetID:_0x4c1f5b}=_0x19d641,_0x292738=this[_0x2110b7(0x201)]['registerRefRange'](_0x222637,_0x2ecfbb=>(_0x292738['dispose'](),_0x51df2f(_0x2ecfbb,_0x23807d,_0x4c1f5b,_0x222637)));_0x500249[_0x2110b7(0x302)](_0x292738);});};this[_0x477f0a(0x165)](_0xad1b53(this[_0x477f0a(0x336)][_0x477f0a(0x334)](()=>{_0x53fb71();})));}[_0x23cbae(0x26a)](){const _0x35408a=_0x23cbae;var _0x4f5b42,_0x2936b;if(this[_0x35408a(0x133)]=!0x0,((_0x4f5b42=this[_0x35408a(0x2ce)][_0x35408a(0x419)]())==null?void 0x0:_0x4f5b42[_0x35408a(0x183)]())!==this[_0x35408a(0x1a5)])return;const _0x258ea4=(_0x2936b=this[_0x35408a(0x171)][_0x35408a(0x3fd)](_0x34b058)[_0x35408a(0x385)]())==null?void 0x0:_0x2936b[0x0],_0xec96c2=this[_0x35408a(0x2ce)][_0x35408a(0x10f)](_0x2eb231[_0x35408a(0x34d)])[_0x35408a(0x3f1)]();_0x258ea4&&_0xec96c2&&this['_updateLocalCursor'](_0xec96c2[_0x35408a(0x1ff)](),_0x258ea4);}['_toggleOffline'](){const _0x2ee6b1=_0x23cbae;this[_0x2ee6b1(0x133)]=!0x1;}};Dt=$r([me(0x2,_0x57082d(_0x5aca14)),me(0x3,_0x57082d(Gt)),me(0x4,_0x57082d(ce)),me(0x5,_0xf0f4c1),me(0x6,_0x2c218a),me(0x7,_0x57082d(_0x178c8d))],Dt);var kr=Object['defineProperty'],Br=Object[_0x23cbae(0x36a)],Vr=(_0xc8fbed,_0x53c3f6,_0x36889f,_0x49de14)=>{const _0x586c77=_0x23cbae;for(var _0x55dd70=_0x49de14>0x1?void 0x0:_0x49de14?Br(_0x53c3f6,_0x36889f):_0x53c3f6,_0x5f20b6=_0xc8fbed[_0x586c77(0xed)]-0x1,_0x484d66;_0x5f20b6>=0x0;_0x5f20b6--)(_0x484d66=_0xc8fbed[_0x5f20b6])&&(_0x55dd70=(_0x49de14?_0x484d66(_0x53c3f6,_0x36889f,_0x55dd70):_0x484d66(_0x55dd70))||_0x55dd70);return _0x49de14&&_0x55dd70&&kr(_0x53c3f6,_0x36889f,_0x55dd70),_0x55dd70;},ut=(_0x59696c,_0x43d40b)=>(_0x5c496e,_0x24444d)=>_0x43d40b(_0x5c496e,_0x24444d,_0x59696c);let ve=class extends _0x3a262a{constructor(_0x11088d,_0x56919d,_0x428332){const _0x16ba9a=_0x23cbae;super(),l(this,_0x16ba9a(0x229),new Map()),l(this,_0x16ba9a(0x40f),new _0x4061c1()),(this[_0x16ba9a(0x2ce)]=_0x11088d,this[_0x16ba9a(0x171)]=_0x56919d,this[_0x16ba9a(0x43e)]=_0x428332,this[_0x16ba9a(0x383)]());}[_0x23cbae(0x35a)](){const _0x543b3b=_0x23cbae;super[_0x543b3b(0x35a)](),this[_0x543b3b(0x40f)][_0x543b3b(0x173)](),this[_0x543b3b(0x229)]['forEach'](_0x4b46ac=>_0x4b46ac[_0x543b3b(0x35a)]());}['getCollabCursors$'](_0x24bb78){const _0x2755ea=_0x23cbae;return this[_0x2755ea(0x229)]['has'](_0x24bb78)?this[_0x2755ea(0x229)][_0x2755ea(0x3fd)](_0x24bb78)[_0x2755ea(0x14d)]:this[_0x2755ea(0x40f)]['pipe'](_0x2258ad(_0x54d006=>_0x54d006[_0x2755ea(0x1a5)]===_0x24bb78),_0x338777(_0x51cd3b=>_0x51cd3b['cursorInfo$']));}['_init'](){const _0x387c70=_0x23cbae;this[_0x387c70(0x2ce)][_0x387c70(0x1a1)](_0x2eb231['UNIVER_SHEET'])[_0x387c70(0x18c)](_0x5b993c(this[_0x387c70(0x16f)]))[_0x387c70(0x334)](async _0x2f21b4=>{const _0x16b4cb=_0x387c70,_0x955a6d=_0x2f21b4['getUnitId'](),_0x466db4=await this['_startSheetCollabCursor'](_0x955a6d);this[_0x16b4cb(0x40f)][_0x16b4cb(0x131)](_0x466db4),this[_0x16b4cb(0x229)][_0x16b4cb(0x111)](_0x955a6d,_0x466db4);}),this['_univerInstanceService'][_0x387c70(0x1a1)](_0x2eb231['UNIVER_DOC'])['pipe'](_0x5b993c(this['dispose$']))[_0x387c70(0x18c)](_0x2258ad(_0x167a12=>!_0x167a12[_0x387c70(0x183)]()[_0x387c70(0x36c)]('__')))[_0x387c70(0x334)](async _0x43f7e7=>{const _0x5db6ec=_0x387c70,_0x4b742a=_0x43f7e7[_0x5db6ec(0x183)](),_0x588723=await this['_startDocCollabCursor'](_0x4b742a);this[_0x5db6ec(0x40f)]['next'](_0x588723),this[_0x5db6ec(0x229)][_0x5db6ec(0x111)](_0x4b742a,_0x588723);}),_0x395f71(this[_0x387c70(0x2ce)]['getTypeOfUnitDisposed$'](_0x2eb231[_0x387c70(0x12f)]),this[_0x387c70(0x2ce)][_0x387c70(0x3fe)](_0x2eb231[_0x387c70(0x34d)]))[_0x387c70(0x18c)](_0x5b993c(this['dispose$']))['subscribe'](_0x545639=>{const _0x9e2b88=_0x387c70,_0x22db3b=_0x545639[_0x9e2b88(0x183)](),_0x10b94d=this[_0x9e2b88(0x229)][_0x9e2b88(0x3fd)](_0x22db3b);_0x10b94d&&(_0x10b94d['dispose'](),this[_0x9e2b88(0x229)][_0x9e2b88(0x1a8)](_0x22db3b));});}async[_0x23cbae(0x262)](_0x5af7a7){const _0x4c4015=_0x23cbae,_0x498f0b=await this[_0x4c4015(0x43e)][_0x4c4015(0x236)](_0x5af7a7),_0x2aff1c=this[_0x4c4015(0x171)]['createInstance'](Dt,_0x5af7a7,_0x498f0b);return _0x2aff1c[_0x4c4015(0x410)](),_0x2aff1c;}async['_startDocCollabCursor'](_0x3cec3e){const _0x5e4bec=_0x23cbae,_0x83111=await this[_0x5e4bec(0x43e)][_0x5e4bec(0x236)](_0x3cec3e),_0xd633f2=this[_0x5e4bec(0x171)][_0x5e4bec(0x351)](Ot,_0x3cec3e,_0x83111);return _0xd633f2['init'](),_0xd633f2;}};ve=Vr([ut(0x0,_0xf0f4c1),ut(0x1,_0x57082d(_0x5aca14)),ut(0x2,_0x57082d(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x44c33f,_0x2f42c3){const _0x549e9c=_0x23cbae;let {radius:_0x2bb04a,width:_0x58d821,height:_0x2f237c}=_0x2f42c3;_0x2bb04a=_0x2bb04a!=null?_0x2bb04a:0x0,_0x58d821=_0x58d821!=null?_0x58d821:0x1e,_0x2f237c=_0x2f237c!=null?_0x2f237c:0x1e;let _0x360d5e=0x0,_0x5de87d=0x0,_0x3009e4=0x0;_0x360d5e=_0x5de87d=_0x3009e4=Math[_0x549e9c(0x3e3)](_0x2bb04a,_0x58d821/0x2,_0x2f237c/0x2),_0x44c33f[_0x549e9c(0x252)](),_0x44c33f['moveTo'](_0x360d5e,0x0),_0x44c33f[_0x549e9c(0x306)](_0x58d821-_0x5de87d,0x0),_0x44c33f[_0x549e9c(0x2bd)](_0x58d821-_0x5de87d,_0x5de87d,_0x5de87d,Math['PI']*0x3/0x2,0x0,!0x1),_0x44c33f[_0x549e9c(0x306)](_0x58d821,_0x2f237c-_0x3009e4),_0x44c33f['arc'](_0x58d821-_0x3009e4,_0x2f237c-_0x3009e4,_0x3009e4,0x0,Math['PI']/0x2,!0x1),_0x44c33f['lineTo'](0x0,_0x2f237c),_0x44c33f['lineTo'](0x0,_0x360d5e),_0x44c33f['arc'](_0x360d5e,_0x360d5e,_0x360d5e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x44c33f[_0x549e9c(0xe7)](),_0x2f42c3['fill']&&(_0x44c33f[_0x549e9c(0x1dd)](),_0x44c33f[_0x549e9c(0x32b)]=_0x2f42c3[_0x549e9c(0x230)],_0x2f42c3[_0x549e9c(0x349)]===_0x549e9c(0x2ea)?_0x44c33f[_0x549e9c(0x230)](_0x549e9c(0x2ea)):_0x44c33f[_0x549e9c(0x230)](),_0x44c33f[_0x549e9c(0x222)]());}class st extends _0xb8fdb8{constructor(_0x5a3c09,_0x2025e6){const _0x5c9c28=_0x23cbae;super(_0x5a3c09,_0x2025e6),l(this,'color'),l(this,_0x5c9c28(0x2af)),(this[_0x5c9c28(0x3be)]=_0x2025e6==null?void 0x0:_0x2025e6[_0x5c9c28(0x3be)],this['text']=_0x2025e6==null?void 0x0:_0x2025e6[_0x5c9c28(0x2af)]);}static[_0x23cbae(0x3ac)](_0x5a31b8,_0x6e39a8){const _0x276581=_0x23cbae,{text:_0xfec1c1,color:_0x5eaa77}=_0x6e39a8;_0x5a31b8[_0x276581(0x1dd)](),_0x5a31b8[_0x276581(0x2ca)]=_0x276581(0xe5);const _0x4a53f1=_0x5a31b8[_0x276581(0x36e)](_0xfec1c1)[_0x276581(0x1da)],_0xd98f4c=Math[_0x276581(0x3e3)](_0x4a53f1+0x2*dt,ms);Wr(_0x5a31b8,{'height':$e,'radius':0x4,'width':_0xd98f4c,'fill':_0x5eaa77,'evented':!0x1}),_0x5a31b8[_0x276581(0x32b)]=_0x276581(0x34b);const _0x49c5de=dt,_0x1d4270=$e-Fr,_0x16a487=ms-0x2*dt;if(_0x4a53f1>_0x16a487){let _0x5c244e='',_0x2753d9=0x0;for(const _0x259c16 of _0xfec1c1){const _0x595af7=_0x5a31b8['measureText'](_0x259c16)['width'];if(_0x2753d9+_0x595af7<=_0x16a487-_0x5a31b8[_0x276581(0x36e)](_0x276581(0x289))[_0x276581(0x1da)])_0x5c244e+=_0x259c16,_0x2753d9+=_0x595af7;else{_0x5c244e+=_0x276581(0x289);break;}}_0x5a31b8['fillText'](_0x5c244e,_0x49c5de,_0x1d4270);}else _0x5a31b8['fillText'](_0xfec1c1,_0x49c5de,_0x1d4270);_0x5a31b8[_0x276581(0x222)]();}['_draw'](_0x501fde){const _0x1ddb9c=_0x23cbae;st[_0x1ddb9c(0x3ac)](_0x501fde,this);}}const ft=_0x23cbae(0x174),Gr=_0x23cbae(0x1e3),Yr=_0x23cbae(0x101),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x1fd897,_0x2e83e5,_0x449103,_0x16f554){const _0x5864d0=_0x23cbae;l(this,_0x5864d0(0xdc),[]),l(this,_0x5864d0(0x11e),null),l(this,_0x5864d0(0x142),null),l(this,_0x5864d0(0x195),null),l(this,_0x5864d0(0x44f),null),l(this,_0x5864d0(0x398),null),(this[_0x5864d0(0x140)]=_0x1fd897,this[_0x5864d0(0x1f1)]=_0x2e83e5,this[_0x5864d0(0x3dc)]=_0x449103,this['_document']=_0x16f554,this[_0x5864d0(0x440)]());}set['_hover'](_0x1c1c95){const _0x46fbee=_0x23cbae;_0x1c1c95?(this[_0x46fbee(0x195)]&&this[_0x46fbee(0x195)][_0x46fbee(0xf6)](),this['_textBubble']&&this['_textBubble'][_0x46fbee(0x2bb)]()):(this[_0x46fbee(0x195)]&&this[_0x46fbee(0x195)][_0x46fbee(0x2bb)](),this['_textBubble']&&this[_0x46fbee(0x142)][_0x46fbee(0xf6)]());}['dispose'](){const _0x6012a3=_0x23cbae;for(const _0x1ce13b of this['_shapes'])_0x1ce13b[_0x6012a3(0x35a)]();this[_0x6012a3(0x142)]&&this['_textBubble']['dispose'](),this[_0x6012a3(0x195)]&&this[_0x6012a3(0x195)][_0x6012a3(0x35a)](),this[_0x6012a3(0x11e)]&&this[_0x6012a3(0x11e)][_0x6012a3(0x35a)](),this[_0x6012a3(0x398)]&&this['_eventUnsubscribe']();}[_0x23cbae(0x440)](){const _0x364607=_0x23cbae;var _0x1ab569;const {_docSkeleton:_0x194686,_document:_0x300ed9}=this,{color:_0x447893,name:_0x34ea3c,ranges:_0x574ba6}=this[_0x364607(0x140)],_0xed02c9=_0x300ed9[_0x364607(0x332)](),{docsLeft:_0x4ac49a,docsTop:_0x49efc0}=_0xed02c9,_0x25ce47=new _0x57bfe0(_0xed02c9,_0x194686);for(const {startOffset:_0x507832,endOffset:_0x2de9ea,collapsed:_0x2109c1,isActive:_0x545432}of _0x574ba6){const _0x516566=_0x194686[_0x364607(0x123)](_0x507832),_0x2b6a2c=_0x194686[_0x364607(0x123)](_0x2de9ea);if(_0x545432){const {contentBoxPointGroup:_0x394f47}=_0x25ce47['getRangePointData'](_0x2b6a2c,_0x2b6a2c);if(_0x394f47[_0x364607(0xed)]===0x0)continue;this[_0x364607(0x3e0)](_0x447893,_0x394f47,_0x4ac49a,_0x49efc0,_0x34ea3c),this['_eventUnsubscribe']=this[_0x364607(0xe4)]();}if(!_0x2109c1&&_0x516566&&_0x2b6a2c){if(_0x153d05(_0x516566,_0x2b6a2c)){const _0x58b8f8=new _0x37669e(_0xed02c9,_0x194686),{pointGroup:_0x3b2e59}=(_0x1ab569=_0x58b8f8[_0x364607(0x2cf)](_0x516566,_0x2b6a2c))!=null?_0x1ab569:{};if(_0x3b2e59==null||_0x3b2e59[_0x364607(0xed)]===0x0)continue;this[_0x364607(0x213)](_0x447893,_0x3b2e59,_0x4ac49a,_0x49efc0);}else{const {contentBoxPointGroup:_0x39fdc8}=_0x25ce47[_0x364607(0x2cf)](_0x516566,_0x2b6a2c);if(_0x39fdc8[_0x364607(0xed)]===0x0)continue;this['_drawTextRange'](_0x447893,_0x39fdc8,_0x4ac49a,_0x49efc0);}}}}['_drawAnchor'](_0x12bc86,_0x4863a6,_0x3b147a,_0xa6b3be,_0x22d293){const _0x54687a=_0x23cbae,_0x58168a=this['_getAnchorBounding'](_0x4863a6),{left:_0x5e050c,top:_0xf8e98,height:_0x5e2df1}=_0x58168a,_0x4e9294=this[_0x54687a(0x13d)](),_0x4e1e0c=Xr/_0x4e9294,_0x576fe2=new _0x8fe6a0(ft+_0x2d9f70['generateRandomId'](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be,'height':_0x5e2df1,'width':Kr,'fill':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'strokeWidth':_0x4e1e0c,'stroke':qr,'evented':!0x0});this['_anchor']=_0x576fe2,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x576fe2,_0x252f9e);const _0x4c7513=new _0x8fe6a0(ft+_0x2d9f70['generateRandomId'](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be-mt/0x2,'height':mt,'width':mt,'fill':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'strokeWidth':0x0,'stroke':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'evented':!0x1});this[_0x54687a(0x195)]=_0x4c7513,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x4c7513,_0x252f9e);const _0x480689=new st(ft+_0x2d9f70[_0x54687a(0x259)](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be-$e,'text':_0x22d293,'color':_0x12bc86});this[_0x54687a(0x142)]=_0x480689,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x480689,_0x252f9e),this[_0x54687a(0x14e)]=!0x1;}['_handleHover'](){const _0x109e9d=_0x23cbae,_0x1150e7=this['_anchor'][_0x109e9d(0x3a6)][_0x109e9d(0x205)](()=>{const _0x294ede=_0x109e9d;this[_0x294ede(0x14e)]=!0x0;}),_0x31e2d3=this[_0x109e9d(0x11e)][_0x109e9d(0x108)][_0x109e9d(0x205)](()=>{const _0x1c5590=_0x109e9d;this[_0x1c5590(0x44f)]&&clearTimeout(this[_0x1c5590(0x44f)]),this[_0x1c5590(0x44f)]=setTimeout(()=>{const _0x230f77=_0x1c5590;this[_0x230f77(0x14e)]=!0x1;},0x7d0);});return()=>{const _0x3b259f=_0x109e9d;_0x1150e7['unsubscribe'](),_0x31e2d3[_0x3b259f(0x221)]();};}[_0x23cbae(0x234)](_0x2f8be0,_0x6e3ff6,_0x496056,_0x1d5157){const _0x4ba605=_0x23cbae,_0x418a59=new _0xff1c14(_0x2f8be0)[_0x4ba605(0x435)](0.2)[_0x4ba605(0x42e)](),_0x38cc5c=new _0xc7b37d(Gr+_0x2d9f70['generateRandomId'](we),{'pointsGroup':_0x6e3ff6,'fill':_0x418a59||_0x5d3027(_0x56bec4[_0x4ba605(0x23e)],0.2),'left':_0x496056,'top':_0x1d5157,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ba605(0xdc)][_0x4ba605(0x12e)](_0x38cc5c),this[_0x4ba605(0x1f1)]['addObject'](_0x38cc5c,_0x252f9e);}['_drawRectRange'](_0x39d13e,_0x4cf85c,_0x427224,_0xd97103){const _0x4af4ec=_0x23cbae,_0x5ba759=new _0xff1c14(_0x39d13e)[_0x4af4ec(0x435)](0.2)[_0x4af4ec(0x42e)](),_0x6cc4dd=new _0xc7b37d(Yr+_0x2d9f70[_0x4af4ec(0x259)](we),{'pointsGroup':_0x4cf85c,'fill':_0x5ba759||_0x5d3027(_0x56bec4[_0x4af4ec(0x23e)],0.2),'left':_0x427224,'top':_0xd97103,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4af4ec(0xdc)]['push'](_0x6cc4dd),this[_0x4af4ec(0x1f1)][_0x4af4ec(0x36d)](_0x6cc4dd,_0x252f9e);}[_0x23cbae(0x1fd)](_0xa73f34){const _0x18e175=_0xa73f34[0x0],_0x4a1c24=_0x18e175[0x0],_0x43dacc=_0x18e175[0x2],{x:_0x12ebc6,y:_0x46a246}=_0x4a1c24,{x:_0x1d7f8a,y:_0x276f46}=_0x43dacc;return{'left':_0x12ebc6,'top':_0x46a246,'width':_0x1d7f8a-_0x12ebc6,'height':_0x276f46-_0x46a246};}[_0x23cbae(0x13d)](){const _0xbf5531=_0x23cbae,{scaleX:_0x358c65,scaleY:_0x13c893}=this['_scene'][_0xbf5531(0x2e1)]();return Math[_0xbf5531(0x3d0)](_0x358c65,_0x13c893);}}var Jr=Object['defineProperty'],zr=Object[_0x23cbae(0x36a)],Zr=(_0x25ddeb,_0x581123,_0x593401,_0x1b3d5a)=>{const _0x4c384e=_0x23cbae;for(var _0x5f376f=_0x1b3d5a>0x1?void 0x0:_0x1b3d5a?zr(_0x581123,_0x593401):_0x581123,_0x4c035d=_0x25ddeb[_0x4c384e(0xed)]-0x1,_0x3ed76d;_0x4c035d>=0x0;_0x4c035d--)(_0x3ed76d=_0x25ddeb[_0x4c035d])&&(_0x5f376f=(_0x1b3d5a?_0x3ed76d(_0x581123,_0x593401,_0x5f376f):_0x3ed76d(_0x5f376f))||_0x5f376f);return _0x1b3d5a&&_0x5f376f&&Jr(_0x581123,_0x593401,_0x5f376f),_0x5f376f;},ke=(_0x3a9eb9,_0x2e941e)=>(_0xbb484e,_0x55c0a8)=>_0x2e941e(_0xbb484e,_0x55c0a8,_0x3a9eb9);let wt=class extends _0x3a262a{constructor(_0x496661,_0x3cd0,_0x2c8c85,_0x5c2992,_0x536860){const _0x5cd99e=_0x23cbae;super(),l(this,_0x5cd99e(0x2b9),[]),l(this,_0x5cd99e(0x18e),[]),(this['_context']=_0x496661,this[_0x5cd99e(0x304)]=_0x3cd0,this['_collabCursorController']=_0x2c8c85,this['_commandService']=_0x5c2992,this[_0x5cd99e(0x1b3)]=_0x536860,this['_init']());}[_0x23cbae(0x383)](){const _0x64f77d=_0x23cbae,_0x51dcdb=this[_0x64f77d(0x2f2)]['unitId'],_0x4049c6=this[_0x64f77d(0x304)];this[_0x64f77d(0x165)](_0x380b37([this[_0x64f77d(0x345)][_0x64f77d(0x437)](_0x51dcdb),this[_0x64f77d(0x1b3)][_0x64f77d(0x248)]])['pipe'](_0x57b187(([_0x3622,_0x29e12b])=>({'skeleton':_0x4049c6[_0x64f77d(0x3e2)](),'cursors':[..._0x3622[_0x64f77d(0x2b6)]()][_0x64f77d(0x3c7)](_0x4ae4d8=>({..._0x4ae4d8,'color':_0x29e12b[_0x4ae4d8[_0x64f77d(0x3be)]]}))})))[_0x64f77d(0x334)](_0x3d1ef2=>{const _0x1bd5f9=_0x64f77d;if(this[_0x1bd5f9(0x33e)](),_0x3d1ef2){const {skeleton:_0x6f0557,cursors:_0x3863a6}=_0x3d1ef2;this['_updateCollabCursors'](_0x6f0557,_0x3863a6);}})),this[_0x64f77d(0x19c)](),this[_0x64f77d(0x36b)]();}[_0x23cbae(0x38a)](_0x188c1e,_0x5f3517){const _0x19efed=_0x23cbae,{scene:_0x1a12bf,mainComponent:_0x2daaba}=this[_0x19efed(0x2f2)],_0x30d9e8=_0x5f3517[_0x19efed(0x41d)](_0x56bb17=>new gs(_0x56bb17,_0x1a12bf,_0x188c1e,_0x2daaba));this[_0x19efed(0x2b9)]=_0x30d9e8,this[_0x19efed(0x18e)]=_0x5f3517;}['_refreshCollabCursors'](){const _0x39dfe1=_0x23cbae;this[_0x39dfe1(0x33e)]();const {scene:_0x1a7147,mainComponent:_0x50cc25}=this[_0x39dfe1(0x2f2)],_0xc6e6aa=this['_docSkeletonManagerService'][_0x39dfe1(0x3e2)](),_0x325bef=this['_cursors'][_0x39dfe1(0x41d)](_0x403624=>new gs(_0x403624,_0x1a7147,_0xc6e6aa,_0x50cc25));this[_0x39dfe1(0x2b9)]=_0x325bef;}['_removeCollabCursors'](){const _0x3c997f=_0x23cbae;this['_cursorShapes'][_0x3c997f(0x273)](_0xa764ee=>_0xa764ee[_0x3c997f(0x35a)]()),this[_0x3c997f(0x2b9)]=[];}[_0x23cbae(0x36b)](){const _0x455093=_0x23cbae,_0x18c0c8=[_0x4a3846['id']];this[_0x455093(0x165)](this[_0x455093(0x393)]['onCommandExecuted'](_0x9d47f4=>{const _0x59646a=_0x455093;_0x18c0c8['includes'](_0x9d47f4['id'])&&_0x9d47f4[_0x59646a(0x1e4)][_0x59646a(0x37e)]===this[_0x59646a(0x2f2)][_0x59646a(0x37e)]&&this[_0x59646a(0x373)]();}));}[_0x23cbae(0x19c)](){const _0x540796=_0x23cbae;this[_0x540796(0x165)](_0x4a2855(this[_0x540796(0x2f2)][_0x540796(0x239)][_0x540796(0x127)])['pipe'](_0x4eb371(_0x161173=>_0x161173['type']===_0x106d8d[_0x540796(0xdd)]),_0x437201(0x10))[_0x540796(0x334)](()=>{const _0x42ddb0=_0x540796;this[_0x42ddb0(0x373)]();}));}};wt=Zr([ke(0x1,_0x57082d(_0x152335)),ke(0x2,_0x57082d(ve)),ke(0x3,_0x2c218a),ke(0x4,_0x57082d(_0xdd136e))],wt);const Qr=0x1,eo=1.5;class to extends _0xb8fdb8{constructor(_0x281f3e,_0x59a7b3){const _0x54ecd5=_0x23cbae;super(_0x281f3e,_0x59a7b3),l(this,_0x54ecd5(0x3a5)),l(this,_0x54ecd5(0x3a1),!0x1),l(this,_0x54ecd5(0x3cd)),l(this,_0x54ecd5(0x20c),''),l(this,_0x54ecd5(0x256),'top'),l(this,_0x54ecd5(0x3df)),(_0x59a7b3&&this[_0x54ecd5(0x3af)](_0x59a7b3),this[_0x54ecd5(0x3a6)][_0x54ecd5(0x205)](()=>this[_0x54ecd5(0x3af)]({'hovered':!0x0})),this[_0x54ecd5(0x108)][_0x54ecd5(0x205)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x23cbae(0x3af)](_0x413e67){const _0x100f99=_0x23cbae;var _0x105b6b,_0xd12307,_0x1b5ee6,_0xfa2276,_0x10d662,_0x2e2485;this[_0x100f99(0x3a5)]=(_0x105b6b=_0x413e67[_0x100f99(0x3be)])!=null?_0x105b6b:this[_0x100f99(0x3a5)],this[_0x100f99(0x3a1)]=(_0xd12307=_0x413e67['hovered'])!=null?_0xd12307:this[_0x100f99(0x3a1)],this[_0x100f99(0x3cd)]=(_0x1b5ee6=_0x413e67[_0x100f99(0xf4)])!=null?_0x1b5ee6:this['_range'],this[_0x100f99(0x20c)]=(_0xfa2276=_0x413e67[_0x100f99(0x1a2)])!=null?_0xfa2276:this[_0x100f99(0x20c)],this[_0x100f99(0x256)]=(_0x10d662=_0x413e67[_0x100f99(0x37a)])!=null?_0x10d662:this['_labelPosition'],this['_backgroundColor']=(_0x2e2485=_0x413e67[_0x100f99(0x2b4)])!=null?_0x2e2485:this['_backgroundColor'],this[_0x100f99(0x126)]({'width':_0x413e67['width'],'height':_0x413e67[_0x100f99(0x404)]});}['onMouseMove'](_0x486c9e){const _0x572680=_0x23cbae,{row:_0x3e8030,column:_0x3cff57}=_0x486c9e;if(_0x3e8030>=this['_range']['startRow']&&_0x3e8030<=this[_0x572680(0x3cd)]['endRow']&&_0x3cff57>=this['_range']['startColumn']&&_0x3cff57<=this[_0x572680(0x3cd)]['endColumn']){this[_0x572680(0x3af)]({'hovered':!0x0});return;}this[_0x572680(0x3af)]({'hovered':!0x1});}[_0x23cbae(0x426)](_0x55b189){return!0x1;}['_draw'](_0x1dcd88){const _0x284c20=_0x23cbae;_0x8fe6a0[_0x284c20(0x3ac)](_0x1dcd88,{'width':this[_0x284c20(0x1da)],'height':this['height'],'strokeWidth':eo,'stroke':this[_0x284c20(0x3a5)],'evented':!0x1,'fill':this[_0x284c20(0x3df)]}),this[_0x284c20(0x3a1)]&&(_0x1dcd88[_0x284c20(0x1dd)](),_0x1dcd88['transform'](0x1,0x0,0x0,0x1,this[_0x284c20(0x1da)],this[_0x284c20(0x256)]===_0x284c20(0x2a4)?0x0:-$e),st[_0x284c20(0x3ac)](_0x1dcd88,{'text':this[_0x284c20(0x20c)],'color':this[_0x284c20(0x3a5)]}),_0x1dcd88[_0x284c20(0x222)]());}}var so=Object[_0x23cbae(0xe2)],io=Object[_0x23cbae(0x36a)],no=(_0x305db5,_0x238b3d,_0x420794,_0x4551b6)=>{for(var _0x5b147f=_0x4551b6>0x1?void 0x0:_0x4551b6?io(_0x238b3d,_0x420794):_0x238b3d,_0x411937=_0x305db5['length']-0x1,_0x4d72c1;_0x411937>=0x0;_0x411937--)(_0x4d72c1=_0x305db5[_0x411937])&&(_0x5b147f=(_0x4551b6?_0x4d72c1(_0x238b3d,_0x420794,_0x5b147f):_0x4d72c1(_0x5b147f))||_0x5b147f);return _0x4551b6&&_0x5b147f&&so(_0x238b3d,_0x420794,_0x5b147f),_0x5b147f;},gt=(_0x49b30c,_0x1c0c00)=>(_0xe3cb75,_0x22430a)=>_0x1c0c00(_0xe3cb75,_0x22430a,_0x49b30c);const ro=0x1389;let Pt=class extends _0x3a262a{constructor(_0x4d4adf,_0x28e43e,_0x3b4756,_0xa5328e){const _0x40a10f=_0x23cbae;super(),l(this,_0x40a10f(0x18e),new Set()),l(this,'_lastPointer',null),(this['_context']=_0x4d4adf,this[_0x40a10f(0x10b)]=_0x28e43e,this['_collabCursorController']=_0x3b4756,this['_themeService']=_0xa5328e,this[_0x40a10f(0x383)]());}[_0x23cbae(0x383)](){const _0xa605c2=_0x23cbae;this['_sheetSkeletonManagerService'][_0xa605c2(0x1c4)]['pipe'](_0x5198ca(this[_0xa605c2(0x16f)]),_0x38d5ac(_0x18e68b=>{const _0x595ab9=_0xa605c2;if(_0x18e68b){const _0x11e4b4=_0x18e68b['sheetId'];return _0x380b37(this['_collabCursorController']['getCollabCursors$'](this[_0x595ab9(0x2f2)][_0x595ab9(0x37e)]),this[_0x595ab9(0x1b3)]['currentTheme$'])[_0x595ab9(0x18c)](_0x57b187(([_0x435a91,_0x30aad6])=>{const _0x3d465f=new Map();return _0x435a91['forEach']((_0x5bbaed,_0x4ed242)=>{const _0x94e98b=_0x3f49;if(_0x5bbaed[_0x94e98b(0x3b8)]===_0x11e4b4){const _0x32fc1b={..._0x5bbaed};_0x32fc1b['color']=_0x30aad6[_0x5bbaed['color']],_0x3d465f[_0x94e98b(0x111)](_0x4ed242,_0x32fc1b);}}),{'skeleton':_0x18e68b,'cursors':_0x3d465f};}));}return _0x4a5add({'skeleton':null,'cursors':new Map()});}))[_0xa605c2(0x334)](({skeleton:_0x572f67,cursors:_0x18d75c})=>{const _0x590d3b=_0xa605c2;this[_0x590d3b(0x33e)](),_0x572f67&&this['_updateCollabCursors'](_0x572f67,_0x18d75c);}),this[_0xa605c2(0x10b)][_0xa605c2(0x1c4)][_0xa605c2(0x334)](_0x25e221=>{const _0x5a2a1f=_0xa605c2;if(_0x25e221==null)return;const {skeleton:_0x3b924a}=_0x25e221,{scene:_0x208b67}=this['_context'];_0x208b67[_0x5a2a1f(0x2f8)][_0x5a2a1f(0x205)](_0x23acc5(_0x16e1ec=>{const _0x3b87e7=_0x5a2a1f;var _0x386d07,_0xaf2787;const {offsetX:_0xc853f7,offsetY:_0x2f315f}=_0x16e1ec,{x:_0x186472,y:_0x566bda}=_0x208b67[_0x3b87e7(0x3f3)](_0x36e9ae[_0x3b87e7(0x232)]([_0xc853f7,_0x2f315f])),{scaleX:_0x4132a2,scaleY:_0x423b6d}=_0x208b67[_0x3b87e7(0x2e1)](),_0x3e48e6=_0x208b67[_0x3b87e7(0xd8)](_0x407db2[_0x3b87e7(0x255)]),_0x33cb79=_0x208b67[_0x3b87e7(0xf7)](_0x36e9ae['FromArray']([_0x186472,_0x566bda]),_0x3e48e6),_0x5b42da=_0x3b924a['getCellPositionByOffset'](_0xc853f7,_0x2f315f,_0x4132a2,_0x423b6d,_0x33cb79);((_0x386d07=this[_0x3b87e7(0x41c)])==null?void 0x0:_0x386d07[_0x3b87e7(0x21b)])===_0x5b42da[_0x3b87e7(0x21b)]&&((_0xaf2787=this[_0x3b87e7(0x41c)])==null?void 0x0:_0xaf2787[_0x3b87e7(0x40a)])===_0x5b42da[_0x3b87e7(0x40a)]||this[_0x3b87e7(0x18e)][_0x3b87e7(0x273)](_0x51720f=>{const _0x1068f1=_0x3b87e7;_0x51720f[_0x1068f1(0x17b)](_0x5b42da);});},0x64));});}['_updateCollabCursors'](_0x2f2cbc,_0x461d3f){const _0x22b928=_0x23cbae;var _0x482448;const _0x13e912=(_0x482448=this[_0x22b928(0x10b)][_0x22b928(0x189)]())==null?void 0x0:_0x482448[_0x22b928(0x308)];if(!_0x13e912)return;const _0x34b1cf=this[_0x22b928(0x1c0)]();if(!_0x34b1cf)return;this[_0x22b928(0x18e)][_0x22b928(0x273)](_0x35ce59=>{const _0x54fd7e=_0x22b928;_0x35ce59[_0x54fd7e(0x287)]();});const {scene:_0x197559}=_0x34b1cf,_0x4282a8=oo(Array['from'](_0x461d3f[_0x22b928(0x2b6)]()))[_0x22b928(0x41d)](_0x410884=>{const _0x566fea=_0x22b928,{color:_0x54b8f9,range:_0x9936a,name:_0x1a911b,selection:_0x326da0,sheetID:_0x4be7a3}=_0x410884,{startColumn:_0x191e76,startRow:_0x28a2c2,endColumn:_0x1b8f3a,endRow:_0x4a0615}=_0x9936a,_0x30a00b=_0x198821(_0x28a2c2,_0x191e76,_0x197559,_0x13e912),_0x466e50=_0x198821(_0x4a0615,_0x1b8f3a,_0x197559,_0x13e912),{columnHeaderHeightAndMarginTop:_0x30f181}=_0x13e912,{startX:_0x54aea1,startY:_0x2b452b}=_0x30a00b,{endX:_0x24818e,endY:_0x5419ed}=_0x466e50,_0x3b6642=_0x24818e-_0x54aea1,_0x426169=_0x5419ed-_0x2b452b,_0x1a399b={'labelPosition':_0x2b452b-_0x30f181>=$e?_0x566fea(0x21c):_0x566fea(0x2a4),'sheetID':_0x4be7a3,'range':_0x9936a,'color':_0x54b8f9,'name':_0x1a911b,'selection':_0x326da0,'left':_0x54aea1,'top':_0x2b452b,'width':_0x3b6642,'height':_0x426169,'evented':!0x1,'zIndex':ro};return new to(_0x1a911b,_0x1a399b);});_0x197559[_0x22b928(0x31e)](_0x4282a8,Qr),this[_0x22b928(0x18e)]=new Set(_0x4282a8);}['_removeCollabCursors'](){const _0x5ad92d=_0x23cbae;var _0x32e05d;(_0x32e05d=this[_0x5ad92d(0x18e)])==null||_0x32e05d[_0x5ad92d(0x273)](_0x4cd050=>_0x4cd050[_0x5ad92d(0x35a)]());}[_0x23cbae(0x1c0)](){const _0x264def=_0x23cbae;return _0x4d0c7e(this[_0x264def(0x2f2)][_0x264def(0x21d)],this[_0x264def(0x2f2)]);}};Pt=no([gt(0x1,_0x57082d(_0x5d067c)),gt(0x2,_0x57082d(ve)),gt(0x3,_0x57082d(_0xdd136e))],Pt);function oo(_0x5403b6){const _0x568207=_0x23cbae,_0x334e55=new Map();return _0x5403b6[_0x568207(0x273)](_0x459604=>{const _0x173857=_0x568207;if(_0x334e55[_0x173857(0x15b)](_0x459604[_0x173857(0x363)])){const _0x229a20=_0x334e55[_0x173857(0x3fd)](_0x459604[_0x173857(0x363)]);_0x229a20['name']+=',\x20'+_0x459604['name'];}else _0x334e55['set'](_0x459604[_0x173857(0x363)],_0x459604);}),Array['from'](_0x334e55['values']());}var N=function(){const _0x2de1db=_0x23cbae;return N=Object[_0x2de1db(0x143)]||function(_0x557082){const _0x1955ec=_0x2de1db;for(var _0x595a0b,_0x3b66a6=0x1,_0x55bd58=arguments[_0x1955ec(0xed)];_0x3b66a6<_0x55bd58;_0x3b66a6++){_0x595a0b=arguments[_0x3b66a6];for(var _0xeb3ce6 in _0x595a0b)Object[_0x1955ec(0x18b)]['hasOwnProperty'][_0x1955ec(0x1fc)](_0x595a0b,_0xeb3ce6)&&(_0x557082[_0xeb3ce6]=_0x595a0b[_0xeb3ce6]);}return _0x557082;},N[_0x2de1db(0x434)](this,arguments);},ao=function(_0x3156e7,_0x3dc49d){const _0x20580a=_0x23cbae;var _0x313f9b={};for(var _0x7e08ed in _0x3156e7)Object[_0x20580a(0x18b)][_0x20580a(0x243)]['call'](_0x3156e7,_0x7e08ed)&&_0x3dc49d[_0x20580a(0x148)](_0x7e08ed)<0x0&&(_0x313f9b[_0x7e08ed]=_0x3156e7[_0x7e08ed]);if(_0x3156e7!=null&&typeof Object['getOwnPropertySymbols']==_0x20580a(0x204)){for(var _0x4863a3=0x0,_0x7e08ed=Object[_0x20580a(0x179)](_0x3156e7);_0x4863a3<_0x7e08ed[_0x20580a(0xed)];_0x4863a3++)_0x3dc49d[_0x20580a(0x148)](_0x7e08ed[_0x4863a3])<0x0&&Object[_0x20580a(0x18b)][_0x20580a(0x19f)]['call'](_0x3156e7,_0x7e08ed[_0x4863a3])&&(_0x313f9b[_0x7e08ed[_0x4863a3]]=_0x3156e7[_0x7e08ed[_0x4863a3]]);}return _0x313f9b;},Yt=_0x24db44(function(_0x4d18ff,_0x6a7eb9){const _0x17cb2d=_0x23cbae;var _0x67904=_0x4d18ff[_0x17cb2d(0x130)],_0x1d32ec=_0x4d18ff['id'],_0x5f3cc6=_0x4d18ff[_0x17cb2d(0x138)],_0x4a3182=_0x4d18ff['extend'],_0x36af5c=ao(_0x4d18ff,[_0x17cb2d(0x130),'id','className',_0x17cb2d(0xea)]),_0x50a787=_0x17cb2d(0x3b9)[_0x17cb2d(0x2e8)](_0x1d32ec,'\x20')[_0x17cb2d(0x2e8)](_0x5f3cc6||'')[_0x17cb2d(0x147)](),_0x51a3f9=_0xa945c8('_'[_0x17cb2d(0x2e8)](lo()));return Ws(_0x67904,''[_0x17cb2d(0x2e8)](_0x1d32ec),{'defIds':_0x67904['defIds'],'idSuffix':_0x51a3f9['current']},N({'ref':_0x6a7eb9,'className':_0x50a787},_0x36af5c),_0x4a3182);});function Ws(_0xcc596,_0x2bae61,_0x5c5a9d,_0x313621,_0x14e03e){const _0x2b7277=_0x23cbae;return _0x39bd90(_0xcc596[_0x2b7277(0x117)],N(N({'key':_0x2bae61},co(_0xcc596,_0x5c5a9d,_0x14e03e)),_0x313621),(ho(_0xcc596,_0x5c5a9d)['children']||[])[_0x2b7277(0x41d)](function(_0x883e2d,_0x3744e4){const _0x1c5237=_0x2b7277;return Ws(_0x883e2d,''['concat'](_0x2bae61,'-')[_0x1c5237(0x2e8)](_0xcc596[_0x1c5237(0x117)],'-')[_0x1c5237(0x2e8)](_0x3744e4),_0x5c5a9d,void 0x0,_0x14e03e);}));}function co(_0x112506,_0x360302,_0x2f874c){const _0x19b344=_0x23cbae;var _0x31478b=N({},_0x112506[_0x19b344(0x250)]);_0x2f874c!=null&&_0x2f874c[_0x19b344(0x2d2)]&&_0x31478b['fill']===_0x19b344(0x2d2)&&(_0x31478b[_0x19b344(0x230)]=_0x2f874c[_0x19b344(0x2d2)]);var _0x39f0ba=_0x360302[_0x19b344(0x217)];return!_0x39f0ba||_0x39f0ba[_0x19b344(0xed)]===0x0||(_0x112506[_0x19b344(0x117)]===_0x19b344(0x2e6)&&_0x31478b[_0x19b344(0x35f)]&&(_0x31478b[_0x19b344(0x35f)]=_0x31478b['xlink:href']+_0x360302['idSuffix']),Object[_0x19b344(0x1d5)](_0x31478b)['forEach'](function(_0x1d0231){const _0x37c06c=_0x19b344;var _0x2ee01c=_0x1d0231[0x0],_0x4789d8=_0x1d0231[0x1];typeof _0x4789d8==_0x37c06c(0x227)&&(_0x31478b[_0x2ee01c]=_0x4789d8[_0x37c06c(0x35d)](/url\(#(.*)\)/,_0x37c06c(0x102)['concat'](_0x360302['idSuffix'],')')));})),_0x31478b;}function ho(_0x32d601,_0x32503){const _0x3ff5c2=_0x23cbae;var _0x52fb92,_0x193730=_0x32503[_0x3ff5c2(0x217)];return!_0x193730||_0x193730['length']===0x0?_0x32d601:_0x32d601[_0x3ff5c2(0x117)]===_0x3ff5c2(0x2dc)&&(!((_0x52fb92=_0x32d601[_0x3ff5c2(0x1f3)])===null||_0x52fb92===void 0x0)&&_0x52fb92[_0x3ff5c2(0xed)])?N(N({},_0x32d601),{'children':_0x32d601[_0x3ff5c2(0x1f3)]['map'](function(_0x34245a){const _0x4f906c=_0x3ff5c2;return typeof _0x34245a[_0x4f906c(0x250)]['id']==_0x4f906c(0x227)&&_0x193730&&_0x193730[_0x4f906c(0x148)](_0x34245a[_0x4f906c(0x250)]['id'])>-0x1?N(N({},_0x34245a),{'attrs':N(N({},_0x34245a[_0x4f906c(0x250)]),{'id':_0x34245a[_0x4f906c(0x250)]['id']+_0x32503[_0x4f906c(0x18d)]})}):_0x34245a;})}):_0x32d601;}function lo(){const _0x147352=_0x23cbae;return Math[_0x147352(0x2a5)]()['toString'](0x24)[_0x147352(0x3c9)](0x2,0x8);}Yt[_0x23cbae(0x3bc)]='UniverIcon';var _o={'tag':'svg','attrs':{'fill':_0x23cbae(0x1ed),'viewBox':'0\x200\x2016\x2016','width':_0x23cbae(0x121),'height':_0x23cbae(0x121)},'children':[{'tag':'g','attrs':{'clipPath':_0x23cbae(0x374)},'children':[{'tag':_0x23cbae(0x352),'attrs':{'stroke':_0x23cbae(0x29e),'d':_0x23cbae(0x40b),'strokeLinecap':_0x23cbae(0x3a2),'strokeLinejoin':_0x23cbae(0x3a2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x23cbae(0x40d),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x23cbae(0x1e7),'d':_0x23cbae(0x28f)}}]}]}],'defIds':[_0x23cbae(0x105)]},Gs=_0x24db44(function(_0x40602d,_0x1488d2){const _0x49d756=_0x23cbae;return _0x39bd90(Yt,Object[_0x49d756(0x143)]({},_0x40602d,{'id':_0x49d756(0x317),'ref':_0x1488d2,'icon':_o}));});Gs['displayName']=_0x23cbae(0x1b8);var uo={'tag':'svg','attrs':{'fill':_0x23cbae(0x1ed),'viewBox':_0x23cbae(0x199),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x23cbae(0xeb)},'children':[{'tag':'path','attrs':{'stroke':_0x23cbae(0x29e),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x23cbae(0x3a2),'strokeLinejoin':_0x23cbae(0x3a2),'strokeWidth':1.2}}]},{'tag':_0x23cbae(0x2dc),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23cbae(0x412)},'children':[{'tag':_0x23cbae(0x352),'attrs':{'fill':_0x23cbae(0x1e7),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x23cbae(0x412)]},Ys=_0x24db44(function(_0x1eb67d,_0xa6415f){const _0x2275ab=_0x23cbae;return _0x39bd90(Yt,Object[_0x2275ab(0x143)]({},_0x1eb67d,{'id':_0x2275ab(0x33c),'ref':_0xa6415f,'icon':uo}));});Ys['displayName']='OnLineSingle';function Ks(_0xf8d10f){const _0x2e4444=_0x23cbae;var _0x309efc,_0x5c5839,_0x1239bc='';if(typeof _0xf8d10f==_0x2e4444(0x227)||typeof _0xf8d10f==_0x2e4444(0x11a))_0x1239bc+=_0xf8d10f;else{if(typeof _0xf8d10f==_0x2e4444(0x307)){if(Array['isArray'](_0xf8d10f)){var _0x1c32b4=_0xf8d10f[_0x2e4444(0xed)];for(_0x309efc=0x0;_0x309efc<_0x1c32b4;_0x309efc++)_0xf8d10f[_0x309efc]&&(_0x5c5839=Ks(_0xf8d10f[_0x309efc]))&&(_0x1239bc&&(_0x1239bc+='\x20'),_0x1239bc+=_0x5c5839);}else{for(_0x5c5839 in _0xf8d10f)_0xf8d10f[_0x5c5839]&&(_0x1239bc&&(_0x1239bc+='\x20'),_0x1239bc+=_0x5c5839);}}}return _0x1239bc;}function fo(){for(var _0x4340a5,_0x942ed2,_0xa2086=0x0,_0x167a54='',_0x4dfd95=arguments['length'];_0xa2086<_0x4dfd95;_0xa2086++)(_0x4340a5=arguments[_0xa2086])&&(_0x942ed2=Ks(_0x4340a5))&&(_0x167a54&&(_0x167a54+='\x20'),_0x167a54+=_0x942ed2);return _0x167a54;}const mo=_0x23cbae(0x3eb),go='univer-online-status-title',So=_0x23cbae(0x17d),po=_0x23cbae(0xe3),vo='univer-offline',Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x1839b2){const _0x1851d0=_0x23cbae;switch(_0x1839b2){case P[_0x1851d0(0x1a9)]:return _0x1851d0(0x318);case P[_0x1851d0(0x444)]:return _0x1851d0(0x331);case P[_0x1851d0(0x120)]:return'collabStatus.fetchMiss';case P['NOT_COLLAB']:return _0x1851d0(0x109);case P['PENDING']:case P['AWAITING']:case P[_0x1851d0(0x27f)]:return _0x1851d0(0x397);case P[_0x1851d0(0x3cb)]:return _0x1851d0(0x425);}}function Eo(_0x279f38){const _0x1f04ed=_0x23cbae,{status$:_0x52d686}=_0x279f38,_0x3cf7df=_0x5a882d(_0x52d686,P[_0x1f04ed(0x26e)]),_0x364806=_0x32c0cd(_0x1ba649),_0x27423f=_0x32c0cd(he),_0xc44719=_0x3cf7df!==P[_0x1f04ed(0x1a9)],_0x200d68=_0x364806['t'](Io(_0x3cf7df)),_0xac6ea2=fo(Pe[_0x1f04ed(0x3c4)],{[Pe[_0x1f04ed(0x240)]]:_0xc44719,[Pe[_0x1f04ed(0x23f)]]:!_0xc44719}),_0x5f0136=_0xc44719?_0x5c5e4e[_0x1f04ed(0xdb)](Ys,null):_0x5c5e4e[_0x1f04ed(0xdb)](Gs,null),_0xca911=_0x40a9ea(()=>{_0xc44719||_0x27423f['reconnect']();},[_0xc44719,_0x27423f]);function _0x23e9bf(){const _0x5bca96=_0x1f04ed;return _0x5c5e4e['createElement'](_0x5bca96(0x3de),{'className':_0xac6ea2,'onClick':_0xca911},_0x5c5e4e[_0x5bca96(0xdb)]('div',{'className':Pe[_0x5bca96(0x272)]},_0x5f0136),_0x5c5e4e['createElement']('div',{'className':Pe[_0x5bca96(0x3a8)]},_0x200d68));}return _0xc44719?_0x23e9bf():_0x5c5e4e[_0x1f04ed(0xdb)](_0x115533,{'title':_0x364806['t'](_0x1f04ed(0x1eb))},_0x23e9bf());}var Co=Object[_0x23cbae(0xe2)],bo=Object[_0x23cbae(0x36a)],To=(_0x430b98,_0x3378c0,_0x2db448,_0x2b3420)=>{const _0x26465a=_0x23cbae;for(var _0x6ecba8=_0x2b3420>0x1?void 0x0:_0x2b3420?bo(_0x3378c0,_0x2db448):_0x3378c0,_0x58abdf=_0x430b98[_0x26465a(0xed)]-0x1,_0x5a0798;_0x58abdf>=0x0;_0x58abdf--)(_0x5a0798=_0x430b98[_0x58abdf])&&(_0x6ecba8=(_0x2b3420?_0x5a0798(_0x3378c0,_0x2db448,_0x6ecba8):_0x5a0798(_0x6ecba8))||_0x6ecba8);return _0x2b3420&&_0x6ecba8&&Co(_0x3378c0,_0x2db448,_0x6ecba8),_0x6ecba8;},Be=(_0x14efb3,_0x241f15)=>(_0x164b75,_0xfa96a5)=>_0x241f15(_0x164b75,_0xfa96a5,_0x14efb3);let Me=class extends _0xbfc176{constructor(_0x21476a,_0x1e0103,_0x3a6a7e,_0x5f7f16){const _0x135f4b=_0x23cbae;super(),l(this,'_status$',new _0x169308(P[_0x135f4b(0x26e)])),(this[_0x135f4b(0x2ce)]=_0x21476a,this['_uiPartsService']=_0x1e0103,this[_0x135f4b(0x171)]=_0x3a6a7e,this['_collaborationController']=_0x5f7f16,this[_0x135f4b(0x2cb)](),this['_initStatusListener']());}[_0x23cbae(0x3d3)](){const _0x8a1476=_0x23cbae;this[_0x8a1476(0x165)](this[_0x8a1476(0x2ce)]['focused$'][_0x8a1476(0x18c)](_0x338777(()=>{const _0x2032d5=_0x8a1476,_0x2f4ceb=this[_0x2032d5(0x2ce)]['getFocusedUnit']();return _0x2f4ceb?this[_0x2032d5(0x340)][_0x2032d5(0x13b)](_0x2f4ceb[_0x2032d5(0x183)]()):_0x4a5add(null);}),_0x338777(_0xb2d081=>_0xb2d081?_0xb2d081[_0x8a1476(0x19d)]:_0x4a5add(P[_0x8a1476(0x26e)])))[_0x8a1476(0x334)](_0xe94256=>{const _0x12b4c6=_0x8a1476;this['_status$'][_0x12b4c6(0x131)](_0xe94256);}));}[_0x23cbae(0x2cb)](){const _0x25aa65=_0x23cbae;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x1cbaaf[_0x25aa65(0x270)],()=>_0x2fb98b(Ro({'status$':this['_status$'][_0x25aa65(0x341)]()}),this['_injector'])));}};Me=To([Be(0x0,_0xf0f4c1),Be(0x1,_0x49417e),Be(0x2,_0x57082d(_0x5aca14)),Be(0x3,_0x57082d(Le))],Me);function Ro(_0x1ceb6b){const {status$:_0x680975}=_0x1ceb6b;return function(){const _0x58f7d7=_0x3f49;return _0x5c5e4e[_0x58f7d7(0xdb)](Eo,{'status$':_0x680975});};}const Xs=_0x1d1962(_0x23cbae(0x23d));var Oo=Object[_0x23cbae(0xe2)],Do=Object[_0x23cbae(0x36a)],wo=(_0x2ac873,_0x4d51ae,_0x5daafe,_0x3ca76d)=>{const _0x45491b=_0x23cbae;for(var _0x30eba2=_0x3ca76d>0x1?void 0x0:_0x3ca76d?Do(_0x4d51ae,_0x5daafe):_0x4d51ae,_0x37e0a1=_0x2ac873[_0x45491b(0xed)]-0x1,_0x4c7b75;_0x37e0a1>=0x0;_0x37e0a1--)(_0x4c7b75=_0x2ac873[_0x37e0a1])&&(_0x30eba2=(_0x3ca76d?_0x4c7b75(_0x4d51ae,_0x5daafe,_0x30eba2):_0x4c7b75(_0x30eba2))||_0x30eba2);return _0x3ca76d&&_0x30eba2&&Oo(_0x4d51ae,_0x5daafe,_0x30eba2),_0x30eba2;},ge=(_0xaf4611,_0x57708e)=>(_0x8f432e,_0x364a9b)=>_0x57708e(_0x8f432e,_0x364a9b,_0xaf4611);let Je=class extends _0x3a262a{constructor(_0x9a57f5,_0x28bb8f,_0x23c28b,_0x24ed77,_0xee5cde,_0x722dc5){const _0x361182=_0x23cbae;super(),this[_0x361182(0x37d)]=_0x9a57f5,this[_0x361182(0x135)]=_0x28bb8f,this[_0x361182(0x393)]=_0x23c28b,this[_0x361182(0x279)]=_0x24ed77,this[_0x361182(0x21f)]=_0xee5cde,_0x722dc5?_0x722dc5==null||_0x722dc5[_0x361182(0x362)]()['then'](()=>this[_0x361182(0x383)]()):(this[_0x361182(0x135)][_0x361182(0x448)](_0x361182(0x33a),_0x361182(0x28b)),this[_0x361182(0x383)]());}async[_0x23cbae(0x383)](){const _0x2cb958=_0x23cbae,_0x398507=this[_0x2cb958(0x37d)]['getParam'](_0x2cb958(0x21d)),_0x16789e=this['_urlService']['getParam'](_0x2cb958(0x2f1));if(!_0x398507||!_0x16789e){this[_0x2cb958(0x135)][_0x2cb958(0x448)](_0x2cb958(0x33a),_0x2cb958(0x357));return;}switch(Number(_0x16789e)){case k[_0x2cb958(0x34d)]:{const _0x4ecfb7=await this['_loadSheet'](_0x398507);this['_setupSubUnitSync'](_0x4ecfb7);break;}case k['UNIVER_DOC']:{await this[_0x2cb958(0xfe)](_0x398507);break;}default:{this[_0x2cb958(0x135)][_0x2cb958(0x43f)](_0x2cb958(0x33a),_0x2cb958(0x197));break;}}}async['_setupSubUnitSync'](_0x5524f5){const _0x1ef5bc=_0x23cbae;await this[_0x1ef5bc(0x2ff)](_0x5524f5),_0x5524f5['activeSheet$']['pipe'](_0x5b993c(this[_0x1ef5bc(0x16f)]))['subscribe'](_0x113a1f=>{const _0x440404=_0x1ef5bc;_0x113a1f&&this[_0x440404(0x146)](_0x113a1f);}),this['_urlService']['urlChange$']['pipe'](_0x5b993c(this[_0x1ef5bc(0x16f)]))[_0x1ef5bc(0x334)](()=>this[_0x1ef5bc(0x2ff)](_0x5524f5));}[_0x23cbae(0x146)](_0x15c9bb,_0x5e0fc5=!0x1){const _0x2cee3d=_0x23cbae,_0x2493dc=this[_0x2cee3d(0x37d)][_0x2cee3d(0x323)]('subunit');_0x15c9bb['getSheetId']()!==_0x2493dc&&this[_0x2cee3d(0x37d)][_0x2cee3d(0x2a6)](_0x2cee3d(0x337),_0x15c9bb[_0x2cee3d(0x1ff)](),_0x5e0fc5);}async[_0x23cbae(0x2ff)](_0x190536){const _0x1d590d=_0x23cbae;var _0x1e59c7;const _0x1f00ab=this[_0x1d590d(0x37d)][_0x1d590d(0x323)](_0x1d590d(0x337));if(!_0x1f00ab||!_0x190536[_0x1d590d(0x163)](_0x1f00ab)){const _0x101aa3=_0x190536[_0x1d590d(0x1cb)]()[0x0],_0x24df7f=_0x190536[_0x1d590d(0x163)](_0x101aa3);if(!_0x24df7f)return;this[_0x1d590d(0x146)](_0x24df7f,!0x0),await this['_commandService'][_0x1d590d(0x1ad)](_0x40f95f['id'],{'unitId':_0x190536['getUnitId'](),'subUnitId':_0x101aa3});return;}((_0x1e59c7=_0x190536[_0x1d590d(0x3f1)]())==null?void 0x0:_0x1e59c7[_0x1d590d(0x1ff)]())!==_0x1f00ab&&await this[_0x1d590d(0x393)][_0x1d590d(0x1ad)](_0x40f95f['id'],{'unitId':_0x190536['getUnitId'](),'subUnitId':_0x1f00ab});}async['_loadSheet'](_0x3dbb62){const _0x541d51=_0x23cbae;let _0xc9d8b7=0x0;const _0x225daa=await this[_0x541d51(0x279)][_0x541d51(0x2b7)](_0x3dbb62);return _0x225daa&&(_0x225daa[_0x541d51(0x34a)]||_0x225daa[_0x541d51(0x2e4)][_0x541d51(0xed)]!==0x0)&&(_0xc9d8b7=_0x225daa[_0x541d51(0x35b)]),_0xc9d8b7===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x541d51(0x1df)),this[_0x541d51(0x21f)][_0x541d51(0x245)](_0x3dbb62,_0xc9d8b7);}async[_0x23cbae(0xfe)](_0x57f783){const _0x600017=_0x23cbae;let _0x5f5d8c=0x0;const _0x2258ce=await this[_0x600017(0x279)]['loadOfflineData'](_0x57f783);return _0x2258ce&&(_0x2258ce[_0x600017(0x34a)]||_0x2258ce['mutations'][_0x600017(0xed)]!==0x0)&&(_0x5f5d8c=_0x2258ce[_0x600017(0x35b)]),_0x5f5d8c===0x0&&this[_0x600017(0x135)][_0x600017(0x448)](_0x600017(0x33a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x600017(0x196)](_0x57f783,_0x5f5d8c);}};Je=wo([ge(0x0,Xs),ge(0x1,_0x2ed9bc),ge(0x2,_0x2c218a),ge(0x3,_0x57082d(w)),ge(0x4,_0x57082d(_0x40068b)),ge(0x5,_0x187eb8(_0x5e7b1c))],Je);var Po=Object[_0x23cbae(0xe2)],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x3671e3,_0x3e06c3,_0x46696f,_0x123956)=>{const _0x4bccea=_0x23cbae;for(var _0xc96e5c=_0x123956>0x1?void 0x0:_0x123956?yo(_0x3e06c3,_0x46696f):_0x3e06c3,_0x24684e=_0x3671e3[_0x4bccea(0xed)]-0x1,_0x54844e;_0x24684e>=0x0;_0x24684e--)(_0x54844e=_0x3671e3[_0x24684e])&&(_0xc96e5c=(_0x123956?_0x54844e(_0x3e06c3,_0x46696f,_0xc96e5c):_0x54844e(_0xc96e5c))||_0xc96e5c);return _0x123956&&_0xc96e5c&&Po(_0x3e06c3,_0x46696f,_0xc96e5c),_0xc96e5c;},Ss=(_0x29ad7c,_0x1255e9)=>(_0x26c394,_0x8b53bd)=>_0x1255e9(_0x26c394,_0x8b53bd,_0x29ad7c);const No=_0x23cbae(0x330),Mo=_0x23cbae(0x447);let ze=class extends _0xbfc176{constructor(_0x341e32,_0x95d4e5){const _0x9ccaee=_0x23cbae;super(),this['_univerInstanceService']=_0x341e32,this[_0x9ccaee(0x44c)]=_0x95d4e5,this['_init']();}[_0x23cbae(0x383)](){const _0x10e9d9=_0x23cbae;this[_0x10e9d9(0x165)](this[_0x10e9d9(0x2ce)][_0x10e9d9(0x22f)][_0x10e9d9(0x334)](()=>{const _0x4baaad=_0x10e9d9;var _0x5e9a72;const _0x1e3b32=this['_univerInstanceService'][_0x4baaad(0x419)]();let _0x370ac3=(_0x5e9a72=this['_configService'][_0x4baaad(0x266)](No))!=null?_0x5e9a72:Mo;_0x1e3b32 instanceof _0x54fdc9&&(_0x370ac3=_0x1e3b32['name']),document['title']=_0x370ac3;}));}};ze=Uo([Ss(0x0,_0xf0f4c1),Ss(0x1,_0x465ebb)],ze);var Ao=Object[_0x23cbae(0xe2)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x20e142,_0x3ce095,_0x30cf9,_0x3fdc1b)=>{for(var _0x24f2a0=_0x3fdc1b>0x1?void 0x0:_0x3fdc1b?Lo(_0x3ce095,_0x30cf9):_0x3ce095,_0x382b91=_0x20e142['length']-0x1,_0x5424dc;_0x382b91>=0x0;_0x382b91--)(_0x5424dc=_0x20e142[_0x382b91])&&(_0x24f2a0=(_0x3fdc1b?_0x5424dc(_0x3ce095,_0x30cf9,_0x24f2a0):_0x5424dc(_0x24f2a0))||_0x24f2a0);return _0x3fdc1b&&_0x24f2a0&&Ao(_0x3ce095,_0x30cf9,_0x24f2a0),_0x24f2a0;},St=(_0x340358,_0x4120e2)=>(_0x19f0a3,_0x114949)=>_0x4120e2(_0x19f0a3,_0x114949,_0x340358);let Ze=class{constructor(_0x2a6305,_0x5f2ce9,_0x1b7223){const _0x265a73=_0x23cbae;this['_configService']=_0x2a6305,this['_httpService']=_0x5f2ce9,this[_0x265a73(0x152)]=_0x1b7223,this[_0x265a73(0x410)]();}[_0x23cbae(0x410)](){const _0x4a124c=_0x23cbae;this[_0x4a124c(0x438)][_0x4a124c(0x3d7)]({'priority':0x1,'interceptor':(_0x1f5eaf,_0x2774ab)=>_0x2774ab(_0x1f5eaf)[_0x4a124c(0x18c)](_0x286f48(async _0x875c68=>{const _0x3546c1=_0x4a124c,_0x518cda=_0x875c68;if(_0x518cda[_0x3546c1(0x361)]===0x191&&window['confirm'](this[_0x3546c1(0x152)]['t'](_0x3546c1(0x1b7)))){const _0x72c453=window[_0x3546c1(0x278)](window[_0x3546c1(0x3b2)][_0x3546c1(0x2a0)]);window[_0x3546c1(0x3b2)]['href']=this[_0x3546c1(0x328)]()+'?url='+_0x72c453;}return _0x518cda;}))});}[_0x23cbae(0x328)](){const _0x36e23a=_0x23cbae;var _0x351e80,_0x2cb9e7;const _0x3eaba0=this['_configService'][_0x36e23a(0x266)](Nn),_0x2244e7=this['_configService'][_0x36e23a(0x266)]($);return(_0x2cb9e7=(_0x351e80=_0x2244e7==null?void 0x0:_0x2244e7[_0x36e23a(0x37b)])!=null?_0x351e80:_0x3eaba0)!=null?_0x2cb9e7:Mn;}};Ze=$o([St(0x0,_0x465ebb),St(0x1,_0x57082d(_0x1b70f6)),St(0x2,_0x57082d(_0x1ba649))],Ze);var jo=Object[_0x23cbae(0xe2)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x42e5c2,_0x45d1d8,_0x370883,_0x258784)=>{for(var _0x3492d9=_0x258784>0x1?void 0x0:_0x258784?xo(_0x45d1d8,_0x370883):_0x45d1d8,_0x10881f=_0x42e5c2['length']-0x1,_0x2d3a19;_0x10881f>=0x0;_0x10881f--)(_0x2d3a19=_0x42e5c2[_0x10881f])&&(_0x3492d9=(_0x258784?_0x2d3a19(_0x45d1d8,_0x370883,_0x3492d9):_0x2d3a19(_0x3492d9))||_0x3492d9);return _0x258784&&_0x3492d9&&jo(_0x45d1d8,_0x370883,_0x3492d9),_0x3492d9;},ps=(_0x14a6fa,_0x587606)=>(_0x1c814a,_0x3b2147)=>_0x587606(_0x1c814a,_0x3b2147,_0x14a6fa);const ko=_0x23cbae(0x235),Bo='/universer-api/authz';let yt=class extends _0xbfc176{constructor(_0x5aa433,_0x262f36){const _0x71fd3f=_0x23cbae;super(),this[_0x71fd3f(0x17e)]=_0x5aa433,this[_0x71fd3f(0x44c)]=_0x262f36,this[_0x71fd3f(0x387)]();}[_0x23cbae(0x387)](){const _0x481a42=_0x23cbae,_0x2f5cfb=this;this[_0x481a42(0x165)](this[_0x481a42(0x17e)][_0x481a42(0x3d7)]({'priority':0x3e7,'interceptor':_0x5afcd5({'isMatch'(_0x3bc192){const _0x5a9a52=_0x481a42;var _0x43f06f;if(_0x3bc192['method']==='POST'&&((_0x43f06f=_0x3bc192[_0x5a9a52(0x261)])!=null&&_0x43f06f[_0x5a9a52(0x1f6)])){const {objectID:_0x133c10,objectType:_0xfbb1bb}=_0x3bc192[_0x5a9a52(0x261)][_0x5a9a52(0x1f6)]||{};if(!_0x133c10||_0xfbb1bb===void 0x0)return!0x1;const _0x5a9bf2=_0x2f5cfb[_0x5a9a52(0x3aa)]()+'/'+_0xfbb1bb+_0x5a9a52(0x3a4)+_0x133c10+_0x5a9a52(0x1fb);if(_0x3bc192[_0x5a9a52(0x1b6)]===_0x5a9bf2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1b6f19){const _0x1d9abd=_0x481a42;var _0x22e85f;return(_0x22e85f=_0x1b6f19[_0x1d9abd(0x261)])==null?void 0x0:_0x22e85f[_0x1d9abd(0x1f6)];},'mergeParamsToRequest'(_0x4fddac,_0x429fb0){const _0x392fbf=_0x481a42,_0x552554=_0x2f5cfb[_0x392fbf(0x3aa)]()+_0x392fbf(0x268),_0x12c9d7=_0x4fddac[_0x392fbf(0x39b)]((_0x5c82b3,_0x51fcb1)=>{const _0x48f7f6=_0x392fbf,{unitID:_0x12f8d8,objectID:_0x58c7a4,objectType:_0x83226e,actions:_0x103cd0}=_0x51fcb1;return _0x5c82b3[_0x12f8d8]||(_0x5c82b3[_0x12f8d8]={}),_0x5c82b3[_0x12f8d8][_0x58c7a4]||(_0x5c82b3[_0x12f8d8][_0x58c7a4]={'objectID':_0x58c7a4,'objectType':_0x83226e,'actions':[]}),_0x5c82b3[_0x12f8d8][_0x58c7a4][_0x48f7f6(0x347)]['push'](..._0x103cd0),_0x5c82b3;},{}),_0x2f1806=[];for(const _0x34e33c in _0x12c9d7)for(const _0x33da8d in _0x12c9d7[_0x34e33c]){const {actions:_0x13395,objectType:_0x3d3da1}=_0x12c9d7[_0x34e33c][_0x33da8d],_0x508f89=[...new Set(_0x13395)];_0x2f1806['push']({'unitID':_0x34e33c,'objectID':_0x33da8d,'objectType':_0x3d3da1,'actions':_0x508f89});}return new _0x22675a(_0x392fbf(0x364),_0x552554,{'headers':_0x429fb0[_0x392fbf(0x367)],'withCredentials':_0x429fb0['withCredentials'],'responseType':_0x429fb0[_0x392fbf(0x15d)],'body':{'requests':_0x2f1806}});}},{'distributeResult'(_0xb7b9df,_0x16173f){const _0x37dff0=_0x481a42,{objectActions:_0x2d342f}=_0xb7b9df;return _0x16173f[_0x37dff0(0x41d)](_0x1adfde=>{const _0x2f89bf=_0x37dff0,{unitID:_0x5a97f8,objectID:_0x1b621a,actions:_0x54d845}=_0x1adfde,_0x5cd42f=_0x2d342f[_0x2f89bf(0x265)](_0x59dd65=>_0x59dd65[_0x2f89bf(0x1a5)]===_0x5a97f8&&_0x59dd65['objectID']===_0x1b621a),_0x1e568b=_0x54d845[_0x2f89bf(0x41d)](_0x3336a7=>_0x5cd42f==null?void 0x0:_0x5cd42f['actions'][_0x2f89bf(0x265)](_0x1619f2=>_0x1619f2[_0x2f89bf(0x24e)]===_0x3336a7))[_0x2f89bf(0x371)](_0x3f35ca=>!!_0x3f35ca);return{'config':_0x1adfde,'result':{'actions':_0x1e568b,'error':_0xb7b9df[_0x2f89bf(0x43f)]}};});}})}));}[_0x23cbae(0x3aa)](){const _0x58f9ea=_0x23cbae;var _0x281551,_0x4358ff;const _0x4b2484=this[_0x58f9ea(0x44c)][_0x58f9ea(0x266)](ko),_0x5b6f4f=this[_0x58f9ea(0x44c)][_0x58f9ea(0x266)]($);return(_0x4358ff=(_0x281551=_0x5b6f4f==null?void 0x0:_0x5b6f4f[_0x58f9ea(0x16e)])!=null?_0x281551:_0x4b2484)!=null?_0x4358ff:Bo;}async[_0x23cbae(0x2c7)](_0x5bce05){const _0x3f07ea=_0x23cbae,_0x43513a=this[_0x3f07ea(0x3aa)]()+'/'+_0x5bce05[_0x3f07ea(0x203)]+_0x3f07ea(0x3d2);return(await this['_HTTPService'][_0x3f07ea(0x1e5)](_0x43513a,{'body':_0x5bce05}))[_0x3f07ea(0x1f6)][_0x3f07ea(0x175)]||'';}async['list'](_0x44859c){const _0x46f77f=_0x23cbae,_0x3279cf=this[_0x46f77f(0x3aa)]()+'/-/object/list';return(await this[_0x46f77f(0x17e)]['post'](_0x3279cf,{'body':_0x44859c}))[_0x46f77f(0x1f6)]['objects'];}async[_0x23cbae(0x2d7)](_0x216bbc){const _0xa17e5e=_0x23cbae,_0x1394db=this[_0xa17e5e(0x3aa)]()+'/'+_0x216bbc[_0xa17e5e(0x203)]+_0xa17e5e(0x3a4)+_0x216bbc[_0xa17e5e(0x175)];await this[_0xa17e5e(0x17e)]['put'](_0x1394db,{'body':_0x216bbc});}async[_0x23cbae(0x303)](_0x327100){const _0x5d5d74=_0x23cbae,_0x2be7f7=this['_getAPIPrefixPath']()+'/'+_0x327100[_0x5d5d74(0x203)]+_0x5d5d74(0x3a4)+_0x327100[_0x5d5d74(0x175)]+_0x5d5d74(0x1fb);return(await this[_0x5d5d74(0x17e)]['post'](_0x2be7f7,{'body':_0x327100}))[_0x5d5d74(0x1f6)]['actions'];}async[_0x23cbae(0x251)](_0x11ebf8){const _0x2e2703=_0x23cbae,_0x1389d8=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x2e2703(0x17e)][_0x2e2703(0x1e5)](_0x1389d8,{'body':{'requests':_0x11ebf8}}))[_0x2e2703(0x1f6)][_0x2e2703(0x16d)];}async[_0x23cbae(0x1ca)](_0x532366){const _0x242a3b=_0x23cbae,_0x563956=this[_0x242a3b(0x3aa)]()+'/'+_0x532366[_0x242a3b(0x203)]+_0x242a3b(0x1de),_0x526cdb=await this['_HTTPService'][_0x242a3b(0x1e5)](_0x563956,{'body':_0x532366});return{'roles':_0x526cdb[_0x242a3b(0x1f6)][_0x242a3b(0x224)],'actions':_0x526cdb[_0x242a3b(0x1f6)][_0x242a3b(0x347)]};}async[_0x23cbae(0x391)](_0x5ca13f){const _0x5eb5a6=_0x23cbae,_0x4e3078=this['_getAPIPrefixPath']()+_0x5eb5a6(0x443);await this[_0x5eb5a6(0x17e)][_0x5eb5a6(0x1a8)](_0x4e3078,{'params':{'collaboratorID':_0x5ca13f[_0x5eb5a6(0x3ab)],'objectID':_0x5ca13f[_0x5eb5a6(0x175)],'unitID':_0x5ca13f[_0x5eb5a6(0x1a5)]}});}async['updateCollaborator'](_0x443b58){const _0x49666e=_0x23cbae,_0xc6d82=this[_0x49666e(0x3aa)]()+_0x49666e(0x443);await this[_0x49666e(0x17e)]['patch'](_0xc6d82,{'body':_0x443b58});}async[_0x23cbae(0x390)](_0x17daec){const _0x52562d=_0x23cbae,_0x25b126=this[_0x52562d(0x3aa)]()+_0x52562d(0x443);await this[_0x52562d(0x17e)][_0x52562d(0x1e5)](_0x25b126,{'body':_0x17daec});}async[_0x23cbae(0x13e)](_0x38aaca){const _0x33207d=_0x23cbae,_0xc75a89=this[_0x33207d(0x3aa)]()+'/collaborator';return(await this['_HTTPService'][_0x33207d(0x3fd)](_0xc75a89,{'params':{'objectID':_0x38aaca[_0x33207d(0x175)],'unitID':_0x38aaca[_0x33207d(0x1a5)]}}))[_0x33207d(0x1f6)][_0x33207d(0x27b)];}async[_0x23cbae(0x30a)](_0x2722be){const _0x2492f1=_0x23cbae,_0x3c9c6b=this[_0x2492f1(0x3aa)]()+_0x2492f1(0x443);await this[_0x2492f1(0x17e)][_0x2492f1(0x220)](_0x3c9c6b,{'body':_0x2722be});}};yt=Ho([ps(0x0,_0x57082d(_0x1b70f6)),ps(0x1,_0x57082d(_0x465ebb))],yt);var Vo=Object['defineProperty'],Fo=Object[_0x23cbae(0x36a)],Wo=(_0x57c3c0,_0x56f4f1,_0x4ec31b,_0x31c5b4)=>{const _0x512c97=_0x23cbae;for(var _0x5dd00f=_0x31c5b4>0x1?void 0x0:_0x31c5b4?Fo(_0x56f4f1,_0x4ec31b):_0x56f4f1,_0x5c3e80=_0x57c3c0[_0x512c97(0xed)]-0x1,_0x318e0e;_0x5c3e80>=0x0;_0x5c3e80--)(_0x318e0e=_0x57c3c0[_0x5c3e80])&&(_0x5dd00f=(_0x31c5b4?_0x318e0e(_0x56f4f1,_0x4ec31b,_0x5dd00f):_0x318e0e(_0x5dd00f))||_0x5dd00f);return _0x31c5b4&&_0x5dd00f&&Vo(_0x56f4f1,_0x4ec31b,_0x5dd00f),_0x5dd00f;},Go=(_0x398c7e,_0x3b2bb3)=>(_0x38f8cf,_0x4ff375)=>_0x3b2bb3(_0x38f8cf,_0x4ff375,_0x398c7e);let Qe=class{constructor(_0x13ca02){const _0x56316b=_0x23cbae;this[_0x56316b(0x438)]=_0x13ca02,this['_initRequestHeader']();}[_0x23cbae(0x282)](){const _0x462d92=_0x23cbae;this[_0x462d92(0x438)]['registerHTTPInterceptor']({'interceptor':(_0x3f14b7,_0xc7b55)=>{const _0x2c700f=_0x462d92,_0x2e90f7=_0x3f14b7['headers'],_0x414103=_0xa572df();return _0x414103&&_0x2e90f7['set'](_0x2c700f(0x264),_0x414103),_0xc7b55(_0x3f14b7);}});}};Qe=Wo([Go(0x0,_0x57082d(_0x1b70f6))],Qe);var Yo=Object['defineProperty'],Ko=Object[_0x23cbae(0x36a)],Xo=(_0x59e889,_0xb6fb08,_0x513fee,_0x1707e2)=>{for(var _0xeda35d=_0x1707e2>0x1?void 0x0:_0x1707e2?Ko(_0xb6fb08,_0x513fee):_0xb6fb08,_0x417771=_0x59e889['length']-0x1,_0x561b31;_0x417771>=0x0;_0x417771--)(_0x561b31=_0x59e889[_0x417771])&&(_0xeda35d=(_0x1707e2?_0x561b31(_0xb6fb08,_0x513fee,_0xeda35d):_0x561b31(_0xeda35d))||_0xeda35d);return _0x1707e2&&_0xeda35d&&Yo(_0xb6fb08,_0x513fee,_0xeda35d),_0xeda35d;},pt=(_0x41c5e4,_0x445b0c)=>(_0x3964ea,_0x567061)=>_0x445b0c(_0x3964ea,_0x567061,_0x41c5e4);const qo=[_0x23cbae(0x3bf),_0x23cbae(0xd9),'image/jpg',_0x23cbae(0x24b),_0x23cbae(0x3cf)],Jo=0x5*0x400*0x400,zo=_0x23cbae(0x1c9),Zo=_0x23cbae(0x33d),Qo=_0x23cbae(0x233),ea=_0x23cbae(0x182);let Ut=class{constructor(_0x486ce6,_0x575590,_0x4e28f2){const _0x4fb9de=_0x23cbae;l(this,'_waitCount',0x0),l(this,_0x4fb9de(0x413),new _0x4061c1()),l(this,_0x4fb9de(0x194),this[_0x4fb9de(0x413)]),l(this,_0x4fb9de(0x219),new Map()),(this[_0x4fb9de(0x438)]=_0x486ce6,this[_0x4fb9de(0x44c)]=_0x575590,this[_0x4fb9de(0x2ce)]=_0x4e28f2);}[_0x23cbae(0x190)](_0x179160){const _0x815f4c=_0x23cbae;this[_0x815f4c(0x28d)]=_0x179160,this[_0x815f4c(0x413)]['next'](_0x179160);}['getImageSourceCache'](_0xd15314,_0x5b6c58){const _0x991a6c=_0x23cbae;if(_0x5b6c58===_0xa7f0d8[_0x991a6c(0x2ee)]){const _0x358356=new Image();return _0x358356['src']=_0xd15314,_0x358356;}return this[_0x991a6c(0x219)]['get'](_0xd15314);}['addImageSourceCache'](_0x24ac98,_0x31cb7a,_0x4614a6){const _0x42635f=_0x23cbae;_0x31cb7a===_0xa7f0d8[_0x42635f(0x2ee)]||_0x4614a6==null||this['_imageSourceCache'][_0x42635f(0x111)](_0x24ac98,_0x4614a6);}async[_0x23cbae(0x284)](_0xd1d392){const _0x1727ff=_0x23cbae;try{const _0x5c1986=this[_0x1727ff(0x299)](this['_getSignURL'](),''+_0xd1d392),_0xf9313c=(await this[_0x1727ff(0x438)][_0x1727ff(0x3fd)](_0x5c1986))[_0x1727ff(0x1f6)];if(_0xf9313c[_0x1727ff(0x43f)]&&_0xf9313c[_0x1727ff(0x43f)]['code']===js['OK']){const _0x241e47=new URL(_0xf9313c['url'],this[_0x1727ff(0x38f)]())['toString']();return Promise[_0x1727ff(0x3bd)](_0x241e47);}return Promise['reject'](_0xf9313c[_0x1727ff(0x43f)]);}catch(_0x1213b9){return Promise[_0x1727ff(0x10e)](_0x1213b9);}}async[_0x23cbae(0x294)](_0xd788a6){const _0x31b980=_0x23cbae;let _0x5df742='';if(!qo[_0x31b980(0x27d)](_0xd788a6[_0x31b980(0x2f1)]))return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x3a9)]));if(_0xd788a6[_0x31b980(0x11b)]>Jo)return this[_0x31b980(0x17f)](),Promise['reject'](new Error(_0x497ab7[_0x31b980(0x37c)]));try{const _0x38558b=new FormData();_0x38558b['append'](_0x31b980(0x365),_0xd788a6);const _0xd31325=this[_0x31b980(0x2ce)][_0x31b980(0x419)](),_0x506068=_0xd31325==null?void 0x0:_0xd31325[_0x31b980(0x183)]();if(!_0x506068)throw new Error(_0x31b980(0x3ca));const _0x43bd9c=this['_getUploadFileURL']()+_0x31b980(0x3e5)+_0xd788a6[_0x31b980(0x11b)]['toString']()+_0x31b980(0x30f)+xs[_0x31b980(0x1b1)]+_0x31b980(0x20e)+encodeURIComponent(_0x506068),_0x9b5981=await(await fetch(_0x43bd9c,{'method':_0x31b980(0x364),'body':_0x38558b}))[_0x31b980(0x1ec)]();if(typeof _0x9b5981[_0x31b980(0x1fe)]!=_0x31b980(0x227))return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x114)]));_0x5df742=_0x9b5981[_0x31b980(0x1fe)];}catch{return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x114)]));}return new Promise((_0x539f83,_0x28b635)=>{const _0x19392e=_0x31b980,_0x3602d2=new FileReader();_0x3602d2[_0x19392e(0x309)](_0xd788a6),_0x3602d2['onload']=_0x34ea36=>{const _0x13a3a1=_0x19392e;var _0x1132c2;const _0x5c02f8=(_0x1132c2=_0x34ea36['target'])==null?void 0x0:_0x1132c2[_0x13a3a1(0x315)];if(_0x5c02f8==null){this[_0x13a3a1(0x17f)](),_0x28b635(new Error(_0x497ab7[_0x13a3a1(0x114)]));return;}const _0x382953=_0x2d9f70[_0x13a3a1(0x259)](0x6);_0x539f83({'imageId':_0x382953,'imageSourceType':_0xa7f0d8[_0x13a3a1(0x1c7)],'source':_0x5df742,'base64Cache':_0x5c02f8,'status':_0x497ab7[_0x13a3a1(0x339)]}),this[_0x13a3a1(0x17f)]();};});}['_getUploadFileURL'](){const _0x5586f0=_0x23cbae;var _0x496b9f,_0x5a33bb;const _0x45e4d0=this['_configService'][_0x5586f0(0x266)](zo),_0x2e2a00=this[_0x5586f0(0x44c)][_0x5586f0(0x266)]($);return(_0x5a33bb=(_0x496b9f=_0x2e2a00==null?void 0x0:_0x2e2a00[_0x5586f0(0x19e)])!=null?_0x496b9f:_0x45e4d0)!=null?_0x5a33bb:Zo;}[_0x23cbae(0x3f5)](){const _0x4044de=_0x23cbae;var _0xa8e1ac,_0x144147;const _0x13c872=this[_0x4044de(0x44c)][_0x4044de(0x266)](Qo),_0x1b4361=this[_0x4044de(0x44c)][_0x4044de(0x266)]($);return(_0x144147=(_0xa8e1ac=_0x1b4361==null?void 0x0:_0x1b4361['signUrlServerUrl'])!=null?_0xa8e1ac:_0x13c872)!=null?_0x144147:ea;}['_getDownloadEndpointURL'](){const _0x4e8904=_0x23cbae;var _0x21886f;const _0xda6f75=this[_0x4e8904(0x44c)][_0x4e8904(0x266)]($);return(_0x21886f=_0xda6f75==null?void 0x0:_0xda6f75['downloadEndpointUrl'])!=null?_0x21886f:location[_0x4e8904(0x2fd)];}['_replaceFileID'](_0x490d13,_0x553e26){const _0x1411b1=_0x23cbae;return _0x490d13[_0x1411b1(0x35d)](_0x1411b1(0x24a),_0x553e26);}['_decreaseWaiting'](){const _0x1b1816=_0x23cbae;this['_waitCount']-=0x1,this['_change$'][_0x1b1816(0x131)](this['_waitCount']);}};Ut=Xo([pt(0x0,_0x57082d(_0x1b70f6)),pt(0x1,_0x465ebb),pt(0x2,_0x57082d(_0xf0f4c1))],Ut);var ta=Object[_0x23cbae(0xe2)],sa=Object[_0x23cbae(0x36a)],ia=(_0x323770,_0x52df9a,_0x4737d8,_0x1d1f62)=>{for(var _0x4279d0=_0x1d1f62>0x1?void 0x0:_0x1d1f62?sa(_0x52df9a,_0x4737d8):_0x52df9a,_0x381ee9=_0x323770['length']-0x1,_0x5a6f1e;_0x381ee9>=0x0;_0x381ee9--)(_0x5a6f1e=_0x323770[_0x381ee9])&&(_0x4279d0=(_0x1d1f62?_0x5a6f1e(_0x52df9a,_0x4737d8,_0x4279d0):_0x5a6f1e(_0x4279d0))||_0x4279d0);return _0x1d1f62&&_0x4279d0&&ta(_0x52df9a,_0x4737d8,_0x4279d0),_0x4279d0;},ye=(_0x232952,_0x283104)=>(_0x172f4a,_0xa4b3c0)=>_0x283104(_0x172f4a,_0xa4b3c0,_0x232952);let et=class extends _0x3a262a{constructor(_0x1ba951,_0x2d71d7,_0xb2a78,_0x383263,_0xb95bc4){const _0x272021=_0x23cbae;super(),this[_0x272021(0x171)]=_0x1ba951,this[_0x272021(0x2ce)]=_0x2d71d7,this[_0x272021(0x34e)]=_0xb2a78,this['_collaborationSessionService']=_0x383263,this['_localeService']=_0xb95bc4,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x23cbae(0x1a7)](){const _0x450fef=_0x23cbae,_0x63163b=async _0x2c207a=>{const _0x36ee2a=_0x3f49;(await this[_0x36ee2a(0x3ff)][_0x36ee2a(0x236)](_0x2c207a))[_0x36ee2a(0x29c)]['pipe'](_0x4eb371(_0x3dfb77=>_0x3dfb77['eventID']===_0x44cf74[_0x36ee2a(0x34f)]),_0x5198ca(this[_0x36ee2a(0x16f)]))[_0x36ee2a(0x334)](_0x58c80a=>{const _0x4abe7c=_0x36ee2a,_0x3fb1c=_0x58c80a,{reason:_0xcc6081}=_0x3fb1c[_0x4abe7c(0x32d)];this['_injector'][_0x4abe7c(0x3fd)](_0x2493e9)[_0x4abe7c(0x2bb)]({'type':_0x135398[_0x4abe7c(0x33b)],'content':this[_0x4abe7c(0x151)]['t'](_0x4abe7c(0x2b8))+'('+_0xcc6081+')'}),this[_0x4abe7c(0x34e)][_0x4abe7c(0x12b)](new _0x41b6ca(_0x2c207a)['id'],!0x1),this[_0x4abe7c(0x3ff)][_0x4abe7c(0xff)](_0x2c207a);});};_0x395f71(this[_0x450fef(0x2ce)][_0x450fef(0x1a1)](_0x2eb231['UNIVER_SHEET']),this['_univerInstanceService'][_0x450fef(0x1a1)](_0x2eb231[_0x450fef(0x12f)]))[_0x450fef(0x18c)](_0x57b187(_0x34d194=>_0x34d194[_0x450fef(0x183)]()),_0x4eb371(_0x31dbdf=>!_0x45fcbc(_0x31dbdf)),_0x5198ca(this[_0x450fef(0x16f)]))[_0x450fef(0x334)](_0x5a6eca=>{_0x63163b(_0x5a6eca);});}[_0x23cbae(0x31c)](){const _0x2dc340=_0x23cbae,_0x4d5a64=async _0x1bf1a1=>{const _0x50a982=_0x3f49;(await this[_0x50a982(0x3ff)]['requireSession'](_0x1bf1a1))[_0x50a982(0x29c)][_0x50a982(0x18c)](_0x4eb371(_0x9b007f=>_0x9b007f[_0x50a982(0x3f0)]===_0x44cf74[_0x50a982(0x436)]),_0x5198ca(this[_0x50a982(0x16f)]))[_0x50a982(0x334)](_0x1f150d=>{const _0x10b6a9=_0x50a982,_0x2723f2=_0x1f150d,{objectId:_0x1006f3}=_0x2723f2[_0x10b6a9(0x32d)],_0x225a9f=this[_0x10b6a9(0x171)][_0x10b6a9(0x3fd)](_0x204f73);_0x1006f3===_0x1bf1a1?_0x225a9f[_0x10b6a9(0x1ef)](_0x1bf1a1):_0x225a9f[_0x10b6a9(0xf9)](_0x1bf1a1,_0x1006f3);});};_0x395f71(this[_0x2dc340(0x2ce)]['getTypeOfUnitAdded$'](_0x2eb231[_0x2dc340(0x34d)]),this[_0x2dc340(0x2ce)][_0x2dc340(0x1a1)](_0x2eb231[_0x2dc340(0x12f)]))[_0x2dc340(0x18c)](_0x57b187(_0xcdaca5=>_0xcdaca5[_0x2dc340(0x183)]()),_0x4eb371(_0x44f570=>!_0x45fcbc(_0x44f570)),_0x5198ca(this[_0x2dc340(0x16f)]))[_0x2dc340(0x334)](_0x5713e9=>{_0x4d5a64(_0x5713e9);});}};et=ia([ye(0x0,_0x57082d(_0x5aca14)),ye(0x1,_0xf0f4c1),ye(0x2,_0x3b2db3),ye(0x3,_0x57082d(he)),ye(0x4,_0x57082d(_0x1ba649))],et);var na=Object[_0x23cbae(0xe2)],ra=Object[_0x23cbae(0x36a)],oa=(_0x1ea4b0,_0x115ffc,_0x225eee,_0xf56e8e)=>{const _0x54f63e=_0x23cbae;for(var _0x3e1e2a=_0xf56e8e>0x1?void 0x0:_0xf56e8e?ra(_0x115ffc,_0x225eee):_0x115ffc,_0x91c92=_0x1ea4b0[_0x54f63e(0xed)]-0x1,_0x445bab;_0x91c92>=0x0;_0x91c92--)(_0x445bab=_0x1ea4b0[_0x91c92])&&(_0x3e1e2a=(_0xf56e8e?_0x445bab(_0x115ffc,_0x225eee,_0x3e1e2a):_0x445bab(_0x3e1e2a))||_0x3e1e2a);return _0xf56e8e&&_0x3e1e2a&&na(_0x115ffc,_0x225eee,_0x3e1e2a),_0x3e1e2a;},vs=(_0xb7e732,_0x39d803)=>(_0x461761,_0x1b4b22)=>_0x39d803(_0x461761,_0x1b4b22,_0xb7e732);let Nt=class{constructor(_0x34898e,_0x44528b){const _0x36e2a7=_0x23cbae;this['_configService']=_0x34898e,this[_0x36e2a7(0x438)]=_0x44528b;}async[_0x23cbae(0x286)](_0x50c598,_0x106e53){const _0x1cb2c7=_0x23cbae;var _0x200ebb;const {unitID:_0x38dc75,type:_0x2a4a13,revision:_0x16115f=0x0}=_0x106e53,_0xf256a2=this[_0x1cb2c7(0x2d4)]()+'/'+_0x2a4a13+'/unit/'+_0x38dc75+_0x1cb2c7(0x16a)+_0x16115f,_0x7751fa=(await this[_0x1cb2c7(0x438)][_0x1cb2c7(0x3fd)](_0xf256a2))[_0x1cb2c7(0x1f6)],_0x249995=(_0x200ebb=_0x7751fa[_0x1cb2c7(0x185)])==null?void 0x0:_0x200ebb['workbook'];if(_0x249995){const _0x35b494=_0x249995==null?void 0x0:_0x249995[_0x1cb2c7(0x1bc)],_0x296fe4=_0x510326[_0x1cb2c7(0x283)](_0x45b123(_0x35b494));_0x249995[_0x1cb2c7(0x1bc)]=_0x296fe4,Object[_0x1cb2c7(0x1d5)](_0x249995['sheets'])[_0x1cb2c7(0x273)](([,_0x326581])=>{const _0xe3077b=_0x1cb2c7,_0x3f5142=_0x326581[_0xe3077b(0x1bc)],_0x265086=_0x510326[_0xe3077b(0x283)](_0x45b123(_0x3f5142));_0x326581[_0xe3077b(0x1bc)]=_0x265086;});}return _0x7751fa;}async['getSheetBlock'](_0x5d73f0,_0x1aae06){const _0x1e7ab4=_0x23cbae,{unitID:_0x1a865c,type:_0x280be7,blockID:_0x532427}=_0x1aae06,_0xce333d=this[_0x1e7ab4(0x215)]()+'/'+_0x280be7+_0x1e7ab4(0xdf)+_0x1a865c+'/block/'+_0x532427;return(await this[_0x1e7ab4(0x438)]['get'](_0xce333d))['body'];}async[_0x23cbae(0x1d1)](_0x21bba2,_0x43fadb){const _0xcbb415=_0x23cbae,{unitID:_0x16b724,type:_0x48a1eb,blockID:_0x26fc25}=_0x43fadb,_0x8c2d4b=this[_0xcbb415(0x215)]()+_0xcbb415(0x3f2)+_0x48a1eb+_0xcbb415(0xdf)+_0x16b724+'/block/'+_0x26fc25;return(await this[_0xcbb415(0x438)]['get'](_0x8c2d4b))[_0xcbb415(0x1f6)];}async[_0x23cbae(0x164)](_0x326e4d,_0x1204bc){const _0x53671a=_0x23cbae,{unitID:_0x9817bc,type:_0x175317,from:_0x2dc69c,to:_0x371492}=_0x1204bc,_0x196011=this[_0x53671a(0x215)]()+'/'+_0x175317+_0x53671a(0xdf)+_0x9817bc+'/fetchmissing?from='+_0x2dc69c+_0x53671a(0x2b1)+_0x371492;return(await this[_0x53671a(0x438)][_0x53671a(0x3fd)](_0x196011))[_0x53671a(0x1f6)];}['_getSnapshotAPIPrefix'](){const _0x3acf39=_0x23cbae;var _0x310be5;return(_0x310be5=this[_0x3acf39(0x44c)][_0x3acf39(0x266)](vn))!=null?_0x310be5:this['_getAPIPrefix']();}[_0x23cbae(0x215)](){const _0x224cdf=_0x23cbae;var _0x189709,_0x32841c;const _0x4a9f0f=this['_configService'][_0x224cdf(0x266)](Sn),_0x17cc43=this[_0x224cdf(0x44c)]['getConfig']($);return(_0x32841c=(_0x189709=_0x17cc43==null?void 0x0:_0x17cc43['snapshotServerUrl'])!=null?_0x189709:_0x4a9f0f)!=null?_0x32841c:pn;}async[_0x23cbae(0x1b2)](_0x27a803,_0x1a2995){const _0x4a7e67=_0x23cbae,_0x1c97a2='/universer-api/snapshot/'+_0x1a2995['type']+_0x4a7e67(0xdf)+_0x1a2995[_0x4a7e67(0x1a5)]+_0x4a7e67(0x402);return(await this['_httpService']['get'](_0x1c97a2,{'params':{'resourceId':JSON[_0x4a7e67(0x18a)](_0x1a2995[_0x4a7e67(0x13f)])}}))[_0x4a7e67(0x1f6)];}['saveSnapshot'](){const _0x54ea66=_0x23cbae;throw new Error(_0x54ea66(0xda));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x23cbae(0x26f)](){const _0x374575=_0x23cbae;throw new Error(_0x374575(0xda));}[_0x23cbae(0x1c8)](){const _0x98173f=_0x23cbae;throw new Error(_0x98173f(0xda));}[_0x23cbae(0x22c)](){const _0x2f2f4c=_0x23cbae;throw new Error(_0x2f2f4c(0xda));}};Nt=oa([vs(0x0,_0x465ebb),vs(0x1,_0x57082d(_0x1b70f6))],Nt);var aa=Object[_0x23cbae(0xe2)],ca=Object[_0x23cbae(0x36a)],ha=(_0x4e5271,_0x3dbd1c,_0x593e3f,_0x2e561f)=>{const _0x38a29c=_0x23cbae;for(var _0x139603=_0x2e561f>0x1?void 0x0:_0x2e561f?ca(_0x3dbd1c,_0x593e3f):_0x3dbd1c,_0x47226c=_0x4e5271[_0x38a29c(0xed)]-0x1,_0x245773;_0x47226c>=0x0;_0x47226c--)(_0x245773=_0x4e5271[_0x47226c])&&(_0x139603=(_0x2e561f?_0x245773(_0x3dbd1c,_0x593e3f,_0x139603):_0x245773(_0x139603))||_0x139603);return _0x2e561f&&_0x139603&&aa(_0x3dbd1c,_0x593e3f,_0x139603),_0x139603;},Ue=(_0x64592e,_0x15bfdb)=>(_0x1a8e85,_0x4fae0a)=>_0x15bfdb(_0x1a8e85,_0x4fae0a,_0x64592e);let Mt=class extends _0x43badd{constructor(_0x41ea06,_0x2c1c76,_0x5eba37,_0x457ccf,_0x2bf891){const _0x430c54=_0x23cbae;super(_0x41ea06,_0x2c1c76,_0x5eba37),this[_0x430c54(0x2f5)]=_0x457ccf,this[_0x430c54(0x135)]=_0x2bf891;}['transformUndoRedo'](_0x34c5a0,_0x25fa2b){const _0x44dddf=_0x23cbae,_0x40fa17=this[_0x44dddf(0x249)](_0x34c5a0);if(_0x40fa17)try{const _0x1fffa1=this[_0x44dddf(0x3ae)](_0x40fa17,_0x25fa2b);this['_substituteUndoStack'](_0x34c5a0,_0x1fffa1);}catch(_0x553f69){this[_0x44dddf(0x135)]['error'](_0x44dddf(0x442),_0x553f69),this[_0x44dddf(0x1af)](_0x34c5a0);}const _0x433c4d=this['_getRedoStack'](_0x34c5a0);if(_0x433c4d)try{const _0x221894=this[_0x44dddf(0x3ae)](_0x433c4d,_0x25fa2b);this[_0x44dddf(0x2be)](_0x34c5a0,_0x221894);}catch(_0x58b69e){this[_0x44dddf(0x135)][_0x44dddf(0x43f)](_0x58b69e),this[_0x44dddf(0x322)](_0x34c5a0);}}[_0x23cbae(0x1af)](_0x586fb0){const _0x5ec2e4=_0x23cbae,_0x5a3f69=this['_getUndoStack'](_0x586fb0);_0x5a3f69&&(_0x5a3f69['length']=0x0,this[_0x5ec2e4(0x379)]());}[_0x23cbae(0x322)](_0x1d4180){const _0x5eec26=_0x23cbae,_0x5608fc=this[_0x5eec26(0x202)](_0x1d4180);_0x5608fc&&(_0x5608fc['length']=0x0,this[_0x5eec26(0x379)]());}[_0x23cbae(0x3ba)](_0xa24dcc,_0x2973ef){const _0x361002=_0x23cbae;this[_0x361002(0x29f)][_0x361002(0x111)](_0xa24dcc,_0x2973ef),this[_0x361002(0x379)]();}[_0x23cbae(0x2be)](_0x299d82,_0x7fdfcc){const _0x429def=_0x23cbae;this[_0x429def(0x3e7)][_0x429def(0x111)](_0x299d82,_0x7fdfcc),this[_0x429def(0x379)]();}['_transformStack'](_0x2244a2,_0x5bb8bc){const _0x26a753=_0x23cbae,_0x4b4991=[];let _0x2525e3=_0x5bb8bc,_0x138ca2=_0x5bb8bc;for(let _0x599dc7=_0x2244a2[_0x26a753(0xed)]-0x1;_0x599dc7>=0x0;_0x599dc7--){const {unitID:_0x36b1f7,undoMutations:_0x327396,redoMutations:_0x874cf4}=_0x2244a2[_0x599dc7],_0x3e37b9=this[_0x26a753(0x2f5)][_0x26a753(0x3cc)](_0x2525e3,_0x327396),_0x308a14=this[_0x26a753(0x2f5)][_0x26a753(0x3cc)](_0x138ca2,_0x874cf4);if(_0x4e72ac(_0x3e37b9)||_0x4e72ac(_0x308a14)){this[_0x26a753(0x135)][_0x26a753(0x43f)](_0x26a753(0x442),_0x26a753(0xf0),_0x3e37b9,_0x308a14);break;}_0x2525e3=_0x3e37b9[_0x26a753(0x2d5)],_0x138ca2=_0x308a14['c1Prime'],_0x4b4991[_0x26a753(0x12e)]({'unitID':_0x36b1f7,'undoMutations':_0x3e37b9['m2Prime'],'redoMutations':_0x308a14[_0x26a753(0x1b0)]});}return _0x4b4991['reverse']();}};Mt=ha([Ue(0x0,_0xf0f4c1),Ue(0x1,_0x2c218a),Ue(0x2,_0x35bd8b),Ue(0x3,_0x3ce5fa),Ue(0x4,_0x2ed9bc)],Mt);class la extends _0x3a262a{constructor(){const _0x5c5605=_0x23cbae;super(),l(this,'urlChange$'),this['urlChange$']=_0x19a309(window,_0x5c5605(0x253))['pipe'](_0x5b993c(this[_0x5c5605(0x16f)]),_0x153603(0x1),_0x483d69(void 0x0));}[_0x23cbae(0x2a6)](_0x88f50,_0x3babfd,_0x512199=!0x1){const _0x355167=_0x23cbae,_0x3740bc=new URL(window[_0x355167(0x3b2)][_0x355167(0x2a0)]);_0x3740bc['searchParams'][_0x355167(0x111)](_0x88f50,_0x3babfd),_0x512199?window[_0x355167(0x16b)][_0x355167(0x3fc)]('','',_0x3740bc[_0x355167(0x414)]()):window[_0x355167(0x16b)][_0x355167(0x326)]('','',_0x3740bc[_0x355167(0x414)]());}['removeParam'](_0x1f070b,_0x1b39bc=!0x1){const _0x9f2643=_0x23cbae,_0x1a8e8c=new URL(window[_0x9f2643(0x3b2)][_0x9f2643(0x2a0)]);_0x1a8e8c[_0x9f2643(0x2e5)][_0x9f2643(0x1a8)](_0x1f070b),_0x1b39bc?window[_0x9f2643(0x16b)][_0x9f2643(0x3fc)]('','',_0x1a8e8c[_0x9f2643(0x414)]()):window[_0x9f2643(0x16b)][_0x9f2643(0x326)]('','',_0x1a8e8c['toString']());}[_0x23cbae(0x323)](_0x48d2c0){const _0x197b86=_0x23cbae;var _0x6f51cd;return(_0x6f51cd=new URL(window[_0x197b86(0x3b2)][_0x197b86(0x2a0)])[_0x197b86(0x2e5)][_0x197b86(0x3fd)](_0x48d2c0))!=null?_0x6f51cd:void 0x0;}}var qs=Object[_0x23cbae(0xe2)],_a=Object[_0x23cbae(0x36a)],ua=(_0x4e5d3c,_0x1b67f7,_0x1d362f)=>_0x1b67f7 in _0x4e5d3c?qs(_0x4e5d3c,_0x1b67f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d362f}):_0x4e5d3c[_0x1b67f7]=_0x1d362f,da=(_0x453e21,_0x453967,_0x5e5ab7,_0x28eb7c)=>{const _0x5842ed=_0x23cbae;for(var _0x2d5656=_0x28eb7c>0x1?void 0x0:_0x28eb7c?_a(_0x453967,_0x5e5ab7):_0x453967,_0x521b62=_0x453e21[_0x5842ed(0xed)]-0x1,_0x3167ab;_0x521b62>=0x0;_0x521b62--)(_0x3167ab=_0x453e21[_0x521b62])&&(_0x2d5656=(_0x28eb7c?_0x3167ab(_0x453967,_0x5e5ab7,_0x2d5656):_0x3167ab(_0x2d5656))||_0x2d5656);return _0x28eb7c&&_0x2d5656&&qs(_0x453967,_0x5e5ab7,_0x2d5656),_0x2d5656;},Ve=(_0x5a8871,_0x367f71)=>(_0x42a918,_0x1e84a6)=>_0x367f71(_0x42a918,_0x1e84a6,_0x5a8871),fa=(_0x388d48,_0x249b1d,_0x392c0f)=>ua(_0x388d48,_0x249b1d+'',_0x392c0f);const ma=_0x23cbae(0xe6);let At=class extends _0x23b29f{constructor(_0x35ebf2=An,_0x616e,_0x3a58e3,_0x5f17b7,_0x2d1b8e){const _0x52b1c2=_0x23cbae;super(),this[_0x52b1c2(0x42d)]=_0x35ebf2,this[_0x52b1c2(0x135)]=_0x616e,this[_0x52b1c2(0x2f0)]=_0x3a58e3,this[_0x52b1c2(0x171)]=_0x5f17b7,this[_0x52b1c2(0x44c)]=_0x2d1b8e;const {..._0x390d37}=this[_0x52b1c2(0x42d)];this[_0x52b1c2(0x44c)]['setConfig']($,_0x390d37);}[_0x23cbae(0x38c)](){const _0x25e600=_0x23cbae;this['_registerDependencies'](),_0xb5fd96(this[_0x25e600(0x171)],[[ve],[Je],[et]]);}['onReady'](){const _0x20712b=_0x23cbae;_0xb5fd96(this[_0x20712b(0x171)],[[ze]]);}[_0x23cbae(0x30d)](){const _0xb72898=_0x23cbae;this[_0xb72898(0x3b7)]();}[_0x23cbae(0x28c)](){const _0x710dd4=_0x23cbae;var _0x3b752d,_0x420d09,_0x22cfc8,_0x6ad478;this[_0x710dd4(0x171)][_0x710dd4(0x15b)](_0x2b3c29)&&this[_0x710dd4(0x135)]['error'](_0x710dd4(0x327),_0x710dd4(0x2bc));let _0x3a3deb=[[_0x2b3c29,{'useClass':Mt}],[he],[Gt],[_0x1b70f6],[Xs,{'useClass':la}],[ce],[w],[_0x556be8],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[ks],[et],[Hs,{'useClass':(_0x420d09=(_0x3b752d=this[_0x710dd4(0x42d)])==null?void 0x0:_0x3b752d[_0x710dd4(0xf5)])!=null?_0x420d09:Ct}],[_0x58f9ac,{'useClass':_0x3fa144}],[_0x5f1087,{'useClass':Nt}],[_0x562510,{'useClass':yt}],[_0x50ad99,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x22cfc8=this['_config'])!=null&&_0x22cfc8[_0x710dd4(0x422)]&&_0x3a3deb[_0x710dd4(0x12e)]([tt,{'useClass':fr}]),_0x3a3deb=_0x542d4d(_0x3a3deb,(_0x6ad478=this[_0x710dd4(0x42d)])==null?void 0x0:_0x6ad478[_0x710dd4(0x35c)]),_0x3a3deb[_0x710dd4(0x273)](_0x2ce5e3=>this[_0x710dd4(0x171)][_0x710dd4(0x302)](_0x2ce5e3)),this['_initModules']();}[_0x23cbae(0x3b7)](){const _0x579bb2=_0x23cbae;this[_0x579bb2(0x165)](this['_renderManagerService']['registerRenderModule'](_0x2eb231[_0x579bb2(0x12f)],[wt])),this[_0x579bb2(0x165)](this[_0x579bb2(0x2f0)][_0x579bb2(0x1d7)](_0x2eb231[_0x579bb2(0x34d)],[Pt]));}['_initModules'](){const _0x5b18a6=_0x23cbae;var _0x45b600,_0x2a6b0a;this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](_0x1b70f6)[_0x5b18a6(0x3d7)]({'priority':0x14,'interceptor':_0xa20eb({'maxParallel':0x6})}),this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Qe),(_0x45b600=this[_0x5b18a6(0x42d)])!=null&&_0x45b600[_0x5b18a6(0x260)]||this[_0x5b18a6(0x171)]['get'](w)['disableLocalCache'](),(_0x2a6b0a=this[_0x5b18a6(0x42d)])!=null&&_0x2a6b0a['enableAuthServer']&&this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Ze),this[_0x5b18a6(0x171)]['get'](Le),this[_0x5b18a6(0x171)][_0x5b18a6(0x15b)](Me)&&this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Me);}};fa(At,'pluginName',ma),At=da([_0x375d34(_0x6a4b44),Ve(0x1,_0x2ed9bc),Ve(0x2,_0x241377),Ve(0x3,_0x57082d(_0x5aca14)),Ve(0x4,_0x465ebb)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,ks as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,Ls as HEARTBEAT_TIMEOUT_KEY,Hs as ICollaborationSocketService,Xs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
|
1
|
+
const _0xf86c5a=_0x556d;(function(_0x35c1c8,_0x23ba59){const _0x321330=_0x556d,_0x45256c=_0x35c1c8();while(!![]){try{const _0x42b8ef=parseInt(_0x321330(0x3a9))/0x1+parseInt(_0x321330(0x3b0))/0x2*(parseInt(_0x321330(0x359))/0x3)+-parseInt(_0x321330(0x385))/0x4*(parseInt(_0x321330(0x270))/0x5)+parseInt(_0x321330(0x336))/0x6*(-parseInt(_0x321330(0x309))/0x7)+parseInt(_0x321330(0x219))/0x8+-parseInt(_0x321330(0x302))/0x9+parseInt(_0x321330(0x38f))/0xa*(-parseInt(_0x321330(0x440))/0xb);if(_0x42b8ef===_0x23ba59)break;else _0x45256c['push'](_0x45256c['shift']());}catch(_0x1b19a3){_0x45256c['push'](_0x45256c['shift']());}}}(_0x4a74,0x406c8));var si=Object[_0xf86c5a(0xfa)],ii=(_0x3ce74f,_0x263298,_0x53bfb5)=>_0x263298 in _0x3ce74f?si(_0x3ce74f,_0x263298,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53bfb5}):_0x3ce74f[_0x263298]=_0x53bfb5,l=(_0x4e41f3,_0x48ec17,_0xb52893)=>ii(_0x4e41f3,typeof _0x48ec17!=_0xf86c5a(0x139)?_0x48ec17+'':_0x48ec17,_0xb52893);import{createIdentifier as _0x2452f4,Inject as _0x370f8c,Disposable as _0x4091c9,DisposableCollection as _0x58abb8,toDisposable as _0x441a7c,IConfigService as _0x5bc7de,ILogService as _0x593f47,UserManagerService as _0x323804,UniverInstanceType as _0x751d23,IUniverInstanceService as _0x5edd3d,LocaleService as _0x2673bf,Optional as _0x2fd677,RxDisposable as _0x27d368,Injector as _0x595e81,Tools as _0x48af3f,ILocalStorageService as _0x5d2dbc,Rectangle as _0x426027,ICommandService as _0x225d18,JSONX as _0x1d6dc3,CommandType as _0x19c41e,IPermissionService as _0x2f69f2,IUndoRedoService as _0x47fb5c,sequenceExecute as _0x240915,debounce as _0x3e7548,COLORS as _0x520aaf,ColorKit as _0x3afec0,ThemeService as _0x18d2f9,fromEventSubject as _0x51fef5,useDependency as _0x3333be,connectInjector as _0x52ea46,Workbook as _0x4e5c0a,isInternalEditorID as _0x39c20e,LocalUndoRedoService as _0x1ffda6,IContextService as _0x30c0a7,DependentOn as _0x2db17c,Plugin as _0x3e59a1,touchDependencies as _0x1509be,IAuthzIoService as _0x1ed2ef,mergeOverrideWithDependencies as _0x361c7d}from'@univerjs/core';import{Subject as _0x26d305,merge as _0x20e120,takeUntil as _0x14bd7d,BehaviorSubject as _0x52cf76,distinctUntilChanged as _0x30a823,fromEvent as _0x40fa2a,map as _0x40b982,shareReplay as _0x5da9ca,take as _0x1978dc,of as _0xfb2e43,debounceTime as _0x431a9a,filter as _0x5d44ea,switchMap as _0x4e5135,combineLatest as _0x382452,concatMap as _0x56297b,mapTo as _0x37c9c6}from'rxjs';import{map as _0x524dbf,take as _0x46d55b,filter as _0x152a98,delay as _0x48f138,throttleTime as _0x207ccd,takeUntil as _0x1c351c,switchMap as _0x570e86}from'rxjs/operators';import{MessageType as _0x424985,Tooltip as _0x27c9f9}from'@univerjs/design';import{IBeforeCloseService as _0x4cf196,IMessageService as _0x3aa03b,INotificationService as _0x7bfd4b,useObservable as _0xa83107,BuiltInUIPart as _0x1527eb,IUIPartsService as _0x53177d}from'@univerjs/ui';import{HTTPService as _0x172026,WebSocketService as _0x109644,MergeInterceptorFactory as _0x420762,HTTPRequest as _0x3fb75d,IHTTPImplementation as _0x3320f6,XHRHTTPImplementation as _0x41bcb6,ThresholdInterceptorFactory as _0x5a0116}from'@univerjs/network';import{CollaborationEvent as _0x455562,parseChangesetToProtocol as _0x6e367b,ISnapshotServerService as _0x39263e,isTransformMutationFailure as _0x3e8650,isTransformMutationsWithChangesetSuccess as _0x1a8f7d,ITransformService as _0x285caf,RevisionService as _0x4a413b,mapDocumentTypeToUniverType as _0xe9c082,isTransformChangesetsSuccess as _0x23b874,CompressMutationService as _0x4517e4,parseProtocolChangeset as _0x5d6100,SnapshotService as _0xbe9482,textEncoder as _0x30b993,b64DecodeUnicode as _0x5b5300,isTransformMutationsWithChangesetFailure as _0x2294b0,UniverCollaborationPlugin as _0x5d47ea}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x382310}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x192645,DocStateChangeManagerService as _0x4b5fef,NodePositionConvertToCursor as _0x3dcd36,isValidRectRange as _0x4fc5a4,NodePositionConvertToRectRange as _0x241d4c,TEXT_RANGE_LAYER_INDEX as _0x3650e3,SetDocZoomRatioOperation as _0xbd22e5}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x48f502,SetSelectionsOperation as _0x2113e6,InsertSheetMutation as _0x3bebbc,EmptyMutation as _0xbc7763,WorkbookEditablePermission as _0x365664,RefRangeService as _0x3cfe14,EffectRefRangId as _0x55e87d,handleIRemoveRow as _0x27df45,handleIRemoveCol as _0x4a0d66,handleMoveRange as _0x235916,handleInsertRow as _0x50739d,handleInsertRangeMoveRight as _0x387247,handleInsertRangeMoveDown as _0x5f07f7,handleInsertCol as _0x495110,handleDeleteRangeMoveUp as _0x4abff6,handleDeleteRangeMoveLeft as _0x59ccd8,runRefRangeMutations as _0x3a1e73,SetWorksheetActivateCommand as _0x558010}from'@univerjs/sheets';import{IRenderManagerService as _0x366dfc,Shape as _0x167643,Rect as _0x3fc8ee,getColor as _0x5856f4,RegularPolygon as _0x5f2724,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x233e1a,Vector2 as _0x5207df}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x4562e0,RichTextEditingMutation as _0x21b448,SetTextSelectionsOperation as _0x17ed1c,DocSkeletonManagerService as _0x3d6839}from'@univerjs/docs';import{ImageSourceType as _0x207292,ImageUploadStatusType as _0x4ab8b4,IImageIoService as _0x1886e9}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x131128,serializeRangeWithSheet as _0x57d531}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x40b0bd,VIEWPORT_KEY as _0x3de08b,getCoordByCell as _0x4bd0fa,getSheetObject as _0x4b698d,SheetPermissionInitController as _0x1b9bdb}from'@univerjs/sheets-ui';import _0x52a9d6,{forwardRef as _0x31fd8f,useRef as _0x782f32,createElement as _0x5d9ae6,useCallback as _0x4bc1b9}from'react';import{IRemoteInstanceService as _0x5e0f61}from'@univerjs/rpc';import{getAttachHeader as _0x5a86a8}from'@univerjs-pro/license';const Sn=_0xf86c5a(0x2ad),pn=_0xf86c5a(0x1aa),vn='SNAPSHOT_URL_KEY',La=_0xf86c5a(0x419),In=0x7d0,En=_0xf86c5a(0x1e1),Cn='ws://127.0.0.1:8000/universer-api/comb/connect',bn=_0xf86c5a(0x207),Tn=0x7530,$s=_0xf86c5a(0x458),js=0x4e20,Rn=0x4e20,On='RETRY_CONNECTING_MAX_COUNT',Dn=0x3,wn='LOCAL_CACHE_INTERVAL',Pn=0x3e8,yn=_0xf86c5a(0x180),Un=_0xf86c5a(0x423),Nn='LOGIN_URL_KEY',Mn='/universer-api/oidc/authpage';var xs=(_0x1b17fc=>(_0x1b17fc[_0x1b17fc['UNDEFINED']=0x0]=_0xf86c5a(0xff),_0x1b17fc[_0x1b17fc['OK']=0x1]='OK',_0x1b17fc[_0x1b17fc[_0xf86c5a(0x332)]=0x2]=_0xf86c5a(0x332),_0x1b17fc[_0x1b17fc['PERMISSION_DENIED']=0x3]=_0xf86c5a(0x3d8),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x149)]=0x4]=_0xf86c5a(0x149),_0x1b17fc[_0x1b17fc['UNAUTHENTICATED']=0x5]=_0xf86c5a(0x321),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x103)]=0x6]=_0xf86c5a(0x103),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x1b1)]=0x7]=_0xf86c5a(0x1b1),_0x1b17fc[_0x1b17fc['TOO_MANY_REQUESTS']=0x8]=_0xf86c5a(0x38c),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x24d)]=0x9]=_0xf86c5a(0x24d),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x298)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1b17fc[_0x1b17fc[_0xf86c5a(0x12b)]=0x1771]=_0xf86c5a(0x12b),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x35d)]=0x1772]=_0xf86c5a(0x35d),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x3ac)]=0x1773]=_0xf86c5a(0x3ac),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x30c)]=0x1b59]='APPLY_REJECT',_0x1b17fc[_0x1b17fc[_0xf86c5a(0x323)]=0x1b5a]=_0xf86c5a(0x323),_0x1b17fc[_0x1b17fc['APPLY_REVISION_CONFILICT']=0x1b5b]=_0xf86c5a(0x27f),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x18e)]=0x1b5c]=_0xf86c5a(0x18e),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x275)]=0x1b5d]=_0xf86c5a(0x275),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x262)]=0x1f41]=_0xf86c5a(0x262),_0x1b17fc[_0x1b17fc['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0xf86c5a(0x407),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x278)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1b17fc[_0x1b17fc['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0xf86c5a(0x3a4),_0x1b17fc[_0x1b17fc['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0xf86c5a(0x2e8),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x21c)]=0x232d]=_0xf86c5a(0x21c),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x414)]=0x2711]=_0xf86c5a(0x414),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x368)]=0x2712]=_0xf86c5a(0x368),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x20a)]=0x2713]=_0xf86c5a(0x20a),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x2c8)]=0x2714]=_0xf86c5a(0x2c8),_0x1b17fc[_0x1b17fc[_0xf86c5a(0x17d)]=-0x1]='UNRECOGNIZED',_0x1b17fc))(xs||{}),k=(_0xb2e5b1=>(_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x2ef)]=0x0]=_0xf86c5a(0x2ef),_0xb2e5b1[_0xb2e5b1['UNIVER_DOC']=0x1]='UNIVER_DOC',_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x1af)]=0x2]=_0xf86c5a(0x1af),_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x21f)]=0x3]=_0xf86c5a(0x21f),_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x36a)]=0x4]=_0xf86c5a(0x36a),_0xb2e5b1[_0xb2e5b1[_0xf86c5a(0x17d)]=-0x1]=_0xf86c5a(0x17d),_0xb2e5b1))(k||{}),I=(_0x2a6976=>(_0x2a6976[_0x2a6976[_0xf86c5a(0x294)]=0x0]=_0xf86c5a(0x294),_0x2a6976[_0x2a6976[_0xf86c5a(0x378)]=0x1]=_0xf86c5a(0x378),_0x2a6976[_0x2a6976[_0xf86c5a(0x1c5)]=0x2]=_0xf86c5a(0x1c5),_0x2a6976[_0x2a6976[_0xf86c5a(0x1a6)]=0x3]=_0xf86c5a(0x1a6),_0x2a6976[_0x2a6976[_0xf86c5a(0x3ad)]=0x4]='INGEST',_0x2a6976[_0x2a6976[_0xf86c5a(0x3cd)]=0x5]='HEARTBEAT',_0x2a6976[_0x2a6976[_0xf86c5a(0x362)]=0x6]=_0xf86c5a(0x362),_0x2a6976[_0x2a6976['UNRECOGNIZED']=-0x1]=_0xf86c5a(0x17d),_0x2a6976))(I||{}),Vt=(_0x18dc00=>(_0x18dc00[_0x18dc00[_0xf86c5a(0x19a)]=0x0]=_0xf86c5a(0x19a),_0x18dc00[_0x18dc00['OK']=0x1]='OK',_0x18dc00[_0x18dc00[_0xf86c5a(0x3d4)]=0x2]=_0xf86c5a(0x3d4),_0x18dc00[_0x18dc00['UNRECOGNIZED']=-0x1]=_0xf86c5a(0x17d),_0x18dc00))(Vt||{}),Hs=(_0x4263db=>(_0x4263db[_0x4263db['Undefined']=0x0]=_0xf86c5a(0x1dc),_0x4263db[_0x4263db['HttpImport']=0x1]=_0xf86c5a(0x39a),_0x4263db[_0x4263db[_0xf86c5a(0x1c4)]=0x2]=_0xf86c5a(0x1c4),_0x4263db[_0x4263db['UnitEmbedded']=0x3]=_0xf86c5a(0x267),_0x4263db[_0x4263db['UnitSnapshot']=0x4]=_0xf86c5a(0x416),_0x4263db[_0x4263db[_0xf86c5a(0x17d)]=-0x1]=_0xf86c5a(0x17d),_0x4263db))(Hs||{});const $=_0xf86c5a(0x147),An={};function Ln(_0x691c91){const _0x3c7378=_0xf86c5a;var _0x220c34,_0x5e0eb9,_0x4e5cac,_0xc8d981;const _0x23da9a=_0x691c91[_0x3c7378(0x129)],_0x546fd8=JSON[_0x3c7378(0x3c7)](_0x23da9a);switch(_0x546fd8[_0x3c7378(0x46b)]){case I[_0x3c7378(0x3cd)]:case I['HELLO']:{const _0x126c99=_0x546fd8[_0x3c7378(0x186)];return{..._0x546fd8,'data':_0x126c99,'cmd':_0x546fd8[_0x3c7378(0x46b)]};}case I[_0x3c7378(0x1c5)]:{const _0x499890=_0x546fd8[_0x3c7378(0x285)];return{..._0x546fd8,'data':_0x499890,'cmd':_0x546fd8[_0x3c7378(0x46b)]};}case I['RECV']:{const _0x595285=_0x546fd8[_0x3c7378(0x17c)];switch(_0x595285[_0x3c7378(0x26e)]){case _0x455562[_0x3c7378(0x3f1)]:return{..._0x546fd8,'data':{..._0x595285,'data':(_0x220c34=_0x595285['permissionRejEvent'])==null?void 0x0:_0x220c34['cs']},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['CHANGESET_ACK']:return{..._0x546fd8,'data':{..._0x595285,'data':(_0x5e0eb9=_0x595285[_0x3c7378(0x426)])==null?void 0x0:_0x5e0eb9['cs']},'cmd':_0x546fd8['cmd']};case _0x455562[_0x3c7378(0x305)]:return{..._0x546fd8,'data':{..._0x595285,'data':(_0x4e5cac=_0x595285[_0x3c7378(0x452)])==null?void 0x0:_0x4e5cac['cs']},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x339)]:return{..._0x546fd8,'data':{..._0x595285,'data':(_0xc8d981=_0x595285[_0x3c7378(0x2e2)])==null?void 0x0:_0xc8d981['cs']},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['UPDATE_CURSOR']:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x429)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['USERS_ENTER']:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x413)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x1f4)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0xe3)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x1b6)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x233)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x357)]:case _0x455562[_0x3c7378(0x2a2)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x35f)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x469)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x233)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x350)]:return{..._0x546fd8,'data':_0x595285,'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562['COMMENT_UPDATE']:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x44e)]},'cmd':_0x546fd8['cmd']};case _0x455562[_0x3c7378(0x33b)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x1ea)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};case _0x455562[_0x3c7378(0x12d)]:return{..._0x546fd8,'data':{..._0x595285,'data':_0x595285[_0x3c7378(0x21d)]},'cmd':_0x546fd8[_0x3c7378(0x46b)]};default:return _0x546fd8;}}default:return _0x546fd8;}}function _0x4a74(){const _0x334bb7=['[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_incrementRevisionNumber','391711ITnPHz','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','dispose','ENSURE_SNAPSHOT_EXECUTION','INGEST','Warning','baseRev','551086QQVxvf','event$','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','toggleOnline','\x20in\x20_schedule.','localeService','_onMessage','loadDoc','_members','_clearOtherTimers','src','m2Prime','collab-text-range-','getCurrentRevOfUnit','\x20-\x20','collabStatus.offline','_selfUnitIDs','mutations','_userManagerService','state','_config','_initCommandExecutedListener','routeKey','parse','_onUserLeave','list','_saveCache','_onRemoteChangeset','_getSaveTimeout','HEARTBEAT','getDeserializedSheetBlock','_initRequestHeader','saveSheetBlock','update','UPDATE_CURSOR','createSocket','FAIL','_waitForHeartbeatResponse','session.collaboration-timeout','_hovered','PERMISSION_DENIED','_removeCollabCursors','clearTimeout','fetchMiss','_colorAssignService','_timeoutTimer','getRangePointData','responseType','onPointerMove$','actions','transformIMECache','/universer-api/file/{fileID}/sign-url','[PendingState]:\x20received\x20acknowledgement.','_clearScheduledTask','clear','hidden','key','collabSubmitChangesetUrl','_changesetReqId','storage','loadOfflineData','addEventListener','_sheetSkeletonManagerService','catch','_retryConnectingTimer','PERMISSION_REJ','_transformUndoRedoStack','sessionStatus','socket\x20open.','originalMeta','_httpService','_initResize','none','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','encode','_collaborationSessionService','connection\x20error','_initStatusComponent','PENDING','bind','subscribeEvent','UNIVER_COLLABORATION_CLIENT_PLUGIN','roles','_clearTimeoutTimer','_startCollaboration','_onCombEvent','selection','LICENSE_MAX_UNITS_EXCEEDED','/-/object/-/batch_allowed','_startTelemetryCollaborationNewChangeset','requestParams','use','transformUndoRedo','reqId','collabStatus.notCollab','getValue','_renderManagerService','syncEditingCollabCursor','currentTheme$','joinEvent','YUUMI_UNABLE_LOAD_URL','_snapshotService','UnitSnapshot','_docStateChangeManagerService','collaboratorID','SEND_CHANGESET_TIMEOUT','_onRefRangeChange','href','[SyncedState]:\x20received\x20rejection.','_handleLeaveEvent','_startSheetCollabCursor','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','range','randomUUID','MoveRangeCommandId','/universer-api/comb','LIVESHARE_REQUEST_HOST','_cursor','csAckEvent','unitID','setConfig','updateCursorEvent','_socketMessageSubscription','code','slice','_listenToOnlineEvent','_cachedData','objectID','_getSendChangesetTimeout','_textBubble','image/gif','unknown','resend','_logService','beginPath','column','_scheduleCollaborationTimeoutTimer','loadSheet','_handler','onSendChangeset','drawWith','equals','onTransformIME','JOINING','854612aHvZcR','_labelPosition','purple300','#fff','encodeURIComponent','/object','labelPosition','_onConflict','concat','contains','_onUserJoin','Error','_change$','getCollabCursors$','commentUpdateEvent','_createHandler','patch','#FFF','newCsEvent','isArray','onMissingChangesets','_scheduleSaving','_commandService','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HEARTBEAT_TIMEOUT','target','collaboration.single-unit.warning','onReady','_socket','_socketService','createInstance','evenodd','_stopTelemetryCollaborationNewChangeset','_collaborationPaused','auth.needGotoLoginAlert','_saveTaskMap','[OfflineState]:\x20received\x20acknowledgement.','_getUploadFileURL','onlineStatus','result','entries','LIVESHARE_TERMINATE','size','cmd','leaveEvent','children','createElement','listCollaborators','_render','_tryEnsureSocket','fetchThroughInterceptors','onRemoteAck','_getAnchorBounding','_draw','enableOfflineEditing','_updateSubUnitFromURLParams','_ws','ERROR_IMAGE_TYPE','prototype','resourceIDs','_substituteRedoStack','_getCurrentRevision','rgba(255,\x20255,\x20255,\x200.01)','sessionStatus$','currentColor','getUnitStatus$','visibilityState','defineProperty','transformSelections','_localStorageService','_loadDoc','confirm','UNDEFINED','send','onStateChange','_handleHover','ALREADY_EXISTS','propertyIsEnumerable','_urlService','push','delete','MUTATION','history','onlyLocal','makeDirty','text','RemoveRowCommandId','_sendHeartbeatTimer','_shapes','\x0aCurrent:\x20','_transformStack','_getAPIPrefix','/collaborator','getSheetBlock','SYNCED','roomMembers','_setupBeforeClosingHandler','_clearRedo','values','/object/','url','close','addObjects','transformMutation','name','AWAITING','_uiPartsService','_messageService','offline','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','displayName','saveSnapshot','_socketReady','getVpScrollXYInfoByPosToVp','data','setWaitCount','SNAPSHOT_INVALID_SNAPSHOT','_createSocket','SHOULD_CLOSE_CONN','_lockTransition','_submitChangeset','/allowed','_disabled','clipPath','current','resize','withCredentials','message$','image/bmp','_createInitialState','symbol','isPermissionRej','icon','fillRule','requireSession','_updateStatus','_permissionService','defs','[CollaborationState]:\x20apply\x20error!','[OfflineState]:\x20received\x20rejection.','removeParam','_send','getSheetBySheetId','on-line-single_clip0_910_349','collaboration-client.config','_shouldReportTelemetry','NOT_FOUND','object','create','AWAITING_WITH_PENDING','_hideTimer','_roomMembers$','enableSingleActiveInstanceLock','_replayCachedMutations','_listenToOfflineEvent','onStarting','_getUndoStack','compose','colorChannel1','ERROR_EXCEED_SIZE','getSkeleton','BASE64','getUnitType','_onRemoteRejected','_transitionLocked','measureText','_status$','closeSession','then','0\x200\x2016\x2016','moveTo','onCommentUpdate','COMPRESS_MUTATION_APPLY','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','popstate','collaboration.closeRoom','_joinRoom','cursorInfo','_unitStatus','_sheetTransformSelectionsService','fill','...','stopTime','/block/','translate(.97)','[FetchMissState]','_notificationService','_singleActiveUnitService','_lastPointer','replace','get','_registerRenderDependencies','disposeWithMe','_tryReconnect','find','font','_undoRedoService','collaMsg','UNRECOGNIZED','snapshot','deepClone','COLLAB_SUBMIT_CHANGESET_URL','activeSheet$','/resources','url(#$1','_refreshCollabCursors','updateMember','infoRsp','image/jpg','docStateChange$','_syncEditingCollabCursorService','downloadEndpointUrl','/rev/','pushState','_state$','APPLY_PERMISSION_DENIED','init','path','getMember','memberID','triggerDblclick','_transformUndoredo','session','NO_OTHER_CLIENTS_EDITING','signUrlServerUrl','_online','COMMENT_UPDATE','UNKNOWN_CODE','_telemetryInfo','_scheduleHeartbeat','onRemoteChangeset','?url=','searchParams','getUndoRedoMutationParamsCache','_toggleOffline','_getLoginPath','_updateURLWithCurrentState','enableLocalCache','Error\x20on\x20receiving\x20event','LEAVE','getCurrentUser','_collabCursorController','_decreaseWaiting','/universer-api/snapshot','string','saveOfflineData','function','_getAPIPrefixPath','UNIVER_SHEET','OTHER_CLIENTS_EDITING','INVALID_ARGUMENT','[UniverCollaborationClientPlugin]','verdancy600','_docTransformSelectionsService','executeCommand','LIVESHARE_NEW_HOST','[DataLoaderController]','failed\x20to\x20apply\x20missed\x20changesets!','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','COMPRESS_MUTATION_SEND','OnLineSingle','getOwnPropertySymbols','collabCursorState$','roomInfos','getConfig','_cursorShapes','setParam','_transformRemoteChangesetByIMECache','subscribe','HttpExport','JOIN','_getSheetObject','_http','_applyRemoteChangeset','_showConflictNotification','univer-pro.collaboration-client-socket-service','_acknowledgedAwaitingChangeset','row','_sessions','call','univer-online-status','SUBMIT_CHANGESET','/universer-api/snapshot/','_disableEditing','[OfflineState]:\x20received\x20changeset.','CONFLICT','_cursors','startColumn','post','_throwTelemetryCollaborationNewChangeset','changesets','_removeClearOtherTimer','_registerDependencies','Undefined','c2Prime','height','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','allowed','COLLAB_WEB_SOCKET_URL','saveImage','_drawAnchor','members','off-line-single_clip0_910_343','_instanceService','transformMutationsWithChangeset','_range','add','updatePermissionObjEvent','isEditing','whenReady','onTransformSelections','exhaustSavingTask','reverse','conflict.content','/universer-api/authz','_getSignURL','save','USERS_LEAVE','has','getTypeOfUnitDisposed$','_clearCollaborationTimeoutTimer','_localeService','_sendingTimer','InsertRangeMoveRightCommandId','copyFileMeta','sheets','objects','submit\x20changeset\x20error!','_docSyncEditingCollabCursorService','_collabCursorState$','selections','toString','getWorkbookSelections','getActiveSheet','_scheduleTimestamp','with','HEARTBEAT_INTERVAL','OffLineSingle','top','YUUMI_RATE_OVER_LIMIT','[CollaborationSession]','_state','collabStatus.synced','body','_updateState','[CollaborationSessionService]','_event$','location','_getMergeRange','FileId','ACTIVE_UNIT_EVENT_CHANNEL','_changesetSessionId','status$','getCurrent','2987424GgZtis','startsWith','_telemetryService','LICENSE_DISTRO_REJECTED','shouldCloseConn','setTimeout','UNIVER_SLIDE','capture','_getScale','getTime','registerComponent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','blue400','conflict.title','_context','roomMembers$','_transformIMECache','_onFetchMissResult','_injector','toggleOffline','transformRemoteChangeset','collabStatus.syncing','fillText','_candidateSocket','_imageSourceCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','liveShareNewHost','permission.title','_transformService','gold400','disableLocalCache','setInterval','NOT_COLLAB','enableAuthServer','getUnhiddenWorksheets','socket$','className','getUnitId','next','_anchor','apply','_scene','_beforeCloseService','c1Prime','_compressMutationService','type','_commentService','div','getImage','unit','_syncEditingCollabCursor','USERS_ENTER','COMPLETION_FINISHED','replaceState','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_initEventListeners','_initMergeInterceptor','hasOwnProperty','_type','black','UUID','_onCursorUpdate','collaborators','extend','setCurrentUser','_assignedColors','_awaitingChangeset','findNodePositionByCharIndex','unitId','listRoles','registerHTTPInterceptor','_refRangeService','onTransformChange$','CONNECTOR_DATA_TOO_LARGE','getFocusedUnit','_colorIndex','show','_heartbeatTimer','UnitEmbedded','pipe','_handleJoinEvent','_pendingMutations','headers','forEach','unsubscribe','eventID','_unlockTransition','10gRSGLX','_sendHeartbeat','_schedule','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','jiqing500','APPLY_DUPLICATED','_updateCollabCursors','getCollabEntity$','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','addObject','file','rev','_fetchMissChangesets','doc.mutation.rich-text-editing','DeleteRangeMoveUpCommandId','APPLY_REVISION_CONFILICT','json','_initModules','xlink:href','_backgroundColor','_HTTPService','joinRsp','_handleHeartbeatEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','_collaborationController','_initStatusListener','stringify','length','title','error$','IDLE','visibilitychange','endRow','_session','univer-online-status-icon','UNKNOWN_CMD','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_exhaustRemoteChangesetQueue','getRenderById','CHANGESET_REVISION_CONFILICT','getCollabEntity','status','transformStack\x20failed!','rng','_initUnitPermissionChange','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','registerOnClose','OFFLINE','LIVESHARE_OPERATION','some','snapshotServerUrl','unit-cache-','objectType','random','onCommandExecuted','FromArray','synced','_onLocalMutation','getCurrentSelections','SNAPSHOT_SERVER_URL_KEY','_configService','_waitCount','now','getItem','userID','_clearLocalCache','ONLINE','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','&assign=','closePath','/unit/','_onCursorDelete','POST','getActiveRange','fillStyle','interceptor','set','attrs','svg','map','_onConnectionFailed','_anchorDot','DeleteRangeMoveLeftCommandId','_document','ranges','Unknown\x20user','YUUMI_SUBSCRIPTION_NOT_FOUND','getDocRanges','PSEUDO_FETCH_MISSING_RESULT','registerBeforeClose','socketService','transformChangesets','uploadFileServerUrl','_hover','onPointerEnter$','editingUnit','_color','appendMutation','focused$','off-line-single','_name','every','_entityInit$','univer-online-status-title','arc','registerRefRange','_snapshotServerService','collaboration_new_changeset','pending','toRgbString','_retryCount','params','csRejEvent','_docTransformIMECacheService','CHANGESET_ACK','_themeService','change$','_socket$','LICENSE_EXPORT_SIZE_EXCEEDED','_unitOnClients','_checkMissing','_drawTextRange','univerjs-icon\x20univerjs-icon-','indexOf','max','UNIVER_UNKNOWN','awaitingChangeset','_collabSessionService','collabStatus.fetchMiss','getOffsetConfig','textRanges','univer-online','_toggleOnline','addImageSourceCache','univer-pro.collaboration-client.single-active-unit-service','_id','onPointerLeave$','getViewport','[CollaborationEntity]','save\x20fail\x20reason\x20is\x20','hide','onMissedChangesetFetched','getSheetId','getUnit','463995JZOVGL','flatMap','_getRedoStack','NEW_CHANGESETS','_clearHeartbeatTimer','complete','split','2813475pjxrjN','startTime','setItem','APPLY_REJECT','_init','width','_onRecvEvent','close$','_updateLocalCache','trim','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','m1Prime','refreshPermission','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_rescheduleHeartbeat','cursorInfo$','/-/object/list','_commentUpdate$','revision','_updateLocalCursor','[SyncedState]:\x20received\x20acknowledgement.','assignAColorForMemberID','_substituteUndoStack','UNIVER_DOC','UNAUTHENTICATED','fetch_missing','APPLY_NON_SEQUENTIAL_REVISION','InsertColCommandId','engine','reduce','includes','isActive','_eventUnsubscribe','_redoStacks','not_collab','_revisionService','_removeRoom','on-line-single','_clearUndo','_entities','_cursorInfo$','INTERNAL_ERROR','collaboration-session-retry','sid','getParam','6FOjTUH','getRoom','UniverIcon','CHANGESET_REJ','awaiting_with_pending','UPDATE_PERMISSION_OBJ','restore','newValue','unshift','color','_sessionStatus$','clearInterval','_getSnapshotAPIPrefix','updateCollaborator','_replaceFileID','onload','_onOffline','_isPermissionRej','transformByState','setShapeProps','retryConnectingInterval','all','tag','updateOfflineData','awaiting','_memberService','MSG_FOR_ERROR','_queuedRemoteChangesets','socket\x20close','onlineStatusIcon','round','_unitID','_roomMembers','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','3NbOEOV','createCollaborator','open$','setActiveRange','SNAPSHOT_HAS_BEEN_REMOVED','putCollaborators','liveShareOperation','getInterceptPoints','registerRenderModule','RECV','state$','subunit','\x20to\x20','hovered','_collaborationTimeoutTimer','YUUMI_URL_COL_OUT_OF_RANGE','getMemberID','UNIVER_PROJECT','sheetId','lineTo','reconnect','_scheduleClearOtherTimer','_ensureSubject','univer-offline','collabWebSocketUrl','getCurrentUnitForType','_localCacheService','online','removeMember','_remoteChangesetQueue','asObservable','HELLO','debug','_setupSubUnitSync','onRemoteRej','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','from','FETCH_MISSING','0\x200\x2017\x2016','red300','onSyncEditingCollabCursor','updatePermissionPoint','getRandomValues','fetchMissingChangesets','25108uVynet','pluginName','idSuffix','_getDownloadEndpointURL','ERROR_IMAGE','M0\x200H16V16H0z','FETCH_MISS','TOO_MANY_REQUESTS','_executeRemoteChangeset','_onJoinRoomEvent','40bwSEOG','permission.content','url(#off-line-single_clip0_910_343)','setAlpha','_handleEvent','min','_drawRectRange','1em','getOwnPropertyDescriptor','collaboration-client.offline-data-not-saved','_startDocCollabCursor','HttpImport','DEFAULT_FILE_NAME','telemetry\x20info\x20is\x20not\x20initialized','dispose$','_transformSelections','reject','onMouseMove','pauseCollaboration','_docSkeletonManagerService','generateRandomId','LICENSE_IMPORT_SIZE_EXCEEDED','error','getTypeOfUnitAdded$'];_0x4a74=function(){return _0x334bb7;};return _0x4a74();}function $n(_0x249f9b){const _0x59cb51=_0xf86c5a;switch(_0x249f9b[_0x59cb51(0x46b)]){case I[_0x59cb51(0x3cd)]:case I[_0x59cb51(0x378)]:return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b['cmd'],'routeKey':_0x249f9b[_0x59cb51(0x3c6)]});case I['INGEST']:{let _0xf65c2a;switch(_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x26e)]){case _0x455562[_0x59cb51(0x3d2)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x3d2)],'updateCursorEvent':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x1f4)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x1f4)],'leaveEvent':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x24c)]:{_0xf65c2a={'eventID':_0x455562['USERS_ENTER'],'joinEvent':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x1b6)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x1b6)],'liveShareNewHost':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562['LIVESHARE_OPERATION']:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x2a2)],'liveShareOperation':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562['LIVESHARE_TERMINATE']:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x469)],'liveShareTerminate':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x424)]:{_0xf65c2a={'eventID':_0x455562['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x249f9b[_0x59cb51(0x129)][_0x59cb51(0x129)]};break;}case _0x455562[_0x59cb51(0x357)]:{_0xf65c2a={'eventID':_0x455562[_0x59cb51(0x357)]};break;}default:_0xf65c2a={'eventID':_0x249f9b['data']['eventID']};}return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b[_0x59cb51(0x46b)],'routeKey':_0x249f9b[_0x59cb51(0x3c6)],'collaMsg':_0xf65c2a});}case I[_0x59cb51(0x1c5)]:return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b[_0x59cb51(0x46b)],'routeKey':_0x249f9b[_0x59cb51(0x3c6)],'joinReq':_0x249f9b[_0x59cb51(0x129)]});case I['LEAVE']:return JSON[_0x59cb51(0x28b)]({'cmd':_0x249f9b['cmd'],'routeKey':_0x249f9b['routeKey'],'leaveReq':_0x249f9b['data']});default:throw new Error(_0x59cb51(0x1df));}}var jn=Object['defineProperty'],xn=Object[_0xf86c5a(0x397)],Hn=(_0xd10ba3,_0x313cf9,_0x4b30ce,_0x4207c5)=>{const _0xc9c581=_0xf86c5a;for(var _0x24be45=_0x4207c5>0x1?void 0x0:_0x4207c5?xn(_0x313cf9,_0x4b30ce):_0x313cf9,_0x2e5fc9=_0xd10ba3[_0xc9c581(0x28c)]-0x1,_0x279845;_0x2e5fc9>=0x0;_0x2e5fc9--)(_0x279845=_0xd10ba3[_0x2e5fc9])&&(_0x24be45=(_0x4207c5?_0x279845(_0x313cf9,_0x4b30ce,_0x24be45):_0x279845(_0x24be45))||_0x24be45);return _0x4207c5&&_0x24be45&&jn(_0x313cf9,_0x4b30ce,_0x24be45),_0x24be45;},Oe=(_0x3ea60d,_0x48edf0)=>(_0x25bac7,_0x1b9f04)=>_0x48edf0(_0x25bac7,_0x1b9f04,_0x3ea60d);const ks=_0x2452f4(_0xf86c5a(0x1ca));function kn(_0xfbeb33,_0x469989,_0x43779c){const _0x38de63=_0xf86c5a;return _0xfbeb33+'/'+_0x469989+_0x38de63(0x2b8)+_0x43779c+'/new_changes';}let Ct=class extends _0x4091c9{constructor(_0x27ab9b,_0xca2e7,_0x440210,_0x38fcd0,_0x58224e){const _0x1aa158=_0xf86c5a;super(),this[_0x1aa158(0x1c7)]=_0x27ab9b,this[_0x1aa158(0xef)]=_0xca2e7,this['_configService']=_0x440210,this['_logService']=_0x38fcd0,this[_0x1aa158(0x2dc)]=_0x58224e;}[_0xf86c5a(0x3d3)](_0x27fdef){const _0x484982=_0xf86c5a,_0xb3e437=this['_ws']['createSocket'](_0x27fdef);if(!_0xb3e437)throw new Error(_0x484982(0x29e));const _0x54d071=new _0x58abb8(),_0x52ecd4=new _0x26d305();_0x54d071[_0x484982(0x1e9)](_0xb3e437[_0x484982(0x310)][_0x484982(0x1c3)](_0x4f19ff=>_0x52ecd4[_0x484982(0x23f)](_0x4f19ff))),_0x54d071[_0x484982(0x1e9)](_0x441a7c(()=>_0x52ecd4[_0x484982(0x307)]()));const _0x3a216b=new _0x26d305();_0x54d071[_0x484982(0x1e9)](_0xb3e437['error$'][_0x484982(0x1c3)](_0x24563f=>_0x3a216b[_0x484982(0x23f)](_0x24563f))),_0x54d071['add'](_0x441a7c(()=>_0x3a216b[_0x484982(0x307)]()));const _0x192716=new _0x26d305();_0x54d071[_0x484982(0x1e9)](_0xb3e437[_0x484982(0x136)][_0x484982(0x1c3)](_0x1ae7a3=>{const _0x12c19b=Ln(_0x1ae7a3);_0x192716['next'](_0x12c19b);})),_0x54d071['add'](_0x441a7c(()=>_0x192716[_0x484982(0x307)]()));let _0x2f2318;const _0x1d0b05=()=>{const _0x17f812=_0x484982;_0x3a216b['next'](new Event(_0x17f812(0x3fc))),_0x52ecd4[_0x17f812(0x23f)](new CloseEvent(_0x17f812(0x3fc))),_0x2f2318[_0x17f812(0x11c)]();};return _0x2f2318={'memberID':'','close$':_0x52ecd4[_0x484982(0x377)](),'error$':_0x3a216b['asObservable'](),'open$':_0xb3e437[_0x484982(0x35b)],'message$':_0x192716[_0x484982(0x377)](),'send':_0x4e8984=>{const _0x4f8a8c=_0x484982;if(_0x4e8984['cmd']===I[_0x4f8a8c(0x3ad)]){if(_0x4e8984[_0x4f8a8c(0x129)]['eventID']===_0x455562[_0x4f8a8c(0x1d0)]){this[_0x4f8a8c(0x12f)](_0x2f2318,_0x4e8984[_0x4f8a8c(0x129)])[_0x4f8a8c(0x3ef)](_0x17b211=>{const _0x51af39=_0x4f8a8c;this[_0x51af39(0x435)]['error'](_0x17b211),_0x1d0b05();});return;}if(_0x4e8984[_0x4f8a8c(0x129)][_0x4f8a8c(0x26e)]===_0x455562[_0x4f8a8c(0x37e)]){const _0x16472a=_0x4e8984[_0x4f8a8c(0x129)];this[_0x4f8a8c(0x27c)](_0x16472a)[_0x4f8a8c(0x15f)](_0xeb7536=>{const _0xcefdd=_0x4f8a8c;_0x192716[_0xcefdd(0x23f)]({'cmd':I[_0xcefdd(0x362)],'code':Vt['OK'],'routeKey':_0x16472a['data'][_0xcefdd(0x427)],'routeType':'','data':{'eventID':_0x455562[_0xcefdd(0x2ca)],'data':{'changesets':_0xeb7536}}});})[_0x4f8a8c(0x3ef)](_0x3e5d57=>{this['_logService']['error'](_0x3e5d57),_0x1d0b05();});return;}}_0xb3e437[_0x4f8a8c(0x100)]($n(_0x4e8984));},'close':()=>{const _0x34d479=_0x484982;_0xb3e437[_0x34d479(0x11c)](),_0x54d071[_0x34d479(0x3ab)]();}},_0x2f2318;}async['_submitChangeset'](_0x134283,_0x5b4fe5){const _0x485c26=_0xf86c5a;var _0x5e834c,_0xf0fea0;const {unitType:_0x479150,unitID:_0xe37653,changeset:_0x460da4}=_0x5b4fe5[_0x485c26(0x129)],_0x172164={'unitID':_0xe37653,'memberID':_0x134283[_0x485c26(0x192)],'type':_0x479150,'changeset':_0x6e367b(_0x460da4)},_0x40a5e4=this[_0x485c26(0x2ae)][_0x485c26(0x1bf)](yn),_0x1f0eea=this[_0x485c26(0x2ae)][_0x485c26(0x1bf)]($),_0x256801=kn((_0xf0fea0=(_0x5e834c=_0x1f0eea==null?void 0x0:_0x1f0eea[_0x485c26(0x3e9)])!=null?_0x5e834c:_0x40a5e4)!=null?_0xf0fea0:Un,_0x479150,_0xe37653);try{await this[_0x485c26(0x1c7)][_0x485c26(0x1d7)](_0x256801,{'body':_0x172164});}catch(_0x249c05){throw this[_0x485c26(0x435)][_0x485c26(0x3a5)](_0x485c26(0x20b),_0x485c26(0x1fe)),_0x249c05;}}async[_0xf86c5a(0x27c)](_0x205601){const _0x2f9ad0=_0xf86c5a,{unitID:_0x3b3344,from:_0x1a5c40,to:_0x3cdf27,unitType:_0x405cc6}=_0x205601[_0x2f9ad0(0x129)];return(await this[_0x2f9ad0(0x2dc)][_0x2f9ad0(0x384)]({'metadata':void 0x0},{'unitID':_0x3b3344,'type':_0x405cc6,'from':_0x1a5c40,'to':_0x3cdf27}))['changesets'];}};Ct=Hn([Oe(0x0,_0x370f8c(_0x172026)),Oe(0x1,_0x370f8c(_0x109644)),Oe(0x2,_0x5bc7de),Oe(0x3,_0x593f47),Oe(0x4,_0x39263e)],Ct);const Bn=_0xf86c5a(0x2dd);function Vn(_0x3839a3){const _0x22775a=_0xf86c5a;return JSON[_0x22775a(0x28b)](_0x3839a3)[_0x22775a(0x28c)];}class Bs{constructor(){const _0xc240b1=_0xf86c5a;l(this,_0xc240b1(0x31a),new _0x26d305()),l(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}[_0xf86c5a(0x162)](_0xfc59c){const _0x7b0219=_0xf86c5a;this[_0x7b0219(0x31a)][_0x7b0219(0x23f)](_0xfc59c);}}var Fn=Object[_0xf86c5a(0xfa)],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x5c79f2,_0x6a0888,_0x370375,_0x377ddf)=>{const _0x16a17b=_0xf86c5a;for(var _0x5169c4=_0x377ddf>0x1?void 0x0:_0x377ddf?Wn(_0x6a0888,_0x370375):_0x6a0888,_0x46b35e=_0x5c79f2[_0x16a17b(0x28c)]-0x1,_0x372f7c;_0x46b35e>=0x0;_0x46b35e--)(_0x372f7c=_0x5c79f2[_0x46b35e])&&(_0x5169c4=(_0x377ddf?_0x372f7c(_0x6a0888,_0x370375,_0x5169c4):_0x372f7c(_0x5169c4))||_0x5169c4);return _0x377ddf&&_0x5169c4&&Fn(_0x6a0888,_0x370375,_0x5169c4),_0x5169c4;},as=(_0x104108,_0x557453)=>(_0x249528,_0x20c5fb)=>_0x557453(_0x249528,_0x20c5fb,_0x104108);let ce=class extends _0x4091c9{constructor(_0x218153,_0x5bbf5c){const _0x4dc552=_0xf86c5a;super(),l(this,_0x4dc552(0x356),new Map()),(this[_0x4dc552(0x358)]=_0x218153,this[_0x4dc552(0x3c2)]=_0x5bbf5c,this[_0x4dc552(0x177)](_0x441a7c(_0x20e120(this[_0x4dc552(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x4dc552(0x1af)])[_0x4dc552(0x268)](_0x524dbf(_0x569c64=>_0x569c64[_0x4dc552(0x23e)]())),this[_0x4dc552(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x4dc552(0x320)])['pipe'](_0x524dbf(_0x5cd3ef=>_0x5cd3ef[_0x4dc552(0x23e)]())),this[_0x4dc552(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x4dc552(0x21f)])[_0x4dc552(0x268)](_0x524dbf(_0x472198=>_0x472198[_0x4dc552(0x23e)]())))[_0x4dc552(0x1c3)](_0x4c3694=>this['_removeRoom'](_0x4c3694)))));}[_0xf86c5a(0x259)](_0x4390bc){const _0x2a74fd=_0xf86c5a;this['_userManagerService'][_0x2a74fd(0x259)](_0x4390bc);}[_0xf86c5a(0x1a7)](){const _0x54eff7=_0xf86c5a;return this[_0x54eff7(0x3c2)][_0x54eff7(0x1a7)]();}[_0xf86c5a(0x185)](_0x22d3fc,_0x143214){const _0x1fffd8=_0xf86c5a;let _0x46b745=this[_0x1fffd8(0x356)][_0x1fffd8(0x175)](_0x22d3fc);_0x46b745||(_0x46b745=new Yn(),this[_0x1fffd8(0x356)][_0x1fffd8(0x2be)](_0x22d3fc,_0x46b745)),_0x46b745[_0x1fffd8(0x185)](_0x143214);}[_0xf86c5a(0x375)](_0x5ef6d1,_0x310849){const _0x540283=_0xf86c5a,_0x22835e=this[_0x540283(0x356)][_0x540283(0x175)](_0x5ef6d1);_0x22835e&&_0x22835e['removeMember'](_0x310849);}[_0xf86c5a(0x337)](_0x5b7cde){const _0x3d967e=_0xf86c5a;return this[_0x3d967e(0x356)]['get'](_0x5b7cde);}[_0xf86c5a(0x191)](_0x11844c,_0x2232e3){const _0x597c8d=_0xf86c5a,_0x219154=this[_0x597c8d(0x356)][_0x597c8d(0x175)](_0x11844c);if(_0x219154)return _0x219154['getMember'](_0x2232e3);}[_0xf86c5a(0x32d)](_0x12b6e3){const _0x2ec5aa=_0xf86c5a,_0x48637e=this[_0x2ec5aa(0x356)][_0x2ec5aa(0x175)](_0x12b6e3);_0x48637e&&(_0x48637e[_0x2ec5aa(0x3ab)](),this[_0x2ec5aa(0x356)][_0x2ec5aa(0x107)](_0x12b6e3));}['dispose'](){const _0x358af3=_0xf86c5a;this[_0x358af3(0x356)]['forEach'](_0x47ef2d=>_0x47ef2d[_0x358af3(0x3ab)]()),this[_0x358af3(0x356)]['clear']();}};ce=Gn([as(0x0,_0x5edd3d),as(0x1,_0x370f8c(_0x323804))],ce);class Yn extends _0x4091c9{constructor(){const _0x279b57=_0xf86c5a;super(...arguments),l(this,_0x279b57(0x3b8),new Map());}['dispose'](){const _0x2cce71=_0xf86c5a;this[_0x2cce71(0x3b8)][_0x2cce71(0x3e6)]();}['updateMember'](_0x2cc4b1){const _0x52b96e=_0xf86c5a;this[_0x52b96e(0x3b8)][_0x52b96e(0x2be)](_0x2cc4b1[_0x52b96e(0x192)],_0x2cc4b1);}[_0xf86c5a(0x375)](_0xea1fd){const _0x1c1587=_0xf86c5a;this[_0x1c1587(0x3b8)][_0x1c1587(0x107)](_0xea1fd);}[_0xf86c5a(0x191)](_0x23cfdd){const _0x455615=_0xf86c5a;return this[_0x455615(0x3b8)]['get'](_0x23cfdd);}}var Kn=Object[_0xf86c5a(0xfa)],Xn=Object[_0xf86c5a(0x397)],qn=(_0x15ae2c,_0x15fdf8,_0x40fefc,_0x4e4d90)=>{const _0x19e19e=_0xf86c5a;for(var _0x14dcda=_0x4e4d90>0x1?void 0x0:_0x4e4d90?Xn(_0x15fdf8,_0x40fefc):_0x15fdf8,_0xc7e482=_0x15ae2c[_0x19e19e(0x28c)]-0x1,_0x5c76e1;_0xc7e482>=0x0;_0xc7e482--)(_0x5c76e1=_0x15ae2c[_0xc7e482])&&(_0x14dcda=(_0x4e4d90?_0x5c76e1(_0x15fdf8,_0x40fefc,_0x14dcda):_0x5c76e1(_0x14dcda))||_0x14dcda);return _0x4e4d90&&_0x14dcda&&Kn(_0x15fdf8,_0x40fefc,_0x14dcda),_0x14dcda;},J=(_0x2d7f53,_0x5aeb06)=>(_0x9fc3e4,_0x3151de)=>_0x5aeb06(_0x9fc3e4,_0x3151de,_0x2d7f53),Y=(_0x3446d0=>(_0x3446d0[_0x3446d0[_0xf86c5a(0x28f)]=0x0]='IDLE',_0x3446d0[_0x3446d0[_0xf86c5a(0x43f)]=0x1]=_0xf86c5a(0x43f),_0x3446d0[_0x3446d0[_0xf86c5a(0x2a1)]=0x2]=_0xf86c5a(0x2a1),_0x3446d0[_0x3446d0[_0xf86c5a(0x2b4)]=0x3]=_0xf86c5a(0x2b4),_0x3446d0))(Y||{});let bt=class extends _0x27d368{constructor(_0x44c204,_0x925217,_0x29d355,_0x419cec,_0x3a4958,_0xa6a603,_0x21bdc2,_0x770c6c,_0x231409,_0x2a5a88){const _0x1a8b8d=_0xf86c5a;super(),l(this,_0x1a8b8d(0x340),new _0x52cf76(0x0)),l(this,_0x1a8b8d(0xf6),this[_0x1a8b8d(0x340)]['asObservable']()),l(this,_0x1a8b8d(0x211),new _0x26d305()),l(this,_0x1a8b8d(0x3b1),this[_0x1a8b8d(0x211)]['asObservable']()),l(this,'_socket'),l(this,_0x1a8b8d(0x42a)),l(this,_0x1a8b8d(0x367)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x1a8b8d(0x19b),null),(this['_unitID']=_0x44c204,this[_0x1a8b8d(0x435)]=_0x29d355,this['_beforeCloseService']=_0x419cec,this[_0x1a8b8d(0x122)]=_0x3a4958,this[_0x1a8b8d(0x2ae)]=_0xa6a603,this['_localeService']=_0x21bdc2,this[_0x1a8b8d(0x34f)]=_0x770c6c,this[_0x1a8b8d(0x247)]=_0x231409,this[_0x1a8b8d(0x21b)]=_0x2a5a88,this[_0x1a8b8d(0x148)]=!!this[_0x1a8b8d(0x21b)],_0x925217[_0x1a8b8d(0x268)](_0x14bd7d(this['dispose$']))[_0x1a8b8d(0x1c3)](_0x2d922c=>{const _0x4d2441=_0x1a8b8d;var _0x7713f5;typeof _0x2d922c>'u'||(this['_socket']=_0x2d922c,_0x2d922c?(this[_0x4d2441(0x167)](_0x2d922c),this[_0x4d2441(0x42a)]=_0x2d922c[_0x4d2441(0x136)]['subscribe'](_0x1ecb06=>{const _0x5af530=_0x4d2441;_0x1ecb06[_0x5af530(0x3c6)]===this['_unitID']&&this['_onCombEvent'](_0x1ecb06);})):(this[_0x4d2441(0x1d8)](),this[_0x4d2441(0x340)][_0x4d2441(0x23f)](0x2),(_0x7713f5=this['_socketMessageSubscription'])==null||_0x7713f5[_0x4d2441(0x26d)](),this[_0x4d2441(0x42a)]=null));}),this[_0x1a8b8d(0x177)](this[_0x1a8b8d(0x243)][_0x1a8b8d(0x2a0)](()=>{const _0x36c701=_0x1a8b8d;var _0x17055d;(_0x17055d=this[_0x36c701(0x45c)])==null||_0x17055d['send']({'cmd':I[_0x36c701(0x1a6)],'data':{'roomID':this[_0x36c701(0x355)]}});})));}get[_0xf86c5a(0x3f3)](){const _0x35225c=_0xf86c5a;return this['_sessionStatus$'][_0x35225c(0x40f)]();}[_0xf86c5a(0x369)](){const _0x196b27=_0xf86c5a;var _0x34794f,_0x19dbd7;return(_0x19dbd7=(_0x34794f=this[_0x196b27(0x45c)])==null?void 0x0:_0x34794f['memberID'])!=null?_0x19dbd7:null;}[_0xf86c5a(0x3ab)](){const _0x5a0d87=_0xf86c5a;super[_0x5a0d87(0x3ab)](),this['dispose$'][_0x5a0d87(0x23f)](),this[_0x5a0d87(0x39d)][_0x5a0d87(0x307)]();}[_0xf86c5a(0x11c)](){const _0x15b333=_0xf86c5a;var _0x582632,_0x46f8bd;this['_throwTelemetryCollaborationNewChangeset'](),(_0x582632=this[_0x15b333(0x45c)])==null||_0x582632['send']({'cmd':I[_0x15b333(0x1a6)],'data':{'roomID':this[_0x15b333(0x355)]}}),(_0x46f8bd=this['_socket'])==null||_0x46f8bd[_0x15b333(0x11c)](),this[_0x15b333(0x211)][_0x15b333(0x307)](),this[_0x15b333(0x340)][_0x15b333(0x307)](),this[_0x15b333(0x3ab)]();}[_0xf86c5a(0x405)](_0x12d947){const _0x5de93e=_0xf86c5a;_0x12d947[_0x5de93e(0x46b)]===I['JOIN']?this[_0x5de93e(0x38e)](_0x12d947):_0x12d947['cmd']===I['RECV']&&this[_0x5de93e(0x30f)](_0x12d947);}[_0xf86c5a(0x167)](_0x4a2ada){const _0x448d8c=_0xf86c5a;this[_0x448d8c(0x340)][_0x448d8c(0x23f)](0x1),_0x4a2ada['send']({'cmd':I[_0x448d8c(0x1c5)],'routeKey':this[_0x448d8c(0x355)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xf86c5a(0x38e)](_0x2fe9e6){const _0x172ef4=_0xf86c5a;var _0x2de559;if(_0x2fe9e6[_0x172ef4(0x42b)]===Vt[_0x172ef4(0x3d4)]){this['_messageService']['show']({'type':_0x424985['Warning'],'content':this[_0x172ef4(0x1f8)]['t']('session.room-full')}),this[_0x172ef4(0x340)][_0x172ef4(0x23f)](0x2);return;}this['_sessionStatus$'][_0x172ef4(0x23f)](0x3);const _0x1d7b2b=(_0x2de559=_0x2fe9e6[_0x172ef4(0x129)][_0x172ef4(0x1be)][this[_0x172ef4(0x355)]])==null?void 0x0:_0x2de559[_0x172ef4(0x1e4)];_0x1d7b2b&&_0x1d7b2b['forEach'](_0x108101=>this[_0x172ef4(0x34f)][_0x172ef4(0x185)](this[_0x172ef4(0x355)],_0x108101));}[_0xf86c5a(0x30f)](_0x3fe862){const _0x1015c2=_0xf86c5a;try{const _0x58853e=_0x3fe862[_0x1015c2(0x129)];switch(_0x58853e[_0x1015c2(0x26e)]){case _0x455562[_0x1015c2(0x24c)]:this[_0x1015c2(0x44a)](_0x58853e),this[_0x1015c2(0x211)][_0x1015c2(0x23f)](_0x58853e);break;case _0x455562[_0x1015c2(0x1f4)]:this[_0x1015c2(0x3c8)](_0x58853e),this[_0x1015c2(0x211)][_0x1015c2(0x23f)](_0x58853e);break;case _0x455562[_0x1015c2(0x2e4)]:this[_0x1015c2(0x460)](),this[_0x1015c2(0x1f7)](),this[_0x1015c2(0x211)]['next'](_0x58853e);break;case _0x455562[_0x1015c2(0x350)]:this[_0x1015c2(0x435)][_0x1015c2(0x3a5)](_0x1015c2(0x2fd)+JSON[_0x1015c2(0x28b)](_0x58853e)),this[_0x1015c2(0x211)]['next'](_0x58853e);break;case _0x455562[_0x1015c2(0x199)]:this[_0x1015c2(0x247)]['onCommentUpdate'](_0x58853e[_0x1015c2(0x129)]),this[_0x1015c2(0x211)]['next'](_0x58853e);break;default:this[_0x1015c2(0x211)][_0x1015c2(0x23f)](_0x58853e);}}catch(_0x4dc546){this[_0x1015c2(0x435)][_0x1015c2(0x3a5)](_0x4dc546,_0x3fe862);}}[_0xf86c5a(0x44a)](_0x11a289){const _0x573087=_0xf86c5a;this[_0x573087(0x34f)]['updateMember'](this[_0x573087(0x355)],_0x11a289['data']);}[_0xf86c5a(0x3c8)](_0x467568){const _0x12655b=_0xf86c5a;this['_memberService'][_0x12655b(0x375)](this['_unitID'],_0x467568[_0x12655b(0x129)][_0x12655b(0x192)]);}async[_0xf86c5a(0x100)](_0x3a2782,_0x243bb1){const _0x5e928a=_0xf86c5a;if(this['sessionStatus']!==0x3||!this[_0x5e928a(0x45c)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x3a2782[_0x5e928a(0x26e)]===_0x455562[_0x5e928a(0x1d0)]&&(this[_0x5e928a(0x438)](),this[_0x5e928a(0x409)](_0x3a2782)),this[_0x5e928a(0x45c)][_0x5e928a(0x100)]({'cmd':I['INGEST'],'routeKey':_0x243bb1,'routeType':'','data':_0x3a2782});}catch(_0x5a0840){this['_logService'][_0x5e928a(0x3a5)](_0x5a0840);}}[_0xf86c5a(0x438)](){const _0xf3e3d6=_0xf86c5a;var _0x5bfd4c;this[_0xf3e3d6(0x367)]=window['setTimeout'](()=>{const _0x20af8b=_0xf3e3d6;this[_0x20af8b(0x367)]=null,this['_messageService'][_0x20af8b(0x265)]({'type':_0x424985[_0x20af8b(0x44b)],'content':this['_localeService']['t'](_0x20af8b(0x3d6))});},(_0x5bfd4c=this[_0xf3e3d6(0x2ae)][_0xf3e3d6(0x1bf)]($s))!=null?_0x5bfd4c:js);}[_0xf86c5a(0x1f7)](){const _0x3af063=_0xf86c5a;this[_0x3af063(0x367)]&&(clearTimeout(this[_0x3af063(0x367)]),this[_0x3af063(0x367)]=null);}[_0xf86c5a(0x409)](_0x4cb715){const _0x4fc723=_0xf86c5a;if(!this[_0x4fc723(0x148)])return;const {data:_0x47adb3}=_0x4cb715,{unitID:_0x92bee5,changeset:_0x10aac7}=_0x47adb3,{mutations:_0x30dc80,type:_0x377eb8}=_0x10aac7;this['_telemetryInfo']={'unitId':_0x92bee5,'type':_0x377eb8,'startTime':performance[_0x4fc723(0x2b0)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x30dc80)};}[_0xf86c5a(0x460)](){const _0x3d845a=_0xf86c5a;if(this[_0x3d845a(0x148)]){if(!this[_0x3d845a(0x19b)]){this[_0x3d845a(0x435)][_0x3d845a(0x3a5)](_0x3d845a(0x20b),_0x3d845a(0x39c));return;}this[_0x3d845a(0x19b)][_0x3d845a(0x16d)]=performance['now'](),this['_telemetryInfo']['duration']=this[_0x3d845a(0x19b)][_0x3d845a(0x16d)]-this[_0x3d845a(0x19b)][_0x3d845a(0x30a)],this[_0x3d845a(0x21b)][_0x3d845a(0x220)](Bn,this['_telemetryInfo']),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x4aee12=_0xf86c5a;this[_0x4aee12(0x19b)]=null;}};bt=qn([J(0x2,_0x593f47),J(0x3,_0x4cf196),J(0x4,_0x3aa03b),J(0x5,_0x5bc7de),J(0x6,_0x370f8c(_0x2673bf)),J(0x7,_0x370f8c(ce)),J(0x8,_0x370f8c(Bs)),J(0x9,_0x2fd677(_0x382310))],bt);var Jn=Object['defineProperty'],zn=Object['getOwnPropertyDescriptor'],Zn=(_0x47ef7c,_0x5d14a9,_0x3144fd,_0x4230c5)=>{const _0x19d7bd=_0xf86c5a;for(var _0x2f4208=_0x4230c5>0x1?void 0x0:_0x4230c5?zn(_0x5d14a9,_0x3144fd):_0x5d14a9,_0x591994=_0x47ef7c[_0x19d7bd(0x28c)]-0x1,_0x8bfc91;_0x591994>=0x0;_0x591994--)(_0x8bfc91=_0x47ef7c[_0x591994])&&(_0x2f4208=(_0x4230c5?_0x8bfc91(_0x5d14a9,_0x3144fd,_0x2f4208):_0x8bfc91(_0x2f4208))||_0x2f4208);return _0x4230c5&&_0x2f4208&&Jn(_0x5d14a9,_0x3144fd,_0x2f4208),_0x2f4208;},fe=(_0x2b6489,_0x5cf2f9)=>(_0x3f5288,_0x29f8cc)=>_0x5cf2f9(_0x3f5288,_0x29f8cc,_0x2b6489);let he=class extends _0x4091c9{constructor(_0x222594,_0x3a1c37,_0x22ee9f,_0x2c035a,_0x1311b3,_0x5e9cb3){const _0x1bcff3=_0xf86c5a;super(),l(this,_0x1bcff3(0x2e7),new _0x52cf76(void 0x0)),l(this,_0x1bcff3(0x23c),this[_0x1bcff3(0x2e7)]['asObservable']()),l(this,_0x1bcff3(0x230),null),l(this,_0x1bcff3(0x1cd),new Map()),l(this,'_status$',new _0x52cf76(Y[_0x1bcff3(0x28f)])),l(this,_0x1bcff3(0x217),this[_0x1bcff3(0x15d)][_0x1bcff3(0x377)]()),l(this,_0x1bcff3(0x127),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x1bcff3(0x2e0),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x1bcff3(0x3dd)),(this['_injector']=_0x222594,this[_0x1bcff3(0x1f8)]=_0x3a1c37,this['_messageService']=_0x22ee9f,this[_0x1bcff3(0x435)]=_0x2c035a,this[_0x1bcff3(0x2ae)]=_0x1311b3,this['_socketService']=_0x5e9cb3,this['_initEventListeners']());}get[_0xf86c5a(0x45c)](){const _0x1aea26=_0xf86c5a;return this['_socket$'][_0x1aea26(0x40f)]();}[_0xf86c5a(0x250)](){const _0x2cbd95=_0xf86c5a;this['_listenToOfflineEvent'](),this[_0x2cbd95(0x42d)]();}[_0xf86c5a(0x3ab)](){const _0x44db36=_0xf86c5a;super[_0x44db36(0x3ab)](),this['_sessions'][_0x44db36(0x26c)](_0x2c494d=>_0x2c494d[_0x44db36(0x3ab)]()),this[_0x44db36(0x1cd)][_0x44db36(0x3e6)](),this[_0x44db36(0x15d)][_0x44db36(0x307)]();}async[_0xf86c5a(0x13d)](_0x3c1964){const _0x1c9530=_0xf86c5a;if(this['_sessions']['has'](_0x3c1964))return this[_0x1c9530(0x1cd)][_0x1c9530(0x175)](_0x3c1964);this['_tryEnsureSocket']();const _0xd5d370=this[_0x1c9530(0x22b)][_0x1c9530(0x45e)](bt,_0x3c1964,this[_0x1c9530(0x2e7)]['asObservable']());return this['_sessions']['set'](_0x3c1964,_0xd5d370),_0xd5d370;}[_0xf86c5a(0x15e)](_0x3bba62){const _0x4bf61e=_0xf86c5a;var _0x5cfefe;const _0x1ee850=this['_sessions'][_0x4bf61e(0x175)](_0x3bba62);_0x1ee850&&(this[_0x4bf61e(0x1cd)]['delete'](_0x3bba62),_0x1ee850['close']()),this[_0x4bf61e(0x1cd)]['size']||(_0x5cfefe=this[_0x4bf61e(0x45c)])==null||_0x5cfefe[_0x4bf61e(0x11c)]();}['reconnect'](){const _0x1c3951=_0xf86c5a;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x1c3951(0x3f0)]),this[_0x1c3951(0x3f0)]=null),this[_0x1c3951(0x178)]();}[_0xf86c5a(0x12c)](){const _0x41bc8e=_0xf86c5a;var _0x405fbf,_0x41a019;const _0x2955bc=this['_configService'][_0x41bc8e(0x1bf)](En),_0x484c1c=this[_0x41bc8e(0x2ae)]['getConfig']($),_0x4f9cf3=(_0x41a019=(_0x405fbf=_0x484c1c==null?void 0x0:_0x484c1c[_0x41bc8e(0x371)])!=null?_0x405fbf:_0x2955bc)!=null?_0x41a019:Cn,_0x35157f=this[_0x41bc8e(0x45d)]['createSocket'](_0x4f9cf3);return this['_candidateSocket']=_0x35157f,_0x35157f;}['_tryEnsureSocket'](){const _0x5d2b50=_0xf86c5a;var _0x3fc59e,_0x5f19ca;try{const _0xf1f57e=(_0x5f19ca=(_0x3fc59e=this[_0x5d2b50(0x45c)])!=null?_0x3fc59e:this['_candidateSocket'])!=null?_0x5f19ca:this[_0x5d2b50(0x12c)]();if(_0xf1f57e){const _0x52a3d8=_0xf1f57e[_0x5d2b50(0x100)];_0xf1f57e[_0x5d2b50(0x100)]=_0x159a13=>(this[_0x5d2b50(0x317)](),_0x52a3d8[_0x5d2b50(0x241)](_0xf1f57e,[_0x159a13])),_0xf1f57e[_0x5d2b50(0x136)]['subscribe'](_0x126eba=>this[_0x5d2b50(0x3b6)](_0xf1f57e,_0x126eba)),_0xf1f57e[_0x5d2b50(0x28e)][_0x5d2b50(0x268)](_0x46d55b(0x1))['subscribe'](_0x5f5741=>this[_0x5d2b50(0x435)][_0x5d2b50(0x3a5)]('[CollaborationSessionService]:\x20socket\x20error',_0x5f5741)),_0xf1f57e['open$'][_0x5d2b50(0x268)](_0x46d55b(0x1))[_0x5d2b50(0x1c3)](()=>{this['_onConnectionOpen'](_0xf1f57e);}),_0xf1f57e[_0x5d2b50(0x310)][_0x5d2b50(0x268)](_0x46d55b(0x1))[_0x5d2b50(0x1c3)](_0x1c7db4=>{const _0x50559d=_0x5d2b50;this['_logService']['debug']('[CollaborationSessionService]',_0x50559d(0x352),_0x1c7db4),this[_0x50559d(0x2c2)]();});}}catch(_0x41e4de){this[_0x5d2b50(0x435)]['error'](_0x41e4de),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x546b6d){const _0x4ca28d=_0xf86c5a;this['_logService'][_0x4ca28d(0x379)](_0x4ca28d(0x210),_0x4ca28d(0x3f4)),_0x546b6d[_0x4ca28d(0x100)]({'cmd':I[_0x4ca28d(0x378)]}),this[_0x4ca28d(0x317)]();}[_0xf86c5a(0x151)](){const _0x378179=_0xf86c5a;window[_0x378179(0x3ed)]('offline',()=>this[_0x378179(0x346)]());}[_0xf86c5a(0x346)](){const _0x3e93d9=_0xf86c5a;this[_0x3e93d9(0x127)]=!0x1,this[_0x3e93d9(0x230)]=null,this[_0x3e93d9(0x15d)][_0x3e93d9(0x23f)](Y[_0x3e93d9(0x2a1)]),this[_0x3e93d9(0x2e7)][_0x3e93d9(0x23f)](null),this[_0x3e93d9(0x403)](),this[_0x3e93d9(0x306)]();}[_0xf86c5a(0x2c2)](){const _0x53b2fd=_0xf86c5a;var _0x4e32c5;this[_0x53b2fd(0x346)](),this['_retryCount']<((_0x4e32c5=this[_0x53b2fd(0x2ae)][_0x53b2fd(0x1bf)](On))!=null?_0x4e32c5:Dn)?(this[_0x53b2fd(0x122)][_0x53b2fd(0x265)]({'key':_0x53b2fd(0x333),'type':_0x424985[_0x53b2fd(0x3ae)],'content':this[_0x53b2fd(0x1f8)]['t']('session.will-retry')}),this[_0x53b2fd(0x178)]()):this[_0x53b2fd(0x122)][_0x53b2fd(0x265)]({'key':_0x53b2fd(0x333),'type':_0x424985[_0x53b2fd(0x44b)],'content':this['_localeService']['t']('session.connection-failed')});}[_0xf86c5a(0x42d)](){const _0x5eaad6=_0xf86c5a,_0x5c5903=()=>{const _0xd5a5ae=_0x556d;this[_0xd5a5ae(0x45c)]||this[_0xd5a5ae(0x36d)]();},_0x4ca3c2=()=>{const _0x4df608=_0x556d;this[_0x4df608(0x45c)]||document[_0x4df608(0xf9)]===_0x4df608(0x3e7)||this[_0x4df608(0x36d)]();};window['addEventListener'](_0x5eaad6(0x374),_0x5c5903),document[_0x5eaad6(0x3ed)](_0x5eaad6(0x290),_0x4ca3c2);}[_0xf86c5a(0x178)](){const _0x44fab8=_0xf86c5a;var _0x59eb58;const _0x2fd095=this['_retryCount'],_0x54b17d=this['_configService'][_0x44fab8(0x1bf)]($),_0x148e90=_0x2fd095===0x0?0x0:((_0x59eb58=_0x54b17d==null?void 0x0:_0x54b17d[_0x44fab8(0x34a)])!=null?_0x59eb58:Rn)*0x2**_0x2fd095;this[_0x44fab8(0x3f0)]=window[_0x44fab8(0x21e)](()=>{const _0x318ba2=_0x44fab8;clearTimeout(this['_retryConnectingTimer']),this[_0x318ba2(0x3f0)]=null,this[_0x318ba2(0xe8)]();},_0x148e90),this['_retryCount']+=0x1;}[_0xf86c5a(0x3b6)](_0x19a482,_0x3d449a){const _0x5df2de=_0xf86c5a,{cmd:_0x2d38f8}=_0x3d449a;_0x2d38f8===I[_0x5df2de(0x378)]&&!this[_0x5df2de(0x127)]&&(_0x19a482[_0x5df2de(0x192)]=_0x3d449a[_0x5df2de(0x129)]['memberID'],this[_0x5df2de(0x2e7)][_0x5df2de(0x23f)](_0x19a482),this[_0x5df2de(0x15d)][_0x5df2de(0x23f)](Y[_0x5df2de(0x2b4)]),this[_0x5df2de(0x127)]=!0x0,this['_candidateSocket']=null),_0x2d38f8===I[_0x5df2de(0x3cd)]&&this[_0x5df2de(0x403)](),this[_0x5df2de(0x317)]();}[_0xf86c5a(0x317)](){const _0x18a7c7=_0xf86c5a;var _0x277f46;this['_clearHeartbeatTimer'](),this[_0x18a7c7(0x10e)]=window['setTimeout'](()=>this['_sendHeartbeat'](),(_0x277f46=this[_0x18a7c7(0x2ae)]['getConfig'](bn))!=null?_0x277f46:Tn);}[_0xf86c5a(0x271)](){const _0x487fc4=_0xf86c5a;this['_socket'][_0x487fc4(0x100)]({'cmd':I['HEARTBEAT']}),this[_0x487fc4(0x3d5)]();}['_waitForHeartbeatResponse'](){const _0x10f768=_0xf86c5a;var _0x301897;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x10f768(0x2c2)](),(_0x301897=this[_0x10f768(0x2ae)]['getConfig']($s))!=null?_0x301897:js);}['_clearHeartbeatTimer'](){const _0x33d090=_0xf86c5a;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x33d090(0x10e)]=null);}['_clearTimeoutTimer'](){const _0x51a516=_0xf86c5a;this[_0x51a516(0x3dd)]!=null&&(clearTimeout(this[_0x51a516(0x3dd)]),this['_timeoutTimer']=null);}};he=Zn([fe(0x0,_0x370f8c(_0x595e81)),fe(0x1,_0x370f8c(_0x2673bf)),fe(0x2,_0x3aa03b),fe(0x3,_0x593f47),fe(0x4,_0x5bc7de),fe(0x5,ks)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0xf86c5a(0x106)]((ct+0x100)[_0xf86c5a(0x202)](0x10)[_0xf86c5a(0x42c)](0x1));function Qn(_0x7adce1,_0x130722=0x0){return(T[_0x7adce1[_0x130722+0x0]]+T[_0x7adce1[_0x130722+0x1]]+T[_0x7adce1[_0x130722+0x2]]+T[_0x7adce1[_0x130722+0x3]]+'-'+T[_0x7adce1[_0x130722+0x4]]+T[_0x7adce1[_0x130722+0x5]]+'-'+T[_0x7adce1[_0x130722+0x6]]+T[_0x7adce1[_0x130722+0x7]]+'-'+T[_0x7adce1[_0x130722+0x8]]+T[_0x7adce1[_0x130722+0x9]]+'-'+T[_0x7adce1[_0x130722+0xa]]+T[_0x7adce1[_0x130722+0xb]]+T[_0x7adce1[_0x130722+0xc]]+T[_0x7adce1[_0x130722+0xd]]+T[_0x7adce1[_0x130722+0xe]]+T[_0x7adce1[_0x130722+0xf]])['toLowerCase']();}var He,er=new Uint8Array(0x10);function tr(){const _0x477846=_0xf86c5a;if(!He&&(He=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x477846(0x383)][_0x477846(0x3ff)](crypto),!He))throw new Error(_0x477846(0x2b5));return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0xf86c5a(0x421)][_0xf86c5a(0x3ff)](crypto);const cs={'randomUUID':sr};function ir(_0x460754,_0x1e4bfb,_0x1b03cc){const _0x21593b=_0xf86c5a;if(cs[_0x21593b(0x421)]&&!_0x1e4bfb&&!_0x460754)return cs['randomUUID']();_0x460754=_0x460754||{};var _0x428efd=_0x460754[_0x21593b(0x2a7)]||(_0x460754[_0x21593b(0x29c)]||tr)();return _0x428efd[0x6]=_0x428efd[0x6]&0xf|0x40,_0x428efd[0x8]=_0x428efd[0x8]&0x3f|0x80,Qn(_0x428efd);}var nr=Object[_0xf86c5a(0xfa)],rr=Object[_0xf86c5a(0x397)],or=(_0x3be030,_0x59b75b,_0x9d180d,_0x39ba43)=>{const _0x4a5332=_0xf86c5a;for(var _0x40cc22=_0x39ba43>0x1?void 0x0:_0x39ba43?rr(_0x59b75b,_0x9d180d):_0x59b75b,_0x589c39=_0x3be030[_0x4a5332(0x28c)]-0x1,_0x3fa7de;_0x589c39>=0x0;_0x589c39--)(_0x3fa7de=_0x3be030[_0x589c39])&&(_0x40cc22=(_0x39ba43?_0x3fa7de(_0x59b75b,_0x9d180d,_0x40cc22):_0x3fa7de(_0x40cc22))||_0x40cc22);return _0x39ba43&&_0x40cc22&&nr(_0x59b75b,_0x9d180d,_0x40cc22),_0x40cc22;},ht=(_0x276c90,_0x2ff6cb)=>(_0x2f9c05,_0x5077f8)=>_0x2ff6cb(_0x2f9c05,_0x5077f8,_0x276c90);let Ye=class{constructor(_0x3a8c4e,_0x214fa6,_0x14e4f8){const _0x541463=_0xf86c5a;this[_0x541463(0x22b)]=_0x3a8c4e,this['_transformService']=_0x214fa6,this[_0x541463(0x410)]=_0x14e4f8;}[_0xf86c5a(0x3e2)](_0x35ad42){const _0x1ac75d=_0xf86c5a;this[_0x1ac75d(0x3f2)](_0x35ad42),this['_transformPreviousActiveRange'](_0x35ad42);}[_0xf86c5a(0x22d)](_0x4adff9){const _0x45bfe2=_0xf86c5a,{unitID:_0x5bb4ba}=_0x4adff9,_0x113693=this[_0x45bfe2(0x410)][_0x45bfe2(0x297)](_0x5bb4ba)[_0x45bfe2(0x206)](_0x192645),{redoCache:_0x161f45}=_0x113693[_0x45bfe2(0x1a0)]();if(_0x161f45[_0x45bfe2(0x28c)]===0x0)return _0x4adff9;let _0x3599f0=_0x48af3f[_0x45bfe2(0x17f)](_0x4adff9[_0x45bfe2(0x3c1)][0x0]);for(let _0xddb7a4=0x0;_0xddb7a4<_0x161f45[_0x45bfe2(0x28c)];_0xddb7a4++){const _0x35c7b7={'id':_0x45bfe2(0x27d),'params':{..._0x161f45[_0xddb7a4]}},_0x345f9a=this[_0x45bfe2(0x235)]['transformMutation'](_0x3599f0,_0x35c7b7,!0x1);if(_0x3e8650(_0x345f9a))throw _0x345f9a['error'];_0x3599f0=_0x345f9a[_0x45bfe2(0x314)];}return{..._0x48af3f['deepClone'](_0x4adff9),'mutations':[_0x3599f0]};}['_transformUndoRedoStack'](_0x22eac3){const _0x2bef41=_0xf86c5a,{unitID:_0x589016}=_0x22eac3,_0x428aa0=this[_0x2bef41(0x410)][_0x2bef41(0x297)](_0x589016)['with'](_0x192645),{undoCache:_0x4efc89,redoCache:_0x37bc9f}=_0x428aa0['getUndoRedoMutationParamsCache']();if(_0x4efc89[_0x2bef41(0x28c)]===0x0||_0x37bc9f[_0x2bef41(0x28c)]===0x0)return;const _0x1270e1=[],_0x496eba=[];let _0x233439=_0x48af3f[_0x2bef41(0x17f)](_0x22eac3[_0x2bef41(0x3c1)][0x0]),_0x496f71=_0x48af3f[_0x2bef41(0x17f)](_0x22eac3[_0x2bef41(0x3c1)][0x0]);for(let _0x5eaf2b=_0x4efc89['length']-0x1;_0x5eaf2b>=0x0;_0x5eaf2b--){const _0x32941b={'id':_0x2bef41(0x27d),'params':{..._0x4efc89[_0x5eaf2b]}},_0x45c287={'id':_0x2bef41(0x27d),'params':{..._0x37bc9f[_0x5eaf2b]}},_0x3ee8e9=this[_0x2bef41(0x235)][_0x2bef41(0x11e)](_0x233439,_0x32941b,!0x1),_0x48a084=this[_0x2bef41(0x235)]['transformMutation'](_0x496f71,_0x45c287,!0x1);if(_0x3e8650(_0x3ee8e9))throw _0x3ee8e9['error'];if(_0x3e8650(_0x48a084))throw _0x48a084[_0x2bef41(0x3a5)];_0x1270e1[_0x2bef41(0x33e)](_0x3ee8e9[_0x2bef41(0x3bb)][_0x2bef41(0x2e1)]),_0x496eba[_0x2bef41(0x33e)](_0x48a084[_0x2bef41(0x3bb)]['params']),_0x233439=_0x3ee8e9[_0x2bef41(0x314)],_0x496f71=_0x48a084['m1Prime'];}_0x428aa0['setUndoRedoMutationParamsCache']({'undoCache':_0x1270e1,'redoCache':_0x496eba});}['_transformPreviousActiveRange'](_0x3fd45c){const _0x4da35d=_0xf86c5a,{unitID:_0x570cca}=_0x3fd45c,_0x3a24d0=this[_0x4da35d(0x410)][_0x4da35d(0x297)](_0x570cca)[_0x4da35d(0x206)](_0x192645),_0x4596d5=_0x3a24d0[_0x4da35d(0x2bb)]();if(_0x4596d5==null)return;const _0x58dfb1=[{'id':_0x4da35d(0x27d),'params':{'unitId':_0x3fd45c[_0x4da35d(0x427)],'actions':null,'textRanges':[_0x4596d5]}}],_0x233711=this[_0x4da35d(0x235)][_0x4da35d(0x1e7)](_0x3fd45c,_0x58dfb1);if(!_0x1a8f7d(_0x233711))throw _0x233711[_0x4da35d(0x3a5)];const _0x22ca64=_0x233711[_0x4da35d(0x3bb)][0x0][_0x4da35d(0x2e1)][_0x4da35d(0x2f4)];Array[_0x4da35d(0x453)](_0x22ca64)&&_0x22ca64[_0x4da35d(0x28c)]&&_0x3a24d0[_0x4da35d(0x35c)](_0x22ca64[0x0]);}};Ye=or([ht(0x0,_0x370f8c(_0x595e81)),ht(0x1,_0x285caf),ht(0x2,_0x366dfc)],Ye);var ar=Object['defineProperty'],cr=Object[_0xf86c5a(0x397)],hr=(_0x78d9ed,_0x1448ca,_0x3c15d9,_0x4dc329)=>{const _0x52a0df=_0xf86c5a;for(var _0xe8f8d6=_0x4dc329>0x1?void 0x0:_0x4dc329?cr(_0x1448ca,_0x3c15d9):_0x1448ca,_0x4879cd=_0x78d9ed[_0x52a0df(0x28c)]-0x1,_0x41c71f;_0x4879cd>=0x0;_0x4879cd--)(_0x41c71f=_0x78d9ed[_0x4879cd])&&(_0xe8f8d6=(_0x4dc329?_0x41c71f(_0x1448ca,_0x3c15d9,_0xe8f8d6):_0x41c71f(_0xe8f8d6))||_0xe8f8d6);return _0x4dc329&&_0xe8f8d6&&ar(_0x1448ca,_0x3c15d9,_0xe8f8d6),_0xe8f8d6;},De=(_0xa78522,_0x45e424)=>(_0x5b22de,_0x3b146c)=>_0x45e424(_0x5b22de,_0x3b146c,_0xa78522);let w=class extends _0x4091c9{constructor(_0x217395,_0x409212,_0xd2cc46,_0x330f28,_0x2fe2e0){const _0x364636=_0xf86c5a;super(),l(this,_0x364636(0x42e),new Map()),l(this,_0x364636(0x463),new Map()),l(this,_0x364636(0x131),!0x1),(this['_configService']=_0x217395,this[_0x364636(0xfc)]=_0x409212,this['_beforeCloseService']=_0xd2cc46,this[_0x364636(0x1f8)]=_0x330f28,this[_0x364636(0x32c)]=_0x2fe2e0,this[_0x364636(0x117)]());}[_0xf86c5a(0x237)](){const _0x1a572b=_0xf86c5a;this[_0x1a572b(0x131)]=!0x0;}[_0xf86c5a(0x1a4)](){const _0x58fce7=_0xf86c5a;this[_0x58fce7(0x131)]=!0x1;}[_0xf86c5a(0x3ab)](){const _0x4ca424=_0xf86c5a;this[_0x4ca424(0x1ee)]()[_0x4ca424(0x15f)](()=>super['dispose']());}async[_0xf86c5a(0x3ec)](_0x10af75){const _0xdb92c2=_0xf86c5a;return this['_disabled']?null:this['_localStorageService'][_0xdb92c2(0x2b1)](hs(_0x10af75));}async[_0xf86c5a(0x1ac)](_0x368ef2,_0x2f9d20){const _0x4dd6a4=_0xf86c5a;return!!this[_0x4dd6a4(0xfc)]['setItem'](_0x368ef2,_0x2f9d20);}[_0xf86c5a(0x34d)](_0x1e9ac7,_0x17a6c1,_0x6f1c1a,_0xe88ee7){const _0x5e38a1=_0xf86c5a,_0x3d5211=this[_0x5e38a1(0x32c)][_0x5e38a1(0x3bd)](_0x1e9ac7);this[_0x5e38a1(0x42e)][_0x5e38a1(0x2be)](_0x1e9ac7,{'unitID':_0x1e9ac7,'type':_0x17a6c1,'awaitingChangeset':_0x6f1c1a,'mutations':_0xe88ee7,'rev':_0x3d5211}),this['_saveTaskMap']['has'](_0x1e9ac7)||this['_scheduleSaving'](_0x1e9ac7);}[_0xf86c5a(0x455)](_0x50e8fa){const _0x161ef8=_0xf86c5a,_0x15cf3d=this[_0x161ef8(0x3cc)]();_0x15cf3d===0x0?this[_0x161ef8(0x3ca)](_0x50e8fa):this[_0x161ef8(0x463)][_0x161ef8(0x2be)](_0x50e8fa,setTimeout(()=>this[_0x161ef8(0x3ca)](_0x50e8fa),_0x15cf3d));}['_getSaveTimeout'](){const _0x2f2aa8=_0xf86c5a;var _0x30ab22;return(_0x30ab22=this[_0x2f2aa8(0x2ae)][_0x2f2aa8(0x1bf)](wn))!=null?_0x30ab22:Pn;}[_0xf86c5a(0x3ca)](_0x15d22b){const _0xdb4c3d=_0xf86c5a,_0x72fc43=this[_0xdb4c3d(0x463)][_0xdb4c3d(0x175)](_0x15d22b);return _0x72fc43!==void 0x0&&window[_0xdb4c3d(0x3da)](_0x72fc43),this[_0xdb4c3d(0xfc)][_0xdb4c3d(0x30b)](hs(_0x15d22b),this['_cachedData']['get'](_0x15d22b))['then'](()=>this['_saveTaskMap'][_0xdb4c3d(0x107)](_0x15d22b));}async[_0xf86c5a(0x1ee)](){const _0x2019ec=_0xf86c5a,_0x9ac890=[];this[_0x2019ec(0x463)][_0x2019ec(0x26c)]((_0x1f3497,_0x40d432)=>{const _0x7b907f=_0x2019ec;window[_0x7b907f(0x3da)](_0x1f3497),_0x9ac890['push'](this[_0x7b907f(0x3ca)](_0x40d432)[_0x7b907f(0x15f)](()=>{const _0x138a9b=_0x7b907f;this['_saveTaskMap'][_0x138a9b(0x107)](_0x40d432);}));}),await Promise[_0x2019ec(0x34b)](_0x9ac890);}[_0xf86c5a(0x117)](){const _0x356a9e=_0xf86c5a;this[_0x356a9e(0x177)](this[_0x356a9e(0x243)][_0x356a9e(0x2cb)](()=>{const _0x26627f=_0x356a9e;if(this[_0x26627f(0x463)][_0x26627f(0x46a)])return this[_0x26627f(0x1f8)]['t'](_0x26627f(0x398));}));}};w=hr([De(0x0,_0x5bc7de),De(0x1,_0x5d2dbc),De(0x2,_0x4cf196),De(0x3,_0x370f8c(_0x2673bf)),De(0x4,_0x370f8c(_0x4a413b))],w);function hs(_0x52a3bc){const _0x2c7c87=_0xf86c5a;return _0x2c7c87(0x2a5)+_0x52a3bc;}var lr=Object[_0xf86c5a(0xfa)],_r=Object[_0xf86c5a(0x397)],ur=(_0x4aa16f,_0x39c46b,_0x2173ca,_0x16cad6)=>{for(var _0x100365=_0x16cad6>0x1?void 0x0:_0x16cad6?_r(_0x39c46b,_0x2173ca):_0x39c46b,_0x280335=_0x4aa16f['length']-0x1,_0x58d963;_0x280335>=0x0;_0x280335--)(_0x58d963=_0x4aa16f[_0x280335])&&(_0x100365=(_0x16cad6?_0x58d963(_0x39c46b,_0x2173ca,_0x100365):_0x58d963(_0x100365))||_0x100365);return _0x16cad6&&_0x100365&&lr(_0x39c46b,_0x2173ca,_0x100365),_0x100365;},lt=(_0x265445,_0x5c172b)=>(_0x6ee857,_0x308078)=>_0x5c172b(_0x6ee857,_0x308078,_0x265445);function dr(_0x248050){const _0x3fb656=_0xf86c5a,{unitID:_0x5107a9,mutations:_0x50cd7d}=_0x248050;return{'unitId':_0x5107a9,'subUnitId':_0x50cd7d[0x0][_0x3fb656(0x2e1)]['subUnitId']};}let Ke=class{constructor(_0x3ea11e,_0x4e92a3,_0x1ec2d9){const _0x5a5f9c=_0xf86c5a;this[_0x5a5f9c(0x22b)]=_0x3ea11e,this['_transformService']=_0x4e92a3,this[_0x5a5f9c(0x1e6)]=_0x1ec2d9;}[_0xf86c5a(0xfb)](_0x1b02a9){const _0x21d82c=_0xf86c5a;var _0x119114,_0x2fa3d3,_0x576ceb,_0x179e6c;const _0x5b021f=this[_0x21d82c(0x22b)][_0x21d82c(0x175)](_0x48f502),{unitId:_0x2734d4,subUnitId:_0x4dac0a}=dr(_0x1b02a9),_0x2d3599=_0x5b021f[_0x21d82c(0x203)](_0x2734d4)[_0x21d82c(0x2ac)](),_0x346bec=(_0x2fa3d3=(_0x119114=this[_0x21d82c(0x1e6)][_0x21d82c(0x301)](_0x2734d4))==null?void 0x0:_0x119114[_0x21d82c(0x204)]())==null?void 0x0:_0x2fa3d3[_0x21d82c(0x300)]();if(_0x2d3599[_0x21d82c(0x28c)]===0x0||!_0x2734d4||!_0x4dac0a)return;const _0xc2d33b=[{'id':_0x2113e6['id'],'params':{'unitId':_0x2734d4,'subUnitId':_0x346bec,'selections':_0x48af3f[_0x21d82c(0x17f)](_0x2d3599)}}],_0x21831f=this[_0x21d82c(0x235)][_0x21d82c(0x1e7)](_0x1b02a9,_0xc2d33b);if(!_0x1a8f7d(_0x21831f))throw _0x21831f[_0x21d82c(0x3a5)];const _0xfd2630=(_0x179e6c=(_0x576ceb=_0x21831f[_0x21d82c(0x3bb)][0x0])==null?void 0x0:_0x576ceb[_0x21d82c(0x2e1)])==null?void 0x0:_0x179e6c[_0x21d82c(0x201)];if(Array['isArray'](_0xfd2630)&&_0xfd2630[_0x21d82c(0x28c)]){if(_0xfd2630['length']===_0xc2d33b[0x0][_0x21d82c(0x2e1)][_0x21d82c(0x201)][_0x21d82c(0x28c)]&&_0xfd2630[_0x21d82c(0x2d7)]((_0x36d868,_0x41b414)=>_0x426027[_0x21d82c(0x43d)](_0x36d868[_0x21d82c(0x420)],_0xc2d33b[0x0]['params'][_0x21d82c(0x201)][_0x41b414]['range'])))return;this[_0x21d82c(0x22b)]['get'](_0x225d18)[_0x21d82c(0x1b5)](_0x2113e6['id'],{'unitId':_0x2734d4,'subUnitId':_0x346bec,'selections':_0xfd2630});}}};Ke=ur([lt(0x0,_0x370f8c(_0x595e81)),lt(0x1,_0x285caf),lt(0x2,_0x5edd3d)],Ke);const tt=_0x2452f4(_0xf86c5a(0x2f8));var Vs=(_0x37afc3=>(_0x37afc3[_0x37afc3[_0xf86c5a(0x196)]=0x0]=_0xf86c5a(0x196),_0x37afc3[_0x37afc3[_0xf86c5a(0x1b0)]=0x1]='OTHER_CLIENTS_EDITING',_0x37afc3))(Vs||{});const ls=0x7530,_s=_0xf86c5a(0x215);class fr extends _0x4091c9{constructor(){const _0x4bddfb=_0xf86c5a;super(),l(this,_0x4bddfb(0x2f9),_0x48af3f[_0x4bddfb(0x3a3)]()),l(this,_0x4bddfb(0x3c0),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x4bddfb(0x266),null),l(this,_0x4bddfb(0x3b9),new Map()),l(this,_0x4bddfb(0x169),new Map()),this[_0x4bddfb(0x30d)]();}[_0xf86c5a(0x3ab)](){const _0x4aa539=_0xf86c5a;super[_0x4aa539(0x3ab)](),this[_0x4aa539(0x3b9)]['forEach']((_0xf43e45,_0x1a0c9b)=>this[_0x4aa539(0x1da)](_0x1a0c9b)),this['_heartbeatTimer']&&window[_0x4aa539(0x341)](this['_heartbeatTimer']);}[_0xf86c5a(0xf8)](_0x5a9c7a){const _0x37f95b=_0xf86c5a;return this[_0x37f95b(0x36f)](_0x5a9c7a)['pipe'](_0x30a823());}[_0xf86c5a(0x2d1)](_0xfe0467){const _0x24f4b7=_0xf86c5a;this[_0x24f4b7(0x3c0)][_0x24f4b7(0x46a)]===0x0&&this[_0x24f4b7(0x19c)](),this['_selfUnitIDs'][_0x24f4b7(0x1e9)](_0xfe0467),this[_0x24f4b7(0x144)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xfe0467],'isForwarded':!0x1});}['disposeUnit'](_0x816d98){const _0x396704=_0xf86c5a;this[_0x396704(0x3c0)][_0x396704(0x107)](_0x816d98),this[_0x396704(0x3c0)][_0x396704(0x46a)]===0x0&&this[_0x396704(0x266)]&&window[_0x396704(0x341)](this[_0x396704(0x266)]);}[_0xf86c5a(0x30d)](){const _0x27a254=_0xf86c5a;this[_0x27a254(0x177)](_0x441a7c(_0x40fa2a(window,_0x27a254(0x3eb))[_0x27a254(0x1c3)](_0x1fd67b=>{const _0x6c9db2=_0x27a254;if(_0x1fd67b[_0x6c9db2(0x3e8)]!==_s||!_0x1fd67b[_0x6c9db2(0x33d)])return;const _0x4c2c35=JSON[_0x6c9db2(0x3c7)](_0x1fd67b['newValue']);this[_0x6c9db2(0x393)](_0x4c2c35);}))),window[_0x27a254(0x3ed)]('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x27a254(0x37d)](this[_0x27a254(0x3c0)])}));}[_0xf86c5a(0x393)](_0x280892){const _0x4a3722=_0xf86c5a;switch(_0x280892[_0x4a3722(0x246)]){case 0x0:this[_0x4a3722(0x269)](_0x280892);break;case 0x1:this['_handleLeaveEvent'](_0x280892);break;case 0x2:this[_0x4a3722(0x286)](_0x280892);break;}}[_0xf86c5a(0x269)](_0x192b16){const _0x4f02e3=_0xf86c5a,{unitIDs:_0x1e8246,memberID:_0x977137,isForwarded:_0x10404b}=_0x192b16;_0x1e8246[_0x4f02e3(0x26c)](_0x2ecb49=>{const _0x3fd431=_0x4f02e3;if(!_0x10404b&&this[_0x3fd431(0x2e9)][_0x3fd431(0x1f5)](_0x2ecb49)&&this[_0x3fd431(0x36f)](_0x2ecb49)[_0x3fd431(0x23f)](0x1),!this[_0x3fd431(0x2e9)]['has'](_0x2ecb49)||!this['_unitOnClients']['get'](_0x2ecb49)[_0x3fd431(0x1f5)](_0x977137)){const _0x1ff43e=this[_0x3fd431(0x2e9)][_0x3fd431(0x175)](_0x2ecb49)||new Set();_0x1ff43e[_0x3fd431(0x1e9)](_0x977137),this[_0x3fd431(0x2e9)][_0x3fd431(0x2be)](_0x2ecb49,_0x1ff43e),this[_0x3fd431(0x36e)](_0x977137);}}),_0x10404b||this[_0x4f02e3(0x144)]({'type':0x0,'memberID':this[_0x4f02e3(0x2f9)],'unitIDs':[...this[_0x4f02e3(0x3c0)]],'isForwarded':!0x0});}[_0xf86c5a(0x36e)](_0x25786e){const _0x1189c6=_0xf86c5a;this[_0x1189c6(0x1da)](_0x25786e);const _0x18a817=window[_0x1189c6(0x21e)](()=>{const _0x5c2d44=_0x1189c6;this['_unitOnClients'][_0x5c2d44(0x26c)](_0x2fbabe=>{_0x2fbabe['delete'](_0x25786e);});},ls*0x2);this[_0x1189c6(0x3b9)][_0x1189c6(0x2be)](_0x25786e,_0x18a817);}[_0xf86c5a(0x1da)](_0x44c812){const _0x47e01f=_0xf86c5a;if(this['_clearOtherTimers'][_0x47e01f(0x1f5)](_0x44c812)){const _0x230865=this[_0x47e01f(0x3b9)][_0x47e01f(0x175)](_0x44c812);_0x230865&&window[_0x47e01f(0x3da)](_0x230865),this[_0x47e01f(0x3b9)][_0x47e01f(0x2be)](_0x44c812,null);}}[_0xf86c5a(0x41d)](_0x211e0d){const _0x4f60ac=_0xf86c5a,{memberID:_0x6d4465,unitIDs:_0x238591}=_0x211e0d;_0x238591[_0x4f60ac(0x26c)](_0x10430d=>{const _0x5c2e1f=_0x4f60ac;var _0x44fb10;const _0x313682=this[_0x5c2e1f(0x2e9)][_0x5c2e1f(0x175)](_0x10430d);_0x313682&&(_0x313682[_0x5c2e1f(0x107)](_0x6d4465),(_0x44fb10=this[_0x5c2e1f(0x36f)](_0x10430d))==null||_0x44fb10[_0x5c2e1f(0x23f)](_0x313682[_0x5c2e1f(0x46a)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x6d4465);}[_0xf86c5a(0x286)](_0x23b8a9){const _0xd5f7e1=_0xf86c5a;this[_0xd5f7e1(0x36e)](_0x23b8a9[_0xd5f7e1(0x192)]);}['_send'](_0x320b92){const _0x174611=_0xf86c5a;localStorage['setItem'](_s,JSON[_0x174611(0x28b)](_0x320b92));}[_0xf86c5a(0x19c)](){const _0x4a5a30=_0xf86c5a;this[_0x4a5a30(0x266)]=window[_0x4a5a30(0x238)](()=>{const _0x3cd833=_0x4a5a30;this['_send']({'type':0x2,'memberID':this[_0x3cd833(0x2f9)]});},ls);}[_0xf86c5a(0x36f)](_0x585123){const _0x105100=_0xf86c5a;return this['_unitStatus'][_0x105100(0x1f5)](_0x585123)||this[_0x105100(0x169)]['set'](_0x585123,new _0x52cf76(0x0)),this[_0x105100(0x169)][_0x105100(0x175)](_0x585123);}}function Fs(_0x4e0d47){const _0x548de4=_0xf86c5a;let _0x44c3d8='';for(const _0x52cf of _0x4e0d47){const {startOffset:_0x39e89a,endOffset:_0x162700,isActive:_0x59a327}=_0x52cf;_0x44c3d8[_0x548de4(0x28c)]&&(_0x44c3d8+=','),_0x44c3d8+=_0x39e89a+':'+_0x162700+':'+(_0x59a327?'1':'0');}return _0x44c3d8;}function mr(_0x554276){const _0x51fd9c=_0xf86c5a,_0x403040=_0x554276[_0x51fd9c(0x308)](','),_0x2fc164=[];for(const _0x2f53ff of _0x403040){const [_0x133e61,_0x280c69,_0x3725e3]=_0x2f53ff['split'](':');_0x2fc164[_0x51fd9c(0x106)]({'startOffset':Number(_0x133e61),'endOffset':Number(_0x280c69),'collapsed':_0x133e61===_0x280c69,'isActive':_0x3725e3==='1'});}return _0x2fc164[_0x51fd9c(0x2a3)](_0x1f1010=>_0x1f1010[_0x51fd9c(0x328)])||(_0x2fc164[0x0][_0x51fd9c(0x328)]=!0x0),_0x2fc164;}class Ft extends _0x27d368{constructor(){const _0xd58de1=_0xf86c5a;super(...arguments),l(this,_0xd58de1(0x200),new _0x52cf76(null)),l(this,'collabCursorState$',this[_0xd58de1(0x200)][_0xd58de1(0x377)]());}[_0xf86c5a(0x411)](_0x5a77a0){const _0x23b3b2=_0xf86c5a,{unitID:_0x40ceb7,memberID:_0x2b1840,textRanges:_0x268cf2}=_0x5a77a0,_0x9abcf0=Fs(_0x268cf2),_0x38f14b={'unitID':_0x40ceb7,'memberID':_0x2b1840,'selection':_0x9abcf0};this['_collabCursorState$'][_0x23b3b2(0x23f)](_0x38f14b);}}var gr=Object['defineProperty'],Sr=Object[_0xf86c5a(0x397)],pr=(_0x2f8759,_0x2edcc3,_0x23936c,_0x418103)=>{const _0x4003a6=_0xf86c5a;for(var _0x3cf5ac=_0x418103>0x1?void 0x0:_0x418103?Sr(_0x2edcc3,_0x23936c):_0x2edcc3,_0x53d864=_0x2f8759[_0x4003a6(0x28c)]-0x1,_0x3ec589;_0x53d864>=0x0;_0x53d864--)(_0x3ec589=_0x2f8759[_0x53d864])&&(_0x3cf5ac=(_0x418103?_0x3ec589(_0x2edcc3,_0x23936c,_0x3cf5ac):_0x3ec589(_0x3cf5ac))||_0x3cf5ac);return _0x418103&&_0x3cf5ac&&gr(_0x2edcc3,_0x23936c,_0x3cf5ac),_0x3cf5ac;},us=(_0x8fae3c,_0x128f06)=>(_0x36de32,_0x140b2b)=>_0x128f06(_0x36de32,_0x140b2b,_0x8fae3c);let Xe=class{constructor(_0x285a37,_0x270d62){const _0x1c42f0=_0xf86c5a;this[_0x1c42f0(0x22b)]=_0x285a37,this[_0x1c42f0(0x235)]=_0x270d62;}['transformSelections'](_0x4ded27){const _0x1a4294=_0xf86c5a;var _0x176b9e;const _0x1af3a8=this[_0x1a4294(0x22b)]['get'](_0x4562e0),_0x17a570=(_0x176b9e=_0x1af3a8[_0x1a4294(0x2c9)]())!=null?_0x176b9e:[];if(_0x17a570['length']===0x0)return;const _0x485769=[{'id':_0x1a4294(0x27d),'params':{'unitId':_0x4ded27[_0x1a4294(0x427)],'actions':null,'textRanges':_0x17a570}}],_0x65b51d=this[_0x1a4294(0x235)][_0x1a4294(0x1e7)](_0x4ded27,_0x485769);if(!_0x1a8f7d(_0x65b51d))throw _0x65b51d['error'];const _0x27a956=_0x65b51d[_0x1a4294(0x3bb)][0x0][_0x1a4294(0x2e1)]['textRanges'];Array[_0x1a4294(0x453)](_0x27a956)&&_0x27a956['length']&&_0x1af3a8['replaceTextRanges'](_0x27a956,!0x1);}};Xe=pr([us(0x0,_0x370f8c(_0x595e81)),us(0x1,_0x285caf)],Xe);function _0x556d(_0x4eb2ff,_0x2ccb18){const _0x4a74cf=_0x4a74();return _0x556d=function(_0x556d8b,_0x55b111){_0x556d8b=_0x556d8b-0xe3;let _0x2c23be=_0x4a74cf[_0x556d8b];return _0x2c23be;},_0x556d(_0x4eb2ff,_0x2ccb18);}const vr=new Set([_0x3bebbc['id']]);function ds(_0x279c02,_0x129205,_0x31a078,_0x397870,_0x400f2b){const _0x5921fa=_0xf86c5a;var _0x4682cd,_0x5a43d1,_0x5795bb,_0x3873b5;const _0x3cd9c9=[];for(const _0x560748 of _0x279c02)if(vr[_0x5921fa(0x1f5)](_0x560748['id'])){if(_0x3cd9c9[_0x5921fa(0x28c)]>0x0)break;_0x3cd9c9['push'](_0x560748);break;}else _0x3cd9c9[_0x5921fa(0x106)](_0x560748);const _0x2db13c=(_0x5a43d1=(_0x4682cd=_0x400f2b['getCurrentUser']())==null?void 0x0:_0x4682cd[_0x5921fa(0x2b2)])!=null?_0x5a43d1:_0x5921fa(0x433),_0x29a7e7=(_0x3873b5=(_0x5795bb=_0x400f2b['getCurrentUser']())==null?void 0x0:_0x5795bb['memberID'])!=null?_0x3873b5:'unknown';return{'changeset':{'unitID':_0x129205,'type':_0xe9c082(_0x31a078[_0x5921fa(0x159)](_0x129205)),'baseRev':_0x397870[_0x5921fa(0x3bd)](_0x129205),'revision':0x0,'userID':_0x2db13c,'memberID':_0x29a7e7,'mutations':_0x3cd9c9},'pendingMutations':_0x279c02[_0x5921fa(0x42c)](_0x3cd9c9[_0x5921fa(0x28c)])};}function Ir(_0x5dd301,_0x4086cd,_0x33cdbc,_0x4e0bf5,_0x3a96eb){const _0x136c21=_0xf86c5a;var _0xa122a3,_0x29879a,_0x3756c9,_0x40affd;const _0x202572=[_0x5dd301[_0x136c21(0x326)]((_0x13a278,_0xbb1c8e)=>{const _0x82623f=_0x136c21;var _0x15e954;const {id:_0x12deaa}=_0x13a278,{id:_0x59b4d8,type:_0x1dd3d0}=_0xbb1c8e,_0x1ce947=(_0x15e954=_0x13a278[_0x82623f(0x2e1)])!=null?_0x15e954:{'actions':null},_0x27cc32=_0xbb1c8e[_0x82623f(0x2e1)];if(_0x12deaa&&_0x12deaa!==_0x59b4d8)throw new Error(_0x82623f(0x295)+_0x12deaa+_0x82623f(0x3be)+_0x59b4d8+'.');return{..._0x13a278,'id':_0x59b4d8,'type':_0x1dd3d0,'params':{'unitId':_0x27cc32[_0x82623f(0x25d)],'textRanges':_0x27cc32[_0x82623f(0x2f4)],'actions':_0x1d6dc3[_0x82623f(0x154)](_0x1ce947[_0x82623f(0x3e1)],_0x27cc32[_0x82623f(0x3e1)])}};},{})],_0x2af378=(_0x29879a=(_0xa122a3=_0x3a96eb[_0x136c21(0x1a7)]())==null?void 0x0:_0xa122a3[_0x136c21(0x2b2)])!=null?_0x29879a:'unknown',_0x54cca0=(_0x40affd=(_0x3756c9=_0x3a96eb[_0x136c21(0x1a7)]())==null?void 0x0:_0x3756c9[_0x136c21(0x192)])!=null?_0x40affd:_0x136c21(0x433);return{'changeset':{'unitID':_0x4086cd,'type':_0xe9c082(_0x33cdbc['getUnitType'](_0x4086cd)),'baseRev':_0x4e0bf5[_0x136c21(0x3bd)](_0x4086cd),'revision':0x0,'userID':_0x2af378,'memberID':_0x54cca0,'mutations':_0x202572},'pendingMutations':[]};}const Er={'id':_0xbc7763['id'],'type':_0x19c41e[_0xf86c5a(0x108)],'params':{}};var Cr=Object['defineProperty'],br=Object['getOwnPropertyDescriptor'],_e=(_0x566755,_0x2a919e,_0x406bed,_0x29310e)=>{const _0x22941b=_0xf86c5a;for(var _0x1a6f5f=_0x29310e>0x1?void 0x0:_0x29310e?br(_0x2a919e,_0x406bed):_0x2a919e,_0x2319cd=_0x566755[_0x22941b(0x28c)]-0x1,_0x5a4922;_0x2319cd>=0x0;_0x2319cd--)(_0x5a4922=_0x566755[_0x2319cd])&&(_0x1a6f5f=(_0x29310e?_0x5a4922(_0x2a919e,_0x406bed,_0x1a6f5f):_0x5a4922(_0x1a6f5f))||_0x1a6f5f);return _0x29310e&&_0x1a6f5f&&Cr(_0x2a919e,_0x406bed,_0x1a6f5f),_0x1a6f5f;},m=(_0x13e166,_0x2728f2)=>(_0x5a2018,_0x40af21)=>_0x2728f2(_0x5a2018,_0x40af21,_0x13e166),P=(_0x5d3fb5=>(_0x5d3fb5[_0xf86c5a(0x239)]=_0xf86c5a(0x32b),_0x5d3fb5['SYNCED']=_0xf86c5a(0x2aa),_0x5d3fb5[_0xf86c5a(0x3fe)]='pending',_0x5d3fb5[_0xf86c5a(0x120)]=_0xf86c5a(0x34e),_0x5d3fb5[_0xf86c5a(0x14c)]=_0xf86c5a(0x33a),_0x5d3fb5['FETCH_MISS']=_0xf86c5a(0x322),_0x5d3fb5[_0xf86c5a(0x1d4)]='conflict',_0x5d3fb5['OFFLINE']=_0xf86c5a(0x123),_0x5d3fb5))(P||{});class ue{constructor(_0x1c416d,_0x230fc8,_0x575db3,_0x173ad8,_0x3c3a60,_0x26f784,_0x22ee6e,_0xc01cb,_0x5d797d){const _0x423f8d=_0xf86c5a;l(this,_0x423f8d(0x25b),null),l(this,_0x423f8d(0x26a),[]),(this[_0x423f8d(0x427)]=_0x1c416d,this[_0x423f8d(0x246)]=_0x230fc8,this['_handler']=_0x3c3a60,this['_commandService']=_0x26f784,this[_0x423f8d(0x17b)]=_0x22ee6e,this['_revisionService']=_0xc01cb,this[_0x423f8d(0x373)]=_0x5d797d,this[_0x423f8d(0x25b)]=_0x575db3,this['_pendingMutations']=_0x173ad8);}[_0xf86c5a(0x2ea)](_0x3df124){const _0x194ae4=_0xf86c5a,_0x5debbc=this[_0x194ae4(0x32c)][_0x194ae4(0x3bd)](this[_0x194ae4(0x427)]);return _0x3df124[_0x194ae4(0x31b)]>_0x5debbc+0x1?(this[_0x194ae4(0x43a)][_0x194ae4(0x454)]({'from':_0x5debbc,'to':_0x3df124[_0x194ae4(0x31b)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x7d37c7){const _0x531d8a=_0xf86c5a;this[_0x531d8a(0x17b)][_0x531d8a(0x40c)](this[_0x531d8a(0x427)],_0x7d37c7);}[_0xf86c5a(0x39e)](_0x3e0f3e){const _0x3640b2=_0xf86c5a;var _0x4b00f9,_0x31782a;(_0x31782a=(_0x4b00f9=this['_handler'])[_0x3640b2(0x1ed)])==null||_0x31782a[_0x3640b2(0x1ce)](_0x4b00f9,_0x3e0f3e);}[_0xf86c5a(0x229)](_0x3c7934){const _0x2fcd53=_0xf86c5a;var _0x41f642,_0x25f42e;return(_0x25f42e=(_0x41f642=this['_handler'])[_0x2fcd53(0x43e)])==null?void 0x0:_0x25f42e[_0x2fcd53(0x1ce)](_0x41f642,_0x3c7934);}['_transformRemoteChangesetByIMECache'](_0x39e9f7){const _0x30aa05=_0xf86c5a;var _0x31d59,_0x16c44b,_0x1e3c23;return(_0x1e3c23=(_0x16c44b=(_0x31d59=this[_0x30aa05(0x43a)])[_0x30aa05(0x288)])==null?void 0x0:_0x16c44b[_0x30aa05(0x1ce)](_0x31d59,_0x39e9f7))!=null?_0x1e3c23:_0x39e9f7;}[_0xf86c5a(0x24b)](_0x5a6f2d){const _0x562bb9=_0xf86c5a;var _0x12f248,_0x15792f;if(this['type']===k[_0x562bb9(0x320)]){const {unitID:_0x10f0dc,mutations:_0x1cfefa,memberID:_0x4ef000}=_0x5a6f2d,_0x1ece2b=_0x1cfefa[0x0][_0x562bb9(0x2e1)][_0x562bb9(0x2f4)];Array['isArray'](_0x1ece2b)&&_0x1ece2b[_0x562bb9(0x28c)]>0x0&&((_0x15792f=(_0x12f248=this[_0x562bb9(0x43a)])['onSyncEditingCollabCursor'])==null||_0x15792f['call'](_0x12f248,{'unitID':_0x10f0dc,'memberID':_0x4ef000,'textRanges':_0x1ece2b}));}}['_updateLocalCache'](){const _0x4ec868=_0xf86c5a;this[_0x4ec868(0x373)][_0x4ec868(0x34d)](this[_0x4ec868(0x427)],this[_0x4ec868(0x246)],this[_0x4ec868(0x25b)],this[_0x4ec868(0x26a)]);}[_0xf86c5a(0xf4)](){const _0x2c5ca2=_0xf86c5a;return this[_0x2c5ca2(0x32c)][_0x2c5ca2(0x3bd)](this[_0x2c5ca2(0x427)]);}[_0xf86c5a(0x3a8)](){this['_revisionService']['incrementRevOfUnit'](this['unitID']);}[_0xf86c5a(0x38d)](_0x24354d){const _0x348b91=_0xf86c5a;var _0x4eadbc;const _0x177f69=this[_0x348b91(0x1c2)](_0x24354d),_0x1784e0=_0x240915(_0x177f69['mutations'],this[_0x348b91(0x456)],{'fromCollab':!0x0});if(!_0x1784e0[_0x348b91(0x467)])throw _0x1784e0[_0x348b91(0x3a5)]instanceof Error?_0x1784e0[_0x348b91(0x3a5)]:new Error((_0x4eadbc=_0x1784e0[_0x348b91(0x3a5)])!=null?_0x4eadbc:_0x348b91(0x141));this['_transformIMECache'](_0x177f69),this[_0x348b91(0x194)](_0x24354d),this['_transformSelections'](_0x177f69),this[_0x348b91(0x24b)](_0x177f69),this['_incrementRevisionNumber']();}}let pe=class extends ue{constructor(_0x5cc4ff,_0x1bcad6,_0x46aac3,_0x4d02c9,_0x256ce9,_0x10e26d,_0x1760af,_0x55e2f3,_0x48ab08,_0x3d80a5){const _0x19bb17=_0xf86c5a;super(_0x5cc4ff,_0x1bcad6,null,[],_0x46aac3,_0x55e2f3,_0x1760af,_0x4d02c9,_0x256ce9),l(this,_0x19bb17(0x29a),'synced'),(this[_0x19bb17(0x22b)]=_0x10e26d,this['_logService']=_0x48ab08,this[_0x19bb17(0x235)]=_0x3d80a5);}[_0xf86c5a(0x2d3)](_0x5020af){const _0x298fab=_0xf86c5a,_0x33cc66=this[_0x298fab(0x22b)][_0x298fab(0x45e)](X,this[_0x298fab(0x427)],this['type'],[_0x5020af],this[_0x298fab(0x43a)]);return _0x33cc66[_0x298fab(0x272)](),_0x33cc66[_0x298fab(0x311)](),_0x33cc66;}[_0xf86c5a(0x19d)](_0x38ff1d){const _0x15bf0d=_0xf86c5a;if(this[_0x15bf0d(0x2ea)](_0x38ff1d))return this[_0x15bf0d(0x22b)][_0x15bf0d(0x45e)](B,this[_0x15bf0d(0x427)],this[_0x15bf0d(0x246)],null,[],null,[_0x38ff1d],this[_0x15bf0d(0x43a)]);try{const _0x5a82cc=this[_0x15bf0d(0x235)][_0x15bf0d(0x1e7)](_0x38ff1d,[Er]);if(_0x1a8f7d(_0x5a82cc)){const {c1Prime:_0x2a1cc3}=_0x5a82cc;return this[_0x15bf0d(0x38d)](_0x2a1cc3),this;}throw _0x5a82cc[_0x15bf0d(0x3a5)];}catch(_0x5d6a61){return this[_0x15bf0d(0x435)][_0x15bf0d(0x3a5)](_0x5d6a61),this[_0x15bf0d(0x447)](!0x1);}}['_onConflict'](_0x5b0e46){const _0x2a7422=_0xf86c5a;return this[_0x2a7422(0x22b)][_0x2a7422(0x45e)](ee,this[_0x2a7422(0x427)],this[_0x2a7422(0x246)],null,[],this[_0x2a7422(0x43a)],_0x5b0e46);}['onRemoteAck'](){const _0x2b1d9a=_0xf86c5a;throw new Error(_0x2b1d9a(0x31d));}[_0xf86c5a(0x37b)](){const _0x23456d=_0xf86c5a;throw new Error(_0x23456d(0x41c));}[_0xf86c5a(0x22c)](){const _0x1b2f58=_0xf86c5a;return this[_0x1b2f58(0x22b)][_0x1b2f58(0x45e)](te,this[_0x1b2f58(0x427)],this[_0x1b2f58(0x246)],null,[],this[_0x1b2f58(0x43a)]);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0x233bd2=_0xf86c5a;throw new Error(_0x233bd2(0x37c));}[_0xf86c5a(0x3db)](){const _0x1aef9a=_0xf86c5a,_0x37b55e=this[_0x1aef9a(0x32c)][_0x1aef9a(0x3bd)](this['unitID']);return this[_0x1aef9a(0x43a)]['onMissingChangesets']({'from':_0x37b55e,'to':0x0}),this['_injector'][_0x1aef9a(0x45e)](B,this['unitID'],this['type'],null,[],null,[],this[_0x1aef9a(0x43a)]);}};pe=_e([m(0x3,_0x370f8c(_0x4a413b)),m(0x4,_0x370f8c(w)),m(0x5,_0x370f8c(_0x595e81)),m(0x6,_0x47fb5c),m(0x7,_0x225d18),m(0x8,_0x593f47),m(0x9,_0x285caf)],pe);let X=class extends ue{constructor(_0x4ac1c2,_0xef2a7f,_0x1e733d,_0x5ab210,_0x246357,_0x528051,_0x5e7522,_0x139680,_0x269144,_0x3bb5ab,_0x248d02,_0xb01316,_0x21fecf,_0x5930ae){const _0x14da02=_0xf86c5a;super(_0x4ac1c2,_0xef2a7f,null,_0x1e733d,_0x5ab210,_0x3bb5ab,_0x5930ae,_0x528051,_0x5e7522),l(this,_0x14da02(0x29a),_0x14da02(0x2de)),l(this,_0x14da02(0x205),null),l(this,_0x14da02(0x1f9),null),(this['_injector']=_0x246357,this[_0x14da02(0x34f)]=_0x139680,this[_0x14da02(0x435)]=_0x269144,this[_0x14da02(0x2ae)]=_0x248d02,this['_transformService']=_0xb01316,this[_0x14da02(0x358)]=_0x21fecf);}[_0xf86c5a(0x2d3)](_0xf35e0c){const _0xdfed5b=_0xf86c5a;return this['_pendingMutations']['push'](_0xf35e0c),this[_0xdfed5b(0x311)](),this;}['onRemoteChangeset'](_0x49c61c){const _0x5622dd=_0xf86c5a;if(this['_checkMissing'](_0x49c61c))return this[_0x5622dd(0x3e5)](),this[_0x5622dd(0x22b)][_0x5622dd(0x45e)](B,this[_0x5622dd(0x427)],this[_0x5622dd(0x246)],null,this['_pendingMutations'],null,[_0x49c61c],this[_0x5622dd(0x43a)]);try{const _0x37025f=this[_0x5622dd(0x235)][_0x5622dd(0x1e7)](_0x49c61c,this[_0x5622dd(0x26a)]);if(_0x1a8f7d(_0x37025f)){const {c1Prime:_0x317c07,m2Prime:_0x26102f}=_0x37025f;this['_executeRemoteChangeset'](_0x317c07);const _0x85d81=this[_0x5622dd(0x22b)]['createInstance'](X,this[_0x5622dd(0x427)],this[_0x5622dd(0x246)],_0x26102f,this[_0x5622dd(0x43a)]);return this[_0x5622dd(0x3e5)](),_0x85d81['_schedule'](this[_0x5622dd(0x205)]?Math[_0x5622dd(0x2ee)](0x0,new Date()[_0x5622dd(0x222)]()-this[_0x5622dd(0x205)]):this[_0x5622dd(0x430)]()),_0x85d81;}throw _0x37025f['error'];}catch(_0x34fec4){return this[_0x5622dd(0x435)][_0x5622dd(0x3a5)](_0x34fec4),this[_0x5622dd(0x447)](!0x1);}}[_0xf86c5a(0xea)](){const _0x3da646=_0xf86c5a;throw new Error(_0x3da646(0x3e4));}[_0xf86c5a(0x37b)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0xf86c5a(0x22c)](){const _0x4a02ff=_0xf86c5a;return this[_0x4a02ff(0x3e5)](),this[_0x4a02ff(0x22b)][_0x4a02ff(0x45e)](te,this[_0x4a02ff(0x427)],this[_0x4a02ff(0x246)],null,this[_0x4a02ff(0x26a)],this['_handler']);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x272)](_0x5deead){const _0x37c538=_0xf86c5a,_0xfe5df1=_0x5deead!=null?_0x5deead:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x37c538(0x222)](),this[_0x37c538(0x1f9)]=window[_0x37c538(0x21e)](()=>{const _0x4cef7b=_0x37c538;this[_0x4cef7b(0x3e5)]();let _0x1443e1=null;switch(this['type']){case k[_0x4cef7b(0x1af)]:{_0x1443e1=ds(this[_0x4cef7b(0x26a)],this[_0x4cef7b(0x427)],this['_univerInstanceService'],this['_revisionService'],this[_0x4cef7b(0x34f)]);break;}case k[_0x4cef7b(0x320)]:{this[_0x4cef7b(0x26a)]['every'](_0x4361bf=>_0x4361bf['id']===_0x21b448['id'])?_0x1443e1=Ir(this[_0x4cef7b(0x26a)],this[_0x4cef7b(0x427)],this[_0x4cef7b(0x358)],this['_revisionService'],this[_0x4cef7b(0x34f)]):_0x1443e1=ds(this[_0x4cef7b(0x26a)],this['unitID'],this[_0x4cef7b(0x358)],this[_0x4cef7b(0x32c)],this[_0x4cef7b(0x34f)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4cef7b(0x246)]+_0x4cef7b(0x3b4));}const {changeset:_0x3d0970,pendingMutations:_0x413776}=_0x1443e1;this['_handler'][_0x4cef7b(0x43b)](_0x3d0970);const _0x4bb80d=_0x413776[_0x4cef7b(0x28c)]?this['_injector'][_0x4cef7b(0x45e)](q,this['unitID'],this[_0x4cef7b(0x246)],_0x3d0970,_0x413776,this[_0x4cef7b(0x43a)]):this[_0x4cef7b(0x22b)][_0x4cef7b(0x45e)](Q,this[_0x4cef7b(0x427)],this[_0x4cef7b(0x246)],_0x3d0970,this[_0x4cef7b(0x43a)]);_0x4bb80d[_0x4cef7b(0x311)](),this['_handler'][_0x4cef7b(0x101)](this,_0x4bb80d);},_0xfe5df1);}[_0xf86c5a(0x430)](){const _0x3b8c7f=_0xf86c5a;var _0x1c6b60;const _0x5f2526=this[_0x3b8c7f(0x2ae)][_0x3b8c7f(0x1bf)]($);return(_0x1c6b60=_0x5f2526==null?void 0x0:_0x5f2526['sendChangesetTimeout'])!=null?_0x1c6b60:In;}[_0xf86c5a(0x434)](){const _0x41a80c=_0xf86c5a;throw new Error(_0x41a80c(0x232));}[_0xf86c5a(0x3e5)](){const _0x19d653=_0xf86c5a;this[_0x19d653(0x1f9)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x19d653(0x1f9)]=null);}[_0xf86c5a(0x447)](_0x4bc4cf){const _0x15e2a7=_0xf86c5a;return this[_0x15e2a7(0x3e5)](),this[_0x15e2a7(0x22b)][_0x15e2a7(0x45e)](ee,this[_0x15e2a7(0x427)],this[_0x15e2a7(0x246)],null,this[_0x15e2a7(0x26a)],this[_0x15e2a7(0x43a)],_0x4bc4cf);}};X=_e([m(0x4,_0x370f8c(_0x595e81)),m(0x5,_0x370f8c(_0x4a413b)),m(0x6,_0x370f8c(w)),m(0x7,_0x370f8c(ce)),m(0x8,_0x593f47),m(0x9,_0x225d18),m(0xa,_0x5bc7de),m(0xb,_0x285caf),m(0xc,_0x5edd3d),m(0xd,_0x47fb5c)],X);let Q=class extends ue{constructor(_0x4f28b8,_0x505ab6,_0x3c4a45,_0xf20e8,_0x23e75c,_0x5850e2,_0x2a1e2f,_0x2fe106,_0x512332,_0x254c04,_0x5bfddf){const _0xc5254c=_0xf86c5a;super(_0x4f28b8,_0x505ab6,_0x3c4a45,[],_0xf20e8,_0x2fe106,_0x5bfddf,_0x5850e2,_0x2a1e2f),l(this,'status',_0xc5254c(0x34e)),(this[_0xc5254c(0x22b)]=_0x23e75c,this[_0xc5254c(0x435)]=_0x512332,this[_0xc5254c(0x235)]=_0x254c04);}['appendMutation'](_0x345ab2){const _0x5b0a44=_0xf86c5a,_0x27d77e=this['_injector'][_0x5b0a44(0x45e)](q,this[_0x5b0a44(0x427)],this[_0x5b0a44(0x246)],this[_0x5b0a44(0x25b)],[_0x345ab2],this['_handler']);return _0x27d77e[_0x5b0a44(0x311)](),_0x27d77e;}[_0xf86c5a(0x19d)](_0xdb5c3f){const _0x36a66f=_0xf86c5a;if(this[_0x36a66f(0x2ea)](_0xdb5c3f))return this[_0x36a66f(0x22b)][_0x36a66f(0x45e)](B,this['unitID'],this[_0x36a66f(0x246)],this[_0x36a66f(0x25b)],[],null,[_0xdb5c3f],this[_0x36a66f(0x43a)]);try{const _0x4586ca=this[_0x36a66f(0x235)][_0x36a66f(0x2cd)]([_0xdb5c3f],[this[_0x36a66f(0x25b)]],!0x1);if(_0x23b874(_0x4586ca)){const {c1Prime:_0x54d706,c2Prime:_0x2d42f0}=_0x4586ca;this[_0x36a66f(0x38d)](_0x54d706[0x0]),_0x2d42f0[0x0][_0x36a66f(0x3af)]=this[_0x36a66f(0xf4)]();const _0x204f9a=this[_0x36a66f(0x22b)]['createInstance'](Q,this[_0x36a66f(0x427)],this['type'],_0x2d42f0[0x0],this['_handler']);return _0x204f9a[_0x36a66f(0x311)](),_0x204f9a;}return this[_0x36a66f(0x447)](!0x1);}catch(_0x5d3599){return this[_0x36a66f(0x435)][_0x36a66f(0x3a5)](_0x5d3599),this[_0x36a66f(0x447)](!0x1);}}[_0xf86c5a(0xea)](_0x1bc2af){const _0x216eea=_0xf86c5a,_0x276dd2=this[_0x216eea(0x32c)][_0x216eea(0x3bd)](this[_0x216eea(0x427)]);if(_0x1bc2af[_0x216eea(0x31b)]<_0x276dd2-0x1)return this;if(this[_0x216eea(0x2ea)](_0x1bc2af))return this[_0x216eea(0x22b)]['createInstance'](B,this[_0x216eea(0x427)],this['type'],null,[],this[_0x216eea(0x25b)],[],this[_0x216eea(0x43a)]);this[_0x216eea(0x3a8)]();const _0x4ffcaf=this[_0x216eea(0x22b)][_0x216eea(0x45e)](pe,this[_0x216eea(0x427)],this[_0x216eea(0x246)],this[_0x216eea(0x43a)]);return _0x4ffcaf[_0x216eea(0x311)](),_0x4ffcaf;}[_0xf86c5a(0x37b)](_0x5b6ac9){const _0x23b9ba=_0xf86c5a;return this[_0x23b9ba(0x447)](!!(_0x5b6ac9!=null&&_0x5b6ac9['isPermissionRej']));}[_0xf86c5a(0x22c)](){const _0x5956c7=_0xf86c5a;return this[_0x5956c7(0x22b)][_0x5956c7(0x45e)](te,this[_0x5956c7(0x427)],this[_0x5956c7(0x246)],this['_awaitingChangeset'],[],this[_0x5956c7(0x43a)]);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0xe15b98=_0xf86c5a;this[_0xe15b98(0x43a)][_0xe15b98(0x43b)](this['_awaitingChangeset']);}[_0xf86c5a(0x447)](_0x321175){const _0x313a5f=_0xf86c5a;return this['_injector'][_0x313a5f(0x45e)](ee,this['unitID'],this[_0x313a5f(0x246)],this['_awaitingChangeset'],[],this[_0x313a5f(0x43a)],_0x321175);}};Q=_e([m(0x4,_0x370f8c(_0x595e81)),m(0x5,_0x370f8c(_0x4a413b)),m(0x6,_0x370f8c(w)),m(0x7,_0x225d18),m(0x8,_0x593f47),m(0x9,_0x285caf),m(0xa,_0x47fb5c)],Q);let q=class extends ue{constructor(_0x178506,_0x29007d,_0x1ba70f,_0x4a63a2,_0x2d072f,_0x9e78a7,_0x54241a,_0x17c167,_0x51d6ce,_0x3dac06,_0xd02363,_0x8496da){const _0x4c13d1=_0xf86c5a;super(_0x178506,_0x29007d,_0x1ba70f,_0x4a63a2,_0x2d072f,_0x51d6ce,_0x8496da,_0x54241a,_0x17c167),l(this,_0x4c13d1(0x29a),'awaiting_with_pending'),(this['_injector']=_0x9e78a7,this[_0x4c13d1(0x435)]=_0x3dac06,this[_0x4c13d1(0x235)]=_0xd02363);}[_0xf86c5a(0x2d3)](_0x4e3cd1){const _0xd61132=_0xf86c5a;return this['_pendingMutations'][_0xd61132(0x106)](_0x4e3cd1),this;}[_0xf86c5a(0x19d)](_0x1eebed){const _0x1e75d7=_0xf86c5a;if(this[_0x1e75d7(0x2ea)](_0x1eebed))return this[_0x1e75d7(0x22b)][_0x1e75d7(0x45e)](B,this['unitID'],this['type'],this[_0x1e75d7(0x25b)],this['_pendingMutations'],null,[_0x1eebed],this[_0x1e75d7(0x43a)]);try{const _0x35c476=this[_0x1e75d7(0x235)][_0x1e75d7(0x2cd)]([_0x1eebed],[this[_0x1e75d7(0x25b)]],!0x1);if(_0x23b874(_0x35c476)){const {c1Prime:_0x240996,c2Prime:_0x3da4c0}=_0x35c476,_0x4d64ce=this[_0x1e75d7(0x235)][_0x1e75d7(0x1e7)](_0x240996[0x0],this[_0x1e75d7(0x26a)]);if(_0x1a8f7d(_0x4d64ce)){const {c1Prime:_0x54183a,m2Prime:_0x346943}=_0x4d64ce;return this[_0x1e75d7(0x38d)](_0x54183a),_0x3da4c0[0x0][_0x1e75d7(0x3af)]=this[_0x1e75d7(0xf4)](),this[_0x1e75d7(0x22b)][_0x1e75d7(0x45e)](q,this[_0x1e75d7(0x427)],this[_0x1e75d7(0x246)],_0x3da4c0[0x0],_0x346943,this['_handler']);}throw _0x4d64ce[_0x1e75d7(0x3a5)];}throw _0x35c476['error'];}catch(_0x14340a){return this[_0x1e75d7(0x435)]['error'](_0x14340a),this['_onConflict'](!0x1);}}[_0xf86c5a(0xea)](_0x58b7fa){const _0x13f824=_0xf86c5a;if(this['_checkMissing'](_0x58b7fa))return this[_0x13f824(0x22b)][_0x13f824(0x45e)](B,this['unitID'],this[_0x13f824(0x246)],null,this[_0x13f824(0x26a)],this[_0x13f824(0x25b)],[],this[_0x13f824(0x43a)]);this[_0x13f824(0x3a8)]();const _0x49d1c2=this[_0x13f824(0x22b)][_0x13f824(0x45e)](X,this[_0x13f824(0x427)],this[_0x13f824(0x246)],this['_pendingMutations'],this[_0x13f824(0x43a)]);return _0x49d1c2[_0x13f824(0x272)](),_0x49d1c2[_0x13f824(0x311)](),_0x49d1c2;}[_0xf86c5a(0x37b)](_0x497731){const _0x4bbbde=_0xf86c5a;return this[_0x4bbbde(0x447)](!!(_0x497731!=null&&_0x497731[_0x4bbbde(0x13a)]));}[_0xf86c5a(0x22c)](){const _0x442b74=_0xf86c5a;return this['_injector'][_0x442b74(0x45e)](te,this[_0x442b74(0x427)],this[_0x442b74(0x246)],this[_0x442b74(0x25b)],this['_pendingMutations'],this['_handler']);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0x50dfc8=_0xf86c5a;this['_handler'][_0x50dfc8(0x43b)](this[_0x50dfc8(0x25b)]);}[_0xf86c5a(0x447)](_0x4da617){const _0xa49dcc=_0xf86c5a;return this['_injector'][_0xa49dcc(0x45e)](ee,this[_0xa49dcc(0x427)],this[_0xa49dcc(0x246)],null,this[_0xa49dcc(0x26a)],this[_0xa49dcc(0x43a)],_0x4da617);}};q=_e([m(0x5,_0x370f8c(_0x595e81)),m(0x6,_0x370f8c(_0x4a413b)),m(0x7,_0x370f8c(w)),m(0x8,_0x225d18),m(0x9,_0x593f47),m(0xa,_0x285caf),m(0xb,_0x47fb5c)],q);let ee=class extends ue{constructor(_0x4cd429,_0x15f259,_0x4d94c4,_0x29a745,_0x53a18a,_0x1ff839=!0x1,_0x15a5a2,_0x545314,_0x5bb726,_0x354a09,_0x4367bd,_0x13834d,_0x71eeba){const _0x402a67=_0xf86c5a;super(_0x4cd429,_0x15f259,_0x4d94c4,_0x29a745,_0x53a18a,_0x545314,_0x5bb726,_0x4367bd,_0x354a09),l(this,_0x402a67(0x29a),'conflict'),(this[_0x402a67(0x347)]=_0x1ff839,this[_0x402a67(0x13f)]=_0x15a5a2,this['_localeService']=_0x13834d,this[_0x402a67(0x171)]=_0x71eeba,this[_0x402a67(0x1c9)](),this[_0x402a67(0x2b3)](),this[_0x402a67(0x1d2)]());}[_0xf86c5a(0x2d3)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x434)](){const _0x220099=_0xf86c5a;throw new Error(_0x220099(0x287));}[_0xf86c5a(0x2b3)](){const _0x19124c=_0xf86c5a;this[_0x19124c(0x373)][_0x19124c(0x34d)](this[_0x19124c(0x427)],this[_0x19124c(0x246)],null,[]);}['_showConflictNotification'](){const _0x58945c=_0xf86c5a;this[_0x58945c(0x347)]?this[_0x58945c(0x171)][_0x58945c(0x265)]({'title':this[_0x58945c(0x1f8)]['t'](_0x58945c(0x234)),'content':this[_0x58945c(0x1f8)]['t'](_0x58945c(0x390)),'type':_0x58945c(0x3a5),'duration':0x0}):this[_0x58945c(0x171)][_0x58945c(0x265)]({'title':this[_0x58945c(0x1f8)]['t'](_0x58945c(0x226)),'content':this['_localeService']['t'](_0x58945c(0x1f0)),'type':_0x58945c(0x3a5),'duration':0x0});}[_0xf86c5a(0x1d2)](){const _0x481c0e=_0xf86c5a;this[_0x481c0e(0x13f)]['updatePermissionPoint'](new _0x365664(this['unitID'])['id'],!0x1);}};ee=_e([m(0x6,_0x370f8c(_0x2f69f2)),m(0x7,_0x225d18),m(0x8,_0x47fb5c),m(0x9,_0x370f8c(w)),m(0xa,_0x370f8c(_0x4a413b)),m(0xb,_0x370f8c(_0x2673bf)),m(0xc,_0x7bfd4b)],ee);let te=class extends ue{constructor(_0x39020f,_0x409005,_0xf85818,_0x353061,_0x537eeb,_0x2a046c,_0x1e7b5d,_0x5b7cbc,_0x26548f,_0x39ce84){const _0x2949a1=_0xf86c5a;super(_0x39020f,_0x409005,_0xf85818,_0x353061,_0x537eeb,_0x26548f,_0x39ce84,_0x1e7b5d,_0x5b7cbc),l(this,_0x2949a1(0x29a),_0x2949a1(0x123)),this[_0x2949a1(0x22b)]=_0x2a046c;}['appendMutation'](_0x322683){const _0x2fe4e9=_0xf86c5a;return this['_pendingMutations']['push'](_0x322683),this[_0x2fe4e9(0x311)](),this;}[_0xf86c5a(0x19d)](_0x1db349){const _0x5b0a77=_0xf86c5a;throw new Error(_0x5b0a77(0x1d3));}[_0xf86c5a(0xea)](){const _0x39c14f=_0xf86c5a;throw new Error(_0x39c14f(0x464));}['onRemoteRej'](){const _0xca47a6=_0xf86c5a;throw new Error(_0xca47a6(0x142));}[_0xf86c5a(0x22c)](){return this;}[_0xf86c5a(0x3b3)](){const {_injector:_0x4abb3c,_pendingMutations:_0x55a608,_awaitingChangeset:_0x788ef3,unitID:_0x594b55,_handler:_0x2a1969,type:_0x1102c0}=this,_0xbf1228=Ws(_0x4abb3c,_0x594b55,_0x1102c0,_0x788ef3,_0x55a608,_0x2a1969);return _0xbf1228 instanceof X?_0xbf1228['_schedule']():(_0xbf1228 instanceof q||_0xbf1228 instanceof Q)&&_0xbf1228['resend'](),_0xbf1228;}['resend'](){const _0x1f4d84=_0xf86c5a;throw new Error(_0x1f4d84(0x3aa));}};te=_e([m(0x5,_0x370f8c(_0x595e81)),m(0x6,_0x370f8c(_0x4a413b)),m(0x7,_0x370f8c(w)),m(0x8,_0x225d18),m(0x9,_0x47fb5c)],te);let B=class extends ue{constructor(_0x2080c4,_0x28516f,_0x20dcf8,_0x3e1f9a,_0x38fdf3,_0x48f740,_0x24ca38,_0x522065,_0x1ddfb6,_0xc9619f,_0x2e0fbe,_0x2cfd48,_0xf2903,_0x2c0df0){const _0x3837be=_0xf86c5a;super(_0x2080c4,_0x28516f,_0x20dcf8,_0x3e1f9a,_0x24ca38,_0x2cfd48,_0xf2903,_0x1ddfb6,_0xc9619f),l(this,'status',_0x3837be(0x322)),(this['_acknowledgedAwaitingChangeset']=_0x38fdf3,this[_0x3837be(0x351)]=_0x48f740,this[_0x3837be(0x22b)]=_0x522065,this['_logService']=_0x2e0fbe,this[_0x3837be(0x235)]=_0x2c0df0);}[_0xf86c5a(0x2ff)](_0x49d894){const _0x20ab7c=_0xf86c5a;try{const _0x4149f2=[..._0x49d894,...this['_queuedRemoteChangesets']],_0x364e00=[this[_0x20ab7c(0x25b)]||this[_0x20ab7c(0x1cb)]]['filter'](_0x35348c=>!!_0x35348c);let _0x2d01b9,_0x139eed;if(_0x364e00[_0x20ab7c(0x28c)]){const _0x4fcfcb=this[_0x20ab7c(0x235)][_0x20ab7c(0x2cd)](_0x4149f2,_0x364e00,!0x1);if(!_0x23b874(_0x4fcfcb))throw _0x4fcfcb[_0x20ab7c(0x3a5)];_0x2d01b9=_0x4fcfcb[_0x20ab7c(0x244)],_0x139eed=_0x4fcfcb[_0x20ab7c(0x1dd)];}else _0x2d01b9=_0x4149f2,_0x139eed=[];let _0x2840e0=this[_0x20ab7c(0x26a)];_0x2d01b9['forEach'](_0x4c0b1f=>{const _0x52f03b=_0x20ab7c;let _0x483bb8;if(_0x2840e0[_0x52f03b(0x28c)]){const _0x43f516=this[_0x52f03b(0x235)][_0x52f03b(0x1e7)](_0x4c0b1f,_0x2840e0);if(!_0x1a8f7d(_0x43f516))throw _0x43f516[_0x52f03b(0x3a5)];_0x483bb8=_0x43f516['c1Prime'],_0x2840e0=_0x43f516[_0x52f03b(0x3bb)];}else _0x483bb8=_0x4c0b1f;this[_0x52f03b(0x38d)](_0x483bb8);}),this['_acknowledgedAwaitingChangeset']&&this[_0x20ab7c(0x3a8)](),this[_0x20ab7c(0x25b)]&&_0x139eed[_0x20ab7c(0x28c)]&&(_0x139eed[0x0][_0x20ab7c(0x3af)]=this[_0x20ab7c(0xf4)]());let _0x2f6050;if(this[_0x20ab7c(0x25b)]&&_0x2840e0[_0x20ab7c(0x28c)]!==0x0)_0x2f6050=this['_injector'][_0x20ab7c(0x45e)](q,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],_0x139eed[0x0],_0x2840e0,this[_0x20ab7c(0x43a)]);else{if(this[_0x20ab7c(0x25b)]&&_0x2840e0['length']===0x0)_0x139eed[0x0][_0x20ab7c(0x3af)]=this[_0x20ab7c(0xf4)](),_0x2f6050=this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](Q,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],_0x139eed[0x0],this[_0x20ab7c(0x43a)]);else{if(_0x2840e0[_0x20ab7c(0x28c)]!==0x0){const _0x56f06d=this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](X,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],_0x2840e0,this[_0x20ab7c(0x43a)]);_0x56f06d['_schedule'](),_0x2f6050=_0x56f06d;}else _0x2f6050=this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](pe,this[_0x20ab7c(0x427)],this[_0x20ab7c(0x246)],this[_0x20ab7c(0x43a)]);}}return _0x2f6050[_0x20ab7c(0x311)](),_0x2f6050;}catch(_0x1825ed){return this[_0x20ab7c(0x435)][_0x20ab7c(0x3a5)](_0x20ab7c(0x170),_0x20ab7c(0x1b8),_0x1825ed),this[_0x20ab7c(0x22b)][_0x20ab7c(0x45e)](ee,this[_0x20ab7c(0x427)],this['type'],this[_0x20ab7c(0x25b)],this[_0x20ab7c(0x26a)],this['_handler'],!0x1);}}[_0xf86c5a(0x434)](){const _0x41f3b0=_0xf86c5a;throw new Error(_0x41f3b0(0x124));}[_0xf86c5a(0x2d3)](_0x150554){const _0x42d43b=_0xf86c5a;return this[_0x42d43b(0x26a)][_0x42d43b(0x106)](_0x150554),this;}[_0xf86c5a(0x19d)](_0x2b6f9f){const _0x374efc=_0xf86c5a;return this[_0x374efc(0x351)][_0x374efc(0x106)](_0x2b6f9f),this;}[_0xf86c5a(0xea)](_0x1d2aca){const _0x8d0d8f=_0xf86c5a;if(this[_0x8d0d8f(0x25b)])return this[_0x8d0d8f(0x1cb)]=this[_0x8d0d8f(0x25b)],this[_0x8d0d8f(0x25b)]=null,this;throw new Error(_0x8d0d8f(0x224));}['onRemoteRej'](_0x8285aa){return this['_onConflict'](!!(_0x8285aa!=null&&_0x8285aa['isPermissionRej']));}['toggleOffline'](){const _0x3c4fc2=_0xf86c5a;return this['_injector']['createInstance'](te,this[_0x3c4fc2(0x427)],this[_0x3c4fc2(0x246)],this[_0x3c4fc2(0x25b)],this[_0x3c4fc2(0x26a)],this[_0x3c4fc2(0x43a)]);}[_0xf86c5a(0x3b3)](){return this;}[_0xf86c5a(0x447)](_0x1fed66){const _0x43b597=_0xf86c5a;return this[_0x43b597(0x22b)][_0x43b597(0x45e)](ee,this['unitID'],this[_0x43b597(0x246)],this['_awaitingChangeset'],this[_0x43b597(0x26a)],this[_0x43b597(0x43a)],_0x1fed66);}};B=_e([m(0x7,_0x370f8c(_0x595e81)),m(0x8,_0x370f8c(_0x4a413b)),m(0x9,_0x370f8c(w)),m(0xa,_0x593f47),m(0xb,_0x225d18),m(0xc,_0x47fb5c),m(0xd,_0x285caf)],B);function Ws(_0x12d3e5,_0x3483b4,_0x449b34,_0x585d9d,_0x379477,_0xdd22f5){const _0x4face9=_0xf86c5a;return _0x585d9d&&_0x379477[_0x4face9(0x28c)]?_0x12d3e5['createInstance'](q,_0x3483b4,_0x449b34,_0x585d9d,_0x379477,_0xdd22f5):_0x585d9d?_0x12d3e5[_0x4face9(0x45e)](Q,_0x3483b4,_0x449b34,_0x585d9d,_0xdd22f5):_0x379477['length']?_0x12d3e5[_0x4face9(0x45e)](X,_0x3483b4,_0x449b34,_0x379477,_0xdd22f5):_0x12d3e5[_0x4face9(0x45e)](pe,_0x3483b4,_0x449b34,_0xdd22f5);}var Tr=Object['defineProperty'],Rr=Object[_0xf86c5a(0x397)],Wt=(_0x5960f5,_0x24f3d8,_0x4ee5a9,_0x26319a)=>{const _0x49b91b=_0xf86c5a;for(var _0x29bbde=_0x26319a>0x1?void 0x0:_0x26319a?Rr(_0x24f3d8,_0x4ee5a9):_0x24f3d8,_0x5ba320=_0x5960f5[_0x49b91b(0x28c)]-0x1,_0x58feda;_0x5ba320>=0x0;_0x5ba320--)(_0x58feda=_0x5960f5[_0x5ba320])&&(_0x29bbde=(_0x26319a?_0x58feda(_0x24f3d8,_0x4ee5a9,_0x29bbde):_0x58feda(_0x29bbde))||_0x29bbde);return _0x26319a&&_0x29bbde&&Tr(_0x24f3d8,_0x4ee5a9,_0x29bbde),_0x29bbde;},p=(_0x50f0bf,_0x2a2e60)=>(_0x3affd8,_0x4a424d)=>_0x2a2e60(_0x3affd8,_0x4a424d,_0x50f0bf);let qe=class extends _0x27d368{constructor(_0x3c3e38,_0x50e0e2,_0x10b691,_0x38197c,_0x2a178e,_0x381065,_0x5e2705,_0x455632,_0x13b739,_0x152eb3,_0x350088,_0x311c19,_0x1b52bb){const _0x398fe8=_0xf86c5a;super(),l(this,_0x398fe8(0x18d),new _0x52cf76(null)),l(this,_0x398fe8(0x363),this[_0x398fe8(0x18d)][_0x398fe8(0x377)]()),l(this,_0x398fe8(0x20c)),l(this,_0x398fe8(0x461),!0x1),l(this,_0x398fe8(0x216),''),l(this,_0x398fe8(0x3ea),0x0),l(this,_0x398fe8(0x217),this['state$'][_0x398fe8(0x268)](_0x40b982(_0x4fb181=>_0x4fb181?_0x4fb181[_0x398fe8(0x29a)]:P[_0x398fe8(0x2a1)]),_0x5da9ca(0x1))),l(this,_0x398fe8(0x15b),!0x1),l(this,_0x398fe8(0x376),[]),(this['unitID']=_0x3c3e38,this['session']=_0x50e0e2,this[_0x398fe8(0x253)]=_0x10b691,this[_0x398fe8(0x22b)]=_0x38197c,this[_0x398fe8(0x373)]=_0x2a178e,this[_0x398fe8(0x245)]=_0x381065,this['_localeService']=_0x5e2705,this[_0x398fe8(0x32c)]=_0x455632,this[_0x398fe8(0x435)]=_0x13b739,this[_0x398fe8(0x456)]=_0x152eb3,this[_0x398fe8(0x122)]=_0x350088,this[_0x398fe8(0x13f)]=_0x311c19,this[_0x398fe8(0x172)]=_0x1b52bb);}get[_0xf86c5a(0x3c3)](){const _0x46931f=_0xf86c5a;return this[_0x46931f(0x20c)];}async[_0xf86c5a(0x18f)](){const _0x9f9743=_0xf86c5a;if(this[_0x9f9743(0x3c3)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x9f9743(0x30d)]();}[_0xf86c5a(0x3a1)](){return this['_collaborationPaused']=!0x0,_0x441a7c(()=>{const _0x4cd986=_0x556d;this[_0x4cd986(0x461)]=!0x1,this[_0x4cd986(0x296)]();});}[_0xf86c5a(0x20f)](_0x1a5b4c){const _0x23896f=_0xf86c5a;this[_0x23896f(0x20c)]=_0x1a5b4c,this[_0x23896f(0x18d)][_0x23896f(0x23f)](_0x1a5b4c);}async['_init'](){const _0x8bef40=_0xf86c5a;var _0x2a0e2c;this[_0x8bef40(0x20f)](await this[_0x8bef40(0x138)]()),this[_0x8bef40(0x172)]&&((_0x2a0e2c=this[_0x8bef40(0x172)])==null||_0x2a0e2c['editingUnit'](this[_0x8bef40(0x427)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x8bef40(0xf8)](this['unitID'])['subscribe'](_0x453ee8=>{const _0x579d44=_0x8bef40;this[_0x579d44(0x435)][_0x579d44(0x379)](_0x579d44(0x2fc),'editing\x20status\x20changed\x20to',_0x453ee8),_0x453ee8===Vs[_0x579d44(0x1b0)]?(this[_0x579d44(0x122)][_0x579d44(0x265)]({'content':this['_localeService']['t'](_0x579d44(0x45a)),'type':_0x424985[_0x579d44(0x3ae)]}),this[_0x579d44(0x13f)][_0x579d44(0x382)](new _0x365664(this['unitID'])['id'],!0x1)):this[_0x579d44(0x13f)]['updatePermissionPoint'](new _0x365664(this[_0x579d44(0x427)])['id'],!0x0);})));let _0x43b1ba=!0x1;return this[_0x8bef40(0x177)](this[_0x8bef40(0x195)][_0x8bef40(0xf6)][_0x8bef40(0x1c3)](_0x538541=>{const _0x243ee3=_0x8bef40;_0x538541===Y[_0x243ee3(0x2b4)]?this[_0x243ee3(0x2f6)](_0x43b1ba):_0x538541===Y[_0x243ee3(0x2a1)]&&(_0x43b1ba=!0x0,this['_toggleOffline']());})),this[_0x8bef40(0x177)](this[_0x8bef40(0x195)][_0x8bef40(0x3b1)]['subscribe'](_0x40b9ff=>{const _0x221167=_0x8bef40;try{switch(_0x40b9ff[_0x221167(0x26e)]){case _0x455562[_0x221167(0x305)]:{this[_0x221167(0x3cb)](_0x5d6100(_0x40b9ff['data']));break;}case _0x455562['CHANGESET_ACK']:{this['_onRemoteACK'](_0x40b9ff['data']);break;}case _0x455562['CHANGESET_REJ']:{this[_0x221167(0x15a)]();break;}case _0x455562[_0x221167(0x2ca)]:{this[_0x221167(0x22a)](_0x40b9ff[_0x221167(0x129)][_0x221167(0x1d9)]['map'](_0xe4ad52=>_0x5d6100(_0xe4ad52)));break;}case _0x455562[_0x221167(0x3f1)]:this[_0x221167(0x15a)]({'isPermissionRej':!0x0});}}catch(_0x335384){throw console[_0x221167(0x3a5)](_0x221167(0x1a5),_0x335384),_0x335384;}})),this['_state'];}[_0xf86c5a(0x26f)](){const _0x4ba2c8=_0xf86c5a;this[_0x4ba2c8(0x15b)]=!0x1;}[_0xf86c5a(0x12e)](){const _0x589e7f=_0xf86c5a;if(this[_0x589e7f(0x15b)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x589e7f(0x15b)]=!0x0;}[_0xf86c5a(0x2ab)](_0x30945e){const _0x5090d5=_0xf86c5a;this[_0x5090d5(0x12e)](),this[_0x5090d5(0x20f)](this[_0x5090d5(0x20c)][_0x5090d5(0x2d3)](_0x30945e)),this[_0x5090d5(0x26f)]();}[_0xf86c5a(0x3cb)](_0xa68d42){const _0x35dc24=_0xf86c5a;if(!(_0xa68d42[_0x35dc24(0x31b)]<=this['_revisionService'][_0x35dc24(0x3bd)](this[_0x35dc24(0x427)]))){if(this[_0x35dc24(0x461)]){this[_0x35dc24(0x376)][_0x35dc24(0x106)](_0xa68d42);return;}this[_0x35dc24(0x1c8)](_0xa68d42);}}[_0xf86c5a(0x296)](){const _0xdf561e=_0xf86c5a;this[_0xdf561e(0x376)][_0xdf561e(0x26c)](_0x5a3f95=>this[_0xdf561e(0x1c8)](_0x5a3f95)),this[_0xdf561e(0x376)]=[];}[_0xf86c5a(0x1c8)](_0x225f7d){const _0x1d6279=_0xf86c5a,_0x2661e0=this[_0x1d6279(0x245)][_0x1d6279(0x2bd)][_0x1d6279(0xe9)](this[_0x1d6279(0x245)][_0x1d6279(0x2bd)][_0x1d6279(0x360)]()['COMPRESS_MUTATION_APPLY'])(_0x225f7d['mutations'],null)||_0x225f7d[_0x1d6279(0x3c1)],_0x175769={..._0x225f7d,'mutations':_0x2661e0};this[_0x1d6279(0x12e)](),this['_updateState'](this[_0x1d6279(0x20c)]['onRemoteChangeset'](_0x175769)),this[_0x1d6279(0x26f)]();}['_onRemoteACK'](_0x30e5e4){const _0x553fb5=_0xf86c5a;this[_0x553fb5(0x12e)](),this[_0x553fb5(0x20f)](this[_0x553fb5(0x20c)][_0x553fb5(0xea)](_0x30e5e4)),this[_0x553fb5(0x26f)]();}[_0xf86c5a(0x15a)](_0x2d1310){const _0xca5942=_0xf86c5a;this[_0xca5942(0x12e)](),this[_0xca5942(0x20f)](this['_state'][_0xca5942(0x37b)](_0x2d1310)),this[_0xca5942(0x26f)]();}[_0xf86c5a(0x22a)](_0x212450){const _0x5c416d=_0xf86c5a;if(!(this['_state']instanceof B))throw new TypeError(_0x5c416d(0x3a7));const _0x3bab64=_0x212450[_0x5c416d(0x2c1)](_0xb31ae9=>{const _0x2b3915=_0x5c416d,_0x4c8cd4=this[_0x2b3915(0x245)]['interceptor'][_0x2b3915(0xe9)](this[_0x2b3915(0x245)][_0x2b3915(0x2bd)][_0x2b3915(0x360)]()['COMPRESS_MUTATION_APPLY'])(_0xb31ae9['mutations'],null)||_0xb31ae9['mutations'];return{..._0xb31ae9,'mutations':_0x4c8cd4};});this[_0x5c416d(0x12e)](),this[_0x5c416d(0x20f)](this['_state'][_0x5c416d(0x2ff)](_0x3bab64)),this[_0x5c416d(0x26f)]();}['_toggleOffline'](){const _0x593e0c=_0xf86c5a;this[_0x593e0c(0x12e)](),this[_0x593e0c(0x20f)](this[_0x593e0c(0x20c)]['toggleOffline']()),this[_0x593e0c(0x26f)]();}[_0xf86c5a(0x2f6)](_0x465092=!0x1){const _0x510d0b=_0xf86c5a;this['_lockTransition'](),this[_0x510d0b(0x20f)](this['_state'][_0x510d0b(0x3b3)]()),this[_0x510d0b(0x26f)]();const _0x398e53=this[_0x510d0b(0x20c)];_0x465092&&_0x398e53 instanceof pe&&(this[_0x510d0b(0x12e)](),this[_0x510d0b(0x20f)](_0x398e53[_0x510d0b(0x3db)]()),this[_0x510d0b(0x26f)]());}async[_0xf86c5a(0x138)](){return new Promise(_0x470dc6=>{const _0x4b328c=_0x556d;this[_0x4b328c(0x195)][_0x4b328c(0xf6)]['pipe'](_0x1978dc(0x1))[_0x4b328c(0x1c3)](async _0x10aa16=>{const _0x4b7ee8=_0x4b328c;_0x470dc6(await this['_createInitialStateImpl'](_0x10aa16===Y[_0x4b7ee8(0x2b4)]));});});}[_0xf86c5a(0x44f)](){const _0x198853=this['unitID'];return{'onStateChange':(_0x48975c,_0xfe473b)=>{const _0x6bbc33=_0x556d;if(_0x48975c!==this[_0x6bbc33(0x20c)])throw new Error(_0x6bbc33(0x164)+_0x48975c['status']+'\x0aAfter:\x20'+_0xfe473b['status']+_0x6bbc33(0x110)+this[_0x6bbc33(0x20c)][_0x6bbc33(0x29a)]);this['_updateState'](_0xfe473b);},'onSendChangeset':_0xee2a97=>{const _0x46facb=_0x556d;_0xee2a97['sid']||(_0xee2a97[_0x46facb(0x334)]=this[_0x46facb(0x216)],_0xee2a97[_0x46facb(0x40d)]=++this[_0x46facb(0x3ea)]);const _0x744ab2={'eventID':_0x455562[_0x46facb(0x1d0)],'data':{'unitID':_0xee2a97['unitID'],'unitType':this['_type'],'changeset':_0xee2a97,'memberID':this['session'][_0x46facb(0x369)]()}};this[_0x46facb(0x195)][_0x46facb(0x100)](_0x744ab2,this[_0x46facb(0x427)]);},'onMissingChangesets':({from:_0x366cbb,to:_0x1c52cf})=>{const _0x4fd190=_0x556d;this[_0x4fd190(0x435)]['debug'](_0x4fd190(0x2fc),'fetching\x20missing\x20changesets\x20from\x20'+_0x366cbb+_0x4fd190(0x365)+_0x1c52cf);const _0x26937b={'eventID':_0x455562[_0x4fd190(0x37e)],'data':{'unitID':_0x198853,'unitType':this[_0x4fd190(0x253)],'from':_0x366cbb,'to':_0x1c52cf}};this[_0x4fd190(0x195)]['send'](_0x26937b,this[_0x4fd190(0x427)]);}};}async['_createInitialStateImpl'](_0x7b27d8){const _0x2d667f=_0xf86c5a;var _0x3f9c55,_0x225834;const _0x287517=await this[_0x2d667f(0x373)][_0x2d667f(0x3ec)](this['unitID']),_0x2f4b4a=(_0x3f9c55=_0x287517==null?void 0x0:_0x287517['mutations'])!=null?_0x3f9c55:[],_0x30e723=(_0x225834=_0x287517==null?void 0x0:_0x287517[_0x2d667f(0x2f0)])!=null?_0x225834:null,_0x3b0423=!!(_0x30e723!=null&&_0x30e723['sid'])&&!!(_0x30e723!=null&&_0x30e723[_0x2d667f(0x40d)]);this[_0x2d667f(0x216)]=_0x3b0423?_0x30e723[_0x2d667f(0x334)]:ir(),this[_0x2d667f(0x3ea)]=_0x3b0423?_0x30e723[_0x2d667f(0x40d)]:0x0;const _0x12ca79=this[_0x2d667f(0x427)];try{this[_0x2d667f(0x150)](_0x30e723,_0x2f4b4a);}catch(_0x1d6657){this[_0x2d667f(0x435)][_0x2d667f(0x3a5)](_0x1d6657);}const _0x207d7e=this[_0x2d667f(0x44f)]();if(_0x7b27d8){const _0x40ecf5=Ws(this['_injector'],_0x12ca79,this[_0x2d667f(0x253)],_0x30e723,_0x2f4b4a,_0x207d7e);return _0x40ecf5 instanceof X?_0x40ecf5[_0x2d667f(0x272)]():(_0x40ecf5 instanceof q||_0x40ecf5 instanceof Q)&&_0x40ecf5[_0x2d667f(0x434)](),_0x40ecf5;}return this[_0x2d667f(0x22b)][_0x2d667f(0x45e)](te,_0x12ca79,this[_0x2d667f(0x253)],_0x30e723,_0x2f4b4a,_0x207d7e);}[_0xf86c5a(0x150)](_0x2572ef,_0x4ffb02){const _0x346e62=_0xf86c5a;var _0xa24dbf,_0x5aab8d;const _0x2c3d99=this[_0x346e62(0x245)][_0x346e62(0x2bd)][_0x346e62(0xe9)](this['_compressMutationService'][_0x346e62(0x2bd)][_0x346e62(0x360)]()[_0x346e62(0x163)]);(_0xa24dbf=_0x2c3d99((_0x2572ef==null?void 0x0:_0x2572ef[_0x346e62(0x3c1)])||[],null))==null||_0xa24dbf[_0x346e62(0x26c)](_0x497cbe=>this['_commandService']['executeCommand'](_0x497cbe['id'],_0x497cbe['params'])),(_0x5aab8d=_0x2c3d99(_0x4ffb02||[],null))==null||_0x5aab8d[_0x346e62(0x26c)](_0x2b922e=>this[_0x346e62(0x456)][_0x346e62(0x1b5)](_0x2b922e['id'],_0x2b922e[_0x346e62(0x2e1)]));}};qe=Wt([p(0x3,_0x370f8c(_0x595e81)),p(0x4,_0x370f8c(w)),p(0x5,_0x370f8c(_0x4517e4)),p(0x6,_0x370f8c(_0x2673bf)),p(0x7,_0x370f8c(_0x4a413b)),p(0x8,_0x593f47),p(0x9,_0x225d18),p(0xa,_0x3aa03b),p(0xb,_0x2f69f2),p(0xc,_0x2fd677(tt))],qe);let Tt=class extends qe{constructor(_0x1fe6e5,_0x5111e7,_0x1b3744,_0x2bdfbd,_0x5dc84d,_0x3c41a8,_0x2a6034,_0x24ff15,_0x4c5d44,_0x46df6a,_0x270c15,_0x26f320,_0x59128e,_0x4f9d64,_0x1d7efe,_0x1b203d,_0x11d7a4){const _0x37fab4=_0xf86c5a;super(_0x1fe6e5,_0x1b3744,_0x5111e7,_0x2bdfbd,_0x5dc84d,_0x3c41a8,_0x2a6034,_0x24ff15,_0x59128e,_0x4f9d64,_0x1d7efe,_0x1b203d,_0x11d7a4),this[_0x37fab4(0x427)]=_0x1fe6e5,this[_0x37fab4(0x246)]=_0x5111e7,this['_docStateChangeManagerService']=_0x4c5d44,this[_0x37fab4(0x2e3)]=_0x46df6a,this[_0x37fab4(0x1b4)]=_0x270c15,this[_0x37fab4(0x1ff)]=_0x26f320;}['_createHandler'](){const _0x5bc406=_0xf86c5a,_0x27a98a=super[_0x5bc406(0x44f)]();return _0x27a98a[_0x5bc406(0x43e)]=_0x56c178=>this[_0x5bc406(0x2e3)][_0x5bc406(0x3e2)](_0x56c178),_0x27a98a[_0x5bc406(0x1ed)]=_0x396b21=>this['_docTransformSelectionsService']['transformSelections'](_0x396b21),_0x27a98a[_0x5bc406(0x381)]=_0x1a789f=>this[_0x5bc406(0x1ff)][_0x5bc406(0x411)](_0x1a789f),_0x27a98a[_0x5bc406(0x288)]=_0x41c6a7=>this['_docTransformIMECacheService'][_0x5bc406(0x22d)](_0x41c6a7),_0x27a98a;}async[_0xf86c5a(0x30d)](){const _0x59da65=_0xf86c5a,_0x4597e0=await super[_0x59da65(0x30d)]();return this[_0x59da65(0x417)][_0x59da65(0x188)]['pipe'](_0x14bd7d(this[_0x59da65(0x39d)]))[_0x59da65(0x1c3)](_0x4724e5=>{const _0x23b0ab=_0x59da65;if(_0x4724e5==null)return;const {unitId:_0x4da017,redoState:_0x477cd9,commandId:_0x58206c}=_0x4724e5;if(_0x4da017!==this[_0x23b0ab(0x427)])return;const _0x390c3e={'id':_0x58206c,'type':_0x19c41e['MUTATION'],'params':{'unitId':_0x4da017,'actions':_0x477cd9[_0x23b0ab(0x3e1)],'textRanges':null}};this[_0x23b0ab(0x2ab)](_0x390c3e);}),_0x4597e0;}};Tt=Wt([p(0x3,_0x370f8c(_0x595e81)),p(0x4,_0x370f8c(w)),p(0x5,_0x370f8c(_0x4517e4)),p(0x6,_0x370f8c(_0x2673bf)),p(0x7,_0x370f8c(_0x4a413b)),p(0x8,_0x370f8c(_0x4b5fef)),p(0x9,_0x370f8c(Ye)),p(0xa,_0x370f8c(Xe)),p(0xb,_0x370f8c(Ft)),p(0xc,_0x593f47),p(0xd,_0x225d18),p(0xe,_0x3aa03b),p(0xf,_0x2f69f2),p(0x10,_0x2fd677(tt))],Tt);let Rt=class extends qe{constructor(_0x2754cc,_0x1bee40,_0x693f8e,_0x17cebe,_0x15bc80,_0x32e088,_0x4b8121,_0x5eff60,_0x3fceb0,_0x2d7e37,_0x174f1c,_0x5bffd0,_0x9a4ad9,_0x541718){const _0x226da4=_0xf86c5a;super(_0x2754cc,_0x693f8e,_0x1bee40,_0x17cebe,_0x15bc80,_0x32e088,_0x4b8121,_0x5eff60,_0x2d7e37,_0x174f1c,_0x5bffd0,_0x9a4ad9,_0x541718),this[_0x226da4(0x427)]=_0x2754cc,this[_0x226da4(0x246)]=_0x1bee40,this[_0x226da4(0x16a)]=_0x3fceb0;}['_createHandler'](){const _0x328a9c=_0xf86c5a,_0x5538e0=super['_createHandler']();return _0x5538e0[_0x328a9c(0x1ed)]=_0x11f51f=>this['_sheetTransformSelectionsService'][_0x328a9c(0xfb)](_0x11f51f),_0x5538e0;}async['_init'](){const _0xbdf7d9=_0xf86c5a,_0x3c0da1=await super[_0xbdf7d9(0x30d)]();return this['disposeWithMe'](this[_0xbdf7d9(0x456)][_0xbdf7d9(0x2a8)]((_0x13f2d7,_0x333012)=>{const _0x4dc258=_0xbdf7d9;if(_0x13f2d7[_0x4dc258(0x246)]!==_0x19c41e[_0x4dc258(0x108)]||_0x333012!=null&&_0x333012['fromCollab']||_0x333012!=null&&_0x333012[_0x4dc258(0x10a)])return;const _0x385818=_0x13f2d7[_0x4dc258(0x2e1)];if((_0x385818==null?void 0x0:_0x385818['unitId'])!==this['unitID'])return;const _0x5a2b54=_0x13f2d7,_0x3f6054=this[_0x4dc258(0x245)]['interceptor']['fetchThroughInterceptors'](this[_0x4dc258(0x245)][_0x4dc258(0x2bd)][_0x4dc258(0x360)]()[_0x4dc258(0x1ba)])([_0x5a2b54],null)||[_0x5a2b54];this[_0x4dc258(0x2ab)](_0x3f6054[0x0]);})),_0x3c0da1;}};Rt=Wt([p(0x3,_0x370f8c(_0x595e81)),p(0x4,_0x370f8c(w)),p(0x5,_0x370f8c(_0x4517e4)),p(0x6,_0x370f8c(_0x2673bf)),p(0x7,_0x370f8c(_0x4a413b)),p(0x8,_0x370f8c(Ke)),p(0x9,_0x593f47),p(0xa,_0x225d18),p(0xb,_0x3aa03b),p(0xc,_0x2f69f2),p(0xd,_0x2fd677(tt))],Rt);var Or=Object[_0xf86c5a(0xfa)],Dr=Object[_0xf86c5a(0x397)],wr=(_0x5f724b,_0xa2a175,_0x3058c6,_0x1da961)=>{const _0x5c489f=_0xf86c5a;for(var _0x4bc51d=_0x1da961>0x1?void 0x0:_0x1da961?Dr(_0xa2a175,_0x3058c6):_0xa2a175,_0x603f6e=_0x5f724b[_0x5c489f(0x28c)]-0x1,_0x5dc622;_0x603f6e>=0x0;_0x603f6e--)(_0x5dc622=_0x5f724b[_0x603f6e])&&(_0x4bc51d=(_0x1da961?_0x5dc622(_0xa2a175,_0x3058c6,_0x4bc51d):_0x5dc622(_0x4bc51d))||_0x4bc51d);return _0x1da961&&_0x4bc51d&&Or(_0xa2a175,_0x3058c6,_0x4bc51d),_0x4bc51d;},_t=(_0x2620fc,_0x252e0d)=>(_0xc41d29,_0x482931)=>_0x252e0d(_0xc41d29,_0x482931,_0x2620fc);let Le=class extends _0x27d368{constructor(_0x82a155,_0x25e53d,_0x42c6dd){const _0x195964=_0xf86c5a;super(),l(this,_0x195964(0x330),new Map()),l(this,_0x195964(0x2d8),new _0x26d305()),(this[_0x195964(0x22b)]=_0x82a155,this['_collabSessionService']=_0x25e53d,this['_univerInstanceService']=_0x42c6dd,this[_0x195964(0x30d)]());}[_0xf86c5a(0x3ab)](){const _0x1b5054=_0xf86c5a;super[_0x1b5054(0x3ab)](),this[_0x1b5054(0x330)]['forEach'](_0xc3a29e=>_0xc3a29e[_0x1b5054(0x3ab)]()),this[_0x1b5054(0x330)][_0x1b5054(0x3e6)]();}[_0xf86c5a(0x299)](_0x206110){const _0x4464ff=_0xf86c5a;var _0x4fd932;return(_0x4fd932=this[_0x4464ff(0x330)]['get'](_0x206110))!=null?_0x4fd932:null;}[_0xf86c5a(0x277)](_0x55de67){const _0x1fb385=_0xf86c5a,_0x2b4412=this[_0x1fb385(0x299)](_0x55de67);return _0x2b4412?_0xfb2e43(_0x2b4412):this['_entityInit$'][_0x1fb385(0x268)](_0x152a98(_0x18014c=>_0x18014c[_0x1fb385(0x427)]===_0x55de67));}[_0xf86c5a(0x30d)](){const _0x514647=_0xf86c5a;this[_0x514647(0x358)][_0x514647(0x3a6)](_0x751d23['UNIVER_SHEET'])[_0x514647(0x268)](_0x14bd7d(this[_0x514647(0x39d)]),_0x48f138(0x10))['subscribe'](async _0x206342=>{const _0x58b736=_0x514647,_0x153094=_0x206342[_0x58b736(0x23e)](),_0x33d38b=await this[_0x58b736(0x404)](_0x153094,k[_0x58b736(0x1af)]);this['_entities']['set'](_0x153094,_0x33d38b);}),this[_0x514647(0x358)][_0x514647(0x3a6)](_0x751d23[_0x514647(0x320)])[_0x514647(0x268)](_0x14bd7d(this[_0x514647(0x39d)]),_0x48f138(0x10))['pipe'](_0x152a98(_0x48fba1=>!_0x48fba1[_0x514647(0x23e)]()[_0x514647(0x21a)]('__')))[_0x514647(0x1c3)](async _0x22c3c1=>{const _0x4ce627=_0x514647,_0x185163=_0x22c3c1[_0x4ce627(0x23e)](),_0x5e01c7=await this[_0x4ce627(0x404)](_0x185163,k[_0x4ce627(0x320)]);this[_0x4ce627(0x330)][_0x4ce627(0x2be)](_0x185163,_0x5e01c7);}),_0x20e120(this[_0x514647(0x358)][_0x514647(0x1f6)](_0x751d23[_0x514647(0x1af)]),this[_0x514647(0x358)]['getTypeOfUnitDisposed$'](_0x751d23[_0x514647(0x320)]))[_0x514647(0x268)](_0x14bd7d(this[_0x514647(0x39d)]))['subscribe'](_0x507eef=>{const _0x5b68a7=_0x514647,_0x3b9f4e=_0x507eef[_0x5b68a7(0x23e)](),_0x456165=this['_entities'][_0x5b68a7(0x175)](_0x3b9f4e);_0x456165&&(_0x456165[_0x5b68a7(0x3ab)](),this[_0x5b68a7(0x330)]['delete'](_0x3b9f4e));});}async['_startCollaboration'](_0x5f14c3,_0x5019cc){const _0x5a8eb6=_0xf86c5a,_0x20a402=await this[_0x5a8eb6(0x2f1)][_0x5a8eb6(0x13d)](_0x5f14c3),_0x1268e2=this[_0x5a8eb6(0x22b)]['createInstance'](this['_getCtorByUniverType'](_0x5019cc),_0x5f14c3,_0x5019cc,_0x20a402);return await _0x1268e2[_0x5a8eb6(0x18f)](),this['_entityInit$'][_0x5a8eb6(0x23f)](_0x1268e2),_0x1268e2;}['_getCtorByUniverType'](_0x2ff004){const _0x3e880f=_0xf86c5a;switch(_0x2ff004){case k[_0x3e880f(0x320)]:return Tt;case k[_0x3e880f(0x1af)]:return Rt;default:throw new Error(_0x3e880f(0x3b2)+_0x2ff004);}}};Le=wr([_t(0x0,_0x370f8c(_0x595e81)),_t(0x1,_0x370f8c(he)),_t(0x2,_0x5edd3d)],Le);const fs=[_0xf86c5a(0x442),_0xf86c5a(0x274),_0xf86c5a(0x1b3),_0xf86c5a(0x380),_0xf86c5a(0x225),_0xf86c5a(0x236)];class Gt extends _0x4091c9{constructor(){const _0x280ec9=_0xf86c5a;super(...arguments),l(this,_0x280ec9(0x25a),new Map()),l(this,_0x280ec9(0x264),0x0);}[_0xf86c5a(0x31e)](_0x4876db){const _0xcc5e2e=_0xf86c5a;if(this[_0xcc5e2e(0x25a)]['has'](_0x4876db))return this[_0xcc5e2e(0x25a)][_0xcc5e2e(0x175)](_0x4876db);const _0x504884=fs[this[_0xcc5e2e(0x264)]];return this['_colorIndex']=(this[_0xcc5e2e(0x264)]+0x1)%fs[_0xcc5e2e(0x28c)],this[_0xcc5e2e(0x25a)][_0xcc5e2e(0x2be)](_0x4876db,_0x504884),_0x504884;}}var Pr=Object['defineProperty'],yr=Object[_0xf86c5a(0x397)],Ur=(_0x57569a,_0x158b76,_0x33b794,_0x56c0a9)=>{for(var _0x2630c9=_0x56c0a9>0x1?void 0x0:_0x56c0a9?yr(_0x158b76,_0x33b794):_0x158b76,_0x4c5248=_0x57569a['length']-0x1,_0x39d9ae;_0x4c5248>=0x0;_0x4c5248--)(_0x39d9ae=_0x57569a[_0x4c5248])&&(_0x2630c9=(_0x56c0a9?_0x39d9ae(_0x158b76,_0x33b794,_0x2630c9):_0x39d9ae(_0x2630c9))||_0x2630c9);return _0x56c0a9&&_0x2630c9&&Pr(_0x158b76,_0x33b794,_0x2630c9),_0x2630c9;},ie=(_0x377a4b,_0x5bfc85)=>(_0x3f62e,_0x5006ae)=>_0x5bfc85(_0x3f62e,_0x5006ae,_0x377a4b);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x27d368{constructor(_0x461b41,_0x47f68f,_0x346311,_0x28584e,_0x162029,_0x28d002,_0x2da38b,_0x13f44a,_0x19e673){const _0x16666b=_0xf86c5a;super(),l(this,_0x16666b(0x198),!0x1),l(this,_0x16666b(0x30d),!0x1),l(this,_0x16666b(0x331),new _0x52cf76(new Map())),l(this,_0x16666b(0x318),this[_0x16666b(0x331)][_0x16666b(0x377)]()),l(this,_0x16666b(0x14e),new _0x52cf76([])),l(this,'roomMembers$',this[_0x16666b(0x14e)][_0x16666b(0x268)](_0x431a9a(Nr))),l(this,_0x16666b(0x31c),_0x3e7548(_0x41c068=>{const _0x577b0b=_0x16666b,_0xdf0d2c={'eventID':_0x455562[_0x577b0b(0x3d2)],'data':{'unitID':this[_0x577b0b(0x427)],'memberID':this[_0x577b0b(0x292)][_0x577b0b(0x369)](),'selection':Fs(_0x41c068)}};this[_0x577b0b(0x292)]['send'](_0xdf0d2c,this[_0x577b0b(0x427)]);},Mr)),(this[_0x16666b(0x427)]=_0x461b41,this['_session']=_0x47f68f,this[_0x16666b(0x22b)]=_0x346311,this['_colorAssignService']=_0x28584e,this[_0x16666b(0x34f)]=_0x162029,this[_0x16666b(0x189)]=_0x28d002,this[_0x16666b(0x235)]=_0x2da38b,this['_univerInstanceService']=_0x13f44a,this[_0x16666b(0x456)]=_0x19e673);}get[_0xf86c5a(0x168)](){const _0x594f7c=_0xf86c5a;return this[_0x594f7c(0x331)][_0x594f7c(0x40f)]();}get[_0xf86c5a(0x116)](){const _0x537029=_0xf86c5a;return this[_0x537029(0x14e)][_0x537029(0x40f)]();}['dispose'](){const _0x17b29c=_0xf86c5a;super[_0x17b29c(0x3ab)](),this['_cursorInfo$']['next'](new Map()),this[_0x17b29c(0x331)]['complete'](),this[_0x17b29c(0x14e)][_0x17b29c(0x23f)]([]),this[_0x17b29c(0x14e)][_0x17b29c(0x307)]();}[_0xf86c5a(0x18f)](){const _0x1f96e4=_0xf86c5a;this[_0x1f96e4(0x30d)]||(this['_init']=!0x0,this[_0x1f96e4(0x292)][_0x1f96e4(0xf6)][_0x1f96e4(0x268)](_0x14bd7d(this[_0x1f96e4(0x39d)]))[_0x1f96e4(0x1c3)](_0x1aae9d=>{const _0x3cef14=_0x1f96e4;_0x1aae9d===Y['ONLINE']?this['_toggleOnline']():this[_0x3cef14(0x1a1)]();}),this[_0x1f96e4(0x292)][_0x1f96e4(0x3b1)]['pipe'](_0x14bd7d(this[_0x1f96e4(0x39d)]))[_0x1f96e4(0x1c3)](_0x224476=>{const _0x49f698=_0x1f96e4,_0x1b5bc8=_0x224476['eventID'];_0x1b5bc8===_0x455562[_0x49f698(0x3d2)]&&this[_0x49f698(0x256)](_0x224476),_0x1b5bc8===_0x455562[_0x49f698(0x1f4)]&&this[_0x49f698(0x2b9)](_0x224476);}),this[_0x1f96e4(0x177)](this[_0x1f96e4(0x456)]['onCommandExecuted'](_0x41fdb4=>{const _0x38577f=_0x1f96e4,_0x4ee0a5=_0x41fdb4[_0x38577f(0x2e1)];_0x4ee0a5!=null&&this[_0x38577f(0x198)]&&_0x41fdb4['id']===_0x17ed1c['id']&&_0x4ee0a5[_0x38577f(0x25d)]===this[_0x38577f(0x427)]&&_0x4ee0a5[_0x38577f(0x1eb)]===!0x1&&this[_0x38577f(0x31c)](_0x4ee0a5[_0x38577f(0x2c6)]);})),this[_0x1f96e4(0x189)][_0x1f96e4(0x1bd)]['pipe'](_0x14bd7d(this[_0x1f96e4(0x39d)]))['subscribe'](_0x37c413=>{const _0x4e47c0=_0x1f96e4;if((_0x37c413==null?void 0x0:_0x37c413[_0x4e47c0(0x427)])!==this[_0x4e47c0(0x427)])return;const _0x4ec61f={'eventID':_0x455562['UPDATE_CURSOR'],'data':_0x37c413};this[_0x4e47c0(0x256)](_0x4ec61f);}),this['disposeWithMe'](this[_0x1f96e4(0x456)][_0x1f96e4(0x2a8)](_0x273c71=>{const _0x427687=_0x1f96e4;if(_0x273c71[_0x427687(0x2e1)]==null)return;const _0xb4a1c=_0x273c71[_0x427687(0x2e1)];if(_0x273c71['id']!==_0x21b448['id']||_0xb4a1c[_0x427687(0x25d)]!==this[_0x427687(0x427)])return;const _0x49d319={'id':_0x427687(0x27d),'params':_0xb4a1c},_0x49dab2=this[_0x427687(0x168)];for(const [_0x485b59,_0x1e0dee]of _0x49dab2){const _0x2f470f={'id':_0x427687(0x27d),'params':{'unitId':this[_0x427687(0x427)],'actions':null,'textRanges':_0x1e0dee[_0x427687(0x2c6)]}},_0x125f46=this[_0x427687(0x235)][_0x427687(0x11e)](_0x49d319,_0x2f470f,!0x1);if(_0x3e8650(_0x125f46))throw _0x125f46[_0x427687(0x3a5)];_0x49dab2[_0x427687(0x2be)](_0x485b59,{..._0x1e0dee,'ranges':_0x125f46[_0x427687(0x3bb)][_0x427687(0x2e1)][_0x427687(0x2f4)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x49dab2);});})));}['_onCursorUpdate'](_0x3132cb){const _0x2a954d=_0xf86c5a;var _0x4a8c91,_0x27f48d;const {memberID:_0xa9c4db,selection:_0x93d1fa}=_0x3132cb[_0x2a954d(0x129)],_0x551174=mr(_0x93d1fa),_0x4b7d02=(_0x27f48d=(_0x4a8c91=this[_0x2a954d(0x34f)][_0x2a954d(0x191)](this[_0x2a954d(0x427)],_0xa9c4db))==null?void 0x0:_0x4a8c91[_0x2a954d(0x11f)])!=null?_0x27f48d:_0x2a954d(0x2c7),_0x3f2125={'color':this[_0x2a954d(0x3dc)][_0x2a954d(0x31e)](_0xa9c4db),'name':_0x4b7d02,'ranges':_0x551174},_0x54f134=this[_0x2a954d(0x168)];_0x54f134['set'](_0xa9c4db,_0x3f2125),this[_0x2a954d(0x331)][_0x2a954d(0x23f)](_0x54f134);}[_0xf86c5a(0x2b9)](_0x511f4d){const _0x3841fe=_0xf86c5a,{memberID:_0x5bd7da}=_0x511f4d[_0x3841fe(0x129)],_0x1f9907=this[_0x3841fe(0x168)];_0x1f9907['delete'](_0x5bd7da),this['_cursorInfo$']['next'](_0x1f9907);}[_0xf86c5a(0x2f6)](){const _0x3233df=_0xf86c5a;var _0x2e2308;if(this[_0x3233df(0x198)]=!0x0,((_0x2e2308=this[_0x3233df(0x358)][_0x3233df(0x263)]())==null?void 0x0:_0x2e2308[_0x3233df(0x23e)]())!==this[_0x3233df(0x427)])return;const _0xde9c95=this[_0x3233df(0x22b)][_0x3233df(0x175)](_0x4562e0)[_0x3233df(0x2c9)]();Array[_0x3233df(0x453)](_0xde9c95)&&_0xde9c95['length']>0x0&&this[_0x3233df(0x31c)](_0xde9c95);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Ur([ie(0x2,_0x370f8c(_0x595e81)),ie(0x3,_0x370f8c(Gt)),ie(0x4,_0x370f8c(ce)),ie(0x5,_0x370f8c(Ft)),ie(0x6,_0x285caf),ie(0x7,_0x5edd3d),ie(0x8,_0x225d18)],Ot);var Ar=Object['defineProperty'],Lr=Object[_0xf86c5a(0x397)],$r=(_0x3a579c,_0x35d020,_0x474ccb,_0x5705a3)=>{for(var _0x5c4da4=_0x5705a3>0x1?void 0x0:_0x5705a3?Lr(_0x35d020,_0x474ccb):_0x35d020,_0x5b6bd6=_0x3a579c['length']-0x1,_0x28da92;_0x5b6bd6>=0x0;_0x5b6bd6--)(_0x28da92=_0x3a579c[_0x5b6bd6])&&(_0x5c4da4=(_0x5705a3?_0x28da92(_0x35d020,_0x474ccb,_0x5c4da4):_0x28da92(_0x5c4da4))||_0x5c4da4);return _0x5705a3&&_0x5c4da4&&Ar(_0x35d020,_0x474ccb,_0x5c4da4),_0x5c4da4;},me=(_0x21856c,_0x3cfb03)=>(_0x4c1284,_0x3b1cf4)=>_0x3cfb03(_0x4c1284,_0x3b1cf4,_0x21856c);const jr=0x12c,xr=0x64,Hr=()=>{let _0x598883=[],_0x619a15=!0x1;return _0x45f0c3=>{const _0x41f2c1=_0x556d;_0x598883[_0x41f2c1(0x106)](_0x45f0c3),_0x619a15||(_0x619a15=!0x0,setTimeout(()=>{const _0x4ce93b=_0x41f2c1;_0x598883[_0x4ce93b(0x26c)](_0x2a236c=>_0x2a236c()),_0x598883=[],_0x619a15=!0x1;}));};};let Dt=class extends _0x27d368{constructor(_0x22e340,_0x5dfa35,_0x9f104f,_0x1c3f3a,_0x22145b,_0x297c69,_0x256dae,_0x1900b5){const _0x5c857a=_0xf86c5a;super(),l(this,_0x5c857a(0x198),!0x1),l(this,'_init',!0x1),l(this,_0x5c857a(0x331),new _0x52cf76(new Map())),l(this,_0x5c857a(0x318),this[_0x5c857a(0x331)][_0x5c857a(0x377)]()),l(this,'_roomMembers$',new _0x52cf76([])),l(this,_0x5c857a(0x228),this[_0x5c857a(0x14e)][_0x5c857a(0x268)](_0x431a9a(jr))),l(this,'_updateLocalCursor',_0x3e7548((_0x22925b,_0x1d350e)=>{const _0x2c9edd=_0x5c857a,_0x551df3={'eventID':_0x455562['UPDATE_CURSOR'],'data':{'unitID':this[_0x2c9edd(0x427)],'memberID':this[_0x2c9edd(0x292)][_0x2c9edd(0x369)](),'selection':_0x57d531(_0x22925b,_0x1d350e[_0x2c9edd(0x420)])}};this['_session'][_0x2c9edd(0x100)](_0x551df3,this[_0x2c9edd(0x427)]);},xr)),(this['unitID']=_0x22e340,this[_0x5c857a(0x292)]=_0x5dfa35,this['_injector']=_0x9f104f,this[_0x5c857a(0x3dc)]=_0x1c3f3a,this['_memberService']=_0x22145b,this[_0x5c857a(0x358)]=_0x297c69,this['_commandService']=_0x256dae,this[_0x5c857a(0x260)]=_0x1900b5);}get[_0xf86c5a(0x168)](){const _0x10c579=_0xf86c5a;return this['_cursorInfo$'][_0x10c579(0x40f)]();}get['roomMembers'](){const _0x47a8e2=_0xf86c5a;return this['_roomMembers$'][_0x47a8e2(0x40f)]();}['dispose'](){const _0x15f632=_0xf86c5a;super[_0x15f632(0x3ab)](),this[_0x15f632(0x331)][_0x15f632(0x23f)](new Map()),this['_cursorInfo$'][_0x15f632(0x307)](),this[_0x15f632(0x14e)]['next']([]),this['_roomMembers$'][_0x15f632(0x307)]();}['init'](){const _0x29b7d6=_0xf86c5a;this[_0x29b7d6(0x30d)]||(this[_0x29b7d6(0x30d)]=!0x0,this[_0x29b7d6(0x292)][_0x29b7d6(0xf6)][_0x29b7d6(0x268)](_0x14bd7d(this[_0x29b7d6(0x39d)]))[_0x29b7d6(0x1c3)](_0xd9572b=>{const _0x2daaad=_0x29b7d6;_0xd9572b===Y['ONLINE']?this[_0x2daaad(0x2f6)]():this[_0x2daaad(0x1a1)]();}),this[_0x29b7d6(0x292)][_0x29b7d6(0x3b1)][_0x29b7d6(0x268)](_0x14bd7d(this['dispose$']))['subscribe'](_0x5ee16c=>{const _0x59bcbb=_0x29b7d6,_0x38447c=_0x5ee16c[_0x59bcbb(0x26e)];_0x38447c===_0x455562[_0x59bcbb(0x3d2)]&&this[_0x59bcbb(0x256)](_0x5ee16c),_0x38447c===_0x455562[_0x59bcbb(0x1f4)]&&this[_0x59bcbb(0x2b9)](_0x5ee16c);}),this[_0x29b7d6(0x41a)](),this[_0x29b7d6(0x177)](this[_0x29b7d6(0x456)][_0x29b7d6(0x2a8)](_0x2c9766=>{const _0x36fb5a=_0x29b7d6;if(this[_0x36fb5a(0x198)]&&_0x2c9766['id']===_0x2113e6['id']&&_0x2c9766[_0x36fb5a(0x2e1)][_0x36fb5a(0x25d)]===this[_0x36fb5a(0x427)]){const _0x3b27cb=_0x2c9766[_0x36fb5a(0x2e1)];this[_0x36fb5a(0x31c)](_0x3b27cb['subUnitId'],_0x3b27cb[_0x36fb5a(0x201)][0x0]);}})));}[_0xf86c5a(0x256)](_0x441d33){const _0x19babc=_0xf86c5a;var _0x59f033,_0x50f128;const {memberID:_0x47784a,selection:_0x5e6c03}=_0x441d33['data'],{sheetName:_0x2378c1,range:_0x5179a3}=_0x131128(_0x5e6c03),_0x1dbee0={'name':(_0x50f128=(_0x59f033=this[_0x19babc(0x34f)]['getMember'](this[_0x19babc(0x427)],_0x47784a))==null?void 0x0:_0x59f033[_0x19babc(0x11f)])!=null?_0x50f128:_0x19babc(0x2c7),'range':this[_0x19babc(0x213)](_0x2378c1,_0x5179a3),'sheetID':_0x2378c1,'color':this[_0x19babc(0x3dc)][_0x19babc(0x31e)](_0x47784a),'selection':_0x5e6c03},_0x3d4719=this[_0x19babc(0x168)];_0x3d4719[_0x19babc(0x2be)](_0x47784a,_0x1dbee0),this['_cursorInfo$']['next'](_0x3d4719);}[_0xf86c5a(0x2b9)](_0x493cc9){const _0x17e16e=_0xf86c5a,{memberID:_0x1110fc}=_0x493cc9[_0x17e16e(0x129)],_0xee8242=this['cursorInfo'];_0xee8242[_0x17e16e(0x107)](_0x1110fc),this[_0x17e16e(0x331)][_0x17e16e(0x23f)](_0xee8242);}[_0xf86c5a(0x213)](_0x4a2ba9,_0x24c560){const _0x25b44e=_0xf86c5a;var _0x4f9fd9,_0x5474a9;const _0x11f39b=(_0x5474a9=(_0x4f9fd9=this[_0x25b44e(0x358)]['getUniverSheetInstance'](this[_0x25b44e(0x427)]))==null?void 0x0:_0x4f9fd9[_0x25b44e(0x145)](_0x4a2ba9))==null?void 0x0:_0x5474a9['getMergeData']();return(_0x11f39b==null?void 0x0:_0x11f39b[_0x25b44e(0x179)](_0x46bd13=>_0x426027[_0x25b44e(0x449)](_0x46bd13,_0x24c560)))||_0x24c560;}[_0xf86c5a(0x41a)](){const _0x86d3be=_0xf86c5a,_0x1c4f40=new _0x58abb8(),_0x107982=Hr(),_0x3681c4=()=>{const _0x28ba96=_0x556d;_0x1c4f40[_0x28ba96(0x3ab)]();const _0x21cba9=(_0x254a3e,_0xfbfb17,_0x1192b6,_0x4dffdc)=>{const _0x409f75=_0x28ba96;let _0x5f56bb=[];switch(_0x254a3e['id']){case _0x55e87d[_0x409f75(0x2c4)]:{_0x5f56bb=_0x59ccd8(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x27e)]:{_0x5f56bb=_0x4abff6(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x324)]:{_0x5f56bb=_0x495110(_0x254a3e,_0x4dffdc);break;}case _0x55e87d['InsertRangeMoveDownCommandId']:{_0x5f56bb=_0x5f07f7(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x1fa)]:{_0x5f56bb=_0x387247(_0x254a3e,_0x4dffdc);break;}case _0x55e87d['InsertRowCommandId']:{_0x5f56bb=_0x50739d(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x422)]:{_0x5f56bb=_0x235916(_0x254a3e,_0x4dffdc);break;}case _0x55e87d['RemoveColCommandId']:{_0x5f56bb=_0x4a0d66(_0x254a3e,_0x4dffdc);break;}case _0x55e87d[_0x409f75(0x10d)]:{_0x5f56bb=_0x27df45(_0x254a3e,_0x4dffdc);break;}}const _0x2c9546=_0x3a1e73(_0x5f56bb,_0x4dffdc),_0x59a5f9=this['cursorInfo'][_0x409f75(0x175)](_0xfbfb17);if(_0x59a5f9&&_0x2c9546){const _0x312cc3={..._0x59a5f9,'range':_0x2c9546};this[_0x409f75(0x168)][_0x409f75(0x2be)](_0xfbfb17,_0x312cc3),_0x107982(()=>{const _0x17451d=_0x409f75,_0x225a40=this[_0x17451d(0x260)]['registerRefRange'](_0x2c9546,_0x3a4798=>(_0x225a40[_0x17451d(0x3ab)](),_0x21cba9(_0x3a4798,_0xfbfb17,_0x1192b6,_0x2c9546)));_0x1c4f40['add'](_0x225a40);});}return{'redos':[],'undos':[]};};this[_0x28ba96(0x168)][_0x28ba96(0x26c)]((_0x3f0a37,_0x1ecf9e)=>{const _0x3910a6=_0x28ba96,{range:_0x25488f,sheetID:_0x38452a}=_0x3f0a37,_0x3201e9=this[_0x3910a6(0x260)][_0x3910a6(0x2db)](_0x25488f,_0x24ca0e=>(_0x3201e9['dispose'](),_0x21cba9(_0x24ca0e,_0x1ecf9e,_0x38452a,_0x25488f)));_0x1c4f40[_0x3910a6(0x1e9)](_0x3201e9);});};this[_0x86d3be(0x177)](_0x441a7c(this[_0x86d3be(0x331)][_0x86d3be(0x1c3)](()=>{_0x3681c4();})));}['_toggleOnline'](){const _0x4d9043=_0xf86c5a;var _0x29c131,_0x3874b8;if(this[_0x4d9043(0x198)]=!0x0,((_0x29c131=this[_0x4d9043(0x358)]['getFocusedUnit']())==null?void 0x0:_0x29c131[_0x4d9043(0x23e)]())!==this[_0x4d9043(0x427)])return;const _0x19000c=(_0x3874b8=this['_injector'][_0x4d9043(0x175)](_0x48f502)[_0x4d9043(0x2ac)]())==null?void 0x0:_0x3874b8[0x0],_0x5ec71e=this['_univerInstanceService'][_0x4d9043(0x372)](_0x751d23['UNIVER_SHEET'])[_0x4d9043(0x204)]();_0x19000c&&_0x5ec71e&&this['_updateLocalCursor'](_0x5ec71e[_0x4d9043(0x300)](),_0x19000c);}[_0xf86c5a(0x1a1)](){this['_online']=!0x1;}};Dt=$r([me(0x2,_0x370f8c(_0x595e81)),me(0x3,_0x370f8c(Gt)),me(0x4,_0x370f8c(ce)),me(0x5,_0x5edd3d),me(0x6,_0x225d18),me(0x7,_0x370f8c(_0x3cfe14))],Dt);var kr=Object[_0xf86c5a(0xfa)],Br=Object['getOwnPropertyDescriptor'],Vr=(_0x9ca813,_0x48f95e,_0x15389a,_0x17a25c)=>{const _0x5ee03a=_0xf86c5a;for(var _0x93d247=_0x17a25c>0x1?void 0x0:_0x17a25c?Br(_0x48f95e,_0x15389a):_0x48f95e,_0x136638=_0x9ca813[_0x5ee03a(0x28c)]-0x1,_0x4ce002;_0x136638>=0x0;_0x136638--)(_0x4ce002=_0x9ca813[_0x136638])&&(_0x93d247=(_0x17a25c?_0x4ce002(_0x48f95e,_0x15389a,_0x93d247):_0x4ce002(_0x93d247))||_0x93d247);return _0x17a25c&&_0x93d247&&kr(_0x48f95e,_0x15389a,_0x93d247),_0x93d247;},ut=(_0x31a9d3,_0x39c101)=>(_0xf5e21b,_0x573315)=>_0x39c101(_0xf5e21b,_0x573315,_0x31a9d3);let ve=class extends _0x27d368{constructor(_0x5ded17,_0x50c94e,_0xd3a985){const _0x3d4236=_0xf86c5a;super(),l(this,'_entities',new Map()),l(this,_0x3d4236(0x2d8),new _0x26d305()),(this['_univerInstanceService']=_0x5ded17,this[_0x3d4236(0x22b)]=_0x50c94e,this[_0x3d4236(0x2f1)]=_0xd3a985,this[_0x3d4236(0x30d)]());}['dispose'](){const _0x2a4df5=_0xf86c5a;super[_0x2a4df5(0x3ab)](),this[_0x2a4df5(0x2d8)][_0x2a4df5(0x307)](),this[_0x2a4df5(0x330)][_0x2a4df5(0x26c)](_0x1c92f9=>_0x1c92f9[_0x2a4df5(0x3ab)]());}[_0xf86c5a(0x44d)](_0x215b12){const _0xd8c952=_0xf86c5a;return this[_0xd8c952(0x330)]['has'](_0x215b12)?this[_0xd8c952(0x330)][_0xd8c952(0x175)](_0x215b12)[_0xd8c952(0x318)]:this['_entityInit$']['pipe'](_0x5d44ea(_0x48912e=>_0x48912e[_0xd8c952(0x427)]===_0x215b12),_0x4e5135(_0x2350e6=>_0x2350e6['cursorInfo$']));}[_0xf86c5a(0x30d)](){const _0x4ab05a=_0xf86c5a;this['_univerInstanceService'][_0x4ab05a(0x3a6)](_0x751d23[_0x4ab05a(0x1af)])[_0x4ab05a(0x268)](_0x14bd7d(this[_0x4ab05a(0x39d)]))[_0x4ab05a(0x1c3)](async _0x491944=>{const _0x3933c2=_0x4ab05a,_0xe5c4da=_0x491944[_0x3933c2(0x23e)](),_0x50a622=await this[_0x3933c2(0x41e)](_0xe5c4da);this[_0x3933c2(0x2d8)][_0x3933c2(0x23f)](_0x50a622),this[_0x3933c2(0x330)][_0x3933c2(0x2be)](_0xe5c4da,_0x50a622);}),this[_0x4ab05a(0x358)][_0x4ab05a(0x3a6)](_0x751d23[_0x4ab05a(0x320)])[_0x4ab05a(0x268)](_0x14bd7d(this[_0x4ab05a(0x39d)]))[_0x4ab05a(0x268)](_0x5d44ea(_0x3b8cb1=>!_0x3b8cb1[_0x4ab05a(0x23e)]()['startsWith']('__')))[_0x4ab05a(0x1c3)](async _0x1318b1=>{const _0x126c9c=_0x4ab05a,_0x2754f7=_0x1318b1[_0x126c9c(0x23e)](),_0x656a5f=await this[_0x126c9c(0x399)](_0x2754f7);this[_0x126c9c(0x2d8)]['next'](_0x656a5f),this['_entities'][_0x126c9c(0x2be)](_0x2754f7,_0x656a5f);}),_0x20e120(this['_univerInstanceService'][_0x4ab05a(0x1f6)](_0x751d23[_0x4ab05a(0x320)]),this[_0x4ab05a(0x358)][_0x4ab05a(0x1f6)](_0x751d23[_0x4ab05a(0x1af)]))['pipe'](_0x14bd7d(this['dispose$']))[_0x4ab05a(0x1c3)](_0x129faf=>{const _0x17ec22=_0x4ab05a,_0x4a1c62=_0x129faf[_0x17ec22(0x23e)](),_0x54dd95=this['_entities'][_0x17ec22(0x175)](_0x4a1c62);_0x54dd95&&(_0x54dd95['dispose'](),this['_entities'][_0x17ec22(0x107)](_0x4a1c62));});}async[_0xf86c5a(0x41e)](_0x6e083){const _0x2b446d=_0xf86c5a,_0x1b30f1=await this['_collabSessionService'][_0x2b446d(0x13d)](_0x6e083),_0xe67c3a=this[_0x2b446d(0x22b)][_0x2b446d(0x45e)](Dt,_0x6e083,_0x1b30f1);return _0xe67c3a[_0x2b446d(0x18f)](),_0xe67c3a;}async[_0xf86c5a(0x399)](_0x490835){const _0x651b7f=_0xf86c5a,_0x13403d=await this['_collabSessionService'][_0x651b7f(0x13d)](_0x490835),_0x2dc325=this[_0x651b7f(0x22b)][_0x651b7f(0x45e)](Ot,_0x490835,_0x13403d);return _0x2dc325[_0x651b7f(0x18f)](),_0x2dc325;}};ve=Vr([ut(0x0,_0x5edd3d),ut(0x1,_0x370f8c(_0x595e81)),ut(0x2,_0x370f8c(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x219915,_0x102de5){const _0x1ba362=_0xf86c5a;let {radius:_0x2ef437,width:_0x74355a,height:_0x32eade}=_0x102de5;_0x2ef437=_0x2ef437!=null?_0x2ef437:0x0,_0x74355a=_0x74355a!=null?_0x74355a:0x1e,_0x32eade=_0x32eade!=null?_0x32eade:0x1e;let _0x4be6b9=0x0,_0x311970=0x0,_0xe67598=0x0;_0x4be6b9=_0x311970=_0xe67598=Math['min'](_0x2ef437,_0x74355a/0x2,_0x32eade/0x2),_0x219915[_0x1ba362(0x436)](),_0x219915[_0x1ba362(0x161)](_0x4be6b9,0x0),_0x219915[_0x1ba362(0x36c)](_0x74355a-_0x311970,0x0),_0x219915['arc'](_0x74355a-_0x311970,_0x311970,_0x311970,Math['PI']*0x3/0x2,0x0,!0x1),_0x219915[_0x1ba362(0x36c)](_0x74355a,_0x32eade-_0xe67598),_0x219915[_0x1ba362(0x2da)](_0x74355a-_0xe67598,_0x32eade-_0xe67598,_0xe67598,0x0,Math['PI']/0x2,!0x1),_0x219915[_0x1ba362(0x36c)](0x0,_0x32eade),_0x219915[_0x1ba362(0x36c)](0x0,_0x4be6b9),_0x219915[_0x1ba362(0x2da)](_0x4be6b9,_0x4be6b9,_0x4be6b9,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x219915[_0x1ba362(0x2b7)](),_0x102de5[_0x1ba362(0x16b)]&&(_0x219915[_0x1ba362(0x1f3)](),_0x219915[_0x1ba362(0x2bc)]=_0x102de5[_0x1ba362(0x16b)],_0x102de5[_0x1ba362(0x13c)]===_0x1ba362(0x45f)?_0x219915['fill'](_0x1ba362(0x45f)):_0x219915[_0x1ba362(0x16b)](),_0x219915[_0x1ba362(0x33c)]());}class st extends _0x167643{constructor(_0x303367,_0x196de9){const _0x9f9df2=_0xf86c5a;super(_0x303367,_0x196de9),l(this,_0x9f9df2(0x33f)),l(this,'text'),(this['color']=_0x196de9==null?void 0x0:_0x196de9[_0x9f9df2(0x33f)],this[_0x9f9df2(0x10c)]=_0x196de9==null?void 0x0:_0x196de9[_0x9f9df2(0x10c)]);}static[_0xf86c5a(0x43c)](_0x1d78df,_0x5d4c93){const _0x54fbb3=_0xf86c5a,{text:_0x183538,color:_0x4af762}=_0x5d4c93;_0x1d78df[_0x54fbb3(0x1f3)](),_0x1d78df[_0x54fbb3(0x17a)]=_0x54fbb3(0x29f);const _0x4fed7b=_0x1d78df[_0x54fbb3(0x15c)](_0x183538)['width'],_0x4f218c=Math[_0x54fbb3(0x394)](_0x4fed7b+0x2*dt,ms);Wr(_0x1d78df,{'height':$e,'radius':0x4,'width':_0x4f218c,'fill':_0x4af762,'evented':!0x1}),_0x1d78df[_0x54fbb3(0x2bc)]=_0x54fbb3(0x451);const _0x5c25ac=dt,_0x4b3125=$e-Fr,_0x3a8a0b=ms-0x2*dt;if(_0x4fed7b>_0x3a8a0b){let _0x41464b='',_0x36c9e4=0x0;for(const _0x3c820c of _0x183538){const _0x5c2e09=_0x1d78df[_0x54fbb3(0x15c)](_0x3c820c)['width'];if(_0x36c9e4+_0x5c2e09<=_0x3a8a0b-_0x1d78df[_0x54fbb3(0x15c)](_0x54fbb3(0x16c))['width'])_0x41464b+=_0x3c820c,_0x36c9e4+=_0x5c2e09;else{_0x41464b+=_0x54fbb3(0x16c);break;}}_0x1d78df['fillText'](_0x41464b,_0x5c25ac,_0x4b3125);}else _0x1d78df[_0x54fbb3(0x22f)](_0x183538,_0x5c25ac,_0x4b3125);_0x1d78df[_0x54fbb3(0x33c)]();}[_0xf86c5a(0xec)](_0x509101){st['drawWith'](_0x509101,this);}}const ft='collab-text-anchor-',Gr=_0xf86c5a(0x3bc),Yr='collab-rect-range-',we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr=_0xf86c5a(0xf5);class gs{constructor(_0x2b018c,_0x210e9e,_0x4b5c4c,_0x1f7b89){const _0x56ff25=_0xf86c5a;l(this,'_shapes',[]),l(this,_0x56ff25(0x240),null),l(this,_0x56ff25(0x431),null),l(this,_0x56ff25(0x2c3),null),l(this,_0x56ff25(0x14d),null),l(this,_0x56ff25(0x329),null),(this[_0x56ff25(0x425)]=_0x2b018c,this[_0x56ff25(0x242)]=_0x210e9e,this['_docSkeleton']=_0x4b5c4c,this[_0x56ff25(0x2c5)]=_0x1f7b89,this[_0x56ff25(0xe7)]());}set['_hover'](_0x851bdc){const _0x288782=_0xf86c5a;_0x851bdc?(this[_0x288782(0x2c3)]&&this[_0x288782(0x2c3)][_0x288782(0x2fe)](),this[_0x288782(0x431)]&&this['_textBubble'][_0x288782(0x265)]()):(this['_anchorDot']&&this['_anchorDot']['show'](),this[_0x288782(0x431)]&&this[_0x288782(0x431)]['hide']());}[_0xf86c5a(0x3ab)](){const _0x5da86b=_0xf86c5a;for(const _0x3ed3ba of this[_0x5da86b(0x10f)])_0x3ed3ba[_0x5da86b(0x3ab)]();this[_0x5da86b(0x431)]&&this[_0x5da86b(0x431)][_0x5da86b(0x3ab)](),this[_0x5da86b(0x2c3)]&&this[_0x5da86b(0x2c3)]['dispose'](),this[_0x5da86b(0x240)]&&this[_0x5da86b(0x240)][_0x5da86b(0x3ab)](),this[_0x5da86b(0x329)]&&this[_0x5da86b(0x329)]();}[_0xf86c5a(0xe7)](){const _0x469026=_0xf86c5a;var _0x1f5872;const {_docSkeleton:_0x47978a,_document:_0x78d9e0}=this,{color:_0x118042,name:_0x3b6ab8,ranges:_0x1ccc99}=this[_0x469026(0x425)],_0x3a79ed=_0x78d9e0[_0x469026(0x2f3)](),{docsLeft:_0x36385b,docsTop:_0x1de4c6}=_0x3a79ed,_0x29646e=new _0x3dcd36(_0x3a79ed,_0x47978a);for(const {startOffset:_0x40467e,endOffset:_0x2e4301,collapsed:_0x201799,isActive:_0x322220}of _0x1ccc99){const _0x5c4f49=_0x47978a[_0x469026(0x25c)](_0x40467e),_0x20b30f=_0x47978a['findNodePositionByCharIndex'](_0x2e4301);if(_0x322220){const {contentBoxPointGroup:_0x5741fd}=_0x29646e[_0x469026(0x3de)](_0x20b30f,_0x20b30f);if(_0x5741fd['length']===0x0)continue;this[_0x469026(0x1e3)](_0x118042,_0x5741fd,_0x36385b,_0x1de4c6,_0x3b6ab8),this['_eventUnsubscribe']=this[_0x469026(0x102)]();}if(!_0x201799&&_0x5c4f49&&_0x20b30f){if(_0x4fc5a4(_0x5c4f49,_0x20b30f)){const _0x26b189=new _0x241d4c(_0x3a79ed,_0x47978a),{pointGroup:_0x2eedc2}=(_0x1f5872=_0x26b189[_0x469026(0x3de)](_0x5c4f49,_0x20b30f))!=null?_0x1f5872:{};if(_0x2eedc2==null||_0x2eedc2[_0x469026(0x28c)]===0x0)continue;this[_0x469026(0x395)](_0x118042,_0x2eedc2,_0x36385b,_0x1de4c6);}else{const {contentBoxPointGroup:_0x37062d}=_0x29646e[_0x469026(0x3de)](_0x5c4f49,_0x20b30f);if(_0x37062d[_0x469026(0x28c)]===0x0)continue;this[_0x469026(0x2eb)](_0x118042,_0x37062d,_0x36385b,_0x1de4c6);}}}}[_0xf86c5a(0x1e3)](_0x15e2f6,_0x101cdb,_0x31f0ef,_0x449d5d,_0x2ed6da){const _0x222fb3=_0xf86c5a,_0x18039a=this[_0x222fb3(0xeb)](_0x101cdb),{left:_0x2686b0,top:_0x215b03,height:_0x4ee684}=_0x18039a,_0x2f1f8f=this[_0x222fb3(0x221)](),_0x3b6961=Xr/_0x2f1f8f,_0x43d02e=new _0x3fc8ee(ft+_0x48af3f['generateRandomId'](we),{'left':_0x2686b0+_0x31f0ef-_0x3b6961,'top':_0x215b03+_0x449d5d,'height':_0x4ee684,'width':Kr,'fill':_0x15e2f6||_0x5856f4(_0x520aaf[_0x222fb3(0x254)],0x0),'strokeWidth':_0x3b6961,'stroke':qr,'evented':!0x0});this['_anchor']=_0x43d02e,this[_0x222fb3(0x242)][_0x222fb3(0x279)](_0x43d02e,_0x3650e3);const _0x5110df=new _0x3fc8ee(ft+_0x48af3f[_0x222fb3(0x3a3)](we),{'left':_0x2686b0+_0x31f0ef-_0x3b6961,'top':_0x215b03+_0x449d5d-mt/0x2,'height':mt,'width':mt,'fill':_0x15e2f6||_0x5856f4(_0x520aaf[_0x222fb3(0x254)],0x0),'strokeWidth':0x0,'stroke':_0x15e2f6||_0x5856f4(_0x520aaf[_0x222fb3(0x254)],0x0),'evented':!0x1});this['_anchorDot']=_0x5110df,this[_0x222fb3(0x242)][_0x222fb3(0x279)](_0x5110df,_0x3650e3);const _0x1f0b8c=new st(ft+_0x48af3f[_0x222fb3(0x3a3)](we),{'left':_0x2686b0+_0x31f0ef-_0x3b6961,'top':_0x215b03+_0x449d5d-$e,'text':_0x2ed6da,'color':_0x15e2f6});this[_0x222fb3(0x431)]=_0x1f0b8c,this['_scene'][_0x222fb3(0x279)](_0x1f0b8c,_0x3650e3),this[_0x222fb3(0x2cf)]=!0x1;}['_handleHover'](){const _0x506845=_0xf86c5a,_0x329197=this['_anchor'][_0x506845(0x2d0)][_0x506845(0x400)](()=>{this['_hover']=!0x0;}),_0x55ff97=this[_0x506845(0x240)][_0x506845(0x2fa)]['subscribeEvent'](()=>{const _0x3de2ee=_0x506845;this[_0x3de2ee(0x14d)]&&clearTimeout(this[_0x3de2ee(0x14d)]),this[_0x3de2ee(0x14d)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1fb3e8=_0x506845;_0x329197[_0x1fb3e8(0x26d)](),_0x55ff97[_0x1fb3e8(0x26d)]();};}[_0xf86c5a(0x2eb)](_0x58f1ef,_0x17efe6,_0x495d33,_0x15830d){const _0xdd8a4a=_0xf86c5a,_0x5570c6=new _0x3afec0(_0x58f1ef)[_0xdd8a4a(0x392)](0.2)[_0xdd8a4a(0x2df)](),_0x247916=new _0x5f2724(Gr+_0x48af3f[_0xdd8a4a(0x3a3)](we),{'pointsGroup':_0x17efe6,'fill':_0x5570c6||_0x5856f4(_0x520aaf['black'],0.2),'left':_0x495d33,'top':_0x15830d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xdd8a4a(0x10f)][_0xdd8a4a(0x106)](_0x247916),this['_scene'][_0xdd8a4a(0x279)](_0x247916,_0x3650e3);}[_0xf86c5a(0x395)](_0x4dbfe2,_0x131341,_0x454ee4,_0x4794f4){const _0xb3bc29=_0xf86c5a,_0x1516e7=new _0x3afec0(_0x4dbfe2)[_0xb3bc29(0x392)](0.2)[_0xb3bc29(0x2df)](),_0x20eb37=new _0x5f2724(Yr+_0x48af3f[_0xb3bc29(0x3a3)](we),{'pointsGroup':_0x131341,'fill':_0x1516e7||_0x5856f4(_0x520aaf[_0xb3bc29(0x254)],0.2),'left':_0x454ee4,'top':_0x4794f4,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xb3bc29(0x106)](_0x20eb37),this[_0xb3bc29(0x242)]['addObject'](_0x20eb37,_0x3650e3);}[_0xf86c5a(0xeb)](_0x4ec20d){const _0xb43198=_0x4ec20d[0x0],_0x38e06b=_0xb43198[0x0],_0x1c6f91=_0xb43198[0x2],{x:_0x4fad88,y:_0x3e6ed9}=_0x38e06b,{x:_0x3c820a,y:_0x1a385f}=_0x1c6f91;return{'left':_0x4fad88,'top':_0x3e6ed9,'width':_0x3c820a-_0x4fad88,'height':_0x1a385f-_0x3e6ed9};}['_getScale'](){const _0x12956f=_0xf86c5a,{scaleX:_0x407b6e,scaleY:_0x4856d8}=this[_0x12956f(0x242)]['getAncestorScale']();return Math[_0x12956f(0x2ee)](_0x407b6e,_0x4856d8);}}var Jr=Object[_0xf86c5a(0xfa)],zr=Object[_0xf86c5a(0x397)],Zr=(_0x26d5ed,_0x5c726e,_0x139528,_0x5ca6e6)=>{const _0x5797e8=_0xf86c5a;for(var _0x314d1b=_0x5ca6e6>0x1?void 0x0:_0x5ca6e6?zr(_0x5c726e,_0x139528):_0x5c726e,_0x4689b7=_0x26d5ed[_0x5797e8(0x28c)]-0x1,_0x41a9f5;_0x4689b7>=0x0;_0x4689b7--)(_0x41a9f5=_0x26d5ed[_0x4689b7])&&(_0x314d1b=(_0x5ca6e6?_0x41a9f5(_0x5c726e,_0x139528,_0x314d1b):_0x41a9f5(_0x314d1b))||_0x314d1b);return _0x5ca6e6&&_0x314d1b&&Jr(_0x5c726e,_0x139528,_0x314d1b),_0x314d1b;},ke=(_0x54d4ba,_0x1bcd89)=>(_0x4fb6d5,_0xb93acc)=>_0x1bcd89(_0x4fb6d5,_0xb93acc,_0x54d4ba);let wt=class extends _0x27d368{constructor(_0x1e75c2,_0x5386b3,_0x246072,_0x359bf9,_0x4514e8){const _0xef945c=_0xf86c5a;super(),l(this,_0xef945c(0x1c0),[]),l(this,_0xef945c(0x1d5),[]),(this[_0xef945c(0x227)]=_0x1e75c2,this[_0xef945c(0x3a2)]=_0x5386b3,this[_0xef945c(0x1a8)]=_0x246072,this[_0xef945c(0x456)]=_0x359bf9,this[_0xef945c(0x2e5)]=_0x4514e8,this[_0xef945c(0x30d)]());}[_0xf86c5a(0x30d)](){const _0x1de2bf=_0xf86c5a,_0x40bbf7=this[_0x1de2bf(0x227)]['unitId'],_0x904392=this['_docSkeletonManagerService'];this[_0x1de2bf(0x177)](_0x382452([this[_0x1de2bf(0x1a8)][_0x1de2bf(0x44d)](_0x40bbf7),this[_0x1de2bf(0x2e5)][_0x1de2bf(0x412)]])['pipe'](_0x524dbf(([_0x1ec70a,_0x54df26])=>({'skeleton':_0x904392[_0x1de2bf(0x157)](),'cursors':[..._0x1ec70a['values']()][_0x1de2bf(0x303)](_0x3d66d3=>({..._0x3d66d3,'color':_0x54df26[_0x3d66d3[_0x1de2bf(0x33f)]]}))})))[_0x1de2bf(0x1c3)](_0xf650da=>{const _0x15d104=_0x1de2bf;if(this['_removeCollabCursors'](),_0xf650da){const {skeleton:_0x5984ea,cursors:_0x5d2ff9}=_0xf650da;this[_0x15d104(0x276)](_0x5984ea,_0x5d2ff9);}})),this[_0x1de2bf(0x3f7)](),this['_initCommandExecutedListener']();}[_0xf86c5a(0x276)](_0xab83,_0x19b28d){const _0x1a2e8d=_0xf86c5a,{scene:_0x48da81,mainComponent:_0x4ed878}=this[_0x1a2e8d(0x227)],_0x582e26=_0x19b28d[_0x1a2e8d(0x2c1)](_0x3adba2=>new gs(_0x3adba2,_0x48da81,_0xab83,_0x4ed878));this[_0x1a2e8d(0x1c0)]=_0x582e26,this[_0x1a2e8d(0x1d5)]=_0x19b28d;}['_refreshCollabCursors'](){const _0xd83110=_0xf86c5a;this[_0xd83110(0x3d9)]();const {scene:_0x113b32,mainComponent:_0x102f89}=this[_0xd83110(0x227)],_0x17e7a7=this[_0xd83110(0x3a2)][_0xd83110(0x157)](),_0x192b96=this[_0xd83110(0x1d5)][_0xd83110(0x2c1)](_0x457d72=>new gs(_0x457d72,_0x113b32,_0x17e7a7,_0x102f89));this[_0xd83110(0x1c0)]=_0x192b96;}['_removeCollabCursors'](){const _0x40f6c1=_0xf86c5a;this[_0x40f6c1(0x1c0)][_0x40f6c1(0x26c)](_0x4cc10d=>_0x4cc10d[_0x40f6c1(0x3ab)]()),this['_cursorShapes']=[];}[_0xf86c5a(0x3c5)](){const _0x10cfbb=_0xf86c5a,_0x59ed5a=[_0xbd22e5['id']];this[_0x10cfbb(0x177)](this[_0x10cfbb(0x456)]['onCommandExecuted'](_0x12e8af=>{const _0x5d5094=_0x10cfbb;_0x59ed5a[_0x5d5094(0x327)](_0x12e8af['id'])&&_0x12e8af[_0x5d5094(0x2e1)][_0x5d5094(0x25d)]===this[_0x5d5094(0x227)][_0x5d5094(0x25d)]&&this['_refreshCollabCursors']();}));}[_0xf86c5a(0x3f7)](){const _0x1da37a=_0xf86c5a;this[_0x1da37a(0x177)](_0x51fef5(this['_context'][_0x1da37a(0x325)][_0x1da37a(0x261)])['pipe'](_0x152a98(_0x4c1832=>_0x4c1832[_0x1da37a(0x246)]===_0x233e1a[_0x1da37a(0x134)]),_0x207ccd(0x10))[_0x1da37a(0x1c3)](()=>{const _0x5876ec=_0x1da37a;this[_0x5876ec(0x184)]();}));}};wt=Zr([ke(0x1,_0x370f8c(_0x3d6839)),ke(0x2,_0x370f8c(ve)),ke(0x3,_0x225d18),ke(0x4,_0x370f8c(_0x18d2f9))],wt);const Qr=0x1,eo=1.5;class to extends _0x167643{constructor(_0x296c06,_0x1b3500){const _0x1d15af=_0xf86c5a;super(_0x296c06,_0x1b3500),l(this,_0x1d15af(0x2d2)),l(this,_0x1d15af(0x3d7),!0x1),l(this,'_range'),l(this,_0x1d15af(0x2d6),''),l(this,'_labelPosition',_0x1d15af(0x209)),l(this,'_backgroundColor'),(_0x1b3500&&this[_0x1d15af(0x349)](_0x1b3500),this[_0x1d15af(0x2d0)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1d15af(0x2fa)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0xf86c5a(0x349)](_0x16e20b){const _0x8cb3b8=_0xf86c5a;var _0x3b2ca8,_0x94d896,_0x2417e7,_0x4c115c,_0x2f9a40,_0x4e0615;this['_color']=(_0x3b2ca8=_0x16e20b[_0x8cb3b8(0x33f)])!=null?_0x3b2ca8:this[_0x8cb3b8(0x2d2)],this[_0x8cb3b8(0x3d7)]=(_0x94d896=_0x16e20b[_0x8cb3b8(0x366)])!=null?_0x94d896:this[_0x8cb3b8(0x3d7)],this[_0x8cb3b8(0x1e8)]=(_0x2417e7=_0x16e20b[_0x8cb3b8(0x420)])!=null?_0x2417e7:this[_0x8cb3b8(0x1e8)],this[_0x8cb3b8(0x2d6)]=(_0x4c115c=_0x16e20b[_0x8cb3b8(0x11f)])!=null?_0x4c115c:this['_name'],this['_labelPosition']=(_0x2f9a40=_0x16e20b[_0x8cb3b8(0x446)])!=null?_0x2f9a40:this[_0x8cb3b8(0x441)],this[_0x8cb3b8(0x283)]=(_0x4e0615=_0x16e20b['backgroundColor'])!=null?_0x4e0615:this['_backgroundColor'],this[_0x8cb3b8(0x348)]({'width':_0x16e20b[_0x8cb3b8(0x30e)],'height':_0x16e20b[_0x8cb3b8(0x1de)]});}[_0xf86c5a(0x3a0)](_0x3b3558){const _0x3b6185=_0xf86c5a,{row:_0x32092,column:_0x2c5e1a}=_0x3b3558;if(_0x32092>=this[_0x3b6185(0x1e8)]['startRow']&&_0x32092<=this[_0x3b6185(0x1e8)][_0x3b6185(0x291)]&&_0x2c5e1a>=this['_range'][_0x3b6185(0x1d6)]&&_0x2c5e1a<=this['_range']['endColumn']){this[_0x3b6185(0x349)]({'hovered':!0x0});return;}this[_0x3b6185(0x349)]({'hovered':!0x1});}[_0xf86c5a(0x193)](_0x3ee75e){return!0x1;}[_0xf86c5a(0xec)](_0x5c0da1){const _0x5261b3=_0xf86c5a;_0x3fc8ee['drawWith'](_0x5c0da1,{'width':this[_0x5261b3(0x30e)],'height':this['height'],'strokeWidth':eo,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x5261b3(0x283)]}),this[_0x5261b3(0x3d7)]&&(_0x5c0da1[_0x5261b3(0x1f3)](),_0x5c0da1['transform'](0x1,0x0,0x0,0x1,this[_0x5261b3(0x30e)],this['_labelPosition']==='bottom'?0x0:-$e),st[_0x5261b3(0x43c)](_0x5c0da1,{'text':this[_0x5261b3(0x2d6)],'color':this['_color']}),_0x5c0da1[_0x5261b3(0x33c)]());}}var so=Object[_0xf86c5a(0xfa)],io=Object[_0xf86c5a(0x397)],no=(_0x3e1e85,_0x4501f6,_0x2cb05a,_0x296784)=>{const _0x589d6d=_0xf86c5a;for(var _0x2e3c08=_0x296784>0x1?void 0x0:_0x296784?io(_0x4501f6,_0x2cb05a):_0x4501f6,_0x4fe2e7=_0x3e1e85[_0x589d6d(0x28c)]-0x1,_0x5cc906;_0x4fe2e7>=0x0;_0x4fe2e7--)(_0x5cc906=_0x3e1e85[_0x4fe2e7])&&(_0x2e3c08=(_0x296784?_0x5cc906(_0x4501f6,_0x2cb05a,_0x2e3c08):_0x5cc906(_0x2e3c08))||_0x2e3c08);return _0x296784&&_0x2e3c08&&so(_0x4501f6,_0x2cb05a,_0x2e3c08),_0x2e3c08;},gt=(_0x4ca1f3,_0x4c4eb4)=>(_0x50fdbd,_0x22439b)=>_0x4c4eb4(_0x50fdbd,_0x22439b,_0x4ca1f3);const ro=0x1389;let Pt=class extends _0x27d368{constructor(_0x44aebe,_0x4b09c0,_0x17de70,_0x385b4f){const _0x3beec5=_0xf86c5a;super(),l(this,'_cursors',new Set()),l(this,_0x3beec5(0x173),null),(this[_0x3beec5(0x227)]=_0x44aebe,this[_0x3beec5(0x3ee)]=_0x4b09c0,this[_0x3beec5(0x1a8)]=_0x17de70,this[_0x3beec5(0x2e5)]=_0x385b4f,this[_0x3beec5(0x30d)]());}[_0xf86c5a(0x30d)](){const _0x355108=_0xf86c5a;this[_0x355108(0x3ee)]['currentSkeleton$'][_0x355108(0x268)](_0x1c351c(this[_0x355108(0x39d)]),_0x570e86(_0x5b7a7a=>{const _0x555f77=_0x355108;if(_0x5b7a7a){const _0x4509b7=_0x5b7a7a[_0x555f77(0x36b)];return _0x382452(this[_0x555f77(0x1a8)][_0x555f77(0x44d)](this['_context'][_0x555f77(0x25d)]),this['_themeService'][_0x555f77(0x412)])[_0x555f77(0x268)](_0x524dbf(([_0x2c88fb,_0x30c921])=>{const _0x562ad6=_0x555f77,_0x5319d5=new Map();return _0x2c88fb[_0x562ad6(0x26c)]((_0x4dbf95,_0x1d871b)=>{const _0x1fe43a=_0x562ad6;if(_0x4dbf95['sheetID']===_0x4509b7){const _0x548884={..._0x4dbf95};_0x548884[_0x1fe43a(0x33f)]=_0x30c921[_0x4dbf95[_0x1fe43a(0x33f)]],_0x5319d5['set'](_0x1d871b,_0x548884);}}),{'skeleton':_0x5b7a7a,'cursors':_0x5319d5};}));}return _0xfb2e43({'skeleton':null,'cursors':new Map()});}))[_0x355108(0x1c3)](({skeleton:_0x312622,cursors:_0x5318c8})=>{const _0xacdcde=_0x355108;this[_0xacdcde(0x3d9)](),_0x312622&&this[_0xacdcde(0x276)](_0x312622,_0x5318c8);}),this[_0x355108(0x3ee)]['currentSkeleton$'][_0x355108(0x1c3)](_0x13edd7=>{const _0x25fc1b=_0x355108;if(_0x13edd7==null)return;const {skeleton:_0x23c26a}=_0x13edd7,{scene:_0x42afaa}=this[_0x25fc1b(0x227)];_0x42afaa[_0x25fc1b(0x3e0)][_0x25fc1b(0x400)](_0x3e7548(_0x2b36cf=>{const _0x101e20=_0x25fc1b;var _0x281ebf,_0x722396;const {offsetX:_0x293417,offsetY:_0x2594b2}=_0x2b36cf,{x:_0x45c612,y:_0x419560}=_0x42afaa['getRelativeToViewportCoord'](_0x5207df[_0x101e20(0x2a9)]([_0x293417,_0x2594b2])),{scaleX:_0x1aa5b8,scaleY:_0x13a216}=_0x42afaa['getAncestorScale'](),_0x466e21=_0x42afaa[_0x101e20(0x2fb)](_0x3de08b['VIEW_MAIN']),_0x2a16ca=_0x42afaa[_0x101e20(0x128)](_0x5207df[_0x101e20(0x2a9)]([_0x45c612,_0x419560]),_0x466e21),_0xc1f85b=_0x23c26a['getCellPositionByOffset'](_0x293417,_0x2594b2,_0x1aa5b8,_0x13a216,_0x2a16ca);((_0x281ebf=this[_0x101e20(0x173)])==null?void 0x0:_0x281ebf[_0x101e20(0x437)])===_0xc1f85b[_0x101e20(0x437)]&&((_0x722396=this[_0x101e20(0x173)])==null?void 0x0:_0x722396['row'])===_0xc1f85b[_0x101e20(0x1cc)]||this[_0x101e20(0x1d5)][_0x101e20(0x26c)](_0x6fbe0a=>{const _0x2ae90d=_0x101e20;_0x6fbe0a[_0x2ae90d(0x3a0)](_0xc1f85b);});},0x64));});}['_updateCollabCursors'](_0xa74246,_0x4300b6){const _0x5a0c5a=_0xf86c5a;var _0x3679da;const _0x2e7ee9=(_0x3679da=this[_0x5a0c5a(0x3ee)][_0x5a0c5a(0x218)]())==null?void 0x0:_0x3679da['skeleton'];if(!_0x2e7ee9)return;const _0x570d4a=this['_getSheetObject']();if(!_0x570d4a)return;this[_0x5a0c5a(0x1d5)][_0x5a0c5a(0x26c)](_0x156911=>{const _0x375ef7=_0x5a0c5a;_0x156911[_0x375ef7(0x10b)]();});const {scene:_0x3a8c9d}=_0x570d4a,_0x42c249=oo(Array[_0x5a0c5a(0x37d)](_0x4300b6[_0x5a0c5a(0x119)]()))['map'](_0x91c5a2=>{const _0x534240=_0x5a0c5a,{color:_0x3ee5e9,range:_0x3a0f60,name:_0x34d44f,selection:_0x4807c1,sheetID:_0x3a6be1}=_0x91c5a2,{startColumn:_0xc06337,startRow:_0x56303e,endColumn:_0x352207,endRow:_0x37a06d}=_0x3a0f60,_0x29a5ef=_0x4bd0fa(_0x56303e,_0xc06337,_0x3a8c9d,_0x2e7ee9),_0x3f0d4b=_0x4bd0fa(_0x37a06d,_0x352207,_0x3a8c9d,_0x2e7ee9),{columnHeaderHeightAndMarginTop:_0x3d6116}=_0x2e7ee9,{startX:_0x414277,startY:_0x51bcb6}=_0x29a5ef,{endX:_0x439c74,endY:_0x30d09b}=_0x3f0d4b,_0x2ccbf8=_0x439c74-_0x414277,_0x558455=_0x30d09b-_0x51bcb6,_0x1bf89a={'labelPosition':_0x51bcb6-_0x3d6116>=$e?_0x534240(0x209):'bottom','sheetID':_0x3a6be1,'range':_0x3a0f60,'color':_0x3ee5e9,'name':_0x34d44f,'selection':_0x4807c1,'left':_0x414277,'top':_0x51bcb6,'width':_0x2ccbf8,'height':_0x558455,'evented':!0x1,'zIndex':ro};return new to(_0x34d44f,_0x1bf89a);});_0x3a8c9d[_0x5a0c5a(0x11d)](_0x42c249,Qr),this[_0x5a0c5a(0x1d5)]=new Set(_0x42c249);}[_0xf86c5a(0x3d9)](){const _0x3e639b=_0xf86c5a;var _0x11b7c7;(_0x11b7c7=this[_0x3e639b(0x1d5)])==null||_0x11b7c7['forEach'](_0xc304b2=>_0xc304b2[_0x3e639b(0x3ab)]());}[_0xf86c5a(0x1c6)](){const _0x5625e0=_0xf86c5a;return _0x4b698d(this['_context'][_0x5625e0(0x24a)],this[_0x5625e0(0x227)]);}};Pt=no([gt(0x1,_0x370f8c(_0x40b0bd)),gt(0x2,_0x370f8c(ve)),gt(0x3,_0x370f8c(_0x18d2f9))],Pt);function oo(_0x13c543){const _0x3b5eaf=_0xf86c5a,_0x35828e=new Map();return _0x13c543['forEach'](_0x5bc60e=>{const _0x441a11=_0x556d;if(_0x35828e[_0x441a11(0x1f5)](_0x5bc60e[_0x441a11(0x406)])){const _0x20e163=_0x35828e[_0x441a11(0x175)](_0x5bc60e['selection']);_0x20e163[_0x441a11(0x11f)]+=',\x20'+_0x5bc60e[_0x441a11(0x11f)];}else _0x35828e[_0x441a11(0x2be)](_0x5bc60e['selection'],_0x5bc60e);}),Array['from'](_0x35828e[_0x3b5eaf(0x119)]());}var N=function(){const _0x23bc13=_0xf86c5a;return N=Object['assign']||function(_0x2ba7f4){const _0xaf53eb=_0x556d;for(var _0x57d2f6,_0x29f77a=0x1,_0x40ad45=arguments[_0xaf53eb(0x28c)];_0x29f77a<_0x40ad45;_0x29f77a++){_0x57d2f6=arguments[_0x29f77a];for(var _0x3c21d5 in _0x57d2f6)Object[_0xaf53eb(0xf1)][_0xaf53eb(0x252)][_0xaf53eb(0x1ce)](_0x57d2f6,_0x3c21d5)&&(_0x2ba7f4[_0x3c21d5]=_0x57d2f6[_0x3c21d5]);}return _0x2ba7f4;},N[_0x23bc13(0x241)](this,arguments);},ao=function(_0x39d384,_0x1d45e6){const _0x31b523=_0xf86c5a;var _0x3f211b={};for(var _0x5893ec in _0x39d384)Object[_0x31b523(0xf1)][_0x31b523(0x252)][_0x31b523(0x1ce)](_0x39d384,_0x5893ec)&&_0x1d45e6[_0x31b523(0x2ed)](_0x5893ec)<0x0&&(_0x3f211b[_0x5893ec]=_0x39d384[_0x5893ec]);if(_0x39d384!=null&&typeof Object[_0x31b523(0x1bc)]==_0x31b523(0x1ad)){for(var _0x1be734=0x0,_0x5893ec=Object['getOwnPropertySymbols'](_0x39d384);_0x1be734<_0x5893ec[_0x31b523(0x28c)];_0x1be734++)_0x1d45e6[_0x31b523(0x2ed)](_0x5893ec[_0x1be734])<0x0&&Object['prototype'][_0x31b523(0x104)][_0x31b523(0x1ce)](_0x39d384,_0x5893ec[_0x1be734])&&(_0x3f211b[_0x5893ec[_0x1be734]]=_0x39d384[_0x5893ec[_0x1be734]]);}return _0x3f211b;},Yt=_0x31fd8f(function(_0x392a70,_0x5a85d3){const _0x39d69b=_0xf86c5a;var _0x5c2baf=_0x392a70[_0x39d69b(0x13b)],_0x235061=_0x392a70['id'],_0x239d65=_0x392a70['className'],_0xdfb241=_0x392a70['extend'],_0x5d9505=ao(_0x392a70,[_0x39d69b(0x13b),'id',_0x39d69b(0x23d),_0x39d69b(0x258)]),_0x11cfb4=_0x39d69b(0x2ec)[_0x39d69b(0x448)](_0x235061,'\x20')[_0x39d69b(0x448)](_0x239d65||'')[_0x39d69b(0x312)](),_0x40a386=_0x782f32('_'[_0x39d69b(0x448)](lo()));return Gs(_0x5c2baf,''[_0x39d69b(0x448)](_0x235061),{'defIds':_0x5c2baf['defIds'],'idSuffix':_0x40a386[_0x39d69b(0x133)]},N({'ref':_0x5a85d3,'className':_0x11cfb4},_0x5d9505),_0xdfb241);});function Gs(_0x624642,_0x2a8946,_0x3de78f,_0x553d09,_0x5e1060){const _0xa46639=_0xf86c5a;return _0x5d9ae6(_0x624642['tag'],N(N({'key':_0x2a8946},co(_0x624642,_0x3de78f,_0x5e1060)),_0x553d09),(ho(_0x624642,_0x3de78f)[_0xa46639(0xe4)]||[])[_0xa46639(0x2c1)](function(_0x386adf,_0xaed19c){const _0x26b368=_0xa46639;return Gs(_0x386adf,''[_0x26b368(0x448)](_0x2a8946,'-')[_0x26b368(0x448)](_0x624642[_0x26b368(0x34c)],'-')[_0x26b368(0x448)](_0xaed19c),_0x3de78f,void 0x0,_0x5e1060);}));}function co(_0x2ba9b5,_0x62f861,_0x2fba1e){const _0x596369=_0xf86c5a;var _0x5513c0=N({},_0x2ba9b5['attrs']);_0x2fba1e!=null&&_0x2fba1e[_0x596369(0x155)]&&_0x5513c0['fill']===_0x596369(0x155)&&(_0x5513c0[_0x596369(0x16b)]=_0x2fba1e[_0x596369(0x155)]);var _0x4f9eba=_0x62f861['defIds'];return!_0x4f9eba||_0x4f9eba[_0x596369(0x28c)]===0x0||(_0x2ba9b5['tag']===_0x596369(0x40b)&&_0x5513c0[_0x596369(0x282)]&&(_0x5513c0[_0x596369(0x282)]=_0x5513c0[_0x596369(0x282)]+_0x62f861[_0x596369(0x387)]),Object[_0x596369(0x468)](_0x5513c0)[_0x596369(0x26c)](function(_0xd8d903){const _0x1ea0df=_0x596369;var _0x8c2e35=_0xd8d903[0x0],_0x4b2d83=_0xd8d903[0x1];typeof _0x4b2d83==_0x1ea0df(0x1ab)&&(_0x5513c0[_0x8c2e35]=_0x4b2d83['replace'](/url\(#(.*)\)/,_0x1ea0df(0x183)[_0x1ea0df(0x448)](_0x62f861['idSuffix'],')')));})),_0x5513c0;}function ho(_0x231674,_0x46d371){const _0x4e26c9=_0xf86c5a;var _0x1c42cf,_0x42b214=_0x46d371['defIds'];return!_0x42b214||_0x42b214[_0x4e26c9(0x28c)]===0x0?_0x231674:_0x231674[_0x4e26c9(0x34c)]===_0x4e26c9(0x140)&&(!((_0x1c42cf=_0x231674['children'])===null||_0x1c42cf===void 0x0)&&_0x1c42cf[_0x4e26c9(0x28c)])?N(N({},_0x231674),{'children':_0x231674[_0x4e26c9(0xe4)][_0x4e26c9(0x2c1)](function(_0x447ce1){const _0x22e8cb=_0x4e26c9;return typeof _0x447ce1['attrs']['id']=='string'&&_0x42b214&&_0x42b214[_0x22e8cb(0x2ed)](_0x447ce1[_0x22e8cb(0x2bf)]['id'])>-0x1?N(N({},_0x447ce1),{'attrs':N(N({},_0x447ce1['attrs']),{'id':_0x447ce1['attrs']['id']+_0x46d371[_0x22e8cb(0x387)]})}):_0x447ce1;})}):_0x231674;}function lo(){const _0x48196b=_0xf86c5a;return Math['random']()[_0x48196b(0x202)](0x24)['substring'](0x2,0x8);}Yt[_0xf86c5a(0x125)]=_0xf86c5a(0x338);var _o={'tag':_0xf86c5a(0x2c0),'attrs':{'fill':'none','viewBox':_0xf86c5a(0x160),'width':'1em','height':_0xf86c5a(0x396)},'children':[{'tag':'g','attrs':{'clipPath':_0xf86c5a(0x391)},'children':[{'tag':_0xf86c5a(0x190),'attrs':{'stroke':_0xf86c5a(0xf7),'d':_0xf86c5a(0x313),'strokeLinecap':'round','strokeLinejoin':_0xf86c5a(0x354),'strokeWidth':1.2}}]},{'tag':_0xf86c5a(0x140),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0xf86c5a(0x1e5)},'children':[{'tag':_0xf86c5a(0x190),'attrs':{'fill':_0xf86c5a(0x443),'d':_0xf86c5a(0x38a)}}]}]}],'defIds':[_0xf86c5a(0x1e5)]},Ys=_0x31fd8f(function(_0x1af955,_0x23acec){const _0x7f9be4=_0xf86c5a;return _0x5d9ae6(Yt,Object['assign']({},_0x1af955,{'id':_0x7f9be4(0x2d5),'ref':_0x23acec,'icon':_o}));});Ys[_0xf86c5a(0x125)]=_0xf86c5a(0x208);var uo={'tag':_0xf86c5a(0x2c0),'attrs':{'fill':_0xf86c5a(0x3f8),'viewBox':_0xf86c5a(0x37f),'width':_0xf86c5a(0x396),'height':_0xf86c5a(0x396)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0xf86c5a(0xf7),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0xf86c5a(0x354),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0xf86c5a(0x140),'attrs':{},'children':[{'tag':_0xf86c5a(0x132),'attrs':{'id':_0xf86c5a(0x146)},'children':[{'tag':_0xf86c5a(0x190),'attrs':{'fill':'#fff','d':_0xf86c5a(0x38a),'transform':_0xf86c5a(0x16f)}}]}]}],'defIds':[_0xf86c5a(0x146)]},Ks=_0x31fd8f(function(_0x32fae6,_0x45faf8){const _0x57bea5=_0xf86c5a;return _0x5d9ae6(Yt,Object['assign']({},_0x32fae6,{'id':_0x57bea5(0x32e),'ref':_0x45faf8,'icon':uo}));});Ks[_0xf86c5a(0x125)]=_0xf86c5a(0x1bb);function Xs(_0x1accff){const _0x58663d=_0xf86c5a;var _0x1fa91c,_0x319cc7,_0x181eed='';if(typeof _0x1accff=='string'||typeof _0x1accff=='number')_0x181eed+=_0x1accff;else{if(typeof _0x1accff==_0x58663d(0x14a)){if(Array[_0x58663d(0x453)](_0x1accff)){var _0x3d8bf1=_0x1accff['length'];for(_0x1fa91c=0x0;_0x1fa91c<_0x3d8bf1;_0x1fa91c++)_0x1accff[_0x1fa91c]&&(_0x319cc7=Xs(_0x1accff[_0x1fa91c]))&&(_0x181eed&&(_0x181eed+='\x20'),_0x181eed+=_0x319cc7);}else{for(_0x319cc7 in _0x1accff)_0x1accff[_0x319cc7]&&(_0x181eed&&(_0x181eed+='\x20'),_0x181eed+=_0x319cc7);}}}return _0x181eed;}function fo(){const _0x3b1379=_0xf86c5a;for(var _0x14e48a,_0x333712,_0x13cf94=0x0,_0x251966='',_0x53e9a3=arguments[_0x3b1379(0x28c)];_0x13cf94<_0x53e9a3;_0x13cf94++)(_0x14e48a=arguments[_0x13cf94])&&(_0x333712=Xs(_0x14e48a))&&(_0x251966&&(_0x251966+='\x20'),_0x251966+=_0x333712);return _0x251966;}const mo=_0xf86c5a(0x293),go=_0xf86c5a(0x2d9),So=_0xf86c5a(0x1cf),po=_0xf86c5a(0x2f5),vo=_0xf86c5a(0x370),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x32bf14){const _0x171dc0=_0xf86c5a;switch(_0x32bf14){case P[_0x171dc0(0x2a1)]:return _0x171dc0(0x3bf);case P[_0x171dc0(0x1d4)]:return'collabStatus.conflict';case P[_0x171dc0(0x38b)]:return _0x171dc0(0x2f2);case P[_0x171dc0(0x239)]:return _0x171dc0(0x40e);case P[_0x171dc0(0x3fe)]:case P[_0x171dc0(0x120)]:case P['AWAITING_WITH_PENDING']:return _0x171dc0(0x22e);case P[_0x171dc0(0x115)]:return _0x171dc0(0x20d);}}function Eo(_0x5ab5f3){const _0x4c0a73=_0xf86c5a,{status$:_0x567965}=_0x5ab5f3,_0x156716=_0xa83107(_0x567965,P[_0x4c0a73(0x239)]),_0x18029b=_0x3333be(_0x2673bf),_0x225d6b=_0x3333be(he),_0x4a672b=_0x156716!==P[_0x4c0a73(0x2a1)],_0x24fe4c=_0x18029b['t'](Io(_0x156716)),_0x14e593=fo(Pe[_0x4c0a73(0x466)],{[Pe[_0x4c0a73(0x374)]]:_0x4a672b,[Pe[_0x4c0a73(0x123)]]:!_0x4a672b}),_0x19308e=_0x4a672b?_0x52a9d6[_0x4c0a73(0xe5)](Ks,null):_0x52a9d6[_0x4c0a73(0xe5)](Ys,null),_0x27e31d=_0x4bc1b9(()=>{const _0x286dfa=_0x4c0a73;_0x4a672b||_0x225d6b[_0x286dfa(0x36d)]();},[_0x4a672b,_0x225d6b]);function _0x1c5e90(){const _0x6978f3=_0x4c0a73;return _0x52a9d6['createElement'](_0x6978f3(0x248),{'className':_0x14e593,'onClick':_0x27e31d},_0x52a9d6[_0x6978f3(0xe5)](_0x6978f3(0x248),{'className':Pe[_0x6978f3(0x353)]},_0x19308e),_0x52a9d6[_0x6978f3(0xe5)](_0x6978f3(0x248),{'className':Pe['onlineStatusTitle']},_0x24fe4c));}return _0x4a672b?_0x1c5e90():_0x52a9d6[_0x4c0a73(0xe5)](_0x27c9f9,{'title':_0x18029b['t']('collab-client.tooltip.reconnect')},_0x1c5e90());}var Co=Object[_0xf86c5a(0xfa)],bo=Object[_0xf86c5a(0x397)],To=(_0x2d6a04,_0x505e76,_0x484e7b,_0x330739)=>{const _0x25a422=_0xf86c5a;for(var _0x324c58=_0x330739>0x1?void 0x0:_0x330739?bo(_0x505e76,_0x484e7b):_0x505e76,_0x1a75d3=_0x2d6a04[_0x25a422(0x28c)]-0x1,_0x41a2fb;_0x1a75d3>=0x0;_0x1a75d3--)(_0x41a2fb=_0x2d6a04[_0x1a75d3])&&(_0x324c58=(_0x330739?_0x41a2fb(_0x505e76,_0x484e7b,_0x324c58):_0x41a2fb(_0x324c58))||_0x324c58);return _0x330739&&_0x324c58&&Co(_0x505e76,_0x484e7b,_0x324c58),_0x324c58;},Be=(_0x187366,_0x3a350d)=>(_0x25bfe4,_0x3a8e57)=>_0x3a350d(_0x25bfe4,_0x3a8e57,_0x187366);let Me=class extends _0x4091c9{constructor(_0x11b0b5,_0x175029,_0x3b44b9,_0x51e2a7){const _0x20d62e=_0xf86c5a;super(),l(this,'_status$',new _0x52cf76(P['NOT_COLLAB'])),(this[_0x20d62e(0x358)]=_0x11b0b5,this[_0x20d62e(0x121)]=_0x175029,this[_0x20d62e(0x22b)]=_0x3b44b9,this[_0x20d62e(0x289)]=_0x51e2a7,this[_0x20d62e(0x3fd)](),this['_initStatusListener']());}[_0xf86c5a(0x28a)](){const _0x1071e8=_0xf86c5a;this['disposeWithMe'](this[_0x1071e8(0x358)][_0x1071e8(0x2d4)][_0x1071e8(0x268)](_0x4e5135(()=>{const _0x32fb0a=_0x1071e8,_0x2bcdd6=this[_0x32fb0a(0x358)][_0x32fb0a(0x263)]();return _0x2bcdd6?this[_0x32fb0a(0x289)]['getCollabEntity$'](_0x2bcdd6['getUnitId']()):_0xfb2e43(null);}),_0x4e5135(_0x5a078e=>_0x5a078e?_0x5a078e[_0x1071e8(0x217)]:_0xfb2e43(P[_0x1071e8(0x239)])))['subscribe'](_0x587f87=>{const _0x28266b=_0x1071e8;this[_0x28266b(0x15d)]['next'](_0x587f87);}));}[_0xf86c5a(0x3fd)](){const _0x32068f=_0xf86c5a;this[_0x32068f(0x177)](this[_0x32068f(0x121)][_0x32068f(0x223)](_0x1527eb['HEADER_MENU'],()=>_0x52ea46(Ro({'status$':this[_0x32068f(0x15d)][_0x32068f(0x377)]()}),this[_0x32068f(0x22b)])));}};Me=To([Be(0x0,_0x5edd3d),Be(0x1,_0x53177d),Be(0x2,_0x370f8c(_0x595e81)),Be(0x3,_0x370f8c(Le))],Me);function Ro(_0x35d742){const {status$:_0x181f9e}=_0x35d742;return function(){return _0x52a9d6['createElement'](Eo,{'status$':_0x181f9e});};}const qs=_0x2452f4('uni.network.url-service');var Oo=Object['defineProperty'],Do=Object[_0xf86c5a(0x397)],wo=(_0xd42e56,_0x4c45d2,_0x27bd24,_0x41a05c)=>{const _0xb2a83=_0xf86c5a;for(var _0x3bf086=_0x41a05c>0x1?void 0x0:_0x41a05c?Do(_0x4c45d2,_0x27bd24):_0x4c45d2,_0x5d0896=_0xd42e56[_0xb2a83(0x28c)]-0x1,_0x49c601;_0x5d0896>=0x0;_0x5d0896--)(_0x49c601=_0xd42e56[_0x5d0896])&&(_0x3bf086=(_0x41a05c?_0x49c601(_0x4c45d2,_0x27bd24,_0x3bf086):_0x49c601(_0x3bf086))||_0x3bf086);return _0x41a05c&&_0x3bf086&&Oo(_0x4c45d2,_0x27bd24,_0x3bf086),_0x3bf086;},ge=(_0xb0f2ad,_0x47c0de)=>(_0x12d4f7,_0x5c10c8)=>_0x47c0de(_0x12d4f7,_0x5c10c8,_0xb0f2ad);let Je=class extends _0x27d368{constructor(_0x37e36b,_0x142506,_0x3b7065,_0x407926,_0xdcb4e5,_0x35c742){const _0x25122e=_0xf86c5a;super(),this['_urlService']=_0x37e36b,this[_0x25122e(0x435)]=_0x142506,this[_0x25122e(0x456)]=_0x3b7065,this[_0x25122e(0x373)]=_0x407926,this[_0x25122e(0x415)]=_0xdcb4e5,_0x35c742?_0x35c742==null||_0x35c742[_0x25122e(0x1ec)]()[_0x25122e(0x15f)](()=>this[_0x25122e(0x30d)]()):(this[_0x25122e(0x435)]['debug']('[DataLoaderController]',_0x25122e(0x273)),this[_0x25122e(0x30d)]());}async['_init'](){const _0x3c6592=_0xf86c5a,_0x2ca7b5=this['_urlService']['getParam']('unit'),_0x592457=this[_0x3c6592(0x105)][_0x3c6592(0x335)](_0x3c6592(0x246));if(!_0x2ca7b5||!_0x592457){this[_0x3c6592(0x435)][_0x3c6592(0x379)](_0x3c6592(0x1b7),_0x3c6592(0x1b9));return;}switch(Number(_0x592457)){case k['UNIVER_SHEET']:{const _0x684e7c=await this['_loadSheet'](_0x2ca7b5);this[_0x3c6592(0x37a)](_0x684e7c);break;}case k[_0x3c6592(0x320)]:{await this[_0x3c6592(0xfd)](_0x2ca7b5);break;}default:{this[_0x3c6592(0x435)][_0x3c6592(0x3a5)](_0x3c6592(0x1b7),_0x3c6592(0x457));break;}}}async['_setupSubUnitSync'](_0x41c8c7){const _0x5103ee=_0xf86c5a;await this[_0x5103ee(0xee)](_0x41c8c7),_0x41c8c7[_0x5103ee(0x181)][_0x5103ee(0x268)](_0x14bd7d(this['dispose$']))['subscribe'](_0x24b435=>{const _0x138f05=_0x5103ee;_0x24b435&&this[_0x138f05(0x1a3)](_0x24b435);}),this[_0x5103ee(0x105)]['urlChange$']['pipe'](_0x14bd7d(this['dispose$']))[_0x5103ee(0x1c3)](()=>this['_updateSubUnitFromURLParams'](_0x41c8c7));}[_0xf86c5a(0x1a3)](_0x36b09e,_0x326a99=!0x1){const _0x49dae4=_0xf86c5a,_0x19bc1d=this['_urlService']['getParam'](_0x49dae4(0x364));_0x36b09e[_0x49dae4(0x300)]()!==_0x19bc1d&&this['_urlService']['setParam']('subunit',_0x36b09e[_0x49dae4(0x300)](),_0x326a99);}async[_0xf86c5a(0xee)](_0x8623ed){const _0x1297a4=_0xf86c5a;var _0x1d230a;const _0x302c03=this['_urlService'][_0x1297a4(0x335)](_0x1297a4(0x364));if(!_0x302c03||!_0x8623ed['getSheetBySheetId'](_0x302c03)){const _0x685f3=_0x8623ed[_0x1297a4(0x23b)]()[0x0],_0x1064de=_0x8623ed[_0x1297a4(0x145)](_0x685f3);if(!_0x1064de)return;this[_0x1297a4(0x1a3)](_0x1064de,!0x0),await this[_0x1297a4(0x456)][_0x1297a4(0x1b5)](_0x558010['id'],{'unitId':_0x8623ed['getUnitId'](),'subUnitId':_0x685f3});return;}((_0x1d230a=_0x8623ed[_0x1297a4(0x204)]())==null?void 0x0:_0x1d230a[_0x1297a4(0x300)]())!==_0x302c03&&await this[_0x1297a4(0x456)][_0x1297a4(0x1b5)](_0x558010['id'],{'unitId':_0x8623ed[_0x1297a4(0x23e)](),'subUnitId':_0x302c03});}async['_loadSheet'](_0x2a5aba){const _0x34585c=_0xf86c5a;let _0x582d3d=0x0;const _0x25f18e=await this[_0x34585c(0x373)][_0x34585c(0x3ec)](_0x2a5aba);return _0x25f18e&&(_0x25f18e['awaitingChangeset']||_0x25f18e['mutations']['length']!==0x0)&&(_0x582d3d=_0x25f18e[_0x34585c(0x27b)]),_0x582d3d===0x0&&this[_0x34585c(0x435)][_0x34585c(0x379)]('[DataLoaderController]',_0x34585c(0x316)),this[_0x34585c(0x415)][_0x34585c(0x439)](_0x2a5aba,_0x582d3d);}async[_0xf86c5a(0xfd)](_0x4ee3e2){const _0x19af66=_0xf86c5a;let _0x2aec95=0x0;const _0x37ae47=await this[_0x19af66(0x373)][_0x19af66(0x3ec)](_0x4ee3e2);return _0x37ae47&&(_0x37ae47[_0x19af66(0x2f0)]||_0x37ae47[_0x19af66(0x3c1)]['length']!==0x0)&&(_0x2aec95=_0x37ae47[_0x19af66(0x27b)]),_0x2aec95===0x0&&this[_0x19af66(0x435)][_0x19af66(0x379)](_0x19af66(0x1b7),_0x19af66(0x316)),this[_0x19af66(0x415)][_0x19af66(0x3b7)](_0x4ee3e2,_0x2aec95);}};Je=wo([ge(0x0,qs),ge(0x1,_0x593f47),ge(0x2,_0x225d18),ge(0x3,_0x370f8c(w)),ge(0x4,_0x370f8c(_0xbe9482)),ge(0x5,_0x2fd677(_0x5e0f61))],Je);var Po=Object['defineProperty'],yo=Object[_0xf86c5a(0x397)],Uo=(_0x301120,_0x492d5e,_0x27f0d1,_0x541616)=>{const _0x40c69c=_0xf86c5a;for(var _0x43d909=_0x541616>0x1?void 0x0:_0x541616?yo(_0x492d5e,_0x27f0d1):_0x492d5e,_0x4f8da2=_0x301120[_0x40c69c(0x28c)]-0x1,_0x4a10a9;_0x4f8da2>=0x0;_0x4f8da2--)(_0x4a10a9=_0x301120[_0x4f8da2])&&(_0x43d909=(_0x541616?_0x4a10a9(_0x492d5e,_0x27f0d1,_0x43d909):_0x4a10a9(_0x43d909))||_0x43d909);return _0x541616&&_0x43d909&&Po(_0x492d5e,_0x27f0d1,_0x43d909),_0x43d909;},Ss=(_0x5a2d6f,_0x5859a4)=>(_0x4cf6e2,_0x4adf53)=>_0x5859a4(_0x4cf6e2,_0x4adf53,_0x5a2d6f);const No=_0xf86c5a(0x39b),Mo='Univer';let ze=class extends _0x4091c9{constructor(_0x3fc0ad,_0x5f1c83){const _0x582a0a=_0xf86c5a;super(),this[_0x582a0a(0x358)]=_0x3fc0ad,this[_0x582a0a(0x2ae)]=_0x5f1c83,this[_0x582a0a(0x30d)]();}[_0xf86c5a(0x30d)](){const _0x83824=_0xf86c5a;this[_0x83824(0x177)](this[_0x83824(0x358)][_0x83824(0x2d4)][_0x83824(0x1c3)](()=>{const _0x230a8e=_0x83824;var _0x277f38;const _0x716963=this['_univerInstanceService'][_0x230a8e(0x263)]();let _0x3b3a40=(_0x277f38=this['_configService'][_0x230a8e(0x1bf)](No))!=null?_0x277f38:Mo;_0x716963 instanceof _0x4e5c0a&&(_0x3b3a40=_0x716963['name']),document[_0x230a8e(0x28d)]=_0x3b3a40;}));}};ze=Uo([Ss(0x0,_0x5edd3d),Ss(0x1,_0x5bc7de)],ze);var Ao=Object[_0xf86c5a(0xfa)],Lo=Object[_0xf86c5a(0x397)],$o=(_0x5e5cde,_0x1bae36,_0x261f96,_0x316bea)=>{const _0x477a8a=_0xf86c5a;for(var _0x1eac3c=_0x316bea>0x1?void 0x0:_0x316bea?Lo(_0x1bae36,_0x261f96):_0x1bae36,_0x287f53=_0x5e5cde[_0x477a8a(0x28c)]-0x1,_0x20a5e1;_0x287f53>=0x0;_0x287f53--)(_0x20a5e1=_0x5e5cde[_0x287f53])&&(_0x1eac3c=(_0x316bea?_0x20a5e1(_0x1bae36,_0x261f96,_0x1eac3c):_0x20a5e1(_0x1eac3c))||_0x1eac3c);return _0x316bea&&_0x1eac3c&&Ao(_0x1bae36,_0x261f96,_0x1eac3c),_0x1eac3c;},St=(_0x30df27,_0x83fd1e)=>(_0x3f4dfd,_0x4d20a6)=>_0x83fd1e(_0x3f4dfd,_0x4d20a6,_0x30df27);let Ze=class{constructor(_0x2ca5c3,_0x1b7588,_0x1cfe1b){const _0x4197fa=_0xf86c5a;this[_0x4197fa(0x2ae)]=_0x2ca5c3,this[_0x4197fa(0x3f6)]=_0x1b7588,this[_0x4197fa(0x3b5)]=_0x1cfe1b,this[_0x4197fa(0x18f)]();}[_0xf86c5a(0x18f)](){const _0x3cdbfd=_0xf86c5a;this['_httpService'][_0x3cdbfd(0x25f)]({'priority':0x1,'interceptor':(_0x13ca88,_0x1e2044)=>_0x1e2044(_0x13ca88)['pipe'](_0x56297b(async _0x567f1b=>{const _0x103273=_0x3cdbfd,_0x538eb9=_0x567f1b;if(_0x538eb9[_0x103273(0x29a)]===0x191&&window[_0x103273(0xfe)](this['localeService']['t'](_0x103273(0x462)))){const _0xaf0f7=window[_0x103273(0x444)](window['location'][_0x103273(0x41b)]);window[_0x103273(0x212)][_0x103273(0x41b)]=this[_0x103273(0x1a2)]()+_0x103273(0x19e)+_0xaf0f7;}return _0x538eb9;}))});}[_0xf86c5a(0x1a2)](){const _0x4d0492=_0xf86c5a;var _0x43d10b,_0x11b21b;const _0x2b3c6b=this[_0x4d0492(0x2ae)]['getConfig'](Nn),_0x3ca827=this[_0x4d0492(0x2ae)][_0x4d0492(0x1bf)]($);return(_0x11b21b=(_0x43d10b=_0x3ca827==null?void 0x0:_0x3ca827['loginUrlKey'])!=null?_0x43d10b:_0x2b3c6b)!=null?_0x11b21b:Mn;}};Ze=$o([St(0x0,_0x5bc7de),St(0x1,_0x370f8c(_0x172026)),St(0x2,_0x370f8c(_0x2673bf))],Ze);var jo=Object[_0xf86c5a(0xfa)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x18914d,_0x3072c0,_0x4b6138,_0x1a20ba)=>{const _0x7d75c7=_0xf86c5a;for(var _0x40eaf7=_0x1a20ba>0x1?void 0x0:_0x1a20ba?xo(_0x3072c0,_0x4b6138):_0x3072c0,_0x13d16d=_0x18914d[_0x7d75c7(0x28c)]-0x1,_0x4d6ae9;_0x13d16d>=0x0;_0x13d16d--)(_0x4d6ae9=_0x18914d[_0x13d16d])&&(_0x40eaf7=(_0x1a20ba?_0x4d6ae9(_0x3072c0,_0x4b6138,_0x40eaf7):_0x4d6ae9(_0x40eaf7))||_0x40eaf7);return _0x1a20ba&&_0x40eaf7&&jo(_0x3072c0,_0x4b6138,_0x40eaf7),_0x40eaf7;},ps=(_0x12a3cc,_0x4d70e8)=>(_0x350905,_0x8fbb9a)=>_0x4d70e8(_0x350905,_0x8fbb9a,_0x12a3cc);const ko='AUTHZ_URL_KEY',Bo=_0xf86c5a(0x1f1);let yt=class extends _0x4091c9{constructor(_0x177c99,_0x52e5cd){const _0x59b4b5=_0xf86c5a;super(),this[_0x59b4b5(0x284)]=_0x177c99,this[_0x59b4b5(0x2ae)]=_0x52e5cd,this[_0x59b4b5(0x251)]();}[_0xf86c5a(0x251)](){const _0x25e79c=_0xf86c5a,_0x3cd4f2=this;this[_0x25e79c(0x177)](this[_0x25e79c(0x284)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x420762({'isMatch'(_0x54970e){const _0x3d5967=_0x25e79c;var _0x5de87e;if(_0x54970e['method']===_0x3d5967(0x2ba)&&((_0x5de87e=_0x54970e['requestParams'])!=null&&_0x5de87e[_0x3d5967(0x20e)])){const {objectID:_0x53667d,objectType:_0x4466c2}=_0x54970e[_0x3d5967(0x40a)][_0x3d5967(0x20e)]||{};if(!_0x53667d||_0x4466c2===void 0x0)return!0x1;const _0x1b3f82=_0x3cd4f2[_0x3d5967(0x1ae)]()+'/'+_0x4466c2+_0x3d5967(0x11a)+_0x53667d+_0x3d5967(0x130);if(_0x54970e[_0x3d5967(0x11b)]===_0x1b3f82)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x47149d){const _0x4eb1d5=_0x25e79c;var _0x51d5d7;return(_0x51d5d7=_0x47149d[_0x4eb1d5(0x40a)])==null?void 0x0:_0x51d5d7[_0x4eb1d5(0x20e)];},'mergeParamsToRequest'(_0x281aa7,_0x483494){const _0x164a44=_0x25e79c,_0x4b9ac2=_0x3cd4f2[_0x164a44(0x1ae)]()+_0x164a44(0x408),_0x19779b=_0x281aa7[_0x164a44(0x326)]((_0x3527a9,_0x4a016c)=>{const _0x34d658=_0x164a44,{unitID:_0x3234a0,objectID:_0x4e0927,objectType:_0x2f150a,actions:_0xbc90cf}=_0x4a016c;return _0x3527a9[_0x3234a0]||(_0x3527a9[_0x3234a0]={}),_0x3527a9[_0x3234a0][_0x4e0927]||(_0x3527a9[_0x3234a0][_0x4e0927]={'objectID':_0x4e0927,'objectType':_0x2f150a,'actions':[]}),_0x3527a9[_0x3234a0][_0x4e0927][_0x34d658(0x3e1)][_0x34d658(0x106)](..._0xbc90cf),_0x3527a9;},{}),_0x656b33=[];for(const _0x3ee0a3 in _0x19779b)for(const _0x43144a in _0x19779b[_0x3ee0a3]){const {actions:_0x4db424,objectType:_0x3533c2}=_0x19779b[_0x3ee0a3][_0x43144a],_0x193a40=[...new Set(_0x4db424)];_0x656b33['push']({'unitID':_0x3ee0a3,'objectID':_0x43144a,'objectType':_0x3533c2,'actions':_0x193a40});}return new _0x3fb75d(_0x164a44(0x2ba),_0x4b9ac2,{'headers':_0x483494[_0x164a44(0x26b)],'withCredentials':_0x483494[_0x164a44(0x135)],'responseType':_0x483494[_0x164a44(0x3df)],'body':{'requests':_0x656b33}});}},{'distributeResult'(_0x1eee1f,_0x39a7bd){const _0x3b6840=_0x25e79c,{objectActions:_0x43b0d1}=_0x1eee1f;return _0x39a7bd[_0x3b6840(0x2c1)](_0x525e9c=>{const _0x5c2c30=_0x3b6840,{unitID:_0x28fc48,objectID:_0x4dc1ce,actions:_0x2162b9}=_0x525e9c,_0x3c1dfa=_0x43b0d1[_0x5c2c30(0x179)](_0x976b5d=>_0x976b5d[_0x5c2c30(0x427)]===_0x28fc48&&_0x976b5d['objectID']===_0x4dc1ce),_0x25d19a=_0x2162b9['map'](_0x3a99a6=>_0x3c1dfa==null?void 0x0:_0x3c1dfa[_0x5c2c30(0x3e1)][_0x5c2c30(0x179)](_0x14f94c=>_0x14f94c['action']===_0x3a99a6))['filter'](_0x39c51b=>!!_0x39c51b);return{'config':_0x525e9c,'result':{'actions':_0x25d19a,'error':_0x1eee1f[_0x5c2c30(0x3a5)]}};});}})}));}[_0xf86c5a(0x1ae)](){const _0x477ca1=_0xf86c5a;var _0x4dc05a,_0x37c35f;const _0x37a477=this[_0x477ca1(0x2ae)][_0x477ca1(0x1bf)](ko),_0x15009f=this[_0x477ca1(0x2ae)][_0x477ca1(0x1bf)]($);return(_0x37c35f=(_0x4dc05a=_0x15009f==null?void 0x0:_0x15009f['authzUrl'])!=null?_0x4dc05a:_0x37a477)!=null?_0x37c35f:Bo;}async[_0xf86c5a(0x14b)](_0x143148){const _0x433edb=_0xf86c5a,_0x3abbe3=this['_getAPIPrefixPath']()+'/'+_0x143148['objectType']+_0x433edb(0x445);return(await this['_HTTPService'][_0x433edb(0x1d7)](_0x3abbe3,{'body':_0x143148}))[_0x433edb(0x20e)][_0x433edb(0x42f)]||'';}async[_0xf86c5a(0x3c9)](_0x423f9f){const _0x57bc7b=_0xf86c5a,_0x21b526=this[_0x57bc7b(0x1ae)]()+_0x57bc7b(0x319);return(await this[_0x57bc7b(0x284)][_0x57bc7b(0x1d7)](_0x21b526,{'body':_0x423f9f}))[_0x57bc7b(0x20e)][_0x57bc7b(0x1fd)];}async[_0xf86c5a(0x3d1)](_0x4e5613){const _0x972802=_0xf86c5a,_0x40b49a=this[_0x972802(0x1ae)]()+'/'+_0x4e5613[_0x972802(0x2a6)]+_0x972802(0x11a)+_0x4e5613['objectID'];await this[_0x972802(0x284)]['put'](_0x40b49a,{'body':_0x4e5613});}async[_0xf86c5a(0x1e0)](_0x992b12){const _0x3d8f1f=_0xf86c5a,_0x509bfe=this[_0x3d8f1f(0x1ae)]()+'/'+_0x992b12[_0x3d8f1f(0x2a6)]+_0x3d8f1f(0x11a)+_0x992b12['objectID']+_0x3d8f1f(0x130);return(await this[_0x3d8f1f(0x284)][_0x3d8f1f(0x1d7)](_0x509bfe,{'body':_0x992b12}))['body'][_0x3d8f1f(0x3e1)];}async['batchAllowed'](_0x3678fa){const _0x5534cf=_0xf86c5a,_0x258ff6=this[_0x5534cf(0x1ae)]()+_0x5534cf(0x408);return(await this[_0x5534cf(0x284)]['post'](_0x258ff6,{'body':{'requests':_0x3678fa}}))['body']['objectActions'];}async[_0xf86c5a(0x25e)](_0x1c15b3){const _0x1407e8=_0xf86c5a,_0x3b7b4c=this['_getAPIPrefixPath']()+'/'+_0x1c15b3['objectType']+'/role',_0x112b5d=await this[_0x1407e8(0x284)]['post'](_0x3b7b4c,{'body':_0x1c15b3});return{'roles':_0x112b5d[_0x1407e8(0x20e)][_0x1407e8(0x402)],'actions':_0x112b5d['body'][_0x1407e8(0x3e1)]};}async['deleteCollaborator'](_0x3524d0){const _0x416cd7=_0xf86c5a,_0x323b5c=this[_0x416cd7(0x1ae)]()+_0x416cd7(0x113);await this[_0x416cd7(0x284)]['delete'](_0x323b5c,{'params':{'collaboratorID':_0x3524d0[_0x416cd7(0x418)],'objectID':_0x3524d0[_0x416cd7(0x42f)],'unitID':_0x3524d0[_0x416cd7(0x427)]}});}async[_0xf86c5a(0x343)](_0xce5698){const _0x152cfb=_0xf86c5a,_0xdd3008=this[_0x152cfb(0x1ae)]()+'/collaborator';await this[_0x152cfb(0x284)][_0x152cfb(0x450)](_0xdd3008,{'body':_0xce5698});}async[_0xf86c5a(0x35a)](_0xc87b0f){const _0x164588=_0xf86c5a,_0x349b4e=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x164588(0x284)]['post'](_0x349b4e,{'body':_0xc87b0f});}async[_0xf86c5a(0xe6)](_0x1be47f){const _0x1da31f=_0xf86c5a,_0x3c93e3=this[_0x1da31f(0x1ae)]()+_0x1da31f(0x113);return(await this[_0x1da31f(0x284)][_0x1da31f(0x175)](_0x3c93e3,{'params':{'objectID':_0x1be47f[_0x1da31f(0x42f)],'unitID':_0x1be47f['unitID']}}))[_0x1da31f(0x20e)][_0x1da31f(0x257)];}async[_0xf86c5a(0x35e)](_0x317d35){const _0x288a4f=_0xf86c5a,_0x37d54a=this[_0x288a4f(0x1ae)]()+'/collaborator';await this[_0x288a4f(0x284)]['put'](_0x37d54a,{'body':_0x317d35});}};yt=Ho([ps(0x0,_0x370f8c(_0x172026)),ps(0x1,_0x370f8c(_0x5bc7de))],yt);var Vo=Object[_0xf86c5a(0xfa)],Fo=Object[_0xf86c5a(0x397)],Wo=(_0x365814,_0xa5d90c,_0x3b864a,_0x1a78c0)=>{for(var _0x370ec0=_0x1a78c0>0x1?void 0x0:_0x1a78c0?Fo(_0xa5d90c,_0x3b864a):_0xa5d90c,_0x1ad665=_0x365814['length']-0x1,_0x37e0d6;_0x1ad665>=0x0;_0x1ad665--)(_0x37e0d6=_0x365814[_0x1ad665])&&(_0x370ec0=(_0x1a78c0?_0x37e0d6(_0xa5d90c,_0x3b864a,_0x370ec0):_0x37e0d6(_0x370ec0))||_0x370ec0);return _0x1a78c0&&_0x370ec0&&Vo(_0xa5d90c,_0x3b864a,_0x370ec0),_0x370ec0;},Go=(_0x2309bb,_0x19cae0)=>(_0x482394,_0x3fbeb0)=>_0x19cae0(_0x482394,_0x3fbeb0,_0x2309bb);let Qe=class{constructor(_0x112cff){const _0x38ce04=_0xf86c5a;this[_0x38ce04(0x3f6)]=_0x112cff,this[_0x38ce04(0x3cf)]();}[_0xf86c5a(0x3cf)](){const _0xe463=_0xf86c5a;this['_httpService'][_0xe463(0x25f)]({'interceptor':(_0x22f97b,_0x220064)=>{const _0x2968c0=_0xe463,_0x17cabf=_0x22f97b[_0x2968c0(0x26b)],_0x54f317=_0x5a86a8();return _0x54f317&&_0x17cabf[_0x2968c0(0x2be)]('x-univer-host',_0x54f317),_0x220064(_0x22f97b);}});}};Qe=Wo([Go(0x0,_0x370f8c(_0x172026))],Qe);var Yo=Object[_0xf86c5a(0xfa)],Ko=Object[_0xf86c5a(0x397)],Xo=(_0x21172a,_0x5c36ae,_0x2b17d5,_0x335331)=>{const _0x2a1271=_0xf86c5a;for(var _0x599364=_0x335331>0x1?void 0x0:_0x335331?Ko(_0x5c36ae,_0x2b17d5):_0x5c36ae,_0x28ea78=_0x21172a[_0x2a1271(0x28c)]-0x1,_0x4fb2d9;_0x28ea78>=0x0;_0x28ea78--)(_0x4fb2d9=_0x21172a[_0x28ea78])&&(_0x599364=(_0x335331?_0x4fb2d9(_0x5c36ae,_0x2b17d5,_0x599364):_0x4fb2d9(_0x599364))||_0x599364);return _0x335331&&_0x599364&&Yo(_0x5c36ae,_0x2b17d5,_0x599364),_0x599364;},pt=(_0x5f29ac,_0x3fc0fe)=>(_0x4fdda9,_0x13d909)=>_0x3fc0fe(_0x4fdda9,_0x13d909,_0x5f29ac);const qo=['image/png','image/jpeg',_0xf86c5a(0x187),_0xf86c5a(0x432),_0xf86c5a(0x137)],Jo=0x5*0x400*0x400,zo=_0xf86c5a(0x41f),Zo='/universer-api/stream/file/upload',Qo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ea=_0xf86c5a(0x3e3);let Ut=class{constructor(_0x2c1f6a,_0x110a2a,_0x1f084c){const _0x2d7096=_0xf86c5a;l(this,_0x2d7096(0x2af),0x0),l(this,_0x2d7096(0x44c),new _0x26d305()),l(this,_0x2d7096(0x2e6),this[_0x2d7096(0x44c)]),l(this,'_imageSourceCache',new Map()),(this[_0x2d7096(0x3f6)]=_0x2c1f6a,this['_configService']=_0x110a2a,this[_0x2d7096(0x358)]=_0x1f084c);}[_0xf86c5a(0x12a)](_0x57fe3f){const _0x4ddc92=_0xf86c5a;this[_0x4ddc92(0x2af)]=_0x57fe3f,this[_0x4ddc92(0x44c)][_0x4ddc92(0x23f)](_0x57fe3f);}['getImageSourceCache'](_0x248ac2,_0x2be0ff){const _0x41c00f=_0xf86c5a;if(_0x2be0ff===_0x207292[_0x41c00f(0x158)]){const _0x88e314=new Image();return _0x88e314[_0x41c00f(0x3ba)]=_0x248ac2,_0x88e314;}return this[_0x41c00f(0x231)]['get'](_0x248ac2);}[_0xf86c5a(0x2f7)](_0x4bc182,_0x2312ba,_0x6b3dc){const _0x3559f1=_0xf86c5a;_0x2312ba===_0x207292[_0x3559f1(0x158)]||_0x6b3dc==null||this[_0x3559f1(0x231)][_0x3559f1(0x2be)](_0x4bc182,_0x6b3dc);}async[_0xf86c5a(0x249)](_0x278d04){const _0x42fb2e=_0xf86c5a;try{const _0x3fd5e6=this[_0x42fb2e(0x344)](this['_getSignURL'](),''+_0x278d04),_0x1d55f1=(await this[_0x42fb2e(0x3f6)][_0x42fb2e(0x175)](_0x3fd5e6))[_0x42fb2e(0x20e)];if(_0x1d55f1[_0x42fb2e(0x3a5)]&&_0x1d55f1['error'][_0x42fb2e(0x42b)]===xs['OK']){const _0xc0d218=new URL(_0x1d55f1[_0x42fb2e(0x11b)],this[_0x42fb2e(0x388)]())[_0x42fb2e(0x202)]();return Promise['resolve'](_0xc0d218);}return Promise[_0x42fb2e(0x39f)](_0x1d55f1[_0x42fb2e(0x3a5)]);}catch(_0x8bd56b){return Promise['reject'](_0x8bd56b);}}async[_0xf86c5a(0x1e2)](_0x2777cf){const _0xbc7377=_0xf86c5a;let _0x22f068='';if(!qo[_0xbc7377(0x327)](_0x2777cf[_0xbc7377(0x246)]))return this['_decreaseWaiting'](),Promise[_0xbc7377(0x39f)](new Error(_0x4ab8b4[_0xbc7377(0xf0)]));if(_0x2777cf[_0xbc7377(0x46a)]>Jo)return this[_0xbc7377(0x1a9)](),Promise[_0xbc7377(0x39f)](new Error(_0x4ab8b4[_0xbc7377(0x156)]));try{const _0x1839c3=new FormData();_0x1839c3['append'](_0xbc7377(0x27a),_0x2777cf);const _0x1d40f3=this[_0xbc7377(0x358)][_0xbc7377(0x263)](),_0x2eceb9=_0x1d40f3==null?void 0x0:_0x1d40f3[_0xbc7377(0x23e)]();if(!_0x2eceb9)throw new Error('unitId\x20is\x20not\x20found');const _0x2af287=this[_0xbc7377(0x465)]()+'?size='+_0x2777cf['size'][_0xbc7377(0x202)]()+'&source='+Hs[_0xbc7377(0x267)]+_0xbc7377(0x2b6)+encodeURIComponent(_0x2eceb9),_0x719728=await(await fetch(_0x2af287,{'method':_0xbc7377(0x2ba),'body':_0x1839c3}))[_0xbc7377(0x280)]();if(typeof _0x719728['FileId']!='string')return this[_0xbc7377(0x1a9)](),Promise[_0xbc7377(0x39f)](new Error(_0x4ab8b4[_0xbc7377(0x389)]));_0x22f068=_0x719728[_0xbc7377(0x214)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x4ab8b4[_0xbc7377(0x389)]));}return new Promise((_0x207356,_0x359e68)=>{const _0x1347e9=_0xbc7377,_0xcef3=new FileReader();_0xcef3['readAsDataURL'](_0x2777cf),_0xcef3[_0x1347e9(0x345)]=_0x2a8152=>{const _0x28f232=_0x1347e9;var _0x19c6f3;const _0x18821d=(_0x19c6f3=_0x2a8152[_0x28f232(0x459)])==null?void 0x0:_0x19c6f3[_0x28f232(0x467)];if(_0x18821d==null){this[_0x28f232(0x1a9)](),_0x359e68(new Error(_0x4ab8b4[_0x28f232(0x389)]));return;}const _0x5d8821=_0x48af3f[_0x28f232(0x3a3)](0x6);_0x207356({'imageId':_0x5d8821,'imageSourceType':_0x207292[_0x28f232(0x255)],'source':_0x22f068,'base64Cache':_0x18821d,'status':_0x4ab8b4['SUCCUSS']}),this[_0x28f232(0x1a9)]();};});}[_0xf86c5a(0x465)](){const _0x5b1663=_0xf86c5a;var _0x273672,_0xc7b4e2;const _0xb352dd=this['_configService'][_0x5b1663(0x1bf)](zo),_0x226130=this[_0x5b1663(0x2ae)][_0x5b1663(0x1bf)]($);return(_0xc7b4e2=(_0x273672=_0x226130==null?void 0x0:_0x226130[_0x5b1663(0x2ce)])!=null?_0x273672:_0xb352dd)!=null?_0xc7b4e2:Zo;}[_0xf86c5a(0x1f2)](){const _0x3b6396=_0xf86c5a;var _0x371505,_0x34189a;const _0x210711=this[_0x3b6396(0x2ae)][_0x3b6396(0x1bf)](Qo),_0x2b5fbb=this['_configService'][_0x3b6396(0x1bf)]($);return(_0x34189a=(_0x371505=_0x2b5fbb==null?void 0x0:_0x2b5fbb[_0x3b6396(0x197)])!=null?_0x371505:_0x210711)!=null?_0x34189a:ea;}[_0xf86c5a(0x388)](){const _0x4a157e=_0xf86c5a;var _0xbf203f;const _0x1c0cee=this['_configService'][_0x4a157e(0x1bf)]($);return(_0xbf203f=_0x1c0cee==null?void 0x0:_0x1c0cee[_0x4a157e(0x18a)])!=null?_0xbf203f:location['origin'];}[_0xf86c5a(0x344)](_0x200e97,_0xb03bd2){const _0x11e951=_0xf86c5a;return _0x200e97[_0x11e951(0x174)]('{fileID}',_0xb03bd2);}[_0xf86c5a(0x1a9)](){const _0x213c86=_0xf86c5a;this['_waitCount']-=0x1,this['_change$'][_0x213c86(0x23f)](this[_0x213c86(0x2af)]);}};Ut=Xo([pt(0x0,_0x370f8c(_0x172026)),pt(0x1,_0x5bc7de),pt(0x2,_0x370f8c(_0x5edd3d))],Ut);var ta=Object[_0xf86c5a(0xfa)],sa=Object['getOwnPropertyDescriptor'],ia=(_0x3f30d2,_0x3680c4,_0x2b219a,_0x56a9ea)=>{const _0x2fb732=_0xf86c5a;for(var _0x1cb3d1=_0x56a9ea>0x1?void 0x0:_0x56a9ea?sa(_0x3680c4,_0x2b219a):_0x3680c4,_0x5a882b=_0x3f30d2[_0x2fb732(0x28c)]-0x1,_0x46ce7a;_0x5a882b>=0x0;_0x5a882b--)(_0x46ce7a=_0x3f30d2[_0x5a882b])&&(_0x1cb3d1=(_0x56a9ea?_0x46ce7a(_0x3680c4,_0x2b219a,_0x1cb3d1):_0x46ce7a(_0x1cb3d1))||_0x1cb3d1);return _0x56a9ea&&_0x1cb3d1&&ta(_0x3680c4,_0x2b219a,_0x1cb3d1),_0x1cb3d1;},ye=(_0x4ca0d0,_0x5a9eac)=>(_0x2d3848,_0x4fe882)=>_0x5a9eac(_0x2d3848,_0x4fe882,_0x4ca0d0);let et=class extends _0x27d368{constructor(_0x20a72d,_0x519ec3,_0x69c02d,_0x29025c,_0x5d1170){const _0x46ea44=_0xf86c5a;super(),this['_injector']=_0x20a72d,this[_0x46ea44(0x358)]=_0x519ec3,this[_0x46ea44(0x13f)]=_0x69c02d,this[_0x46ea44(0x3fb)]=_0x29025c,this['_localeService']=_0x5d1170,this[_0x46ea44(0x29d)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x3d94bf=_0xf86c5a,_0x4661e6=async _0x5ec8a6=>{const _0x475668=_0x556d;(await this['_collaborationSessionService'][_0x475668(0x13d)](_0x5ec8a6))[_0x475668(0x3b1)][_0x475668(0x268)](_0x152a98(_0x56ff27=>_0x56ff27['eventID']===_0x455562['SHOULD_CLOSE_CONN']),_0x1c351c(this[_0x475668(0x39d)]))['subscribe'](_0x58c3b3=>{const _0x44be20=_0x475668,_0x57b6ca=_0x58c3b3,{reason:_0x5c3045}=_0x57b6ca['data'];this[_0x44be20(0x22b)]['get'](_0x3aa03b)['show']({'type':_0x424985[_0x44be20(0x44b)],'content':this[_0x44be20(0x1f8)]['t'](_0x44be20(0x166))+'('+_0x5c3045+')'}),this[_0x44be20(0x13f)]['updatePermissionPoint'](new _0x365664(_0x5ec8a6)['id'],!0x1),this[_0x44be20(0x3fb)]['closeSession'](_0x5ec8a6);});};_0x20e120(this[_0x3d94bf(0x358)][_0x3d94bf(0x3a6)](_0x751d23[_0x3d94bf(0x1af)]),this[_0x3d94bf(0x358)][_0x3d94bf(0x3a6)](_0x751d23[_0x3d94bf(0x320)]))[_0x3d94bf(0x268)](_0x524dbf(_0xd6eea5=>_0xd6eea5['getUnitId']()),_0x152a98(_0xe0c7b1=>!_0x39c20e(_0xe0c7b1)),_0x1c351c(this['dispose$']))[_0x3d94bf(0x1c3)](_0x5bcbae=>{_0x4661e6(_0x5bcbae);});}[_0xf86c5a(0x29d)](){const _0x18d8dd=_0xf86c5a,_0x53a4e4=async _0x1aafd5=>{const _0x56059f=_0x556d;(await this[_0x56059f(0x3fb)]['requireSession'](_0x1aafd5))['event$']['pipe'](_0x152a98(_0x5768cd=>_0x5768cd[_0x56059f(0x26e)]===_0x455562[_0x56059f(0x33b)]),_0x1c351c(this[_0x56059f(0x39d)]))[_0x56059f(0x1c3)](_0x51e137=>{const _0x571960=_0x56059f,_0x3f0639=_0x51e137,{objectId:_0x7dd8}=_0x3f0639[_0x571960(0x129)],_0x1033ab=this['_injector'][_0x571960(0x175)](_0x1b9bdb);_0x7dd8===_0x1aafd5?_0x1033ab['initWorkbookPermissionChange'](_0x1aafd5):_0x1033ab[_0x571960(0x315)](_0x1aafd5,_0x7dd8);});};_0x20e120(this[_0x18d8dd(0x358)][_0x18d8dd(0x3a6)](_0x751d23['UNIVER_SHEET']),this[_0x18d8dd(0x358)][_0x18d8dd(0x3a6)](_0x751d23['UNIVER_DOC']))['pipe'](_0x524dbf(_0x397d35=>_0x397d35['getUnitId']()),_0x152a98(_0x1f4321=>!_0x39c20e(_0x1f4321)),_0x1c351c(this[_0x18d8dd(0x39d)]))[_0x18d8dd(0x1c3)](_0x519fee=>{_0x53a4e4(_0x519fee);});}};et=ia([ye(0x0,_0x370f8c(_0x595e81)),ye(0x1,_0x5edd3d),ye(0x2,_0x2f69f2),ye(0x3,_0x370f8c(he)),ye(0x4,_0x370f8c(_0x2673bf))],et);var na=Object['defineProperty'],ra=Object[_0xf86c5a(0x397)],oa=(_0x4bfece,_0x598b92,_0x2e346f,_0x412d7e)=>{for(var _0x58066d=_0x412d7e>0x1?void 0x0:_0x412d7e?ra(_0x598b92,_0x2e346f):_0x598b92,_0x3762eb=_0x4bfece['length']-0x1,_0x1ffe62;_0x3762eb>=0x0;_0x3762eb--)(_0x1ffe62=_0x4bfece[_0x3762eb])&&(_0x58066d=(_0x412d7e?_0x1ffe62(_0x598b92,_0x2e346f,_0x58066d):_0x1ffe62(_0x58066d))||_0x58066d);return _0x412d7e&&_0x58066d&&na(_0x598b92,_0x2e346f,_0x58066d),_0x58066d;},vs=(_0x18af8e,_0x296c53)=>(_0x5706ee,_0x109273)=>_0x296c53(_0x5706ee,_0x109273,_0x18af8e);let Nt=class{constructor(_0x584717,_0x19f873){const _0x20cfb7=_0xf86c5a;this[_0x20cfb7(0x2ae)]=_0x584717,this[_0x20cfb7(0x3f6)]=_0x19f873;}async['getUnitOnRev'](_0x546d75,_0x4ec56c){const _0x370640=_0xf86c5a;var _0x3d7c2a;const {unitID:_0x2aedee,type:_0x400f9e,revision:_0x39b4f4=0x0}=_0x4ec56c,_0x5c24bd=this[_0x370640(0x342)]()+'/'+_0x400f9e+'/unit/'+_0x2aedee+_0x370640(0x18b)+_0x39b4f4,_0x1397ee=(await this[_0x370640(0x3f6)][_0x370640(0x175)](_0x5c24bd))['body'],_0x542c5d=(_0x3d7c2a=_0x1397ee[_0x370640(0x17e)])==null?void 0x0:_0x3d7c2a['workbook'];if(_0x542c5d){const _0x376695=_0x542c5d==null?void 0x0:_0x542c5d[_0x370640(0x3f5)],_0x32287e=_0x30b993['encode'](_0x5b5300(_0x376695));_0x542c5d[_0x370640(0x3f5)]=_0x32287e,Object[_0x370640(0x468)](_0x542c5d[_0x370640(0x1fc)])[_0x370640(0x26c)](([,_0x3aa067])=>{const _0x317359=_0x370640,_0x24d081=_0x3aa067['originalMeta'],_0x4a6253=_0x30b993[_0x317359(0x3fa)](_0x5b5300(_0x24d081));_0x3aa067[_0x317359(0x3f5)]=_0x4a6253;});}return _0x1397ee;}async[_0xf86c5a(0x114)](_0x5eb791,_0x540cf8){const _0x938e1a=_0xf86c5a,{unitID:_0x44b526,type:_0x523c1a,blockID:_0x34fcf6}=_0x540cf8,_0x2954cb=this[_0x938e1a(0x112)]()+'/'+_0x523c1a+_0x938e1a(0x2b8)+_0x44b526+'/block/'+_0x34fcf6;return(await this[_0x938e1a(0x3f6)]['get'](_0x2954cb))[_0x938e1a(0x20e)];}async[_0xf86c5a(0x3ce)](_0x47295d,_0x20a724){const _0x3c1e1d=_0xf86c5a,{unitID:_0xe57465,type:_0x5a73fa,blockID:_0xece122}=_0x20a724,_0x3c21a9=this['_getAPIPrefix']()+_0x3c1e1d(0x16e)+_0x5a73fa+_0x3c1e1d(0x2b8)+_0xe57465+_0x3c1e1d(0x16e)+_0xece122;return(await this['_httpService'][_0x3c1e1d(0x175)](_0x3c21a9))[_0x3c1e1d(0x20e)];}async[_0xf86c5a(0x384)](_0x17bac3,_0x9c41b6){const _0x26b5cf=_0xf86c5a,{unitID:_0x4cc8be,type:_0x262391,from:_0x428e7a,to:_0x255f03}=_0x9c41b6,_0xda3089=this[_0x26b5cf(0x112)]()+'/'+_0x262391+'/unit/'+_0x4cc8be+'/fetchmissing?from='+_0x428e7a+'&to='+_0x255f03;return(await this[_0x26b5cf(0x3f6)][_0x26b5cf(0x175)](_0xda3089))['body'];}[_0xf86c5a(0x342)](){const _0x1efe4d=_0xf86c5a;var _0x488697;return(_0x488697=this['_configService'][_0x1efe4d(0x1bf)](vn))!=null?_0x488697:this[_0x1efe4d(0x112)]();}[_0xf86c5a(0x112)](){const _0x348624=_0xf86c5a;var _0xbc4e0d,_0x5d2c30;const _0x2f6165=this[_0x348624(0x2ae)][_0x348624(0x1bf)](Sn),_0x494a8c=this[_0x348624(0x2ae)][_0x348624(0x1bf)]($);return(_0x5d2c30=(_0xbc4e0d=_0x494a8c==null?void 0x0:_0x494a8c[_0x348624(0x2a4)])!=null?_0xbc4e0d:_0x2f6165)!=null?_0x5d2c30:pn;}async['getResourcesRequest'](_0x78ae0d,_0x3a9424){const _0x2497c9=_0xf86c5a,_0x44638a=_0x2497c9(0x1d1)+_0x3a9424[_0x2497c9(0x246)]+_0x2497c9(0x2b8)+_0x3a9424[_0x2497c9(0x427)]+_0x2497c9(0x182);return(await this[_0x2497c9(0x3f6)][_0x2497c9(0x175)](_0x44638a,{'params':{'resourceId':JSON[_0x2497c9(0x28b)](_0x3a9424[_0x2497c9(0xf2)])}}))['body'];}[_0xf86c5a(0x126)](){const _0x2c679b=_0xf86c5a;throw new Error(_0x2c679b(0x3f9));}[_0xf86c5a(0x3d0)](){const _0x597280=_0xf86c5a;throw new Error(_0x597280(0x3f9));}['saveChangeset'](){const _0x41644e=_0xf86c5a;throw new Error(_0x41644e(0x3f9));}[_0xf86c5a(0x1fb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x563629=_0xf86c5a;throw new Error(_0x563629(0x3f9));}};Nt=oa([vs(0x0,_0x5bc7de),vs(0x1,_0x370f8c(_0x172026))],Nt);var aa=Object[_0xf86c5a(0xfa)],ca=Object[_0xf86c5a(0x397)],ha=(_0x7620d6,_0x5bdc51,_0x403692,_0x1400a2)=>{const _0x5cdca1=_0xf86c5a;for(var _0x4bc979=_0x1400a2>0x1?void 0x0:_0x1400a2?ca(_0x5bdc51,_0x403692):_0x5bdc51,_0x5dcfed=_0x7620d6[_0x5cdca1(0x28c)]-0x1,_0x3a6166;_0x5dcfed>=0x0;_0x5dcfed--)(_0x3a6166=_0x7620d6[_0x5dcfed])&&(_0x4bc979=(_0x1400a2?_0x3a6166(_0x5bdc51,_0x403692,_0x4bc979):_0x3a6166(_0x4bc979))||_0x4bc979);return _0x1400a2&&_0x4bc979&&aa(_0x5bdc51,_0x403692,_0x4bc979),_0x4bc979;},Ue=(_0x129b3b,_0xd8932b)=>(_0x49ed1e,_0x280cc5)=>_0xd8932b(_0x49ed1e,_0x280cc5,_0x129b3b);let Mt=class extends _0x1ffda6{constructor(_0x52061b,_0x3b065e,_0x10331f,_0x4094fe,_0x241d5c){const _0x3d3298=_0xf86c5a;super(_0x52061b,_0x3b065e,_0x10331f),this['_transformService']=_0x4094fe,this[_0x3d3298(0x435)]=_0x241d5c;}[_0xf86c5a(0x40c)](_0x1aa8e6,_0x2a9337){const _0x34182b=_0xf86c5a,_0x20051e=this[_0x34182b(0x153)](_0x1aa8e6);if(_0x20051e)try{const _0x260f4c=this['_transformStack'](_0x20051e,_0x2a9337);this[_0x34182b(0x31f)](_0x1aa8e6,_0x260f4c);}catch(_0x122f57){this['_logService'][_0x34182b(0x3a5)]('[CollaborationUndoRedoService]',_0x122f57),this[_0x34182b(0x32f)](_0x1aa8e6);}const _0x5b1a88=this[_0x34182b(0x304)](_0x1aa8e6);if(_0x5b1a88)try{const _0x11c68e=this[_0x34182b(0x111)](_0x5b1a88,_0x2a9337);this[_0x34182b(0xf3)](_0x1aa8e6,_0x11c68e);}catch(_0x13aa2b){this[_0x34182b(0x435)]['error'](_0x13aa2b),this[_0x34182b(0x118)](_0x1aa8e6);}}[_0xf86c5a(0x32f)](_0x30f1b7){const _0x2510de=_0xf86c5a,_0x89ce6e=this[_0x2510de(0x153)](_0x30f1b7);_0x89ce6e&&(_0x89ce6e[_0x2510de(0x28c)]=0x0,this[_0x2510de(0x13e)]());}[_0xf86c5a(0x118)](_0x1d9908){const _0x436407=_0xf86c5a,_0x214662=this[_0x436407(0x304)](_0x1d9908);_0x214662&&(_0x214662[_0x436407(0x28c)]=0x0,this[_0x436407(0x13e)]());}['_substituteUndoStack'](_0x34e230,_0x521a46){const _0x41a1cd=_0xf86c5a;this['_undoStacks']['set'](_0x34e230,_0x521a46),this[_0x41a1cd(0x13e)]();}['_substituteRedoStack'](_0x416475,_0x3130c7){const _0x53dacc=_0xf86c5a;this[_0x53dacc(0x32a)]['set'](_0x416475,_0x3130c7),this[_0x53dacc(0x13e)]();}[_0xf86c5a(0x111)](_0x15ac55,_0x58513f){const _0x3f2bbc=_0xf86c5a,_0xd45303=[];let _0x3241b7=_0x58513f,_0x33b040=_0x58513f;for(let _0x5c4c7b=_0x15ac55[_0x3f2bbc(0x28c)]-0x1;_0x5c4c7b>=0x0;_0x5c4c7b--){const {unitID:_0x57fd78,undoMutations:_0x5f156d,redoMutations:_0x54f93c}=_0x15ac55[_0x5c4c7b],_0x11c069=this[_0x3f2bbc(0x235)][_0x3f2bbc(0x1e7)](_0x3241b7,_0x5f156d),_0x1a3e07=this[_0x3f2bbc(0x235)][_0x3f2bbc(0x1e7)](_0x33b040,_0x54f93c);if(_0x2294b0(_0x11c069)||_0x2294b0(_0x1a3e07)){this['_logService'][_0x3f2bbc(0x3a5)]('[CollaborationUndoRedoService]',_0x3f2bbc(0x29b),_0x11c069,_0x1a3e07);break;}_0x3241b7=_0x11c069[_0x3f2bbc(0x244)],_0x33b040=_0x1a3e07[_0x3f2bbc(0x244)],_0xd45303[_0x3f2bbc(0x106)]({'unitID':_0x57fd78,'undoMutations':_0x11c069['m2Prime'],'redoMutations':_0x1a3e07['m2Prime']});}return _0xd45303[_0x3f2bbc(0x1ef)]();}};Mt=ha([Ue(0x0,_0x5edd3d),Ue(0x1,_0x225d18),Ue(0x2,_0x30c0a7),Ue(0x3,_0x285caf),Ue(0x4,_0x593f47)],Mt);class la extends _0x27d368{constructor(){const _0xc050e7=_0xf86c5a;super(),l(this,'urlChange$'),this['urlChange$']=_0x40fa2a(window,_0xc050e7(0x165))[_0xc050e7(0x268)](_0x14bd7d(this[_0xc050e7(0x39d)]),_0x5da9ca(0x1),_0x37c9c6(void 0x0));}[_0xf86c5a(0x1c1)](_0x36d5d4,_0x252718,_0x28d39d=!0x1){const _0x4dc5c1=_0xf86c5a,_0x1ff27e=new URL(window[_0x4dc5c1(0x212)][_0x4dc5c1(0x41b)]);_0x1ff27e[_0x4dc5c1(0x19f)][_0x4dc5c1(0x2be)](_0x36d5d4,_0x252718),_0x28d39d?window[_0x4dc5c1(0x109)][_0x4dc5c1(0x24e)]('','',_0x1ff27e[_0x4dc5c1(0x202)]()):window[_0x4dc5c1(0x109)][_0x4dc5c1(0x18c)]('','',_0x1ff27e[_0x4dc5c1(0x202)]());}[_0xf86c5a(0x143)](_0x4e4a95,_0x3faf5b=!0x1){const _0xeec4ad=_0xf86c5a,_0x404d75=new URL(window[_0xeec4ad(0x212)]['href']);_0x404d75[_0xeec4ad(0x19f)]['delete'](_0x4e4a95),_0x3faf5b?window[_0xeec4ad(0x109)][_0xeec4ad(0x24e)]('','',_0x404d75[_0xeec4ad(0x202)]()):window[_0xeec4ad(0x109)][_0xeec4ad(0x18c)]('','',_0x404d75[_0xeec4ad(0x202)]());}['getParam'](_0x366da1){const _0x2050f4=_0xf86c5a;var _0x59c486;return(_0x59c486=new URL(window[_0x2050f4(0x212)][_0x2050f4(0x41b)])[_0x2050f4(0x19f)]['get'](_0x366da1))!=null?_0x59c486:void 0x0;}}var Js=Object[_0xf86c5a(0xfa)],_a=Object['getOwnPropertyDescriptor'],ua=(_0x798e2a,_0x15192e,_0x572f28)=>_0x15192e in _0x798e2a?Js(_0x798e2a,_0x15192e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x572f28}):_0x798e2a[_0x15192e]=_0x572f28,da=(_0x154c6a,_0x5ca383,_0x53fb74,_0xc56bb8)=>{const _0x3d0509=_0xf86c5a;for(var _0x43d8cf=_0xc56bb8>0x1?void 0x0:_0xc56bb8?_a(_0x5ca383,_0x53fb74):_0x5ca383,_0x4a895b=_0x154c6a[_0x3d0509(0x28c)]-0x1,_0x4b12c0;_0x4a895b>=0x0;_0x4a895b--)(_0x4b12c0=_0x154c6a[_0x4a895b])&&(_0x43d8cf=(_0xc56bb8?_0x4b12c0(_0x5ca383,_0x53fb74,_0x43d8cf):_0x4b12c0(_0x43d8cf))||_0x43d8cf);return _0xc56bb8&&_0x43d8cf&&Js(_0x5ca383,_0x53fb74,_0x43d8cf),_0x43d8cf;},Ve=(_0xafb3df,_0x489723)=>(_0x4ed739,_0x1b3748)=>_0x489723(_0x4ed739,_0x1b3748,_0xafb3df),fa=(_0x48ac90,_0x3c1471,_0x508b90)=>ua(_0x48ac90,_0x3c1471+'',_0x508b90);const ma=_0xf86c5a(0x401);let At=class extends _0x3e59a1{constructor(_0xbbbc3b=An,_0x3a65d0,_0x50c218,_0x4689b8,_0x53aced){const _0x4d6161=_0xf86c5a;super(),this[_0x4d6161(0x3c4)]=_0xbbbc3b,this[_0x4d6161(0x435)]=_0x3a65d0,this[_0x4d6161(0x410)]=_0x50c218,this[_0x4d6161(0x22b)]=_0x4689b8,this[_0x4d6161(0x2ae)]=_0x53aced;const {..._0x2f16a1}=this[_0x4d6161(0x3c4)];this['_configService'][_0x4d6161(0x428)]($,_0x2f16a1);}[_0xf86c5a(0x152)](){const _0x28f914=_0xf86c5a;this[_0x28f914(0x1db)](),_0x1509be(this[_0x28f914(0x22b)],[[ve],[Je],[et]]);}[_0xf86c5a(0x45b)](){const _0x33a01f=_0xf86c5a;_0x1509be(this[_0x33a01f(0x22b)],[[ze]]);}['onRendered'](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x2edab2=_0xf86c5a;var _0x146c84,_0x1a0d62,_0x41c1c5,_0x4ad2cd;this[_0x2edab2(0x22b)][_0x2edab2(0x1f5)](_0x47fb5c)&&this[_0x2edab2(0x435)]['error'](_0x2edab2(0x1b2),_0x2edab2(0x24f));let _0x105131=[[_0x47fb5c,{'useClass':Mt}],[he],[Gt],[_0x172026],[qs,{'useClass':la}],[ce],[w],[_0x109644],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Bs],[et],[ks,{'useClass':(_0x1a0d62=(_0x146c84=this['_config'])==null?void 0x0:_0x146c84[_0x2edab2(0x2cc)])!=null?_0x1a0d62:Ct}],[_0x3320f6,{'useClass':_0x41bcb6}],[_0x39263e,{'useClass':Nt}],[_0x1ed2ef,{'useClass':yt}],[_0x1886e9,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x41c1c5=this['_config'])!=null&&_0x41c1c5[_0x2edab2(0x14f)]&&_0x105131[_0x2edab2(0x106)]([tt,{'useClass':fr}]),_0x105131=_0x361c7d(_0x105131,(_0x4ad2cd=this[_0x2edab2(0x3c4)])==null?void 0x0:_0x4ad2cd['override']),_0x105131[_0x2edab2(0x26c)](_0x2058b3=>this[_0x2edab2(0x22b)][_0x2edab2(0x1e9)](_0x2058b3)),this[_0x2edab2(0x281)]();}[_0xf86c5a(0x176)](){const _0x13fb1a=_0xf86c5a;this['disposeWithMe'](this[_0x13fb1a(0x410)][_0x13fb1a(0x361)](_0x751d23[_0x13fb1a(0x320)],[wt])),this['disposeWithMe'](this[_0x13fb1a(0x410)][_0x13fb1a(0x361)](_0x751d23[_0x13fb1a(0x1af)],[Pt]));}[_0xf86c5a(0x281)](){const _0x3ae0ea=_0xf86c5a;var _0x36f9c7,_0x34f491;this[_0x3ae0ea(0x22b)]['get'](_0x172026)[_0x3ae0ea(0x25f)]({'priority':0x14,'interceptor':_0x5a0116({'maxParallel':0x6})}),this[_0x3ae0ea(0x22b)][_0x3ae0ea(0x175)](Qe),(_0x36f9c7=this[_0x3ae0ea(0x3c4)])!=null&&_0x36f9c7[_0x3ae0ea(0xed)]||this[_0x3ae0ea(0x22b)]['get'](w)[_0x3ae0ea(0x237)](),(_0x34f491=this['_config'])!=null&&_0x34f491[_0x3ae0ea(0x23a)]&&this[_0x3ae0ea(0x22b)][_0x3ae0ea(0x175)](Ze),this[_0x3ae0ea(0x22b)][_0x3ae0ea(0x175)](Le),this[_0x3ae0ea(0x22b)]['has'](Me)&&this['_injector'][_0x3ae0ea(0x175)](Me);}};fa(At,_0xf86c5a(0x386),ma),At=da([_0x2db17c(_0x5d47ea),Ve(0x1,_0x593f47),Ve(0x2,_0x366dfc),Ve(0x3,_0x370f8c(_0x595e81)),Ve(0x4,_0x5bc7de)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,Bs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,$s as HEARTBEAT_TIMEOUT_KEY,ks as ICollaborationSocketService,qs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
|