@univerjs-pro/collaboration-client 0.4.0-nightly.202410171606 → 0.4.0-nightly.202410290723
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/types/index.d.ts +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +17 -17
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x4710e8=_0x34d8;(function(_0xc7690a,_0x2c641e){const _0x3de798=_0x34d8,_0x3febb6=_0xc7690a();while(!![]){try{const _0x3352c4=parseInt(_0x3de798(0x4ff))/0x1*(parseInt(_0x3de798(0x532))/0x2)+parseInt(_0x3de798(0x2aa))/0x3*(parseInt(_0x3de798(0x2fb))/0x4)+-parseInt(_0x3de798(0x546))/0x5*(-parseInt(_0x3de798(0x478))/0x6)+-parseInt(_0x3de798(0x314))/0x7+parseInt(_0x3de798(0x25f))/0x8*(parseInt(_0x3de798(0x31c))/0x9)+parseInt(_0x3de798(0x1e1))/0xa+-parseInt(_0x3de798(0x4a0))/0xb;if(_0x3352c4===_0x2c641e)break;else _0x3febb6['push'](_0x3febb6['shift']());}catch(_0x3bfed6){_0x3febb6['push'](_0x3febb6['shift']());}}}(_0x5333,0x73e19));var ti=Object['defineProperty'],si=(_0x2d3c02,_0x2dc931,_0x1f9af5)=>_0x2dc931 in _0x2d3c02?ti(_0x2d3c02,_0x2dc931,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f9af5}):_0x2d3c02[_0x2dc931]=_0x1f9af5,l=(_0x57ead5,_0x368d05,_0x421d5b)=>si(_0x57ead5,typeof _0x368d05!=_0x4710e8(0x517)?_0x368d05+'':_0x368d05,_0x421d5b);import{createIdentifier as _0x2f212b,Inject as _0x296e7f,Disposable as _0x276a39,DisposableCollection as _0x126fc5,toDisposable as _0xf2106b,IConfigService as _0x144eba,ILogService as _0x1c9d2e,UserManagerService as _0xb6fd7a,UniverInstanceType as _0x1cea4a,IUniverInstanceService as _0x2e8a91,LocaleService as _0x4224a5,Optional as _0x110b49,RxDisposable as _0x25d3de,Injector as _0x8b88ea,Tools as _0xc786e4,ILocalStorageService as _0x4cf819,ICommandService as _0x3619ab,JSONX as _0x4b6ed5,CommandType as _0x47f19b,IPermissionService as _0x561034,IUndoRedoService as _0xf0383c,sequenceExecute as _0x597e69,debounce as _0xa63c93,Rectangle as _0x1d55a6,COLORS as _0x381c82,ColorKit as _0x53f915,ThemeService as _0x59d4df,fromEventSubject as _0x20d2f0,useDependency as _0x36c71e,connectInjector as _0xe4881e,Workbook as _0x2103ba,isInternalEditorID as _0x2b2731,LocalUndoRedoService as _0x21dad2,IContextService as _0x41567e,DependentOn as _0x50d17b,Plugin as _0x49d569,touchDependencies as _0x144863,IAuthzIoService as _0x3dbfb0,mergeOverrideWithDependencies as _0xf7921}from'@univerjs/core';import{Subject as _0x4dd9a0,merge as _0x1987ea,takeUntil as _0x5208f4,BehaviorSubject as _0x591af7,distinctUntilChanged as _0x58b1b1,fromEvent as _0x4b5de6,map as _0x151543,shareReplay as _0x48ce07,take as _0x5d09a1,of as _0x1e4ae2,debounceTime as _0x633b46,filter as _0x453205,switchMap as _0x4f8313,combineLatest as _0x4594cc,concatMap as _0x4aa3eb,mapTo as _0x1bb4d5}from'rxjs';import{map as _0x2eb4ce,take as _0x30d1e5,filter as _0x410577,delay as _0x3cb8ff,throttleTime as _0x2101eb,takeUntil as _0x4b06d5,switchMap as _0x4f1993}from'rxjs/operators';import{MessageType as _0x348a45,Tooltip as _0x57772e}from'@univerjs/design';import{IBeforeCloseService as _0x2d6562,IMessageService as _0x47eac1,INotificationService as _0xf5d2ab,useObservable as _0x114f8c,BuiltInUIPart as _0x21a0d0,IUIPartsService as _0x5f0515}from'@univerjs/ui';import{HTTPService as _0x4ddeb1,WebSocketService as _0xae64a8,MergeInterceptorFactory as _0x5b0d70,HTTPRequest as _0x4da82f,IHTTPImplementation as _0x4caf27,XHRHTTPImplementation as _0x270afa,ThresholdInterceptorFactory as _0x1c2920}from'@univerjs/network';import{CollaborationEvent as _0x5ec94c,parseChangesetToProtocol as _0x3075a4,ISnapshotServerService as _0x2a2a40,isTransformMutationFailure as _0x489b6f,isTransformMutationsWithChangesetSuccess as _0x1a2743,ITransformService as _0x5184af,RevisionService as _0x1f5713,mapDocumentTypeToUniverType as _0x2f8be7,isTransformChangesetsSuccess as _0xc77b6d,CompressMutationService as _0xec2e0d,parseProtocolChangeset as _0x577952,SnapshotService as _0x588a23,textEncoder as _0x1b42bc,b64DecodeUnicode as _0x58882d,isTransformMutationsWithChangesetFailure as _0x7710b9,UniverCollaborationPlugin as _0x480427}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x37014e}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x2534dc,DocStateChangeManagerService as _0x162506,NodePositionConvertToCursor as _0x166923,isValidRectRange as _0x4be429,NodePositionConvertToRectRange as _0x220ca2,TEXT_RANGE_LAYER_INDEX as _0x10c9cb,SetDocZoomRatioOperation as _0x22fc56}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x4d164d,SetSelectionsOperation as _0x3d4fa2,InsertSheetMutation as _0x485f72,EmptyMutation as _0x1babcc,WorkbookEditablePermission as _0x371e2e,RefRangeService as _0x30627a,EffectRefRangId as _0x44684c,handleIRemoveRow as _0x52e332,handleIRemoveCol as _0x4c210a,handleMoveRange as _0x26994a,handleInsertRow as _0x5e3d9a,handleInsertRangeMoveRight as _0x5e5a07,handleInsertRangeMoveDown as _0x16bc73,handleInsertCol as _0xe2d649,handleDeleteRangeMoveUp as _0x1c3e9e,handleDeleteRangeMoveLeft as _0x8bbf3b,runRefRangeMutations as _0x5cb0bc,SetWorksheetActivateCommand as _0x5db6b7}from'@univerjs/sheets';import{IRenderManagerService as _0x593697,Shape as _0x411c6e,Rect as _0xe5b2a,getColor as _0xa1a588,RegularPolygon as _0x86aa48,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x469aef,Vector2 as _0x1079ef}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x5c4218,RichTextEditingMutation as _0x121759,SetTextSelectionsOperation as _0x13e72f,DocSkeletonManagerService as _0x9d210b}from'@univerjs/docs';import{ImageSourceType as _0x12b110,ImageUploadStatusType as _0x56e23f,IImageIoService as _0x349f69}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5ece9f,serializeRangeWithSheet as _0x442992}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x2d4cd4,VIEWPORT_KEY as _0x19f5e2,getCoordByCell as _0x5bad73,getSheetObject as _0x498107,SheetPermissionInitController as _0x3aa5ac}from'@univerjs/sheets-ui';import _0x592a55,{forwardRef as _0xee6074,useRef as _0x7d65c2,createElement as _0x2db1fb,useCallback as _0xdb25f4}from'react';import{IRemoteInstanceService as _0x3a9903}from'@univerjs/rpc';import{getAttachHeader as _0x16b7da}from'@univerjs-pro/license';const Sn=_0x4710e8(0x471),pn='/universer-api/snapshot',vn=_0x4710e8(0x232),La='SEND_CHANGESET_TIMEOUT',In=0x7d0,En='COLLAB_WEB_SOCKET_URL',Cn=_0x4710e8(0x4ac),bn=_0x4710e8(0x435),Tn=0x7530,Ls=_0x4710e8(0x3de),$s=0x4e20,Rn=0x4e20,On=_0x4710e8(0x541),Dn=0x3,wn='LOCAL_CACHE_INTERVAL',Pn=0x3e8,yn=_0x4710e8(0x2e6),Un=_0x4710e8(0x274),Nn=_0x4710e8(0x441),Mn=_0x4710e8(0x33e);var js=(_0x4a6ed0=>(_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x4a3)]=0x0]=_0x4710e8(0x4a3),_0x4a6ed0[_0x4a6ed0['OK']=0x1]='OK',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x428)]=0x2]='INTERNAL_ERROR',_0x4a6ed0[_0x4a6ed0['PERMISSION_DENIED']=0x3]=_0x4710e8(0x4f1),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x35c)]=0x4]=_0x4710e8(0x35c),_0x4a6ed0[_0x4a6ed0['UNAUTHENTICATED']=0x5]=_0x4710e8(0x457),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x248)]=0x6]=_0x4710e8(0x248),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x4f0)]=0x7]=_0x4710e8(0x4f0),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x1e8)]=0x8]=_0x4710e8(0x1e8),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x287)]=0x9]=_0x4710e8(0x287),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x37a)]=0x1389]=_0x4710e8(0x37a),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x540)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x25e)]=0x1772]=_0x4710e8(0x25e),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x1e6)]=0x1773]=_0x4710e8(0x1e6),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x53a)]=0x1b59]='APPLY_REJECT',_0x4a6ed0[_0x4a6ed0['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x367)]=0x1b5b]=_0x4710e8(0x367),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x2cc)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x4a6ed0[_0x4a6ed0['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x3d5)]=0x1f41]=_0x4710e8(0x3d5),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x463)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x33c)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x52d)]=0x232b]=_0x4710e8(0x52d),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x224)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x47b)]=0x232d]=_0x4710e8(0x47b),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x469)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x4a6ed0[_0x4a6ed0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x514)]=0x2713]=_0x4710e8(0x514),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x1fd)]=0x2714]=_0x4710e8(0x1fd),_0x4a6ed0[_0x4a6ed0[_0x4710e8(0x254)]=-0x1]=_0x4710e8(0x254),_0x4a6ed0))(js||{}),k=(_0x5139e1=>(_0x5139e1[_0x5139e1[_0x4710e8(0x53c)]=0x0]=_0x4710e8(0x53c),_0x5139e1[_0x5139e1[_0x4710e8(0x49d)]=0x1]=_0x4710e8(0x49d),_0x5139e1[_0x5139e1[_0x4710e8(0x3d0)]=0x2]='UNIVER_SHEET',_0x5139e1[_0x5139e1[_0x4710e8(0x264)]=0x3]='UNIVER_SLIDE',_0x5139e1[_0x5139e1['UNIVER_PROJECT']=0x4]=_0x4710e8(0x4e9),_0x5139e1[_0x5139e1[_0x4710e8(0x254)]=-0x1]=_0x4710e8(0x254),_0x5139e1))(k||{}),I=(_0xa1e8b5=>(_0xa1e8b5[_0xa1e8b5['UNKNOWN_CMD']=0x0]=_0x4710e8(0x3bc),_0xa1e8b5[_0xa1e8b5[_0x4710e8(0x4dc)]=0x1]=_0x4710e8(0x4dc),_0xa1e8b5[_0xa1e8b5[_0x4710e8(0x33f)]=0x2]=_0x4710e8(0x33f),_0xa1e8b5[_0xa1e8b5[_0x4710e8(0x551)]=0x3]=_0x4710e8(0x551),_0xa1e8b5[_0xa1e8b5[_0x4710e8(0x454)]=0x4]=_0x4710e8(0x454),_0xa1e8b5[_0xa1e8b5['HEARTBEAT']=0x5]=_0x4710e8(0x3a4),_0xa1e8b5[_0xa1e8b5[_0x4710e8(0x4d4)]=0x6]=_0x4710e8(0x4d4),_0xa1e8b5[_0xa1e8b5[_0x4710e8(0x254)]=-0x1]=_0x4710e8(0x254),_0xa1e8b5))(I||{}),Vt=(_0x5b9936=>(_0x5b9936[_0x5b9936[_0x4710e8(0x3ee)]=0x0]='UNKNOWN_CODE',_0x5b9936[_0x5b9936['OK']=0x1]='OK',_0x5b9936[_0x5b9936['FAIL']=0x2]=_0x4710e8(0x37d),_0x5b9936[_0x5b9936[_0x4710e8(0x254)]=-0x1]=_0x4710e8(0x254),_0x5b9936))(Vt||{}),xs=(_0x18f595=>(_0x18f595[_0x18f595[_0x4710e8(0x2f9)]=0x0]=_0x4710e8(0x2f9),_0x18f595[_0x18f595[_0x4710e8(0x1fb)]=0x1]=_0x4710e8(0x1fb),_0x18f595[_0x18f595[_0x4710e8(0x32a)]=0x2]=_0x4710e8(0x32a),_0x18f595[_0x18f595[_0x4710e8(0x279)]=0x3]=_0x4710e8(0x279),_0x18f595[_0x18f595['UnitSnapshot']=0x4]='UnitSnapshot',_0x18f595[_0x18f595['UNRECOGNIZED']=-0x1]=_0x4710e8(0x254),_0x18f595))(xs||{});const $=_0x4710e8(0x30d),An={};function Ln(_0x22c75d){const _0x3e7464=_0x4710e8;var _0x53c6d8,_0x6e84ac,_0x319f3c,_0x4b2ec1;const _0x5ebdc1=_0x22c75d['data'],_0x632faf=JSON[_0x3e7464(0x3e1)](_0x5ebdc1);switch(_0x632faf['cmd']){case I[_0x3e7464(0x3a4)]:case I[_0x3e7464(0x4dc)]:{const _0x449f57=_0x632faf[_0x3e7464(0x52b)];return{..._0x632faf,'data':_0x449f57,'cmd':_0x632faf[_0x3e7464(0x3d9)]};}case I[_0x3e7464(0x33f)]:{const _0x156c20=_0x632faf[_0x3e7464(0x4d2)];return{..._0x632faf,'data':_0x156c20,'cmd':_0x632faf[_0x3e7464(0x3d9)]};}case I['RECV']:{const _0x47da96=_0x632faf[_0x3e7464(0x447)];switch(_0x47da96[_0x3e7464(0x280)]){case _0x5ec94c[_0x3e7464(0x47d)]:return{..._0x632faf,'data':{..._0x47da96,'data':(_0x53c6d8=_0x47da96[_0x3e7464(0x531)])==null?void 0x0:_0x53c6d8['cs']},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c[_0x3e7464(0x291)]:return{..._0x632faf,'data':{..._0x47da96,'data':(_0x6e84ac=_0x47da96[_0x3e7464(0x3f7)])==null?void 0x0:_0x6e84ac['cs']},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c[_0x3e7464(0x29c)]:return{..._0x632faf,'data':{..._0x47da96,'data':(_0x319f3c=_0x47da96[_0x3e7464(0x422)])==null?void 0x0:_0x319f3c['cs']},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c['CHANGESET_REJ']:return{..._0x632faf,'data':{..._0x47da96,'data':(_0x4b2ec1=_0x47da96[_0x3e7464(0x37e)])==null?void 0x0:_0x4b2ec1['cs']},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c[_0x3e7464(0x365)]:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x4f4)]},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c['USERS_ENTER']:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x223)]},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c[_0x3e7464(0x3f0)]:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x237)]},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c[_0x3e7464(0x391)]:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96['liveShareNewHost']},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c[_0x3e7464(0x536)]:case _0x5ec94c[_0x3e7464(0x2ca)]:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x45f)]},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c['LIVESHARE_TERMINATE']:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x3d8)]},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c['MSG_FOR_ERROR']:return{..._0x632faf,'data':_0x47da96,'cmd':_0x632faf['cmd']};case _0x5ec94c[_0x3e7464(0x437)]:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x4ce)]},'cmd':_0x632faf[_0x3e7464(0x3d9)]};case _0x5ec94c[_0x3e7464(0x29e)]:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x2db)]},'cmd':_0x632faf['cmd']};case _0x5ec94c[_0x3e7464(0x4d5)]:return{..._0x632faf,'data':{..._0x47da96,'data':_0x47da96[_0x3e7464(0x2d6)]},'cmd':_0x632faf[_0x3e7464(0x3d9)]};default:return _0x632faf;}}default:return _0x632faf;}}function $n(_0x2170ff){const _0x5e0549=_0x4710e8;switch(_0x2170ff[_0x5e0549(0x3d9)]){case I[_0x5e0549(0x3a4)]:case I[_0x5e0549(0x4dc)]:return JSON['stringify']({'cmd':_0x2170ff['cmd'],'routeKey':_0x2170ff[_0x5e0549(0x3a7)]});case I[_0x5e0549(0x454)]:{let _0x30196c;switch(_0x2170ff[_0x5e0549(0x543)][_0x5e0549(0x280)]){case _0x5ec94c['UPDATE_CURSOR']:{_0x30196c={'eventID':_0x5ec94c['UPDATE_CURSOR'],'updateCursorEvent':_0x2170ff[_0x5e0549(0x543)][_0x5e0549(0x543)]};break;}case _0x5ec94c['USERS_LEAVE']:{_0x30196c={'eventID':_0x5ec94c['USERS_LEAVE'],'leaveEvent':_0x2170ff['data'][_0x5e0549(0x543)]};break;}case _0x5ec94c[_0x5e0549(0x2fc)]:{_0x30196c={'eventID':_0x5ec94c['USERS_ENTER'],'joinEvent':_0x2170ff[_0x5e0549(0x543)][_0x5e0549(0x543)]};break;}case _0x5ec94c[_0x5e0549(0x391)]:{_0x30196c={'eventID':_0x5ec94c[_0x5e0549(0x391)],'liveShareNewHost':_0x2170ff[_0x5e0549(0x543)]['data']};break;}case _0x5ec94c['LIVESHARE_OPERATION']:{_0x30196c={'eventID':_0x5ec94c[_0x5e0549(0x2ca)],'liveShareOperation':_0x2170ff[_0x5e0549(0x543)]['data']};break;}case _0x5ec94c[_0x5e0549(0x4a7)]:{_0x30196c={'eventID':_0x5ec94c[_0x5e0549(0x4a7)],'liveShareTerminate':_0x2170ff['data'][_0x5e0549(0x543)]};break;}case _0x5ec94c[_0x5e0549(0x34f)]:{_0x30196c={'eventID':_0x5ec94c[_0x5e0549(0x34f)],'liveShareRequestHost':_0x2170ff['data'][_0x5e0549(0x543)]};break;}case _0x5ec94c[_0x5e0549(0x536)]:{_0x30196c={'eventID':_0x5ec94c[_0x5e0549(0x536)]};break;}default:_0x30196c={'eventID':_0x2170ff[_0x5e0549(0x543)][_0x5e0549(0x280)]};}return JSON[_0x5e0549(0x402)]({'cmd':_0x2170ff[_0x5e0549(0x3d9)],'routeKey':_0x2170ff[_0x5e0549(0x3a7)],'collaMsg':_0x30196c});}case I[_0x5e0549(0x33f)]:return JSON[_0x5e0549(0x402)]({'cmd':_0x2170ff[_0x5e0549(0x3d9)],'routeKey':_0x2170ff[_0x5e0549(0x3a7)],'joinReq':_0x2170ff[_0x5e0549(0x543)]});case I['LEAVE']:return JSON[_0x5e0549(0x402)]({'cmd':_0x2170ff['cmd'],'routeKey':_0x2170ff[_0x5e0549(0x3a7)],'leaveReq':_0x2170ff['data']});default:throw new Error(_0x5e0549(0x55f));}}var jn=Object['defineProperty'],xn=Object[_0x4710e8(0x4aa)],Hn=(_0x5998d1,_0x36b04e,_0x37c868,_0x2ce748)=>{for(var _0x4fd671=_0x2ce748>0x1?void 0x0:_0x2ce748?xn(_0x36b04e,_0x37c868):_0x36b04e,_0x4b99f7=_0x5998d1['length']-0x1,_0x51f3ac;_0x4b99f7>=0x0;_0x4b99f7--)(_0x51f3ac=_0x5998d1[_0x4b99f7])&&(_0x4fd671=(_0x2ce748?_0x51f3ac(_0x36b04e,_0x37c868,_0x4fd671):_0x51f3ac(_0x4fd671))||_0x4fd671);return _0x2ce748&&_0x4fd671&&jn(_0x36b04e,_0x37c868,_0x4fd671),_0x4fd671;},Oe=(_0x3edc0d,_0x591a5a)=>(_0x1478df,_0xaa8773)=>_0x591a5a(_0x1478df,_0xaa8773,_0x3edc0d);const Hs=_0x2f212b('univer-pro.collaboration-client-socket-service');function kn(_0x18c133,_0xd8c6f5,_0x52a289){const _0x25b263=_0x4710e8;return _0x18c133+'/'+_0xd8c6f5+_0x25b263(0x412)+_0x52a289+'/new_changes';}let Ct=class extends _0x276a39{constructor(_0x5a397f,_0x2c94e5,_0x22481c,_0x1cfec5,_0x7c506b){const _0x14c79a=_0x4710e8;super(),this[_0x14c79a(0x29f)]=_0x5a397f,this['_ws']=_0x2c94e5,this[_0x14c79a(0x221)]=_0x22481c,this[_0x14c79a(0x431)]=_0x1cfec5,this[_0x14c79a(0x2e7)]=_0x7c506b;}['createSocket'](_0x4bc380){const _0x27c1ac=_0x4710e8,_0x3c4a5f=this[_0x27c1ac(0x4b2)][_0x27c1ac(0x473)](_0x4bc380);if(!_0x3c4a5f)throw new Error(_0x27c1ac(0x318));const _0x169125=new _0x126fc5(),_0x238c16=new _0x4dd9a0();_0x169125[_0x27c1ac(0x390)](_0x3c4a5f[_0x27c1ac(0x516)][_0x27c1ac(0x332)](_0x31ff33=>_0x238c16['next'](_0x31ff33))),_0x169125[_0x27c1ac(0x390)](_0xf2106b(()=>_0x238c16[_0x27c1ac(0x307)]()));const _0x37f608=new _0x4dd9a0();_0x169125['add'](_0x3c4a5f[_0x27c1ac(0x325)][_0x27c1ac(0x332)](_0x1bda2a=>_0x37f608[_0x27c1ac(0x2f0)](_0x1bda2a))),_0x169125[_0x27c1ac(0x390)](_0xf2106b(()=>_0x37f608['complete']()));const _0x4cafdd=new _0x4dd9a0();_0x169125[_0x27c1ac(0x390)](_0x3c4a5f[_0x27c1ac(0x3ab)][_0x27c1ac(0x332)](_0xacbf17=>{const _0x12a0e0=_0x27c1ac,_0x1c4326=Ln(_0xacbf17);_0x4cafdd[_0x12a0e0(0x2f0)](_0x1c4326);})),_0x169125[_0x27c1ac(0x390)](_0xf2106b(()=>_0x4cafdd[_0x27c1ac(0x307)]()));let _0x2e87c3;const _0x4688b0=()=>{const _0x2d5f49=_0x27c1ac;_0x37f608[_0x2d5f49(0x2f0)](new Event(_0x2d5f49(0x537))),_0x238c16['next'](new CloseEvent(_0x2d5f49(0x537))),_0x2e87c3[_0x2d5f49(0x3a1)]();};return _0x2e87c3={'memberID':'','close$':_0x238c16[_0x27c1ac(0x2cd)](),'error$':_0x37f608[_0x27c1ac(0x2cd)](),'open$':_0x3c4a5f['open$'],'message$':_0x4cafdd[_0x27c1ac(0x2cd)](),'send':_0x5667bf=>{const _0x2b4829=_0x27c1ac;if(_0x5667bf[_0x2b4829(0x3d9)]===I[_0x2b4829(0x454)]){if(_0x5667bf[_0x2b4829(0x543)][_0x2b4829(0x280)]===_0x5ec94c['SUBMIT_CHANGESET']){this[_0x2b4829(0x38b)](_0x2e87c3,_0x5667bf[_0x2b4829(0x543)])[_0x2b4829(0x556)](_0x470b78=>{const _0x3d8cd6=_0x2b4829;this[_0x3d8cd6(0x431)]['error'](_0x470b78),_0x4688b0();});return;}if(_0x5667bf[_0x2b4829(0x543)][_0x2b4829(0x280)]===_0x5ec94c['FETCH_MISSING']){const _0x1d8461=_0x5667bf[_0x2b4829(0x543)];this[_0x2b4829(0x251)](_0x1d8461)[_0x2b4829(0x51c)](_0x4ad56e=>{const _0x21fca6=_0x2b4829;_0x4cafdd[_0x21fca6(0x2f0)]({'cmd':I[_0x21fca6(0x4d4)],'code':Vt['OK'],'routeKey':_0x1d8461[_0x21fca6(0x543)][_0x21fca6(0x4bd)],'routeType':'','data':{'eventID':_0x5ec94c[_0x21fca6(0x52c)],'data':{'changesets':_0x4ad56e}}});})[_0x2b4829(0x556)](_0x75e32=>{const _0x228376=_0x2b4829;this[_0x228376(0x431)][_0x228376(0x3bd)](_0x75e32),_0x4688b0();});return;}}_0x3c4a5f[_0x2b4829(0x4a1)]($n(_0x5667bf));},'close':()=>{const _0x1bb27e=_0x27c1ac;_0x3c4a5f[_0x1bb27e(0x3a1)](),_0x169125[_0x1bb27e(0x3db)]();}},_0x2e87c3;}async['_submitChangeset'](_0x135342,_0x3302bd){const _0x1eaeb6=_0x4710e8;var _0x3c3438,_0x158371;const {unitType:_0x3851ef,unitID:_0x13662c,changeset:_0x45bc4b}=_0x3302bd[_0x1eaeb6(0x543)],_0x1837c2={'unitID':_0x13662c,'memberID':_0x135342[_0x1eaeb6(0x2c1)],'type':_0x3851ef,'changeset':_0x3075a4(_0x45bc4b)},_0x15ed2c=this['_configService'][_0x1eaeb6(0x41d)](yn),_0x509fe5=this['_configService']['getConfig']($),_0x3343e1=kn((_0x158371=(_0x3c3438=_0x509fe5==null?void 0x0:_0x509fe5[_0x1eaeb6(0x3e3)])!=null?_0x3c3438:_0x15ed2c)!=null?_0x158371:Un,_0x3851ef,_0x13662c);try{await this[_0x1eaeb6(0x29f)][_0x1eaeb6(0x4f8)](_0x3343e1,{'body':_0x1837c2});}catch(_0x55dc24){throw this['_logService'][_0x1eaeb6(0x3bd)](_0x1eaeb6(0x3a0),'submit\x20changeset\x20error!'),_0x55dc24;}}async[_0x4710e8(0x251)](_0xa5b3b5){const _0x45a67c=_0x4710e8,{unitID:_0x42114d,from:_0x1b6901,to:_0x154dff,unitType:_0xa03a6b}=_0xa5b3b5[_0x45a67c(0x543)];return(await this[_0x45a67c(0x2e7)][_0x45a67c(0x4e7)]({'metadata':void 0x0},{'unitID':_0x42114d,'type':_0xa03a6b,'from':_0x1b6901,'to':_0x154dff}))[_0x45a67c(0x364)];}};Ct=Hn([Oe(0x0,_0x296e7f(_0x4ddeb1)),Oe(0x1,_0x296e7f(_0xae64a8)),Oe(0x2,_0x144eba),Oe(0x3,_0x1c9d2e),Oe(0x4,_0x2a2a40)],Ct);const Bn=_0x4710e8(0x1d3);function Vn(_0x2188ec){const _0x2c24cc=_0x4710e8;return JSON[_0x2c24cc(0x402)](_0x2188ec)[_0x2c24cc(0x2b8)];}class ks{constructor(){const _0x48185e=_0x4710e8;l(this,'_commentUpdate$',new _0x4dd9a0()),l(this,_0x48185e(0x44e),this[_0x48185e(0x3e7)][_0x48185e(0x2cd)]());}[_0x4710e8(0x357)](_0x271650){const _0x9aa382=_0x4710e8;this[_0x9aa382(0x3e7)][_0x9aa382(0x2f0)](_0x271650);}}var Fn=Object[_0x4710e8(0x49e)],Wn=Object[_0x4710e8(0x4aa)],Gn=(_0x40b524,_0x213f0e,_0x3fd82d,_0x203df2)=>{const _0x50b423=_0x4710e8;for(var _0x56f6b4=_0x203df2>0x1?void 0x0:_0x203df2?Wn(_0x213f0e,_0x3fd82d):_0x213f0e,_0x2b1ad8=_0x40b524[_0x50b423(0x2b8)]-0x1,_0x453ad5;_0x2b1ad8>=0x0;_0x2b1ad8--)(_0x453ad5=_0x40b524[_0x2b1ad8])&&(_0x56f6b4=(_0x203df2?_0x453ad5(_0x213f0e,_0x3fd82d,_0x56f6b4):_0x453ad5(_0x56f6b4))||_0x56f6b4);return _0x203df2&&_0x56f6b4&&Fn(_0x213f0e,_0x3fd82d,_0x56f6b4),_0x56f6b4;},as=(_0x167af6,_0x4a06fe)=>(_0x264b18,_0x52f32c)=>_0x4a06fe(_0x264b18,_0x52f32c,_0x167af6);let ce=class extends _0x276a39{constructor(_0xcf58a1,_0x287215){const _0x15c094=_0x4710e8;super(),l(this,_0x15c094(0x271),new Map()),(this['_univerInstanceService']=_0xcf58a1,this['_userManagerService']=_0x287215,this[_0x15c094(0x333)](_0xf2106b(_0x1987ea(this[_0x15c094(0x1d4)][_0x15c094(0x4b3)](_0x1cea4a[_0x15c094(0x3d0)])[_0x15c094(0x2cf)](_0x2eb4ce(_0x54d34c=>_0x54d34c[_0x15c094(0x3dc)]())),this[_0x15c094(0x1d4)][_0x15c094(0x4b3)](_0x1cea4a[_0x15c094(0x49d)])[_0x15c094(0x2cf)](_0x2eb4ce(_0x46c920=>_0x46c920[_0x15c094(0x3dc)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1cea4a[_0x15c094(0x264)])['pipe'](_0x2eb4ce(_0x16c42a=>_0x16c42a[_0x15c094(0x3dc)]())))['subscribe'](_0x2d8265=>this[_0x15c094(0x415)](_0x2d8265)))));}[_0x4710e8(0x500)](_0x97487a){const _0x5ce0db=_0x4710e8;this[_0x5ce0db(0x4de)][_0x5ce0db(0x500)](_0x97487a);}[_0x4710e8(0x310)](){const _0x29c5a3=_0x4710e8;return this[_0x29c5a3(0x4de)][_0x29c5a3(0x310)]();}[_0x4710e8(0x24a)](_0x2c3365,_0x422632){const _0x4e3b97=_0x4710e8;let _0x17aba1=this[_0x4e3b97(0x271)]['get'](_0x2c3365);_0x17aba1||(_0x17aba1=new Yn(),this[_0x4e3b97(0x271)][_0x4e3b97(0x20f)](_0x2c3365,_0x17aba1)),_0x17aba1[_0x4e3b97(0x24a)](_0x422632);}[_0x4710e8(0x4c2)](_0x42a0aa,_0x1a24c0){const _0x23ff3f=_0x4710e8,_0x563f0c=this[_0x23ff3f(0x271)][_0x23ff3f(0x376)](_0x42a0aa);_0x563f0c&&_0x563f0c[_0x23ff3f(0x4c2)](_0x1a24c0);}[_0x4710e8(0x51e)](_0x2c3c85){const _0x3fadc8=_0x4710e8;return this[_0x3fadc8(0x271)][_0x3fadc8(0x376)](_0x2c3c85);}[_0x4710e8(0x208)](_0x5abc5f,_0x11cc43){const _0x1d3d95=_0x4710e8,_0x337f23=this['_roomMembers'][_0x1d3d95(0x376)](_0x5abc5f);if(_0x337f23)return _0x337f23[_0x1d3d95(0x208)](_0x11cc43);}['_removeRoom'](_0x1d41ca){const _0x1798ce=_0x4710e8,_0x18994a=this[_0x1798ce(0x271)][_0x1798ce(0x376)](_0x1d41ca);_0x18994a&&(_0x18994a['dispose'](),this['_roomMembers']['delete'](_0x1d41ca));}[_0x4710e8(0x3db)](){const _0x218f0b=_0x4710e8;this[_0x218f0b(0x271)][_0x218f0b(0x2b9)](_0x331d17=>_0x331d17[_0x218f0b(0x3db)]()),this[_0x218f0b(0x271)][_0x218f0b(0x2be)]();}};ce=Gn([as(0x0,_0x2e8a91),as(0x1,_0x296e7f(_0xb6fd7a))],ce);class Yn extends _0x276a39{constructor(){const _0x1ff070=_0x4710e8;super(...arguments),l(this,_0x1ff070(0x3df),new Map());}['dispose'](){const _0x507b81=_0x4710e8;this[_0x507b81(0x3df)][_0x507b81(0x2be)]();}[_0x4710e8(0x24a)](_0x211be9){const _0x546e46=_0x4710e8;this[_0x546e46(0x3df)]['set'](_0x211be9['memberID'],_0x211be9);}[_0x4710e8(0x4c2)](_0x2c05c6){const _0x3ec5fc=_0x4710e8;this[_0x3ec5fc(0x3df)][_0x3ec5fc(0x560)](_0x2c05c6);}['getMember'](_0x316b4a){const _0x3da79b=_0x4710e8;return this[_0x3da79b(0x3df)][_0x3da79b(0x376)](_0x316b4a);}}var Kn=Object[_0x4710e8(0x49e)],Xn=Object['getOwnPropertyDescriptor'],qn=(_0x4b7f41,_0x2c5a6a,_0x54f1a4,_0x38bd1c)=>{const _0x506b3e=_0x4710e8;for(var _0x147ba7=_0x38bd1c>0x1?void 0x0:_0x38bd1c?Xn(_0x2c5a6a,_0x54f1a4):_0x2c5a6a,_0x5c977d=_0x4b7f41[_0x506b3e(0x2b8)]-0x1,_0x33cf5a;_0x5c977d>=0x0;_0x5c977d--)(_0x33cf5a=_0x4b7f41[_0x5c977d])&&(_0x147ba7=(_0x38bd1c?_0x33cf5a(_0x2c5a6a,_0x54f1a4,_0x147ba7):_0x33cf5a(_0x147ba7))||_0x147ba7);return _0x38bd1c&&_0x147ba7&&Kn(_0x2c5a6a,_0x54f1a4,_0x147ba7),_0x147ba7;},J=(_0x3a8f35,_0x19694f)=>(_0x5ef357,_0x35d70a)=>_0x19694f(_0x5ef357,_0x35d70a,_0x3a8f35),Y=(_0x1c0734=>(_0x1c0734[_0x1c0734[_0x4710e8(0x36b)]=0x0]=_0x4710e8(0x36b),_0x1c0734[_0x1c0734[_0x4710e8(0x489)]=0x1]=_0x4710e8(0x489),_0x1c0734[_0x1c0734['OFFLINE']=0x2]=_0x4710e8(0x210),_0x1c0734[_0x1c0734[_0x4710e8(0x40c)]=0x3]=_0x4710e8(0x40c),_0x1c0734))(Y||{});let bt=class extends _0x25d3de{constructor(_0x52db77,_0x59e0ba,_0x6d5394,_0x5db984,_0x32be31,_0x26e8c5,_0x34147a,_0x4d4217,_0x4847ee,_0x422a1b){const _0x345ca2=_0x4710e8;super(),l(this,_0x345ca2(0x311),new _0x591af7(0x0)),l(this,'sessionStatus$',this['_sessionStatus$'][_0x345ca2(0x2cd)]()),l(this,_0x345ca2(0x3c7),new _0x4dd9a0()),l(this,_0x345ca2(0x297),this[_0x345ca2(0x3c7)][_0x345ca2(0x2cd)]()),l(this,_0x345ca2(0x2c7)),l(this,_0x345ca2(0x39a)),l(this,_0x345ca2(0x4ca)),l(this,_0x345ca2(0x26f),!0x1),l(this,'_telemetryInfo',null),(this[_0x345ca2(0x3fd)]=_0x52db77,this['_logService']=_0x6d5394,this[_0x345ca2(0x32c)]=_0x5db984,this[_0x345ca2(0x2f3)]=_0x32be31,this[_0x345ca2(0x221)]=_0x26e8c5,this['_localeService']=_0x34147a,this[_0x345ca2(0x268)]=_0x4d4217,this['_commentService']=_0x4847ee,this['_telemetryService']=_0x422a1b,this[_0x345ca2(0x26f)]=!!this['_telemetryService'],_0x59e0ba[_0x345ca2(0x2cf)](_0x5208f4(this['dispose$']))[_0x345ca2(0x332)](_0x4c6b6d=>{const _0x1ed275=_0x345ca2;var _0x42c8bb;typeof _0x4c6b6d>'u'||(this[_0x1ed275(0x2c7)]=_0x4c6b6d,_0x4c6b6d?(this[_0x1ed275(0x31f)](_0x4c6b6d),this[_0x1ed275(0x39a)]=_0x4c6b6d[_0x1ed275(0x3ab)][_0x1ed275(0x332)](_0x3d1d83=>{const _0x1b1f7e=_0x1ed275;_0x3d1d83[_0x1b1f7e(0x3a7)]===this[_0x1b1f7e(0x3fd)]&&this[_0x1b1f7e(0x4ed)](_0x3d1d83);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x1ed275(0x311)][_0x1ed275(0x2f0)](0x2),(_0x42c8bb=this[_0x1ed275(0x39a)])==null||_0x42c8bb['unsubscribe'](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x345ca2(0x32c)][_0x345ca2(0x42e)](()=>{const _0x40d287=_0x345ca2;var _0x3805fe;(_0x3805fe=this[_0x40d287(0x2c7)])==null||_0x3805fe[_0x40d287(0x4a1)]({'cmd':I[_0x40d287(0x551)],'data':{'roomID':this[_0x40d287(0x3fd)]}});})));}get[_0x4710e8(0x40b)](){const _0x2a5c7e=_0x4710e8;return this['_sessionStatus$'][_0x2a5c7e(0x429)]();}[_0x4710e8(0x329)](){const _0x4facf4=_0x4710e8;var _0x3498c9,_0x31319;return(_0x31319=(_0x3498c9=this['_socket'])==null?void 0x0:_0x3498c9[_0x4facf4(0x2c1)])!=null?_0x31319:null;}[_0x4710e8(0x3db)](){const _0x2e845d=_0x4710e8;super[_0x2e845d(0x3db)](),this[_0x2e845d(0x24c)][_0x2e845d(0x2f0)](),this[_0x2e845d(0x24c)]['complete']();}[_0x4710e8(0x3a1)](){const _0x39dd48=_0x4710e8;var _0x4520d0,_0x3c441b;this[_0x39dd48(0x3ac)](),(_0x4520d0=this[_0x39dd48(0x2c7)])==null||_0x4520d0[_0x39dd48(0x4a1)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x39dd48(0x3fd)]}}),(_0x3c441b=this[_0x39dd48(0x2c7)])==null||_0x3c441b[_0x39dd48(0x3a1)](),this[_0x39dd48(0x3c7)][_0x39dd48(0x307)](),this['_sessionStatus$']['complete'](),this[_0x39dd48(0x3db)]();}[_0x4710e8(0x4ed)](_0x2cfb8f){const _0x57fb57=_0x4710e8;_0x2cfb8f[_0x57fb57(0x3d9)]===I[_0x57fb57(0x33f)]?this[_0x57fb57(0x324)](_0x2cfb8f):_0x2cfb8f[_0x57fb57(0x3d9)]===I[_0x57fb57(0x4d4)]&&this['_onRecvEvent'](_0x2cfb8f);}[_0x4710e8(0x31f)](_0x14e162){const _0x2b9171=_0x4710e8;this['_sessionStatus$'][_0x2b9171(0x2f0)](0x1),_0x14e162[_0x2b9171(0x4a1)]({'cmd':I[_0x2b9171(0x33f)],'routeKey':this[_0x2b9171(0x3fd)],'routeType':'','data':{'rooms':[{'roomID':this[_0x2b9171(0x3fd)]}]}});}['_onJoinRoomEvent'](_0x15e15d){const _0x9098a7=_0x4710e8;var _0x5aede1;if(_0x15e15d['code']===Vt[_0x9098a7(0x37d)]){this[_0x9098a7(0x2f3)]['show']({'type':_0x348a45['Warning'],'content':this[_0x9098a7(0x555)]['t'](_0x9098a7(0x547))}),this[_0x9098a7(0x311)][_0x9098a7(0x2f0)](0x2);return;}this['_sessionStatus$'][_0x9098a7(0x2f0)](0x3);const _0x4a0832=(_0x5aede1=_0x15e15d[_0x9098a7(0x543)][_0x9098a7(0x253)][this[_0x9098a7(0x3fd)]])==null?void 0x0:_0x5aede1[_0x9098a7(0x3b6)];_0x4a0832&&_0x4a0832['forEach'](_0x19bfe4=>this[_0x9098a7(0x268)][_0x9098a7(0x24a)](this[_0x9098a7(0x3fd)],_0x19bfe4));}[_0x4710e8(0x399)](_0x11c8bf){const _0x18bda7=_0x4710e8;try{const _0x5ca96c=_0x11c8bf[_0x18bda7(0x543)];switch(_0x5ca96c[_0x18bda7(0x280)]){case _0x5ec94c[_0x18bda7(0x2fc)]:this[_0x18bda7(0x496)](_0x5ca96c),this['_event$'][_0x18bda7(0x2f0)](_0x5ca96c);break;case _0x5ec94c[_0x18bda7(0x3f0)]:this[_0x18bda7(0x474)](_0x5ca96c),this['_event$'][_0x18bda7(0x2f0)](_0x5ca96c);break;case _0x5ec94c[_0x18bda7(0x291)]:this[_0x18bda7(0x350)](),this[_0x18bda7(0x3dd)](),this[_0x18bda7(0x3c7)][_0x18bda7(0x2f0)](_0x5ca96c);break;case _0x5ec94c[_0x18bda7(0x2a6)]:this[_0x18bda7(0x431)][_0x18bda7(0x3bd)](_0x18bda7(0x379)+JSON[_0x18bda7(0x402)](_0x5ca96c)),this[_0x18bda7(0x3c7)][_0x18bda7(0x2f0)](_0x5ca96c);break;case _0x5ec94c[_0x18bda7(0x437)]:this[_0x18bda7(0x2ea)][_0x18bda7(0x357)](_0x5ca96c[_0x18bda7(0x543)]),this[_0x18bda7(0x3c7)][_0x18bda7(0x2f0)](_0x5ca96c);break;default:this[_0x18bda7(0x3c7)][_0x18bda7(0x2f0)](_0x5ca96c);}}catch(_0x8e991d){this[_0x18bda7(0x431)][_0x18bda7(0x3bd)](_0x8e991d,_0x11c8bf);}}[_0x4710e8(0x496)](_0x354a92){const _0x4118be=_0x4710e8;this['_memberService']['updateMember'](this['_unitID'],_0x354a92[_0x4118be(0x543)]);}[_0x4710e8(0x474)](_0x6dc4cf){const _0x4aa632=_0x4710e8;this[_0x4aa632(0x268)][_0x4aa632(0x4c2)](this[_0x4aa632(0x3fd)],_0x6dc4cf[_0x4aa632(0x543)][_0x4aa632(0x2c1)]);}async[_0x4710e8(0x4a1)](_0xe77149,_0x3e3f2a){const _0x19cb2c=_0x4710e8;if(this[_0x19cb2c(0x40b)]!==0x3||!this[_0x19cb2c(0x2c7)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xe77149[_0x19cb2c(0x280)]===_0x5ec94c[_0x19cb2c(0x3a8)]&&(this[_0x19cb2c(0x2d0)](),this[_0x19cb2c(0x1f3)](_0xe77149)),this['_socket']['send']({'cmd':I[_0x19cb2c(0x454)],'routeKey':_0x3e3f2a,'routeType':'','data':_0xe77149});}catch(_0x4d7ed0){this['_logService'][_0x19cb2c(0x3bd)](_0x4d7ed0);}}[_0x4710e8(0x2d0)](){const _0x20c48d=_0x4710e8;var _0x2f435f;this[_0x20c48d(0x4ca)]=window[_0x20c48d(0x40d)](()=>{const _0x6aafee=_0x20c48d;this[_0x6aafee(0x4ca)]=null,this[_0x6aafee(0x2f3)]['show']({'type':_0x348a45[_0x6aafee(0x452)],'content':this[_0x6aafee(0x555)]['t'](_0x6aafee(0x507))});},(_0x2f435f=this['_configService'][_0x20c48d(0x41d)](Ls))!=null?_0x2f435f:$s);}[_0x4710e8(0x3dd)](){const _0x17db3a=_0x4710e8;this[_0x17db3a(0x4ca)]&&(clearTimeout(this[_0x17db3a(0x4ca)]),this[_0x17db3a(0x4ca)]=null);}[_0x4710e8(0x1f3)](_0x1f5ece){const _0x3b6279=_0x4710e8;if(!this[_0x3b6279(0x26f)])return;const {data:_0x3ac25d}=_0x1f5ece,{unitID:_0x212f13,changeset:_0x575243}=_0x3ac25d,{mutations:_0x2bcfcf,type:_0x2d7a56}=_0x575243;this[_0x3b6279(0x2e9)]={'unitId':_0x212f13,'type':_0x2d7a56,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x2bcfcf)};}[_0x4710e8(0x350)](){const _0x304022=_0x4710e8;if(this['_shouldReportTelemetry']){if(!this[_0x304022(0x2e9)]){this[_0x304022(0x431)][_0x304022(0x3bd)](_0x304022(0x3a0),_0x304022(0x4cf));return;}this['_telemetryInfo']['stopTime']=performance['now'](),this[_0x304022(0x2e9)][_0x304022(0x561)]=this[_0x304022(0x2e9)][_0x304022(0x285)]-this[_0x304022(0x2e9)][_0x304022(0x222)],this[_0x304022(0x50b)][_0x304022(0x2c6)](Bn,this['_telemetryInfo']),this[_0x304022(0x2e9)]=null;}}[_0x4710e8(0x3ac)](){this['_telemetryInfo']=null;}};bt=qn([J(0x2,_0x1c9d2e),J(0x3,_0x2d6562),J(0x4,_0x47eac1),J(0x5,_0x144eba),J(0x6,_0x296e7f(_0x4224a5)),J(0x7,_0x296e7f(ce)),J(0x8,_0x296e7f(ks)),J(0x9,_0x110b49(_0x37014e))],bt);var Jn=Object[_0x4710e8(0x49e)],zn=Object['getOwnPropertyDescriptor'],Zn=(_0x36b99,_0x1422b1,_0x3b7447,_0x2fd218)=>{const _0x1b283c=_0x4710e8;for(var _0x66cd79=_0x2fd218>0x1?void 0x0:_0x2fd218?zn(_0x1422b1,_0x3b7447):_0x1422b1,_0x14e821=_0x36b99[_0x1b283c(0x2b8)]-0x1,_0x456c3e;_0x14e821>=0x0;_0x14e821--)(_0x456c3e=_0x36b99[_0x14e821])&&(_0x66cd79=(_0x2fd218?_0x456c3e(_0x1422b1,_0x3b7447,_0x66cd79):_0x456c3e(_0x66cd79))||_0x66cd79);return _0x2fd218&&_0x66cd79&&Jn(_0x1422b1,_0x3b7447,_0x66cd79),_0x66cd79;},fe=(_0x5acd1f,_0x37b62e)=>(_0x606c8c,_0x1a6a8d)=>_0x37b62e(_0x606c8c,_0x1a6a8d,_0x5acd1f);let he=class extends _0x276a39{constructor(_0x2b9b2b,_0x221d31,_0x14b356,_0x577970,_0x6eef79,_0x2986a2){const _0xfd7ee2=_0x4710e8;super(),l(this,_0xfd7ee2(0x273),new _0x591af7(void 0x0)),l(this,_0xfd7ee2(0x20b),this[_0xfd7ee2(0x273)]['asObservable']()),l(this,_0xfd7ee2(0x3fc),null),l(this,'_sessions',new Map()),l(this,_0xfd7ee2(0x23c),new _0x591af7(Y[_0xfd7ee2(0x36b)])),l(this,'status$',this[_0xfd7ee2(0x23c)][_0xfd7ee2(0x2cd)]()),l(this,_0xfd7ee2(0x426),!0x1),l(this,_0xfd7ee2(0x2a7)),l(this,_0xfd7ee2(0x2c8),0x0),l(this,_0xfd7ee2(0x53b)),l(this,_0xfd7ee2(0x395)),(this['_injector']=_0x2b9b2b,this['_localeService']=_0x221d31,this[_0xfd7ee2(0x2f3)]=_0x14b356,this[_0xfd7ee2(0x431)]=_0x577970,this[_0xfd7ee2(0x221)]=_0x6eef79,this['_socketService']=_0x2986a2,this[_0xfd7ee2(0x409)]());}get['_socket'](){const _0x373931=_0x4710e8;return this[_0x373931(0x273)]['getValue']();}[_0x4710e8(0x409)](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}[_0x4710e8(0x3db)](){const _0xc54fcc=_0x4710e8;super[_0xc54fcc(0x3db)](),this['_sessions'][_0xc54fcc(0x2b9)](_0x26e978=>_0x26e978['dispose']()),this[_0xc54fcc(0x434)][_0xc54fcc(0x2be)](),this[_0xc54fcc(0x23c)][_0xc54fcc(0x307)]();}async[_0x4710e8(0x544)](_0x4ef064){const _0x4f0def=_0x4710e8;if(this[_0x4f0def(0x434)]['has'](_0x4ef064))return this[_0x4f0def(0x434)]['get'](_0x4ef064);this[_0x4f0def(0x54d)]();const _0x3a6938=this['_injector'][_0x4f0def(0x2b7)](bt,_0x4ef064,this['_socket$'][_0x4f0def(0x2cd)]());return this[_0x4f0def(0x434)][_0x4f0def(0x20f)](_0x4ef064,_0x3a6938),_0x3a6938;}[_0x4710e8(0x2f5)](_0x43ae52){const _0x353bba=_0x4710e8;var _0x1d288d;const _0x183df8=this[_0x353bba(0x434)][_0x353bba(0x376)](_0x43ae52);_0x183df8&&(this[_0x353bba(0x434)][_0x353bba(0x560)](_0x43ae52),_0x183df8['close']()),this['_sessions'][_0x353bba(0x2dd)]||(_0x1d288d=this[_0x353bba(0x2c7)])==null||_0x1d288d['close']();}[_0x4710e8(0x302)](){const _0x4f6418=_0x4710e8;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x4f6418(0x2a7)]=null),this['_tryReconnect']();}[_0x4710e8(0x2d1)](){const _0x585c9c=_0x4710e8;var _0x52d8f3,_0x5663f8;const _0x12e09e=this[_0x585c9c(0x221)][_0x585c9c(0x41d)](En),_0x41e708=this[_0x585c9c(0x221)]['getConfig']($),_0x4cb097=(_0x5663f8=(_0x52d8f3=_0x41e708==null?void 0x0:_0x41e708[_0x585c9c(0x378)])!=null?_0x52d8f3:_0x12e09e)!=null?_0x5663f8:Cn,_0x5bfac2=this[_0x585c9c(0x258)][_0x585c9c(0x473)](_0x4cb097);return this[_0x585c9c(0x3fc)]=_0x5bfac2,_0x5bfac2;}[_0x4710e8(0x54d)](){const _0x29b76a=_0x4710e8;var _0x4115f4,_0x4b18ca;try{const _0x536b18=(_0x4b18ca=(_0x4115f4=this[_0x29b76a(0x2c7)])!=null?_0x4115f4:this[_0x29b76a(0x3fc)])!=null?_0x4b18ca:this[_0x29b76a(0x2d1)]();if(_0x536b18){const _0x20d868=_0x536b18[_0x29b76a(0x4a1)];_0x536b18[_0x29b76a(0x4a1)]=_0x5585a7=>(this['_rescheduleHeartbeat'](),_0x20d868['apply'](_0x536b18,[_0x5585a7])),_0x536b18[_0x29b76a(0x3ab)]['subscribe'](_0x5734b5=>this[_0x29b76a(0x39f)](_0x536b18,_0x5734b5)),_0x536b18[_0x29b76a(0x325)][_0x29b76a(0x2cf)](_0x30d1e5(0x1))[_0x29b76a(0x332)](_0x40af4e=>this[_0x29b76a(0x431)]['error'](_0x29b76a(0x362),_0x40af4e)),_0x536b18[_0x29b76a(0x522)]['pipe'](_0x30d1e5(0x1))[_0x29b76a(0x332)](()=>{this['_onConnectionOpen'](_0x536b18);}),_0x536b18[_0x29b76a(0x516)][_0x29b76a(0x2cf)](_0x30d1e5(0x1))['subscribe'](_0x2cfd57=>{const _0x3b7848=_0x29b76a;this[_0x3b7848(0x431)]['debug'](_0x3b7848(0x207),'socket\x20close',_0x2cfd57),this['_onConnectionFailed']();});}}catch(_0x57d663){this['_logService']['error'](_0x57d663),this['_onConnectionFailed']();}}[_0x4710e8(0x1f7)](_0x1fb66a){const _0x265512=_0x4710e8;this[_0x265512(0x431)]['debug']('[CollaborationSessionService]',_0x265512(0x3a5)),_0x1fb66a[_0x265512(0x4a1)]({'cmd':I[_0x265512(0x4dc)]}),this[_0x265512(0x2e5)]();}[_0x4710e8(0x4f5)](){const _0xc7d0f4=_0x4710e8;window[_0xc7d0f4(0x35f)]('offline',()=>this[_0xc7d0f4(0x423)]());}[_0x4710e8(0x423)](){const _0x589d04=_0x4710e8;this[_0x589d04(0x426)]=!0x1,this['_candidateSocket']=null,this[_0x589d04(0x23c)][_0x589d04(0x2f0)](Y[_0x589d04(0x210)]),this['_socket$']['next'](null),this[_0x589d04(0x3bb)](),this['_clearHeartbeatTimer']();}[_0x4710e8(0x475)](){const _0x3e45ab=_0x4710e8;var _0x28ea2c;this['_onOffline'](),this[_0x3e45ab(0x2c8)]<((_0x28ea2c=this[_0x3e45ab(0x221)][_0x3e45ab(0x41d)](On))!=null?_0x28ea2c:Dn)?(this[_0x3e45ab(0x2f3)][_0x3e45ab(0x48b)]({'key':_0x3e45ab(0x234),'type':_0x348a45[_0x3e45ab(0x290)],'content':this['_localeService']['t'](_0x3e45ab(0x54b))}),this['_tryReconnect']()):this['_messageService']['show']({'key':_0x3e45ab(0x234),'type':_0x348a45[_0x3e45ab(0x452)],'content':this['_localeService']['t'](_0x3e45ab(0x414))});}['_listenToOnlineEvent'](){const _0x324edb=_0x4710e8,_0x19921c=()=>{const _0x5f51dc=_0x34d8;this[_0x5f51dc(0x2c7)]||this[_0x5f51dc(0x302)]();},_0x8b9de8=()=>{const _0x4f8646=_0x34d8;this[_0x4f8646(0x2c7)]||document[_0x4f8646(0x3ba)]===_0x4f8646(0x31d)||this['reconnect']();};window[_0x324edb(0x35f)](_0x324edb(0x4f3),_0x19921c),document[_0x324edb(0x35f)]('visibilitychange',_0x8b9de8);}[_0x4710e8(0x303)](){const _0x56c2e7=_0x4710e8;var _0x1c8d0f;const _0x3cadf5=this[_0x56c2e7(0x2c8)],_0x5c0ae7=this[_0x56c2e7(0x221)]['getConfig']($),_0xd641ab=_0x3cadf5===0x0?0x0:((_0x1c8d0f=_0x5c0ae7==null?void 0x0:_0x5c0ae7[_0x56c2e7(0x25d)])!=null?_0x1c8d0f:Rn)*0x2**_0x3cadf5;this[_0x56c2e7(0x2a7)]=window[_0x56c2e7(0x40d)](()=>{const _0xe73bb9=_0x56c2e7;clearTimeout(this['_retryConnectingTimer']),this[_0xe73bb9(0x2a7)]=null,this[_0xe73bb9(0x54d)]();},_0xd641ab),this['_retryCount']+=0x1;}[_0x4710e8(0x39f)](_0x196938,_0x35953b){const _0x2ddbf0=_0x4710e8,{cmd:_0x47fc38}=_0x35953b;_0x47fc38===I[_0x2ddbf0(0x4dc)]&&!this['_socketReady']&&(_0x196938[_0x2ddbf0(0x2c1)]=_0x35953b[_0x2ddbf0(0x543)]['memberID'],this['_socket$'][_0x2ddbf0(0x2f0)](_0x196938),this[_0x2ddbf0(0x23c)]['next'](Y[_0x2ddbf0(0x40c)]),this['_socketReady']=!0x0,this[_0x2ddbf0(0x3fc)]=null),_0x47fc38===I[_0x2ddbf0(0x3a4)]&&this[_0x2ddbf0(0x3bb)](),this['_rescheduleHeartbeat']();}[_0x4710e8(0x2e5)](){const _0x148d80=_0x4710e8;var _0x53c1b1;this['_clearHeartbeatTimer'](),this[_0x148d80(0x53b)]=window[_0x148d80(0x40d)](()=>this[_0x148d80(0x563)](),(_0x53c1b1=this[_0x148d80(0x221)][_0x148d80(0x41d)](bn))!=null?_0x53c1b1:Tn);}['_sendHeartbeat'](){const _0x13ca36=_0x4710e8;this[_0x13ca36(0x2c7)][_0x13ca36(0x4a1)]({'cmd':I['HEARTBEAT']}),this[_0x13ca36(0x209)]();}['_waitForHeartbeatResponse'](){const _0x47b5cf=_0x4710e8;var _0x1f0bd7;this[_0x47b5cf(0x395)]=window[_0x47b5cf(0x40d)](()=>this[_0x47b5cf(0x475)](),(_0x1f0bd7=this['_configService']['getConfig'](Ls))!=null?_0x1f0bd7:$s);}[_0x4710e8(0x23e)](){const _0x42c00b=_0x4710e8;this[_0x42c00b(0x53b)]!=null&&(clearTimeout(this[_0x42c00b(0x53b)]),this[_0x42c00b(0x53b)]=null);}[_0x4710e8(0x3bb)](){const _0x5c21b6=_0x4710e8;this[_0x5c21b6(0x395)]!=null&&(clearTimeout(this[_0x5c21b6(0x395)]),this['_timeoutTimer']=null);}};he=Zn([fe(0x0,_0x296e7f(_0x8b88ea)),fe(0x1,_0x296e7f(_0x4224a5)),fe(0x2,_0x47eac1),fe(0x3,_0x1c9d2e),fe(0x4,_0x144eba),fe(0x5,Hs)],he);var b=[];for(var ct=0x0;ct<0x100;++ct)b['push']((ct+0x100)[_0x4710e8(0x1f2)](0x10)[_0x4710e8(0x4ee)](0x1));function Qn(_0x810c98,_0x238b22=0x0){const _0x190afc=_0x4710e8;return(b[_0x810c98[_0x238b22+0x0]]+b[_0x810c98[_0x238b22+0x1]]+b[_0x810c98[_0x238b22+0x2]]+b[_0x810c98[_0x238b22+0x3]]+'-'+b[_0x810c98[_0x238b22+0x4]]+b[_0x810c98[_0x238b22+0x5]]+'-'+b[_0x810c98[_0x238b22+0x6]]+b[_0x810c98[_0x238b22+0x7]]+'-'+b[_0x810c98[_0x238b22+0x8]]+b[_0x810c98[_0x238b22+0x9]]+'-'+b[_0x810c98[_0x238b22+0xa]]+b[_0x810c98[_0x238b22+0xb]]+b[_0x810c98[_0x238b22+0xc]]+b[_0x810c98[_0x238b22+0xd]]+b[_0x810c98[_0x238b22+0xe]]+b[_0x810c98[_0x238b22+0xf]])[_0x190afc(0x4bc)]();}var He,er=new Uint8Array(0x10);function tr(){const _0x4bcf67=_0x4710e8;if(!He&&(He=typeof crypto<'u'&&crypto[_0x4bcf67(0x4b0)]&&crypto[_0x4bcf67(0x4b0)][_0x4bcf67(0x355)](crypto),!He))throw new Error(_0x4bcf67(0x1d2));return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x4710e8(0x3cd)][_0x4710e8(0x355)](crypto);const cs={'randomUUID':sr};function ir(_0x1e1728,_0x278b7c,_0xeebe02){const _0x55b67b=_0x4710e8;if(cs[_0x55b67b(0x3cd)]&&!_0x278b7c&&!_0x1e1728)return cs[_0x55b67b(0x3cd)]();_0x1e1728=_0x1e1728||{};var _0x3f4dab=_0x1e1728['random']||(_0x1e1728[_0x55b67b(0x3f4)]||tr)();return _0x3f4dab[0x6]=_0x3f4dab[0x6]&0xf|0x40,_0x3f4dab[0x8]=_0x3f4dab[0x8]&0x3f|0x80,Qn(_0x3f4dab);}var nr=Object['defineProperty'],rr=Object[_0x4710e8(0x4aa)],or=(_0x148707,_0x3e813b,_0x33746d,_0x19b4da)=>{for(var _0x2da3af=_0x19b4da>0x1?void 0x0:_0x19b4da?rr(_0x3e813b,_0x33746d):_0x3e813b,_0x18ee2d=_0x148707['length']-0x1,_0x238838;_0x18ee2d>=0x0;_0x18ee2d--)(_0x238838=_0x148707[_0x18ee2d])&&(_0x2da3af=(_0x19b4da?_0x238838(_0x3e813b,_0x33746d,_0x2da3af):_0x238838(_0x2da3af))||_0x2da3af);return _0x19b4da&&_0x2da3af&&nr(_0x3e813b,_0x33746d,_0x2da3af),_0x2da3af;},ht=(_0x110b76,_0x2a9fb7)=>(_0x1a4f56,_0x5bb604)=>_0x2a9fb7(_0x1a4f56,_0x5bb604,_0x110b76);let Ye=class{constructor(_0x3b4db2,_0x309b08,_0x5d58d5){const _0x2e562a=_0x4710e8;this[_0x2e562a(0x2ff)]=_0x3b4db2,this[_0x2e562a(0x340)]=_0x309b08,this['_renderManagerService']=_0x5d58d5;}[_0x4710e8(0x438)](_0x49030b){this['_transformUndoRedoStack'](_0x49030b),this['_transformPreviousActiveRange'](_0x49030b);}[_0x4710e8(0x2f1)](_0x5cb746){const _0x2160ec=_0x4710e8,{unitID:_0x583ccd}=_0x5cb746,_0x14f15c=this[_0x2160ec(0x51a)]['getRenderById'](_0x583ccd)[_0x2160ec(0x374)](_0x2534dc),{redoCache:_0x354976}=_0x14f15c['getUndoRedoMutationParamsCache']();if(_0x354976[_0x2160ec(0x2b8)]===0x0)return _0x5cb746;let _0x1b6cb0=_0xc786e4[_0x2160ec(0x313)](_0x5cb746[_0x2160ec(0x49b)][0x0]);for(let _0x24ef6d=0x0;_0x24ef6d<_0x354976[_0x2160ec(0x2b8)];_0x24ef6d++){const _0xdee9cf={'id':_0x2160ec(0x22a),'params':{..._0x354976[_0x24ef6d]}},_0x3c329f=this[_0x2160ec(0x340)]['transformMutation'](_0x1b6cb0,_0xdee9cf,!0x1);if(_0x489b6f(_0x3c329f))throw _0x3c329f[_0x2160ec(0x3bd)];_0x1b6cb0=_0x3c329f['m1Prime'];}return{..._0xc786e4[_0x2160ec(0x313)](_0x5cb746),'mutations':[_0x1b6cb0]};}[_0x4710e8(0x39d)](_0x5e9ef7){const _0x42a955=_0x4710e8,{unitID:_0x1f3142}=_0x5e9ef7,_0x531b07=this[_0x42a955(0x51a)][_0x42a955(0x33a)](_0x1f3142)[_0x42a955(0x374)](_0x2534dc),{undoCache:_0xbb8f3d,redoCache:_0x5f46d0}=_0x531b07[_0x42a955(0x3ae)]();if(_0xbb8f3d[_0x42a955(0x2b8)]===0x0||_0x5f46d0[_0x42a955(0x2b8)]===0x0)return;const _0x310276=[],_0x1d0ec5=[];let _0x432f62=_0xc786e4[_0x42a955(0x313)](_0x5e9ef7['mutations'][0x0]),_0x3463ef=_0xc786e4[_0x42a955(0x313)](_0x5e9ef7['mutations'][0x0]);for(let _0x4a3567=_0xbb8f3d[_0x42a955(0x2b8)]-0x1;_0x4a3567>=0x0;_0x4a3567--){const _0x3a6297={'id':_0x42a955(0x22a),'params':{..._0xbb8f3d[_0x4a3567]}},_0x424c5f={'id':'doc.mutation.rich-text-editing','params':{..._0x5f46d0[_0x4a3567]}},_0x20ead7=this['_transformService'][_0x42a955(0x3ef)](_0x432f62,_0x3a6297,!0x1),_0x36cb16=this['_transformService'][_0x42a955(0x3ef)](_0x3463ef,_0x424c5f,!0x1);if(_0x489b6f(_0x20ead7))throw _0x20ead7[_0x42a955(0x3bd)];if(_0x489b6f(_0x36cb16))throw _0x36cb16[_0x42a955(0x3bd)];_0x310276['unshift'](_0x20ead7[_0x42a955(0x1e2)]['params']),_0x1d0ec5[_0x42a955(0x31e)](_0x36cb16['m2Prime'][_0x42a955(0x3eb)]),_0x432f62=_0x20ead7[_0x42a955(0x513)],_0x3463ef=_0x36cb16[_0x42a955(0x513)];}_0x531b07['setUndoRedoMutationParamsCache']({'undoCache':_0x310276,'redoCache':_0x1d0ec5});}[_0x4710e8(0x49a)](_0x2c7283){const _0x13d154=_0x4710e8,{unitID:_0x4c7b1b}=_0x2c7283,_0x40ce7b=this[_0x13d154(0x51a)][_0x13d154(0x33a)](_0x4c7b1b)[_0x13d154(0x374)](_0x2534dc),_0x557942=_0x40ce7b[_0x13d154(0x1ec)]();if(_0x557942==null)return;const _0x376654=[{'id':_0x13d154(0x22a),'params':{'unitId':_0x2c7283['unitID'],'actions':null,'textRanges':[_0x557942]}}],_0x2532df=this[_0x13d154(0x340)][_0x13d154(0x44f)](_0x2c7283,_0x376654);if(!_0x1a2743(_0x2532df))throw _0x2532df[_0x13d154(0x3bd)];const _0x30c0de=_0x2532df[_0x13d154(0x1e2)][0x0]['params']['textRanges'];Array['isArray'](_0x30c0de)&&_0x30c0de[_0x13d154(0x2b8)]&&_0x40ce7b['setActiveRange'](_0x30c0de[0x0]);}};Ye=or([ht(0x0,_0x296e7f(_0x8b88ea)),ht(0x1,_0x5184af),ht(0x2,_0x593697)],Ye);var ar=Object[_0x4710e8(0x49e)],cr=Object[_0x4710e8(0x4aa)],hr=(_0x1909a8,_0x4b0a81,_0x2c03af,_0x59c1b0)=>{const _0x4132e9=_0x4710e8;for(var _0x3c9f1e=_0x59c1b0>0x1?void 0x0:_0x59c1b0?cr(_0x4b0a81,_0x2c03af):_0x4b0a81,_0x364a7b=_0x1909a8[_0x4132e9(0x2b8)]-0x1,_0x2ea89a;_0x364a7b>=0x0;_0x364a7b--)(_0x2ea89a=_0x1909a8[_0x364a7b])&&(_0x3c9f1e=(_0x59c1b0?_0x2ea89a(_0x4b0a81,_0x2c03af,_0x3c9f1e):_0x2ea89a(_0x3c9f1e))||_0x3c9f1e);return _0x59c1b0&&_0x3c9f1e&&ar(_0x4b0a81,_0x2c03af,_0x3c9f1e),_0x3c9f1e;},De=(_0x414f4f,_0x5f4590)=>(_0x34065b,_0x489309)=>_0x5f4590(_0x34065b,_0x489309,_0x414f4f);let w=class extends _0x276a39{constructor(_0x351196,_0x50e12e,_0x400164,_0x9e649d,_0xe3c730){const _0x1ac000=_0x4710e8;super(),l(this,_0x1ac000(0x461),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x1ac000(0x3b7),!0x1),(this['_configService']=_0x351196,this[_0x1ac000(0x21f)]=_0x50e12e,this['_beforeCloseService']=_0x400164,this[_0x1ac000(0x555)]=_0x9e649d,this[_0x1ac000(0x43d)]=_0xe3c730,this[_0x1ac000(0x518)]());}[_0x4710e8(0x4af)](){this['_disabled']=!0x0;}[_0x4710e8(0x42c)](){const _0x23de14=_0x4710e8;this[_0x23de14(0x3b7)]=!0x1;}[_0x4710e8(0x3db)](){const _0x327648=_0x4710e8;this['exhaustSavingTask']()['then'](()=>super[_0x327648(0x3db)]());}async['loadOfflineData'](_0x120dbf){const _0x448607=_0x4710e8;return this[_0x448607(0x3b7)]?null:this[_0x448607(0x21f)]['getItem'](hs(_0x120dbf));}async[_0x4710e8(0x32e)](_0x53a5a7,_0xa6e639){const _0x2dfc60=_0x4710e8;return!!this[_0x2dfc60(0x21f)][_0x2dfc60(0x4d6)](_0x53a5a7,_0xa6e639);}[_0x4710e8(0x240)](_0x383995,_0x3ea5b2,_0x36e555,_0x4d77ea){const _0x2b3db3=_0x4710e8,_0x236171=this[_0x2b3db3(0x43d)][_0x2b3db3(0x375)](_0x383995);this[_0x2b3db3(0x461)][_0x2b3db3(0x20f)](_0x383995,{'unitID':_0x383995,'type':_0x3ea5b2,'awaitingChangeset':_0x36e555,'mutations':_0x4d77ea,'rev':_0x236171}),this[_0x2b3db3(0x494)][_0x2b3db3(0x277)](_0x383995)||this[_0x2b3db3(0x298)](_0x383995);}[_0x4710e8(0x298)](_0x183291){const _0x583c8b=_0x4710e8,_0xa7f6fc=this[_0x583c8b(0x236)]();_0xa7f6fc===0x0?this['_saveCache'](_0x183291):this[_0x583c8b(0x494)][_0x583c8b(0x20f)](_0x183291,setTimeout(()=>this[_0x583c8b(0x42a)](_0x183291),_0xa7f6fc));}[_0x4710e8(0x236)](){const _0x3e05e7=_0x4710e8;var _0x385957;return(_0x385957=this['_configService'][_0x3e05e7(0x41d)](wn))!=null?_0x385957:Pn;}[_0x4710e8(0x42a)](_0x126a18){const _0x1b9805=_0x4710e8,_0x3dd4e7=this[_0x1b9805(0x494)]['get'](_0x126a18);return _0x3dd4e7!==void 0x0&&window[_0x1b9805(0x2d9)](_0x3dd4e7),this[_0x1b9805(0x21f)][_0x1b9805(0x4d6)](hs(_0x126a18),this[_0x1b9805(0x461)][_0x1b9805(0x376)](_0x126a18))[_0x1b9805(0x51c)](()=>this[_0x1b9805(0x494)][_0x1b9805(0x560)](_0x126a18));}async['exhaustSavingTask'](){const _0x6a8458=_0x4710e8,_0x30ca13=[];this['_saveTaskMap']['forEach']((_0x35d72b,_0x8efc06)=>{const _0x194967=_0x34d8;window[_0x194967(0x2d9)](_0x35d72b),_0x30ca13[_0x194967(0x372)](this[_0x194967(0x42a)](_0x8efc06)['then'](()=>{const _0x2cec18=_0x194967;this['_saveTaskMap'][_0x2cec18(0x560)](_0x8efc06);}));}),await Promise[_0x6a8458(0x257)](_0x30ca13);}['_setupBeforeClosingHandler'](){const _0x5a403a=_0x4710e8;this['disposeWithMe'](this[_0x5a403a(0x32c)][_0x5a403a(0x4da)](()=>{const _0x217006=_0x5a403a;if(this[_0x217006(0x494)][_0x217006(0x2dd)])return this[_0x217006(0x555)]['t']('collaboration-client.offline-data-not-saved');}));}};w=hr([De(0x0,_0x144eba),De(0x1,_0x4cf819),De(0x2,_0x2d6562),De(0x3,_0x296e7f(_0x4224a5)),De(0x4,_0x296e7f(_0x1f5713))],w);function hs(_0x3e18bc){return'unit-cache-'+_0x3e18bc;}var lr=Object[_0x4710e8(0x49e)],_r=Object['getOwnPropertyDescriptor'],ur=(_0x1e24e9,_0x57e63a,_0x35b468,_0x331615)=>{const _0x52c0a4=_0x4710e8;for(var _0x565ab3=_0x331615>0x1?void 0x0:_0x331615?_r(_0x57e63a,_0x35b468):_0x57e63a,_0x5481e4=_0x1e24e9[_0x52c0a4(0x2b8)]-0x1,_0x16d79f;_0x5481e4>=0x0;_0x5481e4--)(_0x16d79f=_0x1e24e9[_0x5481e4])&&(_0x565ab3=(_0x331615?_0x16d79f(_0x57e63a,_0x35b468,_0x565ab3):_0x16d79f(_0x565ab3))||_0x565ab3);return _0x331615&&_0x565ab3&&lr(_0x57e63a,_0x35b468,_0x565ab3),_0x565ab3;},lt=(_0x173131,_0xf9d56c)=>(_0x17401a,_0x4de916)=>_0xf9d56c(_0x17401a,_0x4de916,_0x173131);function dr(_0x46ad69){const _0x4f040c=_0x4710e8,{unitID:_0x459a06,mutations:_0x239c66}=_0x46ad69;return{'unitId':_0x459a06,'subUnitId':_0x239c66[0x0][_0x4f040c(0x3eb)][_0x4f040c(0x448)]};}let Ke=class{constructor(_0x2cf5de,_0x411b46,_0x37fcb7){const _0x3c3c49=_0x4710e8;this[_0x3c3c49(0x2ff)]=_0x2cf5de,this[_0x3c3c49(0x340)]=_0x411b46,this['_instanceService']=_0x37fcb7;}[_0x4710e8(0x24e)](_0x4492ea){const _0x46e1b9=_0x4710e8;var _0x518e9e,_0x3a3e27,_0x10fc10,_0x14b401;const _0x13401d=this[_0x46e1b9(0x2ff)][_0x46e1b9(0x376)](_0x4d164d),{unitId:_0xd1baca,subUnitId:_0xa20199}=dr(_0x4492ea),_0xbf283=_0x13401d[_0x46e1b9(0x30b)](_0xd1baca)[_0x46e1b9(0x392)](),_0x144991=(_0x3a3e27=(_0x518e9e=this[_0x46e1b9(0x45b)][_0x46e1b9(0x43c)](_0xd1baca))==null?void 0x0:_0x518e9e[_0x46e1b9(0x2bc)]())==null?void 0x0:_0x3a3e27['getSheetId']();if(_0xbf283['length']===0x0||!_0xd1baca||!_0xa20199)return;const _0xc2540d=[{'id':_0x3d4fa2['id'],'params':{'unitId':_0xd1baca,'subUnitId':_0x144991,'selections':_0xc786e4[_0x46e1b9(0x313)](_0xbf283)}}],_0x45031d=this[_0x46e1b9(0x340)]['transformMutationsWithChangeset'](_0x4492ea,_0xc2540d);if(!_0x1a2743(_0x45031d))throw _0x45031d[_0x46e1b9(0x3bd)];const _0x484f3b=(_0x14b401=(_0x10fc10=_0x45031d[_0x46e1b9(0x1e2)][0x0])==null?void 0x0:_0x10fc10['params'])==null?void 0x0:_0x14b401[_0x46e1b9(0x52a)];Array['isArray'](_0x484f3b)&&_0x484f3b[_0x46e1b9(0x2b8)]&&this[_0x46e1b9(0x2ff)][_0x46e1b9(0x376)](_0x3619ab)[_0x46e1b9(0x55e)](_0x3d4fa2['id'],{'unitId':_0xd1baca,'subUnitId':_0x144991,'selections':_0x484f3b});}};Ke=ur([lt(0x0,_0x296e7f(_0x8b88ea)),lt(0x1,_0x5184af),lt(0x2,_0x2e8a91)],Ke);const tt=_0x2f212b('univer-pro.collaboration-client.single-active-unit-service');var Bs=(_0x1ed1e9=>(_0x1ed1e9[_0x1ed1e9[_0x4710e8(0x34d)]=0x0]=_0x4710e8(0x34d),_0x1ed1e9[_0x1ed1e9['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x1ed1e9))(Bs||{});const ls=0x7530,_s=_0x4710e8(0x42b);class fr extends _0x276a39{constructor(){const _0x2d5c7e=_0x4710e8;super(),l(this,_0x2d5c7e(0x459),_0xc786e4[_0x2d5c7e(0x341)]()),l(this,_0x2d5c7e(0x464),new Set()),l(this,_0x2d5c7e(0x4e5),new Map()),l(this,_0x2d5c7e(0x3ce),null),l(this,'_clearOtherTimers',new Map()),l(this,_0x2d5c7e(0x28f),new Map()),this['_init']();}[_0x4710e8(0x3db)](){const _0x454245=_0x4710e8;super[_0x454245(0x3db)](),this['_clearOtherTimers'][_0x454245(0x2b9)]((_0x54a403,_0x45f9a8)=>this[_0x454245(0x282)](_0x45f9a8)),this[_0x454245(0x3ce)]&&window[_0x454245(0x231)](this[_0x454245(0x3ce)]);}['getUnitStatus$'](_0x20daf0){const _0xb202a8=_0x4710e8;return this[_0xb202a8(0x219)](_0x20daf0)[_0xb202a8(0x2cf)](_0x58b1b1());}[_0x4710e8(0x342)](_0x581298){const _0x335043=_0x4710e8;this[_0x335043(0x464)]['size']===0x0&&this[_0x335043(0x3a6)](),this[_0x335043(0x464)][_0x335043(0x390)](_0x581298),this[_0x335043(0x2ac)]({'type':0x0,'memberID':this[_0x335043(0x459)],'unitIDs':[_0x581298],'isForwarded':!0x1});}[_0x4710e8(0x3d7)](_0x321388){const _0x46df1e=_0x4710e8;this[_0x46df1e(0x464)][_0x46df1e(0x560)](_0x321388),this['_selfUnitIDs'][_0x46df1e(0x2dd)]===0x0&&this[_0x46df1e(0x3ce)]&&window[_0x46df1e(0x231)](this[_0x46df1e(0x3ce)]);}[_0x4710e8(0x20c)](){const _0x3a62dd=_0x4710e8;this[_0x3a62dd(0x333)](_0xf2106b(_0x4b5de6(window,_0x3a62dd(0x266))['subscribe'](_0x15c7f9=>{const _0x36e9ca=_0x3a62dd;if(_0x15c7f9[_0x36e9ca(0x255)]!==_s||!_0x15c7f9[_0x36e9ca(0x22d)])return;const _0x1b8d68=JSON[_0x36e9ca(0x3e1)](_0x15c7f9[_0x36e9ca(0x22d)]);this[_0x36e9ca(0x328)](_0x1b8d68);}))),window[_0x3a62dd(0x35f)](_0x3a62dd(0x26c),()=>this[_0x3a62dd(0x2ac)]({'type':0x1,'memberID':this[_0x3a62dd(0x459)],'unitIDs':Array[_0x3a62dd(0x50a)](this['_selfUnitIDs'])}));}[_0x4710e8(0x328)](_0x2227eb){const _0x344a8d=_0x4710e8;switch(_0x2227eb[_0x344a8d(0x315)]){case 0x0:this[_0x344a8d(0x335)](_0x2227eb);break;case 0x1:this[_0x344a8d(0x384)](_0x2227eb);break;case 0x2:this[_0x344a8d(0x29b)](_0x2227eb);break;}}[_0x4710e8(0x335)](_0x593ca4){const _0x10f5d5=_0x4710e8,{unitIDs:_0x2c4602,memberID:_0x3d508b,isForwarded:_0x28e8b7}=_0x593ca4;_0x2c4602[_0x10f5d5(0x2b9)](_0x1fd77e=>{const _0x1cfaad=_0x10f5d5;if(!_0x28e8b7&&this[_0x1cfaad(0x4e5)][_0x1cfaad(0x277)](_0x1fd77e)&&this[_0x1cfaad(0x219)](_0x1fd77e)[_0x1cfaad(0x2f0)](0x1),!this[_0x1cfaad(0x4e5)][_0x1cfaad(0x277)](_0x1fd77e)||!this[_0x1cfaad(0x4e5)]['get'](_0x1fd77e)[_0x1cfaad(0x277)](_0x3d508b)){const _0x323cdb=this[_0x1cfaad(0x4e5)][_0x1cfaad(0x376)](_0x1fd77e)||new Set();_0x323cdb[_0x1cfaad(0x390)](_0x3d508b),this['_unitOnClients'][_0x1cfaad(0x20f)](_0x1fd77e,_0x323cdb),this[_0x1cfaad(0x53e)](_0x3d508b);}}),_0x28e8b7||this[_0x10f5d5(0x2ac)]({'type':0x0,'memberID':this[_0x10f5d5(0x459)],'unitIDs':[...this[_0x10f5d5(0x464)]],'isForwarded':!0x0});}[_0x4710e8(0x53e)](_0x54793f){const _0x5d797b=_0x4710e8;this[_0x5d797b(0x282)](_0x54793f);const _0x1f6fbc=window['setTimeout'](()=>{const _0x4ea67b=_0x5d797b;this[_0x4ea67b(0x4e5)][_0x4ea67b(0x2b9)](_0xdfb8a5=>{const _0x3227cd=_0x4ea67b;_0xdfb8a5[_0x3227cd(0x560)](_0x54793f);});},ls*0x2);this[_0x5d797b(0x4ea)][_0x5d797b(0x20f)](_0x54793f,_0x1f6fbc);}[_0x4710e8(0x282)](_0x8365c1){const _0x47b7b9=_0x4710e8;if(this[_0x47b7b9(0x4ea)][_0x47b7b9(0x277)](_0x8365c1)){const _0x28cffa=this[_0x47b7b9(0x4ea)][_0x47b7b9(0x376)](_0x8365c1);_0x28cffa&&window['clearTimeout'](_0x28cffa),this[_0x47b7b9(0x4ea)][_0x47b7b9(0x20f)](_0x8365c1,null);}}['_handleLeaveEvent'](_0x55ec2d){const _0x50b134=_0x4710e8,{memberID:_0x5062d0,unitIDs:_0x27d359}=_0x55ec2d;_0x27d359[_0x50b134(0x2b9)](_0x36e8e8=>{const _0x1633a1=_0x50b134;var _0x434d18;const _0xcfa5a8=this[_0x1633a1(0x4e5)]['get'](_0x36e8e8);_0xcfa5a8&&(_0xcfa5a8['delete'](_0x5062d0),(_0x434d18=this['_ensureSubject'](_0x36e8e8))==null||_0x434d18[_0x1633a1(0x2f0)](_0xcfa5a8[_0x1633a1(0x2dd)]===0x0?0x0:0x1));}),this[_0x50b134(0x282)](_0x5062d0);}[_0x4710e8(0x29b)](_0x2d1d55){const _0x448e67=_0x4710e8;this[_0x448e67(0x53e)](_0x2d1d55[_0x448e67(0x2c1)]);}[_0x4710e8(0x2ac)](_0x59fd98){const _0x5a6f02=_0x4710e8;localStorage['setItem'](_s,JSON[_0x5a6f02(0x402)](_0x59fd98));}[_0x4710e8(0x3a6)](){const _0x1187ca=_0x4710e8;this[_0x1187ca(0x3ce)]=window['setInterval'](()=>{const _0x2095f3=_0x1187ca;this[_0x2095f3(0x2ac)]({'type':0x2,'memberID':this[_0x2095f3(0x459)]});},ls);}[_0x4710e8(0x219)](_0x2a28dc){const _0x4e9932=_0x4710e8;return this[_0x4e9932(0x28f)][_0x4e9932(0x277)](_0x2a28dc)||this[_0x4e9932(0x28f)]['set'](_0x2a28dc,new _0x591af7(0x0)),this['_unitStatus'][_0x4e9932(0x376)](_0x2a28dc);}}function Vs(_0x3a9168){const _0x1e062a=_0x4710e8;let _0x3f8284='';for(const _0x5f4d16 of _0x3a9168){const {startOffset:_0x13ae9e,endOffset:_0x401c19,isActive:_0x2fb665}=_0x5f4d16;_0x3f8284[_0x1e062a(0x2b8)]&&(_0x3f8284+=','),_0x3f8284+=_0x13ae9e+':'+_0x401c19+':'+(_0x2fb665?'1':'0');}return _0x3f8284;}function mr(_0x46041d){const _0x28ccfc=_0x4710e8,_0x1e3aaf=_0x46041d[_0x28ccfc(0x305)](','),_0x481198=[];for(const _0x45d561 of _0x1e3aaf){const [_0x46c527,_0xc32f3e,_0x188360]=_0x45d561[_0x28ccfc(0x305)](':');_0x481198[_0x28ccfc(0x372)]({'startOffset':Number(_0x46c527),'endOffset':Number(_0xc32f3e),'collapsed':_0x46c527===_0xc32f3e,'isActive':_0x188360==='1'});}return _0x481198[_0x28ccfc(0x247)](_0x56880a=>_0x56880a[_0x28ccfc(0x349)])||(_0x481198[0x0][_0x28ccfc(0x349)]=!0x0),_0x481198;}class Ft extends _0x25d3de{constructor(){const _0x4b2b61=_0x4710e8;super(...arguments),l(this,_0x4b2b61(0x36c),new _0x591af7(null)),l(this,'collabCursorState$',this['_collabCursorState$'][_0x4b2b61(0x2cd)]());}[_0x4710e8(0x28d)](_0x300a4b){const _0x274cd6=_0x4710e8,{unitID:_0x3e7864,memberID:_0x2f90f8,textRanges:_0x16e510}=_0x300a4b,_0x510b89=Vs(_0x16e510),_0x5e1474={'unitID':_0x3e7864,'memberID':_0x2f90f8,'selection':_0x510b89};this[_0x274cd6(0x36c)][_0x274cd6(0x2f0)](_0x5e1474);}}var gr=Object['defineProperty'],Sr=Object[_0x4710e8(0x4aa)],pr=(_0x240408,_0x3767c9,_0x523e87,_0xe0cad9)=>{const _0x3a5d94=_0x4710e8;for(var _0x593307=_0xe0cad9>0x1?void 0x0:_0xe0cad9?Sr(_0x3767c9,_0x523e87):_0x3767c9,_0x2ddcb9=_0x240408[_0x3a5d94(0x2b8)]-0x1,_0x232d95;_0x2ddcb9>=0x0;_0x2ddcb9--)(_0x232d95=_0x240408[_0x2ddcb9])&&(_0x593307=(_0xe0cad9?_0x232d95(_0x3767c9,_0x523e87,_0x593307):_0x232d95(_0x593307))||_0x593307);return _0xe0cad9&&_0x593307&&gr(_0x3767c9,_0x523e87,_0x593307),_0x593307;},us=(_0xca9fe7,_0x53cc20)=>(_0x231414,_0x2bc50f)=>_0x53cc20(_0x231414,_0x2bc50f,_0xca9fe7);let Xe=class{constructor(_0x4508d4,_0x482304){const _0xe53ab0=_0x4710e8;this[_0xe53ab0(0x2ff)]=_0x4508d4,this[_0xe53ab0(0x340)]=_0x482304;}['transformSelections'](_0xf7d8dc){const _0x17115a=_0x4710e8;var _0x5441e4;const _0x3569c0=this[_0x17115a(0x2ff)]['get'](_0x5c4218),_0x14a5cb=(_0x5441e4=_0x3569c0[_0x17115a(0x46a)]())!=null?_0x5441e4:[];if(_0x14a5cb[_0x17115a(0x2b8)]===0x0)return;const _0x5c71b6=[{'id':_0x17115a(0x22a),'params':{'unitId':_0xf7d8dc['unitID'],'actions':null,'textRanges':_0x14a5cb}}],_0x486ac6=this['_transformService'][_0x17115a(0x44f)](_0xf7d8dc,_0x5c71b6);if(!_0x1a2743(_0x486ac6))throw _0x486ac6[_0x17115a(0x3bd)];const _0x5d1026=_0x486ac6[_0x17115a(0x1e2)][0x0][_0x17115a(0x3eb)][_0x17115a(0x3ea)];Array[_0x17115a(0x30a)](_0x5d1026)&&_0x5d1026[_0x17115a(0x2b8)]&&_0x3569c0['replaceTextRanges'](_0x5d1026,!0x1);}};Xe=pr([us(0x0,_0x296e7f(_0x8b88ea)),us(0x1,_0x5184af)],Xe);const vr=new Set([_0x485f72['id']]);function ds(_0x137f9c,_0x34d56b,_0x2277a8,_0x43ae65,_0x298bfd){const _0x575986=_0x4710e8;var _0x2312c4,_0x2b637c,_0x17e569,_0x44bcf5;const _0x2fcf6c=[];for(const _0x2eec8a of _0x137f9c)if(vr['has'](_0x2eec8a['id'])){if(_0x2fcf6c[_0x575986(0x2b8)]>0x0)break;_0x2fcf6c['push'](_0x2eec8a);break;}else _0x2fcf6c[_0x575986(0x372)](_0x2eec8a);const _0x74afea=(_0x2b637c=(_0x2312c4=_0x298bfd[_0x575986(0x310)]())==null?void 0x0:_0x2312c4[_0x575986(0x241)])!=null?_0x2b637c:_0x575986(0x465),_0x16b4fb=(_0x44bcf5=(_0x17e569=_0x298bfd[_0x575986(0x310)]())==null?void 0x0:_0x17e569[_0x575986(0x2c1)])!=null?_0x44bcf5:'unknown';return{'changeset':{'unitID':_0x34d56b,'type':_0x2f8be7(_0x2277a8['getUnitType'](_0x34d56b)),'baseRev':_0x43ae65['getCurrentRevOfUnit'](_0x34d56b),'revision':0x0,'userID':_0x74afea,'memberID':_0x16b4fb,'mutations':_0x2fcf6c},'pendingMutations':_0x137f9c['slice'](_0x2fcf6c[_0x575986(0x2b8)])};}function Ir(_0xe1f00c,_0x279453,_0x524dda,_0x163fdc,_0x1c0858){const _0x3c589e=_0x4710e8;var _0x3791d7,_0x39a55d,_0x57aa16,_0x55245b;const _0x3653f3=[_0xe1f00c[_0x3c589e(0x3b8)]((_0x114a31,_0x32cd15)=>{const _0x31630a=_0x3c589e;var _0x352162;const {id:_0xef52dc}=_0x114a31,{id:_0x474def,type:_0x23be9a}=_0x32cd15,_0x4755ba=(_0x352162=_0x114a31[_0x31630a(0x3eb)])!=null?_0x352162:{'actions':null},_0x270da7=_0x32cd15['params'];if(_0xef52dc&&_0xef52dc!==_0x474def)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0xef52dc+_0x31630a(0x481)+_0x474def+'.');return{..._0x114a31,'id':_0x474def,'type':_0x23be9a,'params':{'unitId':_0x270da7[_0x31630a(0x295)],'textRanges':_0x270da7[_0x31630a(0x3ea)],'actions':_0x4b6ed5[_0x31630a(0x38c)](_0x4755ba[_0x31630a(0x503)],_0x270da7[_0x31630a(0x503)])}};},{})],_0x4ca2ba=(_0x39a55d=(_0x3791d7=_0x1c0858['getCurrentUser']())==null?void 0x0:_0x3791d7[_0x3c589e(0x241)])!=null?_0x39a55d:_0x3c589e(0x465),_0x31da99=(_0x55245b=(_0x57aa16=_0x1c0858[_0x3c589e(0x310)]())==null?void 0x0:_0x57aa16['memberID'])!=null?_0x55245b:_0x3c589e(0x465);return{'changeset':{'unitID':_0x279453,'type':_0x2f8be7(_0x524dda[_0x3c589e(0x41a)](_0x279453)),'baseRev':_0x163fdc['getCurrentRevOfUnit'](_0x279453),'revision':0x0,'userID':_0x4ca2ba,'memberID':_0x31da99,'mutations':_0x3653f3},'pendingMutations':[]};}const Er={'id':_0x1babcc['id'],'type':_0x47f19b['MUTATION'],'params':{}};var Cr=Object[_0x4710e8(0x49e)],br=Object[_0x4710e8(0x4aa)],_e=(_0x214c0b,_0xf50494,_0x4fed97,_0x43748b)=>{const _0x1c467c=_0x4710e8;for(var _0x53148d=_0x43748b>0x1?void 0x0:_0x43748b?br(_0xf50494,_0x4fed97):_0xf50494,_0x578d63=_0x214c0b[_0x1c467c(0x2b8)]-0x1,_0x59b372;_0x578d63>=0x0;_0x578d63--)(_0x59b372=_0x214c0b[_0x578d63])&&(_0x53148d=(_0x43748b?_0x59b372(_0xf50494,_0x4fed97,_0x53148d):_0x59b372(_0x53148d))||_0x53148d);return _0x43748b&&_0x53148d&&Cr(_0xf50494,_0x4fed97,_0x53148d),_0x53148d;},m=(_0x5919e0,_0xc8604b)=>(_0x2eebf3,_0x3d8d33)=>_0xc8604b(_0x2eebf3,_0x3d8d33,_0x5919e0),P=(_0x2ab440=>(_0x2ab440[_0x4710e8(0x4b6)]=_0x4710e8(0x400),_0x2ab440['SYNCED']=_0x4710e8(0x550),_0x2ab440[_0x4710e8(0x353)]='pending',_0x2ab440[_0x4710e8(0x2f4)]=_0x4710e8(0x3da),_0x2ab440['AWAITING_WITH_PENDING']=_0x4710e8(0x26d),_0x2ab440[_0x4710e8(0x562)]='fetch_missing',_0x2ab440[_0x4710e8(0x456)]=_0x4710e8(0x43e),_0x2ab440['OFFLINE']=_0x4710e8(0x4b9),_0x2ab440))(P||{});class ue{constructor(_0x41f32e,_0x3f73f9,_0x2c71e8,_0x4b97ee,_0x2d6593,_0x4f96de,_0x1c2293,_0x418ede,_0x5f3390){const _0x2a5ab1=_0x4710e8;l(this,_0x2a5ab1(0x1f4),null),l(this,_0x2a5ab1(0x227),[]),(this[_0x2a5ab1(0x4bd)]=_0x41f32e,this['type']=_0x3f73f9,this[_0x2a5ab1(0x352)]=_0x2d6593,this['_commandService']=_0x4f96de,this[_0x2a5ab1(0x410)]=_0x1c2293,this[_0x2a5ab1(0x43d)]=_0x418ede,this[_0x2a5ab1(0x46d)]=_0x5f3390,this[_0x2a5ab1(0x1f4)]=_0x2c71e8,this[_0x2a5ab1(0x227)]=_0x4b97ee);}[_0x4710e8(0x442)](_0x576534){const _0x1905e4=_0x4710e8,_0x5d7fb0=this[_0x1905e4(0x43d)][_0x1905e4(0x375)](this['unitID']);return _0x576534['revision']>_0x5d7fb0+0x1?(this[_0x1905e4(0x352)][_0x1905e4(0x3d3)]({'from':_0x5d7fb0,'to':_0x576534[_0x1905e4(0x2b2)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2dbd10){const _0x130a88=_0x4710e8;this[_0x130a88(0x410)][_0x130a88(0x41f)](this[_0x130a88(0x4bd)],_0x2dbd10);}[_0x4710e8(0x260)](_0x1c55b3){const _0x4b2537=_0x4710e8;var _0x29a0ca,_0x5d5654;(_0x5d5654=(_0x29a0ca=this['_handler'])[_0x4b2537(0x37b)])==null||_0x5d5654[_0x4b2537(0x52e)](_0x29a0ca,_0x1c55b3);}[_0x4710e8(0x4a5)](_0x620271){const _0x302151=_0x4710e8;var _0x592f34,_0x983e3a;return(_0x983e3a=(_0x592f34=this[_0x302151(0x352)])[_0x302151(0x242)])==null?void 0x0:_0x983e3a[_0x302151(0x52e)](_0x592f34,_0x620271);}[_0x4710e8(0x483)](_0x254924){const _0x23bc9e=_0x4710e8;var _0x5ce1aa,_0x9c5572,_0x189e73;return(_0x189e73=(_0x9c5572=(_0x5ce1aa=this['_handler'])[_0x23bc9e(0x1fa)])==null?void 0x0:_0x9c5572[_0x23bc9e(0x52e)](_0x5ce1aa,_0x254924))!=null?_0x189e73:_0x254924;}[_0x4710e8(0x4f6)](_0x15321b){const _0x194bd0=_0x4710e8;var _0x4b7f9f,_0x4ac2c8;if(this[_0x194bd0(0x315)]===k[_0x194bd0(0x49d)]){const {unitID:_0x543c00,mutations:_0x509627,memberID:_0x3c7a26}=_0x15321b,_0x7d989e=_0x509627[0x0][_0x194bd0(0x3eb)]['textRanges'];Array[_0x194bd0(0x30a)](_0x7d989e)&&_0x7d989e[_0x194bd0(0x2b8)]>0x0&&((_0x4ac2c8=(_0x4b7f9f=this[_0x194bd0(0x352)])[_0x194bd0(0x50e)])==null||_0x4ac2c8[_0x194bd0(0x52e)](_0x4b7f9f,{'unitID':_0x543c00,'memberID':_0x3c7a26,'textRanges':_0x7d989e}));}}[_0x4710e8(0x23f)](){const _0x40d8be=_0x4710e8;this[_0x40d8be(0x46d)][_0x40d8be(0x240)](this[_0x40d8be(0x4bd)],this[_0x40d8be(0x315)],this[_0x40d8be(0x1f4)],this[_0x40d8be(0x227)]);}[_0x4710e8(0x326)](){const _0x191b65=_0x4710e8;return this[_0x191b65(0x43d)]['getCurrentRevOfUnit'](this[_0x191b65(0x4bd)]);}[_0x4710e8(0x419)](){const _0x29c2f6=_0x4710e8;this['_revisionService']['incrementRevOfUnit'](this[_0x29c2f6(0x4bd)]);}['_executeRemoteChangeset'](_0xe31cdf){const _0x293c5d=_0x4710e8;var _0x22de9b;const _0x5d85b5=this[_0x293c5d(0x483)](_0xe31cdf),_0xf8f36d=_0x597e69(_0x5d85b5['mutations'],this[_0x293c5d(0x436)],{'fromCollab':!0x0});if(!_0xf8f36d['result'])throw _0xf8f36d['error']instanceof Error?_0xf8f36d['error']:new Error((_0x22de9b=_0xf8f36d['error'])!=null?_0x22de9b:_0x293c5d(0x539));this[_0x293c5d(0x4a5)](_0x5d85b5),this[_0x293c5d(0x404)](_0xe31cdf),this[_0x293c5d(0x260)](_0x5d85b5),this[_0x293c5d(0x4f6)](_0x5d85b5),this['_incrementRevisionNumber']();}}let pe=class extends ue{constructor(_0x128b0c,_0x17f3d4,_0x1bdc2f,_0x425cc2,_0x39da08,_0x439abd,_0x4a5c21,_0x237d87,_0x1a6e4a,_0x45249d){const _0x474c14=_0x4710e8;super(_0x128b0c,_0x17f3d4,null,[],_0x1bdc2f,_0x237d87,_0x4a5c21,_0x425cc2,_0x39da08),l(this,_0x474c14(0x37c),_0x474c14(0x550)),(this['_injector']=_0x439abd,this[_0x474c14(0x431)]=_0x1a6e4a,this[_0x474c14(0x340)]=_0x45249d);}[_0x4710e8(0x497)](_0x4b981b){const _0x57c4d6=_0x4710e8,_0x236fd8=this['_injector'][_0x57c4d6(0x2b7)](X,this[_0x57c4d6(0x4bd)],this[_0x57c4d6(0x315)],[_0x4b981b],this['_handler']);return _0x236fd8[_0x57c4d6(0x54a)](),_0x236fd8[_0x57c4d6(0x23f)](),_0x236fd8;}['onRemoteChangeset'](_0x38a5ae){const _0x11f5d2=_0x4710e8;if(this[_0x11f5d2(0x442)](_0x38a5ae))return this[_0x11f5d2(0x2ff)][_0x11f5d2(0x2b7)](B,this[_0x11f5d2(0x4bd)],this[_0x11f5d2(0x315)],null,[],null,[_0x38a5ae],this[_0x11f5d2(0x352)]);try{const _0x4e04b9=this[_0x11f5d2(0x340)][_0x11f5d2(0x44f)](_0x38a5ae,[Er]);if(_0x1a2743(_0x4e04b9)){const {c1Prime:_0x2e5ac7}=_0x4e04b9;return this[_0x11f5d2(0x424)](_0x2e5ac7),this;}throw _0x4e04b9['error'];}catch(_0x4d9f6d){return this[_0x11f5d2(0x431)][_0x11f5d2(0x3bd)](_0x4d9f6d),this[_0x11f5d2(0x385)](!0x1);}}[_0x4710e8(0x385)](_0x43b9fb){const _0x3a3ab3=_0x4710e8;return this[_0x3a3ab3(0x2ff)][_0x3a3ab3(0x2b7)](ee,this[_0x3a3ab3(0x4bd)],this[_0x3a3ab3(0x315)],null,[],this[_0x3a3ab3(0x352)],_0x43b9fb);}[_0x4710e8(0x50d)](){const _0x5d116a=_0x4710e8;throw new Error(_0x5d116a(0x263));}[_0x4710e8(0x554)](){const _0x3b22b7=_0x4710e8;throw new Error(_0x3b22b7(0x1f1));}['toggleOffline'](){const _0x507f6b=_0x4710e8;return this[_0x507f6b(0x2ff)][_0x507f6b(0x2b7)](te,this['unitID'],this[_0x507f6b(0x315)],null,[],this[_0x507f6b(0x352)]);}[_0x4710e8(0x3fb)](){return this;}[_0x4710e8(0x411)](){const _0xc857d8=_0x4710e8;throw new Error(_0xc857d8(0x2af));}[_0x4710e8(0x283)](){const _0x2164f3=_0x4710e8,_0x52997f=this[_0x2164f3(0x43d)][_0x2164f3(0x375)](this[_0x2164f3(0x4bd)]);return this[_0x2164f3(0x352)][_0x2164f3(0x3d3)]({'from':_0x52997f,'to':0x0}),this['_injector'][_0x2164f3(0x2b7)](B,this[_0x2164f3(0x4bd)],this[_0x2164f3(0x315)],null,[],null,[],this['_handler']);}};pe=_e([m(0x3,_0x296e7f(_0x1f5713)),m(0x4,_0x296e7f(w)),m(0x5,_0x296e7f(_0x8b88ea)),m(0x6,_0xf0383c),m(0x7,_0x3619ab),m(0x8,_0x1c9d2e),m(0x9,_0x5184af)],pe);let X=class extends ue{constructor(_0x19c0f4,_0x4cc607,_0x1f76a5,_0x31a570,_0x438a89,_0x456365,_0x4c315c,_0x726495,_0x424d92,_0x3bb1ff,_0x6b023e,_0x356d80,_0x580bbf,_0x47ac22){const _0xb0946=_0x4710e8;super(_0x19c0f4,_0x4cc607,null,_0x1f76a5,_0x31a570,_0x3bb1ff,_0x47ac22,_0x456365,_0x4c315c),l(this,_0xb0946(0x37c),_0xb0946(0x394)),l(this,_0xb0946(0x1d1),null),l(this,_0xb0946(0x4fd),null),(this[_0xb0946(0x2ff)]=_0x438a89,this[_0xb0946(0x268)]=_0x726495,this[_0xb0946(0x431)]=_0x424d92,this[_0xb0946(0x221)]=_0x6b023e,this['_transformService']=_0x356d80,this[_0xb0946(0x1d4)]=_0x580bbf);}[_0x4710e8(0x497)](_0x3b6c76){const _0x5bb038=_0x4710e8;return this['_pendingMutations'][_0x5bb038(0x372)](_0x3b6c76),this[_0x5bb038(0x23f)](),this;}['onRemoteChangeset'](_0x2a988e){const _0x3fd6ff=_0x4710e8;if(this[_0x3fd6ff(0x442)](_0x2a988e))return this[_0x3fd6ff(0x2f7)](),this['_injector']['createInstance'](B,this['unitID'],this['type'],null,this[_0x3fd6ff(0x227)],null,[_0x2a988e],this['_handler']);try{const _0x4d2374=this[_0x3fd6ff(0x340)]['transformMutationsWithChangeset'](_0x2a988e,this[_0x3fd6ff(0x227)]);if(_0x1a2743(_0x4d2374)){const {c1Prime:_0x2d310a,m2Prime:_0x339346}=_0x4d2374;this[_0x3fd6ff(0x424)](_0x2d310a);const _0x342b83=this[_0x3fd6ff(0x2ff)][_0x3fd6ff(0x2b7)](X,this['unitID'],this['type'],_0x339346,this[_0x3fd6ff(0x352)]);return this[_0x3fd6ff(0x2f7)](),_0x342b83['_schedule'](this['_scheduleTimestamp']?Math[_0x3fd6ff(0x261)](0x0,new Date()[_0x3fd6ff(0x3be)]()-this[_0x3fd6ff(0x1d1)]):this['_getSendChangesetTimeout']()),_0x342b83;}throw _0x4d2374[_0x3fd6ff(0x3bd)];}catch(_0x287287){return this[_0x3fd6ff(0x431)]['error'](_0x287287),this[_0x3fd6ff(0x385)](!0x1);}}['onRemoteAck'](){const _0x3783e6=_0x4710e8;throw new Error(_0x3783e6(0x3d4));}[_0x4710e8(0x554)](){const _0x2749d9=_0x4710e8;throw new Error(_0x2749d9(0x27e));}[_0x4710e8(0x4bf)](){const _0x31a69e=_0x4710e8;return this['_clearScheduledTask'](),this[_0x31a69e(0x2ff)][_0x31a69e(0x2b7)](te,this[_0x31a69e(0x4bd)],this['type'],null,this[_0x31a69e(0x227)],this[_0x31a69e(0x352)]);}[_0x4710e8(0x3fb)](){return this;}[_0x4710e8(0x54a)](_0x52bc15){const _0x316f1a=_0x4710e8,_0x17697c=_0x52bc15!=null?_0x52bc15:this[_0x316f1a(0x4a4)]();this[_0x316f1a(0x1d1)]=new Date()[_0x316f1a(0x3be)](),this['_sendingTimer']=window[_0x316f1a(0x40d)](()=>{const _0x9ba76b=_0x316f1a;this['_clearScheduledTask']();let _0x353e44=null;switch(this[_0x9ba76b(0x315)]){case k[_0x9ba76b(0x3d0)]:{_0x353e44=ds(this[_0x9ba76b(0x227)],this['unitID'],this[_0x9ba76b(0x1d4)],this['_revisionService'],this[_0x9ba76b(0x268)]);break;}case k['UNIVER_DOC']:{this[_0x9ba76b(0x227)][_0x9ba76b(0x4d8)](_0x5f7c04=>_0x5f7c04['id']===_0x121759['id'])?_0x353e44=Ir(this[_0x9ba76b(0x227)],this[_0x9ba76b(0x4bd)],this[_0x9ba76b(0x1d4)],this[_0x9ba76b(0x43d)],this[_0x9ba76b(0x268)]):_0x353e44=ds(this[_0x9ba76b(0x227)],this[_0x9ba76b(0x4bd)],this['_univerInstanceService'],this[_0x9ba76b(0x43d)],this[_0x9ba76b(0x268)]);break;}default:throw new Error(_0x9ba76b(0x4c8)+this[_0x9ba76b(0x315)]+_0x9ba76b(0x38f));}const {changeset:_0xb0f3c1,pendingMutations:_0x3537dd}=_0x353e44;this['_handler'][_0x9ba76b(0x2fd)](_0xb0f3c1);const _0x391c06=_0x3537dd['length']?this[_0x9ba76b(0x2ff)][_0x9ba76b(0x2b7)](q,this[_0x9ba76b(0x4bd)],this[_0x9ba76b(0x315)],_0xb0f3c1,_0x3537dd,this[_0x9ba76b(0x352)]):this[_0x9ba76b(0x2ff)][_0x9ba76b(0x2b7)](Q,this[_0x9ba76b(0x4bd)],this[_0x9ba76b(0x315)],_0xb0f3c1,this[_0x9ba76b(0x352)]);_0x391c06[_0x9ba76b(0x23f)](),this[_0x9ba76b(0x352)]['onStateChange'](this,_0x391c06);},_0x17697c);}[_0x4710e8(0x4a4)](){const _0x3aea43=_0x4710e8;var _0x4a5f1c;const _0x1884bd=this[_0x3aea43(0x221)]['getConfig']($);return(_0x4a5f1c=_0x1884bd==null?void 0x0:_0x1884bd[_0x3aea43(0x430)])!=null?_0x4a5f1c:In;}[_0x4710e8(0x411)](){const _0x2e1372=_0x4710e8;throw new Error(_0x2e1372(0x417));}[_0x4710e8(0x2f7)](){const _0x1da06d=_0x4710e8;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1da06d(0x4fd)]),this['_sendingTimer']=null);}['_onConflict'](_0x550243){const _0xc0f30=_0x4710e8;return this[_0xc0f30(0x2f7)](),this['_injector'][_0xc0f30(0x2b7)](ee,this[_0xc0f30(0x4bd)],this[_0xc0f30(0x315)],null,this[_0xc0f30(0x227)],this[_0xc0f30(0x352)],_0x550243);}};X=_e([m(0x4,_0x296e7f(_0x8b88ea)),m(0x5,_0x296e7f(_0x1f5713)),m(0x6,_0x296e7f(w)),m(0x7,_0x296e7f(ce)),m(0x8,_0x1c9d2e),m(0x9,_0x3619ab),m(0xa,_0x144eba),m(0xb,_0x5184af),m(0xc,_0x2e8a91),m(0xd,_0xf0383c)],X);let Q=class extends ue{constructor(_0x6d0206,_0xc3b51b,_0xd1e0c,_0x87f28c,_0x8cd223,_0x3f4840,_0x55529f,_0x164be1,_0x3a2fee,_0x16087e,_0x15b83e){const _0x2d4056=_0x4710e8;super(_0x6d0206,_0xc3b51b,_0xd1e0c,[],_0x87f28c,_0x164be1,_0x15b83e,_0x3f4840,_0x55529f),l(this,_0x2d4056(0x37c),_0x2d4056(0x3da)),(this[_0x2d4056(0x2ff)]=_0x8cd223,this['_logService']=_0x3a2fee,this['_transformService']=_0x16087e);}['appendMutation'](_0x486f13){const _0x5180e9=_0x4710e8,_0x376948=this[_0x5180e9(0x2ff)][_0x5180e9(0x2b7)](q,this['unitID'],this[_0x5180e9(0x315)],this[_0x5180e9(0x1f4)],[_0x486f13],this['_handler']);return _0x376948['_updateLocalCache'](),_0x376948;}[_0x4710e8(0x213)](_0x3cfefc){const _0x3dbca6=_0x4710e8;if(this[_0x3dbca6(0x442)](_0x3cfefc))return this[_0x3dbca6(0x2ff)]['createInstance'](B,this[_0x3dbca6(0x4bd)],this['type'],this[_0x3dbca6(0x1f4)],[],null,[_0x3cfefc],this[_0x3dbca6(0x352)]);try{const _0x4aeb73=this[_0x3dbca6(0x340)][_0x3dbca6(0x3e8)]([_0x3cfefc],[this[_0x3dbca6(0x1f4)]],!0x1);if(_0xc77b6d(_0x4aeb73)){const {c1Prime:_0x3d564b,c2Prime:_0x51fc34}=_0x4aeb73;this['_executeRemoteChangeset'](_0x3d564b[0x0]),_0x51fc34[0x0]['baseRev']=this[_0x3dbca6(0x326)]();const _0x3ff300=this['_injector'][_0x3dbca6(0x2b7)](Q,this[_0x3dbca6(0x4bd)],this[_0x3dbca6(0x315)],_0x51fc34[0x0],this['_handler']);return _0x3ff300['_updateLocalCache'](),_0x3ff300;}return this[_0x3dbca6(0x385)](!0x1);}catch(_0x35881a){return this[_0x3dbca6(0x431)][_0x3dbca6(0x3bd)](_0x35881a),this[_0x3dbca6(0x385)](!0x1);}}[_0x4710e8(0x50d)](_0x2e1c78){const _0xf5aa85=_0x4710e8,_0x386a82=this['_revisionService'][_0xf5aa85(0x375)](this[_0xf5aa85(0x4bd)]);if(_0x2e1c78['revision']<_0x386a82-0x1)return this;if(this[_0xf5aa85(0x442)](_0x2e1c78))return this[_0xf5aa85(0x2ff)]['createInstance'](B,this[_0xf5aa85(0x4bd)],this[_0xf5aa85(0x315)],null,[],this[_0xf5aa85(0x1f4)],[],this[_0xf5aa85(0x352)]);this[_0xf5aa85(0x419)]();const _0x573db0=this[_0xf5aa85(0x2ff)]['createInstance'](pe,this[_0xf5aa85(0x4bd)],this[_0xf5aa85(0x315)],this['_handler']);return _0x573db0['_updateLocalCache'](),_0x573db0;}[_0x4710e8(0x554)](_0x407ba2){const _0x1a510e=_0x4710e8;return this[_0x1a510e(0x385)](!!(_0x407ba2!=null&&_0x407ba2[_0x1a510e(0x377)]));}[_0x4710e8(0x4bf)](){const _0x3de979=_0x4710e8;return this['_injector'][_0x3de979(0x2b7)](te,this[_0x3de979(0x4bd)],this['type'],this[_0x3de979(0x1f4)],[],this[_0x3de979(0x352)]);}[_0x4710e8(0x3fb)](){return this;}[_0x4710e8(0x411)](){const _0x16506e=_0x4710e8;this[_0x16506e(0x352)][_0x16506e(0x2fd)](this['_awaitingChangeset']);}[_0x4710e8(0x385)](_0x3aa3c0){const _0x3280bb=_0x4710e8;return this[_0x3280bb(0x2ff)][_0x3280bb(0x2b7)](ee,this[_0x3280bb(0x4bd)],this[_0x3280bb(0x315)],this[_0x3280bb(0x1f4)],[],this[_0x3280bb(0x352)],_0x3aa3c0);}};Q=_e([m(0x4,_0x296e7f(_0x8b88ea)),m(0x5,_0x296e7f(_0x1f5713)),m(0x6,_0x296e7f(w)),m(0x7,_0x3619ab),m(0x8,_0x1c9d2e),m(0x9,_0x5184af),m(0xa,_0xf0383c)],Q);let q=class extends ue{constructor(_0x480ccd,_0x2c01bf,_0x1fdf98,_0x26e5de,_0x485d98,_0x293d30,_0x1ca9cb,_0x54a6ff,_0xdce24a,_0x22e9fd,_0x5f2bbc,_0x2f70d8){const _0x5bf915=_0x4710e8;super(_0x480ccd,_0x2c01bf,_0x1fdf98,_0x26e5de,_0x485d98,_0xdce24a,_0x2f70d8,_0x1ca9cb,_0x54a6ff),l(this,_0x5bf915(0x37c),_0x5bf915(0x26d)),(this['_injector']=_0x293d30,this['_logService']=_0x22e9fd,this[_0x5bf915(0x340)]=_0x5f2bbc);}['appendMutation'](_0x37ad60){const _0x4b5d35=_0x4710e8;return this['_pendingMutations'][_0x4b5d35(0x372)](_0x37ad60),this;}[_0x4710e8(0x213)](_0x43dbc8){const _0x2afe0a=_0x4710e8;if(this[_0x2afe0a(0x442)](_0x43dbc8))return this['_injector'][_0x2afe0a(0x2b7)](B,this['unitID'],this[_0x2afe0a(0x315)],this['_awaitingChangeset'],this[_0x2afe0a(0x227)],null,[_0x43dbc8],this[_0x2afe0a(0x352)]);try{const _0x319234=this[_0x2afe0a(0x340)][_0x2afe0a(0x3e8)]([_0x43dbc8],[this[_0x2afe0a(0x1f4)]],!0x1);if(_0xc77b6d(_0x319234)){const {c1Prime:_0x5bad92,c2Prime:_0x378870}=_0x319234,_0x392afb=this[_0x2afe0a(0x340)]['transformMutationsWithChangeset'](_0x5bad92[0x0],this['_pendingMutations']);if(_0x1a2743(_0x392afb)){const {c1Prime:_0x5c0475,m2Prime:_0x118a00}=_0x392afb;return this[_0x2afe0a(0x424)](_0x5c0475),_0x378870[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0x2afe0a(0x2ff)][_0x2afe0a(0x2b7)](q,this[_0x2afe0a(0x4bd)],this[_0x2afe0a(0x315)],_0x378870[0x0],_0x118a00,this[_0x2afe0a(0x352)]);}throw _0x392afb['error'];}throw _0x319234[_0x2afe0a(0x3bd)];}catch(_0x241e5c){return this[_0x2afe0a(0x431)][_0x2afe0a(0x3bd)](_0x241e5c),this[_0x2afe0a(0x385)](!0x1);}}['onRemoteAck'](_0x102413){const _0x5dbfb5=_0x4710e8;if(this['_checkMissing'](_0x102413))return this[_0x5dbfb5(0x2ff)][_0x5dbfb5(0x2b7)](B,this[_0x5dbfb5(0x4bd)],this['type'],null,this[_0x5dbfb5(0x227)],this[_0x5dbfb5(0x1f4)],[],this[_0x5dbfb5(0x352)]);this[_0x5dbfb5(0x419)]();const _0x14141e=this[_0x5dbfb5(0x2ff)][_0x5dbfb5(0x2b7)](X,this['unitID'],this[_0x5dbfb5(0x315)],this['_pendingMutations'],this['_handler']);return _0x14141e[_0x5dbfb5(0x54a)](),_0x14141e[_0x5dbfb5(0x23f)](),_0x14141e;}[_0x4710e8(0x554)](_0x5b2374){const _0x534ec1=_0x4710e8;return this[_0x534ec1(0x385)](!!(_0x5b2374!=null&&_0x5b2374[_0x534ec1(0x377)]));}[_0x4710e8(0x4bf)](){const _0x38df6c=_0x4710e8;return this[_0x38df6c(0x2ff)][_0x38df6c(0x2b7)](te,this[_0x38df6c(0x4bd)],this[_0x38df6c(0x315)],this[_0x38df6c(0x1f4)],this[_0x38df6c(0x227)],this[_0x38df6c(0x352)]);}[_0x4710e8(0x3fb)](){return this;}['resend'](){const _0x3eb226=_0x4710e8;this[_0x3eb226(0x352)][_0x3eb226(0x2fd)](this['_awaitingChangeset']);}[_0x4710e8(0x385)](_0x26bed8){const _0x3cfb65=_0x4710e8;return this['_injector'][_0x3cfb65(0x2b7)](ee,this['unitID'],this[_0x3cfb65(0x315)],null,this[_0x3cfb65(0x227)],this['_handler'],_0x26bed8);}};q=_e([m(0x5,_0x296e7f(_0x8b88ea)),m(0x6,_0x296e7f(_0x1f5713)),m(0x7,_0x296e7f(w)),m(0x8,_0x3619ab),m(0x9,_0x1c9d2e),m(0xa,_0x5184af),m(0xb,_0xf0383c)],q);let ee=class extends ue{constructor(_0x598e45,_0x2fb381,_0x53e799,_0x45332f,_0x1226ba,_0x51f64=!0x1,_0x1e6702,_0x3f53fc,_0x11e1cd,_0x292f94,_0x5e0355,_0x30e8ac,_0x47571a){const _0x3f9f16=_0x4710e8;super(_0x598e45,_0x2fb381,_0x53e799,_0x45332f,_0x1226ba,_0x3f53fc,_0x11e1cd,_0x5e0355,_0x292f94),l(this,_0x3f9f16(0x37c),_0x3f9f16(0x43e)),(this[_0x3f9f16(0x256)]=_0x51f64,this['_permissionService']=_0x1e6702,this[_0x3f9f16(0x555)]=_0x30e8ac,this[_0x3f9f16(0x331)]=_0x47571a,this[_0x3f9f16(0x344)](),this[_0x3f9f16(0x2ba)](),this[_0x3f9f16(0x2bf)]());}['appendMutation'](){return this;}[_0x4710e8(0x213)](){return this;}[_0x4710e8(0x50d)](){return this;}[_0x4710e8(0x554)](){return this;}[_0x4710e8(0x4bf)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0xd0609e=_0x4710e8;throw new Error(_0xd0609e(0x553));}['_clearLocalCache'](){const _0x23a492=_0x4710e8;this['_localCacheService'][_0x23a492(0x240)](this[_0x23a492(0x4bd)],this['type'],null,[]);}[_0x4710e8(0x344)](){const _0x35bed9=_0x4710e8;this[_0x35bed9(0x256)]?this[_0x35bed9(0x331)][_0x35bed9(0x48b)]({'title':this[_0x35bed9(0x555)]['t'](_0x35bed9(0x33d)),'content':this[_0x35bed9(0x555)]['t'](_0x35bed9(0x3af)),'type':'error','duration':0x0}):this['_notificationService'][_0x35bed9(0x48b)]({'title':this['_localeService']['t'](_0x35bed9(0x23d)),'content':this[_0x35bed9(0x555)]['t'](_0x35bed9(0x479)),'type':'error','duration':0x0});}[_0x4710e8(0x2bf)](){const _0x1ef5f=_0x4710e8;this[_0x1ef5f(0x28e)]['updatePermissionPoint'](new _0x371e2e(this[_0x1ef5f(0x4bd)])['id'],!0x1);}};ee=_e([m(0x6,_0x296e7f(_0x561034)),m(0x7,_0x3619ab),m(0x8,_0xf0383c),m(0x9,_0x296e7f(w)),m(0xa,_0x296e7f(_0x1f5713)),m(0xb,_0x296e7f(_0x4224a5)),m(0xc,_0xf5d2ab)],ee);let te=class extends ue{constructor(_0x1a442d,_0x2c882f,_0x39b295,_0x5c79ee,_0x482885,_0x2f4bdb,_0x4daf5c,_0x27a962,_0x26d829,_0x1c56a7){const _0x403137=_0x4710e8;super(_0x1a442d,_0x2c882f,_0x39b295,_0x5c79ee,_0x482885,_0x26d829,_0x1c56a7,_0x4daf5c,_0x27a962),l(this,'status',_0x403137(0x4b9)),this['_injector']=_0x2f4bdb;}[_0x4710e8(0x497)](_0x3be8f6){const _0x35558c=_0x4710e8;return this[_0x35558c(0x227)][_0x35558c(0x372)](_0x3be8f6),this['_updateLocalCache'](),this;}[_0x4710e8(0x213)](_0x234c49){const _0x4600a5=_0x4710e8;throw new Error(_0x4600a5(0x3ad));}['onRemoteAck'](){const _0x6783db=_0x4710e8;throw new Error(_0x6783db(0x4cd));}[_0x4710e8(0x554)](){const _0x5acbfc=_0x4710e8;throw new Error(_0x5acbfc(0x1fc));}['toggleOffline'](){return this;}[_0x4710e8(0x3fb)](){const _0x21b1ef=_0x4710e8,{_injector:_0xb83094,_pendingMutations:_0x46467d,_awaitingChangeset:_0x5f5698,unitID:_0x473f6a,_handler:_0x43077b,type:_0x2c4be6}=this,_0x5061e7=Fs(_0xb83094,_0x473f6a,_0x2c4be6,_0x5f5698,_0x46467d,_0x43077b);return _0x5061e7 instanceof X?_0x5061e7[_0x21b1ef(0x54a)]():(_0x5061e7 instanceof q||_0x5061e7 instanceof Q)&&_0x5061e7[_0x21b1ef(0x411)](),_0x5061e7;}['resend'](){const _0x49651d=_0x4710e8;throw new Error(_0x49651d(0x2d4));}};te=_e([m(0x5,_0x296e7f(_0x8b88ea)),m(0x6,_0x296e7f(_0x1f5713)),m(0x7,_0x296e7f(w)),m(0x8,_0x3619ab),m(0x9,_0xf0383c)],te);let B=class extends ue{constructor(_0xfe221a,_0x36ffb2,_0x20a691,_0x18dcc9,_0x6fae36,_0xfc7d75,_0x34a2aa,_0x2bea88,_0x29a0b9,_0x1710fc,_0x5ea5bf,_0xbaade9,_0x5c994e,_0x19f543){const _0x5626c9=_0x4710e8;super(_0xfe221a,_0x36ffb2,_0x20a691,_0x18dcc9,_0x34a2aa,_0xbaade9,_0x5c994e,_0x29a0b9,_0x1710fc),l(this,_0x5626c9(0x37c),_0x5626c9(0x380)),(this[_0x5626c9(0x2a4)]=_0x6fae36,this[_0x5626c9(0x534)]=_0xfc7d75,this['_injector']=_0x2bea88,this[_0x5626c9(0x431)]=_0x5ea5bf,this['_transformService']=_0x19f543);}['onMissedChangesetFetched'](_0x2d2398){const _0x54f465=_0x4710e8;try{const _0x78ce13=[..._0x2d2398,...this[_0x54f465(0x534)]],_0x5c48a2=[this[_0x54f465(0x1f4)]||this[_0x54f465(0x2a4)]]['filter'](_0x353ac1=>!!_0x353ac1);let _0x2d73f3,_0x55f31d;if(_0x5c48a2[_0x54f465(0x2b8)]){const _0x11c8c7=this[_0x54f465(0x340)][_0x54f465(0x3e8)](_0x78ce13,_0x5c48a2,!0x1);if(!_0xc77b6d(_0x11c8c7))throw _0x11c8c7[_0x54f465(0x3bd)];_0x2d73f3=_0x11c8c7[_0x54f465(0x4d7)],_0x55f31d=_0x11c8c7[_0x54f465(0x319)];}else _0x2d73f3=_0x78ce13,_0x55f31d=[];let _0xcdd795=this[_0x54f465(0x227)];_0x2d73f3[_0x54f465(0x2b9)](_0x40de1c=>{const _0x4865fc=_0x54f465;let _0x7ec5f8;if(_0xcdd795[_0x4865fc(0x2b8)]){const _0x5b1c6d=this['_transformService']['transformMutationsWithChangeset'](_0x40de1c,_0xcdd795);if(!_0x1a2743(_0x5b1c6d))throw _0x5b1c6d['error'];_0x7ec5f8=_0x5b1c6d[_0x4865fc(0x4d7)],_0xcdd795=_0x5b1c6d[_0x4865fc(0x1e2)];}else _0x7ec5f8=_0x40de1c;this[_0x4865fc(0x424)](_0x7ec5f8);}),this[_0x54f465(0x2a4)]&&this[_0x54f465(0x419)](),this[_0x54f465(0x1f4)]&&_0x55f31d[_0x54f465(0x2b8)]&&(_0x55f31d[0x0]['baseRev']=this['_getCurrentRevision']());let _0x4df7c7;if(this['_awaitingChangeset']&&_0xcdd795[_0x54f465(0x2b8)]!==0x0)_0x4df7c7=this[_0x54f465(0x2ff)][_0x54f465(0x2b7)](q,this[_0x54f465(0x4bd)],this[_0x54f465(0x315)],_0x55f31d[0x0],_0xcdd795,this[_0x54f465(0x352)]);else{if(this[_0x54f465(0x1f4)]&&_0xcdd795[_0x54f465(0x2b8)]===0x0)_0x55f31d[0x0][_0x54f465(0x420)]=this[_0x54f465(0x326)](),_0x4df7c7=this[_0x54f465(0x2ff)][_0x54f465(0x2b7)](Q,this[_0x54f465(0x4bd)],this[_0x54f465(0x315)],_0x55f31d[0x0],this[_0x54f465(0x352)]);else{if(_0xcdd795[_0x54f465(0x2b8)]!==0x0){const _0x3267e7=this[_0x54f465(0x2ff)]['createInstance'](X,this[_0x54f465(0x4bd)],this[_0x54f465(0x315)],_0xcdd795,this[_0x54f465(0x352)]);_0x3267e7['_schedule'](),_0x4df7c7=_0x3267e7;}else _0x4df7c7=this['_injector']['createInstance'](pe,this[_0x54f465(0x4bd)],this[_0x54f465(0x315)],this[_0x54f465(0x352)]);}}return _0x4df7c7[_0x54f465(0x23f)](),_0x4df7c7;}catch(_0x18d319){return this[_0x54f465(0x431)][_0x54f465(0x3bd)](_0x54f465(0x243),'failed\x20to\x20apply\x20missed\x20changesets!',_0x18d319),this['_injector']['createInstance'](ee,this[_0x54f465(0x4bd)],this[_0x54f465(0x315)],this[_0x54f465(0x1f4)],this[_0x54f465(0x227)],this['_handler'],!0x1);}}[_0x4710e8(0x411)](){const _0x3b2c35=_0x4710e8;throw new Error(_0x3b2c35(0x49c));}[_0x4710e8(0x497)](_0x3ad826){const _0x291140=_0x4710e8;return this[_0x291140(0x227)][_0x291140(0x372)](_0x3ad826),this;}[_0x4710e8(0x213)](_0x4ccc4d){const _0xd477fa=_0x4710e8;return this[_0xd477fa(0x534)][_0xd477fa(0x372)](_0x4ccc4d),this;}[_0x4710e8(0x50d)](_0x437a2f){const _0xa43cb0=_0x4710e8;if(this[_0xa43cb0(0x1f4)])return this[_0xa43cb0(0x2a4)]=this[_0xa43cb0(0x1f4)],this[_0xa43cb0(0x1f4)]=null,this;throw new Error(_0xa43cb0(0x458));}[_0x4710e8(0x554)](_0x56ce92){const _0x3f2daf=_0x4710e8;return this['_onConflict'](!!(_0x56ce92!=null&&_0x56ce92[_0x3f2daf(0x377)]));}[_0x4710e8(0x4bf)](){const _0x1466a6=_0x4710e8;return this[_0x1466a6(0x2ff)][_0x1466a6(0x2b7)](te,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x1466a6(0x227)],this[_0x1466a6(0x352)]);}['toggleOnline'](){return this;}[_0x4710e8(0x385)](_0x258d24){const _0x26ef09=_0x4710e8;return this[_0x26ef09(0x2ff)][_0x26ef09(0x2b7)](ee,this[_0x26ef09(0x4bd)],this['type'],this[_0x26ef09(0x1f4)],this[_0x26ef09(0x227)],this[_0x26ef09(0x352)],_0x258d24);}};B=_e([m(0x7,_0x296e7f(_0x8b88ea)),m(0x8,_0x296e7f(_0x1f5713)),m(0x9,_0x296e7f(w)),m(0xa,_0x1c9d2e),m(0xb,_0x3619ab),m(0xc,_0xf0383c),m(0xd,_0x5184af)],B);function Fs(_0x3989ec,_0x54a8ae,_0x32e677,_0x2670ea,_0x808b53,_0x5304af){const _0x323dc9=_0x4710e8;return _0x2670ea&&_0x808b53['length']?_0x3989ec['createInstance'](q,_0x54a8ae,_0x32e677,_0x2670ea,_0x808b53,_0x5304af):_0x2670ea?_0x3989ec[_0x323dc9(0x2b7)](Q,_0x54a8ae,_0x32e677,_0x2670ea,_0x5304af):_0x808b53[_0x323dc9(0x2b8)]?_0x3989ec[_0x323dc9(0x2b7)](X,_0x54a8ae,_0x32e677,_0x808b53,_0x5304af):_0x3989ec[_0x323dc9(0x2b7)](pe,_0x54a8ae,_0x32e677,_0x5304af);}var Tr=Object['defineProperty'],Rr=Object['getOwnPropertyDescriptor'],Wt=(_0x43d08b,_0x4a385f,_0x245b77,_0xdcb281)=>{const _0x2f1869=_0x4710e8;for(var _0x17f21a=_0xdcb281>0x1?void 0x0:_0xdcb281?Rr(_0x4a385f,_0x245b77):_0x4a385f,_0x2a31de=_0x43d08b[_0x2f1869(0x2b8)]-0x1,_0x1fb79d;_0x2a31de>=0x0;_0x2a31de--)(_0x1fb79d=_0x43d08b[_0x2a31de])&&(_0x17f21a=(_0xdcb281?_0x1fb79d(_0x4a385f,_0x245b77,_0x17f21a):_0x1fb79d(_0x17f21a))||_0x17f21a);return _0xdcb281&&_0x17f21a&&Tr(_0x4a385f,_0x245b77,_0x17f21a),_0x17f21a;},p=(_0xbfdfc,_0x47fda7)=>(_0x7c2402,_0x33886c)=>_0x47fda7(_0x7c2402,_0x33886c,_0xbfdfc);let qe=class extends _0x25d3de{constructor(_0x2d6411,_0x39b5a6,_0x468832,_0xbc3c74,_0x59ac93,_0x109c3b,_0x41578b,_0x2d085e,_0x4f2cc8,_0x2c0bde,_0x5a0c88,_0x28f9c9,_0x9bb730){const _0x4acc08=_0x4710e8;super(),l(this,_0x4acc08(0x50c),new _0x591af7(null)),l(this,_0x4acc08(0x3cb),this[_0x4acc08(0x50c)]['asObservable']()),l(this,_0x4acc08(0x2ae)),l(this,_0x4acc08(0x486),!0x1),l(this,_0x4acc08(0x28a),''),l(this,_0x4acc08(0x48f),0x0),l(this,'status$',this[_0x4acc08(0x3cb)][_0x4acc08(0x2cf)](_0x151543(_0x2d63ea=>_0x2d63ea?_0x2d63ea[_0x4acc08(0x37c)]:P['OFFLINE']),_0x48ce07(0x1))),l(this,_0x4acc08(0x312),!0x1),l(this,_0x4acc08(0x462),[]),(this['unitID']=_0x2d6411,this['session']=_0x39b5a6,this['_type']=_0x468832,this[_0x4acc08(0x2ff)]=_0xbc3c74,this[_0x4acc08(0x46d)]=_0x59ac93,this[_0x4acc08(0x27b)]=_0x109c3b,this[_0x4acc08(0x555)]=_0x41578b,this[_0x4acc08(0x43d)]=_0x2d085e,this[_0x4acc08(0x431)]=_0x4f2cc8,this[_0x4acc08(0x436)]=_0x2c0bde,this[_0x4acc08(0x2f3)]=_0x5a0c88,this['_permissionService']=_0x28f9c9,this['_singleActiveUnitService']=_0x9bb730);}get[_0x4710e8(0x485)](){return this['_state'];}async[_0x4710e8(0x217)](){const _0x38abc0=_0x4710e8;if(this[_0x38abc0(0x485)])throw new Error(_0x38abc0(0x43a));await this['_init']();}['pauseCollaboration'](){const _0x1dcbe1=_0x4710e8;return this[_0x1dcbe1(0x486)]=!0x0,_0xf2106b(()=>{const _0x16f9f1=_0x1dcbe1;this[_0x16f9f1(0x486)]=!0x1,this[_0x16f9f1(0x366)]();});}[_0x4710e8(0x55a)](_0x5b1be4){const _0x10883e=_0x4710e8;this[_0x10883e(0x2ae)]=_0x5b1be4,this[_0x10883e(0x50c)]['next'](_0x5b1be4);}async[_0x4710e8(0x20c)](){const _0x30e039=_0x4710e8;var _0x1f6c6d;this[_0x30e039(0x55a)](await this[_0x30e039(0x27a)]()),this[_0x30e039(0x371)]&&((_0x1f6c6d=this[_0x30e039(0x371)])==null||_0x1f6c6d['editingUnit'](this['unitID']),this[_0x30e039(0x333)](this[_0x30e039(0x371)][_0x30e039(0x1ed)](this[_0x30e039(0x4bd)])['subscribe'](_0x292e79=>{const _0x17b1c9=_0x30e039;this[_0x17b1c9(0x431)][_0x17b1c9(0x34c)](_0x17b1c9(0x2b1),_0x17b1c9(0x3c5),_0x292e79),_0x292e79===Bs[_0x17b1c9(0x4df)]?(this[_0x17b1c9(0x2f3)][_0x17b1c9(0x48b)]({'content':this[_0x17b1c9(0x555)]['t'](_0x17b1c9(0x43f)),'type':_0x348a45['Warning']}),this['_permissionService'][_0x17b1c9(0x46e)](new _0x371e2e(this[_0x17b1c9(0x4bd)])['id'],!0x1)):this['_permissionService'][_0x17b1c9(0x46e)](new _0x371e2e(this[_0x17b1c9(0x4bd)])['id'],!0x0);})));let _0x130442=!0x1;return this[_0x30e039(0x333)](this[_0x30e039(0x205)][_0x30e039(0x252)][_0x30e039(0x332)](_0x21fcd5=>{const _0x7a929=_0x30e039;_0x21fcd5===Y[_0x7a929(0x40c)]?this[_0x7a929(0x511)](_0x130442):_0x21fcd5===Y[_0x7a929(0x210)]&&(_0x130442=!0x0,this[_0x7a929(0x1d8)]());})),this[_0x30e039(0x333)](this[_0x30e039(0x205)][_0x30e039(0x297)][_0x30e039(0x332)](_0x1f4970=>{const _0x4d1d0f=_0x30e039;try{switch(_0x1f4970[_0x4d1d0f(0x280)]){case _0x5ec94c[_0x4d1d0f(0x29c)]:{this[_0x4d1d0f(0x2ec)](_0x577952(_0x1f4970[_0x4d1d0f(0x543)]));break;}case _0x5ec94c[_0x4d1d0f(0x291)]:{this[_0x4d1d0f(0x2e4)](_0x1f4970['data']);break;}case _0x5ec94c[_0x4d1d0f(0x2da)]:{this[_0x4d1d0f(0x31a)]();break;}case _0x5ec94c['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x1f4970[_0x4d1d0f(0x543)][_0x4d1d0f(0x364)][_0x4d1d0f(0x354)](_0x5099fb=>_0x577952(_0x5099fb)));break;}case _0x5ec94c['PERMISSION_REJ']:this[_0x4d1d0f(0x31a)]({'isPermissionRej':!0x0});}}catch(_0x481528){throw console[_0x4d1d0f(0x3bd)]('Error\x20on\x20receiving\x20event',_0x481528),_0x481528;}})),this['_state'];}[_0x4710e8(0x25b)](){const _0x163568=_0x4710e8;this[_0x163568(0x312)]=!0x1;}[_0x4710e8(0x30c)](){const _0x588e03=_0x4710e8;if(this[_0x588e03(0x312)])throw new Error(_0x588e03(0x345));this['_transitionLocked']=!0x0;}[_0x4710e8(0x4fa)](_0x483155){const _0x521507=_0x4710e8;this['_lockTransition'](),this['_updateState'](this['_state'][_0x521507(0x497)](_0x483155)),this[_0x521507(0x25b)]();}[_0x4710e8(0x2ec)](_0x443c9e){const _0x166c3e=_0x4710e8;if(!(_0x443c9e[_0x166c3e(0x2b2)]<=this[_0x166c3e(0x43d)][_0x166c3e(0x375)](this[_0x166c3e(0x4bd)]))){if(this[_0x166c3e(0x486)]){this[_0x166c3e(0x462)][_0x166c3e(0x372)](_0x443c9e);return;}this[_0x166c3e(0x446)](_0x443c9e);}}[_0x4710e8(0x366)](){const _0x387ad1=_0x4710e8;this[_0x387ad1(0x462)][_0x387ad1(0x2b9)](_0x138911=>this['_applyRemoteChangeset'](_0x138911)),this[_0x387ad1(0x462)]=[];}[_0x4710e8(0x446)](_0x268a43){const _0x1fcad2=_0x4710e8,_0x4d87a2=this['_compressMutationService']['interceptor'][_0x1fcad2(0x386)](this[_0x1fcad2(0x27b)][_0x1fcad2(0x239)][_0x1fcad2(0x230)]()[_0x1fcad2(0x1ef)])(_0x268a43[_0x1fcad2(0x49b)],null)||_0x268a43[_0x1fcad2(0x49b)],_0x176eab={..._0x268a43,'mutations':_0x4d87a2};this[_0x1fcad2(0x30c)](),this[_0x1fcad2(0x55a)](this[_0x1fcad2(0x2ae)][_0x1fcad2(0x213)](_0x176eab)),this[_0x1fcad2(0x25b)]();}[_0x4710e8(0x2e4)](_0x136251){const _0x4e7432=_0x4710e8;this['_lockTransition'](),this[_0x4e7432(0x55a)](this[_0x4e7432(0x2ae)][_0x4e7432(0x50d)](_0x136251)),this[_0x4e7432(0x25b)]();}[_0x4710e8(0x31a)](_0x2d9437){const _0x14b9a4=_0x4710e8;this[_0x14b9a4(0x30c)](),this[_0x14b9a4(0x55a)](this[_0x14b9a4(0x2ae)][_0x14b9a4(0x554)](_0x2d9437)),this['_unlockTransition']();}[_0x4710e8(0x4e0)](_0x1fd401){const _0x357c17=_0x4710e8;if(!(this[_0x357c17(0x2ae)]instanceof B))throw new TypeError(_0x357c17(0x22c));const _0x27458a=_0x1fd401[_0x357c17(0x354)](_0x4727a5=>{const _0x145532=_0x357c17,_0x1435ea=this[_0x145532(0x27b)][_0x145532(0x239)]['fetchThroughInterceptors'](this[_0x145532(0x27b)][_0x145532(0x239)][_0x145532(0x230)]()[_0x145532(0x1ef)])(_0x4727a5[_0x145532(0x49b)],null)||_0x4727a5['mutations'];return{..._0x4727a5,'mutations':_0x1435ea};});this[_0x357c17(0x30c)](),this['_updateState'](this['_state'][_0x357c17(0x47f)](_0x27458a)),this['_unlockTransition']();}['_toggleOffline'](){const _0x2f8c95=_0x4710e8;this[_0x2f8c95(0x30c)](),this[_0x2f8c95(0x55a)](this[_0x2f8c95(0x2ae)][_0x2f8c95(0x4bf)]()),this['_unlockTransition']();}[_0x4710e8(0x511)](_0x1b6800=!0x1){const _0x390ff0=_0x4710e8;this[_0x390ff0(0x30c)](),this['_updateState'](this[_0x390ff0(0x2ae)][_0x390ff0(0x3fb)]()),this[_0x390ff0(0x25b)]();const _0x5a7de8=this[_0x390ff0(0x2ae)];_0x1b6800&&_0x5a7de8 instanceof pe&&(this[_0x390ff0(0x30c)](),this[_0x390ff0(0x55a)](_0x5a7de8['fetchMiss']()),this[_0x390ff0(0x25b)]());}async[_0x4710e8(0x27a)](){return new Promise(_0x9253e0=>{const _0x4b0d7e=_0x34d8;this['session'][_0x4b0d7e(0x252)][_0x4b0d7e(0x2cf)](_0x5d09a1(0x1))['subscribe'](async _0x4020f1=>{const _0x7340=_0x4b0d7e;_0x9253e0(await this[_0x7340(0x2eb)](_0x4020f1===Y[_0x7340(0x40c)]));});});}[_0x4710e8(0x393)](){const _0x1fa1c7=_0x4710e8,_0xa23850=this[_0x1fa1c7(0x4bd)];return{'onStateChange':(_0x3e0f3d,_0x2c4035)=>{const _0x419966=_0x1fa1c7;if(_0x3e0f3d!==this['_state'])throw new Error(_0x419966(0x1dc)+_0x3e0f3d['status']+_0x419966(0x3f6)+_0x2c4035[_0x419966(0x37c)]+'\x0aCurrent:\x20'+this[_0x419966(0x2ae)][_0x419966(0x37c)]);this[_0x419966(0x55a)](_0x2c4035);},'onSendChangeset':_0xbdf870=>{const _0x376696=_0x1fa1c7;_0xbdf870[_0x376696(0x495)]||(_0xbdf870[_0x376696(0x495)]=this[_0x376696(0x28a)],_0xbdf870[_0x376696(0x4fc)]=++this[_0x376696(0x48f)]);const _0x2f8b7a={'eventID':_0x5ec94c[_0x376696(0x3a8)],'data':{'unitID':_0xbdf870[_0x376696(0x4bd)],'unitType':this[_0x376696(0x337)],'changeset':_0xbdf870,'memberID':this[_0x376696(0x205)][_0x376696(0x329)]()}};this['session']['send'](_0x2f8b7a,this[_0x376696(0x4bd)]);},'onMissingChangesets':({from:_0x22d574,to:_0x529366})=>{const _0x4e7afb=_0x1fa1c7;this[_0x4e7afb(0x431)][_0x4e7afb(0x34c)]('[CollaborationEntity]',_0x4e7afb(0x42d)+_0x22d574+'\x20to\x20'+_0x529366);const _0x15c8bc={'eventID':_0x5ec94c[_0x4e7afb(0x220)],'data':{'unitID':_0xa23850,'unitType':this['_type'],'from':_0x22d574,'to':_0x529366}};this[_0x4e7afb(0x205)]['send'](_0x15c8bc,this[_0x4e7afb(0x4bd)]);}};}async[_0x4710e8(0x2eb)](_0x2dafa9){const _0x32a9e5=_0x4710e8;var _0x273454,_0x3fecb7;const _0x3cab67=await this[_0x32a9e5(0x46d)][_0x32a9e5(0x1d9)](this[_0x32a9e5(0x4bd)]),_0xe1d8b=(_0x273454=_0x3cab67==null?void 0x0:_0x3cab67['mutations'])!=null?_0x273454:[],_0x23b68c=(_0x3fecb7=_0x3cab67==null?void 0x0:_0x3cab67[_0x32a9e5(0x476)])!=null?_0x3fecb7:null,_0x144e3c=!!(_0x23b68c!=null&&_0x23b68c[_0x32a9e5(0x495)])&&!!(_0x23b68c!=null&&_0x23b68c['reqId']);this[_0x32a9e5(0x28a)]=_0x144e3c?_0x23b68c[_0x32a9e5(0x495)]:ir(),this[_0x32a9e5(0x48f)]=_0x144e3c?_0x23b68c['reqId']:0x0;const _0x2905a3=this[_0x32a9e5(0x4bd)];try{this[_0x32a9e5(0x2c3)](_0x23b68c,_0xe1d8b);}catch(_0x4aa8e3){this[_0x32a9e5(0x431)][_0x32a9e5(0x3bd)](_0x4aa8e3);}const _0x4c04ed=this[_0x32a9e5(0x393)]();if(_0x2dafa9){const _0x597ade=Fs(this[_0x32a9e5(0x2ff)],_0x2905a3,this[_0x32a9e5(0x337)],_0x23b68c,_0xe1d8b,_0x4c04ed);return _0x597ade instanceof X?_0x597ade[_0x32a9e5(0x54a)]():(_0x597ade instanceof q||_0x597ade instanceof Q)&&_0x597ade[_0x32a9e5(0x411)](),_0x597ade;}return this['_injector']['createInstance'](te,_0x2905a3,this['_type'],_0x23b68c,_0xe1d8b,_0x4c04ed);}[_0x4710e8(0x2c3)](_0x359dd4,_0x238373){const _0xadc8a7=_0x4710e8;var _0x2f24dc,_0x4a71a4;const _0x561f70=this[_0xadc8a7(0x27b)][_0xadc8a7(0x239)][_0xadc8a7(0x386)](this['_compressMutationService'][_0xadc8a7(0x239)][_0xadc8a7(0x230)]()[_0xadc8a7(0x1ef)]);(_0x2f24dc=_0x561f70((_0x359dd4==null?void 0x0:_0x359dd4['mutations'])||[],null))==null||_0x2f24dc['forEach'](_0x41dab6=>this[_0xadc8a7(0x436)][_0xadc8a7(0x55e)](_0x41dab6['id'],_0x41dab6[_0xadc8a7(0x3eb)])),(_0x4a71a4=_0x561f70(_0x238373||[],null))==null||_0x4a71a4[_0xadc8a7(0x2b9)](_0x3119eb=>this['_commandService'][_0xadc8a7(0x55e)](_0x3119eb['id'],_0x3119eb['params']));}};qe=Wt([p(0x3,_0x296e7f(_0x8b88ea)),p(0x4,_0x296e7f(w)),p(0x5,_0x296e7f(_0xec2e0d)),p(0x6,_0x296e7f(_0x4224a5)),p(0x7,_0x296e7f(_0x1f5713)),p(0x8,_0x1c9d2e),p(0x9,_0x3619ab),p(0xa,_0x47eac1),p(0xb,_0x561034),p(0xc,_0x110b49(tt))],qe);let Tt=class extends qe{constructor(_0x3131f2,_0x43e45a,_0x4d3154,_0x5b065a,_0x31b8b9,_0x53df76,_0x2524ea,_0x5944d4,_0x35f7de,_0x48e92c,_0x48558a,_0x32c320,_0x405fa2,_0x351af1,_0x42593c,_0x44f9e1,_0x2ff1f3){const _0x577f53=_0x4710e8;super(_0x3131f2,_0x4d3154,_0x43e45a,_0x5b065a,_0x31b8b9,_0x53df76,_0x2524ea,_0x5944d4,_0x405fa2,_0x351af1,_0x42593c,_0x44f9e1,_0x2ff1f3),this[_0x577f53(0x4bd)]=_0x3131f2,this['type']=_0x43e45a,this['_docStateChangeManagerService']=_0x35f7de,this['_docTransformIMECacheService']=_0x48e92c,this[_0x577f53(0x359)]=_0x48558a,this[_0x577f53(0x284)]=_0x32c320;}[_0x4710e8(0x393)](){const _0x39b327=_0x4710e8,_0x46824b=super[_0x39b327(0x393)]();return _0x46824b[_0x39b327(0x242)]=_0x56cfa=>this[_0x39b327(0x304)]['transformIMECache'](_0x56cfa),_0x46824b[_0x39b327(0x37b)]=_0x107b24=>this[_0x39b327(0x359)]['transformSelections'](_0x107b24),_0x46824b[_0x39b327(0x50e)]=_0x4c6e50=>this['_docSyncEditingCollabCursorService'][_0x39b327(0x28d)](_0x4c6e50),_0x46824b['onTransformRemoteChangesetByIMECache']=_0x1bf55b=>this['_docTransformIMECacheService'][_0x39b327(0x2f1)](_0x1bf55b),_0x46824b;}async['_init'](){const _0x34db84=_0x4710e8,_0x12a1ac=await super[_0x34db84(0x20c)]();return this[_0x34db84(0x3f3)]['docStateChange$'][_0x34db84(0x2cf)](_0x5208f4(this['dispose$']))['subscribe'](_0x461603=>{const _0x46ad26=_0x34db84;if(_0x461603==null)return;const {unitId:_0x2c320f,redoState:_0x3924ba,commandId:_0x23e905}=_0x461603;if(_0x2c320f!==this[_0x46ad26(0x4bd)])return;const _0x563390={'id':_0x23e905,'type':_0x47f19b[_0x46ad26(0x47c)],'params':{'unitId':_0x2c320f,'actions':_0x3924ba[_0x46ad26(0x503)],'textRanges':null}};this[_0x46ad26(0x4fa)](_0x563390);}),_0x12a1ac;}};Tt=Wt([p(0x3,_0x296e7f(_0x8b88ea)),p(0x4,_0x296e7f(w)),p(0x5,_0x296e7f(_0xec2e0d)),p(0x6,_0x296e7f(_0x4224a5)),p(0x7,_0x296e7f(_0x1f5713)),p(0x8,_0x296e7f(_0x162506)),p(0x9,_0x296e7f(Ye)),p(0xa,_0x296e7f(Xe)),p(0xb,_0x296e7f(Ft)),p(0xc,_0x1c9d2e),p(0xd,_0x3619ab),p(0xe,_0x47eac1),p(0xf,_0x561034),p(0x10,_0x110b49(tt))],Tt);let Rt=class extends qe{constructor(_0x7379e8,_0x224edd,_0x2c0125,_0x15d8cb,_0x4f4a8a,_0x14458e,_0x744cd9,_0x2237a4,_0x59235a,_0x50ec7f,_0x3a07a0,_0x20ce16,_0x30b56c,_0x46191c){const _0x8984da=_0x4710e8;super(_0x7379e8,_0x2c0125,_0x224edd,_0x15d8cb,_0x4f4a8a,_0x14458e,_0x744cd9,_0x2237a4,_0x50ec7f,_0x3a07a0,_0x20ce16,_0x30b56c,_0x46191c),this[_0x8984da(0x4bd)]=_0x7379e8,this[_0x8984da(0x315)]=_0x224edd,this[_0x8984da(0x418)]=_0x59235a;}['_createHandler'](){const _0x1d81c6=_0x4710e8,_0x599e4a=super[_0x1d81c6(0x393)]();return _0x599e4a[_0x1d81c6(0x37b)]=_0x123906=>this['_sheetTransformSelectionsService'][_0x1d81c6(0x24e)](_0x123906),_0x599e4a;}async[_0x4710e8(0x20c)](){const _0x28562a=_0x4710e8,_0x56696f=await super[_0x28562a(0x20c)]();return this[_0x28562a(0x333)](this['_commandService'][_0x28562a(0x3b5)]((_0x17697a,_0x28eb7c)=>{const _0x21d70b=_0x28562a;if(_0x17697a[_0x21d70b(0x315)]!==_0x47f19b['MUTATION']||_0x28eb7c!=null&&_0x28eb7c[_0x21d70b(0x488)]||_0x28eb7c!=null&&_0x28eb7c['onlyLocal'])return;const _0x48e8b9=_0x17697a['params'];if((_0x48e8b9==null?void 0x0:_0x48e8b9[_0x21d70b(0x295)])!==this[_0x21d70b(0x4bd)])return;const _0x32d332=_0x17697a,_0x9e5ec0=this[_0x21d70b(0x27b)]['interceptor'][_0x21d70b(0x386)](this[_0x21d70b(0x27b)][_0x21d70b(0x239)][_0x21d70b(0x230)]()[_0x21d70b(0x228)])([_0x32d332],null)||[_0x32d332];this[_0x21d70b(0x4fa)](_0x9e5ec0[0x0]);})),_0x56696f;}};Rt=Wt([p(0x3,_0x296e7f(_0x8b88ea)),p(0x4,_0x296e7f(w)),p(0x5,_0x296e7f(_0xec2e0d)),p(0x6,_0x296e7f(_0x4224a5)),p(0x7,_0x296e7f(_0x1f5713)),p(0x8,_0x296e7f(Ke)),p(0x9,_0x1c9d2e),p(0xa,_0x3619ab),p(0xb,_0x47eac1),p(0xc,_0x561034),p(0xd,_0x110b49(tt))],Rt);var Or=Object['defineProperty'],Dr=Object[_0x4710e8(0x4aa)],wr=(_0x4c36bb,_0x2c056e,_0x489c98,_0x52e8ac)=>{const _0x20f542=_0x4710e8;for(var _0x5b133a=_0x52e8ac>0x1?void 0x0:_0x52e8ac?Dr(_0x2c056e,_0x489c98):_0x2c056e,_0x29ffbc=_0x4c36bb[_0x20f542(0x2b8)]-0x1,_0x548d6c;_0x29ffbc>=0x0;_0x29ffbc--)(_0x548d6c=_0x4c36bb[_0x29ffbc])&&(_0x5b133a=(_0x52e8ac?_0x548d6c(_0x2c056e,_0x489c98,_0x5b133a):_0x548d6c(_0x5b133a))||_0x5b133a);return _0x52e8ac&&_0x5b133a&&Or(_0x2c056e,_0x489c98,_0x5b133a),_0x5b133a;},_t=(_0x4ba2a2,_0x34e5c7)=>(_0x1412d2,_0x2cce05)=>_0x34e5c7(_0x1412d2,_0x2cce05,_0x4ba2a2);let Le=class extends _0x25d3de{constructor(_0x511542,_0x178d30,_0x32717e){const _0x226a1e=_0x4710e8;super(),l(this,'_entities',new Map()),l(this,_0x226a1e(0x416),new _0x4dd9a0()),(this[_0x226a1e(0x2ff)]=_0x511542,this[_0x226a1e(0x201)]=_0x178d30,this[_0x226a1e(0x1d4)]=_0x32717e,this[_0x226a1e(0x20c)]());}[_0x4710e8(0x3db)](){const _0x2f1fb5=_0x4710e8;super['dispose'](),this['_entities'][_0x2f1fb5(0x2b9)](_0x2fa7d9=>_0x2fa7d9['dispose']()),this[_0x2f1fb5(0x4e1)][_0x2f1fb5(0x2be)]();}[_0x4710e8(0x504)](_0x10796c){const _0x24eedd=_0x4710e8;var _0x6ee47f;return(_0x6ee47f=this['_entities'][_0x24eedd(0x376)](_0x10796c))!=null?_0x6ee47f:null;}[_0x4710e8(0x39e)](_0x430a26){const _0x47d7c8=_0x4710e8,_0x5838f6=this[_0x47d7c8(0x504)](_0x430a26);return _0x5838f6?_0x1e4ae2(_0x5838f6):this[_0x47d7c8(0x416)][_0x47d7c8(0x2cf)](_0x410577(_0x337393=>_0x337393[_0x47d7c8(0x4bd)]===_0x430a26));}[_0x4710e8(0x20c)](){const _0x5ec802=_0x4710e8;this[_0x5ec802(0x1d4)]['getTypeOfUnitAdded$'](_0x1cea4a[_0x5ec802(0x3d0)])[_0x5ec802(0x2cf)](_0x5208f4(this[_0x5ec802(0x24c)]),_0x3cb8ff(0x10))['subscribe'](async _0x1c0e8c=>{const _0xc79246=_0x5ec802,_0x468d19=_0x1c0e8c[_0xc79246(0x3dc)](),_0x393018=await this[_0xc79246(0x27c)](_0x468d19,k[_0xc79246(0x3d0)]);this[_0xc79246(0x4e1)][_0xc79246(0x20f)](_0x468d19,_0x393018);}),this[_0x5ec802(0x1d4)][_0x5ec802(0x477)](_0x1cea4a[_0x5ec802(0x49d)])[_0x5ec802(0x2cf)](_0x5208f4(this[_0x5ec802(0x24c)]),_0x3cb8ff(0x10))['pipe'](_0x410577(_0x5e0307=>!_0x5e0307[_0x5ec802(0x3dc)]()[_0x5ec802(0x265)]('__')))[_0x5ec802(0x332)](async _0x599570=>{const _0x190bf9=_0x5ec802,_0x371455=_0x599570[_0x190bf9(0x3dc)](),_0x2fb26e=await this[_0x190bf9(0x27c)](_0x371455,k['UNIVER_DOC']);this[_0x190bf9(0x4e1)][_0x190bf9(0x20f)](_0x371455,_0x2fb26e);}),_0x1987ea(this[_0x5ec802(0x1d4)][_0x5ec802(0x4b3)](_0x1cea4a[_0x5ec802(0x3d0)]),this['_univerInstanceService'][_0x5ec802(0x4b3)](_0x1cea4a['UNIVER_DOC']))[_0x5ec802(0x2cf)](_0x5208f4(this[_0x5ec802(0x24c)]))[_0x5ec802(0x332)](_0x22a029=>{const _0x5592db=_0x5ec802,_0x34459b=_0x22a029[_0x5592db(0x3dc)](),_0x35711b=this[_0x5592db(0x4e1)][_0x5592db(0x376)](_0x34459b);_0x35711b&&(_0x35711b[_0x5592db(0x3db)](),this[_0x5592db(0x4e1)][_0x5592db(0x560)](_0x34459b));});}async['_startCollaboration'](_0x3d9551,_0xf29b9c){const _0x5d6be4=_0x4710e8,_0x276fed=await this[_0x5d6be4(0x201)][_0x5d6be4(0x544)](_0x3d9551),_0x30e42f=this['_injector'][_0x5d6be4(0x2b7)](this[_0x5d6be4(0x526)](_0xf29b9c),_0x3d9551,_0xf29b9c,_0x276fed);return await _0x30e42f[_0x5d6be4(0x217)](),this[_0x5d6be4(0x416)][_0x5d6be4(0x2f0)](_0x30e42f),_0x30e42f;}['_getCtorByUniverType'](_0x3603d7){const _0x6a5bb7=_0x4710e8;switch(_0x3603d7){case k[_0x6a5bb7(0x49d)]:return Tt;case k['UNIVER_SHEET']:return Rt;default:throw new Error(_0x6a5bb7(0x510)+_0x3603d7);}}};Le=wr([_t(0x0,_0x296e7f(_0x8b88ea)),_t(0x1,_0x296e7f(he)),_t(0x2,_0x2e8a91)],Le);const fs=[_0x4710e8(0x272),_0x4710e8(0x226),_0x4710e8(0x339),_0x4710e8(0x373),_0x4710e8(0x2d2),_0x4710e8(0x455)];class Gt extends _0x276a39{constructor(){const _0x53f588=_0x4710e8;super(...arguments),l(this,_0x53f588(0x267),new Map()),l(this,_0x53f588(0x316),0x0);}[_0x4710e8(0x535)](_0x45e32b){const _0x2d6db5=_0x4710e8;if(this['_assignedColors'][_0x2d6db5(0x277)](_0x45e32b))return this[_0x2d6db5(0x267)]['get'](_0x45e32b);const _0x32035d=fs[this[_0x2d6db5(0x316)]];return this[_0x2d6db5(0x316)]=(this[_0x2d6db5(0x316)]+0x1)%fs[_0x2d6db5(0x2b8)],this[_0x2d6db5(0x267)][_0x2d6db5(0x20f)](_0x45e32b,_0x32035d),_0x32035d;}}var Pr=Object[_0x4710e8(0x49e)],yr=Object[_0x4710e8(0x4aa)],Ur=(_0x1cf18c,_0x49a7dd,_0x3f3851,_0x587f02)=>{const _0x3fa51b=_0x4710e8;for(var _0x2b7f70=_0x587f02>0x1?void 0x0:_0x587f02?yr(_0x49a7dd,_0x3f3851):_0x49a7dd,_0x17cd1f=_0x1cf18c[_0x3fa51b(0x2b8)]-0x1,_0x2e24d6;_0x17cd1f>=0x0;_0x17cd1f--)(_0x2e24d6=_0x1cf18c[_0x17cd1f])&&(_0x2b7f70=(_0x587f02?_0x2e24d6(_0x49a7dd,_0x3f3851,_0x2b7f70):_0x2e24d6(_0x2b7f70))||_0x2b7f70);return _0x587f02&&_0x2b7f70&&Pr(_0x49a7dd,_0x3f3851,_0x2b7f70),_0x2b7f70;},ie=(_0x7a8b4d,_0x262784)=>(_0x3106ea,_0x2cc7be)=>_0x262784(_0x3106ea,_0x2cc7be,_0x7a8b4d);function _0x34d8(_0x415b11,_0x4b7d9a){const _0x533364=_0x5333();return _0x34d8=function(_0x34d804,_0xc6cacd){_0x34d804=_0x34d804-0x1d1;let _0x48aaef=_0x533364[_0x34d804];return _0x48aaef;},_0x34d8(_0x415b11,_0x4b7d9a);}const Nr=0x12c,Mr=0x64;let Ot=class extends _0x25d3de{constructor(_0x28895e,_0x6363f6,_0x115490,_0x3b04db,_0x2ff5be,_0x36c0f9,_0x4a2d3f,_0x4a50f5,_0x5ae006){const _0x533fc1=_0x4710e8;super(),l(this,_0x533fc1(0x565),!0x1),l(this,_0x533fc1(0x20c),!0x1),l(this,_0x533fc1(0x2e8),new _0x591af7(new Map())),l(this,_0x533fc1(0x405),this[_0x533fc1(0x2e8)]['asObservable']()),l(this,_0x533fc1(0x472),new _0x591af7([])),l(this,_0x533fc1(0x20a),this[_0x533fc1(0x472)]['pipe'](_0x633b46(Nr))),l(this,'_updateLocalCursor',_0xa63c93(_0x5e5605=>{const _0x176172=_0x533fc1,_0xa1371d={'eventID':_0x5ec94c['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x176172(0x3b3)][_0x176172(0x329)](),'selection':Vs(_0x5e5605)}};this['_session'][_0x176172(0x4a1)](_0xa1371d,this[_0x176172(0x4bd)]);},Mr)),(this[_0x533fc1(0x4bd)]=_0x28895e,this[_0x533fc1(0x3b3)]=_0x6363f6,this[_0x533fc1(0x2ff)]=_0x115490,this[_0x533fc1(0x46c)]=_0x3b04db,this[_0x533fc1(0x268)]=_0x2ff5be,this['_syncEditingCollabCursorService']=_0x36c0f9,this[_0x533fc1(0x340)]=_0x4a2d3f,this[_0x533fc1(0x1d4)]=_0x4a50f5,this[_0x533fc1(0x436)]=_0x5ae006);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x4710e8(0x2b3)](){const _0x56c4b4=_0x4710e8;return this[_0x56c4b4(0x472)][_0x56c4b4(0x429)]();}['dispose'](){const _0xd7c6ca=_0x4710e8;super['dispose'](),this[_0xd7c6ca(0x2e8)]['next'](new Map()),this[_0xd7c6ca(0x2e8)][_0xd7c6ca(0x307)](),this['_roomMembers$'][_0xd7c6ca(0x2f0)]([]),this['_roomMembers$'][_0xd7c6ca(0x307)]();}['init'](){const _0x27a4c4=_0x4710e8;this[_0x27a4c4(0x20c)]||(this[_0x27a4c4(0x20c)]=!0x0,this[_0x27a4c4(0x3b3)][_0x27a4c4(0x252)][_0x27a4c4(0x2cf)](_0x5208f4(this[_0x27a4c4(0x24c)]))[_0x27a4c4(0x332)](_0x2f31d9=>{const _0x163bf0=_0x27a4c4;_0x2f31d9===Y[_0x163bf0(0x40c)]?this[_0x163bf0(0x511)]():this[_0x163bf0(0x1d8)]();}),this['_session']['event$'][_0x27a4c4(0x2cf)](_0x5208f4(this[_0x27a4c4(0x24c)]))[_0x27a4c4(0x332)](_0x3d4a54=>{const _0x297813=_0x27a4c4,_0x52f30a=_0x3d4a54[_0x297813(0x280)];_0x52f30a===_0x5ec94c[_0x297813(0x365)]&&this[_0x297813(0x23a)](_0x3d4a54),_0x52f30a===_0x5ec94c[_0x297813(0x3f0)]&&this[_0x297813(0x3c9)](_0x3d4a54);}),this[_0x27a4c4(0x333)](this[_0x27a4c4(0x436)][_0x27a4c4(0x3b5)](_0x3a5f32=>{const _0x4007bb=_0x27a4c4,_0x100181=_0x3a5f32[_0x4007bb(0x3eb)];_0x100181!=null&&this['_online']&&_0x3a5f32['id']===_0x13e72f['id']&&_0x100181[_0x4007bb(0x295)]===this['unitID']&&_0x100181[_0x4007bb(0x288)]===!0x1&&this['_updateLocalCursor'](_0x100181['ranges']);})),this[_0x27a4c4(0x3ed)]['collabCursorState$'][_0x27a4c4(0x2cf)](_0x5208f4(this[_0x27a4c4(0x24c)]))[_0x27a4c4(0x332)](_0xbbc5bd=>{const _0x149bdd=_0x27a4c4;if((_0xbbc5bd==null?void 0x0:_0xbbc5bd[_0x149bdd(0x4bd)])!==this[_0x149bdd(0x4bd)])return;const _0x382396={'eventID':_0x5ec94c[_0x149bdd(0x365)],'data':_0xbbc5bd};this[_0x149bdd(0x23a)](_0x382396);}),this['disposeWithMe'](this[_0x27a4c4(0x436)]['onCommandExecuted'](_0x19e435=>{const _0x474c58=_0x27a4c4;if(_0x19e435['params']==null)return;const _0x1a0444=_0x19e435['params'];if(_0x19e435['id']!==_0x121759['id']||_0x1a0444[_0x474c58(0x295)]!==this[_0x474c58(0x4bd)])return;const _0x8f2060={'id':'doc.mutation.rich-text-editing','params':_0x1a0444},_0x12ed23=this['cursorInfo'];for(const [_0x51fe73,_0x4aa7eb]of _0x12ed23){const _0x53a62e={'id':_0x474c58(0x22a),'params':{'unitId':this[_0x474c58(0x4bd)],'actions':null,'textRanges':_0x4aa7eb[_0x474c58(0x54f)]}},_0x390054=this[_0x474c58(0x340)][_0x474c58(0x3ef)](_0x8f2060,_0x53a62e,!0x1);if(_0x489b6f(_0x390054))throw _0x390054[_0x474c58(0x3bd)];_0x12ed23[_0x474c58(0x20f)](_0x51fe73,{..._0x4aa7eb,'ranges':_0x390054[_0x474c58(0x1e2)][_0x474c58(0x3eb)]['textRanges']});}queueMicrotask(()=>{const _0x33b4d2=_0x474c58;this[_0x33b4d2(0x2e8)][_0x33b4d2(0x2f0)](_0x12ed23);});})));}[_0x4710e8(0x23a)](_0x529582){const _0x4432eb=_0x4710e8;var _0x4214ea,_0x246697;const {memberID:_0xe9ba4a,selection:_0x55e028}=_0x529582[_0x4432eb(0x543)],_0x1fe230=mr(_0x55e028),_0x2dbaba=(_0x246697=(_0x4214ea=this[_0x4432eb(0x268)]['getMember'](this['unitID'],_0xe9ba4a))==null?void 0x0:_0x4214ea[_0x4432eb(0x3e2)])!=null?_0x246697:_0x4432eb(0x523),_0x15e9ed={'color':this[_0x4432eb(0x46c)][_0x4432eb(0x535)](_0xe9ba4a),'name':_0x2dbaba,'ranges':_0x1fe230},_0x22ac61=this['cursorInfo'];_0x22ac61[_0x4432eb(0x20f)](_0xe9ba4a,_0x15e9ed),this[_0x4432eb(0x2e8)][_0x4432eb(0x2f0)](_0x22ac61);}[_0x4710e8(0x3c9)](_0xdc711e){const _0x4a1e0b=_0x4710e8,{memberID:_0x4b39c9}=_0xdc711e[_0x4a1e0b(0x543)],_0x2d6754=this[_0x4a1e0b(0x2ab)];_0x2d6754[_0x4a1e0b(0x560)](_0x4b39c9),this[_0x4a1e0b(0x2e8)][_0x4a1e0b(0x2f0)](_0x2d6754);}[_0x4710e8(0x511)](){const _0x140df3=_0x4710e8;var _0x58ba52;if(this['_online']=!0x0,((_0x58ba52=this[_0x140df3(0x1d4)][_0x140df3(0x3b1)]())==null?void 0x0:_0x58ba52[_0x140df3(0x3dc)]())!==this['unitID'])return;const _0x25c262=this['_injector'][_0x140df3(0x376)](_0x5c4218)['getDocRanges']();Array[_0x140df3(0x30a)](_0x25c262)&&_0x25c262['length']>0x0&&this[_0x140df3(0x3ec)](_0x25c262);}['_toggleOffline'](){const _0x5e763c=_0x4710e8;this[_0x5e763c(0x565)]=!0x1;}};Ot=Ur([ie(0x2,_0x296e7f(_0x8b88ea)),ie(0x3,_0x296e7f(Gt)),ie(0x4,_0x296e7f(ce)),ie(0x5,_0x296e7f(Ft)),ie(0x6,_0x5184af),ie(0x7,_0x2e8a91),ie(0x8,_0x3619ab)],Ot);var Ar=Object['defineProperty'],Lr=Object['getOwnPropertyDescriptor'],$r=(_0x3de501,_0x306f09,_0x128352,_0x59e805)=>{for(var _0x11451d=_0x59e805>0x1?void 0x0:_0x59e805?Lr(_0x306f09,_0x128352):_0x306f09,_0x20e5c6=_0x3de501['length']-0x1,_0x30df67;_0x20e5c6>=0x0;_0x20e5c6--)(_0x30df67=_0x3de501[_0x20e5c6])&&(_0x11451d=(_0x59e805?_0x30df67(_0x306f09,_0x128352,_0x11451d):_0x30df67(_0x11451d))||_0x11451d);return _0x59e805&&_0x11451d&&Ar(_0x306f09,_0x128352,_0x11451d),_0x11451d;},me=(_0x4d1222,_0x5522ba)=>(_0x285578,_0x2b6c88)=>_0x5522ba(_0x285578,_0x2b6c88,_0x4d1222);const jr=0x12c,xr=0x64,Hr=()=>{let _0xec4b6a=[],_0x4b5c06=!0x1;return _0x5f40fc=>{_0xec4b6a['push'](_0x5f40fc),_0x4b5c06||(_0x4b5c06=!0x0,setTimeout(()=>{const _0x560a2f=_0x34d8;_0xec4b6a[_0x560a2f(0x2b9)](_0x529f17=>_0x529f17()),_0xec4b6a=[],_0x4b5c06=!0x1;}));};};let Dt=class extends _0x25d3de{constructor(_0x7f4851,_0x4b95fd,_0x468b23,_0x408e41,_0x332df7,_0x15f2fd,_0x45a4b6,_0x592142){const _0x39710a=_0x4710e8;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,'_cursorInfo$',new _0x591af7(new Map())),l(this,_0x39710a(0x405),this['_cursorInfo$'][_0x39710a(0x2cd)]()),l(this,_0x39710a(0x472),new _0x591af7([])),l(this,_0x39710a(0x20a),this[_0x39710a(0x472)][_0x39710a(0x2cf)](_0x633b46(jr))),l(this,_0x39710a(0x3ec),_0xa63c93((_0x2843ec,_0x365b7d)=>{const _0x263524=_0x39710a,_0xb3b56f={'eventID':_0x5ec94c[_0x263524(0x365)],'data':{'unitID':this[_0x263524(0x4bd)],'memberID':this['_session'][_0x263524(0x329)](),'selection':_0x442992(_0x2843ec,_0x365b7d['range'])}};this[_0x263524(0x3b3)][_0x263524(0x4a1)](_0xb3b56f,this[_0x263524(0x4bd)]);},xr)),(this[_0x39710a(0x4bd)]=_0x7f4851,this[_0x39710a(0x3b3)]=_0x4b95fd,this['_injector']=_0x468b23,this[_0x39710a(0x46c)]=_0x408e41,this[_0x39710a(0x268)]=_0x332df7,this[_0x39710a(0x1d4)]=_0x15f2fd,this[_0x39710a(0x436)]=_0x45a4b6,this[_0x39710a(0x4d0)]=_0x592142);}get['cursorInfo'](){const _0x3aef45=_0x4710e8;return this[_0x3aef45(0x2e8)][_0x3aef45(0x429)]();}get[_0x4710e8(0x2b3)](){const _0x3fb2bd=_0x4710e8;return this['_roomMembers$'][_0x3fb2bd(0x429)]();}[_0x4710e8(0x3db)](){const _0x3436a8=_0x4710e8;super['dispose'](),this[_0x3436a8(0x2e8)][_0x3436a8(0x2f0)](new Map()),this['_cursorInfo$'][_0x3436a8(0x307)](),this[_0x3436a8(0x472)]['next']([]),this[_0x3436a8(0x472)][_0x3436a8(0x307)]();}[_0x4710e8(0x217)](){const _0x26acfb=_0x4710e8;this['_init']||(this[_0x26acfb(0x20c)]=!0x0,this[_0x26acfb(0x3b3)][_0x26acfb(0x252)][_0x26acfb(0x2cf)](_0x5208f4(this[_0x26acfb(0x24c)]))['subscribe'](_0x2c6ba6=>{const _0x6ff365=_0x26acfb;_0x2c6ba6===Y[_0x6ff365(0x40c)]?this[_0x6ff365(0x511)]():this[_0x6ff365(0x1d8)]();}),this[_0x26acfb(0x3b3)][_0x26acfb(0x297)][_0x26acfb(0x2cf)](_0x5208f4(this[_0x26acfb(0x24c)]))[_0x26acfb(0x332)](_0x1ffc82=>{const _0x55265d=_0x26acfb,_0x2b1307=_0x1ffc82[_0x55265d(0x280)];_0x2b1307===_0x5ec94c[_0x55265d(0x365)]&&this['_onCursorUpdate'](_0x1ffc82),_0x2b1307===_0x5ec94c[_0x55265d(0x3f0)]&&this[_0x55265d(0x3c9)](_0x1ffc82);}),this[_0x26acfb(0x548)](),this[_0x26acfb(0x333)](this[_0x26acfb(0x436)][_0x26acfb(0x3b5)](_0x506422=>{const _0x36a6c7=_0x26acfb;if(this[_0x36a6c7(0x565)]&&_0x506422['id']===_0x3d4fa2['id']&&_0x506422[_0x36a6c7(0x3eb)]['unitId']===this[_0x36a6c7(0x4bd)]){const _0x107ffb=_0x506422[_0x36a6c7(0x3eb)];this['_updateLocalCursor'](_0x107ffb['subUnitId'],_0x107ffb[_0x36a6c7(0x52a)][0x0]);}})));}[_0x4710e8(0x23a)](_0x457f6f){const _0x3c15b7=_0x4710e8;var _0x454663,_0x3bd790;const {memberID:_0x11a504,selection:_0x31158c}=_0x457f6f[_0x3c15b7(0x543)],{sheetName:_0x4acdf3,range:_0x497aa7}=_0x5ece9f(_0x31158c),_0x14f36d={'name':(_0x3bd790=(_0x454663=this[_0x3c15b7(0x268)]['getMember'](this['unitID'],_0x11a504))==null?void 0x0:_0x454663['name'])!=null?_0x3bd790:_0x3c15b7(0x523),'range':this[_0x3c15b7(0x334)](_0x4acdf3,_0x497aa7),'sheetID':_0x4acdf3,'color':this['_colorAssignService'][_0x3c15b7(0x535)](_0x11a504),'selection':_0x31158c},_0x2d8c24=this[_0x3c15b7(0x2ab)];_0x2d8c24['set'](_0x11a504,_0x14f36d),this[_0x3c15b7(0x2e8)][_0x3c15b7(0x2f0)](_0x2d8c24);}[_0x4710e8(0x3c9)](_0x5c93e7){const _0x3f208f=_0x4710e8,{memberID:_0x4b46db}=_0x5c93e7[_0x3f208f(0x543)],_0x59d608=this[_0x3f208f(0x2ab)];_0x59d608['delete'](_0x4b46db),this[_0x3f208f(0x2e8)]['next'](_0x59d608);}['_getMergeRange'](_0x223562,_0x4e64b7){const _0x28ec30=_0x4710e8;var _0x497236,_0x24bbe6;const _0x2b869b=(_0x24bbe6=(_0x497236=this[_0x28ec30(0x1d4)][_0x28ec30(0x361)](this[_0x28ec30(0x4bd)]))==null?void 0x0:_0x497236[_0x28ec30(0x4c4)](_0x223562))==null?void 0x0:_0x24bbe6[_0x28ec30(0x2a1)]();return(_0x2b869b==null?void 0x0:_0x2b869b[_0x28ec30(0x4cc)](_0x1be435=>_0x1d55a6[_0x28ec30(0x317)](_0x1be435,_0x4e64b7)))||_0x4e64b7;}['_onRefRangeChange'](){const _0x68a5db=_0x4710e8,_0x4446d0=new _0x126fc5(),_0xee84bf=Hr(),_0x32ba99=()=>{const _0x5d4068=_0x34d8;_0x4446d0[_0x5d4068(0x3db)]();const _0x46c7f2=(_0x3640d1,_0x31cdea,_0x57df63,_0x29874e)=>{const _0x413a49=_0x5d4068;let _0x5673a8=[];switch(_0x3640d1['id']){case _0x44684c['DeleteRangeMoveLeftCommandId']:{_0x5673a8=_0x8bbf3b(_0x3640d1,_0x29874e);break;}case _0x44684c[_0x413a49(0x389)]:{_0x5673a8=_0x1c3e9e(_0x3640d1,_0x29874e);break;}case _0x44684c[_0x413a49(0x300)]:{_0x5673a8=_0xe2d649(_0x3640d1,_0x29874e);break;}case _0x44684c[_0x413a49(0x42f)]:{_0x5673a8=_0x16bc73(_0x3640d1,_0x29874e);break;}case _0x44684c['InsertRangeMoveRightCommandId']:{_0x5673a8=_0x5e5a07(_0x3640d1,_0x29874e);break;}case _0x44684c[_0x413a49(0x48e)]:{_0x5673a8=_0x5e3d9a(_0x3640d1,_0x29874e);break;}case _0x44684c[_0x413a49(0x533)]:{_0x5673a8=_0x26994a(_0x3640d1,_0x29874e);break;}case _0x44684c[_0x413a49(0x46b)]:{_0x5673a8=_0x4c210a(_0x3640d1,_0x29874e);break;}case _0x44684c['RemoveRowCommandId']:{_0x5673a8=_0x52e332(_0x3640d1,_0x29874e);break;}}const _0x3b1dd5=_0x5cb0bc(_0x5673a8,_0x29874e),_0x1c088e=this[_0x413a49(0x2ab)][_0x413a49(0x376)](_0x31cdea);if(_0x1c088e&&_0x3b1dd5){const _0x425e48={..._0x1c088e,'range':_0x3b1dd5};this[_0x413a49(0x2ab)][_0x413a49(0x20f)](_0x31cdea,_0x425e48),_0xee84bf(()=>{const _0x1928a2=_0x413a49,_0x189333=this[_0x1928a2(0x4d0)][_0x1928a2(0x336)](_0x3b1dd5,_0x19da6d=>(_0x189333[_0x1928a2(0x3db)](),_0x46c7f2(_0x19da6d,_0x31cdea,_0x57df63,_0x3b1dd5)));_0x4446d0[_0x1928a2(0x390)](_0x189333);});}return{'redos':[],'undos':[]};};this[_0x5d4068(0x2ab)][_0x5d4068(0x2b9)]((_0x248d72,_0x2bf7bb)=>{const _0x22e5a5=_0x5d4068,{range:_0x477bfe,sheetID:_0x21fbc3}=_0x248d72,_0x44bcab=this[_0x22e5a5(0x4d0)][_0x22e5a5(0x336)](_0x477bfe,_0x3820af=>(_0x44bcab[_0x22e5a5(0x3db)](),_0x46c7f2(_0x3820af,_0x2bf7bb,_0x21fbc3,_0x477bfe)));_0x4446d0['add'](_0x44bcab);});};this[_0x68a5db(0x333)](_0xf2106b(this[_0x68a5db(0x2e8)][_0x68a5db(0x332)](()=>{_0x32ba99();})));}['_toggleOnline'](){const _0x2ca870=_0x4710e8;var _0x1fcc76,_0x1af0f4;if(this[_0x2ca870(0x565)]=!0x0,((_0x1fcc76=this[_0x2ca870(0x1d4)][_0x2ca870(0x3b1)]())==null?void 0x0:_0x1fcc76['getUnitId']())!==this[_0x2ca870(0x4bd)])return;const _0x502a60=(_0x1af0f4=this['_injector'][_0x2ca870(0x376)](_0x4d164d)[_0x2ca870(0x392)]())==null?void 0x0:_0x1af0f4[0x0],_0x55be00=this[_0x2ca870(0x1d4)][_0x2ca870(0x1d6)](_0x1cea4a['UNIVER_SHEET'])['getActiveSheet']();_0x502a60&&_0x55be00&&this[_0x2ca870(0x3ec)](_0x55be00[_0x2ca870(0x22e)](),_0x502a60);}['_toggleOffline'](){const _0x3c189f=_0x4710e8;this[_0x3c189f(0x565)]=!0x1;}};Dt=$r([me(0x2,_0x296e7f(_0x8b88ea)),me(0x3,_0x296e7f(Gt)),me(0x4,_0x296e7f(ce)),me(0x5,_0x2e8a91),me(0x6,_0x3619ab),me(0x7,_0x296e7f(_0x30627a))],Dt);var kr=Object['defineProperty'],Br=Object[_0x4710e8(0x4aa)],Vr=(_0x2dbaca,_0x183c07,_0x26bcb7,_0x25abfd)=>{const _0x5f6fa3=_0x4710e8;for(var _0x57faf9=_0x25abfd>0x1?void 0x0:_0x25abfd?Br(_0x183c07,_0x26bcb7):_0x183c07,_0x3a85ff=_0x2dbaca[_0x5f6fa3(0x2b8)]-0x1,_0x560ffd;_0x3a85ff>=0x0;_0x3a85ff--)(_0x560ffd=_0x2dbaca[_0x3a85ff])&&(_0x57faf9=(_0x25abfd?_0x560ffd(_0x183c07,_0x26bcb7,_0x57faf9):_0x560ffd(_0x57faf9))||_0x57faf9);return _0x25abfd&&_0x57faf9&&kr(_0x183c07,_0x26bcb7,_0x57faf9),_0x57faf9;},ut=(_0x468103,_0xfd67c0)=>(_0x234a44,_0x18eec2)=>_0xfd67c0(_0x234a44,_0x18eec2,_0x468103);let ve=class extends _0x25d3de{constructor(_0x49e1ef,_0x14c2ec,_0x165467){const _0xdd78ae=_0x4710e8;super(),l(this,_0xdd78ae(0x4e1),new Map()),l(this,_0xdd78ae(0x416),new _0x4dd9a0()),(this[_0xdd78ae(0x1d4)]=_0x49e1ef,this[_0xdd78ae(0x2ff)]=_0x14c2ec,this[_0xdd78ae(0x201)]=_0x165467,this[_0xdd78ae(0x20c)]());}[_0x4710e8(0x3db)](){const _0x11a4ce=_0x4710e8;super[_0x11a4ce(0x3db)](),this[_0x11a4ce(0x416)][_0x11a4ce(0x307)](),this[_0x11a4ce(0x4e1)]['forEach'](_0x3c922e=>_0x3c922e[_0x11a4ce(0x3db)]());}[_0x4710e8(0x40f)](_0x405883){const _0x15585b=_0x4710e8;return this[_0x15585b(0x4e1)][_0x15585b(0x277)](_0x405883)?this[_0x15585b(0x4e1)][_0x15585b(0x376)](_0x405883)[_0x15585b(0x405)]:this[_0x15585b(0x416)][_0x15585b(0x2cf)](_0x453205(_0x1a5eb0=>_0x1a5eb0['unitID']===_0x405883),_0x4f8313(_0x4ce864=>_0x4ce864[_0x15585b(0x405)]));}[_0x4710e8(0x20c)](){const _0x386506=_0x4710e8;this[_0x386506(0x1d4)][_0x386506(0x477)](_0x1cea4a[_0x386506(0x3d0)])['pipe'](_0x5208f4(this[_0x386506(0x24c)]))[_0x386506(0x332)](async _0x4167f0=>{const _0x20f442=_0x386506,_0x19fa36=_0x4167f0[_0x20f442(0x3dc)](),_0xce37a3=await this[_0x20f442(0x2d3)](_0x19fa36);this[_0x20f442(0x416)][_0x20f442(0x2f0)](_0xce37a3),this[_0x20f442(0x4e1)][_0x20f442(0x20f)](_0x19fa36,_0xce37a3);}),this[_0x386506(0x1d4)][_0x386506(0x477)](_0x1cea4a[_0x386506(0x49d)])['pipe'](_0x5208f4(this[_0x386506(0x24c)]))[_0x386506(0x2cf)](_0x453205(_0x440281=>!_0x440281['getUnitId']()[_0x386506(0x265)]('__')))[_0x386506(0x332)](async _0x45dbcc=>{const _0x5856a9=_0x386506,_0x54e8fe=_0x45dbcc['getUnitId'](),_0x27af9b=await this[_0x5856a9(0x383)](_0x54e8fe);this[_0x5856a9(0x416)][_0x5856a9(0x2f0)](_0x27af9b),this[_0x5856a9(0x4e1)][_0x5856a9(0x20f)](_0x54e8fe,_0x27af9b);}),_0x1987ea(this[_0x386506(0x1d4)][_0x386506(0x4b3)](_0x1cea4a[_0x386506(0x49d)]),this[_0x386506(0x1d4)][_0x386506(0x4b3)](_0x1cea4a[_0x386506(0x3d0)]))[_0x386506(0x2cf)](_0x5208f4(this[_0x386506(0x24c)]))['subscribe'](_0x51d58c=>{const _0x1e3b93=_0x386506,_0x2f54f0=_0x51d58c[_0x1e3b93(0x3dc)](),_0x469e71=this['_entities'][_0x1e3b93(0x376)](_0x2f54f0);_0x469e71&&(_0x469e71[_0x1e3b93(0x3db)](),this[_0x1e3b93(0x4e1)]['delete'](_0x2f54f0));});}async[_0x4710e8(0x2d3)](_0x59ee14){const _0x606f62=_0x4710e8,_0x172eb5=await this['_collabSessionService'][_0x606f62(0x544)](_0x59ee14),_0x42466e=this[_0x606f62(0x2ff)][_0x606f62(0x2b7)](Dt,_0x59ee14,_0x172eb5);return _0x42466e[_0x606f62(0x217)](),_0x42466e;}async[_0x4710e8(0x383)](_0x30f599){const _0xc17792=_0x4710e8,_0x112fb0=await this[_0xc17792(0x201)][_0xc17792(0x544)](_0x30f599),_0x27064e=this[_0xc17792(0x2ff)][_0xc17792(0x2b7)](Ot,_0x30f599,_0x112fb0);return _0x27064e[_0xc17792(0x217)](),_0x27064e;}};ve=Vr([ut(0x0,_0x2e8a91),ut(0x1,_0x296e7f(_0x8b88ea)),ut(0x2,_0x296e7f(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x4080c9,_0x4ae2ab){const _0x5070b5=_0x4710e8;let {radius:_0x5924f3,width:_0x20b8f4,height:_0x5ad82e}=_0x4ae2ab;_0x5924f3=_0x5924f3!=null?_0x5924f3:0x0,_0x20b8f4=_0x20b8f4!=null?_0x20b8f4:0x1e,_0x5ad82e=_0x5ad82e!=null?_0x5ad82e:0x1e;let _0x15a049=0x0,_0x3540c2=0x0,_0x3f0d28=0x0;_0x15a049=_0x3540c2=_0x3f0d28=Math[_0x5070b5(0x2c4)](_0x5924f3,_0x20b8f4/0x2,_0x5ad82e/0x2),_0x4080c9[_0x5070b5(0x1da)](),_0x4080c9[_0x5070b5(0x470)](_0x15a049,0x0),_0x4080c9['lineTo'](_0x20b8f4-_0x3540c2,0x0),_0x4080c9[_0x5070b5(0x276)](_0x20b8f4-_0x3540c2,_0x3540c2,_0x3540c2,Math['PI']*0x3/0x2,0x0,!0x1),_0x4080c9[_0x5070b5(0x1ea)](_0x20b8f4,_0x5ad82e-_0x3f0d28),_0x4080c9[_0x5070b5(0x276)](_0x20b8f4-_0x3f0d28,_0x5ad82e-_0x3f0d28,_0x3f0d28,0x0,Math['PI']/0x2,!0x1),_0x4080c9['lineTo'](0x0,_0x5ad82e),_0x4080c9[_0x5070b5(0x1ea)](0x0,_0x15a049),_0x4080c9[_0x5070b5(0x276)](_0x15a049,_0x15a049,_0x15a049,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4080c9['closePath'](),_0x4ae2ab[_0x5070b5(0x3ca)]&&(_0x4080c9[_0x5070b5(0x491)](),_0x4080c9['fillStyle']=_0x4ae2ab[_0x5070b5(0x3ca)],_0x4ae2ab[_0x5070b5(0x26e)]===_0x5070b5(0x204)?_0x4080c9[_0x5070b5(0x3ca)]('evenodd'):_0x4080c9[_0x5070b5(0x3ca)](),_0x4080c9[_0x5070b5(0x309)]());}class st extends _0x411c6e{constructor(_0x23272b,_0x25fa03){const _0x35f289=_0x4710e8;super(_0x23272b,_0x25fa03),l(this,_0x35f289(0x530)),l(this,_0x35f289(0x4ba)),(this[_0x35f289(0x530)]=_0x25fa03==null?void 0x0:_0x25fa03[_0x35f289(0x530)],this[_0x35f289(0x4ba)]=_0x25fa03==null?void 0x0:_0x25fa03[_0x35f289(0x4ba)]);}static[_0x4710e8(0x21a)](_0x1660fa,_0x3595d2){const _0x2f95dc=_0x4710e8,{text:_0x192ed0,color:_0x167b07}=_0x3595d2;_0x1660fa[_0x2f95dc(0x491)](),_0x1660fa[_0x2f95dc(0x40a)]=_0x2f95dc(0x55d);const _0x15375e=_0x1660fa[_0x2f95dc(0x346)](_0x192ed0)[_0x2f95dc(0x369)],_0x2de001=Math['min'](_0x15375e+0x2*dt,ms);Wr(_0x1660fa,{'height':$e,'radius':0x4,'width':_0x2de001,'fill':_0x167b07,'evented':!0x1}),_0x1660fa['fillStyle']='#FFF';const _0x430b14=dt,_0x49697c=$e-Fr,_0x428344=ms-0x2*dt;if(_0x15375e>_0x428344){let _0x56a2fc='',_0x1e9dfc=0x0;for(const _0x257f84 of _0x192ed0){const _0x3050be=_0x1660fa[_0x2f95dc(0x346)](_0x257f84)['width'];if(_0x1e9dfc+_0x3050be<=_0x428344-_0x1660fa[_0x2f95dc(0x346)]('...')[_0x2f95dc(0x369)])_0x56a2fc+=_0x257f84,_0x1e9dfc+=_0x3050be;else{_0x56a2fc+='...';break;}}_0x1660fa[_0x2f95dc(0x3c2)](_0x56a2fc,_0x430b14,_0x49697c);}else _0x1660fa['fillText'](_0x192ed0,_0x430b14,_0x49697c);_0x1660fa['restore']();}[_0x4710e8(0x356)](_0x47686a){st['drawWith'](_0x47686a,this);}}const ft='collab-text-anchor-',Gr=_0x4710e8(0x26b),Yr=_0x4710e8(0x2e3),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x4688c0,_0x3053cb,_0xdf468f,_0x49a301){const _0x30c551=_0x4710e8;l(this,_0x30c551(0x39b),[]),l(this,_0x30c551(0x215),null),l(this,_0x30c551(0x3c8),null),l(this,_0x30c551(0x2f6),null),l(this,_0x30c551(0x4e4),null),l(this,_0x30c551(0x542),null),(this[_0x30c551(0x1f0)]=_0x4688c0,this[_0x30c551(0x1f8)]=_0x3053cb,this[_0x30c551(0x2a8)]=_0xdf468f,this[_0x30c551(0x45a)]=_0x49a301,this[_0x30c551(0x1d7)]());}set[_0x4710e8(0x39c)](_0x2f1494){const _0x1c9919=_0x4710e8;_0x2f1494?(this[_0x1c9919(0x2f6)]&&this[_0x1c9919(0x2f6)][_0x1c9919(0x203)](),this[_0x1c9919(0x3c8)]&&this[_0x1c9919(0x3c8)][_0x1c9919(0x48b)]()):(this['_anchorDot']&&this[_0x1c9919(0x2f6)][_0x1c9919(0x48b)](),this[_0x1c9919(0x3c8)]&&this[_0x1c9919(0x3c8)][_0x1c9919(0x203)]());}['dispose'](){const _0x2892a9=_0x4710e8;for(const _0xf1b05 of this['_shapes'])_0xf1b05[_0x2892a9(0x3db)]();this[_0x2892a9(0x3c8)]&&this[_0x2892a9(0x3c8)][_0x2892a9(0x3db)](),this['_anchorDot']&&this[_0x2892a9(0x2f6)]['dispose'](),this[_0x2892a9(0x215)]&&this[_0x2892a9(0x215)][_0x2892a9(0x3db)](),this[_0x2892a9(0x542)]&&this['_eventUnsubscribe']();}[_0x4710e8(0x1d7)](){const _0x566dc0=_0x4710e8;var _0x504593;const {_docSkeleton:_0x5e39ac,_document:_0x2090a7}=this,{color:_0x57aa81,name:_0x5ca527,ranges:_0x5a37e4}=this['_cursor'],_0x44467c=_0x2090a7[_0x566dc0(0x35b)](),{docsLeft:_0xff0bf3,docsTop:_0x12b075}=_0x44467c,_0x5b7097=new _0x166923(_0x44467c,_0x5e39ac);for(const {startOffset:_0x1e2144,endOffset:_0x49dd30,collapsed:_0x29b0e0,isActive:_0x17f10f}of _0x5a37e4){const _0x328fa3=_0x5e39ac[_0x566dc0(0x4c7)](_0x1e2144),_0x84a49a=_0x5e39ac[_0x566dc0(0x4c7)](_0x49dd30);if(_0x17f10f){const {contentBoxPointGroup:_0x3b50bc}=_0x5b7097[_0x566dc0(0x292)](_0x84a49a,_0x84a49a);if(_0x3b50bc[_0x566dc0(0x2b8)]===0x0)continue;this[_0x566dc0(0x3cc)](_0x57aa81,_0x3b50bc,_0xff0bf3,_0x12b075,_0x5ca527),this[_0x566dc0(0x542)]=this[_0x566dc0(0x498)]();}if(!_0x29b0e0&&_0x328fa3&&_0x84a49a){if(_0x4be429(_0x328fa3,_0x84a49a)){const _0x4e1974=new _0x220ca2(_0x44467c,_0x5e39ac),{pointGroup:_0x3cc743}=(_0x504593=_0x4e1974[_0x566dc0(0x292)](_0x328fa3,_0x84a49a))!=null?_0x504593:{};if(_0x3cc743==null||_0x3cc743[_0x566dc0(0x2b8)]===0x0)continue;this[_0x566dc0(0x4d9)](_0x57aa81,_0x3cc743,_0xff0bf3,_0x12b075);}else{const {contentBoxPointGroup:_0x491689}=_0x5b7097[_0x566dc0(0x292)](_0x328fa3,_0x84a49a);if(_0x491689[_0x566dc0(0x2b8)]===0x0)continue;this[_0x566dc0(0x528)](_0x57aa81,_0x491689,_0xff0bf3,_0x12b075);}}}}[_0x4710e8(0x3cc)](_0x19463c,_0x360ebb,_0x95b62c,_0x237a13,_0x46a902){const _0x42cb94=_0x4710e8,_0xd163a3=this['_getAnchorBounding'](_0x360ebb),{left:_0x23b073,top:_0x58d57c,height:_0x587e47}=_0xd163a3,_0x4f8d5b=this[_0x42cb94(0x529)](),_0x18aeb2=Xr/_0x4f8d5b,_0x291f11=new _0xe5b2a(ft+_0xc786e4[_0x42cb94(0x341)](we),{'left':_0x23b073+_0x95b62c-_0x18aeb2,'top':_0x58d57c+_0x237a13,'height':_0x587e47,'width':Kr,'fill':_0x19463c||_0xa1a588(_0x381c82[_0x42cb94(0x38e)],0x0),'strokeWidth':_0x18aeb2,'stroke':qr,'evented':!0x0});this[_0x42cb94(0x215)]=_0x291f11,this['_scene']['addObject'](_0x291f11,_0x10c9cb);const _0x34603b=new _0xe5b2a(ft+_0xc786e4[_0x42cb94(0x341)](we),{'left':_0x23b073+_0x95b62c-_0x18aeb2,'top':_0x58d57c+_0x237a13-mt/0x2,'height':mt,'width':mt,'fill':_0x19463c||_0xa1a588(_0x381c82['black'],0x0),'strokeWidth':0x0,'stroke':_0x19463c||_0xa1a588(_0x381c82['black'],0x0),'evented':!0x1});this[_0x42cb94(0x2f6)]=_0x34603b,this[_0x42cb94(0x1f8)][_0x42cb94(0x52f)](_0x34603b,_0x10c9cb);const _0x25010e=new st(ft+_0xc786e4[_0x42cb94(0x341)](we),{'left':_0x23b073+_0x95b62c-_0x18aeb2,'top':_0x58d57c+_0x237a13-$e,'text':_0x46a902,'color':_0x19463c});this[_0x42cb94(0x3c8)]=_0x25010e,this[_0x42cb94(0x1f8)]['addObject'](_0x25010e,_0x10c9cb),this[_0x42cb94(0x39c)]=!0x1;}[_0x4710e8(0x498)](){const _0x4613a8=_0x4710e8,_0xbd9ab7=this[_0x4613a8(0x215)][_0x4613a8(0x3cf)][_0x4613a8(0x4e3)](()=>{this['_hover']=!0x0;}),_0xeb4242=this[_0x4613a8(0x215)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x23a933=_0x4613a8;this[_0x23a933(0x4e4)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x18bb3c=_0x23a933;this[_0x18bb3c(0x39c)]=!0x1;},0x7d0);});return()=>{const _0x33a940=_0x4613a8;_0xbd9ab7[_0x33a940(0x4be)](),_0xeb4242[_0x33a940(0x4be)]();};}[_0x4710e8(0x528)](_0x7ce114,_0x54fb7f,_0x4b73cc,_0xbcc91){const _0x167697=_0x4710e8,_0xa04100=new _0x53f915(_0x7ce114)['setAlpha'](0.2)[_0x167697(0x396)](),_0x311eaf=new _0x86aa48(Gr+_0xc786e4[_0x167697(0x341)](we),{'pointsGroup':_0x54fb7f,'fill':_0xa04100||_0xa1a588(_0x381c82[_0x167697(0x38e)],0.2),'left':_0x4b73cc,'top':_0xbcc91,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x167697(0x372)](_0x311eaf),this[_0x167697(0x1f8)][_0x167697(0x52f)](_0x311eaf,_0x10c9cb);}[_0x4710e8(0x4d9)](_0x31ceaa,_0x56bfdd,_0x59095e,_0x32c9ec){const _0x5736f5=_0x4710e8,_0x87e77b=new _0x53f915(_0x31ceaa)[_0x5736f5(0x46f)](0.2)[_0x5736f5(0x396)](),_0x28c322=new _0x86aa48(Yr+_0xc786e4['generateRandomId'](we),{'pointsGroup':_0x56bfdd,'fill':_0x87e77b||_0xa1a588(_0x381c82[_0x5736f5(0x38e)],0.2),'left':_0x59095e,'top':_0x32c9ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5736f5(0x39b)]['push'](_0x28c322),this[_0x5736f5(0x1f8)][_0x5736f5(0x52f)](_0x28c322,_0x10c9cb);}[_0x4710e8(0x2f8)](_0x3a8501){const _0x340406=_0x3a8501[0x0],_0xd7b9=_0x340406[0x0],_0x1dddab=_0x340406[0x2],{x:_0x4958db,y:_0x2444aa}=_0xd7b9,{x:_0xdd4552,y:_0x3ebb67}=_0x1dddab;return{'left':_0x4958db,'top':_0x2444aa,'width':_0xdd4552-_0x4958db,'height':_0x3ebb67-_0x2444aa};}[_0x4710e8(0x529)](){const _0x9e70b6=_0x4710e8,{scaleX:_0x19cb42,scaleY:_0x43c2d8}=this[_0x9e70b6(0x1f8)]['getAncestorScale']();return Math[_0x9e70b6(0x261)](_0x19cb42,_0x43c2d8);}}var Jr=Object['defineProperty'],zr=Object[_0x4710e8(0x4aa)],Zr=(_0x399bfc,_0x260583,_0xfddd3b,_0x4dc35a)=>{const _0x1e09db=_0x4710e8;for(var _0x37a57e=_0x4dc35a>0x1?void 0x0:_0x4dc35a?zr(_0x260583,_0xfddd3b):_0x260583,_0x3361bd=_0x399bfc[_0x1e09db(0x2b8)]-0x1,_0x263459;_0x3361bd>=0x0;_0x3361bd--)(_0x263459=_0x399bfc[_0x3361bd])&&(_0x37a57e=(_0x4dc35a?_0x263459(_0x260583,_0xfddd3b,_0x37a57e):_0x263459(_0x37a57e))||_0x37a57e);return _0x4dc35a&&_0x37a57e&&Jr(_0x260583,_0xfddd3b,_0x37a57e),_0x37a57e;},ke=(_0x4bc2b8,_0x3e64bb)=>(_0x55513b,_0x4543f3)=>_0x3e64bb(_0x55513b,_0x4543f3,_0x4bc2b8);let wt=class extends _0x25d3de{constructor(_0x3c0e6a,_0x36f6f8,_0x96746f,_0x23c831,_0x47866){const _0x24e755=_0x4710e8;super(),l(this,_0x24e755(0x4b1),[]),l(this,_0x24e755(0x443),[]),(this[_0x24e755(0x43b)]=_0x3c0e6a,this[_0x24e755(0x3d2)]=_0x36f6f8,this[_0x24e755(0x564)]=_0x96746f,this[_0x24e755(0x436)]=_0x23c831,this[_0x24e755(0x3c6)]=_0x47866,this[_0x24e755(0x20c)]());}[_0x4710e8(0x20c)](){const _0x190167=_0x4710e8,_0x48fc00=this[_0x190167(0x43b)]['unitId'],_0x635cb8=this[_0x190167(0x3d2)];this[_0x190167(0x333)](_0x4594cc([this[_0x190167(0x564)][_0x190167(0x40f)](_0x48fc00),this[_0x190167(0x3c6)][_0x190167(0x3c0)]])[_0x190167(0x2cf)](_0x2eb4ce(([_0x3e1129,_0x5569c3])=>({'skeleton':_0x635cb8[_0x190167(0x51f)](),'cursors':[..._0x3e1129[_0x190167(0x281)]()]['flatMap'](_0x33cdef=>({..._0x33cdef,'color':_0x5569c3[_0x33cdef[_0x190167(0x530)]]}))})))['subscribe'](_0x188822=>{const _0x596526=_0x190167;if(this[_0x596526(0x444)](),_0x188822){const {skeleton:_0x2aef3c,cursors:_0x33c50e}=_0x188822;this['_updateCollabCursors'](_0x2aef3c,_0x33c50e);}})),this['_initResize'](),this[_0x190167(0x35a)]();}[_0x4710e8(0x1db)](_0x32ab83,_0x5d9fca){const _0x558447=_0x4710e8,{scene:_0x367348,mainComponent:_0x6ff98a}=this[_0x558447(0x43b)],_0x53c5d9=_0x5d9fca['map'](_0x2f03df=>new gs(_0x2f03df,_0x367348,_0x32ab83,_0x6ff98a));this[_0x558447(0x4b1)]=_0x53c5d9,this[_0x558447(0x443)]=_0x5d9fca;}[_0x4710e8(0x2c9)](){const _0x3727cd=_0x4710e8;this[_0x3727cd(0x444)]();const {scene:_0x2a46a9,mainComponent:_0x28d27d}=this[_0x3727cd(0x43b)],_0x51f73f=this[_0x3727cd(0x3d2)][_0x3727cd(0x51f)](),_0x3a80bd=this[_0x3727cd(0x443)]['map'](_0x39db16=>new gs(_0x39db16,_0x2a46a9,_0x51f73f,_0x28d27d));this['_cursorShapes']=_0x3a80bd;}['_removeCollabCursors'](){const _0xcb7a4=_0x4710e8;this[_0xcb7a4(0x4b1)]['forEach'](_0x5035aa=>_0x5035aa['dispose']()),this['_cursorShapes']=[];}[_0x4710e8(0x35a)](){const _0x56f794=_0x4710e8,_0x298e1f=[_0x22fc56['id']];this[_0x56f794(0x333)](this[_0x56f794(0x436)]['onCommandExecuted'](_0x1eeabb=>{const _0x529d0c=_0x56f794;_0x298e1f[_0x529d0c(0x225)](_0x1eeabb['id'])&&_0x1eeabb['params'][_0x529d0c(0x295)]===this[_0x529d0c(0x43b)][_0x529d0c(0x295)]&&this[_0x529d0c(0x2c9)]();}));}[_0x4710e8(0x53f)](){const _0x35dee1=_0x4710e8;this[_0x35dee1(0x333)](_0x20d2f0(this[_0x35dee1(0x43b)][_0x35dee1(0x33b)][_0x35dee1(0x49f)])[_0x35dee1(0x2cf)](_0x410577(_0x184791=>_0x184791['type']===_0x469aef[_0x35dee1(0x321)]),_0x2101eb(0x10))[_0x35dee1(0x332)](()=>{const _0x4355eb=_0x35dee1;this[_0x4355eb(0x2c9)]();}));}};wt=Zr([ke(0x1,_0x296e7f(_0x9d210b)),ke(0x2,_0x296e7f(ve)),ke(0x3,_0x3619ab),ke(0x4,_0x296e7f(_0x59d4df))],wt);const Qr=0x1,eo=1.5;class to extends _0x411c6e{constructor(_0x456c96,_0x3d816f){const _0x39f642=_0x4710e8;super(_0x456c96,_0x3d816f),l(this,_0x39f642(0x398)),l(this,'_hovered',!0x1),l(this,'_range'),l(this,_0x39f642(0x2b5),''),l(this,_0x39f642(0x4c6),'top'),l(this,_0x39f642(0x244)),(_0x3d816f&&this[_0x39f642(0x4c1)](_0x3d816f),this[_0x39f642(0x3cf)][_0x39f642(0x4e3)](()=>this[_0x39f642(0x4c1)]({'hovered':!0x0})),this[_0x39f642(0x3fe)][_0x39f642(0x4e3)](()=>this[_0x39f642(0x4c1)]({'hovered':!0x1})));}[_0x4710e8(0x4c1)](_0x14466e){const _0x438200=_0x4710e8;var _0x58f144,_0x27adf9,_0x469a26,_0x4381a9,_0x2260eb,_0x54507c;this[_0x438200(0x398)]=(_0x58f144=_0x14466e[_0x438200(0x530)])!=null?_0x58f144:this[_0x438200(0x398)],this[_0x438200(0x323)]=(_0x27adf9=_0x14466e[_0x438200(0x2e2)])!=null?_0x27adf9:this[_0x438200(0x323)],this[_0x438200(0x4fb)]=(_0x469a26=_0x14466e['range'])!=null?_0x469a26:this[_0x438200(0x4fb)],this['_name']=(_0x4381a9=_0x14466e[_0x438200(0x3e2)])!=null?_0x4381a9:this[_0x438200(0x2b5)],this[_0x438200(0x4c6)]=(_0x2260eb=_0x14466e[_0x438200(0x44d)])!=null?_0x2260eb:this[_0x438200(0x4c6)],this[_0x438200(0x244)]=(_0x54507c=_0x14466e['backgroundColor'])!=null?_0x54507c:this['_backgroundColor'],this['transformByState']({'width':_0x14466e[_0x438200(0x369)],'height':_0x14466e['height']});}[_0x4710e8(0x4eb)](_0x317a03){const _0x3539c6=_0x4710e8,{row:_0x30ef04,column:_0x32183f}=_0x317a03;if(_0x30ef04>=this[_0x3539c6(0x4fb)][_0x3539c6(0x38a)]&&_0x30ef04<=this[_0x3539c6(0x4fb)][_0x3539c6(0x338)]&&_0x32183f>=this[_0x3539c6(0x4fb)]['startColumn']&&_0x32183f<=this[_0x3539c6(0x4fb)][_0x3539c6(0x3c3)]){this[_0x3539c6(0x4c1)]({'hovered':!0x0});return;}this[_0x3539c6(0x4c1)]({'hovered':!0x1});}[_0x4710e8(0x2c0)](_0x474ffa){return!0x1;}[_0x4710e8(0x356)](_0x2a0276){const _0x19b462=_0x4710e8;_0xe5b2a['drawWith'](_0x2a0276,{'width':this[_0x19b462(0x369)],'height':this[_0x19b462(0x4c9)],'strokeWidth':eo,'stroke':this[_0x19b462(0x398)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x19b462(0x323)]&&(_0x2a0276[_0x19b462(0x491)](),_0x2a0276[_0x19b462(0x21c)](0x1,0x0,0x0,0x1,this['width'],this[_0x19b462(0x4c6)]==='bottom'?0x0:-$e),st[_0x19b462(0x21a)](_0x2a0276,{'text':this['_name'],'color':this[_0x19b462(0x398)]}),_0x2a0276[_0x19b462(0x309)]());}}var so=Object[_0x4710e8(0x49e)],io=Object[_0x4710e8(0x4aa)],no=(_0x36995f,_0x54783d,_0x19ab23,_0x531e26)=>{for(var _0x1dc831=_0x531e26>0x1?void 0x0:_0x531e26?io(_0x54783d,_0x19ab23):_0x54783d,_0x4babb3=_0x36995f['length']-0x1,_0xfe57c5;_0x4babb3>=0x0;_0x4babb3--)(_0xfe57c5=_0x36995f[_0x4babb3])&&(_0x1dc831=(_0x531e26?_0xfe57c5(_0x54783d,_0x19ab23,_0x1dc831):_0xfe57c5(_0x1dc831))||_0x1dc831);return _0x531e26&&_0x1dc831&&so(_0x54783d,_0x19ab23,_0x1dc831),_0x1dc831;},gt=(_0x39be25,_0x298103)=>(_0x291610,_0x2558b1)=>_0x298103(_0x291610,_0x2558b1,_0x39be25);const ro=0x1389;let Pt=class extends _0x25d3de{constructor(_0x5b2f79,_0x1299aa,_0x3df9d3,_0x3d111f){const _0x5b5bb2=_0x4710e8;super(),l(this,'_cursors',new Set()),l(this,_0x5b5bb2(0x4c5),null),(this[_0x5b5bb2(0x43b)]=_0x5b2f79,this['_sheetSkeletonManagerService']=_0x1299aa,this[_0x5b5bb2(0x564)]=_0x3df9d3,this[_0x5b5bb2(0x3c6)]=_0x3d111f,this[_0x5b5bb2(0x20c)]());}['_init'](){const _0x4d9a7f=_0x4710e8;this[_0x4d9a7f(0x48d)]['currentSkeleton$'][_0x4d9a7f(0x2cf)](_0x4b06d5(this['dispose$']),_0x4f1993(_0x501aed=>{const _0x13ad12=_0x4d9a7f;if(_0x501aed){const _0x270766=_0x501aed[_0x13ad12(0x38d)];return _0x4594cc(this['_collabCursorController'][_0x13ad12(0x40f)](this[_0x13ad12(0x43b)][_0x13ad12(0x295)]),this[_0x13ad12(0x3c6)][_0x13ad12(0x3c0)])[_0x13ad12(0x2cf)](_0x2eb4ce(([_0x398e70,_0x141f4a])=>{const _0x39448d=_0x13ad12,_0x1fe44d=new Map();return _0x398e70[_0x39448d(0x2b9)]((_0x3055d7,_0x1b8632)=>{const _0x1a2334=_0x39448d;if(_0x3055d7[_0x1a2334(0x453)]===_0x270766){const _0xf0aa08={..._0x3055d7};_0xf0aa08[_0x1a2334(0x530)]=_0x141f4a[_0x3055d7['color']],_0x1fe44d[_0x1a2334(0x20f)](_0x1b8632,_0xf0aa08);}}),{'skeleton':_0x501aed,'cursors':_0x1fe44d};}));}return _0x1e4ae2({'skeleton':null,'cursors':new Map()});}))[_0x4d9a7f(0x332)](({skeleton:_0x20acb2,cursors:_0x4e994d})=>{const _0x36f7cc=_0x4d9a7f;this[_0x36f7cc(0x444)](),_0x20acb2&&this['_updateCollabCursors'](_0x20acb2,_0x4e994d);}),this[_0x4d9a7f(0x48d)][_0x4d9a7f(0x32b)][_0x4d9a7f(0x332)](_0xdc6f60=>{const _0x535bf2=_0x4d9a7f;if(_0xdc6f60==null)return;const {skeleton:_0x5b0868}=_0xdc6f60,{scene:_0xa1a6e4}=this['_context'];_0xa1a6e4['onPointerMove$'][_0x535bf2(0x4e3)](_0xa63c93(_0x543061=>{const _0x46f843=_0x535bf2;var _0x455a77,_0x1edf7c;const {offsetX:_0x42e98b,offsetY:_0x49cf14}=_0x543061,{x:_0x541bbd,y:_0x53fb0e}=_0xa1a6e4[_0x46f843(0x3e0)](_0x1079ef[_0x46f843(0x54c)]([_0x42e98b,_0x49cf14])),{scaleX:_0x442864,scaleY:_0x415dd7}=_0xa1a6e4[_0x46f843(0x22b)](),_0x4af89a=_0xa1a6e4[_0x46f843(0x413)](_0x19f5e2[_0x46f843(0x2c2)]),_0x2b151e=_0xa1a6e4[_0x46f843(0x41b)](_0x1079ef[_0x46f843(0x54c)]([_0x541bbd,_0x53fb0e]),_0x4af89a),_0x15c0ca=_0x5b0868[_0x46f843(0x450)](_0x42e98b,_0x49cf14,_0x442864,_0x415dd7,_0x2b151e);((_0x455a77=this[_0x46f843(0x4c5)])==null?void 0x0:_0x455a77['column'])===_0x15c0ca[_0x46f843(0x557)]&&((_0x1edf7c=this[_0x46f843(0x4c5)])==null?void 0x0:_0x1edf7c[_0x46f843(0x327)])===_0x15c0ca[_0x46f843(0x327)]||this[_0x46f843(0x443)][_0x46f843(0x2b9)](_0x478b27=>{const _0x4777ce=_0x46f843;_0x478b27[_0x4777ce(0x4eb)](_0x15c0ca);});},0x64));});}['_updateCollabCursors'](_0x46fc68,_0x4ea5a7){const _0x4cf9df=_0x4710e8;var _0x33fde4;const _0x192b92=(_0x33fde4=this[_0x4cf9df(0x48d)][_0x4cf9df(0x21d)]())==null?void 0x0:_0x33fde4[_0x4cf9df(0x4e6)];if(!_0x192b92)return;const _0x28d845=this['_getSheetObject']();if(!_0x28d845)return;this['_cursors'][_0x4cf9df(0x2b9)](_0x12ed2f=>{const _0xfbb031=_0x4cf9df;_0x12ed2f[_0xfbb031(0x216)]();});const {scene:_0x3f358e}=_0x28d845,_0x1cf8de=oo(Array[_0x4cf9df(0x50a)](_0x4ea5a7[_0x4cf9df(0x281)]()))[_0x4cf9df(0x354)](_0x39ea0d=>{const _0x49a848=_0x4cf9df,{color:_0x3c15d5,range:_0x59572c,name:_0x151c31,selection:_0x2f3f48,sheetID:_0x414c1b}=_0x39ea0d,{startColumn:_0x2dadde,startRow:_0x30f938,endColumn:_0x133292,endRow:_0x1ef06f}=_0x59572c,_0x1eefbb=_0x5bad73(_0x30f938,_0x2dadde,_0x3f358e,_0x192b92),_0x2cceb0=_0x5bad73(_0x1ef06f,_0x133292,_0x3f358e,_0x192b92),{columnHeaderHeightAndMarginTop:_0x4b4125}=_0x192b92,{startX:_0x1d10d8,startY:_0x54d2bb}=_0x1eefbb,{endX:_0x41dcb0,endY:_0x203917}=_0x2cceb0,_0x119862=_0x41dcb0-_0x1d10d8,_0x171f29=_0x203917-_0x54d2bb,_0x1d2655={'labelPosition':_0x54d2bb-_0x4b4125>=$e?_0x49a848(0x299):_0x49a848(0x421),'sheetID':_0x414c1b,'range':_0x59572c,'color':_0x3c15d5,'name':_0x151c31,'selection':_0x2f3f48,'left':_0x1d10d8,'top':_0x54d2bb,'width':_0x119862,'height':_0x171f29,'evented':!0x1,'zIndex':ro};return new to(_0x151c31,_0x1d2655);});_0x3f358e[_0x4cf9df(0x34b)](_0x1cf8de,Qr),this[_0x4cf9df(0x443)]=new Set(_0x1cf8de);}[_0x4710e8(0x444)](){const _0x280f59=_0x4710e8;var _0x471350;(_0x471350=this[_0x280f59(0x443)])==null||_0x471350[_0x280f59(0x2b9)](_0x4fd6fe=>_0x4fd6fe[_0x280f59(0x3db)]());}['_getSheetObject'](){const _0x450d43=_0x4710e8;return _0x498107(this[_0x450d43(0x43b)][_0x450d43(0x1fe)],this[_0x450d43(0x43b)]);}};Pt=no([gt(0x1,_0x296e7f(_0x2d4cd4)),gt(0x2,_0x296e7f(ve)),gt(0x3,_0x296e7f(_0x59d4df))],Pt);function oo(_0x123d3d){const _0x116870=_0x4710e8,_0x5ab6ff=new Map();return _0x123d3d[_0x116870(0x2b9)](_0x2364b1=>{const _0x1ad135=_0x116870;if(_0x5ab6ff[_0x1ad135(0x277)](_0x2364b1[_0x1ad135(0x370)])){const _0x51f1c7=_0x5ab6ff[_0x1ad135(0x376)](_0x2364b1[_0x1ad135(0x370)]);_0x51f1c7[_0x1ad135(0x3e2)]+=',\x20'+_0x2364b1[_0x1ad135(0x3e2)];}else _0x5ab6ff['set'](_0x2364b1[_0x1ad135(0x370)],_0x2364b1);}),Array[_0x116870(0x50a)](_0x5ab6ff['values']());}var N=function(){const _0x4b1228=_0x4710e8;return N=Object[_0x4b1228(0x24b)]||function(_0x326f44){const _0x183d43=_0x4b1228;for(var _0x4c6d20,_0x436cd5=0x1,_0x39ae8d=arguments['length'];_0x436cd5<_0x39ae8d;_0x436cd5++){_0x4c6d20=arguments[_0x436cd5];for(var _0x227bc2 in _0x4c6d20)Object[_0x183d43(0x2ce)][_0x183d43(0x211)]['call'](_0x4c6d20,_0x227bc2)&&(_0x326f44[_0x227bc2]=_0x4c6d20[_0x227bc2]);}return _0x326f44;},N['apply'](this,arguments);},ao=function(_0x37c24e,_0x5e1b2b){const _0x52d9cb=_0x4710e8;var _0x912251={};for(var _0x5b3e6a in _0x37c24e)Object[_0x52d9cb(0x2ce)][_0x52d9cb(0x211)][_0x52d9cb(0x52e)](_0x37c24e,_0x5b3e6a)&&_0x5e1b2b[_0x52d9cb(0x387)](_0x5b3e6a)<0x0&&(_0x912251[_0x5b3e6a]=_0x37c24e[_0x5b3e6a]);if(_0x37c24e!=null&&typeof Object[_0x52d9cb(0x427)]=='function'){for(var _0x257981=0x0,_0x5b3e6a=Object['getOwnPropertySymbols'](_0x37c24e);_0x257981<_0x5b3e6a[_0x52d9cb(0x2b8)];_0x257981++)_0x5e1b2b[_0x52d9cb(0x387)](_0x5b3e6a[_0x257981])<0x0&&Object[_0x52d9cb(0x2ce)][_0x52d9cb(0x2d7)][_0x52d9cb(0x52e)](_0x37c24e,_0x5b3e6a[_0x257981])&&(_0x912251[_0x5b3e6a[_0x257981]]=_0x37c24e[_0x5b3e6a[_0x257981]]);}return _0x912251;},Yt=_0xee6074(function(_0x205694,_0x5e9ad1){const _0x13c665=_0x4710e8;var _0x4e1098=_0x205694[_0x13c665(0x229)],_0x1601c4=_0x205694['id'],_0x36717f=_0x205694['className'],_0x558dd9=_0x205694[_0x13c665(0x487)],_0x3b2b3a=ao(_0x205694,[_0x13c665(0x229),'id',_0x13c665(0x515),_0x13c665(0x487)]),_0x15f5f4=_0x13c665(0x519)[_0x13c665(0x4fe)](_0x1601c4,'\x20')[_0x13c665(0x4fe)](_0x36717f||'')[_0x13c665(0x206)](),_0x375a17=_0x7d65c2('_'[_0x13c665(0x4fe)](lo()));return Ws(_0x4e1098,''[_0x13c665(0x4fe)](_0x1601c4),{'defIds':_0x4e1098['defIds'],'idSuffix':_0x375a17[_0x13c665(0x425)]},N({'ref':_0x5e9ad1,'className':_0x15f5f4},_0x3b2b3a),_0x558dd9);});function Ws(_0x2240a1,_0x5082cd,_0x2fbacb,_0x537bd5,_0x96204f){const _0x38fbcf=_0x4710e8;return _0x2db1fb(_0x2240a1[_0x38fbcf(0x249)],N(N({'key':_0x5082cd},co(_0x2240a1,_0x2fbacb,_0x96204f)),_0x537bd5),(ho(_0x2240a1,_0x2fbacb)['children']||[])[_0x38fbcf(0x354)](function(_0x3f3c35,_0x136cd5){const _0x255222=_0x38fbcf;return Ws(_0x3f3c35,''[_0x255222(0x4fe)](_0x5082cd,'-')[_0x255222(0x4fe)](_0x2240a1['tag'],'-')[_0x255222(0x4fe)](_0x136cd5),_0x2fbacb,void 0x0,_0x96204f);}));}function co(_0xf3b08c,_0xbbdf2c,_0x4a977a){const _0x38536d=_0x4710e8;var _0x5a31f7=N({},_0xf3b08c['attrs']);_0x4a977a!=null&&_0x4a977a[_0x38536d(0x3e6)]&&_0x5a31f7[_0x38536d(0x3ca)]===_0x38536d(0x3e6)&&(_0x5a31f7[_0x38536d(0x3ca)]=_0x4a977a['colorChannel1']);var _0x65605b=_0xbbdf2c[_0x38536d(0x4c3)];return!_0x65605b||_0x65605b['length']===0x0||(_0xf3b08c[_0x38536d(0x249)]==='use'&&_0x5a31f7[_0x38536d(0x36f)]&&(_0x5a31f7['xlink:href']=_0x5a31f7[_0x38536d(0x36f)]+_0xbbdf2c[_0x38536d(0x512)]),Object['entries'](_0x5a31f7)[_0x38536d(0x2b9)](function(_0x540220){const _0x3a2a7d=_0x38536d;var _0x248fa1=_0x540220[0x0],_0x16fef9=_0x540220[0x1];typeof _0x16fef9==_0x3a2a7d(0x4b5)&&(_0x5a31f7[_0x248fa1]=_0x16fef9[_0x3a2a7d(0x45e)](/url\(#(.*)\)/,_0x3a2a7d(0x406)[_0x3a2a7d(0x4fe)](_0xbbdf2c[_0x3a2a7d(0x512)],')')));})),_0x5a31f7;}function ho(_0x307d67,_0x13245a){const _0x42205a=_0x4710e8;var _0x2310cc,_0x24d8d9=_0x13245a[_0x42205a(0x4c3)];return!_0x24d8d9||_0x24d8d9['length']===0x0?_0x307d67:_0x307d67[_0x42205a(0x249)]===_0x42205a(0x41c)&&(!((_0x2310cc=_0x307d67[_0x42205a(0x1e5)])===null||_0x2310cc===void 0x0)&&_0x2310cc[_0x42205a(0x2b8)])?N(N({},_0x307d67),{'children':_0x307d67['children'][_0x42205a(0x354)](function(_0x425934){const _0x5263ad=_0x42205a;return typeof _0x425934[_0x5263ad(0x467)]['id']==_0x5263ad(0x4b5)&&_0x24d8d9&&_0x24d8d9[_0x5263ad(0x387)](_0x425934[_0x5263ad(0x467)]['id'])>-0x1?N(N({},_0x425934),{'attrs':N(N({},_0x425934[_0x5263ad(0x467)]),{'id':_0x425934[_0x5263ad(0x467)]['id']+_0x13245a[_0x5263ad(0x512)]})}):_0x425934;})}):_0x307d67;}function lo(){const _0x1445c6=_0x4710e8;return Math[_0x1445c6(0x381)]()[_0x1445c6(0x1f2)](0x24)[_0x1445c6(0x382)](0x2,0x8);}Yt['displayName']=_0x4710e8(0x351);var _o={'tag':'svg','attrs':{'fill':_0x4710e8(0x1e7),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4710e8(0x559)},'children':[{'tag':'g','attrs':{'clipPath':_0x4710e8(0x347)},'children':[{'tag':_0x4710e8(0x2b0),'attrs':{'stroke':'currentColor','d':_0x4710e8(0x286),'strokeLinecap':_0x4710e8(0x44c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4710e8(0x41c),'attrs':{},'children':[{'tag':_0x4710e8(0x4a2),'attrs':{'id':_0x4710e8(0x233)},'children':[{'tag':_0x4710e8(0x2b0),'attrs':{'fill':_0x4710e8(0x552),'d':_0x4710e8(0x4ad)}}]}]}],'defIds':[_0x4710e8(0x233)]},Gs=_0xee6074(function(_0x3a0e97,_0x32c97d){const _0x20e8f2=_0x4710e8;return _0x2db1fb(Yt,Object[_0x20e8f2(0x24b)]({},_0x3a0e97,{'id':_0x20e8f2(0x22f),'ref':_0x32c97d,'icon':_o}));});Gs[_0x4710e8(0x566)]=_0x4710e8(0x348);var uo={'tag':_0x4710e8(0x34a),'attrs':{'fill':_0x4710e8(0x1e7),'viewBox':'0\x200\x2017\x2016','width':_0x4710e8(0x559),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4710e8(0x401)},'children':[{'tag':_0x4710e8(0x2b0),'attrs':{'stroke':_0x4710e8(0x293),'d':_0x4710e8(0x262),'strokeLinecap':_0x4710e8(0x44c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x4710e8(0x41c),'attrs':{},'children':[{'tag':_0x4710e8(0x4a2),'attrs':{'id':_0x4710e8(0x1e0)},'children':[{'tag':_0x4710e8(0x2b0),'attrs':{'fill':_0x4710e8(0x552),'d':_0x4710e8(0x4ad),'transform':_0x4710e8(0x493)}}]}]}],'defIds':[_0x4710e8(0x1e0)]},Ys=_0xee6074(function(_0x11ff04,_0x425770){const _0x47e43b=_0x4710e8;return _0x2db1fb(Yt,Object[_0x47e43b(0x24b)]({},_0x11ff04,{'id':'on-line-single','ref':_0x425770,'icon':uo}));});Ys['displayName']=_0x4710e8(0x47a);function Ks(_0x38f2d5){const _0x54c5e3=_0x4710e8;var _0xdadb2a,_0x448986,_0x4f5ca4='';if(typeof _0x38f2d5==_0x54c5e3(0x4b5)||typeof _0x38f2d5==_0x54c5e3(0x330))_0x4f5ca4+=_0x38f2d5;else{if(typeof _0x38f2d5=='object'){if(Array[_0x54c5e3(0x30a)](_0x38f2d5)){var _0x38fbce=_0x38f2d5[_0x54c5e3(0x2b8)];for(_0xdadb2a=0x0;_0xdadb2a<_0x38fbce;_0xdadb2a++)_0x38f2d5[_0xdadb2a]&&(_0x448986=Ks(_0x38f2d5[_0xdadb2a]))&&(_0x4f5ca4&&(_0x4f5ca4+='\x20'),_0x4f5ca4+=_0x448986);}else{for(_0x448986 in _0x38f2d5)_0x38f2d5[_0x448986]&&(_0x4f5ca4&&(_0x4f5ca4+='\x20'),_0x4f5ca4+=_0x448986);}}}return _0x4f5ca4;}function fo(){for(var _0x1d6388,_0x52ac53,_0x1602d3=0x0,_0x115a0c='',_0x1a1bb1=arguments['length'];_0x1602d3<_0x1a1bb1;_0x1602d3++)(_0x1d6388=arguments[_0x1602d3])&&(_0x52ac53=Ks(_0x1d6388))&&(_0x115a0c&&(_0x115a0c+='\x20'),_0x115a0c+=_0x52ac53);return _0x115a0c;}const mo=_0x4710e8(0x3a3),go='univer-online-status-title',So=_0x4710e8(0x558),po=_0x4710e8(0x2a5),vo=_0x4710e8(0x492),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0xc6521c){const _0x3b3a73=_0x4710e8;switch(_0xc6521c){case P[_0x3b3a73(0x210)]:return'collabStatus.offline';case P[_0x3b3a73(0x456)]:return'collabStatus.conflict';case P[_0x3b3a73(0x562)]:return _0x3b3a73(0x235);case P['NOT_COLLAB']:return _0x3b3a73(0x4e2);case P['PENDING']:case P[_0x3b3a73(0x2f4)]:case P[_0x3b3a73(0x296)]:return'collabStatus.syncing';case P[_0x3b3a73(0x4a8)]:return _0x3b3a73(0x407);}}function Eo(_0x17159a){const _0x281254=_0x4710e8,{status$:_0x2a8d72}=_0x17159a,_0x4e653e=_0x114f8c(_0x2a8d72,P[_0x281254(0x4b6)]),_0x232428=_0x36c71e(_0x4224a5),_0x5abb3b=_0x36c71e(he),_0x1271ba=_0x4e653e!==P[_0x281254(0x210)],_0x402bbe=_0x232428['t'](Io(_0x4e653e)),_0x237f41=fo(Pe[_0x281254(0x53d)],{[Pe[_0x281254(0x4f3)]]:_0x1271ba,[Pe[_0x281254(0x4b9)]]:!_0x1271ba}),_0x2966ac=_0x1271ba?_0x592a55['createElement'](Ys,null):_0x592a55['createElement'](Gs,null),_0x8109eb=_0xdb25f4(()=>{const _0x1b2aa6=_0x281254;_0x1271ba||_0x5abb3b[_0x1b2aa6(0x302)]();},[_0x1271ba,_0x5abb3b]);function _0x4ae1a(){const _0x156d5e=_0x281254;return _0x592a55[_0x156d5e(0x55b)](_0x156d5e(0x2dc),{'className':_0x237f41,'onClick':_0x8109eb},_0x592a55['createElement']('div',{'className':Pe[_0x156d5e(0x490)]},_0x2966ac),_0x592a55[_0x156d5e(0x55b)]('div',{'className':Pe[_0x156d5e(0x3c4)]},_0x402bbe));}return _0x1271ba?_0x4ae1a():_0x592a55['createElement'](_0x57772e,{'title':_0x232428['t'](_0x281254(0x212))},_0x4ae1a());}var Co=Object[_0x4710e8(0x49e)],bo=Object['getOwnPropertyDescriptor'],To=(_0x36833c,_0xc0173f,_0x1703f9,_0xe8cbe7)=>{const _0x1f9ebe=_0x4710e8;for(var _0x732a6e=_0xe8cbe7>0x1?void 0x0:_0xe8cbe7?bo(_0xc0173f,_0x1703f9):_0xc0173f,_0x5275f7=_0x36833c[_0x1f9ebe(0x2b8)]-0x1,_0x3074f4;_0x5275f7>=0x0;_0x5275f7--)(_0x3074f4=_0x36833c[_0x5275f7])&&(_0x732a6e=(_0xe8cbe7?_0x3074f4(_0xc0173f,_0x1703f9,_0x732a6e):_0x3074f4(_0x732a6e))||_0x732a6e);return _0xe8cbe7&&_0x732a6e&&Co(_0xc0173f,_0x1703f9,_0x732a6e),_0x732a6e;},Be=(_0x5e1257,_0x1696e4)=>(_0x56dde6,_0x4f0b02)=>_0x1696e4(_0x56dde6,_0x4f0b02,_0x5e1257);let Me=class extends _0x276a39{constructor(_0x1be593,_0x1d5a2b,_0x42e1b5,_0x5a5b29){const _0x3e3d75=_0x4710e8;super(),l(this,'_status$',new _0x591af7(P['NOT_COLLAB'])),(this[_0x3e3d75(0x1d4)]=_0x1be593,this[_0x3e3d75(0x4cb)]=_0x1d5a2b,this[_0x3e3d75(0x2ff)]=_0x42e1b5,this['_collaborationController']=_0x5a5b29,this[_0x3e3d75(0x2a3)](),this[_0x3e3d75(0x23b)]());}[_0x4710e8(0x23b)](){const _0xea7f1=_0x4710e8;this[_0xea7f1(0x333)](this['_univerInstanceService'][_0xea7f1(0x1dd)]['pipe'](_0x4f8313(()=>{const _0x4d3649=_0xea7f1,_0x1b7bb1=this['_univerInstanceService'][_0x4d3649(0x3b1)]();return _0x1b7bb1?this[_0x4d3649(0x28c)][_0x4d3649(0x39e)](_0x1b7bb1[_0x4d3649(0x3dc)]()):_0x1e4ae2(null);}),_0x4f8313(_0x37446f=>_0x37446f?_0x37446f[_0xea7f1(0x322)]:_0x1e4ae2(P[_0xea7f1(0x4b6)])))['subscribe'](_0x400f8a=>{const _0x5f1fb0=_0xea7f1;this[_0x5f1fb0(0x23c)][_0x5f1fb0(0x2f0)](_0x400f8a);}));}[_0x4710e8(0x2a3)](){const _0x42e92f=_0x4710e8;this[_0x42e92f(0x333)](this[_0x42e92f(0x4cb)][_0x42e92f(0x3aa)](_0x21a0d0[_0x42e92f(0x3b4)],()=>_0xe4881e(Ro({'status$':this[_0x42e92f(0x23c)][_0x42e92f(0x2cd)]()}),this['_injector'])));}};Me=To([Be(0x0,_0x2e8a91),Be(0x1,_0x5f0515),Be(0x2,_0x296e7f(_0x8b88ea)),Be(0x3,_0x296e7f(Le))],Me);function Ro(_0x4959f8){const {status$:_0x1140da}=_0x4959f8;return function(){return _0x592a55['createElement'](Eo,{'status$':_0x1140da});};}const Xs=_0x2f212b(_0x4710e8(0x1f9));var Oo=Object['defineProperty'],Do=Object['getOwnPropertyDescriptor'],wo=(_0x39e549,_0x1e1e17,_0x7828ee,_0xf52bb3)=>{const _0xc3231c=_0x4710e8;for(var _0x340506=_0xf52bb3>0x1?void 0x0:_0xf52bb3?Do(_0x1e1e17,_0x7828ee):_0x1e1e17,_0x48c570=_0x39e549[_0xc3231c(0x2b8)]-0x1,_0x2480cb;_0x48c570>=0x0;_0x48c570--)(_0x2480cb=_0x39e549[_0x48c570])&&(_0x340506=(_0xf52bb3?_0x2480cb(_0x1e1e17,_0x7828ee,_0x340506):_0x2480cb(_0x340506))||_0x340506);return _0xf52bb3&&_0x340506&&Oo(_0x1e1e17,_0x7828ee,_0x340506),_0x340506;},ge=(_0x571d5e,_0x2afb58)=>(_0x34a066,_0x2b64de)=>_0x2afb58(_0x34a066,_0x2b64de,_0x571d5e);let Je=class extends _0x25d3de{constructor(_0x4c4980,_0x4f7e34,_0x34765c,_0x3df000,_0x5a9536,_0x1f6b2b){const _0x37f142=_0x4710e8;super(),this['_urlService']=_0x4c4980,this[_0x37f142(0x431)]=_0x4f7e34,this[_0x37f142(0x436)]=_0x34765c,this['_localCacheService']=_0x3df000,this['_snapshotService']=_0x5a9536,_0x1f6b2b?_0x1f6b2b==null||_0x1f6b2b[_0x37f142(0x3e9)]()[_0x37f142(0x51c)](()=>this[_0x37f142(0x20c)]()):(this[_0x37f142(0x431)][_0x37f142(0x34c)](_0x37f142(0x294),_0x37f142(0x3b2)),this['_init']());}async['_init'](){const _0x28acd5=_0x4710e8,_0x11602d=this[_0x28acd5(0x4f7)][_0x28acd5(0x4ec)](_0x28acd5(0x1fe)),_0x1e3d33=this[_0x28acd5(0x4f7)]['getParam'](_0x28acd5(0x315));if(!_0x11602d||!_0x1e3d33){this[_0x28acd5(0x431)][_0x28acd5(0x34c)](_0x28acd5(0x294),_0x28acd5(0x270));return;}switch(Number(_0x1e3d33)){case k[_0x28acd5(0x3d0)]:{const _0x13d85d=await this[_0x28acd5(0x3a2)](_0x11602d);this[_0x28acd5(0x2e0)](_0x13d85d);break;}case k[_0x28acd5(0x49d)]:{await this[_0x28acd5(0x26a)](_0x11602d);break;}default:{this[_0x28acd5(0x431)][_0x28acd5(0x3bd)]('[DataLoaderController]',_0x28acd5(0x3b0));break;}}}async[_0x4710e8(0x2e0)](_0x94ecb3){const _0x52a121=_0x4710e8;await this[_0x52a121(0x34e)](_0x94ecb3),_0x94ecb3[_0x52a121(0x48c)][_0x52a121(0x2cf)](_0x5208f4(this['dispose$']))[_0x52a121(0x332)](_0x53016c=>{const _0x4c2df6=_0x52a121;_0x53016c&&this[_0x4c2df6(0x1f6)](_0x53016c);}),this[_0x52a121(0x4f7)]['urlChange$'][_0x52a121(0x2cf)](_0x5208f4(this['dispose$']))[_0x52a121(0x332)](()=>this[_0x52a121(0x34e)](_0x94ecb3));}['_updateURLWithCurrentState'](_0x451920,_0x4439c2=!0x1){const _0x703f76=_0x4710e8,_0xe33e3c=this[_0x703f76(0x4f7)][_0x703f76(0x4ec)](_0x703f76(0x32f));_0x451920['getSheetId']()!==_0xe33e3c&&this['_urlService'][_0x703f76(0x3c1)](_0x703f76(0x32f),_0x451920[_0x703f76(0x22e)](),_0x4439c2);}async['_updateSubUnitFromURLParams'](_0x59b028){const _0x507e0c=_0x4710e8;var _0xbaed87;const _0x24a00f=this[_0x507e0c(0x4f7)][_0x507e0c(0x4ec)](_0x507e0c(0x32f));if(!_0x24a00f||!_0x59b028[_0x507e0c(0x4c4)](_0x24a00f)){const _0x1d6150=_0x59b028[_0x507e0c(0x403)]()[0x0],_0x5b4c32=_0x59b028[_0x507e0c(0x4c4)](_0x1d6150);if(!_0x5b4c32)return;this[_0x507e0c(0x1f6)](_0x5b4c32,!0x0),await this[_0x507e0c(0x436)][_0x507e0c(0x55e)](_0x5db6b7['id'],{'unitId':_0x59b028['getUnitId'](),'subUnitId':_0x1d6150});return;}((_0xbaed87=_0x59b028[_0x507e0c(0x2bc)]())==null?void 0x0:_0xbaed87['getSheetId']())!==_0x24a00f&&await this[_0x507e0c(0x436)]['executeCommand'](_0x5db6b7['id'],{'unitId':_0x59b028[_0x507e0c(0x3dc)](),'subUnitId':_0x24a00f});}async[_0x4710e8(0x3a2)](_0x3ccec7){const _0x3f54f9=_0x4710e8;let _0x5abef2=0x0;const _0x4624e6=await this[_0x3f54f9(0x46d)]['loadOfflineData'](_0x3ccec7);return _0x4624e6&&(_0x4624e6['awaitingChangeset']||_0x4624e6[_0x3f54f9(0x49b)][_0x3f54f9(0x2b8)]!==0x0)&&(_0x5abef2=_0x4624e6[_0x3f54f9(0x567)]),_0x5abef2===0x0&&this[_0x3f54f9(0x431)]['debug'](_0x3f54f9(0x294),_0x3f54f9(0x2a9)),this[_0x3f54f9(0x499)][_0x3f54f9(0x440)](_0x3ccec7,_0x5abef2);}async[_0x4710e8(0x26a)](_0x2c4e60){const _0x3109ea=_0x4710e8;let _0x333b67=0x0;const _0x4c9f75=await this[_0x3109ea(0x46d)][_0x3109ea(0x1d9)](_0x2c4e60);return _0x4c9f75&&(_0x4c9f75['awaitingChangeset']||_0x4c9f75['mutations'][_0x3109ea(0x2b8)]!==0x0)&&(_0x333b67=_0x4c9f75['rev']),_0x333b67===0x0&&this[_0x3109ea(0x431)][_0x3109ea(0x34c)](_0x3109ea(0x294),_0x3109ea(0x2a9)),this[_0x3109ea(0x499)][_0x3109ea(0x51b)](_0x2c4e60,_0x333b67);}};Je=wo([ge(0x0,Xs),ge(0x1,_0x1c9d2e),ge(0x2,_0x3619ab),ge(0x3,_0x296e7f(w)),ge(0x4,_0x296e7f(_0x588a23)),ge(0x5,_0x110b49(_0x3a9903))],Je);var Po=Object['defineProperty'],yo=Object[_0x4710e8(0x4aa)],Uo=(_0x1b658b,_0x96f339,_0x21cdfb,_0x1a40e8)=>{const _0xd43431=_0x4710e8;for(var _0xf8831c=_0x1a40e8>0x1?void 0x0:_0x1a40e8?yo(_0x96f339,_0x21cdfb):_0x96f339,_0x368132=_0x1b658b[_0xd43431(0x2b8)]-0x1,_0x330dd4;_0x368132>=0x0;_0x368132--)(_0x330dd4=_0x1b658b[_0x368132])&&(_0xf8831c=(_0x1a40e8?_0x330dd4(_0x96f339,_0x21cdfb,_0xf8831c):_0x330dd4(_0xf8831c))||_0xf8831c);return _0x1a40e8&&_0xf8831c&&Po(_0x96f339,_0x21cdfb,_0xf8831c),_0xf8831c;},Ss=(_0x976e0f,_0x4a61af)=>(_0x4c1ae1,_0x2548d9)=>_0x4a61af(_0x4c1ae1,_0x2548d9,_0x976e0f);const No=_0x4710e8(0x505),Mo='Univer';let ze=class extends _0x276a39{constructor(_0x5f2bfb,_0x597687){const _0x33d491=_0x4710e8;super(),this[_0x33d491(0x1d4)]=_0x5f2bfb,this[_0x33d491(0x221)]=_0x597687,this[_0x33d491(0x20c)]();}[_0x4710e8(0x20c)](){const _0x44e5f5=_0x4710e8;this['disposeWithMe'](this[_0x44e5f5(0x1d4)][_0x44e5f5(0x1dd)]['subscribe'](()=>{const _0xe97716=_0x44e5f5;var _0x249eb9;const _0x1744f0=this[_0xe97716(0x1d4)][_0xe97716(0x3b1)]();let _0x228632=(_0x249eb9=this[_0xe97716(0x221)]['getConfig'](No))!=null?_0x249eb9:Mo;_0x1744f0 instanceof _0x2103ba&&(_0x228632=_0x1744f0[_0xe97716(0x3e2)]),document[_0xe97716(0x31b)]=_0x228632;}));}};ze=Uo([Ss(0x0,_0x2e8a91),Ss(0x1,_0x144eba)],ze);var Ao=Object[_0x4710e8(0x49e)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x47fe3b,_0x4fb784,_0x29760f,_0xc9e291)=>{for(var _0x5d06e0=_0xc9e291>0x1?void 0x0:_0xc9e291?Lo(_0x4fb784,_0x29760f):_0x4fb784,_0xda1429=_0x47fe3b['length']-0x1,_0x5573ae;_0xda1429>=0x0;_0xda1429--)(_0x5573ae=_0x47fe3b[_0xda1429])&&(_0x5d06e0=(_0xc9e291?_0x5573ae(_0x4fb784,_0x29760f,_0x5d06e0):_0x5573ae(_0x5d06e0))||_0x5d06e0);return _0xc9e291&&_0x5d06e0&&Ao(_0x4fb784,_0x29760f,_0x5d06e0),_0x5d06e0;},St=(_0x139008,_0x59a62b)=>(_0x4f4d07,_0x5bfcda)=>_0x59a62b(_0x4f4d07,_0x5bfcda,_0x139008);let Ze=class{constructor(_0x27ac7a,_0x165731,_0x5f243a){const _0x7d9b6=_0x4710e8;this[_0x7d9b6(0x221)]=_0x27ac7a,this[_0x7d9b6(0x3bf)]=_0x165731,this[_0x7d9b6(0x432)]=_0x5f243a,this[_0x7d9b6(0x217)]();}[_0x4710e8(0x217)](){const _0x3d484f=_0x4710e8;this[_0x3d484f(0x3bf)][_0x3d484f(0x1f5)]({'priority':0x1,'interceptor':(_0x35e63c,_0x14b385)=>_0x14b385(_0x35e63c)[_0x3d484f(0x2cf)](_0x4aa3eb(async _0x129e54=>{const _0x31a746=_0x3d484f,_0xbaf0e7=_0x129e54;if(_0xbaf0e7['status']===0x191&&window[_0x31a746(0x2b6)](this[_0x31a746(0x432)]['t'](_0x31a746(0x25a)))){const _0x179caa=window[_0x31a746(0x4d1)](window['location'][_0x31a746(0x54e)]);window['location']['href']=this[_0x31a746(0x259)]()+_0x31a746(0x4f2)+_0x179caa;}return _0xbaf0e7;}))});}['_getLoginPath'](){const _0x26fa7a=_0x4710e8;var _0x41b6a8,_0x3e2169;const _0x1c28ff=this[_0x26fa7a(0x221)][_0x26fa7a(0x41d)](Nn),_0x2bb128=this[_0x26fa7a(0x221)]['getConfig']($);return(_0x3e2169=(_0x41b6a8=_0x2bb128==null?void 0x0:_0x2bb128['loginUrlKey'])!=null?_0x41b6a8:_0x1c28ff)!=null?_0x3e2169:Mn;}};Ze=$o([St(0x0,_0x144eba),St(0x1,_0x296e7f(_0x4ddeb1)),St(0x2,_0x296e7f(_0x4224a5))],Ze);var jo=Object['defineProperty'],xo=Object[_0x4710e8(0x4aa)],Ho=(_0x18d231,_0x2034b7,_0x2fa631,_0x1afa7a)=>{const _0x127c41=_0x4710e8;for(var _0xb564be=_0x1afa7a>0x1?void 0x0:_0x1afa7a?xo(_0x2034b7,_0x2fa631):_0x2034b7,_0x3ccf7f=_0x18d231[_0x127c41(0x2b8)]-0x1,_0x413a3b;_0x3ccf7f>=0x0;_0x3ccf7f--)(_0x413a3b=_0x18d231[_0x3ccf7f])&&(_0xb564be=(_0x1afa7a?_0x413a3b(_0x2034b7,_0x2fa631,_0xb564be):_0x413a3b(_0xb564be))||_0xb564be);return _0x1afa7a&&_0xb564be&&jo(_0x2034b7,_0x2fa631,_0xb564be),_0xb564be;},ps=(_0xcd90c3,_0x2f95bd)=>(_0x382caa,_0x19be67)=>_0x2f95bd(_0x382caa,_0x19be67,_0xcd90c3);const ko=_0x4710e8(0x2ad),Bo=_0x4710e8(0x27f);let yt=class extends _0x276a39{constructor(_0x939c4a,_0x2384a7){const _0x33809f=_0x4710e8;super(),this[_0x33809f(0x41e)]=_0x939c4a,this['_configService']=_0x2384a7,this[_0x33809f(0x25c)]();}[_0x4710e8(0x25c)](){const _0x421587=_0x4710e8,_0x21556a=this;this['disposeWithMe'](this[_0x421587(0x41e)][_0x421587(0x1f5)]({'priority':0x3e7,'interceptor':_0x5b0d70({'isMatch'(_0x88347d){const _0x18ef8c=_0x421587;var _0x18d44b;if(_0x88347d['method']==='POST'&&((_0x18d44b=_0x88347d[_0x18ef8c(0x3a9)])!=null&&_0x18d44b[_0x18ef8c(0x2fa)])){const {objectID:_0x32fa4f,objectType:_0x4b3435}=_0x88347d['requestParams'][_0x18ef8c(0x2fa)]||{};if(!_0x32fa4f||_0x4b3435===void 0x0)return!0x1;const _0x2c2121=_0x21556a[_0x18ef8c(0x2ee)]()+'/'+_0x4b3435+'/object/'+_0x32fa4f+_0x18ef8c(0x269);if(_0x88347d['url']===_0x2c2121)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5f20da){const _0x8d9525=_0x421587;var _0x59f648;return(_0x59f648=_0x5f20da[_0x8d9525(0x3a9)])==null?void 0x0:_0x59f648[_0x8d9525(0x2fa)];},'mergeParamsToRequest'(_0x178e3c,_0x1e0a0f){const _0x453a74=_0x421587,_0x16efd8=_0x21556a[_0x453a74(0x2ee)]()+'/-/object/-/batch_allowed',_0x33376b=_0x178e3c[_0x453a74(0x3b8)]((_0x4f11eb,_0x4725e8)=>{const _0x5f29c7=_0x453a74,{unitID:_0x4a4084,objectID:_0x884e3f,objectType:_0x25164c,actions:_0x4672bf}=_0x4725e8;return _0x4f11eb[_0x4a4084]||(_0x4f11eb[_0x4a4084]={}),_0x4f11eb[_0x4a4084][_0x884e3f]||(_0x4f11eb[_0x4a4084][_0x884e3f]={'objectID':_0x884e3f,'objectType':_0x25164c,'actions':[]}),_0x4f11eb[_0x4a4084][_0x884e3f][_0x5f29c7(0x503)][_0x5f29c7(0x372)](..._0x4672bf),_0x4f11eb;},{}),_0x1e3df7=[];for(const _0x3cec1b in _0x33376b)for(const _0x1751be in _0x33376b[_0x3cec1b]){const {actions:_0x4caf13,objectType:_0x4911c6}=_0x33376b[_0x3cec1b][_0x1751be],_0x195ac3=[...new Set(_0x4caf13)];_0x1e3df7[_0x453a74(0x372)]({'unitID':_0x3cec1b,'objectID':_0x1751be,'objectType':_0x4911c6,'actions':_0x195ac3});}return new _0x4da82f(_0x453a74(0x549),_0x16efd8,{'headers':_0x1e0a0f[_0x453a74(0x3e5)],'withCredentials':_0x1e0a0f[_0x453a74(0x289)],'responseType':_0x1e0a0f[_0x453a74(0x368)],'body':{'requests':_0x1e3df7}});}},{'distributeResult'(_0x42b349,_0x19791b){const _0x11bd63=_0x421587,{objectActions:_0x1aaa60}=_0x42b349;return _0x19791b[_0x11bd63(0x354)](_0x150c4b=>{const _0x55b230=_0x11bd63,{unitID:_0x269fc1,objectID:_0x34a7ec,actions:_0x265013}=_0x150c4b,_0x2a1cf8=_0x1aaa60[_0x55b230(0x4cc)](_0x28f293=>_0x28f293[_0x55b230(0x4bd)]===_0x269fc1&&_0x28f293[_0x55b230(0x1ee)]===_0x34a7ec),_0x56d59a=_0x265013[_0x55b230(0x354)](_0x377bbe=>_0x2a1cf8==null?void 0x0:_0x2a1cf8[_0x55b230(0x503)][_0x55b230(0x4cc)](_0x3b8fb0=>_0x3b8fb0['action']===_0x377bbe))[_0x55b230(0x525)](_0x5d693c=>!!_0x5d693c);return{'config':_0x150c4b,'result':{'actions':_0x56d59a,'error':_0x42b349[_0x55b230(0x3bd)]}};});}})}));}[_0x4710e8(0x2ee)](){const _0x4ad36e=_0x4710e8;var _0x50747a,_0x2b14f2;const _0x4bdbd7=this['_configService']['getConfig'](ko),_0x5a5071=this[_0x4ad36e(0x221)][_0x4ad36e(0x41d)]($);return(_0x2b14f2=(_0x50747a=_0x5a5071==null?void 0x0:_0x5a5071[_0x4ad36e(0x527)])!=null?_0x50747a:_0x4bdbd7)!=null?_0x2b14f2:Bo;}async[_0x4710e8(0x306)](_0x5910de){const _0x537ce3=_0x4710e8,_0x31febb=this[_0x537ce3(0x2ee)]()+'/'+_0x5910de[_0x537ce3(0x51d)]+_0x537ce3(0x320);return(await this[_0x537ce3(0x41e)][_0x537ce3(0x4f8)](_0x31febb,{'body':_0x5910de}))[_0x537ce3(0x2fa)][_0x537ce3(0x1ee)]||'';}async['list'](_0x31ca59){const _0x4ce6a4=_0x4710e8,_0x5071cf=this[_0x4ce6a4(0x2ee)]()+_0x4ce6a4(0x2bd);return(await this[_0x4ce6a4(0x41e)][_0x4ce6a4(0x4f8)](_0x5071cf,{'body':_0x31ca59}))[_0x4ce6a4(0x2fa)][_0x4ce6a4(0x21b)];}async[_0x4710e8(0x36e)](_0x1a5ce3){const _0x347c97=_0x4710e8,_0x53854c=this[_0x347c97(0x2ee)]()+'/'+_0x1a5ce3['objectType']+_0x347c97(0x200)+_0x1a5ce3[_0x347c97(0x1ee)];await this[_0x347c97(0x41e)][_0x347c97(0x545)](_0x53854c,{'body':_0x1a5ce3});}async[_0x4710e8(0x3d1)](_0xbd1f2){const _0x1e2d4a=_0x4710e8,_0x766d89=this[_0x1e2d4a(0x2ee)]()+'/'+_0xbd1f2['objectType']+'/object/'+_0xbd1f2[_0x1e2d4a(0x1ee)]+'/allowed';return(await this['_HTTPService'][_0x1e2d4a(0x4f8)](_0x766d89,{'body':_0xbd1f2}))[_0x1e2d4a(0x2fa)][_0x1e2d4a(0x503)];}async[_0x4710e8(0x445)](_0x345452){const _0x319c61=_0x4710e8,_0x204408=this[_0x319c61(0x2ee)]()+'/-/object/-/batch_allowed';return(await this['_HTTPService'][_0x319c61(0x4f8)](_0x204408,{'body':{'requests':_0x345452}}))[_0x319c61(0x2fa)]['objectActions'];}async[_0x4710e8(0x37f)](_0x1dc2f7){const _0x2691f3=_0x4710e8,_0x22094b=this['_getAPIPrefixPath']()+'/'+_0x1dc2f7[_0x2691f3(0x51d)]+_0x2691f3(0x275),_0x320d34=await this[_0x2691f3(0x41e)][_0x2691f3(0x4f8)](_0x22094b,{'body':_0x1dc2f7});return{'roles':_0x320d34[_0x2691f3(0x2fa)][_0x2691f3(0x1de)],'actions':_0x320d34[_0x2691f3(0x2fa)][_0x2691f3(0x503)]};}async[_0x4710e8(0x4ae)](_0x30861a){const _0x4c3ad5=_0x4710e8,_0x1768ce=this[_0x4c3ad5(0x2ee)]()+_0x4c3ad5(0x433);await this['_HTTPService']['delete'](_0x1768ce,{'params':{'collaboratorID':_0x30861a[_0x4c3ad5(0x2ed)],'objectID':_0x30861a['objectID'],'unitID':_0x30861a['unitID']}});}async['updateCollaborator'](_0x836f3e){const _0x30ce8c=_0x4710e8,_0x3a6670=this[_0x30ce8c(0x2ee)]()+_0x30ce8c(0x433);await this[_0x30ce8c(0x41e)][_0x30ce8c(0x55c)](_0x3a6670,{'body':_0x836f3e});}async[_0x4710e8(0x466)](_0x39c5e1){const _0x28d941=_0x4710e8,_0xc80d60=this[_0x28d941(0x2ee)]()+_0x28d941(0x433);await this['_HTTPService'][_0x28d941(0x4f8)](_0xc80d60,{'body':_0x39c5e1});}async[_0x4710e8(0x1ff)](_0x39431d){const _0x1adf93=_0x4710e8,_0x4b3170=this[_0x1adf93(0x2ee)]()+_0x1adf93(0x433);return(await this[_0x1adf93(0x41e)][_0x1adf93(0x376)](_0x4b3170,{'params':{'objectID':_0x39431d[_0x1adf93(0x1ee)],'unitID':_0x39431d['unitID']}}))[_0x1adf93(0x2fa)][_0x1adf93(0x50f)];}async[_0x4710e8(0x3ff)](_0x3fdb61){const _0x4d8e2a=_0x4710e8,_0x45b10e=this[_0x4d8e2a(0x2ee)]()+_0x4d8e2a(0x433);await this['_HTTPService'][_0x4d8e2a(0x545)](_0x45b10e,{'body':_0x3fdb61});}};yt=Ho([ps(0x0,_0x296e7f(_0x4ddeb1)),ps(0x1,_0x296e7f(_0x144eba))],yt);var Vo=Object[_0x4710e8(0x49e)],Fo=Object[_0x4710e8(0x4aa)],Wo=(_0xdf7235,_0x3c9134,_0x1e672f,_0x2095e1)=>{for(var _0x5306de=_0x2095e1>0x1?void 0x0:_0x2095e1?Fo(_0x3c9134,_0x1e672f):_0x3c9134,_0x3bd1fd=_0xdf7235['length']-0x1,_0x533122;_0x3bd1fd>=0x0;_0x3bd1fd--)(_0x533122=_0xdf7235[_0x3bd1fd])&&(_0x5306de=(_0x2095e1?_0x533122(_0x3c9134,_0x1e672f,_0x5306de):_0x533122(_0x5306de))||_0x5306de);return _0x2095e1&&_0x5306de&&Vo(_0x3c9134,_0x1e672f,_0x5306de),_0x5306de;},Go=(_0x163955,_0xe99e21)=>(_0x4537ef,_0x2dc0d4)=>_0xe99e21(_0x4537ef,_0x2dc0d4,_0x163955);let Qe=class{constructor(_0x21dc76){const _0x5a0d39=_0x4710e8;this['_httpService']=_0x21dc76,this[_0x5a0d39(0x4e8)]();}[_0x4710e8(0x4e8)](){const _0x4f0fdb=_0x4710e8;this[_0x4f0fdb(0x3bf)]['registerHTTPInterceptor']({'interceptor':(_0x1d36a,_0x246d5a)=>{const _0x1cf0e6=_0x4f0fdb,_0xe9a9ce=_0x1d36a[_0x1cf0e6(0x3e5)],_0x3c7dab=_0x16b7da();return _0x3c7dab&&_0xe9a9ce[_0x1cf0e6(0x20f)](_0x1cf0e6(0x3d6),_0x3c7dab),_0x246d5a(_0x1d36a);}});}};Qe=Wo([Go(0x0,_0x296e7f(_0x4ddeb1))],Qe);var Yo=Object[_0x4710e8(0x49e)],Ko=Object['getOwnPropertyDescriptor'],Xo=(_0x337923,_0x790bfb,_0x58dc4c,_0x4f61b4)=>{const _0x51429d=_0x4710e8;for(var _0x47ce97=_0x4f61b4>0x1?void 0x0:_0x4f61b4?Ko(_0x790bfb,_0x58dc4c):_0x790bfb,_0x155b46=_0x337923[_0x51429d(0x2b8)]-0x1,_0x49ee39;_0x155b46>=0x0;_0x155b46--)(_0x49ee39=_0x337923[_0x155b46])&&(_0x47ce97=(_0x4f61b4?_0x49ee39(_0x790bfb,_0x58dc4c,_0x47ce97):_0x49ee39(_0x47ce97))||_0x47ce97);return _0x4f61b4&&_0x47ce97&&Yo(_0x790bfb,_0x58dc4c,_0x47ce97),_0x47ce97;},pt=(_0x25460d,_0x53cf1d)=>(_0x45cded,_0x2ab5e3)=>_0x53cf1d(_0x45cded,_0x2ab5e3,_0x25460d);const qo=[_0x4710e8(0x408),_0x4710e8(0x27d),_0x4710e8(0x29d),_0x4710e8(0x3fa),_0x4710e8(0x449)],Jo=0x5*0x400*0x400,zo=_0x4710e8(0x245),Zo='/universer-api/stream/file/upload',Qo=_0x4710e8(0x238),ea='/universer-api/file/{fileID}/sign-url';let Ut=class{constructor(_0x148bf3,_0x184878,_0x313864){const _0x3db5e4=_0x4710e8;l(this,'_waitCount',0x0),l(this,'_change$',new _0x4dd9a0()),l(this,_0x3db5e4(0x4c0),this[_0x3db5e4(0x506)]),l(this,'_imageSourceCache',new Map()),(this[_0x3db5e4(0x3bf)]=_0x148bf3,this['_configService']=_0x184878,this[_0x3db5e4(0x1d4)]=_0x313864);}['setWaitCount'](_0x498712){const _0x1a65da=_0x4710e8;this['_waitCount']=_0x498712,this[_0x1a65da(0x506)][_0x1a65da(0x2f0)](_0x498712);}['getImageSourceCache'](_0x592fb8,_0x16cd45){const _0xae1fcc=_0x4710e8;if(_0x16cd45===_0x12b110['BASE64']){const _0x63babb=new Image();return _0x63babb[_0xae1fcc(0x3f5)]=_0x592fb8,_0x63babb;}return this[_0xae1fcc(0x3b9)]['get'](_0x592fb8);}[_0x4710e8(0x35d)](_0x211ba4,_0x343206,_0x1a1e86){const _0x3f120a=_0x4710e8;_0x343206===_0x12b110[_0x3f120a(0x45d)]||_0x1a1e86==null||this[_0x3f120a(0x3b9)]['set'](_0x211ba4,_0x1a1e86);}async[_0x4710e8(0x40e)](_0x344f57){const _0x205ade=_0x4710e8;try{const _0x12e136=this[_0x205ade(0x20e)](this[_0x205ade(0x35e)](),''+_0x344f57),_0x191d46=(await this[_0x205ade(0x3bf)][_0x205ade(0x376)](_0x12e136))[_0x205ade(0x2fa)];if(_0x191d46[_0x205ade(0x3bd)]&&_0x191d46[_0x205ade(0x3bd)][_0x205ade(0x3f9)]===js['OK']){const _0x3d8e5b=new URL(_0x191d46['url'],this[_0x205ade(0x501)]())['toString']();return Promise['resolve'](_0x3d8e5b);}return Promise['reject'](_0x191d46[_0x205ade(0x3bd)]);}catch(_0x50fb8d){return Promise[_0x205ade(0x4b8)](_0x50fb8d);}}async[_0x4710e8(0x218)](_0x2ba14c){const _0x2563ad=_0x4710e8;let _0x5841e2='';if(!qo[_0x2563ad(0x225)](_0x2ba14c[_0x2563ad(0x315)]))return this['_decreaseWaiting'](),Promise[_0x2563ad(0x4b8)](new Error(_0x56e23f[_0x2563ad(0x3f8)]));if(_0x2ba14c['size']>Jo)return this['_decreaseWaiting'](),Promise[_0x2563ad(0x4b8)](new Error(_0x56e23f[_0x2563ad(0x2e1)]));try{const _0x20d999=new FormData();_0x20d999['append'](_0x2563ad(0x502),_0x2ba14c);const _0x3fb8cc=this[_0x2563ad(0x1d4)][_0x2563ad(0x3b1)](),_0x31ec61=_0x3fb8cc==null?void 0x0:_0x3fb8cc[_0x2563ad(0x3dc)]();if(!_0x31ec61)throw new Error('unitId\x20is\x20not\x20found');const _0x3676c1=this[_0x2563ad(0x2de)]()+_0x2563ad(0x301)+_0x2ba14c[_0x2563ad(0x2dd)]['toString']()+_0x2563ad(0x4a6)+xs[_0x2563ad(0x279)]+'&assign='+encodeURIComponent(_0x31ec61),_0x1d2e07=await(await fetch(_0x3676c1,{'method':_0x2563ad(0x549),'body':_0x20d999}))[_0x2563ad(0x508)]();if(typeof _0x1d2e07[_0x2563ad(0x439)]!=_0x2563ad(0x4b5))return this['_decreaseWaiting'](),Promise[_0x2563ad(0x4b8)](new Error(_0x56e23f[_0x2563ad(0x2a2)]));_0x5841e2=_0x1d2e07[_0x2563ad(0x439)];}catch{return this[_0x2563ad(0x48a)](),Promise[_0x2563ad(0x4b8)](new Error(_0x56e23f['ERROR_IMAGE']));}return new Promise((_0x16b399,_0x251691)=>{const _0x300105=_0x2563ad,_0x367e09=new FileReader();_0x367e09[_0x300105(0x460)](_0x2ba14c),_0x367e09[_0x300105(0x202)]=_0x4e2f4d=>{const _0x85ee85=_0x300105;var _0xa53132;const _0x465212=(_0xa53132=_0x4e2f4d['target'])==null?void 0x0:_0xa53132[_0x85ee85(0x1eb)];if(_0x465212==null){this['_decreaseWaiting'](),_0x251691(new Error(_0x56e23f[_0x85ee85(0x2a2)]));return;}const _0x4c6fca=_0xc786e4[_0x85ee85(0x341)](0x6);_0x16b399({'imageId':_0x4c6fca,'imageSourceType':_0x12b110['UUID'],'source':_0x5841e2,'base64Cache':_0x465212,'status':_0x56e23f[_0x85ee85(0x360)]}),this[_0x85ee85(0x48a)]();};});}[_0x4710e8(0x2de)](){const _0x2f8f24=_0x4710e8;var _0x3d98b3,_0x173184;const _0x3047b6=this[_0x2f8f24(0x221)][_0x2f8f24(0x41d)](zo),_0x562745=this[_0x2f8f24(0x221)][_0x2f8f24(0x41d)]($);return(_0x173184=(_0x3d98b3=_0x562745==null?void 0x0:_0x562745[_0x2f8f24(0x363)])!=null?_0x3d98b3:_0x3047b6)!=null?_0x173184:Zo;}['_getSignURL'](){const _0x5982d6=_0x4710e8;var _0x6d371,_0x57530c;const _0x3b680a=this[_0x5982d6(0x221)][_0x5982d6(0x41d)](Qo),_0x466282=this[_0x5982d6(0x221)][_0x5982d6(0x41d)]($);return(_0x57530c=(_0x6d371=_0x466282==null?void 0x0:_0x466282[_0x5982d6(0x32d)])!=null?_0x6d371:_0x3b680a)!=null?_0x57530c:ea;}['_getDownloadEndpointURL'](){const _0x49b9cc=_0x4710e8;var _0x108f1e;const _0x2383a4=this[_0x49b9cc(0x221)]['getConfig']($);return(_0x108f1e=_0x2383a4==null?void 0x0:_0x2383a4['downloadEndpointUrl'])!=null?_0x108f1e:location[_0x49b9cc(0x24f)];}[_0x4710e8(0x20e)](_0x2d8602,_0x57ec82){const _0x5c58c2=_0x4710e8;return _0x2d8602[_0x5c58c2(0x45e)](_0x5c58c2(0x30f),_0x57ec82);}[_0x4710e8(0x48a)](){const _0x4345a1=_0x4710e8;this['_waitCount']-=0x1,this[_0x4345a1(0x506)][_0x4345a1(0x2f0)](this[_0x4345a1(0x358)]);}};function _0x5333(){const _0x227d23=['collabStatus.notCollab','subscribeEvent','_hideTimer','_unitOnClients','skeleton','fetchMissingChangesets','_initRequestHeader','UNIVER_PROJECT','_clearOtherTimers','onMouseMove','getParam','_onCombEvent','slice','saveChangeset','INVALID_ARGUMENT','PERMISSION_DENIED','?url=','online','updateCursorEvent','_listenToOfflineEvent','_syncEditingCollabCursor','_urlService','post','_substituteUndoStack','_onLocalMutation','_range','reqId','_sendingTimer','concat','487KdLuDK','setCurrentUser','_getDownloadEndpointURL','file','actions','getCollabEntity','DEFAULT_FILE_NAME','_change$','session.collaboration-timeout','json','sheets','from','_telemetryService','_state$','onRemoteAck','onSyncEditingCollabCursor','collaborators','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_toggleOnline','idSuffix','m1Prime','YUUMI_RATE_OVER_LIMIT','className','close$','symbol','_setupBeforeClosingHandler','univerjs-icon\x20univerjs-icon-','_renderManagerService','loadDoc','then','objectType','getRoom','getSkeleton','getLatestCsReqIdBySid','saveSheetBlock','open$','Unknown\x20user','pluginName','filter','_getCtorByUniverType','authzUrl','_drawTextRange','_getScale','selections','infoRsp','PSEUDO_FETCH_MISSING_RESULT','LICENSE_IMPORT_SIZE_EXCEEDED','call','addObject','color','permissionRejEvent','694IzBlgB','MoveRangeCommandId','_queuedRemoteChangesets','assignAColorForMemberID','LIVESHARE_FETCH_OPERATIONS','connection\x20error','override','[CollaborationState]:\x20apply\x20error!','APPLY_REJECT','_sendHeartbeatTimer','UNIVER_UNKNOWN','onlineStatus','_scheduleClearOtherTimer','_initResize','SNAPSHOT_INVALID_SNAPSHOT','RETRY_CONNECTING_MAX_COUNT','_eventUnsubscribe','data','requireSession','put','260btWSgC','session.room-full','_onRefRangeChange','POST','_schedule','session.will-retry','FromArray','_tryEnsureSocket','href','ranges','synced','LEAVE','#fff','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteRej','_localeService','catch','column','univer-online-status','1em','_updateState','createElement','patch','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','executeCommand','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','delete','duration','FETCH_MISS','_sendHeartbeat','_collabCursorController','_online','displayName','rev','_scheduleTimestamp','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','collaboration_new_changeset','_univerInstanceService','_transformStack','getCurrentUnitForType','_render','_toggleOffline','loadOfflineData','beginPath','_updateCollabCursors','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','focused$','roles','/rev/','on-line-single_clip0_910_349','8587780pxjUal','m2Prime','enableOfflineEditing','enableAuthServer','children','ENSURE_SNAPSHOT_EXECUTION','none','TOO_MANY_REQUESTS','_config','lineTo','result','getActiveRange','getUnitStatus$','objectID','COMPRESS_MUTATION_APPLY','_cursor','[SyncedState]:\x20received\x20rejection.','toString','_startTelemetryCollaborationNewChangeset','_awaitingChangeset','registerHTTPInterceptor','_updateURLWithCurrentState','_onConnectionOpen','_scene','uni.network.url-service','onTransformRemoteChangesetByIMECache','HttpImport','[OfflineState]:\x20received\x20rejection.','YUUMI_SUBSCRIPTION_NOT_FOUND','unit','listCollaborators','/object/','_collabSessionService','onload','hide','evenodd','session','trim','[CollaborationSessionService]','getMember','_waitForHeartbeatResponse','roomMembers$','socket$','_init','getResourcesRequest','_replaceFileID','set','OFFLINE','hasOwnProperty','collab-client.tooltip.reconnect','onRemoteChangeset','[CollaborationUndoRedoService]','_anchor','makeDirty','init','saveImage','_ensureSubject','drawWith','objects','transform','getCurrent','enableSingleActiveInstanceLock','_localStorageService','FETCH_MISSING','_configService','startTime','joinEvent','LICENSE_EXPORT_SIZE_EXCEEDED','includes','jiqing500','_pendingMutations','COMPRESS_MUTATION_SEND','icon','doc.mutation.rich-text-editing','getAncestorScale','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','newValue','getSheetId','off-line-single','getInterceptPoints','clearInterval','SNAPSHOT_URL_KEY','off-line-single_clip0_910_343','collaboration-session-retry','collabStatus.fetchMiss','_getSaveTimeout','leaveEvent','EXCHANGE_SIGN_URL_SERVER_URL_KEY','interceptor','_onCursorUpdate','_initStatusListener','_status$','conflict.title','_clearHeartbeatTimer','_updateLocalCache','updateOfflineData','userID','onTransformIME','[FetchMissState]','_backgroundColor','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_clearRedo','some','ALREADY_EXISTS','tag','updateMember','assign','dispose$','workbook','transformSelections','origin','_collaborationSessionService','_fetchMissChangesets','sessionStatus$','roomInfos','UNRECOGNIZED','key','_isPermissionRej','all','_socketService','_getLoginPath','auth.needGotoLoginAlert','_unlockTransition','_initMergeInterceptor','retryConnectingInterval','SNAPSHOT_HAS_BEEN_REMOVED','219176QZugEO','_transformSelections','max','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','[SyncedState]:\x20received\x20acknowledgement.','UNIVER_SLIDE','startsWith','storage','_assignedColors','_memberService','/allowed','_loadDoc','collab-text-range-','unload','awaiting_with_pending','fillRule','_shouldReportTelemetry','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_roomMembers','purple300','_socket$','/universer-api/comb','/role','arc','has','_getAPIPrefix','UnitEmbedded','_createInitialState','_compressMutationService','_startCollaboration','image/jpeg','[PendingState]:\x20received\x20rejection.','/universer-api/authz','eventID','values','_removeClearOtherTimer','fetchMiss','_docSyncEditingCollabCursorService','stopTime','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','COMPLETION_FINISHED','isEditing','withCredentials','_changesetSessionId','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_collaborationController','syncEditingCollabCursor','_permissionService','_unitStatus','Warning','CHANGESET_ACK','getRangePointData','currentColor','[DataLoaderController]','unitId','AWAITING_WITH_PENDING','event$','_scheduleSaving','top','registerRenderModule','_handleHeartbeatEvent','NEW_CHANGESETS','image/jpg','UPDATE_PERMISSION_OBJ','_http','_initUnitPermissionChange','getMergeData','ERROR_IMAGE','_initStatusComponent','_acknowledgedAwaitingChangeset','univer-online','MSG_FOR_ERROR','_retryConnectingTimer','_docSkeleton','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','635457YhgkHt','cursorInfo','_send','AUTHZ_URL_KEY','_state','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','path','[CollaborationEntity]','revision','roomMembers','_substituteRedoStack','_name','confirm','createInstance','length','forEach','_clearLocalCache','_updateStatus','getActiveSheet','/-/object/list','clear','_disableEditing','triggerDblclick','memberID','VIEW_MAIN','_replayCachedMutations','min','collaboration.closeRoom','capture','_socket','_retryCount','_refreshCollabCursors','LIVESHARE_OPERATION','onRendered','APPLY_PERMISSION_DENIED','asObservable','prototype','pipe','_scheduleCollaborationTimeoutTimer','_createSocket','blue400','_startSheetCollabCursor','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onReady','shouldCloseConn','propertyIsEnumerable','getUnitOnRev','clearTimeout','CHANGESET_REJ','updatePermissionObjEvent','div','size','_getUploadFileURL','_initModules','_setupSubUnitSync','ERROR_EXCEED_SIZE','hovered','collab-rect-range-','_onRemoteACK','_rescheduleHeartbeat','COLLAB_SUBMIT_CHANGESET_URL','_snapshotServerService','_cursorInfo$','_telemetryInfo','_commentService','_createInitialStateImpl','_onRemoteChangeset','collaboratorID','_getAPIPrefixPath','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','next','transformRemoteChangeset','/universer-api/snapshot/','_messageService','AWAITING','closeSession','_anchorDot','_clearScheduledTask','_getAnchorBounding','Undefined','body','8lzFJwF','USERS_ENTER','onSendChangeset','_registerDependencies','_injector','InsertColCommandId','?size=','reconnect','_tryReconnect','_docTransformIMECacheService','split','create','complete','_undoStacks','restore','isArray','getWorkbookSelections','_lockTransition','collaboration-client.config','refreshPermission','{fileID}','getCurrentUser','_sessionStatus$','_transitionLocked','deepClone','3107867LGbMpJ','type','_colorIndex','contains','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','c2Prime','_onRemoteRejected','title','189oFpbCK','hidden','unshift','_joinRoom','/object','resize','status$','_hovered','_onJoinRoomEvent','error$','_getCurrentRevision','row','_handleEvent','getMemberID','HttpExport','currentSkeleton$','_beforeCloseService','signUrlServerUrl','saveOfflineData','subunit','number','_notificationService','subscribe','disposeWithMe','_getMergeRange','_handleJoinEvent','registerRefRange','_type','endRow','verdancy600','getRenderById','engine','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','permission.title','/universer-api/oidc/authpage','JOIN','_transformService','generateRandomId','editingUnit','_getRedoStack','_showConflictNotification','[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.','measureText','url(#off-line-single_clip0_910_343)','OffLineSingle','isActive','svg','addObjects','debug','NO_OTHER_CLIENTS_EDITING','_updateSubUnitFromURLParams','LIVESHARE_REQUEST_HOST','_stopTelemetryCollaborationNewChangeset','UniverIcon','_handler','PENDING','map','bind','_draw','onCommentUpdate','_waitCount','_docTransformSelectionsService','_initCommandExecutedListener','getOffsetConfig','NOT_FOUND','addImageSourceCache','_getSignURL','addEventListener','SUCCUSS','getUniverSheetInstance','[CollaborationSessionService]:\x20socket\x20error','uploadFileServerUrl','changesets','UPDATE_CURSOR','_exhaustRemoteChangesetQueue','APPLY_REVISION_CONFILICT','responseType','width','searchParams','IDLE','_collabCursorState$','[UniverCollaborationClientPlugin]','update','xlink:href','selection','_singleActiveUnitService','push','red300','with','getCurrentRevOfUnit','get','isPermissionRej','collabWebSocketUrl','save\x20fail\x20reason\x20is\x20','CHANGESET_REVISION_CONFILICT','onTransformSelections','status','FAIL','csRejEvent','listRoles','fetch_missing','random','substring','_startDocCollabCursor','_handleLeaveEvent','_onConflict','fetchThroughInterceptors','indexOf','initWorkbookPermissionChange','DeleteRangeMoveUpCommandId','startRow','_submitChangeset','compose','sheetId','black','\x20in\x20_schedule.','add','LIVESHARE_NEW_HOST','getCurrentSelections','_createHandler','pending','_timeoutTimer','toRgbString','replaceState','_color','_onRecvEvent','_socketMessageSubscription','_shapes','_hover','_transformUndoRedoStack','getCollabEntity$','_onMessage','[CollaborationSession]','close','_loadSheet','univer-online-status-icon','HEARTBEAT','socket\x20open.','_scheduleHeartbeat','routeKey','SUBMIT_CHANGESET','requestParams','registerComponent','message$','_throwTelemetryCollaborationNewChangeset','[OfflineState]:\x20received\x20changeset.','getUndoRedoMutationParamsCache','permission.content','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getFocusedUnit','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_session','HEADER_MENU','onCommandExecuted','members','_disabled','reduce','_imageSourceCache','visibilityState','_clearTimeoutTimer','UNKNOWN_CMD','error','getTime','_httpService','currentTheme$','setParam','fillText','endColumn','onlineStatusTitle','editing\x20status\x20changed\x20to','_themeService','_event$','_textBubble','_onCursorDelete','fill','state$','_drawAnchor','randomUUID','_heartbeatTimer','onPointerEnter$','UNIVER_SHEET','allowed','_docSkeletonManagerService','onMissingChangesets','[PendingState]:\x20received\x20acknowledgement.','CONNECTOR_DATA_TOO_LARGE','x-univer-host','disposeUnit','liveShareNewHost','cmd','awaiting','dispose','getUnitId','_clearCollaborationTimeoutTimer','HEARTBEAT_TIMEOUT','_members','getRelativeToViewportCoord','parse','name','collabSubmitChangesetUrl','getSheetBlock','headers','colorChannel1','_commentUpdate$','transformChangesets','whenReady','textRanges','params','_updateLocalCursor','_syncEditingCollabCursorService','UNKNOWN_CODE','transformMutation','USERS_LEAVE','encode','location','_docStateChangeManagerService','rng','src','\x0aAfter:\x20','csAckEvent','ERROR_IMAGE_TYPE','code','image/gif','toggleOnline','_candidateSocket','_unitID','onPointerLeave$','putCollaborators','not_collab','url(#on-line-single_clip0_910_349)','stringify','getUnhiddenWorksheets','_transformUndoredo','cursorInfo$','url(#$1','collabStatus.synced','image/png','_initEventListeners','font','sessionStatus','ONLINE','setTimeout','getImage','getCollabCursors$','_undoRedoService','resend','/unit/','getViewport','session.connection-failed','_removeRoom','_entityInit$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetTransformSelectionsService','_incrementRevisionNumber','getUnitType','getVpScrollXYInfoByPosToVp','defs','getConfig','_HTTPService','transformUndoRedo','baseRev','bottom','newCsEvent','_onOffline','_executeRemoteChangeset','current','_socketReady','getOwnPropertySymbols','INTERNAL_ERROR','getValue','_saveCache','ACTIVE_UNIT_EVENT_CHANNEL','enableLocalCache','fetching\x20missing\x20changesets\x20from\x20','registerOnClose','InsertRangeMoveDownCommandId','sendChangesetTimeout','_logService','localeService','/collaborator','_sessions','HEARTBEAT_INTERVAL','_commandService','COMMENT_UPDATE','transformIMECache','FileId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_context','getUnit','_revisionService','conflict','collaboration.single-unit.warning','loadSheet','LOGIN_URL_KEY','_checkMissing','_cursors','_removeCollabCursors','batchAllowed','_applyRemoteChangeset','collaMsg','subUnitId','image/bmp','reverse','_redoStacks','round','labelPosition','commentUpdate$','transformMutationsWithChangeset','getCellPositionByOffset','pushState','Error','sheetID','INGEST','gold400','CONFLICT','UNAUTHENTICATED','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_id','_document','_instanceService','removeParam','BASE64','replace','liveShareOperation','readAsDataURL','_cachedData','_remoteChangesetQueue','LICENSE_MAX_UNITS_EXCEEDED','_selfUnitIDs','unknown','createCollaborator','attrs','_getUndoStack','YUUMI_UNABLE_LOAD_URL','getDocRanges','RemoveColCommandId','_colorAssignService','_localCacheService','updatePermissionPoint','setAlpha','moveTo','SNAPSHOT_SERVER_URL_KEY','_roomMembers$','createSocket','_onUserLeave','_onConnectionFailed','awaitingChangeset','getTypeOfUnitAdded$','83052hkEcuA','conflict.content','OnLineSingle','LICENSE_DISTRO_REJECTED','MUTATION','PERMISSION_REJ','onStarting','onMissedChangesetFetched','history','\x20-\x20','urlChange$','_transformRemoteChangesetByIMECache','originalMeta','state','_collaborationPaused','extend','fromCollab','JOINING','_decreaseWaiting','show','activeSheet$','_sheetSkeletonManagerService','InsertRowCommandId','_changesetReqId','onlineStatusIcon','save','univer-offline','translate(.97)','_saveTaskMap','sid','_onUserJoin','appendMutation','_handleHover','_snapshotService','_transformPreviousActiveRange','mutations','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','UNIVER_DOC','defineProperty','onTransformChange$','20106856yHzKzG','send','clipPath','UNDEFINED','_getSendChangesetTimeout','_transformIMECache','&source=','LIVESHARE_TERMINATE','SYNCED','&to=','getOwnPropertyDescriptor','snapshotServerUrl','ws://127.0.0.1:8000/universer-api/comb/connect','M0\x200H16V16H0z','deleteCollaborator','disableLocalCache','getRandomValues','_cursorShapes','_ws','getTypeOfUnitDisposed$','_getSnapshotAPIPrefix','string','NOT_COLLAB','_clearUndo','reject','offline','text','/block/','toLowerCase','unitID','unsubscribe','toggleOffline','change$','setShapeProps','removeMember','defIds','getSheetBySheetId','_lastPointer','_labelPosition','findNodePositionByCharIndex','[PendingState]:\x20unhandled\x20univer\x20type:\x20','height','_collaborationTimeoutTimer','_uiPartsService','find','[OfflineState]:\x20received\x20acknowledgement.','commentUpdateEvent','telemetry\x20info\x20is\x20not\x20initialized','_refRangeService','encodeURIComponent','joinRsp','/resources','RECV','SHOULD_CLOSE_CONN','setItem','c1Prime','every','_drawRectRange','registerBeforeClose','copyFileMeta','HELLO','_initCloseConn','_userManagerService','OTHER_CLIENTS_EDITING','_onFetchMissResult','_entities'];_0x5333=function(){return _0x227d23;};return _0x5333();}Ut=Xo([pt(0x0,_0x296e7f(_0x4ddeb1)),pt(0x1,_0x144eba),pt(0x2,_0x296e7f(_0x2e8a91))],Ut);var ta=Object[_0x4710e8(0x49e)],sa=Object[_0x4710e8(0x4aa)],ia=(_0x22ef65,_0x36ab07,_0x48a8e4,_0x5d911b)=>{const _0x1d4281=_0x4710e8;for(var _0x4ee7ee=_0x5d911b>0x1?void 0x0:_0x5d911b?sa(_0x36ab07,_0x48a8e4):_0x36ab07,_0x4002ad=_0x22ef65[_0x1d4281(0x2b8)]-0x1,_0x53bae4;_0x4002ad>=0x0;_0x4002ad--)(_0x53bae4=_0x22ef65[_0x4002ad])&&(_0x4ee7ee=(_0x5d911b?_0x53bae4(_0x36ab07,_0x48a8e4,_0x4ee7ee):_0x53bae4(_0x4ee7ee))||_0x4ee7ee);return _0x5d911b&&_0x4ee7ee&&ta(_0x36ab07,_0x48a8e4,_0x4ee7ee),_0x4ee7ee;},ye=(_0x2d3c2a,_0x1a8db6)=>(_0x30038c,_0x7294ab)=>_0x1a8db6(_0x30038c,_0x7294ab,_0x2d3c2a);let et=class extends _0x25d3de{constructor(_0x11c858,_0x41a74f,_0x1f615a,_0x488341,_0x3686e5){const _0x5e4ebd=_0x4710e8;super(),this[_0x5e4ebd(0x2ff)]=_0x11c858,this['_univerInstanceService']=_0x41a74f,this['_permissionService']=_0x1f615a,this[_0x5e4ebd(0x250)]=_0x488341,this[_0x5e4ebd(0x555)]=_0x3686e5,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x4710e8(0x4dd)](){const _0x21b9ed=_0x4710e8,_0x4b636c=async _0x48c341=>{const _0x4ad13d=_0x34d8;(await this[_0x4ad13d(0x250)][_0x4ad13d(0x544)](_0x48c341))[_0x4ad13d(0x297)][_0x4ad13d(0x2cf)](_0x410577(_0x3f0ff1=>_0x3f0ff1['eventID']===_0x5ec94c[_0x4ad13d(0x4d5)]),_0x4b06d5(this[_0x4ad13d(0x24c)]))[_0x4ad13d(0x332)](_0x180a95=>{const _0x3d7b6a=_0x4ad13d,_0x31ef04=_0x180a95,{reason:_0x54d902}=_0x31ef04[_0x3d7b6a(0x543)];this[_0x3d7b6a(0x2ff)]['get'](_0x47eac1)[_0x3d7b6a(0x48b)]({'type':_0x348a45[_0x3d7b6a(0x452)],'content':this[_0x3d7b6a(0x555)]['t'](_0x3d7b6a(0x2c5))+'('+_0x54d902+')'}),this['_permissionService'][_0x3d7b6a(0x46e)](new _0x371e2e(_0x48c341)['id'],!0x1),this[_0x3d7b6a(0x250)]['closeSession'](_0x48c341);});};_0x1987ea(this['_univerInstanceService'][_0x21b9ed(0x477)](_0x1cea4a['UNIVER_SHEET']),this[_0x21b9ed(0x1d4)][_0x21b9ed(0x477)](_0x1cea4a[_0x21b9ed(0x49d)]))[_0x21b9ed(0x2cf)](_0x2eb4ce(_0x18ff5b=>_0x18ff5b['getUnitId']()),_0x410577(_0x319e89=>!_0x2b2731(_0x319e89)),_0x4b06d5(this[_0x21b9ed(0x24c)]))[_0x21b9ed(0x332)](_0x5a0f80=>{_0x4b636c(_0x5a0f80);});}[_0x4710e8(0x2a0)](){const _0x448ce6=_0x4710e8,_0x3f066c=async _0x519b30=>{const _0xc4e40c=_0x34d8;(await this['_collaborationSessionService'][_0xc4e40c(0x544)](_0x519b30))[_0xc4e40c(0x297)][_0xc4e40c(0x2cf)](_0x410577(_0x1ca4fc=>_0x1ca4fc[_0xc4e40c(0x280)]===_0x5ec94c['UPDATE_PERMISSION_OBJ']),_0x4b06d5(this[_0xc4e40c(0x24c)]))[_0xc4e40c(0x332)](_0x74cc69=>{const _0x376c1e=_0xc4e40c,_0x540523=_0x74cc69,{objectId:_0x3eb4ba}=_0x540523['data'],_0x5ca103=this[_0x376c1e(0x2ff)]['get'](_0x3aa5ac);_0x3eb4ba===_0x519b30?_0x5ca103[_0x376c1e(0x388)](_0x519b30):_0x5ca103[_0x376c1e(0x30e)](_0x519b30,_0x3eb4ba);});};_0x1987ea(this[_0x448ce6(0x1d4)][_0x448ce6(0x477)](_0x1cea4a[_0x448ce6(0x3d0)]),this[_0x448ce6(0x1d4)][_0x448ce6(0x477)](_0x1cea4a[_0x448ce6(0x49d)]))[_0x448ce6(0x2cf)](_0x2eb4ce(_0x4f1508=>_0x4f1508['getUnitId']()),_0x410577(_0x459429=>!_0x2b2731(_0x459429)),_0x4b06d5(this['dispose$']))[_0x448ce6(0x332)](_0x66cadd=>{_0x3f066c(_0x66cadd);});}};et=ia([ye(0x0,_0x296e7f(_0x8b88ea)),ye(0x1,_0x2e8a91),ye(0x2,_0x561034),ye(0x3,_0x296e7f(he)),ye(0x4,_0x296e7f(_0x4224a5))],et);var na=Object[_0x4710e8(0x49e)],ra=Object[_0x4710e8(0x4aa)],oa=(_0x390be9,_0x490c67,_0x50fa40,_0x4cbccb)=>{const _0x348e45=_0x4710e8;for(var _0x349b5f=_0x4cbccb>0x1?void 0x0:_0x4cbccb?ra(_0x490c67,_0x50fa40):_0x490c67,_0x23a073=_0x390be9[_0x348e45(0x2b8)]-0x1,_0x401ab1;_0x23a073>=0x0;_0x23a073--)(_0x401ab1=_0x390be9[_0x23a073])&&(_0x349b5f=(_0x4cbccb?_0x401ab1(_0x490c67,_0x50fa40,_0x349b5f):_0x401ab1(_0x349b5f))||_0x349b5f);return _0x4cbccb&&_0x349b5f&&na(_0x490c67,_0x50fa40,_0x349b5f),_0x349b5f;},vs=(_0x3d79a4,_0x38b87e)=>(_0x5bd528,_0x30568a)=>_0x38b87e(_0x5bd528,_0x30568a,_0x3d79a4);let Nt=class{constructor(_0x221d46,_0x4a470c){const _0xd9cb74=_0x4710e8;this[_0xd9cb74(0x221)]=_0x221d46,this[_0xd9cb74(0x3bf)]=_0x4a470c;}async[_0x4710e8(0x2d8)](_0x5eb14c,_0x3ef671){const _0x544db9=_0x4710e8;var _0x5266a6;const {unitID:_0x729f06,type:_0xdcaf99,revision:_0x6582=0x0}=_0x3ef671,_0x136fa3=this[_0x544db9(0x4b4)]()+'/'+_0xdcaf99+_0x544db9(0x412)+_0x729f06+_0x544db9(0x1df)+_0x6582,_0x1ac751=(await this['_httpService']['get'](_0x136fa3))['body'],_0x416df0=(_0x5266a6=_0x1ac751['snapshot'])==null?void 0x0:_0x5266a6[_0x544db9(0x24d)];if(_0x416df0){const _0x4e4f9d=_0x416df0==null?void 0x0:_0x416df0[_0x544db9(0x484)],_0x3c9866=_0x1b42bc[_0x544db9(0x3f1)](_0x58882d(_0x4e4f9d));_0x416df0['originalMeta']=_0x3c9866,Object['entries'](_0x416df0[_0x544db9(0x509)])[_0x544db9(0x2b9)](([,_0x376053])=>{const _0x527120=_0x544db9,_0x22d70e=_0x376053['originalMeta'],_0x4f04d3=_0x1b42bc[_0x527120(0x3f1)](_0x58882d(_0x22d70e));_0x376053[_0x527120(0x484)]=_0x4f04d3;});}return _0x1ac751;}async[_0x4710e8(0x3e4)](_0x38120a,_0x576f67){const _0x3a9601=_0x4710e8,{unitID:_0x2de428,type:_0x47f79f,blockID:_0x1ed55b}=_0x576f67,_0x79b945=this[_0x3a9601(0x278)]()+'/'+_0x47f79f+'/unit/'+_0x2de428+_0x3a9601(0x4bb)+_0x1ed55b;return(await this[_0x3a9601(0x3bf)][_0x3a9601(0x376)](_0x79b945))[_0x3a9601(0x2fa)];}async['getDeserializedSheetBlock'](_0xeba287,_0x538b49){const _0x275282=_0x4710e8,{unitID:_0x114cd7,type:_0x278176,blockID:_0x273909}=_0x538b49,_0x118a28=this['_getAPIPrefix']()+_0x275282(0x4bb)+_0x278176+_0x275282(0x412)+_0x114cd7+_0x275282(0x4bb)+_0x273909;return(await this[_0x275282(0x3bf)][_0x275282(0x376)](_0x118a28))[_0x275282(0x2fa)];}async['fetchMissingChangesets'](_0x2975c3,_0x42946e){const _0x4f75b5=_0x4710e8,{unitID:_0x11b80e,type:_0x592931,from:_0x41e382,to:_0x3e993c}=_0x42946e,_0x38f2c1=this['_getAPIPrefix']()+'/'+_0x592931+_0x4f75b5(0x412)+_0x11b80e+'/fetchmissing?from='+_0x41e382+_0x4f75b5(0x4a9)+_0x3e993c;return(await this[_0x4f75b5(0x3bf)][_0x4f75b5(0x376)](_0x38f2c1))[_0x4f75b5(0x2fa)];}[_0x4710e8(0x4b4)](){const _0x1cf3f6=_0x4710e8;var _0xa5d423;return(_0xa5d423=this['_configService'][_0x1cf3f6(0x41d)](vn))!=null?_0xa5d423:this[_0x1cf3f6(0x278)]();}[_0x4710e8(0x278)](){const _0xd14d3=_0x4710e8;var _0x49e7fb,_0x1a661b;const _0x3ba643=this[_0xd14d3(0x221)][_0xd14d3(0x41d)](Sn),_0x33bfce=this[_0xd14d3(0x221)][_0xd14d3(0x41d)]($);return(_0x1a661b=(_0x49e7fb=_0x33bfce==null?void 0x0:_0x33bfce[_0xd14d3(0x4ab)])!=null?_0x49e7fb:_0x3ba643)!=null?_0x1a661b:pn;}async[_0x4710e8(0x20d)](_0x21c7bd,_0x17d957){const _0x466fe7=_0x4710e8,_0x72f0c8=_0x466fe7(0x2f2)+_0x17d957[_0x466fe7(0x315)]+'/unit/'+_0x17d957['unitID']+_0x466fe7(0x4d3);return(await this[_0x466fe7(0x3bf)][_0x466fe7(0x376)](_0x72f0c8,{'params':{'resourceId':JSON['stringify'](_0x17d957['resourceIDs'])}}))[_0x466fe7(0x2fa)];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4710e8(0x521)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4710e8(0x4ef)](){const _0x1dc352=_0x4710e8;throw new Error(_0x1dc352(0x2ef));}[_0x4710e8(0x4db)](){const _0x3b956f=_0x4710e8;throw new Error(_0x3b956f(0x2ef));}[_0x4710e8(0x520)](){const _0x553cfa=_0x4710e8;throw new Error(_0x553cfa(0x2ef));}};Nt=oa([vs(0x0,_0x144eba),vs(0x1,_0x296e7f(_0x4ddeb1))],Nt);var aa=Object[_0x4710e8(0x49e)],ca=Object['getOwnPropertyDescriptor'],ha=(_0x657c12,_0x2a8a48,_0x103534,_0x98da6)=>{const _0x344bbe=_0x4710e8;for(var _0x17cd9c=_0x98da6>0x1?void 0x0:_0x98da6?ca(_0x2a8a48,_0x103534):_0x2a8a48,_0xade4ef=_0x657c12[_0x344bbe(0x2b8)]-0x1,_0x4e5005;_0xade4ef>=0x0;_0xade4ef--)(_0x4e5005=_0x657c12[_0xade4ef])&&(_0x17cd9c=(_0x98da6?_0x4e5005(_0x2a8a48,_0x103534,_0x17cd9c):_0x4e5005(_0x17cd9c))||_0x17cd9c);return _0x98da6&&_0x17cd9c&&aa(_0x2a8a48,_0x103534,_0x17cd9c),_0x17cd9c;},Ue=(_0x4569dd,_0x4d5e8a)=>(_0x430512,_0x366a97)=>_0x4d5e8a(_0x430512,_0x366a97,_0x4569dd);let Mt=class extends _0x21dad2{constructor(_0x232794,_0x598868,_0x10c7a3,_0x5cdfcc,_0x367e17){const _0x3722d5=_0x4710e8;super(_0x232794,_0x598868,_0x10c7a3),this[_0x3722d5(0x340)]=_0x5cdfcc,this[_0x3722d5(0x431)]=_0x367e17;}[_0x4710e8(0x41f)](_0x5acd5b,_0x1c8bfd){const _0x1c6a5b=_0x4710e8,_0x271bd5=this[_0x1c6a5b(0x468)](_0x5acd5b);if(_0x271bd5)try{const _0x509b36=this[_0x1c6a5b(0x1d5)](_0x271bd5,_0x1c8bfd);this['_substituteUndoStack'](_0x5acd5b,_0x509b36);}catch(_0x23314b){this['_logService'][_0x1c6a5b(0x3bd)]('[CollaborationUndoRedoService]',_0x23314b),this[_0x1c6a5b(0x4b7)](_0x5acd5b);}const _0x5dfe14=this[_0x1c6a5b(0x343)](_0x5acd5b);if(_0x5dfe14)try{const _0xd3789b=this[_0x1c6a5b(0x1d5)](_0x5dfe14,_0x1c8bfd);this[_0x1c6a5b(0x2b4)](_0x5acd5b,_0xd3789b);}catch(_0x9d1116){this[_0x1c6a5b(0x431)][_0x1c6a5b(0x3bd)](_0x9d1116),this[_0x1c6a5b(0x246)](_0x5acd5b);}}[_0x4710e8(0x4b7)](_0x2eabe3){const _0x383bd8=_0x4710e8,_0x8f7a75=this[_0x383bd8(0x468)](_0x2eabe3);_0x8f7a75&&(_0x8f7a75['length']=0x0,this[_0x383bd8(0x2bb)]());}[_0x4710e8(0x246)](_0x26a812){const _0x4aa3ee=_0x4710e8,_0x50e95b=this[_0x4aa3ee(0x343)](_0x26a812);_0x50e95b&&(_0x50e95b[_0x4aa3ee(0x2b8)]=0x0,this[_0x4aa3ee(0x2bb)]());}[_0x4710e8(0x4f9)](_0x3f54cc,_0x4418e5){const _0x3a4246=_0x4710e8;this[_0x3a4246(0x308)][_0x3a4246(0x20f)](_0x3f54cc,_0x4418e5),this[_0x3a4246(0x2bb)]();}['_substituteRedoStack'](_0x791430,_0xce7f2a){const _0x439972=_0x4710e8;this[_0x439972(0x44b)][_0x439972(0x20f)](_0x791430,_0xce7f2a),this[_0x439972(0x2bb)]();}[_0x4710e8(0x1d5)](_0x5770be,_0x238bbe){const _0x38084c=_0x4710e8,_0x48573a=[];let _0x2fee18=_0x238bbe,_0x4c4167=_0x238bbe;for(let _0x50e76a=_0x5770be[_0x38084c(0x2b8)]-0x1;_0x50e76a>=0x0;_0x50e76a--){const {unitID:_0x58f035,undoMutations:_0x51278c,redoMutations:_0x5625dc}=_0x5770be[_0x50e76a],_0x26218e=this[_0x38084c(0x340)][_0x38084c(0x44f)](_0x2fee18,_0x51278c),_0x19a71a=this[_0x38084c(0x340)][_0x38084c(0x44f)](_0x4c4167,_0x5625dc);if(_0x7710b9(_0x26218e)||_0x7710b9(_0x19a71a)){this[_0x38084c(0x431)][_0x38084c(0x3bd)](_0x38084c(0x214),'transformStack\x20failed!',_0x26218e,_0x19a71a);break;}_0x2fee18=_0x26218e[_0x38084c(0x4d7)],_0x4c4167=_0x19a71a['c1Prime'],_0x48573a[_0x38084c(0x372)]({'unitID':_0x58f035,'undoMutations':_0x26218e['m2Prime'],'redoMutations':_0x19a71a['m2Prime']});}return _0x48573a[_0x38084c(0x44a)]();}};Mt=ha([Ue(0x0,_0x2e8a91),Ue(0x1,_0x3619ab),Ue(0x2,_0x41567e),Ue(0x3,_0x5184af),Ue(0x4,_0x1c9d2e)],Mt);class la extends _0x25d3de{constructor(){const _0xa75820=_0x4710e8;super(),l(this,'urlChange$'),this[_0xa75820(0x482)]=_0x4b5de6(window,'popstate')[_0xa75820(0x2cf)](_0x5208f4(this[_0xa75820(0x24c)]),_0x48ce07(0x1),_0x1bb4d5(void 0x0));}[_0x4710e8(0x3c1)](_0x251715,_0x3fe897,_0x4d584b=!0x1){const _0x3de398=_0x4710e8,_0x489365=new URL(window[_0x3de398(0x3f2)]['href']);_0x489365[_0x3de398(0x36a)][_0x3de398(0x20f)](_0x251715,_0x3fe897),_0x4d584b?window[_0x3de398(0x480)][_0x3de398(0x397)]('','',_0x489365[_0x3de398(0x1f2)]()):window[_0x3de398(0x480)][_0x3de398(0x451)]('','',_0x489365[_0x3de398(0x1f2)]());}[_0x4710e8(0x45c)](_0x47fdcf,_0x5d9654=!0x1){const _0x5341a5=_0x4710e8,_0x55dafd=new URL(window['location'][_0x5341a5(0x54e)]);_0x55dafd[_0x5341a5(0x36a)]['delete'](_0x47fdcf),_0x5d9654?window['history']['replaceState']('','',_0x55dafd[_0x5341a5(0x1f2)]()):window['history'][_0x5341a5(0x451)]('','',_0x55dafd['toString']());}['getParam'](_0x3d2d81){const _0x3da948=_0x4710e8;var _0x3f6b1e;return(_0x3f6b1e=new URL(window[_0x3da948(0x3f2)]['href'])[_0x3da948(0x36a)][_0x3da948(0x376)](_0x3d2d81))!=null?_0x3f6b1e:void 0x0;}}var qs=Object['defineProperty'],_a=Object[_0x4710e8(0x4aa)],ua=(_0x1d0f63,_0xd5c98d,_0xc7eb43)=>_0xd5c98d in _0x1d0f63?qs(_0x1d0f63,_0xd5c98d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc7eb43}):_0x1d0f63[_0xd5c98d]=_0xc7eb43,da=(_0x4accf7,_0x2c714d,_0x5a53cd,_0x552fe7)=>{for(var _0x5a8463=_0x552fe7>0x1?void 0x0:_0x552fe7?_a(_0x2c714d,_0x5a53cd):_0x2c714d,_0x38956f=_0x4accf7['length']-0x1,_0x12914b;_0x38956f>=0x0;_0x38956f--)(_0x12914b=_0x4accf7[_0x38956f])&&(_0x5a8463=(_0x552fe7?_0x12914b(_0x2c714d,_0x5a53cd,_0x5a8463):_0x12914b(_0x5a8463))||_0x5a8463);return _0x552fe7&&_0x5a8463&&qs(_0x2c714d,_0x5a53cd,_0x5a8463),_0x5a8463;},Ve=(_0x59dfea,_0x96c5ab)=>(_0x151148,_0x174c1e)=>_0x96c5ab(_0x151148,_0x174c1e,_0x59dfea),fa=(_0x1ff9e6,_0x636672,_0x5d174a)=>ua(_0x1ff9e6,_0x636672+'',_0x5d174a);const ma='UNIVER_COLLABORATION_CLIENT_PLUGIN';let At=class extends _0x49d569{constructor(_0x4b26e2=An,_0x22210a,_0x2caa0b,_0x1be9e6,_0x584616){const _0x76f100=_0x4710e8;super(),this[_0x76f100(0x1e9)]=_0x4b26e2,this[_0x76f100(0x431)]=_0x22210a,this[_0x76f100(0x51a)]=_0x2caa0b,this[_0x76f100(0x2ff)]=_0x1be9e6,this[_0x76f100(0x221)]=_0x584616;const {..._0xab582e}=this[_0x76f100(0x1e9)];this['_configService']['setConfig']($,_0xab582e);}[_0x4710e8(0x47e)](){const _0x2eacd6=_0x4710e8;this[_0x2eacd6(0x2fe)](),_0x144863(this['_injector'],[[ve],[Je],[et]]);}[_0x4710e8(0x2d5)](){_0x144863(this['_injector'],[[ze]]);}[_0x4710e8(0x2cb)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x3171e9=_0x4710e8;var _0x43e1a1,_0x1ea67b,_0x5cbd14,_0x4b7654;this[_0x3171e9(0x2ff)][_0x3171e9(0x277)](_0xf0383c)&&this['_logService'][_0x3171e9(0x3bd)](_0x3171e9(0x36d),_0x3171e9(0x28b));let _0x22e32a=[[_0xf0383c,{'useClass':Mt}],[he],[Gt],[_0x4ddeb1],[Xs,{'useClass':la}],[ce],[w],[_0xae64a8],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[ks],[et],[Hs,{'useClass':(_0x1ea67b=(_0x43e1a1=this[_0x3171e9(0x1e9)])==null?void 0x0:_0x43e1a1['socketService'])!=null?_0x1ea67b:Ct}],[_0x4caf27,{'useClass':_0x270afa}],[_0x2a2a40,{'useClass':Nt}],[_0x3dbfb0,{'useClass':yt}],[_0x349f69,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x5cbd14=this[_0x3171e9(0x1e9)])!=null&&_0x5cbd14[_0x3171e9(0x21e)]&&_0x22e32a[_0x3171e9(0x372)]([tt,{'useClass':fr}]),_0x22e32a=_0xf7921(_0x22e32a,(_0x4b7654=this['_config'])==null?void 0x0:_0x4b7654[_0x3171e9(0x538)]),_0x22e32a[_0x3171e9(0x2b9)](_0x22da8c=>this[_0x3171e9(0x2ff)]['add'](_0x22da8c)),this['_initModules']();}['_registerRenderDependencies'](){const _0x5413c4=_0x4710e8;this[_0x5413c4(0x333)](this[_0x5413c4(0x51a)]['registerRenderModule'](_0x1cea4a[_0x5413c4(0x49d)],[wt])),this[_0x5413c4(0x333)](this[_0x5413c4(0x51a)][_0x5413c4(0x29a)](_0x1cea4a[_0x5413c4(0x3d0)],[Pt]));}[_0x4710e8(0x2df)](){const _0x31691d=_0x4710e8;var _0x488dbd,_0x526bc2;this[_0x31691d(0x2ff)][_0x31691d(0x376)](_0x4ddeb1)[_0x31691d(0x1f5)]({'priority':0x14,'interceptor':_0x1c2920({'maxParallel':0x6})}),this['_injector'][_0x31691d(0x376)](Qe),(_0x488dbd=this[_0x31691d(0x1e9)])!=null&&_0x488dbd[_0x31691d(0x1e3)]||this[_0x31691d(0x2ff)][_0x31691d(0x376)](w)[_0x31691d(0x4af)](),(_0x526bc2=this[_0x31691d(0x1e9)])!=null&&_0x526bc2[_0x31691d(0x1e4)]&&this['_injector']['get'](Ze),this[_0x31691d(0x2ff)][_0x31691d(0x376)](Le),this[_0x31691d(0x2ff)]['has'](Me)&&this[_0x31691d(0x2ff)][_0x31691d(0x376)](Me);}};fa(At,_0x4710e8(0x524),ma),At=da([_0x50d17b(_0x480427),Ve(0x1,_0x1c9d2e),Ve(0x2,_0x593697),Ve(0x3,_0x296e7f(_0x8b88ea)),Ve(0x4,_0x144eba)],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 _0x21e9c1=_0x24ad;(function(_0x9dfa6c,_0x436f3b){const _0xafca0b=_0x24ad,_0x271adc=_0x9dfa6c();while(!![]){try{const _0x5ddd99=parseInt(_0xafca0b(0x123))/0x1+parseInt(_0xafca0b(0x19e))/0x2+parseInt(_0xafca0b(0x3d0))/0x3+parseInt(_0xafca0b(0x192))/0x4*(parseInt(_0xafca0b(0x24c))/0x5)+parseInt(_0xafca0b(0x2ad))/0x6*(-parseInt(_0xafca0b(0x1d4))/0x7)+parseInt(_0xafca0b(0x384))/0x8*(parseInt(_0xafca0b(0x1fc))/0x9)+-parseInt(_0xafca0b(0x23d))/0xa;if(_0x5ddd99===_0x436f3b)break;else _0x271adc['push'](_0x271adc['shift']());}catch(_0xc83570){_0x271adc['push'](_0x271adc['shift']());}}}(_0x11c3,0x38529));var ti=Object[_0x21e9c1(0x155)],si=(_0x3b7e4a,_0x28dc49,_0x2be2db)=>_0x28dc49 in _0x3b7e4a?ti(_0x3b7e4a,_0x28dc49,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2be2db}):_0x3b7e4a[_0x28dc49]=_0x2be2db,l=(_0x512206,_0x5901ab,_0x4af35d)=>si(_0x512206,typeof _0x5901ab!=_0x21e9c1(0x1f3)?_0x5901ab+'':_0x5901ab,_0x4af35d);import{createIdentifier as _0x68fae6,Inject as _0xc5d09,Disposable as _0x4aed79,DisposableCollection as _0x40f142,toDisposable as _0x3117b1,IConfigService as _0x232b04,ILogService as _0x3b7308,UserManagerService as _0x1868c3,UniverInstanceType as _0x3626c8,IUniverInstanceService as _0x77aace,LocaleService as _0x2e0e1c,Optional as _0x126256,RxDisposable as _0x522cd9,Injector as _0xe15c29,Tools as _0x1bf815,ILocalStorageService as _0x3ac671,ICommandService as _0x4fdaef,JSONX as _0x4a0a64,CommandType as _0xa145b3,IPermissionService as _0x21fa0d,IUndoRedoService as _0x2d3636,sequenceExecute as _0x2ad9ca,debounce as _0x1097d8,Rectangle as _0x56bc05,COLORS as _0x283be5,ColorKit as _0x4f0241,ThemeService as _0x21be33,fromEventSubject as _0x51794b,useDependency as _0x361941,connectInjector as _0x3baa1e,Workbook as _0x301fcc,isInternalEditorID as _0xd29d71,LocalUndoRedoService as _0x49946c,IContextService as _0xbc45e3,DependentOn as _0x4e3a0c,Plugin as _0x24c89e,touchDependencies as _0xe53674,IAuthzIoService as _0x21d0c6,mergeOverrideWithDependencies as _0x10d76a}from'@univerjs/core';import{Subject as _0x22bff9,merge as _0x7be1ed,takeUntil as _0x3eb144,BehaviorSubject as _0x43e69b,distinctUntilChanged as _0x1ef66d,fromEvent as _0x32b9ba,map as _0x19b406,shareReplay as _0xc9a95a,take as _0x152593,of as _0x3513a6,debounceTime as _0x14769f,filter as _0x31d56e,switchMap as _0x3f2856,combineLatest as _0x23e22f,concatMap as _0x323320,mapTo as _0x15c3e4}from'rxjs';import{map as _0x4fff71,take as _0x3e9e57,filter as _0x4acb53,delay as _0x26d973,throttleTime as _0x45f9c8,takeUntil as _0x2fb1c6,switchMap as _0x1b4e6e}from'rxjs/operators';import{MessageType as _0x3346c3,Tooltip as _0x541e06}from'@univerjs/design';import{IBeforeCloseService as _0x1af4f8,IMessageService as _0x3d62ab,INotificationService as _0xfb5137,useObservable as _0x4ed86e,BuiltInUIPart as _0x5a5d2e,IUIPartsService as _0x20efd8}from'@univerjs/ui';import{HTTPService as _0x1f969a,WebSocketService as _0x409d10,MergeInterceptorFactory as _0x278d53,HTTPRequest as _0x5d00a0,UniverNetworkPlugin as _0x1cb5df,ThresholdInterceptorFactory as _0x423818}from'@univerjs/network';import{CollaborationEvent as _0x11fad5,parseChangesetToProtocol as _0x41e7c5,ISnapshotServerService as _0x14d819,isTransformMutationFailure as _0x285096,isTransformMutationsWithChangesetSuccess as _0x5889b9,ITransformService as _0x52d7ce,RevisionService as _0x4fd1c9,mapDocumentTypeToUniverType as _0x3c069a,isTransformChangesetsSuccess as _0x3d0ed3,CompressMutationService as _0x4cb297,parseProtocolChangeset as _0xa4f3f2,SnapshotService as _0x46d986,textEncoder as _0x1d4cfa,b64DecodeUnicode as _0x377955,isTransformMutationsWithChangesetFailure as _0x217db0,UniverCollaborationPlugin as _0x6e0839}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x52f1e7}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x5d7b6a,DocStateChangeManagerService as _0x48837f,NodePositionConvertToCursor as _0x3c7431,isValidRectRange as _0x43c7a3,NodePositionConvertToRectRange as _0x4f4671,TEXT_RANGE_LAYER_INDEX as _0x50117b,SetDocZoomRatioOperation as _0x1deacf}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x2bff71,SetSelectionsOperation as _0x353cdd,InsertSheetMutation as _0x2cf966,EmptyMutation as _0x3a5982,WorkbookEditablePermission as _0x474cc1,RefRangeService as _0xde0931,EffectRefRangId as _0xa8218f,handleIRemoveRow as _0xf3a846,handleIRemoveCol as _0x4d51bf,handleMoveRange as _0x5d0cad,handleInsertRow as _0x7a3f4a,handleInsertRangeMoveRight as _0x34371c,handleInsertRangeMoveDown as _0x1fb15f,handleInsertCol as _0x3aa181,handleDeleteRangeMoveUp as _0x22ef83,handleDeleteRangeMoveLeft as _0x1d3f51,runRefRangeMutations as _0x273f04,SetWorksheetActivateCommand as _0x3b198a}from'@univerjs/sheets';import{IRenderManagerService as _0x1174bb,Shape as _0x43823d,Rect as _0xb14f1a,getColor as _0x31f167,RegularPolygon as _0x52dd6d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x2f6881,Vector2 as _0x544ae7}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2b3617,RichTextEditingMutation as _0x56e718,SetTextSelectionsOperation as _0x3d993c,DocSkeletonManagerService as _0x365ae3}from'@univerjs/docs';import{ImageSourceType as _0x1fa77f,ImageUploadStatusType as _0x587faa,IImageIoService as _0x438f34}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x15a004,serializeRangeWithSheet as _0x1a1baa}from'@univerjs/engine-formula';function _0x24ad(_0x5cef0e,_0x54e467){const _0x11c318=_0x11c3();return _0x24ad=function(_0x24ade5,_0xe7270a){_0x24ade5=_0x24ade5-0xa7;let _0x17f853=_0x11c318[_0x24ade5];return _0x17f853;},_0x24ad(_0x5cef0e,_0x54e467);}import{SheetSkeletonManagerService as _0x6a00ec,VIEWPORT_KEY as _0x1da636,getCoordByCell as _0x567630,getSheetObject as _0x3431ca,SheetPermissionInitController as _0x375124}from'@univerjs/sheets-ui';import _0xf30867,{forwardRef as _0x29d861,useRef as _0x4e4b77,createElement as _0x3a8e6c,useCallback as _0x31a010}from'react';import{IRemoteInstanceService as _0x2fde59}from'@univerjs/rpc';import{getAttachHeader as _0x10b4cc}from'@univerjs-pro/license';const gn='SNAPSHOT_SERVER_URL_KEY',Sn=_0x21e9c1(0x38b),pn=_0x21e9c1(0x228),Aa=_0x21e9c1(0xc1),vn=0x7d0,In=_0x21e9c1(0x261),En='ws://127.0.0.1:8000/universer-api/comb/connect',Cn=_0x21e9c1(0x370),bn=0x7530,Ls=_0x21e9c1(0x1f1),$s=0x4e20,Tn=0x4e20,Rn='RETRY_CONNECTING_MAX_COUNT',On=0x3,Dn=_0x21e9c1(0x29c),wn=0x3e8,Pn='COLLAB_SUBMIT_CHANGESET_URL',yn=_0x21e9c1(0x1a5),Un=_0x21e9c1(0x128),Nn='/universer-api/oidc/authpage';var js=(_0x24e476=>(_0x24e476[_0x24e476['UNDEFINED']=0x0]=_0x21e9c1(0x1e8),_0x24e476[_0x24e476['OK']=0x1]='OK',_0x24e476[_0x24e476[_0x21e9c1(0x39f)]=0x2]=_0x21e9c1(0x39f),_0x24e476[_0x24e476[_0x21e9c1(0x1be)]=0x3]=_0x21e9c1(0x1be),_0x24e476[_0x24e476['NOT_FOUND']=0x4]=_0x21e9c1(0x16a),_0x24e476[_0x24e476[_0x21e9c1(0x305)]=0x5]=_0x21e9c1(0x305),_0x24e476[_0x24e476[_0x21e9c1(0xef)]=0x6]=_0x21e9c1(0xef),_0x24e476[_0x24e476[_0x21e9c1(0x42b)]=0x7]=_0x21e9c1(0x42b),_0x24e476[_0x24e476[_0x21e9c1(0x3ef)]=0x8]=_0x21e9c1(0x3ef),_0x24e476[_0x24e476['COMPLETION_FINISHED']=0x9]=_0x21e9c1(0x3b0),_0x24e476[_0x24e476['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x21e9c1(0x121),_0x24e476[_0x24e476[_0x21e9c1(0x145)]=0x1771]=_0x21e9c1(0x145),_0x24e476[_0x24e476[_0x21e9c1(0x3a6)]=0x1772]=_0x21e9c1(0x3a6),_0x24e476[_0x24e476['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x21e9c1(0x1c2),_0x24e476[_0x24e476[_0x21e9c1(0x3e2)]=0x1b59]=_0x21e9c1(0x3e2),_0x24e476[_0x24e476['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x21e9c1(0x2bb),_0x24e476[_0x24e476['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x21e9c1(0x37d),_0x24e476[_0x24e476[_0x21e9c1(0x313)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x24e476[_0x24e476[_0x21e9c1(0x3be)]=0x1b5d]=_0x21e9c1(0x3be),_0x24e476[_0x24e476[_0x21e9c1(0x1e7)]=0x1f41]=_0x21e9c1(0x1e7),_0x24e476[_0x24e476[_0x21e9c1(0x380)]=0x2329]=_0x21e9c1(0x380),_0x24e476[_0x24e476[_0x21e9c1(0x16f)]=0x232a]=_0x21e9c1(0x16f),_0x24e476[_0x24e476[_0x21e9c1(0x29d)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x24e476[_0x24e476[_0x21e9c1(0x3da)]=0x232c]=_0x21e9c1(0x3da),_0x24e476[_0x24e476[_0x21e9c1(0x340)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x24e476[_0x24e476[_0x21e9c1(0x235)]=0x2711]=_0x21e9c1(0x235),_0x24e476[_0x24e476[_0x21e9c1(0x163)]=0x2712]=_0x21e9c1(0x163),_0x24e476[_0x24e476[_0x21e9c1(0x3b7)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x24e476[_0x24e476[_0x21e9c1(0x420)]=0x2714]=_0x21e9c1(0x420),_0x24e476[_0x24e476[_0x21e9c1(0x37e)]=-0x1]='UNRECOGNIZED',_0x24e476))(js||{}),k=(_0x5b6af7=>(_0x5b6af7[_0x5b6af7[_0x21e9c1(0x405)]=0x0]=_0x21e9c1(0x405),_0x5b6af7[_0x5b6af7[_0x21e9c1(0x3b2)]=0x1]=_0x21e9c1(0x3b2),_0x5b6af7[_0x5b6af7['UNIVER_SHEET']=0x2]=_0x21e9c1(0xc3),_0x5b6af7[_0x5b6af7[_0x21e9c1(0x2f5)]=0x3]='UNIVER_SLIDE',_0x5b6af7[_0x5b6af7[_0x21e9c1(0x3bc)]=0x4]='UNIVER_PROJECT',_0x5b6af7[_0x5b6af7['UNRECOGNIZED']=-0x1]=_0x21e9c1(0x37e),_0x5b6af7))(k||{}),I=(_0x3f2e3f=>(_0x3f2e3f[_0x3f2e3f[_0x21e9c1(0x194)]=0x0]=_0x21e9c1(0x194),_0x3f2e3f[_0x3f2e3f[_0x21e9c1(0x1e0)]=0x1]=_0x21e9c1(0x1e0),_0x3f2e3f[_0x3f2e3f[_0x21e9c1(0x1f0)]=0x2]=_0x21e9c1(0x1f0),_0x3f2e3f[_0x3f2e3f[_0x21e9c1(0x215)]=0x3]=_0x21e9c1(0x215),_0x3f2e3f[_0x3f2e3f[_0x21e9c1(0x2f3)]=0x4]=_0x21e9c1(0x2f3),_0x3f2e3f[_0x3f2e3f[_0x21e9c1(0xca)]=0x5]=_0x21e9c1(0xca),_0x3f2e3f[_0x3f2e3f['RECV']=0x6]='RECV',_0x3f2e3f[_0x3f2e3f['UNRECOGNIZED']=-0x1]=_0x21e9c1(0x37e),_0x3f2e3f))(I||{}),Vt=(_0x27d24a=>(_0x27d24a[_0x27d24a[_0x21e9c1(0x205)]=0x0]=_0x21e9c1(0x205),_0x27d24a[_0x27d24a['OK']=0x1]='OK',_0x27d24a[_0x27d24a[_0x21e9c1(0x1e3)]=0x2]='FAIL',_0x27d24a[_0x27d24a[_0x21e9c1(0x37e)]=-0x1]=_0x21e9c1(0x37e),_0x27d24a))(Vt||{}),xs=(_0x4f515e=>(_0x4f515e[_0x4f515e[_0x21e9c1(0x21d)]=0x0]=_0x21e9c1(0x21d),_0x4f515e[_0x4f515e[_0x21e9c1(0x2bd)]=0x1]=_0x21e9c1(0x2bd),_0x4f515e[_0x4f515e[_0x21e9c1(0x10d)]=0x2]=_0x21e9c1(0x10d),_0x4f515e[_0x4f515e['UnitEmbedded']=0x3]=_0x21e9c1(0x1eb),_0x4f515e[_0x4f515e['UnitSnapshot']=0x4]=_0x21e9c1(0x2ee),_0x4f515e[_0x4f515e['UNRECOGNIZED']=-0x1]=_0x21e9c1(0x37e),_0x4f515e))(xs||{});const $=_0x21e9c1(0xfb),Mn={};function An(_0x125cea){const _0x406c01=_0x21e9c1;var _0x315841,_0x1480c2,_0x1e6943,_0x18a952;const _0x236219=_0x125cea[_0x406c01(0x42f)],_0xc3f390=JSON[_0x406c01(0x42e)](_0x236219);switch(_0xc3f390['cmd']){case I[_0x406c01(0xca)]:case I['HELLO']:{const _0xadabae=_0xc3f390[_0x406c01(0x16e)];return{..._0xc3f390,'data':_0xadabae,'cmd':_0xc3f390[_0x406c01(0x3d7)]};}case I[_0x406c01(0x1f0)]:{const _0x213b19=_0xc3f390[_0x406c01(0x2a4)];return{..._0xc3f390,'data':_0x213b19,'cmd':_0xc3f390[_0x406c01(0x3d7)]};}case I['RECV']:{const _0x521cd3=_0xc3f390[_0x406c01(0x2bf)];switch(_0x521cd3['eventID']){case _0x11fad5[_0x406c01(0x12d)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':(_0x315841=_0x521cd3[_0x406c01(0x1ff)])==null?void 0x0:_0x315841['cs']},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5['CHANGESET_ACK']:return{..._0xc3f390,'data':{..._0x521cd3,'data':(_0x1480c2=_0x521cd3[_0x406c01(0x1ad)])==null?void 0x0:_0x1480c2['cs']},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5[_0x406c01(0x374)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':(_0x1e6943=_0x521cd3[_0x406c01(0x191)])==null?void 0x0:_0x1e6943['cs']},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5[_0x406c01(0x27b)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':(_0x18a952=_0x521cd3[_0x406c01(0x102)])==null?void 0x0:_0x18a952['cs']},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5[_0x406c01(0x306)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0x343)]},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5[_0x406c01(0x277)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0x41a)]},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5[_0x406c01(0x271)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0x321)]},'cmd':_0xc3f390['cmd']};case _0x11fad5['LIVESHARE_NEW_HOST']:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0x2a0)]},'cmd':_0xc3f390['cmd']};case _0x11fad5[_0x406c01(0x1aa)]:case _0x11fad5[_0x406c01(0x309)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0x28d)]},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5[_0x406c01(0x133)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0x2a0)]},'cmd':_0xc3f390['cmd']};case _0x11fad5['MSG_FOR_ERROR']:return{..._0xc3f390,'data':_0x521cd3,'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5[_0x406c01(0x1e2)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0x39b)]},'cmd':_0xc3f390['cmd']};case _0x11fad5[_0x406c01(0x294)]:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3[_0x406c01(0xc9)]},'cmd':_0xc3f390[_0x406c01(0x3d7)]};case _0x11fad5['SHOULD_CLOSE_CONN']:return{..._0xc3f390,'data':{..._0x521cd3,'data':_0x521cd3['shouldCloseConn']},'cmd':_0xc3f390['cmd']};default:return _0xc3f390;}}default:return _0xc3f390;}}function Ln(_0x3a0403){const _0x33885c=_0x21e9c1;switch(_0x3a0403[_0x33885c(0x3d7)]){case I['HEARTBEAT']:case I[_0x33885c(0x1e0)]:return JSON[_0x33885c(0x1cd)]({'cmd':_0x3a0403[_0x33885c(0x3d7)],'routeKey':_0x3a0403[_0x33885c(0x32c)]});case I[_0x33885c(0x2f3)]:{let _0x52f843;switch(_0x3a0403[_0x33885c(0x42f)]['eventID']){case _0x11fad5[_0x33885c(0x306)]:{_0x52f843={'eventID':_0x11fad5['UPDATE_CURSOR'],'updateCursorEvent':_0x3a0403[_0x33885c(0x42f)][_0x33885c(0x42f)]};break;}case _0x11fad5[_0x33885c(0x271)]:{_0x52f843={'eventID':_0x11fad5[_0x33885c(0x271)],'leaveEvent':_0x3a0403[_0x33885c(0x42f)][_0x33885c(0x42f)]};break;}case _0x11fad5[_0x33885c(0x277)]:{_0x52f843={'eventID':_0x11fad5['USERS_ENTER'],'joinEvent':_0x3a0403[_0x33885c(0x42f)][_0x33885c(0x42f)]};break;}case _0x11fad5['LIVESHARE_NEW_HOST']:{_0x52f843={'eventID':_0x11fad5[_0x33885c(0x19f)],'liveShareNewHost':_0x3a0403[_0x33885c(0x42f)]['data']};break;}case _0x11fad5['LIVESHARE_OPERATION']:{_0x52f843={'eventID':_0x11fad5['LIVESHARE_OPERATION'],'liveShareOperation':_0x3a0403[_0x33885c(0x42f)][_0x33885c(0x42f)]};break;}case _0x11fad5[_0x33885c(0x133)]:{_0x52f843={'eventID':_0x11fad5[_0x33885c(0x133)],'liveShareTerminate':_0x3a0403[_0x33885c(0x42f)][_0x33885c(0x42f)]};break;}case _0x11fad5[_0x33885c(0x111)]:{_0x52f843={'eventID':_0x11fad5['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x3a0403[_0x33885c(0x42f)][_0x33885c(0x42f)]};break;}case _0x11fad5[_0x33885c(0x1aa)]:{_0x52f843={'eventID':_0x11fad5[_0x33885c(0x1aa)]};break;}default:_0x52f843={'eventID':_0x3a0403['data'][_0x33885c(0x435)]};}return JSON['stringify']({'cmd':_0x3a0403['cmd'],'routeKey':_0x3a0403[_0x33885c(0x32c)],'collaMsg':_0x52f843});}case I[_0x33885c(0x1f0)]:return JSON[_0x33885c(0x1cd)]({'cmd':_0x3a0403['cmd'],'routeKey':_0x3a0403[_0x33885c(0x32c)],'joinReq':_0x3a0403[_0x33885c(0x42f)]});case I['LEAVE']:return JSON['stringify']({'cmd':_0x3a0403[_0x33885c(0x3d7)],'routeKey':_0x3a0403['routeKey'],'leaveReq':_0x3a0403[_0x33885c(0x42f)]});default:throw new Error(_0x33885c(0x21f));}}var $n=Object[_0x21e9c1(0x155)],jn=Object[_0x21e9c1(0x241)],xn=(_0x58d6f0,_0x56cf13,_0xdeb3cf,_0x27aef7)=>{const _0x289c9=_0x21e9c1;for(var _0x3876aa=_0x27aef7>0x1?void 0x0:_0x27aef7?jn(_0x56cf13,_0xdeb3cf):_0x56cf13,_0x1d85c2=_0x58d6f0[_0x289c9(0x2a7)]-0x1,_0x1e320c;_0x1d85c2>=0x0;_0x1d85c2--)(_0x1e320c=_0x58d6f0[_0x1d85c2])&&(_0x3876aa=(_0x27aef7?_0x1e320c(_0x56cf13,_0xdeb3cf,_0x3876aa):_0x1e320c(_0x3876aa))||_0x3876aa);return _0x27aef7&&_0x3876aa&&$n(_0x56cf13,_0xdeb3cf,_0x3876aa),_0x3876aa;},Oe=(_0x2f2bf2,_0xab8458)=>(_0x26a297,_0x51a73a)=>_0xab8458(_0x26a297,_0x51a73a,_0x2f2bf2);const Hs=_0x68fae6(_0x21e9c1(0x292));function Hn(_0x34cdf7,_0x158e1c,_0x2f3598){const _0x3fed5d=_0x21e9c1;return _0x34cdf7+'/'+_0x158e1c+_0x3fed5d(0x25a)+_0x2f3598+_0x3fed5d(0x34d);}let Ct=class extends _0x4aed79{constructor(_0x203fda,_0x74b1,_0x33df16,_0x6bb031,_0x50f09f){const _0x2f17d3=_0x21e9c1;super(),this['_http']=_0x203fda,this[_0x2f17d3(0x220)]=_0x74b1,this[_0x2f17d3(0x168)]=_0x33df16,this['_logService']=_0x6bb031,this[_0x2f17d3(0x2ae)]=_0x50f09f;}['createSocket'](_0x4bd6fa){const _0x5ab262=_0x21e9c1,_0x43e20f=this[_0x5ab262(0x220)][_0x5ab262(0x143)](_0x4bd6fa);if(!_0x43e20f)throw new Error(_0x5ab262(0x388));const _0x4b2d85=new _0x40f142(),_0x1b123a=new _0x22bff9();_0x4b2d85[_0x5ab262(0x378)](_0x43e20f[_0x5ab262(0x39c)][_0x5ab262(0xd9)](_0x276723=>_0x1b123a[_0x5ab262(0x175)](_0x276723))),_0x4b2d85['add'](_0x3117b1(()=>_0x1b123a['complete']()));const _0x430e21=new _0x22bff9();_0x4b2d85[_0x5ab262(0x378)](_0x43e20f[_0x5ab262(0x36d)][_0x5ab262(0xd9)](_0x35d646=>_0x430e21[_0x5ab262(0x175)](_0x35d646))),_0x4b2d85[_0x5ab262(0x378)](_0x3117b1(()=>_0x430e21[_0x5ab262(0x218)]()));const _0x5ca568=new _0x22bff9();_0x4b2d85[_0x5ab262(0x378)](_0x43e20f['message$']['subscribe'](_0x26c505=>{const _0x210808=_0x5ab262,_0x4d7325=An(_0x26c505);_0x5ca568[_0x210808(0x175)](_0x4d7325);})),_0x4b2d85[_0x5ab262(0x378)](_0x3117b1(()=>_0x5ca568[_0x5ab262(0x218)]()));let _0xc980ff;const _0x5be016=()=>{const _0x524a5d=_0x5ab262;_0x430e21[_0x524a5d(0x175)](new Event('connection\x20error')),_0x1b123a['next'](new CloseEvent(_0x524a5d(0x316))),_0xc980ff[_0x524a5d(0x15d)]();};return _0xc980ff={'memberID':'','close$':_0x1b123a[_0x5ab262(0xb6)](),'error$':_0x430e21[_0x5ab262(0xb6)](),'open$':_0x43e20f[_0x5ab262(0xbf)],'message$':_0x5ca568['asObservable'](),'send':_0x1ef638=>{const _0x311ac6=_0x5ab262;if(_0x1ef638[_0x311ac6(0x3d7)]===I['INGEST']){if(_0x1ef638[_0x311ac6(0x42f)]['eventID']===_0x11fad5[_0x311ac6(0x179)]){this[_0x311ac6(0x197)](_0xc980ff,_0x1ef638[_0x311ac6(0x42f)])[_0x311ac6(0x37b)](_0x5ad200=>{const _0x5447c0=_0x311ac6;this['_logService'][_0x5447c0(0xeb)](_0x5ad200),_0x5be016();});return;}if(_0x1ef638['data'][_0x311ac6(0x435)]===_0x11fad5[_0x311ac6(0x15b)]){const _0x1f3b8f=_0x1ef638[_0x311ac6(0x42f)];this['_fetchMissChangesets'](_0x1f3b8f)[_0x311ac6(0x16d)](_0x14a006=>{const _0x1c2836=_0x311ac6;_0x5ca568['next']({'cmd':I[_0x1c2836(0x299)],'code':Vt['OK'],'routeKey':_0x1f3b8f['data'][_0x1c2836(0x33d)],'routeType':'','data':{'eventID':_0x11fad5['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x14a006}}});})[_0x311ac6(0x37b)](_0x2eaf99=>{this['_logService']['error'](_0x2eaf99),_0x5be016();});return;}}_0x43e20f['send'](Ln(_0x1ef638));},'close':()=>{const _0xd1e60b=_0x5ab262;_0x43e20f[_0xd1e60b(0x15d)](),_0x4b2d85[_0xd1e60b(0x335)]();}},_0xc980ff;}async['_submitChangeset'](_0x43d9d3,_0x20b04b){const _0x5d4010=_0x21e9c1;var _0x2f9bcd,_0x3d26d7;const {unitType:_0x4c05c4,unitID:_0x38fbea,changeset:_0x586cd4}=_0x20b04b[_0x5d4010(0x42f)],_0x4715fe={'unitID':_0x38fbea,'memberID':_0x43d9d3[_0x5d4010(0x259)],'type':_0x4c05c4,'changeset':_0x41e7c5(_0x586cd4)},_0x229531=this['_configService'][_0x5d4010(0x19d)](Pn),_0x48f9c9=this['_configService'][_0x5d4010(0x19d)]($),_0x2e9d2a=Hn((_0x3d26d7=(_0x2f9bcd=_0x48f9c9==null?void 0x0:_0x48f9c9[_0x5d4010(0x101)])!=null?_0x2f9bcd:_0x229531)!=null?_0x3d26d7:yn,_0x4c05c4,_0x38fbea);try{await this['_http'][_0x5d4010(0x264)](_0x2e9d2a,{'body':_0x4715fe});}catch(_0x1b1546){throw this[_0x5d4010(0x42c)][_0x5d4010(0xeb)](_0x5d4010(0x130),_0x5d4010(0x1ec)),_0x1b1546;}}async['_fetchMissChangesets'](_0x39b5bb){const _0x3cf73c=_0x21e9c1,{unitID:_0xe47823,from:_0x35127d,to:_0x1e1285,unitType:_0x503579}=_0x39b5bb['data'];return(await this[_0x3cf73c(0x2ae)][_0x3cf73c(0xae)]({'metadata':void 0x0},{'unitID':_0xe47823,'type':_0x503579,'from':_0x35127d,'to':_0x1e1285}))[_0x3cf73c(0x3d2)];}};Ct=xn([Oe(0x0,_0xc5d09(_0x1f969a)),Oe(0x1,_0xc5d09(_0x409d10)),Oe(0x2,_0x232b04),Oe(0x3,_0x3b7308),Oe(0x4,_0x14d819)],Ct);const kn=_0x21e9c1(0xe6);function Bn(_0x242efe){const _0x46a56b=_0x21e9c1;return JSON[_0x46a56b(0x1cd)](_0x242efe)[_0x46a56b(0x2a7)];}class ks{constructor(){const _0x3d66a8=_0x21e9c1;l(this,'_commentUpdate$',new _0x22bff9()),l(this,'commentUpdate$',this[_0x3d66a8(0x3d9)][_0x3d66a8(0xb6)]());}[_0x21e9c1(0x28c)](_0x5c24a7){const _0x4fa633=_0x21e9c1;this[_0x4fa633(0x3d9)][_0x4fa633(0x175)](_0x5c24a7);}}var Vn=Object[_0x21e9c1(0x155)],Fn=Object['getOwnPropertyDescriptor'],Wn=(_0x16464e,_0x18416e,_0x4757bd,_0x3c57ad)=>{const _0x1184ca=_0x21e9c1;for(var _0x5a1ca0=_0x3c57ad>0x1?void 0x0:_0x3c57ad?Fn(_0x18416e,_0x4757bd):_0x18416e,_0x3369fb=_0x16464e[_0x1184ca(0x2a7)]-0x1,_0x3558cf;_0x3369fb>=0x0;_0x3369fb--)(_0x3558cf=_0x16464e[_0x3369fb])&&(_0x5a1ca0=(_0x3c57ad?_0x3558cf(_0x18416e,_0x4757bd,_0x5a1ca0):_0x3558cf(_0x5a1ca0))||_0x5a1ca0);return _0x3c57ad&&_0x5a1ca0&&Vn(_0x18416e,_0x4757bd,_0x5a1ca0),_0x5a1ca0;},as=(_0x854332,_0x1f91fc)=>(_0x8df83e,_0x45b139)=>_0x1f91fc(_0x8df83e,_0x45b139,_0x854332);let ae=class extends _0x4aed79{constructor(_0x4834f8,_0x23f37e){const _0x54f63d=_0x21e9c1;super(),l(this,'_roomMembers',new Map()),(this[_0x54f63d(0x3ae)]=_0x4834f8,this['_userManagerService']=_0x23f37e,this[_0x54f63d(0x1fd)](_0x3117b1(_0x7be1ed(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3626c8['UNIVER_SHEET'])[_0x54f63d(0xcb)](_0x4fff71(_0x58e675=>_0x58e675[_0x54f63d(0x362)]())),this[_0x54f63d(0x3ae)]['getTypeOfUnitDisposed$'](_0x3626c8[_0x54f63d(0x3b2)])['pipe'](_0x4fff71(_0x2ced3b=>_0x2ced3b[_0x54f63d(0x362)]())),this[_0x54f63d(0x3ae)][_0x54f63d(0x24e)](_0x3626c8[_0x54f63d(0x2f5)])[_0x54f63d(0xcb)](_0x4fff71(_0x22011d=>_0x22011d[_0x54f63d(0x362)]())))[_0x54f63d(0xd9)](_0x4f9b84=>this[_0x54f63d(0x260)](_0x4f9b84)))));}[_0x21e9c1(0x2c6)](_0x43b82b){const _0x24b8e7=_0x21e9c1;this[_0x24b8e7(0x247)][_0x24b8e7(0x2c6)](_0x43b82b);}[_0x21e9c1(0x18b)](){const _0x393c79=_0x21e9c1;return this[_0x393c79(0x247)]['getCurrentUser']();}[_0x21e9c1(0x202)](_0x5c23c1,_0x30124e){const _0x3e1699=_0x21e9c1;let _0x5dfd03=this[_0x3e1699(0x18f)][_0x3e1699(0xdc)](_0x5c23c1);_0x5dfd03||(_0x5dfd03=new Gn(),this['_roomMembers'][_0x3e1699(0x2c4)](_0x5c23c1,_0x5dfd03)),_0x5dfd03[_0x3e1699(0x202)](_0x30124e);}[_0x21e9c1(0xff)](_0x1ab5db,_0x4ed96c){const _0x10603d=_0x21e9c1,_0x434263=this[_0x10603d(0x18f)][_0x10603d(0xdc)](_0x1ab5db);_0x434263&&_0x434263[_0x10603d(0xff)](_0x4ed96c);}[_0x21e9c1(0x1cc)](_0x36d739){const _0x29f25f=_0x21e9c1;return this['_roomMembers'][_0x29f25f(0xdc)](_0x36d739);}[_0x21e9c1(0x1b7)](_0x5b282a,_0x2e0bb1){const _0x42e52f=_0x21e9c1,_0x305b0a=this[_0x42e52f(0x18f)][_0x42e52f(0xdc)](_0x5b282a);if(_0x305b0a)return _0x305b0a[_0x42e52f(0x1b7)](_0x2e0bb1);}[_0x21e9c1(0x260)](_0x5151fd){const _0xf786f8=_0x21e9c1,_0x524432=this['_roomMembers'][_0xf786f8(0xdc)](_0x5151fd);_0x524432&&(_0x524432[_0xf786f8(0x335)](),this[_0xf786f8(0x18f)][_0xf786f8(0x156)](_0x5151fd));}[_0x21e9c1(0x335)](){const _0x5630c5=_0x21e9c1;this[_0x5630c5(0x18f)][_0x5630c5(0x20d)](_0x4f9562=>_0x4f9562[_0x5630c5(0x335)]()),this[_0x5630c5(0x18f)][_0x5630c5(0x1f4)]();}};function _0x11c3(){const _0x4e2fdc=['_collabCursorState$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FETCH_MISS','_telemetryService','493821kPepNR','_timeoutTimer','changesets','_removeCollabCursors','rev','UNIVER_COLLABORATION_CLIENT_PLUGIN','onMissingChangesets','cmd','getActiveRange','_commentUpdate$','LICENSE_EXPORT_SIZE_EXCEEDED','_selfUnitIDs','awaiting_with_pending','patch','apply','_createInitialState','originalMeta','_socketService','APPLY_REJECT','_docSyncEditingCollabCursorService','bind','color','_shapes','getRangePointData','_onUserJoin','backgroundColor','cursorInfo$','indexOf','labelPosition','_clearRedo','params','TOO_MANY_REQUESTS','onPointerMove$','onRendered','_saveTaskMap','hide','signUrlServerUrl','getActiveSheet','_renderManagerService','executeCommand','sendChangesetTimeout','_docTransformSelectionsService','addObjects','conflict.title','BASE64','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','registerBeforeClose','getUnit','objects','on-line-single_clip0_910_349','unsubscribe','urlChange$','registerRenderModule','UNIVER_UNKNOWN','revision','\x0aAfter:\x20','_labelPosition','onCommandExecuted','_transformService','prototype','_render','clipPath','_initResize','split','_lastPointer','transformRemoteChangeset','create','batchAllowed','currentColor','_updateStatus','flatMap','_collabSessionService','UUID','_replayCachedMutations','joinEvent','members','pending','transformStack\x20failed!','engine','disposeUnit','YUUMI_SUBSCRIPTION_NOT_FOUND','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_collaborationPaused','title','session.connection-failed','ERROR_IMAGE','headers','_getSaveTimeout','saveSheetBlock','_transitionLocked','clearTimeout','INVALID_ARGUMENT','_logService','_onRemoteACK','parse','data','_send','object','_onUserLeave','_startCollaboration','getUnitOnRev','eventID','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_memberService','{fileID}','xlink:href','getCellPositionByOffset','/collaborator','_getLoginPath','SYNCED','fetchMissingChangesets','toLowerCase','_transformUndoRedoStack','univer-online-status','evenodd','telemetry\x20info\x20is\x20not\x20initialized','unitId\x20is\x20not\x20found','setWaitCount','asObservable','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','replaceTextRanges','pauseCollaboration','getInterceptPoints','init','action','width','top','open$','collaboration-client.offline-data-not-saved','SEND_CHANGESET_TIMEOUT','appendMutation','UNIVER_SHEET','_getDownloadEndpointURL','onStateChange','target','m2Prime','concat','updatePermissionObjEvent','HEARTBEAT','pipe','collaboration.closeRoom','getRandomValues','_loadSheet','_retryCount','_getCtorByUniverType','assign','lineTo','_sessionStatus$','\x20-\x20','uploadFileServerUrl','#FFF','collabWebSocketUrl','getSheetId','subscribe','RemoveColCommandId','_instanceService','get','_httpService','endRow','div','DEFAULT_FILE_NAME','image/bmp','getImage','NOT_COLLAB','_initModules','getParam','collaboration_new_changeset','dispose$','onload','updateCollaborator','_onOffline','error','getCurrent','initWorkbookPermissionChange','_sendHeartbeatTimer','ALREADY_EXISTS','sheets','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getRelativeToViewportCoord','snapshot','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','auth.needGotoLoginAlert','font','_replaceFileID','_onFetchMissResult','registerComponent','image/gif','collaboration-client.config','_updateSubUnitFromURLParams','rng','reconnect','removeMember','addObject','collabSubmitChangesetUrl','csRejEvent','_initStatusComponent','_cursors','_handleHover','_members','startRow','interceptor','hidden','href','M0\x200H16V16H0z','_commentService','HttpExport','size','_onRefRangeChange','_cursor','LIVESHARE_REQUEST_HOST','_changesetSessionId','_drawAnchor','_event$','getSheetBySheetId','AUTHZ_URL_KEY','_scheduleClearOtherTimer','COMPRESS_MUTATION_APPLY','/universer-api/stream/file/upload','_cachedData','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_pendingMutations','_undoRedoService','/universer-api/snapshot/','uni.network.url-service','transformChangesets','CHANGESET_REVISION_CONFILICT','m1Prime','310126VXIUYe','toRgbString','_colorAssignService','POST','JOINING','LOGIN_URL_KEY','filter','PENDING','name','socket$','PERMISSION_REJ','addEventListener','_unitOnClients','[CollaborationSession]','_updateLocalCursor','arc','LIVESHARE_TERMINATE','_saveCache','_acknowledgedAwaitingChangeset','onMissedChangesetFetched','_getAPIPrefix','_online','_init','_syncEditingCollabCursor','_getAnchorBounding','CHANGESET_ACK','exhaustSavingTask','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','blue400','image/jpeg','[CollaborationEntity]','c2Prime','createSocket','gold400','SNAPSHOT_INVALID_SNAPSHOT','getOffsetConfig','_transformIMECache','_localeService','_commandService','VIEW_MAIN','_collaborationSessionService','_collaborationController','_transformStack','message$','_color','_hovered','findNodePositionByCharIndex','_status$','_initCommandExecutedListener','colorChannel1','defineProperty','delete','history','column','/resources','Error\x20on\x20receiving\x20event','FETCH_MISSING','number','close','_syncEditingCollabCursorService','setAlpha','_applyRemoteChangeset','setParam','session.will-retry','YUUMI_URL_COL_OUT_OF_RANGE','_substituteUndoStack','roles','encodeURIComponent','\x20in\x20_schedule.','_configService','createInstance','NOT_FOUND','editingUnit','_updateState','then','infoRsp','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_handler','off-line-single','_redoStacks','_beforeCloseService','[PendingState]:\x20received\x20rejection.','next','_colorIndex','updateOfflineData','_listenToOnlineEvent','SUBMIT_CHANGESET','change$','find','downloadEndpointUrl','_cursorShapes','userID','selection','storage','HEADER_MENU','hasOwnProperty','_substituteRedoStack','Error','subUnitId','syncEditingCollabCursor','_backgroundColor','has','visibilityState','getSheetBlock','getCurrentUser','_remoteChangesetQueue','setTimeout','save\x20fail\x20reason\x20is\x20','_roomMembers','replace','newCsEvent','4OpiotZ','registerHTTPInterceptor','UNKNOWN_CMD','_waitCount','_type','_submitChangeset','_transformSelections','isActive','[FetchMissState]','#fff','MSG_FOR_ERROR','getConfig','485248qumpRe','LIVESHARE_NEW_HOST','_initMergeInterceptor','_collabCursorController','getCurrentUnitForType','_telemetryInfo','unit','/universer-api/comb','_transformRemoteChangesetByIMECache','_anchor','onTransformRemoteChangesetByIMECache','_rescheduleHeartbeat','LIVESHARE_FETCH_OPERATIONS','_disableEditing','/-/object/-/batch_allowed','csAckEvent','_change$','&source=','getWorkbookSelections','encode','onPointerEnter$','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','whenReady','getOwnPropertySymbols','_startTelemetryCollaborationNewChangeset','getMember','beginPath','collabStatus.synced','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_document','subscribeEvent','_heartbeatTimer','PERMISSION_DENIED','transformByState','defIds','extend','ENSURE_SNAPSHOT_EXECUTION','getCurrentRevOfUnit','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','/object','_clearUndo','_anchorDot','unshift','_tryReconnect','_config','univer-online','getRoom','stringify','toggleOnline','_eventUnsubscribe','AWAITING_WITH_PENDING','sessionStatus','saveOfflineData','FileId','1043IFNTyW','withCredentials','_clearCollaborationTimeoutTimer','getAncestorScale','_candidateSocket','svg','hovered','setItem','Unknown\x20user','searchParams','ERROR_IMAGE_TYPE','[UniverCollaborationClientPlugin]','HELLO','_scheduleCollaborationTimeoutTimer','COMMENT_UPDATE','FAIL','duration','_unlockTransition','newValue','CONNECTOR_DATA_TOO_LARGE','UNDEFINED','getValue','univer-offline','UnitEmbedded','submit\x20changeset\x20error!','focused$','_imageSourceCache','_notificationService','JOIN','HEARTBEAT_TIMEOUT','/rev/','symbol','clear','_onRecvEvent','assignAColorForMemberID','state$','_socketReady','_onConnectionFailed','status$','_onConnectionOpen','187848OnAcHb','disposeWithMe','_socket','permissionRejEvent','_scheduleSaving','isArray','updateMember','_startSheetCollabCursor','getSkeleton','UNKNOWN_CODE','getCollabCursors$','reduce','requireSession','_updateURLWithCurrentState','_showConflictNotification','_toggleOffline','current','forEach','height','setUndoRedoMutationParamsCache','_startDocCollabCursor','session','collabStatus.offline','_joinRoom','onTransformIME','LEAVE','_unitID','OffLineSingle','complete','debug','_getUploadFileURL','_ensureSubject','_cursorInfo$','Undefined','onSendChangeset','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_ws','_updateLocalCache','workbook','unitId','state','_uiPartsService','visibilitychange','put','SNAPSHOT_URL_KEY','editing\x20status\x20changed\x20to','InsertColCommandId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','1em','_waitForHeartbeatResponse','socket\x20open.','mutations','defs','every','getCurrentSelections','_initRequestHeader','bottom','YUUMI_UNABLE_LOAD_URL','text','_messageService','min','loadOfflineData','_handleHeartbeatEvent','onMouseMove','call','7510740dXcKCT','sid','generateRandomId','_sendingTimer','getOwnPropertyDescriptor','AWAITING','transform','docStateChange$','result','_snapshotService','_userManagerService','/fetchmissing?from=','red300','drawWith','_undoStacks','1940745OSwtNx','deleteCollaborator','getTypeOfUnitDisposed$','collabStatus.conflict','getRenderById','onlineStatus','_draw','responseType','getFocusedUnit','_entities','event$','_getCurrentRevision','setShapeProps','memberID','/unit/','_revisionService','type','getLatestCsReqIdBySid','onSyncEditingCollabCursor','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','_removeRoom','COLLAB_WEB_SOCKET_URL','_registerDependencies','collab-client.tooltip.reconnect','post','OFFLINE','setConfig','NO_OTHER_CLIENTS_EDITING','json','OnLineSingle','_context','permission.content','path','_registerRenderDependencies','getImageSourceCache','_onRemoteRejected','getCollabEntity','USERS_LEAVE','DeleteRangeMoveUpCommandId','0\x200\x2017\x2016','_onCombEvent','_state','_socket$','USERS_ENTER','toString','verdancy600','_injector','CHANGESET_REJ','getTypeOfUnitAdded$','_getAPIPrefixPath','_toggleOnline','collabStatus.fetchMiss','_awaitingChangeset','makeDirty','_singleActiveUnitService','allowed','transformIMECache','_onCursorUpdate','_assignedColors','?size=','_themeService','fetchMiss','entries','_roomMembers$','onCommentUpdate','liveShareOperation','_handleEvent','resend','getViewport','image/jpg','univer-pro.collaboration-client-socket-service','_clearLocalCache','UPDATE_PERMISSION_OBJ','IDLE','_shouldReportTelemetry','_isPermissionRej','location','RECV','getUnitStatus$','randomUUID','LOCAL_CACHE_INTERVAL','LICENSE_IMPORT_SIZE_EXCEEDED','isPermissionRej','_getSheetObject','liveShareNewHost','url','conflict.content','getMemberID','joinRsp','setActiveRange','doc.mutation.rich-text-editing','length','_sessions','_stopTelemetryCollaborationNewChangeset','code','createCollaborator','_tryEnsureSocket','10866fyKTzT','_snapshotServerService','_retryConnectingTimer','_state$','confirm','_drawTextRange','closeSession','SUCCUSS','loadSheet','transformMutation','show','/universer-api/file/{fileID}/sign-url','fetch_missing','c1Prime','APPLY_NON_SEQUENTIAL_REVISION','_refreshCollabCursors','HttpImport','/role','collaMsg','reqId','\x0aCurrent:\x20','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','collabStatus.notCollab','set','[PendingState]:\x20received\x20acknowledgement.','setCurrentUser','_compressMutationService','reverse','_permissionService','[DataLoaderController]','max','_updateCollabCursors','_unitStatus','_checkMissing','all','_docTransformIMECacheService','_transformPreviousActiveRange','unit-cache-','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_getScale','src','session.collaboration-timeout','_collaborationTimeoutTimer','_setupSubUnitSync','clearInterval','_urlService','unload','substring','status','...','PSEUDO_FETCH_MISSING_RESULT','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','row','now','send','conflict','_lockTransition','_listenToOfflineEvent','objectType','deepClone','getDocRanges','collaboration-session-retry','_exhaustRemoteChangesetQueue','append','_loadDoc','UnitSnapshot','collabCursorState$','_decreaseWaiting','COMPRESS_MUTATION_SEND','_onJoinRoomEvent','INGEST','translate(.97)','UNIVER_SLIDE','_onConflict','[CollaborationUndoRedoService]','_clearTimeoutTimer','collaboration.single-unit.warning','saveImage','enableOfflineEditing','fetching\x20missing\x20changesets\x20from\x20','addImageSourceCache','_changesetReqId','_socketMessageSubscription','x-univer-host','onPointerLeave$','onRemoteChangeset','incrementRevOfUnit','_refRangeService','UNAUTHENTICATED','UPDATE_CURSOR','startsWith','string','LIVESHARE_OPERATION','url(#$1','updatePermissionPoint','sessionStatus$','_queuedRemoteChangesets','random','awaitingChangeset','tag','transformMutationsWithChangeset','url(#off-line-single_clip0_910_343)','APPLY_PERMISSION_DENIED','awaiting','ONLINE','connection\x20error','_onRemoteChangeset','closePath','_scheduleHeartbeat','isEditing','onRemoteAck','_scheduleTimestamp','_removeClearOtherTimer','socketService','_getSendChangesetTimeout','toggleOffline','leaveEvent','fetchThroughInterceptors','_transformUndoredo','endColumn','from','_hideTimer','_session','_clearHeartbeatTimer','onlineStatusIcon','propertyIsEnumerable','baseRev','routeKey','_executeRemoteChangeset','createElement','selections','_entityInit$','_clearOtherTimers','socket\x20close','slice','file','dispose','/object/','readAsDataURL','setInterval','_getRedoStack','displayName','currentTheme$','[OfflineState]:\x20received\x20acknowledgement.','unitID','univerjs-icon\x20univerjs-icon-','_initEventListeners','LICENSE_DISTRO_REJECTED','registerRefRange','[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.','updateCursorEvent','[SyncedState]:\x20received\x20acknowledgement.','enableLocalCache','actions','onRemoteRej','collab-rect-range-','fromCollab','_initCloseConn','onTransformSelections','restore','/new_changes','_incrementRevisionNumber','_docSkeletonManagerService','_createHandler','reject','[OfflineState]:\x20received\x20rejection.','SHOULD_CLOSE_CONN','push','fillText','onStarting','transformSelections','registerOnClose','saveChangeset','[CollaborationSessionService]:\x20socket\x20error','activeSheet$','stopTime','_scene','map','cursorInfo','_initUnitPermissionChange','getTime','getUnitId','round','override','FromArray','_localCacheService','_id','getResourcesRequest','MUTATION','idSuffix','\x20to\x20','_clearScheduledTask','error$','fill','[CollaborationState]:\x20apply\x20error!','HEARTBEAT_INTERVAL','disableLocalCache','getUnhiddenWorksheets','saveSnapshot','NEW_CHANGESETS','includes','_initStatusListener','localeService','add','textRanges','getMergeData','catch','_name','APPLY_REVISION_CONFILICT','UNRECOGNIZED','body','LICENSE_MAX_UNITS_EXCEEDED','_drawRectRange','resourceIDs','_docSkeleton','56SkLIpT','requestParams','offline','icon','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','onTransformChange$','/allowed','/universer-api/snapshot','measureText','_throwTelemetryCollaborationNewChangeset','Warning','_disabled','values','none','_hover','startColumn','pushState','_getSnapshotAPIPrefix','/block/','OTHER_CLIENTS_EDITING','_getSignURL','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_textBubble','commentUpdateEvent','close$','roomMembers','[CollaborationSessionService]','INTERNAL_ERROR','fillStyle','unknown','univer-pro.collaboration-client.single-active-unit-service','_sheetTransformSelectionsService','_handleLeaveEvent','CONFLICT','SNAPSHOT_HAS_BEEN_REMOVED','getUnitType','_setupBeforeClosingHandler','onlyLocal','_sheetSkeletonManagerService','_getUndoStack','Univer','roomMembers$','_univerInstanceService','online','COMPLETION_FINISHED','attrs','UNIVER_DOC','_createInitialStateImpl','snapshotServerUrl','_schedule','save','YUUMI_RATE_OVER_LIMIT','_localStorageService','_range','_createSocket','_getMergeRange','UNIVER_PROJECT','getUndoRedoMutationParamsCache','APPLY_DUPLICATED','rgba(255,\x20255,\x20255,\x200.01)','getCollabEntity$','black','objectID','_onCursorDelete','_onLocalMutation','getItem','enableAuthServer','subunit','_HTTPService','origin','children','with'];_0x11c3=function(){return _0x4e2fdc;};return _0x11c3();}ae=Wn([as(0x0,_0x77aace),as(0x1,_0xc5d09(_0x1868c3))],ae);class Gn extends _0x4aed79{constructor(){const _0x21fb4a=_0x21e9c1;super(...arguments),l(this,_0x21fb4a(0x106),new Map());}['dispose'](){const _0x5b1303=_0x21e9c1;this[_0x5b1303(0x106)][_0x5b1303(0x1f4)]();}[_0x21e9c1(0x202)](_0x2c706b){const _0xae8bf0=_0x21e9c1;this[_0xae8bf0(0x106)][_0xae8bf0(0x2c4)](_0x2c706b['memberID'],_0x2c706b);}[_0x21e9c1(0xff)](_0x3a3f67){const _0x57ef03=_0x21e9c1;this[_0x57ef03(0x106)][_0x57ef03(0x156)](_0x3a3f67);}['getMember'](_0x383664){const _0x1c9d9b=_0x21e9c1;return this[_0x1c9d9b(0x106)][_0x1c9d9b(0xdc)](_0x383664);}}var Yn=Object[_0x21e9c1(0x155)],Kn=Object[_0x21e9c1(0x241)],Xn=(_0x1100ee,_0x4fe724,_0x1f15f6,_0x3be285)=>{const _0x230a32=_0x21e9c1;for(var _0x218045=_0x3be285>0x1?void 0x0:_0x3be285?Kn(_0x4fe724,_0x1f15f6):_0x4fe724,_0xd2135e=_0x1100ee[_0x230a32(0x2a7)]-0x1,_0xdbd220;_0xd2135e>=0x0;_0xd2135e--)(_0xdbd220=_0x1100ee[_0xd2135e])&&(_0x218045=(_0x3be285?_0xdbd220(_0x4fe724,_0x1f15f6,_0x218045):_0xdbd220(_0x218045))||_0x218045);return _0x3be285&&_0x218045&&Yn(_0x4fe724,_0x1f15f6,_0x218045),_0x218045;},J=(_0x50792f,_0x582874)=>(_0x4c1ddd,_0x195bc0)=>_0x582874(_0x4c1ddd,_0x195bc0,_0x50792f),Y=(_0x1cd20b=>(_0x1cd20b[_0x1cd20b[_0x21e9c1(0x295)]=0x0]=_0x21e9c1(0x295),_0x1cd20b[_0x1cd20b[_0x21e9c1(0x127)]=0x1]=_0x21e9c1(0x127),_0x1cd20b[_0x1cd20b['OFFLINE']=0x2]=_0x21e9c1(0x265),_0x1cd20b[_0x1cd20b[_0x21e9c1(0x315)]=0x3]='ONLINE',_0x1cd20b))(Y||{});let bt=class extends _0x522cd9{constructor(_0x27c509,_0x4356ed,_0x372b73,_0x5f2205,_0x7c2e19,_0x3d6319,_0x1be13b,_0x3bc256,_0x2cede7,_0x2313cc){const _0x444f68=_0x21e9c1;super(),l(this,_0x444f68(0xd3),new _0x43e69b(0x0)),l(this,_0x444f68(0x30c),this['_sessionStatus$']['asObservable']()),l(this,_0x444f68(0x114),new _0x22bff9()),l(this,'event$',this[_0x444f68(0x114)][_0x444f68(0xb6)]()),l(this,'_socket'),l(this,'_socketMessageSubscription'),l(this,_0x444f68(0x2d7)),l(this,_0x444f68(0x296),!0x1),l(this,_0x444f68(0x1a3),null),(this[_0x444f68(0x216)]=_0x27c509,this[_0x444f68(0x42c)]=_0x372b73,this[_0x444f68(0x173)]=_0x5f2205,this[_0x444f68(0x237)]=_0x7c2e19,this[_0x444f68(0x168)]=_0x3d6319,this[_0x444f68(0x148)]=_0x1be13b,this['_memberService']=_0x3bc256,this['_commentService']=_0x2cede7,this['_telemetryService']=_0x2313cc,this[_0x444f68(0x296)]=!!this[_0x444f68(0x3cf)],_0x4356ed[_0x444f68(0xcb)](_0x3eb144(this[_0x444f68(0xe7)]))['subscribe'](_0x2bcad3=>{const _0x58d4c1=_0x444f68;var _0x567e36;typeof _0x2bcad3>'u'||(this[_0x58d4c1(0x1fe)]=_0x2bcad3,_0x2bcad3?(this[_0x58d4c1(0x213)](_0x2bcad3),this[_0x58d4c1(0x2ff)]=_0x2bcad3[_0x58d4c1(0x14e)][_0x58d4c1(0xd9)](_0x2dbf8d=>{const _0x11c05d=_0x58d4c1;_0x2dbf8d[_0x11c05d(0x32c)]===this[_0x11c05d(0x216)]&&this[_0x11c05d(0x274)](_0x2dbf8d);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x58d4c1(0xd3)]['next'](0x2),(_0x567e36=this[_0x58d4c1(0x2ff)])==null||_0x567e36[_0x58d4c1(0x402)](),this['_socketMessageSubscription']=null));}),this[_0x444f68(0x1fd)](this[_0x444f68(0x173)][_0x444f68(0x358)](()=>{const _0x543a54=_0x444f68;var _0x34a503;(_0x34a503=this[_0x543a54(0x1fe)])==null||_0x34a503[_0x543a54(0x2e3)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x21e9c1(0x1d1)](){const _0x4f987b=_0x21e9c1;return this[_0x4f987b(0xd3)][_0x4f987b(0x1e9)]();}[_0x21e9c1(0x2a3)](){const _0x12ac3d=_0x21e9c1;var _0x368970,_0x27f6aa;return(_0x27f6aa=(_0x368970=this[_0x12ac3d(0x1fe)])==null?void 0x0:_0x368970['memberID'])!=null?_0x27f6aa:null;}[_0x21e9c1(0x335)](){const _0x37555b=_0x21e9c1;super['dispose'](),this[_0x37555b(0xe7)]['next'](),this[_0x37555b(0xe7)][_0x37555b(0x218)]();}[_0x21e9c1(0x15d)](){const _0x560761=_0x21e9c1;var _0x4c7a2e,_0x5a47fa;this[_0x560761(0x38d)](),(_0x4c7a2e=this['_socket'])==null||_0x4c7a2e[_0x560761(0x2e3)]({'cmd':I[_0x560761(0x215)],'data':{'roomID':this[_0x560761(0x216)]}}),(_0x5a47fa=this[_0x560761(0x1fe)])==null||_0x5a47fa['close'](),this[_0x560761(0x114)]['complete'](),this[_0x560761(0xd3)][_0x560761(0x218)](),this[_0x560761(0x335)]();}[_0x21e9c1(0x274)](_0x4cda7a){const _0x488edf=_0x21e9c1;_0x4cda7a[_0x488edf(0x3d7)]===I[_0x488edf(0x1f0)]?this[_0x488edf(0x2f2)](_0x4cda7a):_0x4cda7a[_0x488edf(0x3d7)]===I['RECV']&&this[_0x488edf(0x1f5)](_0x4cda7a);}[_0x21e9c1(0x213)](_0x37e045){const _0x3a8114=_0x21e9c1;this[_0x3a8114(0xd3)]['next'](0x1),_0x37e045[_0x3a8114(0x2e3)]({'cmd':I['JOIN'],'routeKey':this[_0x3a8114(0x216)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x21e9c1(0x2f2)](_0x29a779){const _0x2c122b=_0x21e9c1;var _0x47d977;if(_0x29a779[_0x2c122b(0x2aa)]===Vt[_0x2c122b(0x1e3)]){this['_messageService'][_0x2c122b(0x2b7)]({'type':_0x3346c3[_0x2c122b(0x38e)],'content':this[_0x2c122b(0x148)]['t']('session.room-full')}),this[_0x2c122b(0xd3)][_0x2c122b(0x175)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x4233dc=(_0x47d977=_0x29a779['data']['roomInfos'][this[_0x2c122b(0x216)]])==null?void 0x0:_0x47d977[_0x2c122b(0x41b)];_0x4233dc&&_0x4233dc[_0x2c122b(0x20d)](_0x2aab82=>this[_0x2c122b(0xa7)]['updateMember'](this[_0x2c122b(0x216)],_0x2aab82));}[_0x21e9c1(0x1f5)](_0x12f10c){const _0xd19262=_0x21e9c1;try{const _0x50ab7b=_0x12f10c['data'];switch(_0x50ab7b[_0xd19262(0x435)]){case _0x11fad5['USERS_ENTER']:this[_0xd19262(0x3e8)](_0x50ab7b),this[_0xd19262(0x114)][_0xd19262(0x175)](_0x50ab7b);break;case _0x11fad5[_0xd19262(0x271)]:this[_0xd19262(0x432)](_0x50ab7b),this[_0xd19262(0x114)]['next'](_0x50ab7b);break;case _0x11fad5[_0xd19262(0x13c)]:this[_0xd19262(0x2a9)](),this['_clearCollaborationTimeoutTimer'](),this[_0xd19262(0x114)][_0xd19262(0x175)](_0x50ab7b);break;case _0x11fad5[_0xd19262(0x19c)]:this[_0xd19262(0x42c)][_0xd19262(0xeb)](_0xd19262(0x18e)+JSON[_0xd19262(0x1cd)](_0x50ab7b)),this[_0xd19262(0x114)][_0xd19262(0x175)](_0x50ab7b);break;case _0x11fad5['COMMENT_UPDATE']:this[_0xd19262(0x10c)]['onCommentUpdate'](_0x50ab7b['data']),this[_0xd19262(0x114)][_0xd19262(0x175)](_0x50ab7b);break;default:this[_0xd19262(0x114)][_0xd19262(0x175)](_0x50ab7b);}}catch(_0x416773){this['_logService'][_0xd19262(0xeb)](_0x416773,_0x12f10c);}}[_0x21e9c1(0x3e8)](_0x3ac537){const _0x50a1e0=_0x21e9c1;this['_memberService'][_0x50a1e0(0x202)](this[_0x50a1e0(0x216)],_0x3ac537[_0x50a1e0(0x42f)]);}[_0x21e9c1(0x432)](_0x394df3){const _0x22387b=_0x21e9c1;this[_0x22387b(0xa7)]['removeMember'](this[_0x22387b(0x216)],_0x394df3['data'][_0x22387b(0x259)]);}async[_0x21e9c1(0x2e3)](_0x2c159e,_0x4aca5d){const _0x29a3ee=_0x21e9c1;if(this['sessionStatus']!==0x3||!this['_socket'])throw new Error(_0x29a3ee(0x436));try{_0x2c159e['eventID']===_0x11fad5[_0x29a3ee(0x179)]&&(this[_0x29a3ee(0x1e1)](),this[_0x29a3ee(0x1b6)](_0x2c159e)),this[_0x29a3ee(0x1fe)][_0x29a3ee(0x2e3)]({'cmd':I['INGEST'],'routeKey':_0x4aca5d,'routeType':'','data':_0x2c159e});}catch(_0x3e1428){this[_0x29a3ee(0x42c)]['error'](_0x3e1428);}}[_0x21e9c1(0x1e1)](){const _0x5266c2=_0x21e9c1;var _0x4230e0;this[_0x5266c2(0x2d7)]=window[_0x5266c2(0x18d)](()=>{const _0x4b29d6=_0x5266c2;this[_0x4b29d6(0x2d7)]=null,this['_messageService']['show']({'type':_0x3346c3[_0x4b29d6(0x184)],'content':this[_0x4b29d6(0x148)]['t'](_0x4b29d6(0x2d6))});},(_0x4230e0=this[_0x5266c2(0x168)][_0x5266c2(0x19d)](Ls))!=null?_0x4230e0:$s);}[_0x21e9c1(0x1d6)](){const _0x2ec731=_0x21e9c1;this[_0x2ec731(0x2d7)]&&(clearTimeout(this[_0x2ec731(0x2d7)]),this[_0x2ec731(0x2d7)]=null);}[_0x21e9c1(0x1b6)](_0x59599a){const _0xba5562=_0x21e9c1;if(!this[_0xba5562(0x296)])return;const {data:_0x2b97db}=_0x59599a,{unitID:_0xb849d5,changeset:_0x31bf49}=_0x2b97db,{mutations:_0x5ce209,type:_0x6f9704}=_0x31bf49;this[_0xba5562(0x1a3)]={'unitId':_0xb849d5,'type':_0x6f9704,'startTime':performance[_0xba5562(0x2e2)](),'stopTime':0x0,'duration':0x0,'size':Bn(_0x5ce209)};}[_0x21e9c1(0x2a9)](){const _0x2dbc16=_0x21e9c1;if(this[_0x2dbc16(0x296)]){if(!this[_0x2dbc16(0x1a3)]){this[_0x2dbc16(0x42c)][_0x2dbc16(0xeb)](_0x2dbc16(0x130),_0x2dbc16(0xb3));return;}this[_0x2dbc16(0x1a3)][_0x2dbc16(0x35c)]=performance[_0x2dbc16(0x2e2)](),this['_telemetryInfo'][_0x2dbc16(0x1e4)]=this[_0x2dbc16(0x1a3)]['stopTime']-this[_0x2dbc16(0x1a3)]['startTime'],this[_0x2dbc16(0x3cf)]['capture'](kn,this[_0x2dbc16(0x1a3)]),this['_telemetryInfo']=null;}}[_0x21e9c1(0x38d)](){const _0xf19832=_0x21e9c1;this[_0xf19832(0x1a3)]=null;}};bt=Xn([J(0x2,_0x3b7308),J(0x3,_0x1af4f8),J(0x4,_0x3d62ab),J(0x5,_0x232b04),J(0x6,_0xc5d09(_0x2e0e1c)),J(0x7,_0xc5d09(ae)),J(0x8,_0xc5d09(ks)),J(0x9,_0x126256(_0x52f1e7))],bt);var qn=Object['defineProperty'],Jn=Object['getOwnPropertyDescriptor'],zn=(_0x426c02,_0x1e1f3a,_0x5ea3d8,_0x32bdf7)=>{for(var _0x55e2e8=_0x32bdf7>0x1?void 0x0:_0x32bdf7?Jn(_0x1e1f3a,_0x5ea3d8):_0x1e1f3a,_0x4b6034=_0x426c02['length']-0x1,_0x5cd0d3;_0x4b6034>=0x0;_0x4b6034--)(_0x5cd0d3=_0x426c02[_0x4b6034])&&(_0x55e2e8=(_0x32bdf7?_0x5cd0d3(_0x1e1f3a,_0x5ea3d8,_0x55e2e8):_0x5cd0d3(_0x55e2e8))||_0x55e2e8);return _0x32bdf7&&_0x55e2e8&&qn(_0x1e1f3a,_0x5ea3d8,_0x55e2e8),_0x55e2e8;},fe=(_0x519151,_0xc81faa)=>(_0x376365,_0x41d90a)=>_0xc81faa(_0x376365,_0x41d90a,_0x519151);let ce=class extends _0x4aed79{constructor(_0x1277cc,_0x5748fa,_0x5f527c,_0x34e20e,_0x474e3d,_0x534dbc){const _0x3a322a=_0x21e9c1;super(),l(this,_0x3a322a(0x276),new _0x43e69b(void 0x0)),l(this,_0x3a322a(0x12c),this[_0x3a322a(0x276)][_0x3a322a(0xb6)]()),l(this,_0x3a322a(0x1d8),null),l(this,'_sessions',new Map()),l(this,_0x3a322a(0x152),new _0x43e69b(Y[_0x3a322a(0x295)])),l(this,'status$',this['_status$'][_0x3a322a(0xb6)]()),l(this,'_socketReady',!0x1),l(this,_0x3a322a(0x2af)),l(this,_0x3a322a(0xcf),0x0),l(this,_0x3a322a(0xee)),l(this,_0x3a322a(0x3d1)),(this[_0x3a322a(0x27a)]=_0x1277cc,this[_0x3a322a(0x148)]=_0x5748fa,this[_0x3a322a(0x237)]=_0x5f527c,this['_logService']=_0x34e20e,this[_0x3a322a(0x168)]=_0x474e3d,this[_0x3a322a(0x3e1)]=_0x534dbc,this[_0x3a322a(0x33f)]());}get[_0x21e9c1(0x1fe)](){const _0x91de14=_0x21e9c1;return this[_0x91de14(0x276)][_0x91de14(0x1e9)]();}[_0x21e9c1(0x33f)](){const _0x5446ad=_0x21e9c1;this[_0x5446ad(0x2e6)](),this[_0x5446ad(0x178)]();}[_0x21e9c1(0x335)](){const _0x51bbdd=_0x21e9c1;super[_0x51bbdd(0x335)](),this[_0x51bbdd(0x2a8)][_0x51bbdd(0x20d)](_0x591b55=>_0x591b55['dispose']()),this[_0x51bbdd(0x2a8)][_0x51bbdd(0x1f4)](),this[_0x51bbdd(0x152)]['complete']();}async['requireSession'](_0x381906){const _0x8f19a8=_0x21e9c1;if(this[_0x8f19a8(0x2a8)][_0x8f19a8(0x188)](_0x381906))return this[_0x8f19a8(0x2a8)][_0x8f19a8(0xdc)](_0x381906);this[_0x8f19a8(0x2ac)]();const _0x14d8eb=this[_0x8f19a8(0x27a)][_0x8f19a8(0x169)](bt,_0x381906,this[_0x8f19a8(0x276)][_0x8f19a8(0xb6)]());return this[_0x8f19a8(0x2a8)][_0x8f19a8(0x2c4)](_0x381906,_0x14d8eb),_0x14d8eb;}[_0x21e9c1(0x2b3)](_0x38225a){const _0xcd5866=_0x21e9c1;var _0x36daa2;const _0x1156ca=this[_0xcd5866(0x2a8)][_0xcd5866(0xdc)](_0x38225a);_0x1156ca&&(this[_0xcd5866(0x2a8)][_0xcd5866(0x156)](_0x38225a),_0x1156ca[_0xcd5866(0x15d)]()),this['_sessions'][_0xcd5866(0x10e)]||(_0x36daa2=this[_0xcd5866(0x1fe)])==null||_0x36daa2[_0xcd5866(0x15d)]();}[_0x21e9c1(0xfe)](){const _0x231fd9=_0x21e9c1;this[_0x231fd9(0xcf)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x231fd9(0x2af)]),this[_0x231fd9(0x2af)]=null),this[_0x231fd9(0x1c9)]();}[_0x21e9c1(0x3ba)](){const _0x482172=_0x21e9c1;var _0x3a4ba3,_0x5c36b4;const _0x3e8278=this[_0x482172(0x168)][_0x482172(0x19d)](In),_0x1a4cfb=this['_configService']['getConfig']($),_0x3dc166=(_0x5c36b4=(_0x3a4ba3=_0x1a4cfb==null?void 0x0:_0x1a4cfb[_0x482172(0xd7)])!=null?_0x3a4ba3:_0x3e8278)!=null?_0x5c36b4:En,_0x5a6379=this[_0x482172(0x3e1)][_0x482172(0x143)](_0x3dc166);return this[_0x482172(0x1d8)]=_0x5a6379,_0x5a6379;}[_0x21e9c1(0x2ac)](){const _0x3d210d=_0x21e9c1;var _0x365c61,_0x2d1f6c;try{const _0x429381=(_0x2d1f6c=(_0x365c61=this[_0x3d210d(0x1fe)])!=null?_0x365c61:this[_0x3d210d(0x1d8)])!=null?_0x2d1f6c:this['_createSocket']();if(_0x429381){const _0x3dbc72=_0x429381[_0x3d210d(0x2e3)];_0x429381[_0x3d210d(0x2e3)]=_0x137a1d=>(this[_0x3d210d(0x1a9)](),_0x3dbc72['apply'](_0x429381,[_0x137a1d])),_0x429381[_0x3d210d(0x14e)][_0x3d210d(0xd9)](_0x136f70=>this['_onMessage'](_0x429381,_0x136f70)),_0x429381[_0x3d210d(0x36d)][_0x3d210d(0xcb)](_0x3e9e57(0x1))['subscribe'](_0x5d433c=>this['_logService'][_0x3d210d(0xeb)](_0x3d210d(0x35a),_0x5d433c)),_0x429381[_0x3d210d(0xbf)]['pipe'](_0x3e9e57(0x1))['subscribe'](()=>{const _0x138e3e=_0x3d210d;this[_0x138e3e(0x1fb)](_0x429381);}),_0x429381[_0x3d210d(0x39c)][_0x3d210d(0xcb)](_0x3e9e57(0x1))[_0x3d210d(0xd9)](_0x1b01ff=>{const _0x227cdc=_0x3d210d;this['_logService'][_0x227cdc(0x219)]('[CollaborationSessionService]',_0x227cdc(0x332),_0x1b01ff),this[_0x227cdc(0x1f9)]();});}}catch(_0xf23b6){this['_logService'][_0x3d210d(0xeb)](_0xf23b6),this[_0x3d210d(0x1f9)]();}}['_onConnectionOpen'](_0x5c2395){const _0x102f82=_0x21e9c1;this[_0x102f82(0x42c)]['debug'](_0x102f82(0x39e),_0x102f82(0x22e)),_0x5c2395[_0x102f82(0x2e3)]({'cmd':I[_0x102f82(0x1e0)]}),this[_0x102f82(0x1a9)]();}['_listenToOfflineEvent'](){const _0x32f178=_0x21e9c1;window[_0x32f178(0x12e)](_0x32f178(0x386),()=>this[_0x32f178(0xea)]());}[_0x21e9c1(0xea)](){const _0x4dd2c7=_0x21e9c1;this[_0x4dd2c7(0x1f8)]=!0x1,this[_0x4dd2c7(0x1d8)]=null,this[_0x4dd2c7(0x152)][_0x4dd2c7(0x175)](Y[_0x4dd2c7(0x265)]),this[_0x4dd2c7(0x276)][_0x4dd2c7(0x175)](null),this[_0x4dd2c7(0x2f8)](),this['_clearHeartbeatTimer']();}[_0x21e9c1(0x1f9)](){const _0x5281db=_0x21e9c1;var _0x1f3fd4;this[_0x5281db(0xea)](),this['_retryCount']<((_0x1f3fd4=this['_configService'][_0x5281db(0x19d)](Rn))!=null?_0x1f3fd4:On)?(this[_0x5281db(0x237)][_0x5281db(0x2b7)]({'key':'collaboration-session-retry','type':_0x3346c3['Warning'],'content':this[_0x5281db(0x148)]['t'](_0x5281db(0x162))}),this[_0x5281db(0x1c9)]()):this[_0x5281db(0x237)][_0x5281db(0x2b7)]({'key':_0x5281db(0x2ea),'type':_0x3346c3[_0x5281db(0x184)],'content':this[_0x5281db(0x148)]['t'](_0x5281db(0x424))});}[_0x21e9c1(0x178)](){const _0x384456=_0x21e9c1,_0x323167=()=>{const _0x4d9955=_0x24ad;this['_socket']||this[_0x4d9955(0xfe)]();},_0x2c1187=()=>{const _0x477445=_0x24ad;this[_0x477445(0x1fe)]||document[_0x477445(0x189)]===_0x477445(0x109)||this[_0x477445(0xfe)]();};window[_0x384456(0x12e)](_0x384456(0x3af),_0x323167),document[_0x384456(0x12e)](_0x384456(0x226),_0x2c1187);}[_0x21e9c1(0x1c9)](){const _0x301209=_0x21e9c1;var _0x253b71;const _0x287734=this[_0x301209(0xcf)],_0x5f31fc=this[_0x301209(0x168)]['getConfig']($),_0x244ac3=_0x287734===0x0?0x0:((_0x253b71=_0x5f31fc==null?void 0x0:_0x5f31fc['retryConnectingInterval'])!=null?_0x253b71:Tn)*0x2**_0x287734;this[_0x301209(0x2af)]=window['setTimeout'](()=>{const _0x2bf000=_0x301209;clearTimeout(this[_0x2bf000(0x2af)]),this[_0x2bf000(0x2af)]=null,this[_0x2bf000(0x2ac)]();},_0x244ac3),this['_retryCount']+=0x1;}['_onMessage'](_0x235e37,_0x3aaf26){const _0xb56eb2=_0x21e9c1,{cmd:_0x3f2e39}=_0x3aaf26;_0x3f2e39===I['HELLO']&&!this['_socketReady']&&(_0x235e37[_0xb56eb2(0x259)]=_0x3aaf26['data'][_0xb56eb2(0x259)],this[_0xb56eb2(0x276)][_0xb56eb2(0x175)](_0x235e37),this[_0xb56eb2(0x152)][_0xb56eb2(0x175)](Y[_0xb56eb2(0x315)]),this[_0xb56eb2(0x1f8)]=!0x0,this[_0xb56eb2(0x1d8)]=null),_0x3f2e39===I[_0xb56eb2(0xca)]&&this[_0xb56eb2(0x2f8)](),this[_0xb56eb2(0x1a9)]();}[_0x21e9c1(0x1a9)](){const _0x14a237=_0x21e9c1;var _0xaa7f90;this[_0x14a237(0x328)](),this['_sendHeartbeatTimer']=window[_0x14a237(0x18d)](()=>this['_sendHeartbeat'](),(_0xaa7f90=this[_0x14a237(0x168)][_0x14a237(0x19d)](Cn))!=null?_0xaa7f90:bn);}['_sendHeartbeat'](){const _0x35b7cb=_0x21e9c1;this[_0x35b7cb(0x1fe)]['send']({'cmd':I['HEARTBEAT']}),this[_0x35b7cb(0x22d)]();}[_0x21e9c1(0x22d)](){const _0x13fc78=_0x21e9c1;var _0x3b0372;this[_0x13fc78(0x3d1)]=window[_0x13fc78(0x18d)](()=>this[_0x13fc78(0x1f9)](),(_0x3b0372=this[_0x13fc78(0x168)]['getConfig'](Ls))!=null?_0x3b0372:$s);}[_0x21e9c1(0x328)](){const _0x4fd817=_0x21e9c1;this[_0x4fd817(0xee)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x4fd817(0xee)]=null);}['_clearTimeoutTimer'](){const _0xb4d63b=_0x21e9c1;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xb4d63b(0x3d1)]),this[_0xb4d63b(0x3d1)]=null);}};ce=zn([fe(0x0,_0xc5d09(_0xe15c29)),fe(0x1,_0xc5d09(_0x2e0e1c)),fe(0x2,_0x3d62ab),fe(0x3,_0x3b7308),fe(0x4,_0x232b04),fe(0x5,Hs)],ce);var b=[];for(var ct=0x0;ct<0x100;++ct)b[_0x21e9c1(0x354)]((ct+0x100)[_0x21e9c1(0x278)](0x10)[_0x21e9c1(0x333)](0x1));function Zn(_0x44ea4d,_0x357c0f=0x0){const _0x14a1b9=_0x21e9c1;return(b[_0x44ea4d[_0x357c0f+0x0]]+b[_0x44ea4d[_0x357c0f+0x1]]+b[_0x44ea4d[_0x357c0f+0x2]]+b[_0x44ea4d[_0x357c0f+0x3]]+'-'+b[_0x44ea4d[_0x357c0f+0x4]]+b[_0x44ea4d[_0x357c0f+0x5]]+'-'+b[_0x44ea4d[_0x357c0f+0x6]]+b[_0x44ea4d[_0x357c0f+0x7]]+'-'+b[_0x44ea4d[_0x357c0f+0x8]]+b[_0x44ea4d[_0x357c0f+0x9]]+'-'+b[_0x44ea4d[_0x357c0f+0xa]]+b[_0x44ea4d[_0x357c0f+0xb]]+b[_0x44ea4d[_0x357c0f+0xc]]+b[_0x44ea4d[_0x357c0f+0xd]]+b[_0x44ea4d[_0x357c0f+0xe]]+b[_0x44ea4d[_0x357c0f+0xf]])[_0x14a1b9(0xaf)]();}var He,Qn=new Uint8Array(0x10);function er(){const _0x2fb794=_0x21e9c1;if(!He&&(He=typeof crypto<'u'&&crypto[_0x2fb794(0xcd)]&&crypto[_0x2fb794(0xcd)][_0x2fb794(0x3e4)](crypto),!He))throw new Error(_0x2fb794(0x1c4));return He(Qn);}var tr=typeof crypto<'u'&&crypto[_0x21e9c1(0x29b)]&&crypto[_0x21e9c1(0x29b)][_0x21e9c1(0x3e4)](crypto);const cs={'randomUUID':tr};function sr(_0x5f34e6,_0x3bc48f,_0x470bfe){const _0x2d8352=_0x21e9c1;if(cs[_0x2d8352(0x29b)]&&!_0x3bc48f&&!_0x5f34e6)return cs[_0x2d8352(0x29b)]();_0x5f34e6=_0x5f34e6||{};var _0x4eb463=_0x5f34e6[_0x2d8352(0x30e)]||(_0x5f34e6[_0x2d8352(0xfd)]||er)();return _0x4eb463[0x6]=_0x4eb463[0x6]&0xf|0x40,_0x4eb463[0x8]=_0x4eb463[0x8]&0x3f|0x80,Zn(_0x4eb463);}var ir=Object[_0x21e9c1(0x155)],nr=Object[_0x21e9c1(0x241)],rr=(_0x5e330e,_0x4a1f00,_0x2a0b50,_0x224f83)=>{const _0x22c45a=_0x21e9c1;for(var _0x251902=_0x224f83>0x1?void 0x0:_0x224f83?nr(_0x4a1f00,_0x2a0b50):_0x4a1f00,_0x26015=_0x5e330e[_0x22c45a(0x2a7)]-0x1,_0x4190fa;_0x26015>=0x0;_0x26015--)(_0x4190fa=_0x5e330e[_0x26015])&&(_0x251902=(_0x224f83?_0x4190fa(_0x4a1f00,_0x2a0b50,_0x251902):_0x4190fa(_0x251902))||_0x251902);return _0x224f83&&_0x251902&&ir(_0x4a1f00,_0x2a0b50,_0x251902),_0x251902;},ht=(_0x1cad67,_0x194f33)=>(_0x108bd1,_0x1b8734)=>_0x194f33(_0x108bd1,_0x1b8734,_0x1cad67);let Ye=class{constructor(_0x54f971,_0xbafda,_0x33d595){const _0x40376d=_0x21e9c1;this['_injector']=_0x54f971,this[_0x40376d(0x40a)]=_0xbafda,this[_0x40376d(0x3f6)]=_0x33d595;}[_0x21e9c1(0x284)](_0x11aa89){const _0xd1c684=_0x21e9c1;this[_0xd1c684(0xb0)](_0x11aa89),this[_0xd1c684(0x2d1)](_0x11aa89);}[_0x21e9c1(0x411)](_0x858878){const _0x43a9f4=_0x21e9c1,{unitID:_0x86c2fd}=_0x858878,_0x538d50=this[_0x43a9f4(0x3f6)][_0x43a9f4(0x250)](_0x86c2fd)[_0x43a9f4(0x3cb)](_0x5d7b6a),{redoCache:_0x380af2}=_0x538d50[_0x43a9f4(0x3bd)]();if(_0x380af2[_0x43a9f4(0x2a7)]===0x0)return _0x858878;let _0x3f8aa2=_0x1bf815[_0x43a9f4(0x2e8)](_0x858878['mutations'][0x0]);for(let _0x342edb=0x0;_0x342edb<_0x380af2[_0x43a9f4(0x2a7)];_0x342edb++){const _0x7c984f={'id':_0x43a9f4(0x2a6),'params':{..._0x380af2[_0x342edb]}},_0x5f02c7=this[_0x43a9f4(0x40a)]['transformMutation'](_0x3f8aa2,_0x7c984f,!0x1);if(_0x285096(_0x5f02c7))throw _0x5f02c7[_0x43a9f4(0xeb)];_0x3f8aa2=_0x5f02c7['m1Prime'];}return{..._0x1bf815['deepClone'](_0x858878),'mutations':[_0x3f8aa2]};}[_0x21e9c1(0xb0)](_0x316050){const _0x8a4c0e=_0x21e9c1,{unitID:_0x53a89d}=_0x316050,_0x35860c=this[_0x8a4c0e(0x3f6)]['getRenderById'](_0x53a89d)['with'](_0x5d7b6a),{undoCache:_0x7c9d24,redoCache:_0xf4601a}=_0x35860c['getUndoRedoMutationParamsCache']();if(_0x7c9d24[_0x8a4c0e(0x2a7)]===0x0||_0xf4601a['length']===0x0)return;const _0x478dce=[],_0x1a56db=[];let _0x49f30b=_0x1bf815[_0x8a4c0e(0x2e8)](_0x316050[_0x8a4c0e(0x22f)][0x0]),_0x1a13d9=_0x1bf815[_0x8a4c0e(0x2e8)](_0x316050['mutations'][0x0]);for(let _0x298833=_0x7c9d24[_0x8a4c0e(0x2a7)]-0x1;_0x298833>=0x0;_0x298833--){const _0x9650a6={'id':'doc.mutation.rich-text-editing','params':{..._0x7c9d24[_0x298833]}},_0x11080f={'id':'doc.mutation.rich-text-editing','params':{..._0xf4601a[_0x298833]}},_0x373361=this[_0x8a4c0e(0x40a)]['transformMutation'](_0x49f30b,_0x9650a6,!0x1),_0x1b00a5=this[_0x8a4c0e(0x40a)]['transformMutation'](_0x1a13d9,_0x11080f,!0x1);if(_0x285096(_0x373361))throw _0x373361[_0x8a4c0e(0xeb)];if(_0x285096(_0x1b00a5))throw _0x1b00a5[_0x8a4c0e(0xeb)];_0x478dce['unshift'](_0x373361[_0x8a4c0e(0xc7)][_0x8a4c0e(0x3ee)]),_0x1a56db[_0x8a4c0e(0x1c8)](_0x1b00a5['m2Prime']['params']),_0x49f30b=_0x373361[_0x8a4c0e(0x122)],_0x1a13d9=_0x1b00a5[_0x8a4c0e(0x122)];}_0x35860c[_0x8a4c0e(0x20f)]({'undoCache':_0x478dce,'redoCache':_0x1a56db});}[_0x21e9c1(0x2d1)](_0x6255ac){const _0x5ec94c=_0x21e9c1,{unitID:_0x2cef50}=_0x6255ac,_0x382e9f=this[_0x5ec94c(0x3f6)]['getRenderById'](_0x2cef50)[_0x5ec94c(0x3cb)](_0x5d7b6a),_0x496d59=_0x382e9f[_0x5ec94c(0x3d8)]();if(_0x496d59==null)return;const _0x1506e1=[{'id':_0x5ec94c(0x2a6),'params':{'unitId':_0x6255ac[_0x5ec94c(0x33d)],'actions':null,'textRanges':[_0x496d59]}}],_0x2cae51=this['_transformService'][_0x5ec94c(0x311)](_0x6255ac,_0x1506e1);if(!_0x5889b9(_0x2cae51))throw _0x2cae51['error'];const _0xb6114b=_0x2cae51[_0x5ec94c(0xc7)][0x0]['params'][_0x5ec94c(0x379)];Array['isArray'](_0xb6114b)&&_0xb6114b[_0x5ec94c(0x2a7)]&&_0x382e9f[_0x5ec94c(0x2a5)](_0xb6114b[0x0]);}};Ye=rr([ht(0x0,_0xc5d09(_0xe15c29)),ht(0x1,_0x52d7ce),ht(0x2,_0x1174bb)],Ye);var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x27f805,_0x2904f2,_0x356bb5,_0x5c48e7)=>{const _0x2232d4=_0x21e9c1;for(var _0x2fec38=_0x5c48e7>0x1?void 0x0:_0x5c48e7?ar(_0x2904f2,_0x356bb5):_0x2904f2,_0x1d3af2=_0x27f805[_0x2232d4(0x2a7)]-0x1,_0x133ebd;_0x1d3af2>=0x0;_0x1d3af2--)(_0x133ebd=_0x27f805[_0x1d3af2])&&(_0x2fec38=(_0x5c48e7?_0x133ebd(_0x2904f2,_0x356bb5,_0x2fec38):_0x133ebd(_0x2fec38))||_0x2fec38);return _0x5c48e7&&_0x2fec38&&or(_0x2904f2,_0x356bb5,_0x2fec38),_0x2fec38;},De=(_0x9c6bf8,_0x12a422)=>(_0x1acfe8,_0x344aeb)=>_0x12a422(_0x1acfe8,_0x344aeb,_0x9c6bf8);let w=class extends _0x4aed79{constructor(_0x5df847,_0x28758d,_0x5242ef,_0xff2747,_0x129150){const _0x39bf95=_0x21e9c1;super(),l(this,_0x39bf95(0x11a),new Map()),l(this,_0x39bf95(0x3f2),new Map()),l(this,'_disabled',!0x1),(this[_0x39bf95(0x168)]=_0x5df847,this[_0x39bf95(0x3b8)]=_0x28758d,this[_0x39bf95(0x173)]=_0x5242ef,this[_0x39bf95(0x148)]=_0xff2747,this['_revisionService']=_0x129150,this[_0x39bf95(0x3a8)]());}['disableLocalCache'](){const _0x284a92=_0x21e9c1;this[_0x284a92(0x38f)]=!0x0;}[_0x21e9c1(0x345)](){this['_disabled']=!0x1;}[_0x21e9c1(0x335)](){const _0x4284e1=_0x21e9c1;this[_0x4284e1(0x13d)]()['then'](()=>super['dispose']());}async[_0x21e9c1(0x239)](_0x50c099){const _0x412aa8=_0x21e9c1;return this['_disabled']?null:this['_localStorageService'][_0x412aa8(0x3c5)](hs(_0x50c099));}async[_0x21e9c1(0x1d2)](_0x24b985,_0x15fec6){const _0x580f2f=_0x21e9c1;return!!this[_0x580f2f(0x3b8)][_0x580f2f(0x1db)](_0x24b985,_0x15fec6);}[_0x21e9c1(0x177)](_0xda81ba,_0x2b8dc5,_0x3e6f8f,_0x17ecf2){const _0x464379=_0x21e9c1,_0xa34892=this[_0x464379(0x25b)][_0x464379(0x1c3)](_0xda81ba);this[_0x464379(0x11a)][_0x464379(0x2c4)](_0xda81ba,{'unitID':_0xda81ba,'type':_0x2b8dc5,'awaitingChangeset':_0x3e6f8f,'mutations':_0x17ecf2,'rev':_0xa34892}),this['_saveTaskMap'][_0x464379(0x188)](_0xda81ba)||this['_scheduleSaving'](_0xda81ba);}[_0x21e9c1(0x200)](_0x315d47){const _0x52d51f=_0x21e9c1,_0x3f5633=this[_0x52d51f(0x427)]();_0x3f5633===0x0?this['_saveCache'](_0x315d47):this[_0x52d51f(0x3f2)][_0x52d51f(0x2c4)](_0x315d47,setTimeout(()=>this[_0x52d51f(0x134)](_0x315d47),_0x3f5633));}[_0x21e9c1(0x427)](){const _0x5e319f=_0x21e9c1;var _0x52a5e1;return(_0x52a5e1=this[_0x5e319f(0x168)][_0x5e319f(0x19d)](Dn))!=null?_0x52a5e1:wn;}[_0x21e9c1(0x134)](_0x5a91bd){const _0x4f11c3=_0x21e9c1,_0x52e1b1=this[_0x4f11c3(0x3f2)][_0x4f11c3(0xdc)](_0x5a91bd);return _0x52e1b1!==void 0x0&&window[_0x4f11c3(0x42a)](_0x52e1b1),this[_0x4f11c3(0x3b8)][_0x4f11c3(0x1db)](hs(_0x5a91bd),this[_0x4f11c3(0x11a)]['get'](_0x5a91bd))[_0x4f11c3(0x16d)](()=>this[_0x4f11c3(0x3f2)][_0x4f11c3(0x156)](_0x5a91bd));}async['exhaustSavingTask'](){const _0x220f0c=_0x21e9c1,_0x3ab66a=[];this[_0x220f0c(0x3f2)][_0x220f0c(0x20d)]((_0x295a15,_0x16590f)=>{const _0x44537c=_0x220f0c;window[_0x44537c(0x42a)](_0x295a15),_0x3ab66a['push'](this['_saveCache'](_0x16590f)['then'](()=>{const _0x5ae0dd=_0x44537c;this[_0x5ae0dd(0x3f2)][_0x5ae0dd(0x156)](_0x16590f);}));}),await Promise[_0x220f0c(0x2cf)](_0x3ab66a);}[_0x21e9c1(0x3a8)](){const _0x453bb8=_0x21e9c1;this[_0x453bb8(0x1fd)](this['_beforeCloseService'][_0x453bb8(0x3fe)](()=>{const _0x3ae230=_0x453bb8;if(this[_0x3ae230(0x3f2)][_0x3ae230(0x10e)])return this[_0x3ae230(0x148)]['t'](_0x3ae230(0xc0));}));}};w=cr([De(0x0,_0x232b04),De(0x1,_0x3ac671),De(0x2,_0x1af4f8),De(0x3,_0xc5d09(_0x2e0e1c)),De(0x4,_0xc5d09(_0x4fd1c9))],w);function hs(_0x45f9e2){const _0x27271f=_0x21e9c1;return _0x27271f(0x2d2)+_0x45f9e2;}var hr=Object[_0x21e9c1(0x155)],lr=Object[_0x21e9c1(0x241)],_r=(_0x4bca14,_0x15e6c3,_0x50a1ad,_0x526e90)=>{const _0x26ff48=_0x21e9c1;for(var _0x1b7c03=_0x526e90>0x1?void 0x0:_0x526e90?lr(_0x15e6c3,_0x50a1ad):_0x15e6c3,_0x265095=_0x4bca14[_0x26ff48(0x2a7)]-0x1,_0x5ce401;_0x265095>=0x0;_0x265095--)(_0x5ce401=_0x4bca14[_0x265095])&&(_0x1b7c03=(_0x526e90?_0x5ce401(_0x15e6c3,_0x50a1ad,_0x1b7c03):_0x5ce401(_0x1b7c03))||_0x1b7c03);return _0x526e90&&_0x1b7c03&&hr(_0x15e6c3,_0x50a1ad,_0x1b7c03),_0x1b7c03;},lt=(_0x3d90b4,_0x146baa)=>(_0x83d908,_0xc51eb9)=>_0x146baa(_0x83d908,_0xc51eb9,_0x3d90b4);function ur(_0x5afda0){const _0x136be3=_0x21e9c1,{unitID:_0x52b5cc,mutations:_0xbd89e3}=_0x5afda0;return{'unitId':_0x52b5cc,'subUnitId':_0xbd89e3[0x0][_0x136be3(0x3ee)]['subUnitId']};}let Ke=class{constructor(_0x16a3b0,_0x51a4eb,_0x75d851){const _0x3197b7=_0x21e9c1;this[_0x3197b7(0x27a)]=_0x16a3b0,this[_0x3197b7(0x40a)]=_0x51a4eb,this[_0x3197b7(0xdb)]=_0x75d851;}[_0x21e9c1(0x357)](_0x1bfd4d){const _0x1cf672=_0x21e9c1;var _0x4fa72d,_0xabf4c,_0x45062b,_0x39381c;const _0x65a1c9=this[_0x1cf672(0x27a)][_0x1cf672(0xdc)](_0x2bff71),{unitId:_0x4d5bb9,subUnitId:_0x3f4064}=ur(_0x1bfd4d),_0x35b0c1=_0x65a1c9[_0x1cf672(0x1b0)](_0x4d5bb9)[_0x1cf672(0x232)](),_0x183840=(_0xabf4c=(_0x4fa72d=this[_0x1cf672(0xdb)][_0x1cf672(0x3ff)](_0x4d5bb9))==null?void 0x0:_0x4fa72d['getActiveSheet']())==null?void 0x0:_0xabf4c[_0x1cf672(0xd8)]();if(_0x35b0c1[_0x1cf672(0x2a7)]===0x0||!_0x4d5bb9||!_0x3f4064)return;const _0x5092ff=[{'id':_0x353cdd['id'],'params':{'unitId':_0x4d5bb9,'subUnitId':_0x183840,'selections':_0x1bf815['deepClone'](_0x35b0c1)}}],_0x4fcfb2=this['_transformService'][_0x1cf672(0x311)](_0x1bfd4d,_0x5092ff);if(!_0x5889b9(_0x4fcfb2))throw _0x4fcfb2[_0x1cf672(0xeb)];const _0x54374b=(_0x39381c=(_0x45062b=_0x4fcfb2[_0x1cf672(0xc7)][0x0])==null?void 0x0:_0x45062b['params'])==null?void 0x0:_0x39381c[_0x1cf672(0x32f)];Array['isArray'](_0x54374b)&&_0x54374b['length']&&this[_0x1cf672(0x27a)]['get'](_0x4fdaef)[_0x1cf672(0x3f7)](_0x353cdd['id'],{'unitId':_0x4d5bb9,'subUnitId':_0x183840,'selections':_0x54374b});}};Ke=_r([lt(0x0,_0xc5d09(_0xe15c29)),lt(0x1,_0x52d7ce),lt(0x2,_0x77aace)],Ke);const tt=_0x68fae6(_0x21e9c1(0x3a2));var Bs=(_0x1fff68=>(_0x1fff68[_0x1fff68[_0x21e9c1(0x267)]=0x0]=_0x21e9c1(0x267),_0x1fff68[_0x1fff68[_0x21e9c1(0x397)]=0x1]=_0x21e9c1(0x397),_0x1fff68))(Bs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class dr extends _0x4aed79{constructor(){const _0x3622e2=_0x21e9c1;super(),l(this,_0x3622e2(0x367),_0x1bf815[_0x3622e2(0x23f)]()),l(this,_0x3622e2(0x3db),new Set()),l(this,_0x3622e2(0x12f),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x3622e2(0x331),new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x21e9c1(0x335)](){const _0x47a23b=_0x21e9c1;super['dispose'](),this['_clearOtherTimers'][_0x47a23b(0x20d)]((_0x455592,_0x4ce207)=>this['_removeClearOtherTimer'](_0x4ce207)),this[_0x47a23b(0x1bd)]&&window[_0x47a23b(0x2d9)](this[_0x47a23b(0x1bd)]);}[_0x21e9c1(0x29a)](_0x127013){const _0x394f99=_0x21e9c1;return this[_0x394f99(0x21b)](_0x127013)['pipe'](_0x1ef66d());}[_0x21e9c1(0x16b)](_0x4491fc){const _0x1bc823=_0x21e9c1;this[_0x1bc823(0x3db)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x1bc823(0x3db)][_0x1bc823(0x378)](_0x4491fc),this[_0x1bc823(0x430)]({'type':0x0,'memberID':this[_0x1bc823(0x367)],'unitIDs':[_0x4491fc],'isForwarded':!0x1});}[_0x21e9c1(0x41f)](_0x2aaf4d){const _0x149482=_0x21e9c1;this[_0x149482(0x3db)][_0x149482(0x156)](_0x2aaf4d),this[_0x149482(0x3db)][_0x149482(0x10e)]===0x0&&this['_heartbeatTimer']&&window[_0x149482(0x2d9)](this[_0x149482(0x1bd)]);}['_init'](){const _0xc1e156=_0x21e9c1;this[_0xc1e156(0x1fd)](_0x3117b1(_0x32b9ba(window,_0xc1e156(0x180))[_0xc1e156(0xd9)](_0xff8d92=>{const _0x196256=_0xc1e156;if(_0xff8d92['key']!==_s||!_0xff8d92[_0x196256(0x1e6)])return;const _0x38b97d=JSON[_0x196256(0x42e)](_0xff8d92['newValue']);this[_0x196256(0x28e)](_0x38b97d);}))),window[_0xc1e156(0x12e)](_0xc1e156(0x2db),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0xc1e156(0x3db)])}));}[_0x21e9c1(0x28e)](_0x43bf9a){const _0x187d43=_0x21e9c1;switch(_0x43bf9a[_0x187d43(0x25c)]){case 0x0:this['_handleJoinEvent'](_0x43bf9a);break;case 0x1:this[_0x187d43(0x3a4)](_0x43bf9a);break;case 0x2:this[_0x187d43(0x23a)](_0x43bf9a);break;}}['_handleJoinEvent'](_0x193f9b){const _0x182d1d=_0x21e9c1,{unitIDs:_0xa12df1,memberID:_0x48772a,isForwarded:_0x4a604d}=_0x193f9b;_0xa12df1['forEach'](_0x5b6cee=>{const _0xb5cf08=_0x24ad;if(!_0x4a604d&&this[_0xb5cf08(0x12f)][_0xb5cf08(0x188)](_0x5b6cee)&&this['_ensureSubject'](_0x5b6cee)[_0xb5cf08(0x175)](0x1),!this[_0xb5cf08(0x12f)][_0xb5cf08(0x188)](_0x5b6cee)||!this[_0xb5cf08(0x12f)][_0xb5cf08(0xdc)](_0x5b6cee)['has'](_0x48772a)){const _0x116299=this[_0xb5cf08(0x12f)][_0xb5cf08(0xdc)](_0x5b6cee)||new Set();_0x116299['add'](_0x48772a),this[_0xb5cf08(0x12f)]['set'](_0x5b6cee,_0x116299),this['_scheduleClearOtherTimer'](_0x48772a);}}),_0x4a604d||this['_send']({'type':0x0,'memberID':this[_0x182d1d(0x367)],'unitIDs':[...this[_0x182d1d(0x3db)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4304b7){const _0x3158c8=_0x21e9c1;this[_0x3158c8(0x31d)](_0x4304b7);const _0x5e3a4f=window[_0x3158c8(0x18d)](()=>{const _0x52e292=_0x3158c8;this[_0x52e292(0x12f)][_0x52e292(0x20d)](_0x534d7a=>{_0x534d7a['delete'](_0x4304b7);});},ls*0x2);this[_0x3158c8(0x331)][_0x3158c8(0x2c4)](_0x4304b7,_0x5e3a4f);}[_0x21e9c1(0x31d)](_0x12317c){const _0xb59a01=_0x21e9c1;if(this[_0xb59a01(0x331)][_0xb59a01(0x188)](_0x12317c)){const _0x1dbfd4=this[_0xb59a01(0x331)][_0xb59a01(0xdc)](_0x12317c);_0x1dbfd4&&window[_0xb59a01(0x42a)](_0x1dbfd4),this[_0xb59a01(0x331)][_0xb59a01(0x2c4)](_0x12317c,null);}}['_handleLeaveEvent'](_0x3f06e4){const {memberID:_0x495a0f,unitIDs:_0x26ecd7}=_0x3f06e4;_0x26ecd7['forEach'](_0x459886=>{const _0x4481f1=_0x24ad;var _0x4b7391;const _0x1e1d5e=this['_unitOnClients'][_0x4481f1(0xdc)](_0x459886);_0x1e1d5e&&(_0x1e1d5e[_0x4481f1(0x156)](_0x495a0f),(_0x4b7391=this[_0x4481f1(0x21b)](_0x459886))==null||_0x4b7391[_0x4481f1(0x175)](_0x1e1d5e[_0x4481f1(0x10e)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x495a0f);}[_0x21e9c1(0x23a)](_0x269a16){const _0x35d2b5=_0x21e9c1;this[_0x35d2b5(0x117)](_0x269a16[_0x35d2b5(0x259)]);}[_0x21e9c1(0x430)](_0x1aadb9){const _0x302c0f=_0x21e9c1;localStorage[_0x302c0f(0x1db)](_s,JSON[_0x302c0f(0x1cd)](_0x1aadb9));}[_0x21e9c1(0x319)](){const _0x4b594a=_0x21e9c1;this[_0x4b594a(0x1bd)]=window[_0x4b594a(0x338)](()=>{const _0x5ee328=_0x4b594a;this['_send']({'type':0x2,'memberID':this[_0x5ee328(0x367)]});},ls);}[_0x21e9c1(0x21b)](_0x518a07){const _0x2559c0=_0x21e9c1;return this['_unitStatus'][_0x2559c0(0x188)](_0x518a07)||this[_0x2559c0(0x2cd)][_0x2559c0(0x2c4)](_0x518a07,new _0x43e69b(0x0)),this[_0x2559c0(0x2cd)][_0x2559c0(0xdc)](_0x518a07);}}function Vs(_0x17ff8b){const _0x42bf09=_0x21e9c1;let _0x5b88ed='';for(const _0x198665 of _0x17ff8b){const {startOffset:_0x5e96bf,endOffset:_0x160f19,isActive:_0x152bbc}=_0x198665;_0x5b88ed[_0x42bf09(0x2a7)]&&(_0x5b88ed+=','),_0x5b88ed+=_0x5e96bf+':'+_0x160f19+':'+(_0x152bbc?'1':'0');}return _0x5b88ed;}function fr(_0x369c09){const _0x50e009=_0x21e9c1,_0x3f4d6b=_0x369c09[_0x50e009(0x40f)](','),_0x1d1338=[];for(const _0x1a2caf of _0x3f4d6b){const [_0x1facae,_0x17f7d2,_0x21b01d]=_0x1a2caf[_0x50e009(0x40f)](':');_0x1d1338[_0x50e009(0x354)]({'startOffset':Number(_0x1facae),'endOffset':Number(_0x17f7d2),'collapsed':_0x1facae===_0x17f7d2,'isActive':_0x21b01d==='1'});}return _0x1d1338['some'](_0x356079=>_0x356079[_0x50e009(0x199)])||(_0x1d1338[0x0][_0x50e009(0x199)]=!0x0),_0x1d1338;}class Ft extends _0x522cd9{constructor(){const _0x4f53af=_0x21e9c1;super(...arguments),l(this,_0x4f53af(0x3cc),new _0x43e69b(null)),l(this,_0x4f53af(0x2ef),this[_0x4f53af(0x3cc)][_0x4f53af(0xb6)]());}['syncEditingCollabCursor'](_0x22ff30){const _0xf9b4eb=_0x21e9c1,{unitID:_0x3c2c06,memberID:_0x371240,textRanges:_0x18533f}=_0x22ff30,_0x403ece=Vs(_0x18533f),_0x30f7e5={'unitID':_0x3c2c06,'memberID':_0x371240,'selection':_0x403ece};this[_0xf9b4eb(0x3cc)][_0xf9b4eb(0x175)](_0x30f7e5);}}var mr=Object[_0x21e9c1(0x155)],gr=Object[_0x21e9c1(0x241)],Sr=(_0xec08a2,_0x52e98d,_0x33a8e2,_0x59ce03)=>{const _0xb9cb90=_0x21e9c1;for(var _0x11dd51=_0x59ce03>0x1?void 0x0:_0x59ce03?gr(_0x52e98d,_0x33a8e2):_0x52e98d,_0x19aaf4=_0xec08a2[_0xb9cb90(0x2a7)]-0x1,_0x33452b;_0x19aaf4>=0x0;_0x19aaf4--)(_0x33452b=_0xec08a2[_0x19aaf4])&&(_0x11dd51=(_0x59ce03?_0x33452b(_0x52e98d,_0x33a8e2,_0x11dd51):_0x33452b(_0x11dd51))||_0x11dd51);return _0x59ce03&&_0x11dd51&&mr(_0x52e98d,_0x33a8e2,_0x11dd51),_0x11dd51;},us=(_0x191466,_0x3c2838)=>(_0x33f850,_0x2da166)=>_0x3c2838(_0x33f850,_0x2da166,_0x191466);let Xe=class{constructor(_0x1b7358,_0x43a129){const _0x5e85d3=_0x21e9c1;this[_0x5e85d3(0x27a)]=_0x1b7358,this[_0x5e85d3(0x40a)]=_0x43a129;}['transformSelections'](_0x2b2a1f){const _0x16265a=_0x21e9c1;var _0x425691;const _0x1846a1=this[_0x16265a(0x27a)][_0x16265a(0xdc)](_0x2b3617),_0x5be4c1=(_0x425691=_0x1846a1['getDocRanges']())!=null?_0x425691:[];if(_0x5be4c1['length']===0x0)return;const _0x400b09=[{'id':_0x16265a(0x2a6),'params':{'unitId':_0x2b2a1f[_0x16265a(0x33d)],'actions':null,'textRanges':_0x5be4c1}}],_0x7447c=this['_transformService'][_0x16265a(0x311)](_0x2b2a1f,_0x400b09);if(!_0x5889b9(_0x7447c))throw _0x7447c[_0x16265a(0xeb)];const _0x3b8e5b=_0x7447c[_0x16265a(0xc7)][0x0][_0x16265a(0x3ee)]['textRanges'];Array['isArray'](_0x3b8e5b)&&_0x3b8e5b[_0x16265a(0x2a7)]&&_0x1846a1[_0x16265a(0xb8)](_0x3b8e5b,!0x1);}};Xe=Sr([us(0x0,_0xc5d09(_0xe15c29)),us(0x1,_0x52d7ce)],Xe);const pr=new Set([_0x2cf966['id']]);function ds(_0x284f11,_0x4a7ef2,_0x4ad9fa,_0x432faa,_0x56eb89){const _0x441853=_0x21e9c1;var _0x209cf2,_0x4f79ce,_0x447fbb,_0x374060;const _0x36d885=[];for(const _0x298234 of _0x284f11)if(pr['has'](_0x298234['id'])){if(_0x36d885['length']>0x0)break;_0x36d885['push'](_0x298234);break;}else _0x36d885['push'](_0x298234);const _0x2e3c40=(_0x4f79ce=(_0x209cf2=_0x56eb89[_0x441853(0x18b)]())==null?void 0x0:_0x209cf2[_0x441853(0x17e)])!=null?_0x4f79ce:_0x441853(0x3a1),_0x5356ee=(_0x374060=(_0x447fbb=_0x56eb89['getCurrentUser']())==null?void 0x0:_0x447fbb['memberID'])!=null?_0x374060:_0x441853(0x3a1);return{'changeset':{'unitID':_0x4a7ef2,'type':_0x3c069a(_0x4ad9fa[_0x441853(0x3a7)](_0x4a7ef2)),'baseRev':_0x432faa[_0x441853(0x1c3)](_0x4a7ef2),'revision':0x0,'userID':_0x2e3c40,'memberID':_0x5356ee,'mutations':_0x36d885},'pendingMutations':_0x284f11[_0x441853(0x333)](_0x36d885[_0x441853(0x2a7)])};}function vr(_0x2ef260,_0x4967b0,_0x592f17,_0x3ef8db,_0x391839){const _0x1d9b0e=_0x21e9c1;var _0x1adb80,_0x2fc903,_0x5ee892,_0x24d07c;const _0x21fdc9=[_0x2ef260[_0x1d9b0e(0x207)]((_0x41ba92,_0xe865d6)=>{const _0x1091f4=_0x1d9b0e;var _0x53c700;const {id:_0x2add39}=_0x41ba92,{id:_0x3efac3,type:_0x11ce73}=_0xe865d6,_0xf1bf0=(_0x53c700=_0x41ba92['params'])!=null?_0x53c700:{'actions':null},_0x3e7177=_0xe865d6[_0x1091f4(0x3ee)];if(_0x2add39&&_0x2add39!==_0x3efac3)throw new Error(_0x1091f4(0x399)+_0x2add39+_0x1091f4(0xd4)+_0x3efac3+'.');return{..._0x41ba92,'id':_0x3efac3,'type':_0x11ce73,'params':{'unitId':_0x3e7177[_0x1091f4(0x223)],'textRanges':_0x3e7177[_0x1091f4(0x379)],'actions':_0x4a0a64['compose'](_0xf1bf0['actions'],_0x3e7177['actions'])}};},{})],_0x130170=(_0x2fc903=(_0x1adb80=_0x391839[_0x1d9b0e(0x18b)]())==null?void 0x0:_0x1adb80['userID'])!=null?_0x2fc903:'unknown',_0x3609a1=(_0x24d07c=(_0x5ee892=_0x391839[_0x1d9b0e(0x18b)]())==null?void 0x0:_0x5ee892[_0x1d9b0e(0x259)])!=null?_0x24d07c:_0x1d9b0e(0x3a1);return{'changeset':{'unitID':_0x4967b0,'type':_0x3c069a(_0x592f17[_0x1d9b0e(0x3a7)](_0x4967b0)),'baseRev':_0x3ef8db[_0x1d9b0e(0x1c3)](_0x4967b0),'revision':0x0,'userID':_0x130170,'memberID':_0x3609a1,'mutations':_0x21fdc9},'pendingMutations':[]};}const Ir={'id':_0x3a5982['id'],'type':_0xa145b3[_0x21e9c1(0x369)],'params':{}};var Er=Object[_0x21e9c1(0x155)],Cr=Object[_0x21e9c1(0x241)],_e=(_0x2c9750,_0x2d648f,_0x203184,_0x37d372)=>{const _0x3a3cbf=_0x21e9c1;for(var _0x15b161=_0x37d372>0x1?void 0x0:_0x37d372?Cr(_0x2d648f,_0x203184):_0x2d648f,_0x44d93c=_0x2c9750[_0x3a3cbf(0x2a7)]-0x1,_0x492c21;_0x44d93c>=0x0;_0x44d93c--)(_0x492c21=_0x2c9750[_0x44d93c])&&(_0x15b161=(_0x37d372?_0x492c21(_0x2d648f,_0x203184,_0x15b161):_0x492c21(_0x15b161))||_0x15b161);return _0x37d372&&_0x15b161&&Er(_0x2d648f,_0x203184,_0x15b161),_0x15b161;},m=(_0x1a54a1,_0x1d40bd)=>(_0x5543ac,_0x630a44)=>_0x1d40bd(_0x5543ac,_0x630a44,_0x1a54a1),P=(_0x33f171=>(_0x33f171[_0x21e9c1(0xe3)]='not_collab',_0x33f171['SYNCED']='synced',_0x33f171[_0x21e9c1(0x12a)]=_0x21e9c1(0x41c),_0x33f171[_0x21e9c1(0x242)]=_0x21e9c1(0x314),_0x33f171[_0x21e9c1(0x1d0)]=_0x21e9c1(0x3dc),_0x33f171['FETCH_MISS']='fetch_missing',_0x33f171[_0x21e9c1(0x3a5)]=_0x21e9c1(0x2e4),_0x33f171[_0x21e9c1(0x265)]=_0x21e9c1(0x386),_0x33f171))(P||{});class ue{constructor(_0x4c2070,_0x2340d4,_0x34f90b,_0x44584f,_0x4e916d,_0x4df98c,_0xfdc65,_0x50cdac,_0x2bb7c3){const _0x383c78=_0x21e9c1;l(this,_0x383c78(0x280),null),l(this,'_pendingMutations',[]),(this[_0x383c78(0x33d)]=_0x4c2070,this[_0x383c78(0x25c)]=_0x2340d4,this['_handler']=_0x4e916d,this[_0x383c78(0x149)]=_0x4df98c,this[_0x383c78(0x11d)]=_0xfdc65,this[_0x383c78(0x25b)]=_0x50cdac,this['_localCacheService']=_0x2bb7c3,this['_awaitingChangeset']=_0x34f90b,this[_0x383c78(0x11c)]=_0x44584f);}[_0x21e9c1(0x2ce)](_0x178fee){const _0x47eac0=_0x21e9c1,_0x1493f6=this[_0x47eac0(0x25b)][_0x47eac0(0x1c3)](this[_0x47eac0(0x33d)]);return _0x178fee[_0x47eac0(0x406)]>_0x1493f6+0x1?(this['_handler']['onMissingChangesets']({'from':_0x1493f6,'to':_0x178fee['revision']-0x1}),!0x0):!0x1;}[_0x21e9c1(0x323)](_0x546f6a){const _0x2b6651=_0x21e9c1;this[_0x2b6651(0x11d)]['transformUndoRedo'](this['unitID'],_0x546f6a);}['_transformSelections'](_0x4a944c){const _0x1b909f=_0x21e9c1;var _0x3cb219,_0x12e4bb;(_0x12e4bb=(_0x3cb219=this[_0x1b909f(0x170)])['onTransformSelections'])==null||_0x12e4bb['call'](_0x3cb219,_0x4a944c);}[_0x21e9c1(0x147)](_0x4451f6){const _0x467ccf=_0x21e9c1;var _0x3cff11,_0x1a4928;return(_0x1a4928=(_0x3cff11=this['_handler'])[_0x467ccf(0x214)])==null?void 0x0:_0x1a4928[_0x467ccf(0x23c)](_0x3cff11,_0x4451f6);}[_0x21e9c1(0x1a6)](_0x4be2df){const _0x553bae=_0x21e9c1;var _0x48052f,_0x415766,_0x398405;return(_0x398405=(_0x415766=(_0x48052f=this[_0x553bae(0x170)])[_0x553bae(0x1a8)])==null?void 0x0:_0x415766[_0x553bae(0x23c)](_0x48052f,_0x4be2df))!=null?_0x398405:_0x4be2df;}[_0x21e9c1(0x13a)](_0x555c84){const _0x12641e=_0x21e9c1;var _0x5c5e72,_0x47b946;if(this[_0x12641e(0x25c)]===k[_0x12641e(0x3b2)]){const {unitID:_0x37c311,mutations:_0x2d63a2,memberID:_0x3de663}=_0x555c84,_0x30b317=_0x2d63a2[0x0][_0x12641e(0x3ee)]['textRanges'];Array[_0x12641e(0x201)](_0x30b317)&&_0x30b317[_0x12641e(0x2a7)]>0x0&&((_0x47b946=(_0x5c5e72=this[_0x12641e(0x170)])['onSyncEditingCollabCursor'])==null||_0x47b946['call'](_0x5c5e72,{'unitID':_0x37c311,'memberID':_0x3de663,'textRanges':_0x30b317}));}}[_0x21e9c1(0x221)](){const _0x402509=_0x21e9c1;this[_0x402509(0x366)]['updateOfflineData'](this[_0x402509(0x33d)],this[_0x402509(0x25c)],this[_0x402509(0x280)],this[_0x402509(0x11c)]);}[_0x21e9c1(0x257)](){const _0x17181c=_0x21e9c1;return this['_revisionService'][_0x17181c(0x1c3)](this['unitID']);}['_incrementRevisionNumber'](){const _0x297f95=_0x21e9c1;this[_0x297f95(0x25b)][_0x297f95(0x303)](this[_0x297f95(0x33d)]);}[_0x21e9c1(0x32d)](_0x133467){const _0x4af51c=_0x21e9c1;var _0x23b712;const _0x1158ca=this[_0x4af51c(0x1a6)](_0x133467),_0x4eac16=_0x2ad9ca(_0x1158ca[_0x4af51c(0x22f)],this[_0x4af51c(0x149)],{'fromCollab':!0x0});if(!_0x4eac16[_0x4af51c(0x245)])throw _0x4eac16[_0x4af51c(0xeb)]instanceof Error?_0x4eac16[_0x4af51c(0xeb)]:new Error((_0x23b712=_0x4eac16[_0x4af51c(0xeb)])!=null?_0x23b712:_0x4af51c(0x36f));this['_transformIMECache'](_0x1158ca),this['_transformUndoredo'](_0x133467),this[_0x4af51c(0x198)](_0x1158ca),this[_0x4af51c(0x13a)](_0x1158ca),this[_0x4af51c(0x34e)]();}}let pe=class extends ue{constructor(_0x285ef8,_0x3fa7ff,_0x48f1e9,_0x8b6391,_0x4b91e8,_0x49f46b,_0x189283,_0x34cf82,_0x300236,_0x45a33f){const _0x46eaa5=_0x21e9c1;super(_0x285ef8,_0x3fa7ff,null,[],_0x48f1e9,_0x34cf82,_0x189283,_0x8b6391,_0x4b91e8),l(this,'status','synced'),(this[_0x46eaa5(0x27a)]=_0x49f46b,this['_logService']=_0x300236,this[_0x46eaa5(0x40a)]=_0x45a33f);}[_0x21e9c1(0xc2)](_0x17745a){const _0x2bbe29=_0x21e9c1,_0x4024dd=this[_0x2bbe29(0x27a)][_0x2bbe29(0x169)](X,this[_0x2bbe29(0x33d)],this[_0x2bbe29(0x25c)],[_0x17745a],this['_handler']);return _0x4024dd[_0x2bbe29(0x3b5)](),_0x4024dd[_0x2bbe29(0x221)](),_0x4024dd;}[_0x21e9c1(0x302)](_0x9b2290){const _0x119303=_0x21e9c1;if(this[_0x119303(0x2ce)](_0x9b2290))return this['_injector'][_0x119303(0x169)](B,this[_0x119303(0x33d)],this[_0x119303(0x25c)],null,[],null,[_0x9b2290],this[_0x119303(0x170)]);try{const _0x395d4a=this[_0x119303(0x40a)]['transformMutationsWithChangeset'](_0x9b2290,[Ir]);if(_0x5889b9(_0x395d4a)){const {c1Prime:_0x5e087c}=_0x395d4a;return this[_0x119303(0x32d)](_0x5e087c),this;}throw _0x395d4a[_0x119303(0xeb)];}catch(_0x335cb7){return this['_logService']['error'](_0x335cb7),this['_onConflict'](!0x1);}}[_0x21e9c1(0x2f6)](_0x55ff28){const _0x396115=_0x21e9c1;return this[_0x396115(0x27a)]['createInstance'](Q,this[_0x396115(0x33d)],this[_0x396115(0x25c)],null,[],this[_0x396115(0x170)],_0x55ff28);}[_0x21e9c1(0x31b)](){const _0x2a1528=_0x21e9c1;throw new Error(_0x2a1528(0x344));}[_0x21e9c1(0x347)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x46820a=_0x21e9c1;return this[_0x46820a(0x27a)][_0x46820a(0x169)](ee,this[_0x46820a(0x33d)],this[_0x46820a(0x25c)],null,[],this[_0x46820a(0x170)]);}['toggleOnline'](){return this;}[_0x21e9c1(0x28f)](){const _0x861ed=_0x21e9c1;throw new Error(_0x861ed(0xf4));}['fetchMiss'](){const _0xbb78e6=_0x21e9c1,_0x545539=this[_0xbb78e6(0x25b)][_0xbb78e6(0x1c3)](this['unitID']);return this[_0xbb78e6(0x170)][_0xbb78e6(0x3d6)]({'from':_0x545539,'to':0x0}),this[_0xbb78e6(0x27a)][_0xbb78e6(0x169)](B,this[_0xbb78e6(0x33d)],this['type'],null,[],null,[],this[_0xbb78e6(0x170)]);}};pe=_e([m(0x3,_0xc5d09(_0x4fd1c9)),m(0x4,_0xc5d09(w)),m(0x5,_0xc5d09(_0xe15c29)),m(0x6,_0x2d3636),m(0x7,_0x4fdaef),m(0x8,_0x3b7308),m(0x9,_0x52d7ce)],pe);let X=class extends ue{constructor(_0x39b7cd,_0x17cd12,_0x4050a4,_0x4aeb44,_0x371e92,_0x18c9c7,_0x2494f5,_0x2473c8,_0x39ea40,_0xde2bd2,_0x2e9ac7,_0x3994ce,_0x1bd355,_0x3c95bf){const _0x2888c5=_0x21e9c1;super(_0x39b7cd,_0x17cd12,null,_0x4050a4,_0x4aeb44,_0xde2bd2,_0x3c95bf,_0x18c9c7,_0x2494f5),l(this,_0x2888c5(0x2dd),_0x2888c5(0x41c)),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this[_0x2888c5(0x27a)]=_0x371e92,this[_0x2888c5(0xa7)]=_0x2473c8,this['_logService']=_0x39ea40,this[_0x2888c5(0x168)]=_0x2e9ac7,this[_0x2888c5(0x40a)]=_0x3994ce,this[_0x2888c5(0x3ae)]=_0x1bd355);}[_0x21e9c1(0xc2)](_0x759938){const _0x551baa=_0x21e9c1;return this[_0x551baa(0x11c)][_0x551baa(0x354)](_0x759938),this[_0x551baa(0x221)](),this;}[_0x21e9c1(0x302)](_0x224111){const _0x418847=_0x21e9c1;if(this[_0x418847(0x2ce)](_0x224111))return this[_0x418847(0x36c)](),this[_0x418847(0x27a)][_0x418847(0x169)](B,this[_0x418847(0x33d)],this[_0x418847(0x25c)],null,this[_0x418847(0x11c)],null,[_0x224111],this[_0x418847(0x170)]);try{const _0x5bc359=this[_0x418847(0x40a)][_0x418847(0x311)](_0x224111,this[_0x418847(0x11c)]);if(_0x5889b9(_0x5bc359)){const {c1Prime:_0x541dac,m2Prime:_0x1527ca}=_0x5bc359;this[_0x418847(0x32d)](_0x541dac);const _0x27f432=this[_0x418847(0x27a)][_0x418847(0x169)](X,this[_0x418847(0x33d)],this[_0x418847(0x25c)],_0x1527ca,this[_0x418847(0x170)]);return this[_0x418847(0x36c)](),_0x27f432['_schedule'](this['_scheduleTimestamp']?Math[_0x418847(0x2cb)](0x0,new Date()['getTime']()-this[_0x418847(0x31c)]):this[_0x418847(0x31f)]()),_0x27f432;}throw _0x5bc359[_0x418847(0xeb)];}catch(_0x28dbf9){return this[_0x418847(0x42c)]['error'](_0x28dbf9),this[_0x418847(0x2f6)](!0x1);}}[_0x21e9c1(0x31b)](){const _0x3d45c7=_0x21e9c1;throw new Error(_0x3d45c7(0x2c5));}[_0x21e9c1(0x347)](){const _0x137d93=_0x21e9c1;throw new Error(_0x137d93(0x174));}[_0x21e9c1(0x320)](){const _0x21cd46=_0x21e9c1;return this[_0x21cd46(0x36c)](),this[_0x21cd46(0x27a)][_0x21cd46(0x169)](ee,this['unitID'],this[_0x21cd46(0x25c)],null,this[_0x21cd46(0x11c)],this[_0x21cd46(0x170)]);}[_0x21e9c1(0x1ce)](){return this;}[_0x21e9c1(0x3b5)](_0x3c318c){const _0x2750e7=_0x21e9c1,_0x3b0e39=_0x3c318c!=null?_0x3c318c:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x2750e7(0x361)](),this['_sendingTimer']=window[_0x2750e7(0x18d)](()=>{const _0x51a9df=_0x2750e7;this[_0x51a9df(0x36c)]();let _0x1fae8a=null;switch(this[_0x51a9df(0x25c)]){case k[_0x51a9df(0xc3)]:{_0x1fae8a=ds(this[_0x51a9df(0x11c)],this[_0x51a9df(0x33d)],this['_univerInstanceService'],this['_revisionService'],this['_memberService']);break;}case k[_0x51a9df(0x3b2)]:{this[_0x51a9df(0x11c)][_0x51a9df(0x231)](_0x299d2f=>_0x299d2f['id']===_0x56e718['id'])?_0x1fae8a=vr(this[_0x51a9df(0x11c)],this[_0x51a9df(0x33d)],this[_0x51a9df(0x3ae)],this[_0x51a9df(0x25b)],this[_0x51a9df(0xa7)]):_0x1fae8a=ds(this['_pendingMutations'],this[_0x51a9df(0x33d)],this[_0x51a9df(0x3ae)],this['_revisionService'],this[_0x51a9df(0xa7)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x51a9df(0x25c)]+_0x51a9df(0x167));}const {changeset:_0x1c3919,pendingMutations:_0x4cda22}=_0x1fae8a;this[_0x51a9df(0x170)][_0x51a9df(0x21e)](_0x1c3919);const _0x1995af=_0x4cda22[_0x51a9df(0x2a7)]?this[_0x51a9df(0x27a)][_0x51a9df(0x169)](q,this[_0x51a9df(0x33d)],this[_0x51a9df(0x25c)],_0x1c3919,_0x4cda22,this[_0x51a9df(0x170)]):this[_0x51a9df(0x27a)][_0x51a9df(0x169)](Z,this['unitID'],this[_0x51a9df(0x25c)],_0x1c3919,this['_handler']);_0x1995af[_0x51a9df(0x221)](),this['_handler'][_0x51a9df(0xc5)](this,_0x1995af);},_0x3b0e39);}[_0x21e9c1(0x31f)](){const _0x26cac1=_0x21e9c1;var _0x556216;const _0x269892=this[_0x26cac1(0x168)][_0x26cac1(0x19d)]($);return(_0x556216=_0x269892==null?void 0x0:_0x269892[_0x26cac1(0x3f8)])!=null?_0x556216:vn;}[_0x21e9c1(0x28f)](){const _0x20d6fe=_0x21e9c1;throw new Error(_0x20d6fe(0x11b));}[_0x21e9c1(0x36c)](){const _0x336054=_0x21e9c1;this[_0x336054(0x240)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x336054(0x240)]=null);}['_onConflict'](_0x388bd9){const _0x5e1cc7=_0x21e9c1;return this[_0x5e1cc7(0x36c)](),this[_0x5e1cc7(0x27a)][_0x5e1cc7(0x169)](Q,this['unitID'],this[_0x5e1cc7(0x25c)],null,this[_0x5e1cc7(0x11c)],this[_0x5e1cc7(0x170)],_0x388bd9);}};X=_e([m(0x4,_0xc5d09(_0xe15c29)),m(0x5,_0xc5d09(_0x4fd1c9)),m(0x6,_0xc5d09(w)),m(0x7,_0xc5d09(ae)),m(0x8,_0x3b7308),m(0x9,_0x4fdaef),m(0xa,_0x232b04),m(0xb,_0x52d7ce),m(0xc,_0x77aace),m(0xd,_0x2d3636)],X);let Z=class extends ue{constructor(_0x49c42d,_0x2d358a,_0x257a3d,_0x2c5489,_0x1218ee,_0x46c1f0,_0x2cb73c,_0x5c8b51,_0x312d74,_0x38c967,_0x456efa){const _0x4f42a9=_0x21e9c1;super(_0x49c42d,_0x2d358a,_0x257a3d,[],_0x2c5489,_0x5c8b51,_0x456efa,_0x46c1f0,_0x2cb73c),l(this,_0x4f42a9(0x2dd),_0x4f42a9(0x314)),(this[_0x4f42a9(0x27a)]=_0x1218ee,this[_0x4f42a9(0x42c)]=_0x312d74,this['_transformService']=_0x38c967);}['appendMutation'](_0x5f13c4){const _0x2d9ae7=_0x21e9c1,_0x1b1651=this[_0x2d9ae7(0x27a)]['createInstance'](q,this[_0x2d9ae7(0x33d)],this['type'],this[_0x2d9ae7(0x280)],[_0x5f13c4],this['_handler']);return _0x1b1651[_0x2d9ae7(0x221)](),_0x1b1651;}['onRemoteChangeset'](_0x2432d0){const _0x1c6eb5=_0x21e9c1;if(this['_checkMissing'](_0x2432d0))return this['_injector'][_0x1c6eb5(0x169)](B,this[_0x1c6eb5(0x33d)],this[_0x1c6eb5(0x25c)],this[_0x1c6eb5(0x280)],[],null,[_0x2432d0],this['_handler']);try{const _0x3f590f=this['_transformService'][_0x1c6eb5(0x120)]([_0x2432d0],[this[_0x1c6eb5(0x280)]],!0x1);if(_0x3d0ed3(_0x3f590f)){const {c1Prime:_0x55c987,c2Prime:_0x4fb450}=_0x3f590f;this[_0x1c6eb5(0x32d)](_0x55c987[0x0]),_0x4fb450[0x0][_0x1c6eb5(0x32b)]=this[_0x1c6eb5(0x257)]();const _0x311d86=this[_0x1c6eb5(0x27a)][_0x1c6eb5(0x169)](Z,this['unitID'],this[_0x1c6eb5(0x25c)],_0x4fb450[0x0],this[_0x1c6eb5(0x170)]);return _0x311d86[_0x1c6eb5(0x221)](),_0x311d86;}return this[_0x1c6eb5(0x2f6)](!0x1);}catch(_0x129da1){return this[_0x1c6eb5(0x42c)][_0x1c6eb5(0xeb)](_0x129da1),this['_onConflict'](!0x1);}}[_0x21e9c1(0x31b)](_0xd11542){const _0x238395=_0x21e9c1,_0x249003=this[_0x238395(0x25b)][_0x238395(0x1c3)](this['unitID']);if(_0xd11542[_0x238395(0x406)]<_0x249003-0x1)return this;if(this['_checkMissing'](_0xd11542))return this['_injector']['createInstance'](B,this[_0x238395(0x33d)],this[_0x238395(0x25c)],null,[],this[_0x238395(0x280)],[],this[_0x238395(0x170)]);this[_0x238395(0x34e)]();const _0x4e49b5=this[_0x238395(0x27a)][_0x238395(0x169)](pe,this['unitID'],this[_0x238395(0x25c)],this['_handler']);return _0x4e49b5[_0x238395(0x221)](),_0x4e49b5;}[_0x21e9c1(0x347)](_0x138d69){const _0x2abf7a=_0x21e9c1;return this[_0x2abf7a(0x2f6)](!!(_0x138d69!=null&&_0x138d69[_0x2abf7a(0x29e)]));}[_0x21e9c1(0x320)](){const _0x3d581e=_0x21e9c1;return this[_0x3d581e(0x27a)][_0x3d581e(0x169)](ee,this[_0x3d581e(0x33d)],this[_0x3d581e(0x25c)],this['_awaitingChangeset'],[],this[_0x3d581e(0x170)]);}[_0x21e9c1(0x1ce)](){return this;}[_0x21e9c1(0x28f)](){const _0x324921=_0x21e9c1;this[_0x324921(0x170)][_0x324921(0x21e)](this[_0x324921(0x280)]);}[_0x21e9c1(0x2f6)](_0x4004fe){const _0x49f02d=_0x21e9c1;return this[_0x49f02d(0x27a)][_0x49f02d(0x169)](Q,this[_0x49f02d(0x33d)],this[_0x49f02d(0x25c)],this[_0x49f02d(0x280)],[],this[_0x49f02d(0x170)],_0x4004fe);}};Z=_e([m(0x4,_0xc5d09(_0xe15c29)),m(0x5,_0xc5d09(_0x4fd1c9)),m(0x6,_0xc5d09(w)),m(0x7,_0x4fdaef),m(0x8,_0x3b7308),m(0x9,_0x52d7ce),m(0xa,_0x2d3636)],Z);let q=class extends ue{constructor(_0x25ce2e,_0x5bc9fc,_0xa6192d,_0x2c4589,_0xda097d,_0x224918,_0x3a72c9,_0x46124a,_0x99a92a,_0x44286d,_0x1c19db,_0x29efb1){const _0x11478f=_0x21e9c1;super(_0x25ce2e,_0x5bc9fc,_0xa6192d,_0x2c4589,_0xda097d,_0x99a92a,_0x29efb1,_0x3a72c9,_0x46124a),l(this,_0x11478f(0x2dd),_0x11478f(0x3dc)),(this[_0x11478f(0x27a)]=_0x224918,this[_0x11478f(0x42c)]=_0x44286d,this['_transformService']=_0x1c19db);}[_0x21e9c1(0xc2)](_0x2c7fee){const _0x2fbe53=_0x21e9c1;return this[_0x2fbe53(0x11c)][_0x2fbe53(0x354)](_0x2c7fee),this;}[_0x21e9c1(0x302)](_0x1d2ac4){const _0xb94ce5=_0x21e9c1;if(this[_0xb94ce5(0x2ce)](_0x1d2ac4))return this['_injector'][_0xb94ce5(0x169)](B,this[_0xb94ce5(0x33d)],this['type'],this[_0xb94ce5(0x280)],this[_0xb94ce5(0x11c)],null,[_0x1d2ac4],this[_0xb94ce5(0x170)]);try{const _0x324576=this[_0xb94ce5(0x40a)][_0xb94ce5(0x120)]([_0x1d2ac4],[this[_0xb94ce5(0x280)]],!0x1);if(_0x3d0ed3(_0x324576)){const {c1Prime:_0x2653ec,c2Prime:_0x45087f}=_0x324576,_0x4bdc03=this['_transformService'][_0xb94ce5(0x311)](_0x2653ec[0x0],this[_0xb94ce5(0x11c)]);if(_0x5889b9(_0x4bdc03)){const {c1Prime:_0x5cdb13,m2Prime:_0x153008}=_0x4bdc03;return this[_0xb94ce5(0x32d)](_0x5cdb13),_0x45087f[0x0][_0xb94ce5(0x32b)]=this[_0xb94ce5(0x257)](),this[_0xb94ce5(0x27a)][_0xb94ce5(0x169)](q,this['unitID'],this[_0xb94ce5(0x25c)],_0x45087f[0x0],_0x153008,this[_0xb94ce5(0x170)]);}throw _0x4bdc03[_0xb94ce5(0xeb)];}throw _0x324576[_0xb94ce5(0xeb)];}catch(_0x192a23){return this[_0xb94ce5(0x42c)][_0xb94ce5(0xeb)](_0x192a23),this[_0xb94ce5(0x2f6)](!0x1);}}[_0x21e9c1(0x31b)](_0x2949f4){const _0x3dc9e6=_0x21e9c1;if(this[_0x3dc9e6(0x2ce)](_0x2949f4))return this[_0x3dc9e6(0x27a)][_0x3dc9e6(0x169)](B,this[_0x3dc9e6(0x33d)],this[_0x3dc9e6(0x25c)],null,this[_0x3dc9e6(0x11c)],this[_0x3dc9e6(0x280)],[],this[_0x3dc9e6(0x170)]);this[_0x3dc9e6(0x34e)]();const _0x34c2ea=this[_0x3dc9e6(0x27a)]['createInstance'](X,this[_0x3dc9e6(0x33d)],this[_0x3dc9e6(0x25c)],this['_pendingMutations'],this[_0x3dc9e6(0x170)]);return _0x34c2ea[_0x3dc9e6(0x3b5)](),_0x34c2ea[_0x3dc9e6(0x221)](),_0x34c2ea;}[_0x21e9c1(0x347)](_0x3980cf){const _0x5ac612=_0x21e9c1;return this[_0x5ac612(0x2f6)](!!(_0x3980cf!=null&&_0x3980cf[_0x5ac612(0x29e)]));}[_0x21e9c1(0x320)](){const _0x11514d=_0x21e9c1;return this[_0x11514d(0x27a)][_0x11514d(0x169)](ee,this[_0x11514d(0x33d)],this['type'],this[_0x11514d(0x280)],this['_pendingMutations'],this['_handler']);}[_0x21e9c1(0x1ce)](){return this;}['resend'](){const _0x584a0a=_0x21e9c1;this[_0x584a0a(0x170)]['onSendChangeset'](this[_0x584a0a(0x280)]);}[_0x21e9c1(0x2f6)](_0x5acc66){const _0x727e08=_0x21e9c1;return this[_0x727e08(0x27a)]['createInstance'](Q,this[_0x727e08(0x33d)],this[_0x727e08(0x25c)],null,this['_pendingMutations'],this['_handler'],_0x5acc66);}};q=_e([m(0x5,_0xc5d09(_0xe15c29)),m(0x6,_0xc5d09(_0x4fd1c9)),m(0x7,_0xc5d09(w)),m(0x8,_0x4fdaef),m(0x9,_0x3b7308),m(0xa,_0x52d7ce),m(0xb,_0x2d3636)],q);let Q=class extends ue{constructor(_0x3b35f3,_0x26306b,_0x5ee231,_0x3f76f0,_0x5d244a,_0x13009e=!0x1,_0x192134,_0x383f1b,_0x1fc938,_0x4d3894,_0x37f4a2,_0x19e762,_0x2d3f7c){const _0x85e2f1=_0x21e9c1;super(_0x3b35f3,_0x26306b,_0x5ee231,_0x3f76f0,_0x5d244a,_0x383f1b,_0x1fc938,_0x37f4a2,_0x4d3894),l(this,'status','conflict'),(this[_0x85e2f1(0x297)]=_0x13009e,this['_permissionService']=_0x192134,this[_0x85e2f1(0x148)]=_0x19e762,this[_0x85e2f1(0x1ef)]=_0x2d3f7c,this['_showConflictNotification'](),this[_0x85e2f1(0x293)](),this[_0x85e2f1(0x1ab)]());}[_0x21e9c1(0xc2)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x21e9c1(0x320)](){return this;}[_0x21e9c1(0x1ce)](){return this;}[_0x21e9c1(0x28f)](){const _0x581fb0=_0x21e9c1;throw new Error(_0x581fb0(0x13e));}['_clearLocalCache'](){const _0x18e53a=_0x21e9c1;this['_localCacheService'][_0x18e53a(0x177)](this[_0x18e53a(0x33d)],this[_0x18e53a(0x25c)],null,[]);}[_0x21e9c1(0x20a)](){const _0x58160a=_0x21e9c1;this[_0x58160a(0x297)]?this['_notificationService'][_0x58160a(0x2b7)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x58160a(0x148)]['t'](_0x58160a(0x26b)),'type':_0x58160a(0xeb),'duration':0x0}):this[_0x58160a(0x1ef)]['show']({'title':this[_0x58160a(0x148)]['t'](_0x58160a(0x3fb)),'content':this[_0x58160a(0x148)]['t'](_0x58160a(0x2a2)),'type':'error','duration':0x0});}[_0x21e9c1(0x1ab)](){const _0x424e00=_0x21e9c1;this[_0x424e00(0x2c9)][_0x424e00(0x30b)](new _0x474cc1(this['unitID'])['id'],!0x1);}};Q=_e([m(0x6,_0xc5d09(_0x21fa0d)),m(0x7,_0x4fdaef),m(0x8,_0x2d3636),m(0x9,_0xc5d09(w)),m(0xa,_0xc5d09(_0x4fd1c9)),m(0xb,_0xc5d09(_0x2e0e1c)),m(0xc,_0xfb5137)],Q);let ee=class extends ue{constructor(_0x140e2f,_0x275eaa,_0x1884c4,_0x4445e3,_0x39771d,_0x8a4acd,_0x2cbcde,_0x5531b2,_0x538915,_0x3bf3fc){const _0x4f0526=_0x21e9c1;super(_0x140e2f,_0x275eaa,_0x1884c4,_0x4445e3,_0x39771d,_0x538915,_0x3bf3fc,_0x2cbcde,_0x5531b2),l(this,_0x4f0526(0x2dd),'offline'),this['_injector']=_0x8a4acd;}[_0x21e9c1(0xc2)](_0x47fc97){const _0x232ec5=_0x21e9c1;return this[_0x232ec5(0x11c)]['push'](_0x47fc97),this[_0x232ec5(0x221)](),this;}[_0x21e9c1(0x302)](_0xb38336){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x24d44a=_0x21e9c1;throw new Error(_0x24d44a(0x33c));}[_0x21e9c1(0x347)](){const _0x498eff=_0x21e9c1;throw new Error(_0x498eff(0x352));}[_0x21e9c1(0x320)](){return this;}[_0x21e9c1(0x1ce)](){const _0x674fb1=_0x21e9c1,{_injector:_0x499dc4,_pendingMutations:_0x18f8f7,_awaitingChangeset:_0x397723,unitID:_0x27e814,_handler:_0x73034e,type:_0x2dc50c}=this,_0x217f6a=Fs(_0x499dc4,_0x27e814,_0x2dc50c,_0x397723,_0x18f8f7,_0x73034e);return _0x217f6a instanceof X?_0x217f6a[_0x674fb1(0x3b5)]():(_0x217f6a instanceof q||_0x217f6a instanceof Z)&&_0x217f6a['resend'](),_0x217f6a;}[_0x21e9c1(0x28f)](){const _0x4e8edb=_0x21e9c1;throw new Error(_0x4e8edb(0x2e0));}};ee=_e([m(0x5,_0xc5d09(_0xe15c29)),m(0x6,_0xc5d09(_0x4fd1c9)),m(0x7,_0xc5d09(w)),m(0x8,_0x4fdaef),m(0x9,_0x2d3636)],ee);let B=class extends ue{constructor(_0x5dfe14,_0x3ab88d,_0x17c837,_0x1fc004,_0x57678c,_0x49c84c,_0x1d35eb,_0x1071db,_0x3d2f9d,_0x16dd21,_0x5b1f2f,_0x1d374c,_0x592798,_0x1ec3af){const _0x1f869b=_0x21e9c1;super(_0x5dfe14,_0x3ab88d,_0x17c837,_0x1fc004,_0x1d35eb,_0x1d374c,_0x592798,_0x3d2f9d,_0x16dd21),l(this,'status',_0x1f869b(0x2b9)),(this[_0x1f869b(0x135)]=_0x57678c,this[_0x1f869b(0x30d)]=_0x49c84c,this[_0x1f869b(0x27a)]=_0x1071db,this[_0x1f869b(0x42c)]=_0x5b1f2f,this['_transformService']=_0x1ec3af);}[_0x21e9c1(0x136)](_0x4b91a9){const _0x44f26=_0x21e9c1;try{const _0x26a444=[..._0x4b91a9,...this[_0x44f26(0x30d)]],_0x29e797=[this['_awaitingChangeset']||this[_0x44f26(0x135)]][_0x44f26(0x129)](_0x1c3d30=>!!_0x1c3d30);let _0x1a0b89,_0x1a904a;if(_0x29e797['length']){const _0x6dfeb7=this['_transformService'][_0x44f26(0x120)](_0x26a444,_0x29e797,!0x1);if(!_0x3d0ed3(_0x6dfeb7))throw _0x6dfeb7[_0x44f26(0xeb)];_0x1a0b89=_0x6dfeb7[_0x44f26(0x2ba)],_0x1a904a=_0x6dfeb7[_0x44f26(0x142)];}else _0x1a0b89=_0x26a444,_0x1a904a=[];let _0x553304=this[_0x44f26(0x11c)];_0x1a0b89[_0x44f26(0x20d)](_0x8e5ed8=>{const _0x4571f2=_0x44f26;let _0x5b7d45;if(_0x553304[_0x4571f2(0x2a7)]){const _0x108cec=this[_0x4571f2(0x40a)]['transformMutationsWithChangeset'](_0x8e5ed8,_0x553304);if(!_0x5889b9(_0x108cec))throw _0x108cec[_0x4571f2(0xeb)];_0x5b7d45=_0x108cec['c1Prime'],_0x553304=_0x108cec[_0x4571f2(0xc7)];}else _0x5b7d45=_0x8e5ed8;this[_0x4571f2(0x32d)](_0x5b7d45);}),this['_acknowledgedAwaitingChangeset']&&this[_0x44f26(0x34e)](),this['_awaitingChangeset']&&_0x1a904a[_0x44f26(0x2a7)]&&(_0x1a904a[0x0][_0x44f26(0x32b)]=this[_0x44f26(0x257)]());let _0x2b2bc2;if(this[_0x44f26(0x280)]&&_0x553304[_0x44f26(0x2a7)]!==0x0)_0x2b2bc2=this['_injector'][_0x44f26(0x169)](q,this[_0x44f26(0x33d)],this['type'],_0x1a904a[0x0],_0x553304,this[_0x44f26(0x170)]);else{if(this[_0x44f26(0x280)]&&_0x553304['length']===0x0)_0x1a904a[0x0][_0x44f26(0x32b)]=this[_0x44f26(0x257)](),_0x2b2bc2=this[_0x44f26(0x27a)][_0x44f26(0x169)](Z,this['unitID'],this['type'],_0x1a904a[0x0],this[_0x44f26(0x170)]);else{if(_0x553304['length']!==0x0){const _0x1d7d05=this[_0x44f26(0x27a)][_0x44f26(0x169)](X,this[_0x44f26(0x33d)],this[_0x44f26(0x25c)],_0x553304,this[_0x44f26(0x170)]);_0x1d7d05['_schedule'](),_0x2b2bc2=_0x1d7d05;}else _0x2b2bc2=this[_0x44f26(0x27a)]['createInstance'](pe,this['unitID'],this[_0x44f26(0x25c)],this['_handler']);}}return _0x2b2bc2[_0x44f26(0x221)](),_0x2b2bc2;}catch(_0x52e23e){return this[_0x44f26(0x42c)][_0x44f26(0xeb)](_0x44f26(0x19a),'failed\x20to\x20apply\x20missed\x20changesets!',_0x52e23e),this[_0x44f26(0x27a)][_0x44f26(0x169)](Q,this['unitID'],this[_0x44f26(0x25c)],this[_0x44f26(0x280)],this[_0x44f26(0x11c)],this[_0x44f26(0x170)],!0x1);}}[_0x21e9c1(0x28f)](){const _0x1b9d2e=_0x21e9c1;throw new Error(_0x1b9d2e(0x2c2));}[_0x21e9c1(0xc2)](_0x4a8008){const _0x5d49ff=_0x21e9c1;return this['_pendingMutations'][_0x5d49ff(0x354)](_0x4a8008),this;}[_0x21e9c1(0x302)](_0x468b63){const _0x1eeaef=_0x21e9c1;return this[_0x1eeaef(0x30d)][_0x1eeaef(0x354)](_0x468b63),this;}['onRemoteAck'](_0x681b6e){const _0x538ba=_0x21e9c1;if(this[_0x538ba(0x280)])return this[_0x538ba(0x135)]=this[_0x538ba(0x280)],this[_0x538ba(0x280)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x21e9c1(0x347)](_0x2d17d6){const _0x207aaf=_0x21e9c1;return this['_onConflict'](!!(_0x2d17d6!=null&&_0x2d17d6[_0x207aaf(0x29e)]));}['toggleOffline'](){const _0x5ee98b=_0x21e9c1;return this[_0x5ee98b(0x27a)]['createInstance'](ee,this['unitID'],this[_0x5ee98b(0x25c)],this[_0x5ee98b(0x280)],this[_0x5ee98b(0x11c)],this[_0x5ee98b(0x170)]);}[_0x21e9c1(0x1ce)](){return this;}[_0x21e9c1(0x2f6)](_0x1c6e36){const _0x275715=_0x21e9c1;return this[_0x275715(0x27a)][_0x275715(0x169)](Q,this[_0x275715(0x33d)],this[_0x275715(0x25c)],this[_0x275715(0x280)],this['_pendingMutations'],this[_0x275715(0x170)],_0x1c6e36);}};B=_e([m(0x7,_0xc5d09(_0xe15c29)),m(0x8,_0xc5d09(_0x4fd1c9)),m(0x9,_0xc5d09(w)),m(0xa,_0x3b7308),m(0xb,_0x4fdaef),m(0xc,_0x2d3636),m(0xd,_0x52d7ce)],B);function Fs(_0x517b9d,_0x2ea67a,_0x5753e2,_0x43e310,_0x4694fd,_0x21fcca){const _0x36bb7d=_0x21e9c1;return _0x43e310&&_0x4694fd[_0x36bb7d(0x2a7)]?_0x517b9d[_0x36bb7d(0x169)](q,_0x2ea67a,_0x5753e2,_0x43e310,_0x4694fd,_0x21fcca):_0x43e310?_0x517b9d['createInstance'](Z,_0x2ea67a,_0x5753e2,_0x43e310,_0x21fcca):_0x4694fd['length']?_0x517b9d[_0x36bb7d(0x169)](X,_0x2ea67a,_0x5753e2,_0x4694fd,_0x21fcca):_0x517b9d['createInstance'](pe,_0x2ea67a,_0x5753e2,_0x21fcca);}var br=Object[_0x21e9c1(0x155)],Tr=Object[_0x21e9c1(0x241)],Wt=(_0x2ec10d,_0x404a5d,_0x56901d,_0x462990)=>{const _0x39ac88=_0x21e9c1;for(var _0xa9e965=_0x462990>0x1?void 0x0:_0x462990?Tr(_0x404a5d,_0x56901d):_0x404a5d,_0x1cf594=_0x2ec10d[_0x39ac88(0x2a7)]-0x1,_0x38fb75;_0x1cf594>=0x0;_0x1cf594--)(_0x38fb75=_0x2ec10d[_0x1cf594])&&(_0xa9e965=(_0x462990?_0x38fb75(_0x404a5d,_0x56901d,_0xa9e965):_0x38fb75(_0xa9e965))||_0xa9e965);return _0x462990&&_0xa9e965&&br(_0x404a5d,_0x56901d,_0xa9e965),_0xa9e965;},p=(_0x4e74db,_0x2f8f90)=>(_0x1142a8,_0x594c74)=>_0x2f8f90(_0x1142a8,_0x594c74,_0x4e74db);let qe=class extends _0x522cd9{constructor(_0x26d057,_0x5e3787,_0x116346,_0x59dfb3,_0x5b3014,_0x22a191,_0x499e20,_0x5944fc,_0x3c7138,_0x5b012a,_0xe57b5a,_0x2346fb,_0x32c99c){const _0x5fbe4=_0x21e9c1;super(),l(this,_0x5fbe4(0x2b0),new _0x43e69b(null)),l(this,_0x5fbe4(0x1f7),this[_0x5fbe4(0x2b0)][_0x5fbe4(0xb6)]()),l(this,'_state'),l(this,'_collaborationPaused',!0x1),l(this,_0x5fbe4(0x112),''),l(this,_0x5fbe4(0x2fe),0x0),l(this,_0x5fbe4(0x1fa),this['state$'][_0x5fbe4(0xcb)](_0x19b406(_0x13f553=>_0x13f553?_0x13f553[_0x5fbe4(0x2dd)]:P['OFFLINE']),_0xc9a95a(0x1))),l(this,_0x5fbe4(0x429),!0x1),l(this,'_remoteChangesetQueue',[]),(this['unitID']=_0x26d057,this['session']=_0x5e3787,this[_0x5fbe4(0x196)]=_0x116346,this[_0x5fbe4(0x27a)]=_0x59dfb3,this['_localCacheService']=_0x5b3014,this['_compressMutationService']=_0x22a191,this[_0x5fbe4(0x148)]=_0x499e20,this[_0x5fbe4(0x25b)]=_0x5944fc,this[_0x5fbe4(0x42c)]=_0x3c7138,this[_0x5fbe4(0x149)]=_0x5b012a,this[_0x5fbe4(0x237)]=_0xe57b5a,this['_permissionService']=_0x2346fb,this[_0x5fbe4(0x282)]=_0x32c99c);}get[_0x21e9c1(0x224)](){const _0x579418=_0x21e9c1;return this[_0x579418(0x275)];}async[_0x21e9c1(0xbb)](){const _0x28f6e8=_0x21e9c1;if(this[_0x28f6e8(0x224)])throw new Error(_0x28f6e8(0x22b));await this[_0x28f6e8(0x139)]();}[_0x21e9c1(0xb9)](){const _0x518527=_0x21e9c1;return this[_0x518527(0x422)]=!0x0,_0x3117b1(()=>{const _0x598112=_0x518527;this[_0x598112(0x422)]=!0x1,this[_0x598112(0x2eb)]();});}['_updateState'](_0x29aeec){const _0x372afb=_0x21e9c1;this[_0x372afb(0x275)]=_0x29aeec,this[_0x372afb(0x2b0)][_0x372afb(0x175)](_0x29aeec);}async[_0x21e9c1(0x139)](){const _0x55691d=_0x21e9c1;var _0x45b073;this[_0x55691d(0x16c)](await this[_0x55691d(0x3df)]()),this['_singleActiveUnitService']&&((_0x45b073=this[_0x55691d(0x282)])==null||_0x45b073['editingUnit'](this[_0x55691d(0x33d)]),this[_0x55691d(0x1fd)](this[_0x55691d(0x282)][_0x55691d(0x29a)](this[_0x55691d(0x33d)])['subscribe'](_0x3d115a=>{const _0x32e882=_0x55691d;this['_logService']['debug'](_0x32e882(0x141),_0x32e882(0x229),_0x3d115a),_0x3d115a===Bs[_0x32e882(0x397)]?(this['_messageService']['show']({'content':this['_localeService']['t'](_0x32e882(0x2f9)),'type':_0x3346c3['Warning']}),this[_0x32e882(0x2c9)]['updatePermissionPoint'](new _0x474cc1(this[_0x32e882(0x33d)])['id'],!0x1)):this['_permissionService'][_0x32e882(0x30b)](new _0x474cc1(this['unitID'])['id'],!0x0);})));let _0x18896a=!0x1;return this['disposeWithMe'](this[_0x55691d(0x211)][_0x55691d(0x30c)][_0x55691d(0xd9)](_0x5b5582=>{const _0x58857f=_0x55691d;_0x5b5582===Y[_0x58857f(0x315)]?this[_0x58857f(0x27e)](_0x18896a):_0x5b5582===Y['OFFLINE']&&(_0x18896a=!0x0,this['_toggleOffline']());})),this[_0x55691d(0x1fd)](this[_0x55691d(0x211)][_0x55691d(0x256)][_0x55691d(0xd9)](_0x39d405=>{const _0x6bfabe=_0x55691d;try{switch(_0x39d405[_0x6bfabe(0x435)]){case _0x11fad5['NEW_CHANGESETS']:{this[_0x6bfabe(0x317)](_0xa4f3f2(_0x39d405['data']));break;}case _0x11fad5[_0x6bfabe(0x13c)]:{this[_0x6bfabe(0x42d)](_0x39d405[_0x6bfabe(0x42f)]);break;}case _0x11fad5[_0x6bfabe(0x27b)]:{this[_0x6bfabe(0x26f)]();break;}case _0x11fad5[_0x6bfabe(0x2df)]:{this[_0x6bfabe(0xf8)](_0x39d405[_0x6bfabe(0x42f)]['changesets'][_0x6bfabe(0x35e)](_0x215569=>_0xa4f3f2(_0x215569)));break;}case _0x11fad5[_0x6bfabe(0x12d)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1a52c0){throw console[_0x6bfabe(0xeb)](_0x6bfabe(0x15a),_0x1a52c0),_0x1a52c0;}})),this[_0x55691d(0x275)];}[_0x21e9c1(0x1e5)](){const _0x29e4e6=_0x21e9c1;this[_0x29e4e6(0x429)]=!0x1;}[_0x21e9c1(0x2e5)](){const _0x2dbe51=_0x21e9c1;if(this[_0x2dbe51(0x429)])throw new Error(_0x2dbe51(0x342));this[_0x2dbe51(0x429)]=!0x0;}['_onLocalMutation'](_0x5ecd98){const _0x4e15fb=_0x21e9c1;this[_0x4e15fb(0x2e5)](),this[_0x4e15fb(0x16c)](this[_0x4e15fb(0x275)][_0x4e15fb(0xc2)](_0x5ecd98)),this[_0x4e15fb(0x1e5)]();}[_0x21e9c1(0x317)](_0x2f80d5){const _0x3c0989=_0x21e9c1;if(!(_0x2f80d5['revision']<=this[_0x3c0989(0x25b)][_0x3c0989(0x1c3)](this[_0x3c0989(0x33d)]))){if(this[_0x3c0989(0x422)]){this['_remoteChangesetQueue'][_0x3c0989(0x354)](_0x2f80d5);return;}this[_0x3c0989(0x160)](_0x2f80d5);}}[_0x21e9c1(0x2eb)](){const _0x430edf=_0x21e9c1;this[_0x430edf(0x18c)][_0x430edf(0x20d)](_0x1990e8=>this[_0x430edf(0x160)](_0x1990e8)),this[_0x430edf(0x18c)]=[];}[_0x21e9c1(0x160)](_0x2194b6){const _0x203d92=_0x21e9c1,_0x56e552=this[_0x203d92(0x2c7)][_0x203d92(0x108)][_0x203d92(0x322)](this[_0x203d92(0x2c7)][_0x203d92(0x108)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x2194b6[_0x203d92(0x22f)],null)||_0x2194b6['mutations'],_0x4df9dd={..._0x2194b6,'mutations':_0x56e552};this[_0x203d92(0x2e5)](),this[_0x203d92(0x16c)](this[_0x203d92(0x275)][_0x203d92(0x302)](_0x4df9dd)),this[_0x203d92(0x1e5)]();}[_0x21e9c1(0x42d)](_0x47382b){const _0x4ef4a7=_0x21e9c1;this['_lockTransition'](),this[_0x4ef4a7(0x16c)](this[_0x4ef4a7(0x275)][_0x4ef4a7(0x31b)](_0x47382b)),this['_unlockTransition']();}[_0x21e9c1(0x26f)](_0x497def){const _0x2ee99d=_0x21e9c1;this[_0x2ee99d(0x2e5)](),this[_0x2ee99d(0x16c)](this[_0x2ee99d(0x275)]['onRemoteRej'](_0x497def)),this[_0x2ee99d(0x1e5)]();}[_0x21e9c1(0xf8)](_0x33bd47){const _0x198949=_0x21e9c1;if(!(this[_0x198949(0x275)]instanceof B))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4127eb=_0x33bd47[_0x198949(0x35e)](_0x2c7d66=>{const _0x511611=_0x198949,_0x2302a2=this['_compressMutationService'][_0x511611(0x108)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x511611(0x108)][_0x511611(0xba)]()[_0x511611(0x118)])(_0x2c7d66['mutations'],null)||_0x2c7d66['mutations'];return{..._0x2c7d66,'mutations':_0x2302a2};});this['_lockTransition'](),this[_0x198949(0x16c)](this[_0x198949(0x275)][_0x198949(0x136)](_0x4127eb)),this[_0x198949(0x1e5)]();}[_0x21e9c1(0x20b)](){const _0x2f6620=_0x21e9c1;this[_0x2f6620(0x2e5)](),this[_0x2f6620(0x16c)](this[_0x2f6620(0x275)]['toggleOffline']()),this[_0x2f6620(0x1e5)]();}[_0x21e9c1(0x27e)](_0x4a353d=!0x1){const _0xd02e3b=_0x21e9c1;this[_0xd02e3b(0x2e5)](),this[_0xd02e3b(0x16c)](this[_0xd02e3b(0x275)][_0xd02e3b(0x1ce)]()),this['_unlockTransition']();const _0x325a9c=this[_0xd02e3b(0x275)];_0x4a353d&&_0x325a9c instanceof pe&&(this[_0xd02e3b(0x2e5)](),this['_updateState'](_0x325a9c[_0xd02e3b(0x289)]()),this[_0xd02e3b(0x1e5)]());}async[_0x21e9c1(0x3df)](){return new Promise(_0x38006f=>{const _0x5747e1=_0x24ad;this[_0x5747e1(0x211)][_0x5747e1(0x30c)]['pipe'](_0x152593(0x1))[_0x5747e1(0xd9)](async _0x16c1ba=>{const _0x479230=_0x5747e1;_0x38006f(await this[_0x479230(0x3b3)](_0x16c1ba===Y[_0x479230(0x315)]));});});}[_0x21e9c1(0x350)](){const _0x443900=_0x21e9c1,_0x307a95=this[_0x443900(0x33d)];return{'onStateChange':(_0x3f635f,_0x36d4e5)=>{const _0xb6985=_0x443900;if(_0x3f635f!==this['_state'])throw new Error(_0xb6985(0x421)+_0x3f635f[_0xb6985(0x2dd)]+_0xb6985(0x407)+_0x36d4e5[_0xb6985(0x2dd)]+_0xb6985(0x2c1)+this[_0xb6985(0x275)][_0xb6985(0x2dd)]);this[_0xb6985(0x16c)](_0x36d4e5);},'onSendChangeset':_0x8b7357=>{const _0x1894a4=_0x443900;_0x8b7357[_0x1894a4(0x23e)]||(_0x8b7357[_0x1894a4(0x23e)]=this[_0x1894a4(0x112)],_0x8b7357['reqId']=++this[_0x1894a4(0x2fe)]);const _0xd703be={'eventID':_0x11fad5['SUBMIT_CHANGESET'],'data':{'unitID':_0x8b7357[_0x1894a4(0x33d)],'unitType':this[_0x1894a4(0x196)],'changeset':_0x8b7357,'memberID':this['session'][_0x1894a4(0x2a3)]()}};this[_0x1894a4(0x211)]['send'](_0xd703be,this[_0x1894a4(0x33d)]);},'onMissingChangesets':({from:_0x49a671,to:_0x11a190})=>{const _0x3ee3cb=_0x443900;this[_0x3ee3cb(0x42c)][_0x3ee3cb(0x219)](_0x3ee3cb(0x141),_0x3ee3cb(0x2fc)+_0x49a671+_0x3ee3cb(0x36b)+_0x11a190);const _0x5c8165={'eventID':_0x11fad5[_0x3ee3cb(0x15b)],'data':{'unitID':_0x307a95,'unitType':this[_0x3ee3cb(0x196)],'from':_0x49a671,'to':_0x11a190}};this[_0x3ee3cb(0x211)][_0x3ee3cb(0x2e3)](_0x5c8165,this[_0x3ee3cb(0x33d)]);}};}async[_0x21e9c1(0x3b3)](_0x12cb1e){const _0xd640c3=_0x21e9c1;var _0x2b61ad,_0x3a350f;const _0x336560=await this[_0xd640c3(0x366)][_0xd640c3(0x239)](this[_0xd640c3(0x33d)]),_0x494328=(_0x2b61ad=_0x336560==null?void 0x0:_0x336560['mutations'])!=null?_0x2b61ad:[],_0x3fa220=(_0x3a350f=_0x336560==null?void 0x0:_0x336560[_0xd640c3(0x30f)])!=null?_0x3a350f:null,_0x453bff=!!(_0x3fa220!=null&&_0x3fa220['sid'])&&!!(_0x3fa220!=null&&_0x3fa220[_0xd640c3(0x2c0)]);this[_0xd640c3(0x112)]=_0x453bff?_0x3fa220[_0xd640c3(0x23e)]:sr(),this[_0xd640c3(0x2fe)]=_0x453bff?_0x3fa220[_0xd640c3(0x2c0)]:0x0;const _0x2cb53e=this[_0xd640c3(0x33d)];try{this[_0xd640c3(0x419)](_0x3fa220,_0x494328);}catch(_0x402b9e){this[_0xd640c3(0x42c)][_0xd640c3(0xeb)](_0x402b9e);}const _0x1db078=this[_0xd640c3(0x350)]();if(_0x12cb1e){const _0x104394=Fs(this[_0xd640c3(0x27a)],_0x2cb53e,this[_0xd640c3(0x196)],_0x3fa220,_0x494328,_0x1db078);return _0x104394 instanceof X?_0x104394['_schedule']():(_0x104394 instanceof q||_0x104394 instanceof Z)&&_0x104394[_0xd640c3(0x28f)](),_0x104394;}return this[_0xd640c3(0x27a)][_0xd640c3(0x169)](ee,_0x2cb53e,this[_0xd640c3(0x196)],_0x3fa220,_0x494328,_0x1db078);}[_0x21e9c1(0x419)](_0x5255be,_0x195cc2){const _0x5bfb7d=_0x21e9c1;var _0x1d4922,_0x1a5332;const _0xec1931=this[_0x5bfb7d(0x2c7)][_0x5bfb7d(0x108)][_0x5bfb7d(0x322)](this[_0x5bfb7d(0x2c7)]['interceptor'][_0x5bfb7d(0xba)]()[_0x5bfb7d(0x118)]);(_0x1d4922=_0xec1931((_0x5255be==null?void 0x0:_0x5255be[_0x5bfb7d(0x22f)])||[],null))==null||_0x1d4922[_0x5bfb7d(0x20d)](_0x4841cf=>this['_commandService']['executeCommand'](_0x4841cf['id'],_0x4841cf['params'])),(_0x1a5332=_0xec1931(_0x195cc2||[],null))==null||_0x1a5332[_0x5bfb7d(0x20d)](_0x5c18a9=>this[_0x5bfb7d(0x149)][_0x5bfb7d(0x3f7)](_0x5c18a9['id'],_0x5c18a9[_0x5bfb7d(0x3ee)]));}};qe=Wt([p(0x3,_0xc5d09(_0xe15c29)),p(0x4,_0xc5d09(w)),p(0x5,_0xc5d09(_0x4cb297)),p(0x6,_0xc5d09(_0x2e0e1c)),p(0x7,_0xc5d09(_0x4fd1c9)),p(0x8,_0x3b7308),p(0x9,_0x4fdaef),p(0xa,_0x3d62ab),p(0xb,_0x21fa0d),p(0xc,_0x126256(tt))],qe);let Tt=class extends qe{constructor(_0x3703a8,_0x49b0c8,_0x51bd1e,_0x408138,_0x3392a6,_0x2ae859,_0x3b2904,_0x326b80,_0x69f337,_0x1bcc9b,_0x833987,_0x5dfa5c,_0x5c7ad7,_0x22dd7d,_0x20b81f,_0x16a11c,_0x2036d6){const _0x9c9898=_0x21e9c1;super(_0x3703a8,_0x51bd1e,_0x49b0c8,_0x408138,_0x3392a6,_0x2ae859,_0x3b2904,_0x326b80,_0x5c7ad7,_0x22dd7d,_0x20b81f,_0x16a11c,_0x2036d6),this[_0x9c9898(0x33d)]=_0x3703a8,this[_0x9c9898(0x25c)]=_0x49b0c8,this['_docStateChangeManagerService']=_0x69f337,this[_0x9c9898(0x2d0)]=_0x1bcc9b,this[_0x9c9898(0x3f9)]=_0x833987,this[_0x9c9898(0x3e3)]=_0x5dfa5c;}[_0x21e9c1(0x350)](){const _0x499ebb=_0x21e9c1,_0x42a4fc=super[_0x499ebb(0x350)]();return _0x42a4fc['onTransformIME']=_0x484b03=>this[_0x499ebb(0x2d0)][_0x499ebb(0x284)](_0x484b03),_0x42a4fc[_0x499ebb(0x34b)]=_0x3927ba=>this[_0x499ebb(0x3f9)][_0x499ebb(0x357)](_0x3927ba),_0x42a4fc[_0x499ebb(0x25e)]=_0x403812=>this[_0x499ebb(0x3e3)][_0x499ebb(0x186)](_0x403812),_0x42a4fc[_0x499ebb(0x1a8)]=_0x30f814=>this[_0x499ebb(0x2d0)][_0x499ebb(0x411)](_0x30f814),_0x42a4fc;}async[_0x21e9c1(0x139)](){const _0x312dea=_0x21e9c1,_0x5f411d=await super[_0x312dea(0x139)]();return this['_docStateChangeManagerService'][_0x312dea(0x244)][_0x312dea(0xcb)](_0x3eb144(this[_0x312dea(0xe7)]))[_0x312dea(0xd9)](_0x5319e8=>{const _0x5ea462=_0x312dea;if(_0x5319e8==null)return;const {unitId:_0x2e6634,redoState:_0x50cd0a,commandId:_0x36271e}=_0x5319e8;if(_0x2e6634!==this[_0x5ea462(0x33d)])return;const _0x8ac794={'id':_0x36271e,'type':_0xa145b3['MUTATION'],'params':{'unitId':_0x2e6634,'actions':_0x50cd0a[_0x5ea462(0x346)],'textRanges':null}};this['_onLocalMutation'](_0x8ac794);}),_0x5f411d;}};Tt=Wt([p(0x3,_0xc5d09(_0xe15c29)),p(0x4,_0xc5d09(w)),p(0x5,_0xc5d09(_0x4cb297)),p(0x6,_0xc5d09(_0x2e0e1c)),p(0x7,_0xc5d09(_0x4fd1c9)),p(0x8,_0xc5d09(_0x48837f)),p(0x9,_0xc5d09(Ye)),p(0xa,_0xc5d09(Xe)),p(0xb,_0xc5d09(Ft)),p(0xc,_0x3b7308),p(0xd,_0x4fdaef),p(0xe,_0x3d62ab),p(0xf,_0x21fa0d),p(0x10,_0x126256(tt))],Tt);let Rt=class extends qe{constructor(_0x3b86c2,_0x24d100,_0x1771b0,_0x2a950d,_0x55be0c,_0x7072a,_0x4ff3d2,_0x3d3a7b,_0x5dc4d0,_0x537302,_0x5462fc,_0x5407ce,_0x3da62e,_0x5ba09b){const _0x13a6bb=_0x21e9c1;super(_0x3b86c2,_0x1771b0,_0x24d100,_0x2a950d,_0x55be0c,_0x7072a,_0x4ff3d2,_0x3d3a7b,_0x537302,_0x5462fc,_0x5407ce,_0x3da62e,_0x5ba09b),this[_0x13a6bb(0x33d)]=_0x3b86c2,this[_0x13a6bb(0x25c)]=_0x24d100,this[_0x13a6bb(0x3a3)]=_0x5dc4d0;}[_0x21e9c1(0x350)](){const _0x54d826=_0x21e9c1,_0x1e04db=super[_0x54d826(0x350)]();return _0x1e04db[_0x54d826(0x34b)]=_0x11a76c=>this[_0x54d826(0x3a3)][_0x54d826(0x357)](_0x11a76c),_0x1e04db;}async[_0x21e9c1(0x139)](){const _0x163255=_0x21e9c1,_0xddf661=await super[_0x163255(0x139)]();return this[_0x163255(0x1fd)](this[_0x163255(0x149)]['onCommandExecuted']((_0x1fa69f,_0x2ff4ab)=>{const _0x283e7d=_0x163255;if(_0x1fa69f[_0x283e7d(0x25c)]!==_0xa145b3[_0x283e7d(0x369)]||_0x2ff4ab!=null&&_0x2ff4ab[_0x283e7d(0x349)]||_0x2ff4ab!=null&&_0x2ff4ab[_0x283e7d(0x3a9)])return;const _0x52a459=_0x1fa69f['params'];if((_0x52a459==null?void 0x0:_0x52a459[_0x283e7d(0x223)])!==this[_0x283e7d(0x33d)])return;const _0x513ce9=_0x1fa69f,_0x449820=this[_0x283e7d(0x2c7)][_0x283e7d(0x108)][_0x283e7d(0x322)](this[_0x283e7d(0x2c7)][_0x283e7d(0x108)]['getInterceptPoints']()[_0x283e7d(0x2f1)])([_0x513ce9],null)||[_0x513ce9];this[_0x283e7d(0x3c4)](_0x449820[0x0]);})),_0xddf661;}};Rt=Wt([p(0x3,_0xc5d09(_0xe15c29)),p(0x4,_0xc5d09(w)),p(0x5,_0xc5d09(_0x4cb297)),p(0x6,_0xc5d09(_0x2e0e1c)),p(0x7,_0xc5d09(_0x4fd1c9)),p(0x8,_0xc5d09(Ke)),p(0x9,_0x3b7308),p(0xa,_0x4fdaef),p(0xb,_0x3d62ab),p(0xc,_0x21fa0d),p(0xd,_0x126256(tt))],Rt);var Rr=Object[_0x21e9c1(0x155)],Or=Object[_0x21e9c1(0x241)],Dr=(_0x21218c,_0x2d61fd,_0x1f65a4,_0x5ce3f4)=>{for(var _0x76c0ed=_0x5ce3f4>0x1?void 0x0:_0x5ce3f4?Or(_0x2d61fd,_0x1f65a4):_0x2d61fd,_0x165fdd=_0x21218c['length']-0x1,_0x2b6fb6;_0x165fdd>=0x0;_0x165fdd--)(_0x2b6fb6=_0x21218c[_0x165fdd])&&(_0x76c0ed=(_0x5ce3f4?_0x2b6fb6(_0x2d61fd,_0x1f65a4,_0x76c0ed):_0x2b6fb6(_0x76c0ed))||_0x76c0ed);return _0x5ce3f4&&_0x76c0ed&&Rr(_0x2d61fd,_0x1f65a4,_0x76c0ed),_0x76c0ed;},_t=(_0x199650,_0x5282ae)=>(_0x3c2691,_0xbc93d9)=>_0x5282ae(_0x3c2691,_0xbc93d9,_0x199650);let Le=class extends _0x522cd9{constructor(_0x479979,_0x494bca,_0x518779){const _0x4aeaed=_0x21e9c1;super(),l(this,_0x4aeaed(0x255),new Map()),l(this,'_entityInit$',new _0x22bff9()),(this[_0x4aeaed(0x27a)]=_0x479979,this[_0x4aeaed(0x417)]=_0x494bca,this['_univerInstanceService']=_0x518779,this[_0x4aeaed(0x139)]());}[_0x21e9c1(0x335)](){const _0x16a028=_0x21e9c1;super[_0x16a028(0x335)](),this[_0x16a028(0x255)][_0x16a028(0x20d)](_0x47457f=>_0x47457f[_0x16a028(0x335)]()),this[_0x16a028(0x255)]['clear']();}[_0x21e9c1(0x270)](_0x23a4ba){const _0x2464c5=_0x21e9c1;var _0x7d2df;return(_0x7d2df=this[_0x2464c5(0x255)][_0x2464c5(0xdc)](_0x23a4ba))!=null?_0x7d2df:null;}[_0x21e9c1(0x3c0)](_0x2f58fa){const _0x4ba735=_0x21e9c1,_0x2cecf9=this[_0x4ba735(0x270)](_0x2f58fa);return _0x2cecf9?_0x3513a6(_0x2cecf9):this[_0x4ba735(0x330)][_0x4ba735(0xcb)](_0x4acb53(_0x55226c=>_0x55226c[_0x4ba735(0x33d)]===_0x2f58fa));}['_init'](){const _0x219212=_0x21e9c1;this[_0x219212(0x3ae)][_0x219212(0x27c)](_0x3626c8[_0x219212(0xc3)])[_0x219212(0xcb)](_0x3eb144(this[_0x219212(0xe7)]),_0x26d973(0x10))['subscribe'](async _0x27afa2=>{const _0x27c103=_0x219212,_0x41f757=_0x27afa2[_0x27c103(0x362)](),_0x15c761=await this['_startCollaboration'](_0x41f757,k['UNIVER_SHEET']);this[_0x27c103(0x255)][_0x27c103(0x2c4)](_0x41f757,_0x15c761);}),this['_univerInstanceService'][_0x219212(0x27c)](_0x3626c8[_0x219212(0x3b2)])[_0x219212(0xcb)](_0x3eb144(this[_0x219212(0xe7)]),_0x26d973(0x10))[_0x219212(0xcb)](_0x4acb53(_0x90d14=>!_0x90d14['getUnitId']()[_0x219212(0x307)]('__')))[_0x219212(0xd9)](async _0x22c200=>{const _0x36e3b4=_0x219212,_0x378aa7=_0x22c200[_0x36e3b4(0x362)](),_0x45775c=await this[_0x36e3b4(0x433)](_0x378aa7,k[_0x36e3b4(0x3b2)]);this[_0x36e3b4(0x255)]['set'](_0x378aa7,_0x45775c);}),_0x7be1ed(this[_0x219212(0x3ae)][_0x219212(0x24e)](_0x3626c8['UNIVER_SHEET']),this[_0x219212(0x3ae)][_0x219212(0x24e)](_0x3626c8[_0x219212(0x3b2)]))['pipe'](_0x3eb144(this[_0x219212(0xe7)]))['subscribe'](_0x34f1ca=>{const _0x231f34=_0x219212,_0x50e4dd=_0x34f1ca[_0x231f34(0x362)](),_0x507b1c=this[_0x231f34(0x255)][_0x231f34(0xdc)](_0x50e4dd);_0x507b1c&&(_0x507b1c['dispose'](),this[_0x231f34(0x255)]['delete'](_0x50e4dd));});}async[_0x21e9c1(0x433)](_0x31421d,_0x14c0b9){const _0x52c1b3=_0x21e9c1,_0x47b68c=await this[_0x52c1b3(0x417)]['requireSession'](_0x31421d),_0x216fe7=this[_0x52c1b3(0x27a)][_0x52c1b3(0x169)](this[_0x52c1b3(0xd0)](_0x14c0b9),_0x31421d,_0x14c0b9,_0x47b68c);return await _0x216fe7[_0x52c1b3(0xbb)](),this['_entityInit$'][_0x52c1b3(0x175)](_0x216fe7),_0x216fe7;}['_getCtorByUniverType'](_0x10cd69){const _0x4d6ac9=_0x21e9c1;switch(_0x10cd69){case k[_0x4d6ac9(0x3b2)]:return Tt;case k[_0x4d6ac9(0xc3)]:return Rt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x10cd69);}}};Le=Dr([_t(0x0,_0xc5d09(_0xe15c29)),_t(0x1,_0xc5d09(ce)),_t(0x2,_0x77aace)],Le);const fs=['purple300','jiqing500',_0x21e9c1(0x279),_0x21e9c1(0x249),_0x21e9c1(0x13f),_0x21e9c1(0x144)];class Gt extends _0x4aed79{constructor(){const _0x1c6d52=_0x21e9c1;super(...arguments),l(this,_0x1c6d52(0x286),new Map()),l(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0x1b571b){const _0x2349c9=_0x21e9c1;if(this[_0x2349c9(0x286)][_0x2349c9(0x188)](_0x1b571b))return this[_0x2349c9(0x286)][_0x2349c9(0xdc)](_0x1b571b);const _0x4326e4=fs[this[_0x2349c9(0x176)]];return this[_0x2349c9(0x176)]=(this[_0x2349c9(0x176)]+0x1)%fs[_0x2349c9(0x2a7)],this[_0x2349c9(0x286)][_0x2349c9(0x2c4)](_0x1b571b,_0x4326e4),_0x4326e4;}}var wr=Object['defineProperty'],Pr=Object[_0x21e9c1(0x241)],yr=(_0x3e49f2,_0x4359a6,_0x3545c0,_0x2f6fde)=>{const _0x12cc4d=_0x21e9c1;for(var _0x1689d0=_0x2f6fde>0x1?void 0x0:_0x2f6fde?Pr(_0x4359a6,_0x3545c0):_0x4359a6,_0x33a7e5=_0x3e49f2[_0x12cc4d(0x2a7)]-0x1,_0x4a53f0;_0x33a7e5>=0x0;_0x33a7e5--)(_0x4a53f0=_0x3e49f2[_0x33a7e5])&&(_0x1689d0=(_0x2f6fde?_0x4a53f0(_0x4359a6,_0x3545c0,_0x1689d0):_0x4a53f0(_0x1689d0))||_0x1689d0);return _0x2f6fde&&_0x1689d0&&wr(_0x4359a6,_0x3545c0,_0x1689d0),_0x1689d0;},se=(_0x189818,_0x18436a)=>(_0x3cee25,_0x1a67f3)=>_0x18436a(_0x3cee25,_0x1a67f3,_0x189818);const Ur=0x12c,Nr=0x64;let Ot=class extends _0x522cd9{constructor(_0x4433f6,_0x32d878,_0x3e7193,_0x3a3e28,_0x5db337,_0x11c6a6,_0x3b8b75,_0x28858f,_0x4e373d){const _0x3d34b6=_0x21e9c1;super(),l(this,_0x3d34b6(0x138),!0x1),l(this,_0x3d34b6(0x139),!0x1),l(this,'_cursorInfo$',new _0x43e69b(new Map())),l(this,'cursorInfo$',this[_0x3d34b6(0x21c)][_0x3d34b6(0xb6)]()),l(this,_0x3d34b6(0x28b),new _0x43e69b([])),l(this,_0x3d34b6(0x3ad),this[_0x3d34b6(0x28b)][_0x3d34b6(0xcb)](_0x14769f(Ur))),l(this,_0x3d34b6(0x131),_0x1097d8(_0x5e5f05=>{const _0x2a47c4=_0x3d34b6,_0x43cc1c={'eventID':_0x11fad5[_0x2a47c4(0x306)],'data':{'unitID':this[_0x2a47c4(0x33d)],'memberID':this[_0x2a47c4(0x327)][_0x2a47c4(0x2a3)](),'selection':Vs(_0x5e5f05)}};this[_0x2a47c4(0x327)][_0x2a47c4(0x2e3)](_0x43cc1c,this[_0x2a47c4(0x33d)]);},Nr)),(this[_0x3d34b6(0x33d)]=_0x4433f6,this[_0x3d34b6(0x327)]=_0x32d878,this[_0x3d34b6(0x27a)]=_0x3e7193,this[_0x3d34b6(0x125)]=_0x3a3e28,this[_0x3d34b6(0xa7)]=_0x5db337,this['_syncEditingCollabCursorService']=_0x11c6a6,this['_transformService']=_0x3b8b75,this['_univerInstanceService']=_0x28858f,this[_0x3d34b6(0x149)]=_0x4e373d);}get[_0x21e9c1(0x35f)](){const _0x24f44b=_0x21e9c1;return this[_0x24f44b(0x21c)][_0x24f44b(0x1e9)]();}get['roomMembers'](){const _0x2a2fe1=_0x21e9c1;return this[_0x2a2fe1(0x28b)]['getValue']();}[_0x21e9c1(0x335)](){const _0x574195=_0x21e9c1;super[_0x574195(0x335)](),this[_0x574195(0x21c)][_0x574195(0x175)](new Map()),this[_0x574195(0x21c)][_0x574195(0x218)](),this[_0x574195(0x28b)]['next']([]),this[_0x574195(0x28b)][_0x574195(0x218)]();}[_0x21e9c1(0xbb)](){const _0x40fab9=_0x21e9c1;this[_0x40fab9(0x139)]||(this['_init']=!0x0,this[_0x40fab9(0x327)]['sessionStatus$']['pipe'](_0x3eb144(this[_0x40fab9(0xe7)]))[_0x40fab9(0xd9)](_0x526d71=>{const _0x580215=_0x40fab9;_0x526d71===Y['ONLINE']?this[_0x580215(0x27e)]():this['_toggleOffline']();}),this[_0x40fab9(0x327)][_0x40fab9(0x256)][_0x40fab9(0xcb)](_0x3eb144(this[_0x40fab9(0xe7)]))[_0x40fab9(0xd9)](_0x2a7dab=>{const _0x5d34da=_0x40fab9,_0x500c9a=_0x2a7dab['eventID'];_0x500c9a===_0x11fad5['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x2a7dab),_0x500c9a===_0x11fad5[_0x5d34da(0x271)]&&this[_0x5d34da(0x3c3)](_0x2a7dab);}),this['disposeWithMe'](this[_0x40fab9(0x149)][_0x40fab9(0x409)](_0x377341=>{const _0x510c81=_0x40fab9,_0x2b5b3d=_0x377341[_0x510c81(0x3ee)];_0x2b5b3d!=null&&this[_0x510c81(0x138)]&&_0x377341['id']===_0x3d993c['id']&&_0x2b5b3d['unitId']===this[_0x510c81(0x33d)]&&_0x2b5b3d[_0x510c81(0x31a)]===!0x1&&this[_0x510c81(0x131)](_0x2b5b3d['ranges']);})),this[_0x40fab9(0x15e)]['collabCursorState$'][_0x40fab9(0xcb)](_0x3eb144(this['dispose$']))[_0x40fab9(0xd9)](_0x6f345b=>{const _0x4fd16c=_0x40fab9;if((_0x6f345b==null?void 0x0:_0x6f345b[_0x4fd16c(0x33d)])!==this[_0x4fd16c(0x33d)])return;const _0x5a272f={'eventID':_0x11fad5[_0x4fd16c(0x306)],'data':_0x6f345b};this[_0x4fd16c(0x285)](_0x5a272f);}),this[_0x40fab9(0x1fd)](this[_0x40fab9(0x149)]['onCommandExecuted'](_0x1a86a0=>{const _0x4178a5=_0x40fab9;if(_0x1a86a0[_0x4178a5(0x3ee)]==null)return;const _0x46d2ad=_0x1a86a0['params'];if(_0x1a86a0['id']!==_0x56e718['id']||_0x46d2ad[_0x4178a5(0x223)]!==this[_0x4178a5(0x33d)])return;const _0x6b3146={'id':_0x4178a5(0x2a6),'params':_0x46d2ad},_0x1193ca=this[_0x4178a5(0x35f)];for(const [_0x3d8632,_0x516855]of _0x1193ca){const _0x159b92={'id':_0x4178a5(0x2a6),'params':{'unitId':this[_0x4178a5(0x33d)],'actions':null,'textRanges':_0x516855['ranges']}},_0x41e218=this[_0x4178a5(0x40a)][_0x4178a5(0x2b6)](_0x6b3146,_0x159b92,!0x1);if(_0x285096(_0x41e218))throw _0x41e218[_0x4178a5(0xeb)];_0x1193ca[_0x4178a5(0x2c4)](_0x3d8632,{..._0x516855,'ranges':_0x41e218[_0x4178a5(0xc7)][_0x4178a5(0x3ee)][_0x4178a5(0x379)]});}queueMicrotask(()=>{const _0x1160f7=_0x4178a5;this['_cursorInfo$'][_0x1160f7(0x175)](_0x1193ca);});})));}[_0x21e9c1(0x285)](_0x32b721){const _0x5b29f9=_0x21e9c1;var _0x3449e3,_0x329608;const {memberID:_0x33d1c3,selection:_0x79f57d}=_0x32b721[_0x5b29f9(0x42f)],_0x404dc6=fr(_0x79f57d),_0x3171a6=(_0x329608=(_0x3449e3=this['_memberService']['getMember'](this[_0x5b29f9(0x33d)],_0x33d1c3))==null?void 0x0:_0x3449e3[_0x5b29f9(0x12b)])!=null?_0x329608:_0x5b29f9(0x1dc),_0x481cb0={'color':this['_colorAssignService'][_0x5b29f9(0x1f6)](_0x33d1c3),'name':_0x3171a6,'ranges':_0x404dc6},_0x266735=this[_0x5b29f9(0x35f)];_0x266735['set'](_0x33d1c3,_0x481cb0),this[_0x5b29f9(0x21c)][_0x5b29f9(0x175)](_0x266735);}[_0x21e9c1(0x3c3)](_0x5ca281){const _0x394c51=_0x21e9c1,{memberID:_0x44c71f}=_0x5ca281['data'],_0x3cd144=this['cursorInfo'];_0x3cd144[_0x394c51(0x156)](_0x44c71f),this['_cursorInfo$'][_0x394c51(0x175)](_0x3cd144);}[_0x21e9c1(0x27e)](){const _0x359aad=_0x21e9c1;var _0x410075;if(this['_online']=!0x0,((_0x410075=this[_0x359aad(0x3ae)]['getFocusedUnit']())==null?void 0x0:_0x410075[_0x359aad(0x362)]())!==this[_0x359aad(0x33d)])return;const _0x5be49f=this[_0x359aad(0x27a)]['get'](_0x2b3617)[_0x359aad(0x2e9)]();Array[_0x359aad(0x201)](_0x5be49f)&&_0x5be49f['length']>0x0&&this[_0x359aad(0x131)](_0x5be49f);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=yr([se(0x2,_0xc5d09(_0xe15c29)),se(0x3,_0xc5d09(Gt)),se(0x4,_0xc5d09(ae)),se(0x5,_0xc5d09(Ft)),se(0x6,_0x52d7ce),se(0x7,_0x77aace),se(0x8,_0x4fdaef)],Ot);var Mr=Object[_0x21e9c1(0x155)],Ar=Object['getOwnPropertyDescriptor'],Lr=(_0x4b0851,_0x38ca85,_0x22f1c4,_0x5b9848)=>{for(var _0x2c218a=_0x5b9848>0x1?void 0x0:_0x5b9848?Ar(_0x38ca85,_0x22f1c4):_0x38ca85,_0xe19ca8=_0x4b0851['length']-0x1,_0x3b58af;_0xe19ca8>=0x0;_0xe19ca8--)(_0x3b58af=_0x4b0851[_0xe19ca8])&&(_0x2c218a=(_0x5b9848?_0x3b58af(_0x38ca85,_0x22f1c4,_0x2c218a):_0x3b58af(_0x2c218a))||_0x2c218a);return _0x5b9848&&_0x2c218a&&Mr(_0x38ca85,_0x22f1c4,_0x2c218a),_0x2c218a;},me=(_0x5dcd5a,_0x261f67)=>(_0x3a9ac5,_0x5b0d35)=>_0x261f67(_0x3a9ac5,_0x5b0d35,_0x5dcd5a);const $r=0x12c,jr=0x64,xr=()=>{let _0x44a4b8=[],_0x1c8b0d=!0x1;return _0x324f03=>{_0x44a4b8['push'](_0x324f03),_0x1c8b0d||(_0x1c8b0d=!0x0,setTimeout(()=>{_0x44a4b8['forEach'](_0x1cc762=>_0x1cc762()),_0x44a4b8=[],_0x1c8b0d=!0x1;}));};};let Dt=class extends _0x522cd9{constructor(_0x130af8,_0x43dbe2,_0x14bccb,_0x3848aa,_0x51cd96,_0x2d19c7,_0x24622a,_0x2c214e){const _0x3d6bf0=_0x21e9c1;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0x3d6bf0(0x21c),new _0x43e69b(new Map())),l(this,'cursorInfo$',this[_0x3d6bf0(0x21c)][_0x3d6bf0(0xb6)]()),l(this,_0x3d6bf0(0x28b),new _0x43e69b([])),l(this,'roomMembers$',this['_roomMembers$']['pipe'](_0x14769f($r))),l(this,'_updateLocalCursor',_0x1097d8((_0x37f2d5,_0x1daaf0)=>{const _0x4a2661=_0x3d6bf0,_0x5126da={'eventID':_0x11fad5['UPDATE_CURSOR'],'data':{'unitID':this[_0x4a2661(0x33d)],'memberID':this[_0x4a2661(0x327)]['getMemberID'](),'selection':_0x1a1baa(_0x37f2d5,_0x1daaf0['range'])}};this[_0x4a2661(0x327)]['send'](_0x5126da,this['unitID']);},jr)),(this[_0x3d6bf0(0x33d)]=_0x130af8,this['_session']=_0x43dbe2,this[_0x3d6bf0(0x27a)]=_0x14bccb,this[_0x3d6bf0(0x125)]=_0x3848aa,this[_0x3d6bf0(0xa7)]=_0x51cd96,this[_0x3d6bf0(0x3ae)]=_0x2d19c7,this['_commandService']=_0x24622a,this[_0x3d6bf0(0x304)]=_0x2c214e);}get[_0x21e9c1(0x35f)](){const _0xe01efe=_0x21e9c1;return this[_0xe01efe(0x21c)][_0xe01efe(0x1e9)]();}get[_0x21e9c1(0x39d)](){const _0x5b5c46=_0x21e9c1;return this[_0x5b5c46(0x28b)][_0x5b5c46(0x1e9)]();}['dispose'](){const _0x539a4a=_0x21e9c1;super[_0x539a4a(0x335)](),this[_0x539a4a(0x21c)][_0x539a4a(0x175)](new Map()),this['_cursorInfo$'][_0x539a4a(0x218)](),this[_0x539a4a(0x28b)][_0x539a4a(0x175)]([]),this[_0x539a4a(0x28b)][_0x539a4a(0x218)]();}[_0x21e9c1(0xbb)](){const _0x412a7a=_0x21e9c1;this['_init']||(this['_init']=!0x0,this[_0x412a7a(0x327)][_0x412a7a(0x30c)][_0x412a7a(0xcb)](_0x3eb144(this[_0x412a7a(0xe7)]))[_0x412a7a(0xd9)](_0x3a4bbb=>{const _0x4ea2ee=_0x412a7a;_0x3a4bbb===Y['ONLINE']?this[_0x4ea2ee(0x27e)]():this[_0x4ea2ee(0x20b)]();}),this['_session'][_0x412a7a(0x256)][_0x412a7a(0xcb)](_0x3eb144(this[_0x412a7a(0xe7)]))[_0x412a7a(0xd9)](_0x11284b=>{const _0x5b2f91=_0x412a7a,_0x37da34=_0x11284b[_0x5b2f91(0x435)];_0x37da34===_0x11fad5['UPDATE_CURSOR']&&this[_0x5b2f91(0x285)](_0x11284b),_0x37da34===_0x11fad5[_0x5b2f91(0x271)]&&this['_onCursorDelete'](_0x11284b);}),this[_0x412a7a(0x10f)](),this[_0x412a7a(0x1fd)](this[_0x412a7a(0x149)][_0x412a7a(0x409)](_0x1e7da2=>{const _0x2a56b8=_0x412a7a;if(this[_0x2a56b8(0x138)]&&_0x1e7da2['id']===_0x353cdd['id']&&_0x1e7da2['params']['unitId']===this[_0x2a56b8(0x33d)]){const _0x4b101a=_0x1e7da2[_0x2a56b8(0x3ee)];this[_0x2a56b8(0x131)](_0x4b101a[_0x2a56b8(0x185)],_0x4b101a[_0x2a56b8(0x32f)][0x0]);}})));}[_0x21e9c1(0x285)](_0x45b639){const _0x2b5f35=_0x21e9c1;var _0x53dd94,_0x5b143d;const {memberID:_0x281de7,selection:_0x2ecf0f}=_0x45b639[_0x2b5f35(0x42f)],{sheetName:_0x33dc4b,range:_0x40807d}=_0x15a004(_0x2ecf0f),_0x551467={'name':(_0x5b143d=(_0x53dd94=this[_0x2b5f35(0xa7)]['getMember'](this[_0x2b5f35(0x33d)],_0x281de7))==null?void 0x0:_0x53dd94['name'])!=null?_0x5b143d:_0x2b5f35(0x1dc),'range':this[_0x2b5f35(0x3bb)](_0x33dc4b,_0x40807d),'sheetID':_0x33dc4b,'color':this[_0x2b5f35(0x125)][_0x2b5f35(0x1f6)](_0x281de7),'selection':_0x2ecf0f},_0x33fe13=this[_0x2b5f35(0x35f)];_0x33fe13[_0x2b5f35(0x2c4)](_0x281de7,_0x551467),this[_0x2b5f35(0x21c)][_0x2b5f35(0x175)](_0x33fe13);}[_0x21e9c1(0x3c3)](_0x44e55b){const _0x40552d=_0x21e9c1,{memberID:_0x2e4830}=_0x44e55b[_0x40552d(0x42f)],_0x4681a9=this[_0x40552d(0x35f)];_0x4681a9[_0x40552d(0x156)](_0x2e4830),this[_0x40552d(0x21c)][_0x40552d(0x175)](_0x4681a9);}[_0x21e9c1(0x3bb)](_0x3da46c,_0x37df2a){const _0x214fb2=_0x21e9c1;var _0x432d6b,_0x49bad7;const _0x29e267=(_0x49bad7=(_0x432d6b=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x214fb2(0x33d)]))==null?void 0x0:_0x432d6b[_0x214fb2(0x115)](_0x3da46c))==null?void 0x0:_0x49bad7[_0x214fb2(0x37a)]();return(_0x29e267==null?void 0x0:_0x29e267['find'](_0x1b8036=>_0x56bc05['contains'](_0x1b8036,_0x37df2a)))||_0x37df2a;}[_0x21e9c1(0x10f)](){const _0x1e69d9=_0x21e9c1,_0x253606=new _0x40f142(),_0x5a06e9=xr(),_0x391d5e=()=>{const _0x385cda=_0x24ad;_0x253606[_0x385cda(0x335)]();const _0x43d6af=(_0x8997f5,_0x3ff2bd,_0x259a63,_0x4988cf)=>{const _0x1045f7=_0x385cda;let _0x4a6b58=[];switch(_0x8997f5['id']){case _0xa8218f['DeleteRangeMoveLeftCommandId']:{_0x4a6b58=_0x1d3f51(_0x8997f5,_0x4988cf);break;}case _0xa8218f[_0x1045f7(0x272)]:{_0x4a6b58=_0x22ef83(_0x8997f5,_0x4988cf);break;}case _0xa8218f[_0x1045f7(0x22a)]:{_0x4a6b58=_0x3aa181(_0x8997f5,_0x4988cf);break;}case _0xa8218f['InsertRangeMoveDownCommandId']:{_0x4a6b58=_0x1fb15f(_0x8997f5,_0x4988cf);break;}case _0xa8218f['InsertRangeMoveRightCommandId']:{_0x4a6b58=_0x34371c(_0x8997f5,_0x4988cf);break;}case _0xa8218f['InsertRowCommandId']:{_0x4a6b58=_0x7a3f4a(_0x8997f5,_0x4988cf);break;}case _0xa8218f['MoveRangeCommandId']:{_0x4a6b58=_0x5d0cad(_0x8997f5,_0x4988cf);break;}case _0xa8218f[_0x1045f7(0xda)]:{_0x4a6b58=_0x4d51bf(_0x8997f5,_0x4988cf);break;}case _0xa8218f['RemoveRowCommandId']:{_0x4a6b58=_0xf3a846(_0x8997f5,_0x4988cf);break;}}const _0xac7307=_0x273f04(_0x4a6b58,_0x4988cf),_0x233c73=this['cursorInfo'][_0x1045f7(0xdc)](_0x3ff2bd);if(_0x233c73&&_0xac7307){const _0x1e746f={..._0x233c73,'range':_0xac7307};this['cursorInfo'][_0x1045f7(0x2c4)](_0x3ff2bd,_0x1e746f),_0x5a06e9(()=>{const _0x37c641=_0x1045f7,_0x826bd=this[_0x37c641(0x304)][_0x37c641(0x341)](_0xac7307,_0x2c536a=>(_0x826bd[_0x37c641(0x335)](),_0x43d6af(_0x2c536a,_0x3ff2bd,_0x259a63,_0xac7307)));_0x253606[_0x37c641(0x378)](_0x826bd);});}return{'redos':[],'undos':[]};};this[_0x385cda(0x35f)]['forEach']((_0x9d618b,_0x453e4e)=>{const _0x5a5a95=_0x385cda,{range:_0x4f4654,sheetID:_0x5abe1d}=_0x9d618b,_0x551a86=this[_0x5a5a95(0x304)][_0x5a5a95(0x341)](_0x4f4654,_0x4b4f63=>(_0x551a86[_0x5a5a95(0x335)](),_0x43d6af(_0x4b4f63,_0x453e4e,_0x5abe1d,_0x4f4654)));_0x253606[_0x5a5a95(0x378)](_0x551a86);});};this[_0x1e69d9(0x1fd)](_0x3117b1(this[_0x1e69d9(0x21c)]['subscribe'](()=>{_0x391d5e();})));}[_0x21e9c1(0x27e)](){const _0x2727d5=_0x21e9c1;var _0x20e54e,_0x39ccd8;if(this[_0x2727d5(0x138)]=!0x0,((_0x20e54e=this[_0x2727d5(0x3ae)][_0x2727d5(0x254)]())==null?void 0x0:_0x20e54e['getUnitId']())!==this[_0x2727d5(0x33d)])return;const _0x28909b=(_0x39ccd8=this[_0x2727d5(0x27a)][_0x2727d5(0xdc)](_0x2bff71)[_0x2727d5(0x232)]())==null?void 0x0:_0x39ccd8[0x0],_0x5ce853=this[_0x2727d5(0x3ae)][_0x2727d5(0x1a2)](_0x3626c8[_0x2727d5(0xc3)])[_0x2727d5(0x3f5)]();_0x28909b&&_0x5ce853&&this['_updateLocalCursor'](_0x5ce853[_0x2727d5(0xd8)](),_0x28909b);}[_0x21e9c1(0x20b)](){const _0x3b5bed=_0x21e9c1;this[_0x3b5bed(0x138)]=!0x1;}};Dt=Lr([me(0x2,_0xc5d09(_0xe15c29)),me(0x3,_0xc5d09(Gt)),me(0x4,_0xc5d09(ae)),me(0x5,_0x77aace),me(0x6,_0x4fdaef),me(0x7,_0xc5d09(_0xde0931))],Dt);var Hr=Object['defineProperty'],kr=Object[_0x21e9c1(0x241)],Br=(_0x402ed7,_0x3cf2a7,_0x27b995,_0x1ab067)=>{const _0x37a642=_0x21e9c1;for(var _0x5f3515=_0x1ab067>0x1?void 0x0:_0x1ab067?kr(_0x3cf2a7,_0x27b995):_0x3cf2a7,_0x391523=_0x402ed7[_0x37a642(0x2a7)]-0x1,_0x5227fb;_0x391523>=0x0;_0x391523--)(_0x5227fb=_0x402ed7[_0x391523])&&(_0x5f3515=(_0x1ab067?_0x5227fb(_0x3cf2a7,_0x27b995,_0x5f3515):_0x5227fb(_0x5f3515))||_0x5f3515);return _0x1ab067&&_0x5f3515&&Hr(_0x3cf2a7,_0x27b995,_0x5f3515),_0x5f3515;},ut=(_0x4281c9,_0x51472e)=>(_0x3d832a,_0x5af5b1)=>_0x51472e(_0x3d832a,_0x5af5b1,_0x4281c9);let ve=class extends _0x522cd9{constructor(_0x4ba09b,_0x51abcf,_0x2920b6){const _0x4ccb30=_0x21e9c1;super(),l(this,'_entities',new Map()),l(this,_0x4ccb30(0x330),new _0x22bff9()),(this[_0x4ccb30(0x3ae)]=_0x4ba09b,this['_injector']=_0x51abcf,this[_0x4ccb30(0x417)]=_0x2920b6,this[_0x4ccb30(0x139)]());}['dispose'](){const _0x56b438=_0x21e9c1;super[_0x56b438(0x335)](),this[_0x56b438(0x330)]['complete'](),this[_0x56b438(0x255)][_0x56b438(0x20d)](_0x20d72e=>_0x20d72e[_0x56b438(0x335)]());}[_0x21e9c1(0x206)](_0x525c88){const _0x14f4b2=_0x21e9c1;return this[_0x14f4b2(0x255)][_0x14f4b2(0x188)](_0x525c88)?this[_0x14f4b2(0x255)][_0x14f4b2(0xdc)](_0x525c88)[_0x14f4b2(0x3ea)]:this['_entityInit$'][_0x14f4b2(0xcb)](_0x31d56e(_0x172479=>_0x172479[_0x14f4b2(0x33d)]===_0x525c88),_0x3f2856(_0xdaf576=>_0xdaf576[_0x14f4b2(0x3ea)]));}['_init'](){const _0x637a51=_0x21e9c1;this[_0x637a51(0x3ae)]['getTypeOfUnitAdded$'](_0x3626c8[_0x637a51(0xc3)])[_0x637a51(0xcb)](_0x3eb144(this[_0x637a51(0xe7)]))['subscribe'](async _0x4e0d73=>{const _0x4c5b8c=_0x637a51,_0x525b09=_0x4e0d73[_0x4c5b8c(0x362)](),_0x16e0ee=await this[_0x4c5b8c(0x203)](_0x525b09);this[_0x4c5b8c(0x330)][_0x4c5b8c(0x175)](_0x16e0ee),this[_0x4c5b8c(0x255)][_0x4c5b8c(0x2c4)](_0x525b09,_0x16e0ee);}),this[_0x637a51(0x3ae)][_0x637a51(0x27c)](_0x3626c8['UNIVER_DOC'])[_0x637a51(0xcb)](_0x3eb144(this[_0x637a51(0xe7)]))['pipe'](_0x31d56e(_0xd62cf2=>!_0xd62cf2[_0x637a51(0x362)]()[_0x637a51(0x307)]('__')))[_0x637a51(0xd9)](async _0x1b2ec4=>{const _0x47d874=_0x637a51,_0x732ac9=_0x1b2ec4[_0x47d874(0x362)](),_0x411752=await this['_startDocCollabCursor'](_0x732ac9);this[_0x47d874(0x330)][_0x47d874(0x175)](_0x411752),this[_0x47d874(0x255)]['set'](_0x732ac9,_0x411752);}),_0x7be1ed(this[_0x637a51(0x3ae)][_0x637a51(0x24e)](_0x3626c8['UNIVER_DOC']),this[_0x637a51(0x3ae)]['getTypeOfUnitDisposed$'](_0x3626c8[_0x637a51(0xc3)]))[_0x637a51(0xcb)](_0x3eb144(this[_0x637a51(0xe7)]))['subscribe'](_0x178ca5=>{const _0x49552e=_0x637a51,_0x554591=_0x178ca5[_0x49552e(0x362)](),_0x4526ed=this['_entities'][_0x49552e(0xdc)](_0x554591);_0x4526ed&&(_0x4526ed[_0x49552e(0x335)](),this[_0x49552e(0x255)][_0x49552e(0x156)](_0x554591));});}async[_0x21e9c1(0x203)](_0x4bdaa2){const _0x182b52=_0x21e9c1,_0x2acaed=await this['_collabSessionService'][_0x182b52(0x208)](_0x4bdaa2),_0x41f4e0=this[_0x182b52(0x27a)][_0x182b52(0x169)](Dt,_0x4bdaa2,_0x2acaed);return _0x41f4e0[_0x182b52(0xbb)](),_0x41f4e0;}async[_0x21e9c1(0x210)](_0x88898b){const _0x557976=_0x21e9c1,_0x5b3df2=await this[_0x557976(0x417)][_0x557976(0x208)](_0x88898b),_0xd39d87=this['_injector']['createInstance'](Ot,_0x88898b,_0x5b3df2);return _0xd39d87[_0x557976(0xbb)](),_0xd39d87;}};ve=Br([ut(0x0,_0x77aace),ut(0x1,_0xc5d09(_0xe15c29)),ut(0x2,_0xc5d09(ce))],ve);const $e=0x14,ms=0xc8,dt=0x4,Vr=0x5;function Fr(_0x1f6aa9,_0x5a3753){const _0x514781=_0x21e9c1;let {radius:_0x529378,width:_0x5dc20e,height:_0x1b202d}=_0x5a3753;_0x529378=_0x529378!=null?_0x529378:0x0,_0x5dc20e=_0x5dc20e!=null?_0x5dc20e:0x1e,_0x1b202d=_0x1b202d!=null?_0x1b202d:0x1e;let _0x41b83c=0x0,_0x502f65=0x0,_0x579745=0x0;_0x41b83c=_0x502f65=_0x579745=Math['min'](_0x529378,_0x5dc20e/0x2,_0x1b202d/0x2),_0x1f6aa9[_0x514781(0x1b8)](),_0x1f6aa9['moveTo'](_0x41b83c,0x0),_0x1f6aa9[_0x514781(0xd2)](_0x5dc20e-_0x502f65,0x0),_0x1f6aa9[_0x514781(0x132)](_0x5dc20e-_0x502f65,_0x502f65,_0x502f65,Math['PI']*0x3/0x2,0x0,!0x1),_0x1f6aa9[_0x514781(0xd2)](_0x5dc20e,_0x1b202d-_0x579745),_0x1f6aa9[_0x514781(0x132)](_0x5dc20e-_0x579745,_0x1b202d-_0x579745,_0x579745,0x0,Math['PI']/0x2,!0x1),_0x1f6aa9[_0x514781(0xd2)](0x0,_0x1b202d),_0x1f6aa9[_0x514781(0xd2)](0x0,_0x41b83c),_0x1f6aa9['arc'](_0x41b83c,_0x41b83c,_0x41b83c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1f6aa9[_0x514781(0x318)](),_0x5a3753[_0x514781(0x36e)]&&(_0x1f6aa9[_0x514781(0x3b6)](),_0x1f6aa9[_0x514781(0x3a0)]=_0x5a3753['fill'],_0x5a3753['fillRule']===_0x514781(0xb2)?_0x1f6aa9['fill'](_0x514781(0xb2)):_0x1f6aa9[_0x514781(0x36e)](),_0x1f6aa9[_0x514781(0x34c)]());}class st extends _0x43823d{constructor(_0x34a1bf,_0x435c47){const _0x1495fb=_0x21e9c1;super(_0x34a1bf,_0x435c47),l(this,_0x1495fb(0x3e5)),l(this,_0x1495fb(0x236)),(this['color']=_0x435c47==null?void 0x0:_0x435c47['color'],this[_0x1495fb(0x236)]=_0x435c47==null?void 0x0:_0x435c47[_0x1495fb(0x236)]);}static[_0x21e9c1(0x24a)](_0xf3a314,_0x4533a7){const _0x152197=_0x21e9c1,{text:_0xb21166,color:_0xb7f811}=_0x4533a7;_0xf3a314[_0x152197(0x3b6)](),_0xf3a314[_0x152197(0xf6)]=_0x152197(0x2d3);const _0x287385=_0xf3a314[_0x152197(0x38c)](_0xb21166)[_0x152197(0xbd)],_0x3696da=Math[_0x152197(0x238)](_0x287385+0x2*dt,ms);Fr(_0xf3a314,{'height':$e,'radius':0x4,'width':_0x3696da,'fill':_0xb7f811,'evented':!0x1}),_0xf3a314[_0x152197(0x3a0)]=_0x152197(0xd6);const _0x412bd4=dt,_0x22ed95=$e-Vr,_0x271514=ms-0x2*dt;if(_0x287385>_0x271514){let _0x29031b='',_0x1d3b8b=0x0;for(const _0x437bae of _0xb21166){const _0x34e567=_0xf3a314[_0x152197(0x38c)](_0x437bae)[_0x152197(0xbd)];if(_0x1d3b8b+_0x34e567<=_0x271514-_0xf3a314[_0x152197(0x38c)](_0x152197(0x2de))[_0x152197(0xbd)])_0x29031b+=_0x437bae,_0x1d3b8b+=_0x34e567;else{_0x29031b+=_0x152197(0x2de);break;}}_0xf3a314[_0x152197(0x355)](_0x29031b,_0x412bd4,_0x22ed95);}else _0xf3a314[_0x152197(0x355)](_0xb21166,_0x412bd4,_0x22ed95);_0xf3a314[_0x152197(0x34c)]();}['_draw'](_0xbde793){const _0x147087=_0x21e9c1;st[_0x147087(0x24a)](_0xbde793,this);}}const ft='collab-text-anchor-',Wr='collab-text-range-',Gr=_0x21e9c1(0x348),we=0x6,Yr=1.5,mt=0x4,Kr=1.5,Xr=_0x21e9c1(0x3bf);class gs{constructor(_0x285820,_0x1f27bb,_0x1e2b87,_0x5020f0){const _0x45d6cf=_0x21e9c1;l(this,_0x45d6cf(0x3e6),[]),l(this,'_anchor',null),l(this,'_textBubble',null),l(this,_0x45d6cf(0x1c7),null),l(this,_0x45d6cf(0x326),null),l(this,_0x45d6cf(0x1cf),null),(this[_0x45d6cf(0x110)]=_0x285820,this['_scene']=_0x1f27bb,this[_0x45d6cf(0x383)]=_0x1e2b87,this[_0x45d6cf(0x1bb)]=_0x5020f0,this[_0x45d6cf(0x40c)]());}set['_hover'](_0x5bb58b){const _0x5883b2=_0x21e9c1;_0x5bb58b?(this[_0x5883b2(0x1c7)]&&this[_0x5883b2(0x1c7)]['hide'](),this[_0x5883b2(0x39a)]&&this['_textBubble'][_0x5883b2(0x2b7)]()):(this[_0x5883b2(0x1c7)]&&this[_0x5883b2(0x1c7)][_0x5883b2(0x2b7)](),this['_textBubble']&&this['_textBubble'][_0x5883b2(0x3f3)]());}[_0x21e9c1(0x335)](){const _0x4359cf=_0x21e9c1;for(const _0x34691f of this[_0x4359cf(0x3e6)])_0x34691f[_0x4359cf(0x335)]();this[_0x4359cf(0x39a)]&&this[_0x4359cf(0x39a)][_0x4359cf(0x335)](),this[_0x4359cf(0x1c7)]&&this[_0x4359cf(0x1c7)][_0x4359cf(0x335)](),this[_0x4359cf(0x1a7)]&&this[_0x4359cf(0x1a7)]['dispose'](),this[_0x4359cf(0x1cf)]&&this[_0x4359cf(0x1cf)]();}[_0x21e9c1(0x40c)](){const _0x50bb36=_0x21e9c1;var _0x146618;const {_docSkeleton:_0x50f6cd,_document:_0x11243a}=this,{color:_0x4d2ec9,name:_0x28d478,ranges:_0x4cd90d}=this['_cursor'],_0x325ee7=_0x11243a[_0x50bb36(0x146)](),{docsLeft:_0x5a2d50,docsTop:_0x2cd610}=_0x325ee7,_0x3e3aeb=new _0x3c7431(_0x325ee7,_0x50f6cd);for(const {startOffset:_0x48910d,endOffset:_0x13a64d,collapsed:_0x312862,isActive:_0x131178}of _0x4cd90d){const _0x5e909d=_0x50f6cd[_0x50bb36(0x151)](_0x48910d),_0x259ef3=_0x50f6cd[_0x50bb36(0x151)](_0x13a64d);if(_0x131178){const {contentBoxPointGroup:_0x596977}=_0x3e3aeb['getRangePointData'](_0x259ef3,_0x259ef3);if(_0x596977['length']===0x0)continue;this[_0x50bb36(0x113)](_0x4d2ec9,_0x596977,_0x5a2d50,_0x2cd610,_0x28d478),this[_0x50bb36(0x1cf)]=this[_0x50bb36(0x105)]();}if(!_0x312862&&_0x5e909d&&_0x259ef3){if(_0x43c7a3(_0x5e909d,_0x259ef3)){const _0x568547=new _0x4f4671(_0x325ee7,_0x50f6cd),{pointGroup:_0x339ec1}=(_0x146618=_0x568547[_0x50bb36(0x3e7)](_0x5e909d,_0x259ef3))!=null?_0x146618:{};if(_0x339ec1==null||_0x339ec1[_0x50bb36(0x2a7)]===0x0)continue;this[_0x50bb36(0x381)](_0x4d2ec9,_0x339ec1,_0x5a2d50,_0x2cd610);}else{const {contentBoxPointGroup:_0x198a44}=_0x3e3aeb[_0x50bb36(0x3e7)](_0x5e909d,_0x259ef3);if(_0x198a44['length']===0x0)continue;this[_0x50bb36(0x2b2)](_0x4d2ec9,_0x198a44,_0x5a2d50,_0x2cd610);}}}}[_0x21e9c1(0x113)](_0x424dbc,_0x2fa6a8,_0x19a1e6,_0x16713d,_0x5189c8){const _0x23ca6c=_0x21e9c1,_0x23cb12=this[_0x23ca6c(0x13b)](_0x2fa6a8),{left:_0xbd23cb,top:_0xe12b8f,height:_0x32a2f6}=_0x23cb12,_0x146303=this['_getScale'](),_0x27e9a1=Kr/_0x146303,_0x337c6c=new _0xb14f1a(ft+_0x1bf815['generateRandomId'](we),{'left':_0xbd23cb+_0x19a1e6-_0x27e9a1,'top':_0xe12b8f+_0x16713d,'height':_0x32a2f6,'width':Yr,'fill':_0x424dbc||_0x31f167(_0x283be5[_0x23ca6c(0x3c1)],0x0),'strokeWidth':_0x27e9a1,'stroke':Xr,'evented':!0x0});this['_anchor']=_0x337c6c,this[_0x23ca6c(0x35d)][_0x23ca6c(0x100)](_0x337c6c,_0x50117b);const _0x4de36d=new _0xb14f1a(ft+_0x1bf815[_0x23ca6c(0x23f)](we),{'left':_0xbd23cb+_0x19a1e6-_0x27e9a1,'top':_0xe12b8f+_0x16713d-mt/0x2,'height':mt,'width':mt,'fill':_0x424dbc||_0x31f167(_0x283be5[_0x23ca6c(0x3c1)],0x0),'strokeWidth':0x0,'stroke':_0x424dbc||_0x31f167(_0x283be5[_0x23ca6c(0x3c1)],0x0),'evented':!0x1});this[_0x23ca6c(0x1c7)]=_0x4de36d,this[_0x23ca6c(0x35d)][_0x23ca6c(0x100)](_0x4de36d,_0x50117b);const _0x5a62af=new st(ft+_0x1bf815[_0x23ca6c(0x23f)](we),{'left':_0xbd23cb+_0x19a1e6-_0x27e9a1,'top':_0xe12b8f+_0x16713d-$e,'text':_0x5189c8,'color':_0x424dbc});this[_0x23ca6c(0x39a)]=_0x5a62af,this[_0x23ca6c(0x35d)]['addObject'](_0x5a62af,_0x50117b),this[_0x23ca6c(0x392)]=!0x1;}[_0x21e9c1(0x105)](){const _0x275478=_0x21e9c1,_0x208909=this['_anchor']['onPointerEnter$'][_0x275478(0x1bc)](()=>{const _0x5a5df2=_0x275478;this[_0x5a5df2(0x392)]=!0x0;}),_0x6fb04b=this[_0x275478(0x1a7)][_0x275478(0x301)][_0x275478(0x1bc)](()=>{const _0x4efa07=_0x275478;this[_0x4efa07(0x326)]&&clearTimeout(this[_0x4efa07(0x326)]),this[_0x4efa07(0x326)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0xb3b429=_0x275478;_0x208909[_0xb3b429(0x402)](),_0x6fb04b[_0xb3b429(0x402)]();};}[_0x21e9c1(0x2b2)](_0x5638aa,_0x45d06a,_0x32b3dd,_0x41c895){const _0x15eb90=_0x21e9c1,_0x30ce48=new _0x4f0241(_0x5638aa)[_0x15eb90(0x15f)](0.2)[_0x15eb90(0x124)](),_0x2c75d6=new _0x52dd6d(Wr+_0x1bf815[_0x15eb90(0x23f)](we),{'pointsGroup':_0x45d06a,'fill':_0x30ce48||_0x31f167(_0x283be5[_0x15eb90(0x3c1)],0.2),'left':_0x32b3dd,'top':_0x41c895,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x2c75d6),this[_0x15eb90(0x35d)][_0x15eb90(0x100)](_0x2c75d6,_0x50117b);}[_0x21e9c1(0x381)](_0x1dac1e,_0x5a59c4,_0x1b130d,_0x2f9614){const _0x1a8de0=_0x21e9c1,_0x497d57=new _0x4f0241(_0x1dac1e)[_0x1a8de0(0x15f)](0.2)['toRgbString'](),_0x1f6b93=new _0x52dd6d(Gr+_0x1bf815[_0x1a8de0(0x23f)](we),{'pointsGroup':_0x5a59c4,'fill':_0x497d57||_0x31f167(_0x283be5[_0x1a8de0(0x3c1)],0.2),'left':_0x1b130d,'top':_0x2f9614,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a8de0(0x3e6)][_0x1a8de0(0x354)](_0x1f6b93),this[_0x1a8de0(0x35d)][_0x1a8de0(0x100)](_0x1f6b93,_0x50117b);}[_0x21e9c1(0x13b)](_0x168095){const _0x43935a=_0x168095[0x0],_0x39f66a=_0x43935a[0x0],_0x5474a6=_0x43935a[0x2],{x:_0x1de92a,y:_0x5afcfb}=_0x39f66a,{x:_0x4cec6a,y:_0x3851f0}=_0x5474a6;return{'left':_0x1de92a,'top':_0x5afcfb,'width':_0x4cec6a-_0x1de92a,'height':_0x3851f0-_0x5afcfb};}[_0x21e9c1(0x2d4)](){const _0x3abd74=_0x21e9c1,{scaleX:_0x2627b2,scaleY:_0x33949c}=this[_0x3abd74(0x35d)][_0x3abd74(0x1d7)]();return Math[_0x3abd74(0x2cb)](_0x2627b2,_0x33949c);}}var qr=Object[_0x21e9c1(0x155)],Jr=Object[_0x21e9c1(0x241)],zr=(_0x21550c,_0x25b358,_0xb6fa76,_0x22d623)=>{const _0x3cc989=_0x21e9c1;for(var _0x4e34d5=_0x22d623>0x1?void 0x0:_0x22d623?Jr(_0x25b358,_0xb6fa76):_0x25b358,_0x21eee6=_0x21550c[_0x3cc989(0x2a7)]-0x1,_0x487afb;_0x21eee6>=0x0;_0x21eee6--)(_0x487afb=_0x21550c[_0x21eee6])&&(_0x4e34d5=(_0x22d623?_0x487afb(_0x25b358,_0xb6fa76,_0x4e34d5):_0x487afb(_0x4e34d5))||_0x4e34d5);return _0x22d623&&_0x4e34d5&&qr(_0x25b358,_0xb6fa76,_0x4e34d5),_0x4e34d5;},ke=(_0x58a2d4,_0x41a8ee)=>(_0x191f2e,_0x5601fc)=>_0x41a8ee(_0x191f2e,_0x5601fc,_0x58a2d4);let wt=class extends _0x522cd9{constructor(_0x3a7fa3,_0x26df0c,_0x1053f5,_0x19aee3,_0x38683a){const _0x1ae341=_0x21e9c1;super(),l(this,_0x1ae341(0x17d),[]),l(this,'_cursors',[]),(this['_context']=_0x3a7fa3,this[_0x1ae341(0x34f)]=_0x26df0c,this[_0x1ae341(0x1a1)]=_0x1053f5,this[_0x1ae341(0x149)]=_0x19aee3,this[_0x1ae341(0x288)]=_0x38683a,this['_init']());}[_0x21e9c1(0x139)](){const _0x206f3c=_0x21e9c1,_0x4115cf=this[_0x206f3c(0x26a)][_0x206f3c(0x223)],_0x45e1fb=this['_docSkeletonManagerService'];this[_0x206f3c(0x1fd)](_0x23e22f([this[_0x206f3c(0x1a1)]['getCollabCursors$'](_0x4115cf),this[_0x206f3c(0x288)]['currentTheme$']])[_0x206f3c(0xcb)](_0x4fff71(([_0x4d720d,_0x27e3c5])=>({'skeleton':_0x45e1fb[_0x206f3c(0x204)](),'cursors':[..._0x4d720d['values']()][_0x206f3c(0x416)](_0x44ae3f=>({..._0x44ae3f,'color':_0x27e3c5[_0x44ae3f[_0x206f3c(0x3e5)]]}))})))[_0x206f3c(0xd9)](_0x7bc3f3=>{const _0x508969=_0x206f3c;if(this['_removeCollabCursors'](),_0x7bc3f3){const {skeleton:_0x593ffa,cursors:_0x922631}=_0x7bc3f3;this[_0x508969(0x2cc)](_0x593ffa,_0x922631);}})),this[_0x206f3c(0x40e)](),this[_0x206f3c(0x153)]();}[_0x21e9c1(0x2cc)](_0x3211d5,_0x3d020a){const _0x4275d8=_0x21e9c1,{scene:_0x1479a0,mainComponent:_0x1a27f5}=this['_context'],_0x48acf1=_0x3d020a['map'](_0x59634f=>new gs(_0x59634f,_0x1479a0,_0x3211d5,_0x1a27f5));this[_0x4275d8(0x17d)]=_0x48acf1,this[_0x4275d8(0x104)]=_0x3d020a;}['_refreshCollabCursors'](){const _0x19890f=_0x21e9c1;this[_0x19890f(0x3d3)]();const {scene:_0x56009d,mainComponent:_0xb7bce8}=this['_context'],_0x2d2267=this[_0x19890f(0x34f)]['getSkeleton'](),_0x542e36=this['_cursors']['map'](_0x1b3a46=>new gs(_0x1b3a46,_0x56009d,_0x2d2267,_0xb7bce8));this[_0x19890f(0x17d)]=_0x542e36;}[_0x21e9c1(0x3d3)](){const _0xb48046=_0x21e9c1;this[_0xb48046(0x17d)][_0xb48046(0x20d)](_0x5cc159=>_0x5cc159['dispose']()),this[_0xb48046(0x17d)]=[];}['_initCommandExecutedListener'](){const _0x2f2b0d=_0x21e9c1,_0x5b0677=[_0x1deacf['id']];this[_0x2f2b0d(0x1fd)](this[_0x2f2b0d(0x149)][_0x2f2b0d(0x409)](_0xbab49a=>{const _0xdce127=_0x2f2b0d;_0x5b0677[_0xdce127(0x375)](_0xbab49a['id'])&&_0xbab49a[_0xdce127(0x3ee)][_0xdce127(0x223)]===this[_0xdce127(0x26a)][_0xdce127(0x223)]&&this[_0xdce127(0x2bc)]();}));}[_0x21e9c1(0x40e)](){const _0xcf47f2=_0x21e9c1;this[_0xcf47f2(0x1fd)](_0x51794b(this[_0xcf47f2(0x26a)][_0xcf47f2(0x41e)][_0xcf47f2(0x389)])[_0xcf47f2(0xcb)](_0x4acb53(_0x46abc4=>_0x46abc4[_0xcf47f2(0x25c)]===_0x2f6881['resize']),_0x45f9c8(0x10))[_0xcf47f2(0xd9)](()=>{const _0x4dbf09=_0xcf47f2;this[_0x4dbf09(0x2bc)]();}));}};wt=zr([ke(0x1,_0xc5d09(_0x365ae3)),ke(0x2,_0xc5d09(ve)),ke(0x3,_0x4fdaef),ke(0x4,_0xc5d09(_0x21be33))],wt);const Zr=0x1,Qr=1.5;class eo extends _0x43823d{constructor(_0x2f4c4b,_0x1ffcc3){const _0x30a5b3=_0x21e9c1;super(_0x2f4c4b,_0x1ffcc3),l(this,_0x30a5b3(0x14f)),l(this,_0x30a5b3(0x150),!0x1),l(this,'_range'),l(this,_0x30a5b3(0x37c),''),l(this,'_labelPosition','top'),l(this,_0x30a5b3(0x187)),(_0x1ffcc3&&this['setShapeProps'](_0x1ffcc3),this[_0x30a5b3(0x1b2)]['subscribeEvent'](()=>this[_0x30a5b3(0x258)]({'hovered':!0x0})),this['onPointerLeave$'][_0x30a5b3(0x1bc)](()=>this[_0x30a5b3(0x258)]({'hovered':!0x1})));}['setShapeProps'](_0x463354){const _0x2e865c=_0x21e9c1;var _0xf4e337,_0x5935d9,_0x8c6c15,_0x49c972,_0x4a39e9,_0x859f5;this['_color']=(_0xf4e337=_0x463354[_0x2e865c(0x3e5)])!=null?_0xf4e337:this[_0x2e865c(0x14f)],this[_0x2e865c(0x150)]=(_0x5935d9=_0x463354[_0x2e865c(0x1da)])!=null?_0x5935d9:this['_hovered'],this[_0x2e865c(0x3b9)]=(_0x8c6c15=_0x463354['range'])!=null?_0x8c6c15:this[_0x2e865c(0x3b9)],this['_name']=(_0x49c972=_0x463354[_0x2e865c(0x12b)])!=null?_0x49c972:this[_0x2e865c(0x37c)],this[_0x2e865c(0x408)]=(_0x4a39e9=_0x463354[_0x2e865c(0x3ec)])!=null?_0x4a39e9:this[_0x2e865c(0x408)],this['_backgroundColor']=(_0x859f5=_0x463354[_0x2e865c(0x3e9)])!=null?_0x859f5:this[_0x2e865c(0x187)],this[_0x2e865c(0x1bf)]({'width':_0x463354[_0x2e865c(0xbd)],'height':_0x463354[_0x2e865c(0x20e)]});}[_0x21e9c1(0x23b)](_0x21ce8b){const _0x269156=_0x21e9c1,{row:_0x26a0e4,column:_0x448124}=_0x21ce8b;if(_0x26a0e4>=this[_0x269156(0x3b9)][_0x269156(0x107)]&&_0x26a0e4<=this[_0x269156(0x3b9)][_0x269156(0xde)]&&_0x448124>=this[_0x269156(0x3b9)][_0x269156(0x393)]&&_0x448124<=this[_0x269156(0x3b9)][_0x269156(0x324)]){this[_0x269156(0x258)]({'hovered':!0x0});return;}this[_0x269156(0x258)]({'hovered':!0x1});}['triggerDblclick'](_0x4af416){return!0x1;}[_0x21e9c1(0x252)](_0x4f6d45){const _0x41cefd=_0x21e9c1;_0xb14f1a[_0x41cefd(0x24a)](_0x4f6d45,{'width':this[_0x41cefd(0xbd)],'height':this[_0x41cefd(0x20e)],'strokeWidth':Qr,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x41cefd(0x187)]}),this['_hovered']&&(_0x4f6d45['save'](),_0x4f6d45[_0x41cefd(0x243)](0x1,0x0,0x0,0x1,this[_0x41cefd(0xbd)],this[_0x41cefd(0x408)]==='bottom'?0x0:-$e),st['drawWith'](_0x4f6d45,{'text':this[_0x41cefd(0x37c)],'color':this[_0x41cefd(0x14f)]}),_0x4f6d45[_0x41cefd(0x34c)]());}}var to=Object[_0x21e9c1(0x155)],so=Object[_0x21e9c1(0x241)],io=(_0x1eb0cb,_0x420859,_0x96d6f7,_0x379337)=>{for(var _0x1a355c=_0x379337>0x1?void 0x0:_0x379337?so(_0x420859,_0x96d6f7):_0x420859,_0x33e4a4=_0x1eb0cb['length']-0x1,_0x51e88b;_0x33e4a4>=0x0;_0x33e4a4--)(_0x51e88b=_0x1eb0cb[_0x33e4a4])&&(_0x1a355c=(_0x379337?_0x51e88b(_0x420859,_0x96d6f7,_0x1a355c):_0x51e88b(_0x1a355c))||_0x1a355c);return _0x379337&&_0x1a355c&&to(_0x420859,_0x96d6f7,_0x1a355c),_0x1a355c;},gt=(_0x431764,_0x3c237f)=>(_0x30a5b8,_0x41d6b6)=>_0x3c237f(_0x30a5b8,_0x41d6b6,_0x431764);const no=0x1389;let Pt=class extends _0x522cd9{constructor(_0x827b67,_0x22a8f8,_0x2b68fa,_0x1e414e){const _0x4e2eab=_0x21e9c1;super(),l(this,_0x4e2eab(0x104),new Set()),l(this,_0x4e2eab(0x410),null),(this[_0x4e2eab(0x26a)]=_0x827b67,this[_0x4e2eab(0x3aa)]=_0x22a8f8,this[_0x4e2eab(0x1a1)]=_0x2b68fa,this[_0x4e2eab(0x288)]=_0x1e414e,this[_0x4e2eab(0x139)]());}[_0x21e9c1(0x139)](){const _0x1905f3=_0x21e9c1;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0x2fb1c6(this['dispose$']),_0x1b4e6e(_0x47bd49=>{const _0x1063c4=_0x24ad;if(_0x47bd49){const _0x42d9f4=_0x47bd49['sheetId'];return _0x23e22f(this[_0x1063c4(0x1a1)]['getCollabCursors$'](this[_0x1063c4(0x26a)][_0x1063c4(0x223)]),this['_themeService'][_0x1063c4(0x33b)])[_0x1063c4(0xcb)](_0x4fff71(([_0x2ad74c,_0x21cd1c])=>{const _0x21ac53=new Map();return _0x2ad74c['forEach']((_0xbd0efd,_0x4c7f38)=>{const _0x3a9645=_0x24ad;if(_0xbd0efd['sheetID']===_0x42d9f4){const _0x56fe0={..._0xbd0efd};_0x56fe0[_0x3a9645(0x3e5)]=_0x21cd1c[_0xbd0efd[_0x3a9645(0x3e5)]],_0x21ac53['set'](_0x4c7f38,_0x56fe0);}}),{'skeleton':_0x47bd49,'cursors':_0x21ac53};}));}return _0x3513a6({'skeleton':null,'cursors':new Map()});}))[_0x1905f3(0xd9)](({skeleton:_0x1e91bb,cursors:_0x5bce47})=>{const _0xac1b85=_0x1905f3;this[_0xac1b85(0x3d3)](),_0x1e91bb&&this[_0xac1b85(0x2cc)](_0x1e91bb,_0x5bce47);}),this[_0x1905f3(0x3aa)]['currentSkeleton$']['subscribe'](_0xa1241e=>{const _0x1954c1=_0x1905f3;if(_0xa1241e==null)return;const {skeleton:_0x428593}=_0xa1241e,{scene:_0x505536}=this[_0x1954c1(0x26a)];_0x505536[_0x1954c1(0x3f0)][_0x1954c1(0x1bc)](_0x1097d8(_0x15ea40=>{const _0x1615c3=_0x1954c1;var _0x281be1,_0x1b1157;const {offsetX:_0x92777a,offsetY:_0x29f87b}=_0x15ea40,{x:_0xba2028,y:_0x324c02}=_0x505536[_0x1615c3(0xf2)](_0x544ae7['FromArray']([_0x92777a,_0x29f87b])),{scaleX:_0x38a34e,scaleY:_0x2dab46}=_0x505536[_0x1615c3(0x1d7)](),_0xf0d4ac=_0x505536[_0x1615c3(0x290)](_0x1da636[_0x1615c3(0x14a)]),_0x4c7a06=_0x505536['getVpScrollXYInfoByPosToVp'](_0x544ae7[_0x1615c3(0x365)]([_0xba2028,_0x324c02]),_0xf0d4ac),_0x183240=_0x428593[_0x1615c3(0xaa)](_0x92777a,_0x29f87b,_0x38a34e,_0x2dab46,_0x4c7a06);((_0x281be1=this[_0x1615c3(0x410)])==null?void 0x0:_0x281be1['column'])===_0x183240[_0x1615c3(0x158)]&&((_0x1b1157=this[_0x1615c3(0x410)])==null?void 0x0:_0x1b1157[_0x1615c3(0x2e1)])===_0x183240[_0x1615c3(0x2e1)]||this[_0x1615c3(0x104)][_0x1615c3(0x20d)](_0x4e9a7f=>{const _0x4d25f9=_0x1615c3;_0x4e9a7f[_0x4d25f9(0x23b)](_0x183240);});},0x64));});}['_updateCollabCursors'](_0x4e6da9,_0x23c4e4){const _0x191f4f=_0x21e9c1;var _0x19045d;const _0x20eb8f=(_0x19045d=this[_0x191f4f(0x3aa)][_0x191f4f(0xec)]())==null?void 0x0:_0x19045d['skeleton'];if(!_0x20eb8f)return;const _0x5b558d=this[_0x191f4f(0x29f)]();if(!_0x5b558d)return;this['_cursors'][_0x191f4f(0x20d)](_0x1bfdce=>{const _0x54e41e=_0x191f4f;_0x1bfdce[_0x54e41e(0x281)]();});const {scene:_0x4003d7}=_0x5b558d,_0x3e24dd=ro(Array[_0x191f4f(0x325)](_0x23c4e4['values']()))['map'](_0x552c29=>{const _0x1a85c=_0x191f4f,{color:_0x132e33,range:_0x59df35,name:_0x4f6903,selection:_0x4337b7,sheetID:_0x49225a}=_0x552c29,{startColumn:_0xb75a93,startRow:_0x3e2fee,endColumn:_0x2ff449,endRow:_0x74e1b}=_0x59df35,_0x1cf09d=_0x567630(_0x3e2fee,_0xb75a93,_0x4003d7,_0x20eb8f),_0x375d16=_0x567630(_0x74e1b,_0x2ff449,_0x4003d7,_0x20eb8f),{columnHeaderHeightAndMarginTop:_0x161085}=_0x20eb8f,{startX:_0xa24260,startY:_0xedfe00}=_0x1cf09d,{endX:_0x353efc,endY:_0x1710b8}=_0x375d16,_0xcb7e4a=_0x353efc-_0xa24260,_0xada0b7=_0x1710b8-_0xedfe00,_0x272433={'labelPosition':_0xedfe00-_0x161085>=$e?_0x1a85c(0xbe):_0x1a85c(0x234),'sheetID':_0x49225a,'range':_0x59df35,'color':_0x132e33,'name':_0x4f6903,'selection':_0x4337b7,'left':_0xa24260,'top':_0xedfe00,'width':_0xcb7e4a,'height':_0xada0b7,'evented':!0x1,'zIndex':no};return new eo(_0x4f6903,_0x272433);});_0x4003d7[_0x191f4f(0x3fa)](_0x3e24dd,Zr),this[_0x191f4f(0x104)]=new Set(_0x3e24dd);}[_0x21e9c1(0x3d3)](){const _0x2584a9=_0x21e9c1;var _0x235e47;(_0x235e47=this[_0x2584a9(0x104)])==null||_0x235e47[_0x2584a9(0x20d)](_0x1a7310=>_0x1a7310[_0x2584a9(0x335)]());}[_0x21e9c1(0x29f)](){const _0x47f379=_0x21e9c1;return _0x3431ca(this['_context'][_0x47f379(0x1a4)],this[_0x47f379(0x26a)]);}};Pt=io([gt(0x1,_0xc5d09(_0x6a00ec)),gt(0x2,_0xc5d09(ve)),gt(0x3,_0xc5d09(_0x21be33))],Pt);function ro(_0x5ad599){const _0x4c0dac=_0x21e9c1,_0x274d32=new Map();return _0x5ad599[_0x4c0dac(0x20d)](_0x4344d0=>{const _0x13eb80=_0x4c0dac;if(_0x274d32[_0x13eb80(0x188)](_0x4344d0['selection'])){const _0x22915c=_0x274d32['get'](_0x4344d0[_0x13eb80(0x17f)]);_0x22915c['name']+=',\x20'+_0x4344d0[_0x13eb80(0x12b)];}else _0x274d32['set'](_0x4344d0[_0x13eb80(0x17f)],_0x4344d0);}),Array[_0x4c0dac(0x325)](_0x274d32[_0x4c0dac(0x390)]());}var N=function(){const _0x20c8cc=_0x21e9c1;return N=Object[_0x20c8cc(0xd1)]||function(_0x1f4e64){const _0x235ee2=_0x20c8cc;for(var _0x4e708f,_0x46c28a=0x1,_0x5469b9=arguments[_0x235ee2(0x2a7)];_0x46c28a<_0x5469b9;_0x46c28a++){_0x4e708f=arguments[_0x46c28a];for(var _0x1d225b in _0x4e708f)Object['prototype'][_0x235ee2(0x182)][_0x235ee2(0x23c)](_0x4e708f,_0x1d225b)&&(_0x1f4e64[_0x1d225b]=_0x4e708f[_0x1d225b]);}return _0x1f4e64;},N[_0x20c8cc(0x3de)](this,arguments);},oo=function(_0x56d1a0,_0x4a3e9e){const _0x3d4ed4=_0x21e9c1;var _0x484df3={};for(var _0x2b1416 in _0x56d1a0)Object[_0x3d4ed4(0x40b)]['hasOwnProperty']['call'](_0x56d1a0,_0x2b1416)&&_0x4a3e9e['indexOf'](_0x2b1416)<0x0&&(_0x484df3[_0x2b1416]=_0x56d1a0[_0x2b1416]);if(_0x56d1a0!=null&&typeof Object[_0x3d4ed4(0x1b5)]=='function'){for(var _0x28da9e=0x0,_0x2b1416=Object[_0x3d4ed4(0x1b5)](_0x56d1a0);_0x28da9e<_0x2b1416['length'];_0x28da9e++)_0x4a3e9e[_0x3d4ed4(0x3eb)](_0x2b1416[_0x28da9e])<0x0&&Object['prototype'][_0x3d4ed4(0x32a)][_0x3d4ed4(0x23c)](_0x56d1a0,_0x2b1416[_0x28da9e])&&(_0x484df3[_0x2b1416[_0x28da9e]]=_0x56d1a0[_0x2b1416[_0x28da9e]]);}return _0x484df3;},Yt=_0x29d861(function(_0x57fea2,_0x3007a6){const _0x255871=_0x21e9c1;var _0x5cdfae=_0x57fea2[_0x255871(0x387)],_0xf6120c=_0x57fea2['id'],_0x275532=_0x57fea2['className'],_0x10bfab=_0x57fea2[_0x255871(0x1c1)],_0x5986ca=oo(_0x57fea2,[_0x255871(0x387),'id','className',_0x255871(0x1c1)]),_0x533202=_0x255871(0x33e)['concat'](_0xf6120c,'\x20')[_0x255871(0xc8)](_0x275532||'')['trim'](),_0x426ede=_0x4e4b77('_'['concat'](ho()));return Ws(_0x5cdfae,''[_0x255871(0xc8)](_0xf6120c),{'defIds':_0x5cdfae[_0x255871(0x1c0)],'idSuffix':_0x426ede[_0x255871(0x20c)]},N({'ref':_0x3007a6,'className':_0x533202},_0x5986ca),_0x10bfab);});function Ws(_0x1b8ccf,_0x4255ef,_0x354daa,_0x3625e0,_0x31fc33){const _0x459b10=_0x21e9c1;return _0x3a8e6c(_0x1b8ccf[_0x459b10(0x310)],N(N({'key':_0x4255ef},ao(_0x1b8ccf,_0x354daa,_0x31fc33)),_0x3625e0),(co(_0x1b8ccf,_0x354daa)[_0x459b10(0x3ca)]||[])[_0x459b10(0x35e)](function(_0x334cb2,_0x21426e){const _0x79d30e=_0x459b10;return Ws(_0x334cb2,''['concat'](_0x4255ef,'-')['concat'](_0x1b8ccf[_0x79d30e(0x310)],'-')[_0x79d30e(0xc8)](_0x21426e),_0x354daa,void 0x0,_0x31fc33);}));}function ao(_0x3e494d,_0x464adb,_0x38c236){const _0x1ed2b4=_0x21e9c1;var _0x35d711=N({},_0x3e494d['attrs']);_0x38c236!=null&&_0x38c236['colorChannel1']&&_0x35d711[_0x1ed2b4(0x36e)]==='colorChannel1'&&(_0x35d711[_0x1ed2b4(0x36e)]=_0x38c236[_0x1ed2b4(0x154)]);var _0x4a114f=_0x464adb[_0x1ed2b4(0x1c0)];return!_0x4a114f||_0x4a114f['length']===0x0||(_0x3e494d[_0x1ed2b4(0x310)]==='use'&&_0x35d711[_0x1ed2b4(0xa9)]&&(_0x35d711[_0x1ed2b4(0xa9)]=_0x35d711['xlink:href']+_0x464adb[_0x1ed2b4(0x36a)]),Object[_0x1ed2b4(0x28a)](_0x35d711)['forEach'](function(_0x2c7f86){const _0x2b35b7=_0x1ed2b4;var _0xb24417=_0x2c7f86[0x0],_0x188b1c=_0x2c7f86[0x1];typeof _0x188b1c==_0x2b35b7(0x308)&&(_0x35d711[_0xb24417]=_0x188b1c[_0x2b35b7(0x190)](/url\(#(.*)\)/,_0x2b35b7(0x30a)[_0x2b35b7(0xc8)](_0x464adb['idSuffix'],')')));})),_0x35d711;}function co(_0x46b308,_0x13097a){const _0x35e092=_0x21e9c1;var _0x538abb,_0x4a0c70=_0x13097a[_0x35e092(0x1c0)];return!_0x4a0c70||_0x4a0c70['length']===0x0?_0x46b308:_0x46b308[_0x35e092(0x310)]===_0x35e092(0x230)&&(!((_0x538abb=_0x46b308[_0x35e092(0x3ca)])===null||_0x538abb===void 0x0)&&_0x538abb[_0x35e092(0x2a7)])?N(N({},_0x46b308),{'children':_0x46b308['children']['map'](function(_0x4617dc){const _0x1adfd3=_0x35e092;return typeof _0x4617dc['attrs']['id']==_0x1adfd3(0x308)&&_0x4a0c70&&_0x4a0c70[_0x1adfd3(0x3eb)](_0x4617dc['attrs']['id'])>-0x1?N(N({},_0x4617dc),{'attrs':N(N({},_0x4617dc[_0x1adfd3(0x3b1)]),{'id':_0x4617dc[_0x1adfd3(0x3b1)]['id']+_0x13097a[_0x1adfd3(0x36a)]})}):_0x4617dc;})}):_0x46b308;}function ho(){const _0x528e2a=_0x21e9c1;return Math[_0x528e2a(0x30e)]()[_0x528e2a(0x278)](0x24)[_0x528e2a(0x2dc)](0x2,0x8);}Yt[_0x21e9c1(0x33a)]='UniverIcon';var lo={'tag':_0x21e9c1(0x1d9),'attrs':{'fill':_0x21e9c1(0x391),'viewBox':'0\x200\x2016\x2016','width':_0x21e9c1(0x22c),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x21e9c1(0x312)},'children':[{'tag':_0x21e9c1(0x26c),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':'round','strokeLinejoin':_0x21e9c1(0x363),'strokeWidth':1.2}}]},{'tag':_0x21e9c1(0x230),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x21e9c1(0x26c),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Gs=_0x29d861(function(_0x5c05c4,_0x3c55a6){const _0x5b8859=_0x21e9c1;return _0x3a8e6c(Yt,Object[_0x5b8859(0xd1)]({},_0x5c05c4,{'id':_0x5b8859(0x171),'ref':_0x3c55a6,'icon':lo}));});Gs[_0x21e9c1(0x33a)]=_0x21e9c1(0x217);var _o={'tag':_0x21e9c1(0x1d9),'attrs':{'fill':_0x21e9c1(0x391),'viewBox':_0x21e9c1(0x273),'width':_0x21e9c1(0x22c),'height':_0x21e9c1(0x22c)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x21e9c1(0x414),'d':_0x21e9c1(0x25f),'strokeLinecap':_0x21e9c1(0x363),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x21e9c1(0x40d),'attrs':{'id':_0x21e9c1(0x401)},'children':[{'tag':'path','attrs':{'fill':_0x21e9c1(0x19b),'d':_0x21e9c1(0x10b),'transform':_0x21e9c1(0x2f4)}}]}]}],'defIds':[_0x21e9c1(0x401)]},Ys=_0x29d861(function(_0x5b5d98,_0x3acc54){const _0x2c66a4=_0x21e9c1;return _0x3a8e6c(Yt,Object[_0x2c66a4(0xd1)]({},_0x5b5d98,{'id':'on-line-single','ref':_0x3acc54,'icon':_o}));});Ys['displayName']=_0x21e9c1(0x269);function Ks(_0x5efb65){const _0x425f77=_0x21e9c1;var _0x47c3a9,_0x16bd52,_0x34c4b7='';if(typeof _0x5efb65==_0x425f77(0x308)||typeof _0x5efb65==_0x425f77(0x15c))_0x34c4b7+=_0x5efb65;else{if(typeof _0x5efb65==_0x425f77(0x431)){if(Array[_0x425f77(0x201)](_0x5efb65)){var _0x59ae71=_0x5efb65[_0x425f77(0x2a7)];for(_0x47c3a9=0x0;_0x47c3a9<_0x59ae71;_0x47c3a9++)_0x5efb65[_0x47c3a9]&&(_0x16bd52=Ks(_0x5efb65[_0x47c3a9]))&&(_0x34c4b7&&(_0x34c4b7+='\x20'),_0x34c4b7+=_0x16bd52);}else{for(_0x16bd52 in _0x5efb65)_0x5efb65[_0x16bd52]&&(_0x34c4b7&&(_0x34c4b7+='\x20'),_0x34c4b7+=_0x16bd52);}}}return _0x34c4b7;}function uo(){const _0x114249=_0x21e9c1;for(var _0x419618,_0x5587b7,_0x3e490d=0x0,_0x395440='',_0xbf1a18=arguments[_0x114249(0x2a7)];_0x3e490d<_0xbf1a18;_0x3e490d++)(_0x419618=arguments[_0x3e490d])&&(_0x5587b7=Ks(_0x419618))&&(_0x395440&&(_0x395440+='\x20'),_0x395440+=_0x5587b7);return _0x395440;}const fo='univer-online-status-icon',mo='univer-online-status-title',go=_0x21e9c1(0xb1),So=_0x21e9c1(0x1cb),po=_0x21e9c1(0x1ea),Pe={'onlineStatusIcon':fo,'onlineStatusTitle':mo,'onlineStatus':go,'online':So,'offline':po};function vo(_0x37059f){const _0x43b51b=_0x21e9c1;switch(_0x37059f){case P[_0x43b51b(0x265)]:return _0x43b51b(0x212);case P[_0x43b51b(0x3a5)]:return _0x43b51b(0x24f);case P[_0x43b51b(0x3ce)]:return _0x43b51b(0x27f);case P['NOT_COLLAB']:return _0x43b51b(0x2c3);case P[_0x43b51b(0x12a)]:case P[_0x43b51b(0x242)]:case P['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case P[_0x43b51b(0xad)]:return _0x43b51b(0x1b9);}}function Io(_0x3712de){const _0xd07443=_0x21e9c1,{status$:_0x25f46c}=_0x3712de,_0x33c790=_0x4ed86e(_0x25f46c,P[_0xd07443(0xe3)]),_0x33d118=_0x361941(_0x2e0e1c),_0x2f6980=_0x361941(ce),_0x22f5bd=_0x33c790!==P[_0xd07443(0x265)],_0x2e58d1=_0x33d118['t'](vo(_0x33c790)),_0x12f016=uo(Pe[_0xd07443(0x251)],{[Pe[_0xd07443(0x3af)]]:_0x22f5bd,[Pe[_0xd07443(0x386)]]:!_0x22f5bd}),_0x11f00c=_0x22f5bd?_0xf30867[_0xd07443(0x32e)](Ys,null):_0xf30867[_0xd07443(0x32e)](Gs,null),_0xe7b224=_0x31a010(()=>{_0x22f5bd||_0x2f6980['reconnect']();},[_0x22f5bd,_0x2f6980]);function _0x991fd7(){const _0x38b895=_0xd07443;return _0xf30867['createElement'](_0x38b895(0xdf),{'className':_0x12f016,'onClick':_0xe7b224},_0xf30867[_0x38b895(0x32e)]('div',{'className':Pe[_0x38b895(0x329)]},_0x11f00c),_0xf30867[_0x38b895(0x32e)](_0x38b895(0xdf),{'className':Pe['onlineStatusTitle']},_0x2e58d1));}return _0x22f5bd?_0x991fd7():_0xf30867[_0xd07443(0x32e)](_0x541e06,{'title':_0x33d118['t'](_0xd07443(0x263))},_0x991fd7());}var Eo=Object[_0x21e9c1(0x155)],Co=Object[_0x21e9c1(0x241)],bo=(_0x23de87,_0x50eda8,_0x5a453d,_0x4b3234)=>{const _0x5770c6=_0x21e9c1;for(var _0x1a21c1=_0x4b3234>0x1?void 0x0:_0x4b3234?Co(_0x50eda8,_0x5a453d):_0x50eda8,_0x35f1b9=_0x23de87[_0x5770c6(0x2a7)]-0x1,_0x2cbdff;_0x35f1b9>=0x0;_0x35f1b9--)(_0x2cbdff=_0x23de87[_0x35f1b9])&&(_0x1a21c1=(_0x4b3234?_0x2cbdff(_0x50eda8,_0x5a453d,_0x1a21c1):_0x2cbdff(_0x1a21c1))||_0x1a21c1);return _0x4b3234&&_0x1a21c1&&Eo(_0x50eda8,_0x5a453d,_0x1a21c1),_0x1a21c1;},Be=(_0x3e1256,_0x1b0487)=>(_0x496473,_0x295907)=>_0x1b0487(_0x496473,_0x295907,_0x3e1256);let Me=class extends _0x4aed79{constructor(_0x342af6,_0x4c88f8,_0x24c60b,_0x4fa66c){const _0x4fdbf7=_0x21e9c1;super(),l(this,_0x4fdbf7(0x152),new _0x43e69b(P[_0x4fdbf7(0xe3)])),(this['_univerInstanceService']=_0x342af6,this[_0x4fdbf7(0x225)]=_0x4c88f8,this[_0x4fdbf7(0x27a)]=_0x24c60b,this['_collaborationController']=_0x4fa66c,this[_0x4fdbf7(0x103)](),this[_0x4fdbf7(0x376)]());}[_0x21e9c1(0x376)](){const _0x5a126a=_0x21e9c1;this['disposeWithMe'](this[_0x5a126a(0x3ae)][_0x5a126a(0x1ed)][_0x5a126a(0xcb)](_0x3f2856(()=>{const _0x7fe730=_0x5a126a,_0x438b22=this[_0x7fe730(0x3ae)][_0x7fe730(0x254)]();return _0x438b22?this[_0x7fe730(0x14c)][_0x7fe730(0x3c0)](_0x438b22[_0x7fe730(0x362)]()):_0x3513a6(null);}),_0x3f2856(_0x76c694=>_0x76c694?_0x76c694[_0x5a126a(0x1fa)]:_0x3513a6(P[_0x5a126a(0xe3)])))[_0x5a126a(0xd9)](_0x47ab18=>{const _0xdb7d76=_0x5a126a;this[_0xdb7d76(0x152)][_0xdb7d76(0x175)](_0x47ab18);}));}[_0x21e9c1(0x103)](){const _0x1527ee=_0x21e9c1;this[_0x1527ee(0x1fd)](this[_0x1527ee(0x225)][_0x1527ee(0xf9)](_0x5a5d2e[_0x1527ee(0x181)],()=>_0x3baa1e(To({'status$':this[_0x1527ee(0x152)][_0x1527ee(0xb6)]()}),this[_0x1527ee(0x27a)])));}};Me=bo([Be(0x0,_0x77aace),Be(0x1,_0x20efd8),Be(0x2,_0xc5d09(_0xe15c29)),Be(0x3,_0xc5d09(Le))],Me);function To(_0x28b1d6){const {status$:_0x2baa1b}=_0x28b1d6;return function(){const _0x486daa=_0x24ad;return _0xf30867[_0x486daa(0x32e)](Io,{'status$':_0x2baa1b});};}const Xs=_0x68fae6(_0x21e9c1(0x11f));var Ro=Object['defineProperty'],Oo=Object[_0x21e9c1(0x241)],Do=(_0x19559a,_0x1fad4b,_0x9f7ff,_0x1a7cea)=>{const _0x1cddbd=_0x21e9c1;for(var _0x3e839e=_0x1a7cea>0x1?void 0x0:_0x1a7cea?Oo(_0x1fad4b,_0x9f7ff):_0x1fad4b,_0x4f45dd=_0x19559a[_0x1cddbd(0x2a7)]-0x1,_0x5b9e6f;_0x4f45dd>=0x0;_0x4f45dd--)(_0x5b9e6f=_0x19559a[_0x4f45dd])&&(_0x3e839e=(_0x1a7cea?_0x5b9e6f(_0x1fad4b,_0x9f7ff,_0x3e839e):_0x5b9e6f(_0x3e839e))||_0x3e839e);return _0x1a7cea&&_0x3e839e&&Ro(_0x1fad4b,_0x9f7ff,_0x3e839e),_0x3e839e;},ge=(_0x320290,_0x2e76e6)=>(_0xf39541,_0x38be8f)=>_0x2e76e6(_0xf39541,_0x38be8f,_0x320290);let Je=class extends _0x522cd9{constructor(_0x520b4c,_0x3a766d,_0x4b59fc,_0x81eb95,_0x20dc1f,_0x3ba272){const _0x410c6f=_0x21e9c1;super(),this[_0x410c6f(0x2da)]=_0x520b4c,this[_0x410c6f(0x42c)]=_0x3a766d,this[_0x410c6f(0x149)]=_0x4b59fc,this[_0x410c6f(0x366)]=_0x81eb95,this[_0x410c6f(0x246)]=_0x20dc1f,_0x3ba272?_0x3ba272==null||_0x3ba272[_0x410c6f(0x1b4)]()['then'](()=>this[_0x410c6f(0x139)]()):(this['_logService'][_0x410c6f(0x219)](_0x410c6f(0x2ca),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x410c6f(0x139)]());}async[_0x21e9c1(0x139)](){const _0x395656=_0x21e9c1,_0x34b21c=this[_0x395656(0x2da)][_0x395656(0xe5)](_0x395656(0x1a4)),_0x118788=this[_0x395656(0x2da)][_0x395656(0xe5)]('type');if(!_0x34b21c||!_0x118788){this[_0x395656(0x42c)][_0x395656(0x219)](_0x395656(0x2ca),_0x395656(0x3cd));return;}switch(Number(_0x118788)){case k['UNIVER_SHEET']:{const _0x412f94=await this[_0x395656(0xce)](_0x34b21c);this[_0x395656(0x2d8)](_0x412f94);break;}case k['UNIVER_DOC']:{await this['_loadDoc'](_0x34b21c);break;}default:{this['_logService']['error'](_0x395656(0x2ca),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x21e9c1(0x2d8)](_0x1a2cc4){const _0x3a763e=_0x21e9c1;await this['_updateSubUnitFromURLParams'](_0x1a2cc4),_0x1a2cc4[_0x3a763e(0x35b)][_0x3a763e(0xcb)](_0x3eb144(this[_0x3a763e(0xe7)]))[_0x3a763e(0xd9)](_0x38f639=>{const _0x2d6d45=_0x3a763e;_0x38f639&&this[_0x2d6d45(0x209)](_0x38f639);}),this[_0x3a763e(0x2da)][_0x3a763e(0x403)][_0x3a763e(0xcb)](_0x3eb144(this['dispose$']))[_0x3a763e(0xd9)](()=>this[_0x3a763e(0xfc)](_0x1a2cc4));}[_0x21e9c1(0x209)](_0x1e3ce7,_0x1d1909=!0x1){const _0x4b0414=_0x21e9c1,_0x463909=this[_0x4b0414(0x2da)]['getParam'](_0x4b0414(0x3c7));_0x1e3ce7[_0x4b0414(0xd8)]()!==_0x463909&&this['_urlService'][_0x4b0414(0x161)](_0x4b0414(0x3c7),_0x1e3ce7[_0x4b0414(0xd8)](),_0x1d1909);}async[_0x21e9c1(0xfc)](_0x2bfe17){const _0x5d0dff=_0x21e9c1;var _0x1fb40f;const _0x24d43d=this[_0x5d0dff(0x2da)][_0x5d0dff(0xe5)](_0x5d0dff(0x3c7));if(!_0x24d43d||!_0x2bfe17['getSheetBySheetId'](_0x24d43d)){const _0x163a34=_0x2bfe17[_0x5d0dff(0x372)]()[0x0],_0x48fb50=_0x2bfe17[_0x5d0dff(0x115)](_0x163a34);if(!_0x48fb50)return;this['_updateURLWithCurrentState'](_0x48fb50,!0x0),await this[_0x5d0dff(0x149)][_0x5d0dff(0x3f7)](_0x3b198a['id'],{'unitId':_0x2bfe17['getUnitId'](),'subUnitId':_0x163a34});return;}((_0x1fb40f=_0x2bfe17[_0x5d0dff(0x3f5)]())==null?void 0x0:_0x1fb40f[_0x5d0dff(0xd8)]())!==_0x24d43d&&await this[_0x5d0dff(0x149)][_0x5d0dff(0x3f7)](_0x3b198a['id'],{'unitId':_0x2bfe17['getUnitId'](),'subUnitId':_0x24d43d});}async[_0x21e9c1(0xce)](_0x194538){const _0x3235ed=_0x21e9c1;let _0x4a95c5=0x0;const _0x2ca1c0=await this[_0x3235ed(0x366)][_0x3235ed(0x239)](_0x194538);return _0x2ca1c0&&(_0x2ca1c0[_0x3235ed(0x30f)]||_0x2ca1c0[_0x3235ed(0x22f)]['length']!==0x0)&&(_0x4a95c5=_0x2ca1c0['rev']),_0x4a95c5===0x0&&this[_0x3235ed(0x42c)][_0x3235ed(0x219)](_0x3235ed(0x2ca),_0x3235ed(0xf1)),this[_0x3235ed(0x246)][_0x3235ed(0x2b5)](_0x194538,_0x4a95c5);}async[_0x21e9c1(0x2ed)](_0x4e6bfb){const _0x23d5af=_0x21e9c1;let _0x265bc3=0x0;const _0x25aaf4=await this['_localCacheService'][_0x23d5af(0x239)](_0x4e6bfb);return _0x25aaf4&&(_0x25aaf4[_0x23d5af(0x30f)]||_0x25aaf4[_0x23d5af(0x22f)]['length']!==0x0)&&(_0x265bc3=_0x25aaf4[_0x23d5af(0x3d4)]),_0x265bc3===0x0&&this[_0x23d5af(0x42c)][_0x23d5af(0x219)](_0x23d5af(0x2ca),_0x23d5af(0xf1)),this['_snapshotService']['loadDoc'](_0x4e6bfb,_0x265bc3);}};Je=Do([ge(0x0,Xs),ge(0x1,_0x3b7308),ge(0x2,_0x4fdaef),ge(0x3,_0xc5d09(w)),ge(0x4,_0xc5d09(_0x46d986)),ge(0x5,_0x126256(_0x2fde59))],Je);var wo=Object['defineProperty'],Po=Object[_0x21e9c1(0x241)],yo=(_0x2150c9,_0x3b4c85,_0x384c21,_0x454740)=>{const _0x9728e4=_0x21e9c1;for(var _0x261c3a=_0x454740>0x1?void 0x0:_0x454740?Po(_0x3b4c85,_0x384c21):_0x3b4c85,_0x2f695a=_0x2150c9[_0x9728e4(0x2a7)]-0x1,_0x335c21;_0x2f695a>=0x0;_0x2f695a--)(_0x335c21=_0x2150c9[_0x2f695a])&&(_0x261c3a=(_0x454740?_0x335c21(_0x3b4c85,_0x384c21,_0x261c3a):_0x335c21(_0x261c3a))||_0x261c3a);return _0x454740&&_0x261c3a&&wo(_0x3b4c85,_0x384c21,_0x261c3a),_0x261c3a;},Ss=(_0x46974d,_0x1a67be)=>(_0x1d8743,_0x18e961)=>_0x1a67be(_0x1d8743,_0x18e961,_0x46974d);const Uo=_0x21e9c1(0xe0),No=_0x21e9c1(0x3ac);let ze=class extends _0x4aed79{constructor(_0x56b1f6,_0x5dab32){const _0x14687f=_0x21e9c1;super(),this[_0x14687f(0x3ae)]=_0x56b1f6,this[_0x14687f(0x168)]=_0x5dab32,this[_0x14687f(0x139)]();}['_init'](){const _0x3ab0f2=_0x21e9c1;this[_0x3ab0f2(0x1fd)](this[_0x3ab0f2(0x3ae)][_0x3ab0f2(0x1ed)]['subscribe'](()=>{const _0x4dbb2d=_0x3ab0f2;var _0x39885e;const _0x18b3f7=this[_0x4dbb2d(0x3ae)]['getFocusedUnit']();let _0x27ffd0=(_0x39885e=this[_0x4dbb2d(0x168)][_0x4dbb2d(0x19d)](Uo))!=null?_0x39885e:No;_0x18b3f7 instanceof _0x301fcc&&(_0x27ffd0=_0x18b3f7['name']),document[_0x4dbb2d(0x423)]=_0x27ffd0;}));}};ze=yo([Ss(0x0,_0x77aace),Ss(0x1,_0x232b04)],ze);var Mo=Object[_0x21e9c1(0x155)],Ao=Object['getOwnPropertyDescriptor'],Lo=(_0xb3c9b4,_0x29e6da,_0x38bf15,_0x278f24)=>{const _0x29bcde=_0x21e9c1;for(var _0x47af79=_0x278f24>0x1?void 0x0:_0x278f24?Ao(_0x29e6da,_0x38bf15):_0x29e6da,_0x5cdb8b=_0xb3c9b4[_0x29bcde(0x2a7)]-0x1,_0x219783;_0x5cdb8b>=0x0;_0x5cdb8b--)(_0x219783=_0xb3c9b4[_0x5cdb8b])&&(_0x47af79=(_0x278f24?_0x219783(_0x29e6da,_0x38bf15,_0x47af79):_0x219783(_0x47af79))||_0x47af79);return _0x278f24&&_0x47af79&&Mo(_0x29e6da,_0x38bf15,_0x47af79),_0x47af79;},St=(_0x30af88,_0x5d547f)=>(_0x5e7fd1,_0x348d56)=>_0x5d547f(_0x5e7fd1,_0x348d56,_0x30af88);let Ze=class{constructor(_0x353a02,_0x4f0839,_0x402bbc){const _0x3dfd39=_0x21e9c1;this[_0x3dfd39(0x168)]=_0x353a02,this[_0x3dfd39(0xdd)]=_0x4f0839,this[_0x3dfd39(0x377)]=_0x402bbc,this[_0x3dfd39(0xbb)]();}[_0x21e9c1(0xbb)](){const _0xeaf80d=_0x21e9c1;this[_0xeaf80d(0xdd)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1a1028,_0x7a2ffe)=>_0x7a2ffe(_0x1a1028)[_0xeaf80d(0xcb)](_0x323320(async _0xc26cc5=>{const _0x3fa5a3=_0xeaf80d,_0x31cc3e=_0xc26cc5;if(_0x31cc3e[_0x3fa5a3(0x2dd)]===0x191&&window[_0x3fa5a3(0x2b1)](this['localeService']['t'](_0x3fa5a3(0xf5)))){const _0x5b5c6c=window[_0x3fa5a3(0x166)](window[_0x3fa5a3(0x298)][_0x3fa5a3(0x10a)]);window['location'][_0x3fa5a3(0x10a)]=this['_getLoginPath']()+'?url='+_0x5b5c6c;}return _0x31cc3e;}))});}[_0x21e9c1(0xac)](){const _0x2964ce=_0x21e9c1;var _0x35cec1,_0x157987;const _0x4425cb=this['_configService'][_0x2964ce(0x19d)](Un),_0x568581=this[_0x2964ce(0x168)][_0x2964ce(0x19d)]($);return(_0x157987=(_0x35cec1=_0x568581==null?void 0x0:_0x568581['loginUrlKey'])!=null?_0x35cec1:_0x4425cb)!=null?_0x157987:Nn;}};Ze=Lo([St(0x0,_0x232b04),St(0x1,_0xc5d09(_0x1f969a)),St(0x2,_0xc5d09(_0x2e0e1c))],Ze);var $o=Object['defineProperty'],jo=Object['getOwnPropertyDescriptor'],xo=(_0x2bd078,_0x431b59,_0x554163,_0x2571c2)=>{for(var _0x22e786=_0x2571c2>0x1?void 0x0:_0x2571c2?jo(_0x431b59,_0x554163):_0x431b59,_0x11431e=_0x2bd078['length']-0x1,_0x252181;_0x11431e>=0x0;_0x11431e--)(_0x252181=_0x2bd078[_0x11431e])&&(_0x22e786=(_0x2571c2?_0x252181(_0x431b59,_0x554163,_0x22e786):_0x252181(_0x22e786))||_0x22e786);return _0x2571c2&&_0x22e786&&$o(_0x431b59,_0x554163,_0x22e786),_0x22e786;},ps=(_0x15827c,_0x5c9e88)=>(_0x9deecf,_0x1e82b8)=>_0x5c9e88(_0x9deecf,_0x1e82b8,_0x15827c);const Ho=_0x21e9c1(0x116),ko='/universer-api/authz';let yt=class extends _0x4aed79{constructor(_0x45bcdf,_0x3a77cb){const _0x2ed26c=_0x21e9c1;super(),this[_0x2ed26c(0x3c8)]=_0x45bcdf,this[_0x2ed26c(0x168)]=_0x3a77cb,this[_0x2ed26c(0x1a0)]();}[_0x21e9c1(0x1a0)](){const _0x5c093f=_0x21e9c1,_0x563bbe=this;this[_0x5c093f(0x1fd)](this[_0x5c093f(0x3c8)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x278d53({'isMatch'(_0x460ce0){const _0x5a71e7=_0x5c093f;var _0x2f6982;if(_0x460ce0['method']===_0x5a71e7(0x126)&&((_0x2f6982=_0x460ce0[_0x5a71e7(0x385)])!=null&&_0x2f6982[_0x5a71e7(0x37f)])){const {objectID:_0x412176,objectType:_0x3ea13e}=_0x460ce0[_0x5a71e7(0x385)][_0x5a71e7(0x37f)]||{};if(!_0x412176||_0x3ea13e===void 0x0)return!0x1;const _0x164afd=_0x563bbe['_getAPIPrefixPath']()+'/'+_0x3ea13e+_0x5a71e7(0x336)+_0x412176+_0x5a71e7(0x38a);if(_0x460ce0['url']===_0x164afd)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5aa374){const _0x5161b4=_0x5c093f;var _0x10bf57;return(_0x10bf57=_0x5aa374[_0x5161b4(0x385)])==null?void 0x0:_0x10bf57[_0x5161b4(0x37f)];},'mergeParamsToRequest'(_0x43b807,_0x4b0c88){const _0x592fad=_0x5c093f,_0x1fa96a=_0x563bbe[_0x592fad(0x27d)]()+_0x592fad(0x1ac),_0x2dc9da=_0x43b807[_0x592fad(0x207)]((_0x673210,_0x52d193)=>{const _0x332173=_0x592fad,{unitID:_0x23f507,objectID:_0x3d775b,objectType:_0x1e7ae9,actions:_0x5ba8a1}=_0x52d193;return _0x673210[_0x23f507]||(_0x673210[_0x23f507]={}),_0x673210[_0x23f507][_0x3d775b]||(_0x673210[_0x23f507][_0x3d775b]={'objectID':_0x3d775b,'objectType':_0x1e7ae9,'actions':[]}),_0x673210[_0x23f507][_0x3d775b][_0x332173(0x346)][_0x332173(0x354)](..._0x5ba8a1),_0x673210;},{}),_0x109355=[];for(const _0x11d5f7 in _0x2dc9da)for(const _0x1ed47e in _0x2dc9da[_0x11d5f7]){const {actions:_0x569ad3,objectType:_0x2a9e89}=_0x2dc9da[_0x11d5f7][_0x1ed47e],_0x3fe521=[...new Set(_0x569ad3)];_0x109355[_0x592fad(0x354)]({'unitID':_0x11d5f7,'objectID':_0x1ed47e,'objectType':_0x2a9e89,'actions':_0x3fe521});}return new _0x5d00a0(_0x592fad(0x126),_0x1fa96a,{'headers':_0x4b0c88[_0x592fad(0x426)],'withCredentials':_0x4b0c88[_0x592fad(0x1d5)],'responseType':_0x4b0c88[_0x592fad(0x253)],'body':{'requests':_0x109355}});}},{'distributeResult'(_0x41f5f4,_0x12ee41){const _0x6e75ed=_0x5c093f,{objectActions:_0x158eb4}=_0x41f5f4;return _0x12ee41[_0x6e75ed(0x35e)](_0x275cf6=>{const _0x4737a1=_0x6e75ed,{unitID:_0x4eb632,objectID:_0xb76842,actions:_0x27b919}=_0x275cf6,_0x253f62=_0x158eb4['find'](_0x562c0e=>_0x562c0e[_0x4737a1(0x33d)]===_0x4eb632&&_0x562c0e[_0x4737a1(0x3c2)]===_0xb76842),_0x248e37=_0x27b919[_0x4737a1(0x35e)](_0x58ceaa=>_0x253f62==null?void 0x0:_0x253f62['actions'][_0x4737a1(0x17b)](_0x3948fe=>_0x3948fe[_0x4737a1(0xbc)]===_0x58ceaa))['filter'](_0xa6ca50=>!!_0xa6ca50);return{'config':_0x275cf6,'result':{'actions':_0x248e37,'error':_0x41f5f4[_0x4737a1(0xeb)]}};});}})}));}[_0x21e9c1(0x27d)](){const _0x157bf5=_0x21e9c1;var _0x1c6f5b,_0x2199d2;const _0x245d84=this[_0x157bf5(0x168)][_0x157bf5(0x19d)](Ho),_0x5f1300=this['_configService'][_0x157bf5(0x19d)]($);return(_0x2199d2=(_0x1c6f5b=_0x5f1300==null?void 0x0:_0x5f1300['authzUrl'])!=null?_0x1c6f5b:_0x245d84)!=null?_0x2199d2:ko;}async[_0x21e9c1(0x412)](_0x5e1503){const _0x33b8a5=_0x21e9c1,_0x44d199=this[_0x33b8a5(0x27d)]()+'/'+_0x5e1503[_0x33b8a5(0x2e7)]+_0x33b8a5(0x1c5);return(await this['_HTTPService'][_0x33b8a5(0x264)](_0x44d199,{'body':_0x5e1503}))[_0x33b8a5(0x37f)][_0x33b8a5(0x3c2)]||'';}async['list'](_0x46e903){const _0x3d60fa=_0x21e9c1,_0xb6464=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x3d60fa(0x3c8)][_0x3d60fa(0x264)](_0xb6464,{'body':_0x46e903}))[_0x3d60fa(0x37f)][_0x3d60fa(0x400)];}async['update'](_0x143028){const _0x7d1bd7=_0x21e9c1,_0x1823a4=this['_getAPIPrefixPath']()+'/'+_0x143028[_0x7d1bd7(0x2e7)]+_0x7d1bd7(0x336)+_0x143028[_0x7d1bd7(0x3c2)];await this['_HTTPService'][_0x7d1bd7(0x227)](_0x1823a4,{'body':_0x143028});}async[_0x21e9c1(0x283)](_0x2c04b2){const _0x3957d6=_0x21e9c1,_0x303a50=this[_0x3957d6(0x27d)]()+'/'+_0x2c04b2[_0x3957d6(0x2e7)]+_0x3957d6(0x336)+_0x2c04b2[_0x3957d6(0x3c2)]+_0x3957d6(0x38a);return(await this[_0x3957d6(0x3c8)][_0x3957d6(0x264)](_0x303a50,{'body':_0x2c04b2}))[_0x3957d6(0x37f)][_0x3957d6(0x346)];}async[_0x21e9c1(0x413)](_0xb3f7f6){const _0x23f6e9=_0x21e9c1,_0x48eaf4=this[_0x23f6e9(0x27d)]()+_0x23f6e9(0x1ac);return(await this[_0x23f6e9(0x3c8)][_0x23f6e9(0x264)](_0x48eaf4,{'body':{'requests':_0xb3f7f6}}))[_0x23f6e9(0x37f)]['objectActions'];}async['listRoles'](_0x41b98b){const _0x31598f=_0x21e9c1,_0x3b54de=this['_getAPIPrefixPath']()+'/'+_0x41b98b[_0x31598f(0x2e7)]+_0x31598f(0x2be),_0x5ec2ea=await this['_HTTPService'][_0x31598f(0x264)](_0x3b54de,{'body':_0x41b98b});return{'roles':_0x5ec2ea['body'][_0x31598f(0x165)],'actions':_0x5ec2ea[_0x31598f(0x37f)][_0x31598f(0x346)]};}async[_0x21e9c1(0x24d)](_0x1213a9){const _0x465775=_0x21e9c1,_0x260b40=this['_getAPIPrefixPath']()+_0x465775(0xab);await this['_HTTPService'][_0x465775(0x156)](_0x260b40,{'params':{'collaboratorID':_0x1213a9['collaboratorID'],'objectID':_0x1213a9[_0x465775(0x3c2)],'unitID':_0x1213a9[_0x465775(0x33d)]}});}async[_0x21e9c1(0xe9)](_0x94d25e){const _0x23a1cb=_0x21e9c1,_0x3e1ca1=this[_0x23a1cb(0x27d)]()+'/collaborator';await this[_0x23a1cb(0x3c8)][_0x23a1cb(0x3dd)](_0x3e1ca1,{'body':_0x94d25e});}async[_0x21e9c1(0x2ab)](_0x51e868){const _0x40ecf9=_0x21e9c1,_0x5583f3=this[_0x40ecf9(0x27d)]()+_0x40ecf9(0xab);await this[_0x40ecf9(0x3c8)][_0x40ecf9(0x264)](_0x5583f3,{'body':_0x51e868});}async['listCollaborators'](_0x59d049){const _0x2c2f0c=_0x21e9c1,_0x3168ce=this[_0x2c2f0c(0x27d)]()+_0x2c2f0c(0xab);return(await this[_0x2c2f0c(0x3c8)]['get'](_0x3168ce,{'params':{'objectID':_0x59d049[_0x2c2f0c(0x3c2)],'unitID':_0x59d049['unitID']}}))[_0x2c2f0c(0x37f)]['collaborators'];}async['putCollaborators'](_0x3e5098){const _0x13f82e=_0x21e9c1,_0x103ace=this[_0x13f82e(0x27d)]()+_0x13f82e(0xab);await this[_0x13f82e(0x3c8)][_0x13f82e(0x227)](_0x103ace,{'body':_0x3e5098});}};yt=xo([ps(0x0,_0xc5d09(_0x1f969a)),ps(0x1,_0xc5d09(_0x232b04))],yt);var Bo=Object[_0x21e9c1(0x155)],Vo=Object['getOwnPropertyDescriptor'],Fo=(_0x15af05,_0x4f9cbe,_0x592ba4,_0x2132e8)=>{for(var _0x5ef722=_0x2132e8>0x1?void 0x0:_0x2132e8?Vo(_0x4f9cbe,_0x592ba4):_0x4f9cbe,_0x248f9e=_0x15af05['length']-0x1,_0x109ab0;_0x248f9e>=0x0;_0x248f9e--)(_0x109ab0=_0x15af05[_0x248f9e])&&(_0x5ef722=(_0x2132e8?_0x109ab0(_0x4f9cbe,_0x592ba4,_0x5ef722):_0x109ab0(_0x5ef722))||_0x5ef722);return _0x2132e8&&_0x5ef722&&Bo(_0x4f9cbe,_0x592ba4,_0x5ef722),_0x5ef722;},Wo=(_0x4ad952,_0x39b3a2)=>(_0x40755e,_0x3e9143)=>_0x39b3a2(_0x40755e,_0x3e9143,_0x4ad952);let Qe=class{constructor(_0x1c5947){const _0xe617d7=_0x21e9c1;this[_0xe617d7(0xdd)]=_0x1c5947,this[_0xe617d7(0x233)]();}[_0x21e9c1(0x233)](){const _0x4368ac=_0x21e9c1;this[_0x4368ac(0xdd)][_0x4368ac(0x193)]({'interceptor':(_0x210ed6,_0x4baa8f)=>{const _0x433900=_0x4368ac,_0x385ecb=_0x210ed6[_0x433900(0x426)],_0x45cecd=_0x10b4cc();return _0x45cecd&&_0x385ecb['set'](_0x433900(0x300),_0x45cecd),_0x4baa8f(_0x210ed6);}});}};Qe=Fo([Wo(0x0,_0xc5d09(_0x1f969a))],Qe);var Go=Object[_0x21e9c1(0x155)],Yo=Object[_0x21e9c1(0x241)],Ko=(_0x9bbc92,_0x568466,_0x2ad4c4,_0x52a059)=>{for(var _0x5e0886=_0x52a059>0x1?void 0x0:_0x52a059?Yo(_0x568466,_0x2ad4c4):_0x568466,_0x854587=_0x9bbc92['length']-0x1,_0x349006;_0x854587>=0x0;_0x854587--)(_0x349006=_0x9bbc92[_0x854587])&&(_0x5e0886=(_0x52a059?_0x349006(_0x568466,_0x2ad4c4,_0x5e0886):_0x349006(_0x5e0886))||_0x5e0886);return _0x52a059&&_0x5e0886&&Go(_0x568466,_0x2ad4c4,_0x5e0886),_0x5e0886;},pt=(_0x105d43,_0x29aac2)=>(_0x4a6019,_0x54db13)=>_0x29aac2(_0x4a6019,_0x54db13,_0x105d43);const Xo=['image/png',_0x21e9c1(0x140),_0x21e9c1(0x291),_0x21e9c1(0xfa),_0x21e9c1(0xe1)],qo=0x5*0x400*0x400,Jo=_0x21e9c1(0x1b3),zo=_0x21e9c1(0x119),Zo=_0x21e9c1(0x1ba),Qo=_0x21e9c1(0x2b8);let Ut=class{constructor(_0x1d0acd,_0x5d8794,_0x3ca499){const _0x1cf8ea=_0x21e9c1;l(this,_0x1cf8ea(0x195),0x0),l(this,_0x1cf8ea(0x1ae),new _0x22bff9()),l(this,_0x1cf8ea(0x17a),this[_0x1cf8ea(0x1ae)]),l(this,'_imageSourceCache',new Map()),(this[_0x1cf8ea(0xdd)]=_0x1d0acd,this[_0x1cf8ea(0x168)]=_0x5d8794,this[_0x1cf8ea(0x3ae)]=_0x3ca499);}[_0x21e9c1(0xb5)](_0x4cf30c){const _0x37e007=_0x21e9c1;this['_waitCount']=_0x4cf30c,this[_0x37e007(0x1ae)][_0x37e007(0x175)](_0x4cf30c);}[_0x21e9c1(0x26e)](_0x23d48a,_0x37d7b0){const _0x2dd5e8=_0x21e9c1;if(_0x37d7b0===_0x1fa77f[_0x2dd5e8(0x3fc)]){const _0x3b77e5=new Image();return _0x3b77e5[_0x2dd5e8(0x2d5)]=_0x23d48a,_0x3b77e5;}return this[_0x2dd5e8(0x1ee)]['get'](_0x23d48a);}[_0x21e9c1(0x2fd)](_0x33657f,_0x28e815,_0x139d1e){const _0x365fcf=_0x21e9c1;_0x28e815===_0x1fa77f[_0x365fcf(0x3fc)]||_0x139d1e==null||this[_0x365fcf(0x1ee)]['set'](_0x33657f,_0x139d1e);}async[_0x21e9c1(0xe2)](_0x11fb89){const _0x2f1b77=_0x21e9c1;try{const _0x4640b9=this['_replaceFileID'](this[_0x2f1b77(0x398)](),''+_0x11fb89),_0x23b8d0=(await this['_httpService'][_0x2f1b77(0xdc)](_0x4640b9))[_0x2f1b77(0x37f)];if(_0x23b8d0[_0x2f1b77(0xeb)]&&_0x23b8d0[_0x2f1b77(0xeb)][_0x2f1b77(0x2aa)]===js['OK']){const _0xf166fe=new URL(_0x23b8d0[_0x2f1b77(0x2a1)],this[_0x2f1b77(0xc4)]())[_0x2f1b77(0x278)]();return Promise['resolve'](_0xf166fe);}return Promise['reject'](_0x23b8d0[_0x2f1b77(0xeb)]);}catch(_0x197949){return Promise[_0x2f1b77(0x351)](_0x197949);}}async[_0x21e9c1(0x2fa)](_0x63dd14){const _0xde8c1a=_0x21e9c1;let _0x884323='';if(!Xo[_0xde8c1a(0x375)](_0x63dd14[_0xde8c1a(0x25c)]))return this[_0xde8c1a(0x2f0)](),Promise[_0xde8c1a(0x351)](new Error(_0x587faa[_0xde8c1a(0x1de)]));if(_0x63dd14['size']>qo)return this[_0xde8c1a(0x2f0)](),Promise[_0xde8c1a(0x351)](new Error(_0x587faa['ERROR_EXCEED_SIZE']));try{const _0x3c265a=new FormData();_0x3c265a[_0xde8c1a(0x2ec)](_0xde8c1a(0x334),_0x63dd14);const _0x50f86e=this[_0xde8c1a(0x3ae)][_0xde8c1a(0x254)](),_0xca5b06=_0x50f86e==null?void 0x0:_0x50f86e[_0xde8c1a(0x362)]();if(!_0xca5b06)throw new Error(_0xde8c1a(0xb4));const _0x392806=this[_0xde8c1a(0x21a)]()+_0xde8c1a(0x287)+_0x63dd14[_0xde8c1a(0x10e)][_0xde8c1a(0x278)]()+_0xde8c1a(0x1af)+xs[_0xde8c1a(0x1eb)]+'&assign='+encodeURIComponent(_0xca5b06),_0x81b306=await(await fetch(_0x392806,{'method':_0xde8c1a(0x126),'body':_0x3c265a}))[_0xde8c1a(0x268)]();if(typeof _0x81b306[_0xde8c1a(0x1d3)]!=_0xde8c1a(0x308))return this[_0xde8c1a(0x2f0)](),Promise[_0xde8c1a(0x351)](new Error(_0x587faa[_0xde8c1a(0x425)]));_0x884323=_0x81b306[_0xde8c1a(0x1d3)];}catch{return this[_0xde8c1a(0x2f0)](),Promise[_0xde8c1a(0x351)](new Error(_0x587faa[_0xde8c1a(0x425)]));}return new Promise((_0x551fac,_0x53fd1d)=>{const _0xeee262=_0xde8c1a,_0x8da9d2=new FileReader();_0x8da9d2[_0xeee262(0x337)](_0x63dd14),_0x8da9d2[_0xeee262(0xe8)]=_0x1d6e14=>{const _0x9e0b37=_0xeee262;var _0x5cc1af;const _0xfd7772=(_0x5cc1af=_0x1d6e14[_0x9e0b37(0xc6)])==null?void 0x0:_0x5cc1af[_0x9e0b37(0x245)];if(_0xfd7772==null){this[_0x9e0b37(0x2f0)](),_0x53fd1d(new Error(_0x587faa[_0x9e0b37(0x425)]));return;}const _0x1efddb=_0x1bf815['generateRandomId'](0x6);_0x551fac({'imageId':_0x1efddb,'imageSourceType':_0x1fa77f[_0x9e0b37(0x418)],'source':_0x884323,'base64Cache':_0xfd7772,'status':_0x587faa[_0x9e0b37(0x2b4)]}),this[_0x9e0b37(0x2f0)]();};});}[_0x21e9c1(0x21a)](){const _0x3b5dc8=_0x21e9c1;var _0x4d18ca,_0x2e8d91;const _0xa3158=this[_0x3b5dc8(0x168)][_0x3b5dc8(0x19d)](Jo),_0x253ca1=this[_0x3b5dc8(0x168)][_0x3b5dc8(0x19d)]($);return(_0x2e8d91=(_0x4d18ca=_0x253ca1==null?void 0x0:_0x253ca1[_0x3b5dc8(0xd5)])!=null?_0x4d18ca:_0xa3158)!=null?_0x2e8d91:zo;}['_getSignURL'](){const _0x267f9b=_0x21e9c1;var _0x3e86c5,_0x10744e;const _0x40cd47=this[_0x267f9b(0x168)][_0x267f9b(0x19d)](Zo),_0x37ec08=this[_0x267f9b(0x168)][_0x267f9b(0x19d)]($);return(_0x10744e=(_0x3e86c5=_0x37ec08==null?void 0x0:_0x37ec08[_0x267f9b(0x3f4)])!=null?_0x3e86c5:_0x40cd47)!=null?_0x10744e:Qo;}[_0x21e9c1(0xc4)](){const _0x59b428=_0x21e9c1;var _0x5d1d60;const _0x4df40b=this[_0x59b428(0x168)][_0x59b428(0x19d)]($);return(_0x5d1d60=_0x4df40b==null?void 0x0:_0x4df40b[_0x59b428(0x17c)])!=null?_0x5d1d60:location[_0x59b428(0x3c9)];}[_0x21e9c1(0xf7)](_0x1d2f74,_0x98e94b){const _0x43cda7=_0x21e9c1;return _0x1d2f74[_0x43cda7(0x190)](_0x43cda7(0xa8),_0x98e94b);}[_0x21e9c1(0x2f0)](){const _0x46e9c4=_0x21e9c1;this['_waitCount']-=0x1,this['_change$']['next'](this[_0x46e9c4(0x195)]);}};Ut=Ko([pt(0x0,_0xc5d09(_0x1f969a)),pt(0x1,_0x232b04),pt(0x2,_0xc5d09(_0x77aace))],Ut);var ea=Object[_0x21e9c1(0x155)],ta=Object[_0x21e9c1(0x241)],sa=(_0x1e136c,_0x4fd8c6,_0x75c17d,_0x201428)=>{const _0xd79e75=_0x21e9c1;for(var _0x1cbd0a=_0x201428>0x1?void 0x0:_0x201428?ta(_0x4fd8c6,_0x75c17d):_0x4fd8c6,_0x380d39=_0x1e136c[_0xd79e75(0x2a7)]-0x1,_0x543958;_0x380d39>=0x0;_0x380d39--)(_0x543958=_0x1e136c[_0x380d39])&&(_0x1cbd0a=(_0x201428?_0x543958(_0x4fd8c6,_0x75c17d,_0x1cbd0a):_0x543958(_0x1cbd0a))||_0x1cbd0a);return _0x201428&&_0x1cbd0a&&ea(_0x4fd8c6,_0x75c17d,_0x1cbd0a),_0x1cbd0a;},ye=(_0x447135,_0x5f2159)=>(_0x20ca99,_0x233968)=>_0x5f2159(_0x20ca99,_0x233968,_0x447135);let et=class extends _0x522cd9{constructor(_0x375b9a,_0x2128c4,_0x22d111,_0x416acd,_0x269e0f){const _0x225cb9=_0x21e9c1;super(),this['_injector']=_0x375b9a,this['_univerInstanceService']=_0x2128c4,this[_0x225cb9(0x2c9)]=_0x22d111,this[_0x225cb9(0x14b)]=_0x416acd,this['_localeService']=_0x269e0f,this[_0x225cb9(0x360)](),this[_0x225cb9(0x34a)]();}[_0x21e9c1(0x34a)](){const _0x568dff=_0x21e9c1,_0x23c9f0=async _0x6deca4=>{const _0x4d9755=_0x24ad;(await this[_0x4d9755(0x14b)]['requireSession'](_0x6deca4))[_0x4d9755(0x256)]['pipe'](_0x4acb53(_0xc67756=>_0xc67756['eventID']===_0x11fad5[_0x4d9755(0x353)]),_0x2fb1c6(this[_0x4d9755(0xe7)]))[_0x4d9755(0xd9)](_0x30de6b=>{const _0x5aee58=_0x4d9755,_0x4b3664=_0x30de6b,{reason:_0x39525c}=_0x4b3664[_0x5aee58(0x42f)];this['_injector']['get'](_0x3d62ab)[_0x5aee58(0x2b7)]({'type':_0x3346c3['Error'],'content':this[_0x5aee58(0x148)]['t'](_0x5aee58(0xcc))+'('+_0x39525c+')'}),this[_0x5aee58(0x2c9)][_0x5aee58(0x30b)](new _0x474cc1(_0x6deca4)['id'],!0x1),this['_collaborationSessionService'][_0x5aee58(0x2b3)](_0x6deca4);});};_0x7be1ed(this['_univerInstanceService'][_0x568dff(0x27c)](_0x3626c8[_0x568dff(0xc3)]),this[_0x568dff(0x3ae)]['getTypeOfUnitAdded$'](_0x3626c8[_0x568dff(0x3b2)]))['pipe'](_0x4fff71(_0x375605=>_0x375605['getUnitId']()),_0x4acb53(_0xebd77a=>!_0xd29d71(_0xebd77a)),_0x2fb1c6(this[_0x568dff(0xe7)]))[_0x568dff(0xd9)](_0x1406d7=>{_0x23c9f0(_0x1406d7);});}[_0x21e9c1(0x360)](){const _0xa5599=_0x21e9c1,_0x462413=async _0x42b9a0=>{const _0x18a9c3=_0x24ad;(await this[_0x18a9c3(0x14b)][_0x18a9c3(0x208)](_0x42b9a0))[_0x18a9c3(0x256)][_0x18a9c3(0xcb)](_0x4acb53(_0x23cd1c=>_0x23cd1c[_0x18a9c3(0x435)]===_0x11fad5[_0x18a9c3(0x294)]),_0x2fb1c6(this['dispose$']))[_0x18a9c3(0xd9)](_0x31aed8=>{const _0x52602a=_0x18a9c3,_0x44f1be=_0x31aed8,{objectId:_0x229431}=_0x44f1be[_0x52602a(0x42f)],_0x464a96=this[_0x52602a(0x27a)][_0x52602a(0xdc)](_0x375124);_0x229431===_0x42b9a0?_0x464a96[_0x52602a(0xed)](_0x42b9a0):_0x464a96['refreshPermission'](_0x42b9a0,_0x229431);});};_0x7be1ed(this['_univerInstanceService'][_0xa5599(0x27c)](_0x3626c8['UNIVER_SHEET']),this['_univerInstanceService'][_0xa5599(0x27c)](_0x3626c8['UNIVER_DOC']))[_0xa5599(0xcb)](_0x4fff71(_0xdf3756=>_0xdf3756[_0xa5599(0x362)]()),_0x4acb53(_0x35ab19=>!_0xd29d71(_0x35ab19)),_0x2fb1c6(this[_0xa5599(0xe7)]))[_0xa5599(0xd9)](_0x2e46b5=>{_0x462413(_0x2e46b5);});}};et=sa([ye(0x0,_0xc5d09(_0xe15c29)),ye(0x1,_0x77aace),ye(0x2,_0x21fa0d),ye(0x3,_0xc5d09(ce)),ye(0x4,_0xc5d09(_0x2e0e1c))],et);var ia=Object[_0x21e9c1(0x155)],na=Object[_0x21e9c1(0x241)],ra=(_0x551542,_0x319083,_0x63c994,_0x45abf1)=>{const _0x3bfc37=_0x21e9c1;for(var _0x8920d6=_0x45abf1>0x1?void 0x0:_0x45abf1?na(_0x319083,_0x63c994):_0x319083,_0x2b654b=_0x551542[_0x3bfc37(0x2a7)]-0x1,_0x527996;_0x2b654b>=0x0;_0x2b654b--)(_0x527996=_0x551542[_0x2b654b])&&(_0x8920d6=(_0x45abf1?_0x527996(_0x319083,_0x63c994,_0x8920d6):_0x527996(_0x8920d6))||_0x8920d6);return _0x45abf1&&_0x8920d6&&ia(_0x319083,_0x63c994,_0x8920d6),_0x8920d6;},vs=(_0x6a890d,_0x5d261b)=>(_0x13bead,_0x20b936)=>_0x5d261b(_0x13bead,_0x20b936,_0x6a890d);let Nt=class{constructor(_0xb9b3b8,_0x544ce6){const _0x5e35f7=_0x21e9c1;this[_0x5e35f7(0x168)]=_0xb9b3b8,this[_0x5e35f7(0xdd)]=_0x544ce6;}async[_0x21e9c1(0x434)](_0x39fe43,_0x4d8394){const _0x780052=_0x21e9c1;var _0x2f20da;const {unitID:_0x30f5f0,type:_0x5235bd,revision:_0x7314e1=0x0}=_0x4d8394,_0x1b9686=this[_0x780052(0x395)]()+'/'+_0x5235bd+_0x780052(0x25a)+_0x30f5f0+_0x780052(0x1f2)+_0x7314e1,_0xd00a54=(await this[_0x780052(0xdd)]['get'](_0x1b9686))[_0x780052(0x37f)],_0x188686=(_0x2f20da=_0xd00a54[_0x780052(0xf3)])==null?void 0x0:_0x2f20da[_0x780052(0x222)];if(_0x188686){const _0x40011a=_0x188686==null?void 0x0:_0x188686['originalMeta'],_0xce2510=_0x1d4cfa[_0x780052(0x1b1)](_0x377955(_0x40011a));_0x188686['originalMeta']=_0xce2510,Object[_0x780052(0x28a)](_0x188686[_0x780052(0xf0)])[_0x780052(0x20d)](([,_0xb2d6de])=>{const _0x1355c0=_0x780052,_0xa7c779=_0xb2d6de[_0x1355c0(0x3e0)],_0x2ca7e4=_0x1d4cfa[_0x1355c0(0x1b1)](_0x377955(_0xa7c779));_0xb2d6de[_0x1355c0(0x3e0)]=_0x2ca7e4;});}return _0xd00a54;}async[_0x21e9c1(0x18a)](_0x15f0ce,_0x2b3cd4){const _0x3d5705=_0x21e9c1,{unitID:_0xecdb6a,type:_0x183e41,blockID:_0x1b0b0e}=_0x2b3cd4,_0x42a8a7=this[_0x3d5705(0x137)]()+'/'+_0x183e41+_0x3d5705(0x25a)+_0xecdb6a+_0x3d5705(0x396)+_0x1b0b0e;return(await this['_httpService'][_0x3d5705(0xdc)](_0x42a8a7))['body'];}async['getDeserializedSheetBlock'](_0x3c605d,_0x18ea55){const _0x46bef6=_0x21e9c1,{unitID:_0x4e970d,type:_0x2543fa,blockID:_0x252d0f}=_0x18ea55,_0x32f9d7=this[_0x46bef6(0x137)]()+_0x46bef6(0x396)+_0x2543fa+'/unit/'+_0x4e970d+_0x46bef6(0x396)+_0x252d0f;return(await this[_0x46bef6(0xdd)]['get'](_0x32f9d7))['body'];}async[_0x21e9c1(0xae)](_0x1d3635,_0x315cd5){const _0x103f70=_0x21e9c1,{unitID:_0x4bf65e,type:_0x56423a,from:_0x37f44b,to:_0x4fb20a}=_0x315cd5,_0x23d2da=this[_0x103f70(0x137)]()+'/'+_0x56423a+'/unit/'+_0x4bf65e+_0x103f70(0x248)+_0x37f44b+'&to='+_0x4fb20a;return(await this[_0x103f70(0xdd)][_0x103f70(0xdc)](_0x23d2da))['body'];}[_0x21e9c1(0x395)](){const _0x5b7a3e=_0x21e9c1;var _0x692712;return(_0x692712=this[_0x5b7a3e(0x168)][_0x5b7a3e(0x19d)](pn))!=null?_0x692712:this[_0x5b7a3e(0x137)]();}[_0x21e9c1(0x137)](){const _0x3bd1d0=_0x21e9c1;var _0x237d22,_0x2e615c;const _0x510a5e=this[_0x3bd1d0(0x168)][_0x3bd1d0(0x19d)](gn),_0x4d1bf0=this[_0x3bd1d0(0x168)]['getConfig']($);return(_0x2e615c=(_0x237d22=_0x4d1bf0==null?void 0x0:_0x4d1bf0[_0x3bd1d0(0x3b4)])!=null?_0x237d22:_0x510a5e)!=null?_0x2e615c:Sn;}async[_0x21e9c1(0x368)](_0x4a4595,_0x74630a){const _0x2d2c56=_0x21e9c1,_0x384913=_0x2d2c56(0x11e)+_0x74630a['type']+_0x2d2c56(0x25a)+_0x74630a[_0x2d2c56(0x33d)]+_0x2d2c56(0x159);return(await this[_0x2d2c56(0xdd)]['get'](_0x384913,{'params':{'resourceId':JSON[_0x2d2c56(0x1cd)](_0x74630a[_0x2d2c56(0x382)])}}))[_0x2d2c56(0x37f)];}[_0x21e9c1(0x373)](){const _0x56887b=_0x21e9c1;throw new Error(_0x56887b(0x3fd));}[_0x21e9c1(0x428)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x21e9c1(0x359)](){const _0x38f389=_0x21e9c1;throw new Error(_0x38f389(0x3fd));}['copyFileMeta'](){const _0x27dd81=_0x21e9c1;throw new Error(_0x27dd81(0x3fd));}[_0x21e9c1(0x25d)](){const _0xccc7e9=_0x21e9c1;throw new Error(_0xccc7e9(0x3fd));}};Nt=ra([vs(0x0,_0x232b04),vs(0x1,_0xc5d09(_0x1f969a))],Nt);var oa=Object[_0x21e9c1(0x155)],aa=Object[_0x21e9c1(0x241)],ca=(_0x3577ca,_0x5ac2d6,_0x37b9ac,_0x17f40e)=>{const _0xe3a156=_0x21e9c1;for(var _0x109db7=_0x17f40e>0x1?void 0x0:_0x17f40e?aa(_0x5ac2d6,_0x37b9ac):_0x5ac2d6,_0x5b9f88=_0x3577ca[_0xe3a156(0x2a7)]-0x1,_0x117899;_0x5b9f88>=0x0;_0x5b9f88--)(_0x117899=_0x3577ca[_0x5b9f88])&&(_0x109db7=(_0x17f40e?_0x117899(_0x5ac2d6,_0x37b9ac,_0x109db7):_0x117899(_0x109db7))||_0x109db7);return _0x17f40e&&_0x109db7&&oa(_0x5ac2d6,_0x37b9ac,_0x109db7),_0x109db7;},Ue=(_0x3b2ca5,_0x5e2c96)=>(_0x293a11,_0x3b4925)=>_0x5e2c96(_0x293a11,_0x3b4925,_0x3b2ca5);let Mt=class extends _0x49946c{constructor(_0x5e0b27,_0xcc4f88,_0x13e4e6,_0xa93876,_0x50a48a){const _0x22430f=_0x21e9c1;super(_0x5e0b27,_0xcc4f88,_0x13e4e6),this['_transformService']=_0xa93876,this[_0x22430f(0x42c)]=_0x50a48a;}['transformUndoRedo'](_0x3ecd9f,_0x12d683){const _0x156394=_0x21e9c1,_0x54b187=this[_0x156394(0x3ab)](_0x3ecd9f);if(_0x54b187)try{const _0x5880ec=this[_0x156394(0x14d)](_0x54b187,_0x12d683);this[_0x156394(0x164)](_0x3ecd9f,_0x5880ec);}catch(_0x1fa4cf){this[_0x156394(0x42c)][_0x156394(0xeb)]('[CollaborationUndoRedoService]',_0x1fa4cf),this[_0x156394(0x1c6)](_0x3ecd9f);}const _0x47ff2c=this[_0x156394(0x339)](_0x3ecd9f);if(_0x47ff2c)try{const _0x2e63cd=this[_0x156394(0x14d)](_0x47ff2c,_0x12d683);this[_0x156394(0x183)](_0x3ecd9f,_0x2e63cd);}catch(_0x172240){this['_logService'][_0x156394(0xeb)](_0x172240),this[_0x156394(0x3ed)](_0x3ecd9f);}}[_0x21e9c1(0x1c6)](_0x1310a5){const _0x26ad3d=_0x21e9c1,_0x4fc4c4=this[_0x26ad3d(0x3ab)](_0x1310a5);_0x4fc4c4&&(_0x4fc4c4[_0x26ad3d(0x2a7)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x27537e){const _0x565a80=_0x21e9c1,_0x3a299f=this[_0x565a80(0x339)](_0x27537e);_0x3a299f&&(_0x3a299f[_0x565a80(0x2a7)]=0x0,this[_0x565a80(0x415)]());}[_0x21e9c1(0x164)](_0x3368c8,_0x4e56b7){const _0x2ea184=_0x21e9c1;this[_0x2ea184(0x24b)]['set'](_0x3368c8,_0x4e56b7),this[_0x2ea184(0x415)]();}['_substituteRedoStack'](_0x16efdb,_0x5568f8){const _0x582cd5=_0x21e9c1;this[_0x582cd5(0x172)]['set'](_0x16efdb,_0x5568f8),this[_0x582cd5(0x415)]();}[_0x21e9c1(0x14d)](_0x339e25,_0x135e95){const _0x20debd=_0x21e9c1,_0x32b80a=[];let _0x389ba8=_0x135e95,_0x1d558b=_0x135e95;for(let _0x5d2d1a=_0x339e25[_0x20debd(0x2a7)]-0x1;_0x5d2d1a>=0x0;_0x5d2d1a--){const {unitID:_0x55ecc0,undoMutations:_0x5d74dd,redoMutations:_0x159a2a}=_0x339e25[_0x5d2d1a],_0x2e9286=this[_0x20debd(0x40a)][_0x20debd(0x311)](_0x389ba8,_0x5d74dd),_0x475c5f=this['_transformService'][_0x20debd(0x311)](_0x1d558b,_0x159a2a);if(_0x217db0(_0x2e9286)||_0x217db0(_0x475c5f)){this[_0x20debd(0x42c)][_0x20debd(0xeb)](_0x20debd(0x2f7),_0x20debd(0x41d),_0x2e9286,_0x475c5f);break;}_0x389ba8=_0x2e9286[_0x20debd(0x2ba)],_0x1d558b=_0x475c5f[_0x20debd(0x2ba)],_0x32b80a['push']({'unitID':_0x55ecc0,'undoMutations':_0x2e9286[_0x20debd(0xc7)],'redoMutations':_0x475c5f[_0x20debd(0xc7)]});}return _0x32b80a[_0x20debd(0x2c8)]();}};Mt=ca([Ue(0x0,_0x77aace),Ue(0x1,_0x4fdaef),Ue(0x2,_0xbc45e3),Ue(0x3,_0x52d7ce),Ue(0x4,_0x3b7308)],Mt);class ha extends _0x522cd9{constructor(){const _0x4bc695=_0x21e9c1;super(),l(this,_0x4bc695(0x403)),this[_0x4bc695(0x403)]=_0x32b9ba(window,'popstate')[_0x4bc695(0xcb)](_0x3eb144(this[_0x4bc695(0xe7)]),_0xc9a95a(0x1),_0x15c3e4(void 0x0));}['setParam'](_0x40e0cb,_0x1a0212,_0x2de511=!0x1){const _0x247598=_0x21e9c1,_0x14845f=new URL(window['location'][_0x247598(0x10a)]);_0x14845f['searchParams'][_0x247598(0x2c4)](_0x40e0cb,_0x1a0212),_0x2de511?window[_0x247598(0x157)]['replaceState']('','',_0x14845f[_0x247598(0x278)]()):window[_0x247598(0x157)]['pushState']('','',_0x14845f[_0x247598(0x278)]());}['removeParam'](_0x17c1d3,_0x575703=!0x1){const _0x5922a6=_0x21e9c1,_0x3f78fd=new URL(window[_0x5922a6(0x298)][_0x5922a6(0x10a)]);_0x3f78fd[_0x5922a6(0x1dd)][_0x5922a6(0x156)](_0x17c1d3),_0x575703?window['history']['replaceState']('','',_0x3f78fd[_0x5922a6(0x278)]()):window['history'][_0x5922a6(0x394)]('','',_0x3f78fd['toString']());}['getParam'](_0x1ee8a3){const _0x227d42=_0x21e9c1;var _0x21e892;return(_0x21e892=new URL(window[_0x227d42(0x298)]['href'])[_0x227d42(0x1dd)][_0x227d42(0xdc)](_0x1ee8a3))!=null?_0x21e892:void 0x0;}}var qs=Object[_0x21e9c1(0x155)],la=Object[_0x21e9c1(0x241)],_a=(_0x1b645d,_0x27fbe4,_0x1a1f53)=>_0x27fbe4 in _0x1b645d?qs(_0x1b645d,_0x27fbe4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a1f53}):_0x1b645d[_0x27fbe4]=_0x1a1f53,ua=(_0x44118c,_0x62693e,_0x424ef2,_0x5e2eb)=>{const _0x437578=_0x21e9c1;for(var _0x362635=_0x5e2eb>0x1?void 0x0:_0x5e2eb?la(_0x62693e,_0x424ef2):_0x62693e,_0x544ee9=_0x44118c[_0x437578(0x2a7)]-0x1,_0x466fd7;_0x544ee9>=0x0;_0x544ee9--)(_0x466fd7=_0x44118c[_0x544ee9])&&(_0x362635=(_0x5e2eb?_0x466fd7(_0x62693e,_0x424ef2,_0x362635):_0x466fd7(_0x362635))||_0x362635);return _0x5e2eb&&_0x362635&&qs(_0x62693e,_0x424ef2,_0x362635),_0x362635;},Ve=(_0x2716a1,_0x19c32e)=>(_0x2853d5,_0x110582)=>_0x19c32e(_0x2853d5,_0x110582,_0x2716a1),da=(_0x3908c8,_0x54231e,_0x294690)=>_a(_0x3908c8,_0x54231e+'',_0x294690);const fa=_0x21e9c1(0x3d5);let At=class extends _0x24c89e{constructor(_0x4a242e=Mn,_0x5cbe93,_0x8a3516,_0x2e00aa,_0x54adc3){const _0xbec893=_0x21e9c1;super(),this[_0xbec893(0x1ca)]=_0x4a242e,this[_0xbec893(0x42c)]=_0x5cbe93,this[_0xbec893(0x3f6)]=_0x8a3516,this[_0xbec893(0x27a)]=_0x2e00aa,this['_configService']=_0x54adc3;const {..._0x5648db}=this[_0xbec893(0x1ca)];this[_0xbec893(0x168)][_0xbec893(0x266)]($,_0x5648db);}[_0x21e9c1(0x356)](){this['_registerDependencies'](),_0xe53674(this['_injector'],[[ve],[Je],[et]]);}['onReady'](){_0xe53674(this['_injector'],[[ze]]);}[_0x21e9c1(0x3f1)](){const _0x335e89=_0x21e9c1;this[_0x335e89(0x26d)]();}[_0x21e9c1(0x262)](){const _0x218773=_0x21e9c1;var _0x191236,_0x33ba0d,_0x1fa48c,_0x42a1c2;this['_injector']['has'](_0x2d3636)&&this[_0x218773(0x42c)]['error'](_0x218773(0x1df),_0x218773(0xb7));let _0x2cfd1e=[[_0x2d3636,{'useClass':Mt}],[ce],[Gt],[Xs,{'useClass':ha}],[ae],[w],[_0x409d10],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[ks],[et],[Hs,{'useClass':(_0x33ba0d=(_0x191236=this[_0x218773(0x1ca)])==null?void 0x0:_0x191236[_0x218773(0x31e)])!=null?_0x33ba0d:Ct}],[_0x14d819,{'useClass':Nt}],[_0x21d0c6,{'useClass':yt}],[_0x438f34,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x1fa48c=this[_0x218773(0x1ca)])!=null&&_0x1fa48c['enableSingleActiveInstanceLock']&&_0x2cfd1e[_0x218773(0x354)]([tt,{'useClass':dr}]),_0x2cfd1e=_0x10d76a(_0x2cfd1e,(_0x42a1c2=this[_0x218773(0x1ca)])==null?void 0x0:_0x42a1c2[_0x218773(0x364)]),_0x2cfd1e[_0x218773(0x20d)](_0x2c573e=>this[_0x218773(0x27a)][_0x218773(0x378)](_0x2c573e)),this[_0x218773(0xe4)]();}[_0x21e9c1(0x26d)](){const _0x5adea7=_0x21e9c1;this[_0x5adea7(0x1fd)](this[_0x5adea7(0x3f6)]['registerRenderModule'](_0x3626c8[_0x5adea7(0x3b2)],[wt])),this[_0x5adea7(0x1fd)](this[_0x5adea7(0x3f6)][_0x5adea7(0x404)](_0x3626c8[_0x5adea7(0xc3)],[Pt]));}[_0x21e9c1(0xe4)](){const _0x3a093=_0x21e9c1;var _0x590a63,_0x2b0204;this['_injector'][_0x3a093(0xdc)](_0x1f969a)[_0x3a093(0x193)]({'priority':0x14,'interceptor':_0x423818({'maxParallel':0x6})}),this[_0x3a093(0x27a)][_0x3a093(0xdc)](Qe),(_0x590a63=this[_0x3a093(0x1ca)])!=null&&_0x590a63[_0x3a093(0x2fb)]||this['_injector'][_0x3a093(0xdc)](w)[_0x3a093(0x371)](),(_0x2b0204=this[_0x3a093(0x1ca)])!=null&&_0x2b0204[_0x3a093(0x3c6)]&&this[_0x3a093(0x27a)][_0x3a093(0xdc)](Ze),this[_0x3a093(0x27a)][_0x3a093(0xdc)](Le),this['_injector']['has'](Me)&&this['_injector'][_0x3a093(0xdc)](Me);}};da(At,'pluginName',fa),At=ua([_0x4e3a0c(_0x6e0839,_0x1cb5df),Ve(0x1,_0x3b7308),Ve(0x2,_0x1174bb),Ve(0x3,_0xc5d09(_0xe15c29)),Ve(0x4,_0x232b04)],At);export{Ho as AUTHZ_URL_KEY,yt as AuthzIoHttpService,Pn as COLLAB_SUBMIT_CHANGESET_URL_KEY,In as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,ce as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Io as CollaborationStatusDisplay,ks as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,Cn as HEARTBEAT_INTERVAL_KEY,Ls as HEARTBEAT_TIMEOUT_KEY,Hs as ICollaborationSocketService,Xs as IURLService,Ut as ImageIoService,Dn as LOCAL_CACHE_INTERVAL_KEY,Un as LOGIN_URL_KEY,w as LocalCacheService,Rn as RETRY_CONNECTING_MAX_COUNT_KEY,Aa as SEND_CHANGESET_TIMEOUT_KEY,gn as SNAPSHOT_SERVER_URL_KEY,pn as SNAPSHOT_URL_KEY,Y as SessionStatus,eo as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,ha as WebURLService,An as deserializeToCombResponse,Ln as serializeCombRequest};
|